@kroo-web/design-system 1.0.39 → 1.0.41

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.
Files changed (70) hide show
  1. package/README.MD +5 -0
  2. package/dist/cjs/icons/Icon.stories.d.ts +2 -2
  3. package/dist/cjs/index.js +40 -4
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/product/components/Button/button.stories.d.ts +5 -1
  6. package/dist/cjs/product/components/Button/index.d.ts +24 -3
  7. package/dist/cjs/product/components/Callout/Callout.stories.d.ts +1 -1
  8. package/dist/cjs/product/components/Columns/Columns.stories.d.ts +6 -0
  9. package/dist/cjs/product/components/DatePicker/DatePicker.stories.d.ts +1 -1
  10. package/dist/cjs/product/components/Disclosure/Disclosure.stories.d.ts +1 -1
  11. package/dist/cjs/product/components/Form/Form.stories.d.ts +12 -0
  12. package/dist/cjs/product/components/Loading/Loading.stories.d.ts +7 -0
  13. package/dist/cjs/product/components/Loading/Loading.test.d.ts +1 -0
  14. package/dist/cjs/product/components/Loading/index.d.ts +12 -0
  15. package/dist/cjs/product/components/Modal/Modal.stories.d.ts +7 -0
  16. package/dist/cjs/product/components/Modal/Modal.test.d.ts +1 -0
  17. package/dist/cjs/product/components/Modal/index.d.ts +25 -0
  18. package/dist/cjs/product/components/NumberField/numberField.stories.d.ts +1 -1
  19. package/dist/cjs/product/components/ProgressIndicator/ProgressIndicator.stories.d.ts +1 -1
  20. package/dist/cjs/product/components/ProgressIndicator/index.d.ts +2 -2
  21. package/dist/cjs/product/components/RadioGroup/radioGroup.stories.d.ts +1 -1
  22. package/dist/cjs/product/components/Range/range.stories.d.ts +2 -2
  23. package/dist/cjs/product/components/Select/select.stories.d.ts +2 -2
  24. package/dist/cjs/product/components/TextField/textField.stories.d.ts +1 -1
  25. package/dist/cjs/product/components/Toast/Toast.stories.d.ts +7 -0
  26. package/dist/cjs/product/components/Toast/index.d.ts +16 -0
  27. package/dist/cjs/product/components/Tooltip/Tooltip.stories.d.ts +7 -0
  28. package/dist/cjs/product/components/Tooltip/Tooltip.test.d.ts +1 -0
  29. package/dist/cjs/product/components/Tooltip/index.d.ts +10 -0
  30. package/dist/cjs/product/components/Typography/typography.stories.d.ts +1 -1
  31. package/dist/cjs/product/components/index.d.ts +6 -1
  32. package/dist/esm/icons/Icon.stories.d.ts +2 -2
  33. package/dist/esm/index.js +40 -4
  34. package/dist/esm/index.js.map +1 -1
  35. package/dist/esm/product/components/Button/button.stories.d.ts +5 -1
  36. package/dist/esm/product/components/Button/index.d.ts +24 -3
  37. package/dist/esm/product/components/Callout/Callout.stories.d.ts +1 -1
  38. package/dist/esm/product/components/Columns/Columns.stories.d.ts +6 -0
  39. package/dist/esm/product/components/DatePicker/DatePicker.stories.d.ts +1 -1
  40. package/dist/esm/product/components/Disclosure/Disclosure.stories.d.ts +1 -1
  41. package/dist/esm/product/components/Form/Form.stories.d.ts +12 -0
  42. package/dist/esm/product/components/Loading/Loading.stories.d.ts +7 -0
  43. package/dist/esm/product/components/Loading/Loading.test.d.ts +1 -0
  44. package/dist/esm/product/components/Loading/index.d.ts +12 -0
  45. package/dist/esm/product/components/Modal/Modal.stories.d.ts +7 -0
  46. package/dist/esm/product/components/Modal/Modal.test.d.ts +1 -0
  47. package/dist/esm/product/components/Modal/index.d.ts +25 -0
  48. package/dist/esm/product/components/NumberField/numberField.stories.d.ts +1 -1
  49. package/dist/esm/product/components/ProgressIndicator/ProgressIndicator.stories.d.ts +1 -1
  50. package/dist/esm/product/components/ProgressIndicator/index.d.ts +2 -2
  51. package/dist/esm/product/components/RadioGroup/radioGroup.stories.d.ts +1 -1
  52. package/dist/esm/product/components/Range/range.stories.d.ts +2 -2
  53. package/dist/esm/product/components/Select/select.stories.d.ts +2 -2
  54. package/dist/esm/product/components/TextField/textField.stories.d.ts +1 -1
  55. package/dist/esm/product/components/Toast/Toast.stories.d.ts +7 -0
  56. package/dist/esm/product/components/Toast/index.d.ts +16 -0
  57. package/dist/esm/product/components/Tooltip/Tooltip.stories.d.ts +7 -0
  58. package/dist/esm/product/components/Tooltip/Tooltip.test.d.ts +1 -0
  59. package/dist/esm/product/components/Tooltip/index.d.ts +10 -0
  60. package/dist/esm/product/components/Typography/typography.stories.d.ts +1 -1
  61. package/dist/esm/product/components/index.d.ts +6 -1
  62. package/dist/styles/dev.global.css +2 -0
  63. package/dist/styles/global.css +4 -0
  64. package/dist/styles/tokens/product.css +1 -0
  65. package/dist/types.d.ts +117 -26
  66. package/package.json +8 -5
  67. /package/dist/cjs/product/components/{FormField → shared/FormField}/FormField.stories.d.ts +0 -0
  68. /package/dist/cjs/product/components/{FormField → shared/FormField}/index.d.ts +0 -0
  69. /package/dist/esm/product/components/{FormField → shared/FormField}/FormField.stories.d.ts +0 -0
  70. /package/dist/esm/product/components/{FormField → shared/FormField}/index.d.ts +0 -0
