@wix/cli 1.1.131 → 1.1.133

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 (184) hide show
  1. package/build/{DevCommand-7C7OTMZ2.js → DevCommand-7MKRENDN.js} +20 -20
  2. package/build/DevCommand-LDBBVFHI.js +921 -0
  3. package/build/DevCommand-LDBBVFHI.js.map +1 -0
  4. package/build/{DevCommand-YGD62PY3.js → DevCommand-SWX2D72V.js} +15 -15
  5. package/build/{EnvPullCommand-HQZCHDVW.js → EnvPullCommand-73PE6G6F.js} +12 -12
  6. package/build/{EnvRemoveCommand-PRW22UJL.js → EnvRemoveCommand-BWIFL2PF.js} +17 -15
  7. package/build/EnvRemoveCommand-BWIFL2PF.js.map +1 -0
  8. package/build/{EnvSetCommand-M3COJ5U3.js → EnvSetCommand-OXCR6KZW.js} +17 -15
  9. package/build/EnvSetCommand-OXCR6KZW.js.map +1 -0
  10. package/build/GenerateCommand-MFY3XZ3R.js +10447 -0
  11. package/build/GenerateCommand-MFY3XZ3R.js.map +1 -0
  12. package/build/{InstallCommand-QYUZZTIV.js → InstallCommand-5BGO6YD5.js} +17 -17
  13. package/build/{LoginCommand-NWXJQGCX.js → LoginCommand-45KDXRGW.js} +9 -9
  14. package/build/{LogoutCommand-GSDL4UZG.js → LogoutCommand-J7AHAZBJ.js} +6 -6
  15. package/build/{PreviewCommand-63Y2QMZ3.js → PreviewCommand-M4QGOZIQ.js} +19 -19
  16. package/build/{PreviewCommand-XVC5JUCV.js → PreviewCommand-RCY6PODY.js} +16 -14
  17. package/build/{PreviewCommand-ADQXF5OJ.js → PreviewCommand-ZLXKZAID.js} +19 -19
  18. package/build/{PromoteCommand-SU2X566V.js → PromoteCommand-P545RBBC.js} +16 -14
  19. package/build/{PromoteCommand-SU2X566V.js.map → PromoteCommand-P545RBBC.js.map} +1 -1
  20. package/build/{PublishCommand-RJUSEGO7.js → PublishCommand-6447ZL7O.js} +19 -19
  21. package/build/{ReleaseCommand-56WKXNK4.js → ReleaseCommand-PSXATDOQ.js} +45 -20
  22. package/build/ReleaseCommand-PSXATDOQ.js.map +1 -0
  23. package/build/{UninstallCommand-ZASEMR45.js → UninstallCommand-3BGVCWEO.js} +17 -17
  24. package/build/{WhoamiCommand-4ANDNT7Y.js → WhoamiCommand-IJNDHARB.js} +3 -3
  25. package/build/{chunk-UR2HUVJ7.js → chunk-3VM2I3KU.js} +6 -6
  26. package/build/{chunk-TGRXPHY6.js → chunk-44GJUTL2.js} +5 -5
  27. package/build/{chunk-V6HQQWCA.js → chunk-5DPOQEHJ.js} +8 -8
  28. package/build/{chunk-BVM3FYNM.js → chunk-6GSUU65D.js} +2 -2
  29. package/build/{chunk-4BOJQTTP.js → chunk-6IQOPD7Y.js} +7 -7
  30. package/build/{chunk-KBORAL57.js → chunk-6W422UGP.js} +2 -2
  31. package/build/{chunk-BBCT5CBT.js → chunk-6XQIBCEG.js} +4 -4
  32. package/build/{chunk-MDGDEDGX.js → chunk-763CNX5X.js} +2 -2
  33. package/build/{chunk-OPNGHPU4.js → chunk-7OXMU7EW.js} +4 -4
  34. package/build/{chunk-OPNGHPU4.js.map → chunk-7OXMU7EW.js.map} +1 -1
  35. package/build/{chunk-STQCW7A5.js → chunk-CU77QH5G.js} +2 -2
  36. package/build/{chunk-STQCW7A5.js.map → chunk-CU77QH5G.js.map} +1 -1
  37. package/build/{chunk-T5C43OQK.js → chunk-CVORQHI7.js} +3 -3
  38. package/build/{chunk-6B2RYJDL.js → chunk-D74UNX3A.js} +98 -27
  39. package/build/chunk-D74UNX3A.js.map +1 -0
  40. package/build/{chunk-GJRDQFCB.js → chunk-DJ2UGSXB.js} +2 -2
  41. package/build/{chunk-3MBMJERV.js → chunk-EYBSRZFX.js} +4 -4
  42. package/build/{chunk-U7NMQMEG.js → chunk-GR2PWATE.js} +2 -2
  43. package/build/{chunk-4ASXFAN7.js → chunk-IJ74ZC2Y.js} +63 -11
  44. package/build/chunk-IJ74ZC2Y.js.map +1 -0
  45. package/build/{chunk-GUSV4N2E.js → chunk-JB3ZSQ4V.js} +2 -2
  46. package/build/{chunk-PNV2OKNW.js → chunk-KAEF5TRH.js} +2 -2
  47. package/build/{chunk-X2NBNP2E.js → chunk-KT3M5OKA.js} +3 -3
  48. package/build/{chunk-AGKNEEDR.js → chunk-L6B6ZZ2H.js} +13 -11
  49. package/build/chunk-L6B6ZZ2H.js.map +1 -0
  50. package/build/{chunk-6PYC5DBT.js → chunk-LHIW7AJD.js} +69 -11
  51. package/build/chunk-LHIW7AJD.js.map +1 -0
  52. package/build/{chunk-NDBZNWWI.js → chunk-LKYWHOMW.js} +13 -1
  53. package/build/{chunk-NDBZNWWI.js.map → chunk-LKYWHOMW.js.map} +1 -1
  54. package/build/{chunk-GGTDDK53.js → chunk-LYSRG3GF.js} +4 -4
  55. package/build/{chunk-KAQXYUZ2.js → chunk-MB36UMSR.js} +5 -5
  56. package/build/{chunk-LAVKWSGY.js → chunk-N2YYKEKV.js} +3 -3
  57. package/build/{chunk-N4WIZNPX.js → chunk-NRUBQ5N7.js} +2 -2
  58. package/build/{chunk-Q2SUFPGY.js → chunk-NU3PGW4G.js} +12 -9
  59. package/build/chunk-NU3PGW4G.js.map +1 -0
  60. package/build/{chunk-V3ZO6GY5.js → chunk-OTBU2MWL.js} +8 -8
  61. package/build/{chunk-XNSO7WKJ.js → chunk-OXTKB4SC.js} +3 -3
  62. package/build/{chunk-CUQUD7FS.js → chunk-OZKGZAOZ.js} +3 -3
  63. package/build/{chunk-755IY3BR.js → chunk-PBUFZ6OU.js} +4 -4
  64. package/build/{chunk-E7PJXDFO.js → chunk-PH4BOMTV.js} +3 -3
  65. package/build/chunk-PNHDNWUK.js +5489 -0
  66. package/build/chunk-PNHDNWUK.js.map +1 -0
  67. package/build/{chunk-LUM7NYOU.js → chunk-QO4VD6Y5.js} +2 -2
  68. package/build/{chunk-ZBDV4YE5.js → chunk-QYUVUKJH.js} +3 -3
  69. package/build/{chunk-HJLNJXW7.js → chunk-QZD3FQNI.js} +7 -7
  70. package/build/{chunk-EDBJ25FR.js → chunk-RVBYFFXK.js} +6 -6
  71. package/build/{DevCommand-BMM34YPU.js → chunk-RVMHWFXV.js} +1872 -700
  72. package/build/chunk-RVMHWFXV.js.map +1 -0
  73. package/build/{chunk-BSV2DJUC.js → chunk-SAUEECUE.js} +3 -3
  74. package/build/{chunk-USA5LODZ.js → chunk-UUC65NV7.js} +8 -8
  75. package/build/{chunk-LQXRNBJ2.js → chunk-VA3YF34S.js} +4 -2
  76. package/build/{chunk-7WQENS6J.js → chunk-XEKM4VLO.js} +3 -3
  77. package/build/{chunk-P23NP3OP.js → chunk-XKEFEPF6.js} +2 -2
  78. package/build/{chunk-4H3OAZQS.js → chunk-Y2AMOBMY.js} +8 -8
  79. package/build/{chunk-MDMFU25C.js → chunk-Z7ECXECD.js} +2 -2
  80. package/build/{dev-DNN3IK3F.js → dev-2NFD6QEM.js} +23 -23
  81. package/build/{env-pull-NDOFC6UC.js → env-pull-OHEZAUTU.js} +14 -14
  82. package/build/index.js +24 -24
  83. package/build/{install-FMK7BRFJ.js → install-FHCG4U4R.js} +15 -15
  84. package/build/{preview-TFS7UEUA.js → preview-RYHUMXWR.js} +18 -16
  85. package/build/{preview-TFS7UEUA.js.map → preview-RYHUMXWR.js.map} +1 -1
  86. package/build/{publish-FHAFFJHB.js → publish-QZGEHMZ2.js} +16 -16
  87. package/build/{render-command-DGM4ETBU.js → render-command-CLDVD7ZQ.js} +11 -11
  88. package/build/{render-command-NYTNTTHG.js → render-command-JKKYBTHT.js} +12 -12
  89. package/build/{render-command-M4P7CP4H.js → render-command-LYNRDGPP.js} +12 -12
  90. package/build/{render-command-3DCNLQV5.js → render-command-ZQ3UPX54.js} +11 -11
  91. package/build/{render-command-MA7UDH5Q.js → render-command-ZUW2SOXP.js} +11 -11
  92. package/build/{run-command-ERVZVLJF.js → run-command-LY3OSHGO.js} +7 -7
  93. package/build/{src-5QDQ6RFQ.js → src-ATQPFIAX.js} +4 -4
  94. package/build/{src-WBL43MZJ.js → src-CDV5A6FR.js} +6 -6
  95. package/build/{src-M637ADEF.js → src-DBCKXMSW.js} +17 -17
  96. package/build/{src-HKEHYQHS.js → src-GA5OFATI.js} +4 -4
  97. package/build/{src-TWDQUQWX.js → src-JELLX323.js} +58 -31
  98. package/build/src-JELLX323.js.map +1 -0
  99. package/build/{src-KHPAF4DG.js → src-JP7XE6WI.js} +2 -2
  100. package/build/{src-QWLA5MLC.js → src-WCL4TDCR.js} +14 -14
  101. package/build/{src-E5SPIGEE.js → src-X6NEARNN.js} +10 -8
  102. package/build/{sync-types-WVHPSV2M.js → sync-types-57HK54CQ.js} +11 -11
  103. package/build/{uninstall-UKE4WSXR.js → uninstall-XFEDEW2Z.js} +15 -15
  104. package/package.json +2 -2
  105. package/build/DevCommand-BMM34YPU.js.map +0 -1
  106. package/build/EnvRemoveCommand-PRW22UJL.js.map +0 -1
  107. package/build/EnvSetCommand-M3COJ5U3.js.map +0 -1
  108. package/build/GenerateCommand-ZEAU4CXR.js +0 -15727
  109. package/build/GenerateCommand-ZEAU4CXR.js.map +0 -1
  110. package/build/ReleaseCommand-56WKXNK4.js.map +0 -1
  111. package/build/chunk-4ASXFAN7.js.map +0 -1
  112. package/build/chunk-6B2RYJDL.js.map +0 -1
  113. package/build/chunk-6PYC5DBT.js.map +0 -1
  114. package/build/chunk-6QHN2XDV.js +0 -839
  115. package/build/chunk-6QHN2XDV.js.map +0 -1
  116. package/build/chunk-AGKNEEDR.js.map +0 -1
  117. package/build/chunk-Q2SUFPGY.js.map +0 -1
  118. package/build/src-TWDQUQWX.js.map +0 -1
  119. /package/build/{DevCommand-7C7OTMZ2.js.map → DevCommand-7MKRENDN.js.map} +0 -0
  120. /package/build/{DevCommand-YGD62PY3.js.map → DevCommand-SWX2D72V.js.map} +0 -0
  121. /package/build/{EnvPullCommand-HQZCHDVW.js.map → EnvPullCommand-73PE6G6F.js.map} +0 -0
  122. /package/build/{InstallCommand-QYUZZTIV.js.map → InstallCommand-5BGO6YD5.js.map} +0 -0
  123. /package/build/{LoginCommand-NWXJQGCX.js.map → LoginCommand-45KDXRGW.js.map} +0 -0
  124. /package/build/{LogoutCommand-GSDL4UZG.js.map → LogoutCommand-J7AHAZBJ.js.map} +0 -0
  125. /package/build/{PreviewCommand-63Y2QMZ3.js.map → PreviewCommand-M4QGOZIQ.js.map} +0 -0
  126. /package/build/{PreviewCommand-XVC5JUCV.js.map → PreviewCommand-RCY6PODY.js.map} +0 -0
  127. /package/build/{PreviewCommand-ADQXF5OJ.js.map → PreviewCommand-ZLXKZAID.js.map} +0 -0
  128. /package/build/{PublishCommand-RJUSEGO7.js.map → PublishCommand-6447ZL7O.js.map} +0 -0
  129. /package/build/{UninstallCommand-ZASEMR45.js.map → UninstallCommand-3BGVCWEO.js.map} +0 -0
  130. /package/build/{WhoamiCommand-4ANDNT7Y.js.map → WhoamiCommand-IJNDHARB.js.map} +0 -0
  131. /package/build/{chunk-UR2HUVJ7.js.map → chunk-3VM2I3KU.js.map} +0 -0
  132. /package/build/{chunk-TGRXPHY6.js.map → chunk-44GJUTL2.js.map} +0 -0
  133. /package/build/{chunk-V6HQQWCA.js.map → chunk-5DPOQEHJ.js.map} +0 -0
  134. /package/build/{chunk-BVM3FYNM.js.map → chunk-6GSUU65D.js.map} +0 -0
  135. /package/build/{chunk-4BOJQTTP.js.map → chunk-6IQOPD7Y.js.map} +0 -0
  136. /package/build/{chunk-KBORAL57.js.map → chunk-6W422UGP.js.map} +0 -0
  137. /package/build/{chunk-BBCT5CBT.js.map → chunk-6XQIBCEG.js.map} +0 -0
  138. /package/build/{chunk-MDGDEDGX.js.map → chunk-763CNX5X.js.map} +0 -0
  139. /package/build/{chunk-T5C43OQK.js.map → chunk-CVORQHI7.js.map} +0 -0
  140. /package/build/{chunk-GJRDQFCB.js.map → chunk-DJ2UGSXB.js.map} +0 -0
  141. /package/build/{chunk-3MBMJERV.js.map → chunk-EYBSRZFX.js.map} +0 -0
  142. /package/build/{chunk-U7NMQMEG.js.map → chunk-GR2PWATE.js.map} +0 -0
  143. /package/build/{chunk-GUSV4N2E.js.map → chunk-JB3ZSQ4V.js.map} +0 -0
  144. /package/build/{chunk-PNV2OKNW.js.map → chunk-KAEF5TRH.js.map} +0 -0
  145. /package/build/{chunk-X2NBNP2E.js.map → chunk-KT3M5OKA.js.map} +0 -0
  146. /package/build/{chunk-GGTDDK53.js.map → chunk-LYSRG3GF.js.map} +0 -0
  147. /package/build/{chunk-KAQXYUZ2.js.map → chunk-MB36UMSR.js.map} +0 -0
  148. /package/build/{chunk-LAVKWSGY.js.map → chunk-N2YYKEKV.js.map} +0 -0
  149. /package/build/{chunk-N4WIZNPX.js.map → chunk-NRUBQ5N7.js.map} +0 -0
  150. /package/build/{chunk-V3ZO6GY5.js.map → chunk-OTBU2MWL.js.map} +0 -0
  151. /package/build/{chunk-XNSO7WKJ.js.map → chunk-OXTKB4SC.js.map} +0 -0
  152. /package/build/{chunk-CUQUD7FS.js.map → chunk-OZKGZAOZ.js.map} +0 -0
  153. /package/build/{chunk-755IY3BR.js.map → chunk-PBUFZ6OU.js.map} +0 -0
  154. /package/build/{chunk-E7PJXDFO.js.map → chunk-PH4BOMTV.js.map} +0 -0
  155. /package/build/{chunk-LUM7NYOU.js.map → chunk-QO4VD6Y5.js.map} +0 -0
  156. /package/build/{chunk-ZBDV4YE5.js.map → chunk-QYUVUKJH.js.map} +0 -0
  157. /package/build/{chunk-HJLNJXW7.js.map → chunk-QZD3FQNI.js.map} +0 -0
  158. /package/build/{chunk-EDBJ25FR.js.map → chunk-RVBYFFXK.js.map} +0 -0
  159. /package/build/{chunk-BSV2DJUC.js.map → chunk-SAUEECUE.js.map} +0 -0
  160. /package/build/{chunk-USA5LODZ.js.map → chunk-UUC65NV7.js.map} +0 -0
  161. /package/build/{chunk-LQXRNBJ2.js.map → chunk-VA3YF34S.js.map} +0 -0
  162. /package/build/{chunk-7WQENS6J.js.map → chunk-XEKM4VLO.js.map} +0 -0
  163. /package/build/{chunk-P23NP3OP.js.map → chunk-XKEFEPF6.js.map} +0 -0
  164. /package/build/{chunk-4H3OAZQS.js.map → chunk-Y2AMOBMY.js.map} +0 -0
  165. /package/build/{chunk-MDMFU25C.js.map → chunk-Z7ECXECD.js.map} +0 -0
  166. /package/build/{dev-DNN3IK3F.js.map → dev-2NFD6QEM.js.map} +0 -0
  167. /package/build/{env-pull-NDOFC6UC.js.map → env-pull-OHEZAUTU.js.map} +0 -0
  168. /package/build/{install-FMK7BRFJ.js.map → install-FHCG4U4R.js.map} +0 -0
  169. /package/build/{publish-FHAFFJHB.js.map → publish-QZGEHMZ2.js.map} +0 -0
  170. /package/build/{render-command-DGM4ETBU.js.map → render-command-CLDVD7ZQ.js.map} +0 -0
  171. /package/build/{render-command-NYTNTTHG.js.map → render-command-JKKYBTHT.js.map} +0 -0
  172. /package/build/{render-command-M4P7CP4H.js.map → render-command-LYNRDGPP.js.map} +0 -0
  173. /package/build/{render-command-3DCNLQV5.js.map → render-command-ZQ3UPX54.js.map} +0 -0
  174. /package/build/{render-command-MA7UDH5Q.js.map → render-command-ZUW2SOXP.js.map} +0 -0
  175. /package/build/{run-command-ERVZVLJF.js.map → run-command-LY3OSHGO.js.map} +0 -0
  176. /package/build/{src-5QDQ6RFQ.js.map → src-ATQPFIAX.js.map} +0 -0
  177. /package/build/{src-WBL43MZJ.js.map → src-CDV5A6FR.js.map} +0 -0
  178. /package/build/{src-M637ADEF.js.map → src-DBCKXMSW.js.map} +0 -0
  179. /package/build/{src-E5SPIGEE.js.map → src-GA5OFATI.js.map} +0 -0
  180. /package/build/{src-HKEHYQHS.js.map → src-JP7XE6WI.js.map} +0 -0
  181. /package/build/{src-QWLA5MLC.js.map → src-WCL4TDCR.js.map} +0 -0
  182. /package/build/{src-KHPAF4DG.js.map → src-X6NEARNN.js.map} +0 -0
  183. /package/build/{sync-types-WVHPSV2M.js.map → sync-types-57HK54CQ.js.map} +0 -0
  184. /package/build/{uninstall-UKE4WSXR.js.map → uninstall-XFEDEW2Z.js.map} +0 -0
@@ -1,82 +1,85 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
3
  import {
4
- useTunnel
5
- } from "./chunk-4BOJQTTP.js";
6
- import "./chunk-NDBZNWWI.js";
4
+ useDevCenterClient
5
+ } from "./chunk-PNHDNWUK.js";
7
6
  import {
8
- PlatformLink,
9
- useARMClient,
10
- useUpdateDeploymentTopology,
11
- useUpdateManifest
12
- } from "./chunk-6QHN2XDV.js";
13
- import {
14
- createPackageManager,
15
- getRepoType
16
- } from "./chunk-CUQUD7FS.js";
17
- import {
18
- execa
19
- } from "./chunk-RWTQFIPN.js";
20
- import "./chunk-W54PG6O5.js";
7
+ wixCliAction,
8
+ wixCliAppFlowStepsAnswers
9
+ } from "./chunk-LKYWHOMW.js";
21
10
  import {
22
11
  AlgorithmType,
12
+ BACKEND_WORKER_COMPONENT_ID,
23
13
  ComponentType,
24
14
  ElementType,
25
15
  EmbedCategory,
26
16
  EmbeddedScriptPlacement,
27
17
  PanelMode,
28
18
  Width,
29
- devMetadataSchema,
30
- looseComponentSchema,
31
- parseLooseAppManifest,
19
+ deploymentTopologySchema,
20
+ getDeploymentTopologyPath,
32
21
  useProjectModel
33
- } from "./chunk-4ASXFAN7.js";
22
+ } from "./chunk-IJ74ZC2Y.js";
34
23
  import {
35
24
  useHttpClient
36
- } from "./chunk-KBORAL57.js";
37
- import "./chunk-BVM3FYNM.js";
25
+ } from "./chunk-6W422UGP.js";
38
26
  import {
27
+ usePanoramaMethodLogger
28
+ } from "./chunk-6GSUU65D.js";
29
+ import {
30
+ BiProvider,
39
31
  SiteAuthProvider,
32
+ TimeoutError,
33
+ isHttpError,
34
+ isHttpValidationError,
35
+ openBrowser,
36
+ pRetry,
37
+ pWaitFor,
38
+ resolveUrl,
39
+ serializer,
40
+ useBiLogger,
40
41
  useDebugLog
41
- } from "./chunk-6PYC5DBT.js";
42
- import "./chunk-WMCHVSMU.js";
43
- import "./chunk-GUSV4N2E.js";
44
- import "./chunk-KJ37XZQA.js";
42
+ } from "./chunk-LHIW7AJD.js";
43
+ import {
44
+ I18nProvider,
45
+ Trans,
46
+ useTranslation
47
+ } from "./chunk-JB3ZSQ4V.js";
45
48
  import {
49
+ Alert,
50
+ Badge,
46
51
  Box_default,
47
- ConfirmInput,
52
+ Key,
53
+ Link,
54
+ PointerSmallIcon,
55
+ SelectInput,
56
+ SelectOptionAvailability,
48
57
  Spinner,
49
58
  Text,
50
- createRendererToString,
51
59
  useAsync,
52
60
  useAsyncCallback,
53
- useExit
54
- } from "./chunk-LQXRNBJ2.js";
61
+ useExit,
62
+ use_input_default
63
+ } from "./chunk-VA3YF34S.js";
55
64
  import {
56
65
  require_react
57
66
  } from "./chunk-NRAQAV6T.js";
