@wix/cli 1.1.92 → 1.1.93

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 (170) hide show
  1. package/build/{chunk-W7CODLJZ.js → DevCommand-2Z74PQ26.js} +669 -257
  2. package/build/DevCommand-2Z74PQ26.js.map +1 -0
  3. package/build/{DevCommand-PWVR7KPG.js → DevCommand-3VTVFAPC.js} +18 -18
  4. package/build/{DevCommand-DEUDOCGK.js → DevCommand-YA5YZGH4.js} +16 -16
  5. package/build/{EnvPullCommand-IYWK5KBC.js → EnvPullCommand-E575ZY47.js} +10 -10
  6. package/build/EnvRemoveCommand-LRBR7LCQ.js +84 -0
  7. package/build/EnvRemoveCommand-LRBR7LCQ.js.map +1 -0
  8. package/build/{EnvSetCommand-SSNEWXCX.js → EnvSetCommand-TJBFYXCA.js} +10 -10
  9. package/build/{GenerateCommand-PW2OA55C.js → GenerateCommand-NN35PMBQ.js} +230 -391
  10. package/build/GenerateCommand-NN35PMBQ.js.map +1 -0
  11. package/build/{InstallCommand-EUIXWKR2.js → InstallCommand-6HILIMZ4.js} +16 -16
  12. package/build/{LoginCommand-N7VGSH5Y.js → LoginCommand-VYSZKK2R.js} +10 -10
  13. package/build/{LogoutCommand-NXTHVFG5.js → LogoutCommand-K34YBMCM.js} +7 -7
  14. package/build/{PreviewCommand-LPWUUZQG.js → PreviewCommand-G2JIJG5L.js} +18 -18
  15. package/build/{PreviewCommand-JDV4BZ32.js → PreviewCommand-Z5GX6ZNV.js} +20 -20
  16. package/build/{PreviewCommand-BZTD3F7Z.js → PreviewCommand-ZYYGM4BN.js} +12 -12
  17. package/build/{PublishCommand-WF2ZNXFD.js → PublishCommand-VLI7PDXQ.js} +18 -18
  18. package/build/{ReleaseCommand-KYSWC62Q.js → ReleaseCommand-L4Y6BSU6.js} +13 -13
  19. package/build/{UninstallCommand-BABBSOQX.js → UninstallCommand-FSM6ACGS.js} +16 -16
  20. package/build/{WhoamiCommand-JVMX7IEJ.js → WhoamiCommand-HCHXCS52.js} +3 -3
  21. package/build/{chunk-GIEJ7SOR.js → chunk-2WHCRVUO.js} +3 -3
  22. package/build/{chunk-YFBUO3EP.js → chunk-2YWQMCYL.js} +6 -8
  23. package/build/chunk-2YWQMCYL.js.map +1 -0
  24. package/build/{chunk-I4LXL264.js → chunk-4MLVTFYI.js} +3 -3
  25. package/build/{chunk-CMCIM2FR.js → chunk-6F3HZWHI.js} +3 -3
  26. package/build/{chunk-6ZIRLJMJ.js → chunk-6OCBAMM6.js} +3 -3
  27. package/build/{chunk-RJG6WEKO.js → chunk-7X6XM5XU.js} +2 -2
  28. package/build/{chunk-XLGJQZZA.js → chunk-7XY5GJUN.js} +3 -3
  29. package/build/{chunk-5L3ZCEVU.js → chunk-7ZSRRYB6.js} +19 -13
  30. package/build/chunk-7ZSRRYB6.js.map +1 -0
  31. package/build/{chunk-3BDYAFJY.js → chunk-AE3MOKSJ.js} +2 -2
  32. package/build/{chunk-Y3ZAEZF4.js → chunk-AN752YLU.js} +4 -4
  33. package/build/{chunk-Q7E6CZ3C.js → chunk-AO4BFW7M.js} +8 -8
  34. package/build/{chunk-GXTU3764.js → chunk-BADJ5PEM.js} +2 -2
  35. package/build/{chunk-GXTU3764.js.map → chunk-BADJ5PEM.js.map} +1 -1
  36. package/build/{chunk-DUYQZPRH.js → chunk-BGGTVIDX.js} +2 -2
  37. package/build/{chunk-CXFPYQVY.js → chunk-DDIB3H7O.js} +5 -5
  38. package/build/{chunk-M2VJGFDS.js → chunk-DQGJG7WL.js} +2 -2
  39. package/build/{chunk-4B4DIFAD.js → chunk-EMEJMFDS.js} +6 -6
  40. package/build/{chunk-3PSJY5IQ.js → chunk-ENAENA4J.js} +6 -6
  41. package/build/{chunk-45WBL5VF.js → chunk-EWC22ION.js} +5 -5
  42. package/build/{chunk-ISBULSWD.js → chunk-G2JIGUJ7.js} +7 -7
  43. package/build/{chunk-I3MNONAI.js → chunk-GDBFT3UX.js} +2 -2
  44. package/build/{chunk-6MH74EYT.js → chunk-H6EWS6IF.js} +3 -3
  45. package/build/{chunk-JHYR5NET.js → chunk-I4IC4BN2.js} +7 -7
  46. package/build/{chunk-NVW5X3UB.js → chunk-J7LF3I3O.js} +3 -3
  47. package/build/{chunk-F6AKDZEI.js → chunk-M76EZXKQ.js} +58 -5
  48. package/build/chunk-M76EZXKQ.js.map +1 -0
  49. package/build/{chunk-VNWDO45Y.js → chunk-NSL46MKB.js} +4 -2
  50. package/build/{chunk-VNWDO45Y.js.map → chunk-NSL46MKB.js.map} +1 -1
  51. package/build/{chunk-PKZ6J2PV.js → chunk-O6ZDAZFZ.js} +2 -2
  52. package/build/{chunk-ZCKZMMPY.js → chunk-PAM7FLMM.js} +2 -2
  53. package/build/{chunk-3PAHQ4M3.js → chunk-PEYNHLTD.js} +3 -3
  54. package/build/{chunk-6PQJVCVI.js → chunk-PIQXSDTQ.js} +2 -2
  55. package/build/{chunk-KEX4DNHZ.js → chunk-QGNDWQQD.js} +3 -3
  56. package/build/{chunk-YVQDNTNO.js → chunk-SH5WVHLQ.js} +2 -4
  57. package/build/{chunk-W3FB2GVG.js → chunk-TDO7IFO6.js} +6 -3
  58. package/build/chunk-TDO7IFO6.js.map +1 -0
  59. package/build/{chunk-AA5HURS5.js → chunk-UTTRVHIB.js} +3 -3
  60. package/build/{chunk-4O4G7HN2.js → chunk-UVSMDGQY.js} +4 -4
  61. package/build/{chunk-4O4G7HN2.js.map → chunk-UVSMDGQY.js.map} +1 -1
  62. package/build/{chunk-JSW5O26R.js → chunk-VAURDYMG.js} +10 -11
  63. package/build/chunk-VAURDYMG.js.map +1 -0
  64. package/build/{chunk-DXCSR2HI.js → chunk-WPI6K6AK.js} +5 -5
  65. package/build/{chunk-MOBNZ5R6.js → chunk-X73KRU2U.js} +13 -13
  66. package/build/{chunk-RIDZNJ65.js → chunk-XI75OO7W.js} +11 -5
  67. package/build/{chunk-RIDZNJ65.js.map → chunk-XI75OO7W.js.map} +1 -1
  68. package/build/{chunk-VWHAW4FC.js → chunk-ZQD2MXRV.js} +6 -6
  69. package/build/{chunk-TJTGMIZV.js → chunk-ZVMU6EMR.js} +2 -2
  70. package/build/{chunk-EJEDZZSK.js → chunk-ZWJZS7BK.js} +4 -3
  71. package/build/{chunk-EJEDZZSK.js.map → chunk-ZWJZS7BK.js.map} +1 -1
  72. package/build/{chunk-RYKJWCW2.js → chunk-ZZXI3UI4.js} +2 -2
  73. package/build/{dev-T5EAJRHG.js → dev-L7RT7UZD.js} +27 -27
  74. package/build/index.js +24 -24
  75. package/build/{install-EG5K5ISY.js → install-HHYTVORP.js} +16 -16
  76. package/build/{preview-HGI3D6BP.js → preview-7RFNSA54.js} +14 -14
  77. package/build/{publish-GAJZYSXP.js → publish-KJZ5VY4N.js} +17 -17
  78. package/build/{render-command-AJ4JXBZD.js → render-command-2XRAAJF6.js} +11 -11
  79. package/build/{render-command-I2UZ4C56.js → render-command-P4VD5BQ2.js} +10 -10
  80. package/build/{render-command-UUPZCQR5.js → render-command-XAOUHAHF.js} +9 -9
  81. package/build/{render-command-SFFANX7U.js → render-command-Y5LAZOIK.js} +10 -10
  82. package/build/{render-command-7VCI6YSZ.js → render-command-ZX5HGLIL.js} +13 -13
  83. package/build/{run-command-YOFPOYKR.js → run-command-OJIGR5M3.js} +7 -7
  84. package/build/{src-G4VTAB7N.js → src-36YD7FKI.js} +6 -6
  85. package/build/{src-WOCAZXWW.js → src-3CROJOB6.js} +4 -4
  86. package/build/{src-FQXVNQBP.js → src-3YCY3A6N.js} +14 -14
  87. package/build/{src-TCOQJWS6.js → src-7LR3GVQF.js} +4 -4
  88. package/build/{src-LGPI7BEK.js → src-CQXNGKSO.js} +52 -35
  89. package/build/src-CQXNGKSO.js.map +1 -0
  90. package/build/{src-TNYBYQC2.js → src-NHIOKHGM.js} +17 -17
  91. package/build/{src-36YXA45Z.js → src-R7UXENTL.js} +7 -7
  92. package/build/{src-SJLIJTME.js → src-X7RRT6HX.js} +2 -2
  93. package/build/{sync-types-IQMRAUS5.js → sync-types-VMUQUXYA.js} +12 -12
  94. package/build/{uninstall-L6EBLGL3.js → uninstall-FZQD6AV5.js} +16 -16
  95. package/package.json +2 -2
  96. package/build/DevCommand-V4NLJPXS.js +0 -438
  97. package/build/DevCommand-V4NLJPXS.js.map +0 -1
  98. package/build/GenerateCommand-PW2OA55C.js.map +0 -1
  99. package/build/chunk-5L3ZCEVU.js.map +0 -1
  100. package/build/chunk-F6AKDZEI.js.map +0 -1
  101. package/build/chunk-JSW5O26R.js.map +0 -1
  102. package/build/chunk-W3FB2GVG.js.map +0 -1
  103. package/build/chunk-W7CODLJZ.js.map +0 -1
  104. package/build/chunk-YFBUO3EP.js.map +0 -1
  105. package/build/src-LGPI7BEK.js.map +0 -1
  106. /package/build/{DevCommand-PWVR7KPG.js.map → DevCommand-3VTVFAPC.js.map} +0 -0
  107. /package/build/{DevCommand-DEUDOCGK.js.map → DevCommand-YA5YZGH4.js.map} +0 -0
  108. /package/build/{EnvPullCommand-IYWK5KBC.js.map → EnvPullCommand-E575ZY47.js.map} +0 -0
  109. /package/build/{EnvSetCommand-SSNEWXCX.js.map → EnvSetCommand-TJBFYXCA.js.map} +0 -0
  110. /package/build/{InstallCommand-EUIXWKR2.js.map → InstallCommand-6HILIMZ4.js.map} +0 -0
  111. /package/build/{LoginCommand-N7VGSH5Y.js.map → LoginCommand-VYSZKK2R.js.map} +0 -0
  112. /package/build/{LogoutCommand-NXTHVFG5.js.map → LogoutCommand-K34YBMCM.js.map} +0 -0
  113. /package/build/{PreviewCommand-LPWUUZQG.js.map → PreviewCommand-G2JIJG5L.js.map} +0 -0
  114. /package/build/{PreviewCommand-JDV4BZ32.js.map → PreviewCommand-Z5GX6ZNV.js.map} +0 -0
  115. /package/build/{PreviewCommand-BZTD3F7Z.js.map → PreviewCommand-ZYYGM4BN.js.map} +0 -0
  116. /package/build/{PublishCommand-WF2ZNXFD.js.map → PublishCommand-VLI7PDXQ.js.map} +0 -0
  117. /package/build/{ReleaseCommand-KYSWC62Q.js.map → ReleaseCommand-L4Y6BSU6.js.map} +0 -0
  118. /package/build/{UninstallCommand-BABBSOQX.js.map → UninstallCommand-FSM6ACGS.js.map} +0 -0
  119. /package/build/{WhoamiCommand-JVMX7IEJ.js.map → WhoamiCommand-HCHXCS52.js.map} +0 -0
  120. /package/build/{chunk-GIEJ7SOR.js.map → chunk-2WHCRVUO.js.map} +0 -0
  121. /package/build/{chunk-I4LXL264.js.map → chunk-4MLVTFYI.js.map} +0 -0
  122. /package/build/{chunk-CMCIM2FR.js.map → chunk-6F3HZWHI.js.map} +0 -0
  123. /package/build/{chunk-6ZIRLJMJ.js.map → chunk-6OCBAMM6.js.map} +0 -0
  124. /package/build/{chunk-RJG6WEKO.js.map → chunk-7X6XM5XU.js.map} +0 -0
  125. /package/build/{chunk-XLGJQZZA.js.map → chunk-7XY5GJUN.js.map} +0 -0
  126. /package/build/{chunk-3BDYAFJY.js.map → chunk-AE3MOKSJ.js.map} +0 -0
  127. /package/build/{chunk-Y3ZAEZF4.js.map → chunk-AN752YLU.js.map} +0 -0
  128. /package/build/{chunk-Q7E6CZ3C.js.map → chunk-AO4BFW7M.js.map} +0 -0
  129. /package/build/{chunk-DUYQZPRH.js.map → chunk-BGGTVIDX.js.map} +0 -0
  130. /package/build/{chunk-CXFPYQVY.js.map → chunk-DDIB3H7O.js.map} +0 -0
  131. /package/build/{chunk-M2VJGFDS.js.map → chunk-DQGJG7WL.js.map} +0 -0
  132. /package/build/{chunk-4B4DIFAD.js.map → chunk-EMEJMFDS.js.map} +0 -0
  133. /package/build/{chunk-3PSJY5IQ.js.map → chunk-ENAENA4J.js.map} +0 -0
  134. /package/build/{chunk-45WBL5VF.js.map → chunk-EWC22ION.js.map} +0 -0
  135. /package/build/{chunk-ISBULSWD.js.map → chunk-G2JIGUJ7.js.map} +0 -0
  136. /package/build/{chunk-I3MNONAI.js.map → chunk-GDBFT3UX.js.map} +0 -0
  137. /package/build/{chunk-6MH74EYT.js.map → chunk-H6EWS6IF.js.map} +0 -0
  138. /package/build/{chunk-JHYR5NET.js.map → chunk-I4IC4BN2.js.map} +0 -0
  139. /package/build/{chunk-NVW5X3UB.js.map → chunk-J7LF3I3O.js.map} +0 -0
  140. /package/build/{chunk-PKZ6J2PV.js.map → chunk-O6ZDAZFZ.js.map} +0 -0
  141. /package/build/{chunk-ZCKZMMPY.js.map → chunk-PAM7FLMM.js.map} +0 -0
  142. /package/build/{chunk-3PAHQ4M3.js.map → chunk-PEYNHLTD.js.map} +0 -0
  143. /package/build/{chunk-6PQJVCVI.js.map → chunk-PIQXSDTQ.js.map} +0 -0
  144. /package/build/{chunk-KEX4DNHZ.js.map → chunk-QGNDWQQD.js.map} +0 -0
  145. /package/build/{chunk-YVQDNTNO.js.map → chunk-SH5WVHLQ.js.map} +0 -0
  146. /package/build/{chunk-AA5HURS5.js.map → chunk-UTTRVHIB.js.map} +0 -0
  147. /package/build/{chunk-DXCSR2HI.js.map → chunk-WPI6K6AK.js.map} +0 -0
  148. /package/build/{chunk-MOBNZ5R6.js.map → chunk-X73KRU2U.js.map} +0 -0
  149. /package/build/{chunk-VWHAW4FC.js.map → chunk-ZQD2MXRV.js.map} +0 -0
  150. /package/build/{chunk-TJTGMIZV.js.map → chunk-ZVMU6EMR.js.map} +0 -0
  151. /package/build/{chunk-RYKJWCW2.js.map → chunk-ZZXI3UI4.js.map} +0 -0
  152. /package/build/{dev-T5EAJRHG.js.map → dev-L7RT7UZD.js.map} +0 -0
  153. /package/build/{install-EG5K5ISY.js.map → install-HHYTVORP.js.map} +0 -0
  154. /package/build/{preview-HGI3D6BP.js.map → preview-7RFNSA54.js.map} +0 -0
  155. /package/build/{publish-GAJZYSXP.js.map → publish-KJZ5VY4N.js.map} +0 -0
  156. /package/build/{render-command-AJ4JXBZD.js.map → render-command-2XRAAJF6.js.map} +0 -0
  157. /package/build/{render-command-I2UZ4C56.js.map → render-command-P4VD5BQ2.js.map} +0 -0
  158. /package/build/{render-command-UUPZCQR5.js.map → render-command-XAOUHAHF.js.map} +0 -0
  159. /package/build/{render-command-SFFANX7U.js.map → render-command-Y5LAZOIK.js.map} +0 -0
  160. /package/build/{render-command-7VCI6YSZ.js.map → render-command-ZX5HGLIL.js.map} +0 -0
  161. /package/build/{run-command-YOFPOYKR.js.map → run-command-OJIGR5M3.js.map} +0 -0
  162. /package/build/{src-G4VTAB7N.js.map → src-36YD7FKI.js.map} +0 -0
  163. /package/build/{src-36YXA45Z.js.map → src-3CROJOB6.js.map} +0 -0
  164. /package/build/{src-FQXVNQBP.js.map → src-3YCY3A6N.js.map} +0 -0
  165. /package/build/{src-SJLIJTME.js.map → src-7LR3GVQF.js.map} +0 -0
  166. /package/build/{src-TNYBYQC2.js.map → src-NHIOKHGM.js.map} +0 -0
  167. /package/build/{src-TCOQJWS6.js.map → src-R7UXENTL.js.map} +0 -0
  168. /package/build/{src-WOCAZXWW.js.map → src-X7RRT6HX.js.map} +0 -0
  169. /package/build/{sync-types-IQMRAUS5.js.map → sync-types-VMUQUXYA.js.map} +0 -0
  170. /package/build/{uninstall-L6EBLGL3.js.map → uninstall-FZQD6AV5.js.map} +0 -0
