@lifesg/react-design-system 1.0.0-alpha.2 → 1.0.0-alpha.21

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 (277) hide show
  1. package/README.md +2 -0
  2. package/accordion/accordion-item.style.d.ts +5 -2
  3. package/accordion/accordion.style.d.ts +1 -1
  4. package/accordion/index.js +165 -172
  5. package/accordion/index.js.map +1 -1
  6. package/alert/alert.style.d.ts +4 -1
  7. package/alert/index.js +107 -119
  8. package/alert/index.js.map +1 -1
  9. package/animations/index.d.ts +1 -0
  10. package/animations/index.js +6 -3
  11. package/animations/index.js.map +1 -1
  12. package/animations/loading-dots-spinner/loading-dots-spinner.d.ts +2 -0
  13. package/animations/loading-dots-spinner/lottie-animation.d.ts +2 -0
  14. package/box-container/box-container.styles.d.ts +8 -1
  15. package/box-container/index.js +69 -74
  16. package/box-container/index.js.map +1 -1
  17. package/breadcrumb/breadcrumb.style.d.ts +4 -4
  18. package/breadcrumb/index.js +102 -106
  19. package/breadcrumb/index.js.map +1 -1
  20. package/breadcrumb/types.d.ts +5 -1
  21. package/button/button.d.ts +2 -2
  22. package/button/index.js +140 -143
  23. package/button/index.js.map +1 -1
  24. package/calendar/calendar-day.d.ts +11 -0
  25. package/calendar/calendar-day.style.d.ts +23 -0
  26. package/calendar/calendar-month.d.ts +12 -0
  27. package/calendar/calendar-month.style.d.ts +12 -0
  28. package/calendar/calendar-year.d.ts +12 -0
  29. package/calendar/calendar-year.style.d.ts +12 -0
  30. package/calendar/calendar.d.ts +4 -0
  31. package/calendar/calendar.style.d.ts +35 -0
  32. package/calendar/index.d.ts +2 -0
  33. package/calendar/index.js +381 -0
  34. package/calendar/index.js.map +1 -0
  35. package/calendar/package.json +7 -0
  36. package/calendar/types.d.ts +15 -0
  37. package/card/card.d.ts +3 -0
  38. package/card/card.style.d.ts +1 -0
  39. package/card/index.d.ts +1 -0
  40. package/card/index.js +132 -0
  41. package/card/index.js.map +1 -0
  42. package/{icon → card}/package.json +1 -1
  43. package/card/types.d.ts +4 -0
  44. package/checkbox/checkbox.d.ts +1 -1
  45. package/checkbox/checkbox.style.d.ts +4 -1
  46. package/checkbox/index.js +11 -21
  47. package/checkbox/index.js.map +1 -1
  48. package/cjs/index.js +2240 -1057
  49. package/cjs/index.js.map +1 -1
  50. package/color/color.d.ts +4 -59
  51. package/color/index.js +1 -1
  52. package/color/index.js.map +1 -1
  53. package/color/types.d.ts +5 -1
  54. package/date-input/date-input.d.ts +1 -1
  55. package/date-input/date-input.style.d.ts +2 -6
  56. package/date-input/index.js +132 -147
  57. package/date-input/index.js.map +1 -1
  58. package/date-input/types.d.ts +14 -16
  59. package/design-token/design-token.d.ts +4 -0
  60. package/design-token/index.d.ts +2 -0
  61. package/design-token/index.js +6 -0
  62. package/design-token/index.js.map +1 -0
  63. package/design-token/package.json +7 -0
  64. package/design-token/types.d.ts +7 -0
  65. package/error-display/error-display-data.d.ts +11 -0
  66. package/error-display/error-display.d.ts +3 -0
  67. package/error-display/error-display.style.d.ts +7 -0
  68. package/error-display/index.d.ts +2 -0
  69. package/error-display/index.js +323 -0
  70. package/error-display/index.js.map +1 -0
  71. package/error-display/package.json +7 -0
  72. package/error-display/types.d.ts +20 -0
  73. package/feedback-rating/feedback-rating-data.d.ts +5 -0
  74. package/feedback-rating/feedback-rating-stars-container-data.d.ts +3 -0
  75. package/feedback-rating/feedback-rating-stars-container.d.ts +3 -0
  76. package/feedback-rating/feedback-rating-stars-container.styles.d.ts +12 -0
  77. package/feedback-rating/feedback-rating.d.ts +3 -0
  78. package/feedback-rating/feedback-rating.styles.d.ts +5 -0
  79. package/feedback-rating/index.d.ts +2 -0
  80. package/feedback-rating/index.js +329 -0
  81. package/feedback-rating/index.js.map +1 -0
  82. package/feedback-rating/package.json +7 -0
  83. package/feedback-rating/types.d.ts +14 -0
  84. package/footer/footer-download-app.d.ts +2 -0
  85. package/footer/footer-download-app.style.d.ts +6 -0
  86. package/footer/footer-helper.d.ts +12 -0
  87. package/footer/footer.d.ts +3 -0
  88. package/footer/footer.style.d.ts +12 -0
  89. package/footer/index.d.ts +2 -0
  90. package/footer/index.js +373 -0
  91. package/footer/index.js.map +1 -0
  92. package/footer/package.json +7 -0
  93. package/footer/types.d.ts +31 -0
  94. package/form/form-custom-field.d.ts +3 -0
  95. package/form/form-input-group.d.ts +1 -1
  96. package/form/form-input.d.ts +1 -1
  97. package/form/form-label-addon.d.ts +1 -2
  98. package/form/form-label.d.ts +1 -1
  99. package/form/form-label.style.d.ts +1 -0
  100. package/form/form-phone-number-input.d.ts +3 -0
  101. package/form/form-textarea.d.ts +1 -1
  102. package/form/form-unit-number-input.d.ts +3 -0
  103. package/form/index.d.ts +9 -6
  104. package/form/index.js +771 -657
  105. package/form/index.js.map +1 -1
  106. package/form/types.d.ts +14 -5
  107. package/icon-button/icon-button.d.ts +1 -1
  108. package/icon-button/icon-button.style.d.ts +6 -1
  109. package/icon-button/index.js +9 -15
  110. package/icon-button/index.js.map +1 -1
  111. package/icon-button/types.d.ts +2 -3
  112. package/index.d.ts +12 -1
  113. package/index.js +2217 -1034
  114. package/index.js.map +1 -1
  115. package/input/index.js +93 -49
  116. package/input/index.js.map +1 -1
  117. package/input/input.d.ts +1 -1
  118. package/input/input.style.d.ts +9 -4
  119. package/input/types.d.ts +2 -0
  120. package/input-group/index.js +435 -343
  121. package/input-group/index.js.map +1 -1
  122. package/input-group/input-group-list-addon.d.ts +1 -1
  123. package/input-group/input-group-list-addon.style.d.ts +13 -2
  124. package/input-group/input-group.d.ts +1 -1
  125. package/input-group/input-group.style.d.ts +4 -8
  126. package/input-group/types.d.ts +11 -10
  127. package/input-select/index.js +286 -244
  128. package/input-select/index.js.map +1 -1
  129. package/input-select/input-select-wrapper.d.ts +1 -1
  130. package/input-select/input-select.d.ts +1 -1
  131. package/input-select/input-select.styles.d.ts +5 -1
  132. package/input-select/types.d.ts +15 -11
  133. package/input-textarea/index.js +132 -121
  134. package/input-textarea/index.js.map +1 -1
  135. package/input-textarea/textarea-counter.d.ts +2 -1
  136. package/input-textarea/textarea.d.ts +2 -2
  137. package/input-textarea/types.d.ts +1 -0
  138. package/layout/container.d.ts +3 -0
  139. package/layout/content.d.ts +3 -0
  140. package/layout/index.d.ts +7 -0
  141. package/layout/index.js +55 -0
  142. package/layout/index.js.map +1 -0
  143. package/layout/package.json +7 -0
  144. package/layout/section.d.ts +3 -0
  145. package/layout/types.d.ts +15 -0
  146. package/link-list/index.js +130 -130
  147. package/link-list/index.js.map +1 -1
  148. package/link-list/link-list.styles.d.ts +12 -2
  149. package/link-list/types.d.ts +1 -1
  150. package/masonry/index.js.map +1 -1
  151. package/masonry/masonry.d.ts +2 -2
  152. package/masthead/index.d.ts +1 -0
  153. package/masthead/index.js +9 -0
  154. package/masthead/index.js.map +1 -0
  155. package/masthead/masthead.d.ts +2 -0
  156. package/masthead/masthead.style.d.ts +1 -0
  157. package/masthead/package.json +7 -0
  158. package/media/index.js +1 -1
  159. package/media/index.js.map +1 -1
  160. package/media/media.d.ts +2 -1
  161. package/modal/index.d.ts +1 -1
  162. package/modal/index.js +30 -43
  163. package/modal/index.js.map +1 -1
  164. package/modal/modal-box.styles.d.ts +5 -2
  165. package/modal/modal.d.ts +1 -1
  166. package/modal/modal.styles.d.ts +1 -0
  167. package/modal/types.d.ts +4 -2
  168. package/navbar/brand.d.ts +10 -0
  169. package/navbar/brand.styles.d.ts +5 -0
  170. package/navbar/drawer.d.ts +3 -0
  171. package/navbar/drawer.styles.d.ts +15 -0
  172. package/navbar/index.d.ts +7 -0
  173. package/navbar/index.js +651 -0
  174. package/navbar/index.js.map +1 -0
  175. package/navbar/navbar-action-buttons.d.ts +10 -0
  176. package/navbar/navbar-action-buttons.styles.d.ts +9 -0
  177. package/navbar/navbar-items.d.ts +11 -0
  178. package/navbar/navbar-items.styles.d.ts +10 -0
  179. package/navbar/navbar.d.ts +3 -0
  180. package/navbar/navbar.styles.d.ts +19 -0
  181. package/navbar/package.json +7 -0
  182. package/navbar/types.d.ts +56 -0
  183. package/notification-banner/index.d.ts +3 -0
  184. package/notification-banner/index.js +266 -0
  185. package/notification-banner/index.js.map +1 -0
  186. package/notification-banner/notification-banner-hoc.d.ts +3 -0
  187. package/notification-banner/notification-banner.d.ts +6 -0
  188. package/notification-banner/notification-banner.styles.d.ts +15 -0
  189. package/notification-banner/package.json +7 -0
  190. package/notification-banner/types.d.ts +22 -0
  191. package/otp-input/index.d.ts +2 -0
  192. package/otp-input/index.js +600 -0
  193. package/otp-input/index.js.map +1 -0
  194. package/otp-input/otp-input.d.ts +3 -0
  195. package/otp-input/otp-input.styles.d.ts +5 -0
  196. package/otp-input/package.json +7 -0
  197. package/otp-input/types.d.ts +22 -0
  198. package/overlay/index.js +1 -1
  199. package/overlay/index.js.map +1 -1
  200. package/overlay/types.d.ts +1 -1
  201. package/package.json +4 -1
  202. package/phone-number-input/data/country-code.d.ts +1 -0
  203. package/phone-number-input/index.d.ts +2 -0
  204. package/phone-number-input/index.js +860 -0
  205. package/phone-number-input/index.js.map +1 -0
  206. package/phone-number-input/package.json +7 -0
  207. package/phone-number-input/phone-number-input-helper.d.ts +5 -0
  208. package/phone-number-input/phone-number-input.d.ts +3 -0
  209. package/phone-number-input/types.d.ts +51 -0
  210. package/popover/index.js +148 -153
  211. package/popover/index.js.map +1 -1
  212. package/popover/popover.styles.d.ts +1 -1
  213. package/popover/types.d.ts +3 -3
  214. package/progress-indicator/index.d.ts +2 -0
  215. package/progress-indicator/index.js +240 -0
  216. package/progress-indicator/index.js.map +1 -0
  217. package/progress-indicator/package.json +7 -0
  218. package/progress-indicator/progress-indicator.d.ts +3 -0
  219. package/progress-indicator/progress-indicator.style.d.ts +19 -0
  220. package/progress-indicator/types.d.ts +9 -0
  221. package/radio-button/index.js +7 -7
  222. package/radio-button/index.js.map +1 -1
  223. package/shared/dropdown-list/dropdown-list.d.ts +1 -1
  224. package/shared/dropdown-list/dropdown-list.styles.d.ts +6 -2
  225. package/shared/dropdown-list/dropdown-search.d.ts +2 -1
  226. package/shared/dropdown-list/dropdown-search.styles.d.ts +9 -1
  227. package/shared/dropdown-list/types.d.ts +22 -12
  228. package/shared/input-wrapper/input-wrapper.d.ts +8 -0
  229. package/smart-app-banner/index.d.ts +2 -0
  230. package/smart-app-banner/index.js +373 -0
  231. package/smart-app-banner/index.js.map +1 -0
  232. package/smart-app-banner/package.json +7 -0
  233. package/smart-app-banner/smart-app-banner.d.ts +3 -0
  234. package/smart-app-banner/smart-app-banner.styles.d.ts +31 -0
  235. package/smart-app-banner/types.d.ts +18 -0
  236. package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
  237. package/text/index.js +62 -65
  238. package/text/index.js.map +1 -1
  239. package/text/text-style.d.ts +4 -100
  240. package/text-list/index.js +7 -7
  241. package/text-list/index.js.map +1 -1
  242. package/theme/design-token-helper.d.ts +2 -0
  243. package/theme/index.js +1 -1
  244. package/theme/index.js.map +1 -1
  245. package/theme/types.d.ts +12 -3
  246. package/timeline/index.js +95 -98
  247. package/timeline/index.js.map +1 -1
  248. package/timepicker/index.js +213 -207
  249. package/timepicker/index.js.map +1 -1
  250. package/timepicker/timepicker-dropdown.styles.d.ts +2 -2
  251. package/timepicker/types.d.ts +3 -3
  252. package/toggle-button/index.js +118 -121
  253. package/toggle-button/index.js.map +1 -1
  254. package/tooltip/index.js +127 -125
  255. package/tooltip/index.js.map +1 -1
  256. package/tooltip/tooltip.styles.d.ts +3 -1
  257. package/unit-number/index.d.ts +2 -0
  258. package/unit-number/index.js +357 -0
  259. package/unit-number/index.js.map +1 -0
  260. package/unit-number/package.json +7 -0
  261. package/unit-number/types.d.ts +27 -0
  262. package/unit-number/unit-number-input.d.ts +3 -0
  263. package/unit-number/unit-number-input.style.d.ts +11 -0
  264. package/util/calendar-helper.d.ts +10 -0
  265. package/util/date-helper.d.ts +19 -0
  266. package/util/index.d.ts +3 -0
  267. package/util/utility-types.d.ts +3 -0
  268. package/icon/arrow-right-icon.d.ts +0 -3
  269. package/icon/icon.d.ts +0 -3
  270. package/icon/index.d.ts +0 -2
  271. package/icon/index.js +0 -12
  272. package/icon/index.js.map +0 -1
  273. package/icon/info-icon.d.ts +0 -3
  274. package/icon/play-alt-icon.d.ts +0 -3
  275. package/icon/search-icon.d.ts +0 -3
  276. package/icon/shared.style.d.ts +0 -1
  277. package/icon/types.d.ts +0 -9
