@absolutejs/absolute 0.20.0-beta.126 → 0.20.0-beta.128

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 (44) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +19 -0
  3. package/changelog.json +36 -0
  4. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  5. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  6. package/dist/angular/index.js +88 -35
  7. package/dist/angular/index.js.map +8 -7
  8. package/dist/angular/server.js +88 -35
  9. package/dist/angular/server.js.map +8 -7
  10. package/dist/build/buildWorker.js +9 -3
  11. package/dist/build.js +342 -263
  12. package/dist/build.js.map +14 -12
  13. package/dist/cli/{compile-smcnjyhb.js → compile-0epdbdcx.js} +1 -1
  14. package/dist/cli/config/server.js +91 -52
  15. package/dist/cli/{index-9q8yn5ax.js → index-54q7pxcx.js} +1 -0
  16. package/dist/cli/{index-fx42yxhy.js → index-79ppyst7.js} +1 -1
  17. package/dist/cli/index.js +4 -4
  18. package/dist/cli/{mobile-50c5tahh.js → mobile-49hyrgrj.js} +1 -1
  19. package/dist/cli/{prerender-vvrj9vjg.js → prerender-yex2zwj3.js} +1 -1
  20. package/dist/cli/{start-pdacfgcc.js → start-m0p0qbep.js} +1 -1
  21. package/dist/index.js +362 -279
  22. package/dist/index.js.map +17 -14
  23. package/dist/islands/index.js +10 -4
  24. package/dist/islands/index.js.map +5 -4
  25. package/dist/mobile/remoteMacAgentEntry.js +1 -1
  26. package/dist/react/index.js +114 -61
  27. package/dist/react/index.js.map +8 -7
  28. package/dist/react/server.js +105 -58
  29. package/dist/react/server.js.map +6 -6
  30. package/dist/src/core/requestContext.d.ts +5 -10
  31. package/dist/src/dev/restartScope.d.ts +1 -0
  32. package/dist/src/utils/index.d.ts +1 -0
  33. package/dist/src/utils/isFile.d.ts +4 -0
  34. package/dist/src/utils/isPrerendering.d.ts +5 -0
  35. package/dist/src/utils/ssrErrorPage.d.ts +3 -0
  36. package/dist/svelte/index.js +114 -61
  37. package/dist/svelte/index.js.map +8 -7
  38. package/dist/svelte/server.js +105 -58
  39. package/dist/svelte/server.js.map +6 -6
  40. package/dist/vue/index.js +114 -61
  41. package/dist/vue/index.js.map +8 -7
  42. package/dist/vue/server.js +105 -58
  43. package/dist/vue/server.js.map +6 -6
  44. package/package.json +2 -2