@@ -1,17 +1,77 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
+ import {
4
+ useTunnel
5
+ } from "./chunk-ENAENA4J.js";
6
+ import {
7
+ PlatformLink,
8
+ useARMClient,
9
+ useUpdateDeploymentTopology,
10
+ useUpdateManifest
11
+ } from "./chunk-7ZSRRYB6.js";
12
+ import "./chunk-P7ANNBCZ.js";
13
+ import {
14
+ createPackageManager,
15
+ getRepoType
16
+ } from "./chunk-6F3HZWHI.js";
17
+ import {
18
+ execa
19
+ } from "./chunk-3OG3PDAA.js";
20
+ import "./chunk-OJHDGJWP.js";
21
+ import {
22
+ useHttpClient
23
+ } from "./chunk-BGGTVIDX.js";
3
24
  import {
4
25
  ComponentType,
5
26
  EmbedCategory,
6
27
  EmbeddedScriptPlacement,
7
- Width
8
- } from "./chunk-W3FB2GVG.js";
28
+ Width,
29
+ looseAppManifestSchema,
30
+ looseComponentSchema,
31
+ useProjectModel
32
+ } from "./chunk-TDO7IFO6.js";
33
+ import {
34
+ SiteAuthProvider
35
+ } from "./chunk-ZQD2MXRV.js";
36
+ import "./chunk-XI75OO7W.js";
37
+ import "./chunk-NPVP6ZBL.js";
38
+ import "./chunk-GDBFT3UX.js";
39
+ import "./chunk-GPEPI5XF.js";
40
+ import {
41
+ Box_default,
42
+ ConfirmInput,
43
+ Spinner,
44
+ Text,
45
+ createRendererToString,
46
+ useAsync,
47
+ useExit
48
+ } from "./chunk-SH5WVHLQ.js";
49
+ import {
50
+ require_react
51
+ } from "./chunk-SO6EZMEL.js";
52
+ import {
53
+ stripAnsi
54
+ } from "./chunk-2K5KKUL3.js";
55
+ import "./chunk-YU54OBFT.js";
56
+ import "./chunk-XMTHMR2B.js";
57
+ import {
58
+ readUserConfig,
59
+ updateUserConfig
60
+ } from "./chunk-PAM7FLMM.js";
61
+ import "./chunk-7ZP5YH44.js";
62
+ import "./chunk-COXRYL76.js";
63
+ import "./chunk-MWHZITF4.js";
64
+ import {
65
+ pathExists,
66
+ readJson,
67
+ writeJson
68
+ } from "./chunk-ZWJZS7BK.js";
9
69
  import {
10
70
  z
11
71
  } from "./chunk-SF2XPDVG.js";
12
72
  import {
13
73
  require_lib
14
- } from "./chunk-VNWDO45Y.js";
74
+ } from "./chunk-NSL46MKB.js";
15
75
  import {
16
76
  __commonJS,
17
77
  __dirname,
@@ -2901,9 +2961,9 @@ ${trace}`);
2901
2961
  });
2902
2962
  exports2.default = matchesPattern;
2903
2963
  var _index = require_generated();
2904
- function matchesPattern(member, match, allowPartial) {
2964
+ function matchesPattern(member, match2, allowPartial) {
2905
2965
  if (!(0, _index.isMemberExpression)(member)) return false;
2906
- const parts = Array.isArray(match) ? match : match.split(".");
2966
+ const parts = Array.isArray(match2) ? match2 : match2.split(".");
2907
2967
  const nodes = [];
2908
2968
  let node;
2909
2969
  for (node = member; (0, _index.isMemberExpression)(node); node = node.object) {
@@ -2938,8 +2998,8 @@ ${trace}`);
2938
2998
  });
2939
2999
  exports2.default = buildMatchMemberExpression;
2940
3000
  var _matchesPattern = require_matchesPattern();
2941
- function buildMatchMemberExpression(match, allowPartial) {
2942
- const parts = match.split(".");
3001
+ function buildMatchMemberExpression(match2, allowPartial) {
3002
+ const parts = match2.split(".");
2943
3003
  return (member) => (0, _matchesPattern.default)(member, parts, allowPartial);
2944
3004
  }
2945
3005
  }
@@ -2974,9 +3034,9 @@ ${trace}`);
2974
3034
  Object.defineProperty(exports2, "__esModule", {
2975
3035
  value: true
2976
3036
  });
2977
- exports2.default = isType;
3037
+ exports2.default = isType2;
2978
3038
  var _index = require_definitions();
2979
- function isType(nodeType, targetType) {
3039
+ function isType2(nodeType, targetType) {
2980
3040
  if (nodeType === targetType) return true;
2981
3041
  if (nodeType == null) return false;
2982
3042
  if (_index.ALIAS_KEYS[targetType]) return false;
@@ -3378,8 +3438,8 @@ ${trace}`);
3378
3438
  default:
