cross-country 1.2.21 → 1.2.22

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 (259) hide show
  1. package/dist/Color-F6OSRLHC-BbLcUd-T.js +575 -0
  2. package/dist/{bolt-Bw4E_fgS.js → bolt-BLbYxvOV.js} +6 -5
  3. package/dist/bundle.css +36 -31
  4. package/dist/colour-util-Bzfca_cM.js +775 -0
  5. package/dist/components/atoms/circle/__tests__/circle.test.js +2 -2
  6. package/dist/components/atoms/column/__tests__/column.test.js +2 -2
  7. package/dist/components/atoms/index.js +1 -1
  8. package/dist/components/atoms/list/index.js +4 -0
  9. package/dist/components/atoms/list/list-item/index.js +4 -0
  10. package/dist/components/atoms/list/list-item/list-item.js +20 -0
  11. package/dist/components/atoms/list/list.js +33 -0
  12. package/dist/components/atoms/radio/index.js +2 -2
  13. package/dist/components/atoms/radio/radio.js +42 -3
  14. package/dist/components/atoms/text/animate-number/animate-number.js +1 -1
  15. package/dist/components/atoms/text/index.js +1 -1
  16. package/dist/components/atoms/text/input/__stories__/state-machine-fetch-dragons.js +3 -3
  17. package/dist/components/atoms/text/input/input-text-machine.js +3 -3
  18. package/dist/components/atoms/text/input/state-machine-text-input.js +1 -1
  19. package/dist/components/atoms/text/span/__stories__/span-story.js +6 -5
  20. package/dist/components/index.js +116 -116
  21. package/dist/components/molecules/autocomplete/autocomplete-machine.js +3 -3
  22. package/dist/components/molecules/autocomplete/autocomplete.js +1 -1
  23. package/dist/components/molecules/card/amazon/amazon-card.js +7 -6
  24. package/dist/components/molecules/card/builder/card-builder-machine/card-builder-machine.js +1 -1
  25. package/dist/components/molecules/card/builder/card-builder-machine/card-service-events.js +2 -2
  26. package/dist/components/molecules/card/builder/card-builder-machine/platform-states-amazon.js +1 -1
  27. package/dist/components/molecules/card/builder/card-builder-machine/platform-states-common.js +1 -1
  28. package/dist/components/molecules/card/builder/card-builder.js +1 -1
  29. package/dist/components/molecules/card/builder/card-editor.js +7 -6
  30. package/dist/components/molecules/card/card.js +6 -5
  31. package/dist/components/molecules/carousel/carousel.js +6 -5
  32. package/dist/components/molecules/day-number/day-number.js +6 -5
  33. package/dist/components/molecules/field/field.js +6 -5
  34. package/dist/components/molecules/gold-leaf/gold-leaf-view/__tests__/gold-leaf-view.test.js +3 -3
  35. package/dist/components/molecules/gold-leaf/gold-leaf-view/controls/gold-leaf-view-controls.js +8 -7
  36. package/dist/components/molecules/gold-leaf/gold-leaf-view/email/gold-leaf-email-view.js +7 -6
  37. package/dist/components/molecules/gold-leaf/gold-leaf-view/gold-leaf-view.js +7 -6
  38. package/dist/components/molecules/gold-leaf/gold-leaf-view/index.js +1 -1
  39. package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-leaf-image.js +7 -6
  40. package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.js +40 -0
  41. package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-image-card.js +8 -7
  42. package/dist/components/molecules/gold-leaf/gold-leaf.js +1 -1
  43. package/dist/components/molecules/header/Header.js +10 -9
  44. package/dist/components/molecules/hero/hero.js +7 -6
  45. package/dist/components/molecules/icons/index.js +4 -3
  46. package/dist/components/molecules/icons/x/x.js +6 -5
  47. package/dist/components/molecules/index.js +8 -7
  48. package/dist/components/molecules/key-value-pairs/__tests__/key-value-pairs.js +1 -1
  49. package/dist/components/molecules/key-value-pairs/key-value-pairs.js +10 -9
  50. package/dist/components/molecules/keywords/keywords.js +6 -5
  51. package/dist/components/molecules/loading/__tests__/loading.test.js +1 -1
  52. package/dist/components/molecules/log-error-boundary/__stories__/log-error-boundary-story.js +1 -1
  53. package/dist/components/molecules/log-error-boundary/__tests__/log-error-boundary.test.js +2 -2
  54. package/dist/components/molecules/log-error-boundary/log-error-boundary.js +6 -5
  55. package/dist/components/molecules/modal/modal.js +6 -5
  56. package/dist/components/molecules/policies/index.js +4 -3
  57. package/dist/components/molecules/policies/privacy-policy.js +8 -7
  58. package/dist/components/molecules/policies/terms-of-use.js +8 -7
  59. package/dist/components/molecules/quote/quote.js +6 -5
  60. package/dist/components/molecules/radiogroup/__stories__/radio-group-form-story.js +12 -11
  61. package/dist/components/molecules/radiogroup/__stories__/radio-group-react-hook-form-story.js +15 -14
  62. package/dist/components/molecules/radiogroup/radiogroup.js +9 -9
  63. package/dist/components/molecules/related-articles/related-articles.js +15 -14
  64. package/dist/components/molecules/search/search.js +6 -5
  65. package/dist/components/molecules/stagger/stagger.js +6 -5
  66. package/dist/components/molecules/tile/corners.js +1 -1
  67. package/dist/components/molecules/tile/index.js +1 -1
  68. package/dist/components/molecules/tile/tile-interactive.js +5 -4
  69. package/dist/components/molecules/tile/tile.js +1 -1
  70. package/dist/components/molecules/time-progress/__tests__/progress.test.js +1 -1
  71. package/dist/components/molecules/time-progress/pilot/index.js +2 -3
  72. package/dist/components/molecules/time-progress/progress-over-year.js +6 -5
  73. package/dist/components/molecules/time-progress/progress.js +6 -5
  74. package/dist/components/molecules/user/anon-user.js +6 -5
  75. package/dist/components/molecules/user/user.js +7 -6
  76. package/dist/components/molecules/venn-diagram/__tests__/venn-diagram.tests.js +2 -2
  77. package/dist/components/molecules/venn-diagram/venn-diagram-circle.js +6 -5
  78. package/dist/components/molecules/venn-diagram/venn-diagram.js +6 -5
  79. package/dist/components/molecules/wallpaper/__tests__/wallpaper.tests.js +2 -2
  80. package/dist/components/molecules/wallpaper/wallpaper.js +1 -1
  81. package/dist/components/molecules/wrapper/__stories__/wrapper-children-story.js +6 -5
  82. package/dist/components/organisms/actors/actor/actor-builder-machine.js +2 -2
  83. package/dist/components/organisms/actors/actor/actor-builder.js +6 -5
  84. package/dist/components/organisms/actors/actor/actor.js +5 -4
  85. package/dist/components/organisms/actors/actor/index.js +1 -1
  86. package/dist/components/organisms/actors/animal/animal.js +1 -1
  87. package/dist/components/organisms/actors/monsters/troll/troll-machine.js +2 -2
  88. package/dist/components/organisms/actors/monsters/troll/troll.js +6 -5
  89. package/dist/components/organisms/actors/party/cleric/cleric.js +1 -1
  90. package/dist/components/organisms/actors/party/hunter/hunter.js +1 -1
  91. package/dist/components/organisms/actors/party/warrior/warrior.js +1 -1
  92. package/dist/components/organisms/actors/party/wizard/wizard.js +1 -1
  93. package/dist/components/organisms/actors/wisp/wisp.js +1 -1
  94. package/dist/components/organisms/ads/ad-card.js +6 -5
  95. package/dist/components/organisms/animation/animate-actor/animate-actor.js +6 -5
  96. package/dist/components/organisms/animation/one-day/one-day.js +15 -14
  97. package/dist/components/organisms/animation/reverse-text-animation/reverse-text-animation.js +6 -5
  98. package/dist/components/organisms/bento/layouts/five-by-four/bento-five-by-four.js +9 -8
  99. package/dist/components/organisms/bento/layouts/four-by-four/bento-four-by-four.js +6 -5
  100. package/dist/components/organisms/bento/layouts/three-by-three/bento-three-by-three.js +6 -5
  101. package/dist/components/organisms/bento/layouts/two-by-two/bento-two-by-two.js +6 -5
  102. package/dist/components/organisms/blog/__stories__/blog-story.js +9 -8
  103. package/dist/components/organisms/blog/blog-post/__stories__/blog-post-story.js +6 -5
  104. package/dist/components/organisms/blog/blog-post/blog-post-machine/build-listicle-machine.js +1 -1
  105. package/dist/components/organisms/blog/blog-post/blog-post-machine/delete-listicle-item.js +2 -2
  106. package/dist/components/organisms/blog/blog-post/blog-post-machine/load-listicle.js +2 -2
  107. package/dist/components/organisms/blog/blog-post/blog-post-machine/manage-listicle-items.js +1 -1
  108. package/dist/components/organisms/blog/blog-post/blog-post-machine/save-listicle-item.js +2 -2
  109. package/dist/components/organisms/blog/blog-post/blog-post-machine/save-listicle.js +2 -2
  110. package/dist/components/organisms/blog/blog-post/blog-post-machine/update-listice-item.js +2 -2
  111. package/dist/components/organisms/blog/blog-post/blog-post.js +6 -5
  112. package/dist/components/organisms/blog/blog-post-list.js +12 -11
  113. package/dist/components/organisms/blog/blog.js +6 -5
  114. package/dist/components/organisms/branch/branch.js +6 -5
  115. package/dist/components/organisms/branches/__tests__/branch-list.test.js +6 -4
  116. package/dist/components/organisms/branches/branch-list.js +61 -39
  117. package/dist/components/organisms/branches/branches.js +7 -6
  118. package/dist/components/organisms/calendar/calendar.js +6 -5
  119. package/dist/components/organisms/charts/chart/__stories__/data-set.js +1 -1
  120. package/dist/components/organisms/charts/chart/chart-gold-leaf/chart-gold-leaf.js +4 -3
  121. package/dist/components/organisms/clusters/cluster.js +6 -5
  122. package/dist/components/organisms/json-map-tile-grid/index.js +1 -1
  123. package/dist/components/organisms/json-map-tile-grid/json-map-tile-grid.js +6 -4
  124. package/dist/components/organisms/listicle/__stories__/andor-right-click-story.js +6 -5
  125. package/dist/components/organisms/listicle/__stories__/listicle-fb-v-canada-story.js +6 -5
  126. package/dist/components/organisms/listicle/__stories__/listicle-story.js +6 -5
  127. package/dist/components/organisms/listicle/build-listicle-machine/build-listicle-machine.js +1 -1
  128. package/dist/components/organisms/listicle/build-listicle-machine/delete-listicle-item.js +2 -2
  129. package/dist/components/organisms/listicle/build-listicle-machine/load-listicle.js +2 -2
  130. package/dist/components/organisms/listicle/build-listicle-machine/manage-listicle-items.js +1 -1
  131. package/dist/components/organisms/listicle/build-listicle-machine/save-listicle-item.js +2 -2
  132. package/dist/components/organisms/listicle/build-listicle-machine/save-listicle.js +2 -2
  133. package/dist/components/organisms/listicle/build-listicle-machine/update-listice-item.js +2 -2
  134. package/dist/components/organisms/listicle/edit-listicle/edit-listicle.js +13 -12
  135. package/dist/components/organisms/listicle/edit-listicle-item-list/edit-listicle-item-list.js +6 -5
  136. package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item-input.js +12 -11
  137. package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item.js +6 -5
  138. package/dist/components/organisms/listicle/listicle-builder.js +14 -13
  139. package/dist/components/organisms/listicle/listicle-item-list.js +12 -11
  140. package/dist/components/organisms/listicle/listicle.js +6 -5
  141. package/dist/components/organisms/listicle/post-link.js +7 -6
  142. package/dist/components/organisms/login/__stories__/login-story.js +6 -5
  143. package/dist/components/organisms/login/login-fetching-transition.js +6 -5
  144. package/dist/components/organisms/login/login-fields-transition.js +21 -20
  145. package/dist/components/organisms/login/login-response-transition.js +66 -11
  146. package/dist/components/organisms/login/login-submit-transition.js +6 -5
  147. package/dist/components/organisms/login/login-view.js +7 -6
  148. package/dist/components/organisms/metrics/metrics.js +6 -5
  149. package/dist/components/organisms/palettes/palettes.js +14 -12
  150. package/dist/components/organisms/player/player.js +6 -5
  151. package/dist/components/organisms/registration/password-strength-helper.js +11 -10
  152. package/dist/components/organisms/registration/post-registration.js +2 -2
  153. package/dist/components/organisms/registration/registration-form.js +6 -5
  154. package/dist/components/organisms/registration/registration-machine.js +2 -2
  155. package/dist/components/organisms/registration/registration-response.js +6 -5
  156. package/dist/components/organisms/registration/registration.js +7 -6
  157. package/dist/components/organisms/stage/stage.js +9 -8
  158. package/dist/components/organisms/survey/__stories__/build-form-story.js +6 -5
  159. package/dist/components/organisms/survey/build-form-machine.js +2 -2
  160. package/dist/components/organisms/survey/build-form.js +8 -7
  161. package/dist/components/organisms/survey/final-form.js +8 -7
  162. package/dist/components/organisms/survey/question/edit/__stories__/edit-question-story.js +6 -5
  163. package/dist/components/organisms/survey/question/edit/add-media.js +6 -5
  164. package/dist/components/organisms/survey/question/edit/add-question/__stories__/add-question-story.js +6 -5
  165. package/dist/components/organisms/survey/question/edit/add-question/add-question.js +30 -29
  166. package/dist/components/organisms/survey/question/edit/answer/answer-input.js +6 -5
  167. package/dist/components/organisms/survey/question/edit/answer-input.js +6 -5
  168. package/dist/components/organisms/survey/question/edit/edit-multiple-choice.js +6 -5
  169. package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list-machine.js +2 -2
  170. package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list.js +7 -6
  171. package/dist/components/organisms/survey/question/edit/edit-option-list/option-input.js +6 -5
  172. package/dist/components/organisms/survey/question/edit/edit-option-list/option.js +7 -6
  173. package/dist/components/organisms/survey/question/edit/question-answer-input.js +6 -5
  174. package/dist/components/organisms/survey/question/take/__stories__/multiple-choice-story.js +6 -5
  175. package/dist/components/organisms/survey/question/take/__stories__/take-answer-date-time-input-story.js +6 -5
  176. package/dist/components/organisms/survey/question/take/__stories__/take-answer-input-story.js +6 -5
  177. package/dist/components/organisms/survey/question/take/inputs/input-manager.js +6 -5
  178. package/dist/components/organisms/survey/question/take/multiple-choice.js +6 -5
  179. package/dist/components/organisms/survey/question/take/take-answer-input.js +12 -11
  180. package/dist/components/organisms/tile-grid/__tests__/tile-grid.tests.js +3 -3
  181. package/dist/components/organisms/tile-grid/grid-row.js +6 -5
  182. package/dist/components/organisms/tile-grid/index.js +1 -1
  183. package/dist/components/organisms/tile-grid/island-tile-grid.js +12 -11
  184. package/dist/components/organisms/tile-grid/tile-grid.js +6 -4
  185. package/dist/components/organisms/worlds/area-of-effect/__stories__/area-of-affect-story.js +6 -5
  186. package/dist/components/organisms/worlds/area-of-effect/area-of-affect.js +31 -29
  187. package/dist/components/organisms/worlds/island/__stories__/island-story.js +18 -16
  188. package/dist/components/organisms/worlds/island/__stories__/island-util.js +25 -23
  189. package/dist/components/pages/home/headwinds/header/headwinds-header.js +6 -5
  190. package/dist/components/pages/home/headwinds/headwinds-footer.js +6 -5
  191. package/dist/components/pages/home/headwinds/headwinds-hero.js +6 -5
  192. package/dist/components/pages/home/headwinds/headwinds-sidequest.js +35 -34
  193. package/dist/components/pages/home/headwinds/home.js +9 -8
  194. package/dist/components/pages/index.js +6 -5
  195. package/dist/components/pages/profile/headwinds/headwinds-profile.js +21 -20
  196. package/dist/components/pages/profile/index.js +4 -3
  197. package/dist/components/templates/articles/article/article.js +6 -5
  198. package/dist/components/templates/home/headwinds/headwinds-home-hero.js +6 -5
  199. package/dist/components/templates/home/headwinds/headwinds-home.js +6 -5
  200. package/dist/components/templates/home/home.js +10 -9
  201. package/dist/fp-util-DZLSTUg5.js +8 -0
  202. package/dist/gold-leaf-view-CgRraK2i.js +183 -0
  203. package/dist/gold-leaf-view.module-p3mWnO60.js +17 -0
  204. package/dist/headline-DzDFQZ3e.js +11 -0
  205. package/dist/image-find-util-DMX6BcO-.js +1036 -0
  206. package/dist/index-BTF1caLu.js +2529 -0
  207. package/dist/{index-COQaJqs5.js → index-OdyFkztm.js} +3670 -2660
  208. package/dist/{index-DsigmIMS.js → index-_cvPLH70.js} +1 -1
  209. package/dist/index.esm-DGm91C_6.js +944 -0
  210. package/dist/index.js +143 -140
  211. package/dist/lib/components/atoms/list/index.d.ts +2 -0
  212. package/dist/lib/components/atoms/list/list-item/index.d.ts +2 -0
  213. package/dist/lib/components/atoms/list/list-item/list-item.d.ts +10 -0
  214. package/dist/lib/components/atoms/list/list.d.ts +12 -0
  215. package/dist/lib/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.d.ts +4 -0
  216. package/dist/lib/components/organisms/branch/branch.d.ts +3 -1
  217. package/dist/lib/components/organisms/branches/__stories__/branches.stories.d.ts +7 -0
  218. package/dist/lib/components/organisms/branches/branch-list.d.ts +4 -1
  219. package/dist/lib/models/TreeModel.d.ts +12 -0
  220. package/dist/lib/models/index.d.ts +1 -0
  221. package/dist/lib/utils/golds/feed-util.d.ts +17 -0
  222. package/dist/lib/utils/index.d.ts +5 -0
  223. package/dist/list.module-pjS_KHqp.js +10 -0
  224. package/dist/{log-2a4cc478.esm-HFv7vQ7j.js → log-2a4cc478.esm-BdzQp5f-.js} +15 -15
  225. package/dist/{log-error-boundary-story-BF8rmHhr.js → log-error-boundary-story-CcyM__Yt.js} +6541 -7185
  226. package/dist/{magic-string.es-VsGWiGpd.js → magic-string.es-QkQE39Zh.js} +11 -6
  227. package/dist/{radio-BTUtRmLM.js → mobile-detect-CWVWWCSg.js} +12 -51
  228. package/dist/models/TreeModel.js +12 -0
  229. package/dist/models/index.js +3 -2
  230. package/dist/{react-spring_web.modern-nSq5Xzxb.js → react-spring_web.modern-ClBJWBW2.js} +281 -273
  231. package/dist/{react.esm-BEaxtOYu.js → react.esm-BpVcViTQ.js} +2197 -2181
  232. package/dist/string-util-D7tmqJRS.js +35 -0
  233. package/dist/table-data-BnRZ5F7y.js +16 -0
  234. package/dist/utils/golds/feed-util.js +240 -0
  235. package/dist/utils/index.js +12 -0
  236. package/dist/{vi.YFlodzP_-CjWVzrI3.js → vi.YFlodzP_-C3qjkUdf.js} +2 -2
  237. package/dist/{xstate-actors.esm-Ba6reXm_.js → xstate-actors.esm-CcLF5JHw.js} +1 -1
  238. package/dist/{xstate-react.esm-Ct8KIFgA.js → xstate-react.esm-DWdE0_Ay.js} +1 -1
  239. package/dist/{xstate.esm-Bo02HSs2.js → xstate.esm-COAqQ2fq.js} +11 -11
  240. package/package.json +4 -2
  241. package/dist/Color-ERTF36HU-DRLqcX19.js +0 -358
  242. package/dist/_getTag-CqbPZ7Cl.js +0 -449
  243. package/dist/components/organisms/branches/__stories__/branches-story.js +0 -6
  244. package/dist/components/organisms/branches/branch-list.types.js +0 -1
  245. package/dist/feed-util-CZfVh6cR.js +0 -244
  246. package/dist/fp-util-4N0NK_eU.js +0 -8
  247. package/dist/gold-leaf-view-BAGw5McJ.js +0 -117
  248. package/dist/gold-leaf-view.module-BTNjKEeW.js +0 -17
  249. package/dist/headline-DuHL8hAt.js +0 -11
  250. package/dist/image-find-util-Cl2ZJHfC.js +0 -41
  251. package/dist/index-BsYJgl86.js +0 -3853
  252. package/dist/index-Cdg9lY68.js +0 -542
  253. package/dist/index.esm-BrPDxyfz.js +0 -933
  254. package/dist/lib/components/organisms/branches/__stories__/branches-story.d.ts +0 -2
  255. package/dist/lib/components/organisms/branches/branch-list.types.d.ts +0 -5
  256. package/dist/list-BkQjCFcb.js +0 -14
  257. package/dist/list-item-DyDjznkQ.js +0 -8
  258. package/dist/login-response-transition-Dws0eBbH.js +0 -123
  259. package/dist/table-data-PGM-_ef9.js +0 -16