58
67
  import {
59
- stripAnsi
60
- } from "./chunk-SQ3KPTIH.js";
61
- import "./chunk-Z4MHKCET.js";
62
- import "./chunk-C4SUTB4O.js";
63
- import {
64
- readUserConfig,
65
- updateUserConfig
66
- } from "./chunk-P23NP3OP.js";
67
- import "./chunk-II7O6SCF.js";
68
- import "./chunk-RL7RA2JG.js";
68
+ getTestOverrides
69
+ } from "./chunk-RL7RA2JG.js";
69
70
  import {
70
71
  pathExists,
71
72
  readJson,
72
73
  writeJson
73
- } from "./chunk-MDGDEDGX.js";
74
+ } from "./chunk-763CNX5X.js";
74
75
  import {
75
76
  external_exports
76
77
  } from "./chunk-F43XHKVL.js";
77
78
  import {
79
+ CliError,
80
+ CliErrorCode,
78
81
  require_lib
79
- } from "./chunk-STQCW7A5.js";
82
+ } from "./chunk-CU77QH5G.js";
80
83
  import {
81
84
  __commonJS,
82
85
  __dirname,
@@ -2997,9 +3000,9 @@ ${trace}`);
2997
3000
  function isMemberExpressionLike(node) {
2998
3001
  return (0, _index.isMemberExpression)(node) || (0, _index.isMetaProperty)(node);
2999
3002
  }
3000
- function matchesPattern(member, match3, allowPartial) {
3003
+ function matchesPattern(member, match8, allowPartial) {
3001
3004
  if (!isMemberExpressionLike(member)) return false;
3002
- const parts = Array.isArray(match3) ? match3 : match3.split(".");
3005
+ const parts = Array.isArray(match8) ? match8 : match8.split(".");
3003
3006
  const nodes = [];
3004
3007
  let node;
3005
3008
  for (node = member; isMemberExpressionLike(node); node = (_object = node.object) != null ? _object : node.meta) {
@@ -3039,8 +3042,8 @@ ${trace}`);
3039
3042
  });
3040
3043
  exports2.default = buildMatchMemberExpression;
3041
3044
  var _matchesPattern = require_matchesPattern();
3042
- function buildMatchMemberExpression(match3, allowPartial) {
3043
- const parts = match3.split(".");
3045
+ function buildMatchMemberExpression(match8, allowPartial) {
3046
+ const parts = match8.split(".");
3044
3047
  return (member) => (0, _matchesPattern.default)(member, parts, allowPartial);
3045
3048
  }
3046
3049
  }
@@ -3470,8 +3473,8 @@ ${trace}`);
3470
3473
  default:
3471
3474
  if (ch >= 48 && ch <= 55) {
3472
3475
  const startPos = pos2 - 1;
3473
- const match3 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
3474
- let octalStr = match3[0];
3476
+ const match8 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
3477
+ let octalStr = match8[0];
3475
3478
  let octal = parseInt(octalStr, 8);
3476
3479
  if (octal > 255) {
3477
3480
  octalStr = octalStr.slice(0, -1);
@@ -3873,9 +3876,9 @@ ${errors.join("\n")}`);
3873
3876
  }
3874
3877
  function defineType(type, opts = {}) {
3875
3878
  const inherits = opts.inherits && store[opts.inherits] || {};
3876
- let fields2 = opts.fields;
3877
- if (!fields2) {
3878
- fields2 = {};
3879
+ let fields3 = opts.fields;
3880
+ if (!fields3) {
3881
+ fields3 = {};
3879
3882
  if (inherits.fields) {
3880
3883
  const keys = Object.getOwnPropertyNames(inherits.fields);
3881
3884
  for (const key2 of keys) {
@@ -3884,7 +3887,7 @@ ${errors.join("\n")}`);
3884
3887
  if (Array.isArray(def) ? def.length > 0 : def && typeof def === "object") {
3885
3888
  throw new Error("field defaults can only be primitives or empty arrays currently");
3886
3889
  }
3887
- fields2[key2] = {
3890
+ fields3[key2] = {
3888
3891
  default: Array.isArray(def) ? [] : def,
3889
3892
  optional: field.optional,
3890
3893
  deprecated: field.deprecated,
@@ -3905,10 +3908,10 @@ ${errors.join("\n")}`);
3905
3908
  DEPRECATED_KEYS[opts.deprecatedAlias] = type;
3906
3909
  }
3907
3910
  for (const key2 of visitor.concat(builder)) {
3908
- fields2[key2] = fields2[key2] || {};
3911
+ fields3[key2] = fields3[key2] || {};
3909
3912
  }
3910
- for (const key2 of Object.keys(fields2)) {
3911
- const field = fields2[key2];
3913
+ for (const key2 of Object.keys(fields3)) {
3914
+ const field = fields3[key2];
3912
3915
  if (field.default !== void 0 && !builder.includes(key2)) {
3913
3916
  field.optional = true;
3914
3917
  }
@@ -3925,7 +3928,7 @@ ${errors.join("\n")}`);
3925
3928
  }
3926
3929
  VISITOR_KEYS[type] = opts.visitor = visitor;
3927
3930
  BUILDER_KEYS[type] = opts.builder = builder;
3928
- NODE_FIELDS[type] = opts.fields = fields2;
3931
+ NODE_FIELDS[type] = opts.fields = fields3;
3929
3932
  ALIAS_KEYS[type] = opts.aliases = aliases;
3930
3933
  aliases.forEach((alias) => {
3931
3934
  FLIPPED_ALIAS_KEYS[alias] = FLIPPED_ALIAS_KEYS[alias] || [];
@@ -4312,9 +4315,9 @@ ${errors.join("\n")}`);
4312
4315
  }
4313
4316
  }),
4314
4317
  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;
4318
+ const match8 = /\.(\w+)$/.exec(key2.toString());
4319
+ if (!match8) return;
4320
+ const [, parentKey] = match8;
4318
4321
  const nonComp = {
4319
4322
  computed: false
4320
4323
  };
@@ -4602,9 +4605,9 @@ ${errors.join("\n")}`);
4602
4605
  }
4603
4606
  }),
4604
4607
  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;
4608
+ const match8 = /(\w+)\[(\d+)\]/.exec(key2.toString());
4609
+ if (!match8) throw new Error("Internal Babel error: malformed key.");
4610
+ const [, listKey, index] = match8;
4608
4611
  if (parent[listKey].length > +index + 1) {
4609
4612
  throw new TypeError(`RestElement must be last element of ${listKey}`);
4610
4613
  }
@@ -7103,9 +7106,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
7103
7106
  var _index = require_definitions();
7104
7107
  function validate(node, key2, val) {
7105
7108
  if (!node) return;
7106
- const fields2 = _index.NODE_FIELDS[node.type];
7107
- if (!fields2) return;
7108
- const field = fields2[key2];
7109
+ const fields3 = _index.NODE_FIELDS[node.type];
7110
+ if (!fields3) return;
7111
+ const field = fields3[key2];
7109
7112
  validateField(node, key2, val, field);
7110
7113
  validateChild(node, key2, val);
7111
7114
  }
@@ -12311,7 +12314,7 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
12311
12314
  name += (0, _helperValidatorIdentifier.isIdentifierChar)(c2.codePointAt(0)) ? c2 : "-";
12312
12315
  }
12313
12316
  name = name.replace(/^[-0-9]+/, "");
12314
- name = name.replace(/[-\s]+(.)?/g, function(match3, c2) {
12317
+ name = name.replace(/[-\s]+(.)?/g, function(match8, c2) {
12315
12318
  return c2 ? c2.toUpperCase() : "";
12316
12319
  });
12317
12320
  if (!(0, _isValidIdentifier.default)(name)) {
@@ -13072,9 +13075,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
13072
13075
  if (a.type !== b.type) {
13073
13076
  return false;
13074
13077
  }
13075
- const fields2 = Object.keys(_index.NODE_FIELDS[a.type] || a.type);
13078
+ const fields3 = Object.keys(_index.NODE_FIELDS[a.type] || a.type);
13076
13079
  const visitorKeys = _index.VISITOR_KEYS[a.type];
13077
- for (const field of fields2) {
13080
+ for (const field of fields3) {
13078
13081
  const val_a = a[field];
13079
13082
  const val_b = b[field];
13080
13083
  if (typeof val_a !== typeof val_b) {
@@ -19619,8 +19622,8 @@ ${str}
19619
19622
  default:
19620
19623
  if (ch >= 48 && ch <= 55) {
19621
19624
  const startPos = pos2 - 1;
19622
- const match3 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
19623
- let octalStr = match3[0];
19625
+ const match8 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
19626
+ let octalStr = match8[0];
19624
19627
  let octal = parseInt(octalStr, 8);
19625
19628
  if (octal > 255) {
19626
19629
  octalStr = octalStr.slice(0, -1);
@@ -28751,16 +28754,16 @@ ${str}
28751
28754
  value: true
28752
28755
  });
28753
28756
  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";
28757
+ exports2.matchToToken = function(match8) {
28758
+ var token2 = { type: "invalid", value: match8[0], closed: void 0 };
28759
+ if (match8[1]) token2.type = "string", token2.closed = !!(match8[3] || match8[4]);
28760
+ else if (match8[5]) token2.type = "comment";
28761
+ else if (match8[6]) token2.type = "comment", token2.closed = !!match8[7];
28762
+ else if (match8[8]) token2.type = "regex";
28763
+ else if (match8[9]) token2.type = "number";
28764
+ else if (match8[10]) token2.type = "name";
28765
+ else if (match8[11]) token2.type = "punctuator";
28766
+ else if (match8[12]) token2.type = "whitespace";
28764
28767
  return token2;
28765
28768
  };
28766
28769
  }
@@ -28825,11 +28828,11 @@ ${str}
28825
28828
  return token2.type;
28826
28829
  };
28827
28830
  tokenize = function* (text) {
28828
- let match3;
28829
- while (match3 = jsTokens.default.exec(text)) {
28830
- const token2 = jsTokens.matchToToken(match3);
28831
+ let match8;
28832
+ while (match8 = jsTokens.default.exec(text)) {
28833
+ const token2 = jsTokens.matchToToken(match8);
28831
28834
  yield {
28832
- type: getTokenType(token2, match3.index, text),
28835
+ type: getTokenType(token2, match8.index, text),
28833
28836
  value: token2.value
28834
28837
  };
28835
28838
  }
@@ -31093,14 +31096,14 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
31093
31096
  if (str.length > 100) {
31094
31097
  return;
31095
31098
  }
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(
31099
+ var match8 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
31097
31100
  str
31098
31101
  );
31099
- if (!match3) {
31102
+ if (!match8) {
31100
31103
  return;
31101
31104
  }
31102
- var n = parseFloat(match3[1]);
31103
- var type = (match3[2] || "ms").toLowerCase();
31105
+ var n = parseFloat(match8[1]);
31106
+ var type = (match8[2] || "ms").toLowerCase();
31104
31107
  switch (type) {
31105
31108
  case "years":
31106
31109
  case "year":
@@ -31230,19 +31233,19 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
31230
31233
  args.unshift("%O");
31231
31234
  }
31232
31235
  let index = 0;
31233
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match3, format) => {
31234
- if (match3 === "%%") {
31236
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match8, format) => {
31237
+ if (match8 === "%%") {
31235
31238
  return "%";
31236
31239
  }
31237
31240
  index++;
31238
31241
  const formatter = createDebug.formatters[format];
31239
31242
  if (typeof formatter === "function") {
31240
31243
  const val = args[index];
31241
- match3 = formatter.call(self2, val);
31244
+ match8 = formatter.call(self2, val);
31242
31245
  args.splice(index, 1);
31243
31246
  index--;
31244
31247
  }
31245
- return match3;
31248
+ return match8;
31246
31249
  });
31247
31250
  createDebug.formatArgs.call(self2, args);
31248
31251
  const logFn = self2.log || createDebug.log;
@@ -31476,12 +31479,12 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
31476
31479
  args.splice(1, 0, c2, "color: inherit");
31477
31480
  let index = 0;
31478
31481
  let lastC = 0;
31479
- args[0].replace(/%[a-zA-Z%]/g, (match3) => {
31480
- if (match3 === "%%") {
31482
+ args[0].replace(/%[a-zA-Z%]/g, (match8) => {
31483
+ if (match8 === "%%") {
31481
31484
  return;
31482
31485
  }
31483
31486
  index++;
31484
- if (match3 === "%c") {
31487
+ if (match8 === "%c") {
31485
31488
  lastC = index;
31486
31489
  }
31487
31490
  });
@@ -33777,8 +33780,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
33777
33780
  continue;
33778
33781
  }
33779
33782
  const kind = decodeInteger(reader, 0);
33780
- const fields2 = decodeInteger(reader, 0);
33781
- const hasName = fields2 & 1;
33783
+ const fields3 = decodeInteger(reader, 0);
33784
+ const hasName = fields3 & 1;
33782
33785
  const scope = hasName ? [line2, column2, 0, 0, kind, decodeInteger(reader, 0)] : [line2, column2, 0, 0, kind];
33783
33786
  let vars = EMPTY;
33784
33787
  if (hasMoreVlq(reader, length)) {
@@ -33808,8 +33811,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
33808
33811
  state[0] = encodeInteger(writer, startLine, state[0]);
33809
33812
  encodeInteger(writer, startColumn, 0);
33810
33813
  encodeInteger(writer, kind, 0);
33811
- const fields2 = scope.length === 6 ? 1 : 0;
33812
- encodeInteger(writer, fields2, 0);
33814
+ const fields3 = scope.length === 6 ? 1 : 0;
33815
+ encodeInteger(writer, fields3, 0);
33813
33816
  if (scope.length === 6) encodeInteger(writer, scope[5], 0);
33814
33817
  for (const v of vars) {
33815
33818
  encodeInteger(writer, v, 0);
@@ -33851,10 +33854,10 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
33851
33854
  last[3] = genColumn;
33852
33855
  continue;
33853
33856
  }
33854
- const fields2 = decodeInteger(reader, 0);
33855
- const hasDefinition = fields2 & 1;
33856
- const hasCallsite = fields2 & 2;
33857
- const hasScope = fields2 & 4;
33857
+ const fields3 = decodeInteger(reader, 0);
33858
+ const hasDefinition = fields3 & 1;
33859
+ const hasCallsite = fields3 & 2;
33860
+ const hasScope = fields3 & 4;
33858
33861
  let callsite = null;
33859
33862
  let bindings = EMPTY;
33860
33863
  let range;
@@ -33941,8 +33944,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
33941
33944
  writer.write(comma);
33942
33945
  }
33943
33946
  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);
33947
+ const fields3 = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
33948
+ encodeInteger(writer, fields3, 0);
33946
33949
  if (range.length === 6) {
33947
33950
  const { 4: sourcesIndex, 5: scopesIndex } = range;
33948
33951
  if (sourcesIndex !== state[2]) {
@@ -34103,13 +34106,13 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
34103
34106
  return /^[.?#]/.test(input);
34104
34107
  }
34105
34108
  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] || "");
34109
+ const match8 = urlRegex.exec(input);
34110
+ return makeUrl(match8[1], match8[2] || "", match8[3], match8[4] || "", match8[5] || "/", match8[6] || "", match8[7] || "");
34108
34111
  }
34109
34112
  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] || "");
34113
+ const match8 = fileRegex.exec(input);
34114
+ const path = match8[2];
34115
+ return makeUrl("file:", "", match8[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match8[3] || "", match8[4] || "");
34113
34116
  }
34114
34117
  function makeUrl(scheme, user, host, port, path, query, hash) {
34115
34118
  return {
@@ -43525,13 +43528,13 @@ ${" ".repeat(indentSize)}`);
43525
43528
  for (const prop of props) {
43526
43529
  if (!prop.isProperty()) continue;
43527
43530
  const key2 = prop.get("key");
43528
- let match3 = prop.isnt("computed") && key2.isIdentifier({
43531
+ let match8 = prop.isnt("computed") && key2.isIdentifier({
43529
43532
  name: targetName
43530
43533
  });
43531
- match3 = match3 || key2.isLiteral({
43534
+ match8 = match8 || key2.isLiteral({
43532
43535
  value: targetName
43533
43536
  });
43534
- if (match3) return prop.get("value").resolve(dangerous, resolved);
43537
+ if (match8) return prop.get("value").resolve(dangerous, resolved);
43535
43538
  }
43536
43539
  } else if (target.isArrayExpression() && !isNaN(+targetName)) {
43537
43540
  const elems = target.get("elements");
@@ -45119,8 +45122,8 @@ ${" ".repeat(indentSize)}`);
45119
45122
  }
45120
45123
  } while (++i2);
45121
45124
  };
45122
- SemVer.prototype.inc = function(release, identifier) {
45123
- switch (release) {
45125
+ SemVer.prototype.inc = function(release2, identifier) {
45126
+ switch (release2) {
45124
45127
  case "premajor":
45125
45128
  this.prerelease.length = 0;
45126
45129
  this.patch = 0;
@@ -45196,20 +45199,20 @@ ${" ".repeat(indentSize)}`);
45196
45199
  }
45197
45200
  break;
45198
45201
  default:
45199
- throw new Error("invalid increment argument: " + release);
45202
+ throw new Error("invalid increment argument: " + release2);
45200
45203
  }
45201
45204
  this.format();
45202
45205
  this.raw = this.version;
45203
45206
  return this;
45204
45207
  };
45205
45208
  exports2.inc = inc;
45206
- function inc(version, release, loose, identifier) {
45209
+ function inc(version, release2, loose, identifier) {
45207
45210
  if (typeof loose === "string") {
45208
45211
  identifier = loose;
45209
45212
  loose = void 0;
45210
45213
  }
45211
45214
  try {
45212
- return new SemVer(version, loose).inc(release, identifier).version;
45215
+ return new SemVer(version, loose).inc(release2, identifier).version;
45213
45216
  } catch (er) {
45214
45217
  return null;
45215
45218
  }
@@ -45947,23 +45950,23 @@ ${" ".repeat(indentSize)}`);
45947
45950
  return null;
45948
45951
  }
45949
45952
  options = options || {};
45950
- var match3 = null;
45953
+ var match8 = null;
45951
45954
  if (!options.rtl) {
45952
- match3 = version.match(safeRe[t.COERCE]);
45955
+ match8 = version.match(safeRe[t.COERCE]);
45953
45956
  } else {
45954
45957
  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;
45958
+ while ((next = safeRe[t.COERCERTL].exec(version)) && (!match8 || match8.index + match8[0].length !== version.length)) {
45959
+ if (!match8 || next.index + next[0].length !== match8.index + match8[0].length) {
45960
+ match8 = next;
45958
45961
  }
45959
45962
  safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
45960
45963
  }
45961
45964
  safeRe[t.COERCERTL].lastIndex = -1;
45962
45965
  }
45963
- if (match3 === null) {
45966
+ if (match8 === null) {
45964
45967
  return null;
45965
45968
  }
45966
- return parse3(match3[2] + "." + (match3[3] || "0") + "." + (match3[4] || "0"), options);
45969
+ return parse3(match8[2] + "." + (match8[3] || "0") + "." + (match8[4] || "0"), options);
45967
45970
  }
45968
45971
  }
45969
45972
  });
@@ -51172,11 +51175,11 @@ ${" ".repeat(indentSize)}`);
51172
51175
  }
51173
51176
  for (var name in all) {
51174
51177
  var type = all[name];
51175
- var match3 = query.match(type.regexp);
51176
- if (match3) {
51178
+ var match8 = query.match(type.regexp);
51179
+ if (match8) {
51177
51180
  node.type = name;
51178
51181
  for (var i = 0; i < type.matches.length; i++) {
51179
- node[type.matches[i]] = match3[i + 1];
51182
+ node[type.matches[i]] = match8[i + 1];
51180
51183
  }
51181
51184
  return node;
51182
51185
  }
@@ -52307,8 +52310,8 @@ ${" ".repeat(indentSize)}`);
52307
52310
  }
52308
52311
  }
52309
52312
  }
52310
- browserslist.nodeVersions = jsReleases.map(function(release) {
52311
- return release.version;
52313
+ browserslist.nodeVersions = jsReleases.map(function(release2) {
52314
+ return release2.version;
52312
52315
  });
52313
52316
  })();
52314
52317
  module2.exports = browserslist;
@@ -53374,8 +53377,8 @@ ${" ".repeat(indentSize)}`);
53374
53377
  }
53375
53378
  } while (++i2);
53376
53379
  };
