react-grab 0.1.33 → 0.1.34

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 (450) hide show
  1. package/README.md +22 -22
  2. package/dist/copy-content-BVdIJS-d.d.cts +218 -0
  3. package/dist/copy-content-CZBjwiz6.d.ts +218 -0
  4. package/dist/core/index.cjs +1 -1
  5. package/dist/core/index.d.cts +2 -2
  6. package/dist/core/index.d.ts +2 -2
  7. package/dist/core/index.js +1 -1
  8. package/dist/core--Ufj16_R.js +22 -0
  9. package/dist/core--g1aIj2P.cjs +16 -0
  10. package/dist/core-58frx10s.js +21 -0
  11. package/dist/core-6WHLinaP.cjs +22 -0
  12. package/dist/core-8hT_aem6.cjs +16 -0
  13. package/dist/core-B04T5GVi.js +23 -0
  14. package/dist/core-B0VVBCnw.cjs +16 -0
  15. package/dist/core-B2Fb14V5.cjs +21 -0
  16. package/dist/core-B2KP8L5M.js +22 -0
  17. package/dist/core-B2doJOtN.cjs +16 -0
  18. package/dist/core-B3ei2CmJ.cjs +16 -0
  19. package/dist/core-B4UZXEzF.cjs +16 -0
  20. package/dist/core-B4fokp5c.js +23 -0
  21. package/dist/core-B4mcQjIW.cjs +16 -0
  22. package/dist/core-B4op93Jm.js +16 -0
  23. package/dist/core-B61jKle0.js +22 -0
  24. package/dist/core-B7-ZXWFD.js +21 -0
  25. package/dist/core-B8-HrDOV.js +23 -0
  26. package/dist/core-B8Qoj_Uu.js +16 -0
  27. package/dist/core-BAybPvu0.js +16 -0
  28. package/dist/core-BCoxaMuv.js +22 -0
  29. package/dist/core-BFUbt-Lr.cjs +16 -0
  30. package/dist/core-BFs0o0ry.cjs +16 -0
  31. package/dist/core-BFtyedBy.cjs +21 -0
  32. package/dist/core-BK3dbxMw.cjs +16 -0
  33. package/dist/core-BS6dlci7.js +16 -0
  34. package/dist/core-BSJSAr9t.cjs +23 -0
  35. package/dist/core-BShyP6v6.cjs +23 -0
  36. package/dist/core-BVCK03rH.cjs +16 -0
  37. package/dist/core-BZ-oKEob.cjs +16 -0
  38. package/dist/core-B_AsSPHz.js +23 -0
  39. package/dist/core-Bfp2AINN.cjs +23 -0
  40. package/dist/core-BhZjFvho.js +16 -0
  41. package/dist/core-BhfWpuzf.cjs +16 -0
  42. package/dist/core-BiXQdZjv.cjs +21 -0
  43. package/dist/core-BkCAY-6t.cjs +23 -0
  44. package/dist/core-BkHiZtUw.cjs +16 -0
  45. package/dist/core-BlCRSmTs.cjs +22 -0
  46. package/dist/core-BmWjaBiL.js +16 -0
  47. package/dist/core-BmlPgqbf.js +21 -0
  48. package/dist/core-Bmsc35N2.js +16 -0
  49. package/dist/core-BqGFVds-.cjs +16 -0
  50. package/dist/core-BqlaX0mO.js +16 -0
  51. package/dist/core-Br3-SZtp.cjs +16 -0
  52. package/dist/core-BrTobpFq.js +16 -0
  53. package/dist/core-BrWkCelW.cjs +16 -0
  54. package/dist/core-BtBnSqSp.js +16 -0
  55. package/dist/core-By8r6FNh.js +16 -0
  56. package/dist/core-C-ix7khG.js +22 -0
  57. package/dist/core-C3t1u5we.cjs +16 -0
  58. package/dist/core-C8EAzl4C.cjs +22 -0
  59. package/dist/core-C8gbQjmB.cjs +16 -0
  60. package/dist/core-C9W8Rk56.cjs +21 -0
  61. package/dist/core-CB43TUtW.cjs +22 -0
  62. package/dist/core-CJE2rmiu.js +16 -0
  63. package/dist/core-CMKd1SgC.cjs +16 -0
  64. package/dist/core-CNozueCf.js +16 -0
  65. package/dist/core-CQmdTUA-.js +16 -0
  66. package/dist/core-CSrz73MQ.js +23 -0
  67. package/dist/core-Cc09jN7g.cjs +16 -0
  68. package/dist/core-CcRJXtp4.cjs +16 -0
  69. package/dist/core-CcfWW8Yl.js +16 -0
  70. package/dist/core-CdoXsvsW.js +16 -0
  71. package/dist/core-CeEIf9A2.js +16 -0
  72. package/dist/core-CjcWLnZy.cjs +23 -0
  73. package/dist/core-CjqP4v2-.cjs +23 -0
  74. package/dist/core-CkD3vLFE.cjs +23 -0
  75. package/dist/core-CkiTaENw.cjs +16 -0
  76. package/dist/core-CnAMxMzZ.js +16 -0
  77. package/dist/core-CpZmNWbD.js +21 -0
  78. package/dist/core-CvgdmQ4p.js +22 -0
  79. package/dist/core-CxsODFDQ.cjs +16 -0
  80. package/dist/core-Cy4XMOO0.js +23 -0
  81. package/dist/core-Cz9O7gHH.cjs +16 -0
  82. package/dist/core-D0ky-6qT.cjs +22 -0
  83. package/dist/core-D9-l5I-_.cjs +16 -0
  84. package/dist/core-DEwKIq5J.cjs +16 -0
  85. package/dist/core-DFfTC69x.cjs +16 -0
  86. package/dist/core-DILYG446.js +16 -0
  87. package/dist/core-DKn94t_L.js +16 -0
  88. package/dist/core-DM-_GEhu.js +16 -0
  89. package/dist/core-DO-NwFws.js +16 -0
  90. package/dist/core-DODQNUmx.js +23 -0
  91. package/dist/core-DOPBacgQ.js +16 -0
  92. package/dist/core-DOb5ZaB5.js +16 -0
  93. package/dist/core-DOr6dvSK.cjs +23 -0
  94. package/dist/core-DR0Ro3q8.cjs +16 -0
  95. package/dist/core-DTcMkp10.cjs +16 -0
  96. package/dist/core-DTsROgB4.cjs +23 -0
  97. package/dist/core-DXQG3Wk9.js +23 -0
  98. package/dist/core-DXglqx_w.cjs +22 -0
  99. package/dist/core-DZ9x860t.cjs +16 -0
  100. package/dist/core-DZEKGXRR.js +22 -0
  101. package/dist/core-DZZ5G9na.js +16 -0
  102. package/dist/core-DbA9kq9x.js +21 -0
  103. package/dist/core-DfZtR6Kt.cjs +16 -0
  104. package/dist/core-Dgp8uIuC.js +4569 -0
  105. package/dist/core-DiEmqghi.js +16 -0
  106. package/dist/core-DlRuOC3A.cjs +23 -0
  107. package/dist/core-DnGsYklN.js +16 -0
  108. package/dist/core-DpoYsdkP.js +16 -0
  109. package/dist/core-DujSA1aI.cjs +16 -0
  110. package/dist/core-DxiziFMu.cjs +16 -0
  111. package/dist/core-Dy9ynhXB.js +16 -0
  112. package/dist/core-EHhBxHJ_.js +21 -0
  113. package/dist/core-G6p5b8ak.js +16 -0
  114. package/dist/core-H-_PbkBe.js +16 -0
  115. package/dist/core-JXJ0gE1j.cjs +22 -0
  116. package/dist/core-KoODoP9-.cjs +16 -0
  117. package/dist/core-LXhhDWv1.cjs +16 -0
  118. package/dist/core-QYSP7a25.cjs +16 -0
  119. package/dist/core-RWZw5had.js +23 -0
  120. package/dist/core-SZQqhCwV.js +23 -0
  121. package/dist/core-UpW6Z6Mk.cjs +21 -0
  122. package/dist/core-VscwhGe-.js +16 -0
  123. package/dist/core-WK1KkWG3.js +16 -0
  124. package/dist/core-X5YFIG5j.js +16 -0
  125. package/dist/core-XFT_Fkcw.js +16 -0
  126. package/dist/core-YQNuPG-3.cjs +16 -0
  127. package/dist/core-aViTfdTA.js +16 -0
  128. package/dist/core-b9fESdKU.cjs +16 -0
  129. package/dist/core-bUZ42VWj.cjs +4460 -0
  130. package/dist/core-eHkZbc2W.cjs +16 -0
  131. package/dist/core-gdUwD7JK.js +16 -0
  132. package/dist/core-jYKdSVlJ.cjs +21 -0
  133. package/dist/core-l8_Z4q-L.js +16 -0
  134. package/dist/core-q3XmQbpc.js +16 -0
  135. package/dist/core-rJjaR48p.js +16 -0
  136. package/dist/core-umpo-qTC.cjs +16 -0
  137. package/dist/core-vVsOKocN.js +16 -0
  138. package/dist/core-wQfD_pOM.cjs +23 -0
  139. package/dist/extract-element-css-0f3q-q7b.js +10 -0
  140. package/dist/extract-element-css-6J5DTdGN.cjs +336 -0
  141. package/dist/extract-element-css-B0mG017l.cjs +10 -0
  142. package/dist/extract-element-css-B1yr8Mpm.cjs +10 -0
  143. package/dist/extract-element-css-B3-IjvrV.js +10 -0
  144. package/dist/extract-element-css-BD8JAeoQ.cjs +10 -0
  145. package/dist/extract-element-css-BDBThjvO.cjs +10 -0
  146. package/dist/extract-element-css-BDF8Dsxi.cjs +10 -0
  147. package/dist/extract-element-css-BH2TCwmX.js +10 -0
  148. package/dist/extract-element-css-BIhJpEw3.js +10 -0
  149. package/dist/extract-element-css-BJ5IWmx6.cjs +10 -0
  150. package/dist/extract-element-css-BK5crNDH.js +10 -0
  151. package/dist/extract-element-css-BKago1jD.cjs +10 -0
  152. package/dist/extract-element-css-BOm7HBmq.cjs +10 -0
  153. package/dist/extract-element-css-BSpO2ilP.cjs +10 -0
  154. package/dist/extract-element-css-BUcxktuZ.js +10 -0
  155. package/dist/extract-element-css-BWBXnTPc.js +10 -0
  156. package/dist/extract-element-css-BctgCnqi.cjs +10 -0
  157. package/dist/extract-element-css-BlVzutos.js +10 -0
  158. package/dist/extract-element-css-BmiTc_Mk.js +10 -0
  159. package/dist/extract-element-css-BpXvHRvz.js +10 -0
  160. package/dist/extract-element-css-BvgbpVrI.js +10 -0
  161. package/dist/extract-element-css-C1tUbLOr.js +10 -0
  162. package/dist/extract-element-css-C2PYWNnN.cjs +10 -0
  163. package/dist/extract-element-css-C3RsAz33.js +10 -0
  164. package/dist/extract-element-css-C9TJ3qu4.cjs +10 -0
  165. package/dist/extract-element-css-CAyHke4c.js +10 -0
  166. package/dist/extract-element-css-CBMVWErt.cjs +10 -0
  167. package/dist/extract-element-css-CMVYWMgY.js +10 -0
  168. package/dist/extract-element-css-CUcY2ELh.cjs +10 -0
  169. package/dist/extract-element-css-CWZuIQQk.cjs +10 -0
  170. package/dist/extract-element-css-C_F87DWh.js +10 -0
  171. package/dist/extract-element-css-CcOv00u_.js +10 -0
  172. package/dist/extract-element-css-ClUN8rFQ.js +319 -0
  173. package/dist/extract-element-css-CllNZlHg.cjs +10 -0
  174. package/dist/extract-element-css-Cp3VzwsP.cjs +10 -0
  175. package/dist/extract-element-css-CuxQoy6m.cjs +10 -0
  176. package/dist/extract-element-css-CwaJovy6.js +10 -0
  177. package/dist/extract-element-css-D-ERlFXC.cjs +10 -0
  178. package/dist/extract-element-css-D1aWSxyg.js +10 -0
  179. package/dist/extract-element-css-D5rZpeek.js +10 -0
  180. package/dist/extract-element-css-DE-GktJ-.cjs +10 -0
  181. package/dist/extract-element-css-DGaQuxEj.js +10 -0
  182. package/dist/extract-element-css-DGf1_gmY.cjs +10 -0
  183. package/dist/extract-element-css-DHByDPFC.cjs +10 -0
  184. package/dist/extract-element-css-DMYDBqW4.js +10 -0
  185. package/dist/extract-element-css-DQhNHcHg.cjs +10 -0
  186. package/dist/extract-element-css-DRI296aF.js +10 -0
  187. package/dist/extract-element-css-DTyWMO7X.js +10 -0
  188. package/dist/extract-element-css-D_AtWyYd.cjs +10 -0
  189. package/dist/extract-element-css-DajcFN4D.cjs +10 -0
  190. package/dist/extract-element-css-DbsQg6dD.js +10 -0
  191. package/dist/extract-element-css-DeiBTDrG.js +10 -0
  192. package/dist/extract-element-css-Dg3hSOh_.cjs +10 -0
  193. package/dist/extract-element-css-Do-5VPcW.js +10 -0
  194. package/dist/extract-element-css-DoROI1Lu.js +10 -0
  195. package/dist/extract-element-css-DtPOE8Qf.js +10 -0
  196. package/dist/extract-element-css-DyHXp0kV.js +10 -0
  197. package/dist/extract-element-css-HQfFXyjl.cjs +10 -0
  198. package/dist/extract-element-css-JN4bPqiH.cjs +10 -0
  199. package/dist/extract-element-css-JmWO6AFd.cjs +10 -0
  200. package/dist/extract-element-css-KqQpDZ3u.js +10 -0
  201. package/dist/extract-element-css-LWV4qZnB.js +10 -0
  202. package/dist/extract-element-css-VQDyterf.cjs +10 -0
  203. package/dist/extract-element-css-X8oGGyC9.js +10 -0
  204. package/dist/extract-element-css-_52JSItY.cjs +10 -0
  205. package/dist/extract-element-css-_9FOk1X7.js +10 -0
  206. package/dist/extract-element-css-kWe0BrvE.cjs +10 -0
  207. package/dist/extract-element-css-xgQzkNfU.cjs +10 -0
  208. package/dist/extract-element-css-zpC79GoB.cjs +10 -0
  209. package/dist/freeze-updates-44ijEDa3.cjs +52 -0
  210. package/dist/freeze-updates-B-KM0P-S.js +55 -0
  211. package/dist/freeze-updates-B3BTWdin.js +52 -0
  212. package/dist/freeze-updates-B46IFLUc.js +52 -0
  213. package/dist/freeze-updates-B4Dd2NgX.cjs +55 -0
  214. package/dist/freeze-updates-B4sixfxL.cjs +55 -0
  215. package/dist/freeze-updates-B8XVmCbU.cjs +52 -0
  216. package/dist/freeze-updates-B9KiLr4J.js +53 -0
  217. package/dist/freeze-updates-BBXKN548.cjs +52 -0
  218. package/dist/freeze-updates-BCJY18RM.js +52 -0
  219. package/dist/freeze-updates-BFqQ7DfD.cjs +53 -0
  220. package/dist/freeze-updates-BIu5xw5I.cjs +55 -0
  221. package/dist/freeze-updates-BZyoCSfS.js +53 -0
  222. package/dist/freeze-updates-BgSzy4TP.cjs +52 -0
  223. package/dist/freeze-updates-Bh5uFj9M.cjs +53 -0
  224. package/dist/freeze-updates-Bl_wpv3s.js +53 -0
  225. package/dist/freeze-updates-BlxJUz-r.js +55 -0
  226. package/dist/freeze-updates-BzlaSiwx.js +53 -0
  227. package/dist/freeze-updates-C-n3vnIe.cjs +53 -0
  228. package/dist/freeze-updates-C19JTP7M.js +55 -0
  229. package/dist/freeze-updates-C2oMSGYa.js +55 -0
  230. package/dist/freeze-updates-C5e9EmRj.js +55 -0
  231. package/dist/freeze-updates-CAD_rBn-.cjs +52 -0
  232. package/dist/freeze-updates-CK3vDjxD.js +55 -0
  233. package/dist/freeze-updates-CPL37KUf.cjs +3145 -0
  234. package/dist/freeze-updates-CUfAvadN.js +52 -0
  235. package/dist/freeze-updates-CYI91QSS.js +52 -0
  236. package/dist/freeze-updates-CYLr9HLu.cjs +52 -0
  237. package/dist/freeze-updates-CcGZPbDa.cjs +53 -0
  238. package/dist/freeze-updates-CobOgm67.cjs +55 -0
  239. package/dist/freeze-updates-CqgugC0v.cjs +55 -0
  240. package/dist/freeze-updates-CvoDbgCn.cjs +55 -0
  241. package/dist/freeze-updates-CzNFqLh4.js +55 -0
  242. package/dist/freeze-updates-D-wqPzkS.cjs +53 -0
  243. package/dist/freeze-updates-D2K4dx91.js +55 -0
  244. package/dist/freeze-updates-DDJeC30f.cjs +55 -0
  245. package/dist/freeze-updates-DGd0kTS0.cjs +55 -0
  246. package/dist/freeze-updates-DHwYYvlF.js +52 -0
  247. package/dist/freeze-updates-DI2WrF4x.cjs +53 -0
  248. package/dist/freeze-updates-DISihwcW.cjs +55 -0
  249. package/dist/freeze-updates-DIXfS3oc.js +55 -0
  250. package/dist/freeze-updates-DJ_kd3MS.cjs +52 -0
  251. package/dist/freeze-updates-DQa7cAMD.js +52 -0
  252. package/dist/freeze-updates-DUhtP6Qh.cjs +53 -0
  253. package/dist/freeze-updates-DUrm6t8c.js +52 -0
  254. package/dist/freeze-updates-DVQXyNiy.js +52 -0
  255. package/dist/freeze-updates-DYnenNAx.js +53 -0
  256. package/dist/freeze-updates-D_k5kTsT.js +55 -0
  257. package/dist/freeze-updates-Daef1yLv.js +53 -0
  258. package/dist/freeze-updates-Dh6MIxrS.cjs +52 -0
  259. package/dist/freeze-updates-Diu7g9r6.cjs +52 -0
  260. package/dist/freeze-updates-DjDBr_oh.js +53 -0
  261. package/dist/freeze-updates-DkS4-mx9.cjs +52 -0
  262. package/dist/freeze-updates-DoeDby5W.js +52 -0
  263. package/dist/freeze-updates-Dp5H7855.js +53 -0
  264. package/dist/freeze-updates-DuFU4W3a.cjs +52 -0
  265. package/dist/freeze-updates-F_aGQXqR.js +55 -0
  266. package/dist/freeze-updates-HHHOlV6s.js +52 -0
  267. package/dist/freeze-updates-Iz-KAPxe.js +2755 -0
  268. package/dist/freeze-updates-JRtE2hMi.js +53 -0
  269. package/dist/freeze-updates-QRM0VlPw.cjs +52 -0
  270. package/dist/freeze-updates-RwvSZOO_.cjs +55 -0
  271. package/dist/freeze-updates-Tr7M7QVD.cjs +55 -0
  272. package/dist/freeze-updates-WLO3XKoj.cjs +53 -0
  273. package/dist/freeze-updates-YrXN1_2z.js +52 -0
  274. package/dist/freeze-updates-bnVMmz_x.cjs +53 -0
  275. package/dist/freeze-updates-dlxsMPrr.cjs +55 -0
  276. package/dist/freeze-updates-z2Ak9jr6.js +55 -0
  277. package/dist/index-5bXwDEQz.d.ts +446 -0
  278. package/dist/index-AOuLP5ui.d.cts +203 -0
  279. package/dist/index-B3INoNjJ.d.ts +461 -0
  280. package/dist/index-Beii_ZY2.d.ts +203 -0
  281. package/dist/index-BvBIePAo.d.cts +446 -0
  282. package/dist/index-C188F1-K.d.ts +460 -0
  283. package/dist/index-Cmlk2psk.d.cts +460 -0
  284. package/dist/index-CpD0mJy2.d.cts +461 -0
  285. package/dist/index-D4VTvmm1.d.cts +203 -0
  286. package/dist/index-DASKclJI.d.ts +203 -0
  287. package/dist/index-DZaWv0Sy.d.ts +461 -0
  288. package/dist/index-DxRpK6Tz.d.cts +461 -0
  289. package/dist/index-HrbjUEIv.d.ts +461 -0
  290. package/dist/index-iOOBO4Tu.d.cts +461 -0
  291. package/dist/index.cjs +1 -1
  292. package/dist/index.d.cts +2 -2
  293. package/dist/index.d.ts +2 -2
  294. package/dist/index.global.js +25 -19
  295. package/dist/index.iife.js +25 -19
  296. package/dist/index.js +1 -1
  297. package/dist/primitives.cjs +1 -1
  298. package/dist/primitives.d.cts +13 -2
  299. package/dist/primitives.d.ts +13 -2
  300. package/dist/primitives.js +1 -1
  301. package/dist/renderer-03E_Z-oG.cjs +9 -0
  302. package/dist/renderer-2FkGa8yQ.cjs +9 -0
  303. package/dist/renderer-2qf4XT0a.cjs +9 -0
  304. package/dist/renderer-4WLOXegj.js +9 -0
  305. package/dist/renderer-5OkvqZ27.cjs +9 -0
  306. package/dist/renderer-70hOclWm.js +9 -0
  307. package/dist/renderer-7PW4LWCI.js +9 -0
  308. package/dist/renderer-88pIB89V.cjs +9 -0
  309. package/dist/renderer-9QsCcfWA.cjs +9 -0
  310. package/dist/renderer-B0DLjOcW.js +9 -0
  311. package/dist/renderer-B28zz1-T.cjs +9 -0
  312. package/dist/renderer-B2kpCtoY.cjs +9 -0
  313. package/dist/renderer-BB0mKzDq.cjs +9 -0
  314. package/dist/renderer-BNYQfBKy.cjs +9 -0
  315. package/dist/renderer-BQCd2ezw.js +9 -0
  316. package/dist/renderer-BRyXuhLV.js +9 -0
  317. package/dist/renderer-BSjQmsCr.js +9 -0
  318. package/dist/renderer-BT6S4lrE.js +9 -0
  319. package/dist/renderer-BWb6GNsI.js +9 -0
  320. package/dist/renderer-Bc_LPRgB.js +9 -0
  321. package/dist/renderer-Bi3BGqK6.js +9 -0
  322. package/dist/renderer-Bo9Hj0Nz.cjs +9 -0
  323. package/dist/renderer-BrHbCsT-.cjs +9 -0
  324. package/dist/renderer-BrrTBbU_.cjs +9 -0
  325. package/dist/renderer-BtD4lYaA.cjs +9 -0
  326. package/dist/renderer-BwW5L228.cjs +9 -0
  327. package/dist/renderer-Bzq6OP1Q.cjs +9 -0
  328. package/dist/renderer-C60Irhis.cjs +9 -0
  329. package/dist/renderer-C667p9Ts.js +9 -0
  330. package/dist/renderer-CGDYcfpq.js +9 -0
  331. package/dist/renderer-CJs3DW7F.js +9 -0
  332. package/dist/renderer-CRtXJ6gz.js +9 -0
  333. package/dist/renderer-CSGre_uQ.js +9 -0
  334. package/dist/renderer-CU622nBs.cjs +9 -0
  335. package/dist/renderer-CZU0dUK9.js +9 -0
  336. package/dist/renderer-C_8ChDyN.js +9 -0
  337. package/dist/renderer-CaWdbJaJ.js +9 -0
  338. package/dist/renderer-CbIWDh9l.js +9 -0
  339. package/dist/renderer-Cbq6Rx1G.cjs +9 -0
  340. package/dist/renderer-CeCJd7_M.cjs +9 -0
  341. package/dist/renderer-ChrLxxjc.cjs +9 -0
  342. package/dist/renderer-CrOSekQx.cjs +9 -0
  343. package/dist/renderer-CrbJ1q93.cjs +9 -0
  344. package/dist/renderer-CwxBLDdk.js +9 -0
  345. package/dist/renderer-D2P_eRJ3.js +9 -0
  346. package/dist/renderer-D6bxtXXz.cjs +9 -0
  347. package/dist/renderer-D6oIEAce.cjs +9 -0
  348. package/dist/renderer-D6qViFpF.js +9 -0
  349. package/dist/renderer-D8fyDtUL.cjs +9 -0
  350. package/dist/renderer-DGXjcXzg.js +9 -0
  351. package/dist/renderer-DIQRqnHu.cjs +9 -0
  352. package/dist/renderer-DL6fAUQn.js +9 -0
  353. package/dist/renderer-DNQ9_mCu.js +3887 -0
  354. package/dist/renderer-DNWIs1VC.js +9 -0
  355. package/dist/renderer-DSjEGpz-.js +9 -0
  356. package/dist/renderer-DT7LZQtO.cjs +9 -0
  357. package/dist/renderer-DXeyOozP.js +9 -0
  358. package/dist/renderer-DdIChCSD.cjs +9 -0
  359. package/dist/renderer-DeWbPCuO.cjs +9 -0
  360. package/dist/renderer-Dlno_pdb.js +9 -0
  361. package/dist/renderer-DnYy5FOZ.js +9 -0
  362. package/dist/renderer-Dq7B2igO.js +9 -0
  363. package/dist/renderer-DtkrTfo1.cjs +9 -0
  364. package/dist/renderer-IibG__VV.js +9 -0
  365. package/dist/renderer-JmnYl4I6.js +9 -0
  366. package/dist/renderer-LNHnA-cT.cjs +3887 -0
  367. package/dist/renderer-Q0qVTIQc.js +9 -0
  368. package/dist/renderer-QW3s3A0S.cjs +9 -0
  369. package/dist/renderer-QpKM_dpy.js +9 -0
  370. package/dist/renderer-XmhoGb9V.cjs +9 -0
  371. package/dist/renderer-YUdjQ8nt.cjs +9 -0
  372. package/dist/renderer-_81FJC2J.js +9 -0
  373. package/dist/renderer-aqAvQN6V.cjs +9 -0
  374. package/dist/renderer-bnYZTPia.cjs +9 -0
  375. package/dist/renderer-kJC7KhNe.cjs +9 -0
  376. package/dist/renderer-nXRFY18V.js +9 -0
  377. package/dist/renderer-s5lBiYLe.js +9 -0
  378. package/dist/renderer-y9QnqihM.cjs +9 -0
  379. package/dist/state-7SBySxTA.cjs +9 -0
  380. package/dist/state-8yi9xrye.js +9 -0
  381. package/dist/state-9r5nglSb.js +9 -0
  382. package/dist/state-B0T1D-ks.cjs +9 -0
  383. package/dist/state-BA6QsS82.js +9 -0
  384. package/dist/state-BGtrXdJj.js +9 -0
  385. package/dist/state-BJlvi-2E.cjs +9 -0
  386. package/dist/state-BN964xZ5.js +9 -0
  387. package/dist/state-BO1NAkWD.js +9 -0
  388. package/dist/state-BO3AE8Fe.js +9 -0
  389. package/dist/state-BV9PmYfz.js +9 -0
  390. package/dist/state-BYF5b0D5.js +9 -0
  391. package/dist/state-Baa6Ci7k.js +9 -0
  392. package/dist/state-Bd2gljHi.js +9 -0
  393. package/dist/state-Bd6VTjeM.js +9 -0
  394. package/dist/state-BeBXGZmh.cjs +9 -0
  395. package/dist/state-BfN8pmY2.js +9 -0
  396. package/dist/state-Bpf5_85U.js +9 -0
  397. package/dist/state-BsfONYv7.cjs +9 -0
  398. package/dist/state-C-rvuJYD.cjs +9 -0
  399. package/dist/state-C0Ow0XmM.js +9 -0
  400. package/dist/state-C5Bj0Buz.js +9 -0
  401. package/dist/state-C6EfW8-M.js +9 -0
  402. package/dist/state-C6rrzEh-.cjs +9 -0
  403. package/dist/state-CEnDdOqw.cjs +9 -0
  404. package/dist/state-CGmKE82n.js +9 -0
  405. package/dist/state-CI0P3gEI.js +9 -0
  406. package/dist/state-CI2DgSGN.cjs +9 -0
  407. package/dist/state-CJLktzcx.cjs +9 -0
  408. package/dist/state-CNep2ElU.cjs +9 -0
  409. package/dist/state-CSGI31dx.js +9 -0
  410. package/dist/state-CUcDVMOr.js +1696 -0
  411. package/dist/state-CVzxiIHS.cjs +9 -0
  412. package/dist/state-C_MfICQQ.cjs +9 -0
  413. package/dist/state-CepA6OBG.cjs +9 -0
  414. package/dist/state-CfDNgfQC.cjs +9 -0
  415. package/dist/state-CfWNsT73.cjs +9 -0
  416. package/dist/state-Cl-Qsozk.cjs +9 -0
  417. package/dist/state-Cm5Lwn2E.js +9 -0
  418. package/dist/state-CvjZor_U.cjs +9 -0
  419. package/dist/state-CyD129tM.cjs +9 -0
  420. package/dist/state-CyUr2qMd.js +9 -0
  421. package/dist/state-D-fLHGyJ.js +9 -0
  422. package/dist/state-D0E4SXeX.js +9 -0
  423. package/dist/state-D2TlmfBW.cjs +9 -0
  424. package/dist/state-D6btATEI.js +9 -0
  425. package/dist/state-D9ZV8boi.cjs +9 -0
  426. package/dist/state-DCtMfI4R.cjs +9 -0
  427. package/dist/state-DGLq4GOX.js +9 -0
  428. package/dist/state-DJqo4o5A.js +9 -0
  429. package/dist/state-DMYmMd2O.cjs +9 -0
  430. package/dist/state-DUXEd2RT.cjs +9 -0
  431. package/dist/state-DZl9i9YY.js +9 -0
  432. package/dist/state-DcBwFGAn.js +9 -0
  433. package/dist/state-Dd1plgdI.cjs +9 -0
  434. package/dist/state-Dgh4g_LN.cjs +1293 -0
  435. package/dist/state-DiSiK2-w.cjs +9 -0
  436. package/dist/state-Dr92AOzO.js +9 -0
  437. package/dist/state-Dt428m3l.cjs +9 -0
  438. package/dist/state-DzPMjkFn.js +9 -0
  439. package/dist/state-LIGdfh87.cjs +9 -0
  440. package/dist/state-MC-BcccL.js +9 -0
  441. package/dist/state-P55CkQ4f.cjs +9 -0
  442. package/dist/state-Tb5KTyit.cjs +9 -0
  443. package/dist/state-_frBwcTV.cjs +9 -0
  444. package/dist/state-eM6WYht4.js +9 -0
  445. package/dist/state-nEfTr66e.cjs +9 -0
  446. package/dist/state-tAT5fWsb.cjs +9 -0
  447. package/dist/state-xjSIX0_u.js +9 -0
  448. package/dist/state-ze3D7XUZ.cjs +9 -0
  449. package/dist/styles.css +2 -2
  450. package/package.json +9 -8
