shopify 3.94.3 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/bin/run.js +5 -1
  2. package/dist/analytics-6IHHYAV6.js +1 -0
  3. package/dist/analytics-KKVP5DT3.js +1 -0
  4. package/dist/bootstrap.d.ts +5 -0
  5. package/dist/bootstrap.js +3 -0
  6. package/dist/chunk-22PCRFG4.js +1 -0
  7. package/dist/chunk-26D72ZNV.js +1 -0
  8. package/dist/chunk-2APPXD5Z.js +2 -0
  9. package/dist/chunk-2I4PRX2I.js +1 -0
  10. package/dist/chunk-2VQJQ36C.js +103 -0
  11. package/dist/chunk-323UTVMM.js +1 -0
  12. package/dist/chunk-3DQIVE24.js +9 -0
  13. package/dist/chunk-3F6NZK7S.js +2 -0
  14. package/dist/chunk-3LVGAQB4.js +1 -0
  15. package/dist/chunk-3TNEIDOD.js +1 -0
  16. package/dist/chunk-3VZEETAV.js +1 -0
  17. package/dist/chunk-4G7J6HIV.js +1 -0
  18. package/dist/chunk-4HHXSMD7.js +10 -0
  19. package/dist/chunk-4LNCYIS3.js +1 -0
  20. package/dist/chunk-4ZGSSQC6.js +1 -0
  21. package/dist/chunk-52GC6XUT.js +1 -0
  22. package/dist/chunk-5CH3B62S.js +2 -0
  23. package/dist/chunk-5Y7GIF2W.js +1 -0
  24. package/dist/chunk-66RJ5T7A.js +102 -0
  25. package/dist/chunk-6B53BWJW.js +1 -0
  26. package/dist/chunk-6BMMB2UO.js +1 -0
  27. package/dist/chunk-6HBRBQAN.js +6 -0
  28. package/dist/chunk-6M3ZYNGO.js +451 -0
  29. package/dist/chunk-6TZAAS5H.js +1 -0
  30. package/dist/chunk-72F3YBNA.js +1 -0
  31. package/dist/chunk-74HYYXXE.js +17 -0
  32. package/dist/chunk-75VPUOC5.js +1 -0
  33. package/dist/chunk-7BGM2GAH.js +1 -0
  34. package/dist/chunk-7UYZQN4V.js +18 -0
  35. package/dist/chunk-A74GETYC.js +1 -0
  36. package/dist/chunk-AIV5RI3X.js +1 -0
  37. package/dist/chunk-ALKTLKQ6.js +5 -0
  38. package/dist/chunk-B2EHO7ZC.js +847 -0
  39. package/dist/chunk-B2IVY4V5.js +1 -0
  40. package/dist/chunk-BDVAE5MS.js +28 -0
  41. package/dist/chunk-CERXUPGC.js +14 -0
  42. package/dist/chunk-D3TSJA5S.js +1 -0
  43. package/dist/chunk-D6JARNEH.js +1 -0
  44. package/dist/chunk-DFMQWJQ3.js +3 -0
  45. package/dist/chunk-DJONKJSZ.js +1 -0
  46. package/dist/chunk-DJQVNH7P.js +567 -0
  47. package/dist/chunk-DU4WR4OP.js +1 -0
  48. package/dist/chunk-ELVFJ7BR.js +4 -0
  49. package/dist/chunk-ELYP4KFP.js +8 -0
  50. package/dist/chunk-FFQ5EWII.js +294 -0
  51. package/dist/chunk-FUOIGXI4.js +1 -0
  52. package/dist/chunk-GD7FWXJ5.js +2 -0
  53. package/dist/chunk-GFEAKSGV.js +374 -0
  54. package/dist/chunk-GFJ7UV74.js +1 -0
  55. package/dist/chunk-GNPS5SBU.js +1 -0
  56. package/dist/chunk-GOJ2QHSR.js +1 -0
  57. package/dist/chunk-HSK7YMRE.js +359 -0
  58. package/dist/chunk-HUZUORYM.js +19 -0
  59. package/dist/chunk-HZA6IAA4.js +1 -0
  60. package/dist/chunk-IASVAERO.js +1 -0
  61. package/dist/chunk-IIIVWD4R.js +1 -0
  62. package/dist/chunk-INEU4XKS.js +6 -0
  63. package/dist/chunk-IOLVEXM6.js +1 -0
  64. package/dist/chunk-IU2ZQ6TE.js +2 -0
  65. package/dist/chunk-IX5ICOBV.js +7 -0
  66. package/dist/chunk-J3KVONB3.js +6 -0
  67. package/dist/chunk-JGXWQULI.js +1 -0
  68. package/dist/chunk-JHPRFW5B.js +19 -0
  69. package/dist/chunk-JLBH7RCF.js +4 -0
  70. package/dist/chunk-JPGO36XP.js +1 -0
  71. package/dist/chunk-JUVAGMIH.js +1 -0
  72. package/dist/chunk-JVIKCGDY.js +1 -0
  73. package/dist/chunk-K2WUCOQJ.js +32 -0
  74. package/dist/chunk-K5YV6UVF.js +4 -0
  75. package/dist/chunk-KBQ4LGFB.js +1 -0
  76. package/dist/chunk-KGXQS7LS.js +1 -0
  77. package/dist/chunk-KL5Z3T6L.js +1 -0
  78. package/dist/chunk-KLMDWDT2.js +1 -0
  79. package/dist/chunk-KNVM7N3U.js +1 -0
  80. package/dist/chunk-KWJ562F2.js +12 -0
  81. package/dist/chunk-LALIKZPS.js +5 -0
  82. package/dist/chunk-LAZJ47DZ.js +6 -0
  83. package/dist/chunk-LDGAHMS7.js +159 -0
  84. package/dist/chunk-LNHLDRC5.js +1 -0
  85. package/dist/chunk-LW7U753G.js +1 -0
  86. package/dist/chunk-LX3ZOW52.js +12 -0
  87. package/dist/chunk-LXFJDCNG.js +1 -0
  88. package/dist/chunk-MBAFWQSZ.js +7 -0
  89. package/dist/chunk-MOA33ZFO.js +1 -0
  90. package/dist/chunk-MQNYGGAM.js +1 -0
  91. package/dist/chunk-N5YIPQ6J.js +1 -0
  92. package/dist/chunk-N7RBSKYT.js +1 -0
  93. package/dist/chunk-NF2ABOOU.js +1 -0
  94. package/dist/chunk-NRAFVIU3.js +1 -0
  95. package/dist/chunk-OCOY5MV2.js +1 -0
  96. package/dist/chunk-ODNGDO4H.js +50 -0
  97. package/dist/chunk-OHY4ZL3U.js +2 -0
  98. package/dist/chunk-OLZHWPZP.js +1 -0
  99. package/dist/chunk-OUOYKNMY.js +1 -0
  100. package/dist/chunk-OXPWCC7I.js +64 -0
  101. package/dist/chunk-P5VVOLGV.js +1 -0
  102. package/dist/chunk-P6XE4MH5.js +1 -0
  103. package/dist/chunk-P7R7FBY2.js +3 -0
  104. package/dist/chunk-PD5ZHJWI.js +1 -0
  105. package/dist/chunk-PIBY5DDZ.js +1 -0
  106. package/dist/chunk-Q7ING5F5.js +1 -0
  107. package/dist/chunk-QFWIDATO.js +1 -0
  108. package/dist/chunk-QRRNOVJ3.js +1 -0
  109. package/dist/chunk-QSTEVZFQ.js +1 -0
  110. package/dist/chunk-R466TU3N.js +2 -0
  111. package/dist/chunk-RF2DPBA6.js +1 -0
  112. package/dist/chunk-RFG5RMPL.js +1 -0
  113. package/dist/chunk-RM5SJJN6.js +559 -0
  114. package/dist/chunk-RVNMVBPM.js +1 -0
  115. package/dist/chunk-SBEZBZM7.js +144 -0
  116. package/dist/chunk-SGQ6D3LU.js +15 -0
  117. package/dist/chunk-SRCQVUMC.js +1 -0
  118. package/dist/chunk-TFSBQ4RY.js +5 -0
  119. package/dist/chunk-TQYMC7TH.js +1 -0
  120. package/dist/chunk-UGDBJTLP.js +6 -0
  121. package/dist/chunk-UGXYQ23Y.js +1411 -0
  122. package/dist/chunk-UWJ73J4B.js +1 -0
  123. package/dist/chunk-V2CNCPIE.js +2 -0
  124. package/dist/chunk-VBUZWRUL.js +1 -0
  125. package/dist/chunk-VS3T5YOG.js +264 -0
  126. package/dist/chunk-VWYM4OWK.js +1 -0
  127. package/dist/chunk-VY6SNDKW.js +3 -0
  128. package/dist/chunk-WDC3KIZT.js +2 -0
  129. package/dist/chunk-WFXRSKRK.js +1 -0
  130. package/dist/chunk-WXVZJJOR.js +16 -0
  131. package/dist/chunk-WZBSLU4Q.js +6 -0
  132. package/dist/chunk-XBXMPFXM.js +1 -0
  133. package/dist/chunk-XEFQQPL4.js +1 -0
  134. package/dist/chunk-XLELNRFF.js +3 -0
  135. package/dist/chunk-XNO6DZYP.js +1 -0
  136. package/dist/chunk-Y5JKV2AI.js +1 -0
  137. package/dist/chunk-YC6G4MHD.js +3 -0
  138. package/dist/chunk-YI232QLS.js +1 -0
  139. package/dist/chunk-YMWHHINU.js +1 -0
  140. package/dist/chunk-YOZNRLFC.js +1 -0
  141. package/dist/chunk-YZDDTYTU.js +11 -0
  142. package/dist/chunk-Z35BTAM6.js +2 -0
  143. package/dist/chunk-ZR76GGZ6.js +5 -0
  144. package/dist/chunk-ZTMSBSYD.js +1 -0
  145. package/dist/chunk-ZV6NCNI4.js +586 -0
  146. package/dist/chunk-ZVJVDCIM.js +1 -0
  147. package/dist/cli/commands/app/app-logs/sources.js +2 -0
  148. package/dist/cli/commands/app/build.js +1 -0
  149. package/dist/cli/commands/app/bulk/cancel.js +1 -0
  150. package/dist/cli/commands/app/bulk/execute.js +9 -0
  151. package/dist/cli/commands/app/bulk/status.js +5 -0
  152. package/dist/cli/commands/app/config/link.js +4 -0
  153. package/dist/cli/commands/app/config/pull.js +1 -0
  154. package/dist/cli/commands/app/config/use.js +1 -0
  155. package/dist/cli/commands/app/config/validate.js +3 -0
  156. package/dist/cli/commands/app/demo/watcher.js +1 -0
  157. package/dist/cli/commands/app/deploy.js +22 -0
  158. package/dist/cli/commands/app/dev/clean.js +5 -0
  159. package/dist/cli/commands/app/dev.js +320 -0
  160. package/dist/cli/commands/app/env/pull.js +11 -0
  161. package/dist/cli/commands/app/env/show.js +1 -0
  162. package/dist/cli/commands/app/execute.js +1 -0
  163. package/dist/cli/commands/app/function/build.js +1 -0
  164. package/dist/cli/commands/app/function/info.js +16 -0
  165. package/dist/cli/commands/app/function/replay.js +5 -0
  166. package/dist/cli/commands/app/function/run.js +1 -0
  167. package/dist/cli/commands/app/function/schema.js +1 -0
  168. package/dist/cli/commands/app/function/typegen.js +1 -0
  169. package/dist/cli/commands/app/generate/extension.js +5 -0
  170. package/dist/cli/commands/app/import-custom-data-definitions.js +4 -0
  171. package/dist/cli/commands/app/import-extensions.js +1 -0
  172. package/dist/cli/commands/app/info.js +11 -0
  173. package/dist/cli/commands/app/init.js +10 -0
  174. package/dist/cli/commands/app/logs.js +2 -0
  175. package/dist/cli/commands/app/release.js +4 -0
  176. package/dist/cli/commands/app/versions/list.js +1 -0
  177. package/dist/cli/commands/app/webhook/trigger.js +25 -0
  178. package/dist/cli/commands/auth/login.js +1 -20
  179. package/dist/cli/commands/auth/logout.js +1 -12
  180. package/dist/cli/commands/cache/clear.js +1 -11
  181. package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -1
  182. package/dist/cli/commands/config/autoupgrade/constants.js +1 -6
  183. package/dist/cli/commands/config/autoupgrade/off.js +1 -22
  184. package/dist/cli/commands/config/autoupgrade/on.js +1 -22
  185. package/dist/cli/commands/config/autoupgrade/status.js +1 -30
  186. package/dist/cli/commands/debug/command-flags.js +1 -79
  187. package/dist/cli/commands/docs/generate.js +1 -157
  188. package/dist/cli/commands/doctor-release/doctor-release.js +1 -25
  189. package/dist/cli/commands/doctor-release/theme/index.js +1 -56
  190. package/dist/cli/commands/help.js +1 -26
  191. package/dist/cli/commands/kitchen-sink/async.js +1 -16
  192. package/dist/cli/commands/kitchen-sink/index.js +1 -21
  193. package/dist/cli/commands/kitchen-sink/prompts.js +1 -16
  194. package/dist/cli/commands/kitchen-sink/static.js +1 -16
  195. package/dist/cli/commands/notifications/generate.js +1 -11
  196. package/dist/cli/commands/notifications/list.js +1 -33
  197. package/dist/cli/commands/organization/list.js +1 -0
  198. package/dist/cli/commands/search.js +1 -27
  199. package/dist/cli/commands/theme/check.js +1 -0
  200. package/dist/cli/commands/theme/console.js +15 -0
  201. package/dist/cli/commands/theme/delete.js +7 -0
  202. package/dist/cli/commands/theme/dev.js +26 -0
  203. package/dist/cli/commands/theme/duplicate.js +32 -0
  204. package/dist/cli/commands/theme/info.js +1 -0
  205. package/dist/cli/commands/theme/init.js +8 -0
  206. package/dist/cli/commands/theme/language-server.js +1 -0
  207. package/dist/cli/commands/theme/list.js +1 -0
  208. package/dist/cli/commands/theme/metafields/pull.js +3 -0
  209. package/dist/cli/commands/theme/open.js +8 -0
  210. package/dist/cli/commands/theme/package.js +7 -0
  211. package/dist/cli/commands/theme/preview.js +1 -0
  212. package/dist/cli/commands/theme/profile.js +3 -0
  213. package/dist/cli/commands/theme/publish.js +7 -0
  214. package/dist/cli/commands/theme/pull.js +3 -0
  215. package/dist/cli/commands/theme/push.js +28 -0
  216. package/dist/cli/commands/theme/rename.js +6 -0
  217. package/dist/cli/commands/theme/share.js +3 -0
  218. package/dist/cli/commands/upgrade.js +1 -17
  219. package/dist/cli/commands/version.js +1 -10
  220. package/dist/command-registry.d.ts +8 -0
  221. package/dist/command-registry.js +1 -0
  222. package/dist/conf-store-U5ZITKJN.js +1 -0
  223. package/dist/custom-oclif-loader-DVFFWCBV.js +1 -0
  224. package/dist/deprecations-TU5UQJVV.js +1 -0
  225. package/dist/dist-2Z5TND4U.js +1 -0
  226. package/dist/dist-GYHFDHKP.js +1 -0
  227. package/dist/environments-Z5PR7DSI.js +1 -0
  228. package/dist/error-IJGNYKZ3.js +1 -0
  229. package/dist/error-handler-WSCGNS2P.js +1 -0
  230. package/dist/fs-5BDEA2KD.js +1 -0
  231. package/dist/hooks/app-init.d.ts +9 -0
  232. package/dist/hooks/app-init.js +1 -0
  233. package/dist/hooks/did-you-mean.d.ts +1 -0
  234. package/dist/hooks/did-you-mean.js +1 -0
  235. package/dist/hooks/hydrogen-init.d.ts +7 -0
  236. package/dist/hooks/hydrogen-init.js +1 -0
  237. package/dist/hooks/plugin-plugins.d.ts +1 -0
  238. package/dist/hooks/plugin-plugins.js +1 -0
  239. package/dist/hooks/postrun.js +1 -1
  240. package/dist/hooks/prerun.js +1 -1
  241. package/dist/hooks/public-metadata.d.ts +1 -0
  242. package/dist/hooks/public-metadata.js +1 -0
  243. package/dist/hooks/sensitive-metadata.d.ts +1 -0
  244. package/dist/hooks/sensitive-metadata.js +1 -0
  245. package/dist/hooks/tunnel-provider.d.ts +1 -0
  246. package/dist/hooks/tunnel-provider.js +1 -0
  247. package/dist/hooks/tunnel-start.d.ts +1 -0
  248. package/dist/hooks/tunnel-start.js +1 -0
  249. package/dist/http-proxy-node16-Q5DZMBHC.js +38 -0
  250. package/dist/index.js +254 -3668
  251. package/dist/is-global-V4ZRHQG2.js +1 -0
  252. package/dist/latest-version-EFWBOTWM.js +49 -0
  253. package/dist/lib-5L7UKDEK.js +1 -0
  254. package/dist/lib-C3VO2BQW.js +1 -0
  255. package/dist/lib-QB6I6CTC.js +1 -0
  256. package/dist/local-6QPX4GCJ.js +1 -0
  257. package/dist/local-storage-JLXBZVWO.js +1 -0
  258. package/dist/metadata-UDMOTRS7.js +1 -0
  259. package/dist/{morph-DQREIZD2.js → morph-EMYAITFM.js} +1 -1
  260. package/dist/node-package-manager-HAFRYGUM.js +1 -0
  261. package/dist/notifications-system-MP7WDOCS.js +1 -0
  262. package/dist/npa-ICFSA3NL.js +1 -0
  263. package/dist/output-YGMHXEIS.js +1 -0
  264. package/dist/{path-HUAU3YBW.js → path-CWUNINMX.js} +1 -1
  265. package/dist/{prettier-PGDJ5B7I.js → prettier-NVRHEAFO.js} +1 -1
  266. package/dist/system-KLXD4FXF.js +1 -0
  267. package/dist/tsconfig.tsbuildinfo +1 -1
  268. package/dist/typescript-K5CWIA4V.js +1 -0
  269. package/dist/ui-GHG3UGB3.js +1 -0
  270. package/dist/upgrade-OPZGPM5J.js +1 -0
  271. package/dist/version-D5PJZIRW.js +1 -0
  272. package/dist/version-KRQBMYCH.js +1 -0
  273. package/dist/workerd-L2EJKIAQ.js +18 -0
  274. package/oclif.manifest.json +5247 -6056
  275. package/package.json +17 -41
  276. package/dist/chunk-45T5XUIM.js +0 -1
  277. package/dist/chunk-52KHWFYF.js +0 -1
  278. package/dist/chunk-66TIGB4U.js +0 -415
  279. package/dist/chunk-675GKVCB.js +0 -3
  280. package/dist/chunk-7ES6PV7M.js +0 -847
  281. package/dist/chunk-BF7JM4FH.js +0 -396
  282. package/dist/chunk-FU2Y2M3M.js +0 -5
  283. package/dist/chunk-IDQ4X47Z.js +0 -3
  284. package/dist/chunk-JBSYWYIP.js +0 -2
  285. package/dist/chunk-PBKIXB7L.js +0 -63
  286. package/dist/chunk-SVA22NZQ.js +0 -607
  287. package/dist/error-handler-LC7FITE7.js +0 -1
  288. package/dist/http-proxy-node16-TTURN6MD.js +0 -38
  289. package/dist/lib-3WHF5XD3.js +0 -1
  290. package/dist/local-TWIGLQ7X.js +0 -1
  291. package/dist/node-package-manager-3UCLJPGW.js +0 -1
  292. package/dist/npa-OKDXXRCU.js +0 -1
  293. package/dist/ui-UYE67X4Y.js +0 -1
  294. package/dist/workerd-37BZZEVW.js +0 -18
  295. /package/dist/{chunk-KADPE3PY.js → chunk-7MUKLZOL.js} +0 -0
