@epic-web/workshop-app 4.6.6 → 4.7.0

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 (809) hide show
  1. package/build/client/assets/{_-COWH0sBh.js → _-Bd2gNcck.js} +2 -2
  2. package/build/client/assets/{_-COWH0sBh.js.map → _-Bd2gNcck.js.map} +1 -1
  3. package/build/client/assets/{_exerciseNumber-wyz3vbhs.js → _exerciseNumber-CFOo2dQj.js} +2 -2
  4. package/build/client/assets/{_exerciseNumber-wyz3vbhs.js.map → _exerciseNumber-CFOo2dQj.js.map} +1 -1
  5. package/build/client/assets/{_exerciseNumber_._stepNumber-C37pli7_.js → _exerciseNumber_._stepNumber-DCbWNWpZ.js} +2 -2
  6. package/build/client/assets/{_exerciseNumber_._stepNumber-C37pli7_.js.map → _exerciseNumber_._stepNumber-DCbWNWpZ.js.map} +1 -1
  7. package/build/client/assets/_exerciseNumber_.finished-P7xMAtl1.js +2 -0
  8. package/build/client/assets/_exerciseNumber_.finished-P7xMAtl1.js.map +1 -0
  9. package/build/client/assets/_layout-Bdd3mpVx.js +2 -0
  10. package/build/client/assets/_layout-Bdd3mpVx.js.map +1 -0
  11. package/build/client/assets/_layout-DHBLG7Ti.js +6 -0
  12. package/build/client/assets/_layout-DHBLG7Ti.js.map +1 -0
  13. package/build/client/assets/_layout-DaZNLfOL.js +2 -0
  14. package/build/client/assets/{_layout-BR-Qyofe.js.map → _layout-DaZNLfOL.js.map} +1 -1
  15. package/build/client/assets/{_layout-D0zbQZjf.js → _layout-rEQoj43V.js} +2 -2
  16. package/build/client/assets/{_layout-D0zbQZjf.js.map → _layout-rEQoj43V.js.map} +1 -1
  17. package/build/client/assets/{account-DesvwOeg.js → account-CnLkZd_O.js} +2 -2
  18. package/build/client/assets/{account-DesvwOeg.js.map → account-CnLkZd_O.js.map} +1 -1
  19. package/build/client/assets/{button-BfWwrI9B.js → button-CyZl24U2.js} +2 -2
  20. package/build/client/assets/{button-BfWwrI9B.js.map → button-CyZl24U2.js.map} +1 -1
  21. package/build/client/assets/{client-hints-BKxdo5Js.js → client-hints-BE5mB4r0.js} +2 -2
  22. package/build/client/assets/{client-hints-BKxdo5Js.js.map → client-hints-BE5mB4r0.js.map} +1 -1
  23. package/build/client/assets/components-BMzmvxYw.js +166 -0
  24. package/build/client/assets/components-BMzmvxYw.js.map +1 -0
  25. package/build/client/assets/diff-P5f7-8E4.js +2 -0
  26. package/build/client/assets/diff-P5f7-8E4.js.map +1 -0
  27. package/build/client/assets/diff-PfwTHr6-.js +2 -0
  28. package/build/client/assets/{diff-KDzcgGYL.js.map → diff-PfwTHr6-.js.map} +1 -1
  29. package/build/client/assets/{discord-0kv66Q6F.js → discord-COPE8EOZ.js} +2 -2
  30. package/build/client/assets/{discord-0kv66Q6F.js.map → discord-COPE8EOZ.js.map} +1 -1
  31. package/build/client/assets/discord-DIog7bBO.js +2 -0
  32. package/build/client/assets/discord-DIog7bBO.js.map +1 -0
  33. package/build/client/assets/entry.client-B0vV2fsa.js +43 -0
  34. package/build/client/assets/entry.client-B0vV2fsa.js.map +1 -0
  35. package/build/client/assets/{epic-video-BwtXsHGU.js → epic-video-CYnG2ziQ.js} +128 -128
  36. package/build/client/assets/epic-video-CYnG2ziQ.js.map +1 -0
  37. package/build/client/assets/{error-boundary-Bcric_4t.js → error-boundary-DxfVshQ5.js} +2 -2
  38. package/build/client/assets/{error-boundary-Bcric_4t.js.map → error-boundary-DxfVshQ5.js.map} +1 -1
  39. package/build/client/assets/finished-DP5ynR5u.js +2 -0
  40. package/build/client/assets/finished-DP5ynR5u.js.map +1 -0
  41. package/build/client/assets/index-4E9_Sx3m.js +42 -0
  42. package/build/client/assets/index-4E9_Sx3m.js.map +1 -0
  43. package/build/client/assets/{index-Bg9MMnnf.js → index-90bzTYUX.js} +2 -2
  44. package/build/client/assets/index-90bzTYUX.js.map +1 -0
  45. package/build/client/assets/{index-BQRtqn3g.js → index-BXefr1BB.js} +2 -2
  46. package/build/client/assets/{index-BQRtqn3g.js.map → index-BXefr1BB.js.map} +1 -1
  47. package/build/client/assets/index-Czg1ruVn.js +37 -0
  48. package/build/client/assets/index-Czg1ruVn.js.map +1 -0
  49. package/build/client/assets/{index-9nNr0Zqr.js → index-D6ukHE4T.js} +2 -2
  50. package/build/client/assets/{index-9nNr0Zqr.js.map → index-D6ukHE4T.js.map} +1 -1
  51. package/build/client/assets/index-Doi37489.js +3 -0
  52. package/build/client/assets/index-Doi37489.js.map +1 -0
  53. package/build/client/assets/{loading-C9f_vBoM.js → loading-CNWJVymJ.js} +2 -2
  54. package/build/client/assets/{loading-C9f_vBoM.js.map → loading-CNWJVymJ.js.map} +1 -1
  55. package/build/client/assets/{login-D8zyjBAb.js → login-DxG854vQ.js} +2 -2
  56. package/build/client/assets/{login-D8zyjBAb.js.map → login-DxG854vQ.js.map} +1 -1
  57. package/build/client/assets/manifest-a1fde59b.js +1 -0
  58. package/build/client/assets/mdx-CR7Me1v_.js +2 -0
  59. package/build/client/assets/{mdx-BYvGbvEr.js.map → mdx-CR7Me1v_.js.map} +1 -1
  60. package/build/client/assets/misc-CypjEQkt.js +2 -0
  61. package/build/client/assets/misc-CypjEQkt.js.map +1 -0
  62. package/build/client/assets/{nav-chevrons-DOYtx9XE.js → nav-chevrons-BYKwyIgG.js} +2 -2
  63. package/build/client/assets/{nav-chevrons-DOYtx9XE.js.map → nav-chevrons-BYKwyIgG.js.map} +1 -1
  64. package/build/client/assets/{onboarding-euWyXpCL.js → onboarding-b9lcdh4n.js} +2 -2
  65. package/build/client/assets/{onboarding-euWyXpCL.js.map → onboarding-b9lcdh4n.js.map} +1 -1
  66. package/build/client/assets/{presence-BJPzwbUy.js → presence-DXXVJbaH.js} +2 -2
  67. package/build/client/assets/{presence-BJPzwbUy.js.map → presence-DXXVJbaH.js.map} +1 -1
  68. package/build/client/assets/progress-B_mReZVE.js +2 -0
  69. package/build/client/assets/progress-B_mReZVE.js.map +1 -0
  70. package/build/client/assets/{progress-bar-7LK87ZMh.js → progress-bar-DCrt7X4t.js} +2 -2
  71. package/build/client/assets/{progress-bar-7LK87ZMh.js.map → progress-bar-DCrt7X4t.js.map} +1 -1
  72. package/build/client/assets/{request-info-Dyls4H67.js → request-info-CUT0ULYN.js} +2 -2
  73. package/build/client/assets/{request-info-Dyls4H67.js.map → request-info-CUT0ULYN.js.map} +1 -1
  74. package/build/client/assets/{root-BQ7V6fP4.js → root-bgHbi7rA.js} +4 -4
  75. package/build/client/assets/root-bgHbi7rA.js.map +1 -0
  76. package/build/client/assets/{support-DUAHYT3r.js → support-DrY-qRGh.js} +2 -2
  77. package/build/client/assets/{support-DUAHYT3r.js.map → support-DrY-qRGh.js.map} +1 -1
  78. package/build/client/assets/tailwind-D2vjZZFL.css +1 -0
  79. package/build/client/assets/tooltip-CfmIzAYi.js +2 -0
  80. package/build/client/assets/tooltip-CfmIzAYi.js.map +1 -0
  81. package/build/client/assets/{use-event-source-aW6X9lN1.js → use-event-source-ySol3hbz.js} +2 -2
  82. package/build/client/assets/{use-event-source-aW6X9lN1.js.map → use-event-source-ySol3hbz.js.map} +1 -1
  83. package/build/client/assets/{user-73ocDYRe.js → user-C4QTtQw5.js} +2 -2
  84. package/build/client/assets/{user-73ocDYRe.js.map → user-C4QTtQw5.js.map} +1 -1
  85. package/build/server/index.js +841 -607
  86. package/build/server/index.js.map +1 -1
  87. package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +65 -3
  88. package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +65 -3
  89. package/node_modules/@babel/runtime/package.json +1 -28
  90. package/node_modules/@conform-to/dom/dom.d.ts +17 -5
  91. package/node_modules/@conform-to/dom/form.d.ts +221 -122
  92. package/node_modules/@conform-to/dom/index.d.ts +24 -2
  93. package/node_modules/@conform-to/dom/intent.d.ts +92 -60
  94. package/node_modules/@conform-to/dom/package.json +1 -1
  95. package/node_modules/@conform-to/dom/parse.d.ts +47 -27
  96. package/node_modules/@conform-to/dom/types.d.ts +17 -14
  97. package/node_modules/@conform-to/dom/util.d.ts +4 -1
  98. package/node_modules/@conform-to/react/context.d.ts +187 -59
  99. package/node_modules/@conform-to/react/context.js +3 -5
  100. package/node_modules/@conform-to/react/context.mjs +4 -6
  101. package/node_modules/@conform-to/react/experimental.d.ts +0 -0
  102. package/node_modules/@conform-to/react/hooks.d.ts +53 -24
  103. package/node_modules/@conform-to/react/index.d.ts +28 -4
  104. package/node_modules/@conform-to/react/integrations.js +14 -1
  105. package/node_modules/@conform-to/react/integrations.mjs +14 -1
  106. package/node_modules/@conform-to/react/package.json +2 -2
  107. package/node_modules/@conform-to/zod/coercion.d.ts +14 -4
  108. package/node_modules/@conform-to/zod/constraint.d.ts +3 -1
  109. package/node_modules/@conform-to/zod/package.json +2 -2
  110. package/node_modules/@conform-to/zod/parse.d.ts +43 -25
  111. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +1 -1
  112. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +14 -3
  113. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +51 -51
  114. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +51 -51
  115. package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +14 -3
  116. package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +14 -3
  117. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +14 -3
  118. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +1 -1
  119. package/node_modules/@floating-ui/core/package.json +2 -2
  120. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +1 -1
  121. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +12 -11
  122. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +11 -8
  123. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +11 -8
  124. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +1 -12
  125. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +1 -12
  126. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +12 -11
  127. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +1 -1
  128. package/node_modules/@floating-ui/dom/package.json +2 -2
  129. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.mts +12 -4
  130. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.ts +12 -4
  131. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js +1 -0
  132. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +1 -0
  133. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js +1 -0
  134. package/node_modules/@floating-ui/react-dom/package.json +1 -1
  135. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +11 -6
  136. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +11 -6
  137. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +2 -0
  138. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +2 -0
  139. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +13 -1
  140. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +13 -1
  141. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +13 -0
  142. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +1 -1
  143. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +2 -0
  144. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +13 -1
  145. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +13 -0
  146. package/node_modules/@floating-ui/utils/package.json +1 -1
  147. package/node_modules/@radix-ui/number/dist/index.d.mts +2 -2
  148. package/node_modules/@radix-ui/number/dist/index.d.ts +2 -2
  149. package/node_modules/@radix-ui/number/dist/index.js +28 -10
  150. package/node_modules/@radix-ui/number/dist/index.js.map +7 -1
  151. package/node_modules/@radix-ui/number/dist/index.mjs +6 -7
  152. package/node_modules/@radix-ui/number/dist/index.mjs.map +7 -1
  153. package/node_modules/@radix-ui/number/package.json +1 -4
  154. package/node_modules/@radix-ui/primitive/dist/index.d.mts +2 -2
  155. package/node_modules/@radix-ui/primitive/dist/index.d.ts +2 -2
  156. package/node_modules/@radix-ui/primitive/dist/index.js +33 -13
  157. package/node_modules/@radix-ui/primitive/dist/index.js.map +7 -1
  158. package/node_modules/@radix-ui/primitive/dist/index.mjs +11 -10
  159. package/node_modules/@radix-ui/primitive/dist/index.mjs.map +7 -1
  160. package/node_modules/@radix-ui/primitive/package.json +1 -4
  161. package/node_modules/@radix-ui/react-accordion/dist/index.d.mts +40 -28
  162. package/node_modules/@radix-ui/react-accordion/dist/index.d.ts +40 -28
  163. package/node_modules/@radix-ui/react-accordion/dist/index.js +324 -316
  164. package/node_modules/@radix-ui/react-accordion/dist/index.js.map +7 -1
  165. package/node_modules/@radix-ui/react-accordion/dist/index.mjs +293 -300
  166. package/node_modules/@radix-ui/react-accordion/dist/index.mjs.map +7 -1
  167. package/node_modules/@radix-ui/react-accordion/package.json +12 -13
  168. package/node_modules/@radix-ui/react-arrow/dist/index.d.mts +8 -8
  169. package/node_modules/@radix-ui/react-arrow/dist/index.d.ts +8 -8
  170. package/node_modules/@radix-ui/react-arrow/dist/index.js +57 -37
  171. package/node_modules/@radix-ui/react-arrow/dist/index.js.map +7 -1
  172. package/node_modules/@radix-ui/react-arrow/dist/index.mjs +25 -30
  173. package/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +7 -1
  174. package/node_modules/@radix-ui/react-arrow/package.json +4 -5
  175. package/node_modules/@radix-ui/react-collapsible/dist/index.d.mts +27 -16
  176. package/node_modules/@radix-ui/react-collapsible/dist/index.d.ts +27 -16
  177. package/node_modules/@radix-ui/react-collapsible/dist/index.js +176 -167
  178. package/node_modules/@radix-ui/react-collapsible/dist/index.js.map +7 -1
  179. package/node_modules/@radix-ui/react-collapsible/dist/index.mjs +143 -153
  180. package/node_modules/@radix-ui/react-collapsible/dist/index.mjs.map +7 -1
  181. package/node_modules/@radix-ui/react-collapsible/package.json +11 -12
  182. package/node_modules/@radix-ui/react-collection/dist/index.d.mts +27 -15
  183. package/node_modules/@radix-ui/react-collection/dist/index.d.ts +27 -15
  184. package/node_modules/@radix-ui/react-collection/dist/index.js +99 -112
  185. package/node_modules/@radix-ui/react-collection/dist/index.js.map +7 -1
  186. package/node_modules/@radix-ui/react-collection/dist/index.mjs +68 -106
  187. package/node_modules/@radix-ui/react-collection/dist/index.mjs.map +7 -1
  188. package/node_modules/@radix-ui/react-collection/package.json +7 -8
  189. package/node_modules/@radix-ui/react-compose-refs/dist/index.d.mts +5 -4
  190. package/node_modules/@radix-ui/react-compose-refs/dist/index.d.ts +5 -4
  191. package/node_modules/@radix-ui/react-compose-refs/dist/index.js +47 -30
  192. package/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +7 -1
  193. package/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +16 -27
  194. package/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.map +7 -1
  195. package/node_modules/@radix-ui/react-compose-refs/package.json +2 -5
  196. package/node_modules/@radix-ui/react-context/dist/index.d.mts +10 -8
  197. package/node_modules/@radix-ui/react-context/dist/index.d.ts +10 -8
  198. package/node_modules/@radix-ui/react-context/dist/index.js +104 -123
  199. package/node_modules/@radix-ui/react-context/dist/index.js.map +7 -1
  200. package/node_modules/@radix-ui/react-context/dist/index.mjs +73 -120
  201. package/node_modules/@radix-ui/react-context/dist/index.mjs.map +7 -1
  202. package/node_modules/@radix-ui/react-context/package.json +2 -5
  203. package/node_modules/@radix-ui/react-direction/dist/index.d.mts +6 -5
  204. package/node_modules/@radix-ui/react-direction/dist/index.d.ts +6 -5
  205. package/node_modules/@radix-ui/react-direction/dist/index.js +47 -24
  206. package/node_modules/@radix-ui/react-direction/dist/index.js.map +7 -1
  207. package/node_modules/@radix-ui/react-direction/dist/index.mjs +16 -20
  208. package/node_modules/@radix-ui/react-direction/dist/index.mjs.map +7 -1
  209. package/node_modules/@radix-ui/react-direction/package.json +2 -5
  210. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.mts +10 -10
  211. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.ts +10 -10
  212. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +230 -270
  213. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +7 -1
  214. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +199 -261
  215. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +7 -1
  216. package/node_modules/@radix-ui/react-dismissable-layer/package.json +9 -10
  217. package/node_modules/@radix-ui/react-focus-guards/dist/index.d.mts +4 -4
  218. package/node_modules/@radix-ui/react-focus-guards/dist/index.d.ts +4 -4
  219. package/node_modules/@radix-ui/react-focus-guards/dist/index.js +63 -39
  220. package/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +7 -1
  221. package/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +32 -34
  222. package/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +7 -1
  223. package/node_modules/@radix-ui/react-focus-guards/package.json +2 -5
  224. package/node_modules/@radix-ui/react-focus-scope/dist/index.d.mts +8 -8
  225. package/node_modules/@radix-ui/react-focus-scope/dist/index.d.ts +8 -8
  226. package/node_modules/@radix-ui/react-focus-scope/dist/index.js +228 -282
  227. package/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +7 -1
  228. package/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +197 -275
  229. package/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +7 -1
  230. package/node_modules/@radix-ui/react-focus-scope/package.json +6 -7
  231. package/node_modules/@radix-ui/react-id/dist/index.d.mts +2 -2
  232. package/node_modules/@radix-ui/react-id/dist/index.d.ts +2 -2
  233. package/node_modules/@radix-ui/react-id/dist/index.js +47 -26
  234. package/node_modules/@radix-ui/react-id/dist/index.js.map +7 -1
  235. package/node_modules/@radix-ui/react-id/dist/index.mjs +14 -22
  236. package/node_modules/@radix-ui/react-id/dist/index.mjs.map +7 -1
  237. package/node_modules/@radix-ui/react-id/package.json +3 -4
  238. package/node_modules/@radix-ui/react-popover/dist/index.d.mts +48 -37
  239. package/node_modules/@radix-ui/react-popover/dist/index.d.ts +48 -37
  240. package/node_modules/@radix-ui/react-popover/dist/index.js +319 -311
  241. package/node_modules/@radix-ui/react-popover/dist/index.js.map +7 -1
  242. package/node_modules/@radix-ui/react-popover/dist/index.mjs +288 -291
  243. package/node_modules/@radix-ui/react-popover/dist/index.mjs.map +7 -1
  244. package/node_modules/@radix-ui/react-popover/package.json +17 -18
  245. package/node_modules/@radix-ui/react-popper/dist/index.d.mts +36 -25
  246. package/node_modules/@radix-ui/react-popper/dist/index.d.ts +36 -25
  247. package/node_modules/@radix-ui/react-popper/dist/index.js +305 -321
  248. package/node_modules/@radix-ui/react-popper/dist/index.js.map +7 -1
  249. package/node_modules/@radix-ui/react-popper/dist/index.mjs +284 -305
  250. package/node_modules/@radix-ui/react-popper/dist/index.mjs.map +7 -1
  251. package/node_modules/@radix-ui/react-popper/package.json +12 -13
  252. package/node_modules/@radix-ui/react-portal/dist/index.d.mts +9 -9
  253. package/node_modules/@radix-ui/react-portal/dist/index.d.ts +9 -9
  254. package/node_modules/@radix-ui/react-portal/dist/index.js +52 -34
  255. package/node_modules/@radix-ui/react-portal/dist/index.js.map +7 -1
  256. package/node_modules/@radix-ui/react-portal/dist/index.mjs +21 -27
  257. package/node_modules/@radix-ui/react-portal/dist/index.mjs.map +7 -1
  258. package/node_modules/@radix-ui/react-portal/package.json +5 -5
  259. package/node_modules/@radix-ui/react-presence/dist/index.d.mts +5 -4
  260. package/node_modules/@radix-ui/react-presence/dist/index.d.ts +5 -4
  261. package/node_modules/@radix-ui/react-presence/dist/index.js +147 -132
  262. package/node_modules/@radix-ui/react-presence/dist/index.js.map +7 -1
  263. package/node_modules/@radix-ui/react-presence/dist/index.mjs +116 -129
  264. package/node_modules/@radix-ui/react-presence/dist/index.mjs.map +7 -1
  265. package/node_modules/@radix-ui/react-presence/package.json +5 -6
  266. package/node_modules/@radix-ui/react-primitive/dist/index.d.mts +8 -9
  267. package/node_modules/@radix-ui/react-primitive/dist/index.d.ts +8 -9
  268. package/node_modules/@radix-ui/react-primitive/dist/index.js +73 -100
  269. package/node_modules/@radix-ui/react-primitive/dist/index.js.map +7 -1
  270. package/node_modules/@radix-ui/react-primitive/dist/index.mjs +42 -93
  271. package/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +7 -1
  272. package/node_modules/@radix-ui/react-primitive/package.json +4 -5
  273. package/node_modules/@radix-ui/react-roving-focus/dist/index.d.mts +25 -13
  274. package/node_modules/@radix-ui/react-roving-focus/dist/index.d.ts +25 -13
  275. package/node_modules/@radix-ui/react-roving-focus/dist/index.js +239 -247
  276. package/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +7 -1
  277. package/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +209 -238
  278. package/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +7 -1
  279. package/node_modules/@radix-ui/react-roving-focus/package.json +12 -13
  280. package/node_modules/@radix-ui/react-select/dist/index.d.mts +77 -65
  281. package/node_modules/@radix-ui/react-select/dist/index.d.ts +77 -65
  282. package/node_modules/@radix-ui/react-select/dist/index.js +1107 -1235
  283. package/node_modules/@radix-ui/react-select/dist/index.js.map +7 -1
  284. package/node_modules/@radix-ui/react-select/dist/index.mjs +1076 -1197
  285. package/node_modules/@radix-ui/react-select/dist/index.mjs.map +7 -1
  286. package/node_modules/@radix-ui/react-select/package.json +23 -24
  287. package/node_modules/@radix-ui/react-slot/dist/index.d.mts +9 -7
  288. package/node_modules/@radix-ui/react-slot/dist/index.d.ts +9 -7
  289. package/node_modules/@radix-ui/react-slot/dist/index.js +107 -87
  290. package/node_modules/@radix-ui/react-slot/dist/index.js.map +7 -1
  291. package/node_modules/@radix-ui/react-slot/dist/index.mjs +76 -80
  292. package/node_modules/@radix-ui/react-slot/dist/index.mjs.map +7 -1
  293. package/node_modules/@radix-ui/react-slot/package.json +3 -4
  294. package/node_modules/@radix-ui/react-tabs/dist/index.d.mts +32 -21
  295. package/node_modules/@radix-ui/react-tabs/dist/index.d.ts +32 -21
  296. package/node_modules/@radix-ui/react-tabs/dist/index.js +217 -184
  297. package/node_modules/@radix-ui/react-tabs/dist/index.js.map +7 -1
  298. package/node_modules/@radix-ui/react-tabs/dist/index.mjs +185 -169
  299. package/node_modules/@radix-ui/react-tabs/dist/index.mjs.map +7 -1
  300. package/node_modules/@radix-ui/react-tabs/package.json +11 -12
  301. package/node_modules/@radix-ui/react-toast/dist/index.d.mts +43 -32
  302. package/node_modules/@radix-ui/react-toast/dist/index.d.ts +43 -32
  303. package/node_modules/@radix-ui/react-toast/dist/index.js +645 -715
  304. package/node_modules/@radix-ui/react-toast/dist/index.js.map +7 -1
  305. package/node_modules/@radix-ui/react-toast/dist/index.mjs +614 -695
  306. package/node_modules/@radix-ui/react-toast/dist/index.mjs.map +7 -1
  307. package/node_modules/@radix-ui/react-toast/package.json +15 -16
  308. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.mts +2 -2
  309. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.ts +2 -2
  310. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +42 -23
  311. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +7 -1
  312. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +11 -21
  313. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.map +7 -1
  314. package/node_modules/@radix-ui/react-use-callback-ref/package.json +2 -5
  315. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.mts +4 -3
  316. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.ts +4 -3
  317. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +75 -52
  318. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +7 -1
  319. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +44 -50
  320. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +7 -1
  321. package/node_modules/@radix-ui/react-use-controllable-state/package.json +3 -4
  322. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.mts +2 -2
  323. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.ts +2 -2
  324. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +50 -29
  325. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +7 -1
  326. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +17 -25
  327. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.map +7 -1
  328. package/node_modules/@radix-ui/react-use-escape-keydown/package.json +3 -4
  329. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.mts +4 -3
  330. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.ts +4 -3
  331. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +38 -17
  332. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +7 -1
  333. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +7 -15
  334. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map +7 -1
  335. package/node_modules/@radix-ui/react-use-layout-effect/package.json +2 -5
  336. package/node_modules/@radix-ui/react-use-previous/dist/index.d.mts +2 -2
  337. package/node_modules/@radix-ui/react-use-previous/dist/index.d.ts +2 -2
  338. package/node_modules/@radix-ui/react-use-previous/dist/index.js +45 -26
  339. package/node_modules/@radix-ui/react-use-previous/dist/index.js.map +7 -1
  340. package/node_modules/@radix-ui/react-use-previous/dist/index.mjs +14 -24
  341. package/node_modules/@radix-ui/react-use-previous/dist/index.mjs.map +7 -1
  342. package/node_modules/@radix-ui/react-use-previous/package.json +2 -5
  343. package/node_modules/@radix-ui/react-use-rect/dist/index.d.mts +4 -3
  344. package/node_modules/@radix-ui/react-use-rect/dist/index.d.ts +4 -3
  345. package/node_modules/@radix-ui/react-use-rect/dist/index.js +52 -32
  346. package/node_modules/@radix-ui/react-use-rect/dist/index.js.map +7 -1
  347. package/node_modules/@radix-ui/react-use-rect/dist/index.mjs +19 -28
  348. package/node_modules/@radix-ui/react-use-rect/dist/index.mjs.map +7 -1
  349. package/node_modules/@radix-ui/react-use-rect/package.json +3 -4
  350. package/node_modules/@radix-ui/react-use-size/dist/index.d.mts +2 -2
  351. package/node_modules/@radix-ui/react-use-size/dist/index.d.ts +2 -2
  352. package/node_modules/@radix-ui/react-use-size/dist/index.js +70 -57
  353. package/node_modules/@radix-ui/react-use-size/dist/index.js.map +7 -1
  354. package/node_modules/@radix-ui/react-use-size/dist/index.mjs +39 -55
  355. package/node_modules/@radix-ui/react-use-size/dist/index.mjs.map +7 -1
  356. package/node_modules/@radix-ui/react-use-size/package.json +3 -4
  357. package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.mts +8 -8
  358. package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.ts +8 -8
  359. package/node_modules/@radix-ui/react-visually-hidden/dist/index.js +64 -41
  360. package/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +7 -1
  361. package/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +33 -35
  362. package/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +7 -1
  363. package/node_modules/@radix-ui/react-visually-hidden/package.json +4 -5
  364. package/node_modules/@radix-ui/rect/dist/index.d.mts +3 -3
  365. package/node_modules/@radix-ui/rect/dist/index.d.ts +3 -3
  366. package/node_modules/@radix-ui/rect/dist/index.js +69 -66
  367. package/node_modules/@radix-ui/rect/dist/index.js.map +7 -1
  368. package/node_modules/@radix-ui/rect/dist/index.mjs +47 -63
  369. package/node_modules/@radix-ui/rect/dist/index.mjs.map +7 -1
  370. package/node_modules/@radix-ui/rect/package.json +1 -4
  371. package/node_modules/@remix-run/react/CHANGELOG.md +18 -0
  372. package/node_modules/@remix-run/react/dist/_virtual/_rollupPluginBabelHelpers.js +1 -1
  373. package/node_modules/@remix-run/react/dist/browser.js +14 -3
  374. package/node_modules/@remix-run/react/dist/components.d.ts +9 -0
  375. package/node_modules/@remix-run/react/dist/components.js +23 -19
  376. package/node_modules/@remix-run/react/dist/data.js +1 -1
  377. package/node_modules/@remix-run/react/dist/entry.d.ts +1 -0
  378. package/node_modules/@remix-run/react/dist/errorBoundaries.d.ts +5 -2
  379. package/node_modules/@remix-run/react/dist/errorBoundaries.js +26 -5
  380. package/node_modules/@remix-run/react/dist/errors.js +1 -1
  381. package/node_modules/@remix-run/react/dist/esm/_virtual/_rollupPluginBabelHelpers.js +1 -1
  382. package/node_modules/@remix-run/react/dist/esm/browser.js +14 -3
  383. package/node_modules/@remix-run/react/dist/esm/components.js +24 -20
  384. package/node_modules/@remix-run/react/dist/esm/data.js +1 -1
  385. package/node_modules/@remix-run/react/dist/esm/errorBoundaries.js +26 -5
  386. package/node_modules/@remix-run/react/dist/esm/errors.js +1 -1
  387. package/node_modules/@remix-run/react/dist/esm/fallback.js +1 -1
  388. package/node_modules/@remix-run/react/dist/esm/fog-of-war.js +226 -0
  389. package/node_modules/@remix-run/react/dist/esm/index.js +1 -1
  390. package/node_modules/@remix-run/react/dist/esm/invariant.js +1 -1
  391. package/node_modules/@remix-run/react/dist/esm/links.js +2 -2
  392. package/node_modules/@remix-run/react/dist/esm/markup.js +1 -1
  393. package/node_modules/@remix-run/react/dist/esm/routeModules.js +1 -1
  394. package/node_modules/@remix-run/react/dist/esm/routes.js +1 -1
  395. package/node_modules/@remix-run/react/dist/esm/scroll-restoration.js +1 -1
  396. package/node_modules/@remix-run/react/dist/esm/server.js +1 -1
  397. package/node_modules/@remix-run/react/dist/esm/single-fetch.js +1 -1
  398. package/node_modules/@remix-run/react/dist/fallback.js +1 -1
  399. package/node_modules/@remix-run/react/dist/fog-of-war.d.ts +37 -0
  400. package/node_modules/@remix-run/react/dist/fog-of-war.js +254 -0
  401. package/node_modules/@remix-run/react/dist/index.js +1 -1
  402. package/node_modules/@remix-run/react/dist/invariant.js +1 -1
  403. package/node_modules/@remix-run/react/dist/links.js +2 -2
  404. package/node_modules/@remix-run/react/dist/markup.js +1 -1
  405. package/node_modules/@remix-run/react/dist/routeModules.js +1 -1
  406. package/node_modules/@remix-run/react/dist/routes.d.ts +1 -1
  407. package/node_modules/@remix-run/react/dist/routes.js +1 -1
  408. package/node_modules/@remix-run/react/dist/scroll-restoration.js +1 -1
  409. package/node_modules/@remix-run/react/dist/server.js +1 -1
  410. package/node_modules/@remix-run/react/dist/single-fetch.js +1 -1
  411. package/node_modules/@remix-run/react/package.json +8 -8
  412. package/node_modules/@remix-run/router/CHANGELOG.md +9 -0
  413. package/node_modules/@remix-run/router/dist/index.d.ts +1 -1
  414. package/node_modules/@remix-run/router/dist/router.cjs.js +467 -80
  415. package/node_modules/@remix-run/router/dist/router.cjs.js.map +1 -1
  416. package/node_modules/@remix-run/router/dist/router.d.ts +11 -1
  417. package/node_modules/@remix-run/router/dist/router.js +457 -76
  418. package/node_modules/@remix-run/router/dist/router.js.map +1 -1
  419. package/node_modules/@remix-run/router/dist/router.umd.js +467 -80
  420. package/node_modules/@remix-run/router/dist/router.umd.js.map +1 -1
  421. package/node_modules/@remix-run/router/dist/router.umd.min.js +2 -2
  422. package/node_modules/@remix-run/router/dist/router.umd.min.js.map +1 -1
  423. package/node_modules/@remix-run/router/dist/utils.d.ts +9 -1
  424. package/node_modules/@remix-run/router/index.ts +1 -0
  425. package/node_modules/@remix-run/router/package.json +1 -1
  426. package/node_modules/@remix-run/router/router.ts +586 -73
  427. package/node_modules/@remix-run/router/utils.ts +51 -8
  428. package/node_modules/@remix-run/server-runtime/CHANGELOG.md +17 -0
  429. package/node_modules/@remix-run/server-runtime/dist/cookies.js +1 -1
  430. package/node_modules/@remix-run/server-runtime/dist/data.js +1 -1
  431. package/node_modules/@remix-run/server-runtime/dist/deprecations.js +1 -1
  432. package/node_modules/@remix-run/server-runtime/dist/dev.js +1 -1
  433. package/node_modules/@remix-run/server-runtime/dist/entry.d.ts +1 -0
  434. package/node_modules/@remix-run/server-runtime/dist/entry.js +1 -1
  435. package/node_modules/@remix-run/server-runtime/dist/errors.js +1 -1
  436. package/node_modules/@remix-run/server-runtime/dist/esm/cookies.js +1 -1
  437. package/node_modules/@remix-run/server-runtime/dist/esm/data.js +1 -1
  438. package/node_modules/@remix-run/server-runtime/dist/esm/deprecations.js +1 -1
  439. package/node_modules/@remix-run/server-runtime/dist/esm/dev.js +1 -1
  440. package/node_modules/@remix-run/server-runtime/dist/esm/entry.js +1 -1
  441. package/node_modules/@remix-run/server-runtime/dist/esm/errors.js +1 -1
  442. package/node_modules/@remix-run/server-runtime/dist/esm/formData.js +1 -1
  443. package/node_modules/@remix-run/server-runtime/dist/esm/headers.js +1 -1
  444. package/node_modules/@remix-run/server-runtime/dist/esm/index.js +1 -1
  445. package/node_modules/@remix-run/server-runtime/dist/esm/invariant.js +1 -1
  446. package/node_modules/@remix-run/server-runtime/dist/esm/markup.js +1 -1
  447. package/node_modules/@remix-run/server-runtime/dist/esm/mode.js +1 -1
  448. package/node_modules/@remix-run/server-runtime/dist/esm/responses.js +1 -1
  449. package/node_modules/@remix-run/server-runtime/dist/esm/routeMatching.js +1 -1
  450. package/node_modules/@remix-run/server-runtime/dist/esm/routes.js +1 -1
  451. package/node_modules/@remix-run/server-runtime/dist/esm/server.js +76 -11
  452. package/node_modules/@remix-run/server-runtime/dist/esm/serverHandoff.js +1 -1
  453. package/node_modules/@remix-run/server-runtime/dist/esm/sessions/cookieStorage.js +1 -1
  454. package/node_modules/@remix-run/server-runtime/dist/esm/sessions/memoryStorage.js +1 -1
  455. package/node_modules/@remix-run/server-runtime/dist/esm/sessions.js +1 -1
  456. package/node_modules/@remix-run/server-runtime/dist/esm/single-fetch.js +17 -8
  457. package/node_modules/@remix-run/server-runtime/dist/esm/upload/errors.js +1 -1
  458. package/node_modules/@remix-run/server-runtime/dist/esm/upload/memoryUploadHandler.js +1 -1
  459. package/node_modules/@remix-run/server-runtime/dist/esm/warnings.js +1 -1
  460. package/node_modules/@remix-run/server-runtime/dist/formData.js +1 -1
  461. package/node_modules/@remix-run/server-runtime/dist/headers.js +1 -1
  462. package/node_modules/@remix-run/server-runtime/dist/index.js +1 -1
  463. package/node_modules/@remix-run/server-runtime/dist/invariant.js +1 -1
  464. package/node_modules/@remix-run/server-runtime/dist/markup.js +1 -1
  465. package/node_modules/@remix-run/server-runtime/dist/mode.js +1 -1
  466. package/node_modules/@remix-run/server-runtime/dist/responses.js +1 -1
  467. package/node_modules/@remix-run/server-runtime/dist/routeMatching.js +1 -1
  468. package/node_modules/@remix-run/server-runtime/dist/routes.js +1 -1
  469. package/node_modules/@remix-run/server-runtime/dist/server.js +70 -5
  470. package/node_modules/@remix-run/server-runtime/dist/serverHandoff.js +1 -1
  471. package/node_modules/@remix-run/server-runtime/dist/sessions/cookieStorage.js +1 -1
  472. package/node_modules/@remix-run/server-runtime/dist/sessions/memoryStorage.js +1 -1
  473. package/node_modules/@remix-run/server-runtime/dist/sessions.js +1 -1
  474. package/node_modules/@remix-run/server-runtime/dist/single-fetch.d.ts +3 -0
  475. package/node_modules/@remix-run/server-runtime/dist/single-fetch.js +18 -7
  476. package/node_modules/@remix-run/server-runtime/dist/upload/errors.js +1 -1
  477. package/node_modules/@remix-run/server-runtime/dist/upload/memoryUploadHandler.js +1 -1
  478. package/node_modules/@remix-run/server-runtime/dist/warnings.js +1 -1
  479. package/node_modules/@remix-run/server-runtime/package.json +3 -3
  480. package/node_modules/deep-eql/index.js +10 -5
  481. package/node_modules/deep-eql/package.json +1 -1
  482. package/node_modules/framer-motion/dist/cjs/{dom-entry-DSxBucW4.js → dom-entry-GDJJhIpT.js} +59 -106
  483. package/node_modules/framer-motion/dist/cjs/dom-entry.js +1 -1
  484. package/node_modules/framer-motion/dist/cjs/index.js +123 -36
  485. package/node_modules/framer-motion/dist/dom.js +1 -1
  486. package/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs +3 -3
  487. package/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs +6 -3
  488. package/node_modules/framer-motion/dist/es/motion/index.mjs +33 -13
  489. package/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs +6 -3
  490. package/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs +54 -3
  491. package/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs +5 -2
  492. package/node_modules/framer-motion/dist/es/projection-entry.mjs +11 -0
  493. package/node_modules/framer-motion/dist/es/render/VisualElement.mjs +30 -78
  494. package/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs +5 -1
  495. package/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs +1 -1
  496. package/node_modules/framer-motion/dist/es/utils/mix/color.mjs +8 -2
  497. package/node_modules/framer-motion/dist/es/utils/mix/complex.mjs +1 -3
  498. package/node_modules/framer-motion/dist/es/utils/mix/immediate.mjs +5 -0
  499. package/node_modules/framer-motion/dist/es/value/index.mjs +1 -1
  500. package/node_modules/framer-motion/dist/es/value/types/color/rgba.mjs +1 -1
  501. package/node_modules/framer-motion/dist/framer-motion.dev.js +175 -134
  502. package/node_modules/framer-motion/dist/framer-motion.js +1 -1
  503. package/node_modules/framer-motion/dist/index.d.ts +78 -78
  504. package/node_modules/framer-motion/dist/three-entry.d.ts +59 -72
  505. package/node_modules/framer-motion/package.json +14 -28
  506. package/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +15 -4
  507. package/node_modules/react-remove-scroll/dist/es2015/UI.js +2 -2
  508. package/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +12 -4
  509. package/node_modules/react-remove-scroll/dist/es2015/types.d.ts +10 -2
  510. package/node_modules/react-remove-scroll/dist/es2019/SideEffect.js +15 -4
  511. package/node_modules/react-remove-scroll/dist/es2019/UI.js +2 -2
  512. package/node_modules/react-remove-scroll/dist/es2019/handleScroll.js +12 -4
  513. package/node_modules/react-remove-scroll/dist/es2019/types.d.ts +10 -2
  514. package/node_modules/react-remove-scroll/dist/es5/SideEffect.js +15 -4
  515. package/node_modules/react-remove-scroll/dist/es5/UI.js +2 -2
  516. package/node_modules/react-remove-scroll/dist/es5/handleScroll.js +12 -4
  517. package/node_modules/react-remove-scroll/dist/es5/types.d.ts +10 -2
  518. package/node_modules/react-remove-scroll/dist/index.js +93 -0
  519. package/node_modules/react-remove-scroll/package.json +4 -3
  520. package/node_modules/react-router/CHANGELOG.md +14 -0
  521. package/node_modules/react-router/dist/index.d.ts +4 -1
  522. package/node_modules/react-router/dist/index.js +3 -2
  523. package/node_modules/react-router/dist/index.js.map +1 -1
  524. package/node_modules/react-router/dist/main.js +1 -1
  525. package/node_modules/react-router/dist/react-router.development.js +3 -2
  526. package/node_modules/react-router/dist/react-router.development.js.map +1 -1
  527. package/node_modules/react-router/dist/react-router.production.min.js +2 -2
  528. package/node_modules/react-router/dist/react-router.production.min.js.map +1 -1
  529. package/node_modules/react-router/dist/umd/react-router.development.js +3 -2
  530. package/node_modules/react-router/dist/umd/react-router.development.js.map +1 -1
  531. package/node_modules/react-router/dist/umd/react-router.production.min.js +2 -2
  532. package/node_modules/react-router/dist/umd/react-router.production.min.js.map +1 -1
  533. package/node_modules/react-router/package.json +3 -3
  534. package/node_modules/react-router-dom/CHANGELOG.md +17 -0
  535. package/node_modules/react-router-dom/dist/dom.d.ts +29 -16
  536. package/node_modules/react-router-dom/dist/index.d.ts +18 -6
  537. package/node_modules/react-router-dom/dist/index.js +3 -1
  538. package/node_modules/react-router-dom/dist/index.js.map +1 -1
  539. package/node_modules/react-router-dom/dist/main.js +1 -1
  540. package/node_modules/react-router-dom/dist/react-router-dom.development.js +29 -1
  541. package/node_modules/react-router-dom/dist/react-router-dom.development.js.map +1 -1
  542. package/node_modules/react-router-dom/dist/react-router-dom.production.min.js +2 -2
  543. package/node_modules/react-router-dom/dist/react-router-dom.production.min.js.map +1 -1
  544. package/node_modules/react-router-dom/dist/server.js +4 -1
  545. package/node_modules/react-router-dom/dist/server.mjs +4 -1
  546. package/node_modules/react-router-dom/dist/umd/react-router-dom.development.js +29 -1
  547. package/node_modules/react-router-dom/dist/umd/react-router-dom.development.js.map +1 -1
  548. package/node_modules/react-router-dom/dist/umd/react-router-dom.production.min.js +2 -2
  549. package/node_modules/react-router-dom/dist/umd/react-router-dom.production.min.js.map +1 -1
  550. package/node_modules/react-router-dom/package.json +3 -3
  551. package/node_modules/react-router-dom/server.js +4 -1
  552. package/node_modules/react-router-dom/server.mjs +4 -1
  553. package/node_modules/{@remix-run/server-runtime/node_modules/source-map → source-map}/README.md +32 -112
  554. package/node_modules/source-map/dist/source-map.debug.js +3234 -0
  555. package/node_modules/source-map/dist/source-map.js +3233 -0
  556. package/node_modules/source-map/dist/source-map.min.js +2 -0
  557. package/node_modules/source-map/dist/source-map.min.js.map +1 -0
  558. package/node_modules/source-map/lib/array-set.js +121 -0
  559. package/node_modules/{@remix-run/server-runtime/node_modules/source-map → source-map}/lib/base64-vlq.js +40 -11
  560. package/node_modules/source-map/lib/base64.js +67 -0
  561. package/node_modules/{@remix-run/server-runtime/node_modules/source-map → source-map}/lib/binary-search.js +19 -15
  562. package/node_modules/source-map/lib/mapping-list.js +79 -0
  563. package/node_modules/source-map/lib/quick-sort.js +114 -0
  564. package/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  565. package/node_modules/{@remix-run/server-runtime/node_modules/source-map → source-map}/lib/source-map-generator.js +169 -157
  566. package/node_modules/source-map/lib/source-node.js +413 -0
  567. package/node_modules/{@remix-run/server-runtime/node_modules/source-map → source-map}/lib/util.js +51 -109
  568. package/node_modules/{@remix-run/server-runtime/node_modules/source-map → source-map}/package.json +9 -27
  569. package/node_modules/source-map/source-map.d.ts +98 -0
  570. package/node_modules/source-map/source-map.js +8 -0
  571. package/node_modules/turbo-stream/dist/flatten.d.ts +1 -1
  572. package/node_modules/turbo-stream/dist/flatten.js +44 -9
  573. package/node_modules/turbo-stream/dist/turbo-stream.js +11 -2
  574. package/node_modules/turbo-stream/dist/turbo-stream.mjs +58 -7
  575. package/node_modules/turbo-stream/dist/unflatten.js +2 -0
  576. package/node_modules/turbo-stream/dist/utils.d.ts +1 -0
  577. package/node_modules/turbo-stream/dist/utils.js +2 -1
  578. package/node_modules/turbo-stream/package.json +1 -1
  579. package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/index.d.ts +1 -0
  580. package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/package.json +2 -1
  581. package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/readme.md +1 -0
  582. package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/is-literal.d.ts +6 -4
  583. package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/merge-deep.d.ts +8 -9
  584. package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/omit-deep.d.ts +3 -3
  585. package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/paths.d.ts +14 -8
  586. package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/schema.d.ts +12 -12
  587. package/node_modules/type-fest/source/simplify-deep.d.ts +115 -0
  588. package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/simplify.d.ts +1 -1
  589. package/package.json +4 -4
  590. package/build/client/assets/_exerciseNumber_.finished-DNtyBHjg.js +0 -2
  591. package/build/client/assets/_exerciseNumber_.finished-DNtyBHjg.js.map +0 -1
  592. package/build/client/assets/_layout-BR-Qyofe.js +0 -2
  593. package/build/client/assets/_layout-CNgYirUN.js +0 -2
  594. package/build/client/assets/_layout-CNgYirUN.js.map +0 -1
  595. package/build/client/assets/_layout-xu6a9He_.js +0 -2
  596. package/build/client/assets/_layout-xu6a9He_.js.map +0 -1
  597. package/build/client/assets/components-C5xBZAiL.js +0 -119
  598. package/build/client/assets/components-C5xBZAiL.js.map +0 -1
  599. package/build/client/assets/diff-BKsbFB6w.js +0 -42
  600. package/build/client/assets/diff-BKsbFB6w.js.map +0 -1
  601. package/build/client/assets/diff-KDzcgGYL.js +0 -2
  602. package/build/client/assets/discord-Xp0X4-Fl.js +0 -2
  603. package/build/client/assets/discord-Xp0X4-Fl.js.map +0 -1
  604. package/build/client/assets/entry.client-0j1eoieD.js +0 -80
  605. package/build/client/assets/entry.client-0j1eoieD.js.map +0 -1
  606. package/build/client/assets/epic-video-BwtXsHGU.js.map +0 -1
  607. package/build/client/assets/finished-Cu9PZd5Q.js +0 -2
  608. package/build/client/assets/finished-Cu9PZd5Q.js.map +0 -1
  609. package/build/client/assets/index-Bg9MMnnf.js.map +0 -1
  610. package/build/client/assets/index-D6ygCrVn.js +0 -37
  611. package/build/client/assets/index-D6ygCrVn.js.map +0 -1
  612. package/build/client/assets/index-r90CY6Wk.js +0 -8
  613. package/build/client/assets/index-r90CY6Wk.js.map +0 -1
  614. package/build/client/assets/manifest-b31ba37c.js +0 -1
  615. package/build/client/assets/mdx-BYvGbvEr.js +0 -2
  616. package/build/client/assets/misc-DNgC2Frq.js +0 -2
  617. package/build/client/assets/misc-DNgC2Frq.js.map +0 -1
  618. package/build/client/assets/progress-CF9Xwfxf.js +0 -2
  619. package/build/client/assets/progress-CF9Xwfxf.js.map +0 -1
  620. package/build/client/assets/root-BQ7V6fP4.js.map +0 -1
  621. package/build/client/assets/tailwind-Ck4g-nq0.css +0 -1
  622. package/build/client/assets/tooltip-Kw0lYWBI.js +0 -2
  623. package/build/client/assets/tooltip-Kw0lYWBI.js.map +0 -1
  624. package/node_modules/@babel/runtime/helpers/AsyncGenerator.js +0 -64
  625. package/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js +0 -64
  626. package/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +0 -10
  627. package/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js +0 -8
  628. package/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +0 -10
  629. package/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js +0 -8
  630. package/node_modules/@conform-to/dom/rollup.config.js +0 -100
  631. package/node_modules/@conform-to/react/rollup.config.js +0 -102
  632. package/node_modules/@conform-to/zod/rollup.config.js +0 -100
  633. package/node_modules/@radix-ui/number/dist/index.d.ts.map +0 -1
  634. package/node_modules/@radix-ui/primitive/dist/index.d.ts.map +0 -1
  635. package/node_modules/@radix-ui/react-accordion/dist/index.d.ts.map +0 -1
  636. package/node_modules/@radix-ui/react-arrow/dist/index.d.ts.map +0 -1
  637. package/node_modules/@radix-ui/react-collapsible/dist/index.d.ts.map +0 -1
  638. package/node_modules/@radix-ui/react-collection/dist/index.d.ts.map +0 -1
  639. package/node_modules/@radix-ui/react-compose-refs/dist/index.d.ts.map +0 -1
  640. package/node_modules/@radix-ui/react-context/dist/index.d.ts.map +0 -1
  641. package/node_modules/@radix-ui/react-direction/dist/index.d.ts.map +0 -1
  642. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.ts.map +0 -1
  643. package/node_modules/@radix-ui/react-focus-guards/dist/index.d.ts.map +0 -1
  644. package/node_modules/@radix-ui/react-focus-scope/dist/index.d.ts.map +0 -1
  645. package/node_modules/@radix-ui/react-id/dist/index.d.ts.map +0 -1
  646. package/node_modules/@radix-ui/react-popover/dist/index.d.ts.map +0 -1
  647. package/node_modules/@radix-ui/react-popper/dist/index.d.ts.map +0 -1
  648. package/node_modules/@radix-ui/react-portal/dist/index.d.ts.map +0 -1
  649. package/node_modules/@radix-ui/react-presence/dist/index.d.ts.map +0 -1
  650. package/node_modules/@radix-ui/react-primitive/dist/index.d.ts.map +0 -1
  651. package/node_modules/@radix-ui/react-roving-focus/dist/index.d.ts.map +0 -1
  652. package/node_modules/@radix-ui/react-select/dist/index.d.ts.map +0 -1
  653. package/node_modules/@radix-ui/react-slot/dist/index.d.ts.map +0 -1
  654. package/node_modules/@radix-ui/react-tabs/dist/index.d.ts.map +0 -1
  655. package/node_modules/@radix-ui/react-toast/dist/index.d.ts.map +0 -1
  656. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.ts.map +0 -1
  657. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.ts.map +0 -1
  658. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.ts.map +0 -1
  659. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.ts.map +0 -1
  660. package/node_modules/@radix-ui/react-use-previous/dist/index.d.ts.map +0 -1
  661. package/node_modules/@radix-ui/react-use-rect/dist/index.d.ts.map +0 -1
  662. package/node_modules/@radix-ui/react-use-size/dist/index.d.ts.map +0 -1
  663. package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.ts.map +0 -1
  664. package/node_modules/@radix-ui/rect/dist/index.d.ts.map +0 -1
  665. package/node_modules/@remix-run/server-runtime/node_modules/source-map/dist/source-map.js +0 -1
  666. package/node_modules/@remix-run/server-runtime/node_modules/source-map/lib/array-set.js +0 -100
  667. package/node_modules/@remix-run/server-runtime/node_modules/source-map/lib/base64.js +0 -18
  668. package/node_modules/@remix-run/server-runtime/node_modules/source-map/lib/mapping-list.js +0 -80
  669. package/node_modules/@remix-run/server-runtime/node_modules/source-map/lib/source-map-consumer.js +0 -1237
  670. package/node_modules/@remix-run/server-runtime/node_modules/source-map/lib/source-node.js +0 -404
  671. package/node_modules/@remix-run/server-runtime/node_modules/source-map/source-map.d.ts +0 -369
  672. package/node_modules/@remix-run/server-runtime/node_modules/source-map/source-map.js +0 -8
  673. package/node_modules/framer-motion/dist/projection.dev.js +0 -6659
  674. /package/node_modules/{@remix-run/server-runtime/node_modules/source-map → source-map}/LICENSE +0 -0
  675. /package/node_modules/{@remix-run/server-runtime/node_modules/source-map → source-map}/lib/mappings.wasm +0 -0
  676. /package/node_modules/{@remix-run/server-runtime/node_modules/source-map → source-map}/lib/read-wasm.js +0 -0
  677. /package/node_modules/{@remix-run/server-runtime/node_modules/source-map → source-map}/lib/wasm.js +0 -0
  678. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/and.d.ts +0 -0
  679. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/array-indices.d.ts +0 -0
  680. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/array-slice.d.ts +0 -0
  681. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/array-splice.d.ts +0 -0
  682. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/array-values.d.ts +0 -0
  683. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/async-return-type.d.ts +0 -0
  684. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/asyncify.d.ts +0 -0
  685. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/basic.d.ts +0 -0
  686. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/camel-case.d.ts +0 -0
  687. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/camel-cased-properties-deep.d.ts +0 -0
  688. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/camel-cased-properties.d.ts +0 -0
  689. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/conditional-except.d.ts +0 -0
  690. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/conditional-keys.d.ts +0 -0
  691. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/conditional-pick-deep.d.ts +0 -0
  692. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/conditional-pick.d.ts +0 -0
  693. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/conditional-simplify.d.ts +0 -0
  694. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/delimiter-case.d.ts +0 -0
  695. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/delimiter-cased-properties-deep.d.ts +0 -0
  696. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/delimiter-cased-properties.d.ts +0 -0
  697. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/distributed-omit.d.ts +0 -0
  698. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/distributed-pick.d.ts +0 -0
  699. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/empty-object.d.ts +0 -0
  700. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/enforce-optional.d.ts +0 -0
  701. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/entries.d.ts +0 -0
  702. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/entry.d.ts +0 -0
  703. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/exact.d.ts +0 -0
  704. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/except.d.ts +0 -0
  705. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/fixed-length-array.d.ts +0 -0
  706. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/get.d.ts +0 -0
  707. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/global-this.d.ts +0 -0
  708. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/greater-than-or-equal.d.ts +0 -0
  709. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/greater-than.d.ts +0 -0
  710. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/has-optional-keys.d.ts +0 -0
  711. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/has-readonly-keys.d.ts +0 -0
  712. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/has-required-keys.d.ts +0 -0
  713. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/has-writable-keys.d.ts +0 -0
  714. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/if-any.d.ts +0 -0
  715. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/if-empty-object.d.ts +0 -0
  716. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/if-never.d.ts +0 -0
  717. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/if-null.d.ts +0 -0
  718. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/if-unknown.d.ts +0 -0
  719. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/includes.d.ts +0 -0
  720. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/int-range.d.ts +0 -0
  721. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/internal.d.ts +0 -0
  722. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/invariant-of.d.ts +0 -0
  723. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/is-any.d.ts +0 -0
  724. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/is-equal.d.ts +0 -0
  725. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/is-float.d.ts +0 -0
  726. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/is-integer.d.ts +0 -0
  727. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/is-never.d.ts +0 -0
  728. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/is-null.d.ts +0 -0
  729. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/is-unknown.d.ts +0 -0
  730. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/iterable-element.d.ts +0 -0
  731. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/join.d.ts +0 -0
  732. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/jsonifiable.d.ts +0 -0
  733. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/jsonify.d.ts +0 -0
  734. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/kebab-case.d.ts +0 -0
  735. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/kebab-cased-properties-deep.d.ts +0 -0
  736. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/kebab-cased-properties.d.ts +0 -0
  737. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/keys-of-union.d.ts +0 -0
  738. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/last-array-element.d.ts +0 -0
  739. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/less-than-or-equal.d.ts +0 -0
  740. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/less-than.d.ts +0 -0
  741. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/literal-to-primitive-deep.d.ts +0 -0
  742. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/literal-to-primitive.d.ts +0 -0
  743. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/literal-union.d.ts +0 -0
  744. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/merge-exclusive.d.ts +0 -0
  745. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/merge.d.ts +0 -0
  746. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/multidimensional-array.d.ts +0 -0
  747. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/multidimensional-readonly-array.d.ts +0 -0
  748. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/non-empty-object.d.ts +0 -0
  749. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/numeric.d.ts +0 -0
  750. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/observable-like.d.ts +0 -0
  751. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/omit-index-signature.d.ts +0 -0
  752. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/opaque.d.ts +0 -0
  753. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/optional-keys-of.d.ts +0 -0
  754. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/or.d.ts +0 -0
  755. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/override-properties.d.ts +0 -0
  756. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/package-json.d.ts +0 -0
  757. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/partial-deep.d.ts +0 -0
  758. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/partial-on-undefined-deep.d.ts +0 -0
  759. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/pascal-case.d.ts +0 -0
  760. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/pascal-cased-properties-deep.d.ts +0 -0
  761. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/pascal-cased-properties.d.ts +0 -0
  762. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/pick-deep.d.ts +0 -0
  763. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/pick-index-signature.d.ts +0 -0
  764. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/primitive.d.ts +0 -0
  765. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/promisable.d.ts +0 -0
  766. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/readonly-deep.d.ts +0 -0
  767. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/readonly-keys-of.d.ts +0 -0
  768. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/readonly-tuple.d.ts +0 -0
  769. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/replace.d.ts +0 -0
  770. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/require-all-or-none.d.ts +0 -0
  771. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/require-at-least-one.d.ts +0 -0
  772. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/require-exactly-one.d.ts +0 -0
  773. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/require-one-or-none.d.ts +0 -0
  774. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/required-deep.d.ts +0 -0
  775. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/required-keys-of.d.ts +0 -0
  776. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/screaming-snake-case.d.ts +0 -0
  777. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/set-field-type.d.ts +0 -0
  778. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/set-non-nullable.d.ts +0 -0
  779. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/set-optional.d.ts +0 -0
  780. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/set-parameter-type.d.ts +0 -0
  781. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/set-readonly.d.ts +0 -0
  782. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/set-required.d.ts +0 -0
  783. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/set-return-type.d.ts +0 -0
  784. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/shared-union-fields-deep.d.ts +0 -0
  785. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/single-key-object.d.ts +0 -0
  786. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/snake-case.d.ts +0 -0
  787. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/snake-cased-properties-deep.d.ts +0 -0
  788. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/snake-cased-properties.d.ts +0 -0
  789. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/split-words.d.ts +0 -0
  790. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/split.d.ts +0 -0
  791. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/spread.d.ts +0 -0
  792. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/string-key-of.d.ts +0 -0
  793. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/string-slice.d.ts +0 -0
  794. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/stringified.d.ts +0 -0
  795. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/subtract.d.ts +0 -0
  796. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/sum.d.ts +0 -0
  797. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/tagged-union.d.ts +0 -0
  798. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/trim.d.ts +0 -0
  799. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/tsconfig-json.d.ts +0 -0
  800. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/tuple-to-union.d.ts +0 -0
  801. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/typed-array.d.ts +0 -0
  802. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/undefined-on-partial-deep.d.ts +0 -0
  803. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/union-to-intersection.d.ts +0 -0
  804. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/unknown-array.d.ts +0 -0
  805. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/unknown-record.d.ts +0 -0
  806. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/value-of.d.ts +0 -0
  807. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/writable-deep.d.ts +0 -0
  808. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/writable-keys-of.d.ts +0 -0
  809. /package/node_modules/{remix-utils/node_modules/type-fest → type-fest}/source/writable.d.ts +0 -0