@@ -0,0 +1,3145 @@
1
+ /**
2
+ * @license MIT
3
+ *
4
+ * Copyright (c) 2025 Aiden Bai
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+ //#region src/utils/supports-display-p3.ts
11
+ let cachedResult = null;
12
+ const supportsDisplayP3 = () => {
13
+ if (cachedResult !== null) return cachedResult;
14
+ try {
15
+ cachedResult = window.matchMedia("(color-gamut: p3)").matches;
16
+ } catch {
17
+ cachedResult = false;
18
+ }
19
+ return cachedResult;
20
+ };
21
+
22
+ //#endregion
23
+ //#region src/utils/overlay-color.ts
24
+ const isWideGamut = supportsDisplayP3();
25
+ const SRGB_COMPONENTS = "210, 57, 192";
26
+ const P3_COMPONENTS = "0.84 0.19 0.78";
27
+ const overlayColor = (alpha) => isWideGamut ? `color(display-p3 ${P3_COMPONENTS} / ${alpha})` : `rgba(${SRGB_COMPONENTS}, ${alpha})`;
28
+
29
+ //#endregion
30
+ //#region src/constants.ts
31
+ const VERSION = "[DEV]";
32
+ const OFFSCREEN_POSITION = -1e3;
33
+ const SELECTION_LERP_FACTOR = .95;
34
+ const FEEDBACK_DURATION_MS = 1500;
35
+ const SYMBOLICATION_TIMEOUT_MS = 5e3;
36
+ const MAX_SELECTOR_COMBINATIONS = 1e4;
37
+ const Z_INDEX_OVERLAY = 2147483647;
38
+ const Z_INDEX_OVERLAY_CANVAS = 2147483645;
39
+ const DRAG_LERP_FACTOR = .7;
40
+ const BASELINE_FRAME_DURATION_MS = 1e3 / 60;
41
+ const LERP_CONVERGENCE_THRESHOLD_PX = .5;
42
+ const OPACITY_CONVERGENCE_THRESHOLD = .01;
43
+ const OVERLAY_BORDER_COLOR_DRAG = overlayColor(.4);
44
+ const OVERLAY_FILL_COLOR_DRAG = overlayColor(.05);
45
+ const OVERLAY_BORDER_COLOR_DEFAULT = overlayColor(.5);
46
+ const OVERLAY_FILL_COLOR_DEFAULT = overlayColor(.08);
47
+ const FROZEN_GLOW_COLOR = overlayColor(.15);
48
+ const ARROW_MAX_LABEL_WIDTH_RATIO = .2;
49
+ const PREVIEW_PRIORITY_ATTRS = [
50
+ "id",
51
+ "class",
52
+ "aria-label",
53
+ "data-testid",
54
+ "role",
55
+ "name",
56
+ "title"
57
+ ];
58
+ const MODIFIER_KEYS = [
59
+ "Meta",
60
+ "Control",
61
+ "Shift",
62
+ "Alt"
63
+ ];
64
+ const ARROW_KEYS = new Set([
65
+ "ArrowUp",
66
+ "ArrowDown",
67
+ "ArrowLeft",
68
+ "ArrowRight"
69
+ ]);
70
+ const FROZEN_ELEMENT_ATTRIBUTE = "data-react-grab-frozen";
71
+ const USER_IGNORE_ATTRIBUTE = "data-react-grab-ignore";
72
+ const VIEWPORT_COVERAGE_THRESHOLD = .9;
73
+ const OVERLAY_Z_INDEX_THRESHOLD = 1e3;
74
+ const DEV_TOOLS_OVERLAY_Z_INDEX_THRESHOLD = 2147483600;
75
+ const TOOLBAR_DEFAULT_POSITION_RATIO = .5;
76
+ const DEFAULT_ACTION_ID = "comment";
77
+ const DRAG_SELECTION_COVERAGE_THRESHOLD = .75;
78
+ const ZOOM_DETECTION_THRESHOLD = .01;
79
+ const MOUNT_ROOT_RECHECK_DELAY_MS = 1e3;
80
+ const MAX_SESSION_STORAGE_SIZE_BYTES = 2 * 1024 * 1024;
81
+ const DROPDOWN_OFFSCREEN_POSITION = {
82
+ left: -9999,
83
+ top: -9999
84
+ };
85
+ const DROPDOWN_EDGE_TRANSFORM_ORIGIN = {
86
+ left: "left center",
87
+ right: "right center",
88
+ top: "center top",
89
+ bottom: "center bottom"
90
+ };
91
+ const NEXTJS_REVALIDATION_DELAY_MS = 1e3;
92
+ const SELECTION_LABEL_OFFSCREEN_PX = -9999;
93
+ const RELEVANT_CSS_PROPERTIES = new Set([
94
+ "display",
95
+ "position",
96
+ "top",
97
+ "right",
98
+ "bottom",
99
+ "left",
100
+ "z-index",
101
+ "overflow",
102
+ "overflow-x",
103
+ "overflow-y",
104
+ "width",
105
+ "height",
106
+ "min-width",
107
+ "min-height",
108
+ "max-width",
109
+ "max-height",
110
+ "margin-top",
111
+ "margin-right",
112
+ "margin-bottom",
113
+ "margin-left",
114
+ "padding-top",
115
+ "padding-right",
116
+ "padding-bottom",
117
+ "padding-left",
118
+ "flex-direction",
119
+ "flex-wrap",
120
+ "justify-content",
121
+ "align-items",
122
+ "align-self",
123
+ "align-content",
124
+ "flex-grow",
125
+ "flex-shrink",
126
+ "flex-basis",
127
+ "order",
128
+ "gap",
129
+ "row-gap",
130
+ "column-gap",
131
+ "grid-template-columns",
132
+ "grid-template-rows",
133
+ "grid-template-areas",
134
+ "font-family",
135
+ "font-size",
136
+ "font-weight",
137
+ "font-style",
138
+ "line-height",
139
+ "letter-spacing",
140
+ "text-align",
141
+ "text-decoration-line",
142
+ "text-decoration-style",
143
+ "text-transform",
144
+ "text-overflow",
145
+ "text-shadow",
146
+ "white-space",
147
+ "word-break",
148
+ "overflow-wrap",
149
+ "vertical-align",
150
+ "color",
151
+ "background-color",
152
+ "background-image",
153
+ "background-position",
154
+ "background-size",
155
+ "background-repeat",
156
+ "border-top-width",
157
+ "border-right-width",
158
+ "border-bottom-width",
159
+ "border-left-width",
160
+ "border-top-style",
161
+ "border-right-style",
162
+ "border-bottom-style",
163
+ "border-left-style",
164
+ "border-top-color",
165
+ "border-right-color",
166
+ "border-bottom-color",
167
+ "border-left-color",
168
+ "border-top-left-radius",
169
+ "border-top-right-radius",
170
+ "border-bottom-left-radius",
171
+ "border-bottom-right-radius",
172
+ "box-shadow",
173
+ "opacity",
174
+ "transform",
175
+ "filter",
176
+ "backdrop-filter",
177
+ "object-fit",
178
+ "object-position"
179
+ ]);
180
+
181
+ //#endregion
182
+ //#region src/utils/get-tag-name.ts
183
+ const getTagName = (element) => (element.tagName || "").toLowerCase();
184
+
185
+ //#endregion
186
+ //#region src/utils/detect-csp-nonce.ts
187
+ let cachedNonce;
188
+ const detectCspNonce = () => {
189
+ if (cachedNonce !== void 0) return cachedNonce;
190
+ const existingElement = document.querySelector("script[nonce], style[nonce]");
191
+ const nonce = existingElement?.nonce || existingElement?.getAttribute("nonce") || null;
192
+ if (nonce) cachedNonce = nonce;
193
+ return nonce;
194
+ };
195
+
196
+ //#endregion
197
+ //#region src/utils/hide-from-third-parties.ts
198
+ const THIRD_PARTY_PRIVACY_ATTRIBUTES = [
199
+ ["data-rr-block", ""],
200
+ ["data-rr-ignore", ""],
201
+ ["data-rr-mask", ""],
202
+ ["data-sentry-block", ""],
203
+ ["data-sentry-ignore", ""],
204
+ ["data-sentry-mask", ""],
205
+ ["data-dd-privacy", "hidden"],
206
+ ["data-fs-exclude", ""],
207
+ ["data-lr-exclude", ""],
208
+ ["data-hj-suppress", ""],
209
+ ["data-recording-disable", ""],
210
+ ["data-clarity-mask", "true"],
211
+ ["data-heap-redact-text", ""]
212
+ ];
213
+ const hideFromThirdParties = (element) => {
214
+ for (const [attributeName, attributeValue] of THIRD_PARTY_PRIVACY_ATTRIBUTES) element.setAttribute(attributeName, attributeValue);
215
+ element.setAttribute("data-testid", "react-grab-overlay");
216
+ element.classList.add("ph-no-capture");
217
+ };
218
+
219
+ //#endregion
220
+ //#region src/utils/native-raf.ts
221
+ const isClientSide = typeof window !== "undefined";
222
+ const noopAnimationFrame = (_callback) => 0;
223
+ const noopCancelFrame = (_id) => {};
224
+ const nativeRequestAnimationFrame = isClientSide ? (Object.getOwnPropertyDescriptor(Window.prototype, "requestAnimationFrame")?.value ?? window.requestAnimationFrame).bind(window) : noopAnimationFrame;
225
+ const nativeCancelAnimationFrame = isClientSide ? (Object.getOwnPropertyDescriptor(Window.prototype, "cancelAnimationFrame")?.value ?? window.cancelAnimationFrame).bind(window) : noopCancelFrame;
226
+ const waitUntilNextFrame = () => isClientSide ? new Promise((resolve) => nativeRequestAnimationFrame(() => resolve())) : Promise.resolve();
227
+
228
+ //#endregion
229
+ //#region ../../node_modules/.pnpm/bippy@0.5.39_react@19.2.6/node_modules/bippy/dist/rdt-hook.js
230
+ /**
231
+ * @license bippy
232
+ *
233
+ * Copyright (c) Aiden Bai
234
+ *
235
+ * This source code is licensed under the MIT license found in the
236
+ * LICENSE file in the root directory of this source tree.
237
+ */
238
+ const e = `0.5.39`, t = `bippy-${e}`, n = Object.defineProperty, r = Object.prototype.hasOwnProperty, i$1 = () => {}, a$1 = (e) => {
239
+ try {
240
+ Function.prototype.toString.call(e).indexOf(`^_^`) > -1 && setTimeout(() => {
241
+ throw Error(`React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build`);
242
+ });
243
+ } catch {}
244
+ }, o$1 = (e = globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__) => !!(e && `getFiberRoots` in e);
245
+ let s$1 = !1, c$1;
246
+ const l$1 = (e = globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__) => s$1 ? !0 : (e && typeof e.inject == `function` && (c$1 = e.inject.toString()), !!c$1?.includes(`(injected)`)), u$1 = /* @__PURE__ */ new Set(), d$2 = /* @__PURE__ */ new Set(), f$2 = (e) => {
247
+ let r = /* @__PURE__ */ new Map(), o = 0, s = {
248
+ _instrumentationIsActive: !1,
249
+ _instrumentationSource: t,
250
+ checkDCE: a$1,
251
+ hasUnsupportedRendererAttached: !1,
252
+ inject(e) {
253
+ let t = ++o;
254
+ return r.set(t, e), d$2.add(e), s._instrumentationIsActive || (s._instrumentationIsActive = !0, u$1.forEach((e) => e())), t;
255
+ },
256
+ on: i$1,
257
+ onCommitFiberRoot: i$1,
258
+ onCommitFiberUnmount: i$1,
259
+ onPostCommitFiberRoot: i$1,
260
+ renderers: r,
261
+ supportsFiber: !0,
262
+ supportsFlight: !0
263
+ };
264
+ try {
265
+ n(globalThis, `__REACT_DEVTOOLS_GLOBAL_HOOK__`, {
266
+ configurable: !0,
267
+ enumerable: !0,
268
+ get() {
269
+ return s;
270
+ },
271
+ set(t) {
272
+ if (t && typeof t == `object`) {
273
+ let n = s.renderers;
274
+ s = t, n.size > 0 && (n.forEach((e, n) => {
275
+ d$2.add(e), t.renderers.set(n, e);
276
+ }), p$2(e));
277
+ }
278
+ }
279
+ });
280
+ let t = window.hasOwnProperty, r = !1;
281
+ n(window, `hasOwnProperty`, {
282
+ configurable: !0,
283
+ value: function(...e) {
284
+ try {
285
+ if (!r && e[0] === `__REACT_DEVTOOLS_GLOBAL_HOOK__`) return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__ = void 0, r = !0, -0;
286
+ } catch {}
287
+ return t.apply(this, e);
288
+ },
289
+ writable: !0
290
+ });
291
+ } catch {
292
+ p$2(e);
293
+ }
294
+ return s;
295
+ }, p$2 = (e) => {
296
+ e && u$1.add(e);
297
+ try {
298
+ let n = globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;
299
+ if (!n) return;
300
+ if (!n._instrumentationSource) {
301
+ n.checkDCE = a$1, n.supportsFiber = !0, n.supportsFlight = !0, n.hasUnsupportedRendererAttached = !1, n._instrumentationSource = t, n._instrumentationIsActive = !1;
302
+ let e = o$1(n);
303
+ if (e || (n.on = i$1), n.renderers.size) {
304
+ n._instrumentationIsActive = !0, u$1.forEach((e) => e());
305
+ return;
306
+ }
307
+ let r = n.inject, c = l$1(n);
308
+ c && !e && (s$1 = !0, n.inject({ scheduleRefresh() {} }) && (n._instrumentationIsActive = !0)), n.inject = (e) => {
309
+ let t = r(e);
310
+ return d$2.add(e), c && n.renderers.set(t, e), n._instrumentationIsActive = !0, u$1.forEach((e) => e()), t;
311
+ };
312
+ }
313
+ (n.renderers.size || n._instrumentationIsActive || l$1()) && e?.();
314
+ } catch {}
315
+ }, m$2 = () => r.call(globalThis, `__REACT_DEVTOOLS_GLOBAL_HOOK__`), h$2 = (e) => m$2() ? (p$2(e), globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__) : f$2(e), g$2 = () => !!(typeof window < `u` && (window.document?.createElement || window.navigator?.product === `ReactNative`)), _$2 = () => {
316
+ try {
317
+ g$2() && h$2();
318
+ } catch {}
319
+ };
320
+
321
+ //#endregion
322
+ //#region ../../node_modules/.pnpm/bippy@0.5.39_react@19.2.6/node_modules/bippy/dist/core.js
323
+ /**
324
+ * @license bippy
325
+ *
326
+ * Copyright (c) Aiden Bai
327
+ *
328
+ * This source code is licensed under the MIT license found in the
329
+ * LICENSE file in the root directory of this source tree.
330
+ */
331
+ const d$1 = 0, ee$1 = 1, te$1 = 3, ne$1 = 5, re$1 = 6, ie$1 = 7, f$1 = 9, p$1 = 11, m$1 = 13, h$1 = 14, g$1 = 15, ae$1 = 16, oe$1 = 18, se$1 = 19, ce$1 = 22, le$1 = 23, ue$1 = 26, de$1 = 27, fe$1 = 28, pe$1 = 30, _$1 = 60111, me$1 = `Symbol(react.element)`, he$1 = `Symbol(react.transitional.element)`, v$1 = `Symbol(react.concurrent_mode)`, y$1 = `Symbol(react.async_mode)`, b$1 = 13366, ge$1 = (e) => typeof e == `object` && !!e && `$$typeof` in e && [`Symbol(react.element)`, `Symbol(react.transitional.element)`].includes(String(e.$$typeof)), _e$1 = (e) => typeof e == `object` && !!e && `tag` in e && `stateNode` in e && `return` in e && `child` in e && `sibling` in e && `flags` in e, x$1 = (e) => {
332
+ switch (e.tag) {
333
+ case 5:
334
+ case 26:
335
+ case 27: return !0;
336
+ default: return typeof e.type == `string`;
337
+ }
338
+ }, ve$1 = (e) => {
339
+ switch (e.tag) {
340
+ case 1:
341
+ case 11:
342
+ case 0:
343
+ case 14:
344
+ case 15: return !0;
345
+ default: return !1;
346
+ }
347
+ }, ye$1 = (e) => !e || typeof e != `object` ? !1 : `pendingProps` in e && !(`containerInfo` in e), be$1 = (e, t) => e === t || e.alternate === t || t.alternate === e, xe$1 = (e, t) => {
348
+ try {
349
+ let n = e.dependencies, r = e.alternate?.dependencies;
350
+ if (!n || !r || typeof n != `object` || !(`firstContext` in n) || typeof r != `object` || !(`firstContext` in r)) return !1;
351
+ let i = n.firstContext, a = r.firstContext;
352
+ for (; i && typeof i == `object` && `memoizedValue` in i || a && typeof a == `object` && `memoizedValue` in a;) {
353
+ if (t(i, a) === !0) return !0;
354
+ i = i?.next, a = a?.next;
355
+ }
356
+ } catch {}
357
+ return !1;
358
+ }, S$1 = (e, t) => {
359
+ try {
360
+ let n = e.memoizedState, r = e.alternate?.memoizedState;
361
+ for (; n || r;) {
362
+ if (t(n, r) === !0) return !0;
363
+ n = n?.next, r = r?.next;
364
+ }
365
+ } catch {}
366
+ return !1;
367
+ }, C$1 = (e, t) => {
368
+ try {
369
+ let n = e.memoizedProps, r = e.alternate?.memoizedProps || {}, i = new Set([...Object.keys(n), ...Object.keys(r)]);
370
+ for (let e of i) {
371
+ let i = r?.[e], a = n?.[e];
372
+ if (t(e, a, i) === !0) return !0;
373
+ }
374
+ } catch {}
375
+ return !1;
376
+ }, w$1 = (e) => {
377
+ let t = e.memoizedProps, n = e.alternate?.memoizedProps || {}, r = e.flags ?? e.effectTag ?? 0;
378
+ switch (e.tag) {
379
+ case 1:
380
+ case 9:
381
+ case 11:
382
+ case 0:
383
+ case 14:
384
+ case 15: return (r & 1) == 1;
385
+ default: return e.alternate ? n !== t || e.alternate.memoizedState !== e.memoizedState || e.alternate.ref !== e.ref : !0;
386
+ }
387
+ }, T$1 = (e) => !!(e.flags & (b$1 | 8) || e.subtreeFlags & (b$1 | 8)), E$1 = (e) => {
388
+ let t = [], n = [e];
389
+ for (; n.length;) {
390
+ let e = n.pop();
391
+ e && (x$1(e) && T$1(e) && w$1(e) && t.push(e), e.child && n.push(e.child), e.sibling && n.push(e.sibling));
392
+ }
393
+ return t;
394
+ }, D$1 = (e) => {
395
+ let t = [], n = e;
396
+ for (; n.return;) t.push(n), n = n.return;
397
+ return t;
398
+ }, O$1 = (e) => {
399
+ switch (e.tag) {
400
+ case 18: return !0;
401
+ case 7:
402
+ case 6:
403
+ case 23:
404
+ case 22: return !0;
405
+ case 3: return !1;
406
+ default: {
407
+ let t = typeof e.type == `object` && e.type !== null ? e.type.$$typeof : e.type;
408
+ switch (typeof t == `symbol` ? t.toString() : t) {
409
+ case _$1:
410
+ case v$1:
411
+ case y$1: return !0;
412
+ default: return !1;
413
+ }
414
+ }
415
+ }
416
+ }, k$1 = (e, t = !1) => {
417
+ let n = j$1(e, x$1, t);
418
+ return n ||= j$1(e, x$1, !t), n;
419
+ }, A$1 = (e) => {
420
+ let t = [], n = [];
421
+ for (x$1(e) ? t.push(e) : e.child && n.push(e.child); n.length;) {
422
+ let e = n.pop();
423
+ if (!e) break;
424
+ x$1(e) ? t.push(e) : e.child && n.push(e.child), e.sibling && n.push(e.sibling);
425
+ }
426
+ return t;
427
+ };
428
+ function j$1(e, t, n = !1) {
429
+ if (!e) return null;
430
+ let r = t(e);
431
+ if (r instanceof Promise) return (async () => {
432
+ if (await r === !0) return e;
433
+ let i = n ? e.return : e.child;
434
+ for (; i;) {
435
+ let e = await N$1(i, t, n);
436
+ if (e) return e;
437
+ i = n ? null : i.sibling;
438
+ }
439
+ return null;
440
+ })();
441
+ if (r === !0) return e;
442
+ let i = n ? e.return : e.child;
443
+ for (; i;) {
444
+ let e = M$1(i, t, n);
445
+ if (e) return e;
446
+ i = n ? null : i.sibling;
447
+ }
448
+ return null;
449
+ }
450
+ const M$1 = (e, t, n = !1) => {
451
+ if (!e) return null;
452
+ if (t(e) === !0) return e;
453
+ let r = n ? e.return : e.child;
454
+ for (; r;) {
455
+ let e = M$1(r, t, n);
456
+ if (e) return e;
457
+ r = n ? null : r.sibling;
458
+ }
459
+ return null;
460
+ }, N$1 = async (e, t, n = !1) => {
461
+ if (!e) return null;
462
+ if (await t(e) === !0) return e;
463
+ let r = n ? e.return : e.child;
464
+ for (; r;) {
465
+ let e = await N$1(r, t, n);
466
+ if (e) return e;
467
+ r = n ? null : r.sibling;
468
+ }
469
+ return null;
470
+ }, Se$1 = (e) => {
471
+ let t = e?.actualDuration ?? 0, n = t, r = e?.child ?? null;
472
+ for (; t > 0 && r != null;) n -= r.actualDuration ?? 0, r = r.sibling;
473
+ return {
474
+ selfTime: n,
475
+ totalTime: t
476
+ };
477
+ }, Ce$1 = (e) => !!e.updateQueue?.memoCache, P$1 = (e) => {
478
+ let t = e;
479
+ return typeof t == `function` ? t : typeof t == `object` && t ? P$1(t.type || t.render) : null;
480
+ }, we$1 = (e) => {
481
+ let t = e;
482
+ if (typeof t == `string`) return t;
483
+ if (typeof t != `function` && !(typeof t == `object` && t)) return null;
484
+ let n = t.displayName || t.name || null;
485
+ if (n) return n;
486
+ let r = P$1(t);
487
+ return r && (r.displayName || r.name) || null;
488
+ }, F$1 = (e) => {
489
+ try {
490
+ if (typeof e.version == `string` && e.bundleType > 0) return `development`;
491
+ } catch {}
492
+ return `production`;
493
+ }, Te$1 = () => {
494
+ let e = globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;
495
+ return !!e?._instrumentationIsActive || o$1(e) || l$1(e);
496
+ }, Ee$1 = (e) => {
497
+ let t = e.alternate;
498
+ if (!t) return e;
499
+ if (t.actualStartTime && e.actualStartTime) return t.actualStartTime > e.actualStartTime ? t : e;
500
+ for (let t of $) {
501
+ let n = j$1(t.current, (t) => {
502
+ if (t === e) return !0;
503
+ });
504
+ if (n) return n;
505
+ }
506
+ return e;
507
+ };
508
+ let G$1 = null, K$1 = null, q$1 = null;
509
+ const J$1 = () => {
510
+ if (!m$2()) return null;
511
+ let e = h$2();
512
+ if (!e?.renderers) return null;
513
+ if (G$1 || K$1 || q$1) return {
514
+ overrideContext: q$1,
515
+ overrideHookState: K$1,
516
+ overrideProps: G$1
517
+ };
518
+ for (let [, t] of Array.from(e.renderers)) try {
519
+ if (K$1) {
520
+ let e = K$1;
521
+ K$1 = (n, r, i, a) => {
522
+ let o = n.memoizedState;
523
+ for (let e = 0; e < Number(r) && o?.next; e++) o = o.next;
524
+ if (o?.queue) {
525
+ let e = o.queue;
526
+ if (Y$1(e) && `dispatch` in e) {
527
+ let t = e.dispatch;
528
+ t(a);
529
+ return;
530
+ }
531
+ }
532
+ e(n, r, i, a), t.overrideHookState?.(n, r, i, a);
533
+ };
534
+ } else t.overrideHookState && (K$1 = t.overrideHookState);
535
+ if (G$1) {
536
+ let e = G$1;
537
+ G$1 = (n, r, i) => {
538
+ e(n, r, i), t.overrideProps?.(n, r, i);
539
+ };
540
+ } else t.overrideProps && (G$1 = t.overrideProps);
541
+ q$1 = (e, t, n, r) => {
542
+ let i = e;
543
+ for (; i;) {
544
+ let e = i.type;
545
+ if (e === t || e?.Provider === t) {
546
+ G$1 && (G$1(i, [`value`, ...n], r), i.alternate && G$1(i.alternate, [`value`, ...n], r));
547
+ break;
548
+ }
549
+ i = i.return;
550
+ }
551
+ };
552
+ } catch {}
553
+ }, Y$1 = (e) => Object.prototype.toString.call(e) === `[object Object]` && (Object.getPrototypeOf(e) === Object.prototype || Object.getPrototypeOf(e) === null), X$1 = (e, t = []) => {
554
+ if (!Y$1(e)) return [{
555
+ path: t,
556
+ value: e
557
+ }];
558
+ let n = [];
559
+ for (let r in e) {
560
+ let i = e[r], a = t.concat(r);
561
+ Y$1(i) ? n.push(...X$1(i, a)) : n.push({
562
+ path: a,
563
+ value: i
564
+ });
565
+ }
566
+ return n;
567
+ }, ke$1 = (e, t) => {
568
+ J$1();
569
+ let n = X$1(t);
570
+ for (let { path: t, value: r } of n) try {
571
+ G$1?.(e, t, r);
572
+ } catch {}
573
+ }, Ae$1 = (e, t, n) => {
574
+ J$1();
575
+ let r = String(t);
576
+ if (Y$1(n)) {
577
+ let t = X$1(n);
578
+ for (let { path: n, value: i } of t) try {
579
+ K$1?.(e, r, n, i);
580
+ } catch {}
581
+ } else try {
582
+ K$1?.(e, r, [], n);
583
+ } catch {}
584
+ }, je$1 = (e, t, n) => {
585
+ if (J$1(), Y$1(n)) {
586
+ let r = X$1(n);
587
+ for (let { path: n, value: i } of r) try {
588
+ q$1?.(e, t, n, i);
589
+ } catch {}
590
+ } else try {
591
+ q$1?.(e, t, [], n);
592
+ } catch {}
593
+ }, Me$1 = (e) => {
594
+ let t$1 = h$2(e.onActive);
595
+ t$1._instrumentationSource = e.name ?? t;
596
+ let n = t$1.onCommitFiberRoot;
597
+ if (e.onCommitFiberRoot) {
598
+ let r = (t, i, a) => {
599
+ n !== r && (n?.(t, i, a), e.onCommitFiberRoot?.(t, i, a));
600
+ };
601
+ t$1.onCommitFiberRoot = r;
602
+ }
603
+ let r = t$1.onCommitFiberUnmount;
604
+ if (e.onCommitFiberUnmount) {
605
+ let n = (i, a) => {
606
+ t$1.onCommitFiberUnmount === n && (r?.(i, a), e.onCommitFiberUnmount?.(i, a));
607
+ };
608
+ t$1.onCommitFiberUnmount = n;
609
+ }
610
+ let i = t$1.onPostCommitFiberRoot;
611
+ if (e.onPostCommitFiberRoot) {
612
+ let n = (r, a) => {
613
+ t$1.onPostCommitFiberRoot === n && (i?.(r, a), e.onPostCommitFiberRoot?.(r, a));
614
+ };
615
+ t$1.onPostCommitFiberRoot = n;
616
+ }
617
+ return t$1;
618
+ }, Z$1 = (e) => {
619
+ let t = globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;
620
+ if (t?.renderers) for (let n of t.renderers.values()) try {
621
+ let t = n.findFiberByHostInstance?.(e);
622
+ if (t) return t;
623
+ } catch {}
624
+ if (typeof e == `object` && e) {
625
+ if (`_reactRootContainer` in e) return e._reactRootContainer?._internalRoot?.current?.child;
626
+ for (let t in e) if (t.startsWith(`__reactContainer$`) || t.startsWith(`__reactInternalInstance$`) || t.startsWith(`__reactFiber`)) return e[t] || null;
627
+ }
628
+ return null;
629
+ }, Q$1 = Error(), $ = /* @__PURE__ */ new Set(), Ne$1 = (e, n = {}) => {
630
+ let i = e.onActive, a = m$2(), o = o$1(), l = l$1(), u, d = !n.isProduction;
631
+ return e.onActive = () => {
632
+ clearTimeout(u);
633
+ let t = !0;
634
+ try {
635
+ let e = h$2();
636
+ for (let r of e.renderers.values()) {
637
+ let [e] = r.version.split(`.`);
638
+ Number(e) < (n.minReactMajorVersion ?? 17) && (t = !1), F$1(r) === `development` ? d = !0 : n.dangerouslyRunInProduction || (t = !1);
639
+ }
640
+ } catch (e) {
641
+ n.onError?.(e);
642
+ }
643
+ if (!t) {
644
+ e.onCommitFiberRoot = void 0, e.onCommitFiberUnmount = void 0, e.onPostCommitFiberRoot = void 0, e.onActive = void 0;
645
+ return;
646
+ }
647
+ i?.();
648
+ try {
649
+ let t = e.onCommitFiberRoot;
650
+ t && (e.onCommitFiberRoot = (e, r, i) => {
651
+ $.has(r) || $.add(r);
652
+ try {
653
+ t(e, r, i);
654
+ } catch (e) {
655
+ n.onError?.(e);
656
+ }
657
+ });
658
+ let r = e.onCommitFiberUnmount;
659
+ r && (e.onCommitFiberUnmount = (e, t) => {
660
+ try {
661
+ r(e, t);
662
+ } catch (e) {
663
+ n.onError?.(e);
664
+ }
665
+ });
666
+ let i = e.onPostCommitFiberRoot;
667
+ i && (e.onPostCommitFiberRoot = (e, t) => {
668
+ try {
669
+ i(e, t);
670
+ } catch (e) {
671
+ n.onError?.(e);
672
+ }
673
+ });
674
+ } catch (e) {
675
+ n.onError?.(e);
676
+ }
677
+ }, !a && !o && !l && (u = setTimeout(() => {
678
+ d && n.onError?.(Q$1), stop();
679
+ }, n.installCheckTimeout ?? 100)), e;
680
+ };
681
+
682
+ //#endregion
683
+ //#region ../../node_modules/.pnpm/bippy@0.5.39_react@19.2.6/node_modules/bippy/dist/source.js
684
+ /**
685
+ * @license bippy
686
+ *
687
+ * Copyright (c) Aiden Bai
688
+ *
689
+ * This source code is licensed under the MIT license found in the
690
+ * LICENSE file in the root directory of this source tree.
691
+ */
692
+ const i = /^[a-zA-Z][a-zA-Z\d+\-.]*:/, a = [
693
+ `rsc://`,
694
+ `file:///`,
695
+ `webpack-internal://`,
696
+ `webpack://`,
697
+ `node:`,
698
+ `turbopack://`,
699
+ `metro://`,
700
+ `/app-pages-browser/`,
701
+ `/(app-pages-browser)/`
702
+ ], o = [
703
+ `<anonymous>`,
704
+ `eval`,
705
+ ``
706
+ ], s = /\.(jsx|tsx|ts|js)$/, c = /(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i, l = /^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/, u = /(^|@)\S+:\d+/, d = /^\s*at .*(\S+:\d+|\(native\))/m, f = /^(eval@)?(\[native code\])?$/, p = (e) => {
707
+ if (e && typeof e == `object`) {
708
+ let t = e.stacktrace;
709
+ return typeof t == `string` ? t : null;
710
+ }
711
+ return null;
712
+ }, m = (e, t) => {
713
+ if (t?.includeInElement !== !1) {
714
+ let n = e.split(`
715
+ `), r = [];
716
+ for (let e of n) if (/^\s*at\s+/.test(e)) {
717
+ let t = _(e, void 0)[0];
718
+ t && r.push(t);
719
+ } else if (/^\s*in\s+/.test(e)) {
720
+ let t = e.replace(/^\s*in\s+/, ``).replace(/\s*\(at .*\)$/, ``);
721
+ r.push({
722
+ functionName: t,
723
+ source: e
724
+ });
725
+ } else if (e.match(u)) {
726
+ let t = v(e, void 0)[0];
727
+ t && r.push(t);
728
+ }
729
+ return g(r, t);
730
+ }
731
+ return e.match(d) ? _(e, t) : v(e, t);
732
+ }, h = (e) => {
733
+ if (!e.includes(`:`)) return [
734
+ e,
735
+ void 0,
736
+ void 0
737
+ ];
738
+ let t = e.startsWith(`(`) && /:\d+\)$/.test(e) ? e.slice(1, -1) : e, n = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);
739
+ return n ? [
740
+ n[1],
741
+ n[2] || void 0,
742
+ n[3] || void 0
743
+ ] : [
744
+ t,
745
+ void 0,
746
+ void 0
747
+ ];
748
+ }, g = (e, t) => t && t.slice != null ? Array.isArray(t.slice) ? e.slice(t.slice[0], t.slice[1]) : e.slice(0, t.slice) : e, ee = (e, t) => _(e.stack, t), _ = (e, t) => g(e.split(`
749
+ `).filter((e) => !!e.match(d)), t).map((e) => {
750
+ let t = e;
751
+ t.includes(`(eval `) && (t = t.replace(/eval code/g, `eval`).replace(/(\(eval at [^()]*)|(,.*$)/g, ``));
752
+ let n = t.replace(/^\s+/, ``).replace(/\(eval code/g, `(`).replace(/^.*?\s+/, ``), r = n.match(/ (\(.+\)$)/);
753
+ n = r ? n.replace(r[0], ``) : n;
754
+ let i = h(r ? r[1] : n);
755
+ return {
756
+ functionName: r && n || void 0,
757
+ fileName: [`eval`, `<anonymous>`].includes(i[0]) ? void 0 : i[0],
758
+ lineNumber: i[1] ? +i[1] : void 0,
759
+ columnNumber: i[2] ? +i[2] : void 0,
760
+ source: t
761
+ };
762
+ }), te = (e, t) => v(e.stack, t), v = (e, t) => g(e.split(`
763
+ `).filter((e) => !e.match(f)), t).map((e) => {
764
+ let t = e;
765
+ if (t.includes(` > eval`) && (t = t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, `:$1`)), !t.includes(`@`) && !t.includes(`:`)) return { functionName: t };
766
+ {
767
+ let e = /(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/, n = t.match(e), r = n && n[1] ? n[1] : void 0, i = h(t.replace(e, ``));
768
+ return {
769
+ functionName: r,
770
+ fileName: i[0],
771
+ lineNumber: i[1] ? +i[1] : void 0,
772
+ columnNumber: i[2] ? +i[2] : void 0,
773
+ source: t
774
+ };
775
+ }
776
+ }), ne = (e, t) => {
777
+ let n = p(e);
778
+ return !n || e.message.includes(`
779
+ `) && e.message.split(`
780
+ `).length > n.split(`
781
+ `).length ? y(e, t) : e.stack ? re(e, t) : b(e, t);
782
+ }, y = (e, t) => {
783
+ let n = /Line (\d+).*script (?:in )?(\S+)/i, r = e.message.split(`
784
+ `), i = [];
785
+ for (let e = 2, t = r.length; e < t; e += 2) {
786
+ let t = n.exec(r[e]);
787
+ t && i.push({
788
+ fileName: t[2],
789
+ lineNumber: +t[1],
790
+ source: r[e]
791
+ });
792
+ }
793
+ return g(i, t);
794
+ }, b = (e, t) => {
795
+ let n = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, r = (p(e) || ``).split(`
796
+ `), i = [];
797
+ for (let e = 0, t = r.length; e < t; e += 2) {
798
+ let t = n.exec(r[e]);
799
+ t && i.push({
800
+ functionName: t[3] || void 0,
801
+ fileName: t[2],
802
+ lineNumber: t[1] ? +t[1] : void 0,
803
+ source: r[e]
804
+ });
805
+ }
806
+ return g(i, t);
807
+ }, re = (e, t) => g(e.stack.split(`
808
+ `).filter((e) => !!e.match(u) && !e.match(/^Error created at/)), t).map((e) => {
809
+ let t = e.split(`@`), n = h(t.pop()), r = t.shift() || ``, i = r.replace(/<anonymous function(: (\w+))?>/, `$2`).replace(/\([^)]*\)/g, ``) || void 0, a;
810
+ return r.match(/\(([^)]*)\)/) && (a = r.replace(/^[^(]+\(([^)]*)\)$/, `$1`)), {
811
+ functionName: i,
812
+ args: a === void 0 || a === `[arguments not available]` ? void 0 : a.split(`,`),
813
+ fileName: n[0],
814
+ lineNumber: n[1] ? +n[1] : void 0,
815
+ columnNumber: n[2] ? +n[2] : void 0,
816
+ source: e
817
+ };
818
+ });
819
+ var ie = 44, ae = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`, oe = new Uint8Array(64), se = new Uint8Array(128);
820
+ for (let e = 0; e < ae.length; e++) {
821
+ let t = ae.charCodeAt(e);
822
+ oe[e] = t, se[t] = e;
823
+ }
824
+ function x(e, t) {
825
+ let n = 0, r = 0, i = 0;
826
+ do
827
+ i = se[e.next()], n |= (i & 31) << r, r += 5;
828
+ while (i & 32);
829
+ let a = n & 1;
830
+ return n >>>= 1, a && (n = -2147483648 | -n), t + n;
831
+ }
832
+ function ce(e, t) {
833
+ return e.pos >= t ? !1 : e.peek() !== ie;
834
+ }
835
+ var le = class {
836
+ constructor(e) {
837
+ this.pos = 0, this.buffer = e;
838
+ }
839
+ next() {
840
+ return this.buffer.charCodeAt(this.pos++);
841
+ }
842
+ peek() {
843
+ return this.buffer.charCodeAt(this.pos);
844
+ }
845
+ indexOf(e) {
846
+ let { buffer: t, pos: n } = this, r = t.indexOf(e, n);
847
+ return r === -1 ? t.length : r;
848
+ }
849
+ };
850
+ function ue(e) {
851
+ let { length: t } = e, n = new le(e), r = [], i = 0, a = 0, o = 0, s = 0, c = 0;
852
+ do {
853
+ let e = n.indexOf(`;`), t = [], l = !0, u = 0;
854
+ for (i = 0; n.pos < e;) {
855
+ let r;
856
+ i = x(n, i), i < u && (l = !1), u = i, ce(n, e) ? (a = x(n, a), o = x(n, o), s = x(n, s), ce(n, e) ? (c = x(n, c), r = [
857
+ i,
858
+ a,
859
+ o,
860
+ s,
861
+ c
862
+ ]) : r = [
863
+ i,
864
+ a,
865
+ o,
866
+ s
867
+ ]) : r = [i], t.push(r), n.pos++;
868
+ }
869
+ l || de(t), r.push(t), n.pos = e + 1;
870
+ } while (n.pos <= t);
871
+ return r;
872
+ }
873
+ function de(e) {
874
+ e.sort(fe);
875
+ }
876
+ function fe(e, t) {
877
+ return e[0] - t[0];
878
+ }
879
+ const pe = /^[a-zA-Z][a-zA-Z\d+\-.]*:/, me = /^data:application\/json[^,]+base64,/, he = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/, S = typeof WeakRef < `u`, C = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), ge = (e) => S && e instanceof WeakRef, _e = (e, t, n, r) => {
880
+ if (n < 0 || n >= e.length) return null;
881
+ let i = e[n];
882
+ if (!i || i.length === 0) return null;
883
+ let a = null;
884
+ for (let e of i) if (e[0] <= r) a = e;
885
+ else break;
886
+ if (!a || a.length < 4) return null;
887
+ let [, o, s, c] = a;
888
+ if (o === void 0 || s === void 0 || c === void 0) return null;
889
+ let l = t[o];
890
+ return l ? {
891
+ columnNumber: c,
892
+ fileName: l,
893
+ lineNumber: s + 1
894
+ } : null;
895
+ }, T = (e, t, n) => {
896
+ if (e.sections) {
897
+ let r = null;
898
+ for (let i of e.sections) if (t > i.offset.line || t === i.offset.line && n >= i.offset.column) r = i;
899
+ else break;
900
+ if (!r) return null;
901
+ let i = t - r.offset.line, a = t === r.offset.line ? n - r.offset.column : n;
902
+ return _e(r.map.mappings, r.map.sources, i, a);
903
+ }
904
+ return _e(e.mappings, e.sources, t - 1, n);
905
+ }, ve = (e, t) => {
906
+ let n = t.split(`
907
+ `), r;
908
+ for (let e = n.length - 1; e >= 0 && !r; e--) {
909
+ let t = n[e].match(he);
910
+ t && (r = t[1] || t[2]);
911
+ }
912
+ if (!r) return null;
913
+ let i = pe.test(r);
914
+ if (!(me.test(r) || i || r.startsWith(`/`))) {
915
+ let t = e.split(`/`);
916
+ t[t.length - 1] = r, r = t.join(`/`);
917
+ }
918
+ return r;
919
+ }, ye = (e) => ({
920
+ file: e.file,
921
+ mappings: ue(e.mappings),
922
+ names: e.names,
923
+ sourceRoot: e.sourceRoot,
924
+ sources: e.sources,
925
+ sourcesContent: e.sourcesContent,
926
+ version: 3
927
+ }), be = (e) => {
928
+ let t = e.sections.map(({ map: e, offset: t }) => ({
929
+ map: {
930
+ ...e,
931
+ mappings: ue(e.mappings)
932
+ },
933
+ offset: t
934
+ })), n = /* @__PURE__ */ new Set();
935
+ for (let e of t) for (let t of e.map.sources) n.add(t);
936
+ return {
937
+ file: e.file,
938
+ mappings: [],
939
+ names: [],
940
+ sections: t,
941
+ sourceRoot: void 0,
942
+ sources: Array.from(n),
943
+ sourcesContent: void 0,
944
+ version: 3
945
+ };
946
+ }, E = (e) => {
947
+ if (!e) return !1;
948
+ let t = e.trim();
949
+ if (!t) return !1;
950
+ let n = t.match(pe);
951
+ if (!n) return !0;
952
+ let r = n[0].toLowerCase();
953
+ return r === `http:` || r === `https:`;
954
+ }, D = async (e, t = fetch) => {
955
+ if (!E(e)) return null;
956
+ let n;
957
+ try {
958
+ let r = await t(e);
959
+ if (!r.ok) return null;
960
+ n = await r.text();
961
+ } catch {
962
+ return null;
963
+ }
964
+ if (!n) return null;
965
+ let r = ve(e, n);
966
+ if (!r || !E(r)) return null;
967
+ try {
968
+ let e = await t(r);
969
+ if (!e.ok) return null;
970
+ let n = await e.json();
971
+ return `sections` in n ? be(n) : ye(n);
972
+ } catch {
973
+ return null;
974
+ }
975
+ }, O = async (e, t = !0, n) => {
976
+ if (t && C.has(e)) {
977
+ let t = C.get(e);
978
+ if (t == null) return null;
979
+ if (ge(t)) {
980
+ let n = t.deref();
981
+ if (n) return n;
982
+ C.delete(e);
983
+ } else return t;
984
+ }
985
+ if (t && w.has(e)) return w.get(e);
986
+ let r = D(e, n);
987
+ t && w.set(e, r);
988
+ let i = await r;
989
+ return t && w.delete(e), t && (i === null ? C.set(e, null) : C.set(e, S ? new WeakRef(i) : i)), i;
990
+ }, xe = async (e, t = !0, n) => await Promise.all(e.map(async (e) => {
991
+ if (!e.fileName) return e;
992
+ let r = await O(e.fileName, t, n);
993
+ if (!r || typeof e.lineNumber != `number` || typeof e.columnNumber != `number`) return e;
994
+ let i = T(r, e.lineNumber, e.columnNumber);
995
+ return i ? {
996
+ ...e,
997
+ source: i.fileName && e.source ? e.source.replace(e.fileName, i.fileName) : e.source,
998
+ fileName: i.fileName,
999
+ lineNumber: i.lineNumber,
1000
+ columnNumber: i.columnNumber,
1001
+ isSymbolicated: !0
1002
+ } : e;
1003
+ })), Se = (e) => e._debugStack instanceof Error && typeof e._debugStack?.stack == `string`, Ce = () => {
1004
+ let n = h$2();
1005
+ for (let t of [...Array.from(d$2), ...Array.from(n.renderers.values())]) {
1006
+ let e = t.currentDispatcherRef;
1007
+ if (e && typeof e == `object`) return `H` in e ? e.H : e.current;
1008
+ }
1009
+ return null;
1010
+ }, k = (t) => {
1011
+ for (let n of d$2) {
1012
+ let e = n.currentDispatcherRef;
1013
+ e && typeof e == `object` && (`H` in e ? e.H = t : e.current = t);
1014
+ }
1015
+ }, A = (e) => `\n in ${e}`, j = (e, t) => {
1016
+ let n = A(e);
1017
+ return t && (n += ` (at ${t})`), n;
1018
+ };
1019
+ let M = !1;
1020
+ const N = (e, t) => {
1021
+ if (!e || M) return ``;
1022
+ let r = Error.prepareStackTrace;
1023
+ Error.prepareStackTrace = void 0, M = !0;
1024
+ let i = Ce();
1025
+ k(null);
1026
+ let a = console.error, o = console.warn;
1027
+ console.error = () => {}, console.warn = () => {};
1028
+ try {
1029
+ let r = { DetermineComponentFrameRoot() {
1030
+ let n;
1031
+ try {
1032
+ if (t) {
1033
+ let t = function() {
1034
+ throw Error();
1035
+ };
1036
+ if (Object.defineProperty(t.prototype, `props`, { set: function() {
1037
+ throw Error();
1038
+ } }), typeof Reflect == `object` && Reflect.construct) {
1039
+ try {
1040
+ Reflect.construct(t, []);
1041
+ } catch (e) {
1042
+ n = e;
1043
+ }
1044
+ Reflect.construct(e, [], t);
1045
+ } else {
1046
+ try {
1047
+ t.call();
1048
+ } catch (e) {
1049
+ n = e;
1050
+ }
1051
+ e.call(t.prototype);
1052
+ }
1053
+ } else {
1054
+ try {
1055
+ throw Error();
1056
+ } catch (e) {
1057
+ n = e;
1058
+ }
1059
+ let t = e();
1060
+ t && typeof t.catch == `function` && t.catch(() => {});
1061
+ }
1062
+ } catch (e) {
1063
+ if (e instanceof Error && n instanceof Error && typeof e.stack == `string`) return [e.stack, n.stack];
1064
+ }
1065
+ return [null, null];
1066
+ } };
1067
+ r.DetermineComponentFrameRoot.displayName = `DetermineComponentFrameRoot`, Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot, `name`)?.configurable && Object.defineProperty(r.DetermineComponentFrameRoot, `name`, { value: `DetermineComponentFrameRoot` });
1068
+ let [i, a] = r.DetermineComponentFrameRoot();
1069
+ if (i && a) {
1070
+ let t = i.split(`
1071
+ `), r = a.split(`
1072
+ `), o = 0, s = 0;
1073
+ for (; o < t.length && !t[o].includes(`DetermineComponentFrameRoot`);) o++;
1074
+ for (; s < r.length && !r[s].includes(`DetermineComponentFrameRoot`);) s++;
1075
+ if (o === t.length || s === r.length) for (o = t.length - 1, s = r.length - 1; o >= 1 && s >= 0 && t[o] !== r[s];) s--;
1076
+ for (; o >= 1 && s >= 0; o--, s--) if (t[o] !== r[s]) {
1077
+ if (o !== 1 || s !== 1) do
1078
+ if (o--, s--, s < 0 || t[o] !== r[s]) {
1079
+ let r = `\n${t[o].replace(` at new `, ` at `)}`, i = we$1(e);
1080
+ return i && r.includes(`<anonymous>`) && (r = r.replace(`<anonymous>`, i)), r;
1081
+ }
1082
+ while (o >= 1 && s >= 0);
1083
+ break;
1084
+ }
1085
+ }
1086
+ } finally {
1087
+ M = !1, Error.prepareStackTrace = r, k(i), console.error = a, console.warn = o;
1088
+ }
1089
+ let s = e ? we$1(e) : ``;
1090
+ return s ? A(s) : ``;
1091
+ }, P = (e, t) => {
1092
+ let n = e.tag, r = ``;
1093
+ switch (n) {
1094
+ case 28:
1095
+ r = A(`Activity`);
1096
+ break;
1097
+ case 1:
1098
+ r = N(e.type, !0);
1099
+ break;
1100
+ case 11:
1101
+ r = N(e.type.render, !1);
1102
+ break;
1103
+ case 0:
1104
+ case 15:
1105
+ r = N(e.type, !1);
1106
+ break;
1107
+ case 5:
1108
+ case 26:
1109
+ case 27:
1110
+ r = A(e.type);
1111
+ break;
1112
+ case 16:
1113
+ r = A(`Lazy`);
1114
+ break;
1115
+ case 13:
1116
+ r = e.child !== t && t !== null ? A(`Suspense Fallback`) : A(`Suspense`);
1117
+ break;
1118
+ case 19:
1119
+ r = A(`SuspenseList`);
1120
+ break;
1121
+ case 30:
1122
+ r = A(`ViewTransition`);
1123
+ break;
1124
+ default: return ``;
1125
+ }
1126
+ return r;
1127
+ }, F = (e) => {
1128
+ try {
1129
+ let t = ``, n = e, r = null;
1130
+ do {
1131
+ t += P(n, r);
1132
+ let e = n._debugInfo;
1133
+ if (e && Array.isArray(e)) for (let n = e.length - 1; n >= 0; n--) {
1134
+ let r = e[n];
1135
+ typeof r.name == `string` && (t += j(r.name, r.env));
1136
+ }
1137
+ r = n, n = n.return;
1138
+ } while (n);
1139
+ return t;
1140
+ } catch (e) {
1141
+ return e instanceof Error ? `\nError generating stack: ${e.message}\n${e.stack}` : ``;
1142
+ }
1143
+ }, I = (e) => {
1144
+ let t = Error.prepareStackTrace;
1145
+ Error.prepareStackTrace = void 0;
1146
+ let n = e;
1147
+ if (!n) return ``;
1148
+ Error.prepareStackTrace = t, n.startsWith(`Error: react-stack-top-frame
1149
+ `) && (n = n.slice(29));
1150
+ let r = n.indexOf(`
1151
+ `);
1152
+ if (r !== -1 && (n = n.slice(r + 1)), r = Math.max(n.indexOf(`react_stack_bottom_frame`), n.indexOf(`react-stack-bottom-frame`)), r !== -1 && (r = n.lastIndexOf(`
1153
+ `, r)), r !== -1) n = n.slice(0, r);
1154
+ else return ``;
1155
+ return n;
1156
+ }, we = (e) => !!(e.fileName?.startsWith(`rsc://`) && e.functionName), Te = (e, t) => e.fileName === t.fileName && e.lineNumber === t.lineNumber && e.columnNumber === t.columnNumber, Ee = (e) => {
1157
+ let t = /* @__PURE__ */ new Map();
1158
+ for (let n of e) for (let e of n.stackFrames) {
1159
+ if (!we(e)) continue;
1160
+ let n = e.functionName, r = t.get(n) ?? [];
1161
+ r.some((t) => Te(t, e)) || (r.push(e), t.set(n, r));
1162
+ }
1163
+ return t;
1164
+ }, De = (e, t, n) => {
1165
+ if (!e.functionName) return {
1166
+ ...e,
1167
+ isServer: !0
1168
+ };
1169
+ let r = t.get(e.functionName);
1170
+ if (!r || r.length === 0) return {
1171
+ ...e,
1172
+ isServer: !0
1173
+ };
1174
+ let i = n.get(e.functionName) ?? 0, a = r[i % r.length];
1175
+ return n.set(e.functionName, i + 1), {
1176
+ ...e,
1177
+ isServer: !0,
1178
+ fileName: a.fileName,
1179
+ lineNumber: a.lineNumber,
1180
+ columnNumber: a.columnNumber,
1181
+ source: e.source?.replace(`(at Server)`, `(${a.fileName}:${a.lineNumber}:${a.columnNumber})`)
1182
+ };
1183
+ }, Oe = (e) => {
1184
+ let t = [];
1185
+ return j$1(e, (e) => {
1186
+ if (!Se(e)) return;
1187
+ let r = typeof e.type == `string` ? e.type : we$1(e.type) || `<anonymous>`;
1188
+ t.push({
1189
+ componentName: r,
1190
+ stackFrames: m(I(e._debugStack?.stack))
1191
+ });
1192
+ }, !0), t;
1193
+ }, L = async (e, t = !0, n) => {
1194
+ let r = Oe(e), i = m(F(e)), a = Ee(r), o = /* @__PURE__ */ new Map();
1195
+ return xe(i.map((e) => e.source?.includes(`(at Server)`) ?? !1 ? De(e, a, o) : e).filter((e, t, n) => {
1196
+ if (t === 0) return !0;
1197
+ let r = n[t - 1];
1198
+ return e.functionName !== r.functionName;
1199
+ }), t, n);
1200
+ }, R = (e) => {
1201
+ let t = e._debugSource;
1202
+ return t ? typeof t == `object` && !!t && `fileName` in t && typeof t.fileName == `string` && `lineNumber` in t && typeof t.lineNumber == `number` : !1;
1203
+ }, ke = async (e, t = !0, n) => {
1204
+ if (R(e)) return e._debugSource || null;
1205
+ let r = await L(e, t, n);
1206
+ for (let e of r) if (e.fileName) return {
1207
+ fileName: e.fileName,
1208
+ lineNumber: e.lineNumber,
1209
+ columnNumber: e.columnNumber,
1210
+ functionName: e.functionName
1211
+ };
1212
+ return null;
1213
+ }, z = (e) => e.split(`/`).filter(Boolean).length, Ae = (e) => e.split(`/`).filter(Boolean)[0] ?? null, je = (e) => {
1214
+ let t = e.indexOf(`/`, 1);
1215
+ if (t === -1 || z(e.slice(0, t)) !== 1) return e;
1216
+ let n = e.slice(t);
1217
+ if (!s.test(n) || z(n) < 2) return e;
1218
+ let r = Ae(n);
1219
+ return !r || r.startsWith(`@`) || r.length > 4 ? e : n;
1220
+ }, Me = (e) => {
1221
+ if (!e || o.some((t) => t === e)) return ``;
1222
+ let t = e, n = t.startsWith(`http://`) || t.startsWith(`https://`);
1223
+ if (n) try {
1224
+ t = new URL(t).pathname;
1225
+ } catch {}
1226
+ if (n && (t = je(t)), t.startsWith(`about://React/`)) {
1227
+ let e = t.slice(14), n = e.indexOf(`/`), r = e.indexOf(`:`);
1228
+ t = n !== -1 && (r === -1 || n < r) ? e.slice(n + 1) : e;
1229
+ }
1230
+ let r = !0;
1231
+ for (; r;) {
1232
+ r = !1;
1233
+ for (let e of a) if (t.startsWith(e)) {
1234
+ t = t.slice(e.length), e === `file:///` && (t = `/${t.replace(/^\/+/, ``)}`), r = !0;
1235
+ break;
1236
+ }
1237
+ }
1238
+ if (i.test(t)) {
1239
+ let e = t.match(i);
1240
+ e && (t = t.slice(e[0].length));
1241
+ }
1242
+ if (t.startsWith(`//`)) {
1243
+ let e = t.indexOf(`/`, 2);
1244
+ t = e === -1 ? `` : t.slice(e);
1245
+ }
1246
+ let s = t.indexOf(`?`);
1247
+ if (s !== -1) {
1248
+ let e = t.slice(s);
1249
+ l.test(e) && (t = t.slice(0, s));
1250
+ }
1251
+ return t;
1252
+ }, Ne = (e) => {
1253
+ let t = Me(e);
1254
+ return !(!t || !s.test(t) || c.test(t));
1255
+ }, Pe = (e, t) => {
1256
+ let n = e.split(`
1257
+ `), r = t - 1;
1258
+ if (r < 0 || r >= n.length) return null;
1259
+ let i = Math.max(0, r - 5), a = Math.min(n.length, r + 5), o = n.slice(i, a).join(`
1260
+ `), s = /(?:^|export\s+)(?:const|let|var)\s+(\w+)\s*=/m, c = /(?:^|export\s+)function\s+(\w+)/m, l = /(?:^|export\s+)class\s+(\w+)/m, u = o.match(s);
1261
+ if (u?.[1]) return u[1];
1262
+ let d = o.match(c);
1263
+ if (d?.[1]) return d[1];
1264
+ let f = o.match(l);
1265
+ return f?.[1] ? f[1] : null;
1266
+ }, Fe = async (e, t = !0, r) => {
1267
+ let i = (await L(e, t, r)).filter((e) => e.fileName)[0];
1268
+ if (!i?.fileName) return we$1(e.type);
1269
+ let a = await O(i.fileName, t, r);
1270
+ if (!a) return we$1(e.type);
1271
+ let o = null;
1272
+ if (typeof i.lineNumber == `number` && typeof i.columnNumber == `number` && (o = T(a, i.lineNumber, i.columnNumber)), !o?.fileName || !o.lineNumber || !a.sourcesContent) return we$1(e.type);
1273
+ let s = a.sources.indexOf(o.fileName);
1274
+ if (s === -1 || !a.sourcesContent[s]) return we$1(e.type);
1275
+ let c = a.sourcesContent[s];
1276
+ return Pe(c, o.lineNumber) || we$1(e.type);
1277
+ }, Ie = Symbol.for(`react.context`), Le = Symbol.for(`react.memo_cache_sentinel`);
1278
+ let B = [], V = null, H = null, U = null, W = null, G = 0, K = null;
1279
+ const q = Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render."), J = (e) => m(e.stack || ``, { includeInElement: !1 }), Y = () => {
1280
+ let e = U;
1281
+ return e !== null && (U = e.next), e;
1282
+ }, X = (e) => {
1283
+ if (H === null) return e._currentValue;
1284
+ if (W === null) throw Error(`Context reads do not line up with context dependencies.`);
1285
+ if (Object.prototype.hasOwnProperty.call(W, `memoizedValue`)) {
1286
+ let e = W.memoizedValue;
1287
+ return W = W.next, e;
1288
+ }
1289
+ return e._currentValue;
1290
+ }, Re = () => {
1291
+ let n = h$2(), r = [...d$2, ...n.renderers.values()];
1292
+ for (let e of r) {
1293
+ let t = e.currentDispatcherRef;
1294
+ if (t && typeof t == `object`) return t;
1295
+ }
1296
+ return null;
1297
+ }, ze = (e) => `H` in e ? e.H : e.current, Be = (e, t) => {
1298
+ `H` in e ? e.H = t : e.current = t;
1299
+ }, Z = (e, t, n, r = null) => {
1300
+ B.push({
1301
+ displayName: r,
1302
+ primitive: e,
1303
+ stackError: Error(),
1304
+ value: t,
1305
+ dispatcherHookName: n
1306
+ });
1307
+ }, Ve = (e) => {
1308
+ if (typeof e == `object` && e) {
1309
+ let t = e;
1310
+ if (typeof t.then == `function`) {
1311
+ let e = K !== null && G < K.length ? K[G++] : t;
1312
+ switch (e.status) {
1313
+ case `fulfilled`: return Z(`Promise`, e.value, `Use`), e.value;
1314
+ case `rejected`: throw e.reason;
1315
+ }
1316
+ throw Z(`Unresolved`, e, `Use`), q;
1317
+ }
1318
+ if (t.$$typeof === Ie && `_currentValue` in t) {
1319
+ let e = t, n = X(e);
1320
+ return Z(`Context (use)`, n, `Use`, e.displayName || `Context`), n;
1321
+ }
1322
+ }
1323
+ throw Error(`An unsupported type was passed to use(): ` + String(e));
1324
+ }, He = (e) => {
1325
+ let t = X(e);
1326
+ return Z(`Context`, t, `Context`, e.displayName || null), t;
1327
+ }, Ue = (e) => {
1328
+ let t = Y(), n = t === null ? typeof e == `function` ? e() : e : t.memoizedState;
1329
+ return Z(`State`, n, `State`), [n, () => {}];
1330
+ }, We = (e, t, n) => {
1331
+ let r = Y(), i = r === null ? n === void 0 ? t : n(t) : r.memoizedState;
1332
+ return Z(`Reducer`, i, `Reducer`), [i, () => {}];
1333
+ }, Ge = (e) => {
1334
+ let t = Y(), n = t === null ? { current: e } : t.memoizedState;
1335
+ return Z(`Ref`, n.current, `Ref`), n;
1336
+ }, Ke = () => {
1337
+ let e = Y();
1338
+ return Z(`CacheRefresh`, e === null ? () => {} : e.memoizedState, `CacheRefresh`), () => {};
1339
+ }, qe = (e) => {
1340
+ Y(), Z(`LayoutEffect`, e, `LayoutEffect`);
1341
+ }, Je = (e) => {
1342
+ Y(), Z(`InsertionEffect`, e, `InsertionEffect`);
1343
+ }, Ye = (e) => {
1344
+ Y(), Z(`Effect`, e, `Effect`);
1345
+ }, Xe = (e) => {
1346
+ Y();
1347
+ let t;
1348
+ typeof e == `object` && e && `current` in e && (t = e.current), Z(`ImperativeHandle`, t, `ImperativeHandle`);
1349
+ }, Ze = (e, t) => {
1350
+ Z(`DebugValue`, typeof t == `function` ? t(e) : e, `DebugValue`);
1351
+ }, Qe = (e) => {
1352
+ let t = Y();
1353
+ return Z(`Callback`, t === null ? e : t.memoizedState[0], `Callback`), e;
1354
+ }, $e = (e) => {
1355
+ let t = Y(), n = t === null ? e() : t.memoizedState[0];
1356
+ return Z(`Memo`, n, `Memo`), n;
1357
+ }, et = (e, t) => {
1358
+ let n = Y();
1359
+ Y();
1360
+ let r = n === null ? t() : n.memoizedState;
1361
+ return Z(`SyncExternalStore`, r, `SyncExternalStore`), r;
1362
+ }, tt = () => {
1363
+ let e = Y();
1364
+ Y();
1365
+ let t = e === null ? !1 : e.memoizedState;
1366
+ return Z(`Transition`, t, `Transition`), [t, () => {}];
1367
+ }, nt = (e) => {
1368
+ let t = Y(), n = t === null ? e : t.memoizedState;
1369
+ return Z(`DeferredValue`, n, `DeferredValue`), n;
1370
+ }, rt = () => {
1371
+ let e = Y(), t = e === null ? `` : e.memoizedState;
1372
+ return Z(`Id`, t, `Id`), t;
1373
+ }, it = (e) => {
1374
+ let t = H;
1375
+ if (t == null) return [];
1376
+ let n = t.updateQueue?.memoCache;
1377
+ if (n == null) return [];
1378
+ let r = n.data[n.index];
1379
+ return r === void 0 && (r = n.data[n.index] = Array.from({ length: e }, () => Le)), n.index++, r;
1380
+ }, at = (e) => {
1381
+ let t = Y(), n = t === null ? e : t.memoizedState;
1382
+ return Z(`Optimistic`, n, `Optimistic`), [n, () => {}];
1383
+ }, ot = (e, t) => {
1384
+ let n, r = null;
1385
+ if (e !== null) {
1386
+ let t = e.memoizedState;
1387
+ if (typeof t == `object` && t && `then` in t && typeof t.then == `function`) {
1388
+ let e = t;
1389
+ switch (e.status) {
1390
+ case `fulfilled`:
1391
+ n = e.value;
1392
+ break;
1393
+ case `rejected`:
1394
+ r = e.reason;
1395
+ break;
1396
+ default: r = q, n = e;
1397
+ }
1398
+ } else n = t;
1399
+ } else n = t;
1400
+ return {
1401
+ value: n,
1402
+ error: r
1403
+ };
1404
+ }, st = (e) => (t, n) => {
1405
+ let r = Y();
1406
+ Y(), Y();
1407
+ let i = Error(), { value: a, error: o } = ot(r, n);
1408
+ if (B.push({
1409
+ displayName: null,
1410
+ primitive: e,
1411
+ stackError: i,
1412
+ value: a,
1413
+ dispatcherHookName: e
1414
+ }), o !== null) throw o;
1415
+ return [
1416
+ a,
1417
+ () => {},
1418
+ !1
1419
+ ];
1420
+ }, ct = st(`ActionState`), Q = {
1421
+ readContext: X,
1422
+ use: Ve,
1423
+ useCallback: Qe,
1424
+ useContext: He,
1425
+ useEffect: Ye,
1426
+ useImperativeHandle: Xe,
1427
+ useLayoutEffect: qe,
1428
+ useInsertionEffect: Je,
1429
+ useMemo: $e,
1430
+ useReducer: We,
1431
+ useRef: Ge,
1432
+ useState: Ue,
1433
+ useDebugValue: Ze,
1434
+ useDeferredValue: nt,
1435
+ useTransition: tt,
1436
+ useSyncExternalStore: et,
1437
+ useId: rt,
1438
+ useHostTransitionStatus: () => {
1439
+ let e = X({ _currentValue: null });
1440
+ return Z(`HostTransitionStatus`, e, `HostTransitionStatus`), e;
1441
+ },
1442
+ useFormState: st(`FormState`),
1443
+ useActionState: ct,
1444
+ useOptimistic: at,
1445
+ useMemoCache: it,
1446
+ useCacheRefresh: Ke,
1447
+ useEffectEvent: (e) => (Y(), Z(`EffectEvent`, e, `EffectEvent`), e)
1448
+ }, lt = typeof Proxy > `u` ? Q : new Proxy(Q, { get(e, t) {
1449
+ if (Object.prototype.hasOwnProperty.call(e, t)) return e[t];
1450
+ let n = Error(`Missing method in Dispatcher: ` + t);
1451
+ throw n.name = `ReactDebugToolsUnsupportedHookError`, n;
1452
+ } }), ut = () => {
1453
+ if (V !== null) return V;
1454
+ let e = /* @__PURE__ */ new Map(), t;
1455
+ try {
1456
+ if (Q.useContext({ _currentValue: null }), Q.useState(null), Q.useReducer((e) => e, null), Q.useRef(null), typeof Q.useCacheRefresh == `function` && Q.useCacheRefresh(), Q.useLayoutEffect(() => {}), Q.useInsertionEffect(() => {}), Q.useEffect(() => {}), Q.useImperativeHandle(void 0, () => null), Q.useDebugValue(null), Q.useCallback(() => {}), Q.useTransition(), Q.useSyncExternalStore(() => () => {}, () => null, () => null), Q.useDeferredValue(null), Q.useMemo(() => null), Q.useOptimistic(null, (e) => e), Q.useFormState((e) => e, null), Q.useActionState((e) => e, null), Q.useHostTransitionStatus(), typeof Q.useMemoCache == `function` && Q.useMemoCache(0), typeof Q.use == `function`) {
1457
+ Q.use({
1458
+ $$typeof: Ie,
1459
+ _currentValue: null
1460
+ }), Q.use({
1461
+ then() {},
1462
+ status: `fulfilled`,
1463
+ value: null
1464
+ });
1465
+ try {
1466
+ Q.use({ then() {} });
1467
+ } catch {}
1468
+ }
1469
+ Q.useId(), typeof Q.useEffectEvent == `function` && Q.useEffectEvent(() => {});
1470
+ } finally {
1471
+ t = B, B = [];
1472
+ }
1473
+ for (let n of t) e.set(n.primitive, J(n.stackError));
1474
+ return V = e, V;
1475
+ };
1476
+
1477
+ //#endregion
1478
+ //#region ../../node_modules/.pnpm/bippy@0.5.39_react@19.2.6/node_modules/bippy/dist/install-hook-only.js
1479
+ /**
1480
+ * @license bippy
1481
+ *
1482
+ * Copyright (c) Aiden Bai
1483
+ *
1484
+ * This source code is licensed under the MIT license found in the
1485
+ * LICENSE file in the root directory of this source tree.
1486
+ */
1487
+ _$2();
1488
+
1489
+ //#endregion
1490
+ //#region ../../node_modules/.pnpm/bippy@0.5.39_react@19.2.6/node_modules/bippy/dist/index.js
1491
+ /**
1492
+ * @license bippy
1493
+ *
1494
+ * Copyright (c) Aiden Bai
1495
+ *
1496
+ * This source code is licensed under the MIT license found in the
1497
+ * LICENSE file in the root directory of this source tree.
1498
+ */
1499
+
1500
+ //#endregion
1501
+ //#region src/utils/truncate-string.ts
1502
+ const truncateString = (text, maxLength) => text.length > maxLength ? `${text.slice(0, maxLength)}...` : text;
1503
+
1504
+ //#endregion
1505
+ //#region src/utils/get-next-base-path.ts
1506
+ let cachedNextBasePath;
1507
+ const getNextBasePath = () => {
1508
+ if (cachedNextBasePath !== void 0) return cachedNextBasePath;
1509
+ const source = document.querySelector("script[src*=\"/_next/\"]")?.src;
1510
+ const pathname = source ? new URL(source).pathname : "";
1511
+ const assetPathIndex = pathname.indexOf("/_next/");
1512
+ cachedNextBasePath = assetPathIndex > 0 ? pathname.slice(0, assetPathIndex) : "";
1513
+ return cachedNextBasePath;
1514
+ };
1515
+
1516
+ //#endregion
1517
+ //#region src/utils/normalize-file-path.ts
1518
+ const BUNDLER_LAYER_PREFIX_REGEX = /^(?:\.\/)?\/?\([a-z][a-z0-9-]*\)\//;
1519
+ const normalizeFilePath = (fileName) => {
1520
+ let normalized = Me(fileName);
1521
+ normalized = normalized.replace(BUNDLER_LAYER_PREFIX_REGEX, "");
1522
+ if (normalized.startsWith("./")) normalized = normalized.slice(2);
1523
+ return normalized;
1524
+ };
1525
+
1526
+ //#endregion
1527
+ //#region src/utils/strip-internal-attributes.ts
1528
+ const INTERNAL_ATTRIBUTE_PATTERN = /\s+data-react-grab-[\w-]*(="[^"]*")?/g;
1529
+ const isInternalAttribute = (name) => name.startsWith("data-react-grab-");
1530
+ const stripInternalAttributes = (html) => html.replace(INTERNAL_ATTRIBUTE_PATTERN, "");
1531
+
1532
+ //#endregion
1533
+ //#region src/core/context.ts
1534
+ const NON_COMPONENT_PREFIXES = new Set([
1535
+ "_",
1536
+ "$",
1537
+ "motion.",
1538
+ "styled.",
1539
+ "chakra.",
1540
+ "ark.",
1541
+ "Primitive.",
1542
+ "Slot."
1543
+ ]);
1544
+ const NEXT_INTERNAL_COMPONENT_NAMES = new Set([
1545
+ "InnerLayoutRouter",
1546
+ "RedirectErrorBoundary",
1547
+ "RedirectBoundary",
1548
+ "HTTPAccessFallbackErrorBoundary",
1549
+ "HTTPAccessFallbackBoundary",
1550
+ "LoadingBoundary",
1551
+ "ErrorBoundary",
1552
+ "InnerScrollAndFocusHandler",
1553
+ "ScrollAndFocusHandler",
1554
+ "RenderFromTemplateContext",
1555
+ "OuterLayoutRouter",
1556
+ "body",
1557
+ "html",
1558
+ "DevRootHTTPAccessFallbackBoundary",
1559
+ "AppDevOverlayErrorBoundary",
1560
+ "AppDevOverlay",
1561
+ "HotReload",
1562
+ "Router",
1563
+ "ErrorBoundaryHandler",
1564
+ "AppRouter",
1565
+ "ServerRoot",
1566
+ "SegmentStateProvider",
1567
+ "RootErrorBoundary",
1568
+ "LoadableComponent",
1569
+ "MotionDOMComponent"
1570
+ ]);
1571
+ const REACT_INTERNAL_COMPONENT_NAMES = new Set([
1572
+ "Suspense",
1573
+ "Fragment",
1574
+ "StrictMode",
1575
+ "Profiler",
1576
+ "SuspenseList"
1577
+ ]);
1578
+ let cachedIsNextProject;
1579
+ const checkIsNextProject = (revalidate) => {
1580
+ if (revalidate) cachedIsNextProject = void 0;
1581
+ cachedIsNextProject ??= typeof document !== "undefined" && Boolean(document.getElementById("__NEXT_DATA__") || document.querySelector("nextjs-portal"));
1582
+ return cachedIsNextProject;
1583
+ };
1584
+ const isInternalComponentName = (name) => {
1585
+ if (NEXT_INTERNAL_COMPONENT_NAMES.has(name)) return true;
1586
+ if (REACT_INTERNAL_COMPONENT_NAMES.has(name)) return true;
1587
+ for (const prefix of NON_COMPONENT_PREFIXES) if (name.startsWith(prefix)) return true;
1588
+ return false;
1589
+ };
1590
+ const isUsefulComponentName = (name) => {
1591
+ if (!name) return false;
1592
+ if (isInternalComponentName(name)) return false;
1593
+ if (name === "SlotClone" || name === "Slot") return false;
1594
+ return true;
1595
+ };
1596
+ const isSourceComponentName = (name) => {
1597
+ if (name.length <= 1) return false;
1598
+ if (isInternalComponentName(name)) return false;
1599
+ if (name[0] !== name[0].toUpperCase()) return false;
1600
+ if (name.endsWith("Provider") || name.endsWith("Context")) return false;
1601
+ return true;
1602
+ };
1603
+ const SERVER_COMPONENT_URL_PREFIXES = ["about://React/", "rsc://React/"];
1604
+ const isServerComponentUrl = (url) => SERVER_COMPONENT_URL_PREFIXES.some((prefix) => url.startsWith(prefix));
1605
+ const devirtualizeServerUrl = (url) => {
1606
+ for (const prefix of SERVER_COMPONENT_URL_PREFIXES) {
1607
+ if (!url.startsWith(prefix)) continue;
1608
+ const environmentEndIndex = url.indexOf("/", prefix.length);
1609
+ const querySuffixIndex = url.lastIndexOf("?");
1610
+ if (environmentEndIndex > -1 && querySuffixIndex > -1) return decodeURI(url.slice(environmentEndIndex + 1, querySuffixIndex));
1611
+ }
1612
+ return url;
1613
+ };
1614
+ const symbolicateServerFrames = async (frames) => {
1615
+ const serverFrameIndices = [];
1616
+ const requestFrames = [];
1617
+ for (let frameIndex = 0; frameIndex < frames.length; frameIndex++) {
1618
+ const frame = frames[frameIndex];
1619
+ if (!frame.isServer || !frame.fileName) continue;
1620
+ serverFrameIndices.push(frameIndex);
1621
+ requestFrames.push({
1622
+ file: devirtualizeServerUrl(frame.fileName),
1623
+ methodName: frame.functionName ?? "<unknown>",
1624
+ line1: frame.lineNumber ?? null,
1625
+ column1: frame.columnNumber ?? null,
1626
+ arguments: []
1627
+ });
1628
+ }
1629
+ if (requestFrames.length === 0) return frames;
1630
+ const controller = new AbortController();
1631
+ const timeout = setTimeout(() => controller.abort(), SYMBOLICATION_TIMEOUT_MS);
1632
+ try {
1633
+ const response = await fetch(`${getNextBasePath()}/__nextjs_original-stack-frames`, {
1634
+ method: "POST",
1635
+ headers: { "Content-Type": "application/json" },
1636
+ body: JSON.stringify({
1637
+ frames: requestFrames,
1638
+ isServer: true,
1639
+ isEdgeServer: false,
1640
+ isAppDirectory: true
1641
+ }),
1642
+ signal: controller.signal
1643
+ });
1644
+ if (!response.ok) return frames;
1645
+ const results = await response.json();
1646
+ const resolvedFrames = [...frames];
1647
+ for (let resultIndex = 0; resultIndex < serverFrameIndices.length; resultIndex++) {
1648
+ const result = results[resultIndex];
1649
+ if (result?.status !== "fulfilled") continue;
1650
+ const resolved = result.value?.originalStackFrame;
1651
+ if (!resolved?.file || resolved.ignored) continue;
1652
+ const originalFrameIndex = serverFrameIndices[resultIndex];
1653
+ resolvedFrames[originalFrameIndex] = {
1654
+ ...frames[originalFrameIndex],
1655
+ fileName: resolved.file,
1656
+ lineNumber: resolved.line1 ?? void 0,
1657
+ columnNumber: resolved.column1 ?? void 0,
1658
+ isSymbolicated: true
1659
+ };
1660
+ }
1661
+ return resolvedFrames;
1662
+ } catch {
1663
+ return frames;
1664
+ } finally {
1665
+ clearTimeout(timeout);
1666
+ }
1667
+ };
1668
+ const extractServerFramesFromDebugStack = (rootFiber) => {
1669
+ const serverFramesByName = /* @__PURE__ */ new Map();
1670
+ j$1(rootFiber, (currentFiber) => {
1671
+ if (!Se(currentFiber)) return false;
1672
+ const ownerStack = I(currentFiber._debugStack.stack);
1673
+ if (!ownerStack) return false;
1674
+ for (const frame of m(ownerStack)) {
1675
+ if (!frame.functionName || !frame.fileName) continue;
1676
+ if (!isServerComponentUrl(frame.fileName)) continue;
1677
+ if (serverFramesByName.has(frame.functionName)) continue;
1678
+ serverFramesByName.set(frame.functionName, {
1679
+ ...frame,
1680
+ isServer: true
1681
+ });
1682
+ }
1683
+ return false;
1684
+ }, true);
1685
+ return serverFramesByName;
1686
+ };
1687
+ const enrichServerFrameLocations = (rootFiber, frames) => {
1688
+ if (!frames.some((frame) => frame.isServer && !frame.fileName && frame.functionName)) return frames;
1689
+ const serverFramesByName = extractServerFramesFromDebugStack(rootFiber);
1690
+ if (serverFramesByName.size === 0) return frames;
1691
+ return frames.map((frame) => {
1692
+ if (!frame.isServer || frame.fileName || !frame.functionName) return frame;
1693
+ const resolved = serverFramesByName.get(frame.functionName);
1694
+ if (!resolved) return frame;
1695
+ return {
1696
+ ...frame,
1697
+ fileName: resolved.fileName,
1698
+ lineNumber: resolved.lineNumber,
1699
+ columnNumber: resolved.columnNumber
1700
+ };
1701
+ });
1702
+ };
1703
+ const findNearestFiberElement = (element) => {
1704
+ if (!Te$1()) return element;
1705
+ let current = element;
1706
+ while (current) {
1707
+ if (Z$1(current)) return current;
1708
+ current = current.parentElement;
1709
+ }
1710
+ return element;
1711
+ };
1712
+ const stackCache = /* @__PURE__ */ new WeakMap();
1713
+ const fetchStackForElement = async (element) => {
1714
+ try {
1715
+ const fiber = Z$1(element);
1716
+ if (!fiber) return null;
1717
+ const frames = await L(fiber);
1718
+ if (checkIsNextProject()) return await symbolicateServerFrames(enrichServerFrameLocations(fiber, frames));
1719
+ return frames;
1720
+ } catch {
1721
+ return null;
1722
+ }
1723
+ };
1724
+ const getStack = (element) => {
1725
+ if (!Te$1()) return Promise.resolve([]);
1726
+ const resolvedElement = findNearestFiberElement(element);
1727
+ const cached = stackCache.get(resolvedElement);
1728
+ if (cached) return cached;
1729
+ const promise = fetchStackForElement(resolvedElement);
1730
+ stackCache.set(resolvedElement, promise);
1731
+ return promise;
1732
+ };
1733
+ const getNearestComponentName = async (element) => {
1734
+ if (!Te$1()) return null;
1735
+ const stack = await getStack(element);
1736
+ if (!stack) return null;
1737
+ for (const frame of stack) if (frame.functionName && isSourceComponentName(frame.functionName)) return frame.functionName;
1738
+ return null;
1739
+ };
1740
+ const resolveSource = async (element) => {
1741
+ const stack = await getStack(findNearestFiberElement(element));
1742
+ if (!stack || stack.length === 0) return null;
1743
+ const sourceFrames = stack.filter((frame) => frame.fileName && Ne(frame.fileName));
1744
+ const resolvedFrame = sourceFrames.find((frame) => frame.functionName && isSourceComponentName(frame.functionName)) ?? sourceFrames[0];
1745
+ if (!resolvedFrame?.fileName) return null;
1746
+ return {
1747
+ filePath: normalizeFilePath(resolvedFrame.fileName),
1748
+ lineNumber: resolvedFrame.lineNumber ?? null,
1749
+ columnNumber: resolvedFrame.columnNumber ?? null,
1750
+ componentName: resolvedFrame.functionName && isSourceComponentName(resolvedFrame.functionName) ? resolvedFrame.functionName : null
1751
+ };
1752
+ };
1753
+ const getComponentDisplayName = (element) => {
1754
+ if (!Te$1()) return null;
1755
+ const fiber = Z$1(findNearestFiberElement(element));
1756
+ if (!fiber) return null;
1757
+ let currentFiber = fiber.return;
1758
+ while (currentFiber) {
1759
+ if (ve$1(currentFiber)) {
1760
+ const name = we$1(currentFiber.type);
1761
+ if (name && isUsefulComponentName(name)) return name;
1762
+ }
1763
+ currentFiber = currentFiber.return;
1764
+ }
1765
+ return null;
1766
+ };
1767
+ const hasFormattableFrames = (stack) => {
1768
+ if (!stack) return false;
1769
+ return stack.some((frame) => {
1770
+ if (frame.fileName && Ne(frame.fileName)) return true;
1771
+ if (frame.isServer && (!frame.functionName || isSourceComponentName(frame.functionName))) return true;
1772
+ return false;
1773
+ });
1774
+ };
1775
+ const getComponentNamesFromFiber = (element, maxCount) => {
1776
+ if (!Te$1()) return [];
1777
+ const fiber = Z$1(element);
1778
+ if (!fiber) return [];
1779
+ const componentNames = [];
1780
+ j$1(fiber, (currentFiber) => {
1781
+ if (componentNames.length >= maxCount) return true;
1782
+ if (ve$1(currentFiber)) {
1783
+ const name = we$1(currentFiber.type);
1784
+ if (name && isUsefulComponentName(name)) componentNames.push(name);
1785
+ }
1786
+ return false;
1787
+ }, true);
1788
+ return componentNames;
1789
+ };
1790
+ const formatStackContext = (stack, options = {}) => {
1791
+ const { maxLines = 3 } = options;
1792
+ const isNextProject = checkIsNextProject();
1793
+ const formattedLines = [];
1794
+ for (const frame of stack) {
1795
+ if (formattedLines.length >= maxLines) break;
1796
+ const hasResolvedSource = frame.fileName && Ne(frame.fileName);
1797
+ if (frame.isServer && !hasResolvedSource && (!frame.functionName || isSourceComponentName(frame.functionName))) {
1798
+ formattedLines.push(`\n in ${frame.functionName || "<anonymous>"} (at Server)`);
1799
+ continue;
1800
+ }
1801
+ if (hasResolvedSource) {
1802
+ let line = "\n in ";
1803
+ const hasComponentName = frame.functionName && isSourceComponentName(frame.functionName);
1804
+ if (hasComponentName) line += `${frame.functionName} (at `;
1805
+ line += normalizeFilePath(frame.fileName);
1806
+ if (isNextProject && frame.lineNumber) {
1807
+ line += `:${frame.lineNumber}`;
1808
+ if (frame.columnNumber) line += `:${frame.columnNumber}`;
1809
+ }
1810
+ if (hasComponentName) line += `)`;
1811
+ formattedLines.push(line);
1812
+ }
1813
+ }
1814
+ return formattedLines.join("");
1815
+ };
1816
+ const getStackContext = async (element, options = {}) => {
1817
+ const maxLines = options.maxLines ?? 3;
1818
+ const stack = await getStack(element);
1819
+ if (stack && hasFormattableFrames(stack)) return formatStackContext(stack, options);
1820
+ const componentNames = getComponentNamesFromFiber(element, maxLines);
1821
+ if (componentNames.length > 0) return componentNames.map((name) => `\n in ${name}`).join("");
1822
+ return "";
1823
+ };
1824
+ const getElementContext = async (element, options = {}) => {
1825
+ const resolvedElement = findNearestFiberElement(element);
1826
+ const html = getHTMLPreview(resolvedElement);
1827
+ const stackContext = await getStackContext(resolvedElement, options);
1828
+ if (stackContext) return `${html}${stackContext}`;
1829
+ return getFallbackContext(resolvedElement);
1830
+ };
1831
+ const getFallbackContext = (element) => {
1832
+ const tagName = getTagName(element);
1833
+ if (!(element instanceof HTMLElement)) return `<${tagName}${formatPriorityAttrs(element, {
1834
+ truncate: false,
1835
+ maxAttrs: PREVIEW_PRIORITY_ATTRS.length
1836
+ })} />`;
1837
+ const text = element.innerText?.trim() ?? element.textContent?.trim() ?? "";
1838
+ let attrsText = "";
1839
+ for (const { name, value } of element.attributes) {
1840
+ if (isInternalAttribute(name)) continue;
1841
+ attrsText += ` ${name}="${value}"`;
1842
+ }
1843
+ const truncatedText = truncateString(text, 100);
1844
+ if (truncatedText.length > 0) return `<${tagName}${attrsText}>\n ${truncatedText}\n</${tagName}>`;
1845
+ return `<${tagName}${attrsText} />`;
1846
+ };
1847
+ const truncateAttrValue = (value) => truncateString(value, 15);
1848
+ const formatPriorityAttrs = (element, options = {}) => {
1849
+ const { truncate = true, maxAttrs = 3 } = options;
1850
+ const priorityAttrs = [];
1851
+ for (const name of PREVIEW_PRIORITY_ATTRS) {
1852
+ if (priorityAttrs.length >= maxAttrs) break;
1853
+ const value = element.getAttribute(name);
1854
+ if (value) {
1855
+ const formattedValue = truncate ? truncateAttrValue(value) : value;
1856
+ priorityAttrs.push(`${name}="${formattedValue}"`);
1857
+ }
1858
+ }
1859
+ return priorityAttrs.length > 0 ? ` ${priorityAttrs.join(" ")}` : "";
1860
+ };
1861
+ const getHTMLPreview = (element) => {
1862
+ const tagName = getTagName(element);
1863
+ const text = element instanceof HTMLElement ? element.innerText?.trim() ?? element.textContent?.trim() ?? "" : element.textContent?.trim() ?? "";
1864
+ let attrsText = "";
1865
+ for (const { name, value } of element.attributes) {
1866
+ if (isInternalAttribute(name)) continue;
1867
+ attrsText += ` ${name}="${truncateAttrValue(value)}"`;
1868
+ }
1869
+ const topElements = [];
1870
+ const bottomElements = [];
1871
+ let foundFirstText = false;
1872
+ const childNodes = Array.from(element.childNodes);
1873
+ for (const node of childNodes) {
1874
+ if (node.nodeType === Node.COMMENT_NODE) continue;
1875
+ if (node.nodeType === Node.TEXT_NODE) {
1876
+ if (node.textContent && node.textContent.trim().length > 0) foundFirstText = true;
1877
+ } else if (node instanceof Element) if (!foundFirstText) topElements.push(node);
1878
+ else bottomElements.push(node);
1879
+ }
1880
+ const formatElements = (elements) => {
1881
+ if (elements.length === 0) return "";
1882
+ if (elements.length <= 2) return elements.map((childElement) => `<${getTagName(childElement)} ...>`).join("\n ");
1883
+ return `(${elements.length} elements)`;
1884
+ };
1885
+ let content = "";
1886
+ const topElementsStr = formatElements(topElements);
1887
+ if (topElementsStr) content += `\n ${topElementsStr}`;
1888
+ if (text.length > 0) content += `\n ${truncateString(text, 100)}`;
1889
+ const bottomElementsStr = formatElements(bottomElements);
1890
+ if (bottomElementsStr) content += `\n ${bottomElementsStr}`;
1891
+ if (content.length > 0) return `<${tagName}${attrsText}>${content}\n</${tagName}>`;
1892
+ return `<${tagName}${attrsText} />`;
1893
+ };
1894
+
1895
+ //#endregion
1896
+ //#region src/utils/is-element-visible.ts
1897
+ const isElementVisible = (element, computedStyle = window.getComputedStyle(element)) => {
1898
+ return computedStyle.display !== "none" && computedStyle.visibility !== "hidden" && computedStyle.opacity !== "0";
1899
+ };
1900
+
1901
+ //#endregion
1902
+ //#region src/utils/is-root-element.ts
1903
+ const isRootElement = (element) => {
1904
+ const tagName = getTagName(element);
1905
+ return tagName === "html" || tagName === "body";
1906
+ };
1907
+
1908
+ //#endregion
1909
+ //#region src/utils/is-valid-grabbable-element.ts
1910
+ const isReactGrabElement = (element) => {
1911
+ if (element.hasAttribute("data-react-grab")) return true;
1912
+ const rootNode = element.getRootNode();
1913
+ return rootNode instanceof ShadowRoot && rootNode.host.hasAttribute("data-react-grab");
1914
+ };
1915
+ const isUserIgnoredElement = (element) => element.hasAttribute("data-react-grab-ignore") || element.closest(`[${"data-react-grab-ignore"}]`) !== null;
1916
+ const isDevToolsOverlay = (computedStyle) => {
1917
+ const zIndex = parseInt(computedStyle.zIndex, 10);
1918
+ return computedStyle.pointerEvents === "none" && computedStyle.position === "fixed" && !isNaN(zIndex) && zIndex >= 2147483600;
1919
+ };
1920
+ const hasTransparentBackground = (computedStyle) => {
1921
+ const backgroundColor = computedStyle.backgroundColor;
1922
+ return backgroundColor === "transparent" || backgroundColor === "rgba(0, 0, 0, 0)";
1923
+ };
1924
+ const isFullViewportOverlay = (computedStyle) => {
1925
+ const position = computedStyle.position;
1926
+ if (position !== "fixed" && position !== "absolute") return false;
1927
+ if (hasTransparentBackground(computedStyle) || parseFloat(computedStyle.opacity) < .1) return true;
1928
+ const zIndex = parseInt(computedStyle.zIndex, 10);
1929
+ return !isNaN(zIndex) && zIndex > 1e3;
1930
+ };
1931
+ let visibilityCache = /* @__PURE__ */ new WeakMap();
1932
+ const clearVisibilityCache = () => {
1933
+ visibilityCache = /* @__PURE__ */ new WeakMap();
1934
+ };
1935
+ const isValidGrabbableElement = (element) => {
1936
+ if (isRootElement(element)) return false;
1937
+ if (isReactGrabElement(element)) return false;
1938
+ if (isUserIgnoredElement(element)) return false;
1939
+ const now = performance.now();
1940
+ const cached = visibilityCache.get(element);
1941
+ if (cached && now - cached.timestamp < 50) return cached.isVisible;
1942
+ const computedStyle = window.getComputedStyle(element);
1943
+ if (!isElementVisible(element, computedStyle)) {
1944
+ visibilityCache.set(element, {
1945
+ isVisible: false,
1946
+ timestamp: now
1947
+ });
1948
+ return false;
1949
+ }
1950
+ if (element.clientWidth / window.innerWidth >= .9 && element.clientHeight / window.innerHeight >= .9) {
1951
+ if (isDevToolsOverlay(computedStyle)) return false;
1952
+ if (isFullViewportOverlay(computedStyle)) return false;
1953
+ }
1954
+ visibilityCache.set(element, {
1955
+ isVisible: true,
1956
+ timestamp: now
1957
+ });
1958
+ return true;
1959
+ };
1960
+
1961
+ //#endregion
1962
+ //#region src/utils/create-style-element.ts
1963
+ const createStyleElement = (attribute, content) => {
1964
+ const element = document.createElement("style");
1965
+ element.setAttribute(attribute, "");
1966
+ const nonce = detectCspNonce();
1967
+ if (nonce) element.nonce = nonce;
1968
+ hideFromThirdParties(element);
1969
+ element.textContent = content;
1970
+ document.head.appendChild(element);
1971
+ return element;
1972
+ };
1973
+
1974
+ //#endregion
1975
+ //#region src/utils/pointer-events-freeze.ts
1976
+ const POINTER_EVENTS_STYLES = "html { pointer-events: none !important; }";
1977
+ let pointerEventsStyle = null;
1978
+ const isPointerEventsFreezeInstalled = () => pointerEventsStyle !== null;
1979
+ const installPointerEventsFreeze = () => {
1980
+ if (pointerEventsStyle) return;
1981
+ pointerEventsStyle = createStyleElement("data-react-grab-frozen-pseudo", POINTER_EVENTS_STYLES);
1982
+ };
1983
+ const uninstallPointerEventsFreeze = () => {
1984
+ pointerEventsStyle?.remove();
1985
+ pointerEventsStyle = null;
1986
+ };
1987
+ const suspendPointerEventsFreeze = () => {
1988
+ if (pointerEventsStyle) pointerEventsStyle.disabled = true;
1989
+ };
1990
+ const resumePointerEventsFreeze = () => {
1991
+ if (pointerEventsStyle) pointerEventsStyle.disabled = false;
1992
+ };
1993
+
1994
+ //#endregion
1995
+ //#region src/utils/get-element-at-position.ts
1996
+ let cache = null;
1997
+ let hoveredIframe = null;
1998
+ let resumeTimerId = null;
1999
+ const isPointInsideRect = (clientX, clientY, rect) => clientX >= rect.left && clientX <= rect.right && clientY >= rect.top && clientY <= rect.bottom;
2000
+ const scheduleResume = () => {
2001
+ if (resumeTimerId !== null) clearTimeout(resumeTimerId);
2002
+ resumeTimerId = setTimeout(() => {
2003
+ resumeTimerId = null;
2004
+ resumePointerEventsFreeze();
2005
+ }, 100);
2006
+ };
2007
+ const cancelScheduledResume = () => {
2008
+ if (resumeTimerId !== null) {
2009
+ clearTimeout(resumeTimerId);
2010
+ resumeTimerId = null;
2011
+ }
2012
+ };
2013
+ const isWithinThreshold = (x1, y1, x2, y2) => {
2014
+ const deltaX = Math.abs(x1 - x2);
2015
+ const deltaY = Math.abs(y1 - y2);
2016
+ return deltaX <= 2 && deltaY <= 2;
2017
+ };
2018
+ const getElementsAtPoint = (clientX, clientY) => {
2019
+ if (!Number.isFinite(clientX) || !Number.isFinite(clientY)) return [];
2020
+ cancelScheduledResume();
2021
+ suspendPointerEventsFreeze();
2022
+ const elements = document.elementsFromPoint(clientX, clientY);
2023
+ scheduleResume();
2024
+ return elements;
2025
+ };
2026
+ const getElementAtPosition = (clientX, clientY) => {
2027
+ if (!Number.isFinite(clientX) || !Number.isFinite(clientY)) return null;
2028
+ const now = performance.now();
2029
+ if (hoveredIframe && isPointInsideRect(clientX, clientY, hoveredIframe.rect)) return hoveredIframe.element;
2030
+ if (cache) {
2031
+ const isPositionClose = isWithinThreshold(clientX, clientY, cache.clientX, cache.clientY);
2032
+ const isWithinThrottle = now - cache.timestamp < 16;
2033
+ if (isPositionClose || isWithinThrottle) return cache.element;
2034
+ }
2035
+ cancelScheduledResume();
2036
+ suspendPointerEventsFreeze();
2037
+ let result = null;
2038
+ const topElement = document.elementFromPoint(clientX, clientY);
2039
+ if (topElement && isValidGrabbableElement(topElement)) result = topElement;
2040
+ else {
2041
+ const elementsAtPoint = document.elementsFromPoint(clientX, clientY);
2042
+ for (const candidateElement of elementsAtPoint) if (candidateElement !== topElement && isValidGrabbableElement(candidateElement)) {
2043
+ result = candidateElement;
2044
+ break;
2045
+ }
2046
+ }
2047
+ scheduleResume();
2048
+ hoveredIframe = result instanceof HTMLIFrameElement ? {
2049
+ element: result,
2050
+ rect: result.getBoundingClientRect()
2051
+ } : null;
2052
+ cache = {
2053
+ clientX,
2054
+ clientY,
2055
+ element: result,
2056
+ timestamp: now
2057
+ };
2058
+ return result;
2059
+ };
2060
+ const clearElementPositionCache = () => {
2061
+ cancelScheduledResume();
2062
+ resumePointerEventsFreeze();
2063
+ cache = null;
2064
+ hoveredIframe = null;
2065
+ };
2066
+
2067
+ //#endregion
2068
+ //#region src/utils/open-file.ts
2069
+ const OPEN_FILE_BASE_URL = "http://localhost:3000";
2070
+ const tryDevServerOpen = async (filePath, lineNumber) => {
2071
+ const isNextProject = checkIsNextProject();
2072
+ const params = new URLSearchParams({ file: filePath });
2073
+ const lineKey = isNextProject ? "line1" : "line";
2074
+ const columnKey = isNextProject ? "column1" : "column";
2075
+ if (lineNumber) params.set(lineKey, String(lineNumber));
2076
+ params.set(columnKey, "1");
2077
+ const endpoint = isNextProject ? `${getNextBasePath()}/__nextjs_launch-editor` : "/__open-in-editor";
2078
+ return (await fetch(`${endpoint}?${params}`)).ok;
2079
+ };
2080
+ const openFile = async (filePath, lineNumber, transformUrl) => {
2081
+ filePath = normalizeFilePath(filePath);
2082
+ if (await tryDevServerOpen(filePath, lineNumber).catch(() => false)) return;
2083
+ const lineParam = lineNumber ? `&line=${lineNumber}` : "";
2084
+ const rawUrl = `${OPEN_FILE_BASE_URL}/open-file?url=${encodeURIComponent(filePath)}${lineParam}`;
2085
+ const url = transformUrl ? transformUrl(rawUrl, filePath, lineNumber) : rawUrl;
2086
+ window.open(url, "_blank", "noopener,noreferrer");
2087
+ };
2088
+
2089
+ //#endregion
2090
+ //#region src/utils/freeze-gsap.ts
2091
+ let isRafFrozen = false;
2092
+ const pendingRafCallbacks = /* @__PURE__ */ new Map();
2093
+ let nextFakeRafId = -1;
2094
+ const knownAnimationCallbacks = /* @__PURE__ */ new WeakSet();
2095
+ const nativeIdToHeldId = /* @__PURE__ */ new Map();
2096
+ const replayedFakeToNativeId = /* @__PURE__ */ new Map();
2097
+ const isAnimationLibraryCallback = (callback) => {
2098
+ if (knownAnimationCallbacks.has(callback)) return true;
2099
+ if (!isRafFrozen || !("gsapVersions" in window)) return false;
2100
+ if (!((/* @__PURE__ */ new Error()).stack ?? "").includes("_tick")) return false;
2101
+ knownAnimationCallbacks.add(callback);
2102
+ return true;
2103
+ };
2104
+ if (typeof window !== "undefined") {
2105
+ window.requestAnimationFrame = (callback) => {
2106
+ if (!isAnimationLibraryCallback(callback)) return nativeRequestAnimationFrame(callback);
2107
+ if (isRafFrozen) {
2108
+ const identifier = nextFakeRafId--;
2109
+ pendingRafCallbacks.set(identifier, callback);
2110
+ return identifier;
2111
+ }
2112
+ const nativeId = nativeRequestAnimationFrame((timestamp) => {
2113
+ if (isRafFrozen) {
2114
+ const identifier = nextFakeRafId--;
2115
+ pendingRafCallbacks.set(identifier, callback);
2116
+ nativeIdToHeldId.set(nativeId, identifier);
2117
+ return;
2118
+ }
2119
+ callback(timestamp);
2120
+ });
2121
+ return nativeId;
2122
+ };
2123
+ window.cancelAnimationFrame = (identifier) => {
2124
+ if (pendingRafCallbacks.has(identifier)) {
2125
+ pendingRafCallbacks.delete(identifier);
2126
+ return;
2127
+ }
2128
+ const replayed = replayedFakeToNativeId.get(identifier);
2129
+ if (replayed !== void 0) {
2130
+ nativeCancelAnimationFrame(replayed.nativeId);
2131
+ replayedFakeToNativeId.delete(identifier);
2132
+ return;
2133
+ }
2134
+ const heldId = nativeIdToHeldId.get(identifier);
2135
+ if (heldId !== void 0) {
2136
+ pendingRafCallbacks.delete(heldId);
2137
+ nativeIdToHeldId.delete(identifier);
2138
+ return;
2139
+ }
2140
+ nativeCancelAnimationFrame(identifier);
2141
+ };
2142
+ }
2143
+ const freezeGsap = () => {
2144
+ if (isRafFrozen) return;
2145
+ isRafFrozen = true;
2146
+ pendingRafCallbacks.clear();
2147
+ nativeIdToHeldId.clear();
2148
+ for (const [fakeId, { nativeId, callback }] of replayedFakeToNativeId) {
2149
+ nativeCancelAnimationFrame(nativeId);
2150
+ pendingRafCallbacks.set(fakeId, callback);
2151
+ }
2152
+ replayedFakeToNativeId.clear();
2153
+ };
2154
+ const unfreezeGsap = () => {
2155
+ if (!isRafFrozen) return;
2156
+ isRafFrozen = false;
2157
+ for (const [fakeId, callback] of pendingRafCallbacks.entries()) {
2158
+ const nativeId = nativeRequestAnimationFrame((timestamp) => {
2159
+ replayedFakeToNativeId.delete(fakeId);
2160
+ callback(timestamp);
2161
+ });
2162
+ replayedFakeToNativeId.set(fakeId, {
2163
+ nativeId,
2164
+ callback
2165
+ });
2166
+ }
2167
+ pendingRafCallbacks.clear();
2168
+ nativeIdToHeldId.clear();
2169
+ };
2170
+
2171
+ //#endregion
2172
+ //#region src/utils/freeze-animations.ts
2173
+ const FROZEN_STYLES = `
2174
+ [${FROZEN_ELEMENT_ATTRIBUTE}],
2175
+ [${FROZEN_ELEMENT_ATTRIBUTE}] * {
2176
+ animation-play-state: paused !important;
2177
+ transition: none !important;
2178
+ }
2179
+ `;
2180
+ const GLOBAL_FREEZE_STYLES = `
2181
+ *, *::before, *::after {
2182
+ animation-play-state: paused !important;
2183
+ transition: none !important;
2184
+ }
2185
+ `;
2186
+ const SVG_ROOT_SELECTOR = "svg";
2187
+ let styleElement = null;
2188
+ let frozenElements = [];
2189
+ let frozenSvgElements = [];
2190
+ let lastInputElements = [];
2191
+ let globalAnimationStyleElement = null;
2192
+ let globalFrozenSvgElements = [];
2193
+ const svgFreezeDepthMap = /* @__PURE__ */ new Map();
2194
+ let frozenWaapiAnimations = [];
2195
+ const ensureStylesInjected = () => {
2196
+ if (styleElement) return;
2197
+ styleElement = createStyleElement("data-react-grab-frozen-styles", FROZEN_STYLES);
2198
+ };
2199
+ const areElementsSame = (firstElements, secondElements) => firstElements.length === secondElements.length && firstElements.every((currentElement, index) => currentElement === secondElements[index]);
2200
+ const collectFrozenSvgElements = (elements) => {
2201
+ const svgElements = /* @__PURE__ */ new Set();
2202
+ for (const element of elements) {
2203
+ if (element instanceof SVGSVGElement) svgElements.add(element);
2204
+ else if (element instanceof SVGElement && element.ownerSVGElement) svgElements.add(element.ownerSVGElement);
2205
+ for (const innerSvgElement of element.querySelectorAll(SVG_ROOT_SELECTOR)) if (innerSvgElement instanceof SVGSVGElement) svgElements.add(innerSvgElement);
2206
+ }
2207
+ return [...svgElements];
2208
+ };
2209
+ const callSvgAnimationMethod = (svgElement, methodName) => {
2210
+ const animationMethod = Reflect.get(svgElement, methodName);
2211
+ if (typeof animationMethod !== "function") return;
2212
+ animationMethod.call(svgElement);
2213
+ };
2214
+ const pauseSvgAnimations = (svgElements) => {
2215
+ for (const svgElement of svgElements) {
2216
+ const currentFreezeDepth = svgFreezeDepthMap.get(svgElement) ?? 0;
2217
+ if (currentFreezeDepth === 0) callSvgAnimationMethod(svgElement, "pauseAnimations");
2218
+ svgFreezeDepthMap.set(svgElement, currentFreezeDepth + 1);
2219
+ }
2220
+ };
2221
+ const resumeSvgAnimations = (svgElements) => {
2222
+ for (const svgElement of svgElements) {
2223
+ const currentFreezeDepth = svgFreezeDepthMap.get(svgElement);
2224
+ if (!currentFreezeDepth) continue;
2225
+ if (currentFreezeDepth === 1) {
2226
+ svgFreezeDepthMap.delete(svgElement);
2227
+ callSvgAnimationMethod(svgElement, "unpauseAnimations");
2228
+ continue;
2229
+ }
2230
+ svgFreezeDepthMap.set(svgElement, currentFreezeDepth - 1);
2231
+ }
2232
+ };
2233
+ const collectWaapiAnimations = (elements) => {
2234
+ const animations = [];
2235
+ for (const element of elements) for (const animation of element.getAnimations({ subtree: true })) if (animation.playState === "running") animations.push(animation);
2236
+ return animations;
2237
+ };
2238
+ const finishAnimations = (animations) => {
2239
+ for (const animation of animations) try {
2240
+ animation.finish();
2241
+ } catch {}
2242
+ };
2243
+ const freezeAllAnimations = (elements) => {
2244
+ if (elements.length === 0) return;
2245
+ if (areElementsSame(elements, lastInputElements)) return;
2246
+ unfreezeAllAnimations();
2247
+ lastInputElements = [...elements];
2248
+ ensureStylesInjected();
2249
+ frozenElements = elements;
2250
+ frozenSvgElements = collectFrozenSvgElements(frozenElements);
2251
+ pauseSvgAnimations(frozenSvgElements);
2252
+ for (const element of frozenElements) element.setAttribute(FROZEN_ELEMENT_ATTRIBUTE, "");
2253
+ frozenWaapiAnimations = collectWaapiAnimations(frozenElements);
2254
+ for (const animation of frozenWaapiAnimations) animation.pause();
2255
+ };
2256
+ const unfreezeAllAnimations = () => {
2257
+ if (frozenElements.length === 0 && frozenSvgElements.length === 0 && frozenWaapiAnimations.length === 0) return;
2258
+ for (const element of frozenElements) element.removeAttribute(FROZEN_ELEMENT_ATTRIBUTE);
2259
+ resumeSvgAnimations(frozenSvgElements);
2260
+ finishAnimations(frozenWaapiAnimations);
2261
+ frozenElements = [];
2262
+ frozenSvgElements = [];
2263
+ frozenWaapiAnimations = [];
2264
+ lastInputElements = [];
2265
+ };
2266
+ const freezeAnimations = (elements) => {
2267
+ if (elements.length === 0) {
2268
+ unfreezeAllAnimations();
2269
+ return () => {};
2270
+ }
2271
+ freezeAllAnimations(elements);
2272
+ return unfreezeAllAnimations;
2273
+ };
2274
+ const freezeGlobalAnimations = () => {
2275
+ if (globalAnimationStyleElement) return;
2276
+ globalAnimationStyleElement = createStyleElement("data-react-grab-global-freeze", GLOBAL_FREEZE_STYLES);
2277
+ globalFrozenSvgElements = collectFrozenSvgElements(Array.from(document.querySelectorAll(SVG_ROOT_SELECTOR)));
2278
+ pauseSvgAnimations(globalFrozenSvgElements);
2279
+ freezeGsap();
2280
+ };
2281
+ const unfreezeGlobalAnimations = () => {
2282
+ if (!globalAnimationStyleElement) return;
2283
+ globalAnimationStyleElement.textContent = `
2284
+ *, *::before, *::after {
2285
+ transition: none !important;
2286
+ }
2287
+ `;
2288
+ const animationsToFinish = [];
2289
+ for (const animation of document.getAnimations()) {
2290
+ if (animation.effect instanceof KeyframeEffect) {
2291
+ const target = animation.effect.target;
2292
+ if (target instanceof Element && target.getRootNode() instanceof ShadowRoot) continue;
2293
+ }
2294
+ animationsToFinish.push(animation);
2295
+ }
2296
+ finishAnimations(animationsToFinish);
2297
+ globalAnimationStyleElement.remove();
2298
+ globalAnimationStyleElement = null;
2299
+ resumeSvgAnimations(globalFrozenSvgElements);
2300
+ globalFrozenSvgElements = [];
2301
+ unfreezeGsap();
2302
+ };
2303
+
2304
+ //#endregion
2305
+ //#region src/utils/freeze-pseudo-states.ts
2306
+ const MOUSE_EVENTS_TO_BLOCK = [
2307
+ "mouseenter",
2308
+ "mouseleave",
2309
+ "mouseover",
2310
+ "mouseout",
2311
+ "pointerenter",
2312
+ "pointerleave",
2313
+ "pointerover",
2314
+ "pointerout"
2315
+ ];
2316
+ const FOCUS_EVENTS_TO_BLOCK = [
2317
+ "focus",
2318
+ "blur",
2319
+ "focusin",
2320
+ "focusout"
2321
+ ];
2322
+ const HOVER_STYLE_PROPERTIES = [
2323
+ "background-color",
2324
+ "color",
2325
+ "border-color",
2326
+ "box-shadow",
2327
+ "transform",
2328
+ "opacity",
2329
+ "outline",
2330
+ "filter",
2331
+ "scale",
2332
+ "visibility"
2333
+ ];
2334
+ const FOCUS_STYLE_PROPERTIES = [
2335
+ "background-color",
2336
+ "color",
2337
+ "border-color",
2338
+ "box-shadow",
2339
+ "outline",
2340
+ "outline-offset",
2341
+ "outline-width",
2342
+ "outline-color",
2343
+ "outline-style",
2344
+ "filter",
2345
+ "opacity",
2346
+ "ring-color",
2347
+ "ring-width"
2348
+ ];
2349
+ const frozenHoverElements = /* @__PURE__ */ new Map();
2350
+ const frozenFocusElements = /* @__PURE__ */ new Map();
2351
+ const stopEvent = (event) => {
2352
+ event.stopImmediatePropagation();
2353
+ };
2354
+ const preventFocusChange = (event) => {
2355
+ event.preventDefault();
2356
+ event.stopImmediatePropagation();
2357
+ };
2358
+ const collectOriginalPropertyValues = (element, properties) => {
2359
+ const originalPropertyValues = /* @__PURE__ */ new Map();
2360
+ for (const prop of properties) {
2361
+ const inlineValue = element.style.getPropertyValue(prop);
2362
+ if (inlineValue) originalPropertyValues.set(prop, inlineValue);
2363
+ }
2364
+ return originalPropertyValues;
2365
+ };
2366
+ const freezeElement = (element, properties, alreadyFrozen) => {
2367
+ if (alreadyFrozen?.has(element)) return null;
2368
+ const computed = getComputedStyle(element);
2369
+ let frozenStyles = element.style.cssText;
2370
+ const originalPropertyValues = collectOriginalPropertyValues(element, properties);
2371
+ for (const prop of properties) {
2372
+ const computedValue = computed.getPropertyValue(prop);
2373
+ if (computedValue) frozenStyles += `${prop}: ${computedValue} !important; `;
2374
+ }
2375
+ return {
2376
+ element,
2377
+ frozenStyles,
2378
+ originalPropertyValues
2379
+ };
2380
+ };
2381
+ const collectHoveredElements = (cursorX, cursorY) => {
2382
+ const hoveredElements = [];
2383
+ let current = document.elementFromPoint(cursorX, cursorY);
2384
+ while (current && current !== document.documentElement) {
2385
+ if (current instanceof HTMLElement) hoveredElements.push(current);
2386
+ current = current.parentElement;
2387
+ }
2388
+ return hoveredElements;
2389
+ };
2390
+ const collectFocusedElements = () => {
2391
+ const focusedElements = [];
2392
+ let current = document.activeElement;
2393
+ while (current && current !== document.body) {
2394
+ if (current instanceof HTMLElement) focusedElements.push(current);
2395
+ current = current.shadowRoot?.activeElement ?? null;
2396
+ }
2397
+ return focusedElements;
2398
+ };
2399
+ const applyFrozenStates = (states, storageMap) => {
2400
+ for (const { element, frozenStyles, originalPropertyValues } of states) {
2401
+ storageMap.set(element, originalPropertyValues);
2402
+ element.style.cssText = frozenStyles;
2403
+ }
2404
+ };
2405
+ const restoreFrozenStates = (storageMap, styleProperties) => {
2406
+ for (const [element, originalPropertyValues] of storageMap) for (const prop of styleProperties) {
2407
+ const originalValue = originalPropertyValues.get(prop);
2408
+ if (originalValue) element.style.setProperty(prop, originalValue);
2409
+ else element.style.removeProperty(prop);
2410
+ }
2411
+ storageMap.clear();
2412
+ };
2413
+ const freezePseudoStates = (cursorX, cursorY) => {
2414
+ if (isPointerEventsFreezeInstalled()) return;
2415
+ for (const eventType of MOUSE_EVENTS_TO_BLOCK) document.addEventListener(eventType, stopEvent, true);
2416
+ for (const eventType of FOCUS_EVENTS_TO_BLOCK) document.addEventListener(eventType, preventFocusChange, true);
2417
+ const hoverStates = [];
2418
+ const hoveredElements = cursorX !== void 0 && cursorY !== void 0 && cursorX >= 0 && cursorY >= 0 && cursorX < window.innerWidth && cursorY < window.innerHeight ? collectHoveredElements(cursorX, cursorY) : Array.from(document.querySelectorAll(":hover")).filter((element) => element instanceof HTMLElement);
2419
+ for (const element of hoveredElements) {
2420
+ const state = freezeElement(element, HOVER_STYLE_PROPERTIES);
2421
+ if (state) hoverStates.push(state);
2422
+ }
2423
+ const focusStates = [];
2424
+ for (const element of collectFocusedElements()) {
2425
+ const state = freezeElement(element, FOCUS_STYLE_PROPERTIES, frozenFocusElements);
2426
+ if (state) focusStates.push(state);
2427
+ }
2428
+ applyFrozenStates(hoverStates, frozenHoverElements);
2429
+ applyFrozenStates(focusStates, frozenFocusElements);
2430
+ installPointerEventsFreeze();
2431
+ };
2432
+ const unfreezePseudoStates = () => {
2433
+ clearElementPositionCache();
2434
+ for (const eventType of MOUSE_EVENTS_TO_BLOCK) document.removeEventListener(eventType, stopEvent, true);
2435
+ for (const eventType of FOCUS_EVENTS_TO_BLOCK) document.removeEventListener(eventType, preventFocusChange, true);
2436
+ restoreFrozenStates(frozenHoverElements, HOVER_STYLE_PROPERTIES);
2437
+ restoreFrozenStates(frozenFocusElements, FOCUS_STYLE_PROPERTIES);
2438
+ uninstallPointerEventsFreeze();
2439
+ };
2440
+
2441
+ //#endregion
2442
+ //#region src/utils/log-recoverable-error.ts
2443
+ const logRecoverableError = (context, error) => {
2444
+ console.warn(`[react-grab] ${context}:`, error);
2445
+ };
2446
+
2447
+ //#endregion
2448
+ //#region src/utils/freeze-updates.ts
2449
+ let isUpdatesPaused = false;
2450
+ const getOrCache = (cache, key, create) => {
2451
+ const cached = cache.get(key);
2452
+ if (cached) return cached;
2453
+ const value = create();
2454
+ cache.set(key, value);
2455
+ return value;
2456
+ };
2457
+ const patchedDispatchers = /* @__PURE__ */ new WeakMap();
2458
+ const wrappedDispatchCache = /* @__PURE__ */ new WeakMap();
2459
+ const wrappedStartTransitionCache = /* @__PURE__ */ new WeakMap();
2460
+ const pendingStoreCallbacks = /* @__PURE__ */ new Set();
2461
+ const pendingTransitionCallbacks = [];
2462
+ const pendingStateUpdates = [];
2463
+ const pausedQueueStates = /* @__PURE__ */ new WeakMap();
2464
+ const pausedContextStates = /* @__PURE__ */ new WeakMap();
2465
+ const renderersWithPatchedDispatcher = /* @__PURE__ */ new WeakSet();
2466
+ const typedFiberRoots = $;
2467
+ const getFiberRoot = (fiber) => {
2468
+ let current = fiber;
2469
+ while (current.return) current = current.return;
2470
+ return current.stateNode ?? null;
2471
+ };
2472
+ const collectFiberRoots = () => {
2473
+ if (typedFiberRoots.size > 0) return typedFiberRoots;
2474
+ const collectedRoots = /* @__PURE__ */ new Set();
2475
+ const traverseDOM = (element) => {
2476
+ const fiber = Z$1(element);
2477
+ if (fiber) {
2478
+ const fiberRoot = getFiberRoot(fiber);
2479
+ if (fiberRoot) collectedRoots.add(fiberRoot);
2480
+ return;
2481
+ }
2482
+ for (const childElement of Array.from(element.children)) {
2483
+ traverseDOM(childElement);
2484
+ if (collectedRoots.size > 0) return;
2485
+ }
2486
+ };
2487
+ traverseDOM(document.body);
2488
+ return collectedRoots;
2489
+ };
2490
+ const mergePendingChains = (original, buffered) => {
2491
+ if (!original) return buffered;
2492
+ if (!buffered) return original;
2493
+ if (!original.next || !buffered.next) return buffered;
2494
+ const originalFirst = original.next;
2495
+ const bufferedFirst = buffered.next;
2496
+ const isOriginalSingle = original === originalFirst;
2497
+ const isBufferedSingle = buffered === bufferedFirst;
2498
+ if (isOriginalSingle && isBufferedSingle) {
2499
+ original.next = buffered;
2500
+ buffered.next = original;
2501
+ } else if (isOriginalSingle) {
2502
+ original.next = bufferedFirst;
2503
+ buffered.next = original;
2504
+ } else if (isBufferedSingle) {
2505
+ buffered.next = originalFirst;
2506
+ original.next = buffered;
2507
+ } else {
2508
+ original.next = bufferedFirst;
2509
+ buffered.next = originalFirst;
2510
+ }
2511
+ return buffered;
2512
+ };
2513
+ const pauseHookQueue = (queue) => {
2514
+ if (!queue || pausedQueueStates.has(queue)) return;
2515
+ const pauseState = {
2516
+ originalPendingDescriptor: Object.getOwnPropertyDescriptor(queue, "pending"),
2517
+ pendingValueAtPause: queue.pending,
2518
+ bufferedPending: null
2519
+ };
2520
+ if (typeof queue.getSnapshot === "function") {
2521
+ pauseState.originalGetSnapshot = queue.getSnapshot;
2522
+ pauseState.snapshotValueAtPause = queue.getSnapshot();
2523
+ queue.getSnapshot = () => isUpdatesPaused ? pauseState.snapshotValueAtPause : pauseState.originalGetSnapshot();
2524
+ }
2525
+ let currentPendingValue = pauseState.pendingValueAtPause;
2526
+ Object.defineProperty(queue, "pending", {
2527
+ configurable: true,
2528
+ enumerable: true,
2529
+ get: () => isUpdatesPaused ? null : currentPendingValue,
2530
+ set: (newValue) => {
2531
+ if (isUpdatesPaused) {
2532
+ if (newValue !== null) pauseState.bufferedPending = mergePendingChains(pauseState.bufferedPending ?? null, newValue);
2533
+ return;
2534
+ }
2535
+ currentPendingValue = newValue;
2536
+ }
2537
+ });
2538
+ pausedQueueStates.set(queue, pauseState);
2539
+ };
2540
+ const extractActionsFromChain = (pending) => {
2541
+ if (!pending) return [];
2542
+ const actions = [];
2543
+ const first = pending.next;
2544
+ if (!first) return [];
2545
+ let current = first;
2546
+ do
2547
+ if (current) {
2548
+ actions.push(current.action);
2549
+ current = current.next;
2550
+ }
2551
+ while (current && current !== first);
2552
+ return actions;
2553
+ };
2554
+ const resumeHookQueue = (queue) => {
2555
+ const pauseState = pausedQueueStates.get(queue);
2556
+ if (!pauseState) return;
2557
+ if (pauseState.originalGetSnapshot) queue.getSnapshot = pauseState.originalGetSnapshot;
2558
+ if (pauseState.originalPendingDescriptor) Object.defineProperty(queue, "pending", pauseState.originalPendingDescriptor);
2559
+ else delete queue.pending;
2560
+ queue.pending = null;
2561
+ const dispatch = queue.dispatch;
2562
+ if (typeof dispatch === "function") {
2563
+ const pendingActions = extractActionsFromChain(pauseState.pendingValueAtPause ?? null);
2564
+ const bufferedActions = extractActionsFromChain(pauseState.bufferedPending ?? null);
2565
+ for (const action of [...pendingActions, ...bufferedActions]) pendingStateUpdates.push(() => dispatch(action));
2566
+ }
2567
+ pausedQueueStates.delete(queue);
2568
+ };
2569
+ const pauseContextDependency = (contextDependency) => {
2570
+ if (pausedContextStates.has(contextDependency)) return;
2571
+ const pauseState = {
2572
+ originalDescriptor: Object.getOwnPropertyDescriptor(contextDependency, "memoizedValue"),
2573
+ frozenValue: contextDependency.memoizedValue
2574
+ };
2575
+ Object.defineProperty(contextDependency, "memoizedValue", {
2576
+ configurable: true,
2577
+ enumerable: true,
2578
+ get() {
2579
+ if (isUpdatesPaused) return pauseState.frozenValue;
2580
+ if (pauseState.originalDescriptor?.get) return pauseState.originalDescriptor.get.call(this);
2581
+ return this._memoizedValue;
2582
+ },
2583
+ set(value) {
2584
+ if (isUpdatesPaused) {
2585
+ pauseState.pendingValue = value;
2586
+ pauseState.didReceivePendingValue = true;
2587
+ return;
2588
+ }
2589
+ if (pauseState.originalDescriptor?.set) pauseState.originalDescriptor.set.call(this, value);
2590
+ else this._memoizedValue = value;
2591
+ }
2592
+ });
2593
+ if (!pauseState.originalDescriptor?.get) contextDependency._memoizedValue = pauseState.frozenValue;
2594
+ pausedContextStates.set(contextDependency, pauseState);
2595
+ };
2596
+ const resumeContextDependency = (contextDependency) => {
2597
+ const pauseState = pausedContextStates.get(contextDependency);
2598
+ if (!pauseState) return;
2599
+ if (pauseState.originalDescriptor) Object.defineProperty(contextDependency, "memoizedValue", pauseState.originalDescriptor);
2600
+ else delete contextDependency.memoizedValue;
2601
+ if (pauseState.didReceivePendingValue) contextDependency.memoizedValue = pauseState.pendingValue;
2602
+ pausedContextStates.delete(contextDependency);
2603
+ };
2604
+ const forEachHookQueue = (fiber, callback) => {
2605
+ let hookState = fiber.memoizedState;
2606
+ while (hookState) {
2607
+ if (hookState.queue && typeof hookState.queue === "object") callback(hookState.queue);
2608
+ hookState = hookState.next;
2609
+ }
2610
+ };
2611
+ const forEachContextDependency = (fiber, callback) => {
2612
+ let contextDependency = fiber.dependencies?.firstContext;
2613
+ while (contextDependency && typeof contextDependency === "object" && "memoizedValue" in contextDependency) {
2614
+ callback(contextDependency);
2615
+ contextDependency = contextDependency.next;
2616
+ }
2617
+ };
2618
+ const traverseFibers = (fiber, onCompositeFiber) => {
2619
+ if (!fiber) return;
2620
+ if (ve$1(fiber)) onCompositeFiber(fiber);
2621
+ traverseFibers(fiber.child, onCompositeFiber);
2622
+ traverseFibers(fiber.sibling, onCompositeFiber);
2623
+ };
2624
+ const pauseFiber = (fiber) => {
2625
+ forEachHookQueue(fiber, pauseHookQueue);
2626
+ forEachContextDependency(fiber, pauseContextDependency);
2627
+ };
2628
+ const resumeFiber = (fiber) => {
2629
+ forEachHookQueue(fiber, resumeHookQueue);
2630
+ forEachContextDependency(fiber, resumeContextDependency);
2631
+ };
2632
+ const patchDispatcher = (dispatcher) => {
2633
+ if (patchedDispatchers.has(dispatcher)) return;
2634
+ const typedDispatcher = dispatcher;
2635
+ const originalHooks = {
2636
+ useState: typedDispatcher.useState,
2637
+ useReducer: typedDispatcher.useReducer,
2638
+ useTransition: typedDispatcher.useTransition,
2639
+ useSyncExternalStore: typedDispatcher.useSyncExternalStore
2640
+ };
2641
+ patchedDispatchers.set(dispatcher, originalHooks);
2642
+ typedDispatcher.useState = (...args) => {
2643
+ const result = originalHooks.useState.apply(dispatcher, args);
2644
+ if (!isUpdatesPaused) return result;
2645
+ if (!Array.isArray(result) || typeof result[1] !== "function") return result;
2646
+ const [state, dispatch] = result;
2647
+ return [state, getOrCache(wrappedDispatchCache, dispatch, () => (...dispatchArgs) => {
2648
+ if (isUpdatesPaused) pendingStateUpdates.push(() => dispatch(...dispatchArgs));
2649
+ else dispatch(...dispatchArgs);
2650
+ })];
2651
+ };
2652
+ typedDispatcher.useReducer = (...args) => {
2653
+ const result = originalHooks.useReducer.apply(dispatcher, args);
2654
+ if (!isUpdatesPaused) return result;
2655
+ if (!Array.isArray(result) || typeof result[1] !== "function") return result;
2656
+ const [state, dispatch] = result;
2657
+ return [state, getOrCache(wrappedDispatchCache, dispatch, () => (...dispatchArgs) => {
2658
+ if (isUpdatesPaused) pendingStateUpdates.push(() => dispatch(...dispatchArgs));
2659
+ else dispatch(...dispatchArgs);
2660
+ })];
2661
+ };
2662
+ typedDispatcher.useTransition = (...args) => {
2663
+ const result = originalHooks.useTransition.apply(dispatcher, args);
2664
+ if (!isUpdatesPaused) return result;
2665
+ if (!Array.isArray(result) || typeof result[1] !== "function") return result;
2666
+ const [isPending, startTransition] = result;
2667
+ return [isPending, getOrCache(wrappedStartTransitionCache, startTransition, () => (transitionCallback) => {
2668
+ if (isUpdatesPaused) pendingTransitionCallbacks.push(() => startTransition(transitionCallback));
2669
+ else startTransition(transitionCallback);
2670
+ })];
2671
+ };
2672
+ typedDispatcher.useSyncExternalStore = ((subscribe, getSnapshot, getServerSnapshot) => {
2673
+ if (!isUpdatesPaused) return originalHooks.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
2674
+ const wrappedSubscribe = (onChange) => subscribe(() => {
2675
+ if (isUpdatesPaused) pendingStoreCallbacks.add(onChange);
2676
+ else onChange();
2677
+ });
2678
+ return originalHooks.useSyncExternalStore(wrappedSubscribe, getSnapshot, getServerSnapshot);
2679
+ });
2680
+ };
2681
+ const installDispatcherPatching = (renderer) => {
2682
+ const dispatcherRef = renderer.currentDispatcherRef;
2683
+ if (!dispatcherRef || typeof dispatcherRef !== "object") return;
2684
+ const dispatcherKey = "H" in dispatcherRef ? "H" : "current";
2685
+ let currentDispatcher = dispatcherRef[dispatcherKey];
2686
+ Object.defineProperty(dispatcherRef, dispatcherKey, {
2687
+ configurable: true,
2688
+ enumerable: true,
2689
+ get: () => {
2690
+ if (currentDispatcher && typeof currentDispatcher === "object") patchDispatcher(currentDispatcher);
2691
+ return currentDispatcher;
2692
+ },
2693
+ set: (newDispatcher) => {
2694
+ currentDispatcher = newDispatcher;
2695
+ }
2696
+ });
2697
+ };
2698
+ const scheduleReactUpdate = (fiberRoots) => {
2699
+ queueMicrotask(() => {
2700
+ try {
2701
+ for (const renderer of h$2().renderers.values()) {
2702
+ if (typeof renderer.scheduleUpdate !== "function") continue;
2703
+ for (const fiberRoot of fiberRoots) if (fiberRoot.current) try {
2704
+ renderer.scheduleUpdate(fiberRoot.current);
2705
+ } catch (error) {
2706
+ logRecoverableError("scheduleUpdate failed during unfreeze", error);
2707
+ }
2708
+ }
2709
+ } catch (error) {
2710
+ logRecoverableError("scheduleReactUpdate failed", error);
2711
+ }
2712
+ });
2713
+ };
2714
+ const invokeCallbacks = (callbacks) => {
2715
+ for (const callback of callbacks) try {
2716
+ callback();
2717
+ } catch (error) {
2718
+ logRecoverableError("Callback failed during state replay", error);
2719
+ }
2720
+ };
2721
+ const initializeFreezeSupport = () => {
2722
+ for (const renderer of h$2().renderers.values()) {
2723
+ if (renderersWithPatchedDispatcher.has(renderer)) continue;
2724
+ installDispatcherPatching(renderer);
2725
+ renderersWithPatchedDispatcher.add(renderer);
2726
+ }
2727
+ };
2728
+ const freezeUpdates = () => {
2729
+ if (isUpdatesPaused) return () => {};
2730
+ initializeFreezeSupport();
2731
+ isUpdatesPaused = true;
2732
+ const fiberRoots = collectFiberRoots();
2733
+ for (const fiberRoot of fiberRoots) traverseFibers(fiberRoot.current, pauseFiber);
2734
+ return () => {
2735
+ if (!isUpdatesPaused) return;
2736
+ try {
2737
+ const fiberRootsToResume = collectFiberRoots();
2738
+ for (const fiberRoot of fiberRootsToResume) traverseFibers(fiberRoot.current, resumeFiber);
2739
+ const storeCallbacksToInvoke = Array.from(pendingStoreCallbacks);
2740
+ const transitionCallbacksToInvoke = pendingTransitionCallbacks.slice();
2741
+ const stateUpdatesToInvoke = pendingStateUpdates.slice();
2742
+ isUpdatesPaused = false;
2743
+ invokeCallbacks(storeCallbacksToInvoke);
2744
+ invokeCallbacks(transitionCallbacksToInvoke);
2745
+ invokeCallbacks(stateUpdatesToInvoke);
2746
+ scheduleReactUpdate(fiberRootsToResume);
2747
+ } finally {
2748
+ pendingStoreCallbacks.clear();
2749
+ pendingTransitionCallbacks.length = 0;
2750
+ pendingStateUpdates.length = 0;
2751
+ }
2752
+ };
2753
+ };
2754
+
2755
+ //#endregion
2756
+ Object.defineProperty(exports, 'ARROW_KEYS', {
2757
+ enumerable: true,
2758
+ get: function () {
2759
+ return ARROW_KEYS;
2760
+ }
2761
+ });
2762
+ Object.defineProperty(exports, 'ARROW_MAX_LABEL_WIDTH_RATIO', {
2763
+ enumerable: true,
2764
+ get: function () {
2765
+ return ARROW_MAX_LABEL_WIDTH_RATIO;
2766
+ }
2767
+ });
2768
+ Object.defineProperty(exports, 'BASELINE_FRAME_DURATION_MS', {
2769
+ enumerable: true,
2770
+ get: function () {
2771
+ return BASELINE_FRAME_DURATION_MS;
2772
+ }
2773
+ });
2774
+ Object.defineProperty(exports, 'DEFAULT_ACTION_ID', {
2775
+ enumerable: true,
2776
+ get: function () {
2777
+ return DEFAULT_ACTION_ID;
2778
+ }
2779
+ });
2780
+ Object.defineProperty(exports, 'DRAG_LERP_FACTOR', {
2781
+ enumerable: true,
2782
+ get: function () {
2783
+ return DRAG_LERP_FACTOR;
2784
+ }
2785
+ });
2786
+ Object.defineProperty(exports, 'DRAG_SELECTION_COVERAGE_THRESHOLD', {
2787
+ enumerable: true,
2788
+ get: function () {
2789
+ return DRAG_SELECTION_COVERAGE_THRESHOLD;
2790
+ }
2791
+ });
2792
+ Object.defineProperty(exports, 'DROPDOWN_EDGE_TRANSFORM_ORIGIN', {
2793
+ enumerable: true,
2794
+ get: function () {
2795
+ return DROPDOWN_EDGE_TRANSFORM_ORIGIN;
2796
+ }
2797
+ });
2798
+ Object.defineProperty(exports, 'DROPDOWN_OFFSCREEN_POSITION', {
2799
+ enumerable: true,
2800
+ get: function () {
2801
+ return DROPDOWN_OFFSCREEN_POSITION;
2802
+ }
2803
+ });
2804
+ Object.defineProperty(exports, 'FEEDBACK_DURATION_MS', {
2805
+ enumerable: true,
2806
+ get: function () {
2807
+ return FEEDBACK_DURATION_MS;
2808
+ }
2809
+ });
2810
+ Object.defineProperty(exports, 'FROZEN_GLOW_COLOR', {
2811
+ enumerable: true,
2812
+ get: function () {
2813
+ return FROZEN_GLOW_COLOR;
2814
+ }
2815
+ });
2816
+ Object.defineProperty(exports, 'LERP_CONVERGENCE_THRESHOLD_PX', {
2817
+ enumerable: true,
2818
+ get: function () {
2819
+ return LERP_CONVERGENCE_THRESHOLD_PX;
2820
+ }
2821
+ });
2822
+ Object.defineProperty(exports, 'MAX_SELECTOR_COMBINATIONS', {
2823
+ enumerable: true,
2824
+ get: function () {
2825
+ return MAX_SELECTOR_COMBINATIONS;
2826
+ }
2827
+ });
2828
+ Object.defineProperty(exports, 'MAX_SESSION_STORAGE_SIZE_BYTES', {
2829
+ enumerable: true,
2830
+ get: function () {
2831
+ return MAX_SESSION_STORAGE_SIZE_BYTES;
2832
+ }
2833
+ });
2834
+ Object.defineProperty(exports, 'MODIFIER_KEYS', {
2835
+ enumerable: true,
2836
+ get: function () {
2837
+ return MODIFIER_KEYS;
2838
+ }
2839
+ });
2840
+ Object.defineProperty(exports, 'MOUNT_ROOT_RECHECK_DELAY_MS', {
2841
+ enumerable: true,
2842
+ get: function () {
2843
+ return MOUNT_ROOT_RECHECK_DELAY_MS;
2844
+ }
2845
+ });
2846
+ Object.defineProperty(exports, 'NEXTJS_REVALIDATION_DELAY_MS', {
2847
+ enumerable: true,
2848
+ get: function () {
2849
+ return NEXTJS_REVALIDATION_DELAY_MS;
2850
+ }
2851
+ });
2852
+ Object.defineProperty(exports, 'OFFSCREEN_POSITION', {
2853
+ enumerable: true,
2854
+ get: function () {
2855
+ return OFFSCREEN_POSITION;
2856
+ }
2857
+ });
2858
+ Object.defineProperty(exports, 'OPACITY_CONVERGENCE_THRESHOLD', {
2859
+ enumerable: true,
2860
+ get: function () {
2861
+ return OPACITY_CONVERGENCE_THRESHOLD;
2862
+ }
2863
+ });
2864
+ Object.defineProperty(exports, 'OVERLAY_BORDER_COLOR_DEFAULT', {
2865
+ enumerable: true,
2866
+ get: function () {
2867
+ return OVERLAY_BORDER_COLOR_DEFAULT;
2868
+ }
2869
+ });
2870
+ Object.defineProperty(exports, 'OVERLAY_BORDER_COLOR_DRAG', {
2871
+ enumerable: true,
2872
+ get: function () {
2873
+ return OVERLAY_BORDER_COLOR_DRAG;
2874
+ }
2875
+ });
2876
+ Object.defineProperty(exports, 'OVERLAY_FILL_COLOR_DEFAULT', {
2877
+ enumerable: true,
2878
+ get: function () {
2879
+ return OVERLAY_FILL_COLOR_DEFAULT;
2880
+ }
2881
+ });
2882
+ Object.defineProperty(exports, 'OVERLAY_FILL_COLOR_DRAG', {
2883
+ enumerable: true,
2884
+ get: function () {
2885
+ return OVERLAY_FILL_COLOR_DRAG;
2886
+ }
2887
+ });
2888
+ Object.defineProperty(exports, 'RELEVANT_CSS_PROPERTIES', {
2889
+ enumerable: true,
2890
+ get: function () {
2891
+ return RELEVANT_CSS_PROPERTIES;
2892
+ }
2893
+ });
2894
+ Object.defineProperty(exports, 'SELECTION_LABEL_OFFSCREEN_PX', {
2895
+ enumerable: true,
2896
+ get: function () {
2897
+ return SELECTION_LABEL_OFFSCREEN_PX;
2898
+ }
2899
+ });
2900
+ Object.defineProperty(exports, 'SELECTION_LERP_FACTOR', {
2901
+ enumerable: true,
2902
+ get: function () {
2903
+ return SELECTION_LERP_FACTOR;
2904
+ }
2905
+ });
2906
+ Object.defineProperty(exports, 'TOOLBAR_DEFAULT_POSITION_RATIO', {
2907
+ enumerable: true,
2908
+ get: function () {
2909
+ return TOOLBAR_DEFAULT_POSITION_RATIO;
2910
+ }
2911
+ });
2912
+ Object.defineProperty(exports, 'Te', {
2913
+ enumerable: true,
2914
+ get: function () {
2915
+ return Te$1;
2916
+ }
2917
+ });
2918
+ Object.defineProperty(exports, 'VERSION', {
2919
+ enumerable: true,
2920
+ get: function () {
2921
+ return VERSION;
2922
+ }
2923
+ });
2924
+ Object.defineProperty(exports, 'Z', {
2925
+ enumerable: true,
2926
+ get: function () {
2927
+ return Z$1;
2928
+ }
2929
+ });
2930
+ Object.defineProperty(exports, 'ZOOM_DETECTION_THRESHOLD', {
2931
+ enumerable: true,
2932
+ get: function () {
2933
+ return ZOOM_DETECTION_THRESHOLD;
2934
+ }
2935
+ });
2936
+ Object.defineProperty(exports, 'Z_INDEX_OVERLAY', {
2937
+ enumerable: true,
2938
+ get: function () {
2939
+ return Z_INDEX_OVERLAY;
2940
+ }
2941
+ });
2942
+ Object.defineProperty(exports, 'Z_INDEX_OVERLAY_CANVAS', {
2943
+ enumerable: true,
2944
+ get: function () {
2945
+ return Z_INDEX_OVERLAY_CANVAS;
2946
+ }
2947
+ });
2948
+ Object.defineProperty(exports, 'checkIsNextProject', {
2949
+ enumerable: true,
2950
+ get: function () {
2951
+ return checkIsNextProject;
2952
+ }
2953
+ });
2954
+ Object.defineProperty(exports, 'clearElementPositionCache', {
2955
+ enumerable: true,
2956
+ get: function () {
2957
+ return clearElementPositionCache;
2958
+ }
2959
+ });
2960
+ Object.defineProperty(exports, 'clearVisibilityCache', {
2961
+ enumerable: true,
2962
+ get: function () {
2963
+ return clearVisibilityCache;
2964
+ }
2965
+ });
2966
+ Object.defineProperty(exports, 'detectCspNonce', {
2967
+ enumerable: true,
2968
+ get: function () {
2969
+ return detectCspNonce;
2970
+ }
2971
+ });
2972
+ Object.defineProperty(exports, 'freezeAllAnimations', {
2973
+ enumerable: true,
2974
+ get: function () {
2975
+ return freezeAllAnimations;
2976
+ }
2977
+ });
2978
+ Object.defineProperty(exports, 'freezeAnimations', {
2979
+ enumerable: true,
2980
+ get: function () {
2981
+ return freezeAnimations;
2982
+ }
2983
+ });
2984
+ Object.defineProperty(exports, 'freezeGlobalAnimations', {
2985
+ enumerable: true,
2986
+ get: function () {
2987
+ return freezeGlobalAnimations;
2988
+ }
2989
+ });
2990
+ Object.defineProperty(exports, 'freezePseudoStates', {
2991
+ enumerable: true,
2992
+ get: function () {
2993
+ return freezePseudoStates;
2994
+ }
2995
+ });
2996
+ Object.defineProperty(exports, 'freezeUpdates', {
2997
+ enumerable: true,
2998
+ get: function () {
2999
+ return freezeUpdates;
3000
+ }
3001
+ });
3002
+ Object.defineProperty(exports, 'getComponentDisplayName', {
3003
+ enumerable: true,
3004
+ get: function () {
3005
+ return getComponentDisplayName;
3006
+ }
3007
+ });
3008
+ Object.defineProperty(exports, 'getElementAtPosition', {
3009
+ enumerable: true,
3010
+ get: function () {
3011
+ return getElementAtPosition;
3012
+ }
3013
+ });
3014
+ Object.defineProperty(exports, 'getElementContext', {
3015
+ enumerable: true,
3016
+ get: function () {
3017
+ return getElementContext;
3018
+ }
3019
+ });
3020
+ Object.defineProperty(exports, 'getElementsAtPoint', {
3021
+ enumerable: true,
3022
+ get: function () {
3023
+ return getElementsAtPoint;
3024
+ }
3025
+ });
3026
+ Object.defineProperty(exports, 'getHTMLPreview', {
3027
+ enumerable: true,
3028
+ get: function () {
3029
+ return getHTMLPreview;
3030
+ }
3031
+ });
3032
+ Object.defineProperty(exports, 'getNearestComponentName', {
3033
+ enumerable: true,
3034
+ get: function () {
3035
+ return getNearestComponentName;
3036
+ }
3037
+ });
3038
+ Object.defineProperty(exports, 'getStack', {
3039
+ enumerable: true,
3040
+ get: function () {
3041
+ return getStack;
3042
+ }
3043
+ });
3044
+ Object.defineProperty(exports, 'getStackContext', {
3045
+ enumerable: true,
3046
+ get: function () {
3047
+ return getStackContext;
3048
+ }
3049
+ });
3050
+ Object.defineProperty(exports, 'getTagName', {
3051
+ enumerable: true,
3052
+ get: function () {
3053
+ return getTagName;
3054
+ }
3055
+ });
3056
+ Object.defineProperty(exports, 'hideFromThirdParties', {
3057
+ enumerable: true,
3058
+ get: function () {
3059
+ return hideFromThirdParties;
3060
+ }
3061
+ });
3062
+ Object.defineProperty(exports, 'isRootElement', {
3063
+ enumerable: true,
3064
+ get: function () {
3065
+ return isRootElement;
3066
+ }
3067
+ });
3068
+ Object.defineProperty(exports, 'isValidGrabbableElement', {
3069
+ enumerable: true,
3070
+ get: function () {
3071
+ return isValidGrabbableElement;
3072
+ }
3073
+ });
3074
+ Object.defineProperty(exports, 'logRecoverableError', {
3075
+ enumerable: true,
3076
+ get: function () {
3077
+ return logRecoverableError;
3078
+ }
3079
+ });
3080
+ Object.defineProperty(exports, 'nativeCancelAnimationFrame', {
3081
+ enumerable: true,
3082
+ get: function () {
3083
+ return nativeCancelAnimationFrame;
3084
+ }
3085
+ });
3086
+ Object.defineProperty(exports, 'nativeRequestAnimationFrame', {
3087
+ enumerable: true,
3088
+ get: function () {
3089
+ return nativeRequestAnimationFrame;
3090
+ }
3091
+ });
3092
+ Object.defineProperty(exports, 'openFile', {
3093
+ enumerable: true,
3094
+ get: function () {
3095
+ return openFile;
3096
+ }
3097
+ });
3098
+ Object.defineProperty(exports, 'resolveSource', {
3099
+ enumerable: true,
3100
+ get: function () {
3101
+ return resolveSource;
3102
+ }
3103
+ });
3104
+ Object.defineProperty(exports, 'resumePointerEventsFreeze', {
3105
+ enumerable: true,
3106
+ get: function () {
3107
+ return resumePointerEventsFreeze;
3108
+ }
3109
+ });
3110
+ Object.defineProperty(exports, 'stripInternalAttributes', {
3111
+ enumerable: true,
3112
+ get: function () {
3113
+ return stripInternalAttributes;
3114
+ }
3115
+ });
3116
+ Object.defineProperty(exports, 'supportsDisplayP3', {
3117
+ enumerable: true,
3118
+ get: function () {
3119
+ return supportsDisplayP3;
3120
+ }
3121
+ });
3122
+ Object.defineProperty(exports, 'suspendPointerEventsFreeze', {
3123
+ enumerable: true,
3124
+ get: function () {
3125
+ return suspendPointerEventsFreeze;
3126
+ }
3127
+ });
3128
+ Object.defineProperty(exports, 'unfreezeGlobalAnimations', {
3129
+ enumerable: true,
3130
+ get: function () {
3131
+ return unfreezeGlobalAnimations;
3132
+ }
3133
+ });
3134
+ Object.defineProperty(exports, 'unfreezePseudoStates', {
3135
+ enumerable: true,
3136
+ get: function () {
3137
+ return unfreezePseudoStates;
3138
+ }
3139
+ });
3140
+ Object.defineProperty(exports, 'waitUntilNextFrame', {
3141
+ enumerable: true,
3142
+ get: function () {
3143
+ return waitUntilNextFrame;
3144
+ }
3145
+ });