3379
3439
  if (ch >= 48 && ch <= 55) {
3380
3440
  const startPos = pos2 - 1;
3381
- const match = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
3382
- let octalStr = match[0];
3441
+ const match2 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
3442
+ let octalStr = match2[0];
3383
3443
  let octal = parseInt(octalStr, 8);
3384
3444
  if (octal > 255) {
3385
3445
  octalStr = octalStr.slice(0, -1);
@@ -3757,9 +3817,9 @@ ${errors.join("\n")}`);
3757
3817
  }
3758
3818
  function defineType(type, opts = {}) {
3759
3819
  const inherits = opts.inherits && store[opts.inherits] || {};
3760
- let fields = opts.fields;
3761
- if (!fields) {
3762
- fields = {};
3820
+ let fields2 = opts.fields;
3821
+ if (!fields2) {
3822
+ fields2 = {};
3763
3823
  if (inherits.fields) {
3764
3824
  const keys = Object.getOwnPropertyNames(inherits.fields);
3765
3825
  for (const key2 of keys) {
@@ -3768,7 +3828,7 @@ ${errors.join("\n")}`);
3768
3828
  if (Array.isArray(def) ? def.length > 0 : def && typeof def === "object") {
3769
3829
  throw new Error("field defaults can only be primitives or empty arrays currently");
3770
3830
  }
3771
- fields[key2] = {
3831
+ fields2[key2] = {
3772
3832
  default: Array.isArray(def) ? [] : def,
3773
3833
  optional: field.optional,
3774
3834
  deprecated: field.deprecated,
@@ -3789,10 +3849,10 @@ ${errors.join("\n")}`);
3789
3849
  DEPRECATED_KEYS[opts.deprecatedAlias] = type;
3790
3850
  }
3791
3851
  for (const key2 of visitor.concat(builder)) {
3792
- fields[key2] = fields[key2] || {};
3852
+ fields2[key2] = fields2[key2] || {};
3793
3853
  }
3794
- for (const key2 of Object.keys(fields)) {
3795
- const field = fields[key2];
3854
+ for (const key2 of Object.keys(fields2)) {
3855
+ const field = fields2[key2];
3796
3856
  if (field.default !== void 0 && !builder.includes(key2)) {
3797
3857
  field.optional = true;
3798
3858
  }
@@ -3809,7 +3869,7 @@ ${errors.join("\n")}`);
3809
3869
  }
3810
3870
  VISITOR_KEYS[type] = opts.visitor = visitor;
3811
3871
  BUILDER_KEYS[type] = opts.builder = builder;
3812
- NODE_FIELDS[type] = opts.fields = fields;
3872
+ NODE_FIELDS[type] = opts.fields = fields2;
3813
3873
  ALIAS_KEYS[type] = opts.aliases = aliases;
3814
3874
  aliases.forEach((alias) => {
3815
3875
  FLIPPED_ALIAS_KEYS[alias] = FLIPPED_ALIAS_KEYS[alias] || [];
@@ -4201,9 +4261,9 @@ ${errors.join("\n")}`);
4201
4261
  }
4202
4262
  }),
4203
4263
  validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key2, node) {
4204
- const match = /\.(\w+)$/.exec(key2);
4205
- if (!match) return;
4206
- const [, parentKey] = match;
4264
+ const match2 = /\.(\w+)$/.exec(key2);
4265
+ if (!match2) return;
4266
+ const [, parentKey] = match2;
4207
4267
  const nonComp = {
4208
4268
  computed: false
4209
4269
  };
@@ -4491,9 +4551,9 @@ ${errors.join("\n")}`);
4491
4551
  }
4492
4552
  }),
4493
4553
  validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key2) {
4494
- const match = /(\w+)\[(\d+)\]/.exec(key2);
4495
- if (!match) throw new Error("Internal Babel error: malformed key.");
4496
- const [, listKey, index] = match;
4554
+ const match2 = /(\w+)\[(\d+)\]/.exec(key2);
4555
+ if (!match2) throw new Error("Internal Babel error: malformed key.");
4556
+ const [, listKey, index] = match2;
4497
4557
  if (parent[listKey].length > +index + 1) {
4498
4558
  throw new TypeError(`RestElement must be last element of ${listKey}`);
4499
4559
  }
@@ -6953,9 +7013,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
6953
7013
  var _index = require_definitions();
6954
7014
  function validate(node, key2, val) {
6955
7015
  if (!node) return;
6956
- const fields = _index.NODE_FIELDS[node.type];
6957
- if (!fields) return;
6958
- const field = fields[key2];
7016
+ const fields2 = _index.NODE_FIELDS[node.type];
7017
+ if (!fields2) return;
7018
+ const field = fields2[key2];
6959
7019
  validateField(node, key2, val, field);
6960
7020
  validateChild(node, key2, val);
6961
7021
  }
@@ -13383,7 +13443,7 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
13383
13443
  name += (0, _helperValidatorIdentifier.isIdentifierChar)(c2.codePointAt(0)) ? c2 : "-";
13384
13444
  }
13385
13445
  name = name.replace(/^[-0-9]+/, "");
