@wix/cli 1.1.131 → 1.1.132

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 (181) hide show
  1. package/build/{DevCommand-YGD62PY3.js → DevCommand-36D5RTIS.js} +15 -15
  2. package/build/{DevCommand-7C7OTMZ2.js → DevCommand-C6BQYRFU.js} +20 -20
  3. package/build/{DevCommand-BMM34YPU.js → DevCommand-XWXE2GQD.js} +1559 -341
  4. package/build/{DevCommand-BMM34YPU.js.map → DevCommand-XWXE2GQD.js.map} +1 -1
  5. package/build/{EnvPullCommand-HQZCHDVW.js → EnvPullCommand-MIAEMMW7.js} +12 -12
  6. package/build/{EnvRemoveCommand-PRW22UJL.js → EnvRemoveCommand-4PM5K3WI.js} +17 -15
  7. package/build/EnvRemoveCommand-4PM5K3WI.js.map +1 -0
  8. package/build/{EnvSetCommand-M3COJ5U3.js → EnvSetCommand-VKDYZZXD.js} +17 -15
  9. package/build/EnvSetCommand-VKDYZZXD.js.map +1 -0
  10. package/build/GenerateCommand-2YN6H45L.js +10447 -0
  11. package/build/GenerateCommand-2YN6H45L.js.map +1 -0
  12. package/build/{InstallCommand-QYUZZTIV.js → InstallCommand-AHGIP2UM.js} +17 -17
  13. package/build/{LoginCommand-NWXJQGCX.js → LoginCommand-WF6TT7QV.js} +9 -9
  14. package/build/{LogoutCommand-GSDL4UZG.js → LogoutCommand-GHUHYROA.js} +6 -6
  15. package/build/{PreviewCommand-ADQXF5OJ.js → PreviewCommand-K67N3DXU.js} +19 -19
  16. package/build/{PreviewCommand-XVC5JUCV.js → PreviewCommand-PYVWQY6C.js} +14 -14
  17. package/build/{PreviewCommand-63Y2QMZ3.js → PreviewCommand-WZDNMLQR.js} +19 -19
  18. package/build/{PromoteCommand-SU2X566V.js → PromoteCommand-2NQ7ROC6.js} +14 -14
  19. package/build/{PublishCommand-RJUSEGO7.js → PublishCommand-FWLZ4Q7B.js} +19 -19
  20. package/build/{ReleaseCommand-56WKXNK4.js → ReleaseCommand-NADJCWXR.js} +43 -20
  21. package/build/ReleaseCommand-NADJCWXR.js.map +1 -0
  22. package/build/{UninstallCommand-ZASEMR45.js → UninstallCommand-ATJIJUYX.js} +17 -17
  23. package/build/{WhoamiCommand-4ANDNT7Y.js → WhoamiCommand-DVII27HG.js} +3 -3
  24. package/build/{chunk-KBORAL57.js → chunk-3UICD2U3.js} +2 -2
  25. package/build/{chunk-GGTDDK53.js → chunk-72KSL2UL.js} +4 -4
  26. package/build/{chunk-3MBMJERV.js → chunk-7LW7GOIM.js} +4 -4
  27. package/build/{chunk-7WQENS6J.js → chunk-A2ZZA4JA.js} +3 -3
  28. package/build/{chunk-4H3OAZQS.js → chunk-B54YGGPW.js} +8 -8
  29. package/build/{chunk-E7PJXDFO.js → chunk-B5RG5HO2.js} +3 -3
  30. package/build/{chunk-GUSV4N2E.js → chunk-BQQQEWSQ.js} +2 -2
  31. package/build/{chunk-LAVKWSGY.js → chunk-EBTHDX4J.js} +3 -3
  32. package/build/{chunk-4ASXFAN7.js → chunk-G662LNCI.js} +53 -10
  33. package/build/chunk-G662LNCI.js.map +1 -0
  34. package/build/{chunk-4BOJQTTP.js → chunk-GKFBUNZ7.js} +7 -7
  35. package/build/{chunk-OPNGHPU4.js → chunk-GQA35W2K.js} +4 -4
  36. package/build/{chunk-OPNGHPU4.js.map → chunk-GQA35W2K.js.map} +1 -1
  37. package/build/{chunk-TGRXPHY6.js → chunk-H3ASS4MY.js} +5 -5
  38. package/build/{chunk-LQXRNBJ2.js → chunk-HOPIBYRH.js} +4 -2
  39. package/build/{chunk-HJLNJXW7.js → chunk-IXDWJCSQ.js} +7 -7
  40. package/build/{chunk-ZBDV4YE5.js → chunk-JRRYR6TL.js} +3 -3
  41. package/build/{chunk-PNV2OKNW.js → chunk-JZSXLY7P.js} +2 -2
  42. package/build/{chunk-EDBJ25FR.js → chunk-KZY33NY5.js} +6 -6
  43. package/build/{chunk-XNSO7WKJ.js → chunk-L7OWQEI4.js} +3 -3
  44. package/build/{chunk-BSV2DJUC.js → chunk-LFW57BYP.js} +3 -3
  45. package/build/{chunk-NDBZNWWI.js → chunk-LKYWHOMW.js} +13 -1
  46. package/build/{chunk-NDBZNWWI.js.map → chunk-LKYWHOMW.js.map} +1 -1
  47. package/build/{chunk-KAQXYUZ2.js → chunk-MTHAQUUR.js} +5 -5
  48. package/build/{chunk-Q2SUFPGY.js → chunk-MXCQLS7U.js} +12 -9
  49. package/build/chunk-MXCQLS7U.js.map +1 -0
  50. package/build/{chunk-BBCT5CBT.js → chunk-NIEDH7Z5.js} +4 -4
  51. package/build/{chunk-MDGDEDGX.js → chunk-NUKGEVK2.js} +2 -2
  52. package/build/{chunk-P23NP3OP.js → chunk-NXZLDPHZ.js} +2 -2
  53. package/build/{chunk-6PYC5DBT.js → chunk-OBQKLL5P.js} +6 -8
  54. package/build/{chunk-6PYC5DBT.js.map → chunk-OBQKLL5P.js.map} +1 -1
  55. package/build/{chunk-UR2HUVJ7.js → chunk-OKM7KSQY.js} +6 -6
  56. package/build/{chunk-755IY3BR.js → chunk-P6JSJQO7.js} +4 -4
  57. package/build/{chunk-V6HQQWCA.js → chunk-PFESKRQ3.js} +8 -8
  58. package/build/{chunk-X2NBNP2E.js → chunk-PQYPUILG.js} +3 -3
  59. package/build/{chunk-T5C43OQK.js → chunk-QGOR6CWP.js} +3 -3
  60. package/build/{chunk-6B2RYJDL.js → chunk-R7IJZ53U.js} +26 -24
  61. package/build/chunk-R7IJZ53U.js.map +1 -0
  62. package/build/{chunk-CUQUD7FS.js → chunk-RQWYBRCJ.js} +3 -3
  63. package/build/{chunk-U7NMQMEG.js → chunk-SDCA2ZYO.js} +2 -2
  64. package/build/{chunk-STQCW7A5.js → chunk-TEHIT3JS.js} +2 -3
  65. package/build/{chunk-STQCW7A5.js.map → chunk-TEHIT3JS.js.map} +1 -1
  66. package/build/{chunk-MDMFU25C.js → chunk-TFDYF6UW.js} +2 -2
  67. package/build/{chunk-V3ZO6GY5.js → chunk-TWJ2IXFS.js} +8 -8
  68. package/build/{chunk-BVM3FYNM.js → chunk-ULFNXCSJ.js} +2 -2
  69. package/build/{chunk-AGKNEEDR.js → chunk-VJXBOXVQ.js} +13 -11
  70. package/build/chunk-VJXBOXVQ.js.map +1 -0
  71. package/build/{chunk-LUM7NYOU.js → chunk-VKQPC7RS.js} +2 -2
  72. package/build/{chunk-N4WIZNPX.js → chunk-XOSGOQML.js} +2 -2
  73. package/build/{chunk-6QHN2XDV.js → chunk-YRI5HW7B.js} +33 -15
  74. package/build/chunk-YRI5HW7B.js.map +1 -0
  75. package/build/{chunk-USA5LODZ.js → chunk-ZBIKOMT2.js} +8 -8
  76. package/build/{chunk-GJRDQFCB.js → chunk-ZHZXA55V.js} +2 -2
  77. package/build/chunk-ZOAQTBFU.js +5489 -0
  78. package/build/chunk-ZOAQTBFU.js.map +1 -0
  79. package/build/{dev-DNN3IK3F.js → dev-LMJBVIN6.js} +23 -23
  80. package/build/{env-pull-NDOFC6UC.js → env-pull-SZ3UP3AS.js} +14 -14
  81. package/build/index.js +24 -24
  82. package/build/{install-FMK7BRFJ.js → install-W2S27UCI.js} +15 -15
  83. package/build/{preview-TFS7UEUA.js → preview-UHUIYO6W.js} +16 -16
  84. package/build/{publish-FHAFFJHB.js → publish-BPUUEPHR.js} +16 -16
  85. package/build/{render-command-NYTNTTHG.js → render-command-2DXDNIXL.js} +12 -12
  86. package/build/{render-command-MA7UDH5Q.js → render-command-5VWE3OKB.js} +11 -11
  87. package/build/{render-command-3DCNLQV5.js → render-command-AMEJYHKN.js} +11 -11
  88. package/build/{render-command-M4P7CP4H.js → render-command-IDDNHTNC.js} +12 -12
  89. package/build/{render-command-DGM4ETBU.js → render-command-KHMHOIGW.js} +11 -11
  90. package/build/{run-command-ERVZVLJF.js → run-command-SGO33B4C.js} +7 -7
  91. package/build/{src-M637ADEF.js → src-2RGQFQKI.js} +17 -17
  92. package/build/{src-TWDQUQWX.js → src-2UPI4DPW.js} +58 -31
  93. package/build/src-2UPI4DPW.js.map +1 -0
  94. package/build/{src-E5SPIGEE.js → src-3KXGLTSG.js} +6 -6
  95. package/build/{src-QWLA5MLC.js → src-FJVPEY4V.js} +14 -14
  96. package/build/{src-WBL43MZJ.js → src-IEVBBVLL.js} +6 -6
  97. package/build/{src-5QDQ6RFQ.js → src-X52ZO3MD.js} +4 -4
  98. package/build/{src-KHPAF4DG.js → src-XCNX6HKZ.js} +2 -2
  99. package/build/{src-HKEHYQHS.js → src-ZCXYT4MW.js} +4 -4
  100. package/build/{sync-types-WVHPSV2M.js → sync-types-GL4WG3ZS.js} +11 -11
  101. package/build/{uninstall-UKE4WSXR.js → uninstall-UW4USHS5.js} +15 -15
  102. package/package.json +2 -2
  103. package/build/EnvRemoveCommand-PRW22UJL.js.map +0 -1
  104. package/build/EnvSetCommand-M3COJ5U3.js.map +0 -1
  105. package/build/GenerateCommand-ZEAU4CXR.js +0 -15727
  106. package/build/GenerateCommand-ZEAU4CXR.js.map +0 -1
  107. package/build/ReleaseCommand-56WKXNK4.js.map +0 -1
  108. package/build/chunk-4ASXFAN7.js.map +0 -1
  109. package/build/chunk-6B2RYJDL.js.map +0 -1
  110. package/build/chunk-6QHN2XDV.js.map +0 -1
  111. package/build/chunk-AGKNEEDR.js.map +0 -1
  112. package/build/chunk-Q2SUFPGY.js.map +0 -1
  113. package/build/src-TWDQUQWX.js.map +0 -1
  114. /package/build/{DevCommand-YGD62PY3.js.map → DevCommand-36D5RTIS.js.map} +0 -0
  115. /package/build/{DevCommand-7C7OTMZ2.js.map → DevCommand-C6BQYRFU.js.map} +0 -0
  116. /package/build/{EnvPullCommand-HQZCHDVW.js.map → EnvPullCommand-MIAEMMW7.js.map} +0 -0
  117. /package/build/{InstallCommand-QYUZZTIV.js.map → InstallCommand-AHGIP2UM.js.map} +0 -0
  118. /package/build/{LoginCommand-NWXJQGCX.js.map → LoginCommand-WF6TT7QV.js.map} +0 -0
  119. /package/build/{LogoutCommand-GSDL4UZG.js.map → LogoutCommand-GHUHYROA.js.map} +0 -0
  120. /package/build/{PreviewCommand-ADQXF5OJ.js.map → PreviewCommand-K67N3DXU.js.map} +0 -0
  121. /package/build/{PreviewCommand-XVC5JUCV.js.map → PreviewCommand-PYVWQY6C.js.map} +0 -0
  122. /package/build/{PreviewCommand-63Y2QMZ3.js.map → PreviewCommand-WZDNMLQR.js.map} +0 -0
  123. /package/build/{PromoteCommand-SU2X566V.js.map → PromoteCommand-2NQ7ROC6.js.map} +0 -0
  124. /package/build/{PublishCommand-RJUSEGO7.js.map → PublishCommand-FWLZ4Q7B.js.map} +0 -0
  125. /package/build/{UninstallCommand-ZASEMR45.js.map → UninstallCommand-ATJIJUYX.js.map} +0 -0
  126. /package/build/{WhoamiCommand-4ANDNT7Y.js.map → WhoamiCommand-DVII27HG.js.map} +0 -0
  127. /package/build/{chunk-KBORAL57.js.map → chunk-3UICD2U3.js.map} +0 -0
  128. /package/build/{chunk-GGTDDK53.js.map → chunk-72KSL2UL.js.map} +0 -0
  129. /package/build/{chunk-3MBMJERV.js.map → chunk-7LW7GOIM.js.map} +0 -0
  130. /package/build/{chunk-7WQENS6J.js.map → chunk-A2ZZA4JA.js.map} +0 -0
  131. /package/build/{chunk-4H3OAZQS.js.map → chunk-B54YGGPW.js.map} +0 -0
  132. /package/build/{chunk-E7PJXDFO.js.map → chunk-B5RG5HO2.js.map} +0 -0
  133. /package/build/{chunk-GUSV4N2E.js.map → chunk-BQQQEWSQ.js.map} +0 -0
  134. /package/build/{chunk-LAVKWSGY.js.map → chunk-EBTHDX4J.js.map} +0 -0
  135. /package/build/{chunk-4BOJQTTP.js.map → chunk-GKFBUNZ7.js.map} +0 -0
  136. /package/build/{chunk-TGRXPHY6.js.map → chunk-H3ASS4MY.js.map} +0 -0
  137. /package/build/{chunk-LQXRNBJ2.js.map → chunk-HOPIBYRH.js.map} +0 -0
  138. /package/build/{chunk-HJLNJXW7.js.map → chunk-IXDWJCSQ.js.map} +0 -0
  139. /package/build/{chunk-ZBDV4YE5.js.map → chunk-JRRYR6TL.js.map} +0 -0
  140. /package/build/{chunk-PNV2OKNW.js.map → chunk-JZSXLY7P.js.map} +0 -0
  141. /package/build/{chunk-EDBJ25FR.js.map → chunk-KZY33NY5.js.map} +0 -0
  142. /package/build/{chunk-XNSO7WKJ.js.map → chunk-L7OWQEI4.js.map} +0 -0
  143. /package/build/{chunk-BSV2DJUC.js.map → chunk-LFW57BYP.js.map} +0 -0
  144. /package/build/{chunk-KAQXYUZ2.js.map → chunk-MTHAQUUR.js.map} +0 -0
  145. /package/build/{chunk-BBCT5CBT.js.map → chunk-NIEDH7Z5.js.map} +0 -0
  146. /package/build/{chunk-MDGDEDGX.js.map → chunk-NUKGEVK2.js.map} +0 -0
  147. /package/build/{chunk-P23NP3OP.js.map → chunk-NXZLDPHZ.js.map} +0 -0
  148. /package/build/{chunk-UR2HUVJ7.js.map → chunk-OKM7KSQY.js.map} +0 -0
  149. /package/build/{chunk-755IY3BR.js.map → chunk-P6JSJQO7.js.map} +0 -0
  150. /package/build/{chunk-V6HQQWCA.js.map → chunk-PFESKRQ3.js.map} +0 -0
  151. /package/build/{chunk-X2NBNP2E.js.map → chunk-PQYPUILG.js.map} +0 -0
  152. /package/build/{chunk-T5C43OQK.js.map → chunk-QGOR6CWP.js.map} +0 -0
  153. /package/build/{chunk-CUQUD7FS.js.map → chunk-RQWYBRCJ.js.map} +0 -0
  154. /package/build/{chunk-U7NMQMEG.js.map → chunk-SDCA2ZYO.js.map} +0 -0
  155. /package/build/{chunk-MDMFU25C.js.map → chunk-TFDYF6UW.js.map} +0 -0
  156. /package/build/{chunk-V3ZO6GY5.js.map → chunk-TWJ2IXFS.js.map} +0 -0
  157. /package/build/{chunk-BVM3FYNM.js.map → chunk-ULFNXCSJ.js.map} +0 -0
  158. /package/build/{chunk-LUM7NYOU.js.map → chunk-VKQPC7RS.js.map} +0 -0
  159. /package/build/{chunk-N4WIZNPX.js.map → chunk-XOSGOQML.js.map} +0 -0
  160. /package/build/{chunk-USA5LODZ.js.map → chunk-ZBIKOMT2.js.map} +0 -0
  161. /package/build/{chunk-GJRDQFCB.js.map → chunk-ZHZXA55V.js.map} +0 -0
  162. /package/build/{dev-DNN3IK3F.js.map → dev-LMJBVIN6.js.map} +0 -0
  163. /package/build/{env-pull-NDOFC6UC.js.map → env-pull-SZ3UP3AS.js.map} +0 -0
  164. /package/build/{install-FMK7BRFJ.js.map → install-W2S27UCI.js.map} +0 -0
  165. /package/build/{preview-TFS7UEUA.js.map → preview-UHUIYO6W.js.map} +0 -0
  166. /package/build/{publish-FHAFFJHB.js.map → publish-BPUUEPHR.js.map} +0 -0
  167. /package/build/{render-command-NYTNTTHG.js.map → render-command-2DXDNIXL.js.map} +0 -0
  168. /package/build/{render-command-MA7UDH5Q.js.map → render-command-5VWE3OKB.js.map} +0 -0
  169. /package/build/{render-command-3DCNLQV5.js.map → render-command-AMEJYHKN.js.map} +0 -0
  170. /package/build/{render-command-M4P7CP4H.js.map → render-command-IDDNHTNC.js.map} +0 -0
  171. /package/build/{render-command-DGM4ETBU.js.map → render-command-KHMHOIGW.js.map} +0 -0
  172. /package/build/{run-command-ERVZVLJF.js.map → run-command-SGO33B4C.js.map} +0 -0
  173. /package/build/{src-M637ADEF.js.map → src-2RGQFQKI.js.map} +0 -0
  174. /package/build/{src-5QDQ6RFQ.js.map → src-3KXGLTSG.js.map} +0 -0
  175. /package/build/{src-QWLA5MLC.js.map → src-FJVPEY4V.js.map} +0 -0
  176. /package/build/{src-WBL43MZJ.js.map → src-IEVBBVLL.js.map} +0 -0
  177. /package/build/{src-E5SPIGEE.js.map → src-X52ZO3MD.js.map} +0 -0
  178. /package/build/{src-HKEHYQHS.js.map → src-XCNX6HKZ.js.map} +0 -0
  179. /package/build/{src-KHPAF4DG.js.map → src-ZCXYT4MW.js.map} +0 -0
  180. /package/build/{sync-types-WVHPSV2M.js.map → sync-types-GL4WG3ZS.js.map} +0 -0
  181. /package/build/{uninstall-UKE4WSXR.js.map → uninstall-UW4USHS5.js.map} +0 -0
