@sailfish-ai/sf-veritas 0.1.23 → 0.1.24

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/README.md CHANGED
@@ -45,7 +45,7 @@ yarn add @sailfish/sf-veritas
45
45
 
46
46
  - Prevents adding tracing headers (X-Sf3-Rid) to certain domains.
47
47
 
48
- - `siteAndNodeModulesToCollectLocalVariablesOn`: string[]
48
+ - `nodeModulesToCollectLocalVariablesOn`: string[]
49
49
 
50
50
  - Specify packages or modules for capturing local variable values during errors or exceptions. Use ['__all__'] to capture local variables globally.`
51
51
 
@@ -104,3 +104,15 @@ export async function register() {
104
104
  }
105
105
  }
106
106
  ```
107
+ ## Network Hop Summary Statistics
108
+
109
+ ### 📊 Response Time Analysis
110
+
111
+ To evaluate the performance impact of this package, we benchmarked over 1000 HTTP requests with and without the package enabled.
112
+
113
+ | Configuration | Mean (ms) | Median (ms) | Std Dev (ms) | Requests |
114
+ |-------------------|-----------|-------------|--------------|----------|
115
+ | ✅ With Package | 714.17 | 575.00 | 595.92 | 1000 |
116
+ | ❌ Without Package | 715.59 | 541.00 | 643.22 | 1000 |
117
+
118
+ > **Note:** Test results show that the package does not introduce a significant performance slowdown.
@@ -28,7 +28,7 @@
28
28
  ${this.queryType} ${this.operationName}($apiKey: String!, $serviceUuid: String!, $sessionId: String!, $timestampMs: String!, $level: String!, $contents: String!) {
29
29
  ${this.queryName}(apiKey: $apiKey, serviceUuid: $serviceUuid, sessionId: $sessionId, timestampMs: $timestampMs, level: $level, contents: $contents)
30
30
  }