13386
- name = name.replace(/[-\s]+(.)?/g, function(match, c2) {
13446
+ name = name.replace(/[-\s]+(.)?/g, function(match2, c2) {
13387
13447
  return c2 ? c2.toUpperCase() : "";
13388
13448
  });
13389
13449
  if (!(0, _isValidIdentifier.default)(name)) {
@@ -14112,9 +14172,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
14112
14172
  if (a.type !== b.type) {
14113
14173
  return false;
14114
14174
  }
14115
- const fields = Object.keys(_index.NODE_FIELDS[a.type] || a.type);
14175
+ const fields2 = Object.keys(_index.NODE_FIELDS[a.type] || a.type);
14116
14176
  const visitorKeys = _index.VISITOR_KEYS[a.type];
14117
- for (const field of fields) {
14177
+ for (const field of fields2) {
14118
14178
  const val_a = a[field];
14119
14179
  const val_b = b[field];
14120
14180
  if (typeof val_a !== typeof val_b) {
@@ -17375,8 +17435,8 @@ ${str}
17375
17435
  default:
17376
17436
  if (ch >= 48 && ch <= 55) {
17377
17437
  const startPos = pos2 - 1;
17378
- const match = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
17379
- let octalStr = match[0];
17438
+ const match2 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
17439
+ let octalStr = match2[0];
17380
17440
  let octal = parseInt(octalStr, 8);
17381
17441
  if (octal > 255) {
17382
17442
  octalStr = octalStr.slice(0, -1);
@@ -29413,16 +29473,16 @@ ${str}
29413
29473
  value: true
29414
29474
  });
29415
29475
  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;
29416
- exports2.matchToToken = function(match) {
29417
- var token2 = { type: "invalid", value: match[0], closed: void 0 };
29418
- if (match[1]) token2.type = "string", token2.closed = !!(match[3] || match[4]);
29419
- else if (match[5]) token2.type = "comment";
29420
- else if (match[6]) token2.type = "comment", token2.closed = !!match[7];
29421
- else if (match[8]) token2.type = "regex";
29422
- else if (match[9]) token2.type = "number";
29423
- else if (match[10]) token2.type = "name";
29424
- else if (match[11]) token2.type = "punctuator";
29425
- else if (match[12]) token2.type = "whitespace";
29476
+ exports2.matchToToken = function(match2) {
29477
+ var token2 = { type: "invalid", value: match2[0], closed: void 0 };
29478
+ if (match2[1]) token2.type = "string", token2.closed = !!(match2[3] || match2[4]);
29479
+ else if (match2[5]) token2.type = "comment";
29480
+ else if (match2[6]) token2.type = "comment", token2.closed = !!match2[7];
29481
+ else if (match2[8]) token2.type = "regex";
29482
+ else if (match2[9]) token2.type = "number";
29483
+ else if (match2[10]) token2.type = "name";
29484
+ else if (match2[11]) token2.type = "punctuator";
29485
+ else if (match2[12]) token2.type = "whitespace";
29426
29486
  return token2;
29427
29487
  };
29428
29488
  }
@@ -29487,11 +29547,11 @@ ${str}
29487
29547
  return token2.type;
29488
29548
  };
29489
29549
  tokenize = function* (text) {
29490
- let match;
29491
- while (match = jsTokens.default.exec(text)) {
29492
- const token2 = jsTokens.matchToToken(match);
29550
+ let match2;
29551
+ while (match2 = jsTokens.default.exec(text)) {
29552
+ const token2 = jsTokens.matchToToken(match2);
29493
29553
  yield {
29494
- type: getTokenType(token2, match.index, text),
29554
+ type: getTokenType(token2, match2.index, text),
29495
29555
  value: token2.value
29496
29556
  };
29497
29557
  }
@@ -31534,14 +31594,14 @@ ${rootStack}`;
31534
31594
  if (str.length > 100) {
31535
31595
  return;
31536
31596
  }
31537
- var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
31597
+ var match2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
31538
31598
  str
31539
31599
  );
31540
- if (!match) {
31600
+ if (!match2) {
31541
31601
  return;
31542
31602
  }
31543
- var n = parseFloat(match[1]);
31544
- var type = (match[2] || "ms").toLowerCase();
31603
+ var n = parseFloat(match2[1]);
31604
+ var type = (match2[2] || "ms").toLowerCase();
31545
31605
  switch (type) {
31546
31606
  case "years":
31547
31607
  case "year":
@@ -31671,19 +31731,19 @@ ${rootStack}`;
31671
31731
  args.unshift("%O");
31672
31732
  }
31673
31733
  let index = 0;
31674
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
31675
- if (match === "%%") {
31734
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
31735
+ if (match2 === "%%") {
31676
31736
  return "%";
31677
31737
  }
31678
31738
  index++;
31679
31739
  const formatter = createDebug.formatters[format];
31680
31740
  if (typeof formatter === "function") {
31681
31741
  const val = args[index];
31682
- match = formatter.call(self2, val);
31742
+ match2 = formatter.call(self2, val);
31683
31743
  args.splice(index, 1);
31684
31744
  index--;
31685
31745
  }
31686
- return match;
31746
+ return match2;
31687
31747
  });
31688
31748
  createDebug.formatArgs.call(self2, args);
31689
31749
  const logFn = self2.log || createDebug.log;
@@ -31917,12 +31977,12 @@ ${rootStack}`;
31917
31977
  args.splice(1, 0, c2, "color: inherit");
31918
31978
  let index = 0;
31919
31979
  let lastC = 0;
31920
- args[0].replace(/%[a-zA-Z%]/g, (match) => {
31921
- if (match === "%%") {
31980
+ args[0].replace(/%[a-zA-Z%]/g, (match2) => {
31981
+ if (match2 === "%%") {
31922
31982
  return;
31923
31983
  }
31924
31984
  index++;
31925
- if (match === "%c") {
31985
+ if (match2 === "%c") {
31926
31986
  lastC = index;
31927
31987
  }
31928
31988
  });
@@ -35684,8 +35744,8 @@ ${rootStack}`;
35684
35744
  continue;
35685
35745
  }
35686
35746
  const kind = decodeInteger(reader, 0);
35687
- const fields = decodeInteger(reader, 0);
35688
- const hasName = fields & 1;
35747
+ const fields2 = decodeInteger(reader, 0);
35748
+ const hasName = fields2 & 1;
35689
35749
  const scope = hasName ? [line2, column2, 0, 0, kind, decodeInteger(reader, 0)] : [line2, column2, 0, 0, kind];
35690
35750
  let vars = EMPTY;
35691
35751
  if (hasMoreVlq(reader, length)) {
@@ -35716,8 +35776,8 @@ ${rootStack}`;
35716
35776
  state[0] = encodeInteger(writer, startLine, state[0]);
35717
35777
  encodeInteger(writer, startColumn, 0);
35718
35778
  encodeInteger(writer, kind, 0);
35719
- const fields = scope.length === 6 ? 1 : 0;
35720
- encodeInteger(writer, fields, 0);
35779
+ const fields2 = scope.length === 6 ? 1 : 0;
35780
+ encodeInteger(writer, fields2, 0);
35721
35781
  if (scope.length === 6)
35722
35782
  encodeInteger(writer, scope[5], 0);
35723
35783
  for (const v of vars) {
@@ -35760,10 +35820,10 @@ ${rootStack}`;
35760
35820
  last[3] = genColumn;
35761
35821
  continue;
35762
35822
  }
35763
- const fields = decodeInteger(reader, 0);
35764
- const hasDefinition = fields & 1;
35765
- const hasCallsite = fields & 2;
35766
- const hasScope = fields & 4;
35823
+ const fields2 = decodeInteger(reader, 0);
35824
+ const hasDefinition = fields2 & 1;
35825
+ const hasCallsite = fields2 & 2;
35826
+ const hasScope = fields2 & 4;
35767
35827
  let callsite = null;
35768
35828
  let bindings = EMPTY;
35769
35829
  let range;
@@ -35837,8 +35897,8 @@ ${rootStack}`;
35837
35897
  writer.write(comma);
35838
35898
  }
35839
35899
  state[1] = encodeInteger(writer, range[1], state[1]);
35840
- const fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
35841
- encodeInteger(writer, fields, 0);
35900
+ const fields2 = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
35901
+ encodeInteger(writer, fields2, 0);
35842
35902
  if (range.length === 6) {
35843
35903
  const { 4: sourcesIndex, 5: scopesIndex } = range;
35844
35904
  if (sourcesIndex !== state[2]) {
@@ -36014,13 +36074,13 @@ ${rootStack}`;
36014
36074
  return /^[.?#]/.test(input);
36015
36075
  }
36016
36076
  function parseAbsoluteUrl(input) {
36017
- const match = urlRegex.exec(input);
36018
- return makeUrl(match[1], match[2] || "", match[3], match[4] || "", match[5] || "/", match[6] || "", match[7] || "");
36077
+ const match2 = urlRegex.exec(input);
36078
+ return makeUrl(match2[1], match2[2] || "", match2[3], match2[4] || "", match2[5] || "/", match2[6] || "", match2[7] || "");
36019
36079
  }
36020
36080
  function parseFileUrl(input) {
36021
- const match = fileRegex.exec(input);
36022
- const path = match[2];
36023
- return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match[3] || "", match[4] || "");
36081
+ const match2 = fileRegex.exec(input);
36082
+ const path = match2[2];
36083
+ return makeUrl("file:", "", match2[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match2[3] || "", match2[4] || "");
36024
36084
  }
36025
36085
  function makeUrl(scheme, user, host, port, path, query, hash) {
36026
36086
  return {
@@ -37296,7 +37356,7 @@ ${rootStack}`;
37296
37356
  return false;
37297
37357
  }
37298
37358
  }
37299
- function isType(node) {
37359
+ function isType2(node) {
37300
37360
  return isLiteral(node) || isObjectExpression(node) || isArrayExpression(node) || isIdentifier(node) || isMemberExpression(node);
37301
37361
  }
37302
37362
  var nodes = exports2.nodes = {
@@ -37332,7 +37392,7 @@ ${rootStack}`;
37332
37392
  VariableDeclaration(node) {
37333
37393
  for (let i = 0; i < node.declarations.length; i++) {
37334
37394
  const declar = node.declarations[i];
37335
- let enabled = isHelper(declar.id) && !isType(declar.init);
37395
+ let enabled = isHelper(declar.id) && !isType2(declar.init);
37336
37396
  if (!enabled && declar.init) {
37337
37397
  const state = crawl(declar.init);
37338
37398
  enabled = isHelper(declar.init) && state.hasCall || state.hasFunction;
@@ -44828,7 +44888,7 @@ ${" ".repeat(indentSize)}`);
44828
44888
  isIdentifier,
44829
44889
  isLiteral,
44830
44890
  isStringLiteral,
44831
- isType,
44891
+ isType: isType2,
44832
44892
  matchesPattern: _matchesPattern
44833
44893
  } = _t;
44834
44894
  function matchesPattern(pattern, allowPartial) {
@@ -44858,7 +44918,7 @@ ${" ".repeat(indentSize)}`);
44858
44918
  };
44859
44919
  }
44860
44920
  function isNodeType(type) {
44861
- return isType(this.type, type);
44921
+ return isType2(this.type, type);
44862
44922
  }
44863
44923
  function canHaveVariableDeclarationOrExpression() {
44864
44924
  return (this.key === "init" || this.key === "left") && this.parentPath.isFor();
@@ -45114,13 +45174,13 @@ ${" ".repeat(indentSize)}`);
45114
45174
  for (const prop of props) {
45115
45175
  if (!prop.isProperty()) continue;
45116
45176
  const key2 = prop.get("key");
45117
- let match = prop.isnt("computed") && key2.isIdentifier({
45177
+ let match2 = prop.isnt("computed") && key2.isIdentifier({
45118
45178
  name: targetName
45119
45179
  });
45120
- match = match || key2.isLiteral({
45180
+ match2 = match2 || key2.isLiteral({
45121
45181
  value: targetName
45122
45182
  });
45123
- if (match) return prop.get("value").resolve(dangerous, resolved);
45183
+ if (match2) return prop.get("value").resolve(dangerous, resolved);
45124
45184
  }
45125
45185
  } else if (target.isArrayExpression() && !isNaN(+targetName)) {
45126
45186
  const elems = target.get("elements");
@@ -47528,23 +47588,23 @@ ${" ".repeat(indentSize)}`);
47528
47588
  return null;
47529
47589
  }
47530
47590
  options = options || {};
47531
- var match = null;
47591
+ var match2 = null;
47532
47592
  if (!options.rtl) {
47533
- match = version.match(safeRe[t.COERCE]);
47593
+ match2 = version.match(safeRe[t.COERCE]);
47534
47594
  } else {
47535
47595
  var next;
47536
- while ((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
47537
- if (!match || next.index + next[0].length !== match.index + match[0].length) {
47538
- match = next;
47596
+ while ((next = safeRe[t.COERCERTL].exec(version)) && (!match2 || match2.index + match2[0].length !== version.length)) {
47597
+ if (!match2 || next.index + next[0].length !== match2.index + match2[0].length) {
47598
+ match2 = next;
47539
47599
  }
47540
47600
  safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
47541
47601
  }
47542
47602
  safeRe[t.COERCERTL].lastIndex = -1;
47543
47603
  }
47544
- if (match === null) {
47604
+ if (match2 === null) {
47545
47605
  return null;
47546
47606
  }
47547
- return parse3(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
47607
+ return parse3(match2[2] + "." + (match2[3] || "0") + "." + (match2[4] || "0"), options);
47548
47608
  }
47549
47609
  }
47550
47610
  });
@@ -52760,11 +52820,11 @@ ${" ".repeat(indentSize)}`);
52760
52820
  }
52761
52821
  for (var name in all) {
52762
52822
  var type = all[name];
52763
- var match = query.match(type.regexp);
52764
- if (match) {
52823
+ var match2 = query.match(type.regexp);
52824
+ if (match2) {
52765
52825
  node.type = name;
52766
52826
  for (var i = 0; i < type.matches.length; i++) {
52767
- node[type.matches[i]] = match[i + 1];
52827
+ node[type.matches[i]] = match2[i + 1];
52768
52828
  }
52769
52829
  return node;
52770
52830
  }
@@ -55812,23 +55872,23 @@ ${" ".repeat(indentSize)}`);
55812
55872
  return null;
55813
55873
  }
55814
55874
  options = options || {};
55815
- var match = null;
55875
+ var match2 = null;
55816
55876
  if (!options.rtl) {
55817
- match = version.match(safeRe[t.COERCE]);
55877
+ match2 = version.match(safeRe[t.COERCE]);
55818
55878
  } else {
55819
55879
  var next;
55820
- while ((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
55821
- if (!match || next.index + next[0].length !== match.index + match[0].length) {
55822
- match = next;
55880
+ while ((next = safeRe[t.COERCERTL].exec(version)) && (!match2 || match2.index + match2[0].length !== version.length)) {
55881
+ if (!match2 || next.index + next[0].length !== match2.index + match2[0].length) {
55882
+ match2 = next;
55823
55883
  }
55824
55884
  safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
55825
55885
  }
55826
55886
  safeRe[t.COERCERTL].lastIndex = -1;
55827
55887
  }
55828
- if (match === null) {
55888
+ if (match2 === null) {
55829
55889
  return null;
55830
55890
  }
55831
- return parse3(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
55891
+ return parse3(match2[2] + "." + (match2[3] || "0") + "." + (match2[4] || "0"), options);
55832
55892
  }
55833
55893
  }
55834
55894
  });
@@ -60214,8 +60274,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
60214
60274
  const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast);
60215
60275
  if (typeof options.filename === "string" && lastComment) {
60216
60276
  try {
60217
- const match = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment);
60218
- const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match[1]), "utf8");
60277
+ const match2 = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment);
60278
+ const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match2[1]), "utf8");
60219
60279
  inputMap = _convertSourceMap().fromJSON(inputMapContent);
60220
60280
  } catch (err) {
60221
60281
  debug("discarding unknown file input sourcemap", err);
@@ -65274,23 +65334,23 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
65274
65334
  return null;
65275
65335
  }
65276
65336
  options = options || {};
65277
- var match = null;
65337
+ var match2 = null;
65278
65338
  if (!options.rtl) {
65279
- match = version.match(safeRe[t.COERCE]);
65339
+ match2 = version.match(safeRe[t.COERCE]);
65280
65340
  } else {
65281
65341
  var next;
65282
- while ((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
65283
- if (!match || next.index + next[0].length !== match.index + match[0].length) {
65284
- match = next;
65342
+ while ((next = safeRe[t.COERCERTL].exec(version)) && (!match2 || match2.index + match2[0].length !== version.length)) {
65343
+ if (!match2 || next.index + next[0].length !== match2.index + match2[0].length) {
65344
+ match2 = next;
65285
65345
  }
65286
65346
  safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
65287
65347
  }
65288
65348
  safeRe[t.COERCERTL].lastIndex = -1;
65289
65349
  }
65290
- if (match === null) {
65350
+ if (match2 === null) {
65291
65351
  return null;
65292
65352
  }
65293
- return parse3(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
65353
+ return parse3(match2[2] + "." + (match2[3] || "0") + "." + (match2[4] || "0"), options);
65294
65354
  }
65295
65355
  }
65296
65356
  });
@@ -68047,13 +68107,13 @@ module.exports = function(api) {
68047
68107
  var encodedSeparatorRegEx = /%2f|%5c/i;
68048
68108
  var emittedPackageWarnings = /* @__PURE__ */ new Set();
68049
68109
  var doubleSlashRegEx = /[/\\]{2}/;
68050
- function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, internal, base, isTarget) {
68110
+ function emitInvalidSegmentDeprecation(target, request, match2, packageJsonUrl, internal, base, isTarget) {
68051
68111
  if (_process().noDeprecation) {
68052
68112
  return;
68053
68113
  }
68054
68114
  const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl);
68055
68115
  const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null;
68056
- _process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
68116
+ _process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match2 ? "" : `matched to "${match2}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
68057
68117
  }
68058
68118
  function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
68059
68119
  if (_process().noDeprecation) {
@@ -68163,16 +68223,16 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
68163
68223
  function exportsNotFound(subpath, packageJsonUrl, base) {
68164
68224
  return new ERR_PACKAGE_PATH_NOT_EXPORTED((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, base && (0, _url().fileURLToPath)(base));
68165
68225
  }
68166
- function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
68167
- const reason = `request is not a valid match in pattern "${match}" for the "${internal ? "imports" : "exports"}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`;
68226
+ function throwInvalidSubpath(request, match2, packageJsonUrl, internal, base) {
68227
+ const reason = `request is not a valid match in pattern "${match2}" for the "${internal ? "imports" : "exports"}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`;
68168
68228
  throw new ERR_INVALID_MODULE_SPECIFIER(request, reason, base && (0, _url().fileURLToPath)(base));
68169
68229
  }
68170
68230
  function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
68171
68231
  target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
68172
68232
  return new ERR_INVALID_PACKAGE_TARGET((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, target, internal, base && (0, _url().fileURLToPath)(base));
68173
68233
  }
68174
- function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
68175
- if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
68234
+ function resolvePackageTargetString(target, subpath, match2, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
68235
+ if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(match2, target, packageJsonUrl, internal, base);
68176
68236
  if (!target.startsWith("./")) {
68177
68237
  if (internal && !target.startsWith("../") && !target.startsWith("/")) {
68178
68238
  let isURL2 = false;
@@ -68186,33 +68246,33 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
68186
68246
  return packageResolve(exportTarget, packageJsonUrl, conditions);
68187
68247
  }
68188
68248
  }
68189
- throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
68249
+ throw invalidPackageTarget(match2, target, packageJsonUrl, internal, base);
68190
68250
  }
68191
68251
  if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {
68192
68252
  if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
68193
68253
  if (!isPathMap) {
68194
- const request = pattern ? match.replace("*", () => subpath) : match + subpath;
68254
+ const request = pattern ? match2.replace("*", () => subpath) : match2 + subpath;
68195
68255
  const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
68196
- emitInvalidSegmentDeprecation(resolvedTarget, request, match, packageJsonUrl, internal, base, true);
68256
+ emitInvalidSegmentDeprecation(resolvedTarget, request, match2, packageJsonUrl, internal, base, true);
68197
68257
  }
68198
68258
  } else {
68199
- throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
68259
+ throw invalidPackageTarget(match2, target, packageJsonUrl, internal, base);
68200
68260
  }
68201
68261
  }
68202
68262
  const resolved = new (_url()).URL(target, packageJsonUrl);
68203
68263
  const resolvedPath = resolved.pathname;
68204
68264
  const packagePath = new (_url()).URL(".", packageJsonUrl).pathname;
68205
- if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
68265
+ if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match2, target, packageJsonUrl, internal, base);
68206
68266
  if (subpath === "") return resolved;
