@drenso/homey-log 3.0.0-beta.0 → 8.37.1-cjs

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.
@@ -0,0 +1,39 @@
1
+ var MR=Object.defineProperty;var Foe=Object.getOwnPropertyDescriptor;var koe=Object.getOwnPropertyNames;var Woe=Object.prototype.hasOwnProperty;var m=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var F=(t,e)=>()=>(t&&(e=t(t=0)),e);var c=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),M1=(t,e)=>{for(var r in e)MR(t,r,{get:e[r],enumerable:!0})},Yoe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of koe(e))!Woe.call(t,o)&&o!==r&&MR(t,o,{get:()=>e[o],enumerable:!(n=Foe(e,o))||n.enumerable});return t};var T=t=>Yoe(MR({},"__esModule",{value:!0}),t);var Er=c(lt=>{Object.defineProperty(lt,"__esModule",{value:!0});var L1=Object.prototype.toString;function Koe(t){switch(L1.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Jp(t,Error)}}function oa(t,e){return L1.call(t)===`[object ${e}]`}function Xoe(t){return oa(t,"ErrorEvent")}function Zoe(t){return oa(t,"DOMError")}function zoe(t){return oa(t,"DOMException")}function Joe(t){return oa(t,"String")}function D1(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function $oe(t){return t===null||D1(t)||typeof t!="object"&&typeof t!="function"}function G1(t){return oa(t,"Object")}function Qoe(t){return typeof Event<"u"&&Jp(t,Event)}function eie(t){return typeof Element<"u"&&Jp(t,Element)}function tie(t){return oa(t,"RegExp")}function rie(t){return!!(t&&t.then&&typeof t.then=="function")}function nie(t){return G1(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Jp(t,e){try{return t instanceof e}catch{return!1}}function oie(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}lt.isDOMError=Zoe;lt.isDOMException=zoe;lt.isElement=eie;lt.isError=Koe;lt.isErrorEvent=Xoe;lt.isEvent=Qoe;lt.isInstanceOf=Jp;lt.isParameterizedString=D1;lt.isPlainObject=G1;lt.isPrimitive=$oe;lt.isRegExp=tie;lt.isString=Joe;lt.isSyntheticEvent=nie;lt.isThenable=rie;lt.isVueViewModel=oie});var dl=c(os=>{Object.defineProperty(os,"__esModule",{value:!0});var $p=Er();function iie(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function sie(t,e){let r=t,n=r.length;if(n<=150)return r;e>n&&(e=n);let o=Math.max(e-60,0);o<5&&(o=0);let i=Math.min(o+140,n);return i>n-5&&(i=n),i===n&&(o=Math.max(i-140,0)),r=r.slice(o,i),o>0&&(r=`'{snip} ${r}`),i<n&&(r+=" {snip}"),r}function aie(t,e){if(!Array.isArray(t))return"";let r=[];for(let n=0;n<t.length;n++){let o=t[n];try{$p.isVueViewModel(o)?r.push("[VueViewModel]"):r.push(String(o))}catch{r.push("[value cannot be serialized]")}}return r.join(e)}function U1(t,e,r=!1){return $p.isString(t)?$p.isRegExp(e)?e.test(t):$p.isString(e)?r?t===e:t.includes(e):!1:!1}function uie(t,e=[],r=!1){return e.some(n=>U1(t,n,r))}os.isMatchingPattern=U1;os.safeJoin=aie;os.snipLine=sie;os.stringMatchesSomePattern=uie;os.truncate=iie});var V1=c(GR=>{Object.defineProperty(GR,"__esModule",{value:!0});var LR=Er(),cie=dl();function lie(t,e,r=250,n,o,i,s){if(!i.exception||!i.exception.values||!s||!LR.isInstanceOf(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=die(DR(t,e,o,s.originalException,n,i.exception.values,a,0),r))}function DR(t,e,r,n,o,i,s,a){if(i.length>=r+1)return i;let u=[...i];if(LR.isInstanceOf(n[o],Error)){x1(s,a);let l=t(e,n[o]),d=u.length;w1(l,o,d,a),u=DR(t,e,r,n[o],o,[l,...u],l,d)}return Array.isArray(n.errors)&&n.errors.forEach((l,d)=>{if(LR.isInstanceOf(l,Error)){x1(s,a);let p=t(e,l),_=u.length;w1(p,`errors[${d}]`,_,a),u=DR(t,e,r,l,o,[p,...u],p,_)}}),u}function x1(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function w1(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function die(t,e){return t.map(r=>(r.value&&(r.value=cie.truncate(r.value,e)),r))}GR.applyAggregateErrorsToEvent=lie});var B1=c(UR=>{Object.defineProperty(UR,"__esModule",{value:!0});function pie(t){let e=[],r=n=>{n.forEach(o=>{Array.isArray(o)?r(o):e.push(o)})};return r(t),e}UR.flatten=pie});var q1=c(xR=>{Object.defineProperty(xR,"__esModule",{value:!0});function _ie(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}xR.getBreadcrumbLogLevelFromHttpStatusCode=_ie});var VR=c(wR=>{Object.defineProperty(wR,"__esModule",{value:!0});var fie="8.37.1";wR.SDK_VERSION=fie});var qt=c(Qp=>{Object.defineProperty(Qp,"__esModule",{value:!0});var j1=VR(),H1=globalThis;function gie(t,e,r){let n=r||H1,o=n.__SENTRY__=n.__SENTRY__||{},i=o[j1.SDK_VERSION]=o[j1.SDK_VERSION]||{};return i[t]||(i[t]=e())}Qp.GLOBAL_OBJ=H1;Qp.getGlobalSingleton=gie});var BR=c(sa=>{Object.defineProperty(sa,"__esModule",{value:!0});var Eie=Er(),hie=qt(),ia=hie.GLOBAL_OBJ,mie=80;function Tie(t,e={}){if(!t)return"<unknown>";try{let r=t,n=5,o=[],i=0,s=0,a=" > ",u=a.length,l,d=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||mie;for(;r&&i++<n&&(l=Sie(r,d),!(l==="html"||i>1&&s+o.length*u+l.length>=p));)o.push(l),s+=l.length,r=r.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function Sie(t,e){let r=t,n=[];if(!r||!r.tagName)return"";if(ia.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());let o=e&&e.length?e.filter(s=>r.getAttribute(s)).map(s=>[s,r.getAttribute(s)]):null;if(o&&o.length)o.forEach(s=>{n.push(`[${s[0]}="${s[1]}"]`)});else{r.id&&n.push(`#${r.id}`);let s=r.className;if(s&&Eie.isString(s)){let a=s.split(/\s+/);for(let u of a)n.push(`.${u}`)}}let i=["aria-label","type","name","title","alt"];for(let s of i){let a=r.getAttribute(s);a&&n.push(`[${s}="${a}"]`)}return n.join("")}function Aie(){try{return ia.document.location.href}catch{return""}}function Rie(t){return ia.document&&ia.document.querySelector?ia.document.querySelector(t):null}function Oie(t){if(!ia.HTMLElement)return null;let e=t,r=5;for(let n=0;n<r;n++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}sa.getComponentName=Oie;sa.getDomElement=Rie;sa.getLocationHref=Aie;sa.htmlTreeAsString=Tie});var No=c(qR=>{Object.defineProperty(qR,"__esModule",{value:!0});var Iie=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;qR.DEBUG_BUILD=Iie});var Fn=c(aa=>{Object.defineProperty(aa,"__esModule",{value:!0});var bie=No(),e_=qt(),Pie="Sentry Logger ",jR=["debug","info","warn","error","log","assert","trace"],HR={};function F1(t){if(!("console"in e_.GLOBAL_OBJ))return t();let e=e_.GLOBAL_OBJ.console,r={},n=Object.keys(HR);n.forEach(o=>{let i=HR[o];r[o]=e[o],e[o]=i});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function yie(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return bie.DEBUG_BUILD?jR.forEach(r=>{e[r]=(...n)=>{t&&F1(()=>{e_.GLOBAL_OBJ.console[r](`${Pie}[${r}]:`,...n)})}}):jR.forEach(r=>{e[r]=()=>{}}),e}var vie=e_.getGlobalSingleton("logger",yie);aa.CONSOLE_LEVELS=jR;aa.consoleSandbox=F1;aa.logger=vie;aa.originalConsoleMethods=HR});var FR=c(_l=>{Object.defineProperty(_l,"__esModule",{value:!0});var Nie=No(),pl=Fn(),Cie=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Mie(t){return t==="http"||t==="https"}function Lie(t,e=!1){let{host:r,path:n,pass:o,port:i,projectId:s,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&o?`:${o}`:""}@${r}${i?`:${i}`:""}/${n&&`${n}/`}${s}`}function k1(t){let e=Cie.exec(t);if(!e){pl.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[r,n,o="",i="",s="",a=""]=e.slice(1),u="",l=a,d=l.split("/");if(d.length>1&&(u=d.slice(0,-1).join("/"),l=d.pop()),l){let p=l.match(/^\d+/);p&&(l=p[0])}return W1({host:i,pass:o,path:u,projectId:l,port:s,protocol:r,publicKey:n})}function W1(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Die(t){if(!Nie.DEBUG_BUILD)return!0;let{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(pl.logger.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:r.match(/^\d+$/)?Mie(n)?e&&isNaN(parseInt(e,10))?(pl.logger.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(pl.logger.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(pl.logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Gie(t){let e=typeof t=="string"?k1(t):W1(t);if(!(!e||!Die(e)))return e}_l.dsnFromString=k1;_l.dsnToString=Lie;_l.makeDsn=Gie});var YR=c(WR=>{Object.defineProperty(WR,"__esModule",{value:!0});var kR=class extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}};WR.SentryError=kR});var kn=c(jr=>{Object.defineProperty(jr,"__esModule",{value:!0});var Uie=BR(),xie=No(),ua=Er(),wie=Fn(),Y1=dl();function Vie(t,e,r){if(!(e in t))return;let n=t[e],o=r(n);typeof o=="function"&&z1(o,n),t[e]=o}function Z1(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{xie.DEBUG_BUILD&&wie.logger.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function z1(t,e){try{let r=e.prototype||{};t.prototype=e.prototype=r,Z1(t,"__sentry_original__",e)}catch{}}function Bie(t){return t.__sentry_original__}function qie(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function J1(t){if(ua.isError(t))return{message:t.message,name:t.name,stack:t.stack,...X1(t)};if(ua.isEvent(t)){let e={type:t.type,target:K1(t.target),currentTarget:K1(t.currentTarget),...X1(t)};return typeof CustomEvent<"u"&&ua.isInstanceOf(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function K1(t){try{return ua.isElement(t)?Uie.htmlTreeAsString(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function X1(t){if(typeof t=="object"&&t!==null){let e={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function jie(t,e=40){let r=Object.keys(J1(t));r.sort();let n=r[0];if(!n)return"[object has no keys]";if(n.length>=e)return Y1.truncate(n,e);for(let o=r.length;o>0;o--){let i=r.slice(0,o).join(", ");if(!(i.length>e))return o===r.length?i:Y1.truncate(i,e)}return""}function Hie(t){return KR(t,new Map)}function KR(t,e){if(Fie(t)){let r=e.get(t);if(r!==void 0)return r;let n={};e.set(t,n);for(let o of Object.getOwnPropertyNames(t))typeof t[o]<"u"&&(n[o]=KR(t[o],e));return n}if(Array.isArray(t)){let r=e.get(t);if(r!==void 0)return r;let n=[];return e.set(t,n),t.forEach(o=>{n.push(KR(o,e))}),n}return t}function Fie(t){if(!ua.isPlainObject(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}function kie(t){let e;switch(!0){case t==null:e=new String(t);break;case(typeof t=="symbol"||typeof t=="bigint"):e=Object(t);break;case ua.isPrimitive(t):e=new t.constructor(t);break;default:e=t;break}return e}jr.addNonEnumerableProperty=Z1;jr.convertToPlainObject=J1;jr.dropUndefinedKeys=Hie;jr.extractExceptionKeysForMessage=jie;jr.fill=Vie;jr.getOriginalFunction=Bie;jr.markFunctionWrapped=z1;jr.objectify=kie;jr.urlEncode=qie});var ca=c(Co=>{Object.defineProperty(Co,"__esModule",{value:!0});var eU=50,tU="?",$1=/\(error: (.*)\)/,Q1=/captureMessage|captureException/;function rU(...t){let e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{let i=[],s=r.split(`
2
+ `);for(let a=n;a<s.length;a++){let u=s[a];if(u.length>1024)continue;let l=$1.test(u)?u.replace($1,"$1"):u;if(!l.match(/\S*Error: /)){for(let d of e){let p=d(l);if(p){i.push(p);break}}if(i.length>=eU+o)break}}return nU(i.slice(o))}}function Wie(t){return Array.isArray(t)?rU(...t):t}function nU(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(t_(e).function||"")&&e.pop(),e.reverse(),Q1.test(t_(e).function||"")&&(e.pop(),Q1.test(t_(e).function||"")&&e.pop()),e.slice(0,eU).map(r=>({...r,filename:r.filename||t_(e).filename,function:r.function||tU}))}function t_(t){return t[t.length-1]||{}}var XR="<anonymous>";function Yie(t){try{return!t||typeof t!="function"?XR:t.name||XR}catch{return XR}}function Kie(t){let e=t.exception;if(e){let r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}Co.UNKNOWN_FUNCTION=tU;Co.createStackParser=rU;Co.getFramesFromEvent=Kie;Co.getFunctionName=Yie;Co.stackParserFromStackParserOptions=Wie;Co.stripSentryFramesAndReverse=nU});var pa=c(da=>{Object.defineProperty(da,"__esModule",{value:!0});var iU=No(),sU=Fn(),Xie=ca(),la={},oU={};function Zie(t,e){la[t]=la[t]||[],la[t].push(e)}function zie(){Object.keys(la).forEach(t=>{la[t]=void 0})}function Jie(t,e){if(!oU[t]){oU[t]=!0;try{e()}catch(r){iU.DEBUG_BUILD&&sU.logger.error(`Error while instrumenting ${t}`,r)}}}function $ie(t,e){let r=t&&la[t];if(r)for(let n of r)try{n(e)}catch(o){iU.DEBUG_BUILD&&sU.logger.error(`Error while triggering instrumentation handler.
3
+ Type: ${t}
4
+ Name: ${Xie.getFunctionName(n)}
5
+ Error:`,o)}}da.addHandler=Zie;da.maybeInstrument=Jie;da.resetInstrumentationHandlers=zie;da.triggerHandlers=$ie});var aU=c(JR=>{Object.defineProperty(JR,"__esModule",{value:!0});var ZR=Fn(),Qie=kn(),r_=qt(),zR=pa();function ese(t){let e="console";zR.addHandler(e,t),zR.maybeInstrument(e,tse)}function tse(){"console"in r_.GLOBAL_OBJ&&ZR.CONSOLE_LEVELS.forEach(function(t){t in r_.GLOBAL_OBJ.console&&Qie.fill(r_.GLOBAL_OBJ.console,t,function(e){return ZR.originalConsoleMethods[t]=e,function(...r){let n={args:r,level:t};zR.triggerHandlers("console",n);let o=ZR.originalConsoleMethods[t];o&&o.apply(r_.GLOBAL_OBJ.console,r)}})})}JR.addConsoleInstrumentationHandler=ese});var eO=c(nn=>{Object.defineProperty(nn,"__esModule",{value:!0});var rse=No(),nse=Fn(),ose=qt(),n_=ose.GLOBAL_OBJ;function ise(){try{return new ErrorEvent(""),!0}catch{return!1}}function sse(){try{return new DOMError(""),!0}catch{return!1}}function ase(){try{return new DOMException(""),!0}catch{return!1}}function QR(){if(!("fetch"in n_))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function $R(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function use(){if(typeof EdgeRuntime=="string")return!0;if(!QR())return!1;if($R(n_.fetch))return!0;let t=!1,e=n_.document;if(e&&typeof e.createElement=="function")try{let r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=$R(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){rse.DEBUG_BUILD&&nse.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function cse(){return"ReportingObserver"in n_}function lse(){if(!QR())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}nn.isNativeFunction=$R;nn.supportsDOMError=sse;nn.supportsDOMException=ase;nn.supportsErrorEvent=ise;nn.supportsFetch=QR;nn.supportsNativeFetch=use;nn.supportsReferrerPolicy=lse;nn.supportsReportingObserver=cse});var o_=c(on=>{Object.defineProperty(on,"__esModule",{value:!0});var uU=qt(),cU=1e3;function lU(){return Date.now()/cU}function dse(){let{performance:t}=uU.GLOBAL_OBJ;if(!t||!t.now)return lU;let e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/cU}var pse=dse();on._browserPerformanceTimeOriginMode=void 0;var _se=(()=>{let{performance:t}=uU.GLOBAL_OBJ;if(!t||!t.now){on._browserPerformanceTimeOriginMode="none";return}let e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,i=o<e,s=t.timing&&t.timing.navigationStart,u=typeof s=="number"?Math.abs(s+r-n):e,l=u<e;return i||l?o<=u?(on._browserPerformanceTimeOriginMode="timeOrigin",t.timeOrigin):(on._browserPerformanceTimeOriginMode="navigationStart",s):(on._browserPerformanceTimeOriginMode="dateNow",n)})();on.browserPerformanceTimeOrigin=_se;on.dateTimestampInSeconds=lU;on.timestampInSeconds=pse});var EU=c(fl=>{Object.defineProperty(fl,"__esModule",{value:!0});var fse=Er(),dU=kn(),gse=eO(),i_=o_(),pU=qt(),Mo=pa();function Ese(t,e){let r="fetch";Mo.addHandler(r,t),Mo.maybeInstrument(r,()=>fU(void 0,e))}function hse(t){let e="fetch-body-resolved";Mo.addHandler(e,t),Mo.maybeInstrument(e,()=>fU(Tse))}function fU(t,e=!1){e&&!gse.supportsNativeFetch()||dU.fill(pU.GLOBAL_OBJ,"fetch",function(r){return function(...n){let{method:o,url:i}=gU(n),s={args:n,fetchData:{method:o,url:i},startTimestamp:i_.timestampInSeconds()*1e3};t||Mo.triggerHandlers("fetch",{...s});let a=new Error().stack;return r.apply(pU.GLOBAL_OBJ,n).then(async u=>(t?t(u):Mo.triggerHandlers("fetch",{...s,endTimestamp:i_.timestampInSeconds()*1e3,response:u}),u),u=>{throw Mo.triggerHandlers("fetch",{...s,endTimestamp:i_.timestampInSeconds()*1e3,error:u}),fse.isError(u)&&u.stack===void 0&&(u.stack=a,dU.addNonEnumerableProperty(u,"framesToPop",1)),u})}})}async function mse(t,e){if(t&&t.body){let r=t.body,n=r.getReader(),o=setTimeout(()=>{r.cancel().then(null,()=>{})},90*1e3),i=!0;for(;i;){let s;try{s=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:a}=await n.read();clearTimeout(s),a&&(e(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),n.releaseLock(),r.cancel().then(null,()=>{})}}function Tse(t){let e;try{e=t.clone()}catch{return}mse(e,()=>{Mo.triggerHandlers("fetch-body-resolved",{endTimestamp:i_.timestampInSeconds()*1e3,response:t})})}function tO(t,e){return!!t&&typeof t=="object"&&!!t[e]}function _U(t){return typeof t=="string"?t:t?tO(t,"url")?t.url:t.toString?t.toString():"":""}function gU(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[r,n]=t;return{url:_U(r),method:tO(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:_U(e),method:tO(e,"method")?String(e.method).toUpperCase():"GET"}}fl.addFetchEndInstrumentationHandler=hse;fl.addFetchInstrumentationHandler=Ese;fl.parseFetchArgs=gU});var hU=c(oO=>{Object.defineProperty(oO,"__esModule",{value:!0});var rO=qt(),nO=pa(),s_=null;function Sse(t){let e="error";nO.addHandler(e,t),nO.maybeInstrument(e,Ase)}function Ase(){s_=rO.GLOBAL_OBJ.onerror,rO.GLOBAL_OBJ.onerror=function(t,e,r,n,o){let i={column:n,error:o,line:r,msg:t,url:e};return nO.triggerHandlers("error",i),s_&&!s_.__SENTRY_LOADER__?s_.apply(this,arguments):!1},rO.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}oO.addGlobalErrorInstrumentationHandler=Sse});var mU=c(aO=>{Object.defineProperty(aO,"__esModule",{value:!0});var iO=qt(),sO=pa(),a_=null;function Rse(t){let e="unhandledrejection";sO.addHandler(e,t),sO.maybeInstrument(e,Ose)}function Ose(){a_=iO.GLOBAL_OBJ.onunhandledrejection,iO.GLOBAL_OBJ.onunhandledrejection=function(t){let e=t;return sO.triggerHandlers("unhandledrejection",e),a_&&!a_.__SENTRY_LOADER__?a_.apply(this,arguments):!0},iO.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}aO.addGlobalUnhandledRejectionInstrumentationHandler=Rse});var uO=c(u_=>{Object.defineProperty(u_,"__esModule",{value:!0});function Ise(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function bse(){return"npm"}u_.getSDKSource=bse;u_.isBrowserBundle=Ise});var cO=c((gl,l_)=>{Object.defineProperty(gl,"__esModule",{value:!0});var Pse=uO();function yse(){return!Pse.isBrowserBundle()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function c_(t,e){return t.require(e)}function vse(t){let e;try{e=c_(l_,t)}catch{}if(!e)try{let{cwd:r}=c_(l_,"process");e=c_(l_,`${r()}/node_modules/${t}`)}catch{}return e}gl.dynamicRequire=c_;gl.isNodeEnv=yse;gl.loadModule=vse});var SU=c(lO=>{Object.defineProperty(lO,"__esModule",{value:!0});var Nse=cO(),TU=qt();function Cse(){return typeof window<"u"&&(!Nse.isNodeEnv()||Mse())}function Mse(){return TU.GLOBAL_OBJ.process!==void 0&&TU.GLOBAL_OBJ.process.type==="renderer"}lO.isBrowser=Cse});var pO=c(dO=>{Object.defineProperty(dO,"__esModule",{value:!0});function Lse(){let t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let i=0;i<e.length;i++)if(e[i]===o)return!0;return e.push(o),!1}function n(o){if(t)e.delete(o);else for(let i=0;i<e.length;i++)if(e[i]===o){e.splice(i,1);break}}return[r,n]}dO.memoBuilder=Lse});var El=c(sn=>{Object.defineProperty(sn,"__esModule",{value:!0});var Dse=kn(),_O=dl(),Gse=qt();function Use(){let t=Gse.GLOBAL_OBJ,e=t.crypto||t.msCrypto,r=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{let n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function AU(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function xse(t){let{message:e,event_id:r}=t;if(e)return e;let n=AU(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function wse(t,e,r){let n=t.exception=t.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type=r||"Error")}function Vse(t,e){let r=AU(t);if(!r)return;let n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){let i={...o&&o.data,...e.data};r.mechanism.data=i}}var Bse=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function fO(t){return parseInt(t||"",10)}function qse(t){let e=t.match(Bse)||[],r=fO(e[1]),n=fO(e[2]),o=fO(e[3]);return{buildmetadata:e[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(o)?void 0:o,prerelease:e[4]}}function jse(t,e,r=5){if(e.lineno===void 0)return;let n=t.length,o=Math.max(Math.min(n-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,o-r),o).map(s=>_O.snipLine(s,0));let i=Math.min(n-1,o);e.context_line=_O.snipLine(t[i],e.colno||0),e.post_context=t.slice(Math.min(o+1,n),o+1+r).map(s=>_O.snipLine(s,0))}function Hse(t){if(t&&t.__sentry_captured__)return!0;try{Dse.addNonEnumerableProperty(t,"__sentry_captured__",!0)}catch{}return!1}function Fse(t){return Array.isArray(t)?t:[t]}sn.addContextToFrame=jse;sn.addExceptionMechanism=Vse;sn.addExceptionTypeValue=wse;sn.arrayify=Fse;sn.checkOrSetAlreadyCaught=Hse;sn.getEventDescription=xse;sn.parseSemver=qse;sn.uuid4=Use});var ml=c(hl=>{Object.defineProperty(hl,"__esModule",{value:!0});var RU=Er(),kse=pO(),Wse=kn(),Yse=ca();function OU(t,e=100,r=1/0){try{return gO("",t,e,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function IU(t,e=3,r=100*1024){let n=OU(t,e);return zse(n)>r?IU(t,e-1,r):n}function gO(t,e,r=1/0,n=1/0,o=kse.memoBuilder()){let[i,s]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;let a=Kse(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;let u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(u===0)return a.replace("object ","");if(i(e))return"[Circular ~]";let l=e;if(l&&typeof l.toJSON=="function")try{let f=l.toJSON();return gO("",f,u-1,n,o)}catch{}let d=Array.isArray(e)?[]:{},p=0,_=Wse.convertToPlainObject(e);for(let f in _){if(!Object.prototype.hasOwnProperty.call(_,f))continue;if(p>=n){d[f]="[MaxProperties ~]";break}let g=_[f];d[f]=gO(f,g,u-1,n,o),p++}return s(e),d}function Kse(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(RU.isVueViewModel(e))return"[VueViewModel]";if(RU.isSyntheticEvent(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Yse.getFunctionName(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let r=Xse(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function Xse(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function Zse(t){return~-encodeURI(t).split(/%..|./).length}function zse(t){return Zse(JSON.stringify(t))}function Jse(t,e){let r=e.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),n=t;try{n=decodeURI(t)}catch{}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")}hl.normalize=OU;hl.normalizeToSize=IU;hl.normalizeUrlToBase=Jse});var CU=c(Wn=>{Object.defineProperty(Wn,"__esModule",{value:!0});function PU(t,e){let r=0;for(let n=t.length-1;n>=0;n--){let o=t[n];o==="."?t.splice(n,1):o===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var $se=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function yU(t){let e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,r=$se.exec(e);return r?r.slice(1):[]}function EO(...t){let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){let o=n>=0?t[n]:"/";o&&(e=`${o}/${e}`,r=o.charAt(0)==="/")}return e=PU(e.split("/").filter(n=>!!n),!r).join("/"),(r?"/":"")+e||"."}function bU(t){let e=0;for(;e<t.length&&t[e]==="";e++);let r=t.length-1;for(;r>=0&&t[r]==="";r--);return e>r?[]:t.slice(e,r-e+1)}function Qse(t,e){t=EO(t).slice(1),e=EO(e).slice(1);let r=bU(t.split("/")),n=bU(e.split("/")),o=Math.min(r.length,n.length),i=o;for(let a=0;a<o;a++)if(r[a]!==n[a]){i=a;break}let s=[];for(let a=i;a<r.length;a++)s.push("..");return s=s.concat(n.slice(i)),s.join("/")}function vU(t){let e=NU(t),r=t.slice(-1)==="/",n=PU(t.split("/").filter(o=>!!o),!e).join("/");return!n&&!e&&(n="."),n&&r&&(n+="/"),(e?"/":"")+n}function NU(t){return t.charAt(0)==="/"}function eae(...t){return vU(t.join("/"))}function tae(t){let e=yU(t),r=e[0]||"",n=e[1];return!r&&!n?".":(n&&(n=n.slice(0,n.length-1)),r+n)}function rae(t,e){let r=yU(t)[2]||"";return e&&r.slice(e.length*-1)===e&&(r=r.slice(0,r.length-e.length)),r}Wn.basename=rae;Wn.dirname=tae;Wn.isAbsolute=NU;Wn.join=eae;Wn.normalizePath=vU;Wn.relative=Qse;Wn.resolve=EO});var hO=c(Sl=>{Object.defineProperty(Sl,"__esModule",{value:!0});var nae=Er(),Yn;(function(t){t[t.PENDING=0]="PENDING";let r=1;t[t.RESOLVED=r]="RESOLVED";let n=2;t[t.REJECTED=n]="REJECTED"})(Yn||(Yn={}));function oae(t){return new Tl(e=>{e(t)})}function iae(t){return new Tl((e,r)=>{r(t)})}var Tl=class t{constructor(e){t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),this._state=Yn.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new t((n,o)=>{this._handlers.push([!1,i=>{if(!e)n(i);else try{n(e(i))}catch(s){o(s)}},i=>{if(!r)o(i);else try{n(r(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new t((r,n)=>{let o,i;return this.then(s=>{i=!1,o=s,e&&e()},s=>{i=!0,o=s,e&&e()}).then(()=>{if(i){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(Yn.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Yn.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===Yn.PENDING){if(nae.isThenable(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Yn.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===Yn.RESOLVED&&r[1](this._value),this._state===Yn.REJECTED&&r[2](this._value),r[0]=!0)})}}};Sl.SyncPromise=Tl;Sl.rejectedSyncPromise=iae;Sl.resolvedSyncPromise=oae});var MU=c(TO=>{Object.defineProperty(TO,"__esModule",{value:!0});var sae=YR(),mO=hO();function aae(t){let e=[];function r(){return t===void 0||e.length<t}function n(s){return e.splice(e.indexOf(s),1)[0]||Promise.resolve(void 0)}function o(s){if(!r())return mO.rejectedSyncPromise(new sae.SentryError("Not adding Promise because buffer limit was reached."));let a=s();return e.indexOf(a)===-1&&e.push(a),a.then(()=>n(a)).then(null,()=>n(a).then(null,()=>{})),a}function i(s){return new mO.SyncPromise((a,u)=>{let l=e.length;if(!l)return a(!0);let d=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(p=>{mO.resolvedSyncPromise(p).then(()=>{--l||(clearTimeout(d),a(!0))},u)})})}return{$:e,add:o,drain:i}}TO.makePromiseBuffer=aae});var LU=c(SO=>{Object.defineProperty(SO,"__esModule",{value:!0});function uae(t){let e={},r=0;for(;r<t.length;){let n=t.indexOf("=",r);if(n===-1)break;let o=t.indexOf(";",r);if(o===-1)o=t.length;else if(o<n){r=t.lastIndexOf(";",n-1)+1;continue}let i=t.slice(r,n).trim();if(e[i]===void 0){let s=t.slice(n+1,o).trim();s.charCodeAt(0)===34&&(s=s.slice(1,-1));try{e[i]=s.indexOf("%")!==-1?decodeURIComponent(s):s}catch{e[i]=s}}r=o+1}return e}SO.parseCookie=uae});var AO=c(_a=>{Object.defineProperty(_a,"__esModule",{value:!0});function cae(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function lae(t){return t.split(/[?#]/,1)[0]}function dae(t){return t.split(/\\?\//).filter(e=>e.length>0&&e!==",").length}function pae(t){let{protocol:e,host:r,path:n}=t,o=r&&r.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${e?`${e}://`:""}${o}${n}`}_a.getNumberOfUrlSegments=dae;_a.getSanitizedUrlString=pae;_a.parseUrl=cae;_a.stripUrlQueryAndFragment=lae});var GU=c(d_=>{Object.defineProperty(d_,"__esModule",{value:!0});var DU=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];function _ae(t){return DU.map(o=>{let i=t[o],s=Array.isArray(i)?i.join(";"):i;return o==="Forwarded"?fae(s):s&&s.split(",").map(a=>a.trim())}).reduce((o,i)=>i?o.concat(i):o,[]).find(o=>o!==null&&gae(o))||null}function fae(t){if(!t)return null;for(let e of t.split(";"))if(e.startsWith("for="))return e.slice(4);return null}function gae(t){return/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(t)}d_.getClientIPAddress=_ae;d_.ipHeaderNames=DU});var jU=c(Lo=>{Object.defineProperty(Lo,"__esModule",{value:!0});var Eae=LU(),hae=No(),UU=Er(),mae=Fn(),Tae=ml(),Sae=AO(),xU=GU(),Aae={ip:!1,request:!0,transaction:!0,user:!0},wU=["cookies","data","headers","method","query_string","url"],VU=["id","username","email"];function RO(t,e={}){let r=t.method&&t.method.toUpperCase(),n="",o="url";e.customRoute||t.route?(n=e.customRoute||`${t.baseUrl||""}${t.route&&t.route.path}`,o="route"):(t.originalUrl||t.url)&&(n=Sae.stripUrlQueryAndFragment(t.originalUrl||t.url||""));let i="";return e.method&&r&&(i+=r),e.method&&e.path&&(i+=" "),e.path&&n&&(i+=n),[i,o]}function Rae(t,e){switch(e){case"path":return RO(t,{path:!0})[0];case"handler":return t.route&&t.route.stack&&t.route.stack[0]&&t.route.stack[0].name||"<anonymous>";case"methodPath":default:{let r=t._reconstructedRoute?t._reconstructedRoute:void 0;return RO(t,{path:!0,method:!0,customRoute:r})[0]}}}function Oae(t,e){let r={};return(Array.isArray(e)?e:VU).forEach(o=>{t&&o in t&&(r[o]=t[o])}),r}function BU(t,e={}){let{include:r=wU}=e,n={},o=t.headers||{},i=t.method,s=o.host||t.hostname||t.host||"<no host>",a=t.protocol==="https"||t.socket&&t.socket.encrypted?"https":"http",u=t.originalUrl||t.url||"",l=u.startsWith(a)?u:`${a}://${s}${u}`;return r.forEach(d=>{switch(d){case"headers":{n.headers=o,r.includes("cookies")||delete n.headers.cookie,r.includes("ip")||xU.ipHeaderNames.forEach(p=>{delete n.headers[p]});break}case"method":{n.method=i;break}case"url":{n.url=l;break}case"cookies":{n.cookies=t.cookies||o.cookie&&Eae.parseCookie(o.cookie)||{};break}case"query_string":{n.query_string=bae(t);break}case"data":{if(i==="GET"||i==="HEAD")break;t.body!==void 0&&(n.data=UU.isString(t.body)?t.body:JSON.stringify(Tae.normalize(t.body)));break}default:({}).hasOwnProperty.call(t,d)&&(n[d]=t[d])}}),n}function Iae(t,e,r){let n={...Aae,...r&&r.include};if(n.request){let o=Array.isArray(n.request)?[...n.request]:[...wU];n.ip&&o.push("ip");let i=BU(e,{include:o});t.request={...t.request,...i}}if(n.user){let o=e.user&&UU.isPlainObject(e.user)?Oae(e.user,n.user):{};Object.keys(o).length&&(t.user={...t.user,...o})}if(n.ip){let o=e.headers&&xU.getClientIPAddress(e.headers)||e.ip||e.socket&&e.socket.remoteAddress;o&&(t.user={...t.user,ip_address:o})}return n.transaction&&!t.transaction&&t.type==="transaction"&&(t.transaction=Rae(e,n.transaction)),t}function bae(t){let e=t.originalUrl||t.url||"";if(e){e.startsWith("/")&&(e=`http://dogs.are.great${e}`);try{let r=t.query||new URL(e).search.slice(1);return r.length?r:void 0}catch{return}}}function qU(t){let e={};try{t.forEach((r,n)=>{typeof r=="string"&&(e[n]=r)})}catch{hae.DEBUG_BUILD&&mae.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return e}function Pae(t){let e=qU(t.headers);return{method:t.method,url:t.url,headers:e}}Lo.DEFAULT_USER_INCLUDES=VU;Lo.addRequestDataToEvent=Iae;Lo.extractPathForTransaction=RO;Lo.extractRequestData=BU;Lo.winterCGHeadersToDict=qU;Lo.winterCGRequestToRequestData=Pae});var FU=c(p_=>{Object.defineProperty(p_,"__esModule",{value:!0});var HU=["fatal","error","warning","log","info","debug"];function yae(t){return t==="warn"?"warning":HU.includes(t)?t:"log"}p_.severityLevelFromString=yae;p_.validSeverityLevels=HU});var OO=c(Al=>{Object.defineProperty(Al,"__esModule",{value:!0});var vae=ca();function WU(t,e=!1){return!(e||t&&!t.startsWith("/")&&!t.match(/^[A-Z]:/)&&!t.startsWith(".")&&!t.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&t!==void 0&&!t.includes("node_modules/")}function YU(t){let e=/^\s*[-]{4,}$/,r=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return n=>{let o=n.match(r);if(o){let i,s,a,u,l;if(o[1]){a=o[1];let _=a.lastIndexOf(".");if(a[_-1]==="."&&_--,_>0){i=a.slice(0,_),s=a.slice(_+1);let f=i.indexOf(".Module");f>0&&(a=a.slice(f+1),i=i.slice(0,f))}u=void 0}s&&(u=i,l=s),s==="<anonymous>"&&(l=void 0,a=void 0),a===void 0&&(l=l||vae.UNKNOWN_FUNCTION,a=u?`${u}.${l}`:l);let d=o[2]&&o[2].startsWith("file://")?o[2].slice(7):o[2],p=o[5]==="native";return d&&d.match(/\/[A-Z]:/)&&(d=d.slice(1)),!d&&o[5]&&!p&&(d=o[5]),{filename:d,module:t?t(d):void 0,function:a,lineno:kU(o[3]),colno:kU(o[4]),in_app:WU(d||"",p)}}if(n.match(e))return{filename:n}}}function Nae(t){return[90,YU(t)]}function kU(t){return parseInt(t||"",10)||void 0}Al.filenameIsInApp=WU;Al.node=YU;Al.nodeStackLineParser=Nae});var bO=c(Kn=>{Object.defineProperty(Kn,"__esModule",{value:!0});var Cae=No(),Mae=Er(),Lae=Fn(),Dae="baggage",IO="sentry-",XU=/^sentry-/,ZU=8192;function Gae(t){let e=zU(t);if(!e)return;let r=Object.entries(e).reduce((n,[o,i])=>{if(o.match(XU)){let s=o.slice(IO.length);n[s]=i}return n},{});if(Object.keys(r).length>0)return r}function Uae(t){if(!t)return;let e=Object.entries(t).reduce((r,[n,o])=>(o&&(r[`${IO}${n}`]=o),r),{});return xae(e)}function zU(t){if(!(!t||!Mae.isString(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{let n=KU(r);return Object.entries(n).forEach(([o,i])=>{e[o]=i}),e},{}):KU(t)}function KU(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}function xae(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[r,n],o)=>{let i=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,s=o===0?i:`${e},${i}`;return s.length>ZU?(Cae.DEBUG_BUILD&&Lae.logger.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}Kn.BAGGAGE_HEADER_NAME=Dae;Kn.MAX_BAGGAGE_STRING_LENGTH=ZU;Kn.SENTRY_BAGGAGE_KEY_PREFIX=IO;Kn.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=XU;Kn.baggageHeaderToDynamicSamplingContext=Gae;Kn.dynamicSamplingContextToSentryBaggageHeader=Uae;Kn.parseBaggageHeader=zU});var QU=c(fa=>{Object.defineProperty(fa,"__esModule",{value:!0});var wae=bO(),is=El(),JU=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function $U(t){if(!t)return;let e=t.match(JU);if(!e)return;let r;return e[3]==="1"?r=!0:e[3]==="0"&&(r=!1),{traceId:e[1],parentSampled:r,parentSpanId:e[2]}}function Vae(t,e){let r=$U(t),n=wae.baggageHeaderToDynamicSamplingContext(e),{traceId:o,parentSpanId:i,parentSampled:s}=r||{};return r?{traceId:o||is.uuid4(),parentSpanId:i||is.uuid4().substring(16),spanId:is.uuid4().substring(16),sampled:s,dsc:n||{}}:{traceId:o||is.uuid4(),spanId:is.uuid4().substring(16)}}function Bae(t=is.uuid4(),e=is.uuid4().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${t}-${e}${n}`}fa.TRACEPARENT_REGEXP=JU;fa.extractTraceparentData=$U;fa.generateSentryTraceHeader=Bae;fa.propagationContextFromHeaders=Vae});var PO=c(ur=>{Object.defineProperty(ur,"__esModule",{value:!0});var qae=FR(),jae=ml(),ex=kn(),ga=qt();function Hae(t,e=[]){return[t,e]}function Fae(t,e){let[r,n]=t;return[r,[...n,e]]}function tx(t,e){let r=t[1];for(let n of r){let o=n[0].type;if(e(n,o))return!0}return!1}function kae(t,e){return tx(t,(r,n)=>e.includes(n))}function __(t){return ga.GLOBAL_OBJ.__SENTRY__&&ga.GLOBAL_OBJ.__SENTRY__.encodePolyfill?ga.GLOBAL_OBJ.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function Wae(t){return ga.GLOBAL_OBJ.__SENTRY__&&ga.GLOBAL_OBJ.__SENTRY__.decodePolyfill?ga.GLOBAL_OBJ.__SENTRY__.decodePolyfill(t):new TextDecoder().decode(t)}function Yae(t){let[e,r]=t,n=JSON.stringify(e);function o(i){typeof n=="string"?n=typeof i=="string"?n+i:[__(n),i]:n.push(typeof i=="string"?__(i):i)}for(let i of r){let[s,a]=i;if(o(`
6
+ ${JSON.stringify(s)}
7
+ `),typeof a=="string"||a instanceof Uint8Array)o(a);else{let u;try{u=JSON.stringify(a)}catch{u=JSON.stringify(jae.normalize(a))}o(u)}}return typeof n=="string"?n:Kae(n)}function Kae(t){let e=t.reduce((o,i)=>o+i.length,0),r=new Uint8Array(e),n=0;for(let o of t)r.set(o,n),n+=o.length;return r}function Xae(t){let e=typeof t=="string"?__(t):t;function r(s){let a=e.subarray(0,s);return e=e.subarray(s+1),a}function n(){let s=e.indexOf(10);return s<0&&(s=e.length),JSON.parse(Wae(r(s)))}let o=n(),i=[];for(;e.length;){let s=n(),a=typeof s.length=="number"?s.length:void 0;i.push([s,a?r(a):n()])}return[o,i]}function Zae(t){return[{type:"span"},t]}function zae(t){let e=typeof t.data=="string"?__(t.data):t.data;return[ex.dropUndefinedKeys({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}var Jae={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function $ae(t){return Jae[t]}function Qae(t){if(!t||!t.sdk)return;let{name:e,version:r}=t.sdk;return{name:e,version:r}}function eue(t,e,r,n){let o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:qae.dsnToString(n)},...o&&{trace:ex.dropUndefinedKeys({...o})}}}ur.addItemToEnvelope=Fae;ur.createAttachmentEnvelopeItem=zae;ur.createEnvelope=Hae;ur.createEventEnvelopeHeaders=eue;ur.createSpanEnvelopeItem=Zae;ur.envelopeContainsItemType=kae;ur.envelopeItemTypeToDataCategory=$ae;ur.forEachEnvelopeItem=tx;ur.getSdkMetadataForEnvelopeHeader=Qae;ur.parseEnvelope=Xae;ur.serializeEnvelope=Yae});var rx=c(yO=>{Object.defineProperty(yO,"__esModule",{value:!0});var tue=PO(),rue=o_();function nue(t,e,r){let n=[{type:"client_report"},{timestamp:r||rue.dateTimestampInSeconds(),discarded_events:t}];return tue.createEnvelope(e?{dsn:e}:{},[n])}yO.createClientReportEnvelope=nue});var sx=c(ss=>{Object.defineProperty(ss,"__esModule",{value:!0});var nx=60*1e3;function ox(t,e=Date.now()){let r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;let n=Date.parse(`${t}`);return isNaN(n)?nx:n-e}function ix(t,e){return t[e]||t.all||0}function oue(t,e,r=Date.now()){return ix(t,e)>r}function iue(t,{statusCode:e,headers:r},n=Date.now()){let o={...t},i=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(i)for(let a of i.trim().split(",")){let[u,l,,,d]=a.split(":",5),p=parseInt(u,10),_=(isNaN(p)?60:p)*1e3;if(!l)o.all=n+_;else for(let f of l.split(";"))f==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(o[f]=n+_):o[f]=n+_}else s?o.all=n+ox(s,n):e===429&&(o.all=n+60*1e3);return o}ss.DEFAULT_RETRY_AFTER=nx;ss.disabledUntil=ix;ss.isRateLimited=oue;ss.parseRetryAfterHeader=ox;ss.updateRateLimits=iue});var ax=c(vO=>{Object.defineProperty(vO,"__esModule",{value:!0});function sue(t){let e=[],r={};return{add(n,o){for(;e.length>=t;){let i=e.shift();i!==void 0&&delete r[i]}r[n]&&this.delete(n),e.push(n),r[n]=o},clear(){r={},e=[]},get(n){return r[n]},size(){return e.length},delete(n){if(!r[n])return!1;delete r[n];for(let o=0;o<e.length;o++)if(e[o]===n){e.splice(o,1);break}return!0}}}vO.makeFifoCache=sue});var lx=c(Ea=>{Object.defineProperty(Ea,"__esModule",{value:!0});var f_=Er(),ux=El(),aue=ml(),uue=kn();function NO(t,e){return t(e.stack||"",1)}function cx(t,e){let r={type:e.name||e.constructor.name,value:e.message},n=NO(t,e);return n.length&&(r.stacktrace={frames:n}),r}function cue(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let r=t[e];if(r instanceof Error)return r}}function lue(t){if("name"in t&&typeof t.name=="string"){let n=`'${t.name}' captured as exception`;return"message"in t&&typeof t.message=="string"&&(n+=` with message '${t.message}'`),n}else if("message"in t&&typeof t.message=="string")return t.message;let e=uue.extractExceptionKeysForMessage(t);if(f_.isErrorEvent(t))return`Event \`ErrorEvent\` captured as exception with message \`${t.message}\``;let r=due(t);return`${r&&r!=="Object"?`'${r}'`:"Object"} captured as exception with keys: ${e}`}function due(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function pue(t,e,r,n){if(f_.isError(r))return[r,void 0];if(e.synthetic=!0,f_.isPlainObject(r)){let i=t&&t.getOptions().normalizeDepth,s={__serialized__:aue.normalizeToSize(r,i)},a=cue(r);if(a)return[a,s];let u=lue(r),l=n&&n.syntheticException||new Error(u);return l.message=u,[l,s]}let o=n&&n.syntheticException||new Error(r);return o.message=`${r}`,[o,void 0]}function _ue(t,e,r,n){let i=n&&n.data&&n.data.mechanism||{handled:!0,type:"generic"},[s,a]=pue(t,i,r,n),u={exception:{values:[cx(e,s)]}};return a&&(u.extra=a),ux.addExceptionTypeValue(u,void 0,void 0),ux.addExceptionMechanism(u,i),{...u,event_id:n&&n.event_id}}function fue(t,e,r="info",n,o){let i={event_id:n&&n.event_id,level:r};if(o&&n&&n.syntheticException){let s=NO(t,n.syntheticException);s.length&&(i.exception={values:[{value:e,stacktrace:{frames:s}}]})}if(f_.isParameterizedString(e)){let{__sentry_template_string__:s,__sentry_template_values__:a}=e;return i.logentry={message:s,params:a},i}return i.message=e,i}Ea.eventFromMessage=fue;Ea.eventFromUnknownInput=_ue;Ea.exceptionFromError=cx;Ea.parseStackFrames=NO});var dx=c(g_=>{Object.defineProperty(g_,"__esModule",{value:!0});var gue=OO(),Eue=kn(),hue=ca();function mue(t,e,r,n){let o=t(),i=!1,s=!0;return setInterval(()=>{let a=o.getTimeMs();i===!1&&a>e+r&&(i=!0,s&&n()),a<e+r&&(i=!1)},20),{poll:()=>{o.reset()},enabled:a=>{s=a}}}function Tue(t,e,r){let n=e?e.replace(/^file:\/\//,""):void 0,o=t.location.columnNumber?t.location.columnNumber+1:void 0,i=t.location.lineNumber?t.location.lineNumber+1:void 0;return Eue.dropUndefinedKeys({filename:n,module:r(n),function:t.functionName||hue.UNKNOWN_FUNCTION,colno:o,lineno:i,in_app:n?gue.filenameIsInApp(n):void 0})}g_.callFrameToStackFrame=Tue;g_.watchdogTimer=mue});var px=c(MO=>{Object.defineProperty(MO,"__esModule",{value:!0});var CO=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let r=this._cache.get(e);if(r!==void 0)return this._cache.delete(e),this._cache.set(e,r),r}set(e,r){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(e,r)}remove(e){let r=this._cache.get(e);return r&&this._cache.delete(e),r}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(r=>e.push(r)),e}};MO.LRUMap=CO});var DO=c(LO=>{Object.defineProperty(LO,"__esModule",{value:!0});function Sue(t,e){return t??e()}LO._nullishCoalesce=Sue});var _x=c(GO=>{Object.defineProperty(GO,"__esModule",{value:!0});var Aue=DO();async function Rue(t,e){return Aue._nullishCoalesce(t,e)}GO._asyncNullishCoalesce=Rue});var xO=c(UO=>{Object.defineProperty(UO,"__esModule",{value:!0});async function Oue(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=await i(r)):(o==="call"||o==="optionalCall")&&(r=await i((...s)=>r.call(e,...s)),e=void 0)}return r}UO._asyncOptionalChain=Oue});var fx=c(wO=>{Object.defineProperty(wO,"__esModule",{value:!0});var Iue=xO();async function bue(t){let e=await Iue._asyncOptionalChain(t);return e??!0}wO._asyncOptionalChainDelete=bue});var BO=c(VO=>{Object.defineProperty(VO,"__esModule",{value:!0});function Pue(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}VO._optionalChain=Pue});var gx=c(qO=>{Object.defineProperty(qO,"__esModule",{value:!0});var yue=BO();function vue(t){let e=yue._optionalChain(t);return e??!0}qO._optionalChainDelete=vue});var hx=c(jO=>{Object.defineProperty(jO,"__esModule",{value:!0});var Ex=El();function Nue(){return{traceId:Ex.uuid4(),spanId:Ex.uuid4().substring(16)}}jO.generatePropagationContext=Nue});var mx=c(HO=>{Object.defineProperty(HO,"__esModule",{value:!0});var Cue=qt();function Mue(t){let e=Cue.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],r=e&&e.get&&e.get()?e.get():{};r&&r.waitUntil&&r.waitUntil(t)}HO.vercelWaitUntil=Mue});var Tx=c(FO=>{Object.defineProperty(FO,"__esModule",{value:!0});function Lue(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}FO.escapeStringForRegex=Lue});var Sx=c(kO=>{Object.defineProperty(kO,"__esModule",{value:!0});var Due=qt(),E_=Due.GLOBAL_OBJ;function Gue(){let t=E_.chrome,e=t&&t.app&&t.app.runtime,r="history"in E_&&!!E_.history.pushState&&!!E_.history.replaceState;return!e&&r}kO.supportsHistory=Gue});var b=c(h=>{Object.defineProperty(h,"__esModule",{value:!0});var Uue=V1(),xue=B1(),wue=q1(),h_=BR(),WO=FR(),Vue=YR(),Ax=qt(),Bue=aU(),Rx=EU(),que=hU(),jue=mU(),m_=pa(),jt=Er(),Hue=SU(),T_=Fn(),Fue=pO(),Do=El(),YO=cO(),KO=ml(),Xn=kn(),as=CU(),kue=MU(),ha=jU(),Ox=FU(),ma=ca(),XO=OO(),Rl=dl(),Go=eO(),ZO=hO(),S_=o_(),A_=QU(),Ix=uO(),Hr=PO(),Wue=rx(),Ol=sx(),us=bO(),R_=AO(),Yue=ax(),O_=lx(),bx=dx(),Kue=px(),Xue=_x(),Zue=xO(),zue=fx(),Jue=DO(),$ue=BO(),Que=gx(),ece=hx(),tce=mx(),rce=VR(),nce=Tx(),oce=Sx();h.applyAggregateErrorsToEvent=Uue.applyAggregateErrorsToEvent;h.flatten=xue.flatten;h.getBreadcrumbLogLevelFromHttpStatusCode=wue.getBreadcrumbLogLevelFromHttpStatusCode;h.getComponentName=h_.getComponentName;h.getDomElement=h_.getDomElement;h.getLocationHref=h_.getLocationHref;h.htmlTreeAsString=h_.htmlTreeAsString;h.dsnFromString=WO.dsnFromString;h.dsnToString=WO.dsnToString;h.makeDsn=WO.makeDsn;h.SentryError=Vue.SentryError;h.GLOBAL_OBJ=Ax.GLOBAL_OBJ;h.getGlobalSingleton=Ax.getGlobalSingleton;h.addConsoleInstrumentationHandler=Bue.addConsoleInstrumentationHandler;h.addFetchEndInstrumentationHandler=Rx.addFetchEndInstrumentationHandler;h.addFetchInstrumentationHandler=Rx.addFetchInstrumentationHandler;h.addGlobalErrorInstrumentationHandler=que.addGlobalErrorInstrumentationHandler;h.addGlobalUnhandledRejectionInstrumentationHandler=jue.addGlobalUnhandledRejectionInstrumentationHandler;h.addHandler=m_.addHandler;h.maybeInstrument=m_.maybeInstrument;h.resetInstrumentationHandlers=m_.resetInstrumentationHandlers;h.triggerHandlers=m_.triggerHandlers;h.isDOMError=jt.isDOMError;h.isDOMException=jt.isDOMException;h.isElement=jt.isElement;h.isError=jt.isError;h.isErrorEvent=jt.isErrorEvent;h.isEvent=jt.isEvent;h.isInstanceOf=jt.isInstanceOf;h.isParameterizedString=jt.isParameterizedString;h.isPlainObject=jt.isPlainObject;h.isPrimitive=jt.isPrimitive;h.isRegExp=jt.isRegExp;h.isString=jt.isString;h.isSyntheticEvent=jt.isSyntheticEvent;h.isThenable=jt.isThenable;h.isVueViewModel=jt.isVueViewModel;h.isBrowser=Hue.isBrowser;h.CONSOLE_LEVELS=T_.CONSOLE_LEVELS;h.consoleSandbox=T_.consoleSandbox;h.logger=T_.logger;h.originalConsoleMethods=T_.originalConsoleMethods;h.memoBuilder=Fue.memoBuilder;h.addContextToFrame=Do.addContextToFrame;h.addExceptionMechanism=Do.addExceptionMechanism;h.addExceptionTypeValue=Do.addExceptionTypeValue;h.arrayify=Do.arrayify;h.checkOrSetAlreadyCaught=Do.checkOrSetAlreadyCaught;h.getEventDescription=Do.getEventDescription;h.parseSemver=Do.parseSemver;h.uuid4=Do.uuid4;h.dynamicRequire=YO.dynamicRequire;h.isNodeEnv=YO.isNodeEnv;h.loadModule=YO.loadModule;h.normalize=KO.normalize;h.normalizeToSize=KO.normalizeToSize;h.normalizeUrlToBase=KO.normalizeUrlToBase;h.addNonEnumerableProperty=Xn.addNonEnumerableProperty;h.convertToPlainObject=Xn.convertToPlainObject;h.dropUndefinedKeys=Xn.dropUndefinedKeys;h.extractExceptionKeysForMessage=Xn.extractExceptionKeysForMessage;h.fill=Xn.fill;h.getOriginalFunction=Xn.getOriginalFunction;h.markFunctionWrapped=Xn.markFunctionWrapped;h.objectify=Xn.objectify;h.urlEncode=Xn.urlEncode;h.basename=as.basename;h.dirname=as.dirname;h.isAbsolute=as.isAbsolute;h.join=as.join;h.normalizePath=as.normalizePath;h.relative=as.relative;h.resolve=as.resolve;h.makePromiseBuffer=kue.makePromiseBuffer;h.DEFAULT_USER_INCLUDES=ha.DEFAULT_USER_INCLUDES;h.addRequestDataToEvent=ha.addRequestDataToEvent;h.extractPathForTransaction=ha.extractPathForTransaction;h.extractRequestData=ha.extractRequestData;h.winterCGHeadersToDict=ha.winterCGHeadersToDict;h.winterCGRequestToRequestData=ha.winterCGRequestToRequestData;h.severityLevelFromString=Ox.severityLevelFromString;h.validSeverityLevels=Ox.validSeverityLevels;h.UNKNOWN_FUNCTION=ma.UNKNOWN_FUNCTION;h.createStackParser=ma.createStackParser;h.getFramesFromEvent=ma.getFramesFromEvent;h.getFunctionName=ma.getFunctionName;h.stackParserFromStackParserOptions=ma.stackParserFromStackParserOptions;h.stripSentryFramesAndReverse=ma.stripSentryFramesAndReverse;h.filenameIsInApp=XO.filenameIsInApp;h.node=XO.node;h.nodeStackLineParser=XO.nodeStackLineParser;h.isMatchingPattern=Rl.isMatchingPattern;h.safeJoin=Rl.safeJoin;h.snipLine=Rl.snipLine;h.stringMatchesSomePattern=Rl.stringMatchesSomePattern;h.truncate=Rl.truncate;h.isNativeFunction=Go.isNativeFunction;h.supportsDOMError=Go.supportsDOMError;h.supportsDOMException=Go.supportsDOMException;h.supportsErrorEvent=Go.supportsErrorEvent;h.supportsFetch=Go.supportsFetch;h.supportsNativeFetch=Go.supportsNativeFetch;h.supportsReferrerPolicy=Go.supportsReferrerPolicy;h.supportsReportingObserver=Go.supportsReportingObserver;h.SyncPromise=ZO.SyncPromise;h.rejectedSyncPromise=ZO.rejectedSyncPromise;h.resolvedSyncPromise=ZO.resolvedSyncPromise;Object.defineProperty(h,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>S_._browserPerformanceTimeOriginMode});h.browserPerformanceTimeOrigin=S_.browserPerformanceTimeOrigin;h.dateTimestampInSeconds=S_.dateTimestampInSeconds;h.timestampInSeconds=S_.timestampInSeconds;h.TRACEPARENT_REGEXP=A_.TRACEPARENT_REGEXP;h.extractTraceparentData=A_.extractTraceparentData;h.generateSentryTraceHeader=A_.generateSentryTraceHeader;h.propagationContextFromHeaders=A_.propagationContextFromHeaders;h.getSDKSource=Ix.getSDKSource;h.isBrowserBundle=Ix.isBrowserBundle;h.addItemToEnvelope=Hr.addItemToEnvelope;h.createAttachmentEnvelopeItem=Hr.createAttachmentEnvelopeItem;h.createEnvelope=Hr.createEnvelope;h.createEventEnvelopeHeaders=Hr.createEventEnvelopeHeaders;h.createSpanEnvelopeItem=Hr.createSpanEnvelopeItem;h.envelopeContainsItemType=Hr.envelopeContainsItemType;h.envelopeItemTypeToDataCategory=Hr.envelopeItemTypeToDataCategory;h.forEachEnvelopeItem=Hr.forEachEnvelopeItem;h.getSdkMetadataForEnvelopeHeader=Hr.getSdkMetadataForEnvelopeHeader;h.parseEnvelope=Hr.parseEnvelope;h.serializeEnvelope=Hr.serializeEnvelope;h.createClientReportEnvelope=Wue.createClientReportEnvelope;h.DEFAULT_RETRY_AFTER=Ol.DEFAULT_RETRY_AFTER;h.disabledUntil=Ol.disabledUntil;h.isRateLimited=Ol.isRateLimited;h.parseRetryAfterHeader=Ol.parseRetryAfterHeader;h.updateRateLimits=Ol.updateRateLimits;h.BAGGAGE_HEADER_NAME=us.BAGGAGE_HEADER_NAME;h.MAX_BAGGAGE_STRING_LENGTH=us.MAX_BAGGAGE_STRING_LENGTH;h.SENTRY_BAGGAGE_KEY_PREFIX=us.SENTRY_BAGGAGE_KEY_PREFIX;h.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=us.SENTRY_BAGGAGE_KEY_PREFIX_REGEX;h.baggageHeaderToDynamicSamplingContext=us.baggageHeaderToDynamicSamplingContext;h.dynamicSamplingContextToSentryBaggageHeader=us.dynamicSamplingContextToSentryBaggageHeader;h.parseBaggageHeader=us.parseBaggageHeader;h.getNumberOfUrlSegments=R_.getNumberOfUrlSegments;h.getSanitizedUrlString=R_.getSanitizedUrlString;h.parseUrl=R_.parseUrl;h.stripUrlQueryAndFragment=R_.stripUrlQueryAndFragment;h.makeFifoCache=Yue.makeFifoCache;h.eventFromMessage=O_.eventFromMessage;h.eventFromUnknownInput=O_.eventFromUnknownInput;h.exceptionFromError=O_.exceptionFromError;h.parseStackFrames=O_.parseStackFrames;h.callFrameToStackFrame=bx.callFrameToStackFrame;h.watchdogTimer=bx.watchdogTimer;h.LRUMap=Kue.LRUMap;h._asyncNullishCoalesce=Xue._asyncNullishCoalesce;h._asyncOptionalChain=Zue._asyncOptionalChain;h._asyncOptionalChainDelete=zue._asyncOptionalChainDelete;h._nullishCoalesce=Jue._nullishCoalesce;h._optionalChain=$ue._optionalChain;h._optionalChainDelete=Que._optionalChainDelete;h.generatePropagationContext=ece.generatePropagationContext;h.vercelWaitUntil=tce.vercelWaitUntil;h.SDK_VERSION=rce.SDK_VERSION;h.escapeStringForRegex=nce.escapeStringForRegex;h.supportsHistory=oce.supportsHistory});var Px,yx=F(()=>{Px=typeof globalThis=="object"?globalThis:global});var vx=F(()=>{yx()});var Nx=F(()=>{vx()});var Zn,zO=F(()=>{Zn="1.9.0"});function ice(t){var e=new Set([t]),r=new Set,n=t.match(Cx);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(u){return u===t};function i(a){return r.add(a),!1}function s(a){return e.add(a),!0}return function(u){if(e.has(u))return!0;if(r.has(u))return!1;var l=u.match(Cx);if(!l)return i(u);var d={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return d.prerelease!=null||o.major!==d.major?i(u):o.major===0?o.minor===d.minor&&o.patch<=d.patch?s(u):i(u):o.minor<=d.minor?s(u):i(u)}}var Cx,Mx,Lx=F(()=>{zO();Cx=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;Mx=ice(Zn)});function an(t,e,r,n){var o;n===void 0&&(n=!1);var i=bl[Il]=(o=bl[Il])!==null&&o!==void 0?o:{version:Zn};if(!n&&i[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(s.stack||s.message),!1}if(i.version!==Zn){var s=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+t+" does not match previously registered API v"+Zn);return r.error(s.stack||s.message),!1}return i[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+Zn+"."),!0}function cr(t){var e,r,n=(e=bl[Il])===null||e===void 0?void 0:e.version;if(!(!n||!Mx(n)))return(r=bl[Il])===null||r===void 0?void 0:r[t]}function un(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+Zn+".");var r=bl[Il];r&&delete r[t]}var sce,Il,bl,cs=F(()=>{Nx();zO();Lx();sce=Zn.split(".")[0],Il=Symbol.for("opentelemetry.js.api."+sce),bl=Px});function Pl(t,e,r){var n=cr("diag");if(n)return r.unshift(e),n[t].apply(n,uce([],ace(r),!1))}var ace,uce,Dx,Gx=F(()=>{cs();ace=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},uce=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},Dx=function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Pl("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Pl("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Pl("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Pl("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Pl("verbose",this._namespace,e)},t}()});var dt,I_=F(()=>{(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(dt||(dt={}))});function Ux(t,e){t<dt.NONE?t=dt.NONE:t>dt.ALL&&(t=dt.ALL),e=e||{};function r(n,o){var i=e[n];return typeof i=="function"&&t>=o?i.bind(e):function(){}}return{error:r("error",dt.ERROR),warn:r("warn",dt.WARN),info:r("info",dt.INFO),debug:r("debug",dt.DEBUG),verbose:r("verbose",dt.VERBOSE)}}var xx=F(()=>{I_()});var cce,lce,dce,ht,ls=F(()=>{Gx();xx();I_();cs();cce=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},lce=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},dce="diag",ht=function(){function t(){function e(o){return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=cr("diag");if(a)return a[o].apply(a,lce([],cce(i),!1))}}var r=this,n=function(o,i){var s,a,u;if(i===void 0&&(i={logLevel:dt.INFO}),o===r){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((s=l.stack)!==null&&s!==void 0?s:l.message),!1}typeof i=="number"&&(i={logLevel:i});var d=cr("diag"),p=Ux((a=i.logLevel)!==null&&a!==void 0?a:dt.INFO,o);if(d&&!i.suppressOverrideMessage){var _=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";d.warn("Current logger will be overwritten from "+_),p.warn("Current logger will overwrite one already registered from "+_)}return an("diag",p,r,!0)};r.setLogger=n,r.disable=function(){un(dce,r)},r.createComponentLogger=function(o){return new Dx(o)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}()});var pce,_ce,wx,Vx=F(()=>{pce=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},_ce=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},wx=function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=pce(e,2),n=r[0],o=r[1];return[n,o]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=new t(this._entries);try{for(var s=_ce(n),a=s.next();!a.done;a=s.next()){var u=a.value;i._entries.delete(u)}}catch(l){e={error:l}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}()});var Bx,qx=F(()=>{Bx=Symbol("BaggageEntryMetadata")});function jx(t){return t===void 0&&(t={}),new wx(new Map(Object.entries(t)))}function Hx(t){return typeof t!="string"&&(fce.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:Bx,toString:function(){return t}}}var fce,JO=F(()=>{ls();Vx();qx();fce=ht.instance()});function Ta(t){return Symbol.for(t)}var gce,b_,yl=F(()=>{gce=function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,o){var i=new t(r._currentContext);return i._currentContext.set(n,o),i},r.deleteValue=function(n){var o=new t(r._currentContext);return o._currentContext.delete(n),o}}return t}(),b_=new gce});var $O,Fx,kx=F(()=>{$O=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Fx=function(){function t(){function e(n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(console){var s=console[n];if(typeof s!="function"&&(s=console.log),typeof s=="function")return s.apply(console,o)}}}for(var r=0;r<$O.length;r++)this[$O[r].n]=e($O[r].c)}return t}()});function Wx(){return eI}var ds,Ece,P_,hce,mce,Tce,Sce,QO,Ace,Rce,Oce,eI,Ice,bce,Pce,yce,vce,Nce,Cce,tI=F(()=>{ds=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ece=function(){function t(){}return t.prototype.createGauge=function(e,r){return bce},t.prototype.createHistogram=function(e,r){return Pce},t.prototype.createCounter=function(e,r){return Ice},t.prototype.createUpDownCounter=function(e,r){return yce},t.prototype.createObservableGauge=function(e,r){return Nce},t.prototype.createObservableCounter=function(e,r){return vce},t.prototype.createObservableUpDownCounter=function(e,r){return Cce},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t}(),P_=function(){function t(){}return t}(),hce=function(t){ds(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e}(P_),mce=function(t){ds(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e}(P_),Tce=function(t){ds(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e}(P_),Sce=function(t){ds(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e}(P_),QO=function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t}(),Ace=function(t){ds(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(QO),Rce=function(t){ds(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(QO),Oce=function(t){ds(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(QO),eI=new Ece,Ice=new hce,bce=new Tce,Pce=new Sce,yce=new mce,vce=new Ace,Nce=new Rce,Cce=new Oce});var y_,Yx=F(()=>{(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(y_||(y_={}))});var v_,N_,rI=F(()=>{v_={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},N_={set:function(t,e,r){t!=null&&(t[e]=r)}}});var Mce,Lce,Kx,Xx=F(()=>{yl();Mce=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},Lce=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},Kx=function(){function t(){}return t.prototype.active=function(){return b_},t.prototype.with=function(e,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return r.call.apply(r,Lce([n],Mce(o),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}()});var Dce,Gce,nI,Uce,Uo,vl=F(()=>{Xx();cs();ls();Dce=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},Gce=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},nI="context",Uce=new Kx,Uo=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return an(nI,e,ht.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,n){for(var o,i=[],s=3;s<arguments.length;s++)i[s-3]=arguments[s];return(o=this._getContextManager()).with.apply(o,Gce([e,r,n],Dce(i),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return cr(nI)||Uce},t.prototype.disable=function(){this._getContextManager().disable(),un(nI,ht.instance())},t}()});var Sa,oI=F(()=>{(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Sa||(Sa={}))});var Nl,Cl,C_,M_=F(()=>{oI();Nl="0000000000000000",Cl="00000000000000000000000000000000",C_={traceId:Cl,spanId:Nl,traceFlags:Sa.NONE}});var xo,L_=F(()=>{M_();xo=function(){function t(e){e===void 0&&(e=C_),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t}()});function D_(t){return t.getValue(iI)||void 0}function Zx(){return D_(Uo.getInstance().active())}function Ml(t,e){return t.setValue(iI,e)}function zx(t){return t.deleteValue(iI)}function Jx(t,e){return Ml(t,new xo(e))}function G_(t){var e;return(e=D_(t))===null||e===void 0?void 0:e.spanContext()}var iI,sI=F(()=>{yl();L_();vl();iI=Ta("OpenTelemetry Context Key SPAN")});function aI(t){return xce.test(t)&&t!==Cl}function uI(t){return wce.test(t)&&t!==Nl}function Aa(t){return aI(t.traceId)&&uI(t.spanId)}function $x(t){return new xo(t)}var xce,wce,U_=F(()=>{M_();L_();xce=/^([0-9a-f]{32})$/i,wce=/^[0-9a-f]{16}$/i});function Vce(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var cI,x_,lI=F(()=>{vl();sI();L_();U_();cI=Uo.getInstance(),x_=function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=cI.active());var o=!!r?.root;if(o)return new xo;var i=n&&G_(n);return Vce(i)&&Aa(i)?new xo(i):new xo},t.prototype.startActiveSpan=function(e,r,n,o){var i,s,a;if(!(arguments.length<2)){arguments.length===2?a=r:arguments.length===3?(i=r,a=n):(i=r,s=n,a=o);var u=s??cI.active(),l=this.startSpan(e,i,u),d=Ml(u,l);return cI.with(d,a,void 0,l)}},t}()});var Bce,w_,dI=F(()=>{lI();Bce=new x_,w_=function(){function t(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}return t.prototype.startSpan=function(e,r,n){return this._getTracer().startSpan(e,r,n)},t.prototype.startActiveSpan=function(e,r,n,o){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Bce},t}()});var Qx,ew=F(()=>{lI();Qx=function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new x_},t}()});var qce,Ll,pI=F(()=>{dI();ew();qce=new Qx,Ll=function(){function t(){}return t.prototype.getTracer=function(e,r,n){var o;return(o=this.getDelegateTracer(e,r,n))!==null&&o!==void 0?o:new w_(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:qce},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(e,r,n)},t}()});var V_,tw=F(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(V_||(V_={}))});var B_,rw=F(()=>{(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(B_||(B_={}))});var q_,nw=F(()=>{(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(q_||(q_={}))});function ow(t){return Fce.test(t)}function iw(t){return kce.test(t)&&!Wce.test(t)}var _I,jce,Hce,Fce,kce,Wce,sw=F(()=>{_I="[_0-9a-z-*/]",jce="[a-z]"+_I+"{0,255}",Hce="[a-z0-9]"+_I+"{0,240}@[a-z]"+_I+"{0,13}",Fce=new RegExp("^(?:"+jce+"|"+Hce+")$"),kce=/^[ -~]{0,255}[!-~]$/,Wce=/,|=/});var aw,Yce,uw,cw,lw,dw=F(()=>{sw();aw=32,Yce=512,uw=",",cw="=",lw=function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,r){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n},t.prototype.unset=function(e){var r=this._clone();return r._internalState.delete(e),r},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(r,n){return r.push(n+cw+e.get(n)),r},[]).join(uw)},t.prototype._parse=function(e){e.length>Yce||(this._internalState=e.split(uw).reverse().reduce(function(r,n){var o=n.trim(),i=o.indexOf(cw);if(i!==-1){var s=o.slice(0,i),a=o.slice(i+1,n.length);ow(s)&&iw(a)&&r.set(s,a)}return r},new Map),this._internalState.size>aw&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,aw))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}()});function pw(t){return new lw(t)}var _w=F(()=>{dw()});var fI,fw=F(()=>{vl();fI=Uo.getInstance()});var gI,gw=F(()=>{ls();gI=ht.instance()});var Kce,Ew,hw=F(()=>{tI();Kce=function(){function t(){}return t.prototype.getMeter=function(e,r,n){return eI},t}(),Ew=new Kce});var EI,mw,Tw=F(()=>{hw();cs();ls();EI="metrics",mw=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return an(EI,e,ht.instance())},t.prototype.getMeterProvider=function(){return cr(EI)||Ew},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){un(EI,ht.instance())},t}()});var hI,Sw=F(()=>{Tw();hI=mw.getInstance()});var Aw,Rw=F(()=>{Aw=function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t}()});function TI(t){return t.getValue(mI)||void 0}function Ow(){return TI(Uo.getInstance().active())}function Iw(t,e){return t.setValue(mI,e)}function bw(t){return t.deleteValue(mI)}var mI,Pw=F(()=>{vl();yl();mI=Ta("OpenTelemetry Baggage Key")});var SI,Xce,yw,vw=F(()=>{cs();Rw();rI();Pw();JO();ls();SI="propagation",Xce=new Aw,yw=function(){function t(){this.createBaggage=jx,this.getBaggage=TI,this.getActiveBaggage=Ow,this.setBaggage=Iw,this.deleteBaggage=bw}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return an(SI,e,ht.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=N_),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=v_),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){un(SI,ht.instance())},t.prototype._getGlobalPropagator=function(){return cr(SI)||Xce},t}()});var AI,Nw=F(()=>{vw();AI=yw.getInstance()});var RI,Cw,Mw=F(()=>{cs();pI();U_();sI();ls();RI="trace",Cw=function(){function t(){this._proxyTracerProvider=new Ll,this.wrapSpanContext=$x,this.isSpanContextValid=Aa,this.deleteSpan=zx,this.getSpan=D_,this.getActiveSpan=Zx,this.getSpanContext=G_,this.setSpan=Ml,this.setSpanContext=Jx}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=an(RI,this._proxyTracerProvider,ht.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return cr(RI)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){un(RI,ht.instance()),this._proxyTracerProvider=new Ll},t}()});var OI,Lw=F(()=>{Mw();OI=Cw.getInstance()});var P={};M1(P,{DiagConsoleLogger:()=>Fx,DiagLogLevel:()=>dt,INVALID_SPANID:()=>Nl,INVALID_SPAN_CONTEXT:()=>C_,INVALID_TRACEID:()=>Cl,ProxyTracer:()=>w_,ProxyTracerProvider:()=>Ll,ROOT_CONTEXT:()=>b_,SamplingDecision:()=>V_,SpanKind:()=>B_,SpanStatusCode:()=>q_,TraceFlags:()=>Sa,ValueType:()=>y_,baggageEntryMetadataFromString:()=>Hx,context:()=>fI,createContextKey:()=>Ta,createNoopMeter:()=>Wx,createTraceState:()=>pw,default:()=>Zce,defaultTextMapGetter:()=>v_,defaultTextMapSetter:()=>N_,diag:()=>gI,isSpanContextValid:()=>Aa,isValidSpanId:()=>uI,isValidTraceId:()=>aI,metrics:()=>hI,propagation:()=>AI,trace:()=>OI});var Zce,y=F(()=>{JO();yl();kx();I_();tI();Yx();rI();dI();pI();tw();rw();nw();oI();_w();U_();M_();fw();gw();Sw();Nw();Lw();Zce={context:fI,diag:gI,metrics:hI,propagation:AI,trace:OI}});var Dl=c(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.isTracingSuppressed=wo.unsuppressTracing=wo.suppressTracing=void 0;var zce=(y(),T(P)),II=(0,zce.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Jce(t){return t.setValue(II,!0)}wo.suppressTracing=Jce;function $ce(t){return t.deleteValue(II)}wo.unsuppressTracing=$ce;function Qce(t){return t.getValue(II)===!0}wo.isTracingSuppressed=Qce});var bI=c(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.BAGGAGE_MAX_TOTAL_LENGTH=mt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=mt.BAGGAGE_MAX_NAME_VALUE_PAIRS=mt.BAGGAGE_HEADER=mt.BAGGAGE_ITEMS_SEPARATOR=mt.BAGGAGE_PROPERTIES_SEPARATOR=mt.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;mt.BAGGAGE_KEY_PAIR_SEPARATOR="=";mt.BAGGAGE_PROPERTIES_SEPARATOR=";";mt.BAGGAGE_ITEMS_SEPARATOR=",";mt.BAGGAGE_HEADER="baggage";mt.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;mt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;mt.BAGGAGE_MAX_TOTAL_LENGTH=8192});var PI=c(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.parseKeyPairsIntoRecord=cn.parsePairKeyValue=cn.getKeyPairs=cn.serializeKeyPairs=void 0;var ele=(y(),T(P)),ps=bI();function tle(t){return t.reduce((e,r)=>{let n=`${e}${e!==""?ps.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return n.length>ps.BAGGAGE_MAX_TOTAL_LENGTH?e:n},"")}cn.serializeKeyPairs=tle;function rle(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=ps.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),n})}cn.getKeyPairs=rle;function Dw(t){let e=t.split(ps.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let n=r.indexOf(ps.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=decodeURIComponent(r.substring(0,n).trim()),i=decodeURIComponent(r.substring(n+1).trim()),s;return e.length>0&&(s=(0,ele.baggageEntryMetadataFromString)(e.join(ps.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:i,metadata:s}}cn.parsePairKeyValue=Dw;function nle(t){return typeof t!="string"||t.length===0?{}:t.split(ps.BAGGAGE_ITEMS_SEPARATOR).map(e=>Dw(e)).filter(e=>e!==void 0&&e.value.length>0).reduce((e,r)=>(e[r.key]=r.value,e),{})}cn.parseKeyPairsIntoRecord=nle});var Gw=c(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});j_.W3CBaggagePropagator=void 0;var yI=(y(),T(P)),ole=Dl(),_s=bI(),vI=PI(),NI=class{inject(e,r,n){let o=yI.propagation.getBaggage(e);if(!o||(0,ole.isTracingSuppressed)(e))return;let i=(0,vI.getKeyPairs)(o).filter(a=>a.length<=_s.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,_s.BAGGAGE_MAX_NAME_VALUE_PAIRS),s=(0,vI.serializeKeyPairs)(i);s.length>0&&n.set(r,_s.BAGGAGE_HEADER,s)}extract(e,r,n){let o=n.get(r,_s.BAGGAGE_HEADER),i=Array.isArray(o)?o.join(_s.BAGGAGE_ITEMS_SEPARATOR):o;if(!i)return e;let s={};return i.length===0||(i.split(_s.BAGGAGE_ITEMS_SEPARATOR).forEach(u=>{let l=(0,vI.parsePairKeyValue)(u);if(l){let d={value:l.value};l.metadata&&(d.metadata=l.metadata),s[l.key]=d}}),Object.entries(s).length===0)?e:yI.propagation.setBaggage(e,yI.propagation.createBaggage(s))}fields(){return[_s.BAGGAGE_HEADER]}};j_.W3CBaggagePropagator=NI});var Uw=c(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.AnchoredClock=void 0;var CI=class{constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};H_.AnchoredClock=CI});var qw=c(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.isAttributeValue=Vo.isAttributeKey=Vo.sanitizeAttributes=void 0;var xw=(y(),T(P));function ile(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,n]of Object.entries(t)){if(!ww(r)){xw.diag.warn(`Invalid attribute key: ${r}`);continue}if(!Vw(n)){xw.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}Vo.sanitizeAttributes=ile;function ww(t){return typeof t=="string"&&t.length>0}Vo.isAttributeKey=ww;function Vw(t){return t==null?!0:Array.isArray(t)?sle(t):Bw(t)}Vo.isAttributeValue=Vw;function sle(t){let e;for(let r of t)if(r!=null){if(!e){if(Bw(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function Bw(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var MI=c(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.loggingErrorHandler=void 0;var ale=(y(),T(P));function ule(){return t=>{ale.diag.error(cle(t))}}F_.loggingErrorHandler=ule;function cle(t){return typeof t=="string"?t:JSON.stringify(lle(t))}function lle(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;let o=r[n];o&&(e[n]=String(o))}),r=Object.getPrototypeOf(r);return e}});var LI=c(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.globalErrorHandler=Ra.setGlobalErrorHandler=void 0;var dle=MI(),jw=(0,dle.loggingErrorHandler)();function ple(t){jw=t}Ra.setGlobalErrorHandler=ple;function _le(t){try{jw(t)}catch{}}Ra.globalErrorHandler=_le});var DI=c(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.TracesSamplerValues=void 0;var fle;(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(fle=Gl.TracesSamplerValues||(Gl.TracesSamplerValues={}))});var GI=c(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.parseEnvironment=Ie.DEFAULT_ENVIRONMENT=Ie.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=Ie.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=Ie.DEFAULT_ATTRIBUTE_COUNT_LIMIT=Ie.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var Bo=(y(),T(P)),gle=DI(),Ele=",",hle=["OTEL_SDK_DISABLED"];function mle(t){return hle.indexOf(t)>-1}var Tle=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Sle(t){return Tle.indexOf(t)>-1}var Ale=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Rle(t){return Ale.indexOf(t)>-1}Ie.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;Ie.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;Ie.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;Ie.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;Ie.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Bo.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ie.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:Ie.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ie.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Ie.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ie.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Ie.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Ie.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Ie.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:gle.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function Ole(t,e,r){if(typeof r[t]>"u")return;let n=String(r[t]);e[t]=n.toLowerCase()==="true"}function Ile(t,e,r,n=-1/0,o=1/0){if(typeof r[t]<"u"){let i=Number(r[t]);isNaN(i)||(i<n?e[t]=n:i>o?e[t]=o:e[t]=i)}}function ble(t,e,r,n=Ele){let o=r[t];typeof o=="string"&&(e[t]=o.split(n).map(i=>i.trim()))}var Ple={ALL:Bo.DiagLogLevel.ALL,VERBOSE:Bo.DiagLogLevel.VERBOSE,DEBUG:Bo.DiagLogLevel.DEBUG,INFO:Bo.DiagLogLevel.INFO,WARN:Bo.DiagLogLevel.WARN,ERROR:Bo.DiagLogLevel.ERROR,NONE:Bo.DiagLogLevel.NONE};function yle(t,e,r){let n=r[t];if(typeof n=="string"){let o=Ple[n.toUpperCase()];o!=null&&(e[t]=o)}}function vle(t){let e={};for(let r in Ie.DEFAULT_ENVIRONMENT){let n=r;switch(n){case"OTEL_LOG_LEVEL":yle(n,e,t);break;default:if(mle(n))Ole(n,e,t);else if(Sle(n))Ile(n,e,t);else if(Rle(n))ble(n,e,t);else{let o=t[n];typeof o<"u"&&o!==null&&(e[n]=String(o))}}}return e}Ie.parseEnvironment=vle});var Hw=c(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.getEnvWithoutDefaults=Oa.getEnv=void 0;var UI=GI();function Nle(){let t=(0,UI.parseEnvironment)(process.env);return Object.assign({},UI.DEFAULT_ENVIRONMENT,t)}Oa.getEnv=Nle;function Cle(){return(0,UI.parseEnvironment)(process.env)}Oa.getEnvWithoutDefaults=Cle});var Fw=c(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});k_._globalThis=void 0;k_._globalThis=typeof globalThis=="object"?globalThis:global});var xI=c(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0});W_.hexToBinary=void 0;function kw(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Mle(t){let e=new Uint8Array(t.length/2),r=0;for(let n=0;n<t.length;n+=2){let o=kw(t.charCodeAt(n)),i=kw(t.charCodeAt(n+1));e[r++]=o<<4|i}return e}W_.hexToBinary=Mle});var Ww=c(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});Y_.hexToBase64=void 0;var Lle=xI();function Dle(t){return Buffer.from((0,Lle.hexToBinary)(t)).toString("base64")}Y_.hexToBase64=Dle});var Xw=c(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.RandomIdGenerator=void 0;var Gle=8,Kw=16,wI=class{constructor(){this.generateTraceId=Yw(Kw),this.generateSpanId=Yw(Gle)}};X_.RandomIdGenerator=wI;var K_=Buffer.allocUnsafe(Kw);function Yw(t){return function(){for(let r=0;r<t/4;r++)K_.writeUInt32BE(Math.random()*2**32>>>0,r*4);for(let r=0;r<t&&!(K_[r]>0);r++)r===t-1&&(K_[t-1]=1);return K_.toString("hex",0,t)}}});var Zw=c(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});Z_.otperformance=void 0;var Ule=m("perf_hooks");Z_.otperformance=Ule.performance});var VI=c(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0});z_.VERSION=void 0;z_.VERSION="1.26.0"});function Le(t){for(var e={},r=t.length,n=0;n<r;n++){var o=t[n];o&&(e[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return e}var BI=F(()=>{});var zw,Jw,$w,Qw,eV,tV,rV,nV,oV,iV,sV,aV,uV,cV,lV,dV,pV,_V,fV,gV,EV,hV,mV,TV,SV,AV,RV,OV,IV,bV,PV,yV,vV,NV,CV,MV,LV,DV,GV,UV,xV,wV,VV,BV,qV,jV,HV,FV,kV,WV,YV,KV,XV,ZV,zV,JV,$V,QV,eB,tB,rB,nB,oB,iB,sB,aB,uB,cB,lB,dB,pB,_B,fB,gB,EB,hB,mB,TB,SB,AB,RB,OB,IB,bB,PB,yB,vB,NB,CB,MB,LB,DB,GB,UB,xB,wB,VB,BB,qB,jB,HB,FB,kB,WB,YB,KB,XB,ZB,zB,JB,$B,QB,eq,tq,rq,nq,oq,iq,sq,aq,uq,cq,lq,dq,pq,_q,fq,gq,xle,wle,Vle,Ble,qle,jle,Hle,Fle,kle,Wle,Yle,Kle,Xle,Zle,zle,Jle,$le,Qle,ede,tde,rde,nde,ode,ide,sde,ade,ude,cde,lde,dde,pde,_de,fde,gde,Ede,hde,mde,Tde,Sde,Ade,Rde,Ode,Ide,bde,Pde,yde,vde,Nde,Cde,Mde,Lde,Dde,Gde,Ude,xde,wde,Vde,Bde,qde,jde,Hde,Fde,kde,Wde,Yde,Kde,Xde,Zde,zde,Jde,$de,Qde,epe,tpe,rpe,npe,ope,ipe,spe,ape,upe,cpe,lpe,dpe,ppe,_pe,fpe,gpe,Epe,hpe,mpe,Tpe,Spe,Ape,Rpe,Ope,Ipe,bpe,Ppe,ype,vpe,Npe,Cpe,Mpe,Lpe,Dpe,Gpe,Upe,xpe,wpe,Vpe,Bpe,qpe,jpe,Hpe,Fpe,kpe,Wpe,Ype,Kpe,Xpe,Zpe,zpe,Jpe,$pe,Qpe,e_e,t_e,r_e,Eq,hq,mq,Tq,Sq,Aq,Rq,Oq,Iq,bq,Pq,yq,vq,Nq,Cq,Mq,Lq,Dq,Gq,Uq,xq,wq,Vq,Bq,qq,jq,Hq,Fq,kq,Wq,Yq,Kq,Xq,Zq,zq,Jq,$q,Qq,ej,tj,rj,nj,oj,ij,sj,aj,uj,n_e,o_e,i_e,s_e,a_e,u_e,c_e,l_e,d_e,p_e,__e,f_e,g_e,E_e,h_e,m_e,T_e,S_e,A_e,R_e,O_e,I_e,b_e,P_e,y_e,v_e,N_e,C_e,M_e,L_e,D_e,G_e,U_e,x_e,w_e,V_e,B_e,q_e,j_e,H_e,F_e,k_e,W_e,Y_e,K_e,X_e,Z_e,z_e,cj,lj,dj,pj,_j,fj,gj,Ej,hj,mj,Tj,J_e,$_e,Q_e,efe,tfe,rfe,nfe,ofe,ife,sfe,afe,ufe,Sj,Aj,Rj,Oj,Ij,cfe,lfe,dfe,pfe,_fe,ffe,bj,Pj,yj,gfe,Efe,hfe,mfe,vj,Nj,Cj,Mj,Tfe,Sfe,Afe,Rfe,Ofe,Lj,Dj,Gj,Uj,xj,wj,Vj,Ife,bfe,Pfe,yfe,vfe,Nfe,Cfe,Mfe,Bj,qj,jj,Hj,Fj,Lfe,Dfe,Gfe,Ufe,xfe,wfe,kj,Wj,Yj,Kj,Xj,Zj,zj,Jj,$j,Qj,eH,tH,rH,nH,oH,iH,sH,aH,uH,cH,lH,Vfe,Bfe,qfe,jfe,Hfe,Ffe,kfe,Wfe,Yfe,Kfe,Xfe,Zfe,zfe,Jfe,$fe,Qfe,ege,tge,rge,nge,oge,ige,dH,pH,_H,fH,gH,sge,age,uge,cge,lge,dge,EH,hH,pge,_ge,fge,mH,TH,gge,Ege,hge,SH,AH,RH,OH,IH,bH,PH,yH,vH,NH,CH,MH,LH,DH,GH,UH,xH,mge,Tge,Sge,Age,Rge,Oge,Ige,bge,Pge,yge,vge,Nge,Cge,Mge,Lge,Dge,Gge,Uge,wH,VH,xge,wge,Vge,BH=F(()=>{BI();zw="aws.lambda.invoked_arn",Jw="db.system",$w="db.connection_string",Qw="db.user",eV="db.jdbc.driver_classname",tV="db.name",rV="db.statement",nV="db.operation",oV="db.mssql.instance_name",iV="db.cassandra.keyspace",sV="db.cassandra.page_size",aV="db.cassandra.consistency_level",uV="db.cassandra.table",cV="db.cassandra.idempotence",lV="db.cassandra.speculative_execution_count",dV="db.cassandra.coordinator.id",pV="db.cassandra.coordinator.dc",_V="db.hbase.namespace",fV="db.redis.database_index",gV="db.mongodb.collection",EV="db.sql.table",hV="exception.type",mV="exception.message",TV="exception.stacktrace",SV="exception.escaped",AV="faas.trigger",RV="faas.execution",OV="faas.document.collection",IV="faas.document.operation",bV="faas.document.time",PV="faas.document.name",yV="faas.time",vV="faas.cron",NV="faas.coldstart",CV="faas.invoked_name",MV="faas.invoked_provider",LV="faas.invoked_region",DV="net.transport",GV="net.peer.ip",UV="net.peer.port",xV="net.peer.name",wV="net.host.ip",VV="net.host.port",BV="net.host.name",qV="net.host.connection.type",jV="net.host.connection.subtype",HV="net.host.carrier.name",FV="net.host.carrier.mcc",kV="net.host.carrier.mnc",WV="net.host.carrier.icc",YV="peer.service",KV="enduser.id",XV="enduser.role",ZV="enduser.scope",zV="thread.id",JV="thread.name",$V="code.function",QV="code.namespace",eB="code.filepath",tB="code.lineno",rB="http.method",nB="http.url",oB="http.target",iB="http.host",sB="http.scheme",aB="http.status_code",uB="http.flavor",cB="http.user_agent",lB="http.request_content_length",dB="http.request_content_length_uncompressed",pB="http.response_content_length",_B="http.response_content_length_uncompressed",fB="http.server_name",gB="http.route",EB="http.client_ip",hB="aws.dynamodb.table_names",mB="aws.dynamodb.consumed_capacity",TB="aws.dynamodb.item_collection_metrics",SB="aws.dynamodb.provisioned_read_capacity",AB="aws.dynamodb.provisioned_write_capacity",RB="aws.dynamodb.consistent_read",OB="aws.dynamodb.projection",IB="aws.dynamodb.limit",bB="aws.dynamodb.attributes_to_get",PB="aws.dynamodb.index_name",yB="aws.dynamodb.select",vB="aws.dynamodb.global_secondary_indexes",NB="aws.dynamodb.local_secondary_indexes",CB="aws.dynamodb.exclusive_start_table",MB="aws.dynamodb.table_count",LB="aws.dynamodb.scan_forward",DB="aws.dynamodb.segment",GB="aws.dynamodb.total_segments",UB="aws.dynamodb.count",xB="aws.dynamodb.scanned_count",wB="aws.dynamodb.attribute_definitions",VB="aws.dynamodb.global_secondary_index_updates",BB="messaging.system",qB="messaging.destination",jB="messaging.destination_kind",HB="messaging.temp_destination",FB="messaging.protocol",kB="messaging.protocol_version",WB="messaging.url",YB="messaging.message_id",KB="messaging.conversation_id",XB="messaging.message_payload_size_bytes",ZB="messaging.message_payload_compressed_size_bytes",zB="messaging.operation",JB="messaging.consumer_id",$B="messaging.rabbitmq.routing_key",QB="messaging.kafka.message_key",eq="messaging.kafka.consumer_group",tq="messaging.kafka.client_id",rq="messaging.kafka.partition",nq="messaging.kafka.tombstone",oq="rpc.system",iq="rpc.service",sq="rpc.method",aq="rpc.grpc.status_code",uq="rpc.jsonrpc.version",cq="rpc.jsonrpc.request_id",lq="rpc.jsonrpc.error_code",dq="rpc.jsonrpc.error_message",pq="message.type",_q="message.id",fq="message.compressed_size",gq="message.uncompressed_size",xle=zw,wle=Jw,Vle=$w,Ble=Qw,qle=eV,jle=tV,Hle=rV,Fle=nV,kle=oV,Wle=iV,Yle=sV,Kle=aV,Xle=uV,Zle=cV,zle=lV,Jle=dV,$le=pV,Qle=_V,ede=fV,tde=gV,rde=EV,nde=hV,ode=mV,ide=TV,sde=SV,ade=AV,ude=RV,cde=OV,lde=IV,dde=bV,pde=PV,_de=yV,fde=vV,gde=NV,Ede=CV,hde=MV,mde=LV,Tde=DV,Sde=GV,Ade=UV,Rde=xV,Ode=wV,Ide=VV,bde=BV,Pde=qV,yde=jV,vde=HV,Nde=FV,Cde=kV,Mde=WV,Lde=YV,Dde=KV,Gde=XV,Ude=ZV,xde=zV,wde=JV,Vde=$V,Bde=QV,qde=eB,jde=tB,Hde=rB,Fde=nB,kde=oB,Wde=iB,Yde=sB,Kde=aB,Xde=uB,Zde=cB,zde=lB,Jde=dB,$de=pB,Qde=_B,epe=fB,tpe=gB,rpe=EB,npe=hB,ope=mB,ipe=TB,spe=SB,ape=AB,upe=RB,cpe=OB,lpe=IB,dpe=bB,ppe=PB,_pe=yB,fpe=vB,gpe=NB,Epe=CB,hpe=MB,mpe=LB,Tpe=DB,Spe=GB,Ape=UB,Rpe=xB,Ope=wB,Ipe=VB,bpe=BB,Ppe=qB,ype=jB,vpe=HB,Npe=FB,Cpe=kB,Mpe=WB,Lpe=YB,Dpe=KB,Gpe=XB,Upe=ZB,xpe=zB,wpe=JB,Vpe=$B,Bpe=QB,qpe=eq,jpe=tq,Hpe=rq,Fpe=nq,kpe=oq,Wpe=iq,Ype=sq,Kpe=aq,Xpe=uq,Zpe=cq,zpe=lq,Jpe=dq,$pe=pq,Qpe=_q,e_e=fq,t_e=gq,r_e=Le([zw,Jw,$w,Qw,eV,tV,rV,nV,oV,iV,sV,aV,uV,cV,lV,dV,pV,_V,fV,gV,EV,hV,mV,TV,SV,AV,RV,OV,IV,bV,PV,yV,vV,NV,CV,MV,LV,DV,GV,UV,xV,wV,VV,BV,qV,jV,HV,FV,kV,WV,YV,KV,XV,ZV,zV,JV,$V,QV,eB,tB,rB,nB,oB,iB,sB,aB,uB,cB,lB,dB,pB,_B,fB,gB,EB,hB,mB,TB,SB,AB,RB,OB,IB,bB,PB,yB,vB,NB,CB,MB,LB,DB,GB,UB,xB,wB,VB,BB,qB,jB,HB,FB,kB,WB,YB,KB,XB,ZB,zB,JB,$B,QB,eq,tq,rq,nq,oq,iq,sq,aq,uq,cq,lq,dq,pq,_q,fq,gq]),Eq="other_sql",hq="mssql",mq="mysql",Tq="oracle",Sq="db2",Aq="postgresql",Rq="redshift",Oq="hive",Iq="cloudscape",bq="hsqldb",Pq="progress",yq="maxdb",vq="hanadb",Nq="ingres",Cq="firstsql",Mq="edb",Lq="cache",Dq="adabas",Gq="firebird",Uq="derby",xq="filemaker",wq="informix",Vq="instantdb",Bq="interbase",qq="mariadb",jq="netezza",Hq="pervasive",Fq="pointbase",kq="sqlite",Wq="sybase",Yq="teradata",Kq="vertica",Xq="h2",Zq="coldfusion",zq="cassandra",Jq="hbase",$q="mongodb",Qq="redis",ej="couchbase",tj="couchdb",rj="cosmosdb",nj="dynamodb",oj="neo4j",ij="geode",sj="elasticsearch",aj="memcached",uj="cockroachdb",n_e=Eq,o_e=hq,i_e=mq,s_e=Tq,a_e=Sq,u_e=Aq,c_e=Rq,l_e=Oq,d_e=Iq,p_e=bq,__e=Pq,f_e=yq,g_e=vq,E_e=Nq,h_e=Cq,m_e=Mq,T_e=Lq,S_e=Dq,A_e=Gq,R_e=Uq,O_e=xq,I_e=wq,b_e=Vq,P_e=Bq,y_e=qq,v_e=jq,N_e=Hq,C_e=Fq,M_e=kq,L_e=Wq,D_e=Yq,G_e=Kq,U_e=Xq,x_e=Zq,w_e=zq,V_e=Jq,B_e=$q,q_e=Qq,j_e=ej,H_e=tj,F_e=rj,k_e=nj,W_e=oj,Y_e=ij,K_e=sj,X_e=aj,Z_e=uj,z_e=Le([Eq,hq,mq,Tq,Sq,Aq,Rq,Oq,Iq,bq,Pq,yq,vq,Nq,Cq,Mq,Lq,Dq,Gq,Uq,xq,wq,Vq,Bq,qq,jq,Hq,Fq,kq,Wq,Yq,Kq,Xq,Zq,zq,Jq,$q,Qq,ej,tj,rj,nj,oj,ij,sj,aj,uj]),cj="all",lj="each_quorum",dj="quorum",pj="local_quorum",_j="one",fj="two",gj="three",Ej="local_one",hj="any",mj="serial",Tj="local_serial",J_e=cj,$_e=lj,Q_e=dj,efe=pj,tfe=_j,rfe=fj,nfe=gj,ofe=Ej,ife=hj,sfe=mj,afe=Tj,ufe=Le([cj,lj,dj,pj,_j,fj,gj,Ej,hj,mj,Tj]),Sj="datasource",Aj="http",Rj="pubsub",Oj="timer",Ij="other",cfe=Sj,lfe=Aj,dfe=Rj,pfe=Oj,_fe=Ij,ffe=Le([Sj,Aj,Rj,Oj,Ij]),bj="insert",Pj="edit",yj="delete",gfe=bj,Efe=Pj,hfe=yj,mfe=Le([bj,Pj,yj]),vj="alibaba_cloud",Nj="aws",Cj="azure",Mj="gcp",Tfe=vj,Sfe=Nj,Afe=Cj,Rfe=Mj,Ofe=Le([vj,Nj,Cj,Mj]),Lj="ip_tcp",Dj="ip_udp",Gj="ip",Uj="unix",xj="pipe",wj="inproc",Vj="other",Ife=Lj,bfe=Dj,Pfe=Gj,yfe=Uj,vfe=xj,Nfe=wj,Cfe=Vj,Mfe=Le([Lj,Dj,Gj,Uj,xj,wj,Vj]),Bj="wifi",qj="wired",jj="cell",Hj="unavailable",Fj="unknown",Lfe=Bj,Dfe=qj,Gfe=jj,Ufe=Hj,xfe=Fj,wfe=Le([Bj,qj,jj,Hj,Fj]),kj="gprs",Wj="edge",Yj="umts",Kj="cdma",Xj="evdo_0",Zj="evdo_a",zj="cdma2000_1xrtt",Jj="hsdpa",$j="hsupa",Qj="hspa",eH="iden",tH="evdo_b",rH="lte",nH="ehrpd",oH="hspap",iH="gsm",sH="td_scdma",aH="iwlan",uH="nr",cH="nrnsa",lH="lte_ca",Vfe=kj,Bfe=Wj,qfe=Yj,jfe=Kj,Hfe=Xj,Ffe=Zj,kfe=zj,Wfe=Jj,Yfe=$j,Kfe=Qj,Xfe=eH,Zfe=tH,zfe=rH,Jfe=nH,$fe=oH,Qfe=iH,ege=sH,tge=aH,rge=uH,nge=cH,oge=lH,ige=Le([kj,Wj,Yj,Kj,Xj,Zj,zj,Jj,$j,Qj,eH,tH,rH,nH,oH,iH,sH,aH,uH,cH,lH]),dH="1.0",pH="1.1",_H="2.0",fH="SPDY",gH="QUIC",sge=dH,age=pH,uge=_H,cge=fH,lge=gH,dge={HTTP_1_0:dH,HTTP_1_1:pH,HTTP_2_0:_H,SPDY:fH,QUIC:gH},EH="queue",hH="topic",pge=EH,_ge=hH,fge=Le([EH,hH]),mH="receive",TH="process",gge=mH,Ege=TH,hge=Le([mH,TH]),SH=0,AH=1,RH=2,OH=3,IH=4,bH=5,PH=6,yH=7,vH=8,NH=9,CH=10,MH=11,LH=12,DH=13,GH=14,UH=15,xH=16,mge=SH,Tge=AH,Sge=RH,Age=OH,Rge=IH,Oge=bH,Ige=PH,bge=yH,Pge=vH,yge=NH,vge=CH,Nge=MH,Cge=LH,Mge=DH,Lge=GH,Dge=UH,Gge=xH,Uge={OK:SH,CANCELLED:AH,UNKNOWN:RH,INVALID_ARGUMENT:OH,DEADLINE_EXCEEDED:IH,NOT_FOUND:bH,ALREADY_EXISTS:PH,PERMISSION_DENIED:yH,RESOURCE_EXHAUSTED:vH,FAILED_PRECONDITION:NH,ABORTED:CH,OUT_OF_RANGE:MH,UNIMPLEMENTED:LH,INTERNAL:DH,UNAVAILABLE:GH,DATA_LOSS:UH,UNAUTHENTICATED:xH},wH="SENT",VH="RECEIVED",xge=wH,wge=VH,Vge=Le([wH,VH])});var qH=F(()=>{BH()});var jH,HH,FH,kH,WH,YH,KH,XH,ZH,zH,JH,$H,QH,eF,tF,rF,nF,oF,iF,sF,aF,uF,cF,lF,dF,pF,_F,fF,gF,EF,hF,mF,TF,SF,AF,RF,OF,IF,bF,PF,yF,vF,NF,CF,MF,LF,DF,GF,UF,xF,wF,VF,BF,qF,jF,HF,FF,kF,WF,YF,KF,XF,ZF,zF,JF,$F,QF,ek,tk,rk,nk,ok,ik,sk,ak,uk,ck,lk,dk,pk,_k,Bge,qge,jge,Hge,Fge,kge,Wge,Yge,Kge,Xge,Zge,zge,Jge,$ge,Qge,eEe,tEe,rEe,nEe,oEe,iEe,sEe,aEe,uEe,cEe,lEe,dEe,pEe,_Ee,fEe,gEe,EEe,hEe,mEe,TEe,SEe,AEe,REe,OEe,IEe,bEe,PEe,yEe,vEe,NEe,CEe,MEe,LEe,DEe,GEe,UEe,xEe,wEe,VEe,BEe,qEe,jEe,HEe,FEe,kEe,WEe,YEe,KEe,XEe,ZEe,zEe,JEe,$Ee,QEe,ehe,the,rhe,nhe,ohe,ihe,she,ahe,uhe,che,lhe,dhe,phe,fk,gk,Ek,hk,_he,fhe,ghe,Ehe,hhe,mk,Tk,Sk,Ak,Rk,Ok,Ik,bk,Pk,yk,vk,Nk,Ck,Mk,Lk,Dk,Gk,mhe,The,She,Ahe,Rhe,Ohe,Ihe,bhe,Phe,yhe,vhe,Nhe,Che,Mhe,Lhe,Dhe,Ghe,Uhe,Uk,xk,xhe,whe,Vhe,wk,Vk,Bk,qk,jk,Hk,Fk,Bhe,qhe,jhe,Hhe,Fhe,khe,Whe,Yhe,kk,Wk,Yk,Kk,Xk,Zk,zk,Jk,$k,Qk,eW,Khe,Xhe,Zhe,zhe,Jhe,$he,Qhe,eme,tme,rme,nme,ome,tW,rW,nW,oW,iW,sW,aW,uW,cW,lW,ime,sme,ame,ume,cme,lme,dme,pme,_me,fme,gme,dW=F(()=>{BI();jH="cloud.provider",HH="cloud.account.id",FH="cloud.region",kH="cloud.availability_zone",WH="cloud.platform",YH="aws.ecs.container.arn",KH="aws.ecs.cluster.arn",XH="aws.ecs.launchtype",ZH="aws.ecs.task.arn",zH="aws.ecs.task.family",JH="aws.ecs.task.revision",$H="aws.eks.cluster.arn",QH="aws.log.group.names",eF="aws.log.group.arns",tF="aws.log.stream.names",rF="aws.log.stream.arns",nF="container.name",oF="container.id",iF="container.runtime",sF="container.image.name",aF="container.image.tag",uF="deployment.environment",cF="device.id",lF="device.model.identifier",dF="device.model.name",pF="faas.name",_F="faas.id",fF="faas.version",gF="faas.instance",EF="faas.max_memory",hF="host.id",mF="host.name",TF="host.type",SF="host.arch",AF="host.image.name",RF="host.image.id",OF="host.image.version",IF="k8s.cluster.name",bF="k8s.node.name",PF="k8s.node.uid",yF="k8s.namespace.name",vF="k8s.pod.uid",NF="k8s.pod.name",CF="k8s.container.name",MF="k8s.replicaset.uid",LF="k8s.replicaset.name",DF="k8s.deployment.uid",GF="k8s.deployment.name",UF="k8s.statefulset.uid",xF="k8s.statefulset.name",wF="k8s.daemonset.uid",VF="k8s.daemonset.name",BF="k8s.job.uid",qF="k8s.job.name",jF="k8s.cronjob.uid",HF="k8s.cronjob.name",FF="os.type",kF="os.description",WF="os.name",YF="os.version",KF="process.pid",XF="process.executable.name",ZF="process.executable.path",zF="process.command",JF="process.command_line",$F="process.command_args",QF="process.owner",ek="process.runtime.name",tk="process.runtime.version",rk="process.runtime.description",nk="service.name",ok="service.namespace",ik="service.instance.id",sk="service.version",ak="telemetry.sdk.name",uk="telemetry.sdk.language",ck="telemetry.sdk.version",lk="telemetry.auto.version",dk="webengine.name",pk="webengine.version",_k="webengine.description",Bge=jH,qge=HH,jge=FH,Hge=kH,Fge=WH,kge=YH,Wge=KH,Yge=XH,Kge=ZH,Xge=zH,Zge=JH,zge=$H,Jge=QH,$ge=eF,Qge=tF,eEe=rF,tEe=nF,rEe=oF,nEe=iF,oEe=sF,iEe=aF,sEe=uF,aEe=cF,uEe=lF,cEe=dF,lEe=pF,dEe=_F,pEe=fF,_Ee=gF,fEe=EF,gEe=hF,EEe=mF,hEe=TF,mEe=SF,TEe=AF,SEe=RF,AEe=OF,REe=IF,OEe=bF,IEe=PF,bEe=yF,PEe=vF,yEe=NF,vEe=CF,NEe=MF,CEe=LF,MEe=DF,LEe=GF,DEe=UF,GEe=xF,UEe=wF,xEe=VF,wEe=BF,VEe=qF,BEe=jF,qEe=HF,jEe=FF,HEe=kF,FEe=WF,kEe=YF,WEe=KF,YEe=XF,KEe=ZF,XEe=zF,ZEe=JF,zEe=$F,JEe=QF,$Ee=ek,QEe=tk,ehe=rk,the=nk,rhe=ok,nhe=ik,ohe=sk,ihe=ak,she=uk,ahe=ck,uhe=lk,che=dk,lhe=pk,dhe=_k,phe=Le([jH,HH,FH,kH,WH,YH,KH,XH,ZH,zH,JH,$H,QH,eF,tF,rF,nF,oF,iF,sF,aF,uF,cF,lF,dF,pF,_F,fF,gF,EF,hF,mF,TF,SF,AF,RF,OF,IF,bF,PF,yF,vF,NF,CF,MF,LF,DF,GF,UF,xF,wF,VF,BF,qF,jF,HF,FF,kF,WF,YF,KF,XF,ZF,zF,JF,$F,QF,ek,tk,rk,nk,ok,ik,sk,ak,uk,ck,lk,dk,pk,_k]),fk="alibaba_cloud",gk="aws",Ek="azure",hk="gcp",_he=fk,fhe=gk,ghe=Ek,Ehe=hk,hhe=Le([fk,gk,Ek,hk]),mk="alibaba_cloud_ecs",Tk="alibaba_cloud_fc",Sk="aws_ec2",Ak="aws_ecs",Rk="aws_eks",Ok="aws_lambda",Ik="aws_elastic_beanstalk",bk="azure_vm",Pk="azure_container_instances",yk="azure_aks",vk="azure_functions",Nk="azure_app_service",Ck="gcp_compute_engine",Mk="gcp_cloud_run",Lk="gcp_kubernetes_engine",Dk="gcp_cloud_functions",Gk="gcp_app_engine",mhe=mk,The=Tk,She=Sk,Ahe=Ak,Rhe=Rk,Ohe=Ok,Ihe=Ik,bhe=bk,Phe=Pk,yhe=yk,vhe=vk,Nhe=Nk,Che=Ck,Mhe=Mk,Lhe=Lk,Dhe=Dk,Ghe=Gk,Uhe=Le([mk,Tk,Sk,Ak,Rk,Ok,Ik,bk,Pk,yk,vk,Nk,Ck,Mk,Lk,Dk,Gk]),Uk="ec2",xk="fargate",xhe=Uk,whe=xk,Vhe=Le([Uk,xk]),wk="amd64",Vk="arm32",Bk="arm64",qk="ia64",jk="ppc32",Hk="ppc64",Fk="x86",Bhe=wk,qhe=Vk,jhe=Bk,Hhe=qk,Fhe=jk,khe=Hk,Whe=Fk,Yhe=Le([wk,Vk,Bk,qk,jk,Hk,Fk]),kk="windows",Wk="linux",Yk="darwin",Kk="freebsd",Xk="netbsd",Zk="openbsd",zk="dragonflybsd",Jk="hpux",$k="aix",Qk="solaris",eW="z_os",Khe=kk,Xhe=Wk,Zhe=Yk,zhe=Kk,Jhe=Xk,$he=Zk,Qhe=zk,eme=Jk,tme=$k,rme=Qk,nme=eW,ome=Le([kk,Wk,Yk,Kk,Xk,Zk,zk,Jk,$k,Qk,eW]),tW="cpp",rW="dotnet",nW="erlang",oW="go",iW="java",sW="nodejs",aW="php",uW="python",cW="ruby",lW="webjs",ime=tW,sme=rW,ame=nW,ume=oW,cme=iW,lme=sW,dme=aW,pme=uW,_me=cW,fme=lW,gme=Le([tW,rW,nW,oW,iW,sW,aW,uW,cW,lW])});var pW=F(()=>{dW()});var Eme,hme,mme,Tme,Sme,Ame,Rme,Ome,Ime,bme,Pme,yme,vme,Nme,Cme,Mme,Lme,Dme,Gme,Ume,xme,wme,Vme,Bme,qme,jme,Hme,Fme,kme,Wme,Yme,Kme,Xme,Zme,zme,Jme,$me,Qme,eTe,tTe,rTe,nTe,oTe,iTe,sTe,aTe,uTe,cTe,lTe,dTe,pTe,_Te,fTe,gTe,ETe,hTe,mTe,TTe,STe,ATe,RTe,OTe,ITe,bTe,PTe,yTe,vTe,NTe,CTe,MTe,LTe,DTe,GTe,UTe,xTe,wTe,VTe,BTe,qTe,jTe,HTe,FTe,kTe,WTe,YTe,KTe,XTe,ZTe,zTe,JTe,$Te,QTe,eSe,tSe,rSe,nSe,oSe,iSe,sSe,aSe,uSe,cSe,lSe,dSe,pSe,_Se,fSe,gSe,ESe,hSe,_W=F(()=>{Eme="aspnetcore.rate_limiting.result",hme="acquired",mme="endpoint_limiter",Tme="global_limiter",Sme="request_canceled",Ame="telemetry.sdk.language",Rme="cpp",Ome="dotnet",Ime="erlang",bme="go",Pme="java",yme="nodejs",vme="php",Nme="python",Cme="ruby",Mme="rust",Lme="swift",Dme="webjs",Gme="telemetry.sdk.name",Ume="telemetry.sdk.version",xme="aspnetcore.diagnostics.handler.type",wme="aspnetcore.diagnostics.exception.result",Vme="aborted",Bme="handled",qme="skipped",jme="unhandled",Hme="aspnetcore.rate_limiting.policy",Fme="aspnetcore.request.is_unhandled",kme="aspnetcore.routing.is_fallback",Wme="aspnetcore.routing.match_status",Yme="failure",Kme="success",Xme="client.address",Zme="client.port",zme="error.type",Jme="_OTHER",$me="exception.escaped",Qme="exception.message",eTe="exception.stacktrace",tTe="exception.type",rTe=function(t){return"http.request.header."+t},nTe="http.request.method",oTe="_OTHER",iTe="CONNECT",sTe="DELETE",aTe="GET",uTe="HEAD",cTe="OPTIONS",lTe="PATCH",dTe="POST",pTe="PUT",_Te="TRACE",fTe="http.request.method_original",gTe="http.request.resend_count",ETe=function(t){return"http.response.header."+t},hTe="http.response.status_code",mTe="http.route",TTe="jvm.gc.action",STe="jvm.gc.name",ATe="jvm.memory.pool.name",RTe="jvm.memory.type",OTe="heap",ITe="non_heap",bTe="jvm.thread.daemon",PTe="jvm.thread.state",yTe="blocked",vTe="new",NTe="runnable",CTe="terminated",MTe="timed_waiting",LTe="waiting",DTe="network.local.address",GTe="network.local.port",UTe="network.peer.address",xTe="network.peer.port",wTe="network.protocol.name",VTe="network.protocol.version",BTe="network.transport",qTe="pipe",jTe="quic",HTe="tcp",FTe="udp",kTe="unix",WTe="network.type",YTe="ipv4",KTe="ipv6",XTe="otel.scope.name",ZTe="otel.scope.version",zTe="otel.status_code",JTe="ERROR",$Te="OK",QTe="otel.status_description",eSe="server.address",tSe="server.port",rSe="service.name",nSe="service.version",oSe="signalr.connection.status",iSe="app_shutdown",sSe="normal_closure",aSe="timeout",uSe="signalr.transport",cSe="long_polling",lSe="server_sent_events",dSe="web_sockets",pSe="url.fragment",_Se="url.full",fSe="url.path",gSe="url.query",ESe="url.scheme",hSe="user_agent.original"});var mSe,TSe,SSe,ASe,RSe,OSe,ISe,bSe,PSe,ySe,vSe,NSe,CSe,MSe,LSe,DSe,GSe,USe,xSe,wSe,VSe,BSe,qSe,jSe,HSe,FSe,kSe,WSe,YSe,KSe,XSe,fW=F(()=>{mSe="aspnetcore.diagnostics.exceptions",TSe="aspnetcore.rate_limiting.active_request_leases",SSe="aspnetcore.rate_limiting.queued_requests",ASe="aspnetcore.rate_limiting.request.time_in_queue",RSe="aspnetcore.rate_limiting.request_lease.duration",OSe="aspnetcore.rate_limiting.requests",ISe="aspnetcore.routing.match_attempts",bSe="http.client.request.duration",PSe="http.server.request.duration",ySe="jvm.class.count",vSe="jvm.class.loaded",NSe="jvm.class.unloaded",CSe="jvm.cpu.count",MSe="jvm.cpu.recent_utilization",LSe="jvm.cpu.time",DSe="jvm.gc.duration",GSe="jvm.memory.committed",USe="jvm.memory.limit",xSe="jvm.memory.used",wSe="jvm.memory.used_after_last_gc",VSe="jvm.thread.count",BSe="kestrel.active_connections",qSe="kestrel.active_tls_handshakes",jSe="kestrel.connection.duration",HSe="kestrel.queued_connections",FSe="kestrel.queued_requests",kSe="kestrel.rejected_connections",WSe="kestrel.tls_handshake.duration",YSe="kestrel.upgraded_connections",KSe="signalr.server.active_connections",XSe="signalr.server.connection.duration"});var $={};M1($,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>Vme,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>Bme,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>qme,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>jme,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>hme,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>mme,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>Tme,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>Sme,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>Yme,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>Kme,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>wme,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>xme,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>Hme,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>Eme,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>Fme,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>kme,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>Wme,ATTR_CLIENT_ADDRESS:()=>Xme,ATTR_CLIENT_PORT:()=>Zme,ATTR_ERROR_TYPE:()=>zme,ATTR_EXCEPTION_ESCAPED:()=>$me,ATTR_EXCEPTION_MESSAGE:()=>Qme,ATTR_EXCEPTION_STACKTRACE:()=>eTe,ATTR_EXCEPTION_TYPE:()=>tTe,ATTR_HTTP_REQUEST_HEADER:()=>rTe,ATTR_HTTP_REQUEST_METHOD:()=>nTe,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>fTe,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>gTe,ATTR_HTTP_RESPONSE_HEADER:()=>ETe,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>hTe,ATTR_HTTP_ROUTE:()=>mTe,ATTR_JVM_GC_ACTION:()=>TTe,ATTR_JVM_GC_NAME:()=>STe,ATTR_JVM_MEMORY_POOL_NAME:()=>ATe,ATTR_JVM_MEMORY_TYPE:()=>RTe,ATTR_JVM_THREAD_DAEMON:()=>bTe,ATTR_JVM_THREAD_STATE:()=>PTe,ATTR_NETWORK_LOCAL_ADDRESS:()=>DTe,ATTR_NETWORK_LOCAL_PORT:()=>GTe,ATTR_NETWORK_PEER_ADDRESS:()=>UTe,ATTR_NETWORK_PEER_PORT:()=>xTe,ATTR_NETWORK_PROTOCOL_NAME:()=>wTe,ATTR_NETWORK_PROTOCOL_VERSION:()=>VTe,ATTR_NETWORK_TRANSPORT:()=>BTe,ATTR_NETWORK_TYPE:()=>WTe,ATTR_OTEL_SCOPE_NAME:()=>XTe,ATTR_OTEL_SCOPE_VERSION:()=>ZTe,ATTR_OTEL_STATUS_CODE:()=>zTe,ATTR_OTEL_STATUS_DESCRIPTION:()=>QTe,ATTR_SERVER_ADDRESS:()=>eSe,ATTR_SERVER_PORT:()=>tSe,ATTR_SERVICE_NAME:()=>rSe,ATTR_SERVICE_VERSION:()=>nSe,ATTR_SIGNALR_CONNECTION_STATUS:()=>oSe,ATTR_SIGNALR_TRANSPORT:()=>uSe,ATTR_TELEMETRY_SDK_LANGUAGE:()=>Ame,ATTR_TELEMETRY_SDK_NAME:()=>Gme,ATTR_TELEMETRY_SDK_VERSION:()=>Ume,ATTR_URL_FRAGMENT:()=>pSe,ATTR_URL_FULL:()=>_Se,ATTR_URL_PATH:()=>fSe,ATTR_URL_QUERY:()=>gSe,ATTR_URL_SCHEME:()=>ESe,ATTR_USER_AGENT_ORIGINAL:()=>hSe,AWSECSLAUNCHTYPEVALUES_EC2:()=>xhe,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>whe,AwsEcsLaunchtypeValues:()=>Vhe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>mhe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>The,CLOUDPLATFORMVALUES_AWS_EC2:()=>She,CLOUDPLATFORMVALUES_AWS_ECS:()=>Ahe,CLOUDPLATFORMVALUES_AWS_EKS:()=>Rhe,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Ihe,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>Ohe,CLOUDPLATFORMVALUES_AZURE_AKS:()=>yhe,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>Nhe,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>Phe,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>vhe,CLOUDPLATFORMVALUES_AZURE_VM:()=>bhe,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>Ghe,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>Dhe,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>Mhe,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>Che,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>Lhe,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>_he,CLOUDPROVIDERVALUES_AWS:()=>fhe,CLOUDPROVIDERVALUES_AZURE:()=>ghe,CLOUDPROVIDERVALUES_GCP:()=>Ehe,CloudPlatformValues:()=>Uhe,CloudProviderValues:()=>hhe,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>J_e,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>ife,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>$_e,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>ofe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>efe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>afe,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>tfe,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>Q_e,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>sfe,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>nfe,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>rfe,DBSYSTEMVALUES_ADABAS:()=>S_e,DBSYSTEMVALUES_CACHE:()=>T_e,DBSYSTEMVALUES_CASSANDRA:()=>w_e,DBSYSTEMVALUES_CLOUDSCAPE:()=>d_e,DBSYSTEMVALUES_COCKROACHDB:()=>Z_e,DBSYSTEMVALUES_COLDFUSION:()=>x_e,DBSYSTEMVALUES_COSMOSDB:()=>F_e,DBSYSTEMVALUES_COUCHBASE:()=>j_e,DBSYSTEMVALUES_COUCHDB:()=>H_e,DBSYSTEMVALUES_DB2:()=>a_e,DBSYSTEMVALUES_DERBY:()=>R_e,DBSYSTEMVALUES_DYNAMODB:()=>k_e,DBSYSTEMVALUES_EDB:()=>m_e,DBSYSTEMVALUES_ELASTICSEARCH:()=>K_e,DBSYSTEMVALUES_FILEMAKER:()=>O_e,DBSYSTEMVALUES_FIREBIRD:()=>A_e,DBSYSTEMVALUES_FIRSTSQL:()=>h_e,DBSYSTEMVALUES_GEODE:()=>Y_e,DBSYSTEMVALUES_H2:()=>U_e,DBSYSTEMVALUES_HANADB:()=>g_e,DBSYSTEMVALUES_HBASE:()=>V_e,DBSYSTEMVALUES_HIVE:()=>l_e,DBSYSTEMVALUES_HSQLDB:()=>p_e,DBSYSTEMVALUES_INFORMIX:()=>I_e,DBSYSTEMVALUES_INGRES:()=>E_e,DBSYSTEMVALUES_INSTANTDB:()=>b_e,DBSYSTEMVALUES_INTERBASE:()=>P_e,DBSYSTEMVALUES_MARIADB:()=>y_e,DBSYSTEMVALUES_MAXDB:()=>f_e,DBSYSTEMVALUES_MEMCACHED:()=>X_e,DBSYSTEMVALUES_MONGODB:()=>B_e,DBSYSTEMVALUES_MSSQL:()=>o_e,DBSYSTEMVALUES_MYSQL:()=>i_e,DBSYSTEMVALUES_NEO4J:()=>W_e,DBSYSTEMVALUES_NETEZZA:()=>v_e,DBSYSTEMVALUES_ORACLE:()=>s_e,DBSYSTEMVALUES_OTHER_SQL:()=>n_e,DBSYSTEMVALUES_PERVASIVE:()=>N_e,DBSYSTEMVALUES_POINTBASE:()=>C_e,DBSYSTEMVALUES_POSTGRESQL:()=>u_e,DBSYSTEMVALUES_PROGRESS:()=>__e,DBSYSTEMVALUES_REDIS:()=>q_e,DBSYSTEMVALUES_REDSHIFT:()=>c_e,DBSYSTEMVALUES_SQLITE:()=>M_e,DBSYSTEMVALUES_SYBASE:()=>L_e,DBSYSTEMVALUES_TERADATA:()=>D_e,DBSYSTEMVALUES_VERTICA:()=>G_e,DbCassandraConsistencyLevelValues:()=>ufe,DbSystemValues:()=>z_e,ERROR_TYPE_VALUE_OTHER:()=>Jme,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>hfe,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>Efe,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>gfe,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>Tfe,FAASINVOKEDPROVIDERVALUES_AWS:()=>Sfe,FAASINVOKEDPROVIDERVALUES_AZURE:()=>Afe,FAASINVOKEDPROVIDERVALUES_GCP:()=>Rfe,FAASTRIGGERVALUES_DATASOURCE:()=>cfe,FAASTRIGGERVALUES_HTTP:()=>lfe,FAASTRIGGERVALUES_OTHER:()=>_fe,FAASTRIGGERVALUES_PUBSUB:()=>dfe,FAASTRIGGERVALUES_TIMER:()=>pfe,FaasDocumentOperationValues:()=>mfe,FaasInvokedProviderValues:()=>Ofe,FaasTriggerValues:()=>ffe,HOSTARCHVALUES_AMD64:()=>Bhe,HOSTARCHVALUES_ARM32:()=>qhe,HOSTARCHVALUES_ARM64:()=>jhe,HOSTARCHVALUES_IA64:()=>Hhe,HOSTARCHVALUES_PPC32:()=>Fhe,HOSTARCHVALUES_PPC64:()=>khe,HOSTARCHVALUES_X86:()=>Whe,HTTPFLAVORVALUES_HTTP_1_0:()=>sge,HTTPFLAVORVALUES_HTTP_1_1:()=>age,HTTPFLAVORVALUES_HTTP_2_0:()=>uge,HTTPFLAVORVALUES_QUIC:()=>lge,HTTPFLAVORVALUES_SPDY:()=>cge,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>iTe,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>sTe,HTTP_REQUEST_METHOD_VALUE_GET:()=>aTe,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>uTe,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>cTe,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>oTe,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>lTe,HTTP_REQUEST_METHOD_VALUE_POST:()=>dTe,HTTP_REQUEST_METHOD_VALUE_PUT:()=>pTe,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>_Te,HostArchValues:()=>Yhe,HttpFlavorValues:()=>dge,JVM_MEMORY_TYPE_VALUE_HEAP:()=>OTe,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>ITe,JVM_THREAD_STATE_VALUE_BLOCKED:()=>yTe,JVM_THREAD_STATE_VALUE_NEW:()=>vTe,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>NTe,JVM_THREAD_STATE_VALUE_TERMINATED:()=>CTe,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>MTe,JVM_THREAD_STATE_VALUE_WAITING:()=>LTe,MESSAGETYPEVALUES_RECEIVED:()=>wge,MESSAGETYPEVALUES_SENT:()=>xge,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>pge,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>_ge,MESSAGINGOPERATIONVALUES_PROCESS:()=>Ege,MESSAGINGOPERATIONVALUES_RECEIVE:()=>gge,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>mSe,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>TSe,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>SSe,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>OSe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>RSe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>ASe,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>ISe,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>bSe,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>PSe,METRIC_JVM_CLASS_COUNT:()=>ySe,METRIC_JVM_CLASS_LOADED:()=>vSe,METRIC_JVM_CLASS_UNLOADED:()=>NSe,METRIC_JVM_CPU_COUNT:()=>CSe,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>MSe,METRIC_JVM_CPU_TIME:()=>LSe,METRIC_JVM_GC_DURATION:()=>DSe,METRIC_JVM_MEMORY_COMMITTED:()=>GSe,METRIC_JVM_MEMORY_LIMIT:()=>USe,METRIC_JVM_MEMORY_USED:()=>xSe,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>wSe,METRIC_JVM_THREAD_COUNT:()=>VSe,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>BSe,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>qSe,METRIC_KESTREL_CONNECTION_DURATION:()=>jSe,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>HSe,METRIC_KESTREL_QUEUED_REQUESTS:()=>FSe,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>kSe,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>WSe,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>YSe,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>KSe,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>XSe,MessageTypeValues:()=>Vge,MessagingDestinationKindValues:()=>fge,MessagingOperationValues:()=>hge,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>jfe,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>kfe,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>Bfe,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>Jfe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Hfe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>Ffe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>Zfe,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>Vfe,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Qfe,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>Wfe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Kfe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>$fe,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>Yfe,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Xfe,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>tge,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>zfe,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>oge,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>rge,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>nge,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>ege,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>qfe,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>Gfe,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Ufe,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>xfe,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Lfe,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Dfe,NETTRANSPORTVALUES_INPROC:()=>Nfe,NETTRANSPORTVALUES_IP:()=>Pfe,NETTRANSPORTVALUES_IP_TCP:()=>Ife,NETTRANSPORTVALUES_IP_UDP:()=>bfe,NETTRANSPORTVALUES_OTHER:()=>Cfe,NETTRANSPORTVALUES_PIPE:()=>vfe,NETTRANSPORTVALUES_UNIX:()=>yfe,NETWORK_TRANSPORT_VALUE_PIPE:()=>qTe,NETWORK_TRANSPORT_VALUE_QUIC:()=>jTe,NETWORK_TRANSPORT_VALUE_TCP:()=>HTe,NETWORK_TRANSPORT_VALUE_UDP:()=>FTe,NETWORK_TRANSPORT_VALUE_UNIX:()=>kTe,NETWORK_TYPE_VALUE_IPV4:()=>YTe,NETWORK_TYPE_VALUE_IPV6:()=>KTe,NetHostConnectionSubtypeValues:()=>ige,NetHostConnectionTypeValues:()=>wfe,NetTransportValues:()=>Mfe,OSTYPEVALUES_AIX:()=>tme,OSTYPEVALUES_DARWIN:()=>Zhe,OSTYPEVALUES_DRAGONFLYBSD:()=>Qhe,OSTYPEVALUES_FREEBSD:()=>zhe,OSTYPEVALUES_HPUX:()=>eme,OSTYPEVALUES_LINUX:()=>Xhe,OSTYPEVALUES_NETBSD:()=>Jhe,OSTYPEVALUES_OPENBSD:()=>$he,OSTYPEVALUES_SOLARIS:()=>rme,OSTYPEVALUES_WINDOWS:()=>Khe,OSTYPEVALUES_Z_OS:()=>nme,OTEL_STATUS_CODE_VALUE_ERROR:()=>JTe,OTEL_STATUS_CODE_VALUE_OK:()=>$Te,OsTypeValues:()=>ome,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>vge,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>Ige,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>Tge,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>Dge,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>Rge,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>yge,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>Mge,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>Age,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>Oge,RPCGRPCSTATUSCODEVALUES_OK:()=>mge,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>Nge,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>bge,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>Pge,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>Gge,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>Lge,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>Cge,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>Sge,RpcGrpcStatusCodeValues:()=>Uge,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>dpe,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Ope,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>upe,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>ope,SEMATTRS_AWS_DYNAMODB_COUNT:()=>Ape,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>Epe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>fpe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>Ipe,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>ppe,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>ipe,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>lpe,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>gpe,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>cpe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>spe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>ape,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>Rpe,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>mpe,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>Tpe,SEMATTRS_AWS_DYNAMODB_SELECT:()=>_pe,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>hpe,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>npe,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>Spe,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>xle,SEMATTRS_CODE_FILEPATH:()=>qde,SEMATTRS_CODE_FUNCTION:()=>Vde,SEMATTRS_CODE_LINENO:()=>jde,SEMATTRS_CODE_NAMESPACE:()=>Bde,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>Kle,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>$le,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>Jle,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>Zle,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>Wle,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>Yle,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>zle,SEMATTRS_DB_CASSANDRA_TABLE:()=>Xle,SEMATTRS_DB_CONNECTION_STRING:()=>Vle,SEMATTRS_DB_HBASE_NAMESPACE:()=>Qle,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>qle,SEMATTRS_DB_MONGODB_COLLECTION:()=>tde,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>kle,SEMATTRS_DB_NAME:()=>jle,SEMATTRS_DB_OPERATION:()=>Fle,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>ede,SEMATTRS_DB_SQL_TABLE:()=>rde,SEMATTRS_DB_STATEMENT:()=>Hle,SEMATTRS_DB_SYSTEM:()=>wle,SEMATTRS_DB_USER:()=>Ble,SEMATTRS_ENDUSER_ID:()=>Dde,SEMATTRS_ENDUSER_ROLE:()=>Gde,SEMATTRS_ENDUSER_SCOPE:()=>Ude,SEMATTRS_EXCEPTION_ESCAPED:()=>sde,SEMATTRS_EXCEPTION_MESSAGE:()=>ode,SEMATTRS_EXCEPTION_STACKTRACE:()=>ide,SEMATTRS_EXCEPTION_TYPE:()=>nde,SEMATTRS_FAAS_COLDSTART:()=>gde,SEMATTRS_FAAS_CRON:()=>fde,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>cde,SEMATTRS_FAAS_DOCUMENT_NAME:()=>pde,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>lde,SEMATTRS_FAAS_DOCUMENT_TIME:()=>dde,SEMATTRS_FAAS_EXECUTION:()=>ude,SEMATTRS_FAAS_INVOKED_NAME:()=>Ede,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>hde,SEMATTRS_FAAS_INVOKED_REGION:()=>mde,SEMATTRS_FAAS_TIME:()=>_de,SEMATTRS_FAAS_TRIGGER:()=>ade,SEMATTRS_HTTP_CLIENT_IP:()=>rpe,SEMATTRS_HTTP_FLAVOR:()=>Xde,SEMATTRS_HTTP_HOST:()=>Wde,SEMATTRS_HTTP_METHOD:()=>Hde,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>zde,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>Jde,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>$de,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>Qde,SEMATTRS_HTTP_ROUTE:()=>tpe,SEMATTRS_HTTP_SCHEME:()=>Yde,SEMATTRS_HTTP_SERVER_NAME:()=>epe,SEMATTRS_HTTP_STATUS_CODE:()=>Kde,SEMATTRS_HTTP_TARGET:()=>kde,SEMATTRS_HTTP_URL:()=>Fde,SEMATTRS_HTTP_USER_AGENT:()=>Zde,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>e_e,SEMATTRS_MESSAGE_ID:()=>Qpe,SEMATTRS_MESSAGE_TYPE:()=>$pe,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>t_e,SEMATTRS_MESSAGING_CONSUMER_ID:()=>wpe,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>Dpe,SEMATTRS_MESSAGING_DESTINATION:()=>Ppe,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>ype,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>jpe,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>qpe,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>Bpe,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>Hpe,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>Fpe,SEMATTRS_MESSAGING_MESSAGE_ID:()=>Lpe,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>Upe,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>Gpe,SEMATTRS_MESSAGING_OPERATION:()=>xpe,SEMATTRS_MESSAGING_PROTOCOL:()=>Npe,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>Cpe,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Vpe,SEMATTRS_MESSAGING_SYSTEM:()=>bpe,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>vpe,SEMATTRS_MESSAGING_URL:()=>Mpe,SEMATTRS_NET_HOST_CARRIER_ICC:()=>Mde,SEMATTRS_NET_HOST_CARRIER_MCC:()=>Nde,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Cde,SEMATTRS_NET_HOST_CARRIER_NAME:()=>vde,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>yde,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>Pde,SEMATTRS_NET_HOST_IP:()=>Ode,SEMATTRS_NET_HOST_NAME:()=>bde,SEMATTRS_NET_HOST_PORT:()=>Ide,SEMATTRS_NET_PEER_IP:()=>Sde,SEMATTRS_NET_PEER_NAME:()=>Rde,SEMATTRS_NET_PEER_PORT:()=>Ade,SEMATTRS_NET_TRANSPORT:()=>Tde,SEMATTRS_PEER_SERVICE:()=>Lde,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>Kpe,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>zpe,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>Jpe,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>Zpe,SEMATTRS_RPC_JSONRPC_VERSION:()=>Xpe,SEMATTRS_RPC_METHOD:()=>Ype,SEMATTRS_RPC_SERVICE:()=>Wpe,SEMATTRS_RPC_SYSTEM:()=>kpe,SEMATTRS_THREAD_ID:()=>xde,SEMATTRS_THREAD_NAME:()=>wde,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>Wge,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>kge,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>Yge,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>Kge,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>Xge,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>Zge,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>zge,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>$ge,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>Jge,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>eEe,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>Qge,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>qge,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>Hge,SEMRESATTRS_CLOUD_PLATFORM:()=>Fge,SEMRESATTRS_CLOUD_PROVIDER:()=>Bge,SEMRESATTRS_CLOUD_REGION:()=>jge,SEMRESATTRS_CONTAINER_ID:()=>rEe,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>oEe,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>iEe,SEMRESATTRS_CONTAINER_NAME:()=>tEe,SEMRESATTRS_CONTAINER_RUNTIME:()=>nEe,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>sEe,SEMRESATTRS_DEVICE_ID:()=>aEe,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>uEe,SEMRESATTRS_DEVICE_MODEL_NAME:()=>cEe,SEMRESATTRS_FAAS_ID:()=>dEe,SEMRESATTRS_FAAS_INSTANCE:()=>_Ee,SEMRESATTRS_FAAS_MAX_MEMORY:()=>fEe,SEMRESATTRS_FAAS_NAME:()=>lEe,SEMRESATTRS_FAAS_VERSION:()=>pEe,SEMRESATTRS_HOST_ARCH:()=>mEe,SEMRESATTRS_HOST_ID:()=>gEe,SEMRESATTRS_HOST_IMAGE_ID:()=>SEe,SEMRESATTRS_HOST_IMAGE_NAME:()=>TEe,SEMRESATTRS_HOST_IMAGE_VERSION:()=>AEe,SEMRESATTRS_HOST_NAME:()=>EEe,SEMRESATTRS_HOST_TYPE:()=>hEe,SEMRESATTRS_K8S_CLUSTER_NAME:()=>REe,SEMRESATTRS_K8S_CONTAINER_NAME:()=>vEe,SEMRESATTRS_K8S_CRONJOB_NAME:()=>qEe,SEMRESATTRS_K8S_CRONJOB_UID:()=>BEe,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>xEe,SEMRESATTRS_K8S_DAEMONSET_UID:()=>UEe,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>LEe,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>MEe,SEMRESATTRS_K8S_JOB_NAME:()=>VEe,SEMRESATTRS_K8S_JOB_UID:()=>wEe,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>bEe,SEMRESATTRS_K8S_NODE_NAME:()=>OEe,SEMRESATTRS_K8S_NODE_UID:()=>IEe,SEMRESATTRS_K8S_POD_NAME:()=>yEe,SEMRESATTRS_K8S_POD_UID:()=>PEe,SEMRESATTRS_K8S_REPLICASET_NAME:()=>CEe,SEMRESATTRS_K8S_REPLICASET_UID:()=>NEe,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>GEe,SEMRESATTRS_K8S_STATEFULSET_UID:()=>DEe,SEMRESATTRS_OS_DESCRIPTION:()=>HEe,SEMRESATTRS_OS_NAME:()=>FEe,SEMRESATTRS_OS_TYPE:()=>jEe,SEMRESATTRS_OS_VERSION:()=>kEe,SEMRESATTRS_PROCESS_COMMAND:()=>XEe,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>zEe,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>ZEe,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>YEe,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>KEe,SEMRESATTRS_PROCESS_OWNER:()=>JEe,SEMRESATTRS_PROCESS_PID:()=>WEe,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>ehe,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>$Ee,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>QEe,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>nhe,SEMRESATTRS_SERVICE_NAME:()=>the,SEMRESATTRS_SERVICE_NAMESPACE:()=>rhe,SEMRESATTRS_SERVICE_VERSION:()=>ohe,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>uhe,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>she,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>ihe,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>ahe,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>dhe,SEMRESATTRS_WEBENGINE_NAME:()=>che,SEMRESATTRS_WEBENGINE_VERSION:()=>lhe,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>iSe,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>sSe,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>aSe,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>cSe,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>lSe,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>dSe,SemanticAttributes:()=>r_e,SemanticResourceAttributes:()=>phe,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>ime,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>sme,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>ame,TELEMETRYSDKLANGUAGEVALUES_GO:()=>ume,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>cme,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>lme,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>dme,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>pme,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>_me,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>fme,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>Rme,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>Ome,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>Ime,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>bme,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>Pme,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>yme,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>vme,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>Nme,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>Cme,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>Mme,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>Lme,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>Dme,TelemetrySdkLanguageValues:()=>gme});var Q=F(()=>{qH();pW();_W();fW()});var gW=c(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0});J_.SDK_INFO=void 0;var ZSe=VI(),Ul=(Q(),T($));J_.SDK_INFO={[Ul.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[Ul.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[Ul.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:Ul.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[Ul.SEMRESATTRS_TELEMETRY_SDK_VERSION]:ZSe.VERSION}});var EW=c($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0});$_.unrefTimer=void 0;function zSe(t){t.unref()}$_.unrefTimer=zSe});var mW=c(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.unrefTimer=We.SDK_INFO=We.otperformance=We.RandomIdGenerator=We.hexToBase64=We._globalThis=We.getEnv=We.getEnvWithoutDefaults=void 0;var hW=Hw();Object.defineProperty(We,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return hW.getEnvWithoutDefaults}});Object.defineProperty(We,"getEnv",{enumerable:!0,get:function(){return hW.getEnv}});var JSe=Fw();Object.defineProperty(We,"_globalThis",{enumerable:!0,get:function(){return JSe._globalThis}});var $Se=Ww();Object.defineProperty(We,"hexToBase64",{enumerable:!0,get:function(){return $Se.hexToBase64}});var QSe=Xw();Object.defineProperty(We,"RandomIdGenerator",{enumerable:!0,get:function(){return QSe.RandomIdGenerator}});var eAe=Zw();Object.defineProperty(We,"otperformance",{enumerable:!0,get:function(){return eAe.otperformance}});var tAe=gW();Object.defineProperty(We,"SDK_INFO",{enumerable:!0,get:function(){return tAe.SDK_INFO}});var rAe=EW();Object.defineProperty(We,"unrefTimer",{enumerable:!0,get:function(){return rAe.unrefTimer}})});var qI=c(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.unrefTimer=Ye.otperformance=Ye.hexToBase64=Ye.getEnvWithoutDefaults=Ye.getEnv=Ye._globalThis=Ye.SDK_INFO=Ye.RandomIdGenerator=void 0;var qo=mW();Object.defineProperty(Ye,"RandomIdGenerator",{enumerable:!0,get:function(){return qo.RandomIdGenerator}});Object.defineProperty(Ye,"SDK_INFO",{enumerable:!0,get:function(){return qo.SDK_INFO}});Object.defineProperty(Ye,"_globalThis",{enumerable:!0,get:function(){return qo._globalThis}});Object.defineProperty(Ye,"getEnv",{enumerable:!0,get:function(){return qo.getEnv}});Object.defineProperty(Ye,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return qo.getEnvWithoutDefaults}});Object.defineProperty(Ye,"hexToBase64",{enumerable:!0,get:function(){return qo.hexToBase64}});Object.defineProperty(Ye,"otperformance",{enumerable:!0,get:function(){return qo.otperformance}});Object.defineProperty(Ye,"unrefTimer",{enumerable:!0,get:function(){return qo.unrefTimer}})});var RW=c(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.addHrTimes=_e.isTimeInput=_e.isTimeInputHrTime=_e.hrTimeToMicroseconds=_e.hrTimeToMilliseconds=_e.hrTimeToNanoseconds=_e.hrTimeToTimeStamp=_e.hrTimeDuration=_e.timeInputToHrTime=_e.hrTime=_e.getTimeOrigin=_e.millisToHrTime=void 0;var jI=qI(),TW=9,nAe=6,oAe=Math.pow(10,nAe),Q_=Math.pow(10,TW);function xl(t){let e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*oAe);return[r,n]}_e.millisToHrTime=xl;function HI(){let t=jI.otperformance.timeOrigin;if(typeof t!="number"){let e=jI.otperformance;t=e.timing&&e.timing.fetchStart}return t}_e.getTimeOrigin=HI;function SW(t){let e=xl(HI()),r=xl(typeof t=="number"?t:jI.otperformance.now());return AW(e,r)}_e.hrTime=SW;function iAe(t){if(FI(t))return t;if(typeof t=="number")return t<HI()?SW(t):xl(t);if(t instanceof Date)return xl(t.getTime());throw TypeError("Invalid input type")}_e.timeInputToHrTime=iAe;function sAe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=Q_),[r,n]}_e.hrTimeDuration=sAe;function aAe(t){let e=TW,r=`${"0".repeat(e)}${t[1]}Z`,n=r.substr(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",n)}_e.hrTimeToTimeStamp=aAe;function uAe(t){return t[0]*Q_+t[1]}_e.hrTimeToNanoseconds=uAe;function cAe(t){return t[0]*1e3+t[1]/1e6}_e.hrTimeToMilliseconds=cAe;function lAe(t){return t[0]*1e6+t[1]/1e3}_e.hrTimeToMicroseconds=lAe;function FI(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}_e.isTimeInputHrTime=FI;function dAe(t){return FI(t)||typeof t=="number"||t instanceof Date}_e.isTimeInput=dAe;function AW(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=Q_&&(r[1]-=Q_,r[0]+=1),r}_e.addHrTimes=AW});var OW=c(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.ExportResultCode=void 0;var pAe;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(pAe=wl.ExportResultCode||(wl.ExportResultCode={}))});var bW=c(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.CompositePropagator=void 0;var IW=(y(),T(P)),kI=class{constructor(e={}){var r;this._propagators=(r=e.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,o)=>n.concat(o),[])))}inject(e,r,n){for(let o of this._propagators)try{o.inject(e,r,n)}catch(i){IW.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${i.message}`)}}extract(e,r,n){return this._propagators.reduce((o,i)=>{try{return i.extract(o,r,n)}catch(s){IW.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${s.message}`)}return o},e)}fields(){return this._fields.slice()}};ef.CompositePropagator=kI});var PW=c(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.validateValue=Ia.validateKey=void 0;var WI="[_0-9a-z-*/]",_Ae=`[a-z]${WI}{0,255}`,fAe=`[a-z0-9]${WI}{0,240}@[a-z]${WI}{0,13}`,gAe=new RegExp(`^(?:${_Ae}|${fAe})$`),EAe=/^[ -~]{0,255}[!-~]$/,hAe=/,|=/;function mAe(t){return gAe.test(t)}Ia.validateKey=mAe;function TAe(t){return EAe.test(t)&&!hAe.test(t)}Ia.validateValue=TAe});var KI=c(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.TraceState=void 0;var yW=PW(),vW=32,SAe=512,NW=",",CW="=",YI=class t{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,r){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+CW+this.get(r)),e),[]).join(NW)}_parse(e){e.length>SAe||(this._internalState=e.split(NW).reverse().reduce((r,n)=>{let o=n.trim(),i=o.indexOf(CW);if(i!==-1){let s=o.slice(0,i),a=o.slice(i+1,n.length);(0,yW.validateKey)(s)&&(0,yW.validateValue)(a)&&r.set(s,a)}return r},new Map),this._internalState.size>vW&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,vW))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};tf.TraceState=YI});var LW=c(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.W3CTraceContextPropagator=Tt.parseTraceParent=Tt.TRACE_STATE_HEADER=Tt.TRACE_PARENT_HEADER=void 0;var rf=(y(),T(P)),AAe=Dl(),RAe=KI();Tt.TRACE_PARENT_HEADER="traceparent";Tt.TRACE_STATE_HEADER="tracestate";var OAe="00",IAe="(?!ff)[\\da-f]{2}",bAe="(?![0]{32})[\\da-f]{32}",PAe="(?![0]{16})[\\da-f]{16}",yAe="[\\da-f]{2}",vAe=new RegExp(`^\\s?(${IAe})-(${bAe})-(${PAe})-(${yAe})(-.*)?\\s?$`);function MW(t){let e=vAe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}Tt.parseTraceParent=MW;var XI=class{inject(e,r,n){let o=rf.trace.getSpanContext(e);if(!o||(0,AAe.isTracingSuppressed)(e)||!(0,rf.isSpanContextValid)(o))return;let i=`${OAe}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||rf.TraceFlags.NONE).toString(16)}`;n.set(r,Tt.TRACE_PARENT_HEADER,i),o.traceState&&n.set(r,Tt.TRACE_STATE_HEADER,o.traceState.serialize())}extract(e,r,n){let o=n.get(r,Tt.TRACE_PARENT_HEADER);if(!o)return e;let i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return e;let s=MW(i);if(!s)return e;s.isRemote=!0;let a=n.get(r,Tt.TRACE_STATE_HEADER);if(a){let u=Array.isArray(a)?a.join(","):a;s.traceState=new RAe.TraceState(typeof u=="string"?u:void 0)}return rf.trace.setSpanContext(e,s)}fields(){return[Tt.TRACE_PARENT_HEADER,Tt.TRACE_STATE_HEADER]}};Tt.W3CTraceContextPropagator=XI});var DW=c(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.getRPCMetadata=Fr.deleteRPCMetadata=Fr.setRPCMetadata=Fr.RPCType=void 0;var NAe=(y(),T(P)),ZI=(0,NAe.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),CAe;(function(t){t.HTTP="http"})(CAe=Fr.RPCType||(Fr.RPCType={}));function MAe(t,e){return t.setValue(ZI,e)}Fr.setRPCMetadata=MAe;function LAe(t){return t.deleteValue(ZI)}Fr.deleteRPCMetadata=LAe;function DAe(t){return t.getValue(ZI)}Fr.getRPCMetadata=DAe});var JI=c(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.AlwaysOffSampler=void 0;var GAe=(y(),T(P)),zI=class{shouldSample(){return{decision:GAe.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};nf.AlwaysOffSampler=zI});var QI=c(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.AlwaysOnSampler=void 0;var UAe=(y(),T(P)),$I=class{shouldSample(){return{decision:UAe.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};of.AlwaysOnSampler=$I});var UW=c(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.ParentBasedSampler=void 0;var sf=(y(),T(P)),xAe=LI(),GW=JI(),eb=QI(),tb=class{constructor(e){var r,n,o,i;this._root=e.root,this._root||((0,xAe.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new eb.AlwaysOnSampler),this._remoteParentSampled=(r=e.remoteParentSampled)!==null&&r!==void 0?r:new eb.AlwaysOnSampler,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)!==null&&n!==void 0?n:new GW.AlwaysOffSampler,this._localParentSampled=(o=e.localParentSampled)!==null&&o!==void 0?o:new eb.AlwaysOnSampler,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new GW.AlwaysOffSampler}shouldSample(e,r,n,o,i,s){let a=sf.trace.getSpanContext(e);return!a||!(0,sf.isSpanContextValid)(a)?this._root.shouldSample(e,r,n,o,i,s):a.isRemote?a.traceFlags&sf.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,o,i,s):this._remoteParentNotSampled.shouldSample(e,r,n,o,i,s):a.traceFlags&sf.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,r,n,o,i,s):this._localParentNotSampled.shouldSample(e,r,n,o,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};af.ParentBasedSampler=tb});var xW=c(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.TraceIdRatioBasedSampler=void 0;var rb=(y(),T(P)),nb=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:(0,rb.isValidTraceId)(r)&&this._accumulate(r)<this._upperBound?rb.SamplingDecision.RECORD_AND_SAMPLED:rb.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){let o=n*8,i=parseInt(e.slice(o,o+8),16);r=(r^i)>>>0}return r}};uf.TraceIdRatioBasedSampler=nb});var jW=c(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.isPlainObject=void 0;var wAe="[object Object]",VAe="[object Null]",BAe="[object Undefined]",qAe=Function.prototype,wW=qAe.toString,jAe=wW.call(Object),HAe=FAe(Object.getPrototypeOf,Object),VW=Object.prototype,BW=VW.hasOwnProperty,fs=Symbol?Symbol.toStringTag:void 0,qW=VW.toString;function FAe(t,e){return function(r){return t(e(r))}}function kAe(t){if(!WAe(t)||YAe(t)!==wAe)return!1;let e=HAe(t);if(e===null)return!0;let r=BW.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&wW.call(r)===jAe}cf.isPlainObject=kAe;function WAe(t){return t!=null&&typeof t=="object"}function YAe(t){return t==null?t===void 0?BAe:VAe:fs&&fs in Object(t)?KAe(t):XAe(t)}function KAe(t){let e=BW.call(t,fs),r=t[fs],n=!1;try{t[fs]=void 0,n=!0}catch{}let o=qW.call(t);return n&&(e?t[fs]=r:delete t[fs]),o}function XAe(t){return qW.call(t)}});var YW=c(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.merge=void 0;var HW=jW(),ZAe=20;function zAe(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=kW(e,t.shift(),0,r);return e}pf.merge=zAe;function ob(t){return df(t)?t.slice():t}function kW(t,e,r=0,n){let o;if(!(r>ZAe)){if(r++,lf(t)||lf(e)||WW(e))o=ob(e);else if(df(t)){if(o=t.slice(),df(e))for(let i=0,s=e.length;i<s;i++)o.push(ob(e[i]));else if(Vl(e)){let i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){let u=i[s];o[u]=ob(e[u])}}}else if(Vl(t))if(Vl(e)){if(!JAe(t,e))return e;o=Object.assign({},t);let i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){let u=i[s],l=e[u];if(lf(l))typeof l>"u"?delete o[u]:o[u]=l;else{let d=o[u],p=l;if(FW(t,u,n)||FW(e,u,n))delete o[u];else{if(Vl(d)&&Vl(p)){let _=n.get(d)||[],f=n.get(p)||[];_.push({obj:t,key:u}),f.push({obj:e,key:u}),n.set(d,_),n.set(p,f)}o[u]=kW(o[u],l,r,n)}}}}else o=e;return o}}function FW(t,e,r){let n=r.get(t[e])||[];for(let o=0,i=n.length;o<i;o++){let s=n[o];if(s.key===e&&s.obj===t)return!0}return!1}function df(t){return Array.isArray(t)}function WW(t){return typeof t=="function"}function Vl(t){return!lf(t)&&!df(t)&&!WW(t)&&typeof t=="object"}function lf(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function JAe(t,e){return!(!(0,HW.isPlainObject)(t)||!(0,HW.isPlainObject)(e))}});var KW=c(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.callWithTimeout=ba.TimeoutError=void 0;var _f=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};ba.TimeoutError=_f;function $Ae(t,e){let r,n=new Promise(function(i,s){r=setTimeout(function(){s(new _f("Operation timed out."))},e)});return Promise.race([t,n]).then(o=>(clearTimeout(r),o),o=>{throw clearTimeout(r),o})}ba.callWithTimeout=$Ae});var ZW=c(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.isUrlIgnored=Pa.urlMatches=void 0;function XW(t,e){return typeof e=="string"?t===e:!!t.match(e)}Pa.urlMatches=XW;function QAe(t,e){if(!e)return!1;for(let r of e)if(XW(t,r))return!0;return!1}Pa.isUrlIgnored=QAe});var zW=c(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.isWrapped=void 0;function eRe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}ff.isWrapped=eRe});var JW=c(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.Deferred=void 0;var ib=class{constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};gf.Deferred=ib});var $W=c(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.BindOnceFuture=void 0;var tRe=JW(),sb=class{constructor(e,r){this._callback=e,this._that=r,this._isCalled=!1,this._deferred=new tRe.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};Ef.BindOnceFuture=sb});var eY=c(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf._export=void 0;var QW=(y(),T(P)),rRe=Dl();function nRe(t,e){return new Promise(r=>{QW.context.with((0,rRe.suppressTracing)(QW.context.active()),()=>{t.export(e,n=>{r(n)})})})}hf._export=nRe});var Af=c(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=O.DEFAULT_ATTRIBUTE_COUNT_LIMIT=O.TraceState=O.unsuppressTracing=O.suppressTracing=O.isTracingSuppressed=O.TraceIdRatioBasedSampler=O.ParentBasedSampler=O.AlwaysOnSampler=O.AlwaysOffSampler=O.setRPCMetadata=O.getRPCMetadata=O.deleteRPCMetadata=O.RPCType=O.parseTraceParent=O.W3CTraceContextPropagator=O.TRACE_STATE_HEADER=O.TRACE_PARENT_HEADER=O.CompositePropagator=O.unrefTimer=O.otperformance=O.hexToBase64=O.getEnvWithoutDefaults=O.getEnv=O._globalThis=O.SDK_INFO=O.RandomIdGenerator=O.baggageUtils=O.ExportResultCode=O.hexToBinary=O.timeInputToHrTime=O.millisToHrTime=O.isTimeInputHrTime=O.isTimeInput=O.hrTimeToTimeStamp=O.hrTimeToNanoseconds=O.hrTimeToMilliseconds=O.hrTimeToMicroseconds=O.hrTimeDuration=O.hrTime=O.getTimeOrigin=O.addHrTimes=O.loggingErrorHandler=O.setGlobalErrorHandler=O.globalErrorHandler=O.sanitizeAttributes=O.isAttributeValue=O.isAttributeKey=O.AnchoredClock=O.W3CBaggagePropagator=void 0;O.internal=O.VERSION=O.BindOnceFuture=O.isWrapped=O.urlMatches=O.isUrlIgnored=O.callWithTimeout=O.TimeoutError=O.TracesSamplerValues=O.merge=O.parseEnvironment=O.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=O.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=O.DEFAULT_ENVIRONMENT=void 0;var oRe=Gw();Object.defineProperty(O,"W3CBaggagePropagator",{enumerable:!0,get:function(){return oRe.W3CBaggagePropagator}});var iRe=Uw();Object.defineProperty(O,"AnchoredClock",{enumerable:!0,get:function(){return iRe.AnchoredClock}});var ab=qw();Object.defineProperty(O,"isAttributeKey",{enumerable:!0,get:function(){return ab.isAttributeKey}});Object.defineProperty(O,"isAttributeValue",{enumerable:!0,get:function(){return ab.isAttributeValue}});Object.defineProperty(O,"sanitizeAttributes",{enumerable:!0,get:function(){return ab.sanitizeAttributes}});var tY=LI();Object.defineProperty(O,"globalErrorHandler",{enumerable:!0,get:function(){return tY.globalErrorHandler}});Object.defineProperty(O,"setGlobalErrorHandler",{enumerable:!0,get:function(){return tY.setGlobalErrorHandler}});var sRe=MI();Object.defineProperty(O,"loggingErrorHandler",{enumerable:!0,get:function(){return sRe.loggingErrorHandler}});var hr=RW();Object.defineProperty(O,"addHrTimes",{enumerable:!0,get:function(){return hr.addHrTimes}});Object.defineProperty(O,"getTimeOrigin",{enumerable:!0,get:function(){return hr.getTimeOrigin}});Object.defineProperty(O,"hrTime",{enumerable:!0,get:function(){return hr.hrTime}});Object.defineProperty(O,"hrTimeDuration",{enumerable:!0,get:function(){return hr.hrTimeDuration}});Object.defineProperty(O,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return hr.hrTimeToMicroseconds}});Object.defineProperty(O,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return hr.hrTimeToMilliseconds}});Object.defineProperty(O,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return hr.hrTimeToNanoseconds}});Object.defineProperty(O,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return hr.hrTimeToTimeStamp}});Object.defineProperty(O,"isTimeInput",{enumerable:!0,get:function(){return hr.isTimeInput}});Object.defineProperty(O,"isTimeInputHrTime",{enumerable:!0,get:function(){return hr.isTimeInputHrTime}});Object.defineProperty(O,"millisToHrTime",{enumerable:!0,get:function(){return hr.millisToHrTime}});Object.defineProperty(O,"timeInputToHrTime",{enumerable:!0,get:function(){return hr.timeInputToHrTime}});var aRe=xI();Object.defineProperty(O,"hexToBinary",{enumerable:!0,get:function(){return aRe.hexToBinary}});var uRe=OW();Object.defineProperty(O,"ExportResultCode",{enumerable:!0,get:function(){return uRe.ExportResultCode}});var mf=PI();O.baggageUtils={getKeyPairs:mf.getKeyPairs,serializeKeyPairs:mf.serializeKeyPairs,parseKeyPairsIntoRecord:mf.parseKeyPairsIntoRecord,parsePairKeyValue:mf.parsePairKeyValue};var jo=qI();Object.defineProperty(O,"RandomIdGenerator",{enumerable:!0,get:function(){return jo.RandomIdGenerator}});Object.defineProperty(O,"SDK_INFO",{enumerable:!0,get:function(){return jo.SDK_INFO}});Object.defineProperty(O,"_globalThis",{enumerable:!0,get:function(){return jo._globalThis}});Object.defineProperty(O,"getEnv",{enumerable:!0,get:function(){return jo.getEnv}});Object.defineProperty(O,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return jo.getEnvWithoutDefaults}});Object.defineProperty(O,"hexToBase64",{enumerable:!0,get:function(){return jo.hexToBase64}});Object.defineProperty(O,"otperformance",{enumerable:!0,get:function(){return jo.otperformance}});Object.defineProperty(O,"unrefTimer",{enumerable:!0,get:function(){return jo.unrefTimer}});var cRe=bW();Object.defineProperty(O,"CompositePropagator",{enumerable:!0,get:function(){return cRe.CompositePropagator}});var Tf=LW();Object.defineProperty(O,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return Tf.TRACE_PARENT_HEADER}});Object.defineProperty(O,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return Tf.TRACE_STATE_HEADER}});Object.defineProperty(O,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return Tf.W3CTraceContextPropagator}});Object.defineProperty(O,"parseTraceParent",{enumerable:!0,get:function(){return Tf.parseTraceParent}});var Sf=DW();Object.defineProperty(O,"RPCType",{enumerable:!0,get:function(){return Sf.RPCType}});Object.defineProperty(O,"deleteRPCMetadata",{enumerable:!0,get:function(){return Sf.deleteRPCMetadata}});Object.defineProperty(O,"getRPCMetadata",{enumerable:!0,get:function(){return Sf.getRPCMetadata}});Object.defineProperty(O,"setRPCMetadata",{enumerable:!0,get:function(){return Sf.setRPCMetadata}});var lRe=JI();Object.defineProperty(O,"AlwaysOffSampler",{enumerable:!0,get:function(){return lRe.AlwaysOffSampler}});var dRe=QI();Object.defineProperty(O,"AlwaysOnSampler",{enumerable:!0,get:function(){return dRe.AlwaysOnSampler}});var pRe=UW();Object.defineProperty(O,"ParentBasedSampler",{enumerable:!0,get:function(){return pRe.ParentBasedSampler}});var _Re=xW();Object.defineProperty(O,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return _Re.TraceIdRatioBasedSampler}});var ub=Dl();Object.defineProperty(O,"isTracingSuppressed",{enumerable:!0,get:function(){return ub.isTracingSuppressed}});Object.defineProperty(O,"suppressTracing",{enumerable:!0,get:function(){return ub.suppressTracing}});Object.defineProperty(O,"unsuppressTracing",{enumerable:!0,get:function(){return ub.unsuppressTracing}});var fRe=KI();Object.defineProperty(O,"TraceState",{enumerable:!0,get:function(){return fRe.TraceState}});var ya=GI();Object.defineProperty(O,"DEFAULT_ATTRIBUTE_COUNT_LIMIT",{enumerable:!0,get:function(){return ya.DEFAULT_ATTRIBUTE_COUNT_LIMIT}});Object.defineProperty(O,"DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT",{enumerable:!0,get:function(){return ya.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}});Object.defineProperty(O,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return ya.DEFAULT_ENVIRONMENT}});Object.defineProperty(O,"DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT",{enumerable:!0,get:function(){return ya.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}});Object.defineProperty(O,"DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT",{enumerable:!0,get:function(){return ya.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}});Object.defineProperty(O,"parseEnvironment",{enumerable:!0,get:function(){return ya.parseEnvironment}});var gRe=YW();Object.defineProperty(O,"merge",{enumerable:!0,get:function(){return gRe.merge}});var ERe=DI();Object.defineProperty(O,"TracesSamplerValues",{enumerable:!0,get:function(){return ERe.TracesSamplerValues}});var rY=KW();Object.defineProperty(O,"TimeoutError",{enumerable:!0,get:function(){return rY.TimeoutError}});Object.defineProperty(O,"callWithTimeout",{enumerable:!0,get:function(){return rY.callWithTimeout}});var nY=ZW();Object.defineProperty(O,"isUrlIgnored",{enumerable:!0,get:function(){return nY.isUrlIgnored}});Object.defineProperty(O,"urlMatches",{enumerable:!0,get:function(){return nY.urlMatches}});var hRe=zW();Object.defineProperty(O,"isWrapped",{enumerable:!0,get:function(){return hRe.isWrapped}});var mRe=$W();Object.defineProperty(O,"BindOnceFuture",{enumerable:!0,get:function(){return mRe.BindOnceFuture}});var TRe=VI();Object.defineProperty(O,"VERSION",{enumerable:!0,get:function(){return TRe.VERSION}});var SRe=eY();O.internal={_export:SRe._export}});var Bl=c((v8e,oY)=>{var ARe="2.0.0",RRe=Number.MAX_SAFE_INTEGER||9007199254740991,ORe=16,IRe=250,bRe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];oY.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ORe,MAX_SAFE_BUILD_LENGTH:IRe,MAX_SAFE_INTEGER:RRe,RELEASE_TYPES:bRe,SEMVER_SPEC_VERSION:ARe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ql=c((N8e,iY)=>{var PRe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};iY.exports=PRe});var va=c((zn,sY)=>{var{MAX_SAFE_COMPONENT_LENGTH:cb,MAX_SAFE_BUILD_LENGTH:yRe,MAX_LENGTH:vRe}=Bl(),NRe=ql();zn=sY.exports={};var CRe=zn.re=[],MRe=zn.safeRe=[],B=zn.src=[],q=zn.t={},LRe=0,lb="[a-zA-Z0-9-]",DRe=[["\\s",1],["\\d",vRe],[lb,yRe]],GRe=t=>{for(let[e,r]of DRe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},X=(t,e,r)=>{let n=GRe(e),o=LRe++;NRe(t,o,e),q[t]=o,B[o]=e,CRe[o]=new RegExp(e,r?"g":void 0),MRe[o]=new RegExp(n,r?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","\\d+");X("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${lb}*`);X("MAINVERSION",`(${B[q.NUMERICIDENTIFIER]})\\.(${B[q.NUMERICIDENTIFIER]})\\.(${B[q.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${B[q.NUMERICIDENTIFIERLOOSE]})\\.(${B[q.NUMERICIDENTIFIERLOOSE]})\\.(${B[q.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${B[q.NUMERICIDENTIFIER]}|${B[q.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${B[q.NUMERICIDENTIFIERLOOSE]}|${B[q.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${B[q.PRERELEASEIDENTIFIER]}(?:\\.${B[q.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${B[q.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${B[q.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER",`${lb}+`);X("BUILD",`(?:\\+(${B[q.BUILDIDENTIFIER]}(?:\\.${B[q.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${B[q.MAINVERSION]}${B[q.PRERELEASE]}?${B[q.BUILD]}?`);X("FULL",`^${B[q.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${B[q.MAINVERSIONLOOSE]}${B[q.PRERELEASELOOSE]}?${B[q.BUILD]}?`);X("LOOSE",`^${B[q.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${B[q.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${B[q.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${B[q.XRANGEIDENTIFIER]})(?:\\.(${B[q.XRANGEIDENTIFIER]})(?:\\.(${B[q.XRANGEIDENTIFIER]})(?:${B[q.PRERELEASE]})?${B[q.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${B[q.XRANGEIDENTIFIERLOOSE]})(?:\\.(${B[q.XRANGEIDENTIFIERLOOSE]})(?:\\.(${B[q.XRANGEIDENTIFIERLOOSE]})(?:${B[q.PRERELEASELOOSE]})?${B[q.BUILD]}?)?)?`);X("XRANGE",`^${B[q.GTLT]}\\s*${B[q.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${B[q.GTLT]}\\s*${B[q.XRANGEPLAINLOOSE]}$`);X("COERCEPLAIN",`(^|[^\\d])(\\d{1,${cb}})(?:\\.(\\d{1,${cb}}))?(?:\\.(\\d{1,${cb}}))?`);X("COERCE",`${B[q.COERCEPLAIN]}(?:$|[^\\d])`);X("COERCEFULL",B[q.COERCEPLAIN]+`(?:${B[q.PRERELEASE]})?(?:${B[q.BUILD]})?(?:$|[^\\d])`);X("COERCERTL",B[q.COERCE],!0);X("COERCERTLFULL",B[q.COERCEFULL],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${B[q.LONETILDE]}\\s+`,!0);zn.tildeTrimReplace="$1~";X("TILDE",`^${B[q.LONETILDE]}${B[q.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${B[q.LONETILDE]}${B[q.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${B[q.LONECARET]}\\s+`,!0);zn.caretTrimReplace="$1^";X("CARET",`^${B[q.LONECARET]}${B[q.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${B[q.LONECARET]}${B[q.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${B[q.GTLT]}\\s*(${B[q.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${B[q.GTLT]}\\s*(${B[q.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${B[q.GTLT]}\\s*(${B[q.LOOSEPLAIN]}|${B[q.XRANGEPLAIN]})`,!0);zn.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${B[q.XRANGEPLAIN]})\\s+-\\s+(${B[q.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${B[q.XRANGEPLAINLOOSE]})\\s+-\\s+(${B[q.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Rf=c((C8e,aY)=>{var URe=Object.freeze({loose:!0}),xRe=Object.freeze({}),wRe=t=>t?typeof t!="object"?URe:t:xRe;aY.exports=wRe});var db=c((M8e,lY)=>{var uY=/^[0-9]+$/,cY=(t,e)=>{let r=uY.test(t),n=uY.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},VRe=(t,e)=>cY(e,t);lY.exports={compareIdentifiers:cY,rcompareIdentifiers:VRe}});var St=c((L8e,fY)=>{var Of=ql(),{MAX_LENGTH:dY,MAX_SAFE_INTEGER:If}=Bl(),{safeRe:pY,t:_Y}=va(),BRe=Rf(),{compareIdentifiers:Na}=db(),pb=class t{constructor(e,r){if(r=BRe(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>dY)throw new TypeError(`version is longer than ${dY} characters`);Of("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?pY[_Y.LOOSE]:pY[_Y.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>If||this.major<0)throw new TypeError("Invalid major version");if(this.minor>If||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>If||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let i=+o;if(i>=0&&i<If)return i}return o}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Of("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),Na(this.major,e.major)||Na(this.minor,e.minor)||Na(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],o=e.prerelease[r];if(Of("prerelease compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return Na(n,o)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],o=e.build[r];if(Of("build compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return Na(n,o)}while(++r)}inc(e,r,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(r){let i=[r,o];n===!1&&(i=[r]),Na(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};fY.exports=pb});var gs=c((D8e,EY)=>{var gY=St(),qRe=(t,e,r=!1)=>{if(t instanceof gY)return t;try{return new gY(t,e)}catch(n){if(!r)return null;throw n}};EY.exports=qRe});var mY=c((G8e,hY)=>{var jRe=gs(),HRe=(t,e)=>{let r=jRe(t,e);return r?r.version:null};hY.exports=HRe});var SY=c((U8e,TY)=>{var FRe=gs(),kRe=(t,e)=>{let r=FRe(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};TY.exports=kRe});var OY=c((x8e,RY)=>{var AY=St(),WRe=(t,e,r,n,o)=>{typeof r=="string"&&(o=n,n=r,r=void 0);try{return new AY(t instanceof AY?t.version:t,r).inc(e,n,o).version}catch{return null}};RY.exports=WRe});var PY=c((w8e,bY)=>{var IY=gs(),YRe=(t,e)=>{let r=IY(t,null,!0),n=IY(e,null,!0),o=r.compare(n);if(o===0)return null;let i=o>0,s=i?r:n,a=i?n:r,u=!!s.prerelease.length;if(!!a.prerelease.length&&!u)return!a.patch&&!a.minor?"major":s.patch?"patch":s.minor?"minor":"major";let d=u?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"};bY.exports=YRe});var vY=c((V8e,yY)=>{var KRe=St(),XRe=(t,e)=>new KRe(t,e).major;yY.exports=XRe});var CY=c((B8e,NY)=>{var ZRe=St(),zRe=(t,e)=>new ZRe(t,e).minor;NY.exports=zRe});var LY=c((q8e,MY)=>{var JRe=St(),$Re=(t,e)=>new JRe(t,e).patch;MY.exports=$Re});var GY=c((j8e,DY)=>{var QRe=gs(),eOe=(t,e)=>{let r=QRe(t,e);return r&&r.prerelease.length?r.prerelease:null};DY.exports=eOe});var mr=c((H8e,xY)=>{var UY=St(),tOe=(t,e,r)=>new UY(t,r).compare(new UY(e,r));xY.exports=tOe});var VY=c((F8e,wY)=>{var rOe=mr(),nOe=(t,e,r)=>rOe(e,t,r);wY.exports=nOe});var qY=c((k8e,BY)=>{var oOe=mr(),iOe=(t,e)=>oOe(t,e,!0);BY.exports=iOe});var bf=c((W8e,HY)=>{var jY=St(),sOe=(t,e,r)=>{let n=new jY(t,r),o=new jY(e,r);return n.compare(o)||n.compareBuild(o)};HY.exports=sOe});var kY=c((Y8e,FY)=>{var aOe=bf(),uOe=(t,e)=>t.sort((r,n)=>aOe(r,n,e));FY.exports=uOe});var YY=c((K8e,WY)=>{var cOe=bf(),lOe=(t,e)=>t.sort((r,n)=>cOe(n,r,e));WY.exports=lOe});var jl=c((X8e,KY)=>{var dOe=mr(),pOe=(t,e,r)=>dOe(t,e,r)>0;KY.exports=pOe});var Pf=c((Z8e,XY)=>{var _Oe=mr(),fOe=(t,e,r)=>_Oe(t,e,r)<0;XY.exports=fOe});var _b=c((z8e,ZY)=>{var gOe=mr(),EOe=(t,e,r)=>gOe(t,e,r)===0;ZY.exports=EOe});var fb=c((J8e,zY)=>{var hOe=mr(),mOe=(t,e,r)=>hOe(t,e,r)!==0;zY.exports=mOe});var yf=c(($8e,JY)=>{var TOe=mr(),SOe=(t,e,r)=>TOe(t,e,r)>=0;JY.exports=SOe});var vf=c((Q8e,$Y)=>{var AOe=mr(),ROe=(t,e,r)=>AOe(t,e,r)<=0;$Y.exports=ROe});var gb=c((e7e,QY)=>{var OOe=_b(),IOe=fb(),bOe=jl(),POe=yf(),yOe=Pf(),vOe=vf(),NOe=(t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return OOe(t,r,n);case"!=":return IOe(t,r,n);case">":return bOe(t,r,n);case">=":return POe(t,r,n);case"<":return yOe(t,r,n);case"<=":return vOe(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};QY.exports=NOe});var tK=c((t7e,eK)=>{var COe=St(),MOe=gs(),{safeRe:Nf,t:Cf}=va(),LOe=(t,e)=>{if(t instanceof COe)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?Nf[Cf.COERCEFULL]:Nf[Cf.COERCE]);else{let u=e.includePrerelease?Nf[Cf.COERCERTLFULL]:Nf[Cf.COERCERTL],l;for(;(l=u.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(r===null)return null;let n=r[2],o=r[3]||"0",i=r[4]||"0",s=e.includePrerelease&&r[5]?`-${r[5]}`:"",a=e.includePrerelease&&r[6]?`+${r[6]}`:"";return MOe(`${n}.${o}.${i}${s}${a}`,e)};eK.exports=LOe});var nK=c((r7e,rK)=>{var Eb=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(e,r)}return this}};rK.exports=Eb});var Tr=c((n7e,aK)=>{var DOe=/\s+/g,hb=class t{constructor(e,r){if(r=UOe(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof mb)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(DOe," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(o=>!iK(o[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&HOe(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&qOe)|(this.options.loose&&jOe))+":"+e,o=oK.get(n);if(o)return o;let i=this.options.loose,s=i?Jt[Ht.HYPHENRANGELOOSE]:Jt[Ht.HYPHENRANGE];e=e.replace(s,$Oe(this.options.includePrerelease)),he("hyphen replace",e),e=e.replace(Jt[Ht.COMPARATORTRIM],wOe),he("comparator trim",e),e=e.replace(Jt[Ht.TILDETRIM],VOe),he("tilde trim",e),e=e.replace(Jt[Ht.CARETTRIM],BOe),he("caret trim",e);let a=e.split(" ").map(p=>FOe(p,this.options)).join(" ").split(/\s+/).map(p=>JOe(p,this.options));i&&(a=a.filter(p=>(he("loose invalid filter",p,this.options),!!p.match(Jt[Ht.COMPARATORLOOSE])))),he("range list",a);let u=new Map,l=a.map(p=>new mb(p,this.options));for(let p of l){if(iK(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let d=[...u.values()];return oK.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>sK(n,r)&&e.set.some(o=>sK(o,r)&&n.every(i=>o.every(s=>i.intersects(s,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new xOe(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(QOe(this.set[r],e,this.options))return!0;return!1}};aK.exports=hb;var GOe=nK(),oK=new GOe,UOe=Rf(),mb=Hl(),he=ql(),xOe=St(),{safeRe:Jt,t:Ht,comparatorTrimReplace:wOe,tildeTrimReplace:VOe,caretTrimReplace:BOe}=va(),{FLAG_INCLUDE_PRERELEASE:qOe,FLAG_LOOSE:jOe}=Bl(),iK=t=>t.value==="<0.0.0-0",HOe=t=>t.value==="",sK=(t,e)=>{let r=!0,n=t.slice(),o=n.pop();for(;r&&n.length;)r=n.every(i=>o.intersects(i,e)),o=n.pop();return r},FOe=(t,e)=>(he("comp",t,e),t=YOe(t,e),he("caret",t),t=kOe(t,e),he("tildes",t),t=XOe(t,e),he("xrange",t),t=zOe(t,e),he("stars",t),t),Ft=t=>!t||t.toLowerCase()==="x"||t==="*",kOe=(t,e)=>t.trim().split(/\s+/).map(r=>WOe(r,e)).join(" "),WOe=(t,e)=>{let r=e.loose?Jt[Ht.TILDELOOSE]:Jt[Ht.TILDE];return t.replace(r,(n,o,i,s,a)=>{he("tilde",t,n,o,i,s,a);let u;return Ft(o)?u="":Ft(i)?u=`>=${o}.0.0 <${+o+1}.0.0-0`:Ft(s)?u=`>=${o}.${i}.0 <${o}.${+i+1}.0-0`:a?(he("replaceTilde pr",a),u=`>=${o}.${i}.${s}-${a} <${o}.${+i+1}.0-0`):u=`>=${o}.${i}.${s} <${o}.${+i+1}.0-0`,he("tilde return",u),u})},YOe=(t,e)=>t.trim().split(/\s+/).map(r=>KOe(r,e)).join(" "),KOe=(t,e)=>{he("caret",t,e);let r=e.loose?Jt[Ht.CARETLOOSE]:Jt[Ht.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(o,i,s,a,u)=>{he("caret",t,o,i,s,a,u);let l;return Ft(i)?l="":Ft(s)?l=`>=${i}.0.0${n} <${+i+1}.0.0-0`:Ft(a)?i==="0"?l=`>=${i}.${s}.0${n} <${i}.${+s+1}.0-0`:l=`>=${i}.${s}.0${n} <${+i+1}.0.0-0`:u?(he("replaceCaret pr",u),i==="0"?s==="0"?l=`>=${i}.${s}.${a}-${u} <${i}.${s}.${+a+1}-0`:l=`>=${i}.${s}.${a}-${u} <${i}.${+s+1}.0-0`:l=`>=${i}.${s}.${a}-${u} <${+i+1}.0.0-0`):(he("no pr"),i==="0"?s==="0"?l=`>=${i}.${s}.${a}${n} <${i}.${s}.${+a+1}-0`:l=`>=${i}.${s}.${a}${n} <${i}.${+s+1}.0-0`:l=`>=${i}.${s}.${a} <${+i+1}.0.0-0`),he("caret return",l),l})},XOe=(t,e)=>(he("replaceXRanges",t,e),t.split(/\s+/).map(r=>ZOe(r,e)).join(" ")),ZOe=(t,e)=>{t=t.trim();let r=e.loose?Jt[Ht.XRANGELOOSE]:Jt[Ht.XRANGE];return t.replace(r,(n,o,i,s,a,u)=>{he("xRange",t,n,o,i,s,a,u);let l=Ft(i),d=l||Ft(s),p=d||Ft(a),_=p;return o==="="&&_&&(o=""),u=e.includePrerelease?"-0":"",l?o===">"||o==="<"?n="<0.0.0-0":n="*":o&&_?(d&&(s=0),a=0,o===">"?(o=">=",d?(i=+i+1,s=0,a=0):(s=+s+1,a=0)):o==="<="&&(o="<",d?i=+i+1:s=+s+1),o==="<"&&(u="-0"),n=`${o+i}.${s}.${a}${u}`):d?n=`>=${i}.0.0${u} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${s}.0${u} <${i}.${+s+1}.0-0`),he("xRange return",n),n})},zOe=(t,e)=>(he("replaceStars",t,e),t.trim().replace(Jt[Ht.STAR],"")),JOe=(t,e)=>(he("replaceGTE0",t,e),t.trim().replace(Jt[e.includePrerelease?Ht.GTE0PRE:Ht.GTE0],"")),$Oe=t=>(e,r,n,o,i,s,a,u,l,d,p,_)=>(Ft(n)?r="":Ft(o)?r=`>=${n}.0.0${t?"-0":""}`:Ft(i)?r=`>=${n}.${o}.0${t?"-0":""}`:s?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Ft(l)?u="":Ft(d)?u=`<${+l+1}.0.0-0`:Ft(p)?u=`<${l}.${+d+1}.0-0`:_?u=`<=${l}.${d}.${p}-${_}`:t?u=`<${l}.${d}.${+p+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),QOe=(t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(he(t[n].semver),t[n].semver!==mb.ANY&&t[n].semver.prerelease.length>0){let o=t[n].semver;if(o.major===e.major&&o.minor===e.minor&&o.patch===e.patch)return!0}return!1}return!0}});var Hl=c((o7e,_K)=>{var Fl=Symbol("SemVer ANY"),Ab=class t{static get ANY(){return Fl}constructor(e,r){if(r=uK(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Sb("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Fl?this.value="":this.value=this.operator+this.semver.version,Sb("comp",this)}parse(e){let r=this.options.loose?cK[lK.COMPARATORLOOSE]:cK[lK.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new dK(n[2],this.options.loose):this.semver=Fl}toString(){return this.value}test(e){if(Sb("Comparator.test",e,this.options.loose),this.semver===Fl||e===Fl)return!0;if(typeof e=="string")try{e=new dK(e,this.options)}catch{return!1}return Tb(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new pK(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new pK(this.value,r).test(e.semver):(r=uK(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Tb(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Tb(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};_K.exports=Ab;var uK=Rf(),{safeRe:cK,t:lK}=va(),Tb=gb(),Sb=ql(),dK=St(),pK=Tr()});var kl=c((i7e,fK)=>{var eIe=Tr(),tIe=(t,e,r)=>{try{e=new eIe(e,r)}catch{return!1}return e.test(t)};fK.exports=tIe});var EK=c((s7e,gK)=>{var rIe=Tr(),nIe=(t,e)=>new rIe(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));gK.exports=nIe});var mK=c((a7e,hK)=>{var oIe=St(),iIe=Tr(),sIe=(t,e,r)=>{let n=null,o=null,i=null;try{i=new iIe(e,r)}catch{return null}return t.forEach(s=>{i.test(s)&&(!n||o.compare(s)===-1)&&(n=s,o=new oIe(n,r))}),n};hK.exports=sIe});var SK=c((u7e,TK)=>{var aIe=St(),uIe=Tr(),cIe=(t,e,r)=>{let n=null,o=null,i=null;try{i=new uIe(e,r)}catch{return null}return t.forEach(s=>{i.test(s)&&(!n||o.compare(s)===1)&&(n=s,o=new aIe(n,r))}),n};TK.exports=cIe});var OK=c((c7e,RK)=>{var Rb=St(),lIe=Tr(),AK=jl(),dIe=(t,e)=>{t=new lIe(t,e);let r=new Rb("0.0.0");if(t.test(r)||(r=new Rb("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let o=t.set[n],i=null;o.forEach(s=>{let a=new Rb(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||AK(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),i&&(!r||AK(r,i))&&(r=i)}return r&&t.test(r)?r:null};RK.exports=dIe});var bK=c((l7e,IK)=>{var pIe=Tr(),_Ie=(t,e)=>{try{return new pIe(t,e).range||"*"}catch{return null}};IK.exports=_Ie});var Mf=c((d7e,NK)=>{var fIe=St(),vK=Hl(),{ANY:gIe}=vK,EIe=Tr(),hIe=kl(),PK=jl(),yK=Pf(),mIe=vf(),TIe=yf(),SIe=(t,e,r,n)=>{t=new fIe(t,n),e=new EIe(e,n);let o,i,s,a,u;switch(r){case">":o=PK,i=mIe,s=yK,a=">",u=">=";break;case"<":o=yK,i=TIe,s=PK,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(hIe(t,e,n))return!1;for(let l=0;l<e.set.length;++l){let d=e.set[l],p=null,_=null;if(d.forEach(f=>{f.semver===gIe&&(f=new vK(">=0.0.0")),p=p||f,_=_||f,o(f.semver,p.semver,n)?p=f:s(f.semver,_.semver,n)&&(_=f)}),p.operator===a||p.operator===u||(!_.operator||_.operator===a)&&i(t,_.semver))return!1;if(_.operator===u&&s(t,_.semver))return!1}return!0};NK.exports=SIe});var MK=c((p7e,CK)=>{var AIe=Mf(),RIe=(t,e,r)=>AIe(t,e,">",r);CK.exports=RIe});var DK=c((_7e,LK)=>{var OIe=Mf(),IIe=(t,e,r)=>OIe(t,e,"<",r);LK.exports=IIe});var xK=c((f7e,UK)=>{var GK=Tr(),bIe=(t,e,r)=>(t=new GK(t,r),e=new GK(e,r),t.intersects(e,r));UK.exports=bIe});var VK=c((g7e,wK)=>{var PIe=kl(),yIe=mr();wK.exports=(t,e,r)=>{let n=[],o=null,i=null,s=t.sort((d,p)=>yIe(d,p,r));for(let d of s)PIe(d,e,r)?(i=d,o||(o=d)):(i&&n.push([o,i]),i=null,o=null);o&&n.push([o,null]);let a=[];for(let[d,p]of n)d===p?a.push(d):!p&&d===s[0]?a.push("*"):p?d===s[0]?a.push(`<=${p}`):a.push(`${d} - ${p}`):a.push(`>=${d}`);let u=a.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return u.length<l.length?u:e}});var kK=c((E7e,FK)=>{var BK=Tr(),Ib=Hl(),{ANY:Ob}=Ib,Wl=kl(),bb=mr(),vIe=(t,e,r={})=>{if(t===e)return!0;t=new BK(t,r),e=new BK(e,r);let n=!1;e:for(let o of t.set){for(let i of e.set){let s=CIe(o,i,r);if(n=n||s!==null,s)continue e}if(n)return!1}return!0},NIe=[new Ib(">=0.0.0-0")],qK=[new Ib(">=0.0.0")],CIe=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Ob){if(e.length===1&&e[0].semver===Ob)return!0;r.includePrerelease?t=NIe:t=qK}if(e.length===1&&e[0].semver===Ob){if(r.includePrerelease)return!0;e=qK}let n=new Set,o,i;for(let f of t)f.operator===">"||f.operator===">="?o=jK(o,f,r):f.operator==="<"||f.operator==="<="?i=HK(i,f,r):n.add(f.semver);if(n.size>1)return null;let s;if(o&&i){if(s=bb(o.semver,i.semver,r),s>0)return null;if(s===0&&(o.operator!==">="||i.operator!=="<="))return null}for(let f of n){if(o&&!Wl(f,String(o),r)||i&&!Wl(f,String(i),r))return null;for(let g of e)if(!Wl(f,String(g),r))return!1;return!0}let a,u,l,d,p=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,_=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&i.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(d=d||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",o){if(_&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===_.major&&f.semver.minor===_.minor&&f.semver.patch===_.patch&&(_=!1),f.operator===">"||f.operator===">="){if(a=jK(o,f,r),a===f&&a!==o)return!1}else if(o.operator===">="&&!Wl(o.semver,String(f),r))return!1}if(i){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(u=HK(i,f,r),u===f&&u!==i)return!1}else if(i.operator==="<="&&!Wl(i.semver,String(f),r))return!1}if(!f.operator&&(i||o)&&s!==0)return!1}return!(o&&l&&!i&&s!==0||i&&d&&!o&&s!==0||_||p)},jK=(t,e,r)=>{if(!t)return e;let n=bb(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},HK=(t,e,r)=>{if(!t)return e;let n=bb(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t};FK.exports=vIe});var Sr=c((h7e,KK)=>{var Pb=va(),WK=Bl(),MIe=St(),YK=db(),LIe=gs(),DIe=mY(),GIe=SY(),UIe=OY(),xIe=PY(),wIe=vY(),VIe=CY(),BIe=LY(),qIe=GY(),jIe=mr(),HIe=VY(),FIe=qY(),kIe=bf(),WIe=kY(),YIe=YY(),KIe=jl(),XIe=Pf(),ZIe=_b(),zIe=fb(),JIe=yf(),$Ie=vf(),QIe=gb(),ebe=tK(),tbe=Hl(),rbe=Tr(),nbe=kl(),obe=EK(),ibe=mK(),sbe=SK(),abe=OK(),ube=bK(),cbe=Mf(),lbe=MK(),dbe=DK(),pbe=xK(),_be=VK(),fbe=kK();KK.exports={parse:LIe,valid:DIe,clean:GIe,inc:UIe,diff:xIe,major:wIe,minor:VIe,patch:BIe,prerelease:qIe,compare:jIe,rcompare:HIe,compareLoose:FIe,compareBuild:kIe,sort:WIe,rsort:YIe,gt:KIe,lt:XIe,eq:ZIe,neq:zIe,gte:JIe,lte:$Ie,cmp:QIe,coerce:ebe,Comparator:tbe,Range:rbe,satisfies:nbe,toComparators:obe,maxSatisfying:ibe,minSatisfying:sbe,minVersion:abe,validRange:ube,outside:cbe,gtr:lbe,ltr:dbe,intersects:pbe,simplifyRange:_be,subset:fbe,SemVer:MIe,re:Pb.re,src:Pb.src,tokens:Pb.t,SEMVER_SPEC_VERSION:WK.SEMVER_SPEC_VERSION,RELEASE_TYPES:WK.RELEASE_TYPES,compareIdentifiers:YK.compareIdentifiers,rcompareIdentifiers:YK.rcompareIdentifiers}});var XK=c(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.AttributeNames=void 0;var gbe;(function(t){t.HTTP_ERROR_NAME="http.error_name",t.HTTP_ERROR_MESSAGE="http.error_message",t.HTTP_STATUS_TEXT="http.status_text"})(gbe=Yl.AttributeNames||(Yl.AttributeNames={}))});var yb=c(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.headerCapture=k.getIncomingRequestMetricAttributesOnResponse=k.getIncomingRequestAttributesOnResponse=k.getIncomingRequestMetricAttributes=k.getIncomingRequestAttributes=k.getOutgoingRequestMetricAttributesOnResponse=k.getOutgoingRequestAttributesOnResponse=k.setAttributesFromHttpKind=k.getOutgoingRequestMetricAttributes=k.getOutgoingRequestAttributes=k.extractHostnameAndPort=k.isValidOptionsType=k.getRequestInfo=k.isCompressed=k.setResponseContentLengthAttribute=k.setRequestContentLengthAttribute=k.setSpanWithError=k.isIgnored=k.satisfiesPattern=k.parseResponseStatus=k.getAbsoluteUrl=void 0;var Kl=(y(),T(P)),j=(Q(),T($)),ZK=Af(),Lf=m("url"),Df=XK(),Ebe=(t,e,r="http:")=>{let n=t||{},o=n.protocol||r,i=(n.port||"").toString(),s=n.path||"/",a=n.host||n.hostname||e.host||"localhost";return a.indexOf(":")===-1&&i&&i!=="80"&&i!=="443"&&(a+=`:${i}`),`${o}//${a}${s}`};k.getAbsoluteUrl=Ebe;var hbe=(t,e)=>{let r=t===Kl.SpanKind.CLIENT?400:500;return e&&e>=100&&e<r?Kl.SpanStatusCode.UNSET:Kl.SpanStatusCode.ERROR};k.parseResponseStatus=hbe;var mbe=(t,e)=>{if(typeof e=="string")return e===t;if(e instanceof RegExp)return e.test(t);if(typeof e=="function")return e(t);throw new TypeError("Pattern is in unsupported datatype")};k.satisfiesPattern=mbe;var Tbe=(t,e,r)=>{if(!e)return!1;try{for(let n of e)if((0,k.satisfiesPattern)(t,n))return!0}catch(n){r&&r(n)}return!1};k.isIgnored=Tbe;var Sbe=(t,e)=>{let r=e.message;t.setAttribute(Df.AttributeNames.HTTP_ERROR_NAME,e.name),t.setAttribute(Df.AttributeNames.HTTP_ERROR_MESSAGE,r),t.setStatus({code:Kl.SpanStatusCode.ERROR,message:r}),t.recordException(e)};k.setSpanWithError=Sbe;var Abe=(t,e)=>{let r=zK(t.headers);r!==null&&((0,k.isCompressed)(t.headers)?e[j.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH]=r:e[j.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED]=r)};k.setRequestContentLengthAttribute=Abe;var Rbe=(t,e)=>{let r=zK(t.headers);r!==null&&((0,k.isCompressed)(t.headers)?e[j.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH]=r:e[j.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED]=r)};k.setResponseContentLengthAttribute=Rbe;function zK(t){let e=t["content-length"];if(e===void 0)return null;let r=parseInt(e,10);return isNaN(r)?null:r}var Obe=t=>{let e=t["content-encoding"];return!!e&&e!=="identity"};k.isCompressed=Obe;var Ibe=(t,e)=>{let r="/",n="",o;if(typeof t=="string")o=Lf.parse(t),r=o.pathname||"/",n=`${o.protocol||"http:"}//${o.host}`,e!==void 0&&Object.assign(o,e);else if(t instanceof Lf.URL)o={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,path:`${t.pathname||""}${t.search||""}`},t.port!==""&&(o.port=Number(t.port)),(t.username||t.password)&&(o.auth=`${t.username}:${t.password}`),r=t.pathname,n=t.origin,e!==void 0&&Object.assign(o,e);else{o=Object.assign({protocol:t.host?"http:":void 0},t),r=t.pathname,!r&&o.path&&(r=Lf.parse(o.path).pathname||"/");let s=o.host||(o.port!=null?`${o.hostname}${o.port}`:o.hostname);n=`${o.protocol||"http:"}//${s}`}let i=o.method?o.method.toUpperCase():"GET";return{origin:n,pathname:r,method:i,optionsParsed:o}};k.getRequestInfo=Ibe;var bbe=t=>{if(!t)return!1;let e=typeof t;return e==="string"||e==="object"&&!Array.isArray(t)};k.isValidOptionsType=bbe;var Pbe=t=>{var e;if(t.hostname&&t.port)return{hostname:t.hostname,port:t.port};let r=((e=t.host)===null||e===void 0?void 0:e.match(/^([^:/ ]+)(:\d{1,5})?/))||null,n=t.hostname||(r===null?"localhost":r[1]),o=t.port;return o||(r&&r[2]?o=r[2].substring(1):o=t.protocol==="https:"?"443":"80"),{hostname:n,port:o}};k.extractHostnameAndPort=Pbe;var ybe=(t,e)=>{var r;let n=e.hostname,o=e.port,i=t.method,s=i?i.toUpperCase():"GET",a=t.headers||{},u=a["user-agent"],l={[j.SEMATTRS_HTTP_URL]:(0,k.getAbsoluteUrl)(t,a,`${e.component}:`),[j.SEMATTRS_HTTP_METHOD]:s,[j.SEMATTRS_HTTP_TARGET]:t.path||"/",[j.SEMATTRS_NET_PEER_NAME]:n,[j.SEMATTRS_HTTP_HOST]:(r=a.host)!==null&&r!==void 0?r:`${n}:${o}`};return u!==void 0&&(l[j.SEMATTRS_HTTP_USER_AGENT]=u),Object.assign(l,e.hookAttributes)};k.getOutgoingRequestAttributes=ybe;var vbe=t=>{let e={};return e[j.SEMATTRS_HTTP_METHOD]=t[j.SEMATTRS_HTTP_METHOD],e[j.SEMATTRS_NET_PEER_NAME]=t[j.SEMATTRS_NET_PEER_NAME],e};k.getOutgoingRequestMetricAttributes=vbe;var Nbe=(t,e)=>{t&&(e[j.SEMATTRS_HTTP_FLAVOR]=t,t.toUpperCase()!=="QUIC"?e[j.SEMATTRS_NET_TRANSPORT]=j.NETTRANSPORTVALUES_IP_TCP:e[j.SEMATTRS_NET_TRANSPORT]=j.NETTRANSPORTVALUES_IP_UDP)};k.setAttributesFromHttpKind=Nbe;var Cbe=t=>{let{statusCode:e,statusMessage:r,httpVersion:n,socket:o}=t,i={};if(o){let{remoteAddress:s,remotePort:a}=o;i[j.SEMATTRS_NET_PEER_IP]=s,i[j.SEMATTRS_NET_PEER_PORT]=a}return(0,k.setResponseContentLengthAttribute)(t,i),e&&(i[j.SEMATTRS_HTTP_STATUS_CODE]=e,i[Df.AttributeNames.HTTP_STATUS_TEXT]=(r||"").toUpperCase()),(0,k.setAttributesFromHttpKind)(n,i),i};k.getOutgoingRequestAttributesOnResponse=Cbe;var Mbe=t=>{let e={};return e[j.SEMATTRS_NET_PEER_PORT]=t[j.SEMATTRS_NET_PEER_PORT],e[j.SEMATTRS_HTTP_STATUS_CODE]=t[j.SEMATTRS_HTTP_STATUS_CODE],e[j.SEMATTRS_HTTP_FLAVOR]=t[j.SEMATTRS_HTTP_FLAVOR],e};k.getOutgoingRequestMetricAttributesOnResponse=Mbe;var Lbe=(t,e)=>{let r=t.headers,n=r["user-agent"],o=r["x-forwarded-for"],i=t.method||"GET",s=t.httpVersion,a=t.url?Lf.parse(t.url):null,u=a?.host||r.host,l=a?.hostname||u?.replace(/^(.*)(:[0-9]{1,5})/,"$1")||"localhost",d=e.serverName,p={[j.SEMATTRS_HTTP_URL]:(0,k.getAbsoluteUrl)(a,r,`${e.component}:`),[j.SEMATTRS_HTTP_HOST]:u,[j.SEMATTRS_NET_HOST_NAME]:l,[j.SEMATTRS_HTTP_METHOD]:i,[j.SEMATTRS_HTTP_SCHEME]:e.component};return typeof o=="string"&&(p[j.SEMATTRS_HTTP_CLIENT_IP]=o.split(",")[0]),typeof d=="string"&&(p[j.SEMATTRS_HTTP_SERVER_NAME]=d),a&&(p[j.SEMATTRS_HTTP_TARGET]=a.path||"/"),n!==void 0&&(p[j.SEMATTRS_HTTP_USER_AGENT]=n),(0,k.setRequestContentLengthAttribute)(t,p),(0,k.setAttributesFromHttpKind)(s,p),Object.assign(p,e.hookAttributes)};k.getIncomingRequestAttributes=Lbe;var Dbe=t=>{let e={};return e[j.SEMATTRS_HTTP_SCHEME]=t[j.SEMATTRS_HTTP_SCHEME],e[j.SEMATTRS_HTTP_METHOD]=t[j.SEMATTRS_HTTP_METHOD],e[j.SEMATTRS_NET_HOST_NAME]=t[j.SEMATTRS_NET_HOST_NAME],e[j.SEMATTRS_HTTP_FLAVOR]=t[j.SEMATTRS_HTTP_FLAVOR],e};k.getIncomingRequestMetricAttributes=Dbe;var Gbe=(t,e)=>{let{socket:r}=t,{statusCode:n,statusMessage:o}=e,i=(0,ZK.getRPCMetadata)(Kl.context.active()),s={};if(r){let{localAddress:a,localPort:u,remoteAddress:l,remotePort:d}=r;s[j.SEMATTRS_NET_HOST_IP]=a,s[j.SEMATTRS_NET_HOST_PORT]=u,s[j.SEMATTRS_NET_PEER_IP]=l,s[j.SEMATTRS_NET_PEER_PORT]=d}return s[j.SEMATTRS_HTTP_STATUS_CODE]=n,s[Df.AttributeNames.HTTP_STATUS_TEXT]=(o||"").toUpperCase(),i?.type===ZK.RPCType.HTTP&&i.route!==void 0&&(s[j.SEMATTRS_HTTP_ROUTE]=i.route),s};k.getIncomingRequestAttributesOnResponse=Gbe;var Ube=t=>{let e={};return e[j.SEMATTRS_HTTP_STATUS_CODE]=t[j.SEMATTRS_HTTP_STATUS_CODE],e[j.SEMATTRS_NET_HOST_PORT]=t[j.SEMATTRS_NET_HOST_PORT],t[j.SEMATTRS_HTTP_ROUTE]!==void 0&&(e[j.SEMATTRS_HTTP_ROUTE]=t[j.SEMATTRS_HTTP_ROUTE]),e};k.getIncomingRequestMetricAttributesOnResponse=Ube;function xbe(t,e){let r=new Map;for(let n=0,o=e.length;n<o;n++){let i=e[n].toLowerCase();r.set(i,i.replace(/-/g,"_"))}return(n,o)=>{for(let i of r.keys()){let s=o(i);if(s===void 0)continue;let a=r.get(i),u=`http.${t}.header.${a}`;typeof s=="string"?n.setAttribute(u,[s]):Array.isArray(s)?n.setAttribute(u,s):n.setAttribute(u,[s])}}}k.headerCapture=xbe});var JK=c(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.VERSION=void 0;Gf.VERSION="0.53.0"});var $K=c(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.SeverityNumber=void 0;var wbe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(wbe=Xl.SeverityNumber||(Xl.SeverityNumber={}))});var vb=c(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.NOOP_LOGGER=Ca.NoopLogger=void 0;var Uf=class{emit(e){}};Ca.NoopLogger=Uf;Ca.NOOP_LOGGER=new Uf});var Nb=c(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.NOOP_LOGGER_PROVIDER=Ma.NoopLoggerProvider=void 0;var Vbe=vb(),xf=class{getLogger(e,r,n){return new Vbe.NoopLogger}};Ma.NoopLoggerProvider=xf;Ma.NOOP_LOGGER_PROVIDER=new xf});var QK=c(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf._globalThis=void 0;wf._globalThis=typeof globalThis=="object"?globalThis:global});var eX=c(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf._globalThis=void 0;var Bbe=QK();Object.defineProperty(Vf,"_globalThis",{enumerable:!0,get:function(){return Bbe._globalThis}})});var tX=c(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf._globalThis=void 0;var qbe=eX();Object.defineProperty(Bf,"_globalThis",{enumerable:!0,get:function(){return qbe._globalThis}})});var rX=c(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.API_BACKWARDS_COMPATIBILITY_VERSION=ln.makeGetter=ln._global=ln.GLOBAL_LOGS_API_KEY=void 0;var jbe=tX();ln.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");ln._global=jbe._globalThis;function Hbe(t,e,r){return n=>n===t?e:r}ln.makeGetter=Hbe;ln.API_BACKWARDS_COMPATIBILITY_VERSION=1});var oX=c(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.LogsAPI=void 0;var Ar=rX(),nX=Nb(),Cb=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Ar._global[Ar.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Ar._global[Ar.GLOBAL_LOGS_API_KEY]=(0,Ar.makeGetter)(Ar.API_BACKWARDS_COMPATIBILITY_VERSION,e,nX.NOOP_LOGGER_PROVIDER),e)}getLoggerProvider(){var e,r;return(r=(e=Ar._global[Ar.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Ar._global,Ar.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:nX.NOOP_LOGGER_PROVIDER}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Ar._global[Ar.GLOBAL_LOGS_API_KEY]}};qf.LogsAPI=Cb});var Mb=c($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.logs=$t.NoopLoggerProvider=$t.NOOP_LOGGER_PROVIDER=$t.NoopLogger=$t.NOOP_LOGGER=$t.SeverityNumber=void 0;var Fbe=$K();Object.defineProperty($t,"SeverityNumber",{enumerable:!0,get:function(){return Fbe.SeverityNumber}});var iX=vb();Object.defineProperty($t,"NOOP_LOGGER",{enumerable:!0,get:function(){return iX.NOOP_LOGGER}});Object.defineProperty($t,"NoopLogger",{enumerable:!0,get:function(){return iX.NoopLogger}});var sX=Nb();Object.defineProperty($t,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return sX.NOOP_LOGGER_PROVIDER}});Object.defineProperty($t,"NoopLoggerProvider",{enumerable:!0,get:function(){return sX.NoopLoggerProvider}});var kbe=oX();$t.logs=kbe.LogsAPI.getInstance()});var aX=c(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.disableInstrumentations=La.enableInstrumentations=void 0;function Wbe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}La.enableInstrumentations=Wbe;function Ybe(t){t.forEach(e=>e.disable())}La.disableInstrumentations=Ybe});var lX=c(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.registerInstrumentations=void 0;var uX=(y(),T(P)),Kbe=Mb(),cX=aX();function Xbe(t){var e,r;let n=t.tracerProvider||uX.trace.getTracerProvider(),o=t.meterProvider||uX.metrics.getMeterProvider(),i=t.loggerProvider||Kbe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,cX.enableInstrumentations)(s,n,o,i),()=>{(0,cX.disableInstrumentations)(s)}}jf.registerInstrumentations=Xbe});var De=c((L7e,_X)=>{"use strict";function Lb(t){return typeof t=="function"}var kt=console.error.bind(console);function Zl(t,e,r){var n=!!t[e]&&t.propertyIsEnumerable(e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}function zl(t){t&&t.logger&&(Lb(t.logger)?kt=t.logger:kt("new logger isn't a function, not replacing"))}function dX(t,e,r){if(!t||!t[e]){kt("no original function "+e+" to wrap");return}if(!r){kt("no wrapper function"),kt(new Error().stack);return}if(!Lb(t[e])||!Lb(r)){kt("original object and wrapper must be functions");return}var n=t[e],o=r(n,e);return Zl(o,"__original",n),Zl(o,"__unwrap",function(){t[e]===o&&Zl(t,e,n)}),Zl(o,"__wrapped",!0),Zl(t,e,o),o}function Zbe(t,e,r){if(t)Array.isArray(t)||(t=[t]);else{kt("must provide one or more modules to patch"),kt(new Error().stack);return}if(!(e&&Array.isArray(e))){kt("must provide one or more functions to wrap on modules");return}t.forEach(function(n){e.forEach(function(o){dX(n,o,r)})})}function pX(t,e){if(!t||!t[e]){kt("no function to unwrap."),kt(new Error().stack);return}if(!t[e].__unwrap)kt("no original to unwrap to -- has "+e+" already been unwrapped?");else return t[e].__unwrap()}function zbe(t,e){if(t)Array.isArray(t)||(t=[t]);else{kt("must provide one or more modules to patch"),kt(new Error().stack);return}if(!(e&&Array.isArray(e))){kt("must provide one or more functions to unwrap on modules");return}t.forEach(function(r){e.forEach(function(n){pX(r,n)})})}zl.wrap=dX;zl.massWrap=Zbe;zl.unwrap=pX;zl.massUnwrap=zbe;_X.exports=zl});var fX=c(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.InstrumentationAbstract=void 0;var Db=(y(),T(P)),Jbe=Mb(),Hf=De(),Gb=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=Hf.wrap,this._unwrap=Hf.unwrap,this._massWrap=Hf.massWrap,this._massUnwrap=Hf.massUnwrap,this.setConfig(n),this._diag=Db.diag.createComponentLogger({namespace:e}),this._tracer=Db.trace.getTracer(e,r),this._meter=Db.metrics.getMeter(e,r),this._logger=Jbe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};Ff.InstrumentationAbstract=Gb});var Ub=c((G7e,gX)=>{"use strict";var $be=m("os");gX.exports=$be.homedir||function(){var e=process.env.HOME,r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||e||null:process.platform==="darwin"?e||(r?"/Users/"+r:null):process.platform==="linux"?e||(process.getuid()===0?"/root":r?"/home/"+r:null):e||null}});var xb=c((U7e,EX)=>{EX.exports=function(){var t=Error.prepareStackTrace;Error.prepareStackTrace=function(r,n){return n};var e=new Error().stack;return Error.prepareStackTrace=t,e[2].getFileName()}});var hX=c((x7e,Jl)=>{"use strict";var Qbe=process.platform==="win32",ePe=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,wb={};function tPe(t){return ePe.exec(t).slice(1)}wb.parse=function(t){if(typeof t!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=tPe(t);if(!e||e.length!==5)throw new TypeError("Invalid path '"+t+"'");return{root:e[1],dir:e[0]===e[1]?e[0]:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};var rPe=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,Vb={};function nPe(t){return rPe.exec(t).slice(1)}Vb.parse=function(t){if(typeof t!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=nPe(t);if(!e||e.length!==5)throw new TypeError("Invalid path '"+t+"'");return{root:e[1],dir:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};Qbe?Jl.exports=wb.parse:Jl.exports=Vb.parse;Jl.exports.posix=Vb.parse;Jl.exports.win32=wb.parse});var Bb=c((w7e,AX)=>{var SX=m("path"),mX=SX.parse||hX(),TX=function(e,r){var n="/";/^([A-Za-z]:)/.test(e)?n="":/^\\\\/.test(e)&&(n="\\\\");for(var o=[e],i=mX(e);i.dir!==o[o.length-1];)o.push(i.dir),i=mX(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(u){return SX.resolve(n,a,u)}))},[])};AX.exports=function(e,r,n){var o=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths=="function")return r.paths(n,e,function(){return TX(e,o)},r);var i=TX(e,o);return r&&r.paths?i.concat(r.paths):i}});var qb=c((V7e,RX)=>{RX.exports=function(t,e){return e||{}}});var bX=c((B7e,IX)=>{"use strict";var oPe="Function.prototype.bind called on incompatible ",iPe=Object.prototype.toString,sPe=Math.max,aPe="[object Function]",OX=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},uPe=function(e,r){for(var n=[],o=r||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},cPe=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};IX.exports=function(e){var r=this;if(typeof r!="function"||iPe.apply(r)!==aPe)throw new TypeError(oPe+r);for(var n=uPe(arguments,1),o,i=function(){if(this instanceof o){var d=r.apply(this,OX(n,arguments));return Object(d)===d?d:this}return r.apply(e,OX(n,arguments))},s=sPe(0,r.length-n.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(o=Function("binder","return function ("+cPe(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o}});var yX=c((q7e,PX)=>{"use strict";var lPe=bX();PX.exports=Function.prototype.bind||lPe});var NX=c((j7e,vX)=>{"use strict";var dPe=Function.prototype.call,pPe=Object.prototype.hasOwnProperty,_Pe=yX();vX.exports=_Pe.call(dPe,pPe)});var CX=c((H7e,fPe)=>{fPe.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var $l=c((F7e,DX)=>{"use strict";var gPe=NX();function EPe(t,e){for(var r=t.split("."),n=e.split(" "),o=n.length>1?n[0]:"=",i=(n.length>1?n[1]:n[0]).split("."),s=0;s<3;++s){var a=parseInt(r[s]||0,10),u=parseInt(i[s]||0,10);if(a!==u)return o==="<"?a<u:o===">="?a>=u:!1}return o===">="}function MX(t,e){var r=e.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!EPe(t,r[n]))return!1;return!0}function hPe(t,e){if(typeof e=="boolean")return e;var r=typeof t>"u"?process.versions&&process.versions.node:t;if(typeof r!="string")throw new TypeError(typeof t>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var n=0;n<e.length;++n)if(MX(r,e[n]))return!0;return!1}return MX(r,e)}var LX=CX();DX.exports=function(e,r){return gPe(LX,e)&&hPe(r,LX[e])}});var xX=c((k7e,UX)=>{var Es=m("fs"),mPe=Ub(),we=m("path"),TPe=xb(),SPe=Bb(),APe=qb(),RPe=$l(),OPe=process.platform!=="win32"&&Es.realpath&&typeof Es.realpath.native=="function"?Es.realpath.native:Es.realpath,GX=mPe(),IPe=function(){return[we.join(GX,".node_modules"),we.join(GX,".node_libraries")]},bPe=function(e,r){Es.stat(e,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},PPe=function(e,r){Es.stat(e,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},yPe=function(e,r){OPe(e,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?e:o)})},Ql=function(e,r,n,o){n&&n.preserveSymlinks===!1?e(r,o):o(null,r)},vPe=function(e,r,n){e(r,function(o,i){if(o)n(o);else try{var s=JSON.parse(i);n(null,s)}catch{n(null)}})},NPe=function(e,r,n){for(var o=SPe(r,n,e),i=0;i<o.length;i++)o[i]=we.join(o[i],e);return o};UX.exports=function(e,r,n){var o=n,i=r;if(typeof r=="function"&&(o=i,i={}),typeof e!="string"){var s=new TypeError("Path must be a string.");return process.nextTick(function(){o(s)})}i=APe(e,i);var a=i.isFile||bPe,u=i.isDirectory||PPe,l=i.readFile||Es.readFile,d=i.realpath||yPe,p=i.readPackage||vPe;if(i.readFile&&i.readPackage){var _=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(_)})}var f=i.packageIterator,g=i.extensions||[".js"],E=i.includeCoreModules!==!1,S=i.basedir||we.dirname(TPe()),v=i.filename||S;i.paths=i.paths||IPe();var M=we.resolve(S);Ql(d,M,i,function(V,H){V?o(V):L(H)});var D;function L(V){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))D=we.resolve(V,e),(e==="."||e===".."||e.slice(-1)==="/")&&(D+="/"),/\/$/.test(e)&&D===V?te(D,i.package,N):G(D,i.package,N);else{if(E&&RPe(e))return o(null,e);ke(e,V,function(H,se,z){if(H)o(H);else{if(se)return Ql(d,se,i,function(qe,pe){qe?o(qe):o(null,pe,z)});var le=new Error("Cannot find module '"+e+"' from '"+v+"'");le.code="MODULE_NOT_FOUND",o(le)}})}}function N(V,H,se){V?o(V):H?o(null,H,se):te(D,function(z,le,qe){if(z)o(z);else if(le)Ql(d,le,i,function(ie,ct){ie?o(ie):o(null,ct,qe)});else{var pe=new Error("Cannot find module '"+e+"' from '"+v+"'");pe.code="MODULE_NOT_FOUND",o(pe)}})}function G(V,H,se){var z=H,le=se;typeof z=="function"&&(le=z,z=void 0);var qe=[""].concat(g);pe(qe,V,z);function pe(ie,ct,jn){if(ie.length===0)return le(null,void 0,jn);var ns=ct+ie[0],rn=jn;rn?Et(null,rn):w(we.dirname(ns),Et);function Et(vo,na,Hn){if(rn=na,vo)return le(vo);if(Hn&&rn&&i.pathFilter){var Zp=we.relative(Hn,ns),zp=Zp.slice(0,Zp.length-ie[0].length),ll=i.pathFilter(rn,ct,zp);if(ll)return pe([""].concat(g.slice()),we.resolve(Hn,ll),rn)}a(ns,Xp)}function Xp(vo,na){if(vo)return le(vo);if(na)return le(null,ns,rn);pe(ie.slice(1),ct,rn)}}}function w(V,H){if(V===""||V==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(V)||/[/\\]node_modules[/\\]*$/.test(V))return H(null);Ql(d,V,i,function(se,z){if(se)return w(we.dirname(V),H);var le=we.join(z,"package.json");a(le,function(qe,pe){if(!pe)return w(we.dirname(V),H);p(l,le,function(ie,ct){ie&&H(ie);var jn=ct;jn&&i.packageFilter&&(jn=i.packageFilter(jn,le)),H(null,jn,V)})})})}function te(V,H,se){var z=se,le=H;typeof le=="function"&&(z=le,le=i.package),Ql(d,V,i,function(qe,pe){if(qe)return z(qe);var ie=we.join(pe,"package.json");a(ie,function(ct,jn){if(ct)return z(ct);if(!jn)return G(we.join(V,"index"),le,z);p(l,ie,function(ns,rn){if(ns)return z(ns);var Et=rn;if(Et&&i.packageFilter&&(Et=i.packageFilter(Et,ie)),Et&&Et.main){if(typeof Et.main!="string"){var Xp=new TypeError("package \u201C"+Et.name+"\u201D `main` must be a string");return Xp.code="INVALID_PACKAGE_MAIN",z(Xp)}(Et.main==="."||Et.main==="./")&&(Et.main="index"),G(we.resolve(V,Et.main),Et,function(vo,na,Hn){if(vo)return z(vo);if(na)return z(null,na,Hn);if(!Hn)return G(we.join(V,"index"),Hn,z);var Zp=we.resolve(V,Hn.main);te(Zp,Hn,function(zp,ll,C1){if(zp)return z(zp);if(ll)return z(null,ll,C1);G(we.join(V,"index"),C1,z)})});return}G(we.join(V,"/index"),Et,z)})})})}function J(V,H){if(H.length===0)return V(null,void 0);var se=H[0];u(we.dirname(se),z);function z(pe,ie){if(pe)return V(pe);if(!ie)return J(V,H.slice(1));G(se,i.package,le)}function le(pe,ie,ct){if(pe)return V(pe);if(ie)return V(null,ie,ct);te(se,i.package,qe)}function qe(pe,ie,ct){if(pe)return V(pe);if(ie)return V(null,ie,ct);J(V,H.slice(1))}}function ke(V,H,se){var z=function(){return NPe(V,H,i)};J(se,f?f(V,H,z,i):z())}}});var wX=c((W7e,CPe)=>{CPe.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var jX=c((Y7e,qX)=>{"use strict";var MPe=$l(),VX=wX(),BX={};for(kf in VX)Object.prototype.hasOwnProperty.call(VX,kf)&&(BX[kf]=MPe(kf));var kf;qX.exports=BX});var FX=c((K7e,HX)=>{var LPe=$l();HX.exports=function(e){return LPe(e)}});var YX=c((X7e,WX)=>{var DPe=$l(),hs=m("fs"),At=m("path"),GPe=Ub(),UPe=xb(),xPe=Bb(),wPe=qb(),VPe=process.platform!=="win32"&&hs.realpathSync&&typeof hs.realpathSync.native=="function"?hs.realpathSync.native:hs.realpathSync,kX=GPe(),BPe=function(){return[At.join(kX,".node_modules"),At.join(kX,".node_libraries")]},qPe=function(e){try{var r=hs.statSync(e,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},jPe=function(e){try{var r=hs.statSync(e,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},HPe=function(e){try{return VPe(e)}catch(r){if(r.code!=="ENOENT")throw r}return e},ed=function(e,r,n){return n&&n.preserveSymlinks===!1?e(r):r},FPe=function(e,r){var n=e(r);try{var o=JSON.parse(n);return o}catch{}},kPe=function(e,r,n){for(var o=xPe(r,n,e),i=0;i<o.length;i++)o[i]=At.join(o[i],e);return o};WX.exports=function(e,r){if(typeof e!="string")throw new TypeError("Path must be a string.");var n=wPe(e,r),o=n.isFile||qPe,i=n.readFileSync||hs.readFileSync,s=n.isDirectory||jPe,a=n.realpathSync||HPe,u=n.readPackageSync||FPe;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var l=n.packageIterator,d=n.extensions||[".js"],p=n.includeCoreModules!==!1,_=n.basedir||At.dirname(UPe()),f=n.filename||_;n.paths=n.paths||BPe();var g=ed(a,At.resolve(_),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var E=At.resolve(g,e);(e==="."||e===".."||e.slice(-1)==="/")&&(E+="/");var S=D(E)||N(E);if(S)return ed(a,S,n)}else{if(p&&DPe(e))return e;var v=G(e,g);if(v)return ed(a,v,n)}var M=new Error("Cannot find module '"+e+"' from '"+f+"'");throw M.code="MODULE_NOT_FOUND",M;function D(w){var te=L(At.dirname(w));if(te&&te.dir&&te.pkg&&n.pathFilter){var J=At.relative(te.dir,w),ke=n.pathFilter(te.pkg,w,J);ke&&(w=At.resolve(te.dir,ke))}if(o(w))return w;for(var V=0;V<d.length;V++){var H=w+d[V];if(o(H))return H}}function L(w){if(!(w===""||w==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(w))&&!/[/\\]node_modules[/\\]*$/.test(w)){var te=At.join(ed(a,w,n),"package.json");if(!o(te))return L(At.dirname(w));var J=u(i,te);return J&&n.packageFilter&&(J=n.packageFilter(J,w)),{pkg:J,dir:w}}}function N(w){var te=At.join(ed(a,w,n),"/package.json");if(o(te)){try{var J=u(i,te)}catch{}if(J&&n.packageFilter&&(J=n.packageFilter(J,w)),J&&J.main){if(typeof J.main!="string"){var ke=new TypeError("package \u201C"+J.name+"\u201D `main` must be a string");throw ke.code="INVALID_PACKAGE_MAIN",ke}(J.main==="."||J.main==="./")&&(J.main="index");try{var V=D(At.resolve(w,J.main));if(V)return V;var H=N(At.resolve(w,J.main));if(H)return H}catch{}}}return D(At.join(w,"/index"))}function G(w,te){for(var J=function(){return kPe(w,te,n)},ke=l?l(w,te,J,n):J(),V=0;V<ke.length;V++){var H=ke[V];if(s(At.dirname(H))){var se=D(H);if(se)return se;var z=N(H);if(z)return z}}}}});var XX=c((Z7e,KX)=>{var Wf=xX();Wf.core=jX();Wf.isCore=FX();Wf.sync=YX();KX.exports=Wf});var zX=c((z7e,ZX)=>{var Da=1e3,Ga=Da*60,Ua=Ga*60,ms=Ua*24,WPe=ms*7,YPe=ms*365.25;ZX.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return KPe(t);if(r==="number"&&isFinite(t))return e.long?ZPe(t):XPe(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function KPe(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*YPe;case"weeks":case"week":case"w":return r*WPe;case"days":case"day":case"d":return r*ms;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ua;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ga;case"seconds":case"second":case"secs":case"sec":case"s":return r*Da;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function XPe(t){var e=Math.abs(t);return e>=ms?Math.round(t/ms)+"d":e>=Ua?Math.round(t/Ua)+"h":e>=Ga?Math.round(t/Ga)+"m":e>=Da?Math.round(t/Da)+"s":t+"ms"}function ZPe(t){var e=Math.abs(t);return e>=ms?Yf(t,e,ms,"day"):e>=Ua?Yf(t,e,Ua,"hour"):e>=Ga?Yf(t,e,Ga,"minute"):e>=Da?Yf(t,e,Da,"second"):t+" ms"}function Yf(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var jb=c((J7e,JX)=>{function zPe(t){r.debug=r,r.default=r,r.coerce=u,r.disable=i,r.enable=o,r.enabled=s,r.humanize=zX(),r.destroy=l,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let p=0;for(let _=0;_<d.length;_++)p=(p<<5)-p+d.charCodeAt(_),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(d){let p,_=null,f,g;function E(...S){if(!E.enabled)return;let v=E,M=Number(new Date),D=M-(p||M);v.diff=D,v.prev=p,v.curr=M,p=M,S[0]=r.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let L=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(G,w)=>{if(G==="%%")return"%";L++;let te=r.formatters[w];if(typeof te=="function"){let J=S[L];G=te.call(v,J),S.splice(L,1),L--}return G}),r.formatArgs.call(v,S),(v.log||r.log).apply(v,S)}return E.namespace=d,E.useColors=r.useColors(),E.color=r.selectColor(d),E.extend=n,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(f!==r.namespaces&&(f=r.namespaces,g=r.enabled(d)),g),set:S=>{_=S}}),typeof r.init=="function"&&r.init(E),E}function n(d,p){let _=r(this.namespace+(typeof p>"u"?":":p)+d);return _.log=this.log,_}function o(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let p,_=(typeof d=="string"?d:"").split(/[\s,]+/),f=_.length;for(p=0;p<f;p++)_[p]&&(d=_[p].replace(/\*/g,".*?"),d[0]==="-"?r.skips.push(new RegExp("^"+d.slice(1)+"$")):r.names.push(new RegExp("^"+d+"$")))}function i(){let d=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),d}function s(d){if(d[d.length-1]==="*")return!0;let p,_;for(p=0,_=r.skips.length;p<_;p++)if(r.skips[p].test(d))return!1;for(p=0,_=r.names.length;p<_;p++)if(r.names[p].test(d))return!0;return!1}function a(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function u(d){return d instanceof Error?d.stack||d.message:d}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}JX.exports=zPe});var $X=c((lr,Kf)=>{lr.formatArgs=$Pe;lr.save=QPe;lr.load=eye;lr.useColors=JPe;lr.storage=tye();lr.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();lr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function JPe(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function $Pe(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Kf.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}lr.log=console.debug||console.log||(()=>{});function QPe(t){try{t?lr.storage.setItem("debug",t):lr.storage.removeItem("debug")}catch{}}function eye(){let t;try{t=lr.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function tye(){try{return localStorage}catch{}}Kf.exports=jb()(lr);var{formatters:rye}=Kf.exports;rye.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var e2=c(($7e,QX)=>{"use strict";QX.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),o=e.indexOf("--");return n!==-1&&(o===-1||n<o)}});var n2=c((Q7e,r2)=>{"use strict";var nye=m("os"),t2=m("tty"),Rr=e2(),{env:Ke}=process,Ho;Rr("no-color")||Rr("no-colors")||Rr("color=false")||Rr("color=never")?Ho=0:(Rr("color")||Rr("colors")||Rr("color=true")||Rr("color=always"))&&(Ho=1);"FORCE_COLOR"in Ke&&(Ke.FORCE_COLOR==="true"?Ho=1:Ke.FORCE_COLOR==="false"?Ho=0:Ho=Ke.FORCE_COLOR.length===0?1:Math.min(parseInt(Ke.FORCE_COLOR,10),3));function Hb(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Fb(t,e){if(Ho===0)return 0;if(Rr("color=16m")||Rr("color=full")||Rr("color=truecolor"))return 3;if(Rr("color=256"))return 2;if(t&&!e&&Ho===void 0)return 0;let r=Ho||0;if(Ke.TERM==="dumb")return r;if(process.platform==="win32"){let n=nye.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ke)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Ke)||Ke.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ke)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ke.TEAMCITY_VERSION)?1:0;if(Ke.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ke){let n=parseInt((Ke.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ke.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ke.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ke.TERM)||"COLORTERM"in Ke?1:r}function oye(t){let e=Fb(t,t&&t.isTTY);return Hb(e)}r2.exports={supportsColor:oye,stdout:Hb(Fb(!0,t2.isatty(1))),stderr:Hb(Fb(!0,t2.isatty(2)))}});var i2=c((Xe,Zf)=>{var iye=m("tty"),Xf=m("util");Xe.init=pye;Xe.log=cye;Xe.formatArgs=aye;Xe.save=lye;Xe.load=dye;Xe.useColors=sye;Xe.destroy=Xf.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Xe.colors=[6,2,3,4,5,1];try{let t=n2();t&&(t.stderr||t).level>=2&&(Xe.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Xe.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(o,i)=>i.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function sye(){return"colors"in Xe.inspectOpts?!!Xe.inspectOpts.colors:iye.isatty(process.stderr.fd)}function aye(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),i=` ${o};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
8
+ `).join(`
9
+ `+i),t.push(o+"m+"+Zf.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=uye()+e+" "+t[0]}function uye(){return Xe.inspectOpts.hideDate?"":new Date().toISOString()+" "}function cye(...t){return process.stderr.write(Xf.formatWithOptions(Xe.inspectOpts,...t)+`
10
+ `)}function lye(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function dye(){return process.env.DEBUG}function pye(t){t.inspectOpts={};let e=Object.keys(Xe.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Xe.inspectOpts[e[r]]}Zf.exports=jb()(Xe);var{formatters:o2}=Zf.exports;o2.o=function(t){return this.inspectOpts.colors=this.useColors,Xf.inspect(t,this.inspectOpts).split(`
11
+ `).map(e=>e.trim()).join(" ")};o2.O=function(t){return this.inspectOpts.colors=this.useColors,Xf.inspect(t,this.inspectOpts)}});var s2=c((eet,kb)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?kb.exports=$X():kb.exports=i2()});var Yb=c((tet,a2)=>{"use strict";var Wb=m("path");a2.exports=function(t){var e=t.split(Wb.sep),r=e.lastIndexOf("node_modules");if(r!==-1&&e[r+1]){var n=e[r+1][0]==="@",o=n?e[r+1]+"/"+e[r+2]:e[r+1],i=n?3:2;return{name:o,basedir:e.slice(0,r+i).join(Wb.sep),path:e.slice(r+i).join(Wb.sep)}}}});var u2=c((ret,_ye)=>{_ye.exports={name:"require-in-the-middle",version:"7.4.0",description:"Module to hook into the Node.js require function",main:"index.js",types:"types/index.d.ts",dependencies:{debug:"^4.3.5","module-details-from-path":"^1.0.3",resolve:"^1.22.8"},devDependencies:{"@babel/core":"^7.9.0","@babel/preset-env":"^7.9.5","@babel/preset-typescript":"^7.9.0","@babel/register":"^7.9.0","ipp-printer":"^1.0.0",patterns:"^1.0.3",roundround:"^0.2.0",semver:"^6.3.0",standard:"^14.3.1",tape:"^4.11.0"},scripts:{test:"npm run test:lint && npm run test:tape && npm run test:babel","test:lint":"standard","test:tape":"tape test/*.js","test:babel":"node test/babel/babel-register.js"},repository:{type:"git",url:"git+https://github.com/elastic/require-in-the-middle.git"},keywords:["require","hook","shim","shimmer","shimming","patch","monkey","monkeypatch","module","load"],files:["types"],author:"Thomas Watson Steen <w@tson.dk> (https://twitter.com/wa7son)",license:"MIT",bugs:{url:"https://github.com/elastic/require-in-the-middle/issues"},homepage:"https://github.com/elastic/require-in-the-middle#readme",engines:{node:">=8.6.0"}}});var Ue=c((net,Zb)=>{"use strict";var xa=m("path"),Jn=m("module"),Kb=XX(),Ge=s2()("require-in-the-middle"),fye=Yb();Zb.exports=rd;Zb.exports.Hook=rd;var td;if(Jn.isBuiltin)td=Jn.isBuiltin;else{let[t,e]=process.versions.node.split(".").map(Number);t===8&&e<8?td=r=>r==="http2"?!0:!!Kb.core[r]:td=r=>!!Kb.core[r]}var gye=/([/\\]index)?(\.js)?$/,Xb=class{constructor(){this._localCache=new Map,this._kRitmExports=Symbol("RitmExports")}has(e,r){if(this._localCache.has(e))return!0;if(r)return!1;{let n=m.cache[e];return!!(n&&this._kRitmExports in n)}}get(e,r){let n=this._localCache.get(e);if(n!==void 0)return n;if(!r){let o=m.cache[e];return o&&o[this._kRitmExports]}}set(e,r,n){n?this._localCache.set(e,r):e in m.cache?m.cache[e][this._kRitmExports]=r:(Ge('non-core module is unexpectedly not in require.cache: "%s"',e),this._localCache.set(e,r))}};function rd(t,e,r){if(!(this instanceof rd))return new rd(t,e,r);if(typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),typeof Jn._resolveFilename!="function"){console.error("Error: Expected Module._resolveFilename to be a function (was: %s) - aborting!",typeof Jn._resolveFilename),console.error("Please report this error as an issue related to Node.js %s at %s",process.version,u2().bugs.url);return}this._cache=new Xb,this._unhooked=!1,this._origRequire=Jn.prototype.require;let n=this,o=new Set,i=e?e.internals===!0:!1,s=Array.isArray(t);Ge("registering require hook"),this._require=Jn.prototype.require=function(u){return n._unhooked===!0?(Ge("ignoring require call - module is soft-unhooked"),n._origRequire.apply(this,arguments)):a.call(this,arguments,!1)},typeof process.getBuiltinModule=="function"&&(this._origGetBuiltinModule=process.getBuiltinModule,this._getBuiltinModule=process.getBuiltinModule=function(u){return n._unhooked===!0?(Ge("ignoring process.getBuiltinModule call - module is soft-unhooked"),n._origGetBuiltinModule.apply(this,arguments)):a.call(this,arguments,!0)});function a(u,l){let d=u[0],p=td(d),_;if(p){if(_=d,d.startsWith("node:")){let M=d.slice(5);td(M)&&(_=M)}}else{if(l)return Ge("call to process.getBuiltinModule with unknown built-in id"),n._origGetBuiltinModule.apply(this,u);try{_=Jn._resolveFilename(d,this)}catch(M){return Ge('Module._resolveFilename("%s") threw %j, calling original Module.require',d,M.message),n._origRequire.apply(this,u)}}let f,g;if(Ge("processing %s module require('%s'): %s",p===!0?"core":"non-core",d,_),n._cache.has(_,p)===!0)return Ge("returning already patched cached module: %s",_),n._cache.get(_,p);let E=o.has(_);E===!1&&o.add(_);let S=l?n._origGetBuiltinModule.apply(this,u):n._origRequire.apply(this,u);if(E===!0)return Ge("module is in the process of being patched already - ignoring: %s",_),S;if(o.delete(_),p===!0){if(s===!0&&t.includes(_)===!1)return Ge("ignoring core module not on whitelist: %s",_),S;f=_}else if(s===!0&&t.includes(_)){let M=xa.parse(_);f=M.name,g=M.dir}else{let M=fye(_);if(M===void 0)return Ge("could not parse filename: %s",_),S;f=M.name,g=M.basedir;let D=Eye(M);Ge("resolved filename to module: %s (id: %s, resolved: %s, basedir: %s)",f,d,D,g);let L=!1;if(s){if(!d.startsWith(".")&&t.includes(d)&&(f=d,L=!0),!t.includes(f)&&!t.includes(D))return S;t.includes(D)&&D!==f&&(f=D,L=!0)}if(!L){let N;try{N=Kb.sync(f,{basedir:g})}catch{return Ge("could not resolve module: %s",f),n._cache.set(_,S,p),S}if(N!==_)if(i===!0)f=f+xa.sep+xa.relative(g,_),Ge("preparing to process require of internal file: %s",f);else return Ge("ignoring require of non-main module file: %s",N),n._cache.set(_,S,p),S}}n._cache.set(_,S,p),Ge("calling require hook: %s",f);let v=r(S,f,g);return n._cache.set(_,v,p),Ge("returning module: %s",f),v}}rd.prototype.unhook=function(){this._unhooked=!0,this._require===Jn.prototype.require?(Jn.prototype.require=this._origRequire,Ge("require unhook successful")):Ge("require unhook unsuccessful"),process.getBuiltinModule!==void 0&&(this._getBuiltinModule===process.getBuiltinModule?(process.getBuiltinModule=this._origGetBuiltinModule,Ge("process.getBuiltinModule unhook successful")):Ge("process.getBuiltinModule unhook unsuccessful"))};function Eye(t){let e=xa.sep!=="/"?t.path.split(xa.sep).join("/"):t.path;return xa.posix.join(t.name,e).replace(gye,"")}});var c2=c(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ModuleNameTrie=Fo.ModuleNameSeparator=void 0;Fo.ModuleNameSeparator="/";var zf=class{constructor(){this.hooks=[],this.children=new Map}},zb=class{constructor(){this._trie=new zf,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Fo.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new zf,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Fo.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Fo.ModuleNameTrie=zb});var d2=c(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.RequireInTheMiddleSingleton=void 0;var hye=Ue(),l2=m("path"),Jb=c2(),mye=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),$b=class t{constructor(){this._moduleNameTrie=new Jb.ModuleNameTrie,this._initialize()}_initialize(){new hye.Hook(null,{internals:!0},(e,r,n)=>{let o=Tye(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return mye?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};Jf.RequireInTheMiddleSingleton=$b;function Tye(t){return l2.sep!==Jb.ModuleNameSeparator?t.split(l2.sep).join(Jb.ModuleNameSeparator):t}});var E2=c(nd=>{var p2=[],Qb=new WeakMap,_2=new WeakMap,f2=new Map,g2=[],Sye={set(t,e,r){return Qb.get(t)[e](r)},get(t,e){if(e===Symbol.toStringTag)return"Module";let r=_2.get(t)[e];if(typeof r=="function")return r()},defineProperty(t,e,r){if(!("value"in r))throw new Error("Getters/setters are not supported for exports property descriptors.");return Qb.get(t)[e](r.value)}};function Aye(t,e,r,n,o){f2.set(t,o),Qb.set(e,r),_2.set(e,n);let i=new Proxy(e,Sye);p2.forEach(s=>s(t,i)),g2.push([t,i])}nd.register=Aye;nd.importHooks=p2;nd.specifiers=f2;nd.toHook=g2});var Or=c((uet,wa)=>{var h2=m("path"),Rye=Yb(),{fileURLToPath:m2}=m("url"),{MessageChannel:Oye}=m("worker_threads"),{importHooks:eP,specifiers:Iye,toHook:bye}=E2();function S2(t){eP.push(t),bye.forEach(([e,r])=>t(e,r))}function A2(t){let e=eP.indexOf(t);e>-1&&eP.splice(e,1)}function T2(t,e,r,n){let o=t(e,r,n);o&&o!==e&&(e.default=o)}var tP;function Pye(){let{port1:t,port2:e}=new Oye,r=0,n;tP=a=>{r++,t.postMessage(a)},t.on("message",()=>{r--,n&&r<=0&&n()}).unref();function o(){let a=setInterval(()=>{},1e3),u=new Promise(l=>{n=l}).then(()=>{clearInterval(a)});return r===0&&n(),u}let i=e;return{registerOptions:{data:{addHookMessagePort:i,include:[]},transferList:[i]},addHookMessagePort:i,waitForAllMessagesAcknowledged:o}}function od(t,e,r){if(!(this instanceof od))return new od(t,e,r);typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n=e?e.internals===!0:!1;tP&&Array.isArray(t)&&tP(t),this._iitmHook=(o,i)=>{let s=o,a=o.startsWith("node:"),u;if(a)o=o.replace(/^node:/,"");else{if(o.startsWith("file://"))try{o=m2(o)}catch{}let l=Rye(o);l&&(o=l.name,u=l.basedir)}if(t){for(let l of t)if(l===o){if(u){if(n)o=o+h2.sep+h2.relative(u,m2(s));else if(!u.endsWith(Iye.get(s)))continue}T2(r,i,o,u)}}else T2(r,i,o,u)},S2(this._iitmHook)}od.prototype.unhook=function(){A2(this._iitmHook)};wa.exports=od;wa.exports.Hook=od;wa.exports.addHook=S2;wa.exports.removeHook=A2;wa.exports.createAddHookMessageChannel=Pye});var rP=c(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.isWrapped=ko.safeExecuteInTheMiddleAsync=ko.safeExecuteInTheMiddle=void 0;function yye(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ko.safeExecuteInTheMiddle=yye;async function vye(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ko.safeExecuteInTheMiddleAsync=vye;function Nye(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}ko.isWrapped=Nye});var I2=c($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.InstrumentationBase=void 0;var nP=m("path"),R2=m("util"),Cye=Sr(),oP=De(),Mye=fX(),Lye=d2(),Dye=Or(),id=(y(),T(P)),Gye=Ue(),Uye=m("fs"),xye=rP(),iP=class extends Mye.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=Lye.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,xye.isWrapped)(i[s])&&this._unwrap(i,s),R2.types.isProxy(i)){let u=(0,oP.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,oP.wrap)(i,s,a)},this._unwrap=(i,s)=>R2.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,oP.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{id.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){id.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{id.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){id.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=m.resolve(r);m.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,Uye.readFileSync)(nP.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{id.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return O2(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=nP.normalize(n);return a.filter(d=>d.name===u).filter(d=>O2(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=nP.isAbsolute(e.name)?new Gye.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new Dye.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};$f.InstrumentationBase=iP;function O2(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,Cye.satisfies)(e,n,{includePrerelease:r}))}});var b2=c(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.normalize=void 0;var wye=m("path");Object.defineProperty(Qf,"normalize",{enumerable:!0,get:function(){return wye.normalize}})});var P2=c(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.normalize=Va.InstrumentationBase=void 0;var Vye=I2();Object.defineProperty(Va,"InstrumentationBase",{enumerable:!0,get:function(){return Vye.InstrumentationBase}});var Bye=b2();Object.defineProperty(Va,"normalize",{enumerable:!0,get:function(){return Bye.normalize}})});var sP=c(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.normalize=Ba.InstrumentationBase=void 0;var y2=P2();Object.defineProperty(Ba,"InstrumentationBase",{enumerable:!0,get:function(){return y2.InstrumentationBase}});Object.defineProperty(Ba,"normalize",{enumerable:!0,get:function(){return y2.normalize}})});var v2=c(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.InstrumentationNodeModuleDefinition=void 0;var aP=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};eg.InstrumentationNodeModuleDefinition=aP});var N2=c(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});tg.InstrumentationNodeModuleFile=void 0;var qye=sP(),uP=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,qye.normalize)(e)}};tg.InstrumentationNodeModuleFile=uP});var je=c(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.safeExecuteInTheMiddleAsync=Rt.safeExecuteInTheMiddle=Rt.isWrapped=Rt.InstrumentationNodeModuleFile=Rt.InstrumentationNodeModuleDefinition=Rt.InstrumentationBase=Rt.registerInstrumentations=void 0;var jye=lX();Object.defineProperty(Rt,"registerInstrumentations",{enumerable:!0,get:function(){return jye.registerInstrumentations}});var Hye=sP();Object.defineProperty(Rt,"InstrumentationBase",{enumerable:!0,get:function(){return Hye.InstrumentationBase}});var Fye=v2();Object.defineProperty(Rt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return Fye.InstrumentationNodeModuleDefinition}});var kye=N2();Object.defineProperty(Rt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return kye.InstrumentationNodeModuleFile}});var cP=rP();Object.defineProperty(Rt,"isWrapped",{enumerable:!0,get:function(){return cP.isWrapped}});Object.defineProperty(Rt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return cP.safeExecuteInTheMiddle}});Object.defineProperty(Rt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return cP.safeExecuteInTheMiddleAsync}})});var D2=c(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});rg.HttpInstrumentation=void 0;var K=(y(),T(P)),qa=Af(),C2=Sr(),M2=m("url"),Se=yb(),Wye=JK(),Ir=je(),L2=Af(),lP=m("events"),Yye=(Q(),T($)),dP=class extends Ir.InstrumentationBase{constructor(e={}){super("@opentelemetry/instrumentation-http",Wye.VERSION,e),this._spanNotEnded=new WeakSet,this._headerCapture=this._createHeaderCapture()}_updateMetricInstruments(){this._httpServerDurationHistogram=this.meter.createHistogram("http.server.duration",{description:"Measures the duration of inbound HTTP requests.",unit:"ms",valueType:K.ValueType.DOUBLE}),this._httpClientDurationHistogram=this.meter.createHistogram("http.client.duration",{description:"Measures the duration of outbound HTTP requests.",unit:"ms",valueType:K.ValueType.DOUBLE})}setConfig(e={}){super.setConfig(e),this._headerCapture=this._createHeaderCapture()}init(){return[this._getHttpsInstrumentation(),this._getHttpInstrumentation()]}_getHttpInstrumentation(){return new Ir.InstrumentationNodeModuleDefinition("http",["*"],e=>{if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(e,"request",this._getPatchOutgoingRequestFunction("http"));this._wrap(e,"get",this._getPatchOutgoingGetFunction(r))}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction("http")),e},e=>{e!==void 0&&(this.getConfig().disableOutgoingRequestInstrumentation||(this._unwrap(e,"request"),this._unwrap(e,"get")),this.getConfig().disableIncomingRequestInstrumentation||this._unwrap(e.Server.prototype,"emit"))})}_getHttpsInstrumentation(){return new Ir.InstrumentationNodeModuleDefinition("https",["*"],e=>{if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(e,"request",this._getPatchHttpsOutgoingRequestFunction("https"));this._wrap(e,"get",this._getPatchHttpsOutgoingGetFunction(r))}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction("https")),e},e=>{e!==void 0&&(this.getConfig().disableOutgoingRequestInstrumentation||(this._unwrap(e,"request"),this._unwrap(e,"get")),this.getConfig().disableIncomingRequestInstrumentation||this._unwrap(e.Server.prototype,"emit"))})}_getPatchIncomingRequestFunction(e){return r=>this._incomingRequestFunction(e,r)}_getPatchOutgoingRequestFunction(e){return r=>this._outgoingRequestFunction(e,r)}_getPatchOutgoingGetFunction(e){return r=>function(o,...i){let s=e(o,...i);return s.end(),s}}_getPatchHttpsOutgoingRequestFunction(e){return r=>{let n=this;return function(i,...s){var a;return e==="https"&&typeof i=="object"&&((a=i?.constructor)===null||a===void 0?void 0:a.name)!=="URL"&&(i=Object.assign({},i),n._setDefaultOptions(i)),n._getPatchOutgoingRequestFunction(e)(r)(i,...s)}}}_setDefaultOptions(e){e.protocol=e.protocol||"https:",e.port=e.port||443}_getPatchHttpsOutgoingGetFunction(e){return r=>{let n=this;return function(i,...s){return n._getPatchOutgoingGetFunction(e)(r)(i,...s)}}}_traceClientRequest(e,r,n,o){this.getConfig().requestHook&&this._callRequestHook(r,e);let i=!1;return e.prependListener("response",s=>{this._diag.debug("outgoingRequest on response()"),e.listenerCount("response")<=1&&s.resume();let a=Se.getOutgoingRequestAttributesOnResponse(s);r.setAttributes(a),o=Object.assign(o,Se.getOutgoingRequestMetricAttributesOnResponse(a)),this.getConfig().responseHook&&this._callResponseHook(r,s),this._headerCapture.client.captureRequestHeaders(r,l=>e.getHeader(l)),this._headerCapture.client.captureResponseHeaders(r,l=>s.headers[l]),K.context.bind(K.context.active(),s);let u=()=>{if(this._diag.debug("outgoingRequest on end()"),i)return;i=!0;let l;s.aborted&&!s.complete?l={code:K.SpanStatusCode.ERROR}:l={code:Se.parseResponseStatus(K.SpanKind.CLIENT,s.statusCode)},r.setStatus(l),this.getConfig().applyCustomAttributesOnSpan&&(0,Ir.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(r,e,s),()=>{},!0),this._closeHttpSpan(r,K.SpanKind.CLIENT,n,o)};s.on("end",u),C2.lt(process.version,"16.0.0")&&s.on("close",u),s.on(lP.errorMonitor,l=>{this._diag.debug("outgoingRequest on error()",l),!i&&(i=!0,Se.setSpanWithError(r,l),r.setStatus({code:K.SpanStatusCode.ERROR,message:l.message}),this._closeHttpSpan(r,K.SpanKind.CLIENT,n,o))})}),e.on("close",()=>{this._diag.debug("outgoingRequest on request close()"),!(e.aborted||i)&&(i=!0,this._closeHttpSpan(r,K.SpanKind.CLIENT,n,o))}),e.on(lP.errorMonitor,s=>{this._diag.debug("outgoingRequest on request error()",s),!i&&(i=!0,Se.setSpanWithError(r,s),this._closeHttpSpan(r,K.SpanKind.CLIENT,n,o))}),this._diag.debug("http.ClientRequest return request"),e}_incomingRequestFunction(e,r){let n=this;return function(i,...s){if(i!=="request")return r.apply(this,[i,...s]);let a=s[0],u=s[1],l=a.url&&M2.parse(a.url).pathname||"/",d=a.method||"GET";if(n._diag.debug(`${e} instrumentation incomingRequest`),Se.isIgnored(l,n.getConfig().ignoreIncomingPaths,D=>n._diag.error("caught ignoreIncomingPaths error: ",D))||(0,Ir.safeExecuteInTheMiddle)(()=>{var D,L;return(L=(D=n.getConfig()).ignoreIncomingRequestHook)===null||L===void 0?void 0:L.call(D,a)},D=>{D!=null&&n._diag.error("caught ignoreIncomingRequestHook error: ",D)},!0))return K.context.with((0,qa.suppressTracing)(K.context.active()),()=>(K.context.bind(K.context.active(),a),K.context.bind(K.context.active(),u),r.apply(this,[i,...s])));let p=a.headers,_=Se.getIncomingRequestAttributes(a,{component:e,serverName:n.getConfig().serverName,hookAttributes:n._callStartSpanHook(a,n.getConfig().startIncomingSpanHook)}),f={kind:K.SpanKind.SERVER,attributes:_},g=(0,qa.hrTime)(),E=Se.getIncomingRequestMetricAttributes(_),S=K.propagation.extract(K.ROOT_CONTEXT,p),v=n._startHttpSpan(d,f,S),M={type:L2.RPCType.HTTP,span:v};return K.context.with((0,L2.setRPCMetadata)(K.trace.setSpan(S,v),M),()=>{K.context.bind(K.context.active(),a),K.context.bind(K.context.active(),u),n.getConfig().requestHook&&n._callRequestHook(v,a),n.getConfig().responseHook&&n._callResponseHook(v,u),n._headerCapture.server.captureRequestHeaders(v,L=>a.headers[L]);let D=!1;return u.on("close",()=>{D||n._onServerResponseFinish(a,u,v,E,g)}),u.on(lP.errorMonitor,L=>{D=!0,n._onServerResponseError(v,E,g,L)}),(0,Ir.safeExecuteInTheMiddle)(()=>r.apply(this,[i,...s]),L=>{if(L)throw Se.setSpanWithError(v,L),n._closeHttpSpan(v,K.SpanKind.SERVER,g,E),L})})}}_outgoingRequestFunction(e,r){let n=this;return function(i,...s){if(!Se.isValidOptionsType(i))return r.apply(this,[i,...s]);let a=typeof s[0]=="object"&&(typeof i=="string"||i instanceof M2.URL)?s.shift():void 0,{origin:u,pathname:l,method:d,optionsParsed:p}=Se.getRequestInfo(i,a);if(e==="http"&&C2.lt(process.version,"9.0.0")&&p.protocol==="https:")return r.apply(this,[p,...s]);if(Se.isIgnored(u+l,n.getConfig().ignoreOutgoingUrls,N=>n._diag.error("caught ignoreOutgoingUrls error: ",N))||(0,Ir.safeExecuteInTheMiddle)(()=>{var N,G;return(G=(N=n.getConfig()).ignoreOutgoingRequestHook)===null||G===void 0?void 0:G.call(N,p)},N=>{N!=null&&n._diag.error("caught ignoreOutgoingRequestHook error: ",N)},!0))return r.apply(this,[p,...s]);let{hostname:_,port:f}=Se.extractHostnameAndPort(p),g=Se.getOutgoingRequestAttributes(p,{component:e,port:f,hostname:_,hookAttributes:n._callStartSpanHook(p,n.getConfig().startOutgoingSpanHook)}),E=(0,qa.hrTime)(),S=Se.getOutgoingRequestMetricAttributes(g),v={kind:K.SpanKind.CLIENT,attributes:g},M=n._startHttpSpan(d,v),D=K.context.active(),L=K.trace.setSpan(D,M);return p.headers?p.headers=Object.assign({},p.headers):p.headers={},K.propagation.inject(L,p.headers),K.context.with(L,()=>{let N=s[s.length-1];typeof N=="function"&&(s[s.length-1]=K.context.bind(D,N));let G=(0,Ir.safeExecuteInTheMiddle)(()=>r.apply(this,[p,...s]),w=>{if(w)throw Se.setSpanWithError(M,w),n._closeHttpSpan(M,K.SpanKind.CLIENT,E,S),w});return n._diag.debug(`${e} instrumentation outgoingRequest`),K.context.bind(D,G),n._traceClientRequest(G,M,E,S)})}}_onServerResponseFinish(e,r,n,o,i){let s=Se.getIncomingRequestAttributesOnResponse(e,r);o=Object.assign(o,Se.getIncomingRequestMetricAttributesOnResponse(s)),this._headerCapture.server.captureResponseHeaders(n,u=>r.getHeader(u)),n.setAttributes(s).setStatus({code:Se.parseResponseStatus(K.SpanKind.SERVER,r.statusCode)});let a=s[Yye.SEMATTRS_HTTP_ROUTE];a&&n.updateName(`${e.method||"GET"} ${a}`),this.getConfig().applyCustomAttributesOnSpan&&(0,Ir.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(n,e,r),()=>{},!0),this._closeHttpSpan(n,K.SpanKind.SERVER,i,o)}_onServerResponseError(e,r,n,o){Se.setSpanWithError(e,o),this._closeHttpSpan(e,K.SpanKind.SERVER,n,r)}_startHttpSpan(e,r,n=K.context.active()){let o=r.kind===K.SpanKind.CLIENT?this.getConfig().requireParentforOutgoingSpans:this.getConfig().requireParentforIncomingSpans,i,s=K.trace.getSpan(n);return o===!0&&s===void 0?i=K.trace.wrapSpanContext(K.INVALID_SPAN_CONTEXT):o===!0&&s?.spanContext().isRemote?i=s:i=this.tracer.startSpan(e,r,n),this._spanNotEnded.add(i),i}_closeHttpSpan(e,r,n,o){if(!this._spanNotEnded.has(e))return;e.end(),this._spanNotEnded.delete(e);let i=(0,qa.hrTimeToMilliseconds)((0,qa.hrTimeDuration)(n,(0,qa.hrTime)()));r===K.SpanKind.SERVER?this._httpServerDurationHistogram.record(i,o):r===K.SpanKind.CLIENT&&this._httpClientDurationHistogram.record(i,o)}_callResponseHook(e,r){(0,Ir.safeExecuteInTheMiddle)(()=>this.getConfig().responseHook(e,r),()=>{},!0)}_callRequestHook(e,r){(0,Ir.safeExecuteInTheMiddle)(()=>this.getConfig().requestHook(e,r),()=>{},!0)}_callStartSpanHook(e,r){if(typeof r=="function")return(0,Ir.safeExecuteInTheMiddle)(()=>r(e),()=>{},!0)}_createHeaderCapture(){var e,r,n,o,i,s,a,u,l,d,p,_;let f=this.getConfig();return{client:{captureRequestHeaders:Se.headerCapture("request",(n=(r=(e=f.headersToSpanAttributes)===null||e===void 0?void 0:e.client)===null||r===void 0?void 0:r.requestHeaders)!==null&&n!==void 0?n:[]),captureResponseHeaders:Se.headerCapture("response",(s=(i=(o=f.headersToSpanAttributes)===null||o===void 0?void 0:o.client)===null||i===void 0?void 0:i.responseHeaders)!==null&&s!==void 0?s:[])},server:{captureRequestHeaders:Se.headerCapture("request",(l=(u=(a=f.headersToSpanAttributes)===null||a===void 0?void 0:a.server)===null||u===void 0?void 0:u.requestHeaders)!==null&&l!==void 0?l:[]),captureResponseHeaders:Se.headerCapture("response",(_=(p=(d=f.headersToSpanAttributes)===null||d===void 0?void 0:d.server)===null||p===void 0?void 0:p.responseHeaders)!==null&&_!==void 0?_:[])}}}};rg.HttpInstrumentation=dP});var pP=c(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.setSpanWithError=Y.setResponseContentLengthAttribute=Y.setRequestContentLengthAttribute=Y.setAttributesFromHttpKind=Y.satisfiesPattern=Y.parseResponseStatus=Y.isValidOptionsType=Y.isIgnored=Y.isCompressed=Y.headerCapture=Y.getRequestInfo=Y.getOutgoingRequestMetricAttributesOnResponse=Y.getOutgoingRequestMetricAttributes=Y.getOutgoingRequestAttributesOnResponse=Y.getOutgoingRequestAttributes=Y.getIncomingRequestMetricAttributesOnResponse=Y.getIncomingRequestMetricAttributes=Y.getIncomingRequestAttributesOnResponse=Y.getIncomingRequestAttributes=Y.getAbsoluteUrl=Y.extractHostnameAndPort=Y.HttpInstrumentation=void 0;var Kye=D2();Object.defineProperty(Y,"HttpInstrumentation",{enumerable:!0,get:function(){return Kye.HttpInstrumentation}});var xe=yb();Object.defineProperty(Y,"extractHostnameAndPort",{enumerable:!0,get:function(){return xe.extractHostnameAndPort}});Object.defineProperty(Y,"getAbsoluteUrl",{enumerable:!0,get:function(){return xe.getAbsoluteUrl}});Object.defineProperty(Y,"getIncomingRequestAttributes",{enumerable:!0,get:function(){return xe.getIncomingRequestAttributes}});Object.defineProperty(Y,"getIncomingRequestAttributesOnResponse",{enumerable:!0,get:function(){return xe.getIncomingRequestAttributesOnResponse}});Object.defineProperty(Y,"getIncomingRequestMetricAttributes",{enumerable:!0,get:function(){return xe.getIncomingRequestMetricAttributes}});Object.defineProperty(Y,"getIncomingRequestMetricAttributesOnResponse",{enumerable:!0,get:function(){return xe.getIncomingRequestMetricAttributesOnResponse}});Object.defineProperty(Y,"getOutgoingRequestAttributes",{enumerable:!0,get:function(){return xe.getOutgoingRequestAttributes}});Object.defineProperty(Y,"getOutgoingRequestAttributesOnResponse",{enumerable:!0,get:function(){return xe.getOutgoingRequestAttributesOnResponse}});Object.defineProperty(Y,"getOutgoingRequestMetricAttributes",{enumerable:!0,get:function(){return xe.getOutgoingRequestMetricAttributes}});Object.defineProperty(Y,"getOutgoingRequestMetricAttributesOnResponse",{enumerable:!0,get:function(){return xe.getOutgoingRequestMetricAttributesOnResponse}});Object.defineProperty(Y,"getRequestInfo",{enumerable:!0,get:function(){return xe.getRequestInfo}});Object.defineProperty(Y,"headerCapture",{enumerable:!0,get:function(){return xe.headerCapture}});Object.defineProperty(Y,"isCompressed",{enumerable:!0,get:function(){return xe.isCompressed}});Object.defineProperty(Y,"isIgnored",{enumerable:!0,get:function(){return xe.isIgnored}});Object.defineProperty(Y,"isValidOptionsType",{enumerable:!0,get:function(){return xe.isValidOptionsType}});Object.defineProperty(Y,"parseResponseStatus",{enumerable:!0,get:function(){return xe.parseResponseStatus}});Object.defineProperty(Y,"satisfiesPattern",{enumerable:!0,get:function(){return xe.satisfiesPattern}});Object.defineProperty(Y,"setAttributesFromHttpKind",{enumerable:!0,get:function(){return xe.setAttributesFromHttpKind}});Object.defineProperty(Y,"setRequestContentLengthAttribute",{enumerable:!0,get:function(){return xe.setRequestContentLengthAttribute}});Object.defineProperty(Y,"setResponseContentLengthAttribute",{enumerable:!0,get:function(){return xe.setResponseContentLengthAttribute}});Object.defineProperty(Y,"setSpanWithError",{enumerable:!0,get:function(){return xe.setSpanWithError}})});var Ae=c(_P=>{Object.defineProperty(_P,"__esModule",{value:!0});var Xye=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;_P.DEBUG_BUILD=Xye});var Wo=c(ng=>{Object.defineProperty(ng,"__esModule",{value:!0});var sd=b();function Zye(){return G2(sd.GLOBAL_OBJ),sd.GLOBAL_OBJ}function G2(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||sd.SDK_VERSION,e[sd.SDK_VERSION]=e[sd.SDK_VERSION]||{}}ng.getMainCarrier=Zye;ng.getSentryCarrier=G2});var cd=c(ud=>{Object.defineProperty(ud,"__esModule",{value:!0});var ad=b();function zye(t){let e=ad.timestampInSeconds(),r={sid:ad.uuid4(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>$ye(r)};return t&&fP(r,t),r}function fP(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||ad.timestampInSeconds(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:ad.uuid4()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let r=t.timestamp-t.started;t.duration=r>=0?r: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),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Jye(t,e){let r={};e?r={status:e}:t.status==="ok"&&(r={status:"exited"}),fP(t,r)}function $ye(t){return ad.dropUndefinedKeys({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${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}})}ud.closeSession=Jye;ud.makeSession=zye;ud.updateSession=fP});var ja=c(og=>{Object.defineProperty(og,"__esModule",{value:!0});var Qye=b(),gP="_sentrySpan";function eve(t,e){e?Qye.addNonEnumerableProperty(t,gP,e):delete t[gP]}function tve(t){return t[gP]}og._getSpanForScope=tve;og._setSpanForScope=eve});var Ha=c(hP=>{Object.defineProperty(hP,"__esModule",{value:!0});var dn=b(),rve=cd(),ig=ja(),nve=100,EP=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=dn.generatePropagationContext()}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,ig._setSpanForScope(e,ig._getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&rve.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let r=typeof e=="function"?e(this):e,[n,o]=r instanceof U2?[r.getScopeData(),r.getRequestSession()]:dn.isPlainObject(r)?[e,e.requestSession]:[],{tags:i,extra:s,user:a,contexts:u,level:l,fingerprint:d=[],propagationContext:p}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...u},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),d.length&&(this._fingerprint=d),p&&(this._propagationContext=p),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,ig._setSpanForScope(this,void 0),this._attachments=[],this._propagationContext=dn.generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(e,r){let n=typeof r=="number"?r:nve;if(n<=0)return this;let o={timestamp:dn.dateTimestampInSeconds(),...e},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ig._getSpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,r){let n=r&&r.event_id?r.event_id:dn.uuid4();if(!this._client)return dn.logger.warn("No client configured on scope - will not capture exception!"),n;let o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){let o=n&&n.event_id?n.event_id:dn.uuid4();if(!this._client)return dn.logger.warn("No client configured on scope - will not capture message!"),o;let i=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:i,...n,event_id:o},this),o}captureEvent(e,r){let n=r&&r.event_id?r.event_id:dn.uuid4();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(dn.logger.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}},U2=EP;hP.Scope=U2});var mP=c(sg=>{Object.defineProperty(sg,"__esModule",{value:!0});var x2=b(),w2=Ha();function ove(){return x2.getGlobalSingleton("defaultCurrentScope",()=>new w2.Scope)}function ive(){return x2.getGlobalSingleton("defaultIsolationScope",()=>new w2.Scope)}sg.getDefaultCurrentScope=ove;sg.getDefaultIsolationScope=ive});var H2=c(ug=>{Object.defineProperty(ug,"__esModule",{value:!0});var sve=b(),V2=mP(),B2=Ha(),q2=Wo(),ag=class{constructor(e,r){let n;e?n=e:n=new B2.Scope;let o;r?o=r:o=new B2.Scope,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){let r=this._pushScope(),n;try{n=e(r)}catch(o){throw this._popScope(),o}return sve.isThenable(n)?n.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Fa(){let t=q2.getMainCarrier(),e=q2.getSentryCarrier(t);return e.stack=e.stack||new ag(V2.getDefaultCurrentScope(),V2.getDefaultIsolationScope())}function ave(t){return Fa().withScope(t)}function uve(t,e){let r=Fa();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function j2(t){return Fa().withScope(()=>t(Fa().getIsolationScope()))}function cve(){return{withIsolationScope:j2,withScope:ave,withSetScope:uve,withSetIsolationScope:(t,e)=>j2(e),getCurrentScope:()=>Fa().getScope(),getIsolationScope:()=>Fa().getIsolationScope()}}ug.AsyncContextStack=ag;ug.getStackAsyncContextStrategy=cve});var ka=c(cg=>{Object.defineProperty(cg,"__esModule",{value:!0});var TP=Wo(),lve=H2();function dve(t){let e=TP.getMainCarrier(),r=TP.getSentryCarrier(e);r.acs=t}function pve(t){let e=TP.getSentryCarrier(t);return e.acs?e.acs:lve.getStackAsyncContextStrategy()}cg.getAsyncContextStrategy=pve;cg.setAsyncContextStrategy=dve});var me=c(Yo=>{Object.defineProperty(Yo,"__esModule",{value:!0});var _ve=b(),lg=ka(),dg=Wo(),fve=Ha();function F2(){let t=dg.getMainCarrier();return lg.getAsyncContextStrategy(t).getCurrentScope()}function gve(){let t=dg.getMainCarrier();return lg.getAsyncContextStrategy(t).getIsolationScope()}function Eve(){return _ve.getGlobalSingleton("globalScope",()=>new fve.Scope)}function hve(...t){let e=dg.getMainCarrier(),r=lg.getAsyncContextStrategy(e);if(t.length===2){let[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function mve(...t){let e=dg.getMainCarrier(),r=lg.getAsyncContextStrategy(e);if(t.length===2){let[n,o]=t;return n?r.withSetIsolationScope(n,o):r.withIsolationScope(o)}return r.withIsolationScope(t[0])}function Tve(){return F2().getClient()}Yo.getClient=Tve;Yo.getCurrentScope=F2;Yo.getGlobalScope=Eve;Yo.getIsolationScope=gve;Yo.withIsolationScope=mve;Yo.withScope=hve});var _g=c(pg=>{Object.defineProperty(pg,"__esModule",{value:!0});var Sve=b(),SP="_sentryMetrics";function Ave(t){let e=t[SP];if(!e)return;let r={};for(let[,[n,o]]of e)(r[n]||(r[n]=[])).push(Sve.dropUndefinedKeys(o));return r}function Rve(t,e,r,n,o,i,s){let u=t[SP]||(t[SP]=new Map),l=`${e}:${r}@${o}`,d=u.get(s);if(d){let[,p]=d;u.set(s,[l,{min:Math.min(p.min,n),max:Math.max(p.max,n),count:p.count+=1,sum:p.sum+=n,tags:p.tags}])}else u.set(s,[l,{min:n,max:n,count:1,sum:n,tags:i}])}pg.getMetricSummaryJsonForSpan=Ave;pg.updateMetricSummaryOnSpan=Rve});var pn=c(Ot=>{Object.defineProperty(Ot,"__esModule",{value:!0});var Ove="sentry.source",Ive="sentry.sample_rate",bve="sentry.op",Pve="sentry.origin",yve="sentry.idle_span_finish_reason",vve="sentry.measurement_unit",Nve="sentry.measurement_value",Cve="sentry.profile_id",Mve="sentry.exclusive_time",Lve="cache.hit",Dve="cache.key",Gve="cache.item_size",Uve="http.request.method",xve="url.full";Ot.SEMANTIC_ATTRIBUTE_CACHE_HIT=Lve;Ot.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=Gve;Ot.SEMANTIC_ATTRIBUTE_CACHE_KEY=Dve;Ot.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=Mve;Ot.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=Uve;Ot.SEMANTIC_ATTRIBUTE_PROFILE_ID=Cve;Ot.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=yve;Ot.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=vve;Ot.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=Nve;Ot.SEMANTIC_ATTRIBUTE_SENTRY_OP=bve;Ot.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=Pve;Ot.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=Ive;Ot.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=Ove;Ot.SEMANTIC_ATTRIBUTE_URL_FULL=xve});var Ss=c(Ts=>{Object.defineProperty(Ts,"__esModule",{value:!0});var wve=0,k2=1,Qt=2;function W2(t){if(t<400&&t>=100)return{code:k2};if(t>=400&&t<500)switch(t){case 401:return{code:Qt,message:"unauthenticated"};case 403:return{code:Qt,message:"permission_denied"};case 404:return{code:Qt,message:"not_found"};case 409:return{code:Qt,message:"already_exists"};case 413:return{code:Qt,message:"failed_precondition"};case 429:return{code:Qt,message:"resource_exhausted"};case 499:return{code:Qt,message:"cancelled"};default:return{code:Qt,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:Qt,message:"unimplemented"};case 503:return{code:Qt,message:"unavailable"};case 504:return{code:Qt,message:"deadline_exceeded"};default:return{code:Qt,message:"internal_error"}}return{code:Qt,message:"unknown_error"}}function Vve(t,e){t.setAttribute("http.response.status_code",e);let r=W2(e);r.message!=="unknown_error"&&t.setStatus(r)}Ts.SPAN_STATUS_ERROR=Qt;Ts.SPAN_STATUS_OK=k2;Ts.SPAN_STATUS_UNSET=wve;Ts.getSpanStatusFromHttpCode=W2;Ts.setHttpStatus=Vve});var Ze=c(pt=>{Object.defineProperty(pt,"__esModule",{value:!0});var Rs=b(),Bve=ka(),qve=Wo(),jve=me(),Z2=_g(),Y2=pn(),K2=Ss(),Hve=ja(),Fve=0,z2=1;function kve(t){let{spanId:e,traceId:r}=t.spanContext(),{data:n,op:o,parent_span_id:i,status:s,origin:a}=OP(t);return Rs.dropUndefinedKeys({parent_span_id:i,span_id:e,trace_id:r,data:n,op:o,status:s,origin:a})}function Wve(t){let{spanId:e,traceId:r}=t.spanContext(),{parent_span_id:n}=OP(t);return Rs.dropUndefinedKeys({parent_span_id:n,span_id:e,trace_id:r})}function Yve(t){let{traceId:e,spanId:r}=t.spanContext(),n=IP(t);return Rs.generateSentryTraceHeader(e,r,n)}function AP(t){return typeof t=="number"?X2(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?X2(t.getTime()):Rs.timestampInSeconds()}function X2(t){return t>9999999999?t/1e3:t}function OP(t){if(Xve(t))return t.getSpanJSON();try{let{spanId:e,traceId:r}=t.spanContext();if(Kve(t)){let{attributes:n,startTime:o,name:i,endTime:s,parentSpanId:a,status:u}=t;return Rs.dropUndefinedKeys({span_id:e,trace_id:r,data:n,description:i,parent_span_id:a,start_timestamp:AP(o),timestamp:AP(s)||void 0,status:J2(u),op:n[Y2.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:n[Y2.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:Z2.getMetricSummaryJsonForSpan(t)})}return{span_id:e,trace_id:r}}catch{return{}}}function Kve(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Xve(t){return typeof t.getSpanJSON=="function"}function IP(t){let{traceFlags:e}=t.spanContext();return e===z2}function J2(t){if(!(!t||t.code===K2.SPAN_STATUS_UNSET))return t.code===K2.SPAN_STATUS_OK?"ok":t.message||"unknown_error"}var As="_sentryChildSpans",RP="_sentryRootSpan";function Zve(t,e){let r=t[RP]||t;Rs.addNonEnumerableProperty(e,RP,r),t[As]?t[As].add(e):Rs.addNonEnumerableProperty(t,As,new Set([e]))}function zve(t,e){t[As]&&t[As].delete(e)}function Jve(t){let e=new Set;function r(n){if(!e.has(n)&&IP(n)){e.add(n);let o=n[As]?Array.from(n[As]):[];for(let i of o)r(i)}}return r(t),Array.from(e)}function $ve(t){return t[RP]||t}function $2(){let t=qve.getMainCarrier(),e=Bve.getAsyncContextStrategy(t);return e.getActiveSpan?e.getActiveSpan():Hve._getSpanForScope(jve.getCurrentScope())}function Qve(t,e,r,n,o,i){let s=$2();s&&Z2.updateMetricSummaryOnSpan(s,t,e,r,n,o,i)}pt.TRACE_FLAG_NONE=Fve;pt.TRACE_FLAG_SAMPLED=z2;pt.addChildSpanToSpan=Zve;pt.getActiveSpan=$2;pt.getRootSpan=$ve;pt.getSpanDescendants=Jve;pt.getStatusMessage=J2;pt.removeChildSpanFromSpan=zve;pt.spanIsSampled=IP;pt.spanTimeInputToSeconds=AP;pt.spanToJSON=OP;pt.spanToTraceContext=Wve;pt.spanToTraceHeader=Yve;pt.spanToTransactionTraceContext=kve;pt.updateMetricSummaryOnActiveSpan=Qve});var Ko=c(yP=>{Object.defineProperty(yP,"__esModule",{value:!0});var bP=b(),eNe=Ae(),Q2=Ze(),tNe=Ss(),eZ=!1;function rNe(){eZ||(eZ=!0,bP.addGlobalErrorInstrumentationHandler(PP),bP.addGlobalUnhandledRejectionInstrumentationHandler(PP))}function PP(){let t=Q2.getActiveSpan(),e=t&&Q2.getRootSpan(t);if(e){let r="internal_error";eNe.DEBUG_BUILD&&bP.logger.log(`[Tracing] Root span: ${r} -> Global error occurred`),e.setStatus({code:tNe.SPAN_STATUS_ERROR,message:r})}}PP.tag="sentry_tracingErrorCallback";yP.registerSpanErrorInstrumentation=rNe});var fg=c(ld=>{Object.defineProperty(ld,"__esModule",{value:!0});var vP=b(),tZ="_sentryScope",rZ="_sentryIsolationScope";function nNe(t,e,r){t&&(vP.addNonEnumerableProperty(t,rZ,r),vP.addNonEnumerableProperty(t,tZ,e))}function oNe(t){return{scope:t[tZ],isolationScope:t[rZ]}}ld.stripUrlQueryAndFragment=vP.stripUrlQueryAndFragment;ld.getCapturedScopesOnSpan=oNe;ld.setCapturedScopesOnSpan=nNe});var nZ=c(NP=>{Object.defineProperty(NP,"__esModule",{value:!0});var iNe=Ko();function sNe(){iNe.registerSpanErrorInstrumentation()}NP.addTracingExtensions=sNe});var Os=c(CP=>{Object.defineProperty(CP,"__esModule",{value:!0});var aNe=me();function uNe(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=aNe.getClient(),r=t||e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}CP.hasTracingEnabled=uNe});var dd=c(LP=>{Object.defineProperty(LP,"__esModule",{value:!0});var oZ=b(),cNe=Ze(),MP=class{constructor(e={}){this._traceId=e.traceId||oZ.uuid4(),this._spanId=e.spanId||oZ.uuid4().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:cNe.TRACE_FLAG_NONE}}end(e){}setAttribute(e,r){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,r,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,r){}};LP.SentryNonRecordingSpan=MP});var gg=c(DP=>{Object.defineProperty(DP,"__esModule",{value:!0});var lNe=b();function dNe(t,e,r=()=>{}){let n;try{n=t()}catch(o){throw e(o),r(),o}return pNe(n,e,r)}function pNe(t,e,r){return lNe.isThenable(t)?t.then(n=>(r(),n),n=>{throw e(n),r(),n}):(r(),t)}DP.handleCallbackErrors=dNe});var pd=c(GP=>{Object.defineProperty(GP,"__esModule",{value:!0});var _Ne="production";GP.DEFAULT_ENVIRONMENT=_Ne});var _n=c(Wa=>{Object.defineProperty(Wa,"__esModule",{value:!0});var hg=b(),fNe=pd(),gNe=me(),iZ=pn(),ENe=Os(),Eg=Ze(),sZ="_frozenDsc";function hNe(t,e){let r=t;hg.addNonEnumerableProperty(r,sZ,e)}function aZ(t,e){let r=e.getOptions(),{publicKey:n}=e.getDsn()||{},o=hg.dropUndefinedKeys({environment:r.environment||fNe.DEFAULT_ENVIRONMENT,release:r.release,public_key:n,trace_id:t});return e.emit("createDsc",o),o}function uZ(t){let e=gNe.getClient();if(!e)return{};let r=aZ(Eg.spanToJSON(t).trace_id||"",e),n=Eg.getRootSpan(t),o=n[sZ];if(o)return o;let i=n.spanContext().traceState,s=i&&i.get("sentry.dsc"),a=s&&hg.baggageHeaderToDynamicSamplingContext(s);if(a)return a;let u=Eg.spanToJSON(n),l=u.data||{},d=l[iZ.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];d!=null&&(r.sample_rate=`${d}`);let p=l[iZ.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],_=u.description;return p!=="url"&&_&&(r.transaction=_),ENe.hasTracingEnabled()&&(r.sampled=String(Eg.spanIsSampled(n))),e.emit("createDsc",r,n),r}function mNe(t){let e=uZ(t);return hg.dynamicSamplingContextToSentryBaggageHeader(e)}Wa.freezeDscOnSpan=hNe;Wa.getDynamicSamplingContextFromClient=aZ;Wa.getDynamicSamplingContextFromSpan=uZ;Wa.spanToBaggageHeader=mNe});var Tg=c(mg=>{Object.defineProperty(mg,"__esModule",{value:!0});var cZ=b(),lZ=Ae(),Ya=Ze();function TNe(t){if(!lZ.DEBUG_BUILD)return;let{description:e="< unknown name >",op:r="< unknown op >",parent_span_id:n}=Ya.spanToJSON(t),{spanId:o}=t.spanContext(),i=Ya.spanIsSampled(t),s=Ya.getRootSpan(t),a=s===t,u=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${r}`,`name: ${e}`,`ID: ${o}`];if(n&&l.push(`parent ID: ${n}`),!a){let{op:d,description:p}=Ya.spanToJSON(s);l.push(`root ID: ${s.spanContext().spanId}`),d&&l.push(`root op: ${d}`),p&&l.push(`root description: ${p}`)}cZ.logger.log(`${u}
12
+ ${l.join(`
13
+ `)}`)}function SNe(t){if(!lZ.DEBUG_BUILD)return;let{description:e="< unknown name >",op:r="< unknown op >"}=Ya.spanToJSON(t),{spanId:n}=t.spanContext(),i=Ya.getRootSpan(t)===t,s=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${e}" with ID ${n}`;cZ.logger.log(s)}mg.logSpanEnd=SNe;mg.logSpanStart=TNe});var Sg=c(UP=>{Object.defineProperty(UP,"__esModule",{value:!0});var ANe=b(),RNe=Ae();function ONe(t){if(typeof t=="boolean")return Number(t);let e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){RNe.DEBUG_BUILD&&ANe.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}UP.parseSampleRate=ONe});var BP=c(VP=>{Object.defineProperty(VP,"__esModule",{value:!0});var xP=b(),wP=Ae(),INe=Os(),bNe=Sg();function PNe(t,e){if(!INe.hasTracingEnabled(t))return[!1];let r;typeof t.tracesSampler=="function"?r=t.tracesSampler(e):e.parentSampled!==void 0?r=e.parentSampled:typeof t.tracesSampleRate<"u"?r=t.tracesSampleRate:r=1;let n=bNe.parseSampleRate(r);return n===void 0?(wP.DEBUG_BUILD&&xP.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):n?Math.random()<n?[!0,n]:(wP.DEBUG_BUILD&&xP.logger.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[!1,n]):(wP.DEBUG_BUILD&&xP.logger.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,n])}VP.sampleSpan=PNe});var Ag=c(_d=>{Object.defineProperty(_d,"__esModule",{value:!0});var $n=b(),yNe=_n(),dZ=Ze();function vNe(t,e){return 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}function NNe(t,e,r,n){let o=$n.getSdkMetadataForEnvelopeHeader(r),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:$n.dsnToString(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return $n.createEnvelope(i,[s])}function CNe(t,e,r,n){let o=$n.getSdkMetadataForEnvelopeHeader(r),i=t.type&&t.type!=="replay_event"?t.type:"event";vNe(t,r&&r.sdk);let s=$n.createEventEnvelopeHeaders(t,o,n,e);delete t.sdkProcessingMetadata;let a=[{type:i},t];return $n.createEnvelope(s,[a])}function MNe(t,e){function r(d){return!!d.trace_id&&!!d.public_key}let n=yNe.getDynamicSamplingContextFromSpan(t[0]),o=e&&e.getDsn(),i=e&&e.getOptions().tunnel,s={sent_at:new Date().toISOString(),...r(n)&&{trace:n},...!!i&&o&&{dsn:$n.dsnToString(o)}},a=e&&e.getOptions().beforeSendSpan,u=a?d=>a(dZ.spanToJSON(d)):d=>dZ.spanToJSON(d),l=[];for(let d of t){let p=u(d);p&&l.push($n.createSpanEnvelopeItem(p))}return $n.createEnvelope(s,l)}_d.createEventEnvelope=CNe;_d.createSessionEnvelope=NNe;_d.createSpanEnvelope=MNe});var qP=c(Og=>{Object.defineProperty(Og,"__esModule",{value:!0});var Rg=pn(),pZ=Ze();function LNe(t,e,r,n=pZ.getActiveSpan()){let o=n&&pZ.getRootSpan(n);o&&o.addEvent(t,{[Rg.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e,[Rg.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r})}function DNe(t){if(!t||t.length===0)return;let e={};return t.forEach(r=>{let n=r.attributes||{},o=n[Rg.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=n[Rg.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];typeof o=="string"&&typeof i=="number"&&(e[r.name]={value:i,unit:o})}),e}Og.setMeasurement=LNe;Og.timedEventsToMeasurements=DNe});var HP=c(jP=>{Object.defineProperty(jP,"__esModule",{value:!0});var kr=b(),gd=me(),fd=Ae(),GNe=Ag(),_Z=_g(),Is=pn(),dr=Ze(),UNe=_n(),xNe=Tg(),fZ=qP(),gZ=fg(),EZ=1e3,Ig=class{constructor(e={}){this._traceId=e.traceId||kr.uuid4(),this._spanId=e.spanId||kr.uuid4().substring(16),this._startTime=e.startTimestamp||kr.timestampInSeconds(),this._attributes={},this.setAttributes({[Is.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[Is.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,r){}spanContext(){let{_spanId:e,_traceId:r,_sampled:n}=this;return{spanId:e,traceId:r,traceFlags:n?dr.TRACE_FLAG_SAMPLED:dr.TRACE_FLAG_NONE}}setAttribute(e,r){return r===void 0?delete this._attributes[e]:this._attributes[e]=r,this}setAttributes(e){return Object.keys(e).forEach(r=>this.setAttribute(r,e[r])),this}updateStartTime(e){this._startTime=dr.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=dr.spanTimeInputToSeconds(e),xNe.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return kr.dropUndefinedKeys({data:this._attributes,description:this._name,op:this._attributes[Is.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:dr.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Is.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:_Z.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[Is.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[Is.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:fZ.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&dr.getRootSpan(this)===this||void 0,segment_id:this._isStandaloneSpan?dr.getRootSpan(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,r,n){fd.DEBUG_BUILD&&kr.logger.log("[Tracing] Adding an event to span:",e);let o=hZ(r)?r:n||kr.timestampInSeconds(),i=hZ(r)?{}:r||{},s={name:e,time:dr.spanTimeInputToSeconds(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=gd.getClient();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===dr.getRootSpan(this)))return;if(this._isStandaloneSpan){this._sampled?VNe(GNe.createSpanEnvelope([this],e)):(fd.DEBUG_BUILD&&kr.logger.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let n=this._convertSpanToTransaction();n&&(gZ.getCapturedScopesOnSpan(this).scope||gd.getCurrentScope()).captureEvent(n)}_convertSpanToTransaction(){if(!mZ(dr.spanToJSON(this)))return;this._name||(fd.DEBUG_BUILD&&kr.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:r}=gZ.getCapturedScopesOnSpan(this),o=(e||gd.getCurrentScope()).getClient()||gd.getClient();if(this._sampled!==!0){fd.DEBUG_BUILD&&kr.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),o&&o.recordDroppedEvent("sample_rate","transaction");return}let s=dr.getSpanDescendants(this).filter(p=>p!==this&&!wNe(p)).map(p=>dr.spanToJSON(p)).filter(mZ),a=this._attributes[Is.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],u={contexts:{trace:dr.spanToTransactionTraceContext(this)},spans:s.length>EZ?s.sort((p,_)=>p.start_timestamp-_.start_timestamp).slice(0,EZ):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:r,...kr.dropUndefinedKeys({dynamicSamplingContext:UNe.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:_Z.getMetricSummaryJsonForSpan(this),...a&&{transaction_info:{source:a}}},l=fZ.timedEventsToMeasurements(this._events);return l&&Object.keys(l).length&&(fd.DEBUG_BUILD&&kr.logger.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),u.measurements=l),u}};function hZ(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function mZ(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function wNe(t){return t instanceof Ig&&t.isStandaloneSpan()}function VNe(t){let e=gd.getClient();if(!e)return;let r=t[1];if(!r||r.length===0){e.recordDroppedEvent("before_send","span");return}e.sendEnvelope(t)}jP.SentrySpan=Ig});var Ka=c(Qn=>{Object.defineProperty(Qn,"__esModule",{value:!0});var kP=b(),BNe=Wo(),er=me(),qNe=ka(),jNe=Ae(),TZ=pn(),AZ=gg(),HNe=Os(),bg=ja(),Xo=Ze(),FP=_n(),FNe=Tg(),kNe=BP(),Ed=dd(),RZ=HP(),OZ=Ss(),WNe=fg(),WP="__SENTRY_SUPPRESS_TRACING__";function YNe(t,e){let r=hd();if(r.startSpan)return r.startSpan(t,e);let n=KP(t),{forceTransaction:o,parentSpan:i}=t;return er.withScope(t.scope,()=>IZ(i)(()=>{let a=er.getCurrentScope(),u=XP(a),d=t.onlyIfParent&&!u?new Ed.SentryNonRecordingSpan:YP({parentSpan:u,spanArguments:n,forceTransaction:o,scope:a});return bg._setSpanForScope(a,d),AZ.handleCallbackErrors(()=>e(d),()=>{let{status:p}=Xo.spanToJSON(d);d.isRecording()&&(!p||p==="ok")&&d.setStatus({code:OZ.SPAN_STATUS_ERROR,message:"internal_error"})},()=>d.end())}))}function KNe(t,e){let r=hd();if(r.startSpanManual)return r.startSpanManual(t,e);let n=KP(t),{forceTransaction:o,parentSpan:i}=t;return er.withScope(t.scope,()=>IZ(i)(()=>{let a=er.getCurrentScope(),u=XP(a),d=t.onlyIfParent&&!u?new Ed.SentryNonRecordingSpan:YP({parentSpan:u,spanArguments:n,forceTransaction:o,scope:a});bg._setSpanForScope(a,d);function p(){d.end()}return AZ.handleCallbackErrors(()=>e(d,p),()=>{let{status:_}=Xo.spanToJSON(d);d.isRecording()&&(!_||_==="ok")&&d.setStatus({code:OZ.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function XNe(t){let e=hd();if(e.startInactiveSpan)return e.startInactiveSpan(t);let r=KP(t),{forceTransaction:n,parentSpan:o}=t;return(t.scope?s=>er.withScope(t.scope,s):o!==void 0?s=>Pg(o,s):s=>s())(()=>{let s=er.getCurrentScope(),a=XP(s);return t.onlyIfParent&&!a?new Ed.SentryNonRecordingSpan:YP({parentSpan:a,spanArguments:r,forceTransaction:n,scope:s})})}var ZNe=({sentryTrace:t,baggage:e},r)=>er.withScope(n=>{let o=kP.propagationContextFromHeaders(t,e);return n.setPropagationContext(o),r()});function Pg(t,e){let r=hd();return r.withActiveSpan?r.withActiveSpan(t,e):er.withScope(n=>(bg._setSpanForScope(n,t||void 0),e(n)))}function zNe(t){let e=hd();return e.suppressTracing?e.suppressTracing(t):er.withScope(r=>(r.setSDKProcessingMetadata({[WP]:!0}),t()))}function JNe(t){return er.withScope(e=>(e.setPropagationContext(kP.generatePropagationContext()),jNe.DEBUG_BUILD&&kP.logger.info(`Starting a new trace with id ${e.getPropagationContext().traceId}`),Pg(null,t)))}function YP({parentSpan:t,spanArguments:e,forceTransaction:r,scope:n}){if(!HNe.hasTracingEnabled())return new Ed.SentryNonRecordingSpan;let o=er.getIsolationScope(),i;if(t&&!r)i=$Ne(t,n,e),Xo.addChildSpanToSpan(t,i);else if(t){let s=FP.getDynamicSamplingContextFromSpan(t),{traceId:a,spanId:u}=t.spanContext(),l=Xo.spanIsSampled(t);i=SZ({traceId:a,parentSpanId:u,...e},n,l),FP.freezeDscOnSpan(i,s)}else{let{traceId:s,dsc:a,parentSpanId:u,sampled:l}={...o.getPropagationContext(),...n.getPropagationContext()};i=SZ({traceId:s,parentSpanId:u,...e},n,l),a&&FP.freezeDscOnSpan(i,a)}return FNe.logSpanStart(i),WNe.setCapturedScopesOnSpan(i,n,o),i}function KP(t){let r={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...r};return n.startTimestamp=Xo.spanTimeInputToSeconds(t.startTime),delete n.startTime,n}return r}function hd(){let t=BNe.getMainCarrier();return qNe.getAsyncContextStrategy(t)}function SZ(t,e,r){let n=er.getClient(),o=n&&n.getOptions()||{},{name:i="",attributes:s}=t,[a,u]=e.getScopeData().sdkProcessingMetadata[WP]?[!1]:kNe.sampleSpan(o,{name:i,parentSampled:r,attributes:s,transactionContext:{name:i,parentSampled:r}}),l=new RZ.SentrySpan({...t,attributes:{[TZ.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",...t.attributes},sampled:a});return u!==void 0&&l.setAttribute(TZ.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,u),n&&n.emit("spanStart",l),l}function $Ne(t,e,r){let{spanId:n,traceId:o}=t.spanContext(),i=e.getScopeData().sdkProcessingMetadata[WP]?!1:Xo.spanIsSampled(t),s=i?new RZ.SentrySpan({...r,parentSpanId:n,traceId:o,sampled:i}):new Ed.SentryNonRecordingSpan({traceId:o});Xo.addChildSpanToSpan(t,s);let a=er.getClient();return a&&(a.emit("spanStart",s),r.endTimestamp&&a.emit("spanEnd",s)),s}function XP(t){let e=bg._getSpanForScope(t);if(!e)return;let r=er.getClient();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Xo.getRootSpan(e):e}function IZ(t){return t!==void 0?e=>Pg(t,e):e=>e()}Qn.continueTrace=ZNe;Qn.startInactiveSpan=XNe;Qn.startNewTrace=JNe;Qn.startSpan=YNe;Qn.startSpanManual=KNe;Qn.suppressTracing=zNe;Qn.withActiveSpan=Pg});var vZ=c(vg=>{Object.defineProperty(vg,"__esModule",{value:!0});var Zo=b(),ZP=me(),zP=Ae(),bZ=pn(),QNe=Os(),yZ=ja(),Wr=Ze(),eCe=dd(),PZ=Ss(),tCe=Ka(),yg={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},rCe="heartbeatFailed",nCe="idleTimeout",oCe="finalTimeout",iCe="externalFinish";function sCe(t,e={}){let r=new Map,n=!1,o,i=iCe,s=!e.disableAutoFinish,a=[],{idleTimeout:u=yg.idleTimeout,finalTimeout:l=yg.finalTimeout,childSpanTimeout:d=yg.childSpanTimeout,beforeSpanEnd:p}=e,_=ZP.getClient();if(!_||!QNe.hasTracingEnabled())return new eCe.SentryNonRecordingSpan;let f=ZP.getCurrentScope(),g=Wr.getActiveSpan(),E=aCe(t);E.end=new Proxy(E.end,{apply(G,w,te){p&&p(E);let[J,...ke]=te,V=J||Zo.timestampInSeconds(),H=Wr.spanTimeInputToSeconds(V),se=Wr.getSpanDescendants(E).filter(ie=>ie!==E);if(!se.length)return N(H),Reflect.apply(G,w,[H,...ke]);let z=se.map(ie=>Wr.spanToJSON(ie).timestamp).filter(ie=>!!ie),le=z.length?Math.max(...z):void 0,qe=Wr.spanToJSON(E).start_timestamp,pe=Math.min(qe?qe+l/1e3:1/0,Math.max(qe||-1/0,Math.min(H,le||1/0)));return N(pe),Reflect.apply(G,w,[pe,...ke])}});function S(){o&&(clearTimeout(o),o=void 0)}function v(G){S(),o=setTimeout(()=>{!n&&r.size===0&&s&&(i=nCe,E.end(G))},u)}function M(G){o=setTimeout(()=>{!n&&s&&(i=rCe,E.end(G))},d)}function D(G){S(),r.set(G,!0);let w=Zo.timestampInSeconds();M(w+d/1e3)}function L(G){if(r.has(G)&&r.delete(G),r.size===0){let w=Zo.timestampInSeconds();v(w+u/1e3)}}function N(G){n=!0,r.clear(),a.forEach(H=>H()),yZ._setSpanForScope(f,g);let w=Wr.spanToJSON(E),{start_timestamp:te}=w;if(!te)return;(w.data||{})[bZ.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||E.setAttribute(bZ.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,i),Zo.logger.log(`[Tracing] Idle span "${w.op}" finished`);let ke=Wr.getSpanDescendants(E).filter(H=>H!==E),V=0;ke.forEach(H=>{H.isRecording()&&(H.setStatus({code:PZ.SPAN_STATUS_ERROR,message:"cancelled"}),H.end(G),zP.DEBUG_BUILD&&Zo.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(H,void 0,2)));let se=Wr.spanToJSON(H),{timestamp:z=0,start_timestamp:le=0}=se,qe=le<=G,pe=(l+u)/1e3,ie=z-le<=pe;if(zP.DEBUG_BUILD){let ct=JSON.stringify(H,void 0,2);qe?ie||Zo.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",ct):Zo.logger.log("[Tracing] Discarding span since it happened after idle span was finished",ct)}(!ie||!qe)&&(Wr.removeChildSpanFromSpan(E,H),V++)}),V>0&&E.setAttribute("sentry.idle_span_discarded_spans",V)}return a.push(_.on("spanStart",G=>{if(n||G===E||Wr.spanToJSON(G).timestamp)return;Wr.getSpanDescendants(E).includes(G)&&D(G.spanContext().spanId)})),a.push(_.on("spanEnd",G=>{n||L(G.spanContext().spanId)})),a.push(_.on("idleSpanEnableAutoFinish",G=>{G===E&&(s=!0,v(),r.size&&M())})),e.disableAutoFinish||v(),setTimeout(()=>{n||(E.setStatus({code:PZ.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),i=oCe,E.end())},l),E}function aCe(t){let e=tCe.startInactiveSpan(t);return yZ._setSpanForScope(ZP.getCurrentScope(),e),zP.DEBUG_BUILD&&Zo.logger.log("[Tracing] Started span is an idle span"),e}vg.TRACING_DEFAULTS=yg;vg.startIdleSpan=sCe});var ey=c(QP=>{Object.defineProperty(QP,"__esModule",{value:!0});var JP=b(),uCe=Ae();function $P(t,e,r,n=0){return new JP.SyncPromise((o,i)=>{let s=t[n];if(e===null||typeof s!="function")o(e);else{let a=s({...e},r);uCe.DEBUG_BUILD&&s.id&&a===null&&JP.logger.log(`Event processor "${s.id}" dropped event`),JP.isThenable(a)?a.then(u=>$P(t,u,r,n+1).then(o)).then(null,i):$P(t,a,r,n+1).then(o).then(null,i)}})}QP.notifyEventProcessors=$P});var ry=c(Td=>{Object.defineProperty(Td,"__esModule",{value:!0});var md=b(),cCe=_n(),ty=Ze();function lCe(t,e){let{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:i}=e;pCe(t,e),n&&gCe(t,n),ECe(t,r),_Ce(t,o),fCe(t,i)}function dCe(t,e){let{extra:r,tags:n,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:p,propagationContext:_,transactionName:f,span:g}=e;Xa(t,"extra",r),Xa(t,"tags",n),Xa(t,"user",o),Xa(t,"contexts",i),Xa(t,"sdkProcessingMetadata",a),s&&(t.level=s),f&&(t.transactionName=f),g&&(t.span=g),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,..._}}function Xa(t,e,r){if(r&&Object.keys(r).length){t[e]={...t[e]};for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[e][n]=r[n])}}function pCe(t,e){let{extra:r,tags:n,user:o,contexts:i,level:s,transactionName:a}=e,u=md.dropUndefinedKeys(r);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});let l=md.dropUndefinedKeys(n);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});let d=md.dropUndefinedKeys(o);d&&Object.keys(d).length&&(t.user={...d,...t.user});let p=md.dropUndefinedKeys(i);p&&Object.keys(p).length&&(t.contexts={...p,...t.contexts}),s&&(t.level=s),a&&t.type!=="transaction"&&(t.transaction=a)}function _Ce(t,e){let r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function fCe(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function gCe(t,e){t.contexts={trace:ty.spanToTraceContext(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:cCe.getDynamicSamplingContextFromSpan(e),...t.sdkProcessingMetadata};let r=ty.getRootSpan(e),n=ty.spanToJSON(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function ECe(t,e){t.fingerprint=t.fingerprint?md.arrayify(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}Td.applyScopeDataToEvent=lCe;Td.mergeAndOverwriteScopeData=Xa;Td.mergeScopeData=dCe});var Ng=c(Za=>{Object.defineProperty(Za,"__esModule",{value:!0});var pr=b(),hCe=pd(),mCe=me(),TCe=ey(),CZ=Ha(),ny=ry();function SCe(t,e,r,n,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,u={...e,event_id:e.event_id||r.event_id||pr.uuid4(),timestamp:e.timestamp||pr.dateTimestampInSeconds()},l=r.integrations||t.integrations.map(S=>S.name);ACe(u,t),RCe(u,l),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&MZ(u,t.stackParser);let d=ICe(n,r.captureContext);r.mechanism&&pr.addExceptionMechanism(u,r.mechanism);let p=o?o.getEventProcessors():[],_=mCe.getGlobalScope().getScopeData();if(i){let S=i.getScopeData();ny.mergeScopeData(_,S)}if(d){let S=d.getScopeData();ny.mergeScopeData(_,S)}let f=[...r.attachments||[],..._.attachments];f.length&&(r.attachments=f),ny.applyScopeDataToEvent(u,_);let g=[...p,..._.eventProcessors];return TCe.notifyEventProcessors(g,u,r).then(S=>(S&&LZ(S),typeof s=="number"&&s>0?OCe(S,s,a):S))}function ACe(t,e){let{environment:r,release:n,dist:o,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?r:hCe.DEFAULT_ENVIRONMENT),t.release===void 0&&n!==void 0&&(t.release=n),t.dist===void 0&&o!==void 0&&(t.dist=o),t.message&&(t.message=pr.truncate(t.message,i));let s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=pr.truncate(s.value,i));let a=t.request;a&&a.url&&(a.url=pr.truncate(a.url,i))}var NZ=new WeakMap;function MZ(t,e){let r=pr.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let n,o=NZ.get(e);o?n=o:(n=new Map,NZ.set(e,n));let i=Object.entries(r).reduce((s,[a,u])=>{let l,d=n.get(a);d?l=d:(l=e(a),n.set(a,l));for(let p=l.length-1;p>=0;p--){let _=l[p];if(_.filename){s[_.filename]=u;break}}return s},{});try{t.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function LZ(t){let e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let r=t.debug_meta.images;Object.entries(e).forEach(([n,o])=>{r.push({type:"sourcemap",code_file:n,debug_id:o})})}function RCe(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function OCe(t,e,r){if(!t)return null;let n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:pr.normalize(o.data,e,r)}}))},...t.user&&{user:pr.normalize(t.user,e,r)},...t.contexts&&{contexts:pr.normalize(t.contexts,e,r)},...t.extra&&{extra:pr.normalize(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=pr.normalize(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>({...o,...o.data&&{data:pr.normalize(o.data,e,r)}}))),n}function ICe(t,e){if(!e)return t;let r=t?t.clone():new CZ.Scope;return r.update(e),r}function bCe(t){if(t)return PCe(t)?{captureContext:t}:vCe(t)?{captureContext:t}:t}function PCe(t){return t instanceof CZ.Scope||typeof t=="function"}var yCe=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function vCe(t){return Object.keys(t).some(e=>yCe.includes(e))}Za.applyDebugIds=MZ;Za.applyDebugMeta=LZ;Za.parseEventHintOrCaptureContext=bCe;Za.prepareEvent=SCe});var za=c(Ne=>{Object.defineProperty(Ne,"__esModule",{value:!0});var eo=b(),NCe=pd(),fe=me(),Cg=Ae(),oy=cd(),CCe=Ng();function MCe(t,e){return fe.getCurrentScope().captureException(t,CCe.parseEventHintOrCaptureContext(e))}function LCe(t,e){let r=typeof e=="string"?e:void 0,n=typeof e!="string"?{captureContext:e}:void 0;return fe.getCurrentScope().captureMessage(t,r,n)}function DCe(t,e){return fe.getCurrentScope().captureEvent(t,e)}function GCe(t,e){fe.getIsolationScope().setContext(t,e)}function UCe(t){fe.getIsolationScope().setExtras(t)}function xCe(t,e){fe.getIsolationScope().setExtra(t,e)}function wCe(t){fe.getIsolationScope().setTags(t)}function VCe(t,e){fe.getIsolationScope().setTag(t,e)}function BCe(t){fe.getIsolationScope().setUser(t)}function qCe(){return fe.getIsolationScope().lastEventId()}function iy(t,e){let r=fe.getCurrentScope(),n=fe.getClient();if(!n)Cg.DEBUG_BUILD&&eo.logger.warn("Cannot capture check-in. No client defined.");else if(!n.captureCheckIn)Cg.DEBUG_BUILD&&eo.logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return n.captureCheckIn(t,e,r);return eo.uuid4()}function jCe(t,e,r){let n=iy({monitorSlug:t,status:"in_progress"},r),o=eo.timestampInSeconds();function i(s){iy({monitorSlug:t,status:s,checkInId:n,duration:eo.timestampInSeconds()-o})}return fe.withIsolationScope(()=>{let s;try{s=e()}catch(a){throw i("error"),a}return eo.isThenable(s)?Promise.resolve(s).then(()=>{i("ok")},a=>{throw i("error"),a}):i("ok"),s})}async function HCe(t){let e=fe.getClient();return e?e.flush(t):(Cg.DEBUG_BUILD&&eo.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function FCe(t){let e=fe.getClient();return e?e.close(t):(Cg.DEBUG_BUILD&&eo.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function kCe(){return!!fe.getClient()}function WCe(){let t=fe.getClient();return!!t&&t.getOptions().enabled!==!1&&!!t.getTransport()}function YCe(t){fe.getIsolationScope().addEventProcessor(t)}function KCe(t){let e=fe.getClient(),r=fe.getIsolationScope(),n=fe.getCurrentScope(),{release:o,environment:i=NCe.DEFAULT_ENVIRONMENT}=e&&e.getOptions()||{},{userAgent:s}=eo.GLOBAL_OBJ.navigator||{},a=oy.makeSession({release:o,environment:i,user:n.getUser()||r.getUser(),...s&&{userAgent:s},...t}),u=r.getSession();return u&&u.status==="ok"&&oy.updateSession(u,{status:"exited"}),sy(),r.setSession(a),n.setSession(a),a}function sy(){let t=fe.getIsolationScope(),e=fe.getCurrentScope(),r=e.getSession()||t.getSession();r&&oy.closeSession(r),DZ(),t.setSession(),e.setSession()}function DZ(){let t=fe.getIsolationScope(),e=fe.getCurrentScope(),r=fe.getClient(),n=e.getSession()||t.getSession();n&&r&&r.captureSession(n)}function XCe(t=!1){if(t){sy();return}DZ()}Ne.addEventProcessor=YCe;Ne.captureCheckIn=iy;Ne.captureEvent=DCe;Ne.captureException=MCe;Ne.captureMessage=LCe;Ne.captureSession=XCe;Ne.close=FCe;Ne.endSession=sy;Ne.flush=HCe;Ne.isEnabled=WCe;Ne.isInitialized=kCe;Ne.lastEventId=qCe;Ne.setContext=GCe;Ne.setExtra=xCe;Ne.setExtras=UCe;Ne.setTag=VCe;Ne.setTags=wCe;Ne.setUser=BCe;Ne.startSession=KCe;Ne.withMonitor=jCe});var cy=c(uy=>{Object.defineProperty(uy,"__esModule",{value:!0});var ZCe=b(),zCe=me(),ay=class{constructor(e,r){this._client=e,this.flushTimeout=60,this._pendingAggregates=new Map,this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),this.flushTimeout*1e3),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=r}flush(){let e=this.getSessionAggregates();e.aggregates.length!==0&&(this._pendingAggregates=new Map,this._client.sendSession(e))}getSessionAggregates(){let e=Array.from(this._pendingAggregates.values()),r={attrs:this._sessionAttrs,aggregates:e};return ZCe.dropUndefinedKeys(r)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;let e=zCe.getIsolationScope(),r=e.getRequestSession();r&&r.status&&(this._incrementSessionStatusCount(r.status,new Date),e.setRequestSession(void 0))}_incrementSessionStatusCount(e,r){let n=new Date(r).setSeconds(0,0),o=this._pendingAggregates.get(n);switch(o||(o={started:new Date(n).toISOString()},this._pendingAggregates.set(n,o)),e){case"errored":return o.errored=(o.errored||0)+1,o.errored;case"ok":return o.exited=(o.exited||0)+1,o.exited;default:return o.crashed=(o.crashed||0)+1,o.crashed}}};uy.SessionFlusher=ay});var Lg=c(Mg=>{Object.defineProperty(Mg,"__esModule",{value:!0});var ly=b(),JCe="7";function GZ(t){let e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function $Ce(t){return`${GZ(t)}${t.projectId}/envelope/`}function QCe(t,e){return ly.urlEncode({sentry_key:t.publicKey,sentry_version:JCe,...e&&{sentry_client:`${e.name}/${e.version}`}})}function eMe(t,e,r){return e||`${$Ce(t)}?${QCe(t,r)}`}function tMe(t,e){let r=ly.makeDsn(t);if(!r)return"";let n=`${GZ(r)}embed/error-page/`,o=`dsn=${ly.dsnToString(r)}`;for(let i in e)if(i!=="dsn"&&i!=="onClose")if(i==="user"){let s=e.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(e[i])}`;return`${n}?${o}`}Mg.getEnvelopeEndpointWithUrlEncodedAuth=eMe;Mg.getReportDialogEndpoint=tMe});var It=c(to=>{Object.defineProperty(to,"__esModule",{value:!0});var Dg=b(),rMe=me(),dy=Ae(),py=[];function nMe(t){let e={};return t.forEach(r=>{let{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function oMe(t){let e=t.defaultIntegrations||[],r=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let n;Array.isArray(r)?n=[...e,...r]:typeof r=="function"?n=Dg.arrayify(r(e)):n=e;let o=nMe(n),i=o.findIndex(s=>s.name==="Debug");if(i>-1){let[s]=o.splice(i,1);o.push(s)}return o}function iMe(t,e){let r={};return e.forEach(n=>{n&&UZ(t,n,r)}),r}function sMe(t,e){for(let r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function UZ(t,e,r){if(r[e.name]){dy.DEBUG_BUILD&&Dg.logger.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,py.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),py.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){let n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,i)=>n(o,i,t))}if(typeof e.processEvent=="function"){let n=e.processEvent.bind(e),o=Object.assign((i,s)=>n(i,s,t),{id:e.name});t.addEventProcessor(o)}dy.DEBUG_BUILD&&Dg.logger.log(`Integration installed: ${e.name}`)}function aMe(t){let e=rMe.getClient();if(!e){dy.DEBUG_BUILD&&Dg.logger.warn(`Cannot add integration "${t.name}" because no SDK Client is available.`);return}e.addIntegration(t)}function uMe(t){return t}to.addIntegration=aMe;to.afterSetupIntegrations=sMe;to.defineIntegration=uMe;to.getIntegrationsToSetup=oMe;to.installedIntegrations=py;to.setupIntegration=UZ;to.setupIntegrations=iMe});var gy=c(fy=>{Object.defineProperty(fy,"__esModule",{value:!0});var Z=b(),cMe=Lg(),lMe=me(),br=Ae(),xZ=Ag(),Gg=It(),wZ=cd(),dMe=_n(),pMe=Sg(),_Me=Ng(),VZ="Not capturing exception because it's already been captured.",_y=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Z.makeDsn(e.dsn):br.DEBUG_BUILD&&Z.logger.warn("No DSN provided, client will not send events."),this._dsn){let r=cMe.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}}captureException(e,r,n){let o=Z.uuid4();if(Z.checkOrSetAlreadyCaught(e))return br.DEBUG_BUILD&&Z.logger.log(VZ),o;let i={event_id:o,...r};return this._process(this.eventFromException(e,i).then(s=>this._captureEvent(s,i,n))),i.event_id}captureMessage(e,r,n,o){let i={event_id:Z.uuid4(),...n},s=Z.isParameterizedString(e)?e:String(e),a=Z.isPrimitive(e)?this.eventFromMessage(s,r,i):this.eventFromException(e,i);return this._process(a.then(u=>this._captureEvent(u,i,o))),i.event_id}captureEvent(e,r,n){let o=Z.uuid4();if(r&&r.originalException&&Z.checkOrSetAlreadyCaught(r.originalException))return br.DEBUG_BUILD&&Z.logger.log(VZ),o;let i={event_id:o,...r},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,a||n)),i.event_id}captureSession(e){typeof e.release!="string"?br.DEBUG_BUILD&&Z.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),wZ.updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o))):Z.resolvedSyncPromise(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let r=this._integrations[e.name];Gg.setupIntegration(this,e,this._integrations),r||Gg.afterSetupIntegrations(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=xZ.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of r.attachments||[])n=Z.addItemToEnvelope(n,Z.createAttachmentEnvelopeItem(i));let o=this.sendEnvelope(n);o&&o.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){let r=xZ.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){let o=typeof n=="number"?n:1,i=`${e}:${r}`;br.DEBUG_BUILD&&Z.logger.log(`Recording outcome: "${i}"${o>1?` (${o} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+o}}on(e,r){let n=this._hooks[e]=this._hooks[e]||[];return n.push(r),()=>{let o=n.indexOf(r);o>-1&&n.splice(o,1)}}emit(e,...r){let n=this._hooks[e];n&&n.forEach(o=>o(...r))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,r=>(br.DEBUG_BUILD&&Z.logger.error("Error while sending envelope:",r),r)):(br.DEBUG_BUILD&&Z.logger.error("Transport disabled"),Z.resolvedSyncPromise({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Gg.setupIntegrations(this,e),Gg.afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,r){let n=!1,o=!1,i=r.exception&&r.exception.values;if(i){o=!0;for(let u of i){let l=u.mechanism;if(l&&l.handled===!1){n=!0;break}}}let s=e.status==="ok";(s&&e.errors===0||s&&n)&&(wZ.updateSession(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Z.SyncPromise(r=>{let n=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),r(!0)):(n+=o,e&&n>=e&&(clearInterval(i),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n,o=lMe.getIsolationScope()){let i=this.getOptions(),s=Object.keys(this._integrations);return!r.integrations&&s.length>0&&(r.integrations=s),this.emit("preprocessEvent",e,r),e.type||o.setLastEventId(e.event_id||r.event_id),_Me.prepareEvent(i,e,r,n,this,o).then(a=>{if(a===null)return a;let u={...o.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&u){let{traceId:d,spanId:p,parentSpanId:_,dsc:f}=u;a.contexts={trace:Z.dropUndefinedKeys({trace_id:d,span_id:p,parent_span_id:_}),...a.contexts};let g=f||dMe.getDynamicSamplingContextFromClient(d,this);a.sdkProcessingMetadata={dynamicSamplingContext:g,...a.sdkProcessingMetadata}}return a})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(br.DEBUG_BUILD){let i=o;i.logLevel==="log"?Z.logger.log(i.message):Z.logger.warn(i)}})}_processEvent(e,r,n){let o=this.getOptions(),{sampleRate:i}=o,s=qZ(e),a=BZ(e),u=e.type||"error",l=`before send for type \`${u}\``,d=typeof i>"u"?void 0:pMe.parseSampleRate(i);if(a&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error",e),Z.rejectedSyncPromise(new Z.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let p=u==="replay_event"?"replay":u,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,f).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",p,e),new Z.SentryError("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return g;let S=gMe(this,o,g,r);return fMe(S,l)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",p,e),s){let M=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",M)}throw new Z.SentryError(`${l} returned \`null\`, will not send event.`,"log")}let E=n&&n.getSession();if(!s&&E&&this._updateSessionFromEvent(E,g),s){let v=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,M=g.spans?g.spans.length:0,D=v-M;D>0&&this.recordDroppedEvent("before_send","span",D)}let S=g.transaction_info;if(s&&S&&g.transaction!==e.transaction){let v="custom";g.transaction_info={...S,source:v}}return this.sendEvent(g,r),g}).then(null,g=>{throw g instanceof Z.SentryError?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new Z.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
14
+ Reason: ${g}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{let[o,i]=r.split(":");return{reason:o,category:i,quantity:n}})}_flushOutcomes(){br.DEBUG_BUILD&&Z.logger.log("Flushing outcomes...");let e=this._clearOutcomes();if(e.length===0){br.DEBUG_BUILD&&Z.logger.log("No outcomes to send");return}if(!this._dsn){br.DEBUG_BUILD&&Z.logger.log("No dsn provided, will not send outcomes");return}br.DEBUG_BUILD&&Z.logger.log("Sending outcomes:",e);let r=Z.createClientReportEnvelope(e,this._options.tunnel&&Z.dsnToString(this._dsn));this.sendEnvelope(r)}};function fMe(t,e){let r=`${e} must return \`null\` or a valid event.`;if(Z.isThenable(t))return t.then(n=>{if(!Z.isPlainObject(n)&&n!==null)throw new Z.SentryError(r);return n},n=>{throw new Z.SentryError(`${e} rejected with ${n}`)});if(!Z.isPlainObject(t)&&t!==null)throw new Z.SentryError(r);return t}function gMe(t,e,r,n){let{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=e;if(BZ(r)&&o)return o(r,n);if(qZ(r)){if(r.spans&&s){let a=[];for(let u of r.spans){let l=s(u);l?a.push(l):t.recordDroppedEvent("before_send","span")}r.spans=a}if(i){if(r.spans){let a=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(r,n)}}return r}function BZ(t){return t.type===void 0}function qZ(t){return t.type==="transaction"}fy.BaseClient=_y});var my=c(hy=>{Object.defineProperty(hy,"__esModule",{value:!0});var Ey=b();function EMe(t,e,r,n,o){let i={sent_at:new Date().toISOString()};r&&r.sdk&&(i.sdk={name:r.sdk.name,version:r.sdk.version}),n&&o&&(i.dsn=Ey.dsnToString(o)),e&&(i.trace=Ey.dropUndefinedKeys(e));let s=hMe(t);return Ey.createEnvelope(i,[s])}function hMe(t){return[{type:"check_in"},t]}hy.createCheckInEnvelope=EMe});var kZ=c(Sy=>{Object.defineProperty(Sy,"__esModule",{value:!0});var ro=b(),mMe=gy(),TMe=my(),jZ=me(),Ug=Ae(),SMe=cy(),AMe=Ko(),RMe=ja(),HZ=Ze(),FZ=_n(),Ty=class extends mMe.BaseClient{constructor(e){AMe.registerSpanErrorInstrumentation(),super(e)}eventFromException(e,r){return ro.resolvedSyncPromise(ro.eventFromUnknownInput(this,this._options.stackParser,e,r))}eventFromMessage(e,r="info",n){return ro.resolvedSyncPromise(ro.eventFromMessage(this._options.stackParser,e,r,n,this._options.attachStacktrace))}captureException(e,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher){let o=jZ.getIsolationScope().getRequestSession();o&&o.status==="ok"&&(o.status="errored")}return super.captureException(e,r,n)}captureEvent(e,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&(e.type||"exception")==="exception"&&e.exception&&e.exception.values&&e.exception.values.length>0){let s=jZ.getIsolationScope().getRequestSession();s&&s.status==="ok"&&(s.status="errored")}return super.captureEvent(e,r,n)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){let{release:e,environment:r}=this._options;e?this._sessionFlusher=new SMe.SessionFlusher(this,{release:e,environment:r}):Ug.DEBUG_BUILD&&ro.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,r,n){let o="checkInId"in e&&e.checkInId?e.checkInId:ro.uuid4();if(!this._isEnabled())return Ug.DEBUG_BUILD&&ro.logger.warn("SDK not enabled, will not capture checkin."),o;let i=this.getOptions(),{release:s,environment:a,tunnel:u}=i,l={check_in_id:o,monitor_slug:e.monitorSlug,status:e.status,release:s,environment:a};"duration"in e&&(l.duration=e.duration),r&&(l.monitor_config={schedule:r.schedule,checkin_margin:r.checkinMargin,max_runtime:r.maxRuntime,timezone:r.timezone,failure_issue_threshold:r.failureIssueThreshold,recovery_threshold:r.recoveryThreshold});let[d,p]=this._getTraceInfoFromScope(n);p&&(l.contexts={trace:p});let _=TMe.createCheckInEnvelope(l,d,this.getSdkMetadata(),u,this.getDsn());return Ug.DEBUG_BUILD&&ro.logger.info("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(_),o}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():Ug.DEBUG_BUILD&&ro.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,r,n,o){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,r,n,o)}_getTraceInfoFromScope(e){if(!e)return[void 0,void 0];let r=RMe._getSpanForScope(e);if(r){let u=HZ.getRootSpan(r);return[FZ.getDynamicSamplingContextFromSpan(u),HZ.spanToTraceContext(u)]}let{traceId:n,spanId:o,parentSpanId:i,dsc:s}=e.getPropagationContext(),a={trace_id:n,span_id:o,parent_span_id:i};return s?[s,a]:[FZ.getDynamicSamplingContextFromClient(n,this),a]}};Sy.ServerRuntimeClient=Ty});var XZ=c(xg=>{Object.defineProperty(xg,"__esModule",{value:!0});var WZ=b(),YZ=me(),OMe=Ae();function IMe(t,e){e.debug===!0&&(OMe.DEBUG_BUILD?WZ.logger.enable():WZ.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),YZ.getCurrentScope().update(e.initialScope);let n=new t(e);return KZ(n),n.init(),n}function KZ(t){YZ.getCurrentScope().setClient(t)}xg.initAndBind=IMe;xg.setCurrentClient=KZ});var $Z=c(wg=>{Object.defineProperty(wg,"__esModule",{value:!0});var tr=b(),ZZ=Ae(),JZ=64;function bMe(t,e,r=tr.makePromiseBuffer(t.bufferSize||JZ)){let n={},o=s=>r.drain(s);function i(s){let a=[];if(tr.forEachEnvelopeItem(s,(p,_)=>{let f=tr.envelopeItemTypeToDataCategory(_);if(tr.isRateLimited(n,f)){let g=zZ(p,_);t.recordDroppedEvent("ratelimit_backoff",f,g)}else a.push(p)}),a.length===0)return tr.resolvedSyncPromise({});let u=tr.createEnvelope(s[0],a),l=p=>{tr.forEachEnvelopeItem(u,(_,f)=>{let g=zZ(_,f);t.recordDroppedEvent(p,tr.envelopeItemTypeToDataCategory(f),g)})},d=()=>e({body:tr.serializeEnvelope(u)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&ZZ.DEBUG_BUILD&&tr.logger.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),n=tr.updateRateLimits(n,p),p),p=>{throw l("network_error"),p});return r.add(d).then(p=>p,p=>{if(p instanceof tr.SentryError)return ZZ.DEBUG_BUILD&&tr.logger.error("Skipped sending event because buffer is full."),l("queue_overflow"),tr.resolvedSyncPromise({});throw p})}return{send:i,flush:o}}function zZ(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}wg.DEFAULT_TRANSPORT_BUFFER_SIZE=JZ;wg.createTransport=bMe});var QZ=c(Sd=>{Object.defineProperty(Sd,"__esModule",{value:!0});var Vg=b(),PMe=Ae(),Ay=100,Ry=5e3,yMe=36e5;function vMe(t){function e(...r){PMe.DEBUG_BUILD&&Vg.logger.info("[Offline]:",...r)}return r=>{let n=t(r);if(!r.createStore)throw new Error("No `createStore` function was provided");let o=r.createStore(r),i=Ry,s;function a(p,_,f){return Vg.envelopeContainsItemType(p,["client_report"])?!1:r.shouldStore?r.shouldStore(p,_,f):!0}function u(p){s&&clearTimeout(s),s=setTimeout(async()=>{s=void 0;let _=await o.shift();_&&(e("Attempting to send previously queued event"),_[0].sent_at=new Date().toISOString(),d(_,!0).catch(f=>{e("Failed to retry sending",f)}))},p),typeof s!="number"&&s.unref&&s.unref()}function l(){s||(u(i),i=Math.min(i*2,yMe))}async function d(p,_=!1){if(!_&&Vg.envelopeContainsItemType(p,["replay_event","replay_recording"]))return await o.push(p),u(Ay),{};try{let f=await n.send(p),g=Ay;if(f){if(f.headers&&f.headers["retry-after"])g=Vg.parseRetryAfterHeader(f.headers["retry-after"]);else if(f.headers&&f.headers["x-sentry-rate-limits"])g=6e4;else if((f.statusCode||0)>=400)return f}return u(g),i=Ry,f}catch(f){if(await a(p,f,i))return _?await o.unshift(p):await o.push(p),l(),e("Error sending. Event queued.",f),{};throw f}}return r.flushAtStartup&&l(),{send:d,flush:p=>n.flush(p)}}}Sd.MIN_DELAY=Ay;Sd.START_DELAY=Ry;Sd.makeOfflineTransport=vMe});var e5=c(Bg=>{Object.defineProperty(Bg,"__esModule",{value:!0});var Oy=b(),NMe=Lg();function Iy(t,e){let r;return Oy.forEachEnvelopeItem(t,(n,o)=>(e.includes(o)&&(r=Array.isArray(n)?n[1]:void 0),!!r)),r}function CMe(t,e){return r=>{let n=t(r);return{...n,send:async o=>{let i=Iy(o,["event","transaction","profile","replay_event"]);return i&&(i.release=e),n.send(o)}}}}function MMe(t,e){return Oy.createEnvelope(e?{...t[0],dsn:e}:t[0],t[1])}function LMe(t,e){return r=>{let n=t(r),o=new Map;function i(u,l){let d=l?`${u}:${l}`:u,p=o.get(d);if(!p){let _=Oy.dsnFromString(u);if(!_)return;let f=NMe.getEnvelopeEndpointWithUrlEncodedAuth(_,r.tunnel);p=l?CMe(t,l)({...r,url:f}):t({...r,url:f}),o.set(d,p)}return[u,p]}async function s(u){function l(f){let g=f&&f.length?f:["event"];return Iy(u,g)}let d=e({envelope:u,getEvent:l}).map(f=>typeof f=="string"?i(f,void 0):i(f.dsn,f.release)).filter(f=>!!f),p=d.length?d:[["",n]];return(await Promise.all(p.map(([f,g])=>g.send(MMe(u,f)))))[0]}async function a(u){let l=[...o.values(),n];return(await Promise.all(l.map(p=>p.flush(u)))).every(p=>p)}return{send:s,flush:a}}}Bg.eventFromEnvelope=Iy;Bg.makeMultiplexedTransport=LMe});var r5=c(by=>{Object.defineProperty(by,"__esModule",{value:!0});function DMe(t,e){let r=e&&e.getDsn(),n=e&&e.getOptions().tunnel;return UMe(t,r)||GMe(t,n)}function GMe(t,e){return e?t5(t)===t5(e):!1}function UMe(t,e){return e?t.includes(e.host):!1}function t5(t){return t[t.length-1]==="/"?t.slice(0,-1):t}by.isSentryRequestUrl=DMe});var n5=c(Py=>{Object.defineProperty(Py,"__esModule",{value:!0});function xMe(t,...e){let r=new String(String.raw(t,...e));return r.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=e,r}Py.parameterize=xMe});var i5=c(yy=>{Object.defineProperty(yy,"__esModule",{value:!0});var o5=b();function wMe(t,e,r=[e],n="npm"){let o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:r.map(i=>({name:`${n}:@sentry/${i}`,version:o5.SDK_VERSION})),version:o5.SDK_VERSION}),t._metadata=o}yy.applySdkMetadata=wMe});var Ny=c(qg=>{Object.defineProperty(qg,"__esModule",{value:!0});var Ad=b(),VMe=ka(),BMe=Wo(),s5=me(),qMe=za();Ko();Ae();var vy=Ze(),a5=_n();function jMe(){if(!qMe.isEnabled())return{};let t=BMe.getMainCarrier(),e=VMe.getAsyncContextStrategy(t);if(e.getTraceData)return e.getTraceData();let r=s5.getClient(),n=s5.getCurrentScope(),o=vy.getActiveSpan(),{dsc:i,sampled:s,traceId:a}=n.getPropagationContext(),u=o&&vy.getRootSpan(o),l=o?vy.spanToTraceHeader(o):Ad.generateSentryTraceHeader(a,void 0,s),d=u?a5.getDynamicSamplingContextFromSpan(u):i||(r?a5.getDynamicSamplingContextFromClient(a,r):void 0),p=Ad.dynamicSamplingContextToSentryBaggageHeader(d);if(!Ad.TRACEPARENT_REGEXP.test(l))return Ad.logger.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let f=u5(p);return f||Ad.logger.warn('Invalid baggage data. Not returning "baggage" value'),{"sentry-trace":l,...f&&{baggage:p}}}function u5(t){if(!t||!t.length)return!1;let e="[-!#$%&'*+.^_`|~A-Za-z0-9]+",r="[!#-+-./0-9:<=>?@A-Z\\[\\]a-z{-}]+",n="\\s*";return new RegExp(`^${e}${n}=${n}${r}(${n},${n}${e}${n}=${n}${r})*$`).test(t)}qg.getTraceData=jMe;qg.isValidBaggageString=u5});var c5=c(Cy=>{Object.defineProperty(Cy,"__esModule",{value:!0});var HMe=Ny();function FMe(){return Object.entries(HMe.getTraceData()).map(([t,e])=>`<meta name="${t}" content="${e}"/>`).join(`
15
+ `)}Cy.getTraceMetaTags=FMe});var Ly=c(My=>{Object.defineProperty(My,"__esModule",{value:!0});var l5=b(),d5=me(),kMe=100;function WMe(t,e){let r=d5.getClient(),n=d5.getIsolationScope();if(!r)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=kMe}=r.getOptions();if(i<=0)return;let a={timestamp:l5.dateTimestampInSeconds(),...t},u=o?l5.consoleSandbox(()=>o(a,e)):a;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,i))}My.addBreadcrumb=WMe});var f5=c(Dy=>{Object.defineProperty(Dy,"__esModule",{value:!0});var YMe=b(),KMe=me(),XMe=It(),p5,ZMe="FunctionToString",_5=new WeakMap,zMe=()=>({name:ZMe,setupOnce(){p5=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=YMe.getOriginalFunction(this),r=_5.has(KMe.getClient())&&e!==void 0?e:this;return p5.apply(r,t)}}catch{}},setup(t){_5.set(t,!0)}}),JMe=XMe.defineIntegration(zMe);Dy.functionToStringIntegration=JMe});var g5=c(Gy=>{Object.defineProperty(Gy,"__esModule",{value:!0});var ze=b(),bs=Ae(),$Me=It(),QMe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],eLe="InboundFilters",tLe=(t={})=>({name:eLe,processEvent(e,r,n){let o=n.getOptions(),i=nLe(t,o);return oLe(e,i)?null:e}}),rLe=$Me.defineIntegration(tLe);function nLe(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:QMe],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function oLe(t,e){return e.ignoreInternal&&lLe(t)?(bs.DEBUG_BUILD&&ze.logger.warn(`Event dropped due to being internal Sentry Error.
16
+ Event: ${ze.getEventDescription(t)}`),!0):iLe(t,e.ignoreErrors)?(bs.DEBUG_BUILD&&ze.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
17
+ Event: ${ze.getEventDescription(t)}`),!0):pLe(t)?(bs.DEBUG_BUILD&&ze.logger.warn(`Event dropped due to not having an error message, error type or stacktrace.
18
+ Event: ${ze.getEventDescription(t)}`),!0):sLe(t,e.ignoreTransactions)?(bs.DEBUG_BUILD&&ze.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
19
+ Event: ${ze.getEventDescription(t)}`),!0):aLe(t,e.denyUrls)?(bs.DEBUG_BUILD&&ze.logger.warn(`Event dropped due to being matched by \`denyUrls\` option.
20
+ Event: ${ze.getEventDescription(t)}.
21
+ Url: ${jg(t)}`),!0):uLe(t,e.allowUrls)?!1:(bs.DEBUG_BUILD&&ze.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.
22
+ Event: ${ze.getEventDescription(t)}.
23
+ Url: ${jg(t)}`),!0)}function iLe(t,e){return t.type||!e||!e.length?!1:cLe(t).some(r=>ze.stringMatchesSomePattern(r,e))}function sLe(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;let r=t.transaction;return r?ze.stringMatchesSomePattern(r,e):!1}function aLe(t,e){if(!e||!e.length)return!1;let r=jg(t);return r?ze.stringMatchesSomePattern(r,e):!1}function uLe(t,e){if(!e||!e.length)return!0;let r=jg(t);return r?ze.stringMatchesSomePattern(r,e):!0}function cLe(t){let e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),e}function lLe(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function dLe(t=[]){for(let e=t.length-1;e>=0;e--){let r=t[e];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function jg(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?dLe(e):null}catch{return bs.DEBUG_BUILD&&ze.logger.error(`Cannot extract url for event ${ze.getEventDescription(t)}`),null}}function pLe(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}Gy.inboundFiltersIntegration=rLe});var h5=c(Uy=>{Object.defineProperty(Uy,"__esModule",{value:!0});var E5=b(),_Le=It(),fLe="cause",gLe=5,ELe="LinkedErrors",hLe=(t={})=>{let e=t.limit||gLe,r=t.key||fLe;return{name:ELe,preprocessEvent(n,o,i){let s=i.getOptions();E5.applyAggregateErrorsToEvent(E5.exceptionFromError,s.stackParser,s.maxValueLength,r,e,n,o)}}},mLe=_Le.defineIntegration(hLe);Uy.linkedErrorsIntegration=mLe});var wy=c(Rd=>{Object.defineProperty(Rd,"__esModule",{value:!0});var xy=b(),T5=new Map,m5=new Set;function TLe(t){if(xy.GLOBAL_OBJ._sentryModuleMetadata)for(let e of Object.keys(xy.GLOBAL_OBJ._sentryModuleMetadata)){let r=xy.GLOBAL_OBJ._sentryModuleMetadata[e];if(m5.has(e))continue;m5.add(e);let n=t(e);for(let o of n.reverse())if(o.filename){T5.set(o.filename,r);break}}}function S5(t,e){return TLe(t),T5.get(e)}function SLe(t,e){try{e.exception.values.forEach(r=>{if(r.stacktrace)for(let n of r.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue;let o=S5(t,n.filename);o&&(n.module_metadata=o)}})}catch{}}function ALe(t){try{t.exception.values.forEach(e=>{if(e.stacktrace)for(let r of e.stacktrace.frames||[])delete r.module_metadata})}catch{}}Rd.addMetadataToStackFrames=SLe;Rd.getMetadataForUrl=S5;Rd.stripMetadataFromStackFrames=ALe});var R5=c(Vy=>{Object.defineProperty(Vy,"__esModule",{value:!0});var RLe=b(),OLe=It(),A5=wy(),ILe=OLe.defineIntegration(()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",e=>{RLe.forEachEnvelopeItem(e,(r,n)=>{if(n==="event"){let o=Array.isArray(r)?r[1]:void 0;o&&(A5.stripMetadataFromStackFrames(o),r[1]=o)}})}),t.on("applyFrameMetadata",e=>{if(e.type)return;let r=t.getOptions().stackParser;A5.addMetadataToStackFrames(r,e)})}}));Vy.moduleMetadataIntegration=ILe});var O5=c(qy=>{Object.defineProperty(qy,"__esModule",{value:!0});var bLe=b(),PLe=It(),By={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},yLe="RequestData",vLe=(t={})=>{let e={...By,...t,include:{...By.include,...t.include,user:t.include&&typeof t.include.user=="boolean"?t.include.user:{...By.include.user,...(t.include||{}).user}}};return{name:yLe,processEvent(r){let{sdkProcessingMetadata:n={}}=r,o=n.request;if(!o)return r;let i=CLe(e);return bLe.addRequestDataToEvent(r,o,i)}}},NLe=PLe.defineIntegration(vLe);function CLe(t){let{transactionNamingScheme:e,include:{ip:r,user:n,...o}}=t,i=["method"];for(let[a,u]of Object.entries(o))u&&i.push(a);let s;if(n===void 0)s=!0;else if(typeof n=="boolean")s=n;else{let a=[];for(let[u,l]of Object.entries(n))l&&a.push(u);s=a}return{include:{ip:r,user:s,request:i.length!==0?i:void 0,transaction:e}}}qy.requestDataIntegration=NLe});var b5=c(Hy=>{Object.defineProperty(Hy,"__esModule",{value:!0});var Ps=b(),I5=me(),jy=za(),MLe=It(),LLe="CaptureConsole",DLe=(t={})=>{let e=t.levels||Ps.CONSOLE_LEVELS;return{name:LLe,setup(r){"console"in Ps.GLOBAL_OBJ&&Ps.addConsoleInstrumentationHandler(({args:n,level:o})=>{I5.getClient()!==r||!e.includes(o)||ULe(n,o)})}}},GLe=MLe.defineIntegration(DLe);function ULe(t,e){let r={level:Ps.severityLevelFromString(e),extra:{arguments:t}};I5.withScope(n=>{if(n.addEventProcessor(s=>(s.logger="console",Ps.addExceptionMechanism(s,{handled:!1,type:"console"}),s)),e==="assert"){if(!t[0]){let s=`Assertion failed: ${Ps.safeJoin(t.slice(1)," ")||"console.assert"}`;n.setExtra("arguments",t.slice(1)),jy.captureMessage(s,r)}return}let o=t.find(s=>s instanceof Error);if(o){jy.captureException(o,r);return}let i=Ps.safeJoin(t," ");jy.captureMessage(i,r)})}Hy.captureConsoleIntegration=GLe});var P5=c(Fy=>{Object.defineProperty(Fy,"__esModule",{value:!0});var xLe=b(),wLe=It(),VLe="Debug",BLe=(t={})=>{let e={debugger:!1,stringify:!1,...t};return{name:VLe,setup(r){r.on("beforeSendEvent",(n,o)=>{if(e.debugger)debugger;xLe.consoleSandbox(()=>{e.stringify?(console.log(JSON.stringify(n,null,2)),o&&Object.keys(o).length&&console.log(JSON.stringify(o,null,2))):(console.log(n),o&&Object.keys(o).length&&console.log(o))})})}}},qLe=wLe.defineIntegration(BLe);Fy.debugIntegration=qLe});var M5=c(Hg=>{Object.defineProperty(Hg,"__esModule",{value:!0});var ky=b(),jLe=It(),HLe=Ae(),FLe="Dedupe",kLe=()=>{let t;return{name:FLe,processEvent(e){if(e.type)return e;try{if(v5(e,t))return HLe.DEBUG_BUILD&&ky.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},WLe=jLe.defineIntegration(kLe);function v5(t,e){return e?!!(YLe(t,e)||KLe(t,e)):!1}function YLe(t,e){let r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!C5(t,e)||!N5(t,e))}function KLe(t,e){let r=y5(e),n=y5(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!C5(t,e)||!N5(t,e))}function N5(t,e){let r=ky.getFramesFromEvent(t),n=ky.getFramesFromEvent(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o<n.length;o++){let i=n[o],s=r[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function C5(t,e){let r=t.fingerprint,n=e.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;r=r,n=n;try{return r.join("")===n.join("")}catch{return!1}}function y5(t){return t.exception&&t.exception.values&&t.exception.values[0]}Hg._shouldDropEvent=v5;Hg.dedupeIntegration=WLe});var L5=c(Wy=>{Object.defineProperty(Wy,"__esModule",{value:!0});var no=b(),XLe=It(),ZLe=Ae(),zLe="ExtraErrorData",JLe=(t={})=>{let{depth:e=3,captureErrorCause:r=!0}=t;return{name:zLe,processEvent(n,o,i){let{maxValueLength:s=250}=i.getOptions();return QLe(n,o,e,r,s)}}},$Le=XLe.defineIntegration(JLe);function QLe(t,e={},r,n,o){if(!e.originalException||!no.isError(e.originalException))return t;let i=e.originalException.name||e.originalException.constructor.name,s=e0e(e.originalException,n,o);if(s){let a={...t.contexts},u=no.normalize(s,r);return no.isPlainObject(u)&&(no.addNonEnumerableProperty(u,"__sentry_skip_normalization__",!0),a[i]=u),{...t,contexts:a}}return t}function e0e(t,e,r){try{let n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(let i of Object.keys(t)){if(n.indexOf(i)!==-1)continue;let s=t[i];o[i]=no.isError(s)||typeof s=="string"?no.truncate(`${s}`,r):s}if(e&&t.cause!==void 0&&(o.cause=no.isError(t.cause)?t.cause.toString():t.cause),typeof t.toJSON=="function"){let i=t.toJSON();for(let s of Object.keys(i)){let a=i[s];o[s]=no.isError(a)?a.toString():a}}return o}catch(n){ZLe.DEBUG_BUILD&&no.logger.error("Unable to extract extra data from the Error object:",n)}return null}Wy.extraErrorDataIntegration=$Le});var G5=c(kg=>{Object.defineProperty(kg,"__esModule",{value:!0});var Fg=b(),t0e=It(),r0e="RewriteFrames",n0e=t0e.defineIntegration((t={})=>{let e=t.root,r=t.prefix||"app:///",n="window"in Fg.GLOBAL_OBJ&&Fg.GLOBAL_OBJ.window!==void 0,o=t.iteratee||D5({isBrowser:n,root:e,prefix:r});function i(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(u=>({...u,...u.stacktrace&&{stacktrace:s(u.stacktrace)}}))}}}catch{return a}}function s(a){return{...a,frames:a&&a.frames&&a.frames.map(u=>o(u))}}return{name:r0e,processEvent(a){let u=a;return a.exception&&Array.isArray(a.exception.values)&&(u=i(u)),u}}});function D5({isBrowser:t,root:e,prefix:r}){return n=>{if(!n.filename)return n;let o=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),i=/^\//.test(n.filename);if(t){if(e){let s=n.filename;s.indexOf(e)===0&&(n.filename=s.replace(e,r))}}else if(o||i){let s=o?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,a=e?Fg.relative(e,s):Fg.basename(s);n.filename=`${r}${a}`}return n}}kg.generateIteratee=D5;kg.rewriteFramesIntegration=n0e});var x5=c(Yy=>{Object.defineProperty(Yy,"__esModule",{value:!0});var U5=b(),o0e=It(),i0e="SessionTiming",s0e=()=>{let t=U5.timestampInSeconds()*1e3;return{name:i0e,processEvent(e){let r=U5.timestampInSeconds()*1e3;return{...e,extra:{...e.extra,"session:start":t,"session:duration":r-t,"session:end":r}}}}},a0e=o0e.defineIntegration(s0e);Yy.sessionTimingIntegration=a0e});var B5=c(Wg=>{Object.defineProperty(Wg,"__esModule",{value:!0});var w5=b(),u0e=It(),c0e=10,l0e="ZodErrors";function d0e(t){return w5.isError(t)&&t.name==="ZodError"&&Array.isArray(t.errors)}function p0e(t){return{...t,path:"path"in t&&Array.isArray(t.path)?t.path.join("."):void 0,keys:"keys"in t?JSON.stringify(t.keys):void 0,unionErrors:"unionErrors"in t?JSON.stringify(t.unionErrors):void 0}}function _0e(t){let e=new Set;for(let n of t.issues)n.path&&n.path[0]&&e.add(n.path[0]);let r=Array.from(e);return`Failed to validate keys: ${w5.truncate(r.join(", "),100)}`}function V5(t,e,r){return!e.exception||!e.exception.values||!r||!r.originalException||!d0e(r.originalException)||r.originalException.issues.length===0?e:{...e,exception:{...e.exception,values:[{...e.exception.values[0],value:_0e(r.originalException)},...e.exception.values.slice(1)]},extra:{...e.extra,"zoderror.issues":r.originalException.errors.slice(0,t).map(p0e)}}}var f0e=(t={})=>{let e=t.limit||c0e;return{name:l0e,processEvent(r,n){return V5(e,r,n)}}},g0e=u0e.defineIntegration(f0e);Wg.applyZodErrorsToEvent=V5;Wg.zodErrorsIntegration=g0e});var F5=c(Ky=>{Object.defineProperty(Ky,"__esModule",{value:!0});var H5=b(),E0e=It(),q5=wy(),h0e=E0e.defineIntegration(t=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",r=>{H5.forEachEnvelopeItem(r,(n,o)=>{if(o==="event"){let i=Array.isArray(n)?n[1]:void 0;i&&(q5.stripMetadataFromStackFrames(i),n[1]=i)}})}),e.on("applyFrameMetadata",r=>{if(r.type)return;let n=e.getOptions().stackParser;q5.addMetadataToStackFrames(n,r)})},processEvent(e){let r=m0e(e);if(r){let n=t.behaviour==="drop-error-if-contains-third-party-frames"||t.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(r[n](i=>!i.some(s=>t.filterKeys.includes(s)))){if(t.behaviour==="drop-error-if-contains-third-party-frames"||t.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;e.tags={...e.tags,third_party_code:!0}}}return e}}));function m0e(t){let e=H5.getFramesFromEvent(t);if(e)return e.filter(r=>!!r.filename).map(r=>r.module_metadata?Object.keys(r.module_metadata).filter(n=>n.startsWith(j5)).map(n=>n.slice(j5.length)):[])}var j5="_sentryBundlerPluginAppKey:";Ky.thirdPartyErrorFilterIntegration=h0e});var Od=c(oo=>{Object.defineProperty(oo,"__esModule",{value:!0});var T0e="c",S0e="g",A0e="s",R0e="d",O0e=5e3,I0e=1e4,b0e=1e4;oo.COUNTER_METRIC_TYPE=T0e;oo.DEFAULT_BROWSER_FLUSH_INTERVAL=O0e;oo.DEFAULT_FLUSH_INTERVAL=I0e;oo.DISTRIBUTION_METRIC_TYPE=R0e;oo.GAUGE_METRIC_TYPE=S0e;oo.MAX_WEIGHT=b0e;oo.SET_METRIC_TYPE=A0e});var $y=c(Jy=>{Object.defineProperty(Jy,"__esModule",{value:!0});var Yg=b(),P0e=me(),y0e=Ae();Ko();var Xy=Ze(),v0e=Ka(),N0e=gg(),Kg=Od();function k5(t,e){let r=Yg.getGlobalSingleton("globalMetricsAggregators",()=>new WeakMap),n=r.get(t);if(n)return n;let o=new e(t);return t.on("flush",()=>o.flush()),t.on("close",()=>o.close()),r.set(t,o),o}function Xg(t,e,r,n,o={}){let i=o.client||P0e.getClient();if(!i)return;let s=Xy.getActiveSpan(),a=s?Xy.getRootSpan(s):void 0,u=a&&Xy.spanToJSON(a).description,{unit:l,tags:d,timestamp:p}=o,{release:_,environment:f}=i.getOptions(),g={};_&&(g.release=_),f&&(g.environment=f),u&&(g.transaction=u),y0e.DEBUG_BUILD&&Yg.logger.log(`Adding value of ${n} to ${e} metric ${r}`),k5(i,t).add(e,r,n,l,{...g,...d},p)}function C0e(t,e,r=1,n){Xg(t,Kg.COUNTER_METRIC_TYPE,e,zy(r),n)}function Zy(t,e,r,n){Xg(t,Kg.DISTRIBUTION_METRIC_TYPE,e,zy(r),n)}function M0e(t,e,r,n="second",o){if(typeof r=="function"){let i=Yg.timestampInSeconds();return v0e.startSpanManual({op:"metrics.timing",name:e,startTime:i,onlyIfParent:!0},s=>N0e.handleCallbackErrors(()=>r(),()=>{},()=>{let a=Yg.timestampInSeconds(),u=a-i;Zy(t,e,u,{...o,unit:"second"}),s.end(a)}))}Zy(t,e,r,{...o,unit:n})}function L0e(t,e,r,n){Xg(t,Kg.SET_METRIC_TYPE,e,r,n)}function D0e(t,e,r,n){Xg(t,Kg.GAUGE_METRIC_TYPE,e,zy(r),n)}var G0e={increment:C0e,distribution:Zy,set:L0e,gauge:D0e,timing:M0e,getMetricsAggregatorForClient:k5};function zy(t){return typeof t=="string"?parseInt(t):t}Jy.metrics=G0e});var K5=c(Qy=>{Object.defineProperty(Qy,"__esModule",{value:!0});var Ja=b(),W5=me(),$a=Ae();function Y5(t){return!!t&&typeof t._profiler<"u"&&typeof t._profiler.start=="function"&&typeof t._profiler.stop=="function"}function U0e(){let t=W5.getClient();if(!t){$a.DEBUG_BUILD&&Ja.logger.warn("No Sentry client available, profiling is not started");return}let e=t.getIntegrationByName("ProfilingIntegration");if(!e){$a.DEBUG_BUILD&&Ja.logger.warn("ProfilingIntegration is not available");return}if(!Y5(e)){$a.DEBUG_BUILD&&Ja.logger.warn("Profiler is not available on profiling integration.");return}e._profiler.start()}function x0e(){let t=W5.getClient();if(!t){$a.DEBUG_BUILD&&Ja.logger.warn("No Sentry client available, profiling is not started");return}let e=t.getIntegrationByName("ProfilingIntegration");if(!e){$a.DEBUG_BUILD&&Ja.logger.warn("ProfilingIntegration is not available");return}if(!Y5(e)){$a.DEBUG_BUILD&&Ja.logger.warn("Profiler is not available on profiling integration.");return}e._profiler.stop()}var w0e={startProfiler:U0e,stopProfiler:x0e};Qy.profiler=w0e});var Id=c(zo=>{Object.defineProperty(zo,"__esModule",{value:!0});var V0e=b();function B0e(t,e,r,n){let o=Object.entries(V0e.dropUndefinedKeys(n)).sort((i,s)=>i[0].localeCompare(s[0]));return`${t}${e}${r}${o}`}function q0e(t){let e=0;for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);e=(e<<5)-e+n,e&=e}return e>>>0}function j0e(t){let e="";for(let r of t){let n=Object.entries(r.tags),o=n.length>0?`|#${n.map(([i,s])=>`${i}:${s}`).join(",")}`:"";e+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${o}|T${r.timestamp}
24
+ `}return e}function H0e(t){return t.replace(/[^\w]+/gi,"_")}function F0e(t){return t.replace(/[^\w\-.]+/gi,"_")}function k0e(t){return t.replace(/[^\w\-./]+/gi,"")}var W0e=[[`
25
+ `,"\\n"],["\r","\\r"],[" ","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Y0e(t){for(let[e,r]of W0e)if(t===e)return r;return t}function K0e(t){return[...t].reduce((e,r)=>e+Y0e(r),"")}function X0e(t){let e={};for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=k0e(r);e[n]=K0e(String(t[r]))}return e}zo.getBucketKey=B0e;zo.sanitizeMetricKey=F0e;zo.sanitizeTags=X0e;zo.sanitizeUnit=H0e;zo.serializeMetricBuckets=j0e;zo.simpleHash=q0e});var tv=c(Zg=>{Object.defineProperty(Zg,"__esModule",{value:!0});var ev=b(),Z0e=Id();function z0e(t,e){ev.logger.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let r=t.getDsn(),n=t.getSdkMetadata(),o=t.getOptions().tunnel,i=X5(e,r,n,o);t.sendEnvelope(i)}function X5(t,e,r,n){let o={sent_at:new Date().toISOString()};r&&r.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&e&&(o.dsn=ev.dsnToString(e));let i=J0e(t);return ev.createEnvelope(o,[i])}function J0e(t){let e=Z0e.serializeMetricBuckets(t);return[{type:"statsd",length:e.length},e]}Zg.captureAggregateMetrics=z0e;Zg.createMetricEnvelope=X5});var rv=c(ys=>{Object.defineProperty(ys,"__esModule",{value:!0});var zg=Od(),$0e=Id(),Jg=class{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}},$g=class{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},Qg=class{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}},eE=class{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>typeof e=="string"?$0e.simpleHash(e):e).join(":")}},Q0e={[zg.COUNTER_METRIC_TYPE]:Jg,[zg.GAUGE_METRIC_TYPE]:$g,[zg.DISTRIBUTION_METRIC_TYPE]:Qg,[zg.SET_METRIC_TYPE]:eE};ys.CounterMetric=Jg;ys.DistributionMetric=Qg;ys.GaugeMetric=$g;ys.METRIC_MAP=Q0e;ys.SetMetric=eE});var z5=c(ov=>{Object.defineProperty(ov,"__esModule",{value:!0});var Z5=b(),eDe=Ze(),bd=Od(),tDe=tv(),rDe=rv(),tE=Id(),nv=class{constructor(e){this._client=e,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval(()=>this._flush(),bd.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*bd.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(e,r,n,o="none",i={},s=Z5.timestampInSeconds()){let a=Math.floor(s),u=tE.sanitizeMetricKey(r),l=tE.sanitizeTags(i),d=tE.sanitizeUnit(o),p=tE.getBucketKey(e,u,d,l),_=this._buckets.get(p),f=_&&e===bd.SET_METRIC_TYPE?_.metric.weight:0;_?(_.metric.add(n),_.timestamp<a&&(_.timestamp=a)):(_={metric:new rDe.METRIC_MAP[e](n),timestamp:a,metricType:e,name:u,unit:d,tags:l},this._buckets.set(p,_));let g=typeof n=="string"?_.metric.weight-f:n;eDe.updateMetricSummaryOnActiveSpan(e,u,g,d,i,p),this._bucketsTotalWeight+=_.metric.weight,this._bucketsTotalWeight>=bd.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush){this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),this._buckets.clear();return}let e=Math.floor(Z5.timestampInSeconds())-bd.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,r=new Map;for(let[n,o]of this._buckets)o.timestamp<=e&&(r.set(n,o),this._bucketsTotalWeight-=o.metric.weight);for(let[n]of r)this._buckets.delete(n);this._captureMetrics(r)}_captureMetrics(e){if(e.size>0){let r=Array.from(e).map(([,n])=>n);tDe.captureAggregateMetrics(this._client,r)}}};ov.MetricsAggregator=nv});var J5=c(iv=>{Object.defineProperty(iv,"__esModule",{value:!0});var Qa=z5(),eu=$y();function nDe(t,e=1,r){eu.metrics.increment(Qa.MetricsAggregator,t,e,r)}function oDe(t,e,r){eu.metrics.distribution(Qa.MetricsAggregator,t,e,r)}function iDe(t,e,r){eu.metrics.set(Qa.MetricsAggregator,t,e,r)}function sDe(t,e,r){eu.metrics.gauge(Qa.MetricsAggregator,t,e,r)}function aDe(t,e,r="second",n){return eu.metrics.timing(Qa.MetricsAggregator,t,e,r,n)}function uDe(t){return eu.metrics.getMetricsAggregatorForClient(t,Qa.MetricsAggregator)}var cDe={increment:nDe,distribution:oDe,set:iDe,gauge:sDe,timing:aDe,getMetricsAggregatorForClient:uDe};iv.metricsDefault=cDe});var Q5=c(av=>{Object.defineProperty(av,"__esModule",{value:!0});var lDe=b(),dDe=Ze(),$5=Od(),pDe=tv(),_De=rv(),rE=Id(),sv=class{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),$5.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(e,r,n,o="none",i={},s=lDe.timestampInSeconds()){let a=Math.floor(s),u=rE.sanitizeMetricKey(r),l=rE.sanitizeTags(i),d=rE.sanitizeUnit(o),p=rE.getBucketKey(e,u,d,l),_=this._buckets.get(p),f=_&&e===$5.SET_METRIC_TYPE?_.metric.weight:0;_?(_.metric.add(n),_.timestamp<a&&(_.timestamp=a)):(_={metric:new _De.METRIC_MAP[e](n),timestamp:a,metricType:e,name:u,unit:d,tags:l},this._buckets.set(p,_));let g=typeof n=="string"?_.metric.weight-f:n;dDe.updateMetricSummaryOnActiveSpan(e,u,g,d,i,p)}flush(){if(this._buckets.size===0)return;let e=Array.from(this._buckets.values());pDe.captureAggregateMetrics(this._client,e),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}};av.BrowserMetricsAggregator=sv});var s9=c(oE=>{Object.defineProperty(oE,"__esModule",{value:!0});var Yr=b(),uv=me(),e9=pn();Ko();Ae();var t9=Os(),o9=Ze(),fDe=dd(),r9=Ss(),gDe=Ka(),n9=_n();function EDe(t,e,r,n,o="auto.http.browser"){if(!t.fetchData)return;let i=t9.hasTracingEnabled()&&e(t.fetchData.url);if(t.endTimestamp&&i){let g=t.fetchData.__span;if(!g)return;let E=n[g];E&&(mDe(E,t),delete n[g]);return}let s=uv.getCurrentScope(),a=uv.getClient(),{method:u,url:l}=t.fetchData,d=hDe(l),p=d?Yr.parseUrl(d).host:void 0,_=!!o9.getActiveSpan(),f=i&&_?gDe.startInactiveSpan({name:`${u} ${l}`,attributes:{url:l,type:"fetch","http.method":u,"http.url":d,"server.address":p,[e9.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:o,[e9.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new fDe.SentryNonRecordingSpan;if(t.fetchData.__span=f.spanContext().spanId,n[f.spanContext().spanId]=f,r(t.fetchData.url)&&a){let g=t.args[0];t.args[1]=t.args[1]||{};let E=t.args[1];E.headers=i9(g,a,s,E,t9.hasTracingEnabled()&&_?f:void 0)}return f}function i9(t,e,r,n,o){let i=uv.getIsolationScope(),{traceId:s,spanId:a,sampled:u,dsc:l}={...i.getPropagationContext(),...r.getPropagationContext()},d=o?o9.spanToTraceHeader(o):Yr.generateSentryTraceHeader(s,a,u),p=Yr.dynamicSamplingContextToSentryBaggageHeader(l||(o?n9.getDynamicSamplingContextFromSpan(o):n9.getDynamicSamplingContextFromClient(s,e))),_=n.headers||(typeof Request<"u"&&Yr.isInstanceOf(t,Request)?t.headers:void 0);if(_)if(typeof Headers<"u"&&Yr.isInstanceOf(_,Headers)){let f=new Headers(_);if(f.set("sentry-trace",d),p){let g=f.get(Yr.BAGGAGE_HEADER_NAME);if(g){let E=nE(g);f.set(Yr.BAGGAGE_HEADER_NAME,E?`${E},${p}`:p)}else f.set(Yr.BAGGAGE_HEADER_NAME,p)}return f}else if(Array.isArray(_)){let f=[..._.filter(g=>!(Array.isArray(g)&&g[0]==="sentry-trace")).map(g=>{if(Array.isArray(g)&&g[0]===Yr.BAGGAGE_HEADER_NAME&&typeof g[1]=="string"){let[E,S,...v]=g;return[E,nE(S),...v]}else return g}),["sentry-trace",d]];return p&&f.push([Yr.BAGGAGE_HEADER_NAME,p]),f}else{let f="baggage"in _?_.baggage:void 0,g=[];return Array.isArray(f)?g=f.map(E=>typeof E=="string"?nE(E):E).filter(E=>E===""):f&&g.push(nE(f)),p&&g.push(p),{..._,"sentry-trace":d,baggage:g.length>0?g.join(","):void 0}}else return{"sentry-trace":d,baggage:p}}function hDe(t){try{return new URL(t).href}catch{return}}function mDe(t,e){if(e.response){r9.setHttpStatus(t,e.response.status);let r=e.response&&e.response.headers&&e.response.headers.get("content-length");if(r){let n=parseInt(r);n>0&&t.setAttribute("http.response_content_length",n)}}else e.error&&t.setStatus({code:r9.SPAN_STATUS_ERROR,message:"internal_error"});t.end()}function nE(t){return t.split(",").filter(e=>!e.split("=")[0].startsWith(Yr.SENTRY_BAGGAGE_KEY_PREFIX)).join(",")}oE.addTracingHeadersToFetchRequest=i9;oE.instrumentFetchRequest=EDe});var l9=c(lv=>{Object.defineProperty(lv,"__esModule",{value:!0});var a9=b(),TDe=me(),cv=za(),u9=pn();Ko();Ae();var SDe=Ka(),c9={mechanism:{handled:!1,data:{function:"trpcMiddleware"}}};function ADe(t){typeof t=="object"&&t!==null&&"ok"in t&&!t.ok&&"error"in t&&cv.captureException(t.error,c9)}function RDe(t={}){return async function(e){let{path:r,type:n,next:o,rawInput:i,getRawInput:s}=e,a=TDe.getClient(),u=a&&a.getOptions(),l={procedure_type:n};if((t.attachRpcInput!==void 0?t.attachRpcInput:u&&u.sendDefaultPii)&&(i!==void 0&&(l.input=a9.normalize(i)),s!==void 0&&typeof s=="function"))try{let d=await s();l.input=a9.normalize(d)}catch{}return cv.setContext("trpc",l),SDe.startSpanManual({name:`trpc/${r}`,op:"rpc.server",attributes:{[u9.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[u9.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"}},async d=>{try{let p=await o();return ADe(p),d.end(),p}catch(p){throw cv.captureException(p,c9),d.end(),p}})}}lv.trpcMiddleware=RDe});var p9=c(dv=>{Object.defineProperty(dv,"__esModule",{value:!0});var ODe=b(),d9=me();function IDe(t,e={},r=d9.getCurrentScope()){let{message:n,name:o,email:i,url:s,source:a,associatedEventId:u,tags:l}=t,d={contexts:{feedback:ODe.dropUndefinedKeys({contact_email:i,name:o,message:n,url:s,source:a,associated_event_id:u})},type:"feedback",level:"info",tags:l},p=r&&r.getClient()||d9.getClient();return p&&p.emit("beforeSendFeedback",d,e),r.captureEvent(d,e)}dv.captureFeedback=IDe});var f9=c(iE=>{Object.defineProperty(iE,"__esModule",{value:!0});var bDe=Ly(),gn=me(),fn=za();function _9(){return{bindClient(t){gn.getCurrentScope().setClient(t)},withScope:gn.withScope,getClient:()=>gn.getClient(),getScope:gn.getCurrentScope,getIsolationScope:gn.getIsolationScope,captureException:(t,e)=>gn.getCurrentScope().captureException(t,e),captureMessage:(t,e,r)=>gn.getCurrentScope().captureMessage(t,e,r),captureEvent:fn.captureEvent,addBreadcrumb:bDe.addBreadcrumb,setUser:fn.setUser,setTags:fn.setTags,setTag:fn.setTag,setExtra:fn.setExtra,setExtras:fn.setExtras,setContext:fn.setContext,getIntegration(t){let e=gn.getClient();return e&&e.getIntegrationByName(t.id)||null},startSession:fn.startSession,endSession:fn.endSession,captureSession(t){if(t)return fn.endSession();yDe()}}}var PDe=_9;function yDe(){let t=gn.getCurrentScope(),e=gn.getClient(),r=t.getSession();e&&r&&e.captureSession(r)}iE.getCurrentHub=PDe;iE.getCurrentHubShim=_9});var W=c(A=>{Object.defineProperty(A,"__esModule",{value:!0});var vDe=Ko(),g9=fg(),NDe=nZ(),E9=vZ(),CDe=HP(),MDe=dd(),Pd=Ss(),vs=Ka(),pv=_n(),h9=qP(),LDe=BP(),m9=Tg(),rr=pn(),_v=Ag(),Ve=za(),tu=me(),T9=mP(),DDe=ka(),GDe=Wo(),fv=cd(),UDe=cy(),xDe=Ha(),wDe=ey(),S9=Lg(),VDe=gy(),BDe=kZ(),A9=XZ(),qDe=$Z(),jDe=QZ(),HDe=e5(),gv=It(),R9=ry(),FDe=Ng(),kDe=my(),WDe=Os(),YDe=r5(),KDe=gg(),XDe=n5(),En=Ze(),ZDe=Sg(),zDe=i5(),JDe=Ny(),$De=c5(),QDe=pd(),eGe=Ly(),tGe=f5(),rGe=g5(),nGe=h5(),oGe=R5(),iGe=O5(),sGe=b5(),aGe=P5(),uGe=M5(),cGe=L5(),lGe=G5(),dGe=x5(),pGe=B5(),_Ge=F5(),fGe=$y(),gGe=K5(),EGe=J5(),hGe=Q5(),mGe=_g(),O9=s9(),TGe=l9(),SGe=p9(),I9=f9(),AGe=b();A.registerSpanErrorInstrumentation=vDe.registerSpanErrorInstrumentation;A.getCapturedScopesOnSpan=g9.getCapturedScopesOnSpan;A.setCapturedScopesOnSpan=g9.setCapturedScopesOnSpan;A.addTracingExtensions=NDe.addTracingExtensions;A.TRACING_DEFAULTS=E9.TRACING_DEFAULTS;A.startIdleSpan=E9.startIdleSpan;A.SentrySpan=CDe.SentrySpan;A.SentryNonRecordingSpan=MDe.SentryNonRecordingSpan;A.SPAN_STATUS_ERROR=Pd.SPAN_STATUS_ERROR;A.SPAN_STATUS_OK=Pd.SPAN_STATUS_OK;A.SPAN_STATUS_UNSET=Pd.SPAN_STATUS_UNSET;A.getSpanStatusFromHttpCode=Pd.getSpanStatusFromHttpCode;A.setHttpStatus=Pd.setHttpStatus;A.continueTrace=vs.continueTrace;A.startInactiveSpan=vs.startInactiveSpan;A.startNewTrace=vs.startNewTrace;A.startSpan=vs.startSpan;A.startSpanManual=vs.startSpanManual;A.suppressTracing=vs.suppressTracing;A.withActiveSpan=vs.withActiveSpan;A.getDynamicSamplingContextFromClient=pv.getDynamicSamplingContextFromClient;A.getDynamicSamplingContextFromSpan=pv.getDynamicSamplingContextFromSpan;A.spanToBaggageHeader=pv.spanToBaggageHeader;A.setMeasurement=h9.setMeasurement;A.timedEventsToMeasurements=h9.timedEventsToMeasurements;A.sampleSpan=LDe.sampleSpan;A.logSpanEnd=m9.logSpanEnd;A.logSpanStart=m9.logSpanStart;A.SEMANTIC_ATTRIBUTE_CACHE_HIT=rr.SEMANTIC_ATTRIBUTE_CACHE_HIT;A.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=rr.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE;A.SEMANTIC_ATTRIBUTE_CACHE_KEY=rr.SEMANTIC_ATTRIBUTE_CACHE_KEY;A.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=rr.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME;A.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=rr.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD;A.SEMANTIC_ATTRIBUTE_PROFILE_ID=rr.SEMANTIC_ATTRIBUTE_PROFILE_ID;A.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=rr.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON;A.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=rr.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT;A.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=rr.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE;A.SEMANTIC_ATTRIBUTE_SENTRY_OP=rr.SEMANTIC_ATTRIBUTE_SENTRY_OP;A.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=rr.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;A.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=rr.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;A.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=rr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;A.SEMANTIC_ATTRIBUTE_URL_FULL=rr.SEMANTIC_ATTRIBUTE_URL_FULL;A.createEventEnvelope=_v.createEventEnvelope;A.createSessionEnvelope=_v.createSessionEnvelope;A.createSpanEnvelope=_v.createSpanEnvelope;A.addEventProcessor=Ve.addEventProcessor;A.captureCheckIn=Ve.captureCheckIn;A.captureEvent=Ve.captureEvent;A.captureException=Ve.captureException;A.captureMessage=Ve.captureMessage;A.captureSession=Ve.captureSession;A.close=Ve.close;A.endSession=Ve.endSession;A.flush=Ve.flush;A.isEnabled=Ve.isEnabled;A.isInitialized=Ve.isInitialized;A.lastEventId=Ve.lastEventId;A.setContext=Ve.setContext;A.setExtra=Ve.setExtra;A.setExtras=Ve.setExtras;A.setTag=Ve.setTag;A.setTags=Ve.setTags;A.setUser=Ve.setUser;A.startSession=Ve.startSession;A.withMonitor=Ve.withMonitor;A.getClient=tu.getClient;A.getCurrentScope=tu.getCurrentScope;A.getGlobalScope=tu.getGlobalScope;A.getIsolationScope=tu.getIsolationScope;A.withIsolationScope=tu.withIsolationScope;A.withScope=tu.withScope;A.getDefaultCurrentScope=T9.getDefaultCurrentScope;A.getDefaultIsolationScope=T9.getDefaultIsolationScope;A.setAsyncContextStrategy=DDe.setAsyncContextStrategy;A.getMainCarrier=GDe.getMainCarrier;A.closeSession=fv.closeSession;A.makeSession=fv.makeSession;A.updateSession=fv.updateSession;A.SessionFlusher=UDe.SessionFlusher;A.Scope=xDe.Scope;A.notifyEventProcessors=wDe.notifyEventProcessors;A.getEnvelopeEndpointWithUrlEncodedAuth=S9.getEnvelopeEndpointWithUrlEncodedAuth;A.getReportDialogEndpoint=S9.getReportDialogEndpoint;A.BaseClient=VDe.BaseClient;A.ServerRuntimeClient=BDe.ServerRuntimeClient;A.initAndBind=A9.initAndBind;A.setCurrentClient=A9.setCurrentClient;A.createTransport=qDe.createTransport;A.makeOfflineTransport=jDe.makeOfflineTransport;A.makeMultiplexedTransport=HDe.makeMultiplexedTransport;A.addIntegration=gv.addIntegration;A.defineIntegration=gv.defineIntegration;A.getIntegrationsToSetup=gv.getIntegrationsToSetup;A.applyScopeDataToEvent=R9.applyScopeDataToEvent;A.mergeScopeData=R9.mergeScopeData;A.prepareEvent=FDe.prepareEvent;A.createCheckInEnvelope=kDe.createCheckInEnvelope;A.hasTracingEnabled=WDe.hasTracingEnabled;A.isSentryRequestUrl=YDe.isSentryRequestUrl;A.handleCallbackErrors=KDe.handleCallbackErrors;A.parameterize=XDe.parameterize;A.addChildSpanToSpan=En.addChildSpanToSpan;A.getActiveSpan=En.getActiveSpan;A.getRootSpan=En.getRootSpan;A.getSpanDescendants=En.getSpanDescendants;A.getStatusMessage=En.getStatusMessage;A.spanIsSampled=En.spanIsSampled;A.spanTimeInputToSeconds=En.spanTimeInputToSeconds;A.spanToJSON=En.spanToJSON;A.spanToTraceContext=En.spanToTraceContext;A.spanToTraceHeader=En.spanToTraceHeader;A.parseSampleRate=ZDe.parseSampleRate;A.applySdkMetadata=zDe.applySdkMetadata;A.getTraceData=JDe.getTraceData;A.getTraceMetaTags=$De.getTraceMetaTags;A.DEFAULT_ENVIRONMENT=QDe.DEFAULT_ENVIRONMENT;A.addBreadcrumb=eGe.addBreadcrumb;A.functionToStringIntegration=tGe.functionToStringIntegration;A.inboundFiltersIntegration=rGe.inboundFiltersIntegration;A.linkedErrorsIntegration=nGe.linkedErrorsIntegration;A.moduleMetadataIntegration=oGe.moduleMetadataIntegration;A.requestDataIntegration=iGe.requestDataIntegration;A.captureConsoleIntegration=sGe.captureConsoleIntegration;A.debugIntegration=aGe.debugIntegration;A.dedupeIntegration=uGe.dedupeIntegration;A.extraErrorDataIntegration=cGe.extraErrorDataIntegration;A.rewriteFramesIntegration=lGe.rewriteFramesIntegration;A.sessionTimingIntegration=dGe.sessionTimingIntegration;A.zodErrorsIntegration=pGe.zodErrorsIntegration;A.thirdPartyErrorFilterIntegration=_Ge.thirdPartyErrorFilterIntegration;A.metrics=fGe.metrics;A.profiler=gGe.profiler;A.metricsDefault=EGe.metricsDefault;A.BrowserMetricsAggregator=hGe.BrowserMetricsAggregator;A.getMetricSummaryJsonForSpan=mGe.getMetricSummaryJsonForSpan;A.addTracingHeadersToFetchRequest=O9.addTracingHeadersToFetchRequest;A.instrumentFetchRequest=O9.instrumentFetchRequest;A.trpcMiddleware=TGe.trpcMiddleware;A.captureFeedback=SGe.captureFeedback;A.getCurrentHub=I9.getCurrentHub;A.getCurrentHubShim=I9.getCurrentHubShim;A.SDK_VERSION=AGe.SDK_VERSION});var yd=c(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.isTracingSuppressed=Jo.unsuppressTracing=Jo.suppressTracing=void 0;var RGe=(y(),T(P)),Ev=(0,RGe.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function OGe(t){return t.setValue(Ev,!0)}Jo.suppressTracing=OGe;function IGe(t){return t.deleteValue(Ev)}Jo.unsuppressTracing=IGe;function bGe(t){return t.getValue(Ev)===!0}Jo.isTracingSuppressed=bGe});var hv=c(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.BAGGAGE_MAX_TOTAL_LENGTH=bt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=bt.BAGGAGE_MAX_NAME_VALUE_PAIRS=bt.BAGGAGE_HEADER=bt.BAGGAGE_ITEMS_SEPARATOR=bt.BAGGAGE_PROPERTIES_SEPARATOR=bt.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;bt.BAGGAGE_KEY_PAIR_SEPARATOR="=";bt.BAGGAGE_PROPERTIES_SEPARATOR=";";bt.BAGGAGE_ITEMS_SEPARATOR=",";bt.BAGGAGE_HEADER="baggage";bt.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;bt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;bt.BAGGAGE_MAX_TOTAL_LENGTH=8192});var mv=c(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.parseKeyPairsIntoRecord=hn.parsePairKeyValue=hn.getKeyPairs=hn.serializeKeyPairs=void 0;var PGe=(y(),T(P)),Ns=hv();function yGe(t){return t.reduce((e,r)=>{let n=`${e}${e!==""?Ns.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return n.length>Ns.BAGGAGE_MAX_TOTAL_LENGTH?e:n},"")}hn.serializeKeyPairs=yGe;function vGe(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=Ns.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),n})}hn.getKeyPairs=vGe;function b9(t){let e=t.split(Ns.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let n=r.indexOf(Ns.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=decodeURIComponent(r.substring(0,n).trim()),i=decodeURIComponent(r.substring(n+1).trim()),s;return e.length>0&&(s=(0,PGe.baggageEntryMetadataFromString)(e.join(Ns.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:i,metadata:s}}hn.parsePairKeyValue=b9;function NGe(t){return typeof t!="string"||t.length===0?{}:t.split(Ns.BAGGAGE_ITEMS_SEPARATOR).map(e=>b9(e)).filter(e=>e!==void 0&&e.value.length>0).reduce((e,r)=>(e[r.key]=r.value,e),{})}hn.parseKeyPairsIntoRecord=NGe});var P9=c(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0});sE.W3CBaggagePropagator=void 0;var Tv=(y(),T(P)),CGe=yd(),Cs=hv(),Sv=mv(),Av=class{inject(e,r,n){let o=Tv.propagation.getBaggage(e);if(!o||(0,CGe.isTracingSuppressed)(e))return;let i=(0,Sv.getKeyPairs)(o).filter(a=>a.length<=Cs.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,Cs.BAGGAGE_MAX_NAME_VALUE_PAIRS),s=(0,Sv.serializeKeyPairs)(i);s.length>0&&n.set(r,Cs.BAGGAGE_HEADER,s)}extract(e,r,n){let o=n.get(r,Cs.BAGGAGE_HEADER),i=Array.isArray(o)?o.join(Cs.BAGGAGE_ITEMS_SEPARATOR):o;if(!i)return e;let s={};return i.length===0||(i.split(Cs.BAGGAGE_ITEMS_SEPARATOR).forEach(u=>{let l=(0,Sv.parsePairKeyValue)(u);if(l){let d={value:l.value};l.metadata&&(d.metadata=l.metadata),s[l.key]=d}}),Object.entries(s).length===0)?e:Tv.propagation.setBaggage(e,Tv.propagation.createBaggage(s))}fields(){return[Cs.BAGGAGE_HEADER]}};sE.W3CBaggagePropagator=Av});var y9=c(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});aE.AnchoredClock=void 0;var Rv=class{constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};aE.AnchoredClock=Rv});var L9=c($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.isAttributeValue=$o.isAttributeKey=$o.sanitizeAttributes=void 0;var v9=(y(),T(P));function MGe(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,n]of Object.entries(t)){if(!N9(r)){v9.diag.warn(`Invalid attribute key: ${r}`);continue}if(!C9(n)){v9.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}$o.sanitizeAttributes=MGe;function N9(t){return typeof t=="string"&&t.length>0}$o.isAttributeKey=N9;function C9(t){return t==null?!0:Array.isArray(t)?LGe(t):M9(t)}$o.isAttributeValue=C9;function LGe(t){let e;for(let r of t)if(r!=null){if(!e){if(M9(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function M9(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var Ov=c(uE=>{"use strict";Object.defineProperty(uE,"__esModule",{value:!0});uE.loggingErrorHandler=void 0;var DGe=(y(),T(P));function GGe(){return t=>{DGe.diag.error(UGe(t))}}uE.loggingErrorHandler=GGe;function UGe(t){return typeof t=="string"?t:JSON.stringify(xGe(t))}function xGe(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;let o=r[n];o&&(e[n]=String(o))}),r=Object.getPrototypeOf(r);return e}});var Iv=c(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.globalErrorHandler=ru.setGlobalErrorHandler=void 0;var wGe=Ov(),D9=(0,wGe.loggingErrorHandler)();function VGe(t){D9=t}ru.setGlobalErrorHandler=VGe;function BGe(t){try{D9(t)}catch{}}ru.globalErrorHandler=BGe});var bv=c(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.TracesSamplerValues=void 0;var qGe;(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(qGe=vd.TracesSamplerValues||(vd.TracesSamplerValues={}))});var Pv=c(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.parseEnvironment=be.DEFAULT_ENVIRONMENT=be.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=be.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=be.DEFAULT_ATTRIBUTE_COUNT_LIMIT=be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var Qo=(y(),T(P)),jGe=bv(),HGe=",",FGe=["OTEL_SDK_DISABLED"];function kGe(t){return FGe.indexOf(t)>-1}var WGe=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function YGe(t){return WGe.indexOf(t)>-1}var KGe=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function XGe(t){return KGe.indexOf(t)>-1}be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;be.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;be.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;be.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;be.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Qo.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:be.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:be.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:be.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:be.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:be.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:jGe.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function ZGe(t,e,r){if(typeof r[t]>"u")return;let n=String(r[t]);e[t]=n.toLowerCase()==="true"}function zGe(t,e,r,n=-1/0,o=1/0){if(typeof r[t]<"u"){let i=Number(r[t]);isNaN(i)||(i<n?e[t]=n:i>o?e[t]=o:e[t]=i)}}function JGe(t,e,r,n=HGe){let o=r[t];typeof o=="string"&&(e[t]=o.split(n).map(i=>i.trim()))}var $Ge={ALL:Qo.DiagLogLevel.ALL,VERBOSE:Qo.DiagLogLevel.VERBOSE,DEBUG:Qo.DiagLogLevel.DEBUG,INFO:Qo.DiagLogLevel.INFO,WARN:Qo.DiagLogLevel.WARN,ERROR:Qo.DiagLogLevel.ERROR,NONE:Qo.DiagLogLevel.NONE};function QGe(t,e,r){let n=r[t];if(typeof n=="string"){let o=$Ge[n.toUpperCase()];o!=null&&(e[t]=o)}}function e1e(t){let e={};for(let r in be.DEFAULT_ENVIRONMENT){let n=r;switch(n){case"OTEL_LOG_LEVEL":QGe(n,e,t);break;default:if(kGe(n))ZGe(n,e,t);else if(YGe(n))zGe(n,e,t);else if(XGe(n))JGe(n,e,t);else{let o=t[n];typeof o<"u"&&o!==null&&(e[n]=String(o))}}}return e}be.parseEnvironment=e1e});var G9=c(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.getEnvWithoutDefaults=nu.getEnv=void 0;var yv=Pv();function t1e(){let t=(0,yv.parseEnvironment)(process.env);return Object.assign({},yv.DEFAULT_ENVIRONMENT,t)}nu.getEnv=t1e;function r1e(){return(0,yv.parseEnvironment)(process.env)}nu.getEnvWithoutDefaults=r1e});var U9=c(cE=>{"use strict";Object.defineProperty(cE,"__esModule",{value:!0});cE._globalThis=void 0;cE._globalThis=typeof globalThis=="object"?globalThis:global});var vv=c(lE=>{"use strict";Object.defineProperty(lE,"__esModule",{value:!0});lE.hexToBinary=void 0;function x9(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function n1e(t){let e=new Uint8Array(t.length/2),r=0;for(let n=0;n<t.length;n+=2){let o=x9(t.charCodeAt(n)),i=x9(t.charCodeAt(n+1));e[r++]=o<<4|i}return e}lE.hexToBinary=n1e});var w9=c(dE=>{"use strict";Object.defineProperty(dE,"__esModule",{value:!0});dE.hexToBase64=void 0;var o1e=vv();function i1e(t){return Buffer.from((0,o1e.hexToBinary)(t)).toString("base64")}dE.hexToBase64=i1e});var q9=c(_E=>{"use strict";Object.defineProperty(_E,"__esModule",{value:!0});_E.RandomIdGenerator=void 0;var s1e=8,B9=16,Nv=class{constructor(){this.generateTraceId=V9(B9),this.generateSpanId=V9(s1e)}};_E.RandomIdGenerator=Nv;var pE=Buffer.allocUnsafe(B9);function V9(t){return function(){for(let r=0;r<t/4;r++)pE.writeUInt32BE(Math.random()*2**32>>>0,r*4);for(let r=0;r<t&&!(pE[r]>0);r++)r===t-1&&(pE[t-1]=1);return pE.toString("hex",0,t)}}});var j9=c(fE=>{"use strict";Object.defineProperty(fE,"__esModule",{value:!0});fE.otperformance=void 0;var a1e=m("perf_hooks");fE.otperformance=a1e.performance});var Cv=c(gE=>{"use strict";Object.defineProperty(gE,"__esModule",{value:!0});gE.VERSION=void 0;gE.VERSION="1.27.0"});var H9=c(EE=>{"use strict";Object.defineProperty(EE,"__esModule",{value:!0});EE.SDK_INFO=void 0;var u1e=Cv(),Nd=(Q(),T($));EE.SDK_INFO={[Nd.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[Nd.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[Nd.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:Nd.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[Nd.SEMRESATTRS_TELEMETRY_SDK_VERSION]:u1e.VERSION}});var F9=c(hE=>{"use strict";Object.defineProperty(hE,"__esModule",{value:!0});hE.unrefTimer=void 0;function c1e(t){t.unref()}hE.unrefTimer=c1e});var W9=c(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.unrefTimer=Je.SDK_INFO=Je.otperformance=Je.RandomIdGenerator=Je.hexToBase64=Je._globalThis=Je.getEnv=Je.getEnvWithoutDefaults=void 0;var k9=G9();Object.defineProperty(Je,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return k9.getEnvWithoutDefaults}});Object.defineProperty(Je,"getEnv",{enumerable:!0,get:function(){return k9.getEnv}});var l1e=U9();Object.defineProperty(Je,"_globalThis",{enumerable:!0,get:function(){return l1e._globalThis}});var d1e=w9();Object.defineProperty(Je,"hexToBase64",{enumerable:!0,get:function(){return d1e.hexToBase64}});var p1e=q9();Object.defineProperty(Je,"RandomIdGenerator",{enumerable:!0,get:function(){return p1e.RandomIdGenerator}});var _1e=j9();Object.defineProperty(Je,"otperformance",{enumerable:!0,get:function(){return _1e.otperformance}});var f1e=H9();Object.defineProperty(Je,"SDK_INFO",{enumerable:!0,get:function(){return f1e.SDK_INFO}});var g1e=F9();Object.defineProperty(Je,"unrefTimer",{enumerable:!0,get:function(){return g1e.unrefTimer}})});var Mv=c($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.unrefTimer=$e.otperformance=$e.hexToBase64=$e.getEnvWithoutDefaults=$e.getEnv=$e._globalThis=$e.SDK_INFO=$e.RandomIdGenerator=void 0;var ei=W9();Object.defineProperty($e,"RandomIdGenerator",{enumerable:!0,get:function(){return ei.RandomIdGenerator}});Object.defineProperty($e,"SDK_INFO",{enumerable:!0,get:function(){return ei.SDK_INFO}});Object.defineProperty($e,"_globalThis",{enumerable:!0,get:function(){return ei._globalThis}});Object.defineProperty($e,"getEnv",{enumerable:!0,get:function(){return ei.getEnv}});Object.defineProperty($e,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return ei.getEnvWithoutDefaults}});Object.defineProperty($e,"hexToBase64",{enumerable:!0,get:function(){return ei.hexToBase64}});Object.defineProperty($e,"otperformance",{enumerable:!0,get:function(){return ei.otperformance}});Object.defineProperty($e,"unrefTimer",{enumerable:!0,get:function(){return ei.unrefTimer}})});var Z9=c(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.addHrTimes=ge.isTimeInput=ge.isTimeInputHrTime=ge.hrTimeToMicroseconds=ge.hrTimeToMilliseconds=ge.hrTimeToNanoseconds=ge.hrTimeToTimeStamp=ge.hrTimeDuration=ge.timeInputToHrTime=ge.hrTime=ge.getTimeOrigin=ge.millisToHrTime=void 0;var Lv=Mv(),Y9=9,E1e=6,h1e=Math.pow(10,E1e),mE=Math.pow(10,Y9);function Cd(t){let e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*h1e);return[r,n]}ge.millisToHrTime=Cd;function Dv(){let t=Lv.otperformance.timeOrigin;if(typeof t!="number"){let e=Lv.otperformance;t=e.timing&&e.timing.fetchStart}return t}ge.getTimeOrigin=Dv;function K9(t){let e=Cd(Dv()),r=Cd(typeof t=="number"?t:Lv.otperformance.now());return X9(e,r)}ge.hrTime=K9;function m1e(t){if(Gv(t))return t;if(typeof t=="number")return t<Dv()?K9(t):Cd(t);if(t instanceof Date)return Cd(t.getTime());throw TypeError("Invalid input type")}ge.timeInputToHrTime=m1e;function T1e(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=mE),[r,n]}ge.hrTimeDuration=T1e;function S1e(t){let e=Y9,r=`${"0".repeat(e)}${t[1]}Z`,n=r.substr(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",n)}ge.hrTimeToTimeStamp=S1e;function A1e(t){return t[0]*mE+t[1]}ge.hrTimeToNanoseconds=A1e;function R1e(t){return t[0]*1e3+t[1]/1e6}ge.hrTimeToMilliseconds=R1e;function O1e(t){return t[0]*1e6+t[1]/1e3}ge.hrTimeToMicroseconds=O1e;function Gv(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}ge.isTimeInputHrTime=Gv;function I1e(t){return Gv(t)||typeof t=="number"||t instanceof Date}ge.isTimeInput=I1e;function X9(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=mE&&(r[1]-=mE,r[0]+=1),r}ge.addHrTimes=X9});var z9=c(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.ExportResultCode=void 0;var b1e;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(b1e=Md.ExportResultCode||(Md.ExportResultCode={}))});var $9=c(TE=>{"use strict";Object.defineProperty(TE,"__esModule",{value:!0});TE.CompositePropagator=void 0;var J9=(y(),T(P)),Uv=class{constructor(e={}){var r;this._propagators=(r=e.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,o)=>n.concat(o),[])))}inject(e,r,n){for(let o of this._propagators)try{o.inject(e,r,n)}catch(i){J9.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${i.message}`)}}extract(e,r,n){return this._propagators.reduce((o,i)=>{try{return i.extract(o,r,n)}catch(s){J9.diag.warn(`Failed to extract with ${i.constructor.name}. Err: ${s.message}`)}return o},e)}fields(){return this._fields.slice()}};TE.CompositePropagator=Uv});var Q9=c(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.validateValue=ou.validateKey=void 0;var xv="[_0-9a-z-*/]",P1e=`[a-z]${xv}{0,255}`,y1e=`[a-z0-9]${xv}{0,240}@[a-z]${xv}{0,13}`,v1e=new RegExp(`^(?:${P1e}|${y1e})$`),N1e=/^[ -~]{0,255}[!-~]$/,C1e=/,|=/;function M1e(t){return v1e.test(t)}ou.validateKey=M1e;function L1e(t){return N1e.test(t)&&!C1e.test(t)}ou.validateValue=L1e});var Vv=c(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.TraceState=void 0;var ez=Q9(),tz=32,D1e=512,rz=",",nz="=",wv=class t{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,r){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+nz+this.get(r)),e),[]).join(rz)}_parse(e){e.length>D1e||(this._internalState=e.split(rz).reverse().reduce((r,n)=>{let o=n.trim(),i=o.indexOf(nz);if(i!==-1){let s=o.slice(0,i),a=o.slice(i+1,n.length);(0,ez.validateKey)(s)&&(0,ez.validateValue)(a)&&r.set(s,a)}return r},new Map),this._internalState.size>tz&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,tz))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};SE.TraceState=wv});var iz=c(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.W3CTraceContextPropagator=Pt.parseTraceParent=Pt.TRACE_STATE_HEADER=Pt.TRACE_PARENT_HEADER=void 0;var AE=(y(),T(P)),G1e=yd(),U1e=Vv();Pt.TRACE_PARENT_HEADER="traceparent";Pt.TRACE_STATE_HEADER="tracestate";var x1e="00",w1e="(?!ff)[\\da-f]{2}",V1e="(?![0]{32})[\\da-f]{32}",B1e="(?![0]{16})[\\da-f]{16}",q1e="[\\da-f]{2}",j1e=new RegExp(`^\\s?(${w1e})-(${V1e})-(${B1e})-(${q1e})(-.*)?\\s?$`);function oz(t){let e=j1e.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}Pt.parseTraceParent=oz;var Bv=class{inject(e,r,n){let o=AE.trace.getSpanContext(e);if(!o||(0,G1e.isTracingSuppressed)(e)||!(0,AE.isSpanContextValid)(o))return;let i=`${x1e}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||AE.TraceFlags.NONE).toString(16)}`;n.set(r,Pt.TRACE_PARENT_HEADER,i),o.traceState&&n.set(r,Pt.TRACE_STATE_HEADER,o.traceState.serialize())}extract(e,r,n){let o=n.get(r,Pt.TRACE_PARENT_HEADER);if(!o)return e;let i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return e;let s=oz(i);if(!s)return e;s.isRemote=!0;let a=n.get(r,Pt.TRACE_STATE_HEADER);if(a){let u=Array.isArray(a)?a.join(","):a;s.traceState=new U1e.TraceState(typeof u=="string"?u:void 0)}return AE.trace.setSpanContext(e,s)}fields(){return[Pt.TRACE_PARENT_HEADER,Pt.TRACE_STATE_HEADER]}};Pt.W3CTraceContextPropagator=Bv});var sz=c(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.getRPCMetadata=Kr.deleteRPCMetadata=Kr.setRPCMetadata=Kr.RPCType=void 0;var H1e=(y(),T(P)),qv=(0,H1e.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),F1e;(function(t){t.HTTP="http"})(F1e=Kr.RPCType||(Kr.RPCType={}));function k1e(t,e){return t.setValue(qv,e)}Kr.setRPCMetadata=k1e;function W1e(t){return t.deleteValue(qv)}Kr.deleteRPCMetadata=W1e;function Y1e(t){return t.getValue(qv)}Kr.getRPCMetadata=Y1e});var Hv=c(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.AlwaysOffSampler=void 0;var K1e=(y(),T(P)),jv=class{shouldSample(){return{decision:K1e.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};RE.AlwaysOffSampler=jv});var kv=c(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.AlwaysOnSampler=void 0;var X1e=(y(),T(P)),Fv=class{shouldSample(){return{decision:X1e.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};OE.AlwaysOnSampler=Fv});var uz=c(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.ParentBasedSampler=void 0;var IE=(y(),T(P)),Z1e=Iv(),az=Hv(),Wv=kv(),Yv=class{constructor(e){var r,n,o,i;this._root=e.root,this._root||((0,Z1e.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Wv.AlwaysOnSampler),this._remoteParentSampled=(r=e.remoteParentSampled)!==null&&r!==void 0?r:new Wv.AlwaysOnSampler,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)!==null&&n!==void 0?n:new az.AlwaysOffSampler,this._localParentSampled=(o=e.localParentSampled)!==null&&o!==void 0?o:new Wv.AlwaysOnSampler,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new az.AlwaysOffSampler}shouldSample(e,r,n,o,i,s){let a=IE.trace.getSpanContext(e);return!a||!(0,IE.isSpanContextValid)(a)?this._root.shouldSample(e,r,n,o,i,s):a.isRemote?a.traceFlags&IE.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,o,i,s):this._remoteParentNotSampled.shouldSample(e,r,n,o,i,s):a.traceFlags&IE.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,r,n,o,i,s):this._localParentNotSampled.shouldSample(e,r,n,o,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};bE.ParentBasedSampler=Yv});var cz=c(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.TraceIdRatioBasedSampler=void 0;var Kv=(y(),T(P)),Xv=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:(0,Kv.isValidTraceId)(r)&&this._accumulate(r)<this._upperBound?Kv.SamplingDecision.RECORD_AND_SAMPLED:Kv.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){let o=n*8,i=parseInt(e.slice(o,o+8),16);r=(r^i)>>>0}return r}};PE.TraceIdRatioBasedSampler=Xv});var fz=c(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.isPlainObject=void 0;var z1e="[object Object]",J1e="[object Null]",$1e="[object Undefined]",Q1e=Function.prototype,lz=Q1e.toString,eUe=lz.call(Object),tUe=rUe(Object.getPrototypeOf,Object),dz=Object.prototype,pz=dz.hasOwnProperty,Ms=Symbol?Symbol.toStringTag:void 0,_z=dz.toString;function rUe(t,e){return function(r){return t(e(r))}}function nUe(t){if(!oUe(t)||iUe(t)!==z1e)return!1;let e=tUe(t);if(e===null)return!0;let r=pz.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&lz.call(r)===eUe}yE.isPlainObject=nUe;function oUe(t){return t!=null&&typeof t=="object"}function iUe(t){return t==null?t===void 0?$1e:J1e:Ms&&Ms in Object(t)?sUe(t):aUe(t)}function sUe(t){let e=pz.call(t,Ms),r=t[Ms],n=!1;try{t[Ms]=void 0,n=!0}catch{}let o=_z.call(t);return n&&(e?t[Ms]=r:delete t[Ms]),o}function aUe(t){return _z.call(t)}});var Tz=c(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.merge=void 0;var gz=fz(),uUe=20;function cUe(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=hz(e,t.shift(),0,r);return e}CE.merge=cUe;function Zv(t){return NE(t)?t.slice():t}function hz(t,e,r=0,n){let o;if(!(r>uUe)){if(r++,vE(t)||vE(e)||mz(e))o=Zv(e);else if(NE(t)){if(o=t.slice(),NE(e))for(let i=0,s=e.length;i<s;i++)o.push(Zv(e[i]));else if(Ld(e)){let i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){let u=i[s];o[u]=Zv(e[u])}}}else if(Ld(t))if(Ld(e)){if(!lUe(t,e))return e;o=Object.assign({},t);let i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){let u=i[s],l=e[u];if(vE(l))typeof l>"u"?delete o[u]:o[u]=l;else{let d=o[u],p=l;if(Ez(t,u,n)||Ez(e,u,n))delete o[u];else{if(Ld(d)&&Ld(p)){let _=n.get(d)||[],f=n.get(p)||[];_.push({obj:t,key:u}),f.push({obj:e,key:u}),n.set(d,_),n.set(p,f)}o[u]=hz(o[u],l,r,n)}}}}else o=e;return o}}function Ez(t,e,r){let n=r.get(t[e])||[];for(let o=0,i=n.length;o<i;o++){let s=n[o];if(s.key===e&&s.obj===t)return!0}return!1}function NE(t){return Array.isArray(t)}function mz(t){return typeof t=="function"}function Ld(t){return!vE(t)&&!NE(t)&&!mz(t)&&typeof t=="object"}function vE(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function lUe(t,e){return!(!(0,gz.isPlainObject)(t)||!(0,gz.isPlainObject)(e))}});var Sz=c(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.callWithTimeout=iu.TimeoutError=void 0;var ME=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};iu.TimeoutError=ME;function dUe(t,e){let r,n=new Promise(function(i,s){r=setTimeout(function(){s(new ME("Operation timed out."))},e)});return Promise.race([t,n]).then(o=>(clearTimeout(r),o),o=>{throw clearTimeout(r),o})}iu.callWithTimeout=dUe});var Rz=c(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.isUrlIgnored=su.urlMatches=void 0;function Az(t,e){return typeof e=="string"?t===e:!!t.match(e)}su.urlMatches=Az;function pUe(t,e){if(!e)return!1;for(let r of e)if(Az(t,r))return!0;return!1}su.isUrlIgnored=pUe});var Oz=c(LE=>{"use strict";Object.defineProperty(LE,"__esModule",{value:!0});LE.isWrapped=void 0;function _Ue(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}LE.isWrapped=_Ue});var Iz=c(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.Deferred=void 0;var zv=class{constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};DE.Deferred=zv});var bz=c(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});GE.BindOnceFuture=void 0;var fUe=Iz(),Jv=class{constructor(e,r){this._callback=e,this._that=r,this._isCalled=!1,this._deferred=new fUe.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};GE.BindOnceFuture=Jv});var yz=c(UE=>{"use strict";Object.defineProperty(UE,"__esModule",{value:!0});UE._export=void 0;var Pz=(y(),T(P)),gUe=yd();function EUe(t,e){return new Promise(r=>{Pz.context.with((0,gUe.suppressTracing)(Pz.context.active()),()=>{t.export(e,n=>{r(n)})})})}UE._export=EUe});var ue=c(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=I.DEFAULT_ATTRIBUTE_COUNT_LIMIT=I.TraceState=I.unsuppressTracing=I.suppressTracing=I.isTracingSuppressed=I.TraceIdRatioBasedSampler=I.ParentBasedSampler=I.AlwaysOnSampler=I.AlwaysOffSampler=I.setRPCMetadata=I.getRPCMetadata=I.deleteRPCMetadata=I.RPCType=I.parseTraceParent=I.W3CTraceContextPropagator=I.TRACE_STATE_HEADER=I.TRACE_PARENT_HEADER=I.CompositePropagator=I.unrefTimer=I.otperformance=I.hexToBase64=I.getEnvWithoutDefaults=I.getEnv=I._globalThis=I.SDK_INFO=I.RandomIdGenerator=I.baggageUtils=I.ExportResultCode=I.hexToBinary=I.timeInputToHrTime=I.millisToHrTime=I.isTimeInputHrTime=I.isTimeInput=I.hrTimeToTimeStamp=I.hrTimeToNanoseconds=I.hrTimeToMilliseconds=I.hrTimeToMicroseconds=I.hrTimeDuration=I.hrTime=I.getTimeOrigin=I.addHrTimes=I.loggingErrorHandler=I.setGlobalErrorHandler=I.globalErrorHandler=I.sanitizeAttributes=I.isAttributeValue=I.isAttributeKey=I.AnchoredClock=I.W3CBaggagePropagator=void 0;I.internal=I.VERSION=I.BindOnceFuture=I.isWrapped=I.urlMatches=I.isUrlIgnored=I.callWithTimeout=I.TimeoutError=I.TracesSamplerValues=I.merge=I.parseEnvironment=I.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=I.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=I.DEFAULT_ENVIRONMENT=void 0;var hUe=P9();Object.defineProperty(I,"W3CBaggagePropagator",{enumerable:!0,get:function(){return hUe.W3CBaggagePropagator}});var mUe=y9();Object.defineProperty(I,"AnchoredClock",{enumerable:!0,get:function(){return mUe.AnchoredClock}});var $v=L9();Object.defineProperty(I,"isAttributeKey",{enumerable:!0,get:function(){return $v.isAttributeKey}});Object.defineProperty(I,"isAttributeValue",{enumerable:!0,get:function(){return $v.isAttributeValue}});Object.defineProperty(I,"sanitizeAttributes",{enumerable:!0,get:function(){return $v.sanitizeAttributes}});var vz=Iv();Object.defineProperty(I,"globalErrorHandler",{enumerable:!0,get:function(){return vz.globalErrorHandler}});Object.defineProperty(I,"setGlobalErrorHandler",{enumerable:!0,get:function(){return vz.setGlobalErrorHandler}});var TUe=Ov();Object.defineProperty(I,"loggingErrorHandler",{enumerable:!0,get:function(){return TUe.loggingErrorHandler}});var Pr=Z9();Object.defineProperty(I,"addHrTimes",{enumerable:!0,get:function(){return Pr.addHrTimes}});Object.defineProperty(I,"getTimeOrigin",{enumerable:!0,get:function(){return Pr.getTimeOrigin}});Object.defineProperty(I,"hrTime",{enumerable:!0,get:function(){return Pr.hrTime}});Object.defineProperty(I,"hrTimeDuration",{enumerable:!0,get:function(){return Pr.hrTimeDuration}});Object.defineProperty(I,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Pr.hrTimeToMicroseconds}});Object.defineProperty(I,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Pr.hrTimeToMilliseconds}});Object.defineProperty(I,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Pr.hrTimeToNanoseconds}});Object.defineProperty(I,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Pr.hrTimeToTimeStamp}});Object.defineProperty(I,"isTimeInput",{enumerable:!0,get:function(){return Pr.isTimeInput}});Object.defineProperty(I,"isTimeInputHrTime",{enumerable:!0,get:function(){return Pr.isTimeInputHrTime}});Object.defineProperty(I,"millisToHrTime",{enumerable:!0,get:function(){return Pr.millisToHrTime}});Object.defineProperty(I,"timeInputToHrTime",{enumerable:!0,get:function(){return Pr.timeInputToHrTime}});var SUe=vv();Object.defineProperty(I,"hexToBinary",{enumerable:!0,get:function(){return SUe.hexToBinary}});var AUe=z9();Object.defineProperty(I,"ExportResultCode",{enumerable:!0,get:function(){return AUe.ExportResultCode}});var xE=mv();I.baggageUtils={getKeyPairs:xE.getKeyPairs,serializeKeyPairs:xE.serializeKeyPairs,parseKeyPairsIntoRecord:xE.parseKeyPairsIntoRecord,parsePairKeyValue:xE.parsePairKeyValue};var ti=Mv();Object.defineProperty(I,"RandomIdGenerator",{enumerable:!0,get:function(){return ti.RandomIdGenerator}});Object.defineProperty(I,"SDK_INFO",{enumerable:!0,get:function(){return ti.SDK_INFO}});Object.defineProperty(I,"_globalThis",{enumerable:!0,get:function(){return ti._globalThis}});Object.defineProperty(I,"getEnv",{enumerable:!0,get:function(){return ti.getEnv}});Object.defineProperty(I,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return ti.getEnvWithoutDefaults}});Object.defineProperty(I,"hexToBase64",{enumerable:!0,get:function(){return ti.hexToBase64}});Object.defineProperty(I,"otperformance",{enumerable:!0,get:function(){return ti.otperformance}});Object.defineProperty(I,"unrefTimer",{enumerable:!0,get:function(){return ti.unrefTimer}});var RUe=$9();Object.defineProperty(I,"CompositePropagator",{enumerable:!0,get:function(){return RUe.CompositePropagator}});var wE=iz();Object.defineProperty(I,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return wE.TRACE_PARENT_HEADER}});Object.defineProperty(I,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return wE.TRACE_STATE_HEADER}});Object.defineProperty(I,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return wE.W3CTraceContextPropagator}});Object.defineProperty(I,"parseTraceParent",{enumerable:!0,get:function(){return wE.parseTraceParent}});var VE=sz();Object.defineProperty(I,"RPCType",{enumerable:!0,get:function(){return VE.RPCType}});Object.defineProperty(I,"deleteRPCMetadata",{enumerable:!0,get:function(){return VE.deleteRPCMetadata}});Object.defineProperty(I,"getRPCMetadata",{enumerable:!0,get:function(){return VE.getRPCMetadata}});Object.defineProperty(I,"setRPCMetadata",{enumerable:!0,get:function(){return VE.setRPCMetadata}});var OUe=Hv();Object.defineProperty(I,"AlwaysOffSampler",{enumerable:!0,get:function(){return OUe.AlwaysOffSampler}});var IUe=kv();Object.defineProperty(I,"AlwaysOnSampler",{enumerable:!0,get:function(){return IUe.AlwaysOnSampler}});var bUe=uz();Object.defineProperty(I,"ParentBasedSampler",{enumerable:!0,get:function(){return bUe.ParentBasedSampler}});var PUe=cz();Object.defineProperty(I,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return PUe.TraceIdRatioBasedSampler}});var Qv=yd();Object.defineProperty(I,"isTracingSuppressed",{enumerable:!0,get:function(){return Qv.isTracingSuppressed}});Object.defineProperty(I,"suppressTracing",{enumerable:!0,get:function(){return Qv.suppressTracing}});Object.defineProperty(I,"unsuppressTracing",{enumerable:!0,get:function(){return Qv.unsuppressTracing}});var yUe=Vv();Object.defineProperty(I,"TraceState",{enumerable:!0,get:function(){return yUe.TraceState}});var au=Pv();Object.defineProperty(I,"DEFAULT_ATTRIBUTE_COUNT_LIMIT",{enumerable:!0,get:function(){return au.DEFAULT_ATTRIBUTE_COUNT_LIMIT}});Object.defineProperty(I,"DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT",{enumerable:!0,get:function(){return au.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}});Object.defineProperty(I,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return au.DEFAULT_ENVIRONMENT}});Object.defineProperty(I,"DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT",{enumerable:!0,get:function(){return au.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}});Object.defineProperty(I,"DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT",{enumerable:!0,get:function(){return au.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}});Object.defineProperty(I,"parseEnvironment",{enumerable:!0,get:function(){return au.parseEnvironment}});var vUe=Tz();Object.defineProperty(I,"merge",{enumerable:!0,get:function(){return vUe.merge}});var NUe=bv();Object.defineProperty(I,"TracesSamplerValues",{enumerable:!0,get:function(){return NUe.TracesSamplerValues}});var Nz=Sz();Object.defineProperty(I,"TimeoutError",{enumerable:!0,get:function(){return Nz.TimeoutError}});Object.defineProperty(I,"callWithTimeout",{enumerable:!0,get:function(){return Nz.callWithTimeout}});var Cz=Rz();Object.defineProperty(I,"isUrlIgnored",{enumerable:!0,get:function(){return Cz.isUrlIgnored}});Object.defineProperty(I,"urlMatches",{enumerable:!0,get:function(){return Cz.urlMatches}});var CUe=Oz();Object.defineProperty(I,"isWrapped",{enumerable:!0,get:function(){return CUe.isWrapped}});var MUe=bz();Object.defineProperty(I,"BindOnceFuture",{enumerable:!0,get:function(){return MUe.BindOnceFuture}});var LUe=Cv();Object.defineProperty(I,"VERSION",{enumerable:!0,get:function(){return LUe.VERSION}});var DUe=yz();I.internal={_export:DUe._export}});var Mz=c(BE=>{"use strict";Object.defineProperty(BE,"__esModule",{value:!0});BE.ExceptionEventName=void 0;BE.ExceptionEventName="exception"});var tN=c(qE=>{"use strict";Object.defineProperty(qE,"__esModule",{value:!0});qE.Span=void 0;var yr=(y(),T(P)),yt=ue(),Ls=(Q(),T($)),GUe=Mz(),eN=class{constructor(e,r,n,o,i,s,a=[],u,l,d){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:yr.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=o,this.parentSpanId=s,this.kind=i,this.links=a;let p=Date.now();this._performanceStartTime=yt.otperformance.now(),this._performanceOffset=p-(this._performanceStartTime+(0,yt.getTimeOrigin)()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??p),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,d!=null&&this.setAttributes(d),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}spanContext(){return this._spanContext}setAttribute(e,r){return r==null||this._isSpanEnded()?this:e.length===0?(yr.diag.warn(`Invalid attribute key: ${e}`),this):(0,yt.isAttributeValue)(r)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(r),this):(yr.diag.warn(`Invalid attribute value set for key: ${e}`),this)}setAttributes(e){for(let[r,n]of Object.entries(e))this.setAttribute(r,n);return this}addEvent(e,r,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return yr.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&yr.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,yt.isTimeInput)(r)&&((0,yt.isTimeInput)(n)||(n=r),r=void 0);let o=(0,yt.sanitizeAttributes)(r);return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status=Object.assign({},e),this.status.message!=null&&typeof e.message!="string"&&(yr.diag.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){yr.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=(0,yt.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(yr.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&yr.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<yt.otperformance.now())return(0,yt.hrTime)(e+this._performanceOffset);if(typeof e=="number")return(0,yt.millisToHrTime)(e);if(e instanceof Date)return(0,yt.millisToHrTime)(e.getTime());if((0,yt.isTimeInputHrTime)(e))return e;if(this._startTimeProvided)return(0,yt.millisToHrTime)(Date.now());let r=yt.otperformance.now()-this._performanceStartTime;return(0,yt.addHrTimes)(this.startTime,(0,yt.millisToHrTime)(r))}isRecording(){return this._ended===!1}recordException(e,r){let n={};typeof e=="string"?n[Ls.SEMATTRS_EXCEPTION_MESSAGE]=e:e&&(e.code?n[Ls.SEMATTRS_EXCEPTION_TYPE]=e.code.toString():e.name&&(n[Ls.SEMATTRS_EXCEPTION_TYPE]=e.name),e.message&&(n[Ls.SEMATTRS_EXCEPTION_MESSAGE]=e.message),e.stack&&(n[Ls.SEMATTRS_EXCEPTION_STACKTRACE]=e.stack)),n[Ls.SEMATTRS_EXCEPTION_TYPE]||n[Ls.SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(GUe.ExceptionEventName,n,r):yr.diag.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){return this._ended&&yr.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(e,r){return e.length<=r?e:e.substr(0,r)}_truncateToSize(e){let r=this._attributeValueLengthLimit;return r<=0?(yr.diag.warn(`Attribute value limit must be positive, got ${r}`),e):typeof e=="string"?this._truncateToLimitUtil(e,r):Array.isArray(e)?e.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):e}};qE.Span=eN});var Gd=c(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.SamplingDecision=void 0;var UUe;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(UUe=Dd.SamplingDecision||(Dd.SamplingDecision={}))});var HE=c(jE=>{"use strict";Object.defineProperty(jE,"__esModule",{value:!0});jE.AlwaysOffSampler=void 0;var xUe=Gd(),rN=class{shouldSample(){return{decision:xUe.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};jE.AlwaysOffSampler=rN});var kE=c(FE=>{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});FE.AlwaysOnSampler=void 0;var wUe=Gd(),nN=class{shouldSample(){return{decision:wUe.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};FE.AlwaysOnSampler=nN});var sN=c(YE=>{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});YE.ParentBasedSampler=void 0;var WE=(y(),T(P)),VUe=ue(),Lz=HE(),oN=kE(),iN=class{constructor(e){var r,n,o,i;this._root=e.root,this._root||((0,VUe.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new oN.AlwaysOnSampler),this._remoteParentSampled=(r=e.remoteParentSampled)!==null&&r!==void 0?r:new oN.AlwaysOnSampler,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)!==null&&n!==void 0?n:new Lz.AlwaysOffSampler,this._localParentSampled=(o=e.localParentSampled)!==null&&o!==void 0?o:new oN.AlwaysOnSampler,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new Lz.AlwaysOffSampler}shouldSample(e,r,n,o,i,s){let a=WE.trace.getSpanContext(e);return!a||!(0,WE.isSpanContextValid)(a)?this._root.shouldSample(e,r,n,o,i,s):a.isRemote?a.traceFlags&WE.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,o,i,s):this._remoteParentNotSampled.shouldSample(e,r,n,o,i,s):a.traceFlags&WE.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,r,n,o,i,s):this._localParentNotSampled.shouldSample(e,r,n,o,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};YE.ParentBasedSampler=iN});var uN=c(KE=>{"use strict";Object.defineProperty(KE,"__esModule",{value:!0});KE.TraceIdRatioBasedSampler=void 0;var BUe=(y(),T(P)),Dz=Gd(),aN=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:(0,BUe.isValidTraceId)(r)&&this._accumulate(r)<this._upperBound?Dz.SamplingDecision.RECORD_AND_SAMPLED:Dz.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){let o=n*8,i=parseInt(e.slice(o,o+8),16);r=(r^i)>>>0}return r}};KE.TraceIdRatioBasedSampler=aN});var dN=c(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.buildSamplerFromEnv=cu.loadDefaultConfig=void 0;var XE=(y(),T(P)),mn=ue(),Gz=HE(),cN=kE(),lN=sN(),Uz=uN(),qUe=(0,mn.getEnv)(),jUe=mn.TracesSamplerValues.AlwaysOn,uu=1;function HUe(){let t=(0,mn.getEnv)();return{sampler:wz(qUe),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}cu.loadDefaultConfig=HUe;function wz(t=(0,mn.getEnv)()){switch(t.OTEL_TRACES_SAMPLER){case mn.TracesSamplerValues.AlwaysOn:return new cN.AlwaysOnSampler;case mn.TracesSamplerValues.AlwaysOff:return new Gz.AlwaysOffSampler;case mn.TracesSamplerValues.ParentBasedAlwaysOn:return new lN.ParentBasedSampler({root:new cN.AlwaysOnSampler});case mn.TracesSamplerValues.ParentBasedAlwaysOff:return new lN.ParentBasedSampler({root:new Gz.AlwaysOffSampler});case mn.TracesSamplerValues.TraceIdRatio:return new Uz.TraceIdRatioBasedSampler(xz(t));case mn.TracesSamplerValues.ParentBasedTraceIdRatio:return new lN.ParentBasedSampler({root:new Uz.TraceIdRatioBasedSampler(xz(t))});default:return XE.diag.error(`OTEL_TRACES_SAMPLER value "${t.OTEL_TRACES_SAMPLER} invalid, defaulting to ${jUe}".`),new cN.AlwaysOnSampler}}cu.buildSamplerFromEnv=wz;function xz(t){if(t.OTEL_TRACES_SAMPLER_ARG===void 0||t.OTEL_TRACES_SAMPLER_ARG==="")return XE.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${uu}.`),uu;let e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(XE.diag.error(`OTEL_TRACES_SAMPLER_ARG=${t.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${uu}.`),uu):e<0||e>1?(XE.diag.error(`OTEL_TRACES_SAMPLER_ARG=${t.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${uu}.`),uu):e}});var _N=c(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.reconfigureLimits=lu.mergeConfig=void 0;var Vz=dN(),pN=ue();function FUe(t){let e={sampler:(0,Vz.buildSamplerFromEnv)()},r=(0,Vz.loadDefaultConfig)(),n=Object.assign({},r,e,t);return n.generalLimits=Object.assign({},r.generalLimits,t.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,t.spanLimits||{}),n}lu.mergeConfig=FUe;function kUe(t){var e,r,n,o,i,s,a,u,l,d,p,_;let f=Object.assign({},t.spanLimits),g=(0,pN.getEnvWithoutDefaults)();return f.attributeCountLimit=(s=(i=(o=(r=(e=t.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&r!==void 0?r:(n=t.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&o!==void 0?o:g.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&i!==void 0?i:g.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:pN.DEFAULT_ATTRIBUTE_COUNT_LIMIT,f.attributeValueLengthLimit=(_=(p=(d=(u=(a=t.spanLimits)===null||a===void 0?void 0:a.attributeValueLengthLimit)!==null&&u!==void 0?u:(l=t.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&d!==void 0?d:g.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:g.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:pN.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},t,{spanLimits:f})}lu.reconfigureLimits=kUe});var Bz=c(ZE=>{"use strict";Object.defineProperty(ZE,"__esModule",{value:!0});ZE.BatchSpanProcessorBase=void 0;var du=(y(),T(P)),Ds=ue(),fN=class{constructor(e,r){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let n=(0,Ds.getEnv)();this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new Ds.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(du.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,r){}onEnd(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&du.TraceFlags.SAMPLED&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&du.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(du.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,r)=>{let n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,s=o;i<s;i++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,r)=>{let n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);du.context.with((0,Ds.suppressTracing)(du.context.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(o,a=>{var u;clearTimeout(n),a.code===Ds.ExportResultCode.SUCCESS?e():r((u=a.error)!==null&&u!==void 0?u:new Error("BatchSpanProcessor: span export failed"))}),s=null;for(let a=0,u=o.length;a<u;a++){let l=o[a];l.resource.asyncAttributesPending&&l.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(l.resource.waitForAsyncAttributes()))}s===null?i():Promise.all(s).then(i,a=>{(0,Ds.globalErrorHandler)(a),r(a)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,(0,Ds.globalErrorHandler)(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),(0,Ds.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};ZE.BatchSpanProcessorBase=fN});var qz=c(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.BatchSpanProcessor=void 0;var WUe=Bz(),gN=class extends WUe.BatchSpanProcessorBase{onShutdown(){}};zE.BatchSpanProcessor=gN});var Fz=c($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.RandomIdGenerator=void 0;var YUe=8,Hz=16,EN=class{constructor(){this.generateTraceId=jz(Hz),this.generateSpanId=jz(YUe)}};$E.RandomIdGenerator=EN;var JE=Buffer.allocUnsafe(Hz);function jz(t){return function(){for(let r=0;r<t/4;r++)JE.writeUInt32BE(Math.random()*2**32>>>0,r*4);for(let r=0;r<t&&!(JE[r]>0);r++)r===t-1&&(JE[t-1]=1);return JE.toString("hex",0,t)}}});var kz=c(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.RandomIdGenerator=pu.BatchSpanProcessor=void 0;var KUe=qz();Object.defineProperty(pu,"BatchSpanProcessor",{enumerable:!0,get:function(){return KUe.BatchSpanProcessor}});var XUe=Fz();Object.defineProperty(pu,"RandomIdGenerator",{enumerable:!0,get:function(){return XUe.RandomIdGenerator}})});var QE=c(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.RandomIdGenerator=_u.BatchSpanProcessor=void 0;var Wz=kz();Object.defineProperty(_u,"BatchSpanProcessor",{enumerable:!0,get:function(){return Wz.BatchSpanProcessor}});Object.defineProperty(_u,"RandomIdGenerator",{enumerable:!0,get:function(){return Wz.RandomIdGenerator}})});var Yz=c(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.Tracer=void 0;var _t=(y(),T(P)),eh=ue(),ZUe=tN(),zUe=_N(),JUe=QE(),hN=class{constructor(e,r,n){this._tracerProvider=n;let o=(0,zUe.mergeConfig)(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new JUe.RandomIdGenerator,this.resource=n.resource,this.instrumentationLibrary=e}startSpan(e,r={},n=_t.context.active()){var o,i,s;r.root&&(n=_t.trace.deleteSpan(n));let a=_t.trace.getSpan(n);if((0,eh.isTracingSuppressed)(n))return _t.diag.debug("Instrumentation suppressed, returning Noop Span"),_t.trace.wrapSpanContext(_t.INVALID_SPAN_CONTEXT);let u=a?.spanContext(),l=this._idGenerator.generateSpanId(),d,p,_;!u||!_t.trace.isSpanContextValid(u)?d=this._idGenerator.generateTraceId():(d=u.traceId,p=u.traceState,_=u.spanId);let f=(o=r.kind)!==null&&o!==void 0?o:_t.SpanKind.INTERNAL,g=((i=r.links)!==null&&i!==void 0?i:[]).map(N=>({context:N.context,attributes:(0,eh.sanitizeAttributes)(N.attributes)})),E=(0,eh.sanitizeAttributes)(r.attributes),S=this._sampler.shouldSample(n,d,e,f,E,g);p=(s=S.traceState)!==null&&s!==void 0?s:p;let v=S.decision===_t.SamplingDecision.RECORD_AND_SAMPLED?_t.TraceFlags.SAMPLED:_t.TraceFlags.NONE,M={traceId:d,spanId:l,traceFlags:v,traceState:p};if(S.decision===_t.SamplingDecision.NOT_RECORD)return _t.diag.debug("Recording is off, propagating context in a non-recording span"),_t.trace.wrapSpanContext(M);let D=(0,eh.sanitizeAttributes)(Object.assign(E,S.attributes));return new ZUe.Span(this,n,e,M,f,_,g,r.startTime,void 0,D)}startActiveSpan(e,r,n,o){let i,s,a;if(arguments.length<2)return;arguments.length===2?a=r:arguments.length===3?(i=r,a=n):(i=r,s=n,a=o);let u=s??_t.context.active(),l=this.startSpan(e,i,u),d=_t.trace.setSpan(u,l);return _t.context.with(d,a,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}};th.Tracer=hN});var Kz=c(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.defaultServiceName=void 0;function $Ue(){return`unknown_service:${process.argv0}`}rh.defaultServiceName=$Ue});var Xz=c(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.defaultServiceName=void 0;var QUe=Kz();Object.defineProperty(nh,"defaultServiceName",{enumerable:!0,get:function(){return QUe.defaultServiceName}})});var mN=c(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.defaultServiceName=void 0;var exe=Xz();Object.defineProperty(oh,"defaultServiceName",{enumerable:!0,get:function(){return exe.defaultServiceName}})});var io=c(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.Resource=void 0;var Zz=(y(),T(P)),Gs=(Q(),T($)),TN=ue(),txe=mN(),Ud=class t{constructor(e,r){var n;this._attributes=e,this.asyncAttributesPending=r!=null,this._syncAttributes=(n=this._attributes)!==null&&n!==void 0?n:{},this._asyncAttributesPromise=r?.then(o=>(this._attributes=Object.assign({},this._attributes,o),this.asyncAttributesPending=!1,o),o=>(Zz.diag.debug("a resource's async attributes promise rejected: %s",o),this.asyncAttributesPending=!1,{}))}static empty(){return t.EMPTY}static default(){return new t({[Gs.SEMRESATTRS_SERVICE_NAME]:(0,txe.defaultServiceName)(),[Gs.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:TN.SDK_INFO[Gs.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],[Gs.SEMRESATTRS_TELEMETRY_SDK_NAME]:TN.SDK_INFO[Gs.SEMRESATTRS_TELEMETRY_SDK_NAME],[Gs.SEMRESATTRS_TELEMETRY_SDK_VERSION]:TN.SDK_INFO[Gs.SEMRESATTRS_TELEMETRY_SDK_VERSION]})}get attributes(){var e;return this.asyncAttributesPending&&Zz.diag.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(e){var r;if(!e)return this;let n=Object.assign(Object.assign({},this._syncAttributes),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(n);let o=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(([i,s])=>{var a;return Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),i),(a=e._syncAttributes)!==null&&a!==void 0?a:e.attributes),s)});return new t(n,o)}};ih.Resource=Ud;Ud.EMPTY=new Ud({})});var SN=c(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.normalizeType=fu.normalizeArch=void 0;var rxe=t=>{switch(t){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return t}};fu.normalizeArch=rxe;var nxe=t=>{switch(t){case"sunos":return"solaris";case"win32":return"windows";default:return t}};fu.normalizeType=nxe});var ah=c(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.execAsync=void 0;var oxe=m("child_process"),ixe=m("util");sh.execAsync=ixe.promisify(oxe.exec)});var zz=c(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.getMachineId=void 0;var sxe=ah(),axe=(y(),T(P));async function uxe(){try{let e=(await(0,sxe.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
26
+ `).find(n=>n.includes("IOPlatformUUID"));if(!e)return"";let r=e.split('" = "');if(r.length===2)return r[1].slice(0,-1)}catch(t){axe.diag.debug(`error reading machine id: ${t}`)}return""}uh.getMachineId=uxe});var Jz=c(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.getMachineId=void 0;var cxe=m("fs"),lxe=(y(),T(P));async function dxe(){let t=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let e of t)try{return(await cxe.promises.readFile(e,{encoding:"utf8"})).trim()}catch(r){lxe.diag.debug(`error reading machine id: ${r}`)}return""}ch.getMachineId=dxe});var Qz=c(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.getMachineId=void 0;var pxe=m("fs"),_xe=ah(),$z=(y(),T(P));async function fxe(){try{return(await pxe.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(t){$z.diag.debug(`error reading machine id: ${t}`)}try{return(await(0,_xe.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(t){$z.diag.debug(`error reading machine id: ${t}`)}return""}lh.getMachineId=fxe});var t3=c(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.getMachineId=void 0;var e3=m("process"),gxe=ah(),Exe=(y(),T(P));async function hxe(){let t="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",e="%windir%\\System32\\REG.exe";e3.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in e3.env&&(e="%windir%\\sysnative\\cmd.exe /c "+e);try{let n=(await(0,gxe.execAsync)(`${e} ${t}`)).stdout.split("REG_SZ");if(n.length===2)return n[1].trim()}catch(r){Exe.diag.debug(`error reading machine id: ${r}`)}return""}dh.getMachineId=hxe});var r3=c(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.getMachineId=void 0;var mxe=(y(),T(P));async function Txe(){return mxe.diag.debug("could not read machine-id: unsupported platform"),""}ph.getMachineId=Txe});var n3=c(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.getMachineId=void 0;var Sxe=m("process"),gu;so.getMachineId=gu;switch(Sxe.platform){case"darwin":so.getMachineId=gu=zz().getMachineId;break;case"linux":so.getMachineId=gu=Jz().getMachineId;break;case"freebsd":so.getMachineId=gu=Qz().getMachineId;break;case"win32":so.getMachineId=gu=t3().getMachineId;break;default:so.getMachineId=gu=r3().getMachineId}});var ON=c(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.hostDetectorSync=void 0;var AN=(Q(),T($)),Axe=io(),o3=m("os"),Rxe=SN(),Oxe=n3(),RN=class{detect(e){let r={[AN.SEMRESATTRS_HOST_NAME]:(0,o3.hostname)(),[AN.SEMRESATTRS_HOST_ARCH]:(0,Rxe.normalizeArch)((0,o3.arch)())};return new Axe.Resource(r,this._getAsyncAttributes())}_getAsyncAttributes(){return(0,Oxe.getMachineId)().then(e=>{let r={};return e&&(r[AN.SEMRESATTRS_HOST_ID]=e),r})}};_h.hostDetectorSync=new RN});var i3=c(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.hostDetector=void 0;var Ixe=ON(),IN=class{detect(e){return Promise.resolve(Ixe.hostDetectorSync.detect(e))}};fh.hostDetector=new IN});var PN=c(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});gh.osDetectorSync=void 0;var s3=(Q(),T($)),bxe=io(),a3=m("os"),Pxe=SN(),bN=class{detect(e){let r={[s3.SEMRESATTRS_OS_TYPE]:(0,Pxe.normalizeType)((0,a3.platform)()),[s3.SEMRESATTRS_OS_VERSION]:(0,a3.release)()};return new bxe.Resource(r)}};gh.osDetectorSync=new bN});var u3=c(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.osDetector=void 0;var yxe=PN(),yN=class{detect(e){return Promise.resolve(yxe.osDetectorSync.detect(e))}};Eh.osDetector=new yN});var NN=c(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.processDetectorSync=void 0;var vxe=(y(),T(P)),ao=(Q(),T($)),Nxe=io(),Cxe=m("os"),vN=class{detect(e){let r={[ao.SEMRESATTRS_PROCESS_PID]:process.pid,[ao.SEMRESATTRS_PROCESS_EXECUTABLE_NAME]:process.title,[ao.SEMRESATTRS_PROCESS_EXECUTABLE_PATH]:process.execPath,[ao.SEMRESATTRS_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[ao.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:process.versions.node,[ao.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"nodejs",[ao.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};process.argv.length>1&&(r[ao.SEMRESATTRS_PROCESS_COMMAND]=process.argv[1]);try{let n=Cxe.userInfo();r[ao.SEMRESATTRS_PROCESS_OWNER]=n.username}catch(n){vxe.diag.debug(`error obtaining process owner: ${n}`)}return new Nxe.Resource(r)}};hh.processDetectorSync=new vN});var c3=c(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.processDetector=void 0;var Mxe=NN(),CN=class{detect(e){return Promise.resolve(Mxe.processDetectorSync.detect(e))}};mh.processDetector=new CN});var l3=c(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.serviceInstanceIdDetectorSync=void 0;var Lxe=(Q(),T($)),Dxe=io(),Gxe=m("crypto"),MN=class{detect(e){let r={[Lxe.SEMRESATTRS_SERVICE_INSTANCE_ID]:(0,Gxe.randomUUID)()};return new Dxe.Resource(r)}};Th.serviceInstanceIdDetectorSync=new MN});var d3=c(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.serviceInstanceIdDetectorSync=vt.processDetectorSync=vt.processDetector=vt.osDetectorSync=vt.osDetector=vt.hostDetectorSync=vt.hostDetector=void 0;var Uxe=i3();Object.defineProperty(vt,"hostDetector",{enumerable:!0,get:function(){return Uxe.hostDetector}});var xxe=ON();Object.defineProperty(vt,"hostDetectorSync",{enumerable:!0,get:function(){return xxe.hostDetectorSync}});var wxe=u3();Object.defineProperty(vt,"osDetector",{enumerable:!0,get:function(){return wxe.osDetector}});var Vxe=PN();Object.defineProperty(vt,"osDetectorSync",{enumerable:!0,get:function(){return Vxe.osDetectorSync}});var Bxe=c3();Object.defineProperty(vt,"processDetector",{enumerable:!0,get:function(){return Bxe.processDetector}});var qxe=NN();Object.defineProperty(vt,"processDetectorSync",{enumerable:!0,get:function(){return qxe.processDetectorSync}});var jxe=l3();Object.defineProperty(vt,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return jxe.serviceInstanceIdDetectorSync}})});var p3=c(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.serviceInstanceIdDetectorSync=Nt.processDetectorSync=Nt.processDetector=Nt.osDetectorSync=Nt.osDetector=Nt.hostDetectorSync=Nt.hostDetector=void 0;var Us=d3();Object.defineProperty(Nt,"hostDetector",{enumerable:!0,get:function(){return Us.hostDetector}});Object.defineProperty(Nt,"hostDetectorSync",{enumerable:!0,get:function(){return Us.hostDetectorSync}});Object.defineProperty(Nt,"osDetector",{enumerable:!0,get:function(){return Us.osDetector}});Object.defineProperty(Nt,"osDetectorSync",{enumerable:!0,get:function(){return Us.osDetectorSync}});Object.defineProperty(Nt,"processDetector",{enumerable:!0,get:function(){return Us.processDetector}});Object.defineProperty(Nt,"processDetectorSync",{enumerable:!0,get:function(){return Us.processDetectorSync}});Object.defineProperty(Nt,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return Us.serviceInstanceIdDetectorSync}})});var GN=c(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.browserDetectorSync=void 0;var Sh=(Q(),T($)),Hxe=(y(),T(P)),LN=io(),DN=class{detect(e){var r,n,o;if(!(typeof navigator<"u"&&((n=(r=global.process)===null||r===void 0?void 0:r.versions)===null||n===void 0?void 0:n.node)===void 0&&((o=global.Bun)===null||o===void 0?void 0:o.version)===void 0))return LN.Resource.empty();let s={[Sh.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"browser",[Sh.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:"Web Browser",[Sh.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:navigator.userAgent};return this._getResourceAttributes(s,e)}_getResourceAttributes(e,r){return e[Sh.SEMRESATTRS_PROCESS_RUNTIME_VERSION]===""?(Hxe.diag.debug("BrowserDetector failed: Unable to find required browser resources. "),LN.Resource.empty()):new LN.Resource(Object.assign({},e))}};Ah.browserDetectorSync=new DN});var _3=c(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});Rh.browserDetector=void 0;var Fxe=GN(),UN=class{detect(e){return Promise.resolve(Fxe.browserDetectorSync.detect(e))}};Rh.browserDetector=new UN});var wN=c(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.envDetectorSync=void 0;var kxe=(y(),T(P)),Wxe=ue(),Yxe=(Q(),T($)),Kxe=io(),xN=class{constructor(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}detect(e){let r={},n=(0,Wxe.getEnv)(),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{let s=this._parseResourceAttributes(o);Object.assign(r,s)}catch(s){kxe.diag.debug(`EnvDetector failed: ${s.message}`)}return i&&(r[Yxe.SEMRESATTRS_SERVICE_NAME]=i),new Kxe.Resource(r)}_parseResourceAttributes(e){if(!e)return{};let r={},n=e.split(this._COMMA_SEPARATOR,-1);for(let o of n){let i=o.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(i.length!==2)continue;let[s,a]=i;if(s=s.trim(),a=a.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(a))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);r[s]=decodeURIComponent(a)}return r}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)}_isBaggageOctetString(e){for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n<33||n===44||n===59||n===92||n>126)return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}};Oh.envDetectorSync=new xN});var f3=c(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.envDetector=void 0;var Xxe=wN(),VN=class{detect(e){return Promise.resolve(Xxe.envDetectorSync.detect(e))}};Ih.envDetector=new VN});var g3=c(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.envDetectorSync=Re.browserDetectorSync=Re.envDetector=Re.browserDetector=Re.serviceInstanceIdDetectorSync=Re.processDetectorSync=Re.processDetector=Re.osDetectorSync=Re.osDetector=Re.hostDetectorSync=Re.hostDetector=void 0;var xs=p3();Object.defineProperty(Re,"hostDetector",{enumerable:!0,get:function(){return xs.hostDetector}});Object.defineProperty(Re,"hostDetectorSync",{enumerable:!0,get:function(){return xs.hostDetectorSync}});Object.defineProperty(Re,"osDetector",{enumerable:!0,get:function(){return xs.osDetector}});Object.defineProperty(Re,"osDetectorSync",{enumerable:!0,get:function(){return xs.osDetectorSync}});Object.defineProperty(Re,"processDetector",{enumerable:!0,get:function(){return xs.processDetector}});Object.defineProperty(Re,"processDetectorSync",{enumerable:!0,get:function(){return xs.processDetectorSync}});Object.defineProperty(Re,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return xs.serviceInstanceIdDetectorSync}});var Zxe=_3();Object.defineProperty(Re,"browserDetector",{enumerable:!0,get:function(){return Zxe.browserDetector}});var zxe=f3();Object.defineProperty(Re,"envDetector",{enumerable:!0,get:function(){return zxe.envDetector}});var Jxe=GN();Object.defineProperty(Re,"browserDetectorSync",{enumerable:!0,get:function(){return Jxe.browserDetectorSync}});var $xe=wN();Object.defineProperty(Re,"envDetectorSync",{enumerable:!0,get:function(){return $xe.envDetectorSync}})});var E3=c(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.isPromiseLike=void 0;var Qxe=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";bh.isPromiseLike=Qxe});var m3=c(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.detectResourcesSync=hu.detectResources=void 0;var xd=io(),Eu=(y(),T(P)),ewe=E3(),twe=async(t={})=>{let e=await Promise.all((t.detectors||[]).map(async r=>{try{let n=await r.detect(t);return Eu.diag.debug(`${r.constructor.name} found resource.`,n),n}catch(n){return Eu.diag.debug(`${r.constructor.name} failed: ${n.message}`),xd.Resource.empty()}}));return h3(e),e.reduce((r,n)=>r.merge(n),xd.Resource.empty())};hu.detectResources=twe;var rwe=(t={})=>{var e;let r=((e=t.detectors)!==null&&e!==void 0?e:[]).map(o=>{try{let i=o.detect(t),s;if((0,ewe.isPromiseLike)(i)){let a=async()=>{var u;let l=await i;return await((u=l.waitForAsyncAttributes)===null||u===void 0?void 0:u.call(l)),l.attributes};s=new xd.Resource({},a())}else s=i;return s.waitForAsyncAttributes?s.waitForAsyncAttributes().then(()=>Eu.diag.debug(`${o.constructor.name} found resource.`,s)):Eu.diag.debug(`${o.constructor.name} found resource.`,s),s}catch(i){return Eu.diag.error(`${o.constructor.name} failed: ${i.message}`),xd.Resource.empty()}}),n=r.reduce((o,i)=>o.merge(i),xd.Resource.empty());return n.waitForAsyncAttributes&&n.waitForAsyncAttributes().then(()=>{h3(r)}),n};hu.detectResourcesSync=rwe;var h3=t=>{t.forEach(e=>{if(Object.keys(e.attributes).length>0){let r=JSON.stringify(e.attributes,null,4);Eu.diag.verbose(r)}})}});var BN=c(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.detectResources=re.detectResourcesSync=re.serviceInstanceIdDetectorSync=re.processDetectorSync=re.processDetector=re.osDetectorSync=re.osDetector=re.hostDetectorSync=re.hostDetector=re.envDetectorSync=re.envDetector=re.browserDetectorSync=re.browserDetector=re.defaultServiceName=re.Resource=void 0;var nwe=io();Object.defineProperty(re,"Resource",{enumerable:!0,get:function(){return nwe.Resource}});var owe=mN();Object.defineProperty(re,"defaultServiceName",{enumerable:!0,get:function(){return owe.defaultServiceName}});var Xr=g3();Object.defineProperty(re,"browserDetector",{enumerable:!0,get:function(){return Xr.browserDetector}});Object.defineProperty(re,"browserDetectorSync",{enumerable:!0,get:function(){return Xr.browserDetectorSync}});Object.defineProperty(re,"envDetector",{enumerable:!0,get:function(){return Xr.envDetector}});Object.defineProperty(re,"envDetectorSync",{enumerable:!0,get:function(){return Xr.envDetectorSync}});Object.defineProperty(re,"hostDetector",{enumerable:!0,get:function(){return Xr.hostDetector}});Object.defineProperty(re,"hostDetectorSync",{enumerable:!0,get:function(){return Xr.hostDetectorSync}});Object.defineProperty(re,"osDetector",{enumerable:!0,get:function(){return Xr.osDetector}});Object.defineProperty(re,"osDetectorSync",{enumerable:!0,get:function(){return Xr.osDetectorSync}});Object.defineProperty(re,"processDetector",{enumerable:!0,get:function(){return Xr.processDetector}});Object.defineProperty(re,"processDetectorSync",{enumerable:!0,get:function(){return Xr.processDetectorSync}});Object.defineProperty(re,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return Xr.serviceInstanceIdDetectorSync}});var T3=m3();Object.defineProperty(re,"detectResourcesSync",{enumerable:!0,get:function(){return T3.detectResourcesSync}});Object.defineProperty(re,"detectResources",{enumerable:!0,get:function(){return T3.detectResources}})});var S3=c(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.MultiSpanProcessor=void 0;var iwe=ue(),qN=class{constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let r of this._spanProcessors)e.push(r.forceFlush());return new Promise(r=>{Promise.all(e).then(()=>{r()}).catch(n=>{(0,iwe.globalErrorHandler)(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(e,r){for(let n of this._spanProcessors)n.onStart(e,r)}onEnd(e){for(let r of this._spanProcessors)r.onEnd(e)}shutdown(){let e=[];for(let r of this._spanProcessors)e.push(r.shutdown());return new Promise((r,n)=>{Promise.all(e).then(()=>{r()},n)})}};Ph.MultiSpanProcessor=qN});var HN=c(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.NoopSpanProcessor=void 0;var jN=class{onStart(e,r){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};yh.NoopSpanProcessor=jN});var R3=c(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.BasicTracerProvider=ws.ForceFlushState=void 0;var mu=(y(),T(P)),Su=ue(),A3=BN(),swe=Vd(),awe=dN(),uwe=S3(),cwe=HN(),lwe=QE(),dwe=_N(),Tu;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Tu=ws.ForceFlushState||(ws.ForceFlushState={}));var wd=class{constructor(e={}){var r;this._registeredSpanProcessors=[],this._tracers=new Map;let n=(0,Su.merge)({},(0,awe.loadDefaultConfig)(),(0,dwe.reconfigureLimits)(e));this.resource=(r=n.resource)!==null&&r!==void 0?r:A3.Resource.empty(),this.resource=A3.Resource.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});let o=this._buildExporterFromEnv();if(o!==void 0){let i=new lwe.BatchSpanProcessor(o);this.activeSpanProcessor=i}else this.activeSpanProcessor=new cwe.NoopSpanProcessor}getTracer(e,r,n){let o=`${e}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new swe.Tracer({name:e,version:r,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(o)}addSpanProcessor(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(r=>mu.diag.error("Error while trying to shutdown current span processor",r)),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new uwe.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(e={}){mu.trace.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&mu.context.setGlobalContextManager(e.contextManager),e.propagator&&mu.propagation.setGlobalPropagator(e.propagator)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,r=this._registeredSpanProcessors.map(n=>new Promise(o=>{let i,s=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${e} ms`)),i=Tu.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),i!==Tu.timeout&&(i=Tu.resolved,o(i))}).catch(a=>{clearTimeout(s),i=Tu.error,o(a)})}));return new Promise((n,o)=>{Promise.all(r).then(i=>{let s=i.filter(a=>a!==Tu.resolved);s.length>0?o(s):n()}).catch(i=>o([i]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(e){var r;return(r=this.constructor._registeredPropagators.get(e))===null||r===void 0?void 0:r()}_getSpanExporter(e){var r;return(r=this.constructor._registeredExporters.get(e))===null||r===void 0?void 0:r()}_buildPropagatorFromEnv(){let e=Array.from(new Set((0,Su.getEnv)().OTEL_PROPAGATORS)),n=e.map(o=>{let i=this._getPropagator(o);return i||mu.diag.warn(`Propagator "${o}" requested through environment variable is unavailable.`),i}).reduce((o,i)=>(i&&o.push(i),o),[]);if(n.length!==0)return e.length===1?n[0]:new Su.CompositePropagator({propagators:n})}_buildExporterFromEnv(){let e=(0,Su.getEnv)().OTEL_TRACES_EXPORTER;if(e==="none"||e==="")return;let r=this._getSpanExporter(e);return r||mu.diag.error(`Exporter "${e}" requested through environment variable is unavailable.`),r}};ws.BasicTracerProvider=wd;wd._registeredPropagators=new Map([["tracecontext",()=>new Su.W3CTraceContextPropagator],["baggage",()=>new Su.W3CBaggagePropagator]]);wd._registeredExporters=new Map});var O3=c(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.ConsoleSpanExporter=void 0;var FN=ue(),kN=class{export(e,r){return this._sendSpans(e,r)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(e){var r;return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationLibrary,traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(r=e.spanContext().traceState)===null||r===void 0?void 0:r.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:(0,FN.hrTimeToMicroseconds)(e.startTime),duration:(0,FN.hrTimeToMicroseconds)(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}}_sendSpans(e,r){for(let n of e)console.dir(this._exportInfo(n),{depth:3});if(r)return r({code:FN.ExportResultCode.SUCCESS})}};vh.ConsoleSpanExporter=kN});var b3=c(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.InMemorySpanExporter=void 0;var I3=ue(),WN=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(e,r){if(this._stopped)return r({code:I3.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...e),setTimeout(()=>r({code:I3.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};Nh.InMemorySpanExporter=WN});var P3=c(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.SimpleSpanProcessor=void 0;var pwe=(y(),T(P)),Au=ue(),YN=class{constructor(e){this._exporter=e,this._shutdownOnce=new Au.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(e,r){}onEnd(e){var r,n;if(this._shutdownOnce.isCalled||!(e.spanContext().traceFlags&pwe.TraceFlags.SAMPLED))return;let o=()=>Au.internal._export(this._exporter,[e]).then(i=>{var s;i.code!==Au.ExportResultCode.SUCCESS&&(0,Au.globalErrorHandler)((s=i.error)!==null&&s!==void 0?s:new Error(`SimpleSpanProcessor: span export failed (status ${i})`))}).catch(i=>{(0,Au.globalErrorHandler)(i)});if(e.resource.asyncAttributesPending){let i=(n=(r=e.resource).waitForAsyncAttributes)===null||n===void 0?void 0:n.call(r).then(()=>(i!=null&&this._unresolvedExports.delete(i),o()),s=>(0,Au.globalErrorHandler)(s));i!=null&&this._unresolvedExports.add(i)}else o()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}};Ch.SimpleSpanProcessor=YN});var Vd=c(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.Span=ne.SamplingDecision=ne.TraceIdRatioBasedSampler=ne.ParentBasedSampler=ne.AlwaysOnSampler=ne.AlwaysOffSampler=ne.NoopSpanProcessor=ne.SimpleSpanProcessor=ne.InMemorySpanExporter=ne.ConsoleSpanExporter=ne.RandomIdGenerator=ne.BatchSpanProcessor=ne.ForceFlushState=ne.BasicTracerProvider=ne.Tracer=void 0;var _we=Yz();Object.defineProperty(ne,"Tracer",{enumerable:!0,get:function(){return _we.Tracer}});var y3=R3();Object.defineProperty(ne,"BasicTracerProvider",{enumerable:!0,get:function(){return y3.BasicTracerProvider}});Object.defineProperty(ne,"ForceFlushState",{enumerable:!0,get:function(){return y3.ForceFlushState}});var v3=QE();Object.defineProperty(ne,"BatchSpanProcessor",{enumerable:!0,get:function(){return v3.BatchSpanProcessor}});Object.defineProperty(ne,"RandomIdGenerator",{enumerable:!0,get:function(){return v3.RandomIdGenerator}});var fwe=O3();Object.defineProperty(ne,"ConsoleSpanExporter",{enumerable:!0,get:function(){return fwe.ConsoleSpanExporter}});var gwe=b3();Object.defineProperty(ne,"InMemorySpanExporter",{enumerable:!0,get:function(){return gwe.InMemorySpanExporter}});var Ewe=P3();Object.defineProperty(ne,"SimpleSpanProcessor",{enumerable:!0,get:function(){return Ewe.SimpleSpanProcessor}});var hwe=HN();Object.defineProperty(ne,"NoopSpanProcessor",{enumerable:!0,get:function(){return hwe.NoopSpanProcessor}});var mwe=HE();Object.defineProperty(ne,"AlwaysOffSampler",{enumerable:!0,get:function(){return mwe.AlwaysOffSampler}});var Twe=kE();Object.defineProperty(ne,"AlwaysOnSampler",{enumerable:!0,get:function(){return Twe.AlwaysOnSampler}});var Swe=sN();Object.defineProperty(ne,"ParentBasedSampler",{enumerable:!0,get:function(){return Swe.ParentBasedSampler}});var Awe=uN();Object.defineProperty(ne,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return Awe.TraceIdRatioBasedSampler}});var Rwe=Gd();Object.defineProperty(ne,"SamplingDecision",{enumerable:!0,get:function(){return Rwe.SamplingDecision}});var Owe=tN();Object.defineProperty(ne,"Span",{enumerable:!0,get:function(){return Owe.Span}})});var N3=c(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.SeverityNumber=void 0;var Iwe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(Iwe=Bd.SeverityNumber||(Bd.SeverityNumber={}))});var Lh=c(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.NOOP_LOGGER=Ru.NoopLogger=void 0;var Mh=class{emit(e){}};Ru.NoopLogger=Mh;Ru.NOOP_LOGGER=new Mh});var Gh=c(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.NOOP_LOGGER_PROVIDER=Ou.NoopLoggerProvider=void 0;var bwe=Lh(),Dh=class{getLogger(e,r,n){return new bwe.NoopLogger}};Ou.NoopLoggerProvider=Dh;Ou.NOOP_LOGGER_PROVIDER=new Dh});var XN=c(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.ProxyLogger=void 0;var Pwe=Lh(),KN=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Pwe.NOOP_LOGGER}};Uh.ProxyLogger=KN});var zN=c(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.ProxyLoggerProvider=void 0;var ywe=Gh(),vwe=XN(),ZN=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new vwe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:ywe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};xh.ProxyLoggerProvider=ZN});var C3=c(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});wh._globalThis=void 0;wh._globalThis=typeof globalThis=="object"?globalThis:global});var M3=c(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh._globalThis=void 0;var Nwe=C3();Object.defineProperty(Vh,"_globalThis",{enumerable:!0,get:function(){return Nwe._globalThis}})});var L3=c(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});Bh._globalThis=void 0;var Cwe=M3();Object.defineProperty(Bh,"_globalThis",{enumerable:!0,get:function(){return Cwe._globalThis}})});var D3=c(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.API_BACKWARDS_COMPATIBILITY_VERSION=Tn.makeGetter=Tn._global=Tn.GLOBAL_LOGS_API_KEY=void 0;var Mwe=L3();Tn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Tn._global=Mwe._globalThis;function Lwe(t,e,r){return n=>n===t?e:r}Tn.makeGetter=Lwe;Tn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var U3=c(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.LogsAPI=void 0;var vr=D3(),Dwe=Gh(),G3=zN(),JN=class t{constructor(){this._proxyLoggerProvider=new G3.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return vr._global[vr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(vr._global[vr.GLOBAL_LOGS_API_KEY]=(0,vr.makeGetter)(vr.API_BACKWARDS_COMPATIBILITY_VERSION,e,Dwe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=vr._global[vr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(vr._global,vr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete vr._global[vr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new G3.ProxyLoggerProvider}};qh.LogsAPI=JN});var $N=c(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.logs=Qe.ProxyLoggerProvider=Qe.ProxyLogger=Qe.NoopLoggerProvider=Qe.NOOP_LOGGER_PROVIDER=Qe.NoopLogger=Qe.NOOP_LOGGER=Qe.SeverityNumber=void 0;var Gwe=N3();Object.defineProperty(Qe,"SeverityNumber",{enumerable:!0,get:function(){return Gwe.SeverityNumber}});var x3=Lh();Object.defineProperty(Qe,"NOOP_LOGGER",{enumerable:!0,get:function(){return x3.NOOP_LOGGER}});Object.defineProperty(Qe,"NoopLogger",{enumerable:!0,get:function(){return x3.NoopLogger}});var w3=Gh();Object.defineProperty(Qe,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return w3.NOOP_LOGGER_PROVIDER}});Object.defineProperty(Qe,"NoopLoggerProvider",{enumerable:!0,get:function(){return w3.NoopLoggerProvider}});var Uwe=XN();Object.defineProperty(Qe,"ProxyLogger",{enumerable:!0,get:function(){return Uwe.ProxyLogger}});var xwe=zN();Object.defineProperty(Qe,"ProxyLoggerProvider",{enumerable:!0,get:function(){return xwe.ProxyLoggerProvider}});var wwe=U3();Qe.logs=wwe.LogsAPI.getInstance()});var V3=c(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.disableInstrumentations=Iu.enableInstrumentations=void 0;function Vwe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Iu.enableInstrumentations=Vwe;function Bwe(t){t.forEach(e=>e.disable())}Iu.disableInstrumentations=Bwe});var j3=c(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.registerInstrumentations=void 0;var B3=(y(),T(P)),qwe=$N(),q3=V3();function jwe(t){var e,r;let n=t.tracerProvider||B3.trace.getTracerProvider(),o=t.meterProvider||B3.metrics.getMeterProvider(),i=t.loggerProvider||qwe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,q3.enableInstrumentations)(s,n,o,i),()=>{(0,q3.disableInstrumentations)(s)}}jh.registerInstrumentations=jwe});var H3=c(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});Fh.InstrumentationAbstract=void 0;var QN=(y(),T(P)),Hwe=$N(),Hh=De(),eC=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=Hh.wrap,this._unwrap=Hh.unwrap,this._massWrap=Hh.massWrap,this._massUnwrap=Hh.massUnwrap,this.setConfig(n),this._diag=QN.diag.createComponentLogger({namespace:e}),this._tracer=QN.trace.getTracer(e,r),this._meter=QN.metrics.getMeter(e,r),this._logger=Hwe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};Fh.InstrumentationAbstract=eC});var F3=c(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.ModuleNameTrie=ri.ModuleNameSeparator=void 0;ri.ModuleNameSeparator="/";var kh=class{constructor(){this.hooks=[],this.children=new Map}},tC=class{constructor(){this._trie=new kh,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(ri.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new kh,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(ri.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};ri.ModuleNameTrie=tC});var W3=c(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});Wh.RequireInTheMiddleSingleton=void 0;var Fwe=Ue(),k3=m("path"),rC=F3(),kwe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),nC=class t{constructor(){this._moduleNameTrie=new rC.ModuleNameTrie,this._initialize()}_initialize(){new Fwe.Hook(null,{internals:!0},(e,r,n)=>{let o=Wwe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return kwe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};Wh.RequireInTheMiddleSingleton=nC;function Wwe(t){return k3.sep!==rC.ModuleNameSeparator?t.split(k3.sep).join(rC.ModuleNameSeparator):t}});var oC=c(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.isWrapped=ni.safeExecuteInTheMiddleAsync=ni.safeExecuteInTheMiddle=void 0;function Ywe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ni.safeExecuteInTheMiddle=Ywe;async function Kwe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ni.safeExecuteInTheMiddleAsync=Kwe;function Xwe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}ni.isWrapped=Xwe});var X3=c(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});Yh.InstrumentationBase=void 0;var iC=m("path"),Y3=m("util"),Zwe=Sr(),sC=De(),zwe=H3(),Jwe=W3(),$we=Or(),qd=(y(),T(P)),Qwe=Ue(),eVe=m("fs"),tVe=oC(),aC=class extends zwe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=Jwe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,tVe.isWrapped)(i[s])&&this._unwrap(i,s),Y3.types.isProxy(i)){let u=(0,sC.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,sC.wrap)(i,s,a)},this._unwrap=(i,s)=>Y3.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,sC.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{qd.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){qd.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{qd.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){qd.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=m.resolve(r);m.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,eVe.readFileSync)(iC.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{qd.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return K3(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=iC.normalize(n);return a.filter(d=>d.name===u).filter(d=>K3(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=iC.isAbsolute(e.name)?new Qwe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new $we.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};Yh.InstrumentationBase=aC;function K3(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,Zwe.satisfies)(e,n,{includePrerelease:r}))}});var Z3=c(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.normalize=void 0;var rVe=m("path");Object.defineProperty(Kh,"normalize",{enumerable:!0,get:function(){return rVe.normalize}})});var z3=c(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.normalize=bu.InstrumentationBase=void 0;var nVe=X3();Object.defineProperty(bu,"InstrumentationBase",{enumerable:!0,get:function(){return nVe.InstrumentationBase}});var oVe=Z3();Object.defineProperty(bu,"normalize",{enumerable:!0,get:function(){return oVe.normalize}})});var uC=c(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.normalize=Pu.InstrumentationBase=void 0;var J3=z3();Object.defineProperty(Pu,"InstrumentationBase",{enumerable:!0,get:function(){return J3.InstrumentationBase}});Object.defineProperty(Pu,"normalize",{enumerable:!0,get:function(){return J3.normalize}})});var $3=c(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});Xh.InstrumentationNodeModuleDefinition=void 0;var cC=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};Xh.InstrumentationNodeModuleDefinition=cC});var Q3=c(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});Zh.InstrumentationNodeModuleFile=void 0;var iVe=uC(),lC=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,iVe.normalize)(e)}};Zh.InstrumentationNodeModuleFile=lC});var zh=c(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.safeExecuteInTheMiddleAsync=Ct.safeExecuteInTheMiddle=Ct.isWrapped=Ct.InstrumentationNodeModuleFile=Ct.InstrumentationNodeModuleDefinition=Ct.InstrumentationBase=Ct.registerInstrumentations=void 0;var sVe=j3();Object.defineProperty(Ct,"registerInstrumentations",{enumerable:!0,get:function(){return sVe.registerInstrumentations}});var aVe=uC();Object.defineProperty(Ct,"InstrumentationBase",{enumerable:!0,get:function(){return aVe.InstrumentationBase}});var uVe=$3();Object.defineProperty(Ct,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return uVe.InstrumentationNodeModuleDefinition}});var cVe=Q3();Object.defineProperty(Ct,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return cVe.InstrumentationNodeModuleFile}});var dC=oC();Object.defineProperty(Ct,"isWrapped",{enumerable:!0,get:function(){return dC.isWrapped}});Object.defineProperty(Ct,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return dC.safeExecuteInTheMiddle}});Object.defineProperty(Ct,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return dC.safeExecuteInTheMiddleAsync}})});var uo=c(ee=>{var{_optionalChain:Jh}=b();Object.defineProperty(ee,"__esModule",{value:!0});var ce=(Q(),T($)),oe=b(),U=(y(),T(P)),C=W(),ii=ue(),jd=Vd(),lVe=zh(),IC="sentry.parentIsRemote",i4="sentry.graphql.operation";function Hd(t){let e=t;return!!e.attributes&&typeof e.attributes=="object"}function s4(t){return typeof t.kind=="number"}function a4(t){return!!t.status}function bC(t){return!!t.name}function u4(t){return!!t.parentSpanId}function dVe(t){let e=t;return Array.isArray(e.events)}function c4(t){if(!Hd(t))return{};let e=t.attributes[ce.ATTR_URL_FULL]||t.attributes[ce.SEMATTRS_HTTP_URL],r={url:e,"http.method":t.attributes[ce.ATTR_HTTP_REQUEST_METHOD]||t.attributes[ce.SEMATTRS_HTTP_METHOD]};!r["http.method"]&&r.url&&(r["http.method"]="GET");try{if(typeof e=="string"){let n=oe.parseUrl(e);r.url=oe.getSanitizedUrlString(n),n.search&&(r["http.query"]=n.search),n.hash&&(r["http.fragment"]=n.hash)}}catch{}return r}function pVe(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function _Ve(t){class e extends t{constructor(...n){super(...n)}get tracer(){if(this._tracer)return this._tracer;let n="@sentry/opentelemetry",o=C.SDK_VERSION,i=U.trace.getTracer(n,o);return this._tracer=i,i}async flush(n){let o=this.traceProvider,i=pVe([o,"optionalAccess",s=>s.activeSpanProcessor]);return i&&await i.forceFlush(),super.flush(n)}}return e}function l4(t){return s4(t)?t.kind:U.SpanKind.INTERNAL}var pC="sentry-trace",_C="baggage",PC="sentry.dsc",$h="sentry.parent_span_id",yC="sentry.sampled_not_recording",d4="sentry.url",p4=U.createContextKey("sentry_scopes"),fC=U.createContextKey("sentry_fork_isolation_scope"),gC=U.createContextKey("sentry_fork_set_scope"),EC=U.createContextKey("sentry_fork_set_isolation_scope"),_4="_scopeContext";function qs(t){return t.getValue(p4)}function f4(t,e){return t.setValue(p4,e)}function fVe(t,e){oe.addNonEnumerableProperty(t,_4,e)}function gVe(t){return t[_4]}function EVe(t){if(!Hd(t))return!1;let{attributes:e}=t,r=e[ce.SEMATTRS_HTTP_URL]||e[ce.ATTR_URL_FULL];return r?C.isSentryRequestUrl(r.toString(),C.getClient()):!1}function g4(t,e,r){let n=e[ce.ATTR_HTTP_REQUEST_METHOD]||e[ce.SEMATTRS_HTTP_METHOD];if(n)return mVe({attributes:e,name:t,kind:r},n);let o=e[ce.SEMATTRS_DB_SYSTEM],i=typeof e[C.SEMANTIC_ATTRIBUTE_SENTRY_OP]=="string"&&e[C.SEMANTIC_ATTRIBUTE_SENTRY_OP].startsWith("cache.");if(o&&!i)return hVe({attributes:e,name:t});if(e[ce.SEMATTRS_RPC_SERVICE])return{op:"rpc",description:t,source:"route"};if(e[ce.SEMATTRS_MESSAGING_SYSTEM])return{op:"message",description:t,source:"route"};let u=e[ce.SEMATTRS_FAAS_TRIGGER];return u?{op:u.toString(),description:t,source:"route"}:{op:void 0,description:t,source:"custom"}}function E4(t){let e=Hd(t)?t.attributes:{},r=bC(t)?t.name:"<unknown>",n=l4(t);return g4(r,e,n)}function hVe({attributes:t,name:e}){let r=t[ce.SEMATTRS_DB_STATEMENT];return{op:"db",description:r?r.toString():e,source:"task"}}function mVe({name:t,kind:e,attributes:r},n){let o=["http"];switch(e){case U.SpanKind.CLIENT:o.push("client");break;case U.SpanKind.SERVER:o.push("server");break}r["sentry.http.prefetch"]&&o.push("prefetch");let{urlPath:i,url:s,query:a,fragment:u,hasRoute:l}=SVe(r,e);if(!i)return{op:o.join("."),description:t,source:"custom"};let d=r[i4],p=`${n} ${i}`,_=d?`${p} (${TVe(d)})`:p,f=l||i==="/"?"route":"url",g={};s&&(g.url=s),a&&(g["http.query"]=a),u&&(g["http.fragment"]=u);let E=e===U.SpanKind.CLIENT||e===U.SpanKind.SERVER,v=!`${r[C.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]||"manual"}`.startsWith("auto"),M=E||!v;return{op:o.join("."),description:M?_:t,source:M?f:"custom",data:g}}function TVe(t){if(Array.isArray(t)){let e=t.slice().sort();return e.length<=5?e.join(", "):`${e.slice(0,5).join(", ")}, +${e.length-5}`}return`${t}`}function SVe(t,e){let r=t[ce.SEMATTRS_HTTP_TARGET],n=t[ce.SEMATTRS_HTTP_URL]||t[ce.ATTR_URL_FULL],o=t[ce.ATTR_HTTP_ROUTE],i=typeof n=="string"?oe.parseUrl(n):void 0,s=i?oe.getSanitizedUrlString(i):void 0,a=i&&i.search?i.search:void 0,u=i&&i.hash?i.hash:void 0;return typeof o=="string"?{urlPath:o,url:s,query:a,fragment:u,hasRoute:!0}:e===U.SpanKind.SERVER&&typeof r=="string"?{urlPath:oe.stripUrlQueryAndFragment(r),url:s,query:a,fragment:u,hasRoute:!1}:i?{urlPath:s,url:s,query:a,fragment:u,hasRoute:!1}:typeof r=="string"?{urlPath:oe.stripUrlQueryAndFragment(r),url:s,query:a,fragment:u,hasRoute:!1}:{urlPath:void 0,url:s,query:a,fragment:u,hasRoute:!1}}function AVe(t){t.on("createDsc",(e,r)=>{if(r){let i=(C.spanToJSON(r).data||{})[C.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],{description:s}=bC(r)?E4(r):{description:void 0};i!=="url"&&s&&(e.transaction=s)}})}function hC({parentSpanId:t,dsc:e,sampled:r}){let n=e?oe.dynamicSamplingContextToSentryBaggageHeader(e):void 0,o=new ii.TraceState().set($h,t||""),i=n?o.set(PC,n):o;return r===!1?i.set(yC,"1"):i}function h4(t){let e=hC({parentSpanId:t.parentSpanId,dsc:t.dsc,sampled:t.sampled});return{traceId:t.traceId,spanId:t.parentSpanId||"",isRemote:!0,traceFlags:t.sampled?U.TraceFlags.SAMPLED:U.TraceFlags.NONE,traceState:e}}function vC(){return U.trace.getActiveSpan()}var oi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function e4(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function Qh(t){let{traceFlags:e,traceState:r}=t,n=r?r.get(yC)==="1":!1;if(e===U.TraceFlags.SAMPLED)return!0;if(n)return!1;let o=r?r.get(PC):void 0,i=o?oe.baggageHeaderToDynamicSamplingContext(o):void 0;if(e4([i,"optionalAccess",s=>s.sampled])==="true")return!0;if(e4([i,"optionalAccess",s=>s.sampled])==="false")return!1}var m4=new Set;function RVe(){return Array.from(m4)}function em(t){m4.add(t)}function Bs(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function NC(t){let e=t.spanContext(),{traceId:r,spanId:n,traceState:o}=e,i=o?o.get(PC):void 0,s=i?oe.baggageHeaderToDynamicSamplingContext(i):void 0,a=o&&o.get($h)||void 0,u=Qh(e),l=s||C.getDynamicSamplingContextFromSpan(C.getRootSpan(t));return{traceId:r,spanId:n,sampled:u,parentSpanId:a,dsc:l}}var mC=class extends ii.W3CBaggagePropagator{constructor(){super(),em("SentryPropagator"),this._urlMatchesTargetsMap=new oe.LRUMap(100)}inject(e,r,n){if(ii.isTracingSuppressed(e)){oi&&oe.logger.log("[Tracing] Not injecting trace data for url because tracing is suppressed.");return}let o=U.trace.getSpan(e),i=o&&PVe(o),s=Bs([C.getClient,"call",f=>f(),"optionalAccess",f=>f.getOptions,"call",f=>f(),"optionalAccess",f=>f.tracePropagationTargets]);if(typeof i=="string"&&s&&!this._shouldInjectTraceData(s,i)){oi&&oe.logger.log("[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:",i);return}let a=bVe(r),u=U.propagation.getBaggage(e)||U.propagation.createBaggage({}),{dynamicSamplingContext:l,traceId:d,spanId:p,sampled:_}=OVe(e);if(a){let f=oe.parseBaggageHeader(a);f&&Object.entries(f).forEach(([g,E])=>{u=u.setEntry(g,{value:E})})}l&&(u=Object.entries(l).reduce((f,[g,E])=>E?f.setEntry(`${oe.SENTRY_BAGGAGE_KEY_PREFIX}${g}`,{value:E}):f,u)),d&&d!==U.INVALID_TRACEID&&n.set(r,pC,oe.generateSentryTraceHeader(d,p,_)),super.inject(U.propagation.setBaggage(e,u),r,n)}extract(e,r,n){let o=n.get(r,pC),i=n.get(r,_C),s=o?Array.isArray(o)?o[0]:o:void 0,a=oe.propagationContextFromHeaders(s,i),u=T4(e,{sentryTrace:s,baggage:i}),l=qs(u),d={scope:l?l.scope.clone():C.getCurrentScope().clone(),isolationScope:l?l.isolationScope:C.getIsolationScope()};return d.scope.setPropagationContext(a),f4(u,d)}fields(){return[pC,_C]}_shouldInjectTraceData(e,r){if(e===void 0)return!0;let n=this._urlMatchesTargetsMap.get(r);if(n!==void 0)return n;let o=oe.stringMatchesSomePattern(r,e);return this._urlMatchesTargetsMap.set(r,o),o}};function OVe(t){let e=U.trace.getSpan(t),r=Bs([e,"optionalAccess",s=>s.spanContext,"call",s=>s(),"access",s=>s.isRemote]);if(e&&!r){let s=e.spanContext(),a=NC(e);return{dynamicSamplingContext:t4(a,s.traceId),traceId:s.traceId,spanId:s.spanId,sampled:Qh(s)}}let o=(Bs([qs,"call",s=>s(t),"optionalAccess",s=>s.scope])||C.getCurrentScope()).getPropagationContext();return{dynamicSamplingContext:t4(o,o.traceId),traceId:o.traceId,spanId:o.spanId,sampled:o.sampled}}function t4(t,e){if(Bs([t,"optionalAccess",n=>n.dsc]))return t.dsc;let r=C.getClient();if(r)return C.getDynamicSamplingContextFromClient(e||t.traceId,r)}function T4(t,{sentryTrace:e,baggage:r}){let n=oe.propagationContextFromHeaders(e,r),o=h4(n);return U.trace.setSpanContext(t,o)}function IVe(t,e,r){let n=T4(t,e);return U.context.with(n,r)}function bVe(t){try{let e=t[_C];return Array.isArray(e)?e.join(","):e}catch{return}}function PVe(t){let e=C.spanToJSON(t).data,r=Bs([e,"optionalAccess",o=>o[ce.SEMATTRS_HTTP_URL]])||Bs([e,"optionalAccess",o=>o[ce.ATTR_URL_FULL]]);if(r)return r;let n=Bs([t,"access",o=>o.spanContext,"call",o=>o(),"access",o=>o.traceState,"optionalAccess",o=>o.get,"call",o=>o(d4)]);if(n)return n}function yVe(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function S4(t,e){let r=MC(),{name:n,parentSpan:o}=t;return GC(o)(()=>{let s=DC(t.scope,t.forceTransaction),u=t.onlyIfParent&&!U.trace.getSpan(s)?ii.suppressTracing(s):s,l=LC(t);return r.startActiveSpan(n,l,u,d=>C.handleCallbackErrors(()=>e(d),()=>{C.spanToJSON(d).status===void 0&&d.setStatus({code:U.SpanStatusCode.ERROR})},()=>d.end()))})}function A4(t,e){let r=MC(),{name:n,parentSpan:o}=t;return GC(o)(()=>{let s=DC(t.scope,t.forceTransaction),u=t.onlyIfParent&&!U.trace.getSpan(s)?ii.suppressTracing(s):s,l=LC(t);return r.startActiveSpan(n,l,u,d=>C.handleCallbackErrors(()=>e(d,()=>d.end()),()=>{C.spanToJSON(d).status===void 0&&d.setStatus({code:U.SpanStatusCode.ERROR})}))})}function R4(t){let e=MC(),{name:r,parentSpan:n}=t;return GC(n)(()=>{let i=DC(t.scope,t.forceTransaction),a=t.onlyIfParent&&!U.trace.getSpan(i)?ii.suppressTracing(i):i,u=LC(t);return e.startSpan(r,u,a)})}function CC(t,e){let r=t?U.trace.setSpan(U.context.active(),t):U.trace.deleteSpan(U.context.active());return U.context.with(r,()=>e(C.getCurrentScope()))}function MC(){let t=C.getClient();return t&&t.tracer||U.trace.getTracer("@sentry/opentelemetry",C.SDK_VERSION)}function LC(t){let{startTime:e,attributes:r,kind:n,op:o}=t,i=typeof e=="number"?vVe(e):e;return{attributes:o?{[C.SEMANTIC_ATTRIBUTE_SENTRY_OP]:o,...r}:r,kind:n,startTime:i}}function vVe(t){return t<9999999999?t*1e3:t}function DC(t,e){let r=NVe(t),n=yVe([qs,"call",g=>g(r),"optionalAccess",g=>g.scope]),o=U.trace.getSpan(r);if(!o){let g=C.getClient();if(n&&g){let E=n.getPropagationContext(),S=hC({parentSpanId:E.parentSpanId,dsc:void 0,sampled:E.sampled}),v={traceId:E.traceId,spanId:E.parentSpanId||E.spanId,isRemote:!0,traceFlags:E.sampled?U.TraceFlags.SAMPLED:U.TraceFlags.NONE,traceState:S};return U.trace.setSpanContext(r,v)}return r}if(!e)return r;let i=U.trace.deleteSpan(r),{spanId:s,traceId:a}=o.spanContext(),u=Qh(o.spanContext()),l=C.getRootSpan(o),d=C.getDynamicSamplingContextFromSpan(l),p=hC({dsc:d,parentSpanId:s!==U.INVALID_SPANID?s:void 0,sampled:u}),_={traceId:a,spanId:s,isRemote:!0,traceFlags:u?U.TraceFlags.SAMPLED:U.TraceFlags.NONE,traceState:p};return U.trace.setSpanContext(i,_)}function NVe(t){if(t){let e=gVe(t);if(e)return e}return U.context.active()}function CVe(t,e){return C.continueTrace(t,()=>IVe(U.context.active(),t,e))}function GC(t){return t!==void 0?e=>CC(t,e):e=>e()}function O4(t){let e=ii.suppressTracing(U.context.active());return U.context.with(e,t)}function MVe(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function LVe(t){t.on("preprocessEvent",e=>{let r=vC();if(!r||e.type==="transaction")return;let n=r.spanContext(),o=MVe([n,"access",a=>a.traceState,"optionalAccess",a=>a.get,"call",a=>a($h)]),i=typeof o=="string"?o||void 0:u4(r)?r.parentSpanId:void 0;e.contexts={trace:oe.dropUndefinedKeys({trace_id:n.traceId,span_id:n.spanId,parent_span_id:i}),...e.contexts};let s=C.getRootSpan(r);return e.sdkProcessingMetadata={dynamicSamplingContext:C.getDynamicSamplingContextFromSpan(s),...e.sdkProcessingMetadata},e})}function DVe(){let t={};return U.propagation.inject(U.context.active(),t),t["sentry-trace"]?oe.dropUndefinedKeys({"sentry-trace":t["sentry-trace"],baggage:t.baggage}):{}}function GVe(){function t(){let a=U.context.active(),u=qs(a);return u||{scope:C.getDefaultCurrentScope(),isolationScope:C.getDefaultIsolationScope()}}function e(a){let u=U.context.active();return U.context.with(u,()=>a(i()))}function r(a,u){let l=U.context.active();return U.context.with(l.setValue(gC,a),()=>u(a))}function n(a){let u=U.context.active();return U.context.with(u.setValue(fC,!0),()=>a(s()))}function o(a,u){let l=U.context.active();return U.context.with(l.setValue(EC,a),()=>u(s()))}function i(){return t().scope}function s(){return t().isolationScope}C.setAsyncContextStrategy({withScope:e,withSetScope:r,withSetIsolationScope:o,withIsolationScope:n,getCurrentScope:i,getIsolationScope:s,startSpan:S4,startSpanManual:A4,startInactiveSpan:R4,getActiveSpan:vC,suppressTracing:O4,getTraceData:DVe,withActiveSpan:CC})}function r4(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function UVe(t){class e extends t{constructor(...n){super(...n),em("SentryContextManager")}with(n,o,i,...s){let a=qs(n),u=r4([a,"optionalAccess",M=>M.scope])||C.getCurrentScope(),l=r4([a,"optionalAccess",M=>M.isolationScope])||C.getIsolationScope(),d=n.getValue(fC)===!0,p=n.getValue(gC),_=n.getValue(EC),f=p||u.clone(),g=_||(d?l.clone():l),v=f4(n,{scope:f,isolationScope:g}).deleteValue(fC).deleteValue(gC).deleteValue(EC);return fVe(f,v),super.with(v,o,i,...s)}}return e}function xVe(t){let e=new Map;for(let r of t)wVe(e,r);return Array.from(e,function([r,n]){return n})}function I4(t){return t.attributes[IC]===!0?void 0:t.parentSpanId}function wVe(t,e){let r=e.spanContext().spanId,n=I4(e);if(!n){TC(t,{id:r,span:e,children:[]});return}let o=VVe(t,n),i=TC(t,{id:r,span:e,parentNode:o,children:[]});o.children.push(i)}function VVe(t,e){let r=t.get(e);return r||TC(t,{id:e,children:[]})}function TC(t,e){let r=t.get(e.id);return r&&r.span?r:r&&!r.span?(r.span=e.span,r.parentNode=e.parentNode,r):(t.set(e.id,e),e)}var b4={1:"cancelled",2:"unknown_error",3:"invalid_argument",4:"deadline_exceeded",5:"not_found",6:"already_exists",7:"permission_denied",8:"resource_exhausted",9:"failed_precondition",10:"aborted",11:"out_of_range",12:"unimplemented",13:"internal_error",14:"unavailable",15:"data_loss",16:"unauthenticated"},BVe=t=>Object.values(b4).includes(t);function P4(t){let e=Hd(t)?t.attributes:{},r=a4(t)?t.status:void 0;if(r){if(r.code===U.SpanStatusCode.OK)return{code:C.SPAN_STATUS_OK};if(r.code===U.SpanStatusCode.ERROR){if(typeof r.message>"u"){let o=n4(e);if(o)return o}return r.message&&BVe(r.message)?{code:C.SPAN_STATUS_ERROR,message:r.message}:{code:C.SPAN_STATUS_ERROR,message:"unknown_error"}}}let n=n4(e);return n||(r&&r.code===U.SpanStatusCode.UNSET?{code:C.SPAN_STATUS_OK}:{code:C.SPAN_STATUS_ERROR,message:"unknown_error"})}function n4(t){let e=t[ce.ATTR_HTTP_RESPONSE_STATUS_CODE]||t[ce.SEMATTRS_HTTP_STATUS_CODE],r=t[ce.SEMATTRS_RPC_GRPC_STATUS_CODE],n=typeof e=="number"?e:typeof e=="string"?parseInt(e):void 0;if(typeof n=="number")return C.getSpanStatusFromHttpCode(n);if(typeof r=="string")return{code:C.SPAN_STATUS_ERROR,message:b4[r]||"unknown_error"}}function y4(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}var o4=1e3,qVe=300,SC=class{constructor(e){this._finishedSpans=[],this._timeout=y4([e,"optionalAccess",r=>r.timeout])||qVe}export(e){if(this._finishedSpans.push(e),I4(e)){let r=this._finishedSpans.length;oi&&oe.logger.log(`SpanExporter has ${r} unsent spans remaining`),this._cleanupOldSpans();return}this._clearTimeout(),this._flushTimeout=setTimeout(()=>{this.flush()},1)}flush(){this._clearTimeout();let e=this._finishedSpans.length,r=jVe(this._finishedSpans),n=r.length,o=e-n;oi&&oe.logger.log(`SpanExporter exported ${o} spans, ${n} unsent spans remaining`),this._cleanupOldSpans(r)}clear(){this._finishedSpans=[],this._clearTimeout()}_clearTimeout(){this._flushTimeout&&(clearTimeout(this._flushTimeout),this._flushTimeout=void 0)}_cleanupOldSpans(e=this._finishedSpans){let r=Date.now()/1e3;this._finishedSpans=e.filter(n=>{let o=kVe(n,r,this._timeout);return oi&&o&&oe.logger.log(`SpanExporter dropping span ${n.name} (${n.spanContext().spanId}) because it is pending for more than 5 minutes.`),!o})}};function jVe(t){let e=xVe(t),r=new Set(e);return FVe(e).forEach(o=>{r.delete(o);let i=o.span,s=YVe(i),a=s.spans||[];o.children.forEach(l=>{AC(l,a,r)}),s.spans=a.length>o4?a.sort((l,d)=>l.start_timestamp-d.start_timestamp).slice(0,o4):a;let u=C.timedEventsToMeasurements(i.events);u&&(s.measurements=u),C.captureEvent(s)}),Array.from(r).map(o=>o.span).filter(o=>!!o)}function HVe(t){return!!t.span&&!t.parentNode}function FVe(t){return t.filter(HVe)}function kVe(t,e,r){let n=e-r;return C.spanTimeInputToSeconds(t.startTime)<n}function WVe(t){let e=t.attributes,r=e[C.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],n=e[C.SEMANTIC_ATTRIBUTE_SENTRY_OP],o=e[C.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return{origin:r,op:n,source:o}}function YVe(t){let{op:e,description:r,data:n,origin:o="manual",source:i}=v4(t),s=C.getCapturedScopesOnSpan(t),a=t.attributes[C.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE],u=oe.dropUndefinedKeys({[C.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i,[C.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:a,[C.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e,[C.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:o,...n,...N4(t.attributes)}),{traceId:l,spanId:d}=t.spanContext(),p=y4([t,"access",S=>S.spanContext,"call",S=>S(),"access",S=>S.traceState,"optionalAccess",S=>S.get,"call",S=>S($h)]),_=typeof p=="string"?p||void 0:t.parentSpanId,f=P4(t);return{contexts:{trace:oe.dropUndefinedKeys({parent_span_id:_,span_id:d,trace_id:l,data:u,origin:o,op:e,status:C.getStatusMessage(f)}),otel:{resource:t.resource.attributes}},spans:[],start_timestamp:C.spanTimeInputToSeconds(t.startTime),timestamp:C.spanTimeInputToSeconds(t.endTime),transaction:r,type:"transaction",sdkProcessingMetadata:{...oe.dropUndefinedKeys({capturedSpanScope:s.scope,capturedSpanIsolationScope:s.isolationScope,sampleRate:a,dynamicSamplingContext:C.getDynamicSamplingContextFromSpan(t)})},...i&&{transaction_info:{source:i}},_metrics_summary:C.getMetricSummaryJsonForSpan(t)}}function AC(t,e,r){r.delete(t);let n=t.span;if(!n){t.children.forEach(M=>{AC(M,e,r)});return}let i=n.spanContext().spanId,s=n.spanContext().traceId,{attributes:a,startTime:u,endTime:l,parentSpanId:d}=n,{op:p,description:_,data:f,origin:g="manual"}=v4(n),E=oe.dropUndefinedKeys({[C.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:g,[C.SEMANTIC_ATTRIBUTE_SENTRY_OP]:p,...N4(a),...f}),S=P4(n),v=oe.dropUndefinedKeys({span_id:i,trace_id:s,data:E,description:_,parent_span_id:d,start_timestamp:C.spanTimeInputToSeconds(u),timestamp:C.spanTimeInputToSeconds(l)||void 0,status:C.getStatusMessage(S),op:p,origin:g,_metrics_summary:C.getMetricSummaryJsonForSpan(n),measurements:C.timedEventsToMeasurements(n.events)});e.push(v),t.children.forEach(M=>{AC(M,e,r)})}function v4(t){let{op:e,source:r,origin:n}=WVe(t),{op:o,description:i,source:s,data:a}=E4(t),u=e||o,l=r||s,d={...a,...KVe(t)};return{op:u,description:i,source:l,origin:n,data:d}}function N4(t){let e={...t};return delete e[C.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE],delete e[IC],e}function KVe(t){let e=t.attributes,r={};t.kind!==U.SpanKind.INTERNAL&&(r["otel.kind"]=U.SpanKind[t.kind]);let n=e[ce.SEMATTRS_HTTP_STATUS_CODE];n&&(r[ce.ATTR_HTTP_RESPONSE_STATUS_CODE]=n);let o=c4(t);return o.url&&(r.url=o.url),o["http.query"]&&(r["http.query"]=o["http.query"].slice(1)),o["http.fragment"]&&(r["http.fragment"]=o["http.fragment"].slice(1)),r}function C4(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function XVe(t,e){let r=U.trace.getSpan(e),n=qs(e);r&&!r.spanContext().isRemote&&C.addChildSpanToSpan(r,t),r&&r.spanContext().isRemote&&t.setAttribute(IC,!0),e===U.ROOT_CONTEXT&&(n={scope:C.getDefaultCurrentScope(),isolationScope:C.getDefaultIsolationScope()}),n&&C.setCapturedScopesOnSpan(t,n.scope,n.isolationScope),C.logSpanStart(t);let o=C.getClient();C4([o,"optionalAccess",i=>i.emit,"call",i=>i("spanStart",t)])}function ZVe(t){C.logSpanEnd(t);let e=C.getClient();C4([e,"optionalAccess",r=>r.emit,"call",r=>r("spanEnd",t)])}var RC=class{constructor(e){em("SentrySpanProcessor"),this._exporter=new SC(e)}async forceFlush(){this._exporter.flush()}async shutdown(){this._exporter.clear()}onStart(e,r){XVe(e,r)}onEnd(e){ZVe(e),this._exporter.export(e)}},OC=class{constructor(e){this._client=e,em("SentrySampler")}shouldSample(e,r,n,o,i,s){let a=this._client.getOptions(),u=U.trace.getSpan(e),l=Jh([u,"optionalAccess",N=>N.spanContext,"call",N=>N()]);if(!C.hasTracingEnabled(a))return Vs({decision:void 0,context:e,spanAttributes:i});let d=i[ce.SEMATTRS_HTTP_METHOD]||i[ce.ATTR_HTTP_REQUEST_METHOD];if(o===U.SpanKind.CLIENT&&d&&(!u||Jh([l,"optionalAccess",N=>N.isRemote])))return Vs({decision:void 0,context:e,spanAttributes:i});let p=u?JVe(u,r,n):void 0,{description:_,data:f,op:g}=g4(n,i,o),E={...f,...i};g&&(E[C.SEMANTIC_ATTRIBUTE_SENTRY_OP]=g);let S={decision:!0};if(this._client.emit("beforeSampling",{spanAttributes:E,spanName:_,parentSampled:p,parentContext:l},S),!S.decision)return Vs({decision:void 0,context:e,spanAttributes:i});let[v,M]=C.sampleSpan(a,{name:_,attributes:E,transactionContext:{name:_,parentSampled:p},parentSampled:p}),D={[C.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:M},L=`${d}`.toUpperCase();return L==="OPTIONS"||L==="HEAD"?(oi&&oe.logger.log(`[Tracing] Not sampling span because HTTP method is '${L}' for ${n}`),{...Vs({decision:jd.SamplingDecision.NOT_RECORD,context:e,spanAttributes:i}),attributes:D}):v?{...Vs({decision:jd.SamplingDecision.RECORD_AND_SAMPLED,context:e,spanAttributes:i}),attributes:D}:{...Vs({decision:jd.SamplingDecision.NOT_RECORD,context:e,spanAttributes:i}),attributes:D}}toString(){return"SentrySampler"}};function zVe(t){let e=t.spanContext().traceId,r=NC(t);return r&&e===r.traceId?r.sampled:void 0}function JVe(t,e,r){let n=t.spanContext();if(U.isSpanContextValid(n)&&n.traceId===e){if(n.isRemote){let i=zVe(t);return oi&&oe.logger.log(`[Tracing] Inheriting remote parent's sampled decision for ${r}: ${i}`),i}let o=Qh(n);return oi&&oe.logger.log(`[Tracing] Inheriting parent's sampled decision for ${r}: ${o}`),o}}function Vs({decision:t,context:e,spanAttributes:r}){let n=$Ve(e,r);return t==null?{decision:jd.SamplingDecision.NOT_RECORD,traceState:n}:t===jd.SamplingDecision.NOT_RECORD?{decision:t,traceState:n.set(yC,"1")}:{decision:t,traceState:n}}function $Ve(t,e){let r=U.trace.getSpan(t),n=Jh([r,"optionalAccess",s=>s.spanContext,"call",s=>s()]),o=Jh([n,"optionalAccess",s=>s.traceState])||new ii.TraceState,i=e[ce.SEMATTRS_HTTP_URL]||e[ce.ATTR_URL_FULL];return i&&typeof i=="string"&&(o=o.set(d4,i)),o}function QVe(...t){lVe.registerInstrumentations({instrumentations:t})}ee.getClient=C.getClient;ee.getCurrentHubShim=C.getCurrentHubShim;ee.getDynamicSamplingContextFromSpan=C.getDynamicSamplingContextFromSpan;ee.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION=i4;ee.SentryPropagator=mC;ee.SentrySampler=OC;ee.SentrySpanProcessor=RC;ee.addOpenTelemetryInstrumentation=QVe;ee.continueTrace=CVe;ee.enhanceDscWithOpenTelemetryRootSpanName=AVe;ee.generateSpanContextForPropagationContext=h4;ee.getActiveSpan=vC;ee.getPropagationContextFromSpan=NC;ee.getRequestSpanData=c4;ee.getScopesFromContext=qs;ee.getSpanKind=l4;ee.isSentryRequestSpan=EVe;ee.openTelemetrySetupCheck=RVe;ee.setOpenTelemetryContextAsyncContextStrategy=GVe;ee.setupEventContextTrace=LVe;ee.spanHasAttributes=Hd;ee.spanHasEvents=dVe;ee.spanHasKind=s4;ee.spanHasName=bC;ee.spanHasParentId=u4;ee.spanHasStatus=a4;ee.startInactiveSpan=R4;ee.startSpan=S4;ee.startSpanManual=A4;ee.suppressTracing=O4;ee.withActiveSpan=CC;ee.wrapClientClass=_Ve;ee.wrapContextManagerClass=UVe;ee.wrapSamplingDecision=Vs});var Pe=c(tm=>{Object.defineProperty(tm,"__esModule",{value:!0});var eBe=uo(),UC={};function tBe(t,e){return Object.assign(r=>{let n=UC[t];if(n){r&&n.setConfig(r);return}let o=e(r);UC[t]=o,eBe.addOpenTelemetryInstrumentation(o)},{id:t})}tm.INSTRUMENTED=UC;tm.generateInstrumentOnce=tBe});var Sn=c(xC=>{Object.defineProperty(xC,"__esModule",{value:!0});var rBe=W();function nBe(t,e){t.setAttribute(rBe.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,e)}xC.addOriginToSpan=nBe});var VC=c(wC=>{Object.defineProperty(wC,"__esModule",{value:!0});function oBe(t){let e=t.protocol||"",r=t.hostname||t.host||"",n=!t.port||t.port===80||t.port===443||/^(.*):(\d+)$/.test(r)?"":`:${t.port}`,o=t.path?t.path:"/";return`${e}//${r}${n}${o}`}wC.getRequestUrl=oBe});var M4=c(jC=>{Object.defineProperty(jC,"__esModule",{value:!0});var iBe=ue(),BC=zh(),sBe=pP(),rm=W(),nm=b(),aBe=VC(),qC=class extends BC.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-http",iBe.VERSION,e)}init(){return[this._getHttpsInstrumentation(),this._getHttpInstrumentation()]}_getHttpInstrumentation(){return new BC.InstrumentationNodeModuleDefinition("http",["*"],e=>{yu(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction());let r=yu(e,"request",this._getPatchOutgoingRequestFunction());return yu(e,"get",this._getPatchOutgoingGetFunction(r)),e},()=>{})}_getHttpsInstrumentation(){return new BC.InstrumentationNodeModuleDefinition("https",["*"],e=>{yu(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction());let r=yu(e,"request",this._getPatchOutgoingRequestFunction());return yu(e,"get",this._getPatchOutgoingGetFunction(r)),e},()=>{})}_getPatchIncomingRequestFunction(){let e=this;return r=>function(o,...i){if(o!=="request")return r.apply(this,[o,...i]);e._diag.debug("http instrumentation for incoming request");let s=i[0],a=rm.getIsolationScope().clone();a.setSDKProcessingMetadata({request:s});let u=rm.getClient();u&&u.getOptions().autoSessionTracking&&a.setRequestSession({status:"ok"});let l=(s.method||"GET").toUpperCase(),d=nm.stripUrlQueryAndFragment(s.url||"/"),p=`${l} ${d}`;return a.setTransactionName(p),rm.withIsolationScope(a,()=>r.apply(this,[o,...i]))}}_getPatchOutgoingRequestFunction(){let e=this;return r=>function(...o){e._diag.debug("http instrumentation for outgoing requests");let i=[...o],s=i.shift(),a=typeof i[0]=="object"&&(typeof s=="string"||s instanceof URL)?i.shift():void 0,{optionsParsed:u}=sBe.getRequestInfo(s,a),l=r.apply(this,o);return l.prependListener("response",d=>{let p=e.getConfig().breadcrumbs,_=typeof p>"u"?!0:p,f=e.getConfig().ignoreOutgoingRequests,g=typeof f=="function"?!f(aBe.getRequestUrl(l),u):!0;_&&g&&cBe(l,d)}),l}}_getPatchOutgoingGetFunction(e){return r=>function(...o){let i=e(...o);return i.end(),i}}};function yu(t,e,r){let n=t[e],o=r(n);return uBe(t,e,o),o}function uBe(t,e,r){let n=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}function cBe(t,e){let r=lBe(t),n=e.statusCode,o=nm.getBreadcrumbLogLevelFromHttpStatusCode(n);rm.addBreadcrumb({category:"http",data:{status_code:n,...r},type:"http",level:o},{event:"response",request:t,response:e})}function lBe(t){try{let e=t.getHeader("host")||t.host,r=new URL(t.path,`${t.protocol}//${e}`),n=nm.parseUrl(r.toString()),o={url:nm.getSanitizedUrlString(n),"http.method":t.method||"GET"};return n.search&&(o["http.query"]=n.search),n.hash&&(o["http.fragment"]=n.hash),o}catch{return{}}}jC.SentryHttpInstrumentation=qC});var om=c(Fd=>{var{_optionalChain:js}=b();Object.defineProperty(Fd,"__esModule",{value:!0});var dBe=(y(),T(P)),pBe=pP(),_Be=W(),fBe=uo(),D4=Pe(),gBe=Sn(),EBe=VC(),hBe=M4(),HC="Http",L4="@opentelemetry_sentry-patched/instrumentation-http",G4=D4.generateInstrumentOnce(`${HC}.sentry`,t=>new hBe.SentryHttpInstrumentation({breadcrumbs:js([t,"optionalAccess",e=>e.breadcrumbs]),ignoreOutgoingRequests:js([t,"optionalAccess",e=>e.ignoreOutgoingRequests])})),U4=D4.generateInstrumentOnce(HC,t=>{let e=new pBe.HttpInstrumentation(t);try{e._diag=dBe.diag.createComponentLogger({namespace:L4}),e.instrumentationName=L4}catch{}return e}),mBe=(t={})=>{if(t.spans!==!1){let e=OBe(t);U4(e)}G4(t)},TBe=(t={})=>({name:HC,setupOnce(){mBe(t)}}),SBe=_Be.defineIntegration(TBe);function ABe(t){return"outputData"in t&&"outputSize"in t&&!("client"in t)&&!("statusCode"in t)}function RBe(t){return t.headers["next-router-prefetch"]==="1"}function OBe(t={}){return{...js([t,"access",r=>r.instrumentation,"optionalAccess",r=>r._experimentalConfig]),disableIncomingRequestInstrumentation:t.disableIncomingRequestSpans,ignoreOutgoingRequestHook:r=>{let n=EBe.getRequestUrl(r);if(!n)return!1;let o=t.ignoreOutgoingRequests;return!!(o&&o(n,r))},ignoreIncomingRequestHook:r=>{let n=r.url,o=js([r,"access",s=>s.method,"optionalAccess",s=>s.toUpperCase,"call",s=>s()]);if(o==="OPTIONS"||o==="HEAD")return!0;let i=t.ignoreIncomingRequests;return!!(n&&i&&i(n,r))},requireParentforOutgoingSpans:!1,requireParentforIncomingSpans:!1,requestHook:(r,n)=>{gBe.addOriginToSpan(r,"auto.http.otel.http"),!ABe(n)&&RBe(n)&&r.setAttribute("sentry.http.prefetch",!0),js([t,"access",o=>o.instrumentation,"optionalAccess",o=>o.requestHook,"optionalCall",o=>o(r,n)])},responseHook:(r,n)=>{let o=fBe.getClient();o&&o.getOptions().autoSessionTracking&&setImmediate(()=>{o._captureRequestSession()}),js([t,"access",i=>i.instrumentation,"optionalAccess",i=>i.responseHook,"optionalCall",i=>i(r,n)])},applyCustomAttributesOnSpan:(r,n,o)=>{js([t,"access",i=>i.instrumentation,"optionalAccess",i=>i.applyCustomAttributesOnSpan,"optionalCall",i=>i(r,n,o)])}}}Fd.httpIntegration=SBe;Fd.instrumentOtelHttp=U4;Fd.instrumentSentryHttp=G4});var x4=c(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.PACKAGE_NAME=vu.PACKAGE_VERSION=void 0;vu.PACKAGE_VERSION="0.6.0";vu.PACKAGE_NAME="@opentelemetry/instrumentation-undici"});var w4=c(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.SemanticAttributes=void 0;im.SemanticAttributes={HTTP_CONNECTION_STATE:"http.connection.state",ERROR_TYPE:"error.type",HTTP_REQUEST_BODY_SIZE:"http.request.body.size",HTTP_REQUEST_METHOD:"http.request.method",HTTP_REQUEST_METHOD_ORIGINAL:"http.request.method_original",HTTP_REQUEST_RESEND_COUNT:"http.request.resend_count",HTTP_RESPONSE_BODY_SIZE:"http.response.body.size",HTTP_RESPONSE_STATUS_CODE:"http.response.status_code",HTTP_ROUTE:"http.route",NETWORK_PEER_ADDRESS:"network.peer.address",NETWORK_PEER_PORT:"network.peer.port",NETWORK_PROTOCOL_NAME:"network.protocol.name",NETWORK_PROTOCOL_VERSION:"network.protocol.version",SERVER_ADDRESS:"server.address",SERVER_PORT:"server.port",URL_FULL:"url.full",URL_PATH:"url.path",URL_QUERY:"url.query",URL_SCHEME:"url.scheme",USER_AGENT_ORIGINAL:"user_agent.original"}});var B4=c(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.UndiciInstrumentation=void 0;var IBe=m("diagnostics_channel"),bBe=m("url"),kd=je(),_r=(y(),T(P)),V4=x4(),He=w4(),sm=ue(),FC=class extends kd.InstrumentationBase{constructor(e={}){super(V4.PACKAGE_NAME,V4.PACKAGE_VERSION,e),this._recordFromReq=new WeakMap}init(){}disable(){super.disable(),this._channelSubs.forEach(e=>e.channel.unsubscribe(e.onMessage)),this._channelSubs.length=0}enable(){super.enable(),this._channelSubs=this._channelSubs||[],!(this._channelSubs.length>0)&&(this.subscribeToChannel("undici:request:create",this.onRequestCreated.bind(this)),this.subscribeToChannel("undici:client:sendHeaders",this.onRequestHeaders.bind(this)),this.subscribeToChannel("undici:request:headers",this.onResponseHeaders.bind(this)),this.subscribeToChannel("undici:request:trailers",this.onDone.bind(this)),this.subscribeToChannel("undici:request:error",this.onError.bind(this)))}_updateMetricInstruments(){this._httpClientDurationHistogram=this.meter.createHistogram("http.client.request.duration",{description:"Measures the duration of outbound HTTP requests.",unit:"s",valueType:_r.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}})}subscribeToChannel(e,r){let n=IBe.channel(e);n.subscribe(r),this._channelSubs.push({name:e,channel:n,onMessage:r})}onRequestCreated({request:e}){let r=this.getConfig(),n=r.enabled!==!1;if((0,kd.safeExecuteInTheMiddle)(()=>{var N;return!n||e.method==="CONNECT"||((N=r.ignoreRequestHook)===null||N===void 0?void 0:N.call(r,e))},N=>N&&this._diag.error("caught ignoreRequestHook error: ",N),!0))return;let i=(0,sm.hrTime)(),s=new bBe.URL(e.origin+e.path),a=s.protocol.replace(":",""),u=this.getRequestMethod(e.method),l={[He.SemanticAttributes.HTTP_REQUEST_METHOD]:u,[He.SemanticAttributes.HTTP_REQUEST_METHOD_ORIGINAL]:e.method,[He.SemanticAttributes.URL_FULL]:s.toString(),[He.SemanticAttributes.URL_PATH]:s.pathname,[He.SemanticAttributes.URL_QUERY]:s.search,[He.SemanticAttributes.URL_SCHEME]:a},d={https:"443",http:"80"},p=s.hostname,_=s.port||d[a];l[He.SemanticAttributes.SERVER_ADDRESS]=p,_&&!isNaN(Number(_))&&(l[He.SemanticAttributes.SERVER_PORT]=Number(_));let f;if(Array.isArray(e.headers)){let N=e.headers.findIndex(G=>G.toLowerCase()==="user-agent");N>=0&&(f=e.headers[N+1])}else if(typeof e.headers=="string"){let G=e.headers.split(`\r
27
+ `).find(w=>w.toLowerCase().startsWith("user-agent"));f=G&&G.substring(G.indexOf(":")+1).trim()}f&&(l[He.SemanticAttributes.USER_AGENT_ORIGINAL]=f);let g=(0,kd.safeExecuteInTheMiddle)(()=>{var N;return(N=r.startSpanHook)===null||N===void 0?void 0:N.call(r,e)},N=>N&&this._diag.error("caught startSpanHook error: ",N),!0);g&&Object.entries(g).forEach(([N,G])=>{l[N]=G});let E=_r.context.active(),S=_r.trace.getSpan(E),v;r.requireParentforSpans&&(!S||!_r.trace.isSpanContextValid(S.spanContext()))?v=_r.trace.wrapSpanContext(_r.INVALID_SPAN_CONTEXT):v=this.tracer.startSpan(u==="_OTHER"?"HTTP":u,{kind:_r.SpanKind.CLIENT,attributes:l},E),(0,kd.safeExecuteInTheMiddle)(()=>{var N;return(N=r.requestHook)===null||N===void 0?void 0:N.call(r,v,e)},N=>N&&this._diag.error("caught requestHook error: ",N),!0);let M=_r.trace.setSpan(_r.context.active(),v),D={};_r.propagation.inject(M,D);let L=Object.entries(D);for(let N=0;N<L.length;N++){let[G,w]=L[N];typeof e.addHeader=="function"?e.addHeader(G,w):typeof e.headers=="string"?e.headers+=`${G}: ${w}\r
28
+ `:Array.isArray(e.headers)&&e.headers.push(G,w)}this._recordFromReq.set(e,{span:v,attributes:l,startTime:i})}onRequestHeaders({request:e,socket:r}){var n;let o=this._recordFromReq.get(e);if(!o)return;let i=this.getConfig(),{span:s}=o,{remoteAddress:a,remotePort:u}=r,l={[He.SemanticAttributes.NETWORK_PEER_ADDRESS]:a,[He.SemanticAttributes.NETWORK_PEER_PORT]:u};if(!((n=i.headersToSpanAttributes)===null||n===void 0)&&n.requestHeaders){let d=new Set(i.headersToSpanAttributes.requestHeaders.map(_=>_.toLowerCase())),p=Array.isArray(e.headers)?e.headers:e.headers.split(`\r
29
+ `);p.forEach((_,f)=>{let g=_.indexOf(":"),E=g!==-1,S=(E?_.substring(0,g):_).toLowerCase(),v=E?_.substring(g+1):p[f+1];d.has(S)&&(l[`http.request.header.${S}`]=v.trim())})}s.setAttributes(l)}onResponseHeaders({request:e,response:r}){var n,o;let i=this._recordFromReq.get(e);if(!i)return;let{span:s,attributes:a}=i,u={[He.SemanticAttributes.HTTP_RESPONSE_STATUS_CODE]:r.statusCode},l=this.getConfig();(0,kd.safeExecuteInTheMiddle)(()=>{var p;return(p=l.responseHook)===null||p===void 0?void 0:p.call(l,s,{request:e,response:r})},p=>p&&this._diag.error("caught responseHook error: ",p),!0);let d=new Set;!((n=l.headersToSpanAttributes)===null||n===void 0)&&n.responseHeaders&&((o=l.headersToSpanAttributes)===null||o===void 0||o.responseHeaders.forEach(p=>d.add(p.toLowerCase())));for(let p=0;p<r.headers.length;p=p+2){let _=r.headers[p].toString().toLowerCase(),f=r.headers[p+1];if(d.has(_)&&(u[`http.response.header.${_}`]=f.toString()),_==="content-length"){let g=Number(f.toString());isNaN(g)||(u["http.response.header.content-length"]=g)}}s.setAttributes(u),s.setStatus({code:r.statusCode>=400?_r.SpanStatusCode.ERROR:_r.SpanStatusCode.UNSET}),i.attributes=Object.assign(a,u)}onDone({request:e}){let r=this._recordFromReq.get(e);if(!r)return;let{span:n,attributes:o,startTime:i}=r;n.end(),this._recordFromReq.delete(e),this.recordRequestDuration(o,i)}onError({request:e,error:r}){let n=this._recordFromReq.get(e);if(!n)return;let{span:o,attributes:i,startTime:s}=n;o.recordException(r),o.setStatus({code:_r.SpanStatusCode.ERROR,message:r.message}),o.end(),this._recordFromReq.delete(e),i[He.SemanticAttributes.ERROR_TYPE]=r.message,this.recordRequestDuration(i,s)}recordRequestDuration(e,r){let n={};[He.SemanticAttributes.HTTP_RESPONSE_STATUS_CODE,He.SemanticAttributes.HTTP_REQUEST_METHOD,He.SemanticAttributes.SERVER_ADDRESS,He.SemanticAttributes.SERVER_PORT,He.SemanticAttributes.URL_SCHEME,He.SemanticAttributes.ERROR_TYPE].forEach(s=>{s in e&&(n[s]=e[s])});let i=(0,sm.hrTimeToMilliseconds)((0,sm.hrTimeDuration)(r,(0,sm.hrTime)()))/1e3;this._httpClientDurationHistogram.record(i,n)}getRequestMethod(e){let r={CONNECT:!0,OPTIONS:!0,HEAD:!0,GET:!0,POST:!0,PUT:!0,PATCH:!0,DELETE:!0,TRACE:!0};return e.toUpperCase()in r?e.toUpperCase():"_OTHER"}};am.UndiciInstrumentation=FC});var j4=c(q4=>{"use strict";Object.defineProperty(q4,"__esModule",{value:!0})});var F4=c(si=>{"use strict";var PBe=si&&si.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),H4=si&&si.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&PBe(e,t,r)};Object.defineProperty(si,"__esModule",{value:!0});H4(B4(),si);H4(j4(),si)});var KC=c(YC=>{var{_optionalChain:yBe}=b();Object.defineProperty(YC,"__esModule",{value:!0});var um=(y(),T(P)),vBe=F4(),Wd=W(),kC=uo(),WC=b(),NBe=(t={})=>{let e=typeof t.breadcrumbs>"u"?!0:t.breadcrumbs,r=t.ignoreOutgoingRequests;return{name:"NodeFetch",setupOnce(){let n=new vBe.UndiciInstrumentation({requireParentforSpans:!1,ignoreRequestHook:o=>{let i=DBe(o.origin,o.path);if(r&&i&&r(i))return!0;if(!Wd.hasTracingEnabled()){let a=um.context.active(),u={},l=um.trace.getSpan(a),d=l?kC.getPropagationContextFromSpan(l):Wd.getCurrentScope().getPropagationContext(),p=kC.generateSpanContextForPropagationContext(d);p.traceState=yBe([p,"access",g=>g.traceState,"optionalAccess",g=>g.set,"call",g=>g("sentry.url",i)]);let _=um.trace.setSpanContext(a,p);um.propagation.inject(_,u);let f=o.headers;return Array.isArray(f)?Object.entries(u).forEach(g=>f.push(...g)):o.headers+=Object.entries(u).map(([g,E])=>`${g}: ${E}\r
30
+ `).join(""),!0}return!1},startSpanHook:()=>({[Wd.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.node_fetch"}),responseHook:(o,{request:i,response:s})=>{e&&MBe(i,s)}});kC.addOpenTelemetryInstrumentation(n)}}},CBe=Wd.defineIntegration(NBe);function MBe(t,e){let r=LBe(t),n=e.statusCode,o=WC.getBreadcrumbLogLevelFromHttpStatusCode(n);Wd.addBreadcrumb({category:"http",data:{status_code:n,...r},type:"http",level:o},{event:"response",request:t,response:e})}function LBe(t){try{let e=new URL(t.path,t.origin),r=WC.parseUrl(e.toString()),n={url:WC.getSanitizedUrlString(r),"http.method":t.method||"GET"};return r.search&&(n["http.query"]=r.search),r.hash&&(n["http.fragment"]=r.hash),n}catch{return{}}}function DBe(t,e="/"){let r=`${t}`;return r.endsWith("/")&&e.startsWith("/")?`${r}${e.slice(1)}`:!r.endsWith("/")&&!e.startsWith("/")?`${r}/${e.slice(1)}`:`${r}${e}`}YC.nativeNodeFetchIntegration=CBe});var k4=c(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.SeverityNumber=void 0;var GBe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(GBe=Yd.SeverityNumber||(Yd.SeverityNumber={}))});var lm=c(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.NOOP_LOGGER=Nu.NoopLogger=void 0;var cm=class{emit(e){}};Nu.NoopLogger=cm;Nu.NOOP_LOGGER=new cm});var pm=c(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.NOOP_LOGGER_PROVIDER=Cu.NoopLoggerProvider=void 0;var UBe=lm(),dm=class{getLogger(e,r,n){return new UBe.NoopLogger}};Cu.NoopLoggerProvider=dm;Cu.NOOP_LOGGER_PROVIDER=new dm});var ZC=c(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.ProxyLogger=void 0;var xBe=lm(),XC=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):xBe.NOOP_LOGGER}};_m.ProxyLogger=XC});var JC=c(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.ProxyLoggerProvider=void 0;var wBe=pm(),VBe=ZC(),zC=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new VBe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:wBe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};fm.ProxyLoggerProvider=zC});var W4=c(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm._globalThis=void 0;gm._globalThis=typeof globalThis=="object"?globalThis:global});var Y4=c(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em._globalThis=void 0;var BBe=W4();Object.defineProperty(Em,"_globalThis",{enumerable:!0,get:function(){return BBe._globalThis}})});var K4=c(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm._globalThis=void 0;var qBe=Y4();Object.defineProperty(hm,"_globalThis",{enumerable:!0,get:function(){return qBe._globalThis}})});var X4=c(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.API_BACKWARDS_COMPATIBILITY_VERSION=An.makeGetter=An._global=An.GLOBAL_LOGS_API_KEY=void 0;var jBe=K4();An.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");An._global=jBe._globalThis;function HBe(t,e,r){return n=>n===t?e:r}An.makeGetter=HBe;An.API_BACKWARDS_COMPATIBILITY_VERSION=1});var z4=c(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.LogsAPI=void 0;var Nr=X4(),FBe=pm(),Z4=JC(),$C=class t{constructor(){this._proxyLoggerProvider=new Z4.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Nr._global[Nr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Nr._global[Nr.GLOBAL_LOGS_API_KEY]=(0,Nr.makeGetter)(Nr.API_BACKWARDS_COMPATIBILITY_VERSION,e,FBe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Nr._global[Nr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Nr._global,Nr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Nr._global[Nr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new Z4.ProxyLoggerProvider}};mm.LogsAPI=$C});var QC=c(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.logs=et.ProxyLoggerProvider=et.ProxyLogger=et.NoopLoggerProvider=et.NOOP_LOGGER_PROVIDER=et.NoopLogger=et.NOOP_LOGGER=et.SeverityNumber=void 0;var kBe=k4();Object.defineProperty(et,"SeverityNumber",{enumerable:!0,get:function(){return kBe.SeverityNumber}});var J4=lm();Object.defineProperty(et,"NOOP_LOGGER",{enumerable:!0,get:function(){return J4.NOOP_LOGGER}});Object.defineProperty(et,"NoopLogger",{enumerable:!0,get:function(){return J4.NoopLogger}});var $4=pm();Object.defineProperty(et,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return $4.NOOP_LOGGER_PROVIDER}});Object.defineProperty(et,"NoopLoggerProvider",{enumerable:!0,get:function(){return $4.NoopLoggerProvider}});var WBe=ZC();Object.defineProperty(et,"ProxyLogger",{enumerable:!0,get:function(){return WBe.ProxyLogger}});var YBe=JC();Object.defineProperty(et,"ProxyLoggerProvider",{enumerable:!0,get:function(){return YBe.ProxyLoggerProvider}});var KBe=z4();et.logs=KBe.LogsAPI.getInstance()});var Q4=c(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.disableInstrumentations=Mu.enableInstrumentations=void 0;function XBe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Mu.enableInstrumentations=XBe;function ZBe(t){t.forEach(e=>e.disable())}Mu.disableInstrumentations=ZBe});var rJ=c(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.registerInstrumentations=void 0;var eJ=(y(),T(P)),zBe=QC(),tJ=Q4();function JBe(t){var e,r;let n=t.tracerProvider||eJ.trace.getTracerProvider(),o=t.meterProvider||eJ.metrics.getMeterProvider(),i=t.loggerProvider||zBe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,tJ.enableInstrumentations)(s,n,o,i),()=>{(0,tJ.disableInstrumentations)(s)}}Tm.registerInstrumentations=JBe});var nJ=c(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.InstrumentationAbstract=void 0;var eM=(y(),T(P)),$Be=QC(),Sm=De(),tM=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=Sm.wrap,this._unwrap=Sm.unwrap,this._massWrap=Sm.massWrap,this._massUnwrap=Sm.massUnwrap,this.setConfig(n),this._diag=eM.diag.createComponentLogger({namespace:e}),this._tracer=eM.trace.getTracer(e,r),this._meter=eM.metrics.getMeter(e,r),this._logger=$Be.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};Am.InstrumentationAbstract=tM});var oJ=c(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.ModuleNameTrie=ai.ModuleNameSeparator=void 0;ai.ModuleNameSeparator="/";var Rm=class{constructor(){this.hooks=[],this.children=new Map}},rM=class{constructor(){this._trie=new Rm,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(ai.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new Rm,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(ai.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};ai.ModuleNameTrie=rM});var sJ=c(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.RequireInTheMiddleSingleton=void 0;var QBe=Ue(),iJ=m("path"),nM=oJ(),eqe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),oM=class t{constructor(){this._moduleNameTrie=new nM.ModuleNameTrie,this._initialize()}_initialize(){new QBe.Hook(null,{internals:!0},(e,r,n)=>{let o=tqe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return eqe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};Om.RequireInTheMiddleSingleton=oM;function tqe(t){return iJ.sep!==nM.ModuleNameSeparator?t.split(iJ.sep).join(nM.ModuleNameSeparator):t}});var iM=c(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.isWrapped=ui.safeExecuteInTheMiddleAsync=ui.safeExecuteInTheMiddle=void 0;function rqe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ui.safeExecuteInTheMiddle=rqe;async function nqe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ui.safeExecuteInTheMiddleAsync=nqe;function oqe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}ui.isWrapped=oqe});var cJ=c(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.InstrumentationBase=void 0;var sM=m("path"),aJ=m("util"),iqe=Sr(),aM=De(),sqe=nJ(),aqe=sJ(),uqe=Or(),Kd=(y(),T(P)),cqe=Ue(),lqe=m("fs"),dqe=iM(),uM=class extends sqe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=aqe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,dqe.isWrapped)(i[s])&&this._unwrap(i,s),aJ.types.isProxy(i)){let u=(0,aM.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,aM.wrap)(i,s,a)},this._unwrap=(i,s)=>aJ.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,aM.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{Kd.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Kd.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{Kd.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Kd.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=m.resolve(r);m.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,lqe.readFileSync)(sM.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{Kd.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return uJ(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=sM.normalize(n);return a.filter(d=>d.name===u).filter(d=>uJ(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=sM.isAbsolute(e.name)?new cqe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new uqe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};Im.InstrumentationBase=uM;function uJ(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,iqe.satisfies)(e,n,{includePrerelease:r}))}});var lJ=c(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.normalize=void 0;var pqe=m("path");Object.defineProperty(bm,"normalize",{enumerable:!0,get:function(){return pqe.normalize}})});var dJ=c(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.normalize=Lu.InstrumentationBase=void 0;var _qe=cJ();Object.defineProperty(Lu,"InstrumentationBase",{enumerable:!0,get:function(){return _qe.InstrumentationBase}});var fqe=lJ();Object.defineProperty(Lu,"normalize",{enumerable:!0,get:function(){return fqe.normalize}})});var cM=c(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.normalize=Du.InstrumentationBase=void 0;var pJ=dJ();Object.defineProperty(Du,"InstrumentationBase",{enumerable:!0,get:function(){return pJ.InstrumentationBase}});Object.defineProperty(Du,"normalize",{enumerable:!0,get:function(){return pJ.normalize}})});var _J=c(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.InstrumentationNodeModuleDefinition=void 0;var lM=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};Pm.InstrumentationNodeModuleDefinition=lM});var fJ=c(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.InstrumentationNodeModuleFile=void 0;var gqe=cM(),dM=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,gqe.normalize)(e)}};ym.InstrumentationNodeModuleFile=dM});var gJ=c(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.safeExecuteInTheMiddleAsync=Mt.safeExecuteInTheMiddle=Mt.isWrapped=Mt.InstrumentationNodeModuleFile=Mt.InstrumentationNodeModuleDefinition=Mt.InstrumentationBase=Mt.registerInstrumentations=void 0;var Eqe=rJ();Object.defineProperty(Mt,"registerInstrumentations",{enumerable:!0,get:function(){return Eqe.registerInstrumentations}});var hqe=cM();Object.defineProperty(Mt,"InstrumentationBase",{enumerable:!0,get:function(){return hqe.InstrumentationBase}});var mqe=_J();Object.defineProperty(Mt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return mqe.InstrumentationNodeModuleDefinition}});var Tqe=fJ();Object.defineProperty(Mt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return Tqe.InstrumentationNodeModuleFile}});var pM=iM();Object.defineProperty(Mt,"isWrapped",{enumerable:!0,get:function(){return pM.isWrapped}});Object.defineProperty(Mt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return pM.safeExecuteInTheMiddle}});Object.defineProperty(Mt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return pM.safeExecuteInTheMiddleAsync}})});var EJ=c(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.PACKAGE_NAME=Gu.PACKAGE_VERSION=void 0;Gu.PACKAGE_VERSION="0.16.0";Gu.PACKAGE_NAME="@opentelemetry/instrumentation-fs"});var hJ=c(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.SYNC_FUNCTIONS=ci.CALLBACK_FUNCTIONS=ci.PROMISE_FUNCTIONS=void 0;ci.PROMISE_FUNCTIONS=["access","appendFile","chmod","chown","copyFile","cp","lchown","link","lstat","lutimes","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"];ci.CALLBACK_FUNCTIONS=["access","appendFile","chmod","chown","copyFile","cp","exists","lchown","link","lstat","lutimes","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","realpath.native","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"];ci.SYNC_FUNCTIONS=["accessSync","appendFileSync","chmodSync","chownSync","copyFileSync","cpSync","existsSync","lchownSync","linkSync","lstatSync","lutimesSync","mkdirSync","mkdtempSync","opendirSync","openSync","readdirSync","readFileSync","readlinkSync","realpathSync","realpathSync.native","renameSync","rmdirSync","rmSync","statSync","symlinkSync","truncateSync","unlinkSync","utimesSync","writeFileSync"]});var TJ=c(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.indexFs=Uu.splitTwoLevels=void 0;function mJ(t){let e=t.split(".");if(e.length>1){if(e.length!==2)throw Error(`Invalid member function name ${t}`);return e}else return[t]}Uu.splitTwoLevels=mJ;function Sqe(t,e){if(!e)throw new Error(JSON.stringify({member:e}));let r=mJ(e),[n,o]=r;return o?{objectToPatch:t[n],functionNameToPatch:o}:{objectToPatch:t,functionNameToPatch:n}}Uu.indexFs=Sqe});var AJ=c(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.FsInstrumentation=void 0;var Oe=(y(),T(P)),co=ue(),Zr=gJ(),SJ=EJ(),li=hJ(),Aqe=m("util"),vm=TJ();function Nm(t,e){return Object.assign(t,e)}var _M=class extends Zr.InstrumentationBase{constructor(e={}){super(SJ.PACKAGE_NAME,SJ.PACKAGE_VERSION,e)}init(){return[new Zr.InstrumentationNodeModuleDefinition("fs",["*"],e=>{for(let r of li.SYNC_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:o}=(0,vm.indexFs)(e,r);(0,Zr.isWrapped)(n[o])&&this._unwrap(n,o),this._wrap(n,o,this._patchSyncFunction.bind(this,r))}for(let r of li.CALLBACK_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:o}=(0,vm.indexFs)(e,r);if((0,Zr.isWrapped)(n[o])&&this._unwrap(n,o),r==="exists"){this._wrap(n,o,this._patchExistsCallbackFunction.bind(this,r));continue}this._wrap(n,o,this._patchCallbackFunction.bind(this,r))}for(let r of li.PROMISE_FUNCTIONS)(0,Zr.isWrapped)(e.promises[r])&&this._unwrap(e.promises,r),this._wrap(e.promises,r,this._patchPromiseFunction.bind(this,r));return e},e=>{if(e!==void 0){for(let r of li.SYNC_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:o}=(0,vm.indexFs)(e,r);(0,Zr.isWrapped)(n[o])&&this._unwrap(n,o)}for(let r of li.CALLBACK_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:o}=(0,vm.indexFs)(e,r);(0,Zr.isWrapped)(n[o])&&this._unwrap(n,o)}for(let r of li.PROMISE_FUNCTIONS)(0,Zr.isWrapped)(e.promises[r])&&this._unwrap(e.promises,r)}}),new Zr.InstrumentationNodeModuleDefinition("fs/promises",["*"],e=>{for(let r of li.PROMISE_FUNCTIONS)(0,Zr.isWrapped)(e[r])&&this._unwrap(e,r),this._wrap(e,r,this._patchPromiseFunction.bind(this,r));return e},e=>{if(e!==void 0)for(let r of li.PROMISE_FUNCTIONS)(0,Zr.isWrapped)(e[r])&&this._unwrap(e,r)})]}_patchSyncFunction(e,r){let n=this;return Nm(function(...i){let s=Oe.context.active();if(!n._shouldTrace(s))return r.apply(this,i);if(n._runCreateHook(e,{args:i})===!1)return Oe.context.with((0,co.suppressTracing)(s),r,this,...i);let a=n.tracer.startSpan(`fs ${e}`);try{let u=Oe.context.with((0,co.suppressTracing)(Oe.trace.setSpan(s,a)),r,this,...i);return n._runEndHook(e,{args:i,span:a}),u}catch(u){throw a.recordException(u),a.setStatus({message:u.message,code:Oe.SpanStatusCode.ERROR}),n._runEndHook(e,{args:i,span:a,error:u}),u}finally{a.end()}},r)}_patchCallbackFunction(e,r){let n=this;return Nm(function(...i){let s=Oe.context.active();if(!n._shouldTrace(s))return r.apply(this,i);if(n._runCreateHook(e,{args:i})===!1)return Oe.context.with((0,co.suppressTracing)(s),r,this,...i);let a=i.length-1,u=i[a];if(typeof u=="function"){let l=n.tracer.startSpan(`fs ${e}`);i[a]=Oe.context.bind(s,function(d){return d&&(l.recordException(d),l.setStatus({message:d.message,code:Oe.SpanStatusCode.ERROR})),n._runEndHook(e,{args:i,span:l,error:d}),l.end(),u.apply(this,arguments)});try{return Oe.context.with((0,co.suppressTracing)(Oe.trace.setSpan(s,l)),r,this,...i)}catch(d){throw l.recordException(d),l.setStatus({message:d.message,code:Oe.SpanStatusCode.ERROR}),n._runEndHook(e,{args:i,span:l,error:d}),l.end(),d}}else return r.apply(this,i)},r)}_patchExistsCallbackFunction(e,r){let n=this,i=Nm(function(...a){let u=Oe.context.active();if(!n._shouldTrace(u))return r.apply(this,a);if(n._runCreateHook(e,{args:a})===!1)return Oe.context.with((0,co.suppressTracing)(u),r,this,...a);let l=a.length-1,d=a[l];if(typeof d=="function"){let p=n.tracer.startSpan(`fs ${e}`);a[l]=Oe.context.bind(u,function(){return n._runEndHook(e,{args:a,span:p}),p.end(),d.apply(this,arguments)});try{return Oe.context.with((0,co.suppressTracing)(Oe.trace.setSpan(u,p)),r,this,...a)}catch(_){throw p.recordException(_),p.setStatus({message:_.message,code:Oe.SpanStatusCode.ERROR}),n._runEndHook(e,{args:a,span:p,error:_}),p.end(),_}}else return r.apply(this,a)},r),s=function(a){return new Promise(u=>i(a,u))};return Object.defineProperty(s,"name",{value:e}),Object.defineProperty(i,Aqe.promisify.custom,{value:s}),i}_patchPromiseFunction(e,r){let n=this;return Nm(async function(...i){let s=Oe.context.active();if(!n._shouldTrace(s))return r.apply(this,i);if(n._runCreateHook(e,{args:i})===!1)return Oe.context.with((0,co.suppressTracing)(s),r,this,...i);let a=n.tracer.startSpan(`fs ${e}`);try{let u=await Oe.context.with((0,co.suppressTracing)(Oe.trace.setSpan(s,a)),r,this,...i);return n._runEndHook(e,{args:i,span:a}),u}catch(u){throw a.recordException(u),a.setStatus({message:u.message,code:Oe.SpanStatusCode.ERROR}),n._runEndHook(e,{args:i,span:a,error:u}),u}finally{a.end()}},r)}_runCreateHook(...e){let{createHook:r}=this.getConfig();if(typeof r=="function")try{return r(...e)}catch(n){this._diag.error("caught createHook error",n)}return!0}_runEndHook(...e){let{endHook:r}=this.getConfig();if(typeof r=="function")try{r(...e)}catch(n){this._diag.error("caught endHook error",n)}}_shouldTrace(e){if((0,co.isTracingSuppressed)(e))return!1;let{requireParentSpan:r}=this.getConfig();return!(r&&Oe.trace.getSpan(e)==null)}};Cm.FsInstrumentation=_M});var OJ=c(RJ=>{"use strict";Object.defineProperty(RJ,"__esModule",{value:!0})});var bJ=c(di=>{"use strict";var Rqe=di&&di.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),IJ=di&&di.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Rqe(e,t,r)};Object.defineProperty(di,"__esModule",{value:!0});IJ(AJ(),di);IJ(OJ(),di)});var yJ=c(gM=>{Object.defineProperty(gM,"__esModule",{value:!0});var Oqe=bJ(),fM=W(),Iqe=Pe(),PJ="FileSystem",bqe=fM.defineIntegration((t={})=>({name:PJ,setupOnce(){Iqe.generateInstrumentOnce(PJ,()=>new Oqe.FsInstrumentation({requireParentSpan:!0,endHook(e,{args:r,span:n,error:o}){n.updateName(`fs.${e}`),n.setAttributes({[fM.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"file",[fM.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.file.fs"}),t.recordErrorMessagesAsSpanAttributes&&(typeof r[0]=="string"&&Mqe.includes(e)?n.setAttribute("path_argument",r[0]):typeof r[0]=="string"&&typeof r[1]=="string"&&Cqe.includes(e)?(n.setAttribute("target_argument",r[0]),n.setAttribute("path_argument",r[1])):typeof r[0]=="string"&&Nqe.includes(e)?n.setAttribute("prefix_argument",r[0]):typeof r[0]=="string"&&typeof r[1]=="string"&&vqe.includes(e)?(n.setAttribute("existing_path_argument",r[0]),n.setAttribute("new_path_argument",r[1])):typeof r[0]=="string"&&typeof r[1]=="string"&&yqe.includes(e)?(n.setAttribute("src_argument",r[0]),n.setAttribute("dest_argument",r[1])):typeof r[0]=="string"&&typeof r[1]=="string"&&Pqe.includes(e)&&(n.setAttribute("old_path_argument",r[0]),n.setAttribute("new_path_argument",r[1]))),o&&t.recordErrorMessagesAsSpanAttributes&&n.setAttribute("fs_error",o.message)}}))()}})),Pqe=["rename","renameSync"],yqe=["copyFile","cp","copyFileSync","cpSync"],vqe=["link","linkSync"],Nqe=["mkdtemp","mkdtempSync"],Cqe=["symlink","symlinkSync"],Mqe=["access","appendFile","chmod","chown","exists","mkdir","lchown","lstat","lutimes","open","opendir","readdir","readFile","readlink","realpath","realpath.native","rm","rmdir","stat","truncate","unlink","utimes","writeFile","accessSync","appendFileSync","chmodSync","chownSync","existsSync","lchownSync","lstatSync","lutimesSync","opendirSync","mkdirSync","openSync","readdirSync","readFileSync","readlinkSync","realpathSync","realpathSync.native","rmdirSync","rmSync","statSync","truncateSync","unlinkSync","utimesSync","writeFileSync"];gM.fsIntegration=bqe});var TM=c(mM=>{Object.defineProperty(mM,"__esModule",{value:!0});var Lqe=m("node:util"),EM=W(),hM=b(),Dqe="Console",Gqe=EM.defineIntegration(()=>({name:Dqe,setup(t){hM.addConsoleInstrumentationHandler(({args:e,level:r})=>{EM.getClient()===t&&EM.addBreadcrumb({category:"console",level:hM.severityLevelFromString(r),message:hM.truncate(Lqe.format.apply(void 0,e),2048)},{input:[...e],level:r})})}}));mM.consoleIntegration=Gqe});var SM=c(Hs=>{var{_optionalChain:zr}=b();Object.defineProperty(Hs,"__esModule",{value:!0});var Uqe=m("node:child_process"),NJ=m("node:fs"),Cr=m("node:os"),xqe=m("node:path"),CJ=m("node:util"),wqe=W(),MJ=CJ.promisify(NJ.readFile),LJ=CJ.promisify(NJ.readdir),Vqe="Context",Bqe=(t={})=>{let e,r={app:!0,os:!0,device:!0,culture:!0,cloudResource:!0,...t};async function n(i){e===void 0&&(e=o());let s=jqe(await e);return i.contexts={...i.contexts,app:{...s.app,...zr([i,"access",a=>a.contexts,"optionalAccess",a=>a.app])},os:{...s.os,...zr([i,"access",a=>a.contexts,"optionalAccess",a=>a.os])},device:{...s.device,...zr([i,"access",a=>a.contexts,"optionalAccess",a=>a.device])},culture:{...s.culture,...zr([i,"access",a=>a.contexts,"optionalAccess",a=>a.culture])},cloud_resource:{...s.cloud_resource,...zr([i,"access",a=>a.contexts,"optionalAccess",a=>a.cloud_resource])}},i}async function o(){let i={};if(r.os&&(i.os=await Hqe()),r.app&&(i.app=DJ()),r.device&&(i.device=GJ(r.device)),r.culture){let s=Fqe();s&&(i.culture=s)}return r.cloudResource&&(i.cloud_resource=Zqe()),i}return{name:Vqe,processEvent(i){return n(i)}}},qqe=wqe.defineIntegration(Bqe);function jqe(t){if(zr([t,"optionalAccess",e=>e.app,"optionalAccess",e=>e.app_memory])&&(t.app.app_memory=process.memoryUsage().rss),zr([t,"optionalAccess",e=>e.app,"optionalAccess",e=>e.free_memory])&&typeof process.availableMemory=="function"){let e=zr([process,"access",r=>r.availableMemory,"optionalCall",r=>r()]);e!=null&&(t.app.free_memory=e)}return zr([t,"optionalAccess",e=>e.device,"optionalAccess",e=>e.free_memory])&&(t.device.free_memory=Cr.freemem()),t}async function Hqe(){let t=Cr.platform();switch(t){case"darwin":return Kqe();case"linux":return Xqe();default:return{name:kqe[t]||t,version:Cr.release()}}}function Fqe(){try{if(typeof process.versions.icu!="string")return;let t=new Date(9e8);if(new Intl.DateTimeFormat("es",{month:"long"}).format(t)==="enero"){let r=Intl.DateTimeFormat().resolvedOptions();return{locale:r.locale,timezone:r.timeZone}}}catch{}}function DJ(){let t=process.memoryUsage().rss,r={app_start_time:new Date(Date.now()-process.uptime()*1e3).toISOString(),app_memory:t};if(typeof process.availableMemory=="function"){let n=zr([process,"access",o=>o.availableMemory,"optionalCall",o=>o()]);n!=null&&(r.free_memory=n)}return r}function GJ(t){let e={},r;try{r=Cr.uptime&&Cr.uptime()}catch{}if(typeof r=="number"&&(e.boot_time=new Date(Date.now()-r*1e3).toISOString()),e.arch=Cr.arch(),(t===!0||t.memory)&&(e.memory_size=Cr.totalmem(),e.free_memory=Cr.freemem()),t===!0||t.cpu){let n=Cr.cpus(),o=n&&n[0];o&&(e.processor_count=n.length,e.cpu_description=o.model,e.processor_frequency=o.speed)}return e}var kqe={aix:"IBM AIX",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",win32:"Windows"},Wqe=[{name:"fedora-release",distros:["Fedora"]},{name:"redhat-release",distros:["Red Hat Linux","Centos"]},{name:"redhat_version",distros:["Red Hat Linux"]},{name:"SuSE-release",distros:["SUSE Linux"]},{name:"lsb-release",distros:["Ubuntu Linux","Arch Linux"]},{name:"debian_version",distros:["Debian"]},{name:"debian_release",distros:["Debian"]},{name:"arch-release",distros:["Arch Linux"]},{name:"gentoo-release",distros:["Gentoo Linux"]},{name:"novell-release",distros:["SUSE Linux"]},{name:"alpine-release",distros:["Alpine Linux"]}],Yqe={alpine:t=>t,arch:t=>Rn(/distrib_release=(.*)/,t),centos:t=>Rn(/release ([^ ]+)/,t),debian:t=>t,fedora:t=>Rn(/release (..)/,t),mint:t=>Rn(/distrib_release=(.*)/,t),red:t=>Rn(/release ([^ ]+)/,t),suse:t=>Rn(/VERSION = (.*)\n/,t),ubuntu:t=>Rn(/distrib_release=(.*)/,t)};function Rn(t,e){let r=t.exec(e);return r?r[1]:void 0}async function Kqe(){let t={kernel_version:Cr.release(),name:"Mac OS X",version:`10.${Number(Cr.release().split(".")[0])-4}`};try{let e=await new Promise((r,n)=>{Uqe.execFile("/usr/bin/sw_vers",(o,i)=>{if(o){n(o);return}r(i)})});t.name=Rn(/^ProductName:\s+(.*)$/m,e),t.version=Rn(/^ProductVersion:\s+(.*)$/m,e),t.build=Rn(/^BuildVersion:\s+(.*)$/m,e)}catch{}return t}function vJ(t){return t.split(" ")[0].toLowerCase()}async function Xqe(){let t={kernel_version:Cr.release(),name:"Linux"};try{let e=await LJ("/etc"),r=Wqe.find(a=>e.includes(a.name));if(!r)return t;let n=xqe.join("/etc",r.name),o=(await MJ(n,{encoding:"utf-8"})).toLowerCase(),{distros:i}=r;t.name=i.find(a=>o.indexOf(vJ(a))>=0)||i[0];let s=vJ(t.name);t.version=zr([Yqe,"access",a=>a[s],"optionalCall",a=>a(o)])}catch{}return t}function Zqe(){return process.env.VERCEL?{"cloud.provider":"vercel","cloud.region":process.env.VERCEL_REGION}:process.env.AWS_REGION?{"cloud.provider":"aws","cloud.region":process.env.AWS_REGION,"cloud.platform":process.env.AWS_EXECUTION_ENV}:process.env.GCP_PROJECT?{"cloud.provider":"gcp"}:process.env.ALIYUN_REGION_ID?{"cloud.provider":"alibaba_cloud","cloud.region":process.env.ALIYUN_REGION_ID}:process.env.WEBSITE_SITE_NAME&&process.env.REGION_NAME?{"cloud.provider":"azure","cloud.region":process.env.REGION_NAME}:process.env.IBM_CLOUD_REGION?{"cloud.provider":"ibm_cloud","cloud.region":process.env.IBM_CLOUD_REGION}:process.env.TENCENTCLOUD_REGION?{"cloud.provider":"tencent_cloud","cloud.region":process.env.TENCENTCLOUD_REGION,"cloud.account.id":process.env.TENCENTCLOUD_APPID,"cloud.availability_zone":process.env.TENCENTCLOUD_ZONE}:process.env.NETLIFY?{"cloud.provider":"netlify"}:process.env.FLY_REGION?{"cloud.provider":"fly.io","cloud.region":process.env.FLY_REGION}:process.env.DYNO?{"cloud.provider":"heroku"}:void 0}Hs.getAppContext=DJ;Hs.getDeviceContext=GJ;Hs.nodeContextIntegration=qqe;Hs.readDirAsync=LJ;Hs.readFileAsync=MJ});var On=c(AM=>{Object.defineProperty(AM,"__esModule",{value:!0});var zqe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;AM.DEBUG_BUILD=zqe});var OM=c(Fs=>{var{_optionalChain:Mm}=b();Object.defineProperty(Fs,"__esModule",{value:!0});var Jqe=m("node:fs"),$qe=m("node:readline"),Qqe=W(),pi=b(),Xd=On(),RM=new pi.LRUMap(10),wJ=new pi.LRUMap(20),eje=7,tje="ContextLines",VJ=1e3,BJ=1e4;function rje(t,e,r){let n=t.get(e);return n===void 0?(t.set(e,r),r):n}function nje(t){return!!(t.startsWith("node:")||t.endsWith(".min.js")||t.endsWith(".min.cjs")||t.endsWith(".min.mjs")||t.startsWith("data:"))}function oje(t){return t.lineno!==void 0&&t.lineno>BJ||t.colno!==void 0&&t.colno>VJ}function ije(t,e){let r=RM.get(t);if(r===void 0)return!1;for(let n=e[0];n<=e[1];n++)if(r[n]===void 0)return!1;return!0}function sje(t,e){if(!t.length)return[];let r=0,n=t[0];if(typeof n!="number")return[];let o=xJ(n,e),i=[];for(;;){if(r===t.length-1){i.push(o);break}let s=t[r+1];if(typeof s!="number")break;s<=o[1]?o[1]=s+e:(i.push(o),o=xJ(s,e)),r++}return i}function aje(t,e,r){return new Promise((n,o)=>{let i=Jqe.createReadStream(t),s=$qe.createInterface({input:i}),a=0,u=0,l=e[u];if(l===void 0){n();return}let d=l[0],p=l[1];function _(f){wJ.set(t,1),Xd.DEBUG_BUILD&&pi.logger.error(`Failed to read file: ${t}. Error: ${f}`),s.close(),s.removeAllListeners(),n()}i.on("error",_),s.on("error",_),s.on("close",n),s.on("line",f=>{if(a++,!(a<d)&&(r[a]=pi.snipLine(f,0),a>=p)){if(u===e.length-1){s.close(),s.removeAllListeners();return}u++;let g=e[u];if(g===void 0){s.close(),s.removeAllListeners();return}d=g[0],p=g[1]}})})}async function uje(t,e){let r={};if(e>0&&Mm([t,"access",i=>i.exception,"optionalAccess",i=>i.values])){for(let i of t.exception.values)if(Mm([i,"access",s=>s.stacktrace,"optionalAccess",s=>s.frames,"optionalAccess",s=>s.length]))for(let s=i.stacktrace.frames.length-1;s>=0;s--){let a=i.stacktrace.frames[s],u=Mm([a,"optionalAccess",d=>d.filename]);if(!a||typeof u!="string"||typeof a.lineno!="number"||nje(u)||oje(a))continue;r[u]||(r[u]=[]),r[u].push(a.lineno)}}let n=Object.keys(r);if(n.length==0)return t;let o=[];for(let i of n){if(wJ.get(i))continue;let s=r[i];if(!s)continue;s.sort((l,d)=>l-d);let a=sje(s,e);if(a.every(l=>ije(i,l)))continue;let u=rje(RM,i,{});o.push(aje(i,a,u))}if(await Promise.all(o).catch(()=>{Xd.DEBUG_BUILD&&pi.logger.log("Failed to read one or more source files and resolve context lines")}),e>0&&Mm([t,"access",i=>i.exception,"optionalAccess",i=>i.values]))for(let i of t.exception.values)i.stacktrace&&i.stacktrace.frames&&i.stacktrace.frames.length>0&&cje(i.stacktrace.frames,e,RM);return t}function cje(t,e,r){for(let n of t)if(n.filename&&n.context_line===void 0&&typeof n.lineno=="number"){let o=r.get(n.filename);if(o===void 0)continue;qJ(n.lineno,n,e,o)}}function UJ(t){delete t.pre_context,delete t.context_line,delete t.post_context}function qJ(t,e,r,n){if(e.lineno===void 0||n===void 0){Xd.DEBUG_BUILD&&pi.logger.error("Cannot resolve context for frame with no lineno or file contents");return}e.pre_context=[];for(let i=jJ(t,r);i<t;i++){let s=n[i];if(s===void 0){UJ(e),Xd.DEBUG_BUILD&&pi.logger.error(`Could not find line ${i} in file ${e.filename}`);return}e.pre_context.push(s)}if(n[t]===void 0){UJ(e),Xd.DEBUG_BUILD&&pi.logger.error(`Could not find line ${t} in file ${e.filename}`);return}e.context_line=n[t];let o=HJ(t,r);e.post_context=[];for(let i=t+1;i<=o;i++){let s=n[i];if(s===void 0)break;e.post_context.push(s)}}function jJ(t,e){return Math.max(1,t-e)}function HJ(t,e){return t+e}function xJ(t,e){return[jJ(t,e),HJ(t,e)]}var FJ=(t={})=>{let e=t.frameContextLines!==void 0?t.frameContextLines:eje;return{name:tje,processEvent(r){return uje(r,e)}}},lje=Qqe.defineIntegration(FJ);Fs.MAX_CONTEXTLINES_COLNO=VJ;Fs.MAX_CONTEXTLINES_LINENO=BJ;Fs._contextLinesIntegration=FJ;Fs.addContextToFrame=qJ;Fs.contextLinesIntegration=lje});var Dm=c(Lm=>{Object.defineProperty(Lm,"__esModule",{value:!0});var dje=b(),kJ=dje.parseSemver(process.versions.node),pje=kJ.major;Lm.NODE_MAJOR=pje;Lm.NODE_VERSION=kJ});var bM=c(xu=>{Object.defineProperty(xu,"__esModule",{value:!0});var _je="__SENTRY_ERROR_LOCAL_VARIABLES__";function fje(t,e,r){let n=0,o=5,i=0;return setInterval(()=>{i===0?n>t&&(o*=2,r(o),o>86400&&(o=86400),i=o):(i-=1,i===0&&e()),n=0},1e3).unref(),()=>{n+=1}}function IM(t){return t!==void 0&&(t.length===0||t==="?"||t==="<anonymous>")}function gje(t,e){return t===e||IM(t)&&IM(e)}xu.LOCAL_VARIABLES_KEY=_je;xu.createRateLimiter=fje;xu.functionNamesMatch=gje;xu.isAnonymous=IM});var XJ=c(Um=>{var{_optionalChain:WJ}=b();Object.defineProperty(Um,"__esModule",{value:!0});var Eje=m("node:worker_threads"),hje=W(),Gm=b(),Zd=bM(),KJ="LyohIEBzZW50cnkvbm9kZSA4LjM3LjEgKGYyN2VlNGUpIHwgaHR0cHM6Ly9naXRodWIuY29tL2dldHNlbnRyeS9zZW50cnktamF2YXNjcmlwdCAqLwppbXBvcnR7U2Vzc2lvbiBhcyBlfWZyb20ibm9kZTppbnNwZWN0b3IvcHJvbWlzZXMiO2ltcG9ydHt3b3JrZXJEYXRhIGFzIHR9ZnJvbSJub2RlOndvcmtlcl90aHJlYWRzIjtjb25zdCBuPSI4LjM3LjEiLG89Z2xvYmFsVGhpcztjb25zdCBpPSJ1bmRlZmluZWQiPT10eXBlb2YgX19TRU5UUllfREVCVUdfX3x8X19TRU5UUllfREVCVUdfXyxhPVsiZGVidWciLCJpbmZvIiwid2FybiIsImVycm9yIiwibG9nIiwiYXNzZXJ0IiwidHJhY2UiXSxzPXt9O2Z1bmN0aW9uIGMoZSl7aWYoISgiY29uc29sZSJpbiBvKSlyZXR1cm4gZSgpO2NvbnN0IHQ9by5jb25zb2xlLG49e30saT1PYmplY3Qua2V5cyhzKTtpLmZvckVhY2goKGU9Pntjb25zdCBvPXNbZV07bltlXT10W2VdLHRbZV09b30pKTt0cnl7cmV0dXJuIGUoKX1maW5hbGx5e2kuZm9yRWFjaCgoZT0+e3RbZV09bltlXX0pKX19IWZ1bmN0aW9uKGUsdCxpKXtjb25zdCBhPW8scz1hLl9fU0VOVFJZX189YS5fX1NFTlRSWV9ffHx7fSxjPXNbbl09c1tuXXx8e307Y1tlXXx8KGNbZV09dCgpKX0oImxvZ2dlciIsKGZ1bmN0aW9uKCl7bGV0IGU9ITE7Y29uc3QgdD17ZW5hYmxlOigpPT57ZT0hMH0sZGlzYWJsZTooKT0+e2U9ITF9LGlzRW5hYmxlZDooKT0+ZX07cmV0dXJuIGk/YS5mb3JFYWNoKChuPT57dFtuXT0oLi4udCk9PntlJiZjKCgoKT0+e28uY29uc29sZVtuXShgU2VudHJ5IExvZ2dlciBbJHtufV06YCwuLi50KX0pKX19KSk6YS5mb3JFYWNoKChlPT57dFtlXT0oKT0+e319KSksdH0pKTtjb25zdCByPSJfX1NFTlRSWV9FUlJPUl9MT0NBTF9WQVJJQUJMRVNfXyI7Y29uc3QgdT10O2Z1bmN0aW9uIGwoLi4uZSl7dS5kZWJ1ZyYmYygoKCk9PmNvbnNvbGUubG9nKCJbTG9jYWxWYXJpYWJsZXMgV29ya2VyXSIsLi4uZSkpKX1hc3luYyBmdW5jdGlvbiBmKGUsdCxuLG8pe2NvbnN0IGk9YXdhaXQgZS5wb3N0KCJSdW50aW1lLmdldFByb3BlcnRpZXMiLHtvYmplY3RJZDp0LG93blByb3BlcnRpZXM6ITB9KTtvW25dPWkucmVzdWx0LmZpbHRlcigoZT0+Imxlbmd0aCIhPT1lLm5hbWUmJiFpc05hTihwYXJzZUludChlLm5hbWUsMTApKSkpLnNvcnQoKChlLHQpPT5wYXJzZUludChlLm5hbWUsMTApLXBhcnNlSW50KHQubmFtZSwxMCkpKS5tYXAoKGU9PmUudmFsdWU/LnZhbHVlKSl9YXN5bmMgZnVuY3Rpb24gZyhlLHQsbixvKXtjb25zdCBpPWF3YWl0IGUucG9zdCgiUnVudGltZS5nZXRQcm9wZXJ0aWVzIix7b2JqZWN0SWQ6dCxvd25Qcm9wZXJ0aWVzOiEwfSk7b1tuXT1pLnJlc3VsdC5tYXAoKGU9PltlLm5hbWUsZS52YWx1ZT8udmFsdWVdKSkucmVkdWNlKCgoZSxbdCxuXSk9PihlW3RdPW4sZSkpLHt9KX1mdW5jdGlvbiBkKGUsdCl7ZS52YWx1ZSYmKCJ2YWx1ZSJpbiBlLnZhbHVlP3ZvaWQgMD09PWUudmFsdWUudmFsdWV8fG51bGw9PT1lLnZhbHVlLnZhbHVlP3RbZS5uYW1lXT1gPCR7ZS52YWx1ZS52YWx1ZX0+YDp0W2UubmFtZV09ZS52YWx1ZS52YWx1ZToiZGVzY3JpcHRpb24iaW4gZS52YWx1ZSYmImZ1bmN0aW9uIiE9PWUudmFsdWUudHlwZT90W2UubmFtZV09YDwke2UudmFsdWUuZGVzY3JpcHRpb259PmA6InVuZGVmaW5lZCI9PT1lLnZhbHVlLnR5cGUmJih0W2UubmFtZV09Ijx1bmRlZmluZWQ+IikpfWFzeW5jIGZ1bmN0aW9uIGIoZSx0KXtjb25zdCBuPWF3YWl0IGUucG9zdCgiUnVudGltZS5nZXRQcm9wZXJ0aWVzIix7b2JqZWN0SWQ6dCxvd25Qcm9wZXJ0aWVzOiEwfSksbz17fTtmb3IoY29uc3QgdCBvZiBuLnJlc3VsdClpZih0Py52YWx1ZT8ub2JqZWN0SWQmJiJBcnJheSI9PT10Py52YWx1ZS5jbGFzc05hbWUpe2NvbnN0IG49dC52YWx1ZS5vYmplY3RJZDthd2FpdCBmKGUsbix0Lm5hbWUsbyl9ZWxzZSBpZih0Py52YWx1ZT8ub2JqZWN0SWQmJiJPYmplY3QiPT09dD8udmFsdWU/LmNsYXNzTmFtZSl7Y29uc3Qgbj10LnZhbHVlLm9iamVjdElkO2F3YWl0IGcoZSxuLHQubmFtZSxvKX1lbHNlIHQ/LnZhbHVlJiZkKHQsbyk7cmV0dXJuIG99bGV0IHA7KGFzeW5jIGZ1bmN0aW9uKCl7Y29uc3QgdD1uZXcgZTt0LmNvbm5lY3RUb01haW5UaHJlYWQoKSxsKCJDb25uZWN0ZWQgdG8gbWFpbiB0aHJlYWQiKTtsZXQgbj0hMTt0Lm9uKCJEZWJ1Z2dlci5yZXN1bWVkIiwoKCk9PntuPSExfSkpLHQub24oIkRlYnVnZ2VyLnBhdXNlZCIsKGU9PntuPSEwLGFzeW5jIGZ1bmN0aW9uKGUse3JlYXNvbjp0LGRhdGE6e29iamVjdElkOm59LGNhbGxGcmFtZXM6b30pe2lmKCJleGNlcHRpb24iIT09dCYmInByb21pc2VSZWplY3Rpb24iIT09dClyZXR1cm47aWYocD8uKCksbnVsbD09bilyZXR1cm47Y29uc3QgaT1bXTtmb3IobGV0IHQ9MDt0PG8ubGVuZ3RoO3QrKyl7Y29uc3R7c2NvcGVDaGFpbjpuLGZ1bmN0aW9uTmFtZTphLHRoaXM6c309b1t0XSxjPW4uZmluZCgoZT0+ImxvY2FsIj09PWUudHlwZSkpLHI9Imdsb2JhbCIhPT1zLmNsYXNzTmFtZSYmcy5jbGFzc05hbWU/YCR7cy5jbGFzc05hbWV9LiR7YX1gOmE7aWYodm9pZCAwPT09Yz8ub2JqZWN0Lm9iamVjdElkKWlbdF09e2Z1bmN0aW9uOnJ9O2Vsc2V7Y29uc3Qgbj1hd2FpdCBiKGUsYy5vYmplY3Qub2JqZWN0SWQpO2lbdF09e2Z1bmN0aW9uOnIsdmFyczpufX19YXdhaXQgZS5wb3N0KCJSdW50aW1lLmNhbGxGdW5jdGlvbk9uIix7ZnVuY3Rpb25EZWNsYXJhdGlvbjpgZnVuY3Rpb24oKSB7IHRoaXMuJHtyfSA9IHRoaXMuJHtyfSB8fCAke0pTT04uc3RyaW5naWZ5KGkpfTsgfWAsc2lsZW50OiEwLG9iamVjdElkOm59KSxhd2FpdCBlLnBvc3QoIlJ1bnRpbWUucmVsZWFzZU9iamVjdCIse29iamVjdElkOm59KX0odCxlLnBhcmFtcykudGhlbigoYXN5bmMoKT0+e24mJmF3YWl0IHQucG9zdCgiRGVidWdnZXIucmVzdW1lIil9KSwoYXN5bmMgZT0+e24mJmF3YWl0IHQucG9zdCgiRGVidWdnZXIucmVzdW1lIil9KSl9KSksYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5lbmFibGUiKTtjb25zdCBvPSExIT09dS5jYXB0dXJlQWxsRXhjZXB0aW9ucztpZihhd2FpdCB0LnBvc3QoIkRlYnVnZ2VyLnNldFBhdXNlT25FeGNlcHRpb25zIix7c3RhdGU6bz8iYWxsIjoidW5jYXVnaHQifSksbyl7Y29uc3QgZT11Lm1heEV4Y2VwdGlvbnNQZXJTZWNvbmR8fDUwO3A9ZnVuY3Rpb24oZSx0LG4pe2xldCBvPTAsaT01LGE9MDtyZXR1cm4gc2V0SW50ZXJ2YWwoKCgpPT57MD09PWE/bz5lJiYoaSo9MixuKGkpLGk+ODY0MDAmJihpPTg2NDAwKSxhPWkpOihhLT0xLDA9PT1hJiZ0KCkpLG89MH0pLDFlMykudW5yZWYoKSwoKT0+e28rPTF9fShlLChhc3luYygpPT57bCgiUmF0ZS1saW1pdCBsaWZ0ZWQuIiksYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5zZXRQYXVzZU9uRXhjZXB0aW9ucyIse3N0YXRlOiJhbGwifSl9KSwoYXN5bmMgZT0+e2woYFJhdGUtbGltaXQgZXhjZWVkZWQuIERpc2FibGluZyBjYXB0dXJpbmcgb2YgY2F1Z2h0IGV4Y2VwdGlvbnMgZm9yICR7ZX0gc2Vjb25kcy5gKSxhd2FpdCB0LnBvc3QoIkRlYnVnZ2VyLnNldFBhdXNlT25FeGNlcHRpb25zIix7c3RhdGU6InVuY2F1Z2h0In0pfSkpfX0pKCkuY2F0Y2goKGU9PntsKCJGYWlsZWQgdG8gc3RhcnQgZGVidWdnZXIiLGUpfSkpLHNldEludGVydmFsKCgoKT0+e30pLDFlNCk7";function YJ(...t){Gm.logger.log("[LocalVariables]",...t)}var mje=hje.defineIntegration((t={})=>{function e(i,s){let a=(WJ([i,"access",u=>u.stacktrace,"optionalAccess",u=>u.frames])||[]).filter(u=>u.function!=="new Promise");for(let u=0;u<a.length;u++){let l=a.length-u-1,d=s[u],p=a[l];if(!p||!d)break;d.vars===void 0||p.in_app===!1||!Zd.functionNamesMatch(p.function,d.function)||(p.vars=d.vars)}}function r(i,s){if(s.originalException&&typeof s.originalException=="object"&&Zd.LOCAL_VARIABLES_KEY in s.originalException&&Array.isArray(s.originalException[Zd.LOCAL_VARIABLES_KEY])){for(let a of WJ([i,"access",u=>u.exception,"optionalAccess",u=>u.values])||[])e(a,s.originalException[Zd.LOCAL_VARIABLES_KEY]);s.originalException[Zd.LOCAL_VARIABLES_KEY]=void 0}return i}async function n(){let i=await import("node:inspector");i.url()||i.open(0)}function o(i){let s=new Eje.Worker(new URL(`data:application/javascript;base64,${KJ}`),{workerData:i,execArgv:[]});process.on("exit",()=>{s.terminate()}),s.once("error",a=>{YJ("Worker error",a)}),s.once("exit",a=>{YJ("Worker exit",a)}),s.unref()}return{name:"LocalVariablesAsync",setup(i){if(!i.getOptions().includeLocalVariables)return;let a={...t,debug:Gm.logger.isEnabled()};n().then(()=>{try{o(a)}catch(u){Gm.logger.error("Failed to start worker",u)}},u=>{Gm.logger.error("Failed to start inspector",u)})},processEvent(i,s){return r(i,s)}}});Um.base64WorkerScript=KJ;Um.localVariablesAsyncIntegration=mje});var $J=c(wu=>{var{_optionalChain:tt}=b();Object.defineProperty(wu,"__esModule",{value:!0});var zJ=W(),zd=b(),Tje=Dm(),ZJ=bM();function yM(t){if(t!==void 0)return t.slice(-10).reduce((e,r)=>`${e},${r.function},${r.lineno},${r.colno}`,"")}function JJ(t,e){if(e!==void 0)return yM(t(e,1))}function vM(t){let e=[],r=!1;function n(s){e=[],!r&&(r=!0,t(s))}e.push(n);function o(s){e.push(s)}function i(s){let a=e.pop()||n;try{a(s)}catch{n(s)}}return{add:o,next:i}}var PM=class t{constructor(e){this._session=e}static async create(e){if(e)return e;let r=await import("node:inspector");return new t(new r.Session)}configureAndConnect(e,r){this._session.connect(),this._session.on("Debugger.paused",n=>{e(n,()=>{this._session.post("Debugger.resume")})}),this._session.post("Debugger.enable"),this._session.post("Debugger.setPauseOnExceptions",{state:r?"all":"uncaught"})}setPauseOnExceptions(e){this._session.post("Debugger.setPauseOnExceptions",{state:e?"all":"uncaught"})}getLocalVariables(e,r){this._getProperties(e,n=>{let{add:o,next:i}=vM(r);for(let s of n)if(tt([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.objectId])&&tt([s,"optionalAccess",a=>a.value,"access",a=>a.className])==="Array"){let a=s.value.objectId;o(u=>this._unrollArray(a,s.name,u,i))}else if(tt([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.objectId])&&tt([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.className])==="Object"){let a=s.value.objectId;o(u=>this._unrollObject(a,s.name,u,i))}else tt([s,"optionalAccess",a=>a.value])&&o(a=>this._unrollOther(s,a,i));i({})})}_getProperties(e,r){this._session.post("Runtime.getProperties",{objectId:e,ownProperties:!0},(n,o)=>{r(n?[]:o.result)})}_unrollArray(e,r,n,o){this._getProperties(e,i=>{n[r]=i.filter(s=>s.name!=="length"&&!isNaN(parseInt(s.name,10))).sort((s,a)=>parseInt(s.name,10)-parseInt(a.name,10)).map(s=>tt([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.value])),o(n)})}_unrollObject(e,r,n,o){this._getProperties(e,i=>{n[r]=i.map(s=>[s.name,tt([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.value])]).reduce((s,[a,u])=>(s[a]=u,s),{}),o(n)})}_unrollOther(e,r,n){e.value&&("value"in e.value?e.value.value===void 0||e.value.value===null?r[e.name]=`<${e.value.value}>`:r[e.name]=e.value.value:"description"in e.value&&e.value.type!=="function"?r[e.name]=`<${e.value.description}>`:e.value.type==="undefined"&&(r[e.name]="<undefined>")),n(r)}},Sje="LocalVariables",Aje=(t={},e)=>{let r=new zd.LRUMap(20),n,o=!1;function i(a){let u=yM(tt([a,"optionalAccess",p=>p.stacktrace,"optionalAccess",p=>p.frames]));if(u===void 0)return;let l=r.remove(u);if(l===void 0)return;let d=(tt([a,"access",p=>p.stacktrace,"optionalAccess",p=>p.frames])||[]).filter(p=>p.function!=="new Promise");for(let p=0;p<d.length;p++){let _=d.length-p-1,f=l[p],g=d[_];if(!g||!f)break;f.vars===void 0||g.in_app===!1||!ZJ.functionNamesMatch(g.function,f.function)||(g.vars=f.vars)}}function s(a){for(let u of tt([a,"optionalAccess",l=>l.exception,"optionalAccess",l=>l.values])||[])i(u);return a}return{name:Sje,setupOnce(){let a=zJ.getClient(),u=tt([a,"optionalAccess",d=>d.getOptions,"call",d=>d()]);if(!tt([u,"optionalAccess",d=>d.includeLocalVariables]))return;if(Tje.NODE_MAJOR<18){zd.logger.log("The `LocalVariables` integration is only supported on Node >= v18.");return}PM.create(e).then(d=>{function p(f,{params:{reason:g,data:E,callFrames:S}},v){if(g!=="exception"&&g!=="promiseRejection"){v();return}tt([n,"optionalCall",N=>N()]);let M=JJ(f,tt([E,"optionalAccess",N=>N.description]));if(M==null){v();return}let{add:D,next:L}=vM(N=>{r.set(M,N),v()});for(let N=0;N<Math.min(S.length,5);N++){let{scopeChain:G,functionName:w,this:te}=S[N],J=G.find(V=>V.type==="local"),ke=te.className==="global"||!te.className?w:`${te.className}.${w}`;if(tt([J,"optionalAccess",V=>V.object,"access",V=>V.objectId])===void 0)D(V=>{V[N]={function:ke},L(V)});else{let V=J.object.objectId;D(H=>tt([d,"optionalAccess",se=>se.getLocalVariables,"call",se=>se(V,z=>{H[N]={function:ke,vars:z},L(H)})]))}}L([])}let _=t.captureAllExceptions!==!1;if(d.configureAndConnect((f,g)=>p(u.stackParser,f,g),_),_){let f=t.maxExceptionsPerSecond||50;n=ZJ.createRateLimiter(f,()=>{zd.logger.log("Local variables rate-limit lifted."),tt([d,"optionalAccess",g=>g.setPauseOnExceptions,"call",g=>g(!0)])},g=>{zd.logger.log(`Local variables rate-limit exceeded. Disabling capturing of caught exceptions for ${g} seconds.`),tt([d,"optionalAccess",E=>E.setPauseOnExceptions,"call",E=>E(!1)])})}o=!0},d=>{zd.logger.log("The `LocalVariables` integration failed to start.",d)})},processEvent(a){return o?s(a):a},_getCachedFramesCount(){return r.size},_getFirstCachedFrame(){return r.values()[0]}}},Rje=zJ.defineIntegration(Aje);wu.createCallbackList=vM;wu.hashFrames=yM;wu.hashFromStack=JJ;wu.localVariablesSyncIntegration=Rje});var CM=c(NM=>{Object.defineProperty(NM,"__esModule",{value:!0});var Oje=Dm(),Ije=XJ(),bje=$J(),Pje=(t={})=>Oje.NODE_VERSION.major<19?bje.localVariablesSyncIntegration(t):Ije.localVariablesAsyncIntegration(t);NM.localVariablesIntegration=Pje});var Vu=c(MM=>{Object.defineProperty(MM,"__esModule",{value:!0});function yje(){return typeof m<"u"}MM.isCjs=yje});var GM=c(DM=>{Object.defineProperty(DM,"__esModule",{value:!0});var QJ=m("node:fs"),e$=m("node:path"),vje=W(),Nje=b(),Cje=On(),Mje=Vu(),LM,t$="Modules",Lje=()=>Mje.isCjs()?{name:t$,processEvent(t){return t.modules={...t.modules,...xje()},t}}:(Cje.DEBUG_BUILD&&Nje.logger.warn("modulesIntegration only works in CommonJS (CJS) environments. Remove this integration if you are using ESM."),{name:t$}),Dje=vje.defineIntegration(Lje);function Gje(){try{return m.cache?Object.keys(m.cache):[]}catch{return[]}}function Uje(){let t=m.main&&m.main.paths||[],e=Gje(),r={},n={};return e.forEach(o=>{let i=o,s=()=>{let a=i;if(i=e$.dirname(a),!i||a===i||n[a])return;if(t.indexOf(i)<0)return s();let u=e$.join(a,"package.json");if(n[a]=!0,!QJ.existsSync(u))return s();try{let l=JSON.parse(QJ.readFileSync(u,"utf8"));r[l.name]=l.version}catch{}};s()}),r}function xje(){return LM||(LM=Uje()),LM}DM.modulesIntegration=Dje});var wM=c(xM=>{Object.defineProperty(xM,"__esModule",{value:!0});var wje=W(),xm=b(),UM=On(),Vje=2e3;function Bje(t){xm.consoleSandbox(()=>{console.error(t)});let e=wje.getClient();if(e===void 0){UM.DEBUG_BUILD&&xm.logger.warn("No NodeClient was defined, we are exiting the process now."),global.process.exit(1);return}let r=e.getOptions(),n=r&&r.shutdownTimeout&&r.shutdownTimeout>0&&r.shutdownTimeout||Vje;e.close(n).then(o=>{o||UM.DEBUG_BUILD&&xm.logger.warn("We reached the timeout for emptying the request buffer, still exiting now!"),global.process.exit(1)},o=>{UM.DEBUG_BUILD&&xm.logger.error(o)})}xM.logAndExitProcess=Bje});var BM=c(wm=>{Object.defineProperty(wm,"__esModule",{value:!0});var VM=W(),qje=b(),jje=On(),r$=wM(),Hje="OnUncaughtException",Fje=VM.defineIntegration((t={})=>{let e={exitEvenIfOtherHandlersAreRegistered:!1,...t};return{name:Hje,setup(r){global.process.on("uncaughtException",n$(r,e))}}});function n$(t,e){let n=!1,o=!1,i=!1,s,a=t.getOptions();return Object.assign(u=>{let l=r$.logAndExitProcess;e.onFatalError?l=e.onFatalError:a.onFatalError&&(l=a.onFatalError);let p=global.process.listeners("uncaughtException").filter(f=>f.name!=="domainUncaughtExceptionClear"&&f.tag!=="sentry_tracingErrorCallback"&&f._errorHandler!==!0).length===0,_=e.exitEvenIfOtherHandlersAreRegistered||p;n?_&&(i?(jje.DEBUG_BUILD&&qje.logger.warn("uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown"),r$.logAndExitProcess(u)):o||(o=!0,setTimeout(()=>{i||(i=!0,l(s,u))},2e3))):(s=u,n=!0,VM.getClient()===t&&VM.captureException(u,{originalException:u,captureContext:{level:"fatal"},mechanism:{handled:!1,type:"onuncaughtexception"}}),!i&&_&&(i=!0,l(u)))},{_errorHandler:!0})}wm.makeErrorHandler=n$;wm.onUncaughtExceptionIntegration=Fje});var jM=c(Vm=>{Object.defineProperty(Vm,"__esModule",{value:!0});var qM=W(),o$=b(),kje=wM(),Wje="OnUnhandledRejection",Yje=(t={})=>{let e=t.mode||"warn";return{name:Wje,setup(r){global.process.on("unhandledRejection",i$(r,{mode:e}))}}},Kje=qM.defineIntegration(Yje);function i$(t,e){return function(n,o){qM.getClient()===t&&(qM.captureException(n,{originalException:o,captureContext:{extra:{unhandledPromiseRejection:!0}},mechanism:{handled:!1,type:"onunhandledrejection"}}),Xje(n,e))}}function Xje(t,e){let r="This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:";e.mode==="warn"?o$.consoleSandbox(()=>{console.warn(r),console.error(t&&t.stack?t.stack:t)}):e.mode==="strict"&&(o$.consoleSandbox(()=>{console.warn(r)}),kje.logAndExitProcess(t))}Vm.makeUnhandledPromiseHandler=i$;Vm.onUnhandledRejectionIntegration=Kje});var u$=c(Bm=>{var{_optionalChain:Zje,_optionalChainDelete:s$}=b();Object.defineProperty(Bm,"__esModule",{value:!0});var zje=m("node:worker_threads"),_i=W(),kM=b(),HM=Dm(),a$="LyohIEBzZW50cnkvbm9kZSA4LjM3LjEgKGYyN2VlNGUpIHwgaHR0cHM6Ly9naXRodWIuY29tL2dldHNlbnRyeS9zZW50cnktamF2YXNjcmlwdCAqLwppbXBvcnR7U2Vzc2lvbiBhcyB0fWZyb20ibm9kZTppbnNwZWN0b3IiO2ltcG9ydHtwYXJlbnRQb3J0IGFzIG4sd29ya2VyRGF0YSBhcyBlfWZyb20ibm9kZTp3b3JrZXJfdGhyZWFkcyI7aW1wb3J0e3Bvc2l4IGFzIHIsc2VwIGFzIG99ZnJvbSJub2RlOnBhdGgiO2ltcG9ydCphcyBzIGZyb20ibm9kZTpodHRwIjtpbXBvcnQqYXMgaSBmcm9tIm5vZGU6aHR0cHMiO2ltcG9ydHtSZWFkYWJsZSBhcyBjfWZyb20ibm9kZTpzdHJlYW0iO2ltcG9ydHtjcmVhdGVHemlwIGFzIHV9ZnJvbSJub2RlOnpsaWIiO2ltcG9ydCphcyBhIGZyb20ibm9kZTpuZXQiO2ltcG9ydCphcyBmIGZyb20ibm9kZTp0bHMiO2NvbnN0IGg9T2JqZWN0LnByb3RvdHlwZS50b1N0cmluZztmdW5jdGlvbiBwKHQsbil7cmV0dXJuIGguY2FsbCh0KT09PWBbb2JqZWN0ICR7bn1dYH1mdW5jdGlvbiBsKHQpe3JldHVybiBwKHQsIlN0cmluZyIpfWZ1bmN0aW9uIGQodCl7cmV0dXJuIHAodCwiT2JqZWN0Iil9ZnVuY3Rpb24gbSh0KXtyZXR1cm4gQm9vbGVhbih0JiZ0LnRoZW4mJiJmdW5jdGlvbiI9PXR5cGVvZiB0LnRoZW4pfWZ1bmN0aW9uIHkodCxuKXt0cnl7cmV0dXJuIHQgaW5zdGFuY2VvZiBufWNhdGNoKHQpe3JldHVybiExfX1jb25zdCBnPSI4LjM3LjEiLGI9Z2xvYmFsVGhpcztmdW5jdGlvbiBfKHQsbixlKXtjb25zdCByPWIsbz1yLl9fU0VOVFJZX189ci5fX1NFTlRSWV9ffHx7fSxzPW9bZ109b1tnXXx8e307cmV0dXJuIHNbdF18fChzW3RdPW4oKSl9Y29uc3Qgdj1iLHc9ODA7ZnVuY3Rpb24gUyh0LG4pe2NvbnN0IGU9dCxyPVtdO2lmKCFlfHwhZS50YWdOYW1lKXJldHVybiIiO2lmKHYuSFRNTEVsZW1lbnQmJmUgaW5zdGFuY2VvZiBIVE1MRWxlbWVudCYmZS5kYXRhc2V0KXtpZihlLmRhdGFzZXQuc2VudHJ5Q29tcG9uZW50KXJldHVybiBlLmRhdGFzZXQuc2VudHJ5Q29tcG9uZW50O2lmKGUuZGF0YXNldC5zZW50cnlFbGVtZW50KXJldHVybiBlLmRhdGFzZXQuc2VudHJ5RWxlbWVudH1yLnB1c2goZS50YWdOYW1lLnRvTG93ZXJDYXNlKCkpO2NvbnN0IG89biYmbi5sZW5ndGg/bi5maWx0ZXIoKHQ9PmUuZ2V0QXR0cmlidXRlKHQpKSkubWFwKCh0PT5bdCxlLmdldEF0dHJpYnV0ZSh0KV0pKTpudWxsO2lmKG8mJm8ubGVuZ3RoKW8uZm9yRWFjaCgodD0+e3IucHVzaChgWyR7dFswXX09IiR7dFsxXX0iXWApfSkpO2Vsc2V7ZS5pZCYmci5wdXNoKGAjJHtlLmlkfWApO2NvbnN0IHQ9ZS5jbGFzc05hbWU7aWYodCYmbCh0KSl7Y29uc3Qgbj10LnNwbGl0KC9ccysvKTtmb3IoY29uc3QgdCBvZiBuKXIucHVzaChgLiR7dH1gKX19Y29uc3Qgcz1bImFyaWEtbGFiZWwiLCJ0eXBlIiwibmFtZSIsInRpdGxlIiwiYWx0Il07Zm9yKGNvbnN0IHQgb2Ygcyl7Y29uc3Qgbj1lLmdldEF0dHJpYnV0ZSh0KTtuJiZyLnB1c2goYFske3R9PSIke259Il1gKX1yZXR1cm4gci5qb2luKCIiKX1jb25zdCAkPSJ1bmRlZmluZWQiPT10eXBlb2YgX19TRU5UUllfREVCVUdfX3x8X19TRU5UUllfREVCVUdfXyxFPVsiZGVidWciLCJpbmZvIiwid2FybiIsImVycm9yIiwibG9nIiwiYXNzZXJ0IiwidHJhY2UiXSx4PXt9O2Z1bmN0aW9uIE4odCl7aWYoISgiY29uc29sZSJpbiBiKSlyZXR1cm4gdCgpO2NvbnN0IG49Yi5jb25zb2xlLGU9e30scj1PYmplY3Qua2V5cyh4KTtyLmZvckVhY2goKHQ9Pntjb25zdCByPXhbdF07ZVt0XT1uW3RdLG5bdF09cn0pKTt0cnl7cmV0dXJuIHQoKX1maW5hbGx5e3IuZm9yRWFjaCgodD0+e25bdF09ZVt0XX0pKX19Y29uc3QgQz1fKCJsb2dnZXIiLChmdW5jdGlvbigpe2xldCB0PSExO2NvbnN0IG49e2VuYWJsZTooKT0+e3Q9ITB9LGRpc2FibGU6KCk9Pnt0PSExfSxpc0VuYWJsZWQ6KCk9PnR9O3JldHVybiAkP0UuZm9yRWFjaCgoZT0+e25bZV09KC4uLm4pPT57dCYmTigoKCk9PntiLmNvbnNvbGVbZV0oYFNlbnRyeSBMb2dnZXIgWyR7ZX1dOmAsLi4ubil9KSl9fSkpOkUuZm9yRWFjaCgodD0+e25bdF09KCk9Pnt9fSkpLG59KSk7ZnVuY3Rpb24gVCh0LG49ITEpe2NvbnN0e2hvc3Q6ZSxwYXRoOnIscGFzczpvLHBvcnQ6cyxwcm9qZWN0SWQ6aSxwcm90b2NvbDpjLHB1YmxpY0tleTp1fT10O3JldHVybmAke2N9Oi8vJHt1fSR7biYmbz9gOiR7b31gOiIifUAke2V9JHtzP2A6JHtzfWA6IiJ9LyR7cj9gJHtyfS9gOnJ9JHtpfWB9Y2xhc3MgayBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQsbj0id2FybiIpe3N1cGVyKHQpLHRoaXMubWVzc2FnZT10LHRoaXMubmFtZT1uZXcudGFyZ2V0LnByb3RvdHlwZS5jb25zdHJ1Y3Rvci5uYW1lLE9iamVjdC5zZXRQcm90b3R5cGVPZih0aGlzLG5ldy50YXJnZXQucHJvdG90eXBlKSx0aGlzLmxvZ0xldmVsPW59fWZ1bmN0aW9uIFIodCl7aWYoZnVuY3Rpb24odCl7c3dpdGNoKGguY2FsbCh0KSl7Y2FzZSJbb2JqZWN0IEVycm9yXSI6Y2FzZSJbb2JqZWN0IEV4Y2VwdGlvbl0iOmNhc2UiW29iamVjdCBET01FeGNlcHRpb25dIjpjYXNlIltvYmplY3QgV2ViQXNzZW1ibHkuRXhjZXB0aW9uXSI6cmV0dXJuITA7ZGVmYXVsdDpyZXR1cm4geSh0LEVycm9yKX19KHQpKXJldHVybnttZXNzYWdlOnQubWVzc2FnZSxuYW1lOnQubmFtZSxzdGFjazp0LnN0YWNrLC4uLmoodCl9O2lmKG49dCwidW5kZWZpbmVkIiE9dHlwZW9mIEV2ZW50JiZ5KG4sRXZlbnQpKXtjb25zdCBuPXt0eXBlOnQudHlwZSx0YXJnZXQ6RCh0LnRhcmdldCksY3VycmVudFRhcmdldDpEKHQuY3VycmVudFRhcmdldCksLi4uaih0KX07cmV0dXJuInVuZGVmaW5lZCIhPXR5cGVvZiBDdXN0b21FdmVudCYmeSh0LEN1c3RvbUV2ZW50KSYmKG4uZGV0YWlsPXQuZGV0YWlsKSxufXJldHVybiB0O3ZhciBufWZ1bmN0aW9uIEQodCl7dHJ5e3JldHVybiBuPXQsInVuZGVmaW5lZCIhPXR5cGVvZiBFbGVtZW50JiZ5KG4sRWxlbWVudCk/ZnVuY3Rpb24odCxuPXt9KXtpZighdClyZXR1cm4iPHVua25vd24+Ijt0cnl7bGV0IGU9dDtjb25zdCByPTUsbz1bXTtsZXQgcz0wLGk9MDtjb25zdCBjPSIgPiAiLHU9Yy5sZW5ndGg7bGV0IGE7Y29uc3QgZj1BcnJheS5pc0FycmF5KG4pP246bi5rZXlBdHRycyxoPSFBcnJheS5pc0FycmF5KG4pJiZuLm1heFN0cmluZ0xlbmd0aHx8dztmb3IoO2UmJnMrKzxyJiYoYT1TKGUsZiksISgiaHRtbCI9PT1hfHxzPjEmJmkrby5sZW5ndGgqdSthLmxlbmd0aD49aCkpOylvLnB1c2goYSksaSs9YS5sZW5ndGgsZT1lLnBhcmVudE5vZGU7cmV0dXJuIG8ucmV2ZXJzZSgpLmpvaW4oYyl9Y2F0Y2godCl7cmV0dXJuIjx1bmtub3duPiJ9fSh0KTpPYmplY3QucHJvdG90eXBlLnRvU3RyaW5nLmNhbGwodCl9Y2F0Y2godCl7cmV0dXJuIjx1bmtub3duPiJ9dmFyIG59ZnVuY3Rpb24gaih0KXtpZigib2JqZWN0Ij09dHlwZW9mIHQmJm51bGwhPT10KXtjb25zdCBuPXt9O2Zvcihjb25zdCBlIGluIHQpT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKHQsZSkmJihuW2VdPXRbZV0pO3JldHVybiBufXJldHVybnt9fWZ1bmN0aW9uIE8odCl7cmV0dXJuIEEodCxuZXcgTWFwKX1mdW5jdGlvbiBBKHQsbil7aWYoZnVuY3Rpb24odCl7aWYoIWQodCkpcmV0dXJuITE7dHJ5e2NvbnN0IG49T2JqZWN0LmdldFByb3RvdHlwZU9mKHQpLmNvbnN0cnVjdG9yLm5hbWU7cmV0dXJuIW58fCJPYmplY3QiPT09bn1jYXRjaCh0KXtyZXR1cm4hMH19KHQpKXtjb25zdCBlPW4uZ2V0KHQpO2lmKHZvaWQgMCE9PWUpcmV0dXJuIGU7Y29uc3Qgcj17fTtuLnNldCh0LHIpO2Zvcihjb25zdCBlIG9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eU5hbWVzKHQpKXZvaWQgMCE9PXRbZV0mJihyW2VdPUEodFtlXSxuKSk7cmV0dXJuIHJ9aWYoQXJyYXkuaXNBcnJheSh0KSl7Y29uc3QgZT1uLmdldCh0KTtpZih2b2lkIDAhPT1lKXJldHVybiBlO2NvbnN0IHI9W107cmV0dXJuIG4uc2V0KHQsciksdC5mb3JFYWNoKCh0PT57ci5wdXNoKEEodCxuKSl9KSkscn1yZXR1cm4gdH1jb25zdCBJPTUwLFA9Ij8iLFU9L2NhcHR1cmVNZXNzYWdlfGNhcHR1cmVFeGNlcHRpb24vO2Z1bmN0aW9uIE0odCl7cmV0dXJuIHRbdC5sZW5ndGgtMV18fHt9fWNvbnN0IEw9Ijxhbm9ueW1vdXM+Ijtjb25zdCBCPTFlMztmdW5jdGlvbiBHKCl7cmV0dXJuIERhdGUubm93KCkvQn1jb25zdCBKPWZ1bmN0aW9uKCl7Y29uc3R7cGVyZm9ybWFuY2U6dH09YjtpZighdHx8IXQubm93KXJldHVybiBHO2NvbnN0IG49RGF0ZS5ub3coKS10Lm5vdygpLGU9bnVsbD09dC50aW1lT3JpZ2luP246dC50aW1lT3JpZ2luO3JldHVybigpPT4oZSt0Lm5vdygpKS9CfSgpO2Z1bmN0aW9uIFkoKXtjb25zdCB0PWIsbj10LmNyeXB0b3x8dC5tc0NyeXB0bztsZXQgZT0oKT0+MTYqTWF0aC5yYW5kb20oKTt0cnl7aWYobiYmbi5yYW5kb21VVUlEKXJldHVybiBuLnJhbmRvbVVVSUQoKS5yZXBsYWNlKC8tL2csIiIpO24mJm4uZ2V0UmFuZG9tVmFsdWVzJiYoZT0oKT0+e2NvbnN0IHQ9bmV3IFVpbnQ4QXJyYXkoMSk7cmV0dXJuIG4uZ2V0UmFuZG9tVmFsdWVzKHQpLHRbMF19KX1jYXRjaCh0KXt9cmV0dXJuKFsxZTddKzFlMys0ZTMrOGUzKzFlMTEpLnJlcGxhY2UoL1swMThdL2csKHQ9Pih0XigxNSZlKCkpPj50LzQpLnRvU3RyaW5nKDE2KSkpfWZ1bmN0aW9uIHoodCxuPTEwMCxlPTEvMCl7dHJ5e3JldHVybiBIKCIiLHQsbixlKX1jYXRjaCh0KXtyZXR1cm57RVJST1I6YCoqbm9uLXNlcmlhbGl6YWJsZSoqICgke3R9KWB9fX1mdW5jdGlvbiBIKHQsbixlPTEvMCxyPTEvMCxvPWZ1bmN0aW9uKCl7Y29uc3QgdD0iZnVuY3Rpb24iPT10eXBlb2YgV2Vha1NldCxuPXQ/bmV3IFdlYWtTZXQ6W107cmV0dXJuW2Z1bmN0aW9uKGUpe2lmKHQpcmV0dXJuISFuLmhhcyhlKXx8KG4uYWRkKGUpLCExKTtmb3IobGV0IHQ9MDt0PG4ubGVuZ3RoO3QrKylpZihuW3RdPT09ZSlyZXR1cm4hMDtyZXR1cm4gbi5wdXNoKGUpLCExfSxmdW5jdGlvbihlKXtpZih0KW4uZGVsZXRlKGUpO2Vsc2UgZm9yKGxldCB0PTA7dDxuLmxlbmd0aDt0KyspaWYoblt0XT09PWUpe24uc3BsaWNlKHQsMSk7YnJlYWt9fV19KCkpe2NvbnN0W3MsaV09bztpZihudWxsPT1ufHxbImJvb2xlYW4iLCJzdHJpbmciXS5pbmNsdWRlcyh0eXBlb2Ygbil8fCJudW1iZXIiPT10eXBlb2YgbiYmTnVtYmVyLmlzRmluaXRlKG4pKXJldHVybiBuO2NvbnN0IGM9ZnVuY3Rpb24odCxuKXt0cnl7aWYoImRvbWFpbiI9PT10JiZuJiYib2JqZWN0Ij09dHlwZW9mIG4mJm4udClyZXR1cm4iW0RvbWFpbl0iO2lmKCJkb21haW5FbWl0dGVyIj09PXQpcmV0dXJuIltEb21haW5FbWl0dGVyXSI7aWYoInVuZGVmaW5lZCIhPXR5cGVvZiBnbG9iYWwmJm49PT1nbG9iYWwpcmV0dXJuIltHbG9iYWxdIjtpZigidW5kZWZpbmVkIiE9dHlwZW9mIHdpbmRvdyYmbj09PXdpbmRvdylyZXR1cm4iW1dpbmRvd10iO2lmKCJ1bmRlZmluZWQiIT10eXBlb2YgZG9jdW1lbnQmJm49PT1kb2N1bWVudClyZXR1cm4iW0RvY3VtZW50XSI7aWYoIm9iamVjdCI9PXR5cGVvZihlPW4pJiZudWxsIT09ZSYmKGUuX19pc1Z1ZXx8ZS5vKSlyZXR1cm4iW1Z1ZVZpZXdNb2RlbF0iO2lmKGZ1bmN0aW9uKHQpe3JldHVybiBkKHQpJiYibmF0aXZlRXZlbnQiaW4gdCYmInByZXZlbnREZWZhdWx0ImluIHQmJiJzdG9wUHJvcGFnYXRpb24iaW4gdH0obikpcmV0dXJuIltTeW50aGV0aWNFdmVudF0iO2lmKCJudW1iZXIiPT10eXBlb2YgbiYmIU51bWJlci5pc0Zpbml0ZShuKSlyZXR1cm5gWyR7bn1dYDtpZigiZnVuY3Rpb24iPT10eXBlb2YgbilyZXR1cm5gW0Z1bmN0aW9uOiAke2Z1bmN0aW9uKHQpe3RyeXtyZXR1cm4gdCYmImZ1bmN0aW9uIj09dHlwZW9mIHQmJnQubmFtZXx8TH1jYXRjaCh0KXtyZXR1cm4gTH19KG4pfV1gO2lmKCJzeW1ib2wiPT10eXBlb2YgbilyZXR1cm5gWyR7U3RyaW5nKG4pfV1gO2lmKCJiaWdpbnQiPT10eXBlb2YgbilyZXR1cm5gW0JpZ0ludDogJHtTdHJpbmcobil9XWA7Y29uc3Qgcj1mdW5jdGlvbih0KXtjb25zdCBuPU9iamVjdC5nZXRQcm90b3R5cGVPZih0KTtyZXR1cm4gbj9uLmNvbnN0cnVjdG9yLm5hbWU6Im51bGwgcHJvdG90eXBlIn0obik7cmV0dXJuL15IVE1MKFx3KilFbGVtZW50JC8udGVzdChyKT9gW0hUTUxFbGVtZW50OiAke3J9XWA6YFtvYmplY3QgJHtyfV1gfWNhdGNoKHQpe3JldHVybmAqKm5vbi1zZXJpYWxpemFibGUqKiAoJHt0fSlgfXZhciBlfSh0LG4pO2lmKCFjLnN0YXJ0c1dpdGgoIltvYmplY3QgIikpcmV0dXJuIGM7aWYobi5fX3NlbnRyeV9za2lwX25vcm1hbGl6YXRpb25fXylyZXR1cm4gbjtjb25zdCB1PSJudW1iZXIiPT10eXBlb2Ygbi5fX3NlbnRyeV9vdmVycmlkZV9ub3JtYWxpemF0aW9uX2RlcHRoX18/bi5fX3NlbnRyeV9vdmVycmlkZV9ub3JtYWxpemF0aW9uX2RlcHRoX186ZTtpZigwPT09dSlyZXR1cm4gYy5yZXBsYWNlKCJvYmplY3QgIiwiIik7aWYocyhuKSlyZXR1cm4iW0NpcmN1bGFyIH5dIjtjb25zdCBhPW47aWYoYSYmImZ1bmN0aW9uIj09dHlwZW9mIGEudG9KU09OKXRyeXtyZXR1cm4gSCgiIixhLnRvSlNPTigpLHUtMSxyLG8pfWNhdGNoKHQpe31jb25zdCBmPUFycmF5LmlzQXJyYXkobik/W106e307bGV0IGg9MDtjb25zdCBwPVIobik7Zm9yKGNvbnN0IHQgaW4gcCl7aWYoIU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChwLHQpKWNvbnRpbnVlO2lmKGg+PXIpe2ZbdF09IltNYXhQcm9wZXJ0aWVzIH5dIjticmVha31jb25zdCBuPXBbdF07Zlt0XT1IKHQsbix1LTEscixvKSxoKyt9cmV0dXJuIGkobiksZn1mdW5jdGlvbiBXKHQsbil7Y29uc3QgZT1uLnJlcGxhY2UoL1xcL2csIi8iKS5yZXBsYWNlKC9bfFxce30oKVtcXV4kKyo/Ll0vZywiXFwkJiIpO2xldCByPXQ7dHJ5e3I9ZGVjb2RlVVJJKHQpfWNhdGNoKHQpe31yZXR1cm4gci5yZXBsYWNlKC9cXC9nLCIvIikucmVwbGFjZSgvd2VicGFjazpcLz8vZywiIikucmVwbGFjZShuZXcgUmVnRXhwKGAoZmlsZTovLyk/Lyoke2V9LypgLCJpZyIpLCJhcHA6Ly8vIil9KCgpPT57Y29uc3R7cGVyZm9ybWFuY2U6dH09YjtpZighdHx8IXQubm93KXJldHVybjtjb25zdCBuPTM2ZTUsZT10Lm5vdygpLHI9RGF0ZS5ub3coKSxvPXQudGltZU9yaWdpbj9NYXRoLmFicyh0LnRpbWVPcmlnaW4rZS1yKTpuLHM9bzxuLGk9dC50aW1pbmcmJnQudGltaW5nLm5hdmlnYXRpb25TdGFydCxjPSJudW1iZXIiPT10eXBlb2YgaT9NYXRoLmFicyhpK2Utcik6bjsoc3x8YzxuKSYmKG88PWMmJnQudGltZU9yaWdpbil9KSgpO2NvbnN0IEY9L14oXFMrOlxcfFwvPykoW1xzXFNdKj8pKCg/OlwuezEsMn18W14vXFxdKz98KShcLlteLi9cXF0qfCkpKD86Wy9cXF0qKSQvO2Z1bmN0aW9uIEsodCl7Y29uc3Qgbj1mdW5jdGlvbih0KXtjb25zdCBuPXQubGVuZ3RoPjEwMjQ/YDx0cnVuY2F0ZWQ+JHt0LnNsaWNlKC0xMDI0KX1gOnQsZT1GLmV4ZWMobik7cmV0dXJuIGU/ZS5zbGljZSgxKTpbXX0odCksZT1uWzBdfHwiIjtsZXQgcj1uWzFdO3JldHVybiBlfHxyPyhyJiYocj1yLnNsaWNlKDAsci5sZW5ndGgtMSkpLGUrcik6Ii4ifXZhciBWO2Z1bmN0aW9uIFoodCl7cmV0dXJuIG5ldyBxKChuPT57bih0KX0pKX0hZnVuY3Rpb24odCl7dFt0LlBFTkRJTkc9MF09IlBFTkRJTkciO3RbdC5SRVNPTFZFRD0xXT0iUkVTT0xWRUQiO3RbdC5SRUpFQ1RFRD0yXT0iUkVKRUNURUQifShWfHwoVj17fSkpO2NsYXNzIHF7Y29uc3RydWN0b3IodCl7cS5wcm90b3R5cGUuX19pbml0LmNhbGwodGhpcykscS5wcm90b3R5cGUuX19pbml0Mi5jYWxsKHRoaXMpLHEucHJvdG90eXBlLl9faW5pdDMuY2FsbCh0aGlzKSxxLnByb3RvdHlwZS5fX2luaXQ0LmNhbGwodGhpcyksdGhpcy5pPVYuUEVORElORyx0aGlzLnU9W107dHJ5e3QodGhpcy5oLHRoaXMucCl9Y2F0Y2godCl7dGhpcy5wKHQpfX10aGVuKHQsbil7cmV0dXJuIG5ldyBxKCgoZSxyKT0+e3RoaXMudS5wdXNoKFshMSxuPT57aWYodCl0cnl7ZSh0KG4pKX1jYXRjaCh0KXtyKHQpfWVsc2UgZShuKX0sdD0+e2lmKG4pdHJ5e2Uobih0KSl9Y2F0Y2godCl7cih0KX1lbHNlIHIodCl9XSksdGhpcy5sKCl9KSl9Y2F0Y2godCl7cmV0dXJuIHRoaXMudGhlbigodD0+dCksdCl9ZmluYWxseSh0KXtyZXR1cm4gbmV3IHEoKChuLGUpPT57bGV0IHIsbztyZXR1cm4gdGhpcy50aGVuKChuPT57bz0hMSxyPW4sdCYmdCgpfSksKG49PntvPSEwLHI9bix0JiZ0KCl9KSkudGhlbigoKCk9PntvP2Uocik6bihyKX0pKX0pKX1fX2luaXQoKXt0aGlzLmg9dD0+e3RoaXMubShWLlJFU09MVkVELHQpfX1fX2luaXQyKCl7dGhpcy5wPXQ9Pnt0aGlzLm0oVi5SRUpFQ1RFRCx0KX19X19pbml0Mygpe3RoaXMubT0odCxuKT0+e3RoaXMuaT09PVYuUEVORElORyYmKG0obik/bi50aGVuKHRoaXMuaCx0aGlzLnApOih0aGlzLmk9dCx0aGlzLl89bix0aGlzLmwoKSkpfX1fX2luaXQ0KCl7dGhpcy5sPSgpPT57aWYodGhpcy5pPT09Vi5QRU5ESU5HKXJldHVybjtjb25zdCB0PXRoaXMudS5zbGljZSgpO3RoaXMudT1bXSx0LmZvckVhY2goKHQ9Pnt0WzBdfHwodGhpcy5pPT09Vi5SRVNPTFZFRCYmdFsxXSh0aGlzLl8pLHRoaXMuaT09PVYuUkVKRUNURUQmJnRbMl0odGhpcy5fKSx0WzBdPSEwKX0pKX19fWZ1bmN0aW9uIFEodCl7Y29uc3Qgbj1bXTtmdW5jdGlvbiBlKHQpe3JldHVybiBuLnNwbGljZShuLmluZGV4T2YodCksMSlbMF18fFByb21pc2UucmVzb2x2ZSh2b2lkIDApfXJldHVybnskOm4sYWRkOmZ1bmN0aW9uKHIpe2lmKCEodm9pZCAwPT09dHx8bi5sZW5ndGg8dCkpcmV0dXJuIG89bmV3IGsoIk5vdCBhZGRpbmcgUHJvbWlzZSBiZWNhdXNlIGJ1ZmZlciBsaW1pdCB3YXMgcmVhY2hlZC4iKSxuZXcgcSgoKHQsbik9PntuKG8pfSkpO3ZhciBvO2NvbnN0IHM9cigpO3JldHVybi0xPT09bi5pbmRleE9mKHMpJiZuLnB1c2gocykscy50aGVuKCgoKT0+ZShzKSkpLnRoZW4obnVsbCwoKCk9PmUocykudGhlbihudWxsLCgoKT0+e30pKSkpLHN9LGRyYWluOmZ1bmN0aW9uKHQpe3JldHVybiBuZXcgcSgoKGUscik9PntsZXQgbz1uLmxlbmd0aDtpZighbylyZXR1cm4gZSghMCk7Y29uc3Qgcz1zZXRUaW1lb3V0KCgoKT0+e3QmJnQ+MCYmZSghMSl9KSx0KTtuLmZvckVhY2goKHQ9PntaKHQpLnRoZW4oKCgpPT57LS1vfHwoY2xlYXJUaW1lb3V0KHMpLGUoITApKX0pLHIpfSkpfSkpfX19ZnVuY3Rpb24gWCh0LG49ITEpe3JldHVybiEobnx8dCYmIXQuc3RhcnRzV2l0aCgiLyIpJiYhdC5tYXRjaCgvXltBLVpdOi8pJiYhdC5zdGFydHNXaXRoKCIuIikmJiF0Lm1hdGNoKC9eW2EtekEtWl0oW2EtekEtWjAtOS5cLStdKSo6XC9cLy8pKSYmdm9pZCAwIT09dCYmIXQuaW5jbHVkZXMoIm5vZGVfbW9kdWxlcy8iKX1jb25zdCB0dD0ic2VudHJ5LSIsbnQ9L15zZW50cnktLztmdW5jdGlvbiBldCh0KXtjb25zdCBuPWZ1bmN0aW9uKHQpe2lmKCF0fHwhbCh0KSYmIUFycmF5LmlzQXJyYXkodCkpcmV0dXJuO2lmKEFycmF5LmlzQXJyYXkodCkpcmV0dXJuIHQucmVkdWNlKCgodCxuKT0+e2NvbnN0IGU9cnQobik7cmV0dXJuIE9iamVjdC5lbnRyaWVzKGUpLmZvckVhY2goKChbbixlXSk9Pnt0W25dPWV9KSksdH0pLHt9KTtyZXR1cm4gcnQodCl9KHQpO2lmKCFuKXJldHVybjtjb25zdCBlPU9iamVjdC5lbnRyaWVzKG4pLnJlZHVjZSgoKHQsW24sZV0pPT57aWYobi5tYXRjaChudCkpe3Rbbi5zbGljZSh0dC5sZW5ndGgpXT1lfXJldHVybiB0fSkse30pO3JldHVybiBPYmplY3Qua2V5cyhlKS5sZW5ndGg+MD9lOnZvaWQgMH1mdW5jdGlvbiBydCh0KXtyZXR1cm4gdC5zcGxpdCgiLCIpLm1hcCgodD0+dC5zcGxpdCgiPSIpLm1hcCgodD0+ZGVjb2RlVVJJQ29tcG9uZW50KHQudHJpbSgpKSkpKSkucmVkdWNlKCgodCxbbixlXSk9PihuJiZlJiYodFtuXT1lKSx0KSkse30pfWZ1bmN0aW9uIG90KHQsbj1bXSl7cmV0dXJuW3Qsbl19ZnVuY3Rpb24gc3QodCxuKXtjb25zdCBlPXRbMV07Zm9yKGNvbnN0IHQgb2YgZSl7aWYobih0LHRbMF0udHlwZSkpcmV0dXJuITB9cmV0dXJuITF9ZnVuY3Rpb24gaXQodCl7cmV0dXJuIGIuX19TRU5UUllfXyYmYi5fX1NFTlRSWV9fLmVuY29kZVBvbHlmaWxsP2IuX19TRU5UUllfXy5lbmNvZGVQb2x5ZmlsbCh0KToobmV3IFRleHRFbmNvZGVyKS5lbmNvZGUodCl9ZnVuY3Rpb24gY3QodCl7Y29uc3RbbixlXT10O2xldCByPUpTT04uc3RyaW5naWZ5KG4pO2Z1bmN0aW9uIG8odCl7InN0cmluZyI9PXR5cGVvZiByP3I9InN0cmluZyI9PXR5cGVvZiB0P3IrdDpbaXQociksdF06ci5wdXNoKCJzdHJpbmciPT10eXBlb2YgdD9pdCh0KTp0KX1mb3IoY29uc3QgdCBvZiBlKXtjb25zdFtuLGVdPXQ7aWYobyhgXG4ke0pTT04uc3RyaW5naWZ5KG4pfVxuYCksInN0cmluZyI9PXR5cGVvZiBlfHxlIGluc3RhbmNlb2YgVWludDhBcnJheSlvKGUpO2Vsc2V7bGV0IHQ7dHJ5e3Q9SlNPTi5zdHJpbmdpZnkoZSl9Y2F0Y2gobil7dD1KU09OLnN0cmluZ2lmeSh6KGUpKX1vKHQpfX1yZXR1cm4ic3RyaW5nIj09dHlwZW9mIHI/cjpmdW5jdGlvbih0KXtjb25zdCBuPXQucmVkdWNlKCgodCxuKT0+dCtuLmxlbmd0aCksMCksZT1uZXcgVWludDhBcnJheShuKTtsZXQgcj0wO2Zvcihjb25zdCBuIG9mIHQpZS5zZXQobixyKSxyKz1uLmxlbmd0aDtyZXR1cm4gZX0ocil9Y29uc3QgdXQ9e3Nlc3Npb246InNlc3Npb24iLHNlc3Npb25zOiJzZXNzaW9uIixhdHRhY2htZW50OiJhdHRhY2htZW50Iix0cmFuc2FjdGlvbjoidHJhbnNhY3Rpb24iLGV2ZW50OiJlcnJvciIsY2xpZW50X3JlcG9ydDoiaW50ZXJuYWwiLHVzZXJfcmVwb3J0OiJkZWZhdWx0Iixwcm9maWxlOiJwcm9maWxlIixwcm9maWxlX2NodW5rOiJwcm9maWxlIixyZXBsYXlfZXZlbnQ6InJlcGxheSIscmVwbGF5X3JlY29yZGluZzoicmVwbGF5IixjaGVja19pbjoibW9uaXRvciIsZmVlZGJhY2s6ImZlZWRiYWNrIixzcGFuOiJzcGFuIixzdGF0c2Q6Im1ldHJpY19idWNrZXQifTtmdW5jdGlvbiBhdCh0KXtpZighdHx8IXQuc2RrKXJldHVybjtjb25zdHtuYW1lOm4sdmVyc2lvbjplfT10LnNkaztyZXR1cm57bmFtZTpuLHZlcnNpb246ZX19Y29uc3QgZnQ9NmU0O2Z1bmN0aW9uIGh0KHQse3N0YXR1c0NvZGU6bixoZWFkZXJzOmV9LHI9RGF0ZS5ub3coKSl7Y29uc3Qgbz17Li4udH0scz1lJiZlWyJ4LXNlbnRyeS1yYXRlLWxpbWl0cyJdLGk9ZSYmZVsicmV0cnktYWZ0ZXIiXTtpZihzKWZvcihjb25zdCB0IG9mIHMudHJpbSgpLnNwbGl0KCIsIikpe2NvbnN0W24sZSwsLHNdPXQuc3BsaXQoIjoiLDUpLGk9cGFyc2VJbnQobiwxMCksYz0xZTMqKGlzTmFOKGkpPzYwOmkpO2lmKGUpZm9yKGNvbnN0IHQgb2YgZS5zcGxpdCgiOyIpKSJtZXRyaWNfYnVja2V0Ij09PXQmJnMmJiFzLnNwbGl0KCI7IikuaW5jbHVkZXMoImN1c3RvbSIpfHwob1t0XT1yK2MpO2Vsc2Ugby5hbGw9citjfWVsc2UgaT9vLmFsbD1yK2Z1bmN0aW9uKHQsbj1EYXRlLm5vdygpKXtjb25zdCBlPXBhcnNlSW50KGAke3R9YCwxMCk7aWYoIWlzTmFOKGUpKXJldHVybiAxZTMqZTtjb25zdCByPURhdGUucGFyc2UoYCR7dH1gKTtyZXR1cm4gaXNOYU4ocik/ZnQ6ci1ufShpLHIpOjQyOT09PW4mJihvLmFsbD1yKzZlNCk7cmV0dXJuIG99ZnVuY3Rpb24gcHQoKXtyZXR1cm57dHJhY2VJZDpZKCksc3BhbklkOlkoKS5zdWJzdHJpbmcoMTYpfX1jb25zdCBsdD0idW5kZWZpbmVkIj09dHlwZW9mIF9fU0VOVFJZX0RFQlVHX198fF9fU0VOVFJZX0RFQlVHX187ZnVuY3Rpb24gZHQoKXtyZXR1cm4gbXQoYiksYn1mdW5jdGlvbiBtdCh0KXtjb25zdCBuPXQuX19TRU5UUllfXz10Ll9fU0VOVFJZX198fHt9O3JldHVybiBuLnZlcnNpb249bi52ZXJzaW9ufHxnLG5bZ109bltnXXx8e319ZnVuY3Rpb24geXQodCl7Y29uc3Qgbj1KKCksZT17c2lkOlkoKSxpbml0OiEwLHRpbWVzdGFtcDpuLHN0YXJ0ZWQ6bixkdXJhdGlvbjowLHN0YXR1czoib2siLGVycm9yczowLGlnbm9yZUR1cmF0aW9uOiExLHRvSlNPTjooKT0+ZnVuY3Rpb24odCl7cmV0dXJuIE8oe3NpZDpgJHt0LnNpZH1gLGluaXQ6dC5pbml0LHN0YXJ0ZWQ6bmV3IERhdGUoMWUzKnQuc3RhcnRlZCkudG9JU09TdHJpbmcoKSx0aW1lc3RhbXA6bmV3IERhdGUoMWUzKnQudGltZXN0YW1wKS50b0lTT1N0cmluZygpLHN0YXR1czp0LnN0YXR1cyxlcnJvcnM6dC5lcnJvcnMsZGlkOiJudW1iZXIiPT10eXBlb2YgdC5kaWR8fCJzdHJpbmciPT10eXBlb2YgdC5kaWQ/YCR7dC5kaWR9YDp2b2lkIDAsZHVyYXRpb246dC5kdXJhdGlvbixhYm5vcm1hbF9tZWNoYW5pc206dC5hYm5vcm1hbF9tZWNoYW5pc20sYXR0cnM6e3JlbGVhc2U6dC5yZWxlYXNlLGVudmlyb25tZW50OnQuZW52aXJvbm1lbnQsaXBfYWRkcmVzczp0LmlwQWRkcmVzcyx1c2VyX2FnZW50OnQudXNlckFnZW50fX0pfShlKX07cmV0dXJuIHQmJmd0KGUsdCksZX1mdW5jdGlvbiBndCh0LG49e30pe2lmKG4udXNlciYmKCF0LmlwQWRkcmVzcyYmbi51c2VyLmlwX2FkZHJlc3MmJih0LmlwQWRkcmVzcz1uLnVzZXIuaXBfYWRkcmVzcyksdC5kaWR8fG4uZGlkfHwodC5kaWQ9bi51c2VyLmlkfHxuLnVzZXIuZW1haWx8fG4udXNlci51c2VybmFtZSkpLHQudGltZXN0YW1wPW4udGltZXN0YW1wfHxKKCksbi5hYm5vcm1hbF9tZWNoYW5pc20mJih0LmFibm9ybWFsX21lY2hhbmlzbT1uLmFibm9ybWFsX21lY2hhbmlzbSksbi5pZ25vcmVEdXJhdGlvbiYmKHQuaWdub3JlRHVyYXRpb249bi5pZ25vcmVEdXJhdGlvbiksbi5zaWQmJih0LnNpZD0zMj09PW4uc2lkLmxlbmd0aD9uLnNpZDpZKCkpLHZvaWQgMCE9PW4uaW5pdCYmKHQuaW5pdD1uLmluaXQpLCF0LmRpZCYmbi5kaWQmJih0LmRpZD1gJHtuLmRpZH1gKSwibnVtYmVyIj09dHlwZW9mIG4uc3RhcnRlZCYmKHQuc3RhcnRlZD1uLnN0YXJ0ZWQpLHQuaWdub3JlRHVyYXRpb24pdC5kdXJhdGlvbj12b2lkIDA7ZWxzZSBpZigibnVtYmVyIj09dHlwZW9mIG4uZHVyYXRpb24pdC5kdXJhdGlvbj1uLmR1cmF0aW9uO2Vsc2V7Y29uc3Qgbj10LnRpbWVzdGFtcC10LnN0YXJ0ZWQ7dC5kdXJhdGlvbj1uPj0wP246MH1uLnJlbGVhc2UmJih0LnJlbGVhc2U9bi5yZWxlYXNlKSxuLmVudmlyb25tZW50JiYodC5lbnZpcm9ubWVudD1uLmVudmlyb25tZW50KSwhdC5pcEFkZHJlc3MmJm4uaXBBZGRyZXNzJiYodC5pcEFkZHJlc3M9bi5pcEFkZHJlc3MpLCF0LnVzZXJBZ2VudCYmbi51c2VyQWdlbnQmJih0LnVzZXJBZ2VudD1uLnVzZXJBZ2VudCksIm51bWJlciI9PXR5cGVvZiBuLmVycm9ycyYmKHQuZXJyb3JzPW4uZXJyb3JzKSxuLnN0YXR1cyYmKHQuc3RhdHVzPW4uc3RhdHVzKX1jb25zdCBidD0iX3NlbnRyeVNwYW4iO2Z1bmN0aW9uIF90KHQsbil7bj9mdW5jdGlvbih0LG4sZSl7dHJ5e09iamVjdC5kZWZpbmVQcm9wZXJ0eSh0LG4se3ZhbHVlOmUsd3JpdGFibGU6ITAsY29uZmlndXJhYmxlOiEwfSl9Y2F0Y2goZSl7JCYmQy5sb2coYEZhaWxlZCB0byBhZGQgbm9uLWVudW1lcmFibGUgcHJvcGVydHkgIiR7bn0iIHRvIG9iamVjdGAsdCl9fSh0LGJ0LG4pOmRlbGV0ZSB0W2J0XX1mdW5jdGlvbiB2dCh0KXtyZXR1cm4gdFtidF19Y2xhc3Mgd3R7Y29uc3RydWN0b3IoKXt0aGlzLnY9ITEsdGhpcy5TPVtdLHRoaXMuTj1bXSx0aGlzLkM9W10sdGhpcy5UPVtdLHRoaXMuaz17fSx0aGlzLlI9e30sdGhpcy5EPXt9LHRoaXMuaj17fSx0aGlzLk89e30sdGhpcy5BPXB0KCl9Y2xvbmUoKXtjb25zdCB0PW5ldyB3dDtyZXR1cm4gdC5DPVsuLi50aGlzLkNdLHQuUj17Li4udGhpcy5SfSx0LkQ9ey4uLnRoaXMuRH0sdC5qPXsuLi50aGlzLmp9LHQuaz10aGlzLmssdC5JPXRoaXMuSSx0LlA9dGhpcy5QLHQuVT10aGlzLlUsdC5NPXRoaXMuTSx0Lk49Wy4uLnRoaXMuTl0sdC5MPXRoaXMuTCx0LlQ9Wy4uLnRoaXMuVF0sdC5PPXsuLi50aGlzLk99LHQuQT17Li4udGhpcy5BfSx0LkI9dGhpcy5CLHQuRz10aGlzLkcsX3QodCx2dCh0aGlzKSksdH1zZXRDbGllbnQodCl7dGhpcy5CPXR9c2V0TGFzdEV2ZW50SWQodCl7dGhpcy5HPXR9Z2V0Q2xpZW50KCl7cmV0dXJuIHRoaXMuQn1sYXN0RXZlbnRJZCgpe3JldHVybiB0aGlzLkd9YWRkU2NvcGVMaXN0ZW5lcih0KXt0aGlzLlMucHVzaCh0KX1hZGRFdmVudFByb2Nlc3Nvcih0KXtyZXR1cm4gdGhpcy5OLnB1c2godCksdGhpc31zZXRVc2VyKHQpe3JldHVybiB0aGlzLms9dHx8e2VtYWlsOnZvaWQgMCxpZDp2b2lkIDAsaXBfYWRkcmVzczp2b2lkIDAsdXNlcm5hbWU6dm9pZCAwfSx0aGlzLlAmJmd0KHRoaXMuUCx7dXNlcjp0fSksdGhpcy5KKCksdGhpc31nZXRVc2VyKCl7cmV0dXJuIHRoaXMua31nZXRSZXF1ZXN0U2Vzc2lvbigpe3JldHVybiB0aGlzLkx9c2V0UmVxdWVzdFNlc3Npb24odCl7cmV0dXJuIHRoaXMuTD10LHRoaXN9c2V0VGFncyh0KXtyZXR1cm4gdGhpcy5SPXsuLi50aGlzLlIsLi4udH0sdGhpcy5KKCksdGhpc31zZXRUYWcodCxuKXtyZXR1cm4gdGhpcy5SPXsuLi50aGlzLlIsW3RdOm59LHRoaXMuSigpLHRoaXN9c2V0RXh0cmFzKHQpe3JldHVybiB0aGlzLkQ9ey4uLnRoaXMuRCwuLi50fSx0aGlzLkooKSx0aGlzfXNldEV4dHJhKHQsbil7cmV0dXJuIHRoaXMuRD17Li4udGhpcy5ELFt0XTpufSx0aGlzLkooKSx0aGlzfXNldEZpbmdlcnByaW50KHQpe3JldHVybiB0aGlzLk09dCx0aGlzLkooKSx0aGlzfXNldExldmVsKHQpe3JldHVybiB0aGlzLkk9dCx0aGlzLkooKSx0aGlzfXNldFRyYW5zYWN0aW9uTmFtZSh0KXtyZXR1cm4gdGhpcy5VPXQsdGhpcy5KKCksdGhpc31zZXRDb250ZXh0KHQsbil7cmV0dXJuIG51bGw9PT1uP2RlbGV0ZSB0aGlzLmpbdF06dGhpcy5qW3RdPW4sdGhpcy5KKCksdGhpc31zZXRTZXNzaW9uKHQpe3JldHVybiB0P3RoaXMuUD10OmRlbGV0ZSB0aGlzLlAsdGhpcy5KKCksdGhpc31nZXRTZXNzaW9uKCl7cmV0dXJuIHRoaXMuUH11cGRhdGUodCl7aWYoIXQpcmV0dXJuIHRoaXM7Y29uc3Qgbj0iZnVuY3Rpb24iPT10eXBlb2YgdD90KHRoaXMpOnQsW2Uscl09biBpbnN0YW5jZW9mIFN0P1tuLmdldFNjb3BlRGF0YSgpLG4uZ2V0UmVxdWVzdFNlc3Npb24oKV06ZChuKT9bdCx0LnJlcXVlc3RTZXNzaW9uXTpbXSx7dGFnczpvLGV4dHJhOnMsdXNlcjppLGNvbnRleHRzOmMsbGV2ZWw6dSxmaW5nZXJwcmludDphPVtdLHByb3BhZ2F0aW9uQ29udGV4dDpmfT1lfHx7fTtyZXR1cm4gdGhpcy5SPXsuLi50aGlzLlIsLi4ub30sdGhpcy5EPXsuLi50aGlzLkQsLi4uc30sdGhpcy5qPXsuLi50aGlzLmosLi4uY30saSYmT2JqZWN0LmtleXMoaSkubGVuZ3RoJiYodGhpcy5rPWkpLHUmJih0aGlzLkk9dSksYS5sZW5ndGgmJih0aGlzLk09YSksZiYmKHRoaXMuQT1mKSxyJiYodGhpcy5MPXIpLHRoaXN9Y2xlYXIoKXtyZXR1cm4gdGhpcy5DPVtdLHRoaXMuUj17fSx0aGlzLkQ9e30sdGhpcy5rPXt9LHRoaXMuaj17fSx0aGlzLkk9dm9pZCAwLHRoaXMuVT12b2lkIDAsdGhpcy5NPXZvaWQgMCx0aGlzLkw9dm9pZCAwLHRoaXMuUD12b2lkIDAsX3QodGhpcyx2b2lkIDApLHRoaXMuVD1bXSx0aGlzLkE9cHQoKSx0aGlzLkooKSx0aGlzfWFkZEJyZWFkY3J1bWIodCxuKXtjb25zdCBlPSJudW1iZXIiPT10eXBlb2Ygbj9uOjEwMDtpZihlPD0wKXJldHVybiB0aGlzO2NvbnN0IHI9e3RpbWVzdGFtcDpHKCksLi4udH0sbz10aGlzLkM7cmV0dXJuIG8ucHVzaChyKSx0aGlzLkM9by5sZW5ndGg+ZT9vLnNsaWNlKC1lKTpvLHRoaXMuSigpLHRoaXN9Z2V0TGFzdEJyZWFkY3J1bWIoKXtyZXR1cm4gdGhpcy5DW3RoaXMuQy5sZW5ndGgtMV19Y2xlYXJCcmVhZGNydW1icygpe3JldHVybiB0aGlzLkM9W10sdGhpcy5KKCksdGhpc31hZGRBdHRhY2htZW50KHQpe3JldHVybiB0aGlzLlQucHVzaCh0KSx0aGlzfWNsZWFyQXR0YWNobWVudHMoKXtyZXR1cm4gdGhpcy5UPVtdLHRoaXN9Z2V0U2NvcGVEYXRhKCl7cmV0dXJue2JyZWFkY3J1bWJzOnRoaXMuQyxhdHRhY2htZW50czp0aGlzLlQsY29udGV4dHM6dGhpcy5qLHRhZ3M6dGhpcy5SLGV4dHJhOnRoaXMuRCx1c2VyOnRoaXMuayxsZXZlbDp0aGlzLkksZmluZ2VycHJpbnQ6dGhpcy5NfHxbXSxldmVudFByb2Nlc3NvcnM6dGhpcy5OLHByb3BhZ2F0aW9uQ29udGV4dDp0aGlzLkEsc2RrUHJvY2Vzc2luZ01ldGFkYXRhOnRoaXMuTyx0cmFuc2FjdGlvbk5hbWU6dGhpcy5VLHNwYW46dnQodGhpcyl9fXNldFNES1Byb2Nlc3NpbmdNZXRhZGF0YSh0KXtyZXR1cm4gdGhpcy5PPXsuLi50aGlzLk8sLi4udH0sdGhpc31zZXRQcm9wYWdhdGlvbkNvbnRleHQodCl7cmV0dXJuIHRoaXMuQT10LHRoaXN9Z2V0UHJvcGFnYXRpb25Db250ZXh0KCl7cmV0dXJuIHRoaXMuQX1jYXB0dXJlRXhjZXB0aW9uKHQsbil7Y29uc3QgZT1uJiZuLmV2ZW50X2lkP24uZXZlbnRfaWQ6WSgpO2lmKCF0aGlzLkIpcmV0dXJuIEMud2FybigiTm8gY2xpZW50IGNvbmZpZ3VyZWQgb24gc2NvcGUgLSB3aWxsIG5vdCBjYXB0dXJlIGV4Y2VwdGlvbiEiKSxlO2NvbnN0IHI9bmV3IEVycm9yKCJTZW50cnkgc3ludGhldGljRXhjZXB0aW9uIik7cmV0dXJuIHRoaXMuQi5jYXB0dXJlRXhjZXB0aW9uKHQse29yaWdpbmFsRXhjZXB0aW9uOnQsc3ludGhldGljRXhjZXB0aW9uOnIsLi4ubixldmVudF9pZDplfSx0aGlzKSxlfWNhcHR1cmVNZXNzYWdlKHQsbixlKXtjb25zdCByPWUmJmUuZXZlbnRfaWQ/ZS5ldmVudF9pZDpZKCk7aWYoIXRoaXMuQilyZXR1cm4gQy53YXJuKCJObyBjbGllbnQgY29uZmlndXJlZCBvbiBzY29wZSAtIHdpbGwgbm90IGNhcHR1cmUgbWVzc2FnZSEiKSxyO2NvbnN0IG89bmV3IEVycm9yKHQpO3JldHVybiB0aGlzLkIuY2FwdHVyZU1lc3NhZ2UodCxuLHtvcmlnaW5hbEV4Y2VwdGlvbjp0LHN5bnRoZXRpY0V4Y2VwdGlvbjpvLC4uLmUsZXZlbnRfaWQ6cn0sdGhpcykscn1jYXB0dXJlRXZlbnQodCxuKXtjb25zdCBlPW4mJm4uZXZlbnRfaWQ/bi5ldmVudF9pZDpZKCk7cmV0dXJuIHRoaXMuQj8odGhpcy5CLmNhcHR1cmVFdmVudCh0LHsuLi5uLGV2ZW50X2lkOmV9LHRoaXMpLGUpOihDLndhcm4oIk5vIGNsaWVudCBjb25maWd1cmVkIG9uIHNjb3BlIC0gd2lsbCBub3QgY2FwdHVyZSBldmVudCEiKSxlKX1KKCl7dGhpcy52fHwodGhpcy52PSEwLHRoaXMuUy5mb3JFYWNoKCh0PT57dCh0aGlzKX0pKSx0aGlzLnY9ITEpfX1jb25zdCBTdD13dDtjbGFzcyAkdHtjb25zdHJ1Y3Rvcih0LG4pe2xldCBlLHI7ZT10fHxuZXcgU3Qscj1ufHxuZXcgU3QsdGhpcy5ZPVt7c2NvcGU6ZX1dLHRoaXMuSD1yfXdpdGhTY29wZSh0KXtjb25zdCBuPXRoaXMuVygpO2xldCBlO3RyeXtlPXQobil9Y2F0Y2godCl7dGhyb3cgdGhpcy5GKCksdH1yZXR1cm4gbShlKT9lLnRoZW4oKHQ9Pih0aGlzLkYoKSx0KSksKHQ9Pnt0aHJvdyB0aGlzLkYoKSx0fSkpOih0aGlzLkYoKSxlKX1nZXRDbGllbnQoKXtyZXR1cm4gdGhpcy5nZXRTdGFja1RvcCgpLmNsaWVudH1nZXRTY29wZSgpe3JldHVybiB0aGlzLmdldFN0YWNrVG9wKCkuc2NvcGV9Z2V0SXNvbGF0aW9uU2NvcGUoKXtyZXR1cm4gdGhpcy5IfWdldFN0YWNrVG9wKCl7cmV0dXJuIHRoaXMuWVt0aGlzLlkubGVuZ3RoLTFdfVcoKXtjb25zdCB0PXRoaXMuZ2V0U2NvcGUoKS5jbG9uZSgpO3JldHVybiB0aGlzLlkucHVzaCh7Y2xpZW50OnRoaXMuZ2V0Q2xpZW50KCksc2NvcGU6dH0pLHR9Rigpe3JldHVybiEodGhpcy5ZLmxlbmd0aDw9MSkmJiEhdGhpcy5ZLnBvcCgpfX1mdW5jdGlvbiBFdCgpe2NvbnN0IHQ9bXQoZHQoKSk7cmV0dXJuIHQuc3RhY2s9dC5zdGFja3x8bmV3ICR0KF8oImRlZmF1bHRDdXJyZW50U2NvcGUiLCgoKT0+bmV3IFN0KSksXygiZGVmYXVsdElzb2xhdGlvblNjb3BlIiwoKCk9Pm5ldyBTdCkpKX1mdW5jdGlvbiB4dCh0KXtyZXR1cm4gRXQoKS53aXRoU2NvcGUodCl9ZnVuY3Rpb24gTnQodCxuKXtjb25zdCBlPUV0KCk7cmV0dXJuIGUud2l0aFNjb3BlKCgoKT0+KGUuZ2V0U3RhY2tUb3AoKS5zY29wZT10LG4odCkpKSl9ZnVuY3Rpb24gQ3QodCl7cmV0dXJuIEV0KCkud2l0aFNjb3BlKCgoKT0+dChFdCgpLmdldElzb2xhdGlvblNjb3BlKCkpKSl9ZnVuY3Rpb24gVHQodCl7Y29uc3Qgbj1tdCh0KTtyZXR1cm4gbi5hY3M/bi5hY3M6e3dpdGhJc29sYXRpb25TY29wZTpDdCx3aXRoU2NvcGU6eHQsd2l0aFNldFNjb3BlOk50LHdpdGhTZXRJc29sYXRpb25TY29wZToodCxuKT0+Q3QobiksZ2V0Q3VycmVudFNjb3BlOigpPT5FdCgpLmdldFNjb3BlKCksZ2V0SXNvbGF0aW9uU2NvcGU6KCk9PkV0KCkuZ2V0SXNvbGF0aW9uU2NvcGUoKX19ZnVuY3Rpb24ga3QoKXtyZXR1cm4gVHQoZHQoKSkuZ2V0Q3VycmVudFNjb3BlKCkuZ2V0Q2xpZW50KCl9Y29uc3QgUnQ9Il9zZW50cnlNZXRyaWNzIjtmdW5jdGlvbiBEdCh0KXtjb25zdCBuPXRbUnRdO2lmKCFuKXJldHVybjtjb25zdCBlPXt9O2Zvcihjb25zdFssW3Qscl1db2Ygbil7KGVbdF18fChlW3RdPVtdKSkucHVzaChPKHIpKX1yZXR1cm4gZX1jb25zdCBqdD0ic2VudHJ5LnNvdXJjZSIsT3Q9InNlbnRyeS5zYW1wbGVfcmF0ZSIsQXQ9InNlbnRyeS5vcCIsSXQ9InNlbnRyeS5vcmlnaW4iLFB0PTAsVXQ9MSxNdD0xO2Z1bmN0aW9uIEx0KHQpe2NvbnN0e3NwYW5JZDpuLHRyYWNlSWQ6ZX09dC5zcGFuQ29udGV4dCgpLHtwYXJlbnRfc3Bhbl9pZDpyfT1KdCh0KTtyZXR1cm4gTyh7cGFyZW50X3NwYW5faWQ6cixzcGFuX2lkOm4sdHJhY2VfaWQ6ZX0pfWZ1bmN0aW9uIEJ0KHQpe3JldHVybiJudW1iZXIiPT10eXBlb2YgdD9HdCh0KTpBcnJheS5pc0FycmF5KHQpP3RbMF0rdFsxXS8xZTk6dCBpbnN0YW5jZW9mIERhdGU/R3QodC5nZXRUaW1lKCkpOkooKX1mdW5jdGlvbiBHdCh0KXtyZXR1cm4gdD45OTk5OTk5OTk5P3QvMWUzOnR9ZnVuY3Rpb24gSnQodCl7aWYoZnVuY3Rpb24odCl7cmV0dXJuImZ1bmN0aW9uIj09dHlwZW9mIHQuZ2V0U3BhbkpTT059KHQpKXJldHVybiB0LmdldFNwYW5KU09OKCk7dHJ5e2NvbnN0e3NwYW5JZDpuLHRyYWNlSWQ6ZX09dC5zcGFuQ29udGV4dCgpO2lmKGZ1bmN0aW9uKHQpe2NvbnN0IG49dDtyZXR1cm4hIShuLmF0dHJpYnV0ZXMmJm4uc3RhcnRUaW1lJiZuLm5hbWUmJm4uZW5kVGltZSYmbi5zdGF0dXMpfSh0KSl7Y29uc3R7YXR0cmlidXRlczpyLHN0YXJ0VGltZTpvLG5hbWU6cyxlbmRUaW1lOmkscGFyZW50U3BhbklkOmMsc3RhdHVzOnV9PXQ7cmV0dXJuIE8oe3NwYW5faWQ6bix0cmFjZV9pZDplLGRhdGE6cixkZXNjcmlwdGlvbjpzLHBhcmVudF9zcGFuX2lkOmMsc3RhcnRfdGltZXN0YW1wOkJ0KG8pLHRpbWVzdGFtcDpCdChpKXx8dm9pZCAwLHN0YXR1czpZdCh1KSxvcDpyW0F0XSxvcmlnaW46cltJdF0sX21ldHJpY3Nfc3VtbWFyeTpEdCh0KX0pfXJldHVybntzcGFuX2lkOm4sdHJhY2VfaWQ6ZX19Y2F0Y2godCl7cmV0dXJue319fWZ1bmN0aW9uIFl0KHQpe2lmKHQmJnQuY29kZSE9PVB0KXJldHVybiB0LmNvZGU9PT1VdD8ib2siOnQubWVzc2FnZXx8InVua25vd25fZXJyb3IifWNvbnN0IHp0PSJfc2VudHJ5Um9vdFNwYW4iO2Z1bmN0aW9uIEh0KHQpe3JldHVybiB0W3p0XXx8dH1jb25zdCBXdD0icHJvZHVjdGlvbiIsRnQ9Il9mcm96ZW5Ec2MiO2Z1bmN0aW9uIEt0KHQpe2NvbnN0IG49a3QoKTtpZighbilyZXR1cm57fTtjb25zdCBlPWZ1bmN0aW9uKHQsbil7Y29uc3QgZT1uLmdldE9wdGlvbnMoKSx7cHVibGljS2V5OnJ9PW4uZ2V0RHNuKCl8fHt9LG89Tyh7ZW52aXJvbm1lbnQ6ZS5lbnZpcm9ubWVudHx8V3QscmVsZWFzZTplLnJlbGVhc2UscHVibGljX2tleTpyLHRyYWNlX2lkOnR9KTtyZXR1cm4gbi5lbWl0KCJjcmVhdGVEc2MiLG8pLG99KEp0KHQpLnRyYWNlX2lkfHwiIixuKSxyPUh0KHQpLG89cltGdF07aWYobylyZXR1cm4gbztjb25zdCBzPXIuc3BhbkNvbnRleHQoKS50cmFjZVN0YXRlLGk9cyYmcy5nZXQoInNlbnRyeS5kc2MiKSxjPWkmJmV0KGkpO2lmKGMpcmV0dXJuIGM7Y29uc3QgdT1KdChyKSxhPXUuZGF0YXx8e30sZj1hW090XTtudWxsIT1mJiYoZS5zYW1wbGVfcmF0ZT1gJHtmfWApO2NvbnN0IGg9YVtqdF0scD11LmRlc2NyaXB0aW9uO3JldHVybiJ1cmwiIT09aCYmcCYmKGUudHJhbnNhY3Rpb249cCksZnVuY3Rpb24odCl7aWYoImJvb2xlYW4iPT10eXBlb2YgX19TRU5UUllfVFJBQ0lOR19fJiYhX19TRU5UUllfVFJBQ0lOR19fKXJldHVybiExO2NvbnN0IG49a3QoKSxlPW4mJm4uZ2V0T3B0aW9ucygpO3JldHVybiEhZSYmKGUuZW5hYmxlVHJhY2luZ3x8InRyYWNlc1NhbXBsZVJhdGUiaW4gZXx8InRyYWNlc1NhbXBsZXIiaW4gZSl9KCkmJihlLnNhbXBsZWQ9U3RyaW5nKGZ1bmN0aW9uKHQpe2NvbnN0e3RyYWNlRmxhZ3M6bn09dC5zcGFuQ29udGV4dCgpO3JldHVybiBuPT09TXR9KHIpKSksbi5lbWl0KCJjcmVhdGVEc2MiLGUsciksZX1mdW5jdGlvbiBWdCh0LG4sZSxyKXtjb25zdCBvPWF0KGUpLHM9dC50eXBlJiYicmVwbGF5X2V2ZW50IiE9PXQudHlwZT90LnR5cGU6ImV2ZW50IjshZnVuY3Rpb24odCxuKXtuJiYodC5zZGs9dC5zZGt8fHt9LHQuc2RrLm5hbWU9dC5zZGsubmFtZXx8bi5uYW1lLHQuc2RrLnZlcnNpb249dC5zZGsudmVyc2lvbnx8bi52ZXJzaW9uLHQuc2RrLmludGVncmF0aW9ucz1bLi4udC5zZGsuaW50ZWdyYXRpb25zfHxbXSwuLi5uLmludGVncmF0aW9uc3x8W11dLHQuc2RrLnBhY2thZ2VzPVsuLi50LnNkay5wYWNrYWdlc3x8W10sLi4ubi5wYWNrYWdlc3x8W11dKX0odCxlJiZlLnNkayk7Y29uc3QgaT1mdW5jdGlvbih0LG4sZSxyKXtjb25zdCBvPXQuc2RrUHJvY2Vzc2luZ01ldGFkYXRhJiZ0LnNka1Byb2Nlc3NpbmdNZXRhZGF0YS5keW5hbWljU2FtcGxpbmdDb250ZXh0O3JldHVybntldmVudF9pZDp0LmV2ZW50X2lkLHNlbnRfYXQ6KG5ldyBEYXRlKS50b0lTT1N0cmluZygpLC4uLm4mJntzZGs6bn0sLi4uISFlJiZyJiZ7ZHNuOlQocil9LC4uLm8mJnt0cmFjZTpPKHsuLi5vfSl9fX0odCxvLHIsbik7ZGVsZXRlIHQuc2RrUHJvY2Vzc2luZ01ldGFkYXRhO3JldHVybiBvdChpLFtbe3R5cGU6c30sdF1dKX1jb25zdCBadD0iX19TRU5UUllfU1VQUFJFU1NfVFJBQ0lOR19fIjtmdW5jdGlvbiBxdCh0KXtjb25zdCBuPVR0KGR0KCkpO3JldHVybiBuLnN1cHByZXNzVHJhY2luZz9uLnN1cHByZXNzVHJhY2luZyh0KTpmdW5jdGlvbiguLi50KXtjb25zdCBuPVR0KGR0KCkpO2lmKDI9PT10Lmxlbmd0aCl7Y29uc3RbZSxyXT10O3JldHVybiBlP24ud2l0aFNldFNjb3BlKGUscik6bi53aXRoU2NvcGUocil9cmV0dXJuIG4ud2l0aFNjb3BlKHRbMF0pfSgobj0+KG4uc2V0U0RLUHJvY2Vzc2luZ01ldGFkYXRhKHtbWnRdOiEwfSksdCgpKSkpfWZ1bmN0aW9uIFF0KHQsbil7Y29uc3R7ZmluZ2VycHJpbnQ6ZSxzcGFuOnIsYnJlYWRjcnVtYnM6byxzZGtQcm9jZXNzaW5nTWV0YWRhdGE6c309bjshZnVuY3Rpb24odCxuKXtjb25zdHtleHRyYTplLHRhZ3M6cix1c2VyOm8sY29udGV4dHM6cyxsZXZlbDppLHRyYW5zYWN0aW9uTmFtZTpjfT1uLHU9TyhlKTt1JiZPYmplY3Qua2V5cyh1KS5sZW5ndGgmJih0LmV4dHJhPXsuLi51LC4uLnQuZXh0cmF9KTtjb25zdCBhPU8ocik7YSYmT2JqZWN0LmtleXMoYSkubGVuZ3RoJiYodC50YWdzPXsuLi5hLC4uLnQudGFnc30pO2NvbnN0IGY9TyhvKTtmJiZPYmplY3Qua2V5cyhmKS5sZW5ndGgmJih0LnVzZXI9ey4uLmYsLi4udC51c2VyfSk7Y29uc3QgaD1PKHMpO2gmJk9iamVjdC5rZXlzKGgpLmxlbmd0aCYmKHQuY29udGV4dHM9ey4uLmgsLi4udC5jb250ZXh0c30pO2kmJih0LmxldmVsPWkpO2MmJiJ0cmFuc2FjdGlvbiIhPT10LnR5cGUmJih0LnRyYW5zYWN0aW9uPWMpfSh0LG4pLHImJmZ1bmN0aW9uKHQsbil7dC5jb250ZXh0cz17dHJhY2U6THQobiksLi4udC5jb250ZXh0c30sdC5zZGtQcm9jZXNzaW5nTWV0YWRhdGE9e2R5bmFtaWNTYW1wbGluZ0NvbnRleHQ6S3QobiksLi4udC5zZGtQcm9jZXNzaW5nTWV0YWRhdGF9O2NvbnN0IGU9SHQobikscj1KdChlKS5kZXNjcmlwdGlvbjtyJiYhdC50cmFuc2FjdGlvbiYmInRyYW5zYWN0aW9uIj09PXQudHlwZSYmKHQudHJhbnNhY3Rpb249cil9KHQsciksZnVuY3Rpb24odCxuKXt0LmZpbmdlcnByaW50PXQuZmluZ2VycHJpbnQ/ZnVuY3Rpb24odCl7cmV0dXJuIEFycmF5LmlzQXJyYXkodCk/dDpbdF19KHQuZmluZ2VycHJpbnQpOltdLG4mJih0LmZpbmdlcnByaW50PXQuZmluZ2VycHJpbnQuY29uY2F0KG4pKTt0LmZpbmdlcnByaW50JiYhdC5maW5nZXJwcmludC5sZW5ndGgmJmRlbGV0ZSB0LmZpbmdlcnByaW50fSh0LGUpLGZ1bmN0aW9uKHQsbil7Y29uc3QgZT1bLi4udC5icmVhZGNydW1ic3x8W10sLi4ubl07dC5icmVhZGNydW1icz1lLmxlbmd0aD9lOnZvaWQgMH0odCxvKSxmdW5jdGlvbih0LG4pe3Quc2RrUHJvY2Vzc2luZ01ldGFkYXRhPXsuLi50LnNka1Byb2Nlc3NpbmdNZXRhZGF0YSwuLi5ufX0odCxzKX1jb25zdCBYdD0iNyI7ZnVuY3Rpb24gdG4odCxuKXtyZXR1cm4gZT17c2VudHJ5X2tleTp0LnB1YmxpY0tleSxzZW50cnlfdmVyc2lvbjpYdCwuLi5uJiZ7c2VudHJ5X2NsaWVudDpgJHtuLm5hbWV9LyR7bi52ZXJzaW9ufWB9fSxPYmplY3Qua2V5cyhlKS5tYXAoKHQ9PmAke2VuY29kZVVSSUNvbXBvbmVudCh0KX09JHtlbmNvZGVVUklDb21wb25lbnQoZVt0XSl9YCkpLmpvaW4oIiYiKTt2YXIgZX1jb25zdCBubj02NDtmdW5jdGlvbiBlbih0LG4sZT1RKHQuYnVmZmVyU2l6ZXx8bm4pKXtsZXQgcj17fTtyZXR1cm57c2VuZDpmdW5jdGlvbih0KXtjb25zdCBvPVtdO2lmKHN0KHQsKCh0LG4pPT57Y29uc3QgZT1mdW5jdGlvbih0KXtyZXR1cm4gdXRbdF19KG4pOyhmdW5jdGlvbih0LG4sZT1EYXRlLm5vdygpKXtyZXR1cm4gZnVuY3Rpb24odCxuKXtyZXR1cm4gdFtuXXx8dC5hbGx8fDB9KHQsbik+ZX0pKHIsZSl8fG8ucHVzaCh0KX0pKSwwPT09by5sZW5ndGgpcmV0dXJuIFooe30pO2NvbnN0IHM9b3QodFswXSxvKSxpPXQ9PntzdChzLCgodCxuKT0+e30pKX07cmV0dXJuIGUuYWRkKCgoKT0+bih7Ym9keTpjdChzKX0pLnRoZW4oKHQ9Pih2b2lkIDAhPT10LnN0YXR1c0NvZGUmJih0LnN0YXR1c0NvZGU8MjAwfHx0LnN0YXR1c0NvZGU+PTMwMCkmJmx0JiZDLndhcm4oYFNlbnRyeSByZXNwb25kZWQgd2l0aCBzdGF0dXMgY29kZSAke3Quc3RhdHVzQ29kZX0gdG8gc2VudCBldmVudC5gKSxyPWh0KHIsdCksdCkpLCh0PT57dGhyb3cgaSgpLHR9KSkpKS50aGVuKCh0PT50KSwodD0+e2lmKHQgaW5zdGFuY2VvZiBrKXJldHVybiBsdCYmQy5lcnJvcigiU2tpcHBlZCBzZW5kaW5nIGV2ZW50IGJlY2F1c2UgYnVmZmVyIGlzIGZ1bGwuIiksaSgpLFooe30pO3Rocm93IHR9KSl9LGZsdXNoOnQ9PmUuZHJhaW4odCl9fWNvbnN0IHJuPVN5bWJvbCgiQWdlbnRCYXNlSW50ZXJuYWxTdGF0ZSIpO2NsYXNzIG9uIGV4dGVuZHMgcy5BZ2VudHtbcm5dO29wdGlvbnM7a2VlcEFsaXZlO2NvbnN0cnVjdG9yKHQpe3N1cGVyKHQpLHRoaXNbcm5dPXt9fWlzU2VjdXJlRW5kcG9pbnQodCl7aWYodCl7aWYoImJvb2xlYW4iPT10eXBlb2YgdC5zZWN1cmVFbmRwb2ludClyZXR1cm4gdC5zZWN1cmVFbmRwb2ludDtpZigic3RyaW5nIj09dHlwZW9mIHQucHJvdG9jb2wpcmV0dXJuImh0dHBzOiI9PT10LnByb3RvY29sfWNvbnN0e3N0YWNrOm59PW5ldyBFcnJvcjtyZXR1cm4ic3RyaW5nIj09dHlwZW9mIG4mJm4uc3BsaXQoIlxuIikuc29tZSgodD0+LTEhPT10LmluZGV4T2YoIihodHRwcy5qczoiKXx8LTEhPT10LmluZGV4T2YoIm5vZGU6aHR0cHM6IikpKX1jcmVhdGVTb2NrZXQodCxuLGUpe2NvbnN0IHI9ey4uLm4sc2VjdXJlRW5kcG9pbnQ6dGhpcy5pc1NlY3VyZUVuZHBvaW50KG4pfTtQcm9taXNlLnJlc29sdmUoKS50aGVuKCgoKT0+dGhpcy5jb25uZWN0KHQscikpKS50aGVuKChvPT57aWYobyBpbnN0YW5jZW9mIHMuQWdlbnQpcmV0dXJuIG8uYWRkUmVxdWVzdCh0LHIpO3RoaXNbcm5dLmN1cnJlbnRTb2NrZXQ9byxzdXBlci5jcmVhdGVTb2NrZXQodCxuLGUpfSksZSl9Y3JlYXRlQ29ubmVjdGlvbigpe2NvbnN0IHQ9dGhpc1tybl0uY3VycmVudFNvY2tldDtpZih0aGlzW3JuXS5jdXJyZW50U29ja2V0PXZvaWQgMCwhdCl0aHJvdyBuZXcgRXJyb3IoIk5vIHNvY2tldCB3YXMgcmV0dXJuZWQgaW4gdGhlIGBjb25uZWN0KClgIGZ1bmN0aW9uIik7cmV0dXJuIHR9Z2V0IGRlZmF1bHRQb3J0KCl7cmV0dXJuIHRoaXNbcm5dLmRlZmF1bHRQb3J0Pz8oImh0dHBzOiI9PT10aGlzLnByb3RvY29sPzQ0Mzo4MCl9c2V0IGRlZmF1bHRQb3J0KHQpe3RoaXNbcm5dJiYodGhpc1tybl0uZGVmYXVsdFBvcnQ9dCl9Z2V0IHByb3RvY29sKCl7cmV0dXJuIHRoaXNbcm5dLnByb3RvY29sPz8odGhpcy5pc1NlY3VyZUVuZHBvaW50KCk/Imh0dHBzOiI6Imh0dHA6Iil9c2V0IHByb3RvY29sKHQpe3RoaXNbcm5dJiYodGhpc1tybl0ucHJvdG9jb2w9dCl9fWZ1bmN0aW9uIHNuKC4uLnQpe0MubG9nKCJbaHR0cHMtcHJveHktYWdlbnQ6cGFyc2UtcHJveHktcmVzcG9uc2VdIiwuLi50KX1mdW5jdGlvbiBjbih0KXtyZXR1cm4gbmV3IFByb21pc2UoKChuLGUpPT57bGV0IHI9MDtjb25zdCBvPVtdO2Z1bmN0aW9uIHMoKXtjb25zdCBjPXQucmVhZCgpO2M/ZnVuY3Rpb24oYyl7by5wdXNoKGMpLHIrPWMubGVuZ3RoO2NvbnN0IHU9QnVmZmVyLmNvbmNhdChvLHIpLGE9dS5pbmRleE9mKCJcclxuXHJcbiIpO2lmKC0xPT09YSlyZXR1cm4gc24oImhhdmUgbm90IHJlY2VpdmVkIGVuZCBvZiBIVFRQIGhlYWRlcnMgeWV0Li4uIiksdm9pZCBzKCk7Y29uc3QgZj11LnNsaWNlKDAsYSkudG9TdHJpbmcoImFzY2lpIikuc3BsaXQoIlxyXG4iKSxoPWYuc2hpZnQoKTtpZighaClyZXR1cm4gdC5kZXN0cm95KCksZShuZXcgRXJyb3IoIk5vIGhlYWRlciByZWNlaXZlZCBmcm9tIHByb3h5IENPTk5FQ1QgcmVzcG9uc2UiKSk7Y29uc3QgcD1oLnNwbGl0KCIgIiksbD0rKHBbMV18fDApLGQ9cC5zbGljZSgyKS5qb2luKCIgIiksbT17fTtmb3IoY29uc3QgbiBvZiBmKXtpZighbiljb250aW51ZTtjb25zdCByPW4uaW5kZXhPZigiOiIpO2lmKC0xPT09cilyZXR1cm4gdC5kZXN0cm95KCksZShuZXcgRXJyb3IoYEludmFsaWQgaGVhZGVyIGZyb20gcHJveHkgQ09OTkVDVCByZXNwb25zZTogIiR7bn0iYCkpO2NvbnN0IG89bi5zbGljZSgwLHIpLnRvTG93ZXJDYXNlKCkscz1uLnNsaWNlKHIrMSkudHJpbVN0YXJ0KCksaT1tW29dOyJzdHJpbmciPT10eXBlb2YgaT9tW29dPVtpLHNdOkFycmF5LmlzQXJyYXkoaSk/aS5wdXNoKHMpOm1bb109c31zbigiZ290IHByb3h5IHNlcnZlciByZXNwb25zZTogJW8gJW8iLGgsbSksaSgpLG4oe2Nvbm5lY3Q6e3N0YXR1c0NvZGU6bCxzdGF0dXNUZXh0OmQsaGVhZGVyczptfSxidWZmZXJlZDp1fSl9KGMpOnQub25jZSgicmVhZGFibGUiLHMpfWZ1bmN0aW9uIGkoKXt0LnJlbW92ZUxpc3RlbmVyKCJlbmQiLGMpLHQucmVtb3ZlTGlzdGVuZXIoImVycm9yIix1KSx0LnJlbW92ZUxpc3RlbmVyKCJyZWFkYWJsZSIscyl9ZnVuY3Rpb24gYygpe2koKSxzbigib25lbmQiKSxlKG5ldyBFcnJvcigiUHJveHkgY29ubmVjdGlvbiBlbmRlZCBiZWZvcmUgcmVjZWl2aW5nIENPTk5FQ1QgcmVzcG9uc2UiKSl9ZnVuY3Rpb24gdSh0KXtpKCksc24oIm9uZXJyb3IgJW8iLHQpLGUodCl9dC5vbigiZXJyb3IiLHUpLHQub24oImVuZCIsYykscygpfSkpfWZ1bmN0aW9uIHVuKC4uLnQpe0MubG9nKCJbaHR0cHMtcHJveHktYWdlbnRdIiwuLi50KX1jbGFzcyBhbiBleHRlbmRzIG9ue3N0YXRpYyBwcm90b2NvbHM9WyJodHRwIiwiaHR0cHMiXTtwcm94eTtwcm94eUhlYWRlcnM7Y29ubmVjdE9wdHM7Y29uc3RydWN0b3IodCxuKXtzdXBlcihuKSx0aGlzLm9wdGlvbnM9e30sdGhpcy5wcm94eT0ic3RyaW5nIj09dHlwZW9mIHQ/bmV3IFVSTCh0KTp0LHRoaXMucHJveHlIZWFkZXJzPW4/LmhlYWRlcnM/P3t9LHVuKCJDcmVhdGluZyBuZXcgSHR0cHNQcm94eUFnZW50IGluc3RhbmNlOiAlbyIsdGhpcy5wcm94eS5ocmVmKTtjb25zdCBlPSh0aGlzLnByb3h5Lmhvc3RuYW1lfHx0aGlzLnByb3h5Lmhvc3QpLnJlcGxhY2UoL15cW3xcXSQvZywiIikscj10aGlzLnByb3h5LnBvcnQ/cGFyc2VJbnQodGhpcy5wcm94eS5wb3J0LDEwKToiaHR0cHM6Ij09PXRoaXMucHJveHkucHJvdG9jb2w/NDQzOjgwO3RoaXMuY29ubmVjdE9wdHM9e0FMUE5Qcm90b2NvbHM6WyJodHRwLzEuMSJdLC4uLm4/aG4obiwiaGVhZGVycyIpOm51bGwsaG9zdDplLHBvcnQ6cn19YXN5bmMgY29ubmVjdCh0LG4pe2NvbnN0e3Byb3h5OmV9PXRoaXM7aWYoIW4uaG9zdCl0aHJvdyBuZXcgVHlwZUVycm9yKCdObyAiaG9zdCIgcHJvdmlkZWQnKTtsZXQgcjtpZigiaHR0cHM6Ij09PWUucHJvdG9jb2wpe3VuKCJDcmVhdGluZyBgdGxzLlNvY2tldGA6ICVvIix0aGlzLmNvbm5lY3RPcHRzKTtjb25zdCB0PXRoaXMuY29ubmVjdE9wdHMuc2VydmVybmFtZXx8dGhpcy5jb25uZWN0T3B0cy5ob3N0O3I9Zi5jb25uZWN0KHsuLi50aGlzLmNvbm5lY3RPcHRzLHNlcnZlcm5hbWU6dCYmYS5pc0lQKHQpP3ZvaWQgMDp0fSl9ZWxzZSB1bigiQ3JlYXRpbmcgYG5ldC5Tb2NrZXRgOiAlbyIsdGhpcy5jb25uZWN0T3B0cykscj1hLmNvbm5lY3QodGhpcy5jb25uZWN0T3B0cyk7Y29uc3Qgbz0iZnVuY3Rpb24iPT10eXBlb2YgdGhpcy5wcm94eUhlYWRlcnM/dGhpcy5wcm94eUhlYWRlcnMoKTp7Li4udGhpcy5wcm94eUhlYWRlcnN9LHM9YS5pc0lQdjYobi5ob3N0KT9gWyR7bi5ob3N0fV1gOm4uaG9zdDtsZXQgaT1gQ09OTkVDVCAke3N9OiR7bi5wb3J0fSBIVFRQLzEuMVxyXG5gO2lmKGUudXNlcm5hbWV8fGUucGFzc3dvcmQpe2NvbnN0IHQ9YCR7ZGVjb2RlVVJJQ29tcG9uZW50KGUudXNlcm5hbWUpfToke2RlY29kZVVSSUNvbXBvbmVudChlLnBhc3N3b3JkKX1gO29bIlByb3h5LUF1dGhvcml6YXRpb24iXT1gQmFzaWMgJHtCdWZmZXIuZnJvbSh0KS50b1N0cmluZygiYmFzZTY0Iil9YH1vLkhvc3Q9YCR7c306JHtuLnBvcnR9YCxvWyJQcm94eS1Db25uZWN0aW9uIl18fChvWyJQcm94eS1Db25uZWN0aW9uIl09dGhpcy5rZWVwQWxpdmU/IktlZXAtQWxpdmUiOiJjbG9zZSIpO2Zvcihjb25zdCB0IG9mIE9iamVjdC5rZXlzKG8pKWkrPWAke3R9OiAke29bdF19XHJcbmA7Y29uc3QgYz1jbihyKTtyLndyaXRlKGAke2l9XHJcbmApO2NvbnN0e2Nvbm5lY3Q6dSxidWZmZXJlZDpofT1hd2FpdCBjO2lmKHQuZW1pdCgicHJveHlDb25uZWN0Iix1KSx0aGlzLmVtaXQoInByb3h5Q29ubmVjdCIsdSx0KSwyMDA9PT11LnN0YXR1c0NvZGUpe2lmKHQub25jZSgic29ja2V0Iixmbiksbi5zZWN1cmVFbmRwb2ludCl7dW4oIlVwZ3JhZGluZyBzb2NrZXQgY29ubmVjdGlvbiB0byBUTFMiKTtjb25zdCB0PW4uc2VydmVybmFtZXx8bi5ob3N0O3JldHVybiBmLmNvbm5lY3Qoey4uLmhuKG4sImhvc3QiLCJwYXRoIiwicG9ydCIpLHNvY2tldDpyLHNlcnZlcm5hbWU6YS5pc0lQKHQpP3ZvaWQgMDp0fSl9cmV0dXJuIHJ9ci5kZXN0cm95KCk7Y29uc3QgcD1uZXcgYS5Tb2NrZXQoe3dyaXRhYmxlOiExfSk7cmV0dXJuIHAucmVhZGFibGU9ITAsdC5vbmNlKCJzb2NrZXQiLCh0PT57dW4oIlJlcGxheWluZyBwcm94eSBidWZmZXIgZm9yIGZhaWxlZCByZXF1ZXN0IiksdC5wdXNoKGgpLHQucHVzaChudWxsKX0pKSxwfX1mdW5jdGlvbiBmbih0KXt0LnJlc3VtZSgpfWZ1bmN0aW9uIGhuKHQsLi4ubil7Y29uc3QgZT17fTtsZXQgcjtmb3IociBpbiB0KW4uaW5jbHVkZXMocil8fChlW3JdPXRbcl0pO3JldHVybiBlfWNvbnN0IHBuPTMyNzY4O2Z1bmN0aW9uIGxuKHQpe3JldHVybiB0LnJlcGxhY2UoL15bQS1aXTovLCIiKS5yZXBsYWNlKC9cXC9nLCIvIil9Y29uc3QgZG49ZTtsZXQgbW4seW49ITE7ZnVuY3Rpb24gZ24odCl7ZG4uZGVidWcmJmNvbnNvbGUubG9nKGBbQU5SIFdvcmtlcl0gJHt0fWApfXZhciBibixfbix2bjtjb25zdCB3bj1mdW5jdGlvbih0KXtsZXQgbjt0cnl7bj1uZXcgVVJMKHQudXJsKX1jYXRjaChuKXtyZXR1cm4gTigoKCk9Pntjb25zb2xlLndhcm4oIltAc2VudHJ5L25vZGVdOiBJbnZhbGlkIGRzbiBvciB0dW5uZWwgb3B0aW9uLCB3aWxsIG5vdCBzZW5kIGFueSBldmVudHMuIFRoZSB0dW5uZWwgb3B0aW9uIG11c3QgYmUgYSBmdWxsIFVSTCB3aGVuIHVzZWQuIil9KSksZW4odCwoKCk9PlByb21pc2UucmVzb2x2ZSh7fSkpKX1jb25zdCBlPSJodHRwczoiPT09bi5wcm90b2NvbCxyPWZ1bmN0aW9uKHQsbil7Y29uc3R7bm9fcHJveHk6ZX09cHJvY2Vzcy5lbnY7cmV0dXJuIGUmJmUuc3BsaXQoIiwiKS5zb21lKChuPT50Lmhvc3QuZW5kc1dpdGgobil8fHQuaG9zdG5hbWUuZW5kc1dpdGgobikpKT92b2lkIDA6bn0obix0LnByb3h5fHwoZT9wcm9jZXNzLmVudi5odHRwc19wcm94eTp2b2lkIDApfHxwcm9jZXNzLmVudi5odHRwX3Byb3h5KSxvPWU/aTpzLGE9dm9pZCAwIT09dC5rZWVwQWxpdmUmJnQua2VlcEFsaXZlLGY9cj9uZXcgYW4ocik6bmV3IG8uQWdlbnQoe2tlZXBBbGl2ZTphLG1heFNvY2tldHM6MzAsdGltZW91dDoyZTN9KSxoPWZ1bmN0aW9uKHQsbixlKXtjb25zdHtob3N0bmFtZTpyLHBhdGhuYW1lOm8scG9ydDpzLHByb3RvY29sOmksc2VhcmNoOmF9PW5ldyBVUkwodC51cmwpO3JldHVybiBmdW5jdGlvbihmKXtyZXR1cm4gbmV3IFByb21pc2UoKChoLHApPT57cXQoKCgpPT57bGV0IGw9ZnVuY3Rpb24odCl7cmV0dXJuIG5ldyBjKHtyZWFkKCl7dGhpcy5wdXNoKHQpLHRoaXMucHVzaChudWxsKX19KX0oZi5ib2R5KTtjb25zdCBkPXsuLi50LmhlYWRlcnN9O2YuYm9keS5sZW5ndGg+cG4mJihkWyJjb250ZW50LWVuY29kaW5nIl09Imd6aXAiLGw9bC5waXBlKHUoKSkpO2NvbnN0IG09bi5yZXF1ZXN0KHttZXRob2Q6IlBPU1QiLGFnZW50OmUsaGVhZGVyczpkLGhvc3RuYW1lOnIscGF0aDpgJHtvfSR7YX1gLHBvcnQ6cyxwcm90b2NvbDppLGNhOnQuY2FDZXJ0c30sKHQ9Pnt0Lm9uKCJkYXRhIiwoKCk9Pnt9KSksdC5vbigiZW5kIiwoKCk9Pnt9KSksdC5zZXRFbmNvZGluZygidXRmOCIpO2NvbnN0IG49dC5oZWFkZXJzWyJyZXRyeS1hZnRlciJdPz9udWxsLGU9dC5oZWFkZXJzWyJ4LXNlbnRyeS1yYXRlLWxpbWl0cyJdPz9udWxsO2goe3N0YXR1c0NvZGU6dC5zdGF0dXNDb2RlLGhlYWRlcnM6eyJyZXRyeS1hZnRlciI6biwieC1zZW50cnktcmF0ZS1saW1pdHMiOkFycmF5LmlzQXJyYXkoZSk/ZVswXXx8bnVsbDplfX0pfSkpO20ub24oImVycm9yIixwKSxsLnBpcGUobSl9KSl9KSl9fSh0LHQuaHR0cE1vZHVsZT8/byxmKTtyZXR1cm4gZW4odCxoKX0oe3VybDooYm49ZG4uZHNuLF9uPWRuLnR1bm5lbCx2bj1kbi5zZGtNZXRhZGF0YS5zZGssX258fGAke2Z1bmN0aW9uKHQpe3JldHVybmAke2Z1bmN0aW9uKHQpe2NvbnN0IG49dC5wcm90b2NvbD9gJHt0LnByb3RvY29sfTpgOiIiLGU9dC5wb3J0P2A6JHt0LnBvcnR9YDoiIjtyZXR1cm5gJHtufS8vJHt0Lmhvc3R9JHtlfSR7dC5wYXRoP2AvJHt0LnBhdGh9YDoiIn0vYXBpL2B9KHQpfSR7dC5wcm9qZWN0SWR9L2VudmVsb3BlL2B9KGJuKX0/JHt0bihibix2bil9YCkscmVjb3JkRHJvcHBlZEV2ZW50OigpPT57fX0pO2FzeW5jIGZ1bmN0aW9uIFNuKCl7aWYobW4pe2duKCJTZW5kaW5nIGFibm9ybWFsIHNlc3Npb24iKSxndChtbix7c3RhdHVzOiJhYm5vcm1hbCIsYWJub3JtYWxfbWVjaGFuaXNtOiJhbnJfZm9yZWdyb3VuZCJ9KTtjb25zdCB0PWZ1bmN0aW9uKHQsbixlLHIpe2NvbnN0IG89YXQoZSk7cmV0dXJuIG90KHtzZW50X2F0OihuZXcgRGF0ZSkudG9JU09TdHJpbmcoKSwuLi5vJiZ7c2RrOm99LC4uLiEhciYmbiYme2RzbjpUKG4pfX0sWyJhZ2dyZWdhdGVzImluIHQ/W3t0eXBlOiJzZXNzaW9ucyJ9LHRdOlt7dHlwZToic2Vzc2lvbiJ9LHQudG9KU09OKCldXSl9KG1uLGRuLmRzbixkbi5zZGtNZXRhZGF0YSxkbi50dW5uZWwpO2duKEpTT04uc3RyaW5naWZ5KHQpKSxhd2FpdCB3bi5zZW5kKHQpO3RyeXtuPy5wb3N0TWVzc2FnZSgic2Vzc2lvbi1lbmRlZCIpfWNhdGNoKHQpe319fWZ1bmN0aW9uICRuKHQpe2lmKCF0KXJldHVybjtjb25zdCBuPWZ1bmN0aW9uKHQpe2lmKCF0Lmxlbmd0aClyZXR1cm5bXTtjb25zdCBuPUFycmF5LmZyb20odCk7cmV0dXJuL3NlbnRyeVdyYXBwZWQvLnRlc3QoTShuKS5mdW5jdGlvbnx8IiIpJiZuLnBvcCgpLG4ucmV2ZXJzZSgpLFUudGVzdChNKG4pLmZ1bmN0aW9ufHwiIikmJihuLnBvcCgpLFUudGVzdChNKG4pLmZ1bmN0aW9ufHwiIikmJm4ucG9wKCkpLG4uc2xpY2UoMCxJKS5tYXAoKHQ9Pih7Li4udCxmaWxlbmFtZTp0LmZpbGVuYW1lfHxNKG4pLmZpbGVuYW1lLGZ1bmN0aW9uOnQuZnVuY3Rpb258fFB9KSkpfSh0KTtpZihkbi5hcHBSb290UGF0aClmb3IoY29uc3QgdCBvZiBuKXQuZmlsZW5hbWUmJih0LmZpbGVuYW1lPVcodC5maWxlbmFtZSxkbi5hcHBSb290UGF0aCkpO3JldHVybiBufWFzeW5jIGZ1bmN0aW9uIEVuKHQsbil7aWYoeW4pcmV0dXJuO3luPSEwLGF3YWl0IFNuKCksZ24oIlNlbmRpbmcgZXZlbnQiKTtjb25zdCBlPXtldmVudF9pZDpZKCksY29udGV4dHM6ZG4uY29udGV4dHMscmVsZWFzZTpkbi5yZWxlYXNlLGVudmlyb25tZW50OmRuLmVudmlyb25tZW50LGRpc3Q6ZG4uZGlzdCxwbGF0Zm9ybToibm9kZSIsbGV2ZWw6ImVycm9yIixleGNlcHRpb246e3ZhbHVlczpbe3R5cGU6IkFwcGxpY2F0aW9uTm90UmVzcG9uZGluZyIsdmFsdWU6YEFwcGxpY2F0aW9uIE5vdCBSZXNwb25kaW5nIGZvciBhdCBsZWFzdCAke2RuLmFuclRocmVzaG9sZH0gbXNgLHN0YWNrdHJhY2U6e2ZyYW1lczokbih0KX0sbWVjaGFuaXNtOnt0eXBlOiJBTlIifX1dfSx0YWdzOmRuLnN0YXRpY1RhZ3N9O24mJmZ1bmN0aW9uKHQsbil7aWYoUXQodCxuKSwhdC5jb250ZXh0cz8udHJhY2Upe2NvbnN0e3RyYWNlSWQ6ZSxzcGFuSWQ6cixwYXJlbnRTcGFuSWQ6b309bi5wcm9wYWdhdGlvbkNvbnRleHQ7dC5jb250ZXh0cz17dHJhY2U6e3RyYWNlX2lkOmUsc3Bhbl9pZDpyLHBhcmVudF9zcGFuX2lkOm99LC4uLnQuY29udGV4dHN9fX0oZSxuKTtjb25zdCByPVZ0KGUsZG4uZHNuLGRuLnNka01ldGFkYXRhLGRuLnR1bm5lbCk7Z24oSlNPTi5zdHJpbmdpZnkocikpLGF3YWl0IHduLnNlbmQociksYXdhaXQgd24uZmx1c2goMmUzKSxzZXRUaW1lb3V0KCgoKT0+e3Byb2Nlc3MuZXhpdCgwKX0pLDVlMyl9bGV0IHhuO2lmKGduKCJTdGFydGVkIiksZG4uY2FwdHVyZVN0YWNrVHJhY2Upe2duKCJDb25uZWN0aW5nIHRvIGRlYnVnZ2VyIik7Y29uc3Qgbj1uZXcgdDtuLmNvbm5lY3RUb01haW5UaHJlYWQoKSxnbigiQ29ubmVjdGVkIHRvIGRlYnVnZ2VyIik7Y29uc3QgZT1uZXcgTWFwO24ub24oIkRlYnVnZ2VyLnNjcmlwdFBhcnNlZCIsKHQ9PntlLnNldCh0LnBhcmFtcy5zY3JpcHRJZCx0LnBhcmFtcy51cmwpfSkpLG4ub24oIkRlYnVnZ2VyLnBhdXNlZCIsKHQ9PntpZigib3RoZXIiPT09dC5wYXJhbXMucmVhc29uKXRyeXtnbigiRGVidWdnZXIgcGF1c2VkIik7Y29uc3Qgcz1bLi4udC5wYXJhbXMuY2FsbEZyYW1lc10saT1kbi5hcHBSb290UGF0aD9mdW5jdGlvbih0PShwcm9jZXNzLmFyZ3ZbMV0/Syhwcm9jZXNzLmFyZ3ZbMV0pOnByb2Nlc3MuY3dkKCkpLG49IlxcIj09PW8pe2NvbnN0IGU9bj9sbih0KTp0O3JldHVybiB0PT57aWYoIXQpcmV0dXJuO2NvbnN0IG89bj9sbih0KTp0O2xldHtkaXI6cyxiYXNlOmksZXh0OmN9PXIucGFyc2Uobyk7Ii5qcyIhPT1jJiYiLm1qcyIhPT1jJiYiLmNqcyIhPT1jfHwoaT1pLnNsaWNlKDAsLTEqYy5sZW5ndGgpKSxzfHwocz0iLiIpO2NvbnN0IHU9cy5sYXN0SW5kZXhPZigiL25vZGVfbW9kdWxlcyIpO2lmKHU+LTEpcmV0dXJuYCR7cy5zbGljZSh1KzE0KS5yZXBsYWNlKC9cLy9nLCIuIil9OiR7aX1gO2lmKHMuc3RhcnRzV2l0aChlKSl7bGV0IHQ9cy5zbGljZShlLmxlbmd0aCsxKS5yZXBsYWNlKC9cLy9nLCIuIik7cmV0dXJuIHQmJih0Kz0iOiIpLHQrPWksdH1yZXR1cm4gaX19KGRuLmFwcFJvb3RQYXRoKTooKT0+e30sYz1zLm1hcCgodD0+ZnVuY3Rpb24odCxuLGUpe2NvbnN0IHI9bj9uLnJlcGxhY2UoL15maWxlOlwvXC8vLCIiKTp2b2lkIDAsbz10LmxvY2F0aW9uLmNvbHVtbk51bWJlcj90LmxvY2F0aW9uLmNvbHVtbk51bWJlcisxOnZvaWQgMCxzPXQubG9jYXRpb24ubGluZU51bWJlcj90LmxvY2F0aW9uLmxpbmVOdW1iZXIrMTp2b2lkIDA7cmV0dXJuIE8oe2ZpbGVuYW1lOnIsbW9kdWxlOmUociksZnVuY3Rpb246dC5mdW5jdGlvbk5hbWV8fFAsY29sbm86byxsaW5lbm86cyxpbl9hcHA6cj9YKHIpOnZvaWQgMH0pfSh0LGUuZ2V0KHQubG9jYXRpb24uc2NyaXB0SWQpLGkpKSksdT1zZXRUaW1lb3V0KCgoKT0+e0VuKGMpLnRoZW4obnVsbCwoKCk9PntnbigiU2VuZGluZyBBTlIgZXZlbnQgZmFpbGVkLiIpfSkpfSksNWUzKTtuLnBvc3QoIlJ1bnRpbWUuZXZhbHVhdGUiLHtleHByZXNzaW9uOiJnbG9iYWwuX19TRU5UUllfR0VUX1NDT1BFU19fKCk7IixzaWxlbnQ6ITAscmV0dXJuQnlWYWx1ZTohMH0sKCh0LGUpPT57dCYmZ24oYEVycm9yIGV4ZWN1dGluZyBzY3JpcHQ6ICcke3QubWVzc2FnZX0nYCksY2xlYXJUaW1lb3V0KHUpO2NvbnN0IHI9ZSYmZS5yZXN1bHQ/ZS5yZXN1bHQudmFsdWU6dm9pZCAwO24ucG9zdCgiRGVidWdnZXIucmVzdW1lIiksbi5wb3N0KCJEZWJ1Z2dlci5kaXNhYmxlIiksRW4oYyxyKS50aGVuKG51bGwsKCgpPT57Z24oIlNlbmRpbmcgQU5SIGV2ZW50IGZhaWxlZC4iKX0pKX0pKX1jYXRjaCh0KXt0aHJvdyBuLnBvc3QoIkRlYnVnZ2VyLnJlc3VtZSIpLG4ucG9zdCgiRGVidWdnZXIuZGlzYWJsZSIpLHR9fSkpLHhuPSgpPT57dHJ5e24ucG9zdCgiRGVidWdnZXIuZW5hYmxlIiwoKCk9PntuLnBvc3QoIkRlYnVnZ2VyLnBhdXNlIil9KSl9Y2F0Y2godCl7fX19Y29uc3R7cG9sbDpObn09ZnVuY3Rpb24odCxuLGUscil7Y29uc3Qgbz10KCk7bGV0IHM9ITEsaT0hMDtyZXR1cm4gc2V0SW50ZXJ2YWwoKCgpPT57Y29uc3QgdD1vLmdldFRpbWVNcygpOyExPT09cyYmdD5uK2UmJihzPSEwLGkmJnIoKSksdDxuK2UmJihzPSExKX0pLDIwKSx7cG9sbDooKT0+e28ucmVzZXQoKX0sZW5hYmxlZDp0PT57aT10fX19KChmdW5jdGlvbigpe2xldCB0PXByb2Nlc3MuaHJ0aW1lKCk7cmV0dXJue2dldFRpbWVNczooKT0+e2NvbnN0W24sZV09cHJvY2Vzcy5ocnRpbWUodCk7cmV0dXJuIE1hdGguZmxvb3IoMWUzKm4rZS8xZTYpfSxyZXNldDooKT0+e3Q9cHJvY2Vzcy5ocnRpbWUoKX19fSksZG4ucG9sbEludGVydmFsLGRuLmFuclRocmVzaG9sZCwoZnVuY3Rpb24oKXtnbigiV2F0Y2hkb2cgdGltZW91dCIpLHhuPyhnbigiUGF1c2luZyBkZWJ1Z2dlciB0byBjYXB0dXJlIHN0YWNrIHRyYWNlIikseG4oKSk6KGduKCJDYXB0dXJpbmcgZXZlbnQgd2l0aG91dCBhIHN0YWNrIHRyYWNlIiksRW4oKS50aGVuKG51bGwsKCgpPT57Z24oIlNlbmRpbmcgQU5SIGV2ZW50IGZhaWxlZCBvbiB3YXRjaGRvZyB0aW1lb3V0LiIpfSkpKX0pKTtuPy5vbigibWVzc2FnZSIsKHQ9Pnt0LnNlc3Npb24mJihtbj15dCh0LnNlc3Npb24pKSxObigpfSkpOw==",Jje=50,$je=5e3;function FM(t,...e){kM.logger.log(`[ANR] ${t}`,...e)}function Qje(){return kM.GLOBAL_OBJ}function eHe(){let t=_i.getGlobalScope().getScopeData();return _i.mergeScopeData(t,_i.getIsolationScope().getScopeData()),_i.mergeScopeData(t,_i.getCurrentScope().getScopeData()),t.attachments=[],t.eventProcessors=[],t}async function tHe(t){let e={message:"ANR"},r={};for(let n of t.getEventProcessors()){if(e===null)break;e=await n(e,r)}return Zje([e,"optionalAccess",n=>n.contexts])||{}}var rHe="Anr",nHe=(t={})=>{if(HM.NODE_VERSION.major<16||HM.NODE_VERSION.major===16&&HM.NODE_VERSION.minor<17)throw new Error("ANR detection requires Node 16.17.0 or later");let e,r,n=Qje();return n.__SENTRY_GET_SCOPES__=eHe,{name:rHe,startWorker:()=>{e||r&&(e=iHe(r,t))},stopWorker:()=>{e&&e.then(o=>{o(),e=void 0})},setup(o){r=o,setImmediate(()=>this.startWorker())}}},oHe=_i.defineIntegration(nHe);async function iHe(t,e){let r=t.getDsn();if(!r)return()=>{};let n=await tHe(t);s$([n,"access",l=>l.app,"optionalAccess",l=>delete l.app_memory]),s$([n,"access",l=>l.device,"optionalAccess",l=>delete l.free_memory]);let o=t.getOptions(),i=t.getSdkMetadata()||{};i.sdk&&(i.sdk.integrations=o.integrations.map(l=>l.name));let s={debug:kM.logger.isEnabled(),dsn:r,tunnel:o.tunnel,environment:o.environment||"production",release:o.release,dist:o.dist,sdkMetadata:i,appRootPath:e.appRootPath,pollInterval:e.pollInterval||Jje,anrThreshold:e.anrThreshold||$je,captureStackTrace:!!e.captureStackTrace,staticTags:e.staticTags||{},contexts:n};if(s.captureStackTrace){let l=await import("node:inspector");l.url()||l.open(0)}let a=new zje.Worker(new URL(`data:application/javascript;base64,${a$}`),{workerData:s,execArgv:[]});process.on("exit",()=>{a.terminate()});let u=setInterval(()=>{try{let l=_i.getCurrentScope().getSession(),d=l?{...l,toJSON:void 0}:void 0;a.postMessage({session:d})}catch{}},s.pollInterval);return u.unref(),a.on("message",l=>{l==="session-ended"&&(FM("ANR event sent from ANR worker. Clearing session in this thread."),_i.getCurrentScope().setSession(void 0))}),a.once("error",l=>{clearInterval(u),FM("ANR worker error",l)}),a.once("exit",l=>{clearInterval(u),FM("ANR worker exit",l)}),a.unref(),()=>{a.terminate(),clearInterval(u)}}Bm.anrIntegration=oHe;Bm.base64WorkerScript=a$});var qm=c(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.ExpressLayerType=void 0;var sHe;(function(t){t.ROUTER="router",t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})(sHe=Jd.ExpressLayerType||(Jd.ExpressLayerType={}))});var jm=c($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.AttributeNames=void 0;var aHe;(function(t){t.EXPRESS_TYPE="express.type",t.EXPRESS_NAME="express.name"})(aHe=$d.AttributeNames||($d.AttributeNames={}))});var WM=c(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu._LAYERS_STORE_PROPERTY=Bu.kLayerPatched=void 0;Bu.kLayerPatched=Symbol("express-layer-patched");Bu._LAYERS_STORE_PROPERTY="__ot_middlewares"});var l$=c(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.getLayerPath=Lt.asErrorAndMessage=Lt.isLayerIgnored=Lt.getLayerMetadata=Lt.getRouterPath=Lt.storeLayerPath=void 0;var YM=qm(),qu=jm(),KM=WM(),uHe=(t,e)=>{Array.isArray(t[KM._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(t,KM._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),e!==void 0&&t[KM._LAYERS_STORE_PROPERTY].push(e)};Lt.storeLayerPath=uHe;var cHe=(t,e)=>{var r,n,o,i;let s=(n=(r=e.handle)===null||r===void 0?void 0:r.stack)===null||n===void 0?void 0:n[0];return!((o=s?.route)===null||o===void 0)&&o.path?`${t}${s.route.path}`:!((i=s?.handle)===null||i===void 0)&&i.stack?(0,Lt.getRouterPath)(t,s):t};Lt.getRouterPath=cHe;var lHe=(t,e,r)=>{var n;if(e.name==="router"){let o=(0,Lt.getRouterPath)("",e),i=o||r||t||"/";return{attributes:{[qu.AttributeNames.EXPRESS_NAME]:i,[qu.AttributeNames.EXPRESS_TYPE]:YM.ExpressLayerType.ROUTER},name:`router - ${i}`}}else return e.name==="bound dispatch"?{attributes:{[qu.AttributeNames.EXPRESS_NAME]:(n=t||r)!==null&&n!==void 0?n:"request handler",[qu.AttributeNames.EXPRESS_TYPE]:YM.ExpressLayerType.REQUEST_HANDLER},name:`request handler${e.path?` - ${t||r}`:""}`}:{attributes:{[qu.AttributeNames.EXPRESS_NAME]:e.name,[qu.AttributeNames.EXPRESS_TYPE]:YM.ExpressLayerType.MIDDLEWARE},name:`middleware - ${e.name}`}};Lt.getLayerMetadata=lHe;var dHe=(t,e)=>{if(typeof e=="string")return e===t;if(e instanceof RegExp)return e.test(t);if(typeof e=="function")return e(t);throw new TypeError("Pattern is in unsupported datatype")},pHe=(t,e,r)=>{var n;if(Array.isArray(r?.ignoreLayersType)&&(!((n=r?.ignoreLayersType)===null||n===void 0)&&n.includes(e)))return!0;if(Array.isArray(r?.ignoreLayers)===!1)return!1;try{for(let o of r.ignoreLayers)if(dHe(t,o))return!0}catch{}return!1};Lt.isLayerIgnored=pHe;var _He=t=>t instanceof Error?[t,t.message]:[String(t),String(t)];Lt.asErrorAndMessage=_He;var fHe=t=>{let e=t[0];return Array.isArray(e)?e.map(r=>c$(r)||"").join(","):c$(e)};Lt.getLayerPath=fHe;var c$=t=>{if(typeof t=="string")return t;if(t instanceof RegExp||typeof t=="number")return t.toString()}});var d$=c(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.PACKAGE_NAME=ju.PACKAGE_VERSION=void 0;ju.PACKAGE_VERSION="0.44.0";ju.PACKAGE_NAME="@opentelemetry/instrumentation-express"});var p$=c(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.SeverityNumber=void 0;var gHe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(gHe=Qd.SeverityNumber||(Qd.SeverityNumber={}))});var Fm=c(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.NOOP_LOGGER=Hu.NoopLogger=void 0;var Hm=class{emit(e){}};Hu.NoopLogger=Hm;Hu.NOOP_LOGGER=new Hm});var Wm=c(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.NOOP_LOGGER_PROVIDER=Fu.NoopLoggerProvider=void 0;var EHe=Fm(),km=class{getLogger(e,r,n){return new EHe.NoopLogger}};Fu.NoopLoggerProvider=km;Fu.NOOP_LOGGER_PROVIDER=new km});var ZM=c(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.ProxyLogger=void 0;var hHe=Fm(),XM=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):hHe.NOOP_LOGGER}};Ym.ProxyLogger=XM});var JM=c(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.ProxyLoggerProvider=void 0;var mHe=Wm(),THe=ZM(),zM=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new THe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:mHe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};Km.ProxyLoggerProvider=zM});var _$=c(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm._globalThis=void 0;Xm._globalThis=typeof globalThis=="object"?globalThis:global});var f$=c(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm._globalThis=void 0;var SHe=_$();Object.defineProperty(Zm,"_globalThis",{enumerable:!0,get:function(){return SHe._globalThis}})});var g$=c(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm._globalThis=void 0;var AHe=f$();Object.defineProperty(zm,"_globalThis",{enumerable:!0,get:function(){return AHe._globalThis}})});var E$=c(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.API_BACKWARDS_COMPATIBILITY_VERSION=In.makeGetter=In._global=In.GLOBAL_LOGS_API_KEY=void 0;var RHe=g$();In.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");In._global=RHe._globalThis;function OHe(t,e,r){return n=>n===t?e:r}In.makeGetter=OHe;In.API_BACKWARDS_COMPATIBILITY_VERSION=1});var m$=c(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.LogsAPI=void 0;var Mr=E$(),IHe=Wm(),h$=JM(),$M=class t{constructor(){this._proxyLoggerProvider=new h$.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Mr._global[Mr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Mr._global[Mr.GLOBAL_LOGS_API_KEY]=(0,Mr.makeGetter)(Mr.API_BACKWARDS_COMPATIBILITY_VERSION,e,IHe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Mr._global[Mr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Mr._global,Mr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Mr._global[Mr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new h$.ProxyLoggerProvider}};Jm.LogsAPI=$M});var QM=c(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.logs=rt.ProxyLoggerProvider=rt.ProxyLogger=rt.NoopLoggerProvider=rt.NOOP_LOGGER_PROVIDER=rt.NoopLogger=rt.NOOP_LOGGER=rt.SeverityNumber=void 0;var bHe=p$();Object.defineProperty(rt,"SeverityNumber",{enumerable:!0,get:function(){return bHe.SeverityNumber}});var T$=Fm();Object.defineProperty(rt,"NOOP_LOGGER",{enumerable:!0,get:function(){return T$.NOOP_LOGGER}});Object.defineProperty(rt,"NoopLogger",{enumerable:!0,get:function(){return T$.NoopLogger}});var S$=Wm();Object.defineProperty(rt,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return S$.NOOP_LOGGER_PROVIDER}});Object.defineProperty(rt,"NoopLoggerProvider",{enumerable:!0,get:function(){return S$.NoopLoggerProvider}});var PHe=ZM();Object.defineProperty(rt,"ProxyLogger",{enumerable:!0,get:function(){return PHe.ProxyLogger}});var yHe=JM();Object.defineProperty(rt,"ProxyLoggerProvider",{enumerable:!0,get:function(){return yHe.ProxyLoggerProvider}});var vHe=m$();rt.logs=vHe.LogsAPI.getInstance()});var A$=c(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.disableInstrumentations=ku.enableInstrumentations=void 0;function NHe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}ku.enableInstrumentations=NHe;function CHe(t){t.forEach(e=>e.disable())}ku.disableInstrumentations=CHe});var I$=c($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.registerInstrumentations=void 0;var R$=(y(),T(P)),MHe=QM(),O$=A$();function LHe(t){var e,r;let n=t.tracerProvider||R$.trace.getTracerProvider(),o=t.meterProvider||R$.metrics.getMeterProvider(),i=t.loggerProvider||MHe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,O$.enableInstrumentations)(s,n,o,i),()=>{(0,O$.disableInstrumentations)(s)}}$m.registerInstrumentations=LHe});var b$=c(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});eT.InstrumentationAbstract=void 0;var eL=(y(),T(P)),DHe=QM(),Qm=De(),tL=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=Qm.wrap,this._unwrap=Qm.unwrap,this._massWrap=Qm.massWrap,this._massUnwrap=Qm.massUnwrap,this.setConfig(n),this._diag=eL.diag.createComponentLogger({namespace:e}),this._tracer=eL.trace.getTracer(e,r),this._meter=eL.metrics.getMeter(e,r),this._logger=DHe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};eT.InstrumentationAbstract=tL});var P$=c(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.ModuleNameTrie=fi.ModuleNameSeparator=void 0;fi.ModuleNameSeparator="/";var tT=class{constructor(){this.hooks=[],this.children=new Map}},rL=class{constructor(){this._trie=new tT,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(fi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new tT,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(fi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};fi.ModuleNameTrie=rL});var v$=c(rT=>{"use strict";Object.defineProperty(rT,"__esModule",{value:!0});rT.RequireInTheMiddleSingleton=void 0;var GHe=Ue(),y$=m("path"),nL=P$(),UHe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),oL=class t{constructor(){this._moduleNameTrie=new nL.ModuleNameTrie,this._initialize()}_initialize(){new GHe.Hook(null,{internals:!0},(e,r,n)=>{let o=xHe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return UHe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};rT.RequireInTheMiddleSingleton=oL;function xHe(t){return y$.sep!==nL.ModuleNameSeparator?t.split(y$.sep).join(nL.ModuleNameSeparator):t}});var iL=c(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.isWrapped=gi.safeExecuteInTheMiddleAsync=gi.safeExecuteInTheMiddle=void 0;function wHe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}gi.safeExecuteInTheMiddle=wHe;async function VHe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}gi.safeExecuteInTheMiddleAsync=VHe;function BHe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}gi.isWrapped=BHe});var M$=c(nT=>{"use strict";Object.defineProperty(nT,"__esModule",{value:!0});nT.InstrumentationBase=void 0;var sL=m("path"),N$=m("util"),qHe=Sr(),aL=De(),jHe=b$(),HHe=v$(),FHe=Or(),ep=(y(),T(P)),kHe=Ue(),WHe=m("fs"),YHe=iL(),uL=class extends jHe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=HHe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,YHe.isWrapped)(i[s])&&this._unwrap(i,s),N$.types.isProxy(i)){let u=(0,aL.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,aL.wrap)(i,s,a)},this._unwrap=(i,s)=>N$.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,aL.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{ep.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){ep.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{ep.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){ep.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=m.resolve(r);m.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,WHe.readFileSync)(sL.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{ep.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return C$(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=sL.normalize(n);return a.filter(d=>d.name===u).filter(d=>C$(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=sL.isAbsolute(e.name)?new kHe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new FHe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};nT.InstrumentationBase=uL;function C$(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,qHe.satisfies)(e,n,{includePrerelease:r}))}});var L$=c(oT=>{"use strict";Object.defineProperty(oT,"__esModule",{value:!0});oT.normalize=void 0;var KHe=m("path");Object.defineProperty(oT,"normalize",{enumerable:!0,get:function(){return KHe.normalize}})});var D$=c(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.normalize=Wu.InstrumentationBase=void 0;var XHe=M$();Object.defineProperty(Wu,"InstrumentationBase",{enumerable:!0,get:function(){return XHe.InstrumentationBase}});var ZHe=L$();Object.defineProperty(Wu,"normalize",{enumerable:!0,get:function(){return ZHe.normalize}})});var cL=c(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.normalize=Yu.InstrumentationBase=void 0;var G$=D$();Object.defineProperty(Yu,"InstrumentationBase",{enumerable:!0,get:function(){return G$.InstrumentationBase}});Object.defineProperty(Yu,"normalize",{enumerable:!0,get:function(){return G$.normalize}})});var U$=c(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});iT.InstrumentationNodeModuleDefinition=void 0;var lL=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};iT.InstrumentationNodeModuleDefinition=lL});var x$=c(sT=>{"use strict";Object.defineProperty(sT,"__esModule",{value:!0});sT.InstrumentationNodeModuleFile=void 0;var zHe=cL(),dL=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,zHe.normalize)(e)}};sT.InstrumentationNodeModuleFile=dL});var w$=c(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.safeExecuteInTheMiddleAsync=Dt.safeExecuteInTheMiddle=Dt.isWrapped=Dt.InstrumentationNodeModuleFile=Dt.InstrumentationNodeModuleDefinition=Dt.InstrumentationBase=Dt.registerInstrumentations=void 0;var JHe=I$();Object.defineProperty(Dt,"registerInstrumentations",{enumerable:!0,get:function(){return JHe.registerInstrumentations}});var $He=cL();Object.defineProperty(Dt,"InstrumentationBase",{enumerable:!0,get:function(){return $He.InstrumentationBase}});var QHe=U$();Object.defineProperty(Dt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return QHe.InstrumentationNodeModuleDefinition}});var eFe=x$();Object.defineProperty(Dt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return eFe.InstrumentationNodeModuleFile}});var pL=iL();Object.defineProperty(Dt,"isWrapped",{enumerable:!0,get:function(){return pL.isWrapped}});Object.defineProperty(Dt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return pL.safeExecuteInTheMiddle}});Object.defineProperty(Dt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return pL.safeExecuteInTheMiddleAsync}})});var H$=c(aT=>{"use strict";Object.defineProperty(aT,"__esModule",{value:!0});aT.ExpressInstrumentation=void 0;var V$=ue(),ks=(y(),T(P)),B$=qm(),q$=jm(),Ei=l$(),j$=d$(),Ku=w$(),tFe=(Q(),T($)),tp=WM(),_L=class extends Ku.InstrumentationBase{constructor(e={}){super(j$.PACKAGE_NAME,j$.PACKAGE_VERSION,e)}init(){return[new Ku.InstrumentationNodeModuleDefinition("express",[">=4.0.0 <5"],e=>{let r=e.Router;return(0,Ku.isWrapped)(r.route)&&this._unwrap(r,"route"),this._wrap(r,"route",this._getRoutePatch()),(0,Ku.isWrapped)(r.use)&&this._unwrap(r,"use"),this._wrap(r,"use",this._getRouterUsePatch()),(0,Ku.isWrapped)(e.application.use)&&this._unwrap(e.application,"use"),this._wrap(e.application,"use",this._getAppUsePatch()),e},e=>{if(e===void 0)return;let r=e.Router;this._unwrap(r,"route"),this._unwrap(r,"use"),this._unwrap(e.application,"use")})]}_getRoutePatch(){let e=this;return function(r){return function(...o){let i=r.apply(this,o),s=this.stack[this.stack.length-1];return e._applyPatch(s,(0,Ei.getLayerPath)(o)),i}}}_getRouterUsePatch(){let e=this;return function(r){return function(...o){let i=r.apply(this,o),s=this.stack[this.stack.length-1];return e._applyPatch(s,(0,Ei.getLayerPath)(o)),i}}}_getAppUsePatch(){let e=this;return function(r){return function(...o){let i=r.apply(this,o),s=this._router.stack[this._router.stack.length-1];return e._applyPatch(s,(0,Ei.getLayerPath)(o)),i}}}_applyPatch(e,r){let n=this;e[tp.kLayerPatched]!==!0&&(e[tp.kLayerPatched]=!0,this._wrap(e,"handle",o=>{if(o.length===4)return o;let i=function(s,a){(0,Ei.storeLayerPath)(s,r);let u=s[tp._LAYERS_STORE_PROPERTY].filter(L=>L!=="/"&&L!=="/*").join("").replace(/\/{2,}/g,"/"),l={[tFe.SEMATTRS_HTTP_ROUTE]:u.length>0?u:"/"},d=(0,Ei.getLayerMetadata)(u,e,r),p=d.attributes[q$.AttributeNames.EXPRESS_TYPE],_=(0,V$.getRPCMetadata)(ks.context.active());if(_?.type===V$.RPCType.HTTP&&(_.route=u||"/"),(0,Ei.isLayerIgnored)(d.name,p,n.getConfig()))return p===B$.ExpressLayerType.MIDDLEWARE&&s[tp._LAYERS_STORE_PROPERTY].pop(),o.apply(this,arguments);if(ks.trace.getSpan(ks.context.active())===void 0)return o.apply(this,arguments);let f=n._getSpanName({request:s,layerType:p,route:u},d.name),g=n.tracer.startSpan(f,{attributes:Object.assign(l,d.attributes)}),{requestHook:E}=n.getConfig();E&&(0,Ku.safeExecuteInTheMiddle)(()=>E(g,{request:s,layerType:p,route:u}),L=>{L&&ks.diag.error("express instrumentation: request hook failed",L)},!0);let S=!1;d.attributes[q$.AttributeNames.EXPRESS_TYPE]!==B$.ExpressLayerType.MIDDLEWARE&&(g.end(),S=!0);let v=()=>{S===!1&&(S=!0,g.end())},M=Array.from(arguments),D=M.findIndex(L=>typeof L=="function");D>=0&&(arguments[D]=function(){var L;let N=arguments[0],G=![void 0,null,"route","router"].includes(N);if(!S&&G){let[te,J]=(0,Ei.asErrorAndMessage)(N);g.recordException(te),g.setStatus({code:ks.SpanStatusCode.ERROR,message:J})}return S===!1&&(S=!0,(L=s.res)===null||L===void 0||L.removeListener("finish",v),g.end()),s.route&&G||s[tp._LAYERS_STORE_PROPERTY].pop(),M[D].apply(this,arguments)});try{return o.apply(this,arguments)}catch(L){let[N,G]=(0,Ei.asErrorAndMessage)(L);throw g.recordException(N),g.setStatus({code:ks.SpanStatusCode.ERROR,message:G}),L}finally{S||a.once("finish",v)}};for(let s in o)Object.defineProperty(i,s,{get(){return o[s]},set(a){o[s]=a}});return i}))}_getSpanName(e,r){var n;let{spanNameHook:o}=this.getConfig();if(!(o instanceof Function))return r;try{return(n=o(e,r))!==null&&n!==void 0?n:r}catch(i){return ks.diag.error("express instrumentation: error calling span name rewrite hook",i),r}}};aT.ExpressInstrumentation=_L});var k$=c(F$=>{"use strict";Object.defineProperty(F$,"__esModule",{value:!0})});var W$=c(bn=>{"use strict";var rFe=bn&&bn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),uT=bn&&bn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&rFe(e,t,r)};Object.defineProperty(bn,"__esModule",{value:!0});uT(H$(),bn);uT(qm(),bn);uT(jm(),bn);uT(k$(),bn)});var Y$=c(fL=>{Object.defineProperty(fL,"__esModule",{value:!0});var nFe=Vu(),oFe=t=>({package:t,"javascript.is_cjs":nFe.isCjs()});fL.createMissingInstrumentationContext=oFe});var Xu=c(gL=>{var{_optionalChain:iFe}=b();Object.defineProperty(gL,"__esModule",{value:!0});var sFe=ue(),cT=W(),aFe=b(),uFe=Vu(),cFe=Y$();function lFe(t,e){let r=cT.getClient();!iFe([r,"optionalAccess",n=>n.getOptions,"call",n=>n(),"access",n=>n.disableInstrumentationWarnings])&&!sFe.isWrapped(t)&&cT.isEnabled()&&cT.hasTracingEnabled()&&(aFe.consoleSandbox(()=>{uFe.isCjs()?console.warn(`[Sentry] ${e} is not instrumented. This is likely because you required/imported ${e} before calling \`Sentry.init()\`.`):console.warn(`[Sentry] ${e} is not instrumented. Please make sure to initialize Sentry in a separate file that you \`--import\` when running node, see: https://docs.sentry.io/platforms/javascript/guides/${e}/install/esm/.`)}),cT.getGlobalScope().setContext("missing_instrumentation",cFe.createMissingInstrumentationContext(e)))}gL.ensureIsWrapped=lFe});var EL=c(Zu=>{var{_optionalChain:dFe}=b();Object.defineProperty(Zu,"__esModule",{value:!0});var pFe=W$(),lo=W(),_Fe=b(),fFe=On(),gFe=Pe(),EFe=Sn(),hFe=Xu(),K$="Express",X$=gFe.generateInstrumentOnce(K$,()=>new pFe.ExpressInstrumentation({requestHook(t){EFe.addOriginToSpan(t,"auto.http.otel.express");let e=lo.spanToJSON(t).data||{},r=e["express.type"];r&&t.setAttribute(lo.SEMANTIC_ATTRIBUTE_SENTRY_OP,`${r}.express`);let n=e["express.name"];typeof n=="string"&&t.updateName(n)},spanNameHook(t,e){if(lo.getIsolationScope()===lo.getDefaultIsolationScope())return fFe.DEBUG_BUILD&&_Fe.logger.warn("Isolation scope is still default isolation scope - skipping setting transactionName"),e;if(t.layerType==="request_handler"){let r=t.request,n=r.method?r.method.toUpperCase():"GET";lo.getIsolationScope().setTransactionName(`${n} ${t.route}`)}return e}})),mFe=()=>({name:K$,setupOnce(){X$()}}),TFe=lo.defineIntegration(mFe);function Z$(t){return function(r,n,o,i){if((dFe([t,"optionalAccess",a=>a.shouldHandleError])||RFe)(r)){let a=lo.getClient();if(a&&a.getOptions().autoSessionTracking&&a._sessionFlusher!==void 0){let d=lo.getIsolationScope().getRequestSession();d&&d.status!==void 0&&(d.status="crashed")}let u=lo.captureException(r,{mechanism:{type:"middleware",handled:!1}});o.sentry=u,i(r);return}i(r)}}function SFe(t,e){t.use(Z$(e)),hFe.ensureIsWrapped(t.use,"express")}function AFe(t){let e=t.status||t.statusCode||t.status_code||t.output&&t.output.statusCode;return e?parseInt(e,10):500}function RFe(t){return AFe(t)>=500}Zu.expressErrorHandler=Z$;Zu.expressIntegration=TFe;Zu.instrumentExpress=X$;Zu.setupExpressErrorHandler=SFe});var hL=c(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.FastifyNames=Jr.FastifyTypes=Jr.AttributeNames=void 0;var OFe;(function(t){t.FASTIFY_NAME="fastify.name",t.FASTIFY_TYPE="fastify.type",t.HOOK_NAME="hook.name",t.PLUGIN_NAME="plugin.name"})(OFe=Jr.AttributeNames||(Jr.AttributeNames={}));var IFe;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})(IFe=Jr.FastifyTypes||(Jr.FastifyTypes={}));var bFe;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request handler"})(bFe=Jr.FastifyNames||(Jr.FastifyNames={}))});var J$=c(z$=>{"use strict";Object.defineProperty(z$,"__esModule",{value:!0})});var $$=c(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.SeverityNumber=void 0;var PFe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(PFe=rp.SeverityNumber||(rp.SeverityNumber={}))});var dT=c(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.NOOP_LOGGER=zu.NoopLogger=void 0;var lT=class{emit(e){}};zu.NoopLogger=lT;zu.NOOP_LOGGER=new lT});var _T=c(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.NOOP_LOGGER_PROVIDER=Ju.NoopLoggerProvider=void 0;var yFe=dT(),pT=class{getLogger(e,r,n){return new yFe.NoopLogger}};Ju.NoopLoggerProvider=pT;Ju.NOOP_LOGGER_PROVIDER=new pT});var TL=c(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});fT.ProxyLogger=void 0;var vFe=dT(),mL=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):vFe.NOOP_LOGGER}};fT.ProxyLogger=mL});var AL=c(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});gT.ProxyLoggerProvider=void 0;var NFe=_T(),CFe=TL(),SL=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new CFe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:NFe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};gT.ProxyLoggerProvider=SL});var Q$=c(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});ET._globalThis=void 0;ET._globalThis=typeof globalThis=="object"?globalThis:global});var eQ=c(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});hT._globalThis=void 0;var MFe=Q$();Object.defineProperty(hT,"_globalThis",{enumerable:!0,get:function(){return MFe._globalThis}})});var tQ=c(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});mT._globalThis=void 0;var LFe=eQ();Object.defineProperty(mT,"_globalThis",{enumerable:!0,get:function(){return LFe._globalThis}})});var rQ=c(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.API_BACKWARDS_COMPATIBILITY_VERSION=Pn.makeGetter=Pn._global=Pn.GLOBAL_LOGS_API_KEY=void 0;var DFe=tQ();Pn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Pn._global=DFe._globalThis;function GFe(t,e,r){return n=>n===t?e:r}Pn.makeGetter=GFe;Pn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var oQ=c(TT=>{"use strict";Object.defineProperty(TT,"__esModule",{value:!0});TT.LogsAPI=void 0;var Lr=rQ(),UFe=_T(),nQ=AL(),RL=class t{constructor(){this._proxyLoggerProvider=new nQ.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Lr._global[Lr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Lr._global[Lr.GLOBAL_LOGS_API_KEY]=(0,Lr.makeGetter)(Lr.API_BACKWARDS_COMPATIBILITY_VERSION,e,UFe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Lr._global[Lr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Lr._global,Lr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Lr._global[Lr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new nQ.ProxyLoggerProvider}};TT.LogsAPI=RL});var OL=c(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.logs=nt.ProxyLoggerProvider=nt.ProxyLogger=nt.NoopLoggerProvider=nt.NOOP_LOGGER_PROVIDER=nt.NoopLogger=nt.NOOP_LOGGER=nt.SeverityNumber=void 0;var xFe=$$();Object.defineProperty(nt,"SeverityNumber",{enumerable:!0,get:function(){return xFe.SeverityNumber}});var iQ=dT();Object.defineProperty(nt,"NOOP_LOGGER",{enumerable:!0,get:function(){return iQ.NOOP_LOGGER}});Object.defineProperty(nt,"NoopLogger",{enumerable:!0,get:function(){return iQ.NoopLogger}});var sQ=_T();Object.defineProperty(nt,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return sQ.NOOP_LOGGER_PROVIDER}});Object.defineProperty(nt,"NoopLoggerProvider",{enumerable:!0,get:function(){return sQ.NoopLoggerProvider}});var wFe=TL();Object.defineProperty(nt,"ProxyLogger",{enumerable:!0,get:function(){return wFe.ProxyLogger}});var VFe=AL();Object.defineProperty(nt,"ProxyLoggerProvider",{enumerable:!0,get:function(){return VFe.ProxyLoggerProvider}});var BFe=oQ();nt.logs=BFe.LogsAPI.getInstance()});var aQ=c($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.disableInstrumentations=$u.enableInstrumentations=void 0;function qFe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}$u.enableInstrumentations=qFe;function jFe(t){t.forEach(e=>e.disable())}$u.disableInstrumentations=jFe});var lQ=c(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});ST.registerInstrumentations=void 0;var uQ=(y(),T(P)),HFe=OL(),cQ=aQ();function FFe(t){var e,r;let n=t.tracerProvider||uQ.trace.getTracerProvider(),o=t.meterProvider||uQ.metrics.getMeterProvider(),i=t.loggerProvider||HFe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,cQ.enableInstrumentations)(s,n,o,i),()=>{(0,cQ.disableInstrumentations)(s)}}ST.registerInstrumentations=FFe});var dQ=c(RT=>{"use strict";Object.defineProperty(RT,"__esModule",{value:!0});RT.InstrumentationAbstract=void 0;var IL=(y(),T(P)),kFe=OL(),AT=De(),bL=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=AT.wrap,this._unwrap=AT.unwrap,this._massWrap=AT.massWrap,this._massUnwrap=AT.massUnwrap,this.setConfig(n),this._diag=IL.diag.createComponentLogger({namespace:e}),this._tracer=IL.trace.getTracer(e,r),this._meter=IL.metrics.getMeter(e,r),this._logger=kFe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};RT.InstrumentationAbstract=bL});var pQ=c(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.ModuleNameTrie=hi.ModuleNameSeparator=void 0;hi.ModuleNameSeparator="/";var OT=class{constructor(){this.hooks=[],this.children=new Map}},PL=class{constructor(){this._trie=new OT,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(hi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new OT,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(hi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};hi.ModuleNameTrie=PL});var fQ=c(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.RequireInTheMiddleSingleton=void 0;var WFe=Ue(),_Q=m("path"),yL=pQ(),YFe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),vL=class t{constructor(){this._moduleNameTrie=new yL.ModuleNameTrie,this._initialize()}_initialize(){new WFe.Hook(null,{internals:!0},(e,r,n)=>{let o=KFe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return YFe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};IT.RequireInTheMiddleSingleton=vL;function KFe(t){return _Q.sep!==yL.ModuleNameSeparator?t.split(_Q.sep).join(yL.ModuleNameSeparator):t}});var NL=c(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.isWrapped=mi.safeExecuteInTheMiddleAsync=mi.safeExecuteInTheMiddle=void 0;function XFe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}mi.safeExecuteInTheMiddle=XFe;async function ZFe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}mi.safeExecuteInTheMiddleAsync=ZFe;function zFe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}mi.isWrapped=zFe});var hQ=c(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});bT.InstrumentationBase=void 0;var CL=m("path"),gQ=m("util"),JFe=Sr(),ML=De(),$Fe=dQ(),QFe=fQ(),eke=Or(),np=(y(),T(P)),tke=Ue(),rke=m("fs"),nke=NL(),LL=class extends $Fe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=QFe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,nke.isWrapped)(i[s])&&this._unwrap(i,s),gQ.types.isProxy(i)){let u=(0,ML.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,ML.wrap)(i,s,a)},this._unwrap=(i,s)=>gQ.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,ML.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{np.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){np.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{np.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){np.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=m.resolve(r);m.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,rke.readFileSync)(CL.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{np.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return EQ(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=CL.normalize(n);return a.filter(d=>d.name===u).filter(d=>EQ(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=CL.isAbsolute(e.name)?new tke.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new eke.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};bT.InstrumentationBase=LL;function EQ(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,JFe.satisfies)(e,n,{includePrerelease:r}))}});var mQ=c(PT=>{"use strict";Object.defineProperty(PT,"__esModule",{value:!0});PT.normalize=void 0;var oke=m("path");Object.defineProperty(PT,"normalize",{enumerable:!0,get:function(){return oke.normalize}})});var TQ=c(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.normalize=Qu.InstrumentationBase=void 0;var ike=hQ();Object.defineProperty(Qu,"InstrumentationBase",{enumerable:!0,get:function(){return ike.InstrumentationBase}});var ske=mQ();Object.defineProperty(Qu,"normalize",{enumerable:!0,get:function(){return ske.normalize}})});var DL=c(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.normalize=ec.InstrumentationBase=void 0;var SQ=TQ();Object.defineProperty(ec,"InstrumentationBase",{enumerable:!0,get:function(){return SQ.InstrumentationBase}});Object.defineProperty(ec,"normalize",{enumerable:!0,get:function(){return SQ.normalize}})});var AQ=c(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.InstrumentationNodeModuleDefinition=void 0;var GL=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};yT.InstrumentationNodeModuleDefinition=GL});var RQ=c(vT=>{"use strict";Object.defineProperty(vT,"__esModule",{value:!0});vT.InstrumentationNodeModuleFile=void 0;var ake=DL(),UL=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,ake.normalize)(e)}};vT.InstrumentationNodeModuleFile=UL});var OQ=c(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.safeExecuteInTheMiddleAsync=Gt.safeExecuteInTheMiddle=Gt.isWrapped=Gt.InstrumentationNodeModuleFile=Gt.InstrumentationNodeModuleDefinition=Gt.InstrumentationBase=Gt.registerInstrumentations=void 0;var uke=lQ();Object.defineProperty(Gt,"registerInstrumentations",{enumerable:!0,get:function(){return uke.registerInstrumentations}});var cke=DL();Object.defineProperty(Gt,"InstrumentationBase",{enumerable:!0,get:function(){return cke.InstrumentationBase}});var lke=AQ();Object.defineProperty(Gt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return lke.InstrumentationNodeModuleDefinition}});var dke=RQ();Object.defineProperty(Gt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return dke.InstrumentationNodeModuleFile}});var xL=NL();Object.defineProperty(Gt,"isWrapped",{enumerable:!0,get:function(){return xL.isWrapped}});Object.defineProperty(Gt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return xL.safeExecuteInTheMiddle}});Object.defineProperty(Gt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return xL.safeExecuteInTheMiddleAsync}})});var wL=c(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.hooksNamesToWrap=tc.spanRequestSymbol=void 0;tc.spanRequestSymbol=Symbol("opentelemetry.instrumentation.fastify.request_active_span");tc.hooksNamesToWrap=new Set(["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError"])});var bQ=c(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.safeExecuteInTheMiddleMaybePromise=Ti.endSpan=Ti.startSpan=void 0;var pke=(y(),T(P)),NT=wL();function _ke(t,e,r,n={}){let o=e.startSpan(r,{attributes:n}),i=t[NT.spanRequestSymbol]||[];return i.push(o),Object.defineProperty(t,NT.spanRequestSymbol,{enumerable:!1,configurable:!0,value:i}),o}Ti.startSpan=_ke;function fke(t,e){let r=t[NT.spanRequestSymbol]||[];r.length&&(r.forEach(n=>{e&&(n.setStatus({code:pke.SpanStatusCode.ERROR,message:e.message}),n.recordException(e)),n.end()}),delete t[NT.spanRequestSymbol])}Ti.endSpan=fke;function gke(t,e,r){let n,o;try{o=t(),IQ(o)&&o.then(i=>e(void 0,i),i=>e(i))}catch(i){n=i}finally{if(!IQ(o)&&(e(n,o),n&&!r))throw n;return o}}Ti.safeExecuteInTheMiddleMaybePromise=gke;function IQ(t){var e;return typeof t=="object"&&t&&typeof((e=Object.getOwnPropertyDescriptor(t,"then"))===null||e===void 0?void 0:e.value)=="function"||!1}});var PQ=c(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.PACKAGE_NAME=rc.PACKAGE_VERSION=void 0;rc.PACKAGE_VERSION="0.41.0";rc.PACKAGE_NAME="@opentelemetry/instrumentation-fastify"});var NQ=c(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.FastifyInstrumentation=Ai.ANONYMOUS_NAME=void 0;var Si=(y(),T(P)),yQ=ue(),CT=OQ(),Eke=(Q(),T($)),hke=wL(),yn=hL(),nc=bQ(),vQ=PQ();Ai.ANONYMOUS_NAME="anonymous";var VL=class extends CT.InstrumentationBase{constructor(e={}){super(vQ.PACKAGE_NAME,vQ.PACKAGE_VERSION,e)}init(){return[new CT.InstrumentationNodeModuleDefinition("fastify",[">=3.0.0 <6"],e=>this._patchConstructor(e))]}_hookOnRequest(){let e=this;return function(n,o,i){if(!e.isEnabled())return i();e._wrap(o,"send",e._patchSend());let s=n,a=(0,yQ.getRPCMetadata)(Si.context.active()),u=s.routeOptions?s.routeOptions.url:n.routerPath;u&&a?.type===yQ.RPCType.HTTP&&(a.route=u),i()}}_wrapHandler(e,r,n,o){let i=this;return this._diag.debug("Patching fastify route.handler function"),function(...s){if(!i.isEnabled())return n.apply(this,s);let a=n.name||e||Ai.ANONYMOUS_NAME,u=`${yn.FastifyNames.MIDDLEWARE} - ${a}`,l=s[1],d=(0,nc.startSpan)(l,i.tracer,u,{[yn.AttributeNames.FASTIFY_TYPE]:yn.FastifyTypes.MIDDLEWARE,[yn.AttributeNames.PLUGIN_NAME]:e,[yn.AttributeNames.HOOK_NAME]:r}),p=o&&s[s.length-1];return p&&(s[s.length-1]=function(..._){(0,nc.endSpan)(l),p.apply(this,_)}),Si.context.with(Si.trace.setSpan(Si.context.active(),d),()=>(0,nc.safeExecuteInTheMiddleMaybePromise)(()=>n.apply(this,s),_=>{_ instanceof Error&&(d.setStatus({code:Si.SpanStatusCode.ERROR,message:_.message}),d.recordException(_)),o||(0,nc.endSpan)(l)}))}}_wrapAddHook(){let e=this;return this._diag.debug("Patching fastify server.addHook function"),function(r){return function(...o){let i=o[0],s=o[1],a=this.pluginName;if(!hke.hooksNamesToWrap.has(i))return r.apply(this,o);let u=typeof o[o.length-1]=="function"&&s.constructor.name!=="AsyncFunction";return r.apply(this,[i,e._wrapHandler(a,i,s,u)])}}}_patchConstructor(e){let r=this;function n(...o){let i=e.fastify.apply(this,o);return i.addHook("onRequest",r._hookOnRequest()),i.addHook("preHandler",r._hookPreHandler()),r._wrap(i,"addHook",r._wrapAddHook()),i}return n.fastify=n,n.default=n,n}_patchSend(){let e=this;return this._diag.debug("Patching fastify reply.send function"),function(n){return function(...i){let s=i[0];return e.isEnabled()?(0,CT.safeExecuteInTheMiddle)(()=>n.apply(this,i),a=>{!a&&s instanceof Error&&(a=s),(0,nc.endSpan)(this,a)}):n.apply(this,i)}}}_hookPreHandler(){let e=this;return this._diag.debug("Patching fastify preHandler function"),function(n,o,i){var s,a;if(!e.isEnabled())return i();let u=n,l=((s=u.routeOptions)===null||s===void 0?void 0:s.handler)||((a=u.context)===null||a===void 0?void 0:a.handler),d=l?.name.startsWith("bound ")?l.name.substr(6):l?.name,p=`${yn.FastifyNames.REQUEST_HANDLER} - ${d||this.pluginName||Ai.ANONYMOUS_NAME}`,_={[yn.AttributeNames.PLUGIN_NAME]:this.pluginName,[yn.AttributeNames.FASTIFY_TYPE]:yn.FastifyTypes.REQUEST_HANDLER,[Eke.SEMATTRS_HTTP_ROUTE]:u.routeOptions?u.routeOptions.url:n.routerPath};d&&(_[yn.AttributeNames.FASTIFY_NAME]=d);let f=(0,nc.startSpan)(o,e.tracer,p,_),{requestHook:g}=e.getConfig();return g&&(0,CT.safeExecuteInTheMiddle)(()=>g(f,{request:n}),E=>{E&&e._diag.error("request hook failed",E)},!0),Si.context.with(Si.trace.setSpan(Si.context.active(),f),()=>{i()})}}};Ai.FastifyInstrumentation=VL});var CQ=c(po=>{"use strict";var mke=po&&po.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),BL=po&&po.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&mke(e,t,r)};Object.defineProperty(po,"__esModule",{value:!0});BL(hL(),po);BL(J$(),po);BL(NQ(),po)});var qL=c(op=>{var{_optionalChain:MQ}=b();Object.defineProperty(op,"__esModule",{value:!0});var Tke=CQ(),Ri=W(),Ske=Pe(),Ake=Xu(),LQ="Fastify",DQ=Ske.generateInstrumentOnce(LQ,()=>new Tke.FastifyInstrumentation({requestHook(t){GQ(t)}})),Rke=()=>({name:LQ,setupOnce(){DQ()}}),Oke=Ri.defineIntegration(Rke);function Ike(t){let e=Object.assign(function(n,o,i){n.addHook("onError",async(s,a,u)=>{Ri.captureException(u)}),n.addHook("onRequest",async(s,a)=>{let u=s,l=MQ([u,"access",p=>p.routeOptions,"optionalAccess",p=>p.url])||u.routerPath,d=MQ([u,"access",p=>p.routeOptions,"optionalAccess",p=>p.method])||"GET";Ri.getIsolationScope().setTransactionName(`${d} ${l}`)}),i()},{[Symbol.for("skip-override")]:!0,[Symbol.for("fastify.display-name")]:"sentry-fastify-error-handler"});t.register(e);let r=Ri.getClient();r&&r.on("spanStart",n=>{GQ(n)}),Ake.ensureIsWrapped(t.addHook,"fastify")}function GQ(t){let e=Ri.spanToJSON(t).data||{},r=e["fastify.type"];if(e[Ri.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!r)return;t.setAttributes({[Ri.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.fastify",[Ri.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.fastify`});let n=e["fastify.name"]||e["plugin.name"]||e["hook.name"];typeof n=="string"&&t.updateName(n.replace(/^fastify -> /,""))}op.fastifyIntegration=Oke;op.instrumentFastify=DQ;op.setupFastifyErrorHandler=Ike});var UQ=c(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.SeverityNumber=void 0;var bke;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(bke=ip.SeverityNumber||(ip.SeverityNumber={}))});var LT=c(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.NOOP_LOGGER=oc.NoopLogger=void 0;var MT=class{emit(e){}};oc.NoopLogger=MT;oc.NOOP_LOGGER=new MT});var GT=c(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.NOOP_LOGGER_PROVIDER=ic.NoopLoggerProvider=void 0;var Pke=LT(),DT=class{getLogger(e,r,n){return new Pke.NoopLogger}};ic.NoopLoggerProvider=DT;ic.NOOP_LOGGER_PROVIDER=new DT});var HL=c(UT=>{"use strict";Object.defineProperty(UT,"__esModule",{value:!0});UT.ProxyLogger=void 0;var yke=LT(),jL=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):yke.NOOP_LOGGER}};UT.ProxyLogger=jL});var kL=c(xT=>{"use strict";Object.defineProperty(xT,"__esModule",{value:!0});xT.ProxyLoggerProvider=void 0;var vke=GT(),Nke=HL(),FL=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new Nke.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:vke.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};xT.ProxyLoggerProvider=FL});var xQ=c(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});wT._globalThis=void 0;wT._globalThis=typeof globalThis=="object"?globalThis:global});var wQ=c(VT=>{"use strict";Object.defineProperty(VT,"__esModule",{value:!0});VT._globalThis=void 0;var Cke=xQ();Object.defineProperty(VT,"_globalThis",{enumerable:!0,get:function(){return Cke._globalThis}})});var VQ=c(BT=>{"use strict";Object.defineProperty(BT,"__esModule",{value:!0});BT._globalThis=void 0;var Mke=wQ();Object.defineProperty(BT,"_globalThis",{enumerable:!0,get:function(){return Mke._globalThis}})});var BQ=c(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.API_BACKWARDS_COMPATIBILITY_VERSION=vn.makeGetter=vn._global=vn.GLOBAL_LOGS_API_KEY=void 0;var Lke=VQ();vn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");vn._global=Lke._globalThis;function Dke(t,e,r){return n=>n===t?e:r}vn.makeGetter=Dke;vn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var jQ=c(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});qT.LogsAPI=void 0;var Dr=BQ(),Gke=GT(),qQ=kL(),WL=class t{constructor(){this._proxyLoggerProvider=new qQ.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Dr._global[Dr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Dr._global[Dr.GLOBAL_LOGS_API_KEY]=(0,Dr.makeGetter)(Dr.API_BACKWARDS_COMPATIBILITY_VERSION,e,Gke.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Dr._global[Dr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Dr._global,Dr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Dr._global[Dr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new qQ.ProxyLoggerProvider}};qT.LogsAPI=WL});var YL=c(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.logs=ot.ProxyLoggerProvider=ot.ProxyLogger=ot.NoopLoggerProvider=ot.NOOP_LOGGER_PROVIDER=ot.NoopLogger=ot.NOOP_LOGGER=ot.SeverityNumber=void 0;var Uke=UQ();Object.defineProperty(ot,"SeverityNumber",{enumerable:!0,get:function(){return Uke.SeverityNumber}});var HQ=LT();Object.defineProperty(ot,"NOOP_LOGGER",{enumerable:!0,get:function(){return HQ.NOOP_LOGGER}});Object.defineProperty(ot,"NoopLogger",{enumerable:!0,get:function(){return HQ.NoopLogger}});var FQ=GT();Object.defineProperty(ot,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return FQ.NOOP_LOGGER_PROVIDER}});Object.defineProperty(ot,"NoopLoggerProvider",{enumerable:!0,get:function(){return FQ.NoopLoggerProvider}});var xke=HL();Object.defineProperty(ot,"ProxyLogger",{enumerable:!0,get:function(){return xke.ProxyLogger}});var wke=kL();Object.defineProperty(ot,"ProxyLoggerProvider",{enumerable:!0,get:function(){return wke.ProxyLoggerProvider}});var Vke=jQ();ot.logs=Vke.LogsAPI.getInstance()});var kQ=c(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.disableInstrumentations=sc.enableInstrumentations=void 0;function Bke(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}sc.enableInstrumentations=Bke;function qke(t){t.forEach(e=>e.disable())}sc.disableInstrumentations=qke});var KQ=c(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.registerInstrumentations=void 0;var WQ=(y(),T(P)),jke=YL(),YQ=kQ();function Hke(t){var e,r;let n=t.tracerProvider||WQ.trace.getTracerProvider(),o=t.meterProvider||WQ.metrics.getMeterProvider(),i=t.loggerProvider||jke.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,YQ.enableInstrumentations)(s,n,o,i),()=>{(0,YQ.disableInstrumentations)(s)}}jT.registerInstrumentations=Hke});var XQ=c(FT=>{"use strict";Object.defineProperty(FT,"__esModule",{value:!0});FT.InstrumentationAbstract=void 0;var KL=(y(),T(P)),Fke=YL(),HT=De(),XL=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=HT.wrap,this._unwrap=HT.unwrap,this._massWrap=HT.massWrap,this._massUnwrap=HT.massUnwrap,this.setConfig(n),this._diag=KL.diag.createComponentLogger({namespace:e}),this._tracer=KL.trace.getTracer(e,r),this._meter=KL.metrics.getMeter(e,r),this._logger=Fke.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};FT.InstrumentationAbstract=XL});var ZQ=c(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.ModuleNameTrie=Oi.ModuleNameSeparator=void 0;Oi.ModuleNameSeparator="/";var kT=class{constructor(){this.hooks=[],this.children=new Map}},ZL=class{constructor(){this._trie=new kT,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Oi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new kT,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Oi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Oi.ModuleNameTrie=ZL});var JQ=c(WT=>{"use strict";Object.defineProperty(WT,"__esModule",{value:!0});WT.RequireInTheMiddleSingleton=void 0;var kke=Ue(),zQ=m("path"),zL=ZQ(),Wke=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),JL=class t{constructor(){this._moduleNameTrie=new zL.ModuleNameTrie,this._initialize()}_initialize(){new kke.Hook(null,{internals:!0},(e,r,n)=>{let o=Yke(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return Wke?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};WT.RequireInTheMiddleSingleton=JL;function Yke(t){return zQ.sep!==zL.ModuleNameSeparator?t.split(zQ.sep).join(zL.ModuleNameSeparator):t}});var $L=c(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.isWrapped=Ii.safeExecuteInTheMiddleAsync=Ii.safeExecuteInTheMiddle=void 0;function Kke(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Ii.safeExecuteInTheMiddle=Kke;async function Xke(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Ii.safeExecuteInTheMiddleAsync=Xke;function Zke(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Ii.isWrapped=Zke});var e6=c(YT=>{"use strict";Object.defineProperty(YT,"__esModule",{value:!0});YT.InstrumentationBase=void 0;var QL=m("path"),$Q=m("util"),zke=Sr(),e0=De(),Jke=XQ(),$ke=JQ(),Qke=Or(),sp=(y(),T(P)),eWe=Ue(),tWe=m("fs"),rWe=$L(),t0=class extends Jke.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=$ke.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,rWe.isWrapped)(i[s])&&this._unwrap(i,s),$Q.types.isProxy(i)){let u=(0,e0.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,e0.wrap)(i,s,a)},this._unwrap=(i,s)=>$Q.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,e0.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{sp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){sp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{sp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){sp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=m.resolve(r);m.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,tWe.readFileSync)(QL.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{sp.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return QQ(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=QL.normalize(n);return a.filter(d=>d.name===u).filter(d=>QQ(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=QL.isAbsolute(e.name)?new eWe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new Qke.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};YT.InstrumentationBase=t0;function QQ(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,zke.satisfies)(e,n,{includePrerelease:r}))}});var t6=c(KT=>{"use strict";Object.defineProperty(KT,"__esModule",{value:!0});KT.normalize=void 0;var nWe=m("path");Object.defineProperty(KT,"normalize",{enumerable:!0,get:function(){return nWe.normalize}})});var r6=c(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.normalize=ac.InstrumentationBase=void 0;var oWe=e6();Object.defineProperty(ac,"InstrumentationBase",{enumerable:!0,get:function(){return oWe.InstrumentationBase}});var iWe=t6();Object.defineProperty(ac,"normalize",{enumerable:!0,get:function(){return iWe.normalize}})});var r0=c(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.normalize=uc.InstrumentationBase=void 0;var n6=r6();Object.defineProperty(uc,"InstrumentationBase",{enumerable:!0,get:function(){return n6.InstrumentationBase}});Object.defineProperty(uc,"normalize",{enumerable:!0,get:function(){return n6.normalize}})});var o6=c(XT=>{"use strict";Object.defineProperty(XT,"__esModule",{value:!0});XT.InstrumentationNodeModuleDefinition=void 0;var n0=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};XT.InstrumentationNodeModuleDefinition=n0});var i6=c(ZT=>{"use strict";Object.defineProperty(ZT,"__esModule",{value:!0});ZT.InstrumentationNodeModuleFile=void 0;var sWe=r0(),o0=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,sWe.normalize)(e)}};ZT.InstrumentationNodeModuleFile=o0});var s6=c(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.safeExecuteInTheMiddleAsync=Ut.safeExecuteInTheMiddle=Ut.isWrapped=Ut.InstrumentationNodeModuleFile=Ut.InstrumentationNodeModuleDefinition=Ut.InstrumentationBase=Ut.registerInstrumentations=void 0;var aWe=KQ();Object.defineProperty(Ut,"registerInstrumentations",{enumerable:!0,get:function(){return aWe.registerInstrumentations}});var uWe=r0();Object.defineProperty(Ut,"InstrumentationBase",{enumerable:!0,get:function(){return uWe.InstrumentationBase}});var cWe=o6();Object.defineProperty(Ut,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return cWe.InstrumentationNodeModuleDefinition}});var lWe=i6();Object.defineProperty(Ut,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return lWe.InstrumentationNodeModuleFile}});var i0=$L();Object.defineProperty(Ut,"isWrapped",{enumerable:!0,get:function(){return i0.isWrapped}});Object.defineProperty(Ut,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return i0.safeExecuteInTheMiddle}});Object.defineProperty(Ut,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return i0.safeExecuteInTheMiddleAsync}})});var s0=c($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.SpanNames=$r.TokenKind=$r.AllowedOperationTypes=void 0;var dWe;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(dWe=$r.AllowedOperationTypes||($r.AllowedOperationTypes={}));var pWe;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(pWe=$r.TokenKind||($r.TokenKind={}));var _We;(function(t){t.EXECUTE="graphql.execute",t.PARSE="graphql.parse",t.RESOLVE="graphql.resolve",t.VALIDATE="graphql.validate",t.SCHEMA_VALIDATE="graphql.validateSchema",t.SCHEMA_PARSE="graphql.parseSchema"})(_We=$r.SpanNames||($r.SpanNames={}))});var a0=c(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.AttributeNames=void 0;var fWe;(function(t){t.SOURCE="graphql.source",t.FIELD_NAME="graphql.field.name",t.FIELD_PATH="graphql.field.path",t.FIELD_TYPE="graphql.field.type",t.OPERATION_TYPE="graphql.operation.type",t.OPERATION_NAME="graphql.operation.name",t.VARIABLES="graphql.variables.",t.ERROR_VALIDATION_NAME="graphql.validation.error"})(fWe=ap.AttributeNames||(ap.AttributeNames={}))});var zT=c(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.OTEL_GRAPHQL_DATA_SYMBOL=cc.OTEL_PATCHED_SYMBOL=void 0;cc.OTEL_PATCHED_SYMBOL=Symbol.for("opentelemetry.patched");cc.OTEL_GRAPHQL_DATA_SYMBOL=Symbol.for("opentelemetry.graphql_data")});var a6=c(JT=>{"use strict";Object.defineProperty(JT,"__esModule",{value:!0});JT.OPERATION_NOT_SUPPORTED=void 0;var zst=zT();JT.OPERATION_NOT_SUPPORTED="Operation$operationName$not supported"});var T6=c(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.wrapFieldResolver=Fe.wrapFields=Fe.getSourceFromLocation=Fe.getOperation=Fe.endSpan=Fe.addSpanSource=Fe.addInputVariableAttributes=Fe.isPromise=void 0;var dc=(y(),T(P)),bi=s0(),lc=a0(),_o=zT(),u6=Object.values(bi.AllowedOperationTypes),gWe=t=>typeof t?.then=="function";Fe.isPromise=gWe;var EWe=t=>typeof t=="object"&&t!==null;function u0(t,e,r){Array.isArray(r)?r.forEach((n,o)=>{u0(t,`${e}.${o}`,n)}):r instanceof Object?Object.entries(r).forEach(([n,o])=>{u0(t,`${e}.${n}`,o)}):t.setAttribute(`${lc.AttributeNames.VARIABLES}${String(e)}`,r)}function hWe(t,e){Object.entries(e).forEach(([r,n])=>{u0(t,r,n)})}Fe.addInputVariableAttributes=hWe;function p6(t,e,r,n,o){let i=E6(e,r,n,o);t.setAttribute(lc.AttributeNames.SOURCE,i)}Fe.addSpanSource=p6;function mWe(t,e,r,n,o){let i=_6(r,o),s=!1;if(!i){s=!0;let a=f6(r,o);i={parent:a,span:TWe(t,e,r,n,o,a.span),error:null},RWe(r,o,i)}return{spanAdded:s,field:i}}function TWe(t,e,r,n,o,i){var s,a;let u={[lc.AttributeNames.FIELD_NAME]:n.fieldName,[lc.AttributeNames.FIELD_PATH]:o.join("."),[lc.AttributeNames.FIELD_TYPE]:n.returnType.toString()},l=t.startSpan(`${bi.SpanNames.RESOLVE} ${u[lc.AttributeNames.FIELD_PATH]}`,{attributes:u},i?dc.trace.setSpan(dc.context.active(),i):void 0),d=r[_o.OTEL_GRAPHQL_DATA_SYMBOL].source,p=n.fieldNodes.find(_=>_.kind==="Field");return p&&p6(l,d.loc,e().allowValues,(s=p.loc)===null||s===void 0?void 0:s.start,(a=p.loc)===null||a===void 0?void 0:a.end),l}function SWe(t,e){e&&t.recordException(e),t.end()}Fe.endSpan=SWe;function AWe(t,e){if(!(!t||!Array.isArray(t.definitions)))return e?t.definitions.filter(r=>{var n;return u6.indexOf((n=r)===null||n===void 0?void 0:n.operation)!==-1}).find(r=>{var n,o;return e===((o=(n=r)===null||n===void 0?void 0:n.name)===null||o===void 0?void 0:o.value)}):t.definitions.find(r=>{var n;return u6.indexOf((n=r)===null||n===void 0?void 0:n.operation)!==-1})}Fe.getOperation=AWe;function RWe(t,e,r){return t[_o.OTEL_GRAPHQL_DATA_SYMBOL].fields[e.join(".")]=r}function _6(t,e){return t[_o.OTEL_GRAPHQL_DATA_SYMBOL].fields[e.join(".")]}function f6(t,e){for(let r=e.length-1;r>0;r--){let n=_6(t,e.slice(0,r));if(n)return n}return{span:t[_o.OTEL_GRAPHQL_DATA_SYMBOL].span}}function OWe(t,e){let r=[],n=e;for(;n;){let o=n.key;t&&typeof o=="number"&&(o="*"),r.push(String(o)),n=n.prev}return r.reverse()}function IWe(t){return g6(`
31
+ `,t)}function c6(t){return g6(" ",t)}function g6(t,e){let r="";for(let n=0;n<e;n++)r+=t;return r}var bWe=[bi.TokenKind.FLOAT,bi.TokenKind.STRING,bi.TokenKind.INT,bi.TokenKind.BLOCK_STRING];function E6(t,e=!1,r,n){var o,i;let s="";if(t?.startToken){let a=typeof r=="number"?r:t.start,u=typeof n=="number"?n:t.end,l=t.startToken.next,d=1;for(;l;){if(l.start<a){l=l.next,d=l?.line;continue}if(l.end>u){l=l.next,d=l?.line;continue}let p=l.value||l.kind,_="";!e&&bWe.indexOf(l.kind)>=0&&(p="*"),l.kind===bi.TokenKind.STRING&&(p=`"${p}"`),l.kind===bi.TokenKind.EOF&&(p=""),l.line>d?(s+=IWe(l.line-d),d=l.line,_=c6(l.column-1)):l.line===((o=l.prev)===null||o===void 0?void 0:o.line)&&(_=c6(l.start-(((i=l.prev)===null||i===void 0?void 0:i.end)||0))),s+=_+p,l&&(l=l.next)}}return s}Fe.getSourceFromLocation=E6;function h6(t,e,r){if(!t||typeof t.getFields!="function"||t[_o.OTEL_PATCHED_SYMBOL])return;let n=t.getFields();t[_o.OTEL_PATCHED_SYMBOL]=!0,Object.keys(n).forEach(o=>{let i=n[o];if(i&&(i.resolve&&(i.resolve=m6(e,r,i.resolve)),i.type)){let s=i.type;for(;s.ofType;)s=s.ofType;h6(s,e,r)}})}Fe.wrapFields=h6;var l6=(t,e,r)=>{r&&(t.recordException(e),t.setStatus({code:dc.SpanStatusCode.ERROR,message:e.message}),t.end())},d6=(t,e)=>{e&&t.end()};function m6(t,e,r,n=!1){if(o[_o.OTEL_PATCHED_SYMBOL]||typeof r!="function")return r;function o(i,s,a,u){if(!r)return;let l=e();if(l.ignoreTrivialResolveSpans&&n&&(EWe(i)||typeof i=="function")&&typeof i[u.fieldName]!="function")return r.call(this,i,s,a,u);if(!a[_o.OTEL_GRAPHQL_DATA_SYMBOL])return r.call(this,i,s,a,u);let d=OWe(l.mergeItems,u&&u.path),p=d.filter(g=>typeof g=="string").length,_,f=!1;if(l.depth>=0&&l.depth<p)_=f6(a,d);else{let g=mWe(t,e,a,u,d);_=g.field,f=g.spanAdded}return dc.context.with(dc.trace.setSpan(dc.context.active(),_.span),()=>{try{let g=r.call(this,i,s,a,u);return(0,Fe.isPromise)(g)?g.then(E=>(d6(_.span,f),E),E=>{throw l6(_.span,E,f),E}):(d6(_.span,f),g)}catch(g){throw l6(_.span,g,f),g}})}return o[_o.OTEL_PATCHED_SYMBOL]=!0,o}Fe.wrapFieldResolver=m6});var S6=c(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.PACKAGE_NAME=pc.PACKAGE_VERSION=void 0;pc.PACKAGE_VERSION="0.44.0";pc.PACKAGE_NAME="@opentelemetry/instrumentation-graphql"});var O6=c(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});eS.GraphQLInstrumentation=void 0;var fo=(y(),T(P)),Gr=s6(),up=s0(),$T=a0(),c0=zT(),PWe=a6(),xt=T6(),A6=S6(),R6={mergeItems:!1,depth:-1,allowValues:!1,ignoreResolveSpans:!1},QT=[">=14.0.0 <17"],l0=class extends Gr.InstrumentationBase{constructor(e={}){super(A6.PACKAGE_NAME,A6.PACKAGE_VERSION,Object.assign(Object.assign({},R6),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},R6),e))}init(){let e=new Gr.InstrumentationNodeModuleDefinition("graphql",QT);return e.files.push(this._addPatchingExecute()),e.files.push(this._addPatchingParser()),e.files.push(this._addPatchingValidate()),e}_addPatchingExecute(){return new Gr.InstrumentationNodeModuleFile("graphql/execution/execute.js",QT,e=>((0,Gr.isWrapped)(e.execute)&&this._unwrap(e,"execute"),this._wrap(e,"execute",this._patchExecute(e.defaultFieldResolver)),e),e=>{e&&this._unwrap(e,"execute")})}_addPatchingParser(){return new Gr.InstrumentationNodeModuleFile("graphql/language/parser.js",QT,e=>((0,Gr.isWrapped)(e.parse)&&this._unwrap(e,"parse"),this._wrap(e,"parse",this._patchParse()),e),e=>{e&&this._unwrap(e,"parse")})}_addPatchingValidate(){return new Gr.InstrumentationNodeModuleFile("graphql/validation/validate.js",QT,e=>((0,Gr.isWrapped)(e.validate)&&this._unwrap(e,"validate"),this._wrap(e,"validate",this._patchValidate()),e),e=>{e&&this._unwrap(e,"validate")})}_patchExecute(e){let r=this;return function(o){return function(){let s;if(arguments.length>=2){let l=arguments;s=r._wrapExecuteArgs(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],e)}else{let l=arguments[0];s=r._wrapExecuteArgs(l.schema,l.document,l.rootValue,l.contextValue,l.variableValues,l.operationName,l.fieldResolver,l.typeResolver,e)}let a=(0,xt.getOperation)(s.document,s.operationName),u=r._createExecuteSpan(a,s);return s.contextValue[c0.OTEL_GRAPHQL_DATA_SYMBOL]={source:s.document?s.document||s.document[c0.OTEL_GRAPHQL_DATA_SYMBOL]:void 0,span:u,fields:{}},fo.context.with(fo.trace.setSpan(fo.context.active(),u),()=>(0,Gr.safeExecuteInTheMiddle)(()=>o.apply(this,[s]),(l,d)=>{r._handleExecutionResult(u,l,d)}))}}}_handleExecutionResult(e,r,n){let o=this.getConfig();if(n===void 0||r){(0,xt.endSpan)(e,r);return}if((0,xt.isPromise)(n))n.then(i=>{if(typeof o.responseHook!="function"){(0,xt.endSpan)(e);return}this._executeResponseHook(e,i)},i=>{(0,xt.endSpan)(e,i)});else{if(typeof o.responseHook!="function"){(0,xt.endSpan)(e);return}this._executeResponseHook(e,n)}}_executeResponseHook(e,r){let{responseHook:n}=this.getConfig();n&&(0,Gr.safeExecuteInTheMiddle)(()=>{n(e,r)},o=>{o&&this._diag.error("Error running response hook",o),(0,xt.endSpan)(e,void 0)},!0)}_patchParse(){let e=this;return function(n){return function(i,s){return e._parse(this,n,i,s)}}}_patchValidate(){let e=this;return function(n){return function(i,s,a,u,l){return e._validate(this,n,i,s,a,l,u)}}}_parse(e,r,n,o){let i=this.getConfig(),s=this.tracer.startSpan(up.SpanNames.PARSE);return fo.context.with(fo.trace.setSpan(fo.context.active(),s),()=>(0,Gr.safeExecuteInTheMiddle)(()=>r.call(e,n,o),(a,u)=>{u&&((0,xt.getOperation)(u)?u.loc&&(0,xt.addSpanSource)(s,u.loc,i.allowValues):s.updateName(up.SpanNames.SCHEMA_PARSE)),(0,xt.endSpan)(s,a)}))}_validate(e,r,n,o,i,s,a){let u=this.tracer.startSpan(up.SpanNames.VALIDATE,{});return fo.context.with(fo.trace.setSpan(fo.context.active(),u),()=>(0,Gr.safeExecuteInTheMiddle)(()=>r.call(e,n,o,i,a,s),(l,d)=>{o.loc||u.updateName(up.SpanNames.SCHEMA_VALIDATE),d&&d.length&&u.recordException({name:$T.AttributeNames.ERROR_VALIDATION_NAME,message:JSON.stringify(d)}),(0,xt.endSpan)(u,l)}))}_createExecuteSpan(e,r){var n;let o=this.getConfig(),i=this.tracer.startSpan(up.SpanNames.EXECUTE,{});if(e){let{operation:s,name:a}=e;i.setAttribute($T.AttributeNames.OPERATION_TYPE,s);let u=a?.value;u?(i.setAttribute($T.AttributeNames.OPERATION_NAME,u),i.updateName(`${s} ${u}`)):i.updateName(s)}else{let s=" ";r.operationName&&(s=` "${r.operationName}" `),s=PWe.OPERATION_NOT_SUPPORTED.replace("$operationName$",s),i.setAttribute($T.AttributeNames.OPERATION_NAME,s)}return!((n=r.document)===null||n===void 0)&&n.loc&&(0,xt.addSpanSource)(i,r.document.loc,o.allowValues),r.variableValues&&o.allowValues&&(0,xt.addInputVariableAttributes)(i,r.variableValues),i}_wrapExecuteArgs(e,r,n,o,i,s,a,u,l){if(o||(o={}),o[c0.OTEL_GRAPHQL_DATA_SYMBOL]||this.getConfig().ignoreResolveSpans)return{schema:e,document:r,rootValue:n,contextValue:o,variableValues:i,operationName:s,fieldResolver:a,typeResolver:u};let d=a==null,p=a??l;return a=(0,xt.wrapFieldResolver)(this.tracer,()=>this.getConfig(),p,d),e&&((0,xt.wrapFields)(e.getQueryType(),this.tracer,()=>this.getConfig()),(0,xt.wrapFields)(e.getMutationType(),this.tracer,()=>this.getConfig())),{schema:e,document:r,rootValue:n,contextValue:o,variableValues:i,operationName:s,fieldResolver:a,typeResolver:u}}};eS.GraphQLInstrumentation=l0});var b6=c(I6=>{"use strict";Object.defineProperty(I6,"__esModule",{value:!0})});var y6=c(Pi=>{"use strict";var yWe=Pi&&Pi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),P6=Pi&&Pi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&yWe(e,t,r)};Object.defineProperty(Pi,"__esModule",{value:!0});P6(O6(),Pi);P6(b6(),Pi)});var d0=c(nS=>{Object.defineProperty(nS,"__esModule",{value:!0});var vWe=y6(),rS=W(),tS=uo(),NWe=Pe(),CWe=Sn(),v6="Graphql",N6=NWe.generateInstrumentOnce(v6,(t={})=>{let e=C6(t);return new vWe.GraphQLInstrumentation({...e,responseHook(r){CWe.addOriginToSpan(r,"auto.graphql.otel.graphql");let n=rS.spanToJSON(r).data||{},o=n["graphql.operation.type"],i=n["graphql.operation.name"];if(e.useOperationNameForRootSpan&&o){let s=rS.getRootSpan(r),u=(rS.spanToJSON(s).data||{})[tS.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION]||[],l=i?`${o} ${i}`:`${o}`;Array.isArray(u)?(u.push(l),s.setAttribute(tS.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION,u)):u?s.setAttribute(tS.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION,[u,l]):s.setAttribute(tS.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION,l)}}})}),MWe=(t={})=>({name:v6,setupOnce(){N6(C6(t))}}),LWe=rS.defineIntegration(MWe);function C6(t){return{ignoreResolveSpans:!0,ignoreTrivialResolveSpans:!0,useOperationNameForRootSpan:!0,...t}}nS.graphqlIntegration=LWe;nS.instrumentGraphql=N6});var M6=c(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.PACKAGE_NAME=_c.PACKAGE_VERSION=void 0;_c.PACKAGE_VERSION="0.4.0";_c.PACKAGE_NAME="@opentelemetry/instrumentation-kafkajs"});var L6=c(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0});oS.bufferTextMapGetter=void 0;oS.bufferTextMapGetter={get(t,e){var r;if(!t)return;let n=Object.keys(t);for(let o of n)if(o===e||o.toLowerCase()===e)return(r=t[o])===null||r===void 0?void 0:r.toString()},keys(t){return t?Object.keys(t):[]}}});var D6=c(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.SeverityNumber=void 0;var DWe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(DWe=cp.SeverityNumber||(cp.SeverityNumber={}))});var sS=c(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.NOOP_LOGGER=fc.NoopLogger=void 0;var iS=class{emit(e){}};fc.NoopLogger=iS;fc.NOOP_LOGGER=new iS});var uS=c(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.NOOP_LOGGER_PROVIDER=gc.NoopLoggerProvider=void 0;var GWe=sS(),aS=class{getLogger(e,r,n){return new GWe.NoopLogger}};gc.NoopLoggerProvider=aS;gc.NOOP_LOGGER_PROVIDER=new aS});var _0=c(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});cS.ProxyLogger=void 0;var UWe=sS(),p0=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):UWe.NOOP_LOGGER}};cS.ProxyLogger=p0});var g0=c(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.ProxyLoggerProvider=void 0;var xWe=uS(),wWe=_0(),f0=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new wWe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:xWe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};lS.ProxyLoggerProvider=f0});var G6=c(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});dS._globalThis=void 0;dS._globalThis=typeof globalThis=="object"?globalThis:global});var U6=c(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS._globalThis=void 0;var VWe=G6();Object.defineProperty(pS,"_globalThis",{enumerable:!0,get:function(){return VWe._globalThis}})});var x6=c(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0});_S._globalThis=void 0;var BWe=U6();Object.defineProperty(_S,"_globalThis",{enumerable:!0,get:function(){return BWe._globalThis}})});var w6=c(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.API_BACKWARDS_COMPATIBILITY_VERSION=Nn.makeGetter=Nn._global=Nn.GLOBAL_LOGS_API_KEY=void 0;var qWe=x6();Nn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Nn._global=qWe._globalThis;function jWe(t,e,r){return n=>n===t?e:r}Nn.makeGetter=jWe;Nn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var B6=c(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0});fS.LogsAPI=void 0;var Ur=w6(),HWe=uS(),V6=g0(),E0=class t{constructor(){this._proxyLoggerProvider=new V6.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Ur._global[Ur.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Ur._global[Ur.GLOBAL_LOGS_API_KEY]=(0,Ur.makeGetter)(Ur.API_BACKWARDS_COMPATIBILITY_VERSION,e,HWe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Ur._global[Ur.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Ur._global,Ur.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Ur._global[Ur.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new V6.ProxyLoggerProvider}};fS.LogsAPI=E0});var h0=c(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.logs=it.ProxyLoggerProvider=it.ProxyLogger=it.NoopLoggerProvider=it.NOOP_LOGGER_PROVIDER=it.NoopLogger=it.NOOP_LOGGER=it.SeverityNumber=void 0;var FWe=D6();Object.defineProperty(it,"SeverityNumber",{enumerable:!0,get:function(){return FWe.SeverityNumber}});var q6=sS();Object.defineProperty(it,"NOOP_LOGGER",{enumerable:!0,get:function(){return q6.NOOP_LOGGER}});Object.defineProperty(it,"NoopLogger",{enumerable:!0,get:function(){return q6.NoopLogger}});var j6=uS();Object.defineProperty(it,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return j6.NOOP_LOGGER_PROVIDER}});Object.defineProperty(it,"NoopLoggerProvider",{enumerable:!0,get:function(){return j6.NoopLoggerProvider}});var kWe=_0();Object.defineProperty(it,"ProxyLogger",{enumerable:!0,get:function(){return kWe.ProxyLogger}});var WWe=g0();Object.defineProperty(it,"ProxyLoggerProvider",{enumerable:!0,get:function(){return WWe.ProxyLoggerProvider}});var YWe=B6();it.logs=YWe.LogsAPI.getInstance()});var H6=c(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.disableInstrumentations=Ec.enableInstrumentations=void 0;function KWe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Ec.enableInstrumentations=KWe;function XWe(t){t.forEach(e=>e.disable())}Ec.disableInstrumentations=XWe});var W6=c(gS=>{"use strict";Object.defineProperty(gS,"__esModule",{value:!0});gS.registerInstrumentations=void 0;var F6=(y(),T(P)),ZWe=h0(),k6=H6();function zWe(t){var e,r;let n=t.tracerProvider||F6.trace.getTracerProvider(),o=t.meterProvider||F6.metrics.getMeterProvider(),i=t.loggerProvider||ZWe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,k6.enableInstrumentations)(s,n,o,i),()=>{(0,k6.disableInstrumentations)(s)}}gS.registerInstrumentations=zWe});var Y6=c(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0});hS.InstrumentationAbstract=void 0;var m0=(y(),T(P)),JWe=h0(),ES=De(),T0=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=ES.wrap,this._unwrap=ES.unwrap,this._massWrap=ES.massWrap,this._massUnwrap=ES.massUnwrap,this.setConfig(n),this._diag=m0.diag.createComponentLogger({namespace:e}),this._tracer=m0.trace.getTracer(e,r),this._meter=m0.metrics.getMeter(e,r),this._logger=JWe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};hS.InstrumentationAbstract=T0});var K6=c(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.ModuleNameTrie=yi.ModuleNameSeparator=void 0;yi.ModuleNameSeparator="/";var mS=class{constructor(){this.hooks=[],this.children=new Map}},S0=class{constructor(){this._trie=new mS,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(yi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new mS,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(yi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};yi.ModuleNameTrie=S0});var Z6=c(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});TS.RequireInTheMiddleSingleton=void 0;var $We=Ue(),X6=m("path"),A0=K6(),QWe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),R0=class t{constructor(){this._moduleNameTrie=new A0.ModuleNameTrie,this._initialize()}_initialize(){new $We.Hook(null,{internals:!0},(e,r,n)=>{let o=eYe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return QWe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};TS.RequireInTheMiddleSingleton=R0;function eYe(t){return X6.sep!==A0.ModuleNameSeparator?t.split(X6.sep).join(A0.ModuleNameSeparator):t}});var O0=c(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.isWrapped=vi.safeExecuteInTheMiddleAsync=vi.safeExecuteInTheMiddle=void 0;function tYe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}vi.safeExecuteInTheMiddle=tYe;async function rYe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}vi.safeExecuteInTheMiddleAsync=rYe;function nYe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}vi.isWrapped=nYe});var $6=c(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});SS.InstrumentationBase=void 0;var I0=m("path"),z6=m("util"),oYe=Sr(),b0=De(),iYe=Y6(),sYe=Z6(),aYe=Or(),lp=(y(),T(P)),uYe=Ue(),cYe=m("fs"),lYe=O0(),P0=class extends iYe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=sYe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,lYe.isWrapped)(i[s])&&this._unwrap(i,s),z6.types.isProxy(i)){let u=(0,b0.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,b0.wrap)(i,s,a)},this._unwrap=(i,s)=>z6.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,b0.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{lp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){lp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{lp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){lp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=m.resolve(r);m.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,cYe.readFileSync)(I0.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{lp.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return J6(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=I0.normalize(n);return a.filter(d=>d.name===u).filter(d=>J6(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=I0.isAbsolute(e.name)?new uYe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new aYe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};SS.InstrumentationBase=P0;function J6(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,oYe.satisfies)(e,n,{includePrerelease:r}))}});var Q6=c(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});AS.normalize=void 0;var dYe=m("path");Object.defineProperty(AS,"normalize",{enumerable:!0,get:function(){return dYe.normalize}})});var e8=c(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.normalize=hc.InstrumentationBase=void 0;var pYe=$6();Object.defineProperty(hc,"InstrumentationBase",{enumerable:!0,get:function(){return pYe.InstrumentationBase}});var _Ye=Q6();Object.defineProperty(hc,"normalize",{enumerable:!0,get:function(){return _Ye.normalize}})});var y0=c(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.normalize=mc.InstrumentationBase=void 0;var t8=e8();Object.defineProperty(mc,"InstrumentationBase",{enumerable:!0,get:function(){return t8.InstrumentationBase}});Object.defineProperty(mc,"normalize",{enumerable:!0,get:function(){return t8.normalize}})});var r8=c(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0});RS.InstrumentationNodeModuleDefinition=void 0;var v0=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};RS.InstrumentationNodeModuleDefinition=v0});var n8=c(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0});OS.InstrumentationNodeModuleFile=void 0;var fYe=y0(),N0=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,fYe.normalize)(e)}};OS.InstrumentationNodeModuleFile=N0});var o8=c(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.safeExecuteInTheMiddleAsync=wt.safeExecuteInTheMiddle=wt.isWrapped=wt.InstrumentationNodeModuleFile=wt.InstrumentationNodeModuleDefinition=wt.InstrumentationBase=wt.registerInstrumentations=void 0;var gYe=W6();Object.defineProperty(wt,"registerInstrumentations",{enumerable:!0,get:function(){return gYe.registerInstrumentations}});var EYe=y0();Object.defineProperty(wt,"InstrumentationBase",{enumerable:!0,get:function(){return EYe.InstrumentationBase}});var hYe=r8();Object.defineProperty(wt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return hYe.InstrumentationNodeModuleDefinition}});var mYe=n8();Object.defineProperty(wt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return mYe.InstrumentationNodeModuleFile}});var C0=O0();Object.defineProperty(wt,"isWrapped",{enumerable:!0,get:function(){return C0.isWrapped}});Object.defineProperty(wt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return C0.safeExecuteInTheMiddle}});Object.defineProperty(wt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return C0.safeExecuteInTheMiddleAsync}})});var a8=c(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.KafkaJsInstrumentation=void 0;var ft=(y(),T(P)),Ni=(Q(),T($)),i8=M6(),s8=L6(),Qr=o8(),M0=class extends Qr.InstrumentationBase{constructor(e={}){super(i8.PACKAGE_NAME,i8.PACKAGE_VERSION,e)}init(){let e=n=>{var o,i;(0,Qr.isWrapped)((o=n?.Kafka)===null||o===void 0?void 0:o.prototype.producer)&&this._unwrap(n.Kafka.prototype,"producer"),(0,Qr.isWrapped)((i=n?.Kafka)===null||i===void 0?void 0:i.prototype.consumer)&&this._unwrap(n.Kafka.prototype,"consumer")};return new Qr.InstrumentationNodeModuleDefinition("kafkajs",[">=0.1.0 <3"],n=>{var o,i;return e(n),this._wrap((o=n?.Kafka)===null||o===void 0?void 0:o.prototype,"producer",this._getProducerPatch()),this._wrap((i=n?.Kafka)===null||i===void 0?void 0:i.prototype,"consumer",this._getConsumerPatch()),n},e)}_getConsumerPatch(){let e=this;return r=>function(...o){let i=r.apply(this,o);return(0,Qr.isWrapped)(i.run)&&e._unwrap(i,"run"),e._wrap(i,"run",e._getConsumerRunPatch()),i}}_getProducerPatch(){let e=this;return r=>function(...o){let i=r.apply(this,o);return(0,Qr.isWrapped)(i.sendBatch)&&e._unwrap(i,"sendBatch"),e._wrap(i,"sendBatch",e._getProducerSendBatchPatch()),(0,Qr.isWrapped)(i.send)&&e._unwrap(i,"send"),e._wrap(i,"send",e._getProducerSendPatch()),i}}_getConsumerRunPatch(){let e=this;return r=>function(...o){let i=o[0];return i?.eachMessage&&((0,Qr.isWrapped)(i.eachMessage)&&e._unwrap(i,"eachMessage"),e._wrap(i,"eachMessage",e._getConsumerEachMessagePatch())),i?.eachBatch&&((0,Qr.isWrapped)(i.eachBatch)&&e._unwrap(i,"eachBatch"),e._wrap(i,"eachBatch",e._getConsumerEachBatchPatch())),r.call(this,i)}}_getConsumerEachMessagePatch(){let e=this;return r=>function(...o){let i=o[0],s=ft.propagation.extract(ft.ROOT_CONTEXT,i.message.headers,s8.bufferTextMapGetter),a=e._startConsumerSpan(i.topic,i.message,Ni.MESSAGINGOPERATIONVALUES_PROCESS,s),u=ft.context.with(ft.trace.setSpan(s,a),()=>r.apply(this,o));return e._endSpansOnPromise([a],u)}}_getConsumerEachBatchPatch(){return e=>{let r=this;return function(...o){let i=o[0],s=r._startConsumerSpan(i.batch.topic,void 0,Ni.MESSAGINGOPERATIONVALUES_RECEIVE,ft.ROOT_CONTEXT);return ft.context.with(ft.trace.setSpan(ft.context.active(),s),()=>{let a=i.batch.messages.map(l=>{var d;let p=ft.propagation.extract(ft.ROOT_CONTEXT,l.headers,s8.bufferTextMapGetter),_=(d=ft.trace.getSpan(p))===null||d===void 0?void 0:d.spanContext(),f;return _&&(f={context:_}),r._startConsumerSpan(i.batch.topic,l,Ni.MESSAGINGOPERATIONVALUES_PROCESS,void 0,f)}),u=e.apply(this,o);return a.unshift(s),r._endSpansOnPromise(a,u)})}}}_getProducerSendBatchPatch(){let e=this;return r=>function(...o){let a=(o[0].topicMessages||[]).map(l=>l.messages.map(d=>e._startProducerSpan(l.topic,d))).reduce((l,d)=>l.concat(d),[]),u=r.apply(this,o);return e._endSpansOnPromise(a,u)}}_getProducerSendPatch(){let e=this;return r=>function(...o){let i=o[0],s=i.messages.map(u=>e._startProducerSpan(i.topic,u)),a=r.apply(this,o);return e._endSpansOnPromise(s,a)}}_endSpansOnPromise(e,r){return Promise.resolve(r).catch(n=>{let o;throw typeof n=="string"?o=n:typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"message")&&(o=n.message),e.forEach(i=>i.setStatus({code:ft.SpanStatusCode.ERROR,message:o})),n}).finally(()=>{e.forEach(n=>n.end())})}_startConsumerSpan(e,r,n,o,i){let s=this.tracer.startSpan(e,{kind:ft.SpanKind.CONSUMER,attributes:{[Ni.SEMATTRS_MESSAGING_SYSTEM]:"kafka",[Ni.SEMATTRS_MESSAGING_DESTINATION]:e,[Ni.SEMATTRS_MESSAGING_OPERATION]:n},links:i?[i]:[]},o),{consumerHook:a}=this.getConfig();return a&&r&&(0,Qr.safeExecuteInTheMiddle)(()=>a(s,{topic:e,message:r}),u=>{u&&this._diag.error("consumerHook error",u)},!0),s}_startProducerSpan(e,r){var n;let o=this.tracer.startSpan(e,{kind:ft.SpanKind.PRODUCER,attributes:{[Ni.SEMATTRS_MESSAGING_SYSTEM]:"kafka",[Ni.SEMATTRS_MESSAGING_DESTINATION]:e}});r.headers=(n=r.headers)!==null&&n!==void 0?n:{},ft.propagation.inject(ft.trace.setSpan(ft.context.active(),o),r.headers);let{producerHook:i}=this.getConfig();return i&&(0,Qr.safeExecuteInTheMiddle)(()=>i(o,{topic:e,message:r}),s=>{s&&this._diag.error("producerHook error",s)},!0),o}};IS.KafkaJsInstrumentation=M0});var c8=c(u8=>{"use strict";Object.defineProperty(u8,"__esModule",{value:!0})});var d8=c(Ci=>{"use strict";var TYe=Ci&&Ci.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),l8=Ci&&Ci.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&TYe(e,t,r)};Object.defineProperty(Ci,"__esModule",{value:!0});l8(a8(),Ci);l8(c8(),Ci)});var L0=c(bS=>{Object.defineProperty(bS,"__esModule",{value:!0});var SYe=d8(),AYe=W(),RYe=Pe(),p8=Sn(),_8="Kafka",f8=RYe.generateInstrumentOnce(_8,()=>new SYe.KafkaJsInstrumentation({consumerHook(t){p8.addOriginToSpan(t,"auto.kafkajs.otel.consumer")},producerHook(t){p8.addOriginToSpan(t,"auto.kafkajs.otel.producer")}})),OYe=()=>({name:_8,setupOnce(){f8()}}),IYe=AYe.defineIntegration(OYe);bS.instrumentKafka=f8;bS.kafkaIntegration=IYe});var g8=c(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.PACKAGE_NAME=Tc.PACKAGE_VERSION=void 0;Tc.PACKAGE_VERSION="0.40.0";Tc.PACKAGE_NAME="@opentelemetry/instrumentation-lru-memoizer"});var T8=c(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0});PS.LruMemoizerInstrumentation=void 0;var E8=(y(),T(P)),h8=je(),m8=g8(),D0=class extends h8.InstrumentationBase{constructor(e={}){super(m8.PACKAGE_NAME,m8.PACKAGE_VERSION,e)}init(){return[new h8.InstrumentationNodeModuleDefinition("lru-memoizer",[">=1.3 <3"],e=>{let r=function(){let n=e.apply(this,arguments);return function(){let o=[...arguments],i=o.pop(),s=typeof i=="function"?E8.context.bind(E8.context.active(),i):i;return o.push(s),n.apply(this,o)}};return r.sync=e.sync,r},void 0)]}};PS.LruMemoizerInstrumentation=D0});var S8=c(Ws=>{"use strict";var bYe=Ws&&Ws.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),PYe=Ws&&Ws.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&bYe(e,t,r)};Object.defineProperty(Ws,"__esModule",{value:!0});PYe(T8(),Ws)});var G0=c(yS=>{Object.defineProperty(yS,"__esModule",{value:!0});var yYe=S8(),vYe=W(),NYe=Pe(),A8="LruMemoizer",R8=NYe.generateInstrumentOnce(A8,()=>new yYe.LruMemoizerInstrumentation),CYe=()=>({name:A8,setupOnce(){R8()}}),MYe=vYe.defineIntegration(CYe);yS.instrumentLruMemoizer=R8;yS.lruMemoizerIntegration=MYe});var O8=c(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.SeverityNumber=void 0;var LYe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(LYe=dp.SeverityNumber||(dp.SeverityNumber={}))});var NS=c(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.NOOP_LOGGER=Sc.NoopLogger=void 0;var vS=class{emit(e){}};Sc.NoopLogger=vS;Sc.NOOP_LOGGER=new vS});var MS=c(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.NOOP_LOGGER_PROVIDER=Ac.NoopLoggerProvider=void 0;var DYe=NS(),CS=class{getLogger(e,r,n){return new DYe.NoopLogger}};Ac.NoopLoggerProvider=CS;Ac.NOOP_LOGGER_PROVIDER=new CS});var x0=c(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0});LS.ProxyLogger=void 0;var GYe=NS(),U0=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):GYe.NOOP_LOGGER}};LS.ProxyLogger=U0});var V0=c(DS=>{"use strict";Object.defineProperty(DS,"__esModule",{value:!0});DS.ProxyLoggerProvider=void 0;var UYe=MS(),xYe=x0(),w0=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new xYe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:UYe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};DS.ProxyLoggerProvider=w0});var I8=c(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0});GS._globalThis=void 0;GS._globalThis=typeof globalThis=="object"?globalThis:global});var b8=c(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0});US._globalThis=void 0;var wYe=I8();Object.defineProperty(US,"_globalThis",{enumerable:!0,get:function(){return wYe._globalThis}})});var P8=c(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0});xS._globalThis=void 0;var VYe=b8();Object.defineProperty(xS,"_globalThis",{enumerable:!0,get:function(){return VYe._globalThis}})});var y8=c(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.API_BACKWARDS_COMPATIBILITY_VERSION=Cn.makeGetter=Cn._global=Cn.GLOBAL_LOGS_API_KEY=void 0;var BYe=P8();Cn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Cn._global=BYe._globalThis;function qYe(t,e,r){return n=>n===t?e:r}Cn.makeGetter=qYe;Cn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var N8=c(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0});wS.LogsAPI=void 0;var xr=y8(),jYe=MS(),v8=V0(),B0=class t{constructor(){this._proxyLoggerProvider=new v8.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return xr._global[xr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(xr._global[xr.GLOBAL_LOGS_API_KEY]=(0,xr.makeGetter)(xr.API_BACKWARDS_COMPATIBILITY_VERSION,e,jYe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=xr._global[xr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(xr._global,xr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete xr._global[xr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new v8.ProxyLoggerProvider}};wS.LogsAPI=B0});var q0=c(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.logs=st.ProxyLoggerProvider=st.ProxyLogger=st.NoopLoggerProvider=st.NOOP_LOGGER_PROVIDER=st.NoopLogger=st.NOOP_LOGGER=st.SeverityNumber=void 0;var HYe=O8();Object.defineProperty(st,"SeverityNumber",{enumerable:!0,get:function(){return HYe.SeverityNumber}});var C8=NS();Object.defineProperty(st,"NOOP_LOGGER",{enumerable:!0,get:function(){return C8.NOOP_LOGGER}});Object.defineProperty(st,"NoopLogger",{enumerable:!0,get:function(){return C8.NoopLogger}});var M8=MS();Object.defineProperty(st,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return M8.NOOP_LOGGER_PROVIDER}});Object.defineProperty(st,"NoopLoggerProvider",{enumerable:!0,get:function(){return M8.NoopLoggerProvider}});var FYe=x0();Object.defineProperty(st,"ProxyLogger",{enumerable:!0,get:function(){return FYe.ProxyLogger}});var kYe=V0();Object.defineProperty(st,"ProxyLoggerProvider",{enumerable:!0,get:function(){return kYe.ProxyLoggerProvider}});var WYe=N8();st.logs=WYe.LogsAPI.getInstance()});var L8=c(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.disableInstrumentations=Rc.enableInstrumentations=void 0;function YYe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Rc.enableInstrumentations=YYe;function KYe(t){t.forEach(e=>e.disable())}Rc.disableInstrumentations=KYe});var U8=c(VS=>{"use strict";Object.defineProperty(VS,"__esModule",{value:!0});VS.registerInstrumentations=void 0;var D8=(y(),T(P)),XYe=q0(),G8=L8();function ZYe(t){var e,r;let n=t.tracerProvider||D8.trace.getTracerProvider(),o=t.meterProvider||D8.metrics.getMeterProvider(),i=t.loggerProvider||XYe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,G8.enableInstrumentations)(s,n,o,i),()=>{(0,G8.disableInstrumentations)(s)}}VS.registerInstrumentations=ZYe});var x8=c(qS=>{"use strict";Object.defineProperty(qS,"__esModule",{value:!0});qS.InstrumentationAbstract=void 0;var j0=(y(),T(P)),zYe=q0(),BS=De(),H0=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=BS.wrap,this._unwrap=BS.unwrap,this._massWrap=BS.massWrap,this._massUnwrap=BS.massUnwrap,this.setConfig(n),this._diag=j0.diag.createComponentLogger({namespace:e}),this._tracer=j0.trace.getTracer(e,r),this._meter=j0.metrics.getMeter(e,r),this._logger=zYe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};qS.InstrumentationAbstract=H0});var w8=c(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.ModuleNameTrie=Mi.ModuleNameSeparator=void 0;Mi.ModuleNameSeparator="/";var jS=class{constructor(){this.hooks=[],this.children=new Map}},F0=class{constructor(){this._trie=new jS,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Mi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new jS,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Mi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Mi.ModuleNameTrie=F0});var B8=c(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0});HS.RequireInTheMiddleSingleton=void 0;var JYe=Ue(),V8=m("path"),k0=w8(),$Ye=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),W0=class t{constructor(){this._moduleNameTrie=new k0.ModuleNameTrie,this._initialize()}_initialize(){new JYe.Hook(null,{internals:!0},(e,r,n)=>{let o=QYe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return $Ye?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};HS.RequireInTheMiddleSingleton=W0;function QYe(t){return V8.sep!==k0.ModuleNameSeparator?t.split(V8.sep).join(k0.ModuleNameSeparator):t}});var Y0=c(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.isWrapped=Li.safeExecuteInTheMiddleAsync=Li.safeExecuteInTheMiddle=void 0;function eKe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Li.safeExecuteInTheMiddle=eKe;async function tKe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Li.safeExecuteInTheMiddleAsync=tKe;function rKe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Li.isWrapped=rKe});var H8=c(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0});FS.InstrumentationBase=void 0;var K0=m("path"),q8=m("util"),nKe=Sr(),X0=De(),oKe=x8(),iKe=B8(),sKe=Or(),pp=(y(),T(P)),aKe=Ue(),uKe=m("fs"),cKe=Y0(),Z0=class extends oKe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=iKe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,cKe.isWrapped)(i[s])&&this._unwrap(i,s),q8.types.isProxy(i)){let u=(0,X0.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,X0.wrap)(i,s,a)},this._unwrap=(i,s)=>q8.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,X0.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{pp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){pp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{pp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){pp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=m.resolve(r);m.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,uKe.readFileSync)(K0.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{pp.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return j8(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=K0.normalize(n);return a.filter(d=>d.name===u).filter(d=>j8(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=K0.isAbsolute(e.name)?new aKe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new sKe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};FS.InstrumentationBase=Z0;function j8(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,nKe.satisfies)(e,n,{includePrerelease:r}))}});var F8=c(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0});kS.normalize=void 0;var lKe=m("path");Object.defineProperty(kS,"normalize",{enumerable:!0,get:function(){return lKe.normalize}})});var k8=c(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.normalize=Oc.InstrumentationBase=void 0;var dKe=H8();Object.defineProperty(Oc,"InstrumentationBase",{enumerable:!0,get:function(){return dKe.InstrumentationBase}});var pKe=F8();Object.defineProperty(Oc,"normalize",{enumerable:!0,get:function(){return pKe.normalize}})});var z0=c(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.normalize=Ic.InstrumentationBase=void 0;var W8=k8();Object.defineProperty(Ic,"InstrumentationBase",{enumerable:!0,get:function(){return W8.InstrumentationBase}});Object.defineProperty(Ic,"normalize",{enumerable:!0,get:function(){return W8.normalize}})});var Y8=c(WS=>{"use strict";Object.defineProperty(WS,"__esModule",{value:!0});WS.InstrumentationNodeModuleDefinition=void 0;var J0=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};WS.InstrumentationNodeModuleDefinition=J0});var K8=c(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0});YS.InstrumentationNodeModuleFile=void 0;var _Ke=z0(),$0=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,_Ke.normalize)(e)}};YS.InstrumentationNodeModuleFile=$0});var X8=c(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.safeExecuteInTheMiddleAsync=Vt.safeExecuteInTheMiddle=Vt.isWrapped=Vt.InstrumentationNodeModuleFile=Vt.InstrumentationNodeModuleDefinition=Vt.InstrumentationBase=Vt.registerInstrumentations=void 0;var fKe=U8();Object.defineProperty(Vt,"registerInstrumentations",{enumerable:!0,get:function(){return fKe.registerInstrumentations}});var gKe=z0();Object.defineProperty(Vt,"InstrumentationBase",{enumerable:!0,get:function(){return gKe.InstrumentationBase}});var EKe=Y8();Object.defineProperty(Vt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return EKe.InstrumentationNodeModuleDefinition}});var hKe=K8();Object.defineProperty(Vt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return hKe.InstrumentationNodeModuleFile}});var Q0=Y0();Object.defineProperty(Vt,"isWrapped",{enumerable:!0,get:function(){return Q0.isWrapped}});Object.defineProperty(Vt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return Q0.safeExecuteInTheMiddle}});Object.defineProperty(Vt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return Q0.safeExecuteInTheMiddleAsync}})});var Z8=c(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.MongodbCommandType=void 0;var mKe;(function(t){t.CREATE_INDEXES="createIndexes",t.FIND_AND_MODIFY="findAndModify",t.IS_MASTER="isMaster",t.COUNT="count",t.AGGREGATE="aggregate",t.UNKNOWN="unknown"})(mKe=_p.MongodbCommandType||(_p.MongodbCommandType={}))});var z8=c(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.PACKAGE_NAME=bc.PACKAGE_VERSION=void 0;bc.PACKAGE_VERSION="0.48.0";bc.PACKAGE_NAME="@opentelemetry/instrumentation-mongodb"});var $8=c(KS=>{"use strict";Object.defineProperty(KS,"__esModule",{value:!0});KS.MongoDBInstrumentation=void 0;var ye=(y(),T(P)),Te=X8(),go=(Q(),T($)),Di=Z8(),J8=z8(),eD=class t extends Te.InstrumentationBase{constructor(e={}){super(J8.PACKAGE_NAME,J8.PACKAGE_VERSION,e)}_updateMetricInstruments(){this._connectionsUsage=this.meter.createUpDownCounter("db.client.connections.usage",{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"})}init(){let{v3PatchConnection:e,v3UnpatchConnection:r}=this._getV3ConnectionPatches(),{v4PatchConnect:n,v4UnpatchConnect:o}=this._getV4ConnectPatches(),{v4PatchConnectionCallback:i,v4PatchConnectionPromise:s,v4UnpatchConnection:a}=this._getV4ConnectionPatches(),{v4PatchConnectionPool:u,v4UnpatchConnectionPool:l}=this._getV4ConnectionPoolPatches(),{v4PatchSessions:d,v4UnpatchSessions:p}=this._getV4SessionsPatches();return[new Te.InstrumentationNodeModuleDefinition("mongodb",[">=3.3.0 <4"],void 0,void 0,[new Te.InstrumentationNodeModuleFile("mongodb/lib/core/wireprotocol/index.js",[">=3.3.0 <4"],e,r)]),new Te.InstrumentationNodeModuleDefinition("mongodb",[">=4.0.0 <7"],void 0,void 0,[new Te.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=4.0.0 <6.4"],i,a),new Te.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=6.4.0 <7"],s,a),new Te.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection_pool.js",[">=4.0.0 <6.4"],u,l),new Te.InstrumentationNodeModuleFile("mongodb/lib/cmap/connect.js",[">=4.0.0 <7"],n,o),new Te.InstrumentationNodeModuleFile("mongodb/lib/sessions.js",[">=4.0.0 <7"],d,p)])]}_getV3ConnectionPatches(){return{v3PatchConnection:e=>((0,Te.isWrapped)(e.insert)&&this._unwrap(e,"insert"),this._wrap(e,"insert",this._getV3PatchOperation("insert")),(0,Te.isWrapped)(e.remove)&&this._unwrap(e,"remove"),this._wrap(e,"remove",this._getV3PatchOperation("remove")),(0,Te.isWrapped)(e.update)&&this._unwrap(e,"update"),this._wrap(e,"update",this._getV3PatchOperation("update")),(0,Te.isWrapped)(e.command)&&this._unwrap(e,"command"),this._wrap(e,"command",this._getV3PatchCommand()),(0,Te.isWrapped)(e.query)&&this._unwrap(e,"query"),this._wrap(e,"query",this._getV3PatchFind()),(0,Te.isWrapped)(e.getMore)&&this._unwrap(e,"getMore"),this._wrap(e,"getMore",this._getV3PatchCursor()),e),v3UnpatchConnection:e=>{e!==void 0&&(this._unwrap(e,"insert"),this._unwrap(e,"remove"),this._unwrap(e,"update"),this._unwrap(e,"command"),this._unwrap(e,"query"),this._unwrap(e,"getMore"))}}}_getV4SessionsPatches(){return{v4PatchSessions:e=>((0,Te.isWrapped)(e.acquire)&&this._unwrap(e,"acquire"),this._wrap(e.ServerSessionPool.prototype,"acquire",this._getV4AcquireCommand()),(0,Te.isWrapped)(e.release)&&this._unwrap(e,"release"),this._wrap(e.ServerSessionPool.prototype,"release",this._getV4ReleaseCommand()),e),v4UnpatchSessions:e=>{e!==void 0&&((0,Te.isWrapped)(e.acquire)&&this._unwrap(e,"acquire"),(0,Te.isWrapped)(e.release)&&this._unwrap(e,"release"))}}}_getV4AcquireCommand(){let e=this;return r=>function(){let o=this.sessions.length,i=r.call(this),s=this.sessions.length;return o===s?e._connectionsUsage.add(1,{state:"used","pool.name":e._poolName}):o-1===s&&(e._connectionsUsage.add(-1,{state:"idle","pool.name":e._poolName}),e._connectionsUsage.add(1,{state:"used","pool.name":e._poolName})),i}}_getV4ReleaseCommand(){let e=this;return r=>function(o){let i=r.call(this,o);return e._connectionsUsage.add(-1,{state:"used","pool.name":e._poolName}),e._connectionsUsage.add(1,{state:"idle","pool.name":e._poolName}),i}}_getV4ConnectionPoolPatches(){return{v4PatchConnectionPool:e=>{let r=e.ConnectionPool.prototype;return(0,Te.isWrapped)(r.checkOut)&&this._unwrap(r,"checkOut"),this._wrap(r,"checkOut",this._getV4ConnectionPoolCheckOut()),e},v4UnpatchConnectionPool:e=>{e!==void 0&&this._unwrap(e.ConnectionPool.prototype,"checkOut")}}}_getV4ConnectPatches(){return{v4PatchConnect:e=>((0,Te.isWrapped)(e.connect)&&this._unwrap(e,"connect"),this._wrap(e,"connect",this._getV4ConnectCommand()),e),v4UnpatchConnect:e=>{e!==void 0&&this._unwrap(e,"connect")}}}_getV4ConnectionPoolCheckOut(){return e=>function(n){let o=ye.context.bind(ye.context.active(),n);return e.call(this,o)}}_getV4ConnectCommand(){let e=this;return r=>function(o,i){if(r.length===1){let a=r.call(this,o);return a&&typeof a.then=="function"&&a.then(()=>e.setPoolName(o),()=>{}),a}let s=function(a,u){if(a||!u){i(a,u);return}e.setPoolName(o),i(a,u)};return r.call(this,o,s)}}_getV4ConnectionPatches(){return{v4PatchConnectionCallback:e=>((0,Te.isWrapped)(e.Connection.prototype.command)&&this._unwrap(e.Connection.prototype,"command"),this._wrap(e.Connection.prototype,"command",this._getV4PatchCommandCallback()),e),v4PatchConnectionPromise:e=>((0,Te.isWrapped)(e.Connection.prototype.command)&&this._unwrap(e.Connection.prototype,"command"),this._wrap(e.Connection.prototype,"command",this._getV4PatchCommandPromise()),e),v4UnpatchConnection:e=>{e!==void 0&&this._unwrap(e.Connection.prototype,"command")}}}_getV3PatchOperation(e){let r=this;return n=>function(i,s,a,u,l){let d=ye.trace.getSpan(ye.context.active()),p=typeof u=="function"?u:l;if(!d||typeof p!="function"||typeof a!="object")return typeof u=="function"?n.call(this,i,s,a,u):n.call(this,i,s,a,u,l);let _=r.tracer.startSpan(`mongodb.${e}`,{kind:ye.SpanKind.CLIENT});r._populateV3Attributes(_,s,i,a[0],e);let f=r._patchEnd(_,p);return typeof u=="function"?n.call(this,i,s,a,f):n.call(this,i,s,a,u,f)}}_getV3PatchCommand(){let e=this;return r=>function(o,i,s,a,u){let l=ye.trace.getSpan(ye.context.active()),d=typeof a=="function"?a:u;if(!l||typeof d!="function"||typeof s!="object")return typeof a=="function"?r.call(this,o,i,s,a):r.call(this,o,i,s,a,u);let p=t._getCommandType(s),_=p===Di.MongodbCommandType.UNKNOWN?"command":p,f=e.tracer.startSpan(`mongodb.${_}`,{kind:ye.SpanKind.CLIENT}),g=p===Di.MongodbCommandType.UNKNOWN?void 0:p;e._populateV3Attributes(f,i,o,s,g);let E=e._patchEnd(f,d);return typeof a=="function"?r.call(this,o,i,s,E):r.call(this,o,i,s,a,E)}}_getV4PatchCommandCallback(){let e=this;return r=>function(o,i,s,a){let u=ye.trace.getSpan(ye.context.active()),l=a,d=Object.keys(i)[0];if(typeof l!="function"||typeof i!="object"||i.ismaster||i.hello)return r.call(this,o,i,s,a);let p;u&&(p=e.tracer.startSpan(`mongodb.${d}`,{kind:ye.SpanKind.CLIENT}),e._populateV4Attributes(p,this,o,i,d));let _=e._patchEnd(p,l,this.id,d);return r.call(this,o,i,s,_)}}_getV4PatchCommandPromise(){let e=this;return r=>function(...o){let[i,s]=o,a=ye.trace.getSpan(ye.context.active()),u=Object.keys(s)[0],l=()=>{};if(typeof s!="object"||s.ismaster||s.hello)return r.apply(this,o);let d;a&&(d=e.tracer.startSpan(`mongodb.${u}`,{kind:ye.SpanKind.CLIENT}),e._populateV4Attributes(d,this,i,s,u));let p=e._patchEnd(d,l,this.id,u),_=r.apply(this,o);return _.then(f=>p(null,f),f=>p(f)),_}}_getV3PatchFind(){let e=this;return r=>function(o,i,s,a,u,l){let d=ye.trace.getSpan(ye.context.active()),p=typeof u=="function"?u:l;if(!d||typeof p!="function"||typeof s!="object")return typeof u=="function"?r.call(this,o,i,s,a,u):r.call(this,o,i,s,a,u,l);let _=e.tracer.startSpan("mongodb.find",{kind:ye.SpanKind.CLIENT});e._populateV3Attributes(_,i,o,s,"find");let f=e._patchEnd(_,p);return typeof u=="function"?r.call(this,o,i,s,a,f):r.call(this,o,i,s,a,u,f)}}_getV3PatchCursor(){let e=this;return r=>function(o,i,s,a,u,l){let d=ye.trace.getSpan(ye.context.active()),p=typeof u=="function"?u:l;if(!d||typeof p!="function")return typeof u=="function"?r.call(this,o,i,s,a,u):r.call(this,o,i,s,a,u,l);let _=e.tracer.startSpan("mongodb.getMore",{kind:ye.SpanKind.CLIENT});e._populateV3Attributes(_,i,o,s.cmd,"getMore");let f=e._patchEnd(_,p);return typeof u=="function"?r.call(this,o,i,s,a,f):r.call(this,o,i,s,a,u,f)}}static _getCommandType(e){return e.createIndexes!==void 0?Di.MongodbCommandType.CREATE_INDEXES:e.findandmodify!==void 0?Di.MongodbCommandType.FIND_AND_MODIFY:e.ismaster!==void 0?Di.MongodbCommandType.IS_MASTER:e.count!==void 0?Di.MongodbCommandType.COUNT:e.aggregate!==void 0?Di.MongodbCommandType.AGGREGATE:Di.MongodbCommandType.UNKNOWN}_populateV4Attributes(e,r,n,o,i){let s,a;if(r){let l=typeof r.address=="string"?r.address.split(":"):"";l.length===2&&(s=l[0],a=l[1])}let u;o?.documents&&o.documents[0]?u=o.documents[0]:o?.cursors?u=o.cursors:u=o,this._addAllSpanAttributes(e,n.db,n.collection,s,a,u,i)}_populateV3Attributes(e,r,n,o,i){var s,a,u,l,d,p,_,f;let g,E;if(n&&n.s&&(g=(a=(s=n.s.options)===null||s===void 0?void 0:s.host)!==null&&a!==void 0?a:n.s.host,E=(d=(l=(u=n.s.options)===null||u===void 0?void 0:u.port)!==null&&l!==void 0?l:n.s.port)===null||d===void 0?void 0:d.toString(),g==null||E==null)){let D=(p=n.description)===null||p===void 0?void 0:p.address;if(D){let L=D.split(":");g=L[0],E=L[1]}}let[S,v]=r.toString().split("."),M=(f=(_=o?.query)!==null&&_!==void 0?_:o?.q)!==null&&f!==void 0?f:o;this._addAllSpanAttributes(e,S,v,g,E,M,i)}_addAllSpanAttributes(e,r,n,o,i,s,a){if(e.setAttributes({[go.SEMATTRS_DB_SYSTEM]:go.DBSYSTEMVALUES_MONGODB,[go.SEMATTRS_DB_NAME]:r,[go.SEMATTRS_DB_MONGODB_COLLECTION]:n,[go.SEMATTRS_DB_OPERATION]:a,[go.SEMATTRS_DB_CONNECTION_STRING]:`mongodb://${o}:${i}/${r}`}),o&&i){e.setAttribute(go.SEMATTRS_NET_PEER_NAME,o);let d=parseInt(i,10);isNaN(d)||e.setAttribute(go.SEMATTRS_NET_PEER_PORT,d)}if(!s)return;let{dbStatementSerializer:u}=this.getConfig(),l=typeof u=="function"?u:this._defaultDbStatementSerializer.bind(this);(0,Te.safeExecuteInTheMiddle)(()=>{let d=l(s);e.setAttribute(go.SEMATTRS_DB_STATEMENT,d)},d=>{d&&this._diag.error("Error running dbStatementSerializer hook",d)},!0)}_defaultDbStatementSerializer(e){let{enhancedDatabaseReporting:r}=this.getConfig(),n=r?e:this._scrubStatement(e);return JSON.stringify(n)}_scrubStatement(e){return Array.isArray(e)?e.map(r=>this._scrubStatement(r)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([r,n])=>[r,this._scrubStatement(n)])):"?"}_handleExecutionResult(e,r){let{responseHook:n}=this.getConfig();typeof n=="function"&&(0,Te.safeExecuteInTheMiddle)(()=>{n(e,{data:r})},o=>{o&&this._diag.error("Error running response hook",o)},!0)}_patchEnd(e,r,n,o){let i=ye.context.active(),s=this;return function(...u){let l=u[0];if(e){if(l instanceof Error)e?.setStatus({code:ye.SpanStatusCode.ERROR,message:l.message});else{let d=u[1];s._handleExecutionResult(e,d)}e.end()}return ye.context.with(i,()=>(o==="endSessions"&&s._connectionsUsage.add(-1,{state:"idle","pool.name":s._poolName}),r.apply(this,u)))}}setPoolName(e){var r,n;let o=(r=e.hostAddress)===null||r===void 0?void 0:r.host,i=(n=e.hostAddress)===null||n===void 0?void 0:n.port,s=e.dbName,a=`mongodb://${o}:${i}/${s}`;this._poolName=a}};KS.MongoDBInstrumentation=eD});var Q8=c(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.MongodbCommandType=void 0;var TKe;(function(t){t.CREATE_INDEXES="createIndexes",t.FIND_AND_MODIFY="findAndModify",t.IS_MASTER="isMaster",t.COUNT="count",t.UNKNOWN="unknown"})(TKe=fp.MongodbCommandType||(fp.MongodbCommandType={}))});var t7=c(Gi=>{"use strict";var SKe=Gi&&Gi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),e7=Gi&&Gi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&SKe(e,t,r)};Object.defineProperty(Gi,"__esModule",{value:!0});e7($8(),Gi);e7(Q8(),Gi)});var tD=c(XS=>{Object.defineProperty(XS,"__esModule",{value:!0});var AKe=t7(),RKe=W(),OKe=Pe(),IKe=Sn(),r7="Mongo",n7=OKe.generateInstrumentOnce(r7,()=>new AKe.MongoDBInstrumentation({responseHook(t){IKe.addOriginToSpan(t,"auto.db.otel.mongo")}})),bKe=()=>({name:r7,setupOnce(){n7()}}),PKe=RKe.defineIntegration(bKe);XS.instrumentMongo=n7;XS.mongoIntegration=PKe});var s7=c(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.handleCallbackResponse=Ui.handlePromiseResponse=Ui.getAttributesFromCollection=void 0;var o7=(y(),T(P)),yKe=je(),gp=(Q(),T($));function vKe(t){return{[gp.SEMATTRS_DB_MONGODB_COLLECTION]:t.name,[gp.SEMATTRS_DB_NAME]:t.conn.name,[gp.SEMATTRS_DB_USER]:t.conn.user,[gp.SEMATTRS_NET_PEER_NAME]:t.conn.host,[gp.SEMATTRS_NET_PEER_PORT]:t.conn.port}}Ui.getAttributesFromCollection=vKe;function i7(t,e={}){t.recordException(e),t.setStatus({code:o7.SpanStatusCode.ERROR,message:`${e.message} ${e.code?`
32
+ Mongoose Error Code: ${e.code}`:""}`})}function rD(t,e,r,n=void 0){r&&(0,yKe.safeExecuteInTheMiddle)(()=>r(t,{moduleVersion:n,response:e}),o=>{o&&o7.diag.error("mongoose instrumentation: responseHook error",o)},!0)}function NKe(t,e,r,n=void 0){return t instanceof Promise?t.then(o=>(rD(e,o,r,n),o)).catch(o=>{throw i7(e,o),o}).finally(()=>e.end()):(rD(e,t,r,n),e.end(),t)}Ui.handlePromiseResponse=NKe;function CKe(t,e,r,n,o,i,s=void 0){let a=0;return o.length===2&&(a=1),o[a]=(u,l)=>(u?i7(n,u):rD(n,l,i,s),n.end(),t(u,l)),e.apply(r,o)}Ui.handleCallbackResponse=CKe});var a7=c(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.PACKAGE_NAME=Pc.PACKAGE_VERSION=void 0;Pc.PACKAGE_VERSION="0.42.0";Pc.PACKAGE_NAME="@opentelemetry/instrumentation-mongoose"});var p7=c(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.MongooseInstrumentation=Mn._STORED_PARENT_SPAN=void 0;var Wt=(y(),T(P)),MKe=ue(),nD=s7(),u7=je(),c7=a7(),Ep=(Q(),T($)),ZS=["deleteOne","deleteMany","find","findOne","estimatedDocumentCount","countDocuments","distinct","where","$where","findOneAndUpdate","findOneAndDelete","findOneAndReplace"],LKe=["remove","count","findOneAndRemove",...ZS],DKe=["count","findOneAndRemove",...ZS],GKe=[...ZS];function l7(t){return t?t.startsWith("6.")||t.startsWith("5.")?LKe:t.startsWith("7.")?DKe:GKe:ZS}function d7(t){return t&&(t.startsWith("5.")||t.startsWith("6."))||!1}Mn._STORED_PARENT_SPAN=Symbol("stored-parent-span");var oD=class extends u7.InstrumentationBase{constructor(e={}){super(c7.PACKAGE_NAME,c7.PACKAGE_VERSION,e)}init(){return new u7.InstrumentationNodeModuleDefinition("mongoose",[">=5.9.7 <9"],this.patch.bind(this),this.unpatch.bind(this))}patch(e,r){return this._wrap(e.Model.prototype,"save",this.patchOnModelMethods("save",r)),e.Model.prototype.$save=e.Model.prototype.save,d7(r)&&this._wrap(e.Model.prototype,"remove",this.patchOnModelMethods("remove",r)),this._wrap(e.Query.prototype,"exec",this.patchQueryExec(r)),this._wrap(e.Aggregate.prototype,"exec",this.patchAggregateExec(r)),l7(r).forEach(o=>{this._wrap(e.Query.prototype,o,this.patchAndCaptureSpanContext(o))}),this._wrap(e.Model,"aggregate",this.patchModelAggregate()),e}unpatch(e,r){let n=l7(r);this._unwrap(e.Model.prototype,"save"),e.Model.prototype.$save=e.Model.prototype.save,d7(r)&&this._unwrap(e.Model.prototype,"remove"),this._unwrap(e.Query.prototype,"exec"),this._unwrap(e.Aggregate.prototype,"exec"),n.forEach(o=>{this._unwrap(e.Query.prototype,o)}),this._unwrap(e.Model,"aggregate")}patchAggregateExec(e){let r=this;return n=>function(i){var s;if(r.getConfig().requireParentSpan&&Wt.trace.getSpan(Wt.context.active())===void 0)return n.apply(this,arguments);let a=this[Mn._STORED_PARENT_SPAN],u={},{dbStatementSerializer:l}=r.getConfig();l&&(u[Ep.SEMATTRS_DB_STATEMENT]=l("aggregate",{options:this.options,aggregatePipeline:this._pipeline}));let d=r._startSpan(this._model.collection,(s=this._model)===null||s===void 0?void 0:s.modelName,"aggregate",u,a);return r._handleResponse(d,n,this,arguments,i,e)}}patchQueryExec(e){let r=this;return n=>function(i){if(r.getConfig().requireParentSpan&&Wt.trace.getSpan(Wt.context.active())===void 0)return n.apply(this,arguments);let s=this[Mn._STORED_PARENT_SPAN],a={},{dbStatementSerializer:u}=r.getConfig();u&&(a[Ep.SEMATTRS_DB_STATEMENT]=u(this.op,{condition:this._conditions,updates:this._update,options:this.options,fields:this._fields}));let l=r._startSpan(this.mongooseCollection,this.model.modelName,this.op,a,s);return r._handleResponse(l,n,this,arguments,i,e)}}patchOnModelMethods(e,r){let n=this;return o=>function(s,a){if(n.getConfig().requireParentSpan&&Wt.trace.getSpan(Wt.context.active())===void 0)return o.apply(this,arguments);let u={document:this};s&&!(s instanceof Function)&&(u.options=s);let l={},{dbStatementSerializer:d}=n.getConfig();d&&(l[Ep.SEMATTRS_DB_STATEMENT]=d(e,u));let p=n._startSpan(this.constructor.collection,this.constructor.modelName,e,l);return s instanceof Function&&(a=s,s=void 0),n._handleResponse(p,o,this,arguments,a,r)}}patchModelAggregate(){let e=this;return r=>function(){let o=Wt.trace.getSpan(Wt.context.active()),i=e._callOriginalFunction(()=>r.apply(this,arguments));return i&&(i[Mn._STORED_PARENT_SPAN]=o),i}}patchAndCaptureSpanContext(e){let r=this;return n=>function(){return this[Mn._STORED_PARENT_SPAN]=Wt.trace.getSpan(Wt.context.active()),r._callOriginalFunction(()=>n.apply(this,arguments))}}_startSpan(e,r,n,o,i){return this.tracer.startSpan(`mongoose.${r}.${n}`,{kind:Wt.SpanKind.CLIENT,attributes:Object.assign(Object.assign(Object.assign({},o),(0,nD.getAttributesFromCollection)(e)),{[Ep.SEMATTRS_DB_OPERATION]:n,[Ep.SEMATTRS_DB_SYSTEM]:"mongoose"})},i?Wt.trace.setSpan(Wt.context.active(),i):void 0)}_handleResponse(e,r,n,o,i,s=void 0){let a=this;if(i instanceof Function)return a._callOriginalFunction(()=>(0,nD.handleCallbackResponse)(i,r,n,e,o,a.getConfig().responseHook,s));{let u=a._callOriginalFunction(()=>r.apply(n,o));return(0,nD.handlePromiseResponse)(u,e,a.getConfig().responseHook,s)}}_callOriginalFunction(e){return this.getConfig().suppressInternalInstrumentation?Wt.context.with((0,MKe.suppressTracing)(Wt.context.active()),e):e()}};Mn.MongooseInstrumentation=oD});var f7=c(_7=>{"use strict";Object.defineProperty(_7,"__esModule",{value:!0})});var E7=c(xi=>{"use strict";var UKe=xi&&xi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),g7=xi&&xi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&UKe(e,t,r)};Object.defineProperty(xi,"__esModule",{value:!0});g7(p7(),xi);g7(f7(),xi)});var iD=c(zS=>{Object.defineProperty(zS,"__esModule",{value:!0});var xKe=E7(),wKe=W(),VKe=Pe(),BKe=Sn(),h7="Mongoose",m7=VKe.generateInstrumentOnce(h7,()=>new xKe.MongooseInstrumentation({responseHook(t){BKe.addOriginToSpan(t,"auto.db.otel.mongoose")}})),qKe=()=>({name:h7,setupOnce(){m7()}}),jKe=wKe.defineIntegration(qKe);zS.instrumentMongoose=m7;zS.mongooseIntegration=jKe});var T7=c(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.AttributeNames=void 0;var HKe;(function(t){t.MYSQL_VALUES="db.mysql.values"})(HKe=hp.AttributeNames||(hp.AttributeNames={}))});var A7=c(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.getPoolName=nr.arrayStringifyHelper=nr.getSpanName=nr.getDbValues=nr.getDbStatement=nr.getConnectionAttributes=void 0;var Eo=(Q(),T($));function FKe(t){let{host:e,port:r,database:n,user:o}=kKe(t),i=parseInt(r,10);return isNaN(i)?{[Eo.SEMATTRS_NET_PEER_NAME]:e,[Eo.SEMATTRS_DB_CONNECTION_STRING]:S7(e,r,n),[Eo.SEMATTRS_DB_NAME]:n,[Eo.SEMATTRS_DB_USER]:o}:{[Eo.SEMATTRS_NET_PEER_NAME]:e,[Eo.SEMATTRS_NET_PEER_PORT]:i,[Eo.SEMATTRS_DB_CONNECTION_STRING]:S7(e,r,n),[Eo.SEMATTRS_DB_NAME]:n,[Eo.SEMATTRS_DB_USER]:o}}nr.getConnectionAttributes=FKe;function kKe(t){let{host:e,port:r,database:n,user:o}=t&&t.connectionConfig||t||{};return{host:e,port:r,database:n,user:o}}function S7(t,e,r){let n=`jdbc:mysql://${t||"localhost"}`;return typeof e=="number"&&(n+=`:${e}`),typeof r=="string"&&(n+=`/${r}`),n}function WKe(t){return typeof t=="string"?t:t.sql}nr.getDbStatement=WKe;function YKe(t,e){return sD(typeof t=="string"?e:e||t.values)}nr.getDbValues=YKe;function KKe(t){return typeof t=="object"?t.sql:t.split(" ")[0]}nr.getSpanName=KKe;function sD(t){return t?`[${t.toString()}]`:""}nr.arrayStringifyHelper=sD;function XKe(t){let e=t.config.connectionConfig,r="";return r+=e.host?`host: '${e.host}', `:"",r+=e.port?`port: ${e.port}, `:"",r+=e.database?`database: '${e.database}', `:"",r+=e.user?`user: '${e.user}'`:"",e.user||(r=r.substring(0,r.length-2)),r.trim()}nr.getPoolName=XKe});var R7=c(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.PACKAGE_NAME=yc.PACKAGE_VERSION=void 0;yc.PACKAGE_VERSION="0.41.0";yc.PACKAGE_NAME="@opentelemetry/instrumentation-mysql"});var I7=c($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0});$S.MySQLInstrumentation=void 0;var or=(y(),T(P)),vc=je(),aD=(Q(),T($)),ZKe=T7(),Nc=A7(),O7=R7(),JS=class t extends vc.InstrumentationBase{constructor(e={}){super(O7.PACKAGE_NAME,O7.PACKAGE_VERSION,e),this._setMetricInstruments()}setMeterProvider(e){super.setMeterProvider(e),this._setMetricInstruments()}_setMetricInstruments(){this._connectionsUsage=this.meter.createUpDownCounter("db.client.connections.usage",{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"})}init(){return[new vc.InstrumentationNodeModuleDefinition("mysql",[">=2.0.0 <3"],e=>((0,vc.isWrapped)(e.createConnection)&&this._unwrap(e,"createConnection"),this._wrap(e,"createConnection",this._patchCreateConnection()),(0,vc.isWrapped)(e.createPool)&&this._unwrap(e,"createPool"),this._wrap(e,"createPool",this._patchCreatePool()),(0,vc.isWrapped)(e.createPoolCluster)&&this._unwrap(e,"createPoolCluster"),this._wrap(e,"createPoolCluster",this._patchCreatePoolCluster()),e),e=>{e!==void 0&&(this._unwrap(e,"createConnection"),this._unwrap(e,"createPool"),this._unwrap(e,"createPoolCluster"))})]}_patchCreateConnection(){return e=>{let r=this;return function(o){let i=e(...arguments);return r._wrap(i,"query",r._patchQuery(i)),i}}}_patchCreatePool(){return e=>{let r=this;return function(o){let i=e(...arguments);return r._wrap(i,"query",r._patchQuery(i)),r._wrap(i,"getConnection",r._patchGetConnection(i)),r._wrap(i,"end",r._patchPoolEnd(i)),r._setPoolcallbacks(i,r,""),i}}}_patchPoolEnd(e){return r=>{let n=this;return function(i){let s=e._allConnections.length,a=e._freeConnections.length,u=s-a,l=(0,Nc.getPoolName)(e);n._connectionsUsage.add(-u,{state:"used",name:l}),n._connectionsUsage.add(-a,{state:"idle",name:l}),r.apply(e,arguments)}}}_patchCreatePoolCluster(){return e=>{let r=this;return function(o){let i=e(...arguments);return r._wrap(i,"getConnection",r._patchGetConnection(i)),r._wrap(i,"add",r._patchAdd(i)),i}}}_patchAdd(e){return r=>{let n=this;return function(i,s){if(!n._enabled)return n._unwrap(e,"add"),r.apply(e,arguments);r.apply(e,arguments);let a=e._nodes;if(a){let u=typeof i=="object"?"CLUSTER::"+e._lastId:String(i),l=a[u].pool;n._setPoolcallbacks(l,n,i)}}}}_patchGetConnection(e){return r=>{let n=this;return function(i,s,a){if(!n._enabled)return n._unwrap(e,"getConnection"),r.apply(e,arguments);if(arguments.length===1&&typeof i=="function"){let u=n._getConnectionCallbackPatchFn(i);return r.call(e,u)}if(arguments.length===2&&typeof s=="function"){let u=n._getConnectionCallbackPatchFn(s);return r.call(e,i,u)}if(arguments.length===3&&typeof a=="function"){let u=n._getConnectionCallbackPatchFn(a);return r.call(e,i,s,u)}return r.apply(e,arguments)}}}_getConnectionCallbackPatchFn(e){let r=this,n=or.context.active();return function(o,i){i&&((0,vc.isWrapped)(i.query)||r._wrap(i,"query",r._patchQuery(i))),typeof e=="function"&&or.context.with(n,e,this,o,i)}}_patchQuery(e){return r=>{let n=this;return function(o,i,s){if(!n._enabled)return n._unwrap(e,"query"),r.apply(e,arguments);let a=n.tracer.startSpan((0,Nc.getSpanName)(o),{kind:or.SpanKind.CLIENT,attributes:Object.assign(Object.assign({},t.COMMON_ATTRIBUTES),(0,Nc.getConnectionAttributes)(e.config))});if(a.setAttribute(aD.SEMATTRS_DB_STATEMENT,(0,Nc.getDbStatement)(o)),n.getConfig().enhancedDatabaseReporting){let d;Array.isArray(i)?d=i:arguments[2]&&(d=[i]),a.setAttribute(ZKe.AttributeNames.MYSQL_VALUES,(0,Nc.getDbValues)(o,d))}let u=Array.from(arguments).findIndex(d=>typeof d=="function"),l=or.context.active();if(u===-1){let d=or.context.with(or.trace.setSpan(or.context.active(),a),()=>r.apply(e,arguments));return or.context.bind(l,d),d.on("error",p=>a.setStatus({code:or.SpanStatusCode.ERROR,message:p.message})).on("end",()=>{a.end()})}else return n._wrap(arguments,u,n._patchCallbackQuery(a,l)),or.context.with(or.trace.setSpan(or.context.active(),a),()=>r.apply(e,arguments))}}}_patchCallbackQuery(e,r){return n=>function(o,i,s){return o&&e.setStatus({code:or.SpanStatusCode.ERROR,message:o.message}),e.end(),or.context.with(r,()=>n(...arguments))}}_setPoolcallbacks(e,r,n){let o=n||(0,Nc.getPoolName)(e);e.on("connection",i=>{r._connectionsUsage.add(1,{state:"idle",name:o})}),e.on("acquire",i=>{r._connectionsUsage.add(-1,{state:"idle",name:o}),r._connectionsUsage.add(1,{state:"used",name:o})}),e.on("release",i=>{r._connectionsUsage.add(-1,{state:"used",name:o}),r._connectionsUsage.add(1,{state:"idle",name:o})})}};$S.MySQLInstrumentation=JS;JS.COMMON_ATTRIBUTES={[aD.SEMATTRS_DB_SYSTEM]:aD.DBSYSTEMVALUES_MYSQL}});var P7=c(b7=>{"use strict";Object.defineProperty(b7,"__esModule",{value:!0})});var v7=c(wi=>{"use strict";var zKe=wi&&wi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),y7=wi&&wi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&zKe(e,t,r)};Object.defineProperty(wi,"__esModule",{value:!0});y7(I7(),wi);y7(P7(),wi)});var uD=c(QS=>{Object.defineProperty(QS,"__esModule",{value:!0});var JKe=v7(),$Ke=W(),QKe=Pe(),N7="Mysql",C7=QKe.generateInstrumentOnce(N7,()=>new JKe.MySQLInstrumentation({})),eXe=()=>({name:N7,setupOnce(){C7()}}),tXe=$Ke.defineIntegration(eXe);QS.instrumentMysql=C7;QS.mysqlIntegration=tXe});var lD=c(eA=>{"use strict";Object.defineProperty(eA,"__esModule",{value:!0});eA.addSqlCommenterComment=void 0;var cD=(y(),T(P)),rXe=ue();function nXe(t){let e=t.indexOf("--");if(e>=0)return!0;if(t.indexOf("/*")<0)return!1;let n=t.indexOf("*/");return e<n}function oXe(t){return encodeURIComponent(t).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)}function iXe(t,e){if(typeof e!="string"||e.length===0||nXe(e))return e;let r=new rXe.W3CTraceContextPropagator,n={};r.inject(cD.trace.setSpan(cD.ROOT_CONTEXT,t),n,cD.defaultTextMapSetter);let o=Object.keys(n).sort();if(o.length===0)return e;let i=o.map(s=>{let a=oXe(n[s]);return`${s}='${a}'`}).join(",");return`${e} /*${i}*/`}eA.addSqlCommenterComment=iXe});var L7=c(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.once=Ln.getSpanName=Ln.getDbStatement=Ln.getConnectionAttributes=void 0;var ho=(Q(),T($));function sXe(t){let{host:e,port:r,database:n,user:o}=aXe(t),i=parseInt(r,10);return isNaN(i)?{[ho.SEMATTRS_NET_PEER_NAME]:e,[ho.SEMATTRS_DB_CONNECTION_STRING]:M7(e,r,n),[ho.SEMATTRS_DB_NAME]:n,[ho.SEMATTRS_DB_USER]:o}:{[ho.SEMATTRS_NET_PEER_NAME]:e,[ho.SEMATTRS_NET_PEER_PORT]:i,[ho.SEMATTRS_DB_CONNECTION_STRING]:M7(e,r,n),[ho.SEMATTRS_DB_NAME]:n,[ho.SEMATTRS_DB_USER]:o}}Ln.getConnectionAttributes=sXe;function aXe(t){let{host:e,port:r,database:n,user:o}=t&&t.connectionConfig||t||{};return{host:e,port:r,database:n,user:o}}function M7(t,e,r){let n=`jdbc:mysql://${t||"localhost"}`;return typeof e=="number"&&(n+=`:${e}`),typeof r=="string"&&(n+=`/${r}`),n}function uXe(t,e,r){return typeof t=="string"?r?e(t,r):t:r||t.values?e(t.sql,r||t.values):t.sql}Ln.getDbStatement=uXe;function cXe(t){var e;let r=typeof t=="object"?t.sql:t;return(e=r?.split(" "))===null||e===void 0?void 0:e[0]}Ln.getSpanName=cXe;var lXe=t=>{let e=!1;return(...r)=>{if(!e)return e=!0,t(...r)}};Ln.once=lXe});var D7=c(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.PACKAGE_NAME=Cc.PACKAGE_VERSION=void 0;Cc.PACKAGE_VERSION="0.41.0";Cc.PACKAGE_NAME="@opentelemetry/instrumentation-mysql2"});var w7=c(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.MySQL2Instrumentation=void 0;var G7=(y(),T(P)),mp=je(),dD=(Q(),T($)),U7=lD(),tA=L7(),x7=D7(),rA=class t extends mp.InstrumentationBase{constructor(e={}){super(x7.PACKAGE_NAME,x7.PACKAGE_VERSION,e)}init(){return[new mp.InstrumentationNodeModuleDefinition("mysql2",[">=1.4.2 <4"],e=>{let r=e.Connection.prototype;return(0,mp.isWrapped)(r.query)&&this._unwrap(r,"query"),this._wrap(r,"query",this._patchQuery(e.format,!1)),(0,mp.isWrapped)(r.execute)&&this._unwrap(r,"execute"),this._wrap(r,"execute",this._patchQuery(e.format,!0)),e},e=>{if(e===void 0)return;let r=e.Connection.prototype;this._unwrap(r,"query"),this._unwrap(r,"execute")})]}_patchQuery(e,r){return n=>{let o=this;return function(i,s,a){let u;Array.isArray(s)?u=s:arguments[2]&&(u=[s]);let l=o.tracer.startSpan((0,tA.getSpanName)(i),{kind:G7.SpanKind.CLIENT,attributes:Object.assign(Object.assign(Object.assign({},t.COMMON_ATTRIBUTES),(0,tA.getConnectionAttributes)(this.config)),{[dD.SEMATTRS_DB_STATEMENT]:(0,tA.getDbStatement)(i,e,u)})});!r&&o.getConfig().addSqlCommenterCommentToQueries&&(arguments[0]=i=typeof i=="string"?(0,U7.addSqlCommenterComment)(l,i):Object.assign(i,{sql:(0,U7.addSqlCommenterComment)(l,i.sql)}));let d=(0,tA.once)((p,_)=>{if(p)l.setStatus({code:G7.SpanStatusCode.ERROR,message:p.message});else{let{responseHook:f}=o.getConfig();typeof f=="function"&&(0,mp.safeExecuteInTheMiddle)(()=>{f(l,{queryResults:_})},g=>{g&&o._diag.warn("Failed executing responseHook",g)},!0)}l.end()});if(arguments.length===1){typeof i.onResult=="function"&&o._wrap(i,"onResult",o._patchCallbackQuery(d));let p=n.apply(this,arguments);return p.once("error",_=>{d(_)}).once("result",_=>{d(void 0,_)}),p}return typeof arguments[1]=="function"?o._wrap(arguments,1,o._patchCallbackQuery(d)):typeof arguments[2]=="function"&&o._wrap(arguments,2,o._patchCallbackQuery(d)),n.apply(this,arguments)}}}_patchCallbackQuery(e){return r=>function(n,o,i){return e(n,o),r(...arguments)}}};nA.MySQL2Instrumentation=rA;rA.COMMON_ATTRIBUTES={[dD.SEMATTRS_DB_SYSTEM]:dD.DBSYSTEMVALUES_MYSQL}});var B7=c(V7=>{"use strict";Object.defineProperty(V7,"__esModule",{value:!0})});var j7=c(Vi=>{"use strict";var dXe=Vi&&Vi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),q7=Vi&&Vi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&dXe(e,t,r)};Object.defineProperty(Vi,"__esModule",{value:!0});q7(w7(),Vi);q7(B7(),Vi)});var pD=c(oA=>{Object.defineProperty(oA,"__esModule",{value:!0});var pXe=j7(),_Xe=W(),fXe=Pe(),gXe=Sn(),H7="Mysql2",F7=fXe.generateInstrumentOnce(H7,()=>new pXe.MySQL2Instrumentation({responseHook(t){gXe.addOriginToSpan(t,"auto.db.otel.mysql2")}})),EXe=()=>({name:H7,setupOnce(){F7()}}),hXe=_Xe.defineIntegration(EXe);oA.instrumentMysql2=F7;oA.mysql2Integration=hXe});var k7=c(iA=>{"use strict";Object.defineProperty(iA,"__esModule",{value:!0});iA.endSpan=void 0;var mXe=(y(),T(P)),TXe=(t,e)=>{e&&(t.recordException(e),t.setStatus({code:mXe.SpanStatusCode.ERROR,message:e.message})),t.end()};iA.endSpan=TXe});var _D=c(sA=>{"use strict";Object.defineProperty(sA,"__esModule",{value:!0});sA.defaultDbStatementSerializer=void 0;var SXe=[{regex:/^ECHO/i,args:0},{regex:/^(LPUSH|MSET|PFA|PUBLISH|RPUSH|SADD|SET|SPUBLISH|XADD|ZADD)/i,args:1},{regex:/^(HSET|HMSET|LSET|LINSERT)/i,args:2},{regex:/^(ACL|BIT|B[LRZ]|CLIENT|CLUSTER|CONFIG|COMMAND|DECR|DEL|EVAL|EX|FUNCTION|GEO|GET|HINCR|HMGET|HSCAN|INCR|L[TRLM]|MEMORY|P[EFISTU]|RPOP|S[CDIMORSU]|XACK|X[CDGILPRT]|Z[CDILMPRS])/i,args:-1}],AXe=(t,e)=>{var r,n;if(Array.isArray(e)&&e.length){let o=(n=(r=SXe.find(({regex:s})=>s.test(t)))===null||r===void 0?void 0:r.args)!==null&&n!==void 0?n:0,i=o>=0?e.slice(0,o):e;return e.length>i.length&&i.push(`[${e.length-o} other arguments]`),`${t} ${i.join(" ")}`}return t};sA.defaultDbStatementSerializer=AXe});var W7=c(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.PACKAGE_NAME=Mc.PACKAGE_VERSION=void 0;Mc.PACKAGE_VERSION="0.43.0";Mc.PACKAGE_NAME="@opentelemetry/instrumentation-ioredis"});var Z7=c(uA=>{"use strict";Object.defineProperty(uA,"__esModule",{value:!0});uA.IORedisInstrumentation=void 0;var Bi=(y(),T(P)),aA=je(),wr=(Q(),T($)),Y7=je(),Tp=k7(),RXe=_D(),K7=W7(),X7={requireParentSpan:!0},fD=class extends aA.InstrumentationBase{constructor(e={}){super(K7.PACKAGE_NAME,K7.PACKAGE_VERSION,Object.assign(Object.assign({},X7),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},X7),e))}init(){return[new aA.InstrumentationNodeModuleDefinition("ioredis",[">=2.0.0 <6"],(e,r)=>{let n=e[Symbol.toStringTag]==="Module"?e.default:e;return(0,aA.isWrapped)(n.prototype.sendCommand)&&this._unwrap(n.prototype,"sendCommand"),this._wrap(n.prototype,"sendCommand",this._patchSendCommand(r)),(0,aA.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"connect",this._patchConnection()),e},e=>{if(e===void 0)return;let r=e[Symbol.toStringTag]==="Module"?e.default:e;this._unwrap(r.prototype,"sendCommand"),this._unwrap(r.prototype,"connect")})]}_patchSendCommand(e){return r=>this._traceSendCommand(r,e)}_patchConnection(){return e=>this._traceConnection(e)}_traceSendCommand(e,r){let n=this;return function(o){if(arguments.length<1||typeof o!="object")return e.apply(this,arguments);let i=n.getConfig(),s=i.dbStatementSerializer||RXe.defaultDbStatementSerializer,a=Bi.trace.getSpan(Bi.context.active())===void 0;if(i.requireParentSpan===!0&&a)return e.apply(this,arguments);let u=n.tracer.startSpan(o.name,{kind:Bi.SpanKind.CLIENT,attributes:{[wr.SEMATTRS_DB_SYSTEM]:wr.DBSYSTEMVALUES_REDIS,[wr.SEMATTRS_DB_STATEMENT]:s(o.name,o.args)}}),{requestHook:l}=i;l&&(0,Y7.safeExecuteInTheMiddle)(()=>l(u,{moduleVersion:r,cmdName:o.name,cmdArgs:o.args}),_=>{_&&Bi.diag.error("ioredis instrumentation: request hook failed",_)},!0);let{host:d,port:p}=this.options;u.setAttributes({[wr.SEMATTRS_NET_PEER_NAME]:d,[wr.SEMATTRS_NET_PEER_PORT]:p,[wr.SEMATTRS_DB_CONNECTION_STRING]:`redis://${d}:${p}`});try{let _=e.apply(this,arguments),f=o.resolve;o.resolve=function(E){(0,Y7.safeExecuteInTheMiddle)(()=>{var S;return(S=i.responseHook)===null||S===void 0?void 0:S.call(i,u,o.name,o.args,E)},S=>{S&&Bi.diag.error("ioredis instrumentation: response hook failed",S)},!0),(0,Tp.endSpan)(u,null),f(E)};let g=o.reject;return o.reject=function(E){(0,Tp.endSpan)(u,E),g(E)},_}catch(_){throw(0,Tp.endSpan)(u,_),_}}}_traceConnection(e){let r=this;return function(){let n=Bi.trace.getSpan(Bi.context.active())===void 0;if(r.getConfig().requireParentSpan===!0&&n)return e.apply(this,arguments);let o=r.tracer.startSpan("connect",{kind:Bi.SpanKind.CLIENT,attributes:{[wr.SEMATTRS_DB_SYSTEM]:wr.DBSYSTEMVALUES_REDIS,[wr.SEMATTRS_DB_STATEMENT]:"connect"}}),{host:i,port:s}=this.options;o.setAttributes({[wr.SEMATTRS_NET_PEER_NAME]:i,[wr.SEMATTRS_NET_PEER_PORT]:s,[wr.SEMATTRS_DB_CONNECTION_STRING]:`redis://${i}:${s}`});try{let a=e.apply(this,arguments);return(0,Tp.endSpan)(o,null),a}catch(a){throw(0,Tp.endSpan)(o,a),a}}}};uA.IORedisInstrumentation=fD});var J7=c(z7=>{"use strict";Object.defineProperty(z7,"__esModule",{value:!0})});var Q7=c(qi=>{"use strict";var OXe=qi&&qi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),$7=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&OXe(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});$7(Z7(),qi);$7(J7(),qi)});var eee=c(cA=>{"use strict";Object.defineProperty(cA,"__esModule",{value:!0});cA.getClientAttributes=void 0;var Sp=(Q(),T($));function IXe(t,e){var r,n;return{[Sp.SEMATTRS_DB_SYSTEM]:Sp.DBSYSTEMVALUES_REDIS,[Sp.SEMATTRS_NET_PEER_NAME]:(r=e?.socket)===null||r===void 0?void 0:r.host,[Sp.SEMATTRS_NET_PEER_PORT]:(n=e?.socket)===null||n===void 0?void 0:n.port,[Sp.SEMATTRS_DB_CONNECTION_STRING]:bXe(t,e?.url)}}cA.getClientAttributes=IXe;function bXe(t,e){if(typeof e=="string")try{let r=new URL(e);return r.searchParams.delete("user_pwd"),r.username="",r.password="",r.href}catch(r){t.error("failed to sanitize redis connection url",r)}}});var tee=c(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.PACKAGE_NAME=Lc.PACKAGE_VERSION=void 0;Lc.PACKAGE_VERSION="0.42.0";Lc.PACKAGE_NAME="@opentelemetry/instrumentation-redis-4"});var see=c(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});dA.RedisInstrumentation=void 0;var Vr=(y(),T(P)),at=je(),ree=eee(),PXe=_D(),nee=tee(),yXe=(Q(),T($)),Ap=Symbol("opentelemetry.instrumentation.redis.open_spans"),oee=Symbol("opentelemetry.instrumentation.redis.multi_command_options"),iee={requireParentSpan:!1},lA=class t extends at.InstrumentationBase{constructor(e={}){super(nee.PACKAGE_NAME,nee.PACKAGE_VERSION,Object.assign(Object.assign({},iee),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},iee),e))}init(){return[this._getInstrumentationNodeModuleDefinition("@redis/client"),this._getInstrumentationNodeModuleDefinition("@node-redis/client")]}_getInstrumentationNodeModuleDefinition(e){let r=new at.InstrumentationNodeModuleFile(`${e}/dist/lib/commander.js`,["^1.0.0"],(i,s)=>{let a=i.transformCommandArguments;if(!a)return this._diag.error("internal instrumentation error, missing transformCommandArguments function"),i;let u=s?.startsWith("1.0.")?"extendWithCommands":"attachCommands";return(0,at.isWrapped)(i?.[u])&&this._unwrap(i,u),this._wrap(i,u,this._getPatchExtendWithCommands(a)),i},i=>{(0,at.isWrapped)(i?.extendWithCommands)&&this._unwrap(i,"extendWithCommands"),(0,at.isWrapped)(i?.attachCommands)&&this._unwrap(i,"attachCommands")}),n=new at.InstrumentationNodeModuleFile(`${e}/dist/lib/client/multi-command.js`,["^1.0.0"],i=>{var s;let a=(s=i?.default)===null||s===void 0?void 0:s.prototype;return(0,at.isWrapped)(a?.exec)&&this._unwrap(a,"exec"),this._wrap(a,"exec",this._getPatchMultiCommandsExec()),(0,at.isWrapped)(a?.addCommand)&&this._unwrap(a,"addCommand"),this._wrap(a,"addCommand",this._getPatchMultiCommandsAddCommand()),i},i=>{var s;let a=(s=i?.default)===null||s===void 0?void 0:s.prototype;(0,at.isWrapped)(a?.exec)&&this._unwrap(a,"exec"),(0,at.isWrapped)(a?.addCommand)&&this._unwrap(a,"addCommand")}),o=new at.InstrumentationNodeModuleFile(`${e}/dist/lib/client/index.js`,["^1.0.0"],i=>{var s;let a=(s=i?.default)===null||s===void 0?void 0:s.prototype;return a?.multi&&((0,at.isWrapped)(a?.multi)&&this._unwrap(a,"multi"),this._wrap(a,"multi",this._getPatchRedisClientMulti())),a?.MULTI&&((0,at.isWrapped)(a?.MULTI)&&this._unwrap(a,"MULTI"),this._wrap(a,"MULTI",this._getPatchRedisClientMulti())),(0,at.isWrapped)(a?.sendCommand)&&this._unwrap(a,"sendCommand"),this._wrap(a,"sendCommand",this._getPatchRedisClientSendCommand()),this._wrap(a,"connect",this._getPatchedClientConnect()),i},i=>{var s;let a=(s=i?.default)===null||s===void 0?void 0:s.prototype;(0,at.isWrapped)(a?.multi)&&this._unwrap(a,"multi"),(0,at.isWrapped)(a?.MULTI)&&this._unwrap(a,"MULTI"),(0,at.isWrapped)(a?.sendCommand)&&this._unwrap(a,"sendCommand")});return new at.InstrumentationNodeModuleDefinition(e,["^1.0.0"],i=>i,()=>{},[r,n,o])}_getPatchExtendWithCommands(e){let r=this;return function(o){return function(s){var a;if(((a=s?.BaseClass)===null||a===void 0?void 0:a.name)!=="RedisClient")return o.apply(this,arguments);let u=s.executor;return s.executor=function(l,d){let p=e(l,d).args;return r._traceClientCommand(u,this,arguments,p)},o.apply(this,arguments)}}}_getPatchMultiCommandsExec(){let e=this;return function(n){return function(){let i=n.apply(this,arguments);return typeof i?.then!="function"?(e._diag.error("got non promise result when patching RedisClientMultiCommand.exec"),i):i.then(s=>{let a=this[Ap];return e._endSpansWithRedisReplies(a,s),s}).catch(s=>{let a=this[Ap];if(!a)e._diag.error("cannot find open spans to end for redis multi command");else{let u=s.constructor.name==="MultiErrorReply"?s.replies:new Array(a.length).fill(s);e._endSpansWithRedisReplies(a,u)}return Promise.reject(s)})}}}_getPatchMultiCommandsAddCommand(){let e=this;return function(n){return function(i){return e._traceClientCommand(n,this,arguments,i)}}}_getPatchRedisClientMulti(){return function(r){return function(){let o=r.apply(this,arguments);return o[oee]=this.options,o}}}_getPatchRedisClientSendCommand(){let e=this;return function(n){return function(i){return e._traceClientCommand(n,this,arguments,i)}}}_getPatchedClientConnect(){let e=this;return function(n){return function(){let i=this.options,s=(0,ree.getClientAttributes)(e._diag,i),a=e.tracer.startSpan(`${t.COMPONENT}-connect`,{kind:Vr.SpanKind.CLIENT,attributes:s});return Vr.context.with(Vr.trace.setSpan(Vr.context.active(),a),()=>n.apply(this)).then(l=>(a.end(),l)).catch(l=>(a.recordException(l),a.setStatus({code:Vr.SpanStatusCode.ERROR,message:l.message}),a.end(),Promise.reject(l)))}}}_traceClientCommand(e,r,n,o){if(Vr.trace.getSpan(Vr.context.active())===void 0&&this.getConfig().requireParentSpan)return e.apply(r,n);let s=r.options||r[oee],a=o[0],u=o.slice(1),l=this.getConfig().dbStatementSerializer||PXe.defaultDbStatementSerializer,d=(0,ree.getClientAttributes)(this._diag,s);try{let f=l(a,u);f!=null&&(d[yXe.SEMATTRS_DB_STATEMENT]=f)}catch(f){this._diag.error("dbStatementSerializer throw an exception",f,{commandName:a})}let p=this.tracer.startSpan(`${t.COMPONENT}-${a}`,{kind:Vr.SpanKind.CLIENT,attributes:d}),_=Vr.context.with(Vr.trace.setSpan(Vr.context.active(),p),()=>e.apply(r,n));if(typeof _?.then=="function")_.then(f=>{this._endSpanWithResponse(p,a,u,f,void 0)},f=>{this._endSpanWithResponse(p,a,u,null,f)});else{let f=_;f[Ap]=f[Ap]||[],f[Ap].push({span:p,commandName:a,commandArgs:u})}return _}_endSpansWithRedisReplies(e,r){if(!e)return this._diag.error("cannot find open spans to end for redis multi command");if(r.length!==e.length)return this._diag.error("number of multi command spans does not match response from redis");for(let n=0;n<e.length;n++){let{span:o,commandName:i,commandArgs:s}=e[n],a=r[n],[u,l]=a instanceof Error?[null,a]:[a,void 0];this._endSpanWithResponse(o,i,s,u,l)}}_endSpanWithResponse(e,r,n,o,i){let{responseHook:s}=this.getConfig();if(!i&&s)try{s(e,r,n,o)}catch(a){this._diag.error("responseHook throw an exception",a)}i&&(e.recordException(i),e.setStatus({code:Vr.SpanStatusCode.ERROR,message:i?.message})),e.end()}};dA.RedisInstrumentation=lA;lA.COMPONENT="redis"});var uee=c(aee=>{"use strict";Object.defineProperty(aee,"__esModule",{value:!0})});var lee=c(ji=>{"use strict";var vXe=ji&&ji.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),cee=ji&&ji.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vXe(e,t,r)};Object.defineProperty(ji,"__esModule",{value:!0});cee(see(),ji);cee(uee(),ji)});var gee=c(mo=>{Object.defineProperty(mo,"__esModule",{value:!0});var dee=b(),NXe=["get","set","setex"],pee=["get","mget"],_ee=["set","setex"];function pA(t,e){return t.includes(e.toLowerCase())}function fee(t){return pA(pee,t)?"cache.get":pA(_ee,t)?"cache.put":void 0}function CXe(t,e){return e.some(r=>t.startsWith(r))}function MXe(t,e){try{if(e.length===0)return;let r=o=>typeof o=="string"||typeof o=="number"||Buffer.isBuffer(o)?[o.toString()]:Array.isArray(o)?dee.flatten(o.map(i=>r(i))):["<unknown>"],n=e[0];return pA(NXe,t)&&n!=null?r(n):dee.flatten(e.map(o=>r(o)))}catch{return}}function LXe(t,e,r){if(!fee(t))return!1;for(let n of e)if(CXe(n,r))return!0;return!1}function DXe(t){let e=r=>{try{return Buffer.isBuffer(r)?r.byteLength:typeof r=="string"?r.length:typeof r=="number"?r.toString().length:r==null?0:JSON.stringify(r).length}catch{return}};return Array.isArray(t)?t.reduce((r,n)=>{let o=e(n);return typeof o=="number"?r!==void 0?r+o:o:r},0):e(t)}mo.GET_COMMANDS=pee;mo.SET_COMMANDS=_ee;mo.calculateCacheItemSize=DXe;mo.getCacheKeySafely=MXe;mo.getCacheOperation=fee;mo.isInCommands=pA;mo.shouldConsiderForCache=LXe});var hD=c(_A=>{var{_optionalChain:gD}=b();Object.defineProperty(_A,"__esModule",{value:!0});var GXe=Q7(),UXe=lee(),Hi=W(),xXe=b(),Eee=Pe(),Dc=gee(),hee="Redis",ED={},mee=(t,e,r,n)=>{t.setAttribute(Hi.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.redis");let o=Dc.getCacheKeySafely(e,r),i=Dc.getCacheOperation(e);if(!o||!i||!gD([ED,"optionalAccess",d=>d.cachePrefixes])||!Dc.shouldConsiderForCache(e,o,ED.cachePrefixes))return;let s=gD([Hi.spanToJSON,"call",d=>d(t),"access",d=>d.data,"optionalAccess",d=>d["net.peer.name"]]),a=gD([Hi.spanToJSON,"call",d=>d(t),"access",d=>d.data,"optionalAccess",d=>d["net.peer.port"]]);a&&s&&t.setAttributes({"network.peer.address":s,"network.peer.port":a});let u=Dc.calculateCacheItemSize(n);u&&t.setAttribute(Hi.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,u),Dc.isInCommands(Dc.GET_COMMANDS,e)&&u!==void 0&&t.setAttribute(Hi.SEMANTIC_ATTRIBUTE_CACHE_HIT,u>0),t.setAttributes({[Hi.SEMANTIC_ATTRIBUTE_SENTRY_OP]:i,[Hi.SEMANTIC_ATTRIBUTE_CACHE_KEY]:o});let l=o.join(", ");t.updateName(xXe.truncate(l,1024))},wXe=Eee.generateInstrumentOnce("IORedis",()=>new GXe.IORedisInstrumentation({responseHook:mee})),VXe=Eee.generateInstrumentOnce("Redis-4",()=>new UXe.RedisInstrumentation({responseHook:mee})),Tee=Object.assign(()=>{wXe(),VXe()},{id:hee}),BXe=(t={})=>({name:hee,setupOnce(){ED=t,Tee()}}),qXe=Hi.defineIntegration(BXe);_A.instrumentRedis=Tee;_A.redisIntegration=qXe});var See=c(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.PACKAGE_NAME=Gc.PACKAGE_VERSION=void 0;Gc.PACKAGE_VERSION="0.40.0";Gc.PACKAGE_NAME="@opentelemetry/instrumentation-nestjs-core"});var mD=c(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.AttributeNames=void 0;var jXe;(function(t){t.VERSION="nestjs.version",t.TYPE="nestjs.type",t.MODULE="nestjs.module",t.CONTROLLER="nestjs.controller",t.CALLBACK="nestjs.callback",t.PIPES="nestjs.pipes",t.INTERCEPTORS="nestjs.interceptors",t.GUARDS="nestjs.guards"})(jXe=Rp.AttributeNames||(Rp.AttributeNames={}))});var Aee=c(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.NestType=void 0;var HXe;(function(t){t.APP_CREATION="app_creation",t.REQUEST_CONTEXT="request_context",t.REQUEST_HANDLER="handler"})(HXe=Op.NestType||(Op.NestType={}))});var Ree=c(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.NestType=Uc.AttributeNames=void 0;var FXe=mD();Object.defineProperty(Uc,"AttributeNames",{enumerable:!0,get:function(){return FXe.AttributeNames}});var kXe=Aee();Object.defineProperty(Uc,"NestType",{enumerable:!0,get:function(){return kXe.NestType}})});var Iee=c(fA=>{"use strict";Object.defineProperty(fA,"__esModule",{value:!0});fA.NestInstrumentation=void 0;var Dn=(y(),T(P)),Ip=je(),Oee=See(),TD=(Q(),T($)),fr=Ree(),SD=[">=4.0.0 <11"],To=class t extends Ip.InstrumentationBase{constructor(e={}){super(Oee.PACKAGE_NAME,Oee.PACKAGE_VERSION,e)}init(){let e=new Ip.InstrumentationNodeModuleDefinition(t.COMPONENT,SD);return e.files.push(this.getNestFactoryFileInstrumentation(SD),this.getRouterExecutionContextFileInstrumentation(SD)),e}getNestFactoryFileInstrumentation(e){return new Ip.InstrumentationNodeModuleFile("@nestjs/core/nest-factory.js",e,(r,n)=>(this.ensureWrapped(r.NestFactoryStatic.prototype,"create",WXe(this.tracer,n)),r),r=>{this._unwrap(r.NestFactoryStatic.prototype,"create")})}getRouterExecutionContextFileInstrumentation(e){return new Ip.InstrumentationNodeModuleFile("@nestjs/core/router/router-execution-context.js",e,(r,n)=>(this.ensureWrapped(r.RouterExecutionContext.prototype,"create",YXe(this.tracer,n)),r),r=>{this._unwrap(r.RouterExecutionContext.prototype,"create")})}ensureWrapped(e,r,n){(0,Ip.isWrapped)(e[r])&&this._unwrap(e,r),this._wrap(e,r,n)}};fA.NestInstrumentation=To;To.COMPONENT="@nestjs/core";To.COMMON_ATTRIBUTES={component:To.COMPONENT};function WXe(t,e){return function(n){return function(i){let s=t.startSpan("Create Nest App",{attributes:Object.assign(Object.assign({},To.COMMON_ATTRIBUTES),{[fr.AttributeNames.TYPE]:fr.NestType.APP_CREATION,[fr.AttributeNames.VERSION]:e,[fr.AttributeNames.MODULE]:i.name})}),a=Dn.trace.setSpan(Dn.context.active(),s);return Dn.context.with(a,async()=>{try{return await n.apply(this,arguments)}catch(u){throw AD(s,u)}finally{s.end()}})}}}function YXe(t,e){return function(n){return function(i,s){arguments[1]=KXe(t,e,s);let a=n.apply(this,arguments),u=s.name,l=i.constructor&&i.constructor.name?i.constructor.name:"UnnamedInstance",d=u?`${l}.${u}`:l;return function(p,_,f){var g,E;let S=t.startSpan(d,{attributes:Object.assign(Object.assign({},To.COMMON_ATTRIBUTES),{[fr.AttributeNames.VERSION]:e,[fr.AttributeNames.TYPE]:fr.NestType.REQUEST_CONTEXT,[TD.SEMATTRS_HTTP_METHOD]:p.method,[TD.SEMATTRS_HTTP_URL]:p.originalUrl||p.url,[TD.SEMATTRS_HTTP_ROUTE]:((g=p.route)===null||g===void 0?void 0:g.path)||((E=p.routeOptions)===null||E===void 0?void 0:E.url)||p.routerPath,[fr.AttributeNames.CONTROLLER]:l,[fr.AttributeNames.CALLBACK]:u})}),v=Dn.trace.setSpan(Dn.context.active(),S);return Dn.context.with(v,async()=>{try{return await a.apply(this,arguments)}catch(M){throw AD(S,M)}finally{S.end()}})}}}}function KXe(t,e,r){let n=r.name||"anonymous nest handler",o={attributes:Object.assign(Object.assign({},To.COMMON_ATTRIBUTES),{[fr.AttributeNames.VERSION]:e,[fr.AttributeNames.TYPE]:fr.NestType.REQUEST_HANDLER,[fr.AttributeNames.CALLBACK]:r.name})},i=function(){let s=t.startSpan(n,o),a=Dn.trace.setSpan(Dn.context.active(),s);return Dn.context.with(a,async()=>{try{return await r.apply(this,arguments)}catch(u){throw AD(s,u)}finally{s.end()}})};return r.name&&Object.defineProperty(i,"name",{value:r.name}),Reflect.getMetadataKeys(r).forEach(s=>{Reflect.defineMetadata(s,Reflect.getMetadata(s,r),i)}),i}var AD=(t,e)=>(t.recordException(e),t.setStatus({code:Dn.SpanStatusCode.ERROR,message:e.message}),e)});var Pee=c(Fi=>{"use strict";var XXe=Fi&&Fi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),bee=Fi&&Fi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&XXe(e,t,r)};Object.defineProperty(Fi,"__esModule",{value:!0});bee(Iee(),Fi);bee(mD(),Fi)});var yee=c(xc=>{var{_nullishCoalesce:ZXe}=b();Object.defineProperty(xc,"__esModule",{value:!0});var gA=W(),zXe=b(),JXe="sentryPatched";function $Xe(t){return t.sentryPatched?!0:(zXe.addNonEnumerableProperty(t,JXe,!0),!1)}function QXe(t,e=void 0){return{name:ZXe(e,()=>t.name),attributes:{[gA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"middleware.nestjs",[gA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.middleware.nestjs"}}}function e2e(t,e){e&&(t.subscribe=new Proxy(t.subscribe,{apply:(r,n,o)=>gA.withActiveSpan(e,()=>{let i=r.apply(n,o);return i.add(()=>e.end()),i})}))}function t2e(t,e,r){return new Proxy(t,{apply:(n,o,i)=>(e.end(),r?gA.withActiveSpan(r,()=>Reflect.apply(n,o,i)):Reflect.apply(n,o,i))})}xc.getMiddlewareSpanOptions=QXe;xc.getNextProxy=t2e;xc.instrumentObservable=e2e;xc.isPatched=$Xe});var Cee=c(OD=>{var{_nullishCoalesce:vee,_optionalChain:EA}=b();Object.defineProperty(OD,"__esModule",{value:!0});var Nee=ue(),hA=zh(),Gn=W(),mA=b(),Yt=yee(),RD=[">=8.0.0 <11"],bp=class t extends hA.InstrumentationBase{static __initStatic(){this.COMPONENT="@nestjs/common"}static __initStatic2(){this.COMMON_ATTRIBUTES={component:t.COMPONENT}}constructor(e={}){super("sentry-nestjs",mA.SDK_VERSION,e)}init(){let e=new hA.InstrumentationNodeModuleDefinition(t.COMPONENT,RD);return e.files.push(this._getInjectableFileInstrumentation(RD),this._getCatchFileInstrumentation(RD)),e}_getInjectableFileInstrumentation(e){return new hA.InstrumentationNodeModuleFile("@nestjs/common/decorators/core/injectable.decorator.js",e,r=>(Nee.isWrapped(r.Injectable)&&this._unwrap(r,"Injectable"),this._wrap(r,"Injectable",this._createWrapInjectable()),r),r=>{this._unwrap(r,"Injectable")})}_getCatchFileInstrumentation(e){return new hA.InstrumentationNodeModuleFile("@nestjs/common/decorators/core/catch.decorator.js",e,r=>(Nee.isWrapped(r.Catch)&&this._unwrap(r,"Catch"),this._wrap(r,"Catch",this._createWrapCatch()),r),r=>{this._unwrap(r,"Catch")})}_createWrapInjectable(){return function(r){return function(o){return function(i){if(typeof i.prototype.use=="function"&&!i.__SENTRY_INTERNAL__){if(Yt.isPatched(i))return r(o)(i);i.prototype.use=new Proxy(i.prototype.use,{apply:(s,a,u)=>{let[l,d,p,..._]=u;if(!l||!d||!p||typeof p!="function")return s.apply(a,u);let f=Gn.getActiveSpan();return Gn.startSpanManual(Yt.getMiddlewareSpanOptions(i),g=>{let E=Yt.getNextProxy(p,g,f);return s.apply(a,[l,d,E,_])})}})}if(typeof i.prototype.canActivate=="function"&&!i.__SENTRY_INTERNAL__){if(Yt.isPatched(i))return r(o)(i);i.prototype.canActivate=new Proxy(i.prototype.canActivate,{apply:(s,a,u)=>u[0]?Gn.startSpan(Yt.getMiddlewareSpanOptions(i),()=>s.apply(a,u)):s.apply(a,u)})}if(typeof i.prototype.transform=="function"&&!i.__SENTRY_INTERNAL__){if(Yt.isPatched(i))return r(o)(i);i.prototype.transform=new Proxy(i.prototype.transform,{apply:(s,a,u)=>{let l=u[0],d=u[1];return!l||!d?s.apply(a,u):Gn.startSpan(Yt.getMiddlewareSpanOptions(i),()=>s.apply(a,u))}})}if(typeof i.prototype.intercept=="function"&&!i.__SENTRY_INTERNAL__){if(Yt.isPatched(i))return r(o)(i);i.prototype.intercept=new Proxy(i.prototype.intercept,{apply:(s,a,u)=>{let l=u[0],d=u[1],p=Gn.getActiveSpan(),_;return!l||!d||typeof d.handle!="function"?s.apply(a,u):Gn.startSpanManual(Yt.getMiddlewareSpanOptions(i),f=>{d.handle=new Proxy(d.handle,{apply:(E,S,v)=>{if(f.end(),p)return Gn.withActiveSpan(p,()=>{let M=Reflect.apply(E,S,v);return l._sentryInterceptorInstrumented||(mA.addNonEnumerableProperty(l,"_sentryInterceptorInstrumented",!0),_=Gn.startInactiveSpan(Yt.getMiddlewareSpanOptions(i,"Interceptors - After Route"))),M});{let M=Reflect.apply(E,S,v);return l._sentryInterceptorInstrumented||(mA.addNonEnumerableProperty(l,"_sentryInterceptorInstrumented",!0),_=Gn.startInactiveSpan(Yt.getMiddlewareSpanOptions(i,"Interceptors - After Route"))),M}}});let g;try{g=s.apply(a,u)}catch(E){throw EA([f,"optionalAccess",S=>S.end,"call",S=>S()]),EA([_,"optionalAccess",S=>S.end,"call",S=>S()]),E}return _?mA.isThenable(g)?g.then(E=>(Yt.instrumentObservable(E,vee(_,()=>p)),E),E=>{throw EA([f,"optionalAccess",S=>S.end,"call",S=>S()]),EA([_,"optionalAccess",S=>S.end,"call",S=>S()]),E}):(typeof g.subscribe=="function"&&Yt.instrumentObservable(g,vee(_,()=>p)),g):g})}})}return r(o)(i)}}}}_createWrapCatch(){return function(r){return function(...o){return function(i){if(typeof i.prototype.catch=="function"&&!i.__SENTRY_INTERNAL__){if(Yt.isPatched(i))return r(...o)(i);i.prototype.catch=new Proxy(i.prototype.catch,{apply:(s,a,u)=>{let l=u[0],d=u[1];return!l||!d?s.apply(a,u):Gn.startSpan(Yt.getMiddlewareSpanOptions(i),()=>s.apply(a,u))}})}return r(...o)(i)}}}}};bp.__initStatic();bp.__initStatic2();OD.SentryNestInstrumentation=bp});var ID=c(Pp=>{var{_optionalChain:r2e}=b();Object.defineProperty(Pp,"__esModule",{value:!0});var n2e=Pee(),Un=W(),o2e=b(),Mee=Pe(),i2e=Cee(),Lee="Nest",s2e=Mee.generateInstrumentOnce("Nest-Core",()=>new n2e.NestInstrumentation),a2e=Mee.generateInstrumentOnce("Nest-Common",()=>new i2e.SentryNestInstrumentation),Dee=Object.assign(()=>{s2e(),a2e()},{id:Lee}),u2e=()=>({name:Lee,setupOnce(){Dee()}}),c2e=Un.defineIntegration(u2e);function l2e(t,e){let r=Un.getClient();r&&r.on("spanStart",o=>{d2e(o)}),t.useGlobalInterceptors({intercept(o,i){if(Un.getIsolationScope()===Un.getDefaultIsolationScope())return o2e.logger.warn("Isolation scope is still the default isolation scope, skipping setting transactionName."),i.handle();if(o.getType()==="http"){let s=o.switchToHttp().getRequest();s.route&&Un.getIsolationScope().setTransactionName(`${r2e([s,"access",a=>a.method,"optionalAccess",a=>a.toUpperCase,"call",a=>a()])||"GET"} ${s.route.path}`)}return i.handle()}});let n=new Proxy(e,{get(o,i,s){if(i==="catch"){let a=Reflect.get(o,i,s);return(u,l)=>{let d=typeof u=="object"&&u!==null,p=d&&"status"in u?u.status:null,_=d&&"error"in u?u.error:null;return p!==null||_!==null?a.apply(o,[u,l]):(Un.captureException(u),a.apply(o,[u,l]))}}return Reflect.get(o,i,s)}});t.useGlobalFilters(n)}function d2e(t){let e=Un.spanToJSON(t).data||{},r=e["nestjs.type"];e[Un.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!r||t.setAttributes({[Un.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.nestjs",[Un.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.nestjs`})}Pp.instrumentNest=Dee;Pp.nestIntegration=c2e;Pp.setupNestErrorHandler=l2e});var bD=c(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.AttributeNames=void 0;var p2e;(function(t){t.PG_VALUES="db.postgresql.values",t.PG_PLAN="db.postgresql.plan",t.IDLE_TIMEOUT_MILLIS="db.postgresql.idle.timeout.millis",t.MAX_CLIENT="db.postgresql.max.client"})(p2e=yp.AttributeNames||(yp.AttributeNames={}))});var PD=c(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.SpanNames=void 0;var _2e;(function(t){t.QUERY_PREFIX="pg.query",t.CONNECT="pg.connect",t.POOL_CONNECT="pg-pool.connect"})(_2e=vp.SpanNames||(vp.SpanNames={}))});var Bee=c(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.isObjectWithTextString=Ee.getErrorMessage=Ee.patchClientConnectCallback=Ee.patchCallbackPGPool=Ee.patchCallback=Ee.handleExecutionResult=Ee.handleConfigQuery=Ee.shouldSkipInstrumentation=Ee.getSemanticAttributesFromPool=Ee.getSemanticAttributesFromConnection=Ee.getConnectionString=Ee.getQuerySpanName=void 0;var ki=(y(),T(P)),TA=bD(),Kt=(Q(),T($)),f2e=je(),Gee=PD();function Uee(t,e){if(!e)return Gee.SpanNames.QUERY_PREFIX;let r=typeof e.name=="string"&&e.name?e.name:g2e(e.text);return`${Gee.SpanNames.QUERY_PREFIX}:${r}${t?` ${t}`:""}`}Ee.getQuerySpanName=Uee;function g2e(t){let e=t.indexOf(" "),r=e===-1?t:t.slice(0,e);return r=r.toUpperCase(),r.endsWith(";")?r.slice(0,-1):r}function yD(t){let e=t.host||"localhost",r=t.port||5432,n=t.database||"";return`postgresql://${e}:${r}/${n}`}Ee.getConnectionString=yD;function xee(t){if(Number.isInteger(t))return t}function wee(t){return{[Kt.SEMATTRS_DB_SYSTEM]:Kt.DBSYSTEMVALUES_POSTGRESQL,[Kt.SEMATTRS_DB_NAME]:t.database,[Kt.SEMATTRS_DB_CONNECTION_STRING]:yD(t),[Kt.SEMATTRS_NET_PEER_NAME]:t.host,[Kt.SEMATTRS_NET_PEER_PORT]:xee(t.port),[Kt.SEMATTRS_DB_USER]:t.user}}Ee.getSemanticAttributesFromConnection=wee;function E2e(t){return{[Kt.SEMATTRS_DB_SYSTEM]:Kt.DBSYSTEMVALUES_POSTGRESQL,[Kt.SEMATTRS_DB_NAME]:t.database,[Kt.SEMATTRS_DB_CONNECTION_STRING]:yD(t),[Kt.SEMATTRS_NET_PEER_NAME]:t.host,[Kt.SEMATTRS_NET_PEER_PORT]:xee(t.port),[Kt.SEMATTRS_DB_USER]:t.user,[TA.AttributeNames.IDLE_TIMEOUT_MILLIS]:t.idleTimeoutMillis,[TA.AttributeNames.MAX_CLIENT]:t.maxClient}}Ee.getSemanticAttributesFromPool=E2e;function h2e(t){return t.requireParentSpan===!0&&ki.trace.getSpan(ki.context.active())===void 0}Ee.shouldSkipInstrumentation=h2e;function m2e(t,e,r){let{connectionParameters:n}=this,o=n.database,i=Uee(o,r),s=t.startSpan(i,{kind:ki.SpanKind.CLIENT,attributes:wee(n)});if(!r)return s;if(r.text&&s.setAttribute(Kt.SEMATTRS_DB_STATEMENT,r.text),e.enhancedDatabaseReporting&&Array.isArray(r.values))try{let a=r.values.map(u=>u==null?"null":u instanceof Buffer?u.toString():typeof u=="object"?typeof u.toPostgres=="function"?u.toPostgres():JSON.stringify(u):u.toString());s.setAttribute(TA.AttributeNames.PG_VALUES,a)}catch(a){ki.diag.error("failed to stringify ",r.values,a)}return typeof r.name=="string"&&s.setAttribute(TA.AttributeNames.PG_PLAN,r.name),s}Ee.handleConfigQuery=m2e;function Vee(t,e,r){typeof t.responseHook=="function"&&(0,f2e.safeExecuteInTheMiddle)(()=>{t.responseHook(e,{data:r})},n=>{n&&ki.diag.error("Error running response hook",n)},!0)}Ee.handleExecutionResult=Vee;function T2e(t,e,r){return function(o,i){o?e.setStatus({code:ki.SpanStatusCode.ERROR,message:o.message}):Vee(t,e,i),e.end(),r.call(this,o,i)}}Ee.patchCallback=T2e;function S2e(t,e){return function(n,o,i){n&&t.setStatus({code:ki.SpanStatusCode.ERROR,message:n.message}),t.end(),e.call(this,n,o,i)}}Ee.patchCallbackPGPool=S2e;function A2e(t,e){return function(n){n&&t.setStatus({code:ki.SpanStatusCode.ERROR,message:n.message}),t.end(),e.apply(this,arguments)}}Ee.patchClientConnectCallback=A2e;function R2e(t){return typeof t=="object"&&t!==null&&"message"in t?String(t.message):void 0}Ee.getErrorMessage=R2e;function O2e(t){var e;return typeof t=="object"&&typeof((e=t)===null||e===void 0?void 0:e.text)=="string"}Ee.isObjectWithTextString=O2e});var qee=c(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.PACKAGE_NAME=wc.PACKAGE_VERSION=void 0;wc.PACKAGE_VERSION="0.44.0";wc.PACKAGE_NAME="@opentelemetry/instrumentation-pg"});var Wee=c(SA=>{"use strict";Object.defineProperty(SA,"__esModule",{value:!0});SA.PgInstrumentation=void 0;var So=je(),de=(y(),T(P)),ir=Bee(),jee=lD(),Hee=qee(),Fee=PD(),vD=class extends So.InstrumentationBase{constructor(e={}){super(Hee.PACKAGE_NAME,Hee.PACKAGE_VERSION,e)}init(){let e=new So.InstrumentationNodeModuleDefinition("pg",[">=8.0.0 <9"],n=>{let o=n[Symbol.toStringTag]==="Module"?n.default:n;return(0,So.isWrapped)(o.Client.prototype.query)&&this._unwrap(o.Client.prototype,"query"),(0,So.isWrapped)(o.Client.prototype.connect)&&this._unwrap(o.Client.prototype,"connect"),this._wrap(o.Client.prototype,"query",this._getClientQueryPatch()),this._wrap(o.Client.prototype,"connect",this._getClientConnectPatch()),n},n=>{let o=n[Symbol.toStringTag]==="Module"?n.default:n;(0,So.isWrapped)(o.Client.prototype.query)&&this._unwrap(o.Client.prototype,"query")}),r=new So.InstrumentationNodeModuleDefinition("pg-pool",[">=2.0.0 <4"],n=>((0,So.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"connect",this._getPoolConnectPatch()),n),n=>{(0,So.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect")});return[e,r]}_getClientConnectPatch(){let e=this;return r=>function(o){if(ir.shouldSkipInstrumentation(e.getConfig()))return r.call(this,o);let i=e.tracer.startSpan(Fee.SpanNames.CONNECT,{kind:de.SpanKind.CLIENT,attributes:ir.getSemanticAttributesFromConnection(this)});if(o){let a=de.trace.getSpan(de.context.active());o=ir.patchClientConnectCallback(i,o),a&&(o=de.context.bind(de.context.active(),o))}let s=de.context.with(de.trace.setSpan(de.context.active(),i),()=>r.call(this,o));return kee(i,s)}}_getClientQueryPatch(){let e=this;return r=>(this._diag.debug("Patching pg.Client.prototype.query"),function(...o){if(ir.shouldSkipInstrumentation(e.getConfig()))return r.apply(this,o);let i=o[0],s=typeof i=="string",a=ir.isObjectWithTextString(i),u=s?{text:i,values:Array.isArray(o[1])?o[1]:void 0}:a?i:void 0,l=e.getConfig(),d=ir.handleConfigQuery.call(this,e.tracer,l,u);if(l.addSqlCommenterCommentToQueries&&(o[0]=s?(0,jee.addSqlCommenterComment)(d,i):a?Object.assign(Object.assign({},i),{text:(0,jee.addSqlCommenterComment)(d,i.text)}):o[0]),o.length>0){let f=de.trace.getSpan(de.context.active());if(typeof o[o.length-1]=="function")o[o.length-1]=ir.patchCallback(l,d,o[o.length-1]),f&&(o[o.length-1]=de.context.bind(de.context.active(),o[o.length-1]));else if(typeof u?.callback=="function"){let g=ir.patchCallback(e.getConfig(),d,u.callback);f&&(g=de.context.bind(de.context.active(),g)),o[0].callback=g}}let{requestHook:p}=l;typeof p=="function"&&u&&(0,So.safeExecuteInTheMiddle)(()=>{let{database:f,host:g,port:E,user:S}=this.connectionParameters;p(d,{connection:{database:f,host:g,port:E,user:S},query:{text:u.text,values:u.values,name:u.name}})},f=>{f&&e._diag.error("Error running query hook",f)},!0);let _;try{_=r.apply(this,o)}catch(f){throw d.setStatus({code:de.SpanStatusCode.ERROR,message:ir.getErrorMessage(f)}),d.end(),f}return _ instanceof Promise?_.then(f=>new Promise(g=>{ir.handleExecutionResult(e.getConfig(),d,f),d.end(),g(f)})).catch(f=>new Promise((g,E)=>{d.setStatus({code:de.SpanStatusCode.ERROR,message:f.message}),d.end(),E(f)})):_})}_getPoolConnectPatch(){let e=this;return r=>function(o){if(ir.shouldSkipInstrumentation(e.getConfig()))return r.call(this,o);let i=e.tracer.startSpan(Fee.SpanNames.POOL_CONNECT,{kind:de.SpanKind.CLIENT,attributes:ir.getSemanticAttributesFromPool(this.options)});if(o){let a=de.trace.getSpan(de.context.active());o=ir.patchCallbackPGPool(i,o),a&&(o=de.context.bind(de.context.active(),o))}let s=de.context.with(de.trace.setSpan(de.context.active(),i),()=>r.call(this,o));return kee(i,s)}}};SA.PgInstrumentation=vD;function kee(t,e){if(!(e instanceof Promise))return e;let r=e;return de.context.bind(de.context.active(),r.then(n=>(t.end(),n)).catch(n=>(t.setStatus({code:de.SpanStatusCode.ERROR,message:ir.getErrorMessage(n)}),t.end(),Promise.reject(n))))}});var Kee=c(Yee=>{"use strict";Object.defineProperty(Yee,"__esModule",{value:!0})});var Xee=c(Ao=>{"use strict";var I2e=Ao&&Ao.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ND=Ao&&Ao.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&I2e(e,t,r)};Object.defineProperty(Ao,"__esModule",{value:!0});ND(Wee(),Ao);ND(Kee(),Ao);ND(bD(),Ao)});var CD=c(AA=>{Object.defineProperty(AA,"__esModule",{value:!0});var b2e=Xee(),P2e=W(),y2e=Pe(),v2e=Sn(),Zee="Postgres",zee=y2e.generateInstrumentOnce(Zee,()=>new b2e.PgInstrumentation({requireParentSpan:!0,requestHook(t){v2e.addOriginToSpan(t,"auto.db.otel.postgres")}})),N2e=()=>({name:Zee,setupOnce(){zee()}}),C2e=P2e.defineIntegration(N2e);AA.instrumentPostgres=zee;AA.postgresIntegration=C2e});var LD=c((pct,Qee)=>{"use strict";var MD=Object.defineProperty,M2e=Object.getOwnPropertyDescriptor,L2e=Object.getOwnPropertyNames,D2e=Object.prototype.hasOwnProperty,G2e=(t,e)=>{for(var r in e)MD(t,r,{get:e[r],enumerable:!0})},U2e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of L2e(e))!D2e.call(t,o)&&o!==r&&MD(t,o,{get:()=>e[o],enumerable:!(n=M2e(e,o))||n.enumerable});return t},x2e=t=>U2e(MD({},"__esModule",{value:!0}),t),$ee={};G2e($ee,{ActiveTracingHelper:()=>q2e});Qee.exports=x2e($ee);var Ro=(y(),T(P)),w2e=Vd(),V2e=process.env.PRISMA_SHOW_ALL_TRACES==="true",B2e="00-10-10-00",q2e=class{constructor({traceMiddleware:t}){this.traceMiddleware=t}isEnabled(){return!0}getTraceParent(t){let e=Ro.trace.getSpanContext(t??Ro.context.active());return e?`00-${e.traceId}-${e.spanId}-0${e.traceFlags}`:B2e}createEngineSpan(t){let e=Ro.trace.getTracer("prisma");t.spans.forEach(r=>{let n={traceId:r.trace_id,spanId:r.span_id,traceFlags:Ro.TraceFlags.SAMPLED},o=r.links?.map(s=>({context:{traceId:s.trace_id,spanId:s.span_id,traceFlags:Ro.TraceFlags.SAMPLED}})),i=new w2e.Span(e,Ro.ROOT_CONTEXT,r.name,n,Ro.SpanKind.INTERNAL,r.parent_span_id,o,r.start_time);r.attributes&&i.setAttributes(r.attributes),i.end(r.end_time)})}getActiveContext(){return Ro.context.active()}runInChildSpan(t,e){if(typeof t=="string"&&(t={name:t}),t.internal&&!V2e||t.middleware&&!this.traceMiddleware)return e();let r=Ro.trace.getTracer("prisma"),n=t.context??this.getActiveContext(),o=`prisma:client:${t.name}`;if(t.active===!1){let i=r.startSpan(o,t,n);return Jee(i,e(i,n))}return r.startActiveSpan(o,t,i=>Jee(i,e(i,n)))}};function Jee(t,e){return j2e(e)?e.then(r=>(t.end(),r),r=>{throw t.end(),r}):(t.end(),e)}function j2e(t){return t!=null&&typeof t.then=="function"}});var GD=c((fct,tte)=>{"use strict";var DD=Object.defineProperty,H2e=Object.getOwnPropertyDescriptor,F2e=Object.getOwnPropertyNames,k2e=Object.prototype.hasOwnProperty,W2e=(t,e)=>{for(var r in e)DD(t,r,{get:e[r],enumerable:!0})},Y2e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of F2e(e))!k2e.call(t,o)&&o!==r&&DD(t,o,{get:()=>e[o],enumerable:!(n=H2e(e,o))||n.enumerable});return t},K2e=t=>Y2e(DD({},"__esModule",{value:!0}),t),ete={};W2e(ete,{__commonJS:()=>Z2e});tte.exports=K2e(ete);var X2e=Object.getOwnPropertyNames,Z2e=(t,e)=>function(){return e||(0,t[X2e(t)[0]])((e={exports:{}}).exports,e),e.exports}});var xD=c((gct,nte)=>{"use strict";var UD=Object.defineProperty,z2e=Object.getOwnPropertyDescriptor,J2e=Object.getOwnPropertyNames,$2e=Object.prototype.hasOwnProperty,Q2e=(t,e)=>{for(var r in e)UD(t,r,{get:e[r],enumerable:!0})},eZe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of J2e(e))!$2e.call(t,o)&&o!==r&&UD(t,o,{get:()=>e[o],enumerable:!(n=z2e(e,o))||n.enumerable});return t},tZe=t=>eZe(UD({},"__esModule",{value:!0}),t),rte={};Q2e(rte,{GLOBAL_KEY:()=>sZe,MODULE_NAME:()=>cZe,NAME:()=>uZe,VERSION:()=>aZe});nte.exports=tZe(rte);var rZe=GD(),nZe=(0,rZe.__commonJS)({"package.json"(t,e){e.exports={name:"@prisma/instrumentation",version:"5.19.1",description:"OpenTelemetry compliant instrumentation for Prisma Client",main:"dist/index.js",types:"dist/index.d.ts",license:"Apache-2.0",homepage:"https://www.prisma.io",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/instrumentation"},bugs:"https://github.com/prisma/prisma/issues",devDependencies:{"@prisma/internals":"workspace:*","@swc/core":"1.6.13","@types/jest":"29.5.12","@types/node":"18.19.31",jest:"29.7.0","jest-junit":"16.0.0",typescript:"5.4.5"},dependencies:{"@opentelemetry/api":"^1.8","@opentelemetry/instrumentation":"^0.49 || ^0.50 || ^0.51 || ^0.52.0","@opentelemetry/sdk-trace-base":"^1.22"},files:["dist"],keywords:["prisma","instrumentation","opentelemetry","otel"],scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",prepublishOnly:"pnpm run build",test:"jest"},sideEffects:!1}}}),{version:oZe,name:iZe}=nZe(),sZe="PRISMA_INSTRUMENTATION",aZe=oZe,uZe=iZe,cZe="prisma"});var ite=c(ote=>{"use strict";Object.defineProperty(ote,"__esModule",{value:!0})});var ate=c(ste=>{"use strict";Object.defineProperty(ste,"__esModule",{value:!0})});var ute=c(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.SeverityNumber=void 0;var lZe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(lZe=Np.SeverityNumber||(Np.SeverityNumber={}))});var lte=c(cte=>{"use strict";Object.defineProperty(cte,"__esModule",{value:!0})});var pte=c(dte=>{"use strict";Object.defineProperty(dte,"__esModule",{value:!0})});var wD=c(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.NOOP_LOGGER=Vc.NoopLogger=void 0;var RA=class{emit(e){}};Vc.NoopLogger=RA;Vc.NOOP_LOGGER=new RA});var VD=c(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.NOOP_LOGGER_PROVIDER=Bc.NoopLoggerProvider=void 0;var dZe=wD(),OA=class{getLogger(e,r,n){return new dZe.NoopLogger}};Bc.NoopLoggerProvider=OA;Bc.NOOP_LOGGER_PROVIDER=new OA});var _te=c(IA=>{"use strict";Object.defineProperty(IA,"__esModule",{value:!0});IA._globalThis=void 0;IA._globalThis=typeof globalThis=="object"?globalThis:global});var fte=c(Ys=>{"use strict";var pZe=Ys&&Ys.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),_Ze=Ys&&Ys.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&pZe(e,t,r)};Object.defineProperty(Ys,"__esModule",{value:!0});_Ze(_te(),Ys)});var gte=c(Ks=>{"use strict";var fZe=Ks&&Ks.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),gZe=Ks&&Ks.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&fZe(e,t,r)};Object.defineProperty(Ks,"__esModule",{value:!0});gZe(fte(),Ks)});var Ete=c(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.API_BACKWARDS_COMPATIBILITY_VERSION=xn.makeGetter=xn._global=xn.GLOBAL_LOGS_API_KEY=void 0;var EZe=gte();xn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");xn._global=EZe._globalThis;function hZe(t,e,r){return n=>n===t?e:r}xn.makeGetter=hZe;xn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var mte=c(bA=>{"use strict";Object.defineProperty(bA,"__esModule",{value:!0});bA.LogsAPI=void 0;var Br=Ete(),hte=VD(),BD=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Br._global[Br.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Br._global[Br.GLOBAL_LOGS_API_KEY]=(0,Br.makeGetter)(Br.API_BACKWARDS_COMPATIBILITY_VERSION,e,hte.NOOP_LOGGER_PROVIDER),e)}getLoggerProvider(){var e,r;return(r=(e=Br._global[Br.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Br._global,Br.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:hte.NOOP_LOGGER_PROVIDER}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Br._global[Br.GLOBAL_LOGS_API_KEY]}};bA.LogsAPI=BD});var qD=c(Xt=>{"use strict";var mZe=Xt&&Xt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Xs=Xt&&Xt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&mZe(e,t,r)};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.logs=void 0;Xs(ite(),Xt);Xs(ate(),Xt);Xs(ute(),Xt);Xs(lte(),Xt);Xs(pte(),Xt);Xs(wD(),Xt);Xs(VD(),Xt);var TZe=mte();Xt.logs=TZe.LogsAPI.getInstance()});var Tte=c(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.disableInstrumentations=qc.enableInstrumentations=void 0;function SZe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}qc.enableInstrumentations=SZe;function AZe(t){t.forEach(e=>e.disable())}qc.disableInstrumentations=AZe});var Rte=c(PA=>{"use strict";Object.defineProperty(PA,"__esModule",{value:!0});PA.registerInstrumentations=void 0;var Ste=(y(),T(P)),RZe=qD(),Ate=Tte();function OZe(t){var e,r;let n=t.tracerProvider||Ste.trace.getTracerProvider(),o=t.meterProvider||Ste.metrics.getMeterProvider(),i=t.loggerProvider||RZe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,Ate.enableInstrumentations)(s,n,o,i),()=>{(0,Ate.disableInstrumentations)(s)}}PA.registerInstrumentations=OZe});var Ote=c(vA=>{"use strict";Object.defineProperty(vA,"__esModule",{value:!0});vA.InstrumentationAbstract=void 0;var jD=(y(),T(P)),IZe=qD(),yA=De(),HD=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._wrap=yA.wrap,this._unwrap=yA.unwrap,this._massWrap=yA.massWrap,this._massUnwrap=yA.massUnwrap,this._config=Object.assign({enabled:!0},n),this._diag=jD.diag.createComponentLogger({namespace:e}),this._tracer=jD.trace.getTracer(e,r),this._meter=jD.metrics.getMeter(e,r),this._logger=IZe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};vA.InstrumentationAbstract=HD});var Ite=c(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.ModuleNameTrie=Wi.ModuleNameSeparator=void 0;Wi.ModuleNameSeparator="/";var NA=class{constructor(){this.hooks=[],this.children=new Map}},FD=class{constructor(){this._trie=new NA,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Wi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new NA,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Wi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Wi.ModuleNameTrie=FD});var Pte=c(CA=>{"use strict";Object.defineProperty(CA,"__esModule",{value:!0});CA.RequireInTheMiddleSingleton=void 0;var bZe=Ue(),bte=m("path"),kD=Ite(),PZe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),WD=class t{constructor(){this._moduleNameTrie=new kD.ModuleNameTrie,this._initialize()}_initialize(){new bZe.Hook(null,{internals:!0},(e,r,n)=>{let o=yZe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return PZe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};CA.RequireInTheMiddleSingleton=WD;function yZe(t){return bte.sep!==kD.ModuleNameSeparator?t.split(bte.sep).join(kD.ModuleNameSeparator):t}});var YD=c(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.isWrapped=Yi.safeExecuteInTheMiddleAsync=Yi.safeExecuteInTheMiddle=void 0;function vZe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Yi.safeExecuteInTheMiddle=vZe;async function NZe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Yi.safeExecuteInTheMiddleAsync=NZe;function CZe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Yi.isWrapped=CZe});var Nte=c(MA=>{"use strict";Object.defineProperty(MA,"__esModule",{value:!0});MA.InstrumentationBase=void 0;var KD=m("path"),yte=m("util"),MZe=Sr(),XD=De(),LZe=Ote(),DZe=Pte(),GZe=Or(),jc=(y(),T(P)),UZe=Ue(),xZe=m("fs"),wZe=YD(),ZD=class extends LZe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=DZe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,wZe.isWrapped)(i[s])&&this._unwrap(i,s),yte.types.isProxy(i)){let u=(0,XD.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u})}else return(0,XD.wrap)(i,s,a)},this._unwrap=(i,s)=>yte.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,XD.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{jc.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){jc.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{jc.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){jc.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._modules.length===0&&jc.diag.debug(`No modules instrumentation has been defined for '${this.instrumentationName}@${this.instrumentationVersion}', nothing will be patched`),this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=m.resolve(r);m.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,xZe.readFileSync)(KD.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{jc.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return vte(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=KD.normalize(n);return a.filter(d=>d.name===u).filter(d=>vte(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=KD.isAbsolute(e.name)?new UZe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new GZe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};MA.InstrumentationBase=ZD;function vte(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,MZe.satisfies)(e,n,{includePrerelease:r}))}});var Cte=c(LA=>{"use strict";Object.defineProperty(LA,"__esModule",{value:!0});LA.normalize=void 0;var VZe=m("path");Object.defineProperty(LA,"normalize",{enumerable:!0,get:function(){return VZe.normalize}})});var Mte=c(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.normalize=Hc.InstrumentationBase=void 0;var BZe=Nte();Object.defineProperty(Hc,"InstrumentationBase",{enumerable:!0,get:function(){return BZe.InstrumentationBase}});var qZe=Cte();Object.defineProperty(Hc,"normalize",{enumerable:!0,get:function(){return qZe.normalize}})});var zD=c(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.normalize=Fc.InstrumentationBase=void 0;var Lte=Mte();Object.defineProperty(Fc,"InstrumentationBase",{enumerable:!0,get:function(){return Lte.InstrumentationBase}});Object.defineProperty(Fc,"normalize",{enumerable:!0,get:function(){return Lte.normalize}})});var Dte=c(DA=>{"use strict";Object.defineProperty(DA,"__esModule",{value:!0});DA.InstrumentationNodeModuleDefinition=void 0;var JD=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};DA.InstrumentationNodeModuleDefinition=JD});var Gte=c(GA=>{"use strict";Object.defineProperty(GA,"__esModule",{value:!0});GA.InstrumentationNodeModuleFile=void 0;var jZe=zD(),$D=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,jZe.normalize)(e)}};GA.InstrumentationNodeModuleFile=$D});var xte=c(Ute=>{"use strict";Object.defineProperty(Ute,"__esModule",{value:!0})});var Vte=c(wte=>{"use strict";Object.defineProperty(wte,"__esModule",{value:!0})});var Bte=c(gt=>{"use strict";var HZe=gt&&gt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),QD=gt&&gt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&HZe(e,t,r)};Object.defineProperty(gt,"__esModule",{value:!0});gt.InstrumentationNodeModuleFile=gt.InstrumentationNodeModuleDefinition=gt.InstrumentationBase=gt.registerInstrumentations=void 0;var FZe=Rte();Object.defineProperty(gt,"registerInstrumentations",{enumerable:!0,get:function(){return FZe.registerInstrumentations}});var kZe=zD();Object.defineProperty(gt,"InstrumentationBase",{enumerable:!0,get:function(){return kZe.InstrumentationBase}});var WZe=Dte();Object.defineProperty(gt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return WZe.InstrumentationNodeModuleDefinition}});var YZe=Gte();Object.defineProperty(gt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return YZe.InstrumentationNodeModuleFile}});QD(xte(),gt);QD(Vte(),gt);QD(YD(),gt)});var Fte=c((Wct,Hte)=>{"use strict";var eG=Object.defineProperty,KZe=Object.getOwnPropertyDescriptor,XZe=Object.getOwnPropertyNames,ZZe=Object.prototype.hasOwnProperty,zZe=(t,e)=>{for(var r in e)eG(t,r,{get:e[r],enumerable:!0})},JZe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of XZe(e))!ZZe.call(t,o)&&o!==r&&eG(t,o,{get:()=>e[o],enumerable:!(n=KZe(e,o))||n.enumerable});return t},$Ze=t=>JZe(eG({},"__esModule",{value:!0}),t),jte={};zZe(jte,{PrismaInstrumentation:()=>e5e});Hte.exports=$Ze(jte);var QZe=LD(),Zs=xD(),qte=Bte(),e5e=class extends qte.InstrumentationBase{constructor(t={}){super(Zs.NAME,Zs.VERSION,t)}init(){return[new qte.InstrumentationNodeModuleDefinition(Zs.MODULE_NAME,[Zs.VERSION])]}enable(){let t=this._config,e={helper:new QZe.ActiveTracingHelper({traceMiddleware:t.middleware??!1})};global[Zs.GLOBAL_KEY]=e}disable(){delete global[Zs.GLOBAL_KEY]}isEnabled(){return!!global[Zs.GLOBAL_KEY]}}});var Yte=c((zct,Wte)=>{"use strict";var tG=Object.defineProperty,t5e=Object.getOwnPropertyDescriptor,r5e=Object.getOwnPropertyNames,n5e=Object.prototype.hasOwnProperty,o5e=(t,e)=>{for(var r in e)tG(t,r,{get:e[r],enumerable:!0})},i5e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of r5e(e))!n5e.call(t,o)&&o!==r&&tG(t,o,{get:()=>e[o],enumerable:!(n=t5e(e,o))||n.enumerable});return t},s5e=t=>i5e(tG({},"__esModule",{value:!0}),t),kte={};o5e(kte,{PrismaInstrumentation:()=>a5e.PrismaInstrumentation});Wte.exports=s5e(kte);var a5e=Fte(),Kct=LD(),Xct=xD(),Zct=GD()});var Jte=c(UA=>{var{_optionalChain:Xte}=b();Object.defineProperty(UA,"__esModule",{value:!0});var Kte=Yte(),rG=W(),u5e=Pe(),Zte="Prisma",zte=u5e.generateInstrumentOnce(Zte,()=>{let t=Xte([Kte,"access",e=>e.default,"optionalAccess",e=>e.PrismaInstrumentation])||Kte.PrismaInstrumentation;return new t({})}),c5e=()=>({name:Zte,setupOnce(){zte()},setup(t){t.on("spanStart",e=>{let r=rG.spanToJSON(e);Xte([r,"access",n=>n.description,"optionalAccess",n=>n.startsWith,"call",n=>n("prisma:")])&&e.setAttribute(rG.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.prisma"),r.description==="prisma:engine:db_query"&&e.setAttribute("db.system","prisma")})}}),l5e=rG.defineIntegration(c5e);UA.instrumentPrisma=zte;UA.prismaIntegration=l5e});var $te=c(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.PACKAGE_NAME=kc.PACKAGE_VERSION=void 0;kc.PACKAGE_VERSION="0.41.0";kc.PACKAGE_NAME="@opentelemetry/instrumentation-hapi"});var nG=c(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.HapiLifecycleMethodNames=wn.HapiLayerType=wn.handlerPatched=wn.HapiComponentName=void 0;wn.HapiComponentName="@hapi/hapi";wn.handlerPatched=Symbol("hapi-handler-patched");wn.HapiLayerType={ROUTER:"router",PLUGIN:"plugin",EXT:"server.ext"};wn.HapiLifecycleMethodNames=new Set(["onPreAuth","onCredentials","onPostAuth","onPreHandler","onPostHandler","onPreResponse","onRequest"])});var oG=c(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.AttributeNames=void 0;var d5e;(function(t){t.HAPI_TYPE="hapi.type",t.PLUGIN_NAME="hapi.plugin.name",t.EXT_TYPE="server.ext.type"})(d5e=Cp.AttributeNames||(Cp.AttributeNames={}))});var Qte=c(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.getPluginFromInput=Be.getExtMetadata=Be.getRouteMetadata=Be.isPatchableExtMethod=Be.isDirectExtInput=Be.isLifecycleExtEventObj=Be.isLifecycleExtType=Be.getPluginName=void 0;var xA=(Q(),T($)),Mp=nG(),Ki=oG();function p5e(t){return t.name?t.name:t.pkg.name}Be.getPluginName=p5e;var _5e=t=>typeof t=="string"&&Mp.HapiLifecycleMethodNames.has(t);Be.isLifecycleExtType=_5e;var f5e=t=>{var e;let r=(e=t)===null||e===void 0?void 0:e.type;return r!==void 0&&(0,Be.isLifecycleExtType)(r)};Be.isLifecycleExtEventObj=f5e;var g5e=t=>Array.isArray(t)&&t.length<=3&&(0,Be.isLifecycleExtType)(t[0])&&typeof t[1]=="function";Be.isDirectExtInput=g5e;var E5e=t=>!Array.isArray(t);Be.isPatchableExtMethod=E5e;var h5e=(t,e)=>e?{attributes:{[xA.SEMATTRS_HTTP_ROUTE]:t.path,[xA.SEMATTRS_HTTP_METHOD]:t.method,[Ki.AttributeNames.HAPI_TYPE]:Mp.HapiLayerType.PLUGIN,[Ki.AttributeNames.PLUGIN_NAME]:e},name:`${e}: route - ${t.path}`}:{attributes:{[xA.SEMATTRS_HTTP_ROUTE]:t.path,[xA.SEMATTRS_HTTP_METHOD]:t.method,[Ki.AttributeNames.HAPI_TYPE]:Mp.HapiLayerType.ROUTER},name:`route - ${t.path}`};Be.getRouteMetadata=h5e;var m5e=(t,e)=>e?{attributes:{[Ki.AttributeNames.EXT_TYPE]:t,[Ki.AttributeNames.HAPI_TYPE]:Mp.HapiLayerType.EXT,[Ki.AttributeNames.PLUGIN_NAME]:e},name:`${e}: ext - ${t}`}:{attributes:{[Ki.AttributeNames.EXT_TYPE]:t,[Ki.AttributeNames.HAPI_TYPE]:Mp.HapiLayerType.EXT},name:`ext - ${t}`};Be.getExtMetadata=m5e;var T5e=t=>"plugin"in t?"plugin"in t.plugin?t.plugin.plugin:t.plugin:t;Be.getPluginFromInput=T5e});var rre=c(VA=>{"use strict";Object.defineProperty(VA,"__esModule",{value:!0});VA.HapiInstrumentation=void 0;var gr=(y(),T(P)),ere=ue(),wA=je(),tre=$te(),Lp=nG(),Oo=Qte(),iG=class extends wA.InstrumentationBase{constructor(e={}){super(tre.PACKAGE_NAME,tre.PACKAGE_VERSION,e)}init(){return new wA.InstrumentationNodeModuleDefinition(Lp.HapiComponentName,[">=17.0.0 <22"],e=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;return(0,wA.isWrapped)(r.server)||this._wrap(r,"server",this._getServerPatch.bind(this)),(0,wA.isWrapped)(r.Server)||this._wrap(r,"Server",this._getServerPatch.bind(this)),r},e=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;this._massUnwrap([r],["server","Server"])})}_getServerPatch(e){let r=this,n=this;return function(i){let s=e.apply(this,[i]);return n._wrap(s,"route",a=>r._getServerRoutePatch.bind(r)(a)),n._wrap(s,"ext",a=>r._getServerExtPatch.bind(r)(a)),n._wrap(s,"register",r._getServerRegisterPatch.bind(r)),s}}_getServerRegisterPatch(e){let r=this;return function(o,i){if(Array.isArray(o))for(let s of o){let a=(0,Oo.getPluginFromInput)(s);r._wrapRegisterHandler(a)}else{let s=(0,Oo.getPluginFromInput)(o);r._wrapRegisterHandler(s)}return e.apply(this,[o,i])}}_getServerExtPatch(e,r){let n=this;return function(...i){if(Array.isArray(i[0])){let s=i[0];for(let a=0;a<s.length;a++){let u=s[a];if((0,Oo.isLifecycleExtType)(u.type)){let l=u,d=n._wrapExtMethods(l.method,u.type,r);l.method=d,s[a]=l}}return e.apply(this,i)}else if((0,Oo.isDirectExtInput)(i)){let s=i,a=s[1],u=n._wrapExtMethods(a,s[0],r);return e.apply(this,[s[0],u,s[2]])}else if((0,Oo.isLifecycleExtEventObj)(i[0])){let s=i[0],a=n._wrapExtMethods(s.method,s.type,r);return s.method=a,e.call(this,s)}return e.apply(this,i)}}_getServerRoutePatch(e,r){let n=this;return function(o){if(Array.isArray(o))for(let i=0;i<o.length;i++){let s=n._wrapRouteHandler.call(n,o[i],r);o[i]=s}else o=n._wrapRouteHandler.call(n,o,r);return e.apply(this,[o])}}_wrapRegisterHandler(e){let r=this,n=(0,Oo.getPluginName)(e),o=e.register,i=this,s=function(a,u){return i._wrap(a,"route",l=>r._getServerRoutePatch.bind(r)(l,n)),i._wrap(a,"ext",l=>r._getServerExtPatch.bind(r)(l,n)),o(a,u)};e.register=s}_wrapExtMethods(e,r,n){let o=this;if(e instanceof Array){for(let i=0;i<e.length;i++)e[i]=o._wrapExtMethods(e[i],r);return e}else if((0,Oo.isPatchableExtMethod)(e))return e[Lp.handlerPatched]===!0?e:(e[Lp.handlerPatched]=!0,async function(...s){if(gr.trace.getSpan(gr.context.active())===void 0)return await e.apply(this,s);let a=(0,Oo.getExtMetadata)(r,n),u=o.tracer.startSpan(a.name,{attributes:a.attributes});try{return await gr.context.with(gr.trace.setSpan(gr.context.active(),u),e,void 0,...s)}catch(l){throw u.recordException(l),u.setStatus({code:gr.SpanStatusCode.ERROR,message:l.message}),l}finally{u.end()}});return e}_wrapRouteHandler(e,r){var n;let o=this;if(e[Lp.handlerPatched]===!0)return e;e[Lp.handlerPatched]=!0;let i=s=>async function(...a){if(gr.trace.getSpan(gr.context.active())===void 0)return await s.call(this,...a);let u=(0,ere.getRPCMetadata)(gr.context.active());u?.type===ere.RPCType.HTTP&&(u.route=e.path);let l=(0,Oo.getRouteMetadata)(e,r),d=o.tracer.startSpan(l.name,{attributes:l.attributes});try{return await gr.context.with(gr.trace.setSpan(gr.context.active(),d),()=>s.call(this,...a))}catch(p){throw d.recordException(p),d.setStatus({code:gr.SpanStatusCode.ERROR,message:p.message}),p}finally{d.end()}};if(typeof e.handler=="function")e.handler=i(e.handler);else if(typeof e.options=="function"){let s=e.options;e.options=function(a){let u=s(a);return typeof u.handler=="function"&&(u.handler=i(u.handler)),u}}else typeof((n=e.options)===null||n===void 0?void 0:n.handler)=="function"&&(e.options.handler=i(e.options.handler));return e}};VA.HapiInstrumentation=iG});var ore=c(Xi=>{"use strict";var S5e=Xi&&Xi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),nre=Xi&&Xi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&S5e(e,t,r)};Object.defineProperty(Xi,"__esModule",{value:!0});nre(rre(),Xi);nre(oG(),Xi)});var sG=c(Wc=>{var{_optionalChain:A5e}=b();Object.defineProperty(Wc,"__esModule",{value:!0});var R5e=ore(),en=W(),O5e=b(),I5e=On(),b5e=Pe(),P5e=Xu(),ire="Hapi",sre=b5e.generateInstrumentOnce(ire,()=>new R5e.HapiInstrumentation),y5e=()=>({name:ire,setupOnce(){sre()}}),v5e=en.defineIntegration(y5e);function N5e(t){return t&&t.error!==void 0}function C5e(t){en.captureException(t,{mechanism:{type:"hapi",handled:!1,data:{function:"hapiErrorPlugin"}}})}var are={name:"SentryHapiErrorPlugin",version:en.SDK_VERSION,register:async function(t){t.events.on({name:"request",channels:["error"]},(r,n)=>{if(en.getIsolationScope()!==en.getDefaultIsolationScope()){let o=r.route;o&&o.path&&en.getIsolationScope().setTransactionName(`${A5e([o,"access",i=>i.method,"optionalAccess",i=>i.toUpperCase,"call",i=>i()])||"GET"} ${o.path}`)}else I5e.DEBUG_BUILD&&O5e.logger.warn("Isolation scope is still the default isolation scope - skipping setting transactionName");N5e(n)&&C5e(n.error)})}};async function M5e(t){await t.register(are);let e=en.getClient();e&&e.on("spanStart",r=>{L5e(r)}),P5e.ensureIsWrapped(t.register,"hapi")}function L5e(t){let e=en.spanToJSON(t).data||{},r=e["hapi.type"];e[en.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!r||t.setAttributes({[en.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.hapi",[en.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.hapi`})}Wc.hapiErrorPlugin=are;Wc.hapiIntegration=v5e;Wc.instrumentHapi=sre;Wc.setupHapiErrorHandler=M5e});var BA=c(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.KoaLayerType=void 0;var D5e;(function(t){t.ROUTER="router",t.MIDDLEWARE="middleware"})(D5e=Dp.KoaLayerType||(Dp.KoaLayerType={}))});var ure=c(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.PACKAGE_NAME=Yc.PACKAGE_VERSION=void 0;Yc.PACKAGE_VERSION="0.43.0";Yc.PACKAGE_NAME="@opentelemetry/instrumentation-koa"});var aG=c(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.AttributeNames=void 0;var G5e;(function(t){t.KOA_TYPE="koa.type",t.KOA_NAME="koa.name"})(G5e=Gp.AttributeNames||(Gp.AttributeNames={}))});var lre=c(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.isLayerIgnored=Kc.getMiddlewareMetadata=void 0;var cre=BA(),qA=aG(),U5e=(Q(),T($)),x5e=(t,e,r,n)=>{var o;return r?{attributes:{[qA.AttributeNames.KOA_NAME]:n?.toString(),[qA.AttributeNames.KOA_TYPE]:cre.KoaLayerType.ROUTER,[U5e.SEMATTRS_HTTP_ROUTE]:n?.toString()},name:t._matchedRouteName||`router - ${n}`}:{attributes:{[qA.AttributeNames.KOA_NAME]:(o=e.name)!==null&&o!==void 0?o:"middleware",[qA.AttributeNames.KOA_TYPE]:cre.KoaLayerType.MIDDLEWARE},name:`middleware - ${e.name}`}};Kc.getMiddlewareMetadata=x5e;var w5e=(t,e)=>{var r;return!!(Array.isArray(e?.ignoreLayersType)&&(!((r=e?.ignoreLayersType)===null||r===void 0)&&r.includes(t)))};Kc.isLayerIgnored=w5e});var dre=c(jA=>{"use strict";Object.defineProperty(jA,"__esModule",{value:!0});jA.kLayerPatched=void 0;jA.kLayerPatched=Symbol("koa-layer-patched")});var hre=c(HA=>{"use strict";Object.defineProperty(HA,"__esModule",{value:!0});HA.KoaInstrumentation=void 0;var Vn=(y(),T(P)),Up=je(),pre=BA(),_re=ure(),fre=lre(),gre=ue(),Ere=dre(),uG=class extends Up.InstrumentationBase{constructor(e={}){super(_re.PACKAGE_NAME,_re.PACKAGE_VERSION,e)}init(){return new Up.InstrumentationNodeModuleDefinition("koa",[">=2.0.0 <3"],e=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;return r==null?r:((0,Up.isWrapped)(r.prototype.use)&&this._unwrap(r.prototype,"use"),this._wrap(r.prototype,"use",this._getKoaUsePatch.bind(this)),e)},e=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;(0,Up.isWrapped)(r.prototype.use)&&this._unwrap(r.prototype,"use")})}_getKoaUsePatch(e){let r=this;return function(o){let i;return o.router?i=r._patchRouterDispatch(o):i=r._patchLayer(o,!1),e.apply(this,[i])}}_patchRouterDispatch(e){var r;Vn.diag.debug("Patching @koa/router dispatch");let n=e.router,o=(r=n?.stack)!==null&&r!==void 0?r:[];for(let i of o){let s=i.path,a=i.stack;for(let u=0;u<a.length;u++){let l=a[u];a[u]=this._patchLayer(l,!0,s)}}return e}_patchLayer(e,r,n){let o=r?pre.KoaLayerType.ROUTER:pre.KoaLayerType.MIDDLEWARE;return e[Ere.kLayerPatched]===!0||(0,fre.isLayerIgnored)(o,this.getConfig())?e:e.constructor.name==="GeneratorFunction"||e.constructor.name==="AsyncGeneratorFunction"?(Vn.diag.debug("ignoring generator-based Koa middleware layer"),e):(e[Ere.kLayerPatched]=!0,Vn.diag.debug("patching Koa middleware layer"),async(i,s)=>{if(Vn.trace.getSpan(Vn.context.active())===void 0)return e(i,s);let u=(0,fre.getMiddlewareMetadata)(i,e,r,n),l=this.tracer.startSpan(u.name,{attributes:u.attributes}),d=(0,gre.getRPCMetadata)(Vn.context.active());d?.type===gre.RPCType.HTTP&&i._matchedRoute&&(d.route=i._matchedRoute.toString());let{requestHook:p}=this.getConfig();p&&(0,Up.safeExecuteInTheMiddle)(()=>p(l,{context:i,middlewareLayer:e,layerType:o}),f=>{f&&Vn.diag.error("koa instrumentation: request hook failed",f)},!0);let _=Vn.trace.setSpan(Vn.context.active(),l);return Vn.context.with(_,async()=>{try{return await e(i,s)}catch(f){throw l.recordException(f),f}finally{l.end()}})})}};HA.KoaInstrumentation=uG});var mre=c(Io=>{"use strict";var V5e=Io&&Io.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),cG=Io&&Io.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&V5e(e,t,r)};Object.defineProperty(Io,"__esModule",{value:!0});cG(hre(),Io);cG(BA(),Io);cG(aG(),Io)});var lG=c(xp=>{var{_optionalChain:B5e}=b();Object.defineProperty(xp,"__esModule",{value:!0});var q5e=mre(),j5e=(Q(),T($)),bo=W(),H5e=b(),F5e=On(),k5e=Pe(),W5e=Xu(),Tre="Koa",Sre=k5e.generateInstrumentOnce(Tre,()=>new q5e.KoaInstrumentation({requestHook(t,e){if(Z5e(t),bo.getIsolationScope()===bo.getDefaultIsolationScope()){F5e.DEBUG_BUILD&&H5e.logger.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let r=bo.spanToJSON(t).data,n=r&&r[j5e.ATTR_HTTP_ROUTE],o=B5e([e,"optionalAccess",i=>i.context,"optionalAccess",i=>i.request,"optionalAccess",i=>i.method,"optionalAccess",i=>i.toUpperCase,"call",i=>i()])||"GET";n&&bo.getIsolationScope().setTransactionName(`${o} ${n}`)}})),Y5e=()=>({name:Tre,setupOnce(){Sre()}}),K5e=bo.defineIntegration(Y5e),X5e=t=>{t.use(async(e,r)=>{try{await r()}catch(n){throw bo.captureException(n),n}}),W5e.ensureIsWrapped(t.use,"koa")};function Z5e(t){t.setAttribute(bo.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.http.otel.koa");let e=bo.spanToJSON(t).data||{},r=e["koa.type"];r&&t.setAttribute(bo.SEMANTIC_ATTRIBUTE_SENTRY_OP,`${r}.koa`);let n=e["koa.name"];typeof n=="string"&&t.updateName(n||"< unknown >")}xp.instrumentKoa=Sre;xp.koaIntegration=K5e;xp.setupKoaErrorHandler=X5e});var dG=c(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.ConnectNames=tn.ConnectTypes=tn.AttributeNames=void 0;var z5e;(function(t){t.CONNECT_TYPE="connect.type",t.CONNECT_NAME="connect.name"})(z5e=tn.AttributeNames||(tn.AttributeNames={}));var J5e;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})(J5e=tn.ConnectTypes||(tn.ConnectTypes={}));var $5e;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request handler"})($5e=tn.ConnectNames||(tn.ConnectNames={}))});var Are=c(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.PACKAGE_NAME=Xc.PACKAGE_VERSION=void 0;Xc.PACKAGE_VERSION="0.40.0";Xc.PACKAGE_NAME="@opentelemetry/instrumentation-connect"});var Rre=c(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.SeverityNumber=void 0;var Q5e;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(Q5e=wp.SeverityNumber||(wp.SeverityNumber={}))});var kA=c(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.NOOP_LOGGER=Zc.NoopLogger=void 0;var FA=class{emit(e){}};Zc.NoopLogger=FA;Zc.NOOP_LOGGER=new FA});var YA=c(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.NOOP_LOGGER_PROVIDER=zc.NoopLoggerProvider=void 0;var e9e=kA(),WA=class{getLogger(e,r,n){return new e9e.NoopLogger}};zc.NoopLoggerProvider=WA;zc.NOOP_LOGGER_PROVIDER=new WA});var _G=c(KA=>{"use strict";Object.defineProperty(KA,"__esModule",{value:!0});KA.ProxyLogger=void 0;var t9e=kA(),pG=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):t9e.NOOP_LOGGER}};KA.ProxyLogger=pG});var gG=c(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.ProxyLoggerProvider=void 0;var r9e=YA(),n9e=_G(),fG=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new n9e.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:r9e.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};XA.ProxyLoggerProvider=fG});var Ore=c(ZA=>{"use strict";Object.defineProperty(ZA,"__esModule",{value:!0});ZA._globalThis=void 0;ZA._globalThis=typeof globalThis=="object"?globalThis:global});var Ire=c(zA=>{"use strict";Object.defineProperty(zA,"__esModule",{value:!0});zA._globalThis=void 0;var o9e=Ore();Object.defineProperty(zA,"_globalThis",{enumerable:!0,get:function(){return o9e._globalThis}})});var bre=c(JA=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0});JA._globalThis=void 0;var i9e=Ire();Object.defineProperty(JA,"_globalThis",{enumerable:!0,get:function(){return i9e._globalThis}})});var Pre=c(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.API_BACKWARDS_COMPATIBILITY_VERSION=Bn.makeGetter=Bn._global=Bn.GLOBAL_LOGS_API_KEY=void 0;var s9e=bre();Bn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Bn._global=s9e._globalThis;function a9e(t,e,r){return n=>n===t?e:r}Bn.makeGetter=a9e;Bn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var vre=c($A=>{"use strict";Object.defineProperty($A,"__esModule",{value:!0});$A.LogsAPI=void 0;var qr=Pre(),u9e=YA(),yre=gG(),EG=class t{constructor(){this._proxyLoggerProvider=new yre.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return qr._global[qr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(qr._global[qr.GLOBAL_LOGS_API_KEY]=(0,qr.makeGetter)(qr.API_BACKWARDS_COMPATIBILITY_VERSION,e,u9e.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=qr._global[qr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(qr._global,qr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete qr._global[qr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new yre.ProxyLoggerProvider}};$A.LogsAPI=EG});var hG=c(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.logs=ut.ProxyLoggerProvider=ut.ProxyLogger=ut.NoopLoggerProvider=ut.NOOP_LOGGER_PROVIDER=ut.NoopLogger=ut.NOOP_LOGGER=ut.SeverityNumber=void 0;var c9e=Rre();Object.defineProperty(ut,"SeverityNumber",{enumerable:!0,get:function(){return c9e.SeverityNumber}});var Nre=kA();Object.defineProperty(ut,"NOOP_LOGGER",{enumerable:!0,get:function(){return Nre.NOOP_LOGGER}});Object.defineProperty(ut,"NoopLogger",{enumerable:!0,get:function(){return Nre.NoopLogger}});var Cre=YA();Object.defineProperty(ut,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return Cre.NOOP_LOGGER_PROVIDER}});Object.defineProperty(ut,"NoopLoggerProvider",{enumerable:!0,get:function(){return Cre.NoopLoggerProvider}});var l9e=_G();Object.defineProperty(ut,"ProxyLogger",{enumerable:!0,get:function(){return l9e.ProxyLogger}});var d9e=gG();Object.defineProperty(ut,"ProxyLoggerProvider",{enumerable:!0,get:function(){return d9e.ProxyLoggerProvider}});var p9e=vre();ut.logs=p9e.LogsAPI.getInstance()});var Mre=c(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.disableInstrumentations=Jc.enableInstrumentations=void 0;function _9e(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Jc.enableInstrumentations=_9e;function f9e(t){t.forEach(e=>e.disable())}Jc.disableInstrumentations=f9e});var Gre=c(QA=>{"use strict";Object.defineProperty(QA,"__esModule",{value:!0});QA.registerInstrumentations=void 0;var Lre=(y(),T(P)),g9e=hG(),Dre=Mre();function E9e(t){var e,r;let n=t.tracerProvider||Lre.trace.getTracerProvider(),o=t.meterProvider||Lre.metrics.getMeterProvider(),i=t.loggerProvider||g9e.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,Dre.enableInstrumentations)(s,n,o,i),()=>{(0,Dre.disableInstrumentations)(s)}}QA.registerInstrumentations=E9e});var Ure=c(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0});tR.InstrumentationAbstract=void 0;var mG=(y(),T(P)),h9e=hG(),eR=De(),TG=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=eR.wrap,this._unwrap=eR.unwrap,this._massWrap=eR.massWrap,this._massUnwrap=eR.massUnwrap,this.setConfig(n),this._diag=mG.diag.createComponentLogger({namespace:e}),this._tracer=mG.trace.getTracer(e,r),this._meter=mG.metrics.getMeter(e,r),this._logger=h9e.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};tR.InstrumentationAbstract=TG});var xre=c(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.ModuleNameTrie=Zi.ModuleNameSeparator=void 0;Zi.ModuleNameSeparator="/";var rR=class{constructor(){this.hooks=[],this.children=new Map}},SG=class{constructor(){this._trie=new rR,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Zi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new rR,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Zi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Zi.ModuleNameTrie=SG});var Vre=c(nR=>{"use strict";Object.defineProperty(nR,"__esModule",{value:!0});nR.RequireInTheMiddleSingleton=void 0;var m9e=Ue(),wre=m("path"),AG=xre(),T9e=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),RG=class t{constructor(){this._moduleNameTrie=new AG.ModuleNameTrie,this._initialize()}_initialize(){new m9e.Hook(null,{internals:!0},(e,r,n)=>{let o=S9e(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return T9e?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};nR.RequireInTheMiddleSingleton=RG;function S9e(t){return wre.sep!==AG.ModuleNameSeparator?t.split(wre.sep).join(AG.ModuleNameSeparator):t}});var OG=c(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.isWrapped=zi.safeExecuteInTheMiddleAsync=zi.safeExecuteInTheMiddle=void 0;function A9e(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}zi.safeExecuteInTheMiddle=A9e;async function R9e(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}zi.safeExecuteInTheMiddleAsync=R9e;function O9e(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}zi.isWrapped=O9e});var jre=c(oR=>{"use strict";Object.defineProperty(oR,"__esModule",{value:!0});oR.InstrumentationBase=void 0;var IG=m("path"),Bre=m("util"),I9e=Sr(),bG=De(),b9e=Ure(),P9e=Vre(),y9e=Or(),Vp=(y(),T(P)),v9e=Ue(),N9e=m("fs"),C9e=OG(),PG=class extends b9e.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=P9e.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,C9e.isWrapped)(i[s])&&this._unwrap(i,s),Bre.types.isProxy(i)){let u=(0,bG.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,bG.wrap)(i,s,a)},this._unwrap=(i,s)=>Bre.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,bG.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{Vp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Vp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{Vp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Vp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=m.resolve(r);m.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,N9e.readFileSync)(IG.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{Vp.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return qre(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=IG.normalize(n);return a.filter(d=>d.name===u).filter(d=>qre(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=IG.isAbsolute(e.name)?new v9e.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new y9e.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};oR.InstrumentationBase=PG;function qre(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,I9e.satisfies)(e,n,{includePrerelease:r}))}});var Hre=c(iR=>{"use strict";Object.defineProperty(iR,"__esModule",{value:!0});iR.normalize=void 0;var M9e=m("path");Object.defineProperty(iR,"normalize",{enumerable:!0,get:function(){return M9e.normalize}})});var Fre=c($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.normalize=$c.InstrumentationBase=void 0;var L9e=jre();Object.defineProperty($c,"InstrumentationBase",{enumerable:!0,get:function(){return L9e.InstrumentationBase}});var D9e=Hre();Object.defineProperty($c,"normalize",{enumerable:!0,get:function(){return D9e.normalize}})});var yG=c(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.normalize=Qc.InstrumentationBase=void 0;var kre=Fre();Object.defineProperty(Qc,"InstrumentationBase",{enumerable:!0,get:function(){return kre.InstrumentationBase}});Object.defineProperty(Qc,"normalize",{enumerable:!0,get:function(){return kre.normalize}})});var Wre=c(sR=>{"use strict";Object.defineProperty(sR,"__esModule",{value:!0});sR.InstrumentationNodeModuleDefinition=void 0;var vG=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};sR.InstrumentationNodeModuleDefinition=vG});var Yre=c(aR=>{"use strict";Object.defineProperty(aR,"__esModule",{value:!0});aR.InstrumentationNodeModuleFile=void 0;var G9e=yG(),NG=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,G9e.normalize)(e)}};aR.InstrumentationNodeModuleFile=NG});var Kre=c(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.safeExecuteInTheMiddleAsync=Bt.safeExecuteInTheMiddle=Bt.isWrapped=Bt.InstrumentationNodeModuleFile=Bt.InstrumentationNodeModuleDefinition=Bt.InstrumentationBase=Bt.registerInstrumentations=void 0;var U9e=Gre();Object.defineProperty(Bt,"registerInstrumentations",{enumerable:!0,get:function(){return U9e.registerInstrumentations}});var x9e=yG();Object.defineProperty(Bt,"InstrumentationBase",{enumerable:!0,get:function(){return x9e.InstrumentationBase}});var w9e=Wre();Object.defineProperty(Bt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return w9e.InstrumentationNodeModuleDefinition}});var V9e=Yre();Object.defineProperty(Bt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return V9e.InstrumentationNodeModuleFile}});var CG=OG();Object.defineProperty(Bt,"isWrapped",{enumerable:!0,get:function(){return CG.isWrapped}});Object.defineProperty(Bt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return CG.safeExecuteInTheMiddle}});Object.defineProperty(Bt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return CG.safeExecuteInTheMiddleAsync}})});var Xre=c(uR=>{"use strict";Object.defineProperty(uR,"__esModule",{value:!0});uR._LAYERS_STORE_PROPERTY=void 0;uR._LAYERS_STORE_PROPERTY=Symbol("opentelemetry.instrumentation-connect.request-route-stack")});var Zre=c($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.generateRoute=$i.replaceCurrentStackRoute=$i.addNewStackLayer=void 0;var B9e=(y(),T(P)),Ji=Xre(),q9e=t=>{Array.isArray(t[Ji._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(t,Ji._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),t[Ji._LAYERS_STORE_PROPERTY].push("/");let e=t[Ji._LAYERS_STORE_PROPERTY].length;return()=>{e===t[Ji._LAYERS_STORE_PROPERTY].length?t[Ji._LAYERS_STORE_PROPERTY].pop():B9e.diag.warn("Connect: Trying to pop the stack multiple time")}};$i.addNewStackLayer=q9e;var j9e=(t,e)=>{e&&t[Ji._LAYERS_STORE_PROPERTY].splice(-1,1,e)};$i.replaceCurrentStackRoute=j9e;var H9e=t=>t[Ji._LAYERS_STORE_PROPERTY].reduce((e,r)=>e.replace(/\/+$/,"")+r);$i.generateRoute=H9e});var $re=c(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.ConnectInstrumentation=Qi.ANONYMOUS_NAME=void 0;var F9e=(y(),T(P)),zre=ue(),el=dG(),Jre=Are(),cR=Kre(),k9e=(Q(),T($)),MG=Zre();Qi.ANONYMOUS_NAME="anonymous";var LG=class extends cR.InstrumentationBase{constructor(e={}){super(Jre.PACKAGE_NAME,Jre.PACKAGE_VERSION,e)}init(){return[new cR.InstrumentationNodeModuleDefinition("connect",[">=3.0.0 <4"],e=>this._patchConstructor(e))]}_patchApp(e){(0,cR.isWrapped)(e.use)||this._wrap(e,"use",this._patchUse.bind(this)),(0,cR.isWrapped)(e.handle)||this._wrap(e,"handle",this._patchHandle.bind(this))}_patchConstructor(e){let r=this;return function(...n){let o=e.apply(this,n);return r._patchApp(o),o}}_patchNext(e,r){return function(o){let i=e.apply(this,[o]);return r(),i}}_startSpan(e,r){let n,o,i;e?(n=el.ConnectTypes.REQUEST_HANDLER,i=el.ConnectNames.REQUEST_HANDLER,o=e):(n=el.ConnectTypes.MIDDLEWARE,i=el.ConnectNames.MIDDLEWARE,o=r.name||Qi.ANONYMOUS_NAME);let s=`${i} - ${o}`,a={attributes:{[k9e.SEMATTRS_HTTP_ROUTE]:e.length>0?e:"/",[el.AttributeNames.CONNECT_TYPE]:n,[el.AttributeNames.CONNECT_NAME]:o}};return this.tracer.startSpan(s,a)}_patchMiddleware(e,r){let n=this,o=r.length===4;function i(){if(!n.isEnabled())return r.apply(this,arguments);let[s,a,u]=o?[1,2,3]:[0,1,2],l=arguments[s],d=arguments[a],p=arguments[u];(0,MG.replaceCurrentStackRoute)(l,e);let _=(0,zre.getRPCMetadata)(F9e.context.active());e&&_?.type===zre.RPCType.HTTP&&(_.route=(0,MG.generateRoute)(l));let f="";e?f=`request handler - ${e}`:f=`middleware - ${r.name||Qi.ANONYMOUS_NAME}`;let g=n._startSpan(e,r);n._diag.debug("start span",f);let E=!1;function S(){E?n._diag.debug(`span ${g.name} - already finished`):(E=!0,n._diag.debug(`finishing span ${g.name}`),g.end()),d.removeListener("close",S)}return d.addListener("close",S),arguments[u]=n._patchNext(p,S),r.apply(this,arguments)}return Object.defineProperty(i,"length",{value:r.length,writable:!1,configurable:!0}),i}_patchUse(e){let r=this;return function(...n){let o=n[n.length-1],i=n[n.length-2]||"";return n[n.length-1]=r._patchMiddleware(i,o),e.apply(this,n)}}_patchHandle(e){let r=this;return function(){let[n,o]=[0,2],i=arguments[n],s=arguments[o],a=(0,MG.addNewStackLayer)(i);return typeof s=="function"&&(arguments[o]=r._patchOut(s,a)),e.apply(this,arguments)}}_patchOut(e,r){return function(...o){return r(),Reflect.apply(e,this,o)}}};Qi.ConnectInstrumentation=LG});var ene=c(es=>{"use strict";var W9e=es&&es.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Qre=es&&es.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&W9e(e,t,r)};Object.defineProperty(es,"__esModule",{value:!0});Qre(dG(),es);Qre($re(),es)});var DG=c(Bp=>{Object.defineProperty(Bp,"__esModule",{value:!0});var Y9e=ene(),zs=W(),K9e=Pe(),X9e=Xu(),tne="Connect",rne=K9e.generateInstrumentOnce(tne,()=>new Y9e.ConnectInstrumentation),Z9e=()=>({name:tne,setupOnce(){rne()}}),z9e=zs.defineIntegration(Z9e);function J9e(t,e,r,n){zs.captureException(t),n(t)}var $9e=t=>{t.use(J9e);let e=zs.getClient();e&&e.on("spanStart",r=>{Q9e(r)}),X9e.ensureIsWrapped(t.use,"connect")};function Q9e(t){let e=zs.spanToJSON(t).data||{},r=e["connect.type"];if(e[zs.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!r)return;t.setAttributes({[zs.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.connect",[zs.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.connect`});let n=e["connect.name"];typeof n=="string"&&t.updateName(n)}Bp.connectIntegration=z9e;Bp.instrumentConnect=rne;Bp.setupConnectErrorHandler=$9e});var GG=c(jp=>{Object.defineProperty(jp,"__esModule",{value:!0});var eze=m("node:http"),tze=W(),qp=b(),nne="Spotlight",rze=(t={})=>{let e={sidecarUrl:t.sidecarUrl||"http://localhost:8969/stream"};return{name:nne,setup(r){typeof process=="object"&&process.env&&process.env.NODE_ENV!=="development"&&qp.logger.warn("[Spotlight] It seems you're not in dev mode. Do you really want to have Spotlight enabled?"),oze(r,e)}}},nze=tze.defineIntegration(rze);function oze(t,e){let r=ize(e.sidecarUrl);if(!r)return;let n=0;t.on("beforeEnvelope",o=>{if(n>3){qp.logger.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests");return}let i=qp.serializeEnvelope(o),a=one()({method:"POST",path:r.pathname,hostname:r.hostname,port:r.port,headers:{"Content-Type":"application/x-sentry-envelope"}},u=>{u.statusCode&&u.statusCode>=200&&u.statusCode<400&&(n=0),u.on("data",()=>{}),u.on("end",()=>{}),u.setEncoding("utf8")});a.on("error",()=>{n++,qp.logger.warn("[Spotlight] Failed to send envelope to Spotlight Sidecar")}),a.write(i),a.end()})}function ize(t){try{return new URL(`${t}`)}catch{qp.logger.warn(`[Spotlight] Invalid sidecar URL: ${t}`);return}}function one(){let{request:t}=eze;return sze(t)?t.__sentry_original__:t}function sze(t){return"__sentry_original__"in t}jp.INTEGRATION_NAME=nne;jp.getNativeHttpRequest=one;jp.spotlightIntegration=nze});var ine=c(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.PACKAGE_NAME=tl.PACKAGE_VERSION=void 0;tl.PACKAGE_VERSION="0.39.0";tl.PACKAGE_NAME="@opentelemetry/instrumentation-generic-pool"});var ane=c(lR=>{"use strict";Object.defineProperty(lR,"__esModule",{value:!0});lR.GenericPoolInstrumentation=void 0;var rl=(y(),T(P)),Js=je(),sne=ine(),UG="generic-pool",xG=class extends Js.InstrumentationBase{constructor(e={}){super(sne.PACKAGE_NAME,sne.PACKAGE_VERSION,e),this._isDisabled=!1}init(){return[new Js.InstrumentationNodeModuleDefinition(UG,[">=3.0.0 <4"],e=>{let r=e.Pool;return(0,Js.isWrapped)(r.prototype.acquire)&&this._unwrap(r.prototype,"acquire"),this._wrap(r.prototype,"acquire",this._acquirePatcher.bind(this)),e},e=>{let r=e.Pool;return this._unwrap(r.prototype,"acquire"),e}),new Js.InstrumentationNodeModuleDefinition(UG,[">=2.4.0 <3"],e=>{let r=e.Pool;return(0,Js.isWrapped)(r.prototype.acquire)&&this._unwrap(r.prototype,"acquire"),this._wrap(r.prototype,"acquire",this._acquireWithCallbacksPatcher.bind(this)),e},e=>{let r=e.Pool;return this._unwrap(r.prototype,"acquire"),e}),new Js.InstrumentationNodeModuleDefinition(UG,[">=2.0.0 <2.4"],e=>(this._isDisabled=!1,(0,Js.isWrapped)(e.Pool)&&this._unwrap(e,"Pool"),this._wrap(e,"Pool",this._poolWrapper.bind(this)),e),e=>(this._isDisabled=!0,e))]}_acquirePatcher(e){let r=this;return function(...o){let i=rl.context.active(),s=r.tracer.startSpan("generic-pool.acquire",{},i);return rl.context.with(rl.trace.setSpan(i,s),()=>e.call(this,...o).then(a=>(s.end(),a),a=>{throw s.recordException(a),s.end(),a}))}}_poolWrapper(e){let r=this;return function(){let o=e.apply(this,arguments);return r._wrap(o,"acquire",r._acquireWithCallbacksPatcher.bind(r)),o}}_acquireWithCallbacksPatcher(e){let r=this;return function(o,i){if(r._isDisabled)return e.call(this,o,i);let s=rl.context.active(),a=r.tracer.startSpan("generic-pool.acquire",{},s);return rl.context.with(rl.trace.setSpan(s,a),()=>{e.call(this,(u,l)=>{if(a.end(),o)return o(u,l)},i)})}}};lR.GenericPoolInstrumentation=xG});var une=c($s=>{"use strict";var aze=$s&&$s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),uze=$s&&$s.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&aze(e,t,r)};Object.defineProperty($s,"__esModule",{value:!0});uze(ane(),$s)});var VG=c(dR=>{Object.defineProperty(dR,"__esModule",{value:!0});var cze=une(),wG=W(),lze=Pe(),cne="GenericPool",lne=lze.generateInstrumentOnce(cne,()=>new cze.GenericPoolInstrumentation({})),dze=()=>({name:cne,setupOnce(){lne()},setup(t){t.on("spanStart",e=>{let n=wG.spanToJSON(e).description;(n==="generic-pool.aquire"||n==="generic-pool.acquire")&&e.setAttribute(wG.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.generic_pool")})}}),pze=wG.defineIntegration(dze);dR.genericPoolIntegration=pze;dR.instrumentGenericPool=lne});var pne=c(dne=>{"use strict";Object.defineProperty(dne,"__esModule",{value:!0})});var _ne=c(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.PACKAGE_NAME=nl.PACKAGE_VERSION=void 0;nl.PACKAGE_VERSION="0.12.0";nl.PACKAGE_NAME="@opentelemetry/instrumentation-dataloader"});var gne=c(pR=>{"use strict";Object.defineProperty(pR,"__esModule",{value:!0});pR.DataloaderInstrumentation=void 0;var Qs=je(),Zt=(y(),T(P)),fne=_ne(),BG="dataloader",qG=class extends Qs.InstrumentationBase{constructor(e={}){super(fne.PACKAGE_NAME,fne.PACKAGE_VERSION,e)}init(){return[new Qs.InstrumentationNodeModuleDefinition(BG,[">=2.0.0 <3"],e=>(this._patchLoad(e.prototype),this._patchLoadMany(e.prototype),this._getPatchedConstructor(e)),e=>{(0,Qs.isWrapped)(e.prototype.load)&&this._unwrap(e.prototype,"load"),(0,Qs.isWrapped)(e.prototype.loadMany)&&this._unwrap(e.prototype,"loadMany")})]}shouldCreateSpans(){let e=this.getConfig();return Zt.trace.getSpan(Zt.context.active())!==void 0||!e.requireParentSpan}getSpanName(e,r){let n=e.name;return n==null?`${BG}.${r}`:`${BG}.${r} ${n}`}_getPatchedConstructor(e){let r=e.prototype,n=this;function o(...i){let s=new e(...i);return n.isEnabled()&&((0,Qs.isWrapped)(s._batchLoadFn)&&n._unwrap(s,"_batchLoadFn"),n._wrap(s,"_batchLoadFn",a=>function(...l){var d;if(!n.isEnabled()||!n.shouldCreateSpans())return a.call(this,...l);let p=Zt.context.active(),_=n.tracer.startSpan(n.getSpanName(s,"batch"),{links:(d=this._batch)===null||d===void 0?void 0:d.spanLinks},p);return Zt.context.with(Zt.trace.setSpan(p,_),()=>a.apply(this,l).then(f=>(_.end(),f)).catch(f=>{throw _.recordException(f),_.setStatus({code:Zt.SpanStatusCode.ERROR,message:f.message}),_.end(),f}))})),s}return o.prototype=r,o}_patchLoad(e){(0,Qs.isWrapped)(e.load)&&this._unwrap(e,"load"),this._wrap(e,"load",this._getPatchedLoad.bind(this))}_getPatchedLoad(e){let r=this;return function(...o){if(!r.shouldCreateSpans())return e.call(this,...o);let i=Zt.context.active(),s=r.tracer.startSpan(r.getSpanName(this,"load"),{kind:Zt.SpanKind.CLIENT},i);return Zt.context.with(Zt.trace.setSpan(i,s),()=>{let a=e.call(this,...o).then(l=>(s.end(),l)).catch(l=>{throw s.recordException(l),s.setStatus({code:Zt.SpanStatusCode.ERROR,message:l.message}),s.end(),l}),u=this;return u._batch&&(u._batch.spanLinks||(u._batch.spanLinks=[]),u._batch.spanLinks.push({context:s.spanContext()})),a})}}_patchLoadMany(e){(0,Qs.isWrapped)(e.loadMany)&&this._unwrap(e,"loadMany"),this._wrap(e,"loadMany",this._getPatchedLoadMany.bind(this))}_getPatchedLoadMany(e){let r=this;return function(...o){if(!r.shouldCreateSpans())return e.call(this,...o);let i=Zt.context.active(),s=r.tracer.startSpan(r.getSpanName(this,"loadMany"),{kind:Zt.SpanKind.CLIENT},i);return Zt.context.with(Zt.trace.setSpan(i,s),()=>e.call(this,...o).then(a=>(s.end(),a)))}}};pR.DataloaderInstrumentation=qG});var hne=c(ts=>{"use strict";var _ze=ts&&ts.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ene=ts&&ts.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&_ze(e,t,r)};Object.defineProperty(ts,"__esModule",{value:!0});Ene(pne(),ts);Ene(gne(),ts)});var Sne=c(fR=>{var{_optionalChain:fze}=b();Object.defineProperty(fR,"__esModule",{value:!0});var gze=hne(),_R=W(),Eze=Pe(),mne="Dataloader",Tne=Eze.generateInstrumentOnce(mne,()=>new gze.DataloaderInstrumentation({requireParentSpan:!0})),hze=()=>({name:mne,setupOnce(){Tne()},setup(t){t.on("spanStart",e=>{let r=_R.spanToJSON(e);fze([r,"access",n=>n.description,"optionalAccess",n=>n.startsWith,"call",n=>n("dataloader")])&&e.setAttribute(_R.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.dataloader"),(r.description==="dataloader.load"||r.description==="dataloader.loadMany"||r.description==="dataloader.batch")&&e.setAttribute(_R.SEMANTIC_ATTRIBUTE_SENTRY_OP,"cache.get")})}}),mze=_R.defineIntegration(hze);fR.dataloaderIntegration=mze;fR.instrumentDataloader=Tne});var jG=c(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.DEFAULT_CONFIG=ea.EndOperation=void 0;var Tze;(function(t){t.AutoAck="auto ack",t.Ack="ack",t.AckAll="ackAll",t.Reject="reject",t.Nack="nack",t.NackAll="nackAll",t.ChannelClosed="channel closed",t.ChannelError="channel error",t.InstrumentationTimeout="instrumentation timeout"})(Tze=ea.EndOperation||(ea.EndOperation={}));ea.DEFAULT_CONFIG={consumeTimeoutMs:1e3*60,useLinksForConsume:!1}});var Ine=c(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.isConfirmChannelTracing=Ce.unmarkConfirmChannelTracing=Ce.markConfirmChannelTracing=Ce.getConnectionAttributesFromUrl=Ce.getConnectionAttributesFromServer=Ce.normalizeExchange=Ce.CONNECTION_ATTRIBUTES=Ce.CHANNEL_CONSUME_TIMEOUT_TIMER=Ce.CHANNEL_SPANS_NOT_ENDED=Ce.MESSAGE_STORED_SPAN=void 0;var HG=(y(),T(P)),Po=(Q(),T($));Ce.MESSAGE_STORED_SPAN=Symbol("opentelemetry.amqplib.message.stored-span");Ce.CHANNEL_SPANS_NOT_ENDED=Symbol("opentelemetry.amqplib.channel.spans-not-ended");Ce.CHANNEL_CONSUME_TIMEOUT_TIMER=Symbol("opentelemetry.amqplib.channel.consumer-timeout-timer");Ce.CONNECTION_ATTRIBUTES=Symbol("opentelemetry.amqplib.connection.attributes");var FG=(0,HG.createContextKey)("opentelemetry.amqplib.channel.is-confirm-channel"),Sze=t=>t!==""?t:"<default>";Ce.normalizeExchange=Sze;var Aze=t=>t.replace(/:[^:@/]*@/,":***@"),Ane=(t,e)=>t||(e==="AMQP"?5672:5671),Rne=t=>{let e=t||"amqp";return(e.endsWith(":")?e.substring(0,e.length-1):e).toUpperCase()},One=t=>t||"localhost",ol=(t,e,r,n)=>r?{[e]:r}:(HG.diag.error(`amqplib instrumentation: could not extract connection attribute ${n} from user supplied url`,{url:t}),{}),Rze=t=>{var e,r;let n=(r=(e=t.serverProperties.product)===null||e===void 0?void 0:e.toLowerCase)===null||r===void 0?void 0:r.call(e);return n?{[Po.SEMATTRS_MESSAGING_SYSTEM]:n}:{}};Ce.getConnectionAttributesFromServer=Rze;var Oze=t=>{let e={[Po.SEMATTRS_MESSAGING_PROTOCOL_VERSION]:"0.9.1"};if(t=t||"amqp://localhost",typeof t=="object"){let r=t,n=Rne(r?.protocol);Object.assign(e,Object.assign({},ol(t,Po.SEMATTRS_MESSAGING_PROTOCOL,n,"protocol")));let o=One(r?.hostname);Object.assign(e,Object.assign({},ol(t,Po.SEMATTRS_NET_PEER_NAME,o,"hostname")));let i=Ane(r.port,n);Object.assign(e,Object.assign({},ol(t,Po.SEMATTRS_NET_PEER_PORT,i,"port")))}else{let r=Aze(t);e[Po.SEMATTRS_MESSAGING_URL]=r;try{let n=new URL(r),o=Rne(n.protocol);Object.assign(e,Object.assign({},ol(r,Po.SEMATTRS_MESSAGING_PROTOCOL,o,"protocol")));let i=One(n.hostname);Object.assign(e,Object.assign({},ol(r,Po.SEMATTRS_NET_PEER_NAME,i,"hostname")));let s=Ane(n.port?parseInt(n.port):void 0,o);Object.assign(e,Object.assign({},ol(r,Po.SEMATTRS_NET_PEER_PORT,s,"port")))}catch(n){HG.diag.error("amqplib instrumentation: error while extracting connection details from connection url",{censoredUrl:r,err:n})}}return e};Ce.getConnectionAttributesFromUrl=Oze;var Ize=t=>t.setValue(FG,!0);Ce.markConfirmChannelTracing=Ize;var bze=t=>t.deleteValue(FG);Ce.unmarkConfirmChannelTracing=bze;var Pze=t=>t.getValue(FG)===!0;Ce.isConfirmChannelTracing=Pze});var bne=c(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.PACKAGE_NAME=il.PACKAGE_VERSION=void 0;il.PACKAGE_VERSION="0.42.0";il.PACKAGE_NAME="@opentelemetry/instrumentation-amqplib"});var yne=c(hR=>{"use strict";Object.defineProperty(hR,"__esModule",{value:!0});hR.AmqplibInstrumentation=void 0;var ve=(y(),T(P)),gR=ue(),ae=je(),sr=(Q(),T($)),zt=jG(),Me=Ine(),Pne=bne(),ER=[">=0.5.5 <1"],kG=class extends ae.InstrumentationBase{constructor(e={}){super(Pne.PACKAGE_NAME,Pne.PACKAGE_VERSION,Object.assign(Object.assign({},zt.DEFAULT_CONFIG),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},zt.DEFAULT_CONFIG),e))}init(){let e=new ae.InstrumentationNodeModuleFile("amqplib/lib/channel_model.js",ER,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),r=new ae.InstrumentationNodeModuleFile("amqplib/lib/callback_model.js",ER,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),n=new ae.InstrumentationNodeModuleFile("amqplib/lib/connect.js",ER,this.patchConnect.bind(this),this.unpatchConnect.bind(this));return new ae.InstrumentationNodeModuleDefinition("amqplib",ER,void 0,void 0,[e,n,r])}patchConnect(e){return e=this.unpatchConnect(e),(0,ae.isWrapped)(e.connect)||this._wrap(e,"connect",this.getConnectPatch.bind(this)),e}unpatchConnect(e){return(0,ae.isWrapped)(e.connect)&&this._unwrap(e,"connect"),e}patchChannelModel(e,r){return(0,ae.isWrapped)(e.Channel.prototype.publish)||this._wrap(e.Channel.prototype,"publish",this.getPublishPatch.bind(this,r)),(0,ae.isWrapped)(e.Channel.prototype.consume)||this._wrap(e.Channel.prototype,"consume",this.getConsumePatch.bind(this,r)),(0,ae.isWrapped)(e.Channel.prototype.ack)||this._wrap(e.Channel.prototype,"ack",this.getAckPatch.bind(this,!1,zt.EndOperation.Ack)),(0,ae.isWrapped)(e.Channel.prototype.nack)||this._wrap(e.Channel.prototype,"nack",this.getAckPatch.bind(this,!0,zt.EndOperation.Nack)),(0,ae.isWrapped)(e.Channel.prototype.reject)||this._wrap(e.Channel.prototype,"reject",this.getAckPatch.bind(this,!0,zt.EndOperation.Reject)),(0,ae.isWrapped)(e.Channel.prototype.ackAll)||this._wrap(e.Channel.prototype,"ackAll",this.getAckAllPatch.bind(this,!1,zt.EndOperation.AckAll)),(0,ae.isWrapped)(e.Channel.prototype.nackAll)||this._wrap(e.Channel.prototype,"nackAll",this.getAckAllPatch.bind(this,!0,zt.EndOperation.NackAll)),(0,ae.isWrapped)(e.Channel.prototype.emit)||this._wrap(e.Channel.prototype,"emit",this.getChannelEmitPatch.bind(this)),(0,ae.isWrapped)(e.ConfirmChannel.prototype.publish)||this._wrap(e.ConfirmChannel.prototype,"publish",this.getConfirmedPublishPatch.bind(this,r)),e}unpatchChannelModel(e){return(0,ae.isWrapped)(e.Channel.prototype.publish)&&this._unwrap(e.Channel.prototype,"publish"),(0,ae.isWrapped)(e.Channel.prototype.consume)&&this._unwrap(e.Channel.prototype,"consume"),(0,ae.isWrapped)(e.Channel.prototype.ack)&&this._unwrap(e.Channel.prototype,"ack"),(0,ae.isWrapped)(e.Channel.prototype.nack)&&this._unwrap(e.Channel.prototype,"nack"),(0,ae.isWrapped)(e.Channel.prototype.reject)&&this._unwrap(e.Channel.prototype,"reject"),(0,ae.isWrapped)(e.Channel.prototype.ackAll)&&this._unwrap(e.Channel.prototype,"ackAll"),(0,ae.isWrapped)(e.Channel.prototype.nackAll)&&this._unwrap(e.Channel.prototype,"nackAll"),(0,ae.isWrapped)(e.Channel.prototype.emit)&&this._unwrap(e.Channel.prototype,"emit"),(0,ae.isWrapped)(e.ConfirmChannel.prototype.publish)&&this._unwrap(e.ConfirmChannel.prototype,"publish"),e}getConnectPatch(e){return function(n,o,i){return e.call(this,n,o,function(s,a){if(s==null){let u=(0,Me.getConnectionAttributesFromUrl)(n),l=(0,Me.getConnectionAttributesFromServer)(a);a[Me.CONNECTION_ATTRIBUTES]=Object.assign(Object.assign({},u),l)}i.apply(this,arguments)})}}getChannelEmitPatch(e){let r=this;return function(o){if(o==="close"){r.endAllSpansOnChannel(this,!0,zt.EndOperation.ChannelClosed,void 0);let i=this[Me.CHANNEL_CONSUME_TIMEOUT_TIMER];i&&clearInterval(i),this[Me.CHANNEL_CONSUME_TIMEOUT_TIMER]=void 0}else o==="error"&&r.endAllSpansOnChannel(this,!0,zt.EndOperation.ChannelError,void 0);return e.apply(this,arguments)}}getAckAllPatch(e,r,n){let o=this;return function(s){return o.endAllSpansOnChannel(this,e,r,s),n.apply(this,arguments)}}getAckPatch(e,r,n){let o=this;return function(s,a,u){var l;let d=this,p=r===zt.EndOperation.Reject?a:u,_=(l=d[Me.CHANNEL_SPANS_NOT_ENDED])!==null&&l!==void 0?l:[],f=_.findIndex(g=>g.msg===s);if(f<0)o.endConsumerSpan(s,e,r,p);else if(r!==zt.EndOperation.Reject&&a){for(let g=0;g<=f;g++)o.endConsumerSpan(_[g].msg,e,r,p);_.splice(0,f+1)}else o.endConsumerSpan(s,e,r,p),_.splice(f,1);return n.apply(this,arguments)}}getConsumePatch(e,r){let n=this;return function(i,s,a){let u=this;if(!Object.prototype.hasOwnProperty.call(u,Me.CHANNEL_SPANS_NOT_ENDED)){let{consumeTimeoutMs:d}=n.getConfig();if(d){let p=setInterval(()=>{n.checkConsumeTimeoutOnChannel(u)},d);p.unref(),u[Me.CHANNEL_CONSUME_TIMEOUT_TIMER]=p}u[Me.CHANNEL_SPANS_NOT_ENDED]=[]}let l=function(d){var p,_,f,g,E;if(!d)return s.call(this,d);let S=(p=d.properties.headers)!==null&&p!==void 0?p:{},v=ve.propagation.extract(ve.ROOT_CONTEXT,S),M=(_=d.fields)===null||_===void 0?void 0:_.exchange,D;if(n._config.useLinksForConsume){let w=v?(f=ve.trace.getSpan(v))===null||f===void 0?void 0:f.spanContext():void 0;v=void 0,w&&(D=[{context:w}])}let L=n.tracer.startSpan(`${i} process`,{kind:ve.SpanKind.CONSUMER,attributes:Object.assign(Object.assign({},(g=u?.connection)===null||g===void 0?void 0:g[Me.CONNECTION_ATTRIBUTES]),{[sr.SEMATTRS_MESSAGING_DESTINATION]:M,[sr.SEMATTRS_MESSAGING_DESTINATION_KIND]:sr.MESSAGINGDESTINATIONKINDVALUES_TOPIC,[sr.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY]:(E=d.fields)===null||E===void 0?void 0:E.routingKey,[sr.SEMATTRS_MESSAGING_OPERATION]:sr.MESSAGINGOPERATIONVALUES_PROCESS,[sr.SEMATTRS_MESSAGING_MESSAGE_ID]:d?.properties.messageId,[sr.SEMATTRS_MESSAGING_CONVERSATION_ID]:d?.properties.correlationId}),links:D},v),{consumeHook:N}=n.getConfig();N&&(0,ae.safeExecuteInTheMiddle)(()=>N(L,{moduleVersion:e,msg:d}),w=>{w&&ve.diag.error("amqplib instrumentation: consumerHook error",w)},!0),a?.noAck||(u[Me.CHANNEL_SPANS_NOT_ENDED].push({msg:d,timeOfConsume:(0,gR.hrTime)()}),d[Me.MESSAGE_STORED_SPAN]=L);let G=v||ve.ROOT_CONTEXT;ve.context.with(ve.trace.setSpan(G,L),()=>{s.call(this,d)}),a?.noAck&&(n.callConsumeEndHook(L,d,!1,zt.EndOperation.AutoAck),L.end())};return arguments[1]=l,r.apply(this,arguments)}}getConfirmedPublishPatch(e,r){let n=this;return function(i,s,a,u,l){let d=this,{span:p,modifiedOptions:_}=n.createPublishSpan(n,i,s,d,u),{publishHook:f}=n.getConfig();f&&(0,ae.safeExecuteInTheMiddle)(()=>f(p,{moduleVersion:e,exchange:i,routingKey:s,content:a,options:_,isConfirmChannel:!0}),v=>{v&&ve.diag.error("amqplib instrumentation: publishHook error",v)},!0);let g=function(v,M){try{l?.call(this,v,M)}finally{let{publishConfirmHook:D}=n.getConfig();D&&(0,ae.safeExecuteInTheMiddle)(()=>D(p,{moduleVersion:e,exchange:i,routingKey:s,content:a,options:u,isConfirmChannel:!0,confirmError:v}),L=>{L&&ve.diag.error("amqplib instrumentation: publishConfirmHook error",L)},!0),v&&p.setStatus({code:ve.SpanStatusCode.ERROR,message:"message confirmation has been nack'ed"}),p.end()}},E=(0,Me.markConfirmChannelTracing)(ve.context.active()),S=[...arguments];return S[3]=_,S[4]=ve.context.bind((0,Me.unmarkConfirmChannelTracing)(ve.trace.setSpan(E,p)),g),ve.context.with(E,r.bind(this,...S))}}getPublishPatch(e,r){let n=this;return function(i,s,a,u){if((0,Me.isConfirmChannelTracing)(ve.context.active()))return r.apply(this,arguments);{let l=this,{span:d,modifiedOptions:p}=n.createPublishSpan(n,i,s,l,u),{publishHook:_}=n.getConfig();_&&(0,ae.safeExecuteInTheMiddle)(()=>_(d,{moduleVersion:e,exchange:i,routingKey:s,content:a,options:p,isConfirmChannel:!1}),E=>{E&&ve.diag.error("amqplib instrumentation: publishHook error",E)},!0);let f=[...arguments];f[3]=p;let g=r.apply(this,f);return d.end(),g}}}createPublishSpan(e,r,n,o,i){var s;let a=(0,Me.normalizeExchange)(r),u=e.tracer.startSpan(`publish ${a}`,{kind:ve.SpanKind.PRODUCER,attributes:Object.assign(Object.assign({},o.connection[Me.CONNECTION_ATTRIBUTES]),{[sr.SEMATTRS_MESSAGING_DESTINATION]:r,[sr.SEMATTRS_MESSAGING_DESTINATION_KIND]:sr.MESSAGINGDESTINATIONKINDVALUES_TOPIC,[sr.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY]:n,[sr.SEMATTRS_MESSAGING_MESSAGE_ID]:i?.messageId,[sr.SEMATTRS_MESSAGING_CONVERSATION_ID]:i?.correlationId})}),l=i??{};return l.headers=(s=l.headers)!==null&&s!==void 0?s:{},ve.propagation.inject(ve.trace.setSpan(ve.context.active(),u),l.headers),{span:u,modifiedOptions:l}}endConsumerSpan(e,r,n,o){let i=e[Me.MESSAGE_STORED_SPAN];i&&(r!==!1&&i.setStatus({code:ve.SpanStatusCode.ERROR,message:n!==zt.EndOperation.ChannelClosed&&n!==zt.EndOperation.ChannelError?`${n} called on message${o===!0?" with requeue":o===!1?" without requeue":""}`:n}),this.callConsumeEndHook(i,e,r,n),i.end(),e[Me.MESSAGE_STORED_SPAN]=void 0)}endAllSpansOnChannel(e,r,n,o){var i;((i=e[Me.CHANNEL_SPANS_NOT_ENDED])!==null&&i!==void 0?i:[]).forEach(a=>{this.endConsumerSpan(a.msg,r,n,o)}),e[Me.CHANNEL_SPANS_NOT_ENDED]=[]}callConsumeEndHook(e,r,n,o){let{consumeEndHook:i}=this.getConfig();i&&(0,ae.safeExecuteInTheMiddle)(()=>i(e,{msg:r,rejected:n,endOperation:o}),s=>{s&&ve.diag.error("amqplib instrumentation: consumerEndHook error",s)},!0)}checkConsumeTimeoutOnChannel(e){var r;let n=(0,gR.hrTime)(),o=(r=e[Me.CHANNEL_SPANS_NOT_ENDED])!==null&&r!==void 0?r:[],i,{consumeTimeoutMs:s}=this.getConfig();for(i=0;i<o.length;i++){let a=o[i],u=(0,gR.hrTimeDuration)(a.timeOfConsume,n);if((0,gR.hrTimeToMilliseconds)(u)<s)break;this.endConsumerSpan(a.msg,null,zt.EndOperation.InstrumentationTimeout,!0)}o.splice(0,i)}};hR.AmqplibInstrumentation=kG});var Nne=c(rs=>{"use strict";var yze=rs&&rs.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),vne=rs&&rs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&yze(e,t,r)};Object.defineProperty(rs,"__esModule",{value:!0});vne(yne(),rs);vne(jG(),rs)});var WG=c(mR=>{Object.defineProperty(mR,"__esModule",{value:!0});var vze=Nne(),Nze=W(),Cze=Pe(),Cne=Sn(),Mne="Amqplib",Mze={consumeEndHook:t=>{Cne.addOriginToSpan(t,"auto.amqplib.otel.consumer")},publishHook:t=>{Cne.addOriginToSpan(t,"auto.amqplib.otel.publisher")}},Lne=Cze.generateInstrumentOnce(Mne,()=>new vze.AmqplibInstrumentation(Mze)),Lze=()=>({name:Mne,setupOnce(){Lne()}}),Dze=Nze.defineIntegration(Lze);mR.amqplibIntegration=Dze;mR.instrumentAmqplib=Lne});var KG=c(YG=>{Object.defineProperty(YG,"__esModule",{value:!0});var Dne=m("node:diagnostics_channel"),TR=W(),Gze="ProcessAndThreadBreadcrumbs",Uze=(t={})=>({name:Gze,setup(e){Dne.channel("child_process").subscribe(r=>{r&&typeof r=="object"&&"process"in r&&wze(r.process,t)}),Dne.channel("worker_threads").subscribe(r=>{r&&typeof r=="object"&&"worker"in r&&Vze(r.worker)})}}),xze=TR.defineIntegration(Uze);function wze(t,e){let r=!1,n;t.on("spawn",()=>{if(t.spawnfile==="/usr/bin/sw_vers"){r=!0;return}n={spawnfile:t.spawnfile},e.includeChildProcessArgs&&(n.spawnargs=t.spawnargs)}).on("exit",o=>{r||(r=!0,o!==null&&o!==0&&TR.addBreadcrumb({category:"child_process",message:`Child process exited with code '${o}'`,level:"warning",data:n}))}).on("error",o=>{r||(r=!0,TR.addBreadcrumb({category:"child_process",message:`Child process errored with '${o.message}'`,level:"error",data:n}))})}function Vze(t){let e;t.on("online",()=>{e=t.threadId}).on("error",r=>{TR.addBreadcrumb({category:"worker_thread",message:`Worker thread errored with '${r.message}'`,level:"error",data:{threadId:e}})})}YG.processThreadBreadcrumbIntegration=xze});var ZG=c(SR=>{"use strict";Object.defineProperty(SR,"__esModule",{value:!0});SR.AbstractAsyncHooksContextManager=void 0;var Bze=m("events"),qze=["addListener","on","once","prependListener","prependOnceListener"],XG=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,r){return r instanceof Bze.EventEmitter?this._bindEventEmitter(e,r):typeof r=="function"?this._bindFunction(e,r):r}_bindFunction(e,r){let n=this,o=function(...i){return n.with(e,()=>r.apply(this,i))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),o}_bindEventEmitter(e,r){return this._getPatchMap(r)!==void 0||(this._createPatchMap(r),qze.forEach(o=>{r[o]!==void 0&&(r[o]=this._patchAddListener(r,r[o],e))}),typeof r.removeListener=="function"&&(r.removeListener=this._patchRemoveListener(r,r.removeListener)),typeof r.off=="function"&&(r.off=this._patchRemoveListener(r,r.off)),typeof r.removeAllListeners=="function"&&(r.removeAllListeners=this._patchRemoveAllListeners(r,r.removeAllListeners))),r}_patchRemoveListener(e,r){let n=this;return function(o,i){var s;let a=(s=n._getPatchMap(e))===null||s===void 0?void 0:s[o];if(a===void 0)return r.call(this,o,i);let u=a.get(i);return r.call(this,o,u||i)}}_patchRemoveAllListeners(e,r){let n=this;return function(o){let i=n._getPatchMap(e);return i!==void 0&&(arguments.length===0?n._createPatchMap(e):i[o]!==void 0&&delete i[o]),r.apply(this,arguments)}}_patchAddListener(e,r,n){let o=this;return function(i,s){if(o._wrapped)return r.call(this,i,s);let a=o._getPatchMap(e);a===void 0&&(a=o._createPatchMap(e));let u=a[i];u===void 0&&(u=new WeakMap,a[i]=u);let l=o.bind(n,s);u.set(s,l),o._wrapped=!0;try{return r.call(this,i,l)}finally{o._wrapped=!1}}}_createPatchMap(e){let r=Object.create(null);return e[this._kOtListeners]=r,r}_getPatchMap(e){return e[this._kOtListeners]}};SR.AbstractAsyncHooksContextManager=XG});var Gne=c(AR=>{"use strict";Object.defineProperty(AR,"__esModule",{value:!0});AR.AsyncHooksContextManager=void 0;var jze=(y(),T(P)),Hze=m("async_hooks"),Fze=ZG(),zG=class extends Fze.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=Hze.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:jze.ROOT_CONTEXT}with(e,r,n,...o){this._enterContext(e);try{return r.call(n,...o)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,r){if(r==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(e,n)}_destroy(e){this._contexts.delete(e)}_before(e){let r=this._contexts.get(e);r!==void 0&&this._enterContext(r)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};AR.AsyncHooksContextManager=zG});var Une=c(RR=>{"use strict";Object.defineProperty(RR,"__esModule",{value:!0});RR.AsyncLocalStorageContextManager=void 0;var kze=(y(),T(P)),Wze=m("async_hooks"),Yze=ZG(),JG=class extends Yze.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new Wze.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:kze.ROOT_CONTEXT}with(e,r,n,...o){let i=n==null?r:r.bind(n);return this._asyncLocalStorage.run(e,i,...o)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};RR.AsyncLocalStorageContextManager=JG});var xne=c(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.AsyncLocalStorageContextManager=sl.AsyncHooksContextManager=void 0;var Kze=Gne();Object.defineProperty(sl,"AsyncHooksContextManager",{enumerable:!0,get:function(){return Kze.AsyncHooksContextManager}});var Xze=Une();Object.defineProperty(sl,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Xze.AsyncLocalStorageContextManager}})});var QG=c($G=>{Object.defineProperty($G,"__esModule",{value:!0});var Zze=xne(),zze=uo(),Jze=zze.wrapContextManagerClass(Zze.AsyncLocalStorageContextManager);$G.SentryContextManager=Jze});var IR=c(OR=>{Object.defineProperty(OR,"__esModule",{value:!0});var $ze=om(),wne=WG(),Vne=DG(),Bne=EL(),qne=qL(),jne=VG(),Hne=d0(),e1=sG(),Fne=L0(),kne=lG(),Wne=G0(),Yne=tD(),Kne=iD(),Xne=uD(),Zne=pD(),zne=ID(),Jne=CD(),$ne=hD();function Qze(){return[Bne.expressIntegration(),qne.fastifyIntegration(),Hne.graphqlIntegration(),Yne.mongoIntegration(),Kne.mongooseIntegration(),Xne.mysqlIntegration(),Zne.mysql2Integration(),$ne.redisIntegration(),Jne.postgresIntegration(),zne.nestIntegration(),e1.hapiIntegration(),kne.koaIntegration(),Vne.connectIntegration(),jne.genericPoolIntegration(),Fne.kafkaIntegration(),wne.amqplibIntegration(),Wne.lruMemoizerIntegration()]}function e3e(){return[$ze.instrumentOtelHttp,Bne.instrumentExpress,Vne.instrumentConnect,qne.instrumentFastify,e1.instrumentHapi,Fne.instrumentKafka,kne.instrumentKoa,Wne.instrumentLruMemoizer,zne.instrumentNest,Yne.instrumentMongo,Kne.instrumentMongoose,Xne.instrumentMysql,Zne.instrumentMysql2,Jne.instrumentPostgres,e1.instrumentHapi,Hne.instrumentGraphql,$ne.instrumentRedis,jne.instrumentGenericPool,wne.instrumentAmqplib]}OR.getAutoPerformanceIntegrations=Qze;OR.getOpenTelemetryInstrumentationToPreload=e3e});var toe=c(r1=>{var{_nullishCoalesce:Qne}=b();Object.defineProperty(r1,"__esModule",{value:!0});var eoe=m("node:http");m("node:https");var qn=Symbol("AgentBaseInternalState"),t1=class extends eoe.Agent{constructor(e){super(e),this[qn]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
33
+ `).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(e,o)).then(i=>{if(i instanceof eoe.Agent)return i.addRequest(e,o);this[qn].currentSocket=i,super.createSocket(e,r,n)},n)}createConnection(){let e=this[qn].currentSocket;if(this[qn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return Qne(this[qn].defaultPort,()=>this.protocol==="https:"?443:80)}set defaultPort(e){this[qn]&&(this[qn].defaultPort=e)}get protocol(){return Qne(this[qn].protocol,()=>this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[qn]&&(this[qn].protocol=e)}};r1.Agent=t1});var roe=c(n1=>{Object.defineProperty(n1,"__esModule",{value:!0});var t3e=b();function bR(...t){t3e.logger.log("[https-proxy-agent:parse-proxy-response]",...t)}function r3e(t){return new Promise((e,r)=>{let n=0,o=[];function i(){let d=t.read();d?l(d):t.once("readable",i)}function s(){t.removeListener("end",a),t.removeListener("error",u),t.removeListener("readable",i)}function a(){s(),bR("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function u(d){s(),bR("onerror %o",d),r(d)}function l(d){o.push(d),n+=d.length;let p=Buffer.concat(o,n),_=p.indexOf(`\r
34
+ \r
35
+ `);if(_===-1){bR("have not received end of HTTP headers yet..."),i();return}let f=p.slice(0,_).toString("ascii").split(`\r
36
+ `),g=f.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=g.split(" "),S=+(E[1]||0),v=E.slice(2).join(" "),M={};for(let D of f){if(!D)continue;let L=D.indexOf(":");if(L===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${D}"`));let N=D.slice(0,L).toLowerCase(),G=D.slice(L+1).trimStart(),w=M[N];typeof w=="string"?M[N]=[w,G]:Array.isArray(w)?w.push(G):M[N]=G}bR("got proxy server response: %o %o",g,M),s(),e({connect:{statusCode:S,statusText:v,headers:M},buffered:p})}t.on("error",u),t.on("end",a),i()})}n1.parseProxyResponse=r3e});var ioe=c(o1=>{var{_nullishCoalesce:n3e,_optionalChain:o3e}=b();Object.defineProperty(o1,"__esModule",{value:!0});var Hp=m("node:net"),noe=m("node:tls"),i3e=b(),s3e=toe(),a3e=roe();function Fp(...t){i3e.logger.log("[https-proxy-agent]",...t)}var PR=class extends s3e.Agent{static __initStatic(){this.protocols=["http","https"]}constructor(e,r){super(r),this.options={},this.proxy=typeof e=="string"?new URL(e):e,this.proxyHeaders=n3e(o3e([r,"optionalAccess",i=>i.headers]),()=>({})),Fp("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ooe(r,"headers"):null,host:n,port:o}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let o;if(n.protocol==="https:"){Fp("Creating `tls.Socket`: %o",this.connectOpts);let _=this.connectOpts.servername||this.connectOpts.host;o=noe.connect({...this.connectOpts,servername:_&&Hp.isIP(_)?void 0:_})}else Fp("Creating `net.Socket`: %o",this.connectOpts),o=Hp.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},s=Hp.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${s}:${r.port} HTTP/1.1\r
37
+ `;if(n.username||n.password){let _=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(_).toString("base64")}`}i.Host=`${s}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let _ of Object.keys(i))a+=`${_}: ${i[_]}\r
38
+ `;let u=a3e.parseProxyResponse(o);o.write(`${a}\r
39
+ `);let{connect:l,buffered:d}=await u;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",u3e),r.secureEndpoint){Fp("Upgrading socket connection to TLS");let _=r.servername||r.host;return noe.connect({...ooe(r,"host","path","port"),socket:o,servername:Hp.isIP(_)?void 0:_})}return o}o.destroy();let p=new Hp.Socket({writable:!1});return p.readable=!0,e.once("socket",_=>{Fp("Replaying proxy buffer for failed request"),_.push(d),_.push(null)}),p}};PR.__initStatic();function u3e(t){t.resume()}function ooe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o1.HttpsProxyAgent=PR});var u1=c(a1=>{var{_nullishCoalesce:i1}=b();Object.defineProperty(a1,"__esModule",{value:!0});var c3e=m("node:http"),l3e=m("node:https"),d3e=m("node:stream"),p3e=m("node:zlib"),s1=W(),_3e=b(),f3e=ioe(),g3e=1024*32;function E3e(t){return new d3e.Readable({read(){this.push(t),this.push(null)}})}function h3e(t){let e;try{e=new URL(t.url)}catch{return _3e.consoleSandbox(()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.")}),s1.createTransport(t,()=>Promise.resolve({}))}let r=e.protocol==="https:",n=m3e(e,t.proxy||(r?process.env.https_proxy:void 0)||process.env.http_proxy),o=r?l3e:c3e,i=t.keepAlive===void 0?!1:t.keepAlive,s=n?new f3e.HttpsProxyAgent(n):new o.Agent({keepAlive:i,maxSockets:30,timeout:2e3}),a=T3e(t,i1(t.httpModule,()=>o),s);return s1.createTransport(t,a)}function m3e(t,e){let{no_proxy:r}=process.env;if(!(r&&r.split(",").some(o=>t.host.endsWith(o)||t.hostname.endsWith(o))))return e}function T3e(t,e,r){let{hostname:n,pathname:o,port:i,protocol:s,search:a}=new URL(t.url);return function(l){return new Promise((d,p)=>{s1.suppressTracing(()=>{let _=E3e(l.body),f={...t.headers};l.body.length>g3e&&(f["content-encoding"]="gzip",_=_.pipe(p3e.createGzip()));let g=e.request({method:"POST",agent:r,headers:f,hostname:n,path:`${o}${a}`,port:i,protocol:s,ca:t.caCerts},E=>{E.on("data",()=>{}),E.on("end",()=>{}),E.setEncoding("utf8");let S=i1(E.headers["retry-after"],()=>null),v=i1(E.headers["x-sentry-rate-limits"],()=>null);d({statusCode:E.statusCode,headers:{"retry-after":S,"x-sentry-rate-limits":Array.isArray(v)?v[0]||null:v}})});g.on("error",p),_.pipe(g)})})}}a1.makeNodeTransport=h3e});var uoe=c(kp=>{Object.defineProperty(kp,"__esModule",{value:!0});var soe=new Set(["false","f","n","no","off","0"]),aoe=new Set(["true","t","y","yes","on","1"]);function S3e(t,e){let r=String(t).toLowerCase();return soe.has(r)?!1:aoe.has(r)?!0:e&&e.strict?null:!!t}kp.FALSY_ENV_VALUES=soe;kp.TRUTHY_ENV_VALUES=aoe;kp.envToBool=S3e});var l1=c(c1=>{Object.defineProperty(c1,"__esModule",{value:!0});var coe=m("node:path"),A3e=b();function loe(t){return t.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}function R3e(t=process.argv[1]?A3e.dirname(process.argv[1]):process.cwd(),e=coe.sep==="\\"){let r=e?loe(t):t;return n=>{if(!n)return;let o=e?loe(n):n,{dir:i,base:s,ext:a}=coe.posix.parse(o);(a===".js"||a===".mjs"||a===".cjs")&&(s=s.slice(0,a.length*-1)),i||(i=".");let u=i.lastIndexOf("/node_modules");if(u>-1)return`${i.slice(u+14).replace(/\//g,".")}:${s}`;if(i.startsWith(r)){let l=i.slice(r.length+1).replace(/\//g,".");return l&&(l+=":"),l+=s,l}return s}}c1.createGetModuleFromFilename=R3e});var d1=c(yR=>{Object.defineProperty(yR,"__esModule",{value:!0});var Wp=b(),O3e=l1();function I3e(t){if(process.env.SENTRY_RELEASE)return process.env.SENTRY_RELEASE;if(Wp.GLOBAL_OBJ.SENTRY_RELEASE&&Wp.GLOBAL_OBJ.SENTRY_RELEASE.id)return Wp.GLOBAL_OBJ.SENTRY_RELEASE.id;let e=process.env.GITHUB_SHA||process.env.CI_MERGE_REQUEST_SOURCE_BRANCH_SHA||process.env.CI_BUILD_REF||process.env.CI_COMMIT_SHA||process.env.BITBUCKET_COMMIT,r=process.env.APPVEYOR_PULL_REQUEST_HEAD_COMMIT||process.env.APPVEYOR_REPO_COMMIT||process.env.CODEBUILD_RESOLVED_SOURCE_VERSION||process.env.AWS_COMMIT_ID||process.env.BUILD_SOURCEVERSION||process.env.GIT_CLONE_COMMIT_HASH||process.env.BUDDY_EXECUTION_REVISION||process.env.BUILDKITE_COMMIT||process.env.CIRCLE_SHA1||process.env.CIRRUS_CHANGE_IN_REPO||process.env.CF_REVISION||process.env.CM_COMMIT||process.env.CF_PAGES_COMMIT_SHA||process.env.DRONE_COMMIT_SHA||process.env.FC_GIT_COMMIT_SHA||process.env.HEROKU_TEST_RUN_COMMIT_VERSION||process.env.HEROKU_SLUG_COMMIT||process.env.RENDER_GIT_COMMIT||process.env.SEMAPHORE_GIT_SHA||process.env.TRAVIS_PULL_REQUEST_SHA||process.env.VERCEL_GIT_COMMIT_SHA||process.env.VERCEL_GITHUB_COMMIT_SHA||process.env.VERCEL_GITLAB_COMMIT_SHA||process.env.VERCEL_BITBUCKET_COMMIT_SHA||process.env.ZEIT_GITHUB_COMMIT_SHA||process.env.ZEIT_GITLAB_COMMIT_SHA||process.env.ZEIT_BITBUCKET_COMMIT_SHA,n=process.env.CI_COMMIT_ID||process.env.SOURCE_COMMIT||process.env.SOURCE_VERSION||process.env.GIT_COMMIT||process.env.COMMIT_REF||process.env.BUILD_VCS_NUMBER||process.env.CI_COMMIT_SHA;return e||r||n||t}var b3e=Wp.createStackParser(Wp.nodeStackLineParser(O3e.createGetModuleFromFilename()));yR.defaultStackParser=b3e;yR.getSentryRelease=I3e});var g1=c(f1=>{var{_nullishCoalesce:P3e,_optionalChain:y3e}=b();Object.defineProperty(f1,"__esModule",{value:!0});var v3e=m("node:os"),N3e=(y(),T(P)),p1=W(),doe=b(),poe=m("worker_threads"),C3e=On(),M3e=6e4,_1=class extends p1.ServerRuntimeClient{constructor(e){let r={...e,platform:"node",runtime:{name:"node",version:global.process.version},serverName:e.serverName||global.process.env.SENTRY_NAME||v3e.hostname()};p1.applySdkMetadata(r,"node"),doe.logger.log(`Initializing Sentry: process: ${process.pid}, thread: ${poe.isMainThread?"main":`worker-${poe.threadId}`}.`),super(r)}get tracer(){if(this._tracer)return this._tracer;let e="@sentry/node",r=p1.SDK_VERSION,n=N3e.trace.getTracer(e,r);return this._tracer=n,n}async flush(e){let r=this.traceProvider,n=y3e([r,"optionalAccess",o=>o.activeSpanProcessor]);return n&&await n.forceFlush(),this.getOptions().sendClientReports&&this._flushOutcomes(),super.flush(e)}close(e){return this._clientReportInterval&&clearInterval(this._clientReportInterval),this._clientReportOnExitFlushListener&&process.off("beforeExit",this._clientReportOnExitFlushListener),super.close(e)}startClientReportTracking(){let e=this.getOptions();e.sendClientReports&&(this._clientReportOnExitFlushListener=()=>{this._flushOutcomes()},this._clientReportInterval=setInterval(()=>{C3e.DEBUG_BUILD&&doe.logger.log("Flushing client reports based on interval."),this._flushOutcomes()},P3e(e.clientReportFlushInterval,()=>M3e)).unref(),process.on("beforeExit",this._clientReportOnExitFlushListener))}};f1.NodeClient=_1});var T1=c(ul=>{var{_optionalChain:L3e}=b();Object.defineProperty(ul,"__esModule",{value:!0});var D3e=m("module"),E1=(y(),T(P)),G3e=BN(),U3e=Vd(),h1=(Q(),T($)),x3e=W(),m1=uo(),ta=b(),w3e=Or(),V3e=IR(),B3e=QG(),q3e=Vu(),al=typeof document<"u"?document.currentScript:null;function j3e(t){t.getOptions().debug&&goe();let e=foe(t);t.traceProvider=e}function H3e(t){if(L3e([t,"optionalAccess",e=>e.onlyIncludeInstrumentedModules])){let{addHookMessagePort:e}=w3e.createAddHookMessageChannel();return{data:{addHookMessagePort:e,include:t.include||[]},transferList:[e]}}return{data:t}}function _oe(t){let[e=0,r=0]=process.versions.node.split(".").map(Number);if(e>=22||e===20&&r>=6||e===18&&r>=19){let n=typeof(typeof document>"u"?m("url").pathToFileURL(__filename).href:al&&al.tagName.toUpperCase()==="SCRIPT"&&al.src||new URL("sdk/initOtel.js",document.baseURI).href)<"u"?typeof document>"u"?m("url").pathToFileURL(__filename).href:al&&al.tagName.toUpperCase()==="SCRIPT"&&al.src||new URL("sdk/initOtel.js",document.baseURI).href:void 0;if(!ta.GLOBAL_OBJ._sentryEsmLoaderHookRegistered&&n)try{D3e.default.register("import-in-the-middle/hook.mjs",n,H3e(t)),ta.GLOBAL_OBJ._sentryEsmLoaderHookRegistered=!0}catch(o){ta.logger.warn("Failed to register ESM hook",o)}}else ta.consoleSandbox(()=>{console.warn('[Sentry] You are using Node.js in ESM mode ("import syntax"). The Sentry Node.js SDK is not compatible with ESM in Node.js versions before 18.19.0 or before 20.6.0. Please either build your application with CommonJS ("require() syntax"), or use version 7.x of the Sentry Node.js SDK.')})}function F3e(t={}){let{debug:e}=t;e&&(ta.logger.enable(),goe()),q3e.isCjs()||_oe(t.registerEsmLoaderHooks),k3e(t.integrations).forEach(r=>{r(),e&&ta.logger.log(`[Sentry] Preloaded ${r.id} instrumentation`)})}function k3e(t){let e=V3e.getOpenTelemetryInstrumentationToPreload();return t?e.filter(r=>t.includes(r.id)):e}function foe(t){let e=new U3e.BasicTracerProvider({sampler:new m1.SentrySampler(t),resource:new G3e.Resource({[h1.ATTR_SERVICE_NAME]:"node",[h1.SEMRESATTRS_SERVICE_NAMESPACE]:"sentry",[h1.ATTR_SERVICE_VERSION]:x3e.SDK_VERSION}),forceFlushTimeoutMillis:500});return e.addSpanProcessor(new m1.SentrySpanProcessor({timeout:t.getOptions().maxSpanWaitDuration})),e.register({propagator:new m1.SentryPropagator,contextManager:new B3e.SentryContextManager}),e}function goe(){let t=new Proxy(ta.logger,{get(e,r,n){return Reflect.get(e,r==="verbose"?"debug":r,n)}});E1.diag.disable(),E1.diag.setLogger(t,E1.DiagLogLevel.DEBUG)}ul.initOpenTelemetry=j3e;ul.maybeInitializeEsmLoader=_oe;ul.preloadOpenTelemetry=F3e;ul.setupOtel=foe});var boe=c(ra=>{Object.defineProperty(ra,"__esModule",{value:!0});var ar=W(),vR=uo(),yo=b(),moe=On(),W3e=TM(),Y3e=SM(),K3e=OM(),X3e=om(),Z3e=CM(),z3e=GM(),J3e=KC(),$3e=BM(),Q3e=jM(),e4e=KG(),Eoe=GG(),t4e=IR(),r4e=u1(),S1=Vu(),Toe=uoe(),Soe=d1(),n4e=g1(),hoe=T1();function o4e(){return S1.isCjs()?[z3e.modulesIntegration()]:[]}function Aoe(){return[ar.inboundFiltersIntegration(),ar.functionToStringIntegration(),ar.linkedErrorsIntegration(),ar.requestDataIntegration(),W3e.consoleIntegration(),X3e.httpIntegration(),J3e.nativeNodeFetchIntegration(),$3e.onUncaughtExceptionIntegration(),Q3e.onUnhandledRejectionIntegration(),K3e.contextLinesIntegration(),Z3e.localVariablesIntegration(),Y3e.nodeContextIntegration(),e4e.processThreadBreadcrumbIntegration(),...o4e()]}function Roe(t){return[...Aoe(),...i4e(t)?t4e.getAutoPerformanceIntegrations():[]]}function i4e(t){return ar.hasTracingEnabled(t)?t.enableTracing||t.tracesSampleRate!=null||"tracesSampler"in t:!1}function s4e(t={}){return Ooe(t,Roe)}function a4e(t={}){return Ooe(t,()=>[])}function Ooe(t={},e){let r=u4e(t,e);r.debug===!0&&(moe.DEBUG_BUILD?yo.logger.enable():yo.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),!S1.isCjs()&&r.registerEsmLoaderHooks!==!1&&hoe.maybeInitializeEsmLoader(r.registerEsmLoaderHooks===!0?void 0:r.registerEsmLoaderHooks),vR.setOpenTelemetryContextAsyncContextStrategy(),ar.getCurrentScope().update(r.initialScope),r.spotlight&&!r.integrations.some(({name:i})=>i===Eoe.INTEGRATION_NAME)&&r.integrations.push(Eoe.spotlightIntegration({sidecarUrl:typeof r.spotlight=="string"?r.spotlight:void 0}));let o=new n4e.NodeClient(r);return ar.getCurrentScope().setClient(o),o.init(),yo.logger.log(`Running in ${S1.isCjs()?"CommonJS":"ESM"} mode.`),r.autoSessionTracking&&p4e(),o.startClientReportTracking(),d4e(),r.skipOpenTelemetrySetup||(hoe.initOpenTelemetry(o),Ioe()),vR.enhanceDscWithOpenTelemetryRootSpanName(o),vR.setupEventContextTrace(o),o}function Ioe(){if(!moe.DEBUG_BUILD)return;let t=vR.openTelemetrySetupCheck(),e=["SentryContextManager","SentryPropagator"];ar.hasTracingEnabled()&&e.push("SentrySpanProcessor");for(let r of e)t.includes(r)||yo.logger.error(`You have to set up the ${r}. Without this, the OpenTelemetry & Sentry integration will not work properly.`);t.includes("SentrySampler")||yo.logger.warn("You have to set up the SentrySampler. Without this, the OpenTelemetry & Sentry integration may still work, but sample rates set for the Sentry SDK will not be respected. If you use a custom sampler, make sure to use `wrapSamplingDecision`.")}function u4e(t,e){let r=c4e(t.release),n=typeof r!="string"?!1:t.autoSessionTracking===void 0?!0:t.autoSessionTracking;if(t.spotlight==null){let l=Toe.envToBool(process.env.SENTRY_SPOTLIGHT,{strict:!0});l==null?t.spotlight=process.env.SENTRY_SPOTLIGHT:t.spotlight=l}let o=l4e(t.tracesSampleRate),i=yo.dropUndefinedKeys({transport:r4e.makeNodeTransport,dsn:process.env.SENTRY_DSN,environment:process.env.SENTRY_ENVIRONMENT,sendClientReports:!0}),s=yo.dropUndefinedKeys({release:r,autoSessionTracking:n,tracesSampleRate:o}),a={...i,...t,...s};return t.defaultIntegrations===void 0&&(t.defaultIntegrations=e(a)),{...a,stackParser:yo.stackParserFromStackParserOptions(t.stackParser||Soe.defaultStackParser),integrations:ar.getIntegrationsToSetup({defaultIntegrations:t.defaultIntegrations,integrations:t.integrations})}}function c4e(t){if(t!==void 0)return t;let e=Soe.getSentryRelease();if(e!==void 0)return e}function l4e(t){if(t!==void 0)return t;let e=process.env.SENTRY_TRACES_SAMPLE_RATE;if(!e)return;let r=parseFloat(e);return isFinite(r)?r:void 0}function d4e(){if(Toe.envToBool(process.env.SENTRY_USE_ENVIRONMENT)!==!1){let t=process.env.SENTRY_TRACE,e=process.env.SENTRY_BAGGAGE,r=yo.propagationContextFromHeaders(t,e);ar.getCurrentScope().setPropagationContext(r)}}function p4e(){let t=ar.getClient();t&&t.getOptions().autoSessionTracking&&t.initSessionFlusher(),ar.startSession(),process.on("beforeExit",()=>{let e=ar.getIsolationScope().getSession();e&&e.status!=="ok"&&ar.endSession()})}ra.getDefaultIntegrations=Roe;ra.getDefaultIntegrationsWithoutPerformance=Aoe;ra.init=s4e;ra.initWithoutDefaultIntegrations=a4e;ra.validateOpenTelemetrySetup=Ioe});var NR=c(A1=>{Object.defineProperty(A1,"__esModule",{value:!0});var _4e=[["january","1"],["february","2"],["march","3"],["april","4"],["may","5"],["june","6"],["july","7"],["august","8"],["september","9"],["october","10"],["november","11"],["december","12"],["jan","1"],["feb","2"],["mar","3"],["apr","4"],["may","5"],["jun","6"],["jul","7"],["aug","8"],["sep","9"],["oct","10"],["nov","11"],["dec","12"],["sunday","0"],["monday","1"],["tuesday","2"],["wednesday","3"],["thursday","4"],["friday","5"],["saturday","6"],["sun","0"],["mon","1"],["tue","2"],["wed","3"],["thu","4"],["fri","5"],["sat","6"]];function f4e(t){return _4e.reduce((e,[r,n])=>e.replace(new RegExp(r,"gi"),n),t)}A1.replaceCronNames=f4e});var voe=c(R1=>{Object.defineProperty(R1,"__esModule",{value:!0});var CR=W(),Poe=NR(),yoe="Automatic instrumentation of CronJob only supports crontab string";function g4e(t,e){let r=!1;return new Proxy(t,{construct(n,o){let[i,s,a,u,l,...d]=o;if(typeof i!="string")throw new Error(yoe);if(r)throw new Error(`A job named '${e}' has already been scheduled`);r=!0;let p=Poe.replaceCronNames(i);async function _(f,g){return CR.withMonitor(e,async()=>{try{await s(f,g)}catch(E){throw CR.captureException(E),E}},{schedule:{type:"crontab",value:p},timezone:l||void 0})}return new n(i,_,a,u,l,...d)},get(n,o){return o==="from"?i=>{let{cronTime:s,onTick:a,timeZone:u}=i;if(typeof s!="string")throw new Error(yoe);if(r)throw new Error(`A job named '${e}' has already been scheduled`);r=!0;let l=Poe.replaceCronNames(s);return i.onTick=async(d,p)=>CR.withMonitor(e,async()=>{try{await a(d,p)}catch(_){throw CR.captureException(_),_}},{schedule:{type:"crontab",value:l},timezone:u||void 0}),n.from(i)}:n[o]}})}R1.instrumentCron=g4e});var Moe=c(O1=>{var{_optionalChain:Noe}=b();Object.defineProperty(O1,"__esModule",{value:!0});var Coe=W(),E4e=NR();function h4e(t){return new Proxy(t,{get(e,r){return r==="schedule"&&e.schedule?new Proxy(e.schedule,{apply(n,o,i){let[s,a,u]=i;if(!Noe([u,"optionalAccess",d=>d.name]))throw new Error('Missing "name" for scheduled job. A name is required for Sentry check-in monitoring.');async function l(){return Coe.withMonitor(u.name,async()=>{try{return await a()}catch(d){throw Coe.captureException(d),d}},{schedule:{type:"crontab",value:E4e.replaceCronNames(s)},timezone:Noe([u,"optionalAccess",d=>d.timezone])})}return n.apply(o,[s,l,u])}}):e[r]}})}O1.instrumentNodeCron=h4e});var Loe=c(I1=>{var{_optionalChain:m4e}=b();Object.defineProperty(I1,"__esModule",{value:!0});var T4e=W(),S4e=NR();function A4e(t){return new Proxy(t,{get(e,r){return r==="scheduleJob"?new Proxy(e.scheduleJob,{apply(n,o,i){let[s,a,u]=i;if(typeof s!="string"||typeof a!="string"||typeof u!="function")throw new Error("Automatic instrumentation of 'node-schedule' requires the first parameter of 'scheduleJob' to be a job name string and the second parameter to be a crontab string");let l=s,d=a;async function p(){return T4e.withMonitor(l,async()=>{await m4e([u,"optionalCall",_=>_()])},{schedule:{type:"crontab",value:S4e.replaceCronNames(d)}})}return n.apply(o,[l,d,p])}}):e[r]}})}I1.instrumentNodeSchedule=A4e});var Doe=c(b1=>{Object.defineProperty(b1,"__esModule",{value:!0});var R4e=voe(),O4e=Moe(),I4e=Loe(),b4e={instrumentCron:R4e.instrumentCron,instrumentNodeCron:O4e.instrumentNodeCron,instrumentNodeSchedule:I4e.instrumentNodeSchedule};b1.cron=b4e});var joe=c(R=>{Object.defineProperty(R,"__esModule",{value:!0});var P4e=om(),y4e=KC(),v4e=yJ(),N4e=TM(),C4e=SM(),M4e=OM(),L4e=CM(),D4e=GM(),G4e=BM(),U4e=jM(),x4e=u$(),P1=EL(),Goe=qL(),w4e=d0(),V4e=L0(),B4e=G0(),q4e=tD(),j4e=iD(),H4e=uD(),F4e=pD(),k4e=hD(),Uoe=ID(),W4e=CD(),Y4e=Jte(),xoe=sG(),woe=lG(),Voe=DG(),K4e=GG(),X4e=VG(),Z4e=Sne(),z4e=WG(),J4e=KG(),$4e=QG(),Q4e=Pe(),Yp=boe(),Boe=T1(),eJe=IR(),qoe=d1(),tJe=l1(),rJe=u1(),nJe=g1(),oJe=Doe(),y1=b(),v1=uo(),x=W();R.httpIntegration=P4e.httpIntegration;R.nativeNodeFetchIntegration=y4e.nativeNodeFetchIntegration;R.fsIntegration=v4e.fsIntegration;R.consoleIntegration=N4e.consoleIntegration;R.nodeContextIntegration=C4e.nodeContextIntegration;R.contextLinesIntegration=M4e.contextLinesIntegration;R.localVariablesIntegration=L4e.localVariablesIntegration;R.modulesIntegration=D4e.modulesIntegration;R.onUncaughtExceptionIntegration=G4e.onUncaughtExceptionIntegration;R.onUnhandledRejectionIntegration=U4e.onUnhandledRejectionIntegration;R.anrIntegration=x4e.anrIntegration;R.expressErrorHandler=P1.expressErrorHandler;R.expressIntegration=P1.expressIntegration;R.setupExpressErrorHandler=P1.setupExpressErrorHandler;R.fastifyIntegration=Goe.fastifyIntegration;R.setupFastifyErrorHandler=Goe.setupFastifyErrorHandler;R.graphqlIntegration=w4e.graphqlIntegration;R.kafkaIntegration=V4e.kafkaIntegration;R.lruMemoizerIntegration=B4e.lruMemoizerIntegration;R.mongoIntegration=q4e.mongoIntegration;R.mongooseIntegration=j4e.mongooseIntegration;R.mysqlIntegration=H4e.mysqlIntegration;R.mysql2Integration=F4e.mysql2Integration;R.redisIntegration=k4e.redisIntegration;R.nestIntegration=Uoe.nestIntegration;R.setupNestErrorHandler=Uoe.setupNestErrorHandler;R.postgresIntegration=W4e.postgresIntegration;R.prismaIntegration=Y4e.prismaIntegration;R.hapiIntegration=xoe.hapiIntegration;R.setupHapiErrorHandler=xoe.setupHapiErrorHandler;R.koaIntegration=woe.koaIntegration;R.setupKoaErrorHandler=woe.setupKoaErrorHandler;R.connectIntegration=Voe.connectIntegration;R.setupConnectErrorHandler=Voe.setupConnectErrorHandler;R.spotlightIntegration=K4e.spotlightIntegration;R.genericPoolIntegration=X4e.genericPoolIntegration;R.dataloaderIntegration=Z4e.dataloaderIntegration;R.amqplibIntegration=z4e.amqplibIntegration;R.processThreadBreadcrumbIntegration=J4e.processThreadBreadcrumbIntegration;R.SentryContextManager=$4e.SentryContextManager;R.generateInstrumentOnce=Q4e.generateInstrumentOnce;R.getDefaultIntegrations=Yp.getDefaultIntegrations;R.getDefaultIntegrationsWithoutPerformance=Yp.getDefaultIntegrationsWithoutPerformance;R.init=Yp.init;R.initWithoutDefaultIntegrations=Yp.initWithoutDefaultIntegrations;R.validateOpenTelemetrySetup=Yp.validateOpenTelemetrySetup;R.initOpenTelemetry=Boe.initOpenTelemetry;R.preloadOpenTelemetry=Boe.preloadOpenTelemetry;R.getAutoPerformanceIntegrations=eJe.getAutoPerformanceIntegrations;R.defaultStackParser=qoe.defaultStackParser;R.getSentryRelease=qoe.getSentryRelease;R.createGetModuleFromFilename=tJe.createGetModuleFromFilename;R.makeNodeTransport=rJe.makeNodeTransport;R.NodeClient=nJe.NodeClient;R.cron=oJe.cron;R.DEFAULT_USER_INCLUDES=y1.DEFAULT_USER_INCLUDES;R.addRequestDataToEvent=y1.addRequestDataToEvent;R.extractRequestData=y1.extractRequestData;R.addOpenTelemetryInstrumentation=v1.addOpenTelemetryInstrumentation;R.continueTrace=v1.continueTrace;R.setNodeAsyncContextStrategy=v1.setOpenTelemetryContextAsyncContextStrategy;R.SDK_VERSION=x.SDK_VERSION;R.SEMANTIC_ATTRIBUTE_SENTRY_OP=x.SEMANTIC_ATTRIBUTE_SENTRY_OP;R.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;R.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=x.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;R.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;R.Scope=x.Scope;R.addBreadcrumb=x.addBreadcrumb;R.addEventProcessor=x.addEventProcessor;R.addIntegration=x.addIntegration;R.captureCheckIn=x.captureCheckIn;R.captureConsoleIntegration=x.captureConsoleIntegration;R.captureEvent=x.captureEvent;R.captureException=x.captureException;R.captureFeedback=x.captureFeedback;R.captureMessage=x.captureMessage;R.captureSession=x.captureSession;R.close=x.close;R.createTransport=x.createTransport;R.debugIntegration=x.debugIntegration;R.dedupeIntegration=x.dedupeIntegration;R.endSession=x.endSession;R.extraErrorDataIntegration=x.extraErrorDataIntegration;R.flush=x.flush;R.functionToStringIntegration=x.functionToStringIntegration;R.getActiveSpan=x.getActiveSpan;R.getClient=x.getClient;R.getCurrentHub=x.getCurrentHub;R.getCurrentScope=x.getCurrentScope;R.getGlobalScope=x.getGlobalScope;R.getIsolationScope=x.getIsolationScope;R.getRootSpan=x.getRootSpan;R.getSpanDescendants=x.getSpanDescendants;R.getSpanStatusFromHttpCode=x.getSpanStatusFromHttpCode;R.getTraceData=x.getTraceData;R.getTraceMetaTags=x.getTraceMetaTags;R.inboundFiltersIntegration=x.inboundFiltersIntegration;R.isInitialized=x.isInitialized;R.lastEventId=x.lastEventId;R.linkedErrorsIntegration=x.linkedErrorsIntegration;R.metrics=x.metricsDefault;R.parameterize=x.parameterize;R.profiler=x.profiler;R.requestDataIntegration=x.requestDataIntegration;R.rewriteFramesIntegration=x.rewriteFramesIntegration;R.sessionTimingIntegration=x.sessionTimingIntegration;R.setContext=x.setContext;R.setCurrentClient=x.setCurrentClient;R.setExtra=x.setExtra;R.setExtras=x.setExtras;R.setHttpStatus=x.setHttpStatus;R.setMeasurement=x.setMeasurement;R.setTag=x.setTag;R.setTags=x.setTags;R.setUser=x.setUser;R.spanToBaggageHeader=x.spanToBaggageHeader;R.spanToJSON=x.spanToJSON;R.spanToTraceHeader=x.spanToTraceHeader;R.startInactiveSpan=x.startInactiveSpan;R.startNewTrace=x.startNewTrace;R.startSession=x.startSession;R.startSpan=x.startSpan;R.startSpanManual=x.startSpanManual;R.suppressTracing=x.suppressTracing;R.trpcMiddleware=x.trpcMiddleware;R.withActiveSpan=x.withActiveSpan;R.withIsolationScope=x.withIsolationScope;R.withMonitor=x.withMonitor;R.withScope=x.withScope;R.zodErrorsIntegration=x.zodErrorsIntegration});var sJe=c((Cdt,Hoe)=>{var iJe=m("node:os");process.env.HOME||(process.env.HOME=iJe.tmpdir());var cl=joe(),Kp=m("homey"),N1=class t{_capturedMessages=[];_capturedExceptions=[];constructor({homey:e,options:r}){if(typeof e>"u")return t._error("Error: missing `homey` constructor parameter");if(!Kp.env)return t._error("Error: could not access `Homey.env`");if(typeof Kp.env.HOMEY_LOG_URL!="string")return t._error("Error: expected `HOMEY_LOG_URL` env variable, homey-log is disabled");let n=process.env.DEBUG==="1"&&!t._isLogForced();n&&t._log("App is running in debug mode, not enabling Sentry logging"),this._manifest=Kp.manifest,this._homeyVersion=e.version,this._managerCloud=e.cloud,this._homeyPlatform=e.platform,this._homeyPlatformVersion=e.platformVersion,this.init(Kp.env.HOMEY_LOG_URL,{enabled:!n,...r})}init(e,r){return cl.initWithoutDefaultIntegrations({dsn:e,integrations:[...cl.getDefaultIntegrationsWithoutPerformance()],...r}),this.setTags({appId:this._manifest.id,appVersion:this._manifest.version,homeyVersion:this._homeyVersion,homeyPlatform:this._homeyPlatform,homeyPlatformVersion:this._homeyPlatformVersion}),this._managerCloud.getHomeyId().then(n=>this.setTags({homeyId:n})).catch(n=>t._error("Error: could not get `homeyId`",n)),t._log(`App ${this._manifest.id} v${this._manifest.version} logging on Homey v${this._homeyVersion}...`),this}setTags(e){return cl.setTags(e),this}setUser(e){return cl.setUser(e),this}async captureMessage(e){if(t._log("captureMessage:",e),this._capturedMessages.indexOf(e)>-1){t._log("Prevented sending a duplicate message");return}return this._capturedMessages.push(e),new Promise((r,n)=>{try{r(cl.captureMessage(e))}catch(o){n(o)}})}async captureException(e){if(t._log("captureException:",e),this._capturedExceptions.indexOf(e)>-1){t._log("Prevented sending a duplicate log");return}return this._capturedExceptions.push(e),new Promise((r,n)=>{try{r(cl.captureException(e))}catch(o){n(o)}})}static _log(){console.log.bind(null,t._logTime(),"[homey-log]").apply(null,arguments)}static _error(){console.error.bind(null,t._logTime(),"[homey-log]").apply(null,arguments)}static _logTime(){return`\x1B[35m${new Date().toISOString()}\x1B[0m`}static _isLogForced(){switch(Kp.env.HOMEY_LOG_FORCE){case"1":case"true":return!0;default:return!1}}};Hoe.exports={Log:N1}});export default sJe();