31
- `}}var le,ue,E={},q={},M={},D={};function Fe(){if(le)return D;le=1;var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return D.encode=function(r){if(0<=r&&r<s.length)return s[r];throw new TypeError("Must be between 0 and 63: "+r)},D.decode=function(r){return 65<=r&&r<=90?r-65:97<=r&&r<=122?r-97+26:48<=r&&r<=57?r-48+52:r==43?62:r==47?63:-1},D}function we(){if(ue)return M;ue=1;var s=Fe();return M.encode=function(r){var l,u="",o=function(n){return n<0?1+(-n<<1):0+(n<<1)}(r);do l=31&o,(o>>>=5)>0&&(l|=32),u+=s.encode(l);while(o>0);return u},M.decode=function(r,l,u){var o,n,i,g,p=r.length,C=0,h=0;do{if(l>=p)throw new Error("Expected more digits in base 64 VLQ value.");if((n=s.decode(r.charCodeAt(l++)))===-1)throw new Error("Invalid base64 digit: "+r.charAt(l-1));o=!!(32&n),C+=(n&=31)<<h,h+=5}while(o);u.value=(g=(i=C)>>1,1&~i?g:-g),u.rest=l},M}var de,Ie={};function K(){return de||(de=1,function(s){s.getArg=function(e,t,I){if(t in e)return e[t];if(arguments.length===3)return I;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,l=/^data:.+\,.+$/;function u(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}s.urlParse=u,s.urlGenerate=o;var n,i,g=(n=function(e){var t=e,I=u(e);if(I){if(!I.path)return e;t=I.path}for(var c=s.isAbsolute(t),m=[],f=0,y=0;;){if(f=y,(y=t.indexOf("/",f))===-1){m.push(t.slice(f));break}for(m.push(t.slice(f,y));y<t.length&&t[y]==="/";)y++}var Z,v=0;for(y=m.length-1;y>=0;y--)(Z=m[y])==="."?m.splice(y,1):Z===".."?v++:v>0&&(Z===""?(m.splice(y+1,v),v=0):(m.splice(y,2),v--));return(t=m.join("/"))===""&&(t=c?"/":"."),I?(I.path=t,o(I)):t},i=[],function(e){for(var t=0;t<i.length;t++)if(i[t].input===e){var I=i[0];return i[0]=i[t],i[t]=I,i[0].result}var c=n(e);return i.unshift({input:e,result:c}),i.length>32&&i.pop(),c});function p(e,t){e===""&&(e="."),t===""&&(t=".");var I=u(t),c=u(e);if(c&&(e=c.path||"/"),I&&!I.scheme)return c&&(I.scheme=c.scheme),o(I);if(I||t.match(l))return t;if(c&&!c.host&&!c.path)return c.host=t,o(c);var m=t.charAt(0)==="/"?t:g(e.replace(/\/+$/,"")+"/"+t);return c?(c.path=m,o(c)):m}s.normalize=g,s.join=p,s.isAbsolute=function(e){return e.charAt(0)==="/"||r.test(e)},s.relative=function(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var I=0;t.indexOf(e+"/")!==0;){var c=e.lastIndexOf("/");if(c<0||(e=e.slice(0,c)).match(/^([^\/]+:\/)?\/*$/))return t;++I}return Array(I+1).join("../")+t.substr(e.length+1)};var C=!("__proto__"in Object.create(null));function h(e){return e}function a(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var I=t-10;I>=0;I--)if(e.charCodeAt(I)!==36)return!1;return!0}function d(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s.toSetString=C?h:function(e){return a(e)?"$"+e:e},s.fromSetString=C?h:function(e){return a(e)?e.slice(1):e},s.compareByOriginalPositions=function(e,t,I){var c=d(e.source,t.source);return c!==0||(c=e.originalLine-t.originalLine)!==0||(c=e.originalColumn-t.originalColumn)!==0||I||(c=e.generatedColumn-t.generatedColumn)!==0||(c=e.generatedLine-t.generatedLine)!==0?c:d(e.name,t.name)},s.compareByOriginalPositionsNoSource=function(e,t,I){var c;return(c=e.originalLine-t.originalLine)!==0||(c=e.originalColumn-t.originalColumn)!==0||I||(c=e.generatedColumn-t.generatedColumn)!==0||(c=e.generatedLine-t.generatedLine)!==0?c:d(e.name,t.name)},s.compareByGeneratedPositionsDeflated=function(e,t,I){var c=e.generatedLine-t.generatedLine;return c!==0||(c=e.generatedColumn-t.generatedColumn)!==0||I||(c=d(e.source,t.source))!==0||(c=e.originalLine-t.originalLine)!==0||(c=e.originalColumn-t.originalColumn)!==0?c:d(e.name,t.name)},s.compareByGeneratedPositionsDeflatedNoLine=function(e,t,I){var c=e.generatedColumn-t.generatedColumn;return c!==0||I||(c=d(e.source,t.source))!==0||(c=e.originalLine-t.originalLine)!==0||(c=e.originalColumn-t.originalColumn)!==0?c:d(e.name,t.name)},s.compareByGeneratedPositionsInflated=function(e,t){var I=e.generatedLine-t.generatedLine;return I!==0||(I=e.generatedColumn-t.generatedColumn)!==0||(I=d(e.source,t.source))!==0||(I=e.originalLine-t.originalLine)!==0||(I=e.originalColumn-t.originalColumn)!==0?I:d(e.name,t.name)},s.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},s.computeSourceURL=function(e,t,I){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),I){var c=u(I);if(!c)throw new Error("sourceMapURL could not be parsed");if(c.path){var m=c.path.lastIndexOf("/");m>=0&&(c.path=c.path.substring(0,m+1))}t=p(o(c),t)}return g(t)}}(Ie)),Ie}var pe,ee={};function Ne(){if(pe)return ee;pe=1;var s=K(),r=Object.prototype.hasOwnProperty,l=typeof Map<"u";function u(){this._array=[],this._set=l?new Map:Object.create(null)}return u.fromArray=function(o,n){for(var i=new u,g=0,p=o.length;g<p;g++)i.add(o[g],n);return i},u.prototype.size=function(){return l?this._set.size:Object.getOwnPropertyNames(this._set).length},u.prototype.add=function(o,n){var i=l?o:s.toSetString(o),g=l?this.has(o):r.call(this._set,i),p=this._array.length;g&&!n||this._array.push(o),g||(l?this._set.set(o,p):this._set[i]=p)},u.prototype.has=function(o){if(l)return this._set.has(o);var n=s.toSetString(o);return r.call(this._set,n)},u.prototype.indexOf=function(o){if(l){var n=this._set.get(o);if(n>=0)return n}else{var i=s.toSetString(o);if(r.call(this._set,i))return this._set[i]}throw new Error('"'+o+'" is not in the set.')},u.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},u.prototype.toArray=function(){return this._array.slice()},ee.ArraySet=u,ee}var Ce,he,ne={};function Ee(){if(Ce)return ne;Ce=1;var s=K();function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return r.prototype.unsortedForEach=function(l,u){this._array.forEach(l,u)},r.prototype.add=function(l){var u,o,n,i,g,p;u=this._last,o=l,n=u.generatedLine,i=o.generatedLine,g=u.generatedColumn,p=o.generatedColumn,i>n||i==n&&p>=g||s.compareByGeneratedPositionsInflated(u,o)<=0?(this._last=l,this._array.push(l)):(this._sorted=!1,this._array.push(l))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(s.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},ne.MappingList=r,ne}function me(){if(he)return q;he=1;var s=we(),r=K(),l=Ne().ArraySet,u=Ee().MappingList;function o(n){n||(n={}),this._file=r.getArg(n,"file",null),this._sourceRoot=r.getArg(n,"sourceRoot",null),this._skipValidation=r.getArg(n,"skipValidation",!1),this._ignoreInvalidMapping=r.getArg(n,"ignoreInvalidMapping",!1),this._sources=new l,this._names=new l,this._mappings=new u,this._sourcesContents=null}return o.prototype._version=3,o.fromSourceMap=function(n,i){var g=n.sourceRoot,p=new o(Object.assign(i||{},{file:n.file,sourceRoot:g}));return n.eachMapping(function(C){var h={generated:{line:C.generatedLine,column:C.generatedColumn}};C.source!=null&&(h.source=C.source,g!=null&&(h.source=r.relative(g,h.source)),h.original={line:C.originalLine,column:C.originalColumn},C.name!=null&&(h.name=C.name)),p.addMapping(h)}),n.sources.forEach(function(C){var h=C;g!==null&&(h=r.relative(g,C)),p._sources.has(h)||p._sources.add(h);var a=n.sourceContentFor(C);a!=null&&p.setSourceContent(C,a)}),p},o.prototype.addMapping=function(n){var i=r.getArg(n,"generated"),g=r.getArg(n,"original",null),p=r.getArg(n,"source",null),C=r.getArg(n,"name",null);(this._skipValidation||this._validateMapping(i,g,p,C)!==!1)&&(p!=null&&(p=String(p),this._sources.has(p)||this._sources.add(p)),C!=null&&(C=String(C),this._names.has(C)||this._names.add(C)),this._mappings.add({generatedLine:i.line,generatedColumn:i.column,originalLine:g!=null&&g.line,originalColumn:g!=null&&g.column,source:p,name:C}))},o.prototype.setSourceContent=function(n,i){var g=n;this._sourceRoot!=null&&(g=r.relative(this._sourceRoot,g)),i!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(g)]=i):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(g)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(n,i,g){var p=i;if(i==null){if(n.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);p=n.file}var C=this._sourceRoot;C!=null&&(p=r.relative(C,p));var h=new l,a=new l;this._mappings.unsortedForEach(function(d){if(d.source===p&&d.originalLine!=null){var e=n.originalPositionFor({line:d.originalLine,column:d.originalColumn});e.source!=null&&(d.source=e.source,g!=null&&(d.source=r.join(g,d.source)),C!=null&&(d.source=r.relative(C,d.source)),d.originalLine=e.line,d.originalColumn=e.column,e.name!=null&&(d.name=e.name))}var t=d.source;t==null||h.has(t)||h.add(t);var I=d.name;I==null||a.has(I)||a.add(I)},this),this._sources=h,this._names=a,n.sources.forEach(function(d){var e=n.sourceContentFor(d);e!=null&&(g!=null&&(d=r.join(g,d)),C!=null&&(d=r.relative(C,d)),this.setSourceContent(d,e))},this)},o.prototype._validateMapping=function(n,i,g,p){if(i&&typeof i.line!="number"&&typeof i.column!="number"){var C="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(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(C),!1;throw new Error(C)}if((!(n&&"line"in n&&"column"in n&&n.line>0&&n.column>=0)||i||g||p)&&!(n&&"line"in n&&"column"in n&&i&&"line"in i&&"column"in i&&n.line>0&&n.column>=0&&i.line>0&&i.column>=0&&g)){if(C="Invalid mapping: "+JSON.stringify({generated:n,source:g,original:i,name:p}),this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(C),!1;throw new Error(C)}},o.prototype._serializeMappings=function(){for(var n,i,g,p,C=0,h=1,a=0,d=0,e=0,t=0,I="",c=this._mappings.toArray(),m=0,f=c.length;m<f;m++){if(n="",(i=c[m]).generatedLine!==h)for(C=0;i.generatedLine!==h;)n+=";",h++;else if(m>0){if(!r.compareByGeneratedPositionsInflated(i,c[m-1]))continue;n+=","}n+=s.encode(i.generatedColumn-C),C=i.generatedColumn,i.source!=null&&(p=this._sources.indexOf(i.source),n+=s.encode(p-t),t=p,n+=s.encode(i.originalLine-1-d),d=i.originalLine-1,n+=s.encode(i.originalColumn-a),a=i.originalColumn,i.name!=null&&(g=this._names.indexOf(i.name),n+=s.encode(g-e),e=g)),I+=n}return I},o.prototype._generateSourcesContent=function(n,i){return n.map(function(g){if(!this._sourcesContents)return null;i!=null&&(g=r.relative(i,g));var p=r.toSetString(g);return Object.prototype.hasOwnProperty.call(this._sourcesContents,p)?this._sourcesContents[p]:null},this)},o.prototype.toJSON=function(){var n={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(n.file=this._file),this._sourceRoot!=null&&(n.sourceRoot=this._sourceRoot),this._sourcesContents&&(n.sourcesContent=this._generateSourcesContent(n.sources,n.sourceRoot)),n},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},q.SourceMapGenerator=o,q}var Ae,Y={},fe={};function Me(){return Ae||(Ae=1,function(s){function r(l,u,o,n,i,g){var p=Math.floor((u-l)/2)+l,C=i(o,n[p],!0);return C===0?p:C>0?u-p>1?r(p,u,o,n,i,g):g==s.LEAST_UPPER_BOUND?u<n.length?u:-1:p:p-l>1?r(l,p,o,n,i,g):g==s.LEAST_UPPER_BOUND?p:l<0?-1:l}s.GREATEST_LOWER_BOUND=1,s.LEAST_UPPER_BOUND=2,s.search=function(l,u,o,n){if(u.length===0)return-1;var i=r(-1,u.length,l,u,o,n||s.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&o(u[i],u[i-1],!0)===0;)--i;return i}}(fe)),fe}var be,ye,te={};function De(){if(be)return te;function s(l){function u(o,n,i){var g=o[n];o[n]=o[i],o[i]=g}return function o(n,i,g,p){if(g<p){var C=g-1;u(n,(e=g,t=p,Math.round(e+Math.random()*(t-e))),p);for(var h=n[p],a=g;a<p;a++)i(n[a],h,!1)<=0&&u(n,C+=1,a);u(n,C+1,a);var d=C+1;o(n,i,g,d-1),o(n,i,d+1,p)}var e,t}}be=1;let r=new WeakMap;return te.quickSort=function(l,u,o=0){let n=r.get(u);n===void 0&&(n=function(i){let g=s.toString();return new Function(`return ${g}`)()(i)}(u),r.set(u,n)),n(l,u,o,l.length-1)},te}var ve,Ze,ie={},Ve=(Ze||(Ze=1,E.SourceMapGenerator=me().SourceMapGenerator,E.SourceMapConsumer=function(){if(ye)return Y;ye=1;var s=K(),r=Me(),l=Ne().ArraySet,u=we(),o=De().quickSort;function n(a,d){var e=a;return typeof a=="string"&&(e=s.parseSourceMapInput(a)),e.sections!=null?new h(e,d):new i(e,d)}function i(a,d){var e=a;typeof a=="string"&&(e=s.parseSourceMapInput(a));var t=s.getArg(e,"version"),I=s.getArg(e,"sources"),c=s.getArg(e,"names",[]),m=s.getArg(e,"sourceRoot",null),f=s.getArg(e,"sourcesContent",null),y=s.getArg(e,"mappings"),Z=s.getArg(e,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);m&&(m=s.normalize(m)),I=I.map(String).map(s.normalize).map(function(v){return m&&s.isAbsolute(m)&&s.isAbsolute(v)?s.relative(m,v):v}),this._names=l.fromArray(c.map(String),!0),this._sources=l.fromArray(I,!0),this._absoluteSources=this._sources.toArray().map(function(v){return s.computeSourceURL(m,v,d)}),this.sourceRoot=m,this.sourcesContent=f,this._mappings=y,this._sourceMapURL=d,this.file=Z}function g(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}n.fromSourceMap=function(a,d){return i.fromSourceMap(a,d)},n.prototype._version=3,n.prototype.__generatedMappings=null,Object.defineProperty(n.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),n.prototype.__originalMappings=null,Object.defineProperty(n.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),n.prototype._charIsMappingSeparator=function(a,d){var e=a.charAt(d);return e===";"||e===","},n.prototype._parseMappings=function(a,d){throw new Error("Subclasses must implement _parseMappings")},n.GENERATED_ORDER=1,n.ORIGINAL_ORDER=2,n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.prototype.eachMapping=function(a,d,e){var t,I=d||null;switch(e||n.GENERATED_ORDER){case n.GENERATED_ORDER:t=this._generatedMappings;break;case n.ORIGINAL_ORDER:t=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var c=this.sourceRoot,m=a.bind(I),f=this._names,y=this._sources,Z=this._sourceMapURL,v=0,B=t.length;v<B;v++){var W=t[v],S=W.source===null?null:y.at(W.source);S!==null&&(S=s.computeSourceURL(c,S,Z)),m({source:S,generatedLine:W.generatedLine,generatedColumn:W.generatedColumn,originalLine:W.originalLine,originalColumn:W.originalColumn,name:W.name===null?null:f.at(W.name)})}},n.prototype.allGeneratedPositionsFor=function(a){var d=s.getArg(a,"line"),e={source:s.getArg(a,"source"),originalLine:d,originalColumn:s.getArg(a,"column",0)};if(e.source=this._findSourceIndex(e.source),e.source<0)return[];var t=[],I=this._findMapping(e,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,r.LEAST_UPPER_BOUND);if(I>=0){var c=this._originalMappings[I];if(a.column===void 0)for(var m=c.originalLine;c&&c.originalLine===m;)t.push({line:s.getArg(c,"generatedLine",null),column:s.getArg(c,"generatedColumn",null),lastColumn:s.getArg(c,"lastGeneratedColumn",null)}),c=this._originalMappings[++I];else for(var f=c.originalColumn;c&&c.originalLine===d&&c.originalColumn==f;)t.push({line:s.getArg(c,"generatedLine",null),column:s.getArg(c,"generatedColumn",null),lastColumn:s.getArg(c,"lastGeneratedColumn",null)}),c=this._originalMappings[++I]}return t},Y.SourceMapConsumer=n,i.prototype=Object.create(n.prototype),i.prototype.consumer=n,i.prototype._findSourceIndex=function(a){var d,e=a;if(this.sourceRoot!=null&&(e=s.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);for(d=0;d<this._absoluteSources.length;++d)if(this._absoluteSources[d]==a)return d;return-1},i.fromSourceMap=function(a,d){var e=Object.create(i.prototype),t=e._names=l.fromArray(a._names.toArray(),!0),I=e._sources=l.fromArray(a._sources.toArray(),!0);e.sourceRoot=a._sourceRoot,e.sourcesContent=a._generateSourcesContent(e._sources.toArray(),e.sourceRoot),e.file=a._file,e._sourceMapURL=d,e._absoluteSources=e._sources.toArray().map(function(W){return s.computeSourceURL(e.sourceRoot,W,d)});for(var c=a._mappings.toArray().slice(),m=e.__generatedMappings=[],f=e.__originalMappings=[],y=0,Z=c.length;y<Z;y++){var v=c[y],B=new g;B.generatedLine=v.generatedLine,B.generatedColumn=v.generatedColumn,v.source&&(B.source=I.indexOf(v.source),B.originalLine=v.originalLine,B.originalColumn=v.originalColumn,v.name&&(B.name=t.indexOf(v.name)),f.push(B)),m.push(B)}return o(e.__originalMappings,s.compareByOriginalPositions),e},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});const p=s.compareByGeneratedPositionsDeflatedNoLine;function C(a,d){let e=a.length,t=a.length-d;if(!(t<=1))if(t==2){let I=a[d],c=a[d+1];p(I,c)>0&&(a[d]=c,a[d+1]=I)}else if(t<20)for(let I=d;I<e;I++)for(let c=I;c>d;c--){let m=a[c-1],f=a[c];if(p(m,f)<=0)break;a[c-1]=f,a[c]=m}else o(a,p,d)}function h(a,d){var e=a;typeof a=="string"&&(e=s.parseSourceMapInput(a));var t=s.getArg(e,"version"),I=s.getArg(e,"sections");if(t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new l,this._names=new l;var c={line:-1,column:0};this._sections=I.map(function(m){if(m.url)throw new Error("Support for url field in sections not implemented.");var f=s.getArg(m,"offset"),y=s.getArg(f,"line"),Z=s.getArg(f,"column");if(y<c.line||y===c.line&&Z<c.column)throw new Error("Section offsets must be ordered and non-overlapping.");return c=f,{generatedOffset:{generatedLine:y+1,generatedColumn:Z+1},consumer:new n(s.getArg(m,"map"),d)}})}return i.prototype._parseMappings=function(a,d){var e,t,I,c,m=1,f=0,y=0,Z=0,v=0,B=0,W=a.length,S=0,P={},w=[],H=[];let $=0;for(;S<W;)if(a.charAt(S)===";")m++,S++,f=0,C(H,$),$=H.length;else if(a.charAt(S)===",")S++;else{for((e=new g).generatedLine=m,I=S;I<W&&!this._charIsMappingSeparator(a,I);I++);for(a.slice(S,I),t=[];S<I;)u.decode(a,S,P),c=P.value,S=P.rest,t.push(c);if(t.length===2)throw new Error("Found a source, but no line and column");if(t.length===3)throw new Error("Found a source and line, but no column");if(e.generatedColumn=f+t[0],f=e.generatedColumn,t.length>1&&(e.source=v+t[1],v+=t[1],e.originalLine=y+t[2],y=e.originalLine,e.originalLine+=1,e.originalColumn=Z+t[3],Z=e.originalColumn,t.length>4&&(e.name=B+t[4],B+=t[4])),H.push(e),typeof e.originalLine=="number"){let F=e.source;for(;w.length<=F;)w.push(null);w[F]===null&&(w[F]=[]),w[F].push(e)}}C(H,$),this.__generatedMappings=H;for(var U=0;U<w.length;U++)w[U]!=null&&o(w[U],s.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...w)},i.prototype._findMapping=function(a,d,e,t,I,c){if(a[e]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[e]);if(a[t]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[t]);return r.search(a,d,I,c)},i.prototype.computeColumnSpans=function(){for(var a=0;a<this._generatedMappings.length;++a){var d=this._generatedMappings[a];if(a+1<this._generatedMappings.length){var e=this._generatedMappings[a+1];if(d.generatedLine===e.generatedLine){d.lastGeneratedColumn=e.generatedColumn-1;continue}}d.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(a){var d={generatedLine:s.getArg(a,"line"),generatedColumn:s.getArg(a,"column")},e=this._findMapping(d,this._generatedMappings,"generatedLine","generatedColumn",s.compareByGeneratedPositionsDeflated,s.getArg(a,"bias",n.GREATEST_LOWER_BOUND));if(e>=0){var t=this._generatedMappings[e];if(t.generatedLine===d.generatedLine){var I=s.getArg(t,"source",null);I!==null&&(I=this._sources.at(I),I=s.computeSourceURL(this.sourceRoot,I,this._sourceMapURL));var c=s.getArg(t,"name",null);return c!==null&&(c=this._names.at(c)),{source:I,line:s.getArg(t,"originalLine",null),column:s.getArg(t,"originalColumn",null),name:c}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return a==null})},i.prototype.sourceContentFor=function(a,d){if(!this.sourcesContent)return null;var e=this._findSourceIndex(a);if(e>=0)return this.sourcesContent[e];var t,I=a;if(this.sourceRoot!=null&&(I=s.relative(this.sourceRoot,I)),this.sourceRoot!=null&&(t=s.urlParse(this.sourceRoot))){var c=I.replace(/^file:\/\//,"");if(t.scheme=="file"&&this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];if((!t.path||t.path=="/")&&this._sources.has("/"+I))return this.sourcesContent[this._sources.indexOf("/"+I)]}if(d)return null;throw new Error('"'+I+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(a){var d=s.getArg(a,"source");if((d=this._findSourceIndex(d))<0)return{line:null,column:null,lastColumn:null};var e={source:d,originalLine:s.getArg(a,"line"),originalColumn:s.getArg(a,"column")},t=this._findMapping(e,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(a,"bias",n.GREATEST_LOWER_BOUND));if(t>=0){var I=this._originalMappings[t];if(I.source===e.source)return{line:s.getArg(I,"generatedLine",null),column:s.getArg(I,"generatedColumn",null),lastColumn:s.getArg(I,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Y.BasicSourceMapConsumer=i,h.prototype=Object.create(n.prototype),h.prototype.constructor=n,h.prototype._version=3,Object.defineProperty(h.prototype,"sources",{get:function(){for(var a=[],d=0;d<this._sections.length;d++)for(var e=0;e<this._sections[d].consumer.sources.length;e++)a.push(this._sections[d].consumer.sources[e]);return a}}),h.prototype.originalPositionFor=function(a){var d={generatedLine:s.getArg(a,"line"),generatedColumn:s.getArg(a,"column")},e=r.search(d,this._sections,function(I,c){return I.generatedLine-c.generatedOffset.generatedLine||I.generatedColumn-c.generatedOffset.generatedColumn}),t=this._sections[e];return t?t.consumer.originalPositionFor({line:d.generatedLine-(t.generatedOffset.generatedLine-1),column:d.generatedColumn-(t.generatedOffset.generatedLine===d.generatedLine?t.generatedOffset.generatedColumn-1:0),bias:a.bias}):{source:null,line:null,column:null,name:null}},h.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(a){return a.consumer.hasContentsOfAllSources()})},h.prototype.sourceContentFor=function(a,d){for(var e=0;e<this._sections.length;e++){var t=this._sections[e].consumer.sourceContentFor(a,!0);if(t||t==="")return t}if(d)return null;throw new Error('"'+a+'" is not in the SourceMap.')},h.prototype.generatedPositionFor=function(a){for(var d=0;d<this._sections.length;d++){var e=this._sections[d];if(e.consumer._findSourceIndex(s.getArg(a,"source"))!==-1){var t=e.consumer.generatedPositionFor(a);if(t)return{line:t.line+(e.generatedOffset.generatedLine-1),column:t.column+(e.generatedOffset.generatedLine===t.line?e.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},h.prototype._parseMappings=function(a,d){this.__generatedMappings=[],this.__originalMappings=[];for(var e=0;e<this._sections.length;e++)for(var t=this._sections[e],I=t.consumer._generatedMappings,c=0;c<I.length;c++){var m=I[c],f=t.consumer._sources.at(m.source);f!==null&&(f=s.computeSourceURL(t.consumer.sourceRoot,f,this._sourceMapURL)),this._sources.add(f),f=this._sources.indexOf(f);var y=null;m.name&&(y=t.consumer._names.at(m.name),this._names.add(y),y=this._names.indexOf(y));var Z={source:f,generatedLine:m.generatedLine+(t.generatedOffset.generatedLine-1),generatedColumn:m.generatedColumn+(t.generatedOffset.generatedLine===m.generatedLine?t.generatedOffset.generatedColumn-1:0),originalLine:m.originalLine,originalColumn:m.originalColumn,name:y};this.__generatedMappings.push(Z),typeof Z.originalLine=="number"&&this.__originalMappings.push(Z)}o(this.__generatedMappings,s.compareByGeneratedPositionsDeflated),o(this.__originalMappings,s.compareByOriginalPositions)},Y.IndexedSourceMapConsumer=h,Y}().SourceMapConsumer,E.SourceNode=function(){if(ve)return ie;ve=1;var s=me().SourceMapGenerator,r=K(),l=/(\r?\n)/,u="$$$isSourceNode$$$";function o(n,i,g,p,C){this.children=[],this.sourceContents={},this.line=n??null,this.column=i??null,this.source=g??null,this.name=C??null,this[u]=!0,p!=null&&this.add(p)}return o.fromStringWithSourceMap=function(n,i,g){var p=new o,C=n.split(l),h=0,a=function(){return c()+(c()||"");function c(){return h<C.length?C[h++]:void 0}},d=1,e=0,t=null;return i.eachMapping(function(c){if(t!==null){if(!(d<c.generatedLine)){var m=(f=C[h]||"").substr(0,c.generatedColumn-e);return C[h]=f.substr(c.generatedColumn-e),e=c.generatedColumn,I(t,m),void(t=c)}I(t,a()),d++,e=0}for(;d<c.generatedLine;)p.add(a()),d++;if(e<c.generatedColumn){var f=C[h]||"";p.add(f.substr(0,c.generatedColumn)),C[h]=f.substr(c.generatedColumn),e=c.generatedColumn}t=c},this),h<C.length&&(t&&I(t,a()),p.add(C.splice(h).join(""))),i.sources.forEach(function(c){var m=i.sourceContentFor(c);m!=null&&(g!=null&&(c=r.join(g,c)),p.setSourceContent(c,m))}),p;function I(c,m){if(c===null||c.source===void 0)p.add(m);else{var f=g?r.join(g,c.source):c.source;p.add(new o(c.originalLine,c.originalColumn,f,m,c.name))}}},o.prototype.add=function(n){if(Array.isArray(n))n.forEach(function(i){this.add(i)},this);else{if(!n[u]&&typeof n!="string")throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+n);n&&this.children.push(n)}return this},o.prototype.prepend=function(n){if(Array.isArray(n))for(var i=n.length-1;i>=0;i--)this.prepend(n[i]);else{if(!n[u]&&typeof n!="string")throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+n);this.children.unshift(n)}return this},o.prototype.walk=function(n){for(var i,g=0,p=this.children.length;g<p;g++)(i=this.children[g])[u]?i.walk(n):i!==""&&n(i,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(n){var i,g,p=this.children.length;if(p>0){for(i=[],g=0;g<p-1;g++)i.push(this.children[g]),i.push(n);i.push(this.children[g]),this.children=i}return this},o.prototype.replaceRight=function(n,i){var g=this.children[this.children.length-1];return g[u]?g.replaceRight(n,i):typeof g=="string"?this.children[this.children.length-1]=g.replace(n,i):this.children.push("".replace(n,i)),this},o.prototype.setSourceContent=function(n,i){this.sourceContents[r.toSetString(n)]=i},o.prototype.walkSourceContents=function(n){for(var i=0,g=this.children.length;i<g;i++)this.children[i][u]&&this.children[i].walkSourceContents(n);var p=Object.keys(this.sourceContents);for(i=0,g=p.length;i<g;i++)n(r.fromSetString(p[i]),this.sourceContents[p[i]])},o.prototype.toString=function(){var n="";return this.walk(function(i){n+=i}),n},o.prototype.toStringWithSourceMap=function(n){var i={code:"",line:1,column:0},g=new s(n),p=!1,C=null,h=null,a=null,d=null;return this.walk(function(e,t){i.code+=e,t.source!==null&&t.line!==null&&t.column!==null?(C===t.source&&h===t.line&&a===t.column&&d===t.name||g.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:i.line,column:i.column},name:t.name}),C=t.source,h=t.line,a=t.column,d=t.name,p=!0):p&&(g.addMapping({generated:{line:i.line,column:i.column}}),C=null,p=!1);for(var I=0,c=e.length;I<c;I++)e.charCodeAt(I)===10?(i.line++,i.column=0,I+1===c?(C=null,p=!1):p&&g.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:i.line,column:i.column},name:t.name})):i.column++}),this.walkSourceContents(function(e,t){g.setSourceContent(e,t)}),{code:i.code,map:g}},ie.SourceNode=o,ie}().SourceNode),E);class J{constructor({file:r,line:l,function:u,code:o,locals:n={},offender:i=!1,column:g}){b(this,"file");b(this,"line");b(this,"function");b(this,"code");b(this,"locals");b(this,"offender");b(this,"column");this.file=r,this.line=l,this.function=u,this.code=o,this.locals=n,this.offender=i,this.column=g}toDict(){const r={file:this.file,line:this.line,function:this.function,code:this.code,locals:Object.fromEntries(Object.entries(this.locals).map(([l,u])=>[l,String(u)]))};return this.offender&&(r.offender=this.offender),this.column!==void 0&&(r.column=this.column),r}toJson(){return JSON.stringify(this.toDict())}}class k{static encode(r){return r instanceof J?r.toDict():Array.isArray(r)?r.map(l=>k.encode(l)):typeof r=="object"&&r!==null?JSON.stringify(r):r}static stringify(r){return JSON.stringify(k.encode(r),(l,u)=>u instanceof J?u.toDict():u)}}let _=0;function Te(s){A().sfDebug&&console.log("Initializing Exception Interceptor...");const r=new _e.Worker(new URL("data:application/javascript;base64,aW1wb3J0IHsgU2Vzc2lvbiB9IGZyb20gImluc3BlY3Rvci9wcm9taXNlcyI7CmltcG9ydCB7IHBhcmVudFBvcnQsIHdvcmtlckRhdGEgfSBmcm9tICJ3b3JrZXJfdGhyZWFkcyI7CgpnbG9iYWwuc2ZEZWJ1ZyA9IHVuZGVmaW5lZDsKZ2xvYmFsLnN0YWNrRGVwdGhMb2NhbHMgPSB1bmRlZmluZWQ7Cmdsb2JhbC5ub2RlTW9kdWxlc1RvQ29sbGVjdExvY2FsVmFy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nVnZ2VyLmdldFNjcmlwdFNvdXJjZSIsCiAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgc2NyaXB0SWQsCiAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgKTsKICAgICAgICAgICAgY29uc3Qgc291cmNlTGluZXMgPSBzY3JpcHRTb3VyY2Uuc3BsaXQoIlxuIik7CiAgICAgICAgICAgIGNvZGUgPSBzb3VyY2VMaW5lc1tsb2NhdGlvbi5saW5lTnVtYmVyXSB8fCAiPG5vdCBjYXB0dXJlZD4iOwogICAgICAgICAgfSBjYXRjaCAoZXJyKSB7CiAgICAgICAgICAgIGlmIChnbG9iYWwuc2ZEZWJ1ZykgewogICAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoIltXb3JrZXJdIEZhaWxlZCB0byBmZXRjaCBzY3JpcHQgc291cmNlOiIsIGVycik7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8vIEZldGNoIGxvY2FsIHZhcmlhYmxlcyBpZiB0aGVyZSdzIGFuIG9iamVjdElkCiAgICAgICAgY29uc3QgbG9jYWxzID0gbG9jYWxTY29wZT8ub2JqZWN0Py5vYmplY3RJZAogICAgICAgICAgPyBhd2FpdCBmZXRjaExvY2FsVmFyaWFibGVzKHNlc3Npb24sIGxvY2FsU2NvcGUub2JqZWN0Lm9iamVjdElkKQogICAgICAgICAgOiB7fTsKCiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgIGZ1bmN0aW9uOiBmdW5jdGlvbk5hbWUgfHwgIjxhbm9ueW1vdXM+IiwKICAgICAgICAgIGxvY2FscywKICAgICAgICAgIGZpbGUsCiAgICAgICAgICBsaW5lOiBsb2NhdGlvbj8ubGluZU51bWJlciB8fCAwLAogICAgICAgICAgY29kZSwKICAgICAgICB9OwogICAgICB9IGNhdGNoIChlcnJvcikgewogICAgICAgIGlmIChnbG9iYWwuc2ZEZWJ1ZykgewogICAgICAgICAgY29uc29sZS5lcnJvcigiW1dvcmtlc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b2R1bGVzTGlzdC5zb21lKChtb2R1bGVOYW1lKSA9PgogICAgICAgICAgZmlyc3RGcmFtZUxpbmUuaW5jbHVkZXMoYCR7bW9kdWxlTmFtZX1gKSwKICAgICAgICApOwoKICAgICAgICBpZiAoIWlzRnJvbUFsbG93ZWROb2RlTW9kdWxlKSB7CiAgICAgICAgICAvLyBOb3QgZnJvbSBhbiBhbGxvd2VkIG5vZGUgbW9kdWxlID0+IHJldHVybiBlYXJseQogICAgICAgICAgaWYgKGdsb2JhbC5zZkRlYnVnKSB7CiAgICAgICAgICAgIGNvbnNvbGUubG9nKAogICAgICAgICAgICAgICJbV29ya2VyXSBFcnJvciBhcHBlYXJzIHRvIGJlIHRyaWdnZXJlZCBmcm9tIG5vbi1hcHBsaWNhdGlvbiBzb3VyY2VzOyBpZ25vcmluZy4iLAogICAgICAgICAgICApOwogICAgICAgICAgfQogICAgICAgICAgcmV0dXJuOwogICAgICAgIH0KICAgICAgICAvLyBPdGhlcndpc2UsIGl0J3MgZnJvbSBhbiBhbGxvd2VkIG5vZGUgbW9kdWxlLCBzbyBjb250aW51ZQogICAgICB9IGVsc2UgewogICAgICAgIC8vIElmIHRoZSBsaXN0IGlzIGVtcHR5LCBwcmVzZXJ2ZSBleGlzdGluZyBiZWhhdmlvciBhbmQgaWdub3JlIG5vbi1hcHBsaWNhdGlvbiBlcnJvcnMKICAgICAgICBpZiAoZ2xvYmFsLnNmRGVidWcpIHsKICAgICAgICAgIGNvbnNvbGUubG9nKAogICAgICAgICAgICAiW1dvcmtlcl0gRXJyb3IgYXBwZWFycyB0byBiZSB0cmlnZ2VyZWQgZnJvbSBub24tYXBwbGljYXRpb24gc291cmNlczsgaWdub3JpbmcuIiwKICAgICAgICAgICk7CiAgICAgICAgfQogICAgICAgIHJldHVybjsKICAgICAgfQogICAgfQoKICAgIC8vIElmIHdlIHJlYWNoIHRoaXMgcG9pbnQsIHRoZSBlcnJvciBpcyBlaXRoZXIgZnJvbSBhcHAgY29kZSwgb3I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jYXRjaCgoZXJyb3IpID0+IHsKICBpZiAoZ2xvYmFsLnNmRGVidWcpIHsKICAgIGNvbnNvbGUuZXJyb3IoIltXb3JrZXJdIEZhaWxlZCB0byBzdGFydCBkZWJ1Z2dlcjoiLCBlcnJvcik7CiAgfQp9KTsKCi8vIEtlZXAgdGhlIHdvcmtlciBhbGl2ZQpzZXRJbnRlcnZhbCgoKSA9PiB7fSwgMTAwMDApOwo="),{workerData:{captureAllExceptions:!0}});let l=null;r.on("message",i=>{if(typeof i=="string"&&A().sfDebug&&console.log(`[Worker] ${i}`),i.readyToGetParameters&&r.postMessage({sfDebug:A().sfDebug,stackDepthLocals:A().stackDepthLocals,nodeModulesToCollectLocalVariablesOn:A().nodeModulesToCollectLocalVariablesOn}),i.type==="exception"){const{frames:g}=i,p=l;if(!p)return;const C=function(a){return a?a.split(`
31
+ `}}var le,ue,F={},q={},M={},T={};function Ee(){if(le)return T;le=1;var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return T.encode=function(r){if(0<=r&&r<s.length)return s[r];throw new TypeError("Must be between 0 and 63: "+r)},T.decode=function(r){return 65<=r&&r<=90?r-65:97<=r&&r<=122?r-97+26:48<=r&&r<=57?r-48+52:r==43?62:r==47?63:-1},T}function we(){if(ue)return M;ue=1;var s=Ee();return M.encode=function(r){var l,u="",o=function(n){return n<0?1+(-n<<1):0+(n<<1)}(r);do l=31&o,(o>>>=5)>0&&(l|=32),u+=s.encode(l);while(o>0);return u},M.decode=function(r,l,u){var o,n,i,g,p=r.length,C=0,h=0;do{if(l>=p)throw new Error("Expected more digits in base 64 VLQ value.");if((n=s.decode(r.charCodeAt(l++)))===-1)throw new Error("Invalid base64 digit: "+r.charAt(l-1));o=!!(32&n),C+=(n&=31)<<h,h+=5}while(o);u.value=(g=(i=C)>>1,1&~i?g:-g),u.rest=l},M}var de,Ie={};function K(){return de||(de=1,function(s){s.getArg=function(e,t,I){if(t in e)return e[t];if(arguments.length===3)return I;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,l=/^data:.+\,.+$/;function u(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}s.urlParse=u,s.urlGenerate=o;var n,i,g=(n=function(e){var t=e,I=u(e);if(I){if(!I.path)return e;t=I.path}for(var c=s.isAbsolute(t),m=[],f=0,y=0;;){if(f=y,(y=t.indexOf("/",f))===-1){m.push(t.slice(f));break}for(m.push(t.slice(f,y));y<t.length&&t[y]==="/";)y++}var Z,v=0;for(y=m.length-1;y>=0;y--)(Z=m[y])==="."?m.splice(y,1):Z===".."?v++:v>0&&(Z===""?(m.splice(y+1,v),v=0):(m.splice(y,2),v--));return(t=m.join("/"))===""&&(t=c?"/":"."),I?(I.path=t,o(I)):t},i=[],function(e){for(var t=0;t<i.length;t++)if(i[t].input===e){var I=i[0];return i[0]=i[t],i[t]=I,i[0].result}var c=n(e);return i.unshift({input:e,result:c}),i.length>32&&i.pop(),c});function p(e,t){e===""&&(e="."),t===""&&(t=".");var I=u(t),c=u(e);if(c&&(e=c.path||"/"),I&&!I.scheme)return c&&(I.scheme=c.scheme),o(I);if(I||t.match(l))return t;if(c&&!c.host&&!c.path)return c.host=t,o(c);var m=t.charAt(0)==="/"?t:g(e.replace(/\/+$/,"")+"/"+t);return c?(c.path=m,o(c)):m}s.normalize=g,s.join=p,s.isAbsolute=function(e){return e.charAt(0)==="/"||r.test(e)},s.relative=function(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var I=0;t.indexOf(e+"/")!==0;){var c=e.lastIndexOf("/");if(c<0||(e=e.slice(0,c)).match(/^([^\/]+:\/)?\/*$/))return t;++I}return Array(I+1).join("../")+t.substr(e.length+1)};var C=!("__proto__"in Object.create(null));function h(e){return e}function a(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var I=t-10;I>=0;I--)if(e.charCodeAt(I)!==36)return!1;return!0}function d(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s.toSetString=C?h:function(e){return a(e)?"$"+e:e},s.fromSetString=C?h:function(e){return a(e)?e.slice(1):e},s.compareByOriginalPositions=function(e,t,I){var c=d(e.source,t.source);return c!==0||(c=e.originalLine-t.originalLine)!==0||(c=e.originalColumn-t.originalColumn)!==0||I||(c=e.generatedColumn-t.generatedColumn)!==0||(c=e.generatedLine-t.generatedLine)!==0?c:d(e.name,t.name)},s.compareByOriginalPositionsNoSource=function(e,t,I){var c;return(c=e.originalLine-t.originalLine)!==0||(c=e.originalColumn-t.originalColumn)!==0||I||(c=e.generatedColumn-t.generatedColumn)!==0||(c=e.generatedLine-t.generatedLine)!==0?c:d(e.name,t.name)},s.compareByGeneratedPositionsDeflated=function(e,t,I){var c=e.generatedLine-t.generatedLine;return c!==0||(c=e.generatedColumn-t.generatedColumn)!==0||I||(c=d(e.source,t.source))!==0||(c=e.originalLine-t.originalLine)!==0||(c=e.originalColumn-t.originalColumn)!==0?c:d(e.name,t.name)},s.compareByGeneratedPositionsDeflatedNoLine=function(e,t,I){var c=e.generatedColumn-t.generatedColumn;return c!==0||I||(c=d(e.source,t.source))!==0||(c=e.originalLine-t.originalLine)!==0||(c=e.originalColumn-t.originalColumn)!==0?c:d(e.name,t.name)},s.compareByGeneratedPositionsInflated=function(e,t){var I=e.generatedLine-t.generatedLine;return I!==0||(I=e.generatedColumn-t.generatedColumn)!==0||(I=d(e.source,t.source))!==0||(I=e.originalLine-t.originalLine)!==0||(I=e.originalColumn-t.originalColumn)!==0?I:d(e.name,t.name)},s.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},s.computeSourceURL=function(e,t,I){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),I){var c=u(I);if(!c)throw new Error("sourceMapURL could not be parsed");if(c.path){var m=c.path.lastIndexOf("/");m>=0&&(c.path=c.path.substring(0,m+1))}t=p(o(c),t)}return g(t)}}(Ie)),Ie}var pe,ee={};function Ne(){if(pe)return ee;pe=1;var s=K(),r=Object.prototype.hasOwnProperty,l=typeof Map<"u";function u(){this._array=[],this._set=l?new Map:Object.create(null)}return u.fromArray=function(o,n){for(var i=new u,g=0,p=o.length;g<p;g++)i.add(o[g],n);return i},u.prototype.size=function(){return l?this._set.size:Object.getOwnPropertyNames(this._set).length},u.prototype.add=function(o,n){var i=l?o:s.toSetString(o),g=l?this.has(o):r.call(this._set,i),p=this._array.length;g&&!n||this._array.push(o),g||(l?this._set.set(o,p):this._set[i]=p)},u.prototype.has=function(o){if(l)return this._set.has(o);var n=s.toSetString(o);return r.call(this._set,n)},u.prototype.indexOf=function(o){if(l){var n=this._set.get(o);if(n>=0)return n}else{var i=s.toSetString(o);if(r.call(this._set,i))return this._set[i]}throw new Error('"'+o+'" is not in the set.')},u.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},u.prototype.toArray=function(){return this._array.slice()},ee.ArraySet=u,ee}var Ce,he,ne={};function Fe(){if(Ce)return ne;Ce=1;var s=K();function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return r.prototype.unsortedForEach=function(l,u){this._array.forEach(l,u)},r.prototype.add=function(l){var u,o,n,i,g,p;u=this._last,o=l,n=u.generatedLine,i=o.generatedLine,g=u.generatedColumn,p=o.generatedColumn,i>n||i==n&&p>=g||s.compareByGeneratedPositionsInflated(u,o)<=0?(this._last=l,this._array.push(l)):(this._sorted=!1,this._array.push(l))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(s.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},ne.MappingList=r,ne}function me(){if(he)return q;he=1;var s=we(),r=K(),l=Ne().ArraySet,u=Fe().MappingList;function o(n){n||(n={}),this._file=r.getArg(n,"file",null),this._sourceRoot=r.getArg(n,"sourceRoot",null),this._skipValidation=r.getArg(n,"skipValidation",!1),this._ignoreInvalidMapping=r.getArg(n,"ignoreInvalidMapping",!1),this._sources=new l,this._names=new l,this._mappings=new u,this._sourcesContents=null}return o.prototype._version=3,o.fromSourceMap=function(n,i){var g=n.sourceRoot,p=new o(Object.assign(i||{},{file:n.file,sourceRoot:g}));return n.eachMapping(function(C){var h={generated:{line:C.generatedLine,column:C.generatedColumn}};C.source!=null&&(h.source=C.source,g!=null&&(h.source=r.relative(g,h.source)),h.original={line:C.originalLine,column:C.originalColumn},C.name!=null&&(h.name=C.name)),p.addMapping(h)}),n.sources.forEach(function(C){var h=C;g!==null&&(h=r.relative(g,C)),p._sources.has(h)||p._sources.add(h);var a=n.sourceContentFor(C);a!=null&&p.setSourceContent(C,a)}),p},o.prototype.addMapping=function(n){var i=r.getArg(n,"generated"),g=r.getArg(n,"original",null),p=r.getArg(n,"source",null),C=r.getArg(n,"name",null);(this._skipValidation||this._validateMapping(i,g,p,C)!==!1)&&(p!=null&&(p=String(p),this._sources.has(p)||this._sources.add(p)),C!=null&&(C=String(C),this._names.has(C)||this._names.add(C)),this._mappings.add({generatedLine:i.line,generatedColumn:i.column,originalLine:g!=null&&g.line,originalColumn:g!=null&&g.column,source:p,name:C}))},o.prototype.setSourceContent=function(n,i){var g=n;this._sourceRoot!=null&&(g=r.relative(this._sourceRoot,g)),i!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(g)]=i):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(g)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(n,i,g){var p=i;if(i==null){if(n.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);p=n.file}var C=this._sourceRoot;C!=null&&(p=r.relative(C,p));var h=new l,a=new l;this._mappings.unsortedForEach(function(d){if(d.source===p&&d.originalLine!=null){var e=n.originalPositionFor({line:d.originalLine,column:d.originalColumn});e.source!=null&&(d.source=e.source,g!=null&&(d.source=r.join(g,d.source)),C!=null&&(d.source=r.relative(C,d.source)),d.originalLine=e.line,d.originalColumn=e.column,e.name!=null&&(d.name=e.name))}var t=d.source;t==null||h.has(t)||h.add(t);var I=d.name;I==null||a.has(I)||a.add(I)},this),this._sources=h,this._names=a,n.sources.forEach(function(d){var e=n.sourceContentFor(d);e!=null&&(g!=null&&(d=r.join(g,d)),C!=null&&(d=r.relative(C,d)),this.setSourceContent(d,e))},this)},o.prototype._validateMapping=function(n,i,g,p){if(i&&typeof i.line!="number"&&typeof i.column!="number"){var C="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(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(C),!1;throw new Error(C)}if((!(n&&"line"in n&&"column"in n&&n.line>0&&n.column>=0)||i||g||p)&&!(n&&"line"in n&&"column"in n&&i&&"line"in i&&"column"in i&&n.line>0&&n.column>=0&&i.line>0&&i.column>=0&&g)){if(C="Invalid mapping: "+JSON.stringify({generated:n,source:g,original:i,name:p}),this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(C),!1;throw new Error(C)}},o.prototype._serializeMappings=function(){for(var n,i,g,p,C=0,h=1,a=0,d=0,e=0,t=0,I="",c=this._mappings.toArray(),m=0,f=c.length;m<f;m++){if(n="",(i=c[m]).generatedLine!==h)for(C=0;i.generatedLine!==h;)n+=";",h++;else if(m>0){if(!r.compareByGeneratedPositionsInflated(i,c[m-1]))continue;n+=","}n+=s.encode(i.generatedColumn-C),C=i.generatedColumn,i.source!=null&&(p=this._sources.indexOf(i.source),n+=s.encode(p-t),t=p,n+=s.encode(i.originalLine-1-d),d=i.originalLine-1,n+=s.encode(i.originalColumn-a),a=i.originalColumn,i.name!=null&&(g=this._names.indexOf(i.name),n+=s.encode(g-e),e=g)),I+=n}return I},o.prototype._generateSourcesContent=function(n,i){return n.map(function(g){if(!this._sourcesContents)return null;i!=null&&(g=r.relative(i,g));var p=r.toSetString(g);return Object.prototype.hasOwnProperty.call(this._sourcesContents,p)?this._sourcesContents[p]:null},this)},o.prototype.toJSON=function(){var n={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(n.file=this._file),this._sourceRoot!=null&&(n.sourceRoot=this._sourceRoot),this._sourcesContents&&(n.sourcesContent=this._generateSourcesContent(n.sources,n.sourceRoot)),n},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},q.SourceMapGenerator=o,q}var Ae,Y={},fe={};function Me(){return Ae||(Ae=1,function(s){function r(l,u,o,n,i,g){var p=Math.floor((u-l)/2)+l,C=i(o,n[p],!0);return C===0?p:C>0?u-p>1?r(p,u,o,n,i,g):g==s.LEAST_UPPER_BOUND?u<n.length?u:-1:p:p-l>1?r(l,p,o,n,i,g):g==s.LEAST_UPPER_BOUND?p:l<0?-1:l}s.GREATEST_LOWER_BOUND=1,s.LEAST_UPPER_BOUND=2,s.search=function(l,u,o,n){if(u.length===0)return-1;var i=r(-1,u.length,l,u,o,n||s.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&o(u[i],u[i-1],!0)===0;)--i;return i}}(fe)),fe}var be,ye,te={};function Te(){if(be)return te;function s(l){function u(o,n,i){var g=o[n];o[n]=o[i],o[i]=g}return function o(n,i,g,p){if(g<p){var C=g-1;u(n,(e=g,t=p,Math.round(e+Math.random()*(t-e))),p);for(var h=n[p],a=g;a<p;a++)i(n[a],h,!1)<=0&&u(n,C+=1,a);u(n,C+1,a);var d=C+1;o(n,i,g,d-1),o(n,i,d+1,p)}var e,t}}be=1;let r=new WeakMap;return te.quickSort=function(l,u,o=0){let n=r.get(u);n===void 0&&(n=function(i){let g=s.toString();return new Function(`return ${g}`)()(i)}(u),r.set(u,n)),n(l,u,o,l.length-1)},te}var ve,Ze,ie={},Ve=(Ze||(Ze=1,F.SourceMapGenerator=me().SourceMapGenerator,F.SourceMapConsumer=function(){if(ye)return Y;ye=1;var s=K(),r=Me(),l=Ne().ArraySet,u=we(),o=Te().quickSort;function n(a,d){var e=a;return typeof a=="string"&&(e=s.parseSourceMapInput(a)),e.sections!=null?new h(e,d):new i(e,d)}function i(a,d){var e=a;typeof a=="string"&&(e=s.parseSourceMapInput(a));var t=s.getArg(e,"version"),I=s.getArg(e,"sources"),c=s.getArg(e,"names",[]),m=s.getArg(e,"sourceRoot",null),f=s.getArg(e,"sourcesContent",null),y=s.getArg(e,"mappings"),Z=s.getArg(e,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);m&&(m=s.normalize(m)),I=I.map(String).map(s.normalize).map(function(v){return m&&s.isAbsolute(m)&&s.isAbsolute(v)?s.relative(m,v):v}),this._names=l.fromArray(c.map(String),!0),this._sources=l.fromArray(I,!0),this._absoluteSources=this._sources.toArray().map(function(v){return s.computeSourceURL(m,v,d)}),this.sourceRoot=m,this.sourcesContent=f,this._mappings=y,this._sourceMapURL=d,this.file=Z}function g(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}n.fromSourceMap=function(a,d){return i.fromSourceMap(a,d)},n.prototype._version=3,n.prototype.__generatedMappings=null,Object.defineProperty(n.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),n.prototype.__originalMappings=null,Object.defineProperty(n.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),n.prototype._charIsMappingSeparator=function(a,d){var e=a.charAt(d);return e===";"||e===","},n.prototype._parseMappings=function(a,d){throw new Error("Subclasses must implement _parseMappings")},n.GENERATED_ORDER=1,n.ORIGINAL_ORDER=2,n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.prototype.eachMapping=function(a,d,e){var t,I=d||null;switch(e||n.GENERATED_ORDER){case n.GENERATED_ORDER:t=this._generatedMappings;break;case n.ORIGINAL_ORDER:t=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var c=this.sourceRoot,m=a.bind(I),f=this._names,y=this._sources,Z=this._sourceMapURL,v=0,B=t.length;v<B;v++){var W=t[v],S=W.source===null?null:y.at(W.source);S!==null&&(S=s.computeSourceURL(c,S,Z)),m({source:S,generatedLine:W.generatedLine,generatedColumn:W.generatedColumn,originalLine:W.originalLine,originalColumn:W.originalColumn,name:W.name===null?null:f.at(W.name)})}},n.prototype.allGeneratedPositionsFor=function(a){var d=s.getArg(a,"line"),e={source:s.getArg(a,"source"),originalLine:d,originalColumn:s.getArg(a,"column",0)};if(e.source=this._findSourceIndex(e.source),e.source<0)return[];var t=[],I=this._findMapping(e,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,r.LEAST_UPPER_BOUND);if(I>=0){var c=this._originalMappings[I];if(a.column===void 0)for(var m=c.originalLine;c&&c.originalLine===m;)t.push({line:s.getArg(c,"generatedLine",null),column:s.getArg(c,"generatedColumn",null),lastColumn:s.getArg(c,"lastGeneratedColumn",null)}),c=this._originalMappings[++I];else for(var f=c.originalColumn;c&&c.originalLine===d&&c.originalColumn==f;)t.push({line:s.getArg(c,"generatedLine",null),column:s.getArg(c,"generatedColumn",null),lastColumn:s.getArg(c,"lastGeneratedColumn",null)}),c=this._originalMappings[++I]}return t},Y.SourceMapConsumer=n,i.prototype=Object.create(n.prototype),i.prototype.consumer=n,i.prototype._findSourceIndex=function(a){var d,e=a;if(this.sourceRoot!=null&&(e=s.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);for(d=0;d<this._absoluteSources.length;++d)if(this._absoluteSources[d]==a)return d;return-1},i.fromSourceMap=function(a,d){var e=Object.create(i.prototype),t=e._names=l.fromArray(a._names.toArray(),!0),I=e._sources=l.fromArray(a._sources.toArray(),!0);e.sourceRoot=a._sourceRoot,e.sourcesContent=a._generateSourcesContent(e._sources.toArray(),e.sourceRoot),e.file=a._file,e._sourceMapURL=d,e._absoluteSources=e._sources.toArray().map(function(W){return s.computeSourceURL(e.sourceRoot,W,d)});for(var c=a._mappings.toArray().slice(),m=e.__generatedMappings=[],f=e.__originalMappings=[],y=0,Z=c.length;y<Z;y++){var v=c[y],B=new g;B.generatedLine=v.generatedLine,B.generatedColumn=v.generatedColumn,v.source&&(B.source=I.indexOf(v.source),B.originalLine=v.originalLine,B.originalColumn=v.originalColumn,v.name&&(B.name=t.indexOf(v.name)),f.push(B)),m.push(B)}return o(e.__originalMappings,s.compareByOriginalPositions),e},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});const p=s.compareByGeneratedPositionsDeflatedNoLine;function C(a,d){let e=a.length,t=a.length-d;if(!(t<=1))if(t==2){let I=a[d],c=a[d+1];p(I,c)>0&&(a[d]=c,a[d+1]=I)}else if(t<20)for(let I=d;I<e;I++)for(let c=I;c>d;c--){let m=a[c-1],f=a[c];if(p(m,f)<=0)break;a[c-1]=f,a[c]=m}else o(a,p,d)}function h(a,d){var e=a;typeof a=="string"&&(e=s.parseSourceMapInput(a));var t=s.getArg(e,"version"),I=s.getArg(e,"sections");if(t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new l,this._names=new l;var c={line:-1,column:0};this._sections=I.map(function(m){if(m.url)throw new Error("Support for url field in sections not implemented.");var f=s.getArg(m,"offset"),y=s.getArg(f,"line"),Z=s.getArg(f,"column");if(y<c.line||y===c.line&&Z<c.column)throw new Error("Section offsets must be ordered and non-overlapping.");return c=f,{generatedOffset:{generatedLine:y+1,generatedColumn:Z+1},consumer:new n(s.getArg(m,"map"),d)}})}return i.prototype._parseMappings=function(a,d){var e,t,I,c,m=1,f=0,y=0,Z=0,v=0,B=0,W=a.length,S=0,P={},w=[],H=[];let $=0;for(;S<W;)if(a.charAt(S)===";")m++,S++,f=0,C(H,$),$=H.length;else if(a.charAt(S)===",")S++;else{for((e=new g).generatedLine=m,I=S;I<W&&!this._charIsMappingSeparator(a,I);I++);for(a.slice(S,I),t=[];S<I;)u.decode(a,S,P),c=P.value,S=P.rest,t.push(c);if(t.length===2)throw new Error("Found a source, but no line and column");if(t.length===3)throw new Error("Found a source and line, but no column");if(e.generatedColumn=f+t[0],f=e.generatedColumn,t.length>1&&(e.source=v+t[1],v+=t[1],e.originalLine=y+t[2],y=e.originalLine,e.originalLine+=1,e.originalColumn=Z+t[3],Z=e.originalColumn,t.length>4&&(e.name=B+t[4],B+=t[4])),H.push(e),typeof e.originalLine=="number"){let E=e.source;for(;w.length<=E;)w.push(null);w[E]===null&&(w[E]=[]),w[E].push(e)}}C(H,$),this.__generatedMappings=H;for(var U=0;U<w.length;U++)w[U]!=null&&o(w[U],s.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...w)},i.prototype._findMapping=function(a,d,e,t,I,c){if(a[e]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[e]);if(a[t]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[t]);return r.search(a,d,I,c)},i.prototype.computeColumnSpans=function(){for(var a=0;a<this._generatedMappings.length;++a){var d=this._generatedMappings[a];if(a+1<this._generatedMappings.length){var e=this._generatedMappings[a+1];if(d.generatedLine===e.generatedLine){d.lastGeneratedColumn=e.generatedColumn-1;continue}}d.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(a){var d={generatedLine:s.getArg(a,"line"),generatedColumn:s.getArg(a,"column")},e=this._findMapping(d,this._generatedMappings,"generatedLine","generatedColumn",s.compareByGeneratedPositionsDeflated,s.getArg(a,"bias",n.GREATEST_LOWER_BOUND));if(e>=0){var t=this._generatedMappings[e];if(t.generatedLine===d.generatedLine){var I=s.getArg(t,"source",null);I!==null&&(I=this._sources.at(I),I=s.computeSourceURL(this.sourceRoot,I,this._sourceMapURL));var c=s.getArg(t,"name",null);return c!==null&&(c=this._names.at(c)),{source:I,line:s.getArg(t,"originalLine",null),column:s.getArg(t,"originalColumn",null),name:c}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return a==null})},i.prototype.sourceContentFor=function(a,d){if(!this.sourcesContent)return null;var e=this._findSourceIndex(a);if(e>=0)return this.sourcesContent[e];var t,I=a;if(this.sourceRoot!=null&&(I=s.relative(this.sourceRoot,I)),this.sourceRoot!=null&&(t=s.urlParse(this.sourceRoot))){var c=I.replace(/^file:\/\//,"");if(t.scheme=="file"&&this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];if((!t.path||t.path=="/")&&this._sources.has("/"+I))return this.sourcesContent[this._sources.indexOf("/"+I)]}if(d)return null;throw new Error('"'+I+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(a){var d=s.getArg(a,"source");if((d=this._findSourceIndex(d))<0)return{line:null,column:null,lastColumn:null};var e={source:d,originalLine:s.getArg(a,"line"),originalColumn:s.getArg(a,"column")},t=this._findMapping(e,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(a,"bias",n.GREATEST_LOWER_BOUND));if(t>=0){var I=this._originalMappings[t];if(I.source===e.source)return{line:s.getArg(I,"generatedLine",null),column:s.getArg(I,"generatedColumn",null),lastColumn:s.getArg(I,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Y.BasicSourceMapConsumer=i,h.prototype=Object.create(n.prototype),h.prototype.constructor=n,h.prototype._version=3,Object.defineProperty(h.prototype,"sources",{get:function(){for(var a=[],d=0;d<this._sections.length;d++)for(var e=0;e<this._sections[d].consumer.sources.length;e++)a.push(this._sections[d].consumer.sources[e]);return a}}),h.prototype.originalPositionFor=function(a){var d={generatedLine:s.getArg(a,"line"),generatedColumn:s.getArg(a,"column")},e=r.search(d,this._sections,function(I,c){return I.generatedLine-c.generatedOffset.generatedLine||I.generatedColumn-c.generatedOffset.generatedColumn}),t=this._sections[e];return t?t.consumer.originalPositionFor({line:d.generatedLine-(t.generatedOffset.generatedLine-1),column:d.generatedColumn-(t.generatedOffset.generatedLine===d.generatedLine?t.generatedOffset.generatedColumn-1:0),bias:a.bias}):{source:null,line:null,column:null,name:null}},h.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(a){return a.consumer.hasContentsOfAllSources()})},h.prototype.sourceContentFor=function(a,d){for(var e=0;e<this._sections.length;e++){var t=this._sections[e].consumer.sourceContentFor(a,!0);if(t||t==="")return t}if(d)return null;throw new Error('"'+a+'" is not in the SourceMap.')},h.prototype.generatedPositionFor=function(a){for(var d=0;d<this._sections.length;d++){var e=this._sections[d];if(e.consumer._findSourceIndex(s.getArg(a,"source"))!==-1){var t=e.consumer.generatedPositionFor(a);if(t)return{line:t.line+(e.generatedOffset.generatedLine-1),column:t.column+(e.generatedOffset.generatedLine===t.line?e.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},h.prototype._parseMappings=function(a,d){this.__generatedMappings=[],this.__originalMappings=[];for(var e=0;e<this._sections.length;e++)for(var t=this._sections[e],I=t.consumer._generatedMappings,c=0;c<I.length;c++){var m=I[c],f=t.consumer._sources.at(m.source);f!==null&&(f=s.computeSourceURL(t.consumer.sourceRoot,f,this._sourceMapURL)),this._sources.add(f),f=this._sources.indexOf(f);var y=null;m.name&&(y=t.consumer._names.at(m.name),this._names.add(y),y=this._names.indexOf(y));var Z={source:f,generatedLine:m.generatedLine+(t.generatedOffset.generatedLine-1),generatedColumn:m.generatedColumn+(t.generatedOffset.generatedLine===m.generatedLine?t.generatedOffset.generatedColumn-1:0),originalLine:m.originalLine,originalColumn:m.originalColumn,name:y};this.__generatedMappings.push(Z),typeof Z.originalLine=="number"&&this.__originalMappings.push(Z)}o(this.__generatedMappings,s.compareByGeneratedPositionsDeflated),o(this.__originalMappings,s.compareByOriginalPositions)},Y.IndexedSourceMapConsumer=h,Y}().SourceMapConsumer,F.SourceNode=function(){if(ve)return ie;ve=1;var s=me().SourceMapGenerator,r=K(),l=/(\r?\n)/,u="$$$isSourceNode$$$";function o(n,i,g,p,C){this.children=[],this.sourceContents={},this.line=n??null,this.column=i??null,this.source=g??null,this.name=C??null,this[u]=!0,p!=null&&this.add(p)}return o.fromStringWithSourceMap=function(n,i,g){var p=new o,C=n.split(l),h=0,a=function(){return c()+(c()||"");function c(){return h<C.length?C[h++]:void 0}},d=1,e=0,t=null;return i.eachMapping(function(c){if(t!==null){if(!(d<c.generatedLine)){var m=(f=C[h]||"").substr(0,c.generatedColumn-e);return C[h]=f.substr(c.generatedColumn-e),e=c.generatedColumn,I(t,m),void(t=c)}I(t,a()),d++,e=0}for(;d<c.generatedLine;)p.add(a()),d++;if(e<c.generatedColumn){var f=C[h]||"";p.add(f.substr(0,c.generatedColumn)),C[h]=f.substr(c.generatedColumn),e=c.generatedColumn}t=c},this),h<C.length&&(t&&I(t,a()),p.add(C.splice(h).join(""))),i.sources.forEach(function(c){var m=i.sourceContentFor(c);m!=null&&(g!=null&&(c=r.join(g,c)),p.setSourceContent(c,m))}),p;function I(c,m){if(c===null||c.source===void 0)p.add(m);else{var f=g?r.join(g,c.source):c.source;p.add(new o(c.originalLine,c.originalColumn,f,m,c.name))}}},o.prototype.add=function(n){if(Array.isArray(n))n.forEach(function(i){this.add(i)},this);else{if(!n[u]&&typeof n!="string")throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+n);n&&this.children.push(n)}return this},o.prototype.prepend=function(n){if(Array.isArray(n))for(var i=n.length-1;i>=0;i--)this.prepend(n[i]);else{if(!n[u]&&typeof n!="string")throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+n);this.children.unshift(n)}return this},o.prototype.walk=function(n){for(var i,g=0,p=this.children.length;g<p;g++)(i=this.children[g])[u]?i.walk(n):i!==""&&n(i,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(n){var i,g,p=this.children.length;if(p>0){for(i=[],g=0;g<p-1;g++)i.push(this.children[g]),i.push(n);i.push(this.children[g]),this.children=i}return this},o.prototype.replaceRight=function(n,i){var g=this.children[this.children.length-1];return g[u]?g.replaceRight(n,i):typeof g=="string"?this.children[this.children.length-1]=g.replace(n,i):this.children.push("".replace(n,i)),this},o.prototype.setSourceContent=function(n,i){this.sourceContents[r.toSetString(n)]=i},o.prototype.walkSourceContents=function(n){for(var i=0,g=this.children.length;i<g;i++)this.children[i][u]&&this.children[i].walkSourceContents(n);var p=Object.keys(this.sourceContents);for(i=0,g=p.length;i<g;i++)n(r.fromSetString(p[i]),this.sourceContents[p[i]])},o.prototype.toString=function(){var n="";return this.walk(function(i){n+=i}),n},o.prototype.toStringWithSourceMap=function(n){var i={code:"",line:1,column:0},g=new s(n),p=!1,C=null,h=null,a=null,d=null;return this.walk(function(e,t){i.code+=e,t.source!==null&&t.line!==null&&t.column!==null?(C===t.source&&h===t.line&&a===t.column&&d===t.name||g.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:i.line,column:i.column},name:t.name}),C=t.source,h=t.line,a=t.column,d=t.name,p=!0):p&&(g.addMapping({generated:{line:i.line,column:i.column}}),C=null,p=!1);for(var I=0,c=e.length;I<c;I++)e.charCodeAt(I)===10?(i.line++,i.column=0,I+1===c?(C=null,p=!1):p&&g.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:i.line,column:i.column},name:t.name})):i.column++}),this.walkSourceContents(function(e,t){g.setSourceContent(e,t)}),{code:i.code,map:g}},ie.SourceNode=o,ie}().SourceNode),F);class J{constructor({file:r,line:l,function:u,code:o,locals:n={},offender:i=!1,column:g}){b(this,"file");b(this,"line");b(this,"function");b(this,"code");b(this,"locals");b(this,"offender");b(this,"column");this.file=r,this.line=l,this.function=u,this.code=o,this.locals=n,this.offender=i,this.column=g}toDict(){const r={file:this.file,line:this.line,function:this.function,code:this.code,locals:Object.fromEntries(Object.entries(this.locals).map(([l,u])=>[l,String(u)]))};return this.offender&&(r.offender=this.offender),this.column!==void 0&&(r.column=this.column),r}toJson(){return JSON.stringify(this.toDict())}}class k{static encode(r){return r instanceof J?r.toDict():Array.isArray(r)?r.map(l=>k.encode(l)):typeof r=="object"&&r!==null?JSON.stringify(r):r}static stringify(r){return JSON.stringify(k.encode(r),(l,u)=>u instanceof J?u.toDict():u)}}let _=0;function De(s){A().sfDebug&&console.log("Initializing Exception Interceptor...");const r=new _e.Worker(new URL("data:application/javascript;base64,aW1wb3J0IHsgU2Vzc2lvbiB9IGZyb20gImluc3BlY3Rvci9wcm9taXNlcyI7CmltcG9ydCB7IHBhcmVudFBvcnQsIHdvcmtlckRhdGEgfSBmcm9tICJ3b3JrZXJfdGhyZWFkcyI7CgpnbG9iYWwuc2ZEZWJ1ZyA9IHVuZGVmaW5lZDsKZ2xvYmFsLnN0YWNrRGVwdGhMb2NhbHMgPSB1bmRlZmluZWQ7Cmdsb2JhbC5ub2RlTW9kdWxlc1RvQ29sbGVjdExvY2FsVmFyaWFibGVzT24gPSB1bmRlZmluZWQ7CgovKioKICogUHJvY2Vzc2VzIGNhbGwgZnJhbWVzIGZyb20gYW4gZXhjZXB0aW9uIGFuZCBwb3N0cyB0aGVtIHZpYSB0aGUgV29ya2Vy4oCZcyBwYXJlbnRQb3J0LgogKgogKiBAcGFyYW0gc2Vzc2lvbiAtIFRoZSBEZXZUb29scyBzZXNzaW9uIG9yIHNpbWlsYXIgb2JqZWN0IHlvdSB1c2UgdG8gcXVlcnkgZm9yIHNjcmlwdCBzb3VyY2VzLgogKiBAcGFyYW0gY2FsbEZyYW1lcyAtIEFuIGFycmF5IG9mIGNhbGwgZnJhbWUgb2JqZWN0cy4KICogQHBhcmFtIGRlc2NyaXB0aW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ZXJyb3IoIltXb3JrZXJdIEZhaWxlZCB0byBmZXRjaCBzY3JpcHQgc291cmNlOiIsIGVycik7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8vIEZldGNoIGxvY2FsIHZhcmlhYmxlcyBpZiB0aGVyZSdzIGFuIG9iamVjdElkCiAgICAgICAgY29uc3QgbG9jYWxzID0gbG9jYWxTY29wZT8ub2JqZWN0Py5vYmplY3RJZAogICAgICAgICAgPyBhd2FpdCBmZXRjaExvY2FsVmFyaWFibGVzKHNlc3Npb24sIGxvY2FsU2NvcGUub2JqZWN0Lm9iamVjdElkKQogICAgICAgICAgOiB7fTsKCiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgIGZ1bmN0aW9uOiBmdW5jdGlvbk5hbWUgfHwgIjxhbm9ueW1vdXM+IiwKICAgICAgICAgIGxvY2FscywKICAgICAgICAgIGZpbGUsCiAgICAgICAgICBsaW5lOiBsb2NhdGlvbj8ubGluZU51bWJlciB8fCAwLAogICAgICAgICAgY29kZSwKICAgICAgICB9OwogICAgICB9IGNhdGNoIChlcnJvcikgewogICAgICAgIGlmIChnbG9iYWwuc2ZEZWJ1ZykgewogICAgICAgICAgY29uc29sZS5lcnJvcigiW1dvcmtlcl0gRXJyb3IgcHJvY2Vzc2luZyBjYWxsIGZyYW1lOiIsIGVycm9yKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgIGZ1bmN0aW9uOiAiPGVycm9yPiIsCiAgICAgICAgICBsb2NhbHM6IHt9LAogICAgICAgICAgZmlsZTogIjx1bmtub3duPiIsCiAgICAgICAgICBsaW5lOiAwLAogICAgICAgICAgY29kZTogIjxub3QgY2FwdHVyZWQ+IiwKICAgICAgICB9OwogICAgICB9CiAgICB9KSwKICApOwogIC8vIFBvc3QgZXhjZXB0aW9uIGRhdGEKICBwYXJlbnRQb3J0Py5wb3N0TWVzc2FnZSh7IHR5cGU6ICJleGNlcHRpb24iLCBmcmF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ogICAgICAgICAgbWVzc2FnZS5ub2RlTW9kdWxlc1RvQ29sbGVjdExvY2FsVmFyaWFibGVzT247CgogICAgICAgIHJlc29sdmVNZXNzYWdlUHJvbWlzZSgpOwogICAgICB9CiAgICB9IGNhdGNoIChlcnJvcikgewogICAgICBpZiAoZ2xvYmFsLnNmRGVidWcpIHsKICAgICAgICBjb25zb2xlLmVycm9yKCLinYwgRXJyb3IgaW4gbWVzc2FnZSBoYW5kbGluZzoiLCBlcnJvcik7CiAgICAgIH0KICAgIH0KICB9KTsKCiAgYXdhaXQgbWVzc2FnZVByb21pc2U7CgogIHRyeSB7CiAgICBjb25zdCBzZXNzaW9uID0gbmV3IFNlc3Npb24oKTsKICAgIHNlc3Npb24uY29ubmVjdFRvTWFpblRocmVhZCgpOwoKICAgIHNlc3Npb24ub24oIkRlYnVnZ2VyLnJlc3VtZWQiLCAoKSA9PiB7CiAgICAgIGlzUGF1c2VkID0gZmFsc2U7CiAgICB9KTsKCiAgICBzZXNzaW9uLm9uKCJEZWJ1Z2dlci5wYXVzZWQiLCBhc3luYyAoZXZlbnQpID0+IHsKICAgICAgaXNQYXVzZWQgPSB0cnVlOwogICAgICBoYW5kbGVQYXVzZWQoc2Vzc2lvbiwgZXZlbnQucGFyYW1zKS50aGVuKAogICAgICAgIGFzeW5jICgpID0+IHsKICAgICAgICAgIC8vIEFmdGVyIHRoZSBwYXVzZSB3b3JrIGlzIGNvbXBsZXRlLCByZXN1bWUgZXhlY3V0aW9uIQogICAgICAgICAgaWYgKGlzUGF1c2VkKSB7CiAgICAgICAgICAgIGF3YWl0IHNlc3Npb24ucG9zdCgiRGVidWdnZXIucmVzdW1lIik7CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICBhc3luYyAoXykgPT4gewogICAgICAgICAgaWYgKGlzUGF1c2VkKSB7CiAgICAgICAgICAgIGF3YWl0IHNlc3Npb24ucG9zdCgiRGVidWdnZXIucmVzdW1lIik7CiAgICAgICAgICB9CiAgICAgICAgfSw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9uLCBpZCwgcHJvcC5uYW1lLCB2YXJpYWJsZXMpOwogICAgICAgIH0gZWxzZSBpZiAoCiAgICAgICAgICBwcm9wPy52YWx1ZT8ub2JqZWN0SWQgJiYKICAgICAgICAgIHByb3A/LnZhbHVlPy5jbGFzc05hbWUgPT09ICJPYmplY3QiCiAgICAgICAgKSB7CiAgICAgICAgICBjb25zdCBpZCA9IHByb3AudmFsdWUub2JqZWN0SWQ7CiAgICAgICAgICBhd2FpdCB1bnJvbGxPYmplY3Qoc2Vzc2lvbiwgaWQsIHByb3AubmFtZSwgdmFyaWFibGVzKTsKICAgICAgICB9IGVsc2UgaWYgKHByb3A/LnZhbHVlKSB7CiAgICAgICAgICB1bnJvbGxPdGhlcihwcm9wLCB2YXJpYWJsZXMpOwogICAgICAgIH0KICAgICAgfQogICAgICByZXR1cm4gdmFyaWFibGVzOwogICAgfQogIH0gY2F0Y2ggKGVycikgewogICAgaWYgKGdsb2JhbC5zZkRlYnVnKSB7CiAgICAgIGNvbnNvbGUuZXJyb3IoIltXb3JrZXJdIEZhaWxlZCB0byBmZXRjaCBsb2NhbCB2YXJpYWJsZXM6IiwgZXJyKTsKICAgIH0KICAgIHJldHVybiB7fTsKICB9Cn0KCnN0YXJ0RGVidWdnZXIoKS5jYXRjaCgoZXJyb3IpID0+IHsKICBpZiAoZ2xvYmFsLnNmRGVidWcpIHsKICAgIGNvbnNvbGUuZXJyb3IoIltXb3JrZXJdIEZhaWxlZCB0byBzdGFydCBkZWJ1Z2dlcjoiLCBlcnJvcik7CiAgfQp9KTsKCi8vIEtlZXAgdGhlIHdvcmtlciBhbGl2ZQpzZXRJbnRlcnZhbCgoKSA9PiB7fSwgMTAwMDApOwo="),{workerData:{captureAllExceptions:!0}});let l=null;r.on("message",i=>{if(typeof i=="string"&&A().sfDebug&&console.log(`[Worker] ${i}`),i.readyToGetParameters&&r.postMessage({sfDebug:A().sfDebug,stackDepthLocals:A().stackDepthLocals,nodeModulesToCollectLocalVariablesOn:A().nodeModulesToCollectLocalVariablesOn}),i.type==="exception"){const{frames:g}=i,p=l;if(!p)return;const C=function(a){return a?a.split(`
32
32
  `).slice(1).map(d=>{const e=/at (.+?) \((.+):(\d+):(\d+)\)/.exec(d)||/at (.+):(\d+):(\d+)/.exec(d);if(e){const[,t,I,c,m]=e;return new J({function:t||"<anonymous>",locals:{},file:I||"<unknown>",line:parseInt(c,10)||0,code:"<not captured>",column:parseInt(m)||0})}return new J({function:"<unknown>",locals:{},file:"<unknown>",line:0,code:"<not captured>",column:0})}):[]}(p.stack),h=function(a,d){const e=[];let t=-1,I=-1;for(let c=0;c<a.length;c++){const m=Oe(a[c].file);if(I=c,m!=="<unknown>"){for(let f=0;f<d.length;f++){const y=d[f];if(Re(y,m)||typeof y.file=="string"&&y.file.includes(m)){t=f,_=0,A().sfDebug&&console.log(`✅ Matched Frame Found: ${m} @ Debugger Frame ${f}`);break}}if(t!==-1)break}}if(t===-1)return _===10?(_=0,a):(++_,A().sfDebug&&console.log(`"❌ No matching frame found. Checking once again, Attempt N ${_}"`),[]);A().sfDebug&&console.log(`🔄 Merging from matched index ${t} onward...`);for(let c=0;c<d.length;c++){const m=a[I+c],f=d[t+c];e.push(new J({function:f?.function||m?.function||"<anonymous>",locals:f?.locals||m?.locals||{},file:m?.file||f?.file||"<unknown>",line:f?.line||m?.line||0,code:f?.code||m?.code||"<not captured>"}))}return e}(C,g||[]);if(h.length!==0){l=null;const a=A().stackDepthCodeTraceDepth,d=a===-1?h:h.slice(0,a+1),e=Math.min(d.length,C.length);for(let I=0;I<e;I++)(async()=>{const c=ze(d[I].file,C[I].line,C[I].column);c&&(c.content!=null&&(d[I].code=c.content),c.file!=null&&(d[I].file=c.file))})();s.setOperationName("CollectExceptions");const t=p.message?`${p.name}: ${p.message}`:p.name;A().sfDebug&&console.log("error message is : ",t),s.doSend(t,d)}}}),r.on("error",i=>{console.error("[Worker Error]",i)}),r.on("exit",i=>{console.error(`[Worker] Exited with code ${i}`)}),r.unref();const u=Error,o=new Set;function n(...i){const g=Reflect.construct(u,i);Reflect.setPrototypeOf(g,n.prototype),u.captureStackTrace&&u.captureStackTrace(g,n);const p=`${g.message}:${g.stack?.split(`
33
33
  `)[1]?.trim()}`;return o.has(p)||(o.add(p),l=g,r.postMessage({type:"processException",error:g.message})),g}n.prototype=Object.create(u.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(n,u),globalThis.Error=n}function Ge(s){return s=(s=(s=s.replace(/^webpack:\/\/[^\/]+\/\.?\//,"")).replace(/^.*\/pages\//,"pages/")).replace(/\.(js|ts)$/,"")}function ze(s,r,l){const u=function(n){n.startsWith("at ")&&(n=n.slice(3).trim());const i=n.match(/^(.*?)(:\d+)+(\.map)?$/);return i?i[1]:n}(s);if(!u||u==="<unknown>")return null;const o=u+".map";try{const n=We.readFileSync(o,"utf-8");if(n){const i=JSON.parse(n);let g=new Ve.SourceMapConsumer(i).originalPositionFor({line:r,column:l});if(u&&g.source){const p=Ge(u),C=i.sources.findIndex(h=>Ge(h)===p);if(C===-1)A().sfDebug&&console.log(`Source file "${u}" not found in the source map.`);else{const h=i.sourcesContent[C],a=i.names.join(",");if(h)return{content:h.split(`