53377
- SemVer.prototype.inc = function(release, identifier) {
53378
- switch (release) {
53380
+ SemVer.prototype.inc = function(release2, identifier) {
53381
+ switch (release2) {
53379
53382
  case "premajor":
53380
53383
  this.prerelease.length = 0;
53381
53384
  this.patch = 0;
@@ -53451,20 +53454,20 @@ ${" ".repeat(indentSize)}`);
53451
53454
  }
53452
53455
  break;
53453
53456
  default:
53454
- throw new Error("invalid increment argument: " + release);
53457
+ throw new Error("invalid increment argument: " + release2);
53455
53458
  }
53456
53459
  this.format();
53457
53460
  this.raw = this.version;
53458
53461
  return this;
53459
53462
  };
53460
53463
  exports2.inc = inc;
53461
- function inc(version, release, loose, identifier) {
53464
+ function inc(version, release2, loose, identifier) {
53462
53465
  if (typeof loose === "string") {
53463
53466
  identifier = loose;
53464
53467
  loose = void 0;
53465
53468
  }
53466
53469
  try {
53467
- return new SemVer(version, loose).inc(release, identifier).version;
53470
+ return new SemVer(version, loose).inc(release2, identifier).version;
53468
53471
  } catch (er) {
53469
53472
  return null;
53470
53473
  }
@@ -54202,23 +54205,23 @@ ${" ".repeat(indentSize)}`);
54202
54205
  return null;
54203
54206
  }
54204
54207
  options = options || {};
54205
- var match3 = null;
54208
+ var match8 = null;
54206
54209
  if (!options.rtl) {
54207
- match3 = version.match(safeRe[t.COERCE]);
54210
+ match8 = version.match(safeRe[t.COERCE]);
54208
54211
  } else {
54209
54212
  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;
54213
+ while ((next = safeRe[t.COERCERTL].exec(version)) && (!match8 || match8.index + match8[0].length !== version.length)) {
54214
+ if (!match8 || next.index + next[0].length !== match8.index + match8[0].length) {
54215
+ match8 = next;
54213
54216
  }
54214
54217
  safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
54215
54218
  }
54216
54219
  safeRe[t.COERCERTL].lastIndex = -1;
54217
54220
  }
54218
- if (match3 === null) {
54221
+ if (match8 === null) {
54219
54222
  return null;
54220
54223
  }
54221
- return parse3(match3[2] + "." + (match3[3] || "0") + "." + (match3[4] || "0"), options);
54224
+ return parse3(match8[2] + "." + (match8[3] || "0") + "." + (match8[4] || "0"), options);
54222
54225
  }
54223
54226
  }
54224
54227
  });
@@ -58665,8 +58668,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
58665
58668
  const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast);
58666
58669
  if (typeof options.filename === "string" && lastComment) {
58667
58670
  try {
58668
- const match3 = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment);
58669
- const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match3[1]), "utf8");
58671
+ const match8 = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment);
58672
+ const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match8[1]), "utf8");
58670
58673
  inputMap = _convertSourceMap().fromJSON(inputMapContent);
58671
58674
  } catch (err) {
58672
58675
  debug("discarding unknown file input sourcemap", err);
@@ -62970,8 +62973,8 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
62970
62973
  }
62971
62974
  } while (++i2);
62972
62975
  };
62973
- SemVer.prototype.inc = function(release, identifier) {
62974
- switch (release) {
62976
+ SemVer.prototype.inc = function(release2, identifier) {
62977
+ switch (release2) {
62975
62978
  case "premajor":
62976
62979
  this.prerelease.length = 0;
62977
62980
  this.patch = 0;
@@ -63047,20 +63050,20 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
63047
63050
  }
63048
63051
  break;
63049
63052
  default:
63050
- throw new Error("invalid increment argument: " + release);
63053
+ throw new Error("invalid increment argument: " + release2);
63051
63054
  }
63052
63055
  this.format();
63053
63056
  this.raw = this.version;
63054
63057
  return this;
63055
63058
  };
63056
63059
  exports2.inc = inc;
63057
- function inc(version, release, loose, identifier) {
63060
+ function inc(version, release2, loose, identifier) {
63058
63061
  if (typeof loose === "string") {
63059
63062
  identifier = loose;
63060
63063
  loose = void 0;
63061
63064
  }
63062
63065
  try {
63063
- return new SemVer(version, loose).inc(release, identifier).version;
63066
+ return new SemVer(version, loose).inc(release2, identifier).version;
63064
63067
  } catch (er) {
63065
63068
  return null;
63066
63069
  }
@@ -63798,23 +63801,23 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
63798
63801
  return null;
63799
63802
  }
63800
63803
  options = options || {};
63801
- var match3 = null;
63804
+ var match8 = null;
63802
63805
  if (!options.rtl) {
63803
- match3 = version.match(safeRe[t.COERCE]);
63806
+ match8 = version.match(safeRe[t.COERCE]);
63804
63807
  } else {
63805
63808
  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;
63809
+ while ((next = safeRe[t.COERCERTL].exec(version)) && (!match8 || match8.index + match8[0].length !== version.length)) {
63810
+ if (!match8 || next.index + next[0].length !== match8.index + match8[0].length) {
63811
+ match8 = next;
63809
63812
  }
63810
63813
  safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
63811
63814
  }
63812
63815
  safeRe[t.COERCERTL].lastIndex = -1;
63813
63816
  }
63814
- if (match3 === null) {
63817
+ if (match8 === null) {
63815
63818
  return null;
63816
63819
  }
63817
- return parse3(match3[2] + "." + (match3[3] || "0") + "." + (match3[4] || "0"), options);
63820
+ return parse3(match8[2] + "." + (match8[3] || "0") + "." + (match8[4] || "0"), options);
63818
63821
  }
63819
63822
  }
63820
63823
  });
@@ -66584,13 +66587,13 @@ module.exports = function(api) {
66584
66587
  var encodedSeparatorRegEx = /%2f|%5c/i;
66585
66588
  var emittedPackageWarnings = /* @__PURE__ */ new Set();
66586
66589
  var doubleSlashRegEx = /[/\\]{2}/;
66587
- function emitInvalidSegmentDeprecation(target, request, match3, packageJsonUrl, internal, base, isTarget) {
66590
+ function emitInvalidSegmentDeprecation(target, request, match8, packageJsonUrl, internal, base, isTarget) {
66588
66591
  if (_process().noDeprecation) {
66589
66592
  return;
66590
66593
  }
66591
66594
  const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl);
66592
66595
  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");
66596
+ _process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match8 ? "" : `matched to "${match8}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
66594
66597
  }
66595
66598
  function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
66596
66599
  if (_process().noDeprecation) {
@@ -66700,16 +66703,16 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
66700
66703
  function exportsNotFound(subpath, packageJsonUrl, base) {
66701
66704
  return new ERR_PACKAGE_PATH_NOT_EXPORTED((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, base && (0, _url().fileURLToPath)(base));
66702
66705
  }
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)}`;
66706
+ function throwInvalidSubpath(request, match8, packageJsonUrl, internal, base) {
66707
+ const reason = `request is not a valid match in pattern "${match8}" for the "${internal ? "imports" : "exports"}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`;
66705
66708
  throw new ERR_INVALID_MODULE_SPECIFIER(request, reason, base && (0, _url().fileURLToPath)(base));
66706
66709
  }
66707
66710
  function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
66708
66711
  target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
66709
66712
  return new ERR_INVALID_PACKAGE_TARGET((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, target, internal, base && (0, _url().fileURLToPath)(base));
66710
66713
  }
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);
66714
+ function resolvePackageTargetString(target, subpath, match8, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
66715
+ if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(match8, target, packageJsonUrl, internal, base);
66713
66716
  if (!target.startsWith("./")) {
66714
66717
  if (internal && !target.startsWith("../") && !target.startsWith("/")) {
66715
66718
  let isURL2 = false;
@@ -66723,33 +66726,33 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
66723
66726
  return packageResolve(exportTarget, packageJsonUrl, conditions);
66724
66727
  }
66725
66728
  }
66726
- throw invalidPackageTarget(match3, target, packageJsonUrl, internal, base);
66729
+ throw invalidPackageTarget(match8, target, packageJsonUrl, internal, base);
66727
66730
  }
66728
66731
  if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {
66729
66732
  if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
66730
66733
  if (!isPathMap) {
66731
- const request = pattern ? match3.replace("*", () => subpath) : match3 + subpath;
66734
+ const request = pattern ? match8.replace("*", () => subpath) : match8 + subpath;
66732
66735
  const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
66733
- emitInvalidSegmentDeprecation(resolvedTarget, request, match3, packageJsonUrl, internal, base, true);
66736
+ emitInvalidSegmentDeprecation(resolvedTarget, request, match8, packageJsonUrl, internal, base, true);
66734
66737
  }
66735
66738
  } else {
66736
- throw invalidPackageTarget(match3, target, packageJsonUrl, internal, base);
66739
+ throw invalidPackageTarget(match8, target, packageJsonUrl, internal, base);
66737
66740
  }
66738
66741
  }
66739
66742
  const resolved = new (_url()).URL(target, packageJsonUrl);
66740
66743
  const resolvedPath = resolved.pathname;
66741
66744
  const packagePath = new (_url()).URL(".", packageJsonUrl).pathname;
66742
- if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match3, target, packageJsonUrl, internal, base);
66745
+ if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match8, target, packageJsonUrl, internal, base);
66743
66746
  if (subpath === "") return resolved;
66744
66747
  if (invalidSegmentRegEx.exec(subpath) !== null) {
66745
- const request = pattern ? match3.replace("*", () => subpath) : match3 + subpath;
66748
+ const request = pattern ? match8.replace("*", () => subpath) : match8 + subpath;
66746
66749
  if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {
66747
66750
  if (!isPathMap) {
66748
66751
  const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
66749
- emitInvalidSegmentDeprecation(resolvedTarget, request, match3, packageJsonUrl, internal, base, false);
66752
+ emitInvalidSegmentDeprecation(resolvedTarget, request, match8, packageJsonUrl, internal, base, false);
66750
66753
  }
66751
66754
  } else {
66752
- throwInvalidSubpath(request, match3, packageJsonUrl, internal, base);
66755
+ throwInvalidSubpath(request, match8, packageJsonUrl, internal, base);
66753
66756
  }
66754
66757
  }
66755
66758
  if (pattern) {
@@ -66838,14 +66841,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
66838
66841
  }
66839
66842
  return isConditionalSugar;
66840
66843
  }