@@ -1 +0,0 @@
1
- import{Na as a,Oa as b,Pa as c,Qa as d,Ra as e}from"./chunk-7ES6PV7M.js";import"./chunk-PRKBO42R.js";import"./chunk-PBKIXB7L.js";import"./chunk-66TIGB4U.js";import"./chunk-SVA22NZQ.js";import"./chunk-FU2Y2M3M.js";import"./chunk-QYR5VPQA.js";import"./chunk-EENHXSWU.js";import"./chunk-JBSYWYIP.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-QUTQDXSL.js";import"./chunk-VPRTJUIN.js";export{e as addBugsnagMetadata,c as cleanStackFrameFilePath,a as errorHandler,d as registerCleanBugsnagErrorsFromWithinPlugins,b as sendErrorToBugsnag};
@@ -1,38 +0,0 @@
1
- import{d as Ae}from"./chunk-FU2Y2M3M.js";import{a as w,c as g,g as l}from"./chunk-VPRTJUIN.js";var re=g((ft,D)=>{"use strict";l();var qe=Object.prototype.hasOwnProperty,_="~";function C(){}Object.create&&(C.prototype=Object.create(null),new C().__proto__||(_=!1));function Be(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function te(e,t,r,s,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var n=new Be(r,s||e,o),i=_?_+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],n]:e._events[i].push(n):(e._events[i]=n,e._eventsCount++),e}function j(e,t){--e._eventsCount===0?e._events=new C:delete e._events[t]}function v(){this._events=new C,this._eventsCount=0}v.prototype.eventNames=function(){var t=[],r,s;if(this._eventsCount===0)return t;for(s in r=this._events)qe.call(r,s)&&t.push(_?s.slice(1):s);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};v.prototype.listeners=function(t){var r=_?_+t:t,s=this._events[r];if(!s)return[];if(s.fn)return[s.fn];for(var o=0,n=s.length,i=new Array(n);o<n;o++)i[o]=s[o].fn;return i};v.prototype.listenerCount=function(t){var r=_?_+t:t,s=this._events[r];return s?s.fn?1:s.length:0};v.prototype.emit=function(t,r,s,o,n,i){var c=_?_+t:t;if(!this._events[c])return!1;var a=this._events[c],h=arguments.length,u,f;if(a.fn){switch(a.once&&this.removeListener(t,a.fn,void 0,!0),h){case 1:return a.fn.call(a.context),!0;case 2:return a.fn.call(a.context,r),!0;case 3:return a.fn.call(a.context,r,s),!0;case 4:return a.fn.call(a.context,r,s,o),!0;case 5:return a.fn.call(a.context,r,s,o,n),!0;case 6:return a.fn.call(a.context,r,s,o,n,i),!0}for(f=1,u=new Array(h-1);f<h;f++)u[f-1]=arguments[f];a.fn.apply(a.context,u)}else{var d=a.length,p;for(f=0;f<d;f++)switch(a[f].once&&this.removeListener(t,a[f].fn,void 0,!0),h){case 1:a[f].fn.call(a[f].context);break;case 2:a[f].fn.call(a[f].context,r);break;case 3:a[f].fn.call(a[f].context,r,s);break;case 4:a[f].fn.call(a[f].context,r,s,o);break;default:if(!u)for(p=1,u=new Array(h-1);p<h;p++)u[p-1]=arguments[p];a[f].fn.apply(a[f].context,u)}}return!0};v.prototype.on=function(t,r,s){return te(this,t,r,s,!1)};v.prototype.once=function(t,r,s){return te(this,t,r,s,!0)};v.prototype.removeListener=function(t,r,s,o){var n=_?_+t:t;if(!this._events[n])return this;if(!r)return j(this,n),this;var i=this._events[n];if(i.fn)i.fn===r&&(!o||i.once)&&(!s||i.context===s)&&j(this,n);else{for(var c=0,a=[],h=i.length;c<h;c++)(i[c].fn!==r||o&&!i[c].once||s&&i[c].context!==s)&&a.push(i[c]);a.length?this._events[n]=a.length===1?a[0]:a:j(this,n)}return this};v.prototype.removeAllListeners=function(t){var r;return t?(r=_?_+t:t,this._events[r]&&j(this,r)):(this._events=new C,this._eventsCount=0),this};v.prototype.off=v.prototype.removeListener;v.prototype.addListener=v.prototype.on;v.prefixed=_;v.EventEmitter=v;typeof D<"u"&&(D.exports=v)});var ne=g((ct,se)=>{"use strict";l();se.exports=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}});var N=g(oe=>{l();var E=oe,Ue=w("url"),ie=Object.assign,je=ne(),Ne=/(^|,)\s*upgrade\s*($|,)/i,k=/^https|wss/;E.isSSL=k;E.setupOutgoing=function(e,t,r,s){e.port=t[s||"target"].port||(k.test(t[s||"target"].protocol)?443:80),["host","hostname","socketPath","pfx","key","passphrase","cert","ca","ciphers","secureProtocol"].forEach(function(c){e[c]=t[s||"target"][c]}),e.method=t.method||r.method,e.headers=ie({},r.headers),t.headers&&ie(e.headers,t.headers),t.auth&&(e.auth=t.auth),t.ca&&(e.ca=t.ca),k.test(t[s||"target"].protocol)&&(e.rejectUnauthorized=typeof t.secure>"u"?!0:t.secure),e.agent=t.agent||!1,e.localAddress=t.localAddress,e.agent||(e.headers=e.headers||{},(typeof e.headers.connection!="string"||!Ne.test(e.headers.connection))&&(e.headers.connection="close"));var o=t[s||"target"],n=o&&t.prependPath!==!1&&o.path||"",i=t.toProxy?r.url:Ue.parse(r.url).path||"";return i=t.ignorePath?"":i,e.path=E.urlJoin(n,i),t.changeOrigin&&(e.headers.host=je(e.port,t[s||"target"].protocol)&&!Me(e.host)?e.host+":"+e.port:e.host),e};E.setupSocket=function(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e};E.getPort=function(e){var t=e.headers.host?e.headers.host.match(/:(\d+)/):"";return t?t[1]:E.hasEncryptedConnection(e)?"443":"80"};E.hasEncryptedConnection=function(e){return!!(e.connection.encrypted||e.connection.pair)};E.urlJoin=function(){var e=Array.prototype.slice.call(arguments),t=[],r="",s;return e.forEach((o,n)=>{var i=o.indexOf("?");i!==-1&&(t.push(o.substring(i+1)),e[n]=o.substring(0,i))}),r=t.filter(Boolean).join("&"),s=e.filter(Boolean).join("/").replace(/\/+/g,"/").replace("http:/","http://").replace("https:/","https://"),r?s+"?"+r:s};E.rewriteCookieProperty=function e(t,r,s){return Array.isArray(t)?t.map(function(o){return e(o,r,s)}):t.replace(new RegExp("(;\\s*"+s+"=)([^;]+)","i"),function(o,n,i){var c;if(i in r)c=r[i];else if("*"in r)c=r["*"];else return o;return c?n+c:""})};function Me(e){return!!~e.indexOf(":")}});var he=g((vt,fe)=>{l();var ae=w("url"),ue=N(),De=/^201|30(1|2|7|8)$/;fe.exports={removeChunked:function(t,r,s){t.httpVersion==="1.0"&&delete s.headers["transfer-encoding"]},setConnection:function(t,r,s){t.httpVersion==="1.0"?s.headers.connection=t.headers.connection||"close":t.httpVersion!=="2.0"&&!s.headers.connection&&(s.headers.connection=t.headers.connection||"keep-alive")},setRedirectHostRewrite:function(t,r,s,o){if((o.hostRewrite||o.autoRewrite||o.protocolRewrite)&&s.headers.location&&De.test(s.statusCode)){var n=ae.parse(o.target),i=ae.parse(s.headers.location);if(n.host!=i.host)return;o.hostRewrite?i.host=o.hostRewrite:o.autoRewrite&&(i.host=t.headers.host),o.protocolRewrite&&(i.protocol=o.protocolRewrite),s.headers.location=i.format()}},writeHeaders:function(t,r,s,o){var n=o.cookieDomainRewrite,i=o.cookiePathRewrite,c=o.preserveHeaderKeyCase,a,h=function(d,p){p!=null&&(n&&d.toLowerCase()==="set-cookie"&&(p=ue.rewriteCookieProperty(p,n,"domain")),i&&d.toLowerCase()==="set-cookie"&&(p=ue.rewriteCookieProperty(p,i,"path")),r.setHeader(String(d).trim(),p))};if(typeof n=="string"&&(n={"*":n}),typeof i=="string"&&(i={"*":i}),c&&s.rawHeaders!=null){a={};for(var u=0;u<s.rawHeaders.length;u+=2){var f=s.rawHeaders[u];a[f.toLowerCase()]=f}}Object.keys(s.headers).forEach(function(d){var p=s.headers[d];c&&a&&(d=a[d]||d),h(d,p)})},writeStatusCode:function(t,r,s){s.statusMessage?(r.statusCode=s.statusCode,r.statusMessage=s.statusMessage):r.statusCode=s.statusCode}}});var de=g((wt,ce)=>{l();var T;ce.exports=function(){if(!T){try{T=Ae()("follow-redirects")}catch{}typeof T!="function"&&(T=function(){})}T.apply(null,arguments)}});var we=g((yt,Q)=>{l();var S=w("url"),H=S.URL,ke=w("http"),Ie=w("https"),$=w("stream").Writable,X=w("assert"),le=de();(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",s=x(Error.captureStackTrace);!t&&(r||!s)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var z=!1;try{X(new H(""))}catch(e){z=e.code==="ERR_INVALID_URL"}var Fe=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],K=["abort","aborted","connect","error","socket","timeout"],G=Object.create(null);K.forEach(function(e){G[e]=function(t,r,s){this._redirectable.emit(e,t,r,s)}});var F=A("ERR_INVALID_URL","Invalid URL",TypeError),V=A("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Ve=A("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",V),We=A("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),$e=A("ERR_STREAM_WRITE_AFTER_END","write after end"),Xe=$.prototype.destroy||ve;function y(e,t){$.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(s){try{r._processResponse(s)}catch(o){r.emit("error",o instanceof V?o:new V({cause:o}))}},this._performRequest()}y.prototype=Object.create($.prototype);y.prototype.abort=function(){Y(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};y.prototype.destroy=function(e){return Y(this._currentRequest,e),Xe.call(this,e),this};y.prototype.write=function(e,t,r){if(this._ending)throw new $e;if(!P(e)&&!Ge(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(x(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new We),this.abort())};y.prototype.end=function(e,t,r){if(x(e)?(r=e,e=t=null):x(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var s=this,o=this._currentRequest;this.write(e,t,function(){s._ended=!0,o.end(null,null,r)}),this._ending=!0}};y.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};y.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};y.prototype.setTimeout=function(e,t){var r=this;function s(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function o(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),n()},e),s(i)}function n(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",n),r.removeListener("error",n),r.removeListener("response",n),r.removeListener("close",n),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",s),this.on("abort",n),this.on("error",n),this.on("response",n),this.on("close",n),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){y.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(y.prototype,e,{get:function(){return this._currentRequest[e]}})});y.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};y.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var s=this._currentRequest=t.request(this._options,this._onNativeResponse);s._redirectable=this;for(var o of K)s.on(o,G[o]);if(this._currentUrl=/^\//.test(this._options.path)?S.format(this._options):this._options.path,this._isRedirect){var n=0,i=this,c=this._requestBodyBuffers;(function a(h){if(s===i._currentRequest)if(h)i.emit("error",h);else if(n<c.length){var u=c[n++];s.finished||s.write(u.data,u.encoding,a)}else i._ended&&s.end()})()}};y.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(Y(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Ve;var s,o=this._options.beforeRedirect;o&&(s=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var n=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],I(/^content-/i,this._options.headers));var i=I(/^host$/i,this._options.headers),c=J(this._currentUrl),a=i||c.host,h=/^\w+:/.test(r)?this._currentUrl:S.format(Object.assign(c,{host:a})),u=ze(r,h);if(le("redirecting to",u.href),this._isRedirect=!0,W(u,this._options),(u.protocol!==c.protocol&&u.protocol!=="https:"||u.host!==a&&!Ke(u.host,a))&&I(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),x(o)){var f={headers:e.headers,statusCode:t},d={url:h,method:n,headers:s};o(this._options,f,d),this._sanitizeOptions(this._options)}this._performRequest()};function pe(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(s){var o=s+":",n=r[o]=e[s],i=t[s]=Object.create(n);function c(h,u,f){return Je(h)?h=W(h):P(h)?h=W(J(h)):(f=u,u=me(h),h={protocol:o}),x(u)&&(f=u,u=null),u=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},h,u),u.nativeProtocols=r,!P(u.host)&&!P(u.hostname)&&(u.hostname="::1"),X.equal(u.protocol,o,"protocol mismatch"),le("options",u),new y(u,f)}function a(h,u,f){var d=i.request(h,u,f);return d.end(),d}Object.defineProperties(i,{request:{value:c,configurable:!0,enumerable:!0,writable:!0},get:{value:a,configurable:!0,enumerable:!0,writable:!0}})}),t}function ve(){}function J(e){var t;if(z)t=new H(e);else if(t=me(S.parse(e)),!P(t.protocol))throw new F({input:e});return t}function ze(e,t){return z?new H(e,t):J(S.resolve(t,e))}function me(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new F({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new F({input:e.href||e});return e}function W(e,t){var r=t||{};for(var s of Fe)r[s]=e[s];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function I(e,t){var r;for(var s in t)e.test(s)&&(r=t[s],delete t[s]);return r===null||typeof r>"u"?void 0:String(r).trim()}function A(e,t,r){function s(o){x(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,o||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return s.prototype=new(r||Error),Object.defineProperties(s.prototype,{constructor:{value:s,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),s}function Y(e,t){for(var r of K)e.removeListener(r,G[r]);e.on("error",ve),e.destroy(t)}function Ke(e,t){X(P(e)&&P(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function P(e){return typeof e=="string"||e instanceof String}function x(e){return typeof e=="function"}function Ge(e){return typeof e=="object"&&"length"in e}function Je(e){return H&&e instanceof H}Q.exports=pe({http:ke,https:Ie});Q.exports.wrap=pe});var ye=g((Et,_e)=>{l();var Ye=w("http"),Qe=w("https"),q=he(),M=N(),Ze=we();q=Object.keys(q).map(function(e){return q[e]});var et={http:Ye,https:Qe};var tt=(function(){var e=process.versions.node.split(".").map(Number);return e[0]<=14||e[0]===15&&e[1]<=4})();_e.exports={deleteLength:function(t,r,s){(t.method==="DELETE"||t.method==="OPTIONS")&&!t.headers["content-length"]&&(t.headers["content-length"]="0",delete t.headers["transfer-encoding"])},timeout:function(t,r,s){s.timeout&&t.socket.setTimeout(s.timeout)},XHeaders:function(t,r,s){if(s.xfwd){var o=t.isSpdy||M.hasEncryptedConnection(t),n={for:t.connection.remoteAddress||t.socket.remoteAddress,port:M.getPort(t),proto:o?"https":"http"};["for","port","proto"].forEach(function(i){t.headers["x-forwarded-"+i]=(t.headers["x-forwarded-"+i]||"")+(t.headers["x-forwarded-"+i]?",":"")+n[i]}),t.headers["x-forwarded-host"]=t.headers["x-forwarded-host"]||t.headers.host||""}},stream:function(t,r,s,o,n,i){n.emit("start",t,r,s.target||s.forward);var c=s.followRedirects?Ze:et,a=c.http,h=c.https;if(s.forward){var u=(s.forward.protocol==="https:"?h:a).request(M.setupOutgoing(s.ssl||{},s,t,"forward")),f=R(u,s.forward);if(t.on("error",f),u.on("error",f),(s.buffer||t).pipe(u),!s.target)return r.end()}var d=(s.target.protocol==="https:"?h:a).request(M.setupOutgoing(s.ssl||{},s,t));d.on("socket",function(m){n&&!d.getHeader("expect")&&n.emit("proxyReq",d,t,r,s)}),s.proxyTimeout&&d.setTimeout(s.proxyTimeout,function(){d.abort()}),tt?t.on("aborted",function(){d.abort()}):r.on("close",function(){var m=!r.writableFinished;m&&d.abort()});var p=R(d,s.target);t.on("error",p),d.on("error",p);function R(m,b){return function(U){if(t.socket.destroyed&&U.code==="ECONNRESET")return n.emit("econnreset",U,t,r,b),m.abort();i?i(U,t,r,b):n.emit("error",U,t,r,b)}}(s.buffer||t).pipe(d),d.on("response",function(m){if(n&&n.emit("proxyRes",m,t,r),!r.headersSent&&!s.selfHandleResponse)for(var b=0;b<q.length&&!q[b](t,r,m,s);b++);r.finished?n&&n.emit("end",t,r,m):(m.on("end",function(){n&&n.emit("end",t,r,m)}),s.selfHandleResponse||m.pipe(r))})}}});var Ee=g((bt,ge)=>{l();var rt=w("http"),st=w("https"),O=N();ge.exports={checkMethodAndHeader:function(t,r){if(t.method!=="GET"||!t.headers.upgrade||t.headers.upgrade.toLowerCase()!=="websocket")return r.destroy(),!0},XHeaders:function(t,r,s){if(s.xfwd){var o={for:t.connection.remoteAddress||t.socket.remoteAddress,port:O.getPort(t),proto:O.hasEncryptedConnection(t)?"wss":"ws"};["for","port","proto"].forEach(function(n){t.headers["x-forwarded-"+n]=(t.headers["x-forwarded-"+n]||"")+(t.headers["x-forwarded-"+n]?",":"")+o[n]})}},stream:function(t,r,s,o,n,i){var c=function(u,f){return Object.keys(f).reduce(function(d,p){var R=f[p];if(!Array.isArray(R))return d.push(p+": "+R),d;for(var m=0;m<R.length;m++)d.push(p+": "+R[m]);return d},[u]).join(`\r
2
- `)+`\r
3
- \r
4
- `};O.setupSocket(r),o&&o.length&&r.unshift(o);var a=(O.isSSL.test(s.target.protocol)?st:rt).request(O.setupOutgoing(s.ssl||{},s,t));return n&&n.emit("proxyReqWs",a,t,r,s,o),a.on("error",h),a.on("response",function(u){u.upgrade||(r.write(c("HTTP/"+u.httpVersion+" "+u.statusCode+" "+u.statusMessage,u.headers)),u.pipe(r))}),a.on("upgrade",function(u,f,d){f.on("error",h),f.on("end",function(){n.emit("close",u,f,d)}),r.on("error",function(){f.destroy()}),O.setupSocket(f),d&&d.length&&f.unshift(d),r.write(c("HTTP/1.1 101 Switching Protocols",u.headers)),f.pipe(r).pipe(f),n.emit("open",f),n.emit("proxySocket",f)}),a.end();function h(u){i?i(u,t,r):n.emit("error",u,t,r),r.end()}}}});var Ce=g((xt,Oe)=>{l();var xe=Oe.exports,Re=Object.assign,nt=w("url").parse,Le=re(),it=w("http"),ot=w("https"),be=ye(),Pe=Ee();xe.Server=L;function Z(e){return function(t){return function(r,s){var o=e==="ws"?this.wsPasses:this.webPasses,n=[].slice.call(arguments),i=n.length-1,c,a;typeof n[i]=="function"&&(a=n[i],i--);var h=t;if(!(n[i]instanceof Buffer)&&n[i]!==s&&(h=Re({},t),Re(h,n[i]),i--),n[i]instanceof Buffer&&(c=n[i]),["target","forward"].forEach(function(f){typeof h[f]=="string"&&(h[f]=nt(h[f]))}),!h.target&&!h.forward)return this.emit("error",new Error("Must provide a proper URL as target"));for(var u=0;u<o.length&&!o[u](r,s,h,c,this,a);u++);}}}xe.createRightProxy=Z;function L(e){Le.call(this),e=e||{},e.prependPath=e.prependPath!==!1,this.web=this.proxyRequest=Z("web")(e),this.ws=this.proxyWebsocketRequest=Z("ws")(e),this.options=e,this.webPasses=Object.keys(be).map(function(t){return be[t]}),this.wsPasses=Object.keys(Pe).map(function(t){return Pe[t]}),this.on("error",this.onError,this)}w("util").inherits(L,Le);L.prototype.onError=function(e){if(this.listeners("error").length===1)throw e};L.prototype.listen=function(e,t){var r=this,s=function(o,n){r.web(o,n)};return this._server=this.options.ssl?ot.createServer(this.options.ssl,s):it.createServer(s),this.options.ws&&this._server.on("upgrade",function(o,n,i){r.ws(o,n,i)}),this._server.listen(e,t),this};L.prototype.close=function(e){var t=this;this._server&&this._server.close(r);function r(){t._server=null,e&&e.apply(null,arguments)}};L.prototype.before=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var s=e==="ws"?this.wsPasses:this.webPasses,o=!1;if(s.forEach(function(n,i){n.name===t&&(o=i)}),o===!1)throw new Error("No such pass");s.splice(o,0,r)};L.prototype.after=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var s=e==="ws"?this.wsPasses:this.webPasses,o=!1;if(s.forEach(function(n,i){n.name===t&&(o=i)}),o===!1)throw new Error("No such pass");s.splice(o++,0,r)}});var He=g((Ot,Te)=>{l();var B=Ce().Server;function ee(e){return new B(e)}B.createProxyServer=ee;B.createServer=ee;B.createProxy=ee;Te.exports=B});var at=g((Tt,Se)=>{l();Se.exports=He()});export default at();
5
- /*! Bundled license information:
6
-
7
- http-proxy-node16/lib/http-proxy/passes/web-outgoing.js:
8
- http-proxy-node16/lib/http-proxy/passes/web-incoming.js:
9
- (*!
10
- * Array of passes.
11
- *
12
- * A `pass` is just a function that is executed on `req, res, options`
13
- * so that you can easily add new checks while still keeping the base
14
- * flexible.
15
- *)
16
-
17
- http-proxy-node16/lib/http-proxy/passes/ws-incoming.js:
18
- (*!
19
- * Array of passes.
20
- *
21
- * A `pass` is just a function that is executed on `req, socket, options`
22
- * so that you can easily add new checks while still keeping the base
23
- * flexible.
24
- *)
25
-
26
- http-proxy-node16/index.js:
27
- (*!
28
- * Caron dimonio, con occhi di bragia
29
- * loro accennando, tutte le raccoglie;
30
- * batte col remo qualunque s’adagia
31
- *
32
- * Charon the demon, with the eyes of glede,
33
- * Beckoning to them, collects them all together,
34
- * Beats with his oar whoever lags behind
35
- *
36
- * Dante - The Divine Comedy (Canto III)
37
- *)
38
- */
@@ -1 +0,0 @@
1
- import{t as a}from"./chunk-SVA22NZQ.js";import"./chunk-FU2Y2M3M.js";import"./chunk-QYR5VPQA.js";import"./chunk-EENHXSWU.js";import"./chunk-VPRTJUIN.js";export default a();
@@ -1 +0,0 @@
1
- import{$c as b,_c as a,ad as c,bd as d,cd as e,dd as f,ed as g,fd as h,gd as i,hd as j,id as k,jd as l,kd as m,ld as n,md as o,nd as p,od as q,pd as r,qd as s,rd as t,sd as u,td as v,ud as w}from"./chunk-66TIGB4U.js";import"./chunk-SVA22NZQ.js";import"./chunk-FU2Y2M3M.js";import"./chunk-QYR5VPQA.js";import"./chunk-EENHXSWU.js";import"./chunk-JBSYWYIP.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-QUTQDXSL.js";import"./chunk-VPRTJUIN.js";export{i as alwaysLogAnalytics,j as alwaysLogMetrics,h as analyticsDisabled,l as canRunDoctorRelease,t as ciPlatform,r as cloudEnvironment,o as codespacePortForwardingDomain,n as codespaceURL,k as firstPartyDev,v as getThemeKitAccessDomain,m as gitpodURL,s as hasGit,b as homeDirectory,p as isCloudEnvironment,c as isDevelopment,e as isHostedAppsMode,f as isShopify,a as isTerminalInteractive,g as isUnitTest,d as isVerbose,u as macAddress,w as opentelemetryDomain,q as themeToken};
@@ -1 +0,0 @@
1
- import{A as g,B as h,C as i,D as j,E as k,F as l,G as m,H as n,I as o,J as p,K as q,L as r,M as s,N as t,O as u,P as v,Q as w,R as x,S as y,T as z,U as A,V as B,W as C,X as D,Y as E,u as a,v as b,w as c,x as d,y as e,z as f}from"./chunk-PBKIXB7L.js";import"./chunk-66TIGB4U.js";import"./chunk-SVA22NZQ.js";import"./chunk-FU2Y2M3M.js";import"./chunk-QYR5VPQA.js";import"./chunk-EENHXSWU.js";import"./chunk-JBSYWYIP.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-QUTQDXSL.js";import"./chunk-VPRTJUIN.js";export{k as FindUpAndReadPackageJsonNotFoundError,j as PackageJsonNotFoundError,i as UnknownPackageManagerError,z as addNPMDependencies,y as addNPMDependenciesIfNeeded,A as addNPMDependenciesWithoutVersionIfNeeded,C as addResolutionOrOverride,d as bunLockfile,v as checkForCachedNewVersion,u as checkForNewVersion,B as findUpAndReadPackageJson,s as getDependencies,m as getPackageManager,q as getPackageName,r as getPackageVersion,E as inferPackageManager,o as installNPMDependenciesRecursively,p as installNodeModules,f as lockfiles,g as lockfilesByManager,b as npmLockfile,h as packageManager,n as packageManagerBinaryCommandForDirectory,l as packageManagerFromUserAgent,c as pnpmLockfile,e as pnpmWorkspaceFile,x as readAndParsePackageJson,t as usesWorkspaces,w as versionSatisfies,D as writePackageJSON,a as yarnLockfile};
@@ -1 +0,0 @@
1
- import{a as vt,b as At}from"./chunk-45T5XUIM.js";import{a as D,c as F,g as y}from"./chunk-VPRTJUIN.js";var st=F(N=>{"use strict";y();Object.defineProperty(N,"__esModule",{value:!0});N.LRUCache=void 0;var T=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,tt=new Set,k=typeof process=="object"&&process?process:{},et=(e,t,i,s)=>{typeof k.emitWarning=="function"?k.emitWarning(e,t,i,s):console.error(`[${i}] ${t}: ${e}`)},j=globalThis.AbortController,Q=globalThis.AbortSignal;if(typeof j>"u"){Q=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},j=class{constructor(){t()}signal=new Q;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let e=k.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,et("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var Et=e=>!tt.has(e),_=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),it=e=>_(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?z:null:null,z=class extends Array{constructor(t){super(t),this.fill(0)}},M=class e{heap;length;static#n=!1;static create(t){let i=it(t);if(!i)return[];e.#n=!0;let s=new e(t,i);return e.#n=!1,s}constructor(t,i){if(!e.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},q=class e{#n;#l;#e;#g;#x;#T;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#w;#r;#s;#t;#f;#p;#c;#h;#b;#a;#S;#$;#d;#y;#_;#u;static unsafeExposeInternals(t){return{starts:t.#$,ttls:t.#d,sizes:t.#S,keyMap:t.#r,keyList:t.#s,valList:t.#t,next:t.#f,prev:t.#p,get head(){return t.#c},get tail(){return t.#h},free:t.#b,isBackgroundFetch:i=>t.#i(i),backgroundFetch:(i,s,n,r)=>t.#W(i,s,n,r),moveToTail:i=>t.#F(i),indexes:i=>t.#v(i),rindexes:i=>t.#A(i),isStale:i=>t.#m(i)}}get max(){return this.#n}get maxSize(){return this.#l}get calculatedSize(){return this.#w}get size(){return this.#o}get fetchMethod(){return this.#x}get memoMethod(){return this.#T}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(t){let{max:i=0,ttl:s,ttlResolution:n=1,ttlAutopurge:r,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:h,dispose:f,disposeAfter:w,noDisposeOnSet:p,noUpdateTTL:m,maxSize:d=0,maxEntrySize:A=0,sizeCalculation:l,fetchMethod:S,memoMethod:c,noDeleteOnFetchRejection:$,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:v,ignoreFetchAbort:W}=t;if(i!==0&&!_(i))throw new TypeError("max option must be a nonnegative integer");let O=i?it(i):Array;if(!O)throw new Error("invalid max value: "+i);if(this.#n=i,this.#l=d,this.maxEntrySize=A||this.#l,this.sizeCalculation=l,this.sizeCalculation){if(!this.#l&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(c!==void 0&&typeof c!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#T=c,S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#x=S,this.#_=!!S,this.#r=new Map,this.#s=new Array(i).fill(void 0),this.#t=new Array(i).fill(void 0),this.#f=new O(i),this.#p=new O(i),this.#c=0,this.#h=0,this.#b=M.create(i),this.#o=0,this.#w=0,typeof f=="function"&&(this.#e=f),typeof w=="function"?(this.#g=w,this.#a=[]):(this.#g=void 0,this.#a=void 0),this.#y=!!this.#e,this.#u=!!this.#g,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!$,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!v,this.ignoreFetchAbort=!!W,this.maxEntrySize!==0){if(this.#l!==0&&!_(this.#l))throw new TypeError("maxSize must be a positive integer if specified");if(!_(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H()}if(this.allowStale=!!h,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=_(n)||n===0?n:1,this.ttlAutopurge=!!r,this.ttl=s||0,this.ttl){if(!_(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D()}if(this.#n===0&&this.ttl===0&&this.#l===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#l){let P="LRU_CACHE_UNBOUNDED";Et(P)&&(tt.add(P),et("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",P,e))}}getRemainingTTL(t){return this.#r.has(t)?1/0:0}#D(){let t=new z(this.#n),i=new z(this.#n);this.#d=t,this.#$=i,this.#L=(r,o,a=T.now())=>{if(i[r]=o!==0?a:0,t[r]=o,o!==0&&this.ttlAutopurge){let h=setTimeout(()=>{this.#m(r)&&this.#E(this.#s[r],"expire")},o+1);h.unref&&h.unref()}},this.#R=r=>{i[r]=t[r]!==0?T.now():0},this.#O=(r,o)=>{if(t[o]){let a=t[o],h=i[o];if(!a||!h)return;r.ttl=a,r.start=h,r.now=s||n();let f=r.now-h;r.remainingTTL=a-f}};let s=0,n=()=>{let r=T.now();if(this.ttlResolution>0){s=r;let o=setTimeout(()=>s=0,this.ttlResolution);o.unref&&o.unref()}return r};this.getRemainingTTL=r=>{let o=this.#r.get(r);if(o===void 0)return 0;let a=t[o],h=i[o];if(!a||!h)return 1/0;let f=(s||n())-h;return a-f},this.#m=r=>{let o=i[r],a=t[r];return!!a&&!!o&&(s||n())-o>a}}#R=()=>{};#O=()=>{};#L=()=>{};#m=()=>!1;#H(){let t=new z(this.#n);this.#w=0,this.#S=t,this.#C=i=>{this.#w-=t[i],t[i]=0},this.#I=(i,s,n,r)=>{if(this.#i(s))return 0;if(!_(n))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(n=r(s,i),!_(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#z=(i,s,n)=>{if(t[i]=s,this.#l){let r=this.#l-t[i];for(;this.#w>r;)this.#U(!0)}this.#w+=t[i],n&&(n.entrySize=s,n.totalCalculatedSize=this.#w)}}#C=t=>{};#z=(t,i,s)=>{};#I=(t,i,s,n)=>{if(s||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#v({allowStale:t=this.allowStale}={}){if(this.#o)for(let i=this.#h;!(!this.#P(i)||((t||!this.#m(i))&&(yield i),i===this.#c));)i=this.#p[i]}*#A({allowStale:t=this.allowStale}={}){if(this.#o)for(let i=this.#c;!(!this.#P(i)||((t||!this.#m(i))&&(yield i),i===this.#h));)i=this.#f[i]}#P(t){return t!==void 0&&this.#r.get(this.#s[t])===t}*entries(){for(let t of this.#v())this.#t[t]!==void 0&&this.#s[t]!==void 0&&!this.#i(this.#t[t])&&(yield[this.#s[t],this.#t[t]])}*rentries(){for(let t of this.#A())this.#t[t]!==void 0&&this.#s[t]!==void 0&&!this.#i(this.#t[t])&&(yield[this.#s[t],this.#t[t]])}*keys(){for(let t of this.#v()){let i=this.#s[t];i!==void 0&&!this.#i(this.#t[t])&&(yield i)}}*rkeys(){for(let t of this.#A()){let i=this.#s[t];i!==void 0&&!this.#i(this.#t[t])&&(yield i)}}*values(){for(let t of this.#v())this.#t[t]!==void 0&&!this.#i(this.#t[t])&&(yield this.#t[t])}*rvalues(){for(let t of this.#A())this.#t[t]!==void 0&&!this.#i(this.#t[t])&&(yield this.#t[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,i={}){for(let s of this.#v()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;if(r!==void 0&&t(r,this.#s[s],this))return this.get(this.#s[s],i)}}forEach(t,i=this){for(let s of this.#v()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;r!==void 0&&t.call(i,r,this.#s[s],this)}}rforEach(t,i=this){for(let s of this.#A()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;r!==void 0&&t.call(i,r,this.#s[s],this)}}purgeStale(){let t=!1;for(let i of this.#A({allowStale:!0}))this.#m(i)&&(this.#E(this.#s[i],"expire"),t=!0);return t}info(t){let i=this.#r.get(t);if(i===void 0)return;let s=this.#t[i],n=this.#i(s)?s.__staleWhileFetching:s;if(n===void 0)return;let r={value:n};if(this.#d&&this.#$){let o=this.#d[i],a=this.#$[i];if(o&&a){let h=o-(T.now()-a);r.ttl=h,r.start=Date.now()}}return this.#S&&(r.size=this.#S[i]),r}dump(){let t=[];for(let i of this.#v({allowStale:!0})){let s=this.#s[i],n=this.#t[i],r=this.#i(n)?n.__staleWhileFetching:n;if(r===void 0||s===void 0)continue;let o={value:r};if(this.#d&&this.#$){o.ttl=this.#d[i];let a=T.now()-this.#$[i];o.start=Math.floor(Date.now()-a)}this.#S&&(o.size=this.#S[i]),t.unshift([s,o])}return t}load(t){this.clear();for(let[i,s]of t){if(s.start){let n=Date.now()-s.start;s.start=T.now()-n}this.set(i,s.value,s)}}set(t,i,s={}){if(i===void 0)return this.delete(t),this;let{ttl:n=this.ttl,start:r,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:h}=s,{noUpdateTTL:f=this.noUpdateTTL}=s,w=this.#I(t,i,s.size||0,a);if(this.maxEntrySize&&w>this.maxEntrySize)return h&&(h.set="miss",h.maxEntrySizeExceeded=!0),this.#E(t,"set"),this;let p=this.#o===0?void 0:this.#r.get(t);if(p===void 0)p=this.#o===0?this.#h:this.#b.length!==0?this.#b.pop():this.#o===this.#n?this.#U(!1):this.#o,this.#s[p]=t,this.#t[p]=i,this.#r.set(t,p),this.#f[this.#h]=p,this.#p[p]=this.#h,this.#h=p,this.#o++,this.#z(p,w,h),h&&(h.set="add"),f=!1;else{this.#F(p);let m=this.#t[p];if(i!==m){if(this.#_&&this.#i(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=m;d!==void 0&&!o&&(this.#y&&this.#e?.(d,t,"set"),this.#u&&this.#a?.push([d,t,"set"]))}else o||(this.#y&&this.#e?.(m,t,"set"),this.#u&&this.#a?.push([m,t,"set"]));if(this.#C(p),this.#z(p,w,h),this.#t[p]=i,h){h.set="replace";let d=m&&this.#i(m)?m.__staleWhileFetching:m;d!==void 0&&(h.oldValue=d)}}else h&&(h.set="update")}if(n!==0&&!this.#d&&this.#D(),this.#d&&(f||this.#L(p,n,r),h&&this.#O(h,p)),!o&&this.#u&&this.#a){let m=this.#a,d;for(;d=m?.shift();)this.#g?.(...d)}return this}pop(){try{for(;this.#o;){let t=this.#t[this.#c];if(this.#U(!0),this.#i(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#u&&this.#a){let t=this.#a,i;for(;i=t?.shift();)this.#g?.(...i)}}}#U(t){let i=this.#c,s=this.#s[i],n=this.#t[i];return this.#_&&this.#i(n)?n.__abortController.abort(new Error("evicted")):(this.#y||this.#u)&&(this.#y&&this.#e?.(n,s,"evict"),this.#u&&this.#a?.push([n,s,"evict"])),this.#C(i),t&&(this.#s[i]=void 0,this.#t[i]=void 0,this.#b.push(i)),this.#o===1?(this.#c=this.#h=0,this.#b.length=0):this.#c=this.#f[i],this.#r.delete(s),this.#o--,i}has(t,i={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:n}=i,r=this.#r.get(t);if(r!==void 0){let o=this.#t[r];if(this.#i(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#m(r))n&&(n.has="stale",this.#O(n,r));else return s&&this.#R(r),n&&(n.has="hit",this.#O(n,r)),!0}else n&&(n.has="miss");return!1}peek(t,i={}){let{allowStale:s=this.allowStale}=i,n=this.#r.get(t);if(n===void 0||!s&&this.#m(n))return;let r=this.#t[n];return this.#i(r)?r.__staleWhileFetching:r}#W(t,i,s,n){let r=i===void 0?void 0:this.#t[i];if(this.#i(r))return r;let o=new j,{signal:a}=s;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let h={signal:o.signal,options:s,context:n},f=(l,S=!1)=>{let{aborted:c}=o.signal,$=s.ignoreFetchAbort&&l!==void 0;if(s.status&&(c&&!S?(s.status.fetchAborted=!0,s.status.fetchError=o.signal.reason,$&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),c&&!$&&!S)return p(o.signal.reason);let E=d;return this.#t[i]===d&&(l===void 0?E.__staleWhileFetching?this.#t[i]=E.__staleWhileFetching:this.#E(t,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(t,l,h.options))),l},w=l=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=l),p(l)),p=l=>{let{aborted:S}=o.signal,c=S&&s.allowStaleOnFetchAbort,$=c||s.allowStaleOnFetchRejection,E=$||s.noDeleteOnFetchRejection,b=d;if(this.#t[i]===d&&(!E||b.__staleWhileFetching===void 0?this.#E(t,"fetch"):c||(this.#t[i]=b.__staleWhileFetching)),$)return s.status&&b.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),b.__staleWhileFetching;if(b.__returned===b)throw l},m=(l,S)=>{let c=this.#x?.(t,r,h);c&&c instanceof Promise&&c.then($=>l($===void 0?void 0:$),S),o.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(l(void 0),s.allowStaleOnFetchAbort&&(l=$=>f($,!0)))})};s.status&&(s.status.fetchDispatched=!0);let d=new Promise(m).then(f,w),A=Object.assign(d,{__abortController:o,__staleWhileFetching:r,__returned:void 0});return i===void 0?(this.set(t,A,{...h.options,status:void 0}),i=this.#r.get(t)):this.#t[i]=A,A}#i(t){if(!this.#_)return!1;let i=t;return!!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof j}async fetch(t,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:h=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:w=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:A=this.allowStaleOnFetchAbort,context:l,forceRefresh:S=!1,status:c,signal:$}=i;if(!this.#_)return c&&(c.fetch="get"),this.get(t,{allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:r,status:c});let E={allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:o,noDisposeOnSet:a,size:h,sizeCalculation:f,noUpdateTTL:w,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:A,ignoreFetchAbort:d,status:c,signal:$},b=this.#r.get(t);if(b===void 0){c&&(c.fetch="miss");let v=this.#W(t,b,E,l);return v.__returned=v}else{let v=this.#t[b];if(this.#i(v)){let Z=s&&v.__staleWhileFetching!==void 0;return c&&(c.fetch="inflight",Z&&(c.returnedStale=!0)),Z?v.__staleWhileFetching:v.__returned=v}let W=this.#m(b);if(!S&&!W)return c&&(c.fetch="hit"),this.#F(b),n&&this.#R(b),c&&this.#O(c,b),v;let O=this.#W(t,b,E,l),G=O.__staleWhileFetching!==void 0&&s;return c&&(c.fetch=W?"stale":"refresh",G&&W&&(c.returnedStale=!0)),G?O.__staleWhileFetching:O.__returned=O}}async forceFetch(t,i={}){let s=await this.fetch(t,i);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(t,i={}){let s=this.#T;if(!s)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:r,...o}=i,a=this.get(t,o);if(!r&&a!==void 0)return a;let h=s(t,a,{options:o,context:n});return this.set(t,h,o),h}get(t,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:o}=i,a=this.#r.get(t);if(a!==void 0){let h=this.#t[a],f=this.#i(h);return o&&this.#O(o,a),this.#m(a)?(o&&(o.get="stale"),f?(o&&s&&h.__staleWhileFetching!==void 0&&(o.returnedStale=!0),s?h.__staleWhileFetching:void 0):(r||this.#E(t,"expire"),o&&s&&(o.returnedStale=!0),s?h:void 0)):(o&&(o.get="hit"),f?h.__staleWhileFetching:(this.#F(a),n&&this.#R(a),h))}else o&&(o.get="miss")}#j(t,i){this.#p[i]=t,this.#f[t]=i}#F(t){t!==this.#h&&(t===this.#c?this.#c=this.#f[t]:this.#j(this.#p[t],this.#f[t]),this.#j(this.#h,t),this.#h=t)}delete(t){return this.#E(t,"delete")}#E(t,i){let s=!1;if(this.#o!==0){let n=this.#r.get(t);if(n!==void 0)if(s=!0,this.#o===1)this.#N(i);else{this.#C(n);let r=this.#t[n];if(this.#i(r)?r.__abortController.abort(new Error("deleted")):(this.#y||this.#u)&&(this.#y&&this.#e?.(r,t,i),this.#u&&this.#a?.push([r,t,i])),this.#r.delete(t),this.#s[n]=void 0,this.#t[n]=void 0,n===this.#h)this.#h=this.#p[n];else if(n===this.#c)this.#c=this.#f[n];else{let o=this.#p[n];this.#f[o]=this.#f[n];let a=this.#f[n];this.#p[a]=this.#p[n]}this.#o--,this.#b.push(n)}}if(this.#u&&this.#a?.length){let n=this.#a,r;for(;r=n?.shift();)this.#g?.(...r)}return s}clear(){return this.#N("delete")}#N(t){for(let i of this.#A({allowStale:!0})){let s=this.#t[i];if(this.#i(s))s.__abortController.abort(new Error("deleted"));else{let n=this.#s[i];this.#y&&this.#e?.(s,n,t),this.#u&&this.#a?.push([s,n,t])}}if(this.#r.clear(),this.#t.fill(void 0),this.#s.fill(void 0),this.#d&&this.#$&&(this.#d.fill(0),this.#$.fill(0)),this.#S&&this.#S.fill(0),this.#c=0,this.#h=0,this.#b.length=0,this.#w=0,this.#o=0,this.#u&&this.#a){let i=this.#a,s;for(;s=i?.shift();)this.#g?.(...s)}}};N.LRUCache=q});var ot=F((ee,rt)=>{"use strict";y();var u=(...e)=>e.every(t=>t)?e.join(""):"",g=e=>e?encodeURIComponent(e):"",nt=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Ot={sshtemplate:({domain:e,user:t,project:i,committish:s})=>`git@${e}:${t}/${i}.git${u("#",s)}`,sshurltemplate:({domain:e,user:t,project:i,committish:s})=>`git+ssh://git@${e}/${t}/${i}.git${u("#",s)}`,edittemplate:({domain:e,user:t,project:i,committish:s,editpath:n,path:r})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s||"HEAD"),"/",r)}`,browsetemplate:({domain:e,user:t,project:i,committish:s,treepath:n})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s))}`,browsetreetemplate:({domain:e,user:t,project:i,committish:s,treepath:n,path:r,fragment:o,hashformat:a})=>`https://${e}/${t}/${i}/${n}/${g(s||"HEAD")}/${r}${u("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:i,committish:s,blobpath:n,path:r,fragment:o,hashformat:a})=>`https://${e}/${t}/${i}/${n}/${g(s||"HEAD")}/${r}${u("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:i,treepath:s,committish:n})=>`https://${e}/${t}/${i}${u("/",s,"/",g(n))}#readme`,httpstemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git+https://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,filetemplate:({domain:e,user:t,project:i,committish:s,path:n})=>`https://${e}/${t}/${i}/raw/${g(s||"HEAD")}/${n}`,shortcuttemplate:({type:e,user:t,project:i,committish:s})=>`${e}:${t}/${i}${u("#",s)}`,pathtemplate:({user:e,project:t,committish:i})=>`${e}/${t}${u("#",i)}`,bugstemplate:({domain:e,user:t,project:i})=>`https://${e}/${t}/${i}/issues`,hashformat:nt},R={};R.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:i,committish:s,path:n})=>`https://${u(e,"@")}raw.githubusercontent.com/${t}/${i}/${g(s||"HEAD")}/${n}`,gittemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://codeload.${e}/${t}/${i}/tar.gz/${g(s||"HEAD")}`,extract:e=>{let[,t,i,s,n]=e.pathname.split("/",5);if(!(s&&s!=="tree")&&(s||(n=e.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:n}}};R.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:i,committish:s,treepath:n,path:r,editpath:o})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s||"HEAD"),"/",r,o)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/get/${g(s||"HEAD")}.tar.gz`,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(!["get"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:e.hash.slice(1)}}};R.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git+https://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/repository/archive.tar.gz?ref=${g(s||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let i=t.split("/"),s=i.pop();s.endsWith(".git")&&(s=s.slice(0,-4));let n=i.join("/");if(!(!n||!s))return{user:n,project:s,committish:e.hash.slice(1)}}};R.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:i})=>`git@${e}:${t}.git${u("#",i)}`,sshurltemplate:({domain:e,project:t,committish:i})=>`git+ssh://git@${e}/${t}.git${u("#",i)}`,edittemplate:({domain:e,user:t,project:i,committish:s,editpath:n})=>`https://${e}/${t}/${i}${u("/",g(s))}/${n}`,browsetemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${u("/",g(i))}`,browsetreetemplate:({domain:e,project:t,committish:i,path:s,hashformat:n})=>`https://${e}/${t}${u("/",g(i))}${u("#",n(s))}`,browseblobtemplate:({domain:e,project:t,committish:i,path:s,hashformat:n})=>`https://${e}/${t}${u("/",g(i))}${u("#",n(s))}`,docstemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${u("/",g(i))}`,httpstemplate:({domain:e,project:t,committish:i})=>`git+https://${e}/${t}.git${u("#",i)}`,filetemplate:({user:e,project:t,committish:i,path:s})=>`https://gist.githubusercontent.com/${e}/${t}/raw${u("/",g(i))}/${s}`,shortcuttemplate:({type:e,project:t,committish:i})=>`${e}:${t}${u("#",i)}`,pathtemplate:({project:e,committish:t})=>`${e}${u("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:i})=>`git://${e}/${t}.git${u("#",i)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${g(t||"HEAD")}`,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(s!=="raw"){if(!i){if(!t)return;i=t,t=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:t,project:i,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+nt(e)}};R.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:i,committish:s,path:n})=>`https://${e}/${t}/${i}/blob/${g(s)||"HEAD"}/${n}`,httpstemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}.git${u("#",s)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/archive/${g(s)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(!["archive"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(R))R[e]=Object.assign({},Ot,t);rt.exports=R});var K=F((se,at)=>{y();var _t=D("url"),V=(e,t,i)=>{let s=e.indexOf(i);return e.lastIndexOf(t,s>-1?s:1/0)},ht=e=>{try{return new _t.URL(e)}catch{}},Rt=(e,t)=>{let i=e.indexOf(":"),s=e.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(t,s))return e;let n=e.indexOf("@");return n>-1?n>i?`git+ssh://${e}`:e:e.indexOf("//")===i+1?e:`${e.slice(0,i+1)}//${e.slice(i+1)}`},Ct=e=>{let t=V(e,"@","#"),i=V(e,":","#");return i>t&&(e=e.slice(0,i)+"/"+e.slice(i+1)),V(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};at.exports=(e,t)=>{let i=t?Rt(e,t):e;return ht(i)||ht(Ct(i))}});var ct=F((re,lt)=>{"use strict";y();var Ft=K(),xt=e=>{let t=e.indexOf("#"),i=e.indexOf("/"),s=e.indexOf("/",i+1),n=e.indexOf(":"),r=/\s/.exec(e),o=e.indexOf("@"),a=!r||t>-1&&r.index>t,h=o===-1||t>-1&&o>t,f=n===-1||t>-1&&n>t,w=s===-1||t>-1&&s>t,p=i>0,m=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return a&&p&&m&&d&&h&&f&&w};lt.exports=(e,t,{gitHosts:i,protocols:s})=>{if(!e)return;let n=xt(e)?`github:${e}`:e,r=Ft(n,s);if(!r)return;let o=i.byShortcut[r.protocol],a=i.byDomain[r.hostname.startsWith("www.")?r.hostname.slice(4):r.hostname],h=o||a;if(!h)return;let f=i[o||a],w=null;s[r.protocol]?.auth&&(r.username||r.password)&&(w=`${r.username}${r.password?":"+r.password:""}`);let p=null,m=null,d=null,A=null;try{if(o){let l=r.pathname.startsWith("/")?r.pathname.slice(1):r.pathname,S=l.indexOf("@");S>-1&&(l=l.slice(S+1));let c=l.lastIndexOf("/");c>-1?(m=decodeURIComponent(l.slice(0,c)),m||(m=null),d=decodeURIComponent(l.slice(c+1))):d=decodeURIComponent(l),d.endsWith(".git")&&(d=d.slice(0,-4)),r.hash&&(p=decodeURIComponent(r.hash.slice(1))),A="shortcut"}else{if(!f.protocols.includes(r.protocol))return;let l=f.extract(r);if(!l)return;m=l.user&&decodeURIComponent(l.user),d=decodeURIComponent(l.project),p=decodeURIComponent(l.committish),A=s[r.protocol]?.name||r.protocol.slice(0,-1)}}catch(l){if(l instanceof URIError)return;throw l}return[h,m,w,d,p,A,t]}});var ut=F((he,ft)=>{"use strict";y();var{LRUCache:Tt}=st(),zt=ot(),Ut=ct(),Wt=K(),Y=new Tt({max:1e3}),H=class e{constructor(t,i,s,n,r,o,a={}){Object.assign(this,e.#n[t],{type:t,user:i,auth:s,project:n,committish:r,default:o,opts:a})}static#n={byShortcut:{},byDomain:{}};static#l={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,i){e.#n[t]=i,e.#n.byDomain[i.domain]=t,e.#n.byShortcut[`${t}:`]=t,e.#l[`${t}:`]={name:t}}static fromUrl(t,i){if(typeof t!="string")return;let s=t+JSON.stringify(i||{});if(!Y.has(s)){let n=Ut(t,i,{gitHosts:e.#n,protocols:e.#l});Y.set(s,n?new e(...n):void 0)}return Y.get(s)}static parseUrl(t){return Wt(t)}#e(t,i){if(typeof t!="function")return null;let s={...this,...this.opts,...i};s.path||(s.path=""),s.path.startsWith("/")&&(s.path=s.path.slice(1)),s.noCommittish&&(s.committish=null);let n=t(s);return s.noGitPlus&&n.startsWith("git+")?n.slice(4):n}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#e(this.sshtemplate,t)}sshurl(t){return this.#e(this.sshurltemplate,t)}browse(t,...i){return typeof t!="string"?this.#e(this.browsetemplate,t):typeof i[0]!="string"?this.#e(this.browsetreetemplate,{...i[0],path:t}):this.#e(this.browsetreetemplate,{...i[1],fragment:i[0],path:t})}browseFile(t,...i){return typeof i[0]!="string"?this.#e(this.browseblobtemplate,{...i[0],path:t}):this.#e(this.browseblobtemplate,{...i[1],fragment:i[0],path:t})}docs(t){return this.#e(this.docstemplate,t)}bugs(t){return this.#e(this.bugstemplate,t)}https(t){return this.#e(this.httpstemplate,t)}git(t){return this.#e(this.gittemplate,t)}shortcut(t){return this.#e(this.shortcuttemplate,t)}path(t){return this.#e(this.pathtemplate,t)}tarball(t){return this.#e(this.tarballtemplate,{...t,noCommittish:!1})}file(t,i){return this.#e(this.filetemplate,{...i,path:t})}edit(t,i){return this.#e(this.edittemplate,{...i,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(zt))H.addHost(e,t);ft.exports=H});var dt=F((le,pt)=>{y();var Dt=Symbol("proc-log.meta");pt.exports={META:Dt,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function i(){return process.emit("time","end",e)}if(typeof t=="function"){let s=t();return s&&s.finally?s.finally(i):(i(),s)}return i},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let i=e();return i&&i.finally?i.finally(t):(t(),i)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,i,s=new Promise((n,r)=>{t=n,i=r});return process.emit("input","read",t,i,...e),s}}}});var Jt=F((fe,I)=>{y();I.exports=L;I.exports.resolve=yt;I.exports.toPurl=Ht;I.exports.Result=U;var{URL:x}=D("url"),Lt=ut(),mt=vt(),C=global.FAKE_WINDOWS?D("path").win32:D("path"),bt=At(),{homedir:It}=D("os"),{log:Pt}=dt(),J=process.platform==="win32"||global.FAKE_WINDOWS,St=J?/\\|[/]/:/[/]/,$t=/^(?:git[+])?[a-z]+:/i,jt=/^[^@]+@[^:.]+\.[^:]+:.+$/i,X=/[.](?:tgz|tar.gz|tar)$/i;function L(e,t){let i,s;if(typeof e=="object")return e instanceof U&&(!t||t===e.where)?e:e.name&&e.rawSpec?L.resolve(e.name,e.rawSpec,t||e.where):L(e.raw,t||e.where);let n=e[0]==="@"?e.slice(1).indexOf("@")+1:e.indexOf("@"),r=n>0?e.slice(0,n):e;return $t.test(e)?s=e:jt.test(e)?s=`git+ssh://${e}`:r[0]!=="@"&&(St.test(r)||X.test(r))?s=e:n>0?(i=r,s=e.slice(n+1)||"*"):bt(e).validForOldPackages?(i=e,s="*"):s=e,yt(i,s,t,e)}var Nt=J?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function yt(e,t,i,s){let n=new U({raw:s,name:e,rawSpec:t,fromArgument:s!=null});if(e&&n.setName(e),t&&(Nt.test(t)||/^file:/i.test(t)))return wt(n,i);if(t&&/^npm:/i.test(t))return Yt(n,i);let r=Lt.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return r?qt(n,r):t&&$t.test(t)?Kt(n):t&&(St.test(t)||X.test(t))?wt(n,i):Bt(n)}var gt="https://registry.npmjs.org";function Ht(e,t=gt){let i=L(e);if(i.type!=="version")throw Mt(i.type,i.raw);let s="pkg:npm/"+i.name.replace(/^@/,"%40")+"@"+i.rawSpec;return t!==gt&&(s+="?repository_url="+t),s}function Gt(e,t,i){let s=new Error(`Invalid package name "${e}" of package "${i}": ${t.errors.join("; ")}.`);return s.code="EINVALIDPACKAGENAME",s}function kt(e,t){let i=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return i.code="EINVALIDTAGNAME",i}function Mt(e,t){let i=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return i.code="EINVALIDPURLTYPE",i}function U(e){this.type=e.type,this.registry=e.registry,this.where=e.where,e.raw==null?this.raw=e.name?e.name+"@"+e.rawSpec:e.rawSpec:this.raw=e.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=e.rawSpec||"",this.saveSpec=e.saveSpec,this.fetchSpec=e.fetchSpec,e.name&&this.setName(e.name),this.gitRange=e.gitRange,this.gitCommittish=e.gitCommittish,this.gitSubdir=e.gitSubdir,this.hosted=e.hosted}U.prototype.setName=function(e){let t=bt(e);if(!t.validForOldPackages)throw Gt(e,t,this.raw);return this.name=e,this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):void 0,this.escapedName=e.replace("/","%2f"),this};U.prototype.toString=function(){let e=[];this.name!=null&&this.name!==""&&e.push(this.name);let t=this.saveSpec||this.fetchSpec||this.rawSpec;return t!=null&&t!==""&&e.push(t),e.length?e.join("@"):this.raw};U.prototype.toJSON=function(){let e=Object.assign({},this);return delete e.hosted,e};function B(e,t){if(!t){e.gitCommittish=null;return}for(let i of t.split("::")){if(!i.includes(":")){if(e.gitRange)throw new Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw new Error("cannot override existing committish with a second committish");e.gitCommittish=i;continue}let[s,n]=i.split(":");if(s==="semver"){if(e.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(e.gitRange)throw new Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(n);continue}if(s==="path"){if(e.gitSubdir)throw new Error("cannot override existing path with a second path");e.gitSubdir=`/${n}`;continue}Pt.warn("npm-package-arg",`ignoring unknown key "${s}"`)}}function wt(e,t){t||(t=process.cwd()),e.type=X.test(e.rawSpec)?"file":"directory",e.where=t;let i,s,r=(/^file:/.test(e.rawSpec)?"":"file:")+e.rawSpec,o=r.replace(/^file:/,"");try{s=new x(r,`file://${C.resolve(t)}/`),i=new x(r)}catch(f){let w=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(w,{raw:e.rawSpec,spec:e,where:t,originalError:f})}if(s.host&&s.host!=="localhost"){let f=e.rawSpec.replace(/^file:\/\//,"file:///");s=new x(f,`file://${C.resolve(t)}/`),i=new x(f),o=f.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(o)){let f=e.rawSpec.replace(/^file:\/{1,3}/,"file:");s=new x(f,`file://${C.resolve(t)}/`),i=new x(f),o=f.replace(/^file:/,"")}let a=decodeURIComponent(i.pathname),h=decodeURIComponent(s.pathname);return J&&(a=a.replace(/^\/+([a-z]:\/)/i,"$1"),h=h.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(a)?(e.saveSpec=`file:${a.substr(1)}`,h=C.resolve(It(),a.substr(3))):C.isAbsolute(o)?e.saveSpec=`file:${C.resolve(h)}`:e.saveSpec=`file:${C.relative(t,h)}`,e.fetchSpec=C.resolve(t,h),e}function qt(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),B(e,t.committish),e}function Vt(e,t){let i=new Error(`Unsupported URL Type "${e}": ${t}`);return i.code="EUNSUPPORTEDPROTOCOL",i}function Kt(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let s=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(s&&!s[1].match(/:[0-9]+\/?.*$/i))return e.type="git",B(e,s[2]),e.fetchSpec=s[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let i=new x(t);switch(i.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git",B(e,i.hash.slice(1)),i.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)?e.fetchSpec=`git+file://${i.host.toLowerCase()}:${i.pathname}`:(i.hash="",e.fetchSpec=i.toString()),e.fetchSpec.startsWith("git+")&&(e.fetchSpec=e.fetchSpec.slice(4));break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw Vt(i.protocol,t)}return e}function Yt(e,t){let i=L(e.rawSpec.substr(4),t);if(i.type==="alias")throw new Error("nested aliases not supported");if(!i.registry)throw new Error("aliases only work for registry deps");if(!i.name)throw new Error("aliases must have a name");return e.subSpec=i,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function Bt(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let i=mt.valid(t,!0),s=mt.validRange(t,!0);if(i)e.type="version";else if(s)e.type="range";else{if(encodeURIComponent(t)!==t)throw kt(t,e.raw);e.type="tag"}return e}});export default Jt();
@@ -1 +0,0 @@
1
- import{Ac as l,Bc as m,Cc as n,Dc as o,Ec as p,Fc as q,Gc as r,bc as a,cc as b,rc as c,sc as d,tc as e,uc as f,vc as g,wc as h,xc as i,yc as j,zc as k}from"./chunk-66TIGB4U.js";import"./chunk-SVA22NZQ.js";import"./chunk-FU2Y2M3M.js";import"./chunk-QYR5VPQA.js";import"./chunk-EENHXSWU.js";import"./chunk-JBSYWYIP.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-QUTQDXSL.js";import"./chunk-VPRTJUIN.js";export{b as handleCtrlC,r as isTTY,q as keypress,a as render,k as renderAutocompletePrompt,c as renderConcurrent,j as renderConfirmationPrompt,p as renderDangerousConfirmationPrompt,g as renderError,h as renderFatalError,d as renderInfo,i as renderSelectPrompt,n as renderSingleTask,e as renderSuccess,l as renderTable,m as renderTasks,o as renderTextPrompt,f as renderWarning};
@@ -1,18 +0,0 @@
1
- import{Ua as b,Va as k,Wa as E,X as v,Xa as A,Ya as I,Za as L,_a as x,mb as s,ob as B,pb as O}from"./chunk-BF7JM4FH.js";import"./chunk-KADPE3PY.js";import"./chunk-52KHWFYF.js";import"./chunk-IDQ4X47Z.js";import"./chunk-7ES6PV7M.js";import"./chunk-PRKBO42R.js";import"./chunk-PBKIXB7L.js";import{Gd as q,Jc as R,Qa as g,ic as N,tc as w,va as y}from"./chunk-66TIGB4U.js";import"./chunk-SVA22NZQ.js";import"./chunk-FU2Y2M3M.js";import"./chunk-QYR5VPQA.js";import"./chunk-EENHXSWU.js";import{e as h,h as f}from"./chunk-JBSYWYIP.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-QUTQDXSL.js";import{g as p}from"./chunk-VPRTJUIN.js";p();import{createRequire as C}from"node:module";async function ee({root:c,appPort:D,inspectorPort:P,assetsPort:S,debug:U=!1,watch:W=!1,buildPathWorkerFile:$,buildPathClient:M,env:l}){let{createMiniOxygen:F,Response:u}=await v("@shopify/mini-oxygen",c).catch(L);k({Response:u});async function _(){let r=C(import.meta.url).resolve("@shopify/hydrogen/customer-account.schema.json");return new u(g(r),{headers:{"Content-Type":"application/json"}})}let t="hydrogen",o=h(c,$),m=()=>y(o).catch(e=>{throw new R(`Could not read worker file.
2
-
3
- `+e.stack,"Did you build the project?")}),i=F({debug:U,port:D,host:"localhost",liveReload:W,requestHook:x,inspectorPort:P,inspectWorkerName:t,assets:{port:S,directory:M},workers:[{name:"hydrogen:middleware",modules:!0,script:`export default { fetch: (request, env) => {
4
- const url = new URL(request.url);
5
- if (url.hostname.endsWith('${s.ORIGINAL}')) {
6
- url.hostname = url.hostname.replace(
7
- '${s.ORIGINAL}',
8
- '${s.REBRANDED}',
9
- );
10
- }
11
-
12
- return url.pathname === '${I}'
13
- ? env.profiler.fetch(url, request)
14
- : url.pathname === '/graphiql/customer-account.schema.json'
15
- ? env.assets.fetch(url, request)
16
- : env.next.fetch(url, request)
17
- }
18
- }`,serviceBindings:{profiler:A,assets:_,next:t}},{name:t,modulesRoot:f(o),modules:[{type:"ESModule",path:o,contents:await m()}],bindings:{...l},serviceBindings:{[b]:E({transformLocation:()=>o})}}]}),{workerUrl:a,inspectorUrl:d}=await i.ready;return{port:Number(a.port),listeningAt:a.origin,reload(e){return i.reload(async({workers:r})=>{let n=r.find(({name:j})=>j===t);return Array.isArray(n.modules)&&n.modules[0]&&(n.modules[0].contents=await m()),e&&(n.bindings={...e?.env??l}),{workers:r}})},showBanner(e){q();let r=[];e?.host&&r.push({body:O(e.host)}),d&&r.push({body:{warn:B(Number(d.port))}}),w({headline:`${e?.headlinePrefix??""}MiniOxygen (Worker Runtime) ${e?.mode??"development"} server running.`,body:[`View ${e?.appName?N.cyan(e?.appName):"Hydrogen"} app:`,{link:{url:e?.host||a.origin}}],customSections:r}),console.log("")},async close(){await i.dispose()}}}export{ee as startWorkerdServer};
File without changes