@wix/cli 1.1.39 → 1.1.40

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 (78) hide show
  1. package/build/{LoginCommand-4AJYVC35.js → LoginCommand-YLG7THMT.js} +2 -2
  2. package/build/LogoutCommand-HM5OSEOZ.js +4 -0
  3. package/build/LogoutCommand-HM5OSEOZ.js.map +1 -0
  4. package/build/{WhoamiCommand-LXENA3P6.js → WhoamiCommand-DN5BI5XK.js} +2 -2
  5. package/build/{chunk-SDDOYSZT.js → chunk-3JIZZKXR.js} +2 -2
  6. package/build/{chunk-AKFSC7TY.js → chunk-4RZFSD5E.js} +2 -2
  7. package/build/{chunk-7INBYM44.js → chunk-52X7T2C4.js} +2 -2
  8. package/build/{chunk-FETHBYZJ.js → chunk-5OVGWC7Z.js} +2 -2
  9. package/build/{chunk-FETHBYZJ.js.map → chunk-5OVGWC7Z.js.map} +1 -1
  10. package/build/{chunk-IDVMSNIR.js → chunk-73F224C6.js} +2 -2
  11. package/build/{chunk-JFUGOSWJ.js → chunk-ALYXYI3A.js} +2 -2
  12. package/build/chunk-ALYXYI3A.js.map +1 -0
  13. package/build/{chunk-4BZMFYVJ.js → chunk-AONJNQVC.js} +2 -2
  14. package/build/{chunk-MBFTIRSJ.js → chunk-ATZ7632K.js} +2 -2
  15. package/build/{chunk-NA3PS2J2.js → chunk-BJBHLQFN.js} +2 -2
  16. package/build/{chunk-R3FGH2CR.js → chunk-CI75KSJP.js} +2 -2
  17. package/build/{chunk-FGALJZRN.js → chunk-ELGTT53S.js} +2 -2
  18. package/build/{chunk-R644SCVZ.js → chunk-GGDTACVW.js} +2 -2
  19. package/build/{chunk-VAHKW25J.js → chunk-IJQ5FOSD.js} +2 -2
  20. package/build/chunk-IJQ5FOSD.js.map +1 -0
  21. package/build/{chunk-GIZ6HNLG.js → chunk-JI4TC3GS.js} +2 -2
  22. package/build/{chunk-ITZHAIIT.js → chunk-KSTCJMGA.js} +2 -2
  23. package/build/chunk-O6REXRBB.js +93 -0
  24. package/build/chunk-O6REXRBB.js.map +1 -0
  25. package/build/{chunk-LM63VRXC.js → chunk-RPA2CWUK.js} +6 -6
  26. package/build/{chunk-LM63VRXC.js.map → chunk-RPA2CWUK.js.map} +1 -1
  27. package/build/chunk-SYHT5LTW.js +4 -0
  28. package/build/chunk-SYHT5LTW.js.map +1 -0
  29. package/build/{chunk-E5UPMTBO.js → chunk-WM46DYEL.js} +2 -2
  30. package/build/{chunk-E5UPMTBO.js.map → chunk-WM46DYEL.js.map} +1 -1
  31. package/build/{dev-FDICF2SI.js → dev-YCJZ72D6.js} +3 -3
  32. package/build/{dev-FDICF2SI.js.map → dev-YCJZ72D6.js.map} +1 -1
  33. package/build/index.js +3 -3
  34. package/build/index.js.map +1 -1
  35. package/build/{install-3GQZ4CR5.js → install-5VWP4X3R.js} +2 -2
  36. package/build/{preview-UM7J4ASZ.js → preview-JEVTHHBX.js} +2 -2
  37. package/build/{publish-4MUHRH6N.js → publish-Q2AMII6J.js} +2 -2
  38. package/build/{render-command-YOJON3E7.js → render-command-LAZMAJJS.js} +2 -2
  39. package/build/{run-command-XYGTTYQN.js → run-command-MHAF6RNI.js} +2 -2
  40. package/build/{src-ZRURTJ5K.js → src-4RWO6JU7.js} +2 -2
  41. package/build/{src-YYRC7YT3.js → src-HEIGIYCT.js} +2 -2
  42. package/build/{src-VQYSSOBX.js → src-V3SLBK4U.js} +2 -2
  43. package/build/sync-types-MFXPANOT.js +4 -0
  44. package/build/{uninstall-BZZIAJNG.js → uninstall-LPH6U2U7.js} +2 -2
  45. package/package.json +2 -2
  46. package/build/LogoutCommand-2GUZMV7I.js +0 -4
  47. package/build/LogoutCommand-2GUZMV7I.js.map +0 -1
  48. package/build/chunk-6TMOZJXV.js +0 -4
  49. package/build/chunk-6TMOZJXV.js.map +0 -1
  50. package/build/chunk-JFUGOSWJ.js.map +0 -1
  51. package/build/chunk-OQEXAUDS.js +0 -93
  52. package/build/chunk-OQEXAUDS.js.map +0 -1
  53. package/build/chunk-VAHKW25J.js.map +0 -1
  54. package/build/sync-types-Z6SYJMVP.js +0 -4
  55. /package/build/{LoginCommand-4AJYVC35.js.map → LoginCommand-YLG7THMT.js.map} +0 -0
  56. /package/build/{WhoamiCommand-LXENA3P6.js.map → WhoamiCommand-DN5BI5XK.js.map} +0 -0
  57. /package/build/{chunk-SDDOYSZT.js.map → chunk-3JIZZKXR.js.map} +0 -0
  58. /package/build/{chunk-AKFSC7TY.js.map → chunk-4RZFSD5E.js.map} +0 -0
  59. /package/build/{chunk-7INBYM44.js.map → chunk-52X7T2C4.js.map} +0 -0
  60. /package/build/{chunk-IDVMSNIR.js.map → chunk-73F224C6.js.map} +0 -0
  61. /package/build/{chunk-4BZMFYVJ.js.map → chunk-AONJNQVC.js.map} +0 -0
  62. /package/build/{chunk-MBFTIRSJ.js.map → chunk-ATZ7632K.js.map} +0 -0
  63. /package/build/{chunk-NA3PS2J2.js.map → chunk-BJBHLQFN.js.map} +0 -0
  64. /package/build/{chunk-R3FGH2CR.js.map → chunk-CI75KSJP.js.map} +0 -0
  65. /package/build/{chunk-FGALJZRN.js.map → chunk-ELGTT53S.js.map} +0 -0
  66. /package/build/{chunk-R644SCVZ.js.map → chunk-GGDTACVW.js.map} +0 -0
  67. /package/build/{chunk-GIZ6HNLG.js.map → chunk-JI4TC3GS.js.map} +0 -0
  68. /package/build/{chunk-ITZHAIIT.js.map → chunk-KSTCJMGA.js.map} +0 -0
  69. /package/build/{install-3GQZ4CR5.js.map → install-5VWP4X3R.js.map} +0 -0
  70. /package/build/{preview-UM7J4ASZ.js.map → preview-JEVTHHBX.js.map} +0 -0
  71. /package/build/{publish-4MUHRH6N.js.map → publish-Q2AMII6J.js.map} +0 -0
  72. /package/build/{render-command-YOJON3E7.js.map → render-command-LAZMAJJS.js.map} +0 -0
  73. /package/build/{run-command-XYGTTYQN.js.map → run-command-MHAF6RNI.js.map} +0 -0
  74. /package/build/{src-VQYSSOBX.js.map → src-4RWO6JU7.js.map} +0 -0
  75. /package/build/{src-YYRC7YT3.js.map → src-HEIGIYCT.js.map} +0 -0
  76. /package/build/{src-ZRURTJ5K.js.map → src-V3SLBK4U.js.map} +0 -0
  77. /package/build/{sync-types-Z6SYJMVP.js.map → sync-types-MFXPANOT.js.map} +0 -0
  78. /package/build/{uninstall-BZZIAJNG.js.map → uninstall-LPH6U2U7.js.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{b as en}from"./chunk-MBFTIRSJ.js";import{a as p}from"./chunk-NWTFQJ5S.js";import{a as x,c as y,e as Oe,i as s}from"./chunk-UO4ZAUJK.js";var Fe=y((qr,ke)=>{"use strict";s();var I=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",$e=x("path"),tn=I?";":":",Le=en(),De=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),_e=(e,t)=>{let n=t.colon||tn,r=e.match(/\//)||I&&e.match(/\\/)?[""]:[...I?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],o=I?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=I?o.split(n):[""];return I&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:r,pathExt:i,pathExtExe:o}},Me=(e,t,n)=>{typeof t=="function"&&(n=t,t={}),t||(t={});let{pathEnv:r,pathExt:o,pathExtExe:i}=_e(e,t),a=[],c=u=>new Promise((l,m)=>{if(u===r.length)return t.all&&a.length?l(a):m(De(e));let d=r[u],S=/^".*"$/.test(d)?d.slice(1,-1):d,h=$e.join(S,e),g=!S&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;l(f(g,u,0))}),f=(u,l,m)=>new Promise((d,S)=>{if(m===o.length)return d(c(l+1));let h=o[m];Le(u+h,{pathExt:i},(g,b)=>{if(!g&&b)if(t.all)a.push(u+h);else return d(u+h);return d(f(u,l,m+1))})});return n?c(0).then(u=>n(null,u),n):c(0)},nn=(e,t)=>{t=t||{};let{pathEnv:n,pathExt:r,pathExtExe:o}=_e(e,t),i=[];for(let a=0;a<n.length;a++){let c=n[a],f=/^".*"$/.test(c)?c.slice(1,-1):c,u=$e.join(f,e),l=!f&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;for(let m=0;m<r.length;m++){let d=l+r[m];try{if(Le.sync(d,{pathExt:o}))if(t.all)i.push(d);else return d}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw De(e)};ke.exports=Me;Me.sync=nn});var ze=y((Vr,q)=>{"use strict";s();var Ke=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};q.exports=Ke;q.exports.default=Ke});var Ve=y((Yr,He)=>{"use strict";s();var We=x("path"),rn=Fe(),on=ze();function qe(e,t){let n=e.options.env||process.env,r=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let a;try{a=rn.sync(e.command,{path:n[on({env:n})],pathExt:t?We.delimiter:void 0})}catch{}finally{i&&process.chdir(r)}return a&&(a=We.resolve(o?e.options.cwd:"",a)),a}function sn(e){return qe(e)||qe(e,!0)}He.exports=sn});var Xe=y((Qr,V)=>{"use strict";s();var H=/([()\][%!^"`<>&|;, *?])/g;function an(e){return e=e.replace(H,"^$1"),e}function cn(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(H,"^$1"),t&&(e=e.replace(H,"^$1")),e}V.exports.command=an;V.exports.argument=cn});var Ze=y((eo,Ye)=>{"use strict";s();Ye.exports=/^#!(.*)/});var Je=y((no,Qe)=>{"use strict";s();var un=Ze();Qe.exports=(e="")=>{let t=e.match(un);if(!t)return null;let[n,r]=t[0].replace(/#! ?/,"").split(" "),o=n.split("/").pop();return o==="env"?r:r?`${o} ${r}`:o}});var tt=y((oo,et)=>{"use strict";s();var X=x("fs"),fn=Je();function ln(e){let n=Buffer.alloc(150),r;try{r=X.openSync(e,"r"),X.readSync(r,n,0,150,0),X.closeSync(r)}catch{}return fn(n.toString())}et.exports=ln});var it=y((so,ot)=>{"use strict";s();var dn=x("path"),nt=Ve(),rt=Xe(),pn=tt(),mn=process.platform==="win32",hn=/\.(?:com|exe)$/i,Sn=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function yn(e){e.file=nt(e);let t=e.file&&pn(e.file);return t?(e.args.unshift(e.file),e.command=t,nt(e)):e.file}function gn(e){if(!mn)return e;let t=yn(e),n=!hn.test(t);if(e.options.forceShell||n){let r=Sn.test(t);e.command=dn.normalize(e.command),e.command=rt.command(e.command),e.args=e.args.map(i=>rt.argument(i,r));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function En(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:gn(r)}ot.exports=En});var ct=y((co,at)=>{"use strict";s();var Y=process.platform==="win32";function Z(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function bn(e,t){if(!Y)return;let n=e.emit;e.emit=function(r,o){if(r==="exit"){let i=st(o,t,"spawn");if(i)return n.call(e,"error",i)}return n.apply(e,arguments)}}function st(e,t){return Y&&e===1&&!t.file?Z(t.original,"spawn"):null}function xn(e,t){return Y&&e===1&&!t.file?Z(t.original,"spawnSync"):null}at.exports={hookChildProcess:bn,verifyENOENT:st,verifyENOENTSync:xn,notFoundError:Z}});var lt=y((fo,A)=>{"use strict";s();var ut=x("child_process"),Q=it(),J=ct();function ft(e,t,n){let r=Q(e,t,n),o=ut.spawn(r.command,r.args,r.options);return J.hookChildProcess(o,r),o}function wn(e,t,n){let r=Q(e,t,n),o=ut.spawnSync(r.command,r.args,r.options);return o.error=o.error||J.verifyENOENTSync(o.status,r),o}A.exports=ft;A.exports.spawn=ft;A.exports.sync=wn;A.exports._parse=Q;A.exports._enoent=J});var Dt=y((_i,Lt)=>{"use strict";s();var{PassThrough:Er}=x("stream");Lt.exports=function(){var e=[],t=new Er({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=r,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(n),t;function n(i){return Array.isArray(i)?(i.forEach(n),this):(e.push(i),i.once("end",o.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this)}function r(){return e.length==0}function o(i){e=e.filter(function(a){return a!==i}),!e.length&&t.readable&&t.end()}}});s();var Pe;(function(e){e.UNKNOWN="UNKNOWN",e.EDITOR_REVISION="EDITOR_REVISION"})(Pe||(Pe={}));var Ne;(function(e){e.UNDEFINED="UNDEFINED",e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.INVOKE_ERROR="INVOKE_ERROR",e.TIMEOUT="TIMEOUT",e.SKIPPED="SKIPPED"})(Ne||(Ne={}));var Ge;(function(e){e.UNDEFINED="UNDEFINED",e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.RUNNING="RUNNING",e.ABORTED="ABORTED"})(Ge||(Ge={}));var w;(function(e){e.UNDEFINED="UNDEFINED",e.NONE="NONE",e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="SUCCESS",e.ERROR="ERROR"})(w||(w={}));var ve;(function(e){e.UNKNOWN="UNKNOWN",e.RELEASE_MANAGER="RELEASE_MANAGER",e.BLOCKS="BLOCKS",e.WIX_CLI="WIX_CLI",e.MOBILE_APP_BUILDER="MOBILE_APP_BUILDER",e.SEO="SEO",e.FEEDBACK="FEEDBACK"})(ve||(ve={}));var Ue;(function(e){e.NONE="NONE",e.SITE="SITE",e.RC="RC"})(Ue||(Ue={}));var Be;(function(e){e.ASC="ASC",e.DESC="DESC"})(Be||(Be={}));var je;(function(e){e.UNKNOWN="UNKNOWN",e.ANONYMOUS_VISITOR="ANONYMOUS_VISITOR",e.MEMBER="MEMBER",e.WIX_USER="WIX_USER",e.APP="APP"})(je||(je={}));s();var Zt=Oe(lt(),1);import{Buffer as Lr}from"node:buffer";import Dr from"node:path";import Ie from"node:child_process";import W from"node:process";s();function ee(e){let t=typeof e=="string"?`
3
+ import{b as en}from"./chunk-ATZ7632K.js";import{a as p}from"./chunk-NWTFQJ5S.js";import{a as x,c as y,e as Oe,i as s}from"./chunk-UO4ZAUJK.js";var Fe=y((qr,ke)=>{"use strict";s();var I=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",$e=x("path"),tn=I?";":":",Le=en(),De=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),_e=(e,t)=>{let n=t.colon||tn,r=e.match(/\//)||I&&e.match(/\\/)?[""]:[...I?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],o=I?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=I?o.split(n):[""];return I&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:r,pathExt:i,pathExtExe:o}},Me=(e,t,n)=>{typeof t=="function"&&(n=t,t={}),t||(t={});let{pathEnv:r,pathExt:o,pathExtExe:i}=_e(e,t),a=[],c=u=>new Promise((l,m)=>{if(u===r.length)return t.all&&a.length?l(a):m(De(e));let d=r[u],S=/^".*"$/.test(d)?d.slice(1,-1):d,h=$e.join(S,e),g=!S&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;l(f(g,u,0))}),f=(u,l,m)=>new Promise((d,S)=>{if(m===o.length)return d(c(l+1));let h=o[m];Le(u+h,{pathExt:i},(g,b)=>{if(!g&&b)if(t.all)a.push(u+h);else return d(u+h);return d(f(u,l,m+1))})});return n?c(0).then(u=>n(null,u),n):c(0)},nn=(e,t)=>{t=t||{};let{pathEnv:n,pathExt:r,pathExtExe:o}=_e(e,t),i=[];for(let a=0;a<n.length;a++){let c=n[a],f=/^".*"$/.test(c)?c.slice(1,-1):c,u=$e.join(f,e),l=!f&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;for(let m=0;m<r.length;m++){let d=l+r[m];try{if(Le.sync(d,{pathExt:o}))if(t.all)i.push(d);else return d}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw De(e)};ke.exports=Me;Me.sync=nn});var ze=y((Vr,q)=>{"use strict";s();var Ke=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};q.exports=Ke;q.exports.default=Ke});var Ve=y((Yr,He)=>{"use strict";s();var We=x("path"),rn=Fe(),on=ze();function qe(e,t){let n=e.options.env||process.env,r=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let a;try{a=rn.sync(e.command,{path:n[on({env:n})],pathExt:t?We.delimiter:void 0})}catch{}finally{i&&process.chdir(r)}return a&&(a=We.resolve(o?e.options.cwd:"",a)),a}function sn(e){return qe(e)||qe(e,!0)}He.exports=sn});var Xe=y((Qr,V)=>{"use strict";s();var H=/([()\][%!^"`<>&|;, *?])/g;function an(e){return e=e.replace(H,"^$1"),e}function cn(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(H,"^$1"),t&&(e=e.replace(H,"^$1")),e}V.exports.command=an;V.exports.argument=cn});var Ze=y((eo,Ye)=>{"use strict";s();Ye.exports=/^#!(.*)/});var Je=y((no,Qe)=>{"use strict";s();var un=Ze();Qe.exports=(e="")=>{let t=e.match(un);if(!t)return null;let[n,r]=t[0].replace(/#! ?/,"").split(" "),o=n.split("/").pop();return o==="env"?r:r?`${o} ${r}`:o}});var tt=y((oo,et)=>{"use strict";s();var X=x("fs"),fn=Je();function ln(e){let n=Buffer.alloc(150),r;try{r=X.openSync(e,"r"),X.readSync(r,n,0,150,0),X.closeSync(r)}catch{}return fn(n.toString())}et.exports=ln});var it=y((so,ot)=>{"use strict";s();var dn=x("path"),nt=Ve(),rt=Xe(),pn=tt(),mn=process.platform==="win32",hn=/\.(?:com|exe)$/i,Sn=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function yn(e){e.file=nt(e);let t=e.file&&pn(e.file);return t?(e.args.unshift(e.file),e.command=t,nt(e)):e.file}function gn(e){if(!mn)return e;let t=yn(e),n=!hn.test(t);if(e.options.forceShell||n){let r=Sn.test(t);e.command=dn.normalize(e.command),e.command=rt.command(e.command),e.args=e.args.map(i=>rt.argument(i,r));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function En(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:gn(r)}ot.exports=En});var ct=y((co,at)=>{"use strict";s();var Y=process.platform==="win32";function Z(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function bn(e,t){if(!Y)return;let n=e.emit;e.emit=function(r,o){if(r==="exit"){let i=st(o,t,"spawn");if(i)return n.call(e,"error",i)}return n.apply(e,arguments)}}function st(e,t){return Y&&e===1&&!t.file?Z(t.original,"spawn"):null}function xn(e,t){return Y&&e===1&&!t.file?Z(t.original,"spawnSync"):null}at.exports={hookChildProcess:bn,verifyENOENT:st,verifyENOENTSync:xn,notFoundError:Z}});var lt=y((fo,A)=>{"use strict";s();var ut=x("child_process"),Q=it(),J=ct();function ft(e,t,n){let r=Q(e,t,n),o=ut.spawn(r.command,r.args,r.options);return J.hookChildProcess(o,r),o}function wn(e,t,n){let r=Q(e,t,n),o=ut.spawnSync(r.command,r.args,r.options);return o.error=o.error||J.verifyENOENTSync(o.status,r),o}A.exports=ft;A.exports.spawn=ft;A.exports.sync=wn;A.exports._parse=Q;A.exports._enoent=J});var Dt=y((_i,Lt)=>{"use strict";s();var{PassThrough:Er}=x("stream");Lt.exports=function(){var e=[],t=new Er({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=r,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(n),t;function n(i){return Array.isArray(i)?(i.forEach(n),this):(e.push(i),i.once("end",o.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this)}function r(){return e.length==0}function o(i){e=e.filter(function(a){return a!==i}),!e.length&&t.readable&&t.end()}}});s();var Pe;(function(e){e.UNKNOWN="UNKNOWN",e.EDITOR_REVISION="EDITOR_REVISION"})(Pe||(Pe={}));var Ne;(function(e){e.UNDEFINED="UNDEFINED",e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.INVOKE_ERROR="INVOKE_ERROR",e.TIMEOUT="TIMEOUT",e.SKIPPED="SKIPPED"})(Ne||(Ne={}));var Ge;(function(e){e.UNDEFINED="UNDEFINED",e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.RUNNING="RUNNING",e.ABORTED="ABORTED"})(Ge||(Ge={}));var w;(function(e){e.UNDEFINED="UNDEFINED",e.NONE="NONE",e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="SUCCESS",e.ERROR="ERROR"})(w||(w={}));var ve;(function(e){e.UNKNOWN="UNKNOWN",e.RELEASE_MANAGER="RELEASE_MANAGER",e.BLOCKS="BLOCKS",e.WIX_CLI="WIX_CLI",e.MOBILE_APP_BUILDER="MOBILE_APP_BUILDER",e.SEO="SEO",e.FEEDBACK="FEEDBACK"})(ve||(ve={}));var Ue;(function(e){e.NONE="NONE",e.SITE="SITE",e.RC="RC"})(Ue||(Ue={}));var Be;(function(e){e.ASC="ASC",e.DESC="DESC"})(Be||(Be={}));var je;(function(e){e.UNKNOWN="UNKNOWN",e.ANONYMOUS_VISITOR="ANONYMOUS_VISITOR",e.MEMBER="MEMBER",e.WIX_USER="WIX_USER",e.APP="APP"})(je||(je={}));s();var Zt=Oe(lt(),1);import{Buffer as Lr}from"node:buffer";import Dr from"node:path";import Ie from"node:child_process";import W from"node:process";s();function ee(e){let t=typeof e=="string"?`
4
4
  `:10,n=typeof e=="string"?"\r":13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}s();import U from"node:process";import C from"node:path";import In from"node:url";s();function v(e={}){let{env:t=process.env,platform:n=process.platform}=e;return n!=="win32"?"PATH":Object.keys(t).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"}function An(e={}){let{cwd:t=U.cwd(),path:n=U.env[v()],execPath:r=U.execPath}=e,o,i=t instanceof URL?In.fileURLToPath(t):t,a=C.resolve(i),c=[];for(;o!==a;)c.push(C.join(a,"node_modules/.bin")),o=a,a=C.resolve(a,"..");return c.push(C.resolve(i,r,"..")),[...c,n].join(C.delimiter)}function dt({env:e=U.env,...t}={}){e={...e};let n=v({env:e});return t.path=e[n],e[n]=An(t),e}s();s();var Cn=(e,t,n,r)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!Rn(o,i)&&r||Object.defineProperty(e,n,i)},Rn=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Tn=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},On=(e,t)=>`/* Wrapped ${e}*/
5
5
  ${t}`,Pn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Nn=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Gn=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=On.bind(null,r,t.toString());Object.defineProperty(o,"name",Nn),Object.defineProperty(e,"toString",{...Pn,value:o})};function te(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))Cn(e,t,o,n);return Tn(e,t),Gn(e,t,r),e}var B=new WeakMap,pt=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,r=0,o=e.displayName||e.name||"<anonymous>",i=function(...a){if(B.set(i,++r),r===1)n=e.apply(this,a),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return n};return te(i,e),B.set(i,r),i};pt.callCount=e=>{if(!B.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return B.get(e)};var mt=pt;s();import kn from"node:process";s();import{constants as jn}from"node:os";s();var ht=()=>{let e=yt-St+1;return Array.from({length:e},vn)},vn=(e,t)=>({name:`SIGRT${t+1}`,number:St+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),St=34,yt=64;s();import{constants as Un}from"node:os";s();var gt=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var ne=()=>{let e=ht();return[...gt,...e].map(Bn)},Bn=({name:e,number:t,description:n,action:r,forced:o=!1,standard:i})=>{let{signals:{[e]:a}}=Un,c=a!==void 0;return{name:e,number:c?a:t,description:n,supported:c,action:r,forced:o,standard:i}};var $n=()=>{let e=ne();return Object.fromEntries(e.map(Ln))},Ln=({name:e,number:t,description:n,supported:r,action:o,forced:i,standard:a})=>[e,{name:e,number:t,description:n,supported:r,action:o,forced:i,standard:a}],Et=$n(),Dn=()=>{let e=ne(),t=65,n=Array.from({length:t},(r,o)=>_n(o,e));return Object.assign({},...n)},_n=(e,t)=>{let n=Mn(e,t);if(n===void 0)return{};let{name:r,description:o,supported:i,action:a,forced:c,standard:f}=n;return{[e]:{name:r,number:e,description:o,supported:i,action:a,forced:c,standard:f}}},Mn=(e,t)=>{let n=t.find(({name:r})=>jn.signals[r]===e);return n!==void 0?n:t.find(r=>r.number===e)},_o=Dn();var Fn=({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:o,exitCode:i,isCanceled:a})=>e?`timed out after ${t} milliseconds`:a?"was canceled":n!==void 0?`failed with ${n}`:r!==void 0?`was killed with ${r} (${o})`:i!==void 0?`failed with exit code ${i}`:"failed",R=({stdout:e,stderr:t,all:n,error:r,signal:o,exitCode:i,command:a,escapedCommand:c,timedOut:f,isCanceled:u,killed:l,parsed:{options:{timeout:m,cwd:d=kn.cwd()}}})=>{i=i===null?void 0:i,o=o===null?void 0:o;let S=o===void 0?void 0:Et[o].description,h=r&&r.code,b=`Command ${Fn({timedOut:f,timeout:m,errorCode:h,signal:o,signalDescription:S,exitCode:i,isCanceled:u})}: ${a}`,P=Object.prototype.toString.call(r)==="[object Error]",N=P?`${b}
6
6
  ${r.message}`:b,G=[N,t,e].filter(Boolean).join(`
7
7
  `);return P?(r.originalMessage=r.message,r.message=G):r=new Error(G),r.shortMessage=N,r.command=a,r.escapedCommand=c,r.exitCode=i,r.signal=o,r.signalDescription=S,r.stdout=e,r.stderr=t,r.cwd=d,n!==void 0&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!f,r.isCanceled=u,r.killed=l&&!f,r};s();var j=["stdin","stdout","stderr"],Kn=e=>j.some(t=>e[t]!==void 0),bt=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return j.map(r=>e[r]);if(Kn(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${j.map(r=>`\`${r}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let n=Math.max(t.length,j.length);return Array.from({length:n},(r,o)=>t[o])};s();import qn from"node:os";s();s();var E=[];E.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&E.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&E.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var $=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",re=Symbol.for("signal-exit emitter"),oe=globalThis,zn=Object.defineProperty.bind(Object),ie=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(oe[re])return oe[re];zn(oe,re,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,n){this.listeners[t].push(n)}removeListener(t,n){let r=this.listeners[t],o=r.indexOf(n);o!==-1&&(o===0&&r.length===1?r.length=0:r.splice(o,1))}emit(t,n,r){if(this.emitted[t])return!1;this.emitted[t]=!0;let o=!1;for(let i of this.listeners[t])o=i(n,r)===!0||o;return t==="exit"&&(o=this.emit("afterExit",n,r)||o),o}},L=class{},Wn=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),se=class extends L{onExit(){return()=>{}}load(){}unload(){}},ae=class extends L{#s=ce.platform==="win32"?"SIGINT":"SIGHUP";#t=new ie;#e;#o;#i;#r={};#n=!1;constructor(t){super(),this.#e=t,this.#r={};for(let n of E)this.#r[n]=()=>{let r=this.#e.listeners(n),{count:o}=this.#t,i=t;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(o+=i.__signal_exit_emitter__.count),r.length===o){this.unload();let a=this.#t.emit("exit",null,n),c=n==="SIGHUP"?this.#s:n;a||t.kill(t.pid,c)}};this.#i=t.reallyExit,this.#o=t.emit}onExit(t,n){if(!$(this.#e))return()=>{};this.#n===!1&&this.load();let r=n?.alwaysLast?"afterExit":"exit";return this.#t.on(r,t),()=>{this.#t.removeListener(r,t),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#n){this.#n=!0,this.#t.count+=1;for(let t of E)try{let n=this.#r[t];n&&this.#e.on(t,n)}catch{}this.#e.emit=(t,...n)=>this.#c(t,...n),this.#e.reallyExit=t=>this.#a(t)}}unload(){this.#n&&(this.#n=!1,E.forEach(t=>{let n=this.#r[t];if(!n)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,n)}catch{}}),this.#e.emit=this.#o,this.#e.reallyExit=this.#i,this.#t.count-=1)}#a(t){return $(this.#e)?(this.#e.exitCode=t||0,this.#t.emit("exit",this.#e.exitCode,null),this.#i.call(this.#e,this.#e.exitCode)):0}#c(t,...n){let r=this.#o;if(t==="exit"&&$(this.#e)){typeof n[0]=="number"&&(this.#e.exitCode=n[0]);let o=r.call(this.#e,t,...n);return this.#t.emit("exit",this.#e.exitCode,null),o}else return r.call(this.#e,t,...n)}},ce=globalThis.process,{onExit:xt,load:Zo,unload:Qo}=Wn($(ce)?new ae(ce):new se);var Hn=1e3*5,wt=(e,t="SIGTERM",n={})=>{let r=e(t);return Vn(e,t,n,r),r},Vn=(e,t,n,r)=>{if(!Xn(t,n,r))return;let o=Zn(n),i=setTimeout(()=>{e("SIGKILL")},o);i.unref&&i.unref()},Xn=(e,{forceKillAfterTimeout:t},n)=>Yn(e)&&t!==!1&&n,Yn=e=>e===qn.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",Zn=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return Hn;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},It=(e,t)=>{e.kill()&&(t.isCanceled=!0)},Qn=(e,t,n)=>{e.kill(t),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},At=(e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(t===0||t===void 0)return r;let o,i=new Promise((c,f)=>{o=setTimeout(()=>{Qn(e,n,f)},t)}),a=r.finally(()=>{clearTimeout(o)});return Promise.race([i,a])},Ct=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Rt=async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;let o=xt(()=>{e.kill()});return r.finally(()=>{o()})};s();import{createWriteStream as Jn}from"node:fs";import{ChildProcess as er}from"node:child_process";s();function D(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function ue(e){return D(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var tr=e=>e instanceof er&&typeof e.then=="function",fe=(e,t,n)=>{if(typeof n=="string")return e[t].pipe(Jn(n)),e;if(ue(n))return e[t].pipe(n),e;if(!tr(n))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!ue(n.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(n.stdin),n},Tt=e=>{e.stdout!==null&&(e.pipeStdout=fe.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=fe.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=fe.bind(void 0,e,"all"))};s();import{createReadStream as br,readFileSync as xr}from"node:fs";import{setTimeout as wr}from"node:timers/promises";s();s();s();var T=async(e,{init:t,convertChunk:n,getSize:r,truncateChunk:o,addChunk:i,getFinalChunk:a,finalize:c},{maxBuffer:f=Number.POSITIVE_INFINITY}={})=>{if(!rr(e))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");let u=t();u.length=0;try{for await(let l of e){let m=or(l),d=n[m](l,u);Nt({convertedChunk:d,state:u,getSize:r,truncateChunk:o,addChunk:i,maxBuffer:f})}return nr({state:u,convertChunk:n,getSize:r,truncateChunk:o,addChunk:i,getFinalChunk:a,maxBuffer:f}),c(u)}catch(l){throw l.bufferedData=c(u),l}},nr=({state:e,getSize:t,truncateChunk:n,addChunk:r,getFinalChunk:o,maxBuffer:i})=>{let a=o(e);a!==void 0&&Nt({convertedChunk:a,state:e,getSize:t,truncateChunk:n,addChunk:r,maxBuffer:i})},Nt=({convertedChunk:e,state:t,getSize:n,truncateChunk:r,addChunk:o,maxBuffer:i})=>{let a=n(e),c=t.length+a;if(c<=i){Ot(e,t,o,c);return}let f=r(e,i-t.length);throw f!==void 0&&Ot(f,t,o,i),new _},Ot=(e,t,n,r)=>{t.contents=n(e,t,r),t.length=r},rr=e=>typeof e=="object"&&e!==null&&typeof e[Symbol.asyncIterator]=="function",or=e=>{let t=typeof e;if(t==="string")return"string";if(t!=="object"||e===null)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";let n=Pt.call(e);return n==="[object ArrayBuffer]"?"arrayBuffer":n==="[object DataView]"?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&Pt.call(e.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:Pt}=Object.prototype,_=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}};s();var le=e=>e,de=()=>{},pe=({contents:e})=>e,M=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},k=e=>e.length;s();async function me(e,t){return T(e,pr,t)}var ir=()=>({contents:new ArrayBuffer(0)}),sr=e=>ar.encode(e),ar=new TextEncoder,Gt=e=>new Uint8Array(e),vt=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),cr=(e,t)=>e.slice(0,t),ur=(e,{contents:t,length:n},r)=>{let o=jt()?lr(t,r):fr(t,r);return new Uint8Array(o).set(e,n),o},fr=(e,t)=>{if(t<=e.byteLength)return e;let n=new ArrayBuffer(Bt(t));return new Uint8Array(n).set(new Uint8Array(e),0),n},lr=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;let n=new ArrayBuffer(t,{maxByteLength:Bt(t)});return new Uint8Array(n).set(new Uint8Array(e),0),n},Bt=e=>Ut**Math.ceil(Math.log(e)/Math.log(Ut)),Ut=2,dr=({contents:e,length:t})=>jt()?e:e.slice(0,t),jt=()=>"resize"in ArrayBuffer.prototype,pr={init:ir,convertChunk:{string:sr,buffer:Gt,arrayBuffer:Gt,dataView:vt,typedArray:vt,others:M},getSize:k,truncateChunk:cr,addChunk:ur,getFinalChunk:de,finalize:dr};s();async function F(e,t){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return $t(await me(e,t))}catch(n){throw n.bufferedData!==void 0&&(n.bufferedData=$t(n.bufferedData)),n}}var $t=e=>globalThis.Buffer.from(e);s();async function he(e,t){return T(e,gr,t)}var mr=()=>({contents:"",textDecoder:new TextDecoder}),K=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),hr=(e,{contents:t})=>t+e,Sr=(e,t)=>e.slice(0,t),yr=({textDecoder:e})=>{let t=e.decode();return t===""?void 0:t},gr={init:mr,convertChunk:{string:le,buffer:K,arrayBuffer:K,dataView:K,typedArray:K,others:M},getSize:k,truncateChunk:Sr,addChunk:hr,getFinalChunk:yr,finalize:pe};var _t=Oe(Dt(),1),Mt=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},Ir=({input:e,inputFile:t})=>typeof t!="string"?e:(Mt(e),xr(t)),kt=e=>{let t=Ir(e);if(D(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},Ar=({input:e,inputFile:t})=>typeof t!="string"?e:(Mt(e),br(t)),Ft=(e,t)=>{let n=Ar(t);n!==void 0&&(D(n)?n.pipe(e.stdin):e.stdin.end(n))},Kt=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let n=(0,_t.default)();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},Se=async(e,t)=>{if(!(!e||t===void 0)){await wr(0),e.destroy();try{return await t}catch(n){return n.bufferedData}}},ye=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(!(!e||!n))return t==="utf8"||t==="utf-8"?he(e,{maxBuffer:r}):t===null||t==="buffer"?F(e,{maxBuffer:r}):Cr(e,r,t)},Cr=async(e,t,n)=>(await F(e,{maxBuffer:t})).toString(n),zt=async({stdout:e,stderr:t,all:n},{encoding:r,buffer:o,maxBuffer:i},a)=>{let c=ye(e,{encoding:r,buffer:o,maxBuffer:i}),f=ye(t,{encoding:r,buffer:o,maxBuffer:i}),u=ye(n,{encoding:r,buffer:o,maxBuffer:i*2});try{return await Promise.all([a,c,f,u])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},Se(e,c),Se(t,f),Se(n,u)])}};s();var Rr=(async()=>{})().constructor.prototype,Tr=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Rr,e)]),ge=(e,t)=>{for(let[n,r]of Tr){let o=typeof t=="function"?(...i)=>Reflect.apply(r.value,t(),i):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}},Wt=e=>new Promise((t,n)=>{e.on("exit",(r,o)=>{t({exitCode:r,signal:o})}),e.on("error",r=>{n(r)}),e.stdin&&e.stdin.on("error",r=>{n(r)})});s();import{Buffer as Or}from"node:buffer";import{ChildProcess as Pr}from"node:child_process";var Vt=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Nr=/^[\w.-]+$/,Gr=e=>typeof e!="string"||Nr.test(e)?e:`"${e.replaceAll('"','\\"')}"`,Ee=(e,t)=>Vt(e,t).join(" "),be=(e,t)=>Vt(e,t).map(n=>Gr(n)).join(" "),vr=/ +/g;var qt=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof Pr)&&"stdout"in e){let n=typeof e.stdout;if(n==="string")return e.stdout;if(Or.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${n}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},Ht=(e,t,n)=>n||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],Ur=({templates:e,expressions:t,tokens:n,index:r,template:o})=>{let i=o??e.raw[r],a=i.split(vr).filter(Boolean),c=Ht(n,a,i.startsWith(" "));if(r===t.length)return c;let f=t[r],u=Array.isArray(f)?f.map(l=>qt(l)):[qt(f)];return Ht(c,u,i.endsWith(" "))},xe=(e,t)=>{let n=[];for(let[r,o]of e.entries())n=Ur({templates:e,expressions:t,tokens:n,index:r,template:o});return n};s();import{debuglog as Br}from"node:util";import jr from"node:process";var Xt=Br("execa").enabled,z=(e,t)=>String(e).padStart(t,"0"),$r=()=>{let e=new Date;return`${z(e.getHours(),2)}:${z(e.getMinutes(),2)}:${z(e.getSeconds(),2)}.${z(e.getMilliseconds(),3)}`},we=(e,{verbose:t})=>{t&&jr.stderr.write(`[${$r()}] ${e}
8
8
  `)};var _r=1e3*1e3*100,Mr=({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{let i=t?{...W.env,...e}:e;return n?dt({env:i,cwd:r,execPath:o}):i},Qt=(e,t,n={})=>{let r=Zt.default._parse(e,t,n);return e=r.command,t=r.args,n=r.options,n={maxBuffer:_r,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||W.cwd(),execPath:W.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Xt,...n},n.env=Mr(n),n.stdio=bt(n),W.platform==="win32"&&Dr.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},O=(e,t,n)=>typeof t!="string"&&!Lr.isBuffer(t)?n===void 0?void 0:"":e.stripFinalNewline?ee(t):t;function kr(e,t,n){let r=Qt(e,t,n),o=Ee(e,t),i=be(e,t);we(i,r.options),Ct(r.options);let a;try{a=Ie.spawn(r.file,r.args,r.options)}catch(S){let h=new Ie.ChildProcess,g=Promise.reject(R({error:S,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return ge(h,g),h}let c=Wt(a),f=At(a,r.options,c),u=Rt(a,r.options,f),l={isCanceled:!1};a.kill=wt.bind(null,a.kill.bind(a)),a.cancel=It.bind(null,a,l);let d=mt(async()=>{let[{error:S,exitCode:h,signal:g,timedOut:b},P,N,G]=await zt(a,r.options,u),Ae=O(r.options,P),Ce=O(r.options,N),Re=O(r.options,G);if(S||h!==0||g!==null){let Te=R({error:S,exitCode:h,signal:g,stdout:Ae,stderr:Ce,all:Re,command:o,escapedCommand:i,parsed:r,timedOut:b,isCanceled:l.isCanceled||(r.options.signal?r.options.signal.aborted:!1),killed:a.killed});if(!r.options.reject)return Te;throw Te}return{command:o,escapedCommand:i,exitCode:0,stdout:Ae,stderr:Ce,all:Re,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Ft(a,r.options),a.all=Kt(a,r.options),Tt(a),ge(a,d),a}function Fr(e,t,n){let r=Qt(e,t,n),o=Ee(e,t),i=be(e,t);we(i,r.options);let a=kt(r.options),c;try{c=Ie.spawnSync(r.file,r.args,{...r.options,input:a})}catch(l){throw R({error:l,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}let f=O(r.options,c.stdout,c.error),u=O(r.options,c.stderr,c.error);if(c.error||c.status!==0||c.signal!==null){let l=R({stdout:f,stderr:u,error:c.error,signal:c.signal,exitCode:c.status,command:o,escapedCommand:i,parsed:r,timedOut:c.error&&c.error.code==="ETIMEDOUT",isCanceled:!1,killed:c.signal!==null});if(!r.options.reject)return l;throw l}return{command:o,escapedCommand:i,exitCode:0,stdout:f,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var Kr=({input:e,inputFile:t,stdio:n})=>e===void 0&&t===void 0&&n===void 0?{stdin:"inherit"}:{},Yt=(e={})=>({preferLocal:!0,...Kr(e),...e});function Jt(e){function t(n,...r){if(!Array.isArray(n))return Jt({...e,...n});let[o,...i]=xe(n,r);return kr(o,i,Yt(e))}return t.sync=(n,...r)=>{if(!Array.isArray(n))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[o,...i]=xe(n,r);return Fr(o,i,Yt(e))},t}var bs=Jt();s();var Cs=p.object({deploymentInfo:p.object({deploymentId:p.string(),deploymentUrl:p.string().url(),deploymentShortUrl:p.string().nullish(),deployedRevision:p.string(),isPublishPipelineDeployment:p.boolean()})}),Rs=p.object({jobId:p.string().uuid()}),Ts=p.object({result:p.object({npmDependenciesLockFile:p.string().url()})}),Os=p.object({deployment:p.object({deploymentPipelinesStatus:p.enum([w.IN_PROGRESS,w.SUCCESS,w.ERROR])})});export{kr as a,w as b,Cs as c,Rs as d,Ts as e,Os as f};
9
- //# sourceMappingURL=chunk-ITZHAIIT.js.map
9
+ //# sourceMappingURL=chunk-KSTCJMGA.js.map