34
34
  `).slice(g.line-1,g.line+20).join(`
@@ -36,7 +36,7 @@
36
36
  mutation ${this.operationName}($apiKey: String!, $serviceUuid: String!, $sessionId: String!, $exceptionMessage: String!, $traceJson: String!, $reentrancyGuardPreactive: Boolean!, $library: String!, $timestampMs: String!, $version: String!) {
37
37
  ${this.queryName}(apiKey: $apiKey, serviceUuid: $serviceUuid, sessionId: $sessionId, exceptionMessage: $exceptionMessage, traceJson: $traceJson, reentrancyGuardPreactive: $reentrancyGuardPreactive, library: $library, timestampMs: $timestampMs, version: $version)
38
38
  }
39
- `}}const N={},Se="getting request source code";var T=(s=>(s.UNKNOWN="unknown",s.ANONYMOUS="anonymous",s.NOT_CAPTURED="not captured",s))(T||{});const re="http:",oe="https:";class xe extends se{constructor(){super(),this.setOperationName("DomainsToNotPassHeaderTo")}async doSend(r){this.sendAppIdentifier(),this.send(r)}async send(r){const l=`
39
+ `}}const N={},Se="getting request source code";var D=(s=>(s.UNKNOWN="unknown",s.ANONYMOUS="anonymous",s.NOT_CAPTURED="not captured",s))(D||{});const re="http:",oe="https:";class xe extends se{constructor(){super(),this.setOperationName("DomainsToNotPassHeaderTo")}async doSend(r){this.sendAppIdentifier(),this.send(r)}async send(r){const l=`
40
40
  ${this.queryType} ${this.operationName}(
41
41
  $apiKey: String!,
42
42
  $serviceUuid: String!,
@@ -48,26 +48,30 @@
48
48
  domains: $domains
49
49
  )