@@ -1,120 +1,110 @@
1
- import{jsx as t,jsxs as e}from"react/jsx-runtime";import*as n from"react";import r,{cloneElement as i,useRef as o,useState as a,isValidElement as s,createRef as l,PureComponent as c,useEffect as u,useLayoutEffect as d,forwardRef as h,useCallback as p,useContext as f,useMemo as g}from"react";import{findDOMNode as m,unstable_batchedUpdates as y}from"react-dom";import v,{css as b}from"styled-components";var w={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},_=r.createContext&&r.createContext(w),S=function(){return S=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},S.apply(this,arguments)},F=function(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 i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function O(t){return t&&t.map((function(t,e){return r.createElement(t.tag,S({key:e},t.attr),O(t.child))}))}function x(t){return function(e){return r.createElement($,S({attr:S({},t.attr)},e),O(t.child))}}function $(t){var e=function(e){var n,i=t.attr,o=t.size,a=t.title,s=F(t,["attr","size","title"]),l=o||e.size||"1em";return e.className&&(n=e.className),t.className&&(n=(n?n+" ":"")+t.className),r.createElement("svg",S({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,i,s,{className:n,style:S(S({color:t.color||e.color},e.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&r.createElement("title",null,a),t.children)};return void 0!==_?r.createElement(_.Consumer,null,(function(t){return e(t)})):e(w)}function k(t){return x({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.6 48 48 141.601 48 256s93.6 208 208 208 208-93.601 208-208S370.4 48 256 48zm24 312h-48v-40h48v40zm0-88h-48V144h48v128z"}}]})(t)}var P=function(t,e){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},P(t,e)};var z=function(){return z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},z.apply(this,arguments)};var B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var H=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},C="object"==typeof B&&B&&B.Object===Object&&B,A="object"==typeof self&&self&&self.Object===Object&&self,E=C||A||Function("return this")(),D=E,j=function(){return D.Date.now()},I=/\s/;var M=function(t){for(var e=t.length;e--&&I.test(t.charAt(e)););return e},R=/^\s+/;var V=function(t){return t?t.slice(0,M(t)+1).replace(R,""):t},T=E.Symbol,N=T,W=Object.prototype,q=W.hasOwnProperty,L=W.toString,Q=N?N.toStringTag:void 0;var U=function(t){var e=q.call(t,Q),n=t[Q];try{t[Q]=void 0;var r=!0}catch(t){}var i=L.call(t);return r&&(e?t[Q]=n:delete t[Q]),i},G=Object.prototype.toString;var X=U,Z=function(t){return G.call(t)},J=T?T.toStringTag:void 0;var Y=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":J&&J in Object(t)?X(t):Z(t)},K=function(t){return null!=t&&"object"==typeof t};var tt=V,et=H,nt=function(t){return"symbol"==typeof t||K(t)&&"[object Symbol]"==Y(t)},rt=/^[-+]0x[0-9a-f]+$/i,it=/^0b[01]+$/i,ot=/^0o[0-7]+$/i,at=parseInt;var st=H,lt=j,ct=function(t){if("number"==typeof t)return t;if(nt(t))return NaN;if(et(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=et(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=tt(t);var n=it.test(t);return n||ot.test(t)?at(t.slice(2),n?2:8):rt.test(t)?NaN:+t},ut=Math.max,dt=Math.min;var ht=function(t,e,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=r,o=i;return r=i=void 0,c=e,a=t.apply(o,n)}function f(t){return c=t,s=setTimeout(m,e),u?p(t):a}function g(t){var n=t-l;return void 0===l||n>=e||n<0||d&&t-c>=o}function m(){var t=lt();if(g(t))return y(t);s=setTimeout(m,function(t){var n=e-(t-l);return d?dt(n,o-(t-c)):n}(t))}function y(t){return s=void 0,h&&r?p(t):(r=i=void 0,a)}function v(){var t=lt(),n=g(t);if(r=arguments,i=this,l=t,n){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(m,e),p(l)}return void 0===s&&(s=setTimeout(m,e)),a}return e=ct(e)||0,st(n)&&(u=!!n.leading,o=(d="maxWait"in n)?ut(ct(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:y(lt())},v},pt=ht,ft=H;var gt=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return ft(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),pt(t,e,{leading:r,maxWait:e,trailing:i})},mt=function(t,e,n,r){switch(e){case"debounce":return ht(t,n,r);case"throttle":return gt(t,n,r);default:return t}},yt=function(t){return"function"==typeof t},vt=function(){return"undefined"==typeof window},bt=function(t){return t instanceof Element||t instanceof HTMLDocument},wt=function(t,e,n,r){return function(i){var o=i.width,a=i.height;e((function(e){return e.width===o&&e.height===a||e.width===o&&!r||e.height===a&&!n?e:(t&&yt(t)&&t(o,a),{width:o,height:a})}))}};!function(t){function e(e){var n=t.call(this,e)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var t=n.props,e=t.targetRef,r=t.observerOptions;if(!vt()){e&&e.current&&(n.targetRef.current=e.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var t=n.props,e=t.querySelector,r=t.targetDomEl;if(vt())return null;if(e)return document.querySelector(e);if(r&&bt(r))return r;if(n.targetRef&&bt(n.targetRef.current))return n.targetRef.current;var i=m(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(t){var e=n.props,r=e.handleWidth,i=void 0===r||r,o=e.handleHeight,a=void 0===o||o,s=e.onResize;if(i||a){var l=wt(s,n.setState.bind(n),i,a);t.forEach((function(t){var e=t&&t.contentRect||{},r=e.width,i=e.height;!n.skipOnMount&&!vt()&&l({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var t=n.props,e=t.render,r=t.children;return yt(e)?"renderProp":yt(r)?"childFunction":s(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=e.skipOnMount,i=e.refreshMode,o=e.refreshRate,a=void 0===o?1e3:o,c=e.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=l(),n.observableElement=null,vt()||(n.resizeHandler=mt(n.createResizeHandler,i,a,c),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}P(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(e,t),e.prototype.componentDidMount=function(){this.attachObserver()},e.prototype.componentDidUpdate=function(){this.attachObserver()},e.prototype.componentWillUnmount=function(){vt()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var t,e=this.props,r=e.render,o=e.children,a=e.nodeType,s=void 0===a?"div":a,l=this.state,c={width:l.width,height:l.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(c);case"childFunction":return(t=o)(c);case"child":if((t=o).type&&"string"==typeof t.type){var u=function(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 i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(c,["targetRef"]);return i(t,u)}return i(t,c);case"childArray":return(t=o).map((function(t){return!!t&&i(t,c)}));default:return n.createElement(s,null)}}}(c);var _t=vt()?u:d;let St=Mt();const Ft=t=>Et(t,St);let Ot=Mt();Ft.write=t=>Et(t,Ot);let xt=Mt();Ft.onStart=t=>Et(t,xt);let $t=Mt();Ft.onFrame=t=>Et(t,$t);let kt=Mt();Ft.onFinish=t=>Et(t,kt);let Pt=[];Ft.setTimeout=(t,e)=>{let n=Ft.now()+e,r=()=>{let t=Pt.findIndex((t=>t.cancel==r));~t&&Pt.splice(t,1),Ct-=~t?1:0},i={time:n,handler:t,cancel:r};return Pt.splice(zt(n),0,i),Ct+=1,Dt(),i};let zt=t=>~(~Pt.findIndex((e=>e.time>t))||~Pt.length);Ft.cancel=t=>{xt.delete(t),$t.delete(t),St.delete(t),Ot.delete(t),kt.delete(t)},Ft.sync=t=>{At=!0,Ft.batchedUpdates(t),At=!1},Ft.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...t){e=t,Ft.onStart(n)}return r.handler=t,r.cancel=()=>{xt.delete(n),e=null},r};let Bt="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Ft.use=t=>Bt=t,Ft.now="undefined"!=typeof performance?()=>performance.now():Date.now,Ft.batchedUpdates=t=>t(),Ft.catch=console.error,Ft.frameLoop="always",Ft.advance=()=>{"demand"!==Ft.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):It()};let Ht=-1,Ct=0,At=!1;function Et(t,e){At?(e.delete(t),t(0)):(e.add(t),Dt())}function Dt(){Ht<0&&(Ht=0,"demand"!==Ft.frameLoop&&Bt(jt))}function jt(){~Ht&&(Bt(jt),Ft.batchedUpdates(It))}function It(){let t=Ht;Ht=Ft.now();let e=zt(Ht);e&&(Rt(Pt.splice(0,e),(t=>t.handler())),Ct-=e),xt.flush(),St.flush(t?Math.min(64,Ht-t):16.667),$t.flush(),Ot.flush(),kt.flush(),Ct||(Ht=-1)}function Mt(){let t=new Set,e=t;return{add(n){Ct+=e!=t||t.has(n)?0:1,t.add(n)},delete:n=>(Ct-=e==t&&t.has(n)?1:0,t.delete(n)),flush(n){e.size&&(t=new Set,Ct-=e.size,Rt(e,(e=>e(n)&&t.add(e))),Ct+=t.size,e=t)}}}function Rt(t,e){t.forEach((t=>{try{e(t)}catch(t){Ft.catch(t)}}))}function Vt(){}const Tt={arr:Array.isArray,obj:t=>!!t&&"Object"===t.constructor.name,fun:t=>"function"==typeof t,str:t=>"string"==typeof t,num:t=>"number"==typeof t,und:t=>void 0===t};function Nt(t,e){if(Tt.arr(t)){if(!Tt.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}const Wt=(t,e)=>t.forEach(e);function qt(t,e,n){if(Tt.arr(t))for(let r=0;r<t.length;r++)e.call(n,t[r],`${r}`);else for(const r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r)}const Lt=t=>Tt.und(t)?[]:Tt.arr(t)?t:[t];function Qt(t,e){if(t.size){const n=Array.from(t);t.clear(),Wt(n,e)}}const Ut=(t,...e)=>Qt(t,(t=>t(...e))),Gt=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Xt,Zt,Jt=null,Yt=!1,Kt=Vt;var te=Object.freeze({__proto__:null,get createStringInterpolator(){return Xt},get to(){return Zt},get colors(){return Jt},get skipAnimation(){return Yt},get willAdvance(){return Kt},assign:t=>{t.to&&(Zt=t.to),t.now&&(Ft.now=t.now),void 0!==t.colors&&(Jt=t.colors),null!=t.skipAnimation&&(Yt=t.skipAnimation),t.createStringInterpolator&&(Xt=t.createStringInterpolator),t.requestAnimationFrame&&Ft.use(t.requestAnimationFrame),t.batchedUpdates&&(Ft.batchedUpdates=t.batchedUpdates),t.willAdvance&&(Kt=t.willAdvance),t.frameLoop&&(Ft.frameLoop=t.frameLoop)}});const ee=new Set;let ne=[],re=[],ie=0;const oe={get idle(){return!ee.size&&!ne.length},start(t){ie>t.priority?(ee.add(t),Ft.onStart(ae)):(se(t),Ft(ce))},advance:ce,sort(t){if(ie)Ft.onFrame((()=>oe.sort(t)));else{const e=ne.indexOf(t);~e&&(ne.splice(e,1),le(t))}},clear(){ne=[],ee.clear()}};function ae(){ee.forEach(se),ee.clear(),Ft(ce)}function se(t){ne.includes(t)||le(t)}function le(t){ne.splice(function(t,e){const n=t.findIndex(e);return n<0?t.length:n}(ne,(e=>e.priority>t.priority)),0,t)}function ce(t){const e=re;for(let n=0;n<ne.length;n++){const r=ne[n];ie=r.priority,r.idle||(Kt(r),r.advance(t),r.idle||e.push(r))}return ie=0,re=ne,re.length=0,ne=e,ne.length>0}const ue="[-+]?\\d*\\.?\\d+";function de(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const he=new RegExp("rgb"+de(ue,ue,ue)),pe=new RegExp("rgba"+de(ue,ue,ue,ue)),fe=new RegExp("hsl"+de(ue,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),ge=new RegExp("hsla"+de(ue,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",ue)),me=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ye=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ve=/^#([0-9a-fA-F]{6})$/,be=/^#([0-9a-fA-F]{8})$/;function we(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}function _e(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,o=we(i,r,t+1/3),a=we(i,r,t),s=we(i,r,t-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Se(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function Fe(t){return(parseFloat(t)%360+360)%360/360}function Oe(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(255*e)}function xe(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function $e(t){let e=function(t){let e;return"number"==typeof t?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=ve.exec(t))?parseInt(e[1]+"ff",16)>>>0:Jt&&void 0!==Jt[t]?Jt[t]:(e=he.exec(t))?(Se(e[1])<<24|Se(e[2])<<16|Se(e[3])<<8|255)>>>0:(e=pe.exec(t))?(Se(e[1])<<24|Se(e[2])<<16|Se(e[3])<<8|Oe(e[4]))>>>0:(e=me.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=be.exec(t))?parseInt(e[1],16)>>>0:(e=ye.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=fe.exec(t))?(255|_e(Fe(e[1]),xe(e[2]),xe(e[3])))>>>0:(e=ge.exec(t))?(_e(Fe(e[1]),xe(e[2]),xe(e[3]))|Oe(e[4]))>>>0:null}(t);return null===e?t:(e=e||0,`rgba(${(4278190080&e)>>>24}, ${(16711680&e)>>>16}, ${(65280&e)>>>8}, ${(255&e)/255})`)}const ke=(t,e,n)=>{if(Tt.fun(t))return t;if(Tt.arr(t))return ke({range:t,output:e,extrapolate:n});if(Tt.str(t.output[0]))return Xt(t);const r=t,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(t=>t);return t=>{const e=function(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}(t,o);return function(t,e,n,r,i,o,a,s,l){let c=l?l(t):t;if(c<e){if("identity"===a)return c;"clamp"===a&&(c=e)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===i)return r;if(e===n)return t<=e?r:i;e===-1/0?c=-c:n===1/0?c-=e:c=(c-e)/(n-e);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(t,o[e],o[e+1],i[e],i[e+1],l,a,s,r.map)}};function Pe(){return Pe=Object.assign||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},Pe.apply(this,arguments)}const ze=Symbol.for("FluidValue.get"),Be=Symbol.for("FluidValue.observers"),He=t=>Boolean(t&&t[ze]),Ce=t=>t&&t[ze]?t[ze]():t,Ae=t=>t[Be]||null;function Ee(t,e){let n=t[Be];n&&n.forEach((t=>{!function(t,e){t.eventObserved?t.eventObserved(e):t(e)}(t,e)}))}class De{constructor(t){if(this[ze]=void 0,this[Be]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");je(this,t)}}const je=(t,e)=>Re(t,ze,e);function Ie(t,e){if(t[ze]){let n=t[Be];n||Re(t,Be,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function Me(t,e){let n=t[Be];if(n&&n.has(e)){const r=n.size-1;r?n.delete(e):t[Be]=null,t.observerRemoved&&t.observerRemoved(r,e)}}const Re=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Ve=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Te=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ne=new RegExp(`(${Ve.source})(%|[a-z]+)`,"i"),We=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,qe=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Le=t=>{const[e,n]=Qe(t);if(!e||Gt())return t;const r=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(r)return r.trim();if(n&&n.startsWith("--")){const e=window.getComputedStyle(document.documentElement).getPropertyValue(n);return e||t}return n&&qe.test(n)?Le(n):n||t},Qe=t=>{const e=qe.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]};let Ue;const Ge=(t,e,n,r,i)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Xe=t=>{Ue||(Ue=Jt?new RegExp(`(${Object.keys(Jt).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map((t=>Ce(t).replace(qe,Le).replace(Te,$e).replace(Ue,$e))),n=e.map((t=>t.match(Ve).map(Number))),r=n[0].map(((t,e)=>n.map((t=>{if(!(e in t))throw Error('The arity of each "output" value must be equal');return t[e]})))).map((e=>ke(Pe({},t,{output:e}))));return t=>{var n;const i=!Ne.test(e[0])&&(null==(n=e.find((t=>Ne.test(t))))?void 0:n.replace(Ve,""));let o=0;return e[0].replace(Ve,(()=>`${r[o++](t)}${i||""}`)).replace(We,Ge)}},Ze="react-spring: ",Je=t=>{const e=t;let n=!1;if("function"!=typeof e)throw new TypeError(`${Ze}once requires a function parameter`);return(...t)=>{n||(e(...t),n=!0)}},Ye=Je(console.warn);const Ke=Je(console.warn);function tn(t){return Tt.str(t)&&("#"==t[0]||/\d/.test(t)||!Gt()&&qe.test(t)||t in(Jt||{}))}const en="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect;function nn(){const t=a()[1],e=(()=>{const t=o(!1);return en((()=>(t.current=!0,()=>{t.current=!1})),[]),t})();return()=>{e.current&&t(Math.random())}}const rn=t=>u(t,on),on=[];function an(t){const e=o();return u((()=>{e.current=t})),e.current}const sn=Symbol.for("Animated:node"),ln=t=>t&&t[sn],cn=(t,e)=>{return n=t,r=sn,i=e,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},un=t=>t&&t[sn]&&t[sn].getPayload();class dn{constructor(){this.payload=void 0,cn(this,this)}getPayload(){return this.payload||[]}}class hn extends dn{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,Tt.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new hn(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return Tt.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value!==t&&(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,Tt.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class pn extends hn{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=ke({output:[t,t]})}static create(t){return new pn(t)}getValue(){let t=this._string;return null==t?this._string=this._toString(this._value):t}setValue(t){if(Tt.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else{if(!super.setValue(t))return!1;this._string=null}return!0}reset(t){t&&(this._toString=ke({output:[this.getValue(),t]})),this._value=0,super.reset()}}const fn={dependencies:null};class gn extends dn{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const e={};return qt(this.source,((n,r)=>{var i;(i=n)&&i[sn]===i?e[r]=n.getValue(t):He(n)?e[r]=Ce(n):t||(e[r]=n)})),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&Wt(this.payload,(t=>t.reset()))}_makePayload(t){if(t){const e=new Set;return qt(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){fn.dependencies&&He(t)&&fn.dependencies.add(t);const e=un(t);e&&Wt(e,(t=>this.add(t)))}}class mn extends gn{constructor(t){super(t)}static create(t){return new mn(t)}getValue(){return this.source.map((t=>t.getValue()))}setValue(t){const e=this.getPayload();return t.length==e.length?e.map(((e,n)=>e.setValue(t[n]))).some(Boolean):(super.setValue(t.map(yn)),!0)}}function yn(t){return(tn(t)?pn:hn).create(t)}function vn(t){const e=ln(t);return e?e.constructor:Tt.arr(t)?mn:tn(t)?pn:hn}function bn(){return bn=Object.assign||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},bn.apply(this,arguments)}const wn=(t,e)=>{const r=!Tt.fun(t)||t.prototype&&t.prototype.isReactComponent;return h(((i,a)=>{const s=o(null),l=r&&p((t=>{s.current=function(t,e){t&&(Tt.fun(t)?t(e):t.current=e);return e}(a,t)}),[a]),[c,d]=function(t,e){const n=new Set;fn.dependencies=n,t.style&&(t=bn({},t,{style:e.createAnimatedStyle(t.style)}));return t=new gn(t),fn.dependencies=null,[t,n]}(i,e),h=nn(),f=()=>{const t=s.current;if(r&&!t)return;!1===(!!t&&e.applyAnimatedValues(t,c.getValue(!0)))&&h()},g=new _n(f,d),m=o();en((()=>(m.current=g,Wt(d,(t=>Ie(t,g))),()=>{m.current&&(Wt(m.current.deps,(t=>Me(t,m.current))),Ft.cancel(m.current.update))}))),u(f,[]),rn((()=>()=>{const t=m.current;Wt(t.deps,(e=>Me(e,t)))}));const y=e.getComponentProps(c.getValue());return n.createElement(t,bn({},y,{ref:l}))}))};class _n{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){"change"==t.type&&Ft.write(this.update)}}const Sn=Symbol.for("AnimatedComponent"),Fn=t=>Tt.str(t)?t:t&&Tt.str(t.displayName)?t.displayName:Tt.fun(t)&&t.name||null;function On(){return On=Object.assign||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},On.apply(this,arguments)}function xn(t,...e){return Tt.fun(t)?t(...e):t}const $n=(t,e)=>!0===t||!!(e&&t&&(Tt.fun(t)?t(e):Lt(t).includes(e))),kn=(t,e)=>Tt.obj(t)?e&&t[e]:t,Pn=(t,e)=>!0===t.default?t[e]:t.default?t.default[e]:void 0,zn=t=>t,Bn=(t,e=zn)=>{let n=Hn;t.default&&!0!==t.default&&(t=t.default,n=Object.keys(t));const r={};for(const i of n){const n=e(t[i],i);Tt.und(n)||(r[i]=n)}return r},Hn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Cn={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function An(t){const e=function(t){const e={};let n=0;if(qt(t,((t,r)=>{Cn[r]||(e[r]=t,n++)})),n)return e}(t);if(e){const n={to:e};return qt(t,((t,r)=>r in e||(n[r]=t))),n}return On({},t)}function En(t){return t=Ce(t),Tt.arr(t)?t.map(En):tn(t)?te.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function Dn(t){for(const e in t)return!0;return!1}function jn(t){return Tt.fun(t)||Tt.arr(t)&&Tt.obj(t[0])}function In(t,e){var n;null==(n=t.ref)||n.delete(t),null==e||e.delete(t)}function Mn(t,e){var n;e&&t.ref!==e&&(null==(n=t.ref)||n.delete(t),e.add(t),t.ref=e)}const Rn=1.70158,Vn=1.525*Rn,Tn=2*Math.PI/3,Nn=2*Math.PI/4.5,Wn=t=>{const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},qn=On({},{tension:170,friction:26},{mass:1,damping:1,easing:{linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>0===t?0:Math.pow(2,10*t-10),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>0===t?0:1===t?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>2.70158*t*t*t-Rn*t*t,easeOutBack:t=>1+2.70158*Math.pow(t-1,3)+Rn*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*(7.189819*t-Vn)/2:(Math.pow(2*t-2,2)*((Vn+1)*(2*t-2)+Vn)+2)/2,easeInElastic:t=>0===t?0:1===t?1:-Math.pow(2,10*t-10)*Math.sin((10*t-10.75)*Tn),easeOutElastic:t=>0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin((10*t-.75)*Tn)+1,easeInOutElastic:t=>0===t?0:1===t?1:t<.5?-Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*Nn)/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*Nn)/2+1,easeInBounce:t=>1-Wn(1-t),easeOutBounce:Wn,easeInOutBounce:t=>t<.5?(1-Wn(1-2*t))/2:(1+Wn(2*t-1))/2}.linear,clamp:!1});class Ln{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,qn)}}function Qn(t,e){if(Tt.und(e.decay)){const n=!Tt.und(e.tension)||!Tt.und(e.friction);!n&&Tt.und(e.frequency)&&Tt.und(e.damping)&&Tt.und(e.mass)||(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}else t.duration=void 0}const Un=[];class Gn{constructor(){this.changed=!1,this.values=Un,this.toValues=null,this.fromValues=Un,this.to=void 0,this.from=void 0,this.config=new Ln,this.immediate=!1}}function Xn(t,{key:e,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=$n(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,e);if(d)f();else{Tt.und(n.pause)||(i.paused=$n(n.pause,e));let t=null==r?void 0:r.pause;!0!==t&&(t=i.paused||$n(t,e)),c=xn(n.delay||0,e),t?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(u),u.cancel(),c=u.time-Ft.now()}function p(){c>0&&!te.skipAnimation?(i.delayed=!0,u=Ft.setTimeout(f,c),i.pauseQueue.add(h),i.timeouts.add(u)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(u),t<=(i.cancelId||0)&&(d=!0);try{o.start(On({},n,{callId:t,cancel:d}),a)}catch(t){s(t)}}}))}const Zn=(t,e)=>1==e.length?e[0]:e.some((t=>t.cancelled))?Kn(t.get()):e.every((t=>t.noop))?Jn(t.get()):Yn(t.get(),e.every((t=>t.finished))),Jn=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),Yn=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),Kn=t=>({value:t,cancelled:!0,finished:!1});function tr(t,e,n,r){const{callId:i,parentId:o,onRest:a}=e,{asyncTo:s,promise:l}=n;return o||t!==s||e.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=t;const c=Bn(e,((t,e)=>"onRest"===e?void 0:t));let u,d;const h=new Promise(((t,e)=>(u=t,d=e))),p=t=>{const e=i<=(n.cancelId||0)&&Kn(r)||i!==n.asyncId&&Yn(r,!1);if(e)throw t.result=e,d(t),t},f=(t,e)=>{const o=new nr,a=new rr;return(async()=>{if(te.skipAnimation)throw er(n),a.result=Yn(r,!1),d(a),a;p(o);const s=Tt.obj(t)?On({},t):On({},e,{to:t});s.parentId=i,qt(c,((t,e)=>{Tt.und(s[e])&&(s[e]=t)}));const l=await r.start(s);return p(o),n.paused&&await new Promise((t=>{n.resumeQueue.add(t)})),l})()};let g;if(te.skipAnimation)return er(n),Yn(r,!1);try{let e;e=Tt.arr(t)?(async t=>{for(const e of t)await f(e)})(t):Promise.resolve(t(f,r.stop.bind(r))),await Promise.all([e.then(u),h]),g=Yn(r.get(),!0,!1)}catch(t){if(t instanceof nr)g=t.result;else{if(!(t instanceof rr))throw t;g=t.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return Tt.fun(a)&&Ft.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function er(t,e){Qt(t.timeouts,(t=>t.cancel())),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class nr extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class rr extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const ir=t=>t instanceof ar;let or=1;class ar extends De{constructor(...t){super(...t),this.id=or++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=ln(this);return t&&t.getValue()}to(...t){return te.to(this,t)}interpolate(...t){return Ye(`${Ze}The "interpolate" function is deprecated in v9 (use "to" instead)`),te.to(this,t)}toJSON(){return this.get()}observerAdded(t){1==t&&this._attach()}observerRemoved(t){0==t&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){Ee(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||oe.sort(this),Ee(this,{type:"priority",parent:this,priority:t})}}const sr=Symbol.for("SpringPhase"),lr=t=>(1&t[sr])>0,cr=t=>(2&t[sr])>0,ur=t=>(4&t[sr])>0,dr=(t,e)=>e?t[sr]|=3:t[sr]&=-3,hr=(t,e)=>e?t[sr]|=4:t[sr]&=-5;class pr extends ar{constructor(t,e){if(super(),this.key=void 0,this.animation=new Gn,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Tt.und(t)||!Tt.und(e)){const n=Tt.obj(t)?On({},t):On({},e,{from:t});Tt.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(cr(this)||this._state.asyncTo)||ur(this)}get goal(){return Ce(this.animation.to)}get velocity(){const t=ln(this);return t instanceof hn?t.lastVelocity||0:t.getPayload().map((t=>t.lastVelocity||0))}get hasAnimated(){return lr(this)}get isAnimating(){return cr(this)}get isPaused(){return ur(this)}get isDelayed(){return this._state.delayed}advance(t){let e=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=un(r.to);!a&&He(r.to)&&(o=Lt(Ce(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==pn?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let e=s.elapsedTime+=t;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=Tt.arr(i.velocity)?i.velocity[l]:i.velocity;let a;if(Tt.und(i.duration))if(i.decay){const t=!0===i.decay?.998:i.decay,r=Math.exp(-(1-t)*e);d=n+o/(1-t)*(1-r),u=Math.abs(s.lastPosition-d)<.1,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const e=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n))),r=i.restVelocity||e/10,l=i.clamp?0:i.bounce,h=!Tt.und(l),p=n==c?s.v0>0:n<c;let f,g=!1;const m=1,y=Math.ceil(t/m);for(let t=0;t<y&&(f=Math.abs(a)>r,f||(u=Math.abs(c-d)<=e,!u));++t){h&&(g=d==c||d>c==p,g&&(a=-a*l,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,e=s.elapsedTime+=t)),r=(i.progress||0)+e/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/t,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:e=!1,s.setValue(d,i.round)&&(n=!0)}));const s=ln(this),l=s.getValue();if(e){const t=Ce(r.to);l===t&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(t),this._onChange(t)),this._stop()}else n&&this._onChange(l)}set(t){return Ft.batchedUpdates((()=>{this._stop(),this._focus(t),this._set(t)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(cr(this)){const{to:t,config:e}=this.animation;Ft.batchedUpdates((()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()}))}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let n;return Tt.und(t)?(n=this.queue||[],this.queue=[]):n=[Tt.obj(t)?t:On({},e,{to:t})],Promise.all(n.map((t=>this._update(t)))).then((t=>Zn(this,t)))}stop(t){const{to:e}=this.animation;return this._focus(this.get()),er(this._state,t&&this._lastCallId),Ft.batchedUpdates((()=>this._stop(e,t))),this}reset(){this._update({reset:!0})}eventObserved(t){"change"==t.type?this._start():"priority"==t.type&&(this.priority=t.priority+1)}_prepareNode(t){const e=this.key||"";let{to:n,from:r}=t;n=Tt.obj(n)?n[e]:n,(null==n||jn(n))&&(n=void 0),r=Tt.obj(r)?r[e]:r,null==r&&(r=void 0);const i={to:n,from:r};return lr(this)||(t.reverse&&([n,r]=[r,n]),r=Ce(r),Tt.und(r)?ln(this)||this._set(n):this._set(r)),i}_update(t,e){let n=On({},t);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,Bn(n,((t,e)=>/^on/.test(e)?kn(t,r):t))),wr(this,n,"onProps"),_r(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Xn(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{ur(this)||(hr(this,!0),Ut(a.pauseQueue),_r(this,"onPause",Yn(this,fr(this,this.animation.to)),this))},resume:()=>{ur(this)&&(hr(this,!1),cr(this)&&this._resume(),Ut(a.resumeQueue),_r(this,"onResume",Yn(this,fr(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((t=>{if(n.loop&&t.finished&&(!e||!t.noop)){const t=gr(n);if(t)return this._update(t,!0)}return t}))}_merge(t,e,n){if(e.cancel)return this.stop(!0),n(Kn(this));const r=!Tt.und(t.to),i=!Tt.und(t.from);if(r||i){if(!(e.callId>this._lastToId))return n(Kn(this));this._lastToId=e.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=t;!i||r||e.default&&!Tt.und(u)||(u=d),e.reverse&&([u,d]=[d,u]);const h=!Nt(d,c);h&&(s.from=d),d=Ce(d);const p=!Nt(u,l);p&&this._focus(u);const f=jn(e.to),{config:g}=s,{decay:m,velocity:y}=g;(r||i)&&(g.velocity=0),e.config&&!f&&function(t,e,n){n&&(Qn(n=On({},n),e),e=On({},n,e)),Qn(t,e),Object.assign(t,e);for(const e in qn)null==t[e]&&(t[e]=qn[e]);let{mass:r,frequency:i,damping:o}=t;Tt.und(i)||(i<.01&&(i=.01),o<0&&(o=0),t.tension=Math.pow(2*Math.PI/i,2)*r,t.friction=4*Math.PI*o*r/i)}(g,xn(e.config,o),e.config!==a.config?xn(a.config,o):void 0);let v=ln(this);if(!v||Tt.und(u))return n(Yn(this,!0));const b=Tt.und(e.reset)?i&&!e.default:!Tt.und(d)&&$n(e.reset,o),w=b?d:this.get(),_=En(u),S=Tt.num(_)||Tt.arr(_)||tn(_),F=!f&&(!S||$n(a.immediate||e.immediate,o));if(p){const t=vn(u);if(t!==v.constructor){if(!F)throw Error(`Cannot animate between ${v.constructor.name} and ${t.name}, as the "to" prop suggests`);v=this._set(_)}}const O=v.constructor;let x=He(u),$=!1;if(!x){const t=b||!lr(this)&&h;(p||t)&&($=Nt(En(w),_),x=!$),(Nt(s.immediate,F)||F)&&Nt(g.decay,m)&&Nt(g.velocity,y)||(x=!0)}if($&&cr(this)&&(s.changed&&!b?x=!0:x||this._stop(l)),!f&&((x||He(l))&&(s.values=v.getPayload(),s.toValues=He(u)?null:O==pn?[1]:Lt(_)),s.immediate!=F&&(s.immediate=F,F||b||this._set(l)),x)){const{onRest:t}=s;Wt(br,(t=>wr(this,e,t)));const r=Yn(this,fr(this,l));Ut(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&Ft.batchedUpdates((()=>{s.changed=!b,null==t||t(r,this),b?xn(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}b&&this._set(w),f?n(tr(e.to,e,this._state,this)):x?this._start():cr(this)&&!p?this._pendingCalls.add(n):n(Jn(w))}_focus(t){const e=this.animation;t!==e.to&&(Ae(this)&&this._detach(),e.to=t,Ae(this)&&this._attach())}_attach(){let t=0;const{to:e}=this.animation;He(e)&&(Ie(e,this),ir(e)&&(t=e.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;He(t)&&Me(t,this)}_set(t,e=!0){const n=Ce(t);if(!Tt.und(n)){const t=ln(this);if(!t||!Nt(n,t.getValue())){const r=vn(n);t&&t.constructor==r?t.setValue(n):cn(this,r.create(n)),t&&Ft.batchedUpdates((()=>{this._onChange(n,e)}))}}return ln(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,_r(this,"onStart",Yn(this,fr(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),xn(this.animation.onChange,t,this)),xn(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){const t=this.animation;ln(this).reset(Ce(t.to)),t.immediate||(t.fromValues=t.values.map((t=>t.lastPosition))),cr(this)||(dr(this,!0),ur(this)||this._resume())}_resume(){te.skipAnimation?this.finish():oe.start(this)}_stop(t,e){if(cr(this)){dr(this,!1);const n=this.animation;Wt(n.values,(t=>{t.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ee(this,{type:"idle",parent:this});const r=e?Kn(this.get()):Yn(this.get(),fr(this,null!=t?t:n.to));Ut(this._pendingCalls,r),n.changed&&(n.changed=!1,_r(this,"onRest",r,this))}}}function fr(t,e){const n=En(e);return Nt(En(t.get()),n)}function gr(t,e=t.loop,n=t.to){let r=xn(e);if(r){const i=!0!==r&&An(r),o=(i||t).reverse,a=!i||i.reset;return mr(On({},t,{loop:e,default:!1,pause:void 0,to:!o||jn(n)?n:void 0,from:a?t.from:void 0,reset:a},i))}}function mr(t){const{to:e,from:n}=t=An(t),r=new Set;return Tt.obj(e)&&vr(e,r),Tt.obj(n)&&vr(n,r),t.keys=r.size?Array.from(r):null,t}function yr(t){const e=mr(t);return Tt.und(e.default)&&(e.default=Bn(e)),e}function vr(t,e){qt(t,((t,n)=>null!=t&&e.add(n)))}const br=["onStart","onRest","onChange","onPause","onResume"];function wr(t,e,n){t.animation[n]=e[n]!==Pn(e,n)?kn(e[n],t.key):void 0}function _r(t,e,...n){var r,i,o,a;null==(r=(i=t.animation)[e])||r.call(i,...n),null==(o=(a=t.defaultProps)[e])||o.call(a,...n)}const Sr=["onStart","onChange","onRest"];let Fr=1;class Or{constructor(t,e){this.id=Fr++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start(On({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((t=>t.idle&&!t.isDelayed&&!t.isPaused))}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each(((e,n)=>t[n]=e.get())),t}set(t){for(const e in t){const n=t[e];Tt.und(n)||this.springs[e].set(n)}}update(t){return t&&this.queue.push(mr(t)),this}start(t){let{queue:e}=this;return t?e=Lt(t).map(mr):this.queue=[],this._flush?this._flush(this,e):(Hr(this,e),xr(this,e))}stop(t,e){if(t!==!!t&&(e=t),e){const n=this.springs;Wt(Lt(e),(e=>n[e].stop(!!t)))}else er(this._state,this._lastAsyncId),this.each((e=>e.stop(!!t)));return this}pause(t){if(Tt.und(t))this.start({pause:!0});else{const e=this.springs;Wt(Lt(t),(t=>e[t].pause()))}return this}resume(t){if(Tt.und(t))this.start({pause:!1});else{const e=this.springs;Wt(Lt(t),(t=>e[t].resume()))}return this}each(t){qt(this.springs,t)}_onFrame(){const{onStart:t,onChange:e,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Qt(t,(([t,e])=>{e.value=this.get(),t(e,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&e.size&&Qt(e,(([t,e])=>{e.value=a,t(e,this,this._item)})),o&&(this._started=!1,Qt(n,(([t,e])=>{e.value=a,t(e,this,this._item)})))}eventObserved(t){if("change"==t.type)this._changed.add(t.parent),t.idle||this._active.add(t.parent);else{if("idle"!=t.type)return;this._active.delete(t.parent)}Ft.onFrame(this._onFrame)}}function xr(t,e){return Promise.all(e.map((e=>$r(t,e)))).then((e=>Zn(t,e)))}async function $r(t,e,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=e,c=Tt.obj(e.default)&&e.default;a&&(e.loop=!1),!1===i&&(e.to=null),!1===o&&(e.from=null);const u=Tt.arr(i)||Tt.fun(i)?i:void 0;u?(e.to=void 0,e.onRest=void 0,c&&(c.onRest=void 0)):Wt(Sr,(n=>{const r=e[n];if(Tt.fun(r)){const i=t._events[n];e[n]=({finished:t,cancelled:e})=>{const n=i.get(r);n?(t||(n.finished=!1),e&&(n.cancelled=!0)):i.set(r,{value:null,finished:t||!1,cancelled:e||!1})},c&&(c[n]=e[n])}}));const d=t._state;e.pause===!d.paused?(d.paused=e.pause,Ut(e.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(e.pause=!0);const h=(r||Object.keys(t.springs)).map((n=>t.springs[n].start(e))),p=!0===e.cancel||!0===Pn(e,"cancel");(u||p&&d.asyncId)&&h.push(Xn(++t._lastAsyncId,{props:e,state:d,actions:{pause:Vt,resume:Vt,start(e,n){p?(er(d,t._lastAsyncId),n(Kn(t))):(e.onRest=s,n(tr(u,e,d,t)))}}})),d.paused&&await new Promise((t=>{d.resumeQueue.add(t)}));const f=Zn(t,await Promise.all(h));if(a&&f.finished&&(!n||!f.noop)){const n=gr(e,a,i);if(n)return Hr(t,[n]),$r(t,n,!0)}return l&&Ft.batchedUpdates((()=>l(f,t,t.item))),f}function kr(t,e){const n=On({},t.springs);return e&&Wt(Lt(e),(t=>{Tt.und(t.keys)&&(t=mr(t)),Tt.obj(t.to)||(t=On({},t,{to:void 0})),Br(n,t,(t=>zr(t)))})),Pr(t,n),n}function Pr(t,e){qt(e,((e,n)=>{t.springs[n]||(t.springs[n]=e,Ie(e,t))}))}function zr(t,e){const n=new pr;return n.key=t,e&&Ie(n,e),n}function Br(t,e,n){e.keys&&Wt(e.keys,(r=>{(t[r]||(t[r]=n(r)))._prepareNode(e)}))}function Hr(t,e){Wt(e,(e=>{Br(t.springs,e,(e=>zr(e,t)))}))}const Cr=["children"],Ar=t=>{let{children:e}=t,r=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,Cr);const i=f(Er),s=r.pause||!!i.pause,l=r.immediate||!!i.immediate;r=function(t,e){const[n]=a((()=>({inputs:e,result:t()}))),r=o(),i=r.current;let s=i;s?Boolean(e&&s.inputs&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(e,s.inputs))||(s={inputs:e,result:t()}):s=n;return u((()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)}),[s]),s.result}((()=>({pause:s,immediate:l})),[s,l]);const{Provider:c}=Er;return n.createElement(c,{value:r},e)},Er=(Dr=Ar,jr={},Object.assign(Dr,n.createContext(jr)),Dr.Provider._context=Dr,Dr.Consumer._context=Dr,Dr);var Dr,jr;Ar.Provider=Er.Provider,Ar.Consumer=Er.Consumer;const Ir=()=>{const t=[],e=function(e){Ke(`${Ze}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Wt(t,((t,i)=>{if(Tt.und(e))r.push(t.start());else{const o=n(e,t,i);o&&r.push(t.start(o))}})),r};e.current=t,e.add=function(e){t.includes(e)||t.push(e)},e.delete=function(e){const n=t.indexOf(e);~n&&t.splice(n,1)},e.pause=function(){return Wt(t,(t=>t.pause(...arguments))),this},e.resume=function(){return Wt(t,(t=>t.resume(...arguments))),this},e.set=function(e){Wt(t,(t=>t.set(e)))},e.start=function(e){const n=[];return Wt(t,((t,r)=>{if(Tt.und(e))n.push(t.start());else{const i=this._getProps(e,t,r);i&&n.push(t.start(i))}})),n},e.stop=function(){return Wt(t,(t=>t.stop(...arguments))),this},e.update=function(e){return Wt(t,((t,n)=>t.update(this._getProps(e,t,n)))),this};const n=function(t,e,n){return Tt.fun(t)?t(n,e):t};return e._getProps=n,e};function Mr(t,e,n){const r=Tt.fun(e)&&e;r&&!n&&(n=[]);const i=g((()=>r||3==arguments.length?Ir():void 0),[]),a=o(0),s=nn(),l=g((()=>({ctrls:[],queue:[],flush(t,e){const n=kr(t,e);return a.current>0&&!l.queue.length&&!Object.keys(n).some((e=>!t.springs[e]))?xr(t,e):new Promise((r=>{Pr(t,n),l.queue.push((()=>{r(xr(t,e))})),s()}))}})),[]),c=o([...l.ctrls]),u=[],d=an(t)||0;function h(t,n){for(let i=t;i<n;i++){const t=c.current[i]||(c.current[i]=new Or(null,l.flush)),n=r?r(i,t):e[i];n&&(u[i]=yr(n))}}g((()=>{Wt(c.current.slice(t,d),(t=>{In(t,i),t.stop(!0)})),c.current.length=t,h(d,t)}),[t]),g((()=>{h(0,Math.min(d,t))}),n);const p=c.current.map(((t,e)=>kr(t,u[e]))),m=f(Ar),y=an(m),v=m!==y&&Dn(m);en((()=>{a.current++,l.ctrls=c.current;const{queue:t}=l;t.length&&(l.queue=[],Wt(t,(t=>t()))),Wt(c.current,((t,e)=>{null==i||i.add(t),v&&t.start({default:m});const n=u[e];n&&(Mn(t,n.ref),t.ref?t.queue.push(n):t.start(n))}))})),rn((()=>()=>{Wt(l.ctrls,(t=>t.stop(!0)))}));const b=p.map((t=>On({},t)));return i?[b,i]:b}let Rr;!function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"}(Rr||(Rr={}));class Vr extends ar{constructor(t,e){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=ke(...e);const n=this._get(),r=vn(n);cn(this,r.create(n))}advance(t){const e=this._get();Nt(e,this.get())||(ln(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&Nr(this._active)&&Wr(this)}_get(){const t=Tt.arr(this.source)?this.source.map(Ce):Lt(Ce(this.source));return this.calc(...t)}_start(){this.idle&&!Nr(this._active)&&(this.idle=!1,Wt(un(this),(t=>{t.done=!1})),te.skipAnimation?(Ft.batchedUpdates((()=>this.advance())),Wr(this)):oe.start(this))}_attach(){let t=1;Wt(Lt(this.source),(e=>{He(e)&&Ie(e,this),ir(e)&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))})),this.priority=t,this._start()}_detach(){Wt(Lt(this.source),(t=>{He(t)&&Me(t,this)})),this._active.clear(),Wr(this)}eventObserved(t){"change"==t.type?t.idle?this.advance():(this._active.add(t.parent),this._start()):"idle"==t.type?this._active.delete(t.parent):"priority"==t.type&&(this.priority=Lt(this.source).reduce(((t,e)=>Math.max(t,(ir(e)?e.priority:0)+1)),0))}}function Tr(t){return!1!==t.idle}function Nr(t){return!t.size||Array.from(t).every(Tr)}function Wr(t){t.idle||(t.idle=!0,Wt(un(t),(t=>{t.done=!0})),Ee(t,{type:"idle",parent:t}))}function qr(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}te.assign({createStringInterpolator:Xe,to:(t,e)=>new Vr(t,e)});const Lr=["style","children","scrollTop","scrollLeft"],Qr=/^--/;function Ur(t,e){return null==e||"boolean"==typeof e||""===e?"":"number"!=typeof e||0===e||Qr.test(t)||Xr.hasOwnProperty(t)&&Xr[t]?(""+e).trim():e+"px"}const Gr={};let Xr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Zr=["Webkit","Ms","Moz","O"];Xr=Object.keys(Xr).reduce(((t,e)=>(Zr.forEach((n=>t[((t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1))(n,e)]=t[e])),t)),Xr);const Jr=["x","y","z"],Yr=/^(matrix|translate|scale|rotate|skew)/,Kr=/^(translate)/,ti=/^(rotate|skew)/,ei=(t,e)=>Tt.num(t)&&0!==t?t+e:t,ni=(t,e)=>Tt.arr(t)?t.every((t=>ni(t,e))):Tt.num(t)?t===e:parseFloat(t)===e;class ri extends gn{constructor(t){let{x:e,y:n,z:r}=t,i=qr(t,Jr);const o=[],a=[];(e||n||r)&&(o.push([e||0,n||0,r||0]),a.push((t=>[`translate3d(${t.map((t=>ei(t,"px"))).join(",")})`,ni(t,0)]))),qt(i,((t,e)=>{if("transform"===e)o.push([t||""]),a.push((t=>[t,""===t]));else if(Yr.test(e)){if(delete i[e],Tt.und(t))return;const n=Kr.test(e)?"px":ti.test(e)?"deg":"";o.push(Lt(t)),a.push("rotate3d"===e?([t,e,r,i])=>[`rotate3d(${t},${e},${r},${ei(i,n)})`,ni(i,0)]:t=>[`${e}(${t.map((t=>ei(t,n))).join(",")})`,ni(t,e.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new ii(o,a)),super(i)}}class ii extends De{constructor(t,e){super(),this._value=null,this.inputs=t,this.transforms=e}get(){return this._value||(this._value=this._get())}_get(){let t="",e=!0;return Wt(this.inputs,((n,r)=>{const i=Ce(n[0]),[o,a]=this.transforms[r](Tt.arr(i)?i:n.map(Ce));t+=" "+o,e=e&&a})),e?"none":t}observerAdded(t){1==t&&Wt(this.inputs,(t=>Wt(t,(t=>He(t)&&Ie(t,this)))))}observerRemoved(t){0==t&&Wt(this.inputs,(t=>Wt(t,(t=>He(t)&&Me(t,this)))))}eventObserved(t){"change"==t.type&&(this._value=null),Ee(this,t)}}const oi=["scrollTop","scrollLeft"];te.assign({batchedUpdates:y,createStringInterpolator:Xe,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const ai=((t,{applyAnimatedValues:e=(()=>!1),createAnimatedStyle:n=(t=>new gn(t)),getComponentProps:r=(t=>t)}={})=>{const i={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:r},o=t=>{const e=Fn(t)||"Anonymous";return(t=Tt.str(t)?o[t]||(o[t]=wn(t,i)):t[Sn]||(t[Sn]=wn(t,i))).displayName=`Animated(${e})`,t};return qt(t,((e,n)=>{Tt.arr(t)&&(n=Fn(e)),o[n]=o(e)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n="filter"===t.nodeName||t.parentNode&&"filter"===t.parentNode.nodeName,r=e,{style:i,children:o,scrollTop:a,scrollLeft:s}=r,l=qr(r,Lr),c=Object.values(l),u=Object.keys(l).map((e=>n||t.hasAttribute(e)?e:Gr[e]||(Gr[e]=e.replace(/([A-Z])/g,(t=>"-"+t.toLowerCase())))));void 0!==o&&(t.textContent=o);for(let e in i)if(i.hasOwnProperty(e)){const n=Ur(e,i[e]);Qr.test(e)?t.style.setProperty(e,n):t.style[e]=n}u.forEach(((e,n)=>{t.setAttribute(e,c[n])})),void 0!==a&&(t.scrollTop=a),void 0!==s&&(t.scrollLeft=s)},createAnimatedStyle:t=>new ri(t),getComponentProps:t=>qr(t,oi)}),si=ai.animated;var li="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ci=Array.isArray,ui="object"==typeof li&&li&&li.Object===Object&&li,di="object"==typeof self&&self&&self.Object===Object&&self,hi=ui||di||Function("return this")(),pi=hi.Symbol,fi=pi,gi=Object.prototype,mi=gi.hasOwnProperty,yi=gi.toString,vi=fi?fi.toStringTag:void 0;var bi=function(t){var e=mi.call(t,vi),n=t[vi];try{t[vi]=void 0;var r=!0}catch(t){}var i=yi.call(t);return r&&(e?t[vi]=n:delete t[vi]),i},wi=Object.prototype.toString;var _i=bi,Si=function(t){return wi.call(t)},Fi=pi?pi.toStringTag:void 0;var Oi=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Fi&&Fi in Object(t)?_i(t):Si(t)};var xi=Oi,$i=function(t){return null!=t&&"object"==typeof t};var ki=function(t){return"symbol"==typeof t||$i(t)&&"[object Symbol]"==xi(t)},Pi=ci,zi=ki,Bi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hi=/^\w*$/;var Ci=function(t,e){if(Pi(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!zi(t))||(Hi.test(t)||!Bi.test(t)||null!=e&&t in Object(e))};var Ai=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Ei=Oi,Di=Ai;var ji,Ii=function(t){if(!Di(t))return!1;var e=Ei(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Mi=hi["__core-js_shared__"],Ri=(ji=/[^.]+$/.exec(Mi&&Mi.keys&&Mi.keys.IE_PROTO||""))?"Symbol(src)_1."+ji:"";var Vi=function(t){return!!Ri&&Ri in t},Ti=Function.prototype.toString;var Ni=Ii,Wi=Vi,qi=Ai,Li=function(t){if(null!=t){try{return Ti.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Qi=/^\[object .+?Constructor\]$/,Ui=Function.prototype,Gi=Object.prototype,Xi=Ui.toString,Zi=Gi.hasOwnProperty,Ji=RegExp("^"+Xi.call(Zi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Yi=function(t){return!(!qi(t)||Wi(t))&&(Ni(t)?Ji:Qi).test(Li(t))},Ki=function(t,e){return null==t?void 0:t[e]};var to=function(t,e){var n=Ki(t,e);return Yi(n)?n:void 0},eo=to(Object,"create"),no=eo;var ro=function(){this.__data__=no?no(null):{},this.size=0};var io=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},oo=eo,ao=Object.prototype.hasOwnProperty;var so=function(t){var e=this.__data__;if(oo){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ao.call(e,t)?e[t]:void 0},lo=eo,co=Object.prototype.hasOwnProperty;var uo=eo;var ho=ro,po=io,fo=so,go=function(t){var e=this.__data__;return lo?void 0!==e[t]:co.call(e,t)},mo=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=uo&&void 0===e?"__lodash_hash_undefined__":e,this};function yo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}yo.prototype.clear=ho,yo.prototype.delete=po,yo.prototype.get=fo,yo.prototype.has=go,yo.prototype.set=mo;var vo=yo;var bo=function(){this.__data__=[],this.size=0};var wo=function(t,e){return t===e||t!=t&&e!=e};var _o=function(t,e){for(var n=t.length;n--;)if(wo(t[n][0],e))return n;return-1},So=_o,Fo=Array.prototype.splice;var Oo=_o;var xo=_o;var $o=_o;var ko=bo,Po=function(t){var e=this.__data__,n=So(e,t);return!(n<0)&&(n==e.length-1?e.pop():Fo.call(e,n,1),--this.size,!0)},zo=function(t){var e=this.__data__,n=Oo(e,t);return n<0?void 0:e[n][1]},Bo=function(t){return xo(this.__data__,t)>-1},Ho=function(t,e){var n=this.__data__,r=$o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Co(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Co.prototype.clear=ko,Co.prototype.delete=Po,Co.prototype.get=zo,Co.prototype.has=Bo,Co.prototype.set=Ho;var Ao=Co,Eo=to(hi,"Map"),Do=vo,jo=Ao,Io=Eo;var Mo=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Ro=function(t,e){var n=t.__data__;return Mo(e)?n["string"==typeof e?"string":"hash"]:n.map},Vo=Ro;var To=Ro;var No=Ro;var Wo=Ro;var qo=function(){this.size=0,this.__data__={hash:new Do,map:new(Io||jo),string:new Do}},Lo=function(t){var e=Vo(this,t).delete(t);return this.size-=e?1:0,e},Qo=function(t){return To(this,t).get(t)},Uo=function(t){return No(this,t).has(t)},Go=function(t,e){var n=Wo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Xo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Xo.prototype.clear=qo,Xo.prototype.delete=Lo,Xo.prototype.get=Qo,Xo.prototype.has=Uo,Xo.prototype.set=Go;var Zo=Xo;function Jo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Jo.Cache||Zo),n}Jo.Cache=Zo;var Yo=Jo;var Ko=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ta=/\\(\\)?/g,ea=function(t){var e=Yo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ko,(function(t,n,r,i){e.push(r?i.replace(ta,"$1"):n||t)})),e}));var na=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},ra=ci,ia=ki,oa=pi?pi.prototype:void 0,aa=oa?oa.toString:void 0;var sa=function t(e){if("string"==typeof e)return e;if(ra(e))return na(e,t)+"";if(ia(e))return aa?aa.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},la=sa;var ca=ci,ua=Ci,da=ea,ha=function(t){return null==t?"":la(t)};var pa=ki;var fa=function(t,e){return ca(t)?t:ua(t,e)?[t]:da(ha(t))},ga=function(t){if("string"==typeof t||pa(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var ma=function(t,e){for(var n=0,r=(e=fa(e,t)).length;null!=t&&n<r;)t=t[ga(e[n++])];return n&&n==r?t:void 0};var ya=function(t,e,n){var r=null==t?void 0:ma(t,e);return void 0===r?n:r};const va=(t,e,n)=>e?ya(n,e)||ya(t,e):n||t,ba=(t,e)=>{const n=e||t.defaultValue;return ya(t.collections,n)};var wa;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme"}(wa||(wa={}));const _a={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}}},defaultValue:"base"},Sa=t=>e=>{const n=e.theme,r=ba(_a,n[wa.colorScheme]);return n.options&&n.options.color?va(r,t,n.options.color):va(r,t)},Fa={Brand:{1:Sa("Brand.1"),2:Sa("Brand.2"),3:Sa("Brand.3"),4:Sa("Brand.4"),5:Sa("Brand.5"),6:Sa("Brand.6")},Primary:Sa("Primary"),PrimaryDark:Sa("PrimaryDark"),Secondary:Sa("Secondary"),Accent:{Light:{1:Sa("Accent.Light.1"),2:Sa("Accent.Light.2"),3:Sa("Accent.Light.3"),4:Sa("Accent.Light.4"),5:Sa("Accent.Light.5"),6:Sa("Accent.Light.6")},Dark:{1:Sa("Accent.Dark.1"),2:Sa("Accent.Dark.2"),3:Sa("Accent.Dark.3")}},Neutral:{1:Sa("Neutral.1"),2:Sa("Neutral.2"),3:Sa("Neutral.3"),4:Sa("Neutral.4"),5:Sa("Neutral.5"),6:Sa("Neutral.6"),7:Sa("Neutral.7"),8:Sa("Neutral.8")},Validation:{Green:{Text:Sa("Validation.Green.Text"),Icon:Sa("Validation.Green.Icon"),Border:Sa("Validation.Green.Border"),Background:Sa("Validation.Green.Background")},Orange:{Text:Sa("Validation.Orange.Text"),Icon:Sa("Validation.Orange.Icon"),Border:Sa("Validation.Orange.Border"),Background:Sa("Validation.Orange.Background"),Badge:Sa("Validation.Orange.Badge")},Red:{Text:Sa("Validation.Red.Text"),Icon:Sa("Validation.Red.Icon"),Border:Sa("Validation.Red.Border"),Background:Sa("Validation.Red.Background")}}},Oa=v.svg`
2
- height: 1rem;
3
- width: 1rem;
4
- vertical-align: text-top;
5
-
6
- #path {
7
- fill: ${Fa.Neutral[8]};
8
- }
9
- `,xa=e=>t(Oa,{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 16 16",...e,children:t("g",{fill:"none",fillRule:"evenodd",children:t("g",{id:"path",fillRule:"nonzero",children:t("g",{children:t("g",{children:t("g",{children:t("path",{d:"M8.706 14.603l6.075-6.075c.294-.29.294-.765 0-1.06L8.706 1.398c-.29-.294-.765-.294-1.06 0l-.693.694c-.3.297-.294.78.013 1.072L10.73 6.75H1.75c-.416 0-.75.334-.75.75v1c0 .416.334.75.75.75h8.981l-3.765 3.587c-.304.291-.31.775-.013 1.072l.694.694c.29.294.765.294 1.06 0z",transform:"translate(-2384.000000, -760.000000) translate(2253.000000, 692.000000) translate(16.000000, 64.000000) translate(115.000000, 4.000000) translate(0.000000, 0.000000)"})})})})})})}),$a=e=>t(Oa,{width:"1rem",height:"1rem",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",...e,children:t("path",{id:"path",d:"M20\n\t\t8.639c-.934\n\t\t0-1.742.342-2.43 1.03-.684.684-1.03 1.495-1.03 2.429 0 .931.346 1.742 1.03 2.426.688.688 1.496 1.03 2.43 1.03.931 0 1.742-.342 2.43-1.03.684-.684 1.026-1.495 1.026-2.426 0-.934-.342-1.745-1.026-2.43-.688-.687-1.499-1.03-2.43-1.03m4.61 20.91v-1.976a.959.959 0 0 0-.287-.7.959.959 0 0 0-.7-.286h-.99v-8.232a.954.954 0 0 0-.287-.7.945.945 0 0 0-.7-.29h-5.269a.95.95 0 0 0-.7.29.954.954 0 0 0-.286.7v1.976c0 .271.095.506.286.7a.959.959 0 0 0 .7.287h.99v5.269h-.99a.959.959 0 0 0-.7.286.959.959 0 0 0-.286.7v1.977c0 .274.095.505.286.7a.959.959 0 0 0 .7.286h7.246a.959.959 0 0 0 .7-.287.959.959 0 0 0 .286-.7M20 2.5c3.15 0 6.068.788 8.75 2.365a17.67 17.67 0 0 1 6.385 6.386C36.71 13.933 37.5 16.848 37.5 20c0 3.15-.79 6.068-2.365 8.751a17.71 17.71 0 0 1-6.385 6.385C26.068 36.712 23.15 37.5 20 37.5c-3.153 0-6.068-.788-8.75-2.363a17.71 17.71 0 0 1-6.385-6.385c-1.575-2.683-2.365-5.6-2.365-8.75 0-3.154.79-6.069 2.365-8.751a17.67 17.67 0 0 1 6.385-6.386C13.932 3.288 16.847 2.5 20 2.5",fillRule:"nonzero"})}),ka=e=>t(Oa,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 64 64",id:"play-icon",...e,children:t("path",{id:"path",d:"M52.762 37.237 20.474 53.38A5.856 5.856 0 0 1 12 48.143V15.856a5.856 5.856 0 0 1 8.474-5.238l32.288 16.144a5.856 5.856 0 0 1 0 10.475z",fillRule:"nonzero"})}),Pa=e=>t(Oa,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",...e,children:t("g",{id:"search",children:t("path",{id:"path",fillRule:"evenodd",clipRule:"evenodd",d:"M7.60986 7.60986C5.86994 9.34977 5 11.445 5 13.8956C5 16.3462 5.86994 18.4414 7.60986 20.1813C9.34977 21.9212 11.445 22.7911 13.8956 22.7911C15.6355 22.7911 17.2345 22.3133 18.6926 21.3576L24.2063 26.8713C24.3044 26.9571 24.4146 27 24.5372 27C24.6597 27 24.77 26.9571 24.868 26.8713L26.8713 24.868C26.9571 24.77 27 24.6597 27 24.5372C27 24.4146 26.9571 24.3044 26.8713 24.2063L21.3576 18.6926C22.3133 17.2345 22.7911 15.6355 22.7911 13.8956C22.7911 11.445 21.9212 9.34977 20.1813 7.60986C18.4414 5.86994 16.3462 5 13.8956 5C11.445 5 9.34977 5.86994 7.60986 7.60986ZM9.59484 18.178C8.4063 16.9894 7.81205 15.562 7.81205 13.8956C7.81205 12.2292 8.4063 10.8017 9.59484 9.61321C10.7834 8.42468 12.2169 7.83042 13.8956 7.83042C15.5742 7.83042 17.0047 8.42162 18.1872 9.60403C19.3696 10.7864 19.9608 12.2169 19.9608 13.8956C19.9608 15.5742 19.3696 17.0047 18.1872 18.1872C17.0047 19.3696 15.5742 19.9608 13.8956 19.9608C12.2169 19.9608 10.7834 19.3665 9.59484 18.178Z"})})}),za=({type:e,...n})=>{switch(e){case"arrow-right":return t(xa,{...n});case"info":return t($a,{...n});case"search":return t(Pa,{...n});case"play-alt":return t(ka,{...n});default:{const r=`sgds-icon sgds-icon-${e}`,i=n.className?`${r} ${n.className}`:r;return t(Ba,{...n,className:i})}}},Ba=v.span`
10
- font-size: 1rem;
11
- `,Ha={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},Ca=t=>Object.keys(Ha).reduce(((e,n)=>{const r=Ha[n];return e[n]=`@media screen and (${t}: ${r}px)`,e}),{}),Aa=Ca("max-width"),Ea=(Ca("min-width"),"all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)"),Da={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},ja={collections:{base:{D1:{fontFamily:Da.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Da.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Da.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Da.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Da.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Da.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Da.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Da.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Da.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Da.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Da.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Da.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Da.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Da.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Ia=t=>e=>{const n=e.theme,r=ba(ja,n[wa.textStyleScheme]);return n.options&&n.options.textStyle?va(r,t,n.options.textStyle):va(r,t)},Ma={D1:{fontFamily:Ia("D1.fontFamily"),fontSize:Ia("D1.fontSize"),fontWeight:Ia("D1.fontWeight"),lineHeight:Ia("D1.lineHeight"),letterSpacing:Ia("D1.letterSpacing")},D2:{fontFamily:Ia("D2.fontFamily"),fontSize:Ia("D2.fontSize"),fontWeight:Ia("D2.fontWeight"),lineHeight:Ia("D2.lineHeight"),letterSpacing:Ia("D2.letterSpacing")},D3:{fontFamily:Ia("D3.fontFamily"),fontSize:Ia("D3.fontSize"),fontWeight:Ia("D3.fontWeight"),lineHeight:Ia("D3.lineHeight"),letterSpacing:Ia("D3.letterSpacing")},D4:{fontFamily:Ia("D4.fontFamily"),fontSize:Ia("D4.fontSize"),fontWeight:Ia("D4.fontWeight"),lineHeight:Ia("D4.lineHeight"),letterSpacing:Ia("D4.letterSpacing")},DBody:{fontFamily:Ia("DBody.fontFamily"),fontSize:Ia("DBody.fontSize"),fontWeight:Ia("DBody.fontWeight"),lineHeight:Ia("DBody.lineHeight"),letterSpacing:Ia("DBody.letterSpacing")},H1:{fontFamily:Ia("H1.fontFamily"),fontSize:Ia("H1.fontSize"),fontWeight:Ia("H1.fontWeight"),lineHeight:Ia("H1.lineHeight"),letterSpacing:Ia("H1.letterSpacing")},H2:{fontFamily:Ia("H2.fontFamily"),fontSize:Ia("H2.fontSize"),fontWeight:Ia("H2.fontWeight"),lineHeight:Ia("H2.lineHeight"),letterSpacing:Ia("H2.letterSpacing")},H3:{fontFamily:Ia("H3.fontFamily"),fontSize:Ia("H3.fontSize"),fontWeight:Ia("H3.fontWeight"),lineHeight:Ia("H3.lineHeight"),letterSpacing:Ia("H3.letterSpacing")},H4:{fontFamily:Ia("H4.fontFamily"),fontSize:Ia("H4.fontSize"),fontWeight:Ia("H4.fontWeight"),lineHeight:Ia("H4.lineHeight"),letterSpacing:Ia("H4.letterSpacing")},H5:{fontFamily:Ia("H5.fontFamily"),fontSize:Ia("H5.fontSize"),fontWeight:Ia("H5.fontWeight"),lineHeight:Ia("H5.lineHeight"),letterSpacing:Ia("H5.letterSpacing")},H6:{fontFamily:Ia("H6.fontFamily"),fontSize:Ia("H6.fontSize"),fontWeight:Ia("H6.fontWeight"),lineHeight:Ia("H6.lineHeight"),letterSpacing:Ia("H6.letterSpacing")},Body:{fontFamily:Ia("Body.fontFamily"),fontSize:Ia("Body.fontSize"),fontWeight:Ia("Body.fontWeight"),lineHeight:Ia("Body.lineHeight"),letterSpacing:Ia("Body.letterSpacing")},BodySmall:{fontFamily:Ia("BodySmall.fontFamily"),fontSize:Ia("BodySmall.fontSize"),fontWeight:Ia("BodySmall.fontWeight"),lineHeight:Ia("BodySmall.lineHeight"),letterSpacing:Ia("BodySmall.letterSpacing")},XSmall:{fontFamily:Ia("XSmall.fontFamily"),fontSize:Ia("XSmall.fontSize"),fontWeight:Ia("XSmall.fontWeight"),lineHeight:Ia("XSmall.lineHeight"),letterSpacing:Ia("XSmall.letterSpacing")}},Ra=t=>{switch(t){case 700:case"bold":return Da.Bold;case 600:case"semibold":return Da.Semibold;case 300:case"light":return Da.Light;case 400:case"regular":return Da.Regular;default:return""}},Va=(t,e)=>n=>{const r=Ma[t].fontFamily(n),i=Ma[t].fontWeight(n);return Object.values(Da).includes(r)?b`
12
- font-family: ${Ra(e)||Ra(i)||r};
1
+ import t,{jsxs as e,jsx as n}from"react/jsx-runtime";import*as r from"react";import{cloneElement as i,useRef as o,useState as a,isValidElement as s,createRef as l,PureComponent as c,useEffect as u,useLayoutEffect as d,forwardRef as h,useCallback as p,useContext as f,useMemo as g}from"react";import{findDOMNode as m,unstable_batchedUpdates as y}from"react-dom";import v,{css as b}from"styled-components";var w=function(t,e){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},w(t,e)};var _=function(){return _=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},_.apply(this,arguments)};var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var F=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},C="object"==typeof S&&S&&S.Object===Object&&S,O="object"==typeof self&&self&&self.Object===Object&&self,x=C||O||Function("return this")(),$=x,k=function(){return $.Date.now()},H=/\s/;var P=function(t){for(var e=t.length;e--&&H.test(t.charAt(e)););return e},B=/^\s+/;var A=function(t){return t?t.slice(0,P(t)+1).replace(B,""):t},j=x.Symbol,D=j,z=Object.prototype,E=z.hasOwnProperty,I=z.toString,M=D?D.toStringTag:void 0;var R=function(t){var e=E.call(t,M),n=t[M];try{t[M]=void 0;var r=!0}catch(t){}var i=I.call(t);return r&&(e?t[M]=n:delete t[M]),i},V=Object.prototype.toString;var T=R,N=function(t){return V.call(t)},W=j?j.toStringTag:void 0;var q=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":W&&W in Object(t)?T(t):N(t)},L=function(t){return null!=t&&"object"==typeof t};var Q=A,U=F,G=function(t){return"symbol"==typeof t||L(t)&&"[object Symbol]"==q(t)},X=/^[-+]0x[0-9a-f]+$/i,Z=/^0b[01]+$/i,J=/^0o[0-7]+$/i,Y=parseInt;var K=F,tt=k,et=function(t){if("number"==typeof t)return t;if(G(t))return NaN;if(U(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=U(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Q(t);var n=Z.test(t);return n||J.test(t)?Y(t.slice(2),n?2:8):X.test(t)?NaN:+t},nt=Math.max,rt=Math.min;var it=function(t,e,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=r,o=i;return r=i=void 0,c=e,a=t.apply(o,n)}function f(t){return c=t,s=setTimeout(m,e),u?p(t):a}function g(t){var n=t-l;return void 0===l||n>=e||n<0||d&&t-c>=o}function m(){var t=tt();if(g(t))return y(t);s=setTimeout(m,function(t){var n=e-(t-l);return d?rt(n,o-(t-c)):n}(t))}function y(t){return s=void 0,h&&r?p(t):(r=i=void 0,a)}function v(){var t=tt(),n=g(t);if(r=arguments,i=this,l=t,n){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(m,e),p(l)}return void 0===s&&(s=setTimeout(m,e)),a}return e=et(e)||0,K(n)&&(u=!!n.leading,o=(d="maxWait"in n)?nt(et(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:y(tt())},v},ot=it,at=F;var st=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return at(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ot(t,e,{leading:r,maxWait:e,trailing:i})},lt=function(t,e,n,r){switch(e){case"debounce":return it(t,n,r);case"throttle":return st(t,n,r);default:return t}},ct=function(t){return"function"==typeof t},ut=function(){return"undefined"==typeof window},dt=function(t){return t instanceof Element||t instanceof HTMLDocument},ht=function(t,e,n,r){return function(i){var o=i.width,a=i.height;e((function(e){return e.width===o&&e.height===a||e.width===o&&!r||e.height===a&&!n?e:(t&&ct(t)&&t(o,a),{width:o,height:a})}))}};!function(t){function e(e){var n=t.call(this,e)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var t=n.props,e=t.targetRef,r=t.observerOptions;if(!ut()){e&&e.current&&(n.targetRef.current=e.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var t=n.props,e=t.querySelector,r=t.targetDomEl;if(ut())return null;if(e)return document.querySelector(e);if(r&&dt(r))return r;if(n.targetRef&&dt(n.targetRef.current))return n.targetRef.current;var i=m(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(t){var e=n.props,r=e.handleWidth,i=void 0===r||r,o=e.handleHeight,a=void 0===o||o,s=e.onResize;if(i||a){var l=ht(s,n.setState.bind(n),i,a);t.forEach((function(t){var e=t&&t.contentRect||{},r=e.width,i=e.height;!n.skipOnMount&&!ut()&&l({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var t=n.props,e=t.render,r=t.children;return ct(e)?"renderProp":ct(r)?"childFunction":s(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=e.skipOnMount,i=e.refreshMode,o=e.refreshRate,a=void 0===o?1e3:o,c=e.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=l(),n.observableElement=null,ut()||(n.resizeHandler=lt(n.createResizeHandler,i,a,c),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(e,t),e.prototype.componentDidMount=function(){this.attachObserver()},e.prototype.componentDidUpdate=function(){this.attachObserver()},e.prototype.componentWillUnmount=function(){ut()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var t,e=this.props,n=e.render,o=e.children,a=e.nodeType,s=void 0===a?"div":a,l=this.state,c={width:l.width,height:l.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(c);case"childFunction":return(t=o)(c);case"child":if((t=o).type&&"string"==typeof t.type){var u=function(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 i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(c,["targetRef"]);return i(t,u)}return i(t,c);case"childArray":return(t=o).map((function(t){return!!t&&i(t,c)}));default:return r.createElement(s,null)}}}(c);var pt=ut()?u:d;let ft=Pt();const gt=t=>xt(t,ft);let mt=Pt();gt.write=t=>xt(t,mt);let yt=Pt();gt.onStart=t=>xt(t,yt);let vt=Pt();gt.onFrame=t=>xt(t,vt);let bt=Pt();gt.onFinish=t=>xt(t,bt);let wt=[];gt.setTimeout=(t,e)=>{let n=gt.now()+e,r=()=>{let t=wt.findIndex((t=>t.cancel==r));~t&&wt.splice(t,1),Ct-=~t?1:0},i={time:n,handler:t,cancel:r};return wt.splice(_t(n),0,i),Ct+=1,$t(),i};let _t=t=>~(~wt.findIndex((e=>e.time>t))||~wt.length);gt.cancel=t=>{yt.delete(t),vt.delete(t),bt.delete(t),ft.delete(t),mt.delete(t)},gt.sync=t=>{Ot=!0,gt.batchedUpdates(t),Ot=!1},gt.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...t){e=t,gt.onStart(n)}return r.handler=t,r.cancel=()=>{yt.delete(n),e=null},r};let St="undefined"!=typeof window?window.requestAnimationFrame:()=>{};gt.use=t=>St=t,gt.now="undefined"!=typeof performance?()=>performance.now():Date.now,gt.batchedUpdates=t=>t(),gt.catch=console.error,gt.frameLoop="always",gt.advance=()=>{"demand"!==gt.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ht()};let Ft=-1,Ct=0,Ot=!1;function xt(t,e){Ot?(e.delete(t),t(0)):(e.add(t),$t())}function $t(){Ft<0&&(Ft=0,"demand"!==gt.frameLoop&&St(kt))}function kt(){~Ft&&(St(kt),gt.batchedUpdates(Ht))}function Ht(){let t=Ft;Ft=gt.now();let e=_t(Ft);e&&(Bt(wt.splice(0,e),(t=>t.handler())),Ct-=e),Ct?(yt.flush(),ft.flush(t?Math.min(64,Ft-t):16.667),vt.flush(),mt.flush(),bt.flush()):Ft=-1}function Pt(){let t=new Set,e=t;return{add(n){Ct+=e!=t||t.has(n)?0:1,t.add(n)},delete:n=>(Ct-=e==t&&t.has(n)?1:0,t.delete(n)),flush(n){e.size&&(t=new Set,Ct-=e.size,Bt(e,(e=>e(n)&&t.add(e))),Ct+=t.size,e=t)}}}function Bt(t,e){t.forEach((t=>{try{e(t)}catch(t){gt.catch(t)}}))}function At(){}const jt={arr:Array.isArray,obj:t=>!!t&&"Object"===t.constructor.name,fun:t=>"function"==typeof t,str:t=>"string"==typeof t,num:t=>"number"==typeof t,und:t=>void 0===t};function Dt(t,e){if(jt.arr(t)){if(!jt.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}const zt=(t,e)=>t.forEach(e);function Et(t,e,n){if(jt.arr(t))for(let r=0;r<t.length;r++)e.call(n,t[r],`${r}`);else for(const r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r)}const It=t=>jt.und(t)?[]:jt.arr(t)?t:[t];function Mt(t,e){if(t.size){const n=Array.from(t);t.clear(),zt(n,e)}}const Rt=(t,...e)=>Mt(t,(t=>t(...e))),Vt=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Tt,Nt,Wt=null,qt=!1,Lt=At;var Qt=Object.freeze({__proto__:null,get createStringInterpolator(){return Tt},get to(){return Nt},get colors(){return Wt},get skipAnimation(){return qt},get willAdvance(){return Lt},assign:t=>{t.to&&(Nt=t.to),t.now&&(gt.now=t.now),void 0!==t.colors&&(Wt=t.colors),null!=t.skipAnimation&&(qt=t.skipAnimation),t.createStringInterpolator&&(Tt=t.createStringInterpolator),t.requestAnimationFrame&&gt.use(t.requestAnimationFrame),t.batchedUpdates&&(gt.batchedUpdates=t.batchedUpdates),t.willAdvance&&(Lt=t.willAdvance),t.frameLoop&&(gt.frameLoop=t.frameLoop)}});const Ut=new Set;let Gt=[],Xt=[],Zt=0;const Jt={get idle(){return!Ut.size&&!Gt.length},start(t){Zt>t.priority?(Ut.add(t),gt.onStart(Yt)):(Kt(t),gt(ee))},advance:ee,sort(t){if(Zt)gt.onFrame((()=>Jt.sort(t)));else{const e=Gt.indexOf(t);~e&&(Gt.splice(e,1),te(t))}},clear(){Gt=[],Ut.clear()}};function Yt(){Ut.forEach(Kt),Ut.clear(),gt(ee)}function Kt(t){Gt.includes(t)||te(t)}function te(t){Gt.splice(function(t,e){const n=t.findIndex(e);return n<0?t.length:n}(Gt,(e=>e.priority>t.priority)),0,t)}function ee(t){const e=Xt;for(let n=0;n<Gt.length;n++){const r=Gt[n];Zt=r.priority,r.idle||(Lt(r),r.advance(t),r.idle||e.push(r))}return Zt=0,Xt=Gt,Xt.length=0,Gt=e,Gt.length>0}const ne="[-+]?\\d*\\.?\\d+";function re(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const ie=new RegExp("rgb"+re(ne,ne,ne)),oe=new RegExp("rgba"+re(ne,ne,ne,ne)),ae=new RegExp("hsl"+re(ne,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),se=new RegExp("hsla"+re(ne,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",ne)),le=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ue=/^#([0-9a-fA-F]{6})$/,de=/^#([0-9a-fA-F]{8})$/;function he(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}function pe(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,o=he(i,r,t+1/3),a=he(i,r,t),s=he(i,r,t-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function fe(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function ge(t){return(parseFloat(t)%360+360)%360/360}function me(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(255*e)}function ye(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function ve(t){let e=function(t){let e;return"number"==typeof t?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=ue.exec(t))?parseInt(e[1]+"ff",16)>>>0:Wt&&void 0!==Wt[t]?Wt[t]:(e=ie.exec(t))?(fe(e[1])<<24|fe(e[2])<<16|fe(e[3])<<8|255)>>>0:(e=oe.exec(t))?(fe(e[1])<<24|fe(e[2])<<16|fe(e[3])<<8|me(e[4]))>>>0:(e=le.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=de.exec(t))?parseInt(e[1],16)>>>0:(e=ce.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=ae.exec(t))?(255|pe(ge(e[1]),ye(e[2]),ye(e[3])))>>>0:(e=se.exec(t))?(pe(ge(e[1]),ye(e[2]),ye(e[3]))|me(e[4]))>>>0:null}(t);return null===e?t:(e=e||0,`rgba(${(4278190080&e)>>>24}, ${(16711680&e)>>>16}, ${(65280&e)>>>8}, ${(255&e)/255})`)}const be=(t,e,n)=>{if(jt.fun(t))return t;if(jt.arr(t))return be({range:t,output:e,extrapolate:n});if(jt.str(t.output[0]))return Tt(t);const r=t,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(t=>t);return t=>{const e=function(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}(t,o);return function(t,e,n,r,i,o,a,s,l){let c=l?l(t):t;if(c<e){if("identity"===a)return c;"clamp"===a&&(c=e)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===i)return r;if(e===n)return t<=e?r:i;e===-1/0?c=-c:n===1/0?c-=e:c=(c-e)/(n-e);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(t,o[e],o[e+1],i[e],i[e+1],l,a,s,r.map)}};function we(){return we=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},we.apply(this,arguments)}const _e=Symbol.for("FluidValue.get"),Se=Symbol.for("FluidValue.observers"),Fe=t=>Boolean(t&&t[_e]),Ce=t=>t&&t[_e]?t[_e]():t,Oe=t=>t[Se]||null;function xe(t,e){let n=t[Se];n&&n.forEach((t=>{!function(t,e){t.eventObserved?t.eventObserved(e):t(e)}(t,e)}))}class $e{constructor(t){if(this[_e]=void 0,this[Se]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");ke(this,t)}}const ke=(t,e)=>Be(t,_e,e);function He(t,e){if(t[_e]){let n=t[Se];n||Be(t,Se,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function Pe(t,e){let n=t[Se];if(n&&n.has(e)){const r=n.size-1;r?n.delete(e):t[Se]=null,t.observerRemoved&&t.observerRemoved(r,e)}}const Be=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Ae=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,je=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,De=new RegExp(`(${Ae.source})(%|[a-z]+)`,"i"),ze=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ee=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ie=t=>{const[e,n]=Me(t);if(!e||Vt())return t;const r=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(r)return r.trim();if(n&&n.startsWith("--")){const e=window.getComputedStyle(document.documentElement).getPropertyValue(n);return e||t}return n&&Ee.test(n)?Ie(n):n||t},Me=t=>{const e=Ee.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]};let Re;const Ve=(t,e,n,r,i)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Te=t=>{Re||(Re=Wt?new RegExp(`(${Object.keys(Wt).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map((t=>Ce(t).replace(Ee,Ie).replace(je,ve).replace(Re,ve))),n=e.map((t=>t.match(Ae).map(Number))),r=n[0].map(((t,e)=>n.map((t=>{if(!(e in t))throw Error('The arity of each "output" value must be equal');return t[e]})))).map((e=>be(we({},t,{output:e}))));return t=>{var n;const i=!De.test(e[0])&&(null==(n=e.find((t=>De.test(t))))?void 0:n.replace(Ae,""));let o=0;return e[0].replace(Ae,(()=>`${r[o++](t)}${i||""}`)).replace(ze,Ve)}},Ne="react-spring: ",We=t=>{const e=t;let n=!1;if("function"!=typeof e)throw new TypeError(`${Ne}once requires a function parameter`);return(...t)=>{n||(e(...t),n=!0)}},qe=We(console.warn);const Le=We(console.warn);function Qe(t){return jt.str(t)&&("#"==t[0]||/\d/.test(t)||!Vt()&&Ee.test(t)||t in(Wt||{}))}const Ue=Vt()?u:d;function Ge(){const t=a()[1],e=(()=>{const t=o(!1);return Ue((()=>(t.current=!0,()=>{t.current=!1})),[]),t})();return()=>{e.current&&t(Math.random())}}const Xe=t=>u(t,Ze),Ze=[];function Je(t){const e=o();return u((()=>{e.current=t})),e.current}const Ye=Symbol.for("Animated:node"),Ke=t=>t&&t[Ye],tn=(t,e)=>{return n=t,r=Ye,i=e,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},en=t=>t&&t[Ye]&&t[Ye].getPayload();class nn{constructor(){this.payload=void 0,tn(this,this)}getPayload(){return this.payload||[]}}class rn extends nn{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,jt.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new rn(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return jt.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value!==t&&(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,jt.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class on extends rn{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=be({output:[t,t]})}static create(t){return new on(t)}getValue(){let t=this._string;return null==t?this._string=this._toString(this._value):t}setValue(t){if(jt.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else{if(!super.setValue(t))return!1;this._string=null}return!0}reset(t){t&&(this._toString=be({output:[this.getValue(),t]})),this._value=0,super.reset()}}const an={dependencies:null};class sn extends nn{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const e={};return Et(this.source,((n,r)=>{var i;(i=n)&&i[Ye]===i?e[r]=n.getValue(t):Fe(n)?e[r]=Ce(n):t||(e[r]=n)})),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&zt(this.payload,(t=>t.reset()))}_makePayload(t){if(t){const e=new Set;return Et(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){an.dependencies&&Fe(t)&&an.dependencies.add(t);const e=en(t);e&&zt(e,(t=>this.add(t)))}}class ln extends sn{constructor(t){super(t)}static create(t){return new ln(t)}getValue(){return this.source.map((t=>t.getValue()))}setValue(t){const e=this.getPayload();return t.length==e.length?e.map(((e,n)=>e.setValue(t[n]))).some(Boolean):(super.setValue(t.map(cn)),!0)}}function cn(t){return(Qe(t)?on:rn).create(t)}function un(t){const e=Ke(t);return e?e.constructor:jt.arr(t)?ln:Qe(t)?on:rn}function dn(){return dn=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},dn.apply(this,arguments)}const hn=(t,e)=>{const n=!jt.fun(t)||t.prototype&&t.prototype.isReactComponent;return h(((i,a)=>{const s=o(null),l=n&&p((t=>{s.current=function(t,e){t&&(jt.fun(t)?t(e):t.current=e);return e}(a,t)}),[a]),[c,d]=function(t,e){const n=new Set;an.dependencies=n,t.style&&(t=dn({},t,{style:e.createAnimatedStyle(t.style)}));return t=new sn(t),an.dependencies=null,[t,n]}(i,e),h=Ge(),f=()=>{const t=s.current;if(n&&!t)return;!1===(!!t&&e.applyAnimatedValues(t,c.getValue(!0)))&&h()},g=new pn(f,d),m=o();Ue((()=>(m.current=g,zt(d,(t=>He(t,g))),()=>{m.current&&(zt(m.current.deps,(t=>Pe(t,m.current))),gt.cancel(m.current.update))}))),u(f,[]),Xe((()=>()=>{const t=m.current;zt(t.deps,(e=>Pe(e,t)))}));const y=e.getComponentProps(c.getValue());return r.createElement(t,dn({},y,{ref:l}))}))};class pn{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){"change"==t.type&&gt.write(this.update)}}const fn=Symbol.for("AnimatedComponent"),gn=t=>jt.str(t)?t:t&&jt.str(t.displayName)?t.displayName:jt.fun(t)&&t.name||null;function mn(){return mn=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},mn.apply(this,arguments)}function yn(t,...e){return jt.fun(t)?t(...e):t}const vn=(t,e)=>!0===t||!!(e&&t&&(jt.fun(t)?t(e):It(t).includes(e))),bn=(t,e)=>jt.obj(t)?e&&t[e]:t,wn=(t,e)=>!0===t.default?t[e]:t.default?t.default[e]:void 0,_n=t=>t,Sn=(t,e=_n)=>{let n=Fn;t.default&&!0!==t.default&&(t=t.default,n=Object.keys(t));const r={};for(const i of n){const n=e(t[i],i);jt.und(n)||(r[i]=n)}return r},Fn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Cn={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function On(t){const e=function(t){const e={};let n=0;if(Et(t,((t,r)=>{Cn[r]||(e[r]=t,n++)})),n)return e}(t);if(e){const n={to:e};return Et(t,((t,r)=>r in e||(n[r]=t))),n}return mn({},t)}function xn(t){return t=Ce(t),jt.arr(t)?t.map(xn):Qe(t)?Qt.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function $n(t){for(const e in t)return!0;return!1}function kn(t){return jt.fun(t)||jt.arr(t)&&jt.obj(t[0])}function Hn(t,e){var n;null==(n=t.ref)||n.delete(t),null==e||e.delete(t)}function Pn(t,e){var n;e&&t.ref!==e&&(null==(n=t.ref)||n.delete(t),e.add(t),t.ref=e)}const Bn=1.70158,An=1.525*Bn,jn=2*Math.PI/3,Dn=2*Math.PI/4.5,zn=t=>{const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},En=mn({},{tension:170,friction:26},{mass:1,damping:1,easing:{linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>0===t?0:Math.pow(2,10*t-10),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>0===t?0:1===t?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>2.70158*t*t*t-Bn*t*t,easeOutBack:t=>1+2.70158*Math.pow(t-1,3)+Bn*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*(7.189819*t-An)/2:(Math.pow(2*t-2,2)*((An+1)*(2*t-2)+An)+2)/2,easeInElastic:t=>0===t?0:1===t?1:-Math.pow(2,10*t-10)*Math.sin((10*t-10.75)*jn),easeOutElastic:t=>0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin((10*t-.75)*jn)+1,easeInOutElastic:t=>0===t?0:1===t?1:t<.5?-Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*Dn)/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*Dn)/2+1,easeInBounce:t=>1-zn(1-t),easeOutBounce:zn,easeInOutBounce:t=>t<.5?(1-zn(1-2*t))/2:(1+zn(2*t-1))/2}.linear,clamp:!1});class In{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,En)}}function Mn(t,e){if(jt.und(e.decay)){const n=!jt.und(e.tension)||!jt.und(e.friction);!n&&jt.und(e.frequency)&&jt.und(e.damping)&&jt.und(e.mass)||(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}else t.duration=void 0}const Rn=[];class Vn{constructor(){this.changed=!1,this.values=Rn,this.toValues=null,this.fromValues=Rn,this.to=void 0,this.from=void 0,this.config=new In,this.immediate=!1}}function Tn(t,{key:e,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=vn(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,e);if(d)f();else{jt.und(n.pause)||(i.paused=vn(n.pause,e));let t=null==r?void 0:r.pause;!0!==t&&(t=i.paused||vn(t,e)),c=yn(n.delay||0,e),t?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(u),u.cancel(),c=u.time-gt.now()}function p(){c>0&&!Qt.skipAnimation?(i.delayed=!0,u=gt.setTimeout(f,c),i.pauseQueue.add(h),i.timeouts.add(u)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(u),t<=(i.cancelId||0)&&(d=!0);try{o.start(mn({},n,{callId:t,cancel:d}),a)}catch(t){s(t)}}}))}const Nn=(t,e)=>1==e.length?e[0]:e.some((t=>t.cancelled))?Ln(t.get()):e.every((t=>t.noop))?Wn(t.get()):qn(t.get(),e.every((t=>t.finished))),Wn=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),qn=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),Ln=t=>({value:t,cancelled:!0,finished:!1});function Qn(t,e,n,r){const{callId:i,parentId:o,onRest:a}=e,{asyncTo:s,promise:l}=n;return o||t!==s||e.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=t;const c=Sn(e,((t,e)=>"onRest"===e?void 0:t));let u,d;const h=new Promise(((t,e)=>(u=t,d=e))),p=t=>{const e=i<=(n.cancelId||0)&&Ln(r)||i!==n.asyncId&&qn(r,!1);if(e)throw t.result=e,d(t),t},f=(t,e)=>{const o=new Gn,a=new Xn;return(async()=>{if(Qt.skipAnimation)throw Un(n),a.result=qn(r,!1),d(a),a;p(o);const s=jt.obj(t)?mn({},t):mn({},e,{to:t});s.parentId=i,Et(c,((t,e)=>{jt.und(s[e])&&(s[e]=t)}));const l=await r.start(s);return p(o),n.paused&&await new Promise((t=>{n.resumeQueue.add(t)})),l})()};let g;if(Qt.skipAnimation)return Un(n),qn(r,!1);try{let e;e=jt.arr(t)?(async t=>{for(const e of t)await f(e)})(t):Promise.resolve(t(f,r.stop.bind(r))),await Promise.all([e.then(u),h]),g=qn(r.get(),!0,!1)}catch(t){if(t instanceof Gn)g=t.result;else{if(!(t instanceof Xn))throw t;g=t.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return jt.fun(a)&&gt.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function Un(t,e){Mt(t.timeouts,(t=>t.cancel())),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class Gn extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class Xn extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Zn=t=>t instanceof Yn;let Jn=1;class Yn extends $e{constructor(...t){super(...t),this.id=Jn++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Ke(this);return t&&t.getValue()}to(...t){return Qt.to(this,t)}interpolate(...t){return qe(`${Ne}The "interpolate" function is deprecated in v9 (use "to" instead)`),Qt.to(this,t)}toJSON(){return this.get()}observerAdded(t){1==t&&this._attach()}observerRemoved(t){0==t&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){xe(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||Jt.sort(this),xe(this,{type:"priority",parent:this,priority:t})}}const Kn=Symbol.for("SpringPhase"),tr=t=>(1&t[Kn])>0,er=t=>(2&t[Kn])>0,nr=t=>(4&t[Kn])>0,rr=(t,e)=>e?t[Kn]|=3:t[Kn]&=-3,ir=(t,e)=>e?t[Kn]|=4:t[Kn]&=-5;class or extends Yn{constructor(t,e){if(super(),this.key=void 0,this.animation=new Vn,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!jt.und(t)||!jt.und(e)){const n=jt.obj(t)?mn({},t):mn({},e,{from:t});jt.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(er(this)||this._state.asyncTo)||nr(this)}get goal(){return Ce(this.animation.to)}get velocity(){const t=Ke(this);return t instanceof rn?t.lastVelocity||0:t.getPayload().map((t=>t.lastVelocity||0))}get hasAnimated(){return tr(this)}get isAnimating(){return er(this)}get isPaused(){return nr(this)}get isDelayed(){return this._state.delayed}advance(t){let e=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=en(r.to);!a&&Fe(r.to)&&(o=It(Ce(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==on?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let e=s.elapsedTime+=t;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=jt.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(jt.und(i.duration))if(i.decay){const t=!0===i.decay?.998:i.decay,r=Math.exp(-(1-t)*e);d=n+o/(1-t)*(1-r),u=Math.abs(s.lastPosition-d)<=h,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const e=i.restVelocity||h/10,r=i.clamp?0:i.bounce,l=!jt.und(r),p=n==c?s.v0>0:n<c;let f,g=!1;const m=1,y=Math.ceil(t/m);for(let t=0;t<y&&(f=Math.abs(a)>e,f||(u=Math.abs(c-d)<=h,!u));++t){l&&(g=d==c||d>c==p,g&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,e=s.elapsedTime+=t)),r=(i.progress||0)+e/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/t,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:e=!1,s.setValue(d,i.round)&&(n=!0)}));const s=Ke(this),l=s.getValue();if(e){const t=Ce(r.to);l===t&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(t),this._onChange(t)),this._stop()}else n&&this._onChange(l)}set(t){return gt.batchedUpdates((()=>{this._stop(),this._focus(t),this._set(t)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(er(this)){const{to:t,config:e}=this.animation;gt.batchedUpdates((()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()}))}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let n;return jt.und(t)?(n=this.queue||[],this.queue=[]):n=[jt.obj(t)?t:mn({},e,{to:t})],Promise.all(n.map((t=>this._update(t)))).then((t=>Nn(this,t)))}stop(t){const{to:e}=this.animation;return this._focus(this.get()),Un(this._state,t&&this._lastCallId),gt.batchedUpdates((()=>this._stop(e,t))),this}reset(){this._update({reset:!0})}eventObserved(t){"change"==t.type?this._start():"priority"==t.type&&(this.priority=t.priority+1)}_prepareNode(t){const e=this.key||"";let{to:n,from:r}=t;n=jt.obj(n)?n[e]:n,(null==n||kn(n))&&(n=void 0),r=jt.obj(r)?r[e]:r,null==r&&(r=void 0);const i={to:n,from:r};return tr(this)||(t.reverse&&([n,r]=[r,n]),r=Ce(r),jt.und(r)?Ke(this)||this._set(n):this._set(r)),i}_update(t,e){let n=mn({},t);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,Sn(n,((t,e)=>/^on/.test(e)?bn(t,r):t))),hr(this,n,"onProps"),pr(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Tn(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{nr(this)||(ir(this,!0),Rt(a.pauseQueue),pr(this,"onPause",qn(this,ar(this,this.animation.to)),this))},resume:()=>{nr(this)&&(ir(this,!1),er(this)&&this._resume(),Rt(a.resumeQueue),pr(this,"onResume",qn(this,ar(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((t=>{if(n.loop&&t.finished&&(!e||!t.noop)){const t=sr(n);if(t)return this._update(t,!0)}return t}))}_merge(t,e,n){if(e.cancel)return this.stop(!0),n(Ln(this));const r=!jt.und(t.to),i=!jt.und(t.from);if(r||i){if(!(e.callId>this._lastToId))return n(Ln(this));this._lastToId=e.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=t;!i||r||e.default&&!jt.und(u)||(u=d),e.reverse&&([u,d]=[d,u]);const h=!Dt(d,c);h&&(s.from=d),d=Ce(d);const p=!Dt(u,l);p&&this._focus(u);const f=kn(e.to),{config:g}=s,{decay:m,velocity:y}=g;(r||i)&&(g.velocity=0),e.config&&!f&&function(t,e,n){n&&(Mn(n=mn({},n),e),e=mn({},n,e)),Mn(t,e),Object.assign(t,e);for(const e in En)null==t[e]&&(t[e]=En[e]);let{mass:r,frequency:i,damping:o}=t;jt.und(i)||(i<.01&&(i=.01),o<0&&(o=0),t.tension=Math.pow(2*Math.PI/i,2)*r,t.friction=4*Math.PI*o*r/i)}(g,yn(e.config,o),e.config!==a.config?yn(a.config,o):void 0);let v=Ke(this);if(!v||jt.und(u))return n(qn(this,!0));const b=jt.und(e.reset)?i&&!e.default:!jt.und(d)&&vn(e.reset,o),w=b?d:this.get(),_=xn(u),S=jt.num(_)||jt.arr(_)||Qe(_),F=!f&&(!S||vn(a.immediate||e.immediate,o));if(p){const t=un(u);if(t!==v.constructor){if(!F)throw Error(`Cannot animate between ${v.constructor.name} and ${t.name}, as the "to" prop suggests`);v=this._set(_)}}const C=v.constructor;let O=Fe(u),x=!1;if(!O){const t=b||!tr(this)&&h;(p||t)&&(x=Dt(xn(w),_),O=!x),(Dt(s.immediate,F)||F)&&Dt(g.decay,m)&&Dt(g.velocity,y)||(O=!0)}if(x&&er(this)&&(s.changed&&!b?O=!0:O||this._stop(l)),!f&&((O||Fe(l))&&(s.values=v.getPayload(),s.toValues=Fe(u)?null:C==on?[1]:It(_)),s.immediate!=F&&(s.immediate=F,F||b||this._set(l)),O)){const{onRest:t}=s;zt(dr,(t=>hr(this,e,t)));const r=qn(this,ar(this,l));Rt(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&gt.batchedUpdates((()=>{s.changed=!b,null==t||t(r,this),b?yn(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}b&&this._set(w),f?n(Qn(e.to,e,this._state,this)):O?this._start():er(this)&&!p?this._pendingCalls.add(n):n(Wn(w))}_focus(t){const e=this.animation;t!==e.to&&(Oe(this)&&this._detach(),e.to=t,Oe(this)&&this._attach())}_attach(){let t=0;const{to:e}=this.animation;Fe(e)&&(He(e,this),Zn(e)&&(t=e.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;Fe(t)&&Pe(t,this)}_set(t,e=!0){const n=Ce(t);if(!jt.und(n)){const t=Ke(this);if(!t||!Dt(n,t.getValue())){const r=un(n);t&&t.constructor==r?t.setValue(n):tn(this,r.create(n)),t&&gt.batchedUpdates((()=>{this._onChange(n,e)}))}}return Ke(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,pr(this,"onStart",qn(this,ar(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),yn(this.animation.onChange,t,this)),yn(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){const t=this.animation;Ke(this).reset(Ce(t.to)),t.immediate||(t.fromValues=t.values.map((t=>t.lastPosition))),er(this)||(rr(this,!0),nr(this)||this._resume())}_resume(){Qt.skipAnimation?this.finish():Jt.start(this)}_stop(t,e){if(er(this)){rr(this,!1);const n=this.animation;zt(n.values,(t=>{t.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),xe(this,{type:"idle",parent:this});const r=e?Ln(this.get()):qn(this.get(),ar(this,null!=t?t:n.to));Rt(this._pendingCalls,r),n.changed&&(n.changed=!1,pr(this,"onRest",r,this))}}}function ar(t,e){const n=xn(e);return Dt(xn(t.get()),n)}function sr(t,e=t.loop,n=t.to){let r=yn(e);if(r){const i=!0!==r&&On(r),o=(i||t).reverse,a=!i||i.reset;return lr(mn({},t,{loop:e,default:!1,pause:void 0,to:!o||kn(n)?n:void 0,from:a?t.from:void 0,reset:a},i))}}function lr(t){const{to:e,from:n}=t=On(t),r=new Set;return jt.obj(e)&&ur(e,r),jt.obj(n)&&ur(n,r),t.keys=r.size?Array.from(r):null,t}function cr(t){const e=lr(t);return jt.und(e.default)&&(e.default=Sn(e)),e}function ur(t,e){Et(t,((t,n)=>null!=t&&e.add(n)))}const dr=["onStart","onRest","onChange","onPause","onResume"];function hr(t,e,n){t.animation[n]=e[n]!==wn(e,n)?bn(e[n],t.key):void 0}function pr(t,e,...n){var r,i,o,a;null==(r=(i=t.animation)[e])||r.call(i,...n),null==(o=(a=t.defaultProps)[e])||o.call(a,...n)}const fr=["onStart","onChange","onRest"];let gr=1;class mr{constructor(t,e){this.id=gr++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start(mn({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((t=>t.idle&&!t.isDelayed&&!t.isPaused))}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each(((e,n)=>t[n]=e.get())),t}set(t){for(const e in t){const n=t[e];jt.und(n)||this.springs[e].set(n)}}update(t){return t&&this.queue.push(lr(t)),this}start(t){let{queue:e}=this;return t?e=It(t).map(lr):this.queue=[],this._flush?this._flush(this,e):(Fr(this,e),yr(this,e))}stop(t,e){if(t!==!!t&&(e=t),e){const n=this.springs;zt(It(e),(e=>n[e].stop(!!t)))}else Un(this._state,this._lastAsyncId),this.each((e=>e.stop(!!t)));return this}pause(t){if(jt.und(t))this.start({pause:!0});else{const e=this.springs;zt(It(t),(t=>e[t].pause()))}return this}resume(t){if(jt.und(t))this.start({pause:!1});else{const e=this.springs;zt(It(t),(t=>e[t].resume()))}return this}each(t){Et(this.springs,t)}_onFrame(){const{onStart:t,onChange:e,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Mt(t,(([t,e])=>{e.value=this.get(),t(e,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&e.size&&Mt(e,(([t,e])=>{e.value=a,t(e,this,this._item)})),o&&(this._started=!1,Mt(n,(([t,e])=>{e.value=a,t(e,this,this._item)})))}eventObserved(t){if("change"==t.type)this._changed.add(t.parent),t.idle||this._active.add(t.parent);else{if("idle"!=t.type)return;this._active.delete(t.parent)}gt.onFrame(this._onFrame)}}function yr(t,e){return Promise.all(e.map((e=>vr(t,e)))).then((e=>Nn(t,e)))}async function vr(t,e,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=e,c=jt.obj(e.default)&&e.default;a&&(e.loop=!1),!1===i&&(e.to=null),!1===o&&(e.from=null);const u=jt.arr(i)||jt.fun(i)?i:void 0;u?(e.to=void 0,e.onRest=void 0,c&&(c.onRest=void 0)):zt(fr,(n=>{const r=e[n];if(jt.fun(r)){const i=t._events[n];e[n]=({finished:t,cancelled:e})=>{const n=i.get(r);n?(t||(n.finished=!1),e&&(n.cancelled=!0)):i.set(r,{value:null,finished:t||!1,cancelled:e||!1})},c&&(c[n]=e[n])}}));const d=t._state;e.pause===!d.paused?(d.paused=e.pause,Rt(e.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(e.pause=!0);const h=(r||Object.keys(t.springs)).map((n=>t.springs[n].start(e))),p=!0===e.cancel||!0===wn(e,"cancel");(u||p&&d.asyncId)&&h.push(Tn(++t._lastAsyncId,{props:e,state:d,actions:{pause:At,resume:At,start(e,n){p?(Un(d,t._lastAsyncId),n(Ln(t))):(e.onRest=s,n(Qn(u,e,d,t)))}}})),d.paused&&await new Promise((t=>{d.resumeQueue.add(t)}));const f=Nn(t,await Promise.all(h));if(a&&f.finished&&(!n||!f.noop)){const n=sr(e,a,i);if(n)return Fr(t,[n]),vr(t,n,!0)}return l&&gt.batchedUpdates((()=>l(f,t,t.item))),f}function br(t,e){const n=mn({},t.springs);return e&&zt(It(e),(t=>{jt.und(t.keys)&&(t=lr(t)),jt.obj(t.to)||(t=mn({},t,{to:void 0})),Sr(n,t,(t=>_r(t)))})),wr(t,n),n}function wr(t,e){Et(e,((e,n)=>{t.springs[n]||(t.springs[n]=e,He(e,t))}))}function _r(t,e){const n=new or;return n.key=t,e&&He(n,e),n}function Sr(t,e,n){e.keys&&zt(e.keys,(r=>{(t[r]||(t[r]=n(r)))._prepareNode(e)}))}function Fr(t,e){zt(e,(e=>{Sr(t.springs,e,(e=>_r(e,t)))}))}const Cr=["children"],Or=t=>{let{children:e}=t,n=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,Cr);const i=f(xr),s=n.pause||!!i.pause,l=n.immediate||!!i.immediate;n=function(t,e){const[n]=a((()=>({inputs:e,result:t()}))),r=o(),i=r.current;let s=i;s?Boolean(e&&s.inputs&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(e,s.inputs))||(s={inputs:e,result:t()}):s=n;return u((()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)}),[s]),s.result}((()=>({pause:s,immediate:l})),[s,l]);const{Provider:c}=xr;return r.createElement(c,{value:n},e)},xr=($r=Or,kr={},Object.assign($r,r.createContext(kr)),$r.Provider._context=$r,$r.Consumer._context=$r,$r);var $r,kr;Or.Provider=xr.Provider,Or.Consumer=xr.Consumer;const Hr=()=>{const t=[],e=function(e){Le(`${Ne}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return zt(t,((t,i)=>{if(jt.und(e))r.push(t.start());else{const o=n(e,t,i);o&&r.push(t.start(o))}})),r};e.current=t,e.add=function(e){t.includes(e)||t.push(e)},e.delete=function(e){const n=t.indexOf(e);~n&&t.splice(n,1)},e.pause=function(){return zt(t,(t=>t.pause(...arguments))),this},e.resume=function(){return zt(t,(t=>t.resume(...arguments))),this},e.set=function(e){zt(t,(t=>t.set(e)))},e.start=function(e){const n=[];return zt(t,((t,r)=>{if(jt.und(e))n.push(t.start());else{const i=this._getProps(e,t,r);i&&n.push(t.start(i))}})),n},e.stop=function(){return zt(t,(t=>t.stop(...arguments))),this},e.update=function(e){return zt(t,((t,n)=>t.update(this._getProps(e,t,n)))),this};const n=function(t,e,n){return jt.fun(t)?t(n,e):t};return e._getProps=n,e};function Pr(t,e,n){const r=jt.fun(e)&&e;r&&!n&&(n=[]);const i=g((()=>r||3==arguments.length?Hr():void 0),[]),a=o(0),s=Ge(),l=g((()=>({ctrls:[],queue:[],flush(t,e){const n=br(t,e);return a.current>0&&!l.queue.length&&!Object.keys(n).some((e=>!t.springs[e]))?yr(t,e):new Promise((r=>{wr(t,n),l.queue.push((()=>{r(yr(t,e))})),s()}))}})),[]),c=o([...l.ctrls]),u=[],d=Je(t)||0;function h(t,n){for(let i=t;i<n;i++){const t=c.current[i]||(c.current[i]=new mr(null,l.flush)),n=r?r(i,t):e[i];n&&(u[i]=cr(n))}}g((()=>{zt(c.current.slice(t,d),(t=>{Hn(t,i),t.stop(!0)})),c.current.length=t,h(d,t)}),[t]),g((()=>{h(0,Math.min(d,t))}),n);const p=c.current.map(((t,e)=>br(t,u[e]))),m=f(Or),y=Je(m),v=m!==y&&$n(m);Ue((()=>{a.current++,l.ctrls=c.current;const{queue:t}=l;t.length&&(l.queue=[],zt(t,(t=>t()))),zt(c.current,((t,e)=>{null==i||i.add(t),v&&t.start({default:m});const n=u[e];n&&(Pn(t,n.ref),t.ref?t.queue.push(n):t.start(n))}))})),Xe((()=>()=>{zt(l.ctrls,(t=>t.stop(!0)))}));const b=p.map((t=>mn({},t)));return i?[b,i]:b}let Br;!function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"}(Br||(Br={}));class Ar extends Yn{constructor(t,e){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=be(...e);const n=this._get(),r=un(n);tn(this,r.create(n))}advance(t){const e=this._get();Dt(e,this.get())||(Ke(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&Dr(this._active)&&zr(this)}_get(){const t=jt.arr(this.source)?this.source.map(Ce):It(Ce(this.source));return this.calc(...t)}_start(){this.idle&&!Dr(this._active)&&(this.idle=!1,zt(en(this),(t=>{t.done=!1})),Qt.skipAnimation?(gt.batchedUpdates((()=>this.advance())),zr(this)):Jt.start(this))}_attach(){let t=1;zt(It(this.source),(e=>{Fe(e)&&He(e,this),Zn(e)&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))})),this.priority=t,this._start()}_detach(){zt(It(this.source),(t=>{Fe(t)&&Pe(t,this)})),this._active.clear(),zr(this)}eventObserved(t){"change"==t.type?t.idle?this.advance():(this._active.add(t.parent),this._start()):"idle"==t.type?this._active.delete(t.parent):"priority"==t.type&&(this.priority=It(this.source).reduce(((t,e)=>Math.max(t,(Zn(e)?e.priority:0)+1)),0))}}function jr(t){return!1!==t.idle}function Dr(t){return!t.size||Array.from(t).every(jr)}function zr(t){t.idle||(t.idle=!0,zt(en(t),(t=>{t.done=!0})),xe(t,{type:"idle",parent:t}))}function Er(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}Qt.assign({createStringInterpolator:Te,to:(t,e)=>new Ar(t,e)});const Ir=["style","children","scrollTop","scrollLeft"],Mr=/^--/;function Rr(t,e){return null==e||"boolean"==typeof e||""===e?"":"number"!=typeof e||0===e||Mr.test(t)||Tr.hasOwnProperty(t)&&Tr[t]?(""+e).trim():e+"px"}const Vr={};let Tr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Nr=["Webkit","Ms","Moz","O"];Tr=Object.keys(Tr).reduce(((t,e)=>(Nr.forEach((n=>t[((t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1))(n,e)]=t[e])),t)),Tr);const Wr=["x","y","z"],qr=/^(matrix|translate|scale|rotate|skew)/,Lr=/^(translate)/,Qr=/^(rotate|skew)/,Ur=(t,e)=>jt.num(t)&&0!==t?t+e:t,Gr=(t,e)=>jt.arr(t)?t.every((t=>Gr(t,e))):jt.num(t)?t===e:parseFloat(t)===e;class Xr extends sn{constructor(t){let{x:e,y:n,z:r}=t,i=Er(t,Wr);const o=[],a=[];(e||n||r)&&(o.push([e||0,n||0,r||0]),a.push((t=>[`translate3d(${t.map((t=>Ur(t,"px"))).join(",")})`,Gr(t,0)]))),Et(i,((t,e)=>{if("transform"===e)o.push([t||""]),a.push((t=>[t,""===t]));else if(qr.test(e)){if(delete i[e],jt.und(t))return;const n=Lr.test(e)?"px":Qr.test(e)?"deg":"";o.push(It(t)),a.push("rotate3d"===e?([t,e,r,i])=>[`rotate3d(${t},${e},${r},${Ur(i,n)})`,Gr(i,0)]:t=>[`${e}(${t.map((t=>Ur(t,n))).join(",")})`,Gr(t,e.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new Zr(o,a)),super(i)}}class Zr extends $e{constructor(t,e){super(),this._value=null,this.inputs=t,this.transforms=e}get(){return this._value||(this._value=this._get())}_get(){let t="",e=!0;return zt(this.inputs,((n,r)=>{const i=Ce(n[0]),[o,a]=this.transforms[r](jt.arr(i)?i:n.map(Ce));t+=" "+o,e=e&&a})),e?"none":t}observerAdded(t){1==t&&zt(this.inputs,(t=>zt(t,(t=>Fe(t)&&He(t,this)))))}observerRemoved(t){0==t&&zt(this.inputs,(t=>zt(t,(t=>Fe(t)&&Pe(t,this)))))}eventObserved(t){"change"==t.type&&(this._value=null),xe(this,t)}}const Jr=["scrollTop","scrollLeft"];Qt.assign({batchedUpdates:y,createStringInterpolator:Te,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const Yr=((t,{applyAnimatedValues:e=(()=>!1),createAnimatedStyle:n=(t=>new sn(t)),getComponentProps:r=(t=>t)}={})=>{const i={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:r},o=t=>{const e=gn(t)||"Anonymous";return(t=jt.str(t)?o[t]||(o[t]=hn(t,i)):t[fn]||(t[fn]=hn(t,i))).displayName=`Animated(${e})`,t};return Et(t,((e,n)=>{jt.arr(t)&&(n=gn(e)),o[n]=o(e)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n="filter"===t.nodeName||t.parentNode&&"filter"===t.parentNode.nodeName,r=e,{style:i,children:o,scrollTop:a,scrollLeft:s}=r,l=Er(r,Ir),c=Object.values(l),u=Object.keys(l).map((e=>n||t.hasAttribute(e)?e:Vr[e]||(Vr[e]=e.replace(/([A-Z])/g,(t=>"-"+t.toLowerCase())))));void 0!==o&&(t.textContent=o);for(let e in i)if(i.hasOwnProperty(e)){const n=Rr(e,i[e]);Mr.test(e)?t.style.setProperty(e,n):t.style[e]=n}u.forEach(((e,n)=>{t.setAttribute(e,c[n])})),void 0!==a&&(t.scrollTop=a),void 0!==s&&(t.scrollLeft=s)},createAnimatedStyle:t=>new Xr(t),getComponentProps:t=>Er(t,Jr)}),Kr=Yr.animated;var ti,ei="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ni={};Object.defineProperty(ni,"__esModule",{value:!0});var ri=t;const ii=t=>ri.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:ri.jsx("path",{d:"M2.62611 5.81312C2.84811 5.59112 3.10478 5.48012 3.39611 5.48012C3.68811 5.48012 3.94511 5.59112 4.16711 5.81312L10.1881 11.8341L16.2301 5.79212C16.4381 5.58412 16.6881 5.48012 16.9801 5.48012C17.2714 5.48012 17.5281 5.59112 17.7501 5.81312C17.9588 6.02179 18.0631 6.27545 18.0631 6.57412C18.0631 6.87279 17.9588 7.12612 17.7501 7.33412L10.8131 14.2721C10.7158 14.3688 10.6151 14.4381 10.5111 14.4801C10.4071 14.5215 10.2994 14.5421 10.1881 14.5421C10.0768 14.5421 9.96911 14.5215 9.86511 14.4801C9.76111 14.4381 9.66044 14.3688 9.56311 14.2721L2.60511 7.31312C2.38244 7.09112 2.27811 6.83779 2.29211 6.55312C2.30611 6.26845 2.41744 6.02179 2.62611 5.81312Z",fill:"currentColor"})});ii.displayName="ChevronDownIcon",ti=ni.ChevronDownIcon=ii;var oi,ai={};Object.defineProperty(ai,"__esModule",{value:!0});var si=t;const li=t=>si.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:si.jsx("path",{d:"M9.99999 10.792C10.236 10.792 10.441 10.705 10.615 10.531C10.7883 10.3577 10.875 10.153 10.875 9.91701V6.70801C10.875 6.47201 10.7883 6.27067 10.615 6.10401C10.441 5.93734 10.236 5.85401 9.99999 5.85401C9.76399 5.85401 9.55899 5.94101 9.38499 6.11501C9.21166 6.28834 9.12499 6.49301 9.12499 6.72901V9.93801C9.12499 10.174 9.21166 10.3753 9.38499 10.542C9.55899 10.7087 9.76399 10.792 9.99999 10.792ZM9.99999 14.188C10.236 14.188 10.441 14.108 10.615 13.948C10.7883 13.788 10.875 13.576 10.875 13.312C10.875 13.076 10.7883 12.8713 10.615 12.698C10.441 12.5247 10.236 12.438 9.99999 12.438C9.76399 12.438 9.55899 12.5247 9.38499 12.698C9.21166 12.8713 9.12499 13.076 9.12499 13.312C9.12499 13.576 9.21166 13.788 9.38499 13.948C9.55899 14.108 9.76399 14.188 9.99999 14.188ZM9.99999 18.333C8.84733 18.333 7.76399 18.1143 6.74999 17.677C5.73599 17.2397 4.85399 16.646 4.10399 15.896C3.35399 15.146 2.76033 14.264 2.32299 13.25C1.88566 12.236 1.66699 11.1527 1.66699 10C1.66699 8.84734 1.88566 7.76401 2.32299 6.75001C2.76033 5.73601 3.35399 4.85401 4.10399 4.10401C4.85399 3.35401 5.73599 2.76034 6.74999 2.32301C7.76399 1.88567 8.84733 1.66701 9.99999 1.66701C11.1527 1.66701 12.236 1.88567 13.25 2.32301C14.264 2.76034 15.146 3.35401 15.896 4.10401C16.646 4.85401 17.2397 5.73601 17.677 6.75001C18.1143 7.76401 18.333 8.84734 18.333 10C18.333 11.1527 18.1143 12.236 17.677 13.25C17.2397 14.264 16.646 15.146 15.896 15.896C15.146 16.646 14.264 17.2397 13.25 17.677C12.236 18.1143 11.1527 18.333 9.99999 18.333Z",fill:"currentColor"})});li.displayName="ExclamationCircleFillIcon",oi=ai.ExclamationCircleFillIcon=li;var ci=Array.isArray,ui="object"==typeof ei&&ei&&ei.Object===Object&&ei,di="object"==typeof self&&self&&self.Object===Object&&self,hi=ui||di||Function("return this")(),pi=hi.Symbol,fi=pi,gi=Object.prototype,mi=gi.hasOwnProperty,yi=gi.toString,vi=fi?fi.toStringTag:void 0;var bi=function(t){var e=mi.call(t,vi),n=t[vi];try{t[vi]=void 0;var r=!0}catch(t){}var i=yi.call(t);return r&&(e?t[vi]=n:delete t[vi]),i},wi=Object.prototype.toString;var _i=bi,Si=function(t){return wi.call(t)},Fi=pi?pi.toStringTag:void 0;var Ci=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Fi&&Fi in Object(t)?_i(t):Si(t)};var Oi=Ci,xi=function(t){return null!=t&&"object"==typeof t};var $i=function(t){return"symbol"==typeof t||xi(t)&&"[object Symbol]"==Oi(t)},ki=ci,Hi=$i,Pi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bi=/^\w*$/;var Ai=function(t,e){if(ki(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Hi(t))||(Bi.test(t)||!Pi.test(t)||null!=e&&t in Object(e))};var ji=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Di=Ci,zi=ji;var Ei,Ii=function(t){if(!zi(t))return!1;var e=Di(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Mi=hi["__core-js_shared__"],Ri=(Ei=/[^.]+$/.exec(Mi&&Mi.keys&&Mi.keys.IE_PROTO||""))?"Symbol(src)_1."+Ei:"";var Vi=function(t){return!!Ri&&Ri in t},Ti=Function.prototype.toString;var Ni=Ii,Wi=Vi,qi=ji,Li=function(t){if(null!=t){try{return Ti.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Qi=/^\[object .+?Constructor\]$/,Ui=Function.prototype,Gi=Object.prototype,Xi=Ui.toString,Zi=Gi.hasOwnProperty,Ji=RegExp("^"+Xi.call(Zi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Yi=function(t){return!(!qi(t)||Wi(t))&&(Ni(t)?Ji:Qi).test(Li(t))},Ki=function(t,e){return null==t?void 0:t[e]};var to=function(t,e){var n=Ki(t,e);return Yi(n)?n:void 0},eo=to(Object,"create"),no=eo;var ro=function(){this.__data__=no?no(null):{},this.size=0};var io=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},oo=eo,ao=Object.prototype.hasOwnProperty;var so=function(t){var e=this.__data__;if(oo){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ao.call(e,t)?e[t]:void 0},lo=eo,co=Object.prototype.hasOwnProperty;var uo=eo;var ho=ro,po=io,fo=so,go=function(t){var e=this.__data__;return lo?void 0!==e[t]:co.call(e,t)},mo=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=uo&&void 0===e?"__lodash_hash_undefined__":e,this};function yo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}yo.prototype.clear=ho,yo.prototype.delete=po,yo.prototype.get=fo,yo.prototype.has=go,yo.prototype.set=mo;var vo=yo;var bo=function(){this.__data__=[],this.size=0};var wo=function(t,e){return t===e||t!=t&&e!=e};var _o=function(t,e){for(var n=t.length;n--;)if(wo(t[n][0],e))return n;return-1},So=_o,Fo=Array.prototype.splice;var Co=_o;var Oo=_o;var xo=_o;var $o=bo,ko=function(t){var e=this.__data__,n=So(e,t);return!(n<0)&&(n==e.length-1?e.pop():Fo.call(e,n,1),--this.size,!0)},Ho=function(t){var e=this.__data__,n=Co(e,t);return n<0?void 0:e[n][1]},Po=function(t){return Oo(this.__data__,t)>-1},Bo=function(t,e){var n=this.__data__,r=xo(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Ao(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ao.prototype.clear=$o,Ao.prototype.delete=ko,Ao.prototype.get=Ho,Ao.prototype.has=Po,Ao.prototype.set=Bo;var jo=Ao,Do=to(hi,"Map"),zo=vo,Eo=jo,Io=Do;var Mo=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Ro=function(t,e){var n=t.__data__;return Mo(e)?n["string"==typeof e?"string":"hash"]:n.map},Vo=Ro;var To=Ro;var No=Ro;var Wo=Ro;var qo=function(){this.size=0,this.__data__={hash:new zo,map:new(Io||Eo),string:new zo}},Lo=function(t){var e=Vo(this,t).delete(t);return this.size-=e?1:0,e},Qo=function(t){return To(this,t).get(t)},Uo=function(t){return No(this,t).has(t)},Go=function(t,e){var n=Wo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Xo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Xo.prototype.clear=qo,Xo.prototype.delete=Lo,Xo.prototype.get=Qo,Xo.prototype.has=Uo,Xo.prototype.set=Go;var Zo=Xo;function Jo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Jo.Cache||Zo),n}Jo.Cache=Zo;var Yo=Jo;var Ko=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ta=/\\(\\)?/g,ea=function(t){var e=Yo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ko,(function(t,n,r,i){e.push(r?i.replace(ta,"$1"):n||t)})),e}));var na=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},ra=ci,ia=$i,oa=pi?pi.prototype:void 0,aa=oa?oa.toString:void 0;var sa=function t(e){if("string"==typeof e)return e;if(ra(e))return na(e,t)+"";if(ia(e))return aa?aa.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},la=sa;var ca=ci,ua=Ai,da=ea,ha=function(t){return null==t?"":la(t)};var pa=$i;var fa=function(t,e){return ca(t)?t:ua(t,e)?[t]:da(ha(t))},ga=function(t){if("string"==typeof t||pa(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var ma=function(t,e){for(var n=0,r=(e=fa(e,t)).length;null!=t&&n<r;)t=t[ga(e[n++])];return n&&n==r?t:void 0};var ya=function(t,e,n){var r=null==t?void 0:ma(t,e);return void 0===r?n:r};const va=(t,e,n)=>e?ya(n,e)||ya(t,e):n||t,ba=(t,e)=>{const n=e||t.defaultValue;return ya(t.collections,n)};var wa;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme",t.designTokenScheme="designTokenScheme"}(wa||(wa={}));const _a={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}}},defaultValue:"base"},Sa=t=>e=>{const n=e.theme,r=ba(_a,n[wa.colorScheme]);return n.options&&n.options.color?va(r,t,n.options.color):va(r,t)},Fa={Brand:{1:Sa("Brand.1"),2:Sa("Brand.2"),3:Sa("Brand.3"),4:Sa("Brand.4"),5:Sa("Brand.5"),6:Sa("Brand.6")},Primary:Sa("Primary"),PrimaryDark:Sa("PrimaryDark"),Secondary:Sa("Secondary"),Accent:{Light:{1:Sa("Accent.Light.1"),2:Sa("Accent.Light.2"),3:Sa("Accent.Light.3"),4:Sa("Accent.Light.4"),5:Sa("Accent.Light.5"),6:Sa("Accent.Light.6")},Dark:{1:Sa("Accent.Dark.1"),2:Sa("Accent.Dark.2"),3:Sa("Accent.Dark.3")}},Neutral:{1:Sa("Neutral.1"),2:Sa("Neutral.2"),3:Sa("Neutral.3"),4:Sa("Neutral.4"),5:Sa("Neutral.5"),6:Sa("Neutral.6"),7:Sa("Neutral.7"),8:Sa("Neutral.8")},Validation:{Green:{Text:Sa("Validation.Green.Text"),Icon:Sa("Validation.Green.Icon"),Border:Sa("Validation.Green.Border"),Background:Sa("Validation.Green.Background")},Orange:{Text:Sa("Validation.Orange.Text"),Icon:Sa("Validation.Orange.Icon"),Border:Sa("Validation.Orange.Border"),Background:Sa("Validation.Orange.Background"),Badge:Sa("Validation.Orange.Badge")},Red:{Text:Sa("Validation.Red.Text"),Icon:Sa("Validation.Red.Icon"),Border:Sa("Validation.Red.Border"),Background:Sa("Validation.Red.Background")}},Shadow:{Accent:Sa("Shadow.Accent"),Red:Sa("Shadow.Red")}},Ca={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},Oa=t=>Object.keys(Ca).reduce(((e,n)=>{const r=Ca[n];return e[n]=`@media screen and (${t}: ${r}px)`,e}),{}),xa=Oa("max-width"),$a=(Oa("min-width"),{Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"}),ka={collections:{base:{D1:{fontFamily:$a.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:$a.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:$a.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:$a.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:$a.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:$a.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:$a.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:$a.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:$a.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:$a.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:$a.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:$a.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:$a.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:$a.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Ha=t=>e=>{const n=e.theme,r=ba(ka,n[wa.textStyleScheme]);return n.options&&n.options.textStyle?va(r,t,n.options.textStyle):va(r,t)},Pa={D1:{fontFamily:Ha("D1.fontFamily"),fontSize:Ha("D1.fontSize"),fontWeight:Ha("D1.fontWeight"),lineHeight:Ha("D1.lineHeight"),letterSpacing:Ha("D1.letterSpacing")},D2:{fontFamily:Ha("D2.fontFamily"),fontSize:Ha("D2.fontSize"),fontWeight:Ha("D2.fontWeight"),lineHeight:Ha("D2.lineHeight"),letterSpacing:Ha("D2.letterSpacing")},D3:{fontFamily:Ha("D3.fontFamily"),fontSize:Ha("D3.fontSize"),fontWeight:Ha("D3.fontWeight"),lineHeight:Ha("D3.lineHeight"),letterSpacing:Ha("D3.letterSpacing")},D4:{fontFamily:Ha("D4.fontFamily"),fontSize:Ha("D4.fontSize"),fontWeight:Ha("D4.fontWeight"),lineHeight:Ha("D4.lineHeight"),letterSpacing:Ha("D4.letterSpacing")},DBody:{fontFamily:Ha("DBody.fontFamily"),fontSize:Ha("DBody.fontSize"),fontWeight:Ha("DBody.fontWeight"),lineHeight:Ha("DBody.lineHeight"),letterSpacing:Ha("DBody.letterSpacing")},H1:{fontFamily:Ha("H1.fontFamily"),fontSize:Ha("H1.fontSize"),fontWeight:Ha("H1.fontWeight"),lineHeight:Ha("H1.lineHeight"),letterSpacing:Ha("H1.letterSpacing")},H2:{fontFamily:Ha("H2.fontFamily"),fontSize:Ha("H2.fontSize"),fontWeight:Ha("H2.fontWeight"),lineHeight:Ha("H2.lineHeight"),letterSpacing:Ha("H2.letterSpacing")},H3:{fontFamily:Ha("H3.fontFamily"),fontSize:Ha("H3.fontSize"),fontWeight:Ha("H3.fontWeight"),lineHeight:Ha("H3.lineHeight"),letterSpacing:Ha("H3.letterSpacing")},H4:{fontFamily:Ha("H4.fontFamily"),fontSize:Ha("H4.fontSize"),fontWeight:Ha("H4.fontWeight"),lineHeight:Ha("H4.lineHeight"),letterSpacing:Ha("H4.letterSpacing")},H5:{fontFamily:Ha("H5.fontFamily"),fontSize:Ha("H5.fontSize"),fontWeight:Ha("H5.fontWeight"),lineHeight:Ha("H5.lineHeight"),letterSpacing:Ha("H5.letterSpacing")},H6:{fontFamily:Ha("H6.fontFamily"),fontSize:Ha("H6.fontSize"),fontWeight:Ha("H6.fontWeight"),lineHeight:Ha("H6.lineHeight"),letterSpacing:Ha("H6.letterSpacing")},Body:{fontFamily:Ha("Body.fontFamily"),fontSize:Ha("Body.fontSize"),fontWeight:Ha("Body.fontWeight"),lineHeight:Ha("Body.lineHeight"),letterSpacing:Ha("Body.letterSpacing")},BodySmall:{fontFamily:Ha("BodySmall.fontFamily"),fontSize:Ha("BodySmall.fontSize"),fontWeight:Ha("BodySmall.fontWeight"),lineHeight:Ha("BodySmall.lineHeight"),letterSpacing:Ha("BodySmall.letterSpacing")},XSmall:{fontFamily:Ha("XSmall.fontFamily"),fontSize:Ha("XSmall.fontSize"),fontWeight:Ha("XSmall.fontWeight"),lineHeight:Ha("XSmall.lineHeight"),letterSpacing:Ha("XSmall.letterSpacing")}},Ba=t=>{switch(t){case 700:case"bold":return $a.Bold;case 600:case"semibold":return $a.Semibold;case 300:case"light":return $a.Light;case 400:case"regular":return $a.Regular;default:return""}},Aa=(t,e)=>n=>{const r=Pa[t].fontFamily(n),i=Pa[t].fontWeight(n);return Object.values($a).includes(r)?b`
2
+ font-family: ${Ba(e)||Ba(i)||r};
13
3
  font-weight: normal !important;
14
4
  `:b`
15
5
  font-family: ${r};
16
- font-weight: ${(Ta(e)||i)??"normal"};
17
- `},Ta=t=>{switch(t){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},Na=(t,e,n=!1)=>r=>{const i=Ma[t],o=i.fontSize(r);return b`
18
- ${Va(t,e)}
6
+ font-weight: ${(ja(e)||i)??"normal"};
7
+ `},ja=t=>{switch(t){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},Da=(t,e,n=!1)=>r=>{const i=Pa[t],o=i.fontSize(r);return b`
8
+ ${Aa(t,e)}
19
9
  font-size: ${o}rem !important;
20
10
  line-height: ${i.lineHeight}rem !important;
21
11
  letter-spacing: ${i.letterSpacing(r)||0}rem !important;
22
12
  ${b`
23
13
  margin-bottom: ${o*(n?1.05:0)}rem;
24
14
  `}
25
- `},Wa=(t=!1,e=!1)=>e?b`
15
+ `},za=(t=!1,e=!1)=>e?b`
26
16
  display: block;
27
17
  `:t?b`
28
18
  display: inline;
29
19
  `:b`
30
20
  display: block;
31
- `;var qa;!function(t){t.D1=v.h1`
21
+ `;var Ea,Ia={};Object.defineProperty(Ia,"__esModule",{value:!0});var Ma=t;const Ra=t=>Ma.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:Ma.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});var Va;Ra.displayName="ExternalIcon",Ea=Ia.ExternalIcon=Ra,function(t){t.D1=v.h1`
32
22
  ${t=>b`
33
- ${Na("D1",t.weight,t.paragraph)}
23
+ ${Da("D1",t.weight,t.paragraph)}
34
24
  color: ${Fa.Neutral[1]};
35
- ${Wa(t.inline,t.paragraph)}
25
+ ${za(t.inline,t.paragraph)}
36
26
  `}
37
27
  `,t.D2=v.h1`
38
28
  ${t=>b`
39
- ${Na("D2",t.weight,t.paragraph)}
29
+ ${Da("D2",t.weight,t.paragraph)}
40
30
  color: ${Fa.Neutral[1]};
41
- ${Wa(t.inline,t.paragraph)}
31
+ ${za(t.inline,t.paragraph)}
42
32
  `}
43
33
  `,t.D3=v.h1`
44
34
  ${t=>b`
45
- ${Na("D3",t.weight,t.paragraph)}
35
+ ${Da("D3",t.weight,t.paragraph)}
46
36
  color: ${Fa.Neutral[1]};
47
- ${Wa(t.inline,t.paragraph)}
37
+ ${za(t.inline,t.paragraph)}
48
38
  `}
49
39
  `,t.D4=v.h1`
50
40
  ${t=>b`
51
- ${Na("D4",t.weight,t.paragraph)}
41
+ ${Da("D4",t.weight,t.paragraph)}
52
42
  color: ${Fa.Neutral[1]};
53
- ${Wa(t.inline,t.paragraph)}
43
+ ${za(t.inline,t.paragraph)}
54
44
  `}
55
45
  `,t.DBody=v.h1`
56
46
  ${t=>b`
57
- ${Na("DBody",t.weight,t.paragraph)}
47
+ ${Da("DBody",t.weight,t.paragraph)}
58
48
  color: ${Fa.Neutral[1]};
59
- ${Wa(t.inline,t.paragraph)}
49
+ ${za(t.inline,t.paragraph)}
60
50
  `}
61
51
  `,t.H1=v.h1`
62
52
  ${t=>b`
63
- ${Na("H1",t.weight,t.paragraph)}
53
+ ${Da("H1",t.weight,t.paragraph)}
64
54
  color: ${Fa.Neutral[1]};
65
- ${Wa(t.inline,t.paragraph)}
55
+ ${za(t.inline,t.paragraph)}
66
56
  `}
67
57
  `,t.H2=v.h2`
68
58
  ${t=>b`
69
- ${Na("H2",t.weight,t.paragraph)}
59
+ ${Da("H2",t.weight,t.paragraph)}
70
60
  color: ${Fa.Neutral[1]};
71
- ${Wa(t.inline,t.paragraph)}
61
+ ${za(t.inline,t.paragraph)}
72
62
  `}
73
63
  `,t.H3=v.h3`
74
64
  ${t=>b`
75
- ${Na("H3",t.weight,t.paragraph)}
65
+ ${Da("H3",t.weight,t.paragraph)}
76
66
  color: ${Fa.Neutral[1]};
77
- ${Wa(t.inline,t.paragraph)}
67
+ ${za(t.inline,t.paragraph)}
78
68
  `}
79
69
  `,t.H4=v.h4`
80
70
  ${t=>b`
81
- ${Na("H4",t.weight,t.paragraph)}
71
+ ${Da("H4",t.weight,t.paragraph)}
82
72
  color: ${Fa.Neutral[1]};
83
- ${Wa(t.inline,t.paragraph)}
73
+ ${za(t.inline,t.paragraph)}
84
74
  `}
85
75
  `,t.H5=v.h5`
86
76
  ${t=>b`
87
- ${Na("H5",t.weight,t.paragraph)}
77
+ ${Da("H5",t.weight,t.paragraph)}
88
78
  color: ${Fa.Neutral[1]};
89
- ${Wa(t.inline,t.paragraph)}
79
+ ${za(t.inline,t.paragraph)}
90
80
  `}
91
81
  `,t.H6=v.h6`
92
82
  ${t=>b`
93
- ${Na("H6",t.weight,t.paragraph)}
83
+ ${Da("H6",t.weight,t.paragraph)}
94
84
  color: ${Fa.Neutral[1]};
95
- ${Wa(t.inline,t.paragraph)}
85
+ ${za(t.inline,t.paragraph)}
96
86
  `}
97
87
  `,t.Body=v.p`
98
88
  ${t=>b`
99
- ${Na("Body",t.weight,t.paragraph)}
89
+ ${Da("Body",t.weight,t.paragraph)}
100
90
  color: ${Fa.Neutral[1]};
101
- ${Wa(t.inline,t.paragraph)}
91
+ ${za(t.inline,t.paragraph)}
102
92
  `}
103
93
  `,t.BodySmall=v.p`
104
94
  ${t=>b`
105
- ${Na("BodySmall",t.weight,t.paragraph)}
95
+ ${Da("BodySmall",t.weight,t.paragraph)}
106
96
  color: ${Fa.Neutral[1]};
107
- ${Wa(t.inline,t.paragraph)}
97
+ ${za(t.inline,t.paragraph)}
108
98
  `}
109
99
  `,t.XSmall=v.span`
110
100
  ${t=>b`
111
- ${Na("XSmall",t.weight,t.paragraph)}
101
+ ${Da("XSmall",t.weight,t.paragraph)}
112
102
  color: ${Fa.Neutral[1]};
113
- ${Wa(t.inline,t.paragraph)}
103
+ ${za(t.inline,t.paragraph)}
114
104
  `}
115
- `,t.Hyperlink={Default:t=>Ua({...t,textStyle:"Body"}),Small:t=>Ua({...t,textStyle:"BodySmall"})}}(qa||(qa={}));const La=v.a`
105
+ `,t.Hyperlink={Default:t=>Wa({...t,textStyle:"Body"}),Small:t=>Wa({...t,textStyle:"BodySmall"})}}(Va||(Va={}));const Ta=v.a`
116
106
  ${t=>b`
117
- ${Na(t.textStyle,t.weight)}
107
+ ${Da(t.textStyle,t.weight)}
118
108
  color: ${Fa.Primary};
119
109
  text-decoration: none;
120
110
 
@@ -122,64 +112,69 @@ import{jsx as t,jsxs as e}from"react/jsx-runtime";import*as n from"react";import
122
112
  :active,
123
113
  :focus {
124
114
  color: ${Fa.Secondary};
115
+
116
+ svg {
117
+ color: ${Fa.Secondary};
118
+ }
125
119
  }
126
120
  `}
127
- `,Qa=v(za)`
121
+ `,Na=v(Ea)`
122
+ height: 1rem;
123
+ width: 1rem;
128
124
  margin-left: 0.4rem;
129
- `,Ua=({external:n=!1,children:r,...i})=>e(La,{...i,children:[r,n&&t(Qa,{type:"external"})]}),Ga=v.div`
125
+ vertical-align: middle;
126
+ `,Wa=({external:t=!1,children:r,...i})=>e(Ta,{...i,children:[r,t&&n(Na,{})]}),qa="all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)",La=v.div`
130
127
  border: 1px solid ${Fa.Neutral[5]};
131
128
  border-radius: 4px;
132
129
  margin-bottom: 2rem;
133
- `,Xa=v(si.div)`
130
+ `,Qa=v(Kr.div)`
134
131
  overflow: hidden;
135
- `,Za=v.div`
132
+ `,Ua=v.div`
136
133
  height: max-content;
137
- `,Ja=v.div`
134
+ `,Ga=v.div`
138
135
  border-top: 1px solid ${Fa.Neutral[5]};
139
- `,Ya=v.div`
136
+ `,Xa=v.div`
140
137
  padding: 1rem 2rem;
141
138
  display: flex;
142
139
  align-items: center;
143
140
  justify-content: space-between;
144
141
 
145
- ${Aa.mobileM} {
142
+ ${xa.mobileM} {
146
143
  padding: 1rem;
147
144
  }
148
- `,Ka=v(qa.H3)`
145
+ `,Za=v(Va.H3)`
149
146
  word-wrap: break-word;
150
147
  margin-right: 2rem;
151
148
  display: block;
152
149
  flex: 1;
153
150
 
154
- ${Aa.mobileM} {
155
- ${Na("BodySmall","semibold")}
151
+ ${xa.mobileM} {
152
+ ${Da("BodySmall","semibold")}
156
153
  margin-right: 1rem;
157
154
  }
158
- `,ts=v.span`
155
+ `,Ja=v.span`
159
156
  margin-left: 0.625rem;
160
157
  font-size: 1.5rem;
161
158
  vertical-align: middle;
162
159
 
163
- svg {
164
- height: 1.5rem;
165
- width: 1.5rem;
166
- }
167
-
168
160
  ${t=>{switch(t.$displayState){case"error":return b`
169
161
  color: ${Fa.Validation.Red.Icon(t)};
170
162
  `;case"warning":return b`
171
163
  color: ${Fa.Validation.Orange.Icon(t)};
172
164
  `}}}
173
- `,es=v.div`
165
+ `,Ya=v(oi)`
166
+ height: 1.5rem;
167
+ width: 1.5rem;
168
+ `,Ka=v.div`
174
169
  display: flex;
175
170
  ${t=>{if(t.$collapsible)return b`
176
171
  margin-right: 2rem;
177
172
 
178
- ${Aa.mobileM} {
173
+ ${xa.mobileM} {
179
174
  margin-right: 1rem;
180
175
  }
181
176
  `}}
182
- `,ns=v.button`
177
+ `,ts=v.button`
183
178
  background: transparent;
184
179
  border: none;
185
180
  cursor: pointer;
@@ -188,17 +183,17 @@ import{jsx as t,jsxs as e}from"react/jsx-runtime";import*as n from"react";import
188
183
  display: flex;
189
184
  align-items: center;
190
185
 
191
- ${Aa.mobileM} {
186
+ ${xa.mobileM} {
192
187
  margin: -1rem -1rem -1rem 0;
193
188
  }
194
- `;v(qa.H4)`
189
+ `;v(Va.H4)`
195
190
  color: ${Fa.Primary};
196
- `;const rs=v.div`
191
+ `;const es=v.div`
197
192
  transform: rotate(${t=>t.$expanded?180:0}deg);
198
- transition: ${Ea};
199
- `,is=v(za)`
193
+ transition: ${qa};
194
+ `,ns=v(ti)`
200
195
  color: ${Fa.Neutral[3]};
201
- font-weight: bold;
202
- font-size: 1.2rem;
203
- `,os=({children:n,title:r,collapsible:i=!0,expanded:s=!1,callToActionComponent:l,displayState:c="default",className:u,subComponentTestIds:d,...h})=>{const[p,f]=a(!i||s),g=function(t){void 0===t&&(t={});var e=t.skipOnMount,n=void 0!==e&&e,r=t.refreshMode,i=t.refreshRate,s=void 0===i?1e3:i,l=t.refreshOptions,c=t.handleWidth,u=void 0===c||c,d=t.handleHeight,h=void 0===d||d,p=t.targetRef,f=t.observerOptions,g=t.onResize,m=o(n),y=o(null),v=null!=p?p:y,b=o(),w=a({width:void 0,height:void 0}),_=w[0],S=w[1];return _t((function(){if(!vt()){var t=wt(g,S,u,h);b.current=mt((function(e){(u||h)&&e.forEach((function(e){var n=e&&e.contentRect||{},r=n.width,i=n.height;!m.current&&!vt()&&t({width:r,height:i}),m.current=!1}))}),r,s,l);var e=new window.ResizeObserver(b.current);return v.current&&e.observe(v.current,f),function(){e.disconnect();var t=b.current;t&&t.cancel&&t.cancel()}}}),[r,s,l,u,h,g,f,v.current]),z({ref:v},_)}(),m=g.ref,y=function(t,e){const n=Tt.fun(t),[[r],i]=Mr(1,n?t:[t],n?e||[]:e);return n||2==arguments.length?[r,i]:r}({height:p?g.height:0});return e(Ga,{className:u,"data-testid":h["data-testid"],children:[e(Ya,{"data-testid":"header",children:[e(Ka,{id:"title","data-testid":d?.title||"title",weight:"semibold",children:[r,(()=>{switch(c){case"error":case"warning":return t(ts,{$displayState:c,"data-testid":d?.displayStateIcon||`${c}-icon`,children:t(k,{})});default:return null}})()]}),l&&t(es,{$collapsible:i,"data-testid":"call-to-action-container",children:l}),i&&t(ns,{onClick:()=>{f(!p)},type:"button","data-testid":d?.handle||"handle",children:t(rs,{$expanded:p,children:t(is,{type:"chevron-down"})})})]}),i?t(Xa,{style:y,"data-testid":"expandable-container",children:t(Ja,{ref:m,children:n})}):t(Za,{"data-testid":"non-expandable-container",children:t(Ja,{children:n})})]})};export{os as BoxContainer};
196
+ height: 1.2rem;
197
+ width: 1.2rem;
198
+ `,rs=({children:t,title:r,collapsible:i=!0,expanded:s=!1,callToActionComponent:l,displayState:c="default",className:u,subComponentTestIds:d,...h})=>{const[p,f]=a(!i||s),g=function(t){void 0===t&&(t={});var e=t.skipOnMount,n=void 0!==e&&e,r=t.refreshMode,i=t.refreshRate,s=void 0===i?1e3:i,l=t.refreshOptions,c=t.handleWidth,u=void 0===c||c,d=t.handleHeight,h=void 0===d||d,p=t.targetRef,f=t.observerOptions,g=t.onResize,m=o(n),y=o(null),v=null!=p?p:y,b=o(),w=a({width:void 0,height:void 0}),S=w[0],F=w[1];return pt((function(){if(!ut()){var t=ht(g,F,u,h);b.current=lt((function(e){(u||h)&&e.forEach((function(e){var n=e&&e.contentRect||{},r=n.width,i=n.height;!m.current&&!ut()&&t({width:r,height:i}),m.current=!1}))}),r,s,l);var e=new window.ResizeObserver(b.current);return v.current&&e.observe(v.current,f),function(){e.disconnect();var t=b.current;t&&t.cancel&&t.cancel()}}}),[r,s,l,u,h,g,f,v.current]),_({ref:v},S)}(),m=g.ref,y=function(t,e){const n=jt.fun(t),[[r],i]=Pr(1,n?t:[t],n?e||[]:e);return n||2==arguments.length?[r,i]:r}({height:p?g.height:0});return e(La,{className:u,"data-testid":h["data-testid"],children:[e(Xa,{"data-testid":"header",children:[e(Za,{id:"title","data-testid":d?.title||"title",weight:"semibold",children:[r,(()=>{switch(c){case"error":case"warning":return n(Ja,{$displayState:c,"data-testid":d?.displayStateIcon||`${c}-icon`,children:n(Ya,{})});default:return null}})()]}),l&&n(Ka,{$collapsible:i,"data-testid":"call-to-action-container",children:l}),i&&n(ts,{onClick:()=>{f(!p)},type:"button","data-testid":d?.handle||"handle",children:n(es,{$expanded:p,children:n(ns,{})})})]}),i?n(Qa,{style:y,"data-testid":"expandable-container",children:n(Ga,{ref:m,children:t})}):n(Ua,{"data-testid":"non-expandable-container",children:n(Ga,{children:t})})]})};export{rs as BoxContainer};
204
199
  //# sourceMappingURL=index.js.map