@@ -1,19 +1,28 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
+ import {
4
+ useDevCenterClient
5
+ } from "./chunk-ZOAQTBFU.js";
3
6
  import {
4
7
  useTunnel
5
- } from "./chunk-4BOJQTTP.js";
6
- import "./chunk-NDBZNWWI.js";
8
+ } from "./chunk-GKFBUNZ7.js";
9
+ import {
10
+ wixCliAction,
11
+ wixCliAppFlowFileUploadStarted,
12
+ wixCliAppFlowStepsAnswers,
13
+ wixCliAppFlowUploadEnded,
14
+ wixCliAppsFlowDeploymentStatusSrc11Evid5232
15
+ } from "./chunk-LKYWHOMW.js";
7
16
  import {
8
17
  PlatformLink,
9
18
  useARMClient,
10
19
  useUpdateDeploymentTopology,
11
20
  useUpdateManifest
12
- } from "./chunk-6QHN2XDV.js";
21
+ } from "./chunk-YRI5HW7B.js";
13
22
  import {
14
23
  createPackageManager,
15
24
  getRepoType
16
- } from "./chunk-CUQUD7FS.js";
25
+ } from "./chunk-RQWYBRCJ.js";
17
26
  import {
18
27
  execa
19
28
  } from "./chunk-RWTQFIPN.js";
@@ -30,28 +39,51 @@ import {
30
39
  looseComponentSchema,
31
40
  parseLooseAppManifest,
32
41
  useProjectModel
33
- } from "./chunk-4ASXFAN7.js";
42
+ } from "./chunk-G662LNCI.js";
34
43
  import {
35
44
  useHttpClient
36
- } from "./chunk-KBORAL57.js";
37
- import "./chunk-BVM3FYNM.js";
45
+ } from "./chunk-3UICD2U3.js";
46
+ import {
47
+ usePanoramaMethodLogger
48
+ } from "./chunk-ULFNXCSJ.js";
38
49
  import {
50
+ BiProvider,
51
+ ErrorViewer,
39
52
  SiteAuthProvider,
40
- useDebugLog
41
- } from "./chunk-6PYC5DBT.js";
53
+ TimeoutError,
54
+ openBrowser,
55
+ pRetry,
56
+ pWaitFor,
57
+ resolveUrl,
58
+ serializer,
59
+ useBiLogger,
60
+ useDebugLog,
61
+ useErrorReporter
62
+ } from "./chunk-OBQKLL5P.js";
42
63
  import "./chunk-WMCHVSMU.js";
43
- import "./chunk-GUSV4N2E.js";
64
+ import {
65
+ I18nProvider,
66
+ Trans,
67
+ useTranslation
68
+ } from "./chunk-BQQQEWSQ.js";
44
69
  import "./chunk-KJ37XZQA.js";
45
70
  import {
71
+ Alert,
72
+ Badge,
46
73
  Box_default,
47
74
  ConfirmInput,
75
+ Key,
76
+ PointerIcon,
77
+ SelectInput,
78
+ SelectOptionAvailability,
48
79
  Spinner,
49
80
  Text,
50
81
  createRendererToString,
51
82
  useAsync,
52
83
  useAsyncCallback,
53
- useExit
54
- } from "./chunk-LQXRNBJ2.js";
84
+ useExit,
85
+ use_input_default
86
+ } from "./chunk-HOPIBYRH.js";
55
87
  import {
56
88
  require_react
57
89
  } from "./chunk-NRAQAV6T.js";
@@ -63,20 +95,24 @@ import "./chunk-C4SUTB4O.js";
63
95
  import {
64
96
  readUserConfig,
65
97
  updateUserConfig
66
- } from "./chunk-P23NP3OP.js";
98
+ } from "./chunk-NXZLDPHZ.js";
67
99
  import "./chunk-II7O6SCF.js";
68
- import "./chunk-RL7RA2JG.js";
100
+ import {
101
+ getTestOverrides
102
+ } from "./chunk-RL7RA2JG.js";
69
103
  import {
70
104
  pathExists,
71
105
  readJson,
72
106
  writeJson
73
- } from "./chunk-MDGDEDGX.js";
107
+ } from "./chunk-NUKGEVK2.js";
74
108
  import {
75
109
  external_exports
76
110
  } from "./chunk-F43XHKVL.js";
77
111
  import {
112
+ CliError,
113
+ CliErrorCode,
78
114
  require_lib
79
- } from "./chunk-STQCW7A5.js";
115
+ } from "./chunk-TEHIT3JS.js";
80
116
  import {
81
117
  __commonJS,
82
118
  __dirname,
@@ -2997,9 +3033,9 @@ ${trace}`);
2997
3033
  function isMemberExpressionLike(node) {
2998
3034
  return (0, _index.isMemberExpression)(node) || (0, _index.isMetaProperty)(node);
2999
3035
  }
3000
- function matchesPattern(member, match3, allowPartial) {
3036
+ function matchesPattern(member, match12, allowPartial) {
3001
3037
  if (!isMemberExpressionLike(member)) return false;
3002
- const parts = Array.isArray(match3) ? match3 : match3.split(".");
3038
+ const parts = Array.isArray(match12) ? match12 : match12.split(".");
3003
3039
  const nodes = [];
3004
3040
  let node;
3005
3041
  for (node = member; isMemberExpressionLike(node); node = (_object = node.object) != null ? _object : node.meta) {
@@ -3039,8 +3075,8 @@ ${trace}`);
3039
3075
  });
3040
3076
  exports2.default = buildMatchMemberExpression;
3041
3077
  var _matchesPattern = require_matchesPattern();
3042
- function buildMatchMemberExpression(match3, allowPartial) {
3043
- const parts = match3.split(".");
3078
+ function buildMatchMemberExpression(match12, allowPartial) {
3079
+ const parts = match12.split(".");
3044
3080
  return (member) => (0, _matchesPattern.default)(member, parts, allowPartial);
3045
3081
  }
3046
3082
  }
@@ -3075,9 +3111,9 @@ ${trace}`);
3075
3111
  Object.defineProperty(exports2, "__esModule", {
3076
3112
  value: true
3077
3113
  });
3078
- exports2.default = isType2;
3114
+ exports2.default = isType4;
3079
3115
  var _index = require_definitions();
3080
- function isType2(nodeType, targetType) {
3116
+ function isType4(nodeType, targetType) {
3081
3117
  if (nodeType === targetType) return true;
3082
3118
  if (nodeType == null) return false;
3083
3119
  if (_index.ALIAS_KEYS[targetType]) return false;
@@ -3470,8 +3506,8 @@ ${trace}`);
3470
3506
  default:
3471
3507
  if (ch >= 48 && ch <= 55) {
3472
3508
  const startPos = pos2 - 1;
3473
- const match3 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
3474
- let octalStr = match3[0];
3509
+ const match12 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
3510
+ let octalStr = match12[0];
3475
3511
  let octal = parseInt(octalStr, 8);
3476
3512
  if (octal > 255) {
3477
3513
  octalStr = octalStr.slice(0, -1);
@@ -3873,9 +3909,9 @@ ${errors.join("\n")}`);
3873
3909
  }
3874
3910
  function defineType(type, opts = {}) {
3875
3911
  const inherits = opts.inherits && store[opts.inherits] || {};
3876
- let fields2 = opts.fields;
3877
- if (!fields2) {
3878
- fields2 = {};
3912
+ let fields4 = opts.fields;
3913
+ if (!fields4) {
3914
+ fields4 = {};
3879
3915
  if (inherits.fields) {
3880
3916
  const keys = Object.getOwnPropertyNames(inherits.fields);
3881
3917
  for (const key2 of keys) {
@@ -3884,7 +3920,7 @@ ${errors.join("\n")}`);
3884
3920
  if (Array.isArray(def) ? def.length > 0 : def && typeof def === "object") {
3885
3921
  throw new Error("field defaults can only be primitives or empty arrays currently");
3886
3922
  }
3887
- fields2[key2] = {
3923
+ fields4[key2] = {
3888
3924
  default: Array.isArray(def) ? [] : def,
3889
3925
  optional: field.optional,
3890
3926
  deprecated: field.deprecated,
@@ -3905,10 +3941,10 @@ ${errors.join("\n")}`);
3905
3941
  DEPRECATED_KEYS[opts.deprecatedAlias] = type;
3906
3942
  }
3907
3943
  for (const key2 of visitor.concat(builder)) {
3908
- fields2[key2] = fields2[key2] || {};
3944
+ fields4[key2] = fields4[key2] || {};
3909
3945
  }
3910
- for (const key2 of Object.keys(fields2)) {
3911
- const field = fields2[key2];
3946
+ for (const key2 of Object.keys(fields4)) {
3947
+ const field = fields4[key2];
3912
3948
  if (field.default !== void 0 && !builder.includes(key2)) {
3913
3949
  field.optional = true;
3914
3950
  }
@@ -3925,7 +3961,7 @@ ${errors.join("\n")}`);
3925
3961
  }
3926
3962
  VISITOR_KEYS[type] = opts.visitor = visitor;
3927
3963
  BUILDER_KEYS[type] = opts.builder = builder;
3928
- NODE_FIELDS[type] = opts.fields = fields2;
3964
+ NODE_FIELDS[type] = opts.fields = fields4;
3929
3965
  ALIAS_KEYS[type] = opts.aliases = aliases;
3930
3966
  aliases.forEach((alias) => {
3931
3967
  FLIPPED_ALIAS_KEYS[alias] = FLIPPED_ALIAS_KEYS[alias] || [];
@@ -4312,9 +4348,9 @@ ${errors.join("\n")}`);
4312
4348
  }
4313
4349
  }),
4314
4350
  validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key2, node) {
4315
- const match3 = /\.(\w+)$/.exec(key2.toString());
4316
- if (!match3) return;
4317
- const [, parentKey] = match3;
4351
+ const match12 = /\.(\w+)$/.exec(key2.toString());
4352
+ if (!match12) return;
4353
+ const [, parentKey] = match12;
4318
4354
  const nonComp = {
4319
4355
  computed: false
4320
4356
  };
@@ -4602,9 +4638,9 @@ ${errors.join("\n")}`);
4602
4638
  }
4603
4639
  }),
4604
4640
  validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key2) {
4605
- const match3 = /(\w+)\[(\d+)\]/.exec(key2.toString());
4606
- if (!match3) throw new Error("Internal Babel error: malformed key.");
4607
- const [, listKey, index] = match3;
4641
+ const match12 = /(\w+)\[(\d+)\]/.exec(key2.toString());
4642
+ if (!match12) throw new Error("Internal Babel error: malformed key.");
4643
+ const [, listKey, index] = match12;
4608
4644
  if (parent[listKey].length > +index + 1) {
4609
4645
  throw new TypeError(`RestElement must be last element of ${listKey}`);
4610
4646
  }
@@ -7103,9 +7139,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
7103
7139
  var _index = require_definitions();
7104
7140
  function validate(node, key2, val) {
7105
7141
  if (!node) return;
7106
- const fields2 = _index.NODE_FIELDS[node.type];
7107
- if (!fields2) return;
7108
- const field = fields2[key2];
7142
+ const fields4 = _index.NODE_FIELDS[node.type];
7143
+ if (!fields4) return;
7144
+ const field = fields4[key2];
7109
7145
  validateField(node, key2, val, field);
7110
7146
  validateChild(node, key2, val);
7111
7147
  }
@@ -12311,7 +12347,7 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
12311
12347
  name += (0, _helperValidatorIdentifier.isIdentifierChar)(c2.codePointAt(0)) ? c2 : "-";
12312
12348
  }
12313
12349
  name = name.replace(/^[-0-9]+/, "");