50
50
  }
51
- `,u={apiKey:this.apiKey,serviceUuid:this.serviceUUID,domains:r};R(this.endpoint,this.operationName,l,u)}}class Pe extends L{constructor(){super();b(this,"serviceIdentifier",new x);this.setOperationName("CollectNetworkHops")}async sendAppIdentifier(){this.serviceIdentifier.doSend({})}async doSend(l,u){this.sendAppIdentifier(),this.send(u,l)}async send(l,u){const o=this.getVariables({requestDetails:l,entrypoint:u});R(this.endpoint,this.operationName,this.getQuery(),o)}getQuery(){return`
51
+ `,u={apiKey:this.apiKey,serviceUuid:this.serviceUUID,domains:r};R(this.endpoint,this.operationName,l,u)}}class Pe extends L{constructor(){super();b(this,"serviceIdentifier",new x);this.setOperationName("CollectNetworkHops")}async sendAppIdentifier(){this.serviceIdentifier.doSend({})}async doSend(l){this.sendAppIdentifier(),this.send(l)}async send(l){const{name:u,column:o,line:n,entrypoint:i}=l,g=this.getVariables({name:u,column:o,line:n,entrypoint:i});R(this.endpoint,this.operationName,this.getQuery(),g)}getQuery(){return`
52
52
  mutation ${this.operationName}(
53
53
  $apiKey: String!,
54
54
  $sessionId: String!,
55
55
  $timestampMs: String!,
56
- $requestDetails: String!,
56
+ $line: String!,
57
+ $column: String!,
58
+ $name: String!,
57
59
  $entrypoint: String!,
58
- $serviceUuid: String,
60
+ $serviceUuid: String
59
61
  ) {
60
62
  ${this.queryName}(
61
63
  apiKey: $apiKey,
62
64
  sessionId: $sessionId,
63
65
  timestampMs: $timestampMs,
64
- requestDetails: $requestDetails,
66
+ line: $line,
67
+ column: $column,
68
+ name: $name,
65
69
  entrypoint: $entrypoint,
66
70
  serviceUuid: $serviceUuid
67
71
  )
68
72
  }