68207
68267
  if (invalidSegmentRegEx.exec(subpath) !== null) {
68208
- const request = pattern ? match.replace("*", () => subpath) : match + subpath;
68268
+ const request = pattern ? match2.replace("*", () => subpath) : match2 + subpath;
68209
68269
  if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {
68210
68270
  if (!isPathMap) {
68211
68271
  const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
68212
- emitInvalidSegmentDeprecation(resolvedTarget, request, match, packageJsonUrl, internal, base, false);
68272
+ emitInvalidSegmentDeprecation(resolvedTarget, request, match2, packageJsonUrl, internal, base, false);
68213
68273
  }
68214
68274
  } else {
68215
- throwInvalidSubpath(request, match, packageJsonUrl, internal, base);
68275
+ throwInvalidSubpath(request, match2, packageJsonUrl, internal, base);
68216
68276
  }
68217
68277
  }
68218
68278
  if (pattern) {
@@ -68301,14 +68361,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
68301
68361
  }
68302
68362
  return isConditionalSugar;
68303
68363
  }
68304
- function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
68364
+ function emitTrailingSlashPatternDeprecation(match2, pjsonUrl, base) {
68305
68365
  if (_process().noDeprecation) {
68306
68366
  return;
68307
68367
  }
68308
68368
  const pjsonPath = (0, _url().fileURLToPath)(pjsonUrl);
68309
- if (emittedPackageWarnings.has(pjsonPath + "|" + match)) return;
68310
- emittedPackageWarnings.add(pjsonPath + "|" + match);
68311
- _process().emitWarning(`Use of deprecated trailing slash pattern mapping "${match}" 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");
68369
+ if (emittedPackageWarnings.has(pjsonPath + "|" + match2)) return;
68370
+ emittedPackageWarnings.add(pjsonPath + "|" + match2);
68371
+ _process().emitWarning(`Use of deprecated trailing slash pattern mapping "${match2}" 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");
68312
68372
  }
68313
68373
  function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
68314
68374
  let exports3 = packageConfig.exports;
@@ -71298,7 +71358,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
71298
71358
  var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
71299
71359
  exports2.makeRe = makeRe;
71300
71360
  exports2.minimatch.makeRe = exports2.makeRe;
71301
- var match = (list, pattern, options = {}) => {
71361
+ var match2 = (list, pattern, options = {}) => {
71302
71362
  const mm = new Minimatch(pattern, options);
71303
71363
  list = list.filter((f) => mm.match(f));
71304
71364
  if (mm.options.nonull && !list.length) {
@@ -71306,7 +71366,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
71306
71366
  }
71307
71367
  return list;
71308
71368
  };
71309
- exports2.match = match;
71369
+ exports2.match = match2;
71310
71370
  exports2.minimatch.match = exports2.match;
71311
71371
  var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
71312
71372
  var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
@@ -78090,10 +78150,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78090
78150
  });
78091
78151
  }
78092
78152
  let shouldIndentNextCharacter = options.indentStart !== false;
78093
- const replacer = (match) => {
78094
- if (shouldIndentNextCharacter) return `${indentStr}${match}`;
78153
+ const replacer = (match2) => {
78154
+ if (shouldIndentNextCharacter) return `${indentStr}${match2}`;
78095
78155
  shouldIndentNextCharacter = true;
78096
- return match;
78156
+ return match2;
78097
78157
  };
78098
78158
  this.intro = this.intro.replace(pattern, replacer);
78099
78159
  let charIndex = 0;
@@ -78481,44 +78541,44 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78481
78541
  return this.original !== this.toString();
78482
78542
  }
78483
78543
  _replaceRegexp(searchValue, replacement) {
78484
- function getReplacement(match, str) {
78544
+ function getReplacement(match2, str) {
78485
78545
  if (typeof replacement === "string") {
78486
78546
  return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
78487
78547
  if (i === "$") return "$";
78488
- if (i === "&") return match[0];
78548
+ if (i === "&") return match2[0];
78489
78549
  const num = +i;
78490
- if (num < match.length) return match[+i];
78550
+ if (num < match2.length) return match2[+i];
78491
78551
  return `$${i}`;
78492
78552
  });
78493
78553
  } else {
78494
- return replacement(...match, match.index, str, match.groups);
78554
+ return replacement(...match2, match2.index, str, match2.groups);
78495
78555
  }
78496
78556
  }
