@kroo-web/design-system 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/product/components/Columns/index.d.ts +6 -0
- package/dist/cjs/product/components/index.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/product/components/Columns/index.d.ts +6 -0
- package/dist/esm/product/components/index.d.ts +1 -0
- package/dist/types.d.ts +7 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t=require("react"),e=require("react-dom");function n(t){var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var o=n(t),r=function(){return r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)};function i(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}function s(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=s(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function a(){for(var t,e,n=0,o="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=s(t))&&(o&&(o+=" "),o+=e);return o}function l(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}"function"==typeof SuppressedError&&SuppressedError;var u={button:"button-module_button__dZH55",action:"button-module_action__RTWZU",focus:"button-module_focus__RNsoR",primary:"button-module_primary__CZzyo",hover:"button-module_hover__Zz9hl",active:"button-module_active__rYKZm",secondary:"button-module_secondary__tM5K3",tertiary:"button-module_tertiary__0bKi6",ghost:"button-module_ghost__xQWCE",danger:"button-module_danger__pxWDX",standard:"button-module_standard__GaQlx"};l(".button-module_button__dZH55 {\n all: unset;\n padding: var(--product-spacing-3) var(--product-spacing-7);\n border-radius: var(--product-radius-full);\n width: -moz-fit-content;\n width: fit-content;\n cursor: pointer;\n}\n\n.button-module_action__RTWZU {\n all: unset;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-2_5) var(--product-spacing-6);\n width: -moz-fit-content;\n width: fit-content;\n cursor: pointer;\n}\n\n.button-module_button__dZH55:focus, .button-module_button__dZH55.button-module_focus__RNsoR {\n outline: var(--product-border-width-1) solid var(--product-focus);\n}\n\n.button-module_action__RTWZU:focus, .button-module_action__RTWZU.button-module_focus__RNsoR {\n outline: var(--product-border-width-1) solid var(--product-focus);\n}\n\n/* ! Button */\n\n/* Primary */\n\n.button-module_primary__CZzyo {\n color: var(--product-greyscale-0);\n background: var(--product-love-pink-100)\n}\n\n.button-module_primary__CZzyo:hover, .button-module_primary__CZzyo.button-module_hover__Zz9hl {\n background: var(--product-love-pink-80)\n}\n\n.button-module_primary__CZzyo:active, .button-module_primary__CZzyo.button-module_active__rYKZm {\n background: var(--product-love-pink-120)\n}\n\n/* Secondary */\n\n.button-module_secondary__tM5K3 {\n color: var(--product-greyscale-0);\n background: var(--product-greyscale-100);\n}\n\n.button-module_secondary__tM5K3:hover, .button-module_secondary__tM5K3.button-module_hover__Zz9hl {\n background: var(--product-greyscale-80);\n}\n\n.button-module_secondary__tM5K3:active, .button-module_secondary__tM5K3.button-module_active__rYKZm {\n background: var(--product-greyscale-60);\n}\n\n/* Tertiary */\n\n.button-module_tertiary__0bKi6 {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_tertiary__0bKi6:hover, .button-module_tertiary__0bKi6.button-module_hover__Zz9hl {\n background: var(--product-light-blue-20);\n}\n\n.button-module_tertiary__0bKi6:active, .button-module_tertiary__0bKi6.button-module_active__rYKZm {\n background: var(--product-light-blue-40);\n}\n\n/* Ghost */\n\n.button-module_ghost__xQWCE {\n color: #004B87;\n background: var(--product-greyscale-0);\n}\n\n.button-module_ghost__xQWCE:hover, .button-module_ghost__xQWCE.button-module_hover__Zz9hl {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_ghost__xQWCE:active, .button-module_ghost__xQWCE.button-module_active__rYKZm {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-40);\n}\n\n/* Danger */\n\n.button-module_danger__pxWDX {\n color: var(--product-greyscale-0);\n background: var( --product-error);\n}\n\n.button-module_danger__pxWDX:hover, .button-module_danger__pxWDX.button-module_hover__Zz9hl {\n background: var(--product-danger-80);\n}\n\n.button-module_danger__pxWDX:active, .button-module_danger__pxWDX.button-module_active__rYKZm {\n background: var(--product-danger-120);\n}\n\n/*! Action Button */\n\n/* Standard */\n\n.button-module_action__RTWZU.button-module_standard__GaQlx {\n color: var(--product-greyscale-0);\n background: var(--product-light-blue-100);\n}\n\n.button-module_action__RTWZU.button-module_standard__GaQlx:hover, .button-module_action__RTWZU.button-module_standard__GaQlx.button-module_hover__Zz9hl {\n background: var(--product-light-blue-80);\n}\n\n.button-module_action__RTWZU.button-module_standard__GaQlx:active, .button-module_action__RTWZU.button-module_standard__GaQlx.button-module_active__rYKZm {\n background: var(--product-light-blue-120);\n}\n\n/* Secondary */\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3 {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-00);\n}\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3:hover, .button-module_action__RTWZU.button-module_secondary__tM5K3.button-module_hover__Zz9hl {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3:active, .button-module_action__RTWZU.button-module_secondary__tM5K3.button-module_active__rYKZm {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n/* Tertiary */\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6 {\n background: var(--product-greyscale-100);\n color: var(--product-greyscale-0)\n}\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6:hover, .button-module_action__RTWZU.button-module_tertiary__0bKi6.button-module_hover__Zz9hl {\n background: var(--product-greyscale-80);\n}\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6:active, .button-module_action__RTWZU.button-module_tertiary__0bKi6.button-module_active__rYKZm {\n background: var(--product-greyscale-100);\n}\n\n/* Ghost */\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE {\n color: #004B87;\n background: var(--product-greyscale-0);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:hover, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_hover__Zz9hl {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:active, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_active__rYKZm {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-40);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:focus, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_focus__RNsoR {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n/* Danger */\n\n.button-module_action__RTWZU.button-module_danger__pxWDX {\n color: var(--product-greyscale-0);\n background: var(--product-error);\n}\n\n.button-module_action__RTWZU.button-module_danger__pxWDX:hover, .button-module_action__RTWZU.button-module_danger__pxWDX.button-module_hover__Zz9hl {\n background: var(--product-danger-80);\n}\n\n.button-module_action__RTWZU.button-module_danger__pxWDX:active, .button-module_action__RTWZU.button-module_danger__pxWDX.button-module_active__rYKZm {\n background: var(--product-danger-120);\n}\n\n\n\n\n.button-module_button__dZH55:disabled {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n}\n\n.button-module_action__RTWZU:disabled {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n}\n\n.button-module_action__RTWZU:disabled:hover, .button-module_action__RTWZU:disabled.button-module_hover__Zz9hl {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n border: none;\n}\n\n\n\n @media (min-width: 768px) {\n .button-module_button__dZH55 {\n padding: var(--product-spacing-4) var(--product-spacing-7);\n }\n\n .button-module_action__RTWZU {\n border-radius: var(--product-radius-5);\n }\n}\n\n\n");var c={"form-label":"typography-module_form-label__7pjg0","form-helper":"typography-module_form-helper__iE-K1","form-button":"typography-module_form-button__oWjm-","form-input-normal":"typography-module_form-input-normal__t1XCT","form-input-semi-bold":"typography-module_form-input-semi-bold__HLeM-","content-regular-light":"typography-module_content-regular-light__qEDRp","content-regular":"typography-module_content-regular__I4VOF","content-regular-semi-bold":"typography-module_content-regular-semi-bold__COKU6","content-large-light":"typography-module_content-large-light__bc5mT","content-large":"typography-module_content-large__UcRKy","content-large-semi-bold":"typography-module_content-large-semi-bold__rW0r8","content-title-light":"typography-module_content-title-light__32AIU","content-title":"typography-module_content-title__adS2q","content-title-semi-bold":"typography-module_content-title-semi-bold__B-QDN"};l(".typography-module_form-label__7pjg0{\n font-weight: var(--product-font-weight-semi-bold);\n font-size: var(--product-font-form-label-desktop-size);\n letter-spacing: var(--product-font-form-label-letter-spacing);\n line-height: var(--product-font-form-label-line-height);\n}\n\n.typography-module_form-helper__iE-K1{\n font-size: var(--product-font-form-helper-desktop-size);\n letter-spacing: var(--product-font-form-helper-letter-spacing);\n line-height: var(--product-font-form-helper-line-height);\n}\n\n.typography-module_form-button__oWjm-{\n font-size: var(--product-font-form-input-button-desktop-size);\n letter-spacing: var(--product-font-form-input-button-letter-spacing);\n line-height: var(--product-font-form-input-button-line-height);\n font-weight: var(--product-font-weight-medium);\n}\n\n.typography-module_form-input-normal__t1XCT{\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n}\n\n.typography-module_form-input-semi-bold__HLeM-{\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-regular-light__qEDRp{\n font-size: var(--product-font-content-regular-light-desktop-size);\n letter-spacing: var(--product-font-content-regular-light-letter-spacing);\n line-height: var(--product-font-content-regular-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-regular__I4VOF{\n font-size: var(--product-font-content-regular-normal-desktop-size);\n letter-spacing: var(--product-font-content-regular-normal-letter-spacing);\n line-height: var(--product-font-content-regular-normal-line-height);\n}\n\n.typography-module_content-regular-semi-bold__COKU6{\n font-size: var(--product-font-content-regular-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-regular-semi-bold-letter-spacing);\n line-height: var(--product-font-content-regular-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-large-light__bc5mT{\n font-size: var(--product-font-content-large-light-desktop-size);\n letter-spacing: var(--product-font-content-large-light-letter-spacing);\n line-height: var(--product-font-content-large-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-large__UcRKy{\n font-size: var(--product-font-content-large-normal-desktop-size);\n letter-spacing: var(--product-font-content-large-normal-letter-spacing);\n line-height: var(--product-font-content-large-normal-line-height);\n}\n\n.typography-module_content-large-semi-bold__rW0r8{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-title-light__32AIU{\n font-size: var(--product-font-content-large-light-desktop-size);\n letter-spacing: var(--product-font-content-large-light-letter-spacing);\n line-height: var(--product-font-content-large-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-title__adS2q{\n font-size: var(--product-font-content-large-normal-desktop-size);\n letter-spacing: var(--product-font-content-large-normal-letter-spacing);\n line-height: var(--product-font-content-large-normal-line-height);\n}\n\n.typography-module_content-title-semi-bold__B-QDN{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n @media (min-width: 768px) {\n .typography-module_form-label__7pjg0{\n font-size: var(--product-font-form-label-desktop-size);\n }\n\n .typography-module_form-helper__iE-K1{\n font-size: var(--product-font-form-helper-desktop-size);\n }\n\n .typography-module_form-button__oWjm-{\n font-size: var(--product-font-form-input-button-desktop-size);\n }\n\n .typography-module_form-input-normal__t1XCT{\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .typography-module_form-input-semi-bold__HLeM-{\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .typography-module_content-regular-light__qEDRp{\n font-size: var(--product-font-content-regular-light-desktop-size);\n }\n\n .typography-module_content-regular__I4VOF{\n font-size: var(--product-font-content-regular-normal-desktop-size);\n }\n\n .typography-module_content-regular-semi-bold__COKU6{\n font-size: var(--product-font-content-regular-semi-bold-desktop-size);\n }\n\n .typography-module_content-large-light__bc5mT{\n font-size: var(--product-font-content-large-light-desktop-size);\n }\n\n .typography-module_content-large__UcRKy{\n font-size: var(--product-font-content-large-normal-desktop-size);\n }\n\n .typography-module_content-large-semi-bold__rW0r8{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n\n .typography-module_content-title-light__32AIU{\n font-size: var(--product-font-content-large-light-desktop-size);\n }\n\n .typography-module_content-title__adS2q{\n font-size: var(--product-font-content-large-normal-desktop-size);\n }\n\n .typography-module_content-title-semi-bold__B-QDN{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var d=function(e){var n=e.as,o=e.variant,s=void 0===o?"content-regular":o,l=e.children,u=e.className,d=i(e,["as","variant","children","className"]),h=n||"p";return t.createElement(h,r({className:a(c[s],u)},d),l)};var h="form-module_form__FGOhg";l(".form-module_form__FGOhg {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n max-width: 640px;\n margin: 0 auto;\n}\n\n.form-module_form__FGOhg fieldset {\n all: unset;\n display: flex;\n flex-direction: column; \n\n}\n\n.form-module_form__FGOhg > fieldset {\n gap: 1rem;\n}\n\n.form-module_form__FGOhg > fieldset:not(:last-child) {\n margin-bottom: 2.5rem;\n}\n\n.form-module_form__FGOhg > fieldset > legend {\n all: unset;\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n margin-bottom: var(--product-spacing-6);\n}\n\n @media (min-width: 768px) {\n .form-module_content-title-semi-bold__rYlQh {\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var p="numberField-module_container__yjOIU",m="numberField-module_fake-input__cqOX-",f="numberField-module_spinbutton-container__HkUKt",g="numberField-module_spinbutton-container--error__dO4fj",v="numberField-module_label__e79fV",y="numberField-module_error__UtA4B",_="numberField-module_control__yE0Ro";l(".numberField-module_container__yjOIU {\n display: flex;\n flex-direction: column;\n}\n\n.numberField-module_fake-input__cqOX- {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.numberField-module_spinbutton-container__HkUKt {\n display: flex;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-4) var(--product-spacing-5);\n border-radius: var(--product-radius-3);\n background: var(--product-greyscale-0);\n}\n\n.numberField-module_spinbutton-container--error__dO4fj {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.numberField-module_label__e79fV {\n margin-bottom: var(--product-spacing-3);\n}\n\n.numberField-module_error__UtA4B {\n color: var(--product-error);\n}\n\n.numberField-module_spinbutton-container--disabled__DriKa {\n background: var(--product-greyscale-20);\n}\n\n.numberField-module_control__yE0Ro {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: 44px;\n height: 44px;\n border: 2px solid black;\n}\n\n");var b=["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"];function x(){return x=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},x.apply(this,arguments)}function w(t,e,{checkForDefaultPrevented:n=!0}={}){return function(o){if(null==t||t(o),!1===n||!o.defaultPrevented)return null==e?void 0:e(o)}}function E(...t){return e=>t.forEach((t=>function(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}(t,e)))}function P(...e){return t.useCallback(E(...e),e)}function T(e,n=[]){let o=[];const r=()=>{const n=o.map((e=>t.createContext(e)));return function(o){const r=(null==o?void 0:o[e])||n;return t.useMemo((()=>({[`__scope${e}`]:{...o,[e]:r}})),[o,r])}};return r.scopeName=e,[function(n,r){const i=t.createContext(r),s=o.length;function a(n){const{scope:o,children:r,...a}=n,l=(null==o?void 0:o[e][s])||i,u=t.useMemo((()=>a),Object.values(a));return t.createElement(l.Provider,{value:u},r)}return o=[...o,r],a.displayName=n+"Provider",[a,function(o,a){const l=(null==a?void 0:a[e][s])||i,u=t.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${o}\` must be used within \`${n}\``)}]},S(r,...n)]}function S(...e){const n=e[0];if(1===e.length)return n;const o=()=>{const o=e.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(e){const r=o.reduce(((t,{useScope:n,scopeName:o})=>({...t,...n(e)[`__scope${o}`]})),{});return t.useMemo((()=>({[`__scope${n.scopeName}`]:r})),[r])}};return o.scopeName=n.scopeName,o}const C=t.forwardRef(((e,n)=>{const{children:o,...r}=e,i=t.Children.toArray(o),s=i.find(R);if(s){const e=s.props.children,o=i.map((n=>n===s?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n));return t.createElement(A,x({},r,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,o):null)}return t.createElement(A,x({},r,{ref:n}),o)}));C.displayName="Slot";const A=t.forwardRef(((e,n)=>{const{children:o,...r}=e;return t.isValidElement(o)?t.cloneElement(o,{...V(r,o.props),ref:n?E(n,o.ref):o.ref}):t.Children.count(o)>1?t.Children.only(null):null}));A.displayName="SlotClone";const k=({children:e})=>t.createElement(t.Fragment,null,e);function R(e){return t.isValidElement(e)&&e.type===k}function V(t,e){const n={...e};for(const o in e){const r=t[o],i=e[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...t)=>{i(...t),r(...t)}:r&&(n[o]=r):"style"===o?n[o]={...r,...i}:"className"===o&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...t,...n}}const F=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const o=t.forwardRef(((e,o)=>{const{asChild:r,...i}=e,s=r?C:n;return t.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),t.createElement(s,x({},i,{ref:o}))}));return o.displayName=`Primitive.${n}`,{...e,[n]:o}}),{});const M=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},D=o["useId".toString()]||(()=>{});let j=0;function L(e){const n=t.useRef(e);return t.useEffect((()=>{n.current=e})),t.useMemo((()=>(...t)=>{var e;return null===(e=n.current)||void 0===e?void 0:e.call(n,...t)}),[])}function O({prop:e,defaultProp:n,onChange:o=(()=>{})}){const[r,i]=function({defaultProp:e,onChange:n}){const o=t.useState(e),[r]=o,i=t.useRef(r),s=L(n);return t.useEffect((()=>{i.current!==r&&(s(r),i.current=r)}),[r,i,s]),o}({defaultProp:n,onChange:o}),s=void 0!==e,a=s?e:r,l=L(o);return[a,t.useCallback((t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[s,e,i,l])]}const B=t.createContext(void 0);function N(e){const n=t.useContext(B);return e||n||"ltr"}const U="rovingFocusGroup.onEntryFocus",z={bubbles:!1,cancelable:!0},I="RovingFocusGroup",[W,Z,G]=function(e){const n=e+"CollectionProvider",[o,r]=T(n),[i,s]=o(n,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{const{scope:n,children:o}=e,r=t.useRef(null),s=t.useRef(new Map).current;return t.createElement(i,{scope:n,itemMap:s,collectionRef:r},o)},Slot:t.forwardRef(((e,n)=>{const{scope:o,children:r}=e,i=P(n,s(a,o).collectionRef);return t.createElement(C,{ref:i},r)})),ItemSlot:t.forwardRef(((e,n)=>{const{scope:o,children:r,...i}=e,a=t.useRef(null),c=P(n,a),d=s(l,o);return t.useEffect((()=>(d.itemMap.set(a,{ref:a,...i}),()=>{d.itemMap.delete(a)}))),t.createElement(C,{[u]:"",ref:c},r)}))},function(n){const o=s(e+"CollectionConsumer",n);return t.useCallback((()=>{const t=o.collectionRef.current;if(!t)return[];const e=Array.from(t.querySelectorAll(`[${u}]`));return Array.from(o.itemMap.values()).sort(((t,n)=>e.indexOf(t.ref.current)-e.indexOf(n.ref.current)))}),[o.collectionRef,o.itemMap])},r]}(I),[H,$]=T(I,[G]),[K,X]=H(I),Y=t.forwardRef(((e,n)=>t.createElement(W.Provider,{scope:e.__scopeRovingFocusGroup},t.createElement(W.Slot,{scope:e.__scopeRovingFocusGroup},t.createElement(q,x({},e,{ref:n})))))),q=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,orientation:r,loop:i=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,...d}=e,h=t.useRef(null),p=P(n,h),m=N(s),[f=null,g]=O({prop:a,defaultProp:l,onChange:u}),[v,y]=t.useState(!1),_=L(c),b=Z(o),E=t.useRef(!1),[T,S]=t.useState(0);return t.useEffect((()=>{const t=h.current;if(t)return t.addEventListener(U,_),()=>t.removeEventListener(U,_)}),[_]),t.createElement(K,{scope:o,orientation:r,dir:m,loop:i,currentTabStopId:f,onItemFocus:t.useCallback((t=>g(t)),[g]),onItemShiftTab:t.useCallback((()=>y(!0)),[]),onFocusableItemAdd:t.useCallback((()=>S((t=>t+1))),[]),onFocusableItemRemove:t.useCallback((()=>S((t=>t-1))),[])},t.createElement(F.div,x({tabIndex:v||0===T?-1:0,"data-orientation":r},d,{ref:p,style:{outline:"none",...e.style},onMouseDown:w(e.onMouseDown,(()=>{E.current=!0})),onFocus:w(e.onFocus,(t=>{const e=!E.current;if(t.target===t.currentTarget&&e&&!v){const e=new CustomEvent(U,z);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){const t=b().filter((t=>t.focusable));tt([t.find((t=>t.active)),t.find((t=>t.id===f)),...t].filter(Boolean).map((t=>t.ref.current)))}}E.current=!1})),onBlur:w(e.onBlur,(()=>y(!1)))})))})),Q=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:a,...l}=e,u=function(t){const[e,n]=o.useState(D());return M((()=>{t||n((t=>null!=t?t:String(j++)))}),[t]),t||(e?`radix-${e}`:"")}(),c=a||u,d=X("RovingFocusGroupItem",r),h=d.currentTabStopId===c,p=Z(r),{onFocusableItemAdd:m,onFocusableItemRemove:f}=d;return t.useEffect((()=>{if(i)return m(),()=>f()}),[i,m,f]),t.createElement(W.ItemSlot,{scope:r,id:c,focusable:i,active:s},t.createElement(F.span,x({tabIndex:h?0:-1,"data-orientation":d.orientation},l,{ref:n,onMouseDown:w(e.onMouseDown,(t=>{i?d.onItemFocus(c):t.preventDefault()})),onFocus:w(e.onFocus,(()=>d.onItemFocus(c))),onKeyDown:w(e.onKeyDown,(t=>{if("Tab"===t.key&&t.shiftKey)return void d.onItemShiftTab();if(t.target!==t.currentTarget)return;const e=function(t,e,n){const o=function(t,e){return"rtl"!==e?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t}(t.key,n);return"vertical"===e&&["ArrowLeft","ArrowRight"].includes(o)||"horizontal"===e&&["ArrowUp","ArrowDown"].includes(o)?void 0:J[o]}(t,d.orientation,d.dir);if(void 0!==e){t.preventDefault();let r=p().filter((t=>t.focusable)).map((t=>t.ref.current));if("last"===e)r.reverse();else if("prev"===e||"next"===e){"prev"===e&&r.reverse();const i=r.indexOf(t.currentTarget);r=d.loop?(o=i+1,(n=r).map(((t,e)=>n[(o+e)%n.length]))):r.slice(i+1)}setTimeout((()=>tt(r)))}var n,o}))})))})),J={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tt(t){const e=document.activeElement;for(const n of t){if(n===e)return;if(n.focus(),document.activeElement!==e)return}}const et=Y,nt=Q;const ot=n=>{const{present:o,children:r}=n,i=function(n){const[o,r]=t.useState(),i=t.useRef({}),s=t.useRef(n),a=t.useRef("none"),l=n?"mounted":"unmounted",[u,c]=function(e,n){return t.useReducer(((t,e)=>{const o=n[t][e];return null!=o?o:t}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect((()=>{const t=rt(i.current);a.current="mounted"===u?t:"none"}),[u]),M((()=>{const t=i.current,e=s.current;if(e!==n){const o=a.current,r=rt(t);if(n)c("MOUNT");else if("none"===r||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(e&&o!==r?"ANIMATION_OUT":"UNMOUNT")}s.current=n}}),[n,c]),M((()=>{if(o){const t=t=>{const n=rt(i.current).includes(t.animationName);t.target===o&&n&&e.flushSync((()=>c("ANIMATION_END")))},n=t=>{t.target===o&&(a.current=rt(i.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",t),o.addEventListener("animationend",t),()=>{o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",t),o.removeEventListener("animationend",t)}}c("ANIMATION_END")}),[o,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback((t=>{t&&(i.current=getComputedStyle(t)),r(t)}),[])}}(o),s="function"==typeof r?r({present:i.isPresent}):t.Children.only(r),a=P(i.ref,s.ref);return"function"==typeof r||i.isPresent?t.cloneElement(s,{ref:a}):null};function rt(t){return(null==t?void 0:t.animationName)||"none"}ot.displayName="Presence";const it="Radio",[st,at]=T(it),[lt,ut]=st(it),ct=t.forwardRef(((e,n)=>{const{__scopeRadio:o,name:r,checked:i=!1,required:s,disabled:a,value:l="on",onCheck:u,...c}=e,[d,h]=t.useState(null),p=P(n,(t=>h(t))),m=t.useRef(!1),f=!d||Boolean(d.closest("form"));return t.createElement(lt,{scope:o,checked:i,disabled:a},t.createElement(F.button,x({type:"button",role:"radio","aria-checked":i,"data-state":pt(i),"data-disabled":a?"":void 0,disabled:a,value:l},c,{ref:p,onClick:w(e.onClick,(t=>{i||null==u||u(),f&&(m.current=t.isPropagationStopped(),m.current||t.stopPropagation())}))})),f&&t.createElement(ht,{control:d,bubbles:!m.current,name:r,value:l,checked:i,required:s,disabled:a,style:{transform:"translateX(-100%)"}}))})),dt=t.forwardRef(((e,n)=>{const{__scopeRadio:o,forceMount:r,...i}=e,s=ut("RadioIndicator",o);return t.createElement(ot,{present:r||s.checked},t.createElement(F.span,x({"data-state":pt(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:n})))})),ht=e=>{const{control:n,checked:o,bubbles:r=!0,...i}=e,s=t.useRef(null),a=function(e){const n=t.useRef({value:e,previous:e});return t.useMemo((()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous)),[e])}(o),l=function(e){const[n,o]=t.useState(void 0);return M((()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let r,i;if("borderBoxSize"in n){const t=n.borderBoxSize,e=Array.isArray(t)?t[0]:t;r=e.inlineSize,i=e.blockSize}else r=e.offsetWidth,i=e.offsetHeight;o({width:r,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}o(void 0)}),[e]),n}(n);return t.useEffect((()=>{const t=s.current,e=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(e,"checked").set;if(a!==o&&n){const e=new Event("click",{bubbles:r});n.call(t,o),t.dispatchEvent(e)}}),[a,o,r]),t.createElement("input",x({type:"radio","aria-hidden":!0,defaultChecked:o},i,{tabIndex:-1,ref:s,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function pt(t){return t?"checked":"unchecked"}const mt=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ft="RadioGroup",[gt,vt]=T(ft,[$,at]),yt=$(),_t=at(),[bt,xt]=gt(ft),wt=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:o,name:r,defaultValue:i,value:s,required:a=!1,disabled:l=!1,orientation:u,dir:c,loop:d=!0,onValueChange:h,...p}=e,m=yt(o),f=N(c),[g,v]=O({prop:s,defaultProp:i,onChange:h});return t.createElement(bt,{scope:o,name:r,required:a,disabled:l,value:g,onValueChange:v},t.createElement(et,x({asChild:!0},m,{orientation:u,dir:f,loop:d}),t.createElement(F.div,x({role:"radiogroup","aria-required":a,"aria-orientation":u,"data-disabled":l?"":void 0,dir:f},p,{ref:n}))))})),Et=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:o,disabled:r,...i}=e,s=xt("RadioGroupItem",o),a=s.disabled||r,l=yt(o),u=_t(o),c=t.useRef(null),d=P(n,c),h=s.value===i.value,p=t.useRef(!1);return t.useEffect((()=>{const t=t=>{mt.includes(t.key)&&(p.current=!0)},e=()=>p.current=!1;return document.addEventListener("keydown",t),document.addEventListener("keyup",e),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e)}}),[]),t.createElement(nt,x({asChild:!0},l,{focusable:!a,active:h}),t.createElement(ct,x({disabled:a,required:s.required,checked:h},u,i,{name:s.name,ref:d,onCheck:()=>s.onValueChange(i.value),onKeyDown:w((t=>{"Enter"===t.key&&t.preventDefault()})),onFocus:w(i.onFocus,(()=>{var t;p.current&&(null===(t=c.current)||void 0===t||t.click())}))})))})),Pt=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:o,...r}=e,i=_t(o);return t.createElement(dt,x({},i,r,{ref:n}))}));var Tt="radioGroup-module_legend__WklzX",St="radioGroup-module_radio-root__RtJ2M",Ct="radioGroup-module_radio-root--error__9DrYG",At="radioGroup-module_radio-root-label--error__KdFST",kt="radioGroup-module_radio-item__BKOlM",Rt="radioGroup-module_radio-indicator__-hEEu";l('\n\n.radioGroup-module_legend__WklzX {\n margin-bottom: var(--product-spacing-3);\n}\n\n.radioGroup-module_radio-root__RtJ2M {\n display: flex;\n gap: var(--product-spacing-4);\n}\n\n.radioGroup-module_radio-root--horizontal__S9DcQ {\n flex-direction: row;\n}\n\n.radioGroup-module_radio-root--vertical__dBLhN {\n flex-direction: column;\n}\n\n.radioGroup-module_radio-root--error__9DrYG {\n border: var( --product-border-width-1) solid var(--product-error);\n border-radius: var(--product-radius-2);\n}\n\n.radioGroup-module_radio-root-label--error__KdFST {\n color: var(--product-error);\n padding-top: 0.5rem;\n padding-left: 1.5rem;\n margin-bottom: 1rem;\n}\n\n.radioGroup-module_radio-item__BKOlM {\n all: unset;\n position: relative;\n background-color: white;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-5) var(--product-spacing-4);\n width: 25%;\n cursor: pointer;\n}\n\n/* ! The Circle */\n.radioGroup-module_radio-item__BKOlM::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: "";\n display: block;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n border: 2px solid black;\n right: calc(var(--product-spacing-4) - 0.5rem);\n}\n\n/* ! The dot inside the circle */\n.radioGroup-module_radio-indicator__-hEEu::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: "";\n width: 0.75rem;\n height: 0.75rem;\n border-radius: 50%;\n right: var(--product-spacing-4);\n background-color: var(--product-greyscale-100);\n}\n\n@media (min-width: 768px) {\n .radioGroup-module_radio-root__RtJ2M {\n gap: var(--product-spacing-6);\n }\n}\n');var Vt=t=>null==t;var Ft=t=>!Vt(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),Mt=t=>Ft(t)&&t.target?"checkbox"===t.target.type?t.target.checked:t.target.value:t,Dt=t=>{const e=t.constructor&&t.constructor.prototype;return Ft(e)&&e.hasOwnProperty("isPrototypeOf")},jt="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Lt(t){let e;const n=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(jt&&(t instanceof Blob||t instanceof FileList)||!n&&!Ft(t))return t;if(e=n?[]:{},n||Dt(t))for(const n in t)t.hasOwnProperty(n)&&(e[n]=Lt(t[n]));else e=t}return e}var Ot=t=>Array.isArray(t)?t.filter(Boolean):[],Bt=t=>void 0===t,Nt=(t,e,n)=>{if(!e||!Ft(t))return n;const o=Ot(e.split(/[,[\].]+?/)).reduce(((t,e)=>Vt(t)?t:t[e]),t);return Bt(o)||o===t?Bt(t[e])?n:t[e]:o},Ut=t=>"boolean"==typeof t;const zt="blur",It="change",Wt="all",Zt=t.createContext(null),Gt=()=>t.useContext(Zt);var Ht=(t,e,n,o=!0)=>{const r={defaultValues:e._defaultValues};for(const i in t)Object.defineProperty(r,i,{get:()=>{const r=i;return e._proxyFormState[r]!==Wt&&(e._proxyFormState[r]=!o||Wt),n&&(n[r]=!0),t[r]}});return r},$t=(t,e,n,o)=>{n(t);const{name:r,...i}=t;return Ft(s=i)&&!Object.keys(s).length||Object.keys(i).length>=Object.keys(e).length||Object.keys(i).find((t=>e[t]===(!o||Wt)));var s},Kt=(t,e,n)=>{return!t||!e||t===e||(o=t,Array.isArray(o)?o:[o]).some((t=>t&&(n?t===e:t.startsWith(e)||e.startsWith(t))));var o};function Xt(e){const n=t.useRef(e);n.current=e,t.useEffect((()=>{const t=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{t&&t.unsubscribe()}}),[e.disabled])}var Yt=(t,e,n,o,r)=>"string"==typeof t?(o&&e.watch.add(t),Nt(n,t,r)):Array.isArray(t)?t.map((t=>(o&&e.watch.add(t),Nt(n,t)))):(o&&(e.watchAll=!0),n);var qt=(t,e,n)=>{let o=-1;const r=(t=>/^\w*$/.test(t))(e)?[e]:Ot(e.replace(/["|']|\]/g,"").split(/\.|\[/));const i=r.length,s=i-1;for(;++o<i;){const e=r[o];let i=n;if(o!==s){const n=t[e];i=Ft(n)||Array.isArray(n)?n:isNaN(+r[o+1])?{}:[]}t[e]=i,t=t[e]}return t};function Qt(e){const n=Gt(),{name:o,disabled:r,control:i=n.control,shouldUnregister:s}=e,a=((t,e)=>t.has((t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t)(e)))(i._names.array,o),l=function(e){const n=Gt(),{control:o=n.control,name:r,defaultValue:i,disabled:s,exact:a}=e||{},l=t.useRef(r);l.current=r,Xt({disabled:s,subject:o._subjects.values,next:t=>{Kt(l.current,t.name,a)&&c(Lt(Yt(l.current,o._names,t.values||o._formValues,!1,i)))}});const[u,c]=t.useState(o._getWatch(r,i));return t.useEffect((()=>o._removeUnmounted())),u}({control:i,name:o,defaultValue:Nt(i._formValues,o,Nt(i._defaultValues,o,e.defaultValue)),exact:!0}),u=function(e){const n=Gt(),{control:o=n.control,disabled:r,name:i,exact:s}=e||{},[a,l]=t.useState(o._formState),u=t.useRef(!0),c=t.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=t.useRef(i);return d.current=i,Xt({disabled:r,next:t=>u.current&&Kt(d.current,t.name,s)&&$t(t,c.current,o._updateFormState)&&l({...o._formState,...t}),subject:o._subjects.state}),t.useEffect((()=>(u.current=!0,c.current.isValid&&o._updateValid(!0),()=>{u.current=!1})),[o]),Ht(a,o,c.current,!1)}({control:i,name:o}),c=t.useRef(i.register(o,{...e.rules,value:l,...Ut(e.disabled)?{disabled:e.disabled}:{}}));return t.useEffect((()=>{const t=i._options.shouldUnregister||s,e=(t,e)=>{const n=Nt(i._fields,t);n&&(n._f.mount=e)};if(e(o,!0),t){const t=Lt(Nt(i._options.defaultValues,o));qt(i._defaultValues,o,t),Bt(Nt(i._formValues,o))&&qt(i._formValues,o,t)}return()=>{(a?t&&!i._state.action:t)?i.unregister(o):e(o,!1)}}),[o,i,a,s]),t.useEffect((()=>{Nt(i._fields,o)&&i._updateDisabledField({disabled:r,fields:i._fields,name:o,value:Nt(i._fields,o)._f.value})}),[r,o,i]),{field:{name:o,value:l,...Ut(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:t.useCallback((t=>c.current.onChange({target:{value:Mt(t),name:o},type:It})),[o]),onBlur:t.useCallback((()=>c.current.onBlur({target:{value:Nt(i._formValues,o),name:o},type:zt})),[o,i]),ref:t=>{const e=Nt(i._fields,o);e&&t&&(e._f.ref={focus:()=>t.focus(),select:()=>t.select(),setCustomValidity:e=>t.setCustomValidity(e),reportValidity:()=>t.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Nt(u.errors,o)},isDirty:{enumerable:!0,get:()=>!!Nt(u.dirtyFields,o)},isTouched:{enumerable:!0,get:()=>!!Nt(u.touchedFields,o)},isValidating:{enumerable:!0,get:()=>!!Nt(u.validatingFields,o)},error:{enumerable:!0,get:()=>Nt(u.errors,o)}})}}const Jt=t=>t.render(Qt(t));var te={Root:function(e){var n=e.children,o=e.control,s=e.className,l=e.name,u=e.error,c=e.label,h=i(e,["children","control","className","name","error","label"]);return t.createElement(Jt,{name:l,control:o,render:function(e){var o=e.field,i=o.onChange,l=o.name,p=o.ref,m=o.value,f=o.onBlur;return t.createElement("fieldset",null,t.createElement(d,{className:Tt,as:"legend",variant:"form-input-normal"},c),t.createElement(wt,r({className:a(s,St,u&&Ct),ref:p,value:m,onBlur:f,onValueChange:i},h,{name:l,"aria-required":void 0}),n),u&&t.createElement("p",{className:At},u.message))}})},Item:function(e){var n=e.children,o=e.className,s=i(e,["children","className"]);return t.createElement(Et,r({className:a(o,kt)},s),t.createElement(d,{variant:"form-input-normal"},n))},Indicator:function(e){var n=e.className,o=i(e,["className"]);return t.createElement(Pt,r({className:a(n,Rt)},o))}},ee="range-module_container__SwhGo",ne="range-module_range-container__iGnY1",oe="range-module_slider__pZtfP",re="range-module_notches__Zc4Og",ie="range-module_notch__qXs7B",se="range-module_progress__fElkU",ae="range-module_value-container__8Zt0r";l(".range-module_container__SwhGo {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-6);\n border-radius: var( --product-radius-2);\n}\n\n.range-module_container__SwhGo > div {\n width: 70%;\n}\n\n.range-module_container__SwhGo > p {\n width: 30%;\n text-align: center;\n}\n\n.range-module_range-container__iGnY1 {\n position: relative;\n width: 100%;\n height: 24px;\n background: var(--product-greyscale-0);\n}\n\n/* The slider itself */\n.range-module_slider__pZtfP {\n -webkit-appearance: none; /* Override default CSS styles */\n -moz-appearance: none;\n appearance: none;\n width: 100%; /* Full-width */\n height: 24px; /* Specified height */\n background: var(--product-greyscale-10); /* Grey background */\n outline: none; /* Remove outline */\n border-radius: var(--product-radius-2);\n}\n\n/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */\n.range-module_slider__pZtfP::-webkit-slider-thumb {\n -webkit-appearance: none; /* Override default look */\n appearance: none;\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n\n\n.range-module_slider__pZtfP::-moz-range-thumb {\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n.range-module_notches__Zc4Og {\n position: absolute;\n width: 100%;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n justify-content: space-evenly;\n pointer-events: none;\n}\n\n.range-module_notch__qXs7B {\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n background-color: var(--product-greyscale-60);\n opacity: 0.1;\n}\n\n.range-module_progress__fElkU {\n position: absolute;\n height: 100%;\n background: var(--product-light-blue-80);\n pointer-events: none;\n border-radius: var(--product-radius-2);\n}\n\n.range-module_value-container__8Zt0r {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n\n}\n");var le="select-module_container__Lydyj",ue="select-module_input__Hcrhq",ce="select-module_icon__SCm5W",de="select-module_input--error__4pQ0M",he="select-module_input--disabled__zteOi",pe="select-module_error-message__89d1g",me="select-module_helper-message__VwS-B";l("\n\n.select-module_container__Lydyj {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.select-module_input__Hcrhq {\n all: unset;\n cursor: pointer;\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n padding: var(--product-spacing-6);\n background: var(--product-greyscale-0);\n border-radius: var(--product-radius-2);\n border: none;\n}\n\n.select-module_input__Hcrhq:hover {\n border: 1px solid var(--product-greyscale-20);\n}\n\n.select-module_icon__SCm5W {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n}\n\n.select-module_input__Hcrhq:active {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.select-module_input__Hcrhq:focus {\n border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));\n}\n\n.select-module_input--error__4pQ0M {\n border: var(--product-border-width-1) solid var(--product-error);\n color: var(--product-error);\n}\n\n.select-module_input--disabled__zteOi {\n color: var(--product-greyscale-60);\n background: var(--product-greyscale-40);\n cursor: not-allowed;\n border: none;\n}\n\n.select-module_error-message__89d1g {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n color: var(--product-error);\n}\n\n.select-module_helper-message__VwS-B {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n @media (min-width: 768px) {\n .select-module_input__Hcrhq {\n padding: var(--product-spacing-6);\n }\n}\n");const fe=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),ge=t.createContext({}),ve=t.createContext(null),ye="undefined"!=typeof document,_e=ye?t.useLayoutEffect:t.useEffect,be=t.createContext({strict:!1}),xe=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),we="data-"+xe("framerAppearId"),Ee=!1,Pe=!1;class Te{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}const Se=["prepare","read","update","preRender","render","postRender"];function Ce(t,e){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=Se.reduce(((t,e)=>(t[e]=function(t){let e=new Te,n=new Te,o=0,r=!1,i=!1;const s=new WeakSet,a={schedule:(t,i=!1,a=!1)=>{const l=a&&r,u=l?e:n;return i&&s.add(t),u.add(t)&&l&&r&&(o=e.order.length),t},cancel:t=>{n.remove(t),s.delete(t)},process:l=>{if(r)i=!0;else{if(r=!0,[e,n]=[n,e],n.clear(),o=e.order.length,o)for(let n=0;n<o;n++){const o=e.order[n];s.has(o)&&(a.schedule(o),t()),o(l)}r=!1,i&&(i=!1,a.process(l))}}};return a}((()=>n=!0)),t)),{}),s=t=>{i[t].process(r)},a=()=>{const i=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(i-r.timestamp,40),1),r.timestamp=i,r.isProcessing=!0,Se.forEach(s),r.isProcessing=!1,n&&e&&(o=!1,t(a))};return{schedule:Se.reduce(((e,s)=>{const l=i[s];return e[s]=(e,i=!1,s=!1)=>(n||(n=!0,o=!0,r.isProcessing||t(a)),l.schedule(e,i,s)),e}),{}),cancel:t=>Se.forEach((e=>i[e].cancel(t))),state:r,steps:i}}const{schedule:Ae,cancel:ke}=Ce(queueMicrotask,!1);function Re(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function Ve(t){return"string"==typeof t||Array.isArray(t)}function Fe(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const Me=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],De=["initial",...Me];function je(t){return Fe(t.animate)||De.some((e=>Ve(t[e])))}function Le(t){return Boolean(je(t)||t.variants)}function Oe(e){const{initial:n,animate:o}=function(t,e){if(je(t)){const{initial:e,animate:n}=t;return{initial:!1===e||Ve(e)?e:void 0,animate:Ve(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(ge));return t.useMemo((()=>({initial:n,animate:o})),[Be(n),Be(o)])}function Be(t){return Array.isArray(t)?t.join(" "):t}const Ne={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ue={};for(const t in Ne)Ue[t]={isEnabled:e=>Ne[t].some((t=>!!e[t]))};const ze=t.createContext({}),Ie=t.createContext({}),We=Symbol.for("motionComponentSymbol");function Ze({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:s}){e&&function(t){for(const e in t)Ue[e]={...Ue[e],...t[e]}}(e);const a=t.forwardRef((function(a,l){let u;const c={...t.useContext(fe),...a,layoutId:Ge(a)},{isStatic:d}=c,h=Oe(a),p=i(a,d);if(!d&&ye){h.visualElement=function(e,n,o,r){const{visualElement:i}=t.useContext(ge),s=t.useContext(be),a=t.useContext(ve),l=t.useContext(fe).reducedMotion,u=t.useRef();r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:n,parent:i,props:o,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const c=u.current;t.useInsertionEffect((()=>{c&&c.update(o,a)}));const d=t.useRef(Boolean(o[we]&&!window.HandoffComplete));return _e((()=>{c&&(Ae.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())})),t.useEffect((()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),c}(s,p,c,n);const o=t.useContext(Ie),r=t.useContext(be).strict;h.visualElement&&(u=h.visualElement.loadFeatures(c,r,e,o))}return o.createElement(ge.Provider,{value:h},u&&h.visualElement?o.createElement(u,{visualElement:h.visualElement,...c}):null,r(s,a,function(e,n,o){return t.useCallback((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),o&&("function"==typeof o?o(t):Re(o)&&(o.current=t))}),[n])}(p,h.visualElement,l),p,d,h.visualElement))}));return a[We]=s,a}function Ge({layoutId:e}){const n=t.useContext(ze).id;return n&&void 0!==e?n+"-"+e:e}function He(t){function e(e,n={}){return Ze(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,o)=>(n.has(o)||n.set(o,e(o)),n.get(o))})}const $e=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ke(t){return"string"==typeof t&&!t.includes("-")&&!!($e.indexOf(t)>-1||/[A-Z]/.test(t))}const Xe={};const Ye=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qe=new Set(Ye);function Qe(t,{layout:e,layoutId:n}){return qe.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Xe[t]||"opacity"===t)}const Je=t=>Boolean(t&&t.getVelocity),tn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},en=Ye.length;const nn=t=>e=>"string"==typeof e&&e.startsWith(t),on=nn("--"),rn=nn("var(--"),sn=t=>!!rn(t)&&an.test(t.split("/*")[0].trim()),an=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,ln=(t,e)=>e&&"number"==typeof t?e.transform(t):t,un=(t,e,n)=>n>e?e:n<t?t:n,cn={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},dn={...cn,transform:t=>un(0,1,t)},hn={...cn,default:1},pn=t=>Math.round(1e5*t)/1e5,mn=/(-)?([\d]*\.?[\d])+/g,fn=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,gn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function vn(t){return"string"==typeof t}const yn=t=>({test:e=>vn(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),_n=yn("deg"),bn=yn("%"),xn=yn("px"),wn=yn("vh"),En=yn("vw"),Pn={...bn,parse:t=>bn.parse(t)/100,transform:t=>bn.transform(100*t)},Tn={...cn,transform:Math.round},Sn={borderWidth:xn,borderTopWidth:xn,borderRightWidth:xn,borderBottomWidth:xn,borderLeftWidth:xn,borderRadius:xn,radius:xn,borderTopLeftRadius:xn,borderTopRightRadius:xn,borderBottomRightRadius:xn,borderBottomLeftRadius:xn,width:xn,maxWidth:xn,height:xn,maxHeight:xn,size:xn,top:xn,right:xn,bottom:xn,left:xn,padding:xn,paddingTop:xn,paddingRight:xn,paddingBottom:xn,paddingLeft:xn,margin:xn,marginTop:xn,marginRight:xn,marginBottom:xn,marginLeft:xn,rotate:_n,rotateX:_n,rotateY:_n,rotateZ:_n,scale:hn,scaleX:hn,scaleY:hn,scaleZ:hn,skew:_n,skewX:_n,skewY:_n,distance:xn,translateX:xn,translateY:xn,translateZ:xn,x:xn,y:xn,z:xn,perspective:xn,transformPerspective:xn,opacity:dn,originX:Pn,originY:Pn,originZ:xn,zIndex:Tn,fillOpacity:dn,strokeOpacity:dn,numOctaves:Tn};function Cn(t,e,n,o){const{style:r,vars:i,transform:s,transformOrigin:a}=t;let l=!1,u=!1,c=!0;for(const t in e){const n=e[t];if(on(t)){i[t]=n;continue}const o=Sn[t],d=ln(n,o);if(qe.has(t)){if(l=!0,s[t]=d,!c)continue;n!==(o.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,a[t]=d):r[t]=d}if(e.transform||(l||o?r.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},o,r){let i="";for(let e=0;e<en;e++){const n=Ye[e];void 0!==t[n]&&(i+=`${tn[n]||n}(${t[n]}) `)}return e&&!t.z&&(i+="translateZ(0)"),i=i.trim(),r?i=r(t,o?"":i):n&&o&&(i="none"),i}(t.transform,n,c,o):r.transform&&(r.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=a;r.transformOrigin=`${t} ${e} ${n}`}}const An=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function kn(t,e,n){for(const o in e)Je(e[o])||Qe(o,n)||(t[o]=e[o])}function Rn(e,n,o){const r={};return kn(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},n,o){return t.useMemo((()=>{const t=An();return Cn(t,n,{enableHardwareAcceleration:!o},e),Object.assign({},t.vars,t.style)}),[n])}(e,n,o)),r}function Vn(t,e,n){const o={},r=Rn(t,e,n);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=r,o}const Fn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Mn(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Fn.has(t)}let Dn=t=>!Mn(t);try{(jn=require("@emotion/is-prop-valid").default)&&(Dn=t=>t.startsWith("on")?!Mn(t):jn(t))}catch(t){}var jn;function Ln(t,e,n){return"string"==typeof t?t:xn.transform(e+n*t)}const On={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bn={offset:"strokeDashoffset",array:"strokeDasharray"};function Nn(t,{attrX:e,attrY:n,attrScale:o,originX:r,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,h){if(Cn(t,u,c,h),d)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:m,dimensions:f}=t;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==r||void 0!==i||m.transform)&&(m.transformOrigin=function(t,e,n){return`${Ln(e,t.x,t.width)} ${Ln(n,t.y,t.height)}`}(f,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==e&&(p.x=e),void 0!==n&&(p.y=n),void 0!==o&&(p.scale=o),void 0!==s&&function(t,e,n=1,o=0,r=!0){t.pathLength=1;const i=r?On:Bn;t[i.offset]=xn.transform(-o);const s=xn.transform(e),a=xn.transform(n);t[i.array]=`${s} ${a}`}(p,s,a,l,!1)}const Un=()=>({...An(),attrs:{}}),zn=t=>"string"==typeof t&&"svg"===t.toLowerCase();function In(e,n,o,r){const i=t.useMemo((()=>{const t=Un();return Nn(t,n,{enableHardwareAcceleration:!1},zn(r),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};kn(t,e.style,e),i.style={...t,...i.style}}return i}function Wn(e=!1){return(n,o,r,{latestValues:i},s)=>{const a=(Ke(n)?In:Vn)(o,i,s,n),l=function(t,e,n){const o={};for(const r in t)"values"===r&&"object"==typeof t.values||(Dn(r)||!0===n&&Mn(r)||!e&&!Mn(r)||t.draggable&&r.startsWith("onDrag"))&&(o[r]=t[r]);return o}(o,"string"==typeof n,e),u=n!==t.Fragment?{...l,...a,ref:r}:{},{children:c}=o,d=t.useMemo((()=>Je(c)?c.get():c),[c]);return t.createElement(n,{...u,children:d})}}function Zn(t,{style:e,vars:n},o,r){Object.assign(t.style,e,r&&r.getProjectionStyles(o));for(const e in n)t.style.setProperty(e,n[e])}const Gn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Hn(t,e,n,o){Zn(t,e,void 0,o);for(const n in e.attrs)t.setAttribute(Gn.has(n)?n:xe(n),e.attrs[n])}function $n(t,e){const{style:n}=t,o={};for(const r in n)(Je(n[r])||e.style&&Je(e.style[r])||Qe(r,t))&&(o[r]=n[r]);return o}function Kn(t,e){const n=$n(t,e);for(const o in t)if(Je(t[o])||Je(e[o])){n[-1!==Ye.indexOf(o)?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o]=t[o]}return n}function Xn(t,e,n,o={},r={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,o,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,o,r)),e}const Yn=t=>Array.isArray(t),qn=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),Qn=t=>Yn(t)?t[t.length-1]||0:t;function Jn(t){const e=Je(t)?t.get():t;return qn(e)?e.toValue():e}const to=e=>(n,o)=>{const r=t.useContext(ge),i=t.useContext(ve),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},o,r,i){const s={latestValues:eo(o,r,i,t),renderState:e()};return n&&(s.mount=t=>n(o,t,s)),s}(e,n,r,i);return o?s():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(s)};function eo(t,e,n,o){const r={},i=o(t,{});for(const t in i)r[t]=Jn(i[t]);let{initial:s,animate:a}=t;const l=je(t),u=Le(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const d=c?a:s;if(d&&"boolean"!=typeof d&&!Fe(d)){(Array.isArray(d)?d:[d]).forEach((e=>{const n=Xn(t,e);if(!n)return;const{transitionEnd:o,transition:i,...s}=n;for(const t in s){let e=s[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(r[t]=e)}for(const t in o)r[t]=o[t]}))}return r}const no=t=>t,{schedule:oo,cancel:ro,state:io,steps:so}=Ce("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:no,!0),ao={useVisualState:to({scrapeMotionValuesFromProps:Kn,createRenderState:Un,onMount:(t,e,{renderState:n,latestValues:o})=>{oo.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),oo.render((()=>{Nn(n,o,{enableHardwareAcceleration:!1},zn(e.tagName),t.transformTemplate),Hn(e,n)}))}})},lo={useVisualState:to({scrapeMotionValuesFromProps:$n,createRenderState:An})};function uo(t,e,n,o={passive:!0}){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n)}const co=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ho(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const po=t=>e=>co(e)&&t(e,ho(e));function mo(t,e,n,o){return uo(t,e,po(n),o)}const fo=(t,e)=>n=>e(t(n)),go=(...t)=>t.reduce(fo);function vo(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const yo=vo("dragHorizontal"),_o=vo("dragVertical");function bo(t){let e=!1;if("y"===t)e=_o();else if("x"===t)e=yo();else{const t=yo(),n=_o();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function xo(){const t=bo(!0);return!t||(t(),!1)}class wo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Eo(t,e){const n="pointer"+(e?"enter":"leave"),o="onHover"+(e?"Start":"End");return mo(t.current,n,((n,r)=>{if("touch"===n.pointerType||xo())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",e),i[o]&&oo.update((()=>i[o](n,r)))}),{passive:!t.getProps()[o]})}const Po=(t,e)=>!!e&&(t===e||Po(t,e.parentElement));function To(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,ho(n))}const So=new WeakMap,Co=new WeakMap,Ao=t=>{const e=So.get(t.target);e&&e(t)},ko=t=>{t.forEach(Ao)};function Ro(t,e,n){const o=function({root:t,...e}){const n=t||document;Co.has(n)||Co.set(n,{});const o=Co.get(n),r=JSON.stringify(e);return o[r]||(o[r]=new IntersectionObserver(ko,{root:t,...e})),o[r]}(e);return So.set(t,n),o.observe(t),()=>{So.delete(t),o.unobserve(t)}}const Vo={some:0,all:1};const Fo={inView:{Feature:class extends wo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:o="some",once:r}=t,i={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:Vo[o]};return Ro(this.node.current,i,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,r&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:o}=this.node.getProps(),i=e?n:o;i&&i(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends wo{constructor(){super(...arguments),this.removeStartListeners=no,this.removeEndListeners=no,this.removeAccessibleListeners=no,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),o=mo(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:o,globalTapTarget:r}=this.node.getProps();oo.update((()=>{r||Po(this.node.current,t.target)?n&&n(t,e):o&&o(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),r=mo(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=go(o,r),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=uo(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=uo(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&To("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&oo.update((()=>n(t,e)))}))})),To("down",((t,e)=>{this.startPress(t,e)}))})),e=uo(this.node.current,"blur",(()=>{this.isPressing&&To("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=go(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&oo.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xo()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&oo.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=mo(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=uo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=go(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends wo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=go(uo(this.node.current,"focus",(()=>this.onFocus())),uo(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends wo{mount(){this.unmount=go(Eo(this.node,!0),Eo(this.node,!1))}unmount(){}}}};function Mo(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}function Do(t,e,n){const o=t.getProps();return Xn(o,e,void 0!==n?n:o.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}let jo=no,Lo=no;"production"!==process.env.NODE_ENV&&(jo=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},Lo=(t,e)=>{if(!t)throw new Error(e)});const Oo=t=>1e3*t,Bo=t=>t/1e3,No=!1,Uo=t=>Array.isArray(t)&&"number"==typeof t[0];function zo(t){return Boolean(!t||"string"==typeof t&&Wo[t]||Uo(t)||Array.isArray(t)&&t.every(zo))}const Io=([t,e,n,o])=>`cubic-bezier(${t}, ${e}, ${n}, ${o})`,Wo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Io([0,.65,.55,1]),circOut:Io([.55,0,1,.45]),backIn:Io([.31,.01,.66,-.59]),backOut:Io([.33,1.53,.69,.99])};function Zo(t){if(t)return Uo(t)?Io(t):Array.isArray(t)?t.map(Zo):Wo[t]}const Go=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ho=1e-7,$o=12;function Ko(t,e,n,o){if(t===e&&n===o)return no;const r=e=>function(t,e,n,o,r){let i,s,a=0;do{s=e+(n-e)/2,i=Go(s,o,r)-t,i>0?n=s:e=s}while(Math.abs(i)>Ho&&++a<$o);return s}(e,0,1,t,n);return t=>0===t||1===t?t:Go(r(t),e,o)}const Xo=Ko(.42,0,1,1),Yo=Ko(0,0,.58,1),qo=Ko(.42,0,.58,1),Qo=t=>Array.isArray(t)&&"number"!=typeof t[0],Jo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tr=t=>e=>1-t(1-e),er=t=>1-Math.sin(Math.acos(t)),nr=tr(er),or=Jo(er),rr=Ko(.33,1.53,.69,.99),ir=tr(rr),sr=Jo(ir),ar={linear:no,easeIn:Xo,easeInOut:qo,easeOut:Yo,circIn:er,circInOut:or,circOut:nr,backIn:ir,backInOut:sr,backOut:rr,anticipate:t=>(t*=2)<1?.5*ir(t):.5*(2-Math.pow(2,-10*(t-1)))},lr=t=>{if(Array.isArray(t)){Lo(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,o,r]=t;return Ko(e,n,o,r)}return"string"==typeof t?(Lo(void 0!==ar[t],`Invalid easing type '${t}'`),ar[t]):t},ur=(t,e,n)=>{const o=e-t;return 0===o?1:(n-t)/o},cr=(t,e,n)=>t+(e-t)*n;function dr(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const hr=(t,e)=>n=>Boolean(vn(n)&&gn.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),pr=(t,e,n)=>o=>{if(!vn(o))return o;const[r,i,s,a]=o.match(mn);return{[t]:parseFloat(r),[e]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},mr={...cn,transform:t=>Math.round((t=>un(0,255,t))(t))},fr={test:hr("rgb","red"),parse:pr("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:o=1})=>"rgba("+mr.transform(t)+", "+mr.transform(e)+", "+mr.transform(n)+", "+pn(dn.transform(o))+")"};const gr={test:hr("#"),parse:function(t){let e="",n="",o="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),o=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),o=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,o+=o,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}},transform:fr.transform},vr={test:hr("hsl","hue"),parse:pr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:o=1})=>"hsla("+Math.round(t)+", "+bn.transform(pn(e))+", "+bn.transform(pn(n))+", "+pn(dn.transform(o))+")"},yr=(t,e,n)=>{const o=t*t,r=n*(e*e-o)+o;return r<0?0:Math.sqrt(r)},_r=[gr,fr,vr];function br(t){const e=(n=t,_r.find((t=>t.test(n))));var n;Lo(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let o=e.parse(t);return e===vr&&(o=function({hue:t,saturation:e,lightness:n,alpha:o}){t/=360,n/=100;let r=0,i=0,s=0;if(e/=100){const o=n<.5?n*(1+e):n+e-n*e,a=2*n-o;r=dr(a,o,t+1/3),i=dr(a,o,t),s=dr(a,o,t-1/3)}else r=i=s=n;return{red:Math.round(255*r),green:Math.round(255*i),blue:Math.round(255*s),alpha:o}}(o)),o}const xr=(t,e)=>{const n=br(t),o=br(e),r={...n};return t=>(r.red=yr(n.red,o.red,t),r.green=yr(n.green,o.green,t),r.blue=yr(n.blue,o.blue,t),r.alpha=cr(n.alpha,o.alpha,t),fr.transform(r))},wr={test:t=>fr.test(t)||gr.test(t)||vr.test(t),parse:t=>fr.test(t)?fr.parse(t):vr.test(t)?vr.parse(t):gr.parse(t),transform:t=>vn(t)?t:t.hasOwnProperty("red")?fr.transform(t):vr.transform(t)};const Er="number",Pr="color",Tr="var",Sr="var(",Cr="${}",Ar=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function kr(t){const e=t.toString(),n=e.match(Ar)||[],o=[],r={color:[],number:[],var:[]},i=[];for(let t=0;t<n.length;t++){const e=n[t];wr.test(e)?(r.color.push(t),i.push(Pr),o.push(wr.parse(e))):e.startsWith(Sr)?(r.var.push(t),i.push(Tr),o.push(e)):(r.number.push(t),i.push(Er),o.push(parseFloat(e)))}return{values:o,split:e.replace(Ar,Cr).split(Cr),indexes:r,types:i}}function Rr(t){return kr(t).values}function Vr(t){const{split:e,types:n}=kr(t),o=e.length;return t=>{let r="";for(let i=0;i<o;i++)if(r+=e[i],void 0!==t[i]){const e=n[i];r+=e===Er?pn(t[i]):e===Pr?wr.transform(t[i]):t[i]}return r}}const Fr=t=>"number"==typeof t?0:t;const Mr={test:function(t){var e,n;return isNaN(t)&&vn(t)&&((null===(e=t.match(mn))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(fn))||void 0===n?void 0:n.length)||0)>0},parse:Rr,createTransformer:Vr,getAnimatableNone:function(t){const e=Rr(t);return Vr(t)(e.map(Fr))}};function Dr(t,e){return n=>n>0?e:t}function jr(t,e){return n=>cr(t,e,n)}function Lr(t){return"number"==typeof t?jr:"string"==typeof t?sn(t)?Dr:wr.test(t)?xr:Nr:Array.isArray(t)?Or:"object"==typeof t?wr.test(t)?xr:Br:Dr}function Or(t,e){const n=[...t],o=n.length,r=t.map(((t,n)=>Lr(t)(t,e[n])));return t=>{for(let e=0;e<o;e++)n[e]=r[e](t);return n}}function Br(t,e){const n={...t,...e},o={};for(const r in n)void 0!==t[r]&&void 0!==e[r]&&(o[r]=Lr(t[r])(t[r],e[r]));return t=>{for(const e in o)n[e]=o[e](t);return n}}const Nr=(t,e)=>{const n=Mr.createTransformer(e),o=kr(t),r=kr(e);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?go(Or(function(t,e){var n;const o=[],r={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const s=e.types[i],a=t.indexes[s][r[s]],l=null!==(n=t.values[a])&&void 0!==n?n:0;o[i]=l,r[s]++}return o}(o,r),r.values),n):(jo(!0,`Complex values '${t}' and '${e}' 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.`),Dr(t,e))};function Ur(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return cr(t,e,n);return Lr(t)(t,e)}function zr(t,e,{clamp:n=!0,ease:o,mixer:r}={}){const i=t.length;if(Lo(i===e.length,"Both input and output ranges must be the same length"),1===i)return()=>e[0];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=function(t,e,n){const o=[],r=n||Ur,i=t.length-1;for(let n=0;n<i;n++){let i=r(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||no:e;i=go(t,i)}o.push(i)}return o}(e,o,r),a=s.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const o=ur(t[n],t[n+1],e);return s[n](o)};return n?e=>l(un(t[0],t[i-1],e)):l}function Ir(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let o=1;o<=e;o++){const r=ur(0,e,o);t.push(cr(n,1,r))}}(e,t.length-1),e}function Wr({duration:t=300,keyframes:e,times:n,ease:o="easeInOut"}){const r=Qo(o)?o.map(lr):lr(o),i={done:!1,value:e[0]},s=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:Ir(e),t),a=zr(s,e,{ease:Array.isArray(r)?r:(l=e,u=r,l.map((()=>u||qo)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(i.value=a(e),i.done=e>=t,i)}}function Zr(t,e){return e?t*(1e3/e):0}const Gr=5;function Hr(t,e,n){const o=Math.max(e-Gr,0);return Zr(n-t(o),e-o)}const $r=.001,Kr=.01,Xr=10,Yr=.05,qr=1;function Qr({duration:t=800,bounce:e=.25,velocity:n=0,mass:o=1}){let r,i;jo(t<=Oo(Xr),"Spring duration must be 10 seconds or less");let s=1-e;s=un(Yr,qr,s),t=un(Kr,Xr,Bo(t)),s<1?(r=e=>{const o=e*s,r=o*t,i=o-n,a=ti(e,s),l=Math.exp(-r);return $r-i/a*l},i=e=>{const o=e*s*t,i=o*n+n,a=Math.pow(s,2)*Math.pow(e,2)*t,l=Math.exp(-o),u=ti(Math.pow(e,2),s);return(-r(e)+$r>0?-1:1)*((i-a)*l)/u}):(r=e=>Math.exp(-e*t)*((e-n)*t+1)-$r,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let o=n;for(let n=1;n<Jr;n++)o-=t(o)/e(o);return o}(r,i,5/t);if(t=Oo(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*o;return{stiffness:e,damping:2*s*Math.sqrt(o*e),duration:t}}}const Jr=12;function ti(t,e){return t*Math.sqrt(1-e*e)}const ei=["duration","bounce"],ni=["stiffness","damping","mass"];function oi(t,e){return e.some((e=>void 0!==t[e]))}function ri({keyframes:t,restDelta:e,restSpeed:n,...o}){const r=t[0],i=t[t.length-1],s={done:!1,value:r},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:h}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!oi(t,ni)&&oi(t,ei)){const n=Qr(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...o,velocity:-Bo(o.velocity||0)}),p=d||0,m=l/(2*Math.sqrt(a*u)),f=i-r,g=Bo(Math.sqrt(a/u)),v=Math.abs(f)<5;let y;if(n||(n=v?.01:2),e||(e=v?.005:.5),m<1){const t=ti(g,m);y=e=>{const n=Math.exp(-m*g*e);return i-n*((p+m*g*f)/t*Math.sin(t*e)+f*Math.cos(t*e))}}else if(1===m)y=t=>i-Math.exp(-g*t)*(f+(p+g*f)*t);else{const t=g*Math.sqrt(m*m-1);y=e=>{const n=Math.exp(-m*g*e),o=Math.min(t*e,300);return i-n*((p+m*g*f)*Math.sinh(o)+t*f*Math.cosh(o))/t}}return{calculatedDuration:h&&c||null,next:t=>{const o=y(t);if(h)s.done=t>=c;else{let r=p;0!==t&&(r=m<1?Hr(y,t,o):0);const a=Math.abs(r)<=n,l=Math.abs(i-o)<=e;s.done=a&&l}return s.value=s.done?i:o,s}}}function ii({keyframes:t,velocity:e=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],h={done:!1,value:d},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=d+m,g=void 0===s?f:s(f);g!==f&&(m=g-d);const v=t=>-m*Math.exp(-t/o),y=t=>g+v(t),_=t=>{const e=v(t),n=y(t);h.done=Math.abs(e)<=u,h.value=h.done?g:n};let b,x;const w=t=>{var e;(e=h.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(b=t,x=ri({keyframes:[h.value,p(h.value)],velocity:Hr(y,t,h.value),damping:r,stiffness:i,restDelta:u,restSpeed:c}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return x||void 0!==b||(e=!0,_(t),w(t)),void 0!==b&&t>b?x.next(t-b):(!e&&_(t),h)}}}let si;function ai(){si=void 0}const li={now:()=>(void 0===si&&li.set(io.isProcessing||Pe?io.timestamp:performance.now()),si),set:t=>{si=t,queueMicrotask(ai)}},ui=t=>{const e=({timestamp:e})=>t(e);return{start:()=>oo.update(e,!0),stop:()=>ro(e),now:()=>io.isProcessing?io.timestamp:li.now()}},ci=2e4;function di(t){let e=0;let n=t.next(e);for(;!n.done&&e<ci;)e+=50,n=t.next(e);return e>=ci?1/0:e}const hi={decay:ii,inertia:ii,tween:Wr,keyframes:Wr,spring:ri},pi=t=>t/100;function mi({autoplay:t=!0,delay:e=0,driver:n=ui,keyframes:o,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...h}){let p,m,f=1,g=!1;const v=()=>{m=new Promise((t=>{p=t}))};let y;v();const _=hi[r]||Wr;let b;_!==Wr&&"number"!=typeof o[0]&&("production"!==process.env.NODE_ENV&&Lo(2===o.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),b=go(pi,Ur(o[0],o[1])),o=[0,100]);const x=_({...h,keyframes:o});let w;"mirror"===a&&(w=_({...h,keyframes:[...o].reverse(),velocity:-(h.velocity||0)}));let E="idle",P=null,T=null,S=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=di(x));const{calculatedDuration:C}=x;let A=1/0,k=1/0;null!==C&&(A=C+s,k=A*(i+1)-s);let R=0;const V=t=>{if(null===T)return;f>0&&(T=Math.min(T,t)),f<0&&(T=Math.min(t-k/f,T)),R=null!==P?P:Math.round(t-T)*f;const n=R-e*(f>=0?1:-1),r=f>=0?n<0:n>k;R=Math.max(n,0),"finished"===E&&null===P&&(R=k);let l=R,u=x;if(i){const t=Math.min(R,k)/A;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,i+1);Boolean(e%2)&&("reverse"===a?(n=1-n,s&&(n-=s/A)):"mirror"===a&&(u=w)),l=un(0,1,n)*A}const c=r?{done:!1,value:o[0]}:u.next(l);b&&(c.value=b(c.value));let{done:h}=c;r||null===C||(h=f>=0?R>=k:R<=0);const p=null===P&&("finished"===E||"running"===E&&h);return d&&d(c.value),p&&D(),c},F=()=>{y&&y.stop(),y=void 0},M=()=>{E="idle",F(),p(),v(),T=S=null},D=()=>{E="finished",c&&c(),F(),p()},j=()=>{if(g)return;y||(y=n(V));const t=y.now();l&&l(),null!==P?T=t-P:T&&"finished"!==E||(T=t),"finished"===E&&v(),S=T,P=null,E="running",y.start()};t&&j();const L={then:(t,e)=>m.then(t,e),get time(){return Bo(R)},set time(t){t=Oo(t),R=t,null===P&&y&&0!==f?T=y.now()-t/f:P=t},get duration(){const t=null===x.calculatedDuration?di(x):x.calculatedDuration;return Bo(t)},get speed(){return f},set speed(t){t!==f&&y&&(f=t,L.time=Bo(R))},get state(){return E},play:j,pause:()=>{E="paused",P=R},stop:()=>{g=!0,"idle"!==E&&(E="idle",u&&u(),M())},cancel:()=>{null!==S&&V(S),M()},complete:()=>{E="finished"},sample:t=>(T=0,V(t))};return L}const fi=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),gi=new Set(["opacity","clipPath","filter","transform"]);function vi(t,e,{onUpdate:n,onComplete:o,...r}){if(!(fi()&&gi.has(e)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping&&"inertia"!==r.type))return!1;let i,s,a=!1,l=!1;const u=()=>{s=new Promise((t=>{i=t}))};u();let{keyframes:c,duration:d=300,ease:h,times:p}=r;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!zo(e.ease))(e,r)){const t=mi({...r,repeat:0,delay:0});let e={done:!1,value:c[0]};const n=[];let o=0;for(;!e.done&&o<2e4;)e=t.sample(o),n.push(e.value),o+=10;p=void 0,c=n,d=o-10,h="linear"}const m=function(t,e,n,{delay:o=0,duration:r,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Zo(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:o,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,c,{...r,duration:d,ease:h,times:p}),f=()=>{l=!1,m.cancel()},g=()=>{l=!0,oo.update(f),i(),u()};m.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(c,r)),o&&o(),g())};return{then:(t,e)=>s.then(t,e),attachTimeline:t=>(m.timeline=t,m.onfinish=null,no),get time(){return Bo(m.currentTime||0)},set time(t){m.currentTime=Oo(t)},get speed(){return m.playbackRate},set speed(t){m.playbackRate=t},get duration(){return Bo(d)},play:()=>{a||(m.play(),ro(f))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;const{currentTime:e}=m;if(e){const n=mi({...r,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}g()},complete:()=>{l||m.finish()},cancel:g}}const yi={type:"spring",stiffness:500,damping:25,restSpeed:10},_i={type:"keyframes",duration:.8},bi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xi=(t,{keyframes:e})=>e.length>2?_i:qe.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:yi:bi,wi=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Mr.test(e)&&"0"!==e||e.startsWith("url("))),Ei=new Set(["brightness","contrast","saturate","opacity"]);function Pi(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[o]=n.match(mn)||[];if(!o)return t;const r=n.replace(o,"");let i=Ei.has(e)?1:0;return o!==n&&(i*=100),e+"("+i+r+")"}const Ti=/([a-z-]*)\(.*?\)/g,Si={...Mr,getAnimatableNone:t=>{const e=t.match(Ti);return e?e.map(Pi).join(" "):t}},Ci={...Sn,color:wr,backgroundColor:wr,outlineColor:wr,fill:wr,stroke:wr,borderColor:wr,borderTopColor:wr,borderRightColor:wr,borderBottomColor:wr,borderLeftColor:wr,filter:Si,WebkitFilter:Si},Ai=t=>Ci[t];function ki(t,e){let n=Ai(t);return n!==Si&&(n=Mr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ri=t=>/^0[^.\s]+$/.test(t);function Vi(t){return"number"==typeof t?0===t:null!==t?"none"===t||"0"===t||Ri(t):void 0}function Fi(t,e){return t[e]||t.default||t}const Mi=(t,e,n,o={})=>r=>{const i=Fi(o,t)||{},s=i.delay||o.delay||0;let{elapsed:a=0}=o;a-=Oo(s);const l=function(t,e,n,o){const r=wi(e,n);let i;i=Array.isArray(n)?[...n]:[null,n];const s=void 0!==o.from?o.from:t.get();let a;const l=[];for(let t=0;t<i.length;t++)null===i[t]&&(i[t]=0===t?s:i[t-1]),Vi(i[t])&&l.push(t),"string"==typeof i[t]&&"none"!==i[t]&&"0"!==i[t]&&(a=i[t]);if(r&&l.length&&a)for(let t=0;t<l.length;t++)i[l[t]]=ki(e,a);return i}(e,t,n,i),u=l[0],c=l[l.length-1],d=wi(t,u),h=wi(t,c);jo(d===h,`You are trying to animate ${t} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:t=>{e.set(t),i.onUpdate&&i.onUpdate(t)},onComplete:()=>{r(),i.onComplete&&i.onComplete()}};if(function({when:t,delay:e,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(i)||(p={...p,...xi(t,p)}),p.duration&&(p.duration=Oo(p.duration)),p.repeatDelay&&(p.repeatDelay=Oo(p.repeatDelay)),!d||!h||No||!1===i.type||Ee)return function({keyframes:t,delay:e,onUpdate:n,onComplete:o}){const r=()=>(n&&n(t[t.length-1]),o&&o(),{time:0,speed:1,duration:0,play:no,pause:no,stop:no,then:t=>(t(),Promise.resolve()),cancel:no,complete:no});return e?mi({keyframes:[0,1],duration:0,delay:e,onComplete:r}):r()}(p);if(!o.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=vi(e,t,p);if(n)return n}return mi(p)};function Di(t){return Boolean(Je(t)&&t.add)}const ji=t=>/^\-?\d*\.?\d+$/.test(t);function Li(t,e){-1===t.indexOf(e)&&t.push(e)}function Oi(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Bi{constructor(){this.subscriptions=[]}add(t){return Li(this.subscriptions,t),()=>Oi(this.subscriptions,t)}notify(t,e,n){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](t,e,n);else for(let r=0;r<o;r++){const o=this.subscriptions[r];o&&o(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ni=new Set;function Ui(t,e,n){t||Ni.has(e)||(console.warn(e),n&&console.warn(n),Ni.add(e))}class zi{constructor(t,e={}){var n;this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=li.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=li.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&Ui(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Bi);const n=this.events[t].add(e);return"change"===t?()=>{n(),oo.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=li.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Zr(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ii(t,e){return new zi(t,e)}const Wi=t=>e=>e.test(t),Zi=[cn,xn,bn,_n,En,wn,{test:t=>"auto"===t,parse:t=>t}],Gi=t=>Zi.find(Wi(t)),Hi=[...Zi,wr,Mr];function $i(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ii(n))}function Ki(t,e){if(!e)return;return(e[t]||e.default||e).from}function Xi({protectedKeys:t,needsAnimating:e},n){const o=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,o}function Yi(t,e){const n=t.get();if(!Array.isArray(e))return n!==e;for(let t=0;t<e.length;t++)if(e[t]!==n)return!0}function qi(t,e,{delay:n=0,transitionOverride:o,type:r}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");o&&(i=o);const u=[],c=r&&t.animationState&&t.animationState.getState()[r];for(const e in a){const o=t.getValue(e),r=a[e];if(!o||void 0===r||c&&Xi(c,e))continue;const s={delay:n,elapsed:0,...Fi(i||{},e)};if(window.HandoffAppearAnimations){const n=t.getProps()[we];if(n){const t=window.HandoffAppearAnimations(n,e,o,oo);null!==t&&(s.elapsed=t,s.isHandoff=!0)}}let d=!s.isHandoff&&!Yi(o,r);if("spring"===s.type&&(o.getVelocity()||s.velocity)&&(d=!1),o.animation&&(d=!1),d)continue;o.start(Mi(e,o,r,t.shouldReduceMotion&&qe.has(e)?{type:!1}:s));const h=o.animation;Di(l)&&(l.add(e),h.then((()=>l.remove(e)))),u.push(h)}return s&&Promise.all(u).then((()=>{s&&function(t,e){const n=Do(t,e);let{transitionEnd:o={},transition:r={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...o};for(const e in i)$i(t,e,Qn(i[e]))}(t,s)})),u}function Qi(t,e,n={}){const o=Do(t,e,n.custom);let{transition:r=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(r=n.transitionOverride);const i=o?()=>Promise.all(qi(t,o,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(o=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=r;return function(t,e,n=0,o=0,r=1,i){const s=[],a=(t.variantChildren.size-1)*o,l=1===r?(t=0)=>t*o:(t=0)=>a-t*o;return Array.from(t.variantChildren).sort(Ji).forEach(((t,o)=>{t.notify("AnimationStart",e),s.push(Qi(t,e,{...i,delay:n+l(o)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,i+o,s,a,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[t,e]="beforeChildren"===a?[i,s]:[s,i];return t().then((()=>e()))}return Promise.all([i(),s(n.delay)])}function Ji(t,e){return t.sortNodePosition(e)}const ts=[...Me].reverse(),es=Me.length;function ns(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let o;if(t.notify("AnimationStart",e),Array.isArray(e)){const r=e.map((e=>Qi(t,e,n)));o=Promise.all(r)}else if("string"==typeof e)o=Qi(t,e,n);else{const r="function"==typeof e?Do(t,e,n.custom):e;o=Promise.all(qi(t,r,n))}return o.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function os(t){let e=ns(t);const n={animate:is(!0),whileInView:is(),whileHover:is(),whileTap:is(),whileDrag:is(),whileFocus:is(),exit:is()};let o=!0;const r=(e,n)=>{const o=Do(t,n);if(o){const{transition:t,transitionEnd:n,...r}=o;e={...e,...r,...n}}return e};function i(i,s){const a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set;let d={},h=1/0;for(let e=0;e<es;e++){const p=ts[e],m=n[p],f=void 0!==a[p]?a[p]:l[p],g=Ve(f),v=p===s?m.isActive:null;!1===v&&(h=e);let y=f===l[p]&&f!==a[p]&&g;if(y&&o&&t.manuallyAnimateOnMount&&(y=!1),m.protectedKeys={...d},!m.isActive&&null===v||!f&&!m.prevProp||Fe(f)||"boolean"==typeof f)continue;let _=rs(m.prevProp,f)||p===s&&m.isActive&&!y&&g||e>h&&g,b=!1;const x=Array.isArray(f)?f:[f];let w=x.reduce(r,{});!1===v&&(w={});const{prevResolvedValues:E={}}=m,P={...E,...w},T=t=>{_=!0,c.has(t)&&(b=!0,c.delete(t)),m.needsAnimating[t]=!0};for(const t in P){const e=w[t],n=E[t];if(d.hasOwnProperty(t))continue;let o=!1;o=Yn(e)&&Yn(n)?!Mo(e,n):e!==n,o?void 0!==e?T(t):c.add(t):void 0!==e&&c.has(t)?T(t):m.protectedKeys[t]=!0}m.prevProp=f,m.prevResolvedValues=w,m.isActive&&(d={...d,...w}),o&&t.blockInitialAnimation&&(_=!1),!_||y&&!b||u.push(...x.map((t=>({animation:t,options:{type:p,...i}}))))}if(c.size){const e={};c.forEach((n=>{const o=t.getBaseTarget(n);void 0!==o&&(e[n]=o)})),u.push({animation:e})}let p=Boolean(u.length);return!o||!1!==a.initial&&a.initial!==a.animate||t.manuallyAnimateOnMount||(p=!1),o=!1,p?e(u):Promise.resolve()}return{animateChanges:i,setActive:function(e,o,r){var s;if(n[e].isActive===o)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,o)})),n[e].isActive=o;const a=i(r,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function rs(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Mo(e,t)}function is(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let ss=0;const as={animation:{Feature:class extends wo{constructor(t){super(t),t.animationState||(t.animationState=os(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Fe(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends wo{constructor(){super(...arguments),this.id=ss++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&r.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},ls=(t,e)=>Math.abs(t-e);class us{constructor(t,e,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=hs(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=ls(t.x,e.x),o=ls(t.y,e.y);return Math.sqrt(n**2+o**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:o}=t,{timestamp:r}=io;this.history.push({...o,timestamp:r});const{onStart:i,onMove:s}=this.handlers;e||(i&&i(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=cs(e,this.transformPagePoint),oo.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:o,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=hs("pointercancel"===t.type?this.lastMoveEventInfo:cs(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),o&&o(t,i)},!co(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=n,this.contextWindow=o||window;const i=cs(ho(t),this.transformPagePoint),{point:s}=i,{timestamp:a}=io;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,hs(i,this.history)),this.removeListeners=go(mo(this.contextWindow,"pointermove",this.handlePointerMove),mo(this.contextWindow,"pointerup",this.handlePointerUp),mo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ro(this.updatePoint)}}function cs(t,e){return e?{point:e(t.point)}:t}function ds(t,e){return{x:t.x-e.x,y:t.y-e.y}}function hs({point:t},e){return{point:t,delta:ds(t,ms(e)),offset:ds(t,ps(e)),velocity:fs(e,.1)}}function ps(t){return t[0]}function ms(t){return t[t.length-1]}function fs(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,o=null;const r=ms(t);for(;n>=0&&(o=t[n],!(r.timestamp-o.timestamp>Oo(e)));)n--;if(!o)return{x:0,y:0};const i=Bo(r.timestamp-o.timestamp);if(0===i)return{x:0,y:0};const s={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function gs(t){return t.max-t.min}function vs(t,e=0,n=.01){return Math.abs(t-e)<=n}function ys(t,e,n,o=.5){t.origin=o,t.originPoint=cr(e.min,e.max,t.origin),t.scale=gs(n)/gs(e),(vs(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=cr(n.min,n.max,t.origin)-t.originPoint,(vs(t.translate)||isNaN(t.translate))&&(t.translate=0)}function _s(t,e,n,o){ys(t.x,e.x,n.x,o?o.originX:void 0),ys(t.y,e.y,n.y,o?o.originY:void 0)}function bs(t,e,n){t.min=n.min+e.min,t.max=t.min+gs(e)}function xs(t,e,n){t.min=e.min-n.min,t.max=t.min+gs(e)}function ws(t,e,n){xs(t.x,e.x,n.x),xs(t.y,e.y,n.y)}function Es(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Ps(t,e){let n=e.min-t.min,o=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,o]=[o,n]),{min:n,max:o}}const Ts=.35;function Ss(t,e,n){return{min:Cs(t,e),max:Cs(t,n)}}function Cs(t,e){return"number"==typeof t?t:t[e]||0}const As=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),ks=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Rs(t){return[t("x"),t("y")]}function Vs({top:t,left:e,right:n,bottom:o}){return{x:{min:e,max:n},y:{min:t,max:o}}}function Fs(t){return void 0===t||1===t}function Ms({scale:t,scaleX:e,scaleY:n}){return!Fs(t)||!Fs(e)||!Fs(n)}function Ds(t){return Ms(t)||js(t)||t.z||t.rotate||t.rotateX||t.rotateY}function js(t){return Ls(t.x)||Ls(t.y)}function Ls(t){return t&&"0%"!==t}function Os(t,e,n){return n+e*(t-n)}function Bs(t,e,n,o,r){return void 0!==r&&(t=Os(t,r,o)),Os(t,n,o)+e}function Ns(t,e=0,n=1,o,r){t.min=Bs(t.min,e,n,o,r),t.max=Bs(t.max,e,n,o,r)}function Us(t,{x:e,y:n}){Ns(t.x,e.translate,e.scale,e.originPoint),Ns(t.y,n.translate,n.scale,n.originPoint)}function zs(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Is(t,e){t.min=t.min+e,t.max=t.max+e}function Ws(t,e,[n,o,r]){const i=void 0!==e[r]?e[r]:.5,s=cr(t.min,t.max,i);Ns(t,e[n],e[o],s,e.scale)}const Zs=["x","scaleX","originX"],Gs=["y","scaleY","originY"];function Hs(t,e){Ws(t.x,e,Zs),Ws(t.y,e,Gs)}function $s(t,e){return Vs(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(t.getBoundingClientRect(),e))}const Ks=({current:t})=>t?t.ownerDocument.defaultView:null,Xs=new WeakMap;class Ys{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ks(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new us(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ho(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:o,onDragStart:r}=this.getProps();if(n&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=bo(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Rs((t=>{let e=this.getAxisMotionValue(t).get()||0;if(bn.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const o=n.layout.layoutBox[t];if(o){e=gs(o)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),r&&oo.update((()=>r(t,e)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:o,onDirectionLock:r,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=e;if(o&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),i&&i(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>Rs((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,contextWindow:Ks(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=e;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&oo.update((()=>r(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:o}=this.getProps();if(!n||!qs(t,o,this.currentDirection))return;const r=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=function(t,{min:e,max:n},o){return void 0!==e&&t<e?t=o?cr(e,t,o.min):Math.max(t,e):void 0!==n&&t>n&&(t=o?cr(n,t,o.max):Math.min(t,n)),t}(i,this.constraints[t],this.elastic[t])),r.set(i)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&Re(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!o)&&function(t,{top:e,left:n,bottom:o,right:r}){return{x:Es(t.x,n,r),y:Es(t.y,e,o)}}(o.layoutBox,e),this.elastic=function(t=Ts){return!1===t?t=0:!0===t&&(t=Ts),{x:Ss(t,"left","right"),y:Ss(t,"top","bottom")}}(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Rs((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(o.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Re(t))return!1;const n=t.current;Lo(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const r=function(t,e,n){const o=$s(t,n),{scroll:r}=e;return r&&(Is(o.x,r.offset.x),Is(o.y,r.offset.y)),o}(n,o.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:Ps(t.x,e.x),y:Ps(t.y,e.y)}}(o.layout.layoutBox,r);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(i));this.hasMutatedConstraints=!!t,t&&(i=Vs(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:o,dragTransition:r,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Rs((s=>{if(!qs(s,e,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const u=o?200:1e6,c=o?40:1e7,d={type:"inertia",velocity:n?t[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(Mi(t,n,0,e))}stopAnimation(){Rs((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){Rs((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[e];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Rs((e=>{const{drag:n}=this.getProps();if(!qs(e,n,this.currentDirection))return;const{projection:o}=this.visualElement,r=this.getAxisMotionValue(e);if(o&&o.layout){const{min:n,max:i}=o.layout.layoutBox[e];r.set(t[e]-cr(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Re(e)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Rs((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();o[t]=function(t,e){let n=.5;const o=gs(t),r=gs(e);return r>o?n=ur(e.min,e.max-o,t.min):o>r&&(n=ur(t.min,t.max-r,e.min)),un(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Rs((e=>{if(!qs(e,t,null))return;const n=this.getAxisMotionValue(e),{min:r,max:i}=this.constraints[e];n.set(cr(r,i,o[e]))}))}addListeners(){if(!this.visualElement.current)return;Xs.set(this.visualElement,this);const t=mo(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();Re(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const r=uo(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Rs((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{r(),t(),o(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:r=!1,dragElastic:i=Ts,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:o,dragConstraints:r,dragElastic:i,dragMomentum:s}}}function qs(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Qs=t=>(e,n)=>{t&&oo.update((()=>t(e,n)))};const Js={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ta(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ea={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!xn.test(t))return t;t=parseFloat(t)}return`${ta(t,e.target.x)}% ${ta(t,e.target.y)}%`}},na={correct:(t,{treeScale:e,projectionDelta:n})=>{const o=t,r=Mr.parse(t);if(r.length>5)return o;const i=Mr.createTransformer(t),s="number"!=typeof r[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;r[0+s]/=a,r[1+s]/=l;const u=cr(a,l,.5);return"number"==typeof r[2+s]&&(r[2+s]/=u),"number"==typeof r[3+s]&&(r[3+s]/=u),i(r)}};class oa extends t.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:o}=this.props,{projection:r}=t;var i;i=ia,Object.assign(Xe,i),r&&(e.group&&e.group.add(r),n&&n.register&&o&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",(()=>{this.safeToRemove()})),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Js.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:o,isPresent:r}=this.props,i=n.projection;return i?(i.isPresent=r,o||t.layoutDependency!==e||void 0===e?i.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?i.promote():i.relegate()||oo.postRender((()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ae.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ra(e){const[n,o]=function(){const e=t.useContext(ve);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=e,i=t.useId();return t.useEffect((()=>r(i)),[]),!n&&o?[!1,()=>o&&o(i)]:[!0]}(),r=t.useContext(ze);return t.createElement(oa,{...e,layoutGroup:r,switchLayoutGroup:t.useContext(Ie),isPresent:n,safeToRemove:o})}const ia={borderRadius:{...ea,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ea,borderTopRightRadius:ea,borderBottomLeftRadius:ea,borderBottomRightRadius:ea,boxShadow:na},sa=["TopLeft","TopRight","BottomLeft","BottomRight"],aa=sa.length,la=t=>"string"==typeof t?parseFloat(t):t,ua=t=>"number"==typeof t||xn.test(t);function ca(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const da=pa(0,.5,nr),ha=pa(.5,.95,no);function pa(t,e,n){return o=>o<t?0:o>e?1:n(ur(t,e,o))}function ma(t,e){t.min=e.min,t.max=e.max}function fa(t,e){ma(t.x,e.x),ma(t.y,e.y)}function ga(t,e,n,o,r){return t=Os(t-=e,1/n,o),void 0!==r&&(t=Os(t,1/r,o)),t}function va(t,e,[n,o,r],i,s){!function(t,e=0,n=1,o=.5,r,i=t,s=t){bn.test(e)&&(e=parseFloat(e),e=cr(s.min,s.max,e/100)-s.min);if("number"!=typeof e)return;let a=cr(i.min,i.max,o);t===i&&(a-=e),t.min=ga(t.min,e,n,a,r),t.max=ga(t.max,e,n,a,r)}(t,e[n],e[o],e[r],e.scale,i,s)}const ya=["x","scaleX","originX"],_a=["y","scaleY","originY"];function ba(t,e,n,o){va(t.x,e,ya,n?n.x:void 0,o?o.x:void 0),va(t.y,e,_a,n?n.y:void 0,o?o.y:void 0)}function xa(t){return 0===t.translate&&1===t.scale}function wa(t){return xa(t.x)&&xa(t.y)}function Ea(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Pa(t){return gs(t.x)/gs(t.y)}class Ta{constructor(){this.members=[]}add(t){Li(this.members,t),t.scheduleRender()}remove(t){if(Oi(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;!1===o&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Sa(t,e,n){let o="";const r=t.x.translate/e.x,i=t.y.translate/e.y;if((r||i)&&(o=`translate3d(${r}px, ${i}px, 0) `),1===e.x&&1===e.y||(o+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:r}=n;t&&(o+=`rotate(${t}deg) `),e&&(o+=`rotateX(${e}deg) `),r&&(o+=`rotateY(${r}deg) `)}const s=t.x.scale*e.x,a=t.y.scale*e.y;return 1===s&&1===a||(o+=`scale(${s}, ${a})`),o||"none"}const Ca=(t,e)=>t.depth-e.depth;class Aa{constructor(){this.children=[],this.isDirty=!1}add(t){Li(this.children,t),this.isDirty=!0}remove(t){Oi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ca),this.isDirty=!1,this.children.forEach(t)}}const ka=["","X","Y","Z"],Ra={visibility:"hidden"};let Va=0;const Fa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ma({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=Va++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;this.projectionUpdateScheduled=!1,Fa.totalNodes=Fa.resolvedTargetDeltas=Fa.recalculatedProjection=0,this.nodes.forEach(La),this.nodes.forEach(Wa),this.nodes.forEach(Za),this.nodes.forEach(Oa),t=Fa,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Aa)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Bi),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var o;this.isSVG=(o=e)instanceof SVGElement&&"svg"!==o.tagName,this.instance=e;const{layoutId:r,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),t){let n;const o=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=li.now(),o=({timestamp:r})=>{const i=r-n;i>=e&&(ro(o),t(i-e))};return oo.read(o,!0),()=>ro(o)}(o,250),Js.hasAnimatedSinceResize&&(Js.hasAnimatedSinceResize=!1,this.nodes.forEach(Ia))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||i)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:o})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||s.getDefaultTransition()||Ya,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Ea(this.targetLayout,o)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Fi(r,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||Ia(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ro(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ga),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Na);this.isUpdating||this.nodes.forEach(Ua),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(za),this.nodes.forEach(Da),this.nodes.forEach(ja),this.clearAllSnapshots();const t=li.now();io.delta=un(0,1e3/60,t-io.timestamp),io.timestamp=t,io.isProcessing=!0,so.update.process(io),so.preRender.process(io),so.render.process(io),io.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ae.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(Ba),this.sharedNodes.forEach(Ha)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,oo.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){oo.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ks(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:o(this.instance),offset:n(this.instance)})}resetTransform(){if(!r)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!wa(this.projectionDelta),n=this.getTransformTemplate(),o=n?n(this.latestValues,""):void 0,i=o!==this.prevTransformTemplateValue;t&&(e||Ds(this.latestValues)||i)&&(r(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var o;return t&&(n=this.removeTransform(n)),Ja((o=n).x),Ja(o.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return ks();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Is(e.x,n.offset.x),Is(e.y,n.offset.y)),e}removeElementScroll(t){const e=ks();fa(e,t);for(let n=0;n<this.path.length;n++){const o=this.path[n],{scroll:r,options:i}=o;if(o!==this.root&&r&&i.layoutScroll){if(r.isRoot){fa(e,t);const{scroll:n}=this.root;n&&(Is(e.x,-n.offset.x),Is(e.y,-n.offset.y))}Is(e.x,r.offset.x),Is(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){const n=ks();fa(n,t);for(let t=0;t<this.path.length;t++){const o=this.path[t];!e&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Hs(n,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),Ds(o.latestValues)&&Hs(n,o.latestValues)}return Ds(this.latestValues)&&Hs(n,this.latestValues),n}removeTransform(t){const e=ks();fa(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!Ds(n.latestValues))continue;Ms(n.latestValues)&&n.updateSnapshot();const o=ks();fa(o,n.measurePageBox()),ba(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,o)}return Ds(this.latestValues)&&ba(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==io.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const o=Boolean(this.resumingFrom)||this!==n;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=io.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ks(),this.relativeTargetOrigin=ks(),ws(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),fa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target=ks(),this.targetWithTransforms=ks()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,bs(s.x,a.x,l.x),bs(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):fa(this.target,this.layout.layoutBox),Us(this.target,this.targetDelta)):fa(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ks(),this.relativeTargetOrigin=ks(),ws(this.relativeTargetOrigin,this.target,t.target),fa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Fa.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ms(this.parent.latestValues)&&!js(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let o=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(o=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===io.timestamp&&(o=!1),o)return;const{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!i)return;fa(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,o=!1){const r=n.length;if(!r)return;let i,s;e.x=e.y=1;for(let a=0;a<r;a++){i=n[a],s=i.projectionDelta;const r=i.instance;r&&r.style&&"contents"===r.style.display||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Hs(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,Us(t,s)),o&&Ds(i.latestValues)&&Hs(t,i.latestValues))}e.x=zs(e.x),e.y=zs(e.y)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=ks());const{target:l}=e;if(!l)return void(this.projectionTransform&&(this.projectionDelta=As(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=As(),this.projectionDeltaWithTransform=As());const u=this.projectionTransform;_s(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Sa(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Fa.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){const n=this.snapshot,o=n?n.latestValues:{},r={...this.latestValues},i=As();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const s=ks(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(Xa));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,h,p,m,f,g;$a(i.x,t.x,n),$a(i.y,t.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ws(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=s,g=n,Ka(p.x,m.x,f.x,g),Ka(p.y,m.y,f.y,g),d&&(l=this.relativeTarget,h=d,l.x.min===h.x.min&&l.x.max===h.x.max&&l.y.min===h.y.min&&l.y.max===h.y.max)&&(this.isProjectionDirty=!1),d||(d=ks()),fa(d,this.relativeTarget)),a&&(this.animationValues=r,function(t,e,n,o,r,i){r?(t.opacity=cr(0,void 0!==n.opacity?n.opacity:1,da(o)),t.opacityExit=cr(void 0!==e.opacity?e.opacity:1,0,ha(o))):i&&(t.opacity=cr(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,o));for(let r=0;r<aa;r++){const i=`border${sa[r]}Radius`;let s=ca(e,i),a=ca(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||ua(s)===ua(a)?(t[i]=Math.max(cr(la(s),la(a),o),0),(bn.test(a)||bn.test(s))&&(t[i]+="%")):t[i]=a)}(e.rotate||n.rotate)&&(t.rotate=cr(e.rotate||0,n.rotate||0,o))}(r,o,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ro(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=oo.update((()=>{Js.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const o=Je(t)?t:Ii(t);return o.start(Mi("",o,e,n)),o.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:o,latestValues:r}=t;if(e&&n&&o){if(this!==t&&this.layout&&o&&tl(this.options.animationType,this.layout.layoutBox,o.layoutBox)){n=this.target||ks();const e=gs(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const o=gs(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+o}fa(e,n),Hs(e,r),_s(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Ta);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const o=this.getStack();o&&o.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const o={};for(let e=0;e<ka.length;e++){const r="rotate"+ka[e];n[r]&&(o[r]=n[r],t.setStaticValue(r,0))}t.render();for(const e in o)t.setStaticValue(e,o[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ra;const o={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=Jn(null==t?void 0:t.pointerEvents)||"",o.transform=r?r(this.latestValues,""):"none",o;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Jn(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!Ds(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),o.transform=Sa(this.projectionDeltaWithTransform,this.treeScale,s),r&&(o.transform=r(s,o.transform));const{x:a,y:l}=this.projectionDelta;o.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?o.opacity=i===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:o.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const t in Xe){if(void 0===s[t])continue;const{correct:e,applyTo:n}=Xe[t],r="none"===o.transform?s[t]:e(s[t],i);if(n){const t=n.length;for(let e=0;e<t;e++)o[n[e]]=r}else o[t]=r}return this.options.layoutId&&(o.pointerEvents=i===this?Jn(null==t?void 0:t.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Na),this.root.sharedNodes.clear()}}}function Da(t){t.updateLayout()}function ja(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:o}=t.layout,{animationType:r}=t.options,i=n.source!==t.layout.source;"size"===r?Rs((t=>{const o=i?n.measuredBox[t]:n.layoutBox[t],r=gs(o);o.min=e[t].min,o.max=o.min+r})):tl(r,n.layoutBox,e)&&Rs((o=>{const r=i?n.measuredBox[o]:n.layoutBox[o],s=gs(e[o]);r.max=r.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[o].max=t.relativeTarget[o].min+s)}));const s=As();_s(s,e,n.layoutBox);const a=As();i?_s(a,t.applyTransform(o,!0),n.measuredBox):_s(a,e,n.layoutBox);const l=!wa(s);let u=!1;if(!t.resumeFrom){const o=t.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:r,layout:i}=o;if(r&&i){const s=ks();ws(s,n.layoutBox,r.layoutBox);const a=ks();ws(a,e,i.layoutBox),Ea(s,a)||(u=!0),o.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=o)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function La(t){Fa.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Oa(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ba(t){t.clearSnapshot()}function Na(t){t.clearMeasurements()}function Ua(t){t.isLayoutDirty=!1}function za(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ia(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Wa(t){t.resolveTargetDelta()}function Za(t){t.calcProjection()}function Ga(t){t.resetRotation()}function Ha(t){t.removeLeadSnapshot()}function $a(t,e,n){t.translate=cr(e.translate,0,n),t.scale=cr(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ka(t,e,n,o){t.min=cr(e.min,n.min,o),t.max=cr(e.max,n.max,o)}function Xa(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Ya={duration:.45,ease:[.4,0,.1,1]},qa=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Qa=qa("applewebkit/")&&!qa("chrome/")?Math.round:no;function Ja(t){t.min=Qa(t.min),t.max=Qa(t.max)}function tl(t,e,n){return"position"===t||"preserve-aspect"===t&&!vs(Pa(e),Pa(n),.2)}const el=Ma({attachResizeListener:(t,e)=>uo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nl={current:void 0},ol=Ma({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nl.current){const t=new el({});t.mount(window),t.setOptions({layoutScroll:!0}),nl.current=t}return nl.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),rl={pan:{Feature:class extends wo{constructor(){super(...arguments),this.removePointerDownListener=no}onPointerDown(t){this.session=new us(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ks(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:Qs(t),onStart:Qs(e),onMove:n,onEnd:(t,e)=>{delete this.session,o&&oo.update((()=>o(t,e)))}}}mount(){this.removePointerDownListener=mo(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends wo{constructor(t){super(t),this.removeGroupControls=no,this.removeListeners=no,this.controls=new Ys(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||no}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ol,MeasureLayout:ra}},il=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const sl=4;function al(t,e,n=1){Lo(n<=sl,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[o,r]=function(t){const e=il.exec(t);if(!e)return[,];const[,n,o]=e;return[n,o]}(t);if(!o)return;const i=window.getComputedStyle(e).getPropertyValue(o);if(i){const t=i.trim();return ji(t)?parseFloat(t):t}return sn(r)?al(r,e,n+1):r}const ll=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ul=t=>ll.has(t),cl=t=>t===cn||t===xn,dl=(t,e)=>parseFloat(t.split(", ")[e]),hl=(t,e)=>(n,{transform:o})=>{if("none"===o||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/);if(r)return dl(r[1],e);{const e=o.match(/^matrix\((.+)\)$/);return e?dl(e[1],t):0}},pl=new Set(["x","y","z"]),ml=Ye.filter((t=>!pl.has(t)));const fl={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:hl(4,13),y:hl(5,14)};fl.translateX=fl.x,fl.translateY=fl.y;const gl=(t,e,n={},o={})=>{e={...e},o={...o};const r=Object.keys(e).filter(ul);let i=[],s=!1;const a=[];if(r.forEach((r=>{const l=t.getValue(r);if(!t.hasValue(r))return;let u=n[r],c=Gi(u);const d=e[r];let h;if(Yn(d)){const t=d.length,e=null===d[0]?1:0;u=d[e],c=Gi(u);for(let n=e;n<t&&null!==d[n];n++)h?Lo(Gi(d[n])===h,"All keyframes must be of the same type"):(h=Gi(d[n]),Lo(h===c||cl(c)&&cl(h),"Keyframes must be of the same dimension as the current value"))}else h=Gi(d);if(c!==h)if(cl(c)&&cl(h)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof d?e[r]=parseFloat(d):Array.isArray(d)&&h===xn&&(e[r]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==h?void 0:h.transform)&&(0===u||0===d)?0===u?l.set(h.transform(u)):e[r]=c.transform(d):(s||(i=function(t){const e=[];return ml.forEach((n=>{const o=t.getValue(n);void 0!==o&&(e.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),s=!0),a.push(r),o[r]=void 0!==o[r]?o[r]:e[r],l.jump(d))})),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,r=((t,e,n)=>{const o=e.measureViewportBox(),r=e.current,i=getComputedStyle(r),{display:s}=i,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=fl[t](o,i)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const o=e.getValue(n);o&&o.jump(a[n]),t[n]=fl[n](l,i)})),t})(e,t,a);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),ye&&null!==n&&window.scrollTo({top:n}),{target:r,transitionEnd:o}}return{target:e,transitionEnd:o}};function vl(t,e,n,o){return(t=>Object.keys(t).some(ul))(e)?gl(t,e,n,o):{target:e,transitionEnd:o}}const yl=(t,e,n,o)=>{const r=function(t,{...e},n){const o=t.current;if(!(o instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!sn(e))return;const n=al(e,o);n&&t.set(n)}));for(const t in e){const r=e[t];if(!sn(r))continue;const i=al(r,o);i&&(e[t]=i,n||(n={}),void 0===n[t]&&(n[t]=r))}return{target:e,transitionEnd:n}}(t,e,o);return vl(t,e=r.target,n,o=r.transitionEnd)},_l={current:null},bl={current:!1};const xl=new WeakMap,wl=Object.keys(Ue),El=wl.length,Pl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Tl=De.length;class Sl{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:o,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>oo.render(this.render,!1,!0);const{latestValues:s,renderState:a}=r;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.isControllingVariants=je(e),this.isVariantNode=Le(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(const t in u){const e=u[t];void 0!==s[t]&&Je(e)&&(e.set(s[t],!1),Di(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,xl.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),bl.current||function(){if(bl.current=!0,ye)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>_l.current=t.matches;t.addListener(e),e()}else _l.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||_l.current),"production"!==process.env.NODE_ENV&&Ui(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xl.delete(this.current),this.projection&&this.projection.unmount(),ro(this.notifyUpdate),ro(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=qe.has(t),o=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&oo.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{o(),r()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,o,r){let i,s;if("production"!==process.env.NODE_ENV&&o&&n){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?jo(!1,t):Lo(!1,t)}for(let t=0;t<El;t++){const n=wl[t],{isEnabled:o,Feature:r,ProjectionNode:a,MeasureLayout:l}=Ue[n];a&&(i=a),o(e)&&(!this.features[n]&&r&&(this.features[n]=new r(this)),l&&(s=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:o,dragConstraints:s,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(o)||s&&Re(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ks()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Pl.length;e++){const n=Pl[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const o=t["on"+n];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=function(t,e,n){const{willChange:o}=e;for(const r in e){const i=e[r],s=n[r];if(Je(i))t.addValue(r,i),Di(o)&&o.add(r),"development"===process.env.NODE_ENV&&Ui("11.0.8"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 11.0.8 may not work as expected.`);else if(Je(s))t.addValue(r,Ii(i,{owner:t})),Di(o)&&o.remove(r);else if(s!==i)if(t.hasValue(r)){const e=t.getValue(r);!e.hasAnimated&&e.set(i)}else{const e=t.getStaticValue(r);t.addValue(r,Ii(void 0!==e?e:i,{owner:t}))}}for(const o in n)void 0===e[o]&&t.removeValue(o);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<Tl;t++){const n=De[t],o=this.props[n];(Ve(o)||!1===o)&&(e[n]=o)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Ii(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,o="string"==typeof n||"object"==typeof n?null===(e=Xn(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==o)return o;const r=this.getBaseTargetFromProps(this.props,t);return void 0===r||Je(r)?void 0!==this.initialValues[t]&&void 0===o?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new Bi),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Cl extends Sl{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},o){const r=function(t,e,n){const o={};for(const r in t){const t=Ki(r,e);if(void 0!==t)o[r]=t;else{const t=n.getValue(r);t&&(o[r]=t.get())}}return o}(n,t||{},this);if(o){!function(t,e,n){var o,r;const i=Object.keys(e).filter((e=>!t.hasValue(e))),s=i.length;var a;if(s)for(let l=0;l<s;l++){const s=i[l],u=e[s];let c=null;Array.isArray(u)&&(c=u[0]),null===c&&(c=null!==(r=null!==(o=n[s])&&void 0!==o?o:t.readValue(s))&&void 0!==r?r:e[s]),null!=c&&("string"==typeof c&&(ji(c)||Ri(c))?c=parseFloat(c):(a=c,!Hi.find(Wi(a))&&Mr.test(u)&&(c=ki(s,u))),t.addValue(s,Ii(c,{owner:t})),void 0===n[s]&&(n[s]=c),null!==c&&t.setBaseTarget(s,c))}}(this,n,r);const t=yl(this,n,r,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class Al extends Cl{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(qe.has(e)){const t=Ai(e);return t&&t.default||0}{const o=(n=t,window.getComputedStyle(n)),r=(on(e)?o.getPropertyValue(e):o[e])||0;return"string"==typeof r?r.trim():r}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return $s(t,e)}build(t,e,n,o){Cn(t,e,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,e){return $n(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Je(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,o){Zn(t,e,n,o)}}class kl extends Cl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(qe.has(e)){const t=Ai(e);return t&&t.default||0}return e=Gn.has(e)?e:xe(e),t.getAttribute(e)}measureInstanceViewportBox(){return ks()}scrapeMotionValuesFromProps(t,e){return Kn(t,e)}build(t,e,n,o){Nn(t,e,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,e,n,o){Hn(t,e,0,o)}mount(t){this.isSVGTag=zn(t.tagName),super.mount(t)}}const Rl=(t,e)=>Ke(t)?new kl(e,{enableHardwareAcceleration:!1}):new Al(e,{enableHardwareAcceleration:!0}),Vl={...as,...Fo,...rl,...{layout:{ProjectionNode:ol,MeasureLayout:ra}}},Fl=He(((t,e)=>function(t,{forwardMotionProps:e=!1},n,o){return{...Ke(t)?ao:lo,preloadedFeatures:n,useRender:Wn(e),createVisualElement:o,Component:t}}(t,e,Vl,Rl)));var Ml={container:"textField-module_container__dwME5",label:"textField-module_label__Pb0Yj",input:"textField-module_input__R8QTX","input--prefix":"textField-module_input--prefix__Fhag6",prefix:"textField-module_prefix__qF3td",inputDescription:"textField-module_inputDescription__nc-XC","container--error":"textField-module_container--error__CJ8JR",error:"textField-module_error__OWiII",helper:"textField-module_helper__arACk",rightContent:"textField-module_rightContent__6xW-l",leftContent:"textField-module_leftContent__XrivE","input--focus":"textField-module_input--focus__ngCQF","input--hover":"textField-module_input--hover__wo5JR"};l(".textField-module_container__dwME5 {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.textField-module_label__Pb0Yj {\n position: absolute;\n z-index: 3;\n left: var(--product-spacing-5);\n color: var(--product-greyscale-60);\n pointer-events: none;\n}\n\n.textField-module_input__R8QTX {\n all: unset;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.70rem;\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n}\n\n.textField-module_input--prefix__Fhag6 {\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.70rem;\n padding-left: 2rem;\n}\n\n.textField-module_prefix__qF3td {\n position: absolute;\n left: var(--product-spacing-5);\n top: 64%;\n transform: translateY(-50%);\n z-index: 2;\n font-size: 1.125rem;\n}\n\n.textField-module_inputDescription__nc-XC {\n display: flex;\n flex-direction: column;\n gap: var(--product-spacing-2);\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.textField-module_container--error__CJ8JR > label {\n color: var(--product-error);\n}\n\n.textField-module_container--error__CJ8JR > input {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.textField-module_error__OWiII {\n color: var(--product-error);\n}\n\n.textField-module_helper__arACk {\n color: rgba(var(--grey-60-rgb));\n}\n\n.textField-module_rightContent__6xW-l {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n.textField-module_leftContent__XrivE {\n position: absolute;\n left: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n\n.textField-module_input__R8QTX:focus {\n border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));\n}\n\n.textField-module_input--focus__ngCQF {\n border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));\n}\n\n.textField-module_input__R8QTX:hover {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input--hover__wo5JR {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input__R8QTX:disabled {\n background: var(--product-greyscale-20);\n cursor: not-allowed;\n}\n\n.textField-module_input__R8QTX:disabled:hover {\n outline: none;\n}\n\n\n\n @media (min-width: 768px) {\n .textField-module_input__R8QTX {\n padding: var(--product-spacing-6);\n padding-top: 1.8rem;\n font-size: 1.25rem;\n }\n\n .textField-module_input--prefix__Fhag6 {\n padding: var(--product-spacing-6);\n padding-top: 1.8rem;\n padding-left: 2.5rem;\n }\n\n .textField-module_prefix__qF3td {\n left: var(--product-spacing-6);\n font-size: 1.25rem;\n top: 54%;\n }\n\n .textField-module_label__Pb0Yj {\n left: var(--product-spacing-6);\n }\n}\n\n\n\n\n\n\n\n");exports.Button=function(e){var n=e.as,o=e.children,s=e.variant,l=void 0===s?"primary":s,c=e.className,h=void 0===c?"":c,p=e.visualType,m=void 0===p?"button":p,f=i(e,["as","children","variant","className","visualType"]),g=n||"button";return t.createElement(g,r({className:a(u[h],u[l],u[m])},f),t.createElement(d,{variant:"form-button"},o))},exports.Form=function(e){var n=e.children,o=i(e,["children"]);return t.createElement("form",r({className:h},o),n)},exports.NumberField=function(e){var n=e.min,o=void 0===n?0:n,r=e.max,i=void 0===r?100:r,s=e.label,l=e.width,u=void 0===l?3:l,c=e.name,h=e.error,x=e.register,w=e.setValue,E=t.useState(0),P=E[0],T=E[1],S=function(t){P<=o||T(P-t)},C=function(t){P>=i||T(P+t)};return t.useEffect((function(){x(c)}),[]),t.useEffect((function(){w(c,P.toString())}),[P]),t.createElement("div",{className:p},t.createElement(d,{className:v,as:"label",id:"".concat(c,"-label"),variant:"form-input-normal"},s),t.createElement("div",{className:a(f,h&&g)},t.createElement("button",{className:_,type:"button",tabIndex:-1,onClick:function(){return S(1)},"aria-label":"decrease"},"-"),t.createElement(d,{as:"div",variant:"content-title",className:m,role:"spinbutton",tabIndex:0,onKeyDown:function(t){b.includes(t.key)&&(t.preventDefault(),function(t){"ArrowUp"===t.key&&C(1),"ArrowDown"===t.key&&S(1)}(t),function(t){"PageUp"===t.key&&C(5),"PageDown"===t.key&&S(5)}(t),function(t){"Home"===t.key&&T(o),"End"===t.key&&T(i)}(t))},"aria-valuenow":P,"aria-valuemin":o,"aria-valuemax":i,"aria-labelledby":"".concat(c,"-label"),"aria-invalid":!!(null==h?void 0:h.message),"aria-errormessage":h?"".concat(c,"-error"):void 0,style:{width:"".concat(u,"ch")}},P),t.createElement("button",{className:_,type:"button",tabIndex:-1,onClick:function(){return C(1)},"aria-label":"increase"},"+")),h&&t.createElement(d,{className:y,id:"".concat(c,"-error"),as:"span",variant:"form-helper"},h.message))},exports.RadioGroup=te,exports.Range=function(e){var n=e.min,o=void 0===n?0:n,i=e.max,s=void 0===i?1e3:i,a=e.step,l=void 0===a?100:a,u=e.name,c=e.register,h=e.label,p=t.useState(0),m=p[0],f=p[1];return t.createElement(t.Fragment,null,t.createElement(d,{as:"label",htmlFor:"".concat(u,"-range")},h),t.createElement("div",{className:ee},t.createElement("div",{className:ne},t.createElement("div",{className:re},Array.from({length:function(t,e,n){return(e-t)/n}(o,s,l)}).map((function(e,n){return t.createElement("div",{key:n,className:ie})}))),t.createElement("div",{className:se,style:{width:"".concat((m-o)/(s-o)*100,"%")}}),t.createElement("input",r({id:"".concat(u,"-range"),className:oe,type:"range",min:o,max:s,step:l},c(u,{onChange:function(t){return f(t.target.value)}})))),t.createElement(d,{className:ae,variant:"content-title-semi-bold"},"£",m)))},exports.Select=function(e){var n=e.name,o=e.error,r=e.helper,i=e.label,s=e.items,l=e.placeholder,u=e.disabled,c=e.control,h=e.defaultValue;return t.createElement(Jt,{name:n,control:c,render:function(e){var n=e.field,c=n.onChange,p=n.name,m=n.ref,f=n.value,g=n.onBlur;return t.createElement("div",{className:le},t.createElement("label",{className:"sr-only"},i),t.createElement("svg",{className:ce,width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M5.9998 6.9499C5.86647 6.9499 5.74147 6.92907 5.6248 6.8874C5.50814 6.84574 5.3998 6.7749 5.2998 6.6749L0.699805 2.0749C0.516471 1.89157 0.424805 1.65824 0.424805 1.3749C0.424805 1.09157 0.516471 0.858236 0.699805 0.674902C0.883138 0.491569 1.11647 0.399902 1.3998 0.399902C1.68314 0.399902 1.91647 0.491569 2.0998 0.674902L5.9998 4.5749L9.89981 0.674902C10.0831 0.491569 10.3165 0.399902 10.5998 0.399902C10.8831 0.399902 11.1165 0.491569 11.2998 0.674902C11.4831 0.858236 11.5748 1.09157 11.5748 1.3749C11.5748 1.65824 11.4831 1.89157 11.2998 2.0749L6.6998 6.6749C6.5998 6.7749 6.49147 6.84574 6.3748 6.8874C6.25814 6.92907 6.13314 6.9499 5.9998 6.9499Z",fill:"black"})),t.createElement("select",{className:a(ue,(null==o?void 0:o.message)&&de,u&&he),ref:m,value:f,onBlur:g,onChange:c,name:p,defaultValue:h},l&&t.createElement("option",{value:"placeholder",disabled:!0},l),s&&s.map((function(e){return t.createElement("option",{key:e.id,value:e.id},e.title)}))),(null==r?void 0:r.message)&&t.createElement(d,{className:me,as:"span",variant:"form-helper"},r.message),(null==o?void 0:o.message)&&t.createElement(d,{className:pe,as:"p",variant:"form-helper"},o.message))}})},exports.TextField=function(e){var n=e.id,o=e.label,i=e.helper,s=e.error,l=e.register,u=e.name,c=e.type,d=e.prefix,h=e.suffix,p=e.disabled,m=e.className,f=e.rightContent,g=e.leftContent,v=function(){var e=t.useState({width:600,height:void 0}),n=e[0],o=e[1];return t.useEffect((function(){function t(){o({width:window.innerWidth||600,height:window.innerHeight})}return window.addEventListener("resize",t,{passive:!0}),t(),function(){return window.removeEventListener("resize",t)}}),[]),n}().width,y=t.useState(""),_=y[0],b=y[1],x=t.useState(""!==_),w=x[0],E=x[1],P=v>768,T=i||s,S={focused:{fontSize:P?"1rem":"0.875rem",top:"1rem"},notFocused:{transform:"translateY(-50%)",fontSize:P?"1.25rem":"1.125rem",top:"50%"}};return t.createElement("div",null,t.createElement("div",{className:a(Ml.container,s&&Ml["container--error"])},t.createElement(Fl.label,{className:Ml.label,initial:"notFocused",variants:S,htmlFor:"input-".concat(n),animate:w?"focused":"notFocused"},o," ",h&&t.createElement("span",null,h)),t.createElement("input",r({id:"input-".concat(n),className:a(m,Ml["input--".concat(m)],Ml.input,d&&Ml["input--prefix"]),type:c,"aria-describedby":"error-".concat(n),disabled:p,value:_,onFocus:function(){return E(!0)}},l(u,{onChange:function(t){return b(t.target.value)},onBlur:function(){return E(""!==_)}}))),d&&w&&t.createElement("span",{className:Ml.prefix},d),t.createElement("div",null,f&&t.createElement("div",{className:Ml.rightContent},f),g&&t.createElement("div",{className:Ml.leftContent},g))),T&&t.createElement("div",{className:Ml.inputDescription},i&&t.createElement("span",{id:"feedback-".concat(n),className:Ml.helper},i.message),s&&t.createElement("span",{id:"error-".concat(n),className:Ml.error},s.message)))};
|
|
1
|
+
"use strict";var t=require("react"),e=require("react-dom");function n(t){var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var o=n(t),r=function(){return r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)};function i(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}function s(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=s(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function a(){for(var t,e,n=0,o="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=s(t))&&(o&&(o+=" "),o+=e);return o}function l(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}"function"==typeof SuppressedError&&SuppressedError;var u={button:"button-module_button__dZH55",action:"button-module_action__RTWZU",focus:"button-module_focus__RNsoR",primary:"button-module_primary__CZzyo",hover:"button-module_hover__Zz9hl",active:"button-module_active__rYKZm",secondary:"button-module_secondary__tM5K3",tertiary:"button-module_tertiary__0bKi6",ghost:"button-module_ghost__xQWCE",danger:"button-module_danger__pxWDX",standard:"button-module_standard__GaQlx"};l(".button-module_button__dZH55 {\n all: unset;\n padding: var(--product-spacing-3) var(--product-spacing-7);\n border-radius: var(--product-radius-full);\n width: -moz-fit-content;\n width: fit-content;\n cursor: pointer;\n}\n\n.button-module_action__RTWZU {\n all: unset;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-2_5) var(--product-spacing-6);\n width: -moz-fit-content;\n width: fit-content;\n cursor: pointer;\n}\n\n.button-module_button__dZH55:focus, .button-module_button__dZH55.button-module_focus__RNsoR {\n outline: var(--product-border-width-1) solid var(--product-focus);\n}\n\n.button-module_action__RTWZU:focus, .button-module_action__RTWZU.button-module_focus__RNsoR {\n outline: var(--product-border-width-1) solid var(--product-focus);\n}\n\n/* ! Button */\n\n/* Primary */\n\n.button-module_primary__CZzyo {\n color: var(--product-greyscale-0);\n background: var(--product-love-pink-100)\n}\n\n.button-module_primary__CZzyo:hover, .button-module_primary__CZzyo.button-module_hover__Zz9hl {\n background: var(--product-love-pink-80)\n}\n\n.button-module_primary__CZzyo:active, .button-module_primary__CZzyo.button-module_active__rYKZm {\n background: var(--product-love-pink-120)\n}\n\n/* Secondary */\n\n.button-module_secondary__tM5K3 {\n color: var(--product-greyscale-0);\n background: var(--product-greyscale-100);\n}\n\n.button-module_secondary__tM5K3:hover, .button-module_secondary__tM5K3.button-module_hover__Zz9hl {\n background: var(--product-greyscale-80);\n}\n\n.button-module_secondary__tM5K3:active, .button-module_secondary__tM5K3.button-module_active__rYKZm {\n background: var(--product-greyscale-60);\n}\n\n/* Tertiary */\n\n.button-module_tertiary__0bKi6 {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_tertiary__0bKi6:hover, .button-module_tertiary__0bKi6.button-module_hover__Zz9hl {\n background: var(--product-light-blue-20);\n}\n\n.button-module_tertiary__0bKi6:active, .button-module_tertiary__0bKi6.button-module_active__rYKZm {\n background: var(--product-light-blue-40);\n}\n\n/* Ghost */\n\n.button-module_ghost__xQWCE {\n color: #004B87;\n background: var(--product-greyscale-0);\n}\n\n.button-module_ghost__xQWCE:hover, .button-module_ghost__xQWCE.button-module_hover__Zz9hl {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_ghost__xQWCE:active, .button-module_ghost__xQWCE.button-module_active__rYKZm {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-40);\n}\n\n/* Danger */\n\n.button-module_danger__pxWDX {\n color: var(--product-greyscale-0);\n background: var( --product-error);\n}\n\n.button-module_danger__pxWDX:hover, .button-module_danger__pxWDX.button-module_hover__Zz9hl {\n background: var(--product-danger-80);\n}\n\n.button-module_danger__pxWDX:active, .button-module_danger__pxWDX.button-module_active__rYKZm {\n background: var(--product-danger-120);\n}\n\n/*! Action Button */\n\n/* Standard */\n\n.button-module_action__RTWZU.button-module_standard__GaQlx {\n color: var(--product-greyscale-0);\n background: var(--product-light-blue-100);\n}\n\n.button-module_action__RTWZU.button-module_standard__GaQlx:hover, .button-module_action__RTWZU.button-module_standard__GaQlx.button-module_hover__Zz9hl {\n background: var(--product-light-blue-80);\n}\n\n.button-module_action__RTWZU.button-module_standard__GaQlx:active, .button-module_action__RTWZU.button-module_standard__GaQlx.button-module_active__rYKZm {\n background: var(--product-light-blue-120);\n}\n\n/* Secondary */\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3 {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-00);\n}\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3:hover, .button-module_action__RTWZU.button-module_secondary__tM5K3.button-module_hover__Zz9hl {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3:active, .button-module_action__RTWZU.button-module_secondary__tM5K3.button-module_active__rYKZm {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n/* Tertiary */\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6 {\n background: var(--product-greyscale-100);\n color: var(--product-greyscale-0)\n}\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6:hover, .button-module_action__RTWZU.button-module_tertiary__0bKi6.button-module_hover__Zz9hl {\n background: var(--product-greyscale-80);\n}\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6:active, .button-module_action__RTWZU.button-module_tertiary__0bKi6.button-module_active__rYKZm {\n background: var(--product-greyscale-100);\n}\n\n/* Ghost */\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE {\n color: #004B87;\n background: var(--product-greyscale-0);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:hover, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_hover__Zz9hl {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:active, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_active__rYKZm {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-40);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:focus, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_focus__RNsoR {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n/* Danger */\n\n.button-module_action__RTWZU.button-module_danger__pxWDX {\n color: var(--product-greyscale-0);\n background: var(--product-error);\n}\n\n.button-module_action__RTWZU.button-module_danger__pxWDX:hover, .button-module_action__RTWZU.button-module_danger__pxWDX.button-module_hover__Zz9hl {\n background: var(--product-danger-80);\n}\n\n.button-module_action__RTWZU.button-module_danger__pxWDX:active, .button-module_action__RTWZU.button-module_danger__pxWDX.button-module_active__rYKZm {\n background: var(--product-danger-120);\n}\n\n\n\n\n.button-module_button__dZH55:disabled {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n}\n\n.button-module_action__RTWZU:disabled {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n}\n\n.button-module_action__RTWZU:disabled:hover, .button-module_action__RTWZU:disabled.button-module_hover__Zz9hl {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n border: none;\n}\n\n\n\n @media (min-width: 768px) {\n .button-module_button__dZH55 {\n padding: var(--product-spacing-4) var(--product-spacing-7);\n }\n\n .button-module_action__RTWZU {\n border-radius: var(--product-radius-5);\n }\n}\n\n\n");var c={"form-label":"typography-module_form-label__7pjg0","form-helper":"typography-module_form-helper__iE-K1","form-button":"typography-module_form-button__oWjm-","form-input-normal":"typography-module_form-input-normal__t1XCT","form-input-semi-bold":"typography-module_form-input-semi-bold__HLeM-","content-regular-light":"typography-module_content-regular-light__qEDRp","content-regular":"typography-module_content-regular__I4VOF","content-regular-semi-bold":"typography-module_content-regular-semi-bold__COKU6","content-large-light":"typography-module_content-large-light__bc5mT","content-large":"typography-module_content-large__UcRKy","content-large-semi-bold":"typography-module_content-large-semi-bold__rW0r8","content-title-light":"typography-module_content-title-light__32AIU","content-title":"typography-module_content-title__adS2q","content-title-semi-bold":"typography-module_content-title-semi-bold__B-QDN"};l(".typography-module_form-label__7pjg0{\n font-weight: var(--product-font-weight-semi-bold);\n font-size: var(--product-font-form-label-desktop-size);\n letter-spacing: var(--product-font-form-label-letter-spacing);\n line-height: var(--product-font-form-label-line-height);\n}\n\n.typography-module_form-helper__iE-K1{\n font-size: var(--product-font-form-helper-desktop-size);\n letter-spacing: var(--product-font-form-helper-letter-spacing);\n line-height: var(--product-font-form-helper-line-height);\n}\n\n.typography-module_form-button__oWjm-{\n font-size: var(--product-font-form-input-button-desktop-size);\n letter-spacing: var(--product-font-form-input-button-letter-spacing);\n line-height: var(--product-font-form-input-button-line-height);\n font-weight: var(--product-font-weight-medium);\n}\n\n.typography-module_form-input-normal__t1XCT{\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n}\n\n.typography-module_form-input-semi-bold__HLeM-{\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-regular-light__qEDRp{\n font-size: var(--product-font-content-regular-light-desktop-size);\n letter-spacing: var(--product-font-content-regular-light-letter-spacing);\n line-height: var(--product-font-content-regular-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-regular__I4VOF{\n font-size: var(--product-font-content-regular-normal-desktop-size);\n letter-spacing: var(--product-font-content-regular-normal-letter-spacing);\n line-height: var(--product-font-content-regular-normal-line-height);\n}\n\n.typography-module_content-regular-semi-bold__COKU6{\n font-size: var(--product-font-content-regular-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-regular-semi-bold-letter-spacing);\n line-height: var(--product-font-content-regular-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-large-light__bc5mT{\n font-size: var(--product-font-content-large-light-desktop-size);\n letter-spacing: var(--product-font-content-large-light-letter-spacing);\n line-height: var(--product-font-content-large-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-large__UcRKy{\n font-size: var(--product-font-content-large-normal-desktop-size);\n letter-spacing: var(--product-font-content-large-normal-letter-spacing);\n line-height: var(--product-font-content-large-normal-line-height);\n}\n\n.typography-module_content-large-semi-bold__rW0r8{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-title-light__32AIU{\n font-size: var(--product-font-content-large-light-desktop-size);\n letter-spacing: var(--product-font-content-large-light-letter-spacing);\n line-height: var(--product-font-content-large-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-title__adS2q{\n font-size: var(--product-font-content-large-normal-desktop-size);\n letter-spacing: var(--product-font-content-large-normal-letter-spacing);\n line-height: var(--product-font-content-large-normal-line-height);\n}\n\n.typography-module_content-title-semi-bold__B-QDN{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n @media (min-width: 768px) {\n .typography-module_form-label__7pjg0{\n font-size: var(--product-font-form-label-desktop-size);\n }\n\n .typography-module_form-helper__iE-K1{\n font-size: var(--product-font-form-helper-desktop-size);\n }\n\n .typography-module_form-button__oWjm-{\n font-size: var(--product-font-form-input-button-desktop-size);\n }\n\n .typography-module_form-input-normal__t1XCT{\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .typography-module_form-input-semi-bold__HLeM-{\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .typography-module_content-regular-light__qEDRp{\n font-size: var(--product-font-content-regular-light-desktop-size);\n }\n\n .typography-module_content-regular__I4VOF{\n font-size: var(--product-font-content-regular-normal-desktop-size);\n }\n\n .typography-module_content-regular-semi-bold__COKU6{\n font-size: var(--product-font-content-regular-semi-bold-desktop-size);\n }\n\n .typography-module_content-large-light__bc5mT{\n font-size: var(--product-font-content-large-light-desktop-size);\n }\n\n .typography-module_content-large__UcRKy{\n font-size: var(--product-font-content-large-normal-desktop-size);\n }\n\n .typography-module_content-large-semi-bold__rW0r8{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n\n .typography-module_content-title-light__32AIU{\n font-size: var(--product-font-content-large-light-desktop-size);\n }\n\n .typography-module_content-title__adS2q{\n font-size: var(--product-font-content-large-normal-desktop-size);\n }\n\n .typography-module_content-title-semi-bold__B-QDN{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var d=function(e){var n=e.as,o=e.variant,s=void 0===o?"content-regular":o,l=e.children,u=e.className,d=i(e,["as","variant","children","className"]),h=n||"p";return t.createElement(h,r({className:a(c[s],u)},d),l)};var h="columns-module_container__ycx3n";l(".columns-module_container__ycx3n {\n display: grid;\n gap: 1rem;\n}\n");var p="form-module_form__FGOhg";l(".form-module_form__FGOhg {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n max-width: 640px;\n margin: 0 auto;\n}\n\n.form-module_form__FGOhg fieldset {\n all: unset;\n display: flex;\n flex-direction: column; \n\n}\n\n.form-module_form__FGOhg > fieldset {\n gap: 1rem;\n}\n\n.form-module_form__FGOhg > fieldset:not(:last-child) {\n margin-bottom: 2.5rem;\n}\n\n.form-module_form__FGOhg > fieldset > legend {\n all: unset;\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n margin-bottom: var(--product-spacing-6);\n}\n\n @media (min-width: 768px) {\n .form-module_content-title-semi-bold__rYlQh {\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var m="numberField-module_container__yjOIU",f="numberField-module_fake-input__cqOX-",g="numberField-module_spinbutton-container__HkUKt",v="numberField-module_spinbutton-container--error__dO4fj",y="numberField-module_label__e79fV",_="numberField-module_error__UtA4B",b="numberField-module_control__yE0Ro";l(".numberField-module_container__yjOIU {\n display: flex;\n flex-direction: column;\n}\n\n.numberField-module_fake-input__cqOX- {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.numberField-module_spinbutton-container__HkUKt {\n display: flex;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-4) var(--product-spacing-5);\n border-radius: var(--product-radius-3);\n background: var(--product-greyscale-0);\n}\n\n.numberField-module_spinbutton-container--error__dO4fj {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.numberField-module_label__e79fV {\n margin-bottom: var(--product-spacing-3);\n}\n\n.numberField-module_error__UtA4B {\n color: var(--product-error);\n}\n\n.numberField-module_spinbutton-container--disabled__DriKa {\n background: var(--product-greyscale-20);\n}\n\n.numberField-module_control__yE0Ro {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: 44px;\n height: 44px;\n border: 2px solid black;\n}\n\n");var x=["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"];function w(){return w=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},w.apply(this,arguments)}function E(t,e,{checkForDefaultPrevented:n=!0}={}){return function(o){if(null==t||t(o),!1===n||!o.defaultPrevented)return null==e?void 0:e(o)}}function T(...t){return e=>t.forEach((t=>function(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}(t,e)))}function P(...e){return t.useCallback(T(...e),e)}function S(e,n=[]){let o=[];const r=()=>{const n=o.map((e=>t.createContext(e)));return function(o){const r=(null==o?void 0:o[e])||n;return t.useMemo((()=>({[`__scope${e}`]:{...o,[e]:r}})),[o,r])}};return r.scopeName=e,[function(n,r){const i=t.createContext(r),s=o.length;function a(n){const{scope:o,children:r,...a}=n,l=(null==o?void 0:o[e][s])||i,u=t.useMemo((()=>a),Object.values(a));return t.createElement(l.Provider,{value:u},r)}return o=[...o,r],a.displayName=n+"Provider",[a,function(o,a){const l=(null==a?void 0:a[e][s])||i,u=t.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${o}\` must be used within \`${n}\``)}]},C(r,...n)]}function C(...e){const n=e[0];if(1===e.length)return n;const o=()=>{const o=e.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(e){const r=o.reduce(((t,{useScope:n,scopeName:o})=>({...t,...n(e)[`__scope${o}`]})),{});return t.useMemo((()=>({[`__scope${n.scopeName}`]:r})),[r])}};return o.scopeName=n.scopeName,o}const A=t.forwardRef(((e,n)=>{const{children:o,...r}=e,i=t.Children.toArray(o),s=i.find(V);if(s){const e=s.props.children,o=i.map((n=>n===s?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n));return t.createElement(k,w({},r,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,o):null)}return t.createElement(k,w({},r,{ref:n}),o)}));A.displayName="Slot";const k=t.forwardRef(((e,n)=>{const{children:o,...r}=e;return t.isValidElement(o)?t.cloneElement(o,{...F(r,o.props),ref:n?T(n,o.ref):o.ref}):t.Children.count(o)>1?t.Children.only(null):null}));k.displayName="SlotClone";const R=({children:e})=>t.createElement(t.Fragment,null,e);function V(e){return t.isValidElement(e)&&e.type===R}function F(t,e){const n={...e};for(const o in e){const r=t[o],i=e[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...t)=>{i(...t),r(...t)}:r&&(n[o]=r):"style"===o?n[o]={...r,...i}:"className"===o&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...t,...n}}const M=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const o=t.forwardRef(((e,o)=>{const{asChild:r,...i}=e,s=r?A:n;return t.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),t.createElement(s,w({},i,{ref:o}))}));return o.displayName=`Primitive.${n}`,{...e,[n]:o}}),{});const D=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},j=o["useId".toString()]||(()=>{});let L=0;function O(e){const n=t.useRef(e);return t.useEffect((()=>{n.current=e})),t.useMemo((()=>(...t)=>{var e;return null===(e=n.current)||void 0===e?void 0:e.call(n,...t)}),[])}function B({prop:e,defaultProp:n,onChange:o=(()=>{})}){const[r,i]=function({defaultProp:e,onChange:n}){const o=t.useState(e),[r]=o,i=t.useRef(r),s=O(n);return t.useEffect((()=>{i.current!==r&&(s(r),i.current=r)}),[r,i,s]),o}({defaultProp:n,onChange:o}),s=void 0!==e,a=s?e:r,l=O(o);return[a,t.useCallback((t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[s,e,i,l])]}const N=t.createContext(void 0);function U(e){const n=t.useContext(N);return e||n||"ltr"}const z="rovingFocusGroup.onEntryFocus",I={bubbles:!1,cancelable:!0},W="RovingFocusGroup",[Z,G,H]=function(e){const n=e+"CollectionProvider",[o,r]=S(n),[i,s]=o(n,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{const{scope:n,children:o}=e,r=t.useRef(null),s=t.useRef(new Map).current;return t.createElement(i,{scope:n,itemMap:s,collectionRef:r},o)},Slot:t.forwardRef(((e,n)=>{const{scope:o,children:r}=e,i=P(n,s(a,o).collectionRef);return t.createElement(A,{ref:i},r)})),ItemSlot:t.forwardRef(((e,n)=>{const{scope:o,children:r,...i}=e,a=t.useRef(null),c=P(n,a),d=s(l,o);return t.useEffect((()=>(d.itemMap.set(a,{ref:a,...i}),()=>{d.itemMap.delete(a)}))),t.createElement(A,{[u]:"",ref:c},r)}))},function(n){const o=s(e+"CollectionConsumer",n);return t.useCallback((()=>{const t=o.collectionRef.current;if(!t)return[];const e=Array.from(t.querySelectorAll(`[${u}]`));return Array.from(o.itemMap.values()).sort(((t,n)=>e.indexOf(t.ref.current)-e.indexOf(n.ref.current)))}),[o.collectionRef,o.itemMap])},r]}(W),[$,K]=S(W,[H]),[X,Y]=$(W),q=t.forwardRef(((e,n)=>t.createElement(Z.Provider,{scope:e.__scopeRovingFocusGroup},t.createElement(Z.Slot,{scope:e.__scopeRovingFocusGroup},t.createElement(Q,w({},e,{ref:n})))))),Q=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,orientation:r,loop:i=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,...d}=e,h=t.useRef(null),p=P(n,h),m=U(s),[f=null,g]=B({prop:a,defaultProp:l,onChange:u}),[v,y]=t.useState(!1),_=O(c),b=G(o),x=t.useRef(!1),[T,S]=t.useState(0);return t.useEffect((()=>{const t=h.current;if(t)return t.addEventListener(z,_),()=>t.removeEventListener(z,_)}),[_]),t.createElement(X,{scope:o,orientation:r,dir:m,loop:i,currentTabStopId:f,onItemFocus:t.useCallback((t=>g(t)),[g]),onItemShiftTab:t.useCallback((()=>y(!0)),[]),onFocusableItemAdd:t.useCallback((()=>S((t=>t+1))),[]),onFocusableItemRemove:t.useCallback((()=>S((t=>t-1))),[])},t.createElement(M.div,w({tabIndex:v||0===T?-1:0,"data-orientation":r},d,{ref:p,style:{outline:"none",...e.style},onMouseDown:E(e.onMouseDown,(()=>{x.current=!0})),onFocus:E(e.onFocus,(t=>{const e=!x.current;if(t.target===t.currentTarget&&e&&!v){const e=new CustomEvent(z,I);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){const t=b().filter((t=>t.focusable));et([t.find((t=>t.active)),t.find((t=>t.id===f)),...t].filter(Boolean).map((t=>t.ref.current)))}}x.current=!1})),onBlur:E(e.onBlur,(()=>y(!1)))})))})),J=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:a,...l}=e,u=function(t){const[e,n]=o.useState(j());return D((()=>{t||n((t=>null!=t?t:String(L++)))}),[t]),t||(e?`radix-${e}`:"")}(),c=a||u,d=Y("RovingFocusGroupItem",r),h=d.currentTabStopId===c,p=G(r),{onFocusableItemAdd:m,onFocusableItemRemove:f}=d;return t.useEffect((()=>{if(i)return m(),()=>f()}),[i,m,f]),t.createElement(Z.ItemSlot,{scope:r,id:c,focusable:i,active:s},t.createElement(M.span,w({tabIndex:h?0:-1,"data-orientation":d.orientation},l,{ref:n,onMouseDown:E(e.onMouseDown,(t=>{i?d.onItemFocus(c):t.preventDefault()})),onFocus:E(e.onFocus,(()=>d.onItemFocus(c))),onKeyDown:E(e.onKeyDown,(t=>{if("Tab"===t.key&&t.shiftKey)return void d.onItemShiftTab();if(t.target!==t.currentTarget)return;const e=function(t,e,n){const o=function(t,e){return"rtl"!==e?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t}(t.key,n);return"vertical"===e&&["ArrowLeft","ArrowRight"].includes(o)||"horizontal"===e&&["ArrowUp","ArrowDown"].includes(o)?void 0:tt[o]}(t,d.orientation,d.dir);if(void 0!==e){t.preventDefault();let r=p().filter((t=>t.focusable)).map((t=>t.ref.current));if("last"===e)r.reverse();else if("prev"===e||"next"===e){"prev"===e&&r.reverse();const i=r.indexOf(t.currentTarget);r=d.loop?(o=i+1,(n=r).map(((t,e)=>n[(o+e)%n.length]))):r.slice(i+1)}setTimeout((()=>et(r)))}var n,o}))})))})),tt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function et(t){const e=document.activeElement;for(const n of t){if(n===e)return;if(n.focus(),document.activeElement!==e)return}}const nt=q,ot=J;const rt=n=>{const{present:o,children:r}=n,i=function(n){const[o,r]=t.useState(),i=t.useRef({}),s=t.useRef(n),a=t.useRef("none"),l=n?"mounted":"unmounted",[u,c]=function(e,n){return t.useReducer(((t,e)=>{const o=n[t][e];return null!=o?o:t}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect((()=>{const t=it(i.current);a.current="mounted"===u?t:"none"}),[u]),D((()=>{const t=i.current,e=s.current;if(e!==n){const o=a.current,r=it(t);if(n)c("MOUNT");else if("none"===r||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(e&&o!==r?"ANIMATION_OUT":"UNMOUNT")}s.current=n}}),[n,c]),D((()=>{if(o){const t=t=>{const n=it(i.current).includes(t.animationName);t.target===o&&n&&e.flushSync((()=>c("ANIMATION_END")))},n=t=>{t.target===o&&(a.current=it(i.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",t),o.addEventListener("animationend",t),()=>{o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",t),o.removeEventListener("animationend",t)}}c("ANIMATION_END")}),[o,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback((t=>{t&&(i.current=getComputedStyle(t)),r(t)}),[])}}(o),s="function"==typeof r?r({present:i.isPresent}):t.Children.only(r),a=P(i.ref,s.ref);return"function"==typeof r||i.isPresent?t.cloneElement(s,{ref:a}):null};function it(t){return(null==t?void 0:t.animationName)||"none"}rt.displayName="Presence";const st="Radio",[at,lt]=S(st),[ut,ct]=at(st),dt=t.forwardRef(((e,n)=>{const{__scopeRadio:o,name:r,checked:i=!1,required:s,disabled:a,value:l="on",onCheck:u,...c}=e,[d,h]=t.useState(null),p=P(n,(t=>h(t))),m=t.useRef(!1),f=!d||Boolean(d.closest("form"));return t.createElement(ut,{scope:o,checked:i,disabled:a},t.createElement(M.button,w({type:"button",role:"radio","aria-checked":i,"data-state":mt(i),"data-disabled":a?"":void 0,disabled:a,value:l},c,{ref:p,onClick:E(e.onClick,(t=>{i||null==u||u(),f&&(m.current=t.isPropagationStopped(),m.current||t.stopPropagation())}))})),f&&t.createElement(pt,{control:d,bubbles:!m.current,name:r,value:l,checked:i,required:s,disabled:a,style:{transform:"translateX(-100%)"}}))})),ht=t.forwardRef(((e,n)=>{const{__scopeRadio:o,forceMount:r,...i}=e,s=ct("RadioIndicator",o);return t.createElement(rt,{present:r||s.checked},t.createElement(M.span,w({"data-state":mt(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:n})))})),pt=e=>{const{control:n,checked:o,bubbles:r=!0,...i}=e,s=t.useRef(null),a=function(e){const n=t.useRef({value:e,previous:e});return t.useMemo((()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous)),[e])}(o),l=function(e){const[n,o]=t.useState(void 0);return D((()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let r,i;if("borderBoxSize"in n){const t=n.borderBoxSize,e=Array.isArray(t)?t[0]:t;r=e.inlineSize,i=e.blockSize}else r=e.offsetWidth,i=e.offsetHeight;o({width:r,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}o(void 0)}),[e]),n}(n);return t.useEffect((()=>{const t=s.current,e=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(e,"checked").set;if(a!==o&&n){const e=new Event("click",{bubbles:r});n.call(t,o),t.dispatchEvent(e)}}),[a,o,r]),t.createElement("input",w({type:"radio","aria-hidden":!0,defaultChecked:o},i,{tabIndex:-1,ref:s,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function mt(t){return t?"checked":"unchecked"}const ft=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],gt="RadioGroup",[vt,yt]=S(gt,[K,lt]),_t=K(),bt=lt(),[xt,wt]=vt(gt),Et=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:o,name:r,defaultValue:i,value:s,required:a=!1,disabled:l=!1,orientation:u,dir:c,loop:d=!0,onValueChange:h,...p}=e,m=_t(o),f=U(c),[g,v]=B({prop:s,defaultProp:i,onChange:h});return t.createElement(xt,{scope:o,name:r,required:a,disabled:l,value:g,onValueChange:v},t.createElement(nt,w({asChild:!0},m,{orientation:u,dir:f,loop:d}),t.createElement(M.div,w({role:"radiogroup","aria-required":a,"aria-orientation":u,"data-disabled":l?"":void 0,dir:f},p,{ref:n}))))})),Tt=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:o,disabled:r,...i}=e,s=wt("RadioGroupItem",o),a=s.disabled||r,l=_t(o),u=bt(o),c=t.useRef(null),d=P(n,c),h=s.value===i.value,p=t.useRef(!1);return t.useEffect((()=>{const t=t=>{ft.includes(t.key)&&(p.current=!0)},e=()=>p.current=!1;return document.addEventListener("keydown",t),document.addEventListener("keyup",e),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e)}}),[]),t.createElement(ot,w({asChild:!0},l,{focusable:!a,active:h}),t.createElement(dt,w({disabled:a,required:s.required,checked:h},u,i,{name:s.name,ref:d,onCheck:()=>s.onValueChange(i.value),onKeyDown:E((t=>{"Enter"===t.key&&t.preventDefault()})),onFocus:E(i.onFocus,(()=>{var t;p.current&&(null===(t=c.current)||void 0===t||t.click())}))})))})),Pt=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:o,...r}=e,i=bt(o);return t.createElement(ht,w({},i,r,{ref:n}))}));var St="radioGroup-module_legend__WklzX",Ct="radioGroup-module_radio-root__RtJ2M",At="radioGroup-module_radio-root--error__9DrYG",kt="radioGroup-module_radio-root-label--error__KdFST",Rt="radioGroup-module_radio-item__BKOlM",Vt="radioGroup-module_radio-indicator__-hEEu";l('\n\n.radioGroup-module_legend__WklzX {\n margin-bottom: var(--product-spacing-3);\n}\n\n.radioGroup-module_radio-root__RtJ2M {\n display: flex;\n gap: var(--product-spacing-4);\n}\n\n.radioGroup-module_radio-root--horizontal__S9DcQ {\n flex-direction: row;\n}\n\n.radioGroup-module_radio-root--vertical__dBLhN {\n flex-direction: column;\n}\n\n.radioGroup-module_radio-root--error__9DrYG {\n border: var( --product-border-width-1) solid var(--product-error);\n border-radius: var(--product-radius-2);\n}\n\n.radioGroup-module_radio-root-label--error__KdFST {\n color: var(--product-error);\n padding-top: 0.5rem;\n padding-left: 1.5rem;\n margin-bottom: 1rem;\n}\n\n.radioGroup-module_radio-item__BKOlM {\n all: unset;\n position: relative;\n background-color: white;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-5) var(--product-spacing-4);\n width: 25%;\n cursor: pointer;\n}\n\n/* ! The Circle */\n.radioGroup-module_radio-item__BKOlM::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: "";\n display: block;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n border: 2px solid black;\n right: calc(var(--product-spacing-4) - 0.5rem);\n}\n\n/* ! The dot inside the circle */\n.radioGroup-module_radio-indicator__-hEEu::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: "";\n width: 0.75rem;\n height: 0.75rem;\n border-radius: 50%;\n right: var(--product-spacing-4);\n background-color: var(--product-greyscale-100);\n}\n\n@media (min-width: 768px) {\n .radioGroup-module_radio-root__RtJ2M {\n gap: var(--product-spacing-6);\n }\n}\n');var Ft=t=>null==t;var Mt=t=>!Ft(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),Dt=t=>Mt(t)&&t.target?"checkbox"===t.target.type?t.target.checked:t.target.value:t,jt=t=>{const e=t.constructor&&t.constructor.prototype;return Mt(e)&&e.hasOwnProperty("isPrototypeOf")},Lt="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Ot(t){let e;const n=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(Lt&&(t instanceof Blob||t instanceof FileList)||!n&&!Mt(t))return t;if(e=n?[]:{},n||jt(t))for(const n in t)t.hasOwnProperty(n)&&(e[n]=Ot(t[n]));else e=t}return e}var Bt=t=>Array.isArray(t)?t.filter(Boolean):[],Nt=t=>void 0===t,Ut=(t,e,n)=>{if(!e||!Mt(t))return n;const o=Bt(e.split(/[,[\].]+?/)).reduce(((t,e)=>Ft(t)?t:t[e]),t);return Nt(o)||o===t?Nt(t[e])?n:t[e]:o},zt=t=>"boolean"==typeof t;const It="blur",Wt="change",Zt="all",Gt=t.createContext(null),Ht=()=>t.useContext(Gt);var $t=(t,e,n,o=!0)=>{const r={defaultValues:e._defaultValues};for(const i in t)Object.defineProperty(r,i,{get:()=>{const r=i;return e._proxyFormState[r]!==Zt&&(e._proxyFormState[r]=!o||Zt),n&&(n[r]=!0),t[r]}});return r},Kt=(t,e,n,o)=>{n(t);const{name:r,...i}=t;return Mt(s=i)&&!Object.keys(s).length||Object.keys(i).length>=Object.keys(e).length||Object.keys(i).find((t=>e[t]===(!o||Zt)));var s},Xt=(t,e,n)=>{return!t||!e||t===e||(o=t,Array.isArray(o)?o:[o]).some((t=>t&&(n?t===e:t.startsWith(e)||e.startsWith(t))));var o};function Yt(e){const n=t.useRef(e);n.current=e,t.useEffect((()=>{const t=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{t&&t.unsubscribe()}}),[e.disabled])}var qt=(t,e,n,o,r)=>"string"==typeof t?(o&&e.watch.add(t),Ut(n,t,r)):Array.isArray(t)?t.map((t=>(o&&e.watch.add(t),Ut(n,t)))):(o&&(e.watchAll=!0),n);var Qt=(t,e,n)=>{let o=-1;const r=(t=>/^\w*$/.test(t))(e)?[e]:Bt(e.replace(/["|']|\]/g,"").split(/\.|\[/));const i=r.length,s=i-1;for(;++o<i;){const e=r[o];let i=n;if(o!==s){const n=t[e];i=Mt(n)||Array.isArray(n)?n:isNaN(+r[o+1])?{}:[]}t[e]=i,t=t[e]}return t};function Jt(e){const n=Ht(),{name:o,disabled:r,control:i=n.control,shouldUnregister:s}=e,a=((t,e)=>t.has((t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t)(e)))(i._names.array,o),l=function(e){const n=Ht(),{control:o=n.control,name:r,defaultValue:i,disabled:s,exact:a}=e||{},l=t.useRef(r);l.current=r,Yt({disabled:s,subject:o._subjects.values,next:t=>{Xt(l.current,t.name,a)&&c(Ot(qt(l.current,o._names,t.values||o._formValues,!1,i)))}});const[u,c]=t.useState(o._getWatch(r,i));return t.useEffect((()=>o._removeUnmounted())),u}({control:i,name:o,defaultValue:Ut(i._formValues,o,Ut(i._defaultValues,o,e.defaultValue)),exact:!0}),u=function(e){const n=Ht(),{control:o=n.control,disabled:r,name:i,exact:s}=e||{},[a,l]=t.useState(o._formState),u=t.useRef(!0),c=t.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=t.useRef(i);return d.current=i,Yt({disabled:r,next:t=>u.current&&Xt(d.current,t.name,s)&&Kt(t,c.current,o._updateFormState)&&l({...o._formState,...t}),subject:o._subjects.state}),t.useEffect((()=>(u.current=!0,c.current.isValid&&o._updateValid(!0),()=>{u.current=!1})),[o]),$t(a,o,c.current,!1)}({control:i,name:o}),c=t.useRef(i.register(o,{...e.rules,value:l,...zt(e.disabled)?{disabled:e.disabled}:{}}));return t.useEffect((()=>{const t=i._options.shouldUnregister||s,e=(t,e)=>{const n=Ut(i._fields,t);n&&(n._f.mount=e)};if(e(o,!0),t){const t=Ot(Ut(i._options.defaultValues,o));Qt(i._defaultValues,o,t),Nt(Ut(i._formValues,o))&&Qt(i._formValues,o,t)}return()=>{(a?t&&!i._state.action:t)?i.unregister(o):e(o,!1)}}),[o,i,a,s]),t.useEffect((()=>{Ut(i._fields,o)&&i._updateDisabledField({disabled:r,fields:i._fields,name:o,value:Ut(i._fields,o)._f.value})}),[r,o,i]),{field:{name:o,value:l,...zt(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:t.useCallback((t=>c.current.onChange({target:{value:Dt(t),name:o},type:Wt})),[o]),onBlur:t.useCallback((()=>c.current.onBlur({target:{value:Ut(i._formValues,o),name:o},type:It})),[o,i]),ref:t=>{const e=Ut(i._fields,o);e&&t&&(e._f.ref={focus:()=>t.focus(),select:()=>t.select(),setCustomValidity:e=>t.setCustomValidity(e),reportValidity:()=>t.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ut(u.errors,o)},isDirty:{enumerable:!0,get:()=>!!Ut(u.dirtyFields,o)},isTouched:{enumerable:!0,get:()=>!!Ut(u.touchedFields,o)},isValidating:{enumerable:!0,get:()=>!!Ut(u.validatingFields,o)},error:{enumerable:!0,get:()=>Ut(u.errors,o)}})}}const te=t=>t.render(Jt(t));var ee={Root:function(e){var n=e.children,o=e.control,s=e.className,l=e.name,u=e.error,c=e.label,h=i(e,["children","control","className","name","error","label"]);return t.createElement(te,{name:l,control:o,render:function(e){var o=e.field,i=o.onChange,l=o.name,p=o.ref,m=o.value,f=o.onBlur;return t.createElement("fieldset",null,t.createElement(d,{className:St,as:"legend",variant:"form-input-normal"},c),t.createElement(Et,r({className:a(s,Ct,u&&At),ref:p,value:m,onBlur:f,onValueChange:i},h,{name:l,"aria-required":void 0}),n),u&&t.createElement("p",{className:kt},u.message))}})},Item:function(e){var n=e.children,o=e.className,s=i(e,["children","className"]);return t.createElement(Tt,r({className:a(o,Rt)},s),t.createElement(d,{variant:"form-input-normal"},n))},Indicator:function(e){var n=e.className,o=i(e,["className"]);return t.createElement(Pt,r({className:a(n,Vt)},o))}},ne="range-module_container__SwhGo",oe="range-module_range-container__iGnY1",re="range-module_slider__pZtfP",ie="range-module_notches__Zc4Og",se="range-module_notch__qXs7B",ae="range-module_progress__fElkU",le="range-module_value-container__8Zt0r";l(".range-module_container__SwhGo {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-6);\n border-radius: var( --product-radius-2);\n}\n\n.range-module_container__SwhGo > div {\n width: 70%;\n}\n\n.range-module_container__SwhGo > p {\n width: 30%;\n text-align: center;\n}\n\n.range-module_range-container__iGnY1 {\n position: relative;\n width: 100%;\n height: 24px;\n background: var(--product-greyscale-0);\n}\n\n/* The slider itself */\n.range-module_slider__pZtfP {\n -webkit-appearance: none; /* Override default CSS styles */\n -moz-appearance: none;\n appearance: none;\n width: 100%; /* Full-width */\n height: 24px; /* Specified height */\n background: var(--product-greyscale-10); /* Grey background */\n outline: none; /* Remove outline */\n border-radius: var(--product-radius-2);\n}\n\n/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */\n.range-module_slider__pZtfP::-webkit-slider-thumb {\n -webkit-appearance: none; /* Override default look */\n appearance: none;\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n\n\n.range-module_slider__pZtfP::-moz-range-thumb {\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n.range-module_notches__Zc4Og {\n position: absolute;\n width: 100%;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n justify-content: space-evenly;\n pointer-events: none;\n}\n\n.range-module_notch__qXs7B {\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n background-color: var(--product-greyscale-60);\n opacity: 0.1;\n}\n\n.range-module_progress__fElkU {\n position: absolute;\n height: 100%;\n background: var(--product-light-blue-80);\n pointer-events: none;\n border-radius: var(--product-radius-2);\n}\n\n.range-module_value-container__8Zt0r {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n\n}\n");var ue="select-module_container__Lydyj",ce="select-module_input__Hcrhq",de="select-module_icon__SCm5W",he="select-module_input--error__4pQ0M",pe="select-module_input--disabled__zteOi",me="select-module_error-message__89d1g",fe="select-module_helper-message__VwS-B";l("\n\n.select-module_container__Lydyj {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.select-module_input__Hcrhq {\n all: unset;\n cursor: pointer;\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n padding: var(--product-spacing-6);\n background: var(--product-greyscale-0);\n border-radius: var(--product-radius-2);\n border: none;\n}\n\n.select-module_input__Hcrhq:hover {\n border: 1px solid var(--product-greyscale-20);\n}\n\n.select-module_icon__SCm5W {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n}\n\n.select-module_input__Hcrhq:active {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.select-module_input__Hcrhq:focus {\n border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));\n}\n\n.select-module_input--error__4pQ0M {\n border: var(--product-border-width-1) solid var(--product-error);\n color: var(--product-error);\n}\n\n.select-module_input--disabled__zteOi {\n color: var(--product-greyscale-60);\n background: var(--product-greyscale-40);\n cursor: not-allowed;\n border: none;\n}\n\n.select-module_error-message__89d1g {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n color: var(--product-error);\n}\n\n.select-module_helper-message__VwS-B {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n @media (min-width: 768px) {\n .select-module_input__Hcrhq {\n padding: var(--product-spacing-6);\n }\n}\n");const ge=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),ve=t.createContext({}),ye=t.createContext(null),_e="undefined"!=typeof document,be=_e?t.useLayoutEffect:t.useEffect,xe=t.createContext({strict:!1}),we=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Ee="data-"+we("framerAppearId"),Te=!1,Pe=!1;class Se{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}const Ce=["prepare","read","update","preRender","render","postRender"];function Ae(t,e){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=Ce.reduce(((t,e)=>(t[e]=function(t){let e=new Se,n=new Se,o=0,r=!1,i=!1;const s=new WeakSet,a={schedule:(t,i=!1,a=!1)=>{const l=a&&r,u=l?e:n;return i&&s.add(t),u.add(t)&&l&&r&&(o=e.order.length),t},cancel:t=>{n.remove(t),s.delete(t)},process:l=>{if(r)i=!0;else{if(r=!0,[e,n]=[n,e],n.clear(),o=e.order.length,o)for(let n=0;n<o;n++){const o=e.order[n];s.has(o)&&(a.schedule(o),t()),o(l)}r=!1,i&&(i=!1,a.process(l))}}};return a}((()=>n=!0)),t)),{}),s=t=>{i[t].process(r)},a=()=>{const i=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(i-r.timestamp,40),1),r.timestamp=i,r.isProcessing=!0,Ce.forEach(s),r.isProcessing=!1,n&&e&&(o=!1,t(a))};return{schedule:Ce.reduce(((e,s)=>{const l=i[s];return e[s]=(e,i=!1,s=!1)=>(n||(n=!0,o=!0,r.isProcessing||t(a)),l.schedule(e,i,s)),e}),{}),cancel:t=>Ce.forEach((e=>i[e].cancel(t))),state:r,steps:i}}const{schedule:ke,cancel:Re}=Ae(queueMicrotask,!1);function Ve(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function Fe(t){return"string"==typeof t||Array.isArray(t)}function Me(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const De=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],je=["initial",...De];function Le(t){return Me(t.animate)||je.some((e=>Fe(t[e])))}function Oe(t){return Boolean(Le(t)||t.variants)}function Be(e){const{initial:n,animate:o}=function(t,e){if(Le(t)){const{initial:e,animate:n}=t;return{initial:!1===e||Fe(e)?e:void 0,animate:Fe(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(ve));return t.useMemo((()=>({initial:n,animate:o})),[Ne(n),Ne(o)])}function Ne(t){return Array.isArray(t)?t.join(" "):t}const Ue={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ze={};for(const t in Ue)ze[t]={isEnabled:e=>Ue[t].some((t=>!!e[t]))};const Ie=t.createContext({}),We=t.createContext({}),Ze=Symbol.for("motionComponentSymbol");function Ge({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:s}){e&&function(t){for(const e in t)ze[e]={...ze[e],...t[e]}}(e);const a=t.forwardRef((function(a,l){let u;const c={...t.useContext(ge),...a,layoutId:He(a)},{isStatic:d}=c,h=Be(a),p=i(a,d);if(!d&&_e){h.visualElement=function(e,n,o,r){const{visualElement:i}=t.useContext(ve),s=t.useContext(xe),a=t.useContext(ye),l=t.useContext(ge).reducedMotion,u=t.useRef();r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:n,parent:i,props:o,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const c=u.current;t.useInsertionEffect((()=>{c&&c.update(o,a)}));const d=t.useRef(Boolean(o[Ee]&&!window.HandoffComplete));return be((()=>{c&&(ke.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())})),t.useEffect((()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),c}(s,p,c,n);const o=t.useContext(We),r=t.useContext(xe).strict;h.visualElement&&(u=h.visualElement.loadFeatures(c,r,e,o))}return o.createElement(ve.Provider,{value:h},u&&h.visualElement?o.createElement(u,{visualElement:h.visualElement,...c}):null,r(s,a,function(e,n,o){return t.useCallback((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),o&&("function"==typeof o?o(t):Ve(o)&&(o.current=t))}),[n])}(p,h.visualElement,l),p,d,h.visualElement))}));return a[Ze]=s,a}function He({layoutId:e}){const n=t.useContext(Ie).id;return n&&void 0!==e?n+"-"+e:e}function $e(t){function e(e,n={}){return Ge(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,o)=>(n.has(o)||n.set(o,e(o)),n.get(o))})}const Ke=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Xe(t){return"string"==typeof t&&!t.includes("-")&&!!(Ke.indexOf(t)>-1||/[A-Z]/.test(t))}const Ye={};const qe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qe=new Set(qe);function Je(t,{layout:e,layoutId:n}){return Qe.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Ye[t]||"opacity"===t)}const tn=t=>Boolean(t&&t.getVelocity),en={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nn=qe.length;const on=t=>e=>"string"==typeof e&&e.startsWith(t),rn=on("--"),sn=on("var(--"),an=t=>!!sn(t)&&ln.test(t.split("/*")[0].trim()),ln=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,un=(t,e)=>e&&"number"==typeof t?e.transform(t):t,cn=(t,e,n)=>n>e?e:n<t?t:n,dn={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},hn={...dn,transform:t=>cn(0,1,t)},pn={...dn,default:1},mn=t=>Math.round(1e5*t)/1e5,fn=/(-)?([\d]*\.?[\d])+/g,gn=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,vn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function yn(t){return"string"==typeof t}const _n=t=>({test:e=>yn(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),bn=_n("deg"),xn=_n("%"),wn=_n("px"),En=_n("vh"),Tn=_n("vw"),Pn={...xn,parse:t=>xn.parse(t)/100,transform:t=>xn.transform(100*t)},Sn={...dn,transform:Math.round},Cn={borderWidth:wn,borderTopWidth:wn,borderRightWidth:wn,borderBottomWidth:wn,borderLeftWidth:wn,borderRadius:wn,radius:wn,borderTopLeftRadius:wn,borderTopRightRadius:wn,borderBottomRightRadius:wn,borderBottomLeftRadius:wn,width:wn,maxWidth:wn,height:wn,maxHeight:wn,size:wn,top:wn,right:wn,bottom:wn,left:wn,padding:wn,paddingTop:wn,paddingRight:wn,paddingBottom:wn,paddingLeft:wn,margin:wn,marginTop:wn,marginRight:wn,marginBottom:wn,marginLeft:wn,rotate:bn,rotateX:bn,rotateY:bn,rotateZ:bn,scale:pn,scaleX:pn,scaleY:pn,scaleZ:pn,skew:bn,skewX:bn,skewY:bn,distance:wn,translateX:wn,translateY:wn,translateZ:wn,x:wn,y:wn,z:wn,perspective:wn,transformPerspective:wn,opacity:hn,originX:Pn,originY:Pn,originZ:wn,zIndex:Sn,fillOpacity:hn,strokeOpacity:hn,numOctaves:Sn};function An(t,e,n,o){const{style:r,vars:i,transform:s,transformOrigin:a}=t;let l=!1,u=!1,c=!0;for(const t in e){const n=e[t];if(rn(t)){i[t]=n;continue}const o=Cn[t],d=un(n,o);if(Qe.has(t)){if(l=!0,s[t]=d,!c)continue;n!==(o.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,a[t]=d):r[t]=d}if(e.transform||(l||o?r.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},o,r){let i="";for(let e=0;e<nn;e++){const n=qe[e];void 0!==t[n]&&(i+=`${en[n]||n}(${t[n]}) `)}return e&&!t.z&&(i+="translateZ(0)"),i=i.trim(),r?i=r(t,o?"":i):n&&o&&(i="none"),i}(t.transform,n,c,o):r.transform&&(r.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=a;r.transformOrigin=`${t} ${e} ${n}`}}const kn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Rn(t,e,n){for(const o in e)tn(e[o])||Je(o,n)||(t[o]=e[o])}function Vn(e,n,o){const r={};return Rn(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},n,o){return t.useMemo((()=>{const t=kn();return An(t,n,{enableHardwareAcceleration:!o},e),Object.assign({},t.vars,t.style)}),[n])}(e,n,o)),r}function Fn(t,e,n){const o={},r=Vn(t,e,n);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=r,o}const Mn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Dn(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Mn.has(t)}let jn=t=>!Dn(t);try{(Ln=require("@emotion/is-prop-valid").default)&&(jn=t=>t.startsWith("on")?!Dn(t):Ln(t))}catch(t){}var Ln;function On(t,e,n){return"string"==typeof t?t:wn.transform(e+n*t)}const Bn={offset:"stroke-dashoffset",array:"stroke-dasharray"},Nn={offset:"strokeDashoffset",array:"strokeDasharray"};function Un(t,{attrX:e,attrY:n,attrScale:o,originX:r,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,h){if(An(t,u,c,h),d)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:m,dimensions:f}=t;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==r||void 0!==i||m.transform)&&(m.transformOrigin=function(t,e,n){return`${On(e,t.x,t.width)} ${On(n,t.y,t.height)}`}(f,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==e&&(p.x=e),void 0!==n&&(p.y=n),void 0!==o&&(p.scale=o),void 0!==s&&function(t,e,n=1,o=0,r=!0){t.pathLength=1;const i=r?Bn:Nn;t[i.offset]=wn.transform(-o);const s=wn.transform(e),a=wn.transform(n);t[i.array]=`${s} ${a}`}(p,s,a,l,!1)}const zn=()=>({...kn(),attrs:{}}),In=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Wn(e,n,o,r){const i=t.useMemo((()=>{const t=zn();return Un(t,n,{enableHardwareAcceleration:!1},In(r),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Rn(t,e.style,e),i.style={...t,...i.style}}return i}function Zn(e=!1){return(n,o,r,{latestValues:i},s)=>{const a=(Xe(n)?Wn:Fn)(o,i,s,n),l=function(t,e,n){const o={};for(const r in t)"values"===r&&"object"==typeof t.values||(jn(r)||!0===n&&Dn(r)||!e&&!Dn(r)||t.draggable&&r.startsWith("onDrag"))&&(o[r]=t[r]);return o}(o,"string"==typeof n,e),u=n!==t.Fragment?{...l,...a,ref:r}:{},{children:c}=o,d=t.useMemo((()=>tn(c)?c.get():c),[c]);return t.createElement(n,{...u,children:d})}}function Gn(t,{style:e,vars:n},o,r){Object.assign(t.style,e,r&&r.getProjectionStyles(o));for(const e in n)t.style.setProperty(e,n[e])}const Hn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function $n(t,e,n,o){Gn(t,e,void 0,o);for(const n in e.attrs)t.setAttribute(Hn.has(n)?n:we(n),e.attrs[n])}function Kn(t,e){const{style:n}=t,o={};for(const r in n)(tn(n[r])||e.style&&tn(e.style[r])||Je(r,t))&&(o[r]=n[r]);return o}function Xn(t,e){const n=Kn(t,e);for(const o in t)if(tn(t[o])||tn(e[o])){n[-1!==qe.indexOf(o)?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o]=t[o]}return n}function Yn(t,e,n,o={},r={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,o,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,o,r)),e}const qn=t=>Array.isArray(t),Qn=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),Jn=t=>qn(t)?t[t.length-1]||0:t;function to(t){const e=tn(t)?t.get():t;return Qn(e)?e.toValue():e}const eo=e=>(n,o)=>{const r=t.useContext(ve),i=t.useContext(ye),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},o,r,i){const s={latestValues:no(o,r,i,t),renderState:e()};return n&&(s.mount=t=>n(o,t,s)),s}(e,n,r,i);return o?s():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(s)};function no(t,e,n,o){const r={},i=o(t,{});for(const t in i)r[t]=to(i[t]);let{initial:s,animate:a}=t;const l=Le(t),u=Oe(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const d=c?a:s;if(d&&"boolean"!=typeof d&&!Me(d)){(Array.isArray(d)?d:[d]).forEach((e=>{const n=Yn(t,e);if(!n)return;const{transitionEnd:o,transition:i,...s}=n;for(const t in s){let e=s[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(r[t]=e)}for(const t in o)r[t]=o[t]}))}return r}const oo=t=>t,{schedule:ro,cancel:io,state:so,steps:ao}=Ae("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:oo,!0),lo={useVisualState:eo({scrapeMotionValuesFromProps:Xn,createRenderState:zn,onMount:(t,e,{renderState:n,latestValues:o})=>{ro.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),ro.render((()=>{Un(n,o,{enableHardwareAcceleration:!1},In(e.tagName),t.transformTemplate),$n(e,n)}))}})},uo={useVisualState:eo({scrapeMotionValuesFromProps:Kn,createRenderState:kn})};function co(t,e,n,o={passive:!0}){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n)}const ho=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function po(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const mo=t=>e=>ho(e)&&t(e,po(e));function fo(t,e,n,o){return co(t,e,mo(n),o)}const go=(t,e)=>n=>e(t(n)),vo=(...t)=>t.reduce(go);function yo(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const _o=yo("dragHorizontal"),bo=yo("dragVertical");function xo(t){let e=!1;if("y"===t)e=bo();else if("x"===t)e=_o();else{const t=_o(),n=bo();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function wo(){const t=xo(!0);return!t||(t(),!1)}class Eo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function To(t,e){const n="pointer"+(e?"enter":"leave"),o="onHover"+(e?"Start":"End");return fo(t.current,n,((n,r)=>{if("touch"===n.pointerType||wo())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",e),i[o]&&ro.update((()=>i[o](n,r)))}),{passive:!t.getProps()[o]})}const Po=(t,e)=>!!e&&(t===e||Po(t,e.parentElement));function So(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,po(n))}const Co=new WeakMap,Ao=new WeakMap,ko=t=>{const e=Co.get(t.target);e&&e(t)},Ro=t=>{t.forEach(ko)};function Vo(t,e,n){const o=function({root:t,...e}){const n=t||document;Ao.has(n)||Ao.set(n,{});const o=Ao.get(n),r=JSON.stringify(e);return o[r]||(o[r]=new IntersectionObserver(Ro,{root:t,...e})),o[r]}(e);return Co.set(t,n),o.observe(t),()=>{Co.delete(t),o.unobserve(t)}}const Fo={some:0,all:1};const Mo={inView:{Feature:class extends Eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:o="some",once:r}=t,i={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:Fo[o]};return Vo(this.node.current,i,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,r&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:o}=this.node.getProps(),i=e?n:o;i&&i(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Eo{constructor(){super(...arguments),this.removeStartListeners=oo,this.removeEndListeners=oo,this.removeAccessibleListeners=oo,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),o=fo(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:o,globalTapTarget:r}=this.node.getProps();ro.update((()=>{r||Po(this.node.current,t.target)?n&&n(t,e):o&&o(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),r=fo(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=vo(o,r),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=co(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=co(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&So("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&ro.update((()=>n(t,e)))}))})),So("down",((t,e)=>{this.startPress(t,e)}))})),e=co(this.node.current,"blur",(()=>{this.isPressing&&So("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=vo(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ro.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!wo()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ro.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=fo(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=co(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=vo(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Eo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=vo(co(this.node.current,"focus",(()=>this.onFocus())),co(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Eo{mount(){this.unmount=vo(To(this.node,!0),To(this.node,!1))}unmount(){}}}};function Do(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}function jo(t,e,n){const o=t.getProps();return Yn(o,e,void 0!==n?n:o.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}let Lo=oo,Oo=oo;"production"!==process.env.NODE_ENV&&(Lo=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},Oo=(t,e)=>{if(!t)throw new Error(e)});const Bo=t=>1e3*t,No=t=>t/1e3,Uo=!1,zo=t=>Array.isArray(t)&&"number"==typeof t[0];function Io(t){return Boolean(!t||"string"==typeof t&&Zo[t]||zo(t)||Array.isArray(t)&&t.every(Io))}const Wo=([t,e,n,o])=>`cubic-bezier(${t}, ${e}, ${n}, ${o})`,Zo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wo([0,.65,.55,1]),circOut:Wo([.55,0,1,.45]),backIn:Wo([.31,.01,.66,-.59]),backOut:Wo([.33,1.53,.69,.99])};function Go(t){if(t)return zo(t)?Wo(t):Array.isArray(t)?t.map(Go):Zo[t]}const Ho=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,$o=1e-7,Ko=12;function Xo(t,e,n,o){if(t===e&&n===o)return oo;const r=e=>function(t,e,n,o,r){let i,s,a=0;do{s=e+(n-e)/2,i=Ho(s,o,r)-t,i>0?n=s:e=s}while(Math.abs(i)>$o&&++a<Ko);return s}(e,0,1,t,n);return t=>0===t||1===t?t:Ho(r(t),e,o)}const Yo=Xo(.42,0,1,1),qo=Xo(0,0,.58,1),Qo=Xo(.42,0,.58,1),Jo=t=>Array.isArray(t)&&"number"!=typeof t[0],tr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,er=t=>e=>1-t(1-e),nr=t=>1-Math.sin(Math.acos(t)),or=er(nr),rr=tr(nr),ir=Xo(.33,1.53,.69,.99),sr=er(ir),ar=tr(sr),lr={linear:oo,easeIn:Yo,easeInOut:Qo,easeOut:qo,circIn:nr,circInOut:rr,circOut:or,backIn:sr,backInOut:ar,backOut:ir,anticipate:t=>(t*=2)<1?.5*sr(t):.5*(2-Math.pow(2,-10*(t-1)))},ur=t=>{if(Array.isArray(t)){Oo(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,o,r]=t;return Xo(e,n,o,r)}return"string"==typeof t?(Oo(void 0!==lr[t],`Invalid easing type '${t}'`),lr[t]):t},cr=(t,e,n)=>{const o=e-t;return 0===o?1:(n-t)/o},dr=(t,e,n)=>t+(e-t)*n;function hr(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const pr=(t,e)=>n=>Boolean(yn(n)&&vn.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),mr=(t,e,n)=>o=>{if(!yn(o))return o;const[r,i,s,a]=o.match(fn);return{[t]:parseFloat(r),[e]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},fr={...dn,transform:t=>Math.round((t=>cn(0,255,t))(t))},gr={test:pr("rgb","red"),parse:mr("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:o=1})=>"rgba("+fr.transform(t)+", "+fr.transform(e)+", "+fr.transform(n)+", "+mn(hn.transform(o))+")"};const vr={test:pr("#"),parse:function(t){let e="",n="",o="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),o=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),o=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,o+=o,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}},transform:gr.transform},yr={test:pr("hsl","hue"),parse:mr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:o=1})=>"hsla("+Math.round(t)+", "+xn.transform(mn(e))+", "+xn.transform(mn(n))+", "+mn(hn.transform(o))+")"},_r=(t,e,n)=>{const o=t*t,r=n*(e*e-o)+o;return r<0?0:Math.sqrt(r)},br=[vr,gr,yr];function xr(t){const e=(n=t,br.find((t=>t.test(n))));var n;Oo(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let o=e.parse(t);return e===yr&&(o=function({hue:t,saturation:e,lightness:n,alpha:o}){t/=360,n/=100;let r=0,i=0,s=0;if(e/=100){const o=n<.5?n*(1+e):n+e-n*e,a=2*n-o;r=hr(a,o,t+1/3),i=hr(a,o,t),s=hr(a,o,t-1/3)}else r=i=s=n;return{red:Math.round(255*r),green:Math.round(255*i),blue:Math.round(255*s),alpha:o}}(o)),o}const wr=(t,e)=>{const n=xr(t),o=xr(e),r={...n};return t=>(r.red=_r(n.red,o.red,t),r.green=_r(n.green,o.green,t),r.blue=_r(n.blue,o.blue,t),r.alpha=dr(n.alpha,o.alpha,t),gr.transform(r))},Er={test:t=>gr.test(t)||vr.test(t)||yr.test(t),parse:t=>gr.test(t)?gr.parse(t):yr.test(t)?yr.parse(t):vr.parse(t),transform:t=>yn(t)?t:t.hasOwnProperty("red")?gr.transform(t):yr.transform(t)};const Tr="number",Pr="color",Sr="var",Cr="var(",Ar="${}",kr=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function Rr(t){const e=t.toString(),n=e.match(kr)||[],o=[],r={color:[],number:[],var:[]},i=[];for(let t=0;t<n.length;t++){const e=n[t];Er.test(e)?(r.color.push(t),i.push(Pr),o.push(Er.parse(e))):e.startsWith(Cr)?(r.var.push(t),i.push(Sr),o.push(e)):(r.number.push(t),i.push(Tr),o.push(parseFloat(e)))}return{values:o,split:e.replace(kr,Ar).split(Ar),indexes:r,types:i}}function Vr(t){return Rr(t).values}function Fr(t){const{split:e,types:n}=Rr(t),o=e.length;return t=>{let r="";for(let i=0;i<o;i++)if(r+=e[i],void 0!==t[i]){const e=n[i];r+=e===Tr?mn(t[i]):e===Pr?Er.transform(t[i]):t[i]}return r}}const Mr=t=>"number"==typeof t?0:t;const Dr={test:function(t){var e,n;return isNaN(t)&&yn(t)&&((null===(e=t.match(fn))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(gn))||void 0===n?void 0:n.length)||0)>0},parse:Vr,createTransformer:Fr,getAnimatableNone:function(t){const e=Vr(t);return Fr(t)(e.map(Mr))}};function jr(t,e){return n=>n>0?e:t}function Lr(t,e){return n=>dr(t,e,n)}function Or(t){return"number"==typeof t?Lr:"string"==typeof t?an(t)?jr:Er.test(t)?wr:Ur:Array.isArray(t)?Br:"object"==typeof t?Er.test(t)?wr:Nr:jr}function Br(t,e){const n=[...t],o=n.length,r=t.map(((t,n)=>Or(t)(t,e[n])));return t=>{for(let e=0;e<o;e++)n[e]=r[e](t);return n}}function Nr(t,e){const n={...t,...e},o={};for(const r in n)void 0!==t[r]&&void 0!==e[r]&&(o[r]=Or(t[r])(t[r],e[r]));return t=>{for(const e in o)n[e]=o[e](t);return n}}const Ur=(t,e)=>{const n=Dr.createTransformer(e),o=Rr(t),r=Rr(e);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?vo(Br(function(t,e){var n;const o=[],r={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const s=e.types[i],a=t.indexes[s][r[s]],l=null!==(n=t.values[a])&&void 0!==n?n:0;o[i]=l,r[s]++}return o}(o,r),r.values),n):(Lo(!0,`Complex values '${t}' and '${e}' 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.`),jr(t,e))};function zr(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return dr(t,e,n);return Or(t)(t,e)}function Ir(t,e,{clamp:n=!0,ease:o,mixer:r}={}){const i=t.length;if(Oo(i===e.length,"Both input and output ranges must be the same length"),1===i)return()=>e[0];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=function(t,e,n){const o=[],r=n||zr,i=t.length-1;for(let n=0;n<i;n++){let i=r(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||oo:e;i=vo(t,i)}o.push(i)}return o}(e,o,r),a=s.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const o=cr(t[n],t[n+1],e);return s[n](o)};return n?e=>l(cn(t[0],t[i-1],e)):l}function Wr(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let o=1;o<=e;o++){const r=cr(0,e,o);t.push(dr(n,1,r))}}(e,t.length-1),e}function Zr({duration:t=300,keyframes:e,times:n,ease:o="easeInOut"}){const r=Jo(o)?o.map(ur):ur(o),i={done:!1,value:e[0]},s=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:Wr(e),t),a=Ir(s,e,{ease:Array.isArray(r)?r:(l=e,u=r,l.map((()=>u||Qo)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(i.value=a(e),i.done=e>=t,i)}}function Gr(t,e){return e?t*(1e3/e):0}const Hr=5;function $r(t,e,n){const o=Math.max(e-Hr,0);return Gr(n-t(o),e-o)}const Kr=.001,Xr=.01,Yr=10,qr=.05,Qr=1;function Jr({duration:t=800,bounce:e=.25,velocity:n=0,mass:o=1}){let r,i;Lo(t<=Bo(Yr),"Spring duration must be 10 seconds or less");let s=1-e;s=cn(qr,Qr,s),t=cn(Xr,Yr,No(t)),s<1?(r=e=>{const o=e*s,r=o*t,i=o-n,a=ei(e,s),l=Math.exp(-r);return Kr-i/a*l},i=e=>{const o=e*s*t,i=o*n+n,a=Math.pow(s,2)*Math.pow(e,2)*t,l=Math.exp(-o),u=ei(Math.pow(e,2),s);return(-r(e)+Kr>0?-1:1)*((i-a)*l)/u}):(r=e=>Math.exp(-e*t)*((e-n)*t+1)-Kr,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let o=n;for(let n=1;n<ti;n++)o-=t(o)/e(o);return o}(r,i,5/t);if(t=Bo(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*o;return{stiffness:e,damping:2*s*Math.sqrt(o*e),duration:t}}}const ti=12;function ei(t,e){return t*Math.sqrt(1-e*e)}const ni=["duration","bounce"],oi=["stiffness","damping","mass"];function ri(t,e){return e.some((e=>void 0!==t[e]))}function ii({keyframes:t,restDelta:e,restSpeed:n,...o}){const r=t[0],i=t[t.length-1],s={done:!1,value:r},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:h}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ri(t,oi)&&ri(t,ni)){const n=Jr(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...o,velocity:-No(o.velocity||0)}),p=d||0,m=l/(2*Math.sqrt(a*u)),f=i-r,g=No(Math.sqrt(a/u)),v=Math.abs(f)<5;let y;if(n||(n=v?.01:2),e||(e=v?.005:.5),m<1){const t=ei(g,m);y=e=>{const n=Math.exp(-m*g*e);return i-n*((p+m*g*f)/t*Math.sin(t*e)+f*Math.cos(t*e))}}else if(1===m)y=t=>i-Math.exp(-g*t)*(f+(p+g*f)*t);else{const t=g*Math.sqrt(m*m-1);y=e=>{const n=Math.exp(-m*g*e),o=Math.min(t*e,300);return i-n*((p+m*g*f)*Math.sinh(o)+t*f*Math.cosh(o))/t}}return{calculatedDuration:h&&c||null,next:t=>{const o=y(t);if(h)s.done=t>=c;else{let r=p;0!==t&&(r=m<1?$r(y,t,o):0);const a=Math.abs(r)<=n,l=Math.abs(i-o)<=e;s.done=a&&l}return s.value=s.done?i:o,s}}}function si({keyframes:t,velocity:e=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],h={done:!1,value:d},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=d+m,g=void 0===s?f:s(f);g!==f&&(m=g-d);const v=t=>-m*Math.exp(-t/o),y=t=>g+v(t),_=t=>{const e=v(t),n=y(t);h.done=Math.abs(e)<=u,h.value=h.done?g:n};let b,x;const w=t=>{var e;(e=h.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(b=t,x=ii({keyframes:[h.value,p(h.value)],velocity:$r(y,t,h.value),damping:r,stiffness:i,restDelta:u,restSpeed:c}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return x||void 0!==b||(e=!0,_(t),w(t)),void 0!==b&&t>b?x.next(t-b):(!e&&_(t),h)}}}let ai;function li(){ai=void 0}const ui={now:()=>(void 0===ai&&ui.set(so.isProcessing||Pe?so.timestamp:performance.now()),ai),set:t=>{ai=t,queueMicrotask(li)}},ci=t=>{const e=({timestamp:e})=>t(e);return{start:()=>ro.update(e,!0),stop:()=>io(e),now:()=>so.isProcessing?so.timestamp:ui.now()}},di=2e4;function hi(t){let e=0;let n=t.next(e);for(;!n.done&&e<di;)e+=50,n=t.next(e);return e>=di?1/0:e}const pi={decay:si,inertia:si,tween:Zr,keyframes:Zr,spring:ii},mi=t=>t/100;function fi({autoplay:t=!0,delay:e=0,driver:n=ci,keyframes:o,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...h}){let p,m,f=1,g=!1;const v=()=>{m=new Promise((t=>{p=t}))};let y;v();const _=pi[r]||Zr;let b;_!==Zr&&"number"!=typeof o[0]&&("production"!==process.env.NODE_ENV&&Oo(2===o.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),b=vo(mi,zr(o[0],o[1])),o=[0,100]);const x=_({...h,keyframes:o});let w;"mirror"===a&&(w=_({...h,keyframes:[...o].reverse(),velocity:-(h.velocity||0)}));let E="idle",T=null,P=null,S=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=hi(x));const{calculatedDuration:C}=x;let A=1/0,k=1/0;null!==C&&(A=C+s,k=A*(i+1)-s);let R=0;const V=t=>{if(null===P)return;f>0&&(P=Math.min(P,t)),f<0&&(P=Math.min(t-k/f,P)),R=null!==T?T:Math.round(t-P)*f;const n=R-e*(f>=0?1:-1),r=f>=0?n<0:n>k;R=Math.max(n,0),"finished"===E&&null===T&&(R=k);let l=R,u=x;if(i){const t=Math.min(R,k)/A;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,i+1);Boolean(e%2)&&("reverse"===a?(n=1-n,s&&(n-=s/A)):"mirror"===a&&(u=w)),l=cn(0,1,n)*A}const c=r?{done:!1,value:o[0]}:u.next(l);b&&(c.value=b(c.value));let{done:h}=c;r||null===C||(h=f>=0?R>=k:R<=0);const p=null===T&&("finished"===E||"running"===E&&h);return d&&d(c.value),p&&D(),c},F=()=>{y&&y.stop(),y=void 0},M=()=>{E="idle",F(),p(),v(),P=S=null},D=()=>{E="finished",c&&c(),F(),p()},j=()=>{if(g)return;y||(y=n(V));const t=y.now();l&&l(),null!==T?P=t-T:P&&"finished"!==E||(P=t),"finished"===E&&v(),S=P,T=null,E="running",y.start()};t&&j();const L={then:(t,e)=>m.then(t,e),get time(){return No(R)},set time(t){t=Bo(t),R=t,null===T&&y&&0!==f?P=y.now()-t/f:T=t},get duration(){const t=null===x.calculatedDuration?hi(x):x.calculatedDuration;return No(t)},get speed(){return f},set speed(t){t!==f&&y&&(f=t,L.time=No(R))},get state(){return E},play:j,pause:()=>{E="paused",T=R},stop:()=>{g=!0,"idle"!==E&&(E="idle",u&&u(),M())},cancel:()=>{null!==S&&V(S),M()},complete:()=>{E="finished"},sample:t=>(P=0,V(t))};return L}const gi=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),vi=new Set(["opacity","clipPath","filter","transform"]);function yi(t,e,{onUpdate:n,onComplete:o,...r}){if(!(gi()&&vi.has(e)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping&&"inertia"!==r.type))return!1;let i,s,a=!1,l=!1;const u=()=>{s=new Promise((t=>{i=t}))};u();let{keyframes:c,duration:d=300,ease:h,times:p}=r;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!Io(e.ease))(e,r)){const t=fi({...r,repeat:0,delay:0});let e={done:!1,value:c[0]};const n=[];let o=0;for(;!e.done&&o<2e4;)e=t.sample(o),n.push(e.value),o+=10;p=void 0,c=n,d=o-10,h="linear"}const m=function(t,e,n,{delay:o=0,duration:r,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Go(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:o,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,c,{...r,duration:d,ease:h,times:p}),f=()=>{l=!1,m.cancel()},g=()=>{l=!0,ro.update(f),i(),u()};m.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(c,r)),o&&o(),g())};return{then:(t,e)=>s.then(t,e),attachTimeline:t=>(m.timeline=t,m.onfinish=null,oo),get time(){return No(m.currentTime||0)},set time(t){m.currentTime=Bo(t)},get speed(){return m.playbackRate},set speed(t){m.playbackRate=t},get duration(){return No(d)},play:()=>{a||(m.play(),io(f))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;const{currentTime:e}=m;if(e){const n=fi({...r,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}g()},complete:()=>{l||m.finish()},cancel:g}}const _i={type:"spring",stiffness:500,damping:25,restSpeed:10},bi={type:"keyframes",duration:.8},xi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wi=(t,{keyframes:e})=>e.length>2?bi:Qe.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:_i:xi,Ei=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Dr.test(e)&&"0"!==e||e.startsWith("url("))),Ti=new Set(["brightness","contrast","saturate","opacity"]);function Pi(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[o]=n.match(fn)||[];if(!o)return t;const r=n.replace(o,"");let i=Ti.has(e)?1:0;return o!==n&&(i*=100),e+"("+i+r+")"}const Si=/([a-z-]*)\(.*?\)/g,Ci={...Dr,getAnimatableNone:t=>{const e=t.match(Si);return e?e.map(Pi).join(" "):t}},Ai={...Cn,color:Er,backgroundColor:Er,outlineColor:Er,fill:Er,stroke:Er,borderColor:Er,borderTopColor:Er,borderRightColor:Er,borderBottomColor:Er,borderLeftColor:Er,filter:Ci,WebkitFilter:Ci},ki=t=>Ai[t];function Ri(t,e){let n=ki(t);return n!==Ci&&(n=Dr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Vi=t=>/^0[^.\s]+$/.test(t);function Fi(t){return"number"==typeof t?0===t:null!==t?"none"===t||"0"===t||Vi(t):void 0}function Mi(t,e){return t[e]||t.default||t}const Di=(t,e,n,o={})=>r=>{const i=Mi(o,t)||{},s=i.delay||o.delay||0;let{elapsed:a=0}=o;a-=Bo(s);const l=function(t,e,n,o){const r=Ei(e,n);let i;i=Array.isArray(n)?[...n]:[null,n];const s=void 0!==o.from?o.from:t.get();let a;const l=[];for(let t=0;t<i.length;t++)null===i[t]&&(i[t]=0===t?s:i[t-1]),Fi(i[t])&&l.push(t),"string"==typeof i[t]&&"none"!==i[t]&&"0"!==i[t]&&(a=i[t]);if(r&&l.length&&a)for(let t=0;t<l.length;t++)i[l[t]]=Ri(e,a);return i}(e,t,n,i),u=l[0],c=l[l.length-1],d=Ei(t,u),h=Ei(t,c);Lo(d===h,`You are trying to animate ${t} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:t=>{e.set(t),i.onUpdate&&i.onUpdate(t)},onComplete:()=>{r(),i.onComplete&&i.onComplete()}};if(function({when:t,delay:e,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(i)||(p={...p,...wi(t,p)}),p.duration&&(p.duration=Bo(p.duration)),p.repeatDelay&&(p.repeatDelay=Bo(p.repeatDelay)),!d||!h||Uo||!1===i.type||Te)return function({keyframes:t,delay:e,onUpdate:n,onComplete:o}){const r=()=>(n&&n(t[t.length-1]),o&&o(),{time:0,speed:1,duration:0,play:oo,pause:oo,stop:oo,then:t=>(t(),Promise.resolve()),cancel:oo,complete:oo});return e?fi({keyframes:[0,1],duration:0,delay:e,onComplete:r}):r()}(p);if(!o.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=yi(e,t,p);if(n)return n}return fi(p)};function ji(t){return Boolean(tn(t)&&t.add)}const Li=t=>/^\-?\d*\.?\d+$/.test(t);function Oi(t,e){-1===t.indexOf(e)&&t.push(e)}function Bi(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ni{constructor(){this.subscriptions=[]}add(t){return Oi(this.subscriptions,t),()=>Bi(this.subscriptions,t)}notify(t,e,n){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](t,e,n);else for(let r=0;r<o;r++){const o=this.subscriptions[r];o&&o(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ui=new Set;function zi(t,e,n){t||Ui.has(e)||(console.warn(e),n&&console.warn(n),Ui.add(e))}class Ii{constructor(t,e={}){var n;this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=ui.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ui.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&zi(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Ni);const n=this.events[t].add(e);return"change"===t?()=>{n(),ro.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ui.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Gr(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Wi(t,e){return new Ii(t,e)}const Zi=t=>e=>e.test(t),Gi=[dn,wn,xn,bn,Tn,En,{test:t=>"auto"===t,parse:t=>t}],Hi=t=>Gi.find(Zi(t)),$i=[...Gi,Er,Dr];function Ki(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Wi(n))}function Xi(t,e){if(!e)return;return(e[t]||e.default||e).from}function Yi({protectedKeys:t,needsAnimating:e},n){const o=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,o}function qi(t,e){const n=t.get();if(!Array.isArray(e))return n!==e;for(let t=0;t<e.length;t++)if(e[t]!==n)return!0}function Qi(t,e,{delay:n=0,transitionOverride:o,type:r}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");o&&(i=o);const u=[],c=r&&t.animationState&&t.animationState.getState()[r];for(const e in a){const o=t.getValue(e),r=a[e];if(!o||void 0===r||c&&Yi(c,e))continue;const s={delay:n,elapsed:0,...Mi(i||{},e)};if(window.HandoffAppearAnimations){const n=t.getProps()[Ee];if(n){const t=window.HandoffAppearAnimations(n,e,o,ro);null!==t&&(s.elapsed=t,s.isHandoff=!0)}}let d=!s.isHandoff&&!qi(o,r);if("spring"===s.type&&(o.getVelocity()||s.velocity)&&(d=!1),o.animation&&(d=!1),d)continue;o.start(Di(e,o,r,t.shouldReduceMotion&&Qe.has(e)?{type:!1}:s));const h=o.animation;ji(l)&&(l.add(e),h.then((()=>l.remove(e)))),u.push(h)}return s&&Promise.all(u).then((()=>{s&&function(t,e){const n=jo(t,e);let{transitionEnd:o={},transition:r={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...o};for(const e in i)Ki(t,e,Jn(i[e]))}(t,s)})),u}function Ji(t,e,n={}){const o=jo(t,e,n.custom);let{transition:r=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(r=n.transitionOverride);const i=o?()=>Promise.all(Qi(t,o,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(o=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=r;return function(t,e,n=0,o=0,r=1,i){const s=[],a=(t.variantChildren.size-1)*o,l=1===r?(t=0)=>t*o:(t=0)=>a-t*o;return Array.from(t.variantChildren).sort(ts).forEach(((t,o)=>{t.notify("AnimationStart",e),s.push(Ji(t,e,{...i,delay:n+l(o)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,i+o,s,a,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[t,e]="beforeChildren"===a?[i,s]:[s,i];return t().then((()=>e()))}return Promise.all([i(),s(n.delay)])}function ts(t,e){return t.sortNodePosition(e)}const es=[...De].reverse(),ns=De.length;function os(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let o;if(t.notify("AnimationStart",e),Array.isArray(e)){const r=e.map((e=>Ji(t,e,n)));o=Promise.all(r)}else if("string"==typeof e)o=Ji(t,e,n);else{const r="function"==typeof e?jo(t,e,n.custom):e;o=Promise.all(Qi(t,r,n))}return o.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function rs(t){let e=os(t);const n={animate:ss(!0),whileInView:ss(),whileHover:ss(),whileTap:ss(),whileDrag:ss(),whileFocus:ss(),exit:ss()};let o=!0;const r=(e,n)=>{const o=jo(t,n);if(o){const{transition:t,transitionEnd:n,...r}=o;e={...e,...r,...n}}return e};function i(i,s){const a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set;let d={},h=1/0;for(let e=0;e<ns;e++){const p=es[e],m=n[p],f=void 0!==a[p]?a[p]:l[p],g=Fe(f),v=p===s?m.isActive:null;!1===v&&(h=e);let y=f===l[p]&&f!==a[p]&&g;if(y&&o&&t.manuallyAnimateOnMount&&(y=!1),m.protectedKeys={...d},!m.isActive&&null===v||!f&&!m.prevProp||Me(f)||"boolean"==typeof f)continue;let _=is(m.prevProp,f)||p===s&&m.isActive&&!y&&g||e>h&&g,b=!1;const x=Array.isArray(f)?f:[f];let w=x.reduce(r,{});!1===v&&(w={});const{prevResolvedValues:E={}}=m,T={...E,...w},P=t=>{_=!0,c.has(t)&&(b=!0,c.delete(t)),m.needsAnimating[t]=!0};for(const t in T){const e=w[t],n=E[t];if(d.hasOwnProperty(t))continue;let o=!1;o=qn(e)&&qn(n)?!Do(e,n):e!==n,o?void 0!==e?P(t):c.add(t):void 0!==e&&c.has(t)?P(t):m.protectedKeys[t]=!0}m.prevProp=f,m.prevResolvedValues=w,m.isActive&&(d={...d,...w}),o&&t.blockInitialAnimation&&(_=!1),!_||y&&!b||u.push(...x.map((t=>({animation:t,options:{type:p,...i}}))))}if(c.size){const e={};c.forEach((n=>{const o=t.getBaseTarget(n);void 0!==o&&(e[n]=o)})),u.push({animation:e})}let p=Boolean(u.length);return!o||!1!==a.initial&&a.initial!==a.animate||t.manuallyAnimateOnMount||(p=!1),o=!1,p?e(u):Promise.resolve()}return{animateChanges:i,setActive:function(e,o,r){var s;if(n[e].isActive===o)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,o)})),n[e].isActive=o;const a=i(r,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function is(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Do(e,t)}function ss(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let as=0;const ls={animation:{Feature:class extends Eo{constructor(t){super(t),t.animationState||(t.animationState=rs(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Me(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Eo{constructor(){super(...arguments),this.id=as++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&r.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},us=(t,e)=>Math.abs(t-e);class cs{constructor(t,e,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=ps(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=us(t.x,e.x),o=us(t.y,e.y);return Math.sqrt(n**2+o**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:o}=t,{timestamp:r}=so;this.history.push({...o,timestamp:r});const{onStart:i,onMove:s}=this.handlers;e||(i&&i(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ds(e,this.transformPagePoint),ro.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:o,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=ps("pointercancel"===t.type?this.lastMoveEventInfo:ds(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),o&&o(t,i)},!ho(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=n,this.contextWindow=o||window;const i=ds(po(t),this.transformPagePoint),{point:s}=i,{timestamp:a}=so;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,ps(i,this.history)),this.removeListeners=vo(fo(this.contextWindow,"pointermove",this.handlePointerMove),fo(this.contextWindow,"pointerup",this.handlePointerUp),fo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),io(this.updatePoint)}}function ds(t,e){return e?{point:e(t.point)}:t}function hs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ps({point:t},e){return{point:t,delta:hs(t,fs(e)),offset:hs(t,ms(e)),velocity:gs(e,.1)}}function ms(t){return t[0]}function fs(t){return t[t.length-1]}function gs(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,o=null;const r=fs(t);for(;n>=0&&(o=t[n],!(r.timestamp-o.timestamp>Bo(e)));)n--;if(!o)return{x:0,y:0};const i=No(r.timestamp-o.timestamp);if(0===i)return{x:0,y:0};const s={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function vs(t){return t.max-t.min}function ys(t,e=0,n=.01){return Math.abs(t-e)<=n}function _s(t,e,n,o=.5){t.origin=o,t.originPoint=dr(e.min,e.max,t.origin),t.scale=vs(n)/vs(e),(ys(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=dr(n.min,n.max,t.origin)-t.originPoint,(ys(t.translate)||isNaN(t.translate))&&(t.translate=0)}function bs(t,e,n,o){_s(t.x,e.x,n.x,o?o.originX:void 0),_s(t.y,e.y,n.y,o?o.originY:void 0)}function xs(t,e,n){t.min=n.min+e.min,t.max=t.min+vs(e)}function ws(t,e,n){t.min=e.min-n.min,t.max=t.min+vs(e)}function Es(t,e,n){ws(t.x,e.x,n.x),ws(t.y,e.y,n.y)}function Ts(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Ps(t,e){let n=e.min-t.min,o=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,o]=[o,n]),{min:n,max:o}}const Ss=.35;function Cs(t,e,n){return{min:As(t,e),max:As(t,n)}}function As(t,e){return"number"==typeof t?t:t[e]||0}const ks=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Rs=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Vs(t){return[t("x"),t("y")]}function Fs({top:t,left:e,right:n,bottom:o}){return{x:{min:e,max:n},y:{min:t,max:o}}}function Ms(t){return void 0===t||1===t}function Ds({scale:t,scaleX:e,scaleY:n}){return!Ms(t)||!Ms(e)||!Ms(n)}function js(t){return Ds(t)||Ls(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Ls(t){return Os(t.x)||Os(t.y)}function Os(t){return t&&"0%"!==t}function Bs(t,e,n){return n+e*(t-n)}function Ns(t,e,n,o,r){return void 0!==r&&(t=Bs(t,r,o)),Bs(t,n,o)+e}function Us(t,e=0,n=1,o,r){t.min=Ns(t.min,e,n,o,r),t.max=Ns(t.max,e,n,o,r)}function zs(t,{x:e,y:n}){Us(t.x,e.translate,e.scale,e.originPoint),Us(t.y,n.translate,n.scale,n.originPoint)}function Is(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Ws(t,e){t.min=t.min+e,t.max=t.max+e}function Zs(t,e,[n,o,r]){const i=void 0!==e[r]?e[r]:.5,s=dr(t.min,t.max,i);Us(t,e[n],e[o],s,e.scale)}const Gs=["x","scaleX","originX"],Hs=["y","scaleY","originY"];function $s(t,e){Zs(t.x,e,Gs),Zs(t.y,e,Hs)}function Ks(t,e){return Fs(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(t.getBoundingClientRect(),e))}const Xs=({current:t})=>t?t.ownerDocument.defaultView:null,Ys=new WeakMap;class qs{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Rs(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new cs(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(po(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:o,onDragStart:r}=this.getProps();if(n&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=xo(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vs((t=>{let e=this.getAxisMotionValue(t).get()||0;if(xn.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const o=n.layout.layoutBox[t];if(o){e=vs(o)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),r&&ro.update((()=>r(t,e)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:o,onDirectionLock:r,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=e;if(o&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),i&&i(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>Vs((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,contextWindow:Xs(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=e;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&ro.update((()=>r(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:o}=this.getProps();if(!n||!Qs(t,o,this.currentDirection))return;const r=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=function(t,{min:e,max:n},o){return void 0!==e&&t<e?t=o?dr(e,t,o.min):Math.max(t,e):void 0!==n&&t>n&&(t=o?dr(n,t,o.max):Math.min(t,n)),t}(i,this.constraints[t],this.elastic[t])),r.set(i)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&Ve(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!o)&&function(t,{top:e,left:n,bottom:o,right:r}){return{x:Ts(t.x,n,r),y:Ts(t.y,e,o)}}(o.layoutBox,e),this.elastic=function(t=Ss){return!1===t?t=0:!0===t&&(t=Ss),{x:Cs(t,"left","right"),y:Cs(t,"top","bottom")}}(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Vs((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(o.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Ve(t))return!1;const n=t.current;Oo(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const r=function(t,e,n){const o=Ks(t,n),{scroll:r}=e;return r&&(Ws(o.x,r.offset.x),Ws(o.y,r.offset.y)),o}(n,o.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:Ps(t.x,e.x),y:Ps(t.y,e.y)}}(o.layout.layoutBox,r);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(i));this.hasMutatedConstraints=!!t,t&&(i=Fs(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:o,dragTransition:r,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Vs((s=>{if(!Qs(s,e,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const u=o?200:1e6,c=o?40:1e7,d={type:"inertia",velocity:n?t[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(Di(t,n,0,e))}stopAnimation(){Vs((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){Vs((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[e];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Vs((e=>{const{drag:n}=this.getProps();if(!Qs(e,n,this.currentDirection))return;const{projection:o}=this.visualElement,r=this.getAxisMotionValue(e);if(o&&o.layout){const{min:n,max:i}=o.layout.layoutBox[e];r.set(t[e]-dr(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Ve(e)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Vs((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();o[t]=function(t,e){let n=.5;const o=vs(t),r=vs(e);return r>o?n=cr(e.min,e.max-o,t.min):o>r&&(n=cr(t.min,t.max-r,e.min)),cn(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Vs((e=>{if(!Qs(e,t,null))return;const n=this.getAxisMotionValue(e),{min:r,max:i}=this.constraints[e];n.set(dr(r,i,o[e]))}))}addListeners(){if(!this.visualElement.current)return;Ys.set(this.visualElement,this);const t=fo(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();Ve(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const r=co(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Vs((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{r(),t(),o(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:r=!1,dragElastic:i=Ss,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:o,dragConstraints:r,dragElastic:i,dragMomentum:s}}}function Qs(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Js=t=>(e,n)=>{t&&ro.update((()=>t(e,n)))};const ta={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ea(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const na={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!wn.test(t))return t;t=parseFloat(t)}return`${ea(t,e.target.x)}% ${ea(t,e.target.y)}%`}},oa={correct:(t,{treeScale:e,projectionDelta:n})=>{const o=t,r=Dr.parse(t);if(r.length>5)return o;const i=Dr.createTransformer(t),s="number"!=typeof r[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;r[0+s]/=a,r[1+s]/=l;const u=dr(a,l,.5);return"number"==typeof r[2+s]&&(r[2+s]/=u),"number"==typeof r[3+s]&&(r[3+s]/=u),i(r)}};class ra extends t.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:o}=this.props,{projection:r}=t;var i;i=sa,Object.assign(Ye,i),r&&(e.group&&e.group.add(r),n&&n.register&&o&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",(()=>{this.safeToRemove()})),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ta.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:o,isPresent:r}=this.props,i=n.projection;return i?(i.isPresent=r,o||t.layoutDependency!==e||void 0===e?i.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?i.promote():i.relegate()||ro.postRender((()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ke.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ia(e){const[n,o]=function(){const e=t.useContext(ye);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=e,i=t.useId();return t.useEffect((()=>r(i)),[]),!n&&o?[!1,()=>o&&o(i)]:[!0]}(),r=t.useContext(Ie);return t.createElement(ra,{...e,layoutGroup:r,switchLayoutGroup:t.useContext(We),isPresent:n,safeToRemove:o})}const sa={borderRadius:{...na,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:na,borderTopRightRadius:na,borderBottomLeftRadius:na,borderBottomRightRadius:na,boxShadow:oa},aa=["TopLeft","TopRight","BottomLeft","BottomRight"],la=aa.length,ua=t=>"string"==typeof t?parseFloat(t):t,ca=t=>"number"==typeof t||wn.test(t);function da(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const ha=ma(0,.5,or),pa=ma(.5,.95,oo);function ma(t,e,n){return o=>o<t?0:o>e?1:n(cr(t,e,o))}function fa(t,e){t.min=e.min,t.max=e.max}function ga(t,e){fa(t.x,e.x),fa(t.y,e.y)}function va(t,e,n,o,r){return t=Bs(t-=e,1/n,o),void 0!==r&&(t=Bs(t,1/r,o)),t}function ya(t,e,[n,o,r],i,s){!function(t,e=0,n=1,o=.5,r,i=t,s=t){xn.test(e)&&(e=parseFloat(e),e=dr(s.min,s.max,e/100)-s.min);if("number"!=typeof e)return;let a=dr(i.min,i.max,o);t===i&&(a-=e),t.min=va(t.min,e,n,a,r),t.max=va(t.max,e,n,a,r)}(t,e[n],e[o],e[r],e.scale,i,s)}const _a=["x","scaleX","originX"],ba=["y","scaleY","originY"];function xa(t,e,n,o){ya(t.x,e,_a,n?n.x:void 0,o?o.x:void 0),ya(t.y,e,ba,n?n.y:void 0,o?o.y:void 0)}function wa(t){return 0===t.translate&&1===t.scale}function Ea(t){return wa(t.x)&&wa(t.y)}function Ta(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Pa(t){return vs(t.x)/vs(t.y)}class Sa{constructor(){this.members=[]}add(t){Oi(this.members,t),t.scheduleRender()}remove(t){if(Bi(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;!1===o&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ca(t,e,n){let o="";const r=t.x.translate/e.x,i=t.y.translate/e.y;if((r||i)&&(o=`translate3d(${r}px, ${i}px, 0) `),1===e.x&&1===e.y||(o+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:r}=n;t&&(o+=`rotate(${t}deg) `),e&&(o+=`rotateX(${e}deg) `),r&&(o+=`rotateY(${r}deg) `)}const s=t.x.scale*e.x,a=t.y.scale*e.y;return 1===s&&1===a||(o+=`scale(${s}, ${a})`),o||"none"}const Aa=(t,e)=>t.depth-e.depth;class ka{constructor(){this.children=[],this.isDirty=!1}add(t){Oi(this.children,t),this.isDirty=!0}remove(t){Bi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Aa),this.isDirty=!1,this.children.forEach(t)}}const Ra=["","X","Y","Z"],Va={visibility:"hidden"};let Fa=0;const Ma={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Da({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=Fa++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;this.projectionUpdateScheduled=!1,Ma.totalNodes=Ma.resolvedTargetDeltas=Ma.recalculatedProjection=0,this.nodes.forEach(Oa),this.nodes.forEach(Za),this.nodes.forEach(Ga),this.nodes.forEach(Ba),t=Ma,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ka)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Ni),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var o;this.isSVG=(o=e)instanceof SVGElement&&"svg"!==o.tagName,this.instance=e;const{layoutId:r,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),t){let n;const o=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=ui.now(),o=({timestamp:r})=>{const i=r-n;i>=e&&(io(o),t(i-e))};return ro.read(o,!0),()=>io(o)}(o,250),ta.hasAnimatedSinceResize&&(ta.hasAnimatedSinceResize=!1,this.nodes.forEach(Wa))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||i)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:o})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||s.getDefaultTransition()||qa,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Ta(this.targetLayout,o)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Mi(r,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||Wa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,io(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ha),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ua);this.isUpdating||this.nodes.forEach(za),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(Ia),this.nodes.forEach(ja),this.nodes.forEach(La),this.clearAllSnapshots();const t=ui.now();so.delta=cn(0,1e3/60,t-so.timestamp),so.timestamp=t,so.isProcessing=!0,ao.update.process(so),ao.preRender.process(so),ao.render.process(so),so.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ke.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(Na),this.sharedNodes.forEach($a)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ro.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ro.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Rs(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:o(this.instance),offset:n(this.instance)})}resetTransform(){if(!r)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!Ea(this.projectionDelta),n=this.getTransformTemplate(),o=n?n(this.latestValues,""):void 0,i=o!==this.prevTransformTemplateValue;t&&(e||js(this.latestValues)||i)&&(r(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var o;return t&&(n=this.removeTransform(n)),tl((o=n).x),tl(o.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return Rs();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Ws(e.x,n.offset.x),Ws(e.y,n.offset.y)),e}removeElementScroll(t){const e=Rs();ga(e,t);for(let n=0;n<this.path.length;n++){const o=this.path[n],{scroll:r,options:i}=o;if(o!==this.root&&r&&i.layoutScroll){if(r.isRoot){ga(e,t);const{scroll:n}=this.root;n&&(Ws(e.x,-n.offset.x),Ws(e.y,-n.offset.y))}Ws(e.x,r.offset.x),Ws(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){const n=Rs();ga(n,t);for(let t=0;t<this.path.length;t++){const o=this.path[t];!e&&o.options.layoutScroll&&o.scroll&&o!==o.root&&$s(n,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),js(o.latestValues)&&$s(n,o.latestValues)}return js(this.latestValues)&&$s(n,this.latestValues),n}removeTransform(t){const e=Rs();ga(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!js(n.latestValues))continue;Ds(n.latestValues)&&n.updateSnapshot();const o=Rs();ga(o,n.measurePageBox()),xa(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,o)}return js(this.latestValues)&&xa(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==so.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const o=Boolean(this.resumingFrom)||this!==n;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=so.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Rs(),this.relativeTargetOrigin=Rs(),Es(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),ga(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target=Rs(),this.targetWithTransforms=Rs()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,xs(s.x,a.x,l.x),xs(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ga(this.target,this.layout.layoutBox),zs(this.target,this.targetDelta)):ga(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Rs(),this.relativeTargetOrigin=Rs(),Es(this.relativeTargetOrigin,this.target,t.target),ga(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ma.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ds(this.parent.latestValues)&&!Ls(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let o=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(o=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===so.timestamp&&(o=!1),o)return;const{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!i)return;ga(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,o=!1){const r=n.length;if(!r)return;let i,s;e.x=e.y=1;for(let a=0;a<r;a++){i=n[a],s=i.projectionDelta;const r=i.instance;r&&r.style&&"contents"===r.style.display||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&$s(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,zs(t,s)),o&&js(i.latestValues)&&$s(t,i.latestValues))}e.x=Is(e.x),e.y=Is(e.y)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=Rs());const{target:l}=e;if(!l)return void(this.projectionTransform&&(this.projectionDelta=ks(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=ks(),this.projectionDeltaWithTransform=ks());const u=this.projectionTransform;bs(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Ca(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Ma.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){const n=this.snapshot,o=n?n.latestValues:{},r={...this.latestValues},i=ks();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const s=Rs(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(Ya));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,h,p,m,f,g;Ka(i.x,t.x,n),Ka(i.y,t.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Es(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=s,g=n,Xa(p.x,m.x,f.x,g),Xa(p.y,m.y,f.y,g),d&&(l=this.relativeTarget,h=d,l.x.min===h.x.min&&l.x.max===h.x.max&&l.y.min===h.y.min&&l.y.max===h.y.max)&&(this.isProjectionDirty=!1),d||(d=Rs()),ga(d,this.relativeTarget)),a&&(this.animationValues=r,function(t,e,n,o,r,i){r?(t.opacity=dr(0,void 0!==n.opacity?n.opacity:1,ha(o)),t.opacityExit=dr(void 0!==e.opacity?e.opacity:1,0,pa(o))):i&&(t.opacity=dr(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,o));for(let r=0;r<la;r++){const i=`border${aa[r]}Radius`;let s=da(e,i),a=da(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||ca(s)===ca(a)?(t[i]=Math.max(dr(ua(s),ua(a),o),0),(xn.test(a)||xn.test(s))&&(t[i]+="%")):t[i]=a)}(e.rotate||n.rotate)&&(t.rotate=dr(e.rotate||0,n.rotate||0,o))}(r,o,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(io(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ro.update((()=>{ta.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const o=tn(t)?t:Wi(t);return o.start(Di("",o,e,n)),o.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:o,latestValues:r}=t;if(e&&n&&o){if(this!==t&&this.layout&&o&&el(this.options.animationType,this.layout.layoutBox,o.layoutBox)){n=this.target||Rs();const e=vs(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const o=vs(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+o}ga(e,n),$s(e,r),bs(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Sa);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const o=this.getStack();o&&o.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const o={};for(let e=0;e<Ra.length;e++){const r="rotate"+Ra[e];n[r]&&(o[r]=n[r],t.setStaticValue(r,0))}t.render();for(const e in o)t.setStaticValue(e,o[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Va;const o={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=to(null==t?void 0:t.pointerEvents)||"",o.transform=r?r(this.latestValues,""):"none",o;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=to(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!js(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),o.transform=Ca(this.projectionDeltaWithTransform,this.treeScale,s),r&&(o.transform=r(s,o.transform));const{x:a,y:l}=this.projectionDelta;o.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?o.opacity=i===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:o.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const t in Ye){if(void 0===s[t])continue;const{correct:e,applyTo:n}=Ye[t],r="none"===o.transform?s[t]:e(s[t],i);if(n){const t=n.length;for(let e=0;e<t;e++)o[n[e]]=r}else o[t]=r}return this.options.layoutId&&(o.pointerEvents=i===this?to(null==t?void 0:t.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Ua),this.root.sharedNodes.clear()}}}function ja(t){t.updateLayout()}function La(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:o}=t.layout,{animationType:r}=t.options,i=n.source!==t.layout.source;"size"===r?Vs((t=>{const o=i?n.measuredBox[t]:n.layoutBox[t],r=vs(o);o.min=e[t].min,o.max=o.min+r})):el(r,n.layoutBox,e)&&Vs((o=>{const r=i?n.measuredBox[o]:n.layoutBox[o],s=vs(e[o]);r.max=r.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[o].max=t.relativeTarget[o].min+s)}));const s=ks();bs(s,e,n.layoutBox);const a=ks();i?bs(a,t.applyTransform(o,!0),n.measuredBox):bs(a,e,n.layoutBox);const l=!Ea(s);let u=!1;if(!t.resumeFrom){const o=t.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:r,layout:i}=o;if(r&&i){const s=Rs();Es(s,n.layoutBox,r.layoutBox);const a=Rs();Es(a,e,i.layoutBox),Ta(s,a)||(u=!0),o.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=o)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Oa(t){Ma.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ba(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Na(t){t.clearSnapshot()}function Ua(t){t.clearMeasurements()}function za(t){t.isLayoutDirty=!1}function Ia(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Wa(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Za(t){t.resolveTargetDelta()}function Ga(t){t.calcProjection()}function Ha(t){t.resetRotation()}function $a(t){t.removeLeadSnapshot()}function Ka(t,e,n){t.translate=dr(e.translate,0,n),t.scale=dr(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Xa(t,e,n,o){t.min=dr(e.min,n.min,o),t.max=dr(e.max,n.max,o)}function Ya(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const qa={duration:.45,ease:[.4,0,.1,1]},Qa=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ja=Qa("applewebkit/")&&!Qa("chrome/")?Math.round:oo;function tl(t){t.min=Ja(t.min),t.max=Ja(t.max)}function el(t,e,n){return"position"===t||"preserve-aspect"===t&&!ys(Pa(e),Pa(n),.2)}const nl=Da({attachResizeListener:(t,e)=>co(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ol={current:void 0},rl=Da({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ol.current){const t=new nl({});t.mount(window),t.setOptions({layoutScroll:!0}),ol.current=t}return ol.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),il={pan:{Feature:class extends Eo{constructor(){super(...arguments),this.removePointerDownListener=oo}onPointerDown(t){this.session=new cs(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xs(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:Js(t),onStart:Js(e),onMove:n,onEnd:(t,e)=>{delete this.session,o&&ro.update((()=>o(t,e)))}}}mount(){this.removePointerDownListener=fo(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Eo{constructor(t){super(t),this.removeGroupControls=oo,this.removeListeners=oo,this.controls=new qs(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||oo}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:rl,MeasureLayout:ia}},sl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const al=4;function ll(t,e,n=1){Oo(n<=al,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[o,r]=function(t){const e=sl.exec(t);if(!e)return[,];const[,n,o]=e;return[n,o]}(t);if(!o)return;const i=window.getComputedStyle(e).getPropertyValue(o);if(i){const t=i.trim();return Li(t)?parseFloat(t):t}return an(r)?ll(r,e,n+1):r}const ul=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cl=t=>ul.has(t),dl=t=>t===dn||t===wn,hl=(t,e)=>parseFloat(t.split(", ")[e]),pl=(t,e)=>(n,{transform:o})=>{if("none"===o||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/);if(r)return hl(r[1],e);{const e=o.match(/^matrix\((.+)\)$/);return e?hl(e[1],t):0}},ml=new Set(["x","y","z"]),fl=qe.filter((t=>!ml.has(t)));const gl={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:pl(4,13),y:pl(5,14)};gl.translateX=gl.x,gl.translateY=gl.y;const vl=(t,e,n={},o={})=>{e={...e},o={...o};const r=Object.keys(e).filter(cl);let i=[],s=!1;const a=[];if(r.forEach((r=>{const l=t.getValue(r);if(!t.hasValue(r))return;let u=n[r],c=Hi(u);const d=e[r];let h;if(qn(d)){const t=d.length,e=null===d[0]?1:0;u=d[e],c=Hi(u);for(let n=e;n<t&&null!==d[n];n++)h?Oo(Hi(d[n])===h,"All keyframes must be of the same type"):(h=Hi(d[n]),Oo(h===c||dl(c)&&dl(h),"Keyframes must be of the same dimension as the current value"))}else h=Hi(d);if(c!==h)if(dl(c)&&dl(h)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof d?e[r]=parseFloat(d):Array.isArray(d)&&h===wn&&(e[r]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==h?void 0:h.transform)&&(0===u||0===d)?0===u?l.set(h.transform(u)):e[r]=c.transform(d):(s||(i=function(t){const e=[];return fl.forEach((n=>{const o=t.getValue(n);void 0!==o&&(e.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),s=!0),a.push(r),o[r]=void 0!==o[r]?o[r]:e[r],l.jump(d))})),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,r=((t,e,n)=>{const o=e.measureViewportBox(),r=e.current,i=getComputedStyle(r),{display:s}=i,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=gl[t](o,i)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const o=e.getValue(n);o&&o.jump(a[n]),t[n]=gl[n](l,i)})),t})(e,t,a);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),_e&&null!==n&&window.scrollTo({top:n}),{target:r,transitionEnd:o}}return{target:e,transitionEnd:o}};function yl(t,e,n,o){return(t=>Object.keys(t).some(cl))(e)?vl(t,e,n,o):{target:e,transitionEnd:o}}const _l=(t,e,n,o)=>{const r=function(t,{...e},n){const o=t.current;if(!(o instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!an(e))return;const n=ll(e,o);n&&t.set(n)}));for(const t in e){const r=e[t];if(!an(r))continue;const i=ll(r,o);i&&(e[t]=i,n||(n={}),void 0===n[t]&&(n[t]=r))}return{target:e,transitionEnd:n}}(t,e,o);return yl(t,e=r.target,n,o=r.transitionEnd)},bl={current:null},xl={current:!1};const wl=new WeakMap,El=Object.keys(ze),Tl=El.length,Pl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Sl=je.length;class Cl{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:o,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ro.render(this.render,!1,!0);const{latestValues:s,renderState:a}=r;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.isControllingVariants=Le(e),this.isVariantNode=Oe(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(const t in u){const e=u[t];void 0!==s[t]&&tn(e)&&(e.set(s[t],!1),ji(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,wl.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),xl.current||function(){if(xl.current=!0,_e)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>bl.current=t.matches;t.addListener(e),e()}else bl.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||bl.current),"production"!==process.env.NODE_ENV&&zi(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){wl.delete(this.current),this.projection&&this.projection.unmount(),io(this.notifyUpdate),io(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=Qe.has(t),o=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&ro.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{o(),r()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,o,r){let i,s;if("production"!==process.env.NODE_ENV&&o&&n){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Lo(!1,t):Oo(!1,t)}for(let t=0;t<Tl;t++){const n=El[t],{isEnabled:o,Feature:r,ProjectionNode:a,MeasureLayout:l}=ze[n];a&&(i=a),o(e)&&(!this.features[n]&&r&&(this.features[n]=new r(this)),l&&(s=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:o,dragConstraints:s,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(o)||s&&Ve(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Rs()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Pl.length;e++){const n=Pl[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const o=t["on"+n];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=function(t,e,n){const{willChange:o}=e;for(const r in e){const i=e[r],s=n[r];if(tn(i))t.addValue(r,i),ji(o)&&o.add(r),"development"===process.env.NODE_ENV&&zi("11.0.8"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 11.0.8 may not work as expected.`);else if(tn(s))t.addValue(r,Wi(i,{owner:t})),ji(o)&&o.remove(r);else if(s!==i)if(t.hasValue(r)){const e=t.getValue(r);!e.hasAnimated&&e.set(i)}else{const e=t.getStaticValue(r);t.addValue(r,Wi(void 0!==e?e:i,{owner:t}))}}for(const o in n)void 0===e[o]&&t.removeValue(o);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<Sl;t++){const n=je[t],o=this.props[n];(Fe(o)||!1===o)&&(e[n]=o)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Wi(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,o="string"==typeof n||"object"==typeof n?null===(e=Yn(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==o)return o;const r=this.getBaseTargetFromProps(this.props,t);return void 0===r||tn(r)?void 0!==this.initialValues[t]&&void 0===o?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new Ni),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Al extends Cl{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},o){const r=function(t,e,n){const o={};for(const r in t){const t=Xi(r,e);if(void 0!==t)o[r]=t;else{const t=n.getValue(r);t&&(o[r]=t.get())}}return o}(n,t||{},this);if(o){!function(t,e,n){var o,r;const i=Object.keys(e).filter((e=>!t.hasValue(e))),s=i.length;var a;if(s)for(let l=0;l<s;l++){const s=i[l],u=e[s];let c=null;Array.isArray(u)&&(c=u[0]),null===c&&(c=null!==(r=null!==(o=n[s])&&void 0!==o?o:t.readValue(s))&&void 0!==r?r:e[s]),null!=c&&("string"==typeof c&&(Li(c)||Vi(c))?c=parseFloat(c):(a=c,!$i.find(Zi(a))&&Dr.test(u)&&(c=Ri(s,u))),t.addValue(s,Wi(c,{owner:t})),void 0===n[s]&&(n[s]=c),null!==c&&t.setBaseTarget(s,c))}}(this,n,r);const t=_l(this,n,r,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class kl extends Al{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(Qe.has(e)){const t=ki(e);return t&&t.default||0}{const o=(n=t,window.getComputedStyle(n)),r=(rn(e)?o.getPropertyValue(e):o[e])||0;return"string"==typeof r?r.trim():r}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return Ks(t,e)}build(t,e,n,o){An(t,e,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,e){return Kn(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;tn(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,o){Gn(t,e,n,o)}}class Rl extends Al{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Qe.has(e)){const t=ki(e);return t&&t.default||0}return e=Hn.has(e)?e:we(e),t.getAttribute(e)}measureInstanceViewportBox(){return Rs()}scrapeMotionValuesFromProps(t,e){return Xn(t,e)}build(t,e,n,o){Un(t,e,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,e,n,o){$n(t,e,0,o)}mount(t){this.isSVGTag=In(t.tagName),super.mount(t)}}const Vl=(t,e)=>Xe(t)?new Rl(e,{enableHardwareAcceleration:!1}):new kl(e,{enableHardwareAcceleration:!0}),Fl={...ls,...Mo,...il,...{layout:{ProjectionNode:rl,MeasureLayout:ia}}},Ml=$e(((t,e)=>function(t,{forwardMotionProps:e=!1},n,o){return{...Xe(t)?lo:uo,preloadedFeatures:n,useRender:Zn(e),createVisualElement:o,Component:t}}(t,e,Fl,Vl)));var Dl={container:"textField-module_container__dwME5",label:"textField-module_label__Pb0Yj",input:"textField-module_input__R8QTX","input--prefix":"textField-module_input--prefix__Fhag6",prefix:"textField-module_prefix__qF3td",inputDescription:"textField-module_inputDescription__nc-XC","container--error":"textField-module_container--error__CJ8JR",error:"textField-module_error__OWiII",helper:"textField-module_helper__arACk",rightContent:"textField-module_rightContent__6xW-l",leftContent:"textField-module_leftContent__XrivE","input--focus":"textField-module_input--focus__ngCQF","input--hover":"textField-module_input--hover__wo5JR"};l(".textField-module_container__dwME5 {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.textField-module_label__Pb0Yj {\n position: absolute;\n z-index: 3;\n left: var(--product-spacing-5);\n color: var(--product-greyscale-60);\n pointer-events: none;\n}\n\n.textField-module_input__R8QTX {\n all: unset;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.70rem;\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n}\n\n.textField-module_input--prefix__Fhag6 {\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.70rem;\n padding-left: 2rem;\n}\n\n.textField-module_prefix__qF3td {\n position: absolute;\n left: var(--product-spacing-5);\n top: 64%;\n transform: translateY(-50%);\n z-index: 2;\n font-size: 1.125rem;\n}\n\n.textField-module_inputDescription__nc-XC {\n display: flex;\n flex-direction: column;\n gap: var(--product-spacing-2);\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.textField-module_container--error__CJ8JR > label {\n color: var(--product-error);\n}\n\n.textField-module_container--error__CJ8JR > input {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.textField-module_error__OWiII {\n color: var(--product-error);\n}\n\n.textField-module_helper__arACk {\n color: rgba(var(--grey-60-rgb));\n}\n\n.textField-module_rightContent__6xW-l {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n.textField-module_leftContent__XrivE {\n position: absolute;\n left: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n\n.textField-module_input__R8QTX:focus {\n border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));\n}\n\n.textField-module_input--focus__ngCQF {\n border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));\n}\n\n.textField-module_input__R8QTX:hover {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input--hover__wo5JR {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input__R8QTX:disabled {\n background: var(--product-greyscale-20);\n cursor: not-allowed;\n}\n\n.textField-module_input__R8QTX:disabled:hover {\n outline: none;\n}\n\n\n\n @media (min-width: 768px) {\n .textField-module_input__R8QTX {\n padding: var(--product-spacing-6);\n padding-top: 1.8rem;\n font-size: 1.25rem;\n }\n\n .textField-module_input--prefix__Fhag6 {\n padding: var(--product-spacing-6);\n padding-top: 1.8rem;\n padding-left: 2.5rem;\n }\n\n .textField-module_prefix__qF3td {\n left: var(--product-spacing-6);\n font-size: 1.25rem;\n top: 54%;\n }\n\n .textField-module_label__Pb0Yj {\n left: var(--product-spacing-6);\n }\n}\n\n\n\n\n\n\n\n");exports.Button=function(e){var n=e.as,o=e.children,s=e.variant,l=void 0===s?"primary":s,c=e.className,h=void 0===c?"":c,p=e.visualType,m=void 0===p?"button":p,f=i(e,["as","children","variant","className","visualType"]),g=n||"button";return t.createElement(g,r({className:a(u[h],u[l],u[m])},f),t.createElement(d,{variant:"form-button"},o))},exports.Columns=function(e){var n=e.cols,o=e.children;return t.createElement("div",{className:h,style:{gridTemplateColumns:"repeat(".concat(n,", 1fr)")}},o)},exports.Form=function(e){var n=e.children,o=i(e,["children"]);return t.createElement("form",r({className:p},o),n)},exports.NumberField=function(e){var n=e.min,o=void 0===n?0:n,r=e.max,i=void 0===r?100:r,s=e.label,l=e.width,u=void 0===l?3:l,c=e.name,h=e.error,p=e.register,w=e.setValue,E=t.useState(0),T=E[0],P=E[1],S=function(t){T<=o||P(T-t)},C=function(t){T>=i||P(T+t)};return t.useEffect((function(){p(c)}),[]),t.useEffect((function(){w(c,T.toString())}),[T]),t.createElement("div",{className:m},t.createElement(d,{className:y,as:"label",id:"".concat(c,"-label"),variant:"form-input-normal"},s),t.createElement("div",{className:a(g,h&&v)},t.createElement("button",{className:b,type:"button",tabIndex:-1,onClick:function(){return S(1)},"aria-label":"decrease"},"-"),t.createElement(d,{as:"div",variant:"content-title",className:f,role:"spinbutton",tabIndex:0,onKeyDown:function(t){x.includes(t.key)&&(t.preventDefault(),function(t){"ArrowUp"===t.key&&C(1),"ArrowDown"===t.key&&S(1)}(t),function(t){"PageUp"===t.key&&C(5),"PageDown"===t.key&&S(5)}(t),function(t){"Home"===t.key&&P(o),"End"===t.key&&P(i)}(t))},"aria-valuenow":T,"aria-valuemin":o,"aria-valuemax":i,"aria-labelledby":"".concat(c,"-label"),"aria-invalid":!!(null==h?void 0:h.message),"aria-errormessage":h?"".concat(c,"-error"):void 0,style:{width:"".concat(u,"ch")}},T),t.createElement("button",{className:b,type:"button",tabIndex:-1,onClick:function(){return C(1)},"aria-label":"increase"},"+")),h&&t.createElement(d,{className:_,id:"".concat(c,"-error"),as:"span",variant:"form-helper"},h.message))},exports.RadioGroup=ee,exports.Range=function(e){var n=e.min,o=void 0===n?0:n,i=e.max,s=void 0===i?1e3:i,a=e.step,l=void 0===a?100:a,u=e.name,c=e.register,h=e.label,p=t.useState(0),m=p[0],f=p[1];return t.createElement(t.Fragment,null,t.createElement(d,{as:"label",htmlFor:"".concat(u,"-range")},h),t.createElement("div",{className:ne},t.createElement("div",{className:oe},t.createElement("div",{className:ie},Array.from({length:function(t,e,n){return(e-t)/n}(o,s,l)}).map((function(e,n){return t.createElement("div",{key:n,className:se})}))),t.createElement("div",{className:ae,style:{width:"".concat((m-o)/(s-o)*100,"%")}}),t.createElement("input",r({id:"".concat(u,"-range"),className:re,type:"range",min:o,max:s,step:l},c(u,{onChange:function(t){return f(t.target.value)}})))),t.createElement(d,{className:le,variant:"content-title-semi-bold"},"£",m)))},exports.Select=function(e){var n=e.name,o=e.error,r=e.helper,i=e.label,s=e.items,l=e.placeholder,u=e.disabled,c=e.control,h=e.defaultValue;return t.createElement(te,{name:n,control:c,render:function(e){var n=e.field,c=n.onChange,p=n.name,m=n.ref,f=n.value,g=n.onBlur;return t.createElement("div",{className:ue},t.createElement("label",{className:"sr-only"},i),t.createElement("svg",{className:de,width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M5.9998 6.9499C5.86647 6.9499 5.74147 6.92907 5.6248 6.8874C5.50814 6.84574 5.3998 6.7749 5.2998 6.6749L0.699805 2.0749C0.516471 1.89157 0.424805 1.65824 0.424805 1.3749C0.424805 1.09157 0.516471 0.858236 0.699805 0.674902C0.883138 0.491569 1.11647 0.399902 1.3998 0.399902C1.68314 0.399902 1.91647 0.491569 2.0998 0.674902L5.9998 4.5749L9.89981 0.674902C10.0831 0.491569 10.3165 0.399902 10.5998 0.399902C10.8831 0.399902 11.1165 0.491569 11.2998 0.674902C11.4831 0.858236 11.5748 1.09157 11.5748 1.3749C11.5748 1.65824 11.4831 1.89157 11.2998 2.0749L6.6998 6.6749C6.5998 6.7749 6.49147 6.84574 6.3748 6.8874C6.25814 6.92907 6.13314 6.9499 5.9998 6.9499Z",fill:"black"})),t.createElement("select",{className:a(ce,(null==o?void 0:o.message)&&he,u&&pe),ref:m,value:f,onBlur:g,onChange:c,name:p,defaultValue:h},l&&t.createElement("option",{value:"placeholder",disabled:!0},l),s&&s.map((function(e){return t.createElement("option",{key:e.id,value:e.id},e.title)}))),(null==r?void 0:r.message)&&t.createElement(d,{className:fe,as:"span",variant:"form-helper"},r.message),(null==o?void 0:o.message)&&t.createElement(d,{className:me,as:"p",variant:"form-helper"},o.message))}})},exports.TextField=function(e){var n=e.id,o=e.label,i=e.helper,s=e.error,l=e.register,u=e.name,c=e.type,d=e.prefix,h=e.suffix,p=e.disabled,m=e.className,f=e.rightContent,g=e.leftContent,v=function(){var e=t.useState({width:600,height:void 0}),n=e[0],o=e[1];return t.useEffect((function(){function t(){o({width:window.innerWidth||600,height:window.innerHeight})}return window.addEventListener("resize",t,{passive:!0}),t(),function(){return window.removeEventListener("resize",t)}}),[]),n}().width,y=t.useState(""),_=y[0],b=y[1],x=t.useState(""!==_),w=x[0],E=x[1],T=v>768,P=i||s,S={focused:{fontSize:T?"1rem":"0.875rem",top:"1rem"},notFocused:{transform:"translateY(-50%)",fontSize:T?"1.25rem":"1.125rem",top:"50%"}};return t.createElement("div",null,t.createElement("div",{className:a(Dl.container,s&&Dl["container--error"])},t.createElement(Ml.label,{className:Dl.label,initial:"notFocused",variants:S,htmlFor:"input-".concat(n),animate:w?"focused":"notFocused"},o," ",h&&t.createElement("span",null,h)),t.createElement("input",r({id:"input-".concat(n),className:a(m,Dl["input--".concat(m)],Dl.input,d&&Dl["input--prefix"]),type:c,"aria-describedby":"error-".concat(n),disabled:p,value:_,onFocus:function(){return E(!0)}},l(u,{onChange:function(t){return b(t.target.value)},onBlur:function(){return E(""!==_)}}))),d&&w&&t.createElement("span",{className:Dl.prefix},d),t.createElement("div",null,f&&t.createElement("div",{className:Dl.rightContent},f),g&&t.createElement("div",{className:Dl.leftContent},g))),P&&t.createElement("div",{className:Dl.inputDescription},i&&t.createElement("span",{id:"feedback-".concat(n),className:Dl.helper},i.message),s&&t.createElement("span",{id:"error-".concat(n),className:Dl.error},s.message)))};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|