69
73
  `}}const $e=["identitytoolkit.googleapis.com","t.co","*.twitter.com","*.gravatar.com","*.googleapis.com","*.amazonaws.com","*.smooch.io","*.zendesk.com"];class je{constructor(r=[]){b(this,"HEADER_TRACING","X-Sf3-Rid");b(this,"HEADER_LOG_GUARD","reentrancy_guard_logging_preactive");b(this,"HEADER_PRINT_GUARD","reentrancy_guard_print_preactive");b(this,"HEADER_EXCEPTION_GUARD","reentrancy_guard_exception_preactive");b(this,"contextManager");b(this,"excludedDomains");this.contextManager=O.getInstance(),this.excludedDomains=[...$e,...r].map(l=>l.toLowerCase()),A().sfDebug&&console.log("[RequestInterceptor] Initialized.")}parseStackFrame(r){const l=/\((.*):(\d+):(\d+)\)$/.exec(r.trim());if(!l)return null;const[,u,o,n]=l;return{filePath:u,line:parseInt(o,10),column:parseInt(n,10)}}async getOriginalPosition(r,l,u){let o={source:r,line:l,column:u,name:null};const n=r+".map";try{const i=JSON.parse(We.readFileSync(n,"utf-8"));let g=(await new Ve.SourceMapConsumer(i)).originalPositionFor({line:l,column:u});g.source&&(o=g)}catch(i){A().sfDebug&&console.error(`Could not read/parse map file at ${n}:`,i)}return{originalPos:o}}captureFirstUserLines(r,l=10){const u=A().sfDebug?10:l,o=Error.stackTraceLimit;Error.stackTraceLimit=Math.max(o,u);const n=new Error(Se);Se in Error&&Error.captureStackTrace(n,this.captureFirstUserLines);const i=n.stack||"";Error.stackTraceLimit=o;const g=i.split(`
