@wix/cli-app 1.1.26 → 1.1.28

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 (116) hide show
  1. package/build/CreateVersionCommand-HYIOMYPS.js +4 -0
  2. package/build/CreateVersionCommand-HYIOMYPS.js.map +1 -0
  3. package/build/DevCommand-NXVNR5O7.js +4 -0
  4. package/build/DevCommand-NXVNR5O7.js.map +1 -0
  5. package/build/GenerateCommand-QZE7QTNX.js +99 -0
  6. package/build/GenerateCommand-QZE7QTNX.js.map +1 -0
  7. package/build/LogsCommand-EQAEPQSZ.js +4 -0
  8. package/build/LogsCommand-EQAEPQSZ.js.map +1 -0
  9. package/build/PreviewCommand-DCQC2ZG7.js +4 -0
  10. package/build/ServeCommand-CERFKHB5.js +4 -0
  11. package/build/{ServeCommand-CSWUIFSC.js.map → ServeCommand-CERFKHB5.js.map} +1 -1
  12. package/build/{build-2XPZSAZ7.js → build-NH7ZWZTO.js} +2 -2
  13. package/build/chunk-2V3FQGOH.js +4 -0
  14. package/build/chunk-2V3FQGOH.js.map +1 -0
  15. package/build/chunk-3ZWMQHFG.js +11 -0
  16. package/build/chunk-3ZWMQHFG.js.map +1 -0
  17. package/build/{chunk-525O5S55.js → chunk-4VHD7OBV.js} +2 -2
  18. package/build/chunk-5IJKDSHA.js +4 -0
  19. package/build/chunk-AHUF5IOW.js +4 -0
  20. package/build/chunk-AHUF5IOW.js.map +1 -0
  21. package/build/chunk-BSR2JA4S.js +4 -0
  22. package/build/chunk-BSR2JA4S.js.map +1 -0
  23. package/build/chunk-CGSGJIBN.js +10 -0
  24. package/build/chunk-CGSGJIBN.js.map +1 -0
  25. package/build/{chunk-G7WNPT3Z.js → chunk-CU75PFHB.js} +2 -2
  26. package/build/chunk-EUCZHHS6.js +4 -0
  27. package/build/chunk-EUCZHHS6.js.map +1 -0
  28. package/build/{chunk-D6OKUNFD.js → chunk-FKNQBY7X.js} +2 -2
  29. package/build/chunk-HAYBGBEA.js +6 -0
  30. package/build/chunk-HAYBGBEA.js.map +1 -0
  31. package/build/{chunk-QC3E3TYM.js → chunk-KSQU6TME.js} +2 -2
  32. package/build/chunk-ME4U7FVN.js +4 -0
  33. package/build/chunk-ME4U7FVN.js.map +1 -0
  34. package/build/{chunk-CXPTPJQJ.js → chunk-PDISMWAG.js} +2 -2
  35. package/build/{chunk-ENEPC5FX.js → chunk-QVFKOTXV.js} +2 -2
  36. package/build/{chunk-WCHELYSO.js → chunk-RXKVYQVC.js} +2 -2
  37. package/build/{chunk-WCHELYSO.js.map → chunk-RXKVYQVC.js.map} +1 -1
  38. package/build/chunk-SEGEUJOD.js +99 -0
  39. package/build/chunk-SEGEUJOD.js.map +1 -0
  40. package/build/{chunk-K7BVAIAQ.js → chunk-VDBUFPPQ.js} +2 -2
  41. package/build/{chunk-BC3CFR7E.js → chunk-VZGLJSBQ.js} +2 -2
  42. package/build/{chunk-BC3CFR7E.js.map → chunk-VZGLJSBQ.js.map} +1 -1
  43. package/build/{chunk-NXXHIYUZ.js → chunk-XKB57U76.js} +2 -2
  44. package/build/chunk-XT25CBJM.js +21 -0
  45. package/build/chunk-XT25CBJM.js.map +1 -0
  46. package/build/{chunk-AT7VWBG3.js → chunk-YF675DKE.js} +2 -2
  47. package/build/chunk-ZF4WFDE4.js +4 -0
  48. package/build/chunk-ZF4WFDE4.js.map +1 -0
  49. package/build/{chunk-OB3TKXBE.js → chunk-ZTBNOJP4.js} +2 -2
  50. package/build/index.js +15 -15
  51. package/build/index.js.map +1 -1
  52. package/build/{preview-3KC2IIEU.js → preview-EV2USTXM.js} +2 -2
  53. package/build/render-command-QZNKMGV3.js +4 -0
  54. package/build/render-command-QZNKMGV3.js.map +1 -0
  55. package/client.d.ts +21 -0
  56. package/package.json +3 -3
  57. package/schemas/custom-element.json +1 -1
  58. package/templates/api/files/api.ts.ejs +32 -0
  59. package/templates/custom-element/dependencies.json +14 -0
  60. package/templates/dashboard-modal/dependencies.json +10 -0
  61. package/templates/dashboard-page/dependencies.json +9 -0
  62. package/templates/dashboard-plugin/dependencies.json +10 -0
  63. package/templates/event/files/event.ts.ejs +19 -0
  64. package/build/CreateVersionCommand-6BIMP4EZ.js +0 -4
  65. package/build/CreateVersionCommand-6BIMP4EZ.js.map +0 -1
  66. package/build/DevCommand-QXDEU4WS.js +0 -10
  67. package/build/DevCommand-QXDEU4WS.js.map +0 -1
  68. package/build/GenerateCommand-HUGYYCGG.js +0 -99
  69. package/build/GenerateCommand-HUGYYCGG.js.map +0 -1
  70. package/build/PreviewCommand-T4I3YVQW.js +0 -4
  71. package/build/ServeCommand-CSWUIFSC.js +0 -4
  72. package/build/chunk-3FSVQOPK.js +0 -4
  73. package/build/chunk-3FSVQOPK.js.map +0 -1
  74. package/build/chunk-5DONBW64.js +0 -4
  75. package/build/chunk-ALTUU536.js +0 -17
  76. package/build/chunk-ALTUU536.js.map +0 -1
  77. package/build/chunk-DWN6ZOOC.js +0 -11
  78. package/build/chunk-DWN6ZOOC.js.map +0 -1
  79. package/build/chunk-KPG5JCIB.js +0 -4
  80. package/build/chunk-KPG5JCIB.js.map +0 -1
  81. package/build/chunk-PONHDOS3.js +0 -98
  82. package/build/chunk-PONHDOS3.js.map +0 -1
  83. package/build/chunk-SOO7TNTX.js +0 -6
  84. package/build/chunk-SOO7TNTX.js.map +0 -1
  85. package/build/chunk-YISAQNQ7.js +0 -4
  86. package/build/chunk-YISAQNQ7.js.map +0 -1
  87. package/build/render-command-CUTF4M37.js +0 -4
  88. package/build/render-command-CUTF4M37.js.map +0 -1
  89. /package/build/{PreviewCommand-T4I3YVQW.js.map → PreviewCommand-DCQC2ZG7.js.map} +0 -0
  90. /package/build/{build-2XPZSAZ7.js.map → build-NH7ZWZTO.js.map} +0 -0
  91. /package/build/{chunk-525O5S55.js.map → chunk-4VHD7OBV.js.map} +0 -0
  92. /package/build/{chunk-5DONBW64.js.map → chunk-5IJKDSHA.js.map} +0 -0
  93. /package/build/{chunk-G7WNPT3Z.js.map → chunk-CU75PFHB.js.map} +0 -0
  94. /package/build/{chunk-D6OKUNFD.js.map → chunk-FKNQBY7X.js.map} +0 -0
  95. /package/build/{chunk-QC3E3TYM.js.map → chunk-KSQU6TME.js.map} +0 -0
  96. /package/build/{chunk-CXPTPJQJ.js.map → chunk-PDISMWAG.js.map} +0 -0
  97. /package/build/{chunk-ENEPC5FX.js.map → chunk-QVFKOTXV.js.map} +0 -0
  98. /package/build/{chunk-K7BVAIAQ.js.map → chunk-VDBUFPPQ.js.map} +0 -0
  99. /package/build/{chunk-NXXHIYUZ.js.map → chunk-XKB57U76.js.map} +0 -0
  100. /package/build/{chunk-AT7VWBG3.js.map → chunk-YF675DKE.js.map} +0 -0
  101. /package/build/{chunk-OB3TKXBE.js.map → chunk-ZTBNOJP4.js.map} +0 -0
  102. /package/build/{preview-3KC2IIEU.js.map → preview-EV2USTXM.js.map} +0 -0
  103. /package/templates/custom-element/{element.json.ejs → files/element.json.ejs} +0 -0
  104. /package/templates/custom-element/{element.tsx.ejs → files/element.tsx.ejs} +0 -0
  105. /package/templates/custom-element/{panel.tsx.ejs → files/panel.tsx.ejs} +0 -0
  106. /package/templates/dashboard-menu-plugin/{menu.json.ejs → files/menu.json.ejs} +0 -0
  107. /package/templates/dashboard-modal/{modal.json.ejs → files/modal.json.ejs} +0 -0
  108. /package/templates/dashboard-modal/{modal.tsx.ejs → files/modal.tsx.ejs} +0 -0
  109. /package/templates/dashboard-page/{page.json.ejs → files/page.json.ejs} +0 -0
  110. /package/templates/dashboard-page/{page.tsx.ejs → files/page.tsx.ejs} +0 -0
  111. /package/templates/dashboard-plugin/{plugin.json.ejs → files/plugin.json.ejs} +0 -0
  112. /package/templates/dashboard-plugin/{plugin.tsx.ejs → files/plugin.tsx.ejs} +0 -0
  113. /package/templates/embedded-script/{embedded.html → files/embedded.html} +0 -0
  114. /package/templates/embedded-script/{embedded.json.ejs → files/embedded.json.ejs} +0 -0
  115. /package/templates/embedded-script/{logger.ts → files/logger.ts} +0 -0
  116. /package/templates/embedded-script/{params.dev.json → files/params.dev.json} +0 -0
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{c as v}from"./chunk-KPG5JCIB.js";import{b as y}from"./chunk-3FSVQOPK.js";import{j as C,l as L,m as u}from"./chunk-OB3TKXBE.js";import{A as p,B,b as i,e as h,h as f,s as b}from"./chunk-ENEPC5FX.js";import{O as w,R as E,S as t,l as m}from"./chunk-PONHDOS3.js";import{c as g,d as P}from"./chunk-SOO7TNTX.js";import{h as s}from"./chunk-V4TR6DCM.js";s();async function U(o){let e=w(o),n=E(o);if(!await m(e)||!await m(n))throw new g({code:P.BuiltProjectNeeded()})}s();import r from"react";var a=({url:o,label:e,withPointer:n=!0})=>r.createElement(i,null,r.createElement(i,{marginRight:1},n&&r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(b,{url:o},e)))),q=()=>{let{t:o}=B(),{isPlatformExists:e,hasSinglePlatform:n}=v(),{dashboardExtensions:d}=y(),l=C(),x=k=>L({envConfig:l,platformType:k});return r.createElement(r.Fragment,null,n(t.Dashboard())?r.createElement(i,{flexDirection:"row"},r.createElement(p,{i18nKey:"general.open_preview.title_single"}),r.createElement(a,{withPointer:!1,url:u({envConfig:l,extension:d[0]}),label:o("general.platform.dashboard")})):r.createElement(i,{flexDirection:"column"},r.createElement(p,{i18nKey:"general.open_preview.title_multiple"}),r.createElement(i,{paddingLeft:2,flexDirection:"column"},e(t.Site())&&(l.site.viewUrl?r.createElement(a,{url:x(t.Site()),label:o("general.platform.site")}):r.createElement(i,{marginRight:1},r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(h,{skin:"secondary",underline:!0},o("general.platform.unpublished_site"))))),e(t.Editor())&&r.createElement(a,{url:x(t.Editor()),label:o("general.platform.editor")}),e(t.Dashboard())&&r.createElement(a,{url:u({envConfig:l,extension:d[0]}),label:o("general.platform.dashboard")}))))};export{U as a,q as b};
4
- //# sourceMappingURL=chunk-K7BVAIAQ.js.map
3
+ import{c as v}from"./chunk-2V3FQGOH.js";import{a as y}from"./chunk-AHUF5IOW.js";import{j as C,l as L,m as u}from"./chunk-ZTBNOJP4.js";import{A as p,B,b as i,e as h,h as f,s as b}from"./chunk-QVFKOTXV.js";import{S as w,V as E,W as t,l as m}from"./chunk-SEGEUJOD.js";import{c as g,d as P}from"./chunk-HAYBGBEA.js";import{h as s}from"./chunk-V4TR6DCM.js";s();async function U(o){let e=w(o),n=E(o);if(!await m(e)||!await m(n))throw new g({code:P.BuiltProjectNeeded()})}s();import r from"react";var a=({url:o,label:e,withPointer:n=!0})=>r.createElement(i,null,r.createElement(i,{marginRight:1},n&&r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(b,{url:o},e)))),q=()=>{let{t:o}=B(),{isPlatformExists:e,hasSinglePlatform:n}=v(),{dashboardExtensions:d}=y(),l=C(),x=k=>L({envConfig:l,platformType:k});return r.createElement(r.Fragment,null,n(t.Dashboard())?r.createElement(i,{flexDirection:"row"},r.createElement(p,{i18nKey:"general.open_preview.title_single"}),r.createElement(a,{withPointer:!1,url:u({envConfig:l,extension:d[0]}),label:o("general.platform.dashboard")})):r.createElement(i,{flexDirection:"column"},r.createElement(p,{i18nKey:"general.open_preview.title_multiple"}),r.createElement(i,{paddingLeft:2,flexDirection:"column"},e(t.Site())&&(l.site.viewUrl?r.createElement(a,{url:x(t.Site()),label:o("general.platform.site")}):r.createElement(i,{marginRight:1},r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(h,{skin:"secondary",underline:!0},o("general.platform.unpublished_site"))))),e(t.Editor())&&r.createElement(a,{url:x(t.Editor()),label:o("general.platform.editor")}),e(t.Dashboard())&&r.createElement(a,{url:u({envConfig:l,extension:d[0]}),label:o("general.platform.dashboard")}))))};export{U as a,q as b};
4
+ //# sourceMappingURL=chunk-VDBUFPPQ.js.map
@@ -1,6 +1,6 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{$ as yi,Aa as Ci,Ba as fn,Ca as oo,Da as uo,O as eo,P as to,X as ro,Z as io,aa as un,ba as mi,g as $s,h as Zs,ta as ao,ua as no,va as so,xa as ln,za as Ai}from"./chunk-PONHDOS3.js";import{a as Xs,c as Gr,d as jr}from"./chunk-SOO7TNTX.js";import{a as Le,c as F,e as ra,h as S}from"./chunk-V4TR6DCM.js";var Et=F(yn=>{"use strict";S();yn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((i,r)=>{e.call(this,...t,(a,n)=>a!=null?r(a):i(n))})},"name",{value:e.name})};yn.fromPromise=function(e){return Object.defineProperty(function(...t){let i=t[t.length-1];if(typeof i!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(r=>i(null,r),i)},"name",{value:e.name})}});var vo=F((BA,go)=>{"use strict";S();var hr=Le("constants"),dh=process.cwd,na=null,gh=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return na||(na=dh.call(process)),na};try{process.cwd()}catch{}typeof process.chdir=="function"&&(mn=process.chdir,process.chdir=function(e){na=null,mn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,mn));var mn;go.exports=vh;function vh(e){hr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||i(e),e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,c,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,c,p,m){m&&process.nextTick(m)},e.lchownSync=function(){}),gh==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function c(p,m,v){var C=Date.now(),E=0;f(p,m,function B(w){if(w&&(w.code==="EACCES"||w.code==="EPERM"||w.code==="EBUSY")&&Date.now()-C<6e4){setTimeout(function(){e.stat(m,function(T,U){T&&T.code==="ENOENT"?f(p,m,B):v(w)})},E),E<100&&(E+=10);return}v&&v(w)})}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function c(p,m,v,C,E,B){var w;if(B&&typeof B=="function"){var T=0;w=function(U,P,Q){if(U&&U.code==="EAGAIN"&&T<10)return T++,f.call(e,p,m,v,C,E,w);B.apply(this,arguments)}}return f.call(e,p,m,v,C,E,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(c,p,m,v,C){for(var E=0;;)try{return f.call(e,c,p,m,v,C)}catch(B){if(B.code==="EAGAIN"&&E<10){E++;continue}throw B}}}(e.readSync);function t(f){f.lchmod=function(c,p,m){f.open(c,hr.O_WRONLY|hr.O_SYMLINK,p,function(v,C){if(v){m&&m(v);return}f.fchmod(C,p,function(E){f.close(C,function(B){m&&m(E||B)})})})},f.lchmodSync=function(c,p){var m=f.openSync(c,hr.O_WRONLY|hr.O_SYMLINK,p),v=!0,C;try{C=f.fchmodSync(m,p),v=!1}finally{if(v)try{f.closeSync(m)}catch{}else f.closeSync(m)}return C}}function i(f){hr.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(c,p,m,v){f.open(c,hr.O_SYMLINK,function(C,E){if(C){v&&v(C);return}f.futimes(E,p,m,function(B){f.close(E,function(w){v&&v(B||w)})})})},f.lutimesSync=function(c,p,m){var v=f.openSync(c,hr.O_SYMLINK),C,E=!0;try{C=f.futimesSync(v,p,m),E=!1}finally{if(E)try{f.closeSync(v)}catch{}else f.closeSync(v)}return C}):f.futimes&&(f.lutimes=function(c,p,m,v){v&&process.nextTick(v)},f.lutimesSync=function(){})}function r(f){return f&&function(c,p,m){return f.call(e,c,p,function(v){l(v)&&(v=null),m&&m.apply(this,arguments)})}}function a(f){return f&&function(c,p){try{return f.call(e,c,p)}catch(m){if(!l(m))throw m}}}function n(f){return f&&function(c,p,m,v){return f.call(e,c,p,m,function(C){l(C)&&(C=null),v&&v.apply(this,arguments)})}}function s(f){return f&&function(c,p,m){try{return f.call(e,c,p,m)}catch(v){if(!l(v))throw v}}}function o(f){return f&&function(c,p,m){typeof p=="function"&&(m=p,p=null);function v(C,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),m&&m.apply(this,arguments)}return p?f.call(e,c,p,v):f.call(e,c,v)}}function u(f){return f&&function(c,p){var m=p?f.call(e,c,p):f.call(e,c);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function l(f){if(!f||f.code==="ENOSYS")return!0;var c=!process.getuid||process.getuid()!==0;return!!(c&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Ao=F((TA,mo)=>{"use strict";S();var yo=Le("stream").Stream;mo.exports=yh;function yh(e){return{ReadStream:t,WriteStream:i};function t(r,a){if(!(this instanceof t))return new t(r,a);yo.call(this);var n=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var s=Object.keys(a),o=0,u=s.length;o<u;o++){var l=s[o];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){n._read()});return}e.open(this.path,this.flags,this.mode,function(f,c){if(f){n.emit("error",f),n.readable=!1;return}n.fd=c,n.emit("open",c),n._read()})}function i(r,a){if(!(this instanceof i))return new i(r,a);yo.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var n=Object.keys(a),s=0,o=n.length;s<o;s++){var u=n[s];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Eo=F((_A,Co)=>{"use strict";S();Co.exports=Ah;var mh=Object.getPrototypeOf||function(e){return e.__proto__};function Ah(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:mh(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}),t}});var dt=F((kA,En)=>{"use strict";S();var Qe=Le("fs"),Ch=vo(),Eh=Ao(),xh=Eo(),sa=Le("util"),Je,ua;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Je=Symbol.for("graceful-fs.queue"),ua=Symbol.for("graceful-fs.previous")):(Je="___graceful-fs.queue",ua="___graceful-fs.previous");function Sh(){}function Io(e,t){Object.defineProperty(e,Je,{get:function(){return t}})}var Rr=Sh;sa.debuglog?Rr=sa.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Rr=function(){var e=sa.format.apply(sa,arguments);e="GFS4: "+e.split(/\n/).join(`
3
+ import{$ as ro,Ba as ao,Ca as no,Da as so,Fa as ln,Ha as Ai,Ia as Ci,Ja as fn,Ka as oo,La as uo,S as eo,T as to,ba as io,da as yi,ea as un,fa as mi,g as $s,h as Zs}from"./chunk-SEGEUJOD.js";import{a as Xs,c as Gr,d as jr}from"./chunk-HAYBGBEA.js";import{a as Le,c as F,e as ra,h as S}from"./chunk-V4TR6DCM.js";var Et=F(yn=>{"use strict";S();yn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((i,r)=>{e.call(this,...t,(a,n)=>a!=null?r(a):i(n))})},"name",{value:e.name})};yn.fromPromise=function(e){return Object.defineProperty(function(...t){let i=t[t.length-1];if(typeof i!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(r=>i(null,r),i)},"name",{value:e.name})}});var vo=F((BA,go)=>{"use strict";S();var hr=Le("constants"),dh=process.cwd,na=null,gh=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return na||(na=dh.call(process)),na};try{process.cwd()}catch{}typeof process.chdir=="function"&&(mn=process.chdir,process.chdir=function(e){na=null,mn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,mn));var mn;go.exports=vh;function vh(e){hr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||i(e),e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,c,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,c,p,m){m&&process.nextTick(m)},e.lchownSync=function(){}),gh==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function c(p,m,v){var C=Date.now(),E=0;f(p,m,function B(w){if(w&&(w.code==="EACCES"||w.code==="EPERM"||w.code==="EBUSY")&&Date.now()-C<6e4){setTimeout(function(){e.stat(m,function(T,U){T&&T.code==="ENOENT"?f(p,m,B):v(w)})},E),E<100&&(E+=10);return}v&&v(w)})}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function c(p,m,v,C,E,B){var w;if(B&&typeof B=="function"){var T=0;w=function(U,P,Q){if(U&&U.code==="EAGAIN"&&T<10)return T++,f.call(e,p,m,v,C,E,w);B.apply(this,arguments)}}return f.call(e,p,m,v,C,E,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(c,p,m,v,C){for(var E=0;;)try{return f.call(e,c,p,m,v,C)}catch(B){if(B.code==="EAGAIN"&&E<10){E++;continue}throw B}}}(e.readSync);function t(f){f.lchmod=function(c,p,m){f.open(c,hr.O_WRONLY|hr.O_SYMLINK,p,function(v,C){if(v){m&&m(v);return}f.fchmod(C,p,function(E){f.close(C,function(B){m&&m(E||B)})})})},f.lchmodSync=function(c,p){var m=f.openSync(c,hr.O_WRONLY|hr.O_SYMLINK,p),v=!0,C;try{C=f.fchmodSync(m,p),v=!1}finally{if(v)try{f.closeSync(m)}catch{}else f.closeSync(m)}return C}}function i(f){hr.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(c,p,m,v){f.open(c,hr.O_SYMLINK,function(C,E){if(C){v&&v(C);return}f.futimes(E,p,m,function(B){f.close(E,function(w){v&&v(B||w)})})})},f.lutimesSync=function(c,p,m){var v=f.openSync(c,hr.O_SYMLINK),C,E=!0;try{C=f.futimesSync(v,p,m),E=!1}finally{if(E)try{f.closeSync(v)}catch{}else f.closeSync(v)}return C}):f.futimes&&(f.lutimes=function(c,p,m,v){v&&process.nextTick(v)},f.lutimesSync=function(){})}function r(f){return f&&function(c,p,m){return f.call(e,c,p,function(v){l(v)&&(v=null),m&&m.apply(this,arguments)})}}function a(f){return f&&function(c,p){try{return f.call(e,c,p)}catch(m){if(!l(m))throw m}}}function n(f){return f&&function(c,p,m,v){return f.call(e,c,p,m,function(C){l(C)&&(C=null),v&&v.apply(this,arguments)})}}function s(f){return f&&function(c,p,m){try{return f.call(e,c,p,m)}catch(v){if(!l(v))throw v}}}function o(f){return f&&function(c,p,m){typeof p=="function"&&(m=p,p=null);function v(C,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),m&&m.apply(this,arguments)}return p?f.call(e,c,p,v):f.call(e,c,v)}}function u(f){return f&&function(c,p){var m=p?f.call(e,c,p):f.call(e,c);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function l(f){if(!f||f.code==="ENOSYS")return!0;var c=!process.getuid||process.getuid()!==0;return!!(c&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Ao=F((TA,mo)=>{"use strict";S();var yo=Le("stream").Stream;mo.exports=yh;function yh(e){return{ReadStream:t,WriteStream:i};function t(r,a){if(!(this instanceof t))return new t(r,a);yo.call(this);var n=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var s=Object.keys(a),o=0,u=s.length;o<u;o++){var l=s[o];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){n._read()});return}e.open(this.path,this.flags,this.mode,function(f,c){if(f){n.emit("error",f),n.readable=!1;return}n.fd=c,n.emit("open",c),n._read()})}function i(r,a){if(!(this instanceof i))return new i(r,a);yo.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var n=Object.keys(a),s=0,o=n.length;s<o;s++){var u=n[s];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Eo=F((_A,Co)=>{"use strict";S();Co.exports=Ah;var mh=Object.getPrototypeOf||function(e){return e.__proto__};function Ah(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:mh(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}),t}});var dt=F((kA,En)=>{"use strict";S();var Qe=Le("fs"),Ch=vo(),Eh=Ao(),xh=Eo(),sa=Le("util"),Je,ua;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Je=Symbol.for("graceful-fs.queue"),ua=Symbol.for("graceful-fs.previous")):(Je="___graceful-fs.queue",ua="___graceful-fs.previous");function Sh(){}function Io(e,t){Object.defineProperty(e,Je,{get:function(){return t}})}var Rr=Sh;sa.debuglog?Rr=sa.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Rr=function(){var e=sa.format.apply(sa,arguments);e="GFS4: "+e.split(/\n/).join(`
4
4
  GFS4: `),console.error(e)});Qe[Je]||(xo=global[Je]||[],Io(Qe,xo),Qe.close=function(e){function t(i,r){return e.call(Qe,i,function(a){a||So(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,ua,{value:e}),t}(Qe.close),Qe.closeSync=function(e){function t(i){e.apply(Qe,arguments),So()}return Object.defineProperty(t,ua,{value:e}),t}(Qe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Rr(Qe[Je]),Le("assert").equal(Qe[Je].length,0)}));var xo;global[Je]||Io(global,Qe[Je]);En.exports=An(xh(Qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Qe.__patched&&(En.exports=An(Qe),Qe.__patched=!0);function An(e){Ch(e),e.gracefulify=An,e.createReadStream=P,e.createWriteStream=Q;var t=e.readFile;e.readFile=i;function i(H,z,Y){return typeof z=="function"&&(Y=z,z=null),re(H,z,Y);function re(ye,Ee,$,ie){return t(ye,Ee,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?zr([re,[ye,Ee,$],V,ie||Date.now(),Date.now()]):typeof $=="function"&&$.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=a;function a(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return r(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var n=e.appendFile;n&&(e.appendFile=s);function s(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return n(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var o=e.copyFile;o&&(e.copyFile=u);function u(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=0),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return o(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var l=e.readdir;e.readdir=c;var f=/^v[0-5]\./;function c(H,z,Y){typeof z=="function"&&(Y=z,z=null);var re=f.test(process.version)?function($,ie,V,_e){return l($,ye($,ie,V,_e))}:function($,ie,V,_e){return l($,ie,ye($,ie,V,_e))};return re(H,z,Y);function ye(Ee,$,ie,V){return function(_e,xe){_e&&(_e.code==="EMFILE"||_e.code==="ENFILE")?zr([re,[Ee,$,ie],_e,V||Date.now(),Date.now()]):(xe&&xe.sort&&xe.sort(),typeof ie=="function"&&ie.call(this,_e,xe))}}}if(process.version.substr(0,4)==="v0.8"){var p=Eh(e);B=p.ReadStream,T=p.WriteStream}var m=e.ReadStream;m&&(B.prototype=Object.create(m.prototype),B.prototype.open=w);var v=e.WriteStream;v&&(T.prototype=Object.create(v.prototype),T.prototype.open=U),Object.defineProperty(e,"ReadStream",{get:function(){return B},set:function(H){B=H},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return T},set:function(H){T=H},enumerable:!0,configurable:!0});var C=B;Object.defineProperty(e,"FileReadStream",{get:function(){return C},set:function(H){C=H},enumerable:!0,configurable:!0});var E=T;Object.defineProperty(e,"FileWriteStream",{get:function(){return E},set:function(H){E=H},enumerable:!0,configurable:!0});function B(H,z){return this instanceof B?(m.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function w(){var H=this;ne(H.path,H.flags,H.mode,function(z,Y){z?(H.autoClose&&H.destroy(),H.emit("error",z)):(H.fd=Y,H.emit("open",Y),H.read())})}function T(H,z){return this instanceof T?(v.apply(this,arguments),this):T.apply(Object.create(T.prototype),arguments)}function U(){var H=this;ne(H.path,H.flags,H.mode,function(z,Y){z?(H.destroy(),H.emit("error",z)):(H.fd=Y,H.emit("open",Y))})}function P(H,z){return new e.ReadStream(H,z)}function Q(H,z){return new e.WriteStream(H,z)}var te=e.open;e.open=ne;function ne(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return te(Ee,$,ie,function(xe,Oe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return e}function zr(e){Rr("ENQUEUE",e[0].name,e[1]),Qe[Je].push(e),Cn()}var oa;function So(){for(var e=Date.now(),t=0;t<Qe[Je].length;++t)Qe[Je][t].length>2&&(Qe[Je][t][3]=e,Qe[Je][t][4]=e);Cn()}function Cn(){if(clearTimeout(oa),oa=void 0,Qe[Je].length!==0){var e=Qe[Je].shift(),t=e[0],i=e[1],r=e[2],a=e[3],n=e[4];if(a===void 0)Rr("RETRY",t.name,i),t.apply(null,i);else if(Date.now()-a>=6e4){Rr("TIMEOUT",t.name,i);var s=i.pop();typeof s=="function"&&s.call(null,r)}else{var o=Date.now()-n,u=Math.max(n-a,1),l=Math.min(u*1.2,100);o>=l?(Rr("RETRY",t.name,i),t.apply(null,i.concat([a]))):Qe[Je].push(e)}oa===void 0&&(oa=setTimeout(Cn,0))}}});var Dr=F(pr=>{"use strict";S();var Bo=Et().fromCallback,xt=dt(),Ih=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof xt[e]=="function");Object.assign(pr,xt);Ih.forEach(e=>{pr[e]=Bo(xt[e])});pr.exists=function(e,t){return typeof t=="function"?xt.exists(e,t):new Promise(i=>xt.exists(e,i))};pr.read=function(e,t,i,r,a,n){return typeof n=="function"?xt.read(e,t,i,r,a,n):new Promise((s,o)=>{xt.read(e,t,i,r,a,(u,l,f)=>{if(u)return o(u);s({bytesRead:l,buffer:f})})})};pr.write=function(e,t,...i){return typeof i[i.length-1]=="function"?xt.write(e,t,...i):new Promise((r,a)=>{xt.write(e,t,...i,(n,s,o)=>{if(n)return a(n);r({bytesWritten:s,buffer:o})})})};typeof xt.writev=="function"&&(pr.writev=function(e,t,...i){return typeof i[i.length-1]=="function"?xt.writev(e,t,...i):new Promise((r,a)=>{xt.writev(e,t,...i,(n,s,o)=>{if(n)return a(n);r({bytesWritten:s,buffers:o})})})});typeof xt.realpath.native=="function"?pr.realpath.native=Bo(xt.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var To=F((PA,bo)=>{"use strict";S();var Bh=Le("path");bo.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Bh.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}}});var ko=F((UA,xn)=>{"use strict";S();var wo=Dr(),{checkPath:_o}=To(),No=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};xn.exports.makeDir=async(e,t)=>(_o(e),wo.mkdir(e,{mode:No(t),recursive:!0}));xn.exports.makeDirSync=(e,t)=>(_o(e),wo.mkdirSync(e,{mode:No(t),recursive:!0}))});var Mt=F((VA,Lo)=>{"use strict";S();var bh=Et().fromPromise,{makeDir:Th,makeDirSync:Sn}=ko(),In=bh(Th);Lo.exports={mkdirs:In,mkdirsSync:Sn,mkdirp:In,mkdirpSync:Sn,ensureDir:In,ensureDirSync:Sn}});var dr=F((MA,Do)=>{"use strict";S();var wh=Et().fromPromise,Ro=Dr();function _h(e){return Ro.access(e).then(()=>!0).catch(()=>!1)}Do.exports={pathExists:wh(_h),pathExistsSync:Ro.existsSync}});var Bn=F((KA,Po)=>{"use strict";S();var Jr=dt();function Nh(e,t,i,r){Jr.open(e,"r+",(a,n)=>{if(a)return r(a);Jr.futimes(n,t,i,s=>{Jr.close(n,o=>{r&&r(s||o)})})})}function kh(e,t,i){let r=Jr.openSync(e,"r+");return Jr.futimesSync(r,t,i),Jr.closeSync(r)}Po.exports={utimesMillis:Nh,utimesMillisSync:kh}});var Pr=F((GA,Oo)=>{"use strict";S();var Wr=Dr(),Ke=Le("path"),Lh=Le("util");function Rh(e,t,i){let r=i.dereference?a=>Wr.stat(a,{bigint:!0}):a=>Wr.lstat(a,{bigint:!0});return Promise.all([r(e),r(t).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,n])=>({srcStat:a,destStat:n}))}function Dh(e,t,i){let r,a=i.dereference?s=>Wr.statSync(s,{bigint:!0}):s=>Wr.lstatSync(s,{bigint:!0}),n=a(e);try{r=a(t)}catch(s){if(s.code==="ENOENT")return{srcStat:n,destStat:null};throw s}return{srcStat:n,destStat:r}}function Ph(e,t,i,r,a){Lh.callbackify(Rh)(e,t,r,(n,s)=>{if(n)return a(n);let{srcStat:o,destStat:u}=s;if(u){if(Bi(o,u)){let l=Ke.basename(e),f=Ke.basename(t);return i==="move"&&l!==f&&l.toLowerCase()===f.toLowerCase()?a(null,{srcStat:o,destStat:u,isChangingCase:!0}):a(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!u.isDirectory())return a(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!o.isDirectory()&&u.isDirectory())return a(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return o.isDirectory()&&bn(e,t)?a(new Error(la(e,t,i))):a(null,{srcStat:o,destStat:u})})}function Qh(e,t,i,r){let{srcStat:a,destStat:n}=Dh(e,t,r);if(n){if(Bi(a,n)){let s=Ke.basename(e),o=Ke.basename(t);if(i==="move"&&s!==o&&s.toLowerCase()===o.toLowerCase())return{srcStat:a,destStat:n,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!n.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!a.isDirectory()&&n.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(a.isDirectory()&&bn(e,t))throw new Error(la(e,t,i));return{srcStat:a,destStat:n}}function Qo(e,t,i,r,a){let n=Ke.resolve(Ke.dirname(e)),s=Ke.resolve(Ke.dirname(i));if(s===n||s===Ke.parse(s).root)return a();Wr.stat(s,{bigint:!0},(o,u)=>o?o.code==="ENOENT"?a():a(o):Bi(t,u)?a(new Error(la(e,i,r))):Qo(e,t,s,r,a))}function Uo(e,t,i,r){let a=Ke.resolve(Ke.dirname(e)),n=Ke.resolve(Ke.dirname(i));if(n===a||n===Ke.parse(n).root)return;let s;try{s=Wr.statSync(n,{bigint:!0})}catch(o){if(o.code==="ENOENT")return;throw o}if(Bi(t,s))throw new Error(la(e,i,r));return Uo(e,t,n,r)}function Bi(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function bn(e,t){let i=Ke.resolve(e).split(Ke.sep).filter(a=>a),r=Ke.resolve(t).split(Ke.sep).filter(a=>a);return i.reduce((a,n,s)=>a&&r[s]===n,!0)}function la(e,t,i){return`Cannot ${i} '${e}' to a subdirectory of itself, '${t}'.`}Oo.exports={checkPaths:Ph,checkPathsSync:Qh,checkParentPaths:Qo,checkParentPathsSync:Uo,isSrcSubdir:bn,areIdentical:Bi}});var jo=F((YA,Go)=>{"use strict";S();var St=dt(),bi=Le("path"),Uh=Mt().mkdirs,Oh=dr().pathExists,Vh=Bn().utimesMillis,Ti=Pr();function Fh(e,t,i,r){typeof i=="function"&&!r?(r=i,i={}):typeof i=="function"&&(i={filter:i}),r=r||function(){},i=i||{},i.clobber="clobber"in i?!!i.clobber:!0,i.overwrite="overwrite"in i?!!i.overwrite:i.clobber,i.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
5
5
 
6
6
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Ti.checkPaths(e,t,"copy",i,(a,n)=>{if(a)return r(a);let{srcStat:s,destStat:o}=n;Ti.checkParentPaths(e,s,t,"copy",u=>u?r(u):i.filter?Mo(Vo,o,e,t,i,r):Vo(o,e,t,i,r))})}function Vo(e,t,i,r,a){let n=bi.dirname(i);Oh(n,(s,o)=>{if(s)return a(s);if(o)return fa(e,t,i,r,a);Uh(n,u=>u?a(u):fa(e,t,i,r,a))})}function Mo(e,t,i,r,a,n){Promise.resolve(a.filter(i,r)).then(s=>s?e(t,i,r,a,n):n(),s=>n(s))}function Mh(e,t,i,r,a){return r.filter?Mo(fa,e,t,i,r,a):fa(e,t,i,r,a)}function fa(e,t,i,r,a){(r.dereference?St.stat:St.lstat)(t,(s,o)=>s?a(s):o.isDirectory()?zh(o,e,t,i,r,a):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?qh(o,e,t,i,r,a):o.isSymbolicLink()?Xh(e,t,i,r,a):o.isSocket()?a(new Error(`Cannot copy a socket file: ${t}`)):o.isFIFO()?a(new Error(`Cannot copy a FIFO pipe: ${t}`)):a(new Error(`Unknown file: ${t}`)))}function qh(e,t,i,r,a,n){return t?Kh(e,i,r,a,n):qo(e,i,r,a,n)}function Kh(e,t,i,r,a){if(r.overwrite)St.unlink(i,n=>n?a(n):qo(e,t,i,r,a));else return r.errorOnExist?a(new Error(`'${i}' already exists`)):a()}function qo(e,t,i,r,a){St.copyFile(t,i,n=>n?a(n):r.preserveTimestamps?Hh(e.mode,t,i,a):ca(i,e.mode,a))}function Hh(e,t,i,r){return Gh(e)?jh(i,e,a=>a?r(a):Fo(e,t,i,r)):Fo(e,t,i,r)}function Gh(e){return(e&128)===0}function jh(e,t,i){return ca(e,t|128,i)}function Fo(e,t,i,r){Yh(t,i,a=>a?r(a):ca(i,e,r))}function ca(e,t,i){return St.chmod(e,t,i)}function Yh(e,t,i){St.stat(e,(r,a)=>r?i(r):Vh(t,a.atime,a.mtime,i))}function zh(e,t,i,r,a,n){return t?Ko(i,r,a,n):Jh(e.mode,i,r,a,n)}function Jh(e,t,i,r,a){St.mkdir(i,n=>{if(n)return a(n);Ko(t,i,r,s=>s?a(s):ca(i,e,a))})}function Ko(e,t,i,r){St.readdir(e,(a,n)=>a?r(a):Ho(n,e,t,i,r))}function Ho(e,t,i,r,a){let n=e.pop();return n?Wh(e,n,t,i,r,a):a()}function Wh(e,t,i,r,a,n){let s=bi.join(i,t),o=bi.join(r,t);Ti.checkPaths(s,o,"copy",a,(u,l)=>{if(u)return n(u);let{destStat:f}=l;Mh(f,s,o,a,c=>c?n(c):Ho(e,i,r,a,n))})}function Xh(e,t,i,r,a){St.readlink(t,(n,s)=>{if(n)return a(n);if(r.dereference&&(s=bi.resolve(process.cwd(),s)),e)St.readlink(i,(o,u)=>o?o.code==="EINVAL"||o.code==="UNKNOWN"?St.symlink(s,i,a):a(o):(r.dereference&&(u=bi.resolve(process.cwd(),u)),Ti.isSrcSubdir(s,u)?a(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&Ti.isSrcSubdir(u,s)?a(new Error(`Cannot overwrite '${u}' with '${s}'.`)):$h(s,i,a)));else return St.symlink(s,i,a)})}function $h(e,t,i){St.unlink(t,r=>r?i(r):St.symlink(e,t,i))}Go.exports=Fh});var Xo=F((JA,Wo)=>{"use strict";S();var pt=dt(),wi=Le("path"),Zh=Mt().mkdirsSync,ep=Bn().utimesMillisSync,_i=Pr();function tp(e,t,i){typeof i=="function"&&(i={filter:i}),i=i||{},i.clobber="clobber"in i?!!i.clobber:!0,i.overwrite="overwrite"in i?!!i.overwrite:i.clobber,i.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
@@ -173,4 +173,4 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
173
173
  You can close this browser tab and return to the terminal to continue working.
174
174
  </body>
175
175
  </html>`}S();var ih="__WIX_ORIGIN_PLACEHOLDER__";function ah(){let e=null;return{name:"wix:auto-origin",apply:"serve",config:()=>({server:{origin:ih}}),configureServer:t=>{t.middlewares.use((i,r,a)=>{e=e??wa(t),a()})},transform:(t,i)=>{if(i.match(/.*\.(m?jsx?|tsx?)$/))return t;if(!e)throw new Gr({code:jr.FailedToResolveViteOrigin()});return t.replaceAll(ih,e)}}}S();import{dirname as nA,isAbsolute as sA,join as oA}from"node:path";import{URL as nh}from"node:url";function uA(e,t,i){let r=new nh(t,i).href;if(t.startsWith("/@vite"))return r;if(!sA(t)){let a=oA(nA(e),t);r=new nh(a,i).href}return r}function sh(){let e;return{name:"wix:absolute-html-url",apply:"serve",configureServer(t){e=t},transformIndexHtml:{order:"post",handler(t,{originalUrl:i}){if(!i)throw new Error("Cannot find asset URL.");let r=e.resolvedUrls?.local?.[0],a=(n,s,o,u)=>{let l=uA(i,o,r);return`${s}${l}${u}`};return t.replace(/(<script [^><]*src=["'])((?!http)[^"']+)(["'][^><]*>[\r\n]*<\/script>)/g,a).replace(/(<link [^><]*href=["'])((?!http)[^"']+)(["'][^><]*>)/g,a).replace(/(\r\n|\n|\r)/gm,"")}}}}async function fA(e,t,{baseBackendUrl:i}={}){let{https:r}=t,a=[...yi(e)].map(([l,f])=>[`html-asset-${f.id}`,l]),n=[...mi(e)].map(([l,f])=>[`script-asset-${f.id}`,l]),s=e.components.filter((0,oh.isType)(ro.EmbeddedScript)).map(l=>[l.id,lA(e.projectFolder,l.relativePath)]),o=[...Ai(e)].map(([l,f])=>[`html-asset-${f.id}`,l]),u=[...Ci(e)].map(([l,f])=>[`script-asset-${f.id}`,l]);return{configFile:!1,root:e.projectFolder,customLogger:t.customLogger,clearScreen:!1,logLevel:"info",optimizeDeps:{entries:[ao,no,so,oo,uo]},server:{},build:{sourcemap:!0,outDir:eo(e.projectFolder),rollupOptions:{input:Object.fromEntries([...a,...n,...s,...o,...u])}},define:{...i?{"import.meta.env.BASE_API_URL":JSON.stringify(i.replace(/\/$/,"")+"/functions")}:{}},plugins:[Rf(),...r?[rh()]:[],kf({initialModel:e,...t}),Cf(),xf(),mf({react:"React","react-dom":"ReactDOM"}),bf({initialModel:e,...t}),ah(),sh()],experimental:{renderBuiltUrl(l,{hostType:f,hostId:c}){return f==="html"&&!c.includes("wix/html")?"__STATICS_BASE_URL_PLACEHOLDER__"+l:f!=="js"?{relative:!0}:{runtime:`import.meta.url.replace(${`"${c}"`}, ${`"${l}"`})`}}}}}S();import{viteMiniflarePlugin as cA}from"@wix/cli-miniflare";import{createRequire as hA}from"node:module";var Ws=hA(import.meta.url);async function pA(e,t,{appSecret:i,webhooksPublicKey:r}){let a=Ws.resolve("@wix/cli-cloudflare-runtime/entry"),n=Ws.resolve("@wix/cli-cloudflare-runtime/getRegisteredEvents");return{configFile:!1,root:e.projectFolder,customLogger:t.customLogger,clearScreen:!1,logLevel:"info",optimizeDeps:{entries:[a,n]},ssr:{noExternal:!0,optimizeDeps:{include:["kind-of","lodash.isplainobject","lodash","crypto-js/sha256.js","crypto-js/enc-base64url.js","crypto-js"]}},resolve:{alias:{querystring:"query-string"}},build:{ssr:!0,manifest:!0,sourcemap:!0,target:"esnext",outDir:to(e.projectFolder),rollupOptions:{output:{entryFileNames:"[name].mjs",chunkFileNames:"assets/[name].mjs"},input:{entry:a,getRegisteredEvents:n}}},define:{"import.meta.env.APP_ID":JSON.stringify(e.config.appId),"import.meta.env.APP_SECRET":JSON.stringify(i),"import.meta.env.PUBLIC_KEY":JSON.stringify(r)},plugins:[cA({entry:Ws.resolve("@wix/cli-cloudflare-runtime/entry"),customLogger:t.customLogger})]}}S();export{wa as a,fA as b,pA as c};
176
- //# sourceMappingURL=chunk-BC3CFR7E.js.map
176
+ //# sourceMappingURL=chunk-VZGLJSBQ.js.map