12314
- name = name.replace(/[-\s]+(.)?/g, function(match3, c2) {
12350
+ name = name.replace(/[-\s]+(.)?/g, function(match12, c2) {
12315
12351
  return c2 ? c2.toUpperCase() : "";
12316
12352
  });
12317
12353
  if (!(0, _isValidIdentifier.default)(name)) {
@@ -13072,9 +13108,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
13072
13108
  if (a.type !== b.type) {
13073
13109
  return false;
13074
13110
  }
13075
- const fields2 = Object.keys(_index.NODE_FIELDS[a.type] || a.type);
13111
+ const fields4 = Object.keys(_index.NODE_FIELDS[a.type] || a.type);
13076
13112
  const visitorKeys = _index.VISITOR_KEYS[a.type];
13077
- for (const field of fields2) {
13113
+ for (const field of fields4) {
13078
13114
  const val_a = a[field];
13079
13115
  const val_b = b[field];
13080
13116
  if (typeof val_a !== typeof val_b) {
@@ -19619,8 +19655,8 @@ ${str}
19619
19655
  default:
19620
19656
  if (ch >= 48 && ch <= 55) {
19621
19657
  const startPos = pos2 - 1;
19622
- const match3 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
19623
- let octalStr = match3[0];
19658
+ const match12 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
19659
+ let octalStr = match12[0];
19624
19660
  let octal = parseInt(octalStr, 8);
19625
19661
  if (octal > 255) {
19626
19662
  octalStr = octalStr.slice(0, -1);
@@ -28751,16 +28787,16 @@ ${str}
28751
28787
  value: true
28752
28788
  });
28753
28789
  exports2.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
28754
- exports2.matchToToken = function(match3) {
28755
- var token2 = { type: "invalid", value: match3[0], closed: void 0 };
28756
- if (match3[1]) token2.type = "string", token2.closed = !!(match3[3] || match3[4]);
28757
- else if (match3[5]) token2.type = "comment";
28758
- else if (match3[6]) token2.type = "comment", token2.closed = !!match3[7];
28759
- else if (match3[8]) token2.type = "regex";
28760
- else if (match3[9]) token2.type = "number";
28761
- else if (match3[10]) token2.type = "name";
28762
- else if (match3[11]) token2.type = "punctuator";
28763
- else if (match3[12]) token2.type = "whitespace";
28790
+ exports2.matchToToken = function(match12) {
28791
+ var token2 = { type: "invalid", value: match12[0], closed: void 0 };
28792
+ if (match12[1]) token2.type = "string", token2.closed = !!(match12[3] || match12[4]);
28793
+ else if (match12[5]) token2.type = "comment";
28794
+ else if (match12[6]) token2.type = "comment", token2.closed = !!match12[7];
28795
+ else if (match12[8]) token2.type = "regex";
28796
+ else if (match12[9]) token2.type = "number";
28797
+ else if (match12[10]) token2.type = "name";
28798
+ else if (match12[11]) token2.type = "punctuator";
28799
+ else if (match12[12]) token2.type = "whitespace";
28764
28800
  return token2;
28765
28801
  };
28766
28802
  }
@@ -28825,11 +28861,11 @@ ${str}
28825
28861
  return token2.type;
28826
28862
  };
28827
28863
  tokenize = function* (text) {
28828
- let match3;
28829
- while (match3 = jsTokens.default.exec(text)) {
28830
- const token2 = jsTokens.matchToToken(match3);
28864
+ let match12;
28865
+ while (match12 = jsTokens.default.exec(text)) {
28866
+ const token2 = jsTokens.matchToToken(match12);
28831
28867
  yield {
28832
- type: getTokenType(token2, match3.index, text),
28868
+ type: getTokenType(token2, match12.index, text),
28833
28869
  value: token2.value
28834
28870
  };
28835
28871
  }
@@ -31093,14 +31129,14 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
31093
31129
  if (str.length > 100) {
31094
31130
  return;
31095
31131
  }
31096
- var match3 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
31132
+ var match12 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
31097
31133
  str
31098
31134
  );
31099
- if (!match3) {
31135
+ if (!match12) {
31100
31136
  return;
31101
31137
  }
31102
- var n = parseFloat(match3[1]);
31103
- var type = (match3[2] || "ms").toLowerCase();
31138
+ var n = parseFloat(match12[1]);
31139
+ var type = (match12[2] || "ms").toLowerCase();
31104
31140
  switch (type) {
31105
31141
  case "years":
31106
31142
  case "year":
@@ -31230,19 +31266,19 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
31230
31266
  args.unshift("%O");
31231
31267
  }
31232
31268
  let index = 0;
31233
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match3, format) => {
31234
- if (match3 === "%%") {
31269
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match12, format) => {
31270
+ if (match12 === "%%") {
31235
31271
  return "%";
31236
31272
  }
31237
31273
  index++;
31238
31274
  const formatter = createDebug.formatters[format];
31239
31275
  if (typeof formatter === "function") {
31240
31276
  const val = args[index];
31241
- match3 = formatter.call(self2, val);
31277
+ match12 = formatter.call(self2, val);
31242
31278
  args.splice(index, 1);
31243
31279
  index--;
31244
31280
  }
31245
- return match3;
31281
+ return match12;
31246
31282
  });
31247
31283
  createDebug.formatArgs.call(self2, args);
31248
31284
  const logFn = self2.log || createDebug.log;
@@ -31476,12 +31512,12 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
31476
31512
  args.splice(1, 0, c2, "color: inherit");
31477
31513
  let index = 0;
31478
31514
  let lastC = 0;
31479
- args[0].replace(/%[a-zA-Z%]/g, (match3) => {
31480
- if (match3 === "%%") {
31515
+ args[0].replace(/%[a-zA-Z%]/g, (match12) => {
31516
+ if (match12 === "%%") {
31481
31517
  return;
31482
31518
  }
31483
31519
  index++;
31484
- if (match3 === "%c") {
31520
+ if (match12 === "%c") {
31485
31521
  lastC = index;
31486
31522
  }
31487
31523
  });
@@ -33777,8 +33813,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
33777
33813
  continue;
33778
33814
  }
33779
33815
  const kind = decodeInteger(reader, 0);
33780
- const fields2 = decodeInteger(reader, 0);
33781
- const hasName = fields2 & 1;
33816
+ const fields4 = decodeInteger(reader, 0);
33817
+ const hasName = fields4 & 1;
33782
33818
  const scope = hasName ? [line2, column2, 0, 0, kind, decodeInteger(reader, 0)] : [line2, column2, 0, 0, kind];
33783
33819
  let vars = EMPTY;
33784
33820
  if (hasMoreVlq(reader, length)) {
@@ -33808,8 +33844,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
33808
33844
  state[0] = encodeInteger(writer, startLine, state[0]);
33809
33845
  encodeInteger(writer, startColumn, 0);
33810
33846
  encodeInteger(writer, kind, 0);
33811
- const fields2 = scope.length === 6 ? 1 : 0;
33812
- encodeInteger(writer, fields2, 0);
33847
+ const fields4 = scope.length === 6 ? 1 : 0;
33848
+ encodeInteger(writer, fields4, 0);
33813
33849
  if (scope.length === 6) encodeInteger(writer, scope[5], 0);
33814
33850
  for (const v of vars) {
33815
33851
  encodeInteger(writer, v, 0);
@@ -33851,10 +33887,10 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
33851
33887
  last[3] = genColumn;
33852
33888
  continue;
33853
33889
  }
33854
- const fields2 = decodeInteger(reader, 0);
33855
- const hasDefinition = fields2 & 1;
33856
- const hasCallsite = fields2 & 2;
33857
- const hasScope = fields2 & 4;
33890
+ const fields4 = decodeInteger(reader, 0);
33891
+ const hasDefinition = fields4 & 1;
33892
+ const hasCallsite = fields4 & 2;
33893
+ const hasScope = fields4 & 4;
33858
33894
  let callsite = null;
33859
33895
  let bindings = EMPTY;
33860
33896
  let range;
@@ -33941,8 +33977,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
33941
33977
  writer.write(comma);
33942
33978
  }
33943
33979
  state[1] = encodeInteger(writer, range[1], state[1]);
33944
- const fields2 = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
33945
- encodeInteger(writer, fields2, 0);
33980
+ const fields4 = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
33981
+ encodeInteger(writer, fields4, 0);
33946
33982
  if (range.length === 6) {
33947
33983
  const { 4: sourcesIndex, 5: scopesIndex } = range;
33948
33984
  if (sourcesIndex !== state[2]) {
@@ -34103,13 +34139,13 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
34103
34139
  return /^[.?#]/.test(input);
34104
34140
  }
34105
34141
  function parseAbsoluteUrl(input) {
34106
- const match3 = urlRegex.exec(input);
34107
- return makeUrl(match3[1], match3[2] || "", match3[3], match3[4] || "", match3[5] || "/", match3[6] || "", match3[7] || "");
34142
+ const match12 = urlRegex.exec(input);
34143
+ return makeUrl(match12[1], match12[2] || "", match12[3], match12[4] || "", match12[5] || "/", match12[6] || "", match12[7] || "");
34108
34144
  }
34109
34145
  function parseFileUrl(input) {
34110
- const match3 = fileRegex.exec(input);
34111
- const path = match3[2];
34112
- return makeUrl("file:", "", match3[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match3[3] || "", match3[4] || "");
34146
+ const match12 = fileRegex.exec(input);
34147
+ const path = match12[2];
34148
+ return makeUrl("file:", "", match12[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match12[3] || "", match12[4] || "");
34113
34149
  }
34114
34150
  function makeUrl(scheme, user, host, port, path, query, hash) {
34115
34151
  return {
@@ -35622,7 +35658,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
35622
35658
  return false;
35623
35659
  }
35624
35660
  }
35625
- function isType2(node) {
35661
+ function isType4(node) {
35626
35662
  return isLiteral(node) || isObjectExpression(node) || isArrayExpression(node) || isIdentifier(node) || isMemberExpression(node);
35627
35663
  }
35628
35664
  var nodes = exports2.nodes = {
@@ -35658,7 +35694,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
35658
35694
  VariableDeclaration(node) {
35659
35695
  for (let i = 0; i < node.declarations.length; i++) {
35660
35696
  const declar = node.declarations[i];
35661
- let enabled = isHelper(declar.id) && !isType2(declar.init);
35697
+ let enabled = isHelper(declar.id) && !isType4(declar.init);
35662
35698
  if (!enabled && declar.init) {
35663
35699
  const state = crawl(declar.init);
35664
35700
  enabled = isHelper(declar.init) && state.hasCall || state.hasFunction;
@@ -43239,7 +43275,7 @@ ${" ".repeat(indentSize)}`);
43239
43275
  isIdentifier,
43240
43276
  isLiteral,
43241
43277
  isStringLiteral,
43242
- isType: isType2,
43278
+ isType: isType4,
43243
43279
  matchesPattern: _matchesPattern
43244
43280
  } = _t;
43245
43281
  function matchesPattern(pattern, allowPartial) {
@@ -43269,7 +43305,7 @@ ${" ".repeat(indentSize)}`);
43269
43305
  };
43270
43306
  }
43271
43307
  function isNodeType(type) {
43272
- return isType2(this.type, type);
43308
+ return isType4(this.type, type);
43273
43309
  }
43274
43310
  function canHaveVariableDeclarationOrExpression() {
43275
43311
  return (this.key === "init" || this.key === "left") && this.parentPath.isFor();
@@ -43525,13 +43561,13 @@ ${" ".repeat(indentSize)}`);
43525
43561
  for (const prop of props) {
43526
43562
  if (!prop.isProperty()) continue;
43527
43563
  const key2 = prop.get("key");
43528
- let match3 = prop.isnt("computed") && key2.isIdentifier({
43564
+ let match12 = prop.isnt("computed") && key2.isIdentifier({
43529
43565
  name: targetName
43530
43566
  });
43531
- match3 = match3 || key2.isLiteral({
43567
+ match12 = match12 || key2.isLiteral({
43532
43568
  value: targetName
43533
43569
  });
43534
- if (match3) return prop.get("value").resolve(dangerous, resolved);
43570
+ if (match12) return prop.get("value").resolve(dangerous, resolved);
43535
43571
  }
43536
43572
  } else if (target.isArrayExpression() && !isNaN(+targetName)) {
43537
43573
  const elems = target.get("elements");
@@ -45947,23 +45983,23 @@ ${" ".repeat(indentSize)}`);
45947
45983
  return null;
45948
45984
  }
45949
45985
  options = options || {};
45950
- var match3 = null;
45986
+ var match12 = null;
45951
45987
  if (!options.rtl) {
45952
- match3 = version.match(safeRe[t.COERCE]);
45988
+ match12 = version.match(safeRe[t.COERCE]);
45953
45989
  } else {
45954
45990
  var next;
45955
- while ((next = safeRe[t.COERCERTL].exec(version)) && (!match3 || match3.index + match3[0].length !== version.length)) {
45956
- if (!match3 || next.index + next[0].length !== match3.index + match3[0].length) {
45957
- match3 = next;
45991
+ while ((next = safeRe[t.COERCERTL].exec(version)) && (!match12 || match12.index + match12[0].length !== version.length)) {
45992
+ if (!match12 || next.index + next[0].length !== match12.index + match12[0].length) {
45993
+ match12 = next;
45958
45994
  }
45959
45995
  safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
45960
45996
  }
45961
45997
  safeRe[t.COERCERTL].lastIndex = -1;
45962
45998
  }
45963
- if (match3 === null) {
45999
+ if (match12 === null) {
45964
46000
  return null;
45965
46001
  }
45966
- return parse3(match3[2] + "." + (match3[3] || "0") + "." + (match3[4] || "0"), options);
46002
+ return parse3(match12[2] + "." + (match12[3] || "0") + "." + (match12[4] || "0"), options);
45967
46003
  }
45968
46004
  }
45969
46005
  });
@@ -51172,11 +51208,11 @@ ${" ".repeat(indentSize)}`);
51172
51208
  }
51173
51209
  for (var name in all) {
51174
51210
  var type = all[name];
51175
- var match3 = query.match(type.regexp);
51176
- if (match3) {
51211
+ var match12 = query.match(type.regexp);
51212
+ if (match12) {
51177
51213
  node.type = name;
51178
51214
  for (var i = 0; i < type.matches.length; i++) {
51179
- node[type.matches[i]] = match3[i + 1];
51215
+ node[type.matches[i]] = match12[i + 1];
51180
51216
  }
51181
51217
  return node;
51182
51218
  }
@@ -54202,23 +54238,23 @@ ${" ".repeat(indentSize)}`);
54202
54238
  return null;
54203
54239
  }
54204
54240
  options = options || {};
54205
- var match3 = null;
54241
+ var match12 = null;
54206
54242
  if (!options.rtl) {
54207
- match3 = version.match(safeRe[t.COERCE]);
54243
+ match12 = version.match(safeRe[t.COERCE]);
54208
54244
  } else {
54209
54245
  var next;
54210
- while ((next = safeRe[t.COERCERTL].exec(version)) && (!match3 || match3.index + match3[0].length !== version.length)) {
54211
- if (!match3 || next.index + next[0].length !== match3.index + match3[0].length) {
54212
- match3 = next;
54246
+ while ((next = safeRe[t.COERCERTL].exec(version)) && (!match12 || match12.index + match12[0].length !== version.length)) {
54247
+ if (!match12 || next.index + next[0].length !== match12.index + match12[0].length) {
54248
+ match12 = next;
54213
54249
  }
54214
54250
  safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
54215
54251
  }
54216
54252
  safeRe[t.COERCERTL].lastIndex = -1;
54217
54253
  }
54218
- if (match3 === null) {
54254
+ if (match12 === null) {
54219
54255
  return null;
54220
54256
  }
54221
- return parse3(match3[2] + "." + (match3[3] || "0") + "." + (match3[4] || "0"), options);
54257
+ return parse3(match12[2] + "." + (match12[3] || "0") + "." + (match12[4] || "0"), options);
54222
54258
  }
54223
54259
  }
54224
54260
  });
@@ -58665,8 +58701,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
58665
58701
  const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast);
58666
58702
  if (typeof options.filename === "string" && lastComment) {
58667
58703
  try {
58668
- const match3 = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment);
58669
- const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match3[1]), "utf8");
58704
+ const match12 = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment);
58705
+ const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match12[1]), "utf8");
58670
58706
  inputMap = _convertSourceMap().fromJSON(inputMapContent);
58671
58707
  } catch (err) {
58672
58708
  debug("discarding unknown file input sourcemap", err);
@@ -63798,23 +63834,23 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
63798
63834
  return null;
63799
63835
  }
63800
63836
  options = options || {};
63801
- var match3 = null;
63837
+ var match12 = null;
63802
63838
  if (!options.rtl) {
63803
- match3 = version.match(safeRe[t.COERCE]);
63839
+ match12 = version.match(safeRe[t.COERCE]);
63804
63840
  } else {
63805
63841
  var next;
63806
- while ((next = safeRe[t.COERCERTL].exec(version)) && (!match3 || match3.index + match3[0].length !== version.length)) {
63807
- if (!match3 || next.index + next[0].length !== match3.index + match3[0].length) {
63808
- match3 = next;
63842
+ while ((next = safeRe[t.COERCERTL].exec(version)) && (!match12 || match12.index + match12[0].length !== version.length)) {
63843
+ if (!match12 || next.index + next[0].length !== match12.index + match12[0].length) {
63844
+ match12 = next;
63809
63845
  }
63810
63846
  safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
63811
63847
  }
63812
63848
  safeRe[t.COERCERTL].lastIndex = -1;
63813
63849
  }
63814
- if (match3 === null) {
63850
+ if (match12 === null) {
63815
63851
  return null;
63816
63852
  }
63817
- return parse3(match3[2] + "." + (match3[3] || "0") + "." + (match3[4] || "0"), options);
63853
+ return parse3(match12[2] + "." + (match12[3] || "0") + "." + (match12[4] || "0"), options);
63818
63854
  }
63819
63855
  }
63820
63856
  });
@@ -66584,13 +66620,13 @@ module.exports = function(api) {
66584
66620
  var encodedSeparatorRegEx = /%2f|%5c/i;
66585
66621
  var emittedPackageWarnings = /* @__PURE__ */ new Set();
66586
66622
  var doubleSlashRegEx = /[/\\]{2}/;
66587
- function emitInvalidSegmentDeprecation(target, request, match3, packageJsonUrl, internal, base, isTarget) {
66623
+ function emitInvalidSegmentDeprecation(target, request, match12, packageJsonUrl, internal, base, isTarget) {
66588
66624
  if (_process().noDeprecation) {
66589
66625
  return;
66590
66626
  }
66591
66627
  const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl);
66592
66628
  const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null;
66593
- _process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match3 ? "" : `matched to "${match3}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
66629
+ _process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match12 ? "" : `matched to "${match12}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
66594
66630
  }
66595
66631
  function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
66596
66632
  if (_process().noDeprecation) {
@@ -66700,16 +66736,16 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
66700
66736
  function exportsNotFound(subpath, packageJsonUrl, base) {
66701
66737
  return new ERR_PACKAGE_PATH_NOT_EXPORTED((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, base && (0, _url().fileURLToPath)(base));
66702
66738
  }
66703
- function throwInvalidSubpath(request, match3, packageJsonUrl, internal, base) {
66704
- const reason = `request is not a valid match in pattern "${match3}" for the "${internal ? "imports" : "exports"}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`;
66739
+ function throwInvalidSubpath(request, match12, packageJsonUrl, internal, base) {
66740
+ const reason = `request is not a valid match in pattern "${match12}" for the "${internal ? "imports" : "exports"}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`;
66705
66741
  throw new ERR_INVALID_MODULE_SPECIFIER(request, reason, base && (0, _url().fileURLToPath)(base));
66706
66742
  }
66707
66743
  function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
66708
66744
  target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
66709
66745
  return new ERR_INVALID_PACKAGE_TARGET((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, target, internal, base && (0, _url().fileURLToPath)(base));
66710
66746
  }
66711
- function resolvePackageTargetString(target, subpath, match3, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
66712
- if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(match3, target, packageJsonUrl, internal, base);
66747
+ function resolvePackageTargetString(target, subpath, match12, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
66748
+ if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(match12, target, packageJsonUrl, internal, base);
66713
66749
  if (!target.startsWith("./")) {
66714
66750
  if (internal && !target.startsWith("../") && !target.startsWith("/")) {
66715
66751
  let isURL2 = false;
@@ -66723,33 +66759,33 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
66723
66759
  return packageResolve(exportTarget, packageJsonUrl, conditions);
66724
66760
  }
66725
66761
  }
66726
- throw invalidPackageTarget(match3, target, packageJsonUrl, internal, base);
66762
+ throw invalidPackageTarget(match12, target, packageJsonUrl, internal, base);
66727
66763
  }
66728
66764
  if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {
66729
66765
  if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
66730
66766
  if (!isPathMap) {
66731
- const request = pattern ? match3.replace("*", () => subpath) : match3 + subpath;
66767
+ const request = pattern ? match12.replace("*", () => subpath) : match12 + subpath;
66732
66768
  const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
66733
- emitInvalidSegmentDeprecation(resolvedTarget, request, match3, packageJsonUrl, internal, base, true);
66769
+ emitInvalidSegmentDeprecation(resolvedTarget, request, match12, packageJsonUrl, internal, base, true);
66734
66770
  }
66735
66771
  } else {
66736
- throw invalidPackageTarget(match3, target, packageJsonUrl, internal, base);
66772
+ throw invalidPackageTarget(match12, target, packageJsonUrl, internal, base);
66737
66773
  }
66738
66774
  }
66739
66775
  const resolved = new (_url()).URL(target, packageJsonUrl);
66740
66776
  const resolvedPath = resolved.pathname;
66741
66777
  const packagePath = new (_url()).URL(".", packageJsonUrl).pathname;
66742
- if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match3, target, packageJsonUrl, internal, base);
66778
+ if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match12, target, packageJsonUrl, internal, base);
66743
66779
  if (subpath === "") return resolved;
66744
66780
  if (invalidSegmentRegEx.exec(subpath) !== null) {
66745
- const request = pattern ? match3.replace("*", () => subpath) : match3 + subpath;
66781
+ const request = pattern ? match12.replace("*", () => subpath) : match12 + subpath;
66746
66782
  if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {
66747
66783
  if (!isPathMap) {
66748
66784
  const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
66749
- emitInvalidSegmentDeprecation(resolvedTarget, request, match3, packageJsonUrl, internal, base, false);
66785
+ emitInvalidSegmentDeprecation(resolvedTarget, request, match12, packageJsonUrl, internal, base, false);
66750
66786
  }
66751
66787
  } else {
66752
- throwInvalidSubpath(request, match3, packageJsonUrl, internal, base);
66788
+ throwInvalidSubpath(request, match12, packageJsonUrl, internal, base);
66753
66789
  }
66754
66790
  }
66755
66791
  if (pattern) {
@@ -66838,14 +66874,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
66838
66874
  }
66839
66875
  return isConditionalSugar;
66840
66876
  }
66841
- function emitTrailingSlashPatternDeprecation(match3, pjsonUrl, base) {
66877
+ function emitTrailingSlashPatternDeprecation(match12, pjsonUrl, base) {
66842
66878
  if (_process().noDeprecation) {
66843
66879
  return;
66844
66880
  }
66845
66881
  const pjsonPath = (0, _url().fileURLToPath)(pjsonUrl);
66846
- if (emittedPackageWarnings.has(pjsonPath + "|" + match3)) return;
66847
- emittedPackageWarnings.add(pjsonPath + "|" + match3);
66848
- _process().emitWarning(`Use of deprecated trailing slash pattern mapping "${match3}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`, "DeprecationWarning", "DEP0155");
66882
+ if (emittedPackageWarnings.has(pjsonPath + "|" + match12)) return;
66883
+ emittedPackageWarnings.add(pjsonPath + "|" + match12);
66884
+ _process().emitWarning(`Use of deprecated trailing slash pattern mapping "${match12}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`, "DeprecationWarning", "DEP0155");
66849
66885
  }
66850
66886
  function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
66851
66887
  let exports3 = packageConfig.exports;
@@ -69861,7 +69897,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
69861
69897
  var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
69862
69898
  exports2.makeRe = makeRe;
69863
69899
  exports2.minimatch.makeRe = exports2.makeRe;
69864
- var match3 = (list, pattern, options = {}) => {
69900
+ var match12 = (list, pattern, options = {}) => {
69865
69901
  const mm = new Minimatch(pattern, options);
69866
69902
  list = list.filter((f) => mm.match(f));
69867
69903
  if (mm.options.nonull && !list.length) {
@@ -69869,7 +69905,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
69869
69905
  }
69870
69906
  return list;
69871
69907
  };
69872
- exports2.match = match3;
69908
+ exports2.match = match12;
69873
69909
  exports2.minimatch.match = exports2.match;
69874
69910
  var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
69875
69911
  var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
@@ -76653,10 +76689,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
76653
76689
  });
76654
76690
  }
76655
76691
  let shouldIndentNextCharacter = options.indentStart !== false;
76656
- const replacer = (match3) => {
76657
- if (shouldIndentNextCharacter) return `${indentStr}${match3}`;
76692
+ const replacer = (match12) => {
76693
+ if (shouldIndentNextCharacter) return `${indentStr}${match12}`;
76658
76694
  shouldIndentNextCharacter = true;
76659
- return match3;
76695
+ return match12;
76660
76696
  };
76661
76697
  this.intro = this.intro.replace(pattern, replacer);
76662
76698
  let charIndex = 0;
@@ -77044,44 +77080,44 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
77044
77080
  return this.original !== this.toString();
77045
77081
  }
77046
77082
  _replaceRegexp(searchValue, replacement) {
77047
- function getReplacement(match3, str) {
77083
+ function getReplacement(match12, str) {
77048
77084
  if (typeof replacement === "string") {
77049
77085
  return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
77050
77086
  if (i === "$") return "$";
77051
- if (i === "&") return match3[0];
77087
+ if (i === "&") return match12[0];
77052
77088
  const num = +i;
77053
- if (num < match3.length) return match3[+i];
77089
+ if (num < match12.length) return match12[+i];
77054
77090
  return `$${i}`;
77055
77091
  });
77056
77092
  } else {
77057
- return replacement(...match3, match3.index, str, match3.groups);
77093
+ return replacement(...match12, match12.index, str, match12.groups);
77058
77094
  }
77059
77095
  }
77060
77096
  function matchAll(re, str) {
77061
- let match3;
77097
+ let match12;
77062
77098
  const matches = [];
77063
- while (match3 = re.exec(str)) {
77064
- matches.push(match3);
77099
+ while (match12 = re.exec(str)) {
77100
+ matches.push(match12);
77065
77101
  }
77066
77102
  return matches;
77067
77103
  }
77068
77104
  if (searchValue.global) {
77069
77105
  const matches = matchAll(searchValue, this.original);
77070
- matches.forEach((match3) => {
77071
- if (match3.index != null)
77106
+ matches.forEach((match12) => {
77107
+ if (match12.index != null)
77072
77108
  this.overwrite(
77073
- match3.index,
77074
- match3.index + match3[0].length,
77075
- getReplacement(match3, this.original)
77109
+ match12.index,
77110
+ match12.index + match12[0].length,
77111
+ getReplacement(match12, this.original)
77076
77112
  );
77077
77113
  });
77078
77114
  } else {
77079
- const match3 = this.original.match(searchValue);
77080
- if (match3 && match3.index != null)
77115
+ const match12 = this.original.match(searchValue);
77116
+ if (match12 && match12.index != null)
77081
77117
  this.overwrite(
77082
- match3.index,
77083
- match3.index + match3[0].length,
77084
- getReplacement(match3, this.original)
77118
+ match12.index,
77119
+ match12.index + match12[0].length,
77120
+ getReplacement(match12, this.original)
77085
77121
  );
77086
77122
  }
77087
77123
  return this;
@@ -77285,8 +77321,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
77285
77321
  trailingNewline = source2.content.lastChar() === "\n";
77286
77322
  });
77287
77323
  if (this.intro) {
77288
- this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (match3, index) => {
77289
- return index > 0 ? indentStr + match3 : match3;
77324
+ this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (match12, index) => {
77325
+ return index > 0 ? indentStr + match12 : match12;
77290
77326
  });
77291
77327
  }
77292
77328
  return this;
@@ -77567,8 +77603,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
77567
77603
  exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
77568
77604
  exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
77569
77605
  exports2.removeBackslashes = (str) => {
77570
- return str.replace(REGEX_REMOVE_BACKSLASH, (match3) => {
77571
- return match3 === "\\" ? "" : match3;
77606
+ return str.replace(REGEX_REMOVE_BACKSLASH, (match12) => {
77607
+ return match12 === "\\" ? "" : match12;
77572
77608
  });
77573
77609
  };
77574
77610
  exports2.supportsLookbehinds = () => {
@@ -78185,10 +78221,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78185
78221
  push2({ type: "text", value: value2 });
78186
78222
  continue;
78187
78223
  }
78188
- const match3 = /^\\+/.exec(remaining());
78224
+ const match12 = /^\\+/.exec(remaining());
78189
78225
  let slashes = 0;
78190
- if (match3 && match3[0].length > 2) {
78191
- slashes = match3[0].length;
78226
+ if (match12 && match12[0].length > 2) {
78227
+ slashes = match12[0].length;
78192
78228
  state.index += slashes;
78193
78229
  if (slashes % 2 !== 0) {
78194
78230
  value2 += "\\";
@@ -78476,10 +78512,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78476
78512
  if (value2 === "$" || value2 === "^") {
78477
78513
  value2 = `\\${value2}`;
78478
78514
  }
78479
- const match3 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
78480
- if (match3) {
78481
- value2 += match3[0];
78482
- state.index += match3[0].length;
78515
+ const match12 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
78516
+ if (match12) {
78517
+ value2 += match12[0];
78518
+ state.index += match12[0].length;
78483
78519
  }
78484
78520
  push2({ type: "text", value: value2 });
78485
78521
  continue;
@@ -78690,11 +78726,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78690
78726
  case "**/.*":
78691
78727
  return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
78692
78728
  default: {
78693
- const match3 = /^(.*?)\.(\w+)$/.exec(str);
78694
- if (!match3) return;
78695
- const source3 = create(match3[1]);
78729
+ const match12 = /^(.*?)\.(\w+)$/.exec(str);
78730
+ if (!match12) return;
78731
+ const source3 = create(match12[1]);
78696
78732
  if (!source3) return;
78697
- return source3 + DOT_LITERAL + match3[2];
78733
+ return source3 + DOT_LITERAL + match12[2];
78698
78734
  }
78699
78735
  }
78700
78736
  };
@@ -78744,8 +78780,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78744
78780
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
78745
78781
  }
78746
78782
  const matcher = (input, returnObject = false) => {
78747
- const { isMatch, match: match3, output } = picomatch.test(input, regex, options, { glob, posix });
78748
- const result = { glob, state, regex, posix, input, output, match: match3, isMatch };
78783
+ const { isMatch, match: match12, output } = picomatch.test(input, regex, options, { glob, posix });
78784
+ const result = { glob, state, regex, posix, input, output, match: match12, isMatch };
78749
78785
  if (typeof opts.onResult === "function") {
78750
78786
  opts.onResult(result);
78751
78787
  }
@@ -78779,20 +78815,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78779
78815
  }
78780
78816
  const opts = options || {};
78781
78817
  const format = opts.format || (posix ? utils.toPosixSlashes : null);
78782
- let match3 = input === glob;
78783
- let output = match3 && format ? format(input) : input;
78784
- if (match3 === false) {
78818
+ let match12 = input === glob;
78819
+ let output = match12 && format ? format(input) : input;
78820
+ if (match12 === false) {
78785
78821
  output = format ? format(input) : input;
78786
- match3 = output === glob;
78822
+ match12 = output === glob;
78787
78823
  }
78788
- if (match3 === false || opts.capture === true) {
78824
+ if (match12 === false || opts.capture === true) {
78789
78825
  if (opts.matchBase === true || opts.basename === true) {
78790
- match3 = picomatch.matchBase(input, regex, options, posix);
78826
+ match12 = picomatch.matchBase(input, regex, options, posix);
78791
78827
  } else {
78792
- match3 = regex.exec(output);
78828
+ match12 = regex.exec(output);
78793
78829
  }
78794
78830
  }
78795
- return { isMatch: Boolean(match3), match: match3, output };
78831
+ return { isMatch: Boolean(match12), match: match12, output };
78796
78832
  };
78797
78833
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
78798
78834
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
@@ -79293,8 +79329,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
79293
79329
  exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
79294
79330
  exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
79295
79331
  exports2.removeBackslashes = (str) => {
79296
- return str.replace(REGEX_REMOVE_BACKSLASH, (match3) => {
79297
- return match3 === "\\" ? "" : match3;
79332
+ return str.replace(REGEX_REMOVE_BACKSLASH, (match12) => {
79333
+ return match12 === "\\" ? "" : match12;
79298
79334
  });
79299
79335
  };
79300
79336
  exports2.supportsLookbehinds = () => {
@@ -79911,10 +79947,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
79911
79947
  push2({ type: "text", value: value2 });
79912
79948
  continue;
79913
79949
  }
79914
- const match3 = /^\\+/.exec(remaining());
79950
+ const match12 = /^\\+/.exec(remaining());
79915
79951
  let slashes = 0;
79916
- if (match3 && match3[0].length > 2) {
79917
- slashes = match3[0].length;
79952
+ if (match12 && match12[0].length > 2) {
79953
+ slashes = match12[0].length;
79918
79954
  state.index += slashes;
79919
79955
  if (slashes % 2 !== 0) {
79920
79956
  value2 += "\\";
@@ -80202,10 +80238,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80202
80238
  if (value2 === "$" || value2 === "^") {
80203
80239
  value2 = `\\${value2}`;
80204
80240
  }
80205
- const match3 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
80206
- if (match3) {
80207
- value2 += match3[0];
80208
- state.index += match3[0].length;
80241
+ const match12 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
80242
+ if (match12) {
80243
+ value2 += match12[0];
80244
+ state.index += match12[0].length;
80209
80245
  }
80210
80246
  push2({ type: "text", value: value2 });
80211
80247
  continue;
@@ -80416,11 +80452,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80416
80452
  case "**/.*":
80417
80453
  return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
80418
80454
  default: {
80419
- const match3 = /^(.*?)\.(\w+)$/.exec(str);
80420
- if (!match3) return;
80421
- const source3 = create(match3[1]);
80455
+ const match12 = /^(.*?)\.(\w+)$/.exec(str);
80456
+ if (!match12) return;
80457
+ const source3 = create(match12[1]);
80422
80458
  if (!source3) return;
80423
- return source3 + DOT_LITERAL + match3[2];
80459
+ return source3 + DOT_LITERAL + match12[2];
80424
80460
  }
80425
80461
  }
80426
80462
  };
@@ -80470,8 +80506,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80470
80506
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
80471
80507
  }
80472
80508
  const matcher = (input, returnObject = false) => {
80473
- const { isMatch, match: match3, output } = picomatch.test(input, regex, options, { glob, posix });
80474
- const result = { glob, state, regex, posix, input, output, match: match3, isMatch };
80509
+ const { isMatch, match: match12, output } = picomatch.test(input, regex, options, { glob, posix });
80510
+ const result = { glob, state, regex, posix, input, output, match: match12, isMatch };
80475
80511
  if (typeof opts.onResult === "function") {
80476
80512
  opts.onResult(result);
80477
80513
  }
@@ -80505,20 +80541,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80505
80541
  }
80506
80542
  const opts = options || {};
80507
80543
  const format = opts.format || (posix ? utils.toPosixSlashes : null);
80508
- let match3 = input === glob;
80509
- let output = match3 && format ? format(input) : input;
80510
- if (match3 === false) {
80544
+ let match12 = input === glob;
80545
+ let output = match12 && format ? format(input) : input;
80546
+ if (match12 === false) {
80511
80547
  output = format ? format(input) : input;
80512
- match3 = output === glob;
80548
+ match12 = output === glob;
80513
80549
  }
80514
- if (match3 === false || opts.capture === true) {
80550
+ if (match12 === false || opts.capture === true) {
80515
80551
  if (opts.matchBase === true || opts.basename === true) {
80516
- match3 = picomatch.matchBase(input, regex, options, posix);
80552
+ match12 = picomatch.matchBase(input, regex, options, posix);
80517
80553
  } else {
80518
- match3 = regex.exec(output);
80554
+ match12 = regex.exec(output);
80519
80555
  }
80520
80556
  }
80521
- return { isMatch: Boolean(match3), match: match3, output };
80557
+ return { isMatch: Boolean(match12), match: match12, output };
80522
80558
  };
80523
80559
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
80524
80560
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
@@ -80677,10 +80713,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80677
80713
  if (typeof str !== "string" || str === "") {
80678
80714
  return false;
80679
80715
  }
80680
- var match3;
80681
- while (match3 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
80682
- if (match3[2]) return true;
80683
- str = str.slice(match3.index + match3[0].length);
80716
+ var match12;
80717
+ while (match12 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
80718
+ if (match12[2]) return true;
80719
+ str = str.slice(match12.index + match12[0].length);
80684
80720
  }
80685
80721
  return false;
80686
80722
  };
@@ -84426,17 +84462,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
84426
84462
  for (; ; ) {
84427
84463
  skipWhiteSpace.lastIndex = start;
84428
84464
  start += skipWhiteSpace.exec(this.input)[0].length;
84429
- var match3 = literal2.exec(this.input.slice(start));
84430
- if (!match3) {
84465
+ var match12 = literal2.exec(this.input.slice(start));
84466
+ if (!match12) {
84431
84467
  return false;
84432
84468
  }
84433
- if ((match3[1] || match3[2]) === "use strict") {
84434
- skipWhiteSpace.lastIndex = start + match3[0].length;
84469
+ if ((match12[1] || match12[2]) === "use strict") {
84470
+ skipWhiteSpace.lastIndex = start + match12[0].length;
84435
84471
  var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;
84436
84472
  var next = this.input.charAt(end);
84437
84473
  return next === ";" || next === "}" || lineBreak.test(spaceAfter[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=");
84438
84474
  }
84439
- start += match3[0].length;
84475
+ start += match12[0].length;
84440
84476
  skipWhiteSpace.lastIndex = start;
84441
84477
  start += skipWhiteSpace.exec(this.input)[0].length;
84442
84478
  if (this.input[start] === ";") {
@@ -89882,17 +89918,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
89882
89918
  var streamChunksOfRawSource = (source2, onChunk, onSource, onName) => {
89883
89919
  let line2 = 1;
89884
89920
  const matches = splitIntoLines(source2);
89885
- let match3;
89886
- for (match3 of matches) {
89887
- onChunk(match3, line2, 0, -1, -1, -1, -1);
89921
+ let match12;
89922
+ for (match12 of matches) {
89923
+ onChunk(match12, line2, 0, -1, -1, -1, -1);
89888
89924
  line2++;
89889
89925
  }
89890
- return matches.length === 0 || match3.endsWith("\n") ? {
89926
+ return matches.length === 0 || match12.endsWith("\n") ? {
89891
89927
  generatedLine: matches.length + 1,
89892
89928
  generatedColumn: 0
89893
89929
  } : {
89894
89930
  generatedLine: matches.length,
89895
- generatedColumn: match3.length
89931
+ generatedColumn: match12.length
89896
89932
  };
89897
89933
  };
89898
89934
  module2.exports = (source2, onChunk, onSource, onName, finalSource) => {
@@ -90326,19 +90362,19 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
90326
90362
  let line2 = 1;
90327
90363
  let column2 = 0;
90328
90364
  if (matches !== null) {
90329
- for (const match3 of matches) {
90330
- const isEndOfLine = match3.endsWith("\n");
90331
- if (isEndOfLine && match3.length === 1) {
90332
- if (!finalSource) onChunk(match3, line2, column2, -1, -1, -1, -1);
90365
+ for (const match12 of matches) {
90366
+ const isEndOfLine = match12.endsWith("\n");
90367
+ if (isEndOfLine && match12.length === 1) {
90368
+ if (!finalSource) onChunk(match12, line2, column2, -1, -1, -1, -1);
90333
90369
  } else {
90334
- const chunk = finalSource ? void 0 : match3;
90370
+ const chunk = finalSource ? void 0 : match12;
90335
90371
  onChunk(chunk, line2, column2, 0, line2, column2, -1);
90336
90372
  }
90337
90373
  if (isEndOfLine) {
90338
90374
  line2++;
90339
90375
  column2 = 0;
90340
90376
  } else {
90341
- column2 += match3.length;
90377
+ column2 += match12.length;
90342
90378
  }
90343
90379
  }
90344
90380
  }
@@ -90361,18 +90397,18 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
90361
90397
  } else {
90362
90398
  let line2 = 1;
90363
90399
  const matches = splitIntoLines(this._value);
90364
- let match3;
90365
- for (match3 of matches) {
90366
- onChunk(finalSource ? void 0 : match3, line2, 0, 0, line2, 0, -1);
90400
+ let match12;
90401
+ for (match12 of matches) {
90402
+ onChunk(finalSource ? void 0 : match12, line2, 0, 0, line2, 0, -1);
90367
90403
  line2++;
90368
90404
  }
90369
- return matches.length === 0 || match3.endsWith("\n") ? {
90405
+ return matches.length === 0 || match12.endsWith("\n") ? {
90370
90406
  generatedLine: matches.length + 1,
90371
90407
  generatedColumn: 0,
90372
90408
  source: finalSource ? this._value : void 0
90373
90409
  } : {
90374
90410
  generatedLine: matches.length,
90375
- generatedColumn: match3.length,
90411
+ generatedColumn: match12.length,
90376
90412
  source: finalSource ? this._value : void 0
90377
90413
  };
90378
90414
  }
@@ -92645,13 +92681,13 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
92645
92681
  return input.startsWith("/");
92646
92682
  }
92647
92683
  function parseAbsoluteUrl(input) {
92648
- const match3 = urlRegex.exec(input);
92684
+ const match12 = urlRegex.exec(input);
92649
92685
  return {
92650
- scheme: match3[1],
92651
- user: match3[2] || "",
92652
- host: match3[3],
92653
- port: match3[4] || "",
92654
- path: match3[5] || "/",
92686
+ scheme: match12[1],
92687
+ user: match12[2] || "",
92688
+ host: match12[3],
92689
+ port: match12[4] || "",
92690
+ path: match12[5] || "/",
92655
92691
  relativePath: false
92656
92692
  };
92657
92693
  }
@@ -93668,7 +93704,7 @@ Did you specify these with the most recent transformation maps first?`);
93668
93704
  var import_path4 = __require("path");
93669
93705
  var import_webpack_sources = __toESM22(require_lib26());
93670
93706
  var import_acorn2 = require_acorn();
93671
- function createContext(compilation) {
93707
+ function createContext2(compilation) {
93672
93708
  return {
93673
93709
  parse(code, opts = {}) {
93674
93710
  return import_acorn2.Parser.parse(code, {
@@ -93829,7 +93865,7 @@ Did you specify these with the most recent transformation maps first?`);
93829
93865
  plugin.webpack(compiler);
93830
93866
  if (plugin.watchChange || plugin.buildStart) {
93831
93867
  compiler.hooks.make.tapPromise(plugin.name, async (compilation) => {
93832
- const context = createContext(compilation);
93868
+ const context = createContext2(compilation);
93833
93869
  if (plugin.watchChange && (compiler.modifiedFiles || compiler.removedFiles)) {
93834
93870
  const promises = [];
93835
93871
  if (compiler.modifiedFiles) {
@@ -93850,7 +93886,7 @@ Did you specify these with the most recent transformation maps first?`);
93850
93886
  }
93851
93887
  if (plugin.buildEnd) {
93852
93888
  compiler.hooks.emit.tapPromise(plugin.name, async (compilation) => {
93853
- await plugin.buildEnd.call(createContext(compilation));
93889
+ await plugin.buildEnd.call(createContext2(compilation));
93854
93890
  });
93855
93891
  }
93856
93892
  if (plugin.writeBundle) {
@@ -93967,10 +94003,10 @@ Did you specify these with the most recent transformation maps first?`);
93967
94003
  const obj = {};
93968
94004
  let lines = src.toString();
93969
94005
  lines = lines.replace(/\r\n?/mg, "\n");
93970
- let match3;
93971
- while ((match3 = LINE.exec(lines)) != null) {
93972
- const key2 = match3[1];
93973
- let value2 = match3[2] || "";
94006
+ let match12;
94007
+ while ((match12 = LINE.exec(lines)) != null) {
94008
+ const key2 = match12[1];
94009
+ let value2 = match12[2] || "";
93974
94010
  value2 = value2.trim();
93975
94011
  const maybeQuote = value2[0];
93976
94012
  value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
@@ -95167,14 +95203,14 @@ Did you specify these with the most recent transformation maps first?`);
95167
95203
  return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path2 ? `${path2}/` : path2}${projectId}`;
95168
95204
  }
95169
95205
  function dsnFromString2(str) {
95170
- const match3 = DSN_REGEX.exec(str);
95171
- if (!match3) {
95206
+ const match12 = DSN_REGEX.exec(str);
95207
+ if (!match12) {
95172
95208
  consoleSandbox(() => {
95173
95209
  console.error(`Invalid Sentry Dsn: ${str}`);
95174
95210
  });
95175
95211
  return void 0;
95176
95212
  }
95177
- const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match3.slice(1);
95213
+ const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match12.slice(1);
95178
95214
  let path2 = "";
95179
95215
  let projectId = lastPath;
95180
95216
  const split = projectId.split("/");
@@ -99525,9 +99561,9 @@ Reason: ${reason}`
99525
99561
  version = version.slice(1);
99526
99562
  }
99527
99563
  var regex = /^[\^~]?(\d+)(\.\d+)?(\.\d+)?(-.+)?/;
99528
- var match3 = version.match(regex);
99529
- if (match3) {
99530
- return parseInt(match3[1], 10);
99564
+ var match12 = version.match(regex);
99565
+ if (match12) {
99566
+ return parseInt(match12[1], 10);
99531
99567
  }
99532
99568
  var coerced = parseInt(version, 10);
99533
99569
  if (!Number.isNaN(coerced)) {
@@ -100182,9 +100218,9 @@ Reason: ${reason}`
100182
100218
  return _prepareBundleForDebugIdUpload.apply(this, arguments);
100183
100219
  }
100184
100220
  function determineDebugIdFromBundleSource(code) {
100185
- var match3 = code.match(/sentry-dbid-([0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12})/);
100186
- if (match3) {
100187
- return match3[1];
100221
+ var match12 = code.match(/sentry-dbid-([0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12})/);
100222
+ if (match12) {
100223
+ return match12[1];
100188
100224
  } else {
100189
100225
  return void 0;
100190
100226
  }
@@ -101345,9 +101381,9 @@ Reason: ${reason}`
101345
101381
  var ms = new MagicString__default["default"](code, {
101346
101382
  filename: chunk.fileName
101347
101383
  });
101348
- var match3 = (_code$match = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match === void 0 ? void 0 : _code$match[0];
101349
- if (match3) {
101350
- ms.appendLeft(match3.length, codeToInject);
101384
+ var match12 = (_code$match = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match === void 0 ? void 0 : _code$match[0];
101385
+ if (match12) {
101386
+ ms.appendLeft(match12.length, codeToInject);
101351
101387
  } else {
101352
101388
  ms.prepend(codeToInject);
101353
101389
  }
@@ -101377,9 +101413,9 @@ Reason: ${reason}`
101377
101413
  var ms = new MagicString__default["default"](code, {
101378
101414
  filename: chunk.fileName
101379
101415
  });
101380
- var match3 = (_code$match2 = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match2 === void 0 ? void 0 : _code$match2[0];
101381
- if (match3) {
101382
- ms.appendLeft(match3.length, injectionCode);
101416
+ var match12 = (_code$match2 = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match2 === void 0 ? void 0 : _code$match2[0];
101417
+ if (match12) {
101418
+ ms.appendLeft(match12.length, injectionCode);
101383
101419
  } else {
101384
101420
  ms.prepend(injectionCode);
101385
101421
  }
@@ -105788,24 +105824,24 @@ Reason: ${reason}`
105788
105824
  });
105789
105825
  module2.exports = __toCommonJS2(vite_exports);
105790
105826
  var import_vite_plugin = require_cjs5();
105791
- var import_zod2 = require_zod();
105792
- var providerSchema = import_zod2.z.discriminatedUnion("type", [
105793
- import_zod2.z.object({
105794
- type: import_zod2.z.literal("SENTRY"),
105795
- sentryOptions: import_zod2.z.object({
105796
- dsn: import_zod2.z.string().url()
105827
+ var import_zod3 = require_zod();
105828
+ var providerSchema = import_zod3.z.discriminatedUnion("type", [
105829
+ import_zod3.z.object({
105830
+ type: import_zod3.z.literal("SENTRY"),
105831
+ sentryOptions: import_zod3.z.object({
105832
+ dsn: import_zod3.z.string().url()
105797
105833
  })
105798
105834
  }),
105799
- import_zod2.z.object({
105800
- type: import_zod2.z.literal("PANORAMA"),
105801
- panoramaOptions: import_zod2.z.object({
105802
- sentry: import_zod2.z.object({
105803
- dsn: import_zod2.z.string().url()
105835
+ import_zod3.z.object({
105836
+ type: import_zod3.z.literal("PANORAMA"),
105837
+ panoramaOptions: import_zod3.z.object({
105838
+ sentry: import_zod3.z.object({
105839
+ dsn: import_zod3.z.string().url()
105804
105840
  }).optional(),
105805
- project: import_zod2.z.object({
105806
- groupId: import_zod2.z.string(),
105807
- artifactId: import_zod2.z.string(),
105808
- fingerprint: import_zod2.z.string()
105841
+ project: import_zod3.z.object({
105842
+ groupId: import_zod3.z.string(),
105843
+ artifactId: import_zod3.z.string(),
105844
+ fingerprint: import_zod3.z.string()
105809
105845
  })
105810
105846
  })
105811
105847
  })
@@ -106000,11 +106036,11 @@ ${error.errors.map(formatZodIssue).join("\n")}`,
106000
106036
  };
106001
106037
  }
106002
106038
  function dsnFromString(str) {
106003
- const match3 = SENTRY_DSN_REGEX.exec(str);
106004
- if (!match3) {
106039
+ const match12 = SENTRY_DSN_REGEX.exec(str);
106040
+ if (!match12) {
106005
106041
  throw new Error("Invalid DSN");
106006
106042
  }
106007
- const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match3.slice(1);
106043
+ const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match12.slice(1);
106008
106044
  let path = "";
106009
106045
  let projectId = lastPath;
106010
106046
  const split = projectId.split("/");
@@ -106120,28 +106156,7 @@ init_esm_shims();
106120
106156
 
106121
106157
  // ../cli-astro-commands/src/components/DevCommand/DevCommand.tsx
106122
106158
  init_esm_shims();
106123
- var import_react6 = __toESM(require_react(), 1);
106124
- var import_variant4 = __toESM(require_lib(), 1);
106125
-
106126
- // ../cli-astro-commands/src/components/DevCommand/DevScreenBorder.tsx
106127
- init_esm_shims();
106128
- var import_react = __toESM(require_react(), 1);
106129
- var DevScreenBorder = ({ children }) => {
106130
- return /* @__PURE__ */ import_react.default.createElement(
106131
- Box_default,
106132
- {
106133
- flexDirection: "column",
106134
- borderTop: true,
106135
- borderLeft: false,
106136
- borderBottom: false,
106137
- borderRight: false,
106138
- borderStyle: "round",
106139
- borderColor: "blueBright",
106140
- width: "95%"
106141
- },
106142
- children
106143
- );
106144
- };
106159
+ var import_react27 = __toESM(require_react(), 1);
106145
106160
 
106146
106161
  // ../cli-astro-commands/src/components/DevCommand/utils/runAstroDev.ts
106147
106162
  init_esm_shims();
@@ -106176,9 +106191,9 @@ function runAstroDev({
106176
106191
  for (const line of lines) {
106177
106192
  result.stdout?.emit(EVENT_LINE, line);
106178
106193
  if (line.includes("http://")) {
106179
- const match3 = /(http:\/\/[^\s]+)/.exec(line);
106180
- if (match3?.[1]) {
106181
- const address = stripAnsi(match3[1]).trim();
106194
+ const match12 = /(http:\/\/[^\s]+)/.exec(line);
106195
+ if (match12?.[1]) {
106196
+ const address = stripAnsi(match12[1]).trim();
106182
106197
  result.stdout?.emit(EVENT_SERVER_ADDRESS, address);
106183
106198
  }
106184
106199
  }
@@ -106198,7 +106213,7 @@ function runAstroDev({
106198
106213
 
106199
106214
  // ../cli-astro-commands/src/components/DevCommand/utils/createAstroLogger.tsx
106200
106215
  init_esm_shims();
106201
- var import_react2 = __toESM(require_react(), 1);
106216
+ var import_react = __toESM(require_react(), 1);
106202
106217
  var dateTimeFormat = new Intl.DateTimeFormat([], {
106203
106218
  hour: "2-digit",
106204
106219
  minute: "2-digit",
@@ -106216,12 +106231,58 @@ function createAstroLogger(isPrefixed = true) {
106216
106231
  };
106217
106232
  const prefixedLog = (msg) => {
106218
106233
  const timestamp = dateTimeFormat.format(/* @__PURE__ */ new Date());
106219
- const log2 = /* @__PURE__ */ import_react2.default.createElement(Text, null, /* @__PURE__ */ import_react2.default.createElement(Text, null, timestamp, " "), /* @__PURE__ */ import_react2.default.createElement(Text, { skin: "info" }, "[wix] "), /* @__PURE__ */ import_react2.default.createElement(Text, null, msg));
106234
+ const log2 = /* @__PURE__ */ import_react.default.createElement(Text, null, /* @__PURE__ */ import_react.default.createElement(Text, null, timestamp, " "), /* @__PURE__ */ import_react.default.createElement(Text, { skin: "info" }, "[wix] "), /* @__PURE__ */ import_react.default.createElement(Text, null, msg));
106220
106235
  console.log(renderer.render(log2));
106221
106236
  };
106222
106237
  return isPrefixed ? { log: prefixedLog } : { log };
106223
106238
  }
106224
106239
 
106240
+ // ../cli-astro-commands/src/components/DevCommand/hooks/useFetchDevMetadata.ts
106241
+ init_esm_shims();
106242
+ function useFetchDevMetadata() {
106243
+ const http = useHttpClient({ type: "standalone" });
106244
+ return useAsyncCallback(async (_, serverLocalUrl) => {
106245
+ const url = new URL("/_wix/dev-metadata.json", serverLocalUrl);
106246
+ try {
106247
+ const { data } = await http.get(url.toString());
106248
+ return {
106249
+ devMetadata: devMetadataSchema.parse(data),
106250
+ serverLocalUrl
106251
+ };
106252
+ } catch {
106253
+ return {
106254
+ devMetadata: null,
106255
+ serverLocalUrl
106256
+ };
106257
+ }
106258
+ });
106259
+ }
106260
+
106261
+ // ../cli-astro-commands/src/components/DevCommand/SiteDevFlow.tsx
106262
+ init_esm_shims();
106263
+ var import_react6 = __toESM(require_react(), 1);
106264
+ var import_variant4 = __toESM(require_lib(), 1);
106265
+
106266
+ // ../cli-astro-commands/src/components/DevCommand/DevScreenBorder.tsx
106267
+ init_esm_shims();
106268
+ var import_react2 = __toESM(require_react(), 1);
106269
+ var DevScreenBorder = ({ children }) => {
106270
+ return /* @__PURE__ */ import_react2.default.createElement(
106271
+ Box_default,
106272
+ {
106273
+ flexDirection: "column",
106274
+ borderTop: true,
106275
+ borderLeft: false,
106276
+ borderBottom: false,
106277
+ borderRight: false,
106278
+ borderStyle: "round",
106279
+ borderColor: "blueBright",
106280
+ width: "95%"
106281
+ },
106282
+ children
106283
+ );
106284
+ };
106285
+
106225
106286
  // ../cli-astro-commands/src/components/DevCommand/DevCenterUpdater.tsx
106226
106287
  init_esm_shims();
106227
106288
  var import_react5 = __toESM(require_react(), 1);
@@ -106299,6 +106360,7 @@ function getAppConfigPath(projectFolder) {
106299
106360
  var dashboardSidebarCategoryConfig = external_exports.object({
106300
106361
  id: external_exports.string(),
106301
106362
  label: external_exports.string(),
106363
+ hostingPlatform: external_exports.string().optional(),
106302
106364
  priority: external_exports.number().int().optional()
106303
106365
  });
106304
106366
  var dashboardConfigSchema = external_exports.object({
@@ -106393,6 +106455,7 @@ var dashboardPagePublicConfigSchema = external_exports.object({
106393
106455
  sidebar: sidebarConfigSchema.optional()
106394
106456
  }).strict();
106395
106457
  var dashboardPageConfigSchema = dashboardPagePublicConfigSchema.extend({
106458
+ hostingPlatform: external_exports.string().optional(),
106396
106459
  requiredPermission: external_exports.string().optional(),
106397
106460
  sentryDSN: external_exports.string().optional(),
106398
106461
  experiments: external_exports.object({
@@ -106418,6 +106481,7 @@ var dashboardModalPublicConfigSchema = external_exports.object({
106418
106481
  height: external_exports.number().optional().describe("Initial height of the modal while loading, in pixels.")
106419
106482
  }).strict();
106420
106483
  var dashboardModalConfigSchema = dashboardModalPublicConfigSchema.extend({
106484
+ hostingPlatform: external_exports.string().optional(),
106421
106485
  requiredPermission: external_exports.string().optional(),
106422
106486
  sentryDSN: external_exports.string().optional(),
106423
106487
  metaData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
@@ -106437,6 +106501,7 @@ var dashboardPluginPublicConfigSchema = external_exports.object({
106437
106501
  height: external_exports.number().optional().describe("Initial height of the plugin while loading, in pixels.")
106438
106502
  }).strict();
106439
106503
  var dashboardPluginConfigSchema = dashboardPluginPublicConfigSchema.extend({
106504
+ hostingPlatform: external_exports.string().optional(),
106440
106505
  requiredPermission: external_exports.string().optional(),
106441
106506
  sentryDSN: external_exports.string().optional()
106442
106507
  }).strict();
@@ -106487,6 +106552,7 @@ var dashboardMenuPluginPublicConfigSchema = external_exports.object({
106487
106552
  action: actionSchema
106488
106553
  }).strict();
106489
106554
  var dashboardMenuPluginConfigSchema = dashboardMenuPluginPublicConfigSchema.extend({
106555
+ hostingPlatform: external_exports.string().optional(),
106490
106556
  sentryDSN: external_exports.string().optional(),
106491
106557
  requiredPermission: external_exports.string().optional()
106492
106558
  }).strict();
@@ -106903,20 +106969,20 @@ var DevCenterUpdateResult = (0, import_variant3.variant)({
106903
106969
  Changed: (0, import_variant3.fields)(),
106904
106970
  Unchanged: {}
106905
106971
  });
106906
- var DevCenterUpdater = ({ serverLocalUrl, serverExposedUrl, devMetadata }) => {
106972
+ var DevCenterUpdater = ({ siteId, serverLocalUrl, serverExposedUrl, devMetadata }) => {
106907
106973
  const [devArmTag, setDevArmTag] = (0, import_react5.useState)("");
106908
106974
  const [manifest, setManifest] = (0, import_react5.useState)(null);
106909
106975
  const writeToDebugLog = useDebugLog();
106910
106976
  const {
106911
106977
  model: {
106912
- config: { siteId, appId },
106978
+ config: { appId },
106913
106979
  projectFolder
106914
106980
  }
106915
106981
  } = useProjectModel();
106916
106982
  const logger = (0, import_react5.useMemo)(() => createAstroLogger(), []);
106917
106983
  const { updateManifest } = useUpdateManifest();
106918
106984
  const arm = useARMClient();
106919
- const updateDeploymentTopology = useUpdateDeploymentTopology();
106985
+ const updateDeploymentTopology = useUpdateDeploymentTopology(siteId);
106920
106986
  const openTunnel = useTunnel();
106921
106987
  const tunnelUrl = (0, import_react5.useRef)();
106922
106988
  const [tunnelRequired, setTunnelRequired] = (0, import_react5.useState)(false);
@@ -107018,26 +107084,1177 @@ var DevCenterUpdater = ({ serverLocalUrl, serverExposedUrl, devMetadata }) => {
107018
107084
  ) : /* @__PURE__ */ import_react5.default.createElement(Spinner, { text: "Preparing your dashboard..." }))));
107019
107085
  };
107020
107086
 
107021
- // ../cli-astro-commands/src/components/DevCommand/hooks/useFetchDevMetadata.ts
107087
+ // ../cli-astro-commands/src/components/DevCommand/SiteDevFlow.tsx
107088
+ var SiteDevFlow = ({
107089
+ siteId,
107090
+ devMetadataStatus,
107091
+ serverExposedUrl
107092
+ }) => {
107093
+ return /* @__PURE__ */ import_react6.default.createElement(SiteAuthProvider, { siteId }, (0, import_variant4.match)(devMetadataStatus, {
107094
+ NotRequested: () => /* @__PURE__ */ import_react6.default.createElement(Spinner, { text: "Starting dev environment..." }),
107095
+ Error: () => null,
107096
+ Loading: () => /* @__PURE__ */ import_react6.default.createElement(Spinner, { text: "Checking dev environment settings..." }),
107097
+ Success: ({ result: { devMetadata, serverLocalUrl } }) => /* @__PURE__ */ import_react6.default.createElement(DevScreenBorder, null, /* @__PURE__ */ import_react6.default.createElement(Text, null, "Development environment ready"), /* @__PURE__ */ import_react6.default.createElement(
107098
+ DevCenterUpdater,
107099
+ {
107100
+ siteId,
107101
+ devMetadata,
107102
+ serverLocalUrl,
107103
+ serverExposedUrl
107104
+ }
107105
+ ))
107106
+ }));
107107
+ };
107108
+
107109
+ // ../cli-astro-commands/src/components/DevCommand/AppDevFlow.tsx
107022
107110
  init_esm_shims();
107023
- function useFetchDevMetadata() {
107024
- const http = useHttpClient({ type: "standalone" });
107025
- return useAsyncCallback(async (_, serverLocalUrl) => {
107026
- const url = new URL("/_wix/dev-metadata.json", serverLocalUrl);
107111
+ var import_react26 = __toESM(require_react(), 1);
107112
+ var import_variant16 = __toESM(require_lib(), 1);
107113
+
107114
+ // ../cli-astro-commands/src/components/DevCommand/app-flow/AppDev.tsx
107115
+ init_esm_shims();
107116
+ var import_react25 = __toESM(require_react(), 1);
107117
+ var import_variant15 = __toESM(require_lib(), 1);
107118
+
107119
+ // ../cli-astro-commands/src/components/DevCommand/app-flow/screen-state.ts
107120
+ init_esm_shims();
107121
+ var import_variant5 = __toESM(require_lib(), 1);
107122
+ var ScreenState = (0, import_variant5.variant)({
107123
+ Home: {},
107124
+ SiteSelector: {}
107125
+ });
107126
+
107127
+ // ../cli-astro-commands/src/components/DevCommand/app-flow/SiteSelectorScreen.tsx
107128
+ init_esm_shims();
107129
+ var import_react22 = __toESM(require_react(), 1);
107130
+
107131
+ // ../cli-site-selector/src/index.ts
107132
+ init_esm_shims();
107133
+
107134
+ // ../cli-site-selector/src/SiteSelector.tsx
107135
+ init_esm_shims();
107136
+ var import_react15 = __toESM(require_react(), 1);
107137
+ var import_variant10 = __toESM(require_lib(), 1);
107138
+
107139
+ // ../site-list-client/src/index.ts
107140
+ init_esm_shims();
107141
+
107142
+ // ../site-list-client/src/site-list-client.ts
107143
+ init_esm_shims();
107144
+
107145
+ // ../../node_modules/@wix/ambassador-site-list-v2-site/build/es/http.impl.js
107146
+ init_esm_shims();
107147
+ var _querySitesRequest = {};
107148
+ var _querySitesResponse = { sites: "_site" };
107149
+ var _site = {
107150
+ createdDate: "google.protobuf.Timestamp",
107151
+ updatedDate: "google.protobuf.Timestamp",
107152
+ trashedDate: "google.protobuf.Timestamp"
107153
+ };
107154
+ function resolveComWixpressSitelistApiSiteListServiceV2Url(opts) {
107155
+ var domainToMappings = {
107156
+ "www._base_domain_": [
107157
+ {
107158
+ srcPath: "/_api/sites-list",
107159
+ destPath: "/api"
107160
+ },
107161
+ {
107162
+ srcPath: "/_api/sites-list/v2/sites",
107163
+ destPath: "/v2/sites"
107164
+ }
107165
+ ],
107166
+ "feedback._base_domain_": [
107167
+ {
107168
+ srcPath: "/_api/sites-list",
107169
+ destPath: "/api"
107170
+ }
107171
+ ],
107172
+ "manage._base_domain_": [
107173
+ {
107174
+ srcPath: "/_api/sites-list",
107175
+ destPath: "/api"
107176
+ },
107177
+ {
107178
+ srcPath: "/_api/sites-list/v2/sites",
107179
+ destPath: "/v2/sites"
107180
+ },
107181
+ {
107182
+ srcPath: "/_api/sites-list-data",
107183
+ destPath: "/api/sites-list-data"
107184
+ }
107185
+ ],
107186
+ "www.wixapis.com": [
107187
+ {
107188
+ srcPath: "/site-list/v2/sites",
107189
+ destPath: "/v2/sites"
107190
+ }
107191
+ ],
107192
+ "api._api_base_domain_": [
107193
+ {
107194
+ srcPath: "/sites-list",
107195
+ destPath: ""
107196
+ }
107197
+ ],
107198
+ "bo._base_domain_": [
107199
+ {
107200
+ srcPath: "/_api/sites-list/v2/sites",
107201
+ destPath: "/v2/sites"
107202
+ }
107203
+ ],
107204
+ "wixbo.ai": [
107205
+ {
107206
+ srcPath: "/_api/sites-list/v2/sites",
107207
+ destPath: "/v2/sites"
107208
+ }
107209
+ ],
107210
+ "wix-bo.com": [
107211
+ {
107212
+ srcPath: "/_api/sites-list/v2/sites",
107213
+ destPath: "/v2/sites"
107214
+ }
107215
+ ],
107216
+ "dev._base_domain_": [
107217
+ {
107218
+ srcPath: "/_api/sites-list/v2/sites",
107219
+ destPath: "/v2/sites"
107220
+ }
107221
+ ],
107222
+ "editor._base_domain_": [
107223
+ {
107224
+ srcPath: "/_api/sites-list/v2/sites",
107225
+ destPath: "/v2/sites"
107226
+ }
107227
+ ],
107228
+ "blocks._base_domain_": [
107229
+ {
107230
+ srcPath: "/_api/sites-list/v2/sites",
107231
+ destPath: "/v2/sites"
107232
+ }
107233
+ ],
107234
+ "create.editorx": [
107235
+ {
107236
+ srcPath: "/_api/sites-list/v2/sites",
107237
+ destPath: "/v2/sites"
107238
+ }
107239
+ ],
107240
+ "online.codux.com": [
107241
+ {
107242
+ srcPath: "/_api/sites-list",
107243
+ destPath: ""
107244
+ },
107245
+ {
107246
+ srcPath: "/_api/sites-list/v2/sites",
107247
+ destPath: "/v2/sites"
107248
+ }
107249
+ ],
107250
+ "*.dev.wix-code.com": [
107251
+ {
107252
+ srcPath: "/site-list/v2/sites",
107253
+ destPath: "/v2/sites"
107254
+ }
107255
+ ],
107256
+ "vibe._base_domain_": [
107257
+ {
107258
+ srcPath: "/_api/sites-list",
107259
+ destPath: ""
107260
+ }
107261
+ ]
107262
+ };
107263
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
107264
+ }
107265
+ function querySites(payload) {
107266
+ var _a = serializer(_querySitesRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
107267
+ var fromRes = serializer(_querySitesResponse, { _site }).fromJSON;
107268
+ function __querySites(_a2) {
107269
+ var host = _a2.host;
107270
+ var serializedData = toReq(payload);
107271
+ var metadata = {
107272
+ entityFqdn: "wix.site_list.v2.site",
107273
+ method: "POST",
107274
+ methodFqn: "com.wixpress.sitelist.api.SiteListServiceV2.QuerySites",
107275
+ migrationOptions: {
107276
+ optInTransformResponse: true
107277
+ },
107278
+ url: resolveComWixpressSitelistApiSiteListServiceV2Url({
107279
+ protoPath: "/v2/sites/query",
107280
+ data: serializedData,
107281
+ host
107282
+ }),
107283
+ data: serializedData,
107284
+ transformResponse: fromRes
107285
+ };
107286
+ return metadata;
107287
+ }
107288
+ __querySites.fromReq = fromReq;
107289
+ __querySites.__isAmbassador = true;
107290
+ return __querySites;
107291
+ }
107292
+
107293
+ // ../site-list-client/src/schemas.ts
107294
+ init_esm_shims();
107295
+ var siteSchema = external_exports.object({
107296
+ id: external_exports.string(),
107297
+ displayName: external_exports.string(),
107298
+ viewUrl: external_exports.union([external_exports.string().url(), external_exports.literal("")]).optional()
107299
+ });
107300
+ var querySitesSchema = external_exports.object({
107301
+ sites: external_exports.array(siteSchema)
107302
+ });
107303
+
107304
+ // ../site-list-client/src/site-list-client.ts
107305
+ var SiteListClient = class {
107306
+ constructor(httpClient) {
107307
+ this.httpClient = httpClient;
107308
+ const { minRetryTimeout } = getTestOverrides();
107309
+ this.retryOptions = {
107310
+ retries: 3,
107311
+ minTimeout: minRetryTimeout,
107312
+ maxTimeout: 3 * 1e3
107313
+ };
107314
+ }
107315
+ retryOptions;
107316
+ querySites = async (opts = {}) => {
107027
107317
  try {
107028
- const { data } = await http.get(url.toString());
107029
- return {
107030
- devMetadata: devMetadataSchema.parse(data),
107031
- serverLocalUrl
107032
- };
107033
- } catch {
107034
- return {
107035
- devMetadata: null,
107036
- serverLocalUrl
107037
- };
107318
+ const { data } = await pRetry(
107319
+ () => this.httpClient.request(querySites(opts)),
107320
+ this.retryOptions
107321
+ );
107322
+ return querySitesSchema.parse(data).sites;
107323
+ } catch (e) {
107324
+ throw new CliError({
107325
+ code: CliErrorCode.FailedToQuerySites(),
107326
+ cause: e,
107327
+ info: { ...opts }
107328
+ });
107329
+ }
107330
+ };
107331
+ getSite = async (id) => {
107332
+ try {
107333
+ const { data } = await pRetry(
107334
+ () => this.httpClient.request(
107335
+ querySites({ query: { filter: { id: { $in: [id] } } } })
107336
+ ),
107337
+ this.retryOptions
107338
+ );
107339
+ const { sites } = querySitesSchema.parse(data);
107340
+ return sites.at(0) ?? null;
107341
+ } catch (e) {
107342
+ throw new CliError({
107343
+ code: CliErrorCode.FailedToGetSite(),
107344
+ cause: e,
107345
+ info: { id }
107346
+ });
107347
+ }
107348
+ };
107349
+ };
107350
+
107351
+ // ../site-list-client/src/useSiteListClient.ts
107352
+ init_esm_shims();
107353
+ var import_react7 = __toESM(require_react(), 1);
107354
+ function useSiteListClient() {
107355
+ const httpClient = useHttpClient({ type: "backoffice" });
107356
+ const client = (0, import_react7.useMemo)(() => new SiteListClient(httpClient), [httpClient]);
107357
+ return usePanoramaMethodLogger(client);
107358
+ }
107359
+
107360
+ // ../cli-site-selector/src/SiteTypeSelect.tsx
107361
+ init_esm_shims();
107362
+ var import_react9 = __toESM(require_react(), 1);
107363
+ var import_variant6 = __toESM(require_lib(), 1);
107364
+
107365
+ // ../cli-site-selector/src/bi.ts
107366
+ init_esm_shims();
107367
+ var import_react8 = __toESM(require_react(), 1);
107368
+ function siteSelectorBiEvents(biLogger) {
107369
+ return {
107370
+ cliAction: ({
107371
+ question,
107372
+ action,
107373
+ key,
107374
+ additionalInfo
107375
+ }) => {
107376
+ void biLogger.report(
107377
+ wixCliAction({
107378
+ question,
107379
+ action,
107380
+ key,
107381
+ additionalInfo: JSON.stringify(additionalInfo)
107382
+ })
107383
+ );
107384
+ },
107385
+ cliFlowStepAnswered: ({
107386
+ question,
107387
+ answer,
107388
+ additionalInfo
107389
+ }) => {
107390
+ void biLogger.report(
107391
+ wixCliAppFlowStepsAnswers({
107392
+ question,
107393
+ answer,
107394
+ additionalInfo: JSON.stringify(additionalInfo)
107395
+ })
107396
+ );
107397
+ }
107398
+ };
107399
+ }
107400
+ function useSiteSelectorBi() {
107401
+ const biLogger = useBiLogger();
107402
+ return (0, import_react8.useMemo)(() => siteSelectorBiEvents(biLogger), [biLogger]);
107403
+ }
107404
+
107405
+ // ../cli-site-selector/src/SiteTypeSelect.tsx
107406
+ var SiteTypeSelect = ({ onSubmit, onError, sites }) => {
107407
+ const bi = useSiteSelectorBi();
107408
+ const { t } = useTranslation();
107409
+ const { getDevSitesCount, getDevSitesLimit } = useDevCenterClient();
107410
+ const { status } = useAsync(
107411
+ () => Promise.all([getDevSitesCount(), getDevSitesLimit()]),
107412
+ [],
107413
+ { onError }
107414
+ );
107415
+ const handleSubmit = (option) => {
107416
+ void bi.cliFlowStepAnswered({
107417
+ question: t("site_type_select.label"),
107418
+ answer: option.title
107419
+ });
107420
+ onSubmit(option.value);
107421
+ };
107422
+ return (0, import_variant6.match)(status, {
107423
+ Error: () => null,
107424
+ Loading: () => /* @__PURE__ */ import_react9.default.createElement(Spinner, { text: t("general.loading") }),
107425
+ Success: ({ result: [devSitesCount, devSitesLimit] }) => {
107426
+ const isDevSitesLimitReached = devSitesCount >= devSitesLimit;
107427
+ const userHasNoSites = sites.length === 0;
107428
+ return /* @__PURE__ */ import_react9.default.createElement(
107429
+ SelectInput,
107430
+ {
107431
+ label: t("site_type_select.label"),
107432
+ options: [
107433
+ {
107434
+ availability: userHasNoSites ? SelectOptionAvailability.Disabled({
107435
+ reason: t("site_type_select.no_sites")
107436
+ }) : SelectOptionAvailability.Enabled(),
107437
+ title: t("site_type_select.pick_existing_site"),
107438
+ value: "select-existing-site"
107439
+ },
107440
+ {
107441
+ title: t("site_type_select.create_new_dev_site"),
107442
+ value: "create-dev-site",
107443
+ availability: isDevSitesLimitReached ? SelectOptionAvailability.Disabled({
107444
+ reason: t("site_type_select.create_new_dev_site.disabled", {
107445
+ limit: devSitesLimit
107446
+ })
107447
+ }) : SelectOptionAvailability.Enabled()
107448
+ }
107449
+ ],
107450
+ onSubmit: handleSubmit
107451
+ }
107452
+ );
107453
+ }
107454
+ });
107455
+ };
107456
+
107457
+ // ../cli-site-selector/src/CreateDevSite.tsx
107458
+ init_esm_shims();
107459
+ var import_react12 = __toESM(require_react(), 1);
107460
+ var import_variant8 = __toESM(require_lib(), 1);
107461
+
107462
+ // ../cli-site-selector/src/WaitForAppToBeInstalled.tsx
107463
+ init_esm_shims();
107464
+ var import_react11 = __toESM(require_react(), 1);
107465
+ var import_variant7 = __toESM(require_lib(), 1);
107466
+
107467
+ // ../cli-site-selector/src/OpenBrowser.tsx
107468
+ init_esm_shims();
107469
+ var import_react10 = __toESM(require_react(), 1);
107470
+ var OpenBrowser = ({ siteId, appId }) => {
107471
+ const { t } = useTranslation();
107472
+ const bi = useSiteSelectorBi();
107473
+ use_input_default(async (input, key) => {
107474
+ if (key.return) {
107475
+ bi.cliAction({
107476
+ question: t("install_app_on_site.warning.instructions"),
107477
+ key: "enter",
107478
+ action: "install_app_on_site"
107479
+ });
107480
+ await openBrowser(
107481
+ `https://manage.wix.com/installer/install?metaSiteId=${siteId}&appId=${appId}&platform=cli&version=latest`
107482
+ );
107038
107483
  }
107039
107484
  });
107485
+ return /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement(Trans, { i18nKey: "install_app_on_site.warning" }), /* @__PURE__ */ import_react10.default.createElement(
107486
+ Trans,
107487
+ {
107488
+ i18nKey: "install_app_on_site.warning.instructions",
107489
+ components: [/* @__PURE__ */ import_react10.default.createElement(Key, { value: "Enter" })]
107490
+ }
107491
+ ));
107492
+ };
107493
+
107494
+ // ../cli-site-selector/src/WaitForAppToBeInstalled.tsx
107495
+ var AppInstallData = (0, import_variant7.variant)({
107496
+ Success: {},
107497
+ Canceled: {}
107498
+ });
107499
+ function isAbortError(error) {
107500
+ return error && typeof error === "object" && "name" in error && error.name === "AbortError";
107040
107501
  }
107502
+ var WaitForAppToBeInstalled = ({
107503
+ appId,
107504
+ site,
107505
+ onSubmit,
107506
+ onError
107507
+ }) => {
107508
+ const { isAppInstalled } = useDevCenterClient();
107509
+ const { status } = useAsync(
107510
+ async ({ signal }) => {
107511
+ const { pollInterval } = getTestOverrides();
107512
+ try {
107513
+ await pWaitFor(() => isAppInstalled(appId), {
107514
+ // Polling interval is set to 6.5 seconds to avoid rate limiting (429)
107515
+ interval: pollInterval ?? 6500,
107516
+ timeout: {
107517
+ milliseconds: 60 * 1e3 * 2,
107518
+ signal
107519
+ }
107520
+ });
107521
+ return AppInstallData.Success();
107522
+ } catch (error) {
107523
+ if (error instanceof TimeoutError) {
107524
+ throw new CliError({
107525
+ code: CliErrorCode.SiteSelectorTimedout(),
107526
+ cause: error
107527
+ });
107528
+ }
107529
+ if (isAbortError(error)) {
107530
+ return AppInstallData.Canceled();
107531
+ }
107532
+ throw error;
107533
+ }
107534
+ },
107535
+ [],
107536
+ {
107537
+ onError,
107538
+ onSuccess: (result) => {
107539
+ if ((0, import_variant7.isType)(result, AppInstallData.Success)) {
107540
+ onSubmit();
107541
+ }
107542
+ }
107543
+ }
107544
+ );
107545
+ return (0, import_variant7.match)(status, {
107546
+ Error: () => null,
107547
+ Loading: () => /* @__PURE__ */ import_react11.default.createElement(OpenBrowser, { siteId: site.id, appId }),
107548
+ Success: () => /* @__PURE__ */ import_react11.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react11.default.createElement(Badge, { skin: "success" }, /* @__PURE__ */ import_react11.default.createElement(Trans, { i18nKey: "general.success" })), " ", /* @__PURE__ */ import_react11.default.createElement(Trans, { i18nKey: "install_app_on_site.finished_successfully" }))
107549
+ });
107550
+ };
107551
+
107552
+ // ../cli-site-selector/src/CreateDevSite.tsx
107553
+ var CreateDevSite = ({
107554
+ status,
107555
+ appId,
107556
+ onSubmit,
107557
+ onError
107558
+ }) => {
107559
+ const { t } = useTranslation();
107560
+ return (0, import_variant8.match)(status, {
107561
+ NotRequested: () => null,
107562
+ Error: () => null,
107563
+ Loading: () => /* @__PURE__ */ import_react12.default.createElement(Spinner, { text: t("create_dev_site.loading") }),
107564
+ Success: ({ result }) => /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, /* @__PURE__ */ import_react12.default.createElement(
107565
+ Trans,
107566
+ {
107567
+ i18nKey: "create_dev_site.success",
107568
+ components: [/* @__PURE__ */ import_react12.default.createElement(Text, { skin: "success", bold: true })],
107569
+ values: { name: result.displayName }
107570
+ }
107571
+ ), /* @__PURE__ */ import_react12.default.createElement(SiteAuthProvider, { siteId: result.id }, /* @__PURE__ */ import_react12.default.createElement(
107572
+ WaitForAppToBeInstalled,
107573
+ {
107574
+ appId,
107575
+ site: result,
107576
+ onSubmit: () => onSubmit(result),
107577
+ onError
107578
+ }
107579
+ )))
107580
+ });
107581
+ };
107582
+
107583
+ // ../cli-site-selector/src/SelectExistingSite.tsx
107584
+ init_esm_shims();
107585
+ var import_react14 = __toESM(require_react(), 1);
107586
+ var import_variant9 = __toESM(require_lib(), 1);
107587
+
107588
+ // ../cli-site-selector/src/SiteListSelect.tsx
107589
+ init_esm_shims();
107590
+ var import_react13 = __toESM(require_react(), 1);
107591
+ var SiteListSelect = ({ onSubmit, sites }) => {
107592
+ const { t } = useTranslation();
107593
+ const bi = useSiteSelectorBi();
107594
+ const handleSubmit = (0, import_react13.useCallback)(
107595
+ (option) => {
107596
+ bi.cliFlowStepAnswered({
107597
+ question: t("site_list_select.label"),
107598
+ answer: option.title
107599
+ });
107600
+ onSubmit(option.value);
107601
+ },
107602
+ [bi, onSubmit, t]
107603
+ );
107604
+ return /* @__PURE__ */ import_react13.default.createElement(
107605
+ SelectInput,
107606
+ {
107607
+ label: t("site_list_select.label"),
107608
+ options: sites.map((site) => ({
107609
+ key: site.id,
107610
+ title: site.displayName,
107611
+ description: site.viewUrl,
107612
+ value: site
107613
+ })),
107614
+ onSubmit: handleSubmit
107615
+ }
107616
+ );
107617
+ };
107618
+
107619
+ // ../cli-site-selector/src/SelectExistingSite.tsx
107620
+ var CheckAppInstalledOnSite = ({ appId, site, onSubmit, onError }) => {
107621
+ const { t } = useTranslation();
107622
+ const { isAppInstalled } = useDevCenterClient();
107623
+ const { status } = useAsync(async () => isAppInstalled(appId), [], {
107624
+ onError,
107625
+ onSuccess: (isInstalled) => {
107626
+ if (isInstalled) {
107627
+ onSubmit(site);
107628
+ }
107629
+ }
107630
+ });
107631
+ return (0, import_variant9.match)(status, {
107632
+ Error: () => null,
107633
+ Loading: () => /* @__PURE__ */ import_react14.default.createElement(Spinner, { text: t("general.loading") }),
107634
+ Success: ({ result: isInstalled }) => {
107635
+ if (isInstalled) {
107636
+ return null;
107637
+ }
107638
+ return /* @__PURE__ */ import_react14.default.createElement(
107639
+ WaitForAppToBeInstalled,
107640
+ {
107641
+ appId,
107642
+ site,
107643
+ onSubmit: () => onSubmit(site),
107644
+ onError
107645
+ }
107646
+ );
107647
+ }
107648
+ });
107649
+ };
107650
+ var SelectExistingSite = ({
107651
+ sites,
107652
+ appId,
107653
+ onSubmit,
107654
+ onError
107655
+ }) => {
107656
+ const [siteToInstallAppOn, setSiteToInstallAppOn] = (0, import_react14.useState)(
107657
+ null
107658
+ );
107659
+ return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement(
107660
+ SiteListSelect,
107661
+ {
107662
+ onSubmit: (site) => setSiteToInstallAppOn(site),
107663
+ sites
107664
+ }
107665
+ ), siteToInstallAppOn && /* @__PURE__ */ import_react14.default.createElement(SiteAuthProvider, { siteId: siteToInstallAppOn.id }, /* @__PURE__ */ import_react14.default.createElement(
107666
+ CheckAppInstalledOnSite,
107667
+ {
107668
+ appId,
107669
+ site: siteToInstallAppOn,
107670
+ onSubmit: () => onSubmit(siteToInstallAppOn),
107671
+ onError
107672
+ }
107673
+ )));
107674
+ };
107675
+
107676
+ // ../cli-site-selector/src/messages.json
107677
+ var messages_default = {
107678
+ "general.loading": "Loading...",
107679
+ "general.success": "Success",
107680
+ "site_type_select.label": "Select Development Site",
107681
+ "site_type_select.create_new_dev_site": "Create a new Development Site",
107682
+ "site_type_select.create_new_dev_site.disabled": "You have reached the maximum number of {limit} Development Sites",
107683
+ "site_type_select.pick_existing_site": "Pick an existing site",
107684
+ "site_type_select.no_sites": "No sites found",
107685
+ "create_dev_site.loading": "Creating your new Development Site...",
107686
+ "create_dev_site.success": "Development Site <0>{name}</0> created successfully! \u{1F680}",
107687
+ "site_list_select.label": "Select Site",
107688
+ "install_app_on_site.warning": "Your new application needs to be installed on the selected Development Site",
107689
+ "install_app_on_site.warning.instructions": "Press <0/> to install the application in your browser",
107690
+ "install_app_on_site.finished_successfully": "App installed on Development Site."
107691
+ };
107692
+
107693
+ // ../cli-site-selector/src/SiteSelector.tsx
107694
+ var SiteSelector = ({
107695
+ appId,
107696
+ biLogger,
107697
+ onSubmit,
107698
+ onError
107699
+ }) => {
107700
+ const [siteType, setSiteType] = (0, import_react15.useState)(null);
107701
+ const { createDevSite } = useDevCenterClient();
107702
+ const siteListClient = useSiteListClient();
107703
+ const { status } = useAsync(
107704
+ () => siteListClient.querySites({
107705
+ query: {
107706
+ cursorPaging: {
107707
+ limit: 100
107708
+ }
107709
+ }
107710
+ }),
107711
+ [],
107712
+ {
107713
+ onError
107714
+ }
107715
+ );
107716
+ const createSite = useAsyncCallback(() => createDevSite(), {
107717
+ onError
107718
+ });
107719
+ function handleSelectSiteType(siteType2) {
107720
+ setSiteType(siteType2);
107721
+ if (siteType2 === "create-dev-site") {
107722
+ void createSite.execute();
107723
+ }
107724
+ }
107725
+ return /* @__PURE__ */ import_react15.default.createElement(BiProvider, { value: biLogger }, /* @__PURE__ */ import_react15.default.createElement(I18nProvider, { messages: messages_default }, (0, import_variant10.match)(status, {
107726
+ Error: () => null,
107727
+ Loading: () => /* @__PURE__ */ import_react15.default.createElement(Spinner, { text: /* @__PURE__ */ import_react15.default.createElement(Trans, { i18nKey: "general.loading" }) }),
107728
+ Success: ({ result: sites }) => /* @__PURE__ */ import_react15.default.createElement(import_react15.default.Fragment, null, /* @__PURE__ */ import_react15.default.createElement(
107729
+ SiteTypeSelect,
107730
+ {
107731
+ onSubmit: handleSelectSiteType,
107732
+ onError,
107733
+ sites
107734
+ }
107735
+ ), siteType === "create-dev-site" && /* @__PURE__ */ import_react15.default.createElement(
107736
+ CreateDevSite,
107737
+ {
107738
+ status: createSite.status,
107739
+ appId,
107740
+ onSubmit,
107741
+ onError
107742
+ }
107743
+ ), siteType === "select-existing-site" && /* @__PURE__ */ import_react15.default.createElement(
107744
+ SelectExistingSite,
107745
+ {
107746
+ sites,
107747
+ appId,
107748
+ onSubmit,
107749
+ onError
107750
+ }
107751
+ ))
107752
+ })));
107753
+ };
107754
+
107755
+ // ../cli-astro-commands/src/site/index.ts
107756
+ init_esm_shims();
107757
+
107758
+ // ../cli-astro-commands/src/site/SiteProvider.tsx
107759
+ init_esm_shims();
107760
+ var import_react18 = __toESM(require_react(), 1);
107761
+ var import_variant13 = __toESM(require_lib(), 1);
107762
+
107763
+ // ../cli-astro-commands/src/site/ResolveSite.tsx
107764
+ init_esm_shims();
107765
+ var import_react16 = __toESM(require_react(), 1);
107766
+ var import_variant11 = __toESM(require_lib(), 1);
107767
+ var ResolveSite = ({ state, onSubmit }) => {
107768
+ const exit = useExit();
107769
+ const { model } = useProjectModel();
107770
+ const biLogger = useBiLogger();
107771
+ return /* @__PURE__ */ import_react16.default.createElement(import_react16.default.Fragment, null, (0, import_variant11.match)(state, {
107772
+ NotConfigured: (0, import_variant11.constant)(
107773
+ /* @__PURE__ */ import_react16.default.createElement(Alert, { type: "insight" }, "You don't have a Development Site currently configured")
107774
+ ),
107775
+ NotFound: ({ id }) => /* @__PURE__ */ import_react16.default.createElement(import_react16.default.Fragment, null, /* @__PURE__ */ import_react16.default.createElement(Alert, { type: "error" }, /* @__PURE__ */ import_react16.default.createElement(Text, null, "Your currently configured Development Site was not found (", id, ")")), /* @__PURE__ */ import_react16.default.createElement(Box_default, { flexDirection: "column" }, /* @__PURE__ */ import_react16.default.createElement(Text, null, "This may happen because the site was deleted or your access has been revoked."), /* @__PURE__ */ import_react16.default.createElement(Text, null, "Please select another Development Site to continue.")))
107776
+ }), /* @__PURE__ */ import_react16.default.createElement(
107777
+ SiteSelector,
107778
+ {
107779
+ appId: model.config.appId,
107780
+ biLogger,
107781
+ onSubmit,
107782
+ onError: exit
107783
+ }
107784
+ ));
107785
+ };
107786
+
107787
+ // ../cli-astro-commands/src/site/context.ts
107788
+ init_esm_shims();
107789
+ var import_react17 = __toESM(require_react(), 1);
107790
+ var SiteContext = (0, import_react17.createContext)(null);
107791
+
107792
+ // ../cli-astro-commands/src/site/site-state.ts
107793
+ init_esm_shims();
107794
+ var import_variant12 = __toESM(require_lib(), 1);
107795
+ var SiteState = (0, import_variant12.variant)({
107796
+ NotConfigured: {},
107797
+ NotFound: (0, import_variant12.fields)(),
107798
+ Resolved: (0, import_variant12.fields)()
107799
+ });
107800
+
107801
+ // ../cli-astro-commands/src/site/resolve-configured-site.ts
107802
+ init_esm_shims();
107803
+ async function resolveConfiguredSite({
107804
+ projectFolder,
107805
+ siteListClient: { getSite },
107806
+ siteId,
107807
+ writeDebugLog
107808
+ }) {
107809
+ const resolvedSiteId = siteId ?? (await readAppConfig(projectFolder, writeDebugLog))?.siteId;
107810
+ if (!resolvedSiteId) {
107811
+ return SiteState.NotConfigured();
107812
+ }
107813
+ const site = await getSite(resolvedSiteId);
107814
+ if (!site) {
107815
+ return SiteState.NotFound({ id: resolvedSiteId });
107816
+ }
107817
+ return SiteState.Resolved({ site });
107818
+ }
107819
+
107820
+ // ../cli-astro-commands/src/site/SiteProvider.tsx
107821
+ var SiteProvider = ({ children, siteId }) => {
107822
+ const exit = useExit();
107823
+ const {
107824
+ model: { projectFolder }
107825
+ } = useProjectModel();
107826
+ const writeDebugLog = useDebugLog();
107827
+ const siteListClient = useSiteListClient();
107828
+ const { status, merge } = useAsync(async () => {
107829
+ return resolveConfiguredSite({
107830
+ projectFolder,
107831
+ siteListClient,
107832
+ siteId,
107833
+ writeDebugLog
107834
+ });
107835
+ }, []);
107836
+ const setSite = (0, import_react18.useCallback)(
107837
+ async (site) => {
107838
+ try {
107839
+ await saveAppConfig(projectFolder, { siteId: site.id });
107840
+ merge({ result: SiteState.Resolved({ site }) });
107841
+ } catch (e) {
107842
+ throw new CliError({
107843
+ code: CliErrorCode.FailedToSaveDevelopmentSite({
107844
+ path: APP_CONFIG_PATH
107845
+ }),
107846
+ cause: e
107847
+ });
107848
+ }
107849
+ },
107850
+ [merge, projectFolder]
107851
+ );
107852
+ const handleResolveSite = (0, import_react18.useCallback)(
107853
+ (site) => setSite(site).catch(exit),
107854
+ [exit, setSite]
107855
+ );
107856
+ return (0, import_variant13.match)(status, {
107857
+ Error: () => null,
107858
+ Loading: () => /* @__PURE__ */ import_react18.default.createElement(Spinner, { text: "Resolving development site..." }),
107859
+ Success: ({ result: state }) => {
107860
+ return (0, import_variant13.match)(state, {
107861
+ NotConfigured: (variant7) => /* @__PURE__ */ import_react18.default.createElement(ResolveSite, { state: variant7, onSubmit: handleResolveSite }),
107862
+ NotFound: (variant7) => /* @__PURE__ */ import_react18.default.createElement(ResolveSite, { state: variant7, onSubmit: handleResolveSite }),
107863
+ Resolved: ({ site }) => /* @__PURE__ */ import_react18.default.createElement(
107864
+ SiteContext.Provider,
107865
+ {
107866
+ value: {
107867
+ site,
107868
+ setSite
107869
+ }
107870
+ },
107871
+ typeof children === "function" ? children(site) : children
107872
+ )
107873
+ });
107874
+ }
107875
+ });
107876
+ };
107877
+
107878
+ // ../cli-astro-commands/src/site/useSite.ts
107879
+ init_esm_shims();
107880
+ var import_react19 = __toESM(require_react(), 1);
107881
+ function useSite() {
107882
+ const context = (0, import_react19.useContext)(SiteContext);
107883
+ if (context == null) {
107884
+ throw new Error("useSite() cannot be used without an <SiteProvider>");
107885
+ }
107886
+ return context;
107887
+ }
107888
+
107889
+ // ../cli-astro-commands/src/components/CloseScreen/index.tsx
107890
+ init_esm_shims();
107891
+
107892
+ // ../cli-astro-commands/src/components/CloseScreen/CloseScreen.tsx
107893
+ init_esm_shims();
107894
+ var import_react21 = __toESM(require_react(), 1);
107895
+
107896
+ // ../cli-astro-commands/src/bi-app/index.ts
107897
+ init_esm_shims();
107898
+
107899
+ // ../cli-astro-commands/src/bi-app/useWixCliAppBi.ts
107900
+ init_esm_shims();
107901
+ var import_react20 = __toESM(require_react(), 1);
107902
+
107903
+ // ../cli-astro-commands/src/bi-app/events.ts
107904
+ init_esm_shims();
107905
+ var wixCliAppBiEvents = (biLogger) => ({
107906
+ cliAction: ({
107907
+ questionKey,
107908
+ question,
107909
+ action,
107910
+ key,
107911
+ additionalInfo
107912
+ }) => {
107913
+ void biLogger.report(
107914
+ wixCliAction({
107915
+ questionKey,
107916
+ question,
107917
+ action,
107918
+ key,
107919
+ additionalInfo: JSON.stringify(additionalInfo)
107920
+ })
107921
+ );
107922
+ },
107923
+ cliStepBack: ({
107924
+ additionalInfo
107925
+ }) => {
107926
+ void biLogger.report(
107927
+ wixCliAction({
107928
+ action: "goToPreviousStep",
107929
+ key: "Esc",
107930
+ additionalInfo: JSON.stringify(additionalInfo)
107931
+ })
107932
+ );
107933
+ },
107934
+ cliFlowStepAnswered: ({
107935
+ question,
107936
+ questionKey,
107937
+ answer,
107938
+ additionalInfo
107939
+ }) => {
107940
+ void biLogger.report(
107941
+ wixCliAppFlowStepsAnswers({
107942
+ questionKey,
107943
+ question,
107944
+ answer,
107945
+ additionalInfo: JSON.stringify(additionalInfo)
107946
+ })
107947
+ );
107948
+ },
107949
+ fileUpload({
107950
+ provider,
107951
+ fileCount,
107952
+ totalSizeInKb,
107953
+ cliVersion
107954
+ }) {
107955
+ const startTimestamp = Date.now();
107956
+ void biLogger.report(
107957
+ wixCliAppFlowFileUploadStarted({
107958
+ timestampMs: startTimestamp,
107959
+ hostingProvider: provider,
107960
+ numFiles: fileCount,
107961
+ fileSizeCompressed: 0,
107962
+ fileSizeNotCompressed: totalSizeInKb,
107963
+ cliVersion
107964
+ })
107965
+ );
107966
+ return {
107967
+ finished() {
107968
+ void biLogger.report(
107969
+ wixCliAppFlowUploadEnded({
107970
+ duration: Date.now() - startTimestamp
107971
+ })
107972
+ );
107973
+ }
107974
+ };
107975
+ },
107976
+ cliDeployment: ({
107977
+ appId,
107978
+ deploymentId,
107979
+ files
107980
+ }) => {
107981
+ const startTimestamp = Date.now();
107982
+ const fileDetails = files ? files.filter((f) => f.filePath).map((file) => ({
107983
+ filePath: file.filePath,
107984
+ fileSizeKb: file.content ? file.content.length / 1024 : 0
107985
+ })) : [];
107986
+ return {
107987
+ finish: ({
107988
+ isSuccess,
107989
+ failureReason
107990
+ }) => {
107991
+ void biLogger.report(
107992
+ wixCliAppsFlowDeploymentStatusSrc11Evid5232({
107993
+ isSuccess,
107994
+ failureReason,
107995
+ filesDetails: JSON.stringify(fileDetails),
107996
+ filesSize: Math.round(
107997
+ fileDetails.reduce((acc, { fileSizeKb }) => acc + fileSizeKb, 0)
107998
+ ),
107999
+ uploadSource: "backend",
108000
+ appId,
108001
+ deploymentId,
108002
+ filesUploadTime: Date.now() - startTimestamp
108003
+ })
108004
+ );
108005
+ }
108006
+ };
108007
+ }
108008
+ });
108009
+
108010
+ // ../cli-astro-commands/src/bi-app/useWixCliAppBi.ts
108011
+ function useWixCliAppBi() {
108012
+ const biLogger = useBiLogger();
108013
+ return (0, import_react20.useMemo)(() => wixCliAppBiEvents(biLogger), [biLogger]);
108014
+ }
108015
+
108016
+ // ../cli-astro-commands/src/components/CloseScreen/CloseScreen.tsx
108017
+ var CloseScreen = ({ onClose }) => {
108018
+ const bi = useWixCliAppBi();
108019
+ use_input_default((_, key) => {
108020
+ if (key.escape) {
108021
+ bi.cliAction({
108022
+ question: "Press to close",
108023
+ questionKey: "general.close_screen",
108024
+ action: "close",
108025
+ key: "esc"
108026
+ });
108027
+ onClose();
108028
+ }
108029
+ });
108030
+ return /* @__PURE__ */ import_react21.default.createElement(Text, { skin: "secondary" }, "Press", /* @__PURE__ */ import_react21.default.createElement(Key, { value: "esc", skin: "secondary" }), "to close");
108031
+ };
108032
+
108033
+ // ../cli-astro-commands/src/components/DevCommand/app-flow/SiteSelectorScreen.tsx
108034
+ var SiteSelectorScreen = ({ onScreenChange }) => {
108035
+ const { model } = useProjectModel();
108036
+ const biLogger = useBiLogger();
108037
+ const { site, setSite } = useSite();
108038
+ const { reportError } = useErrorReporter();
108039
+ const [error, setError] = (0, import_react22.useState)(null);
108040
+ const handleError = (0, import_react22.useCallback)(
108041
+ (error2) => {
108042
+ reportError(error2);
108043
+ setError(error2);
108044
+ },
108045
+ [reportError, setError]
108046
+ );
108047
+ const handleSubmit = (0, import_react22.useCallback)(
108048
+ async (site2) => {
108049
+ try {
108050
+ await setSite(site2);
108051
+ onScreenChange(ScreenState.Home());
108052
+ } catch (e) {
108053
+ handleError(e);
108054
+ }
108055
+ },
108056
+ [setSite, onScreenChange, handleError]
108057
+ );
108058
+ return /* @__PURE__ */ import_react22.default.createElement(Box_default, { flexDirection: "column", gap: 1 }, /* @__PURE__ */ import_react22.default.createElement(Box_default, { gap: 1 }, /* @__PURE__ */ import_react22.default.createElement(PointerIcon, null), /* @__PURE__ */ import_react22.default.createElement(Text, null, "Current Development Site: ", site.displayName)), /* @__PURE__ */ import_react22.default.createElement(Box_default, { flexDirection: "column" }, /* @__PURE__ */ import_react22.default.createElement(
108059
+ SiteSelector,
108060
+ {
108061
+ appId: model.config.appId,
108062
+ biLogger,
108063
+ onSubmit: handleSubmit,
108064
+ onError: handleError
108065
+ }
108066
+ ), error ? /* @__PURE__ */ import_react22.default.createElement(
108067
+ ErrorViewer,
108068
+ {
108069
+ error,
108070
+ systemErrorOverride: /* @__PURE__ */ import_react22.default.createElement(Alert, { type: "error" }, "Failed to change Development Site!")
108071
+ }
108072
+ ) : null), /* @__PURE__ */ import_react22.default.createElement(CloseScreen, { onClose: () => onScreenChange(ScreenState.Home()) }));
108073
+ };
108074
+
108075
+ // ../cli-astro-commands/src/components/DevCommand/app-flow/HomeScreen.tsx
108076
+ init_esm_shims();
108077
+ var import_react23 = __toESM(require_react(), 1);
108078
+ var HomeScreen = ({
108079
+ onScreenChange,
108080
+ devArmTag
108081
+ }) => {
108082
+ const { site } = useSite();
108083
+ const bi = useWixCliAppBi();
108084
+ use_input_default(async (input) => {
108085
+ if (input === "c") {
108086
+ bi.cliAction({
108087
+ question: "Switch Dev Site",
108088
+ questionKey: "dev_command.dev_site.change",
108089
+ action: "change_site",
108090
+ key: input
108091
+ });
108092
+ onScreenChange(ScreenState.SiteSelector());
108093
+ }
108094
+ });
108095
+ return /* @__PURE__ */ import_react23.default.createElement(import_react23.default.Fragment, null, /* @__PURE__ */ import_react23.default.createElement(Box_default, { gap: 1 }, /* @__PURE__ */ import_react23.default.createElement(Text, null, "Current Dev Site:"), /* @__PURE__ */ import_react23.default.createElement(Text, { bold: true, skin: "info" }, site.displayName), /* @__PURE__ */ import_react23.default.createElement(Text, { skin: "secondary" }, "(Press ", /* @__PURE__ */ import_react23.default.createElement(Key, { value: "C", skin: "secondary" }), " to switch)")), /* @__PURE__ */ import_react23.default.createElement(Box_default, { paddingTop: 1, paddingBottom: 1, flexDirection: "column" }, /* @__PURE__ */ import_react23.default.createElement(Text, null, "Open the preview on:"), /* @__PURE__ */ import_react23.default.createElement(Box_default, { paddingLeft: 2, flexDirection: "column" }, devArmTag ? /* @__PURE__ */ import_react23.default.createElement(
108096
+ PlatformLink,
108097
+ {
108098
+ url: `https://manage.wix.com/dashboard/${site.id}?apps-override=${devArmTag}`,
108099
+ label: "Dashboard"
108100
+ }
108101
+ ) : /* @__PURE__ */ import_react23.default.createElement(Spinner, { text: "Preparing your dashboard..." }))));
108102
+ };
108103
+
108104
+ // ../cli-astro-commands/src/components/DevCommand/hooks/useDevCenterUpdater.ts
108105
+ init_esm_shims();
108106
+ var import_react24 = __toESM(require_react(), 1);
108107
+ var import_variant14 = __toESM(require_lib(), 1);
108108
+ import { isDeepStrictEqual as isDeepStrictEqual2 } from "node:util";
108109
+ var DevCenterUpdateResult2 = (0, import_variant14.variant)({
108110
+ Changed: (0, import_variant14.fields)(),
108111
+ Unchanged: {}
108112
+ });
108113
+ var useDevCenterUpdater = ({
108114
+ serverLocalUrl,
108115
+ serverExposedUrl,
108116
+ devMetadata
108117
+ }) => {
108118
+ const [devArmTag, setDevArmTag] = (0, import_react24.useState)();
108119
+ const [manifest, setManifest] = (0, import_react24.useState)(null);
108120
+ const writeToDebugLog = useDebugLog();
108121
+ const {
108122
+ model: {
108123
+ config: { appId },
108124
+ projectFolder
108125
+ }
108126
+ } = useProjectModel();
108127
+ const logger = (0, import_react24.useMemo)(() => createAstroLogger(), []);
108128
+ const { updateManifest } = useUpdateManifest();
108129
+ const arm = useARMClient();
108130
+ const openTunnel = useTunnel();
108131
+ const tunnelUrl = (0, import_react24.useRef)();
108132
+ const [tunnelRequired, setTunnelRequired] = (0, import_react24.useState)(false);
108133
+ const fetchAppManifest = useFetchAppManifest();
108134
+ const updateDevCenter = (0, import_react24.useCallback)(async () => {
108135
+ const baseUrl = serverExposedUrl ?? serverLocalUrl;
108136
+ const { manifest: latestManifest, isTunnelRequired: isTunnelRequired2 } = await fetchAppManifest(
108137
+ serverLocalUrl,
108138
+ devMetadata,
108139
+ baseUrl,
108140
+ tunnelUrl.current ?? baseUrl
108141
+ );
108142
+ if (isDeepStrictEqual2(manifest, latestManifest)) {
108143
+ return DevCenterUpdateResult2.Unchanged();
108144
+ }
108145
+ if (!serverExposedUrl && !tunnelUrl.current && isTunnelRequired2) {
108146
+ const config = await readUserConfig();
108147
+ if (!config.tunneling) {
108148
+ setTunnelRequired(true);
108149
+ return DevCenterUpdateResult2.Unchanged();
108150
+ }
108151
+ const serverLocalPort = parseInt(new URL(serverLocalUrl).port, 10);
108152
+ const tunnel = await openTunnel(serverLocalPort);
108153
+ tunnelUrl.current = tunnel.url;
108154
+ return DevCenterUpdateResult2.Unchanged();
108155
+ }
108156
+ const appConfig = await readAppConfig(projectFolder);
108157
+ let updatedDevArmTag = appConfig?.devArmTag;
108158
+ if (!updatedDevArmTag) {
108159
+ updatedDevArmTag = await arm.createLooseAppRelease(
108160
+ updateManifest(latestManifest, baseUrl, tunnelUrl.current),
108161
+ appId
108162
+ );
108163
+ } else {
108164
+ const updateState = await arm.updateLooseAppRelease(
108165
+ updateManifest(latestManifest, baseUrl, tunnelUrl.current),
108166
+ updatedDevArmTag
108167
+ );
108168
+ if (!(0, import_variant14.isType)(updateState, "TagUpdated")) {
108169
+ updatedDevArmTag = await arm.createLooseAppRelease(
108170
+ updateManifest(latestManifest, baseUrl, tunnelUrl.current),
108171
+ appId
108172
+ );
108173
+ }
108174
+ }
108175
+ if (updatedDevArmTag !== appConfig?.devArmTag) {
108176
+ await saveAppConfig(projectFolder, { devArmTag: updatedDevArmTag });
108177
+ }
108178
+ setManifest(latestManifest);
108179
+ setDevArmTag(updatedDevArmTag);
108180
+ const armTagChanged = !!appConfig?.devArmTag && updatedDevArmTag !== appConfig.devArmTag;
108181
+ return DevCenterUpdateResult2.Changed({ armTagChanged });
108182
+ }, [
108183
+ fetchAppManifest,
108184
+ updateManifest,
108185
+ serverLocalUrl,
108186
+ serverExposedUrl,
108187
+ arm,
108188
+ manifest,
108189
+ projectFolder,
108190
+ appId,
108191
+ openTunnel,
108192
+ devMetadata
108193
+ ]);
108194
+ const [timer, setTimer] = (0, import_react24.useState)(Date.now());
108195
+ (0, import_react24.useEffect)(() => {
108196
+ let disposed = false;
108197
+ void updateDevCenter().then((result) => {
108198
+ if ((0, import_variant14.isType)(result, "Changed")) {
108199
+ logger.log(
108200
+ "App Manifest updated. Refresh existing browser tabs to view the latest changes."
108201
+ );
108202
+ }
108203
+ }).catch((error) => {
108204
+ logger.log("Failed to update App Manifest");
108205
+ logger.log(`${error}`);
108206
+ writeToDebugLog(error);
108207
+ }).then(() => {
108208
+ if (!disposed) {
108209
+ setTimeout(() => setTimer(Date.now()), 1e3);
108210
+ }
108211
+ });
108212
+ return () => {
108213
+ disposed = true;
108214
+ };
108215
+ }, [timer]);
108216
+ return { tunnelRequired, devArmTag };
108217
+ };
108218
+
108219
+ // ../cli-astro-commands/src/components/DevCommand/app-flow/AppDev.tsx
108220
+ var AppDev = ({
108221
+ serverLocalUrl,
108222
+ serverExposedUrl,
108223
+ devMetadata
108224
+ }) => {
108225
+ const [screen, setScreen] = (0, import_react25.useState)(ScreenState.Home());
108226
+ const { tunnelRequired, devArmTag } = useDevCenterUpdater({
108227
+ serverLocalUrl,
108228
+ serverExposedUrl,
108229
+ devMetadata
108230
+ });
108231
+ return /* @__PURE__ */ import_react25.default.createElement(TunnelingConsent, { required: tunnelRequired }, (0, import_variant15.match)(screen, {
108232
+ Home: () => /* @__PURE__ */ import_react25.default.createElement(HomeScreen, { onScreenChange: setScreen, devArmTag }),
108233
+ SiteSelector: () => /* @__PURE__ */ import_react25.default.createElement(SiteSelectorScreen, { onScreenChange: setScreen })
108234
+ }));
108235
+ };
108236
+
108237
+ // ../cli-astro-commands/src/components/DevCommand/AppDevFlow.tsx
108238
+ var AppDevFlow = ({
108239
+ devMetadataStatus,
108240
+ serverExposedUrl
108241
+ }) => {
108242
+ return (0, import_variant16.match)(devMetadataStatus, {
108243
+ NotRequested: () => /* @__PURE__ */ import_react26.default.createElement(Spinner, { text: "Starting dev environment..." }),
108244
+ Error: () => null,
108245
+ Loading: () => /* @__PURE__ */ import_react26.default.createElement(Spinner, { text: "Checking dev environment settings..." }),
108246
+ Success: ({ result: { devMetadata, serverLocalUrl } }) => {
108247
+ return /* @__PURE__ */ import_react26.default.createElement(DevScreenBorder, null, /* @__PURE__ */ import_react26.default.createElement(SiteProvider, null, /* @__PURE__ */ import_react26.default.createElement(
108248
+ AppDev,
108249
+ {
108250
+ serverLocalUrl,
108251
+ serverExposedUrl,
108252
+ devMetadata
108253
+ }
108254
+ )));
108255
+ }
108256
+ });
108257
+ };
107041
108258
 
107042
108259
  // ../cli-astro-commands/src/components/DevCommand/DevCommand.tsx
107043
108260
  var DevCommand = ({
@@ -107046,13 +108263,10 @@ var DevCommand = ({
107046
108263
  serverExposedUrl
107047
108264
  }) => {
107048
108265
  const {
107049
- model: {
107050
- config: { siteId },
107051
- projectFolder
107052
- }
108266
+ model: { config, projectFolder }
107053
108267
  } = useProjectModel();
107054
- const logger = (0, import_react6.useMemo)(() => createAstroLogger(false), []);
107055
- const astroProcess = (0, import_react6.useRef)();
108268
+ const logger = (0, import_react27.useMemo)(() => createAstroLogger(false), []);
108269
+ const astroProcess = (0, import_react27.useRef)();
107056
108270
  const fetchDevMetadataAction = useFetchDevMetadata();
107057
108271
  useAsync(async () => {
107058
108272
  const repoType = await getRepoType(projectFolder);
@@ -107070,7 +108284,7 @@ var DevCommand = ({
107070
108284
  astro.stdout?.on(EVENT_LINE, (line) => logger.log(line));
107071
108285
  astro.stderr?.on(EVENT_LINE, (line) => logger.log(line));
107072
108286
  }, []);
107073
- (0, import_react6.useEffect)(() => {
108287
+ (0, import_react27.useEffect)(() => {
107074
108288
  return () => {
107075
108289
  if (astroProcess.current?.pid) {
107076
108290
  try {
@@ -107080,19 +108294,23 @@ var DevCommand = ({
107080
108294
  }
107081
108295
  };
107082
108296
  }, []);
107083
- return /* @__PURE__ */ import_react6.default.createElement(SiteAuthProvider, { siteId }, (0, import_variant4.match)(fetchDevMetadataAction.status, {
107084
- NotRequested: () => /* @__PURE__ */ import_react6.default.createElement(Spinner, { text: "Starting dev environment..." }),
107085
- Error: () => null,
107086
- Loading: () => /* @__PURE__ */ import_react6.default.createElement(Spinner, { text: "Checking dev environment settings..." }),
107087
- Success: ({ result: { devMetadata, serverLocalUrl } }) => /* @__PURE__ */ import_react6.default.createElement(DevScreenBorder, null, /* @__PURE__ */ import_react6.default.createElement(Text, null, "Development environment ready"), /* @__PURE__ */ import_react6.default.createElement(
107088
- DevCenterUpdater,
108297
+ if (config.projectType === "Site") {
108298
+ return /* @__PURE__ */ import_react27.default.createElement(
108299
+ SiteDevFlow,
107089
108300
  {
107090
- devMetadata,
107091
- serverLocalUrl,
108301
+ siteId: config.siteId,
108302
+ devMetadataStatus: fetchDevMetadataAction.status,
107092
108303
  serverExposedUrl
107093
108304
  }
107094
- ))
107095
- }));
108305
+ );
108306
+ }
108307
+ return /* @__PURE__ */ import_react27.default.createElement(
108308
+ AppDevFlow,
108309
+ {
108310
+ devMetadataStatus: fetchDevMetadataAction.status,
108311
+ serverExposedUrl
108312
+ }
108313
+ );
107096
108314
  };
107097
108315
  export {
107098
108316
  DevCommand
@@ -107151,4 +108369,4 @@ export {
107151
108369
  *)
107152
108370
  *)
107153
108371
  */
107154
- //# sourceMappingURL=DevCommand-BMM34YPU.js.map
108372
+ //# sourceMappingURL=DevCommand-XWXE2GQD.js.map