@@ -1,1237 +0,0 @@
1
- /* -*- Mode: js; js-indent-level: 2; -*- */
2
- /*
3
- * Copyright 2011 Mozilla Foundation and contributors
4
- * Licensed under the New BSD license. See LICENSE or:
5
- * http://opensource.org/licenses/BSD-3-Clause
6
- */
7
-
8
- const util = require("./util");
9
- const binarySearch = require("./binary-search");
10
- const ArraySet = require("./array-set").ArraySet;
11
- const base64VLQ = require("./base64-vlq"); // eslint-disable-line no-unused-vars
12
- const readWasm = require("../lib/read-wasm");
13
- const wasm = require("./wasm");
14
-
15
- const INTERNAL = Symbol("smcInternal");
16
-
17
- class SourceMapConsumer {
18
- constructor(aSourceMap, aSourceMapURL) {
19
- // If the constructor was called by super(), just return Promise<this>.
20
- // Yes, this is a hack to retain the pre-existing API of the base-class
21
- // constructor also being an async factory function.
22
- if (aSourceMap == INTERNAL) {
23
- return Promise.resolve(this);
24
- }
25
-
26
- return _factory(aSourceMap, aSourceMapURL);
27
- }
28
-
29
- static initialize(opts) {
30
- readWasm.initialize(opts["lib/mappings.wasm"]);
31
- }
32
-
33
- static fromSourceMap(aSourceMap, aSourceMapURL) {
34
- return _factoryBSM(aSourceMap, aSourceMapURL);
35
- }
36
-
37
- /**
38
- * Construct a new `SourceMapConsumer` from `rawSourceMap` and `sourceMapUrl`
39
- * (see the `SourceMapConsumer` constructor for details. Then, invoke the `async
40
- * function f(SourceMapConsumer) -> T` with the newly constructed consumer, wait
41
- * for `f` to complete, call `destroy` on the consumer, and return `f`'s return
42
- * value.
43
- *
44
- * You must not use the consumer after `f` completes!
45
- *
46
- * By using `with`, you do not have to remember to manually call `destroy` on
47
- * the consumer, since it will be called automatically once `f` completes.
48
- *
49
- * ```js
50
- * const xSquared = await SourceMapConsumer.with(
51
- * myRawSourceMap,
52
- * null,
53
- * async function (consumer) {
54
- * // Use `consumer` inside here and don't worry about remembering
55
- * // to call `destroy`.
56
- *
57
- * const x = await whatever(consumer);
58
- * return x * x;
59
- * }
60
- * );
61
- *
62
- * // You may not use that `consumer` anymore out here; it has
63
- * // been destroyed. But you can use `xSquared`.
64
- * console.log(xSquared);
65
- * ```
66
- */
67
- static async with(rawSourceMap, sourceMapUrl, f) {
68
- const consumer = await new SourceMapConsumer(rawSourceMap, sourceMapUrl);
69
- try {
70
- return await f(consumer);
71
- } finally {
72
- consumer.destroy();
73
- }
74
- }
75
-
76
- /**
77
- * Parse the mappings in a string in to a data structure which we can easily
78
- * query (the ordered arrays in the `this.__generatedMappings` and
79
- * `this.__originalMappings` properties).
80
- */
81
- _parseMappings(aStr, aSourceRoot) {
82
- throw new Error("Subclasses must implement _parseMappings");
83
- }
84
-
85
- /**
86
- * Iterate over each mapping between an original source/line/column and a
87
- * generated line/column in this source map.
88
- *
89
- * @param Function aCallback
90
- * The function that is called with each mapping.
91
- * @param Object aContext
92
- * Optional. If specified, this object will be the value of `this` every
93
- * time that `aCallback` is called.
94
- * @param aOrder
95
- * Either `SourceMapConsumer.GENERATED_ORDER` or
96
- * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to
97
- * iterate over the mappings sorted by the generated file's line/column
98
- * order or the original's source/line/column order, respectively. Defaults to
99
- * `SourceMapConsumer.GENERATED_ORDER`.
100
- */
101
- eachMapping(aCallback, aContext, aOrder) {
102
- throw new Error("Subclasses must implement eachMapping");
103
- }
104
-
105
- /**
106
- * Returns all generated line and column information for the original source,
107
- * line, and column provided. If no column is provided, returns all mappings
108
- * corresponding to a either the line we are searching for or the next
109
- * closest line that has any mappings. Otherwise, returns all mappings
110
- * corresponding to the given line and either the column we are searching for
111
- * or the next closest column that has any offsets.
112
- *
113
- * The only argument is an object with the following properties:
114
- *
115
- * - source: The filename of the original source.
116
- * - line: The line number in the original source. The line number is 1-based.
117
- * - column: Optional. the column number in the original source.
118
- * The column number is 0-based.
119
- *
120
- * and an array of objects is returned, each with the following properties:
121
- *
122
- * - line: The line number in the generated source, or null. The
123
- * line number is 1-based.
124
- * - column: The column number in the generated source, or null.
125
- * The column number is 0-based.
126
- */
127
- allGeneratedPositionsFor(aArgs) {
128
- throw new Error("Subclasses must implement allGeneratedPositionsFor");
129
- }
130
-
131
- destroy() {
132
- throw new Error("Subclasses must implement destroy");
133
- }
134
- }
135
-
136
- /**
137
- * The version of the source mapping spec that we are consuming.
138
- */
139
- SourceMapConsumer.prototype._version = 3;
140
- SourceMapConsumer.GENERATED_ORDER = 1;
141
- SourceMapConsumer.ORIGINAL_ORDER = 2;
142
-
143
- SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
144
- SourceMapConsumer.LEAST_UPPER_BOUND = 2;
145
-
146
- exports.SourceMapConsumer = SourceMapConsumer;
147
-
148
- /**
149
- * A BasicSourceMapConsumer instance represents a parsed source map which we can
150
- * query for information about the original file positions by giving it a file
151
- * position in the generated source.
152
- *
153
- * The first parameter is the raw source map (either as a JSON string, or
154
- * already parsed to an object). According to the spec, source maps have the
155
- * following attributes:
156
- *
157
- * - version: Which version of the source map spec this map is following.
158
- * - sources: An array of URLs to the original source files.
159
- * - names: An array of identifiers which can be referenced by individual mappings.
160
- * - sourceRoot: Optional. The URL root from which all sources are relative.
161
- * - sourcesContent: Optional. An array of contents of the original source files.
162
- * - mappings: A string of base64 VLQs which contain the actual mappings.
163
- * - file: Optional. The generated file this source map is associated with.
164
- *
165
- * Here is an example source map, taken from the source map spec[0]:
166
- *
167
- * {
168
- * version : 3,
169
- * file: "out.js",
170
- * sourceRoot : "",
171
- * sources: ["foo.js", "bar.js"],
172
- * names: ["src", "maps", "are", "fun"],
173
- * mappings: "AA,AB;;ABCDE;"
174
- * }
175
- *
176
- * The second parameter, if given, is a string whose value is the URL
177
- * at which the source map was found. This URL is used to compute the
178
- * sources array.
179
- *
180
- * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
181
- */
182
- class BasicSourceMapConsumer extends SourceMapConsumer {
183
- constructor(aSourceMap, aSourceMapURL) {
184
- return super(INTERNAL).then(that => {
185
- let sourceMap = aSourceMap;
186
- if (typeof aSourceMap === "string") {
187
- sourceMap = util.parseSourceMapInput(aSourceMap);
188
- }
189
-
190
- const version = util.getArg(sourceMap, "version");
191
- let sources = util.getArg(sourceMap, "sources");
192
- // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which
193
- // requires the array) to play nice here.
194
- const names = util.getArg(sourceMap, "names", []);
195
- let sourceRoot = util.getArg(sourceMap, "sourceRoot", null);
196
- const sourcesContent = util.getArg(sourceMap, "sourcesContent", null);
197
- const mappings = util.getArg(sourceMap, "mappings");
198
- const file = util.getArg(sourceMap, "file", null);
199
-
200
- // Once again, Sass deviates from the spec and supplies the version as a
201
- // string rather than a number, so we use loose equality checking here.
202
- if (version != that._version) {
203
- throw new Error("Unsupported version: " + version);
204
- }
205
-
206
- if (sourceRoot) {
207
- sourceRoot = util.normalize(sourceRoot);
208
- }
209
-
210
- sources = sources
211
- .map(String)
212
- // Some source maps produce relative source paths like "./foo.js" instead of
213
- // "foo.js". Normalize these first so that future comparisons will succeed.
214
- // See bugzil.la/1090768.
215
- .map(util.normalize)
216
- // Always ensure that absolute sources are internally stored relative to
217
- // the source root, if the source root is absolute. Not doing this would
218
- // be particularly problematic when the source root is a prefix of the
219
- // source (valid, but why??). See github issue #199 and bugzil.la/1188982.
220
- .map(function(source) {
221
- return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source)
222
- ? util.relative(sourceRoot, source)
223
- : source;
224
- });
225
-
226
- // Pass `true` below to allow duplicate names and sources. While source maps
227
- // are intended to be compressed and deduplicated, the TypeScript compiler
228
- // sometimes generates source maps with duplicates in them. See Github issue
229
- // #72 and bugzil.la/889492.
230
- that._names = ArraySet.fromArray(names.map(String), true);
231
- that._sources = ArraySet.fromArray(sources, true);
232
-
233
- that._absoluteSources = that._sources.toArray().map(function(s) {
234
- return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
235
- });
236
-
237
- that.sourceRoot = sourceRoot;
238
- that.sourcesContent = sourcesContent;
239
- that._mappings = mappings;
240
- that._sourceMapURL = aSourceMapURL;
241
- that.file = file;
242
-
243
- that._computedColumnSpans = false;
244
- that._mappingsPtr = 0;
245
- that._wasm = null;
246
-
247
- return wasm().then(w => {
248
- that._wasm = w;
249
- return that;
250
- });
251
- });
252
- }
253
-
254
- /**
255
- * Utility function to find the index of a source. Returns -1 if not
256
- * found.
257
- */
258
- _findSourceIndex(aSource) {
259
- let relativeSource = aSource;
260
- if (this.sourceRoot != null) {
261
- relativeSource = util.relative(this.sourceRoot, relativeSource);
262
- }
263
-
264
- if (this._sources.has(relativeSource)) {
265
- return this._sources.indexOf(relativeSource);
266
- }
267
-
268
- // Maybe aSource is an absolute URL as returned by |sources|. In
269
- // this case we can't simply undo the transform.
270
- for (let i = 0; i < this._absoluteSources.length; ++i) {
271
- if (this._absoluteSources[i] == aSource) {
272
- return i;
273
- }
274
- }
275
-
276
- return -1;
277
- }
278
-
279
- /**
280
- * Create a BasicSourceMapConsumer from a SourceMapGenerator.
281
- *
282
- * @param SourceMapGenerator aSourceMap
283
- * The source map that will be consumed.
284
- * @param String aSourceMapURL
285
- * The URL at which the source map can be found (optional)
286
- * @returns BasicSourceMapConsumer
287
- */
288
- static fromSourceMap(aSourceMap, aSourceMapURL) {
289
- return new BasicSourceMapConsumer(aSourceMap.toString());
290
- }
291
-
292
- get sources() {
293
- return this._absoluteSources.slice();
294
- }
295
-
296
- _getMappingsPtr() {
297
- if (this._mappingsPtr === 0) {
298
- this._parseMappings(this._mappings, this.sourceRoot);
299
- }
300
-
301
- return this._mappingsPtr;
302
- }
303
-
304
- /**
305
- * Parse the mappings in a string in to a data structure which we can easily
306
- * query (the ordered arrays in the `this.__generatedMappings` and
307
- * `this.__originalMappings` properties).
308
- */
309
- _parseMappings(aStr, aSourceRoot) {
310
- const size = aStr.length;
311
-
312
- const mappingsBufPtr = this._wasm.exports.allocate_mappings(size);
313
- const mappingsBuf = new Uint8Array(this._wasm.exports.memory.buffer, mappingsBufPtr, size);
314
- for (let i = 0; i < size; i++) {
315
- mappingsBuf[i] = aStr.charCodeAt(i);
316
- }
317
-
318
- const mappingsPtr = this._wasm.exports.parse_mappings(mappingsBufPtr);
319
-
320
- if (!mappingsPtr) {
321
- const error = this._wasm.exports.get_last_error();
322
- let msg = `Error parsing mappings (code ${error}): `;
323
-
324
- // XXX: keep these error codes in sync with `fitzgen/source-map-mappings`.
325
- switch (error) {
326
- case 1:
327
- msg += "the mappings contained a negative line, column, source index, or name index";
328
- break;
329
- case 2:
330
- msg += "the mappings contained a number larger than 2**32";
331
- break;
332
- case 3:
333
- msg += "reached EOF while in the middle of parsing a VLQ";
334
- break;
335
- case 4:
336
- msg += "invalid base 64 character while parsing a VLQ";
337
- break;
338
- default:
339
- msg += "unknown error code";
340
- break;
341
- }
342
-
343
- throw new Error(msg);
344
- }
345
-
346
- this._mappingsPtr = mappingsPtr;
347
- }
348
-
349
- eachMapping(aCallback, aContext, aOrder) {
350
- const context = aContext || null;
351
- const order = aOrder || SourceMapConsumer.GENERATED_ORDER;
352
- const sourceRoot = this.sourceRoot;
353
-
354
- this._wasm.withMappingCallback(
355
- mapping => {
356
- if (mapping.source !== null) {
357
- mapping.source = this._sources.at(mapping.source);
358
- mapping.source = util.computeSourceURL(sourceRoot, mapping.source, this._sourceMapURL);
359
-
360
- if (mapping.name !== null) {
361
- mapping.name = this._names.at(mapping.name);
362
- }
363
- }
364
-
365
- aCallback.call(context, mapping);
366
- },
367
- () => {
368
- switch (order) {
369
- case SourceMapConsumer.GENERATED_ORDER:
370
- this._wasm.exports.by_generated_location(this._getMappingsPtr());
371
- break;
372
- case SourceMapConsumer.ORIGINAL_ORDER:
373
- this._wasm.exports.by_original_location(this._getMappingsPtr());
374
- break;
375
- default:
376
- throw new Error("Unknown order of iteration.");
377
- }
378
- }
379
- );
380
- }
381
-
382
- allGeneratedPositionsFor(aArgs) {
383
- let source = util.getArg(aArgs, "source");
384
- const originalLine = util.getArg(aArgs, "line");
385
- const originalColumn = aArgs.column || 0;
386
-
387
- source = this._findSourceIndex(source);
388
- if (source < 0) {
389
- return [];
390
- }
391
-
392
- if (originalLine < 1) {
393
- throw new Error("Line numbers must be >= 1");
394
- }
395
-
396
- if (originalColumn < 0) {
397
- throw new Error("Column numbers must be >= 0");
398
- }
399
-
400
- const mappings = [];
401
-
402
- this._wasm.withMappingCallback(
403
- m => {
404
- let lastColumn = m.lastGeneratedColumn;
405
- if (this._computedColumnSpans && lastColumn === null) {
406
- lastColumn = Infinity;
407
- }
408
- mappings.push({
409
- line: m.generatedLine,
410
- column: m.generatedColumn,
411
- lastColumn,
412
- });
413
- }, () => {
414
- this._wasm.exports.all_generated_locations_for(
415
- this._getMappingsPtr(),
416
- source,
417
- originalLine - 1,
418
- "column" in aArgs,
419
- originalColumn
420
- );
421
- }
422
- );
423
-
424
- return mappings;
425
- }
426
-
427
- destroy() {
428
- if (this._mappingsPtr !== 0) {
429
- this._wasm.exports.free_mappings(this._mappingsPtr);
430
- this._mappingsPtr = 0;
431
- }
432
- }
433
-
434
- /**
435
- * Compute the last column for each generated mapping. The last column is
436
- * inclusive.
437
- */
438
- computeColumnSpans() {
439
- if (this._computedColumnSpans) {
440
- return;
441
- }
442
-
443
- this._wasm.exports.compute_column_spans(this._getMappingsPtr());
444
- this._computedColumnSpans = true;
445
- }
446
-
447
- /**
448
- * Returns the original source, line, and column information for the generated
449
- * source's line and column positions provided. The only argument is an object
450
- * with the following properties:
451
- *
452
- * - line: The line number in the generated source. The line number
453
- * is 1-based.
454
- * - column: The column number in the generated source. The column
455
- * number is 0-based.
456
- * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
457
- * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
458
- * closest element that is smaller than or greater than the one we are
459
- * searching for, respectively, if the exact element cannot be found.
460
- * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
461
- *
462
- * and an object is returned with the following properties:
463
- *
464
- * - source: The original source file, or null.
465
- * - line: The line number in the original source, or null. The
466
- * line number is 1-based.
467
- * - column: The column number in the original source, or null. The
468
- * column number is 0-based.
469
- * - name: The original identifier, or null.
470
- */
471
- originalPositionFor(aArgs) {
472
- const needle = {
473
- generatedLine: util.getArg(aArgs, "line"),
474
- generatedColumn: util.getArg(aArgs, "column")
475
- };
476
-
477
- if (needle.generatedLine < 1) {
478
- throw new Error("Line numbers must be >= 1");
479
- }
480
-
481
- if (needle.generatedColumn < 0) {
482
- throw new Error("Column numbers must be >= 0");
483
- }
484
-
485
- let bias = util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND);
486
- if (bias == null) {
487
- bias = SourceMapConsumer.GREATEST_LOWER_BOUND;
488
- }
489
-
490
- let mapping;
491
- this._wasm.withMappingCallback(m => mapping = m, () => {
492
- this._wasm.exports.original_location_for(
493
- this._getMappingsPtr(),
494
- needle.generatedLine - 1,
495
- needle.generatedColumn,
496
- bias
497
- );
498
- });
499
-
500
- if (mapping) {
501
- if (mapping.generatedLine === needle.generatedLine) {
502
- let source = util.getArg(mapping, "source", null);
503
- if (source !== null) {
504
- source = this._sources.at(source);
505
- source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
506
- }
507
-
508
- let name = util.getArg(mapping, "name", null);
509
- if (name !== null) {
510
- name = this._names.at(name);
511
- }
512
-
513
- return {
514
- source,
515
- line: util.getArg(mapping, "originalLine", null),
516
- column: util.getArg(mapping, "originalColumn", null),
517
- name
518
- };
519
- }
520
- }
521
-
522
- return {
523
- source: null,
524
- line: null,
525
- column: null,
526
- name: null
527
- };
528
- }
529
-
530
- /**
531
- * Return true if we have the source content for every source in the source
532
- * map, false otherwise.
533
- */
534
- hasContentsOfAllSources() {
535
- if (!this.sourcesContent) {
536
- return false;
537
- }
538
- return this.sourcesContent.length >= this._sources.size() &&
539
- !this.sourcesContent.some(function(sc) { return sc == null; });
540
- }
541
-
542
- /**
543
- * Returns the original source content. The only argument is the url of the
544
- * original source file. Returns null if no original source content is
545
- * available.
546
- */
547
- sourceContentFor(aSource, nullOnMissing) {
548
- if (!this.sourcesContent) {
549
- return null;
550
- }
551
-
552
- const index = this._findSourceIndex(aSource);
553
- if (index >= 0) {
554
- return this.sourcesContent[index];
555
- }
556
-
557
- let relativeSource = aSource;
558
- if (this.sourceRoot != null) {
559
- relativeSource = util.relative(this.sourceRoot, relativeSource);
560
- }
561
-
562
- let url;
563
- if (this.sourceRoot != null
564
- && (url = util.urlParse(this.sourceRoot))) {
565
- // XXX: file:// URIs and absolute paths lead to unexpected behavior for
566
- // many users. We can help them out when they expect file:// URIs to
567
- // behave like it would if they were running a local HTTP server. See
568
- // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.
569
- const fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
570
- if (url.scheme == "file"
571
- && this._sources.has(fileUriAbsPath)) {
572
- return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
573
- }
574
-
575
- if ((!url.path || url.path == "/")
576
- && this._sources.has("/" + relativeSource)) {
577
- return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
578
- }
579
- }
580
-
581
- // This function is used recursively from
582
- // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we
583
- // don't want to throw if we can't find the source - we just want to
584
- // return null, so we provide a flag to exit gracefully.
585
- if (nullOnMissing) {
586
- return null;
587
- }
588
-
589
- throw new Error('"' + relativeSource + '" is not in the SourceMap.');
590
- }
591
-
592
- /**
593
- * Returns the generated line and column information for the original source,
594
- * line, and column positions provided. The only argument is an object with
595
- * the following properties:
596
- *
597
- * - source: The filename of the original source.
598
- * - line: The line number in the original source. The line number
599
- * is 1-based.
600
- * - column: The column number in the original source. The column
601
- * number is 0-based.
602
- * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
603
- * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
604
- * closest element that is smaller than or greater than the one we are
605
- * searching for, respectively, if the exact element cannot be found.
606
- * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
607
- *
608
- * and an object is returned with the following properties:
609
- *
610
- * - line: The line number in the generated source, or null. The
611
- * line number is 1-based.
612
- * - column: The column number in the generated source, or null.
613
- * The column number is 0-based.
614
- */
615
- generatedPositionFor(aArgs) {
616
- let source = util.getArg(aArgs, "source");
617
- source = this._findSourceIndex(source);
618
- if (source < 0) {
619
- return {
620
- line: null,
621
- column: null,
622
- lastColumn: null
623
- };
624
- }
625
-
626
- const needle = {
627
- source,
628
- originalLine: util.getArg(aArgs, "line"),
629
- originalColumn: util.getArg(aArgs, "column")
630
- };
631
-
632
- if (needle.originalLine < 1) {
633
- throw new Error("Line numbers must be >= 1");
634
- }
635
-
636
- if (needle.originalColumn < 0) {
637
- throw new Error("Column numbers must be >= 0");
638
- }
639
-
640
- let bias = util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND);
641
- if (bias == null) {
642
- bias = SourceMapConsumer.GREATEST_LOWER_BOUND;
643
- }
644
-
645
- let mapping;
646
- this._wasm.withMappingCallback(m => mapping = m, () => {
647
- this._wasm.exports.generated_location_for(
648
- this._getMappingsPtr(),
649
- needle.source,
650
- needle.originalLine - 1,
651
- needle.originalColumn,
652
- bias
653
- );
654
- });
655
-
656
- if (mapping) {
657
- if (mapping.source === needle.source) {
658
- let lastColumn = mapping.lastGeneratedColumn;
659
- if (this._computedColumnSpans && lastColumn === null) {
660
- lastColumn = Infinity;
661
- }
662
- return {
663
- line: util.getArg(mapping, "generatedLine", null),
664
- column: util.getArg(mapping, "generatedColumn", null),
665
- lastColumn,
666
- };
667
- }
668
- }
669
-
670
- return {
671
- line: null,
672
- column: null,
673
- lastColumn: null
674
- };
675
- }
676
- }
677
-
678
- BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
679
- exports.BasicSourceMapConsumer = BasicSourceMapConsumer;
680
-
681
- /**
682
- * An IndexedSourceMapConsumer instance represents a parsed source map which
683
- * we can query for information. It differs from BasicSourceMapConsumer in
684
- * that it takes "indexed" source maps (i.e. ones with a "sections" field) as
685
- * input.
686
- *
687
- * The first parameter is a raw source map (either as a JSON string, or already
688
- * parsed to an object). According to the spec for indexed source maps, they
689
- * have the following attributes:
690
- *
691
- * - version: Which version of the source map spec this map is following.
692
- * - file: Optional. The generated file this source map is associated with.
693
- * - sections: A list of section definitions.
694
- *
695
- * Each value under the "sections" field has two fields:
696
- * - offset: The offset into the original specified at which this section
697
- * begins to apply, defined as an object with a "line" and "column"
698
- * field.
699
- * - map: A source map definition. This source map could also be indexed,
700
- * but doesn't have to be.
701
- *
702
- * Instead of the "map" field, it's also possible to have a "url" field
703
- * specifying a URL to retrieve a source map from, but that's currently
704
- * unsupported.
705
- *
706
- * Here's an example source map, taken from the source map spec[0], but
707
- * modified to omit a section which uses the "url" field.
708
- *
709
- * {
710
- * version : 3,
711
- * file: "app.js",
712
- * sections: [{
713
- * offset: {line:100, column:10},
714
- * map: {
715
- * version : 3,
716
- * file: "section.js",
717
- * sources: ["foo.js", "bar.js"],
718
- * names: ["src", "maps", "are", "fun"],
719
- * mappings: "AAAA,E;;ABCDE;"
720
- * }
721
- * }],
722
- * }
723
- *
724
- * The second parameter, if given, is a string whose value is the URL
725
- * at which the source map was found. This URL is used to compute the
726
- * sources array.
727
- *
728
- * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt
729
- */
730
- class IndexedSourceMapConsumer extends SourceMapConsumer {
731
- constructor(aSourceMap, aSourceMapURL) {
732
- return super(INTERNAL).then(that => {
733
- let sourceMap = aSourceMap;
734
- if (typeof aSourceMap === "string") {
735
- sourceMap = util.parseSourceMapInput(aSourceMap);
736
- }
737
-
738
- const version = util.getArg(sourceMap, "version");
739
- const sections = util.getArg(sourceMap, "sections");
740
-
741
- if (version != that._version) {
742
- throw new Error("Unsupported version: " + version);
743
- }
744
-
745
- that._sources = new ArraySet();
746
- that._names = new ArraySet();
747
- that.__generatedMappings = null;
748
- that.__originalMappings = null;
749
- that.__generatedMappingsUnsorted = null;
750
- that.__originalMappingsUnsorted = null;
751
-
752
- let lastOffset = {
753
- line: -1,
754
- column: 0
755
- };
756
- return Promise.all(sections.map(s => {
757
- if (s.url) {
758
- // The url field will require support for asynchronicity.
759
- // See https://github.com/mozilla/source-map/issues/16
760
- throw new Error("Support for url field in sections not implemented.");
761
- }
762
- const offset = util.getArg(s, "offset");
763
- const offsetLine = util.getArg(offset, "line");
764
- const offsetColumn = util.getArg(offset, "column");
765
-
766
- if (offsetLine < lastOffset.line ||
767
- (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) {
768
- throw new Error("Section offsets must be ordered and non-overlapping.");
769
- }
770
- lastOffset = offset;
771
-
772
- const cons = new SourceMapConsumer(util.getArg(s, "map"), aSourceMapURL);
773
- return cons.then(consumer => {
774
- return {
775
- generatedOffset: {
776
- // The offset fields are 0-based, but we use 1-based indices when
777
- // encoding/decoding from VLQ.
778
- generatedLine: offsetLine + 1,
779
- generatedColumn: offsetColumn + 1
780
- },
781
- consumer
782
- };
783
- });
784
- })).then(s => {
785
- that._sections = s;
786
- return that;
787
- });
788
- });
789
- }
790
-
791
- // `__generatedMappings` and `__originalMappings` are arrays that hold the
792
- // parsed mapping coordinates from the source map's "mappings" attribute. They
793
- // are lazily instantiated, accessed via the `_generatedMappings` and
794
- // `_originalMappings` getters respectively, and we only parse the mappings
795
- // and create these arrays once queried for a source location. We jump through
796
- // these hoops because there can be many thousands of mappings, and parsing
797
- // them is expensive, so we only want to do it if we must.
798
- //
799
- // Each object in the arrays is of the form:
800
- //
801
- // {
802
- // generatedLine: The line number in the generated code,
803
- // generatedColumn: The column number in the generated code,
804
- // source: The path to the original source file that generated this
805
- // chunk of code,
806
- // originalLine: The line number in the original source that
807
- // corresponds to this chunk of generated code,
808
- // originalColumn: The column number in the original source that
809
- // corresponds to this chunk of generated code,
810
- // name: The name of the original symbol which generated this chunk of
811
- // code.
812
- // }
813
- //
814
- // All properties except for `generatedLine` and `generatedColumn` can be
815
- // `null`.
816
- //
817
- // `_generatedMappings` is ordered by the generated positions.
818
- //
819
- // `_originalMappings` is ordered by the original positions.
820
- get _generatedMappings() {
821
- if (!this.__generatedMappings) {
822
- this._sortGeneratedMappings();
823
- }
824
-
825
- return this.__generatedMappings;
826
- }
827
-
828
- get _originalMappings() {
829
- if (!this.__originalMappings) {
830
- this._sortOriginalMappings();
831
- }
832
-
833
- return this.__originalMappings;
834
- }
835
-
836
- get _generatedMappingsUnsorted() {
837
- if (!this.__generatedMappingsUnsorted) {
838
- this._parseMappings(this._mappings, this.sourceRoot);
839
- }
840
-
841
- return this.__generatedMappingsUnsorted;
842
- }
843
-
844
- get _originalMappingsUnsorted() {
845
- if (!this.__originalMappingsUnsorted) {
846
- this._parseMappings(this._mappings, this.sourceRoot);
847
- }
848
-
849
- return this.__originalMappingsUnsorted;
850
- }
851
-
852
- _sortGeneratedMappings() {
853
- const mappings = this._generatedMappingsUnsorted;
854
- mappings.sort(util.compareByGeneratedPositionsDeflated);
855
- this.__generatedMappings = mappings;
856
- }
857
-
858
- _sortOriginalMappings() {
859
- const mappings = this._originalMappingsUnsorted;
860
- mappings.sort(util.compareByOriginalPositions);
861
- this.__originalMappings = mappings;
862
- }
863
-
864
- /**
865
- * The list of original sources.
866
- */
867
- get sources() {
868
- const sources = [];
869
- for (let i = 0; i < this._sections.length; i++) {
870
- for (let j = 0; j < this._sections[i].consumer.sources.length; j++) {
871
- sources.push(this._sections[i].consumer.sources[j]);
872
- }
873
- }
874
- return sources;
875
- }
876
-
877
- /**
878
- * Returns the original source, line, and column information for the generated
879
- * source's line and column positions provided. The only argument is an object
880
- * with the following properties:
881
- *
882
- * - line: The line number in the generated source. The line number
883
- * is 1-based.
884
- * - column: The column number in the generated source. The column
885
- * number is 0-based.
886
- *
887
- * and an object is returned with the following properties:
888
- *
889
- * - source: The original source file, or null.
890
- * - line: The line number in the original source, or null. The
891
- * line number is 1-based.
892
- * - column: The column number in the original source, or null. The
893
- * column number is 0-based.
894
- * - name: The original identifier, or null.
895
- */
896
- originalPositionFor(aArgs) {
897
- const needle = {
898
- generatedLine: util.getArg(aArgs, "line"),
899
- generatedColumn: util.getArg(aArgs, "column")
900
- };
901
-
902
- // Find the section containing the generated position we're trying to map
903
- // to an original position.
904
- const sectionIndex = binarySearch.search(needle, this._sections,
905
- function(aNeedle, section) {
906
- const cmp = aNeedle.generatedLine - section.generatedOffset.generatedLine;
907
- if (cmp) {
908
- return cmp;
909
- }
910
-
911
- return (aNeedle.generatedColumn -
912
- section.generatedOffset.generatedColumn);
913
- });
914
- const section = this._sections[sectionIndex];
915
-
916
- if (!section) {
917
- return {
918
- source: null,
919
- line: null,
920
- column: null,
921
- name: null
922
- };
923
- }
924
-
925
- return section.consumer.originalPositionFor({
926
- line: needle.generatedLine -
927
- (section.generatedOffset.generatedLine - 1),
928
- column: needle.generatedColumn -
929
- (section.generatedOffset.generatedLine === needle.generatedLine
930
- ? section.generatedOffset.generatedColumn - 1
931
- : 0),
932
- bias: aArgs.bias
933
- });
934
- }
935
-
936
- /**
937
- * Return true if we have the source content for every source in the source
938
- * map, false otherwise.
939
- */
940
- hasContentsOfAllSources() {
941
- return this._sections.every(function(s) {
942
- return s.consumer.hasContentsOfAllSources();
943
- });
944
- }
945
-
946
- /**
947
- * Returns the original source content. The only argument is the url of the
948
- * original source file. Returns null if no original source content is
949
- * available.
950
- */
951
- sourceContentFor(aSource, nullOnMissing) {
952
- for (let i = 0; i < this._sections.length; i++) {
953
- const section = this._sections[i];
954
-
955
- const content = section.consumer.sourceContentFor(aSource, true);
956
- if (content) {
957
- return content;
958
- }
959
- }
960
- if (nullOnMissing) {
961
- return null;
962
- }
963
- throw new Error('"' + aSource + '" is not in the SourceMap.');
964
- }
965
-
966
- /**
967
- * Returns the generated line and column information for the original source,
968
- * line, and column positions provided. The only argument is an object with
969
- * the following properties:
970
- *
971
- * - source: The filename of the original source.
972
- * - line: The line number in the original source. The line number
973
- * is 1-based.
974
- * - column: The column number in the original source. The column
975
- * number is 0-based.
976
- *
977
- * and an object is returned with the following properties:
978
- *
979
- * - line: The line number in the generated source, or null. The
980
- * line number is 1-based.
981
- * - column: The column number in the generated source, or null.
982
- * The column number is 0-based.
983
- */
984
- generatedPositionFor(aArgs) {
985
- for (let i = 0; i < this._sections.length; i++) {
986
- const section = this._sections[i];
987
-
988
- // Only consider this section if the requested source is in the list of
989
- // sources of the consumer.
990
- if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) === -1) {
991
- continue;
992
- }
993
- const generatedPosition = section.consumer.generatedPositionFor(aArgs);
994
- if (generatedPosition) {
995
- const ret = {
996
- line: generatedPosition.line +
997
- (section.generatedOffset.generatedLine - 1),
998
- column: generatedPosition.column +
999
- (section.generatedOffset.generatedLine === generatedPosition.line
1000
- ? section.generatedOffset.generatedColumn - 1
1001
- : 0)
1002
- };
1003
- return ret;
1004
- }
1005
- }
1006
-
1007
- return {
1008
- line: null,
1009
- column: null
1010
- };
1011
- }
1012
-
1013
- /**
1014
- * Parse the mappings in a string in to a data structure which we can easily
1015
- * query (the ordered arrays in the `this.__generatedMappings` and
1016
- * `this.__originalMappings` properties).
1017
- */
1018
- _parseMappings(aStr, aSourceRoot) {
1019
- const generatedMappings = this.__generatedMappingsUnsorted = [];
1020
- const originalMappings = this.__originalMappingsUnsorted = [];
1021
- for (let i = 0; i < this._sections.length; i++) {
1022
- const section = this._sections[i];
1023
-
1024
- const sectionMappings = [];
1025
- section.consumer.eachMapping(m => sectionMappings.push(m));
1026
-
1027
- for (let j = 0; j < sectionMappings.length; j++) {
1028
- const mapping = sectionMappings[j];
1029
-
1030
- // TODO: test if null is correct here. The original code used
1031
- // `source`, which would actually have gotten used as null because
1032
- // var's get hoisted.
1033
- // See: https://github.com/mozilla/source-map/issues/333
1034
- let source = util.computeSourceURL(section.consumer.sourceRoot, null, this._sourceMapURL);
1035
- this._sources.add(source);
1036
- source = this._sources.indexOf(source);
1037
-
1038
- let name = null;
1039
- if (mapping.name) {
1040
- this._names.add(mapping.name);
1041
- name = this._names.indexOf(mapping.name);
1042
- }
1043
-
1044
- // The mappings coming from the consumer for the section have
1045
- // generated positions relative to the start of the section, so we
1046
- // need to offset them to be relative to the start of the concatenated
1047
- // generated file.
1048
- const adjustedMapping = {
1049
- source,
1050
- generatedLine: mapping.generatedLine +
1051
- (section.generatedOffset.generatedLine - 1),
1052
- generatedColumn: mapping.generatedColumn +
1053
- (section.generatedOffset.generatedLine === mapping.generatedLine
1054
- ? section.generatedOffset.generatedColumn - 1
1055
- : 0),
1056
- originalLine: mapping.originalLine,
1057
- originalColumn: mapping.originalColumn,
1058
- name
1059
- };
1060
-
1061
- generatedMappings.push(adjustedMapping);
1062
- if (typeof adjustedMapping.originalLine === "number") {
1063
- originalMappings.push(adjustedMapping);
1064
- }
1065
- }
1066
- }
1067
- }
1068
-
1069
- eachMapping(aCallback, aContext, aOrder) {
1070
- const context = aContext || null;
1071
- const order = aOrder || SourceMapConsumer.GENERATED_ORDER;
1072
-
1073
- let mappings;
1074
- switch (order) {
1075
- case SourceMapConsumer.GENERATED_ORDER:
1076
- mappings = this._generatedMappings;
1077
- break;
1078
- case SourceMapConsumer.ORIGINAL_ORDER:
1079
- mappings = this._originalMappings;
1080
- break;
1081
- default:
1082
- throw new Error("Unknown order of iteration.");
1083
- }
1084
-
1085
- const sourceRoot = this.sourceRoot;
1086
- mappings.map(function(mapping) {
1087
- let source = null;
1088
- if (mapping.source !== null) {
1089
- source = this._sources.at(mapping.source);
1090
- source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL);
1091
- }
1092
- return {
1093
- source,
1094
- generatedLine: mapping.generatedLine,
1095
- generatedColumn: mapping.generatedColumn,
1096
- originalLine: mapping.originalLine,
1097
- originalColumn: mapping.originalColumn,
1098
- name: mapping.name === null ? null : this._names.at(mapping.name)
1099
- };
1100
- }, this).forEach(aCallback, context);
1101
- }
1102
-
1103
- /**
1104
- * Find the mapping that best matches the hypothetical "needle" mapping that
1105
- * we are searching for in the given "haystack" of mappings.
1106
- */
1107
- _findMapping(aNeedle, aMappings, aLineName,
1108
- aColumnName, aComparator, aBias) {
1109
- // To return the position we are searching for, we must first find the
1110
- // mapping for the given position and then return the opposite position it
1111
- // points to. Because the mappings are sorted, we can use binary search to
1112
- // find the best mapping.
1113
-
1114
- if (aNeedle[aLineName] <= 0) {
1115
- throw new TypeError("Line must be greater than or equal to 1, got "
1116
- + aNeedle[aLineName]);
1117
- }
1118
- if (aNeedle[aColumnName] < 0) {
1119
- throw new TypeError("Column must be greater than or equal to 0, got "
1120
- + aNeedle[aColumnName]);
1121
- }
1122
-
1123
- return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
1124
- }
1125
-
1126
- allGeneratedPositionsFor(aArgs) {
1127
- const line = util.getArg(aArgs, "line");
1128
-
1129
- // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping
1130
- // returns the index of the closest mapping less than the needle. By
1131
- // setting needle.originalColumn to 0, we thus find the last mapping for
1132
- // the given line, provided such a mapping exists.
1133
- const needle = {
1134
- source: util.getArg(aArgs, "source"),
1135
- originalLine: line,
1136
- originalColumn: util.getArg(aArgs, "column", 0)
1137
- };
1138
-
1139
- needle.source = this._findSourceIndex(needle.source);
1140
- if (needle.source < 0) {
1141
- return [];
1142
- }
1143
-
1144
- if (needle.originalLine < 1) {
1145
- throw new Error("Line numbers must be >= 1");
1146
- }
1147
-
1148
- if (needle.originalColumn < 0) {
1149
- throw new Error("Column numbers must be >= 0");
1150
- }
1151
-
1152
- const mappings = [];
1153
-
1154
- let index = this._findMapping(needle,
1155
- this._originalMappings,
1156
- "originalLine",
1157
- "originalColumn",
1158
- util.compareByOriginalPositions,
1159
- binarySearch.LEAST_UPPER_BOUND);
1160
- if (index >= 0) {
1161
- let mapping = this._originalMappings[index];
1162
-
1163
- if (aArgs.column === undefined) {
1164
- const originalLine = mapping.originalLine;
1165
-
1166
- // Iterate until either we run out of mappings, or we run into
1167
- // a mapping for a different line than the one we found. Since
1168
- // mappings are sorted, this is guaranteed to find all mappings for
1169
- // the line we found.
1170
- while (mapping && mapping.originalLine === originalLine) {
1171
- let lastColumn = mapping.lastGeneratedColumn;
1172
- if (this._computedColumnSpans && lastColumn === null) {
1173
- lastColumn = Infinity;
1174
- }
1175
- mappings.push({
1176
- line: util.getArg(mapping, "generatedLine", null),
1177
- column: util.getArg(mapping, "generatedColumn", null),
1178
- lastColumn,
1179
- });
1180
-
1181
- mapping = this._originalMappings[++index];
1182
- }
1183
- } else {
1184
- const originalColumn = mapping.originalColumn;
1185
-
1186
- // Iterate until either we run out of mappings, or we run into
1187
- // a mapping for a different line than the one we were searching for.
1188
- // Since mappings are sorted, this is guaranteed to find all mappings for
1189
- // the line we are searching for.
1190
- while (mapping &&
1191
- mapping.originalLine === line &&
1192
- mapping.originalColumn == originalColumn) {
1193
- let lastColumn = mapping.lastGeneratedColumn;
1194
- if (this._computedColumnSpans && lastColumn === null) {
1195
- lastColumn = Infinity;
1196
- }
1197
- mappings.push({
1198
- line: util.getArg(mapping, "generatedLine", null),
1199
- column: util.getArg(mapping, "generatedColumn", null),
1200
- lastColumn,
1201
- });
1202
-
1203
- mapping = this._originalMappings[++index];
1204
- }
1205
- }
1206
- }
1207
-
1208
- return mappings;
1209
- }
1210
-
1211
- destroy() {
1212
- for (let i = 0; i < this._sections.length; i++) {
1213
- this._sections[i].consumer.destroy();
1214
- }
1215
- }
1216
- }
1217
- exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
1218
-
1219
- /*
1220
- * Cheat to get around inter-twingled classes. `factory()` can be at the end
1221
- * where it has access to non-hoisted classes, but it gets hoisted itself.
1222
- */
1223
- function _factory(aSourceMap, aSourceMapURL) {
1224
- let sourceMap = aSourceMap;
1225
- if (typeof aSourceMap === "string") {
1226
- sourceMap = util.parseSourceMapInput(aSourceMap);
1227
- }
1228
-
1229
- const consumer = sourceMap.sections != null
1230
- ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL)
1231
- : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
1232
- return Promise.resolve(consumer);
1233
- }
1234
-
1235
- function _factoryBSM(aSourceMap, aSourceMapURL) {
1236
- return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
1237
- }