66841
- function emitTrailingSlashPatternDeprecation(match3, pjsonUrl, base) {
66844
+ function emitTrailingSlashPatternDeprecation(match8, pjsonUrl, base) {
66842
66845
  if (_process().noDeprecation) {
66843
66846
  return;
66844
66847
  }
66845
66848
  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");
66849
+ if (emittedPackageWarnings.has(pjsonPath + "|" + match8)) return;
66850
+ emittedPackageWarnings.add(pjsonPath + "|" + match8);
66851
+ _process().emitWarning(`Use of deprecated trailing slash pattern mapping "${match8}" 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
66852
  }
66850
66853
  function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
66851
66854
  let exports3 = packageConfig.exports;
@@ -68643,8 +68646,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
68643
68646
  * @returns {Promise} A promise that resolves when the release has been created.
68644
68647
  * @memberof SentryReleases
68645
68648
  */
68646
- async new(release, options) {
68647
- const args = ["releases", "new", release].concat(helper.getProjectFlagsFromOptions(options));
68649
+ async new(release2, options) {
68650
+ const args = ["releases", "new", release2].concat(helper.getProjectFlagsFromOptions(options));
68648
68651
  return this.execute(args, null);
68649
68652
  }
68650
68653
  /**
@@ -68668,7 +68671,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
68668
68671
  * @returns {Promise} A promise that resolves when the commits have been associated
68669
68672
  * @memberof SentryReleases
68670
68673
  */
68671
- async setCommits(release, options) {
68674
+ async setCommits(release2, options) {
68672
68675
  if (!options || !options.auto && (!options.repo || !options.commit)) {
68673
68676
  throw new Error("options.auto, or options.repo and options.commit must be specified");
68674
68677
  }
@@ -68683,7 +68686,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
68683
68686
  if (options.ignoreMissing) {
68684
68687
  commitFlags.push("--ignore-missing");
68685
68688
  }
68686
- return this.execute(["releases", "set-commits", release].concat(commitFlags), false);
68689
+ return this.execute(["releases", "set-commits", release2].concat(commitFlags), false);
68687
68690
  }
68688
68691
  /**
68689
68692
  * Marks this release as complete. This should be called once all artifacts has been
@@ -68693,8 +68696,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
68693
68696
  * @returns {Promise} A promise that resolves when the release has been finalized.
68694
68697
  * @memberof SentryReleases
68695
68698
  */
68696
- async finalize(release) {
68697
- return this.execute(["releases", "finalize", release], null);
68699
+ async finalize(release2) {
68700
+ return this.execute(["releases", "finalize", release2], null);
68698
68701
  }
68699
68702
  /**
68700
68703
  * Creates a unique, deterministic version identifier based on the project type and
@@ -68742,7 +68745,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
68742
68745
  * @returns {Promise} A promise that resolves when the upload has completed successfully.
68743
68746
  * @memberof SentryReleases
68744
68747
  */
68745
- async uploadSourceMaps(release, options) {
68748
+ async uploadSourceMaps(release2, options) {
68746
68749
  if (!options || !options.include || !Array.isArray(options.include)) {
68747
68750
  throw new Error(
68748
68751
  "`options.include` must be a valid array of paths and/or path descriptor objects."
@@ -68767,7 +68770,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
68767
68770
  if (!newOptions.ignoreFile && !newOptions.ignore) {
68768
68771
  newOptions.ignore = DEFAULT_IGNORE;
68769
68772
  }
68770
- const args = ["sourcemaps", "upload"].concat(helper.getProjectFlagsFromOptions(options)).concat(["--release", release]);
68773
+ const args = ["sourcemaps", "upload"].concat(helper.getProjectFlagsFromOptions(options)).concat(["--release", release2]);
68771
68774
  return uploadPaths.map(
68772
68775
  (path) => (
68773
68776
  // `execute()` is async and thus we're returning a promise here
@@ -68787,8 +68790,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
68787
68790
  * @returns {Promise} A promise that resolves when the list comes back from the server.
68788
68791
  * @memberof SentryReleases
68789
68792
  */
68790
- async listDeploys(release) {
68791
- return this.execute(["releases", "deploys", release, "list"], null);
68793
+ async listDeploys(release2) {
68794
+ return this.execute(["releases", "deploys", release2, "list"], null);
68792
68795
  }
68793
68796
  /**
68794
68797
  * Creates a new release deployment. This should be called after the release has been
@@ -68812,11 +68815,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
68812
68815
  * @returns {Promise} A promise that resolves when the deploy has been created.
68813
68816
  * @memberof SentryReleases
68814
68817
  */
68815
- async newDeploy(release, options) {
68818
+ async newDeploy(release2, options) {
68816
68819
  if (!options || !options.env) {
68817
68820
  throw new Error("options.env must be a valid name");
68818
68821
  }
68819
- const args = ["releases", "deploys", release, "new"];
68822
+ const args = ["releases", "deploys", release2, "new"];
68820
68823
  return this.execute(helper.prepareCommand(args, DEPLOYS_SCHEMA, options), null);
68821
68824
  }
68822
68825
  /**
@@ -69861,7 +69864,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
69861
69864
  var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
69862
69865
  exports2.makeRe = makeRe;
69863
69866
  exports2.minimatch.makeRe = exports2.makeRe;
69864
- var match3 = (list, pattern, options = {}) => {
69867
+ var match8 = (list, pattern, options = {}) => {
69865
69868
  const mm = new Minimatch(pattern, options);
69866
69869
  list = list.filter((f) => mm.match(f));
69867
69870
  if (mm.options.nonull && !list.length) {
@@ -69869,7 +69872,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
69869
69872
  }
69870
69873
  return list;
69871
69874
  };
69872
- exports2.match = match3;
69875
+ exports2.match = match8;
69873
69876
  exports2.minimatch.match = exports2.match;
69874
69877
  var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
69875
69878
  var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
@@ -76653,10 +76656,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
76653
76656
  });
76654
76657
  }
76655
76658
  let shouldIndentNextCharacter = options.indentStart !== false;
76656
- const replacer = (match3) => {
76657
- if (shouldIndentNextCharacter) return `${indentStr}${match3}`;
76659
+ const replacer = (match8) => {
76660
+ if (shouldIndentNextCharacter) return `${indentStr}${match8}`;
76658
76661
  shouldIndentNextCharacter = true;
76659
- return match3;
76662
+ return match8;
76660
76663
  };
76661
76664
  this.intro = this.intro.replace(pattern, replacer);
76662
76665
  let charIndex = 0;
@@ -77044,44 +77047,44 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
77044
77047
  return this.original !== this.toString();
77045
77048
  }
77046
77049
  _replaceRegexp(searchValue, replacement) {
77047
- function getReplacement(match3, str) {
77050
+ function getReplacement(match8, str) {
77048
77051
  if (typeof replacement === "string") {
77049
77052
  return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
77050
77053
  if (i === "$") return "$";
77051
- if (i === "&") return match3[0];
77054
+ if (i === "&") return match8[0];
77052
77055
  const num = +i;
77053
- if (num < match3.length) return match3[+i];
77056
+ if (num < match8.length) return match8[+i];
77054
77057
  return `$${i}`;
77055
77058
  });
77056
77059
  } else {
77057
- return replacement(...match3, match3.index, str, match3.groups);
77060
+ return replacement(...match8, match8.index, str, match8.groups);
77058
77061
  }
77059
77062
  }
77060
77063
  function matchAll(re, str) {
77061
- let match3;
77064
+ let match8;
77062
77065
  const matches = [];
77063
- while (match3 = re.exec(str)) {
77064
- matches.push(match3);
77066
+ while (match8 = re.exec(str)) {
77067
+ matches.push(match8);
77065
77068
  }
77066
77069
  return matches;
77067
77070
  }
77068
77071
  if (searchValue.global) {
77069
77072
  const matches = matchAll(searchValue, this.original);
77070
- matches.forEach((match3) => {
77071
- if (match3.index != null)
77073
+ matches.forEach((match8) => {
77074
+ if (match8.index != null)
77072
77075
  this.overwrite(
77073
- match3.index,
77074
- match3.index + match3[0].length,
77075
- getReplacement(match3, this.original)
77076
+ match8.index,
77077
+ match8.index + match8[0].length,
77078
+ getReplacement(match8, this.original)
77076
77079
  );
77077
77080
  });
77078
77081
  } else {
77079
- const match3 = this.original.match(searchValue);
77080
- if (match3 && match3.index != null)
77082
+ const match8 = this.original.match(searchValue);
77083
+ if (match8 && match8.index != null)
77081
77084
  this.overwrite(
77082
- match3.index,
77083
- match3.index + match3[0].length,
77084
- getReplacement(match3, this.original)
77085
+ match8.index,
77086
+ match8.index + match8[0].length,
77087
+ getReplacement(match8, this.original)
77085
77088
  );
77086
77089
  }
77087
77090
  return this;
@@ -77285,8 +77288,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
77285
77288
  trailingNewline = source2.content.lastChar() === "\n";
77286
77289
  });
77287
77290
  if (this.intro) {
77288
- this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (match3, index) => {
77289
- return index > 0 ? indentStr + match3 : match3;
77291
+ this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (match8, index) => {
77292
+ return index > 0 ? indentStr + match8 : match8;
77290
77293
  });
77291
77294
  }
77292
77295
  return this;
@@ -77567,8 +77570,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
77567
77570
  exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
77568
77571
  exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
77569
77572
  exports2.removeBackslashes = (str) => {
77570
- return str.replace(REGEX_REMOVE_BACKSLASH, (match3) => {
77571
- return match3 === "\\" ? "" : match3;
77573
+ return str.replace(REGEX_REMOVE_BACKSLASH, (match8) => {
77574
+ return match8 === "\\" ? "" : match8;
77572
77575
  });
77573
77576
  };
77574
77577
  exports2.supportsLookbehinds = () => {
@@ -78185,10 +78188,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78185
78188
  push2({ type: "text", value: value2 });
78186
78189
  continue;
78187
78190
  }
78188
- const match3 = /^\\+/.exec(remaining());
78191
+ const match8 = /^\\+/.exec(remaining());
78189
78192
  let slashes = 0;
78190
- if (match3 && match3[0].length > 2) {
78191
- slashes = match3[0].length;
78193
+ if (match8 && match8[0].length > 2) {
78194
+ slashes = match8[0].length;
78192
78195
  state.index += slashes;
78193
78196
  if (slashes % 2 !== 0) {
78194
78197
  value2 += "\\";
@@ -78476,10 +78479,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78476
78479
  if (value2 === "$" || value2 === "^") {
78477
78480
  value2 = `\\${value2}`;
78478
78481
  }
78479
- const match3 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
78480
- if (match3) {
78481
- value2 += match3[0];
78482
- state.index += match3[0].length;
78482
+ const match8 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
78483
+ if (match8) {
78484
+ value2 += match8[0];
78485
+ state.index += match8[0].length;
78483
78486
  }
78484
78487
  push2({ type: "text", value: value2 });
78485
78488
  continue;
@@ -78690,11 +78693,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78690
78693
  case "**/.*":
78691
78694
  return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
78692
78695
  default: {
78693
- const match3 = /^(.*?)\.(\w+)$/.exec(str);
78694
- if (!match3) return;
78695
- const source3 = create(match3[1]);
78696
+ const match8 = /^(.*?)\.(\w+)$/.exec(str);
78697
+ if (!match8) return;
78698
+ const source3 = create(match8[1]);
78696
78699
  if (!source3) return;
78697
- return source3 + DOT_LITERAL + match3[2];
78700
+ return source3 + DOT_LITERAL + match8[2];
78698
78701
  }
78699
78702
  }
78700
78703
  };
@@ -78744,8 +78747,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78744
78747
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
78745
78748
  }
78746
78749
  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 };
78750
+ const { isMatch, match: match8, output } = picomatch.test(input, regex, options, { glob, posix });
78751
+ const result = { glob, state, regex, posix, input, output, match: match8, isMatch };
78749
78752
  if (typeof opts.onResult === "function") {
78750
78753
  opts.onResult(result);
78751
78754
  }
@@ -78779,20 +78782,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78779
78782
  }
78780
78783
  const opts = options || {};
78781
78784
  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) {
78785
+ let match8 = input === glob;
78786
+ let output = match8 && format ? format(input) : input;
78787
+ if (match8 === false) {
78785
78788
  output = format ? format(input) : input;
78786
- match3 = output === glob;
78789
+ match8 = output === glob;
78787
78790
  }
78788
- if (match3 === false || opts.capture === true) {
78791
+ if (match8 === false || opts.capture === true) {
78789
78792
  if (opts.matchBase === true || opts.basename === true) {
78790
- match3 = picomatch.matchBase(input, regex, options, posix);
78793
+ match8 = picomatch.matchBase(input, regex, options, posix);
78791
78794
  } else {
78792
- match3 = regex.exec(output);
78795
+ match8 = regex.exec(output);
78793
78796
  }
78794
78797
  }
78795
- return { isMatch: Boolean(match3), match: match3, output };
78798
+ return { isMatch: Boolean(match8), match: match8, output };
78796
78799
  };
78797
78800
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
78798
78801
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
@@ -79293,8 +79296,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
79293
79296
  exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
79294
79297
  exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
79295
79298
  exports2.removeBackslashes = (str) => {
79296
- return str.replace(REGEX_REMOVE_BACKSLASH, (match3) => {
79297
- return match3 === "\\" ? "" : match3;
79299
+ return str.replace(REGEX_REMOVE_BACKSLASH, (match8) => {
79300
+ return match8 === "\\" ? "" : match8;
79298
79301
  });
79299
79302
  };
79300
79303
  exports2.supportsLookbehinds = () => {
@@ -79911,10 +79914,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
79911
79914
  push2({ type: "text", value: value2 });
79912
79915
  continue;
79913
79916
  }
79914
- const match3 = /^\\+/.exec(remaining());
79917
+ const match8 = /^\\+/.exec(remaining());
79915
79918
  let slashes = 0;
79916
- if (match3 && match3[0].length > 2) {
79917
- slashes = match3[0].length;
79919
+ if (match8 && match8[0].length > 2) {
79920
+ slashes = match8[0].length;
79918
79921
  state.index += slashes;
79919
79922
  if (slashes % 2 !== 0) {
79920
79923
  value2 += "\\";
@@ -80202,10 +80205,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80202
80205
  if (value2 === "$" || value2 === "^") {
80203
80206
  value2 = `\\${value2}`;
80204
80207
  }
80205
- const match3 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
80206
- if (match3) {
80207
- value2 += match3[0];
80208
- state.index += match3[0].length;
80208
+ const match8 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
80209
+ if (match8) {
80210
+ value2 += match8[0];
80211
+ state.index += match8[0].length;
80209
80212
  }
80210
80213
  push2({ type: "text", value: value2 });
80211
80214
  continue;
@@ -80416,11 +80419,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80416
80419
  case "**/.*":
80417
80420
  return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
80418
80421
  default: {
80419
- const match3 = /^(.*?)\.(\w+)$/.exec(str);
80420
- if (!match3) return;
80421
- const source3 = create(match3[1]);
80422
+ const match8 = /^(.*?)\.(\w+)$/.exec(str);
80423
+ if (!match8) return;
80424
+ const source3 = create(match8[1]);
80422
80425
  if (!source3) return;
80423
- return source3 + DOT_LITERAL + match3[2];
80426
+ return source3 + DOT_LITERAL + match8[2];
80424
80427
  }
80425
80428
  }
80426
80429
  };
@@ -80470,8 +80473,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80470
80473
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
80471
80474
  }
80472
80475
  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 };
80476
+ const { isMatch, match: match8, output } = picomatch.test(input, regex, options, { glob, posix });
80477
+ const result = { glob, state, regex, posix, input, output, match: match8, isMatch };
80475
80478
  if (typeof opts.onResult === "function") {
80476
80479
  opts.onResult(result);
80477
80480
  }
@@ -80505,20 +80508,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80505
80508
  }
80506
80509
  const opts = options || {};
80507
80510
  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) {
80511
+ let match8 = input === glob;
80512
+ let output = match8 && format ? format(input) : input;
80513
+ if (match8 === false) {
80511
80514
  output = format ? format(input) : input;
80512
- match3 = output === glob;
80515
+ match8 = output === glob;
80513
80516
  }
80514
- if (match3 === false || opts.capture === true) {
80517
+ if (match8 === false || opts.capture === true) {
80515
80518
  if (opts.matchBase === true || opts.basename === true) {
80516
- match3 = picomatch.matchBase(input, regex, options, posix);
80519
+ match8 = picomatch.matchBase(input, regex, options, posix);
80517
80520
  } else {
80518
- match3 = regex.exec(output);
80521
+ match8 = regex.exec(output);
80519
80522
  }
80520
80523
  }
80521
- return { isMatch: Boolean(match3), match: match3, output };
80524
+ return { isMatch: Boolean(match8), match: match8, output };
80522
80525
  };
80523
80526
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
80524
80527
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
@@ -80677,10 +80680,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80677
80680
  if (typeof str !== "string" || str === "") {
80678
80681
  return false;
80679
80682
  }
80680
- var match3;
80681
- while (match3 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
80682
- if (match3[2]) return true;
80683
- str = str.slice(match3.index + match3[0].length);
80683
+ var match8;
80684
+ while (match8 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
80685
+ if (match8[2]) return true;
80686
+ str = str.slice(match8.index + match8[0].length);
80684
80687
  }
80685
80688
  return false;
80686
80689
  };
@@ -84426,17 +84429,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
84426
84429
  for (; ; ) {
84427
84430
  skipWhiteSpace.lastIndex = start;
84428
84431
  start += skipWhiteSpace.exec(this.input)[0].length;
84429
- var match3 = literal2.exec(this.input.slice(start));
84430
- if (!match3) {
84432
+ var match8 = literal2.exec(this.input.slice(start));
84433
+ if (!match8) {
84431
84434
  return false;
84432
84435
  }
84433
- if ((match3[1] || match3[2]) === "use strict") {
84434
- skipWhiteSpace.lastIndex = start + match3[0].length;
84436
+ if ((match8[1] || match8[2]) === "use strict") {
84437
+ skipWhiteSpace.lastIndex = start + match8[0].length;
84435
84438
  var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;
84436
84439
  var next = this.input.charAt(end);
84437
84440
  return next === ";" || next === "}" || lineBreak.test(spaceAfter[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=");
84438
84441
  }
84439
- start += match3[0].length;
84442
+ start += match8[0].length;
84440
84443
  skipWhiteSpace.lastIndex = start;
84441
84444
  start += skipWhiteSpace.exec(this.input)[0].length;
84442
84445
  if (this.input[start] === ";") {
@@ -89882,17 +89885,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
89882
89885
  var streamChunksOfRawSource = (source2, onChunk, onSource, onName) => {
89883
89886
  let line2 = 1;
89884
89887
  const matches = splitIntoLines(source2);
89885
- let match3;
89886
- for (match3 of matches) {
89887
- onChunk(match3, line2, 0, -1, -1, -1, -1);
89888
+ let match8;
89889
+ for (match8 of matches) {
89890
+ onChunk(match8, line2, 0, -1, -1, -1, -1);
89888
89891
  line2++;
89889
89892
  }
89890
- return matches.length === 0 || match3.endsWith("\n") ? {
89893
+ return matches.length === 0 || match8.endsWith("\n") ? {
89891
89894
  generatedLine: matches.length + 1,
89892
89895
  generatedColumn: 0
89893
89896
  } : {
89894
89897
  generatedLine: matches.length,
89895
- generatedColumn: match3.length
89898
+ generatedColumn: match8.length
89896
89899
  };
89897
89900
  };
89898
89901
  module2.exports = (source2, onChunk, onSource, onName, finalSource) => {
@@ -90326,19 +90329,19 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
90326
90329
  let line2 = 1;
90327
90330
  let column2 = 0;
90328
90331
  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);
90332
+ for (const match8 of matches) {
90333
+ const isEndOfLine = match8.endsWith("\n");
90334
+ if (isEndOfLine && match8.length === 1) {
90335
+ if (!finalSource) onChunk(match8, line2, column2, -1, -1, -1, -1);
90333
90336
  } else {
90334
- const chunk = finalSource ? void 0 : match3;
90337
+ const chunk = finalSource ? void 0 : match8;
90335
90338
  onChunk(chunk, line2, column2, 0, line2, column2, -1);
90336
90339
  }
90337
90340
  if (isEndOfLine) {
90338
90341
  line2++;
90339
90342
  column2 = 0;
90340
90343
  } else {
90341
- column2 += match3.length;
90344
+ column2 += match8.length;
90342
90345
  }
90343
90346
  }
90344
90347
  }
@@ -90361,18 +90364,18 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
90361
90364
  } else {
90362
90365
  let line2 = 1;
90363
90366
  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);
90367
+ let match8;
90368
+ for (match8 of matches) {
90369
+ onChunk(finalSource ? void 0 : match8, line2, 0, 0, line2, 0, -1);
90367
90370
  line2++;
90368
90371
  }
90369
- return matches.length === 0 || match3.endsWith("\n") ? {
90372
+ return matches.length === 0 || match8.endsWith("\n") ? {
90370
90373
  generatedLine: matches.length + 1,
90371
90374
  generatedColumn: 0,
90372
90375
  source: finalSource ? this._value : void 0
90373
90376
  } : {
90374
90377
  generatedLine: matches.length,
90375
- generatedColumn: match3.length,
90378
+ generatedColumn: match8.length,
90376
90379
  source: finalSource ? this._value : void 0
90377
90380
  };
90378
90381
  }
@@ -92645,13 +92648,13 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
92645
92648
  return input.startsWith("/");
92646
92649
  }
92647
92650
  function parseAbsoluteUrl(input) {
92648
- const match3 = urlRegex.exec(input);
92651
+ const match8 = urlRegex.exec(input);
92649
92652
  return {
92650
- scheme: match3[1],
92651
- user: match3[2] || "",
92652
- host: match3[3],
92653
- port: match3[4] || "",
92654
- path: match3[5] || "/",
92653
+ scheme: match8[1],
92654
+ user: match8[2] || "",
92655
+ host: match8[3],
92656
+ port: match8[4] || "",
92657
+ path: match8[5] || "/",
92655
92658
  relativePath: false
92656
92659
  };
92657
92660
  }
@@ -93668,7 +93671,7 @@ Did you specify these with the most recent transformation maps first?`);
93668
93671
  var import_path4 = __require("path");
93669
93672
  var import_webpack_sources = __toESM22(require_lib26());
93670
93673
  var import_acorn2 = require_acorn();
93671
- function createContext(compilation) {
93674
+ function createContext2(compilation) {
93672
93675
  return {
93673
93676
  parse(code, opts = {}) {
93674
93677
  return import_acorn2.Parser.parse(code, {
@@ -93829,7 +93832,7 @@ Did you specify these with the most recent transformation maps first?`);
93829
93832
  plugin.webpack(compiler);
93830
93833
  if (plugin.watchChange || plugin.buildStart) {
93831
93834
  compiler.hooks.make.tapPromise(plugin.name, async (compilation) => {
93832
- const context = createContext(compilation);
93835
+ const context = createContext2(compilation);
93833
93836
  if (plugin.watchChange && (compiler.modifiedFiles || compiler.removedFiles)) {
93834
93837
  const promises = [];
93835
93838
  if (compiler.modifiedFiles) {
@@ -93850,7 +93853,7 @@ Did you specify these with the most recent transformation maps first?`);
93850
93853
  }
93851
93854
  if (plugin.buildEnd) {
93852
93855
  compiler.hooks.emit.tapPromise(plugin.name, async (compilation) => {
93853
- await plugin.buildEnd.call(createContext(compilation));
93856
+ await plugin.buildEnd.call(createContext2(compilation));
93854
93857
  });
93855
93858
  }
93856
93859
  if (plugin.writeBundle) {
@@ -93967,10 +93970,10 @@ Did you specify these with the most recent transformation maps first?`);
93967
93970
  const obj = {};
93968
93971
  let lines = src.toString();
93969
93972
  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] || "";
93973
+ let match8;
93974
+ while ((match8 = LINE.exec(lines)) != null) {
93975
+ const key2 = match8[1];
93976
+ let value2 = match8[2] || "";
93974
93977
  value2 = value2.trim();
93975
93978
  const maybeQuote = value2[0];
93976
93979
  value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
@@ -95167,14 +95170,14 @@ Did you specify these with the most recent transformation maps first?`);
95167
95170
  return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path2 ? `${path2}/` : path2}${projectId}`;
95168
95171
  }
95169
95172
  function dsnFromString2(str) {
95170
- const match3 = DSN_REGEX.exec(str);
95171
- if (!match3) {
95173
+ const match8 = DSN_REGEX.exec(str);
95174
+ if (!match8) {
95172
95175
  consoleSandbox(() => {
95173
95176
  console.error(`Invalid Sentry Dsn: ${str}`);
95174
95177
  });
95175
95178
  return void 0;
95176
95179
  }
95177
- const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match3.slice(1);
95180
+ const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match8.slice(1);
95178
95181
  let path2 = "";
95179
95182
  let projectId = lastPath;
95180
95183
  const split = projectId.split("/");
@@ -98336,12 +98339,12 @@ ${JSON.stringify(itemHeaders)}
98336
98339
  });
98337
98340
  }
98338
98341
  function applyClientOptions(event, options) {
98339
- const { environment, release, dist, maxValueLength = 250 } = options;
98342
+ const { environment, release: release2, dist, maxValueLength = 250 } = options;
98340
98343
  if (!("environment" in event)) {
98341
98344
  event.environment = "environment" in options ? environment : DEFAULT_ENVIRONMENT;
98342
98345
  }
98343
- if (event.release === void 0 && release !== void 0) {
98344
- event.release = release;
98346
+ if (event.release === void 0 && release2 !== void 0) {
98347
+ event.release = release2;
98345
98348
  }
98346
98349
  if (event.dist === void 0 && dist !== void 0) {
98347
98350
  event.dist = dist;
@@ -99321,12 +99324,12 @@ Reason: ${reason}`
99321
99324
  }
99322
99325
  /** Method that initialises an instance of SessionFlusher on Client */
99323
99326
  initSessionFlusher() {
99324
- const { release, environment } = this._options;
99325
- if (!release) {
99327
+ const { release: release2, environment } = this._options;
99328
+ if (!release2) {
99326
99329
  DEBUG_BUILD && logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!");
99327
99330
  } else {
99328
99331
  this._sessionFlusher = new SessionFlusher(this, {
99329
- release,
99332
+ release: release2,
99330
99333
  environment
99331
99334
  });
99332
99335
  }
@@ -99345,12 +99348,12 @@ Reason: ${reason}`
99345
99348
  return id;
99346
99349
  }
99347
99350
  const options = this.getOptions();
99348
- const { release, environment, tunnel } = options;
99351
+ const { release: release2, environment, tunnel } = options;
99349
99352
  const serializedCheckIn = {
99350
99353
  check_in_id: id,
99351
99354
  monitor_slug: checkIn.monitorSlug,
99352
99355
  status: checkIn.status,
99353
- release,
99356
+ release: release2,
99354
99357
  environment
99355
99358
  };
99356
99359
  if ("duration" in checkIn) {
@@ -99525,9 +99528,9 @@ Reason: ${reason}`
99525
99528
  version = version.slice(1);
99526
99529
  }
99527
99530
  var regex = /^[\^~]?(\d+)(\.\d+)?(\.\d+)?(-.+)?/;
99528
- var match3 = version.match(regex);
99529
- if (match3) {
99530
- return parseInt(match3[1], 10);
99531
+ var match8 = version.match(regex);
99532
+ if (match8) {
99533
+ return parseInt(match8[1], 10);
99531
99534
  }
99532
99535
  var coerced = parseInt(version, 10);
99533
99536
  if (!Number.isNaN(coerced)) {
@@ -99661,8 +99664,8 @@ Reason: ${reason}`
99661
99664
  return possibleReleaseNameOfGitProvider || possibleReleaseNameOfCiProvidersWithSpecificEnvVar || possibleReleaseNameOfCiProvidersWithGenericEnvVar || gitRevision();
99662
99665
  }
99663
99666
  function generateGlobalInjectorCode(_ref2) {
99664
- var release = _ref2.release, injectBuildInformation = _ref2.injectBuildInformation;
99665
- var code = "{\n let _global =\n typeof window !== 'undefined' ?\n window :\n typeof global !== 'undefined' ?\n global :\n typeof globalThis !== 'undefined' ?\n globalThis :\n typeof self !== 'undefined' ?\n self :\n {};\n\n _global.SENTRY_RELEASE={id:".concat(JSON.stringify(release), "};");
99667
+ var release2 = _ref2.release, injectBuildInformation = _ref2.injectBuildInformation;
99668
+ var code = "{\n let _global =\n typeof window !== 'undefined' ?\n window :\n typeof global !== 'undefined' ?\n global :\n typeof globalThis !== 'undefined' ?\n globalThis :\n typeof self !== 'undefined' ?\n self :\n {};\n\n _global.SENTRY_RELEASE={id:".concat(JSON.stringify(release2), "};");
99666
99669
  if (injectBuildInformation) {
99667
99670
  var buildInfo = getBuildInformation$1();
99668
99671
  code += "\n _global.SENTRY_BUILD_INFO=".concat(JSON.stringify(buildInfo), ";");
@@ -99976,20 +99979,20 @@ Reason: ${reason}`
99976
99979
  }
99977
99980
  function setTelemetryDataOnScope(options, scope, buildTool) {
99978
99981
  var _options$_metaOptions;
99979
- var org = options.org, project = options.project, release = options.release, errorHandler = options.errorHandler, sourcemaps = options.sourcemaps, reactComponentAnnotation = options.reactComponentAnnotation;
99980
- scope.setTag("upload-legacy-sourcemaps", !!release.uploadLegacySourcemaps);
99981
- if (release.uploadLegacySourcemaps) {
99982
- scope.setTag("uploadLegacySourcemapsEntries", Array.isArray(release.uploadLegacySourcemaps) ? release.uploadLegacySourcemaps.length : 1);
99982
+ var org = options.org, project = options.project, release2 = options.release, errorHandler = options.errorHandler, sourcemaps = options.sourcemaps, reactComponentAnnotation = options.reactComponentAnnotation;
99983
+ scope.setTag("upload-legacy-sourcemaps", !!release2.uploadLegacySourcemaps);
99984
+ if (release2.uploadLegacySourcemaps) {
99985
+ scope.setTag("uploadLegacySourcemapsEntries", Array.isArray(release2.uploadLegacySourcemaps) ? release2.uploadLegacySourcemaps.length : 1);
99983
99986
  }
99984
99987
  scope.setTag("module-metadata", !!options.moduleMetadata);
99985
99988
  scope.setTag("inject-build-information", !!options._experiments.injectBuildInformation);
99986
- if (release.setCommits) {
99987
- scope.setTag("set-commits", release.setCommits.auto === true ? "auto" : "manual");
99989
+ if (release2.setCommits) {
99990
+ scope.setTag("set-commits", release2.setCommits.auto === true ? "auto" : "manual");
99988
99991
  } else {
99989
99992
  scope.setTag("set-commits", "undefined");
99990
99993
  }
99991
- scope.setTag("finalize-release", release.finalize);
99992
- scope.setTag("deploy-options", !!release.deploy);
99994
+ scope.setTag("finalize-release", release2.finalize);
99995
+ scope.setTag("deploy-options", !!release2.deploy);
99993
99996
  scope.setTag("custom-error-handler", !!errorHandler);
99994
99997
  scope.setTag("sourcemaps-assets", !!(sourcemaps !== null && sourcemaps !== void 0 && sourcemaps.assets));
99995
99998
  scope.setTag("delete-after-upload", !!(sourcemaps !== null && sourcemaps !== void 0 && sourcemaps.filesToDeleteAfterUpload));
@@ -100015,11 +100018,11 @@ Reason: ${reason}`
100015
100018
  function _allowedToSendTelemetry() {
100016
100019
  _allowedToSendTelemetry = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee(options) {
100017
100020
  var _cliInfo$split$, _cliInfo$split$$repla;
100018
- var silent, org, project, authToken, url2, headers, telemetry, release, cli, cliInfo, cliInfoUrl;
100021
+ var silent, org, project, authToken, url2, headers, telemetry, release2, cli, cliInfo, cliInfoUrl;
100019
100022
  return _regeneratorRuntime().wrap(function _callee$(_context) {
100020
100023
  while (1) switch (_context.prev = _context.next) {
100021
100024
  case 0:
100022
- silent = options.silent, org = options.org, project = options.project, authToken = options.authToken, url2 = options.url, headers = options.headers, telemetry = options.telemetry, release = options.release;
100025
+ silent = options.silent, org = options.org, project = options.project, authToken = options.authToken, url2 = options.url, headers = options.headers, telemetry = options.telemetry, release2 = options.release;
100023
100026
  if (!(telemetry === false)) {
100024
100027
  _context.next = 3;
100025
100028
  break;
@@ -100037,7 +100040,7 @@ Reason: ${reason}`
100037
100040
  authToken,
100038
100041
  org,
100039
100042
  project,
100040
- vcsRemote: release.vcsRemote,
100043
+ vcsRemote: release2.vcsRemote,
100041
100044
  silent,
100042
100045
  headers
100043
100046
  });
@@ -100182,9 +100185,9 @@ Reason: ${reason}`
100182
100185
  return _prepareBundleForDebugIdUpload.apply(this, arguments);
100183
100186
  }
100184
100187
  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];
100188
+ var match8 = 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})/);
100189
+ if (match8) {
100190
+ return match8[1];
100188
100191
  } else {
100189
100192
  return void 0;
100190
100193
  }
@@ -100438,9 +100441,9 @@ Reason: ${reason}`
100438
100441
  }
100439
100442
  var shouldSendTelemetry = allowedToSendTelemetry(options);
100440
100443
  var _createSentryInstance = createSentryInstance(options, shouldSendTelemetry, bundlerPluginMetaContext.buildTool), sentryScope = _createSentryInstance.sentryScope, sentryClient = _createSentryInstance.sentryClient;
100441
- var _sentryClient$getOpti = sentryClient.getOptions(), release = _sentryClient$getOpti.release, _sentryClient$getOpti2 = _sentryClient$getOpti.environment, environment = _sentryClient$getOpti2 === void 0 ? DEFAULT_ENVIRONMENT : _sentryClient$getOpti2;
100444
+ var _sentryClient$getOpti = sentryClient.getOptions(), release2 = _sentryClient$getOpti.release, _sentryClient$getOpti2 = _sentryClient$getOpti.environment, environment = _sentryClient$getOpti2 === void 0 ? DEFAULT_ENVIRONMENT : _sentryClient$getOpti2;
100442
100445
  var sentrySession = makeSession({
100443
- release,
100446
+ release: release2,
100444
100447
  environment
100445
100448
  });
100446
100449
  sentryScope.setSession(sentrySession);
@@ -101345,9 +101348,9 @@ Reason: ${reason}`
101345
101348
  var ms = new MagicString__default["default"](code, {
101346
101349
  filename: chunk.fileName
101347
101350
  });
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);
101351
+ var match8 = (_code$match = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match === void 0 ? void 0 : _code$match[0];
101352
+ if (match8) {
101353
+ ms.appendLeft(match8.length, codeToInject);
101351
101354
  } else {
101352
101355
  ms.prepend(codeToInject);
101353
101356
  }
@@ -101377,9 +101380,9 @@ Reason: ${reason}`
101377
101380
  var ms = new MagicString__default["default"](code, {
101378
101381
  filename: chunk.fileName
101379
101382
  });
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);
101383
+ var match8 = (_code$match2 = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match2 === void 0 ? void 0 : _code$match2[0];
101384
+ if (match8) {
101385
+ ms.appendLeft(match8.length, injectionCode);
101383
101386
  } else {
101384
101387
  ms.prepend(injectionCode);
101385
101388
  }
@@ -105788,24 +105791,24 @@ Reason: ${reason}`
105788
105791
  });
105789
105792
  module2.exports = __toCommonJS2(vite_exports);
105790
105793
  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()
105794
+ var import_zod4 = require_zod();
105795
+ var providerSchema = import_zod4.z.discriminatedUnion("type", [
105796
+ import_zod4.z.object({
105797
+ type: import_zod4.z.literal("SENTRY"),
105798
+ sentryOptions: import_zod4.z.object({
105799
+ dsn: import_zod4.z.string().url()
105797
105800
  })
105798
105801
  }),
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()
105802
+ import_zod4.z.object({
105803
+ type: import_zod4.z.literal("PANORAMA"),
105804
+ panoramaOptions: import_zod4.z.object({
105805
+ sentry: import_zod4.z.object({
105806
+ dsn: import_zod4.z.string().url()
105804
105807
  }).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()
105808
+ project: import_zod4.z.object({
105809
+ groupId: import_zod4.z.string(),
105810
+ artifactId: import_zod4.z.string(),
105811
+ fingerprint: import_zod4.z.string()
105809
105812
  })
105810
105813
  })
105811
105814
  })
@@ -105841,10 +105844,10 @@ ${error.errors.map(formatZodIssue).join("\n")}`,
105841
105844
  const pluginOrArray = (0, import_vite_plugin.sentryVitePlugin)({
105842
105845
  silent,
105843
105846
  debug,
105844
- moduleMetadata: ({ release }) => ({
105847
+ moduleMetadata: ({ release: release2 }) => ({
105845
105848
  appId,
105846
105849
  dsn,
105847
- release,
105850
+ release: release2,
105848
105851
  ...extra
105849
105852
  })
105850
105853
  });
@@ -106000,11 +106003,11 @@ ${error.errors.map(formatZodIssue).join("\n")}`,
106000
106003
  };
106001
106004
  }
106002
106005
  function dsnFromString(str) {
106003
- const match3 = SENTRY_DSN_REGEX.exec(str);
106004
- if (!match3) {
106006
+ const match8 = SENTRY_DSN_REGEX.exec(str);
106007
+ if (!match8) {
106005
106008
  throw new Error("Invalid DSN");
106006
106009
  }
106007
- const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match3.slice(1);
106010
+ const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match8.slice(1);
106008
106011
  let path = "";
106009
106012
  let projectId = lastPath;
106010
106013
  const split = projectId.split("/");
@@ -106115,125 +106118,613 @@ window.sentryOnLoad = function () {
106115
106118
  }
106116
106119
  });
106117
106120
 
106118
- // ../cli-astro-commands/src/components/DevCommand/index.ts
106121
+ // ../arm-client/src/useARMClient.ts
106119
106122
  init_esm_shims();
106123
+ var import_react = __toESM(require_react(), 1);
106120
106124
 
106121
- // ../cli-astro-commands/src/components/DevCommand/DevCommand.tsx
106125
+ // ../arm-client/src/client.ts
106122
106126
  init_esm_shims();
106123
- var import_react6 = __toESM(require_react(), 1);
106124
- var import_variant4 = __toESM(require_lib(), 1);
106125
106127
 
106126
- // ../cli-astro-commands/src/components/DevCommand/DevScreenBorder.tsx
106128
+ // ../../node_modules/@wix/ambassador-ctp-gradual-rollout-v1-app-config/build/es/http.impl.js
106127
106129
  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
- };
106130
+ var _commitComponentOverrideRequest = {};
106131
+ var _commitComponentOverrideResponse = {};
106132
+ var _createAppReleaseRequest = {};
106133
+ var _createAppReleaseResponse = {};
106134
+ var _createComponentsRequest = {};
106135
+ var _createComponentsResponse = {};
106136
+ var _promoteAppVersionFromDraftToProductionRequest = {};
106137
+ var _promoteAppVersionFromDraftToProductionResponse = {};
106138
+ var _updateAppReleaseRequest = {};
106139
+ var _updateAppReleaseResponse = {};
106140
+ function resolveComWixCtpAppsReleaseManagerServiceUrl(opts) {
106141
+ var domainToMappings = {
106142
+ "api._api_base_domain_": [
106143
+ {
106144
+ srcPath: "/apps-release-manager-service-web",
106145
+ destPath: ""
106146
+ }
106147
+ ],
106148
+ "bo._base_domain_": [
106149
+ {
106150
+ srcPath: "/apps-release-manager-service-web",
106151
+ destPath: ""
106152
+ }
106153
+ ],
106154
+ "wixbo.ai": [
106155
+ {
106156
+ srcPath: "/apps-release-manager-service-web",
106157
+ destPath: ""
106158
+ }
106159
+ ],
106160
+ "wix-bo.com": [
106161
+ {
106162
+ srcPath: "/apps-release-manager-service-web",
106163
+ destPath: ""
106164
+ }
106165
+ ],
106166
+ "www._base_domain_": [
106167
+ {
106168
+ srcPath: "/apps-release-manager-service-web/artifacts-release-manager/app-releases",
106169
+ destPath: "/artifacts-release-manager/app-releases"
106170
+ },
106171
+ {
106172
+ srcPath: "/_api/apps-release-manager-service-web/artifacts-release-manager/app-releases",
106173
+ destPath: "/artifacts-release-manager/app-releases"
106174
+ },
106175
+ {
106176
+ srcPath: "/apps-release-manager-service-web/apps/create",
106177
+ destPath: "/apps/create"
106178
+ },
106179
+ {
106180
+ srcPath: "/apps-release-manager-service-web/apps/promote",
106181
+ destPath: "/apps/promote"
106182
+ },
106183
+ {
106184
+ srcPath: "/apps-release-manager-service-web/apps/tags",
106185
+ destPath: "/apps/tags"
106186
+ },
106187
+ {
106188
+ srcPath: "/apps-release-manager-service-web/apps/create-components",
106189
+ destPath: "/apps/create-components"
106190
+ },
106191
+ {
106192
+ srcPath: "/apps-release-manager-service-web/apps/commit",
106193
+ destPath: "/apps/commit"
106194
+ },
106195
+ {
106196
+ srcPath: "/apps-release-manager-service-web/apps/promote-app-version",
106197
+ destPath: "/apps/promote-app-version"
106198
+ }
106199
+ ],
106200
+ "manage._base_domain_": [
106201
+ {
106202
+ srcPath: "/apps-release-manager-service-web/apps/promote",
106203
+ destPath: "/apps/promote"
106204
+ },
106205
+ {
106206
+ srcPath: "/apps-release-manager-service-web/apps/create",
106207
+ destPath: "/apps/create"
106208
+ },
106209
+ {
106210
+ srcPath: "/apps-release-manager-service-web/apps/tags",
106211
+ destPath: "/apps/tags"
106212
+ },
106213
+ {
106214
+ srcPath: "/apps-release-manager-service-web/apps/create-components",
106215
+ destPath: "/apps/create-components"
106216
+ },
106217
+ {
106218
+ srcPath: "/apps-release-manager-service-web/apps/commit",
106219
+ destPath: "/apps/commit"
106220
+ },
106221
+ {
106222
+ srcPath: "/apps-release-manager-service-web/apps/promote-app-version",
106223
+ destPath: "/apps/promote-app-version"
106224
+ },
106225
+ {
106226
+ srcPath: "/apps-release-manager-service-web/apps/release",
106227
+ destPath: "/apps/release"
106228
+ }
106229
+ ]
106230
+ };
106231
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
106232
+ }
106233
+ function createAppRelease(payload) {
106234
+ var _a = serializer(_createAppReleaseRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
106235
+ var fromRes = serializer(_createAppReleaseResponse, {}).fromJSON;
106236
+ function __createAppRelease(_a2) {
106237
+ var host = _a2.host;
106238
+ var serializedData = toReq(payload);
106239
+ var metadata = {
106240
+ entityFqdn: "wix.ctp.gradual_rollout.v1.app_config",
106241
+ method: "POST",
106242
+ methodFqn: "com.wix.ctp.AppsReleaseManagerService.CreateAppRelease",
106243
+ migrationOptions: {
106244
+ optInTransformResponse: true
106245
+ },
106246
+ url: resolveComWixCtpAppsReleaseManagerServiceUrl({
106247
+ protoPath: "/apps/create/{appId}",
106248
+ data: serializedData,
106249
+ host
106250
+ }),
106251
+ data: serializedData,
106252
+ transformResponse: fromRes
106253
+ };
106254
+ return metadata;
106255
+ }
106256
+ __createAppRelease.fromReq = fromReq;
106257
+ __createAppRelease.__isAmbassador = true;
106258
+ return __createAppRelease;
106259
+ }
106260
+ function updateAppRelease(payload) {
106261
+ var _a = serializer(_updateAppReleaseRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
106262
+ var fromRes = serializer(_updateAppReleaseResponse, {}).fromJSON;
106263
+ function __updateAppRelease(_a2) {
106264
+ var host = _a2.host;
106265
+ var serializedData = toReq(payload);
106266
+ var metadata = {
106267
+ entityFqdn: "wix.ctp.gradual_rollout.v1.app_config",
106268
+ method: "PUT",
106269
+ methodFqn: "com.wix.ctp.AppsReleaseManagerService.UpdateAppRelease",
106270
+ migrationOptions: {
106271
+ optInTransformResponse: true
106272
+ },
106273
+ url: resolveComWixCtpAppsReleaseManagerServiceUrl({
106274
+ protoPath: "/apps/tags/{tag}",
106275
+ data: serializedData,
106276
+ host
106277
+ }),
106278
+ data: serializedData,
106279
+ transformResponse: fromRes
106280
+ };
106281
+ return metadata;
106282
+ }
106283
+ __updateAppRelease.fromReq = fromReq;
106284
+ __updateAppRelease.__isAmbassador = true;
106285
+ return __updateAppRelease;
106286
+ }
106287
+ function createComponents(payload) {
106288
+ var _a = serializer(_createComponentsRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
106289
+ var fromRes = serializer(_createComponentsResponse, {}).fromJSON;
106290
+ function __createComponents(_a2) {
106291
+ var host = _a2.host;
106292
+ var serializedData = toReq(payload);
106293
+ var metadata = {
106294
+ entityFqdn: "wix.ctp.gradual_rollout.v1.app_config",
106295
+ method: "POST",
106296
+ methodFqn: "com.wix.ctp.AppsReleaseManagerService.CreateComponents",
106297
+ migrationOptions: {
106298
+ optInTransformResponse: true
106299
+ },
106300
+ url: resolveComWixCtpAppsReleaseManagerServiceUrl({
106301
+ protoPath: "/apps/create-components/{appId}",
106302
+ data: serializedData,
106303
+ host
106304
+ }),
106305
+ data: serializedData,
106306
+ transformResponse: fromRes
106307
+ };
106308
+ return metadata;
106309
+ }
106310
+ __createComponents.fromReq = fromReq;
106311
+ __createComponents.__isAmbassador = true;
106312
+ return __createComponents;
106313
+ }
106314
+ function commitComponentOverride(payload) {
106315
+ var _a = serializer(_commitComponentOverrideRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
106316
+ var fromRes = serializer(_commitComponentOverrideResponse, {}).fromJSON;
106317
+ function __commitComponentOverride(_a2) {
106318
+ var host = _a2.host;
106319
+ var serializedData = toReq(payload);
106320
+ var metadata = {
106321
+ entityFqdn: "wix.ctp.gradual_rollout.v1.app_config",
106322
+ method: "POST",
106323
+ methodFqn: "com.wix.ctp.AppsReleaseManagerService.CommitComponentOverride",
106324
+ migrationOptions: {
106325
+ optInTransformResponse: true
106326
+ },
106327
+ url: resolveComWixCtpAppsReleaseManagerServiceUrl({
106328
+ protoPath: "/apps/commit/{appId}/{componentOverrideId}",
106329
+ data: serializedData,
106330
+ host
106331
+ }),
106332
+ data: serializedData,
106333
+ transformResponse: fromRes
106334
+ };
106335
+ return metadata;
106336
+ }
106337
+ __commitComponentOverride.fromReq = fromReq;
106338
+ __commitComponentOverride.__isAmbassador = true;
106339
+ return __commitComponentOverride;
106340
+ }
106341
+ function promoteAppVersionFromDraftToProduction(payload) {
106342
+ var _a = serializer(_promoteAppVersionFromDraftToProductionRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
106343
+ var fromRes = serializer(_promoteAppVersionFromDraftToProductionResponse, {}).fromJSON;
106344
+ function __promoteAppVersionFromDraftToProduction(_a2) {
106345
+ var host = _a2.host;
106346
+ var serializedData = toReq(payload);
106347
+ var metadata = {
106348
+ entityFqdn: "wix.ctp.gradual_rollout.v1.app_config",
106349
+ method: "POST",
106350
+ methodFqn: "com.wix.ctp.AppsReleaseManagerService.PromoteAppVersionFromDraftToProduction",
106351
+ migrationOptions: {
106352
+ optInTransformResponse: true
106353
+ },
106354
+ url: resolveComWixCtpAppsReleaseManagerServiceUrl({
106355
+ protoPath: "/apps/promote-app-version/{appId}/{createNewMajor}/{latestMajor}",
106356
+ data: serializedData,
106357
+ host
106358
+ }),
106359
+ data: serializedData,
106360
+ transformResponse: fromRes
106361
+ };
106362
+ return metadata;
106363
+ }
106364
+ __promoteAppVersionFromDraftToProduction.fromReq = fromReq;
106365
+ __promoteAppVersionFromDraftToProduction.__isAmbassador = true;
106366
+ return __promoteAppVersionFromDraftToProduction;
106367
+ }
106145
106368
 
106146
- // ../cli-astro-commands/src/components/DevCommand/utils/runAstroDev.ts
106369
+ // ../../node_modules/@wix/ambassador-ctp-gradual-rollout-v1-baas-release/build/es/http.impl.js
106147
106370
  init_esm_shims();
106148
- var EVENT_LINE = "line";
106149
- var EVENT_SERVER_ADDRESS = "server_address";
106150
- function runAstroDev({
106151
- packageManager,
106152
- projectFolder,
106153
- port,
106154
- allowedHosts
106155
- }) {
106156
- const binaryArgs = ["astro", "dev"];
106157
- if (port) {
106158
- binaryArgs.push("--port", `${port}`);
106159
- }
106160
- if (allowedHosts) {
106161
- binaryArgs.push("--allowed-hosts", allowedHosts);
106371
+ var _releaseRequest = {};
106372
+ var _releaseResponse = {};
106373
+ function resolveComWixCtpAppsReleaseManagerBassServiceUrl(opts) {
106374
+ var domainToMappings = {
106375
+ "api._api_base_domain_": [
106376
+ {
106377
+ srcPath: "/apps-release-manager-service-web",
106378
+ destPath: ""
106379
+ }
106380
+ ],
106381
+ "bo._base_domain_": [
106382
+ {
106383
+ srcPath: "/apps-release-manager-service-web",
106384
+ destPath: ""
106385
+ }
106386
+ ],
106387
+ "wixbo.ai": [
106388
+ {
106389
+ srcPath: "/apps-release-manager-service-web",
106390
+ destPath: ""
106391
+ }
106392
+ ],
106393
+ "wix-bo.com": [
106394
+ {
106395
+ srcPath: "/apps-release-manager-service-web",
106396
+ destPath: ""
106397
+ }
106398
+ ],
106399
+ "www._base_domain_": [
106400
+ {
106401
+ srcPath: "/apps-release-manager-service-web/artifacts-release-manager/app-releases",
106402
+ destPath: "/artifacts-release-manager/app-releases"
106403
+ },
106404
+ {
106405
+ srcPath: "/_api/apps-release-manager-service-web/artifacts-release-manager/app-releases",
106406
+ destPath: "/artifacts-release-manager/app-releases"
106407
+ },
106408
+ {
106409
+ srcPath: "/apps-release-manager-service-web/apps/create",
106410
+ destPath: "/apps/create"
106411
+ },
106412
+ {
106413
+ srcPath: "/apps-release-manager-service-web/apps/promote",
106414
+ destPath: "/apps/promote"
106415
+ },
106416
+ {
106417
+ srcPath: "/apps-release-manager-service-web/apps/tags",
106418
+ destPath: "/apps/tags"
106419
+ },
106420
+ {
106421
+ srcPath: "/apps-release-manager-service-web/apps/create-components",
106422
+ destPath: "/apps/create-components"
106423
+ },
106424
+ {
106425
+ srcPath: "/apps-release-manager-service-web/apps/commit",
106426
+ destPath: "/apps/commit"
106427
+ },
106428
+ {
106429
+ srcPath: "/apps-release-manager-service-web/apps/promote-app-version",
106430
+ destPath: "/apps/promote-app-version"
106431
+ }
106432
+ ],
106433
+ "manage._base_domain_": [
106434
+ {
106435
+ srcPath: "/apps-release-manager-service-web/apps/promote",
106436
+ destPath: "/apps/promote"
106437
+ },
106438
+ {
106439
+ srcPath: "/apps-release-manager-service-web/apps/create",
106440
+ destPath: "/apps/create"
106441
+ },
106442
+ {
106443
+ srcPath: "/apps-release-manager-service-web/apps/tags",
106444
+ destPath: "/apps/tags"
106445
+ },
106446
+ {
106447
+ srcPath: "/apps-release-manager-service-web/apps/create-components",
106448
+ destPath: "/apps/create-components"
106449
+ },
106450
+ {
106451
+ srcPath: "/apps-release-manager-service-web/apps/commit",
106452
+ destPath: "/apps/commit"
106453
+ },
106454
+ {
106455
+ srcPath: "/apps-release-manager-service-web/apps/promote-app-version",
106456
+ destPath: "/apps/promote-app-version"
106457
+ },
106458
+ {
106459
+ srcPath: "/apps-release-manager-service-web/apps/release",
106460
+ destPath: "/apps/release"
106461
+ }
106462
+ ]
106463
+ };
106464
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
106465
+ }
106466
+ function release(payload) {
106467
+ var _a = serializer(_releaseRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
106468
+ var fromRes = serializer(_releaseResponse, {}).fromJSON;
106469
+ function __release(_a2) {
106470
+ var host = _a2.host;
106471
+ var serializedData = toReq(payload);
106472
+ var metadata = {
106473
+ entityFqdn: "wix.ctp.gradual_rollout.v1.baas_release",
106474
+ method: "POST",
106475
+ methodFqn: "com.wix.ctp.AppsReleaseManagerBassService.Release",
106476
+ migrationOptions: {
106477
+ optInTransformResponse: true
106478
+ },
106479
+ url: resolveComWixCtpAppsReleaseManagerBassServiceUrl({
106480
+ protoPath: "/apps/release/{appId}/{componentOverrideId}",
106481
+ data: serializedData,
106482
+ host
106483
+ }),
106484
+ data: serializedData,
106485
+ transformResponse: fromRes
106486
+ };
106487
+ return metadata;
106162
106488
  }
106163
- const { file, args } = packageManager.getRunBinaryCmd(binaryArgs);
106164
- const result = execa(file, args, {
106165
- cwd: projectFolder,
106166
- stdio: "pipe",
106167
- env: { FORCE_COLOR: "1" },
106168
- cleanup: true,
106169
- windowsHide: false
106170
- });
106171
- let stdoutBuffer = "";
106172
- result.stdout?.on("data", (chunk) => {
106173
- stdoutBuffer += chunk.toString();
106174
- const lines = stdoutBuffer.split("\n");
106175
- stdoutBuffer = lines.pop() ?? "";
106176
- for (const line of lines) {
106177
- result.stdout?.emit(EVENT_LINE, line);
106178
- if (line.includes("http://")) {
106179
- const match3 = /(http:\/\/[^\s]+)/.exec(line);
106180
- if (match3?.[1]) {
106181
- const address = stripAnsi(match3[1]).trim();
106182
- result.stdout?.emit(EVENT_SERVER_ADDRESS, address);
106183
- }
106489
+ __release.fromReq = fromReq;
106490
+ __release.__isAmbassador = true;
106491
+ return __release;
106492
+ }
106493
+
106494
+ // ../arm-client/src/client.ts
106495
+ var import_variant = __toESM(require_lib(), 1);
106496
+
106497
+ // ../arm-client/src/isTrustedInternalErr.ts
106498
+ init_esm_shims();
106499
+ function isTrustedInternalErr(e) {
106500
+ if (isHttpError(e)) {
106501
+ const appError = e.response?.data?.details?.applicationError;
106502
+ if (appError?.description) {
106503
+ let errDescription;
106504
+ try {
106505
+ errDescription = JSON.parse(appError.description);
106506
+ } catch {
106184
106507
  }
106508
+ return errDescription?.results?.some(
106509
+ (result) => result.error?.startsWith("scriptAsset is not supported")
106510
+ );
106185
106511
  }
106186
- });
106187
- let stdErrBuffer = "";
106188
- result.stderr?.on("data", (chunk) => {
106189
- stdErrBuffer += chunk.toString();
106190
- const lines = stdErrBuffer.split("\n");
106191
- stdErrBuffer = lines.pop() ?? "";
106192
- for (const line of lines) {
106193
- result.stderr?.emit(EVENT_LINE, line);
106194
- }
106195
- });
106196
- return result;
106512
+ }
106513
+ return false;
106197
106514
  }
106198
106515
 
106199
- // ../cli-astro-commands/src/components/DevCommand/utils/createAstroLogger.tsx
106516
+ // ../arm-client/src/schemas.ts
106200
106517
  init_esm_shims();
106201
- var import_react2 = __toESM(require_react(), 1);
106202
- var dateTimeFormat = new Intl.DateTimeFormat([], {
106203
- hour: "2-digit",
106204
- minute: "2-digit",
106205
- second: "2-digit",
106206
- hour12: false
106518
+ var promoteAppVersionFromDraftToProductionSchema = external_exports.object({
106519
+ fullVersion: external_exports.string()
106520
+ });
106521
+ var commitComponentOverrideSchema = external_exports.object({
106522
+ nextMajor: external_exports.string(),
106523
+ nextMinor: external_exports.string().optional()
106524
+ });
106525
+ var createAppReleaseSchema = external_exports.object({
106526
+ tag: external_exports.string()
106527
+ });
106528
+ var releaseArm2Schema = external_exports.object({
106529
+ releaseBaseUrl: external_exports.string()
106207
106530
  });
106208
- function createAstroLogger(isPrefixed = true) {
106209
- const renderer = createRendererToString({ stripAnsi: false });
106210
- const log = (msg) => {
106211
- if (typeof msg === "string") {
106212
- setTimeout(() => console.log(msg), 0);
106213
- } else {
106214
- setTimeout(() => console.log(renderer.render(msg)), 0);
106531
+
106532
+ // ../arm-client/src/client.ts
106533
+ var { AppPermissionDenied } = CliErrorCode;
106534
+ var UpdateAppReleaseData = (0, import_variant.variant)({
106535
+ TagNotFound: (0, import_variant.fields)(),
106536
+ TagUpdated: {}
106537
+ });
106538
+ var ARMClient = class {
106539
+ constructor(httpClient) {
106540
+ this.httpClient = httpClient;
106541
+ const { minRetryTimeout } = getTestOverrides();
106542
+ this.retryOptions = {
106543
+ maxTimeout: 3 * 1e3,
106544
+ minTimeout: minRetryTimeout,
106545
+ retries: 3
106546
+ };
106547
+ }
106548
+ retryOptions;
106549
+ createComponents = async (appId, componentConfigs, projectId) => {
106550
+ try {
106551
+ await this.httpClient.request(
106552
+ createComponents({ appId, componentConfigs, projectId })
106553
+ );
106554
+ } catch (e) {
106555
+ if (isHttpError(e) && e.response?.status === 403) {
106556
+ throw new CliError({
106557
+ cause: e,
106558
+ code: AppPermissionDenied({ appId })
106559
+ });
106560
+ }
106561
+ throw new CliError({
106562
+ cause: e,
106563
+ code: CliErrorCode.FailedToCreateComponents()
106564
+ });
106565
+ }
106566
+ };
106567
+ createAppRelease = async (manifest, projectId) => {
106568
+ try {
106569
+ const { data } = await pRetry(
106570
+ () => this.httpClient.request(
106571
+ createAppRelease({
106572
+ appId: manifest.appId,
106573
+ componentConfigs: manifest.components,
106574
+ projectId
106575
+ })
106576
+ ),
106577
+ this.retryOptions
106578
+ );
106579
+ return createAppReleaseSchema.parse(data).tag;
106580
+ } catch (e) {
106581
+ if (isHttpError(e)) {
106582
+ if (e.response?.status === 403) {
106583
+ throw new CliError({
106584
+ cause: e,
106585
+ code: AppPermissionDenied({ appId: manifest.appId })
106586
+ });
106587
+ }
106588
+ if (e.response?.status === 400 && isHttpValidationError(e)) {
106589
+ throw new CliError({
106590
+ cause: e,
106591
+ code: CliErrorCode.AppReleaseConfigViolations({
106592
+ violations: e.response.data.details.validationError.fieldViolations
106593
+ })
106594
+ });
106595
+ }
106596
+ }
106597
+ if (isTrustedInternalErr(e)) {
106598
+ throw new CliError({
106599
+ cause: e,
106600
+ code: CliErrorCode.TrustedAppIsNotMarkedAsInternal()
106601
+ });
106602
+ }
106603
+ throw new CliError({
106604
+ cause: e,
106605
+ code: CliErrorCode.FailedToCreateAppRelease()
106606
+ });
106215
106607
  }
106216
106608
  };
106217
- const prefixedLog = (msg) => {
106218
- 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));
106220
- console.log(renderer.render(log2));
106609
+ createLooseAppRelease = async (manifest, projectId) => {
106610
+ return this.createAppRelease(manifest, projectId);
106221
106611
  };
106222
- return isPrefixed ? { log: prefixedLog } : { log };
106612
+ updateAppRelease = async (manifest, tag) => {
106613
+ try {
106614
+ await pRetry(
106615
+ () => this.httpClient.request(
106616
+ updateAppRelease({
106617
+ appId: manifest.appId,
106618
+ componentConfigs: manifest.components,
106619
+ tag
106620
+ })
106621
+ ),
106622
+ this.retryOptions
106623
+ );
106624
+ return UpdateAppReleaseData.TagUpdated();
106625
+ } catch (e) {
106626
+ if (isHttpError(e)) {
106627
+ if (e.response?.status === 404) {
106628
+ return UpdateAppReleaseData.TagNotFound({ cause: e });
106629
+ }
106630
+ if (e.response?.status === 403) {
106631
+ throw new CliError({
106632
+ cause: e,
106633
+ code: AppPermissionDenied({ appId: manifest.appId })
106634
+ });
106635
+ }
106636
+ if (e.response?.status === 400 && isHttpValidationError(e)) {
106637
+ throw new CliError({
106638
+ cause: e,
106639
+ code: CliErrorCode.AppReleaseConfigViolations({
106640
+ violations: e.response.data.details.validationError.fieldViolations
106641
+ })
106642
+ });
106643
+ }
106644
+ }
106645
+ throw new CliError({
106646
+ cause: e,
106647
+ code: CliErrorCode.FailedToUpdateAppRelease()
106648
+ });
106649
+ }
106650
+ };
106651
+ updateLooseAppRelease = async (manifest, tag) => {
106652
+ return this.updateAppRelease(manifest, tag);
106653
+ };
106654
+ createDraftVersion = async (appId, tag) => {
106655
+ try {
106656
+ const { data } = await this.httpClient.request(
106657
+ commitComponentOverride({
106658
+ appId,
106659
+ componentOverrideId: tag
106660
+ })
106661
+ );
106662
+ return commitComponentOverrideSchema.parse(data);
106663
+ } catch (cause) {
106664
+ throw new CliError({
106665
+ cause,
106666
+ code: CliErrorCode.FailedToCreateDraftVersion()
106667
+ });
106668
+ }
106669
+ };
106670
+ releaseDraftVersion = async (appId, options) => {
106671
+ try {
106672
+ const { data } = await this.httpClient.request(
106673
+ promoteAppVersionFromDraftToProduction({
106674
+ appId,
106675
+ createNewMajor: options.createNewMajor,
106676
+ latestMajor: options.latestMajor,
106677
+ notes: options.notes
106678
+ })
106679
+ );
106680
+ const { fullVersion } = promoteAppVersionFromDraftToProductionSchema.parse(data);
106681
+ return { releasedVersion: fullVersion };
106682
+ } catch (cause) {
106683
+ throw new CliError({
106684
+ cause,
106685
+ code: CliErrorCode.FailedToReleaseDraftVersion()
106686
+ });
106687
+ }
106688
+ };
106689
+ release = async (appId, componentOverrideId, options) => {
106690
+ try {
106691
+ const { comments, createMinorVersion } = options;
106692
+ const { data } = await this.httpClient.request(
106693
+ release({
106694
+ appId,
106695
+ componentOverrideId,
106696
+ createMinorVersion,
106697
+ notes: comments
106698
+ })
106699
+ );
106700
+ return releaseArm2Schema.parse(data).releaseBaseUrl;
106701
+ } catch (e) {
106702
+ throw new CliError({
106703
+ cause: e,
106704
+ code: CliErrorCode.FailedToReleaseHeadlessProject()
106705
+ });
106706
+ }
106707
+ };
106708
+ };
106709
+
106710
+ // ../arm-client/src/useARMClient.ts
106711
+ function useARMClient() {
106712
+ const httpClient = useHttpClient({ type: "backoffice" });
106713
+ const client = (0, import_react.useMemo)(() => new ARMClient(httpClient), [httpClient]);
106714
+ return usePanoramaMethodLogger(client);
106223
106715
  }
106224
106716
 
106225
- // ../cli-astro-commands/src/components/DevCommand/DevCenterUpdater.tsx
106717
+ // ../arm-client/src/index.ts
106226
106718
  init_esm_shims();
106227
- var import_react5 = __toESM(require_react(), 1);
106228
- import { isDeepStrictEqual } from "node:util";
106229
- var import_variant3 = __toESM(require_lib(), 1);
106230
106719
 
106231
- // ../cli-astro-commands/src/files/app.config.ts
106720
+ // ../cli-astro-commands/src/site/SiteProvider.tsx
106232
106721
  init_esm_shims();
106722
+ var import_react13 = __toESM(require_react(), 1);
106723
+ var import_variant10 = __toESM(require_lib(), 1);
106233
106724
 
106234
106725
  // ../cli-app-definitions/src/index.ts
106235
106726
  init_esm_shims();
106236
- var import_variant = __toESM(require_lib(), 1);
106727
+ var import_variant2 = __toESM(require_lib(), 1);
106237
106728
  import { join } from "node:path";
106238
106729
  var import_monitoring_buildtime = __toESM(require_build(), 1);
106239
106730
  var GIT_IGNORED_DIR = ".wix";
@@ -106299,6 +106790,7 @@ function getAppConfigPath(projectFolder) {
106299
106790
  var dashboardSidebarCategoryConfig = external_exports.object({
106300
106791
  id: external_exports.string(),
106301
106792
  label: external_exports.string(),
106793
+ hostingPlatform: external_exports.string().optional(),
106302
106794
  priority: external_exports.number().int().optional()
106303
106795
  });
106304
106796
  var dashboardConfigSchema = external_exports.object({
@@ -106393,6 +106885,7 @@ var dashboardPagePublicConfigSchema = external_exports.object({
106393
106885
  sidebar: sidebarConfigSchema.optional()
106394
106886
  }).strict();
106395
106887
  var dashboardPageConfigSchema = dashboardPagePublicConfigSchema.extend({
106888
+ hostingPlatform: external_exports.string().optional(),
106396
106889
  requiredPermission: external_exports.string().optional(),
106397
106890
  sentryDSN: external_exports.string().optional(),
106398
106891
  experiments: external_exports.object({
@@ -106418,6 +106911,7 @@ var dashboardModalPublicConfigSchema = external_exports.object({
106418
106911
  height: external_exports.number().optional().describe("Initial height of the modal while loading, in pixels.")
106419
106912
  }).strict();
106420
106913
  var dashboardModalConfigSchema = dashboardModalPublicConfigSchema.extend({
106914
+ hostingPlatform: external_exports.string().optional(),
106421
106915
  requiredPermission: external_exports.string().optional(),
106422
106916
  sentryDSN: external_exports.string().optional(),
106423
106917
  metaData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
@@ -106437,6 +106931,7 @@ var dashboardPluginPublicConfigSchema = external_exports.object({
106437
106931
  height: external_exports.number().optional().describe("Initial height of the plugin while loading, in pixels.")
106438
106932
  }).strict();
106439
106933
  var dashboardPluginConfigSchema = dashboardPluginPublicConfigSchema.extend({
106934
+ hostingPlatform: external_exports.string().optional(),
106440
106935
  requiredPermission: external_exports.string().optional(),
106441
106936
  sentryDSN: external_exports.string().optional()
106442
106937
  }).strict();
@@ -106487,6 +106982,7 @@ var dashboardMenuPluginPublicConfigSchema = external_exports.object({
106487
106982
  action: actionSchema
106488
106983
  }).strict();
106489
106984
  var dashboardMenuPluginConfigSchema = dashboardMenuPluginPublicConfigSchema.extend({
106985
+ hostingPlatform: external_exports.string().optional(),
106490
106986
  sentryDSN: external_exports.string().optional(),
106491
106987
  requiredPermission: external_exports.string().optional()
106492
106988
  }).strict();
@@ -106512,7 +107008,7 @@ var embeddedScriptConfigSchema = external_exports.object({
106512
107008
  "An enum indicating where in the page's DOM the HTML code will be injected."
106513
107009
  )
106514
107010
  }).strict();
106515
- var PlatformType = (0, import_variant.variant)({
107011
+ var PlatformType = (0, import_variant2.variant)({
106516
107012
  Site: {},
106517
107013
  Editor: {},
106518
107014
  Dashboard: {},
@@ -106776,7 +107272,237 @@ var siteComponentPanelConfigSchema = external_exports.object({
106776
107272
  panelMode: external_exports.enum([PanelMode.overlay]).optional()
106777
107273
  }).strict();
106778
107274
 
107275
+ // ../site-list-client/src/index.ts
107276
+ init_esm_shims();
107277
+
107278
+ // ../site-list-client/src/site-list-client.ts
107279
+ init_esm_shims();
107280
+
107281
+ // ../../node_modules/@wix/ambassador-site-list-v2-site/build/es/http.impl.js
107282
+ init_esm_shims();
107283
+ var _querySitesRequest = {};
107284
+ var _querySitesResponse = { sites: "_site" };
107285
+ var _site = {
107286
+ createdDate: "google.protobuf.Timestamp",
107287
+ updatedDate: "google.protobuf.Timestamp",
107288
+ trashedDate: "google.protobuf.Timestamp"
107289
+ };
107290
+ function resolveComWixpressSitelistApiSiteListServiceV2Url(opts) {
107291
+ var domainToMappings = {
107292
+ "www._base_domain_": [
107293
+ {
107294
+ srcPath: "/_api/sites-list",
107295
+ destPath: "/api"
107296
+ },
107297
+ {
107298
+ srcPath: "/_api/sites-list/v2/sites",
107299
+ destPath: "/v2/sites"
107300
+ }
107301
+ ],
107302
+ "feedback._base_domain_": [
107303
+ {
107304
+ srcPath: "/_api/sites-list",
107305
+ destPath: "/api"
107306
+ }
107307
+ ],
107308
+ "manage._base_domain_": [
107309
+ {
107310
+ srcPath: "/_api/sites-list",
107311
+ destPath: "/api"
107312
+ },
107313
+ {
107314
+ srcPath: "/_api/sites-list/v2/sites",
107315
+ destPath: "/v2/sites"
107316
+ },
107317
+ {
107318
+ srcPath: "/_api/sites-list-data",
107319
+ destPath: "/api/sites-list-data"
107320
+ }
107321
+ ],
107322
+ "www.wixapis.com": [
107323
+ {
107324
+ srcPath: "/site-list/v2/sites",
107325
+ destPath: "/v2/sites"
107326
+ }
107327
+ ],
107328
+ "api._api_base_domain_": [
107329
+ {
107330
+ srcPath: "/sites-list",
107331
+ destPath: ""
107332
+ }
107333
+ ],
107334
+ "bo._base_domain_": [
107335
+ {
107336
+ srcPath: "/_api/sites-list/v2/sites",
107337
+ destPath: "/v2/sites"
107338
+ }
107339
+ ],
107340
+ "wixbo.ai": [
107341
+ {
107342
+ srcPath: "/_api/sites-list/v2/sites",
107343
+ destPath: "/v2/sites"
107344
+ }
107345
+ ],
107346
+ "wix-bo.com": [
107347
+ {
107348
+ srcPath: "/_api/sites-list/v2/sites",
107349
+ destPath: "/v2/sites"
107350
+ }
107351
+ ],
107352
+ "dev._base_domain_": [
107353
+ {
107354
+ srcPath: "/_api/sites-list/v2/sites",
107355
+ destPath: "/v2/sites"
107356
+ }
107357
+ ],
107358
+ "editor._base_domain_": [
107359
+ {
107360
+ srcPath: "/_api/sites-list/v2/sites",
107361
+ destPath: "/v2/sites"
107362
+ }
107363
+ ],
107364
+ "blocks._base_domain_": [
107365
+ {
107366
+ srcPath: "/_api/sites-list/v2/sites",
107367
+ destPath: "/v2/sites"
107368
+ }
107369
+ ],
107370
+ "create.editorx": [
107371
+ {
107372
+ srcPath: "/_api/sites-list/v2/sites",
107373
+ destPath: "/v2/sites"
107374
+ }
107375
+ ],
107376
+ "online.codux.com": [
107377
+ {
107378
+ srcPath: "/_api/sites-list",
107379
+ destPath: ""
107380
+ },
107381
+ {
107382
+ srcPath: "/_api/sites-list/v2/sites",
107383
+ destPath: "/v2/sites"
107384
+ }
107385
+ ],
107386
+ "*.dev.wix-code.com": [
107387
+ {
107388
+ srcPath: "/site-list/v2/sites",
107389
+ destPath: "/v2/sites"
107390
+ }
107391
+ ],
107392
+ "vibe._base_domain_": [
107393
+ {
107394
+ srcPath: "/_api/sites-list",
107395
+ destPath: ""
107396
+ }
107397
+ ]
107398
+ };
107399
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
107400
+ }
107401
+ function querySites(payload) {
107402
+ var _a = serializer(_querySitesRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
107403
+ var fromRes = serializer(_querySitesResponse, { _site }).fromJSON;
107404
+ function __querySites(_a2) {
107405
+ var host = _a2.host;
107406
+ var serializedData = toReq(payload);
107407
+ var metadata = {
107408
+ entityFqdn: "wix.site_list.v2.site",
107409
+ method: "POST",
107410
+ methodFqn: "com.wixpress.sitelist.api.SiteListServiceV2.QuerySites",
107411
+ migrationOptions: {
107412
+ optInTransformResponse: true
107413
+ },
107414
+ url: resolveComWixpressSitelistApiSiteListServiceV2Url({
107415
+ protoPath: "/v2/sites/query",
107416
+ data: serializedData,
107417
+ host
107418
+ }),
107419
+ data: serializedData,
107420
+ transformResponse: fromRes
107421
+ };
107422
+ return metadata;
107423
+ }
107424
+ __querySites.fromReq = fromReq;
107425
+ __querySites.__isAmbassador = true;
107426
+ return __querySites;
107427
+ }
107428
+
107429
+ // ../site-list-client/src/schemas.ts
107430
+ init_esm_shims();
107431
+ var siteSchema = external_exports.object({
107432
+ id: external_exports.string(),
107433
+ displayName: external_exports.string(),
107434
+ viewUrl: external_exports.union([external_exports.string().url(), external_exports.literal("")]).optional()
107435
+ });
107436
+ var querySitesSchema = external_exports.object({
107437
+ sites: external_exports.array(siteSchema)
107438
+ });
107439
+
107440
+ // ../site-list-client/src/site-list-client.ts
107441
+ var SiteListClient = class {
107442
+ constructor(httpClient) {
107443
+ this.httpClient = httpClient;
107444
+ const { minRetryTimeout } = getTestOverrides();
107445
+ this.retryOptions = {
107446
+ retries: 3,
107447
+ minTimeout: minRetryTimeout,
107448
+ maxTimeout: 3 * 1e3
107449
+ };
107450
+ }
107451
+ retryOptions;
107452
+ querySites = async (opts = {}) => {
107453
+ try {
107454
+ const { data } = await pRetry(
107455
+ () => this.httpClient.request(querySites(opts)),
107456
+ this.retryOptions
107457
+ );
107458
+ return querySitesSchema.parse(data).sites;
107459
+ } catch (e) {
107460
+ throw new CliError({
107461
+ code: CliErrorCode.FailedToQuerySites(),
107462
+ cause: e,
107463
+ info: { ...opts }
107464
+ });
107465
+ }
107466
+ };
107467
+ getSite = async (id, inclHeadless) => {
107468
+ const queryPayload = {
107469
+ query: {
107470
+ filter: {
107471
+ id: { $in: [id] },
107472
+ ...inclHeadless ? {
107473
+ namespace: { $in: ["WIX", "HEADLESS"] }
107474
+ } : {}
107475
+ }
107476
+ }
107477
+ };
107478
+ try {
107479
+ const { data } = await pRetry(
107480
+ () => this.httpClient.request(querySites(queryPayload)),
107481
+ this.retryOptions
107482
+ );
107483
+ const { sites } = querySitesSchema.parse(data);
107484
+ return sites.at(0) ?? null;
107485
+ } catch (e) {
107486
+ throw new CliError({
107487
+ code: CliErrorCode.FailedToGetSite(),
107488
+ cause: e,
107489
+ info: { id }
107490
+ });
107491
+ }
107492
+ };
107493
+ };
107494
+
107495
+ // ../site-list-client/src/useSiteListClient.ts
107496
+ init_esm_shims();
107497
+ var import_react2 = __toESM(require_react(), 1);
107498
+ function useSiteListClient() {
107499
+ const httpClient = useHttpClient({ type: "backoffice" });
107500
+ const client = (0, import_react2.useMemo)(() => new SiteListClient(httpClient), [httpClient]);
107501
+ return usePanoramaMethodLogger(client);
107502
+ }
107503
+
106779
107504
  // ../cli-astro-commands/src/files/app.config.ts
107505
+ init_esm_shims();
106780
107506
  async function readAppConfig(projectFolder, writeDebugLog) {
106781
107507
  const configPath = getAppConfigPath(projectFolder);
106782
107508
  const isConfigExist = await pathExists(configPath);
@@ -106804,298 +107530,744 @@ async function saveAppConfig(projectFolder, config) {
106804
107530
  await writeJson(getAppConfigPath(projectFolder), newConfig);
106805
107531
  }
106806
107532
 
106807
- // ../cli-astro-commands/src/components/DevCommand/TunnelingConsent.tsx
107533
+ // ../cli-astro-commands/src/site/ResolveSite.tsx
106808
107534
  init_esm_shims();
106809
- var import_react3 = __toESM(require_react(), 1);
106810
- var import_variant2 = __toESM(require_lib(), 1);
106811
- var TunnelingConsent = ({ required, children }) => {
106812
- const exit = useExit();
106813
- const [approved, setApproved] = (0, import_react3.useState)();
106814
- const { status } = useAsync(async () => {
106815
- const config = await readUserConfig();
106816
- if (config.tunneling) {
106817
- setApproved(true);
106818
- }
106819
- return config;
106820
- }, []);
106821
- if (!required || approved) {
106822
- return children;
106823
- }
106824
- return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, (0, import_variant2.match)(status, {
106825
- Success: () => /* @__PURE__ */ import_react3.default.createElement(
106826
- ConfirmInput,
106827
- {
106828
- label: "To proceed, we'll set up a secure tunnel from your machine for development purposes",
106829
- initialValue: true,
106830
- onSubmit: async (approved2) => {
106831
- setApproved(approved2);
106832
- await updateUserConfig({ tunneling: approved2 });
106833
- if (!approved2) {
106834
- exit();
106835
- }
106836
- }
106837
- }
106838
- ),
106839
- Error: () => null,
106840
- Loading: () => null
106841
- }), approved === false && /* @__PURE__ */ import_react3.default.createElement(Text, { skin: "error" }, "Operation aborted. Tunneling is necessary to run your application."));
106842
- };
107535
+ var import_react11 = __toESM(require_react(), 1);
107536
+ var import_variant8 = __toESM(require_lib(), 1);
107537
+
107538
+ // ../cli-site-selector/src/index.ts
107539
+ init_esm_shims();
107540
+
107541
+ // ../cli-site-selector/src/SiteSelector.tsx
107542
+ init_esm_shims();
107543
+ var import_react10 = __toESM(require_react(), 1);
107544
+ var import_variant7 = __toESM(require_lib(), 1);
106843
107545
 
106844
- // ../cli-astro-commands/src/components/DevCommand/hooks/useFetchAppManifest.ts
107546
+ // ../cli-site-selector/src/SiteTypeSelect.tsx
106845
107547
  init_esm_shims();
106846
107548
  var import_react4 = __toESM(require_react(), 1);
107549
+ var import_variant3 = __toESM(require_lib(), 1);
106847
107550
 
106848
- // ../cli-astro-commands/src/components/DevCommand/utils/isTunnelRequired.ts
107551
+ // ../cli-site-selector/src/bi.ts
106849
107552
  init_esm_shims();
106850
- function isTunnelRequired(appManifest) {
106851
- for (const extension of appManifest.components) {
106852
- const knownAppManifest = parseKnownExtensionManifest(extension);
106853
- if (knownAppManifest != null && knownAppManifest.compType === ComponentType.WEBHOOK) {
106854
- return !URL.canParse(knownAppManifest.compData.webhook.callbackUrl);
107553
+ var import_react3 = __toESM(require_react(), 1);
107554
+ function siteSelectorBiEvents(biLogger) {
107555
+ return {
107556
+ cliAction: ({
107557
+ question,
107558
+ action,
107559
+ key,
107560
+ additionalInfo
107561
+ }) => {
107562
+ void biLogger.report(
107563
+ wixCliAction({
107564
+ question,
107565
+ action,
107566
+ key,
107567
+ additionalInfo: JSON.stringify(additionalInfo)
107568
+ })
107569
+ );
107570
+ },
107571
+ cliFlowStepAnswered: ({
107572
+ question,
107573
+ answer,
107574
+ additionalInfo
107575
+ }) => {
107576
+ void biLogger.report(
107577
+ wixCliAppFlowStepsAnswers({
107578
+ question,
107579
+ answer,
107580
+ additionalInfo: JSON.stringify(additionalInfo)
107581
+ })
107582
+ );
106855
107583
  }
106856
- }
106857
- return false;
107584
+ };
106858
107585
  }
106859
- function parseKnownExtensionManifest(extensionManifest) {
106860
- const appManifestResult = looseComponentSchema.safeParse(extensionManifest);
106861
- if (appManifestResult.error) {
106862
- return null;
106863
- }
106864
- return appManifestResult.data;
107586
+ function useSiteSelectorBi() {
107587
+ const biLogger = useBiLogger();
107588
+ return (0, import_react3.useMemo)(() => siteSelectorBiEvents(biLogger), [biLogger]);
106865
107589
  }
106866
107590
 
106867
- // ../cli-astro-commands/src/components/DevCommand/hooks/useFetchAppManifest.ts
106868
- function useFetchAppManifest() {
106869
- const http = useHttpClient({ type: "standalone" });
106870
- return (0, import_react4.useCallback)(
106871
- async (serverLocalUrl, devMetadata, baseUrl, tunnelUrl) => {
106872
- const url = new URL("/_wix/app-manifest.json", serverLocalUrl);
106873
- const { data: text } = await http.get(url.toString(), {
106874
- responseType: "text",
106875
- transitional: {
106876
- silentJSONParsing: true,
106877
- forcedJSONParsing: false,
106878
- clarifyTimeoutError: false
106879
- },
106880
- disableWixHeaders: true
107591
+ // ../cli-site-selector/src/SiteTypeSelect.tsx
107592
+ var SiteTypeSelect = ({ onSubmit, onError, sites }) => {
107593
+ const bi = useSiteSelectorBi();
107594
+ const { t } = useTranslation();
107595
+ const { getDevSitesCount, getDevSitesLimit } = useDevCenterClient();
107596
+ const { status } = useAsync(
107597
+ () => Promise.all([getDevSitesCount(), getDevSitesLimit()]),
107598
+ [],
107599
+ { onError }
107600
+ );
107601
+ const handleSubmit = (option) => {
107602
+ void bi.cliFlowStepAnswered({
107603
+ question: t("site_type_select.label"),
107604
+ answer: option.title
107605
+ });
107606
+ onSubmit(option.value);
107607
+ };
107608
+ return (0, import_variant3.match)(status, {
107609
+ Error: () => null,
107610
+ Loading: () => /* @__PURE__ */ import_react4.default.createElement(Spinner, { text: t("general.loading") }),
107611
+ Success: ({ result: [devSitesCount, devSitesLimit] }) => {
107612
+ const isDevSitesLimitReached = devSitesCount >= devSitesLimit;
107613
+ const userHasNoSites = sites.length === 0;
107614
+ return /* @__PURE__ */ import_react4.default.createElement(
107615
+ SelectInput,
107616
+ {
107617
+ label: t("site_type_select.label"),
107618
+ options: [
107619
+ {
107620
+ availability: userHasNoSites ? SelectOptionAvailability.Disabled({
107621
+ reason: t("site_type_select.no_sites")
107622
+ }) : SelectOptionAvailability.Enabled(),
107623
+ title: t("site_type_select.pick_existing_site"),
107624
+ value: "select-existing-site"
107625
+ },
107626
+ {
107627
+ title: t("site_type_select.create_new_dev_site"),
107628
+ value: "create-dev-site",
107629
+ availability: isDevSitesLimitReached ? SelectOptionAvailability.Disabled({
107630
+ reason: t("site_type_select.create_new_dev_site.disabled", {
107631
+ limit: devSitesLimit
107632
+ })
107633
+ }) : SelectOptionAvailability.Enabled()
107634
+ }
107635
+ ],
107636
+ onSubmit: handleSubmit
107637
+ }
107638
+ );
107639
+ }
107640
+ });
107641
+ };
107642
+
107643
+ // ../cli-site-selector/src/CreateDevSite.tsx
107644
+ init_esm_shims();
107645
+ var import_react7 = __toESM(require_react(), 1);
107646
+ var import_variant5 = __toESM(require_lib(), 1);
107647
+
107648
+ // ../cli-site-selector/src/WaitForAppToBeInstalled.tsx
107649
+ init_esm_shims();
107650
+ var import_react6 = __toESM(require_react(), 1);
107651
+ var import_variant4 = __toESM(require_lib(), 1);
107652
+
107653
+ // ../cli-site-selector/src/OpenBrowser.tsx
107654
+ init_esm_shims();
107655
+ var import_react5 = __toESM(require_react(), 1);
107656
+ var OpenBrowser = ({ siteId, appId }) => {
107657
+ const { t } = useTranslation();
107658
+ const bi = useSiteSelectorBi();
107659
+ use_input_default(async (input, key) => {
107660
+ if (key.return) {
107661
+ bi.cliAction({
107662
+ question: t("install_app_on_site.warning.instructions"),
107663
+ key: "enter",
107664
+ action: "install_app_on_site"
106881
107665
  });
106882
- if (devMetadata != null) {
106883
- const placeholders = /* @__PURE__ */ new Map();
106884
- placeholders.set(devMetadata.staticsUrlPlaceholder, baseUrl);
106885
- placeholders.set(devMetadata.serverUrlPlaceholder, tunnelUrl);
106886
- return {
106887
- manifest: parseLooseAppManifest(text, placeholders),
106888
- isTunnelRequired: text.includes(devMetadata.serverUrlPlaceholder)
106889
- };
107666
+ await openBrowser(
107667
+ `https://manage.wix.com/installer/install?metaSiteId=${siteId}&appId=${appId}&platform=cli&version=latest`
107668
+ );
107669
+ }
107670
+ });
107671
+ return /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, /* @__PURE__ */ import_react5.default.createElement(Trans, { i18nKey: "install_app_on_site.warning" }), /* @__PURE__ */ import_react5.default.createElement(
107672
+ Trans,
107673
+ {
107674
+ i18nKey: "install_app_on_site.warning.instructions",
107675
+ components: [/* @__PURE__ */ import_react5.default.createElement(Key, { value: "Enter" })]
107676
+ }
107677
+ ));
107678
+ };
107679
+
107680
+ // ../cli-site-selector/src/WaitForAppToBeInstalled.tsx
107681
+ var AppInstallData = (0, import_variant4.variant)({
107682
+ Success: {},
107683
+ Canceled: {}
107684
+ });
107685
+ function isAbortError(error) {
107686
+ return error && typeof error === "object" && "name" in error && error.name === "AbortError";
107687
+ }
107688
+ var WaitForAppToBeInstalled = ({
107689
+ appId,
107690
+ site,
107691
+ onSubmit,
107692
+ onError
107693
+ }) => {
107694
+ const { isAppInstalled } = useDevCenterClient();
107695
+ const { status } = useAsync(
107696
+ async ({ signal }) => {
107697
+ const { pollInterval } = getTestOverrides();
107698
+ try {
107699
+ await pWaitFor(() => isAppInstalled(appId), {
107700
+ // Polling interval is set to 6.5 seconds to avoid rate limiting (429)
107701
+ interval: pollInterval ?? 6500,
107702
+ timeout: {
107703
+ milliseconds: 60 * 1e3 * 2,
107704
+ signal
107705
+ }
107706
+ });
107707
+ return AppInstallData.Success();
107708
+ } catch (error) {
107709
+ if (error instanceof TimeoutError) {
107710
+ throw new CliError({
107711
+ code: CliErrorCode.SiteSelectorTimedout(),
107712
+ cause: error
107713
+ });
107714
+ }
107715
+ if (isAbortError(error)) {
107716
+ return AppInstallData.Canceled();
107717
+ }
107718
+ throw error;
106890
107719
  }
106891
- const manifestV1 = parseLooseAppManifest(text);
106892
- return {
106893
- manifest: manifestV1,
106894
- isTunnelRequired: isTunnelRequired(manifestV1)
106895
- };
106896
107720
  },
106897
- [http]
107721
+ [],
107722
+ {
107723
+ onError,
107724
+ onSuccess: (result) => {
107725
+ if ((0, import_variant4.isType)(result, AppInstallData.Success)) {
107726
+ onSubmit();
107727
+ }
107728
+ }
107729
+ }
106898
107730
  );
106899
- }
107731
+ return (0, import_variant4.match)(status, {
107732
+ Error: () => null,
107733
+ Loading: () => /* @__PURE__ */ import_react6.default.createElement(OpenBrowser, { siteId: site.id, appId }),
107734
+ Success: () => /* @__PURE__ */ import_react6.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react6.default.createElement(Badge, { skin: "success" }, /* @__PURE__ */ import_react6.default.createElement(Trans, { i18nKey: "general.success" })), " ", /* @__PURE__ */ import_react6.default.createElement(Trans, { i18nKey: "install_app_on_site.finished_successfully" }))
107735
+ });
107736
+ };
106900
107737
 