78497
78557
  function matchAll(re, str) {
78498
- let match;
78558
+ let match2;
78499
78559
  const matches = [];
78500
- while (match = re.exec(str)) {
78501
- matches.push(match);
78560
+ while (match2 = re.exec(str)) {
78561
+ matches.push(match2);
78502
78562
  }
78503
78563
  return matches;
78504
78564
  }
78505
78565
  if (searchValue.global) {
78506
78566
  const matches = matchAll(searchValue, this.original);
78507
- matches.forEach((match) => {
78508
- if (match.index != null)
78567
+ matches.forEach((match2) => {
78568
+ if (match2.index != null)
78509
78569
  this.overwrite(
78510
- match.index,
78511
- match.index + match[0].length,
78512
- getReplacement(match, this.original)
78570
+ match2.index,
78571
+ match2.index + match2[0].length,
78572
+ getReplacement(match2, this.original)
78513
78573
  );
78514
78574
  });
78515
78575
  } else {
78516
- const match = this.original.match(searchValue);
78517
- if (match && match.index != null)
78576
+ const match2 = this.original.match(searchValue);
78577
+ if (match2 && match2.index != null)
78518
78578
  this.overwrite(
78519
- match.index,
78520
- match.index + match[0].length,
78521
- getReplacement(match, this.original)
78579
+ match2.index,
78580
+ match2.index + match2[0].length,
78581
+ getReplacement(match2, this.original)
78522
78582
  );
78523
78583
  }
78524
78584
  return this;
@@ -78722,8 +78782,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78722
78782
  trailingNewline = source2.content.lastChar() === "\n";
78723
78783
  });
78724
78784
  if (this.intro) {
78725
- this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (match, index) => {
78726
- return index > 0 ? indentStr + match : match;
78785
+ this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (match2, index) => {
78786
+ return index > 0 ? indentStr + match2 : match2;
78727
78787
  });
78728
78788
  }
78729
78789
  return this;
@@ -79004,8 +79064,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
79004
79064
  exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
79005
79065
  exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
79006
79066
  exports2.removeBackslashes = (str) => {
79007
- return str.replace(REGEX_REMOVE_BACKSLASH, (match) => {
79008
- return match === "\\" ? "" : match;
79067
+ return str.replace(REGEX_REMOVE_BACKSLASH, (match2) => {
79068
+ return match2 === "\\" ? "" : match2;
79009
79069
  });
79010
79070
  };
79011
79071
  exports2.supportsLookbehinds = () => {
@@ -79622,10 +79682,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
79622
79682
  push2({ type: "text", value: value2 });
79623
79683
  continue;
79624
79684
  }
79625
- const match = /^\\+/.exec(remaining());
79685
+ const match2 = /^\\+/.exec(remaining());
79626
79686
  let slashes = 0;
79627
- if (match && match[0].length > 2) {
79628
- slashes = match[0].length;
79687
+ if (match2 && match2[0].length > 2) {
79688
+ slashes = match2[0].length;
79629
79689
  state.index += slashes;
79630
79690
  if (slashes % 2 !== 0) {
79631
79691
  value2 += "\\";
@@ -79913,10 +79973,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
79913
79973
  if (value2 === "$" || value2 === "^") {
79914
79974
  value2 = `\\${value2}`;
79915
79975
  }
79916
- const match = REGEX_NON_SPECIAL_CHARS.exec(remaining());
79917
- if (match) {
79918
- value2 += match[0];
79919
- state.index += match[0].length;
79976
+ const match2 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
79977
+ if (match2) {
79978
+ value2 += match2[0];
79979
+ state.index += match2[0].length;
79920
79980
  }
79921
79981
  push2({ type: "text", value: value2 });
79922
79982
  continue;
@@ -80127,11 +80187,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80127
80187
  case "**/.*":
80128
80188
  return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
80129
80189
  default: {
80130
- const match = /^(.*?)\.(\w+)$/.exec(str);
80131
- if (!match) return;
80132
- const source3 = create(match[1]);
80190
+ const match2 = /^(.*?)\.(\w+)$/.exec(str);
80191
+ if (!match2) return;
80192
+ const source3 = create(match2[1]);
80133
80193
  if (!source3) return;
80134
- return source3 + DOT_LITERAL + match[2];
80194
+ return source3 + DOT_LITERAL + match2[2];
80135
80195
  }
80136
80196
  }
80137
80197
  };
@@ -80181,8 +80241,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80181
80241
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
80182
80242
  }
80183
80243
  const matcher = (input, returnObject = false) => {
80184
- const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
80185
- const result = { glob, state, regex, posix, input, output, match, isMatch };
80244
+ const { isMatch, match: match2, output } = picomatch.test(input, regex, options, { glob, posix });
80245
+ const result = { glob, state, regex, posix, input, output, match: match2, isMatch };
80186
80246
  if (typeof opts.onResult === "function") {
80187
80247
  opts.onResult(result);
80188
80248
  }
@@ -80216,20 +80276,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80216
80276
  }
80217
80277
  const opts = options || {};
80218
80278
  const format = opts.format || (posix ? utils.toPosixSlashes : null);
80219
- let match = input === glob;
80220
- let output = match && format ? format(input) : input;
80221
- if (match === false) {
80279
+ let match2 = input === glob;
80280
+ let output = match2 && format ? format(input) : input;
80281
+ if (match2 === false) {
80222
80282
  output = format ? format(input) : input;
80223
- match = output === glob;
80283
+ match2 = output === glob;
80224
80284
  }
80225
- if (match === false || opts.capture === true) {
80285
+ if (match2 === false || opts.capture === true) {
80226
80286
  if (opts.matchBase === true || opts.basename === true) {
80227
- match = picomatch.matchBase(input, regex, options, posix);
80287
+ match2 = picomatch.matchBase(input, regex, options, posix);
80228
80288
  } else {
80229
- match = regex.exec(output);
80289
+ match2 = regex.exec(output);
80230
80290
  }
80231
80291
  }
80232
- return { isMatch: Boolean(match), match, output };
80292
+ return { isMatch: Boolean(match2), match: match2, output };
80233
80293
  };
80234
80294
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
80235
80295
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
@@ -80730,8 +80790,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80730
80790
  exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
80731
80791
  exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
80732
80792
  exports2.removeBackslashes = (str) => {
80733
- return str.replace(REGEX_REMOVE_BACKSLASH, (match) => {
80734
- return match === "\\" ? "" : match;
80793
+ return str.replace(REGEX_REMOVE_BACKSLASH, (match2) => {
80794
+ return match2 === "\\" ? "" : match2;
80735
80795
  });
80736
80796
  };
80737
80797
  exports2.supportsLookbehinds = () => {
@@ -81348,10 +81408,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
81348
81408
  push2({ type: "text", value: value2 });
81349
81409
  continue;
81350
81410
  }
81351
- const match = /^\\+/.exec(remaining());
81411
+ const match2 = /^\\+/.exec(remaining());
81352
81412
  let slashes = 0;
81353
- if (match && match[0].length > 2) {
81354
- slashes = match[0].length;
81413
+ if (match2 && match2[0].length > 2) {
81414
+ slashes = match2[0].length;
81355
81415
  state.index += slashes;
81356
81416
  if (slashes % 2 !== 0) {
81357
81417
  value2 += "\\";
@@ -81639,10 +81699,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
81639
81699
  if (value2 === "$" || value2 === "^") {
81640
81700
  value2 = `\\${value2}`;
81641
81701
  }
81642
- const match = REGEX_NON_SPECIAL_CHARS.exec(remaining());
81643
- if (match) {
81644
- value2 += match[0];
81645
- state.index += match[0].length;
81702
+ const match2 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
81703
+ if (match2) {
81704
+ value2 += match2[0];
81705
+ state.index += match2[0].length;
81646
81706
  }
81647
81707
  push2({ type: "text", value: value2 });
81648
81708
  continue;
@@ -81853,11 +81913,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
81853
81913
  case "**/.*":
81854
81914
  return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
81855
81915
  default: {
81856
- const match = /^(.*?)\.(\w+)$/.exec(str);
81857
- if (!match) return;
81858
- const source3 = create(match[1]);
81916
+ const match2 = /^(.*?)\.(\w+)$/.exec(str);
81917
+ if (!match2) return;
81918
+ const source3 = create(match2[1]);
81859
81919
  if (!source3) return;
81860
- return source3 + DOT_LITERAL + match[2];
81920
+ return source3 + DOT_LITERAL + match2[2];
81861
81921
  }
81862
81922
  }
81863
81923
  };
@@ -81907,8 +81967,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
81907
81967
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
81908
81968
  }
81909
81969
  const matcher = (input, returnObject = false) => {
81910
- const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
81911
- const result = { glob, state, regex, posix, input, output, match, isMatch };
81970
+ const { isMatch, match: match2, output } = picomatch.test(input, regex, options, { glob, posix });
81971
+ const result = { glob, state, regex, posix, input, output, match: match2, isMatch };
81912
81972
  if (typeof opts.onResult === "function") {
81913
81973
  opts.onResult(result);
81914
81974
  }
@@ -81942,20 +82002,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
81942
82002
  }
81943
82003
  const opts = options || {};
81944
82004
  const format = opts.format || (posix ? utils.toPosixSlashes : null);
81945
- let match = input === glob;
81946
- let output = match && format ? format(input) : input;
81947
- if (match === false) {
82005
+ let match2 = input === glob;
82006
+ let output = match2 && format ? format(input) : input;
82007
+ if (match2 === false) {
81948
82008
  output = format ? format(input) : input;
81949
- match = output === glob;
82009
+ match2 = output === glob;
81950
82010
  }
81951
- if (match === false || opts.capture === true) {
82011
+ if (match2 === false || opts.capture === true) {
81952
82012
  if (opts.matchBase === true || opts.basename === true) {
81953
- match = picomatch.matchBase(input, regex, options, posix);
82013
+ match2 = picomatch.matchBase(input, regex, options, posix);
81954
82014
  } else {
81955
- match = regex.exec(output);
82015
+ match2 = regex.exec(output);
81956
82016
  }
81957
82017
  }
81958
- return { isMatch: Boolean(match), match, output };
82018
+ return { isMatch: Boolean(match2), match: match2, output };
81959
82019
  };
81960
82020
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
81961
82021
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
@@ -82114,10 +82174,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
82114
82174
  if (typeof str !== "string" || str === "") {
82115
82175
  return false;
82116
82176
  }
82117
- var match;
82118
- while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
82119
- if (match[2]) return true;
82120
- str = str.slice(match.index + match[0].length);
82177
+ var match2;
82178
+ while (match2 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
82179
+ if (match2[2]) return true;
82180
+ str = str.slice(match2.index + match2[0].length);
82121
82181
  }
82122
82182
  return false;
82123
82183
  };
@@ -85859,17 +85919,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
85859
85919
  for (; ; ) {
85860
85920
  skipWhiteSpace.lastIndex = start;
85861
85921
  start += skipWhiteSpace.exec(this.input)[0].length;
85862
- var match = literal2.exec(this.input.slice(start));
85863
- if (!match) {
85922
+ var match2 = literal2.exec(this.input.slice(start));
85923
+ if (!match2) {
85864
85924
  return false;
85865
85925
  }
85866
- if ((match[1] || match[2]) === "use strict") {
85867
- skipWhiteSpace.lastIndex = start + match[0].length;
85926
+ if ((match2[1] || match2[2]) === "use strict") {
85927
+ skipWhiteSpace.lastIndex = start + match2[0].length;
85868
85928
  var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;
85869
85929
  var next = this.input.charAt(end);
85870
85930
  return next === ";" || next === "}" || lineBreak.test(spaceAfter[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=");
85871
85931
  }
85872
- start += match[0].length;
85932
+ start += match2[0].length;
85873
85933
  skipWhiteSpace.lastIndex = start;
85874
85934
  start += skipWhiteSpace.exec(this.input)[0].length;
85875
85935
  if (this.input[start] === ";") {
@@ -91212,17 +91272,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
91212
91272
  var streamChunksOfRawSource = (source2, onChunk, onSource, onName) => {
91213
91273
  let line2 = 1;
91214
91274
  const matches = splitIntoLines(source2);
91215
- let match;
91216
- for (match of matches) {
91217
- onChunk(match, line2, 0, -1, -1, -1, -1);
91275
+ let match2;
91276
+ for (match2 of matches) {
91277
+ onChunk(match2, line2, 0, -1, -1, -1, -1);
91218
91278
  line2++;
91219
91279
  }
91220
- return matches.length === 0 || match.endsWith("\n") ? {
91280
+ return matches.length === 0 || match2.endsWith("\n") ? {
91221
91281
  generatedLine: matches.length + 1,
91222
91282
  generatedColumn: 0
91223
91283
  } : {
91224
91284
  generatedLine: matches.length,
91225
- generatedColumn: match.length
91285
+ generatedColumn: match2.length
91226
91286
  };
91227
91287
  };
91228
91288
  module2.exports = (source2, onChunk, onSource, onName, finalSource) => {
@@ -91656,19 +91716,19 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
91656
91716
  let line2 = 1;
91657
91717
  let column2 = 0;
91658
91718
  if (matches !== null) {
91659
- for (const match of matches) {
91660
- const isEndOfLine = match.endsWith("\n");
91661
- if (isEndOfLine && match.length === 1) {
91662
- if (!finalSource) onChunk(match, line2, column2, -1, -1, -1, -1);
91719
+ for (const match2 of matches) {
91720
+ const isEndOfLine = match2.endsWith("\n");
91721
+ if (isEndOfLine && match2.length === 1) {
91722
+ if (!finalSource) onChunk(match2, line2, column2, -1, -1, -1, -1);
91663
91723
  } else {
91664
- const chunk = finalSource ? void 0 : match;
91724
+ const chunk = finalSource ? void 0 : match2;
91665
91725
  onChunk(chunk, line2, column2, 0, line2, column2, -1);
91666
91726
  }
91667
91727
  if (isEndOfLine) {
91668
91728
  line2++;
91669
91729
  column2 = 0;
91670
91730
  } else {
91671
- column2 += match.length;
91731
+ column2 += match2.length;
91672
91732
  }
91673
91733
  }
91674
91734
  }
@@ -91691,18 +91751,18 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
91691
91751
  } else {
91692
91752
  let line2 = 1;
91693
91753
  const matches = splitIntoLines(this._value);
91694
- let match;
91695
- for (match of matches) {
91696
- onChunk(finalSource ? void 0 : match, line2, 0, 0, line2, 0, -1);
91754
+ let match2;
91755
+ for (match2 of matches) {
91756
+ onChunk(finalSource ? void 0 : match2, line2, 0, 0, line2, 0, -1);
91697
91757
  line2++;
91698
91758
  }
91699
- return matches.length === 0 || match.endsWith("\n") ? {
91759
+ return matches.length === 0 || match2.endsWith("\n") ? {
91700
91760
  generatedLine: matches.length + 1,
91701
91761
  generatedColumn: 0,
91702
91762
  source: finalSource ? this._value : void 0
91703
91763
  } : {
91704
91764
  generatedLine: matches.length,
91705
- generatedColumn: match.length,
91765
+ generatedColumn: match2.length,
91706
91766
  source: finalSource ? this._value : void 0
91707
91767
  };
91708
91768
  }
@@ -93975,13 +94035,13 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
93975
94035
  return input.startsWith("/");
93976
94036
  }
93977
94037
  function parseAbsoluteUrl(input) {
93978
- const match = urlRegex.exec(input);
94038
+ const match2 = urlRegex.exec(input);
93979
94039
  return {
93980
- scheme: match[1],
93981
- user: match[2] || "",
93982
- host: match[3],
93983
- port: match[4] || "",
93984
- path: match[5] || "/",
94040
+ scheme: match2[1],
94041
+ user: match2[2] || "",
94042
+ host: match2[3],
94043
+ port: match2[4] || "",
94044
+ path: match2[5] || "/",
93985
94045
  relativePath: false
93986
94046
  };
93987
94047
  }
@@ -95297,10 +95357,10 @@ Did you specify these with the most recent transformation maps first?`);
95297
95357
  const obj = {};
95298
95358
  let lines = src.toString();
95299
95359
  lines = lines.replace(/\r\n?/mg, "\n");
95300
- let match;
95301
- while ((match = LINE.exec(lines)) != null) {
95302
- const key2 = match[1];
95303
- let value2 = match[2] || "";
95360
+ let match2;
95361
+ while ((match2 = LINE.exec(lines)) != null) {
95362
+ const key2 = match2[1];
95363
+ let value2 = match2[2] || "";
95304
95364
  value2 = value2.trim();
95305
95365
  const maybeQuote = value2[0];
95306
95366
  value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
@@ -95790,7 +95850,7 @@ Did you specify these with the most recent transformation maps first?`);
95790
95850
  "use strict";
95791
95851
  var path = __require("path");
95792
95852
  var locatePath = require_locate_path();
95793
- var pathExists = require_path_exists();
95853
+ var pathExists2 = require_path_exists();
95794
95854
  var stop = Symbol("findUp.stop");
95795
95855
  module2.exports = async (name, options = {}) => {
95796
95856
  let directory = path.resolve(options.cwd || "");
@@ -95848,8 +95908,8 @@ Did you specify these with the most recent transformation maps first?`);
95848
95908
  directory = path.dirname(directory);
95849
95909
  }
95850
95910
  };
95851
- module2.exports.exists = pathExists;
95852
- module2.exports.sync.exists = pathExists.sync;
95911
+ module2.exports.exists = pathExists2;
95912
+ module2.exports.sync.exists = pathExists2.sync;
95853
95913
  module2.exports.stop = stop;
95854
95914
  }
95855
95915
  });
@@ -96495,14 +96555,14 @@ Did you specify these with the most recent transformation maps first?`);
96495
96555
  return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path2 ? `${path2}/` : path2}${projectId}`;
96496
96556
  }
96497
96557
  function dsnFromString2(str) {
96498
- const match = DSN_REGEX.exec(str);
96499
- if (!match) {
96558
+ const match2 = DSN_REGEX.exec(str);
96559
+ if (!match2) {
96500
96560
  consoleSandbox(() => {
96501
96561
  console.error(`Invalid Sentry Dsn: ${str}`);
96502
96562
  });
96503
96563
  return void 0;
96504
96564
  }
96505
- const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match.slice(1);
96565
+ const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match2.slice(1);
96506
96566
  let path2 = "";
96507
96567
  let projectId = lastPath;
96508
96568
  const split = projectId.split("/");
@@ -100853,9 +100913,9 @@ Reason: ${reason}`
100853
100913
  version = version.slice(1);
100854
100914
  }
100855
100915
  var regex = /^[\^~]?(\d+)(\.\d+)?(\.\d+)?(-.+)?/;
100856
- var match = version.match(regex);
100857
- if (match) {
100858
- return parseInt(match[1], 10);
100916
+ var match2 = version.match(regex);
100917
+ if (match2) {
100918
+ return parseInt(match2[1], 10);
100859
100919
  }
100860
100920
  var coerced = parseInt(version, 10);
100861
100921
  if (!Number.isNaN(coerced)) {
@@ -101510,9 +101570,9 @@ Reason: ${reason}`
101510
101570
  return _prepareBundleForDebugIdUpload.apply(this, arguments);
101511
101571
  }
101512
101572
  function determineDebugIdFromBundleSource(code) {
101513
- var match = 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})/);
101514
- if (match) {
101515
- return match[1];
101573
+ var match2 = 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})/);
101574
+ if (match2) {
101575
+ return match2[1];
101516
101576
  } else {
101517
101577
  return void 0;
101518
101578
  }
@@ -102571,9 +102631,9 @@ Reason: ${reason}`
102571
102631
  var ms = new MagicString__default["default"](code, {
102572
102632
  filename: chunk.fileName
102573
102633
  });
102574
- var match = (_code$match = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match === void 0 ? void 0 : _code$match[0];
102575
- if (match) {
102576
- ms.appendLeft(match.length, codeToInject);
102634
+ var match2 = (_code$match = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match === void 0 ? void 0 : _code$match[0];
102635
+ if (match2) {
102636
+ ms.appendLeft(match2.length, codeToInject);
102577
102637
  } else {
102578
102638
  ms.prepend(codeToInject);
102579
102639
  }
@@ -102603,9 +102663,9 @@ Reason: ${reason}`
102603
102663
  var ms = new MagicString__default["default"](code, {
102604
102664
  filename: chunk.fileName
102605
102665
  });
102606
- var match = (_code$match2 = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match2 === void 0 ? void 0 : _code$match2[0];
102607
- if (match) {
102608
- ms.appendLeft(match.length, injectionCode);
102666
+ var match2 = (_code$match2 = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match2 === void 0 ? void 0 : _code$match2[0];
102667
+ if (match2) {
102668
+ ms.appendLeft(match2.length, injectionCode);
102609
102669
  } else {
102610
102670
  ms.prepend(injectionCode);
102611
102671
  }
@@ -107272,11 +107332,11 @@ ${error.errors.map(formatZodIssue).join("\n")}`,
107272
107332
  };
107273
107333
  }
107274
107334
  function dsnFromString(str) {
107275
- const match = SENTRY_DSN_REGEX.exec(str);
107276
- if (!match) {
107335
+ const match2 = SENTRY_DSN_REGEX.exec(str);
107336
+ if (!match2) {
107277
107337
  throw new Error("Invalid DSN");
107278
107338
  }
107279
- const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match.slice(1);
107339
+ const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match2.slice(1);
107280
107340
  let path = "";
107281
107341
  let projectId = lastPath;
107282
107342
  const split = projectId.split("/");
@@ -107387,6 +107447,120 @@ window.sentryOnLoad = function () {
107387
107447
  }
107388
107448
  });
107389
107449
 
107450
+ // ../cli-astro-commands/src/components/DevCommand/index.ts
107451
+ init_esm_shims();
107452
+
107453
+ // ../cli-astro-commands/src/components/DevCommand/DevCommand.tsx
107454
+ init_esm_shims();
107455
+ var import_react5 = __toESM(require_react(), 1);
107456
+
107457
+ // ../cli-astro-commands/src/components/DevCommand/DevScreenBorder.tsx
107458
+ init_esm_shims();
107459
+ var import_react = __toESM(require_react(), 1);
107460
+ var DevScreenBorder = ({ children }) => {
107461
+ return /* @__PURE__ */ import_react.default.createElement(
107462
+ Box_default,
107463
+ {
107464
+ flexDirection: "column",
107465
+ borderTop: true,
107466
+ borderLeft: false,
107467
+ borderBottom: false,
107468
+ borderRight: false,
107469
+ borderStyle: "round",
107470
+ borderColor: "blueBright",
107471
+ width: "95%"
107472
+ },
107473
+ children
107474
+ );
107475
+ };
107476
+
107477
+ // ../cli-astro-commands/src/components/DevCommand/utils/runAstroDev.ts
107478
+ init_esm_shims();
107479
+ var EVENT_LINE = "line";
107480
+ var EVENT_SERVER_ADDRESS = "server_address";
107481
+ function runAstroDev({
107482
+ packageManager,
107483
+ projectFolder,
107484
+ port,
107485
+ allowedHosts
107486
+ }) {
107487
+ const binaryArgs = ["astro", "dev"];
107488
+ if (port) {
107489
+ binaryArgs.push("--port", `${port}`);
107490
+ }
107491
+ if (allowedHosts) {
107492
+ binaryArgs.push("--allowed-hosts", allowedHosts);
107493
+ }
107494
+ const { file, args } = packageManager.getRunBinaryCmd(binaryArgs);
107495
+ const result = execa(file, args, {
107496
+ cwd: projectFolder,
107497
+ stdio: "pipe",
107498
+ env: { FORCE_COLOR: "1" },
107499
+ cleanup: true
107500
+ });
107501
+ let stdoutBuffer = "";
107502
+ result.stdout?.on("data", (chunk) => {
107503
+ stdoutBuffer += chunk.toString();
107504
+ const lines = stdoutBuffer.split("\n");
107505
+ stdoutBuffer = lines.pop() ?? "";
107506
+ for (const line of lines) {
107507
+ result.stdout?.emit(EVENT_LINE, line);
107508
+ if (line.includes("http://")) {
107509
+ const match2 = /(http:\/\/[^\s]+)/.exec(line);
107510
+ if (match2?.[1]) {
107511
+ const address = stripAnsi(match2[1]).trim();
107512
+ result.stdout?.emit(EVENT_SERVER_ADDRESS, address);
107513
+ }
107514
+ }
107515
+ }
107516
+ });
107517
+ let stdErrBuffer = "";
107518
+ result.stderr?.on("data", (chunk) => {
107519
+ stdErrBuffer += chunk.toString();
107520
+ const lines = stdErrBuffer.split("\n");
107521
+ stdErrBuffer = lines.pop() ?? "";
107522
+ for (const line of lines) {
107523
+ result.stderr?.emit(EVENT_LINE, line);
107524
+ }
107525
+ });
107526
+ return result;
107527
+ }
107528
+
107529
+ // ../cli-astro-commands/src/components/DevCommand/utils/createAstroLogger.tsx
107530
+ init_esm_shims();
107531
+ var import_react2 = __toESM(require_react(), 1);
107532
+ var dateTimeFormat = new Intl.DateTimeFormat([], {
107533
+ hour: "2-digit",
107534
+ minute: "2-digit",
107535
+ second: "2-digit",
107536
+ hour12: false
107537
+ });
107538
+ function createAstroLogger(isPrefixed = true) {
107539
+ const renderer = createRendererToString({ stripAnsi: false });
107540
+ const log = (msg) => {
107541
+ if (typeof msg === "string") {
107542
+ setTimeout(() => console.log(msg), 0);
107543
+ } else {
107544
+ setTimeout(() => console.log(renderer.render(msg)), 0);
107545
+ }
107546
+ };
107547
+ const prefixedLog = (msg) => {
107548
+ const timestamp = dateTimeFormat.format(/* @__PURE__ */ new Date());
107549
+ 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));
107550
+ console.log(renderer.render(log2));
107551
+ };
107552
+ return isPrefixed ? { log: prefixedLog } : { log };
107553
+ }
107554
+
107555
+ // ../cli-astro-commands/src/components/DevCommand/DevCenterUpdater.tsx
107556
+ init_esm_shims();
107557
+ var import_react4 = __toESM(require_react(), 1);
107558
+ import { isDeepStrictEqual } from "node:util";
107559
+ var import_variant3 = __toESM(require_lib(), 1);
107560
+
107561
+ // ../cli-astro-commands/src/files/app.config.ts
107562
+ init_esm_shims();
107563
+
107390
107564
  // ../cli-app-definitions/src/index.ts
107391
107565
  init_esm_shims();
107392
107566
  var import_variant = __toESM(require_lib(), 1);
@@ -107421,9 +107595,6 @@ var SITE_PLUGINS_DIR = join(SITE_DIR, "plugins", CUSTOM_ELEMENTS_DIR);
107421
107595
  var BLOCKS_WIDGETS_DIR = join(SITE_DIR, "widgets", "blocks");
107422
107596
  var RELATIVE_ASSET_PATH_REGEX = /^(?:\.\.?[\\/])*[\w\-+]+([\\/][\w\-+]+)*\.(jpg|svg|png)$/;
107423
107597
  var HTTP_REGEX = /^(https?):\/\/[^\s/$.?#].[^\s]*$/;
107424
- function getServicePluginsFolder(projectFolder) {
107425
- return join(projectFolder, SERVICE_PLUGINS_DIR);
107426
- }
107427
107598
  function getAppConfigPath(projectFolder) {
107428
107599
  return join(projectFolder, APP_CONFIG_PATH);
107429
107600
  }
@@ -107795,10 +107966,251 @@ var siteComponentPanelConfigSchema = z.object({
107795
107966
  height: z.number().min(150).optional().describe("Initial height of the panel while loading, in pixels.")
107796
107967
  }).strict();
107797
107968
 
107969
+ // ../cli-astro-commands/src/files/app.config.ts
107970
+ async function readAppConfig(projectFolder, writeDebugLog) {
107971
+ const configPath = getAppConfigPath(projectFolder);
107972
+ const isConfigExist = await pathExists(configPath);
107973
+ if (!isConfigExist) {
107974
+ return null;
107975
+ }
107976
+ try {
107977
+ const json = await readJson(configPath);
107978
+ const appConfig = await appConfigSchema.safeParseAsync(json);
107979
+ if (!appConfig.success) {
107980
+ return null;
107981
+ }
107982
+ return appConfig.data;
107983
+ } catch (e) {
107984
+ writeDebugLog?.(e);
107985
+ return null;
107986
+ }
107987
+ }
107988
+ async function saveAppConfig(projectFolder, config) {
107989
+ const currentConfig = await readAppConfig(projectFolder) ?? {};
107990
+ const newConfig = {
107991
+ ...currentConfig,
107992
+ ...config
107993
+ };
107994
+ await writeJson(getAppConfigPath(projectFolder), newConfig);
107995
+ }
107996
+
107997
+ // ../cli-astro-commands/src/components/DevCommand/utils/isTunnelRequired.ts
107998
+ init_esm_shims();
107999
+ function isTunnelRequired(appManifest) {
108000
+ for (const extension of appManifest.components) {
108001
+ const knownAppManifest = parseKnownExtensionManifest(extension);
108002
+ if (knownAppManifest != null && knownAppManifest.compType === ComponentType.WEBHOOK) {
108003
+ return !URL.canParse(knownAppManifest.compData.webhook.callbackUrl);
108004
+ }
108005
+ }
108006
+ return false;
108007
+ }
108008
+ function parseKnownExtensionManifest(extensionManifest) {
108009
+ const appManifestResult = looseComponentSchema.safeParse(extensionManifest);
108010
+ if (appManifestResult.error) {
108011
+ return null;
108012
+ }
108013
+ return appManifestResult.data;
108014
+ }
108015
+
108016
+ // ../cli-astro-commands/src/components/DevCommand/TunnelingConsent.tsx
108017
+ init_esm_shims();
108018
+ var import_react3 = __toESM(require_react(), 1);
108019
+ var import_variant2 = __toESM(require_lib(), 1);
108020
+ var TunnelingConsent = ({ required, children }) => {
108021
+ const exit = useExit();
108022
+ const [approved, setApproved] = (0, import_react3.useState)();
108023
+ const { status } = useAsync(async () => {
108024
+ const config = await readUserConfig();
108025
+ if (config.tunneling) {
108026
+ setApproved(true);
108027
+ }
108028
+ return config;
108029
+ }, []);
108030
+ if (!required || approved) {
108031
+ return children;
108032
+ }
108033
+ return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, (0, import_variant2.match)(status, {
108034
+ Success: () => /* @__PURE__ */ import_react3.default.createElement(
108035
+ ConfirmInput,
108036
+ {
108037
+ label: "To proceed, we'll set up a secure tunnel from your machine for development purposes",
108038
+ initialValue: true,
108039
+ onSubmit: async (approved2) => {
108040
+ setApproved(approved2);
108041
+ await updateUserConfig({ tunneling: approved2 });
108042
+ if (!approved2) {
108043
+ exit();
108044
+ }
108045
+ }
108046
+ }
108047
+ ),
108048
+ Error: () => null,
108049
+ Loading: () => null
108050
+ }), approved === false && /* @__PURE__ */ import_react3.default.createElement(Text, { skin: "error" }, "Operation aborted. Tunneling is necessary to run your application."));
108051
+ };
108052
+
108053
+ // ../cli-astro-commands/src/components/DevCommand/DevCenterUpdater.tsx
108054
+ var DevCenterUpdateResult = (0, import_variant3.variant)({
108055
+ Changed: (0, import_variant3.fields)(),
108056
+ Unchanged: {}
108057
+ });
108058
+ var DevCenterUpdater = ({ serverLocalUrl, serverExposedUrl }) => {
108059
+ const [devArmTag, setDevArmTag] = (0, import_react4.useState)("");
108060
+ const [manifest, setManifest] = (0, import_react4.useState)(null);
108061
+ const {
108062
+ model: {
108063
+ config: { siteId, appId },
108064
+ projectFolder
108065
+ }
108066
+ } = useProjectModel();
108067
+ const logger = (0, import_react4.useMemo)(() => createAstroLogger(), []);
108068
+ const http = useHttpClient({ type: "standalone" });
108069
+ const { updateManifest } = useUpdateManifest();
108070
+ const arm = useARMClient();
108071
+ const updateDeploymentTopology = useUpdateDeploymentTopology();
108072
+ const openTunnel = useTunnel();
108073
+ const tunnelUrl = (0, import_react4.useRef)();
108074
+ const [tunnelRequired, setTunnelRequired] = (0, import_react4.useState)(false);
108075
+ const updateDevCenter = (0, import_react4.useCallback)(async () => {
108076
+ const url = new URL("/_wix/app-manifest.json", serverLocalUrl).href;
108077
+ const { data: responseFromDevServer } = await http.get(url);
108078
+ const latestManifest = looseAppManifestSchema.parse(responseFromDevServer);
108079
+ if (isDeepStrictEqual(manifest, latestManifest)) {
108080
+ return DevCenterUpdateResult.Unchanged();
108081
+ }
108082
+ if (!serverExposedUrl && !tunnelUrl.current && isTunnelRequired(latestManifest)) {
108083
+ const config = await readUserConfig();
108084
+ if (!config.tunneling) {
108085
+ setTunnelRequired(true);
108086
+ return DevCenterUpdateResult.Unchanged();
108087
+ }
108088
+ const serverLocalPort = parseInt(new URL(serverLocalUrl).port, 10);
108089
+ const tunnel = await openTunnel(serverLocalPort);
108090
+ tunnelUrl.current = tunnel.url;
108091
+ }
108092
+ const baseUrl = serverExposedUrl ?? serverLocalUrl;
108093
+ const appConfig = await readAppConfig(projectFolder);
108094
+ let updatedDevArmTag = appConfig?.devArmTag;
108095
+ if (!updatedDevArmTag) {
108096
+ updatedDevArmTag = await arm.createLooseAppRelease(
108097
+ updateManifest(latestManifest, baseUrl, tunnelUrl.current),
108098
+ appId
108099
+ );
108100
+ } else {
108101
+ const updateState = await arm.updateLooseAppRelease(
108102
+ updateManifest(latestManifest, baseUrl, tunnelUrl.current),
108103
+ updatedDevArmTag
108104
+ );
108105
+ if (!(0, import_variant3.isType)(updateState, "TagUpdated")) {
108106
+ updatedDevArmTag = await arm.createLooseAppRelease(
108107
+ updateManifest(latestManifest, baseUrl, tunnelUrl.current),
108108
+ appId
108109
+ );
108110
+ }
108111
+ }
108112
+ if (updatedDevArmTag !== appConfig?.devArmTag) {
108113
+ await saveAppConfig(projectFolder, { devArmTag: updatedDevArmTag });
108114
+ }
108115
+ setManifest(latestManifest);
108116
+ setDevArmTag(updatedDevArmTag);
108117
+ await updateDeploymentTopology.execute({
108118
+ serverUrl: baseUrl,
108119
+ armTag: updatedDevArmTag,
108120
+ environment: "development"
108121
+ });
108122
+ const armTagChanged = !!appConfig?.devArmTag && updatedDevArmTag !== appConfig.devArmTag;
108123
+ return DevCenterUpdateResult.Changed({ armTagChanged });
108124
+ }, [
108125
+ http,
108126
+ updateManifest,
108127
+ serverLocalUrl,
108128
+ serverExposedUrl,
108129
+ arm,
108130
+ manifest,
108131
+ projectFolder,
108132
+ appId,
108133
+ updateDeploymentTopology,
108134
+ openTunnel
108135
+ ]);
108136
+ const [timer, setTimer] = (0, import_react4.useState)(Date.now());
108137
+ (0, import_react4.useEffect)(() => {
108138
+ let disposed = false;
108139
+ void updateDevCenter().then((result) => {
108140
+ if ((0, import_variant3.isType)(result, "Changed")) {
108141
+ logger.log(
108142
+ "App Manifest updated. Refresh existing browser tabs to view the latest changes."
108143
+ );
108144
+ }
108145
+ }).catch((error) => {
108146
+ logger.log("Failed to update App Manifest");
108147
+ logger.log(`${error}`);
108148
+ }).then(() => {
108149
+ if (!disposed) {
108150
+ setTimeout(() => setTimer(Date.now()), 1e3);
108151
+ }
108152
+ });
108153
+ return () => {
108154
+ disposed = true;
108155
+ };
108156
+ }, [timer]);
108157
+ return /* @__PURE__ */ import_react4.default.createElement(Box_default, { rowGap: 1, marginY: 1, flexDirection: "column" }, /* @__PURE__ */ import_react4.default.createElement(TunnelingConsent, { required: tunnelRequired }, /* @__PURE__ */ import_react4.default.createElement(Text, null, "Open the preview on:"), /* @__PURE__ */ import_react4.default.createElement(Box_default, { paddingLeft: 2, flexDirection: "column" }, /* @__PURE__ */ import_react4.default.createElement(PlatformLink, { url: serverLocalUrl, label: "Site" }), devArmTag ? /* @__PURE__ */ import_react4.default.createElement(
108158
+ PlatformLink,
108159
+ {
108160
+ url: `https://manage.wix.com/dashboard/${siteId}?apps-override=${devArmTag}`,
108161
+ label: "Dashboard"
108162
+ }
108163
+ ) : /* @__PURE__ */ import_react4.default.createElement(Spinner, { text: "Preparing your dashboard..." }))));
108164
+ };
108165
+
108166
+ // ../cli-astro-commands/src/components/DevCommand/DevCommand.tsx
108167
+ var DevCommand = ({
108168
+ port,
108169
+ allowedHosts,
108170
+ serverExposedUrl
108171
+ }) => {
108172
+ const [serverLocalUrl, setServerLocalUrl] = (0, import_react5.useState)("");
108173
+ const {
108174
+ model: {
108175
+ config: { siteId },
108176
+ projectFolder
108177
+ }
108178
+ } = useProjectModel();
108179
+ const logger = (0, import_react5.useMemo)(() => createAstroLogger(false), []);
108180
+ const astroProcess = (0, import_react5.useRef)();
108181
+ useAsync(async () => {
108182
+ const repoType = await getRepoType(projectFolder);
108183
+ const packageManager = await createPackageManager(repoType);
108184
+ const astro = runAstroDev({
108185
+ packageManager,
108186
+ projectFolder,
108187
+ port,
108188
+ allowedHosts
108189
+ });
108190
+ astroProcess.current = astro;
108191
+ astro.stdout?.once(EVENT_SERVER_ADDRESS, (address) => {
108192
+ setServerLocalUrl(address);
108193
+ });
108194
+ astro.stdout?.on(EVENT_LINE, (line) => logger.log(line));
108195
+ astro.stderr?.on(EVENT_LINE, (line) => logger.log(line));
108196
+ }, []);
108197
+ (0, import_react5.useEffect)(() => {
108198
+ return () => {
108199
+ if (astroProcess.current?.pid) {
108200
+ astroProcess.current.kill("SIGTERM");
108201
+ }
108202
+ };
108203
+ }, []);
108204
+ return /* @__PURE__ */ import_react5.default.createElement(SiteAuthProvider, { siteId }, serverLocalUrl ? /* @__PURE__ */ import_react5.default.createElement(DevScreenBorder, null, /* @__PURE__ */ import_react5.default.createElement(Text, null, "Development environment ready"), /* @__PURE__ */ import_react5.default.createElement(
108205
+ DevCenterUpdater,
108206
+ {
108207
+ serverLocalUrl,
108208
+ serverExposedUrl
108209
+ }
108210
+ )) : /* @__PURE__ */ import_react5.default.createElement(Spinner, { text: "Starting dev environment..." }));
108211
+ };
107798
108212
  export {
107799
- getServicePluginsFolder,
107800
- getAppConfigPath,
107801
- appConfigSchema
108213
+ DevCommand
107802
108214
  };
107803
108215
  /*! Bundled license information:
107804
108216
 
@@ -107854,4 +108266,4 @@ export {
107854
108266
  *)
107855
108267
  *)
107856
108268
  */
107857
- //# sourceMappingURL=chunk-W7CODLJZ.js.map
108269
+ //# sourceMappingURL=DevCommand-2Z74PQ26.js.map