package/dist/esm/index.js CHANGED
@@ -1,4 +1,13 @@
1
- import*as t from"react";import e,{createContext as n,useLayoutEffect as r,useEffect as o,useContext as i,useRef as a,useInsertionEffect as s,useCallback as l,useMemo as u,forwardRef as c,Fragment as d,createElement as p,useId as h,Children as f,isValidElement as m,cloneElement as g,useState as v,useReducer as y}from"react";import{useFormContext as _,Controller as b,FormProvider as x}from"react-hook-form";import{flushSync as w}from"react-dom";var E=function(){return E=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},E.apply(this,arguments)};function S(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function k(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=k(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function P(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=k(t))&&(r&&(r+=" "),r+=e);return r}function T(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}"function"==typeof SuppressedError&&SuppressedError;var C={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","only-icon":"button-module_only-icon__8lEn4"};T(".button-module_button__dZH55 {\n all: unset;\n display: flex;\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_button__dZH55 > * {\n display: flex;\n align-items: center;\n gap: var(--product-spacing-1);\n}\n\n.button-module_action__RTWZU {\n all: unset;\n display: flex;\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_action__RTWZU > * {\n display: flex;\n align-items: center;\n gap: var(--product-spacing-1);\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.button-module_only-icon__8lEn4 {\n padding: var(--product-spacing-3);\n border-radius: var(--product-radius-full);\n}\n\n.button-module_action__RTWZU.button-module_only-icon__8lEn4 {\n padding: var(--product-spacing-2_5);\n border-radius: var(--product-radius-2);\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 .button-module_only-icon__8lEn4 {\n padding: 16px;\n }\n\n .button-module_action__RTWZU.button-module_only-icon__8lEn4 {\n padding: 10px;\n }\n}\n\n\n");var R={"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"};T(".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 A=function(t){var n=t.as,r=t.variant,o=void 0===r?"content-regular":r,i=t.children,a=t.className,s=S(t,["as","variant","children","className"]),l=n||"p";return e.createElement(l,E({className:P(R[o],a)},s),i)};function O(t){var n=t.as,r=t.children,o=t.variant,i=void 0===o?"primary":o,a=t.className,s=void 0===a?"":a,l=t.visualType,u=void 0===l?"button":l,c=t.onlyIcon,d=S(t,["as","children","variant","className","visualType","onlyIcon"]),p=n||"button";return e.createElement(p,E({className:P(C[s],C[i],C[u],c&&C["only-icon"])},d),c&&r,!c&&e.createElement(A,{variant:"form-button"},r))}var D="columns-module_container__ycx3n";T(".columns-module_container__ycx3n {\n display: grid;\n gap: 1rem;\n}\n");var j=function(t){var n=t.cols,r=t.children;return e.createElement("div",{className:D,style:{gridTemplateColumns:"repeat(".concat(n,", 1fr)")}},r)},F="datepicker-module_container__H0Ck-",M="datepicker-module_input__tm5uo",V="datepicker-module_input--error__D6wsy";T(".datepicker-module_container__H0Ck- {\n display: flex;\n flex-direction: column;\n}\n\n.datepicker-module_input__tm5uo {\n all: unset;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n}\n\n.datepicker-module_input--error__D6wsy {\n border: 2px solid var(--product-error);\n}\n\n\n\n.datepicker-module_error__vTdEl {\n color: var(--product-error);\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.datepicker-module_label__wCkZn {\n margin-bottom: var(--product-spacing-3);\n}\n\n @media (min-width: 768px) {\n .datepicker-module_input__tm5uo {\n padding: var(--product-spacing-6);\n font-size: 1.25rem;\n }\n}\n");var L="formField-module_container__kHrDY",N="formField-module_label__n-BxC",I="formField-module_helper__tDddc",B="formField-module_error__lDnrF";T(".formField-module_container__kHrDY {\n display: flex;\n flex-direction: column;\n}\n\n.formField-module_label__n-BxC {\n margin-bottom: var(--product-spacing-3);\n}\n\n.formField-module_helper__tDddc {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n}\n\n.formField-module_error__lDnrF {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n color: var(--product-error);\n}\n\n @media (min-width: 768px) {\n .formField-module_helper__tDddc, .formField-module_error__lDnrF {\n padding: var(--product-spacing-2) var(--product-spacing-6);\n }\n\n}\n");var U=function(t){var n=t.id,r=t.error,o=t.helper,i=t.label,a=t.children;return e.createElement("div",{className:L},e.createElement(A,{as:"label",variant:"form-input-normal",className:N,htmlFor:n},i),a,o&&e.createElement(A,{variant:"form-helper",className:I},o),r&&e.createElement(A,{variant:"form-helper",className:B},r))},z=function(t){var n=_(),r=n.control,o=n.formState.errors,i=t.name,a=E(E({},t),{error:o&&o[i]});return e.createElement(b,{name:i,control:r,render:function(t){var n=t.field;return e.createElement($,E({},a,{field:E({},n)}))}})},$=function(t){var n=t.field,r=t.error,o=t.helper,i=S(t,["field","error","helper"]);return e.createElement(U,{id:i.id,label:i.label,error:null==r?void 0:r.message,helper:null==o?void 0:o.message},e.createElement("div",{className:F},e.createElement("input",E({className:P(M,r&&V),type:"date",id:i.id},n))))};const W=n({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Z=n({}),G=n(null),H="undefined"!=typeof document,Y=H?r:o,K=n({strict:!1}),q=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),X="data-"+q("framerAppearId"),Q=!1,J=!1;class tt{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 et=["prepare","read","update","preRender","render","postRender"];function nt(t,e){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=et.reduce(((t,e)=>(t[e]=function(t){let e=new tt,n=new tt,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(t,i=!1,s=!1)=>{const l=s&&o,u=l?e:n;return i&&a.add(t),u.add(t)&&l&&o&&(r=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:l=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let n=0;n<r;n++){const r=e.order[n];a.has(r)&&(s.schedule(r),t()),r(l)}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>n=!0)),t)),{}),a=t=>{i[t].process(o)},s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,et.forEach(a),o.isProcessing=!1,n&&e&&(r=!1,t(s))};return{schedule:et.reduce(((e,a)=>{const l=i[a];return e[a]=(e,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||t(s)),l.schedule(e,i,a)),e}),{}),cancel:t=>et.forEach((e=>i[e].cancel(t))),state:o,steps:i}}const{schedule:rt,cancel:ot}=nt(queueMicrotask,!1);function it(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function at(t){return"string"==typeof t||Array.isArray(t)}function st(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const lt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ut=["initial",...lt];function ct(t){return st(t.animate)||ut.some((e=>at(t[e])))}function dt(t){return Boolean(ct(t)||t.variants)}function pt(t){const{initial:e,animate:n}=function(t,e){if(ct(t)){const{initial:e,animate:n}=t;return{initial:!1===e||at(e)?e:void 0,animate:at(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,i(Z));return u((()=>({initial:e,animate:n})),[ht(e),ht(n)])}function ht(t){return Array.isArray(t)?t.join(" "):t}const ft={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"]},mt={};for(const t in ft)mt[t]={isEnabled:e=>ft[t].some((t=>!!e[t]))};const gt=n({}),vt=n({}),yt=Symbol.for("motionComponentSymbol");function _t({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:u,Component:d}){e&&function(t){for(const e in t)mt[e]={...mt[e],...t[e]}}(e);const p=c((function(c,p){let h;const f={...i(W),...c,layoutId:bt(c)},{isStatic:m}=f,g=pt(c),v=u(c,m);if(!m&&H){g.visualElement=function(t,e,n,r){const{visualElement:l}=i(Z),u=i(K),c=i(G),d=i(W).reducedMotion,p=a();r=r||u.renderer,!p.current&&r&&(p.current=r(t,{visualState:e,parent:l,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));const h=p.current;s((()=>{h&&h.update(n,c)}));const f=a(Boolean(n[X]&&!window.HandoffComplete));return Y((()=>{h&&(rt.postRender(h.render),f.current&&h.animationState&&h.animationState.animateChanges())})),o((()=>{h&&(h.updateFeatures(),!f.current&&h.animationState&&h.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))})),h}(d,v,f,n);const t=i(vt),r=i(K).strict;g.visualElement&&(h=g.visualElement.loadFeatures(f,r,e,t))}return t.createElement(Z.Provider,{value:g},h&&g.visualElement?t.createElement(h,{visualElement:g.visualElement,...f}):null,r(d,c,function(t,e,n){return l((r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&("function"==typeof n?n(r):it(n)&&(n.current=r))}),[e])}(v,g.visualElement,p),v,m,g.visualElement))}));return p[yt]=d,p}function bt({layoutId:t}){const e=i(gt).id;return e&&void 0!==t?e+"-"+t:t}function xt(t){function e(e,n={}){return _t(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}const wt=["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 Et(t){return"string"==typeof t&&!t.includes("-")&&!!(wt.indexOf(t)>-1||/[A-Z]/.test(t))}const St={};const kt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pt=new Set(kt);function Tt(t,{layout:e,layoutId:n}){return Pt.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!St[t]||"opacity"===t)}const Ct=t=>Boolean(t&&t.getVelocity),Rt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},At=kt.length;const Ot=t=>e=>"string"==typeof e&&e.startsWith(t),Dt=Ot("--"),jt=Ot("var(--"),Ft=t=>!!jt(t)&&Mt.test(t.split("/*")[0].trim()),Mt=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,Vt=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Lt=(t,e,n)=>n>e?e:n<t?t:n,Nt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},It={...Nt,transform:t=>Lt(0,1,t)},Bt={...Nt,default:1},Ut=t=>Math.round(1e5*t)/1e5,zt=/(-)?([\d]*\.?[\d])+/g,$t=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Wt=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Zt(t){return"string"==typeof t}const Gt=t=>({test:e=>Zt(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Ht=Gt("deg"),Yt=Gt("%"),Kt=Gt("px"),qt=Gt("vh"),Xt=Gt("vw"),Qt={...Yt,parse:t=>Yt.parse(t)/100,transform:t=>Yt.transform(100*t)},Jt={...Nt,transform:Math.round},te={borderWidth:Kt,borderTopWidth:Kt,borderRightWidth:Kt,borderBottomWidth:Kt,borderLeftWidth:Kt,borderRadius:Kt,radius:Kt,borderTopLeftRadius:Kt,borderTopRightRadius:Kt,borderBottomRightRadius:Kt,borderBottomLeftRadius:Kt,width:Kt,maxWidth:Kt,height:Kt,maxHeight:Kt,size:Kt,top:Kt,right:Kt,bottom:Kt,left:Kt,padding:Kt,paddingTop:Kt,paddingRight:Kt,paddingBottom:Kt,paddingLeft:Kt,margin:Kt,marginTop:Kt,marginRight:Kt,marginBottom:Kt,marginLeft:Kt,rotate:Ht,rotateX:Ht,rotateY:Ht,rotateZ:Ht,scale:Bt,scaleX:Bt,scaleY:Bt,scaleZ:Bt,skew:Ht,skewX:Ht,skewY:Ht,distance:Kt,translateX:Kt,translateY:Kt,translateZ:Kt,x:Kt,y:Kt,z:Kt,perspective:Kt,transformPerspective:Kt,opacity:It,originX:Qt,originY:Qt,originZ:Kt,zIndex:Jt,fillOpacity:It,strokeOpacity:It,numOctaves:Jt};function ee(t,e,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=t;let l=!1,u=!1,c=!0;for(const t in e){const n=e[t];if(Dt(t)){i[t]=n;continue}const r=te[t],d=Vt(n,r);if(Pt.has(t)){if(l=!0,a[t]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,s[t]=d):o[t]=d}if(e.transform||(l||r?o.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,o){let i="";for(let e=0;e<At;e++){const n=kt[e];void 0!==t[n]&&(i+=`${Rt[n]||n}(${t[n]}) `)}return e&&!t.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(t,r?"":i):n&&r&&(i="none"),i}(t.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=s;o.transformOrigin=`${t} ${e} ${n}`}}const ne=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function re(t,e,n){for(const r in e)Ct(e[r])||Tt(r,n)||(t[r]=e[r])}function oe(t,e,n){const r={};return re(r,t.style||{},t),Object.assign(r,function({transformTemplate:t},e,n){return u((()=>{const r=ne();return ee(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)}),[e])}(t,e,n)),r}function ie(t,e,n){const r={},o=oe(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}const ae=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 se(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ae.has(t)}let le=t=>!se(t);try{(ue=require("@emotion/is-prop-valid").default)&&(le=t=>t.startsWith("on")?!se(t):ue(t))}catch(t){}var ue;function ce(t,e,n){return"string"==typeof t?t:Kt.transform(e+n*t)}const de={offset:"stroke-dashoffset",array:"stroke-dasharray"},pe={offset:"strokeDashoffset",array:"strokeDasharray"};function he(t,{attrX:e,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,p){if(ee(t,u,c,p),d)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:f,dimensions:m}=t;h.transform&&(m&&(f.transform=h.transform),delete h.transform),m&&(void 0!==o||void 0!==i||f.transform)&&(f.transformOrigin=function(t,e,n){return`${ce(e,t.x,t.width)} ${ce(n,t.y,t.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==a&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const i=o?de:pe;t[i.offset]=Kt.transform(-r);const a=Kt.transform(e),s=Kt.transform(n);t[i.array]=`${a} ${s}`}(h,a,s,l,!1)}const fe=()=>({...ne(),attrs:{}}),me=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ge(t,e,n,r){const o=u((()=>{const n=fe();return he(n,e,{enableHardwareAcceleration:!1},me(r),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};re(e,t.style,t),o.style={...e,...o.style}}return o}function ve(t=!1){return(e,n,r,{latestValues:o},i)=>{const a=(Et(e)?ge:ie)(n,o,i,e),s=function(t,e,n){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(le(o)||!0===n&&se(o)||!e&&!se(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(n,"string"==typeof e,t),l=e!==d?{...s,...a,ref:r}:{},{children:c}=n,h=u((()=>Ct(c)?c.get():c),[c]);return p(e,{...l,children:h})}}function ye(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}const _e=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 be(t,e,n,r){ye(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(_e.has(n)?n:q(n),e.attrs[n])}function xe(t,e){const{style:n}=t,r={};for(const o in n)(Ct(n[o])||e.style&&Ct(e.style[o])||Tt(o,t))&&(r[o]=n[o]);return r}function we(t,e){const n=xe(t,e);for(const r in t)if(Ct(t[r])||Ct(e[r])){n[-1!==kt.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return n}function Ee(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}const Se=t=>Array.isArray(t),ke=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),Pe=t=>Se(t)?t[t.length-1]||0:t;function Te(t){const e=Ct(t)?t.get():t;return ke(e)?e.toValue():e}const Ce=t=>(e,n)=>{const r=i(Z),o=i(G),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,i){const a={latestValues:Re(r,o,i,t),renderState:e()};return n&&(a.mount=t=>n(r,t,a)),a}(t,e,r,o);return n?s():function(t){const e=a(null);return null===e.current&&(e.current=t()),e.current}(s)};function Re(t,e,n,r){const o={},i=r(t,{});for(const t in i)o[t]=Te(i[t]);let{initial:a,animate:s}=t;const l=ct(t),u=dt(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===s&&(s=e.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!=typeof d&&!st(d)){(Array.isArray(d)?d:[d]).forEach((e=>{const n=Ee(t,e);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const t in a){let e=a[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in r)o[t]=r[t]}))}return o}const Ae=t=>t,{schedule:Oe,cancel:De,state:je,steps:Fe}=nt("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Ae,!0),Me={useVisualState:Ce({scrapeMotionValuesFromProps:we,createRenderState:fe,onMount:(t,e,{renderState:n,latestValues:r})=>{Oe.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),Oe.render((()=>{he(n,r,{enableHardwareAcceleration:!1},me(e.tagName),t.transformTemplate),be(e,n)}))}})},Ve={useVisualState:Ce({scrapeMotionValuesFromProps:xe,createRenderState:ne})};function Le(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Ne=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Ie(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Be=t=>e=>Ne(e)&&t(e,Ie(e));function Ue(t,e,n,r){return Le(t,e,Be(n),r)}const ze=(t,e)=>n=>e(t(n)),$e=(...t)=>t.reduce(ze);function We(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const Ze=We("dragHorizontal"),Ge=We("dragVertical");function He(t){let e=!1;if("y"===t)e=Ge();else if("x"===t)e=Ze();else{const t=Ze(),n=Ge();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Ye(){const t=He(!0);return!t||(t(),!1)}class Ke{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qe(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return Ue(t.current,n,((n,o)=>{if("touch"===n.pointerType||Ye())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",e),i[r]&&Oe.update((()=>i[r](n,o)))}),{passive:!t.getProps()[r]})}const Xe=(t,e)=>!!e&&(t===e||Xe(t,e.parentElement));function Qe(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Ie(n))}const Je=new WeakMap,tn=new WeakMap,en=t=>{const e=Je.get(t.target);e&&e(t)},nn=t=>{t.forEach(en)};function rn(t,e,n){const r=function({root:t,...e}){const n=t||document;tn.has(n)||tn.set(n,{});const r=tn.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(nn,{root:t,...e})),r[o]}(e);return Je.set(t,n),r.observe(t),()=>{Je.delete(t),r.unobserve(t)}}const on={some:0,all:1};const an={inView:{Feature:class extends Ke{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:o}=t,i={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:on[r]};return rn(this.node.current,i,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,o&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=e?n:r;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 Ke{constructor(){super(...arguments),this.removeStartListeners=Ae,this.removeEndListeners=Ae,this.removeAccessibleListeners=Ae,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=Ue(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps();Oe.update((()=>{o||Xe(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=Ue(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=$e(r,o),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=Le(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Le(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&Qe("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&Oe.update((()=>n(t,e)))}))})),Qe("down",((t,e)=>{this.startPress(t,e)}))})),e=Le(this.node.current,"blur",(()=>{this.isPressing&&Qe("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=$e(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Oe.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ye()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Oe.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=Ue(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Le(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=$e(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Ke{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=$e(Le(this.node.current,"focus",(()=>this.onFocus())),Le(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Ke{mount(){this.unmount=$e(qe(this.node,!0),qe(this.node,!1))}unmount(){}}}};function sn(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function ln(t,e,n){const r=t.getProps();return Ee(r,e,void 0!==n?n:r.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 un=Ae,cn=Ae;"production"!==process.env.NODE_ENV&&(un=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},cn=(t,e)=>{if(!t)throw new Error(e)});const dn=t=>1e3*t,pn=t=>t/1e3,hn=!1,fn=t=>Array.isArray(t)&&"number"==typeof t[0];function mn(t){return Boolean(!t||"string"==typeof t&&vn[t]||fn(t)||Array.isArray(t)&&t.every(mn))}const gn=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,vn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gn([0,.65,.55,1]),circOut:gn([.55,0,1,.45]),backIn:gn([.31,.01,.66,-.59]),backOut:gn([.33,1.53,.69,.99])};function yn(t){if(t)return fn(t)?gn(t):Array.isArray(t)?t.map(yn):vn[t]}const _n=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,bn=1e-7,xn=12;function wn(t,e,n,r){if(t===e&&n===r)return Ae;const o=e=>function(t,e,n,r,o){let i,a,s=0;do{a=e+(n-e)/2,i=_n(a,r,o)-t,i>0?n=a:e=a}while(Math.abs(i)>bn&&++s<xn);return a}(e,0,1,t,n);return t=>0===t||1===t?t:_n(o(t),e,r)}const En=wn(.42,0,1,1),Sn=wn(0,0,.58,1),kn=wn(.42,0,.58,1),Pn=t=>Array.isArray(t)&&"number"!=typeof t[0],Tn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Cn=t=>e=>1-t(1-e),Rn=t=>1-Math.sin(Math.acos(t)),An=Cn(Rn),On=Tn(Rn),Dn=wn(.33,1.53,.69,.99),jn=Cn(Dn),Fn=Tn(jn),Mn={linear:Ae,easeIn:En,easeInOut:kn,easeOut:Sn,circIn:Rn,circInOut:On,circOut:An,backIn:jn,backInOut:Fn,backOut:Dn,anticipate:t=>(t*=2)<1?.5*jn(t):.5*(2-Math.pow(2,-10*(t-1)))},Vn=t=>{if(Array.isArray(t)){cn(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,o]=t;return wn(e,n,r,o)}return"string"==typeof t?(cn(void 0!==Mn[t],`Invalid easing type '${t}'`),Mn[t]):t},Ln=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},Nn=(t,e,n)=>t+(e-t)*n;function In(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 Bn=(t,e)=>n=>Boolean(Zt(n)&&Wt.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Un=(t,e,n)=>r=>{if(!Zt(r))return r;const[o,i,a,s]=r.match(zt);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},zn={...Nt,transform:t=>Math.round((t=>Lt(0,255,t))(t))},$n={test:Bn("rgb","red"),parse:Un("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+zn.transform(t)+", "+zn.transform(e)+", "+zn.transform(n)+", "+Ut(It.transform(r))+")"};const Wn={test:Bn("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:$n.transform},Zn={test:Bn("hsl","hue"),parse:Un("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Yt.transform(Ut(e))+", "+Yt.transform(Ut(n))+", "+Ut(It.transform(r))+")"},Gn=(t,e,n)=>{const r=t*t,o=n*(e*e-r)+r;return o<0?0:Math.sqrt(o)},Hn=[Wn,$n,Zn];function Yn(t){const e=(n=t,Hn.find((t=>t.test(n))));var n;cn(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=e.parse(t);return e===Zn&&(r=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,i=0,a=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,s=2*n-r;o=In(s,r,t+1/3),i=In(s,r,t),a=In(s,r,t-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const Kn=(t,e)=>{const n=Yn(t),r=Yn(e),o={...n};return t=>(o.red=Gn(n.red,r.red,t),o.green=Gn(n.green,r.green,t),o.blue=Gn(n.blue,r.blue,t),o.alpha=Nn(n.alpha,r.alpha,t),$n.transform(o))},qn={test:t=>$n.test(t)||Wn.test(t)||Zn.test(t),parse:t=>$n.test(t)?$n.parse(t):Zn.test(t)?Zn.parse(t):Wn.parse(t),transform:t=>Zt(t)?t:t.hasOwnProperty("red")?$n.transform(t):Zn.transform(t)};const Xn="number",Qn="color",Jn="var",tr="var(",er="${}",nr=/(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(nr)||[],r=[],o={color:[],number:[],var:[]},i=[];for(let t=0;t<n.length;t++){const e=n[t];qn.test(e)?(o.color.push(t),i.push(Qn),r.push(qn.parse(e))):e.startsWith(tr)?(o.var.push(t),i.push(Jn),r.push(e)):(o.number.push(t),i.push(Xn),r.push(parseFloat(e)))}return{values:r,split:e.replace(nr,er).split(er),indexes:o,types:i}}function or(t){return rr(t).values}function ir(t){const{split:e,types:n}=rr(t),r=e.length;return t=>{let o="";for(let i=0;i<r;i++)if(o+=e[i],void 0!==t[i]){const e=n[i];o+=e===Xn?Ut(t[i]):e===Qn?qn.transform(t[i]):t[i]}return o}}const ar=t=>"number"==typeof t?0:t;const sr={test:function(t){var e,n;return isNaN(t)&&Zt(t)&&((null===(e=t.match(zt))||void 0===e?void 0:e.length)||0)+((null===(n=t.match($t))||void 0===n?void 0:n.length)||0)>0},parse:or,createTransformer:ir,getAnimatableNone:function(t){const e=or(t);return ir(t)(e.map(ar))}};function lr(t,e){return n=>n>0?e:t}function ur(t,e){return n=>Nn(t,e,n)}function cr(t){return"number"==typeof t?ur:"string"==typeof t?Ft(t)?lr:qn.test(t)?Kn:hr:Array.isArray(t)?dr:"object"==typeof t?qn.test(t)?Kn:pr:lr}function dr(t,e){const n=[...t],r=n.length,o=t.map(((t,n)=>cr(t)(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}}function pr(t,e){const n={...t,...e},r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=cr(t[o])(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}}const hr=(t,e)=>{const n=sr.createTransformer(e),r=rr(t),o=rr(e);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?$e(dr(function(t,e){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const a=e.types[i],s=t.indexes[a][o[a]],l=null!==(n=t.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):(un(!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.`),lr(t,e))};function fr(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return Nn(t,e,n);return cr(t)(t,e)}function mr(t,e,{clamp:n=!0,ease:r,mixer:o}={}){const i=t.length;if(cn(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 a=function(t,e,n){const r=[],o=n||fr,i=t.length-1;for(let n=0;n<i;n++){let i=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||Ae:e;i=$e(t,i)}r.push(i)}return r}(e,r,o),s=a.length,l=e=>{let n=0;if(s>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=Ln(t[n],t[n+1],e);return a[n](r)};return n?e=>l(Lt(t[0],t[i-1],e)):l}function gr(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=Ln(0,e,r);t.push(Nn(n,1,o))}}(e,t.length-1),e}function vr({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const o=Pn(r)?r.map(Vn):Vn(r),i={done:!1,value:e[0]},a=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:gr(e),t),s=mr(a,e,{ease:Array.isArray(o)?o:(l=e,u=o,l.map((()=>u||kn)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(i.value=s(e),i.done=e>=t,i)}}function yr(t,e){return e?t*(1e3/e):0}const _r=5;function br(t,e,n){const r=Math.max(e-_r,0);return yr(n-t(r),e-r)}const xr=.001,wr=.01,Er=10,Sr=.05,kr=1;function Pr({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let o,i;un(t<=dn(Er),"Spring duration must be 10 seconds or less");let a=1-e;a=Lt(Sr,kr,a),t=Lt(wr,Er,pn(t)),a<1?(o=e=>{const r=e*a,o=r*t,i=r-n,s=Cr(e,a),l=Math.exp(-o);return xr-i/s*l},i=e=>{const r=e*a*t,i=r*n+n,s=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-r),u=Cr(Math.pow(e,2),a);return(-o(e)+xr>0?-1:1)*((i-s)*l)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-xr,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const s=function(t,e,n){let r=n;for(let n=1;n<Tr;n++)r-=t(r)/e(r);return r}(o,i,5/t);if(t=dn(t),isNaN(s))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(s,2)*r;return{stiffness:e,damping:2*a*Math.sqrt(r*e),duration:t}}}const Tr=12;function Cr(t,e){return t*Math.sqrt(1-e*e)}const Rr=["duration","bounce"],Ar=["stiffness","damping","mass"];function Or(t,e){return e.some((e=>void 0!==t[e]))}function Dr({keyframes:t,restDelta:e,restSpeed:n,...r}){const o=t[0],i=t[t.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Or(t,Ar)&&Or(t,Rr)){const n=Pr(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...r,velocity:-pn(r.velocity||0)}),h=d||0,f=l/(2*Math.sqrt(s*u)),m=i-o,g=pn(Math.sqrt(s/u)),v=Math.abs(m)<5;let y;if(n||(n=v?.01:2),e||(e=v?.005:.5),f<1){const t=Cr(g,f);y=e=>{const n=Math.exp(-f*g*e);return i-n*((h+f*g*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===f)y=t=>i-Math.exp(-g*t)*(m+(h+g*m)*t);else{const t=g*Math.sqrt(f*f-1);y=e=>{const n=Math.exp(-f*g*e),r=Math.min(t*e,300);return i-n*((h+f*g*m)*Math.sinh(r)+t*m*Math.cosh(r))/t}}return{calculatedDuration:p&&c||null,next:t=>{const r=y(t);if(p)a.done=t>=c;else{let o=h;0!==t&&(o=f<1?br(y,t,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=e;a.done=s&&l}return a.value=a.done?i:r,a}}}function jr({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],p={done:!1,value:d},h=t=>void 0===s?l:void 0===l||Math.abs(s-t)<Math.abs(l-t)?s:l;let f=n*e;const m=d+f,g=void 0===a?m:a(m);g!==m&&(f=g-d);const v=t=>-f*Math.exp(-t/r),y=t=>g+v(t),_=t=>{const e=v(t),n=y(t);p.done=Math.abs(e)<=u,p.value=p.done?g:n};let b,x;const w=t=>{var e;(e=p.value,void 0!==s&&e<s||void 0!==l&&e>l)&&(b=t,x=Dr({keyframes:[p.value,h(p.value)],velocity:br(y,t,p.value),damping:o,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),p)}}}let Fr;function Mr(){Fr=void 0}const Vr={now:()=>(void 0===Fr&&Vr.set(je.isProcessing||J?je.timestamp:performance.now()),Fr),set:t=>{Fr=t,queueMicrotask(Mr)}},Lr=t=>{const e=({timestamp:e})=>t(e);return{start:()=>Oe.update(e,!0),stop:()=>De(e),now:()=>je.isProcessing?je.timestamp:Vr.now()}},Nr=2e4;function Ir(t){let e=0;let n=t.next(e);for(;!n.done&&e<Nr;)e+=50,n=t.next(e);return e>=Nr?1/0:e}const Br={decay:jr,inertia:jr,tween:vr,keyframes:vr,spring:Dr},Ur=t=>t/100;function zr({autoplay:t=!0,delay:e=0,driver:n=Lr,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...p}){let h,f,m=1,g=!1;const v=()=>{f=new Promise((t=>{h=t}))};let y;v();const _=Br[o]||vr;let b;_!==vr&&"number"!=typeof r[0]&&("production"!==process.env.NODE_ENV&&cn(2===r.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),b=$e(Ur,fr(r[0],r[1])),r=[0,100]);const x=_({...p,keyframes:r});let w;"mirror"===s&&(w=_({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let E="idle",S=null,k=null,P=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=Ir(x));const{calculatedDuration:T}=x;let C=1/0,R=1/0;null!==T&&(C=T+a,R=C*(i+1)-a);let A=0;const O=t=>{if(null===k)return;m>0&&(k=Math.min(k,t)),m<0&&(k=Math.min(t-R/m,k)),A=null!==S?S:Math.round(t-k)*m;const n=A-e*(m>=0?1:-1),o=m>=0?n<0:n>R;A=Math.max(n,0),"finished"===E&&null===S&&(A=R);let l=A,u=x;if(i){const t=Math.min(A,R)/C;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"===s?(n=1-n,a&&(n-=a/C)):"mirror"===s&&(u=w)),l=Lt(0,1,n)*C}const c=o?{done:!1,value:r[0]}:u.next(l);b&&(c.value=b(c.value));let{done:p}=c;o||null===T||(p=m>=0?A>=R:A<=0);const h=null===S&&("finished"===E||"running"===E&&p);return d&&d(c.value),h&&F(),c},D=()=>{y&&y.stop(),y=void 0},j=()=>{E="idle",D(),h(),v(),k=P=null},F=()=>{E="finished",c&&c(),D(),h()},M=()=>{if(g)return;y||(y=n(O));const t=y.now();l&&l(),null!==S?k=t-S:k&&"finished"!==E||(k=t),"finished"===E&&v(),P=k,S=null,E="running",y.start()};t&&M();const V={then:(t,e)=>f.then(t,e),get time(){return pn(A)},set time(t){t=dn(t),A=t,null===S&&y&&0!==m?k=y.now()-t/m:S=t},get duration(){const t=null===x.calculatedDuration?Ir(x):x.calculatedDuration;return pn(t)},get speed(){return m},set speed(t){t!==m&&y&&(m=t,V.time=pn(A))},get state(){return E},play:M,pause:()=>{E="paused",S=A},stop:()=>{g=!0,"idle"!==E&&(E="idle",u&&u(),j())},cancel:()=>{null!==P&&O(P),j()},complete:()=>{E="finished"},sample:t=>(k=0,O(t))};return V}const $r=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Wr=new Set(["opacity","clipPath","filter","transform"]);function Zr(t,e,{onUpdate:n,onComplete:r,...o}){if(!($r()&&Wr.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1,l=!1;const u=()=>{a=new Promise((t=>{i=t}))};u();let{keyframes:c,duration:d=300,ease:p,times:h}=o;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!mn(e.ease))(e,o)){const t=zr({...o,repeat:0,delay:0});let e={done:!1,value:c[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;h=void 0,c=n,d=r-10,p="linear"}const f=function(t,e,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=yn(s);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(t.owner.current,e,c,{...o,duration:d,ease:p,times:h}),m=()=>{l=!1,f.cancel()},g=()=>{l=!0,Oe.update(m),i(),u()};f.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(c,o)),r&&r(),g())};return{then:(t,e)=>a.then(t,e),attachTimeline:t=>(f.timeline=t,f.onfinish=null,Ae),get time(){return pn(f.currentTime||0)},set time(t){f.currentTime=dn(t)},get speed(){return f.playbackRate},set speed(t){f.playbackRate=t},get duration(){return pn(d)},play:()=>{s||(f.play(),De(m))},pause:()=>f.pause(),stop:()=>{if(s=!0,"idle"===f.playState)return;const{currentTime:e}=f;if(e){const n=zr({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}g()},complete:()=>{l||f.finish()},cancel:g}}const Gr={type:"spring",stiffness:500,damping:25,restSpeed:10},Hr={type:"keyframes",duration:.8},Yr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Kr=(t,{keyframes:e})=>e.length>2?Hr:Pt.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Gr:Yr,qr=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!sr.test(e)&&"0"!==e||e.startsWith("url("))),Xr=new Set(["brightness","contrast","saturate","opacity"]);function Qr(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(zt)||[];if(!r)return t;const o=n.replace(r,"");let i=Xr.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+o+")"}const Jr=/([a-z-]*)\(.*?\)/g,to={...sr,getAnimatableNone:t=>{const e=t.match(Jr);return e?e.map(Qr).join(" "):t}},eo={...te,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:to,WebkitFilter:to},no=t=>eo[t];function ro(t,e){let n=no(t);return n!==to&&(n=sr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const oo=t=>/^0[^.\s]+$/.test(t);function io(t){return"number"==typeof t?0===t:null!==t?"none"===t||"0"===t||oo(t):void 0}function ao(t,e){return t[e]||t.default||t}const so=(t,e,n,r={})=>o=>{const i=ao(r,t)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=dn(a);const l=function(t,e,n,r){const o=qr(e,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:t.get();let s;const l=[];for(let t=0;t<i.length;t++)null===i[t]&&(i[t]=0===t?a:i[t-1]),io(i[t])&&l.push(t),"string"==typeof i[t]&&"none"!==i[t]&&"0"!==i[t]&&(s=i[t]);if(o&&l.length&&s)for(let t=0;t<l.length;t++)i[l[t]]=ro(e,s);return i}(e,t,n,i),u=l[0],c=l[l.length-1],d=qr(t,u),p=qr(t,c);un(d===p,`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 h={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:t=>{e.set(t),i.onUpdate&&i.onUpdate(t)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(i)||(h={...h,...Kr(t,h)}),h.duration&&(h.duration=dn(h.duration)),h.repeatDelay&&(h.repeatDelay=dn(h.repeatDelay)),!d||!p||hn||!1===i.type||Q)return function({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const o=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Ae,pause:Ae,stop:Ae,then:t=>(t(),Promise.resolve()),cancel:Ae,complete:Ae});return e?zr({keyframes:[0,1],duration:0,delay:e,onComplete:o}):o()}(h);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=Zr(e,t,h);if(n)return n}return zr(h)};function lo(t){return Boolean(Ct(t)&&t.add)}const uo=t=>/^\-?\d*\.?\d+$/.test(t);function co(t,e){-1===t.indexOf(e)&&t.push(e)}function po(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ho{constructor(){this.subscriptions=[]}add(t){return co(this.subscriptions,t),()=>po(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const fo=new Set;function mo(t,e,n){t||fo.has(e)||(console.warn(e),n&&console.warn(n),fo.add(e))}class go{constructor(t,e={}){var n;this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=Vr.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=Vr.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&mo(!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 ho);const n=this.events[t].add(e);return"change"===t?()=>{n(),Oe.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=Vr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return yr(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 vo(t,e){return new go(t,e)}const yo=t=>e=>e.test(t),_o=[Nt,Kt,Yt,Ht,Xt,qt,{test:t=>"auto"===t,parse:t=>t}],bo=t=>_o.find(yo(t)),xo=[..._o,qn,sr];function wo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,vo(n))}function Eo(t,e){if(!e)return;return(e[t]||e.default||e).from}function So({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function ko(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 Po(t,e,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:a,...s}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(i=r);const u=[],c=o&&t.animationState&&t.animationState.getState()[o];for(const e in s){const r=t.getValue(e),o=s[e];if(!r||void 0===o||c&&So(c,e))continue;const a={delay:n,elapsed:0,...ao(i||{},e)};if(window.HandoffAppearAnimations){const n=t.getProps()[X];if(n){const t=window.HandoffAppearAnimations(n,e,r,Oe);null!==t&&(a.elapsed=t,a.isHandoff=!0)}}let d=!a.isHandoff&&!ko(r,o);if("spring"===a.type&&(r.getVelocity()||a.velocity)&&(d=!1),r.animation&&(d=!1),d)continue;r.start(so(e,r,o,t.shouldReduceMotion&&Pt.has(e)?{type:!1}:a));const p=r.animation;lo(l)&&(l.add(e),p.then((()=>l.remove(e)))),u.push(p)}return a&&Promise.all(u).then((()=>{a&&function(t,e){const n=ln(t,e);let{transitionEnd:r={},transition:o={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const e in i)wo(t,e,Pe(i[e]))}(t,a)})),u}function To(t,e,n={}){const r=ln(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Po(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(t,e,n=0,r=0,o=1,i){const a=[],s=(t.variantChildren.size-1)*r,l=1===o?(t=0)=>t*r:(t=0)=>s-t*r;return Array.from(t.variantChildren).sort(Co).forEach(((t,r)=>{t.notify("AnimationStart",e),a.push(To(t,e,{...i,delay:n+l(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(a)}(t,e,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[t,e]="beforeChildren"===s?[i,a]:[a,i];return t().then((()=>e()))}return Promise.all([i(),a(n.delay)])}function Co(t,e){return t.sortNodePosition(e)}const Ro=[...lt].reverse(),Ao=lt.length;function Oo(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>To(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=To(t,e,n);else{const o="function"==typeof e?ln(t,e,n.custom):e;r=Promise.all(Po(t,o,n))}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function Do(t){let e=Oo(t);const n={animate:Fo(!0),whileInView:Fo(),whileHover:Fo(),whileTap:Fo(),whileDrag:Fo(),whileFocus:Fo(),exit:Fo()};let r=!0;const o=(e,n)=>{const r=ln(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function i(i,a){const s=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set;let d={},p=1/0;for(let e=0;e<Ao;e++){const h=Ro[e],f=n[h],m=void 0!==s[h]?s[h]:l[h],g=at(m),v=h===a?f.isActive:null;!1===v&&(p=e);let y=m===l[h]&&m!==s[h]&&g;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...d},!f.isActive&&null===v||!m&&!f.prevProp||st(m)||"boolean"==typeof m)continue;let _=jo(f.prevProp,m)||h===a&&f.isActive&&!y&&g||e>p&&g,b=!1;const x=Array.isArray(m)?m:[m];let w=x.reduce(o,{});!1===v&&(w={});const{prevResolvedValues:E={}}=f,S={...E,...w},k=t=>{_=!0,c.has(t)&&(b=!0,c.delete(t)),f.needsAnimating[t]=!0};for(const t in S){const e=w[t],n=E[t];if(d.hasOwnProperty(t))continue;let r=!1;r=Se(e)&&Se(n)?!sn(e,n):e!==n,r?void 0!==e?k(t):c.add(t):void 0!==e&&c.has(t)?k(t):f.protectedKeys[t]=!0}f.prevProp=m,f.prevResolvedValues=w,f.isActive&&(d={...d,...w}),r&&t.blockInitialAnimation&&(_=!1),!_||y&&!b||u.push(...x.map((t=>({animation:t,options:{type:h,...i}}))))}if(c.size){const e={};c.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),u.push({animation:e})}let h=Boolean(u.length);return!r||!1!==s.initial&&s.initial!==s.animate||t.manuallyAnimateOnMount||(h=!1),r=!1,h?e(u):Promise.resolve()}return{animateChanges:i,setActive:function(e,r,o){var a;if(n[e].isActive===r)return Promise.resolve();null===(a=t.variantChildren)||void 0===a||a.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const s=i(o,e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function jo(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!sn(e,t)}function Fo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Mo=0;const Vo={animation:{Feature:class extends Ke{constructor(t){super(t),t.animationState||(t.animationState=Do(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),st(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 Ke{constructor(){super(...arguments),this.id=Mo++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&o.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},Lo=(t,e)=>Math.abs(t-e);class No{constructor(t,e,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!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=Uo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Lo(t.x,e.x),r=Lo(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:r}=t,{timestamp:o}=je;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;e||(i&&i(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Io(e,this.transformPagePoint),Oe.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Uo("pointercancel"===t.type?this.lastMoveEventInfo:Io(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!Ne(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;const i=Io(Ie(t),this.transformPagePoint),{point:a}=i,{timestamp:s}=je;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=e;l&&l(t,Uo(i,this.history)),this.removeListeners=$e(Ue(this.contextWindow,"pointermove",this.handlePointerMove),Ue(this.contextWindow,"pointerup",this.handlePointerUp),Ue(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),De(this.updatePoint)}}function Io(t,e){return e?{point:e(t.point)}:t}function Bo(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Uo({point:t},e){return{point:t,delta:Bo(t,$o(e)),offset:Bo(t,zo(e)),velocity:Wo(e,.1)}}function zo(t){return t[0]}function $o(t){return t[t.length-1]}function Wo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=$o(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>dn(e)));)n--;if(!r)return{x:0,y:0};const i=pn(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Zo(t){return t.max-t.min}function Go(t,e=0,n=.01){return Math.abs(t-e)<=n}function Ho(t,e,n,r=.5){t.origin=r,t.originPoint=Nn(e.min,e.max,t.origin),t.scale=Zo(n)/Zo(e),(Go(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Nn(n.min,n.max,t.origin)-t.originPoint,(Go(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Yo(t,e,n,r){Ho(t.x,e.x,n.x,r?r.originX:void 0),Ho(t.y,e.y,n.y,r?r.originY:void 0)}function Ko(t,e,n){t.min=n.min+e.min,t.max=t.min+Zo(e)}function qo(t,e,n){t.min=e.min-n.min,t.max=t.min+Zo(e)}function Xo(t,e,n){qo(t.x,e.x,n.x),qo(t.y,e.y,n.y)}function Qo(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 Jo(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}const ti=.35;function ei(t,e,n){return{min:ni(t,e),max:ni(t,n)}}function ni(t,e){return"number"==typeof t?t:t[e]||0}const ri=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),oi=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ii(t){return[t("x"),t("y")]}function ai({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function si(t){return void 0===t||1===t}function li({scale:t,scaleX:e,scaleY:n}){return!si(t)||!si(e)||!si(n)}function ui(t){return li(t)||ci(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ci(t){return di(t.x)||di(t.y)}function di(t){return t&&"0%"!==t}function pi(t,e,n){return n+e*(t-n)}function hi(t,e,n,r,o){return void 0!==o&&(t=pi(t,o,r)),pi(t,n,r)+e}function fi(t,e=0,n=1,r,o){t.min=hi(t.min,e,n,r,o),t.max=hi(t.max,e,n,r,o)}function mi(t,{x:e,y:n}){fi(t.x,e.translate,e.scale,e.originPoint),fi(t.y,n.translate,n.scale,n.originPoint)}function gi(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function vi(t,e){t.min=t.min+e,t.max=t.max+e}function yi(t,e,[n,r,o]){const i=void 0!==e[o]?e[o]:.5,a=Nn(t.min,t.max,i);fi(t,e[n],e[r],a,e.scale)}const _i=["x","scaleX","originX"],bi=["y","scaleY","originY"];function xi(t,e){yi(t.x,e,_i),yi(t.y,e,bi)}function wi(t,e){return ai(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}const Ei=({current:t})=>t?t.ownerDocument.defaultView:null,Si=new WeakMap;class ki{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=oi(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new No(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Ie(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=He(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),ii((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Yt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[t];if(r){e=Zo(r)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&Oe.update((()=>o(t,e)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=e;if(r&&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}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),i&&i(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>ii((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:r,contextWindow:Ei(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Oe.update((()=>o(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:r}=this.getProps();if(!n||!Pi(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?Nn(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?Nn(n,t,r.max):Math.min(t,n)),t}(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,o=this.constraints;e&&it(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(t,{top:e,left:n,bottom:r,right:o}){return{x:Qo(t.x,n,o),y:Qo(t.y,e,r)}}(r.layoutBox,e),this.elastic=function(t=ti){return!1===t?t=0:!0===t&&(t=ti),{x:ei(t,"left","right"),y:ei(t,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ii((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}(r.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!it(t))return!1;const n=t.current;cn(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(t,e,n){const r=wi(t,n),{scroll:o}=e;return o&&(vi(r.x,o.offset.x),vi(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:Jo(t.x,e.x),y:Jo(t.y,e.y)}}(r.layout.layoutBox,o);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=ai(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ii((a=>{if(!Pi(a,e,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?t[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(so(t,n,0,e))}stopAnimation(){ii((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){ii((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(),r=n[e];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ii((e=>{const{drag:n}=this.getProps();if(!Pi(e,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(e);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[e];o.set(t[e]-Nn(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!it(e)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ii((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();r[t]=function(t,e){let n=.5;const r=Zo(t),o=Zo(e);return o>r?n=Ln(e.min,e.max-r,t.min):r>o&&(n=Ln(t.min,t.max-o,e.min)),Lt(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ii((e=>{if(!Pi(e,t,null))return;const n=this.getAxisMotionValue(e),{min:o,max:i}=this.constraints[e];n.set(Nn(o,i,r[e]))}))}addListeners(){if(!this.visualElement.current)return;Si.set(this.visualElement,this);const t=Ue(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();it(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const o=Le(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ii((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{o(),t(),r(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=ti,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Pi(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Ti=t=>(e,n)=>{t&&Oe.update((()=>t(e,n)))};const Ci={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ri(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ai={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Kt.test(t))return t;t=parseFloat(t)}return`${Ri(t,e.target.x)}% ${Ri(t,e.target.y)}%`}},Oi={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,o=sr.parse(t);if(o.length>5)return r;const i=sr.createTransformer(t),a="number"!=typeof o[0]?1:0,s=n.x.scale*e.x,l=n.y.scale*e.y;o[0+a]/=s,o[1+a]/=l;const u=Nn(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=u),"number"==typeof o[3+a]&&(o[3+a]/=u),i(o)}};class Di extends e.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;var i;i=Fi,Object.assign(St,i),o&&(e.group&&e.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ci.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||t.layoutDependency!==e||void 0===e?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||Oe.postRender((()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),rt.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ji(t){const[n,r]=function(){const t=i(G);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,a=h();return o((()=>r(a)),[]),!e&&n?[!1,()=>n&&n(a)]:[!0]}(),a=i(gt);return e.createElement(Di,{...t,layoutGroup:a,switchLayoutGroup:i(vt),isPresent:n,safeToRemove:r})}const Fi={borderRadius:{...Ai,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ai,borderTopRightRadius:Ai,borderBottomLeftRadius:Ai,borderBottomRightRadius:Ai,boxShadow:Oi},Mi=["TopLeft","TopRight","BottomLeft","BottomRight"],Vi=Mi.length,Li=t=>"string"==typeof t?parseFloat(t):t,Ni=t=>"number"==typeof t||Kt.test(t);function Ii(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Bi=zi(0,.5,An),Ui=zi(.5,.95,Ae);function zi(t,e,n){return r=>r<t?0:r>e?1:n(Ln(t,e,r))}function $i(t,e){t.min=e.min,t.max=e.max}function Wi(t,e){$i(t.x,e.x),$i(t.y,e.y)}function Zi(t,e,n,r,o){return t=pi(t-=e,1/n,r),void 0!==o&&(t=pi(t,1/o,r)),t}function Gi(t,e,[n,r,o],i,a){!function(t,e=0,n=1,r=.5,o,i=t,a=t){Yt.test(e)&&(e=parseFloat(e),e=Nn(a.min,a.max,e/100)-a.min);if("number"!=typeof e)return;let s=Nn(i.min,i.max,r);t===i&&(s-=e),t.min=Zi(t.min,e,n,s,o),t.max=Zi(t.max,e,n,s,o)}(t,e[n],e[r],e[o],e.scale,i,a)}const Hi=["x","scaleX","originX"],Yi=["y","scaleY","originY"];function Ki(t,e,n,r){Gi(t.x,e,Hi,n?n.x:void 0,r?r.x:void 0),Gi(t.y,e,Yi,n?n.y:void 0,r?r.y:void 0)}function qi(t){return 0===t.translate&&1===t.scale}function Xi(t){return qi(t.x)&&qi(t.y)}function Qi(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 Ji(t){return Zo(t.x)/Zo(t.y)}class ta{constructor(){this.members=[]}add(t){co(this.members,t),t.scheduleRender()}remove(t){if(po(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:r}=t.options;!1===r&&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 ea(t,e,n){let r="";const o=t.x.translate/e.x,i=t.y.translate/e.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===e.x&&1===e.y||(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=t.x.scale*e.x,s=t.y.scale*e.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const na=(t,e)=>t.depth-e.depth;class ra{constructor(){this.children=[],this.isDirty=!1}add(t){co(this.children,t),this.isDirty=!0}remove(t){po(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(na),this.isDirty=!1,this.children.forEach(t)}}const oa=["","X","Y","Z"],ia={visibility:"hidden"};let aa=0;const sa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function la({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=aa++,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,sa.totalNodes=sa.resolvedTargetDeltas=sa.recalculatedProjection=0,this.nodes.forEach(da),this.nodes.forEach(ya),this.nodes.forEach(_a),this.nodes.forEach(pa),t=sa,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 ra)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ho),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 r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=Vr.now(),r=({timestamp:o})=>{const i=o-n;i>=e&&(De(r),t(i-e))};return Oe.read(r,!0),()=>De(r)}(r,250),Ci.hasAnimatedSinceResize&&(Ci.hasAnimatedSinceResize=!1,this.nodes.forEach(va))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||ka,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Qi(this.targetLayout,r)||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={...ao(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||va(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}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,De(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(ba),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 r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(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(fa);this.isUpdating||this.nodes.forEach(ma),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(ga),this.nodes.forEach(ua),this.nodes.forEach(ca),this.clearAllSnapshots();const t=Vr.now();je.delta=Lt(0,1e3/60,t-je.timestamp),je.timestamp=t,je.isProcessing=!0,Fe.update.process(je),Fe.preRender.process(je),Fe.render.process(je),je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rt.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(ha),this.sharedNodes.forEach(xa)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Oe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Oe.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=oi(),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:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!Xi(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;t&&(e||ui(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var r;return t&&(n=this.removeTransform(n)),Ca((r=n).x),Ca(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return oi();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(vi(e.x,n.offset.x),vi(e.y,n.offset.y)),e}removeElementScroll(t){const e=oi();Wi(e,t);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Wi(e,t);const{scroll:n}=this.root;n&&(vi(e.x,-n.offset.x),vi(e.y,-n.offset.y))}vi(e.x,o.offset.x),vi(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n=oi();Wi(n,t);for(let t=0;t<this.path.length;t++){const r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&xi(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),ui(r.latestValues)&&xi(n,r.latestValues)}return ui(this.latestValues)&&xi(n,this.latestValues),n}removeTransform(t){const e=oi();Wi(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!ui(n.latestValues))continue;li(n.latestValues)&&n.updateSnapshot();const r=oi();Wi(r,n.measurePageBox()),Ki(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return ui(this.latestValues)&&Ki(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!==je.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 r=Boolean(this.resumingFrom)||this!==n;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=je.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=oi(),this.relativeTargetOrigin=oi(),Xo(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Wi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=oi(),this.targetWithTransforms=oi()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Ko(a.x,s.x,l.x),Ko(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Wi(this.target,this.layout.layoutBox),mi(this.target,this.targetDelta)):Wi(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=oi(),this.relativeTargetOrigin=oi(),Xo(this.relativeTargetOrigin,this.target,t.target),Wi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sa.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!li(this.parent.latestValues)&&!ci(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 r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===je.timestamp&&(r=!1),r)return;const{layout:o,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||!o&&!i)return;Wi(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(t,e,n,r=!1){const o=n.length;if(!o)return;let i,a;e.x=e.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&xi(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,mi(t,a)),r&&ui(i.latestValues)&&xi(t,i.latestValues))}e.x=gi(e.x),e.y=gi(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=oi());const{target:l}=e;if(!l)return void(this.projectionTransform&&(this.projectionDelta=ri(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=ri(),this.projectionDeltaWithTransform=ri());const u=this.projectionTransform;Yo(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ea(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),sa.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,r=n?n.latestValues:{},o={...this.latestValues},i=ri();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a=oi(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(Sa));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,p,h,f,m,g;wa(i.x,t.x,n),wa(i.y,t.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xo(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,f=this.relativeTargetOrigin,m=a,g=n,Ea(h.x,f.x,m.x,g),Ea(h.y,f.y,m.y,g),d&&(l=this.relativeTarget,p=d,l.x.min===p.x.min&&l.x.max===p.x.max&&l.y.min===p.y.min&&l.y.max===p.y.max)&&(this.isProjectionDirty=!1),d||(d=oi()),Wi(d,this.relativeTarget)),s&&(this.animationValues=o,function(t,e,n,r,o,i){o?(t.opacity=Nn(0,void 0!==n.opacity?n.opacity:1,Bi(r)),t.opacityExit=Nn(void 0!==e.opacity?e.opacity:1,0,Ui(r))):i&&(t.opacity=Nn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Vi;o++){const i=`border${Mi[o]}Radius`;let a=Ii(e,i),s=Ii(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Ni(a)===Ni(s)?(t[i]=Math.max(Nn(Li(a),Li(s),r),0),(Yt.test(s)||Yt.test(a))&&(t[i]+="%")):t[i]=s)}(e.rotate||n.rotate)&&(t.rotate=Nn(e.rotate||0,n.rotate||0,r))}(o,r,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&&(De(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Oe.update((()=>{Ci.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const r=Ct(t)?t:vo(t);return r.start(so("",r,e,n)),r.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:r,latestValues:o}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&Ra(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||oi();const e=Zo(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=Zo(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}Wi(e,n),xi(e,o),Yo(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}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 r=this.getStack();r&&r.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 r={};for(let e=0;e<oa.length;e++){const o="rotate"+oa[e];n[o]&&(r[o]=n[o],t.setStaticValue(o,0))}t.render();for(const e in r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ia;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Te(null==t?void 0:t.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;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=Te(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!ui(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ea(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(e=a.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in St){if(void 0===a[t])continue;const{correct:e,applyTo:n}=St[t],o="none"===r.transform?a[t]:e(a[t],i);if(n){const t=n.length;for(let e=0;e<t;e++)r[n[e]]=o}else r[t]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Te(null==t?void 0:t.pointerEvents)||"":"none"),r}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(fa),this.root.sharedNodes.clear()}}}function ua(t){t.updateLayout()}function ca(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:r}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;"size"===o?ii((t=>{const r=i?n.measuredBox[t]:n.layoutBox[t],o=Zo(r);r.min=e[t].min,r.max=r.min+o})):Ra(o,n.layoutBox,e)&&ii((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=Zo(e[r]);o.max=o.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+a)}));const a=ri();Yo(a,e,n.layoutBox);const s=ri();i?Yo(s,t.applyTransform(r,!0),n.measuredBox):Yo(s,e,n.layoutBox);const l=!Xi(a);let u=!1;if(!t.resumeFrom){const r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=oi();Xo(a,n.layoutBox,o.layoutBox);const s=oi();Xo(s,e,i.layoutBox),Qi(a,s)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=s,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function da(t){sa.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 pa(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ha(t){t.clearSnapshot()}function fa(t){t.clearMeasurements()}function ma(t){t.isLayoutDirty=!1}function ga(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function va(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ya(t){t.resolveTargetDelta()}function _a(t){t.calcProjection()}function ba(t){t.resetRotation()}function xa(t){t.removeLeadSnapshot()}function wa(t,e,n){t.translate=Nn(e.translate,0,n),t.scale=Nn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ea(t,e,n,r){t.min=Nn(e.min,n.min,r),t.max=Nn(e.max,n.max,r)}function Sa(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const ka={duration:.45,ease:[.4,0,.1,1]},Pa=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ta=Pa("applewebkit/")&&!Pa("chrome/")?Math.round:Ae;function Ca(t){t.min=Ta(t.min),t.max=Ta(t.max)}function Ra(t,e,n){return"position"===t||"preserve-aspect"===t&&!Go(Ji(e),Ji(n),.2)}const Aa=la({attachResizeListener:(t,e)=>Le(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Oa={current:void 0},Da=la({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Oa.current){const t=new Aa({});t.mount(window),t.setOptions({layoutScroll:!0}),Oa.current=t}return Oa.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),ja={pan:{Feature:class extends Ke{constructor(){super(...arguments),this.removePointerDownListener=Ae}onPointerDown(t){this.session=new No(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ei(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ti(t),onStart:Ti(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&Oe.update((()=>r(t,e)))}}}mount(){this.removePointerDownListener=Ue(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 Ke{constructor(t){super(t),this.removeGroupControls=Ae,this.removeListeners=Ae,this.controls=new ki(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ae}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Da,MeasureLayout:ji}},Fa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const Ma=4;function Va(t,e,n=1){cn(n<=Ma,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,o]=function(t){const e=Fa.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);if(i){const t=i.trim();return uo(t)?parseFloat(t):t}return Ft(o)?Va(o,e,n+1):o}const La=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Na=t=>La.has(t),Ia=t=>t===Nt||t===Kt,Ba=(t,e)=>parseFloat(t.split(", ")[e]),Ua=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Ba(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Ba(e[1],t):0}},za=new Set(["x","y","z"]),$a=kt.filter((t=>!za.has(t)));const Wa={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:Ua(4,13),y:Ua(5,14)};Wa.translateX=Wa.x,Wa.translateY=Wa.y;const Za=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(Na);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=t.getValue(o);if(!t.hasValue(o))return;let u=n[o],c=bo(u);const d=e[o];let p;if(Se(d)){const t=d.length,e=null===d[0]?1:0;u=d[e],c=bo(u);for(let n=e;n<t&&null!==d[n];n++)p?cn(bo(d[n])===p,"All keyframes must be of the same type"):(p=bo(d[n]),cn(p===c||Ia(c)&&Ia(p),"Keyframes must be of the same dimension as the current value"))}else p=bo(d);if(c!==p)if(Ia(c)&&Ia(p)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&p===Kt&&(e[o]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==p?void 0:p.transform)&&(0===u||0===d)?0===u?l.set(p.transform(u)):e[o]=c.transform(d):(a||(i=function(t){const e=[];return $a.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:e[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{s[t]=Wa[t](r,i)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(s[n]),t[n]=Wa[n](l,i)})),t})(e,t,s);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),H&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function Ga(t,e,n,r){return(t=>Object.keys(t).some(Na))(e)?Za(t,e,n,r):{target:e,transitionEnd:r}}const Ha=(t,e,n,r)=>{const o=function(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!Ft(e))return;const n=Va(e,r);n&&t.set(n)}));for(const t in e){const o=e[t];if(!Ft(o))continue;const i=Va(o,r);i&&(e[t]=i,n||(n={}),void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}(t,e,r);return Ga(t,e=o.target,n,r=o.transitionEnd)},Ya={current:null},Ka={current:!1};const qa=new WeakMap,Xa=Object.keys(mt),Qa=Xa.length,Ja=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ts=ut.length;class es{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:o},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=()=>Oe.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=s,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=ct(e),this.isVariantNode=dt(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!==a[t]&&Ct(e)&&(e.set(a[t],!1),lo(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,qa.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))),Ka.current||function(){if(Ka.current=!0,H)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ya.current=t.matches;t.addListener(e),e()}else Ya.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ya.current),"production"!==process.env.NODE_ENV&&mo(!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(){qa.delete(this.current),this.projection&&this.projection.unmount(),De(this.notifyUpdate),De(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=Pt.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&Oe.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,o){let i,a;if("production"!==process.env.NODE_ENV&&r&&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?un(!1,t):cn(!1,t)}for(let t=0;t<Qa;t++){const n=Xa[t],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=mt[n];s&&(i=s),r(e)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=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:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||a&&it(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}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):oi()}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<Ja.length;e++){const n=Ja[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const i=e[o],a=n[o];if(Ct(i))t.addValue(o,i),lo(r)&&r.add(o),"development"===process.env.NODE_ENV&&mo("11.0.8"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 11.0.8 may not work as expected.`);else if(Ct(a))t.addValue(o,vo(i,{owner:t})),lo(r)&&r.remove(o);else if(a!==i)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(i)}else{const e=t.getStaticValue(o);t.addValue(o,vo(void 0!==e?e:i,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);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<ts;t++){const n=ut[t],r=this.props[n];(at(r)||!1===r)&&(e[n]=r)}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=vo(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,r="string"==typeof n||"object"==typeof n?null===(e=Ee(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||Ct(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new ho),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class ns extends es{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},r){const o=function(t,e,n){const r={};for(const o in t){const t=Eo(o,e);if(void 0!==t)r[o]=t;else{const t=n.getValue(o);t&&(r[o]=t.get())}}return r}(n,t||{},this);if(r){!function(t,e,n){var r,o;const i=Object.keys(e).filter((e=>!t.hasValue(e))),a=i.length;var s;if(a)for(let l=0;l<a;l++){const a=i[l],u=e[a];let c=null;Array.isArray(u)&&(c=u[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:t.readValue(a))&&void 0!==o?o:e[a]),null!=c&&("string"==typeof c&&(uo(c)||oo(c))?c=parseFloat(c):(s=c,!xo.find(yo(s))&&sr.test(u)&&(c=ro(a,u))),t.addValue(a,vo(c,{owner:t})),void 0===n[a]&&(n[a]=c),null!==c&&t.setBaseTarget(a,c))}}(this,n,o);const t=Ha(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class rs extends ns{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(Pt.has(e)){const t=no(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),o=(Dt(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return wi(t,e)}build(t,e,n,r){ee(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return xe(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ct(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){ye(t,e,n,r)}}class os extends ns{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Pt.has(e)){const t=no(e);return t&&t.default||0}return e=_e.has(e)?e:q(e),t.getAttribute(e)}measureInstanceViewportBox(){return oi()}scrapeMotionValuesFromProps(t,e){return we(t,e)}build(t,e,n,r){he(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){be(t,e,0,r)}mount(t){this.isSVGTag=me(t.tagName),super.mount(t)}}const is=(t,e)=>Et(t)?new os(e,{enableHardwareAcceleration:!1}):new rs(e,{enableHardwareAcceleration:!0}),as={...Vo,...an,...ja,...{layout:{ProjectionNode:Da,MeasureLayout:ji}}},ss=xt(((t,e)=>function(t,{forwardMotionProps:e=!1},n,r){return{...Et(t)?Me:Ve,preloadedFeatures:n,useRender:ve(e),createVisualElement:r,Component:t}}(t,e,as,is)));var ls={open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},us=function(t){var n=t.condition,r=t.children;return e.createElement(ss.div,{initial:"collapsed",animate:n?"open":"collapsed",variants:ls},r)},cs="form-module_form__FGOhg";T(".form-module_form__FGOhg {\n display: flex;\n justify-content: center;\n flex-direction: column;\n gap: 1rem;\n max-width: 640px;\n margin: 0 auto;\n padding: 0 1rem;\n}\n\n.form-module_form__FGOhg fieldset {\n all: unset;\n display: flex;\n flex-direction: column; \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\n .form-module_form__FGOhg {\n padding: 0;\n }\n .form-module_content-title-semi-bold__rYlQh {\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var ds=function(t){var n=t.methods,r=t.children,o=t.onSubmit,i=S(t,["methods","children","onSubmit"]);return e.createElement(x,E({},n),e.createElement("form",E({className:cs,onSubmit:n.handleSubmit((function(t){return o(t)}))},i),r))},ps="numberField-module_container__yjOIU",hs="numberField-module_fake-input__cqOX-",fs="numberField-module_spinbutton-container__HkUKt",ms="numberField-module_spinbutton-container--error__dO4fj",gs="numberField-module_control__yE0Ro";T(".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 vs=["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"],ys=function(t){var n=_(),r=n.control,o=n.formState.errors,i=t.name,a=E(E({},t),{error:o&&o[i]});return e.createElement(b,{name:i,control:r,render:function(t){var n=t.field;return e.createElement(_s,E({},a,{field:E({},n)}))}})},_s=function(t){var n=t.name,r=t.label,o=t.min,i=void 0===o?0:o,a=t.max,s=void 0===a?100:a,l=t.width,u=void 0===l?3:l,c=t.error,d=t.helper,p=t.field,h=p.value,f=p.onChange,m=p.onBlur,g=function(t){h<=i||f(h-t)},v=function(t){h>=s||f(h+t)};return e.createElement(U,{id:"".concat(n,"-label"),label:r,error:null==c?void 0:c.message,helper:null==d?void 0:d.message},e.createElement("div",{className:ps},e.createElement("div",{className:P(fs,c&&ms)},e.createElement("button",{className:gs,type:"button",tabIndex:-1,onClick:function(){return g(1)},"aria-label":"decrease"},"-"),e.createElement(A,{as:"div",className:hs,role:"spinbutton",tabIndex:0,onKeyDown:function(t){vs.includes(t.key)&&(t.preventDefault(),function(t){"ArrowUp"===t.key&&v(1),"ArrowDown"===t.key&&g(1)}(t),function(t){"PageUp"===t.key&&v(5),"PageDown"===t.key&&g(5)}(t),function(t){"Home"===t.key&&f(i),"End"===t.key&&f(s)}(t))},onBlur:m,"aria-valuenow":h,"aria-valuemin":i,"aria-valuemax":s,"aria-labelledby":"".concat(n,"-label"),"aria-invalid":!!(null==c?void 0:c.message),"aria-errormessage":c?"".concat(n,"-error"):void 0,style:{width:"".concat(u,"ch")}},h),e.createElement("button",{className:gs,type:"button",tabIndex:-1,onClick:function(){return v(1)},"aria-label":"increase"},"+"))))};function bs(){return bs=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},bs.apply(this,arguments)}function xs(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==t||t(r),!1===n||!r.defaultPrevented)return null==e?void 0:e(r)}}function ws(...t){return e=>t.forEach((t=>function(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}(t,e)))}function Es(...t){return l(ws(...t),t)}function Ss(t,e=[]){let r=[];const o=()=>{const e=r.map((t=>n(t)));return function(n){const r=(null==n?void 0:n[t])||e;return u((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(e,o){const a=n(o),s=r.length;function l(e){const{scope:n,children:r,...o}=e,i=(null==n?void 0:n[t][s])||a,l=u((()=>o),Object.values(o));return p(i.Provider,{value:l},r)}return r=[...r,o],l.displayName=e+"Provider",[l,function(n,r){const l=(null==r?void 0:r[t][s])||a,u=i(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${e}\``)}]},ks(o,...e)]}function ks(...t){const e=t[0];if(1===t.length)return e;const n=()=>{const n=t.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(t){const r=n.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return u((()=>({[`__scope${e.scopeName}`]:r})),[r])}};return n.scopeName=e.scopeName,n}const Ps=c(((t,e)=>{const{children:n,...r}=t,o=f.toArray(n),i=o.find(Rs);if(i){const t=i.props.children,n=o.map((e=>e===i?f.count(t)>1?f.only(null):m(t)?t.props.children:null:e));return p(Ts,bs({},r,{ref:e}),m(t)?g(t,void 0,n):null)}return p(Ts,bs({},r,{ref:e}),n)}));Ps.displayName="Slot";const Ts=c(((t,e)=>{const{children:n,...r}=t;return m(n)?g(n,{...As(r,n.props),ref:e?ws(e,n.ref):n.ref}):f.count(n)>1?f.only(null):null}));Ts.displayName="SlotClone";const Cs=({children:t})=>p(d,null,t);function Rs(t){return m(t)&&t.type===Cs}function As(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...t)=>{i(...t),o(...t)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}const Os=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,e)=>{const n=c(((t,n)=>{const{asChild:r,...i}=t,a=r?Ps:e;return o((()=>{window[Symbol.for("radix-ui")]=!0}),[]),p(a,bs({},i,{ref:n}))}));return n.displayName=`Primitive.${e}`,{...t,[e]:n}}),{});const Ds=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?r:()=>{},js=t["useId".toString()]||(()=>{});let Fs=0;function Ms(t){const e=a(t);return o((()=>{e.current=t})),u((()=>(...t)=>{var n;return null===(n=e.current)||void 0===n?void 0:n.call(e,...t)}),[])}function Vs({prop:t,defaultProp:e,onChange:n=(()=>{})}){const[r,i]=function({defaultProp:t,onChange:e}){const n=v(t),[r]=n,i=a(r),s=Ms(e);return o((()=>{i.current!==r&&(s(r),i.current=r)}),[r,i,s]),n}({defaultProp:e,onChange:n}),s=void 0!==t,u=s?t:r,c=Ms(n);return[u,l((e=>{if(s){const n="function"==typeof e?e(t):e;n!==t&&c(n)}else i(e)}),[s,t,i,c])]}const Ls=n(void 0);function Ns(t){const e=i(Ls);return t||e||"ltr"}const Is="rovingFocusGroup.onEntryFocus",Bs={bubbles:!1,cancelable:!0},Us="RovingFocusGroup",[zs,$s,Ws]=function(t){const n=t+"CollectionProvider",[r,o]=Ss(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=t+"CollectionSlot",l=t+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:t=>{const{scope:n,children:r}=t,o=e.useRef(null),a=e.useRef(new Map).current;return e.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:e.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=Es(n,a(s,r).collectionRef);return e.createElement(Ps,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,s=e.useRef(null),c=Es(n,s),d=a(l,r);return e.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),e.createElement(Ps,{[u]:"",ref:c},o)}))},function(n){const r=a(t+"CollectionConsumer",n);return e.useCallback((()=>{const t=r.collectionRef.current;if(!t)return[];const e=Array.from(t.querySelectorAll(`[${u}]`));return Array.from(r.itemMap.values()).sort(((t,n)=>e.indexOf(t.ref.current)-e.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}(Us),[Zs,Gs]=Ss(Us,[Ws]),[Hs,Ys]=Zs(Us),Ks=c(((t,e)=>p(zs.Provider,{scope:t.__scopeRovingFocusGroup},p(zs.Slot,{scope:t.__scopeRovingFocusGroup},p(qs,bs({},t,{ref:e})))))),qs=c(((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:h,...f}=t,m=a(null),g=Es(e,m),y=Ns(s),[_=null,b]=Vs({prop:u,defaultProp:c,onChange:d}),[x,w]=v(!1),E=Ms(h),S=$s(n),k=a(!1),[P,T]=v(0);return o((()=>{const t=m.current;if(t)return t.addEventListener(Is,E),()=>t.removeEventListener(Is,E)}),[E]),p(Hs,{scope:n,orientation:r,dir:y,loop:i,currentTabStopId:_,onItemFocus:l((t=>b(t)),[b]),onItemShiftTab:l((()=>w(!0)),[]),onFocusableItemAdd:l((()=>T((t=>t+1))),[]),onFocusableItemRemove:l((()=>T((t=>t-1))),[])},p(Os.div,bs({tabIndex:x||0===P?-1:0,"data-orientation":r},f,{ref:g,style:{outline:"none",...t.style},onMouseDown:xs(t.onMouseDown,(()=>{k.current=!0})),onFocus:xs(t.onFocus,(t=>{const e=!k.current;if(t.target===t.currentTarget&&e&&!x){const e=new CustomEvent(Is,Bs);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){const t=S().filter((t=>t.focusable));Js([t.find((t=>t.active)),t.find((t=>t.id===_)),...t].filter(Boolean).map((t=>t.ref.current)))}}k.current=!1})),onBlur:xs(t.onBlur,(()=>w(!1)))})))})),Xs=c(((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:s,...l}=e,u=function(e){const[n,r]=t.useState(js());return Ds((()=>{e||r((t=>null!=t?t:String(Fs++)))}),[e]),e||(n?`radix-${n}`:"")}(),c=s||u,d=Ys("RovingFocusGroupItem",r),h=d.currentTabStopId===c,f=$s(r),{onFocusableItemAdd:m,onFocusableItemRemove:g}=d;return o((()=>{if(i)return m(),()=>g()}),[i,m,g]),p(zs.ItemSlot,{scope:r,id:c,focusable:i,active:a},p(Os.span,bs({tabIndex:h?0:-1,"data-orientation":d.orientation},l,{ref:n,onMouseDown:xs(e.onMouseDown,(t=>{i?d.onItemFocus(c):t.preventDefault()})),onFocus:xs(e.onFocus,(()=>d.onItemFocus(c))),onKeyDown:xs(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 r=function(t,e){return"rtl"!==e?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t}(t.key,n);return"vertical"===e&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===e&&["ArrowUp","ArrowDown"].includes(r)?void 0:Qs[r]}(t,d.orientation,d.dir);if(void 0!==e){t.preventDefault();let o=f().filter((t=>t.focusable)).map((t=>t.ref.current));if("last"===e)o.reverse();else if("prev"===e||"next"===e){"prev"===e&&o.reverse();const i=o.indexOf(t.currentTarget);o=d.loop?(r=i+1,(n=o).map(((t,e)=>n[(r+e)%n.length]))):o.slice(i+1)}setTimeout((()=>Js(o)))}var n,r}))})))})),Qs={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Js(t){const e=document.activeElement;for(const n of t){if(n===e)return;if(n.focus(),document.activeElement!==e)return}}const tl=Ks,el=Xs;const nl=t=>{const{present:e,children:n}=t,r=function(t){const[e,n]=v(),r=a({}),i=a(t),s=a("none"),u=t?"mounted":"unmounted",[c,d]=function(t,e){return y(((t,n)=>{const r=e[t][n];return null!=r?r:t}),t)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o((()=>{const t=rl(r.current);s.current="mounted"===c?t:"none"}),[c]),Ds((()=>{const e=r.current,n=i.current;if(n!==t){const r=s.current,o=rl(e);if(t)d("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))d("UNMOUNT");else{d(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}}),[t,d]),Ds((()=>{if(e){const t=t=>{const n=rl(r.current).includes(t.animationName);t.target===e&&n&&w((()=>d("ANIMATION_END")))},n=t=>{t.target===e&&(s.current=rl(r.current))};return e.addEventListener("animationstart",n),e.addEventListener("animationcancel",t),e.addEventListener("animationend",t),()=>{e.removeEventListener("animationstart",n),e.removeEventListener("animationcancel",t),e.removeEventListener("animationend",t)}}d("ANIMATION_END")}),[e,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l((t=>{t&&(r.current=getComputedStyle(t)),n(t)}),[])}}(e),i="function"==typeof n?n({present:r.isPresent}):f.only(n),s=Es(r.ref,i.ref);return"function"==typeof n||r.isPresent?g(i,{ref:s}):null};function rl(t){return(null==t?void 0:t.animationName)||"none"}nl.displayName="Presence";const ol="Radio",[il,al]=Ss(ol),[sl,ll]=il(ol),ul=c(((t,e)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:s,value:l="on",onCheck:u,...c}=t,[d,h]=v(null),f=Es(e,(t=>h(t))),m=a(!1),g=!d||Boolean(d.closest("form"));return p(sl,{scope:n,checked:o,disabled:s},p(Os.button,bs({type:"button",role:"radio","aria-checked":o,"data-state":pl(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:f,onClick:xs(t.onClick,(t=>{o||null==u||u(),g&&(m.current=t.isPropagationStopped(),m.current||t.stopPropagation())}))})),g&&p(dl,{control:d,bubbles:!m.current,name:r,value:l,checked:o,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),cl=c(((t,e)=>{const{__scopeRadio:n,forceMount:r,...o}=t,i=ll("RadioIndicator",n);return p(nl,{present:r||i.checked},p(Os.span,bs({"data-state":pl(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:e})))})),dl=t=>{const{control:e,checked:n,bubbles:r=!0,...i}=t,s=a(null),l=function(t){const e=a({value:t,previous:t});return u((()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous)),[t])}(n),c=function(t){const[e,n]=v(void 0);return Ds((()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const r=e[0];let o,i;if("borderBoxSize"in r){const t=r.borderBoxSize,e=Array.isArray(t)?t[0]:t;o=e.inlineSize,i=e.blockSize}else o=t.offsetWidth,i=t.offsetHeight;n({width:o,height:i})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)}),[t]),e}(e);return o((()=>{const t=s.current,e=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(e,"checked").set;if(l!==n&&o){const e=new Event("click",{bubbles:r});o.call(t,n),t.dispatchEvent(e)}}),[l,n,r]),p("input",bs({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:s,style:{...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function pl(t){return t?"checked":"unchecked"}const hl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fl="RadioGroup",[ml,gl]=Ss(fl,[Gs,al]),vl=Gs(),yl=al(),[_l,bl]=ml(fl),xl=c(((t,e)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...h}=t,f=vl(n),m=Ns(u),[g,v]=Vs({prop:i,defaultProp:o,onChange:d});return p(_l,{scope:n,name:r,required:a,disabled:s,value:g,onValueChange:v},p(tl,bs({asChild:!0},f,{orientation:l,dir:m,loop:c}),p(Os.div,bs({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m},h,{ref:e}))))})),wl=c(((t,e)=>{const{__scopeRadioGroup:n,disabled:r,...i}=t,s=bl("RadioGroupItem",n),l=s.disabled||r,u=vl(n),c=yl(n),d=a(null),h=Es(e,d),f=s.value===i.value,m=a(!1);return o((()=>{const t=t=>{hl.includes(t.key)&&(m.current=!0)},e=()=>m.current=!1;return document.addEventListener("keydown",t),document.addEventListener("keyup",e),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e)}}),[]),p(el,bs({asChild:!0},u,{focusable:!l,active:f}),p(ul,bs({disabled:l,required:s.required,checked:f},c,i,{name:s.name,ref:h,onCheck:()=>s.onValueChange(i.value),onKeyDown:xs((t=>{"Enter"===t.key&&t.preventDefault()})),onFocus:xs(i.onFocus,(()=>{var t;m.current&&(null===(t=d.current)||void 0===t||t.click())}))})))})),El=c(((t,e)=>{const{__scopeRadioGroup:n,...r}=t,o=yl(n);return p(cl,bs({},o,r,{ref:e}))}));var Sl="radioGroup-module_legend__WklzX",kl="radioGroup-module_radio-root__RtJ2M",Pl="radioGroup-module_radio-root--error__9DrYG",Tl="radioGroup-module_radio-root-label--error__KdFST",Cl="radioGroup-module_radio-item__BKOlM",Rl="radioGroup-module_radio-indicator__-hEEu";T('\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-2);\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\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));\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: calc(var(--product-spacing-4) + 0.5rem);\n background-color: var(--product-greyscale-100);\n}\n\n/* Make the first and last radio have rounded corners pointing to each other */\n\n.radioGroup-module_radio-item__BKOlM:first-child {\n border-top-right-radius: var(--product-radius-half);\n border-bottom-right-radius: var(--product-radius-half);\n}\n\n.radioGroup-module_radio-item__BKOlM:not(:first-child) {\n border-top-left-radius: var(--product-radius-half);\n border-bottom-left-radius: var(--product-radius-half);\n}\n\n@media (min-width: 768px) {\n .radioGroup-module_radio-item__BKOlM {\n padding: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-root__RtJ2M {\n gap: var(--product-spacing-2);\n }\n\n\n .radioGroup-module_radio-item__BKOlM::after {\n right: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-indicator__-hEEu::after {\n right: calc(var(--product-spacing-6) + 0.5rem);\n }\n}\n');var Al={Root:function(t){var n=t.children,r=t.className,o=t.name,i=t.label,a=S(t,["children","className","name","label"]),s=_(),l=s.control,u=s.formState.errors,c=u&&u[o];return e.createElement(b,{name:o,control:l,render:function(t){var o=t.field,s=o.onChange,l=S(o,["onChange"]);return e.createElement("fieldset",null,e.createElement(A,{className:Sl,as:"legend",variant:"form-input-normal"},i),e.createElement(xl,E({className:P(r,kl,c&&Pl),onValueChange:s},a,l,{"aria-required":void 0}),n),c&&e.createElement("p",{className:Tl},null==c?void 0:c.message))}})},Item:function(t){var n=t.children,r=t.className,o=S(t,["children","className"]);return e.createElement(wl,E({className:P(r,Cl)},o),e.createElement(A,{variant:"form-input-normal"},n))},Indicator:function(t){var n=t.className,r=S(t,["className"]);return e.createElement(El,E({className:P(n,Rl)},r))}},Ol="range-module_container__SwhGo",Dl="range-module_range-container__iGnY1",jl="range-module_slider__pZtfP",Fl="range-module_notches__Zc4Og",Ml="range-module_notch__qXs7B",Vl="range-module_progress__fElkU",Ll="range-module_value-container__8Zt0r";T(".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;\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 accent-color: var(--product-light-blue-80);\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 top: 50%;\n transform: translateY(-50%);\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.range-module_notch__qXs7B {\n position: absolute;\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");var Nl=function(t){var n=_(),r=n.control,o=n.formState.errors,i=t.name,a=E(E({},t),{error:o&&o[i]});return e.createElement(b,{name:i,control:r,render:function(t){var n=t.field;return e.createElement(Il,E({},a,{field:E({},n)}))}})},Il=function(t){var n=t.id,r=t.min,o=void 0===r?0:r,i=t.max,a=void 0===i?1e3:i,s=t.step,l=void 0===s?100:s,u=t.name,c=t.label,d=t.helper,p=t.error,h=t.field,f=h.value,m=(f-o)/(a-o)*100,g=function(t,e,n){return(e-t)/n};return e.createElement(U,{id:n,label:c,error:null==p?void 0:p.message,helper:null==d?void 0:d.message},e.createElement("div",{className:Ol},e.createElement("div",{className:Dl},e.createElement("div",{className:Fl},Array.from({length:g(o,a,l)}).map((function(t,n){return e.createElement("div",{key:n,className:Ml,style:{left:"".concat(n/g(o,a,l)*100,"%")}})}))),e.createElement("div",{className:Vl,style:{width:"calc(".concat(m||0,"%)")}}),e.createElement("input",E({id:"".concat(u,"-range"),className:jl,type:"range",min:o,max:a,step:l},h))),e.createElement(A,{className:Ll,variant:"content-title-semi-bold"},"£",f)))},Bl="select-module_container__Lydyj",Ul="select-module_input__Hcrhq",zl="select-module_icon__SCm5W",$l="select-module_input--error__4pQ0M",Wl="select-module_input--disabled__zteOi",Zl="select-module_error-message__89d1g",Gl="select-module_helper-message__VwS-B";T("\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");var Hl=function(t){var n=_(),r=n.control,o=n.formState.errors,i=t.name,a=E(E({},t),{error:o&&o[i]});return e.createElement(b,{name:i,control:r,render:function(t){var n=t.field;return e.createElement(Yl,E({},a,{field:E({},n)}))}})},Yl=function(t){var n=t.error,r=t.helper,o=t.label,i=t.items,a=t.placeholder,s=t.disabled,l=t.field;return e.createElement("div",{className:Bl},e.createElement("label",{className:"sr-only"},o),e.createElement("svg",{className:zl,width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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"})),e.createElement("select",E({className:P(Ul,(null==n?void 0:n.message)&&$l,s&&Wl)},l),a&&e.createElement("option",{value:"placeholder",disabled:!0},a),i&&i.map((function(t){return e.createElement("option",{key:t.id,value:t.id},t.title)}))),(null==r?void 0:r.message)&&e.createElement(A,{className:Gl,as:"span",variant:"form-helper"},r.message),(null==n?void 0:n.message)&&e.createElement(A,{className:Zl,as:"p",variant:"form-helper"},n.message))};function Kl(){var t=v({width:600,height:void 0}),e=t[0],n=t[1];return o((function(){function t(){n({width:window.innerWidth||600,height:window.innerHeight})}return window.addEventListener("resize",t,{passive:!0}),t(),function(){return window.removeEventListener("resize",t)}}),[]),e}var ql={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"};T(".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 border: var(--product-border-width-1) solid transparent;\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: 63%;\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-bottom: 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 var(--product-greyscale-100);\n}\n\n.textField-module_input--focus__ngCQF {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\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: 53%;\n }\n\n .textField-module_label__Pb0Yj {\n left: var(--product-spacing-6);\n }\n}\n\n\n\n\n\n\n\n");var Xl,Ql=function(t){var n=_(),r=n.control,o=n.formState.errors,i=t.name,a=E(E({},t),{error:o&&o[i]});return e.createElement(b,{name:i,control:r,render:function(t){var n=t.field;return e.createElement(Jl,E({},a,{field:E({},n)}))}})},Jl=function(t){var n=t.id,r=t.label,o=t.helper,i=t.error,a=t.type,s=t.prefix,l=t.suffix,u=t.disabled,c=t.className,d=t.rightContent,p=t.leftContent,h=t.field,f=h.value,m=h.onBlur,g=S(h,["value","onBlur"]),y=Kl().width,_=v(!1),b=_[0],x=_[1],w=""!==f||b,k=y>768,T=o||i,C={focused:{fontSize:k?"1rem":"0.875rem",top:"1rem"},notFocused:{transform:"translateY(-50%)",fontSize:k?"1.25rem":"1.125rem",top:"50%"}};return e.createElement("div",null,e.createElement("div",{className:P(ql.container,i&&ql["container--error"])},e.createElement(ss.label,{className:ql.label,initial:"notFocused",variants:C,htmlFor:"input-".concat(n),animate:b||""!==f?"focused":"notFocused"},r," ",l&&e.createElement("span",null,l)),e.createElement("input",E({id:"input-".concat(n),className:P(c,ql["input--".concat(c)],ql.input,s&&ql["input--prefix"]),type:a,"aria-describedby":"error-".concat(n),disabled:u,onFocus:function(){return x(!0)},onBlur:function(){m(),x(!1)},value:f},g)),s&&w&&e.createElement("span",{className:ql.prefix},s),e.createElement("div",null,d&&e.createElement("div",{className:ql.rightContent},d),p&&e.createElement("div",{className:ql.leftContent},p))),T&&e.createElement("div",{className:ql.inputDescription},o&&e.createElement("span",{id:"feedback-".concat(n),className:ql.helper},o.message),i&&e.createElement("span",{id:"error-".concat(n),className:ql.error},i.message)))},tu={exports:{}},eu={},nu={exports:{}},ru={};var ou,iu,au,su={exports:{}};
1
+ import*as t from"react";import e,{useState as n,useEffect as r,createContext as o,useLayoutEffect as i,useContext as a,useRef as s,useInsertionEffect as l,useCallback as u,useMemo as c,forwardRef as d,Fragment as p,createElement as f,useId as h,Children as m,isValidElement as g,cloneElement as v,useReducer as y}from"react";import{useFormContext as _,Controller as b,FormProvider as x}from"react-hook-form";import*as w from"react-dom";import E,{createPortal as S,flushSync as T}from"react-dom";var P=function(){return P=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},P.apply(this,arguments)};function C(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function k(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=k(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function R(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=k(t))&&(r&&(r+=" "),r+=e);return r}function O(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}"function"==typeof SuppressedError&&SuppressedError;var A={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",text:"button-module_text__0yzwq","only-icon":"button-module_only-icon__8lEn4"};O(".button-module_button__dZH55 {\n all: unset;\n display: flex;\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_button__dZH55 > * {\n display: flex;\n align-items: center;\n gap: var(--product-spacing-1);\n}\n\n.button-module_action__RTWZU {\n all: unset;\n display: flex;\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_action__RTWZU > * {\n display: flex;\n align-items: center;\n gap: var(--product-spacing-1);\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/*! Text Button */\n.button-module_text__0yzwq {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-1);\n border-radius: var(--product-radius-2);\n cursor: pointer;\n}\n\n/* Primary */\n\n.button-module_text__0yzwq.button-module_primary__CZzyo {\n background: none;\n border: none;\n color: var(--product-greyscale-100);\n}\n\n.button-module_text__0yzwq.button-module_primary__CZzyo::after {\n content: '';\n position: absolute;\n background: var(--product-greyscale-100);\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.button-module_text__0yzwq.button-module_primary__CZzyo:hover::after, .button-module_text__0yzwq.button-module_primary__CZzyo.button-module_hover__Zz9hl::after {\n background: var(--product-love-pink-100);\n content: '';\n position: absolute;\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.button-module_text__0yzwq.button-module_primary__CZzyo:active::after, .button-module_text__0yzwq.button-module_primary__CZzyo.button-module_active__rYKZm::after {\n background: var(--product-love-pink-120);\n content: '';\n position: absolute;\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.button-module_text__0yzwq.button-module_primary__CZzyo:focus, .button-module_text__0yzwq.button-module_primary__CZzyo.button-module_focus__RNsoR {\n outline: 2px solid var(--product-focus);\n}\n\n/* Secondary */\n\n.button-module_text__0yzwq.button-module_secondary__tM5K3 {\n background: none;\n border: none;\n color: var(--product-light-blue-100)\n\n}\n\n.button-module_text__0yzwq.button-module_secondary__tM5K3:hover::after, .button-module_text__0yzwq.button-module_secondary__tM5K3.button-module_hover__Zz9hl::after {\n background: var(--product-light-blue-100);\n content: '';\n position: absolute;\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.button-module_text__0yzwq.button-module_secondary__tM5K3:active::after, .button-module_text__0yzwq.button-module_secondary__tM5K3.button-module_active__rYKZm::after {\n background: var(--product-light-blue-120);\n content: '';\n position: absolute;\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.button-module_text__0yzwq.button-module_secondary__tM5K3:focus, .button-module_text__0yzwq.button-module_secondary__tM5K3.button-module_focus__RNsoR {\n outline: 2px solid var(--product-focus);\n}\n\n\n\n\n\n\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.button-module_text__0yzwq:disabled {\n position: relative;\n color: var(--product-disabled-text);\n border: none;\n cursor: not-allowed;\n}\n\n.button-module_text__0yzwq:disabled:hover {\n border: none;\n}\n\n.button-module_text__0yzwq:disabled:hover::after {\n content: '';\n position: absolute;\n background: var(--product-disabled-text);\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.button-module_text__0yzwq:disabled:active {\n color: var(--product-disabled-text);\n}\n\n.button-module_text__0yzwq:disabled::after {\n content: '';\n position: absolute;\n background: var(--product-disabled-text);\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n\n.button-module_only-icon__8lEn4 {\n padding: var(--product-spacing-3);\n border-radius: var(--product-radius-full);\n}\n\n.button-module_action__RTWZU.button-module_only-icon__8lEn4 {\n padding: var(--product-spacing-2_5);\n border-radius: var(--product-radius-2);\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 .button-module_only-icon__8lEn4 {\n padding: 16px;\n }\n\n .button-module_action__RTWZU.button-module_only-icon__8lEn4 {\n padding: 10px;\n }\n}\n\n\n");var D={"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"};O(".typography-module_form-label__7pjg0{\n font-weight: var(--product-font-weight-semi-bold);\n font-size: var(--product-font-form-label-mobile-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-mobile-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-mobile-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-mobile-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-mobile-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-mobile-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-mobile-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-mobile-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-mobile-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-mobile-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-mobile-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-mobile-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-mobile-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-mobile-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 L=function(t){var n=t.as,r=t.variant,o=void 0===r?"content-regular":r,i=t.children,a=t.className,s=C(t,["as","variant","children","className"]),l=n||"p";return e.createElement(l,P({className:R(D[o],a)},s),i)};function M(t){var n=t.as,r=t.children,o=t.variant,i=void 0===o?"primary":o,a=t.className,s=void 0===a?"":a,l=t.visualType,u=void 0===l?"button":l,c=t.onlyIcon,d=void 0!==c&&c,p=C(t,["as","children","variant","className","visualType","onlyIcon"]),f=n||"button";return e.createElement(f,P({className:R(A[s],A[i],A[u],d&&A["only-icon"])},p),d&&r,!d&&e.createElement(L,{variant:"form-button"},r))}var F,V={exports:{}},j={},N={exports:{}},I={};
2
+ /**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var z,B,U,W={exports:{}};
2
11
  /**
3
12
  * @license React
4
13
  * react.development.js
@@ -7,7 +16,7 @@ import*as t from"react";import e,{createContext as n,useLayoutEffect as r,useEff
7
16
  *
8
17
  * This source code is licensed under the MIT license found in the
9
18
  * LICENSE file in the root directory of this source tree.
10
- */"production"===process.env.NODE_ENV?nu.exports=function(){if(Xl)return ru;Xl=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,f={};function m(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}function g(){}function v(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},m.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},g.prototype=m.prototype;var y=v.prototype=new g;y.constructor=v,h(y,m.prototype),y.isPureReactComponent=!0;var _=Array.isArray,b=Object.prototype.hasOwnProperty,x={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function E(e,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)b.call(n,o)&&!w.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:t,type:e,key:a,ref:s,props:i,_owner:x.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var k=/\/+/g;function P(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function T(n,r,o,i,a){var s=typeof n;("undefined"===s||"boolean"===s)&&(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case t:case e:l=!0}}if(l)return a=a(l=n),n=""===i?"."+P(l,0):i,_(a)?(o="",null!=n&&(o=n.replace(k,"$&/")+"/"),T(a,r,o,"",(function(t){return t}))):null!=a&&(S(a)&&(a=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",_(n))for(var u=0;u<n.length;u++){var c=i+P(s=n[u],u);l+=T(s,r,o,c,a)}else if(c=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=d&&t[d]||t["@@iterator"])?t:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=T(s=s.value,r,o,c=i+P(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function C(t,e,n){if(null==t)return t;var r=[],o=0;return T(t,r,"","",(function(t){return e.call(n,t,o++)})),r}function R(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){(0===t._status||-1===t._status)&&(t._status=1,t._result=e)}),(function(e){(0===t._status||-1===t._status)&&(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var A={current:null},O={transition:null},D={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:O,ReactCurrentOwner:x};return ru.Children={map:C,forEach:function(t,e,n){C(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return C(t,(function(){e++})),e},toArray:function(t){return C(t,(function(t){return t}))||[]},only:function(t){if(!S(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},ru.Component=m,ru.Fragment=n,ru.Profiler=o,ru.PureComponent=v,ru.StrictMode=r,ru.Suspense=l,ru.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,ru.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=x.current),void 0!==n.key&&(i=""+n.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in n)b.call(n,u)&&!w.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:t,type:e.type,key:i,ref:a,props:o,_owner:s}},ru.createContext=function(t){return(t={$$typeof:a,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:t},t.Consumer=t},ru.createElement=E,ru.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},ru.createRef=function(){return{current:null}},ru.forwardRef=function(t){return{$$typeof:s,render:t}},ru.isValidElement=S,ru.lazy=function(t){return{$$typeof:c,_payload:{_status:-1,_result:t},_init:R}},ru.memo=function(t,e){return{$$typeof:u,type:t,compare:void 0===e?null:e}},ru.startTransition=function(t){var e=O.transition;O.transition={};try{t()}finally{O.transition=e}},ru.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},ru.useCallback=function(t,e){return A.current.useCallback(t,e)},ru.useContext=function(t){return A.current.useContext(t)},ru.useDebugValue=function(){},ru.useDeferredValue=function(t){return A.current.useDeferredValue(t)},ru.useEffect=function(t,e){return A.current.useEffect(t,e)},ru.useId=function(){return A.current.useId()},ru.useImperativeHandle=function(t,e,n){return A.current.useImperativeHandle(t,e,n)},ru.useInsertionEffect=function(t,e){return A.current.useInsertionEffect(t,e)},ru.useLayoutEffect=function(t,e){return A.current.useLayoutEffect(t,e)},ru.useMemo=function(t,e){return A.current.useMemo(t,e)},ru.useReducer=function(t,e,n){return A.current.useReducer(t,e,n)},ru.useRef=function(t){return A.current.useRef(t)},ru.useState=function(t){return A.current.useState(t)},ru.useSyncExternalStore=function(t,e,n){return A.current.useSyncExternalStore(t,e,n)},ru.useTransition=function(){return A.current.useTransition()},ru.version="18.2.0",ru}():nu.exports=(ou||(ou=1,iu=su,au=su.exports,"production"!==process.env.NODE_ENV&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),h=Symbol.iterator,f="@@iterator";function m(t){if(null===t||"object"!=typeof t)return null;var e=h&&t[h]||t[f];return"function"==typeof e?e:null}var g={current:null},v={transition:null},y={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},_={current:null},b={},x=null;function w(t){x=t}b.setExtraStackFrame=function(t){x=t},b.getCurrentStack=null,b.getStackAddendum=function(){var t="";x&&(t+=x);var e=b.getCurrentStack;return e&&(t+=e()||""),t};var E=!1,S=!1,k=!1,P=!1,T=!1,C={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:v,ReactCurrentOwner:_};function R(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];O("warn",t,n)}function A(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];O("error",t,n)}function O(t,e,n){var r=C.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(e+="%s",n=n.concat([r]));var o=n.map((function(t){return String(t)}));o.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,o)}C.ReactDebugCurrentFrame=b,C.ReactCurrentActQueue=y;var D={};function j(t,e){var n=t.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+e;D[o]||(A("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",e,r),D[o]=!0)}var F={isMounted:function(t){return!1},enqueueForceUpdate:function(t,e,n){j(t,"forceUpdate")},enqueueReplaceState:function(t,e,n,r){j(t,"replaceState")},enqueueSetState:function(t,e,n,r){j(t,"setState")}},M=Object.assign,V={};function L(t,e,n){this.props=t,this.context=e,this.refs=V,this.updater=n||F}Object.freeze(V),L.prototype.isReactComponent={},L.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},L.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};var N={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},I=function(t,e){Object.defineProperty(L.prototype,t,{get:function(){R("%s(...) is deprecated in plain JavaScript React classes. %s",e[0],e[1])}})};for(var B in N)N.hasOwnProperty(B)&&I(B,N[B]);function U(){}function z(t,e,n){this.props=t,this.context=e,this.refs=V,this.updater=n||F}U.prototype=L.prototype;var $=z.prototype=new U;$.constructor=z,M($,L.prototype),$.isPureReactComponent=!0;var W=Array.isArray;function Z(t){return W(t)}function G(t){return""+t}function H(t){if(function(t){try{return G(t),!1}catch{return!0}}(t))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(t){return"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}(t)),G(t)}function Y(t){return t.displayName||"Context"}function K(t){if(null==t)return null;if("number"==typeof t.tag&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case n:return"Fragment";case e:return"Portal";case o:return"Profiler";case r:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case a:return Y(t)+".Consumer";case i:return Y(t._context)+".Provider";case s:return function(t,e,n){var r=t.displayName;if(r)return r;var o=e.displayName||e.name||"";return""!==o?n+"("+o+")":n}(t,t.render,"ForwardRef");case c:var p=t.displayName||null;return null!==p?p:K(t.type)||"Memo";case d:var h=t,f=h._payload,m=h._init;try{return K(m(f))}catch{return null}}return null}var q,X,Q,J=Object.prototype.hasOwnProperty,tt={key:!0,ref:!0,__self:!0,__source:!0};function et(t){if(J.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}function nt(t){if(J.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}Q={};var rt=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ot(t,e,n){var r,o={},i=null,a=null,s=null,l=null;if(null!=e)for(r in et(e)&&(a=e.ref,function(t){if("string"==typeof t.ref&&_.current&&t.__self&&_.current.stateNode!==t.__self){var e=K(_.current.type);Q[e]||(A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',e,t.ref),Q[e]=!0)}}(e)),nt(e)&&(H(e.key),i=""+e.key),s=void 0===e.__self?null:e.__self,l=void 0===e.__source?null:e.__source,e)J.call(e,r)&&!tt.hasOwnProperty(r)&&(o[r]=e[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),o.children=c}if(t&&t.defaultProps){var p=t.defaultProps;for(r in p)void 0===o[r]&&(o[r]=p[r])}if(i||a){var h="function"==typeof t?t.displayName||t.name||"Unknown":t;i&&function(t,e){var n=function(){q||(q=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"key",{get:n,configurable:!0})}(o,h),a&&function(t,e){var n=function(){X||(X=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(o,h)}return rt(t,i,a,s,l,_.current,o)}function it(t,e,n){if(null==t)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r,o,i=M({},t.props),a=t.key,s=t.ref,l=t._self,u=t._source,c=t._owner;if(null!=e)for(r in et(e)&&(s=e.ref,c=_.current),nt(e)&&(H(e.key),a=""+e.key),t.type&&t.type.defaultProps&&(o=t.type.defaultProps),e)J.call(e,r)&&!tt.hasOwnProperty(r)&&(void 0===e[r]&&void 0!==o?i[r]=o[r]:i[r]=e[r]);var d=arguments.length-2;if(1===d)i.children=n;else if(d>1){for(var p=Array(d),h=0;h<d;h++)p[h]=arguments[h+2];i.children=p}return rt(t.type,a,s,l,u,c,i)}function at(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var st=".",lt=":",ut=!1,ct=/\/+/g;function dt(t){return t.replace(ct,"$&/")}function pt(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(H(t.key),function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key)):e.toString(36)}function ht(n,r,o,i,a){var s=typeof n;("undefined"===s||"boolean"===s)&&(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case t:case e:l=!0}}if(l){var u=n,c=a(u),d=""===i?st+pt(u,0):i;if(Z(c)){var p="";null!=d&&(p=dt(d)+"/"),ht(c,r,p,"",(function(t){return t}))}else null!=c&&(at(c)&&(c.key&&(!u||u.key!==c.key)&&H(c.key),c=function(t,e){return rt(t.type,e,t.ref,t._self,t._source,t._owner,t.props)}(c,o+(!c.key||u&&u.key===c.key?"":dt(""+c.key)+"/")+d)),r.push(c));return 1}var h,f=0,g=""===i?st:i+lt;if(Z(n))for(var v=0;v<n.length;v++)f+=ht(h=n[v],r,o,g+pt(h,v),a);else{var y=m(n);if("function"==typeof y){var _=n;y===_.entries&&(ut||R("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ut=!0);for(var b,x=y.call(_),w=0;!(b=x.next()).done;)f+=ht(h=b.value,r,o,g+pt(h,w++),a)}else if("object"===s){var E=String(n);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===E?"object with keys {"+Object.keys(n).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}}return f}function ft(t,e,n){if(null==t)return t;var r=[],o=0;return ht(t,r,"","",(function(t){return e.call(n,t,o++)})),r}var mt,gt=-1,vt=0,yt=1,_t=2;function bt(t){if(t._status===gt){var e=(0,t._result)();if(e.then((function(e){if(t._status===vt||t._status===gt){var n=t;n._status=yt,n._result=e}}),(function(e){if(t._status===vt||t._status===gt){var n=t;n._status=_t,n._result=e}})),t._status===gt){var n=t;n._status=vt,n._result=e}}if(t._status===yt){var r=t._result;return void 0===r&&A("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||A("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw t._result}function xt(t){return!!("string"==typeof t||"function"==typeof t||t===n||t===o||T||t===r||t===l||t===u||P||t===p||E||S||k||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===c||t.$$typeof===i||t.$$typeof===a||t.$$typeof===s||t.$$typeof===mt||void 0!==t.getModuleId))}function wt(){var t=g.current;return null===t&&A("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),t}mt=Symbol.for("react.module.reference");var Et,St,kt,Pt,Tt,Ct,Rt,At=0;function Ot(){}Ot.__reactDisabledLog=!0;var Dt,jt=C.ReactCurrentDispatcher;function Ft(t,e,n){if(void 0===Dt)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);Dt=r&&r[1]||""}return"\n"+Dt+t}var Mt,Vt=!1,Lt="function"==typeof WeakMap?WeakMap:Map;function Nt(t,e){if(!t||Vt)return"";var n,r=Mt.get(t);if(void 0!==r)return r;Vt=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=jt.current,jt.current=null,function(){if(0===At){Et=console.log,St=console.info,kt=console.warn,Pt=console.error,Tt=console.group,Ct=console.groupCollapsed,Rt=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Ot,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}At++}();try{if(e){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(t){n=t}Reflect.construct(t,[],a)}else{try{a.call()}catch(t){n=t}t.call(a.prototype)}}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return t.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",t.displayName)),"function"==typeof t&&Mt.set(t,d),d}}while(u>=1&&c>=0);break}}}finally{Vt=!1,jt.current=o,function(){if(0==--At){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},t,{value:Et}),info:M({},t,{value:St}),warn:M({},t,{value:kt}),error:M({},t,{value:Pt}),group:M({},t,{value:Tt}),groupCollapsed:M({},t,{value:Ct}),groupEnd:M({},t,{value:Rt})})}At<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=t?t.displayName||t.name:"",h=p?Ft(p):"";return"function"==typeof t&&Mt.set(t,h),h}function It(t,e,n){if(null==t)return"";if("function"==typeof t)return Nt(t,function(t){var e=t.prototype;return!(!e||!e.isReactComponent)}(t));if("string"==typeof t)return Ft(t);switch(t){case l:return Ft("Suspense");case u:return Ft("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case s:return function(t,e,n){return Nt(t,!1)}(t.render);case c:return It(t.type,e,n);case d:var r=t,o=r._payload,i=r._init;try{return It(i(o),e,n)}catch{}}return""}Mt=new Lt;var Bt,Ut={},zt=C.ReactDebugCurrentFrame;function $t(t){if(t){var e=t._owner,n=It(t.type,t._source,e?e.type:null);zt.setExtraStackFrame(n)}else zt.setExtraStackFrame(null)}function Wt(t){if(t){var e=t._owner;w(It(t.type,t._source,e?e.type:null))}else w(null)}function Zt(){if(_.current){var t=K(_.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}Bt=!1;var Gt={};function Ht(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=Zt();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!Gt[n]){Gt[n]=!0;var r="";t&&t._owner&&t._owner!==_.current&&(r=" It was passed a child from "+K(t._owner.type)+"."),Wt(t),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Wt(null)}}}function Yt(t,e){if("object"==typeof t)if(Z(t))for(var n=0;n<t.length;n++){var r=t[n];at(r)&&Ht(r,e)}else if(at(t))t._store&&(t._store.validated=!0);else if(t){var o=m(t);if("function"==typeof o&&o!==t.entries)for(var i,a=o.call(t);!(i=a.next()).done;)at(i.value)&&Ht(i.value,e)}}function Kt(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==s&&n.$$typeof!==c)return;e=n.propTypes}if(e){var r=K(n);!function(t,e,n,r,o){var i=Function.call.bind(J);for(var a in t)if(i(t,a)){var s=void 0;try{if("function"!=typeof t[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=t[a](e,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){s=t}s&&!(s instanceof Error)&&($t(o),A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),$t(null)),s instanceof Error&&!(s.message in Ut)&&(Ut[s.message]=!0,$t(o),A("Failed %s type: %s",n,s.message),$t(null))}}(e,t.props,"prop",r,t)}else void 0===n.PropTypes||Bt||(Bt=!0,A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",K(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qt(e,r,o){var i=xt(e);if(!i){var a="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=function(t){return null!=t?function(t){return void 0!==t?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}(t.__source):""}(r);a+=l||Zt(),null===e?s="null":Z(e)?s="array":void 0!==e&&e.$$typeof===t?(s="<"+(K(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,A("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var u=ot.apply(this,arguments);if(null==u)return u;if(i)for(var c=2;c<arguments.length;c++)Yt(arguments[c],e);return e===n?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){Wt(t),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Wt(null);break}}null!==t.ref&&(Wt(t),A("Invalid attribute `ref` supplied to `React.Fragment`."),Wt(null))}(u):Kt(u),u}var Xt=!1,Qt=!1,Jt=null,te=0,ee=!1;function ne(t){t!==te-1&&A("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),te=t}function re(t,e,n){var r=y.current;if(null!==r)try{ie(r),function(t){if(null===Jt)try{var e=("require"+Math.random()).slice(0,7);Jt=(iu&&iu[e]).call(iu,"timers").setImmediate}catch{Jt=function(t){!1===Qt&&(Qt=!0,typeof MessageChannel>"u"&&A("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var e=new MessageChannel;e.port1.onmessage=t,e.port2.postMessage(void 0)}}Jt(t)}((function(){0===r.length?(y.current=null,e(t)):re(t,e,n)}))}catch(t){n(t)}else e(t)}var oe=!1;function ie(t){if(!oe){oe=!0;var e=0;try{for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}t.length=0}catch(n){throw t=t.slice(e+1),n}finally{oe=!1}}}var ae=qt,se=function(t,e,n){for(var r=it.apply(this,arguments),o=2;o<arguments.length;o++)Yt(arguments[o],r.type);return Kt(r),r},le=function(t){var e=qt.bind(null,t);return e.type=t,Xt||(Xt=!0,R("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(e,"type",{enumerable:!1,get:function(){return R("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),e},ue={map:ft,forEach:function(t,e,n){ft(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return ft(t,(function(){e++})),e},toArray:function(t){return ft(t,(function(t){return t}))||[]},only:function(t){if(!at(t))throw new Error("React.Children.only expected to receive a single React element child.");return t}};au.Children=ue,au.Component=L,au.Fragment=n,au.Profiler=o,au.PureComponent=z,au.StrictMode=r,au.Suspense=l,au.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C,au.cloneElement=se,au.createContext=function(t){var e={$$typeof:a,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};e.Provider={$$typeof:i,_context:e};var n=!1,r=!1,o=!1,s={$$typeof:a,_context:e};return Object.defineProperties(s,{Provider:{get:function(){return r||(r=!0,A("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),e.Provider},set:function(t){e.Provider=t}},_currentValue:{get:function(){return e._currentValue},set:function(t){e._currentValue=t}},_currentValue2:{get:function(){return e._currentValue2},set:function(t){e._currentValue2=t}},_threadCount:{get:function(){return e._threadCount},set:function(t){e._threadCount=t}},Consumer:{get:function(){return n||(n=!0,A("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),e.Consumer}},displayName:{get:function(){return e.displayName},set:function(t){o||(R("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",t),o=!0)}}}),e.Consumer=s,e._currentRenderer=null,e._currentRenderer2=null,e},au.createElement=ae,au.createFactory=le,au.createRef=function(){var t={current:null};return Object.seal(t),t},au.forwardRef=function(t){null!=t&&t.$$typeof===c?A("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof t?A("forwardRef requires a render function but was given %s.",null===t?"null":typeof t):0!==t.length&&2!==t.length&&A("forwardRef render functions accept exactly two parameters: props and ref. %s",1===t.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=t&&(null!=t.defaultProps||null!=t.propTypes)&&A("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var e,n={$$typeof:s,render:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(n){e=n,!t.name&&!t.displayName&&(t.displayName=n)}}),n},au.isValidElement=at,au.lazy=function(t){var e,n,r={$$typeof:d,_payload:{_status:gt,_result:t},_init:bt};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return e},set:function(t){A("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),e=t,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(t){A("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=t,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},au.memo=function(t,e){xt(t)||A("memo: The first argument must be a component. Instead received: %s",null===t?"null":typeof t);var n,r={$$typeof:c,type:t,compare:void 0===e?null:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(e){n=e,!t.name&&!t.displayName&&(t.displayName=e)}}),r},au.startTransition=function(t,e){var n=v.transition;v.transition={};var r=v.transition;v.transition._updatedFibers=new Set;try{t()}finally{v.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&R("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},au.unstable_act=function(t){var e=te;te++,null===y.current&&(y.current=[]);var n,r=y.isBatchingLegacy;try{if(y.isBatchingLegacy=!0,n=t(),!r&&y.didScheduleLegacyUpdate){var o=y.current;null!==o&&(y.didScheduleLegacyUpdate=!1,ie(o))}}catch(t){throw ne(e),t}finally{y.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var i=n,a=!1,s={then:function(t,n){a=!0,i.then((function(r){ne(e),0===te?re(r,t,n):t(r)}),(function(t){ne(e),n(t)}))}};return!ee&&typeof Promise<"u"&&Promise.resolve().then((function(){})).then((function(){a||(ee=!0,A("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),s}var l=n;if(ne(e),0===te){var u=y.current;return null!==u&&(ie(u),y.current=null),{then:function(t,e){null===y.current?(y.current=[],re(l,t,e)):t(l)}}}return{then:function(t,e){t(l)}}},au.useCallback=function(t,e){return wt().useCallback(t,e)},au.useContext=function(t){var e=wt();if(void 0!==t._context){var n=t._context;n.Consumer===t?A("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===t&&A("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return e.useContext(t)},au.useDebugValue=function(t,e){return wt().useDebugValue(t,e)},au.useDeferredValue=function(t){return wt().useDeferredValue(t)},au.useEffect=function(t,e){return wt().useEffect(t,e)},au.useId=function(){return wt().useId()},au.useImperativeHandle=function(t,e,n){return wt().useImperativeHandle(t,e,n)},au.useInsertionEffect=function(t,e){return wt().useInsertionEffect(t,e)},au.useLayoutEffect=function(t,e){return wt().useLayoutEffect(t,e)},au.useMemo=function(t,e){return wt().useMemo(t,e)},au.useReducer=function(t,e,n){return wt().useReducer(t,e,n)},au.useRef=function(t){return wt().useRef(t)},au.useState=function(t){return wt().useState(t)},au.useSyncExternalStore=function(t,e,n){return wt().useSyncExternalStore(t,e,n)},au.useTransition=function(){return wt().useTransition()},au.version="18.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),su.exports);var lu,uu=nu.exports;
19
+ */"production"===process.env.NODE_ENV?N.exports=function(){if(F)return I;F=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,h={};function m(t,e,n){this.props=t,this.context=e,this.refs=h,this.updater=n||p}function g(){}function v(t,e,n){this.props=t,this.context=e,this.refs=h,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},m.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},g.prototype=m.prototype;var y=v.prototype=new g;y.constructor=v,f(y,m.prototype),y.isPureReactComponent=!0;var _=Array.isArray,b=Object.prototype.hasOwnProperty,x={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function E(e,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)b.call(n,o)&&!w.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:t,type:e,key:a,ref:s,props:i,_owner:x.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var T=/\/+/g;function P(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function C(n,r,o,i,a){var s=typeof n;("undefined"===s||"boolean"===s)&&(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case t:case e:l=!0}}if(l)return a=a(l=n),n=""===i?"."+P(l,0):i,_(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),C(a,r,o,"",(function(t){return t}))):null!=a&&(S(a)&&(a=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",_(n))for(var u=0;u<n.length;u++){var c=i+P(s=n[u],u);l+=C(s,r,o,c,a)}else if(c=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=d&&t[d]||t["@@iterator"])?t:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=C(s=s.value,r,o,c=i+P(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function k(t,e,n){if(null==t)return t;var r=[],o=0;return C(t,r,"","",(function(t){return e.call(n,t,o++)})),r}function R(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){(0===t._status||-1===t._status)&&(t._status=1,t._result=e)}),(function(e){(0===t._status||-1===t._status)&&(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var O={current:null},A={transition:null},D={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:A,ReactCurrentOwner:x};return I.Children={map:k,forEach:function(t,e,n){k(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return k(t,(function(){e++})),e},toArray:function(t){return k(t,(function(t){return t}))||[]},only:function(t){if(!S(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},I.Component=m,I.Fragment=n,I.Profiler=o,I.PureComponent=v,I.StrictMode=r,I.Suspense=l,I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,I.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=f({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=x.current),void 0!==n.key&&(i=""+n.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in n)b.call(n,u)&&!w.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:t,type:e.type,key:i,ref:a,props:o,_owner:s}},I.createContext=function(t){return(t={$$typeof:a,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:t},t.Consumer=t},I.createElement=E,I.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},I.createRef=function(){return{current:null}},I.forwardRef=function(t){return{$$typeof:s,render:t}},I.isValidElement=S,I.lazy=function(t){return{$$typeof:c,_payload:{_status:-1,_result:t},_init:R}},I.memo=function(t,e){return{$$typeof:u,type:t,compare:void 0===e?null:e}},I.startTransition=function(t){var e=A.transition;A.transition={};try{t()}finally{A.transition=e}},I.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},I.useCallback=function(t,e){return O.current.useCallback(t,e)},I.useContext=function(t){return O.current.useContext(t)},I.useDebugValue=function(){},I.useDeferredValue=function(t){return O.current.useDeferredValue(t)},I.useEffect=function(t,e){return O.current.useEffect(t,e)},I.useId=function(){return O.current.useId()},I.useImperativeHandle=function(t,e,n){return O.current.useImperativeHandle(t,e,n)},I.useInsertionEffect=function(t,e){return O.current.useInsertionEffect(t,e)},I.useLayoutEffect=function(t,e){return O.current.useLayoutEffect(t,e)},I.useMemo=function(t,e){return O.current.useMemo(t,e)},I.useReducer=function(t,e,n){return O.current.useReducer(t,e,n)},I.useRef=function(t){return O.current.useRef(t)},I.useState=function(t){return O.current.useState(t)},I.useSyncExternalStore=function(t,e,n){return O.current.useSyncExternalStore(t,e,n)},I.useTransition=function(){return O.current.useTransition()},I.version="18.2.0",I}():N.exports=(z||(z=1,B=W,U=W.exports,"production"!==process.env.NODE_ENV&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),f=Symbol.iterator,h="@@iterator";function m(t){if(null===t||"object"!=typeof t)return null;var e=f&&t[f]||t[h];return"function"==typeof e?e:null}var g={current:null},v={transition:null},y={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},_={current:null},b={},x=null;function w(t){x=t}b.setExtraStackFrame=function(t){x=t},b.getCurrentStack=null,b.getStackAddendum=function(){var t="";x&&(t+=x);var e=b.getCurrentStack;return e&&(t+=e()||""),t};var E=!1,S=!1,T=!1,P=!1,C=!1,k={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:v,ReactCurrentOwner:_};function R(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];A("warn",t,n)}function O(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];A("error",t,n)}function A(t,e,n){var r=k.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(e+="%s",n=n.concat([r]));var o=n.map((function(t){return String(t)}));o.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,o)}k.ReactDebugCurrentFrame=b,k.ReactCurrentActQueue=y;var D={};function L(t,e){var n=t.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+e;D[o]||(O("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",e,r),D[o]=!0)}var M={isMounted:function(t){return!1},enqueueForceUpdate:function(t,e,n){L(t,"forceUpdate")},enqueueReplaceState:function(t,e,n,r){L(t,"replaceState")},enqueueSetState:function(t,e,n,r){L(t,"setState")}},F=Object.assign,V={};function j(t,e,n){this.props=t,this.context=e,this.refs=V,this.updater=n||M}Object.freeze(V),j.prototype.isReactComponent={},j.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},j.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};var N={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},I=function(t,e){Object.defineProperty(j.prototype,t,{get:function(){R("%s(...) is deprecated in plain JavaScript React classes. %s",e[0],e[1])}})};for(var z in N)N.hasOwnProperty(z)&&I(z,N[z]);function W(){}function $(t,e,n){this.props=t,this.context=e,this.refs=V,this.updater=n||M}W.prototype=j.prototype;var H=$.prototype=new W;H.constructor=$,F(H,j.prototype),H.isPureReactComponent=!0;var Z=Array.isArray;function K(t){return Z(t)}function q(t){return""+t}function G(t){if(function(t){try{return q(t),!1}catch{return!0}}(t))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(t){return"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}(t)),q(t)}function Y(t){return t.displayName||"Context"}function X(t){if(null==t)return null;if("number"==typeof t.tag&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case n:return"Fragment";case e:return"Portal";case o:return"Profiler";case r:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case a:return Y(t)+".Consumer";case i:return Y(t._context)+".Provider";case s:return function(t,e,n){var r=t.displayName;if(r)return r;var o=e.displayName||e.name||"";return""!==o?n+"("+o+")":n}(t,t.render,"ForwardRef");case c:var p=t.displayName||null;return null!==p?p:X(t.type)||"Memo";case d:var f=t,h=f._payload,m=f._init;try{return X(m(h))}catch{return null}}return null}var Q,J,tt,et=Object.prototype.hasOwnProperty,nt={key:!0,ref:!0,__self:!0,__source:!0};function rt(t){if(et.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}function ot(t){if(et.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}tt={};var it=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function at(t,e,n){var r,o={},i=null,a=null,s=null,l=null;if(null!=e)for(r in rt(e)&&(a=e.ref,function(t){if("string"==typeof t.ref&&_.current&&t.__self&&_.current.stateNode!==t.__self){var e=X(_.current.type);tt[e]||(O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',e,t.ref),tt[e]=!0)}}(e)),ot(e)&&(G(e.key),i=""+e.key),s=void 0===e.__self?null:e.__self,l=void 0===e.__source?null:e.__source,e)et.call(e,r)&&!nt.hasOwnProperty(r)&&(o[r]=e[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),o.children=c}if(t&&t.defaultProps){var p=t.defaultProps;for(r in p)void 0===o[r]&&(o[r]=p[r])}if(i||a){var f="function"==typeof t?t.displayName||t.name||"Unknown":t;i&&function(t,e){var n=function(){Q||(Q=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"key",{get:n,configurable:!0})}(o,f),a&&function(t,e){var n=function(){J||(J=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(o,f)}return it(t,i,a,s,l,_.current,o)}function st(t,e,n){if(null==t)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r,o,i=F({},t.props),a=t.key,s=t.ref,l=t._self,u=t._source,c=t._owner;if(null!=e)for(r in rt(e)&&(s=e.ref,c=_.current),ot(e)&&(G(e.key),a=""+e.key),t.type&&t.type.defaultProps&&(o=t.type.defaultProps),e)et.call(e,r)&&!nt.hasOwnProperty(r)&&(void 0===e[r]&&void 0!==o?i[r]=o[r]:i[r]=e[r]);var d=arguments.length-2;if(1===d)i.children=n;else if(d>1){for(var p=Array(d),f=0;f<d;f++)p[f]=arguments[f+2];i.children=p}return it(t.type,a,s,l,u,c,i)}function lt(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var ut=".",ct=":",dt=!1,pt=/\/+/g;function ft(t){return t.replace(pt,"$&/")}function ht(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(G(t.key),function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key)):e.toString(36)}function mt(n,r,o,i,a){var s=typeof n;("undefined"===s||"boolean"===s)&&(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case t:case e:l=!0}}if(l){var u=n,c=a(u),d=""===i?ut+ht(u,0):i;if(K(c)){var p="";null!=d&&(p=ft(d)+"/"),mt(c,r,p,"",(function(t){return t}))}else null!=c&&(lt(c)&&(c.key&&(!u||u.key!==c.key)&&G(c.key),c=function(t,e){return it(t.type,e,t.ref,t._self,t._source,t._owner,t.props)}(c,o+(!c.key||u&&u.key===c.key?"":ft(""+c.key)+"/")+d)),r.push(c));return 1}var f,h=0,g=""===i?ut:i+ct;if(K(n))for(var v=0;v<n.length;v++)h+=mt(f=n[v],r,o,g+ht(f,v),a);else{var y=m(n);if("function"==typeof y){var _=n;y===_.entries&&(dt||R("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),dt=!0);for(var b,x=y.call(_),w=0;!(b=x.next()).done;)h+=mt(f=b.value,r,o,g+ht(f,w++),a)}else if("object"===s){var E=String(n);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===E?"object with keys {"+Object.keys(n).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}}return h}function gt(t,e,n){if(null==t)return t;var r=[],o=0;return mt(t,r,"","",(function(t){return e.call(n,t,o++)})),r}var vt,yt=-1,_t=0,bt=1,xt=2;function wt(t){if(t._status===yt){var e=(0,t._result)();if(e.then((function(e){if(t._status===_t||t._status===yt){var n=t;n._status=bt,n._result=e}}),(function(e){if(t._status===_t||t._status===yt){var n=t;n._status=xt,n._result=e}})),t._status===yt){var n=t;n._status=_t,n._result=e}}if(t._status===bt){var r=t._result;return void 0===r&&O("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||O("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw t._result}function Et(t){return!!("string"==typeof t||"function"==typeof t||t===n||t===o||C||t===r||t===l||t===u||P||t===p||E||S||T||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===c||t.$$typeof===i||t.$$typeof===a||t.$$typeof===s||t.$$typeof===vt||void 0!==t.getModuleId))}function St(){var t=g.current;return null===t&&O("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),t}vt=Symbol.for("react.module.reference");var Tt,Pt,Ct,kt,Rt,Ot,At,Dt=0;function Lt(){}Lt.__reactDisabledLog=!0;var Mt,Ft=k.ReactCurrentDispatcher;function Vt(t,e,n){if(void 0===Mt)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);Mt=r&&r[1]||""}return"\n"+Mt+t}var jt,Nt=!1,It="function"==typeof WeakMap?WeakMap:Map;function zt(t,e){if(!t||Nt)return"";var n,r=jt.get(t);if(void 0!==r)return r;Nt=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Ft.current,Ft.current=null,function(){if(0===Dt){Tt=console.log,Pt=console.info,Ct=console.warn,kt=console.error,Rt=console.group,Ot=console.groupCollapsed,At=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Lt,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}Dt++}();try{if(e){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(t){n=t}Reflect.construct(t,[],a)}else{try{a.call()}catch(t){n=t}t.call(a.prototype)}}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return t.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",t.displayName)),"function"==typeof t&&jt.set(t,d),d}}while(u>=1&&c>=0);break}}}finally{Nt=!1,Ft.current=o,function(){if(0==--Dt){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},t,{value:Tt}),info:F({},t,{value:Pt}),warn:F({},t,{value:Ct}),error:F({},t,{value:kt}),group:F({},t,{value:Rt}),groupCollapsed:F({},t,{value:Ot}),groupEnd:F({},t,{value:At})})}Dt<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=t?t.displayName||t.name:"",f=p?Vt(p):"";return"function"==typeof t&&jt.set(t,f),f}function Bt(t,e,n){if(null==t)return"";if("function"==typeof t)return zt(t,function(t){var e=t.prototype;return!(!e||!e.isReactComponent)}(t));if("string"==typeof t)return Vt(t);switch(t){case l:return Vt("Suspense");case u:return Vt("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case s:return function(t,e,n){return zt(t,!1)}(t.render);case c:return Bt(t.type,e,n);case d:var r=t,o=r._payload,i=r._init;try{return Bt(i(o),e,n)}catch{}}return""}jt=new It;var Ut,Wt={},$t=k.ReactDebugCurrentFrame;function Ht(t){if(t){var e=t._owner,n=Bt(t.type,t._source,e?e.type:null);$t.setExtraStackFrame(n)}else $t.setExtraStackFrame(null)}function Zt(t){if(t){var e=t._owner;w(Bt(t.type,t._source,e?e.type:null))}else w(null)}function Kt(){if(_.current){var t=X(_.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}Ut=!1;var qt={};function Gt(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=Kt();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!qt[n]){qt[n]=!0;var r="";t&&t._owner&&t._owner!==_.current&&(r=" It was passed a child from "+X(t._owner.type)+"."),Zt(t),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Zt(null)}}}function Yt(t,e){if("object"==typeof t)if(K(t))for(var n=0;n<t.length;n++){var r=t[n];lt(r)&&Gt(r,e)}else if(lt(t))t._store&&(t._store.validated=!0);else if(t){var o=m(t);if("function"==typeof o&&o!==t.entries)for(var i,a=o.call(t);!(i=a.next()).done;)lt(i.value)&&Gt(i.value,e)}}function Xt(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==s&&n.$$typeof!==c)return;e=n.propTypes}if(e){var r=X(n);!function(t,e,n,r,o){var i=Function.call.bind(et);for(var a in t)if(i(t,a)){var s=void 0;try{if("function"!=typeof t[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=t[a](e,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){s=t}s&&!(s instanceof Error)&&(Ht(o),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),Ht(null)),s instanceof Error&&!(s.message in Wt)&&(Wt[s.message]=!0,Ht(o),O("Failed %s type: %s",n,s.message),Ht(null))}}(e,t.props,"prop",r,t)}else void 0===n.PropTypes||Ut||(Ut=!0,O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qt(e,r,o){var i=Et(e);if(!i){var a="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=function(t){return null!=t?function(t){return void 0!==t?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}(t.__source):""}(r);a+=l||Kt(),null===e?s="null":K(e)?s="array":void 0!==e&&e.$$typeof===t?(s="<"+(X(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,O("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var u=at.apply(this,arguments);if(null==u)return u;if(i)for(var c=2;c<arguments.length;c++)Yt(arguments[c],e);return e===n?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){Zt(t),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Zt(null);break}}null!==t.ref&&(Zt(t),O("Invalid attribute `ref` supplied to `React.Fragment`."),Zt(null))}(u):Xt(u),u}var Jt=!1,te=!1,ee=null,ne=0,re=!1;function oe(t){t!==ne-1&&O("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ne=t}function ie(t,e,n){var r=y.current;if(null!==r)try{se(r),function(t){if(null===ee)try{var e=("require"+Math.random()).slice(0,7);ee=(B&&B[e]).call(B,"timers").setImmediate}catch{ee=function(t){!1===te&&(te=!0,typeof MessageChannel>"u"&&O("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var e=new MessageChannel;e.port1.onmessage=t,e.port2.postMessage(void 0)}}ee(t)}((function(){0===r.length?(y.current=null,e(t)):ie(t,e,n)}))}catch(t){n(t)}else e(t)}var ae=!1;function se(t){if(!ae){ae=!0;var e=0;try{for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}t.length=0}catch(n){throw t=t.slice(e+1),n}finally{ae=!1}}}var le=Qt,ue=function(t,e,n){for(var r=st.apply(this,arguments),o=2;o<arguments.length;o++)Yt(arguments[o],r.type);return Xt(r),r},ce=function(t){var e=Qt.bind(null,t);return e.type=t,Jt||(Jt=!0,R("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(e,"type",{enumerable:!1,get:function(){return R("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),e},de={map:gt,forEach:function(t,e,n){gt(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return gt(t,(function(){e++})),e},toArray:function(t){return gt(t,(function(t){return t}))||[]},only:function(t){if(!lt(t))throw new Error("React.Children.only expected to receive a single React element child.");return t}};U.Children=de,U.Component=j,U.Fragment=n,U.Profiler=o,U.PureComponent=$,U.StrictMode=r,U.Suspense=l,U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,U.cloneElement=ue,U.createContext=function(t){var e={$$typeof:a,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};e.Provider={$$typeof:i,_context:e};var n=!1,r=!1,o=!1,s={$$typeof:a,_context:e};return Object.defineProperties(s,{Provider:{get:function(){return r||(r=!0,O("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),e.Provider},set:function(t){e.Provider=t}},_currentValue:{get:function(){return e._currentValue},set:function(t){e._currentValue=t}},_currentValue2:{get:function(){return e._currentValue2},set:function(t){e._currentValue2=t}},_threadCount:{get:function(){return e._threadCount},set:function(t){e._threadCount=t}},Consumer:{get:function(){return n||(n=!0,O("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),e.Consumer}},displayName:{get:function(){return e.displayName},set:function(t){o||(R("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",t),o=!0)}}}),e.Consumer=s,e._currentRenderer=null,e._currentRenderer2=null,e},U.createElement=le,U.createFactory=ce,U.createRef=function(){var t={current:null};return Object.seal(t),t},U.forwardRef=function(t){null!=t&&t.$$typeof===c?O("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof t?O("forwardRef requires a render function but was given %s.",null===t?"null":typeof t):0!==t.length&&2!==t.length&&O("forwardRef render functions accept exactly two parameters: props and ref. %s",1===t.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=t&&(null!=t.defaultProps||null!=t.propTypes)&&O("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var e,n={$$typeof:s,render:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(n){e=n,!t.name&&!t.displayName&&(t.displayName=n)}}),n},U.isValidElement=lt,U.lazy=function(t){var e,n,r={$$typeof:d,_payload:{_status:yt,_result:t},_init:wt};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return e},set:function(t){O("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),e=t,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(t){O("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=t,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},U.memo=function(t,e){Et(t)||O("memo: The first argument must be a component. Instead received: %s",null===t?"null":typeof t);var n,r={$$typeof:c,type:t,compare:void 0===e?null:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(e){n=e,!t.name&&!t.displayName&&(t.displayName=e)}}),r},U.startTransition=function(t,e){var n=v.transition;v.transition={};var r=v.transition;v.transition._updatedFibers=new Set;try{t()}finally{v.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&R("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},U.unstable_act=function(t){var e=ne;ne++,null===y.current&&(y.current=[]);var n,r=y.isBatchingLegacy;try{if(y.isBatchingLegacy=!0,n=t(),!r&&y.didScheduleLegacyUpdate){var o=y.current;null!==o&&(y.didScheduleLegacyUpdate=!1,se(o))}}catch(t){throw oe(e),t}finally{y.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var i=n,a=!1,s={then:function(t,n){a=!0,i.then((function(r){oe(e),0===ne?ie(r,t,n):t(r)}),(function(t){oe(e),n(t)}))}};return!re&&typeof Promise<"u"&&Promise.resolve().then((function(){})).then((function(){a||(re=!0,O("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),s}var l=n;if(oe(e),0===ne){var u=y.current;return null!==u&&(se(u),y.current=null),{then:function(t,e){null===y.current?(y.current=[],ie(l,t,e)):t(l)}}}return{then:function(t,e){t(l)}}},U.useCallback=function(t,e){return St().useCallback(t,e)},U.useContext=function(t){var e=St();if(void 0!==t._context){var n=t._context;n.Consumer===t?O("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===t&&O("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return e.useContext(t)},U.useDebugValue=function(t,e){return St().useDebugValue(t,e)},U.useDeferredValue=function(t){return St().useDeferredValue(t)},U.useEffect=function(t,e){return St().useEffect(t,e)},U.useId=function(){return St().useId()},U.useImperativeHandle=function(t,e,n){return St().useImperativeHandle(t,e,n)},U.useInsertionEffect=function(t,e){return St().useInsertionEffect(t,e)},U.useLayoutEffect=function(t,e){return St().useLayoutEffect(t,e)},U.useMemo=function(t,e){return St().useMemo(t,e)},U.useReducer=function(t,e,n){return St().useReducer(t,e,n)},U.useRef=function(t){return St().useRef(t)},U.useState=function(t){return St().useState(t)},U.useSyncExternalStore=function(t,e,n){return St().useSyncExternalStore(t,e,n)},U.useTransition=function(){return St().useTransition()},U.version="18.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),W.exports);var $,H=N.exports;
11
20
  /**
12
21
  * @license React
13
22
  * react-jsx-runtime.production.min.js
@@ -16,7 +25,7 @@ import*as t from"react";import e,{createContext as n,useLayoutEffect as r,useEff
16
25
  *
17
26
  * This source code is licensed under the MIT license found in the
18
27
  * LICENSE file in the root directory of this source tree.
19
- */var cu,du={};
28
+ */var Z,K={};
20
29
  /**
21
30
  * @license React
22
31
  * react-jsx-runtime.development.js
@@ -25,5 +34,32 @@ import*as t from"react";import e,{createContext as n,useLayoutEffect as r,useEff
25
34
  *
26
35
  * This source code is licensed under the MIT license found in the
27
36
  * LICENSE file in the root directory of this source tree.
28
- */"production"===process.env.NODE_ENV?tu.exports=function(){if(lu)return eu;lu=1;var t=uu,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(t,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(t&&t.defaultProps)for(s in n=t.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:e,type:t,key:u,ref:c,props:l,_owner:o.current}}return eu.Fragment=n,eu.jsx=a,eu.jsxs=a,eu}():tu.exports=(cu||(cu=1,"production"!==process.env.NODE_ENV&&function(){var t=uu,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),f=Symbol.iterator,m="@@iterator",g=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];!function(t,e,n){var r=g.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(e+="%s",n=n.concat([o]));var i=n.map((function(t){return String(t)}));i.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,i)}("error",t,n)}var y,_=!1,b=!1,x=!1,w=!1,E=!1;function S(t){return t.displayName||"Context"}function k(t){if(null==t)return null;if("number"==typeof t.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case s:return S(t)+".Consumer";case a:return S(t._context)+".Provider";case l:return function(t,e,n){var r=t.displayName;if(r)return r;var o=e.displayName||e.name||"";return""!==o?n+"("+o+")":n}(t,t.render,"ForwardRef");case d:var e=t.displayName||null;return null!==e?e:k(t.type)||"Memo";case p:var h=t,f=h._payload,m=h._init;try{return k(m(f))}catch{return null}}return null}y=Symbol.for("react.module.reference");var P,T,C,R,A,O,D,j=Object.assign,F=0;function M(){}M.__reactDisabledLog=!0;var V,L=g.ReactCurrentDispatcher;function N(t,e,n){if(void 0===V)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);V=r&&r[1]||""}return"\n"+V+t}var I,B=!1,U="function"==typeof WeakMap?WeakMap:Map;function z(t,e){if(!t||B)return"";var n,r=I.get(t);if(void 0!==r)return r;B=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=L.current,L.current=null,function(){if(0===F){P=console.log,T=console.info,C=console.warn,R=console.error,A=console.group,O=console.groupCollapsed,D=console.groupEnd;var t={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}F++}();try{if(e){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(t){n=t}Reflect.construct(t,[],a)}else{try{a.call()}catch(t){n=t}t.call(a.prototype)}}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return t.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",t.displayName)),"function"==typeof t&&I.set(t,d),d}}while(u>=1&&c>=0);break}}}finally{B=!1,L.current=o,function(){if(0==--F){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},t,{value:P}),info:j({},t,{value:T}),warn:j({},t,{value:C}),error:j({},t,{value:R}),group:j({},t,{value:A}),groupCollapsed:j({},t,{value:O}),groupEnd:j({},t,{value:D})})}F<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=t?t.displayName||t.name:"",h=p?N(p):"";return"function"==typeof t&&I.set(t,h),h}function $(t,e,n){if(null==t)return"";if("function"==typeof t)return z(t,function(t){var e=t.prototype;return!(!e||!e.isReactComponent)}(t));if("string"==typeof t)return N(t);switch(t){case u:return N("Suspense");case c:return N("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case l:return function(t,e,n){return z(t,!1)}(t.render);case d:return $(t.type,e,n);case p:var r=t,o=r._payload,i=r._init;try{return $(i(o),e,n)}catch{}}return""}I=new U;var W=Object.prototype.hasOwnProperty,Z={},G=g.ReactDebugCurrentFrame;function H(t){if(t){var e=t._owner,n=$(t.type,t._source,e?e.type:null);G.setExtraStackFrame(n)}else G.setExtraStackFrame(null)}var Y=Array.isArray;function K(t){return Y(t)}function q(t){return""+t}function X(t){if(function(t){try{return q(t),!1}catch{return!0}}(t))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(t){return"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}(t)),q(t)}var Q,J,tt,et=g.ReactCurrentOwner,nt={key:!0,ref:!0,__self:!0,__source:!0};tt={};var rt=function(t,n,r,o,i,a,s){var l={$$typeof:e,type:t,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ot(t,e,n,r,o){var i,a={},s=null,l=null;for(i in void 0!==n&&(X(n),s=""+n),function(t){if(W.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(e)&&(X(e.key),s=""+e.key),function(t){if(W.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(e)&&(l=e.ref,function(t,e){if("string"==typeof t.ref&&et.current&&e&&et.current.stateNode!==e){var n=k(et.current.type);tt[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',k(et.current.type),t.ref),tt[n]=!0)}}(e,o)),e)W.call(e,i)&&!nt.hasOwnProperty(i)&&(a[i]=e[i]);if(t&&t.defaultProps){var u=t.defaultProps;for(i in u)void 0===a[i]&&(a[i]=u[i])}if(s||l){var c="function"==typeof t?t.displayName||t.name||"Unknown":t;s&&function(t,e){var n=function(){Q||(Q=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"key",{get:n,configurable:!0})}(a,c),l&&function(t,e){var n=function(){J||(J=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(a,c)}return rt(t,s,l,o,r,et.current,a)}var it,at=g.ReactCurrentOwner,st=g.ReactDebugCurrentFrame;function lt(t){if(t){var e=t._owner,n=$(t.type,t._source,e?e.type:null);st.setExtraStackFrame(n)}else st.setExtraStackFrame(null)}function ut(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function ct(){if(at.current){var t=k(at.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}it=!1;var dt={};function pt(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=ct();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!dt[n]){dt[n]=!0;var r="";t&&t._owner&&t._owner!==at.current&&(r=" It was passed a child from "+k(t._owner.type)+"."),lt(t),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),lt(null)}}}function ht(t,e){if("object"==typeof t)if(K(t))for(var n=0;n<t.length;n++){var r=t[n];ut(r)&&pt(r,e)}else if(ut(t))t._store&&(t._store.validated=!0);else if(t){var o=function(t){if(null===t||"object"!=typeof t)return null;var e=f&&t[f]||t[m];return"function"==typeof e?e:null}(t);if("function"==typeof o&&o!==t.entries)for(var i,a=o.call(t);!(i=a.next()).done;)ut(i.value)&&pt(i.value,e)}}function ft(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==d)return;e=n.propTypes}if(e){var r=k(n);!function(t,e,n,r,o){var i=Function.call.bind(W);for(var a in t)if(i(t,a)){var s=void 0;try{if("function"!=typeof t[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=t[a](e,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){s=t}s&&!(s instanceof Error)&&(H(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),H(null)),s instanceof Error&&!(s.message in Z)&&(Z[s.message]=!0,H(o),v("Failed %s type: %s",n,s.message),H(null))}}(e,t.props,"prop",r,t)}else void 0===n.PropTypes||it||(it=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function mt(t,n,f,m,g,S){var P=function(t){return!!("string"==typeof t||"function"==typeof t||t===r||t===i||E||t===o||t===u||t===c||w||t===h||_||b||x||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===y||void 0!==t.getModuleId))}(t);if(!P){var T="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C,R=function(t){return void 0!==t?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}(g);T+=R||ct(),null===t?C="null":K(t)?C="array":void 0!==t&&t.$$typeof===e?(C="<"+(k(t.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):C=typeof t,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,T)}var A=ot(t,n,f,g,S);if(null==A)return A;if(P){var O=n.children;if(void 0!==O)if(m)if(K(O)){for(var D=0;D<O.length;D++)ht(O[D],t);Object.freeze&&Object.freeze(O)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ht(O,t)}return t===r?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){lt(t),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),lt(null);break}}null!==t.ref&&(lt(t),v("Invalid attribute `ref` supplied to `React.Fragment`."),lt(null))}(A):ft(A),A}var gt=function(t,e,n){return mt(t,e,n,!1)},vt=function(t,e,n){return mt(t,e,n,!0)};du.Fragment=r,du.jsx=gt,du.jsxs=vt}()),du);const pu=tu.exports.jsx;function hu(...t){return t.filter(Boolean).map((t=>t.trim())).join(" ")}const fu=uu.forwardRef((({icon:t,onClick:e,as:n,weight:r,fill:o=!1,grade:i,size:a,style:s,color:l,className:u,...c},d)=>{const p=void 0!==e?"button":n??"span",h={color:l,...s};return o&&(h.fontVariationSettings=[h.fontVariationSettings,'"FILL" 1'].filter(Boolean).join(", ")),r&&(h.fontVariationSettings=[h.fontVariationSettings,`"wght" ${r}`].filter(Boolean).join(", ")),i&&(h.fontVariationSettings=[h.fontVariationSettings,`"GRAD" ${i}`].filter(Boolean).join(", ")),a&&(h.fontVariationSettings=[h.fontVariationSettings,`"opsz" ${a}`].filter(Boolean).join(", "),h.fontSize=a),pu(p,{...c,ref:d,style:h,onClick:e,className:hu("material-symbols",u),children:t})}));var mu={regularMobile:20,regular:24,large:40,xlarge:48},gu={mobileRegularNormal:400,mobileRegularMedium:500,light:200,normal:300,medium:400},vu=function(t){var n,r=t.size,o=void 0===r?"regular":r,i=t.weight,a=void 0===i?"normal":i,s=S(t,["size","weight"]),l=Kl().width<768,u=l&&"regular"===o?mu.regularMobile:mu[o],c="regular"===o&&l?gu["mobileRegular".concat((n=a,n.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))))]:gu[a];return e.createElement(fu,E({size:u,weight:c},s))},yu={container:"callout-module_container__fvs15","container--info":"callout-module_container--info__DzX28","container--warning":"callout-module_container--warning__pqM-v","container--error":"callout-module_container--error__TVH7B"};T(".callout-module_container__fvs15 {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-2);\n padding-right: var(--product-spacing-4);\n gap: var(--product-spacing-2);\n border-radius: var(--product-radius-2);\n}\n\n.callout-module_container--info__DzX28 {\n background-color: var(--product-light-blue-20);\n color: var(--product-light-blue-100);\n}\n\n.callout-module_container--warning__pqM-v {\n\n}\n\n.callout-module_container--error__TVH7B {\n \n}\n");var _u={Root:function(t){var n=t.type,r=void 0===n?"info":n,o=t.children;return e.createElement("div",{className:P(yu.container,yu["container--".concat(r)])},o)},Icon:function(t){return e.createElement(vu,E({},t))},Text:function(t){var n=t.children,r=S(t,["children"]);return e.createElement(A,E({},r),n)}};export{O as Button,_u as Callout,j as Columns,z as DatePicker,us as Disclosure,ds as Form,vu as Icon,ys as NumberField,Al as RadioGroup,Nl as Range,Hl as Select,Ql as TextField,A as Typography};
37
+ */"production"===process.env.NODE_ENV?V.exports=function(){if($)return j;$=1;var t=H,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(t,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(t&&t.defaultProps)for(s in n=t.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:e,type:t,key:u,ref:c,props:l,_owner:o.current}}return j.Fragment=n,j.jsx=a,j.jsxs=a,j}():V.exports=(Z||(Z=1,"production"!==process.env.NODE_ENV&&function(){var t=H,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator",g=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];!function(t,e,n){var r=g.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(e+="%s",n=n.concat([o]));var i=n.map((function(t){return String(t)}));i.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,i)}("error",t,n)}var y,_=!1,b=!1,x=!1,w=!1,E=!1;function S(t){return t.displayName||"Context"}function T(t){if(null==t)return null;if("number"==typeof t.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case s:return S(t)+".Consumer";case a:return S(t._context)+".Provider";case l:return function(t,e,n){var r=t.displayName;if(r)return r;var o=e.displayName||e.name||"";return""!==o?n+"("+o+")":n}(t,t.render,"ForwardRef");case d:var e=t.displayName||null;return null!==e?e:T(t.type)||"Memo";case p:var f=t,h=f._payload,m=f._init;try{return T(m(h))}catch{return null}}return null}y=Symbol.for("react.module.reference");var P,C,k,R,O,A,D,L=Object.assign,M=0;function F(){}F.__reactDisabledLog=!0;var V,j=g.ReactCurrentDispatcher;function N(t,e,n){if(void 0===V)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);V=r&&r[1]||""}return"\n"+V+t}var I,z=!1,B="function"==typeof WeakMap?WeakMap:Map;function U(t,e){if(!t||z)return"";var n,r=I.get(t);if(void 0!==r)return r;z=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=j.current,j.current=null,function(){if(0===M){P=console.log,C=console.info,k=console.warn,R=console.error,O=console.group,A=console.groupCollapsed,D=console.groupEnd;var t={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}M++}();try{if(e){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(t){n=t}Reflect.construct(t,[],a)}else{try{a.call()}catch(t){n=t}t.call(a.prototype)}}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return t.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",t.displayName)),"function"==typeof t&&I.set(t,d),d}}while(u>=1&&c>=0);break}}}finally{z=!1,j.current=o,function(){if(0==--M){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},t,{value:P}),info:L({},t,{value:C}),warn:L({},t,{value:k}),error:L({},t,{value:R}),group:L({},t,{value:O}),groupCollapsed:L({},t,{value:A}),groupEnd:L({},t,{value:D})})}M<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=t?t.displayName||t.name:"",f=p?N(p):"";return"function"==typeof t&&I.set(t,f),f}function W(t,e,n){if(null==t)return"";if("function"==typeof t)return U(t,function(t){var e=t.prototype;return!(!e||!e.isReactComponent)}(t));if("string"==typeof t)return N(t);switch(t){case u:return N("Suspense");case c:return N("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case l:return function(t,e,n){return U(t,!1)}(t.render);case d:return W(t.type,e,n);case p:var r=t,o=r._payload,i=r._init;try{return W(i(o),e,n)}catch{}}return""}I=new B;var $=Object.prototype.hasOwnProperty,Z={},q=g.ReactDebugCurrentFrame;function G(t){if(t){var e=t._owner,n=W(t.type,t._source,e?e.type:null);q.setExtraStackFrame(n)}else q.setExtraStackFrame(null)}var Y=Array.isArray;function X(t){return Y(t)}function Q(t){return""+t}function J(t){if(function(t){try{return Q(t),!1}catch{return!0}}(t))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(t){return"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}(t)),Q(t)}var tt,et,nt,rt=g.ReactCurrentOwner,ot={key:!0,ref:!0,__self:!0,__source:!0};nt={};var it=function(t,n,r,o,i,a,s){var l={$$typeof:e,type:t,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function at(t,e,n,r,o){var i,a={},s=null,l=null;for(i in void 0!==n&&(J(n),s=""+n),function(t){if($.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(e)&&(J(e.key),s=""+e.key),function(t){if($.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(e)&&(l=e.ref,function(t,e){if("string"==typeof t.ref&&rt.current&&e&&rt.current.stateNode!==e){var n=T(rt.current.type);nt[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',T(rt.current.type),t.ref),nt[n]=!0)}}(e,o)),e)$.call(e,i)&&!ot.hasOwnProperty(i)&&(a[i]=e[i]);if(t&&t.defaultProps){var u=t.defaultProps;for(i in u)void 0===a[i]&&(a[i]=u[i])}if(s||l){var c="function"==typeof t?t.displayName||t.name||"Unknown":t;s&&function(t,e){var n=function(){tt||(tt=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"key",{get:n,configurable:!0})}(a,c),l&&function(t,e){var n=function(){et||(et=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(a,c)}return it(t,s,l,o,r,rt.current,a)}var st,lt=g.ReactCurrentOwner,ut=g.ReactDebugCurrentFrame;function ct(t){if(t){var e=t._owner,n=W(t.type,t._source,e?e.type:null);ut.setExtraStackFrame(n)}else ut.setExtraStackFrame(null)}function dt(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function pt(){if(lt.current){var t=T(lt.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}st=!1;var ft={};function ht(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=pt();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!ft[n]){ft[n]=!0;var r="";t&&t._owner&&t._owner!==lt.current&&(r=" It was passed a child from "+T(t._owner.type)+"."),ct(t),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ct(null)}}}function mt(t,e){if("object"==typeof t)if(X(t))for(var n=0;n<t.length;n++){var r=t[n];dt(r)&&ht(r,e)}else if(dt(t))t._store&&(t._store.validated=!0);else if(t){var o=function(t){if(null===t||"object"!=typeof t)return null;var e=h&&t[h]||t[m];return"function"==typeof e?e:null}(t);if("function"==typeof o&&o!==t.entries)for(var i,a=o.call(t);!(i=a.next()).done;)dt(i.value)&&ht(i.value,e)}}function gt(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==d)return;e=n.propTypes}if(e){var r=T(n);!function(t,e,n,r,o){var i=Function.call.bind($);for(var a in t)if(i(t,a)){var s=void 0;try{if("function"!=typeof t[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=t[a](e,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){s=t}s&&!(s instanceof Error)&&(G(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),G(null)),s instanceof Error&&!(s.message in Z)&&(Z[s.message]=!0,G(o),v("Failed %s type: %s",n,s.message),G(null))}}(e,t.props,"prop",r,t)}else void 0===n.PropTypes||st||(st=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vt(t,n,h,m,g,S){var P=function(t){return!!("string"==typeof t||"function"==typeof t||t===r||t===i||E||t===o||t===u||t===c||w||t===f||_||b||x||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===y||void 0!==t.getModuleId))}(t);if(!P){var C="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var k,R=function(t){return void 0!==t?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}(g);C+=R||pt(),null===t?k="null":X(t)?k="array":void 0!==t&&t.$$typeof===e?(k="<"+(T(t.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):k=typeof t,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,C)}var O=at(t,n,h,g,S);if(null==O)return O;if(P){var A=n.children;if(void 0!==A)if(m)if(X(A)){for(var D=0;D<A.length;D++)mt(A[D],t);Object.freeze&&Object.freeze(A)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else mt(A,t)}return t===r?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){ct(t),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ct(null);break}}null!==t.ref&&(ct(t),v("Invalid attribute `ref` supplied to `React.Fragment`."),ct(null))}(O):gt(O),O}var yt=function(t,e,n){return vt(t,e,n,!1)},_t=function(t,e,n){return vt(t,e,n,!0)};K.Fragment=r,K.jsx=yt,K.jsxs=_t}()),K);const q=V.exports.jsx;function G(...t){return t.filter(Boolean).map((t=>t.trim())).join(" ")}const Y=H.forwardRef((({icon:t,onClick:e,as:n,weight:r,fill:o=!1,grade:i,size:a,style:s,color:l,className:u,...c},d)=>{const p=void 0!==e?"button":n??"span",f={color:l,...s};return o&&(f.fontVariationSettings=[f.fontVariationSettings,'"FILL" 1'].filter(Boolean).join(", ")),r&&(f.fontVariationSettings=[f.fontVariationSettings,`"wght" ${r}`].filter(Boolean).join(", ")),i&&(f.fontVariationSettings=[f.fontVariationSettings,`"GRAD" ${i}`].filter(Boolean).join(", ")),a&&(f.fontVariationSettings=[f.fontVariationSettings,`"opsz" ${a}`].filter(Boolean).join(", "),f.fontSize=a),q(p,{...c,ref:d,style:f,onClick:e,className:G("material-symbols",u),children:t})}));function X(){var t=n({width:600,height:void 0}),e=t[0],o=t[1];return r((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)}}),[]),e}var Q={regularMobile:20,regular:24,large:40,xlarge:48},J={mobileRegularNormal:400,mobileRegularMedium:500,light:200,normal:300,medium:400},tt=function(t){var n,r=t.size,o=void 0===r?"regular":r,i=t.weight,a=void 0===i?"normal":i,s=C(t,["size","weight"]),l=X().width<768,u=l&&"regular"===o?Q.regularMobile:Q[o],c="regular"===o&&l?J["mobileRegular".concat((n=a,n.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))))]:J[a];return e.createElement(Y,P({size:u,weight:c},s))},et={container:"callout-module_container__fvs15","container--info":"callout-module_container--info__DzX28","container--warning":"callout-module_container--warning__pqM-v","container--error":"callout-module_container--error__TVH7B"};O(".callout-module_container__fvs15 {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-2);\n padding-right: var(--product-spacing-4);\n gap: var(--product-spacing-2);\n border-radius: var(--product-radius-2);\n}\n\n.callout-module_container--info__DzX28 {\n background-color: var(--product-light-blue-20);\n color: var(--product-light-blue-100);\n}\n\n.callout-module_container--warning__pqM-v {\n\n}\n\n.callout-module_container--error__TVH7B {\n \n}\n");var nt={Root:function(t){var n=t.type,r=void 0===n?"info":n,o=t.children;return e.createElement("div",{className:R(et.container,et["container--".concat(r)])},o)},Icon:function(t){return e.createElement(tt,P({},t))},Text:function(t){var n=t.children,r=C(t,["children"]);return e.createElement(L,P({},r),n)}},rt="columns-module_container__ycx3n";O(".columns-module_container__ycx3n {\n display: grid;\n gap: 1rem;\n}\n");var ot=function(t){var n=t.cols,r=t.children;return e.createElement("div",{className:rt,style:{gridTemplateColumns:"repeat(".concat(n,", 1fr)")}},r)},it="datepicker-module_container__H0Ck-",at="datepicker-module_input__tm5uo",st="datepicker-module_input--error__D6wsy";O(".datepicker-module_container__H0Ck- {\n display: flex;\n flex-direction: column;\n}\n\n.datepicker-module_input__tm5uo {\n all: unset;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n}\n\n.datepicker-module_input--error__D6wsy {\n border: 2px solid var(--product-error);\n}\n\n\n\n.datepicker-module_error__vTdEl {\n color: var(--product-error);\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.datepicker-module_label__wCkZn {\n margin-bottom: var(--product-spacing-3);\n}\n\n @media (min-width: 768px) {\n .datepicker-module_input__tm5uo {\n padding: var(--product-spacing-6);\n font-size: 1.25rem;\n }\n}\n");var lt="formField-module_container__aujOq",ut="formField-module_label__33XVl",ct="formField-module_helper__b9-xP",dt="formField-module_error__yqBU1";O(".formField-module_container__aujOq {\n display: flex;\n flex-direction: column;\n}\n\n.formField-module_label__33XVl {\n margin-bottom: var(--product-spacing-3);\n}\n\n.formField-module_helper__b9-xP {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n}\n\n.formField-module_error__yqBU1 {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n color: var(--product-error);\n}\n\n @media (min-width: 768px) {\n .formField-module_helper__b9-xP, .formField-module_error__yqBU1 {\n padding: var(--product-spacing-2) var(--product-spacing-6);\n }\n\n}\n");var pt=function(t){var n=t.id,r=t.error,o=t.helper,i=t.label,a=t.children;return e.createElement("div",{className:lt},e.createElement(L,{as:"label",variant:"form-input-normal",className:ut,htmlFor:n},i),a,o&&e.createElement(L,{variant:"form-helper",className:ct},o),r&&e.createElement(L,{variant:"form-helper",className:dt},r))},ft=function(t){var n=_(),r=n.control,o=n.formState.errors,i=void 0===o?{}:o,a=t.name,s=P(P({},t),{error:i&&i[a]});return e.createElement(b,{name:a,control:r,render:function(t){var n=t.field;return e.createElement(ht,P({},s,{field:P({},n)}))}})},ht=function(t){var n=t.field,r=t.error,o=t.helper,i=C(t,["field","error","helper"]);return e.createElement(pt,{id:i.id,label:i.label,error:null==r?void 0:r.message,helper:null==o?void 0:o.message},e.createElement("div",{className:it},e.createElement("input",P({className:R(at,r&&st),type:"date",id:i.id},n))))};const mt=o({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),gt=o({}),vt=o(null),yt="undefined"!=typeof document,_t=yt?i:r,bt=o({strict:!1}),xt=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),wt="data-"+xt("framerAppearId"),Et=!1,St=!1;class Tt{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 Pt=["prepare","read","update","preRender","render","postRender"];function Ct(t,e){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=Pt.reduce(((t,e)=>(t[e]=function(t){let e=new Tt,n=new Tt,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(t,i=!1,s=!1)=>{const l=s&&o,u=l?e:n;return i&&a.add(t),u.add(t)&&l&&o&&(r=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:l=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let n=0;n<r;n++){const r=e.order[n];a.has(r)&&(s.schedule(r),t()),r(l)}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>n=!0)),t)),{}),a=t=>{i[t].process(o)},s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,Pt.forEach(a),o.isProcessing=!1,n&&e&&(r=!1,t(s))};return{schedule:Pt.reduce(((e,a)=>{const l=i[a];return e[a]=(e,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||t(s)),l.schedule(e,i,a)),e}),{}),cancel:t=>Pt.forEach((e=>i[e].cancel(t))),state:o,steps:i}}const{schedule:kt,cancel:Rt}=Ct(queueMicrotask,!1);function Ot(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function At(t){return"string"==typeof t||Array.isArray(t)}function Dt(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const Lt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mt=["initial",...Lt];function Ft(t){return Dt(t.animate)||Mt.some((e=>At(t[e])))}function Vt(t){return Boolean(Ft(t)||t.variants)}function jt(t){const{initial:e,animate:n}=function(t,e){if(Ft(t)){const{initial:e,animate:n}=t;return{initial:!1===e||At(e)?e:void 0,animate:At(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,a(gt));return c((()=>({initial:e,animate:n})),[Nt(e),Nt(n)])}function Nt(t){return Array.isArray(t)?t.join(" "):t}const It={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"]},zt={};for(const t in It)zt[t]={isEnabled:e=>It[t].some((t=>!!e[t]))};const Bt=o({}),Ut=o({}),Wt=Symbol.for("motionComponentSymbol");function $t({preloadedFeatures:e,createVisualElement:n,useRender:o,useVisualState:i,Component:c}){e&&function(t){for(const e in t)zt[e]={...zt[e],...t[e]}}(e);const p=d((function(d,p){let f;const h={...a(mt),...d,layoutId:Ht(d)},{isStatic:m}=h,g=jt(d),v=i(d,m);if(!m&&yt){g.visualElement=function(t,e,n,o){const{visualElement:i}=a(gt),u=a(bt),c=a(vt),d=a(mt).reducedMotion,p=s();o=o||u.renderer,!p.current&&o&&(p.current=o(t,{visualState:e,parent:i,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));const f=p.current;l((()=>{f&&f.update(n,c)}));const h=s(Boolean(n[wt]&&!window.HandoffComplete));return _t((()=>{f&&(kt.postRender(f.render),h.current&&f.animationState&&f.animationState.animateChanges())})),r((()=>{f&&(f.updateFeatures(),!h.current&&f.animationState&&f.animationState.animateChanges(),h.current&&(h.current=!1,window.HandoffComplete=!0))})),f}(c,v,h,n);const t=a(Ut),o=a(bt).strict;g.visualElement&&(f=g.visualElement.loadFeatures(h,o,e,t))}return t.createElement(gt.Provider,{value:g},f&&g.visualElement?t.createElement(f,{visualElement:g.visualElement,...h}):null,o(c,d,function(t,e,n){return u((r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&("function"==typeof n?n(r):Ot(n)&&(n.current=r))}),[e])}(v,g.visualElement,p),v,m,g.visualElement))}));return p[Wt]=c,p}function Ht({layoutId:t}){const e=a(Bt).id;return e&&void 0!==t?e+"-"+t:t}function Zt(t){function e(e,n={}){return $t(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}const Kt=["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 qt(t){return"string"==typeof t&&!t.includes("-")&&!!(Kt.indexOf(t)>-1||/[A-Z]/.test(t))}const Gt={};const Yt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xt=new Set(Yt);function Qt(t,{layout:e,layoutId:n}){return Xt.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Gt[t]||"opacity"===t)}const Jt=t=>Boolean(t&&t.getVelocity),te={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ee=Yt.length;const ne=t=>e=>"string"==typeof e&&e.startsWith(t),re=ne("--"),oe=ne("var(--"),ie=t=>!!oe(t)&&ae.test(t.split("/*")[0].trim()),ae=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,se=(t,e)=>e&&"number"==typeof t?e.transform(t):t,le=(t,e,n)=>n>e?e:n<t?t:n,ue={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},ce={...ue,transform:t=>le(0,1,t)},de={...ue,default:1},pe=t=>Math.round(1e5*t)/1e5,fe=/(-)?([\d]*\.?[\d])+/g,he=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,me=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ge(t){return"string"==typeof t}const ve=t=>({test:e=>ge(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),ye=ve("deg"),_e=ve("%"),be=ve("px"),xe=ve("vh"),we=ve("vw"),Ee={..._e,parse:t=>_e.parse(t)/100,transform:t=>_e.transform(100*t)},Se={...ue,transform:Math.round},Te={borderWidth:be,borderTopWidth:be,borderRightWidth:be,borderBottomWidth:be,borderLeftWidth:be,borderRadius:be,radius:be,borderTopLeftRadius:be,borderTopRightRadius:be,borderBottomRightRadius:be,borderBottomLeftRadius:be,width:be,maxWidth:be,height:be,maxHeight:be,size:be,top:be,right:be,bottom:be,left:be,padding:be,paddingTop:be,paddingRight:be,paddingBottom:be,paddingLeft:be,margin:be,marginTop:be,marginRight:be,marginBottom:be,marginLeft:be,rotate:ye,rotateX:ye,rotateY:ye,rotateZ:ye,scale:de,scaleX:de,scaleY:de,scaleZ:de,skew:ye,skewX:ye,skewY:ye,distance:be,translateX:be,translateY:be,translateZ:be,x:be,y:be,z:be,perspective:be,transformPerspective:be,opacity:ce,originX:Ee,originY:Ee,originZ:be,zIndex:Se,fillOpacity:ce,strokeOpacity:ce,numOctaves:Se};function Pe(t,e,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=t;let l=!1,u=!1,c=!0;for(const t in e){const n=e[t];if(re(t)){i[t]=n;continue}const r=Te[t],d=se(n,r);if(Xt.has(t)){if(l=!0,a[t]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,s[t]=d):o[t]=d}if(e.transform||(l||r?o.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,o){let i="";for(let e=0;e<ee;e++){const n=Yt[e];void 0!==t[n]&&(i+=`${te[n]||n}(${t[n]}) `)}return e&&!t.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(t,r?"":i):n&&r&&(i="none"),i}(t.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=s;o.transformOrigin=`${t} ${e} ${n}`}}const Ce=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ke(t,e,n){for(const r in e)Jt(e[r])||Qt(r,n)||(t[r]=e[r])}function Re(t,e,n){const r={};return ke(r,t.style||{},t),Object.assign(r,function({transformTemplate:t},e,n){return c((()=>{const r=Ce();return Pe(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)}),[e])}(t,e,n)),r}function Oe(t,e,n){const r={},o=Re(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}const Ae=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 De(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ae.has(t)}let Le=t=>!De(t);try{(Me=require("@emotion/is-prop-valid").default)&&(Le=t=>t.startsWith("on")?!De(t):Me(t))}catch(t){}var Me;function Fe(t,e,n){return"string"==typeof t?t:be.transform(e+n*t)}const Ve={offset:"stroke-dashoffset",array:"stroke-dasharray"},je={offset:"strokeDashoffset",array:"strokeDasharray"};function Ne(t,{attrX:e,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,p){if(Pe(t,u,c,p),d)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:f,style:h,dimensions:m}=t;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(t,e,n){return`${Fe(e,t.x,t.width)} ${Fe(n,t.y,t.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==e&&(f.x=e),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const i=o?Ve:je;t[i.offset]=be.transform(-r);const a=be.transform(e),s=be.transform(n);t[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const Ie=()=>({...Ce(),attrs:{}}),ze=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Be(t,e,n,r){const o=c((()=>{const n=Ie();return Ne(n,e,{enableHardwareAcceleration:!1},ze(r),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};ke(e,t.style,t),o.style={...e,...o.style}}return o}function Ue(t=!1){return(e,n,r,{latestValues:o},i)=>{const a=(qt(e)?Be:Oe)(n,o,i,e),s=function(t,e,n){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(Le(o)||!0===n&&De(o)||!e&&!De(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(n,"string"==typeof e,t),l=e!==p?{...s,...a,ref:r}:{},{children:u}=n,d=c((()=>Jt(u)?u.get():u),[u]);return f(e,{...l,children:d})}}function We(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}const $e=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 He(t,e,n,r){We(t,e,void 0,r);for(const n in e.attrs)t.setAttribute($e.has(n)?n:xt(n),e.attrs[n])}function Ze(t,e){const{style:n}=t,r={};for(const o in n)(Jt(n[o])||e.style&&Jt(e.style[o])||Qt(o,t))&&(r[o]=n[o]);return r}function Ke(t,e){const n=Ze(t,e);for(const r in t)if(Jt(t[r])||Jt(e[r])){n[-1!==Yt.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return n}function qe(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}const Ge=t=>Array.isArray(t),Ye=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),Xe=t=>Ge(t)?t[t.length-1]||0:t;function Qe(t){const e=Jt(t)?t.get():t;return Ye(e)?e.toValue():e}const Je=t=>(e,n)=>{const r=a(gt),o=a(vt),i=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,i){const a={latestValues:tn(r,o,i,t),renderState:e()};return n&&(a.mount=t=>n(r,t,a)),a}(t,e,r,o);return n?i():function(t){const e=s(null);return null===e.current&&(e.current=t()),e.current}(i)};function tn(t,e,n,r){const o={},i=r(t,{});for(const t in i)o[t]=Qe(i[t]);let{initial:a,animate:s}=t;const l=Ft(t),u=Vt(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===s&&(s=e.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!=typeof d&&!Dt(d)){(Array.isArray(d)?d:[d]).forEach((e=>{const n=qe(t,e);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const t in a){let e=a[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in r)o[t]=r[t]}))}return o}const en=t=>t,{schedule:nn,cancel:rn,state:on,steps:an}=Ct("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:en,!0),sn={useVisualState:Je({scrapeMotionValuesFromProps:Ke,createRenderState:Ie,onMount:(t,e,{renderState:n,latestValues:r})=>{nn.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),nn.render((()=>{Ne(n,r,{enableHardwareAcceleration:!1},ze(e.tagName),t.transformTemplate),He(e,n)}))}})},ln={useVisualState:Je({scrapeMotionValuesFromProps:Ze,createRenderState:Ce})};function un(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const cn=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function dn(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const pn=t=>e=>cn(e)&&t(e,dn(e));function fn(t,e,n,r){return un(t,e,pn(n),r)}const hn=(t,e)=>n=>e(t(n)),mn=(...t)=>t.reduce(hn);function gn(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const vn=gn("dragHorizontal"),yn=gn("dragVertical");function _n(t){let e=!1;if("y"===t)e=yn();else if("x"===t)e=vn();else{const t=vn(),n=yn();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function bn(){const t=_n(!0);return!t||(t(),!1)}class xn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function wn(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return fn(t.current,n,((n,o)=>{if("touch"===n.pointerType||bn())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",e),i[r]&&nn.update((()=>i[r](n,o)))}),{passive:!t.getProps()[r]})}const En=(t,e)=>!!e&&(t===e||En(t,e.parentElement));function Sn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,dn(n))}const Tn=new WeakMap,Pn=new WeakMap,Cn=t=>{const e=Tn.get(t.target);e&&e(t)},kn=t=>{t.forEach(Cn)};function Rn(t,e,n){const r=function({root:t,...e}){const n=t||document;Pn.has(n)||Pn.set(n,{});const r=Pn.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(kn,{root:t,...e})),r[o]}(e);return Tn.set(t,n),r.observe(t),()=>{Tn.delete(t),r.unobserve(t)}}const On={some:0,all:1};const An={inView:{Feature:class extends xn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:o}=t,i={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:On[r]};return Rn(this.node.current,i,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,o&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=e?n:r;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 xn{constructor(){super(...arguments),this.removeStartListeners=en,this.removeEndListeners=en,this.removeAccessibleListeners=en,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=fn(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps();nn.update((()=>{o||En(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=fn(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=mn(r,o),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=un(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=un(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&Sn("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&nn.update((()=>n(t,e)))}))})),Sn("down",((t,e)=>{this.startPress(t,e)}))})),e=un(this.node.current,"blur",(()=>{this.isPressing&&Sn("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=mn(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&nn.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!bn()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&nn.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=fn(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=un(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=mn(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends xn{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=mn(un(this.node.current,"focus",(()=>this.onFocus())),un(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends xn{mount(){this.unmount=mn(wn(this.node,!0),wn(this.node,!1))}unmount(){}}}};function Dn(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ln(t,e,n){const r=t.getProps();return qe(r,e,void 0!==n?n:r.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 Mn=en,Fn=en;"production"!==process.env.NODE_ENV&&(Mn=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},Fn=(t,e)=>{if(!t)throw new Error(e)});const Vn=t=>1e3*t,jn=t=>t/1e3,Nn=!1,In=t=>Array.isArray(t)&&"number"==typeof t[0];function zn(t){return Boolean(!t||"string"==typeof t&&Un[t]||In(t)||Array.isArray(t)&&t.every(zn))}const Bn=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Un={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bn([0,.65,.55,1]),circOut:Bn([.55,0,1,.45]),backIn:Bn([.31,.01,.66,-.59]),backOut:Bn([.33,1.53,.69,.99])};function Wn(t){if(t)return In(t)?Bn(t):Array.isArray(t)?t.map(Wn):Un[t]}const $n=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Hn=1e-7,Zn=12;function Kn(t,e,n,r){if(t===e&&n===r)return en;const o=e=>function(t,e,n,r,o){let i,a,s=0;do{a=e+(n-e)/2,i=$n(a,r,o)-t,i>0?n=a:e=a}while(Math.abs(i)>Hn&&++s<Zn);return a}(e,0,1,t,n);return t=>0===t||1===t?t:$n(o(t),e,r)}const qn=Kn(.42,0,1,1),Gn=Kn(0,0,.58,1),Yn=Kn(.42,0,.58,1),Xn=t=>Array.isArray(t)&&"number"!=typeof t[0],Qn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Jn=t=>e=>1-t(1-e),tr=t=>1-Math.sin(Math.acos(t)),er=Jn(tr),nr=Qn(tr),rr=Kn(.33,1.53,.69,.99),or=Jn(rr),ir=Qn(or),ar={linear:en,easeIn:qn,easeInOut:Yn,easeOut:Gn,circIn:tr,circInOut:nr,circOut:er,backIn:or,backInOut:ir,backOut:rr,anticipate:t=>(t*=2)<1?.5*or(t):.5*(2-Math.pow(2,-10*(t-1)))},sr=t=>{if(Array.isArray(t)){Fn(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,o]=t;return Kn(e,n,r,o)}return"string"==typeof t?(Fn(void 0!==ar[t],`Invalid easing type '${t}'`),ar[t]):t},lr=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},ur=(t,e,n)=>t+(e-t)*n;function cr(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 dr=(t,e)=>n=>Boolean(ge(n)&&me.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),pr=(t,e,n)=>r=>{if(!ge(r))return r;const[o,i,a,s]=r.match(fe);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},fr={...ue,transform:t=>Math.round((t=>le(0,255,t))(t))},hr={test:dr("rgb","red"),parse:pr("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+fr.transform(t)+", "+fr.transform(e)+", "+fr.transform(n)+", "+pe(ce.transform(r))+")"};const mr={test:dr("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:hr.transform},gr={test:dr("hsl","hue"),parse:pr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+_e.transform(pe(e))+", "+_e.transform(pe(n))+", "+pe(ce.transform(r))+")"},vr=(t,e,n)=>{const r=t*t,o=n*(e*e-r)+r;return o<0?0:Math.sqrt(o)},yr=[mr,hr,gr];function _r(t){const e=(t=>yr.find((e=>e.test(t))))(t);Fn(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===gr&&(n=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,i=0,a=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,s=2*n-r;o=cr(s,r,t+1/3),i=cr(s,r,t),a=cr(s,r,t-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const br=(t,e)=>{const n=_r(t),r=_r(e),o={...n};return t=>(o.red=vr(n.red,r.red,t),o.green=vr(n.green,r.green,t),o.blue=vr(n.blue,r.blue,t),o.alpha=ur(n.alpha,r.alpha,t),hr.transform(o))},xr={test:t=>hr.test(t)||mr.test(t)||gr.test(t),parse:t=>hr.test(t)?hr.parse(t):gr.test(t)?gr.parse(t):mr.parse(t),transform:t=>ge(t)?t:t.hasOwnProperty("red")?hr.transform(t):gr.transform(t)};const wr="number",Er="color",Sr="var",Tr="var(",Pr="${}",Cr=/(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(Cr)||[],r=[],o={color:[],number:[],var:[]},i=[];for(let t=0;t<n.length;t++){const e=n[t];xr.test(e)?(o.color.push(t),i.push(Er),r.push(xr.parse(e))):e.startsWith(Tr)?(o.var.push(t),i.push(Sr),r.push(e)):(o.number.push(t),i.push(wr),r.push(parseFloat(e)))}return{values:r,split:e.replace(Cr,Pr).split(Pr),indexes:o,types:i}}function Rr(t){return kr(t).values}function Or(t){const{split:e,types:n}=kr(t),r=e.length;return t=>{let o="";for(let i=0;i<r;i++)if(o+=e[i],void 0!==t[i]){const e=n[i];o+=e===wr?pe(t[i]):e===Er?xr.transform(t[i]):t[i]}return o}}const Ar=t=>"number"==typeof t?0:t;const Dr={test:function(t){var e,n;return isNaN(t)&&ge(t)&&((null===(e=t.match(fe))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(he))||void 0===n?void 0:n.length)||0)>0},parse:Rr,createTransformer:Or,getAnimatableNone:function(t){const e=Rr(t);return Or(t)(e.map(Ar))}};function Lr(t,e){return n=>n>0?e:t}function Mr(t,e){return n=>ur(t,e,n)}function Fr(t){return"number"==typeof t?Mr:"string"==typeof t?ie(t)?Lr:xr.test(t)?br:Nr:Array.isArray(t)?Vr:"object"==typeof t?xr.test(t)?br:jr:Lr}function Vr(t,e){const n=[...t],r=n.length,o=t.map(((t,n)=>Fr(t)(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}}function jr(t,e){const n={...t,...e},r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=Fr(t[o])(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}}const Nr=(t,e)=>{const n=Dr.createTransformer(e),r=kr(t),o=kr(e);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?mn(Vr(function(t,e){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const a=e.types[i],s=t.indexes[a][o[a]],l=null!==(n=t.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):(Mn(!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.`),Lr(t,e))};function Ir(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return ur(t,e,n);return Fr(t)(t,e)}function zr(t,e,{clamp:n=!0,ease:r,mixer:o}={}){const i=t.length;if(Fn(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 a=function(t,e,n){const r=[],o=n||Ir,i=t.length-1;for(let n=0;n<i;n++){let i=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||en:e;i=mn(t,i)}r.push(i)}return r}(e,r,o),s=a.length,l=e=>{let n=0;if(s>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=lr(t[n],t[n+1],e);return a[n](r)};return n?e=>l(le(t[0],t[i-1],e)):l}function Br(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=lr(0,e,r);t.push(ur(n,1,o))}}(e,t.length-1),e}function Ur({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const o=Xn(r)?r.map(sr):sr(r),i={done:!1,value:e[0]},a=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:Br(e),t),s=zr(a,e,{ease:Array.isArray(o)?o:(l=e,u=o,l.map((()=>u||Yn)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(i.value=s(e),i.done=e>=t,i)}}function Wr(t,e){return e?t*(1e3/e):0}const $r=5;function Hr(t,e,n){const r=Math.max(e-$r,0);return Wr(n-t(r),e-r)}const Zr=.001,Kr=.01,qr=10,Gr=.05,Yr=1;function Xr({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let o,i;Mn(t<=Vn(qr),"Spring duration must be 10 seconds or less");let a=1-e;a=le(Gr,Yr,a),t=le(Kr,qr,jn(t)),a<1?(o=e=>{const r=e*a,o=r*t,i=r-n,s=Jr(e,a),l=Math.exp(-o);return Zr-i/s*l},i=e=>{const r=e*a*t,i=r*n+n,s=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-r),u=Jr(Math.pow(e,2),a);return(-o(e)+Zr>0?-1:1)*((i-s)*l)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-Zr,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const s=function(t,e,n){let r=n;for(let n=1;n<Qr;n++)r-=t(r)/e(r);return r}(o,i,5/t);if(t=Vn(t),isNaN(s))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(s,2)*r;return{stiffness:e,damping:2*a*Math.sqrt(r*e),duration:t}}}const Qr=12;function Jr(t,e){return t*Math.sqrt(1-e*e)}const to=["duration","bounce"],eo=["stiffness","damping","mass"];function no(t,e){return e.some((e=>void 0!==t[e]))}function ro({keyframes:t,restDelta:e,restSpeed:n,...r}){const o=t[0],i=t[t.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!no(t,eo)&&no(t,to)){const n=Xr(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...r,velocity:-jn(r.velocity||0)}),f=d||0,h=l/(2*Math.sqrt(s*u)),m=i-o,g=jn(Math.sqrt(s/u)),v=Math.abs(m)<5;let y;if(n||(n=v?.01:2),e||(e=v?.005:.5),h<1){const t=Jr(g,h);y=e=>{const n=Math.exp(-h*g*e);return i-n*((f+h*g*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===h)y=t=>i-Math.exp(-g*t)*(m+(f+g*m)*t);else{const t=g*Math.sqrt(h*h-1);y=e=>{const n=Math.exp(-h*g*e),r=Math.min(t*e,300);return i-n*((f+h*g*m)*Math.sinh(r)+t*m*Math.cosh(r))/t}}return{calculatedDuration:p&&c||null,next:t=>{const r=y(t);if(p)a.done=t>=c;else{let o=f;0!==t&&(o=h<1?Hr(y,t,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=e;a.done=s&&l}return a.value=a.done?i:r,a}}}function oo({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],p={done:!1,value:d},f=t=>void 0===s?l:void 0===l||Math.abs(s-t)<Math.abs(l-t)?s:l;let h=n*e;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const v=t=>-h*Math.exp(-t/r),y=t=>g+v(t),_=t=>{const e=v(t),n=y(t);p.done=Math.abs(e)<=u,p.value=p.done?g:n};let b,x;const w=t=>{(t=>void 0!==s&&t<s||void 0!==l&&t>l)(p.value)&&(b=t,x=ro({keyframes:[p.value,f(p.value)],velocity:Hr(y,t,p.value),damping:o,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),p)}}}let io;function ao(){io=void 0}const so={now:()=>(void 0===io&&so.set(on.isProcessing||St?on.timestamp:performance.now()),io),set:t=>{io=t,queueMicrotask(ao)}},lo=t=>{const e=({timestamp:e})=>t(e);return{start:()=>nn.update(e,!0),stop:()=>rn(e),now:()=>on.isProcessing?on.timestamp:so.now()}},uo=2e4;function co(t){let e=0;let n=t.next(e);for(;!n.done&&e<uo;)e+=50,n=t.next(e);return e>=uo?1/0:e}const po={decay:oo,inertia:oo,tween:Ur,keyframes:Ur,spring:ro},fo=t=>t/100;function ho({autoplay:t=!0,delay:e=0,driver:n=lo,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...p}){let f,h,m=1,g=!1;const v=()=>{h=new Promise((t=>{f=t}))};let y;v();const _=po[o]||Ur;let b;_!==Ur&&"number"!=typeof r[0]&&("production"!==process.env.NODE_ENV&&Fn(2===r.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),b=mn(fo,Ir(r[0],r[1])),r=[0,100]);const x=_({...p,keyframes:r});let w;"mirror"===s&&(w=_({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let E="idle",S=null,T=null,P=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=co(x));const{calculatedDuration:C}=x;let k=1/0,R=1/0;null!==C&&(k=C+a,R=k*(i+1)-a);let O=0;const A=t=>{if(null===T)return;m>0&&(T=Math.min(T,t)),m<0&&(T=Math.min(t-R/m,T)),O=null!==S?S:Math.round(t-T)*m;const n=O-e*(m>=0?1:-1),o=m>=0?n<0:n>R;O=Math.max(n,0),"finished"===E&&null===S&&(O=R);let l=O,u=x;if(i){const t=Math.min(O,R)/k;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"===s?(n=1-n,a&&(n-=a/k)):"mirror"===s&&(u=w)),l=le(0,1,n)*k}const c=o?{done:!1,value:r[0]}:u.next(l);b&&(c.value=b(c.value));let{done:p}=c;o||null===C||(p=m>=0?O>=R:O<=0);const f=null===S&&("finished"===E||"running"===E&&p);return d&&d(c.value),f&&M(),c},D=()=>{y&&y.stop(),y=void 0},L=()=>{E="idle",D(),f(),v(),T=P=null},M=()=>{E="finished",c&&c(),D(),f()},F=()=>{if(g)return;y||(y=n(A));const t=y.now();l&&l(),null!==S?T=t-S:T&&"finished"!==E||(T=t),"finished"===E&&v(),P=T,S=null,E="running",y.start()};t&&F();const V={then:(t,e)=>h.then(t,e),get time(){return jn(O)},set time(t){t=Vn(t),O=t,null===S&&y&&0!==m?T=y.now()-t/m:S=t},get duration(){const t=null===x.calculatedDuration?co(x):x.calculatedDuration;return jn(t)},get speed(){return m},set speed(t){t!==m&&y&&(m=t,V.time=jn(O))},get state(){return E},play:F,pause:()=>{E="paused",S=O},stop:()=>{g=!0,"idle"!==E&&(E="idle",u&&u(),L())},cancel:()=>{null!==P&&A(P),L()},complete:()=>{E="finished"},sample:t=>(T=0,A(t))};return V}const mo=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),go=new Set(["opacity","clipPath","filter","transform"]);function vo(t,e,{onUpdate:n,onComplete:r,...o}){if(!(mo()&&go.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1,l=!1;const u=()=>{a=new Promise((t=>{i=t}))};u();let{keyframes:c,duration:d=300,ease:p,times:f}=o;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!zn(e.ease))(e,o)){const t=ho({...o,repeat:0,delay:0});let e={done:!1,value:c[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;f=void 0,c=n,d=r-10,p="linear"}const h=function(t,e,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Wn(s);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(t.owner.current,e,c,{...o,duration:d,ease:p,times:f}),m=()=>{l=!1,h.cancel()},g=()=>{l=!0,nn.update(m),i(),u()};h.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(c,o)),r&&r(),g())};return{then:(t,e)=>a.then(t,e),attachTimeline:t=>(h.timeline=t,h.onfinish=null,en),get time(){return jn(h.currentTime||0)},set time(t){h.currentTime=Vn(t)},get speed(){return h.playbackRate},set speed(t){h.playbackRate=t},get duration(){return jn(d)},play:()=>{s||(h.play(),rn(m))},pause:()=>h.pause(),stop:()=>{if(s=!0,"idle"===h.playState)return;const{currentTime:e}=h;if(e){const n=ho({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}g()},complete:()=>{l||h.finish()},cancel:g}}const yo={type:"spring",stiffness:500,damping:25,restSpeed:10},_o={type:"keyframes",duration:.8},bo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xo=(t,{keyframes:e})=>e.length>2?_o:Xt.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:yo:bo,wo=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Dr.test(e)&&"0"!==e||e.startsWith("url("))),Eo=new Set(["brightness","contrast","saturate","opacity"]);function So(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(fe)||[];if(!r)return t;const o=n.replace(r,"");let i=Eo.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+o+")"}const To=/([a-z-]*)\(.*?\)/g,Po={...Dr,getAnimatableNone:t=>{const e=t.match(To);return e?e.map(So).join(" "):t}},Co={...Te,color:xr,backgroundColor:xr,outlineColor:xr,fill:xr,stroke:xr,borderColor:xr,borderTopColor:xr,borderRightColor:xr,borderBottomColor:xr,borderLeftColor:xr,filter:Po,WebkitFilter:Po},ko=t=>Co[t];function Ro(t,e){let n=ko(t);return n!==Po&&(n=Dr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Oo=t=>/^0[^.\s]+$/.test(t);function Ao(t){return"number"==typeof t?0===t:null!==t?"none"===t||"0"===t||Oo(t):void 0}function Do(t,e){return t[e]||t.default||t}const Lo=(t,e,n,r={})=>o=>{const i=Do(r,t)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=Vn(a);const l=function(t,e,n,r){const o=wo(e,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:t.get();let s;const l=[];for(let t=0;t<i.length;t++)null===i[t]&&(i[t]=0===t?a:i[t-1]),Ao(i[t])&&l.push(t),"string"==typeof i[t]&&"none"!==i[t]&&"0"!==i[t]&&(s=i[t]);if(o&&l.length&&s)for(let t=0;t<l.length;t++)i[l[t]]=Ro(e,s);return i}(e,t,n,i),u=l[0],c=l[l.length-1],d=wo(t,u),p=wo(t,c);Mn(d===p,`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 f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:t=>{e.set(t),i.onUpdate&&i.onUpdate(t)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(i)||(f={...f,...xo(t,f)}),f.duration&&(f.duration=Vn(f.duration)),f.repeatDelay&&(f.repeatDelay=Vn(f.repeatDelay)),!d||!p||Nn||!1===i.type||Et)return function({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const o=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:en,pause:en,stop:en,then:t=>(t(),Promise.resolve()),cancel:en,complete:en});return e?ho({keyframes:[0,1],duration:0,delay:e,onComplete:o}):o()}(f);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=vo(e,t,f);if(n)return n}return ho(f)};function Mo(t){return Boolean(Jt(t)&&t.add)}const Fo=t=>/^\-?\d*\.?\d+$/.test(t);function Vo(t,e){-1===t.indexOf(e)&&t.push(e)}function jo(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class No{constructor(){this.subscriptions=[]}add(t){return Vo(this.subscriptions,t),()=>jo(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Io=new Set;function zo(t,e,n){t||Io.has(e)||(console.warn(e),n&&console.warn(n),Io.add(e))}class Bo{constructor(t,e={}){var n;this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=so.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=so.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&zo(!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 No);const n=this.events[t].add(e);return"change"===t?()=>{n(),nn.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=so.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Wr(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 Uo(t,e){return new Bo(t,e)}const Wo=t=>e=>e.test(t),$o=[ue,be,_e,ye,we,xe,{test:t=>"auto"===t,parse:t=>t}],Ho=t=>$o.find(Wo(t)),Zo=[...$o,xr,Dr],Ko=t=>Zo.find(Wo(t));function qo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Uo(n))}function Go(t,e){if(!e)return;return(e[t]||e.default||e).from}function Yo({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function Xo(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 Qo(t,e,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:a,...s}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(i=r);const u=[],c=o&&t.animationState&&t.animationState.getState()[o];for(const e in s){const r=t.getValue(e),o=s[e];if(!r||void 0===o||c&&Yo(c,e))continue;const a={delay:n,elapsed:0,...Do(i||{},e)};if(window.HandoffAppearAnimations){const n=t.getProps()[wt];if(n){const t=window.HandoffAppearAnimations(n,e,r,nn);null!==t&&(a.elapsed=t,a.isHandoff=!0)}}let d=!a.isHandoff&&!Xo(r,o);if("spring"===a.type&&(r.getVelocity()||a.velocity)&&(d=!1),r.animation&&(d=!1),d)continue;r.start(Lo(e,r,o,t.shouldReduceMotion&&Xt.has(e)?{type:!1}:a));const p=r.animation;Mo(l)&&(l.add(e),p.then((()=>l.remove(e)))),u.push(p)}return a&&Promise.all(u).then((()=>{a&&function(t,e){const n=Ln(t,e);let{transitionEnd:r={},transition:o={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const e in i)qo(t,e,Xe(i[e]))}(t,a)})),u}function Jo(t,e,n={}){const r=Ln(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Qo(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(t,e,n=0,r=0,o=1,i){const a=[],s=(t.variantChildren.size-1)*r,l=1===o?(t=0)=>t*r:(t=0)=>s-t*r;return Array.from(t.variantChildren).sort(ti).forEach(((t,r)=>{t.notify("AnimationStart",e),a.push(Jo(t,e,{...i,delay:n+l(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(a)}(t,e,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[t,e]="beforeChildren"===s?[i,a]:[a,i];return t().then((()=>e()))}return Promise.all([i(),a(n.delay)])}function ti(t,e){return t.sortNodePosition(e)}const ei=[...Lt].reverse(),ni=Lt.length;function ri(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>Jo(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=Jo(t,e,n);else{const o="function"==typeof e?Ln(t,e,n.custom):e;r=Promise.all(Qo(t,o,n))}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function oi(t){let e=ri(t);const n={animate:ai(!0),whileInView:ai(),whileHover:ai(),whileTap:ai(),whileDrag:ai(),whileFocus:ai(),exit:ai()};let r=!0;const o=(e,n)=>{const r=Ln(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function i(i,a){const s=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set;let d={},p=1/0;for(let e=0;e<ni;e++){const f=ei[e],h=n[f],m=void 0!==s[f]?s[f]:l[f],g=At(m),v=f===a?h.isActive:null;!1===v&&(p=e);let y=m===l[f]&&m!==s[f]&&g;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...d},!h.isActive&&null===v||!m&&!h.prevProp||Dt(m)||"boolean"==typeof m)continue;let _=ii(h.prevProp,m)||f===a&&h.isActive&&!y&&g||e>p&&g,b=!1;const x=Array.isArray(m)?m:[m];let w=x.reduce(o,{});!1===v&&(w={});const{prevResolvedValues:E={}}=h,S={...E,...w},T=t=>{_=!0,c.has(t)&&(b=!0,c.delete(t)),h.needsAnimating[t]=!0};for(const t in S){const e=w[t],n=E[t];if(d.hasOwnProperty(t))continue;let r=!1;r=Ge(e)&&Ge(n)?!Dn(e,n):e!==n,r?void 0!==e?T(t):c.add(t):void 0!==e&&c.has(t)?T(t):h.protectedKeys[t]=!0}h.prevProp=m,h.prevResolvedValues=w,h.isActive&&(d={...d,...w}),r&&t.blockInitialAnimation&&(_=!1),!_||y&&!b||u.push(...x.map((t=>({animation:t,options:{type:f,...i}}))))}if(c.size){const e={};c.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),u.push({animation:e})}let f=Boolean(u.length);return!r||!1!==s.initial&&s.initial!==s.animate||t.manuallyAnimateOnMount||(f=!1),r=!1,f?e(u):Promise.resolve()}return{animateChanges:i,setActive:function(e,r,o){var a;if(n[e].isActive===r)return Promise.resolve();null===(a=t.variantChildren)||void 0===a||a.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const s=i(o,e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function ii(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Dn(e,t)}function ai(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let si=0;const li={animation:{Feature:class extends xn{constructor(t){super(t),t.animationState||(t.animationState=oi(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Dt(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 xn{constructor(){super(...arguments),this.id=si++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&o.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},ui=(t,e)=>Math.abs(t-e);class ci{constructor(t,e,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!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=fi(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=ui(t.x,e.x),r=ui(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:r}=t,{timestamp:o}=on;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;e||(i&&i(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=di(e,this.transformPagePoint),nn.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=fi("pointercancel"===t.type?this.lastMoveEventInfo:di(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!cn(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;const i=di(dn(t),this.transformPagePoint),{point:a}=i,{timestamp:s}=on;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=e;l&&l(t,fi(i,this.history)),this.removeListeners=mn(fn(this.contextWindow,"pointermove",this.handlePointerMove),fn(this.contextWindow,"pointerup",this.handlePointerUp),fn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),rn(this.updatePoint)}}function di(t,e){return e?{point:e(t.point)}:t}function pi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function fi({point:t},e){return{point:t,delta:pi(t,mi(e)),offset:pi(t,hi(e)),velocity:gi(e,.1)}}function hi(t){return t[0]}function mi(t){return t[t.length-1]}function gi(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=mi(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>Vn(e)));)n--;if(!r)return{x:0,y:0};const i=jn(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function vi(t){return t.max-t.min}function yi(t,e=0,n=.01){return Math.abs(t-e)<=n}function _i(t,e,n,r=.5){t.origin=r,t.originPoint=ur(e.min,e.max,t.origin),t.scale=vi(n)/vi(e),(yi(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=ur(n.min,n.max,t.origin)-t.originPoint,(yi(t.translate)||isNaN(t.translate))&&(t.translate=0)}function bi(t,e,n,r){_i(t.x,e.x,n.x,r?r.originX:void 0),_i(t.y,e.y,n.y,r?r.originY:void 0)}function xi(t,e,n){t.min=n.min+e.min,t.max=t.min+vi(e)}function wi(t,e,n){t.min=e.min-n.min,t.max=t.min+vi(e)}function Ei(t,e,n){wi(t.x,e.x,n.x),wi(t.y,e.y,n.y)}function Si(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 Ti(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}const Pi=.35;function Ci(t,e,n){return{min:ki(t,e),max:ki(t,n)}}function ki(t,e){return"number"==typeof t?t:t[e]||0}const Ri=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Oi=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ai(t){return[t("x"),t("y")]}function Di({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Li(t){return void 0===t||1===t}function Mi({scale:t,scaleX:e,scaleY:n}){return!Li(t)||!Li(e)||!Li(n)}function Fi(t){return Mi(t)||Vi(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Vi(t){return ji(t.x)||ji(t.y)}function ji(t){return t&&"0%"!==t}function Ni(t,e,n){return n+e*(t-n)}function Ii(t,e,n,r,o){return void 0!==o&&(t=Ni(t,o,r)),Ni(t,n,r)+e}function zi(t,e=0,n=1,r,o){t.min=Ii(t.min,e,n,r,o),t.max=Ii(t.max,e,n,r,o)}function Bi(t,{x:e,y:n}){zi(t.x,e.translate,e.scale,e.originPoint),zi(t.y,n.translate,n.scale,n.originPoint)}function Ui(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Wi(t,e){t.min=t.min+e,t.max=t.max+e}function $i(t,e,[n,r,o]){const i=void 0!==e[o]?e[o]:.5,a=ur(t.min,t.max,i);zi(t,e[n],e[r],a,e.scale)}const Hi=["x","scaleX","originX"],Zi=["y","scaleY","originY"];function Ki(t,e){$i(t.x,e,Hi),$i(t.y,e,Zi)}function qi(t,e){return Di(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}const Gi=({current:t})=>t?t.ownerDocument.defaultView:null,Yi=new WeakMap;class Xi{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=Oi(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new ci(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(dn(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_n(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),Ai((t=>{let e=this.getAxisMotionValue(t).get()||0;if(_e.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[t];if(r){e=vi(r)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&nn.update((()=>o(t,e)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=e;if(r&&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}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),i&&i(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>Ai((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:r,contextWindow:Gi(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&nn.update((()=>o(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:r}=this.getProps();if(!n||!Qi(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?ur(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?ur(n,t,r.max):Math.min(t,n)),t}(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,o=this.constraints;e&&Ot(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(t,{top:e,left:n,bottom:r,right:o}){return{x:Si(t.x,n,o),y:Si(t.y,e,r)}}(r.layoutBox,e),this.elastic=function(t=Pi){return!1===t?t=0:!0===t&&(t=Pi),{x:Ci(t,"left","right"),y:Ci(t,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ai((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}(r.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Ot(t))return!1;const n=t.current;Fn(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(t,e,n){const r=qi(t,n),{scroll:o}=e;return o&&(Wi(r.x,o.offset.x),Wi(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:Ti(t.x,e.x),y:Ti(t.y,e.y)}}(r.layout.layoutBox,o);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=Di(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Ai((a=>{if(!Qi(a,e,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?t[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(Lo(t,n,0,e))}stopAnimation(){Ai((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){Ai((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(),r=n[e];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Ai((e=>{const{drag:n}=this.getProps();if(!Qi(e,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(e);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[e];o.set(t[e]-ur(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Ot(e)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ai((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();r[t]=function(t,e){let n=.5;const r=vi(t),o=vi(e);return o>r?n=lr(e.min,e.max-r,t.min):r>o&&(n=lr(t.min,t.max-o,e.min)),le(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ai((e=>{if(!Qi(e,t,null))return;const n=this.getAxisMotionValue(e),{min:o,max:i}=this.constraints[e];n.set(ur(o,i,r[e]))}))}addListeners(){if(!this.visualElement.current)return;Yi.set(this.visualElement,this);const t=fn(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();Ot(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const o=un(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Ai((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{o(),t(),r(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Pi,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Qi(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Ji=t=>(e,n)=>{t&&nn.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(!be.test(t))return t;t=parseFloat(t)}return`${ea(t,e.target.x)}% ${ea(t,e.target.y)}%`}},ra={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,o=Dr.parse(t);if(o.length>5)return r;const i=Dr.createTransformer(t),a="number"!=typeof o[0]?1:0,s=n.x.scale*e.x,l=n.y.scale*e.y;o[0+a]/=s,o[1+a]/=l;const u=ur(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=u),"number"==typeof o[3+a]&&(o[3+a]/=u),i(o)}};class oa extends e.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;var i;i=aa,Object.assign(Gt,i),o&&(e.group&&e.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ta.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||t.layoutDependency!==e||void 0===e?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||nn.postRender((()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),kt.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ia(t){const[n,o]=function(){const t=a(vt);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:o}=t,i=h();return r((()=>o(i)),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}(),i=a(Bt);return e.createElement(oa,{...t,layoutGroup:i,switchLayoutGroup:a(Ut),isPresent:n,safeToRemove:o})}const aa={borderRadius:{...na,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:na,borderTopRightRadius:na,borderBottomLeftRadius:na,borderBottomRightRadius:na,boxShadow:ra},sa=["TopLeft","TopRight","BottomLeft","BottomRight"],la=sa.length,ua=t=>"string"==typeof t?parseFloat(t):t,ca=t=>"number"==typeof t||be.test(t);function da(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const pa=ha(0,.5,er),fa=ha(.5,.95,en);function ha(t,e,n){return r=>r<t?0:r>e?1:n(lr(t,e,r))}function ma(t,e){t.min=e.min,t.max=e.max}function ga(t,e){ma(t.x,e.x),ma(t.y,e.y)}function va(t,e,n,r,o){return t=Ni(t-=e,1/n,r),void 0!==o&&(t=Ni(t,1/o,r)),t}function ya(t,e,[n,r,o],i,a){!function(t,e=0,n=1,r=.5,o,i=t,a=t){_e.test(e)&&(e=parseFloat(e),e=ur(a.min,a.max,e/100)-a.min);if("number"!=typeof e)return;let s=ur(i.min,i.max,r);t===i&&(s-=e),t.min=va(t.min,e,n,s,o),t.max=va(t.max,e,n,s,o)}(t,e[n],e[r],e[o],e.scale,i,a)}const _a=["x","scaleX","originX"],ba=["y","scaleY","originY"];function xa(t,e,n,r){ya(t.x,e,_a,n?n.x:void 0,r?r.x:void 0),ya(t.y,e,ba,n?n.y:void 0,r?r.y:void 0)}function wa(t){return 0===t.translate&&1===t.scale}function Ea(t){return wa(t.x)&&wa(t.y)}function Sa(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 Ta(t){return vi(t.x)/vi(t.y)}class Pa{constructor(){this.members=[]}add(t){Vo(this.members,t),t.scheduleRender()}remove(t){if(jo(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:r}=t.options;!1===r&&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 r="";const o=t.x.translate/e.x,i=t.y.translate/e.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===e.x&&1===e.y||(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=t.x.scale*e.x,s=t.y.scale*e.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const ka=(t,e)=>t.depth-e.depth;class Ra{constructor(){this.children=[],this.isDirty=!1}add(t){Vo(this.children,t),this.isDirty=!0}remove(t){jo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ka),this.isDirty=!1,this.children.forEach(t)}}const Oa=["","X","Y","Z"],Aa={visibility:"hidden"};let Da=0;const La={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ma({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=Da++,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,La.totalNodes=La.resolvedTargetDeltas=La.recalculatedProjection=0,this.nodes.forEach(ja),this.nodes.forEach($a),this.nodes.forEach(Ha),this.nodes.forEach(Na),t=La,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 Ra)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new No),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 r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=so.now(),r=({timestamp:o})=>{const i=o-n;i>=e&&(rn(r),t(i-e))};return nn.read(r,!0),()=>rn(r)}(r,250),ta.hasAnimatedSinceResize&&(ta.hasAnimatedSinceResize=!1,this.nodes.forEach(Wa))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||Xa,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Sa(this.targetLayout,r)||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={...Do(o,"layout"),onPlay:i,onComplete:s};(a.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=r}))}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,rn(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(Za),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 r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(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(za);this.isUpdating||this.nodes.forEach(Ba),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(Ua),this.nodes.forEach(Fa),this.nodes.forEach(Va),this.clearAllSnapshots();const t=so.now();on.delta=le(0,1e3/60,t-on.timestamp),on.timestamp=t,on.isProcessing=!0,an.update.process(on),an.preRender.process(on),an.render.process(on),on.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,kt.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(Ia),this.sharedNodes.forEach(Ka)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nn.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=Oi(),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:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!Ea(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;t&&(e||Fi(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var r;return t&&(n=this.removeTransform(n)),ts((r=n).x),ts(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return Oi();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Wi(e.x,n.offset.x),Wi(e.y,n.offset.y)),e}removeElementScroll(t){const e=Oi();ga(e,t);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){ga(e,t);const{scroll:n}=this.root;n&&(Wi(e.x,-n.offset.x),Wi(e.y,-n.offset.y))}Wi(e.x,o.offset.x),Wi(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n=Oi();ga(n,t);for(let t=0;t<this.path.length;t++){const r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Ki(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Fi(r.latestValues)&&Ki(n,r.latestValues)}return Fi(this.latestValues)&&Ki(n,this.latestValues),n}removeTransform(t){const e=Oi();ga(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!Fi(n.latestValues))continue;Mi(n.latestValues)&&n.updateSnapshot();const r=Oi();ga(r,n.measurePageBox()),xa(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Fi(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!==on.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 r=Boolean(this.resumingFrom)||this!==n;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=on.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Oi(),this.relativeTargetOrigin=Oi(),Ei(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 a,s,l;if(this.target||(this.target=Oi(),this.targetWithTransforms=Oi()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,xi(a.x,s.x,l.x),xi(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ga(this.target,this.layout.layoutBox),Bi(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=Oi(),this.relativeTargetOrigin=Oi(),Ei(this.relativeTargetOrigin,this.target,t.target),ga(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}La.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Mi(this.parent.latestValues)&&!Vi(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 r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===on.timestamp&&(r=!1),r)return;const{layout:o,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||!o&&!i)return;ga(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(t,e,n,r=!1){const o=n.length;if(!o)return;let i,a;e.x=e.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ki(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,Bi(t,a)),r&&Fi(i.latestValues)&&Ki(t,i.latestValues))}e.x=Ui(e.x),e.y=Ui(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=Oi());const{target:l}=e;if(!l)return void(this.projectionTransform&&(this.projectionDelta=Ri(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=Ri(),this.projectionDeltaWithTransform=Ri());const u=this.projectionTransform;bi(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Ca(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),La.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,r=n?n.latestValues:{},o={...this.latestValues},i=Ri();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a=Oi(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(Ya));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,p,f,h,m,g;qa(i.x,t.x,n),qa(i.y,t.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ei(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,h=this.relativeTargetOrigin,m=a,g=n,Ga(f.x,h.x,m.x,g),Ga(f.y,h.y,m.y,g),d&&(l=this.relativeTarget,p=d,l.x.min===p.x.min&&l.x.max===p.x.max&&l.y.min===p.y.min&&l.y.max===p.y.max)&&(this.isProjectionDirty=!1),d||(d=Oi()),ga(d,this.relativeTarget)),s&&(this.animationValues=o,function(t,e,n,r,o,i){o?(t.opacity=ur(0,void 0!==n.opacity?n.opacity:1,pa(r)),t.opacityExit=ur(void 0!==e.opacity?e.opacity:1,0,fa(r))):i&&(t.opacity=ur(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<la;o++){const i=`border${sa[o]}Radius`;let a=da(e,i),s=da(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||ca(a)===ca(s)?(t[i]=Math.max(ur(ua(a),ua(s),r),0),(_e.test(s)||_e.test(a))&&(t[i]+="%")):t[i]=s)}(e.rotate||n.rotate)&&(t.rotate=ur(e.rotate||0,n.rotate||0,r))}(o,r,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&&(rn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nn.update((()=>{ta.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const r=Jt(t)?t:Uo(t);return r.start(Lo("",r,e,n)),r.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:r,latestValues:o}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&es(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Oi();const e=vi(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=vi(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}ga(e,n),Ki(e,o),bi(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Pa);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 r=this.getStack();r&&r.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 r={};for(let e=0;e<Oa.length;e++){const o="rotate"+Oa[e];n[o]&&(r[o]=n[o],t.setStaticValue(o,0))}t.render();for(const e in r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Aa;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Qe(null==t?void 0:t.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;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=Qe(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!Fi(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Ca(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(e=a.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in Gt){if(void 0===a[t])continue;const{correct:e,applyTo:n}=Gt[t],o="none"===r.transform?a[t]:e(a[t],i);if(n){const t=n.length;for(let e=0;e<t;e++)r[n[e]]=o}else r[t]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Qe(null==t?void 0:t.pointerEvents)||"":"none"),r}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(za),this.root.sharedNodes.clear()}}}function Fa(t){t.updateLayout()}function Va(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:r}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;"size"===o?Ai((t=>{const r=i?n.measuredBox[t]:n.layoutBox[t],o=vi(r);r.min=e[t].min,r.max=r.min+o})):es(o,n.layoutBox,e)&&Ai((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=vi(e[r]);o.max=o.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+a)}));const a=Ri();bi(a,e,n.layoutBox);const s=Ri();i?bi(s,t.applyTransform(r,!0),n.measuredBox):bi(s,e,n.layoutBox);const l=!Ea(a);let u=!1;if(!t.resumeFrom){const r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=Oi();Ei(a,n.layoutBox,o.layoutBox);const s=Oi();Ei(s,e,i.layoutBox),Sa(a,s)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=s,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ja(t){La.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 Na(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ia(t){t.clearSnapshot()}function za(t){t.clearMeasurements()}function Ba(t){t.isLayoutDirty=!1}function Ua(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 $a(t){t.resolveTargetDelta()}function Ha(t){t.calcProjection()}function Za(t){t.resetRotation()}function Ka(t){t.removeLeadSnapshot()}function qa(t,e,n){t.translate=ur(e.translate,0,n),t.scale=ur(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ga(t,e,n,r){t.min=ur(e.min,n.min,r),t.max=ur(e.max,n.max,r)}function Ya(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Xa={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:en;function ts(t){t.min=Ja(t.min),t.max=Ja(t.max)}function es(t,e,n){return"position"===t||"preserve-aspect"===t&&!yi(Ta(e),Ta(n),.2)}const ns=Ma({attachResizeListener:(t,e)=>un(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rs={current:void 0},os=Ma({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rs.current){const t=new ns({});t.mount(window),t.setOptions({layoutScroll:!0}),rs.current=t}return rs.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),is={pan:{Feature:class extends xn{constructor(){super(...arguments),this.removePointerDownListener=en}onPointerDown(t){this.session=new ci(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gi(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ji(t),onStart:Ji(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&nn.update((()=>r(t,e)))}}}mount(){this.removePointerDownListener=fn(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 xn{constructor(t){super(t),this.removeGroupControls=en,this.removeListeners=en,this.controls=new Xi(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||en}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:os,MeasureLayout:ia}},as=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const ss=4;function ls(t,e,n=1){Fn(n<=ss,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,o]=function(t){const e=as.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);if(i){const t=i.trim();return Fo(t)?parseFloat(t):t}return ie(o)?ls(o,e,n+1):o}const us=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cs=t=>us.has(t),ds=t=>t===ue||t===be,ps=(t,e)=>parseFloat(t.split(", ")[e]),fs=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return ps(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?ps(e[1],t):0}},hs=new Set(["x","y","z"]),ms=Yt.filter((t=>!hs.has(t)));const gs={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:fs(4,13),y:fs(5,14)};gs.translateX=gs.x,gs.translateY=gs.y;const vs=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(cs);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=t.getValue(o);if(!t.hasValue(o))return;let u=n[o],c=Ho(u);const d=e[o];let p;if(Ge(d)){const t=d.length,e=null===d[0]?1:0;u=d[e],c=Ho(u);for(let n=e;n<t&&null!==d[n];n++)p?Fn(Ho(d[n])===p,"All keyframes must be of the same type"):(p=Ho(d[n]),Fn(p===c||ds(c)&&ds(p),"Keyframes must be of the same dimension as the current value"))}else p=Ho(d);if(c!==p)if(ds(c)&&ds(p)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&p===be&&(e[o]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==p?void 0:p.transform)&&(0===u||0===d)?0===u?l.set(p.transform(u)):e[o]=c.transform(d):(a||(i=function(t){const e=[];return ms.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:e[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{s[t]=gs[t](r,i)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(s[n]),t[n]=gs[n](l,i)})),t})(e,t,s);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),yt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function ys(t,e,n,r){return(t=>Object.keys(t).some(cs))(e)?vs(t,e,n,r):{target:e,transitionEnd:r}}const _s=(t,e,n,r)=>{const o=function(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!ie(e))return;const n=ls(e,r);n&&t.set(n)}));for(const t in e){const o=e[t];if(!ie(o))continue;const i=ls(o,r);i&&(e[t]=i,n||(n={}),void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}(t,e,r);return ys(t,e=o.target,n,r=o.transitionEnd)},bs={current:null},xs={current:!1};const ws=new WeakMap,Es=Object.keys(zt),Ss=Es.length,Ts=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ps=Mt.length;class Cs{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:o},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=()=>nn.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=s,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Ft(e),this.isVariantNode=Vt(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!==a[t]&&Jt(e)&&(e.set(a[t],!1),Mo(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,ws.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))),xs.current||function(){if(xs.current=!0,yt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>bs.current=t.matches;t.addListener(e),e()}else bs.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||bs.current),"production"!==process.env.NODE_ENV&&zo(!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(){ws.delete(this.current),this.projection&&this.projection.unmount(),rn(this.notifyUpdate),rn(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=Xt.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&nn.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,o){let i,a;if("production"!==process.env.NODE_ENV&&r&&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?Mn(!1,t):Fn(!1,t)}for(let t=0;t<Ss;t++){const n=Es[t],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=zt[n];s&&(i=s),r(e)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=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:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||a&&Ot(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}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):Oi()}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<Ts.length;e++){const n=Ts[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const i=e[o],a=n[o];if(Jt(i))t.addValue(o,i),Mo(r)&&r.add(o),"development"===process.env.NODE_ENV&&zo("11.0.8"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 11.0.8 may not work as expected.`);else if(Jt(a))t.addValue(o,Uo(i,{owner:t})),Mo(r)&&r.remove(o);else if(a!==i)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(i)}else{const e=t.getStaticValue(o);t.addValue(o,Uo(void 0!==e?e:i,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);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<Ps;t++){const n=Mt[t],r=this.props[n];(At(r)||!1===r)&&(e[n]=r)}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=Uo(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,r="string"==typeof n||"object"==typeof n?null===(e=qe(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||Jt(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new No),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class ks extends Cs{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},r){const o=function(t,e,n){const r={};for(const o in t){const t=Go(o,e);if(void 0!==t)r[o]=t;else{const t=n.getValue(o);t&&(r[o]=t.get())}}return r}(n,t||{},this);if(r){!function(t,e,n){var r,o;const i=Object.keys(e).filter((e=>!t.hasValue(e))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=e[a];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(r=n[a])&&void 0!==r?r:t.readValue(a))&&void 0!==o?o:e[a]),null!=u&&("string"==typeof u&&(Fo(u)||Oo(u))?u=parseFloat(u):!Ko(u)&&Dr.test(l)&&(u=Ro(a,l)),t.addValue(a,Uo(u,{owner:t})),void 0===n[a]&&(n[a]=u),null!==u&&t.setBaseTarget(a,u))}}(this,n,o);const t=_s(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class Rs extends ks{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(Xt.has(e)){const t=ko(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),o=(re(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return qi(t,e)}build(t,e,n,r){Pe(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return Ze(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Jt(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){We(t,e,n,r)}}class Os extends ks{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Xt.has(e)){const t=ko(e);return t&&t.default||0}return e=$e.has(e)?e:xt(e),t.getAttribute(e)}measureInstanceViewportBox(){return Oi()}scrapeMotionValuesFromProps(t,e){return Ke(t,e)}build(t,e,n,r){Ne(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){He(t,e,0,r)}mount(t){this.isSVGTag=ze(t.tagName),super.mount(t)}}const As=(t,e)=>qt(t)?new Os(e,{enableHardwareAcceleration:!1}):new Rs(e,{enableHardwareAcceleration:!0}),Ds={...li,...An,...is,...{layout:{ProjectionNode:os,MeasureLayout:ia}}},Ls=Zt(((t,e)=>function(t,{forwardMotionProps:e=!1},n,r){return{...qt(t)?sn:ln,preloadedFeatures:n,useRender:Ue(e),createVisualElement:r,Component:t}}(t,e,Ds,As)));var Ms={open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},Fs=function(t){var n=t.condition,r=t.children;return e.createElement(Ls.div,{initial:"collapsed",animate:n?"open":"collapsed",variants:Ms},r)},Vs="form-module_form__FGOhg";O(".form-module_form__FGOhg {\n display: flex;\n justify-content: center;\n flex-direction: column;\n gap: 1rem;\n max-width: 640px;\n margin: 0 auto;\n padding: 0 1rem;\n}\n\n.form-module_form__FGOhg fieldset {\n all: unset;\n display: flex;\n flex-direction: column; \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\n .form-module_form__FGOhg {\n padding: 0;\n }\n .form-module_content-title-semi-bold__rYlQh {\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var js=function(t){var n=t.methods,r=t.children,o=t.onSubmit,i=C(t,["methods","children","onSubmit"]);return e.createElement(x,P({},n),e.createElement("form",P({className:Vs,onSubmit:n.handleSubmit((function(t){return o(t)}))},i),r))},Ns={small:"25px",medium:"55px",large:"110px",full:"100%"},Is=function(t){var n=t.size,r=void 0===n?"medium":n;return e.createElement("video",{style:{width:Ns[r],height:"auto"},src:"./loading.webm",autoPlay:!0,loop:!0,muted:!0})};const zs=t=>{let e;const n=new Set,r=(t,r)=>{const o="function"==typeof t?t(e):t;if(!Object.is(o,e)){const t=e;e=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},e,o),n.forEach((n=>n(e,t)))}},o=()=>e,i={setState:r,getState:o,getInitialState:()=>a,subscribe:t=>(n.add(t),()=>n.delete(t)),destroy:()=>{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=e=t(r,o,i);return i};function Bs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Us,Ws={exports:{}},$s={},Hs={exports:{}},Zs={};var Ks,qs,Gs,Ys={};
38
+ /**
39
+ * @license React
40
+ * use-sync-external-store-shim.development.js
41
+ *
42
+ * Copyright (c) Facebook, Inc. and its affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */function Xs(){return Ks||(Ks=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=e,n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];!function(t,e,r){var o=n.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(e+="%s",r=r.concat([o]));var i=r.map((function(t){return String(t)}));i.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,i)}("error",t,r)}var o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=t.useState,a=t.useEffect,s=t.useLayoutEffect,l=t.useDebugValue,u=!1,c=!1;function d(t){var e=t.getSnapshot,n=t.value;try{var r=e();return!o(n,r)}catch(t){return!0}}var p=!!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?function(t,e,n){return e()}:function(e,n,p){u||void 0!==t.startTransition&&(u=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=n();if(!c){var h=n();o(f,h)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=i({inst:{value:f,getSnapshot:n}}),g=m[0].inst,v=m[1];return s((function(){g.value=f,g.getSnapshot=n,d(g)&&v({inst:g})}),[e,f,n]),a((function(){d(g)&&v({inst:g});return e((function(){d(g)&&v({inst:g})}))}),[e]),l(f),f},f=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:p;Ys.useSyncExternalStore=f,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ys}function Qs(){return qs||(qs=1,"production"===process.env.NODE_ENV?Hs.exports=function(){if(Us)return Zs;Us=1;var t=e,n="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},r=t.useState,o=t.useEffect,i=t.useLayoutEffect,a=t.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!n(t,r)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),l=r({inst:{value:n,getSnapshot:e}}),u=l[0].inst,c=l[1];return i((function(){u.value=n,u.getSnapshot=e,s(u)&&c({inst:u})}),[t,n,e]),o((function(){return s(u)&&c({inst:u}),t((function(){s(u)&&c({inst:u})}))}),[t]),a(n),n};return Zs.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,Zs}():Hs.exports=Xs()),Hs.exports}
47
+ /**
48
+ * @license React
49
+ * use-sync-external-store-shim/with-selector.production.min.js
50
+ *
51
+ * Copyright (c) Facebook, Inc. and its affiliates.
52
+ *
53
+ * This source code is licensed under the MIT license found in the
54
+ * LICENSE file in the root directory of this source tree.
55
+ */var Js,tl={};
56
+ /**
57
+ * @license React
58
+ * use-sync-external-store-shim/with-selector.development.js
59
+ *
60
+ * Copyright (c) Facebook, Inc. and its affiliates.
61
+ *
62
+ * This source code is licensed under the MIT license found in the
63
+ * LICENSE file in the root directory of this source tree.
64
+ */"production"===process.env.NODE_ENV?Ws.exports=function(){if(Gs)return $s;Gs=1;var t=e,n=Qs(),r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;return $s.useSyncExternalStoreWithSelector=function(t,e,n,u,c){var d=i(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=s((function(){function t(t){if(!a){if(a=!0,o=t,t=u(t),void 0!==c&&p.hasValue){var e=p.value;if(c(e,t))return i=e}return i=t}if(e=i,r(o,t))return e;var n=u(t);return void 0!==c&&c(e,n)?e:(o=t,i=n)}var o,i,a=!1,s=void 0===n?null:n;return[function(){return t(e())},null===s?void 0:function(){return t(s())}]}),[e,n,u,c]);var f=o(t,d[0],d[1]);return a((function(){p.hasValue=!0,p.value=f}),[f]),l(f),f},$s}():Ws.exports=(Js||(Js=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=e,n=Qs(),r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;tl.useSyncExternalStoreWithSelector=function(t,e,n,u,c){var d,p=i(null);null===p.current?(d={hasValue:!1,value:null},p.current=d):d=p.current;var f=s((function(){var t,o,i=!1,a=function(e){if(!i){i=!0,t=e;var n=u(e);if(void 0!==c&&d.hasValue){var a=d.value;if(c(a,n))return o=a,a}return o=n,n}var s=o;if(r(t,e))return s;var l=u(e);return void 0!==c&&c(s,l)?s:(t=e,o=l,l)},s=void 0===n?null:n;return[function(){return a(e())},null===s?void 0:function(){return a(s())}]}),[e,n,u,c]),h=f[0],m=f[1],g=o(t,h,m);return a((function(){d.hasValue=!0,d.value=g}),[g]),l(g),g},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),tl);var el=Bs(Ws.exports);const{useDebugValue:nl}=e,{useSyncExternalStoreWithSelector:rl}=el;let ol=!1;const il=t=>t;const al=t=>{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&"function"!=typeof t&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e="function"==typeof t?(t=>t?zs(t):zs)(t):t,n=(t,n)=>function(t,e=il,n){"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n&&!ol&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ol=!0);const r=rl(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return nl(r),r}(e,t,n);return Object.assign(n,e),n};var sl="modal-module_modal__-Kq3N",ll="modal-module_modal-header__U-dKP";O(".modal-module_modal__-Kq3N {\n position: absolute;\n inset: 0;\n width: calc(100% - 2rem);\n height: calc(100% - 2rem);\n margin: 1rem;\n border-radius: 24px;\n border: none;\n padding: 2rem;\n}\n\n.modal-module_modal__-Kq3N::backdrop {\n background-color: rgba(0, 0, 0, 0.75);\n}\n\n\n.modal-module_modal-header__U-dKP {\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-bottom: 1px solid var(--product-border);\n}\n\n @media (min-width: 768px) {\n .modal-module_modal__-Kq3N {\n width: 720px;\n height: 640px;\n margin: 0;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n}\n");var ul=(t=>t?al(t):al)()((function(t){return{activeModal:"",isOpen:!1,open:function(e){return t({activeModal:e,isOpen:!0})},close:function(){return t({activeModal:"",isOpen:!1})}}})),cl={Content:function(t){var n,r,o=t.value,i=t.children,a=ul(),l=a.isOpen,u=o===a.activeModal&&l,c=s(null);return u?null===(n=c.current)||void 0===n||n.showModal():null===(r=c.current)||void 0===r||r.close(),S(e.createElement("dialog",{ref:c,className:sl},i),document.body)},Control:function(t){var n=t.value,r=t.children,o=C(t,["value","children"]),i=ul().open;return e.createElement(M,P({onClick:function(){return i(n)},autoFocus:!0},o),r)},Header:function(t){var n=t.title,r=ul().close;return e.createElement("header",{className:ll},e.createElement(L,{variant:"content-title-semi-bold"},n),e.createElement(M,{autoFocus:!0,onlyIcon:!0,variant:"tertiary",onClick:function(){return r()}},e.createElement(tt,{icon:"close"})))}},dl="numberField-module_container__yjOIU",pl="numberField-module_fake-input__cqOX-",fl="numberField-module_spinbutton-container__HkUKt",hl="numberField-module_spinbutton-container--error__dO4fj",ml="numberField-module_control__yE0Ro";O(".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 gl=["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"],vl=function(t){var n=_(),r=n.control,o=n.formState.errors,i=void 0===o?{}:o,a=t.name,s=P(P({},t),{error:i&&i[a]});return e.createElement(b,{name:a,control:r,render:function(t){var n=t.field;return e.createElement(yl,P({},s,{field:P({},n)}))}})},yl=function(t){var n=t.name,r=t.label,o=t.min,i=void 0===o?0:o,a=t.max,s=void 0===a?100:a,l=t.width,u=void 0===l?3:l,c=t.error,d=t.helper,p=t.field,f=p.value,h=p.onChange,m=p.onBlur,g=function(t){f<=i||h(f-t)},v=function(t){f>=s||h(f+t)};return e.createElement(pt,{id:"".concat(n,"-label"),label:r,error:null==c?void 0:c.message,helper:null==d?void 0:d.message},e.createElement("div",{className:dl},e.createElement("div",{className:R(fl,c&&hl)},e.createElement("button",{className:ml,type:"button",tabIndex:-1,onClick:function(){return g(1)},"aria-label":"decrease"},"-"),e.createElement(L,{as:"div",className:pl,role:"spinbutton",tabIndex:0,onKeyDown:function(t){gl.includes(t.key)&&(t.preventDefault(),function(t){"ArrowUp"===t.key&&v(1),"ArrowDown"===t.key&&g(1)}(t),function(t){"PageUp"===t.key&&v(5),"PageDown"===t.key&&g(5)}(t),function(t){"Home"===t.key&&h(i),"End"===t.key&&h(s)}(t))},onBlur:m,"aria-valuenow":f,"aria-valuemin":i,"aria-valuemax":s,"aria-labelledby":"".concat(n,"-label"),"aria-invalid":!!(null==c?void 0:c.message),"aria-errormessage":c?"".concat(n,"-error"):void 0,style:{width:"".concat(u,"ch")}},f),e.createElement("button",{className:ml,type:"button",tabIndex:-1,onClick:function(){return v(1)},"aria-label":"increase"},"+"))))},_l={container:"progress-indicator-module_container__Jr2-N","container--full-width":"progress-indicator-module_container--full-width__lKP6x","container--medium":"progress-indicator-module_container--medium__7hGyE","container--small":"progress-indicator-module_container--small__M3-dI",progress:"progress-indicator-module_progress__6S2Ss","progress-bar":"progress-indicator-module_progress-bar__NW-4N",label:"progress-indicator-module_label__cKVP1"};O(".progress-indicator-module_container__Jr2-N {\n\n}\n\n.progress-indicator-module_container--full-width__lKP6x {\n width: 100%;\n}\n\n.progress-indicator-module_container--medium__7hGyE {\n width: 265px;\n}\n\n.progress-indicator-module_container--small__M3-dI {\n width: 100px;\n}\n\n.progress-indicator-module_progress__6S2Ss {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n height: .25rem;\n background: var(--product-greyscale-0);\n border-radius: .125rem;\n}\n\n.progress-indicator-module_progress-bar__NW-4N {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n background: var(--product-success);\n border-radius: .125rem;\n}\n\n.progress-indicator-module_label__cKVP1 {\n margin-top: var(--product-spacing-1);\n}\n");var bl=function(t){var n=t.label,r=t.size,o=void 0===r?"full-width":r,i=t.current,a=void 0===i?1:i,s=t.max,l=void 0===s?10:s;return e.createElement("div",{className:R(_l.container,o&&_l["container--".concat(o)])},e.createElement("div",{className:_l.progress},e.createElement("div",{className:_l["progress-bar"],style:{width:"".concat(a/l*100,"%")}})),n&&e.createElement(L,{className:_l.label,variant:"form-helper"},n),e.createElement(L,{className:"sr-only"},"Step ",a," of ",l))};function xl(){return xl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xl.apply(this,arguments)}function wl(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==t||t(r),!1===n||!r.defaultPrevented)return null==e?void 0:e(r)}}function El(...t){return e=>t.forEach((t=>function(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}(t,e)))}function Sl(...t){return u(El(...t),t)}function Tl(t,e=[]){let n=[];const r=()=>{const e=n.map((t=>o(t)));return function(n){const r=(null==n?void 0:n[t])||e;return c((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return r.scopeName=t,[function(e,r){const i=o(r),s=n.length;function l(e){const{scope:n,children:r,...o}=e,a=(null==n?void 0:n[t][s])||i,l=c((()=>o),Object.values(o));return f(a.Provider,{value:l},r)}return n=[...n,r],l.displayName=e+"Provider",[l,function(n,o){const l=(null==o?void 0:o[t][s])||i,u=a(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${e}\``)}]},Pl(r,...e)]}function Pl(...t){const e=t[0];if(1===t.length)return e;const n=()=>{const n=t.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(t){const r=n.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return c((()=>({[`__scope${e.scopeName}`]:r})),[r])}};return n.scopeName=e.scopeName,n}const Cl=d(((t,e)=>{const{children:n,...r}=t,o=m.toArray(n),i=o.find(Ol);if(i){const t=i.props.children,n=o.map((e=>e===i?m.count(t)>1?m.only(null):g(t)?t.props.children:null:e));return f(kl,xl({},r,{ref:e}),g(t)?v(t,void 0,n):null)}return f(kl,xl({},r,{ref:e}),n)}));Cl.displayName="Slot";const kl=d(((t,e)=>{const{children:n,...r}=t;return g(n)?v(n,{...Al(r,n.props),ref:e?El(e,n.ref):n.ref}):m.count(n)>1?m.only(null):null}));kl.displayName="SlotClone";const Rl=({children:t})=>f(p,null,t);function Ol(t){return g(t)&&t.type===Rl}function Al(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...t)=>{i(...t),o(...t)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}const Dl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,e)=>{const n=d(((t,n)=>{const{asChild:o,...i}=t,a=o?Cl:e;return r((()=>{window[Symbol.for("radix-ui")]=!0}),[]),f(a,xl({},i,{ref:n}))}));return n.displayName=`Primitive.${e}`,{...t,[e]:n}}),{});const Ll=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?i:()=>{},Ml=t["useId".toString()]||(()=>{});let Fl=0;function Vl(e){const[n,r]=t.useState(Ml());return Ll((()=>{e||r((t=>null!=t?t:String(Fl++)))}),[e]),e||(n?`radix-${n}`:"")}function jl(t){const e=s(t);return r((()=>{e.current=t})),c((()=>(...t)=>{var n;return null===(n=e.current)||void 0===n?void 0:n.call(e,...t)}),[])}function Nl({prop:t,defaultProp:e,onChange:o=(()=>{})}){const[i,a]=function({defaultProp:t,onChange:e}){const o=n(t),[i]=o,a=s(i),l=jl(e);return r((()=>{a.current!==i&&(l(i),a.current=i)}),[i,a,l]),o}({defaultProp:e,onChange:o}),l=void 0!==t,c=l?t:i,d=jl(o);return[c,u((e=>{if(l){const n="function"==typeof e?e(t):e;n!==t&&d(n)}else a(e)}),[l,t,a,d])]}const Il=o(void 0);function zl(t){const e=a(Il);return t||e||"ltr"}const Bl="rovingFocusGroup.onEntryFocus",Ul={bubbles:!1,cancelable:!0},Wl="RovingFocusGroup",[$l,Hl,Zl]=function(t){const n=t+"CollectionProvider",[r,o]=Tl(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=t+"CollectionSlot",l=t+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:t=>{const{scope:n,children:r}=t,o=e.useRef(null),a=e.useRef(new Map).current;return e.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:e.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=Sl(n,a(s,r).collectionRef);return e.createElement(Cl,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,s=e.useRef(null),c=Sl(n,s),d=a(l,r);return e.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),e.createElement(Cl,{[u]:"",ref:c},o)}))},function(n){const r=a(t+"CollectionConsumer",n);return e.useCallback((()=>{const t=r.collectionRef.current;if(!t)return[];const e=Array.from(t.querySelectorAll(`[${u}]`));return Array.from(r.itemMap.values()).sort(((t,n)=>e.indexOf(t.ref.current)-e.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}(Wl),[Kl,ql]=Tl(Wl,[Zl]),[Gl,Yl]=Kl(Wl),Xl=d(((t,e)=>f($l.Provider,{scope:t.__scopeRovingFocusGroup},f($l.Slot,{scope:t.__scopeRovingFocusGroup},f(Ql,xl({},t,{ref:e})))))),Ql=d(((t,e)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:a=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:p,onEntryFocus:h,...m}=t,g=s(null),v=Sl(e,g),y=zl(l),[_=null,b]=Nl({prop:c,defaultProp:d,onChange:p}),[x,w]=n(!1),E=jl(h),S=Hl(o),T=s(!1),[P,C]=n(0);return r((()=>{const t=g.current;if(t)return t.addEventListener(Bl,E),()=>t.removeEventListener(Bl,E)}),[E]),f(Gl,{scope:o,orientation:i,dir:y,loop:a,currentTabStopId:_,onItemFocus:u((t=>b(t)),[b]),onItemShiftTab:u((()=>w(!0)),[]),onFocusableItemAdd:u((()=>C((t=>t+1))),[]),onFocusableItemRemove:u((()=>C((t=>t-1))),[])},f(Dl.div,xl({tabIndex:x||0===P?-1:0,"data-orientation":i},m,{ref:v,style:{outline:"none",...t.style},onMouseDown:wl(t.onMouseDown,(()=>{T.current=!0})),onFocus:wl(t.onFocus,(t=>{const e=!T.current;if(t.target===t.currentTarget&&e&&!x){const e=new CustomEvent(Bl,Ul);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){const t=S().filter((t=>t.focusable));eu([t.find((t=>t.active)),t.find((t=>t.id===_)),...t].filter(Boolean).map((t=>t.ref.current)))}}T.current=!1})),onBlur:wl(t.onBlur,(()=>w(!1)))})))})),Jl=d(((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:i=!1,tabStopId:a,...s}=t,l=Vl(),u=a||l,c=Yl("RovingFocusGroupItem",n),d=c.currentTabStopId===u,p=Hl(n),{onFocusableItemAdd:h,onFocusableItemRemove:m}=c;return r((()=>{if(o)return h(),()=>m()}),[o,h,m]),f($l.ItemSlot,{scope:n,id:u,focusable:o,active:i},f(Dl.span,xl({tabIndex:d?0:-1,"data-orientation":c.orientation},s,{ref:e,onMouseDown:wl(t.onMouseDown,(t=>{o?c.onItemFocus(u):t.preventDefault()})),onFocus:wl(t.onFocus,(()=>c.onItemFocus(u))),onKeyDown:wl(t.onKeyDown,(t=>{if("Tab"===t.key&&t.shiftKey)return void c.onItemShiftTab();if(t.target!==t.currentTarget)return;const e=function(t,e,n){const r=function(t,e){return"rtl"!==e?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t}(t.key,n);return"vertical"===e&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===e&&["ArrowUp","ArrowDown"].includes(r)?void 0:tu[r]}(t,c.orientation,c.dir);if(void 0!==e){t.preventDefault();let o=p().filter((t=>t.focusable)).map((t=>t.ref.current));if("last"===e)o.reverse();else if("prev"===e||"next"===e){"prev"===e&&o.reverse();const i=o.indexOf(t.currentTarget);o=c.loop?(r=i+1,(n=o).map(((t,e)=>n[(r+e)%n.length]))):o.slice(i+1)}setTimeout((()=>eu(o)))}var n,r}))})))})),tu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eu(t){const e=document.activeElement;for(const n of t){if(n===e)return;if(n.focus(),document.activeElement!==e)return}}const nu=Xl,ru=Jl;function ou(t){const[e,r]=n(void 0);return Ll((()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const t=n.borderBoxSize,e=Array.isArray(t)?t[0]:t;o=e.inlineSize,i=e.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)}),[t]),e}const iu=t=>{const{present:e,children:o}=t,i=function(t){const[e,o]=n(),i=s({}),a=s(t),l=s("none"),c=t?"mounted":"unmounted",[d,p]=function(t,e){return y(((t,n)=>{const r=e[t][n];return null!=r?r:t}),t)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r((()=>{const t=au(i.current);l.current="mounted"===d?t:"none"}),[d]),Ll((()=>{const e=i.current,n=a.current;if(n!==t){const r=l.current,o=au(e);if(t)p("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))p("UNMOUNT");else{p(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=t}}),[t,p]),Ll((()=>{if(e){const t=t=>{const n=au(i.current).includes(t.animationName);t.target===e&&n&&T((()=>p("ANIMATION_END")))},n=t=>{t.target===e&&(l.current=au(i.current))};return e.addEventListener("animationstart",n),e.addEventListener("animationcancel",t),e.addEventListener("animationend",t),()=>{e.removeEventListener("animationstart",n),e.removeEventListener("animationcancel",t),e.removeEventListener("animationend",t)}}p("ANIMATION_END")}),[e,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:u((t=>{t&&(i.current=getComputedStyle(t)),o(t)}),[])}}(e),a="function"==typeof o?o({present:i.isPresent}):m.only(o),l=Sl(i.ref,a.ref);return"function"==typeof o||i.isPresent?v(a,{ref:l}):null};function au(t){return(null==t?void 0:t.animationName)||"none"}iu.displayName="Presence";const su="Radio",[lu,uu]=Tl(su),[cu,du]=lu(su),pu=d(((t,e)=>{const{__scopeRadio:r,name:o,checked:i=!1,required:a,disabled:l,value:u="on",onCheck:c,...d}=t,[p,h]=n(null),m=Sl(e,(t=>h(t))),g=s(!1),v=!p||Boolean(p.closest("form"));return f(cu,{scope:r,checked:i,disabled:l},f(Dl.button,xl({type:"button",role:"radio","aria-checked":i,"data-state":mu(i),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:m,onClick:wl(t.onClick,(t=>{i||null==c||c(),v&&(g.current=t.isPropagationStopped(),g.current||t.stopPropagation())}))})),v&&f(hu,{control:p,bubbles:!g.current,name:o,value:u,checked:i,required:a,disabled:l,style:{transform:"translateX(-100%)"}}))})),fu=d(((t,e)=>{const{__scopeRadio:n,forceMount:r,...o}=t,i=du("RadioIndicator",n);return f(iu,{present:r||i.checked},f(Dl.span,xl({"data-state":mu(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:e})))})),hu=t=>{const{control:e,checked:n,bubbles:o=!0,...i}=t,a=s(null),l=function(t){const e=s({value:t,previous:t});return c((()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous)),[t])}(n),u=ou(e);return r((()=>{const t=a.current,e=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(e,"checked").set;if(l!==n&&r){const e=new Event("click",{bubbles:o});r.call(t,n),t.dispatchEvent(e)}}),[l,n,o]),f("input",xl({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:a,style:{...t.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function mu(t){return t?"checked":"unchecked"}const gu=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],vu="RadioGroup",[yu,_u]=Tl(vu,[ql,uu]),bu=ql(),xu=uu(),[wu,Eu]=yu(vu),Su=d(((t,e)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...p}=t,h=bu(n),m=zl(u),[g,v]=Nl({prop:i,defaultProp:o,onChange:d});return f(wu,{scope:n,name:r,required:a,disabled:s,value:g,onValueChange:v},f(nu,xl({asChild:!0},h,{orientation:l,dir:m,loop:c}),f(Dl.div,xl({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m},p,{ref:e}))))})),Tu=d(((t,e)=>{const{__scopeRadioGroup:n,disabled:o,...i}=t,a=Eu("RadioGroupItem",n),l=a.disabled||o,u=bu(n),c=xu(n),d=s(null),p=Sl(e,d),h=a.value===i.value,m=s(!1);return r((()=>{const t=t=>{gu.includes(t.key)&&(m.current=!0)},e=()=>m.current=!1;return document.addEventListener("keydown",t),document.addEventListener("keyup",e),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e)}}),[]),f(ru,xl({asChild:!0},u,{focusable:!l,active:h}),f(pu,xl({disabled:l,required:a.required,checked:h},c,i,{name:a.name,ref:p,onCheck:()=>a.onValueChange(i.value),onKeyDown:wl((t=>{"Enter"===t.key&&t.preventDefault()})),onFocus:wl(i.onFocus,(()=>{var t;m.current&&(null===(t=d.current)||void 0===t||t.click())}))})))})),Pu=d(((t,e)=>{const{__scopeRadioGroup:n,...r}=t,o=xu(n);return f(fu,xl({},o,r,{ref:e}))}));var Cu="radioGroup-module_legend__WklzX",ku="radioGroup-module_radio-root__RtJ2M",Ru="radioGroup-module_radio-root--error__9DrYG",Ou="radioGroup-module_radio-root-label--error__KdFST",Au="radioGroup-module_radio-item__BKOlM",Du="radioGroup-module_radio-indicator__-hEEu";O('\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-2);\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\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));\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: calc(var(--product-spacing-4) + 0.5rem);\n background-color: var(--product-greyscale-100);\n}\n\n/* Make the first and last radio have rounded corners pointing to each other */\n\n.radioGroup-module_radio-item__BKOlM:first-child {\n border-top-right-radius: var(--product-radius-half);\n border-bottom-right-radius: var(--product-radius-half);\n}\n\n.radioGroup-module_radio-item__BKOlM:not(:first-child) {\n border-top-left-radius: var(--product-radius-half);\n border-bottom-left-radius: var(--product-radius-half);\n}\n\n@media (min-width: 768px) {\n .radioGroup-module_radio-item__BKOlM {\n padding: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-root__RtJ2M {\n gap: var(--product-spacing-2);\n }\n\n\n .radioGroup-module_radio-item__BKOlM::after {\n right: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-indicator__-hEEu::after {\n right: calc(var(--product-spacing-6) + 0.5rem);\n }\n}\n');var Lu={Root:function(t){var n=t.children,r=t.className,o=t.name,i=t.label,a=C(t,["children","className","name","label"]),s=_(),l=s.control,u=s.formState.errors,c=void 0===u?{}:u,d=c&&c[o];return e.createElement(b,{name:o,control:l,render:function(t){var o=t.field,s=o.onChange,l=C(o,["onChange"]);return e.createElement("fieldset",null,e.createElement(L,{className:Cu,as:"legend",variant:"form-input-normal"},i),e.createElement(Su,P({className:R(r,ku,d&&Ru),onValueChange:s},a,l,{"aria-required":void 0}),n),d&&e.createElement("p",{className:Ou},null==d?void 0:d.message))}})},Item:function(t){var n=t.children,r=t.className,o=C(t,["children","className"]);return e.createElement(Tu,P({className:R(r,Au)},o),e.createElement(L,{variant:"form-input-normal"},n))},Indicator:function(t){var n=t.className,r=C(t,["className"]);return e.createElement(Pu,P({className:R(n,Du)},r))}},Mu="range-module_container__SwhGo",Fu="range-module_range-container__iGnY1",Vu="range-module_slider__pZtfP",ju="range-module_notches__Zc4Og",Nu="range-module_notch__qXs7B",Iu="range-module_progress__fElkU",zu="range-module_value-container__8Zt0r";O(".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;\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 accent-color: var(--product-light-blue-80);\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 top: 50%;\n transform: translateY(-50%);\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.range-module_notch__qXs7B {\n position: absolute;\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");var Bu=function(t){var n=_(),r=n.control,o=n.formState.errors,i=void 0===o?{}:o,a=t.name,s=P(P({},t),{error:i&&i[a]});return e.createElement(b,{name:a,control:r,render:function(t){var n=t.field;return e.createElement(Uu,P({},s,{field:P({},n)}))}})},Uu=function(t){var n=t.id,r=t.min,o=void 0===r?0:r,i=t.max,a=void 0===i?1e3:i,s=t.step,l=void 0===s?100:s,u=t.name,c=t.label,d=t.helper,p=t.error,f=t.field,h=f.value,m=(h-o)/(a-o)*100,g=function(t,e,n){return(e-t)/n};return e.createElement(pt,{id:n,label:c,error:null==p?void 0:p.message,helper:null==d?void 0:d.message},e.createElement("div",{className:Mu},e.createElement("div",{className:Fu},e.createElement("div",{className:ju},Array.from({length:g(o,a,l)}).map((function(t,n){return e.createElement("div",{key:n,className:Nu,style:{left:"".concat(n/g(o,a,l)*100,"%")}})}))),e.createElement("div",{className:Iu,style:{width:"calc(".concat(m||0,"%)")}}),e.createElement("input",P({id:"".concat(u,"-range"),className:Vu,type:"range",min:o,max:a,step:l},f))),e.createElement(L,{className:zu,variant:"content-title-semi-bold"},"£",h)))},Wu="select-module_container__Lydyj",$u="select-module_input__Hcrhq",Hu="select-module_icon__SCm5W",Zu="select-module_input--error__4pQ0M",Ku="select-module_input--disabled__zteOi",qu="select-module_error-message__89d1g",Gu="select-module_helper-message__VwS-B";O("\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");var Yu=function(t){var n=_(),r=n.control,o=n.formState.errors,i=void 0===o?{}:o,a=t.name,s=P(P({},t),{error:i&&i[a]});return e.createElement(b,{name:a,control:r,render:function(t){var n=t.field;return e.createElement(Xu,P({},s,{field:P({},n)}))}})},Xu=function(t){var n=t.error,r=t.helper,o=t.label,i=t.items,a=t.placeholder,s=t.disabled,l=t.field;return e.createElement("div",{className:Wu},e.createElement("label",{className:"sr-only"},o),e.createElement("svg",{className:Hu,width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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"})),e.createElement("select",P({className:R($u,(null==n?void 0:n.message)&&Zu,s&&Ku)},l),a&&e.createElement("option",{value:"placeholder",disabled:!0},a),i&&i.map((function(t){return e.createElement("option",{key:t.id,value:t.id},t.title)}))),(null==r?void 0:r.message)&&e.createElement(L,{className:Gu,as:"span",variant:"form-helper"},r.message),(null==n?void 0:n.message)&&e.createElement(L,{className:qu,as:"p",variant:"form-helper"},n.message))},Qu={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"};O(".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 border: var(--product-border-width-1) solid transparent;\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: 63%;\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-bottom: 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 var(--product-greyscale-100);\n}\n\n.textField-module_input--focus__ngCQF {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\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: 53%;\n }\n\n .textField-module_label__Pb0Yj {\n left: var(--product-spacing-6);\n }\n}\n\n\n\n\n\n\n\n");var Ju=function(t){var n=_(),r=n.control,o=n.formState.errors,i=void 0===o?{}:o,a=t.name,s=P(P({},t),{error:i&&i[a]});return e.createElement(b,{name:a,control:r,render:function(t){var n=t.field;return e.createElement(tc,P({},s,{field:P({},n)}))}})},tc=function(t){var r=t.id,o=t.label,i=t.helper,a=t.error,s=t.type,l=t.prefix,u=t.suffix,c=t.disabled,d=t.className,p=t.rightContent,f=t.leftContent,h=t.field,m=h.value,g=h.onBlur,v=C(h,["value","onBlur"]),y=X().width,_=n(!1),b=_[0],x=_[1],w=""!==m||b,E=y>768,S=i||a,T={focused:{fontSize:E?"1rem":"0.875rem",top:"1rem"},notFocused:{transform:"translateY(-50%)",fontSize:E?"1.25rem":"1.125rem",top:"50%"}};return e.createElement("div",null,e.createElement("div",{className:R(Qu.container,a&&Qu["container--error"])},e.createElement(Ls.label,{className:Qu.label,initial:"notFocused",variants:T,htmlFor:"input-".concat(r),animate:b||""!==m?"focused":"notFocused"},o," ",u&&e.createElement("span",null,u)),e.createElement("input",P({id:"input-".concat(r),className:R(d,Qu["input--".concat(d)],Qu.input,l&&Qu["input--prefix"]),type:s,"aria-describedby":"error-".concat(r),disabled:c,onFocus:function(){return x(!0)},onBlur:function(){g(),x(!1)},value:m},v)),l&&w&&e.createElement("span",{className:Qu.prefix},l),e.createElement("div",null,p&&e.createElement("div",{className:Qu.rightContent},p),f&&e.createElement("div",{className:Qu.leftContent},f))),S&&e.createElement("div",{className:Qu.inputDescription},i&&e.createElement("span",{id:"feedback-".concat(r),className:Qu.helper},i.message),a&&e.createElement("span",{id:"error-".concat(r),className:Qu.error},a.message)))},ec="Toast-module_title__Ipd5h";O(".Toast-module_title__Ipd5h {\n font-weight: 600;\n margin-bottom: .375rem;\n}\n\n");var nc={Root:function(t){var n=t.children;return e.createElement("div",null,n)},Title:function(t){var n=t.className,r=t.children;return e.createElement(e.Fragment,null,e.createElement(L,{className:R(n,ec),variant:"form-helper"},r))},Description:function(t){var n=t.children;return e.createElement(L,{variant:"form-helper"},n)}};const rc="dismissableLayer.update",oc="dismissableLayer.pointerDownOutside",ic="dismissableLayer.focusOutside";let ac;const sc=o({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lc=d(((t,e)=>{var o;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:p,...h}=t,m=a(sc),[g,v]=n(null),y=null!==(o=null==g?void 0:g.ownerDocument)&&void 0!==o?o:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,_]=n({}),b=Sl(e,(t=>v(t))),x=Array.from(m.layers),[w]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),E=x.indexOf(w),S=g?x.indexOf(g):-1,T=m.layersWithOutsidePointerEventsDisabled.size>0,P=S>=E,C=function(t,e=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=jl(t),o=s(!1),i=s((()=>{}));return r((()=>{const t=t=>{if(t.target&&!o.current){const r={originalEvent:t};function a(){cc(oc,n,r,{discrete:!0})}"touch"===t.pointerType?(e.removeEventListener("click",i.current),i.current=a,e.addEventListener("click",i.current,{once:!0})):a()}else e.removeEventListener("click",i.current);o.current=!1},r=window.setTimeout((()=>{e.addEventListener("pointerdown",t)}),0);return()=>{window.clearTimeout(r),e.removeEventListener("pointerdown",t),e.removeEventListener("click",i.current)}}),[e,n]),{onPointerDownCapture:()=>o.current=!0}}((t=>{const e=t.target,n=[...m.branches].some((t=>t.contains(e)));P&&!n&&(null==u||u(t),null==d||d(t),t.defaultPrevented||null==p||p())}),y),k=function(t,e=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=jl(t),o=s(!1);return r((()=>{const t=t=>{if(t.target&&!o.current){cc(ic,n,{originalEvent:t},{discrete:!1})}};return e.addEventListener("focusin",t),()=>e.removeEventListener("focusin",t)}),[e,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((t=>{const e=t.target;[...m.branches].some((t=>t.contains(e)))||(null==c||c(t),null==d||d(t),t.defaultPrevented||null==p||p())}),y);return function(t,e=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=jl(t);r((()=>{const t=t=>{"Escape"===t.key&&n(t)};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}),[n,e])}((t=>{S===m.layers.size-1&&(null==l||l(t),!t.defaultPrevented&&p&&(t.preventDefault(),p()))}),y),r((()=>{if(g)return i&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(ac=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),uc(),()=>{i&&1===m.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=ac)}}),[g,y,i,m]),r((()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),uc())}),[g,m]),r((()=>{const t=()=>_({});return document.addEventListener(rc,t),()=>document.removeEventListener(rc,t)}),[]),f(Dl.div,xl({},h,{ref:b,style:{pointerEvents:T?P?"auto":"none":void 0,...t.style},onFocusCapture:wl(t.onFocusCapture,k.onFocusCapture),onBlurCapture:wl(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:wl(t.onPointerDownCapture,C.onPointerDownCapture)}))}));function uc(){const t=new CustomEvent(rc);document.dispatchEvent(t)}function cc(t,e,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?function(t,e){t&&T((()=>t.dispatchEvent(e)))}(o,i):o.dispatchEvent(i)}const dc=["top","right","bottom","left"],pc=Math.min,fc=Math.max,hc=Math.round,mc=Math.floor,gc=t=>({x:t,y:t}),vc={left:"right",right:"left",bottom:"top",top:"bottom"},yc={start:"end",end:"start"};function _c(t,e,n){return fc(t,pc(e,n))}function bc(t,e){return"function"==typeof t?t(e):t}function xc(t){return t.split("-")[0]}function wc(t){return t.split("-")[1]}function Ec(t){return"x"===t?"y":"x"}function Sc(t){return"y"===t?"height":"width"}function Tc(t){return["top","bottom"].includes(xc(t))?"y":"x"}function Pc(t){return Ec(Tc(t))}function Cc(t){return t.replace(/start|end/g,(t=>yc[t]))}function kc(t){return t.replace(/left|right|bottom|top/g,(t=>vc[t]))}function Rc(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function Oc(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ac(t,e,n){let{reference:r,floating:o}=t;const i=Tc(e),a=Pc(e),s=Sc(a),l=xc(e),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:c,y:r.y-o.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(wc(e)){case"start":f[a]-=p*(n&&u?-1:1);break;case"end":f[a]+=p*(n&&u?-1:1)}return f}async function Dc(t,e){var n;void 0===e&&(e={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=bc(e,t),h=Rc(f),m=s[p?"floating"===d?"reference":"floating":d],g=Oc(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),_=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=Oc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+h.top)/_.y,bottom:(b.bottom-g.bottom+h.bottom)/_.y,left:(g.left-b.left+h.left)/_.x,right:(b.right-g.right+h.right)/_.x}}function Lc(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Mc(t){return dc.some((e=>t[e]>=0))}const Fc=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=e,l=await async function(t,e){const{placement:n,platform:r,elements:o}=t,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=xc(n),s=wc(n),l="y"===Tc(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=bc(e,t);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),l?{x:f*c,y:p*u}:{x:p*u,y:f*c}}(e,t);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}};function Vc(t){return Ic(t)?(t.nodeName||"").toLowerCase():"#document"}function jc(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Nc(t){var e;return null==(e=(Ic(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ic(t){return t instanceof Node||t instanceof jc(t).Node}function zc(t){return t instanceof Element||t instanceof jc(t).Element}function Bc(t){return t instanceof HTMLElement||t instanceof jc(t).HTMLElement}function Uc(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof jc(t).ShadowRoot)}function Wc(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=qc(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function $c(t){return["table","td","th"].includes(Vc(t))}function Hc(t){const e=Zc(),n=qc(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function Zc(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Kc(t){return["html","body","#document"].includes(Vc(t))}function qc(t){return jc(t).getComputedStyle(t)}function Gc(t){return zc(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Yc(t){if("html"===Vc(t))return t;const e=t.assignedSlot||t.parentNode||Uc(t)&&t.host||Nc(t);return Uc(e)?e.host:e}function Xc(t){const e=Yc(t);return Kc(e)?t.ownerDocument?t.ownerDocument.body:t.body:Bc(e)&&Wc(e)?e:Xc(e)}function Qc(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=Xc(t),i=o===(null==(r=t.ownerDocument)?void 0:r.body),a=jc(o);return i?e.concat(a,a.visualViewport||[],Wc(o)?o:[],a.frameElement&&n?Qc(a.frameElement):[]):e.concat(o,Qc(o,[],n))}function Jc(t){const e=qc(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Bc(t),i=o?t.offsetWidth:n,a=o?t.offsetHeight:r,s=hc(n)!==i||hc(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function td(t){return zc(t)?t:t.contextElement}function ed(t){const e=td(t);if(!Bc(e))return gc(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=Jc(e);let a=(i?hc(n.width):n.width)/r,s=(i?hc(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const nd=gc(0);function rd(t){const e=jc(t);return Zc()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:nd}function od(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),i=td(t);let a=gc(1);e&&(r?zc(r)&&(a=ed(r)):a=ed(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==jc(t))&&e}(i,n,r)?rd(i):gc(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const t=jc(i),e=r&&zc(r)?jc(r):r;let n=t,o=n.frameElement;for(;o&&r&&e!==n;){const t=ed(o),e=o.getBoundingClientRect(),r=qc(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;l*=t.x,u*=t.y,c*=t.x,d*=t.y,l+=i,u+=a,n=jc(o),o=n.frameElement}}return Oc({width:c,height:d,x:l,y:u})}const id=[":popover-open",":modal"];function ad(t){return id.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function sd(t){return od(Nc(t)).left+Gc(t).scrollLeft}function ld(t,e,n){let r;if("viewport"===e)r=function(t,e){const n=jc(t),r=Nc(t),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const t=Zc();(!t||t&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(t,n);else if("document"===e)r=function(t){const e=Nc(t),n=Gc(t),r=t.ownerDocument.body,o=fc(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=fc(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+sd(t);const s=-n.scrollTop;return"rtl"===qc(r).direction&&(a+=fc(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Nc(t));else if(zc(e))r=function(t,e){const n=od(t,!0,"fixed"===e),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=Bc(t)?ed(t):gc(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:o*i.x,y:r*i.y}}(e,n);else{const n=rd(t);r={...e,x:e.x-n.x,y:e.y-n.y}}return Oc(r)}function ud(t,e){const n=Yc(t);return!(n===e||!zc(n)||Kc(n))&&("fixed"===qc(n).position||ud(n,e))}function cd(t,e,n){const r=Bc(e),o=Nc(e),i="fixed"===n,a=od(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=gc(0);if(r||!r&&!i)if(("body"!==Vc(e)||Wc(o))&&(s=Gc(e)),r){const t=od(e,!0,i,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&(l.x=sd(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function dd(t,e){return Bc(t)&&"fixed"!==qc(t).position?e?e(t):t.offsetParent:null}function pd(t,e){const n=jc(t);if(!Bc(t)||ad(t))return n;let r=dd(t,e);for(;r&&$c(r)&&"static"===qc(r).position;)r=dd(r,e);return r&&("html"===Vc(r)||"body"===Vc(r)&&"static"===qc(r).position&&!Hc(r))?n:r||function(t){let e=Yc(t);for(;Bc(e)&&!Kc(e);){if(Hc(e))return e;e=Yc(e)}return null}(t)||n}const fd={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i="fixed"===o,a=Nc(r),s=!!e&&ad(e.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=gc(1);const c=gc(0),d=Bc(r);if((d||!d&&!i)&&(("body"!==Vc(r)||Wc(a))&&(l=Gc(r)),Bc(r))){const t=od(r);u=ed(r),c.x=t.x+r.clientLeft,c.y=t.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}},getDocumentElement:Nc,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let r=Qc(t,[],!1).filter((t=>zc(t)&&"body"!==Vc(t))),o=null;const i="fixed"===qc(t).position;let a=i?Yc(t):t;for(;zc(a)&&!Kc(a);){const e=qc(a),n=Hc(a);n||"fixed"!==e.position||(o=null),(i?!n&&!o:!n&&"static"===e.position&&o&&["absolute","fixed"].includes(o.position)||Wc(a)&&!n&&ud(t,a))?r=r.filter((t=>t!==a)):o=e,a=Yc(a)}return e.set(t,r),r}(e,this._c):[].concat(n),r],a=i[0],s=i.reduce(((t,n)=>{const r=ld(e,n,o);return t.top=fc(r.top,t.top),t.right=pc(r.right,t.right),t.bottom=pc(r.bottom,t.bottom),t.left=fc(r.left,t.left),t}),ld(e,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:pd,getElementRects:async function(t){const e=this.getOffsetParent||pd,n=this.getDimensions;return{reference:cd(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Jc(t);return{width:e,height:n}},getScale:ed,isElement:zc,isRTL:function(t){return"rtl"===qc(t).direction}};function hd(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=td(t),c=o||i?[...u?Qc(u):[],...Qc(e)]:[];c.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)}));const d=u&&s?function(t,e){let n,r=null;const o=Nc(t);function i(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:p}=t.getBoundingClientRect();if(s||e(),!d||!p)return;const f={rootMargin:-mc(c)+"px "+-mc(o.clientWidth-(u+d))+"px "+-mc(o.clientHeight-(c+p))+"px "+-mc(u)+"px",threshold:fc(0,pc(1,l))||1};let h=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!h)return a();e?a(!1,e):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(t){r=new IntersectionObserver(m,f)}r.observe(t)}(!0),i}(u,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((t=>{let[r]=t;r&&r.target===u&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var t;null==(t=h)||t.observe(e)}))),n()})),u&&!l&&h.observe(u),h.observe(e));let m=l?od(t):null;return l&&function e(){const r=od(t);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(e)}(),n(),()=>{var t;c.forEach((t=>{o&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)})),null==d||d(),null==(t=h)||t.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const md=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=bc(t,e),u={x:n,y:r},c=await Dc(e,l),d=Tc(xc(o)),p=Ec(d);let f=u[p],h=u[d];if(i){const t="y"===p?"bottom":"right";f=_c(f+c["y"===p?"top":"left"],f,f-c[t])}if(a){const t="y"===d?"bottom":"right";h=_c(h+c["y"===d?"top":"left"],h,h-c[t])}const m=s.fn({...e,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},gd=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=bc(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=xc(o),y=xc(s)===s,_=await(null==l.isRTL?void 0:l.isRTL(u.floating)),b=p||(y||!m?[kc(s)]:function(t){const e=kc(t);return[Cc(t),e,Cc(e)]}(s));p||"none"===h||b.push(...function(t,e,n,r){const o=wc(t);let i=function(t,e,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?i:a;default:return[]}}(xc(t),"start"===n,r);return o&&(i=i.map((t=>t+"-"+o)),e&&(i=i.concat(i.map(Cc)))),i}(s,m,h,_));const x=[s,...b],w=await Dc(e,g),E=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&E.push(w[v]),d){const t=function(t,e,n){void 0===n&&(n=!1);const r=wc(t),o=Pc(t),i=Sc(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=kc(a)),[a,kc(a)]}(o,a,_);E.push(w[t[0]],w[t[1]])}if(S=[...S,{placement:o,overflows:E}],!E.every((t=>t<=0))){var T,P;const t=((null==(T=i.flip)?void 0:T.index)||0)+1,e=x[t];if(e)return{data:{index:t,overflows:S},reset:{placement:e}};let n=null==(P=S.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:P.placement;if(!n)switch(f){case"bestFit":{var C;const t=null==(C=S.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:C[0];t&&(n=t);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},vd=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:r,platform:o,elements:i}=e,{apply:a=(()=>{}),...s}=bc(t,e),l=await Dc(e,s),u=xc(n),c=wc(n),d="y"===Tc(n),{width:p,height:f}=r.floating;let h,m;"top"===u||"bottom"===u?(h=u,m=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=u,h="end"===c?"top":"bottom");const g=f-l[h],v=p-l[m],y=!e.middlewareData.shift;let _=g,b=v;if(d){const t=p-l.left-l.right;b=c||y?pc(v,t):t}else{const t=f-l.top-l.bottom;_=c||y?pc(g,t):t}if(y&&!c){const t=fc(l.left,0),e=fc(l.right,0),n=fc(l.top,0),r=fc(l.bottom,0);d?b=p-2*(0!==t||0!==e?t+e:fc(l.left,l.right)):_=f-2*(0!==n||0!==r?n+r:fc(l.top,l.bottom))}await a({...e,availableWidth:b,availableHeight:_});const x=await o.getDimensions(i.floating);return p!==x.width||f!==x.height?{reset:{rects:!0}}:{}}}},yd=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...o}=bc(t,e);switch(r){case"referenceHidden":{const t=Lc(await Dc(e,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:Mc(t)}}}case"escaped":{const t=Lc(await Dc(e,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:Mc(t)}}}default:return{}}}}},_d=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=e,{element:u,padding:c=0}=bc(t,e)||{};if(null==u)return{};const d=Rc(c),p={x:n,y:r},f=Pc(o),h=Sc(f),m=await a.getDimensions(u),g="y"===f,v=g?"top":"left",y=g?"bottom":"right",_=g?"clientHeight":"clientWidth",b=i.reference[h]+i.reference[f]-p[f]-i.floating[h],x=p[f]-i.reference[f],w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let E=w?w[_]:0;E&&await(null==a.isElement?void 0:a.isElement(w))||(E=s.floating[_]||i.floating[h]);const S=b/2-x/2,T=E/2-m[h]/2-1,P=pc(d[v],T),C=pc(d[y],T),k=P,R=E-m[h]-C,O=E/2-m[h]/2+S,A=_c(k,O,R),D=!l.arrow&&null!=wc(o)&&O!==A&&i.reference[h]/2-(O<k?P:C)-m[h]/2<0,L=D?O<k?O-k:O-R:0;return{[f]:p[f]+L,data:{[f]:A,centerOffset:O-A-L,...D&&{alignmentOffset:L}},reset:D}}}),bd=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=bc(t,e),c={x:n,y:r},d=Tc(o),p=Ec(d);let f=c[p],h=c[d];const m=bc(s,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const t="y"===p?"height":"width",e=i.reference[p]-i.floating[t]+g.mainAxis,n=i.reference[p]+i.reference[t]-g.mainAxis;f<e?f=e:f>n&&(f=n)}if(u){var v,y;const t="y"===p?"width":"height",e=["top","left"].includes(xc(o)),n=i.reference[d]-i.floating[t]+(e&&(null==(v=a.offset)?void 0:v[d])||0)+(e?0:g.crossAxis),r=i.reference[d]+i.reference[t]+(e?0:(null==(y=a.offset)?void 0:y[d])||0)-(e?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[p]:f,[d]:h}}}},xd=(t,e,n)=>{const r=new Map,o={platform:fd,...n},i={...o.platform,_c:r};return(async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:d}=Ac(u,r,l),p=r,f={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y:v,data:y,reset:_}=await m({x:c,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:u,platform:a,elements:{reference:t,floating:e}});c=null!=g?g:c,d=null!=v?v:d,f={...f,[i]:{...f[i],...y}},_&&h<=50&&(h++,"object"==typeof _&&(_.placement&&(p=_.placement),_.rects&&(u=!0===_.rects?await a.getElementRects({reference:t,floating:e,strategy:o}):_.rects),({x:c,y:d}=Ac(u,p,l))),n=-1)}return{x:c,y:d,placement:p,strategy:o,middlewareData:f}})(t,e,{...o,platform:i})},wd=t=>({name:"arrow",options:t,fn(e){const{element:n,padding:r}="function"==typeof t?t(e):t;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?_d({element:n.current,padding:r}).fn(e):{}:n?_d({element:n,padding:r}).fn(e):{};var o}});var Ed="undefined"!=typeof document?i:r;function Sd(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,r,o;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;0!=r--;)if(!Sd(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!t.$$typeof)&&!Sd(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function Td(t){if("undefined"==typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Pd(t,e){const n=Td(t);return Math.round(e*n)/n}function Cd(e){const n=t.useRef(e);return Ed((()=>{n.current=e})),n}const kd=d(((t,e)=>{const{children:n,width:r=10,height:o=5,...i}=t;return f(Dl.svg,xl({},i,{ref:e,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?n:f("polygon",{points:"0,0 30,0 15,10"}))})),Rd="Popper",[Od,Ad]=Tl(Rd),[Dd,Ld]=Od(Rd),Md=d(((t,e)=>{const{__scopePopper:n,virtualRef:o,...i}=t,a=Ld("PopperAnchor",n),l=s(null),u=Sl(e,l);return r((()=>{a.onAnchorChange((null==o?void 0:o.current)||l.current)})),o?null:f(Dl.div,xl({},i,{ref:u}))})),Fd="PopperContent",[Vd,jd]=Od(Fd),Nd=d(((e,r)=>{var o,i,a,s,l,u,c,d;const{__scopePopper:p,side:h="bottom",sideOffset:m=0,align:g="center",alignOffset:v=0,arrowPadding:y=0,avoidCollisions:_=!0,collisionBoundary:b=[],collisionPadding:x=0,sticky:E="partial",hideWhenDetached:S=!1,updatePositionStrategy:T="optimized",onPlaced:P,...C}=e,k=Ld(Fd,p),[R,O]=n(null),A=Sl(r,(t=>O(t))),[D,L]=n(null),M=ou(D),F=null!==(o=null==M?void 0:M.width)&&void 0!==o?o:0,V=null!==(i=null==M?void 0:M.height)&&void 0!==i?i:0,j=h+("center"!==g?"-"+g:""),N="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},I=Array.isArray(b)?b:[b],z=I.length>0,B={padding:N,boundary:I.filter(Ud),altBoundary:z},{refs:U,floatingStyles:W,placement:$,isPositioned:H,middlewareData:Z}=function(e){void 0===e&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,p]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[f,h]=t.useState(o);Sd(f,o)||h(o);const[m,g]=t.useState(null),[v,y]=t.useState(null),_=t.useCallback((t=>{t!==S.current&&(S.current=t,g(t))}),[]),b=t.useCallback((t=>{t!==T.current&&(T.current=t,y(t))}),[]),x=a||m,E=s||v,S=t.useRef(null),T=t.useRef(null),P=t.useRef(d),C=null!=u,k=Cd(u),R=Cd(i),O=t.useCallback((()=>{if(!S.current||!T.current)return;const t={placement:n,strategy:r,middleware:f};R.current&&(t.platform=R.current),xd(S.current,T.current,t).then((t=>{const e={...t,isPositioned:!0};A.current&&!Sd(P.current,e)&&(P.current=e,w.flushSync((()=>{p(e)})))}))}),[f,n,r,R]);Ed((()=>{!1===c&&P.current.isPositioned&&(P.current.isPositioned=!1,p((t=>({...t,isPositioned:!1}))))}),[c]);const A=t.useRef(!1);Ed((()=>(A.current=!0,()=>{A.current=!1})),[]),Ed((()=>{if(x&&(S.current=x),E&&(T.current=E),x&&E){if(k.current)return k.current(x,E,O);O()}}),[x,E,O,k,C]);const D=t.useMemo((()=>({reference:S,floating:T,setReference:_,setFloating:b})),[_,b]),L=t.useMemo((()=>({reference:x,floating:E})),[x,E]),M=t.useMemo((()=>{const t={position:r,left:0,top:0};if(!L.floating)return t;const e=Pd(L.floating,d.x),n=Pd(L.floating,d.y);return l?{...t,transform:"translate("+e+"px, "+n+"px)",...Td(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:e,top:n}}),[r,l,L.floating,d.x,d.y]);return t.useMemo((()=>({...d,update:O,refs:D,elements:L,floatingStyles:M})),[d,O,D,L,M])}({strategy:"fixed",placement:j,whileElementsMounted:(...t)=>hd(...t,{animationFrame:"always"===T}),elements:{reference:k.anchor},middleware:[Fc({mainAxis:m+V,alignmentAxis:v}),_&&md({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?bd():void 0,...B}),_&&gd({...B}),vd({...B,apply:({elements:t,rects:e,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=e.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),D&&wd({element:D,padding:y}),Wd({arrowWidth:F,arrowHeight:V}),S&&yd({strategy:"referenceHidden",...B})]}),[K,q]=$d($),G=jl(P);Ll((()=>{H&&(null==G||G())}),[H,G]);const Y=null===(a=Z.arrow)||void 0===a?void 0:a.x,X=null===(s=Z.arrow)||void 0===s?void 0:s.y,Q=0!==(null===(l=Z.arrow)||void 0===l?void 0:l.centerOffset),[J,tt]=n();return Ll((()=>{R&&tt(window.getComputedStyle(R).zIndex)}),[R]),f("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:H?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(u=Z.transformOrigin)||void 0===u?void 0:u.x,null===(c=Z.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},f(Vd,{scope:p,placedSide:K,onArrowChange:L,arrowX:Y,arrowY:X,shouldHideArrow:Q},f(Dl.div,xl({"data-side":K,"data-align":q},C,{ref:A,style:{...C.style,animation:H?void 0:"none",opacity:null!==(d=Z.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))})),Id="PopperArrow",zd={top:"bottom",right:"left",bottom:"top",left:"right"},Bd=d((function(t,e){const{__scopePopper:n,...r}=t,o=jd(Id,n),i=zd[o.placedSide];return f("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},f(kd,xl({},r,{ref:e,style:{...r.style,display:"block"}})))}));function Ud(t){return null!==t}const Wd=t=>({name:"transformOrigin",options:t,fn(e){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:u}=e,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:t.arrowWidth,p=c?0:t.arrowHeight,[f,h]=$d(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+p/2;let y="",_="";return"bottom"===f?(y=c?m:`${g}px`,_=-p+"px"):"top"===f?(y=c?m:`${g}px`,_=`${l.floating.height+p}px`):"right"===f?(y=-p+"px",_=c?m:`${v}px`):"left"===f&&(y=`${l.floating.width+p}px`,_=c?m:`${v}px`),{data:{x:y,y:_}}}});function $d(t){const[e,n="center"]=t.split("-");return[e,n]}const Hd=t=>{const{__scopePopper:e,children:r}=t,[o,i]=n(null);return f(Dd,{scope:e,anchor:o,onAnchorChange:i},r)},Zd=Md,Kd=Nd,qd=Bd,Gd=d(((t,e)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=t;return r?E.createPortal(f(Dl.div,xl({},o,{ref:e})),r):null})),Yd=d(((t,e)=>f(Dl.span,xl({},t,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})))),[Xd,Qd]=Tl("Tooltip",[Ad]),Jd=Ad(),tp=700,ep="tooltip.open",[np,rp]=Xd("TooltipProvider"),op="Tooltip",[ip,ap]=Xd(op),sp="TooltipTrigger",lp=d(((t,e)=>{const{__scopeTooltip:n,...o}=t,i=ap(sp,n),a=rp(sp,n),l=Jd(n),c=Sl(e,s(null),i.onTriggerChange),d=s(!1),p=s(!1),h=u((()=>d.current=!1),[]);return r((()=>()=>document.removeEventListener("pointerup",h)),[h]),f(Zd,xl({asChild:!0},l),f(Dl.button,xl({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:wl(t.onPointerMove,(t=>{"touch"!==t.pointerType&&(p.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),p.current=!0))})),onPointerLeave:wl(t.onPointerLeave,(()=>{i.onTriggerLeave(),p.current=!1})),onPointerDown:wl(t.onPointerDown,(()=>{d.current=!0,document.addEventListener("pointerup",h,{once:!0})})),onFocus:wl(t.onFocus,(()=>{d.current||i.onOpen()})),onBlur:wl(t.onBlur,i.onClose),onClick:wl(t.onClick,i.onClose)})))})),up="TooltipPortal",[cp,dp]=Xd(up,{forceMount:void 0}),pp="TooltipContent",fp=d(((t,e)=>{const n=dp(pp,t.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=t,a=ap(pp,t.__scopeTooltip);return f(iu,{present:r||a.open},a.disableHoverableContent?f(vp,xl({side:o},i,{ref:e})):f(hp,xl({side:o},i,{ref:e})))})),hp=d(((t,e)=>{const o=ap(pp,t.__scopeTooltip),i=rp(pp,t.__scopeTooltip),a=s(null),l=Sl(e,a),[c,d]=n(null),{trigger:p,onClose:h}=o,m=a.current,{onPointerInTransitChange:g}=i,v=u((()=>{d(null),g(!1)}),[g]),y=u(((t,e)=>{const n=t.currentTarget,r={x:t.clientX,y:t.clientY},o=function(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n})}return r}(r,function(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(t){const e=t.slice();return e.sort(((t,e)=>t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:t.y>e.y?1:0)),function(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const r=t[n];for(;e.length>=2;){const t=e[e.length-1],n=e[e.length-2];if(!((t.x-n.x)*(r.y-n.y)>=(t.y-n.y)*(r.x-n.x)))break;e.pop()}e.push(r)}e.pop();const n=[];for(let e=t.length-1;e>=0;e--){const r=t[e];for(;n.length>=2;){const t=n[n.length-1],e=n[n.length-2];if(!((t.x-e.x)*(r.y-e.y)>=(t.y-e.y)*(r.x-e.x)))break;n.pop()}n.push(r)}return n.pop(),1===e.length&&1===n.length&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}(e)}([...o,...function(t){const{top:e,right:n,bottom:r,left:o}=t;return[{x:o,y:e},{x:n,y:e},{x:n,y:r},{x:o,y:r}]}(e.getBoundingClientRect())]);d(i),g(!0)}),[g]);return r((()=>()=>v()),[v]),r((()=>{if(p&&m){const t=t=>y(t,m),e=t=>y(t,p);return p.addEventListener("pointerleave",t),m.addEventListener("pointerleave",e),()=>{p.removeEventListener("pointerleave",t),m.removeEventListener("pointerleave",e)}}}),[p,m,y,v]),r((()=>{if(c){const t=t=>{const e=t.target,n={x:t.clientX,y:t.clientY},r=(null==p?void 0:p.contains(e))||(null==m?void 0:m.contains(e)),o=!function(t,e){const{x:n,y:r}=t;let o=!1;for(let t=0,i=e.length-1;t<e.length;i=t++){const a=e[t].x,s=e[t].y,l=e[i].x,u=e[i].y;s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(o=!o)}return o}(n,c);r?v():o&&(v(),h())};return document.addEventListener("pointermove",t),()=>document.removeEventListener("pointermove",t)}}),[p,m,c,h,v]),f(vp,xl({},t,{ref:l}))})),[mp,gp]=Xd(op,{isInside:!1}),vp=d(((t,e)=>{const{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=t,u=ap(pp,n),c=Jd(n),{onClose:d}=u;return r((()=>(document.addEventListener(ep,d),()=>document.removeEventListener(ep,d))),[d]),r((()=>{if(u.trigger){const t=t=>{const e=t.target;null!=e&&e.contains(u.trigger)&&d()};return window.addEventListener("scroll",t,{capture:!0}),()=>window.removeEventListener("scroll",t,{capture:!0})}}),[u.trigger,d]),f(lc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:t=>t.preventDefault(),onDismiss:d},f(Kd,xl({"data-state":u.stateAttribute},c,l,{ref:e,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),f(Rl,null,o),f(mp,{scope:n,isInside:!0},f(Yd,{id:u.contentId,role:"tooltip"},i||o))))}));const yp=t=>{const{__scopeTooltip:e,delayDuration:o=tp,skipDelayDuration:i=300,disableHoverableContent:a=!1,children:l}=t,[c,d]=n(!0),p=s(!1),h=s(0);return r((()=>{const t=h.current;return()=>window.clearTimeout(t)}),[]),f(np,{scope:e,isOpenDelayed:c,delayDuration:o,onOpen:u((()=>{window.clearTimeout(h.current),d(!1)}),[]),onClose:u((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>d(!0)),i)}),[i]),isPointerInTransitRef:p,onPointerInTransitChange:u((t=>{p.current=t}),[]),disableHoverableContent:a},l)},_p=t=>{const{__scopeTooltip:e,children:o,open:i,defaultOpen:a=!1,onOpenChange:l,disableHoverableContent:d,delayDuration:p}=t,h=rp(op,t.__scopeTooltip),m=Jd(e),[g,v]=n(null),y=Vl(),_=s(0),b=null!=d?d:h.disableHoverableContent,x=null!=p?p:h.delayDuration,w=s(!1),[E=!1,S]=Nl({prop:i,defaultProp:a,onChange:t=>{t?(h.onOpen(),document.dispatchEvent(new CustomEvent(ep))):h.onClose(),null==l||l(t)}}),T=c((()=>E?w.current?"delayed-open":"instant-open":"closed"),[E]),P=u((()=>{window.clearTimeout(_.current),w.current=!1,S(!0)}),[S]),C=u((()=>{window.clearTimeout(_.current),S(!1)}),[S]),k=u((()=>{window.clearTimeout(_.current),_.current=window.setTimeout((()=>{w.current=!0,S(!0)}),x)}),[x,S]);return r((()=>()=>window.clearTimeout(_.current)),[]),f(Hd,m,f(ip,{scope:e,contentId:y,open:E,stateAttribute:T,trigger:g,onTriggerChange:v,onTriggerEnter:u((()=>{h.isOpenDelayed?k():P()}),[h.isOpenDelayed,k,P]),onTriggerLeave:u((()=>{b?C():window.clearTimeout(_.current)}),[C,b]),onOpen:P,onClose:C,disableHoverableContent:b},o))},bp=lp,xp=t=>{const{__scopeTooltip:e,forceMount:n,children:r,container:o}=t,i=ap(up,e);return f(cp,{scope:e,forceMount:n},f(iu,{present:n||i.open},f(Gd,{asChild:!0,container:o},r)))},wp=fp,Ep=d(((t,e)=>{const{__scopeTooltip:n,...r}=t,o=Jd(n);return gp("TooltipArrow",n).isInside?null:f(qd,xl({},o,r,{ref:e}))}));var Sp="Tooltip-module_control__-HxLB",Tp="Tooltip-module_tooltip__4zqsl",Pp="Tooltip-module_beak__9KHCV";O(".Tooltip-module_control__-HxLB {\n all: unset;\n display: flex;\n background: black;\n color: white;\n border-radius: 1000px;\n height: -moz-fit-content;\n height: fit-content;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n.Tooltip-module_tooltip__4zqsl {\n padding: 1rem;\n padding-right: .5rem;\n background: white;\n max-width: 400px;\n border-radius: 1rem;\n}\n\n.Tooltip-module_beak__9KHCV {\n fill: white;\n}\n\n\n");var Cp={Root:function(t){var n=t.children,r=C(t,["children"]);return e.createElement(yp,null,e.createElement(_p,P({},r),n))},Trigger:function(t){var n=t.className,r=t.children,o=C(t,["className","children"]);return e.createElement(bp,P({className:R(n,Sp)},o),r)},Content:function(t){var n=t.className,r=t.children,o=C(t,["className","children"]);return e.createElement(xp,null,e.createElement(wp,P({className:R(n,Tp)},o),r,e.createElement(Ep,{className:Pp})))}};export{M as Button,nt as Callout,ot as Columns,ft as DatePicker,Fs as Disclosure,js as Form,tt as Icon,Is as Loading,cl as Modal,vl as NumberField,bl as ProgressIndicator,Lu as RadioGroup,Bu as Range,Yu as Select,Ju as TextField,nc as Toast,Cp as Tooltip,L as Typography,ul as useModal};
29
65
  //# sourceMappingURL=index.js.map