70
- `).slice(1),p=[];for(const C of g)if(!(C.includes("node:internal")||C.includes("internal/modules")||C.includes("internal/process")||C.includes("node_modules")||C.includes(".next/server/chunks")||C.includes("RequestInterceptor")||C.includes("contextManager")||C.includes("setupConfig"))&&(p.push(C.trim()),p.length>=l))break;for(const C of p){const h=this.parseStackFrame(C);h?(async()=>{const{originalPos:a}=await this.getOriginalPosition(h.filePath,h.line,h.column);if(a){A().sfDebug&&console.log("[RequestInterceptor] First user code line:",a);const d=`line=${a.line?.toString()||T.UNKNOWN},column=${a.column?.toString()||T.NOT_CAPTURED},name=${a.name||T.NOT_CAPTURED}`;r.doSend(a.source,d)}})():A().sfDebug&&console.error("Could not parse stack line:",C)}}addReentrancyGuardHeaders(r){r.set(this.HEADER_LOG_GUARD,"true"),r.set(this.HEADER_PRINT_GUARD,"true"),r.set(this.HEADER_EXCEPTION_GUARD,"true")}shouldPropagateHeaders(r){return!this.excludedDomains.some(l=>new RegExp(`^${l.replace(/\*/g,".*")}$`).test(r))}addTracingHeaders(r,l){const u=new URL(l).hostname;if(this.shouldPropagateHeaders(u)){const o=this.contextManager.getOrSetSfTraceId(),n=this.contextManager.getOrSetPageVisitUUID(),i=X();r.set(this.HEADER_TRACING,`${o}/${n}/${i}`),A().sfDebug&&console.log(`[RequestInterceptor] Added tracing header for ${l}`)}else A().sfDebug&&console.error(`[RequestInterceptor] Excluded domain: ${u}`);this.addReentrancyGuardHeaders(r)}patchFetch(r){A().sfDebug&&console.log("[RequestInterceptor] Initializing Fetch request patch...");const l=globalThis.fetch;typeof l=="function"?globalThis.fetch=async(u,o)=>{this.captureFirstUserLines(r);const n=Date.now(),i=new Headers(o?.headers);let g;typeof u=="string"||u instanceof URL?g=u.toString():u instanceof Request?(g=u.url,u.headers.forEach((C,h)=>{i.set(h,C)})):A().sfDebug&&console.error("[Sailfish RequestInterceptor] Invalid fetch input."),A().sfDebug&&console.log("[RequestInterceptor] Fetching request to:",g),this.addTracingHeaders(i,g);const p={...o,headers:i};try{const C=await l(g,p),h=Date.now();return A().sfDebug&&console.log(`[RequestInterceptor] Fetch completed: ${g}, Status: ${C.status}, Duration: ${h-n}ms`),C}catch(C){const h=Date.now();A().sfDebug&&console.error(`[RequestInterceptor] Fetch failed: ${g}, Error: ${C}, Duration: ${h-n}ms`)}}:A().sfDebug&&console.error("[RequestInterceptor] Fetch not available.")}patchHttp(r){if(A().sfDebug&&console.log("[RequestInterceptor] Initializing HTTP/HTTPS request patch..."),!N||typeof N.request!="function")return void(A().sfDebug&&console.log("[RequestInterceptor] HTTP/HTTPS not available."));const l=N.request.bind(N),u=N.request.bind(N);N.request=function(o,n){let i;try{if(typeof o=="string"){const g=new URL(o);i={protocol:g.protocol||re,hostname:g.hostname,path:g.pathname+g.search,headers:{}}}else o instanceof URL?i={protocol:o.protocol||re,hostname:o.hostname,path:o.pathname+o.search,headers:{}}:(i={...o},i.protocol||(i.protocol=re));if(i.headers){const g=`${i.protocol}//${i.hostname}`;this.addTracingHeaders(i.headers,g),this.captureFirstUserLines(r)}else A().sfDebug&&console.warn("[RequestInterceptor] No headers found in HTTP request options. Skipping header addition.")}catch(g){throw A().sfDebug&&console.error("[RequestInterceptor] Error while processing HTTP request options:",g),g}return l(i,n)},N.request=function(o,n){let i;try{if(typeof o=="string"){const g=new URL(o);i={protocol:g.protocol||oe,hostname:g.hostname,path:g.pathname+g.search,headers:{}}}else o instanceof URL?i={protocol:o.protocol||oe,hostname:o.hostname,path:o.pathname+o.search,headers:{}}:(i={...o},i.protocol||(i.protocol=oe));if(i.headers){const g=`${i.protocol}//${i.hostname}`;this.addTracingHeaders(i.headers,g)}else A().sfDebug&&console.warn("[RequestInterceptor] No headers found in HTTPS request options. Skipping header addition.")}catch(g){throw A().sfDebug&&console.error("[RequestInterceptor] Error while processing HTTPS request options:",g),g}return u(i,n)},A().sfDebug&&console.log("✅ HTTP and HTTPS request methods patched globally.")}tryPatch(r,l){try{require.resolve(l),r(),console.log(`[RequestInterceptor] Patched ${l}`)}catch(u){console.warn(`[RequestInterceptor] Could not patch ${l}: ${u.message}`)}}}class Qe extends se{constructor(){super(),this.setOperationName("UpdateServiceDetails")}async doSend(){this.sendAppIdentifier(),this.send()}async send(){const r=`
74
+ `).slice(1),p=[];for(const C of g)if(!(C.includes("node:internal")||C.includes("internal/modules")||C.includes("internal/process")||C.includes("node_modules")||C.includes(".next/server/chunks")||C.includes("RequestInterceptor")||C.includes("contextManager")||C.includes("setupConfig"))&&(p.push(C.trim()),p.length>=l))break;for(const C of p){const h=this.parseStackFrame(C);h?(async()=>{const{originalPos:a}=await this.getOriginalPosition(h.filePath,h.line,h.column);if(a){A().sfDebug&&console.log("[RequestInterceptor] First user code line:",a);const d={line:a.line?.toString()||D.UNKNOWN,column:a.column?.toString()||D.NOT_CAPTURED,name:a.name||D.NOT_CAPTURED,entrypoint:a.source};r.doSend(d)}})():A().sfDebug&&console.error("Could not parse stack line:",C)}}addReentrancyGuardHeaders(r){r.set(this.HEADER_LOG_GUARD,"true"),r.set(this.HEADER_PRINT_GUARD,"true"),r.set(this.HEADER_EXCEPTION_GUARD,"true")}shouldPropagateHeaders(r){return!this.excludedDomains.some(l=>new RegExp(`^${l.replace(/\*/g,".*")}$`).test(r))}addTracingHeaders(r,l){const u=new URL(l).hostname;if(this.shouldPropagateHeaders(u)){const o=this.contextManager.getOrSetSfTraceId(),n=this.contextManager.getOrSetPageVisitUUID(),i=X();r.set(this.HEADER_TRACING,`${o}/${n}/${i}`),A().sfDebug&&console.log(`[RequestInterceptor] Added tracing header for ${l}`)}else A().sfDebug&&console.error(`[RequestInterceptor] Excluded domain: ${u}`);this.addReentrancyGuardHeaders(r)}patchFetch(r){const l=globalThis.fetch;typeof l=="function"?globalThis.fetch=async(u,o)=>{this.captureFirstUserLines(r);const n=Date.now(),i=new Headers(o?.headers);let g;typeof u=="string"||u instanceof URL?g=u.toString():u instanceof Request?(g=u.url,u.headers.forEach((C,h)=>{i.set(h,C)})):A().sfDebug&&console.error("[Sailfish RequestInterceptor] Invalid fetch input."),A().sfDebug&&console.log("[RequestInterceptor] Fetching request to:",g),this.addTracingHeaders(i,g);const p={...o,headers:i};try{const C=await l(g,p),h=Date.now();return A().sfDebug&&console.log(`[RequestInterceptor] Fetch completed: ${g}, Status: ${C.status}, Duration: ${h-n}ms`),C}catch(C){const h=Date.now();A().sfDebug&&console.error(`[RequestInterceptor] Fetch failed: ${g}, Error: ${C}, Duration: ${h-n}ms`)}}:A().sfDebug&&console.error("[RequestInterceptor] Fetch not available.")}patchHttp(r){if(A().sfDebug&&console.log("[RequestInterceptor] Initializing HTTP/HTTPS request patch..."),!N||typeof N.request!="function")return void(A().sfDebug&&console.log("[RequestInterceptor] HTTP/HTTPS not available."));const l=N.request.bind(N),u=N.request.bind(N);N.request=function(o,n){let i;try{if(typeof o=="string"){const g=new URL(o);i={protocol:g.protocol||re,hostname:g.hostname,path:g.pathname+g.search,headers:{}}}else o instanceof URL?i={protocol:o.protocol||re,hostname:o.hostname,path:o.pathname+o.search,headers:{}}:(i={...o},i.protocol||(i.protocol=re));if(i.headers){const g=`${i.protocol}//${i.hostname}`;this.addTracingHeaders(i.headers,g),this.captureFirstUserLines(r)}else A().sfDebug&&console.warn("[RequestInterceptor] No headers found in HTTP request options. Skipping header addition.")}catch(g){throw A().sfDebug&&console.error("[RequestInterceptor] Error while processing HTTP request options:",g),g}return l(i,n)},N.request=function(o,n){let i;try{if(typeof o=="string"){const g=new URL(o);i={protocol:g.protocol||oe,hostname:g.hostname,path:g.pathname+g.search,headers:{}}}else o instanceof URL?i={protocol:o.protocol||oe,hostname:o.hostname,path:o.pathname+o.search,headers:{}}:(i={...o},i.protocol||(i.protocol=oe));if(i.headers){const g=`${i.protocol}//${i.hostname}`;this.addTracingHeaders(i.headers,g)}else A().sfDebug&&console.warn("[RequestInterceptor] No headers found in HTTPS request options. Skipping header addition.")}catch(g){throw A().sfDebug&&console.error("[RequestInterceptor] Error while processing HTTPS request options:",g),g}return u(i,n)},A().sfDebug&&console.log("✅ HTTP and HTTPS request methods patched globally.")}tryPatch(r,l){try{require.resolve(l),r(),console.log(`[RequestInterceptor] Patched ${l}`)}catch(u){console.warn(`[RequestInterceptor] Could not patch ${l}: ${u.message}`)}}}class Qe extends se{constructor(){super(),this.setOperationName("UpdateServiceDetails")}async doSend(){this.sendAppIdentifier(),this.send()}async send(){const r=`
71
75
  ${this.queryType} ${this.operationName}(
72
76
  $apiKey: String!,
73
77
  $serviceUuid: String!,
@@ -87,4 +91,4 @@
87
91
 
88
92
  )
