stacktape 2.4.0-alpha.0 → 2.23.0-alpha.2
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.
- package/index.js +61 -28
- package/package.json +7 -7
- package/sdk.js +6 -0
package/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
var nr=Object.defineProperty;var s=(r,e)=>nr(r,"name",{value:e,configurable:!0});var w=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Me=w(H=>{var we="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");H.encode=function(r){if(0<=r&&r<we.length)return we[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,a=43,l=47,c=26,f=52;return e<=r&&r<=n?r-e:t<=r&&r<=o?r-t+c:i<=r&&r<=u?r-i+f:r==a?62:r==l?63:-1}});var ne=w(re=>{var Le=Me(),ee=5,Ee=1<<ee,Ae=Ee-1,Oe=Ee;function tr(r){return r<0?(-r<<1)+1:(r<<1)+0}s(tr,"toVLQSigned");function or(r){var e=(r&1)===1,n=r>>1;return e?-n:n}s(or,"fromVLQSigned");re.encode=s(function(e){var n="",t,o=tr(e);do t=o&Ae,o>>>=ee,o>0&&(t|=Oe),n+=Le.encode(t);while(o>0);return n},"base64VLQ_encode");re.decode=s(function(e,n,t){var o=e.length,i=0,u=0,a,l;do{if(n>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(l=Le.decode(e.charCodeAt(n++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(n-1));a=!!(l&Oe),l&=Ae,i=i+(l<<u),u+=ee}while(a);t.value=or(i),t.rest=n},"base64VLQ_decode")});var F=w(y=>{function ir(r,e,n){if(e in r)return r[e];if(arguments.length===3)return n;throw new Error('"'+e+'" is a required argument.')}s(ir,"getArg");y.getArg=ir;var be=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ur=/^data:.+\,.+$/;function D(r){var e=r.match(be);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}s(D,"urlParse");y.urlParse=D;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}s(B,"urlGenerate");y.urlGenerate=B;function te(r){var e=r,n=D(r);if(n){if(!n.path)return r;e=n.path}for(var t=y.isAbsolute(e),o=e.split(/\/+/),i,u=0,a=o.length-1;a>=0;a--)i=o[a],i==="."?o.splice(a,1):i===".."?u++:u>0&&(i===""?(o.splice(a+1,u),u=0):(o.splice(a,2),u--));return e=o.join("/"),e===""&&(e=t?"/":"."),n?(n.path=e,B(n)):e}s(te,"normalize");y.normalize=te;function Re(r,e){r===""&&(r="."),e===""&&(e=".");var n=D(e),t=D(r);if(t&&(r=t.path||"/"),n&&!n.scheme)return t&&(n.scheme=t.scheme),B(n);if(n||e.match(ur))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}s(Re,"join");y.join=Re;y.isAbsolute=function(r){return r.charAt(0)==="/"||be.test(r)};function sr(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)}s(sr,"relative");y.relative=sr;var Ne=function(){var r=Object.create(null);return!("__proto__"in r)}();function xe(r){return r}s(xe,"identity");function lr(r){return Ge(r)?"$"+r:r}s(lr,"toSetString");y.toSetString=Ne?xe:lr;function ar(r){return Ge(r)?r.slice(1):r}s(ar,"fromSetString");y.fromSetString=Ne?xe:ar;function Ge(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}s(Ge,"isProtoString");function cr(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)}s(cr,"compareByOriginalPositions");y.compareByOriginalPositions=cr;function fr(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)}s(fr,"compareByGeneratedPositionsDeflated");y.compareByGeneratedPositionsDeflated=fr;function q(r,e){return r===e?0:r===null?1:e===null?-1:r>e?1:-1}s(q,"strcmp");function hr(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)}s(hr,"compareByGeneratedPositionsInflated");y.compareByGeneratedPositionsInflated=hr;function gr(r){return JSON.parse(r.replace(/^\)]}'[^\n]*\n/,""))}s(gr,"parseSourceMapInput");y.parseSourceMapInput=gr;function dr(r,e,n){if(e=e||"",r&&(r[r.length-1]!=="/"&&e[0]!=="/"&&(r+="/"),e=r+e),n){var t=D(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=Re(B(t),e)}return te(e)}s(dr,"computeSourceURL");y.computeSourceURL=dr});var ue=w(Ie=>{var oe=F(),ie=Object.prototype.hasOwnProperty,x=typeof Map<"u";function b(){this._array=[],this._set=x?new Map:Object.create(null)}s(b,"ArraySet");b.fromArray=s(function(e,n){for(var t=new b,o=0,i=e.length;o<i;o++)t.add(e[o],n);return t},"ArraySet_fromArray");b.prototype.size=s(function(){return x?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");b.prototype.add=s(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)},"ArraySet_add");b.prototype.has=s(function(e){if(x)return this._set.has(e);var n=oe.toSetString(e);return ie.call(this._set,n)},"ArraySet_has");b.prototype.indexOf=s(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.')},"ArraySet_indexOf");b.prototype.at=s(function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},"ArraySet_at");b.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");Ie.ArraySet=b});var Be=w(Pe=>{var Te=F();function vr(r,e){var n=r.generatedLine,t=e.generatedLine,o=r.generatedColumn,i=e.generatedColumn;return t>n||t==n&&i>=o||Te.compareByGeneratedPositionsInflated(r,e)<=0}s(vr,"generatedPositionAfter");function W(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(W,"MappingList");W.prototype.unsortedForEach=s(function(e,n){this._array.forEach(e,n)},"MappingList_forEach");W.prototype.add=s(function(e){vr(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");W.prototype.toArray=s(function(){return this._sorted||(this._array.sort(Te.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");Pe.MappingList=W});var se=w(qe=>{var $=ne(),_=F(),J=ue().ArraySet,pr=Be().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 pr,this._sourcesContents=null}s(E,"SourceMapGenerator");E.prototype._version=3;E.fromSourceMap=s(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},"SourceMapGenerator_fromSourceMap");E.prototype.addMapping=s(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})},"SourceMapGenerator_addMapping");E.prototype.setSourceContent=s(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))},"SourceMapGenerator_setSourceContent");E.prototype.applySourceMap=s(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,a=new J;this._mappings.unsortedForEach(function(l){if(l.source===o&&l.originalLine!=null){var c=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});c.source!=null&&(l.source=c.source,t!=null&&(l.source=_.join(t,l.source)),i!=null&&(l.source=_.relative(i,l.source)),l.originalLine=c.line,l.originalColumn=c.column,c.name!=null&&(l.name=c.name))}var f=l.source;f!=null&&!u.has(f)&&u.add(f);var d=l.name;d!=null&&!a.has(d)&&a.add(d)},this),this._sources=u,this._names=a,e.sources.forEach(function(l){var c=e.sourceContentFor(l);c!=null&&(t!=null&&(l=_.join(t,l)),i!=null&&(l=_.relative(i,l)),this.setSourceContent(l,c))},this)},"SourceMapGenerator_applySourceMap");E.prototype._validateMapping=s(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}))}},"SourceMapGenerator_validateMapping");E.prototype._serializeMappings=s(function(){for(var e=0,n=1,t=0,o=0,i=0,u=0,a="",l,c,f,d,g=this._mappings.toArray(),v=0,L=g.length;v<L;v++){if(c=g[v],l="",c.generatedLine!==n)for(e=0;c.generatedLine!==n;)l+=";",n++;else if(v>0){if(!_.compareByGeneratedPositionsInflated(c,g[v-1]))continue;l+=","}l+=$.encode(c.generatedColumn-e),e=c.generatedColumn,c.source!=null&&(d=this._sources.indexOf(c.source),l+=$.encode(d-u),u=d,l+=$.encode(c.originalLine-1-o),o=c.originalLine-1,l+=$.encode(c.originalColumn-t),t=c.originalColumn,c.name!=null&&(f=this._names.indexOf(c.name),l+=$.encode(f-i),i=f)),a+=l}return a},"SourceMapGenerator_serializeMappings");E.prototype._generateSourcesContent=s(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)},"SourceMapGenerator_generateSourcesContent");E.prototype.toJSON=s(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},"SourceMapGenerator_toJSON");E.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");qe.SourceMapGenerator=E});var Fe=w(G=>{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,a=o(n,t[u],!0);return a===0?u:a>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}s(le,"recursiveSearch");G.search=s(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},"search")});var Ue=w(je=>{function ae(r,e,n){var t=r[e];r[e]=r[n],r[n]=t}s(ae,"swap");function _r(r,e){return Math.round(r+Math.random()*(e-r))}s(_r,"randomIntInRange");function ce(r,e,n,t){if(n<t){var o=_r(n,t),i=n-1;ae(r,o,t);for(var u=r[t],a=n;a<t;a++)e(r[a],u)<=0&&(i+=1,ae(r,i,a));ae(r,i+1,a);var l=i+1;ce(r,e,n,l-1),ce(r,e,l+1,t)}}s(ce,"doQuickSort");je.quickSort=function(r,e){ce(r,e,0,r.length-1)}});var $e=w(X=>{var h=F(),fe=Fe(),j=ue().ArraySet,mr=ne(),k=Ue().quickSort;function p(r,e){var n=r;return typeof r=="string"&&(n=h.parseSourceMapInput(r)),n.sections!=null?new A(n,e):new m(n,e)}s(p,"SourceMapConsumer");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:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});p.prototype.__originalMappings=null;Object.defineProperty(p.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});p.prototype._charIsMappingSeparator=s(function(e,n){var t=e.charAt(n);return t===";"||t===","},"SourceMapConsumer_charIsMappingSeparator");p.prototype._parseMappings=s(function(e,n){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");p.GENERATED_ORDER=1;p.ORIGINAL_ORDER=2;p.GREATEST_LOWER_BOUND=1;p.LEAST_UPPER_BOUND=2;p.prototype.eachMapping=s(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 a=this.sourceRoot;u.map(function(l){var c=l.source===null?null:this._sources.at(l.source);return c=h.computeSourceURL(a,c,this._sourceMapURL),{source:c,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(e,o)},"SourceMapConsumer_eachMapping");p.prototype.allGeneratedPositionsFor=s(function(e){var n=h.getArg(e,"line"),t={source:h.getArg(e,"source"),originalLine:n,originalColumn:h.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",h.compareByOriginalPositions,fe.LEAST_UPPER_BOUND);if(i>=0){var u=this._originalMappings[i];if(e.column===void 0)for(var a=u.originalLine;u&&u.originalLine===a;)o.push({line:h.getArg(u,"generatedLine",null),column:h.getArg(u,"generatedColumn",null),lastColumn:h.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++i];else for(var l=u.originalColumn;u&&u.originalLine===n&&u.originalColumn==l;)o.push({line:h.getArg(u,"generatedLine",null),column:h.getArg(u,"generatedColumn",null),lastColumn:h.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++i]}return o},"SourceMapConsumer_allGeneratedPositionsFor");X.SourceMapConsumer=p;function m(r,e){var n=r;typeof r=="string"&&(n=h.parseSourceMapInput(r));var t=h.getArg(n,"version"),o=h.getArg(n,"sources"),i=h.getArg(n,"names",[]),u=h.getArg(n,"sourceRoot",null),a=h.getArg(n,"sourcesContent",null),l=h.getArg(n,"mappings"),c=h.getArg(n,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);u&&(u=h.normalize(u)),o=o.map(String).map(h.normalize).map(function(f){return u&&h.isAbsolute(u)&&h.isAbsolute(f)?h.relative(u,f):f}),this._names=j.fromArray(i.map(String),!0),this._sources=j.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(f){return h.computeSourceURL(u,f,e)}),this.sourceRoot=u,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=e,this.file=c}s(m,"BasicSourceMapConsumer");m.prototype=Object.create(p.prototype);m.prototype.consumer=p;m.prototype._findSourceIndex=function(r){var e=r;if(this.sourceRoot!=null&&(e=h.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=s(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 h.computeSourceURL(t.sourceRoot,v,n)});for(var u=e._mappings.toArray().slice(),a=t.__generatedMappings=[],l=t.__originalMappings=[],c=0,f=u.length;c<f;c++){var d=u[c],g=new De;g.generatedLine=d.generatedLine,g.generatedColumn=d.generatedColumn,d.source&&(g.source=i.indexOf(d.source),g.originalLine=d.originalLine,g.originalColumn=d.originalColumn,d.name&&(g.name=o.indexOf(d.name)),l.push(g)),a.push(g)}return k(t.__originalMappings,h.compareByOriginalPositions),t},"SourceMapConsumer_fromSourceMap");m.prototype._version=3;Object.defineProperty(m.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function De(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(De,"Mapping");m.prototype._parseMappings=s(function(e,n){for(var t=1,o=0,i=0,u=0,a=0,l=0,c=e.length,f=0,d={},g={},v=[],L=[],C,V,S,P,Ce;f<c;)if(e.charAt(f)===";")t++,f++,o=0;else if(e.charAt(f)===",")f++;else{for(C=new De,C.generatedLine=t,P=f;P<c&&!this._charIsMappingSeparator(e,P);P++);if(V=e.slice(f,P),S=d[V],S)f+=V.length;else{for(S=[];f<P;)mr.decode(e,f,g),Ce=g.value,f=g.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");d[V]=S}C.generatedColumn=o+S[0],o=C.generatedColumn,S.length>1&&(C.source=a+S[1],a+=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=l+S[4],l+=S[4])),L.push(C),typeof C.originalLine=="number"&&v.push(C)}k(L,h.compareByGeneratedPositionsDeflated),this.__generatedMappings=L,k(v,h.compareByOriginalPositions),this.__originalMappings=v},"SourceMapConsumer_parseMappings");m.prototype._findMapping=s(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)},"SourceMapConsumer_findMapping");m.prototype.computeColumnSpans=s(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}},"SourceMapConsumer_computeColumnSpans");m.prototype.originalPositionFor=s(function(e){var n={generatedLine:h.getArg(e,"line"),generatedColumn:h.getArg(e,"column")},t=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",h.compareByGeneratedPositionsDeflated,h.getArg(e,"bias",p.GREATEST_LOWER_BOUND));if(t>=0){var o=this._generatedMappings[t];if(o.generatedLine===n.generatedLine){var i=h.getArg(o,"source",null);i!==null&&(i=this._sources.at(i),i=h.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var u=h.getArg(o,"name",null);return u!==null&&(u=this._names.at(u)),{source:i,line:h.getArg(o,"originalLine",null),column:h.getArg(o,"originalColumn",null),name:u}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");m.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");m.prototype.sourceContentFor=s(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=h.relative(this.sourceRoot,o));var i;if(this.sourceRoot!=null&&(i=h.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.')},"SourceMapConsumer_sourceContentFor");m.prototype.generatedPositionFor=s(function(e){var n=h.getArg(e,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var t={source:n,originalLine:h.getArg(e,"line"),originalColumn:h.getArg(e,"column")},o=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",h.compareByOriginalPositions,h.getArg(e,"bias",p.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===t.source)return{line:h.getArg(i,"generatedLine",null),column:h.getArg(i,"generatedColumn",null),lastColumn:h.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");X.BasicSourceMapConsumer=m;function A(r,e){var n=r;typeof r=="string"&&(n=h.parseSourceMapInput(r));var t=h.getArg(n,"version"),o=h.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 a=h.getArg(u,"offset"),l=h.getArg(a,"line"),c=h.getArg(a,"column");if(l<i.line||l===i.line&&c<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=a,{generatedOffset:{generatedLine:l+1,generatedColumn:c+1},consumer:new p(h.getArg(u,"map"),e)}})}s(A,"IndexedSourceMapConsumer");A.prototype=Object.create(p.prototype);A.prototype.constructor=p;A.prototype._version=3;Object.defineProperty(A.prototype,"sources",{get:s(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},"get")});A.prototype.originalPositionFor=s(function(e){var n={generatedLine:h.getArg(e,"line"),generatedColumn:h.getArg(e,"column")},t=fe.search(n,this._sections,function(i,u){var a=i.generatedLine-u.generatedOffset.generatedLine;return a||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}},"IndexedSourceMapConsumer_originalPositionFor");A.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");A.prototype.sourceContentFor=s(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.')},"IndexedSourceMapConsumer_sourceContentFor");A.prototype.generatedPositionFor=s(function(e){for(var n=0;n<this._sections.length;n++){var t=this._sections[n];if(t.consumer._findSourceIndex(h.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}},"IndexedSourceMapConsumer_generatedPositionFor");A.prototype._parseMappings=s(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 a=i[u],l=o.consumer._sources.at(a.source);l=h.computeSourceURL(o.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var c=null;a.name&&(c=o.consumer._names.at(a.name),this._names.add(c),c=this._names.indexOf(c));var f={source:l,generatedLine:a.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(o.generatedOffset.generatedLine===a.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:c};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}k(this.__generatedMappings,h.compareByGeneratedPositionsDeflated),k(this.__originalMappings,h.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");X.IndexedSourceMapConsumer=A});var ze=w(ke=>{var Sr=se().SourceMapGenerator,Z=F(),yr=/(\r?\n)/,Cr=10,U="$$$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[U]=!0,t!=null&&this.add(t)}s(M,"SourceNode");M.fromStringWithSourceMap=s(function(e,n,t){var o=new M,i=e.split(yr),u=0,a=s(function(){var g=L(),v=L()||"";return g+v;function L(){return u<i.length?i[u++]:void 0}},"shiftNextLine"),l=1,c=0,f=null;return n.eachMapping(function(g){if(f!==null)if(l<g.generatedLine)d(f,a()),l++,c=0;else{var v=i[u]||"",L=v.substr(0,g.generatedColumn-c);i[u]=v.substr(g.generatedColumn-c),c=g.generatedColumn,d(f,L),f=g;return}for(;l<g.generatedLine;)o.add(a()),l++;if(c<g.generatedColumn){var v=i[u]||"";o.add(v.substr(0,g.generatedColumn)),i[u]=v.substr(g.generatedColumn),c=g.generatedColumn}f=g},this),u<i.length&&(f&&d(f,a()),o.add(i.splice(u).join(""))),n.sources.forEach(function(g){var v=n.sourceContentFor(g);v!=null&&(t!=null&&(g=Z.join(t,g)),o.setSourceContent(g,v))}),o;function d(g,v){if(g===null||g.source===void 0)o.add(v);else{var L=t?Z.join(t,g.source):g.source;o.add(new M(g.originalLine,g.originalColumn,L,v,g.name))}}s(d,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");M.prototype.add=s(function(e){if(Array.isArray(e))e.forEach(function(n){this.add(n)},this);else if(e[U]||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},"SourceNode_add");M.prototype.prepend=s(function(e){if(Array.isArray(e))for(var n=e.length-1;n>=0;n--)this.prepend(e[n]);else if(e[U]||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},"SourceNode_prepend");M.prototype.walk=s(function(e){for(var n,t=0,o=this.children.length;t<o;t++)n=this.children[t],n[U]?n.walk(e):n!==""&&e(n,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");M.prototype.join=s(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},"SourceNode_join");M.prototype.replaceRight=s(function(e,n){var t=this.children[this.children.length-1];return t[U]?t.replaceRight(e,n):typeof t=="string"?this.children[this.children.length-1]=t.replace(e,n):this.children.push("".replace(e,n)),this},"SourceNode_replaceRight");M.prototype.setSourceContent=s(function(e,n){this.sourceContents[Z.toSetString(e)]=n},"SourceNode_setSourceContent");M.prototype.walkSourceContents=s(function(e){for(var n=0,t=this.children.length;n<t;n++)this.children[n][U]&&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]])},"SourceNode_walkSourceContents");M.prototype.toString=s(function(){var e="";return this.walk(function(n){e+=n}),e},"SourceNode_toString");M.prototype.toStringWithSourceMap=s(function(e){var n={code:"",line:1,column:0},t=new Sr(e),o=!1,i=null,u=null,a=null,l=null;return this.walk(function(c,f){n.code+=c,f.source!==null&&f.line!==null&&f.column!==null?((i!==f.source||u!==f.line||a!==f.column||l!==f.name)&&t.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name}),i=f.source,u=f.line,a=f.column,l=f.name,o=!0):o&&(t.addMapping({generated:{line:n.line,column:n.column}}),i=null,o=!1);for(var d=0,g=c.length;d<g;d++)c.charCodeAt(d)===Cr?(n.line++,n.column=0,d+1===g?(i=null,o=!1):o&&t.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name})):n.column++}),this.walkSourceContents(function(c,f){t.setSourceContent(c,f)}),{code:n.code,map:t}},"SourceNode_toStringWithSourceMap");ke.SourceNode=M});var Qe=w(K=>{K.SourceMapGenerator=se().SourceMapGenerator;K.SourceMapConsumer=$e().SourceMapConsumer;K.SourceNode=ze().SourceNode});var We=w((an,Ve)=>{var wr=Object.prototype.toString,he=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function Mr(r){return wr.call(r).slice(8,-1)==="ArrayBuffer"}s(Mr,"isArrayBuffer");function Lr(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)))}s(Lr,"fromArrayBuffer");function Er(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)}s(Er,"fromString");function Ar(r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return Mr(r)?Lr(r,e,n):typeof r=="string"?Er(r,e):he?Buffer.from(r):new Buffer(r)}s(Ar,"bufferFrom");Ve.exports=Ar});var rr=w((T,pe)=>{var Or=Qe().SourceMapConsumer,ge=require("path"),O;try{O=require("fs"),(!O.existsSync||!O.readFileSync)&&(O=null)}catch{}var br=We();function Je(r,e){return r.require(e)}s(Je,"dynamicRequire");var Xe=!1,Ze=!1,de=!1,z="auto",I={},Q={},Rr=/^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")}s(_e,"isInBrowser");function Nr(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}s(Nr,"hasGlobalProcessEventEmitter");function xr(){return typeof process=="object"&&process!==null?process.version:""}s(xr,"globalProcessVersion");function Gr(){if(typeof process=="object"&&process!==null)return process.stderr}s(Gr,"globalProcessStderr");function Ir(r){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(r)}s(Ir,"globalProcessExit");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}}s(Y,"handlerExec");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)}s(ve,"supportRelativeURL");function Tr(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}s(Tr,"retrieveSourceMapURL");var Se=Y(N);N.push(function(r){var e=Tr(r);if(!e)return null;var n;if(Rr.test(e)){var t=e.slice(e.indexOf(",")+1);n=br(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 Or(n.map)},e.map.sourcesContent&&e.map.sources.forEach(function(o,i){var u=e.map.sourcesContent[i];if(u){var a=ve(e.url,o);I[a]=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}s(ye,"mapSourcePosition");function Ye(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]+" ("+Ye(e[2])+")":r}s(Ye,"mapEvalOrigin");function Pr(){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,a=this.isConstructor(),l=!(this.isToplevel()||a);if(l){var c=this.getTypeName();c==="[object Object]"&&(c="null");var f=this.getMethodName();i?(c&&i.indexOf(c)!=0&&(o+=c+"."),o+=i,f&&i.indexOf("."+f)!=i.length-f.length-1&&(o+=" [as "+f+"]")):o+=c+"."+(f||"<anonymous>")}else a?o+="new "+(i||"<anonymous>"):i?o+=i:(o+=e,u=!1);return u&&(o+=" ("+e+")"),o}s(Pr,"CallSiteToString");function Ke(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=Pr,e}s(Ke,"cloneCallSite");function He(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(xr())?0:62;t===1&&o>u&&!_e()&&!r.isEval()&&(o-=u);var a=ye({source:n,line:t,column:o});e.curPosition=a,r=Ke(r);var l=r.getFunctionName;return r.getFunctionName=function(){return e.nextPosition==null?l():e.nextPosition.name||l()},r.getFileName=function(){return a.source},r.getLineNumber=function(){return a.line},r.getColumnNumber=function(){return a.column+1},r.getScriptNameOrSourceURL=function(){return a.source},r}var c=r.isEval()&&r.getEvalOrigin();return c&&(c=Ye(c),r=Ke(r),r.getEvalOrigin=function(){return c}),r}s(He,"wrapCallSite");function Br(r,e){de&&(I={},Q={});for(var n=r.name||"Error",t=r.message||"",o=n+": "+t,i={nextPosition:null,curPosition:null},u=[],a=e.length-1;a>=0;a--)u.push(`
|
|
2
|
+
at `+He(e[a],i)),i.nextPosition=i.curPosition;return i.curPosition=i.nextPosition=null,o+u.reverse().join("")}s(Br,"prepareStackTrace");function er(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}s(er,"getErrorSource");function qr(r){var e=er(r),n=Gr();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),e&&(console.error(),console.error(e)),console.error(r.stack),Ir(1)}s(qr,"printErrorAndExit");function Fr(){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 qr(arguments[1])}return r.apply(this,arguments)}}s(Fr,"shimEmitUncaughtException");var jr=R.slice(0),Ur=N.slice(0);T.wrapCallSite=He;T.getErrorSource=er;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=Je(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),Xe||(Xe=!0,Error.prepareStackTrace=Br),!Ze){var t="handleUncaughtExceptions"in r?r.handleUncaughtExceptions:!0;try{var o=Je(pe,"worker_threads");o.isMainThread===!1&&(t=!1)}catch{}t&&Nr()&&(Ze=!0,Fr())}};T.resetRetrieveHandlers=function(){R.length=0,N.length=0,R=jr.slice(0),N=Ur.slice(0),Se=Y(N),me=Y(R)}});rr().install({environment:"node",handleUncaughtExceptions:!1});
|
|
5
|
+
|
|
1
6
|
var __defProp = Object.defineProperty;
|
|
2
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
8
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
5
11
|
var __export = (target, all) => {
|
|
6
12
|
for (var name in all)
|
|
7
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -145,6 +151,7 @@ function split(value) {
|
|
|
145
151
|
end--;
|
|
146
152
|
return result.slice(start, end).split(/\0/g);
|
|
147
153
|
}
|
|
154
|
+
__name(split, "split");
|
|
148
155
|
function splitSeparateNumbers(value) {
|
|
149
156
|
const words = split(value);
|
|
150
157
|
for (let i = 0; i < words.length; i++) {
|
|
@@ -157,6 +164,7 @@ function splitSeparateNumbers(value) {
|
|
|
157
164
|
}
|
|
158
165
|
return words;
|
|
159
166
|
}
|
|
167
|
+
__name(splitSeparateNumbers, "splitSeparateNumbers");
|
|
160
168
|
function pascalCase(input, options) {
|
|
161
169
|
const [prefix, words, suffix] = splitPrefixSuffix(input, options);
|
|
162
170
|
const lower = lowerFactory(options?.locale);
|
|
@@ -164,15 +172,19 @@ function pascalCase(input, options) {
|
|
|
164
172
|
const transform = options?.mergeAmbiguousCharacters ? capitalCaseTransformFactory(lower, upper) : pascalCaseTransformFactory(lower, upper);
|
|
165
173
|
return prefix + words.map(transform).join(options?.delimiter ?? "") + suffix;
|
|
166
174
|
}
|
|
175
|
+
__name(pascalCase, "pascalCase");
|
|
167
176
|
function lowerFactory(locale) {
|
|
168
177
|
return locale === false ? (input) => input.toLowerCase() : (input) => input.toLocaleLowerCase(locale);
|
|
169
178
|
}
|
|
179
|
+
__name(lowerFactory, "lowerFactory");
|
|
170
180
|
function upperFactory(locale) {
|
|
171
181
|
return locale === false ? (input) => input.toUpperCase() : (input) => input.toLocaleUpperCase(locale);
|
|
172
182
|
}
|
|
183
|
+
__name(upperFactory, "upperFactory");
|
|
173
184
|
function capitalCaseTransformFactory(lower, upper) {
|
|
174
185
|
return (word) => `${upper(word[0])}${lower(word.slice(1))}`;
|
|
175
186
|
}
|
|
187
|
+
__name(capitalCaseTransformFactory, "capitalCaseTransformFactory");
|
|
176
188
|
function pascalCaseTransformFactory(lower, upper) {
|
|
177
189
|
return (word, index) => {
|
|
178
190
|
const char0 = word[0];
|
|
@@ -180,6 +192,7 @@ function pascalCaseTransformFactory(lower, upper) {
|
|
|
180
192
|
return initial + lower(word.slice(1));
|
|
181
193
|
};
|
|
182
194
|
}
|
|
195
|
+
__name(pascalCaseTransformFactory, "pascalCaseTransformFactory");
|
|
183
196
|
function splitPrefixSuffix(input, options = {}) {
|
|
184
197
|
const splitFn = options.split ?? (options.separateNumbers ? splitSeparateNumbers : split);
|
|
185
198
|
const prefixCharacters = options.prefixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
|
|
@@ -205,6 +218,7 @@ function splitPrefixSuffix(input, options = {}) {
|
|
|
205
218
|
input.slice(suffixIndex)
|
|
206
219
|
];
|
|
207
220
|
}
|
|
221
|
+
__name(splitPrefixSuffix, "splitPrefixSuffix");
|
|
208
222
|
|
|
209
223
|
// shared/naming/logical-names.ts
|
|
210
224
|
var cfLogicalNames = {
|
|
@@ -1548,7 +1562,7 @@ var cfLogicalNames = {
|
|
|
1548
1562
|
});
|
|
1549
1563
|
}
|
|
1550
1564
|
};
|
|
1551
|
-
var buildCfLogicalName = ({
|
|
1565
|
+
var buildCfLogicalName = /* @__PURE__ */ __name(({
|
|
1552
1566
|
stpResourceName,
|
|
1553
1567
|
specifier,
|
|
1554
1568
|
suffix
|
|
@@ -1558,15 +1572,15 @@ var buildCfLogicalName = ({
|
|
|
1558
1572
|
const resolvedSpecifier = specifier ? `${specifier.type}${specifier.typeIndex !== void 0 ? specifier.typeIndex : ""}${specifier.subtype !== void 0 ? `-${specifier.subtype}` : ""}` : "";
|
|
1559
1573
|
const resolvedSuffix = `${splittedType[splittedType.length - 1]}${suffix.index !== void 0 ? suffix.index : ""}`;
|
|
1560
1574
|
return pascalCase(`${resolvedParentName}-${resolvedSpecifier}-${resolvedSuffix}`);
|
|
1561
|
-
};
|
|
1562
|
-
var getSpecifierForDomainResource = (fullyQualifiedDomainName) => {
|
|
1575
|
+
}, "buildCfLogicalName");
|
|
1576
|
+
var getSpecifierForDomainResource = /* @__PURE__ */ __name((fullyQualifiedDomainName) => {
|
|
1563
1577
|
if (pascalCase(fullyQualifiedDomainName).replace("_", "").length < 85) {
|
|
1564
1578
|
return pascalCase(fullyQualifiedDomainName).replace("_", "");
|
|
1565
1579
|
}
|
|
1566
1580
|
const splittedDomain = fullyQualifiedDomainName.split(".").map((subdomain) => subdomain.split("-")).flat();
|
|
1567
1581
|
const maxCharactersPerWord = Math.floor(85 / splittedDomain.length);
|
|
1568
1582
|
return splittedDomain.map((word) => pascalCase(word.slice(0, maxCharactersPerWord)).replace("_", "")).join("");
|
|
1569
|
-
};
|
|
1583
|
+
}, "getSpecifierForDomainResource");
|
|
1570
1584
|
|
|
1571
1585
|
// src/api/npm/ts/child-resources.ts
|
|
1572
1586
|
var CHILD_RESOURCES = {
|
|
@@ -2629,6 +2643,9 @@ var getTypeSymbol = Symbol.for("stacktape:getType");
|
|
|
2629
2643
|
var getPropertiesSymbol = Symbol.for("stacktape:getProperties");
|
|
2630
2644
|
var getOverridesSymbol = Symbol.for("stacktape:getOverrides");
|
|
2631
2645
|
var ResourceParamReference = class {
|
|
2646
|
+
static {
|
|
2647
|
+
__name(this, "ResourceParamReference");
|
|
2648
|
+
}
|
|
2632
2649
|
constructor(resourceName, param) {
|
|
2633
2650
|
this.__resourceName = resourceName;
|
|
2634
2651
|
this.__param = param;
|
|
@@ -2645,12 +2662,18 @@ var ResourceParamReference = class {
|
|
|
2645
2662
|
}
|
|
2646
2663
|
};
|
|
2647
2664
|
var BaseTypeProperties = class {
|
|
2665
|
+
static {
|
|
2666
|
+
__name(this, "BaseTypeProperties");
|
|
2667
|
+
}
|
|
2648
2668
|
constructor(type, properties) {
|
|
2649
2669
|
this.type = type;
|
|
2650
2670
|
this.properties = properties;
|
|
2651
2671
|
}
|
|
2652
2672
|
};
|
|
2653
2673
|
var BaseResource = class {
|
|
2674
|
+
static {
|
|
2675
|
+
__name(this, "BaseResource");
|
|
2676
|
+
}
|
|
2654
2677
|
constructor(name, type, properties, overrides) {
|
|
2655
2678
|
this._resourceName = name;
|
|
2656
2679
|
this._type = type;
|
|
@@ -2724,13 +2747,14 @@ Remove the override, run 'stacktape compile:template' command, and find the logi
|
|
|
2724
2747
|
}
|
|
2725
2748
|
return transformedOverrides;
|
|
2726
2749
|
}
|
|
2727
|
-
|
|
2750
|
+
__name(transformOverridesToLogicalNames, "transformOverridesToLogicalNames");
|
|
2751
|
+
var defineConfig = /* @__PURE__ */ __name((configFn) => {
|
|
2728
2752
|
return (params) => {
|
|
2729
2753
|
const config = configFn(params);
|
|
2730
2754
|
return transformConfigWithResources(config);
|
|
2731
2755
|
};
|
|
2732
|
-
};
|
|
2733
|
-
var transformConfigWithResources = (config) => {
|
|
2756
|
+
}, "defineConfig");
|
|
2757
|
+
var transformConfigWithResources = /* @__PURE__ */ __name((config) => {
|
|
2734
2758
|
if (!config || typeof config !== "object") {
|
|
2735
2759
|
return config;
|
|
2736
2760
|
}
|
|
@@ -2745,8 +2769,8 @@ var transformConfigWithResources = (config) => {
|
|
|
2745
2769
|
}
|
|
2746
2770
|
}
|
|
2747
2771
|
return result;
|
|
2748
|
-
};
|
|
2749
|
-
var transformEnvironment = (env) => {
|
|
2772
|
+
}, "transformConfigWithResources");
|
|
2773
|
+
var transformEnvironment = /* @__PURE__ */ __name((env) => {
|
|
2750
2774
|
if (!env || typeof env !== "object" || Array.isArray(env)) {
|
|
2751
2775
|
return env;
|
|
2752
2776
|
}
|
|
@@ -2754,8 +2778,8 @@ var transformEnvironment = (env) => {
|
|
|
2754
2778
|
name,
|
|
2755
2779
|
value: transformValue(value)
|
|
2756
2780
|
}));
|
|
2757
|
-
};
|
|
2758
|
-
var transformResourceDefinitions = (resources) => {
|
|
2781
|
+
}, "transformEnvironment");
|
|
2782
|
+
var transformResourceDefinitions = /* @__PURE__ */ __name((resources) => {
|
|
2759
2783
|
if (!resources || typeof resources !== "object") {
|
|
2760
2784
|
return resources;
|
|
2761
2785
|
}
|
|
@@ -2776,8 +2800,8 @@ var transformResourceDefinitions = (resources) => {
|
|
|
2776
2800
|
}
|
|
2777
2801
|
}
|
|
2778
2802
|
return result;
|
|
2779
|
-
};
|
|
2780
|
-
var transformScriptDefinitions = (scripts) => {
|
|
2803
|
+
}, "transformResourceDefinitions");
|
|
2804
|
+
var transformScriptDefinitions = /* @__PURE__ */ __name((scripts) => {
|
|
2781
2805
|
if (!scripts || typeof scripts !== "object") {
|
|
2782
2806
|
return scripts;
|
|
2783
2807
|
}
|
|
@@ -2794,8 +2818,8 @@ var transformScriptDefinitions = (scripts) => {
|
|
|
2794
2818
|
}
|
|
2795
2819
|
}
|
|
2796
2820
|
return result;
|
|
2797
|
-
};
|
|
2798
|
-
var transformValue = (value) => {
|
|
2821
|
+
}, "transformScriptDefinitions");
|
|
2822
|
+
var transformValue = /* @__PURE__ */ __name((value) => {
|
|
2799
2823
|
if (value === null || value === void 0) {
|
|
2800
2824
|
return value;
|
|
2801
2825
|
}
|
|
@@ -2831,27 +2855,27 @@ var transformValue = (value) => {
|
|
|
2831
2855
|
return result;
|
|
2832
2856
|
}
|
|
2833
2857
|
return value;
|
|
2834
|
-
};
|
|
2858
|
+
}, "transformValue");
|
|
2835
2859
|
|
|
2836
2860
|
// src/api/npm/ts/directives.ts
|
|
2837
|
-
var $ResourceParam = (resourceName, property) => {
|
|
2861
|
+
var $ResourceParam = /* @__PURE__ */ __name((resourceName, property) => {
|
|
2838
2862
|
return `$ResourceParam('${resourceName}','${property}')`;
|
|
2839
|
-
};
|
|
2840
|
-
var $CfResourceParam = (cloudformationResourceLogicalId, property) => {
|
|
2863
|
+
}, "$ResourceParam");
|
|
2864
|
+
var $CfResourceParam = /* @__PURE__ */ __name((cloudformationResourceLogicalId, property) => {
|
|
2841
2865
|
return `$CfResourceParam('${cloudformationResourceLogicalId}','${property}')`;
|
|
2842
|
-
};
|
|
2843
|
-
var $Secret = (secretName) => {
|
|
2866
|
+
}, "$CfResourceParam");
|
|
2867
|
+
var $Secret = /* @__PURE__ */ __name((secretName) => {
|
|
2844
2868
|
return `$Secret('${secretName}')`;
|
|
2845
|
-
};
|
|
2846
|
-
var $CfFormat = (interpolatedString, ...values) => {
|
|
2869
|
+
}, "$Secret");
|
|
2870
|
+
var $CfFormat = /* @__PURE__ */ __name((interpolatedString, ...values) => {
|
|
2847
2871
|
return `$CfFormat('${interpolatedString}', '${values.join(",")}')`;
|
|
2848
|
-
};
|
|
2849
|
-
var $CfStackOutput = (stackName, outputName) => {
|
|
2872
|
+
}, "$CfFormat");
|
|
2873
|
+
var $CfStackOutput = /* @__PURE__ */ __name((stackName, outputName) => {
|
|
2850
2874
|
return `$CfStackOutput('${stackName}','${outputName}')`;
|
|
2851
|
-
};
|
|
2852
|
-
var $GitInfo = () => {
|
|
2875
|
+
}, "$CfStackOutput");
|
|
2876
|
+
var $GitInfo = /* @__PURE__ */ __name(() => {
|
|
2853
2877
|
return "$GitInfo()";
|
|
2854
|
-
};
|
|
2878
|
+
}, "$GitInfo");
|
|
2855
2879
|
|
|
2856
2880
|
// src/api/npm/ts/global-aws-services.ts
|
|
2857
2881
|
var AWS_SES = "aws:ses";
|
|
@@ -2960,6 +2984,9 @@ var REFERENCEABLE_PARAMS = {
|
|
|
2960
2984
|
var getParamReferenceSymbol2 = Symbol.for("stacktape:getParamReference");
|
|
2961
2985
|
function createResourceClass(className, resourceType) {
|
|
2962
2986
|
const ResourceClass = class extends BaseResource {
|
|
2987
|
+
static {
|
|
2988
|
+
__name(this, "ResourceClass");
|
|
2989
|
+
}
|
|
2963
2990
|
constructor(name, properties, overrides) {
|
|
2964
2991
|
super(name, resourceType, properties, overrides);
|
|
2965
2992
|
}
|
|
@@ -2977,6 +3004,7 @@ function createResourceClass(className, resourceType) {
|
|
|
2977
3004
|
}
|
|
2978
3005
|
return ResourceClass;
|
|
2979
3006
|
}
|
|
3007
|
+
__name(createResourceClass, "createResourceClass");
|
|
2980
3008
|
var RelationalDatabase = createResourceClass("RelationalDatabase", "relational-database");
|
|
2981
3009
|
var WebService = createResourceClass("WebService", "web-service");
|
|
2982
3010
|
var PrivateService = createResourceClass("PrivateService", "private-service");
|
|
@@ -3007,6 +3035,9 @@ var Bastion = createResourceClass("Bastion", "bastion");
|
|
|
3007
3035
|
// src/api/npm/ts/type-properties.ts
|
|
3008
3036
|
function createTypePropertiesClass(className, typeValue) {
|
|
3009
3037
|
const TypePropertiesClass = class extends BaseTypeProperties {
|
|
3038
|
+
static {
|
|
3039
|
+
__name(this, "TypePropertiesClass");
|
|
3040
|
+
}
|
|
3010
3041
|
constructor(properties) {
|
|
3011
3042
|
super(typeValue, properties);
|
|
3012
3043
|
}
|
|
@@ -3014,6 +3045,7 @@ function createTypePropertiesClass(className, typeValue) {
|
|
|
3014
3045
|
Object.defineProperty(TypePropertiesClass, "name", { value: className });
|
|
3015
3046
|
return TypePropertiesClass;
|
|
3016
3047
|
}
|
|
3048
|
+
__name(createTypePropertiesClass, "createTypePropertiesClass");
|
|
3017
3049
|
var RdsEnginePostgres = createTypePropertiesClass("RdsEnginePostgres", "postgres");
|
|
3018
3050
|
var RdsEngineMariadb = createTypePropertiesClass("RdsEngineMariadb", "mariadb");
|
|
3019
3051
|
var RdsEngineMysql = createTypePropertiesClass("RdsEngineMysql", "mysql");
|
|
@@ -3230,3 +3262,4 @@ var LambdaEfsMount = createTypePropertiesClass("LambdaEfsMount", "efs");
|
|
|
3230
3262
|
transformConfigWithResources,
|
|
3231
3263
|
transformValue
|
|
3232
3264
|
});
|
|
3265
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stacktape",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.0-alpha.2",
|
|
4
4
|
"description": "PaaS 2.0 that deploys to your own AWS account.",
|
|
5
5
|
"author": "Stacktape team <support@stacktape.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"types": "./index.d.ts",
|
|
38
38
|
"dependencies": {},
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@stacktape/cli-win32-x64": "2.
|
|
41
|
-
"@stacktape/cli-linux-x64": "2.
|
|
42
|
-
"@stacktape/cli-linux-arm64": "2.
|
|
43
|
-
"@stacktape/cli-darwin-x64": "2.
|
|
44
|
-
"@stacktape/cli-darwin-arm64": "2.
|
|
45
|
-
"@stacktape/cli-alpine-x64": "2.
|
|
40
|
+
"@stacktape/cli-win32-x64": "2.23.0-alpha.2",
|
|
41
|
+
"@stacktape/cli-linux-x64": "2.23.0-alpha.2",
|
|
42
|
+
"@stacktape/cli-linux-arm64": "2.23.0-alpha.2",
|
|
43
|
+
"@stacktape/cli-darwin-x64": "2.23.0-alpha.2",
|
|
44
|
+
"@stacktape/cli-darwin-arm64": "2.23.0-alpha.2",
|
|
45
|
+
"@stacktape/cli-alpine-x64": "2.23.0-alpha.2"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/sdk.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var nr=Object.defineProperty;var s=(r,e)=>nr(r,"name",{value:e,configurable:!0});var w=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Me=w(H=>{var we="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");H.encode=function(r){if(0<=r&&r<we.length)return we[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,a=43,l=47,c=26,f=52;return e<=r&&r<=n?r-e:t<=r&&r<=o?r-t+c:i<=r&&r<=u?r-i+f:r==a?62:r==l?63:-1}});var ne=w(re=>{var Le=Me(),ee=5,Ee=1<<ee,Ae=Ee-1,Oe=Ee;function tr(r){return r<0?(-r<<1)+1:(r<<1)+0}s(tr,"toVLQSigned");function or(r){var e=(r&1)===1,n=r>>1;return e?-n:n}s(or,"fromVLQSigned");re.encode=s(function(e){var n="",t,o=tr(e);do t=o&Ae,o>>>=ee,o>0&&(t|=Oe),n+=Le.encode(t);while(o>0);return n},"base64VLQ_encode");re.decode=s(function(e,n,t){var o=e.length,i=0,u=0,a,l;do{if(n>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(l=Le.decode(e.charCodeAt(n++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(n-1));a=!!(l&Oe),l&=Ae,i=i+(l<<u),u+=ee}while(a);t.value=or(i),t.rest=n},"base64VLQ_decode")});var F=w(y=>{function ir(r,e,n){if(e in r)return r[e];if(arguments.length===3)return n;throw new Error('"'+e+'" is a required argument.')}s(ir,"getArg");y.getArg=ir;var be=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ur=/^data:.+\,.+$/;function D(r){var e=r.match(be);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}s(D,"urlParse");y.urlParse=D;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}s(B,"urlGenerate");y.urlGenerate=B;function te(r){var e=r,n=D(r);if(n){if(!n.path)return r;e=n.path}for(var t=y.isAbsolute(e),o=e.split(/\/+/),i,u=0,a=o.length-1;a>=0;a--)i=o[a],i==="."?o.splice(a,1):i===".."?u++:u>0&&(i===""?(o.splice(a+1,u),u=0):(o.splice(a,2),u--));return e=o.join("/"),e===""&&(e=t?"/":"."),n?(n.path=e,B(n)):e}s(te,"normalize");y.normalize=te;function Re(r,e){r===""&&(r="."),e===""&&(e=".");var n=D(e),t=D(r);if(t&&(r=t.path||"/"),n&&!n.scheme)return t&&(n.scheme=t.scheme),B(n);if(n||e.match(ur))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}s(Re,"join");y.join=Re;y.isAbsolute=function(r){return r.charAt(0)==="/"||be.test(r)};function sr(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)}s(sr,"relative");y.relative=sr;var Ne=function(){var r=Object.create(null);return!("__proto__"in r)}();function xe(r){return r}s(xe,"identity");function lr(r){return Ge(r)?"$"+r:r}s(lr,"toSetString");y.toSetString=Ne?xe:lr;function ar(r){return Ge(r)?r.slice(1):r}s(ar,"fromSetString");y.fromSetString=Ne?xe:ar;function Ge(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}s(Ge,"isProtoString");function cr(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)}s(cr,"compareByOriginalPositions");y.compareByOriginalPositions=cr;function fr(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)}s(fr,"compareByGeneratedPositionsDeflated");y.compareByGeneratedPositionsDeflated=fr;function q(r,e){return r===e?0:r===null?1:e===null?-1:r>e?1:-1}s(q,"strcmp");function hr(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)}s(hr,"compareByGeneratedPositionsInflated");y.compareByGeneratedPositionsInflated=hr;function gr(r){return JSON.parse(r.replace(/^\)]}'[^\n]*\n/,""))}s(gr,"parseSourceMapInput");y.parseSourceMapInput=gr;function dr(r,e,n){if(e=e||"",r&&(r[r.length-1]!=="/"&&e[0]!=="/"&&(r+="/"),e=r+e),n){var t=D(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=Re(B(t),e)}return te(e)}s(dr,"computeSourceURL");y.computeSourceURL=dr});var ue=w(Ie=>{var oe=F(),ie=Object.prototype.hasOwnProperty,x=typeof Map<"u";function b(){this._array=[],this._set=x?new Map:Object.create(null)}s(b,"ArraySet");b.fromArray=s(function(e,n){for(var t=new b,o=0,i=e.length;o<i;o++)t.add(e[o],n);return t},"ArraySet_fromArray");b.prototype.size=s(function(){return x?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");b.prototype.add=s(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)},"ArraySet_add");b.prototype.has=s(function(e){if(x)return this._set.has(e);var n=oe.toSetString(e);return ie.call(this._set,n)},"ArraySet_has");b.prototype.indexOf=s(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.')},"ArraySet_indexOf");b.prototype.at=s(function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},"ArraySet_at");b.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");Ie.ArraySet=b});var Be=w(Pe=>{var Te=F();function vr(r,e){var n=r.generatedLine,t=e.generatedLine,o=r.generatedColumn,i=e.generatedColumn;return t>n||t==n&&i>=o||Te.compareByGeneratedPositionsInflated(r,e)<=0}s(vr,"generatedPositionAfter");function W(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(W,"MappingList");W.prototype.unsortedForEach=s(function(e,n){this._array.forEach(e,n)},"MappingList_forEach");W.prototype.add=s(function(e){vr(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");W.prototype.toArray=s(function(){return this._sorted||(this._array.sort(Te.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");Pe.MappingList=W});var se=w(qe=>{var $=ne(),_=F(),J=ue().ArraySet,pr=Be().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 pr,this._sourcesContents=null}s(E,"SourceMapGenerator");E.prototype._version=3;E.fromSourceMap=s(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},"SourceMapGenerator_fromSourceMap");E.prototype.addMapping=s(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})},"SourceMapGenerator_addMapping");E.prototype.setSourceContent=s(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))},"SourceMapGenerator_setSourceContent");E.prototype.applySourceMap=s(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,a=new J;this._mappings.unsortedForEach(function(l){if(l.source===o&&l.originalLine!=null){var c=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});c.source!=null&&(l.source=c.source,t!=null&&(l.source=_.join(t,l.source)),i!=null&&(l.source=_.relative(i,l.source)),l.originalLine=c.line,l.originalColumn=c.column,c.name!=null&&(l.name=c.name))}var f=l.source;f!=null&&!u.has(f)&&u.add(f);var d=l.name;d!=null&&!a.has(d)&&a.add(d)},this),this._sources=u,this._names=a,e.sources.forEach(function(l){var c=e.sourceContentFor(l);c!=null&&(t!=null&&(l=_.join(t,l)),i!=null&&(l=_.relative(i,l)),this.setSourceContent(l,c))},this)},"SourceMapGenerator_applySourceMap");E.prototype._validateMapping=s(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}))}},"SourceMapGenerator_validateMapping");E.prototype._serializeMappings=s(function(){for(var e=0,n=1,t=0,o=0,i=0,u=0,a="",l,c,f,d,g=this._mappings.toArray(),v=0,L=g.length;v<L;v++){if(c=g[v],l="",c.generatedLine!==n)for(e=0;c.generatedLine!==n;)l+=";",n++;else if(v>0){if(!_.compareByGeneratedPositionsInflated(c,g[v-1]))continue;l+=","}l+=$.encode(c.generatedColumn-e),e=c.generatedColumn,c.source!=null&&(d=this._sources.indexOf(c.source),l+=$.encode(d-u),u=d,l+=$.encode(c.originalLine-1-o),o=c.originalLine-1,l+=$.encode(c.originalColumn-t),t=c.originalColumn,c.name!=null&&(f=this._names.indexOf(c.name),l+=$.encode(f-i),i=f)),a+=l}return a},"SourceMapGenerator_serializeMappings");E.prototype._generateSourcesContent=s(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)},"SourceMapGenerator_generateSourcesContent");E.prototype.toJSON=s(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},"SourceMapGenerator_toJSON");E.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");qe.SourceMapGenerator=E});var Fe=w(G=>{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,a=o(n,t[u],!0);return a===0?u:a>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}s(le,"recursiveSearch");G.search=s(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},"search")});var Ue=w(je=>{function ae(r,e,n){var t=r[e];r[e]=r[n],r[n]=t}s(ae,"swap");function _r(r,e){return Math.round(r+Math.random()*(e-r))}s(_r,"randomIntInRange");function ce(r,e,n,t){if(n<t){var o=_r(n,t),i=n-1;ae(r,o,t);for(var u=r[t],a=n;a<t;a++)e(r[a],u)<=0&&(i+=1,ae(r,i,a));ae(r,i+1,a);var l=i+1;ce(r,e,n,l-1),ce(r,e,l+1,t)}}s(ce,"doQuickSort");je.quickSort=function(r,e){ce(r,e,0,r.length-1)}});var $e=w(X=>{var h=F(),fe=Fe(),j=ue().ArraySet,mr=ne(),k=Ue().quickSort;function p(r,e){var n=r;return typeof r=="string"&&(n=h.parseSourceMapInput(r)),n.sections!=null?new A(n,e):new m(n,e)}s(p,"SourceMapConsumer");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:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});p.prototype.__originalMappings=null;Object.defineProperty(p.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});p.prototype._charIsMappingSeparator=s(function(e,n){var t=e.charAt(n);return t===";"||t===","},"SourceMapConsumer_charIsMappingSeparator");p.prototype._parseMappings=s(function(e,n){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");p.GENERATED_ORDER=1;p.ORIGINAL_ORDER=2;p.GREATEST_LOWER_BOUND=1;p.LEAST_UPPER_BOUND=2;p.prototype.eachMapping=s(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 a=this.sourceRoot;u.map(function(l){var c=l.source===null?null:this._sources.at(l.source);return c=h.computeSourceURL(a,c,this._sourceMapURL),{source:c,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(e,o)},"SourceMapConsumer_eachMapping");p.prototype.allGeneratedPositionsFor=s(function(e){var n=h.getArg(e,"line"),t={source:h.getArg(e,"source"),originalLine:n,originalColumn:h.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",h.compareByOriginalPositions,fe.LEAST_UPPER_BOUND);if(i>=0){var u=this._originalMappings[i];if(e.column===void 0)for(var a=u.originalLine;u&&u.originalLine===a;)o.push({line:h.getArg(u,"generatedLine",null),column:h.getArg(u,"generatedColumn",null),lastColumn:h.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++i];else for(var l=u.originalColumn;u&&u.originalLine===n&&u.originalColumn==l;)o.push({line:h.getArg(u,"generatedLine",null),column:h.getArg(u,"generatedColumn",null),lastColumn:h.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++i]}return o},"SourceMapConsumer_allGeneratedPositionsFor");X.SourceMapConsumer=p;function m(r,e){var n=r;typeof r=="string"&&(n=h.parseSourceMapInput(r));var t=h.getArg(n,"version"),o=h.getArg(n,"sources"),i=h.getArg(n,"names",[]),u=h.getArg(n,"sourceRoot",null),a=h.getArg(n,"sourcesContent",null),l=h.getArg(n,"mappings"),c=h.getArg(n,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);u&&(u=h.normalize(u)),o=o.map(String).map(h.normalize).map(function(f){return u&&h.isAbsolute(u)&&h.isAbsolute(f)?h.relative(u,f):f}),this._names=j.fromArray(i.map(String),!0),this._sources=j.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(f){return h.computeSourceURL(u,f,e)}),this.sourceRoot=u,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=e,this.file=c}s(m,"BasicSourceMapConsumer");m.prototype=Object.create(p.prototype);m.prototype.consumer=p;m.prototype._findSourceIndex=function(r){var e=r;if(this.sourceRoot!=null&&(e=h.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=s(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 h.computeSourceURL(t.sourceRoot,v,n)});for(var u=e._mappings.toArray().slice(),a=t.__generatedMappings=[],l=t.__originalMappings=[],c=0,f=u.length;c<f;c++){var d=u[c],g=new De;g.generatedLine=d.generatedLine,g.generatedColumn=d.generatedColumn,d.source&&(g.source=i.indexOf(d.source),g.originalLine=d.originalLine,g.originalColumn=d.originalColumn,d.name&&(g.name=o.indexOf(d.name)),l.push(g)),a.push(g)}return k(t.__originalMappings,h.compareByOriginalPositions),t},"SourceMapConsumer_fromSourceMap");m.prototype._version=3;Object.defineProperty(m.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function De(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(De,"Mapping");m.prototype._parseMappings=s(function(e,n){for(var t=1,o=0,i=0,u=0,a=0,l=0,c=e.length,f=0,d={},g={},v=[],L=[],C,V,S,P,Ce;f<c;)if(e.charAt(f)===";")t++,f++,o=0;else if(e.charAt(f)===",")f++;else{for(C=new De,C.generatedLine=t,P=f;P<c&&!this._charIsMappingSeparator(e,P);P++);if(V=e.slice(f,P),S=d[V],S)f+=V.length;else{for(S=[];f<P;)mr.decode(e,f,g),Ce=g.value,f=g.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");d[V]=S}C.generatedColumn=o+S[0],o=C.generatedColumn,S.length>1&&(C.source=a+S[1],a+=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=l+S[4],l+=S[4])),L.push(C),typeof C.originalLine=="number"&&v.push(C)}k(L,h.compareByGeneratedPositionsDeflated),this.__generatedMappings=L,k(v,h.compareByOriginalPositions),this.__originalMappings=v},"SourceMapConsumer_parseMappings");m.prototype._findMapping=s(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)},"SourceMapConsumer_findMapping");m.prototype.computeColumnSpans=s(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}},"SourceMapConsumer_computeColumnSpans");m.prototype.originalPositionFor=s(function(e){var n={generatedLine:h.getArg(e,"line"),generatedColumn:h.getArg(e,"column")},t=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",h.compareByGeneratedPositionsDeflated,h.getArg(e,"bias",p.GREATEST_LOWER_BOUND));if(t>=0){var o=this._generatedMappings[t];if(o.generatedLine===n.generatedLine){var i=h.getArg(o,"source",null);i!==null&&(i=this._sources.at(i),i=h.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var u=h.getArg(o,"name",null);return u!==null&&(u=this._names.at(u)),{source:i,line:h.getArg(o,"originalLine",null),column:h.getArg(o,"originalColumn",null),name:u}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");m.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");m.prototype.sourceContentFor=s(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=h.relative(this.sourceRoot,o));var i;if(this.sourceRoot!=null&&(i=h.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.')},"SourceMapConsumer_sourceContentFor");m.prototype.generatedPositionFor=s(function(e){var n=h.getArg(e,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var t={source:n,originalLine:h.getArg(e,"line"),originalColumn:h.getArg(e,"column")},o=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",h.compareByOriginalPositions,h.getArg(e,"bias",p.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===t.source)return{line:h.getArg(i,"generatedLine",null),column:h.getArg(i,"generatedColumn",null),lastColumn:h.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");X.BasicSourceMapConsumer=m;function A(r,e){var n=r;typeof r=="string"&&(n=h.parseSourceMapInput(r));var t=h.getArg(n,"version"),o=h.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 a=h.getArg(u,"offset"),l=h.getArg(a,"line"),c=h.getArg(a,"column");if(l<i.line||l===i.line&&c<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=a,{generatedOffset:{generatedLine:l+1,generatedColumn:c+1},consumer:new p(h.getArg(u,"map"),e)}})}s(A,"IndexedSourceMapConsumer");A.prototype=Object.create(p.prototype);A.prototype.constructor=p;A.prototype._version=3;Object.defineProperty(A.prototype,"sources",{get:s(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},"get")});A.prototype.originalPositionFor=s(function(e){var n={generatedLine:h.getArg(e,"line"),generatedColumn:h.getArg(e,"column")},t=fe.search(n,this._sections,function(i,u){var a=i.generatedLine-u.generatedOffset.generatedLine;return a||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}},"IndexedSourceMapConsumer_originalPositionFor");A.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");A.prototype.sourceContentFor=s(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.')},"IndexedSourceMapConsumer_sourceContentFor");A.prototype.generatedPositionFor=s(function(e){for(var n=0;n<this._sections.length;n++){var t=this._sections[n];if(t.consumer._findSourceIndex(h.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}},"IndexedSourceMapConsumer_generatedPositionFor");A.prototype._parseMappings=s(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 a=i[u],l=o.consumer._sources.at(a.source);l=h.computeSourceURL(o.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var c=null;a.name&&(c=o.consumer._names.at(a.name),this._names.add(c),c=this._names.indexOf(c));var f={source:l,generatedLine:a.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(o.generatedOffset.generatedLine===a.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:c};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}k(this.__generatedMappings,h.compareByGeneratedPositionsDeflated),k(this.__originalMappings,h.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");X.IndexedSourceMapConsumer=A});var ze=w(ke=>{var Sr=se().SourceMapGenerator,Z=F(),yr=/(\r?\n)/,Cr=10,U="$$$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[U]=!0,t!=null&&this.add(t)}s(M,"SourceNode");M.fromStringWithSourceMap=s(function(e,n,t){var o=new M,i=e.split(yr),u=0,a=s(function(){var g=L(),v=L()||"";return g+v;function L(){return u<i.length?i[u++]:void 0}},"shiftNextLine"),l=1,c=0,f=null;return n.eachMapping(function(g){if(f!==null)if(l<g.generatedLine)d(f,a()),l++,c=0;else{var v=i[u]||"",L=v.substr(0,g.generatedColumn-c);i[u]=v.substr(g.generatedColumn-c),c=g.generatedColumn,d(f,L),f=g;return}for(;l<g.generatedLine;)o.add(a()),l++;if(c<g.generatedColumn){var v=i[u]||"";o.add(v.substr(0,g.generatedColumn)),i[u]=v.substr(g.generatedColumn),c=g.generatedColumn}f=g},this),u<i.length&&(f&&d(f,a()),o.add(i.splice(u).join(""))),n.sources.forEach(function(g){var v=n.sourceContentFor(g);v!=null&&(t!=null&&(g=Z.join(t,g)),o.setSourceContent(g,v))}),o;function d(g,v){if(g===null||g.source===void 0)o.add(v);else{var L=t?Z.join(t,g.source):g.source;o.add(new M(g.originalLine,g.originalColumn,L,v,g.name))}}s(d,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");M.prototype.add=s(function(e){if(Array.isArray(e))e.forEach(function(n){this.add(n)},this);else if(e[U]||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},"SourceNode_add");M.prototype.prepend=s(function(e){if(Array.isArray(e))for(var n=e.length-1;n>=0;n--)this.prepend(e[n]);else if(e[U]||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},"SourceNode_prepend");M.prototype.walk=s(function(e){for(var n,t=0,o=this.children.length;t<o;t++)n=this.children[t],n[U]?n.walk(e):n!==""&&e(n,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");M.prototype.join=s(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},"SourceNode_join");M.prototype.replaceRight=s(function(e,n){var t=this.children[this.children.length-1];return t[U]?t.replaceRight(e,n):typeof t=="string"?this.children[this.children.length-1]=t.replace(e,n):this.children.push("".replace(e,n)),this},"SourceNode_replaceRight");M.prototype.setSourceContent=s(function(e,n){this.sourceContents[Z.toSetString(e)]=n},"SourceNode_setSourceContent");M.prototype.walkSourceContents=s(function(e){for(var n=0,t=this.children.length;n<t;n++)this.children[n][U]&&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]])},"SourceNode_walkSourceContents");M.prototype.toString=s(function(){var e="";return this.walk(function(n){e+=n}),e},"SourceNode_toString");M.prototype.toStringWithSourceMap=s(function(e){var n={code:"",line:1,column:0},t=new Sr(e),o=!1,i=null,u=null,a=null,l=null;return this.walk(function(c,f){n.code+=c,f.source!==null&&f.line!==null&&f.column!==null?((i!==f.source||u!==f.line||a!==f.column||l!==f.name)&&t.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name}),i=f.source,u=f.line,a=f.column,l=f.name,o=!0):o&&(t.addMapping({generated:{line:n.line,column:n.column}}),i=null,o=!1);for(var d=0,g=c.length;d<g;d++)c.charCodeAt(d)===Cr?(n.line++,n.column=0,d+1===g?(i=null,o=!1):o&&t.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name})):n.column++}),this.walkSourceContents(function(c,f){t.setSourceContent(c,f)}),{code:n.code,map:t}},"SourceNode_toStringWithSourceMap");ke.SourceNode=M});var Qe=w(K=>{K.SourceMapGenerator=se().SourceMapGenerator;K.SourceMapConsumer=$e().SourceMapConsumer;K.SourceNode=ze().SourceNode});var We=w((an,Ve)=>{var wr=Object.prototype.toString,he=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function Mr(r){return wr.call(r).slice(8,-1)==="ArrayBuffer"}s(Mr,"isArrayBuffer");function Lr(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)))}s(Lr,"fromArrayBuffer");function Er(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)}s(Er,"fromString");function Ar(r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return Mr(r)?Lr(r,e,n):typeof r=="string"?Er(r,e):he?Buffer.from(r):new Buffer(r)}s(Ar,"bufferFrom");Ve.exports=Ar});var rr=w((T,pe)=>{var Or=Qe().SourceMapConsumer,ge=require("path"),O;try{O=require("fs"),(!O.existsSync||!O.readFileSync)&&(O=null)}catch{}var br=We();function Je(r,e){return r.require(e)}s(Je,"dynamicRequire");var Xe=!1,Ze=!1,de=!1,z="auto",I={},Q={},Rr=/^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")}s(_e,"isInBrowser");function Nr(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}s(Nr,"hasGlobalProcessEventEmitter");function xr(){return typeof process=="object"&&process!==null?process.version:""}s(xr,"globalProcessVersion");function Gr(){if(typeof process=="object"&&process!==null)return process.stderr}s(Gr,"globalProcessStderr");function Ir(r){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(r)}s(Ir,"globalProcessExit");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}}s(Y,"handlerExec");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)}s(ve,"supportRelativeURL");function Tr(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}s(Tr,"retrieveSourceMapURL");var Se=Y(N);N.push(function(r){var e=Tr(r);if(!e)return null;var n;if(Rr.test(e)){var t=e.slice(e.indexOf(",")+1);n=br(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 Or(n.map)},e.map.sourcesContent&&e.map.sources.forEach(function(o,i){var u=e.map.sourcesContent[i];if(u){var a=ve(e.url,o);I[a]=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}s(ye,"mapSourcePosition");function Ye(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]+" ("+Ye(e[2])+")":r}s(Ye,"mapEvalOrigin");function Pr(){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,a=this.isConstructor(),l=!(this.isToplevel()||a);if(l){var c=this.getTypeName();c==="[object Object]"&&(c="null");var f=this.getMethodName();i?(c&&i.indexOf(c)!=0&&(o+=c+"."),o+=i,f&&i.indexOf("."+f)!=i.length-f.length-1&&(o+=" [as "+f+"]")):o+=c+"."+(f||"<anonymous>")}else a?o+="new "+(i||"<anonymous>"):i?o+=i:(o+=e,u=!1);return u&&(o+=" ("+e+")"),o}s(Pr,"CallSiteToString");function Ke(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=Pr,e}s(Ke,"cloneCallSite");function He(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(xr())?0:62;t===1&&o>u&&!_e()&&!r.isEval()&&(o-=u);var a=ye({source:n,line:t,column:o});e.curPosition=a,r=Ke(r);var l=r.getFunctionName;return r.getFunctionName=function(){return e.nextPosition==null?l():e.nextPosition.name||l()},r.getFileName=function(){return a.source},r.getLineNumber=function(){return a.line},r.getColumnNumber=function(){return a.column+1},r.getScriptNameOrSourceURL=function(){return a.source},r}var c=r.isEval()&&r.getEvalOrigin();return c&&(c=Ye(c),r=Ke(r),r.getEvalOrigin=function(){return c}),r}s(He,"wrapCallSite");function Br(r,e){de&&(I={},Q={});for(var n=r.name||"Error",t=r.message||"",o=n+": "+t,i={nextPosition:null,curPosition:null},u=[],a=e.length-1;a>=0;a--)u.push(`
|
|
2
|
+
at `+He(e[a],i)),i.nextPosition=i.curPosition;return i.curPosition=i.nextPosition=null,o+u.reverse().join("")}s(Br,"prepareStackTrace");function er(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}s(er,"getErrorSource");function qr(r){var e=er(r),n=Gr();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),e&&(console.error(),console.error(e)),console.error(r.stack),Ir(1)}s(qr,"printErrorAndExit");function Fr(){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 qr(arguments[1])}return r.apply(this,arguments)}}s(Fr,"shimEmitUncaughtException");var jr=R.slice(0),Ur=N.slice(0);T.wrapCallSite=He;T.getErrorSource=er;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=Je(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),Xe||(Xe=!0,Error.prepareStackTrace=Br),!Ze){var t="handleUncaughtExceptions"in r?r.handleUncaughtExceptions:!0;try{var o=Je(pe,"worker_threads");o.isMainThread===!1&&(t=!1)}catch{}t&&Nr()&&(Ze=!0,Fr())}};T.resetRetrieveHandlers=function(){R.length=0,N.length=0,R=jr.slice(0),N=Ur.slice(0),Se=Y(N),me=Y(R)}});rr().install({environment:"node",handleUncaughtExceptions:!1});
|
|
5
|
+
|
|
1
6
|
var __create = Object.create;
|
|
2
7
|
var __defProp = Object.defineProperty;
|
|
3
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -16605,3 +16610,4 @@ var Stacktape = class {
|
|
|
16605
16610
|
0 && (module.exports = {
|
|
16606
16611
|
Stacktape
|
|
16607
16612
|
});
|
|
16613
|
+
//# sourceMappingURL=sdk.js.map
|