!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d4c27758-1c54-4101-abc1-b0f9d39b7e12",e._sentryDebugIdIdentifier="sentry-dbid-d4c27758-1c54-4101-abc1-b0f9d39b7e12")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2709],{89010:function(e,t,r){(function(e,t){"use strict";function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(){}function u(){}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,u.resetWarningCache=l;var c,d,f=(c=d={exports:{}},d.exports,c.exports=function(){function e(e,t,r,n,i,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:u,resetWarningCache:l};return r.PropTypes=r,r}(),d.exports),p=function(e){var r=t.useRef(e);return t.useEffect(function(){r.current=e},[e]),r.current},h=function(e){return null!==e&&"object"===i(e)},m="[object Object]",g=function e(t,r){if(!h(t)||!h(r))return t===r;var n=Array.isArray(t);if(n!==Array.isArray(r))return!1;var i=Object.prototype.toString.call(t)===m;if(i!==(Object.prototype.toString.call(r)===m))return!1;if(!i&&!n)return t===r;var a=Object.keys(t),o=Object.keys(r);if(a.length!==o.length)return!1;for(var s={},l=0;l<a.length;l+=1)s[a[l]]=!0;for(var u=0;u<o.length;u+=1)s[o[u]]=!0;var c=Object.keys(s);return c.length===a.length&&c.every(function(n){return e(t[n],r[n])})},v=function(e,t,r){return h(e)?Object.keys(e).reduce(function(i,o){var s=!h(t)||!g(e[o],t[o]);return r.includes(o)?(s&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),i):s?n(n({},i||{}),{},a({},o,e[o])):i},null):null},y=function(e){if(null===e||h(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment)return e;throw Error("Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},b=function(e){if(h(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(y)};var t=y(e);return null===t?{tag:"empty"}:{tag:"sync",stripe:t}},w=t.createContext(null);w.displayName="ElementsContext";var x=function(e,t){if(!e)throw Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},_=t.createContext(null);_.displayName="CartElementContext";var E=function(e,t){if(!e)throw Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},S=function(e){var r=e.stripe,n=e.options,i=e.children,a=t.useMemo(function(){return b(r)},[r]),s=o(t.useState(null),2),l=s[0],u=s[1],c=o(t.useState(null),2),d=c[0],f=c[1],h=o(t.useState(function(){return{stripe:"sync"===a.tag?a.stripe:null,elements:"sync"===a.tag?a.stripe.elements(n):null}}),2),m=h[0],g=h[1];t.useEffect(function(){var e=!0,t=function(e){g(function(t){return t.stripe?t:{stripe:e,elements:e.elements(n)}})};return"async"!==a.tag||m.stripe?"sync"!==a.tag||m.stripe||t(a.stripe):a.stripePromise.then(function(r){r&&e&&t(r)}),function(){e=!1}},[a,m,n]);var y=p(r);t.useEffect(function(){null!==y&&y!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[y,r]);var x=p(n);return t.useEffect(function(){if(m.elements){var e=v(n,x,["clientSecret","fonts"]);e&&m.elements.update(e)}},[n,x,m.elements]),t.useEffect(function(){var e=m.stripe;e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"1.16.5"}),e.registerAppInfo({name:"react-stripe-js",version:"1.16.5",url:"https://stripe.com/docs/stripe-js/react"}))},[m.stripe]),t.createElement(w.Provider,{value:m},t.createElement(_.Provider,{value:{cart:l,setCart:u,cartState:d,setCartState:f}},i))};S.propTypes={stripe:f.any,options:f.object};var k=function(e){return x(t.useContext(w),e)},C=function(e){return E(t.useContext(_),e)},A=function(e){return(0,e.children)(k("mounts <ElementsConsumer>"))};A.propTypes={children:f.func.isRequired};var T=function(e,r,n){var i=!!n,a=t.useRef(n);t.useEffect(function(){a.current=n},[n]),t.useEffect(function(){if(!i||!e)return function(){};var t=function(){a.current&&a.current.apply(a,arguments)};return e.on(r,t),function(){e.off(r,t)}},[i,r,e,a])},O=function(e,r){var n="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),i=r?function(e){k("mounts <".concat(n,">")),C("mounts <".concat(n,">"));var r=e.id,i=e.className;return t.createElement("div",{id:r,className:i})}:function(r){var i,a=r.id,s=r.className,l=r.options,u=void 0===l?{}:l,c=r.onBlur,d=r.onFocus,f=r.onReady,h=r.onChange,m=r.onEscape,g=r.onClick,y=r.onLoadError,b=r.onLoaderStart,w=r.onNetworksChange,x=r.onCheckout,_=r.onLineItemClick,E=r.onConfirm,S=r.onCancel,A=r.onShippingAddressChange,O=r.onShippingRateChange,j=k("mounts <".concat(n,">")).elements,R=o(t.useState(null),2),P=R[0],N=R[1],z=t.useRef(null),M=t.useRef(null),D=C("mounts <".concat(n,">")),V=D.setCart,L=D.setCartState;T(P,"blur",c),T(P,"focus",d),T(P,"escape",m),T(P,"click",g),T(P,"loaderror",y),T(P,"loaderstart",b),T(P,"networkschange",w),T(P,"lineitemclick",_),T(P,"confirm",E),T(P,"cancel",S),T(P,"shippingaddresschange",A),T(P,"shippingratechange",O),"cart"===e?i=function(e){L(e),f&&f(e)}:f&&(i="payButton"===e?f:function(){f(P)}),T(P,"ready",i),T(P,"change","cart"===e?function(e){L(e),h&&h(e)}:h),T(P,"checkout","cart"===e?function(e){L(e),x&&x(e)}:x),t.useLayoutEffect(function(){if(null===z.current&&j&&null!==M.current){var t=j.create(e,u);"cart"===e&&V&&V(t),z.current=t,N(t),t.mount(M.current)}},[j,u,V]);var I=p(u);return t.useEffect(function(){if(z.current){var e=v(u,I,["paymentRequest"]);e&&z.current.update(e)}},[u,I]),t.useLayoutEffect(function(){return function(){z.current&&(z.current.destroy(),z.current=null)}},[]),t.createElement("div",{id:a,className:s,ref:M})};return i.propTypes={id:f.string,className:f.string,onChange:f.func,onBlur:f.func,onFocus:f.func,onReady:f.func,onEscape:f.func,onClick:f.func,onLoadError:f.func,onLoaderStart:f.func,onNetworksChange:f.func,onCheckout:f.func,onLineItemClick:f.func,onConfirm:f.func,onCancel:f.func,onShippingAddressChange:f.func,onShippingRateChange:f.func,options:f.object},i.displayName=n,i.__elementType=e,i},j="undefined"==typeof window,R=O("auBankAccount",j),P=O("card",j),N=O("cardNumber",j),z=O("cardExpiry",j),M=O("cardCvc",j),D=O("fpxBank",j),V=O("iban",j),L=O("idealBank",j),I=O("p24Bank",j),F=O("epsBank",j),$=O("payment",j),U=O("payButton",j),B=O("paymentRequestButton",j),Z=O("linkAuthentication",j),q=O("address",j),W=O("shippingAddress",j),J=O("cart",j),H=O("paymentMethodMessaging",j),Y=O("affirmMessage",j),K=O("afterpayClearpayMessage",j);e.AddressElement=q,e.AffirmMessageElement=Y,e.AfterpayClearpayMessageElement=K,e.AuBankAccountElement=R,e.CardCvcElement=M,e.CardElement=P,e.CardExpiryElement=z,e.CardNumberElement=N,e.CartElement=J,e.Elements=S,e.ElementsConsumer=A,e.EpsBankElement=F,e.FpxBankElement=D,e.IbanElement=V,e.IdealBankElement=L,e.LinkAuthenticationElement=Z,e.P24BankElement=I,e.PayButtonElement=U,e.PaymentElement=$,e.PaymentMethodMessagingElement=H,e.PaymentRequestButtonElement=B,e.ShippingAddressElement=W,e.useCartElement=function(){return C("calls useCartElement()").cart},e.useCartElementState=function(){return C("calls useCartElementState()").cartState},e.useElements=function(){return k("calls useElements()").elements},e.useStripe=function(){return k("calls useStripe()").stripe},Object.defineProperty(e,"__esModule",{value:!0})})(t,r(75271))},18772:function(e,t,r){"use strict";r.d(t,{J:function(){return f}});var n="https://js.stripe.com/v3",i=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,a=function(){for(var e=document.querySelectorAll('script[src^="'.concat(n,'"]')),t=0;t<e.length;t++){var r=e[t];if(i.test(r.src))return r}return null},o=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(n).concat(t);var i=document.head||document.body;if(!i)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(r),r},s=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:t})},l=null,u=function(e,t,r){if(null===e)return null;var n=e.apply(void 0,t);return s(n,r),n},c=Promise.resolve().then(function(){return null!==l?l:l=new Promise(function(e,t){if("undefined"==typeof window||"undefined"==typeof document){e(null);return}if(window.Stripe,window.Stripe){e(window.Stripe);return}try{var r=a();r||(r=o(null)),r.addEventListener("load",function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))}),r.addEventListener("error",function(){t(Error("Failed to load Stripe.js"))})}catch(e){t(e);return}})}),d=!1;c.catch(function(e){d||console.warn(e)});var f=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d=!0;var n=Date.now();return c.then(function(e){return u(e,t,n)})}},19800:function(e,t,r){"use strict";r.d(t,{Ry:function(){return u}});var n=new WeakMap,i=new WeakMap,a={},o=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=s(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});a[r]||(a[r]=new WeakMap);var c=a[r],d=[],f=new Set,p=new Set(u),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};u.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(l),a=null!==t&&"false"!==t,o=(n.get(e)||0)+1,s=(c.get(e)||0)+1;n.set(e,o),c.set(e,s),d.push(e),1===o&&a&&i.set(e,!0),1===s&&e.setAttribute(r,"true"),a||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),o++,function(){d.forEach(function(e){var t=n.get(e)-1,a=c.get(e)-1;n.set(e,t),c.set(e,a),t||(i.has(e)||e.removeAttribute(l),i.delete(e)),a||e.removeAttribute(r)}),--o||(n=new WeakMap,n=new WeakMap,i=new WeakMap,a={})}},u=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),l(n,i,r,"aria-hidden")):function(){return null}}},96471:function(e,t,r){"use strict";r.d(t,{F:function(){return o}});var n=r(75271);let i=(0,n.createContext)(void 0),a={setTheme:e=>{},themes:[]},o=()=>{var e;return null!==(e=(0,n.useContext)(i))&&void 0!==e?e:a}},5053:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(75271),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=(e,t)=>{let r=(0,n.forwardRef)((r,o)=>{let{color:s="currentColor",size:l=24,strokeWidth:u=2,absoluteStrokeWidth:c,children:d,...f}=r;return(0,n.createElement)("svg",{ref:o,...i,width:l,height:l,stroke:s,strokeWidth:c?24*Number(u)/Number(l):u,className:"lucide lucide-".concat(a(e)),...f},[...t.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...(Array.isArray(d)?d:[d])||[]])});return r.displayName="".concat(e),r}},73654:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(5053).Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},74932:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(5053).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},20059:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(5053).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},87959:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(5053).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},90632:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let n=r(42430),i=r(11778),a=r(52676),o=i._(r(75271)),s=n._(r(8720)),l=r(4158),u=r(56858),c=r(78987);r(5592);let d=r(60508);function f(e){return"/"===e[0]?e.slice(1):e}let p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},h=new Set,m="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",g=new Map([["default",function(e){let{config:t,src:r,width:n,quality:i}=e;return r.endsWith(".svg")&&!t.dangerouslyAllowSVG?r:(0,d.normalizePathTrailingSlash)(t.path)+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)}],["imgix",function(e){let{config:t,src:r,width:n,quality:i}=e,a=new URL(""+t.path+f(r)),o=a.searchParams;return o.set("auto",o.getAll("auto").join(",")||"format"),o.set("fit",o.get("fit")||"max"),o.set("w",o.get("w")||n.toString()),i&&o.set("q",i.toString()),a.href}],["cloudinary",function(e){let{config:t,src:r,width:n,quality:i}=e,a=["f_auto","c_limit","w_"+n,"q_"+(i||"auto")].join(",")+"/";return""+t.path+a+f(r)}],["akamai",function(e){let{config:t,src:r,width:n}=e;return""+t.path+f(r)+"?imwidth="+n}],["custom",function(e){let{src:t}=e;throw Error('Image with src "'+t+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}]]);function v(e){return void 0!==e.default}function y(e){let{config:t,src:r,unoptimized:n,layout:i,width:a,quality:o,sizes:s,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:c}=function(e,t,r,n){let{deviceSizes:i,allSizes:a}=e;if(n&&("fill"===r||"responsive"===r)){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:a.filter(t=>t>=i[0]*e),kind:"w"}}return{widths:a,kind:"w"}}return"number"!=typeof t||"fill"===r||"responsive"===r?{widths:i,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>a.find(t=>t>=e)||a[a.length-1]))],kind:"x"}}(t,a,i,s),d=u.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:u.map((e,n)=>l({config:t,src:r,quality:o,width:e})+" "+("w"===c?e:n+1)+c).join(", "),src:l({config:t,src:r,quality:o,width:u[d]})}}function b(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function w(e){var t;let r=(null==(t=e.config)?void 0:t.loader)||"default",n=g.get(r);if(n)return n(e);throw Error('Unknown "loader" found in "next.config.js". Expected: '+l.VALID_LOADERS.join(", ")+". Received: "+r)}function x(e,t,r,n,i,a){e&&e.src!==m&&e["data-loaded-src"]!==t&&(e["data-loaded-src"]=t,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentNode&&(h.add(t),"blur"===n&&a(!0),null==i?void 0:i.current)){let{naturalWidth:t,naturalHeight:r}=e;i.current({naturalWidth:t,naturalHeight:r})}}))}let _=e=>{let{imgAttributes:t,heightInt:r,widthInt:n,qualityInt:i,layout:s,className:l,imgStyle:u,blurStyle:c,isLazy:d,placeholder:f,loading:p,srcString:h,config:m,unoptimized:g,loader:v,onLoadingCompleteRef:b,setBlurComplete:w,setIntersection:_,onLoad:E,onError:S,isVisible:k,noscriptSizes:C,...A}=e;return p=d?"lazy":p,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{...A,...t,decoding:"async","data-nimg":s,className:l,style:{...u,...c},ref:(0,o.useCallback)(e=>{_(e),(null==e?void 0:e.complete)&&x(e,h,s,f,b,w)},[_,h,s,f,b,w]),onLoad:e=>{x(e.currentTarget,h,s,f,b,w),E&&E(e)},onError:e=>{"blur"===f&&w(!0),S&&S(e)}}),(d||"blur"===f)&&(0,a.jsx)("noscript",{children:(0,a.jsx)("img",{...A,loading:p,decoding:"async","data-nimg":s,style:u,className:l,...y({config:m,src:h,unoptimized:g,layout:s,width:n,quality:i,sizes:C,loader:v})})})]})};function E(e){var t;let r,{src:n,sizes:i,unoptimized:d=!1,priority:f=!1,loading:g,lazyRoot:x=null,lazyBoundary:E,className:S,quality:k,width:C,height:A,style:T,objectFit:O,objectPosition:j,onLoadingComplete:R,placeholder:P="empty",blurDataURL:N,...z}=e,M=(0,o.useContext)(c.ImageConfigContext),D=(0,o.useMemo)(()=>{let e=p||M||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}},[M]),V=i?"responsive":"intrinsic";"layout"in z&&(z.layout&&(V=z.layout),delete z.layout);let L=w;if("loader"in z){if(z.loader){let e=z.loader;L=t=>{let{config:r,...n}=t;return e(n)}}delete z.loader}let I="";if("object"==typeof(t=n)&&(v(t)||void 0!==t.src)){let e=v(n)?n.default:n;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(N=N||e.blurDataURL,I=e.src,(!V||"fill"!==V)&&(A=A||e.height,C=C||e.width,!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))}let F=!f&&("lazy"===g||void 0===g);((n="string"==typeof n?n:I).startsWith("data:")||n.startsWith("blob:"))&&(d=!0,F=!1),h.has(n)&&(F=!1),D.unoptimized&&(d=!0);let[$,U]=(0,o.useState)(!1),[B,Z,q]=(0,u.useIntersection)({rootRef:x,rootMargin:E||"200px",disabled:!F}),W=!F||Z,J={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},H={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Y=!1,K=b(C),X=b(A),G=b(k),Q=Object.assign({},T,{position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:O,objectPosition:j}),ee="blur"!==P||$?{}:{backgroundSize:O||"cover",backgroundPosition:j||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'+N+'")'};if("fill"===V)J.display="block",J.position="absolute",J.top=0,J.left=0,J.bottom=0,J.right=0;else if(void 0!==K&&void 0!==X){let e=X/K,t=isNaN(e)?"100%":""+100*e+"%";"responsive"===V?(J.display="block",J.position="relative",Y=!0,H.paddingTop=t):"intrinsic"===V?(J.display="inline-block",J.position="relative",J.maxWidth="100%",Y=!0,H.maxWidth="100%",r="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27"+K+"%27%20height=%27"+X+"%27/%3e"):"fixed"===V&&(J.display="inline-block",J.position="relative",J.width=K,J.height=X)}let et={src:m,srcSet:void 0,sizes:void 0};W&&(et=y({config:D,src:n,unoptimized:d,layout:V,width:K,quality:G,sizes:i,loader:L}));let er=n,en={imageSrcSet:et.srcSet,imageSizes:et.sizes,crossOrigin:z.crossOrigin,referrerPolicy:z.referrerPolicy},ei=o.default.useLayoutEffect,ea=(0,o.useRef)(R),eo=(0,o.useRef)(n);(0,o.useEffect)(()=>{ea.current=R},[R]),ei(()=>{eo.current!==n&&(q(),eo.current=n)},[q,n]);let es={isLazy:F,imgAttributes:et,heightInt:X,widthInt:K,qualityInt:G,layout:V,className:S,imgStyle:Q,blurStyle:ee,loading:g,config:D,unoptimized:d,placeholder:P,loader:L,srcString:er,onLoadingCompleteRef:ea,setBlurComplete:U,setIntersection:B,isVisible:W,noscriptSizes:i,...z};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{style:J,children:[Y?(0,a.jsx)("span",{style:H,children:r?(0,a.jsx)("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:r}):null}):null,(0,a.jsx)(_,{...es})]}),f?(0,a.jsx)(s.default,{children:(0,a.jsx)("link",{rel:"preload",as:"image",href:et.srcSet?void 0:et.src,...en},"__nimg-"+et.src+et.srcSet+et.sizes)}):null]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85789:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return s},noSSR:function(){return o}});let n=r(42430);r(52676),r(75271);let i=n._(r(99627));function a(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let r=i.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let s=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=s?s().then(a):Promise.resolve(a(()=>null))}):(delete n.webpack,delete n.modules,o(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95168:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(42430)._(r(75271)).default.createContext(null)},99627:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(42430)._(r(75271)),i=r(95168),a=[],o=[],s=!1;function l(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function l(){if(!a){let t=new u(e,r);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!s){let e=r.webpack?r.webpack():r.modules;e&&o.push(t=>{for(let r of e)if(t.includes(r))return l()})}function c(e,t){!function(){l();let e=n.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let o=n.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),n.default.useMemo(()=>{var t;return o.loading||o.error?n.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:a.retry}):o.loaded?n.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>l(),c.displayName="LoadableComponent",n.default.forwardRef(c)}(l,e)}function d(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(a).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(s=!0,t());d(o,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let f=c},66871:function(e,t,r){e.exports=r(85789)},79673:function(e,t,r){e.exports=r(90632)},68104:function(e,t,r){"use strict";r.d(t,{Z:function(){return Y}});var n,i,a,o,s,l,u,c=r(56871),d=r(75271),f="right-scroll-bar-position",p="width-before-scroll-bar";function h(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var m="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,g=new WeakMap,v=(void 0===n&&(n={}),(void 0===i&&(i=function(e){return e}),a=[],o=!1,s={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,o);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){o=!0;var t=[];if(a.length){var r=a;a=[],r.forEach(e),t=a}var n=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(n)};i(),a={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),a}}}}).options=(0,c.pi)({async:!0,ssr:!1},n),s),y=function(){},b=d.forwardRef(function(e,t){var r,n,i,a,o=d.useRef(null),s=d.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),l=s[0],u=s[1],f=e.forwardProps,p=e.children,b=e.className,w=e.removeScrollBar,x=e.enabled,_=e.shards,E=e.sideCar,S=e.noIsolation,k=e.inert,C=e.allowPinchZoom,A=e.as,T=e.gapMode,O=(0,c._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=(r=[o,t],n=function(e){return r.forEach(function(t){return h(t,e)})},(i=(0,d.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,a=i.facade,m(function(){var e=g.get(a);if(e){var t=new Set(e),n=new Set(r),i=a.current;t.forEach(function(e){n.has(e)||h(e,null)}),n.forEach(function(e){t.has(e)||h(e,i)})}g.set(a,r)},[r]),a),R=(0,c.pi)((0,c.pi)({},O),l);return d.createElement(d.Fragment,null,x&&d.createElement(E,{sideCar:v,removeScrollBar:w,shards:_,noIsolation:S,inert:k,setCallbacks:u,allowPinchZoom:!!C,lockRef:o,gapMode:T}),f?d.cloneElement(d.Children.only(p),(0,c.pi)((0,c.pi)({},R),{ref:j})):d.createElement(void 0===A?"div":A,(0,c.pi)({},R,{className:b,ref:j}),p))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:p,zeroRight:f};var w=function(e){var t=e.sideCar,r=(0,c._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return d.createElement(n,(0,c.pi)({},r))};w.isSideCarExport=!0;var x=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_=function(){var e=x();return function(t,r){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},E=function(){var e=_();return function(t){return e(t.styles,t.dynamic),null}},S={left:0,top:0,right:0,gap:0},k=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[k(r),k(n),k(i)]},A=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return S;var t=C(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},T=E(),O="data-scroll-locked",j=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(s,"px ").concat(n,";\n  }\n  body[").concat(O,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(o,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(f," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(p," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(f," .").concat(f," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(p," .").concat(p," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(O,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},R=function(){var e=parseInt(document.body.getAttribute(O)||"0",10);return isFinite(e)?e:0},P=function(){d.useEffect(function(){return document.body.setAttribute(O,(R()+1).toString()),function(){var e=R()-1;e<=0?document.body.removeAttribute(O):document.body.setAttribute(O,e.toString())}},[])},N=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;P();var a=d.useMemo(function(){return A(i)},[i]);return d.createElement(T,{styles:j(a,!t,i,r?"":"!important")})},z=!1;if("undefined"!=typeof window)try{var M=Object.defineProperty({},"passive",{get:function(){return z=!0,!0}});window.addEventListener("test",M,M),window.removeEventListener("test",M,M)}catch(e){z=!1}var D=!!z&&{passive:!1},V=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},L=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),I(e,n)){var i=F(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},I=function(e,t){return"v"===e?V(t,"overflowY"):V(t,"overflowX")},F=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},$=function(e,t,r,n,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{var h=F(e,l),m=h[0],g=h[1]-h[2]-o*m;(m||g)&&I(e,l)&&(f+=g,p+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-s>p)&&(c=!0),c},U=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},B=function(e){return[e.deltaX,e.deltaY]},Z=function(e){return e&&"current"in e?e.current:e},q=0,W=[],J=(l=function(e){var t=d.useRef([]),r=d.useRef([0,0]),n=d.useRef(),i=d.useState(q++)[0],a=d.useState(E)[0],o=d.useRef(e);d.useEffect(function(){o.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,c.ev)([e.lockRef.current],(e.shards||[]).map(Z),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var i,a=U(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=L(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=L(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var p=n.current||i;return $(p,t,e,"h"===p?l:u,!0)},[]),l=d.useCallback(function(e){if(W.length&&W[W.length-1]===a){var r="deltaY"in e?B(e):U(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(o.current.shards||[]).map(Z).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=d.useCallback(function(e,r,n,i){var a={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),f=d.useCallback(function(e){r.current=U(e),n.current=void 0},[]),p=d.useCallback(function(t){u(t.type,B(t),t.target,s(t,e.lockRef.current))},[]),h=d.useCallback(function(t){u(t.type,U(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return W.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",l,D),document.addEventListener("touchmove",l,D),document.addEventListener("touchstart",f,D),function(){W=W.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,D),document.removeEventListener("touchmove",l,D),document.removeEventListener("touchstart",f,D)}},[]);var m=e.removeScrollBar,g=e.inert;return d.createElement(d.Fragment,null,g?d.createElement(a,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?d.createElement(N,{gapMode:e.gapMode}):null)},v.useMedium(l),w),H=d.forwardRef(function(e,t){return d.createElement(b,(0,c.pi)({},e,{ref:t,sideCar:J}))});H.classNames=b.classNames;var Y=H},166:function(e,t,r){"use strict";r.d(t,{x7:function(){return ec},Me:function(){return ei},oo:function(){return ef},RR:function(){return es},Cp:function(){return eu},dr:function(){return ed},cv:function(){return ea},uY:function(){return eo},dp:function(){return el}});let n=["top","right","bottom","left"],i=Math.min,a=Math.max,o=Math.round,s=Math.floor,l=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(f(e))?"y":"x"}function v(e){return e.replace(/start|end/g,e=>c[e])}function y(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function b(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function w(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function x(e,t,r){let n,{reference:i,floating:a}=e,o=g(t),s=h(g(t)),l=m(s),u=f(t),c="y"===o,d=i.x+i.width/2-a.width/2,v=i.y+i.height/2-a.height/2,y=i[l]/2-a[l]/2;switch(u){case"top":n={x:d,y:i.y-a.height};break;case"bottom":n={x:d,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:v};break;case"left":n={x:i.x-a.width,y:v};break;default:n={x:i.x,y:i.y}}switch(p(t)){case"start":n[s]-=y*(r&&c?-1:1);break;case"end":n[s]+=y*(r&&c?-1:1)}return n}let _=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=a.filter(Boolean),l=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=x(u,n,l),f=n,p={},h=0;for(let r=0;r<s.length;r++){let{name:a,fn:m}=s[r],{x:g,y:v,data:y,reset:b}=await m({x:c,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,p={...p,[a]:{...p[a],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=x(u,f,l)),r=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}};async function E(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=d(t,e),m=b(h),g=s[p?"floating"===f?"reference":"floating":f],v=w(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(g)))||r?g:g.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===f?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),_=await (null==a.isElement?void 0:a.isElement(x))&&await (null==a.getScale?void 0:a.getScale(x))||{x:1,y:1},E=w(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:x,strategy:l}):y);return{top:(v.top-E.top+m.top)/_.y,bottom:(E.bottom-v.bottom+m.bottom)/_.y,left:(v.left-E.left+m.left)/_.x,right:(E.right-v.right+m.right)/_.x}}function S(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function k(e){return n.some(t=>e[t]>=0)}async function C(e,t){let{placement:r,platform:n,elements:i}=e,a=await (null==n.isRTL?void 0:n.isRTL(i.floating)),o=f(r),s=p(r),l="y"===g(r),u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,h=d(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:y}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof y&&(v="end"===s?-1*y:y),l?{x:v*c,y:m*u}:{x:m*u,y:v*c}}function A(){return"undefined"!=typeof window}function T(e){return R(e)?(e.nodeName||"").toLowerCase():"#document"}function O(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(R(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function R(e){return!!A()&&(e instanceof Node||e instanceof O(e).Node)}function P(e){return!!A()&&(e instanceof Element||e instanceof O(e).Element)}function N(e){return!!A()&&(e instanceof HTMLElement||e instanceof O(e).HTMLElement)}function z(e){return!!A()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof O(e).ShadowRoot)}function M(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function D(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function V(e){let t=L(),r=P(e)?F(e):e;return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function L(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function I(e){return["html","body","#document"].includes(T(e))}function F(e){return O(e).getComputedStyle(e)}function $(e){return P(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if("html"===T(e))return e;let t=e.assignedSlot||e.parentNode||z(e)&&e.host||j(e);return z(t)?t.host:t}function B(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=U(t);return I(r)?t.ownerDocument?t.ownerDocument.body:t.body:N(r)&&M(r)?r:e(r)}(e),a=i===(null==(n=e.ownerDocument)?void 0:n.body),o=O(i);if(a){let e=Z(o);return t.concat(o,o.visualViewport||[],M(i)?i:[],e&&r?B(e):[])}return t.concat(i,B(i,[],r))}function Z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function q(e){let t=F(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=N(e),a=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=o(r)!==a||o(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function W(e){return P(e)?e:e.contextElement}function J(e){let t=W(e);if(!N(t))return l(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:a}=q(t),s=(a?o(r.width):r.width)/n,u=(a?o(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}let H=l(0);function Y(e){let t=O(e);return L()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:H}function K(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),o=W(e),s=l(1);t&&(n?P(n)&&(s=J(n)):s=J(e));let u=(void 0===(i=r)&&(i=!1),n&&(!i||n===O(o))&&i)?Y(o):l(0),c=(a.left+u.x)/s.x,d=(a.top+u.y)/s.y,f=a.width/s.x,p=a.height/s.y;if(o){let e=O(o),t=n&&P(n)?O(n):n,r=e,i=Z(r);for(;i&&n&&t!==r;){let e=J(i),t=i.getBoundingClientRect(),n=F(i),a=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=a,d+=o,i=Z(r=O(i))}}return w({width:f,height:p,x:c,y:d})}function X(e,t){let r=$(e).scrollLeft;return t?t.left+r:K(j(e)).left+r}function G(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=O(e),n=j(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=L();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}(e,r);else if("document"===t)n=function(e){let t=j(e),r=$(e),n=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=a(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+X(e),l=-r.scrollTop;return"rtl"===F(n).direction&&(s+=a(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:l}}(j(e));else if(P(t))n=function(e,t){let r=K(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=N(e)?J(e):l(1),o=e.clientWidth*a.x;return{width:o,height:e.clientHeight*a.y,x:i*a.x,y:n*a.y}}(t,r);else{let r=Y(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return w(n)}function Q(e){return"static"===F(e).position}function ee(e,t){if(!N(e)||"fixed"===F(e).position)return null;if(t)return t(e);let r=e.offsetParent;return j(e)===r&&(r=r.ownerDocument.body),r}function et(e,t){let r=O(e);if(D(e))return r;if(!N(e)){let t=U(e);for(;t&&!I(t);){if(P(t)&&!Q(t))return t;t=U(t)}return r}let n=ee(e,t);for(;n&&["table","td","th"].includes(T(n))&&Q(n);)n=ee(n,t);return n&&I(n)&&Q(n)&&!V(n)?r:n||function(e){let t=U(e);for(;N(t)&&!I(t);){if(V(t))return t;if(D(t))break;t=U(t)}return null}(e)||r}let er=async function(e){let t=this.getOffsetParent||et,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=N(t),i=j(t),a="fixed"===r,o=K(e,!0,a,t),s={scrollLeft:0,scrollTop:0},u=l(0);if(n||!n&&!a){if(("body"!==T(t)||M(i))&&(s=$(t)),n){let e=K(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=X(i))}let c=0,d=0;if(i&&!n&&!a){let e=i.getBoundingClientRect();d=e.top+s.scrollTop,c=e.left+s.scrollLeft-X(i,e)}return{x:o.left+s.scrollLeft-u.x-c,y:o.top+s.scrollTop-u.y-d,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},en={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,a="fixed"===i,o=j(n),s=!!t&&D(t.floating);if(n===o||s&&a)return r;let u={scrollLeft:0,scrollTop:0},c=l(1),d=l(0),f=N(n);if((f||!f&&!a)&&(("body"!==T(n)||M(o))&&(u=$(n)),N(n))){let e=K(n);c=J(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x,y:r.y*c.y-u.scrollTop*c.y+d.y}},getDocumentElement:j,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,s=[..."clippingAncestors"===r?D(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=B(e,[],!1).filter(e=>P(e)&&"body"!==T(e)),i=null,a="fixed"===F(e).position,o=a?U(e):e;for(;P(o)&&!I(o);){let t=F(o),r=V(o);r||"fixed"!==t.position||(i=null),(a?!r&&!i:!r&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||M(o)&&!r&&function e(t,r){let n=U(t);return!(n===r||!P(n)||I(n))&&("fixed"===F(n).position||e(n,r))}(e,o))?n=n.filter(e=>e!==o):i=t,o=U(o)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=s[0],u=s.reduce((e,r)=>{let n=G(t,r,o);return e.top=a(n.top,e.top),e.right=i(n.right,e.right),e.bottom=i(n.bottom,e.bottom),e.left=a(n.left,e.left),e},G(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:et,getElementRects:er,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=q(e);return{width:t,height:r}},getScale:J,isElement:P,isRTL:function(e){return"rtl"===F(e).direction}};function ei(e,t,r,n){let o;void 0===n&&(n={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=n,p=W(e),h=l||u?[...p?B(p):[],...B(t)]:[];h.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let m=p&&d?function(e,t){let r,n=null,o=j(e);function l(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let{left:f,top:p,width:h,height:m}=e.getBoundingClientRect();if(c||t(),!h||!m)return;let g=s(p),v=s(o.clientWidth-(f+h)),y={rootMargin:-g+"px "+-v+"px "+-s(o.clientHeight-(p+m))+"px "+-s(f)+"px",threshold:a(0,i(1,d))||1},b=!0;function w(e){let t=e[0].intersectionRatio;if(t!==d){if(!b)return u();t?u(!1,t):r=setTimeout(()=>{u(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(w,{...y,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(w,y)}n.observe(e)}(!0),l}(p,r):null,g=-1,v=null;c&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),p&&!f&&v.observe(p),v.observe(t));let y=f?K(e):null;return f&&function t(){let n=K(e);y&&(n.x!==y.x||n.y!==y.y||n.width!==y.width||n.height!==y.height)&&r(),y=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;h.forEach(e=>{l&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,f&&cancelAnimationFrame(o)}}let ea=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:a,placement:o,middlewareData:s}=t,l=await C(t,e);return o===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},eo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=d(e,t),p={x:r,y:n},m=await E(t,c),v=g(f(o)),y=h(v),b=p[y],w=p[v];if(s){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",r=b+m[e],n=b-m[t];b=a(r,i(b,n))}if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",r=w+m[e],n=w-m[t];w=a(r,i(w,n))}let x=u.fn({...t,[y]:b,[v]:w});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[y]:s,[v]:l}}}}}},es=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,a,o;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:b,elements:w}=t,{mainAxis:x=!0,crossAxis:_=!0,fallbackPlacements:S,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:A=!0,...T}=d(e,t);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let O=f(s),j=g(c),R=f(c)===c,P=await (null==b.isRTL?void 0:b.isRTL(w.floating)),N=S||(R||!A?[y(c)]:function(e){let t=y(e);return[v(e),t,v(t)]}(c)),z="none"!==C;!S&&z&&N.push(...function(e,t,r,n){let i=p(e),a=function(e,t,r){let n=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(r)return t?i:n;return t?n:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===r,n);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(v)))),a}(c,A,C,P));let M=[c,...N],D=await E(t,T),V=[],L=(null==(n=l.flip)?void 0:n.overflows)||[];if(x&&V.push(D[O]),_){let e=function(e,t,r){void 0===r&&(r=!1);let n=p(e),i=h(g(e)),a=m(i),o="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=y(o)),[o,y(o)]}(s,u,P);V.push(D[e[0]],D[e[1]])}if(L=[...L,{placement:s,overflows:V}],!V.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=M[e];if(t)return{data:{index:e,overflows:L},reset:{placement:t}};let r=null==(a=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!r)switch(k){case"bestFit":{let e=null==(o=L.filter(e=>{if(z){let t=g(e.placement);return t===j||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=c}if(s!==r)return{reset:{placement:r}}}return{}}}},el=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let o,s;let{placement:l,rects:u,platform:c,elements:h}=t,{apply:m=()=>{},...v}=d(e,t),y=await E(t,v),b=f(l),w=p(l),x="y"===g(l),{width:_,height:S}=u.floating;"top"===b||"bottom"===b?(o=b,s=w===(await (null==c.isRTL?void 0:c.isRTL(h.floating))?"start":"end")?"left":"right"):(s=b,o="end"===w?"top":"bottom");let k=S-y.top-y.bottom,C=_-y.left-y.right,A=i(S-y[o],k),T=i(_-y[s],C),O=!t.middlewareData.shift,j=A,R=T;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(R=C),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(j=k),O&&!w){let e=a(y.left,0),t=a(y.right,0),r=a(y.top,0),n=a(y.bottom,0);x?R=_-2*(0!==e||0!==t?e+t:a(y.left,y.right)):j=S-2*(0!==r||0!==n?r+n:a(y.top,y.bottom))}await m({...t,availableWidth:R,availableHeight:j});let P=await c.getDimensions(h.floating);return _!==P.width||S!==P.height?{reset:{rects:!0}}:{}}}},eu=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=d(e,t);switch(n){case"referenceHidden":{let e=S(await E(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:k(e)}}}case"escaped":{let e=S(await E(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:k(e)}}}default:return{}}}}},ec=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:s,platform:l,elements:u,middlewareData:c}=t,{element:f,padding:v=0}=d(e,t)||{};if(null==f)return{};let y=b(v),w={x:r,y:n},x=h(g(o)),_=m(x),E=await l.getDimensions(f),S="y"===x,k=S?"clientHeight":"clientWidth",C=s.reference[_]+s.reference[x]-w[x]-s.floating[_],A=w[x]-s.reference[x],T=await (null==l.getOffsetParent?void 0:l.getOffsetParent(f)),O=T?T[k]:0;O&&await (null==l.isElement?void 0:l.isElement(T))||(O=u.floating[k]||s.floating[_]);let j=O/2-E[_]/2-1,R=i(y[S?"top":"left"],j),P=i(y[S?"bottom":"right"],j),N=O-E[_]-P,z=O/2-E[_]/2+(C/2-A/2),M=a(R,i(z,N)),D=!c.arrow&&null!=p(o)&&z!==M&&s.reference[_]/2-(z<R?R:P)-E[_]/2<0,V=D?z<R?z-R:z-N:0;return{[x]:w[x]+V,data:{[x]:M,centerOffset:z-M-V,...D&&{alignmentOffset:V}},reset:D}}}),ed=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=d(e,t),c={x:r,y:n},p=g(i),m=h(p),v=c[m],y=c[p],b=d(s,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){let e="y"===m?"height":"width",t=a.reference[m]-a.floating[e]+w.mainAxis,r=a.reference[m]+a.reference[e]-w.mainAxis;v<t?v=t:v>r&&(v=r)}if(u){var x,_;let e="y"===m?"width":"height",t=["top","left"].includes(f(i)),r=a.reference[p]-a.floating[e]+(t&&(null==(x=o.offset)?void 0:x[p])||0)+(t?0:w.crossAxis),n=a.reference[p]+a.reference[e]+(t?0:(null==(_=o.offset)?void 0:_[p])||0)-(t?w.crossAxis:0);y<r?y=r:y>n&&(y=n)}return{[m]:v,[p]:y}}}},ef=(e,t,r)=>{let n=new Map,i={platform:en,...r},a={...i.platform,_c:n};return _(e,t,{...i,platform:a})}},95061:function(e,t,r){"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{M:function(){return n}})},54663:function(e,t,r){"use strict";r.d(t,{B:function(){return l}});var n=r(75271),i=r(91908),a=r(81712),o=r(54263),s=r(52676);function l(e){let t=e+"CollectionProvider",[r,l]=(0,i.b)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,i=n.useRef(null),a=n.useRef(new Map).current;return(0,s.jsx)(u,{scope:t,itemMap:a,collectionRef:i,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=c(f,r),l=(0,a.e)(t,i.collectionRef);return(0,s.jsx)(o.g7,{ref:l,children:n})});p.displayName=f;let h=e+"CollectionItemSlot",m="data-radix-collection-item",g=n.forwardRef((e,t)=>{let{scope:r,children:i,...l}=e,u=n.useRef(null),d=(0,a.e)(t,u),f=c(h,r);return n.useEffect(()=>(f.itemMap.set(u,{ref:u,...l}),()=>void f.itemMap.delete(u))),(0,s.jsx)(o.g7,{[m]:"",ref:d,children:i})});return g.displayName=h,[{Provider:d,Slot:p,ItemSlot:g},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}},81712:function(e,t,r){"use strict";r.d(t,{F:function(){return i},e:function(){return a}});var n=r(75271);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function a(...e){return n.useCallback(i(...e),e)}},91908:function(e,t,r){"use strict";r.d(t,{b:function(){return a}});var n=r(75271),i=r(52676);function a(e,t=[]){let r=[],a=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return a.scopeName=e,[function(t,a){let o=n.createContext(a),s=r.length;function l(t){let{scope:r,children:a,...l}=t,u=r?.[e][s]||o,c=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:a})}return r=[...r,a],l.displayName=t+"Provider",[l,function(r,i){let l=i?.[e][s]||o,u=n.useContext(l);if(u)return u;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(a,...t)]}},11853:function(e,t,r){"use strict";r.d(t,{b:function(){return o},k:function(){return a}});var n=r(75271),i=r(52676);function a(e,t){let r=n.createContext(t),a=e=>{let{children:t,...a}=e,o=n.useMemo(()=>a,Object.values(a));return(0,i.jsx)(r.Provider,{value:o,children:t})};return a.displayName=e+"Provider",[a,function(i){let a=n.useContext(r);if(a)return a;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let r=[],a=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return a.scopeName=e,[function(t,a){let o=n.createContext(a),s=r.length;r=[...r,a];let l=t=>{let{scope:r,children:a,...l}=t,u=r?.[e]?.[s]||o,c=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:a})};return l.displayName=t+"Provider",[l,function(r,i){let l=i?.[e]?.[s]||o,u=n.useContext(l);if(u)return u;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(a,...t)]}},98082:function(e,t,r){"use strict";r.d(t,{Dx:function(){return er},VY:function(){return et},aV:function(){return ee},dk:function(){return en},fC:function(){return X},h_:function(){return Q},x8:function(){return ei},xz:function(){return G}});var n=r(75271),i=r(95061),a=r(81712),o=r(11853),s=r(29804),l=r(53902),u=r(2340),c=r(53620),d=r(653),f=r(90538),p=r(69630),h=r(37581),m=r(68104),g=r(19800),v=r(54263),y=r(52676),b="Dialog",[w,x]=(0,o.b)(b),[_,E]=w(b),S=e=>{let{__scopeDialog:t,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:u=!0}=e,c=n.useRef(null),d=n.useRef(null),[f=!1,p]=(0,l.T)({prop:i,defaultProp:a,onChange:o});return(0,y.jsx)(_,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.M)(),titleId:(0,s.M)(),descriptionId:(0,s.M)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:r})};S.displayName=b;var k="DialogTrigger",C=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=E(k,r),s=(0,a.e)(t,o.triggerRef);return(0,y.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":q(o.open),...n,ref:s,onClick:(0,i.M)(e.onClick,o.onOpenToggle)})});C.displayName=k;var A="DialogPortal",[T,O]=w(A,{forceMount:void 0}),j=e=>{let{__scopeDialog:t,forceMount:r,children:i,container:a}=e,o=E(A,t);return(0,y.jsx)(T,{scope:t,forceMount:r,children:n.Children.map(i,e=>(0,y.jsx)(f.z,{present:r||o.open,children:(0,y.jsx)(d.h,{asChild:!0,container:a,children:e})}))})};j.displayName=A;var R="DialogOverlay",P=n.forwardRef((e,t)=>{let r=O(R,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=E(R,e.__scopeDialog);return a.modal?(0,y.jsx)(f.z,{present:n||a.open,children:(0,y.jsx)(N,{...i,ref:t})}):null});P.displayName=R;var N=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=E(R,r);return(0,y.jsx)(m.Z,{as:v.g7,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(p.WV.div,{"data-state":q(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),z="DialogContent",M=n.forwardRef((e,t)=>{let r=O(z,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=E(z,e.__scopeDialog);return(0,y.jsx)(f.z,{present:n||a.open,children:a.modal?(0,y.jsx)(D,{...i,ref:t}):(0,y.jsx)(V,{...i,ref:t})})});M.displayName=z;var D=n.forwardRef((e,t)=>{let r=E(z,e.__scopeDialog),o=n.useRef(null),s=(0,a.e)(t,r.contentRef,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,g.Ry)(e)},[]),(0,y.jsx)(L,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,i.M)(e.onFocusOutside,e=>e.preventDefault())})}),V=n.forwardRef((e,t)=>{let r=E(z,e.__scopeDialog),i=n.useRef(!1),a=n.useRef(!1);return(0,y.jsx)(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),L=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,...l}=e,d=E(z,r),f=n.useRef(null),p=(0,a.e)(t,f);return(0,h.EW)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.M,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:s,children:(0,y.jsx)(u.XB,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":q(d.open),...l,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Y,{titleId:d.titleId}),(0,y.jsx)(K,{contentRef:f,descriptionId:d.descriptionId})]})]})}),I="DialogTitle",F=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=E(I,r);return(0,y.jsx)(p.WV.h2,{id:i.titleId,...n,ref:t})});F.displayName=I;var $="DialogDescription",U=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=E($,r);return(0,y.jsx)(p.WV.p,{id:i.descriptionId,...n,ref:t})});U.displayName=$;var B="DialogClose",Z=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=E(B,r);return(0,y.jsx)(p.WV.button,{type:"button",...n,ref:t,onClick:(0,i.M)(e.onClick,()=>a.onOpenChange(!1))})});function q(e){return e?"open":"closed"}Z.displayName=B;var W="DialogTitleWarning",[J,H]=(0,o.k)(W,{contentName:z,titleName:I,docsSlug:"dialog"}),Y=({titleId:e})=>{let t=H(W),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return n.useEffect(()=>{e&&!document.getElementById(e)&&console.error(r)},[r,e]),null},K=({contentRef:e,descriptionId:t})=>{let r=H("DialogDescriptionWarning"),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return n.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&!document.getElementById(t)&&console.warn(i)},[i,e,t]),null},X=S,G=C,Q=j,ee=P,et=M,er=F,en=U,ei=Z},46691:function(e,t,r){"use strict";r.d(t,{gm:function(){return a}});var n=r(75271);r(52676);var i=n.createContext(void 0);function a(e){let t=n.useContext(i);return e||t||"ltr"}},2340:function(e,t,r){"use strict";r.d(t,{XB:function(){return f}});var n,i=r(75271),a=r(95061),o=r(69630),s=r(81712),l=r(20073),u=r(52676),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:y,...b}=e,w=i.useContext(d),[x,_]=i.useState(null),E=x?.ownerDocument??globalThis?.document,[,S]=i.useState({}),k=(0,s.e)(t,e=>_(e)),C=Array.from(w.layers),[A]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),T=C.indexOf(A),O=x?C.indexOf(x):-1,j=w.layersWithOutsidePointerEventsDisabled.size>0,R=O>=T,P=function(e,t=globalThis?.document){let r=(0,l.W)(e),n=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){h("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...w.branches].some(e=>e.contains(t));!R||r||(m?.(e),v?.(e),e.defaultPrevented||y?.())},E),N=function(e,t=globalThis?.document){let r=(0,l.W)(e),n=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!n.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;[...w.branches].some(e=>e.contains(t))||(g?.(e),v?.(e),e.defaultPrevented||y?.())},E);return function(e,t=globalThis?.document){let r=(0,l.W)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{O!==w.layers.size-1||(f?.(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},E),i.useEffect(()=>{if(x)return r&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(n=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(x)),w.layers.add(x),p(),()=>{r&&1===w.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=n)}},[x,E,r,w]),i.useEffect(()=>()=>{x&&(w.layers.delete(x),w.layersWithOutsidePointerEventsDisabled.delete(x),p())},[x,w]),i.useEffect(()=>{let e=()=>S({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(o.WV.div,{...b,ref:k,style:{pointerEvents:j?R?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,P.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,r,{discrete:n}){let i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,o.jH)(i,a):i.dispatchEvent(a)}f.displayName="DismissableLayer",i.forwardRef((e,t)=>{let r=i.useContext(d),n=i.useRef(null),a=(0,s.e)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(o.WV.div,{...e,ref:a})}).displayName="DismissableLayerBranch"},56863:function(e,t,r){"use strict";r.d(t,{VY:function(){return tI},ZA:function(){return tF},ck:function(){return tU},__:function(){return t$},Uv:function(){return tL},Ee:function(){return tB},fC:function(){return tD},Z0:function(){return tZ},Tr:function(){return tq},tu:function(){return tW},xz:function(){return tV}});var n=r(75271),i=r(95061),a=r(81712),o=r(11853),s=r(53902),l=r(69630),u=r(54663),c=r(46691),d=r(2340),f=r(37581),p=r(53620),h=r(29804),m=r(166),g=r(30967),v="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function y(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!y(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!y(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function b(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function w(e,t){let r=b(e);return Math.round(t*r)/r}function x(e){let t=n.useRef(e);return v(()=>{t.current=e}),t}let _=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?(0,m.x7)({element:r.current,padding:n}).fn(t):{}:r?(0,m.x7)({element:r,padding:n}).fn(t):{}}}),E=(e,t)=>({...(0,m.cv)(e),options:[e,t]}),S=(e,t)=>({...(0,m.uY)(e),options:[e,t]}),k=(e,t)=>({...(0,m.dr)(e),options:[e,t]}),C=(e,t)=>({...(0,m.RR)(e),options:[e,t]}),A=(e,t)=>({...(0,m.dp)(e),options:[e,t]}),T=(e,t)=>({...(0,m.Cp)(e),options:[e,t]}),O=(e,t)=>({..._(e),options:[e,t]});var j=r(52676),R=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...a}=e;return(0,j.jsx)(l.WV.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,j.jsx)("polygon",{points:"0,0 30,0 15,10"})})});R.displayName="Arrow";var P=r(91908),N=r(20073),z=r(35921),M=r(89416),D="Popper",[V,L]=(0,P.b)(D),[I,F]=V(D),$=e=>{let{__scopePopper:t,children:r}=e,[i,a]=n.useState(null);return(0,j.jsx)(I,{scope:t,anchor:i,onAnchorChange:a,children:r})};$.displayName=D;var U="PopperAnchor",B=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:i,...o}=e,s=F(U,r),u=n.useRef(null),c=(0,a.e)(t,u);return n.useEffect(()=>{s.onAnchorChange(i?.current||u.current)}),i?null:(0,j.jsx)(l.WV.div,{...o,ref:c})});B.displayName=U;var Z="PopperContent",[q,W]=V(Z),J=n.forwardRef((e,t)=>{let{__scopePopper:r,side:i="bottom",sideOffset:o=0,align:s="center",alignOffset:u=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:h="partial",hideWhenDetached:_=!1,updatePositionStrategy:R="optimized",onPlaced:P,...D}=e,V=F(Z,r),[L,I]=n.useState(null),$=(0,a.e)(t,e=>I(e)),[U,B]=n.useState(null),W=(0,M.t)(U),J=W?.width??0,H=W?.height??0,Y="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},K=Array.isArray(f)?f:[f],ee=K.length>0,et={padding:Y,boundary:K.filter(X),altBoundary:ee},{refs:er,floatingStyles:en,placement:ei,isPositioned:ea,middlewareData:eo}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:a,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=n.useState(i);y(p,i)||h(i);let[_,E]=n.useState(null),[S,k]=n.useState(null),C=n.useCallback(e=>{e!==j.current&&(j.current=e,E(e))},[]),A=n.useCallback(e=>{e!==R.current&&(R.current=e,k(e))},[]),T=o||_,O=s||S,j=n.useRef(null),R=n.useRef(null),P=n.useRef(d),N=null!=u,z=x(u),M=x(a),D=x(c),V=n.useCallback(()=>{if(!j.current||!R.current)return;let e={placement:t,strategy:r,middleware:p};M.current&&(e.platform=M.current),(0,m.oo)(j.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==D.current};L.current&&!y(P.current,t)&&(P.current=t,g.flushSync(()=>{f(t)}))})},[p,t,r,M,D]);v(()=>{!1===c&&P.current.isPositioned&&(P.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let L=n.useRef(!1);v(()=>(L.current=!0,()=>{L.current=!1}),[]),v(()=>{if(T&&(j.current=T),O&&(R.current=O),T&&O){if(z.current)return z.current(T,O,V);V()}},[T,O,V,z,N]);let I=n.useMemo(()=>({reference:j,floating:R,setReference:C,setFloating:A}),[C,A]),F=n.useMemo(()=>({reference:T,floating:O}),[T,O]),$=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!F.floating)return e;let t=w(F.floating,d.x),n=w(F.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...b(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,F.floating,d.x,d.y]);return n.useMemo(()=>({...d,update:V,refs:I,elements:F,floatingStyles:$}),[d,V,I,F,$])}({strategy:"fixed",placement:i+("center"!==s?"-"+s:""),whileElementsMounted:(...e)=>(0,m.Me)(...e,{animationFrame:"always"===R}),elements:{reference:V.anchor},middleware:[E({mainAxis:o+H,alignmentAxis:u}),d&&S({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?k():void 0,...et}),d&&C({...et}),A({...et,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty("--radix-popper-available-width",`${r}px`),o.setProperty("--radix-popper-available-height",`${n}px`),o.setProperty("--radix-popper-anchor-width",`${i}px`),o.setProperty("--radix-popper-anchor-height",`${a}px`)}}),U&&O({element:U,padding:c}),G({arrowWidth:J,arrowHeight:H}),_&&T({strategy:"referenceHidden",...et})]}),[es,el]=Q(ei),eu=(0,N.W)(P);(0,z.b)(()=>{ea&&eu?.()},[ea,eu]);let ec=eo.arrow?.x,ed=eo.arrow?.y,ef=eo.arrow?.centerOffset!==0,[ep,eh]=n.useState();return(0,z.b)(()=>{L&&eh(window.getComputedStyle(L).zIndex)},[L]),(0,j.jsx)("div",{ref:er.setFloating,"data-radix-popper-content-wrapper":"",style:{...en,transform:ea?en.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ep,"--radix-popper-transform-origin":[eo.transformOrigin?.x,eo.transformOrigin?.y].join(" "),...eo.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,j.jsx)(q,{scope:r,placedSide:es,onArrowChange:B,arrowX:ec,arrowY:ed,shouldHideArrow:ef,children:(0,j.jsx)(l.WV.div,{"data-side":es,"data-align":el,...D,ref:$,style:{...D.style,animation:ea?void 0:"none"}})})})});J.displayName=Z;var H="PopperArrow",Y={top:"bottom",right:"left",bottom:"top",left:"right"},K=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=W(H,r),a=Y[i.placedSide];return(0,j.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,j.jsx)(R,{...n,ref:t,style:{...n.style,display:"block"}})})});function X(e){return null!==e}K.displayName=H;var G=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,u]=Q(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p="",h="";return"bottom"===l?(p=a?c:`${d}px`,h=`${-s}px`):"top"===l?(p=a?c:`${d}px`,h=`${n.floating.height+s}px`):"right"===l?(p=`${-s}px`,h=a?c:`${f}px`):"left"===l&&(p=`${n.floating.width+s}px`,h=a?c:`${f}px`),{data:{x:p,y:h}}}});function Q(e){let[t,r="center"]=e.split("-");return[t,r]}var ee=r(653),et=r(90538),er="rovingFocusGroup.onEntryFocus",en={bubbles:!1,cancelable:!0},ei="RovingFocusGroup",[ea,eo,es]=(0,u.B)(ei),[el,eu]=(0,P.b)(ei,[es]),[ec,ed]=el(ei),ef=n.forwardRef((e,t)=>(0,j.jsx)(ea.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(ea.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(ep,{...e,ref:t})})}));ef.displayName=ei;var ep=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:u=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:h,onEntryFocus:m,preventScrollOnEntryFocus:g=!1,...v}=e,y=n.useRef(null),b=(0,a.e)(t,y),w=(0,c.gm)(d),[x=null,_]=(0,s.T)({prop:f,defaultProp:p,onChange:h}),[E,S]=n.useState(!1),k=(0,N.W)(m),C=eo(r),A=n.useRef(!1),[T,O]=n.useState(0);return n.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(er,k),()=>e.removeEventListener(er,k)},[k]),(0,j.jsx)(ec,{scope:r,orientation:o,dir:w,loop:u,currentTabStopId:x,onItemFocus:n.useCallback(e=>_(e),[_]),onItemShiftTab:n.useCallback(()=>S(!0),[]),onFocusableItemAdd:n.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>O(e=>e-1),[]),children:(0,j.jsx)(l.WV.div,{tabIndex:E||0===T?-1:0,"data-orientation":o,...v,ref:b,style:{outline:"none",...e.style},onMouseDown:(0,i.M)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,i.M)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!E){let t=new CustomEvent(er,en);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=C().filter(e=>e.focusable);ev([e.find(e=>e.active),e.find(e=>e.id===x),...e].filter(Boolean).map(e=>e.ref.current),g)}}A.current=!1}),onBlur:(0,i.M)(e.onBlur,()=>S(!1))})})}),eh="RovingFocusGroupItem",em=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:o=!1,tabStopId:s,...u}=e,c=(0,h.M)(),d=s||c,f=ed(eh,r),p=f.currentTabStopId===d,m=eo(r),{onFocusableItemAdd:g,onFocusableItemRemove:v}=f;return n.useEffect(()=>{if(a)return g(),()=>v()},[a,g,v]),(0,j.jsx)(ea.ItemSlot,{scope:r,id:d,focusable:a,active:o,children:(0,j.jsx)(l.WV.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...u,ref:t,onMouseDown:(0,i.M)(e.onMouseDown,e=>{a?f.onItemFocus(d):e.preventDefault()}),onFocus:(0,i.M)(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:(0,i.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return eg[i]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&i.reverse();let a=i.indexOf(e.currentTarget);i=f.loop?(r=i,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):i.slice(a+1)}setTimeout(()=>ev(i))}})})})});em.displayName=eh;var eg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ev(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var ey=r(54263),eb=r(19800),ew=r(68104),ex=["Enter"," "],e_=["ArrowUp","PageDown","End"],eE=["ArrowDown","PageUp","Home",...e_],eS={ltr:[...ex,"ArrowRight"],rtl:[...ex,"ArrowLeft"]},ek={ltr:["ArrowLeft"],rtl:["ArrowRight"]},eC="Menu",[eA,eT,eO]=(0,u.B)(eC),[ej,eR]=(0,o.b)(eC,[eO,L,eu]),eP=L(),eN=eu(),[ez,eM]=ej(eC),[eD,eV]=ej(eC),eL=e=>{let{__scopeMenu:t,open:r=!1,children:i,dir:a,onOpenChange:o,modal:s=!0}=e,l=eP(t),[u,d]=n.useState(null),f=n.useRef(!1),p=(0,N.W)(o),h=(0,c.gm)(a);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,j.jsx)($,{...l,children:(0,j.jsx)(ez,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:d,children:(0,j.jsx)(eD,{scope:t,onClose:n.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:s,children:i})})})};eL.displayName=eC;var eI=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=eP(r);return(0,j.jsx)(B,{...i,...n,ref:t})});eI.displayName="MenuAnchor";var eF="MenuPortal",[e$,eU]=ej(eF,{forceMount:void 0}),eB=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,a=eM(eF,t);return(0,j.jsx)(e$,{scope:t,forceMount:r,children:(0,j.jsx)(et.z,{present:r||a.open,children:(0,j.jsx)(ee.h,{asChild:!0,container:i,children:n})})})};eB.displayName=eF;var eZ="MenuContent",[eq,eW]=ej(eZ),eJ=n.forwardRef((e,t)=>{let r=eU(eZ,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,a=eM(eZ,e.__scopeMenu),o=eV(eZ,e.__scopeMenu);return(0,j.jsx)(eA.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(et.z,{present:n||a.open,children:(0,j.jsx)(eA.Slot,{scope:e.__scopeMenu,children:o.modal?(0,j.jsx)(eH,{...i,ref:t}):(0,j.jsx)(eY,{...i,ref:t})})})})}),eH=n.forwardRef((e,t)=>{let r=eM(eZ,e.__scopeMenu),o=n.useRef(null),s=(0,a.e)(t,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,eb.Ry)(e)},[]),(0,j.jsx)(eK,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,i.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),eY=n.forwardRef((e,t)=>{let r=eM(eZ,e.__scopeMenu);return(0,j.jsx)(eK,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),eK=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:o=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:h,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:y,onDismiss:b,disableOutsideScroll:w,...x}=e,_=eM(eZ,r),E=eV(eZ,r),S=eP(r),k=eN(r),C=eT(r),[A,T]=n.useState(null),O=n.useRef(null),R=(0,a.e)(t,O,_.onContentChange),P=n.useRef(0),N=n.useRef(""),z=n.useRef(0),M=n.useRef(null),D=n.useRef("right"),V=n.useRef(0),L=w?ew.Z:n.Fragment,I=w?{as:ey.g7,allowPinchZoom:!0}:void 0,F=e=>{let t=N.current+e,r=C().filter(e=>!e.disabled),n=document.activeElement,i=r.find(e=>e.ref.current===n)?.textValue,a=function(e,t,r){var n;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===i.length&&(a=a.filter(e=>e!==r));let o=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return o!==r?o:void 0}(r.map(e=>e.textValue),t,i),o=r.find(e=>e.textValue===a)?.ref.current;(function e(t){N.current=t,window.clearTimeout(P.current),""!==t&&(P.current=window.setTimeout(()=>e(""),1e3))})(t),o&&setTimeout(()=>o.focus())};n.useEffect(()=>()=>window.clearTimeout(P.current),[]),(0,f.EW)();let $=n.useCallback(e=>{var t;return D.current===M.current?.side&&!!(t=M.current?.area)&&function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,l=t[a].x,u=t[a].y;s>n!=u>n&&r<(l-o)*(n-s)/(u-s)+o&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)},[]);return(0,j.jsx)(eq,{scope:r,searchRef:N,onItemEnter:n.useCallback(e=>{$(e)&&e.preventDefault()},[$]),onItemLeave:n.useCallback(e=>{$(e)||(O.current?.focus(),T(null))},[$]),onTriggerLeave:n.useCallback(e=>{$(e)&&e.preventDefault()},[$]),pointerGraceTimerRef:z,onPointerGraceIntentChange:n.useCallback(e=>{M.current=e},[]),children:(0,j.jsx)(L,{...I,children:(0,j.jsx)(p.M,{asChild:!0,trapped:s,onMountAutoFocus:(0,i.M)(l,e=>{e.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,j.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:y,onDismiss:b,children:(0,j.jsx)(ef,{asChild:!0,...k,dir:E.dir,orientation:"vertical",loop:o,currentTabStopId:A,onCurrentTabStopIdChange:T,onEntryFocus:(0,i.M)(h,e=>{E.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,j.jsx)(J,{role:"menu","aria-orientation":"vertical","data-state":th(_.open),"data-radix-menu-content":"",dir:E.dir,...S,...x,ref:R,style:{outline:"none",...x.style},onKeyDown:(0,i.M)(x.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&F(e.key));let i=O.current;if(e.target!==i||!eE.includes(e.key))return;e.preventDefault();let a=C().filter(e=>!e.disabled).map(e=>e.ref.current);e_.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,i.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(P.current),N.current="")}),onPointerMove:(0,i.M)(e.onPointerMove,tv(e=>{let t=e.target,r=V.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>V.current?"right":"left";D.current=t,V.current=e.clientX}}))})})})})})})});eJ.displayName=eZ;var eX=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,j.jsx)(l.WV.div,{role:"group",...n,ref:t})});eX.displayName="MenuGroup";var eG=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,j.jsx)(l.WV.div,{...n,ref:t})});eG.displayName="MenuLabel";var eQ="MenuItem",e0="menu.itemSelect",e1=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:o,...s}=e,u=n.useRef(null),c=eV(eQ,e.__scopeMenu),d=eW(eQ,e.__scopeMenu),f=(0,a.e)(t,u),p=n.useRef(!1);return(0,j.jsx)(e2,{...s,ref:f,disabled:r,onClick:(0,i.M)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(e0,{bubbles:!0,cancelable:!0});e.addEventListener(e0,e=>o?.(e),{once:!0}),(0,l.jH)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),p.current=!0},onPointerUp:(0,i.M)(e.onPointerUp,e=>{p.current||e.currentTarget?.click()}),onKeyDown:(0,i.M)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!r&&(!t||" "!==e.key)&&ex.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});e1.displayName=eQ;var e2=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:o=!1,textValue:s,...u}=e,c=eW(eQ,r),d=eN(r),f=n.useRef(null),p=(0,a.e)(t,f),[h,m]=n.useState(!1),[g,v]=n.useState("");return n.useEffect(()=>{let e=f.current;e&&v((e.textContent??"").trim())},[u.children]),(0,j.jsx)(eA.ItemSlot,{scope:r,disabled:o,textValue:s??g,children:(0,j.jsx)(em,{asChild:!0,...d,focusable:!o,children:(0,j.jsx)(l.WV.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...u,ref:p,onPointerMove:(0,i.M)(e.onPointerMove,tv(e=>{o?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.M)(e.onPointerLeave,tv(e=>c.onItemLeave(e))),onFocus:(0,i.M)(e.onFocus,()=>m(!0)),onBlur:(0,i.M)(e.onBlur,()=>m(!1))})})})}),e5=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...a}=e;return(0,j.jsx)(tt,{scope:e.__scopeMenu,checked:r,children:(0,j.jsx)(e1,{role:"menuitemcheckbox","aria-checked":tm(r)?"mixed":r,...a,ref:t,"data-state":tg(r),onSelect:(0,i.M)(a.onSelect,()=>n?.(!!tm(r)||!r),{checkForDefaultPrevented:!1})})})});e5.displayName="MenuCheckboxItem";var e3="MenuRadioGroup",[e7,e4]=ej(e3,{value:void 0,onValueChange:()=>{}}),e6=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...i}=e,a=(0,N.W)(n);return(0,j.jsx)(e7,{scope:e.__scopeMenu,value:r,onValueChange:a,children:(0,j.jsx)(eX,{...i,ref:t})})});e6.displayName=e3;var e9="MenuRadioItem",e8=n.forwardRef((e,t)=>{let{value:r,...n}=e,a=e4(e9,e.__scopeMenu),o=r===a.value;return(0,j.jsx)(tt,{scope:e.__scopeMenu,checked:o,children:(0,j.jsx)(e1,{role:"menuitemradio","aria-checked":o,...n,ref:t,"data-state":tg(o),onSelect:(0,i.M)(n.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});e8.displayName=e9;var te="MenuItemIndicator",[tt,tr]=ej(te,{checked:!1}),tn=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...i}=e,a=tr(te,r);return(0,j.jsx)(et.z,{present:n||tm(a.checked)||!0===a.checked,children:(0,j.jsx)(l.WV.span,{...i,ref:t,"data-state":tg(a.checked)})})});tn.displayName=te;var ti=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,j.jsx)(l.WV.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});ti.displayName="MenuSeparator";var ta=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=eP(r);return(0,j.jsx)(K,{...i,...n,ref:t})});ta.displayName="MenuArrow";var to="MenuSub",[ts,tl]=ej(to),tu=e=>{let{__scopeMenu:t,children:r,open:i=!1,onOpenChange:a}=e,o=eM(to,t),s=eP(t),[l,u]=n.useState(null),[c,d]=n.useState(null),f=(0,N.W)(a);return n.useEffect(()=>(!1===o.open&&f(!1),()=>f(!1)),[o.open,f]),(0,j.jsx)($,{...s,children:(0,j.jsx)(ez,{scope:t,open:i,onOpenChange:f,content:c,onContentChange:d,children:(0,j.jsx)(ts,{scope:t,contentId:(0,h.M)(),triggerId:(0,h.M)(),trigger:l,onTriggerChange:u,children:r})})})};tu.displayName=to;var tc="MenuSubTrigger",td=n.forwardRef((e,t)=>{let r=eM(tc,e.__scopeMenu),o=eV(tc,e.__scopeMenu),s=tl(tc,e.__scopeMenu),l=eW(tc,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=l,f={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,j.jsx)(eI,{asChild:!0,...f,children:(0,j.jsx)(e2,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":th(r.open),...e,ref:(0,a.F)(t,s.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,i.M)(e.onPointerMove,tv(t=>{l.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:(0,i.M)(e.onPointerLeave,tv(e=>{p();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,i="right"===n,a=t[i?"left":"right"],o=t[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:t.top},{x:o,y:t.top},{x:o,y:t.bottom},{x:a,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.M)(e.onKeyDown,t=>{let n=""!==l.searchRef.current;!e.disabled&&(!n||" "!==t.key)&&eS[o.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})});td.displayName=tc;var tf="MenuSubContent",tp=n.forwardRef((e,t)=>{let r=eU(eZ,e.__scopeMenu),{forceMount:o=r.forceMount,...s}=e,l=eM(eZ,e.__scopeMenu),u=eV(eZ,e.__scopeMenu),c=tl(tf,e.__scopeMenu),d=n.useRef(null),f=(0,a.e)(t,d);return(0,j.jsx)(eA.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(et.z,{present:o||l.open,children:(0,j.jsx)(eA.Slot,{scope:e.__scopeMenu,children:(0,j.jsx)(eK,{id:c.contentId,"aria-labelledby":c.triggerId,...s,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.M)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,i.M)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,i.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=ek[u.dir].includes(e.key);t&&r&&(l.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function th(e){return e?"open":"closed"}function tm(e){return"indeterminate"===e}function tg(e){return tm(e)?"indeterminate":e?"checked":"unchecked"}function tv(e){return t=>"mouse"===t.pointerType?e(t):void 0}tp.displayName=tf;var ty="DropdownMenu",[tb,tw]=(0,o.b)(ty,[eR]),tx=eR(),[t_,tE]=tb(ty),tS=e=>{let{__scopeDropdownMenu:t,children:r,dir:i,open:a,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,c=tx(t),d=n.useRef(null),[f=!1,p]=(0,s.T)({prop:a,defaultProp:o,onChange:l});return(0,j.jsx)(t_,{scope:t,triggerId:(0,h.M)(),triggerRef:d,contentId:(0,h.M)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:(0,j.jsx)(eL,{...c,open:f,onOpenChange:p,dir:i,modal:u,children:r})})};tS.displayName=ty;var tk="DropdownMenuTrigger",tC=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,s=tE(tk,r),u=tx(r);return(0,j.jsx)(eI,{asChild:!0,...u,children:(0,j.jsx)(l.WV.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:(0,a.F)(t,s.triggerRef),onPointerDown:(0,i.M)(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,i.M)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tC.displayName=tk;var tA=e=>{let{__scopeDropdownMenu:t,...r}=e,n=tx(t);return(0,j.jsx)(eB,{...n,...r})};tA.displayName="DropdownMenuPortal";var tT="DropdownMenuContent",tO=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=tE(tT,r),s=tx(r),l=n.useRef(!1);return(0,j.jsx)(eJ,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...a,ref:t,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,e=>{l.current||o.triggerRef.current?.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,i.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tO.displayName=tT;var tj=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tx(r);return(0,j.jsx)(eX,{...i,...n,ref:t})});tj.displayName="DropdownMenuGroup";var tR=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tx(r);return(0,j.jsx)(eG,{...i,...n,ref:t})});tR.displayName="DropdownMenuLabel";var tP=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tx(r);return(0,j.jsx)(e1,{...i,...n,ref:t})});tP.displayName="DropdownMenuItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tx(r);return(0,j.jsx)(e5,{...i,...n,ref:t})}).displayName="DropdownMenuCheckboxItem";var tN=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tx(r);return(0,j.jsx)(e6,{...i,...n,ref:t})});tN.displayName="DropdownMenuRadioGroup",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tx(r);return(0,j.jsx)(e8,{...i,...n,ref:t})}).displayName="DropdownMenuRadioItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tx(r);return(0,j.jsx)(tn,{...i,...n,ref:t})}).displayName="DropdownMenuItemIndicator";var tz=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tx(r);return(0,j.jsx)(ti,{...i,...n,ref:t})});tz.displayName="DropdownMenuSeparator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tx(r);return(0,j.jsx)(ta,{...i,...n,ref:t})}).displayName="DropdownMenuArrow",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tx(r);return(0,j.jsx)(td,{...i,...n,ref:t})}).displayName="DropdownMenuSubTrigger";var tM=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tx(r);return(0,j.jsx)(tp,{...i,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tM.displayName="DropdownMenuSubContent";var tD=tS,tV=tC,tL=tA,tI=tO,tF=tj,t$=tR,tU=tP,tB=tN,tZ=tz,tq=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:i,defaultOpen:a}=e,o=tx(t),[l=!1,u]=(0,s.T)({prop:n,defaultProp:a,onChange:i});return(0,j.jsx)(tu,{...o,open:l,onOpenChange:u,children:r})},tW=tM},37581:function(e,t,r){"use strict";r.d(t,{EW:function(){return a}});var n=r(75271),i=0;function a(){n.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??o()),document.body.insertAdjacentElement("beforeend",e[1]??o()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function o(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},53620:function(e,t,r){"use strict";let n;r.d(t,{M:function(){return f}});var i=r(75271),a=r(81712),o=r(69630),s=r(20073),l=r(52676),u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=i.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:f,onUnmountAutoFocus:v,...y}=e,[b,w]=i.useState(null),x=(0,s.W)(f),_=(0,s.W)(v),E=i.useRef(null),S=(0,a.e)(t,e=>w(e)),k=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let e=function(e){if(k.paused||!b)return;let t=e.target;b.contains(t)?E.current=t:m(E.current,{select:!0})},t=function(e){if(k.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||m(E.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,b,k.paused]),i.useEffect(()=>{if(b){g.add(k);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,d);b.addEventListener(u,x),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(m(n,{select:t}),document.activeElement!==r)return}(p(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(u,x),setTimeout(()=>{let t=new CustomEvent(c,d);b.addEventListener(c,_),b.dispatchEvent(t),t.defaultPrevented||m(e??document.body,{select:!0}),b.removeEventListener(c,_),g.remove(k)},0)}}},[b,x,_,k]);let C=i.useCallback(e=>{if(!r&&!n||k.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[n,a]=function(e){let t=p(e);return[h(t,e),h(t.reverse(),e)]}(t);n&&a?e.shiftKey||i!==a?e.shiftKey&&i===n&&(e.preventDefault(),r&&m(a,{select:!0})):(e.preventDefault(),r&&m(n,{select:!0})):i===t&&e.preventDefault()}},[r,n,k.paused]);return(0,l.jsx)(o.WV.div,{tabIndex:-1,...y,ref:S,onKeyDown:C})});function p(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function h(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function m(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}f.displayName="FocusScope";var g=(n=[],{add(e){let t=n[0];e!==t&&t?.pause(),(n=v(n,e)).unshift(e)},remove(e){n=v(n,e),n[0]?.resume()}});function v(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},29804:function(e,t,r){"use strict";r.d(t,{M:function(){return l}});var n,i=r(75271),a=r(35921),o=(n||(n=r.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,r]=i.useState(o());return(0,a.b)(()=>{e||r(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},653:function(e,t,r){"use strict";r.d(t,{h:function(){return l}});var n=r(75271),i=r(30967),a=r(69630),o=r(35921),s=r(52676),l=n.forwardRef((e,t)=>{let{container:r,...l}=e,[u,c]=n.useState(!1);(0,o.b)(()=>c(!0),[]);let d=r||u&&globalThis?.document?.body;return d?i.createPortal((0,s.jsx)(a.WV.div,{...l,ref:t}),d):null});l.displayName="Portal"},90538:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(75271),i=r(81712),a=r(35921),o=e=>{let t,r;let{present:o,children:l}=e,u=function(e){var t,r;let[i,o]=n.useState(),l=n.useRef({}),u=n.useRef(e),c=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>r[e][t]??e,t));return n.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,a.b)(()=>{let t=l.current,r=u.current;if(r!==e){let n=c.current,i=s(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,a.b)(()=>{if(i){let e;let t=i.ownerDocument.defaultView??window,r=r=>{let n=s(l.current).includes(r.animationName);if(r.target===i&&n&&(f("ANIMATION_END"),!u.current)){let r=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=r)})}},n=e=>{e.target===i&&(c.current=s(l.current))};return i.addEventListener("animationstart",n),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",n),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{e&&(l.current=getComputedStyle(e)),o(e)},[])}}(o),c="function"==typeof l?l({present:u.isPresent}):n.Children.only(l),d=(0,i.e)(u.ref,(t=Object.getOwnPropertyDescriptor(c.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?c.ref:(t=Object.getOwnPropertyDescriptor(c,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?c.props.ref:c.props.ref||c.ref);return"function"==typeof l||u.isPresent?n.cloneElement(c,{ref:d}):null};function s(e){return e?.animationName||"none"}o.displayName="Presence"},69630:function(e,t,r){"use strict";r.d(t,{WV:function(){return s},jH:function(){return l}});var n=r(75271),i=r(30967),a=r(54263),o=r(52676),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...i}=e,s=n?a.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},54263:function(e,t,r){"use strict";r.d(t,{g7:function(){return o}});var n=r(75271),i=r(81712),a=r(52676),o=n.forwardRef((e,t)=>{let{children:r,...i}=e,o=n.Children.toArray(r),l=o.find(u);if(l){let e=l.props.children,r=o.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(s,{...i,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,a.jsx)(s,{...i,ref:t,children:r})});o.displayName="Slot";var s=n.forwardRef((e,t)=>{let{children:r,...a}=e;if(n.isValidElement(r)){let e,o;let s=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...e)=>{a(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props),ref:t?(0,i.F)(t,s):s})}return n.Children.count(r)>1?n.Children.only(null):null});s.displayName="SlotClone";var l=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function u(e){return n.isValidElement(e)&&e.type===l}},20073:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(75271);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},53902:function(e,t,r){"use strict";r.d(t,{T:function(){return a}});var n=r(75271),i=r(20073);function a({prop:e,defaultProp:t,onChange:r=()=>{}}){let[a,o]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[a]=r,o=n.useRef(a),s=(0,i.W)(t);return n.useEffect(()=>{o.current!==a&&(s(a),o.current=a)},[a,o,s]),r}({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:a,u=(0,i.W)(r);return[l,n.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&u(r)}else o(t)},[s,e,o,u])]}},35921:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});var n=r(75271),i=globalThis?.document?n.useLayoutEffect:()=>{}},89416:function(e,t,r){"use strict";r.d(t,{t:function(){return a}});var n=r(75271),i=r(35921);function a(e){let[t,r]=n.useState(void 0);return(0,i.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},2808:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n);else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(n&&(n+=" "),n+=t);return n},a=(e,t)=>r=>{var a;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(e=>{let t=null==r?void 0:r[e],i=null==s?void 0:s[e];if(null===t)return null;let a=n(t)||n(i);return o[e][a]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return i(e,l,null==t?void 0:null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},84337:function(e,t,r){"use strict";r.d(t,{E:function(){return iZ}});var n,i,a,o,s,l=r(56871),u=r(75271),c=r(60462),d=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},f={measureLayout:d(["layout","layoutId","drag"]),animation:d(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:d(["exit"]),drag:d(["drag","dragControls"]),focus:d(["whileFocus"]),hover:d(["whileHover","onHoverStart","onHoverEnd"]),tap:d(["whileTap","onTap","onTapStart","onTapCancel"]),pan:d(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:d(["whileInView","onViewportEnter","onViewportLeave"])},p=function(){},h=function(){},m=(0,u.createContext)({strict:!1}),g=Object.keys(f),v=g.length,y=(0,u.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),b=(0,u.createContext)({}),w=r(71122),x=r(84656),_=r(28428),E={current:null},S=!1;function k(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function C(e){return Array.isArray(e)}function A(e){return"string"==typeof e||C(e)}function T(e,t,r,n,i){var a;return void 0===n&&(n={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,i)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,i)),t}function O(e,t,r){var n,i,a=e.getProps();return T(a,t,null!=r?r:a.custom,(n={},e.forEachValue(function(e,t){return n[t]=e.get()}),n),(i={},e.forEachValue(function(e,t){return i[t]=e.getVelocity()}),i))}function j(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||A(e.initial)||A(e.animate)||A(e.whileHover)||A(e.whileDrag)||A(e.whileTap)||A(e.whileFocus)||A(e.exit)}function R(e){return!!(j(e)||e.variants)}function P(e){return Array.isArray(e)?e.join(" "):e}var N=r(28993),z={hasAnimatedSinceResize:!0,hasEverUpdated:!1},M=1,D=r(73399),V=(0,u.createContext)({}),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,r=e.props;t&&t.setProps(r)},t.prototype.render=function(){return this.props.children},t}(u.Component),I=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function F(e){if("string"!=typeof e||e.includes("-"));else if(I.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}var $={},U=["","X","Y","Z"],B=["transformPerspective","x","y","z"];function Z(e,t){return B.indexOf(e)-B.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return U.forEach(function(t){return B.push(e+t)})});var q=new Set(B);function W(e){return q.has(e)}var J=new Set(["originX","originY","originZ"]);function H(e,t){var r=t.layout,n=t.layoutId;return W(e)||J.has(e)||(r||void 0!==n)&&(!!$[e]||"opacity"===e)}var Y=function(e){return!!(null!==e&&"object"==typeof e&&e.getVelocity)},K={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function X(e){return e.startsWith("--")}let G=(e,t)=>r=>Math.max(Math.min(r,t),e),Q=e=>e%1?Number(e.toFixed(5)):e,ee=/(-)?([\d]*\.?[\d])+/g,et=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,er=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function en(e){return"string"==typeof e}let ei=e=>({test:t=>en(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ea=ei("deg"),eo=ei("%"),es=ei("px"),el=ei("vh"),eu=ei("vw"),ec=Object.assign(Object.assign({},eo),{parse:e=>eo.parse(e)/100,transform:e=>eo.transform(100*e)}),ed={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ef=Object.assign(Object.assign({},ed),{transform:G(0,1)}),ep=Object.assign(Object.assign({},ed),{default:1});var eh=(0,l.pi)((0,l.pi)({},ed),{transform:Math.round}),em={borderWidth:es,borderTopWidth:es,borderRightWidth:es,borderBottomWidth:es,borderLeftWidth:es,borderRadius:es,radius:es,borderTopLeftRadius:es,borderTopRightRadius:es,borderBottomRightRadius:es,borderBottomLeftRadius:es,width:es,maxWidth:es,height:es,maxHeight:es,size:es,top:es,right:es,bottom:es,left:es,padding:es,paddingTop:es,paddingRight:es,paddingBottom:es,paddingLeft:es,margin:es,marginTop:es,marginRight:es,marginBottom:es,marginLeft:es,rotate:ea,rotateX:ea,rotateY:ea,rotateZ:ea,scale:ep,scaleX:ep,scaleY:ep,scaleZ:ep,skew:ea,skewX:ea,skewY:ea,distance:es,translateX:es,translateY:es,translateZ:es,x:es,y:es,z:es,perspective:es,transformPerspective:es,opacity:ef,originX:ec,originY:ec,originZ:es,zIndex:eh,fillOpacity:ef,strokeOpacity:ef,numOctaves:eh};function eg(e,t,r,n){var i,a,o,s,l=e.style,u=e.vars,c=e.transform,d=e.transformKeys,f=e.transformOrigin;d.length=0;var p=!1,h=!1,m=!0;for(var g in t){var v=t[g];if(X(g)){u[g]=v;continue}var y=em[g],b=y&&"number"==typeof v?y.transform(v):v;if(W(g)){if(p=!0,c[g]=b,d.push(g),!m)continue;v!==(null!==(s=y.default)&&void 0!==s?s:0)&&(m=!1)}else J.has(g)?(f[g]=b,h=!0):l[g]=b}p?l.transform=function(e,t,r,n){var i=e.transform,a=e.transformKeys,o=t.enableHardwareAcceleration,s=t.allowTransformNone,l="";a.sort(Z);for(var u=!1,c=a.length,d=0;d<c;d++){var f=a[d];l+="".concat(K[f]||f,"(").concat(i[f],") "),"z"===f&&(u=!0)}return!u&&(void 0===o||o)?l+="translateZ(0)":l=l.trim(),n?l=n(i,r?"":l):(void 0===s||s)&&r&&(l="none"),l}(e,r,m,n):n?l.transform=n({},""):!t.transform&&l.transform&&(l.transform="none"),h&&(l.transformOrigin=(i=f.originX,a=f.originY,o=f.originZ,"".concat(void 0===i?"50%":i," ").concat(void 0===a?"50%":a," ").concat(void 0===o?0:o)))}var ev=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function ey(e,t,r){for(var n in t)Y(t[n])||H(n,r)||(e[n]=t[n])}var eb=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function ew(e){return eb.has(e)}var ex=function(e){return!ew(e)};try{(n=require("@emotion/is-prop-valid").default)&&(ex=function(e){return e.startsWith("on")?!ew(e):n(e)})}catch(e){}function e_(e,t,r){return"string"==typeof e?e:es.transform(t+r*e)}var eE={offset:"stroke-dashoffset",array:"stroke-dasharray"},eS={offset:"strokeDashoffset",array:"strokeDasharray"};function ek(e,t,r,n){var i,a,o,s,u,c,d,f,p,h,m=t.attrX,g=t.attrY,v=t.originX,y=t.originY,b=t.pathLength,w=t.pathSpacing,x=t.pathOffset;eg(e,(0,l._T)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,n),e.attrs=e.style,e.style={};var _=e.attrs,E=e.style,S=e.dimensions;_.transform&&(S&&(E.transform=_.transform),delete _.transform),S&&(void 0!==v||void 0!==y||E.transform)&&(E.transformOrigin=(i=void 0!==v?v:.5,a=void 0!==y?y:.5,o=e_(i,S.x,S.width),s=e_(a,S.y,S.height),"".concat(o," ").concat(s))),void 0!==m&&(_.x=m),void 0!==g&&(_.y=g),void 0!==b&&(d=!1,void 0===(u=void 0===w?1:w)&&(u=1),void 0===(c=void 0===x?0:x)&&(c=0),void 0===d&&(d=!0),_.pathLength=1,_[(f=d?eE:eS).offset]=es.transform(-c),p=es.transform(b),h=es.transform(u),_[f.array]="".concat(p," ").concat(h))}var eC=function(){return(0,l.pi)((0,l.pi)({},ev()),{attrs:{}})},eA=/([a-z])([A-Z])/g,eT=function(e){return e.replace(eA,"$1-$2").toLowerCase()};function eO(e,t,r,n){var i=t.style,a=t.vars;for(var o in Object.assign(e.style,i,n&&n.getProjectionStyles(r)),a)e.style.setProperty(o,a[o])}var ej=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function eR(e,t,r,n){for(var i in eO(e,t,void 0,n),t.attrs)e.setAttribute(ej.has(i)?i:eT(i),t.attrs[i])}function eP(e){var t=e.style,r={};for(var n in t)(Y(t[n])||H(n,e))&&(r[n]=t[n]);return r}function eN(e){var t=eP(e);for(var r in e)Y(e[r])&&(t["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]);return t}function ez(e){return"object"==typeof e&&"function"==typeof e.start}var eM=function(e){return Array.isArray(e)},eD=function(e){return eM(e)?e[e.length-1]||0:e};function eV(e){var t=Y(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}function eL(e,t,r,n){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,s={latestValues:function(e,t,r,n){var i={},a=(null==r?void 0:r.initial)===!1,o=n(e);for(var s in o)i[s]=eV(o[s]);var u=e.initial,c=e.animate,d=j(e),f=R(e);t&&f&&!d&&!1!==e.inherit&&(null!=u||(u=t.initial),null!=c||(c=t.animate));var p=a||!1===u,h=p?c:u;return h&&"boolean"!=typeof h&&!ez(h)&&(Array.isArray(h)?h:[h]).forEach(function(t){var r=T(e,t);if(r){var n=r.transitionEnd;r.transition;var a=(0,l._T)(r,["transitionEnd","transition"]);for(var o in a){var s=a[o];if(Array.isArray(s)){var u=p?s.length-1:0;s=s[u]}null!==s&&(i[o]=s)}for(var o in n)i[o]=n[o]}}),i}(t,r,n,i),renderState:a()};return o&&(s.mount=function(e){return o(t,e,s)}),s}var eI=function(e){return function(t,r){var n=(0,u.useContext)(b),i=(0,u.useContext)(w.O);return r?eL(e,t,n,i):(0,N.h)(function(){return eL(e,t,n,i)})}},eF={useVisualState:eI({scrapeMotionValuesFromProps:eN,createRenderState:eC,onMount:function(e,t,r){var n=r.renderState,i=r.latestValues;try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}ek(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),eR(t,n)}})},e$={useVisualState:eI({scrapeMotionValuesFromProps:eP,createRenderState:ev})};function eU(e,t,r,n){return void 0===n&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function eB(e,t,r,n){(0,u.useEffect)(function(){var i=e.current;if(r&&i)return eU(i,t,r,n)},[e,t,r,n])}function eZ(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(i=o||(o={})).Animate="animate",i.Hover="whileHover",i.Tap="whileTap",i.Drag="whileDrag",i.Focus="whileFocus",i.InView="whileInView",i.Exit="exit";var eq={pageX:0,pageY:0};function eW(e,t){var r,n,i;return void 0===t&&(t="page"),{point:e.touches?(void 0===(r=t)&&(r="page"),{x:(n=e.touches[0]||e.changedTouches[0]||eq)[r+"X"],y:n[r+"Y"]}):(void 0===(i=t)&&(i="page"),{x:e[i+"X"],y:e[i+"Y"]})}}var eJ=function(e,t){void 0===t&&(t=!1);var r=function(t){return e(t,eW(t))};return t?function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}:r},eH={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},eY={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function eK(e){if(_.j&&null===window.onpointerdown);else if(_.j&&null===window.ontouchstart)return eY[e];else if(_.j&&null===window.onmousedown)return eH[e];return e}function eX(e,t,r,n){return eU(e,eK(t),eJ(r,"pointerdown"===t),n)}function eG(e,t,r,n){return eB(e,eK(t),r&&eJ(r,"pointerdown"===t),n)}function eQ(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var e0=eQ("dragHorizontal"),e1=eQ("dragVertical");function e2(e){var t=!1;if("y"===e)t=e1();else if("x"===e)t=e0();else{var r=e0(),n=e1();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function e5(){var e=e2(!0);return!e||(e(),!1)}function e3(e,t,r){return function(n,i){var a;!eZ(n)||e5()||(null===(a=e.animationState)||void 0===a||a.setActive(o.Hover,t),null==r||r(n,i))}}var e7=function(e,t){return!!t&&(e===t||e7(e,t.parentElement))},e4=r(69161);let e6=(e,t)=>r=>t(e(r)),e9=(...e)=>e.reduce(e6);var e8=new Set,te=new WeakMap,tt=new WeakMap,tr=function(e){var t;null===(t=te.get(e.target))||void 0===t||t(e)},tn=function(e){e.forEach(tr)},ti={some:0,all:1},ta=function(e){return function(t){return e(t),null}},to={inView:ta(function(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,i=e.onViewportLeave,a=e.viewport,s=void 0===a?{}:a,d=(0,u.useRef)({hasEnteredView:!1,isInView:!1}),f=!!(r||n||i);s.once&&d.current.hasEnteredView&&(f=!1),("undefined"==typeof IntersectionObserver?function(e,t,r,n){var i=n.fallback,a=void 0===i||i;(0,u.useEffect)(function(){if(e&&a){if("production"!==c.O){var n;n="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",e8.has(n)||(console.warn(n),e8.add(n))}requestAnimationFrame(function(){t.hasEnteredView=!0;var e,n=r.getProps().onViewportEnter;null==n||n(null),null===(e=r.animationState)||void 0===e||e.setActive(o.InView,!0)})}},[e])}:function(e,t,r,n){var i=n.root,a=n.margin,s=n.amount,c=void 0===s?"some":s,d=n.once;(0,u.useEffect)(function(){if(e){var n,s,u,f,p,h,m,g,v={root:null==i?void 0:i.current,rootMargin:a,threshold:"number"==typeof c?c:ti[c]};return n=r.getInstance(),s=function(e){var n,i=e.isIntersecting;if(t.isInView!==i){if(t.isInView=i,d&&!i&&t.hasEnteredView)return;i&&(t.hasEnteredView=!0),null===(n=r.animationState)||void 0===n||n.setActive(o.InView,i);var a=r.getProps(),s=i?a.onViewportEnter:a.onViewportLeave;null==s||s(e)}},u=v.root,f=(0,l._T)(v,["root"]),p=u||document,tt.has(p)||tt.set(p,{}),(h=tt.get(p))[m=JSON.stringify(f)]||(h[m]=new IntersectionObserver(tn,(0,l.pi)({root:u},f))),g=h[m],te.set(n,s),g.observe(n),function(){te.delete(n),g.unobserve(n)}}},[e,i,a,c])})(f,d.current,t,s)}),tap:ta(function(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,a=e.visualElement,s=t||r||n||i,l=(0,u.useRef)(!1),c=(0,u.useRef)(null),d={passive:!(r||t||n||g)};function f(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function p(){var e;return f(),l.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(o.Tap,!1),!e5()}function h(e,r){p()&&(e7(a.getInstance(),e.target)?null==t||t(e,r):null==n||n(e,r))}function m(e,t){p()&&(null==n||n(e,t))}function g(e,t){var n;f(),l.current||(l.current=!0,c.current=e9(eX(window,"pointerup",h,d),eX(window,"pointercancel",m,d)),null===(n=a.animationState)||void 0===n||n.setActive(o.Tap,!0),null==r||r(e,t))}eG(a,"pointerdown",s?g:void 0,d),(0,e4.z)(f)}),focus:ta(function(e){var t=e.whileFocus,r=e.visualElement;eB(r,"focus",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(o.Focus,!0)}:void 0),eB(r,"blur",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(o.Focus,!1)}:void 0)}),hover:ta(function(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;eG(i,"pointerenter",t||n?e3(i,!0,t):void 0,{passive:!t}),eG(i,"pointerleave",r||n?e3(i,!1,r):void 0,{passive:!r})})},ts=r(30534);function tl(){var e=(0,u.useContext)(w.O);if(null===e)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=(0,ts.M)();return(0,u.useEffect)(function(){return n(i)},[]),!t&&r?[!1,function(){return null==r?void 0:r(i)}]:[!0]}function tu(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}let tc=(e,t,r)=>Math.min(Math.max(r,e),t);function td(e,t){return e*Math.sqrt(1-t*t)}let tf=["duration","bounce"],tp=["stiffness","damping","mass"];function th(e,t){return t.some(t=>void 0!==e[t])}function tm(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,a=(0,l._T)(e,["from","to","restSpeed","restDelta"]);let o={done:!1,value:t},{stiffness:s,damping:u,mass:c,velocity:d,duration:f,isResolvedFromDuration:h}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!th(e,tp)&&th(e,tf)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,a;p(e<=1e4,"Spring duration must be 10 seconds or less");let o=1-t;o=tc(.05,1,o),e=tc(.01,10,e/1e3),o<1?(i=t=>{let n=t*o,i=n*e;return .001-(n-r)/td(t,o)*Math.exp(-i)},a=t=>{let n=t*o*e,a=Math.pow(o,2)*Math.pow(t,2)*e,s=td(Math.pow(t,2),o);return(n*r+r-a)*Math.exp(-n)*(-i(t)+.001>0?-1:1)/s}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),a=t=>e*e*(r-t)*Math.exp(-t*e));let s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,a,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(a),m=tg,g=tg;function v(){let e=d?-(d/1e3):0,n=r-t,a=u/(2*Math.sqrt(s*c)),o=Math.sqrt(s/c)/1e3;if(void 0===i&&(i=Math.min(Math.abs(r-t)/100,.4)),a<1){let t=td(o,a);m=i=>r-Math.exp(-a*o*i)*((e+a*o*n)/t*Math.sin(t*i)+n*Math.cos(t*i)),g=r=>{let i=Math.exp(-a*o*r);return a*o*i*(Math.sin(t*r)*(e+a*o*n)/t+n*Math.cos(t*r))-i*(Math.cos(t*r)*(e+a*o*n)-t*n*Math.sin(t*r))}}else if(1===a)m=t=>r-Math.exp(-o*t)*(n+(e+o*n)*t);else{let t=o*Math.sqrt(a*a-1);m=i=>{let s=Math.exp(-a*o*i),l=Math.min(t*i,300);return r-s*((e+a*o*n)*Math.sinh(l)+t*n*Math.cosh(l))/t}}}return v(),{next:e=>{let t=m(e);if(h)o.done=e>=f;else{let a=1e3*g(e),s=Math.abs(r-t)<=i;o.done=Math.abs(a)<=n&&s}return o.value=o.done?r:t,o},flipTarget:()=>{d=-d,[t,r]=[r,t],v()}}}tm.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let tg=e=>0,tv=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},ty=(e,t,r)=>-r*e+r*t+e,tb=(e,t)=>r=>!!(en(r)&&er.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),tw=(e,t,r)=>n=>{if(!en(n))return n;let[i,a,o,s]=n.match(ee);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},tx=G(0,255),t_=Object.assign(Object.assign({},ed),{transform:e=>Math.round(tx(e))}),tE={test:tb("rgb","red"),parse:tw("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+t_.transform(e)+", "+t_.transform(t)+", "+t_.transform(r)+", "+Q(ef.transform(n))+")"},tS={test:tb("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:tE.transform},tk={test:tb("hsl","hue"),parse:tw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+eo.transform(Q(t))+", "+eo.transform(Q(r))+", "+Q(ef.transform(n))+")"};function tC(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 tA({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,a=0,o=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=tC(s,n,e+1/3),a=tC(s,n,e),o=tC(s,n,e-1/3)}else i=a=o=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:n}}let tT=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},tO=[tS,tE,tk],tj=e=>tO.find(t=>t.test(e)),tR=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,tP=(e,t)=>{let r=tj(e),n=tj(t);h(!!r,tR(e)),h(!!n,tR(t));let i=r.parse(e),a=n.parse(t);r===tk&&(i=tA(i),r=tE),n===tk&&(a=tA(a),n=tE);let o=Object.assign({},i);return e=>{for(let t in o)"alpha"!==t&&(o[t]=tT(i[t],a[t],e));return o.alpha=ty(i.alpha,a.alpha,e),r.transform(o)}},tN={test:e=>tE.test(e)||tS.test(e)||tk.test(e),parse:e=>tE.test(e)?tE.parse(e):tk.test(e)?tk.parse(e):tS.parse(e),transform:e=>en(e)?e:e.hasOwnProperty("red")?tE.transform(e):tk.transform(e)},tz="${c}",tM="${n}";function tD(e){"number"==typeof e&&(e=`${e}`);let t=[],r=0,n=e.match(et);n&&(r=n.length,e=e.replace(et,tz),t.push(...n.map(tN.parse)));let i=e.match(ee);return i&&(e=e.replace(ee,tM),t.push(...i.map(ed.parse))),{values:t,numColors:r,tokenised:e}}function tV(e){return tD(e).values}function tL(e){let{values:t,numColors:r,tokenised:n}=tD(e),i=t.length;return e=>{let t=n;for(let n=0;n<i;n++)t=t.replace(n<r?tz:tM,n<r?tN.transform(e[n]):Q(e[n]));return t}}let tI=e=>"number"==typeof e?0:e,tF={test:function(e){var t,r,n,i;return isNaN(e)&&en(e)&&(null!==(r=null===(t=e.match(ee))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(i=null===(n=e.match(et))||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0},parse:tV,createTransformer:tL,getAnimatableNone:function(e){let t=tV(e);return tL(e)(t.map(tI))}},t$=e=>"number"==typeof e;function tU(e,t){return t$(e)?r=>ty(e,t,r):tN.test(e)?tP(e,t):tW(e,t)}let tB=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>tU(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}},tZ=(e,t)=>{let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=tU(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}};function tq(e){let t=tF.parse(e),r=t.length,n=0,i=0,a=0;for(let e=0;e<r;e++)n||"number"==typeof t[e]?n++:void 0!==t[e].hue?a++:i++;return{parsed:t,numNumbers:n,numRGB:i,numHSL:a}}let tW=(e,t)=>{let r=tF.createTransformer(t),n=tq(e),i=tq(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?e9(tB(n.parsed,i.parsed),r):(p(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),r=>`${r>0?t:e}`)},tJ=(e,t)=>r=>ty(e,t,r);function tH(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let a=e.length;h(a===t.length,"Both input and output ranges must be the same length"),h(!n||!Array.isArray(n)||n.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=function(e,t,r){var n;let i=[],a=r||("number"==typeof(n=e[0])?tJ:"string"==typeof n?tN.test(n)?tP:tW:Array.isArray(n)?tB:"object"==typeof n?tZ:void 0),o=e.length-1;for(let r=0;r<o;r++){let n=a(e[r],e[r+1]);t&&(n=e9(Array.isArray(t)?t[r]:t,n)),i.push(n)}return i}(t,n,i),s=2===a?function([e,t],[r]){return n=>r(tv(e,t,n))}(e,o):function(e,t){let r=e.length,n=r-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[n]&&(a=n-1,o=!0),!o){let t=1;for(;t<r&&!(e[t]>i)&&t!==n;t++);a=t-1}let s=tv(e[a],e[a+1],i);return t[a](s)}}(e,o);return r?t=>s(tc(e[0],e[a-1],t)):s}let tY=e=>t=>1-e(1-t),tK=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tX=e=>t=>t*t*((e+1)*t-e),tG=4/11,tQ=8/11,t0=e=>e,t1=e=>Math.pow(e,2),t2=tY(t1),t5=tK(t1),t3=e=>1-Math.sin(Math.acos(e)),t7=tY(t3),t4=tK(t7),t6=tX(1.525),t9=tY(t6),t8=tK(t6),re=(e=>{let t=tX(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),rt=4356/361,rr=35442/1805,rn=16061/1805,ri=e=>{if(1===e||0===e)return e;let t=e*e;return e<tG?7.5625*t:e<tQ?9.075*t-9.9*e+3.4:e<.9?rt*t-rr*e+rn:10.8*e*e-20.52*e+10.72},ra=tY(ri);function ro({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){let a={done:!1,value:e},o=Array.isArray(t)?t:[e,t],s=(n&&n.length===o.length?n:function(e){let t=e.length;return e.map((e,r)=>0!==r?r/(t-1):0)}(o)).map(e=>e*i);function l(){return tH(s,o,{ease:Array.isArray(r)?r:o.map(()=>r||t5).splice(0,o.length-1)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),u=l()}}}let rs={keyframes:ro,spring:tm,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},s=r*e,l=t+s,u=void 0===a?l:a(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/n);return o.done=!(t>i||t<-i),o.value=o.done?u:u+t,o},flipTarget:()=>{}}}};var rl=r(40931);function ru(e,t,r=0){return e-t-r}let rc=e=>{let t=({delta:t})=>e(t);return{start:()=>rl.ZP.update(t,!0),stop:()=>rl.qY.update(t)}};function rd(e){let t,r,n;var i,{from:a,autoplay:o=!0,driver:s=rc,elapsed:u=0,repeat:c=0,repeatType:d="loop",repeatDelay:f=0,onPlay:p,onStop:h,onComplete:m,onRepeat:g,onUpdate:v}=e,y=(0,l._T)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:b}=y,w=0,x=y.duration,_=!1,E=!0,S=function(e){if(Array.isArray(e.to))return ro;if(rs[e.type])return rs[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return tm;return ro}(y);(null===(i=S.needsInterpolation)||void 0===i?void 0:i.call(S,a,b))&&(n=tH([0,100],[a,b],{clamp:!1}),a=0,b=100);let k=S(Object.assign(Object.assign({},y),{from:a,to:b}));return o&&(null==p||p(),(t=s(function(e){if(E||(e=-e),u+=e,!_){let e=k.next(Math.max(0,u));r=e.value,n&&(r=n(r)),_=E?e.done:u<=0}if(null==v||v(r),_){if(0===w&&(null!=x||(x=u)),w<c){var i,a;i=u,a=x,(E?i>=a+f:i<=-f)&&(w++,"reverse"===d?u=function(e,t,r=0,n=!0){return n?ru(t+-e,t,r):t-(e-t)+r}(u,x,f,E=w%2==0):(u=ru(u,x,f),"mirror"===d&&k.flipTarget()),_=!1,g&&g())}else t.stop(),m&&m()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}var rf=function(e){return 1e3*e};let rp=(e,t)=>1-3*t+3*e,rh=(e,t)=>3*t-6*e,rm=e=>3*e,rg=(e,t,r)=>((rp(t,r)*e+rh(t,r))*e+rm(t))*e,rv=(e,t,r)=>3*rp(t,r)*e*e+2*rh(t,r)*e+rm(t);var ry={linear:t0,easeIn:t1,easeInOut:t5,easeOut:t2,circIn:t3,circInOut:t4,circOut:t7,backIn:t6,backInOut:t8,backOut:t9,anticipate:re,bounceIn:ra,bounceInOut:e=>e<.5?.5*(1-ri(1-2*e)):.5*ri(2*e-1)+.5,bounceOut:ri},rb=function(e){if(Array.isArray(e)){h(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=(0,l.CR)(e,4);return function(e,t,r,n){if(e===t&&r===n)return t0;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=rg(.1*t,e,r);return a=>0===a||1===a?a:rg(function(t){let n=0,a=1;for(;10!==a&&i[a]<=t;++a)n+=.1;let o=n+(t-i[--a])/(i[a+1]-i[a])*.1,s=rv(o,e,r);return s>=.001?function(e,t,r,n){for(let i=0;i<8;++i){let i=rv(t,r,n);if(0===i)break;let a=rg(t,r,n)-e;t-=a/i}return t}(t,o,e,r):0===s?o:function(e,t,r,n,i){let a,o;let s=0;do(a=rg(o=t+(r-t)/2,n,i)-e)>0?r=o:t=o;while(Math.abs(a)>1e-7&&++s<10);return o}(t,n,n+.1,e,r)}(a),t,n)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(h(void 0!==ry[e],"Invalid easing type '".concat(e,"'")),ry[e]):e},rw=function(e,t){return"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&tF.test(t)&&!t.startsWith("url("))},rx=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},r_=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},rE=function(){return{type:"keyframes",ease:"linear",duration:.3}},rS=function(e){return{type:"keyframes",duration:.8,values:e}},rk={x:rx,y:rx,z:rx,rotate:rx,rotateX:rx,rotateY:rx,rotateZ:rx,scaleX:r_,scaleY:r_,scale:r_,opacity:rE,backgroundColor:rE,color:rE,default:r_},rC=function(e,t){var r;return r=eM(t)?rS:rk[e]||rk.default,(0,l.pi)({to:t},r(t))};let rA=new Set(["brightness","contrast","saturate","opacity"]);function rT(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(ee)||[];if(!n)return e;let i=r.replace(n,""),a=rA.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+i+")"}let rO=/([a-z-]*)\(.*?\)/g,rj=Object.assign(Object.assign({},tF),{getAnimatableNone:e=>{let t=e.match(rO);return t?t.map(rT).join(" "):e}});var rR=(0,l.pi)((0,l.pi)({},em),{color:tN,backgroundColor:tN,outlineColor:tN,fill:tN,stroke:tN,borderColor:tN,borderTopColor:tN,borderRightColor:tN,borderBottomColor:tN,borderLeftColor:tN,filter:rj,WebkitFilter:rj}),rP=function(e){return rR[e]};function rN(e,t){var r,n=rP(e);return n!==rj&&(n=tF),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}var rz=!1;function rM(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function rD(e){return"number"==typeof e?0:rN("",e)}function rV(e,t){return e[t]||e.default||e}function rL(e,t,r,n){return void 0===n&&(n={}),t.start(function(i){var a,o,s,u,c,d,f,h,m,g,v,y=(u=r,f=null!==(c=(d=rV(n,e)).from)&&void 0!==c?c:t.get(),h=rw(e,u),"none"===f&&h&&"string"==typeof u?f=rN(e,u):rM(f)&&"string"==typeof u?f=rD(u):!Array.isArray(u)&&rM(u)&&"string"==typeof f&&(u=rD(f)),p((m=rw(e,f))===h,"You are trying to animate ".concat(e,' from "').concat(f,'" to "').concat(u,'". ').concat(f," is not an animatable value - to enable this animation set ").concat(f," to a value animatable to ").concat(u," via the `style` property.")),m&&h&&!1!==d.type?function(){var r,n,a,o,s,c,h,m,g,v,y,b,w,x={from:f,to:u,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===d.type||"decay"===d.type?function({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let h;function m(e){return void 0!==r&&e<r||void 0!==n&&e>n}function g(e){return void 0===r?n:void 0===n?r:Math.abs(r-e)<Math.abs(n-e)?r:n}function v(e){null==h||h.stop(),h=rd(Object.assign(Object.assign({},e),{driver:c,onUpdate:t=>{var r;null==d||d(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:f,onStop:p}))}function y(e){v(Object.assign({type:"spring",stiffness:o,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:g(e)});else{let n,o,s=i*t+e;void 0!==u&&(s=u(s));let c=g(s),d=c===r?-1:1;v({type:"decay",from:e,velocity:t,timeConstant:a,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var r,i;n=o,o=e,r=e-n,t=(i=(0,rl.$B)().delta)?1e3/i*r:0,(1===d&&e>c||-1===d&&e<c)&&y({from:e,to:c,velocity:t})}:void 0})}return{stop:()=>null==h?void 0:h.stop()}}((0,l.pi)((0,l.pi)({},x),d)):rd((0,l.pi)((0,l.pi)({},(r=d,n=x,a=e,Array.isArray(n.to)&&(null!==(o=r.duration)&&void 0!==o||(r.duration=.8)),Array.isArray(n.to)&&null===n.to[0]&&(n.to=(0,l.ev)([],(0,l.CR)(n.to),!1),n.to[0]=n.from),(s=r).when,s.delay,s.delayChildren,s.staggerChildren,s.staggerDirection,s.repeat,s.repeatType,s.repeatDelay,s.from,Object.keys((0,l._T)(s,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"])).length||(r=(0,l.pi)((0,l.pi)({},r),rC(a,n.to))),(0,l.pi)((0,l.pi)({},n),(h=(c=r).ease,m=c.times,g=c.yoyo,v=c.flip,y=c.loop,b=(0,l._T)(c,["ease","times","yoyo","flip","loop"]),w=(0,l.pi)({},b),m&&(w.offset=m),b.duration&&(w.duration=rf(b.duration)),b.repeatDelay&&(w.repeatDelay=rf(b.repeatDelay)),h&&(w.ease=Array.isArray(h)&&"number"!=typeof h[0]?h.map(rb):rb(h)),"tween"===b.type&&(w.type="keyframes"),(g||y||v)&&(p(!rz,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),rz=!0,g?w.repeatType="reverse":y?w.repeatType="loop":v&&(w.repeatType="mirror"),w.repeat=y||g||v||b.repeat),"spring"!==b.type&&(w.type="keyframes"),w)))),{onUpdate:function(e){var t;x.onUpdate(e),null===(t=d.onUpdate)||void 0===t||t.call(d,e)},onComplete:function(){var e;x.onComplete(),null===(e=d.onComplete)||void 0===e||e.call(d)}}))}:function(){var e,r,n=eD(u);return t.set(n),i(),null===(e=null==d?void 0:d.onUpdate)||void 0===e||e.call(d,n),null===(r=null==d?void 0:d.onComplete)||void 0===r||r.call(d),{stop:function(){}}}),b=null!==(s=null!==(o=(rV(a=n,e)||{}).delay)&&void 0!==o?o:a.delay)&&void 0!==s?s:0,w=function(){return v=y()};return b?g=window.setTimeout(w,rf(b)):w(),function(){clearTimeout(g),null==v||v.stop()}})}function rI(e,t){-1===e.indexOf(t)&&e.push(t)}function rF(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var r$=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return rI(this.subscriptions,e),function(){return rF(t.subscriptions,e)}},e.prototype.notify=function(e,t,r){var n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(var i=0;i<n;i++){var a=this.subscriptions[i];a&&a(e,t,r)}}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),rU=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new r$,this.velocityUpdateSubscribers=new r$,this.renderSubscribers=new r$,this.canTrackVelocity=!1,this.updateAndNotify=function(e,r){void 0===r&&(r=!0),t.prev=t.current,t.current=e;var n=(0,rl.$B)(),i=n.delta,a=n.timestamp;t.lastUpdated!==a&&(t.timeDelta=i,t.lastUpdated=a,rl.ZP.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),r&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return rl.ZP.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(r){t.hasAnimated=!0,t.stopAnimation=e(r)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function rB(e){return new rU(e)}var rZ=function(e){return function(t){return t.test(e)}},rq=[ed,es,eo,ea,eu,el,{test:function(e){return"auto"===e},parse:function(e){return e}}],rW=function(e){return rq.find(rZ(e))},rJ=(0,l.ev)((0,l.ev)([],(0,l.CR)(rq),!1),[tN,tF],!1);function rH(e,t,r){void 0===r&&(r={});var n,i=O(e,t,r.custom),a=(i||{}).transition,o=void 0===a?e.getDefaultTransition()||{}:a;r.transitionOverride&&(o=r.transitionOverride);var s=i?function(){return rY(e,i,r)}:function(){return Promise.resolve()},u=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?function(n){void 0===n&&(n=0);var i,a,s,u,c,d,f,p=o.delayChildren;return i=(void 0===p?0:p)+n,a=o.staggerChildren,s=o.staggerDirection,u=r,void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=1),c=[],d=(e.variantChildren.size-1)*a,f=1===s?function(e){return void 0===e&&(e=0),e*a}:function(e){return void 0===e&&(e=0),d-e*a},Array.from(e.variantChildren).sort(rK).forEach(function(e,r){c.push(rH(e,t,(0,l.pi)((0,l.pi)({},u),{delay:i+f(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(c)}:function(){return Promise.resolve()},c=o.when;if(!c)return Promise.all([s(),u(r.delay)]);var d=(0,l.CR)("beforeChildren"===c?[s,u]:[u,s],2),f=d[0],p=d[1];return f().then(p)}function rY(e,t,r){var n,i=void 0===r?{}:r,a=i.delay,o=void 0===a?0:a,s=i.transitionOverride,u=i.type,c=e.makeTargetAnimatable(t),d=c.transition,f=void 0===d?e.getDefaultTransition():d,p=c.transitionEnd,h=(0,l._T)(c,["transition","transitionEnd"]);s&&(f=s);var m=[],g=u&&(null===(n=e.animationState)||void 0===n?void 0:n.getState()[u]);for(var v in h){var y=e.getValue(v),b=h[v];if(!(!y||void 0===b||g&&function(e,t){var r=e.protectedKeys,n=e.needsAnimating,i=r.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,i}(g,v))){var w=(0,l.pi)({delay:o},f);e.shouldReduceMotion&&W(v)&&(w=(0,l.pi)((0,l.pi)({},w),{type:!1,delay:0}));var x=rL(v,y,b,w);m.push(x)}}return Promise.all(m).then(function(){p&&function(e,t){var r=O(e,t),n=r?e.makeTargetAnimatable(r,!1):{},i=n.transitionEnd;n.transition;var a=(0,l._T)(n,["transitionEnd","transition"]);for(var o in a=(0,l.pi)((0,l.pi)({},a),void 0===i?{}:i)){var s=eD(a[o]);e.hasValue(o)?e.getValue(o).set(s):e.addValue(o,rB(s))}}(e,p)})}function rK(e,t){return e.sortNodePosition(t)}var rX=[o.Animate,o.InView,o.Focus,o.Hover,o.Tap,o.Drag,o.Exit],rG=(0,l.ev)([],(0,l.CR)(rX),!1).reverse(),rQ=rX.length;function r0(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var r1={animation:ta(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=function(e){var t,r=function(t){return Promise.all(t.map(function(t){return function(e,t,r){if(void 0===r&&(r={}),e.notifyAnimationStart(t),Array.isArray(t)){var n;n=Promise.all(t.map(function(t){return rH(e,t,r)}))}else if("string"==typeof t)n=rH(e,t,r);else{var i="function"==typeof t?O(e,t,r.custom):t;n=rY(e,i,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))},n=((t={})[o.Animate]=r0(!0),t[o.InView]=r0(),t[o.Hover]=r0(),t[o.Tap]=r0(),t[o.Drag]=r0(),t[o.Focus]=r0(),t[o.Exit]=r0(),t),i={},a=!0,s=function(t,r){var n=O(e,r);if(n){n.transition;var i=n.transitionEnd,a=(0,l._T)(n,["transition","transitionEnd"]);t=(0,l.pi)((0,l.pi)((0,l.pi)({},t),a),i)}return t};function u(t,o){for(var u,c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set,h={},m=1/0,g=0;g<rQ;g++)!function(r){var i,g=rG[r],v=n[g],y=null!==(u=c[g])&&void 0!==u?u:d[g],b=A(y),w=g===o?v.isActive:null;!1===w&&(m=r);var x=y===d[g]&&y!==c[g]&&b;if(x&&a&&e.manuallyAnimateOnMount&&(x=!1),v.protectedKeys=(0,l.pi)({},h),!(!v.isActive&&null===w||!y&&!v.prevProp||ez(y))&&"boolean"!=typeof y){var _=(i=v.prevProp,"string"==typeof y?y!==i:!!C(y)&&!tu(y,i)),E=_||g===o&&v.isActive&&!x&&b||r>m&&b,S=Array.isArray(y)?y:[y],k=S.reduce(s,{});!1===w&&(k={});var T=v.prevResolvedValues,O=void 0===T?{}:T,j=(0,l.pi)((0,l.pi)({},O),k),R=function(e){E=!0,p.delete(e),v.needsAnimating[e]=!0};for(var P in j){var N=k[P],z=O[P];h.hasOwnProperty(P)||(N!==z?eM(N)&&eM(z)?!tu(N,z)||_?R(P):v.protectedKeys[P]=!0:void 0!==N?R(P):p.add(P):void 0!==N&&p.has(P)?R(P):v.protectedKeys[P]=!0)}v.prevProp=y,v.prevResolvedValues=k,v.isActive&&(h=(0,l.pi)((0,l.pi)({},h),k)),a&&e.blockInitialAnimation&&(E=!1),E&&!x&&f.push.apply(f,(0,l.ev)([],(0,l.CR)(S.map(function(e){return{animation:e,options:(0,l.pi)({type:g},t)}})),!1))}}(g);if(i=(0,l.pi)({},h),p.size){var v={};p.forEach(function(t){var r=e.getBaseTarget(t);void 0!==r&&(v[t]=r)}),f.push({animation:v})}var y=!!f.length;return a&&!1===c.initial&&!e.manuallyAnimateOnMount&&(y=!1),a=!1,y?r(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:u,setActive:function(t,r,i){if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;var a,o=u(i,t);for(var s in n)n[s].protectedKeys={};return o},setAnimateFunction:function(t){r=t(e)},getState:function(){return n}}}(t)),ez(r)&&(0,u.useEffect)(function(){return r.subscribe(t)},[r])}),exit:ta(function(e){var t=e.custom,r=e.visualElement,n=(0,l.CR)(tl(),2),i=n[0],a=n[1],s=(0,u.useContext)(w.O);(0,u.useEffect)(function(){r.isPresent=i;var e,n,l=null===(e=r.animationState)||void 0===e?void 0:e.setActive(o.Exit,!i,{custom:null!==(n=null==s?void 0:s.custom)&&void 0!==n?n:t});i||null==l||l.then(a)},[i])})};let r2=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),r5=e=>r2(e)&&e.hasOwnProperty("z"),r3=(e,t)=>Math.abs(e-t);function r7(e,t){return t$(e)&&t$(t)?r3(e,t):r2(e)&&r2(t)?Math.sqrt(Math.pow(r3(e.x,t.x),2)+Math.pow(r3(e.y,t.y),2)+Math.pow(r5(e)&&r5(t)?r3(e.z,t.z):0,2)):void 0}var r4=function(){function e(e,t,r){var n=this,i=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var e=r8(n.lastMoveEventInfo,n.history),t=null!==n.startEvent,r=r7(e.offset,{x:0,y:0})>=3;if(t||r){var i=e.point,a=(0,rl.$B)().timestamp;n.history.push((0,l.pi)((0,l.pi)({},i),{timestamp:a}));var o=n.handlers,s=o.onStart,u=o.onMove;t||(s&&s(n.lastMoveEvent,e),n.startEvent=n.lastMoveEvent),u&&u(n.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){if(n.lastMoveEvent=e,n.lastMoveEventInfo=r6(t,n.transformPagePoint),eZ(e)&&0===e.buttons){n.handlePointerUp(e,t);return}rl.ZP.update(n.updatePoint,!0)},this.handlePointerUp=function(e,t){n.end();var r=n.handlers,i=r.onEnd,a=r.onSessionEnd,o=r8(r6(t,n.transformPagePoint),n.history);n.startEvent&&i&&i(e,o),a&&a(e,o)},!e.touches||!(e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=r6(eW(e),this.transformPagePoint),o=a.point,s=(0,rl.$B)().timestamp;this.history=[(0,l.pi)((0,l.pi)({},o),{timestamp:s})];var u=t.onSessionStart;u&&u(e,r8(a,this.history)),this.removeListeners=e9(eX(window,"pointermove",this.handlePointerMove),eX(window,"pointerup",this.handlePointerUp),eX(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),rl.qY.update(this.updatePoint)},e}();function r6(e,t){return t?{point:t(e.point)}:e}function r9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r8(e,t){var r=e.point;return{point:r,delta:r9(r,ne(t)),offset:r9(r,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=ne(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>rf(.1)));)r--;if(!n)return{x:0,y:0};var a=(i.timestamp-n.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,0)}}function ne(e){return e[e.length-1]}function nt(e){return e.max-e.min}function nr(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=.01),r7(e,t)<r}function nn(e,t,r,n){void 0===n&&(n=.5),e.origin=n,e.originPoint=ty(t.min,t.max,e.origin),e.scale=nt(r)/nt(t),(nr(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ty(r.min,r.max,e.origin)-e.originPoint,(nr(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ni(e,t,r,n){nn(e.x,t.x,r.x,null==n?void 0:n.originX),nn(e.y,t.y,r.y,null==n?void 0:n.originY)}function na(e,t,r){e.min=r.min+t.min,e.max=e.min+nt(t)}function no(e,t,r){e.min=t.min-r.min,e.max=e.min+nt(t)}function ns(e,t,r){no(e.x,t.x,r.x),no(e.y,t.y,r.y)}function nl(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function nu(e,t){var r,n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=(r=(0,l.CR)([i,n],2))[0],i=r[1]),{min:n,max:i}}function nc(e,t,r){return{min:nd(e,t),max:nd(e,r)}}function nd(e,t){var r;return"number"==typeof e?e:null!==(r=e[t])&&void 0!==r?r:0}var nf=function(){return{translate:0,scale:1,origin:0,originPoint:0}},np=function(){return{x:nf(),y:nf()}},nh=function(){return{min:0,max:0}},nm=function(){return{x:nh(),y:nh()}};function ng(e){return[e("x"),e("y")]}function nv(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function ny(e){return void 0===e||1===e}function nb(e){var t=e.scale,r=e.scaleX,n=e.scaleY;return!ny(t)||!ny(r)||!ny(n)}function nw(e){var t,r;return nb(e)||(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r||e.z||e.rotate||e.rotateX||e.rotateY}function nx(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function n_(e,t,r,n,i){void 0===t&&(t=0),void 0===r&&(r=1),e.min=nx(e.min,t,r,n,i),e.max=nx(e.max,t,r,n,i)}function nE(e,t){var r=t.x,n=t.y;n_(e.x,r.translate,r.scale,r.originPoint),n_(e.y,n.translate,n.scale,n.originPoint)}function nS(e,t){e.min=e.min+t,e.max=e.max+t}function nk(e,t,r){var n=(0,l.CR)(r,3),i=n[0],a=n[1],o=n[2],s=void 0!==t[o]?t[o]:.5,u=ty(e.min,e.max,s);n_(e,t[i],t[a],u,t.scale)}var nC=["x","scaleX","originX"],nA=["y","scaleY","originY"];function nT(e,t){nk(e.x,t,nC),nk(e.y,t,nA)}function nO(e,t){return nv(function(e,t){if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}var nj=new WeakMap,nR=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nm(),this.visualElement=e}return e.prototype.start=function(e,t){var r=this,n=(void 0===t?{}:t).snapToCursor,i=void 0!==n&&n;!1!==this.visualElement.isPresent&&(this.panSession=new r4(e,{onSessionStart:function(e){r.stopAnimation(),i&&r.snapToCursor(eW(e,"page").point)},onStart:function(e,t){var n,i=r.getProps(),a=i.drag,s=i.dragPropagation,l=i.onDragStart;(!a||s||(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=e2(a),r.openGlobalLock))&&(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),ng(function(e){var t,n,i=r.getAxisMotionValue(e).get()||0;if(eo.test(i)){var a=null===(n=null===(t=r.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(a){var o=nt(a);i=parseFloat(i)/100*o}}r.originPoint[e]=i}),null==l||l(e,t),null===(n=r.visualElement.animationState)||void 0===n||n.setActive(o.Drag,!0))},onMove:function(e,t){var n=r.getProps(),i=n.dragPropagation,a=n.dragDirectionLock,o=n.onDirectionLock,s=n.onDrag;if(i||r.openGlobalLock){var l,u,c=t.offset;if(a&&null===r.currentDirection){r.currentDirection=(void 0===l&&(l=10),u=null,Math.abs(c.y)>l?u="y":Math.abs(c.x)>l&&(u="x"),u),null!==r.currentDirection&&(null==o||o(r.currentDirection));return}r.updateAxis("x",t.point,c),r.updateAxis("y",t.point,c),r.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return r.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var r=this.isDragging;if(this.cancel(),r){var n=t.velocity;this.startAnimation(n);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(o.Drag,!1)},e.prototype.updateAxis=function(e,t,r){var n=this.getProps().drag;if(r&&nP(e,n,this.currentDirection)){var i,a,o,s,l,u=this.getAxisMotionValue(e),c=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=c,a=this.constraints[e],o=this.elastic[e],s=a.min,l=a.max,void 0!==s&&i<s?i=o?ty(s,i,o.min):Math.max(i,s):void 0!==l&&i>l&&(i=o?ty(l,i,o.max):Math.min(i,l)),c=i),u.set(c)}},e.prototype.resolveConstraints=function(){var e,t,r,n,i,a,o=this,s=this.getProps(),l=s.dragConstraints,u=s.dragElastic,c=(this.visualElement.projection||{}).layout,d=this.constraints;l&&k(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&c?this.constraints=(e=c.actual,t=l.top,r=l.left,n=l.bottom,i=l.right,{x:nl(e.x,r,i),y:nl(e.y,t,n)}):this.constraints=!1,this.elastic=(void 0===(a=u)&&(a=.35),!1===a?a=0:!0===a&&(a=.35),{x:nc(a,"left","right"),y:nc(a,"top","bottom")}),d!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&ng(function(e){if(o.getAxisMotionValue(e)){var t,r,n;o.constraints[e]=(t=c.actual[e],r=o.constraints[e],n={},void 0!==r.min&&(n.min=r.min-t.min),void 0!==r.max&&(n.max=r.max-t.min),n)}})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,r=e.onMeasureDragConstraints;if(!t||!k(t))return!1;var n=t.current;h(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=(s=i.root,l=nO(n,this.visualElement.getTransformPagePoint()),(u=s.scroll)&&(nS(l.x,u.x),nS(l.y,u.y)),l),o={x:nu((c=i.layout.actual).x,a.x),y:nu(c.y,a.y)};if(r){var s,l,u,c,d,f,p,m=r((f=(d=o).x,{top:(p=d.y).min,right:f.max,bottom:p.max,left:f.min}));this.hasMutatedConstraints=!!m,m&&(o=nv(m))}return o},e.prototype.startAnimation=function(e){var t=this,r=this.getProps(),n=r.drag,i=r.dragMomentum,a=r.dragElastic,o=r.dragTransition,s=r.dragSnapToOrigin,u=r.onDragTransitionEnd,c=this.constraints||{};return Promise.all(ng(function(r){if(nP(r,n,t.currentDirection)){var u,d=null!==(u=null==c?void 0:c[r])&&void 0!==u?u:{};s&&(d={min:0,max:0});var f=(0,l.pi)((0,l.pi)({type:"inertia",velocity:i?e[r]:0,bounceStiffness:a?200:1e6,bounceDamping:a?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},o),d);return t.startAxisValueAnimation(r,f)}})).then(u)},e.prototype.startAxisValueAnimation=function(e,t){var r=this.getAxisMotionValue(e);return rL(e,r,0,t)},e.prototype.stopAnimation=function(){var e=this;ng(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,r,n="_drag"+e.toUpperCase();return this.visualElement.getProps()[n]||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)},e.prototype.snapToCursor=function(e){var t=this;ng(function(r){if(nP(r,t.getProps().drag,t.currentDirection)){var n=t.visualElement.projection,i=t.getAxisMotionValue(r);if(n&&n.layout){var a=n.layout.actual[r],o=a.min,s=a.max;i.set(e[r]-ty(o,s,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,r=this.getProps(),n=r.drag,i=r.dragConstraints,a=this.visualElement.projection;if(k(i)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};ng(function(e){var r=t.getAxisMotionValue(e);if(r){var n,i,a,s,l,u=r.get();o[e]=(n={min:u,max:u},i=t.constraints[e],a=.5,s=nt(n),(l=nt(i))>s?a=tv(i.min,i.max-s,n.min):s>l&&(a=tv(n.min,n.max-l,i.min)),tc(0,1,a))}});var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),ng(function(e){if(nP(e,n,null)){var r=t.getAxisMotionValue(e),i=t.constraints[e],a=i.min,s=i.max;r.set(ty(a,s,o[e]))}})}},e.prototype.addListeners=function(){var e,t=this;nj.set(this.visualElement,this);var r=eX(this.visualElement.getInstance(),"pointerdown",function(e){var r=t.getProps(),n=r.drag,i=r.dragListener;n&&(void 0===i||i)&&t.start(e)}),n=function(){k(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,a=i.addEventListener("measure",n);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),n();var o=eU(window,"resize",function(){return t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(e){var r=e.delta,n=e.hasLayoutChanged;t.isDragging&&n&&(ng(function(e){var n=t.getAxisMotionValue(e);n&&(t.originPoint[e]+=r[e].translate,n.set(n.get()+r[e].translate))}),t.visualElement.syncRender())}),function(){o(),r(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,r=e.dragDirectionLock,n=e.dragPropagation,i=e.dragConstraints,a=e.dragElastic,o=e.dragMomentum;return(0,l.pi)((0,l.pi)({},e),{drag:void 0!==t&&t,dragDirectionLock:void 0!==r&&r,dragPropagation:void 0!==n&&n,dragConstraints:void 0!==i&&i,dragElastic:void 0===a?.35:a,dragMomentum:void 0===o||o})},e}();function nP(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}var nN={pan:ta(function(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,a=e.visualElement,o=(0,u.useRef)(null),s=(0,u.useContext)(y).transformPagePoint,l={onSessionStart:i,onStart:r,onMove:t,onEnd:function(e,t){o.current=null,n&&n(e,t)}};(0,u.useEffect)(function(){null!==o.current&&o.current.updateHandlers(l)}),eG(a,"pointerdown",(t||r||n||i)&&function(e){o.current=new r4(e,l,{transformPagePoint:s})}),(0,e4.z)(function(){return o.current&&o.current.end()})}),drag:ta(function(e){var t=e.dragControls,r=e.visualElement,n=(0,N.h)(function(){return new nR(r)});(0,u.useEffect)(function(){return t&&t.subscribe(n)},[n,t]),(0,u.useEffect)(function(){return n.addListeners()},[n])})},nz=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],nM=function(e){var t=e.treeType,r=void 0===t?"":t,n=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,o=e.measureViewportBox,s=e.render,u=e.readValueFromInstance,c=e.removeValueFromRenderState,d=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var p,h,m,g,v,y=e.parent,b=e.props,w=e.presenceId,x=e.blockInitialAnimation,_=e.visualState,E=e.shouldReduceMotion;void 0===t&&(t={});var S=!1,k=_.latestValues,C=_.renderState,T=(p=nz.map(function(){return new r$}),h={},m={clearAllListeners:function(){return p.forEach(function(e){return e.clear()})},updatePropListeners:function(e){nz.forEach(function(t){var r,n="on"+t,i=e[n];null===(r=h[t])||void 0===r||r.call(h),i&&(h[t]=m[n](i))})}},p.forEach(function(e,t){m["on"+nz[t]]=function(t){return e.add(t)},m["notify"+nz[t]]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.notify.apply(e,(0,l.ev)([],(0,l.CR)(t),!1))}}),m),O=new Map,P=new Map,N={},z=(0,l.pi)({},k);function M(){g&&S&&(D(),s(g,C,b.style,Z.projection))}function D(){n(Z,C,k,t,b)}function V(){T.notifyUpdate(k)}function L(e,t){var r=t.onChange(function(t){k[e]=t,b.onUpdate&&rl.ZP.update(V,!1,!0)}),n=t.onRenderRequest(Z.scheduleRender);P.set(e,function(){r(),n()})}var I=f(b);for(var F in I){var $=I[F];void 0!==k[F]&&Y($)&&$.set(k[F],!1)}var U=j(b),B=R(b),Z=(0,l.pi)((0,l.pi)({treeType:r,current:null,depth:y?y.depth+1:0,parent:y,children:new Set,presenceId:w,shouldReduceMotion:E,variantChildren:B?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(null==y?void 0:y.isMounted()),blockInitialAnimation:x,isMounted:function(){return!!g},mount:function(e){S=!0,g=Z.current=e,Z.projection&&Z.projection.mount(e),B&&y&&!U&&(v=null==y?void 0:y.addVariantChild(Z)),O.forEach(function(e,t){return L(t,e)}),null==y||y.children.add(Z),Z.setProps(b)},unmount:function(){var e;null===(e=Z.projection)||void 0===e||e.unmount(),rl.qY.update(V),rl.qY.render(M),P.forEach(function(e){return e()}),null==v||v(),null==y||y.children.delete(Z),T.clearAllListeners(),g=void 0,S=!1},addVariantChild:function(e){var t,r=Z.getClosestVariantNode();if(r)return null===(t=r.variantChildren)||void 0===t||t.add(e),function(){return r.variantChildren.delete(e)}},sortNodePosition:function(e){return d&&r===e.treeType?d(Z.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return B?Z:null==y?void 0:y.getClosestVariantNode()},getLayoutId:function(){return b.layoutId},getInstance:function(){return g},getStaticValue:function(e){return k[e]},setStaticValue:function(e,t){return k[e]=t},getLatestValues:function(){return k},setVisibility:function(e){Z.isVisible!==e&&(Z.isVisible=e,Z.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(Z,e,b,t)},measureViewportBox:function(){return o(g,b)},addValue:function(e,t){Z.hasValue(e)&&Z.removeValue(e),O.set(e,t),k[e]=t.get(),L(e,t)},removeValue:function(e){var t;O.delete(e),null===(t=P.get(e))||void 0===t||t(),P.delete(e),delete k[e],c(e,C)},hasValue:function(e){return O.has(e)},getValue:function(e,t){var r=O.get(e);return void 0===r&&void 0!==t&&(r=rB(t),Z.addValue(e,r)),r},forEachValue:function(e){return O.forEach(e)},readValue:function(e){var r;return null!==(r=k[e])&&void 0!==r?r:u(g,e,t)},setBaseTarget:function(e,t){z[e]=t},getBaseTarget:function(e){if(i){var t=i(b,e);if(void 0!==t&&!Y(t))return t}return z[e]}},T),{build:function(){return D(),C},scheduleRender:function(){rl.ZP.render(M,!1,!0)},syncRender:M,setProps:function(e){(e.transformTemplate||b.transformTemplate)&&Z.scheduleRender(),b=e,T.updatePropListeners(e),N=function(e,t,r){var n;for(var i in t){var a=t[i],o=r[i];if(Y(a))e.addValue(i,a);else if(Y(o))e.addValue(i,rB(a));else if(o!==a){if(e.hasValue(i)){var s=e.getValue(i);s.hasAnimated||s.set(a)}else e.addValue(i,rB(null!==(n=e.getStaticValue(i))&&void 0!==n?n:a))}}for(var i in r)void 0===t[i]&&e.removeValue(i);return t}(Z,f(b),N)},getProps:function(){return b},getVariant:function(e){var t;return null===(t=b.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return b.transition},getTransformPagePoint:function(){return b.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==y?void 0:y.getVariantContext();if(!U){var t=(null==y?void 0:y.getVariantContext())||{};return void 0!==b.initial&&(t.initial=b.initial),t}for(var r={},n=0;n<nV;n++){var i=nD[n],a=b[i];(A(a)||!1===a)&&(r[i]=a)}return r}});return Z}},nD=(0,l.ev)(["initial"],(0,l.CR)(rX),!1),nV=nD.length;function nL(e){return"string"==typeof e&&e.startsWith("var(--")}var nI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nF(e,t,r){void 0===r&&(r=1),h(r<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var n=(0,l.CR)(function(e){var t=nI.exec(e);if(!t)return[,];var r=(0,l.CR)(t,3);return[r[1],r[2]]}(e),2),i=n[0],a=n[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():nL(a)?nF(a,t,r+1):a}}var n$=new Set(["width","height","top","left","right","bottom","x","y"]),nU=function(e){return n$.has(e)},nB=function(e,t){e.set(t,!1),e.set(t)},nZ=function(e){return e===ed||e===es};(a=s||(s={})).width="width",a.height="height",a.left="left",a.right="right",a.top="top",a.bottom="bottom";var nq=function(e,t){return parseFloat(e.split(", ")[t])},nW=function(e,t){return function(r,n){var i=n.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return nq(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?nq(o[1],e):0}},nJ=new Set(["x","y","z"]),nH=B.filter(function(e){return!nJ.has(e)}),nY={width:function(e,t){var r=e.x,n=t.paddingLeft,i=t.paddingRight;return r.max-r.min-parseFloat(void 0===n?"0":n)-parseFloat(void 0===i?"0":i)},height:function(e,t){var r=e.y,n=t.paddingTop,i=t.paddingBottom;return r.max-r.min-parseFloat(void 0===n?"0":n)-parseFloat(void 0===i?"0":i)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var r=e.y;return parseFloat(t.top)+(r.max-r.min)},right:function(e,t){var r=e.x;return parseFloat(t.left)+(r.max-r.min)},x:nW(4,13),y:nW(5,14)},nK=function(e,t,r){var n=t.measureViewportBox(),i=getComputedStyle(t.getInstance()),a=i.display,o={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach(function(e){o[e]=nY[e](n,i)}),t.syncRender();var s=t.measureViewportBox();return r.forEach(function(r){nB(t.getValue(r),o[r]),e[r]=nY[r](s,i)}),e},nX=function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n={}),t=(0,l.pi)({},t),n=(0,l.pi)({},n);var i=Object.keys(t).filter(nU),a=[],o=!1,s=[];if(i.forEach(function(i){var l,u=e.getValue(i);if(e.hasValue(i)){var c=r[i],d=rW(c),f=t[i];if(eM(f)){var p=f.length,m=null===f[0]?1:0;d=rW(c=f[m]);for(var g=m;g<p;g++)l?h(rW(f[g])===l,"All keyframes must be of the same type"):h((l=rW(f[g]))===d||nZ(d)&&nZ(l),"Keyframes must be of the same dimension as the current value")}else l=rW(f);if(d!==l){if(nZ(d)&&nZ(l)){var v,y=u.get();"string"==typeof y&&u.set(parseFloat(y)),"string"==typeof f?t[i]=parseFloat(f):Array.isArray(f)&&l===es&&(t[i]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===c||0===f)?0===c?u.set(l.transform(c)):t[i]=d.transform(f):(o||(v=[],nH.forEach(function(t){var r=e.getValue(t);void 0!==r&&(v.push([t,r.get()]),r.set(t.startsWith("scale")?1:0))}),v.length&&e.syncRender(),a=v,o=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],nB(u,f))}}}),!s.length)return{target:t,transitionEnd:n};var u=s.indexOf("height")>=0?window.pageYOffset:null,c=nK(t,e,s);return a.length&&a.forEach(function(t){var r=(0,l.CR)(t,2),n=r[0],i=r[1];e.getValue(n).set(i)}),e.syncRender(),null!==u&&window.scrollTo({top:u}),{target:c,transitionEnd:n}},nG=function(e,t,r,n){var i,a,o=function(e,t,r){var n,i=(0,l._T)(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:r};for(var o in r&&(r=(0,l.pi)({},r)),e.forEachValue(function(e){var t=e.get();if(nL(t)){var r=nF(t,a);r&&e.set(r)}}),i){var s=i[o];if(nL(s)){var u=nF(s,a);u&&(i[o]=u,r&&(null!==(n=r[o])&&void 0!==n||(r[o]=s)))}}return{target:i,transitionEnd:r}}(e,t,n);return i=t=o.target,a=n=o.transitionEnd,Object.keys(i).some(nU)?nX(e,i,r,a):{target:i,transitionEnd:a}},nQ={treeType:"dom",readValueFromInstance:function(e,t){if(W(t)){var r=rP(t);return r&&r.default||0}var n=window.getComputedStyle(e);return(X(t)?n.getPropertyValue(t):n[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]},measureViewportBox:function(e,t){return nO(e,t.transformPagePoint)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var i=r.transformValues;void 0===n&&(n=!0);var a=t.transition,o=t.transitionEnd,s=(0,l._T)(t,["transition","transitionEnd"]),u=function(e,t,r){var n,i,a={};for(var o in e)a[o]=null!==(n=function(e,t){if(t)return(t[e]||t.default||t).from}(o,t))&&void 0!==n?n:null===(i=r.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},e);if(i&&(o&&(o=i(o)),s&&(s=i(s)),u&&(u=i(u))),n){!function(e,t,r){var n,i,a,o=Object.keys(t).filter(function(t){return!e.hasValue(t)}),s=o.length;if(s)for(var l=0;l<s;l++){var u,c,d,f=o[l],p=t[f],h=null;Array.isArray(p)&&(h=p[0]),null===h&&(h=null!==(i=null!==(n=r[f])&&void 0!==n?n:e.readValue(f))&&void 0!==i?i:t[f]),null!=h&&("string"==typeof h&&(u=h,/^\-?\d*\.?\d+$/.test(u)||(c=h,/^0[^.\s]+$/.test(c)))?h=parseFloat(h):(d=h,!rJ.find(rZ(d))&&tF.test(p)&&(h=rN(f,p))),e.addValue(f,rB(h)),null!==(a=r[f])&&void 0!==a||(r[f]=h),e.setBaseTarget(f,h))}}(e,s,u);var c=nG(e,s,u,o);o=c.transitionEnd,s=c.target}return(0,l.pi)({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:eP,build:function(e,t,r,n,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),eg(t,r,n,i.transformTemplate)},render:eO},n0=nM(nQ),n1=nM((0,l.pi)((0,l.pi)({},nQ),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return W(t)?(null===(r=rP(t))||void 0===r?void 0:r.default)||0:(t=ej.has(t)?t:eT(t),e.getAttribute(t))},scrapeMotionValuesFromProps:eN,build:function(e,t,r,n,i){ek(t,r,n,i.transformTemplate)},render:eR})),n2=function(e,t){return F(e)?n1(t,{enableHardwareAcceleration:!1}):n0(t,{enableHardwareAcceleration:!0})};function n5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var n3={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!es.test(e))return e;e=parseFloat(e)}var r=n5(e,t.target.x),n=n5(e,t.target.y);return"".concat(r,"% ").concat(n,"%")}},n7="_$css",n4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,r=t.visualElement,n=t.layoutGroup,i=t.switchLayoutGroup,a=t.layoutId,o=r.projection;Object.assign($,n6),o&&((null==n?void 0:n.group)&&n.group.add(o),(null==i?void 0:i.register)&&a&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",function(){e.safeToRemove()}),o.setOptions((0,l.pi)((0,l.pi)({},o.options),{onExitComplete:function(){return e.safeToRemove()}}))),z.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,r=this.props,n=r.layoutDependency,i=r.visualElement,a=r.drag,o=r.isPresent,s=i.projection;return s&&(s.isPresent=o,a||e.layoutDependency!==n||void 0===n?s.willUpdate():this.safeToRemove(),e.isPresent===o||(o?s.promote():s.relegate()||rl.ZP.postRender(function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,r=e.layoutGroup,n=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==r?void 0:r.group)&&r.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(u.Component),n6={borderRadius:(0,l.pi)((0,l.pi)({},n3),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:n3,borderTopRightRadius:n3,borderBottomLeftRadius:n3,borderBottomRightRadius:n3,boxShadow:{correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,i=e,a=e.includes("var("),o=[];a&&(e=e.replace(nI,function(e){return o.push(e),n7}));var s=tF.parse(e);if(s.length>5)return i;var l=tF.createTransformer(e),u="number"!=typeof s[0]?1:0,c=n.x.scale*r.x,d=n.y.scale*r.y;s[0+u]/=c,s[1+u]/=d;var f=ty(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var p=l(s);if(a){var h=0;p=p.replace(n7,function(){var e=o[h];return h++,e})}return p}}},n9=["TopLeft","TopRight","BottomLeft","BottomRight"],n8=n9.length,ie=function(e){return"string"==typeof e?parseFloat(e):e},it=function(e){return"number"==typeof e||es.test(e)};function ir(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}var ii=io(0,.5,t7),ia=io(.5,.95,t0);function io(e,t,r){return function(n){return n<e?0:n>t?1:r(tv(e,t,n))}}function is(e,t){e.min=t.min,e.max=t.max}function il(e,t){is(e.x,t.x),is(e.y,t.y)}function iu(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function ic(e,t,r,n,i){var a=(0,l.CR)(r,3),o=a[0],s=a[1],u=a[2];!function(e,t,r,n,i,a,o){if(void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=.5),void 0===a&&(a=e),void 0===o&&(o=e),eo.test(t)&&(t=parseFloat(t),t=ty(o.min,o.max,t/100)-o.min),"number"==typeof t){var s=ty(a.min,a.max,n);e===a&&(s-=t),e.min=iu(e.min,t,r,s,i),e.max=iu(e.max,t,r,s,i)}}(e,t[o],t[s],t[u],t.scale,n,i)}var id=["x","scaleX","originX"],ip=["y","scaleY","originY"];function ih(e,t,r,n){ic(e.x,t,id,null==r?void 0:r.x,null==n?void 0:n.x),ic(e.y,t,ip,null==r?void 0:r.y,null==n?void 0:n.y)}function im(e){return 0===e.translate&&1===e.scale}function ig(e){return im(e.x)&&im(e.y)}function iv(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var iy=function(){function e(){this.members=[]}return e.prototype.add=function(e){rI(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(rF(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,r=this.members.findIndex(function(t){return e===t});if(0===r)return!1;for(var n=r;n>=0;n--){var i=this.members[n];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var r,n=this.lead;e!==n&&(this.prevLead=n,this.lead=e,e.show(),n&&(n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&n.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,r,n,i,a;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(a=null===(n=e.resumingFrom)||void 0===n?void 0:(i=n.options).onExitComplete)||void 0===a||a.call(i)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function ib(e,t,r){var n=e.x.translate/t.x,i=e.y.translate/t.y,a="translate3d(".concat(n,"px, ").concat(i,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var o=r.rotate,s=r.rotateX,l=r.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),l&&(a+="rotateY(".concat(l,"deg) "))}var u=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(a+="scale(".concat(u,", ").concat(c,")"))?"none":a}var iw=function(e,t){return e.depth-t.depth},ix=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){rI(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){rF(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(iw),this.isDirty=!1,this.children.forEach(e)},e}();function i_(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,n){var i=this;void 0===t&&(t={}),void 0===n&&(n=null==r?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(iO),i.nodes.forEach(ij)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?(0,l.ev)((0,l.ev)([],(0,l.CR)(n.path),!1),[n],!1):[],this.parent=n,this.depth=n?n.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new ix)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new r$),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.eventHandlers.get(e);null==n||n.notify.apply(n,(0,l.ev)([],(0,l.CR)(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,r){var n=this;if(void 0===r&&(r=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var i=this.options,a=i.layoutId,o=i.layout,s=i.visualElement;if(s&&!s.getInstance()&&s.mount(e),this.root.nodes.add(this),null===(u=this.parent)||void 0===u||u.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),r&&(o||a)&&(this.isLayoutDirty=!0),t){var u,c,d=function(){return n.root.updateBlockedByResize=!1};t(e,function(){n.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(d,250),z.hasAnimatedSinceResize&&(z.hasAnimatedSinceResize=!1,n.nodes.forEach(iT))})}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&s&&(a||o)&&this.addEventListener("didUpdate",function(e){var t,r,i,a,o,u=e.delta,c=e.hasLayoutChanged,d=e.hasRelativeTargetChanged,f=e.layout;if(n.isTreeAnimationBlocked()){n.target=void 0,n.relativeTarget=void 0;return}var p=null!==(r=null!==(t=n.options.transition)&&void 0!==t?t:s.getDefaultTransition())&&void 0!==r?r:iD,h=s.getProps(),m=h.onLayoutAnimationStart,g=h.onLayoutAnimationComplete,v=!n.targetLayout||!iv(n.targetLayout,f)||d,y=!c&&d;if((null===(i=n.resumeFrom)||void 0===i?void 0:i.instance)||y||c&&(v||!n.currentAnimation)){n.resumeFrom&&(n.resumingFrom=n.resumeFrom,n.resumingFrom.resumingFrom=void 0),n.setAnimationOrigin(u,y);var b=(0,l.pi)((0,l.pi)({},rV(p,"layout")),{onPlay:m,onComplete:g});s.shouldReduceMotion&&(b.delay=0,b.type=!1),n.startAnimation(b)}else c||0!==n.animationProgress||n.finishAnimation(),n.isLead()&&(null===(o=(a=n.options).onExitComplete)||void 0===o||o.call(a));n.targetLayout=f})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,rl.qY.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(iR))},e.prototype.willUpdate=function(e){if(void 0===e&&(e=!0),this.root.isUpdateBlocked()){null===(r=(t=this.options).onExitComplete)||void 0===r||r.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var t,r,n,i=0;i<this.path.length;i++){var a=this.path[i];a.shouldResetTransform=!0,a.updateScroll()}var o=this.options,s=o.layoutId,l=o.layout;if(void 0!==s||l){var u=null===(n=this.options.visualElement)||void 0===n?void 0:n.getProps().transformTemplate;this.prevTransformTemplateValue=null==u?void 0:u(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iC);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(iV),this.potentialNodes.clear()),this.nodes.forEach(iA),this.nodes.forEach(iE),this.nodes.forEach(iS),this.clearAllSnapshots(),rl.iW.update(),rl.iW.preRender(),rl.iW.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(ik),this.sharedNodes.forEach(iP)},e.prototype.scheduleUpdateProjection=function(){rl.ZP.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;rl.ZP.postRender(function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()})},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));iI(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var e,t=0;t<this.path.length;t++)this.path[t].updateScroll();var r=this.measure();iI(r);var n=this.layout;this.layout={measured:r,actual:this.removeElementScroll(r)},this.layoutCorrected=nm(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==n?void 0:n.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=n(this.instance))},e.prototype.resetTransform=function(){if(a){var e,t=this.isLayoutDirty||this.shouldResetTransform,r=this.projectionDelta&&!ig(this.projectionDelta),n=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==n?void 0:n(this.latestValues,""),o=i!==this.prevTransformTemplateValue;t&&(r||nw(this.latestValues)||o)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return nm();var t=e.measureViewportBox(),r=this.root.scroll;return r&&(nS(t.x,r.x),nS(t.y,r.y)),t},e.prototype.removeElementScroll=function(e){var t=nm();il(t,e);for(var r=0;r<this.path.length;r++){var n=this.path[r],i=n.scroll,a=n.options,o=n.isScrollRoot;if(n!==this.root&&i&&a.layoutScroll){if(o){il(t,e);var s=this.root.scroll;s&&(nS(t.x,-s.x),nS(t.y,-s.y))}nS(t.x,i.x),nS(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var r=nm();il(r,e);for(var n=0;n<this.path.length;n++){var i=this.path[n];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nT(r,{x:-i.scroll.x,y:-i.scroll.y}),nw(i.latestValues)&&nT(r,i.latestValues)}return nw(this.latestValues)&&nT(r,this.latestValues),r},e.prototype.removeTransform=function(e){var t,r=nm();il(r,e);for(var n=0;n<this.path.length;n++){var i=this.path[n];if(i.instance&&nw(i.latestValues)){nb(i.latestValues)&&i.updateSnapshot();var a=nm();il(a,i.measure()),ih(r,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,a)}}return nw(this.latestValues)&&ih(r,this.latestValues),r},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=(0,l.pi)((0,l.pi)((0,l.pi)({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,r,n,i=this.options,a=i.layout,o=i.layoutId;this.layout&&(a||o)&&(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=nm(),this.relativeTargetOrigin=nm(),ns(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),il(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&((this.target||(this.target=nm(),this.targetWithTransforms=nm()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(n=this.relativeParent)||void 0===n?void 0:n.target))?(e=this.target,t=this.relativeTarget,r=this.relativeParent.target,na(e.x,t.x,r.x),na(e.y,t.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):il(this.target,this.layout.actual),nE(this.target,this.targetDelta)):il(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=nm(),this.relativeTargetOrigin=nm(),ns(this.relativeTargetOrigin,this.target,this.relativeParent.target),il(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(!(!this.parent||nw(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,r=t.layout,n=t.layoutId;if(this.isTreeAnimating=!!((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(r||n)){var i=this.getLead();il(this.layoutCorrected,this.layout.actual),function(e,t,r,n){void 0===n&&(n=!1);var i,a,o,s,l=r.length;if(l){t.x=t.y=1;for(var u=0;u<l;u++)s=(o=r[u]).projectionDelta,(null===(a=null===(i=o.instance)||void 0===i?void 0:i.style)||void 0===a?void 0:a.display)!=="contents"&&(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&nT(e,{x:-o.scroll.x,y:-o.scroll.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,nE(e,s)),n&&nw(o.latestValues)&&nT(e,o.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==i);var a=i.target;if(a){this.projectionDelta||(this.projectionDelta=np(),this.projectionDeltaWithTransform=np());var o=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;ni(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=ib(this.projectionDelta,this.treeScale),(this.projectionTransform!==l||this.treeScale.x!==o||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,r,n;void 0===e&&(e=!0),null===(r=(t=this.options).scheduleRender)||void 0===r||r.call(t),e&&(null===(n=this.getStack())||void 0===n||n.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var r,n=this;void 0===t&&(t=!1);var i=this.snapshot,a=(null==i?void 0:i.latestValues)||{},o=(0,l.pi)({},this.latestValues),s=np();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var u=nm(),c=null==i?void 0:i.isShared,d=1>=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0),f=!!(c&&!d&&!0===this.options.crossfade&&!this.path.some(iM));this.animationProgress=0,this.mixTargetDelta=function(t){var r,i,l,p=t/1e3;iN(s.x,e.x,p),iN(s.y,e.y,p),n.setTargetDelta(s),n.relativeTarget&&n.relativeTargetOrigin&&n.layout&&(null===(l=n.relativeParent)||void 0===l?void 0:l.layout)&&(ns(u,n.layout.actual,n.relativeParent.layout.actual),r=n.relativeTarget,i=n.relativeTargetOrigin,iz(r.x,i.x,u.x,p),iz(r.y,i.y,u.y,p)),c&&(n.animationValues=o,function(e,t,r,n,i,a){var o,s,l,u;i?(e.opacity=ty(0,null!==(o=r.opacity)&&void 0!==o?o:1,ii(n)),e.opacityExit=ty(null!==(s=t.opacity)&&void 0!==s?s:1,0,ia(n))):a&&(e.opacity=ty(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=r.opacity)&&void 0!==u?u:1,n));for(var c=0;c<n8;c++){var d="border".concat(n9[c],"Radius"),f=ir(t,d),p=ir(r,d);(void 0!==f||void 0!==p)&&(f||(f=0),p||(p=0),0===f||0===p||it(f)===it(p)?(e[d]=Math.max(ty(ie(f),ie(p),n),0),(eo.test(p)||eo.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||r.rotate)&&(e.rotate=ty(t.rotate||0,r.rotate||0,n))}(o,a,n.latestValues,p,f,d)),n.root.scheduleUpdateProjection(),n.scheduleRender(),n.animationProgress=p},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,r,n=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(r=this.resumingFrom.currentAnimation)||void 0===r||r.stop()),this.pendingAnimation&&(rl.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rl.ZP.update(function(){var t,r;z.hasAnimatedSinceResize=!0,n.currentAnimation=(void 0===(t=(0,l.pi)((0,l.pi)({},e),{onUpdate:function(t){var r;n.mixTargetDelta(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),n.completeAnimation()}}))&&(t={}),rL("",r=Y(0)?0:rB(0),1e3,t),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}),n.resumingFrom&&(n.resumingFrom.currentAnimation=n.currentAnimation),n.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,r=e.target,n=e.layout,i=e.latestValues;t&&r&&n&&(il(t,r),nT(t,i),ni(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var r,n,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new iy),this.sharedNodes.get(e).add(t),t.promote({transition:null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.transition,preserveFollowOpacity:null===(i=null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(n,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,r=t.needsReset,n=t.transition,i=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,i),r&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,r={},n=0;n<U.length;n++){var i="rotate"+U[n];e.getStaticValue(i)&&(t=!0,r[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),r)e.setStaticValue(i,r[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){void 0===e&&(e={});var t,r,n,i,a,o,s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=eV(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(r=this.latestValues.opacity)&&void 0!==r?r:1,c.pointerEvents=eV(e.pointerEvents)||""),this.hasProjected&&!nw(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=ib(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,h=f.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),u.animationValues?s.opacity=u===this?null!==(i=null!==(n=d.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?null!==(a=d.opacity)&&void 0!==a?a:"":null!==(o=d.opacityExit)&&void 0!==o?o:0,$)if(void 0!==d[m]){var g=$[m],v=g.correct,y=g.applyTo,b=v(d[m],u);if(y)for(var w=y.length,x=0;x<w;x++)s[y[x]]=b;else s[m]=b}return this.options.layoutId&&(s.pointerEvents=u===this?eV(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach(function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(iC),this.root.sharedNodes.clear()},e}()}function iE(e){e.updateLayout()}function iS(e){var t,r,n,i,a=null!==(r=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==r?r:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var o=e.layout,s=o.actual,l=o.measured;"size"===e.options.animationType?ng(function(e){var t=a.isShared?a.measured[e]:a.layout[e],r=nt(t);t.min=s[e].min,t.max=t.min+r}):"position"===e.options.animationType&&ng(function(e){var t=a.isShared?a.measured[e]:a.layout[e],r=nt(s[e]);t.max=t.min+r});var u=np();ni(u,s,a.layout);var c=np();a.isShared?ni(c,e.applyTransform(l,!0),a.measured):ni(c,s,a.layout);var d=!ig(u),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var g=nm();ns(g,a.layout,h.layout);var v=nm();ns(v,s,m.actual),iv(g,v)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(i=(n=e.options).onExitComplete)||void 0===i||i.call(n));e.options.transition=void 0}function ik(e){e.clearSnapshot()}function iC(e){e.clearMeasurements()}function iA(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function iT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function iO(e){e.resolveTargetDelta()}function ij(e){e.calcProjection()}function iR(e){e.resetRotation()}function iP(e){e.removeLeadSnapshot()}function iN(e,t,r){e.translate=ty(t.translate,0,r),e.scale=ty(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function iz(e,t,r,n){e.min=ty(t.min,r.min,n),e.max=ty(t.max,r.max,n)}function iM(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var iD={duration:.45,ease:[.4,0,.1,1]};function iV(e,t){for(var r=e.root,n=e.path.length-1;n>=0;n--)if(e.path[n].instance){r=e.path[n];break}var i=(r&&r!==e.root?r.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function iL(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function iI(e){iL(e.x),iL(e.y)}var iF=i_({attachResizeListener:function(e,t){return eU(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),i$={current:void 0},iU=i_({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!i$.current){var e=new iF(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),i$.current=e}return i$.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return"fixed"===window.getComputedStyle(e).position}}),iB=(0,l.pi)((0,l.pi)((0,l.pi)((0,l.pi)({},r1),to),nN),{measureLayout:function(e){var t=(0,l.CR)(tl(),2),r=t[0],n=t[1],i=(0,u.useContext)(D.p);return u.createElement(n4,(0,l.pi)({},e,{layoutGroup:i,switchLayoutGroup:(0,u.useContext)(V),isPresent:r,safeToRemove:n}))}}),iZ=function(e){function t(t,r){var n,i,a,o,s,d,p;return void 0===r&&(r={}),i=(n=e(t,r)).preloadedFeatures,a=n.createVisualElement,o=n.projectionNodeConstructor,s=n.useRender,d=n.useVisualState,p=n.Component,i&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?f.projectionNodeConstructor=e[t]:f[t].Component=e[t])}(i),(0,u.forwardRef)(function(e,t){var r,n,C,T,O,R,I,F,$,U,B,Z,q,W,J,H,Y,K,X,G,Q,ee,et,er,en,ei,ea,eo=(Z=e.layoutId,(q=null===(B=(0,u.useContext)(D.p))||void 0===B?void 0:B.id)&&void 0!==Z?q+"-"+Z:Z);e=(0,l.pi)((0,l.pi)({},e),{layoutId:eo});var es=(0,u.useContext)(y),el=null,eu=(J=(W=function(e,t){if(j(e)){var r=e.initial,n=e.animate;return{initial:!1===r||A(r)?r:void 0,animate:A(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,u.useContext)(b))).initial,H=W.animate,(0,u.useMemo)(function(){return{initial:J,animate:H}},[P(J),P(H)])),ec=es.isStatic?void 0:(0,N.h)(function(){if(z.hasEverUpdated)return M++}),ed=d(e,es.isStatic);return!es.isStatic&&_.j&&(eu.visualElement=(Y=(0,l.pi)((0,l.pi)({},es),e),K=a,X=(0,u.useContext)(m),G=(0,u.useContext)(b).visualElement,Q=(0,u.useContext)(w.O),S||function(){if(S=!0,_.j){if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return E.current=e.matches};e.addListener(t),t()}else E.current=!1}}(),ee=(0,l.CR)((0,u.useState)(E.current),1)[0],er="never"!==(et=(0,u.useContext)(y).reducedMotion)&&("always"===et||ee),en=(0,u.useRef)(void 0),K||(K=X.renderer),!en.current&&K&&(en.current=K(p,{visualState:ed,parent:G,props:Y,presenceId:null==Q?void 0:Q.id,blockInitialAnimation:(null==Q?void 0:Q.initial)===!1,shouldReduceMotion:er})),ei=en.current,(0,x.L)(function(){null==ei||ei.syncRender()}),(0,u.useEffect)(function(){var e;null===(e=null==ei?void 0:ei.animationState)||void 0===e||e.animateChanges()}),(0,x.L)(function(){return function(){return null==ei?void 0:ei.notifyUnmount()}},[]),ei),r=e,n=eu.visualElement,C=o||f.projectionNodeConstructor,O=r.layoutId,R=r.layout,I=r.drag,F=r.dragConstraints,$=r.layoutScroll,U=(0,u.useContext)(V),!C||!n||(null==n?void 0:n.projection)||(n.projection=new C(ec,n.getLatestValues(),null===(T=n.parent)||void 0===T?void 0:T.projection),n.projection.setOptions({layoutId:O,layout:R,alwaysMeasureLayout:!!I||F&&k(F),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof R?R:"both",initialPromotionConfig:U,layoutScroll:$})),el=function(e,t,r){var n=[],i=(0,u.useContext)(m);if(!t)return null;"production"!==c.O&&r&&i.strict&&h(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var a=0;a<v;a++){var o=g[a],s=f[o],d=s.isEnabled,p=s.Component;d(e)&&p&&n.push(u.createElement(p,(0,l.pi)({key:o},e,{visualElement:t})))}return n}(e,eu.visualElement,i)),u.createElement(L,{visualElement:eu.visualElement,props:(0,l.pi)((0,l.pi)({},es),e)},el,u.createElement(b.Provider,{value:eu},s(p,e,ec,(ea=eu.visualElement,(0,u.useCallback)(function(e){var r;e&&(null===(r=ed.mount)||void 0===r||r.call(ed,e)),ea&&(e?ea.mount(e):ea.unmount()),t&&("function"==typeof t?t(e):k(t)&&(t.current=e))},[ea])),ed,es.isStatic,eu.visualElement)))})}if("undefined"==typeof Proxy)return t;var r=new Map;return new Proxy(t,{get:function(e,n){return r.has(n)||r.set(n,t(n)),r.get(n)}})}(function(e,t){var r,n,i;return r=t.forwardMotionProps,n=F(e)?eF:e$,(0,l.pi)((0,l.pi)({},n),{preloadedFeatures:iB,useRender:(void 0===(i=void 0!==r&&r)&&(i=!1),function(e,t,r,n,a,o){var s=a.latestValues,c=(F(e)?function(e,t){var r=(0,u.useMemo)(function(){var r=eC();return ek(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),(0,l.pi)((0,l.pi)({},r.attrs),{style:(0,l.pi)({},r.style)})},[t]);if(e.style){var n={};ey(n,e.style,e),r.style=(0,l.pi)((0,l.pi)({},n),r.style)}return r}:function(e,t,r){var n,i,a={},o=(ey(n={},e.style||{},e),Object.assign(n,(i=e.transformTemplate,(0,u.useMemo)(function(){var e=ev();eg(e,t,{enableHardwareAcceleration:!r},i);var n=e.vars,a=e.style;return(0,l.pi)((0,l.pi)({},n),a)},[t]))),e.transformValues&&(n=e.transformValues(n)),n);return e.drag&&!1!==e.dragListener&&(a.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),a.style=o,a})(t,s,o),d=function(e,t,r){var n={};for(var i in e)(ex(i)||!0===r&&ew(i)||!t&&!ew(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(t,"string"==typeof e,i),f=(0,l.pi)((0,l.pi)((0,l.pi)({},d),c),{ref:n});return r&&(f["data-projection-id"]=r),(0,u.createElement)(e,f)}),createVisualElement:n2,projectionNodeConstructor:iU,Component:e})})},8335:function(e,t,r){"use strict";r.d(t,{bz:function(){return t_},S3:function(){return tk}});var n=r(75271),i=r(25307);async function a(e){try{let t=await fetch(e.src);if(423===t.status)return await new Promise(e=>setTimeout(e,500)),await a(e);if(!t.ok)return{success:!1,status:t.status,error:t.headers.get("x-cld-error")||"Unknown error"};return{success:!0,status:t.status}}catch(e){return{success:!1,status:500,error:e.message||"Network error"}}}r(55872).Buffer;var o=r(55872).Buffer,s=/\/v\d+\//,l=/\.(ai|avif|gif|png|webp|bmp|bw|djvu|dng|ps|ept|eps|eps3|fbx|flif|gif|glb|gltf|heif|heic|ico|indd|jpg|jpe|jpeg|jp2|wdp|jxr|hdp|obj|pdf|ply|png|psd|arw|cr2|svg|tga|tif|tiff|u3ma|usdz|webp|3g2|3gp|avi|flv|m3u8|ts|m2ts|mts|mov|mkv|mp4|mpeg|mpd|mxf|ogv|webm|wmv)$/i,u=/https?:\/\/(?<host>[^/]+)\/(?<cloudName>[^/]+)?\/?(?<assetType>image|images|video|videos|raw|files)\/(?<deliveryType>upload|fetch|private|authenticated|sprite|facebook|twitter|youtube|vimeo)?\/?(?<signature>s--([a-zA-Z0-9_-]{8}|[a-zA-Z0-9_-]{32})--)?\/?(?<transformations>(?:[^_/]+_[^,/]+,?\/?)*\/)*(?<version>v\d+|\w{1,2})\/(?<publicId>[^\s]+)$/,c=["images","videos","files"];function d(e){if("string"!=typeof e)throw Error("Failed to parse URL - Invalid src: Is not a string");if(!s.test(e))throw Error("Failed to parse URL - Invalid src: Does not include version (Ex: /v1234/)");let[t,r]=e.split("?"),n=f(t),i=t;n&&(i=t.replace(RegExp(`${n}$`),""));let a=i.match(u),o=a?.groups?.transformations?.split("/").filter(e=>!!e),l={...a?.groups,format:n,seoSuffix:void 0,transformations:o||[],queryParams:{},version:a?.groups?.version?parseInt(a.groups.version.replace("v","")):void 0};if("res.cloudinary.com"===l.host&&!l.cloudName)throw Error("Failed to parse URL - Invalid src: Cloudinary URL delivered from res.cloudinary.com must include Cloud Name (ex: res.cloudinary.com/<Cloud Name>/image/...)");if(r&&(l.queryParams=r.split("&").reduce((e,t)=>{let[r,n]=t.split("=");return e[r]=n,e},{})),l.assetType&&c.includes(l.assetType)){let e=l.publicId?.split("/")||[];l.seoSuffix=e.pop(),l.publicId=e.join("/")}return l.publicId&&(l.publicId=decodeURIComponent(l.publicId)),l}function f(e){let t=e.match(l);if(null!==t)return t[0]}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h=r(11615);class m{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return null!=e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter(e=>this.hasValue(e)),this}setDelimiter(e){return this.delimiter=e,this}}class g extends Error{constructor(e="Unsupported"){super(e)}}function v(){return this._qualifierModel||{error:new g(`unsupported qualifier ${this.constructor.name}`)}}class y{constructor(){this._qualifierModel={}}toJson(){return v.apply(this)}}class b extends y{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof m?this.qualifierValue=t:(this.qualifierValue=new m,this.qualifierValue.addValue(t))}toString(){let{key:e,delimiter:t,qualifierValue:r}=this;return`${e}${t}${r.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class w extends b{constructor(e,t){super("fl",t?new m([e,`${t}`]).setDelimiter(":"):e),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function x(){var e,t,r;let n=this._actionModel&&Object.keys(this._actionModel).length,i=null===(r=null===(t=null===(e=this._actionModel)||void 0===e?void 0:e.source)||void 0===t?void 0:t.transformation)||void 0===r?void 0:r.error;return i&&i instanceof Error?{error:i}:n?this._actionModel:{error:new g(`unsupported action ${this.constructor.name}`)}}class _{constructor(){this._actionModel={}}toJson(){return x.apply(this)}}class E extends _{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),(function(e,t){let r=Array.from(e.entries());return t.forEach(e=>{r.push(["fl",e])}),r.sort().map(e=>e[1])})(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"==typeof e){let[t,r]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new w(r)):this.qualifiers.set(t,new b(t,r))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new w(e)):e instanceof w&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}class S extends E{constructor(e){super(),this._actionModel={},this.addQualifier(new b("b",new m(e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){let{color:t}=e;return new this(t)}}class k{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:new g(`unsupported action ${this.constructor.name}`)}}}class C extends m{constructor(e){super(e),this.val=e}getValue(){return this.val}}function A(e){let t={};return Object.keys(e).forEach(r=>{t[e[r]]=r}),t}A({444:"CHROMA_444",420:"CHROMA_420"}),A({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),A({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});let T=A({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});A({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),A({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),A({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class O extends E{constructor(e,t,r){let n;super(),this._actionModel={},n=t instanceof C?t.getValue():t,this._actionModel.actionType=T[e],this._actionModel[r]=n,this.addQualifier(new b(e,t))}}class j extends w{constructor(e){super("progressive",e)}}class R extends O{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new w("lossy")),this}progressive(e){return e instanceof j?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(new w("progressive",e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new w("preserve_transparency")),this}static fromJson(e){let t;let{formatType:r,lossy:n,progressive:i,preserveTransparency:a}=e;return t=r?new this("f",r):new this("f"),i&&(i.mode?t.progressive(i.mode):t.progressive()),n&&t.lossy(),a&&t.preserveTransparency(),t}}class P{constructor(){this.actions=[]}addAction(e){let t;if("string"==typeof e){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";t=new k(e)}else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof P?this.actions=this.actions.concat(e.actions):this.actions.push(new k(e)),this}toString(){return this.actions.map(e=>e.toString()).filter(e=>e).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new R("q",e)),this}format(e){return this.addAction(new R("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new S(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){let t=new E,r=e;return"string"==typeof e&&(r=new w(e)),t.addQualifier(r),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){let e=[];for(let t of this.actions){let r=t.toJson();if("error"in r&&r.error)return r;e.push(r)}return{actions:e}}}class N extends P{}class z{filterOutNonSupportedKeys(e,t){let r=Object.create({});return"object"!=typeof e||e instanceof Array?Object.create({}):(Object.keys(e).forEach(n=>{t.indexOf(n)>=0?r[n]=e[n]:console.warn("Warning - unsupported key provided to configuration: ",n)}),r)}}var M=z;let D=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class V extends M{constructor(e){super(),Object.assign(this,{secure:!0},this.filterOutNonSupportedKeys(e,D))}extend(e){return new V(Object.assign({},this,this.filterOutNonSupportedKeys(e,D)))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}}function L(e,t,r){let n=t>>0,i=String(void 0!==r?r:" ");return e.length>n?String(e):((n-=e.length)>i.length&&(i+=function(e,t){let r=t,n="";for(;r>0;)n+=e,r--;return n}(i,n/i.length)),i.slice(0,n)+String(e))}let I={},F=0;function $(e){let t="",r=e.split(".").length,n=parseInt((function(e){if(e.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return e.split(".").reverse().map(e=>{let t=+e;if(isNaN(t)||t<0)throw"Invalid version number provided";return L(e,2,"0")}).join(".")})(e).split(".").join("")).toString(2);if((n=L(n,6*r,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return n.match(/.{1,6}/g).forEach(e=>{t+=I[e]}),t}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(e=>{let t=F.toString(2);I[t=L(t,6,"0")]=e,F++});var U=r(14224);function B(e){let t=function(e){let t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0"};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}(function(e){let t={techVersion:function(){let e="0.0.0";if("undefined"!=typeof window)return e;try{return U.versions.node||e}catch(t){return e}}(),sdkCode:"T",sdkSemver:"1.15.0".split("-")[0],product:"A",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}(e));try{let e=function(e){let t=e.split(".");return`${t[0]}.${t[1]}`}(t.techVersion),r=$(t.sdkSemver),n=$(e),i=t.feature,a=t.sdkCode,o=t.product;return`B${o}${a}${r}${n}${i}`}catch(e){return"E"}}let Z={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class q{constructor(e,t={},r){this.setPublicID(e),this.setCloudConfig(t),this.setURLConfig(r)}setURLConfig(e){return this.urlConfig=new V(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(e={}){return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";let e=this.suffix&&this.suffix.indexOf(".")>=0,t=this.suffix&&this.suffix.indexOf("/")>=0;if(e||t)throw"`suffix`` should not include . or /"}getResourceType(){var e,t;let r=(e=this.assetType)?e:"image",n=(t=this.deliveryType)?t:"upload",i=!!this.suffix,a=`${r}/${n}`,o=Z[`${r}/${n}`],s=this.urlConfig.useRootPath,l=this.urlConfig.shorten;if(s){if("image/upload"===a)return"";throw Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${a} instead`)}if(l&&"image/upload"===a)return"iu";if(i){if(o)return o;throw Error(`URL Suffix only supported for ${Object.keys(Z).join(", ")}, Provided: ${a} instead`)}return a}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,t){var r,n,i;if(!this.publicID)return"";this.validateAssetForURLCreation();let a=function(e,t){let r=t.secure,n=t.privateCdn,i=t.cname,a=t.secureDistribution;return r||i?r&&!a&&n?`https://${e}-res.cloudinary.com`:r&&!a?`https://res.cloudinary.com/${e}`:r&&a&&n?`https://${a}`:r&&a?`https://${a}/${e}`:!r&&i?`http://${i}/${e}`:"ERROR":`http://res.cloudinary.com/${e}`}(this.cloudName,this.urlConfig),o=e?e.toString():"",s=(r=this.publicID,n=this.version,i=this.urlConfig.forceVersion,n?`v${n}`:r.match(/^v[0-9]+/)||r.match(/^https?:\//)||0>r.indexOf("/")?"":!1!==i?"v1":""),l=this.publicID;if("string"==typeof e)return[a,this.getResourceType(),this.getSignature(),o,s,l.replace(/,/g,"%2C"),this.suffix].filter(e=>e).join("/");{let e=[encodeURI(a),this.getResourceType(),this.getSignature(),encodeURI(o),s,encodeURI(l).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(e=>e).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),r=!1!==this.urlConfig.analytics&&!l.includes("?"),n="";if("object"==typeof this.urlConfig.queryParams)try{let e=new URLSearchParams(this.urlConfig.queryParams);r&&e.set("_a",B(t)),n=e.toString()}catch(e){console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else n=this.urlConfig.queryParams||"",r&&(n+=`${n.length>0?"&":""}_a=${B(t)}`);return n?`${e}?${n}`:e}}}class W extends q{constructor(e,t,r,n){super(e,t,r),this.transformation=n}animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new R("q",e)),this}format(e){return this.addAction(new R("f",e)),this}roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(e={}){return this.createCloudinaryURL(this.transformation,null==e?void 0:e.trackedAnalytics)}}class J extends W{constructor(e,t,r){super(e,t,r,new N)}}class H extends P{}class Y extends W{constructor(e,t,r){super(e,t,r,new H),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class K{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new J(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new Y(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var X=r(14224),G=Object.defineProperty,Q={};((e,t)=>{for(var r in t)G(e,r,{get:t[r],enumerable:!0})})(Q,{angle:()=>en,aspectRatio:()=>ea,aspectRatioModesEnum:()=>ei,crop:()=>eo,cropModesEnum:()=>ee,extractMode:()=>es,extractModesEnum:()=>et,flags:()=>el,flagsEnum:()=>er,format:()=>eu,gravity:()=>ec,height:()=>ed,multiple:()=>ef,prompt:()=>ep,width:()=>eh,x:()=>em,y:()=>eg,zoom:()=>ev});var ee=h.z.enum(["auto","crop","fill","fill_pad","fit","imagga_crop","imagga_scale","lfill","limit","lpad","mfit","mpad","pad","scale","thumb"]),et=h.z.enum(["content","mask"]),er=h.z.enum(["animated","any_format","apng","attachment","awebp","clip","clip_evenodd","cutter","force_icc","force_strip","getinfo","group4","hlsv3","ignore_aspect_ratio","ignore_mask_channels","immutable_cache","keep_attribution","keep_dar","keep_iptc","layer_apply","lossy","mono","no_overflow","no_stream","png8_fl_png24_fl_png32","preserve_transparency","progressive","rasterize","region_relative","relative","replace_image","sanitize","splice","streaming_attachment","strip_profile","text_disallow_overflow","text_no_trim","tiff8_lzw","tiled","truncate_ts","waveform"]),en={qualifier:"a",schema:h.z.union([h.z.string(),h.z.number()]).describe(JSON.stringify({text:"Rotates or flips an asset by the specified number of degrees or automatically according to its orientation or available metadata.",url:"https://cloudinary.com/documentation/transformation_reference#a_angle"}))},ei=h.z.enum(["vflip","hflip","ignore","auto_right","auto_left"]),ea={qualifier:"ar",schema:h.z.union([h.z.number(),ei,h.z.intersection(h.z.string(),h.z.object({}))]).describe(JSON.stringify({text:"Crops or resizes the asset to a new aspect ratio.",url:"https://cloudinary.com/documentation/transformation_reference#ar_aspect_ratio"}))},eo={qualifier:"c",schema:ee.describe(JSON.stringify({text:"Mode to use when cropping an asset.",url:"https://cloudinary.com/documentation/transformation_reference#c_crop_resize"}))},es={schema:et.default("content").describe(JSON.stringify({text:"Whether to keep the content of the extracted area, or to replace it with a mask.",url:"https://cloudinary.com/documentation/transformation_reference#e_extract"}))},el={qualifier:"fl",schema:h.z.union([er,h.z.array(er)]).describe(JSON.stringify({text:"Alters the regular behavior of another transformation or the overall delivery behavior.",url:"https://cloudinary.com/documentation/transformation_reference#fl_flag"}))},eu={qualifier:"f",schema:h.z.string().describe(JSON.stringify({text:"Converts (if necessary) and delivers an asset in the specified format regardless of the file extension used in the delivery URL.",url:"https://cloudinary.com/documentation/transformation_reference#f_format"}))},ec={qualifier:"g",schema:h.z.union([h.z.enum(["auto","auto_content_aware","center","custom","east","face","face_center","multi_face","north","north_east","north_west","south","south_east","south_west","west"]),h.z.intersection(h.z.string(),h.z.object({}))]).describe(JSON.stringify({text:"Determines which part of an asset to focus on. Note: Default of auto is applied for supported crop modes only.",url:"https://cloudinary.com/documentation/transformation_reference#g_gravity"}))},ed={qualifier:"h",schema:h.z.union([h.z.number(),h.z.string()]).describe(JSON.stringify({text:"A qualifier that determines the height of a transformed asset or an overlay.",url:"https://cloudinary.com/documentation/transformation_reference#h_height"}))},ef={schema:h.z.boolean().describe(JSON.stringify({text:"Should generative AI features detect multiple instances."}))},ep={schema:h.z.string().describe(JSON.stringify({text:"Natural language descriptions used for generative AI capabilities."}))},eh={qualifier:"w",schema:h.z.union([h.z.number(),h.z.string()]).describe(JSON.stringify({text:"A qualifier that sets the desired width of an asset using a specified value, or automatically based on the available width.",url:"https://cloudinary.com/documentation/transformation_reference#w_width"}))},em={qualifier:"x",schema:h.z.union([h.z.string(),h.z.number()]).describe(JSON.stringify({text:"Adjusts the starting location or offset of the x axis.",url:"https://cloudinary.com/documentation/transformation_reference#x_y_coordinates"}))},eg={qualifier:"y",schema:h.z.union([h.z.string(),h.z.number()]).describe(JSON.stringify({text:"Adjusts the starting location or offset of the y axis.",url:"https://cloudinary.com/documentation/transformation_reference#x_y_coordinates"}))},ev={schema:h.z.string().describe(JSON.stringify({text:"Controls how close to crop to the detected coordinates when using face-detection, custom-coordinate, or object-specific gravity.",url:"https://cloudinary.com/documentation/transformation_reference#z_zoom"}))},ey=[{test:function(e){return"string"==typeof e&&!!e.startsWith("#")},convert:function(e){return`rgb:${e.replace("#","")}`}}],eb={aspectRatio:ea,crop:eo,gravity:ec,height:ed,width:eh},ew={angle:en,gravity:ec,x:em,y:eg},ex={alignment:{qualifier:!1,order:6},antialias:{qualifier:"antialias"},border:{qualifier:"bo",location:"primary"},color:{qualifier:"co",location:"primary",converters:ey},fontFamily:{qualifier:!1,order:1},fontSize:{qualifier:!1,order:2},fontStyle:{qualifier:!1,order:4},fontWeight:{qualifier:!1,order:3},hinting:{qualifier:"hinting"},letterSpacing:{qualifier:"letter_spacing"},lineSpacing:{qualifier:"line_spacing"},stroke:{qualifier:"self",order:7},textDecoration:{qualifier:!1,order:5}},e_={angle:en,art:{prefix:"e",qualifier:"art",schema:h.z.string().describe(JSON.stringify({text:"Applies the selected artistic filter.",url:"https://cloudinary.com/documentation/transformation_reference#e_art"}))},autoBrightness:{prefix:"e",qualifier:"auto_brightness",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Automatically adjusts the image brightness and blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_auto_brightness"}))},autoColor:{prefix:"e",qualifier:"auto_color",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Automatically adjusts the image color balance and blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_auto_color"}))},autoContrast:{prefix:"e",qualifier:"auto_contrast",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Automatically adjusts the image contrast and blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_auto_contrast"}))},assistColorblind:{prefix:"e",qualifier:"assist_colorblind",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Applies stripes or color adjustment to help people with common color blind conditions to differentiate between colors that are similar for them.",url:"https://cloudinary.com/documentation/transformation_reference#e_assist_colorblind"}))},background:{qualifier:"b",schema:h.z.string().describe(JSON.stringify({text:"Applies a background to empty or transparent areas.",url:"https://cloudinary.com/documentation/transformation_reference#b_background"}))},blackwhite:{prefix:"e",qualifier:"blackwhite",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Converts an image to black and white.",url:"https://cloudinary.com/documentation/transformation_reference#e_blackwhite"}))},blur:{prefix:"e",qualifier:"blur",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Applies a blurring filter to an asset.",url:"https://cloudinary.com/documentation/transformation_reference#e_blur"}))},blurFaces:{prefix:"e",qualifier:"blur_faces",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Blurs all detected faces in an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_blur_faces"}))},blurRegion:{prefix:"e",qualifier:"blur_region",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Applies a blurring filter to the region of an image specified by x, y, width and height, or an area of text. If no region is specified, the whole image is blurred.",url:"https://cloudinary.com/documentation/transformation_reference#e_blur_region"}))},border:{qualifier:"bo",schema:h.z.string().describe(JSON.stringify({text:"Adds a solid border around an image or video.",url:"https://cloudinary.com/documentation/transformation_reference#bo_border"}))},brightness:{prefix:"e",qualifier:"brightness",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Adjusts the image or video brightness.",url:"https://cloudinary.com/documentation/transformation_reference#e_brightness"}))},brightnessHSB:{prefix:"e",qualifier:"brightness_hsb",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Adjusts image brightness modulation in HSB to prevent artifacts in some images.",url:"https://cloudinary.com/documentation/transformation_reference#e_brightness_hsb"}))},cartoonify:{prefix:"e",qualifier:"cartoonify",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Applies a cartoon effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_cartoonify"}))},color:{qualifier:"co",schema:h.z.string().describe(JSON.stringify({text:"A qualifier that specifies the color to use with the corresponding transformation.",url:"https://cloudinary.com/documentation/transformation_reference#co_color"})),converters:ey},colorize:{prefix:"e",qualifier:"colorize",schema:h.z.string().describe(JSON.stringify({text:"Colorizes an image. By default, gray is used for colorization. You can specify a different color using the color qualifier.",url:"https://cloudinary.com/documentation/transformation_reference#e_colorize"}))},contrast:{prefix:"e",qualifier:"contrast",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Adjusts an image or video contrast.",url:"https://cloudinary.com/documentation/transformation_reference#e_contrast"}))},displace:{prefix:"e",qualifier:"distort",schema:h.z.string().describe(JSON.stringify({text:"Displaces the pixels in an image according to the color channels of the pixels in another specified image (a gradient map specified with the overlay parameter).",url:"https://cloudinary.com/documentation/transformation_reference#e_displace"}))},distort:{prefix:"e",qualifier:"distort",schema:h.z.string().describe(JSON.stringify({text:"Distorts an image to a new shape by either adjusting its corners or by warping it into an arc.",url:"https://cloudinary.com/documentation/transformation_reference#e_distort"}))},fillLight:{prefix:"e",qualifier:"fill_light",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Adjusts the fill light and optionally blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_fill_light"}))},gamma:{prefix:"e",qualifier:"gamma",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Adjusts the image or video gamma level.",url:"https://cloudinary.com/documentation/transformation_reference#e_gamma"}))},gradientFade:{prefix:"e",qualifier:"gradient_fade",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Applies a gradient fade effect from the edge of an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_gradient_fade"}))},grayscale:{prefix:"e",qualifier:"grayscale",schema:h.z.boolean().describe(JSON.stringify({text:"Converts an image to grayscale (multiple shades of gray).",url:"https://cloudinary.com/documentation/transformation_reference#e_grayscale"}))},hue:{prefix:"e",qualifier:"hue",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Adjusts an image's hue.",url:"https://cloudinary.com/documentation/transformation_reference#e_hue"}))},improve:{prefix:"e",qualifier:"improve",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Adjusts an image's colors, contrast and brightness to improve its appearance.",url:"https://cloudinary.com/documentation/transformation_reference#e_improve"}))},loop:{prefix:"e",qualifier:"loop",schema:h.z.union([h.z.boolean(),h.z.number(),h.z.string()]).describe(JSON.stringify({text:"Loops a video or animated image the specified number of times.",url:"https://cloudinary.com/documentation/transformation_reference#e_loop"}))},multiply:{prefix:"e",qualifier:"multiply",schema:h.z.boolean().describe(JSON.stringify({text:"A qualifier that blends image layers using the multiply blend mode",url:"https://cloudinary.com/documentation/transformation_reference#e_multiply"}))},negate:{prefix:"e",qualifier:"negate",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"https://cloudinary.com/documentation/transformation_reference#e_negate",url:"https://cloudinary.com/documentation/transformation_reference#e_negate"}))},noise:{prefix:"e",qualifier:"noise",schema:h.z.boolean().describe(JSON.stringify({text:"https://cloudinary.com/documentation/transformation_reference#e_noise",url:"https://cloudinary.com/documentation/transformation_reference#e_noise"}))},oilPaint:{prefix:"e",qualifier:"oil_paint",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"https://cloudinary.com/documentation/transformation_reference#e_oil_paint",url:"https://cloudinary.com/documentation/transformation_reference#e_oil_paint"}))},opacity:{qualifier:"o",schema:h.z.union([h.z.string(),h.z.number()]).describe(JSON.stringify({text:"Adjusts the opacity of an asset and makes it semi-transparent.",url:"https://cloudinary.com/documentation/transformation_reference#o_opacity"}))},outline:{prefix:"e",qualifier:"outline",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Adds an outline effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_outline"}))},pixelate:{prefix:"e",qualifier:"pixelate",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Applies a pixelation effect.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate"}))},pixelateFaces:{prefix:"e",qualifier:"pixelate_faces",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Pixelates all detected faces in an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate_faces"}))},pixelateRegion:{prefix:"e",qualifier:"pixelate_region",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Pixelates the region of an image specified by x, y, width and height, or an area of text.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate_region"}))},radius:{qualifier:"r",schema:h.z.union([h.z.string(),h.z.number()]).describe(JSON.stringify({text:"Rounds the corners of an image or video.",url:"https://cloudinary.com/documentation/transformation_reference#r_round_corners"}))},redeye:{prefix:"e",qualifier:"redeye",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Automatically removes red eyes in an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_redeye"}))},replaceColor:{prefix:"e",qualifier:"replace_color",schema:h.z.string().describe(JSON.stringify({text:"Maps an input color and those similar to the input color to corresponding shades of a specified output color.",url:"https://cloudinary.com/documentation/transformation_reference#e_replace_color"}))},saturation:{prefix:"e",qualifier:"saturation",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Adjusts an image or video saturation level.",url:"https://cloudinary.com/documentation/transformation_reference#e_saturation"}))},screen:{prefix:"e",qualifier:"screen",schema:h.z.boolean().describe(JSON.stringify({text:"A qualifier that blends image layers using the screen blend mode.",url:"https://cloudinary.com/documentation/transformation_reference#e_screen"}))},sepia:{prefix:"e",qualifier:"sepia",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Changes the color scheme of an image to sepia.",url:"https://cloudinary.com/documentation/transformation_reference#e_sepia"}))},shadow:{prefix:"e",qualifier:"shadow",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Adds a gray shadow to the bottom right of an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_shadow"}))},sharpen:{prefix:"e",qualifier:"sharpen",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Applies a sharpening filter.",url:"https://cloudinary.com/documentation/transformation_reference#e_sharpen"}))},shear:{prefix:"e",qualifier:"shear",schema:h.z.string().describe(JSON.stringify({text:"Skews an image according to the two specified values in degrees.",url:"https://cloudinary.com/documentation/transformation_reference#e_shear"}))},simulateColorblind:{prefix:"e",qualifier:"simulate_colorblind",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Simulates the way an image would appear to someone with the specified color blind condition.",url:"https://cloudinary.com/documentation/transformation_reference#e_simulate_colorblind"}))},tint:{prefix:"e",qualifier:"tint",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Blends an image with one or more tint colors at a specified intensity.",url:"https://cloudinary.com/documentation/transformation_reference#e_tint"}))},trim:{prefix:"e",qualifier:"trim",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Detects and removes image edges whose color is similar to the corner pixels.",url:"https://cloudinary.com/documentation/transformation_reference#e_trim"}))},unsharpMask:{prefix:"e",qualifier:"unsharp_mask",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Applies an unsharp mask filter to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_unsharp_mask"}))},vectorize:{prefix:"e",qualifier:"vectorize",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Vectorizes an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vectorize"}))},vibrance:{prefix:"e",qualifier:"vibrance",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Applies a vibrance filter to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vibrance"}))},vignette:{prefix:"e",qualifier:"vignette",schema:h.z.union([h.z.string(),h.z.boolean()]).describe(JSON.stringify({text:"Applies a vignette effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vignette"}))}};function eE({prefix:e,qualifier:t,value:r,converters:n}){let i="";e&&(i=`${e}_`);let a=r;return(n?.forEach(({test:e,convert:t})=>{e(a)&&(a=t(a))}),!0===a||"true"===a)?`${i}${t}`:"string"==typeof a||"number"==typeof a?e?`${i}${t}:${a}`:`${t}_${a}`:void 0}function eS(e){return`(${e.join(";")})`}function ek(e){return"string"!=typeof e?e:parseInt(e)}var eC=["auto","crop","fill","lfill","fill_pad","thumb"],eA=["auto","crop","fill","lfill","fill_pad","thumb"],eT=["crop","thumb"],eO="limit",ej=h.z.object({aspectRatio:ea.schema.optional(),type:eo.schema,gravity:ec.schema.optional(),height:ed.schema.optional(),width:eh.schema.optional(),x:em.schema.optional(),y:eg.schema.optional(),zoom:ev.schema.optional(),source:h.z.boolean().optional()}),eR={aspectRatio:ea.schema.optional(),crop:h.z.union([eo.schema,ej,h.z.array(ej)]).default(eO).optional(),gravity:ec.schema.optional(),zoom:ev.schema.optional()},eP={angle:e_.angle.schema.optional(),art:e_.art.schema.optional(),autoBrightness:e_.autoBrightness.schema.optional(),autoColor:e_.autoColor.schema.optional(),autoContrast:e_.autoContrast.schema.optional(),assistColorblind:e_.assistColorblind.schema.optional(),background:e_.background.schema.optional(),blackwhite:e_.blackwhite.schema.optional(),blur:e_.blur.schema.optional(),blurFaces:e_.blurFaces.schema.optional(),blurRegion:e_.blurRegion.schema.optional(),border:e_.border.schema.optional(),brightness:e_.brightness.schema.optional(),brightnessHSB:e_.brightnessHSB.schema.optional(),cartoonify:e_.cartoonify.schema.optional(),color:e_.color.schema.optional(),colorize:e_.colorize.schema.optional(),contrast:e_.contrast.schema.optional(),distort:e_.distort.schema.optional(),fillLight:e_.fillLight.schema.optional(),gamma:e_.gamma.schema.optional(),gradientFade:e_.gradientFade.schema.optional(),grayscale:e_.grayscale.schema.optional(),improve:e_.improve.schema.optional(),loop:e_.loop.schema.optional(),multiply:e_.multiply.schema.optional(),negate:e_.negate.schema.optional(),oilPaint:e_.oilPaint.schema.optional(),opacity:e_.opacity.schema.optional(),outline:e_.outline.schema.optional(),pixelate:e_.pixelate.schema.optional(),pixelateFaces:e_.pixelateFaces.schema.optional(),pixelateRegion:e_.pixelateRegion.schema.optional(),radius:e_.radius.schema.optional(),redeye:e_.redeye.schema.optional(),replaceColor:e_.replaceColor.schema.optional(),saturation:e_.saturation.schema.optional(),screen:e_.screen.schema.optional(),sepia:e_.sepia.schema.optional(),shadow:e_.shadow.schema.optional(),sharpen:e_.sharpen.schema.optional(),shear:e_.shear.schema.optional(),simulateColorblind:e_.simulateColorblind.schema.optional(),tint:e_.tint.schema.optional(),trim:e_.trim.schema.optional(),unsharpMask:e_.unsharpMask.schema.optional(),vectorize:e_.vectorize.schema.optional(),vibrance:e_.vibrance.schema.optional(),vignette:e_.vignette.schema.optional()},eN={effects:h.z.array(h.z.object(eP)).describe(JSON.stringify({text:"Array of objects specifying transformations to be applied to asset."})).optional(),...eP},{flagsEnum:ez}=Q,eM={flags:el.schema.optional()},eD=h.z.string(),eV={namedTransformations:h.z.union([eD,h.z.array(eD)]).describe(JSON.stringify({text:"Named transformations to apply to asset.",url:"https://cloudinary.com/documentation/image_transformations#named_transformations"})).optional(),transformations:h.z.union([eD,h.z.array(eD)]).describe(JSON.stringify({text:"Deprecated: use namedTransformations instead",url:"https://cloudinary.com/documentation/image_transformations#named_transformations"})).optional()},eL=h.z.object({alignment:h.z.string().optional(),antialias:h.z.string().optional(),border:h.z.string().optional(),color:h.z.string().optional(),fontFamily:h.z.string().optional(),fontSize:h.z.number().optional(),fontStyle:h.z.union([h.z.string(),h.z.number()]).optional(),fontWeight:h.z.string().optional(),hinting:h.z.union([h.z.string(),h.z.number()]).optional(),letterSpacing:h.z.union([h.z.string(),h.z.number()]).optional(),lineSpacing:h.z.union([h.z.string(),h.z.number()]).optional(),stroke:h.z.string().optional(),text:h.z.string()}),eI=h.z.object({angle:en.schema.optional(),gravity:ec.schema.optional(),x:em.schema.optional(),y:eg.schema.optional()}),eF=h.z.object({appliedEffects:h.z.array(h.z.object({})).optional(),appliedFlags:el.schema.optional(),effects:h.z.array(h.z.object({})).optional(),crop:eo.schema.optional(),flags:el.schema.optional(),height:ed.schema.optional(),position:eI.optional(),publicId:h.z.string().optional(),text:h.z.union([h.z.string(),eL]).optional(),url:h.z.string().optional(),width:eh.schema.optional()}),e$={color:"black",fontFamily:"Arial",fontSize:200,fontWeight:"bold"},eU={overlay:eF.describe(JSON.stringify({text:"Image or text layer that is applied on top of the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),overlays:h.z.array(eF).describe(JSON.stringify({text:"Image or text layers that are applied on top of the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),text:h.z.string().describe(JSON.stringify({text:"Text to be overlaid on asset.",url:"https://cloudinary.com/documentation/image_transformations#transformation_url_structure"})).optional()},eB={preserveTransformations:h.z.boolean().describe(JSON.stringify({text:"Preserves transformations from a Cloudinary URL when using using a Cloudinary URL as the asset source (src)."})).optional()},eZ=h.z.string(),eq={rawTransformations:h.z.union([eZ,h.z.array(eZ)]).describe(JSON.stringify({text:"Array of transformation parameters using the Cloudinary URL API to apply to an asset.",url:"https://cloudinary.com/documentation/transformation_reference"})).optional()},eW={removeBackground:h.z.boolean().describe(JSON.stringify({text:"Removes the background of an image using the Cloudinary AI Background Removal Add-On (Required).",url:"https://cloudinary.com/documentation/cloudinary_ai_background_removal_addon"})).optional()},eJ={sanitize:h.z.boolean().describe(JSON.stringify({text:"Runs a sanitizer on SVG images.",url:"https://cloudinary.com/documentation/transformation_reference#fl_sanitize"})).optional()},eH={seoSuffix:h.z.string().describe(JSON.stringify({text:"Configures the URL to include an SEO-friendly suffix in the URL",url:"https://cloudinary.com/documentation/advanced_url_delivery_options#seo_friendly_media_asset_urls"})).optional()},eY=h.z.object({angle:en.schema.optional(),gravity:ec.schema.optional(),x:em.schema.optional(),y:eg.schema.optional()}),eK=h.z.object({appliedEffects:h.z.array(h.z.object({})).optional(),appliedFlags:el.schema.optional(),effects:h.z.array(h.z.object({})).optional(),crop:eo.schema.optional(),flags:el.schema.optional(),height:ed.schema.optional(),position:eY.optional(),publicId:h.z.string().optional(),type:h.z.string().optional(),url:h.z.string().optional(),width:eh.schema.optional()}),eX={underlay:h.z.string().describe(JSON.stringify({text:"Public ID of image that is applied under the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),underlays:h.z.array(eK).describe(JSON.stringify({text:"Image layers that are applied under the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional()},eG={version:h.z.union([h.z.number(),h.z.string()]).describe(JSON.stringify({text:"Custom version number to apply to asset URL.",url:"https://cloudinary.com/documentation/advanced_url_delivery_options#asset_versions"})).optional()},eQ=h.z.object({assetType:h.z.string().default("image").describe(JSON.stringify({text:"The type of asset to deliver.",url:"https://cloudinary.com/documentation/image_transformations#transformation_url_structure"})).optional(),deliveryType:h.z.string().default("upload").describe(JSON.stringify({text:"Delivery method of the asset.",url:"https://cloudinary.com/documentation/image_transformations#delivery_types"})).optional(),dpr:h.z.union([h.z.string(),h.z.number()]).describe(JSON.stringify({text:"Delivery method of the asset.",url:"https://cloudinary.com/documentation/image_transformations#delivery_types"})).optional(),format:h.z.string().default("auto").describe(JSON.stringify({text:"Converts (if necessary) and delivers an asset in the specified format.",url:"https://cloudinary.com/documentation/transformation_reference#f_format"})).optional(),height:h.z.union([h.z.string(),h.z.number()]).describe(JSON.stringify({text:"Height of the given asset."})).optional(),quality:h.z.union([h.z.string(),h.z.number(),h.z.string()]).default("auto").describe(JSON.stringify({text:"Quality of the delivered asset",url:"https://cloudinary.com/documentation/transformation_reference#q_quality"})).optional(),src:h.z.string().describe(JSON.stringify({text:"Cloudinary Public ID or versioned Cloudinary URL (/v1234/)"})),strictTransformations:h.z.boolean().describe(JSON.stringify({text:"Gives you the ability to have more control over what transformations are permitted to be used from your Cloudinary account.",url:"https://cloudinary.com/documentation/control_access_to_media#strict_transformations"})).optional(),width:h.z.union([h.z.string(),h.z.number()]).describe(JSON.stringify({text:"Width of the given asset."})).optional(),...eR,...eN,...eM,...eV,...eU,...eB,...eq,...eW,...eJ,...eH,...eX,...eG}),e0={defaultImage:h.z.string().describe(JSON.stringify({text:"Configures the default image to use in case the given public ID is not available. Must include file extension.",url:"https://cloudinary.com/documentation/transformation_reference#d_default_image"})).optional()},e1={enhance:h.z.boolean().describe(JSON.stringify({text:"Uses AI to analyze an image and make adjustments to enhance the appeal of the image.",url:"https://cloudinary.com/documentation/transformation_reference#e_enhance"})).optional()},e2={extract:h.z.union([ep.schema.optional(),h.z.array(ep.schema).optional(),h.z.object({invert:h.z.boolean().default(!1).optional(),mode:es.schema.optional(),multiple:ef.schema.default(!1).optional(),prompt:h.z.union([ep.schema,h.z.array(ep.schema)]).optional()})]).describe(JSON.stringify({text:"Extracts an area or multiple areas of an image, described in natural language.",url:"https://cloudinary.com/documentation/transformation_reference#e_extract"})).optional()};function e5(e){return"string"==typeof e?e:Array.isArray(e)?`(${e.filter(e=>"string"==typeof e).join(";")})`:void 0}var e3={fillBackground:h.z.union([h.z.boolean(),h.z.object({crop:eo.schema.optional(),gravity:ec.schema.optional(),prompt:h.z.string().optional()})]).describe(JSON.stringify({text:"Uses Generative Fill to extended padded image with AI",url:"https://cloudinary.com/documentation/transformation_reference#b_gen_fill"})).optional()},e7=h.z.union([h.z.string(),h.z.array(h.z.string())]),e4=h.z.object({prompt:e7.optional(),to:h.z.string().optional(),multiple:h.z.boolean().optional()}),e6={recolor:h.z.union([e7,e4]).describe(JSON.stringify({text:"Uses generative AI to recolor parts of your image, maintaining the relative shading.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_recolor"})).optional()},e9=h.z.union([h.z.string(),h.z.array(h.z.string())]),e8=h.z.object({prompt:e9.optional(),region:h.z.union([h.z.array(h.z.number()),h.z.array(h.z.array(h.z.number()))]).optional(),multiple:h.z.boolean().optional(),removeShadow:h.z.boolean().optional()}),te={remove:h.z.union([e9,e8]).describe(JSON.stringify({text:"Applies zooming and/or panning to an image, resulting in a video or animated image.",url:"https://cloudinary.com/documentation/transformation_reference#e_zoompan"})).optional()},tt={replaceBackground:h.z.union([h.z.boolean(),h.z.string(),h.z.object({seed:h.z.number().optional(),prompt:h.z.string().optional()})]).describe(JSON.stringify({text:"Replaces the background of an image with an AI-generated background.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_background_replace"})).optional()},tr={replace:h.z.union([h.z.array(h.z.string()),h.z.array(h.z.boolean()),h.z.object({to:h.z.string(),from:h.z.string(),preserveGeometry:h.z.boolean().optional()})]).describe(JSON.stringify({text:"Uses generative AI to replace parts of your image with something else.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_replace"})).optional()},tn={restore:h.z.boolean().describe(JSON.stringify({text:"Uses generative AI to restore details in poor quality images or images that may have become degraded through repeated processing and compression.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_restore"})).optional()},ti={zoompan:h.z.union([h.z.string(),h.z.boolean(),h.z.object({loop:e_.loop.schema.optional(),options:h.z.string()})]).describe(JSON.stringify({text:"Applies zooming and/or panning to an image, resulting in a video or animated image.",url:"https://cloudinary.com/documentation/transformation_reference#e_zoompan"})).optional()},ta=eQ.merge(h.z.object({...e0,...e1,...e2,...e3,...e6,...te,...tr,...tt,...tn,...ti})),to={streamingProfile:h.z.string().describe(JSON.stringify({text:"The streaming profile to apply when delivering a video using adaptive bitrate streaming.",url:"https://cloudinary.com/documentation/transformation_reference#sp_streaming_profile"})).optional()},ts=eQ.merge(h.z.object({...to})),tl=h.z.any(),tu=h.z.any(),tc=[{props:e1,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{enhance:n=!1}=r;return n&&t.effect("e_enhance"),{}}},{props:e2,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{extract:n}=r;if(!n||void 0===n)return{};let i=[];if("string"==typeof n)i.push(`prompt_${n}`);else if(Array.isArray(n))i.push(`prompt_${e5(n)}`);else if("object"==typeof n&&!Array.isArray(n)){let e=e5(n.prompt);e&&i.push(`prompt_${e}`),!0===n.invert&&i.push("invert_true"),"string"==typeof n.mode&&i.push(`mode_${n.mode}`),!0===n.multiple&&i.push("multiple_true")}if(i.length>0){let e=`e_extract:${i.join(";")}`;t.addTransformation(e)}return{}}},{props:e6,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{recolor:n}=r,i={prompt:void 0,"to-color":void 0,multiple:void 0};Array.isArray(n)?(Array.isArray(n[0])?i.prompt=eS(n[0]):i.prompt=n[0],"string"==typeof n[1]&&(i["to-color"]=n[1])):"object"==typeof n&&("string"==typeof n.prompt?i.prompt=n.prompt:Array.isArray(n.prompt)&&(i.prompt=eS(n.prompt)),"string"==typeof n.to&&(i["to-color"]=n.to),!0===n.multiple&&(i.multiple="true"));let a=Object.entries(i).filter(([,e])=>!!e).map(([e,t])=>`${e}_${t}`).join(";");return a&&t.addTransformation(`e_gen_recolor:${a}`),{}}},{props:eW,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{removeBackground:n=!1}=r;return n&&t.effect("e_background_removal"),{}}},{props:te,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{remove:r}=t,n={prompt:void 0,region:void 0,multiple:void 0,"remove-shadow":void 0};if("string"==typeof r)n.prompt=r;else if(Array.isArray(r))n.prompt=eS(r);else if("object"==typeof r){let e="string"==typeof r.prompt||Array.isArray(r.prompt),t=Array.isArray(r.region);if(e&&t)throw Error("Invalid remove options: you can not have both a prompt and a region. More info: https://cloudinary.com/documentation/transformation_reference#e_gen_remove");"string"==typeof r.prompt?n.prompt=r.prompt:Array.isArray(r.prompt)&&(n.prompt=eS(r.prompt)),Array.isArray(r.region)&&(n.region=function e(t){let r={0:"x",1:"y",2:"w",3:"h"},n=t.map((t,n)=>{if(Array.isArray(t))return e(t);let i=r[n];return`${i}_${t}`}).join(";");return`(${n})`}(r.region)),!0===r.multiple&&(n.multiple="true"),!0===r.removeShadow&&(n["remove-shadow"]="true")}let i=Object.entries(n).filter(([,e])=>!!e).map(([e,t])=>`${e}_${t}`).join(";");return i&&e.addTransformation(`e_gen_remove:${i}`),{}}},{props:tr,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{replace:r=null}=t;if(r){let t,n,i=!1;Array.isArray(r)?(t=r[0],n=r[1],i=r[2]||!1):(t=r.from,n=r.to,i=r.preserveGeometry||!1);let a=[`e_gen_replace:from_${t}`,`to_${n}`];i&&a.push(`preserve-geometry_${i}`),e.effect(a.join(";"))}return{}}},{props:tt,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{replaceBackground:n}=r;if(!n||void 0===n)return{};let i=[];"object"==typeof n?(void 0!==n.prompt&&i.push(`prompt_${n.prompt}`),"number"==typeof n.seed&&i.push(`seed_${n.seed}`)):"string"==typeof n&&i.push(`prompt_${n}`);let a="e_gen_background_replace";return i.length>0&&(a=`${a}:${i.join(";")}`),t.addTransformation(a),{}}},{props:tn,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{restore:r=!1}=t;return r&&e.effect("e_gen_restore"),{}}},{props:eR,assetTypes:["image","images","video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e,n=[];"string"==typeof r.crop||void 0===r.crop?n.push({aspectRatio:r.aspectRatio,height:r.height,gravity:r.gravity,type:r.crop||eO,width:r.width,zoom:r.zoom}):"object"!=typeof r.crop||Array.isArray(r.crop)?Array.isArray(r.crop)&&(n=r.crop):n.push(r.crop),1===n.length&&!0===n[0].source&&n.push({aspectRatio:r.aspectRatio,width:r.width,height:r.height,gravity:r.gravity,type:eO,zoom:r.zoom});let i=[],a=[];for(let e of n){let t={width:e.width,height:e.height};void 0===t.width&&void 0===e.aspectRatio&&(t.width=r.width,void 0===t.height&&(t.height=r.height));let n=function(e){let{aspectRatio:t,type:r,x:n,y:i,zoom:a}=e,o=e.gravity,s=ek(e.height),l=ek(e.width),u=[],c=t&&eC.includes(r),d="number"==typeof n||"string"==typeof n,f="number"==typeof i||"string"==typeof i,p=d||f;return r&&(s||l||c||p)&&u.push(`c_${r}`),c&&u.push(`ar_${t}`),l&&u.push(`w_${l}`),["limit"].includes(r)||"number"!=typeof s||u.push(`h_${s}`),d&&u.push(`x_${n}`),f&&u.push(`y_${i}`),!o&&eA.includes(r)&&!p&&(o="auto"),o&&("auto"!==o||eA.includes(r)?u.push(`g_${o}`):console.warn(`Auto gravity can only be used with crop modes: ${eA.join(", ")}. Not applying gravity.`)),a&&("auto"!==a||eT.includes(r)?u.push(`z_${a}`):console.warn(`Zoom can only be used with crop modes: ${eT.join(", ")}. Not applying zoom.`)),u}({aspectRatio:e.aspectRatio,gravity:e.gravity,type:e.type||eO,x:e.x,y:e.y,zoom:e.zoom,...t});n.length>0&&(!0===e.source?a.push(n):i.push(n))}a.forEach(e=>{e.length>0&&t.addTransformation(e.join(","))});let o={options:{}};return o.options&&i.length>0&&(o.options.resize=i.map(e=>e.join(",")).join("/")),o}},{props:eB,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{preserveTransformations:r=!1}=t;if(r)try{(function(e){let{transformations:t=[]}=d(e)||{};return t.map(e=>e.split(","))})(t.src).map(e=>e.join(",")).flat().forEach(t=>{e.addTransformation(t)})}catch(e){console.warn(`Failed to preserve transformations: ${e.message}`)}return{}}},{props:eq,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{rawTransformations:r=[]}=t;return Array.isArray(r)||(r=[r]),r.forEach(t=>{e.addTransformation(t)}),{}}},{props:to,assetTypes:["video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e,{streamingProfile:n}=r;return"string"==typeof n&&t.addTransformation(`sp_${n}`),{}}},{props:e0,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{defaultImage:n}=r;if("string"==typeof n){f(n)||console.warn("The defaultImage prop may be missing a format and must include it along with the public ID. (Ex: myimage.jpg)");let e=n.replace(/\//g,":");t.addTransformation(`d_${e}`)}return{}}},{props:eN,assetTypes:["image","images","video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e;function n({effects:e,options:t}){return Object.keys(e).map(r=>{let{prefix:n,qualifier:i,converters:a}=e[r];return eE({qualifier:i,prefix:n,value:t?.[r],converters:a})})}return n({effects:e_,options:r}).filter(e=>!!e).forEach(e=>t.effect(e)),Array.isArray(r?.effects)&&r?.effects.forEach(e=>{let r=n({effects:e_,options:e}).filter(e=>!!e).join(",");t.effect(r)}),{}}},{props:e3,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{fillBackground:n}=r;if(void 0===n)return{};let i=ek(r.width),a=ek(r.height),o=r.aspectRatio;if(o||"number"!=typeof a||"number"!=typeof i||(o=`${i}:${a}`),!o)return{};if(!0===n){let e=["b_gen_fill",`ar_${o}`,"c_pad"];t.addTransformation(e.join(","))}else if("object"==typeof n){let{crop:e="pad",gravity:r,prompt:i}=n,a=[`ar_${o}`,`c_${e}`];"string"==typeof i?a.unshift(`b_gen_fill:${i}`):a.unshift("b_gen_fill"),"string"==typeof r&&a.push(`g_${r}`),t.addTransformation(a.join(","))}return{}}},{props:eM,assetTypes:["image","images","video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e,{flags:n=[]}=r;return Array.isArray(n)&&n.length>0?n.forEach(e=>{let{success:r}=ez.safeParse(e);r&&t.addFlag(e)}):"object"==typeof n&&Object.entries(n).forEach(([e,r])=>{let{success:n}=ez.safeParse(e);n&&t.addTransformation(`fl_${e}:${r}`)}),{}}},{props:eU,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{text:r,overlays:n=[]}=t;function i({publicId:t,url:r,position:n,text:i,effects:a=[],appliedEffects:s=[],flags:l=[],appliedFlags:u=[],...c}){let d;let f="string"==typeof t,h="string"==typeof r,m="object"==typeof i||"string"==typeof i,g="object"==typeof n;if(!f&&!h&&!m){console.warn("An overlay is missing Public ID, URL, or Text");return}m?d="l_text":f?d=`l_${t.replace(/\//g,":")}`:h&&(d=`l_fetch:${"function"==typeof btoa?btoa(r):void 0!==o?o.from(r).toString("base64"):void 0}`);let v=[],y=[];if(Object.keys(c).forEach(e=>{if(!p(eb,e))return;let{qualifier:t,converters:r}=eb[e],n=eE({qualifier:t,value:c[e],converters:r});n&&v.push(n)}),a.forEach(e=>{Object.keys(e).forEach(t=>{let r=eb[t]||e_[t]||ew[t];if(!r)return;let{qualifier:n,prefix:i,converters:a}=r,o=eE({qualifier:n,prefix:i,value:e[t],converters:a});o&&v.push(o)})}),s.forEach(e=>{Object.keys(e).forEach(t=>{let r=eb[t]||e_[t]||ew[t];if(!r)return;let{qualifier:n,prefix:i,converters:a}=r,o=eE({qualifier:n,prefix:i,value:e[t],converters:a});o&&y.push(o)})}),(Array.isArray(l)?l:[l]).forEach(e=>{let{success:t}=er.safeParse(e);t&&v.push(`fl_${e}`)}),(Array.isArray(u)?u:[u]).forEach(e=>{let{success:t}=er.safeParse(e);t&&y.push(`fl_${e}`)}),m){"string"==typeof i&&(i={...e$,text:i});let e=[];if("object"==typeof i)for(let t of function(e=[],t,r="asc"){let n=[...e];return"string"!=typeof t?n:(n=n.sort(function(e,r){let n=e[t],i=r[t];return("string"==typeof n&&(n=n.toLowerCase()),"string"==typeof i&&(i=i.toLowerCase()),n<i)?-1:n>i?1:0}),"desc"===r)?n.reverse():n}(Object.keys(i).filter(e=>p(ex,e)).map(e=>{let t=i&&p(i,e)&&i[e];return{...ex[e],key:e,value:t,order:ex[e].order||99}}),"order")){let{key:r,value:n,qualifier:i,location:a,converters:o}=t,s=n;o?.forEach(({test:e,convert:t})=>{e(n)&&(s=t(n))}),"primary"===a?v.push(`${i}_${s}`):"self"===i?e.push(r):i?e.push(`${i}_${s}`):e.push(s)}let t={".":"%2E",",":"%2C","/":"%2F"},r=i?.text||"";"string"==typeof r&&Object.keys(t)?.forEach(e=>{r=r?.replace(e,t[e])}),d=`${d}:${e.join("_")}:${r}`}g&&Object.keys(n).forEach(e=>{if(!p(ew,e)||!p(n,e))return;let{qualifier:t,converters:r}=ew[e],i=eE({qualifier:t,value:n[e],converters:r});i&&y.push(i)}),v.length>0&&(d=`${d},${v.join(",")}`),d=`${d}/fl_layer_apply,fl_no_overflow`,y.length>0&&(d=`${d},${y.join(",")}`),e.addTransformation(d)}return Array.isArray(n)&&n.forEach(i),"string"==typeof r?i({text:Object.assign({},e$,{text:r})}):"object"==typeof r&&i({text:Object.assign({},e$,r)}),{}}},{props:eJ,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{sanitize:r=!0}=t;return r&&("svg"===t.format||e.publicID.endsWith(".svg"))&&e.effect("fl_sanitize"),{}}},{props:eV,strict:!0,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{transformations:r,namedTransformations:n}=t;r&&"development"===X.env.NODE_ENVIRONMENT&&console.warn("The transformations prop is deprecated. Please use namedTransformations instead.");let i=n||r||[];return Array.isArray(i)||(i=[i]),i.forEach(t=>{e.addTransformation(`t_${t}`)}),{}}},{props:eH,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{seoSuffix:r}=t;return"string"==typeof r&&("fetch"===t.deliveryType?console.warn("SEO suffix is not supported with a delivery type of fetch"):e.setSuffix(r)),{}}},{props:eX,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{underlay:r,underlays:n=[]}=t;function i({publicId:t,type:r,position:n,effects:i=[],flags:a=[],appliedFlags:o=[],...s}){let l="object"==typeof n;if("string"!=typeof t){console.warn(`An ${r} is missing a Public ID`);return}let u=`u_${t.replace(/\//g,":")}`,c=[],d=[];Object.keys(s).forEach(e=>{if(!p(eb,e))return;let{qualifier:t}=eb[e];c.push(`${t}_${s[e]}`)}),i.forEach(e=>{Object.keys(e).forEach(t=>{if(!p(eb,t))return;let{qualifier:r}=eb[t];c.push(`${r}_${e[t]}`)})}),l&&Object.keys(n).forEach(e=>{if(!p(ew,e))return;let{qualifier:t}=ew[e];d.push(`${t}_${n[e]}`)}),(Array.isArray(a)?a:[a]).forEach(e=>{let{success:t}=er.safeParse(e);t&&c.push(`fl_${e}`)}),(Array.isArray(o)?o:[o]).forEach(e=>{let{success:t}=er.safeParse(e);t&&d.push(`fl_${e}`)}),u=`${u},${c.join(",")}`,u=`${u}/fl_layer_apply,fl_no_overflow`,d.length>0&&(u=`${u},${d.join(",")}`),e.addTransformation(u)}return Array.isArray(n)&&n.forEach(i),"string"==typeof r&&i({publicId:r,crop:"fill",width:"1.0",height:"1.0",flags:["relative"]}),{}}},{props:eG,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{version:r}=t;return("string"==typeof r||"number"==typeof r)&&e.setVersion(`${r}`.replace("v","")),{}}},{props:ti,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{zoompan:r=!1}=t,n={format:void 0};if(!0===r)e.effect("e_zoompan");else if("string"==typeof r)"loop"===r?(e.effect("e_zoompan"),e.effect("e_loop")):e.effect(`e_zoompan:${r}`);else if("object"==typeof r){let t,n="e_zoompan";"string"==typeof r.options&&(n=`${n}:${r.options}`),e.effect(n),!0===r.loop?t="e_loop":("string"==typeof r.loop||"number"==typeof r.loop)&&(t=`e_loop:${r.loop}`),t&&e.effect(t)}return!1!==r&&(n.format="auto:animated"),{options:n}}}],td=h.z.union([ta,ts]).describe(JSON.stringify({text:"Asset options (Image or Video) that define delivery URL including public ID and transformations.",path:"/url-loader/assetoptions"}));function tf({options:e,config:t={},analytics:r}){let n,i;!1===r&&(void 0===t?.url&&(t.url={}),t.url.analytics=!1);let a=new K(t);if("string"!=typeof e?.src)throw Error("Failed to construct Cloudinary URL: Missing source (src) in options.");e?.assetType||(e.assetType="image");let o=[];tc.forEach(({props:e})=>{Object.keys(e).forEach(e=>{if(o.includes(e))throw Error(`Option ${e} already exists!`);o.push(e)})});let s={};if("string"==typeof e.src&&/^https?:\/\//.test(e.src))try{let t=d(e.src);n=t?.publicId,s.seoSuffix=t?.seoSuffix,s.version=t?.version}catch(e){}if(n||(n=e.src),Object.keys(s).forEach(t=>{p(e,t)||(e[t]=s[t])}),e.version??(e.version=1),["image","images"].includes(e.assetType)?i=a.image(n):["video","videos"].includes(e.assetType)&&(i=a.video(n)),void 0===i)throw Error("Invalid asset type.");let l={};if(tc.forEach(({plugin:t,assetTypes:r,props:n,strict:a})=>{let o=e?.assetType!==void 0&&r.includes(e.assetType),s=Object.keys(n),u=Object.keys(e),c=s.map(e=>u.includes(e)).filter(e=>!!e).length>0;if(!o){c&&console.warn(`One of the following props [${s.join(", ")}] was used with an unsupported asset type [${e?.assetType}]`);return}if(e.strictTransformations&&!a){c&&console.warn(`One of the following props [${s.join(", ")}] was used that is not supported with Strict Transformations.`);return}let{options:d}=t({cldAsset:i,options:e})||{options:void 0};Object.assign(l,d)}),"string"==typeof l.resize&&i.addTransformation(l.resize),i.setDeliveryType(e?.deliveryType||"upload"),!e.strictTransformations){if(e?.dpr){let t=e.dpr;"number"==typeof t&&(t=t.toFixed(1)),i.addTransformation(`dpr_${t}`)}let t=e?.format==="default",r=tp("f_",i,{matchType:"startsWith"}),n=r&&void 0!==e?.format;(l?.format||!t&&(!r||n))&&i.format(e?.format||l?.format||"auto");let a=e?.quality==="default",o=tp("q_",i,{matchType:"startsWith"}),s=o&&void 0!==e?.quality;a||o&&!s||i.quality(e?.quality||"auto")}return i.toURL({trackedAnalytics:r})}function tp(e,t,r){if(void 0===t.transformation)return;let{matchType:n="includes"}=r||{};return t.transformation.actions.flatMap(e=>e.toString().split("/").flatMap(e=>e.split(","))).filter(t=>"startsWith"===n?t.startsWith(e):t.includes(e)).length>0}h.z.object({analytics:h.z.union([tl,h.z.boolean()]).describe(JSON.stringify({text:"Tech, dependency, and feature identifiers for tracking SDK usage related to Cloudinary.",path:"/url-loader/analyticsoptions"})).optional(),config:tu.describe(JSON.stringify({text:"Configuration parameters for environment and Cloudinary account.",url:"https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters",path:"/url-loader/analyticsoptions"})).optional(),options:td});var th=r(58824),tm=r(73547),tg=r(14224),tv=tb("14.2.16"),ty=tb("6.16.0");function tb(e){let t=e;return t.includes("-")&&(t=t.split("-")[0]),t}function tw(e){let t=e?.cloud?.cloudName??"dhp2qhne9";if(!t)throw Error("A Cloudinary Cloud name is required, please make sure NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME is set and configured in your environment.");let r=e?.cloud?.apiKey??tg.env.NEXT_PUBLIC_CLOUDINARY_API_KEY,n=e?.url?.secureDistribution??tg.env.NEXT_PUBLIC_CLOUDINARY_SECURE_DISTRIBUTION,i=e?.url?.privateCdn??tg.env.NEXT_PUBLIC_CLOUDINARY_PRIVATE_CDN;return Object.assign({cloud:{...e?.cloud,apiKey:r,cloudName:t},url:{...e?.url,secureDistribution:n,privateCdn:i}},e)}function tx(e,t,r){return tf({options:e,config:tw(t),analytics:Object.assign({product:"A",sdkCode:"V",sdkSemver:ty,techVersion:tv,feature:""},r)})}var t_=(0,n.forwardRef)(function(e,t){let r=!1,o=["assetType","config","deliveryType","strictTransformations"];tc.forEach(({props:e})=>{Object.keys(e).forEach(e=>{if(o.includes(e))throw Error(`Option ${e} already exists!`);o.push(e)})});let s={alt:e.alt,src:e.src};Object.keys(e).filter(e=>"string"==typeof e&&!o.includes(e)).forEach(t=>s[t]=e[t]);let l=Object.keys(s).map(e=>`${e}:${s[e]}`).join(";"),[u,c]=(0,n.useState)(l),d={};async function f(t){let n=!0;if(r)return;if(r=!0,"function"==typeof e.onError){let r=e.onError(t);"boolean"==typeof r&&!1===r&&(n=!1)}else"boolean"==typeof e.onError&&!1===e.onError&&(n=!1);if(!1===n)return;let i=t.target,o=await a({src:i.src});o.error,o.success&&c(`${l};${Date.now()}`)}o.forEach(t=>{let r=e[t];r&&(d[t]=r)}),!0===e.unoptimized&&(s.src=tx({...d,width:s.width,height:s.height,src:s.src,format:"default",quality:"default"},e.config));let p=(0,n.useCallback)(f,[a,l]),h=i;return"default"in h&&(h=h.default),n.createElement(h,{key:u,...s,loader:t=>(function({loaderOptions:e,imageProps:t,cldOptions:r,cldConfig:n={}}){let i={...t,...r};if(i.width="string"==typeof i.width?parseInt(i.width):i.width,i.height="string"==typeof i.height?parseInt(i.height):i.height,"number"==typeof e?.width&&"number"==typeof i.width&&e.width!==i.width){let t=e.width/i.width;i.width=e.width,"number"==typeof i.height&&(i.height=Math.floor(i.height*t))}else"number"==typeof e?.width&&"number"!=typeof i?.width&&(i.width=e?.width);return tx(i,n)})({loaderOptions:t,imageProps:s,cldOptions:d,cldConfig:e.config}),onError:p,ref:t})}),tE=[],tS="1.11.1",tk=e=>{let{className:t,config:r,height:i,id:a,onDataLoad:o,onError:s,onMetadataLoad:l,onPause:u,onPlay:c,onEnded:f,width:p}=e,h=(0,n.useId)(),m=function(e,t){let r;let{autoplay:n,controls:i=!0,language:a,languages:o,logo:s=!0,loop:l=!1,muted:u=!1,poster:c,src:f,transformation:p,quality:h="auto",...m}=e,{cloudName:g}=t?.cloud||{},{secureDistribution:v,privateCdn:y}=t?.url||{};if(!g)throw Error("A Cloudinary Cloud name is required, please make sure your environment variable is set and configured in your environment.");let b=f||"";if(b.startsWith("http"))try{let e=d(f);"string"==typeof e?.publicId&&(b=e?.publicId)}catch(e){}if(!b)throw Error("Video Player requires a src, please make sure to configure your src as a public ID or Cloudinary URL.");let w=Array.isArray(p)?p:[p];w.unshift({quality:h});let x={};"boolean"==typeof s?x.showLogo=s:"object"==typeof s&&(x={...x,showLogo:!0,logoImageUrl:s.imageUrl,logoOnclickUrl:s.onClickUrl});let _=!1;("boolean"==typeof n||"true"===n||"false"===n)&&(_=n),"string"==typeof n&&"true"!==n&&"false"!==n&&(r=n);let E={cloud_name:g,privateCdn:y,secureDistribution:v,autoplayMode:r,autoplay:_,controls:i,language:a,languages:o,loop:l,muted:u,publicId:b,transformation:w,...x,...m};return E.width&&E.height&&!E.aspectRatio&&(E.aspectRatio=`${E.width}:${E.height}`),"string"==typeof c?E.posterOptions={publicId:c}:"object"==typeof c&&("string"!=typeof c.src?E.posterOptions={publicId:tf({options:{...c,src:b,assetType:"video",format:"auto:image"},config:t})}:E.posterOptions={publicId:tf({options:c,config:t})}),E}(e,tw(r)),{publicId:g}=m;if(typeof g>"u")throw Error("Video Player requires a Public ID or Cloudinary URL - please specify a src prop");let v=(0,n.useRef)(),y=(0,n.useRef)(),b=e.videoRef||y,w=(0,n.useRef)(),x=e.playerRef||w,_=a||`player-${h.replace(/:/g,"")}`,E="cld-video-player cld-fluid";t&&(E=`${E} ${t}`),tE.filter(e=>e===_).length>1?console.warn(`Multiple instances of the same video detected on the
     page which may cause some features to not work.
    Try adding a unique id to each player.`):tE.push(_);let S={error:s,loadeddata:o,loadedmetadata:l,pause:u,play:c,ended:f};function k(e){let t=S[e.type];"function"==typeof t&&t({player:x.current,video:b.current})}return(0,n.useEffect)(()=>()=>{x.current?.videojs.cloudinary.dispose(),tE=tE.filter(e=>e!==_)},[]),n.createElement(n.Fragment,null,n.createElement(th,null,n.createElement("link",{href:`https://unpkg.com/cloudinary-video-player@${tS}/dist/cld-video-player.min.css`,rel:"stylesheet"})),n.createElement("div",{style:{width:"100%",aspectRatio:`${p} / ${i}`}},n.createElement("video",{ref:b,id:_,className:E,width:p,height:i}),n.createElement(tm,{id:`cloudinary-videoplayer-${_}`,src:`https://unpkg.com/cloudinary-video-player@${tS}/dist/cld-video-player.min.js`,onLoad:function(){"cloudinary"in window&&(v.current=window.cloudinary,x.current=v.current.videoPlayer(b.current,m),Object.keys(S).forEach(e=>{"function"==typeof S[e]&&x.current?.on(e,k)}))},onError:e=>console.error(`Failed to load Cloudinary Video Player: ${e.message}`)})))}},75249:function(e,t,r){"use strict";r.d(t,{z:function(){return a}});var n=r(67576),i=r(9292);function a(e,t,r){let a=(0,i.Q)(e,null==r?void 0:r.in);if(isNaN(t))return(0,n.L)((null==r?void 0:r.in)||e,NaN);if(!t)return a;let o=a.getDate(),s=(0,n.L)((null==r?void 0:r.in)||e,a.getTime());return(s.setMonth(a.getMonth()+t+1,0),o>=s.getDate())?s:(a.setFullYear(s.getFullYear(),s.getMonth(),o),a)}},7469:function(e,t,r){"use strict";r.d(t,{I7:function(){return a},dP:function(){return i},jE:function(){return n}});let n=6048e5,i=864e5,a=Symbol.for("constructDateFrom")},67576:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(7469);function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&n.I7 in e?e[n.I7](t):e instanceof Date?new e.constructor(t):new Date(t)}},9292:function(e,t,r){"use strict";r.d(t,{Q:function(){return i}});var n=r(67576);function i(e,t){return(0,n.L)(t||e,e)}},28533:function(e,t,r){"use strict";r.d(t,{Gc:function(){return C},KN:function(){return V},Qr:function(){return D},RV:function(){return A},U2:function(){return v},cI:function(){return eE},t8:function(){return x}});var n=r(75271),i=e=>"checkbox"===e.type,a=e=>e instanceof Date,o=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!o(e)&&!Array.isArray(e)&&s(e)&&!a(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},p="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){let t;let r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(p&&(e instanceof Blob||e instanceof FileList))&&(r||l(e))))return e;else if(t=r?[]:{},r||f(e))for(let r in e)e.hasOwnProperty(r)&&(t[r]=h(e[r]));else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],g=e=>void 0===e,v=(e,t,r)=>{if(!t||!l(e))return r;let n=m(t.split(/[,[\].]+?/)).reduce((e,t)=>o(e)?e:e[t],e);return g(n)||n===e?g(e[t])?r:e[t]:n},y=e=>"boolean"==typeof e,b=e=>/^\w*$/.test(e),w=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),x=(e,t,r)=>{let n=-1,i=b(t)?[t]:w(t),a=i.length,o=a-1;for(;++n<a;){let t=i[n],a=r;if(n!==o){let r=e[t];a=l(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===t)return;e[t]=a,e=e[t]}return e};let _={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},E={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},S={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},k=n.createContext(null),C=()=>n.useContext(k),A=e=>{let{children:t,...r}=e;return n.createElement(k.Provider,{value:r},t)};var T=(e,t,r,n=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>(t._proxyFormState[a]!==E.all&&(t._proxyFormState[a]=!n||E.all),r&&(r[a]=!0),e[a])});return i},O=e=>l(e)&&!Object.keys(e).length,j=(e,t,r,n)=>{r(e);let{name:i,...a}=e;return O(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!n||E.all))},R=e=>Array.isArray(e)?e:[e],P=(e,t,r)=>!e||!t||e===t||R(e).some(e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e)));function N(e){let t=n.useRef(e);t.current=e,n.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}var z=e=>"string"==typeof e,M=(e,t,r,n,i)=>z(e)?(n&&t.watch.add(e),v(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),v(r,e))):(n&&(t.watchAll=!0),r);let D=e=>e.render(function(e){let t=C(),{name:r,disabled:i,control:a=t.control,shouldUnregister:o}=e,s=d(a._names.array,r),l=function(e){let t=C(),{control:r=t.control,name:i,defaultValue:a,disabled:o,exact:s}=e||{},l=n.useRef(i);l.current=i,N({disabled:o,subject:r._subjects.values,next:e=>{P(l.current,e.name,s)&&c(h(M(l.current,r._names,e.values||r._formValues,!1,a)))}});let[u,c]=n.useState(r._getWatch(i,a));return n.useEffect(()=>r._removeUnmounted()),u}({control:a,name:r,defaultValue:v(a._formValues,r,v(a._defaultValues,r,e.defaultValue)),exact:!0}),c=function(e){let t=C(),{control:r=t.control,disabled:i,name:a,exact:o}=e||{},[s,l]=n.useState(r._formState),u=n.useRef(!0),c=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=n.useRef(a);return d.current=a,N({disabled:i,next:e=>u.current&&P(d.current,e.name,o)&&j(e,c.current,r._updateFormState)&&l({...r._formState,...e}),subject:r._subjects.state}),n.useEffect(()=>(u.current=!0,c.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),T(s,r,c.current,!1)}({control:a,name:r,exact:!0}),f=n.useRef(a.register(r,{...e.rules,value:l,...y(e.disabled)?{disabled:e.disabled}:{}}));return n.useEffect(()=>{let e=a._options.shouldUnregister||o,t=(e,t)=>{let r=v(a._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){let e=h(v(a._options.defaultValues,r));x(a._defaultValues,r,e),g(v(a._formValues,r))&&x(a._formValues,r,e)}return()=>{(s?e&&!a._state.action:e)?a.unregister(r):t(r,!1)}},[r,a,s,o]),n.useEffect(()=>{v(a._fields,r)&&a._updateDisabledField({disabled:i,fields:a._fields,name:r,value:v(a._fields,r)._f.value})},[i,r,a]),{field:{name:r,value:l,...y(i)||c.disabled?{disabled:c.disabled||i}:{},onChange:n.useCallback(e=>f.current.onChange({target:{value:u(e),name:r},type:_.CHANGE}),[r]),onBlur:n.useCallback(()=>f.current.onBlur({target:{value:v(a._formValues,r),name:r},type:_.BLUR}),[r,a]),ref:n.useCallback(e=>{let t=v(a._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[a._fields,r])},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!v(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!v(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!v(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!v(c.validatingFields,r)},error:{enumerable:!0,get:()=>v(c.errors,r)}})}}(e));var V=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},L=e=>({isOnSubmit:!e||e===E.onSubmit,isOnBlur:e===E.onBlur,isOnChange:e===E.onChange,isOnAll:e===E.all,isOnTouch:e===E.onTouched}),I=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let F=(e,t,r,n)=>{for(let i of r||Object.keys(e)){let r=v(e,i);if(r){let{_f:e,...a}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!n||e.ref&&t(e.ref,e.name)&&!n)return!0;if(F(a,t))break}else if(l(a)&&F(a,t))break}}};var $=(e,t,r)=>{let n=R(v(e,r));return x(n,"root",t[r]),x(e,r,n),e},U=e=>"file"===e.type,B=e=>"function"==typeof e,Z=e=>{if(!p)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},q=e=>z(e),W=e=>"radio"===e.type,J=e=>e instanceof RegExp;let H={value:!1,isValid:!1},Y={value:!0,isValid:!0};var K=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!g(e[0].attributes.value)?g(e[0].value)||""===e[0].value?Y:{value:e[0].value,isValid:!0}:Y:H}return H};let X={isValid:!1,value:null};var G=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,X):X;function Q(e,t,r="validate"){if(q(e)||Array.isArray(e)&&e.every(q)||y(e)&&!e)return{type:r,message:q(e)?e:"",ref:t}}var ee=e=>l(e)&&!J(e)?e:{value:e,message:""},et=async(e,t,r,n,a)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:p,max:h,pattern:m,validate:b,name:w,valueAsNumber:x,mount:_,disabled:E}=e._f,k=v(t,w);if(!_||E)return{};let C=u?u[0]:s,A=e=>{n&&C.reportValidity&&(C.setCustomValidity(y(e)?"":e||""),C.reportValidity())},T={},j=W(s),R=i(s),P=(x||U(s))&&g(s.value)&&g(k)||Z(s)&&""===s.value||""===k||Array.isArray(k)&&!k.length,N=V.bind(null,w,r,T),M=(e,t,r,n=S.maxLength,i=S.minLength)=>{let a=e?t:r;T[w]={type:e?n:i,message:a,ref:s,...N(e?n:i,a)}};if(a?!Array.isArray(k)||!k.length:c&&(!(j||R)&&(P||o(k))||y(k)&&!k||R&&!K(u).isValid||j&&!G(u).isValid)){let{value:e,message:t}=q(c)?{value:!!c,message:c}:ee(c);if(e&&(T[w]={type:S.required,message:t,ref:C,...N(S.required,t)},!r))return A(t),T}if(!P&&(!o(p)||!o(h))){let e,t;let n=ee(h),i=ee(p);if(o(k)||isNaN(k)){let r=s.valueAsDate||new Date(k),a=e=>new Date(new Date().toDateString()+" "+e),o="time"==s.type,l="week"==s.type;z(n.value)&&k&&(e=o?a(k)>a(n.value):l?k>n.value:r>new Date(n.value)),z(i.value)&&k&&(t=o?a(k)<a(i.value):l?k<i.value:r<new Date(i.value))}else{let r=s.valueAsNumber||(k?+k:k);o(n.value)||(e=r>n.value),o(i.value)||(t=r<i.value)}if((e||t)&&(M(!!e,n.message,i.message,S.max,S.min),!r))return A(T[w].message),T}if((d||f)&&!P&&(z(k)||a&&Array.isArray(k))){let e=ee(d),t=ee(f),n=!o(e.value)&&k.length>+e.value,i=!o(t.value)&&k.length<+t.value;if((n||i)&&(M(n,e.message,t.message),!r))return A(T[w].message),T}if(m&&!P&&z(k)){let{value:e,message:t}=ee(m);if(J(e)&&!k.match(e)&&(T[w]={type:S.pattern,message:t,ref:s,...N(S.pattern,t)},!r))return A(t),T}if(b){if(B(b)){let e=Q(await b(k,t),C);if(e&&(T[w]={...e,...N(S.validate,e.message)},!r))return A(e.message),T}else if(l(b)){let e={};for(let n in b){if(!O(e)&&!r)break;let i=Q(await b[n](k,t),C,n);i&&(e={...i,...N(n,i.message)},A(i.message),r&&(T[w]=e))}if(!O(e)&&(T[w]={ref:C,...e},!r))return T}}return A(!0),T};function er(e,t){let r=Array.isArray(t)?t:b(t)?[t]:w(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n<r;)e=g(e)?n++:e[t[n++]];return e}(e,r),i=r.length-1,a=r[i];return n&&delete n[a],0!==i&&(l(n)&&O(n)||Array.isArray(n)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!g(e[t]))return!1;return!0}(n))&&er(e,r.slice(0,-1)),e}var en=()=>{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},ei=e=>o(e)||!s(e);function ea(e,t){if(ei(e)||ei(t))return e===t;if(a(e)&&a(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r){let r=e[i];if(!n.includes(i))return!1;if("ref"!==i){let e=t[i];if(a(r)&&a(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!ea(r,e):r!==e)return!1}}return!0}var eo=e=>"select-multiple"===e.type,es=e=>W(e)||i(e),el=e=>Z(e)&&e.isConnected,eu=e=>{for(let t in e)if(B(e[t]))return!0;return!1};function ec(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!eu(e[r])?(t[r]=Array.isArray(e[r])?[]:{},ec(e[r],t[r])):o(e[r])||(t[r]=!0);return t}var ed=(e,t)=>(function e(t,r,n){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!eu(t[i])?g(r)||ei(n[i])?n[i]=Array.isArray(t[i])?ec(t[i],[]):{...ec(t[i])}:e(t[i],o(r)?{}:r[i],n[i]):n[i]=!ea(t[i],r[i]);return n})(e,t,ec(t)),ef=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>g(e)?e:t?""===e?NaN:e?+e:e:r&&z(e)?new Date(e):n?n(e):e;function ep(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:U(t)?t.files:W(t)?G(e.refs).value:eo(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?K(e.refs).value:ef(g(t.value)?e.ref.value:t.value,e)}var eh=(e,t,r,n)=>{let i={};for(let r of e){let e=v(t,r);e&&x(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},em=e=>g(e)?e:J(e)?e.source:l(e)?J(e.value)?e.value.source:e.value:e;let eg="AsyncFunction";var ev=e=>(!e||!e.validate)&&!!(B(e.validate)&&e.validate.constructor.name===eg||l(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===eg)),ey=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function eb(e,t,r){let n=v(e,r);if(n||b(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),a=v(t,n),o=v(e,n);if(a&&!Array.isArray(a)&&r!==n)break;if(o&&o.type)return{name:n,error:o};i.pop()}return{name:r}}var ew=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?!n.isOnChange:!i.isOnChange)||e),ex=(e,t)=>!m(v(e,t)).length&&er(e,t);let e_={mode:E.onSubmit,reValidateMode:E.onChange,shouldFocusError:!0};function eE(e={}){let t=n.useRef(),r=n.useRef(),[s,c]=n.useState({isDirty:!1,isValidating:!1,isLoading:B(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:B(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={}){let t,r={...e_,...e},n={submitCount:0,isDirty:!1,isLoading:B(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},c=(l(r.defaultValues)||l(r.values))&&h(r.defaultValues||r.values)||{},f=r.shouldUnregister?{}:h(c),b={action:!1,mount:!1,watch:!1},w={mount:new Set,unMount:new Set,array:new Set,watch:new Set},S=0,k={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},C={values:en(),array:en(),state:en()},A=L(r.mode),T=L(r.reValidateMode),j=r.criteriaMode===E.all,P=e=>t=>{clearTimeout(S),S=setTimeout(e,t)},N=async t=>{if(!e.disabled&&(k.isValid||t)){let e=r.resolver?O((await H()).errors):await K(s,!0);e!==n.isValid&&C.state.next({isValid:e})}},D=(t,r)=>{!e.disabled&&(k.isValidating||k.validatingFields)&&((t||Array.from(w.mount)).forEach(e=>{e&&(r?x(n.validatingFields,e,r):er(n.validatingFields,e))}),C.state.next({validatingFields:n.validatingFields,isValidating:!O(n.validatingFields)}))},V=(e,t)=>{x(n.errors,e,t),C.state.next({errors:n.errors})},q=(e,t,r,n)=>{let i=v(s,e);if(i){let a=v(f,e,g(r)?v(c,e):r);g(a)||n&&n.defaultChecked||t?x(f,e,t?a:ep(i._f)):Q(e,a),b.mount&&N()}},W=(t,r,i,a,o)=>{let l=!1,u=!1,d={name:t};if(!e.disabled){let e=!!(v(s,t)&&v(s,t)._f&&v(s,t)._f.disabled);if(!i||a){k.isDirty&&(u=n.isDirty,n.isDirty=d.isDirty=X(),l=u!==d.isDirty);let i=e||ea(v(c,t),r);u=!!(!e&&v(n.dirtyFields,t)),i||e?er(n.dirtyFields,t):x(n.dirtyFields,t,!0),d.dirtyFields=n.dirtyFields,l=l||k.dirtyFields&&!i!==u}if(i){let e=v(n.touchedFields,t);e||(x(n.touchedFields,t,i),d.touchedFields=n.touchedFields,l=l||k.touchedFields&&e!==i)}l&&o&&C.state.next(d)}return l?d:{}},J=(r,i,a,o)=>{let s=v(n.errors,r),l=k.isValid&&y(i)&&n.isValid!==i;if(e.delayError&&a?(t=P(()=>V(r,a)))(e.delayError):(clearTimeout(S),t=null,a?x(n.errors,r,a):er(n.errors,r)),(a?!ea(s,a):s)||!O(o)||l){let e={...o,...l&&y(i)?{isValid:i}:{},errors:n.errors,name:r};n={...n,...e},C.state.next(e)}},H=async e=>{D(e,!0);let t=await r.resolver(f,r.context,eh(e||w.mount,s,r.criteriaMode,r.shouldUseNativeValidation));return D(e),t},Y=async e=>{let{errors:t}=await H(e);if(e)for(let r of e){let e=v(t,r);e?x(n.errors,r,e):er(n.errors,r)}else n.errors=t;return t},K=async(e,t,i={valid:!0})=>{for(let a in e){let o=e[a];if(o){let{_f:e,...s}=o;if(e){let s=w.array.has(e.name),l=o._f&&ev(o._f);l&&k.validatingFields&&D([a],!0);let u=await et(o,f,j,r.shouldUseNativeValidation&&!t,s);if(l&&k.validatingFields&&D([a]),u[e.name]&&(i.valid=!1,t))break;t||(v(u,e.name)?s?$(n.errors,u,e.name):x(n.errors,e.name,u[e.name]):er(n.errors,e.name))}O(s)||await K(s,t,i)}}return i.valid},X=(t,r)=>!e.disabled&&(t&&r&&x(f,t,r),!ea(eE(),c)),G=(e,t,r)=>M(e,w,{...b.mount?f:g(t)?c:z(e)?{[e]:t}:t},r,t),Q=(e,t,r={})=>{let n=v(s,e),a=t;if(n){let r=n._f;r&&(r.disabled||x(f,e,ef(t,r)),a=Z(r.ref)&&o(t)?"":t,eo(r.ref)?[...r.ref.options].forEach(e=>e.selected=a.includes(e.value)):r.refs?i(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find(t=>t===e.value):a===e.value)):r.refs[0]&&(r.refs[0].checked=!!a):r.refs.forEach(e=>e.checked=e.value===a):U(r.ref)?r.ref.value="":(r.ref.value=a,r.ref.type||C.values.next({name:e,values:{...f}})))}(r.shouldDirty||r.shouldTouch)&&W(e,a,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&eg(e)},ee=(e,t,r)=>{for(let n in t){let i=t[n],o=`${e}.${n}`,u=v(s,o);(w.array.has(e)||l(i)||u&&!u._f)&&!a(i)?ee(o,i,r):Q(o,i,r)}},ei=(e,t,r={})=>{let i=v(s,e),a=w.array.has(e),l=h(t);x(f,e,l),a?(C.array.next({name:e,values:{...f}}),(k.isDirty||k.dirtyFields)&&r.shouldDirty&&C.state.next({name:e,dirtyFields:ed(c,f),isDirty:X(e,l)})):!i||i._f||o(l)?Q(e,l,r):ee(e,l,r),I(e,w)&&C.state.next({...n}),C.values.next({name:b.mount?e:void 0,values:{...f}})},eu=async i=>{b.mount=!0;let o=i.target,l=o.name,c=!0,d=v(s,l),p=e=>{c=Number.isNaN(e)||a(e)&&isNaN(e.getTime())||ea(e,v(f,l,e))};if(d){let a,h;let m=o.type?ep(d._f):u(i),g=i.type===_.BLUR||i.type===_.FOCUS_OUT,y=!ey(d._f)&&!r.resolver&&!v(n.errors,l)&&!d._f.deps||ew(g,v(n.touchedFields,l),n.isSubmitted,T,A),b=I(l,w,g);x(f,l,m),g?(d._f.onBlur&&d._f.onBlur(i),t&&t(0)):d._f.onChange&&d._f.onChange(i);let E=W(l,m,g,!1),S=!O(E)||b;if(g||C.values.next({name:l,type:i.type,values:{...f}}),y)return k.isValid&&("onBlur"===e.mode?g&&N():N()),S&&C.state.next({name:l,...b?{}:E});if(!g&&b&&C.state.next({...n}),r.resolver){let{errors:e}=await H([l]);if(p(m),c){let t=eb(n.errors,s,l),r=eb(e,s,t.name||l);a=r.error,l=r.name,h=O(e)}}else D([l],!0),a=(await et(d,f,j,r.shouldUseNativeValidation))[l],D([l]),p(m),c&&(a?h=!1:k.isValid&&(h=await K(s,!0)));c&&(d._f.deps&&eg(d._f.deps),J(l,h,a,E))}},ec=(e,t)=>{if(v(n.errors,t)&&e.focus)return e.focus(),1},eg=async(e,t={})=>{let i,a;let o=R(e);if(r.resolver){let t=await Y(g(e)?e:o);i=O(t),a=e?!o.some(e=>v(t,e)):i}else e?((a=(await Promise.all(o.map(async e=>{let t=v(s,e);return await K(t&&t._f?{[e]:t}:t)}))).every(Boolean))||n.isValid)&&N():a=i=await K(s);return C.state.next({...!z(e)||k.isValid&&i!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:n.errors}),t.shouldFocus&&!a&&F(s,ec,e?o:w.mount),a},eE=e=>{let t={...b.mount?f:c};return g(e)?t:z(e)?v(t,e):e.map(e=>v(t,e))},eS=(e,t)=>({invalid:!!v((t||n).errors,e),isDirty:!!v((t||n).dirtyFields,e),error:v((t||n).errors,e),isValidating:!!v(n.validatingFields,e),isTouched:!!v((t||n).touchedFields,e)}),ek=(e,t,r)=>{let i=(v(s,e,{_f:{}})._f||{}).ref,{ref:a,message:o,type:l,...u}=v(n.errors,e)||{};x(n.errors,e,{...u,...t,ref:i}),C.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},eC=(e,t={})=>{for(let i of e?R(e):w.mount)w.mount.delete(i),w.array.delete(i),t.keepValue||(er(s,i),er(f,i)),t.keepError||er(n.errors,i),t.keepDirty||er(n.dirtyFields,i),t.keepTouched||er(n.touchedFields,i),t.keepIsValidating||er(n.validatingFields,i),r.shouldUnregister||t.keepDefaultValue||er(c,i);C.values.next({values:{...f}}),C.state.next({...n,...t.keepDirty?{isDirty:X()}:{}}),t.keepIsValid||N()},eA=({disabled:e,name:t,field:r,fields:n,value:i})=>{if(y(e)&&b.mount||e){let a=e?void 0:g(i)?ep(r?r._f:v(n,t)._f):i;x(f,t,a),W(t,a,!1,!1,!0)}},eT=(t,n={})=>{let i=v(s,t),a=y(n.disabled)||y(e.disabled);return x(s,t,{...i||{},_f:{...i&&i._f?i._f:{ref:{name:t}},name:t,mount:!0,...n}}),w.mount.add(t),i?eA({field:i,disabled:y(n.disabled)?n.disabled:e.disabled,name:t,value:n.value}):q(t,!0,n.value),{...a?{disabled:n.disabled||e.disabled}:{},...r.progressive?{required:!!n.required,min:em(n.min),max:em(n.max),minLength:em(n.minLength),maxLength:em(n.maxLength),pattern:em(n.pattern)}:{},name:t,onChange:eu,onBlur:eu,ref:e=>{if(e){eT(t,n),i=v(s,t);let r=g(e.value)&&e.querySelectorAll&&e.querySelectorAll("input,select,textarea")[0]||e,a=es(r),o=i._f.refs||[];(a?o.find(e=>e===r):r===i._f.ref)||(x(s,t,{_f:{...i._f,...a?{refs:[...o.filter(el),r,...Array.isArray(v(c,t))?[{}]:[]],ref:{type:r.type,name:t}}:{ref:r}}}),q(t,!1,void 0,r))}else(i=v(s,t,{}))._f&&(i._f.mount=!1),(r.shouldUnregister||n.shouldUnregister)&&!(d(w.array,t)&&b.action)&&w.unMount.add(t)}}},eO=()=>r.shouldFocusError&&F(s,ec,w.mount),ej=(e,t)=>async i=>{let a;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let o=h(f);if(C.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await H();n.errors=e,o=t}else await K(s);if(er(n.errors,"root"),O(n.errors)){C.state.next({errors:{}});try{await e(o,i)}catch(e){a=e}}else t&&await t({...n.errors},i),eO(),setTimeout(eO);if(C.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:O(n.errors)&&!a,submitCount:n.submitCount+1,errors:n.errors}),a)throw a},eR=(t,r={})=>{let i=t?h(t):c,a=h(i),o=O(t),l=o?c:a;if(r.keepDefaultValues||(c=i),!r.keepValues){if(r.keepDirtyValues)for(let e of Array.from(new Set([...w.mount,...Object.keys(ed(c,f))])))v(n.dirtyFields,e)?x(l,e,v(f,e)):ei(e,v(l,e));else{if(p&&g(t))for(let e of w.mount){let t=v(s,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Z(e)){let t=e.closest("form");if(t){t.reset();break}}}}s={}}f=e.shouldUnregister?r.keepDefaultValues?h(c):{}:h(l),C.array.next({values:{...l}}),C.values.next({values:{...l}})}w={mount:r.keepDirtyValues?w.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!k.isValid||!!r.keepIsValid||!!r.keepDirtyValues,b.watch=!!e.shouldUnregister,C.state.next({submitCount:r.keepSubmitCount?n.submitCount:0,isDirty:!o&&(r.keepDirty?n.isDirty:!!(r.keepDefaultValues&&!ea(t,c))),isSubmitted:!!r.keepIsSubmitted&&n.isSubmitted,dirtyFields:o?{}:r.keepDirtyValues?r.keepDefaultValues&&f?ed(c,f):n.dirtyFields:r.keepDefaultValues&&t?ed(c,t):r.keepDirty?n.dirtyFields:{},touchedFields:r.keepTouched?n.touchedFields:{},errors:r.keepErrors?n.errors:{},isSubmitSuccessful:!!r.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},eP=(e,t)=>eR(B(e)?e(f):e,t);return{control:{register:eT,unregister:eC,getFieldState:eS,handleSubmit:ej,setError:ek,_executeSchema:H,_getWatch:G,_getDirty:X,_updateValid:N,_removeUnmounted:()=>{for(let e of w.unMount){let t=v(s,e);t&&(t._f.refs?t._f.refs.every(e=>!el(e)):!el(t._f.ref))&&eC(e)}w.unMount=new Set},_updateFieldArray:(t,r=[],i,a,o=!0,l=!0)=>{if(a&&i&&!e.disabled){if(b.action=!0,l&&Array.isArray(v(s,t))){let e=i(v(s,t),a.argA,a.argB);o&&x(s,t,e)}if(l&&Array.isArray(v(n.errors,t))){let e=i(v(n.errors,t),a.argA,a.argB);o&&x(n.errors,t,e),ex(n.errors,t)}if(k.touchedFields&&l&&Array.isArray(v(n.touchedFields,t))){let e=i(v(n.touchedFields,t),a.argA,a.argB);o&&x(n.touchedFields,t,e)}k.dirtyFields&&(n.dirtyFields=ed(c,f)),C.state.next({name:t,isDirty:X(t,r),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else x(f,t,r)},_updateDisabledField:eA,_getFieldArray:t=>m(v(b.mount?f:c,t,e.shouldUnregister?v(c,t,[]):[])),_reset:eR,_resetDefaultValues:()=>B(r.defaultValues)&&r.defaultValues().then(e=>{eP(e,r.resetOptions),C.state.next({isLoading:!1})}),_updateFormState:e=>{n={...n,...e}},_disableForm:e=>{y(e)&&(C.state.next({disabled:e}),F(s,(t,r)=>{let n=v(s,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:C,_proxyFormState:k,_setErrors:e=>{n.errors=e,C.state.next({errors:n.errors,isValid:!1})},get _fields(){return s},get _formValues(){return f},get _state(){return b},set _state(value){b=value},get _defaultValues(){return c},get _names(){return w},set _names(value){w=value},get _formState(){return n},set _formState(value){n=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:eg,register:eT,handleSubmit:ej,watch:(e,t)=>B(e)?C.values.subscribe({next:r=>e(G(void 0,t),r)}):G(e,t,!0),setValue:ei,getValues:eE,reset:eP,resetField:(e,t={})=>{v(s,e)&&(g(t.defaultValue)?ei(e,h(v(c,e))):(ei(e,t.defaultValue),x(c,e,h(t.defaultValue))),t.keepTouched||er(n.touchedFields,e),t.keepDirty||(er(n.dirtyFields,e),n.isDirty=t.defaultValue?X(e,h(v(c,e))):X()),!t.keepError&&(er(n.errors,e),k.isValid&&N()),C.state.next({...n}))},clearErrors:e=>{e&&R(e).forEach(e=>er(n.errors,e)),C.state.next({errors:e?n.errors:{}})},unregister:eC,setError:ek,setFocus:(e,t={})=>{let r=v(s,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e),formState:s});let f=t.current.control;return f._options=e,N({subject:f._subjects.state,next:e=>{j(e,f._proxyFormState,f._updateFormState,!0)&&c({...f._formState})}}),n.useEffect(()=>f._disableForm(e.disabled),[f,e.disabled]),n.useEffect(()=>{if(f._proxyFormState.isDirty){let e=f._getDirty();e!==s.isDirty&&f._subjects.state.next({isDirty:e})}},[f,s.isDirty]),n.useEffect(()=>{e.values&&!ea(e.values,r.current)?(f._reset(e.values,f._options.resetOptions),r.current=e.values,c(e=>({...e}))):f._resetDefaultValues()},[e.values,f]),n.useEffect(()=>{e.errors&&f._setErrors(e.errors)},[e.errors,f]),n.useEffect(()=>{f._state.mount||(f._updateValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),n.useEffect(()=>{e.shouldUnregister&&f._subjects.values.next({values:f._getWatch()})},[e.shouldUnregister,f]),n.useEffect(()=>{t.current&&(t.current.watch=t.current.watch.bind({}))},[s]),t.current.formState=T(s,f),t.current}},27365:function(e,t,r){"use strict";r.d(t,{Am:function(){return g},x7:function(){return x}});var n=r(75271),i=r(30967),a=e=>{switch(e){case"success":return l;case"info":return c;case"warning":return u;case"error":return d;default:return null}},o=Array(12).fill(0),s=({visible:e})=>n.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},n.createElement("div",{className:"sonner-spinner"},o.map((e,t)=>n.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),l=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),u=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),c=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),d=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),f=()=>{let[e,t]=n.useState(document.hidden);return n.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e},p=1,h=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,i="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:p++,a=this.toasts.find(e=>e.id===i),o=void 0===e.dismissible||e.dismissible;return a?this.toasts=this.toasts.map(t=>t.id===i?(this.publish({...t,...e,id:i,title:r}),{...t,...e,id:i,dismissible:o,title:r}):t):this.addToast({title:r,...n,dismissible:o,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let r;if(!t)return;void 0!==t.loading&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let n=e instanceof Promise?e:e(),i=void 0!==r;return n.then(async e=>{if(m(e)&&!e.ok){i=!1;let n="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,a="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description;this.create({id:r,type:"error",message:n,description:a})}else if(void 0!==t.success){i=!1;let n="function"==typeof t.success?await t.success(e):t.success,a="function"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:"success",message:n,description:a})}}).catch(async e=>{if(void 0!==t.error){i=!1;let n="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:"error",message:n,description:a})}}).finally(()=>{var e;i&&(this.dismiss(r),r=void 0),null==(e=t.finally)||e.call(t)}),r},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||p++;return this.create({jsx:e(r),id:r,...t}),r},this.subscribers=[],this.toasts=[]}},m=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,g=Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||p++;return h.addToast({title:e,...t,id:r}),r},{success:h.success,info:h.info,warning:h.warning,error:h.error,custom:h.custom,message:h.message,promise:h.promise,dismiss:h.dismiss,loading:h.loading},{getHistory:()=>h.toasts});function v(e){return void 0!==e.label}function y(...e){return e.filter(Boolean).join(" ")}!function(e,{insertAt:t}={}){if(!e||"undefined"==typeof document)return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);var b=e=>{var t,r,i,o,l,u,c,d,p,h;let{invert:m,toast:g,unstyled:y,interacting:b,setHeights:w,visibleToasts:x,heights:_,index:E,toasts:S,expanded:k,removeToast:C,defaultRichColors:A,closeButton:T,style:O,cancelButtonStyle:j,actionButtonStyle:R,className:P="",descriptionClassName:N="",duration:z,position:M,gap:D,loadingIcon:V,expandByDefault:L,classNames:I,icons:F,closeButtonAriaLabel:$="Close toast",pauseWhenPageIsHidden:U,cn:B}=e,[Z,q]=n.useState(!1),[W,J]=n.useState(!1),[H,Y]=n.useState(!1),[K,X]=n.useState(!1),[G,Q]=n.useState(0),[ee,et]=n.useState(0),er=n.useRef(null),en=n.useRef(null),ei=0===E,ea=E+1<=x,eo=g.type,es=!1!==g.dismissible,el=g.className||"",eu=g.descriptionClassName||"",ec=n.useMemo(()=>_.findIndex(e=>e.toastId===g.id)||0,[_,g.id]),ed=n.useMemo(()=>{var e;return null!=(e=g.closeButton)?e:T},[g.closeButton,T]),ef=n.useMemo(()=>g.duration||z||4e3,[g.duration,z]),ep=n.useRef(0),eh=n.useRef(0),em=n.useRef(0),eg=n.useRef(null),[ev,ey]=M.split("-"),eb=n.useMemo(()=>_.reduce((e,t,r)=>r>=ec?e:e+t.height,0),[_,ec]),ew=f(),ex=g.invert||m,e_="loading"===eo;eh.current=n.useMemo(()=>ec*D+eb,[ec,eb]),n.useEffect(()=>{q(!0)},[]),n.useLayoutEffect(()=>{if(!Z)return;let e=en.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,et(r),w(e=>e.find(e=>e.toastId===g.id)?e.map(e=>e.toastId===g.id?{...e,height:r}:e):[{toastId:g.id,height:r,position:g.position},...e])},[Z,g.title,g.description,w,g.id]);let eE=n.useCallback(()=>{J(!0),Q(eh.current),w(e=>e.filter(e=>e.toastId!==g.id)),setTimeout(()=>{C(g)},200)},[g,C,w,eh]);return n.useEffect(()=>{if(g.promise&&"loading"===eo||g.duration===1/0||"loading"===g.type)return;let e,t=ef;return k||b||U&&ew?(()=>{if(em.current<ep.current){let e=new Date().getTime()-ep.current;t-=e}em.current=new Date().getTime()})():t!==1/0&&(ep.current=new Date().getTime(),e=setTimeout(()=>{var e;null==(e=g.onAutoClose)||e.call(g,g),eE()},t)),()=>clearTimeout(e)},[k,b,L,g,ef,eE,g.promise,eo,U,ew]),n.useEffect(()=>{let e=en.current;if(e){let t=e.getBoundingClientRect().height;return et(t),w(e=>[{toastId:g.id,height:t,position:g.position},...e]),()=>w(e=>e.filter(e=>e.toastId!==g.id))}},[w,g.id]),n.useEffect(()=>{g.delete&&eE()},[eE,g.delete]),n.createElement("li",{"aria-live":g.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:en,className:B(P,el,null==I?void 0:I.toast,null==(t=null==g?void 0:g.classNames)?void 0:t.toast,null==I?void 0:I.default,null==I?void 0:I[eo],null==(r=null==g?void 0:g.classNames)?void 0:r[eo]),"data-sonner-toast":"","data-rich-colors":null!=(i=g.richColors)?i:A,"data-styled":!(g.jsx||g.unstyled||y),"data-mounted":Z,"data-promise":!!g.promise,"data-removed":W,"data-visible":ea,"data-y-position":ev,"data-x-position":ey,"data-index":E,"data-front":ei,"data-swiping":H,"data-dismissible":es,"data-type":eo,"data-invert":ex,"data-swipe-out":K,"data-expanded":!!(k||L&&Z),style:{"--index":E,"--toasts-before":E,"--z-index":S.length-E,"--offset":`${W?G:eh.current}px`,"--initial-height":L?"auto":`${ee}px`,...O,...g.style},onPointerDown:e=>{e_||!es||(er.current=new Date,Q(eh.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(Y(!0),eg.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n;if(K||!es)return;eg.current=null;let i=Number((null==(e=en.current)?void 0:e.style.getPropertyValue("--swipe-amount").replace("px",""))||0),a=new Date().getTime()-(null==(t=er.current)?void 0:t.getTime());if(Math.abs(i)>=20||Math.abs(i)/a>.11){Q(eh.current),null==(r=g.onDismiss)||r.call(g,g),eE(),X(!0);return}null==(n=en.current)||n.style.setProperty("--swipe-amount","0px"),Y(!1)},onPointerMove:e=>{var t;if(!eg.current||!es)return;let r=e.clientY-eg.current.y,n=e.clientX-eg.current.x,i=("top"===ev?Math.min:Math.max)(0,r),a="touch"===e.pointerType?10:2;Math.abs(i)>a?null==(t=en.current)||t.style.setProperty("--swipe-amount",`${r}px`):Math.abs(n)>a&&(eg.current=null)}},ed&&!g.jsx?n.createElement("button",{"aria-label":$,"data-disabled":e_,"data-close-button":!0,onClick:e_||!es?()=>{}:()=>{var e;eE(),null==(e=g.onDismiss)||e.call(g,g)},className:B(null==I?void 0:I.closeButton,null==(o=null==g?void 0:g.classNames)?void 0:o.closeButton)},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},n.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,g.jsx||n.isValidElement(g.title)?g.jsx||g.title:n.createElement(n.Fragment,null,eo||g.icon||g.promise?n.createElement("div",{"data-icon":"",className:B(null==I?void 0:I.icon,null==(l=null==g?void 0:g.classNames)?void 0:l.icon)},g.promise||"loading"===g.type&&!g.icon?g.icon||(null!=F&&F.loading?n.createElement("div",{className:"sonner-loader","data-visible":"loading"===eo},F.loading):V?n.createElement("div",{className:"sonner-loader","data-visible":"loading"===eo},V):n.createElement(s,{visible:"loading"===eo})):null,"loading"!==g.type?g.icon||(null==F?void 0:F[eo])||a(eo):null):null,n.createElement("div",{"data-content":"",className:B(null==I?void 0:I.content,null==(u=null==g?void 0:g.classNames)?void 0:u.content)},n.createElement("div",{"data-title":"",className:B(null==I?void 0:I.title,null==(c=null==g?void 0:g.classNames)?void 0:c.title)},g.title),g.description?n.createElement("div",{"data-description":"",className:B(N,eu,null==I?void 0:I.description,null==(d=null==g?void 0:g.classNames)?void 0:d.description)},g.description):null),n.isValidElement(g.cancel)?g.cancel:g.cancel&&v(g.cancel)?n.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||j,onClick:e=>{var t,r;v(g.cancel)&&es&&(null==(r=(t=g.cancel).onClick)||r.call(t,e),eE())},className:B(null==I?void 0:I.cancelButton,null==(p=null==g?void 0:g.classNames)?void 0:p.cancelButton)},g.cancel.label):null,n.isValidElement(g.action)?g.action:g.action&&v(g.action)?n.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||R,onClick:e=>{var t,r;v(g.action)&&(e.defaultPrevented||(null==(r=(t=g.action).onClick)||r.call(t,e),eE()))},className:B(null==I?void 0:I.actionButton,null==(h=null==g?void 0:g.classNames)?void 0:h.actionButton)},g.action.label):null))};function w(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var x=e=>{let{invert:t,position:r="bottom-right",hotkey:a=["altKey","KeyT"],expand:o,closeButton:s,className:l,offset:u,theme:c="light",richColors:d,duration:f,style:p,visibleToasts:m=3,toastOptions:g,dir:v=w(),gap:x=14,loadingIcon:_,icons:E,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:k,cn:C=y}=e,[A,T]=n.useState([]),O=n.useMemo(()=>Array.from(new Set([r].concat(A.filter(e=>e.position).map(e=>e.position)))),[A,r]),[j,R]=n.useState([]),[P,N]=n.useState(!1),[z,M]=n.useState(!1),[D,V]=n.useState("system"!==c?c:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=n.useRef(null),I=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=n.useRef(null),$=n.useRef(!1),U=n.useCallback(e=>{var t;null!=(t=A.find(t=>t.id===e.id))&&t.delete||h.dismiss(e.id),T(t=>t.filter(({id:t})=>t!==e.id))},[A]);return n.useEffect(()=>h.subscribe(e=>{if(e.dismiss){T(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{i.flushSync(()=>{T(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[]),n.useEffect(()=>{if("system"!==c){V(c);return}"system"===c&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:e})=>{V(e?"dark":"light")})},[c]),n.useEffect(()=>{A.length<=1&&N(!1)},[A]),n.useEffect(()=>{let e=e=>{var t,r;a.every(t=>e[t]||e.code===t)&&(N(!0),null==(t=L.current)||t.focus()),"Escape"===e.code&&(document.activeElement===L.current||null!=(r=L.current)&&r.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]),n.useEffect(()=>{if(L.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,$.current=!1)}},[L.current]),A.length?n.createElement("section",{"aria-label":`${S} ${I}`,tabIndex:-1},O.map((e,r)=>{var i;let[a,c]=e.split("-");return n.createElement("ol",{key:e,dir:"auto"===v?w():v,tabIndex:-1,ref:L,className:l,"data-sonner-toaster":!0,"data-theme":D,"data-y-position":a,"data-x-position":c,style:{"--front-toast-height":`${(null==(i=j[0])?void 0:i.height)||0}px`,"--offset":"number"==typeof u?`${u}px`:u||"32px","--width":"356px","--gap":`${x}px`,...p},onBlur:e=>{$.current&&!e.currentTarget.contains(e.relatedTarget)&&($.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||$.current||($.current=!0,F.current=e.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{z||N(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||M(!0)},onPointerUp:()=>M(!1)},A.filter(t=>!t.position&&0===r||t.position===e).map((r,i)=>{var a,l;return n.createElement(b,{key:r.id,icons:E,index:i,toast:r,defaultRichColors:d,duration:null!=(a=null==g?void 0:g.duration)?a:f,className:null==g?void 0:g.className,descriptionClassName:null==g?void 0:g.descriptionClassName,invert:t,visibleToasts:m,closeButton:null!=(l=null==g?void 0:g.closeButton)?l:s,interacting:z,position:e,style:null==g?void 0:g.style,unstyled:null==g?void 0:g.unstyled,classNames:null==g?void 0:g.classNames,cancelButtonStyle:null==g?void 0:g.cancelButtonStyle,actionButtonStyle:null==g?void 0:g.actionButtonStyle,removeToast:U,toasts:A.filter(e=>e.position==r.position),heights:j.filter(e=>e.position==r.position),setHeights:R,expandByDefault:o,gap:x,loadingIcon:_,expanded:P,pauseWhenPageIsHidden:k,cn:C})}))})):null}},11615:function(e,t,r){"use strict";let n;r.d(t,{z:function(){return ts}}),(e9=tt||(tt={})).assertEqual=e=>e,e9.assertIs=function(e){},e9.assertNever=function(e){throw Error()},e9.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e9.getValidEnumValues=e=>{let t=e9.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return e9.objectValues(r)},e9.objectValues=e=>e9.objectKeys(e).map(function(t){return e[t]}),e9.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e9.find=(e,t)=>{for(let r of e)if(t(r))return r},e9.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e9.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e9.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(tr||(tr={})).mergeShapes=(e,t)=>({...e,...t});let i=tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}},o=tt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class s extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof s))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,tt.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>new s(e);let l=(e,t)=>{let r;switch(e.code){case o.invalid_type:r=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case o.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,tt.jsonStringifyReplacer)}`;break;case o.unrecognized_keys:r=`Unrecognized key(s) in object: ${tt.joinValues(e.keys,", ")}`;break;case o.invalid_union:r="Invalid input";break;case o.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${tt.joinValues(e.options)}`;break;case o.invalid_enum_value:r=`Invalid enum value. Expected ${tt.joinValues(e.options)}, received '${e.received}'`;break;case o.invalid_arguments:r="Invalid function arguments";break;case o.invalid_return_type:r="Invalid function return type";break;case o.invalid_date:r="Invalid date";break;case o.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:tt.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case o.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case o.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case o.custom:r="Invalid input";break;case o.invalid_intersection_types:r="Intersection results could not be merged";break;case o.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case o.not_finite:r="Number must be finite";break;default:r=t.defaultError,tt.assertNever(e)}return{message:r}},u=l;function c(){return u}let d=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function f(e,t){let r=c(),n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===l?void 0:l].filter(e=>!!e)});e.common.issues.push(n)}class p{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return h;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return p.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let h=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>({status:"valid",value:e}),v=e=>"aborted"===e.status,y=e=>"dirty"===e.status,b=e=>"valid"===e.status,w=e=>"undefined"!=typeof Promise&&e instanceof Promise;function x(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function _(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}"function"==typeof SuppressedError&&SuppressedError,(e8=tn||(tn={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},e8.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class E{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let S=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new s(e.common.issues);return this._error=t,this._error}}};function k(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var a,o;let{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!==(a=null!=s?s:n)&&void 0!==a?a:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(o=null!=s?s:r)&&void 0!==o?o:i.defaultError}},description:i}}class C{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new p,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(w(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},i=this._parseSync({data:e,path:n.path,parent:n});return S(n,i)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},n=this._parse({data:e,path:r.path,parent:r});return S(r,await (w(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),a=()=>n.addIssue({code:o.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new eg({schema:this,typeName:to.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ev.create(this,this._def)}nullable(){return ey.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Q.create(this,this._def)}promise(){return em.create(this,this._def)}or(e){return et.create([this,e],this._def)}and(e){return ei.create(this,e,this._def)}transform(e){return new eg({...k(this._def),schema:this,typeName:to.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eb({...k(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:to.ZodDefault})}brand(){return new eE({typeName:to.ZodBranded,type:this,...k(this._def)})}catch(e){return new ew({...k(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:to.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eS.create(this,e)}readonly(){return ek.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let A=/^c[^\s-]{8,}$/i,T=/^[0-9a-z]+$/,O=/^[0-9A-HJKMNP-TV-Z]{26}$/,j=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,R=/^[a-z0-9_-]{21}$/i,P=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,N=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,z=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,M=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,D=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,V="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",L=RegExp(`^${V}$`);function I(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function F(e){let t=`${V}T${I(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class $ extends C{_parse(e){var t,r;let a;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.string){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.string,received:t.parsedType}),h}let s=new p;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(f(a=this._getOrReturnCtx(e,a),{code:o.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if("max"===i.kind)e.data.length>i.value&&(f(a=this._getOrReturnCtx(e,a),{code:o.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if("length"===i.kind){let t=e.data.length>i.value,r=e.data.length<i.value;(t||r)&&(a=this._getOrReturnCtx(e,a),t?f(a,{code:o.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):r&&f(a,{code:o.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if("email"===i.kind)N.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"email",code:o.invalid_string,message:i.message}),s.dirty());else if("emoji"===i.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"emoji",code:o.invalid_string,message:i.message}),s.dirty());else if("uuid"===i.kind)j.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"uuid",code:o.invalid_string,message:i.message}),s.dirty());else if("nanoid"===i.kind)R.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"nanoid",code:o.invalid_string,message:i.message}),s.dirty());else if("cuid"===i.kind)A.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"cuid",code:o.invalid_string,message:i.message}),s.dirty());else if("cuid2"===i.kind)T.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"cuid2",code:o.invalid_string,message:i.message}),s.dirty());else if("ulid"===i.kind)O.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"ulid",code:o.invalid_string,message:i.message}),s.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(t){f(a=this._getOrReturnCtx(e,a),{validation:"url",code:o.invalid_string,message:i.message}),s.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"regex",code:o.invalid_string,message:i.message}),s.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(f(a=this._getOrReturnCtx(e,a),{code:o.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(f(a=this._getOrReturnCtx(e,a),{code:o.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(f(a=this._getOrReturnCtx(e,a),{code:o.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):"datetime"===i.kind?F(i).test(e.data)||(f(a=this._getOrReturnCtx(e,a),{code:o.invalid_string,validation:"datetime",message:i.message}),s.dirty()):"date"===i.kind?L.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{code:o.invalid_string,validation:"date",message:i.message}),s.dirty()):"time"===i.kind?RegExp(`^${I(i)}$`).test(e.data)||(f(a=this._getOrReturnCtx(e,a),{code:o.invalid_string,validation:"time",message:i.message}),s.dirty()):"duration"===i.kind?P.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"duration",code:o.invalid_string,message:i.message}),s.dirty()):"ip"===i.kind?(t=e.data,("v4"===(r=i.version)||!r)&&z.test(t)||("v6"===r||!r)&&M.test(t)||(f(a=this._getOrReturnCtx(e,a),{validation:"ip",code:o.invalid_string,message:i.message}),s.dirty())):"base64"===i.kind?D.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"base64",code:o.invalid_string,message:i.message}),s.dirty()):tt.assertNever(i);return{status:s.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:o.invalid_string,...tn.errToObj(r)})}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...tn.errToObj(e)})}url(e){return this._addCheck({kind:"url",...tn.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...tn.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...tn.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...tn.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...tn.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...tn.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...tn.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...tn.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...tn.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...tn.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...tn.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...tn.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...tn.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...tn.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...tn.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...tn.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...tn.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...tn.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...tn.errToObj(t)})}nonempty(e){return this.min(1,tn.errToObj(e))}trim(){return new $({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new $({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new $({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}$.create=e=>{var t;return new $({checks:[],typeName:to.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...k(e)})};class U extends C{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.number){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.number,received:t.parsedType}),h}let r=new p;for(let n of this._def.checks)"int"===n.kind?tt.isInteger(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:o.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(e.data,n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:o.not_finite,message:n.message}),r.dirty()):tt.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tn.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tn.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tn.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tn.toString(t))}setLimit(e,t,r,n){return new U({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tn.toString(n)}]})}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:tn.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tn.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tn.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tn.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tn.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tn.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:tn.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tn.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tn.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&tt.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}U.create=e=>new U({checks:[],typeName:to.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...k(e)});class B extends C{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==i.bigint){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.bigint,received:t.parsedType}),h}let r=new p;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(f(t=this._getOrReturnCtx(e,t),{code:o.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):tt.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tn.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tn.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tn.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tn.toString(t))}setLimit(e,t,r,n){return new B({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tn.toString(n)}]})}_addCheck(e){return new B({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tn.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tn.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tn.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tn.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tn.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}B.create=e=>{var t;return new B({checks:[],typeName:to.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...k(e)})};class Z extends C{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==i.boolean){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.boolean,received:t.parsedType}),h}return g(e.data)}}Z.create=e=>new Z({typeName:to.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...k(e)});class q extends C{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.date){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.date,received:t.parsedType}),h}if(isNaN(e.data.getTime()))return f(this._getOrReturnCtx(e),{code:o.invalid_date}),h;let r=new p;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):tt.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:tn.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:tn.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}q.create=e=>new q({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:to.ZodDate,...k(e)});class W extends C{_parse(e){if(this._getType(e)!==i.symbol){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.symbol,received:t.parsedType}),h}return g(e.data)}}W.create=e=>new W({typeName:to.ZodSymbol,...k(e)});class J extends C{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.undefined,received:t.parsedType}),h}return g(e.data)}}J.create=e=>new J({typeName:to.ZodUndefined,...k(e)});class H extends C{_parse(e){if(this._getType(e)!==i.null){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.null,received:t.parsedType}),h}return g(e.data)}}H.create=e=>new H({typeName:to.ZodNull,...k(e)});class Y extends C{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}Y.create=e=>new Y({typeName:to.ZodAny,...k(e)});class K extends C{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}K.create=e=>new K({typeName:to.ZodUnknown,...k(e)});class X extends C{_parse(e){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.never,received:t.parsedType}),h}}X.create=e=>new X({typeName:to.ZodNever,...k(e)});class G extends C{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.void,received:t.parsedType}),h}return g(e.data)}}G.create=e=>new G({typeName:to.ZodVoid,...k(e)});class Q extends C{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==i.array)return f(t,{code:o.invalid_type,expected:i.array,received:t.parsedType}),h;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(f(t,{code:e?o.too_big:o.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(f(t,{code:o.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(f(t,{code:o.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new E(t,e,t.path,r)))).then(e=>p.mergeArray(r,e));let a=[...t.data].map((e,r)=>n.type._parseSync(new E(t,e,t.path,r)));return p.mergeArray(r,a)}get element(){return this._def.type}min(e,t){return new Q({...this._def,minLength:{value:e,message:tn.toString(t)}})}max(e,t){return new Q({...this._def,maxLength:{value:e,message:tn.toString(t)}})}length(e,t){return new Q({...this._def,exactLength:{value:e,message:tn.toString(t)}})}nonempty(e){return this.min(1,e)}}Q.create=(e,t)=>new Q({type:e,minLength:null,maxLength:null,exactLength:null,typeName:to.ZodArray,...k(t)});class ee extends C{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=tt.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.object,received:t.parsedType}),h}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof X&&"strip"===this._def.unknownKeys))for(let e in r.data)a.includes(e)||s.push(e);let l=[];for(let e of a){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new E(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof X){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of s)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)s.length>0&&(f(r,{code:o.unrecognized_keys,keys:s}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of s){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new E(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>p.mergeObjectSync(t,e)):p.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return tn.errToObj,new ee({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,a,o;let s=null!==(a=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,t,r).message)&&void 0!==a?a:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=tn.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new ee({...this._def,unknownKeys:"strip"})}passthrough(){return new ee({...this._def,unknownKeys:"passthrough"})}extend(e){return new ee({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ee({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:to.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ee({...this._def,catchall:e})}pick(e){let t={};return tt.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new ee({...this._def,shape:()=>t})}omit(e){let t={};return tt.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new ee({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ee){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=ev.create(e(i))}return new ee({...t._def,shape:()=>r})}return t instanceof Q?new Q({...t._def,type:e(t.element)}):t instanceof ev?ev.create(e(t.unwrap())):t instanceof ey?ey.create(e(t.unwrap())):t instanceof ea?ea.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return tt.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new ee({...this._def,shape:()=>t})}required(e){let t={};return tt.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ev;)e=e._def.innerType;t[r]=e}}),new ee({...this._def,shape:()=>t})}keyof(){return ef(tt.objectKeys(this.shape))}}ee.create=(e,t)=>new ee({shape:()=>e,unknownKeys:"strip",catchall:X.create(),typeName:to.ZodObject,...k(t)}),ee.strictCreate=(e,t)=>new ee({shape:()=>e,unknownKeys:"strict",catchall:X.create(),typeName:to.ZodObject,...k(t)}),ee.lazycreate=(e,t)=>new ee({shape:e,unknownKeys:"strip",catchall:X.create(),typeName:to.ZodObject,...k(t)});class et extends C{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new s(e.ctx.common.issues));return f(t,{code:o.invalid_union,unionErrors:r}),h});{let e;let n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new s(e));return f(t,{code:o.invalid_union,unionErrors:i}),h}}get options(){return this._def.options}}et.create=(e,t)=>new et({options:e,typeName:to.ZodUnion,...k(t)});let er=e=>{if(e instanceof ec)return er(e.schema);if(e instanceof eg)return er(e.innerType());if(e instanceof ed)return[e.value];if(e instanceof ep)return e.options;if(e instanceof eh)return tt.objectValues(e.enum);if(e instanceof eb)return er(e._def.innerType);if(e instanceof J)return[void 0];else if(e instanceof H)return[null];else if(e instanceof ev)return[void 0,...er(e.unwrap())];else if(e instanceof ey)return[null,...er(e.unwrap())];else if(e instanceof eE)return er(e.unwrap());else if(e instanceof ek)return er(e.unwrap());else if(e instanceof ew)return er(e._def.innerType);else return[]};class en extends C{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return f(t,{code:o.invalid_type,expected:i.object,received:t.parsedType}),h;let r=this.discriminator,n=t.data[r],a=this.optionsMap.get(n);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(f(t,{code:o.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=er(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new en({typeName:to.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...k(r)})}}class ei extends C{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(v(e)||v(n))return h;let s=function e(t,r){let n=a(t),o=a(r);if(t===r)return{valid:!0,data:t};if(n===i.object&&o===i.object){let n=tt.objectKeys(r),i=tt.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};a[n]=i.data}return{valid:!0,data:a}}if(n===i.array&&o===i.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}return n===i.date&&o===i.date&&+t==+r?{valid:!0,data:t}:{valid:!1}}(e.value,n.value);return s.valid?((y(e)||y(n))&&t.dirty(),{status:t.value,value:s.data}):(f(r,{code:o.invalid_intersection_types}),h)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ei.create=(e,t,r)=>new ei({left:e,right:t,typeName:to.ZodIntersection,...k(r)});class ea extends C{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.array)return f(r,{code:o.invalid_type,expected:i.array,received:r.parsedType}),h;if(r.data.length<this._def.items.length)return f(r,{code:o.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&r.data.length>this._def.items.length&&(f(r,{code:o.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new E(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>p.mergeArray(t,e)):p.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new ea({...this._def,rest:e})}}ea.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ea({items:e,typeName:to.ZodTuple,rest:null,...k(t)})};class eo extends C{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.object)return f(r,{code:o.invalid_type,expected:i.object,received:r.parsedType}),h;let n=[],a=this._def.keyType,s=this._def.valueType;for(let e in r.data)n.push({key:a._parse(new E(r,e,r.path,e)),value:s._parse(new E(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?p.mergeObjectAsync(t,n):p.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new eo(t instanceof C?{keyType:e,valueType:t,typeName:to.ZodRecord,...k(r)}:{keyType:$.create(),valueType:e,typeName:to.ZodRecord,...k(t)})}}class es extends C{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.map)return f(r,{code:o.invalid_type,expected:i.map,received:r.parsedType}),h;let n=this._def.keyType,a=this._def.valueType,s=[...r.data.entries()].map(([e,t],i)=>({key:n._parse(new E(r,e,r.path,[i,"key"])),value:a._parse(new E(r,t,r.path,[i,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of s){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of s){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}es.create=(e,t,r)=>new es({valueType:t,keyType:e,typeName:to.ZodMap,...k(r)});class el extends C{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.set)return f(r,{code:o.invalid_type,expected:i.set,received:r.parsedType}),h;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(f(r,{code:o.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(f(r,{code:o.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let a=this._def.valueType;function s(e){let r=new Set;for(let n of e){if("aborted"===n.status)return h;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>a._parse(new E(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>s(e)):s(l)}min(e,t){return new el({...this._def,minSize:{value:e,message:tn.toString(t)}})}max(e,t){return new el({...this._def,maxSize:{value:e,message:tn.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}el.create=(e,t)=>new el({valueType:e,minSize:null,maxSize:null,typeName:to.ZodSet,...k(t)});class eu extends C{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return f(t,{code:o.invalid_type,expected:i.function,received:t.parsedType}),h;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:o.invalid_arguments,argumentsError:r}})}function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:o.invalid_return_type,returnTypeError:r}})}let a={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof em){let e=this;return g(async function(...t){let i=new s([]),o=await e._def.args.parseAsync(t,a).catch(e=>{throw i.addIssue(r(t,e)),i}),l=await Reflect.apply(u,this,o);return await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw i.addIssue(n(l,e)),i})})}{let e=this;return g(function(...t){let i=e._def.args.safeParse(t,a);if(!i.success)throw new s([r(t,i.error)]);let o=Reflect.apply(u,this,i.data),l=e._def.returns.safeParse(o,a);if(!l.success)throw new s([n(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eu({...this._def,args:ea.create(e).rest(K.create())})}returns(e){return new eu({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eu({args:e||ea.create([]).rest(K.create()),returns:t||K.create(),typeName:to.ZodFunction,...k(r)})}}class ec extends C{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ec.create=(e,t)=>new ec({getter:e,typeName:to.ZodLazy,...k(t)});class ed extends C{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return f(t,{received:t.data,code:o.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ef(e,t){return new ep({values:e,typeName:to.ZodEnum,...k(t)})}ed.create=(e,t)=>new ed({value:e,typeName:to.ZodLiteral,...k(t)});class ep extends C{constructor(){super(...arguments),ti.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return f(t,{expected:tt.joinValues(r),received:t.parsedType,code:o.invalid_type}),h}if(x(this,ti,"f")||_(this,ti,new Set(this._def.values),"f"),!x(this,ti,"f").has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return f(t,{received:t.data,code:o.invalid_enum_value,options:r}),h}return g(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ep.create(e,{...this._def,...t})}exclude(e,t=this._def){return ep.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ti=new WeakMap,ep.create=ef;class eh extends C{constructor(){super(...arguments),ta.set(this,void 0)}_parse(e){let t=tt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==i.string&&r.parsedType!==i.number){let e=tt.objectValues(t);return f(r,{expected:tt.joinValues(e),received:r.parsedType,code:o.invalid_type}),h}if(x(this,ta,"f")||_(this,ta,new Set(tt.getValidEnumValues(this._def.values)),"f"),!x(this,ta,"f").has(e.data)){let e=tt.objectValues(t);return f(r,{received:r.data,code:o.invalid_enum_value,options:e}),h}return g(e.data)}get enum(){return this._def.values}}ta=new WeakMap,eh.create=(e,t)=>new eh({values:e,typeName:to.ZodNativeEnum,...k(t)});class em extends C{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==i.promise&&!1===t.common.async?(f(t,{code:o.invalid_type,expected:i.promise,received:t.parsedType}),h):g((t.parsedType===i.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}em.create=(e,t)=>new em({type:e,typeName:to.ZodPromise,...k(t)});class eg extends C{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===to.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{f(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return h;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>b(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!b(e))return e;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}tt.assertNever(n)}}eg.create=(e,t,r)=>new eg({schema:e,typeName:to.ZodEffects,effect:t,...k(r)}),eg.createWithPreprocess=(e,t,r)=>new eg({schema:t,effect:{type:"preprocess",transform:e},typeName:to.ZodEffects,...k(r)});class ev extends C{_parse(e){return this._getType(e)===i.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:to.ZodOptional,...k(t)});class ey extends C{_parse(e){return this._getType(e)===i.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:to.ZodNullable,...k(t)});class eb extends C{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===i.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:to.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...k(t)});class ew extends C{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return w(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ew.create=(e,t)=>new ew({innerType:e,typeName:to.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...k(t)});class ex extends C{_parse(e){if(this._getType(e)!==i.nan){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}ex.create=e=>new ex({typeName:to.ZodNaN,...k(e)});let e_=Symbol("zod_brand");class eE extends C{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eS extends C{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eS({in:e,out:t,typeName:to.ZodPipeline})}}class ek extends C{_parse(e){let t=this._def.innerType._parse(e),r=e=>(b(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eC(e,t={},r){return e?Y.create().superRefine((n,i)=>{var a,o;if(!e(n)){let e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,s=null===(o=null!==(a=e.fatal)&&void 0!==a?a:r)||void 0===o||o;i.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:s})}}):Y.create()}ek.create=(e,t)=>new ek({innerType:e,typeName:to.ZodReadonly,...k(t)});let eA={object:ee.lazycreate};(te=to||(to={})).ZodString="ZodString",te.ZodNumber="ZodNumber",te.ZodNaN="ZodNaN",te.ZodBigInt="ZodBigInt",te.ZodBoolean="ZodBoolean",te.ZodDate="ZodDate",te.ZodSymbol="ZodSymbol",te.ZodUndefined="ZodUndefined",te.ZodNull="ZodNull",te.ZodAny="ZodAny",te.ZodUnknown="ZodUnknown",te.ZodNever="ZodNever",te.ZodVoid="ZodVoid",te.ZodArray="ZodArray",te.ZodObject="ZodObject",te.ZodUnion="ZodUnion",te.ZodDiscriminatedUnion="ZodDiscriminatedUnion",te.ZodIntersection="ZodIntersection",te.ZodTuple="ZodTuple",te.ZodRecord="ZodRecord",te.ZodMap="ZodMap",te.ZodSet="ZodSet",te.ZodFunction="ZodFunction",te.ZodLazy="ZodLazy",te.ZodLiteral="ZodLiteral",te.ZodEnum="ZodEnum",te.ZodEffects="ZodEffects",te.ZodNativeEnum="ZodNativeEnum",te.ZodOptional="ZodOptional",te.ZodNullable="ZodNullable",te.ZodDefault="ZodDefault",te.ZodCatch="ZodCatch",te.ZodPromise="ZodPromise",te.ZodBranded="ZodBranded",te.ZodPipeline="ZodPipeline",te.ZodReadonly="ZodReadonly";let eT=$.create,eO=U.create,ej=ex.create,eR=B.create,eP=Z.create,eN=q.create,ez=W.create,eM=J.create,eD=H.create,eV=Y.create,eL=K.create,eI=X.create,eF=G.create,e$=Q.create,eU=ee.create,eB=ee.strictCreate,eZ=et.create,eq=en.create,eW=ei.create,eJ=ea.create,eH=eo.create,eY=es.create,eK=el.create,eX=eu.create,eG=ec.create,eQ=ed.create,e0=ep.create,e1=eh.create,e2=em.create,e5=eg.create,e3=ev.create,e7=ey.create,e4=eg.createWithPreprocess,e6=eS.create;var e9,e8,te,tt,tr,tn,ti,ta,to,ts=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){u=e},getErrorMap:c,makeIssue:d,EMPTY_PATH:[],addIssueToContext:f,ParseStatus:p,INVALID:h,DIRTY:m,OK:g,isAborted:v,isDirty:y,isValid:b,isAsync:w,get util(){return tt},get objectUtil(){return tr},ZodParsedType:i,getParsedType:a,ZodType:C,datetimeRegex:F,ZodString:$,ZodNumber:U,ZodBigInt:B,ZodBoolean:Z,ZodDate:q,ZodSymbol:W,ZodUndefined:J,ZodNull:H,ZodAny:Y,ZodUnknown:K,ZodNever:X,ZodVoid:G,ZodArray:Q,ZodObject:ee,ZodUnion:et,ZodDiscriminatedUnion:en,ZodIntersection:ei,ZodTuple:ea,ZodRecord:eo,ZodMap:es,ZodSet:el,ZodFunction:eu,ZodLazy:ec,ZodLiteral:ed,ZodEnum:ep,ZodNativeEnum:eh,ZodPromise:em,ZodEffects:eg,ZodTransformer:eg,ZodOptional:ev,ZodNullable:ey,ZodDefault:eb,ZodCatch:ew,ZodNaN:ex,BRAND:e_,ZodBranded:eE,ZodPipeline:eS,ZodReadonly:ek,custom:eC,Schema:C,ZodSchema:C,late:eA,get ZodFirstPartyTypeKind(){return to},coerce:{string:e=>$.create({...e,coerce:!0}),number:e=>U.create({...e,coerce:!0}),boolean:e=>Z.create({...e,coerce:!0}),bigint:e=>B.create({...e,coerce:!0}),date:e=>q.create({...e,coerce:!0})},any:eV,array:e$,bigint:eR,boolean:eP,date:eN,discriminatedUnion:eq,effect:e5,enum:e0,function:eX,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eC(t=>t instanceof e,t),intersection:eW,lazy:eG,literal:eQ,map:eY,nan:ej,nativeEnum:e1,never:eI,null:eD,nullable:e7,number:eO,object:eU,oboolean:()=>eP().optional(),onumber:()=>eO().optional(),optional:e3,ostring:()=>eT().optional(),pipeline:e6,preprocess:e4,promise:e2,record:eH,set:eK,strictObject:eB,string:eT,symbol:ez,transformer:e5,tuple:eJ,undefined:eM,union:eZ,unknown:eL,void:eF,NEVER:h,ZodIssueCode:o,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:s})}}]);