89
93
  }
90
- `,l=this.getVariables({serviceIdentifier:A().serviceIdentifier,serviceVersion:A().serviceVersion,serviceAdditionalMetadata:A().serviceAdditionalMetadata});R(this.endpoint,this.operationName,r,l)}}exports.addOrUpdateMetadata=function(s,r={},l,u=!1){const o=A();new ge(o.apiKey).addOrUpdateMetadata(s,r,l,u)},exports.identify=function(s,r,l,u=!1){const o=A();new ge(o.apiKey).identify(s,r,l,u)},exports.setupInterceptors=function(s){if(!s||!s.apiKey){const o=`The required API Key is not provided: ${JSON.stringify(s)}`;console.error(o)}const{config:r}=function(o){return z=new Je(o),{config:z}}(s);if(r.sfDebug&&console.log("Updated configuration after applying options:",r),!r.apiKey||!r.apiGraphqlEndpoint){const o=`The required config is not provided: ${JSON.stringify(r)}`;throw console.error(o),new Error(o)}const l=new se;l.setServiceUUID(r.serviceUUID),function(o){function n(a,d){o.setOperationName("CollectLogs"),o.doSend([d,a])}const i=console.log.bind(console),g=console.error.bind(console),p=console.warn.bind(console),C=console.info.bind(console),h=console.debug.bind(console);console.log=(...a)=>{n("INFO",a.join(" ")),i(...a)},console.error=(...a)=>{n("ERROR",a.join(" ")),g(...a)},console.warn=(...a)=>{n("WARN",a.join(" ")),p(...a)},console.info=(...a)=>{n("INFO",a.join(" ")),C(...a)},A().logLevel==="DEBUG"&&(console.debug=(...a)=>{n("DEBUG",a.join(" ")),h(...a)})}(l),function(o=[]){const n=new je(o);new xe().doSend(n.excludedDomains);const i=new Pe;n.patchFetch(i),n.patchHttp(i)}(r.domainsToNotPropagateHeadersTo);const u=new ke;u.setServiceUUID(r.serviceUUID),Te(u),new Qe().send()};
94
+ `,l=this.getVariables({serviceIdentifier:A().serviceIdentifier,serviceVersion:A().serviceVersion,serviceAdditionalMetadata:A().serviceAdditionalMetadata});R(this.endpoint,this.operationName,r,l)}}exports.addOrUpdateMetadata=function(s,r={},l,u=!1){const o=A();new ge(o.apiKey).addOrUpdateMetadata(s,r,l,u)},exports.identify=function(s,r,l,u=!1){const o=A();new ge(o.apiKey).identify(s,r,l,u)},exports.setupInterceptors=function(s){if(!s||!s.apiKey){const o=`The required API Key is not provided: ${JSON.stringify(s)}`;console.error(o)}const{config:r}=function(o){return z=new Je(o),{config:z}}(s);if(r.sfDebug&&console.log("Updated configuration after applying options:",r),!r.apiKey||!r.apiGraphqlEndpoint){const o=`The required config is not provided: ${JSON.stringify(r)}`;throw console.error(o),new Error(o)}const l=new se;l.setServiceUUID(r.serviceUUID),function(o){function n(a,d){o.setOperationName("CollectLogs"),o.doSend([d,a])}const i=console.log.bind(console),g=console.error.bind(console),p=console.warn.bind(console),C=console.info.bind(console),h=console.debug.bind(console);console.log=(...a)=>{n("INFO",a.join(" ")),i(...a)},console.error=(...a)=>{n("ERROR",a.join(" ")),g(...a)},console.warn=(...a)=>{n("WARN",a.join(" ")),p(...a)},console.info=(...a)=>{n("INFO",a.join(" ")),C(...a)},A().logLevel==="DEBUG"&&(console.debug=(...a)=>{n("DEBUG",a.join(" ")),h(...a)})}(l),function(o=[]){const n=new je(o);new xe().doSend(n.excludedDomains);const i=new Pe;n.patchFetch(i)}(r.domainsToNotPropagateHeadersTo);const u=new ke;u.setServiceUUID(r.serviceUUID),De(u),new Qe().send()};