shopify 3.93.2 → 3.94.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 (111) hide show
  1. package/dist/assets/dev-console/extensions/dev-console/assets/index-Bm_GpKQW.js +51 -0
  2. package/dist/assets/dev-console/index.html +1 -1
  3. package/dist/assets/hydrogen/starter/CHANGELOG.md +0 -64
  4. package/dist/assets/hydrogen/starter/app/components/Aside.tsx +2 -4
  5. package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +3 -6
  6. package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +23 -117
  7. package/dist/assets/hydrogen/starter/app/components/Header.tsx +3 -3
  8. package/dist/assets/hydrogen/starter/app/components/PaginatedResourceSection.tsx +4 -24
  9. package/dist/assets/hydrogen/starter/app/components/ProductPrice.tsx +1 -1
  10. package/dist/assets/hydrogen/starter/app/routes/[robots.txt].tsx +53 -14
  11. package/dist/assets/hydrogen/starter/app/routes/_index.tsx +4 -11
  12. package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +1 -1
  13. package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +2 -2
  14. package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +1 -1
  15. package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +14 -0
  16. package/dist/assets/hydrogen/starter/package.json +5 -5
  17. package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +11 -0
  18. package/dist/assets/hydrogen/starter/vite.config.ts +1 -1
  19. package/dist/assets/hydrogen/vite/vite.config.js +1 -1
  20. package/dist/chunk-52KHWFYF.js +1 -0
  21. package/dist/chunk-7F3HZJH4.js +3 -0
  22. package/dist/{chunk-4VZV4LQX.js → chunk-7JFIBCHH.js} +66 -66
  23. package/dist/{chunk-MX6WWR5F.js → chunk-AQOYGO3U.js} +16 -16
  24. package/dist/{chunk-IG47ZDRU.js → chunk-DBDY2YEY.js} +1 -1
  25. package/dist/chunk-DEW5QFGH.js +415 -0
  26. package/dist/chunk-FU2Y2M3M.js +5 -0
  27. package/dist/chunk-JBSYWYIP.js +2 -0
  28. package/dist/chunk-QYR5VPQA.js +4 -0
  29. package/dist/{chunk-5FCKEHCK.js → chunk-R6N4NGU6.js} +154 -154
  30. package/dist/{chunk-XVFYDYZA.js → chunk-SVA22NZQ.js} +209 -211
  31. package/dist/cli/commands/config/autoupgrade/constants.d.ts +5 -0
  32. package/dist/cli/commands/config/autoupgrade/constants.js +6 -0
  33. package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -0
  34. package/dist/cli/commands/config/autoupgrade/off.js +22 -0
  35. package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -0
  36. package/dist/cli/commands/config/autoupgrade/on.js +22 -0
  37. package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -0
  38. package/dist/cli/commands/config/autoupgrade/status.js +30 -0
  39. package/dist/cli/commands/docs/generate.d.ts +1 -1
  40. package/dist/cli/commands/docs/generate.js +6 -3
  41. package/dist/cli/commands/upgrade.js +3 -1
  42. package/dist/cli/services/kitchen-sink/static.js +1 -1
  43. package/dist/configs/all.yml +3 -0
  44. package/dist/configs/recommended.yml +3 -0
  45. package/dist/data/filters.json +30 -0
  46. package/dist/data/objects.json +17 -1
  47. package/dist/data/setting.json +25 -0
  48. package/dist/data/shopify_system_translations.json +29 -6
  49. package/dist/error-handler-JHFQZGYG.js +1 -0
  50. package/dist/hooks/postrun.js +1 -1
  51. package/dist/hooks/prerun.js +1 -1
  52. package/dist/{http-proxy-node16-DSQMBVDI.js → http-proxy-node16-TTURN6MD.js} +1 -1
  53. package/dist/index.js +1117 -1121
  54. package/dist/lib-3WHF5XD3.js +1 -0
  55. package/dist/{local-WHQ3ZS4K.js → local-4PW2CHVR.js} +1 -1
  56. package/dist/{morph-Q32V442A.js → morph-DQREIZD2.js} +1 -1
  57. package/dist/node-package-manager-NTQEYCSE.js +1 -0
  58. package/dist/path-HUAU3YBW.js +1 -0
  59. package/dist/tsconfig.tsbuildinfo +1 -1
  60. package/dist/{ui-GZ7DOSHP.js → ui-7Z2HOOEO.js} +1 -1
  61. package/dist/{workerd-LJU6AVMQ.js → workerd-VL54JTEU.js} +1 -1
  62. package/oclif.manifest.json +65 -4
  63. package/package.json +8 -7
  64. package/dist/assets/dev-console/extensions/dev-console/assets/index-BnXVL6nA.js +0 -78
  65. package/dist/chunk-4QL77VYJ.js +0 -415
  66. package/dist/chunk-DDTYWTF2.js +0 -1
  67. package/dist/chunk-FYQIRCLV.js +0 -5
  68. package/dist/chunk-NOSKVZWJ.js +0 -2
  69. package/dist/chunk-QJEBL3WX.js +0 -4
  70. package/dist/cli/commands/store/auth.d.ts +0 -15
  71. package/dist/cli/commands/store/auth.js +0 -46
  72. package/dist/cli/commands/store/execute.d.ts +0 -21
  73. package/dist/cli/commands/store/execute.js +0 -89
  74. package/dist/cli/services/store/auth/callback.d.ts +0 -8
  75. package/dist/cli/services/store/auth/callback.js +0 -140
  76. package/dist/cli/services/store/auth/config.d.ts +0 -6
  77. package/dist/cli/services/store/auth/config.js +0 -15
  78. package/dist/cli/services/store/auth/existing-scopes.d.ts +0 -5
  79. package/dist/cli/services/store/auth/existing-scopes.js +0 -40
  80. package/dist/cli/services/store/auth/index.d.ts +0 -18
  81. package/dist/cli/services/store/auth/index.js +0 -88
  82. package/dist/cli/services/store/auth/pkce.d.ts +0 -36
  83. package/dist/cli/services/store/auth/pkce.js +0 -49
  84. package/dist/cli/services/store/auth/recovery.d.ts +0 -4
  85. package/dist/cli/services/store/auth/recovery.js +0 -17
  86. package/dist/cli/services/store/auth/result.d.ts +0 -24
  87. package/dist/cli/services/store/auth/result.js +0 -39
  88. package/dist/cli/services/store/auth/scopes.d.ts +0 -4
  89. package/dist/cli/services/store/auth/scopes.js +0 -53
  90. package/dist/cli/services/store/auth/session-lifecycle.d.ts +0 -3
  91. package/dist/cli/services/store/auth/session-lifecycle.js +0 -69
  92. package/dist/cli/services/store/auth/session-store.d.ts +0 -32
  93. package/dist/cli/services/store/auth/session-store.js +0 -127
  94. package/dist/cli/services/store/auth/token-client.d.ts +0 -40
  95. package/dist/cli/services/store/auth/token-client.js +0 -95
  96. package/dist/cli/services/store/execute/admin-context.d.ts +0 -11
  97. package/dist/cli/services/store/execute/admin-context.js +0 -41
  98. package/dist/cli/services/store/execute/admin-transport.d.ts +0 -6
  99. package/dist/cli/services/store/execute/admin-transport.js +0 -42
  100. package/dist/cli/services/store/execute/index.d.ts +0 -13
  101. package/dist/cli/services/store/execute/index.js +0 -22
  102. package/dist/cli/services/store/execute/request.d.ts +0 -21
  103. package/dist/cli/services/store/execute/request.js +0 -88
  104. package/dist/cli/services/store/execute/result.d.ts +0 -3
  105. package/dist/cli/services/store/execute/result.js +0 -29
  106. package/dist/cli/services/store/execute/targets.d.ts +0 -18
  107. package/dist/cli/services/store/execute/targets.js +0 -21
  108. package/dist/error-handler-GZ2I7BG5.js +0 -1
  109. package/dist/lib-GGVLMXY5.js +0 -1
  110. package/dist/node-package-manager-6XMPTNUI.js +0 -1
  111. package/dist/path-IT7KPARG.js +0 -1
