@sentry/node
Advanced tools
Comparing version 8.0.0-alpha.3 to 8.0.0-alpha.4
@@ -1,2 +0,2 @@ | ||
/*! @sentry/node 8.0.0-alpha.3 (dd8a7c5) | https://github.com/getsentry/sentry-javascript */ | ||
import{Session as t}from"inspector";import{workerData as e,parentPort as n}from"worker_threads";import{posix as r,sep as o}from"path";import*as s from"node:http";import*as i from"node:https";import{Readable as c}from"stream";import{createGzip as u}from"zlib";import*as a from"net";import*as f from"tls";import*as h from"http";const l=Object.prototype.toString;function p(t,e){return l.call(t)===`[object ${e}]`}function d(t){return p(t,"String")}function m(t){return p(t,"Object")}function g(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function y(t,e){try{return t instanceof e}catch(t){return!1}}function b(t){return t&&t.Math==Math?t:void 0}const v="object"==typeof globalThis&&b(globalThis)||"object"==typeof window&&b(window)||"object"==typeof self&&b(self)||"object"==typeof global&&b(global)||function(){return this}()||{};function w(t,e,n){const r=n||v,o=r.__SENTRY__=r.__SENTRY__||{};return o[t]||(o[t]=e())}const _=v,S=80;function E(t,e){const n=t,r=[];let o,s,i,c,u;if(!n||!n.tagName)return"";if(_.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const a=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(a&&a.length)a.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&d(o))for(s=o.split(/\s+/),u=0;u<s.length;u++)r.push(`.${s[u]}`);const f=["aria-label","type","name","title","alt"];for(u=0;u<f.length;u++)i=f[u],c=n.getAttribute(i),c&&r.push(`[${i}="${c}"]`);return r.join("")}const $="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,x=["debug","info","warn","error","log","assert","trace"],k={};function N(t){if(!("console"in v))return t();const e=v.console,n={},r=Object.keys(k);r.forEach((t=>{const r=k[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const C=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return $?x.forEach((n=>{e[n]=(...e)=>{t&&N((()=>{v.console[n](`Sentry Logger [${n}]:`,...e)}))}})):x.forEach((t=>{e[t]=()=>{}})),e}();function A(t,e=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:c,publicKey:u}=t;return`${c}://${u}${e&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}class T extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}const j=50,D="?",O=/captureMessage|captureException/;const R="<anonymous>";function P(t){if(function(t){switch(l.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}(t))return{message:t.message,name:t.name,stack:t.stack,...M(t)};if(e=t,"undefined"!=typeof Event&&y(e,Event)){const e={type:t.type,target:I(t.target),currentTarget:I(t.currentTarget),...M(t)};return"undefined"!=typeof CustomEvent&&y(t,CustomEvent)&&(e.detail=t.detail),e}return t;var e}function I(t){try{return e=t,"undefined"!=typeof Element&&y(e,Element)?function(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,o=[];let s=0,i=0;const c=" > ",u=c.length;let a;const f=Array.isArray(e)?e:e.keyAttrs,h=!Array.isArray(e)&&e.maxStringLength||S;for(;n&&s++<r&&(a=E(n,f),!("html"===a||s>1&&i+o.length*u+a.length>=h));)o.push(a),i+=a.length,n=n.parentNode;return o.reverse().join(c)}catch(t){return"<unknown>"}}(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var e}function M(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function U(t){return B(t,new Map)}function B(t,e){if(function(t){if(!m(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=B(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(B(t,e))})),r}return t}function L(){const t=v,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function q(t,e=100,n=1/0){try{return H("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function H(t,e,n=1/0,r=1/0,o=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[s,i]=o;if(null==e||["number","boolean","string"].includes(typeof e)&&("number"!=typeof(c=e)||c==c))return e;var c;const u=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e.t)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&e===global)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(function(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.o)}(e))return"[VueViewModel]";if(function(t){return m(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${function(t){try{return t&&"function"==typeof t&&t.name||R}catch(t){return R}}(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const n=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(t){return`**non-serializable** (${t})`}}(t,e);if(!u.startsWith("[object "))return u;if(e.__sentry_skip_normalization__)return e;const a="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===a)return u.replace("object ","");if(s(e))return"[Circular ~]";const f=e;if(f&&"function"==typeof f.toJSON)try{return H("",f.toJSON(),a-1,r,o)}catch(t){}const h=Array.isArray(e)?[]:{};let l=0;const p=P(e);for(const t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(l>=r){h[t]="[MaxProperties ~]";break}const e=p[t];h[t]=H(t,e,a-1,r,o),l++}return i(e),h}function J(t,e){const n=e.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=t;try{r=decodeURI(t)}catch(t){}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}const G=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function W(t){const e=function(t){const e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,n=G.exec(e);return n?n.slice(1):[]}(t),n=e[0];let r=e[1];return n||r?(r&&(r=r.slice(0,r.length-1)),n+r):"."}var z;function F(t){return new Y((e=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(z||(z={}));class Y{constructor(t){Y.prototype.__init.call(this),Y.prototype.__init2.call(this),Y.prototype.__init3.call(this),Y.prototype.__init4.call(this),this.i=z.PENDING,this.u=[];try{t(this.h,this.l)}catch(t){this.l(t)}}then(t,e){return new Y(((n,r)=>{this.u.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this.p()}))}catch(t){return this.then((t=>t),t)}finally(t){return new Y(((e,n)=>{let r,o;return this.then((e=>{o=!1,r=e,t&&t()}),(e=>{o=!0,r=e,t&&t()})).then((()=>{o?n(r):e(r)}))}))}__init(){this.h=t=>{this.m(z.RESOLVED,t)}}__init2(){this.l=t=>{this.m(z.REJECTED,t)}}__init3(){this.m=(t,e)=>{this.i===z.PENDING&&(g(e)?e.then(this.h,this.l):(this.i=t,this.v=e,this.p()))}}__init4(){this.p=()=>{if(this.i===z.PENDING)return;const t=this.u.slice();this.u=[],t.forEach((t=>{t[0]||(this.i===z.RESOLVED&&t[1](this.v),this.i===z.REJECTED&&t[2](this.v),t[0]=!0)}))}}}function Z(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return o=new T("Not adding Promise because buffer limit was reached."),new Y(((t,e)=>{e(o)}));var o;const s=r();return-1===e.indexOf(s)&&e.push(s),s.then((()=>n(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(t){return new Y(((n,r)=>{let o=e.length;if(!o)return n(!0);const s=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{F(t).then((()=>{--o||(clearTimeout(s),n(!0))}),r)}))}))}}}const K={ip:!1,request:!0,transaction:!0,user:!0},V=["cookies","data","headers","method","query_string","url"],Q=["id","username","email"];function X(t,e={}){const n=t.method&&t.method.toUpperCase();let r="",o="url";e.customRoute||t.route?(r=e.customRoute||`${t.baseUrl||""}${t.route&&t.route.path}`,o="route"):(t.originalUrl||t.url)&&(r=(t.originalUrl||t.url||"").split(/[\?#]/,1)[0]);let s="";return e.method&&n&&(s+=n),e.method&&e.path&&(s+=" "),e.path&&r&&(s+=r),[s,o]}function tt(t,e){const{include:n=V}=e||{},r={},o=t.headers||{},s=t.method,i=o.host||t.hostname||t.host||"<no host>",c="https"===t.protocol||t.socket&&t.socket.encrypted?"https":"http",u=t.originalUrl||t.url||"",a=u.startsWith(c)?u:`${c}://${i}${u}`;return n.forEach((e=>{switch(e){case"headers":r.headers=o,n.includes("cookies")||delete r.headers.cookie;break;case"method":r.method=s;break;case"url":r.url=a;break;case"cookies":r.cookies=t.cookies||o.cookie&&function(t){const e={};let n=0;for(;n<t.length;){const r=t.indexOf("=",n);if(-1===r)break;let o=t.indexOf(";",n);if(-1===o)o=t.length;else if(o<r){n=t.lastIndexOf(";",r-1)+1;continue}const s=t.slice(n,r).trim();if(void 0===e[s]){let n=t.slice(r+1,o).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));try{e[s]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch(t){e[s]=n}}n=o+1}return e}(o.cookie)||{};break;case"query_string":r.query_string=function(t){let e=t.originalUrl||t.url||"";if(!e)return;e.startsWith("/")&&(e=`http://dogs.are.great${e}`);try{const n=t.query||new URL(e).search.slice(1);return n.length?n:void 0}catch(t){return}}(t);break;case"data":if("GET"===s||"HEAD"===s)break;void 0!==t.body&&(r.data=d(t.body)?t.body:JSON.stringify(q(t.body)));break;default:({}).hasOwnProperty.call(t,e)&&(r[e]=t[e])}})),r}function et(t,e,n){const r={...K,...n&&n.include};if(r.request){const n=Array.isArray(r.request)?tt(e,{include:r.request}):tt(e);t.request={...t.request,...n}}if(r.user){const n=e.user&&m(e.user)?function(t,e){const n={};return(Array.isArray(e)?e:Q).forEach((e=>{t&&e in t&&(n[e]=t[e])})),n}(e.user,r.user):{};Object.keys(n).length&&(t.user={...t.user,...n})}if(r.ip){const n=e.ip||e.socket&&e.socket.remoteAddress;n&&(t.user={...t.user,ip_address:n})}return r.transaction&&!t.transaction&&(t.transaction=function(t,e){switch(e){case"path":return X(t,{path:!0})[0];case"handler":return t.route&&t.route.stack&&t.route.stack[0]&&t.route.stack[0].name||"<anonymous>";default:return X(t,{path:!0,method:!0,customRoute:t._?t._:void 0})[0]}}(e,r.transaction)),t}function nt(t,e=!1){return!(e||t&&!t.startsWith("/")&&!t.match(/^[A-Z]:/)&&!t.startsWith(".")&&!t.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==t&&!t.includes("node_modules/")}const rt=1e3;function ot(){return Date.now()/rt}const st=function(){const{performance:t}=v;if(!t||!t.now)return ot;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/rt}();function it(t,e=[]){return[t,e]}function ct(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function ut(t){return(new TextEncoder).encode(t)}function at(t){const[e,n]=t;let r=JSON.stringify(e);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[ut(r),t]:r.push("string"==typeof t?ut(t):t)}for(const t of n){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(q(n))}o(t)}}return"string"==typeof r?r:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}(()=>{const{performance:t}=v;if(!t||!t.now)return;const e=36e5,n=t.now(),r=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,s=o<e,i=t.timing&&t.timing.navigationStart,c="number"==typeof i?Math.abs(i+n-r):e;(s||c<e)&&(o<=c&&t.timeOrigin)})();const ft={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function ht(t){return ft[t]}function lt(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}const pt=6e4;function dt(t,{statusCode:e,headers:n},r=Date.now()){const o={...t},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(s)for(const t of s.trim().split(",")){const[e,n]=t.split(":",2),s=parseInt(e,10),i=1e3*(isNaN(s)?60:s);if(n)for(const t of n.split(";"))o[t]=r+i;else o.all=r+i}else i?o.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?pt:r-e}(i,r):429===e&&(o.all=r+6e4);return o}const mt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function gt(){return yt(v),v}function yt(t){return t.__SENTRY__||(t.__SENTRY__={extensions:{}}),t.__SENTRY__}const bt="production";function vt(t){const e=st(),n={sid:L(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return U({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&wt(n,t),n}function wt(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||st(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:L()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}class _t{constructor(){this.S=!1,this.k=[],this.N=[],this.C=[],this.A=[],this.T={},this.j={},this.D={},this.O={},this.R={},this.P=St()}static clone(t){return t?t.clone():new _t}clone(){const t=new _t;return t.C=[...this.C],t.j={...this.j},t.D={...this.D},t.O={...this.O},t.T=this.T,t.I=this.I,t.M=this.M,t.U=this.U,t.B=this.B,t.L=this.L,t.N=[...this.N],t.q=this.q,t.A=[...this.A],t.R={...this.R},t.P={...this.P},t.H=this.H,t}setClient(t){this.H=t}getClient(){return this.H}addScopeListener(t){this.k.push(t)}addEventProcessor(t){return this.N.push(t),this}setUser(t){return this.T=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this.U&&wt(this.U,{user:t}),this.J(),this}getUser(){return this.T}getRequestSession(){return this.q}setRequestSession(t){return this.q=t,this}setTags(t){return this.j={...this.j,...t},this.J(),this}setTag(t,e){return this.j={...this.j,[t]:e},this.J(),this}setExtras(t){return this.D={...this.D,...t},this.J(),this}setExtra(t,e){return this.D={...this.D,[t]:e},this.J(),this}setFingerprint(t){return this.L=t,this.J(),this}setLevel(t){return this.I=t,this.J(),this}setTransactionName(t){return this.B=t,this.J(),this}setContext(t,e){return null===e?delete this.O[t]:this.O[t]=e,this.J(),this}setSpan(t){return this.M=t,this.J(),this}getSpan(){return this.M}getTransaction(){const t=this.M;if(t&&t.transaction)return t.transaction}setSession(t){return t?this.U=t:delete this.U,this.J(),this}getSession(){return this.U}update(t){if(!t)return this;const e="function"==typeof t?t(this):t;if(e instanceof _t){const t=e.getScopeData();this.j={...this.j,...t.tags},this.D={...this.D,...t.extra},this.O={...this.O,...t.contexts},t.user&&Object.keys(t.user).length&&(this.T=t.user),t.level&&(this.I=t.level),t.fingerprint.length&&(this.L=t.fingerprint),e.getRequestSession()&&(this.q=e.getRequestSession()),t.propagationContext&&(this.P=t.propagationContext)}else if(m(e)){const e=t;this.j={...this.j,...e.tags},this.D={...this.D,...e.extra},this.O={...this.O,...e.contexts},e.user&&(this.T=e.user),e.level&&(this.I=e.level),e.fingerprint&&(this.L=e.fingerprint),e.requestSession&&(this.q=e.requestSession),e.propagationContext&&(this.P=e.propagationContext)}return this}clear(){return this.C=[],this.j={},this.D={},this.T={},this.O={},this.I=void 0,this.B=void 0,this.L=void 0,this.q=void 0,this.M=void 0,this.U=void 0,this.J(),this.A=[],this.P=St(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:ot(),...t},o=this.C;return o.push(r),this.C=o.length>n?o.slice(-n):o,this.J(),this}getLastBreadcrumb(){return this.C[this.C.length-1]}clearBreadcrumbs(){return this.C=[],this.J(),this}addAttachment(t){return this.A.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this.A=[],this}getScopeData(){const{C:t,A:e,O:n,j:r,D:o,T:s,I:i,L:c,N:u,P:a,R:f,B:h,M:l}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:o,user:s,level:i,fingerprint:c||[],eventProcessors:u,propagationContext:a,sdkProcessingMetadata:f,transactionName:h,span:l}}setSDKProcessingMetadata(t){return this.R={...this.R,...t},this}setPropagationContext(t){return this.P=t,this}getPropagationContext(){return this.P}captureException(t,e){const n=e&&e.event_id?e.event_id:L();if(!this.H)return C.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this.H.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:L();if(!this.H)return C.warn("No client configured on scope - will not capture message!"),r;const o=new Error(t);return this.H.captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:L();return this.H?(this.H.captureEvent(t,{...e,event_id:n},this),n):(C.warn("No client configured on scope - will not capture event!"),n)}J(){this.S||(this.S=!0,this.k.forEach((t=>{t(this)})),this.S=!1)}}function St(){return{traceId:L(),spanId:L().substring(16)}}const Et=parseFloat("8.0.0-alpha.3"),$t=100;class xt{constructor(t,e,n,r=Et){let o,s;this.G=r,e?o=e:(o=new _t,o.setClient(t)),n?s=n:(s=new _t,s.setClient(t)),this.W=[{scope:o}],t&&this.bindClient(t),this.F=s}isOlderThan(t){return this.G<t}bindClient(t){const e=this.getStackTop();e.client=t,e.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const e=this.pushScope();let n;try{n=t(e)}catch(t){throw this.popScope(),t}return g(n)?n.then((t=>(this.popScope(),t)),(t=>{throw this.popScope(),t})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.F}getStack(){return this.W}getStackTop(){return this.W[this.W.length-1]}captureException(t,e){const n=e&&e.event_id?e.event_id:L(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...e,event_id:n}),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:L(),o=new Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:L();return this.getScope().captureEvent(t,{...e,event_id:n}),n}addBreadcrumb(t,e){const{client:n}=this.getStackTop();if(!n)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:o=$t}=n.getOptions&&n.getOptions()||{};if(o<=0)return;const s={timestamp:ot(),...t},i=r?N((()=>r(s,e))):s;null!==i&&(n.emit("beforeAddBreadcrumb",i,e),this.getIsolationScope().addBreadcrumb(i,o))}setUser(t){this.getIsolationScope().setUser(t)}setTags(t){this.getIsolationScope().setTags(t)}setExtras(t){this.getIsolationScope().setExtras(t)}setTag(t,e){this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getIsolationScope().setContext(t,e)}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return mt&&C.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}captureSession(t=!1){if(t)return this.endSession();this.Y()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),wt(t,n)}(e),this.Y(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:o=bt}=n&&n.getOptions()||{},{userAgent:s}=v.navigator||{},i=vt({release:r,environment:o,user:e.getUser(),...s&&{userAgent:s},...t}),c=e.getSession&&e.getSession();return c&&"ok"===c.status&&wt(c,{status:"exited"}),this.endSession(),e.setSession(i),i}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}Y(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}Z(t,...e){const n=yt(gt());if(n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);mt&&C.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function kt(){const t=yt(gt());return t.hub||(t.hub=new xt(void 0,w("defaultCurrentScope",(()=>new _t)),w("defaultIsolationScope",(()=>new _t)))),t.hub}function Nt(t){const e=yt(t);return e.acs?e.acs:{getCurrentHub:kt,withIsolationScope:Tt,withScope:Ct,withSetScope:At,withSetIsolationScope:(t,e)=>Tt(e),getCurrentScope:()=>kt().getScope(),getIsolationScope:()=>kt().getIsolationScope()}}function Ct(t){return kt().withScope(t)}function At(t,e){const n=kt();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function Tt(t){return kt().withScope((()=>t(kt().getIsolationScope())))}function jt(){return Nt(gt()).getCurrentScope().getClient()}const Dt=0,Ot=1;function Rt(t){return"number"==typeof t?Pt(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Pt(t.getTime()):st()}function Pt(t){return t>9999999999?t/1e3:t}function It(t){if(t&&t.code!==Dt)return t.code===Ot?"ok":t.message||"unknown_error"}function Mt(t,e,n,r){const o=lt(n),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const i=function(t,e,n,r){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:A(r)},...o&&{trace:U({...o})}}}(t,o,r,e);delete t.sdkProcessingMetadata;return it(i,[[{type:s},t]])}const Ut="7";function Bt(t,e){return n={sentry_key:t.publicKey,sentry_version:Ut,...e&&{sentry_client:`${e.name}/${e.version}`}},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}function Lt(t,e){return Object.assign((function(...t){return e(...t)}),{id:t})}const qt=30;function Ht(t,e,n=Z(t.bufferSize||qt)){let r={};return{send:function(o){const s=[];if(ct(o,((e,n)=>{const o=ht(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,o)){const r=Jt(e,n);t.recordDroppedEvent("ratelimit_backoff",o,r)}else s.push(e)})),0===s.length)return F({});const i=it(o[0],s),c=e=>{ct(i,((n,r)=>{const o=Jt(n,r);t.recordDroppedEvent(e,ht(r),o)}))};return n.add((()=>e({body:at(i)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&mt&&C.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=dt(r,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof T)return mt&&C.error("Skipped sending event because buffer is full."),c("queue_overflow"),F({});throw t}))},flush:t=>n.drain(t)}}function Jt(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}const Gt=new Map,Wt=new Set;function zt(t,e){return function(t){if(v.K)for(const e of Object.keys(v.K)){const n=v.K[e];if(Wt.has(e))continue;Wt.add(e);const r=t(e);for(const t of r.reverse())if(t.filename){Gt.set(t.filename,n);break}}}(t),Gt.get(e)}const Ft="ModuleMetadata";Lt(Ft,(()=>({name:Ft,setup(t){t.on("beforeEnvelope",(t=>{ct(t,((t,e)=>{if("event"===e){const e=Array.isArray(t)?t[1]:void 0;e&&(!function(t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const e of t.stacktrace.frames||[])delete e.module_metadata}))}catch(t){}}(e),t[1]=e)}}))}))},processEvent:(t,e,n)=>(function(t,e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const n of e.stacktrace.frames||[]){if(!n.filename)continue;const e=zt(t,n.filename);e&&(n.module_metadata=e)}}))}catch(t){}}(n.getOptions().stackParser,t),t)})));const Yt={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},Zt="RequestData",Kt=(t={})=>{const e={...Yt,...t,include:{...Yt.include,...t.include,user:t.include&&"boolean"==typeof t.include.user?t.include.user:{...Yt.include.user,...(t.include||{}).user}}};return{name:Zt,processEvent(t,n,r){const{transactionNamingScheme:o}=e,{sdkProcessingMetadata:s={}}=t,i=s.request;if(!i)return t;const c=function(t){const{transactionNamingScheme:e,include:{ip:n,user:r,...o}}=t,s=["method"];for(const[t,e]of Object.entries(o))e&&s.push(t);let i;if(void 0===r)i=!0;else if("boolean"==typeof r)i=r;else{const t=[];for(const[e,n]of Object.entries(r))n&&t.push(e);i=t}return{include:{ip:n,user:i,request:0!==s.length?s:void 0,transaction:e}}}(e),u=et(t,i,c);if("transaction"===t.type||"handler"===o)return u;const a=i.V;if(a){const t=function(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:o,name:s,endTime:i,parentSpanId:c,status:u}=t;return U({span_id:e,trace_id:n,data:r,description:s,parent_span_id:c,start_timestamp:Rt(o),timestamp:Rt(i)||void 0,status:It(u),op:r["sentry.op"],origin:r["sentry.origin"],X:void 0})}return{span_id:e,trace_id:n}}catch(t){return{}}}(a).description||"",e="sentry.javascript.nextjs"===function(t){try{return t.getOptions().tt.sdk.name}catch(t){return}}(r)?t.startsWith("/api"):"path"!==o,[n]=X(i,{path:!0,method:e,customRoute:t});u.transaction=n}return u}}};let Vt;Lt(Zt,Kt);const Qt="FunctionToString",Xt=new WeakMap;function te(t,e){return null!=t?t:e()}Lt(Qt,(()=>({name:Qt,setupOnce(){Vt=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=this.__sentry_original__;const n=Xt.has(jt())&&void 0!==e?e:this;return Vt.apply(n,t)}}catch(t){}},setup(t){Xt.set(t,!0)}})));const ee=Symbol("AgentBaseInternalState");class ne extends h.Agent{constructor(t){super(t),this[ee]={}}isSecureEndpoint(t){if(t){if("boolean"==typeof t.secureEndpoint)return t.secureEndpoint;if("string"==typeof t.protocol)return"https:"===t.protocol}const{stack:e}=new Error;return"string"==typeof e&&e.split("\n").some((t=>-1!==t.indexOf("(https.js:")||-1!==t.indexOf("node:https:")))}createSocket(t,e,n){const r={...e,secureEndpoint:this.isSecureEndpoint(e)};Promise.resolve().then((()=>this.connect(t,r))).then((o=>{if(o instanceof h.Agent)return o.addRequest(t,r);this[ee].currentSocket=o,super.createSocket(t,e,n)}),n)}createConnection(){const t=this[ee].currentSocket;if(this[ee].currentSocket=void 0,!t)throw new Error("No socket was returned in the `connect()` function");return t}get defaultPort(){return te(this[ee].defaultPort,(()=>"https:"===this.protocol?443:80))}set defaultPort(t){this[ee]&&(this[ee].defaultPort=t)}get protocol(){return te(this[ee].protocol,(()=>this.isSecureEndpoint()?"https:":"http:"))}set protocol(t){this[ee]&&(this[ee].protocol=t)}}function re(...t){C.log("[https-proxy-agent:parse-proxy-response]",...t)}function oe(t){return new Promise(((e,n)=>{let r=0;const o=[];function s(){const c=t.read();c?function(c){o.push(c),r+=c.length;const u=Buffer.concat(o,r),a=u.indexOf("\r\n\r\n");if(-1===a)return re("have not received end of HTTP headers yet..."),void s();const f=u.slice(0,a).toString("ascii").split("\r\n"),h=f.shift();if(!h)return t.destroy(),n(new Error("No header received from proxy CONNECT response"));const l=h.split(" "),p=+l[1],d=l.slice(2).join(" "),m={};for(const e of f){if(!e)continue;const r=e.indexOf(":");if(-1===r)return t.destroy(),n(new Error(`Invalid header from proxy CONNECT response: "${e}"`));const o=e.slice(0,r).toLowerCase(),s=e.slice(r+1).trimStart(),i=m[o];"string"==typeof i?m[o]=[i,s]:Array.isArray(i)?i.push(s):m[o]=s}re("got proxy server response: %o %o",h,m),i(),e({connect:{statusCode:p,statusText:d,headers:m},buffered:u})}(c):t.once("readable",s)}function i(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",s)}function c(){i(),re("onend"),n(new Error("Proxy connection ended before receiving CONNECT response"))}function u(t){i(),re("onerror %o",t),n(t)}t.on("error",u),t.on("end",c),s()}))}function se(...t){C.log("[https-proxy-agent]",...t)}class ie extends ne{static __initStatic(){this.protocols=["http","https"]}constructor(t,e){var n,r;super(e),this.options={},this.proxy="string"==typeof t?new URL(t):t,this.proxyHeaders=(n=function(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],s=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...t)=>n.call(e,...t))),e=void 0)}return n}([e,"optionalAccess",t=>t.headers]),r=()=>({}),null!=n?n:r()),se("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const o=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):"https:"===this.proxy.protocol?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...e?ue(e,"headers"):null,host:o,port:s}}async connect(t,e){const{proxy:n}=this;if(!e.host)throw new TypeError('No "host" provided');let r;if("https:"===n.protocol){se("Creating `tls.Socket`: %o",this.connectOpts);const t=this.connectOpts.servername||this.connectOpts.host;r=f.connect({...this.connectOpts,servername:t&&a.isIP(t)?void 0:t})}else se("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts);const o="function"==typeof this.proxyHeaders?this.proxyHeaders():{...this.proxyHeaders},s=a.isIPv6(e.host)?`[${e.host}]`:e.host;let i=`CONNECT ${s}:${e.port} HTTP/1.1\r\n`;if(n.username||n.password){const t=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(t).toString("base64")}`}o.Host=`${s}:${e.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const t of Object.keys(o))i+=`${t}: ${o[t]}\r\n`;const c=oe(r);r.write(`${i}\r\n`);const{connect:u,buffered:h}=await c;if(t.emit("proxyConnect",u),this.emit("proxyConnect",u,t),200===u.statusCode){if(t.once("socket",ce),e.secureEndpoint){se("Upgrading socket connection to TLS");const t=e.servername||e.host;return f.connect({...ue(e,"host","path","port"),socket:r,servername:a.isIP(t)?void 0:t})}return r}r.destroy();const l=new a.Socket({writable:!1});return l.readable=!0,t.once("socket",(t=>{se("Replaying proxy buffer for failed request"),t.push(h),t.push(null)})),l}}function ce(t){t.resume()}function ue(t,...e){const n={};let r;for(r in t)e.includes(r)||(n[r]=t[r]);return n}function ae(t,e){return null!=t?t:e()}ie.__initStatic();const fe=32768;function he(t){return t.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}function le(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],s=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...t)=>n.call(e,...t))),e=void 0)}return n}const pe=e;let de,me=!1;function ge(t){pe.debug&&console.log(`[ANR Worker] ${t}`)}const ye=function(t){let e;try{e=new URL(t.url)}catch(e){return N((()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.")})),Ht(t,(()=>Promise.resolve({})))}const n="https:"===e.protocol,r=function(t,e){const{no_proxy:n}=process.env;return n&&n.split(",").some((e=>t.host.endsWith(e)||t.hostname.endsWith(e)))?void 0:e}(e,t.proxy||(n?process.env.https_proxy:void 0)||process.env.http_proxy),o=n?i:s,a=void 0!==t.keepAlive&&t.keepAlive,f=r?new ie(r):new o.Agent({keepAlive:a,maxSockets:30,timeout:2e3}),h=function(t,e,n){const{hostname:r,pathname:o,port:s,protocol:i,search:a}=new URL(t.url);return function(f){return new Promise(((h,l)=>{let p=function(t){return new c({read(){this.push(t),this.push(null)}})}(f.body);const d={...t.headers};f.body.length>fe&&(d["content-encoding"]="gzip",p=p.pipe(u()));const m=e.request({method:"POST",agent:n,headers:d,hostname:r,path:`${o}${a}`,port:s,protocol:i,ca:t.caCerts},(t=>{t.on("data",(()=>{})),t.on("end",(()=>{})),t.setEncoding("utf8");const e=ae(t.headers["retry-after"],(()=>null)),n=ae(t.headers["x-sentry-rate-limits"],(()=>null));h({statusCode:t.statusCode,headers:{"retry-after":e,"x-sentry-rate-limits":Array.isArray(n)?n[0]:n}})}));m.on("error",l),p.pipe(m)}))}}(t,ae(t.httpModule,(()=>o)),f);return Ht(t,h)}({url:function(t,e={}){const n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e.tt?e.tt.sdk:void 0;return n||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(t)}?${Bt(t,r)}`}(pe.dsn),recordDroppedEvent:()=>{}});async function be(){if(de){ge("Sending abnormal session"),wt(de,{status:"abnormal",abnormal_mechanism:"anr_foreground"});const t=function(t,e,n,r){const o=lt(n);return it({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&e&&{dsn:A(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(de,pe.dsn,pe.sdkMetadata);ge(JSON.stringify(t)),await ye.send(t);try{le([n,"optionalAccess",t=>t.postMessage,"call",t=>t("session-ended")])}catch(t){}}}function ve(t){if(!t)return;const e=function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),O.test(e[e.length-1].function||"")&&(e.pop(),O.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,j).map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||D})))}(t);if(pe.appRootPath)for(const t of e)t.filename&&(t.filename=J(t.filename,pe.appRootPath));return e}async function we(t,e){if(me)return;me=!0,await be(),ge("Sending event");const n=Mt({event_id:L(),contexts:{...pe.contexts,trace:e},release:pe.release,environment:pe.environment,dist:pe.dist,platform:"node",level:"error",exception:{values:[{type:"ApplicationNotResponding",value:`Application Not Responding for at least ${pe.anrThreshold} ms`,stacktrace:{frames:ve(t)},mechanism:{type:"ANR"}}]},tags:pe.staticTags},pe.dsn,pe.sdkMetadata);ge(JSON.stringify(n)),await ye.send(n),await ye.flush(2e3),setTimeout((()=>{process.exit(0)}),5e3)}let _e;if(ge("Started"),pe.captureStackTrace){ge("Connecting to debugger");const e=new t;e.connectToMainThread(),ge("Connected to debugger");const n=new Map;e.on("Debugger.scriptParsed",(t=>{n.set(t.params.scriptId,t.params.url)})),e.on("Debugger.paused",(t=>{if("other"===t.params.reason)try{ge("Debugger paused");const s=[...t.params.callFrames],i=pe.appRootPath?function(t=(process.argv[1]?W(process.argv[1]):process.cwd()),e="\\"===o){const n=e?he(t):t;return t=>{if(!t)return;const o=e?he(t):t;let{dir:s,base:i,ext:c}=r.parse(o);".js"!==c&&".mjs"!==c&&".cjs"!==c||(i=i.slice(0,-1*c.length)),s||(s=".");const u=s.lastIndexOf("/node_modules");if(u>-1)return`${s.slice(u+14).replace(/\//g,".")}:${i}`;if(s.startsWith(n)){let t=s.slice(n.length+1).replace(/\//g,".");return t&&(t+=":"),t+=i,t}return i}}(pe.appRootPath):()=>{},c=s.map((t=>function(t,e,n){const r=e?e.replace(/^file:\/\//,""):void 0,o=t.location.columnNumber?t.location.columnNumber+1:void 0,s=t.location.lineNumber?t.location.lineNumber+1:void 0;return U({filename:r,module:n(r),function:t.functionName||D,colno:o,lineno:s,in_app:r?nt(r):void 0})}(t,n.get(t.location.scriptId),i)));e.post("Runtime.evaluate",{expression:'const ctx = __SENTRY__.acs?.getCurrentScope().getPropagationContext() || {}; ctx.traceId + "-" + ctx.spanId + "-" + ctx.parentSpanId',silent:!0},((t,n)=>{const r=n&&n.result?n.result.value:"--",[o,s,i]=r.split("-");e.post("Debugger.resume"),e.post("Debugger.disable");const u=le([o,"optionalAccess",t=>t.length])&&le([s,"optionalAccess",t=>t.length])?{trace_id:o,span_id:s,parent_span_id:i}:void 0;we(c,u).then(null,(()=>{ge("Sending ANR event failed.")}))}))}catch(t){throw e.post("Debugger.resume"),e.post("Debugger.disable"),t}})),_e=()=>{try{e.post("Debugger.enable",(()=>{e.post("Debugger.pause")}))}catch(t){}}}const{poll:Se}=function(t,e,n,r){const o=t();let s=!1,i=!0;return setInterval((()=>{const t=o.getTimeMs();!1===s&&t>e+n&&(s=!0,i&&r()),t<e+n&&(s=!1)}),20),{poll:()=>{o.reset()},enabled:t=>{i=t}}}((function(){let t=process.hrtime();return{getTimeMs:()=>{const[e,n]=process.hrtime(t);return Math.floor(1e3*e+n/1e6)},reset:()=>{t=process.hrtime()}}}),pe.pollInterval,pe.anrThreshold,(function(){ge("Watchdog timeout"),_e?(ge("Pausing debugger to capture stack trace"),_e()):(ge("Capturing event without a stack trace"),we().then(null,(()=>{ge("Sending ANR event failed on watchdog timeout.")})))}));le([n,"optionalAccess",t=>t.on,"call",t=>t("message",(t=>{t.session&&(de=vt(t.session)),Se()}))]); | ||
/*! @sentry/node 8.0.0-alpha.4 (b91e352) | https://github.com/getsentry/sentry-javascript */ | ||
import{Session as t}from"inspector";import{workerData as e,parentPort as n}from"worker_threads";import{posix as r,sep as o}from"path";import*as s from"node:http";import*as i from"node:https";import{Readable as c}from"stream";import{createGzip as u}from"zlib";import*as a from"net";import*as f from"tls";import*as h from"http";const l=Object.prototype.toString;function p(t,e){return l.call(t)===`[object ${e}]`}function d(t){return p(t,"String")}function m(t){return p(t,"Object")}function g(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function y(t,e){try{return t instanceof e}catch(t){return!1}}function b(t){return t&&t.Math==Math?t:void 0}const v="object"==typeof globalThis&&b(globalThis)||"object"==typeof window&&b(window)||"object"==typeof self&&b(self)||"object"==typeof global&&b(global)||function(){return this}()||{};function w(t,e,n){const r=n||v,o=r.__SENTRY__=r.__SENTRY__||{};return o[t]||(o[t]=e())}const _=v,S=80;function E(t,e){const n=t,r=[];let o,s,i,c,u;if(!n||!n.tagName)return"";if(_.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const a=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(a&&a.length)a.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&d(o))for(s=o.split(/\s+/),u=0;u<s.length;u++)r.push(`.${s[u]}`);const f=["aria-label","type","name","title","alt"];for(u=0;u<f.length;u++)i=f[u],c=n.getAttribute(i),c&&r.push(`[${i}="${c}"]`);return r.join("")}const $="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,x=["debug","info","warn","error","log","assert","trace"],k={};function N(t){if(!("console"in v))return t();const e=v.console,n={},r=Object.keys(k);r.forEach((t=>{const r=k[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const C=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return $?x.forEach((n=>{e[n]=(...e)=>{t&&N((()=>{v.console[n](`Sentry Logger [${n}]:`,...e)}))}})):x.forEach((t=>{e[t]=()=>{}})),e}();function A(t,e=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:c,publicKey:u}=t;return`${c}://${u}${e&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}class T extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}const j=50,D="?",O=/captureMessage|captureException/;const R="<anonymous>";function P(t){if(function(t){switch(l.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}(t))return{message:t.message,name:t.name,stack:t.stack,...M(t)};if(e=t,"undefined"!=typeof Event&&y(e,Event)){const e={type:t.type,target:I(t.target),currentTarget:I(t.currentTarget),...M(t)};return"undefined"!=typeof CustomEvent&&y(t,CustomEvent)&&(e.detail=t.detail),e}return t;var e}function I(t){try{return e=t,"undefined"!=typeof Element&&y(e,Element)?function(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,o=[];let s=0,i=0;const c=" > ",u=c.length;let a;const f=Array.isArray(e)?e:e.keyAttrs,h=!Array.isArray(e)&&e.maxStringLength||S;for(;n&&s++<r&&(a=E(n,f),!("html"===a||s>1&&i+o.length*u+a.length>=h));)o.push(a),i+=a.length,n=n.parentNode;return o.reverse().join(c)}catch(t){return"<unknown>"}}(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var e}function M(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function U(t){return B(t,new Map)}function B(t,e){if(function(t){if(!m(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=B(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(B(t,e))})),r}return t}function L(){const t=v,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function q(t,e=100,n=1/0){try{return H("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function H(t,e,n=1/0,r=1/0,o=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[s,i]=o;if(null==e||["number","boolean","string"].includes(typeof e)&&("number"!=typeof(c=e)||c==c))return e;var c;const u=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e.t)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&e===global)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(function(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.o)}(e))return"[VueViewModel]";if(function(t){return m(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${function(t){try{return t&&"function"==typeof t&&t.name||R}catch(t){return R}}(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const n=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(t){return`**non-serializable** (${t})`}}(t,e);if(!u.startsWith("[object "))return u;if(e.__sentry_skip_normalization__)return e;const a="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===a)return u.replace("object ","");if(s(e))return"[Circular ~]";const f=e;if(f&&"function"==typeof f.toJSON)try{return H("",f.toJSON(),a-1,r,o)}catch(t){}const h=Array.isArray(e)?[]:{};let l=0;const p=P(e);for(const t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(l>=r){h[t]="[MaxProperties ~]";break}const e=p[t];h[t]=H(t,e,a-1,r,o),l++}return i(e),h}function J(t,e){const n=e.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=t;try{r=decodeURI(t)}catch(t){}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}const G=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function W(t){const e=function(t){const e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,n=G.exec(e);return n?n.slice(1):[]}(t),n=e[0];let r=e[1];return n||r?(r&&(r=r.slice(0,r.length-1)),n+r):"."}var z;function F(t){return new Y((e=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(z||(z={}));class Y{constructor(t){Y.prototype.__init.call(this),Y.prototype.__init2.call(this),Y.prototype.__init3.call(this),Y.prototype.__init4.call(this),this.i=z.PENDING,this.u=[];try{t(this.h,this.l)}catch(t){this.l(t)}}then(t,e){return new Y(((n,r)=>{this.u.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this.p()}))}catch(t){return this.then((t=>t),t)}finally(t){return new Y(((e,n)=>{let r,o;return this.then((e=>{o=!1,r=e,t&&t()}),(e=>{o=!0,r=e,t&&t()})).then((()=>{o?n(r):e(r)}))}))}__init(){this.h=t=>{this.m(z.RESOLVED,t)}}__init2(){this.l=t=>{this.m(z.REJECTED,t)}}__init3(){this.m=(t,e)=>{this.i===z.PENDING&&(g(e)?e.then(this.h,this.l):(this.i=t,this.v=e,this.p()))}}__init4(){this.p=()=>{if(this.i===z.PENDING)return;const t=this.u.slice();this.u=[],t.forEach((t=>{t[0]||(this.i===z.RESOLVED&&t[1](this.v),this.i===z.REJECTED&&t[2](this.v),t[0]=!0)}))}}}function Z(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return o=new T("Not adding Promise because buffer limit was reached."),new Y(((t,e)=>{e(o)}));var o;const s=r();return-1===e.indexOf(s)&&e.push(s),s.then((()=>n(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(t){return new Y(((n,r)=>{let o=e.length;if(!o)return n(!0);const s=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{F(t).then((()=>{--o||(clearTimeout(s),n(!0))}),r)}))}))}}}const K={ip:!1,request:!0,transaction:!0,user:!0},V=["cookies","data","headers","method","query_string","url"],Q=["id","username","email"];function X(t,e={}){const n=t.method&&t.method.toUpperCase();let r="",o="url";e.customRoute||t.route?(r=e.customRoute||`${t.baseUrl||""}${t.route&&t.route.path}`,o="route"):(t.originalUrl||t.url)&&(r=(t.originalUrl||t.url||"").split(/[\?#]/,1)[0]);let s="";return e.method&&n&&(s+=n),e.method&&e.path&&(s+=" "),e.path&&r&&(s+=r),[s,o]}function tt(t,e){const{include:n=V}=e||{},r={},o=t.headers||{},s=t.method,i=o.host||t.hostname||t.host||"<no host>",c="https"===t.protocol||t.socket&&t.socket.encrypted?"https":"http",u=t.originalUrl||t.url||"",a=u.startsWith(c)?u:`${c}://${i}${u}`;return n.forEach((e=>{switch(e){case"headers":r.headers=o,n.includes("cookies")||delete r.headers.cookie;break;case"method":r.method=s;break;case"url":r.url=a;break;case"cookies":r.cookies=t.cookies||o.cookie&&function(t){const e={};let n=0;for(;n<t.length;){const r=t.indexOf("=",n);if(-1===r)break;let o=t.indexOf(";",n);if(-1===o)o=t.length;else if(o<r){n=t.lastIndexOf(";",r-1)+1;continue}const s=t.slice(n,r).trim();if(void 0===e[s]){let n=t.slice(r+1,o).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));try{e[s]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch(t){e[s]=n}}n=o+1}return e}(o.cookie)||{};break;case"query_string":r.query_string=function(t){let e=t.originalUrl||t.url||"";if(!e)return;e.startsWith("/")&&(e=`http://dogs.are.great${e}`);try{const n=t.query||new URL(e).search.slice(1);return n.length?n:void 0}catch(t){return}}(t);break;case"data":if("GET"===s||"HEAD"===s)break;void 0!==t.body&&(r.data=d(t.body)?t.body:JSON.stringify(q(t.body)));break;default:({}).hasOwnProperty.call(t,e)&&(r[e]=t[e])}})),r}function et(t,e,n){const r={...K,...n&&n.include};if(r.request){const n=Array.isArray(r.request)?tt(e,{include:r.request}):tt(e);t.request={...t.request,...n}}if(r.user){const n=e.user&&m(e.user)?function(t,e){const n={};return(Array.isArray(e)?e:Q).forEach((e=>{t&&e in t&&(n[e]=t[e])})),n}(e.user,r.user):{};Object.keys(n).length&&(t.user={...t.user,...n})}if(r.ip){const n=e.ip||e.socket&&e.socket.remoteAddress;n&&(t.user={...t.user,ip_address:n})}return r.transaction&&!t.transaction&&(t.transaction=function(t,e){switch(e){case"path":return X(t,{path:!0})[0];case"handler":return t.route&&t.route.stack&&t.route.stack[0]&&t.route.stack[0].name||"<anonymous>";default:return X(t,{path:!0,method:!0,customRoute:t._?t._:void 0})[0]}}(e,r.transaction)),t}function nt(t,e=!1){return!(e||t&&!t.startsWith("/")&&!t.match(/^[A-Z]:/)&&!t.startsWith(".")&&!t.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==t&&!t.includes("node_modules/")}const rt=1e3;function ot(){return Date.now()/rt}const st=function(){const{performance:t}=v;if(!t||!t.now)return ot;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/rt}();function it(t,e=[]){return[t,e]}function ct(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function ut(t){return(new TextEncoder).encode(t)}function at(t){const[e,n]=t;let r=JSON.stringify(e);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[ut(r),t]:r.push("string"==typeof t?ut(t):t)}for(const t of n){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(q(n))}o(t)}}return"string"==typeof r?r:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}(()=>{const{performance:t}=v;if(!t||!t.now)return;const e=36e5,n=t.now(),r=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,s=o<e,i=t.timing&&t.timing.navigationStart,c="number"==typeof i?Math.abs(i+n-r):e;(s||c<e)&&(o<=c&&t.timeOrigin)})();const ft={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function ht(t){return ft[t]}function lt(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}const pt=6e4;function dt(t,{statusCode:e,headers:n},r=Date.now()){const o={...t},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(s)for(const t of s.trim().split(",")){const[e,n]=t.split(":",2),s=parseInt(e,10),i=1e3*(isNaN(s)?60:s);if(n)for(const t of n.split(";"))o[t]=r+i;else o.all=r+i}else i?o.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?pt:r-e}(i,r):429===e&&(o.all=r+6e4);return o}const mt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function gt(){return yt(v),v}function yt(t){return t.__SENTRY__||(t.__SENTRY__={extensions:{}}),t.__SENTRY__}const bt="production";function vt(t){const e=st(),n={sid:L(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return U({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&wt(n,t),n}function wt(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||st(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:L()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}class _t{constructor(){this.S=!1,this.k=[],this.N=[],this.C=[],this.A=[],this.T={},this.j={},this.D={},this.O={},this.R={},this.P=St()}static clone(t){return t?t.clone():new _t}clone(){const t=new _t;return t.C=[...this.C],t.j={...this.j},t.D={...this.D},t.O={...this.O},t.T=this.T,t.I=this.I,t.M=this.M,t.U=this.U,t.B=this.B,t.L=this.L,t.N=[...this.N],t.q=this.q,t.A=[...this.A],t.R={...this.R},t.P={...this.P},t.H=this.H,t}setClient(t){this.H=t}getClient(){return this.H}addScopeListener(t){this.k.push(t)}addEventProcessor(t){return this.N.push(t),this}setUser(t){return this.T=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this.U&&wt(this.U,{user:t}),this.J(),this}getUser(){return this.T}getRequestSession(){return this.q}setRequestSession(t){return this.q=t,this}setTags(t){return this.j={...this.j,...t},this.J(),this}setTag(t,e){return this.j={...this.j,[t]:e},this.J(),this}setExtras(t){return this.D={...this.D,...t},this.J(),this}setExtra(t,e){return this.D={...this.D,[t]:e},this.J(),this}setFingerprint(t){return this.L=t,this.J(),this}setLevel(t){return this.I=t,this.J(),this}setTransactionName(t){return this.B=t,this.J(),this}setContext(t,e){return null===e?delete this.O[t]:this.O[t]=e,this.J(),this}setSpan(t){return this.M=t,this.J(),this}getSpan(){return this.M}getTransaction(){const t=this.M;if(t&&t.transaction)return t.transaction}setSession(t){return t?this.U=t:delete this.U,this.J(),this}getSession(){return this.U}update(t){if(!t)return this;const e="function"==typeof t?t(this):t;if(e instanceof _t){const t=e.getScopeData();this.j={...this.j,...t.tags},this.D={...this.D,...t.extra},this.O={...this.O,...t.contexts},t.user&&Object.keys(t.user).length&&(this.T=t.user),t.level&&(this.I=t.level),t.fingerprint.length&&(this.L=t.fingerprint),e.getRequestSession()&&(this.q=e.getRequestSession()),t.propagationContext&&(this.P=t.propagationContext)}else if(m(e)){const e=t;this.j={...this.j,...e.tags},this.D={...this.D,...e.extra},this.O={...this.O,...e.contexts},e.user&&(this.T=e.user),e.level&&(this.I=e.level),e.fingerprint&&(this.L=e.fingerprint),e.requestSession&&(this.q=e.requestSession),e.propagationContext&&(this.P=e.propagationContext)}return this}clear(){return this.C=[],this.j={},this.D={},this.T={},this.O={},this.I=void 0,this.B=void 0,this.L=void 0,this.q=void 0,this.M=void 0,this.U=void 0,this.J(),this.A=[],this.P=St(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:ot(),...t},o=this.C;return o.push(r),this.C=o.length>n?o.slice(-n):o,this.J(),this}getLastBreadcrumb(){return this.C[this.C.length-1]}clearBreadcrumbs(){return this.C=[],this.J(),this}addAttachment(t){return this.A.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this.A=[],this}getScopeData(){const{C:t,A:e,O:n,j:r,D:o,T:s,I:i,L:c,N:u,P:a,R:f,B:h,M:l}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:o,user:s,level:i,fingerprint:c||[],eventProcessors:u,propagationContext:a,sdkProcessingMetadata:f,transactionName:h,span:l}}setSDKProcessingMetadata(t){return this.R={...this.R,...t},this}setPropagationContext(t){return this.P=t,this}getPropagationContext(){return this.P}captureException(t,e){const n=e&&e.event_id?e.event_id:L();if(!this.H)return C.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this.H.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:L();if(!this.H)return C.warn("No client configured on scope - will not capture message!"),r;const o=new Error(t);return this.H.captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:L();return this.H?(this.H.captureEvent(t,{...e,event_id:n},this),n):(C.warn("No client configured on scope - will not capture event!"),n)}J(){this.S||(this.S=!0,this.k.forEach((t=>{t(this)})),this.S=!1)}}function St(){return{traceId:L(),spanId:L().substring(16)}}const Et=parseFloat("8.0.0-alpha.4"),$t=100;class xt{constructor(t,e,n,r=Et){let o,s;this.G=r,e?o=e:(o=new _t,o.setClient(t)),n?s=n:(s=new _t,s.setClient(t)),this.W=[{scope:o}],t&&this.bindClient(t),this.F=s}isOlderThan(t){return this.G<t}bindClient(t){const e=this.getStackTop();e.client=t,e.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const e=this.pushScope();let n;try{n=t(e)}catch(t){throw this.popScope(),t}return g(n)?n.then((t=>(this.popScope(),t)),(t=>{throw this.popScope(),t})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.F}getStack(){return this.W}getStackTop(){return this.W[this.W.length-1]}captureException(t,e){const n=e&&e.event_id?e.event_id:L(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...e,event_id:n}),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:L(),o=new Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:L();return this.getScope().captureEvent(t,{...e,event_id:n}),n}addBreadcrumb(t,e){const{client:n}=this.getStackTop();if(!n)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:o=$t}=n.getOptions&&n.getOptions()||{};if(o<=0)return;const s={timestamp:ot(),...t},i=r?N((()=>r(s,e))):s;null!==i&&(n.emit("beforeAddBreadcrumb",i,e),this.getIsolationScope().addBreadcrumb(i,o))}setUser(t){this.getIsolationScope().setUser(t)}setTags(t){this.getIsolationScope().setTags(t)}setExtras(t){this.getIsolationScope().setExtras(t)}setTag(t,e){this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getIsolationScope().setContext(t,e)}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return mt&&C.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}captureSession(t=!1){if(t)return this.endSession();this.Y()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),wt(t,n)}(e),this.Y(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:o=bt}=n&&n.getOptions()||{},{userAgent:s}=v.navigator||{},i=vt({release:r,environment:o,user:e.getUser(),...s&&{userAgent:s},...t}),c=e.getSession&&e.getSession();return c&&"ok"===c.status&&wt(c,{status:"exited"}),this.endSession(),e.setSession(i),i}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}Y(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}Z(t,...e){const n=yt(gt());if(n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);mt&&C.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function kt(){const t=yt(gt());return t.hub||(t.hub=new xt(void 0,w("defaultCurrentScope",(()=>new _t)),w("defaultIsolationScope",(()=>new _t)))),t.hub}function Nt(t){const e=yt(t);return e.acs?e.acs:{getCurrentHub:kt,withIsolationScope:Tt,withScope:Ct,withSetScope:At,withSetIsolationScope:(t,e)=>Tt(e),getCurrentScope:()=>kt().getScope(),getIsolationScope:()=>kt().getIsolationScope()}}function Ct(t){return kt().withScope(t)}function At(t,e){const n=kt();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function Tt(t){return kt().withScope((()=>t(kt().getIsolationScope())))}function jt(){return Nt(gt()).getCurrentScope().getClient()}const Dt=0,Ot=1;function Rt(t){return"number"==typeof t?Pt(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Pt(t.getTime()):st()}function Pt(t){return t>9999999999?t/1e3:t}function It(t){if(t&&t.code!==Dt)return t.code===Ot?"ok":t.message||"unknown_error"}function Mt(t,e,n,r){const o=lt(n),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const i=function(t,e,n,r){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:A(r)},...o&&{trace:U({...o})}}}(t,o,r,e);delete t.sdkProcessingMetadata;return it(i,[[{type:s},t]])}const Ut="7";function Bt(t,e){return n={sentry_key:t.publicKey,sentry_version:Ut,...e&&{sentry_client:`${e.name}/${e.version}`}},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}function Lt(t,e){return Object.assign((function(...t){return e(...t)}),{id:t})}const qt=30;function Ht(t,e,n=Z(t.bufferSize||qt)){let r={};return{send:function(o){const s=[];if(ct(o,((e,n)=>{const o=ht(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,o)){const r=Jt(e,n);t.recordDroppedEvent("ratelimit_backoff",o,r)}else s.push(e)})),0===s.length)return F({});const i=it(o[0],s),c=e=>{ct(i,((n,r)=>{const o=Jt(n,r);t.recordDroppedEvent(e,ht(r),o)}))};return n.add((()=>e({body:at(i)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&mt&&C.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=dt(r,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof T)return mt&&C.error("Skipped sending event because buffer is full."),c("queue_overflow"),F({});throw t}))},flush:t=>n.drain(t)}}function Jt(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}const Gt=new Map,Wt=new Set;function zt(t,e){return function(t){if(v.K)for(const e of Object.keys(v.K)){const n=v.K[e];if(Wt.has(e))continue;Wt.add(e);const r=t(e);for(const t of r.reverse())if(t.filename){Gt.set(t.filename,n);break}}}(t),Gt.get(e)}const Ft="ModuleMetadata";Lt(Ft,(()=>({name:Ft,setup(t){t.on("beforeEnvelope",(t=>{ct(t,((t,e)=>{if("event"===e){const e=Array.isArray(t)?t[1]:void 0;e&&(!function(t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const e of t.stacktrace.frames||[])delete e.module_metadata}))}catch(t){}}(e),t[1]=e)}}))}))},processEvent:(t,e,n)=>(function(t,e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const n of e.stacktrace.frames||[]){if(!n.filename)continue;const e=zt(t,n.filename);e&&(n.module_metadata=e)}}))}catch(t){}}(n.getOptions().stackParser,t),t)})));const Yt={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},Zt="RequestData",Kt=(t={})=>{const e={...Yt,...t,include:{...Yt.include,...t.include,user:t.include&&"boolean"==typeof t.include.user?t.include.user:{...Yt.include.user,...(t.include||{}).user}}};return{name:Zt,processEvent(t,n,r){const{transactionNamingScheme:o}=e,{sdkProcessingMetadata:s={}}=t,i=s.request;if(!i)return t;const c=function(t){const{transactionNamingScheme:e,include:{ip:n,user:r,...o}}=t,s=["method"];for(const[t,e]of Object.entries(o))e&&s.push(t);let i;if(void 0===r)i=!0;else if("boolean"==typeof r)i=r;else{const t=[];for(const[e,n]of Object.entries(r))n&&t.push(e);i=t}return{include:{ip:n,user:i,request:0!==s.length?s:void 0,transaction:e}}}(e),u=et(t,i,c);if("transaction"===t.type||"handler"===o)return u;const a=i.V;if(a){const t=function(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:o,name:s,endTime:i,parentSpanId:c,status:u}=t;return U({span_id:e,trace_id:n,data:r,description:s,parent_span_id:c,start_timestamp:Rt(o),timestamp:Rt(i)||void 0,status:It(u),op:r["sentry.op"],origin:r["sentry.origin"],X:void 0})}return{span_id:e,trace_id:n}}catch(t){return{}}}(a).description||"",e="sentry.javascript.nextjs"===function(t){try{return t.getOptions().tt.sdk.name}catch(t){return}}(r)?t.startsWith("/api"):"path"!==o,[n]=X(i,{path:!0,method:e,customRoute:t});u.transaction=n}return u}}};let Vt;Lt(Zt,Kt);const Qt="FunctionToString",Xt=new WeakMap;function te(t,e){return null!=t?t:e()}Lt(Qt,(()=>({name:Qt,setupOnce(){Vt=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=this.__sentry_original__;const n=Xt.has(jt())&&void 0!==e?e:this;return Vt.apply(n,t)}}catch(t){}},setup(t){Xt.set(t,!0)}})));const ee=Symbol("AgentBaseInternalState");class ne extends h.Agent{constructor(t){super(t),this[ee]={}}isSecureEndpoint(t){if(t){if("boolean"==typeof t.secureEndpoint)return t.secureEndpoint;if("string"==typeof t.protocol)return"https:"===t.protocol}const{stack:e}=new Error;return"string"==typeof e&&e.split("\n").some((t=>-1!==t.indexOf("(https.js:")||-1!==t.indexOf("node:https:")))}createSocket(t,e,n){const r={...e,secureEndpoint:this.isSecureEndpoint(e)};Promise.resolve().then((()=>this.connect(t,r))).then((o=>{if(o instanceof h.Agent)return o.addRequest(t,r);this[ee].currentSocket=o,super.createSocket(t,e,n)}),n)}createConnection(){const t=this[ee].currentSocket;if(this[ee].currentSocket=void 0,!t)throw new Error("No socket was returned in the `connect()` function");return t}get defaultPort(){return te(this[ee].defaultPort,(()=>"https:"===this.protocol?443:80))}set defaultPort(t){this[ee]&&(this[ee].defaultPort=t)}get protocol(){return te(this[ee].protocol,(()=>this.isSecureEndpoint()?"https:":"http:"))}set protocol(t){this[ee]&&(this[ee].protocol=t)}}function re(...t){C.log("[https-proxy-agent:parse-proxy-response]",...t)}function oe(t){return new Promise(((e,n)=>{let r=0;const o=[];function s(){const c=t.read();c?function(c){o.push(c),r+=c.length;const u=Buffer.concat(o,r),a=u.indexOf("\r\n\r\n");if(-1===a)return re("have not received end of HTTP headers yet..."),void s();const f=u.slice(0,a).toString("ascii").split("\r\n"),h=f.shift();if(!h)return t.destroy(),n(new Error("No header received from proxy CONNECT response"));const l=h.split(" "),p=+l[1],d=l.slice(2).join(" "),m={};for(const e of f){if(!e)continue;const r=e.indexOf(":");if(-1===r)return t.destroy(),n(new Error(`Invalid header from proxy CONNECT response: "${e}"`));const o=e.slice(0,r).toLowerCase(),s=e.slice(r+1).trimStart(),i=m[o];"string"==typeof i?m[o]=[i,s]:Array.isArray(i)?i.push(s):m[o]=s}re("got proxy server response: %o %o",h,m),i(),e({connect:{statusCode:p,statusText:d,headers:m},buffered:u})}(c):t.once("readable",s)}function i(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",s)}function c(){i(),re("onend"),n(new Error("Proxy connection ended before receiving CONNECT response"))}function u(t){i(),re("onerror %o",t),n(t)}t.on("error",u),t.on("end",c),s()}))}function se(...t){C.log("[https-proxy-agent]",...t)}class ie extends ne{static __initStatic(){this.protocols=["http","https"]}constructor(t,e){var n,r;super(e),this.options={},this.proxy="string"==typeof t?new URL(t):t,this.proxyHeaders=(n=function(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],s=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...t)=>n.call(e,...t))),e=void 0)}return n}([e,"optionalAccess",t=>t.headers]),r=()=>({}),null!=n?n:r()),se("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const o=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):"https:"===this.proxy.protocol?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...e?ue(e,"headers"):null,host:o,port:s}}async connect(t,e){const{proxy:n}=this;if(!e.host)throw new TypeError('No "host" provided');let r;if("https:"===n.protocol){se("Creating `tls.Socket`: %o",this.connectOpts);const t=this.connectOpts.servername||this.connectOpts.host;r=f.connect({...this.connectOpts,servername:t&&a.isIP(t)?void 0:t})}else se("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts);const o="function"==typeof this.proxyHeaders?this.proxyHeaders():{...this.proxyHeaders},s=a.isIPv6(e.host)?`[${e.host}]`:e.host;let i=`CONNECT ${s}:${e.port} HTTP/1.1\r\n`;if(n.username||n.password){const t=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(t).toString("base64")}`}o.Host=`${s}:${e.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const t of Object.keys(o))i+=`${t}: ${o[t]}\r\n`;const c=oe(r);r.write(`${i}\r\n`);const{connect:u,buffered:h}=await c;if(t.emit("proxyConnect",u),this.emit("proxyConnect",u,t),200===u.statusCode){if(t.once("socket",ce),e.secureEndpoint){se("Upgrading socket connection to TLS");const t=e.servername||e.host;return f.connect({...ue(e,"host","path","port"),socket:r,servername:a.isIP(t)?void 0:t})}return r}r.destroy();const l=new a.Socket({writable:!1});return l.readable=!0,t.once("socket",(t=>{se("Replaying proxy buffer for failed request"),t.push(h),t.push(null)})),l}}function ce(t){t.resume()}function ue(t,...e){const n={};let r;for(r in t)e.includes(r)||(n[r]=t[r]);return n}function ae(t,e){return null!=t?t:e()}ie.__initStatic();const fe=32768;function he(t){return t.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}function le(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],s=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...t)=>n.call(e,...t))),e=void 0)}return n}const pe=e;let de,me=!1;function ge(t){pe.debug&&console.log(`[ANR Worker] ${t}`)}const ye=function(t){let e;try{e=new URL(t.url)}catch(e){return N((()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.")})),Ht(t,(()=>Promise.resolve({})))}const n="https:"===e.protocol,r=function(t,e){const{no_proxy:n}=process.env;return n&&n.split(",").some((e=>t.host.endsWith(e)||t.hostname.endsWith(e)))?void 0:e}(e,t.proxy||(n?process.env.https_proxy:void 0)||process.env.http_proxy),o=n?i:s,a=void 0!==t.keepAlive&&t.keepAlive,f=r?new ie(r):new o.Agent({keepAlive:a,maxSockets:30,timeout:2e3}),h=function(t,e,n){const{hostname:r,pathname:o,port:s,protocol:i,search:a}=new URL(t.url);return function(f){return new Promise(((h,l)=>{let p=function(t){return new c({read(){this.push(t),this.push(null)}})}(f.body);const d={...t.headers};f.body.length>fe&&(d["content-encoding"]="gzip",p=p.pipe(u()));const m=e.request({method:"POST",agent:n,headers:d,hostname:r,path:`${o}${a}`,port:s,protocol:i,ca:t.caCerts},(t=>{t.on("data",(()=>{})),t.on("end",(()=>{})),t.setEncoding("utf8");const e=ae(t.headers["retry-after"],(()=>null)),n=ae(t.headers["x-sentry-rate-limits"],(()=>null));h({statusCode:t.statusCode,headers:{"retry-after":e,"x-sentry-rate-limits":Array.isArray(n)?n[0]:n}})}));m.on("error",l),p.pipe(m)}))}}(t,ae(t.httpModule,(()=>o)),f);return Ht(t,h)}({url:function(t,e={}){const n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e.tt?e.tt.sdk:void 0;return n||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(t)}?${Bt(t,r)}`}(pe.dsn),recordDroppedEvent:()=>{}});async function be(){if(de){ge("Sending abnormal session"),wt(de,{status:"abnormal",abnormal_mechanism:"anr_foreground"});const t=function(t,e,n,r){const o=lt(n);return it({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&e&&{dsn:A(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(de,pe.dsn,pe.sdkMetadata);ge(JSON.stringify(t)),await ye.send(t);try{le([n,"optionalAccess",t=>t.postMessage,"call",t=>t("session-ended")])}catch(t){}}}function ve(t){if(!t)return;const e=function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),O.test(e[e.length-1].function||"")&&(e.pop(),O.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,j).map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||D})))}(t);if(pe.appRootPath)for(const t of e)t.filename&&(t.filename=J(t.filename,pe.appRootPath));return e}async function we(t,e){if(me)return;me=!0,await be(),ge("Sending event");const n=Mt({event_id:L(),contexts:{...pe.contexts,trace:e},release:pe.release,environment:pe.environment,dist:pe.dist,platform:"node",level:"error",exception:{values:[{type:"ApplicationNotResponding",value:`Application Not Responding for at least ${pe.anrThreshold} ms`,stacktrace:{frames:ve(t)},mechanism:{type:"ANR"}}]},tags:pe.staticTags},pe.dsn,pe.sdkMetadata);ge(JSON.stringify(n)),await ye.send(n),await ye.flush(2e3),setTimeout((()=>{process.exit(0)}),5e3)}let _e;if(ge("Started"),pe.captureStackTrace){ge("Connecting to debugger");const e=new t;e.connectToMainThread(),ge("Connected to debugger");const n=new Map;e.on("Debugger.scriptParsed",(t=>{n.set(t.params.scriptId,t.params.url)})),e.on("Debugger.paused",(t=>{if("other"===t.params.reason)try{ge("Debugger paused");const s=[...t.params.callFrames],i=pe.appRootPath?function(t=(process.argv[1]?W(process.argv[1]):process.cwd()),e="\\"===o){const n=e?he(t):t;return t=>{if(!t)return;const o=e?he(t):t;let{dir:s,base:i,ext:c}=r.parse(o);".js"!==c&&".mjs"!==c&&".cjs"!==c||(i=i.slice(0,-1*c.length)),s||(s=".");const u=s.lastIndexOf("/node_modules");if(u>-1)return`${s.slice(u+14).replace(/\//g,".")}:${i}`;if(s.startsWith(n)){let t=s.slice(n.length+1).replace(/\//g,".");return t&&(t+=":"),t+=i,t}return i}}(pe.appRootPath):()=>{},c=s.map((t=>function(t,e,n){const r=e?e.replace(/^file:\/\//,""):void 0,o=t.location.columnNumber?t.location.columnNumber+1:void 0,s=t.location.lineNumber?t.location.lineNumber+1:void 0;return U({filename:r,module:n(r),function:t.functionName||D,colno:o,lineno:s,in_app:r?nt(r):void 0})}(t,n.get(t.location.scriptId),i)));e.post("Runtime.evaluate",{expression:'const ctx = __SENTRY__.acs?.getCurrentScope().getPropagationContext() || {}; ctx.traceId + "-" + ctx.spanId + "-" + ctx.parentSpanId',silent:!0},((t,n)=>{const r=n&&n.result?n.result.value:"--",[o,s,i]=r.split("-");e.post("Debugger.resume"),e.post("Debugger.disable");const u=le([o,"optionalAccess",t=>t.length])&&le([s,"optionalAccess",t=>t.length])?{trace_id:o,span_id:s,parent_span_id:i}:void 0;we(c,u).then(null,(()=>{ge("Sending ANR event failed.")}))}))}catch(t){throw e.post("Debugger.resume"),e.post("Debugger.disable"),t}})),_e=()=>{try{e.post("Debugger.enable",(()=>{e.post("Debugger.pause")}))}catch(t){}}}const{poll:Se}=function(t,e,n,r){const o=t();let s=!1,i=!0;return setInterval((()=>{const t=o.getTimeMs();!1===s&&t>e+n&&(s=!0,i&&r()),t<e+n&&(s=!1)}),20),{poll:()=>{o.reset()},enabled:t=>{i=t}}}((function(){let t=process.hrtime();return{getTimeMs:()=>{const[e,n]=process.hrtime(t);return Math.floor(1e3*e+n/1e6)},reset:()=>{t=process.hrtime()}}}),pe.pollInterval,pe.anrThreshold,(function(){ge("Watchdog timeout"),_e?(ge("Pausing debugger to capture stack trace"),_e()):(ge("Capturing event without a stack trace"),we().then(null,(()=>{ge("Sending ANR event failed on watchdog timeout.")})))}));le([n,"optionalAccess",t=>t.on,"call",t=>t("message",(t=>{t.session&&(de=vt(t.session)),Se()}))]); |
{ | ||
"name": "@sentry/node", | ||
"version": "8.0.0-alpha.3", | ||
"version": "8.0.0-alpha.4", | ||
"description": "Sentry Node SDK using OpenTelemetry for performance instrumentation", | ||
@@ -65,6 +65,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"@prisma/instrumentation": "5.9.0", | ||
"@sentry/core": "8.0.0-alpha.3", | ||
"@sentry/opentelemetry": "8.0.0-alpha.3", | ||
"@sentry/types": "8.0.0-alpha.3", | ||
"@sentry/utils": "8.0.0-alpha.3" | ||
"@sentry/core": "8.0.0-alpha.4", | ||
"@sentry/opentelemetry": "8.0.0-alpha.4", | ||
"@sentry/types": "8.0.0-alpha.4", | ||
"@sentry/utils": "8.0.0-alpha.4" | ||
}, | ||
@@ -71,0 +71,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
11
+ Added@sentry/core@8.0.0-alpha.4(transitive)
+ Added@sentry/opentelemetry@8.0.0-alpha.4(transitive)
+ Added@sentry/types@8.0.0-alpha.4(transitive)
+ Added@sentry/utils@8.0.0-alpha.4(transitive)
- Removed@sentry/core@8.0.0-alpha.3(transitive)
- Removed@sentry/opentelemetry@8.0.0-alpha.3(transitive)
- Removed@sentry/types@8.0.0-alpha.3(transitive)
- Removed@sentry/utils@8.0.0-alpha.3(transitive)
Updated@sentry/core@8.0.0-alpha.4
Updated@sentry/types@8.0.0-alpha.4
Updated@sentry/utils@8.0.0-alpha.4