@@ -2,7 +2,7 @@
2
2
  var lvt=Object.create;var{getPrototypeOf:uvt,defineProperty:BMe,getOwnPropertyNames:_vt}=Object;var fvt=Object.prototype.hasOwnProperty;function pvt(v){return this[v]}var dvt,mvt,gvt=(v,P,M)=>{var z=v!=null&&typeof v==="object";if(z){var ce=P?dvt??=new WeakMap:mvt??=new WeakMap,ve=ce.get(v);if(ve)return ve}M=v!=null?lvt(uvt(v)):{};let qe=P||!v||!v.__esModule?BMe(M,"default",{value:v,enumerable:!0}):M;if(v&&typeof v==="object"||typeof v==="function"){for(let at of _vt(v))if(!fvt.call(qe,at))BMe(qe,at,{get:pvt.bind(v,at),enumerable:!0})}if(z)ce.set(v,qe);return qe};var W0=(v,P)=>()=>(P||v((P={exports:{}}).exports,P),P.exports);var IT=import.meta.require;var ELe=W0(function(K1t){var CLe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");K1t.encode=function(v){if(0<=v&&v<CLe.length)return CLe[v];throw TypeError("Must be between 0 and 63: "+v)};K1t.decode=function(v){var P=65,M=90,z=97,ce=122,ve=48,qe=57,at=43,yt=47,cr=26,vr=52;if(P<=v&&v<=M)return v-P;if(z<=v&&v<=ce)return v-z+cr;if(ve<=v&&v<=qe)return v-ve+vr;if(v==at)return 62;if(v==yt)return 63;return-1}});var d0e=W0(function(rbt){var wLe=ELe(),p0e=5,ALe=1<<p0e,PLe=ALe-1,DLe=ALe;function ebt(v){return v<0?(-v<<1)+1:(v<<1)+0}function tbt(v){var P=(v&1)===1,M=v>>1;return P?-M:M}rbt.encode=function(P){var M="",z,ce=ebt(P);do{if(z=ce&PLe,ce>>>=p0e,ce>0)z|=DLe;M+=wLe.encode(z)}while(ce>0);return M};rbt.decode=function(P,M,z){var ce=P.length,ve=0,qe=0,at,yt;do{if(M>=ce)throw Error("Expected more digits in base 64 VLQ value.");if(yt=wLe.decode(P.charCodeAt(M++)),yt===-1)throw Error("Invalid base64 digit: "+P.charAt(M-1));at=!!(yt&DLe),yt&=PLe,ve=ve+(yt<<qe),qe+=p0e}while(at);z.value=tbt(ve),z.rest=M}});var P7=W0(function(mbt){function sbt(v,P,M){if(P in v)return v[P];else if(arguments.length===3)return M;else throw Error('"'+P+'" is a required argument.')}mbt.getArg=sbt;var ILe=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,abt=/^data:.+\,.+$/;function mB(v){var P=v.match(ILe);if(!P)return null;return{scheme:P[1],auth:P[2],host:P[3],port:P[4],path:P[5]}}mbt.urlParse=mB;function w7(v){var P="";if(v.scheme)P+=v.scheme+":";if(P+="//",v.auth)P+=v.auth+"@";if(v.host)P+=v.host;if(v.port)P+=":"+v.port;if(v.path)P+=v.path;return P}mbt.urlGenerate=w7;function m0e(v){var P=v,M=mB(v);if(M){if(!M.path)return v;P=M.path}var z=mbt.isAbsolute(P),ce=P.split(/\/+/);for(var ve,qe=0,at=ce.length-1;at>=0;at--)if(ve=ce[at],ve===".")ce.splice(at,1);else if(ve==="..")qe++;else if(qe>0)if(ve==="")ce.splice(at+1,qe),qe=0;else ce.splice(at,2),qe--;if(P=ce.join("/"),P==="")P=z?"/":".";if(M)return M.path=P,w7(M);return P}mbt.normalize=m0e;function NLe(v,P){if(v==="")v=".";if(P==="")P=".";var M=mB(P),z=mB(v);if(z)v=z.path||"/";if(M&&!M.scheme){if(z)M.scheme=z.scheme;return w7(M)}if(M||P.match(abt))return P;if(z&&!z.host&&!z.path)return z.host=P,w7(z);var ce=P.charAt(0)==="/"?P:m0e(v.replace(/\/+$/,"")+"/"+P);if(z)return z.path=ce,w7(z);return ce}mbt.join=NLe;mbt.isAbsolute=function(v){return v.charAt(0)==="/"||ILe.test(v)};function obt(v,P){if(v==="")v=".";v=v.replace(/\/$/,"");var M=0;while(P.indexOf(v+"/")!==0){var z=v.lastIndexOf("/");if(z<0)return P;if(v=v.slice(0,z),v.match(/^([^\/]+:\/)?\/*$/))return P;++M}return Array(M+1).join("../")+P.substr(v.length+1)}mbt.relative=obt;var OLe=function(){var v=Object.create(null);return!("__proto__"in v)}();function FLe(v){return v}function cbt(v){if(RLe(v))return"$"+v;return v}mbt.toSetString=OLe?FLe:cbt;function lbt(v){if(RLe(v))return v.slice(1);return v}mbt.fromSetString=OLe?FLe:lbt;function RLe(v){if(!v)return!1;var P=v.length;if(P<9)return!1;if(v.charCodeAt(P-1)!==95||v.charCodeAt(P-2)!==95||v.charCodeAt(P-3)!==111||v.charCodeAt(P-4)!==116||v.charCodeAt(P-5)!==111||v.charCodeAt(P-6)!==114||v.charCodeAt(P-7)!==112||v.charCodeAt(P-8)!==95||v.charCodeAt(P-9)!==95)return!1;for(var M=P-10;M>=0;M--)if(v.charCodeAt(M)!==36)return!1;return!0}function ubt(v,P,M){var z=A7(v.source,P.source);if(z!==0)return z;if(z=v.originalLine-P.originalLine,z!==0)return z;if(z=v.originalColumn-P.originalColumn,z!==0||M)return z;if(z=v.generatedColumn-P.generatedColumn,z!==0)return z;if(z=v.generatedLine-P.generatedLine,z!==0)return z;return A7(v.name,P.name)}mbt.compareByOriginalPositions=ubt;function _bt(v,P,M){var z=v.generatedLine-P.generatedLine;if(z!==0)return z;if(z=v.generatedColumn-P.generatedColumn,z!==0||M)return z;if(z=A7(v.source,P.source),z!==0)return z;if(z=v.originalLine-P.originalLine,z!==0)return z;if(z=v.originalColumn-P.originalColumn,z!==0)return z;return A7(v.name,P.name)}mbt.compareByGeneratedPositionsDeflated=_bt;function A7(v,P){if(v===P)return 0;if(v===null)return 1;if(P===null)return-1;if(v>P)return 1;return-1}function fbt(v,P){var M=v.generatedLine-P.generatedLine;if(M!==0)return M;if(M=v.generatedColumn-P.generatedColumn,M!==0)return M;if(M=A7(v.source,P.source),M!==0)return M;if(M=v.originalLine-P.originalLine,M!==0)return M;if(M=v.originalColumn-P.originalColumn,M!==0)return M;return A7(v.name,P.name)}mbt.compareByGeneratedPositionsInflated=fbt;function pbt(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}mbt.parseSourceMapInput=pbt;function dbt(v,P,M){if(P=P||"",v){if(v[v.length-1]!=="/"&&P[0]!=="/")v+="/";P=v+P}if(M){var z=mB(M);if(!z)throw Error("sourceMapURL could not be parsed");if(z.path){var ce=z.path.lastIndexOf("/");if(ce>=0)z.path=z.path.substring(0,ce+1)}P=NLe(w7(z),P)}return m0e(P)}mbt.computeSourceURL=dbt});var y0e=W0(function(Dbt){var g0e=P7(),h0e=Object.prototype.hasOwnProperty,YN=typeof Map<"u";function pE(){this._array=[],this._set=YN?new Map:Object.create(null)}pE.fromArray=function(P,M){var z=new pE;for(var ce=0,ve=P.length;ce<ve;ce++)z.add(P[ce],M);return z};pE.prototype.size=function(){return YN?this._set.size:Object.getOwnPropertyNames(this._set).length};pE.prototype.add=function(P,M){var z=YN?P:g0e.toSetString(P),ce=YN?this.has(P):h0e.call(this._set,z),ve=this._array.length;if(!ce||M)this._array.push(P);if(!ce)if(YN)this._set.set(P,ve);else this._set[z]=ve};pE.prototype.has=function(P){if(YN)return this._set.has(P);else{var M=g0e.toSetString(P);return h0e.call(this._set,M)}};pE.prototype.indexOf=function(P){if(YN){var M=this._set.get(P);if(M>=0)return M}else{var z=g0e.toSetString(P);if(h0e.call(this._set,z))return this._set[z]}throw Error('"'+P+'" is not in the set.')};pE.prototype.at=function(P){if(P>=0&&P<this._array.length)return this._array[P];throw Error("No element indexed by "+P)};pE.prototype.toArray=function(){return this._array.slice()};Dbt.ArraySet=pE});var LLe=W0(function(Obt){var MLe=P7();function Nbt(v,P){var M=v.generatedLine,z=P.generatedLine,ce=v.generatedColumn,ve=P.generatedColumn;return z>M||z==M&&ve>=ce||MLe.compareByGeneratedPositionsInflated(v,P)<=0}function uY(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}uY.prototype.unsortedForEach=function(P,M){this._array.forEach(P,M)};uY.prototype.add=function(P){if(Nbt(this._last,P))this._last=P,this._array.push(P);else this._sorted=!1,this._array.push(P)};uY.prototype.toArray=function(){if(!this._sorted)this._array.sort(MLe.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};Obt.MappingList=uY});var v0e=W0(function(Mbt){var gB=d0e(),Kd=P7(),_Y=y0e().ArraySet,Rbt=LLe().MappingList;function tS(v){if(!v)v={};this._file=Kd.getArg(v,"file",null),this._sourceRoot=Kd.getArg(v,"sourceRoot",null),this._skipValidation=Kd.getArg(v,"skipValidation",!1),this._sources=new _Y,this._names=new _Y,this._mappings=new Rbt,this._sourcesContents=null}tS.prototype._version=3;tS.fromSourceMap=function(P){var M=P.sourceRoot,z=new tS({file:P.file,sourceRoot:M});return P.eachMapping(function(ce){var ve={generated:{line:ce.generatedLine,column:ce.generatedColumn}};if(ce.source!=null){if(ve.source=ce.source,M!=null)ve.source=Kd.relative(M,ve.source);if(ve.original={line:ce.originalLine,column:ce.originalColumn},ce.name!=null)ve.name=ce.name}z.addMapping(ve)}),P.sources.forEach(function(ce){var ve=ce;if(M!==null)ve=Kd.relative(M,ce);if(!z._sources.has(ve))z._sources.add(ve);var qe=P.sourceContentFor(ce);if(qe!=null)z.setSourceContent(ce,qe)}),z};tS.prototype.addMapping=function(P){var M=Kd.getArg(P,"generated"),z=Kd.getArg(P,"original",null),ce=Kd.getArg(P,"source",null),ve=Kd.getArg(P,"name",null);if(!this._skipValidation)this._validateMapping(M,z,ce,ve);if(ce!=null){if(ce=String(ce),!this._sources.has(ce))this._sources.add(ce)}if(ve!=null){if(ve=String(ve),!this._names.has(ve))this._names.add(ve)}this._mappings.add({generatedLine:M.line,generatedColumn:M.column,originalLine:z!=null&&z.line,originalColumn:z!=null&&z.column,source:ce,name:ve})};tS.prototype.setSourceContent=function(P,M){var z=P;if(this._sourceRoot!=null)z=Kd.relative(this._sourceRoot,z);if(M!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[Kd.toSetString(z)]=M}else if(this._sourcesContents){if(delete this._sourcesContents[Kd.toSetString(z)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};tS.prototype.applySourceMap=function(P,M,z){var ce=M;if(M==null){if(P.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);ce=P.file}var ve=this._sourceRoot;if(ve!=null)ce=Kd.relative(ve,ce);var qe=new _Y,at=new _Y;this._mappings.unsortedForEach(function(yt){if(yt.source===ce&&yt.originalLine!=null){var cr=P.originalPositionFor({line:yt.originalLine,column:yt.originalColumn});if(cr.source!=null){if(yt.source=cr.source,z!=null)yt.source=Kd.join(z,yt.source);if(ve!=null)yt.source=Kd.relative(ve,yt.source);if(yt.originalLine=cr.line,yt.originalColumn=cr.column,cr.name!=null)yt.name=cr.name}}var vr=yt.source;if(vr!=null&&!qe.has(vr))qe.add(vr);var Dr=yt.name;if(Dr!=null&&!at.has(Dr))at.add(Dr)},this),this._sources=qe,this._names=at,P.sources.forEach(function(yt){var cr=P.sourceContentFor(yt);if(cr!=null){if(z!=null)yt=Kd.join(z,yt);if(ve!=null)yt=Kd.relative(ve,yt);this.setSourceContent(yt,cr)}},this)};tS.prototype._validateMapping=function(P,M,z,ce){if(M&&typeof M.line!=="number"&&typeof M.column!=="number")throw 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(P&&"line"in P&&"column"in P&&P.line>0&&P.column>=0&&!M&&!z&&!ce)return;else if(P&&"line"in P&&"column"in P&&M&&"line"in M&&"column"in M&&P.line>0&&P.column>=0&&M.line>0&&M.column>=0&&z)return;else throw Error("Invalid mapping: "+JSON.stringify({generated:P,source:z,original:M,name:ce}))};tS.prototype._serializeMappings=function(){var P=0,M=1,z=0,ce=0,ve=0,qe=0,at="",yt,cr,vr,Dr,xe=this._mappings.toArray();for(var Hn=0,Nt=xe.length;Hn<Nt;Hn++){if(cr=xe[Hn],yt="",cr.generatedLine!==M){P=0;while(cr.generatedLine!==M)yt+=";",M++}else if(Hn>0){if(!Kd.compareByGeneratedPositionsInflated(cr,xe[Hn-1]))continue;yt+=","}if(yt+=gB.encode(cr.generatedColumn-P),P=cr.generatedColumn,cr.source!=null){if(Dr=this._sources.indexOf(cr.source),yt+=gB.encode(Dr-qe),qe=Dr,yt+=gB.encode(cr.originalLine-1-ce),ce=cr.originalLine-1,yt+=gB.encode(cr.originalColumn-z),z=cr.originalColumn,cr.name!=null)vr=this._names.indexOf(cr.name),yt+=gB.encode(vr-ve),ve=vr}at+=yt}return at};tS.prototype._generateSourcesContent=function(P,M){return P.map(function(z){if(!this._sourcesContents)return null;if(M!=null)z=Kd.relative(M,z);var ce=Kd.toSetString(z);return Object.prototype.hasOwnProperty.call(this._sourcesContents,ce)?this._sourcesContents[ce]:null},this)};tS.prototype.toJSON=function(){var P={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)P.file=this._file;if(this._sourceRoot!=null)P.sourceRoot=this._sourceRoot;if(this._sourcesContents)P.sourcesContent=this._generateSourcesContent(P.sources,P.sourceRoot);return P};tS.prototype.toString=function(){return JSON.stringify(this.toJSON())};Mbt.SourceMapGenerator=tS});var BLe=W0(function(jbt){jbt.GREATEST_LOWER_BOUND=1;jbt.LEAST_UPPER_BOUND=2;function b0e(v,P,M,z,ce,ve){var qe=Math.floor((P-v)/2)+v,at=ce(M,z[qe],!0);if(at===0)return qe;else if(at>0){if(P-qe>1)return b0e(qe,P,M,z,ce,ve);if(ve==jbt.LEAST_UPPER_BOUND)return P<z.length?P:-1;else return qe}else{if(qe-v>1)return b0e(v,qe,M,z,ce,ve);if(ve==jbt.LEAST_UPPER_BOUND)return qe;else return v<0?-1:v}}jbt.search=function(P,M,z,ce){if(M.length===0)return-1;var ve=b0e(-1,M.length,P,M,z,ce||jbt.GREATEST_LOWER_BOUND);if(ve<0)return-1;while(ve-1>=0){if(z(M[ve],M[ve-1],!0)!==0)break;--ve}return ve}});var JLe=W0(function(Ubt){function T0e(v,P,M){var z=v[P];v[P]=v[M],v[M]=z}function Jbt(v,P){return Math.round(v+Math.random()*(P-v))}function x0e(v,P,M,z){if(M<z){var ce=Jbt(M,z),ve=M-1;T0e(v,ce,z);var qe=v[z];for(var at=M;at<z;at++)if(P(v[at],qe)<=0)ve+=1,T0e(v,ve,at);T0e(v,ve+1,at);var yt=ve+1;x0e(v,P,M,yt-1),x0e(v,P,yt+1,z)}}Ubt.quickSort=function(v,P){x0e(v,P,0,v.length-1)}});var zLe=W0(function(Vbt){var eo=P7(),k0e=BLe(),D7=y0e().ArraySet,Wbt=d0e(),hB=JLe().quickSort;function Gf(v,P){var M=v;if(typeof v==="string")M=eo.parseSourceMapInput(v);return M.sections!=null?new OT(M,P):new eh(M,P)}Gf.fromSourceMap=function(v,P){return eh.fromSourceMap(v,P)};Gf.prototype._version=3;Gf.prototype.__generatedMappings=null;Object.defineProperty(Gf.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});Gf.prototype.__originalMappings=null;Object.defineProperty(Gf.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});Gf.prototype._charIsMappingSeparator=function(P,M){var z=P.charAt(M);return z===";"||z===","};Gf.prototype._parseMappings=function(P,M){throw Error("Subclasses must implement _parseMappings")};Gf.GENERATED_ORDER=1;Gf.ORIGINAL_ORDER=2;Gf.GREATEST_LOWER_BOUND=1;Gf.LEAST_UPPER_BOUND=2;Gf.prototype.eachMapping=function(P,M,z){var ce=M||null,ve=z||Gf.GENERATED_ORDER,qe;switch(ve){case Gf.GENERATED_ORDER:qe=this._generatedMappings;break;case Gf.ORIGINAL_ORDER:qe=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var at=this.sourceRoot;qe.map(function(yt){var cr=yt.source===null?null:this._sources.at(yt.source);return cr=eo.computeSourceURL(at,cr,this._sourceMapURL),{source:cr,generatedLine:yt.generatedLine,generatedColumn:yt.generatedColumn,originalLine:yt.originalLine,originalColumn:yt.originalColumn,name:yt.name===null?null:this._names.at(yt.name)}},this).forEach(P,ce)};Gf.prototype.allGeneratedPositionsFor=function(P){var M=eo.getArg(P,"line"),z={source:eo.getArg(P,"source"),originalLine:M,originalColumn:eo.getArg(P,"column",0)};if(z.source=this._findSourceIndex(z.source),z.source<0)return[];var ce=[],ve=this._findMapping(z,this._originalMappings,"originalLine","originalColumn",eo.compareByOriginalPositions,k0e.LEAST_UPPER_BOUND);if(ve>=0){var qe=this._originalMappings[ve];if(P.column===void 0){var at=qe.originalLine;while(qe&&qe.originalLine===at)ce.push({line:eo.getArg(qe,"generatedLine",null),column:eo.getArg(qe,"generatedColumn",null),lastColumn:eo.getArg(qe,"lastGeneratedColumn",null)}),qe=this._originalMappings[++ve]}else{var yt=qe.originalColumn;while(qe&&qe.originalLine===M&&qe.originalColumn==yt)ce.push({line:eo.getArg(qe,"generatedLine",null),column:eo.getArg(qe,"generatedColumn",null),lastColumn:eo.getArg(qe,"lastGeneratedColumn",null)}),qe=this._originalMappings[++ve]}}return ce};Vbt.SourceMapConsumer=Gf;function eh(v,P){var M=v;if(typeof v==="string")M=eo.parseSourceMapInput(v);var z=eo.getArg(M,"version"),ce=eo.getArg(M,"sources"),ve=eo.getArg(M,"names",[]),qe=eo.getArg(M,"sourceRoot",null),at=eo.getArg(M,"sourcesContent",null),yt=eo.getArg(M,"mappings"),cr=eo.getArg(M,"file",null);if(z!=this._version)throw Error("Unsupported version: "+z);if(qe)qe=eo.normalize(qe);ce=ce.map(String).map(eo.normalize).map(function(vr){return qe&&eo.isAbsolute(qe)&&eo.isAbsolute(vr)?eo.relative(qe,vr):vr}),this._names=D7.fromArray(ve.map(String),!0),this._sources=D7.fromArray(ce,!0),this._absoluteSources=this._sources.toArray().map(function(vr){return eo.computeSourceURL(qe,vr,P)}),this.sourceRoot=qe,this.sourcesContent=at,this._mappings=yt,this._sourceMapURL=P,this.file=cr}eh.prototype=Object.create(Gf.prototype);eh.prototype.consumer=Gf;eh.prototype._findSourceIndex=function(v){var P=v;if(this.sourceRoot!=null)P=eo.relative(this.sourceRoot,P);if(this._sources.has(P))return this._sources.indexOf(P);var M;for(M=0;M<this._absoluteSources.length;++M)if(this._absoluteSources[M]==v)return M;return-1};eh.fromSourceMap=function(P,M){var z=Object.create(eh.prototype),ce=z._names=D7.fromArray(P._names.toArray(),!0),ve=z._sources=D7.fromArray(P._sources.toArray(),!0);z.sourceRoot=P._sourceRoot,z.sourcesContent=P._generateSourcesContent(z._sources.toArray(),z.sourceRoot),z.file=P._file,z._sourceMapURL=M,z._absoluteSources=z._sources.toArray().map(function(Hn){return eo.computeSourceURL(z.sourceRoot,Hn,M)});var qe=P._mappings.toArray().slice(),at=z.__generatedMappings=[],yt=z.__originalMappings=[];for(var cr=0,vr=qe.length;cr<vr;cr++){var Dr=qe[cr],xe=new ULe;if(xe.generatedLine=Dr.generatedLine,xe.generatedColumn=Dr.generatedColumn,Dr.source){if(xe.source=ve.indexOf(Dr.source),xe.originalLine=Dr.originalLine,xe.originalColumn=Dr.originalColumn,Dr.name)xe.name=ce.indexOf(Dr.name);yt.push(xe)}at.push(xe)}return hB(z.__originalMappings,eo.compareByOriginalPositions),z};eh.prototype._version=3;Object.defineProperty(eh.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function ULe(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}eh.prototype._parseMappings=function(P,M){var z=1,ce=0,ve=0,qe=0,at=0,yt=0,cr=P.length,vr=0,Dr={},xe={},Hn=[],Nt=[],Ot,cs,Di,Us,Ha;while(vr<cr)if(P.charAt(vr)===";")z++,vr++,ce=0;else if(P.charAt(vr)===",")vr++;else{Ot=new ULe,Ot.generatedLine=z;for(Us=vr;Us<cr;Us++)if(this._charIsMappingSeparator(P,Us))break;if(cs=P.slice(vr,Us),Di=Dr[cs],Di)vr+=cs.length;else{Di=[];while(vr<Us)Wbt.decode(P,vr,xe),Ha=xe.value,vr=xe.rest,Di.push(Ha);if(Di.length===2)throw Error("Found a source, but no line and column");if(Di.length===3)throw Error("Found a source and line, but no column");Dr[cs]=Di}if(Ot.generatedColumn=ce+Di[0],ce=Ot.generatedColumn,Di.length>1){if(Ot.source=at+Di[1],at+=Di[1],Ot.originalLine=ve+Di[2],ve=Ot.originalLine,Ot.originalLine+=1,Ot.originalColumn=qe+Di[3],qe=Ot.originalColumn,Di.length>4)Ot.name=yt+Di[4],yt+=Di[4]}if(Nt.push(Ot),typeof Ot.originalLine==="number")Hn.push(Ot)}hB(Nt,eo.compareByGeneratedPositionsDeflated),this.__generatedMappings=Nt,hB(Hn,eo.compareByOriginalPositions),this.__originalMappings=Hn};eh.prototype._findMapping=function(P,M,z,ce,ve,qe){if(P[z]<=0)throw TypeError("Line must be greater than or equal to 1, got "+P[z]);if(P[ce]<0)throw TypeError("Column must be greater than or equal to 0, got "+P[ce]);return k0e.search(P,M,ve,qe)};eh.prototype.computeColumnSpans=function(){for(var P=0;P<this._generatedMappings.length;++P){var M=this._generatedMappings[P];if(P+1<this._generatedMappings.length){var z=this._generatedMappings[P+1];if(M.generatedLine===z.generatedLine){M.lastGeneratedColumn=z.generatedColumn-1;continue}}M.lastGeneratedColumn=1/0}};eh.prototype.originalPositionFor=function(P){var M={generatedLine:eo.getArg(P,"line"),generatedColumn:eo.getArg(P,"column")},z=this._findMapping(M,this._generatedMappings,"generatedLine","generatedColumn",eo.compareByGeneratedPositionsDeflated,eo.getArg(P,"bias",Gf.GREATEST_LOWER_BOUND));if(z>=0){var ce=this._generatedMappings[z];if(ce.generatedLine===M.generatedLine){var ve=eo.getArg(ce,"source",null);if(ve!==null)ve=this._sources.at(ve),ve=eo.computeSourceURL(this.sourceRoot,ve,this._sourceMapURL);var qe=eo.getArg(ce,"name",null);if(qe!==null)qe=this._names.at(qe);return{source:ve,line:eo.getArg(ce,"originalLine",null),column:eo.getArg(ce,"originalColumn",null),name:qe}}}return{source:null,line:null,column:null,name:null}};eh.prototype.hasContentsOfAllSources=function(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(P){return P==null})};eh.prototype.sourceContentFor=function(P,M){if(!this.sourcesContent)return null;var z=this._findSourceIndex(P);if(z>=0)return this.sourcesContent[z];var ce=P;if(this.sourceRoot!=null)ce=eo.relative(this.sourceRoot,ce);var ve;if(this.sourceRoot!=null&&(ve=eo.urlParse(this.sourceRoot))){var qe=ce.replace(/^file:\/\//,"");if(ve.scheme=="file"&&this._sources.has(qe))return this.sourcesContent[this._sources.indexOf(qe)];if((!ve.path||ve.path=="/")&&this._sources.has("/"+ce))return this.sourcesContent[this._sources.indexOf("/"+ce)]}if(M)return null;else throw Error('"'+ce+'" is not in the SourceMap.')};eh.prototype.generatedPositionFor=function(P){var M=eo.getArg(P,"source");if(M=this._findSourceIndex(M),M<0)return{line:null,column:null,lastColumn:null};var z={source:M,originalLine:eo.getArg(P,"line"),originalColumn:eo.getArg(P,"column")},ce=this._findMapping(z,this._originalMappings,"originalLine","originalColumn",eo.compareByOriginalPositions,eo.getArg(P,"bias",Gf.GREATEST_LOWER_BOUND));if(ce>=0){var ve=this._originalMappings[ce];if(ve.source===z.source)return{line:eo.getArg(ve,"generatedLine",null),column:eo.getArg(ve,"generatedColumn",null),lastColumn:eo.getArg(ve,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Vbt.BasicSourceMapConsumer=eh;function OT(v,P){var M=v;if(typeof v==="string")M=eo.parseSourceMapInput(v);var z=eo.getArg(M,"version"),ce=eo.getArg(M,"sections");if(z!=this._version)throw Error("Unsupported version: "+z);this._sources=new D7,this._names=new D7;var ve={line:-1,column:0};this._sections=ce.map(function(qe){if(qe.url)throw Error("Support for url field in sections not implemented.");var at=eo.getArg(qe,"offset"),yt=eo.getArg(at,"line"),cr=eo.getArg(at,"column");if(yt<ve.line||yt===ve.line&&cr<ve.column)throw Error("Section offsets must be ordered and non-overlapping.");return ve=at,{generatedOffset:{generatedLine:yt+1,generatedColumn:cr+1},consumer:new Gf(eo.getArg(qe,"map"),P)}})}OT.prototype=Object.create(Gf.prototype);OT.prototype.constructor=Gf;OT.prototype._version=3;Object.defineProperty(OT.prototype,"sources",{get:function(){var v=[];for(var P=0;P<this._sections.length;P++)for(var M=0;M<this._sections[P].consumer.sources.length;M++)v.push(this._sections[P].consumer.sources[M]);return v}});OT.prototype.originalPositionFor=function(P){var M={generatedLine:eo.getArg(P,"line"),generatedColumn:eo.getArg(P,"column")},z=k0e.search(M,this._sections,function(ve,qe){var at=ve.generatedLine-qe.generatedOffset.generatedLine;if(at)return at;return ve.generatedColumn-qe.generatedOffset.generatedColumn}),ce=this._sections[z];if(!ce)return{source:null,line:null,column:null,name:null};return ce.consumer.originalPositionFor({line:M.generatedLine-(ce.generatedOffset.generatedLine-1),column:M.generatedColumn-(ce.generatedOffset.generatedLine===M.generatedLine?ce.generatedOffset.generatedColumn-1:0),bias:P.bias})};OT.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(P){return P.consumer.hasContentsOfAllSources()})};OT.prototype.sourceContentFor=function(P,M){for(var z=0;z<this._sections.length;z++){var ce=this._sections[z],ve=ce.consumer.sourceContentFor(P,!0);if(ve)return ve}if(M)return null;else throw Error('"'+P+'" is not in the SourceMap.')};OT.prototype.generatedPositionFor=function(P){for(var M=0;M<this._sections.length;M++){var z=this._sections[M];if(z.consumer._findSourceIndex(eo.getArg(P,"source"))===-1)continue;var ce=z.consumer.generatedPositionFor(P);if(ce){var ve={line:ce.line+(z.generatedOffset.generatedLine-1),column:ce.column+(z.generatedOffset.generatedLine===ce.line?z.generatedOffset.generatedColumn-1:0)};return ve}}return{line:null,column:null}};OT.prototype._parseMappings=function(P,M){this.__generatedMappings=[],this.__originalMappings=[];for(var z=0;z<this._sections.length;z++){var ce=this._sections[z],ve=ce.consumer._generatedMappings;for(var qe=0;qe<ve.length;qe++){var at=ve[qe],yt=ce.consumer._sources.at(at.source);yt=eo.computeSourceURL(ce.consumer.sourceRoot,yt,this._sourceMapURL),this._sources.add(yt),yt=this._sources.indexOf(yt);var cr=null;if(at.name)cr=ce.consumer._names.at(at.name),this._names.add(cr),cr=this._names.indexOf(cr);var vr={source:yt,generatedLine:at.generatedLine+(ce.generatedOffset.generatedLine-1),generatedColumn:at.generatedColumn+(ce.generatedOffset.generatedLine===at.generatedLine?ce.generatedOffset.generatedColumn-1:0),originalLine:at.originalLine,originalColumn:at.originalColumn,name:cr};if(this.__generatedMappings.push(vr),typeof vr.originalLine==="number")this.__originalMappings.push(vr)}}hB(this.__generatedMappings,eo.compareByGeneratedPositionsDeflated),hB(this.__originalMappings,eo.compareByOriginalPositions)};Vbt.IndexedSourceMapConsumer=OT});var WLe=W0(function(Kbt){var Gbt=v0e().SourceMapGenerator,fY=P7(),Xbt=/(\r?\n)/,Qbt=10,I7="$$$isSourceNode$$$";function S1(v,P,M,z,ce){if(this.children=[],this.sourceContents={},this.line=v==null?null:v,this.column=P==null?null:P,this.source=M==null?null:M,this.name=ce==null?null:ce,this[I7]=!0,z!=null)this.add(z)}S1.fromStringWithSourceMap=function(P,M,z){var ce=new S1,ve=P.split(Xbt),qe=0,at=function(){var xe=Nt(),Hn=Nt()||"";return xe+Hn;function Nt(){return qe<ve.length?ve[qe++]:void 0}},yt=1,cr=0,vr=null;if(M.eachMapping(function(xe){if(vr!==null)if(yt<xe.generatedLine)Dr(vr,at()),yt++,cr=0;else{var Hn=ve[qe]||"",Nt=Hn.substr(0,xe.generatedColumn-cr);ve[qe]=Hn.substr(xe.generatedColumn-cr),cr=xe.generatedColumn,Dr(vr,Nt),vr=xe;return}while(yt<xe.generatedLine)ce.add(at()),yt++;if(cr<xe.generatedColumn){var Hn=ve[qe]||"";ce.add(Hn.substr(0,xe.generatedColumn)),ve[qe]=Hn.substr(xe.generatedColumn),cr=xe.generatedColumn}vr=xe},this),qe<ve.length){if(vr)Dr(vr,at());ce.add(ve.splice(qe).join(""))}return M.sources.forEach(function(xe){var Hn=M.sourceContentFor(xe);if(Hn!=null){if(z!=null)xe=fY.join(z,xe);ce.setSourceContent(xe,Hn)}}),ce;function Dr(xe,Hn){if(xe===null||xe.source===void 0)ce.add(Hn);else{var Nt=z?fY.join(z,xe.source):xe.source;ce.add(new S1(xe.originalLine,xe.originalColumn,Nt,Hn,xe.name))}}};S1.prototype.add=function(P){if(Array.isArray(P))P.forEach(function(M){this.add(M)},this);else if(P[I7]||typeof P==="string"){if(P)this.children.push(P)}else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+P);return this};S1.prototype.prepend=function(P){if(Array.isArray(P))for(var M=P.length-1;M>=0;M--)this.prepend(P[M]);else if(P[I7]||typeof P==="string")this.children.unshift(P);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+P);return this};S1.prototype.walk=function(P){var M;for(var z=0,ce=this.children.length;z<ce;z++)if(M=this.children[z],M[I7])M.walk(P);else if(M!=="")P(M,{source:this.source,line:this.line,column:this.column,name:this.name})};S1.prototype.join=function(P){var M,z,ce=this.children.length;if(ce>0){M=[];for(z=0;z<ce-1;z++)M.push(this.children[z]),M.push(P);M.push(this.children[z]),this.children=M}return this};S1.prototype.replaceRight=function(P,M){var z=this.children[this.children.length-1];if(z[I7])z.replaceRight(P,M);else if(typeof z==="string")this.children[this.children.length-1]=z.replace(P,M);else this.children.push("".replace(P,M));return this};S1.prototype.setSourceContent=function(P,M){this.sourceContents[fY.toSetString(P)]=M};S1.prototype.walkSourceContents=function(P){for(var M=0,z=this.children.length;M<z;M++)if(this.children[M][I7])this.children[M].walkSourceContents(P);var ce=Object.keys(this.sourceContents);for(var M=0,z=ce.length;M<z;M++)P(fY.fromSetString(ce[M]),this.sourceContents[ce[M]])};S1.prototype.toString=function(){var P="";return this.walk(function(M){P+=M}),P};S1.prototype.toStringWithSourceMap=function(P){var M={code:"",line:1,column:0},z=new Gbt(P),ce=!1,ve=null,qe=null,at=null,yt=null;return this.walk(function(cr,vr){if(M.code+=cr,vr.source!==null&&vr.line!==null&&vr.column!==null){if(ve!==vr.source||qe!==vr.line||at!==vr.column||yt!==vr.name)z.addMapping({source:vr.source,original:{line:vr.line,column:vr.column},generated:{line:M.line,column:M.column},name:vr.name});ve=vr.source,qe=vr.line,at=vr.column,yt=vr.name,ce=!0}else if(ce)z.addMapping({generated:{line:M.line,column:M.column}}),ve=null,ce=!1;for(var Dr=0,xe=cr.length;Dr<xe;Dr++)if(cr.charCodeAt(Dr)===Qbt){if(M.line++,M.column=0,Dr+1===xe)ve=null,ce=!1;else if(ce)z.addMapping({source:vr.source,original:{line:vr.line,column:vr.column},generated:{line:M.line,column:M.column},name:vr.name})}else M.column++}),this.walkSourceContents(function(cr,vr){z.setSourceContent(cr,vr)}),{code:M.code,map:z}};Kbt.SourceNode=S1});var VLe=W0(function(Zbt){Zbt.SourceMapGenerator=v0e().SourceMapGenerator;Zbt.SourceMapConsumer=zLe().SourceMapConsumer;Zbt.SourceNode=WLe().SourceNode});var $Le=W0(function(QEt,qLe){var nSt=Object.prototype.toString,C0e=typeof Buffer<"u"&&typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function iSt(v){return nSt.call(v).slice(8,-1)==="ArrayBuffer"}function sSt(v,P,M){P>>>=0;var z=v.byteLength-P;if(z<0)throw RangeError("'offset' is out of bounds");if(M===void 0)M=z;else if(M>>>=0,M>z)throw RangeError("'length' is out of bounds");return C0e?Buffer.from(v.slice(P,P+M)):new Buffer(new Uint8Array(v.slice(P,P+M)))}function aSt(v,P){if(typeof P!=="string"||P==="")P="utf8";if(!Buffer.isEncoding(P))throw TypeError('"encoding" must be a valid string encoding');return C0e?Buffer.from(v,P):new Buffer(v,P)}function oSt(v,P,M){if(typeof v==="number")throw TypeError('"value" argument must not be a number');if(iSt(v))return sSt(v,P,M);if(typeof v==="string")return aSt(v,P);return C0e?Buffer.from(v):new Buffer(v)}qLe.exports=oSt});var e9e=W0(function(TSt,P0e){var cSt=VLe().SourceMapConsumer,E0e=IT("path"),M2;try{if(M2=IT("fs"),!M2.existsSync||!M2.readFileSync)M2=null}catch(v){}var lSt=$Le();function HLe(v,P){return v.require(P)}var GLe=!1,XLe=!1,w0e=!1,yB="auto",ZN={},vB={},uSt=/^data:application\/json[^,]+base64,/,eP=[],tP=[];function D0e(){if(yB==="browser")return!0;if(yB==="node")return!1;return typeof window<"u"&&typeof XMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function _St(){return typeof process==="object"&&process!==null&&typeof process.on==="function"}function fSt(){if(typeof process==="object"&&process!==null)return process.version;else return""}function pSt(){if(typeof process==="object"&&process!==null)return process.stderr}function dSt(v){if(typeof process==="object"&&process!==null&&typeof process.exit==="function")return process.exit(v)}function pY(v){return function(P){for(var M=0;M<v.length;M++){var z=v[M](P);if(z)return z}return null}}var I0e=pY(eP);eP.push(function(v){if(v=v.trim(),/^file:/.test(v))v=v.replace(/file:\/\/\/(\w:)?/,function(z,ce){return ce?"":"/"});if(v in ZN)return ZN[v];var P="";try{if(!M2){var M=new XMLHttpRequest;if(M.open("GET",v,!1),M.send(null),M.readyState===4&&M.status===200)P=M.responseText}else if(M2.existsSync(v))P=M2.readFileSync(v,"utf8")}catch(z){}return ZN[v]=P});function A0e(v,P){if(!v)return P;var M=E0e.dirname(v),z=/^\w+:\/\/[^\/]*/.exec(M),ce=z?z[0]:"",ve=M.slice(ce.length);if(ce&&/^\/\w\:/.test(ve))return ce+="/",ce+E0e.resolve(M.slice(ce.length),P).replace(/\\/g,"/");return ce+E0e.resolve(M.slice(ce.length),P)}function mSt(v){var P;if(D0e())try{var M=new XMLHttpRequest;M.open("GET",v,!1),M.send(null),P=M.readyState===4?M.responseText:null;var z=M.getResponseHeader("SourceMap")||M.getResponseHeader("X-SourceMap");if(z)return z}catch(at){}P=I0e(v);var ce=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,ve,qe;while(qe=ce.exec(P))ve=qe;if(!ve)return null;return ve[1]}var N0e=pY(tP);tP.push(function(v){var P=mSt(v);if(!P)return null;var M;if(uSt.test(P)){var z=P.slice(P.indexOf(",")+1);M=lSt(z,"base64").toString(),P=v}else P=A0e(v,P),M=I0e(P);if(!M)return null;return{url:P,map:M}});function O0e(v){var P=vB[v.source];if(!P){var M=N0e(v.source);if(M){if(P=vB[v.source]={url:M.url,map:new cSt(M.map)},P.map.sourcesContent)P.map.sources.forEach(function(ce,ve){var qe=P.map.sourcesContent[ve];if(qe){var at=A0e(P.url,ce);ZN[at]=qe}})}else P=vB[v.source]={url:null,map:null}}if(P&&P.map&&typeof P.map.originalPositionFor==="function"){var z=P.map.originalPositionFor(v);if(z.source!==null)return z.source=A0e(P.url,z.source),z}return v}function KLe(v){var P=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(v);if(P){var M=O0e({source:P[2],line:+P[3],column:P[4]-1});return"eval at "+P[1]+" ("+M.source+":"+M.line+":"+(M.column+1)+")"}if(P=/^eval at ([^(]+) \((.+)\)$/.exec(v),P)return"eval at "+P[1]+" ("+KLe(P[2])+")";return v}function gSt(){var v,P="";if(this.isNative())P="native";else{if(v=this.getScriptNameOrSourceURL(),!v&&this.isEval())P=this.getEvalOrigin(),P+=", ";if(v)P+=v;else P+="<anonymous>";var M=this.getLineNumber();if(M!=null){P+=":"+M;var z=this.getColumnNumber();if(z)P+=":"+z}}var ce="",ve=this.getFunctionName(),qe=!0,at=this.isConstructor(),yt=!(this.isToplevel()||at);if(yt){var cr=this.getTypeName();if(cr==="[object Object]")cr="null";var vr=this.getMethodName();if(ve){if(cr&&ve.indexOf(cr)!=0)ce+=cr+".";if(ce+=ve,vr&&ve.indexOf("."+vr)!=ve.length-vr.length-1)ce+=" [as "+vr+"]"}else ce+=cr+"."+(vr||"<anonymous>")}else if(at)ce+="new "+(ve||"<anonymous>");else if(ve)ce+=ve;else ce+=P,qe=!1;if(qe)ce+=" ("+P+")";return ce}function QLe(v){var P={};return Object.getOwnPropertyNames(Object.getPrototypeOf(v)).forEach(function(M){P[M]=/^(?:is|get)/.test(M)?function(){return v[M].call(v)}:v[M]}),P.toString=gSt,P}function YLe(v,P){if(P===void 0)P={nextPosition:null,curPosition:null};if(v.isNative())return P.curPosition=null,v;var M=v.getFileName()||v.getScriptNameOrSourceURL();if(M){var z=v.getLineNumber(),ce=v.getColumnNumber()-1,ve=/^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)/,qe=ve.test(fSt())?0:62;if(z===1&&ce>qe&&!D0e()&&!v.isEval())ce-=qe;var at=O0e({source:M,line:z,column:ce});P.curPosition=at,v=QLe(v);var yt=v.getFunctionName;return v.getFunctionName=function(){if(P.nextPosition==null)return yt();return P.nextPosition.name||yt()},v.getFileName=function(){return at.source},v.getLineNumber=function(){return at.line},v.getColumnNumber=function(){return at.column+1},v.getScriptNameOrSourceURL=function(){return at.source},v}var cr=v.isEval()&&v.getEvalOrigin();if(cr)return cr=KLe(cr),v=QLe(v),v.getEvalOrigin=function(){return cr},v;return v}function hSt(v,P){if(w0e)ZN={},vB={};var M=v.name||"Error",z=v.message||"",ce=M+": "+z,ve={nextPosition:null,curPosition:null},qe=[];for(var at=P.length-1;at>=0;at--)qe.push(`
3
3
  at `+YLe(P[at],ve)),ve.nextPosition=ve.curPosition;return ve.curPosition=ve.nextPosition=null,ce+qe.reverse().join("")}function ZLe(v){var P=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(v.stack);if(P){var M=P[1],z=+P[2],ce=+P[3],ve=ZN[M];if(!ve&&M2&&M2.existsSync(M))try{ve=M2.readFileSync(M,"utf8")}catch(at){ve=""}if(ve){var qe=ve.split(/(?:\r\n|\r|\n)/)[z-1];if(qe)return M+":"+z+`
4
4
  `+qe+`
5
- `+Array(ce).join(" ")+"^"}}return null}function ySt(v){var P=ZLe(v),M=pSt();if(M&&M._handle&&M._handle.setBlocking)M._handle.setBlocking(!0);if(P)console.error(),console.error(P);console.error(v.stack),dSt(1)}function vSt(){var v=process.emit;process.emit=function(P){if(P==="uncaughtException"){var M=arguments[1]&&arguments[1].stack,z=this.listeners(P).length>0;if(M&&!z)return ySt(arguments[1])}return v.apply(this,arguments)}}var bSt=eP.slice(0),SSt=tP.slice(0);TSt.wrapCallSite=YLe;TSt.getErrorSource=ZLe;TSt.mapSourcePosition=O0e;TSt.retrieveSourceMap=N0e;TSt.install=function(v){if(v=v||{},v.environment){if(yB=v.environment,["node","browser","auto"].indexOf(yB)===-1)throw Error("environment "+yB+" was unknown. Available options are {auto, browser, node}")}if(v.retrieveFile){if(v.overrideRetrieveFile)eP.length=0;eP.unshift(v.retrieveFile)}if(v.retrieveSourceMap){if(v.overrideRetrieveSourceMap)tP.length=0;tP.unshift(v.retrieveSourceMap)}if(v.hookRequire&&!D0e()){var P=HLe(P0e,"module"),M=P.prototype._compile;if(!M.__sourceMapSupport)P.prototype._compile=function(ve,qe){return ZN[qe]=ve,vB[qe]=void 0,M.call(this,ve,qe)},P.prototype._compile.__sourceMapSupport=!0}if(!w0e)w0e="emptyCacheBetweenOperations"in v?v.emptyCacheBetweenOperations:!1;if(!GLe)GLe=!0,Error.prepareStackTrace=hSt;if(!XLe){var z="handleUncaughtExceptions"in v?v.handleUncaughtExceptions:!0;try{var ce=HLe(P0e,"worker_threads");if(ce.isMainThread===!1)z=!1}catch(ve){}if(z&&_St())XLe=!0,vSt()}};TSt.resetRetrieveHandlers=function(){eP.length=0,tP.length=0,eP=bSt.slice(0),tP=SSt.slice(0),N0e=pY(tP),I0e=pY(eP)}});var r9e=W0(function(KEt,dY){var __dirname="/home/alexkahn/abs/absolutejs/.claude/worktrees/optional-peers/node_modules/typescript/lib",__filename="/home/alexkahn/abs/absolutejs/.claude/worktrees/optional-peers/node_modules/typescript/lib/typescript.js";/*! *****************************************************************************
5
+ `+Array(ce).join(" ")+"^"}}return null}function ySt(v){var P=ZLe(v),M=pSt();if(M&&M._handle&&M._handle.setBlocking)M._handle.setBlocking(!0);if(P)console.error(),console.error(P);console.error(v.stack),dSt(1)}function vSt(){var v=process.emit;process.emit=function(P){if(P==="uncaughtException"){var M=arguments[1]&&arguments[1].stack,z=this.listeners(P).length>0;if(M&&!z)return ySt(arguments[1])}return v.apply(this,arguments)}}var bSt=eP.slice(0),SSt=tP.slice(0);TSt.wrapCallSite=YLe;TSt.getErrorSource=ZLe;TSt.mapSourcePosition=O0e;TSt.retrieveSourceMap=N0e;TSt.install=function(v){if(v=v||{},v.environment){if(yB=v.environment,["node","browser","auto"].indexOf(yB)===-1)throw Error("environment "+yB+" was unknown. Available options are {auto, browser, node}")}if(v.retrieveFile){if(v.overrideRetrieveFile)eP.length=0;eP.unshift(v.retrieveFile)}if(v.retrieveSourceMap){if(v.overrideRetrieveSourceMap)tP.length=0;tP.unshift(v.retrieveSourceMap)}if(v.hookRequire&&!D0e()){var P=HLe(P0e,"module"),M=P.prototype._compile;if(!M.__sourceMapSupport)P.prototype._compile=function(ve,qe){return ZN[qe]=ve,vB[qe]=void 0,M.call(this,ve,qe)},P.prototype._compile.__sourceMapSupport=!0}if(!w0e)w0e="emptyCacheBetweenOperations"in v?v.emptyCacheBetweenOperations:!1;if(!GLe)GLe=!0,Error.prepareStackTrace=hSt;if(!XLe){var z="handleUncaughtExceptions"in v?v.handleUncaughtExceptions:!0;try{var ce=HLe(P0e,"worker_threads");if(ce.isMainThread===!1)z=!1}catch(ve){}if(z&&_St())XLe=!0,vSt()}};TSt.resetRetrieveHandlers=function(){eP.length=0,tP.length=0,eP=bSt.slice(0),tP=SSt.slice(0),N0e=pY(tP),I0e=pY(eP)}});var r9e=W0(function(KEt,dY){var __dirname="/tmp/claude-1000/-home-alexkahn-onspark-absolutejs-dealroom/2bfd88db-2cb9-4088-8977-3c07598f96a5/scratchpad/absolute-release/node_modules/typescript/lib",__filename="/tmp/claude-1000/-home-alexkahn-onspark-absolutejs-dealroom/2bfd88db-2cb9-4088-8977-3c07598f96a5/scratchpad/absolute-release/node_modules/typescript/lib/typescript.js";/*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
8
8
  this file except in compliance with the License. You may obtain a copy of the
@@ -374,7 +374,96 @@ var init_devRouteRegistrationCallsite = __esm(() => {
374
374
  pageHandlerWrappers = new WeakMap;
375
375
  });
376
376
 
377
+ // src/utils/ssrErrorPage.ts
378
+ var exports_ssrErrorPage = {};
379
+ __export(exports_ssrErrorPage, {
380
+ buildErrorPage: () => buildErrorPage,
381
+ ssrErrorPage: () => ssrErrorPage
382
+ });
383
+ var errorPageHtml = ({
384
+ framework,
385
+ hint,
386
+ kind,
387
+ message,
388
+ script = ""
389
+ }) => {
390
+ const frameworkColors = {
391
+ angular: "#dd0031",
392
+ html: "#e34c26",
393
+ htmx: "#1a365d",
394
+ react: "#61dafb",
395
+ svelte: "#ff3e00",
396
+ vue: "#42b883"
397
+ };
398
+ const accent = frameworkColors[framework] ?? "#94a3b8";
399
+ const label = framework.charAt(0).toUpperCase() + framework.slice(1);
400
+ return `<!DOCTYPE html>
401
+ <html>
402
+ <head>
403
+ <meta charset="utf-8">
404
+ <meta name="viewport" content="width=device-width, initial-scale=1">
405
+ <title>SSR Error - AbsoluteJS</title>
406
+ <style>
407
+ *{margin:0;padding:0;box-sizing:border-box}
408
+ body{min-height:100vh;background:linear-gradient(135deg,rgba(15,23,42,0.98) 0%,rgba(30,41,59,0.98) 100%);color:#e2e8f0;font-family:"JetBrains Mono","Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:14px;line-height:1.6;display:flex;align-items:flex-start;justify-content:center;padding:32px}
409
+ .card{max-width:720px;width:100%;background:rgba(30,41,59,0.6);border:1px solid rgba(71,85,105,0.5);border-radius:16px;box-shadow:0 25px 50px -12px rgba(0,0,0,0.5),0 0 0 1px rgba(255,255,255,0.05);overflow:hidden}
410
+ .header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:rgba(15,23,42,0.5);border-bottom:1px solid rgba(71,85,105,0.4)}
411
+ .brand{font-weight:700;font-size:20px;color:#fff;letter-spacing:-0.02em}
412
+ .badge{padding:5px 10px;border-radius:8px;font-size:12px;font-weight:600;background:${accent};color:#fff;opacity:0.95;box-shadow:0 2px 4px rgba(0,0,0,0.2)}
413
+ .kind{color:#94a3b8;font-size:13px;font-weight:500}
414
+ .content{padding:24px}
415
+ .label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.08em;color:#94a3b8;margin-bottom:8px}
416
+ .message{margin:0;padding:16px 20px;background:rgba(239,68,68,0.12);border:1px solid rgba(239,68,68,0.25);border-radius:10px;overflow-x:auto;white-space:pre-wrap;word-break:break-word;color:#fca5a5;font-size:13px;line-height:1.5}
417
+ .hint{margin-top:20px;padding:12px 20px;background:rgba(71,85,105,0.3);border-radius:10px;border:1px solid rgba(71,85,105,0.4);color:#cbd5e1;font-size:13px}
418
+ </style>
419
+ </head>
420
+ <body>
421
+ <div class="card">
422
+ <div class="header">
423
+ <div style="display:flex;align-items:center;gap:12px">
424
+ <span class="brand">AbsoluteJS</span>
425
+ <span class="badge">${label}</span>
426
+ </div>
427
+ <span class="kind">${kind}</span>
428
+ </div>
429
+ <div class="content">
430
+ <div class="label">What went wrong</div>
431
+ <pre class="message">${message.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")}</pre>
432
+ <div class="hint">${hint}</div>
433
+ </div>
434
+ </div>
435
+ ${script}
436
+ </body>
437
+ </html>`;
438
+ }, RELOAD_ON_REBUILD = `<script>(()=>{const url=(location.protocol==='https:'?'wss://':'ws://')+location.host+'/hmr';let seen=false;const connect=()=>{const socket=new WebSocket(url);socket.onopen=()=>{if(seen)location.reload();seen=true;};socket.onmessage=(event)=>{try{const message=JSON.parse(event.data);const type=message&&typeof message.type==='string'?message.type:'';if(type==='rebuild-complete'||type==='server-entry-reloaded'||type.endsWith('-update'))location.reload();}catch{}};socket.onclose=()=>setTimeout(connect,500);};connect();})();</script>`, buildErrorPage = (framework, pageName, error) => errorPageHtml({
439
+ framework,
440
+ hint: "Fix the file and save. This page reloads by itself when the build succeeds.",
441
+ kind: "Build Error",
442
+ message: `${pageName || "This page"} could not be built.
443
+
444
+ ${error ?? "The dev-server terminal has the build output."}`,
445
+ script: RELOAD_ON_REBUILD
446
+ }), ssrErrorPage = (framework, error) => errorPageHtml({
447
+ framework,
448
+ hint: "A component threw during server-side rendering. Check the terminal for the full stack trace.",
449
+ kind: "Server Render Error",
450
+ message: error instanceof Error ? error.message : String(error)
451
+ });
452
+
377
453
  // src/core/requestContext.ts
454
+ var exports_requestContext = {};
455
+ __export(exports_requestContext, {
456
+ absoluteRequestContext: () => absoluteRequestContext,
457
+ devBuildErrorResponse: () => devBuildErrorResponse,
458
+ getCurrentAbsoluteRequest: () => getCurrentAbsoluteRequest,
459
+ getDevPageWarmer: () => getDevPageWarmer,
460
+ getMissingAssets: () => getMissingAssets,
461
+ recordMissingAsset: () => recordMissingAsset,
462
+ resolveDeferredPageAssets: () => resolveDeferredPageAssets,
463
+ runWithAbsoluteRequest: () => runWithAbsoluteRequest,
464
+ setDevPageWarmer: () => setDevPageWarmer,
465
+ withDeferredStylesheets: () => withDeferredStylesheets
466
+ });
378
467
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "async_hooks";
379
468
  import { Elysia as Elysia2 } from "elysia";
380
469
  var REQUEST_STORAGE_KEY, PAGE_WARMER_KEY, isAbsoluteRequestStorage = (value) => typeof value === "object" && value !== null && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", getRequestStorage = () => {
@@ -387,7 +476,17 @@ var REQUEST_STORAGE_KEY, PAGE_WARMER_KEY, isAbsoluteRequestStorage = (value) =>
387
476
  const storage = new AsyncLocalStorage2;
388
477
  Reflect.set(globalThis, REQUEST_STORAGE_KEY, storage);
389
478
  return storage;
390
- }, absoluteRequestContext, getCurrentAbsoluteRequest = () => getRequestStorage()?.getStore()?.request, runWithAbsoluteRequest = (request, callback) => ensureRequestStorage().run({ request }, callback), CSS_KEY_RE, isDevPageWarmer = (value) => typeof value === "object" && value !== null && ("describe" in value) && typeof value.describe === "function" && ("warm" in value) && typeof value.warm === "function" && ("lookup" in value) && typeof value.lookup === "function", getDevPageWarmer = () => {
479
+ }, absoluteRequestContext, getCurrentAbsoluteRequest = () => getRequestStorage()?.getStore()?.request, runWithAbsoluteRequest = (request, callback) => ensureRequestStorage().run({ request }, callback), CSS_KEY_RE, isDevPageWarmer = (value) => typeof value === "object" && value !== null && ("describe" in value) && typeof value.describe === "function" && ("warm" in value) && typeof value.warm === "function" && ("lookup" in value) && typeof value.lookup === "function", devBuildErrorResponse = (framework, assets) => {
480
+ if (!assets?.failed)
481
+ return null;
482
+ return new Response(buildErrorPage(framework, assets.name, assets.error), {
483
+ headers: {
484
+ "cache-control": "no-store",
485
+ "content-type": "text/html; charset=utf-8"
486
+ },
487
+ status: 500
488
+ });
489
+ }, getDevPageWarmer = () => {
391
490
  const value = Reflect.get(globalThis, PAGE_WARMER_KEY);
392
491
  return isDevPageWarmer(value) ? value : undefined;
393
492
  }, getMissingAssets = () => {
@@ -417,6 +516,7 @@ var REQUEST_STORAGE_KEY, PAGE_WARMER_KEY, isAbsoluteRequestStorage = (value) =>
417
516
  const cssHrefs = () => cssKeys.map(lookup).filter((href) => href.length > 0 && href.startsWith("/"));
418
517
  const assets = {
419
518
  cssHrefs,
519
+ error: failed ? warmer.lastError?.() : undefined,
420
520
  failed,
421
521
  lookup,
422
522
  name: described.name
@@ -1694,62 +1794,6 @@ var init_logger = __esm(() => {
1694
1794
  };
1695
1795
  });
1696
1796
 
1697
- // src/utils/ssrErrorPage.ts
1698
- var exports_ssrErrorPage = {};
1699
- __export(exports_ssrErrorPage, {
1700
- ssrErrorPage: () => ssrErrorPage
1701
- });
1702
- var ssrErrorPage = (framework, error) => {
1703
- const frameworkColors2 = {
1704
- angular: "#dd0031",
1705
- html: "#e34c26",
1706
- htmx: "#1a365d",
1707
- react: "#61dafb",
1708
- svelte: "#ff3e00",
1709
- vue: "#42b883"
1710
- };
1711
- const accent = frameworkColors2[framework] ?? "#94a3b8";
1712
- const label = framework.charAt(0).toUpperCase() + framework.slice(1);
1713
- const message = error instanceof Error ? error.message : String(error);
1714
- return `<!DOCTYPE html>
1715
- <html>
1716
- <head>
1717
- <meta charset="utf-8">
1718
- <meta name="viewport" content="width=device-width, initial-scale=1">
1719
- <title>SSR Error - AbsoluteJS</title>
1720
- <style>
1721
- *{margin:0;padding:0;box-sizing:border-box}
1722
- body{min-height:100vh;background:linear-gradient(135deg,rgba(15,23,42,0.98) 0%,rgba(30,41,59,0.98) 100%);color:#e2e8f0;font-family:"JetBrains Mono","Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:14px;line-height:1.6;display:flex;align-items:flex-start;justify-content:center;padding:32px}
1723
- .card{max-width:720px;width:100%;background:rgba(30,41,59,0.6);border:1px solid rgba(71,85,105,0.5);border-radius:16px;box-shadow:0 25px 50px -12px rgba(0,0,0,0.5),0 0 0 1px rgba(255,255,255,0.05);overflow:hidden}
1724
- .header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:rgba(15,23,42,0.5);border-bottom:1px solid rgba(71,85,105,0.4)}
1725
- .brand{font-weight:700;font-size:20px;color:#fff;letter-spacing:-0.02em}
1726
- .badge{padding:5px 10px;border-radius:8px;font-size:12px;font-weight:600;background:${accent};color:#fff;opacity:0.95;box-shadow:0 2px 4px rgba(0,0,0,0.2)}
1727
- .kind{color:#94a3b8;font-size:13px;font-weight:500}
1728
- .content{padding:24px}
1729
- .label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.08em;color:#94a3b8;margin-bottom:8px}
1730
- .message{margin:0;padding:16px 20px;background:rgba(239,68,68,0.12);border:1px solid rgba(239,68,68,0.25);border-radius:10px;overflow-x:auto;white-space:pre-wrap;word-break:break-word;color:#fca5a5;font-size:13px;line-height:1.5}
1731
- .hint{margin-top:20px;padding:12px 20px;background:rgba(71,85,105,0.3);border-radius:10px;border:1px solid rgba(71,85,105,0.4);color:#cbd5e1;font-size:13px}
1732
- </style>
1733
- </head>
1734
- <body>
1735
- <div class="card">
1736
- <div class="header">
1737
- <div style="display:flex;align-items:center;gap:12px">
1738
- <span class="brand">AbsoluteJS</span>
1739
- <span class="badge">${label}</span>
1740
- </div>
1741
- <span class="kind">Server Render Error</span>
1742
- </div>
1743
- <div class="content">
1744
- <div class="label">What went wrong</div>
1745
- <pre class="message">${message.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")}</pre>
1746
- <div class="hint">A component threw during server-side rendering. Check the terminal for the full stack trace.</div>
1747
- </div>
1748
- </div>
1749
- </body>
1750
- </html>`;
1751
- };
1752
-
1753
1797
  // src/utils/stringModifiers.ts
1754
1798
  var normalizeSlug = (str) => str.trim().replace(/\s+/g, "-").replace(/[^A-Za-z0-9\-_]+/g, "").replace(/[-_]{2,}/g, "-"), toKebab = (str) => normalizeSlug(str).replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), toPascal = (str) => {
1755
1799
  if (!str.includes("-") && !str.includes("_")) {
@@ -4282,6 +4326,11 @@ var init_svelteServerModule = __esm(() => {
4282
4326
  });
4283
4327
  });
4284
4328
 
4329
+ // src/utils/isFile.ts
4330
+ import { statSync } from "fs";
4331
+ var isFile = (path) => statSync(path, { throwIfNoEntry: false })?.isFile() ?? false;
4332
+ var init_isFile = () => {};
4333
+
4285
4334
  // src/utils/vueCompiler.ts
4286
4335
  var exports_vueCompiler = {};
4287
4336
  __export(exports_vueCompiler, {
@@ -4300,7 +4349,7 @@ var createVueCompiler = async () => {
4300
4349
  };
4301
4350
 
4302
4351
  // src/core/vueServerModule.ts
4303
- import { existsSync as existsSync4, readFileSync as readFileSync4, realpathSync } from "fs";
4352
+ import { readFileSync as readFileSync4, realpathSync } from "fs";
4304
4353
  import { mkdir as mkdir3 } from "fs/promises";
4305
4354
  import { dirname as dirname4, join as join7, relative as relative4, resolve as resolve5 } from "path";
4306
4355
  var {Transpiler } = globalThis.Bun;
@@ -4347,9 +4396,9 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
4347
4396
  const hasScript = descriptor.script || descriptor.scriptSetup;
4348
4397
  const compiledScript = hasScript ? compiler.compileScript(descriptor, {
4349
4398
  fs: {
4350
- fileExists: existsSync4,
4399
+ fileExists: isFile,
4351
4400
  realpath: realpathSync,
4352
- readFile: (file) => existsSync4(file) ? readFileSync4(file, "utf-8") : undefined
4401
+ readFile: (file) => isFile(file) ? readFileSync4(file, "utf-8") : undefined
4353
4402
  },
4354
4403
  id: componentId,
4355
4404
  inlineTemplate: false
@@ -4394,6 +4443,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
4394
4443
  };
4395
4444
  var init_vueServerModule = __esm(() => {
4396
4445
  init_constants();
4446
+ init_isFile();
4397
4447
  serverCacheRoot3 = join7(process.cwd(), ".absolutejs", "islands", "vue");
4398
4448
  compiledModuleCache3 = new Map;
4399
4449
  transpiler2 = new Transpiler({ loader: "ts", target: "browser" });
@@ -4798,6 +4848,9 @@ var buildRefreshSetup = () => {
4798
4848
  var handleReactPageRequest = async (input) => {
4799
4849
  const { Page } = input;
4800
4850
  const deferredAssets = input.index === "" ? await resolveDeferredPageAssets() : null;
4851
+ const buildFailure = devBuildErrorResponse("react", deferredAssets);
4852
+ if (buildFailure)
4853
+ return buildFailure;
4801
4854
  const resolvedIndex = deferredAssets && input.index === "" ? deferredAssets.lookup(`${deferredAssets.name}Index`) : input.index;
4802
4855
  const options = input;
4803
4856
  const userProps = input.props;
@@ -5023,5 +5076,5 @@ export {
5023
5076
  useIslandStore
5024
5077
  };
5025
5078
 
5026
- //# debugId=F869B4C16D01728F64756E2164756E21
5079
+ //# debugId=9893AAB6846669EF64756E2164756E21
5027
5080
  //# sourceMappingURL=index.js.map