@@ -1,30 +1,30 @@
1
1
  import * as ce from "react";
2
2
  import { useState as Pt, useRef as H, useEffect as Ve, useLayoutEffect as Ln, forwardRef as Gn, useCallback as Hn, useContext as It, useMemo as ye } from "react";
3
3
  import { r as Wn } from "./index-DukGzmpD.js";
4
- var At = xe(), w = (e) => Ee(e, At), kt = xe();
5
- w.write = (e) => Ee(e, kt);
4
+ var At = xe(), S = (e) => Ee(e, At), kt = xe();
5
+ S.write = (e) => Ee(e, kt);
6
6
  var Ke = xe();
7
- w.onStart = (e) => Ee(e, Ke);
7
+ S.onStart = (e) => Ee(e, Ke);
8
8
  var Rt = xe();
9
- w.onFrame = (e) => Ee(e, Rt);
9
+ S.onFrame = (e) => Ee(e, Rt);
10
10
  var Ot = xe();
11
- w.onFinish = (e) => Ee(e, Ot);
11
+ S.onFinish = (e) => Ee(e, Ot);
12
12
  var le = [];
13
- w.setTimeout = (e, t) => {
14
- const n = w.now() + t, i = () => {
13
+ S.setTimeout = (e, t) => {
14
+ const n = S.now() + t, i = () => {
15
15
  const r = le.findIndex((a) => a.cancel == i);
16
16
  ~r && le.splice(r, 1), ne -= ~r ? 1 : 0;
17
17
  }, s = { time: n, handler: e, cancel: i };
18
18
  return le.splice(dn(n), 0, s), ne += 1, fn(), s;
19
19
  };
20
20
  var dn = (e) => ~(~le.findIndex((t) => t.time > e) || ~le.length);
21
- w.cancel = (e) => {
21
+ S.cancel = (e) => {
22
22
  Ke.delete(e), Rt.delete(e), Ot.delete(e), At.delete(e), kt.delete(e);
23
23
  };
24
- w.sync = (e) => {
25
- lt = !0, w.batchedUpdates(e), lt = !1;
24
+ S.sync = (e) => {
25
+ lt = !0, S.batchedUpdates(e), lt = !1;
26
26
  };
27
- w.throttle = (e) => {
27
+ S.throttle = (e) => {
28
28
  let t;
29
29
  function n() {
30
30
  try {
@@ -34,7 +34,7 @@ w.throttle = (e) => {
34
34
  }
35
35
  }
36
36
  function i(...s) {
37
- t = s, w.onStart(n);
37
+ t = s, S.onStart(n);
38
38
  }
39
39
  return i.handler = e, i.cancel = () => {
40
40
  Ke.delete(n), t = null;
@@ -45,13 +45,13 @@ var Ct = typeof window < "u" ? window.requestAnimationFrame : (
45
45
  () => {
46
46
  }
47
47
  );
48
- w.use = (e) => Ct = e;
49
- w.now = typeof performance < "u" ? () => performance.now() : Date.now;
50
- w.batchedUpdates = (e) => e();
51
- w.catch = console.error;
52
- w.frameLoop = "always";
53
- w.advance = () => {
54
- w.frameLoop !== "demand" ? console.warn(
48
+ S.use = (e) => Ct = e;
49
+ S.now = typeof performance < "u" ? () => performance.now() : Date.now;
50
+ S.batchedUpdates = (e) => e();
51
+ S.catch = console.error;
52
+ S.frameLoop = "always";
53
+ S.advance = () => {
54
+ S.frameLoop !== "demand" ? console.warn(
55
55
  "Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"
56
56
  ) : mn();
57
57
  };
@@ -60,17 +60,17 @@ function Ee(e, t) {
60
60
  lt ? (t.delete(e), e(0)) : (t.add(e), fn());
61
61
  }
62
62
  function fn() {
63
- te < 0 && (te = 0, w.frameLoop !== "demand" && Ct(hn));
63
+ te < 0 && (te = 0, S.frameLoop !== "demand" && Ct(hn));
64
64
  }
65
65
  function Kn() {
66
66
  te = -1;
67
67
  }
68
68
  function hn() {
69
- ~te && (Ct(hn), w.batchedUpdates(mn));
69
+ ~te && (Ct(hn), S.batchedUpdates(mn));
70
70
  }
71
71
  function mn() {
72
72
  const e = te;
73
- te = w.now();
73
+ te = S.now();
74
74
  const t = dn(te);
75
75
  if (t && (pn(le.splice(0, t), (n) => n.handler()), ne -= t), !ne) {
76
76
  Kn();
@@ -97,7 +97,7 @@ function pn(e, t) {
97
97
  try {
98
98
  t(n);
99
99
  } catch (i) {
100
- w.catch(i);
100
+ S.catch(i);
101
101
  }
102
102
  });
103
103
  }
@@ -134,7 +134,7 @@ function X(e, t) {
134
134
  }
135
135
  return e === t;
136
136
  }
137
- var y = (e, t) => e.forEach(t);
137
+ var b = (e, t) => e.forEach(t);
138
138
  function W(e, t, n) {
139
139
  if (o.arr(e)) {
140
140
  for (let i = 0; i < e.length; i++)
@@ -148,25 +148,25 @@ var T = (e) => o.und(e) ? [] : o.arr(e) ? e : [e];
148
148
  function _e(e, t) {
149
149
  if (e.size) {
150
150
  const n = Array.from(e);
151
- e.clear(), y(n, t);
151
+ e.clear(), b(n, t);
152
152
  }
153
153
  }
154
154
  var be = (e, ...t) => _e(e, (n) => n(...t)), Ft = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Mt, gn, ie = null, vn = !1, Tt = dt, Yn = (e) => {
155
- e.to && (gn = e.to), e.now && (w.now = e.now), e.colors !== void 0 && (ie = e.colors), e.skipAnimation != null && (vn = e.skipAnimation), e.createStringInterpolator && (Mt = e.createStringInterpolator), e.requestAnimationFrame && w.use(e.requestAnimationFrame), e.batchedUpdates && (w.batchedUpdates = e.batchedUpdates), e.willAdvance && (Tt = e.willAdvance), e.frameLoop && (w.frameLoop = e.frameLoop);
155
+ e.to && (gn = e.to), e.now && (S.now = e.now), e.colors !== void 0 && (ie = e.colors), e.skipAnimation != null && (vn = e.skipAnimation), e.createStringInterpolator && (Mt = e.createStringInterpolator), e.requestAnimationFrame && S.use(e.requestAnimationFrame), e.batchedUpdates && (S.batchedUpdates = e.batchedUpdates), e.willAdvance && (Tt = e.willAdvance), e.frameLoop && (S.frameLoop = e.frameLoop);
156
156
  }, we = /* @__PURE__ */ new Set(), $ = [], st = [], Be = 0, Ze = {
157
157
  get idle() {
158
158
  return !we.size && !$.length;
159
159
  },
160
160
  /** Advance the given animation on every frame until idle. */
161
161
  start(e) {
162
- Be > e.priority ? (we.add(e), w.onStart(ei)) : (yn(e), w(ft));
162
+ Be > e.priority ? (we.add(e), S.onStart(ei)) : (yn(e), S(ft));
163
163
  },
164
164
  /** Advance all animations by the given time. */
165
165
  advance: ft,
166
166
  /** Call this when an animation's priority changes. */
167
167
  sort(e) {
168
168
  if (Be)
169
- w.onFrame(() => Ze.sort(e));
169
+ S.onFrame(() => Ze.sort(e));
170
170
  else {
171
171
  const t = $.indexOf(e);
172
172
  ~t && ($.splice(t, 1), bn(e));
@@ -182,7 +182,7 @@ var be = (e, ...t) => _e(e, (n) => n(...t)), Ft = () => typeof window > "u" || !
182
182
  }
183
183
  };
184
184
  function ei() {
185
- we.forEach(yn), we.clear(), w(ft);
185
+ we.forEach(yn), we.clear(), S(ft);
186
186
  }
187
187
  function yn(e) {
188
188
  $.includes(e) || bn(e);
@@ -447,7 +447,7 @@ var Ie = (e, t, n) => {
447
447
  });
448
448
  if (o.str(e.output[0]))
449
449
  return Mt(e);
450
- const i = e, s = i.output, r = i.range || [0, 1], a = i.extrapolateLeft || i.extrapolate || "extend", u = i.extrapolateRight || i.extrapolate || "extend", d = i.easing || ((c) => c);
450
+ const i = e, s = i.output, r = i.range || [0, 1], a = i.extrapolateLeft || i.extrapolate || "extend", u = i.extrapolateRight || i.extrapolate || "extend", l = i.easing || ((c) => c);
451
451
  return (c) => {
452
452
  const p = mi(c, r);
453
453
  return hi(
@@ -456,15 +456,15 @@ var Ie = (e, t, n) => {
456
456
  r[p + 1],
457
457
  s[p],
458
458
  s[p + 1],
459
- d,
459
+ l,
460
460
  a,
461
461
  u,
462
462
  i.map
463
463
  );
464
464
  };
465
465
  };
466
- function hi(e, t, n, i, s, r, a, u, d) {
467
- let c = d ? d(e) : e;
466
+ function hi(e, t, n, i, s, r, a, u, l) {
467
+ let c = l ? l(e) : e;
468
468
  if (c < t) {
469
469
  if (a === "identity")
470
470
  return c;
@@ -595,8 +595,8 @@ var wn = (e, t, n) => Object.defineProperty(e, t, {
595
595
  (r) => Ie({ ...e, output: r })
596
596
  );
597
597
  return (r) => {
598
- var d;
599
- const a = !Zt.test(t[0]) && ((d = t.find((c) => Zt.test(c))) == null ? void 0 : d.replace(ze, ""));
598
+ var l;
599
+ const a = !Zt.test(t[0]) && ((l = t.find((c) => Zt.test(c))) == null ? void 0 : l.replace(ze, ""));
600
600
  let u = 0;
601
601
  return t[0].replace(
602
602
  ze,
@@ -743,7 +743,7 @@ var Oe = Symbol.for("Animated:node"), Mi = (e) => !!e && e[Oe] === e, G = (e) =>
743
743
  this.source = e, this.payload = this._makePayload(e);
744
744
  }
745
745
  reset() {
746
- this.payload && y(this.payload, (e) => e.reset());
746
+ this.payload && b(this.payload, (e) => e.reset());
747
747
  }
748
748
  /** Create a payload set. */
749
749
  _makePayload(e) {
@@ -756,7 +756,7 @@ var Oe = Symbol.for("Animated:node"), Mi = (e) => !!e && e[Oe] === e, G = (e) =>
756
756
  _addToPayload(e) {
757
757
  He.dependencies && j(e) && He.dependencies.add(e);
758
758
  const t = et(e);
759
- t && y(t, (n) => this.add(n));
759
+ t && b(t, (n) => this.add(n));
760
760
  }
761
761
  }, kn = class extends tt {
762
762
  constructor(e) {
@@ -794,30 +794,30 @@ var Jt = (e, t) => {
794
794
  r.current = xi(s, f);
795
795
  },
796
796
  [s]
797
- ), [u, d] = Ei(i, t), c = Et(), p = () => {
797
+ ), [u, l] = Ei(i, t), c = Et(), p = () => {
798
798
  const f = r.current;
799
799
  if (n && !f)
800
800
  return;
801
801
  (f ? t.applyAnimatedValues(f, u.getValue(!0)) : !1) === !1 && c();
802
- }, l = new Vi(p, d), h = H();
803
- ae(() => (h.current = l, y(d, (f) => he(f, l)), () => {
804
- h.current && (y(
805
- h.current.deps,
806
- (f) => Re(f, h.current)
807
- ), w.cancel(h.current.update));
802
+ }, h = new Vi(p, l), d = H();
803
+ ae(() => (d.current = h, b(l, (f) => he(f, h)), () => {
804
+ d.current && (b(
805
+ d.current.deps,
806
+ (f) => Re(f, d.current)
807
+ ), S.cancel(d.current.update));
808
808
  })), Ve(p, []), xt(() => () => {
809
- const f = h.current;
810
- y(f.deps, (g) => Re(g, f));
809
+ const f = d.current;
810
+ b(f.deps, (v) => Re(v, f));
811
811
  });
812
- const S = t.getComponentProps(u.getValue());
813
- return /* @__PURE__ */ ce.createElement(e, { ...S, ref: a });
812
+ const g = t.getComponentProps(u.getValue());
813
+ return /* @__PURE__ */ ce.createElement(e, { ...g, ref: a });
814
814
  });
815
815
  }, Vi = class {
816
816
  constructor(e, t) {
817
817
  this.update = e, this.deps = t;
818
818
  }
819
819
  eventObserved(e) {
820
- e.type == "change" && w.write(this.update);
820
+ e.type == "change" && S.write(this.update);
821
821
  }
822
822
  };
823
823
  function Ei(e, t) {
@@ -984,22 +984,22 @@ var tn = [], Bi = class {
984
984
  };
985
985
  function Mn(e, { key: t, props: n, defaultProps: i, state: s, actions: r }) {
986
986
  return new Promise((a, u) => {
987
- let d, c, p = Se(n.cancel ?? (i == null ? void 0 : i.cancel), t);
987
+ let l, c, p = Se(n.cancel ?? (i == null ? void 0 : i.cancel), t);
988
988
  if (p)
989
- S();
989
+ g();
990
990
  else {
991
991
  o.und(n.pause) || (s.paused = Se(n.pause, t));
992
992
  let f = i == null ? void 0 : i.pause;
993
- f !== !0 && (f = s.paused || Se(f, t)), d = E(n.delay || 0, t), f ? (s.resumeQueue.add(h), r.pause()) : (r.resume(), h());
994
- }
995
- function l() {
996
- s.resumeQueue.add(h), s.timeouts.delete(c), c.cancel(), d = c.time - w.now();
993
+ f !== !0 && (f = s.paused || Se(f, t)), l = E(n.delay || 0, t), f ? (s.resumeQueue.add(d), r.pause()) : (r.resume(), d());
997
994
  }
998
995
  function h() {
999
- d > 0 && !D.skipAnimation ? (s.delayed = !0, c = w.setTimeout(S, d), s.pauseQueue.add(l), s.timeouts.add(c)) : S();
996
+ s.resumeQueue.add(d), s.timeouts.delete(c), c.cancel(), l = c.time - S.now();
997
+ }
998
+ function d() {
999
+ l > 0 && !D.skipAnimation ? (s.delayed = !0, c = S.setTimeout(g, l), s.pauseQueue.add(h), s.timeouts.add(c)) : g();
1000
1000
  }
1001
- function S() {
1002
- s.delayed && (s.delayed = !1), s.pauseQueue.delete(l), s.timeouts.delete(c), e <= (s.cancelId || 0) && (p = !0);
1001
+ function g() {
1002
+ s.delayed && (s.delayed = !1), s.pauseQueue.delete(h), s.timeouts.delete(c), e <= (s.cancelId || 0) && (p = !0);
1003
1003
  try {
1004
1004
  r.start({ ...n, callId: e, cancel: p }, a);
1005
1005
  } catch (f) {
@@ -1026,65 +1026,65 @@ var jt = (e, t) => t.length == 1 ? t[0] : t.some((n) => n.cancelled) ? de(e.get(
1026
1026
  finished: !1
1027
1027
  });
1028
1028
  function Vn(e, t, n, i) {
1029
- const { callId: s, parentId: r, onRest: a } = t, { asyncTo: u, promise: d } = n;
1030
- return !r && e === u && !t.reset ? d : n.promise = (async () => {
1029
+ const { callId: s, parentId: r, onRest: a } = t, { asyncTo: u, promise: l } = n;
1030
+ return !r && e === u && !t.reset ? l : n.promise = (async () => {
1031
1031
  n.asyncId = s, n.asyncTo = e;
1032
1032
  const c = nt(
1033
1033
  t,
1034
- (b, m) => (
1034
+ (_, m) => (
1035
1035
  // The `onRest` prop is only called when the `runAsync` promise is resolved.
1036
- m === "onRest" ? void 0 : b
1036
+ m === "onRest" ? void 0 : _
1037
1037
  )
1038
1038
  );
1039
- let p, l;
1040
- const h = new Promise(
1041
- (b, m) => (p = b, l = m)
1042
- ), S = (b) => {
1039
+ let p, h;
1040
+ const d = new Promise(
1041
+ (_, m) => (p = _, h = m)
1042
+ ), g = (_) => {
1043
1043
  const m = (
1044
1044
  // The `cancel` prop or `stop` method was used.
1045
1045
  s <= (n.cancelId || 0) && de(i) || // The async `to` prop was replaced.
1046
1046
  s !== n.asyncId && N(i, !1)
1047
1047
  );
1048
1048
  if (m)
1049
- throw b.result = m, l(b), b;
1050
- }, f = (b, m) => {
1051
- const P = new nn(), v = new sn();
1049
+ throw _.result = m, h(_), _;
1050
+ }, f = (_, m) => {
1051
+ const P = new nn(), y = new sn();
1052
1052
  return (async () => {
1053
1053
  if (D.skipAnimation)
1054
- throw Me(n), v.result = N(i, !1), l(v), v;
1055
- S(P);
1056
- const A = o.obj(b) ? { ...b } : { ...m, to: b };
1054
+ throw Me(n), y.result = N(i, !1), h(y), y;
1055
+ g(P);
1056
+ const A = o.obj(_) ? { ..._ } : { ...m, to: _ };
1057
1057
  A.parentId = s, W(c, (B, R) => {
1058
1058
  o.und(A[R]) && (A[R] = B);
1059
1059
  });
1060
1060
  const k = await i.start(A);
1061
- return S(P), n.paused && await new Promise((B) => {
1061
+ return g(P), n.paused && await new Promise((B) => {
1062
1062
  n.resumeQueue.add(B);
1063
1063
  }), k;
1064
1064
  })();
1065
1065
  };
1066
- let g;
1066
+ let v;
1067
1067
  if (D.skipAnimation)
1068
1068
  return Me(n), N(i, !1);
1069
1069
  try {
1070
- let b;
1071
- o.arr(e) ? b = (async (m) => {
1070
+ let _;
1071
+ o.arr(e) ? _ = (async (m) => {
1072
1072
  for (const P of m)
1073
1073
  await f(P);
1074
- })(e) : b = Promise.resolve(e(f, i.stop.bind(i))), await Promise.all([b.then(p), h]), g = N(i.get(), !0, !1);
1075
- } catch (b) {
1076
- if (b instanceof nn)
1077
- g = b.result;
1078
- else if (b instanceof sn)
1079
- g = b.result;
1074
+ })(e) : _ = Promise.resolve(e(f, i.stop.bind(i))), await Promise.all([_.then(p), d]), v = N(i.get(), !0, !1);
1075
+ } catch (_) {
1076
+ if (_ instanceof nn)
1077
+ v = _.result;
1078
+ else if (_ instanceof sn)
1079
+ v = _.result;
1080
1080
  else
1081
- throw b;
1081
+ throw _;
1082
1082
  } finally {
1083
- s == n.asyncId && (n.asyncId = r, n.asyncTo = r ? u : void 0, n.promise = r ? d : void 0);
1083
+ s == n.asyncId && (n.asyncId = r, n.asyncTo = r ? u : void 0, n.promise = r ? l : void 0);
1084
1084
  }
1085
- return o.fun(a) && w.batchedUpdates(() => {
1086
- a(g, i, i.item);
1087
- }), g;
1085
+ return o.fun(a) && S.batchedUpdates(() => {
1086
+ a(v, i, i.item);
1087
+ }), v;
1088
1088
  })();
1089
1089
  }
1090
1090
  function Me(e, t) {
@@ -1214,52 +1214,52 @@ var nn = class extends Error {
1214
1214
  !a && j(i.to) && (s = T(V(i.to))), i.values.forEach((c, p) => {
1215
1215
  if (c.done)
1216
1216
  return;
1217
- const l = (
1217
+ const h = (
1218
1218
  // Animated strings always go from 0 to 1.
1219
1219
  c.constructor == Ce ? 1 : a ? a[p].lastPosition : s[p]
1220
1220
  );
1221
- let h = i.immediate, S = l;
1222
- if (!h) {
1223
- if (S = c.lastPosition, r.tension <= 0) {
1221
+ let d = i.immediate, g = h;
1222
+ if (!d) {
1223
+ if (g = c.lastPosition, r.tension <= 0) {
1224
1224
  c.done = !0;
1225
1225
  return;
1226
1226
  }
1227
1227
  let f = c.elapsedTime += e;
1228
- const g = i.fromValues[p], b = c.v0 != null ? c.v0 : c.v0 = o.arr(r.velocity) ? r.velocity[p] : r.velocity;
1228
+ const v = i.fromValues[p], _ = c.v0 != null ? c.v0 : c.v0 = o.arr(r.velocity) ? r.velocity[p] : r.velocity;
1229
1229
  let m;
1230
- const P = r.precision || (g == l ? 5e-3 : Math.min(1, Math.abs(l - g) * 1e-3));
1230
+ const P = r.precision || (v == h ? 5e-3 : Math.min(1, Math.abs(h - v) * 1e-3));
1231
1231
  if (o.und(r.duration))
1232
1232
  if (r.decay) {
1233
- const v = r.decay === !0 ? 0.998 : r.decay, A = Math.exp(-(1 - v) * f);
1234
- S = g + b / (1 - v) * (1 - A), h = Math.abs(c.lastPosition - S) <= P, m = b * A;
1233
+ const y = r.decay === !0 ? 0.998 : r.decay, A = Math.exp(-(1 - y) * f);
1234
+ g = v + _ / (1 - y) * (1 - A), d = Math.abs(c.lastPosition - g) <= P, m = _ * A;
1235
1235
  } else {
1236
- m = c.lastVelocity == null ? b : c.lastVelocity;
1237
- const v = r.restVelocity || P / 10, A = r.clamp ? 0 : r.bounce, k = !o.und(A), B = g == l ? c.v0 > 0 : g < l;
1236
+ m = c.lastVelocity == null ? _ : c.lastVelocity;
1237
+ const y = r.restVelocity || P / 10, A = r.clamp ? 0 : r.bounce, k = !o.und(A), B = v == h ? c.v0 > 0 : v < h;
1238
1238
  let R, L = !1;
1239
1239
  const O = 1, U = Math.ceil(e / O);
1240
- for (let x = 0; x < U && (R = Math.abs(m) > v, !(!R && (h = Math.abs(l - S) <= P, h))); ++x) {
1241
- k && (L = S == l || S > l == B, L && (m = -m * A, S = l));
1242
- const K = -r.tension * 1e-6 * (S - l), Z = -r.friction * 1e-3 * m, _ = (K + Z) / r.mass;
1243
- m = m + _ * O, S = S + m * O;
1240
+ for (let x = 0; x < U && (R = Math.abs(m) > y, !(!R && (d = Math.abs(h - g) <= P, d))); ++x) {
1241
+ k && (L = g == h || g > h == B, L && (m = -m * A, g = h));
1242
+ const K = -r.tension * 1e-6 * (g - h), Z = -r.friction * 1e-3 * m, w = (K + Z) / r.mass;
1243
+ m = m + w * O, g = g + m * O;
1244
1244
  }
1245
1245
  }
1246
1246
  else {
1247
- let v = 1;
1248
- r.duration > 0 && (this._memoizedDuration !== r.duration && (this._memoizedDuration = r.duration, c.durationProgress > 0 && (c.elapsedTime = r.duration * c.durationProgress, f = c.elapsedTime += e)), v = (r.progress || 0) + f / this._memoizedDuration, v = v > 1 ? 1 : v < 0 ? 0 : v, c.durationProgress = v), S = g + r.easing(v) * (l - g), m = (S - c.lastPosition) / e, h = v == 1;
1247
+ let y = 1;
1248
+ r.duration > 0 && (this._memoizedDuration !== r.duration && (this._memoizedDuration = r.duration, c.durationProgress > 0 && (c.elapsedTime = r.duration * c.durationProgress, f = c.elapsedTime += e)), y = (r.progress || 0) + f / this._memoizedDuration, y = y > 1 ? 1 : y < 0 ? 0 : y, c.durationProgress = y), g = v + r.easing(y) * (h - v), m = (g - c.lastPosition) / e, d = y == 1;
1249
1249
  }
1250
- c.lastVelocity = m, Number.isNaN(S) && (console.warn("Got NaN while animating:", this), h = !0);
1250
+ c.lastVelocity = m, Number.isNaN(g) && (console.warn("Got NaN while animating:", this), d = !0);
1251
1251
  }
1252
- a && !a[p].done && (h = !1), h ? c.done = !0 : t = !1, c.setValue(S, r.round) && (n = !0);
1252
+ a && !a[p].done && (d = !1), d ? c.done = !0 : t = !1, c.setValue(g, r.round) && (n = !0);
1253
1253
  });
1254
- const u = G(this), d = u.getValue();
1254
+ const u = G(this), l = u.getValue();
1255
1255
  if (t) {
1256
1256
  const c = V(i.to);
1257
- (d !== c || n) && !r.decay ? (u.setValue(c), this._onChange(c)) : n && r.decay && this._onChange(d), this._stop();
1258
- } else n && this._onChange(d);
1257
+ (l !== c || n) && !r.decay ? (u.setValue(c), this._onChange(c)) : n && r.decay && this._onChange(l), this._stop();
1258
+ } else n && this._onChange(l);
1259
1259
  }
1260
1260
  /** Set the current value, while stopping the current animation */
1261
1261
  set(e) {
1262
- return w.batchedUpdates(() => {
1262
+ return S.batchedUpdates(() => {
1263
1263
  this._stop(), this._focus(e), this._set(e);
1264
1264
  }), this;
1265
1265
  }
@@ -1278,7 +1278,7 @@ var nn = class extends Error {
1278
1278
  finish() {
1279
1279
  if (ee(this)) {
1280
1280
  const { to: e, config: t } = this.animation;
1281
- w.batchedUpdates(() => {
1281
+ S.batchedUpdates(() => {
1282
1282
  this._onStart(), t.decay || this._set(e, !1), this._stop();
1283
1283
  });
1284
1284
  }
@@ -1301,7 +1301,7 @@ var nn = class extends Error {
1301
1301
  */
1302
1302
  stop(e) {
1303
1303
  const { to: t } = this.animation;
1304
- return this._focus(this.get()), Me(this._state, e && this._lastCallId), w.batchedUpdates(() => this._stop(t, e)), this;
1304
+ return this._focus(this.get()), Me(this._state, e && this._lastCallId), S.batchedUpdates(() => this._stop(t, e)), this;
1305
1305
  }
1306
1306
  /** Restart the animation. */
1307
1307
  reset() {
@@ -1383,16 +1383,16 @@ var nn = class extends Error {
1383
1383
  this._lastToId = t.callId;
1384
1384
  else
1385
1385
  return n(de(this));
1386
- const { key: r, defaultProps: a, animation: u } = this, { to: d, from: c } = u;
1387
- let { to: p = d, from: l = c } = e;
1388
- s && !i && (!t.default || o.und(p)) && (p = l), t.reverse && ([p, l] = [l, p]);
1389
- const h = !X(l, c);
1390
- h && (u.from = l), l = V(l);
1391
- const S = !X(p, d);
1392
- S && this._focus(p);
1393
- const f = pt(t.to), { config: g } = u, { decay: b, velocity: m } = g;
1394
- (i || s) && (g.velocity = 0), t.config && !f && Di(
1395
- g,
1386
+ const { key: r, defaultProps: a, animation: u } = this, { to: l, from: c } = u;
1387
+ let { to: p = l, from: h = c } = e;
1388
+ s && !i && (!t.default || o.und(p)) && (p = h), t.reverse && ([p, h] = [h, p]);
1389
+ const d = !X(h, c);
1390
+ d && (u.from = h), h = V(h);
1391
+ const g = !X(p, l);
1392
+ g && this._focus(p);
1393
+ const f = pt(t.to), { config: v } = u, { decay: _, velocity: m } = v;
1394
+ (i || s) && (v.velocity = 0), t.config && !f && Di(
1395
+ v,
1396
1396
  E(t.config, r),
1397
1397
  // Avoid calling the same "config" prop twice.
1398
1398
  t.config !== a.config ? E(a.config, r) : void 0
@@ -1400,13 +1400,13 @@ var nn = class extends Error {
1400
1400
  let P = G(this);
1401
1401
  if (!P || o.und(p))
1402
1402
  return n(N(this, !0));
1403
- const v = (
1403
+ const y = (
1404
1404
  // When `reset` is undefined, the `from` prop implies `reset: true`,
1405
1405
  // except for declarative updates. When `reset` is defined, there
1406
1406
  // must exist a value to animate from.
1407
- o.und(t.reset) ? s && !t.default : !o.und(l) && Se(t.reset, r)
1408
- ), A = v ? l : this.get(), k = Fe(p), B = o.num(k) || o.arr(k) || Ye(k), R = !f && (!B || Se(a.immediate || t.immediate, r));
1409
- if (S) {
1407
+ o.und(t.reset) ? s && !t.default : !o.und(h) && Se(t.reset, r)
1408
+ ), A = y ? h : this.get(), k = Fe(p), B = o.num(k) || o.arr(k) || Ye(k), R = !f && (!B || Se(a.immediate || t.immediate, r));
1409
+ if (g) {
1410
1410
  const x = mt(p);
1411
1411
  if (x !== P.constructor)
1412
1412
  if (R)
@@ -1419,19 +1419,19 @@ var nn = class extends Error {
1419
1419
  const L = P.constructor;
1420
1420
  let O = j(p), U = !1;
1421
1421
  if (!O) {
1422
- const x = v || !ot(this) && h;
1423
- (S || x) && (U = X(Fe(A), k), O = !U), (!X(u.immediate, R) && !R || !X(g.decay, b) || !X(g.velocity, m)) && (O = !0);
1422
+ const x = y || !ot(this) && d;
1423
+ (g || x) && (U = X(Fe(A), k), O = !U), (!X(u.immediate, R) && !R || !X(v.decay, _) || !X(v.velocity, m)) && (O = !0);
1424
1424
  }
1425
- if (U && ee(this) && (u.changed && !v ? O = !0 : O || this._stop(d)), !f && ((O || j(d)) && (u.values = P.getPayload(), u.toValues = j(p) ? null : L == Ce ? [1] : T(k)), u.immediate != R && (u.immediate = R, !R && !v && this._set(d)), O)) {
1425
+ if (U && ee(this) && (u.changed && !y ? O = !0 : O || this._stop(l)), !f && ((O || j(l)) && (u.values = P.getPayload(), u.toValues = j(p) ? null : L == Ce ? [1] : T(k)), u.immediate != R && (u.immediate = R, !R && !y && this._set(l)), O)) {
1426
1426
  const { onRest: x } = u;
1427
- y(Wi, (Z) => un(this, t, Z));
1428
- const K = N(this, ge(this, d));
1429
- be(this._pendingCalls, K), this._pendingCalls.add(n), u.changed && w.batchedUpdates(() => {
1427
+ b(Wi, (Z) => un(this, t, Z));
1428
+ const K = N(this, ge(this, l));
1429
+ be(this._pendingCalls, K), this._pendingCalls.add(n), u.changed && S.batchedUpdates(() => {
1430
1430
  var Z;
1431
- u.changed = !v, x == null || x(K, this), v ? E(a.onRest, K) : (Z = u.onStart) == null || Z.call(u, K, this);
1431
+ u.changed = !y, x == null || x(K, this), y ? E(a.onRest, K) : (Z = u.onStart) == null || Z.call(u, K, this);
1432
1432
  });
1433
1433
  }
1434
- v && this._set(A), f ? n(Vn(t.to, t, this._state, this)) : O ? this._start() : ee(this) && !S ? this._pendingCalls.add(n) : n(Tn(A));
1434
+ y && this._set(A), f ? n(Vn(t.to, t, this._state, this)) : O ? this._start() : ee(this) && !g ? this._pendingCalls.add(n) : n(Tn(A));
1435
1435
  }
1436
1436
  /** Update the `animation.to` value, which might be a `FluidValue` */
1437
1437
  _focus(e) {
@@ -1457,7 +1457,7 @@ var nn = class extends Error {
1457
1457
  const i = G(this);
1458
1458
  if (!i || !X(n, i.getValue())) {
1459
1459
  const s = mt(n);
1460
- !i || i.constructor != s ? qt(this, s.create(n)) : i.setValue(n), i && w.batchedUpdates(() => {
1460
+ !i || i.constructor != s ? qt(this, s.create(n)) : i.setValue(n), i && S.batchedUpdates(() => {
1461
1461
  this._onChange(n, t);
1462
1462
  });
1463
1463
  }
@@ -1495,7 +1495,7 @@ var nn = class extends Error {
1495
1495
  if (ee(this)) {
1496
1496
  rn(this, !1);
1497
1497
  const n = this.animation;
1498
- y(n.values, (s) => {
1498
+ b(n.values, (s) => {
1499
1499
  s.done = !0;
1500
1500
  }), n.toValues && (n.onChange = n.onPause = n.onResume = void 0), ke(this, {
1501
1501
  type: "idle",
@@ -1616,7 +1616,7 @@ var Ki = ["onStart", "onChange", "onRest"], Zi = 1, qn = class {
1616
1616
  stop(e, t) {
1617
1617
  if (e !== !!e && (t = e), t) {
1618
1618
  const n = this.springs;
1619
- y(T(t), (i) => n[i].stop(!!e));
1619
+ b(T(t), (i) => n[i].stop(!!e));
1620
1620
  } else
1621
1621
  Me(this._state, this._lastAsyncId), this.each((n) => n.stop(!!e));
1622
1622
  return this;
@@ -1627,7 +1627,7 @@ var Ki = ["onStart", "onChange", "onRest"], Zi = 1, qn = class {
1627
1627
  this.start({ pause: !0 });
1628
1628
  else {
1629
1629
  const t = this.springs;
1630
- y(T(e), (n) => t[n].pause());
1630
+ b(T(e), (n) => t[n].pause());
1631
1631
  }
1632
1632
  return this;
1633
1633
  }
@@ -1637,7 +1637,7 @@ var Ki = ["onStart", "onChange", "onRest"], Zi = 1, qn = class {
1637
1637
  this.start({ pause: !1 });
1638
1638
  else {
1639
1639
  const t = this.springs;
1640
- y(T(e), (n) => t[n].resume());
1640
+ b(T(e), (n) => t[n].resume());
1641
1641
  }
1642
1642
  return this;
1643
1643
  }
@@ -1648,14 +1648,14 @@ var Ki = ["onStart", "onChange", "onRest"], Zi = 1, qn = class {
1648
1648
  /** @internal Called at the end of every animation frame */
1649
1649
  _onFrame() {
1650
1650
  const { onStart: e, onChange: t, onRest: n } = this._events, i = this._active.size > 0, s = this._changed.size > 0;
1651
- (i && !this._started || s && !this._started) && (this._started = !0, _e(e, ([u, d]) => {
1652
- d.value = this.get(), u(d, this, this._item);
1651
+ (i && !this._started || s && !this._started) && (this._started = !0, _e(e, ([u, l]) => {
1652
+ l.value = this.get(), u(l, this, this._item);
1653
1653
  }));
1654
1654
  const r = !i && this._started, a = s || r && n.size ? this.get() : null;
1655
- s && t.size && _e(t, ([u, d]) => {
1656
- d.value = a, u(d, this, this._item);
1657
- }), r && (this._started = !1, _e(n, ([u, d]) => {
1658
- d.value = a, u(d, this, this._item);
1655
+ s && t.size && _e(t, ([u, l]) => {
1656
+ l.value = a, u(l, this, this._item);
1657
+ }), r && (this._started = !1, _e(n, ([u, l]) => {
1658
+ l.value = a, u(l, this, this._item);
1659
1659
  }));
1660
1660
  }
1661
1661
  /** @internal */
@@ -1666,7 +1666,7 @@ var Ki = ["onStart", "onChange", "onRest"], Zi = 1, qn = class {
1666
1666
  this._active.delete(e.parent);
1667
1667
  else
1668
1668
  return;
1669
- w.onFrame(this._onFrame);
1669
+ S.onFrame(this._onFrame);
1670
1670
  }
1671
1671
  };
1672
1672
  function wt(e, t) {
@@ -1675,61 +1675,61 @@ function wt(e, t) {
1675
1675
  );
1676
1676
  }
1677
1677
  async function Un(e, t, n) {
1678
- const { keys: i, to: s, from: r, loop: a, onRest: u, onResolve: d } = t, c = o.obj(t.default) && t.default;
1678
+ const { keys: i, to: s, from: r, loop: a, onRest: u, onResolve: l } = t, c = o.obj(t.default) && t.default;
1679
1679
  a && (t.loop = !1), s === !1 && (t.to = null), r === !1 && (t.from = null);
1680
1680
  const p = o.arr(s) || o.fun(s) ? s : void 0;
1681
- p ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : y(Ki, (g) => {
1682
- const b = t[g];
1683
- if (o.fun(b)) {
1684
- const m = e._events[g];
1685
- t[g] = ({ finished: P, cancelled: v }) => {
1686
- const A = m.get(b);
1687
- A ? (P || (A.finished = !1), v && (A.cancelled = !0)) : m.set(b, {
1681
+ p ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : b(Ki, (v) => {
1682
+ const _ = t[v];
1683
+ if (o.fun(_)) {
1684
+ const m = e._events[v];
1685
+ t[v] = ({ finished: P, cancelled: y }) => {
1686
+ const A = m.get(_);
1687
+ A ? (P || (A.finished = !1), y && (A.cancelled = !0)) : m.set(_, {
1688
1688
  value: null,
1689
1689
  finished: P || !1,
1690
- cancelled: v || !1
1690
+ cancelled: y || !1
1691
1691
  });
1692
- }, c && (c[g] = t[g]);
1692
+ }, c && (c[v] = t[v]);
1693
1693
  }
1694
1694
  });
1695
- const l = e._state;
1696
- t.pause === !l.paused ? (l.paused = t.pause, be(t.pause ? l.pauseQueue : l.resumeQueue)) : l.paused && (t.pause = !0);
1697
- const h = (i || Object.keys(e.springs)).map(
1698
- (g) => e.springs[g].start(t)
1699
- ), S = t.cancel === !0 || On(t, "cancel") === !0;
1700
- (p || S && l.asyncId) && h.push(
1695
+ const h = e._state;
1696
+ t.pause === !h.paused ? (h.paused = t.pause, be(t.pause ? h.pauseQueue : h.resumeQueue)) : h.paused && (t.pause = !0);
1697
+ const d = (i || Object.keys(e.springs)).map(
1698
+ (v) => e.springs[v].start(t)
1699
+ ), g = t.cancel === !0 || On(t, "cancel") === !0;
1700
+ (p || g && h.asyncId) && d.push(
1701
1701
  Mn(++e._lastAsyncId, {
1702
1702
  props: t,
1703
- state: l,
1703
+ state: h,
1704
1704
  actions: {
1705
1705
  pause: dt,
1706
1706
  resume: dt,
1707
- start(g, b) {
1708
- S ? (Me(l, e._lastAsyncId), b(de(e))) : (g.onRest = u, b(
1707
+ start(v, _) {
1708
+ g ? (Me(h, e._lastAsyncId), _(de(e))) : (v.onRest = u, _(
1709
1709
  Vn(
1710
1710
  p,
1711
- g,
1712
- l,
1711
+ v,
1712
+ h,
1713
1713
  e
1714
1714
  )
1715
1715
  ));
1716
1716
  }
1717
1717
  }
1718
1718
  })
1719
- ), l.paused && await new Promise((g) => {
1720
- l.resumeQueue.add(g);
1719
+ ), h.paused && await new Promise((v) => {
1720
+ h.resumeQueue.add(v);
1721
1721
  });
1722
- const f = jt(e, await Promise.all(h));
1722
+ const f = jt(e, await Promise.all(d));
1723
1723
  if (a && f.finished && !(n && f.noop)) {
1724
- const g = xn(t, a, s);
1725
- if (g)
1726
- return Nn(e, [g]), Un(e, g, !0);
1724
+ const v = xn(t, a, s);
1725
+ if (v)
1726
+ return Nn(e, [v]), Un(e, v, !0);
1727
1727
  }
1728
- return d && w.batchedUpdates(() => d(f, e, e.item)), f;
1728
+ return l && S.batchedUpdates(() => l(f, e, e.item)), f;
1729
1729
  }
1730
1730
  function St(e, t) {
1731
1731
  const n = { ...e.springs };
1732
- return t && y(T(t), (i) => {
1732
+ return t && b(T(t), (i) => {
1733
1733
  o.und(i.keys) && (i = Te(i)), o.obj(i.to) || (i = { ...i, to: void 0 }), Qn(n, i, (s) => $n(s));
1734
1734
  }), jn(e, n), n;
1735
1735
  }
@@ -1743,12 +1743,12 @@ function $n(e, t) {
1743
1743
  return n.key = e, t && he(n, t), n;
1744
1744
  }
1745
1745
  function Qn(e, t, n) {
1746
- t.keys && y(t.keys, (i) => {
1746
+ t.keys && b(t.keys, (i) => {
1747
1747
  (e[i] || (e[i] = n(i)))._prepareNode(t);
1748
1748
  });
1749
1749
  }
1750
1750
  function Nn(e, t) {
1751
- y(t, (n) => {
1751
+ b(t, (n) => {
1752
1752
  Qn(e.springs, n, (i) => $n(i, e));
1753
1753
  });
1754
1754
  }
@@ -1770,7 +1770,7 @@ var Qt = () => {
1770
1770
  const e = [], t = function(i) {
1771
1771
  ki();
1772
1772
  const s = [];
1773
- return y(e, (r, a) => {
1773
+ return b(e, (r, a) => {
1774
1774
  if (o.und(i))
1775
1775
  s.push(r.start());
1776
1776
  else {
@@ -1785,17 +1785,17 @@ var Qt = () => {
1785
1785
  const s = e.indexOf(i);
1786
1786
  ~s && e.splice(s, 1);
1787
1787
  }, t.pause = function() {
1788
- return y(e, (i) => i.pause(...arguments)), this;
1788
+ return b(e, (i) => i.pause(...arguments)), this;
1789
1789
  }, t.resume = function() {
1790
- return y(e, (i) => i.resume(...arguments)), this;
1790
+ return b(e, (i) => i.resume(...arguments)), this;
1791
1791
  }, t.set = function(i) {
1792
- y(e, (s, r) => {
1792
+ b(e, (s, r) => {
1793
1793
  const a = o.fun(i) ? i(r, s) : i;
1794
1794
  a && s.set(a);
1795
1795
  });
1796
1796
  }, t.start = function(i) {
1797
1797
  const s = [];
1798
- return y(e, (r, a) => {
1798
+ return b(e, (r, a) => {
1799
1799
  if (o.und(i))
1800
1800
  s.push(r.start());
1801
1801
  else {
@@ -1804,9 +1804,9 @@ var Qt = () => {
1804
1804
  }
1805
1805
  }), s;
1806
1806
  }, t.stop = function() {
1807
- return y(e, (i) => i.stop(...arguments)), this;
1807
+ return b(e, (i) => i.stop(...arguments)), this;
1808
1808
  }, t.update = function(i) {
1809
- return y(e, (s, r) => s.update(this._getProps(i, s, r))), this;
1809
+ return b(e, (s, r) => s.update(this._getProps(i, s, r))), this;
1810
1810
  };
1811
1811
  const n = function(i, s, r) {
1812
1812
  return o.fun(i) ? i(r, s) : i;
@@ -1824,43 +1824,43 @@ function Xi(e, t, n) {
1824
1824
  ctrls: [],
1825
1825
  queue: [],
1826
1826
  flush(m, P) {
1827
- const v = St(m, P);
1828
- return r.current > 0 && !u.queue.length && !Object.keys(v).some((k) => !m.springs[k]) ? wt(m, P) : new Promise((k) => {
1829
- jn(m, v), u.queue.push(() => {
1827
+ const y = St(m, P);
1828
+ return r.current > 0 && !u.queue.length && !Object.keys(y).some((k) => !m.springs[k]) ? wt(m, P) : new Promise((k) => {
1829
+ jn(m, y), u.queue.push(() => {
1830
1830
  k(wt(m, P));
1831
1831
  }), a();
1832
1832
  });
1833
1833
  }
1834
1834
  }),
1835
1835
  []
1836
- ), d = H([...u.ctrls]), c = [], p = ht(e) || 0;
1836
+ ), l = H([...u.ctrls]), c = [], p = ht(e) || 0;
1837
1837
  ye(() => {
1838
- y(d.current.slice(e, p), (m) => {
1838
+ b(l.current.slice(e, p), (m) => {
1839
1839
  gt(m, s), m.stop(!0);
1840
- }), d.current.length = e, l(p, e);
1840
+ }), l.current.length = e, h(p, e);
1841
1841
  }, [e]), ye(() => {
1842
- l(0, Math.min(p, e));
1842
+ h(0, Math.min(p, e));
1843
1843
  }, n);
1844
- function l(m, P) {
1845
- for (let v = m; v < P; v++) {
1846
- const A = d.current[v] || (d.current[v] = new qn(null, u.flush)), k = i ? i(v, A) : t[v];
1847
- k && (c[v] = Hi(k));
1844
+ function h(m, P) {
1845
+ for (let y = m; y < P; y++) {
1846
+ const A = l.current[y] || (l.current[y] = new qn(null, u.flush)), k = i ? i(y, A) : t[y];
1847
+ k && (c[y] = Hi(k));
1848
1848
  }
1849
1849
  }
1850
- const h = d.current.map((m, P) => St(m, c[P])), S = It(Ue), f = ht(S), g = S !== f && Cn(S);
1850
+ const d = l.current.map((m, P) => St(m, c[P])), g = It(Ue), f = ht(g), v = g !== f && Cn(g);
1851
1851
  ae(() => {
1852
- r.current++, u.ctrls = d.current;
1852
+ r.current++, u.ctrls = l.current;
1853
1853
  const { queue: m } = u;
1854
- m.length && (u.queue = [], y(m, (P) => P())), y(d.current, (P, v) => {
1855
- s == null || s.add(P), g && P.start({ default: S });
1856
- const A = c[v];
1854
+ m.length && (u.queue = [], b(m, (P) => P())), b(l.current, (P, y) => {
1855
+ s == null || s.add(P), v && P.start({ default: g });
1856
+ const A = c[y];
1857
1857
  A && (Fn(P, A.ref), P.ref ? P.queue.push(A) : P.start(A));
1858
1858
  });
1859
1859
  }), xt(() => () => {
1860
- y(u.ctrls, (m) => m.stop(!0));
1860
+ b(u.ctrls, (m) => m.stop(!0));
1861
1861
  });
1862
- const b = h.map((m) => ({ ...m }));
1863
- return s ? [b, s] : b;
1862
+ const _ = d.map((m) => ({ ...m }));
1863
+ return s ? [_, s] : _;
1864
1864
  }
1865
1865
  function vs(e, t) {
1866
1866
  const n = o.fun(e), [[i], s] = Xi(
@@ -1877,52 +1877,52 @@ function bs(e, t, n) {
1877
1877
  sort: r,
1878
1878
  trail: a = 0,
1879
1879
  expires: u = !0,
1880
- exitBeforeEnter: d = !1,
1880
+ exitBeforeEnter: l = !1,
1881
1881
  onDestroyed: c,
1882
1882
  ref: p,
1883
- config: l
1884
- } = i ? i() : t, h = ye(
1883
+ config: h
1884
+ } = i ? i() : t, d = ye(
1885
1885
  () => i || arguments.length == 3 ? Qt() : void 0,
1886
1886
  []
1887
- ), S = T(e), f = [], g = H(null), b = s ? null : g.current;
1887
+ ), g = T(e), f = [], v = H(null), _ = s ? null : v.current;
1888
1888
  ae(() => {
1889
- g.current = f;
1890
- }), xt(() => (y(f, (_) => {
1891
- h == null || h.add(_.ctrl), _.ctrl.ref = h;
1889
+ v.current = f;
1890
+ }), xt(() => (b(f, (w) => {
1891
+ d == null || d.add(w.ctrl), w.ctrl.ref = d;
1892
1892
  }), () => {
1893
- y(g.current, (_) => {
1894
- _.expired && clearTimeout(_.expirationId), gt(_.ctrl, h), _.ctrl.stop(!0);
1893
+ b(v.current, (w) => {
1894
+ w.expired && clearTimeout(w.expirationId), gt(w.ctrl, d), w.ctrl.stop(!0);
1895
1895
  });
1896
1896
  }));
1897
- const m = ts(S, i ? i() : t, b), P = s && g.current || [];
1897
+ const m = ts(g, i ? i() : t, _), P = s && v.current || [];
1898
1898
  ae(
1899
- () => y(P, ({ ctrl: _, item: I, key: F }) => {
1900
- gt(_, h), E(c, I, F);
1899
+ () => b(P, ({ ctrl: w, item: I, key: F }) => {
1900
+ gt(w, d), E(c, I, F);
1901
1901
  })
1902
1902
  );
1903
- const v = [];
1904
- if (b && y(b, (_, I) => {
1905
- _.expired ? (clearTimeout(_.expirationId), P.push(_)) : (I = v[I] = m.indexOf(_.key), ~I && (f[I] = _));
1906
- }), y(S, (_, I) => {
1903
+ const y = [];
1904
+ if (_ && b(_, (w, I) => {
1905
+ w.expired ? (clearTimeout(w.expirationId), P.push(w)) : (I = y[I] = m.indexOf(w.key), ~I && (f[I] = w));
1906
+ }), b(g, (w, I) => {
1907
1907
  f[I] || (f[I] = {
1908
1908
  key: m[I],
1909
- item: _,
1909
+ item: w,
1910
1910
  phase: "mount",
1911
1911
  ctrl: new qn()
1912
- }, f[I].ctrl.item = _);
1913
- }), v.length) {
1914
- let _ = -1;
1912
+ }, f[I].ctrl.item = w);
1913
+ }), y.length) {
1914
+ let w = -1;
1915
1915
  const { leave: I } = i ? i() : t;
1916
- y(v, (F, M) => {
1917
- const C = b[M];
1918
- ~F ? (_ = f.indexOf(C), f[_] = { ...C, item: S[F] }) : I && f.splice(++_, 0, C);
1916
+ b(y, (F, M) => {
1917
+ const C = _[M];
1918
+ ~F ? (w = f.indexOf(C), f[w] = { ...C, item: g[F] }) : I && f.splice(++w, 0, C);
1919
1919
  });
1920
1920
  }
1921
- o.fun(r) && f.sort((_, I) => r(_.item, I.item));
1921
+ o.fun(r) && f.sort((w, I) => r(w.item, I.item));
1922
1922
  let A = -a;
1923
1923
  const k = Et(), B = nt(t), R = /* @__PURE__ */ new Map(), L = H(/* @__PURE__ */ new Map()), O = H(!1);
1924
- y(f, (_, I) => {
1925
- const F = _.key, M = _.phase, C = i ? i() : t;
1924
+ b(f, (w, I) => {
1925
+ const F = w.key, M = w.phase, C = i ? i() : t;
1926
1926
  let q, J;
1927
1927
  const Dn = E(C.delay || 0, F);
1928
1928
  if (M == "mount")
@@ -1941,9 +1941,9 @@ function bs(e, t, n) {
1941
1941
  else
1942
1942
  return;
1943
1943
  }
1944
- if (q = E(q, _.item, I), q = o.obj(q) ? Ut(q) : { to: q }, !q.config) {
1945
- const Q = l || B.config;
1946
- q.config = E(Q, _.item, I, J);
1944
+ if (q = E(q, w.item, I), q = o.obj(q) ? Ut(q) : { to: q }, !q.config) {
1945
+ const Q = h || B.config;
1946
+ q.config = E(Q, w.item, I, J);
1947
1947
  }
1948
1948
  A += a;
1949
1949
  const se = {
@@ -1958,13 +1958,13 @@ function bs(e, t, n) {
1958
1958
  ...q
1959
1959
  };
1960
1960
  if (J == "enter" && o.und(se.from)) {
1961
- const Q = i ? i() : t, me = o.und(Q.initial) || b ? Q.from : Q.initial;
1962
- se.from = E(me, _.item, I);
1961
+ const Q = i ? i() : t, me = o.und(Q.initial) || _ ? Q.from : Q.initial;
1962
+ se.from = E(me, w.item, I);
1963
1963
  }
1964
1964
  const { onResolve: Bn } = se;
1965
1965
  se.onResolve = (Q) => {
1966
1966
  E(Bn, Q);
1967
- const me = g.current, Y = me.find((je) => je.key === F);
1967
+ const me = v.current, Y = me.find((je) => je.key === F);
1968
1968
  if (Y && !(Q.cancelled && Y.phase != "update") && Y.ctrl.idle) {
1969
1969
  const je = me.every((re) => re.ctrl.idle);
1970
1970
  if (Y.phase == "leave") {
@@ -1977,36 +1977,36 @@ function bs(e, t, n) {
1977
1977
  }
1978
1978
  }
1979
1979
  }
1980
- je && me.some((re) => re.expired) && (L.current.delete(Y), d && (O.current = !0), k());
1980
+ je && me.some((re) => re.expired) && (L.current.delete(Y), l && (O.current = !0), k());
1981
1981
  }
1982
1982
  };
1983
- const Nt = St(_.ctrl, se);
1984
- J === "leave" && d ? L.current.set(_, { phase: J, springs: Nt, payload: se }) : R.set(_, { phase: J, springs: Nt, payload: se });
1983
+ const Nt = St(w.ctrl, se);
1984
+ J === "leave" && l ? L.current.set(w, { phase: J, springs: Nt, payload: se }) : R.set(w, { phase: J, springs: Nt, payload: se });
1985
1985
  });
1986
1986
  const U = It(Ue), x = ht(U), K = U !== x && Cn(U);
1987
1987
  ae(() => {
1988
- K && y(f, (_) => {
1989
- _.ctrl.start({ default: U });
1988
+ K && b(f, (w) => {
1989
+ w.ctrl.start({ default: U });
1990
1990
  });
1991
- }, [U]), y(R, (_, I) => {
1991
+ }, [U]), b(R, (w, I) => {
1992
1992
  if (L.current.size) {
1993
1993
  const F = f.findIndex((M) => M.key === I.key);
1994
1994
  f.splice(F, 1);
1995
1995
  }
1996
1996
  }), ae(
1997
1997
  () => {
1998
- y(
1998
+ b(
1999
1999
  L.current.size ? L.current : R,
2000
- ({ phase: _, payload: I }, F) => {
2000
+ ({ phase: w, payload: I }, F) => {
2001
2001
  const { ctrl: M } = F;
2002
- F.phase = _, h == null || h.add(M), K && _ == "enter" && M.start({ default: U }), I && (Fn(M, I.ref), (M.ref || h) && !O.current ? M.update(I) : (M.start(I), O.current && (O.current = !1)));
2002
+ F.phase = w, d == null || d.add(M), K && w == "enter" && M.start({ default: U }), I && (Fn(M, I.ref), (M.ref || d) && !O.current ? M.update(I) : (M.start(I), O.current && (O.current = !1)));
2003
2003
  }
2004
2004
  );
2005
2005
  },
2006
2006
  s ? void 0 : n
2007
2007
  );
2008
- const Z = (_) => /* @__PURE__ */ ce.createElement(ce.Fragment, null, f.map((I, F) => {
2009
- const { springs: M } = R.get(I) || I.ctrl, C = _({ ...M }, I.item, I, F);
2008
+ const Z = (w) => /* @__PURE__ */ ce.createElement(ce.Fragment, null, f.map((I, F) => {
2009
+ const { springs: M } = R.get(I) || I.ctrl, C = w({ ...M }, I.item, I, F);
2010
2010
  return C && C.type ? /* @__PURE__ */ ce.createElement(
2011
2011
  C.type,
2012
2012
  {
@@ -2016,7 +2016,7 @@ function bs(e, t, n) {
2016
2016
  }
2017
2017
  ) : C;
2018
2018
  }));
2019
- return h ? [Z, h] : Z;
2019
+ return d ? [Z, d] : Z;
2020
2020
  }
2021
2021
  var es = 1;
2022
2022
  function ts(e, { key: t, keys: n = t }, i) {
@@ -2046,20 +2046,20 @@ var ns = class extends $t {
2046
2046
  return this.calc(...e);
2047
2047
  }
2048
2048
  _start() {
2049
- this.idle && !cn(this._active) && (this.idle = !1, y(et(this), (e) => {
2049
+ this.idle && !cn(this._active) && (this.idle = !1, b(et(this), (e) => {
2050
2050
  e.done = !1;
2051
- }), D.skipAnimation ? (w.batchedUpdates(() => this.advance()), ut(this)) : Ze.start(this));
2051
+ }), D.skipAnimation ? (S.batchedUpdates(() => this.advance()), ut(this)) : Ze.start(this));
2052
2052
  }
2053
2053
  // Observe our sources only when we're observed.
2054
2054
  _attach() {
2055
2055
  let e = 1;
2056
- y(T(this.source), (t) => {
2056
+ b(T(this.source), (t) => {
2057
2057
  j(t) && he(t, this), yt(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1));
2058
2058
  }), this.priority = e, this._start();
2059
2059
  }
2060
2060
  // Stop observing our sources once we have no observers.
2061
2061
  _detach() {
2062
- y(T(this.source), (e) => {
2062
+ b(T(this.source), (e) => {
2063
2063
  j(e) && Re(e, this);
2064
2064
  }), this._active.clear(), ut(this);
2065
2065
  }
@@ -2078,7 +2078,7 @@ function cn(e) {
2078
2078
  return !e.size || Array.from(e).every(is);
2079
2079
  }
2080
2080
  function ut(e) {
2081
- e.idle || (e.idle = !0, y(et(e), (t) => {
2081
+ e.idle || (e.idle = !0, b(et(e), (t) => {
2082
2082
  t.done = !0;
2083
2083
  }), ke(e, {
2084
2084
  type: "idle",
@@ -2097,22 +2097,30 @@ var ln = {};
2097
2097
  function rs(e, t) {
2098
2098
  if (!e.nodeType || !e.setAttribute)
2099
2099
  return !1;
2100
- const n = e.nodeName === "filter" || e.parentNode && e.parentNode.nodeName === "filter", { style: i, children: s, scrollTop: r, scrollLeft: a, viewBox: u, ...d } = t, c = Object.values(d), p = Object.keys(d).map(
2101
- (l) => n || e.hasAttribute(l) ? l : ln[l] || (ln[l] = l.replace(
2100
+ const n = e.nodeName === "filter" || e.parentNode && e.parentNode.nodeName === "filter", {
2101
+ className: i,
2102
+ style: s,
2103
+ children: r,
2104
+ scrollTop: a,
2105
+ scrollLeft: u,
2106
+ viewBox: l,
2107
+ ...c
2108
+ } = t, p = Object.values(c), h = Object.keys(c).map(
2109
+ (d) => n || e.hasAttribute(d) ? d : ln[d] || (ln[d] = d.replace(
2102
2110
  /([A-Z])/g,
2103
2111
  // Attributes are written in dash case
2104
- (h) => "-" + h.toLowerCase()
2112
+ (g) => "-" + g.toLowerCase()
2105
2113
  ))
2106
2114
  );
2107
- s !== void 0 && (e.textContent = s);
2108
- for (const l in i)
2109
- if (i.hasOwnProperty(l)) {
2110
- const h = ss(l, i[l]);
2111
- zn.test(l) ? e.style.setProperty(l, h) : e.style[l] = h;
2115
+ r !== void 0 && (e.textContent = r);
2116
+ for (const d in s)
2117
+ if (s.hasOwnProperty(d)) {
2118
+ const g = ss(d, s[d]);
2119
+ zn.test(d) ? e.style.setProperty(d, g) : e.style[d] = g;
2112
2120
  }
2113
- p.forEach((l, h) => {
2114
- e.setAttribute(l, c[h]);
2115
- }), r !== void 0 && (e.scrollTop = r), a !== void 0 && (e.scrollLeft = a), u !== void 0 && e.setAttribute("viewBox", u);
2121
+ h.forEach((d, g) => {
2122
+ e.setAttribute(d, p[g]);
2123
+ }), i !== void 0 && (e.className = i), a !== void 0 && (e.scrollTop = a), u !== void 0 && (e.scrollLeft = u), l !== void 0 && e.setAttribute("viewBox", l);
2116
2124
  }
2117
2125
  var Pe = {
2118
2126
  animationIterationCount: !0,
@@ -2168,17 +2176,17 @@ var us = /^(matrix|translate|scale|rotate|skew)/, cs = /^(translate)/, ls = /^(r
2168
2176
  De(a, 0)
2169
2177
  ])), W(i, (a, u) => {
2170
2178
  if (u === "transform")
2171
- s.push([a || ""]), r.push((d) => [d, d === ""]);
2179
+ s.push([a || ""]), r.push((l) => [l, l === ""]);
2172
2180
  else if (us.test(u)) {
2173
2181
  if (delete i[u], o.und(a))
2174
2182
  return;
2175
- const d = cs.test(u) ? "px" : ls.test(u) ? "deg" : "";
2183
+ const l = cs.test(u) ? "px" : ls.test(u) ? "deg" : "";
2176
2184
  s.push(T(a)), r.push(
2177
- u === "rotate3d" ? ([c, p, l, h]) => [
2178
- `rotate3d(${c},${p},${l},${ct(h, d)})`,
2179
- De(h, 0)
2185
+ u === "rotate3d" ? ([c, p, h, d]) => [
2186
+ `rotate3d(${c},${p},${h},${ct(d, l)})`,
2187
+ De(d, 0)
2180
2188
  ] : (c) => [
2181
- `${u}(${c.map((p) => ct(p, d)).join(",")})`,
2189
+ `${u}(${c.map((p) => ct(p, l)).join(",")})`,
2182
2190
  De(c, u.startsWith("scale") ? 1 : 0)
2183
2191
  ]
2184
2192
  );
@@ -2194,7 +2202,7 @@ var us = /^(matrix|translate|scale|rotate|skew)/, cs = /^(translate)/, ls = /^(r
2194
2202
  }
2195
2203
  _get() {
2196
2204
  let e = "", t = !0;
2197
- return y(this.inputs, (n, i) => {
2205
+ return b(this.inputs, (n, i) => {
2198
2206
  const s = V(n[0]), [r, a] = this.transforms[i](
2199
2207
  o.arr(s) ? s : n.map(V)
2200
2208
  );
@@ -2203,9 +2211,9 @@ var us = /^(matrix|translate|scale|rotate|skew)/, cs = /^(translate)/, ls = /^(r
2203
2211
  }
2204
2212
  // Start observing our inputs once we have an observer.
2205
2213
  observerAdded(e) {
2206
- e == 1 && y(
2214
+ e == 1 && b(
2207
2215
  this.inputs,
2208
- (t) => y(
2216
+ (t) => b(
2209
2217
  t,
2210
2218
  (n) => j(n) && he(n, this)
2211
2219
  )
@@ -2213,9 +2221,9 @@ var us = /^(matrix|translate|scale|rotate|skew)/, cs = /^(translate)/, ls = /^(r
2213
2221
  }
2214
2222
  // Stop observing our inputs once we have no observers.
2215
2223
  observerRemoved(e) {
2216
- e == 0 && y(
2224
+ e == 0 && b(
2217
2225
  this.inputs,
2218
- (t) => y(
2226
+ (t) => b(
2219
2227
  t,
2220
2228
  (n) => j(n) && Re(n, this)
2221
2229
  )