106901
- // ../cli-astro-commands/src/components/DevCommand/DevCenterUpdater.tsx
106902
- var DevCenterUpdateResult = (0, import_variant3.variant)({
106903
- Changed: (0, import_variant3.fields)(),
106904
- Unchanged: {}
106905
- });
106906
- var DevCenterUpdater = ({ serverLocalUrl, serverExposedUrl, devMetadata }) => {
106907
- const [devArmTag, setDevArmTag] = (0, import_react5.useState)("");
106908
- const [manifest, setManifest] = (0, import_react5.useState)(null);
106909
- const writeToDebugLog = useDebugLog();
106910
- const {
106911
- model: {
106912
- config: { siteId, appId },
106913
- projectFolder
106914
- }
106915
- } = useProjectModel();
106916
- const logger = (0, import_react5.useMemo)(() => createAstroLogger(), []);
106917
- const { updateManifest } = useUpdateManifest();
106918
- const arm = useARMClient();
106919
- const updateDeploymentTopology = useUpdateDeploymentTopology();
106920
- const openTunnel = useTunnel();
106921
- const tunnelUrl = (0, import_react5.useRef)();
106922
- const [tunnelRequired, setTunnelRequired] = (0, import_react5.useState)(false);
106923
- const fetchAppManifest = useFetchAppManifest();
106924
- const updateDevCenter = (0, import_react5.useCallback)(async () => {
106925
- const baseUrl = serverExposedUrl ?? serverLocalUrl;
106926
- const { manifest: latestManifest, isTunnelRequired: isTunnelRequired2 } = await fetchAppManifest(
106927
- serverLocalUrl,
106928
- devMetadata,
106929
- baseUrl,
106930
- tunnelUrl.current ?? baseUrl
106931
- );
106932
- if (isDeepStrictEqual(manifest, latestManifest)) {
106933
- return DevCenterUpdateResult.Unchanged();
107738
+ // ../cli-site-selector/src/CreateDevSite.tsx
107739
+ var CreateDevSite = ({
107740
+ status,
107741
+ appId,
107742
+ onSubmit,
107743
+ onError
107744
+ }) => {
107745
+ const { t } = useTranslation();
107746
+ return (0, import_variant5.match)(status, {
107747
+ NotRequested: () => null,
107748
+ Error: () => null,
107749
+ Loading: () => /* @__PURE__ */ import_react7.default.createElement(Spinner, { text: t("create_dev_site.loading") }),
107750
+ Success: ({ result }) => /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement(
107751
+ Trans,
107752
+ {
107753
+ i18nKey: "create_dev_site.success",
107754
+ components: [/* @__PURE__ */ import_react7.default.createElement(Text, { skin: "success", bold: true })],
107755
+ values: { name: result.displayName }
107756
+ }
107757
+ ), /* @__PURE__ */ import_react7.default.createElement(SiteAuthProvider, { siteId: result.id }, /* @__PURE__ */ import_react7.default.createElement(
107758
+ WaitForAppToBeInstalled,
107759
+ {
107760
+ appId,
107761
+ site: result,
107762
+ onSubmit: () => onSubmit(result),
107763
+ onError
107764
+ }
107765
+ )))
107766
+ });
107767
+ };
107768
+
107769
+ // ../cli-site-selector/src/SelectExistingSite.tsx
107770
+ init_esm_shims();
107771
+ var import_react9 = __toESM(require_react(), 1);
107772
+ var import_variant6 = __toESM(require_lib(), 1);
107773
+
107774
+ // ../cli-site-selector/src/SiteListSelect.tsx
107775
+ init_esm_shims();
107776
+ var import_react8 = __toESM(require_react(), 1);
107777
+ var SiteListSelect = ({ onSubmit, sites }) => {
107778
+ const { t } = useTranslation();
107779
+ const bi = useSiteSelectorBi();
107780
+ const handleSubmit = (0, import_react8.useCallback)(
107781
+ (option) => {
107782
+ bi.cliFlowStepAnswered({
107783
+ question: t("site_list_select.label"),
107784
+ answer: option.title
107785
+ });
107786
+ onSubmit(option.value);
107787
+ },
107788
+ [bi, onSubmit, t]
107789
+ );
107790
+ return /* @__PURE__ */ import_react8.default.createElement(
107791
+ SelectInput,
107792
+ {
107793
+ label: t("site_list_select.label"),
107794
+ options: sites.map((site) => ({
107795
+ key: site.id,
107796
+ title: site.displayName,
107797
+ description: site.viewUrl,
107798
+ value: site
107799
+ })),
107800
+ onSubmit: handleSubmit
106934
107801
  }
106935
- if (!serverExposedUrl && !tunnelUrl.current && isTunnelRequired2) {
106936
- const config = await readUserConfig();
106937
- if (!config.tunneling) {
106938
- setTunnelRequired(true);
106939
- return DevCenterUpdateResult.Unchanged();
107802
+ );
107803
+ };
107804
+
107805
+ // ../cli-site-selector/src/SelectExistingSite.tsx
107806
+ var CheckAppInstalledOnSite = ({ appId, site, onSubmit, onError }) => {
107807
+ const { t } = useTranslation();
107808
+ const { isAppInstalled } = useDevCenterClient();
107809
+ const { status } = useAsync(async () => isAppInstalled(appId), [], {
107810
+ onError,
107811
+ onSuccess: (isInstalled) => {
107812
+ if (isInstalled) {
107813
+ onSubmit(site);
106940
107814
  }
106941
- const serverLocalPort = parseInt(new URL(serverLocalUrl).port, 10);
106942
- const tunnel = await openTunnel(serverLocalPort);
106943
- tunnelUrl.current = tunnel.url;
106944
- return DevCenterUpdateResult.Unchanged();
106945
107815
  }
106946
- const appConfig = await readAppConfig(projectFolder);
106947
- let updatedDevArmTag = appConfig?.devArmTag;
106948
- if (!updatedDevArmTag) {
106949
- updatedDevArmTag = await arm.createLooseAppRelease(
106950
- updateManifest(latestManifest, baseUrl, tunnelUrl.current),
106951
- appId
106952
- );
106953
- } else {
106954
- const updateState = await arm.updateLooseAppRelease(
106955
- updateManifest(latestManifest, baseUrl, tunnelUrl.current),
106956
- updatedDevArmTag
107816
+ });
107817
+ return (0, import_variant6.match)(status, {
107818
+ Error: () => null,
107819
+ Loading: () => /* @__PURE__ */ import_react9.default.createElement(Spinner, { text: t("general.loading") }),
107820
+ Success: ({ result: isInstalled }) => {
107821
+ if (isInstalled) {
107822
+ return null;
107823
+ }
107824
+ return /* @__PURE__ */ import_react9.default.createElement(
107825
+ WaitForAppToBeInstalled,
107826
+ {
107827
+ appId,
107828
+ site,
107829
+ onSubmit: () => onSubmit(site),
107830
+ onError
107831
+ }
106957
107832
  );
106958
- if (!(0, import_variant3.isType)(updateState, "TagUpdated")) {
106959
- updatedDevArmTag = await arm.createLooseAppRelease(
106960
- updateManifest(latestManifest, baseUrl, tunnelUrl.current),
106961
- appId
106962
- );
107833
+ }
107834
+ });
107835
+ };
107836
+ var SelectExistingSite = ({
107837
+ sites,
107838
+ appId,
107839
+ onSubmit,
107840
+ onError
107841
+ }) => {
107842
+ const [siteToInstallAppOn, setSiteToInstallAppOn] = (0, import_react9.useState)(
107843
+ null
107844
+ );
107845
+ return /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement(
107846
+ SiteListSelect,
107847
+ {
107848
+ onSubmit: (site) => setSiteToInstallAppOn(site),
107849
+ sites
107850
+ }
107851
+ ), siteToInstallAppOn && /* @__PURE__ */ import_react9.default.createElement(SiteAuthProvider, { siteId: siteToInstallAppOn.id }, /* @__PURE__ */ import_react9.default.createElement(
107852
+ CheckAppInstalledOnSite,
107853
+ {
107854
+ appId,
107855
+ site: siteToInstallAppOn,
107856
+ onSubmit: () => onSubmit(siteToInstallAppOn),
107857
+ onError
107858
+ }
107859
+ )));
107860
+ };
107861
+
107862
+ // ../cli-site-selector/src/messages.json
107863
+ var messages_default = {
107864
+ "general.loading": "Loading...",
107865
+ "general.success": "Success",
107866
+ "site_type_select.label": "Select Development Site",
107867
+ "site_type_select.create_new_dev_site": "Create a new Development Site",
107868
+ "site_type_select.create_new_dev_site.disabled": "You have reached the maximum number of {limit} Development Sites",
107869
+ "site_type_select.pick_existing_site": "Pick an existing site",
107870
+ "site_type_select.no_sites": "No sites found",
107871
+ "create_dev_site.loading": "Creating your new Development Site...",
107872
+ "create_dev_site.success": "Development Site <0>{name}</0> created successfully! \u{1F680}",
107873
+ "site_list_select.label": "Select Site",
107874
+ "install_app_on_site.warning": "Your new application needs to be installed on the selected Development Site",
107875
+ "install_app_on_site.warning.instructions": "Press <0/> to install the application in your browser",
107876
+ "install_app_on_site.finished_successfully": "App installed on Development Site."
107877
+ };
107878
+
107879
+ // ../cli-site-selector/src/SiteSelector.tsx
107880
+ var SiteSelector = ({
107881
+ appId,
107882
+ biLogger,
107883
+ onSubmit,
107884
+ onError
107885
+ }) => {
107886
+ const [siteType, setSiteType] = (0, import_react10.useState)(null);
107887
+ const { createDevSite } = useDevCenterClient();
107888
+ const siteListClient = useSiteListClient();
107889
+ const { status } = useAsync(
107890
+ () => siteListClient.querySites({
107891
+ query: {
107892
+ cursorPaging: {
107893
+ limit: 100
107894
+ }
106963
107895
  }
107896
+ }),
107897
+ [],
107898
+ {
107899
+ onError
106964
107900
  }
106965
- if (updatedDevArmTag !== appConfig?.devArmTag) {
106966
- await saveAppConfig(projectFolder, { devArmTag: updatedDevArmTag });
107901
+ );
107902
+ const createSite = useAsyncCallback(() => createDevSite(), {
107903
+ onError
107904
+ });
107905
+ function handleSelectSiteType(siteType2) {
107906
+ setSiteType(siteType2);
107907
+ if (siteType2 === "create-dev-site") {
107908
+ void createSite.execute();
106967
107909
  }
106968
- setManifest(latestManifest);
106969
- setDevArmTag(updatedDevArmTag);
106970
- await updateDeploymentTopology.execute({
106971
- serverUrl: baseUrl,
106972
- armTag: updatedDevArmTag,
106973
- environment: "development"
106974
- });
106975
- const armTagChanged = !!appConfig?.devArmTag && updatedDevArmTag !== appConfig.devArmTag;
106976
- return DevCenterUpdateResult.Changed({ armTagChanged });
106977
- }, [
106978
- fetchAppManifest,
106979
- updateManifest,
106980
- serverLocalUrl,
106981
- serverExposedUrl,
106982
- arm,
106983
- manifest,
106984
- projectFolder,
106985
- appId,
106986
- updateDeploymentTopology,
106987
- openTunnel,
106988
- devMetadata
106989
- ]);
106990
- const [timer, setTimer] = (0, import_react5.useState)(Date.now());
106991
- (0, import_react5.useEffect)(() => {
106992
- let disposed = false;
106993
- void updateDevCenter().then((result) => {
106994
- if ((0, import_variant3.isType)(result, "Changed")) {
106995
- logger.log(
106996
- "App Manifest updated. Refresh existing browser tabs to view the latest changes."
106997
- );
107910
+ }
107911
+ return /* @__PURE__ */ import_react10.default.createElement(BiProvider, { value: biLogger }, /* @__PURE__ */ import_react10.default.createElement(I18nProvider, { messages: messages_default }, (0, import_variant7.match)(status, {
107912
+ Error: () => null,
107913
+ Loading: () => /* @__PURE__ */ import_react10.default.createElement(Spinner, { text: /* @__PURE__ */ import_react10.default.createElement(Trans, { i18nKey: "general.loading" }) }),
107914
+ Success: ({ result: sites }) => /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement(
107915
+ SiteTypeSelect,
107916
+ {
107917
+ onSubmit: handleSelectSiteType,
107918
+ onError,
107919
+ sites
106998
107920
  }
106999
- }).catch((error) => {
107000
- logger.log("Failed to update App Manifest");
107001
- logger.log(`${error}`);
107002
- writeToDebugLog(error);
107003
- }).then(() => {
107004
- if (!disposed) {
107005
- setTimeout(() => setTimer(Date.now()), 1e3);
107921
+ ), siteType === "create-dev-site" && /* @__PURE__ */ import_react10.default.createElement(
107922
+ CreateDevSite,
107923
+ {
107924
+ status: createSite.status,
107925
+ appId,
107926
+ onSubmit,
107927
+ onError
107006
107928
  }
107007
- });
107008
- return () => {
107009
- disposed = true;
107010
- };
107011
- }, [timer]);
107012
- return /* @__PURE__ */ import_react5.default.createElement(Box_default, { rowGap: 1, marginY: 1, flexDirection: "column" }, /* @__PURE__ */ import_react5.default.createElement(TunnelingConsent, { required: tunnelRequired }, /* @__PURE__ */ import_react5.default.createElement(Text, null, "Open the preview on:"), /* @__PURE__ */ import_react5.default.createElement(Box_default, { paddingLeft: 2, flexDirection: "column" }, /* @__PURE__ */ import_react5.default.createElement(PlatformLink, { url: serverLocalUrl, label: "Site" }), devArmTag ? /* @__PURE__ */ import_react5.default.createElement(
107013
- PlatformLink,
107929
+ ), siteType === "select-existing-site" && /* @__PURE__ */ import_react10.default.createElement(
107930
+ SelectExistingSite,
107931
+ {
107932
+ sites,
107933
+ appId,
107934
+ onSubmit,
107935
+ onError
107936
+ }
107937
+ ))
107938
+ })));
107939
+ };
107940
+
107941
+ // ../cli-astro-commands/src/site/ResolveSite.tsx
107942
+ var ResolveSite = ({ state, onSubmit }) => {
107943
+ const exit = useExit();
107944
+ const { model } = useProjectModel();
107945
+ const biLogger = useBiLogger();
107946
+ return /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, (0, import_variant8.match)(state, {
107947
+ NotConfigured: (0, import_variant8.constant)(
107948
+ /* @__PURE__ */ import_react11.default.createElement(Alert, { type: "insight" }, "You don't have a Development Site currently configured")
107949
+ ),
107950
+ NotFound: ({ id }) => /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement(Alert, { type: "error" }, /* @__PURE__ */ import_react11.default.createElement(Text, null, "Your currently configured Development Site was not found (", id, ")")), /* @__PURE__ */ import_react11.default.createElement(Box_default, { flexDirection: "column" }, /* @__PURE__ */ import_react11.default.createElement(Text, null, "This may happen because the site was deleted or your access has been revoked."), /* @__PURE__ */ import_react11.default.createElement(Text, null, "Please select another Development Site to continue.")))
107951
+ }), /* @__PURE__ */ import_react11.default.createElement(
107952
+ SiteSelector,
107014
107953
  {
107015
- url: `https://manage.wix.com/dashboard/${siteId}?apps-override=${devArmTag}`,
107016
- label: "Dashboard"
107954
+ appId: model.config.appId,
107955
+ biLogger,
107956
+ onSubmit,
107957
+ onError: exit
107017
107958
  }
107018
- ) : /* @__PURE__ */ import_react5.default.createElement(Spinner, { text: "Preparing your dashboard..." }))));
107959
+ ));
107019
107960
  };
107020
107961
 
107021
- // ../cli-astro-commands/src/components/DevCommand/hooks/useFetchDevMetadata.ts
107962
+ // ../cli-astro-commands/src/site/context.ts
107022
107963
  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);
107027
- 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
- };
107038
- }
107039
- });
107964
+ var import_react12 = __toESM(require_react(), 1);
107965
+ var SiteContext = (0, import_react12.createContext)(null);
107966
+
107967
+ // ../cli-astro-commands/src/site/site-state.ts
107968
+ init_esm_shims();
107969
+ var import_variant9 = __toESM(require_lib(), 1);
107970
+ var SiteState = (0, import_variant9.variant)({
107971
+ NotConfigured: {},
107972
+ NotFound: (0, import_variant9.fields)(),
107973
+ Resolved: (0, import_variant9.fields)()
107974
+ });
107975
+
107976
+ // ../cli-astro-commands/src/site/resolve-configured-site.ts
107977
+ init_esm_shims();
107978
+ async function resolveConfiguredSite({
107979
+ siteListClient: { getSite },
107980
+ siteId
107981
+ }) {
107982
+ if (!siteId) {
107983
+ return SiteState.NotConfigured();
107984
+ }
107985
+ const site = await getSite(siteId, true);
107986
+ if (!site) {
107987
+ return SiteState.NotFound({ id: siteId });
107988
+ }
107989
+ return SiteState.Resolved({ site });
107040
107990
  }