@@ -0,0 +1,5 @@
1
+ import{a as R,c as y,g as C}from"./chunk-VPRTJUIN.js";var q=y((Re,j)=>{C();var w=1e3,v=w*60,E=v*60,b=E*24,re=b*7,te=b*365.25;j.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return ne(e);if(r==="number"&&isFinite(e))return t.long?oe(e):se(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function ne(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*te;case"weeks":case"week":case"w":return r*re;case"days":case"day":case"d":return r*b;case"hours":case"hour":case"hrs":case"hr":case"h":return r*E;case"minutes":case"minute":case"mins":case"min":case"m":return r*v;case"seconds":case"second":case"secs":case"sec":case"s":return r*w;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function se(e){var t=Math.abs(e);return t>=b?Math.round(e/b)+"d":t>=E?Math.round(e/E)+"h":t>=v?Math.round(e/v)+"m":t>=w?Math.round(e/w)+"s":e+"ms"}function oe(e){var t=Math.abs(e);return t>=b?T(e,t,b,"day"):t>=E?T(e,t,E,"hour"):t>=v?T(e,t,v,"minute"):t>=w?T(e,t,w,"second"):e+" ms"}function T(e,t,r,n){var a=t>=r*1.5;return Math.round(e/r)+" "+n+(a?"s":"")}});var k=y((Ae,G)=>{C();function ie(e){r.debug=r,r.default=r,r.coerce=H,r.disable=F,r.enable=a,r.enabled=Z,r.humanize=q(),r.destroy=K,Object.keys(e).forEach(s=>{r[s]=e[s]}),r.names=[],r.skips=[],r.formatters={};function t(s){let o=0;for(let i=0;i<s.length;i++)o=(o<<5)-o+s.charCodeAt(i),o|=0;return r.colors[Math.abs(o)%r.colors.length]}r.selectColor=t;function r(s){let o,i=null,l,O;function f(...p){if(!f.enabled)return;let g=f,I=Number(new Date),Q=I-(o||I);g.diff=Q,g.prev=o,g.curr=I,o=I,p[0]=r.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let x=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,(N,X)=>{if(N==="%%")return"%";x++;let D=r.formatters[X];if(typeof D=="function"){let ee=p[x];N=D.call(g,ee),p.splice(x,1),x--}return N}),r.formatArgs.call(g,p),(g.log||r.log).apply(g,p)}return f.namespace=s,f.useColors=r.useColors(),f.color=r.selectColor(s),f.extend=n,f.destroy=r.destroy,Object.defineProperty(f,"enabled",{enumerable:!0,configurable:!1,get:()=>i!==null?i:(l!==r.namespaces&&(l=r.namespaces,O=r.enabled(s)),O),set:p=>{i=p}}),typeof r.init=="function"&&r.init(f),f}function n(s,o){let i=r(this.namespace+(typeof o>"u"?":":o)+s);return i.log=this.log,i}function a(s){r.save(s),r.namespaces=s,r.names=[],r.skips=[];let o=(typeof s=="string"?s:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let i of o)i[0]==="-"?r.skips.push(i.slice(1)):r.names.push(i)}function m(s,o){let i=0,l=0,O=-1,f=0;for(;i<s.length;)if(l<o.length&&(o[l]===s[i]||o[l]==="*"))o[l]==="*"?(O=l,f=i,l++):(i++,l++);else if(O!==-1)l=O+1,f++,i=f;else return!1;for(;l<o.length&&o[l]==="*";)l++;return l===o.length}function F(){let s=[...r.names,...r.skips.map(o=>"-"+o)].join(",");return r.enable(""),s}function Z(s){for(let o of r.skips)if(m(s,o))return!1;for(let o of r.names)if(m(s,o))return!0;return!1}function H(s){return s instanceof Error?s.stack||s.message:s}function K(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}G.exports=ie});var P=y((d,A)=>{C();d.formatArgs=ue;d.save=ae;d.load=le;d.useColors=ce;d.storage=fe();d.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();d.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ce(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ue(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+A.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(r++,a==="%c"&&(n=r))}),e.splice(n,0,t)}d.log=console.debug||console.log||(()=>{});function ae(e){try{e?d.storage.setItem("debug",e):d.storage.removeItem("debug")}catch{}}function le(){let e;try{e=d.storage.getItem("debug")||d.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function fe(){try{return localStorage}catch{}}A.exports=k()(d);var{formatters:Ce}=A.exports;Ce.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Y=y((Le,U)=>{"use strict";C();U.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),a=t.indexOf("--");return n!==-1&&(a===-1||n<a)}});var V=y((ke,$)=>{"use strict";C();var de=R("os"),z=R("tty"),h=Y(),{env:c}=process,M;h("no-color")||h("no-colors")||h("color=false")||h("color=never")?M=0:(h("color")||h("colors")||h("color=true")||h("color=always"))&&(M=1);function pe(){if("FORCE_COLOR"in c)return c.FORCE_COLOR==="true"?1:c.FORCE_COLOR==="false"?0:c.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(c.FORCE_COLOR,10),3)}function he(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function me(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=pe();n!==void 0&&(M=n);let a=r?M:n;if(a===0)return 0;if(r){if(h("color=16m")||h("color=full")||h("color=truecolor"))return 3;if(h("color=256"))return 2}if(e&&!t&&a===void 0)return 0;let m=a||0;if(c.TERM==="dumb")return m;if(process.platform==="win32"){let F=de.release().split(".");return Number(F[0])>=10&&Number(F[2])>=10586?Number(F[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(F=>F in c)||c.CI_NAME==="codeship"?1:m;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c){let F=Number.parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:m}function B(e,t={}){let r=me(e,{streamIsTTY:e&&e.isTTY,...t});return he(r)}$.exports={supportsColor:B,stdout:B({isTTY:z.isatty(1)}),stderr:B({isTTY:z.isatty(2)})}});var W=y((u,L)=>{C();var Fe=R("tty"),_=R("util");u.init=Ee;u.log=Oe;u.formatArgs=ye;u.save=we;u.load=ve;u.useColors=ge;u.destroy=_.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");u.colors=[6,2,3,4,5,1];try{let e=V();e&&(e.stderr||e).level>=2&&(u.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}u.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(a,m)=>m.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function ge(){return"colors"in u.inspectOpts?!!u.inspectOpts.colors:Fe.isatty(process.stderr.fd)}function ye(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,a="\x1B[3"+(n<8?n:"8;5;"+n),m=` ${a};1m${t} \x1B[0m`;e[0]=m+e[0].split(`
2
+ `).join(`
3
+ `+m),e.push(a+"m+"+L.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=be()+t+" "+e[0]}function be(){return u.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Oe(...e){return process.stderr.write(_.formatWithOptions(u.inspectOpts,...e)+`
4
+ `)}function we(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function ve(){return process.env.DEBUG}function Ee(e){e.inspectOpts={};let t=Object.keys(u.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=u.inspectOpts[t[r]]}L.exports=k()(u);var{formatters:J}=L.exports;J.o=function(e){return this.inspectOpts.colors=this.useColors,_.inspect(e,this.inspectOpts).split(`
5
+ `).map(t=>t.trim()).join(" ")};J.O=function(e){return this.inspectOpts.colors=this.useColors,_.inspect(e,this.inspectOpts)}});var Ie=y((De,S)=>{C();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?S.exports=P():S.exports=W()});export{q as a,Y as b,V as c,Ie as d};
@@ -0,0 +1,2 @@
1
+ import{g as c}from"./chunk-VPRTJUIN.js";c();c();c();var j=/^[A-Za-z]:\//;function f(e=""){return e&&e.replace(/\\/g,"/").replace(j,n=>n.toUpperCase())}var z=/^[/\\]{2}/,A=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,E=/^[A-Za-z]:$/,v=/^\/([A-Za-z]:)?$/;var $=":",m=function(e){if(e.length===0)return".";e=f(e);let n=e.match(z),t=l(e),s=e[e.length-1]==="/";return e=P(e,!t),e.length===0?t?"/":s?"./":".":(s&&(e+="/"),E.test(e)&&(e+="/"),n?t?`//${e}`:`//./${e}`:t&&!l(e)?`/${e}`:e)},x=function(...e){if(e.length===0)return".";let n;for(let t of e)t&&t.length>0&&(n===void 0?n=t:n+=`/${t}`);return n===void 0?".":m(n.replace(/\/\/+/g,"/"))};function R(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}var u=function(...e){e=e.map(s=>f(s));let n="",t=!1;for(let s=e.length-1;s>=-1&&!t;s--){let r=s>=0?e[s]:R();!r||r.length===0||(n=`${r}/${n}`,t=l(r))}return n=P(n,!t),t&&!l(n)?`/${n}`:n.length>0?n:"."};function P(e,n){let t="",s=0,r=-1,o=0,a=null;for(let i=0;i<=e.length;++i){if(i<e.length)a=e[i];else{if(a==="/")break;a="/"}if(a==="/"){if(!(r===i-1||o===1))if(o===2){if(t.length<2||s!==2||t[t.length-1]!=="."||t[t.length-2]!=="."){if(t.length>2){let b=t.lastIndexOf("/");b===-1?(t="",s=0):(t=t.slice(0,b),s=t.length-1-t.lastIndexOf("/")),r=i,o=0;continue}else if(t.length>0){t="",s=0,r=i,o=0;continue}}n&&(t+=t.length>0?"/..":"..",s=2)}else t.length>0?t+=`/${e.slice(r+1,i)}`:t=e.slice(r+1,i),s=i-r-1;r=i,o=0}else a==="."&&o!==-1?++o:o=-1}return t}var l=function(e){return A.test(e)};var S=/.(\.[^./]+)$/,h=function(e){let n=S.exec(f(e));return n&&n[1]||""},p=function(e,n){let t=u(e).replace(v,"$1").split("/"),s=u(n).replace(v,"$1").split("/");if(s[0][1]===":"&&t[0][1]===":"&&t[0]!==s[0])return s.join("/");let r=[...t];for(let o of r){if(s[0]!==o)break;t.shift(),s.shift()}return[...t.map(()=>".."),...s].join("/")},d=function(e){let n=f(e).replace(/\/$/,"").split("/").slice(0,-1);return n.length===1&&E.test(n[0])&&(n[0]+="/"),n.join("/")||(l(e)?"/":".")};var g=function(e,n){let t=f(e).split("/").pop();return n&&t.endsWith(n)?t.slice(0,-n.length):t},_=function(e){let n=f(e).split("/").shift()||"/",t=g(e),s=h(t);return{root:n,dir:d(e),base:t,ext:s,name:t.slice(0,t.length-s.length)}};import{fileURLToPath as T}from"url";function X(...e){return x(...e)}function G(e){return m(e)}function J(...e){return u(...e)}function M(e,n){return p(e,n)}function I(e){return l(e)}function w(e){return d(e)}function q(e,n){return g(e,n)}function H(e){return h(e)}function K(e){return _(e)}function D(e,n){let t=e.split(/\/+|\\+/),s=n.split(/\/+|\\+/),r=0;for(;r<t.length&&r<s.length&&t[r]===s[r];)r++;return r>1?t.slice(0,r).join("/"):"/"}function Q(e,n=N()){let t=D(e,n),s=p(n,e),r=s.split("/").filter(o=>o==="..").length;return t==="/"||s===""||r>2?e:s}function Y(e,n){let t=p(e,n);return!t.startsWith("..")&&!I(t)}function ee(e){return w(T(e))}function N(){return m(process.env.INIT_CWD||process.cwd())}function te(e=process.argv){let n=e.indexOf("--path");if(n===-1)return e.find(r=>r.startsWith("--path="))?.split("=")[1];let t=e[n+1];if(!(!t||t.startsWith("-")))return t}function ne(e=process.argv){return e.includes("--json")||e.includes("-j")}function se(e,n){let t=e.replace(/\\/g,"/").split("/"),s=[],r=!1;for(let a of t)a===".."?(r=!0,s.pop()):a!=="."&&s.push(a);let o=s.join("/");return r&&n(`Warning: path '${e}' contains '..' traversal \u2014 sanitized to '${o||"."}'
2
+ `),o}export{$ as a,x as b,X as c,G as d,J as e,M as f,I as g,w as h,q as i,H as j,K as k,D as l,Q as m,Y as n,ee as o,N as p,te as q,ne as r,se as s};
@@ -0,0 +1,4 @@
1
+ import{a as we,c as w,g as d}from"./chunk-VPRTJUIN.js";var Le=w(H=>{d();var Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");H.encode=function(r){if(0<=r&&r<Me.length)return Me[r];throw new TypeError("Must be between 0 and 63: "+r)};H.decode=function(r){var e=65,n=90,t=97,o=122,i=48,u=57,l=43,s=47,a=26,c=52;return e<=r&&r<=n?r-e:t<=r&&r<=o?r-t+a:i<=r&&r<=u?r-i+c:r==l?62:r==s?63:-1}});var ne=w(re=>{d();var Ee=Le(),ee=5,Ae=1<<ee,Oe=Ae-1,be=Ae;function nr(r){return r<0?(-r<<1)+1:(r<<1)+0}function tr(r){var e=(r&1)===1,n=r>>1;return e?-n:n}re.encode=function(e){var n="",t,o=nr(e);do t=o&Oe,o>>>=ee,o>0&&(t|=be),n+=Ee.encode(t);while(o>0);return n};re.decode=function(e,n,t){var o=e.length,i=0,u=0,l,s;do{if(n>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(s=Ee.decode(e.charCodeAt(n++)),s===-1)throw new Error("Invalid base64 digit: "+e.charAt(n-1));l=!!(s&be),s&=Oe,i=i+(s<<u),u+=ee}while(l);t.value=tr(i),t.rest=n}});var F=w(y=>{d();function or(r,e,n){if(e in r)return r[e];if(arguments.length===3)return n;throw new Error('"'+e+'" is a required argument.')}y.getArg=or;var Re=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ir=/^data:.+\,.+$/;function U(r){var e=r.match(Re);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}y.urlParse=U;function B(r){var e="";return r.scheme&&(e+=r.scheme+":"),e+="//",r.auth&&(e+=r.auth+"@"),r.host&&(e+=r.host),r.port&&(e+=":"+r.port),r.path&&(e+=r.path),e}y.urlGenerate=B;function te(r){var e=r,n=U(r);if(n){if(!n.path)return r;e=n.path}for(var t=y.isAbsolute(e),o=e.split(/\/+/),i,u=0,l=o.length-1;l>=0;l--)i=o[l],i==="."?o.splice(l,1):i===".."?u++:u>0&&(i===""?(o.splice(l+1,u),u=0):(o.splice(l,2),u--));return e=o.join("/"),e===""&&(e=t?"/":"."),n?(n.path=e,B(n)):e}y.normalize=te;function Ne(r,e){r===""&&(r="."),e===""&&(e=".");var n=U(e),t=U(r);if(t&&(r=t.path||"/"),n&&!n.scheme)return t&&(n.scheme=t.scheme),B(n);if(n||e.match(ir))return e;if(t&&!t.host&&!t.path)return t.host=e,B(t);var o=e.charAt(0)==="/"?e:te(r.replace(/\/+$/,"")+"/"+e);return t?(t.path=o,B(t)):o}y.join=Ne;y.isAbsolute=function(r){return r.charAt(0)==="/"||Re.test(r)};function ur(r,e){r===""&&(r="."),r=r.replace(/\/$/,"");for(var n=0;e.indexOf(r+"/")!==0;){var t=r.lastIndexOf("/");if(t<0||(r=r.slice(0,t),r.match(/^([^\/]+:\/)?\/*$/)))return e;++n}return Array(n+1).join("../")+e.substr(r.length+1)}y.relative=ur;var xe=(function(){var r=Object.create(null);return!("__proto__"in r)})();function Ge(r){return r}function sr(r){return Ie(r)?"$"+r:r}y.toSetString=xe?Ge:sr;function lr(r){return Ie(r)?r.slice(1):r}y.fromSetString=xe?Ge:lr;function Ie(r){if(!r)return!1;var e=r.length;if(e<9||r.charCodeAt(e-1)!==95||r.charCodeAt(e-2)!==95||r.charCodeAt(e-3)!==111||r.charCodeAt(e-4)!==116||r.charCodeAt(e-5)!==111||r.charCodeAt(e-6)!==114||r.charCodeAt(e-7)!==112||r.charCodeAt(e-8)!==95||r.charCodeAt(e-9)!==95)return!1;for(var n=e-10;n>=0;n--)if(r.charCodeAt(n)!==36)return!1;return!0}function ar(r,e,n){var t=q(r.source,e.source);return t!==0||(t=r.originalLine-e.originalLine,t!==0)||(t=r.originalColumn-e.originalColumn,t!==0||n)||(t=r.generatedColumn-e.generatedColumn,t!==0)||(t=r.generatedLine-e.generatedLine,t!==0)?t:q(r.name,e.name)}y.compareByOriginalPositions=ar;function cr(r,e,n){var t=r.generatedLine-e.generatedLine;return t!==0||(t=r.generatedColumn-e.generatedColumn,t!==0||n)||(t=q(r.source,e.source),t!==0)||(t=r.originalLine-e.originalLine,t!==0)||(t=r.originalColumn-e.originalColumn,t!==0)?t:q(r.name,e.name)}y.compareByGeneratedPositionsDeflated=cr;function q(r,e){return r===e?0:r===null?1:e===null?-1:r>e?1:-1}function fr(r,e){var n=r.generatedLine-e.generatedLine;return n!==0||(n=r.generatedColumn-e.generatedColumn,n!==0)||(n=q(r.source,e.source),n!==0)||(n=r.originalLine-e.originalLine,n!==0)||(n=r.originalColumn-e.originalColumn,n!==0)?n:q(r.name,e.name)}y.compareByGeneratedPositionsInflated=fr;function hr(r){return JSON.parse(r.replace(/^\)]}'[^\n]*\n/,""))}y.parseSourceMapInput=hr;function gr(r,e,n){if(e=e||"",r&&(r[r.length-1]!=="/"&&e[0]!=="/"&&(r+="/"),e=r+e),n){var t=U(n);if(!t)throw new Error("sourceMapURL could not be parsed");if(t.path){var o=t.path.lastIndexOf("/");o>=0&&(t.path=t.path.substring(0,o+1))}e=Ne(B(t),e)}return te(e)}y.computeSourceURL=gr});var ue=w(Te=>{d();var oe=F(),ie=Object.prototype.hasOwnProperty,x=typeof Map<"u";function b(){this._array=[],this._set=x?new Map:Object.create(null)}b.fromArray=function(e,n){for(var t=new b,o=0,i=e.length;o<i;o++)t.add(e[o],n);return t};b.prototype.size=function(){return x?this._set.size:Object.getOwnPropertyNames(this._set).length};b.prototype.add=function(e,n){var t=x?e:oe.toSetString(e),o=x?this.has(e):ie.call(this._set,t),i=this._array.length;(!o||n)&&this._array.push(e),o||(x?this._set.set(e,i):this._set[t]=i)};b.prototype.has=function(e){if(x)return this._set.has(e);var n=oe.toSetString(e);return ie.call(this._set,n)};b.prototype.indexOf=function(e){if(x){var n=this._set.get(e);if(n>=0)return n}else{var t=oe.toSetString(e);if(ie.call(this._set,t))return this._set[t]}throw new Error('"'+e+'" is not in the set.')};b.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};b.prototype.toArray=function(){return this._array.slice()};Te.ArraySet=b});var qe=w(Be=>{d();var Pe=F();function dr(r,e){var n=r.generatedLine,t=e.generatedLine,o=r.generatedColumn,i=e.generatedColumn;return t>n||t==n&&i>=o||Pe.compareByGeneratedPositionsInflated(r,e)<=0}function W(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}W.prototype.unsortedForEach=function(e,n){this._array.forEach(e,n)};W.prototype.add=function(e){dr(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};W.prototype.toArray=function(){return this._sorted||(this._array.sort(Pe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Be.MappingList=W});var se=w(Fe=>{d();var $=ne(),_=F(),J=ue().ArraySet,vr=qe().MappingList;function E(r){r||(r={}),this._file=_.getArg(r,"file",null),this._sourceRoot=_.getArg(r,"sourceRoot",null),this._skipValidation=_.getArg(r,"skipValidation",!1),this._sources=new J,this._names=new J,this._mappings=new vr,this._sourcesContents=null}E.prototype._version=3;E.fromSourceMap=function(e){var n=e.sourceRoot,t=new E({file:e.file,sourceRoot:n});return e.eachMapping(function(o){var i={generated:{line:o.generatedLine,column:o.generatedColumn}};o.source!=null&&(i.source=o.source,n!=null&&(i.source=_.relative(n,i.source)),i.original={line:o.originalLine,column:o.originalColumn},o.name!=null&&(i.name=o.name)),t.addMapping(i)}),e.sources.forEach(function(o){var i=o;n!==null&&(i=_.relative(n,o)),t._sources.has(i)||t._sources.add(i);var u=e.sourceContentFor(o);u!=null&&t.setSourceContent(o,u)}),t};E.prototype.addMapping=function(e){var n=_.getArg(e,"generated"),t=_.getArg(e,"original",null),o=_.getArg(e,"source",null),i=_.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,t,o,i),o!=null&&(o=String(o),this._sources.has(o)||this._sources.add(o)),i!=null&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:t!=null&&t.line,originalColumn:t!=null&&t.column,source:o,name:i})};E.prototype.setSourceContent=function(e,n){var t=e;this._sourceRoot!=null&&(t=_.relative(this._sourceRoot,t)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[_.toSetString(t)]=n):this._sourcesContents&&(delete this._sourcesContents[_.toSetString(t)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};E.prototype.applySourceMap=function(e,n,t){var o=n;if(n==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);o=e.file}var i=this._sourceRoot;i!=null&&(o=_.relative(i,o));var u=new J,l=new J;this._mappings.unsortedForEach(function(s){if(s.source===o&&s.originalLine!=null){var a=e.originalPositionFor({line:s.originalLine,column:s.originalColumn});a.source!=null&&(s.source=a.source,t!=null&&(s.source=_.join(t,s.source)),i!=null&&(s.source=_.relative(i,s.source)),s.originalLine=a.line,s.originalColumn=a.column,a.name!=null&&(s.name=a.name))}var c=s.source;c!=null&&!u.has(c)&&u.add(c);var g=s.name;g!=null&&!l.has(g)&&l.add(g)},this),this._sources=u,this._names=l,e.sources.forEach(function(s){var a=e.sourceContentFor(s);a!=null&&(t!=null&&(s=_.join(t,s)),i!=null&&(s=_.relative(i,s)),this.setSourceContent(s,a))},this)};E.prototype._validateMapping=function(e,n,t,o){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!o)){if(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:o}))}};E.prototype._serializeMappings=function(){for(var e=0,n=1,t=0,o=0,i=0,u=0,l="",s,a,c,g,h=this._mappings.toArray(),v=0,L=h.length;v<L;v++){if(a=h[v],s="",a.generatedLine!==n)for(e=0;a.generatedLine!==n;)s+=";",n++;else if(v>0){if(!_.compareByGeneratedPositionsInflated(a,h[v-1]))continue;s+=","}s+=$.encode(a.generatedColumn-e),e=a.generatedColumn,a.source!=null&&(g=this._sources.indexOf(a.source),s+=$.encode(g-u),u=g,s+=$.encode(a.originalLine-1-o),o=a.originalLine-1,s+=$.encode(a.originalColumn-t),t=a.originalColumn,a.name!=null&&(c=this._names.indexOf(a.name),s+=$.encode(c-i),i=c)),l+=s}return l};E.prototype._generateSourcesContent=function(e,n){return e.map(function(t){if(!this._sourcesContents)return null;n!=null&&(t=_.relative(n,t));var o=_.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,o)?this._sourcesContents[o]:null},this)};E.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};E.prototype.toString=function(){return JSON.stringify(this.toJSON())};Fe.SourceMapGenerator=E});var je=w(G=>{d();G.GREATEST_LOWER_BOUND=1;G.LEAST_UPPER_BOUND=2;function le(r,e,n,t,o,i){var u=Math.floor((e-r)/2)+r,l=o(n,t[u],!0);return l===0?u:l>0?e-u>1?le(u,e,n,t,o,i):i==G.LEAST_UPPER_BOUND?e<t.length?e:-1:u:u-r>1?le(r,u,n,t,o,i):i==G.LEAST_UPPER_BOUND?u:r<0?-1:r}G.search=function(e,n,t,o){if(n.length===0)return-1;var i=le(-1,n.length,e,n,t,o||G.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&t(n[i],n[i-1],!0)===0;)--i;return i}});var Ue=w(De=>{d();function ae(r,e,n){var t=r[e];r[e]=r[n],r[n]=t}function pr(r,e){return Math.round(r+Math.random()*(e-r))}function ce(r,e,n,t){if(n<t){var o=pr(n,t),i=n-1;ae(r,o,t);for(var u=r[t],l=n;l<t;l++)e(r[l],u)<=0&&(i+=1,ae(r,i,l));ae(r,i+1,l);var s=i+1;ce(r,e,n,s-1),ce(r,e,s+1,t)}}De.quickSort=function(r,e){ce(r,e,0,r.length-1)}});var ke=w(X=>{d();var f=F(),fe=je(),j=ue().ArraySet,_r=ne(),k=Ue().quickSort;function p(r,e){var n=r;return typeof r=="string"&&(n=f.parseSourceMapInput(r)),n.sections!=null?new A(n,e):new m(n,e)}p.fromSourceMap=function(r,e){return m.fromSourceMap(r,e)};p.prototype._version=3;p.prototype.__generatedMappings=null;Object.defineProperty(p.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});p.prototype.__originalMappings=null;Object.defineProperty(p.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});p.prototype._charIsMappingSeparator=function(e,n){var t=e.charAt(n);return t===";"||t===","};p.prototype._parseMappings=function(e,n){throw new Error("Subclasses must implement _parseMappings")};p.GENERATED_ORDER=1;p.ORIGINAL_ORDER=2;p.GREATEST_LOWER_BOUND=1;p.LEAST_UPPER_BOUND=2;p.prototype.eachMapping=function(e,n,t){var o=n||null,i=t||p.GENERATED_ORDER,u;switch(i){case p.GENERATED_ORDER:u=this._generatedMappings;break;case p.ORIGINAL_ORDER:u=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var l=this.sourceRoot;u.map(function(s){var a=s.source===null?null:this._sources.at(s.source);return a=f.computeSourceURL(l,a,this._sourceMapURL),{source:a,generatedLine:s.generatedLine,generatedColumn:s.generatedColumn,originalLine:s.originalLine,originalColumn:s.originalColumn,name:s.name===null?null:this._names.at(s.name)}},this).forEach(e,o)};p.prototype.allGeneratedPositionsFor=function(e){var n=f.getArg(e,"line"),t={source:f.getArg(e,"source"),originalLine:n,originalColumn:f.getArg(e,"column",0)};if(t.source=this._findSourceIndex(t.source),t.source<0)return[];var o=[],i=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",f.compareByOriginalPositions,fe.LEAST_UPPER_BOUND);if(i>=0){var u=this._originalMappings[i];if(e.column===void 0)for(var l=u.originalLine;u&&u.originalLine===l;)o.push({line:f.getArg(u,"generatedLine",null),column:f.getArg(u,"generatedColumn",null),lastColumn:f.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++i];else for(var s=u.originalColumn;u&&u.originalLine===n&&u.originalColumn==s;)o.push({line:f.getArg(u,"generatedLine",null),column:f.getArg(u,"generatedColumn",null),lastColumn:f.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++i]}return o};X.SourceMapConsumer=p;function m(r,e){var n=r;typeof r=="string"&&(n=f.parseSourceMapInput(r));var t=f.getArg(n,"version"),o=f.getArg(n,"sources"),i=f.getArg(n,"names",[]),u=f.getArg(n,"sourceRoot",null),l=f.getArg(n,"sourcesContent",null),s=f.getArg(n,"mappings"),a=f.getArg(n,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);u&&(u=f.normalize(u)),o=o.map(String).map(f.normalize).map(function(c){return u&&f.isAbsolute(u)&&f.isAbsolute(c)?f.relative(u,c):c}),this._names=j.fromArray(i.map(String),!0),this._sources=j.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(c){return f.computeSourceURL(u,c,e)}),this.sourceRoot=u,this.sourcesContent=l,this._mappings=s,this._sourceMapURL=e,this.file=a}m.prototype=Object.create(p.prototype);m.prototype.consumer=p;m.prototype._findSourceIndex=function(r){var e=r;if(this.sourceRoot!=null&&(e=f.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==r)return n;return-1};m.fromSourceMap=function(e,n){var t=Object.create(m.prototype),o=t._names=j.fromArray(e._names.toArray(),!0),i=t._sources=j.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file,t._sourceMapURL=n,t._absoluteSources=t._sources.toArray().map(function(v){return f.computeSourceURL(t.sourceRoot,v,n)});for(var u=e._mappings.toArray().slice(),l=t.__generatedMappings=[],s=t.__originalMappings=[],a=0,c=u.length;a<c;a++){var g=u[a],h=new $e;h.generatedLine=g.generatedLine,h.generatedColumn=g.generatedColumn,g.source&&(h.source=i.indexOf(g.source),h.originalLine=g.originalLine,h.originalColumn=g.originalColumn,g.name&&(h.name=o.indexOf(g.name)),s.push(h)),l.push(h)}return k(t.__originalMappings,f.compareByOriginalPositions),t};m.prototype._version=3;Object.defineProperty(m.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function $e(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}m.prototype._parseMappings=function(e,n){for(var t=1,o=0,i=0,u=0,l=0,s=0,a=e.length,c=0,g={},h={},v=[],L=[],C,V,S,P,Ce;c<a;)if(e.charAt(c)===";")t++,c++,o=0;else if(e.charAt(c)===",")c++;else{for(C=new $e,C.generatedLine=t,P=c;P<a&&!this._charIsMappingSeparator(e,P);P++);if(V=e.slice(c,P),S=g[V],S)c+=V.length;else{for(S=[];c<P;)_r.decode(e,c,h),Ce=h.value,c=h.rest,S.push(Ce);if(S.length===2)throw new Error("Found a source, but no line and column");if(S.length===3)throw new Error("Found a source and line, but no column");g[V]=S}C.generatedColumn=o+S[0],o=C.generatedColumn,S.length>1&&(C.source=l+S[1],l+=S[1],C.originalLine=i+S[2],i=C.originalLine,C.originalLine+=1,C.originalColumn=u+S[3],u=C.originalColumn,S.length>4&&(C.name=s+S[4],s+=S[4])),L.push(C),typeof C.originalLine=="number"&&v.push(C)}k(L,f.compareByGeneratedPositionsDeflated),this.__generatedMappings=L,k(v,f.compareByOriginalPositions),this.__originalMappings=v};m.prototype._findMapping=function(e,n,t,o,i,u){if(e[t]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[t]);if(e[o]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[o]);return fe.search(e,n,i,u)};m.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var n=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var t=this._generatedMappings[e+1];if(n.generatedLine===t.generatedLine){n.lastGeneratedColumn=t.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};m.prototype.originalPositionFor=function(e){var n={generatedLine:f.getArg(e,"line"),generatedColumn:f.getArg(e,"column")},t=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",f.compareByGeneratedPositionsDeflated,f.getArg(e,"bias",p.GREATEST_LOWER_BOUND));if(t>=0){var o=this._generatedMappings[t];if(o.generatedLine===n.generatedLine){var i=f.getArg(o,"source",null);i!==null&&(i=this._sources.at(i),i=f.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var u=f.getArg(o,"name",null);return u!==null&&(u=this._names.at(u)),{source:i,line:f.getArg(o,"originalLine",null),column:f.getArg(o,"originalColumn",null),name:u}}}return{source:null,line:null,column:null,name:null}};m.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};m.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];var o=e;this.sourceRoot!=null&&(o=f.relative(this.sourceRoot,o));var i;if(this.sourceRoot!=null&&(i=f.urlParse(this.sourceRoot))){var u=o.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];if((!i.path||i.path=="/")&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(n)return null;throw new Error('"'+o+'" is not in the SourceMap.')};m.prototype.generatedPositionFor=function(e){var n=f.getArg(e,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var t={source:n,originalLine:f.getArg(e,"line"),originalColumn:f.getArg(e,"column")},o=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",f.compareByOriginalPositions,f.getArg(e,"bias",p.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===t.source)return{line:f.getArg(i,"generatedLine",null),column:f.getArg(i,"generatedColumn",null),lastColumn:f.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};X.BasicSourceMapConsumer=m;function A(r,e){var n=r;typeof r=="string"&&(n=f.parseSourceMapInput(r));var t=f.getArg(n,"version"),o=f.getArg(n,"sections");if(t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new j,this._names=new j;var i={line:-1,column:0};this._sections=o.map(function(u){if(u.url)throw new Error("Support for url field in sections not implemented.");var l=f.getArg(u,"offset"),s=f.getArg(l,"line"),a=f.getArg(l,"column");if(s<i.line||s===i.line&&a<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=l,{generatedOffset:{generatedLine:s+1,generatedColumn:a+1},consumer:new p(f.getArg(u,"map"),e)}})}A.prototype=Object.create(p.prototype);A.prototype.constructor=p;A.prototype._version=3;Object.defineProperty(A.prototype,"sources",{get:function(){for(var r=[],e=0;e<this._sections.length;e++)for(var n=0;n<this._sections[e].consumer.sources.length;n++)r.push(this._sections[e].consumer.sources[n]);return r}});A.prototype.originalPositionFor=function(e){var n={generatedLine:f.getArg(e,"line"),generatedColumn:f.getArg(e,"column")},t=fe.search(n,this._sections,function(i,u){var l=i.generatedLine-u.generatedOffset.generatedLine;return l||i.generatedColumn-u.generatedOffset.generatedColumn}),o=this._sections[t];return o?o.consumer.originalPositionFor({line:n.generatedLine-(o.generatedOffset.generatedLine-1),column:n.generatedColumn-(o.generatedOffset.generatedLine===n.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};A.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};A.prototype.sourceContentFor=function(e,n){for(var t=0;t<this._sections.length;t++){var o=this._sections[t],i=o.consumer.sourceContentFor(e,!0);if(i)return i}if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')};A.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var t=this._sections[n];if(t.consumer._findSourceIndex(f.getArg(e,"source"))!==-1){var o=t.consumer.generatedPositionFor(e);if(o){var i={line:o.line+(t.generatedOffset.generatedLine-1),column:o.column+(t.generatedOffset.generatedLine===o.line?t.generatedOffset.generatedColumn-1:0)};return i}}}return{line:null,column:null}};A.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var t=0;t<this._sections.length;t++)for(var o=this._sections[t],i=o.consumer._generatedMappings,u=0;u<i.length;u++){var l=i[u],s=o.consumer._sources.at(l.source);s=f.computeSourceURL(o.consumer.sourceRoot,s,this._sourceMapURL),this._sources.add(s),s=this._sources.indexOf(s);var a=null;l.name&&(a=o.consumer._names.at(l.name),this._names.add(a),a=this._names.indexOf(a));var c={source:s,generatedLine:l.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(o.generatedOffset.generatedLine===l.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:a};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}k(this.__generatedMappings,f.compareByGeneratedPositionsDeflated),k(this.__originalMappings,f.compareByOriginalPositions)};X.IndexedSourceMapConsumer=A});var Qe=w(ze=>{d();var mr=se().SourceMapGenerator,Z=F(),Sr=/(\r?\n)/,yr=10,D="$$$isSourceNode$$$";function M(r,e,n,t,o){this.children=[],this.sourceContents={},this.line=r??null,this.column=e??null,this.source=n??null,this.name=o??null,this[D]=!0,t!=null&&this.add(t)}M.fromStringWithSourceMap=function(e,n,t){var o=new M,i=e.split(Sr),u=0,l=function(){var h=L(),v=L()||"";return h+v;function L(){return u<i.length?i[u++]:void 0}},s=1,a=0,c=null;return n.eachMapping(function(h){if(c!==null)if(s<h.generatedLine)g(c,l()),s++,a=0;else{var v=i[u]||"",L=v.substr(0,h.generatedColumn-a);i[u]=v.substr(h.generatedColumn-a),a=h.generatedColumn,g(c,L),c=h;return}for(;s<h.generatedLine;)o.add(l()),s++;if(a<h.generatedColumn){var v=i[u]||"";o.add(v.substr(0,h.generatedColumn)),i[u]=v.substr(h.generatedColumn),a=h.generatedColumn}c=h},this),u<i.length&&(c&&g(c,l()),o.add(i.splice(u).join(""))),n.sources.forEach(function(h){var v=n.sourceContentFor(h);v!=null&&(t!=null&&(h=Z.join(t,h)),o.setSourceContent(h,v))}),o;function g(h,v){if(h===null||h.source===void 0)o.add(v);else{var L=t?Z.join(t,h.source):h.source;o.add(new M(h.originalLine,h.originalColumn,L,v,h.name))}}};M.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(n){this.add(n)},this);else if(e[D]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};M.prototype.prepend=function(e){if(Array.isArray(e))for(var n=e.length-1;n>=0;n--)this.prepend(e[n]);else if(e[D]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};M.prototype.walk=function(e){for(var n,t=0,o=this.children.length;t<o;t++)n=this.children[t],n[D]?n.walk(e):n!==""&&e(n,{source:this.source,line:this.line,column:this.column,name:this.name})};M.prototype.join=function(e){var n,t,o=this.children.length;if(o>0){for(n=[],t=0;t<o-1;t++)n.push(this.children[t]),n.push(e);n.push(this.children[t]),this.children=n}return this};M.prototype.replaceRight=function(e,n){var t=this.children[this.children.length-1];return t[D]?t.replaceRight(e,n):typeof t=="string"?this.children[this.children.length-1]=t.replace(e,n):this.children.push("".replace(e,n)),this};M.prototype.setSourceContent=function(e,n){this.sourceContents[Z.toSetString(e)]=n};M.prototype.walkSourceContents=function(e){for(var n=0,t=this.children.length;n<t;n++)this.children[n][D]&&this.children[n].walkSourceContents(e);for(var o=Object.keys(this.sourceContents),n=0,t=o.length;n<t;n++)e(Z.fromSetString(o[n]),this.sourceContents[o[n]])};M.prototype.toString=function(){var e="";return this.walk(function(n){e+=n}),e};M.prototype.toStringWithSourceMap=function(e){var n={code:"",line:1,column:0},t=new mr(e),o=!1,i=null,u=null,l=null,s=null;return this.walk(function(a,c){n.code+=a,c.source!==null&&c.line!==null&&c.column!==null?((i!==c.source||u!==c.line||l!==c.column||s!==c.name)&&t.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:n.line,column:n.column},name:c.name}),i=c.source,u=c.line,l=c.column,s=c.name,o=!0):o&&(t.addMapping({generated:{line:n.line,column:n.column}}),i=null,o=!1);for(var g=0,h=a.length;g<h;g++)a.charCodeAt(g)===yr?(n.line++,n.column=0,g+1===h?(i=null,o=!1):o&&t.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:n.line,column:n.column},name:c.name})):n.column++}),this.walkSourceContents(function(a,c){t.setSourceContent(a,c)}),{code:n.code,map:t}};ze.SourceNode=M});var Ve=w(K=>{d();K.SourceMapGenerator=se().SourceMapGenerator;K.SourceMapConsumer=ke().SourceMapConsumer;K.SourceNode=Qe().SourceNode});var Je=w((cn,We)=>{d();var Cr=Object.prototype.toString,he=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function wr(r){return Cr.call(r).slice(8,-1)==="ArrayBuffer"}function Mr(r,e,n){e>>>=0;var t=r.byteLength-e;if(t<0)throw new RangeError("'offset' is out of bounds");if(n===void 0)n=t;else if(n>>>=0,n>t)throw new RangeError("'length' is out of bounds");return he?Buffer.from(r.slice(e,e+n)):new Buffer(new Uint8Array(r.slice(e,e+n)))}function Lr(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Buffer.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');return he?Buffer.from(r,e):new Buffer(r,e)}function Er(r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return wr(r)?Mr(r,e,n):typeof r=="string"?Lr(r,e):he?Buffer.from(r):new Buffer(r)}We.exports=Er});var Dr=w((T,pe)=>{d();var Ar=Ve().SourceMapConsumer,ge=we("path"),O;try{O=we("fs"),(!O.existsSync||!O.readFileSync)&&(O=null)}catch{}var Or=Je();function Xe(r,e){return r.require(e)}var Ze=!1,Ke=!1,de=!1,z="auto",I={},Q={},br=/^data:application\/json[^,]+base64,/,R=[],N=[];function _e(){return z==="browser"?!0:z==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function Rr(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function Nr(){return typeof process=="object"&&process!==null?process.version:""}function xr(){if(typeof process=="object"&&process!==null)return process.stderr}function Gr(r){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(r)}function Y(r){return function(e){for(var n=0;n<r.length;n++){var t=r[n](e);if(t)return t}return null}}var me=Y(R);R.push(function(r){if(r=r.trim(),/^file:/.test(r)&&(r=r.replace(/file:\/\/\/(\w:)?/,function(t,o){return o?"":"/"})),r in I)return I[r];var e="";try{if(O)O.existsSync(r)&&(e=O.readFileSync(r,"utf8"));else{var n=new XMLHttpRequest;n.open("GET",r,!1),n.send(null),n.readyState===4&&n.status===200&&(e=n.responseText)}}catch{}return I[r]=e});function ve(r,e){if(!r)return e;var n=ge.dirname(r),t=/^\w+:\/\/[^\/]*/.exec(n),o=t?t[0]:"",i=n.slice(o.length);return o&&/^\/\w\:/.test(i)?(o+="/",o+ge.resolve(n.slice(o.length),e).replace(/\\/g,"/")):o+ge.resolve(n.slice(o.length),e)}function Ir(r){var e;if(_e())try{var n=new XMLHttpRequest;n.open("GET",r,!1),n.send(null),e=n.readyState===4?n.responseText:null;var t=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(t)return t}catch{}e=me(r);for(var o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,i,u;u=o.exec(e);)i=u;return i?i[1]:null}var Se=Y(N);N.push(function(r){var e=Ir(r);if(!e)return null;var n;if(br.test(e)){var t=e.slice(e.indexOf(",")+1);n=Or(t,"base64").toString(),e=r}else e=ve(r,e),n=me(e);return n?{url:e,map:n}:null});function ye(r){var e=Q[r.source];if(!e){var n=Se(r.source);n?(e=Q[r.source]={url:n.url,map:new Ar(n.map)},e.map.sourcesContent&&e.map.sources.forEach(function(o,i){var u=e.map.sourcesContent[i];if(u){var l=ve(e.url,o);I[l]=u}})):e=Q[r.source]={url:null,map:null}}if(e&&e.map&&typeof e.map.originalPositionFor=="function"){var t=e.map.originalPositionFor(r);if(t.source!==null)return t.source=ve(e.url,t.source),t}return r}function He(r){var e=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(r);if(e){var n=ye({source:e[2],line:+e[3],column:e[4]-1});return"eval at "+e[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return e=/^eval at ([^(]+) \((.+)\)$/.exec(r),e?"eval at "+e[1]+" ("+He(e[2])+")":r}function Tr(){var r,e="";if(this.isNative())e="native";else{r=this.getScriptNameOrSourceURL(),!r&&this.isEval()&&(e=this.getEvalOrigin(),e+=", "),r?e+=r:e+="<anonymous>";var n=this.getLineNumber();if(n!=null){e+=":"+n;var t=this.getColumnNumber();t&&(e+=":"+t)}}var o="",i=this.getFunctionName(),u=!0,l=this.isConstructor(),s=!(this.isToplevel()||l);if(s){var a=this.getTypeName();a==="[object Object]"&&(a="null");var c=this.getMethodName();i?(a&&i.indexOf(a)!=0&&(o+=a+"."),o+=i,c&&i.indexOf("."+c)!=i.length-c.length-1&&(o+=" [as "+c+"]")):o+=a+"."+(c||"<anonymous>")}else l?o+="new "+(i||"<anonymous>"):i?o+=i:(o+=e,u=!1);return u&&(o+=" ("+e+")"),o}function Ye(r){var e={};return Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(function(n){e[n]=/^(?:is|get)/.test(n)?function(){return r[n].call(r)}:r[n]}),e.toString=Tr,e}function er(r,e){if(e===void 0&&(e={nextPosition:null,curPosition:null}),r.isNative())return e.curPosition=null,r;var n=r.getFileName()||r.getScriptNameOrSourceURL();if(n){var t=r.getLineNumber(),o=r.getColumnNumber()-1,i=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,u=i.test(Nr())?0:62;t===1&&o>u&&!_e()&&!r.isEval()&&(o-=u);var l=ye({source:n,line:t,column:o});e.curPosition=l,r=Ye(r);var s=r.getFunctionName;return r.getFunctionName=function(){return e.nextPosition==null?s():e.nextPosition.name||s()},r.getFileName=function(){return l.source},r.getLineNumber=function(){return l.line},r.getColumnNumber=function(){return l.column+1},r.getScriptNameOrSourceURL=function(){return l.source},r}var a=r.isEval()&&r.getEvalOrigin();return a&&(a=He(a),r=Ye(r),r.getEvalOrigin=function(){return a}),r}function Pr(r,e){de&&(I={},Q={});for(var n=r.name||"Error",t=r.message||"",o=n+": "+t,i={nextPosition:null,curPosition:null},u=[],l=e.length-1;l>=0;l--)u.push(`
2
+ at `+er(e[l],i)),i.nextPosition=i.curPosition;return i.curPosition=i.nextPosition=null,o+u.reverse().join("")}function rr(r){var e=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(r.stack);if(e){var n=e[1],t=+e[2],o=+e[3],i=I[n];if(!i&&O&&O.existsSync(n))try{i=O.readFileSync(n,"utf8")}catch{i=""}if(i){var u=i.split(/(?:\r\n|\r|\n)/)[t-1];if(u)return n+":"+t+`
3
+ `+u+`
4
+ `+new Array(o).join(" ")+"^"}}return null}function Br(r){var e=rr(r),n=xr();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),e&&(console.error(),console.error(e)),console.error(r.stack),Gr(1)}function qr(){var r=process.emit;process.emit=function(e){if(e==="uncaughtException"){var n=arguments[1]&&arguments[1].stack,t=this.listeners(e).length>0;if(n&&!t)return Br(arguments[1])}return r.apply(this,arguments)}}var Fr=R.slice(0),jr=N.slice(0);T.wrapCallSite=er;T.getErrorSource=rr;T.mapSourcePosition=ye;T.retrieveSourceMap=Se;T.install=function(r){if(r=r||{},r.environment&&(z=r.environment,["node","browser","auto"].indexOf(z)===-1))throw new Error("environment "+z+" was unknown. Available options are {auto, browser, node}");if(r.retrieveFile&&(r.overrideRetrieveFile&&(R.length=0),R.unshift(r.retrieveFile)),r.retrieveSourceMap&&(r.overrideRetrieveSourceMap&&(N.length=0),N.unshift(r.retrieveSourceMap)),r.hookRequire&&!_e()){var e=Xe(pe,"module"),n=e.prototype._compile;n.__sourceMapSupport||(e.prototype._compile=function(i,u){return I[u]=i,Q[u]=void 0,n.call(this,i,u)},e.prototype._compile.__sourceMapSupport=!0)}if(de||(de="emptyCacheBetweenOperations"in r?r.emptyCacheBetweenOperations:!1),Ze||(Ze=!0,Error.prepareStackTrace=Pr),!Ke){var t="handleUncaughtExceptions"in r?r.handleUncaughtExceptions:!0;try{var o=Xe(pe,"worker_threads");o.isMainThread===!1&&(t=!1)}catch{}t&&Rr()&&(Ke=!0,qr())}};T.resetRetrieveHandlers=function(){R.length=0,N.length=0,R=Fr.slice(0),N=jr.slice(0),Se=Y(N),me=Y(R)}});export{Ve as a,Je as b,Dr as c};