107041
107991
 
107042
- // ../cli-astro-commands/src/components/DevCommand/DevCommand.tsx
107043
- var DevCommand = ({
107044
- port,
107045
- allowedHosts,
107046
- serverExposedUrl
107047
- }) => {
107992
+ // ../cli-astro-commands/src/site/SiteProvider.tsx
107993
+ var SiteProvider = ({ children }) => {
107994
+ const exit = useExit();
107048
107995
  const {
107049
- model: {
107050
- config: { siteId },
107051
- projectFolder
107052
- }
107996
+ model: { projectFolder, config }
107053
107997
  } = useProjectModel();
107054
- const logger = (0, import_react6.useMemo)(() => createAstroLogger(false), []);
107055
- const astroProcess = (0, import_react6.useRef)();
107056
- const fetchDevMetadataAction = useFetchDevMetadata();
107057
- useAsync(async () => {
107058
- const repoType = await getRepoType(projectFolder);
107059
- const packageManager = await createPackageManager(repoType);
107060
- const astro = runAstroDev({
107061
- packageManager,
107062
- projectFolder,
107063
- port,
107064
- allowedHosts
107998
+ const writeDebugLog = useDebugLog();
107999
+ const siteListClient = useSiteListClient();
108000
+ const { status, merge } = useAsync(async () => {
108001
+ return resolveConfiguredSite({
108002
+ siteListClient,
108003
+ siteId: config.projectType === "Site" ? config.siteId : (await readAppConfig(projectFolder, writeDebugLog))?.siteId
107065
108004
  });
107066
- astroProcess.current = astro;
107067
- astro.stdout?.once(EVENT_SERVER_ADDRESS, (address) => {
107068
- void fetchDevMetadataAction.execute(address);
107069
- });
107070
- astro.stdout?.on(EVENT_LINE, (line) => logger.log(line));
107071
- astro.stderr?.on(EVENT_LINE, (line) => logger.log(line));
107072
108005
  }, []);
107073
- (0, import_react6.useEffect)(() => {
107074
- return () => {
107075
- if (astroProcess.current?.pid) {
107076
- try {
107077
- astroProcess.current.kill("SIGTERM");
107078
- } catch {
107079
- }
108006
+ const setSite = (0, import_react13.useCallback)(
108007
+ async (site) => {
108008
+ try {
108009
+ await saveAppConfig(projectFolder, { siteId: site.id });
108010
+ merge({ result: SiteState.Resolved({ site }) });
108011
+ } catch (e) {
108012
+ throw new CliError({
108013
+ code: CliErrorCode.FailedToSaveDevelopmentSite({
108014
+ path: APP_CONFIG_PATH
108015
+ }),
108016
+ cause: e
108017
+ });
107080
108018
  }
107081
- };
107082
- }, []);
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..." }),
108019
+ },
108020
+ [merge, projectFolder]
108021
+ );
108022
+ const handleResolveSite = (0, import_react13.useCallback)(
108023
+ (site) => setSite(site).catch(exit),
108024
+ [exit, setSite]
108025
+ );
108026
+ return (0, import_variant10.match)(status, {
107085
108027
  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,
107089
- {
107090
- devMetadata,
107091
- serverLocalUrl,
107092
- serverExposedUrl
108028
+ Loading: () => /* @__PURE__ */ import_react13.default.createElement(Spinner, { text: "Resolving development site..." }),
108029
+ Success: ({ result: state }) => {
108030
+ return (0, import_variant10.match)(state, {
108031
+ NotConfigured: (variant5) => /* @__PURE__ */ import_react13.default.createElement(ResolveSite, { state: variant5, onSubmit: handleResolveSite }),
108032
+ NotFound: (variant5) => /* @__PURE__ */ import_react13.default.createElement(ResolveSite, { state: variant5, onSubmit: handleResolveSite }),
108033
+ Resolved: ({ site }) => /* @__PURE__ */ import_react13.default.createElement(
108034
+ SiteContext.Provider,
108035
+ {
108036
+ value: {
108037
+ site,
108038
+ setSite
108039
+ }
108040
+ },
108041
+ typeof children === "function" ? children(site) : children
108042
+ )
108043
+ });
108044
+ }
108045
+ });
108046
+ };
108047
+
108048
+ // ../cli-astro-commands/src/site/index.ts
108049
+ init_esm_shims();
108050
+
108051
+ // ../cli-astro-commands/src/site/useSite.ts
108052
+ init_esm_shims();
108053
+ var import_react14 = __toESM(require_react(), 1);
108054
+ function useSite() {
108055
+ const context = (0, import_react14.useContext)(SiteContext);
108056
+ if (context == null) {
108057
+ throw new Error("useSite() cannot be used without an <SiteProvider>");
108058
+ }
108059
+ return context;
108060
+ }
108061
+
108062
+ // ../cli-astro-commands/src/components/PreviewCommand/hooks/useUpdateManifest.ts
108063
+ init_esm_shims();
108064
+ var import_react15 = __toESM(require_react(), 1);
108065
+ var componentHandlers = {
108066
+ [ComponentType.WEBHOOK]: ({ component, serverUrl, tunnelUrl }) => {
108067
+ component.compData.webhook.callbackUrl = normalizeUrl(
108068
+ component.compData.webhook.callbackUrl,
108069
+ tunnelUrl ?? serverUrl
108070
+ );
108071
+ },
108072
+ [ComponentType.BACK_OFFICE_PAGE]: ({ component, serverUrl }) => {
108073
+ component.compData.backOfficePage.iframeUrl = normalizeUrl(
108074
+ component.compData.backOfficePage.iframeUrl,
108075
+ serverUrl
108076
+ );
108077
+ },
108078
+ [ComponentType.BACK_OFFICE_EXTENSION_WIDGET]: ({ component, serverUrl }) => {
108079
+ component.compData.backOfficeExtensionWidget.iframeUrl = normalizeUrl(
108080
+ component.compData.backOfficeExtensionWidget.iframeUrl,
108081
+ serverUrl
108082
+ );
108083
+ },
108084
+ [ComponentType.BACK_OFFICE_MODAL]: ({ component, serverUrl }) => {
108085
+ component.compData.backOfficeModal.iframeUrl = normalizeUrl(
108086
+ component.compData.backOfficeModal.iframeUrl,
108087
+ serverUrl
108088
+ );
108089
+ },
108090
+ [ComponentType.BACK_OFFICE_EXTENSION_MENU_ITEM]: ({
108091
+ component,
108092
+ serverUrl
108093
+ }) => {
108094
+ component.compData.backOfficeExtensionMenuItem.iframeUrl = normalizeUrl(
108095
+ component.compData.backOfficeExtensionMenuItem.iframeUrl,
108096
+ serverUrl
108097
+ );
108098
+ },
108099
+ [ComponentType.ECOM_SHIPPING_RATES]: ({
108100
+ component,
108101
+ serverUrl,
108102
+ tunnelUrl
108103
+ }) => {
108104
+ component.compData.ecomShippingRates.deploymentUri = normalizeUrl(
108105
+ component.compData.ecomShippingRates.deploymentUri,
108106
+ tunnelUrl ?? serverUrl
108107
+ );
108108
+ },
108109
+ [ComponentType.ECOM_ADDITIONAL_FEES]: ({
108110
+ component,
108111
+ serverUrl,
108112
+ tunnelUrl
108113
+ }) => {
108114
+ component.compData.ecomAdditionalFees.deploymentUri = normalizeUrl(
108115
+ component.compData.ecomAdditionalFees.deploymentUri,
108116
+ tunnelUrl ?? serverUrl
108117
+ );
108118
+ },
108119
+ [ComponentType.ECOM_DISCOUNTS_TRIGGER]: ({
108120
+ component,
108121
+ serverUrl,
108122
+ tunnelUrl
108123
+ }) => {
108124
+ component.compData.ecomDiscountsTrigger.deploymentUri = normalizeUrl(
108125
+ component.compData.ecomDiscountsTrigger.deploymentUri,
108126
+ tunnelUrl ?? serverUrl
108127
+ );
108128
+ },
108129
+ [ComponentType.ECOM_VALIDATIONS]: ({ component, serverUrl, tunnelUrl }) => {
108130
+ component.compData.ecomValidations.deploymentUri = normalizeUrl(
108131
+ component.compData.ecomValidations.deploymentUri,
108132
+ tunnelUrl ?? serverUrl
108133
+ );
108134
+ },
108135
+ [ComponentType.ECOM_PAYMENT_SETTINGS]: ({
108136
+ component,
108137
+ serverUrl,
108138
+ tunnelUrl
108139
+ }) => {
108140
+ component.compData.ecomPaymentSettings.deploymentUri = normalizeUrl(
108141
+ component.compData.ecomPaymentSettings.deploymentUri,
108142
+ tunnelUrl ?? serverUrl
108143
+ );
108144
+ },
108145
+ [ComponentType.GIFT_CARDS_PROVIDER]: ({
108146
+ component,
108147
+ serverUrl,
108148
+ tunnelUrl
108149
+ }) => {
108150
+ component.compData.giftCardsProvider.deploymentUri = normalizeUrl(
108151
+ component.compData.giftCardsProvider.deploymentUri,
108152
+ tunnelUrl ?? serverUrl
108153
+ );
108154
+ },
108155
+ [ComponentType.TOPOLOGY]: ({ component, serverUrl, tunnelUrl }) => {
108156
+ component.compData.topology.topology.backendApiUrl = tunnelUrl ?? serverUrl;
108157
+ }
108158
+ };
108159
+ function useUpdateManifest() {
108160
+ const updateManifest = (0, import_react15.useCallback)(
108161
+ (manifest, serverUrl, tunnelUrl) => {
108162
+ const clone = structuredClone(manifest);
108163
+ for (const component of clone.components) {
108164
+ const handler = getHandler(
108165
+ component,
108166
+ componentHandlers
108167
+ );
108168
+ handler?.({
108169
+ component,
108170
+ serverUrl,
108171
+ tunnelUrl
108172
+ });
107093
108173
  }
107094
- ))
107095
- }));
108174
+ return clone;
108175
+ },
108176
+ []
108177
+ );
108178
+ const updateManifestWithBackendWorker = (0, import_react15.useCallback)(
108179
+ (manifest, deploymentId, deploymentUrl, label, commitHash) => {
108180
+ const clone = structuredClone(manifest);
108181
+ clone.components.push({
108182
+ compId: BACKEND_WORKER_COMPONENT_ID,
108183
+ compType: ComponentType.BACKEND_WORKER,
108184
+ compData: {
108185
+ backendWorker: {
108186
+ deploymentId,
108187
+ deploymentUrl,
108188
+ label,
108189
+ commitHash
108190
+ }
108191
+ }
108192
+ });
108193
+ return clone;
108194
+ },
108195
+ []
108196
+ );
108197
+ return {
108198
+ updateManifest,
108199
+ updateManifestWithBackendWorker
108200
+ };
108201
+ }
108202
+ function getHandler(component, handlers) {
108203
+ return handlers[component.compType];
108204
+ }
108205
+ function normalizeUrl(inputUrl, baseUrl) {
108206
+ if (!inputUrl) {
108207
+ return baseUrl;
108208
+ }
108209
+ if (URL.canParse(inputUrl)) {
108210
+ return inputUrl;
108211
+ }
108212
+ const base = new URL(baseUrl);
108213
+ const normalizedUrl = new URL(inputUrl, base);
108214
+ if (base.search) {
108215
+ normalizedUrl.search = base.search;
108216
+ }
108217
+ return normalizedUrl.href;
108218
+ }
108219
+
108220
+ // ../cli-astro-commands/src/components/PlatformLink/PlatformLink.tsx
108221
+ init_esm_shims();
108222
+ var import_react16 = __toESM(require_react(), 1);
108223
+ var PlatformLink = ({ url, label }) => {
108224
+ return /* @__PURE__ */ import_react16.default.createElement(Box_default, { marginRight: 1 }, /* @__PURE__ */ import_react16.default.createElement(PointerSmallIcon, null), /* @__PURE__ */ import_react16.default.createElement(Box_default, { marginLeft: 1 }, /* @__PURE__ */ import_react16.default.createElement(Link, { url }, label)));
107096
108225
  };
108226
+
108227
+ // ../cli-astro-commands/src/hooks/useUpdateDeploymentTopology.ts
108228
+ init_esm_shims();
108229
+ function useUpdateDeploymentTopology(siteId) {
108230
+ const {
108231
+ model: { projectFolder }
108232
+ } = useProjectModel();
108233
+ return useAsyncCallback(async (_, props) => {
108234
+ const { environment, serverUrl, armTag } = props;
108235
+ const topology = await readDeploymentTopology(projectFolder);
108236
+ topology[environment] = {
108237
+ id: armTag,
108238
+ site: {
108239
+ main: serverUrl
108240
+ },
108241
+ dashboard: {
108242
+ main: `https://manage.wix.com/dashboard/${siteId}?apps-override=${armTag}`
108243
+ }
108244
+ };
108245
+ const path = getDeploymentTopologyPath(projectFolder);
108246
+ await writeJson(path, topology, { spaces: 2 });
108247
+ });
108248
+ }
108249
+ async function readDeploymentTopology(projectFolder) {
108250
+ const path = getDeploymentTopologyPath(projectFolder);
108251
+ if (await pathExists(path)) {
108252
+ try {
108253
+ const deployment = await readJson(path);
108254
+ return deploymentTopologySchema.parse(deployment);
108255
+ } catch {
108256
+ }
108257
+ }
108258
+ return {};
108259
+ }
108260
+
107097
108261
  export {
107098
- DevCommand
108262
+ useARMClient,
108263
+ useUpdateManifest,
108264
+ PlatformLink,
108265
+ useUpdateDeploymentTopology,
108266
+ useSite,
108267
+ readAppConfig,
108268
+ saveAppConfig,
108269
+ SiteSelector,
108270
+ SiteProvider
107099
108271
  };
107100
108272
  /*! Bundled license information:
107101
108273
 
@@ -107151,4 +108323,4 @@ export {
107151
108323
  *)
107152
108324
  *)
107153
108325
  */
107154
- //# sourceMappingURL=DevCommand-BMM34YPU.js.map
108326
+ //# sourceMappingURL=chunk-RVMHWFXV.js.map