1var u2=Object.defineProperty;var l2=(we,Le,Et)=>Le in we?u2(we,Le,{enumerable:!0,configurable:!0,writable:!0,value:Et}):we[Le]=Et;var b=(we,Le,Et)=>l2(we,typeof Le!="symbol"?Le+"":Le,Et);import{Q as $a,g as d2}from"./DuXssMoU.js";function p2(we,Le){for(var Et=0;Et<Le.length;Et++){const se=Le[Et];if(typeof se!="string"&&!Array.isArray(se)){for(const qe in se)if(qe!=="default"&&!(qe in we)){const Xn=Object.getOwnPropertyDescriptor(se,qe);Xn&&Object.defineProperty(we,qe,Xn.get?Xn:{enumerable:!0,get:()=>se[qe]})}}}return Object.freeze(Object.defineProperty(we,Symbol.toStringTag,{value:"Module"}))}var za={exports:{}},h2=za.exports,AO;function f2(){return AO||(AO=1,function(we,Le){(function(Et,se){we.exports=se()})(h2,function(){var Et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof $a<"u"?$a:typeof self<"u"?self:{};function se(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function qe(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){if(this instanceof r){var o=[null];return o.push.apply(o,arguments),new(Function.bind.apply(e,o))}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var Xn={},Kd={},Wa=function(t,e){return Wa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Wa(t,e)};function Jd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Wa(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ji=function(){return ji=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ji.apply(this,arguments)};function Xd(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function Zd(t,e,n,r){var o,i=arguments.length,s=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function Qd(t,e){return function(n,r){e(n,r,t)}}function tp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function ep(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(c){try{u(r.next(c))}catch(l){i(l)}}function a(c){try{u(r.throw(c))}catch(l){i(l)}}function u(c){var l;c.done?o(c.value):(l=c.value,l instanceof n?l:new n(function(d){d(l)})).then(s,a)}u((r=r.apply(t,e||[])).next())})}function np(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(u){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!((o=o.length>0&&o[o.length-1])||l[0]!==6&&l[0]!==2)){s=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){s.label=l[1];break}if(l[0]===6&&s.label<o[1]){s.label=o[1],o=l;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(l);break}o[2]&&s.ops.pop(),s.trys.pop();continue}l=e.call(t,s)}catch(d){l=[6,d],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([u,c])}}}var Hi=Object.create?function(t,e,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]};function rp(t,e){for(var n in t)n==="default"||Object.prototype.hasOwnProperty.call(e,n)||Hi(e,t,n)}function qa(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ka(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function op(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Ka(arguments[e]));return t}function ip(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}function sp(t,e,n){if(n||arguments.length===2)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function Nr(t){return this instanceof Nr?(this.v=t,this):new Nr(t)}function ap(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(d){o[d]&&(r[d]=function(p){return new Promise(function(h,_){i.push([d,p,h,_])>1||a(d,p)})})}function a(d,p){try{(function(h){h.value instanceof Nr?Promise.resolve(h.value.v).then(u,c):l(i[0][2],h)})(o[d](p))}catch(h){l(i[0][3],h)}}function u(d){a("next",d)}function c(d){a("throw",d)}function l(d,p){d(p),i.shift(),i.length&&a(i[0][0],i[0][1])}}function cp(t){var e,n;return e={},r("next"),r("throw",function(o){throw o}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(o,i){e[o]=t[o]?function(s){return(n=!n)?{value:Nr(t[o](s)),done:!1}:i?i(s):s}:i}}function up(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=qa(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(s,a){(function(u,c,l,d){Promise.resolve(d).then(function(p){u({value:p,done:l})},c)})(s,a,(i=t[o](i)).done,i.value)})}}}function lp(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var RO=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function dp(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Hi(e,t,n);return RO(e,t),e}function pp(t){return t&&t.__esModule?t:{default:t}}function hp(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)}function fp(t,e,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(t,n):o?o.value=n:e.set(t,n),n}function _p(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function Ep(t,e,n){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var OO=typeof SuppressedError=="function"?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function mp(t){function e(n){t.error=t.hasError?new OO(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}return function n(){for(;t.stack.length;){var r=t.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,function(i){return e(i),n()})}catch(i){e(i)}}if(t.hasError)throw t.error}()}var NO={__extends:Jd,__assign:ji,__rest:Xd,__decorate:Zd,__param:Qd,__metadata:tp,__awaiter:ep,__generator:np,__createBinding:Hi,__exportStar:rp,__values:qa,__read:Ka,__spread:op,__spreadArrays:ip,__spreadArray:sp,__await:Nr,__asyncGenerator:ap,__asyncDelegator:cp,__asyncValues:up,__makeTemplateOb
1ject:lp,__importStar:dp,__importDefault:pp,__classPrivateFieldGet:hp,__classPrivateFieldSet:fp,__classPrivateFieldIn:_p,__addDisposableResource:Ep,__disposeResources:mp},IO=Object.freeze({__proto__:null,__extends:Jd,get __assign(){return ji},__rest:Xd,__decorate:Zd,__param:Qd,__esDecorate:function(t,e,n,r,o,i){function s(E){if(E!==void 0&&typeof E!="function")throw new TypeError("Function expected");return E}for(var a,u=r.kind,c=u==="getter"?"get":u==="setter"?"set":"value",l=!e&&t?r.static?t:t.prototype:null,d=e||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),p=!1,h=n.length-1;h>=0;h--){var _={};for(var f in r)_[f]=f==="access"?{}:r[f];for(var f in r.access)_.access[f]=r.access[f];_.addInitializer=function(E){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(E||null))};var m=(0,n[h])(u==="accessor"?{get:d.get,set:d.set}:d[c],_);if(u==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(a=s(m.get))&&(d.get=a),(a=s(m.set))&&(d.set=a),(a=s(m.init))&&o.unshift(a)}else(a=s(m))&&(u==="field"?o.unshift(a):d[c]=a)}l&&Object.defineProperty(l,r.name,d),p=!0},__runInitializers:function(t,e,n){for(var r=arguments.length>2,o=0;o<e.length;o++)n=r?e[o].call(t,n):e[o].call(t);return r?n:void 0},__propKey:function(t){return typeof t=="symbol"?t:"".concat(t)},__setFunctionName:function(t,e,n){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})},__metadata:tp,__awaiter:ep,__generator:np,__createBinding:Hi,__exportStar:rp,__values:qa,__read:Ka,__spread:op,__spreadArrays:ip,__spreadArray:sp,__await:Nr,__asyncGenerator:ap,__asyncDelegator:cp,__asyncValues:up,__makeTemplateOb
1ject:lp,__importStar:dp,__importDefault:pp,__classPrivateFieldGet:hp,__classPrivateFieldSet:fp,__classPrivateFieldIn:_p,__addDisposableResource:Ep,__disposeResources:mp,default:NO}),Yi=qe(IO),gp={};const Zn="1.9.1",Sp=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,CO=function(t){const e=new Set([t]),n=new Set,r=t.match(Sp);if(!r)return()=>!1;const o=+r[1],i=+r[2],s=+r[3];if(r[4]!=null)return function(c){return c===t};function a(c){return n.add(c),!1}function u(c){return e.add(c),!0}return function(c){if(e.has(c))return!0;if(n.has(c))return!1;const l=c.match(Sp);if(!l)return a(c);const d=+l[1],p=+l[2],h=+l[3];return l[4]!=null||o!==d?a(c):o===0?i===p&&s<=h?u(c):a(c):i<=p?u(c):a(c)}}(Zn),MO=Zn.split(".")[0],Ro=Symbol.for(`opentelemetry.js.api.${MO}`),Oo=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof $a=="object"?$a:{};function No(t,e,n,r=!1){var o;const i=Oo[Ro]=(o=Oo[Ro])!==null&&o!==void 0?o:{version:Zn};if(!r&&i[t]){const s=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${t}`);return n.error(s.stack||s.message),!1}if(i.version!==Zn){const s=new Error(`@opentelemetry/api: Registration of version v${i.version} for ${t} does not match previously registered API v${Zn}`);return n.error(s.stack||s.message),!1}return i[t]=e,n.debug(`@opentelemetry/api: Registered a global for ${t} v${Zn}.`),!0}function Qn(t){var e,n;const r=(e=Oo[Ro])===null||e===void 0?void 0:e.version;if(r&&CO(r))return(n=Oo[Ro])===null||n===void 0?void 0:n[t]}function Io(t,e){e.debug(`@opentelemetry/api: Unregistering a global for ${t} v${Zn}.`);const n=Oo[Ro];n&&delete n[t]}class wO{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return Co("debug",this._namespace,e)}error(...e){return Co("error",this._namespace,e)}info(...e){return Co("info",this._namespace,e)}warn(...e){return Co("warn",this._namespace,e)}verbose(...e){return Co("verbose",this._namespace,e)}}function Co(t,e,n){const r=Qn("diag");if(r)return r[t](e,...n)}var Gt;(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"})(Gt||(Gt={}));class me{static instance(){return this._instance||(this._instance=new me),this._instance}constructor(){function e(r){return function(...o){const i=Qn("diag");if(i)return i[r](...o)}}const n=this;n.setLogger=(r,o={logLevel:Gt.INFO})=>{var i,s,a;if(r===n){const l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((i=l.stack)!==null&&i!==void 0?i:l.message),!1}typeof o=="number"&&(o={logLevel:o});const u=Qn("diag"),c=function(l,d){function p(h,_){const f=d[h];return typeof f=="function"&&l>=_?f.bind(d):function(){}}return l<Gt.NONE?l=Gt.NONE:l>Gt.ALL&&(l=Gt.ALL),d=d||{},{error:p("error",Gt.ERROR),warn:p("warn",Gt.WARN),info:p("info",Gt.INFO),debug:p("debug",Gt.DEBUG),verbose:p("verbose",Gt.VERBOSE)}}((s=o.logLevel)!==null&&s!==void 0?s:Gt.INFO,r);if(u&&!o.suppressOverrideMessage){const l=(a=new Error().stack)!==null&&a!==void 0?a:"<failed to generate stacktrace>";u.warn(`Current logger will be overwritten from ${l}
1`),c.warn(`Current logger will overwrite one already registered from ${l}`)}return No("diag",c,n,!0)},n.disable=()=>{Io("diag",n)},n.createComponentLogger=r=>new wO(r),n.verbose=e("verbose"),n.debug=e("debug"),n.info=e("info"),n.warn=e("warn"),n.error=e("error")}}class Ir{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){const n=this._entries.get(e);if(n)return Object.assign({},n)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(e,n){const r=new Ir(this._entries);return r._entries.set(e,n),r}removeEntry(e){const n=new Ir(this._entries);return n._entries.delete(e),n}removeEntries(...e){const n=new Ir(this._entries);for(const r of e)n._entries.delete(r);return n}clear(){return new Ir}}const LO=Symbol("BaggageEntryMetadata"),DO=me.instance();function PO(t={}){return new Ir(new Map(Object.entries(t)))}function Tp(t){return typeof t!="string"&&(DO.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:LO,toString:()=>t}}function $i(t){return Symbol.for(t)}class zi{constructor(e){const n=this;n._currentContext=e?new Map(e):new Map,n.getValue=r=>n._currentContext.get(r),n.setValue=(r,o)=>{const i=new zi(n._currentContext);return i._currentContext.set(r,o),i},n.deleteValue=r=>{const o=new zi(n._currentContext);return o._currentContext.delete(r),o}}}const Jt=new zi,Ja=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Xa={};if(typeof console<"u"){const t=["error","warn","info","debug","trace","log"];for(const e of t)typeof console[e]=="function"&&(Xa[e]=console[e])}class Wi{}class Za{addCallback(e){}removeCallback(e){}}const vp=new class{constructor(){}createGauge(t,e){return xO}createHistogram(t,e){return kO}createCounter(t,e){return UO}createUpDownCounter(t,e){return BO}createObservableGauge(t,e){return FO}createObservableCounter(t,e){return VO}createObservableUpDownCounter(t,e){return GO}addBatchObservableCallback(t,e){}removeBatchObservableCallback(t){}},UO=new class extends Wi{add(t,e){}},xO=new class extends Wi{record(t,e){}},kO=new class extends Wi{record(t,e){}},BO=new class extends Wi{add(t,e){}},VO=new class extends Za{},FO=new class extends Za{},GO=new class extends Za{};function yp(){return vp}var Qa;(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(Qa||(Qa={}));const Ap={get(t,e){if(t!=null)return t[e]},keys:t=>t==null?[]:Object.keys(t)},bp={set(t,e,n){t!=null&&(t[e]=n)}},tc="context",jO=new class{active(){return Jt}with(t,e,n,...r){return e.call(n,...r)}bind(t,e){return e}enable(){return this}disable(){return this}};class Cr{constructor(){}static getInstance(){return this._instance||(this._instance=new Cr),this._instance}setGlobalContextManager(e){return No(tc,e,me.instance())}active(){return this._getContextManager().active()}with(e,n,r,...o){return this._getContextManager().with(e,n,r,...o)}bind(e,n){return this._getContextManager().bind(e,n)}_getContextManager(){return Qn(tc)||jO}disable(){this._getContextManager().disable(),Io(tc,me.instance())}}var De;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(De||(De={}));const ec="0000000000000000",nc="00000000000000000000000000000000",rc={traceId:nc,spanId:ec,traceFlags:De.NONE};class Mo{constructor(e=rc){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,n){return this}setAttributes(e){return this}addEvent(e,n){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,n){}}const oc=$i("OpenTelemetry Context Key SPAN");function ic(t){return t.getValue(oc)||void 0}function HO(){return ic(Cr.getInstance().active())}function sc(t,e){return t.setValue(oc,e)}function YO(t){return t.deleteValue(oc)}function $O(t,e){return sc(t,new Mo(e))}function Rp(t){var e;return(e=ic(t))===null||e===void 0?void 0:e.spanContext()}const qi=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function Op(t,e){if(typeof t!="string"||t.length!==e)return!1;let n=0;for(let r=0;r<t.length;r+=4)n+=(0|qi[t.charCodeAt(r)])+(0|qi[t.charCodeAt(r+1)])+(0|qi[t.charCodeAt(r+2)])+(0|qi[t.charCodeAt(r+3)]);return n===e}function ac(t){return Op(t,32)&&t!==nc}function Np(t){return Op(t,16)&&t!==ec}function wo(t){return ac(t.traceId)&&Np(t.spanId)}function zO(t){return new Mo(t)}const cc=Cr.getInstance();
1class Ip{startSpan(e,n,r=cc.active()){if(n!=null&&n.root)return new Mo;const o=r&&Rp(r);return(i=o)!==null&&typeof i=="object"&&"spanId"in i&&typeof i.spanId=="string"&&"traceId"in i&&typeof i.traceId=="string"&&"traceFlags"in i&&typeof i.traceFlags=="number"&&wo(o)?new Mo(o):new Mo;var i}startActiveSpan(e,n,r,o){let i,s,a;if(arguments.length<2)return;arguments.length===2?a=n:arguments.length===3?(i=n,a=r):(i=n,s=r,a=o);const u=s??cc.active(),c=this.startSpan(e,i,u),l=sc(u,c);return cc.with(l,a,void 0,c)}}const WO=new Ip;class Cp{constructor(e,n,r,o){this._provider=e,this.name=n,this.version=r,this.options=o}startSpan(e,n,r){return this._getTracer().startSpan(e,n,r)}startActiveSpan(e,n,r,o){const i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;const e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):WO}}const qO=new class{getTracer(t,e,n){return new Ip}};class uc{getTracer(e,n,r){var o;return(o=this.getDelegateTracer(e,n,r))!==null&&o!==void 0?o:new Cp(this,e,n,r)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:qO}setDelegate(e){this._delegate=e}getDelegateTracer(e,n,r){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(e,n,r)}}var Lo,Xt,Pe;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Lo||(Lo={})),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"}(Xt||(Xt={})),function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"}(Pe||(Pe={}));const lc="[_0-9a-z-*/]",KO=new RegExp(`^(?:${`[a-z]${lc}{0,255}`}|${`[a-z0-9]${lc}{0,240}@[a-z]${lc}{0,13}`})$`),JO=/^[ -~]{0,255}[!-~]$/,XO=/,|=/;class dc{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,n){const r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,n),r}unset(e){const n=this._clone();return n._internalState.delete(e),n}get(e){return this._internalState.get(e)}serialize(){return Array.from(this._internalState.keys()).reduceRight((e,n)=>(e.push(n+"="+this.get(n)),e),[]).join(",")}_parse(e){e.length>512||(this._internalState=e.split(",").reduceRight((n,r)=>{const o=r.trim(),i=o.indexOf("=");if(i!==-1){const s=o.slice(0,i),a=o.slice(i+1,r.length);(function(u){return KO.test(u)})(s)&&function(u){return JO.test(u)&&!XO.test(u)}(a)&&n.set(s,a)}return n},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new dc;return e._internalState=new Map(this._internalState),e}}const H=Cr.getInstance(),F=me.instance(),ZO=new class{getMeter(t,e,n){return vp}},pc="metrics";class hc{constructor(){}static getInstance(){return this._instance||(this._instance=new hc),this._instance}setGlobalMeterProvider(e){return No(pc,e,me.instance())}getMeterProvider(){return Qn(pc)||ZO}getMeter(e,n,r){return this.getMeterProvider().getMeter(e,n,r)}disable(){Io(pc,me.instance())}}const Ki=hc.getInstance(),fc=$i("OpenTelemetry Baggage Key");function Mp(t){return t.getValue(fc)||void 0}function QO(){return Mp(Cr.getInstance().active())}function tN(t,e){return t.setValue(fc,e)}function eN(t){return t.deleteValue(fc)}const _c="propagation",nN=new class{inject(t,e){}extract(t,e){return t}fields(){return[]}};class Ec{constructor(){this.createBaggage=PO,this.getBaggage=Mp,this.getActiveBaggage=QO,this.setBaggage=tN,this.deleteBaggage=eN}static getInstance(){return this._instance||(this._instance=new Ec),this._instance}setGlobalPropagator(e){return No(_c,e,me.instance())}inject(e,n,r=bp){return this._getGlobalPropagator().inject(e,n,r)}extract(e,n,r=Ap){return this._getGlobalPropagator().extract(e,n,r)}fields(){return this._getGlobalPropagator().fields()}disable(){Io(_c,me.instance())}_getGlobalPropagator(){return Qn(_c)||nN}}const Zt=Ec.getInstance(),mc="trace";class gc{constructor(){this._proxyTracerProvider=new uc,this.wrapSpanContext=zO,this.isSpanContextValid=wo,this.deleteSpan=YO,this.get
1Span=ic,this.getActiveSpan=HO,this.getSpanContext=Rp,this.setSpan=sc,this.setSpanContext=$O}static getInstance(){return this._instance||(this._instance=new gc),this._instance}setGlobalTracerProvider(e){const n=No(mc,this._proxyTracerProvider,me.instance());return n&&this._proxyTracerProvider.setDelegate(e),n}getTracerProvider(){return Qn(mc)||this._proxyTracerProvider}getTracer(e,n){return this.getTracerProvider().getTracer(e,n)}disable(){Io(mc,me.instance()),this._proxyTracerProvider=new uc}}const Q=gc.getInstance();var wp,Lp={context:H,diag:F,metrics:Ki,propagation:Zt,trace:Q},rN=Object.freeze({__proto__:null,context:H,diag:F,metrics:Ki,propagation:Zt,trace:Q,default:Lp,baggageEntryMetadataFromString:Tp,createContextKey:$i,ROOT_CONTEXT:Jt,DiagConsoleLogger:class{constructor(){function t(e){return function(...n){let r=Xa[e];if(typeof r!="function"&&(r=Xa.log),typeof r!="function"&&console&&(r=console[e],typeof r!="function"&&(r=console.log)),typeof r=="function")return r.apply(console,n)}}for(let e=0;e<Ja.length;e++)this[Ja[e].n]=t(Ja[e].c)}},get DiagLogLevel(){return Gt},createNoopMeter:yp,get ValueType(){return Qa},defaultTextMapGetter:Ap,defaultTextMapSetter:bp,ProxyTracer:Cp,ProxyTracerProvider:uc,get SamplingDecision(){return Lo},get SpanKind(){return Xt},get SpanStatusCode(){return Pe},get TraceFlags(){return De},createTraceState:function(t){return new dc(t)},isSpanContextValid:wo,isValidTraceId:ac,isValidSpanId:Np,INVALID_SPANID:ec,INVALID_TRACEID:nc,INVALID_SPAN_CONTEXT:rc}),Ji=qe(rN),Xi={};function wt(t){let e={};const n=t.length;for(let r=0;r<n;r++){const o=t[r];o&&(e[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return e}const Dp="aws.lambda.invoked_arn",Pp="db.system",Up="db.connection_string",xp="db.user",kp="db.jdbc.driver_classname",Bp="db.name",Vp="db.statement",Fp="db.operation",Gp="db.mssql.instance_name",jp="db.cassandra.keyspace",Hp="db.cassandra.page_size",Yp="db.cassandra.consistency_level",$p="db.cassandra.table",zp="db.cassandra.idempotence",Wp="db.cassandra.speculative_execution_count",qp="db.cassandra.coordinator.id",Kp="db.cassandra.coordinator.dc",Jp="db.hbase.namespace",Xp="db.redis.database_index",Zp="db.mongodb.collection",Qp="db.sql.table",th="exception.type",eh="exception.message",nh="exception.stacktrace",rh="exception.escaped",oh="faas.trigger",ih="faas.execution",sh="faas.document.collection",ah="faas.document.operation",ch="faas.document.time",uh="faas.document.name",lh="faas.time",dh="faas.cron",ph="faas.coldstart",hh="faas.invoked_name",fh="faas.invoked_provider",_h="faas.invoked_region",Eh="net.transport",mh="net.peer.ip",gh="net.peer.port",Sh="net.peer.name",Th="net.host.ip",vh="net.host.port",yh="net.host.name",Ah="net.host.connection.type",bh="net.host.connection.subtype",Rh="net.host.carrier.name",Oh="net.host.carrier.mcc",Nh="net.host.carrier.mnc",Ih="net.host.carrier.icc",Ch="peer.service",Mh="enduser.id",wh="enduser.role",Lh="enduser.scope",Dh="thread.id",Ph="thread.name",Uh="code.function",xh="code.namespace",kh="code.filepath",Bh="code.lineno",Vh="http.method",Fh="http.url",Gh="http.target",jh="http.host",Hh="http.scheme",Yh="http.status_code",$h="http.flavor",zh="http.user_agent",Wh="http.request_content_length",qh="http.request_content_length_uncompressed",Kh="http.response_content_length",Jh="http.response_content_length_uncompressed",Xh="http.server_name",Zh="http.route",Qh="http.client_ip",tf="aws.dynamodb.table_names",ef="aws.dynamodb.consumed_capacity",nf="aws.dynamodb.item_collection_metrics",rf="aws.dynamodb.provisioned_read_capacity",of="aws.dynamodb.provisioned_write_capacity",sf="aws.dynamodb.consistent_read",af="aws.dynamodb.projection",cf="aws.dynamodb.limit",uf="aws.dynamodb.attributes_to_get",lf="aws.dynamodb.index_name",df="aws.dynamodb.select",pf="aws.dynamodb.global_secondary_indexes",hf="aws.dynamodb.local_secondary_indexes",ff="aws.dynamodb.exclusive_start_table",_f="aws.dynamodb.table_count",Ef="aws.dynamodb.scan_forward",mf="aws.dynamodb.segment",gf="aws.dynamodb.total_segments",Sf="aws.dynamodb.count",Tf="aws.dynamodb.scanned_count",vf="aws.dynamodb.attribute_definitions",yf="aws.dynamodb.global_secondary_index_updates",Af="messaging.system",bf="messaging.destination",Rf="messaging.destination_kind",Of="messaging.temp_destination",Nf="messaging.protocol",If="messaging.protocol_version",Cf="messaging.url",Mf="messaging.message_id",wf="messaging.conversation_id",Lf="messaging.message_payload_size_bytes",Df="messaging.message_payload_compressed_size_bytes",Pf="messaging.operation",Uf="messaging.consumer_id",xf="messaging.rabbitmq.routing_key",kf="messaging.kafka.message_key",Bf="messaging.kafka.consumer_group",Vf="messaging.kafka.client_id",Ff="messaging.kafka.partition",Gf="messaging.kafka.tombstone",jf="rpc.system",Hf="rpc.service",Yf="rpc.method",$f="rpc.grpc.status_code",zf="rpc.jsonrpc.version",Wf="rpc.jsonrpc.request_id",qf="rpc.jsonrpc.error_code",Kf="rpc.jsonrpc.error_message",Jf="message.type",Xf="message.id",Zf="message.compressed_size",Qf="message.uncompressed_size",oN=Dp,iN=Pp,sN=Up,aN=xp,cN=kp,uN=Bp,lN=Vp,dN=Fp,pN=Gp,hN=jp,fN=Hp,_N=Yp,EN=$p,mN=zp,gN=Wp,SN=qp,TN=Kp,vN=Jp,yN=Xp,AN=Zp,bN=Qp,RN=th,ON=eh,NN=nh,IN=rh,CN=oh,MN=ih,wN=sh,LN=ah,DN=ch,PN=uh,UN=lh,xN=dh,kN=ph,BN=hh,VN=fh,FN=_h,GN=Eh,jN=mh,HN=gh,YN=Sh,$N=Th,zN=vh,WN=yh,qN=Ah,KN=bh,JN=Rh,XN=Oh,ZN=Nh,QN=Ih,t0=Ch,e0=Mh,n0=wh,r0=Lh,o0=Dh,i0=Ph,s0=Uh,a0=xh,c0=kh,u0=Bh,l0=Vh,d0=Fh,p0=Gh,h0=jh,f0=Hh,_0=Yh,E0=$h,m0=zh,g0=Wh,S0=qh,T0=Kh,v0=Jh,y0=Xh,A0=Zh,b0=Qh,R0=tf,O0=ef,N0=nf,I0=rf,C0=of,M0=sf,w0=af,L0=cf,D0=uf,P0=lf,U0=df,x0=pf,k0=hf,B0=ff,V0=_f,F0=Ef,G0=mf,j0=gf,H0=Sf,Y0=Tf,$0=vf,z0=yf,W0=Af,q0=bf,K0=Rf,J0=Of,X0=Nf,Z0=If,Q0=Cf,tI=Mf,eI=wf,nI=Lf,rI=Df,oI=Pf,iI=Uf,sI=xf,aI=kf,c
1I=Bf,uI=Vf,lI=Ff,dI=Gf,pI=jf,hI=Hf,fI=Yf,_I=$f,EI=zf,mI=Wf,gI=qf,SI=Kf,TI=Jf,vI=Xf,yI=Zf,AI=Qf,bI=wt([Dp,Pp,Up,xp,kp,Bp,Vp,Fp,Gp,jp,Hp,Yp,$p,zp,Wp,qp,Kp,Jp,Xp,Zp,Qp,th,eh,nh,rh,oh,ih,sh,ah,ch,uh,lh,dh,ph,hh,fh,_h,Eh,mh,gh,Sh,Th,vh,yh,Ah,bh,Rh,Oh,Nh,Ih,Ch,Mh,wh,Lh,Dh,Ph,Uh,xh,kh,Bh,Vh,Fh,Gh,jh,Hh,Yh,$h,zh,Wh,qh,Kh,Jh,Xh,Zh,Qh,tf,ef,nf,rf,of,sf,af,cf,uf,lf,df,pf,hf,ff,_f,Ef,mf,gf,Sf,Tf,vf,yf,Af,bf,Rf,Of,Nf,If,Cf,Mf,wf,Lf,Df,Pf,Uf,xf,kf,Bf,Vf,Ff,Gf,jf,Hf,Yf,$f,zf,Wf,qf,Kf,Jf,Xf,Zf,Qf]),t_="other_sql",e_="mssql",n_="mysql",r_="oracle",o_="postgresql",i_="redshift",s_="hive",a_="cloudscape",c_="hsqldb",u_="progress",l_="maxdb",d_="hanadb",p_="ingres",h_="firstsql",f_="cache",__="adabas",E_="firebird",m_="derby",g_="filemaker",S_="informix",T_="instantdb",v_="interbase",y_="mariadb",A_="netezza",b_="pervasive",R_="pointbase",O_="sqlite",N_="sybase",I_="teradata",C_="vertica",M_="coldfusion",w_="cassandra",L_="hbase",D_="mongodb",P_="redis",U_="couchbase",x_="couchdb",k_="cosmosdb",B_="dynamodb",V_="neo4j",F_="geode",G_="elasticsearch",j_="memcached",H_="cockroachdb",RI=t_,OI=e_,NI=n_,II=r_,CI=o_,MI=i_,wI=s_,LI=a_,DI=c_,PI=u_,UI=l_,xI=d_,kI=p_,BI=h_,VI=f_,FI=__,GI=E_,jI=m_,HI=g_,YI=S_,$I=T_,zI=v_,WI=y_,qI=A_,KI=b_,JI=R_,XI=O_,ZI=N_,QI=I_,tC=C_,eC=M_,nC=w_,rC=L_,oC=D_,iC=P_,sC=U_,aC=x_,cC=k_,uC=B_,lC=V_,dC=F_,pC=G_,hC=j_,fC=H_,_C=wt([t_,e_,n_,r_,"db2",o_,i_,s_,a_,c_,u_,l_,d_,p_,h_,"edb",f_,__,E_,m_,g_,S_,T_,v_,y_,A_,b_,R_,O_,N_,I_,C_,"h2",M_,w_,L_,D_,P_,U_,x_,k_,B_,V_,F_,G_,j_,H_]),Y_="each_quorum",$_="quorum",z_="local_quorum",W_="three",q_="local_one",K_="serial",J_="local_serial",EC=Y_,mC=$_,gC=z_,SC=W_,TC=q_,vC=K_,yC=J_,AC=wt(["all",Y_,$_,z_,"one","two",W_,q_,"any",K_,J_]),X_="datasource",Z_="http",Q_="pubsub",tE="timer",eE="other",bC=X_,RC=Z_,OC=Q_,NC=tE,IC=eE,CC=wt([X_,Z_,Q_,tE,eE]),nE="insert",rE="edit",oE="delete",MC=nE,wC=rE,LC=oE,DC=wt([nE,rE,oE]),iE="alibaba_cloud",sE="azure",PC=iE,UC=sE,xC=wt([iE,"aws",sE,"gcp"]),aE="ip_tcp",cE="ip_udp",uE="unix",lE="pipe",dE="inproc",pE="other",kC=aE,BC=cE,VC=uE,FC=lE,GC=dE,jC=pE,HC=wt([aE,cE,"ip",uE,lE,dE,pE]),hE="wifi",fE="wired",_E="cell",EE="unavailable",mE="unknown",YC=hE,$C=fE,zC=_E,WC=EE,qC=mE,KC=wt([hE,fE,_E,EE,mE]),gE="gprs",SE="edge",TE="umts",vE="cdma",yE="evdo_0",AE="evdo_a",bE="cdma2000_1xrtt",RE="hsdpa",OE="hsupa",NE="hspa",IE="iden",CE="evdo_b",ME="ehrpd",wE="hspap",LE="td_scdma",DE="iwlan",PE="nrnsa",UE="lte_ca",JC=gE,XC=SE,ZC=TE,QC=vE,tM=yE,eM=AE,nM=bE,rM=RE,oM=OE,iM=NE,sM=IE,aM=CE,cM=ME,uM=wE,lM=LE,dM=DE,pM=PE,hM=UE,fM=wt([gE,SE,TE,vE,yE,AE,bE,RE,OE,NE,IE,CE,"lte",ME,wE,"gsm",LE,DE,"nr",PE,UE]),xE="SPDY",kE="QUIC",_M=xE,EM=kE,mM={HTTP_1_0:"1.0",HTTP_1_1:"1.1",HTTP_2_0:"2.0",SPDY:xE,QUIC:kE},BE="queue",VE="topic",gM=BE,SM=VE,TM=wt([BE,VE]),FE="receive",GE="process",vM=FE,yM=GE,AM=wt([FE,GE]),bM={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15,UNAUTHENTICATED:16},jE="SENT",HE="RECEIVED",RM=jE,OM=HE,NM=wt([jE,HE]),YE="cloud.provider",$E="cloud.account.id",zE="cloud.region",WE="cloud.availability_zone",qE="cloud.platform",KE="aws.ecs.container.arn",JE="aws.ecs.cluster.arn",XE="aws.ecs.launchtype",ZE="aws.ecs.task.arn",QE="aws.ecs.task.family",tm="aws.ecs.task.revision",em="aws.eks.cluster.arn",nm="aws.log.group.names",rm="aws.log.group.arns",om="aws.log.stream.names",im="aws.log.stream.arns",sm="container.name",am="container.id",cm="container.runtime",um="container.image.name",lm="container.image.tag",dm="deployment.environment",pm="device.id",hm="device.model.identifier",fm="device.model.name",_m="faas.name",Em="faas.id",mm="faas.version",gm="faas.instance",Sm="faas.max_memory",Tm="host.id",vm="host.name",ym="host.type",Am="host.arch",bm="host.image.name",Rm="host.image.id",Om="host.image.version",Nm="k8s.cluster.name",Im="k8s.node.name",Cm="k8s.node.uid",Mm="k8s.namespace.name",wm="k8s.pod.uid",Lm="k8s.pod.name",Dm="k8s.container.name",Pm="k8s.replicaset.uid",Um="k8s.replicaset.name",xm="k8s.deployment.uid",km="k8s.deployment.name",Bm="k8s.statefulset.uid",Vm="k8s.statefulset.name",Fm="k8s.daemonset.uid",Gm="k8s.daemonset.name",jm="k8s.job.uid",Hm="k8s.job.name",Ym="k8s.cronjob.uid",$m="k8s.cronjob.name",zm="os.type",Wm="os.description",qm="os.name",Km="os.version",Jm="process.pid",Xm="process.executable.name",Zm="process.executable.path",Qm="process.command",tg="process.command_line",eg="process.command_args",ng="process.owner",rg="process.runtime.name",og="process.runtime.version",ig="process.runtime.description",sg="service.name",ag="service.namespace",cg="service.instance.id",ug="service.version",lg="telemetry.sdk.name",dg="telemetry.sdk.language",pg="telemetry.sdk.version",hg="telemetry.auto.version",fg
vendor: 6,773 bytes, line 1
1="webengine.name",_g="webengine.version",Eg="webengine.description",IM=YE,CM=$E,MM=zE,wM=WE,LM=qE,DM=KE,PM=JE,UM=XE,xM=ZE,kM=QE,BM=tm,VM=em,FM=nm,GM=rm,jM=om,HM=im,YM=sm,$M=am,zM=cm,WM=um,qM=lm,KM=dm,JM=pm,XM=hm,ZM=fm,QM=_m,tw=Em,ew=mm,nw=gm,rw=Sm,ow=Tm,iw=vm,sw=ym,aw=Am,cw=bm,uw=Rm,lw=Om,dw=Nm,pw=Im,hw=Cm,fw=Mm,_w=wm,Ew=Lm,mw=Dm,gw=Pm,Sw=Um,Tw=xm,vw=km,yw=Bm,Aw=Vm,bw=Fm,Rw=Gm,Ow=jm,Nw=Hm,Iw=Ym,Cw=$m,Mw=zm,ww=Wm,Lw=qm,Dw=Km,Pw=Jm,Uw=Xm,xw=Zm,kw=Qm,Bw=tg,Vw=eg,Fw=ng,Gw=rg,jw=og,Hw=ig,Yw=sg,$w=ag,zw=cg,Ww=ug,qw=lg,Kw=dg,Jw=pg,Xw=hg,Zw=fg,Qw=_g,tL=Eg,eL=wt([YE,$E,zE,WE,qE,KE,JE,XE,ZE,QE,tm,em,nm,rm,om,im,sm,am,cm,um,lm,dm,pm,hm,fm,_m,Em,mm,gm,Sm,Tm,vm,ym,Am,bm,Rm,Om,Nm,Im,Cm,Mm,wm,Lm,Dm,Pm,Um,xm,km,Bm,Vm,Fm,Gm,jm,Hm,Ym,$m,zm,Wm,qm,Km,Jm,Xm,Zm,Qm,tg,eg,ng,rg,og,ig,sg,ag,cg,ug,lg,dg,pg,hg,fg,_g,Eg]),mg="alibaba_cloud",gg="azure",nL=mg,rL=gg,oL=wt([mg,"aws",gg,"gcp"]),Sg="alibaba_cloud_ecs",Tg="alibaba_cloud_fc",vg="aws_ec2",yg="aws_ecs",Ag="aws_eks",bg="aws_lambda",Rg="aws_elastic_beanstalk",Og="azure_vm",Ng="azure_container_instances",Ig="azure_aks",Cg="azure_functions",Mg="azure_app_service",wg="gcp_compute_engine",Lg="gcp_cloud_run",Dg="gcp_kubernetes_engine",Pg="gcp_cloud_functions",Ug="gcp_app_engine",iL=Sg,sL=Tg,aL=vg,cL=yg,uL=Ag,lL=bg,dL=Rg,pL=Og,hL=Ng,fL=Ig,_L=Cg,EL=Mg,mL=wg,gL=Lg,SL=Dg,TL=Pg,vL=Ug,yL=wt([Sg,Tg,vg,yg,Ag,bg,Rg,Og,Ng,Ig,Cg,Mg,wg,Lg,Dg,Pg,Ug]),xg="fargate",AL=xg,bL=wt(["ec2",xg]),kg="amd64",Bg="arm32",Vg="arm64",Fg="ia64",Gg="ppc32",jg="ppc64",RL=kg,OL=Bg,NL=Vg,IL=Fg,CL=Gg,ML=jg,wL=wt([kg,Bg,Vg,Fg,Gg,jg,"x86"]),Hg="windows",Yg="linux",$g="darwin",zg="freebsd",Wg="netbsd",qg="openbsd",Kg="dragonflybsd",Jg="hpux",Xg="solaris",Zg="z_os",LL=Hg,DL=Yg,PL=$g,UL=zg,xL=Wg,kL=qg,BL=Kg,VL=Jg,FL=Xg,GL=Zg,jL=wt([Hg,Yg,$g,zg,Wg,qg,Kg,Jg,"aix",Xg,Zg]),Qg="dotnet",tS="erlang",eS="java",nS="nodejs",rS="python",oS="ruby",iS="webjs",HL=Qg,YL=tS,$L=eS,zL=nS,WL=rS,qL=oS,KL=iS,JL=wt(["cpp",Qg,tS,"go",eS,nS,"php",rS,oS,iS]),Zi="error.type",Qi="exception.message",sS="exception.stacktrace",ts="exception.type",Sc="http.request.method",Tc="http.request.method_original",vc="http.response.status_code",yc="server.address",Ac="server.port",bc="service.name",es="telemetry.sdk.language",aS="webjs",Do="telemetry.sdk.name",Po="telemetry.sdk.version",Mr="url.full",cS="user_agent.original";var XL=qe(Object.freeze({__proto__:null,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:oN,SEMATTRS_DB_SYSTEM:iN,SEMATTRS_DB_CONNECTION_STRING:sN,SEMATTRS_DB_USER:aN,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:cN,SEMATTRS_DB_NAME:uN,SEMATTRS_DB_STATEMENT:lN,SEMATTRS_DB_OPERATION:dN,SEMATTRS_DB_MSSQL_INSTANCE_NAME:pN,SEMATTRS_DB_CASSANDRA_KEYSPACE:hN,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:fN,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:_N,SEMATTRS_DB_CASSANDRA_TABLE:EN,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:mN,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:gN,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:SN,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:TN,SEMATTRS_DB_HBASE_NAMESPACE:vN,SEMATTRS_DB_REDIS_DATABASE_INDEX:yN,SEMATTRS_DB_MONGODB_COLLECTION:AN,SEMATTRS_DB_SQL_TABLE:bN,SEMATTRS_EXCEPTION_TYPE:RN,SEMATTRS_EXCEPTION_MESSAGE:ON,SEMATTRS_EXCEPTION_STACKTRACE:NN,SEMATTRS_EXCEPTION_ESCAPED:IN,SEMATTRS_FAAS_TRIGGER:CN,SEMATTRS_FAAS_EXECUTION:MN,SEMATTRS_FAAS_DOCUMENT_COLLECTION:wN,SEMATTRS_FAAS_DOCUMENT_OPERATION:LN,SEMATTRS_FAAS_DOCUMENT_TIME:DN,SEMATTRS_FAAS_DOCUMENT_NAME:PN,SEMATTRS_FAAS_TIME:UN,SEMATTRS_FAAS_CRON:xN,SEMATTRS_FAAS_COLDSTART:kN,SEMATTRS_FAAS_INVOKED_NAME:BN,SEMATTRS_FAAS_INVOKED_PROVIDER:VN,SEMATTRS_FAAS_INVOKED_REGION:FN,SEMATTRS_NET_TRANSPORT:GN,SEMATTRS_NET_PEER_IP:jN,SEMATTRS_NET_PEER_PORT:HN,SEMATTRS_NET_PEER_NAME:YN,SEMATTRS_NET_HOST_IP:$N,SEMATTRS_NET_HOST_PORT:zN,SEMATTRS_NET_HOST_NAME:WN,SEMATTRS_NET_HOST_CONNECTION_TYPE:qN,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:KN,SEMATTRS_NET_HOST_CARRIER_NAME:JN,SEMATTRS_NET_HOST_CARRIER_MCC:XN,SEMATTRS_NET_HOST_CARRIER_MNC:ZN,SEMATTRS_NET_HOST_CARRIER_ICC:QN,SEMATTRS_PEER_SERVICE:t0,SEMATTRS_ENDUSER_ID:e0,SEMATTRS_ENDUSER_ROLE:n0,SEMATTRS_ENDUSER_SCOPE:r0,SEMATTRS_THREAD_ID:o0,SEMATTRS_THREAD_NAME:i0,SEMATTRS_CODE_FUNCTION:s0,SEMATTRS_CODE_NAMESPACE:a0,SEMATTRS_CODE_FILEPATH:c0,SEMATTRS_CODE_LINENO:u0,SEMATTRS_HTTP_METHOD:l0,SEMATTRS_HTTP_URL:d0,SEMATTRS_HTTP_TARGET:p0,SEMATTRS_HTTP_HOST:h0,SEMATTRS_HTTP_SCHEME:f0,SEMATTRS_HTTP_STATUS_CODE:_0,SEMATTRS_HTTP_FLAVOR:E0,SEMATTRS_HTTP_USER_AGENT:m0,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:g0,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:S0,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:T0,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:v0,SEMATTRS_HTTP_SERVER_NAME:y0,SEMATTRS_HTTP_ROUTE:A0,SEMATTRS_HTTP_CLIENT_IP:b0,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:R0,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:O0,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:N0,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:I0,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:C0,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:M0,SEMATTRS_AWS_DYNAMODB_PROJECTION:w0,SEMATTRS_AWS_DYNAMODB_LIMIT:L0,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:D0,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:P0,SEMATTRS_AWS_DYNAMODB_SELECT:U0,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:x0,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:k0,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:B0,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:V0,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:F0,SEMATTRS_AWS_DYNAMODB_SEGMENT:G0,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:j0,SEMATTRS_AWS_DYNAMODB_COUNT:H0,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:Y0,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:$0,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:z0,SEMATTRS_MESSAGING_SYSTEM:W0,SEMATTRS_MESSAGING_DESTINATION:q0,SEMATTRS_MESSAGING_DESTINATION_KIND:K0,SEMATTRS_MESSAGING_TEMP_DESTINATION:J0,SEMATTRS_MESSAGING_PROTOCOL:X0,SEMATTRS_MESSAGING_PROTOCOL_VERSION:Z0,SEMATTRS_MESSAGING_URL:Q0,SEMATTRS_MESSAGING_MESSAGE_ID:tI,SEMATTRS_MESSAGING_CONVERSATION_ID:eI,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:nI,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:rI,SEMATTRS_MESSAGING_OPERATION:oI,SEMATTRS_MESSAGING_CONSUMER_ID:iI,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:sI,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:aI,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:cI,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:uI,SEMATTRS_MESSAGING_KAFKA_PARTITION:lI,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:dI,SEMATTRS_RPC_SYSTEM:pI,SEMATTRS_RPC_SERVICE:hI,SEMATTRS_RPC_METHOD:fI,SEMATTRS_RPC_GRPC_STATUS_CODE:_I,SEMATTRS_RPC_JSONRPC_VERSION:EI,SEMATTRS_RPC_JSONRPC_REQUEST_ID:mI,SEMATTRS_RPC_JSONRPC_ERROR_CODE:gI,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:SI,SEMATTRS_MESSAGE_TYPE:TI,SEMATTRS_MESSAGE_ID:vI,SEMATTRS_MESSAGE_COMPRESSED_SIZE:yI,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:AI,SemanticAttributes:bI,DBSYSTEMVALUES_OTHER_SQL:RI,DBSYSTEMVALUES_MSSQL:OI,DBSYSTEMVALUES_MYSQL:NI,DBSYSTEMVALUES_ORACLE:II,DBSYSTEMVALUES_DB2:"db2",DBSY
1STEMVALUES_POSTGRESQL:CI,DBSYSTEMVALUES_REDSHIFT:MI,DBSYSTEMVALUES_HIVE:wI,DBSYSTEMVALUES_CLOUDSCAPE:LI,DBSYSTEMVALUES_HSQLDB:DI,DBSYSTEMVALUES_PROGRESS:PI,DBSYSTEMVALUES_MAXDB:UI,DBSYSTEMVALUES_HANADB:xI,DBSYSTEMVALUES_INGRES:kI,DBSYSTEMVALUES_FIRSTSQL:BI,DBSYSTEMVALUES_EDB:"edb",DBSYSTEMVALUES_CACHE:VI,DBSYSTEMVALUES_ADABAS:FI,DBSYSTEMVALUES_FIREBIRD:GI,DBSYSTEMVALUES_DERBY:jI,DBSYSTEMVALUES_FILEMAKER:HI,DBSYSTEMVALUES_INFORMIX:YI,DBSYSTEMVALUES_INSTANTDB:$I,DBSYSTEMVALUES_INTERBASE:zI,DBSYSTEMVALUES_MARIADB:WI,DBSYSTEMVALUES_NETEZZA:qI,DBSYSTEMVALUES_PERVASIVE:KI,DBSYSTEMVALUES_POINTBASE:JI,DBSYSTEMVALUES_SQLITE:XI,DBSYSTEMVALUES_SYBASE:ZI,DBSYSTEMVALUES_TERADATA:QI,DBSYSTEMVALUES_VERTICA:tC,DBSYSTEMVALUES_H2:"h2",DBSYSTEMVALUES_COLDFUSION:eC,DBSYSTEMVALUES_CASSANDRA:nC,DBSYSTEMVALUES_HBASE:rC,DBSYSTEMVALUES_MONGODB:oC,DBSYSTEMVALUES_REDIS:iC,DBSYSTEMVALUES_COUCHBASE:sC,DBSYSTEMVALUES_COUCHDB:aC,DBSYSTEMVALUES_COSMOSDB:cC,DBSYSTEMVALUES_DYNAMODB:uC,DBSYSTEMVALUES_NEO4J:lC,DBSYSTEMVALUES_GEODE:dC,DBSYSTEMVALUES_ELASTICSEARCH:pC,DBSYSTEMVALUES_MEMCACHED:hC,DBSYSTEMVALUES_COCKROACHDB:fC,DbSystemValues:_C,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:"all",DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:EC,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:mC,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:gC,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:"one",DBCASSANDRACONSISTENCYLEVELVALUES_TWO:"two",DBCASSANDRACONSISTENCYLEVELVALUES_THREE:SC,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:TC,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:"any",DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:vC,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:yC,DbCassandraConsistencyLevelValues:AC,FAASTRIGGERVALUES_DATASOURCE:bC,FAASTRIGGERVALUES_HTTP:RC,FAASTRIGGERVALUES_PUBSUB:OC,FAASTRIGGERVALUES_TIMER:NC,FAASTRIGGERVALUES_OTHER:IC,FaasTriggerValues:CC,FAASDOCUMENTOPERATIONVALUES_INSERT:MC,FAASDOCUMENTOPERATIONVALUES_EDIT:wC,FAASDOCUMENTOPERATIONVALUES_DELETE:LC,FaasDocumentOperationValues:DC,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:PC,FAASINVOKEDPROVIDERVALUES_AWS:"aws",FAASINVOKEDPROVIDERVALUES_AZURE:UC,FAASINVOKEDPROVIDERVALUES_GCP:"gcp",FaasInvokedProviderValues:xC,NETTRANSPORTVALUES_IP_TCP:kC,NETTRANSPORTVALUES_IP_UDP:BC,NETTRANSPORTVALUES_IP:"ip",NETTRANSPORTVALUES_UNIX:VC,NETTRANSPORTVALUES_PIPE:FC,NETTRANSPORTVALUES_INPROC:GC,NETTRANSPORTVALUES_OTHER:jC,NetTransportValues:HC,NETHOSTCONNECTIONTYPEVALUES_WIFI:YC,NETHOSTCONNECTIONTYPEVALUES_WIRED:$C,NETHOSTCONNECTIONTYPEVALUES_CELL:zC,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:WC,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:qC,NetHostConnectionTypeValues:KC,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:JC,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:XC,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:ZC,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:QC,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:tM,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:eM,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:nM,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:rM,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:oM,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:iM,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:sM,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:aM,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:"lte",NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:cM,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:uM,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:"gsm",NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:lM,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:dM,NETHOSTCONNECTIONSUBTYPEVALUES_NR:"nr",NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:pM,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:hM,NetHostConnectionSubtypeValues:fM,HTTPFLAVORVALUES_HTTP_1_0:"1.0",HTTPFLAVORVALUES_HTTP_1_1:"1.1",HTTPFLAVORVALUES_HTTP_2_0:"2.0",HTTPFLAVORVALUES_SPDY:_M,HTTPFLAVORVALUES_QUIC:EM,HttpFlavorValues:mM,MESSAGINGDESTINATIONKINDVALUES_QUEUE:gM,MESSAGINGDESTINATIONKINDVALUES_TOPIC:SM,MessagingDestinationKindValues:TM,MESSAGINGOPERATIONVALUES_RECEIVE:vM,MESSAGINGOPERATIONVALUES_PROCESS:yM,MessagingOperationValues:AM,RPCGRPCSTATUSCODEVALUES_OK:0,RPCGRPCSTATUSCODEVALUES_CANCELLED:1,RPCGRPCSTATUSCODEVALUES_UNKNOWN:2,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:3,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:4,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:5,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:6,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:7,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:8,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:9,RPCGRPCSTATUSCODEVALUES_ABORTED:10,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:11,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENT
1ED:12,RPCGRPCSTATUSCODEVALUES_INTERNAL:13,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:14,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:15,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:16,RpcGrpcStatusCodeValues:bM,MESSAGETYPEVALUES_SENT:RM,MESSAGETYPEVALUES_RECEIVED:OM,MessageTypeValues:NM,SEMRESATTRS_CLOUD_PROVIDER:IM,SEMRESATTRS_CLOUD_ACCOUNT_ID:CM,SEMRESATTRS_CLOUD_REGION:MM,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:wM,SEMRESATTRS_CLOUD_PLATFORM:LM,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:DM,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:PM,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:UM,SEMRESATTRS_AWS_ECS_TASK_ARN:xM,SEMRESATTRS_AWS_ECS_TASK_FAMILY:kM,SEMRESATTRS_AWS_ECS_TASK_REVISION:BM,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:VM,SEMRESATTRS_AWS_LOG_GROUP_NAMES:FM,SEMRESATTRS_AWS_LOG_GROUP_ARNS:GM,SEMRESATTRS_AWS_LOG_STREAM_NAMES:jM,SEMRESATTRS_AWS_LOG_STREAM_ARNS:HM,SEMRESATTRS_CONTAINER_NAME:YM,SEMRESATTRS_CONTAINER_ID:$M,SEMRESATTRS_CONTAINER_RUNTIME:zM,SEMRESATTRS_CONTAINER_IMAGE_NAME:WM,SEMRESATTRS_CONTAINER_IMAGE_TAG:qM,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:KM,SEMRESATTRS_DEVICE_ID:JM,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:XM,SEMRESATTRS_DEVICE_MODEL_NAME:ZM,SEMRESATTRS_FAAS_NAME:QM,SEMRESATTRS_FAAS_ID:tw,SEMRESATTRS_FAAS_VERSION:ew,SEMRESATTRS_FAAS_INSTANCE:nw,SEMRESATTRS_FAAS_MAX_MEMORY:rw,SEMRESATTRS_HOST_ID:ow,SEMRESATTRS_HOST_NAME:iw,SEMRESATTRS_HOST_TYPE:sw,SEMRESATTRS_HOST_ARCH:aw,SEMRESATTRS_HOST_IMAGE_NAME:cw,SEMRESATTRS_HOST_IMAGE_ID:uw,SEMRESATTRS_HOST_IMAGE_VERSION:lw,SEMRESATTRS_K8S_CLUSTER_NAME:dw,SEMRESATTRS_K8S_NODE_NAME:pw,SEMRESATTRS_K8S_NODE_UID:hw,SEMRESATTRS_K8S_NAMESPACE_NAME:fw,SEMRESATTRS_K8S_POD_UID:_w,SEMRESATTRS_K8S_POD_NAME:Ew,SEMRESATTRS_K8S_CONTAINER_NAME:mw,SEMRESATTRS_K8S_REPLICASET_UID:gw,SEMRESATTRS_K8S_REPLICASET_NAME:Sw,SEMRESATTRS_K8S_DEPLOYMENT_UID:Tw,SEMRESATTRS_K8S_DEPLOYMENT_NAME:vw,SEMRESATTRS_K8S_STATEFULSET_UID:yw,SEMRESATTRS_K8S_STATEFULSET_NAME:Aw,SEMRESATTRS_K8S_DAEMONSET_UID:bw,SEMRESATTRS_K8S_DAEMONSET_NAME:Rw,SEMRESATTRS_K8S_JOB_UID:Ow,SEMRESATTRS_K8S_JOB_NAME:Nw,SEMRESATTRS_K8S_CRONJOB_UID:Iw,SEMRESATTRS_K8S_CRONJOB_NAME:Cw,SEMRESATTRS_OS_TYPE:Mw,SEMRESATTRS_OS_DESCRIPTION:ww,SEMRESATTRS_OS_NAME:Lw,SEMRESATTRS_OS_VERSION:Dw,SEMRESATTRS_PROCESS_PID:Pw,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:Uw,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:xw,SEMRESATTRS_PROCESS_COMMAND:kw,SEMRESATTRS_PROCESS_COMMAND_LINE:Bw,SEMRESATTRS_PROCESS_COMMAND_ARGS:Vw,SEMRESATTRS_PROCESS_OWNER:Fw,SEMRESATTRS_PROCESS_RUNTIME_NAME:Gw,SEMRESATTRS_PROCESS_RUNTIME_VERSION:jw,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:Hw,SEMRESATTRS_SERVICE_NAME:Yw,SEMRESATTRS_SERVICE_NAMESPACE:$w,SEMRESATTRS_SERVICE_INSTANCE_ID:zw,SEMRESATTRS_SERVICE_VERSION:Ww,SEMRESATTRS_TELEMETRY_SDK_NAME:qw,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:Kw,SEMRESATTRS_TELEMETRY_SDK_VERSION:Jw,SEMRESATTRS_TELEMETRY_AUTO_VERSION:Xw,SEMRESATTRS_WEBENGINE_NAME:Zw,SEMRESATTRS_WEBENGINE_VERSION:Qw,SEMRESATTRS_WEBENGINE_DESCRIPTION:tL,SemanticResourceAttributes:eL,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:nL,CLOUDPROVIDERVALUES_AWS:"aws",CLOUDPROVIDERVALUES_AZURE:rL,CLOUDPROVIDERVALUES_GCP:"gcp",CloudProviderValues:oL,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:iL,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:sL,CLOUDPLATFORMVALUES_AWS_EC2:aL,CLOUDPLATFORMVALUES_AWS_ECS:cL,CLOUDPLATFORMVALUES_AWS_EKS:uL,CLOUDPLATFORMVALUES_AWS_LAMBDA:lL,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:dL,CLOUDPLATFORMVALUES_AZURE_VM:pL,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:hL,CLOUDPLATFORMVALUES_AZURE_AKS:fL,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:_L,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:EL,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:mL,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:gL,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:SL,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:TL,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:vL,CloudPlatformValues:yL,AWSECSLAUNCHTYPEVALUES_EC2:"ec2",AWSECSLAUNCHTYPEVALUES_FARGATE:AL,AwsEcsLaunchtypeValues:bL,HOSTARCHVALUES_AMD64:RL,HOSTARCHVALUES_ARM32:OL,HOSTARCHVALUES_ARM64:NL,HOSTARCHVALUES_IA64:IL,HOSTARCHVALUES_PPC32:CL,HOSTARCHVALUES_PPC64:ML,HOSTARCHVALUES_X86:"x86",HostArchValues:wL,OSTYPEVALUES_WINDOWS:LL,OSTYPEVALUES_LINUX:DL,OSTYPEVALUES_DARWIN:PL,OSTYPEVALUES_FREEBSD:UL,OSTYPEVALUES_NETBSD:xL,OSTYPEVALUES_OPENBSD:kL,OSTYPEVALUES_DRAGONFLYBSD:BL,OSTYPEVALUES_HPUX:VL,OSTYPEVALUES_AIX:"aix",OSTYPEVALUES_SOLARIS:FL,OSTYPEVALUES_Z_OS:GL,OsTypeValues:jL,TELEMETRYSDKLANGUAGEVALUES_CPP:"cpp",TELEMETRYSDKLANGUAGEVALUES_DOTNET:HL,TELEMETRYSDKLANGUAGEVALUES_ERLANG:YL,TELEMETRYSDKLANGUAGEVALUES_GO:"go",TELEMETRYSDKLANGUAGEVALUES_JAVA:$L,TELEMETRYSDKLANGUAGEVALUES_NODEJS:zL,TELEMETRYSDKLANGUAGEVALUES_PHP:"php",TELEMETRYSDKLANGUAGEVALUES_PYTHON:WL,TELEMETRYSDKLANGUAGEVALUES_RUBY:q
1L,TELEMETRYSDKLANGUAGEVALUES_WEBJS:KL,TelemetrySdkLanguageValues:JL,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:"aspnetcore.diagnostics.exception.result",ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:"aborted",ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:"handled",ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:"skipped",ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:"unhandled",ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:"aspnetcore.diagnostics.handler.type",ATTR_ASPNETCORE_RATE_LIMITING_POLICY:"aspnetcore.rate_limiting.policy",ATTR_ASPNETCORE_RATE_LIMITING_RESULT:"aspnetcore.rate_limiting.result",ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:"acquired",ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:"endpoint_limiter",ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:"global_limiter",ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:"request_canceled",ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:"aspnetcore.request.is_unhandled",ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:"aspnetcore.routing.is_fallback",ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:"aspnetcore.routing.match_status",ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:"failure",ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:"success",ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:"aspnetcore.user.is_authenticated",ATTR_CLIENT_ADDRESS:"client.address",ATTR_CLIENT_PORT:"client.port",ATTR_CODE_COLUMN_NUMBER:"code.column.number",ATTR_CODE_FILE_PATH:"code.file.path",ATTR_CODE_FUNCTION_NAME:"code.function.name",ATTR_CODE_LINE_NUMBER:"code.line.number",ATTR_CODE_STACKTRACE:"code.stacktrace",ATTR_DB_COLLECTION_NAME:"db.collection.name",ATTR_DB_NAMESPACE:"db.namespace",ATTR_DB_OPERATION_BATCH_SIZE:"db.operation.batch.size",ATTR_DB_OPERATION_NAME:"db.operation.name",ATTR_DB_QUERY_SUMMARY:"db.query.summary",ATTR_DB_QUERY_TEXT:"db.query.text",ATTR_DB_RESPONSE_STATUS_CODE:"db.response.status_code",ATTR_DB_STORED_PROCEDURE_NAME:"db.stored_procedure.name",ATTR_DB_SYSTEM_NAME:"db.system.name",DB_SYSTEM_NAME_VALUE_MARIADB:"mariadb",DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:"microsoft.sql_server",DB_SYSTEM_NAME_VALUE_MYSQL:"mysql",DB_SYSTEM_NAME_VALUE_POSTGRESQL:"postgresql",ATTR_DEPLOYMENT_ENVIRONMENT_NAME:"deployment.environment.name",DEPLOYMENT_ENVIRONMENT_NAME_VALUE_DEVELOPMENT:"development",DEPLOYMENT_ENVIRONMENT_NAME_VALUE_PRODUCTION:"production",DEPLOYMENT_ENVIRONMENT_NAME_VALUE_STAGING:"staging",DEPLOYMENT_ENVIRONMENT_NAME_VALUE_TEST:"test",ATTR_DOTNET_GC_HEAP_GENERATION:"dotnet.gc.heap.generation",DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:"gen0",DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:"gen1",DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:"gen2",DOTNET_GC_HEAP_GENERATION_VALUE_LOH:"loh",DOTNET_GC_HEAP_GENERATION_VALUE_POH:"poh",ATTR_ERROR_TYPE:Zi,ERROR_TYPE_VALUE_OTHER:"_OTHER",ATTR_EXCEPTION_ESCAPED:"exception.escaped",ATTR_EXCEPTION_MESSAGE:Qi,ATTR_EXCEPTION_STACKTRACE:sS,ATTR_EXCEPTION_TYPE:ts,ATTR_HTTP_REQUEST_HEADER:t=>`http.request.header.${t}`,ATTR_HTTP_REQUEST_METHOD:Sc,HTTP_REQUEST_METHOD_VALUE_OTHER:"_OTHER",HTTP_REQUEST_METHOD_VALUE_CONNECT:"CONNECT",HTTP_REQUEST_METHOD_VALUE_DELETE:"DELETE",HTTP_REQUEST_METHOD_VALUE_GET:"GET",HTTP_REQUEST_METHOD_VALUE_HEAD:"HEAD",HTTP_REQUEST_METHOD_VALUE_OPTIONS:"OPTIONS",HTTP_REQUEST_METHOD_VALUE_PATCH:"PATCH",HTTP_REQUEST_METHOD_VALUE_POST:"POST",HTTP_REQUEST_METHOD_VALUE_PUT:"PUT",HTTP_REQUEST_METHOD_VALUE_TRACE:"TRACE",ATTR_HTTP_REQUEST_METHOD_ORIGINAL:Tc,ATTR_HTTP_REQUEST_RESEND_COUNT:"http.request.resend_count",ATTR_HTTP_RESPONSE_HEADER:t=>`http.response.header.${t}`,ATTR_HTTP_RESPONSE_STATUS_CODE:vc,ATTR_HTTP_ROUTE:"http.route",ATTR_JVM_GC_ACTION:"jvm.gc.action",ATTR_JVM_GC_NAME:"jvm.gc.name",ATTR_JVM_MEMORY_POOL_NAME:"jvm.memory.pool.name",ATTR_JVM_MEMORY_TYPE:"jvm.memory.type",JVM_MEMORY_TYPE_VALUE_HEAP:"heap",JVM_MEMORY_TYPE_VALUE_NON_HEAP:"non_heap",ATTR_JVM_THREAD_DAEMON:"jvm.thread.daemon",ATTR_JVM_THREAD_STATE:"jvm.thread.state",JVM_THREAD_STATE_VALUE_BLOCKED:"blocked",JVM_THREAD_STATE_VALUE_NEW:"new",JVM_THREAD_STATE_VALUE_RUNNABLE:"runnable",JVM_THREAD_STATE_VALUE_TERMINATED:"terminated",JVM_THREAD_STATE_VALUE_TIMED_WAITING:"timed_waiting",JVM_THREAD_STATE_VALUE_WAITING:"waiting",ATTR_NETWORK_LOCAL_ADDRESS:"network.local.address",ATTR_NETWORK_LOCAL_PORT:"network.local.port",ATTR_NETWORK_PEER_ADDRESS:"network.peer.address",ATTR_NETWORK_PEER_PORT:"network.peer.port",ATTR_NETWORK_PROTOCOL_NAME:"network.protocol.name",ATTR_NETWORK_PROTOCOL_VERSION:"network.protocol.version",ATTR_NETWORK_TRANSPORT:"network.transport",NETWORK_TRANSPORT_VALUE_PIPE:"pipe",NETWORK_TRANSPORT_VALUE_QUIC:"quic",NETWORK_TRANSPORT_VALUE_TCP:"tcp",NETWORK_TRANSPORT_VALUE_UDP:"udp",NETWORK_TRANSPORT_VALUE_UNIX:"unix",ATTR_NETWORK_TYPE:"network.type",NETWORK_TYPE_VALUE_IPV4:"ipv4",NETWORK_TYPE_VALUE_IPV6:"ipv6",ATTR_OTEL_EVENT_NAME:"otel.event.name",ATTR_OTEL_SCOPE_NAME:"otel.scope.name",ATTR_OTEL_SCOPE_VERSION:"otel.scope.version",ATTR_OTEL_STATUS_CODE:"otel.status_code",OTEL_STATUS_CODE_VALUE_ERROR:"ERROR",OTEL_STATUS_CODE_VALUE_OK:"OK",ATTR_OTEL_STATUS_DESCRIPTION:"otel.status_description",ATTR_SERVER_ADDRESS:yc,ATTR_SERVER_PORT:Ac,ATTR_SERVICE_INSTANCE_ID:"service.instance.id",ATTR_SERVICE_NAME:bc,ATTR_SERVICE_NAMESPACE:"service.namespace",ATTR_SERVICE_VERSION:"service.version",ATTR_SIGNALR_CONNECTION_STATUS:"signalr.connection.status",SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:"app_shutdown",SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:"normal_closure",SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:"timeout",ATTR_SIGNALR_TRANSPORT:"signalr.transport",SIGNALR_TRANSPORT_VALUE_LONG_POLLING:"long_polling",SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:"server_sent_events",SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:"web_sockets",ATTR_TELEMETRY_DISTRO_NAME:"telemetry.distro.name",ATTR_TELEMETRY_DISTRO_VERSION:"telemetry.distro.version",ATTR_TELEMETRY_SDK_LANGUAGE:es,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:"cpp",TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:"dotnet",TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:"erlang",TELEMETRY_SDK_LANGUAGE_VALUE_GO:"go",TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:"java",TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:"nodejs",TELEMETRY_SDK_LANGUAGE_VALUE_PHP:"php",TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:"python",TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:"ruby",TELEMETRY_SDK_LANGUAGE_VALUE_RUST:"rust",TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:"swift",TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:aS,ATTR_TELEMETRY_SDK_NAME:Do,ATTR_TELEMETRY_SDK_VERSION:Po,ATTR_URL_FRAGMENT:"url.fragment",ATTR_URL_FULL:Mr,ATTR_URL_PATH:"url.path",ATTR_URL_QUERY:"url.query",ATTR_URL_SCHEME:"url.scheme",ATTR_USER_AGENT_ORIGINAL:cS,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:"aspnetcore.diagnostics.exceptions",METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:"aspnetcore.rate_limiting.active_request_leases",METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:"aspnetcore.rate_limiting.queued_requests",METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:"aspnetcore.rate_limiting.request.time_in_queue",METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:"aspnetcore.rate_limiting.request_lease.duration",METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:"aspnetcore.rate_limiting.requests",METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:"aspnetcore.rout
1ing.match_attempts",METRIC_DB_CLIENT_OPERATION_DURATION:"db.client.operation.duration",METRIC_DOTNET_ASSEMBLY_COUNT:"dotnet.assembly.count",METRIC_DOTNET_EXCEPTIONS:"dotnet.exceptions",METRIC_DOTNET_GC_COLLECTIONS:"dotnet.gc.collections",METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:"dotnet.gc.heap.total_allocated",METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:"dotnet.gc.last_collection.heap.fragmentation.size",METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:"dotnet.gc.last_collection.heap.size",METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:"dotnet.gc.last_collection.memory.committed_size",METRIC_DOTNET_GC_PAUSE_TIME:"dotnet.gc.pause.time",METRIC_DOTNET_JIT_COMPILATION_TIME:"dotnet.jit.compilation.time",METRIC_DOTNET_JIT_COMPILED_IL_SIZE:"dotnet.jit.compiled_il.size",METRIC_DOTNET_JIT_COMPILED_METHODS:"dotnet.jit.compiled_methods",METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:"dotnet.monitor.lock_contentions",METRIC_DOTNET_PROCESS_CPU_COUNT:"dotnet.process.cpu.count",METRIC_DOTNET_PROCESS_CPU_TIME:"dotnet.process.cpu.time",METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:"dotnet.process.memory.working_set",METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:"dotnet.thread_pool.queue.length",METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:"dotnet.thread_pool.thread.count",METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:"dotnet.thread_pool.work_item.count",METRIC_DOTNET_TIMER_COUNT:"dotnet.timer.count",METRIC_HTTP_CLIENT_REQUEST_DURATION:"http.client.request.duration",METRIC_HTTP_SERVER_REQUEST_DURATION:"http.server.request.duration",METRIC_JVM_CLASS_COUNT:"jvm.class.count",METRIC_JVM_CLASS_LOADED:"jvm.class.loaded",METRIC_JVM_CLASS_UNLOADED:"jvm.class.unloaded",METRIC_JVM_CPU_COUNT:"jvm.cpu.count",METRIC_JVM_CPU_RECENT_UTILIZATION:"jvm.cpu.recent_utilization",METRIC_JVM_CPU_TIME:"jvm.cpu.time",METRIC_JVM_GC_DURATION:"jvm.gc.duration",METRIC_JVM_MEMORY_COMMITTED:"jvm.memory.committed",METRIC_JVM_MEMORY_LIMIT:"jvm.memory.limit",METRIC_JVM_MEMORY_USED:"jvm.memory.used",METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:"jvm.memory.used_after_last_gc",METRIC_JVM_THREAD_COUNT:"jvm.thread.count",METRIC_KESTREL_ACTIVE_CONNECTIONS:"kestrel.active_connections",METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:"kestrel.active_tls_handshakes",METRIC_KESTREL_CONNECTION_DURATION:"kestrel.connection.duration",METRIC_KESTREL_QUEUED_CONNECTIONS:"kestrel.queued_connections",METRIC_KESTREL_QUEUED_REQUESTS:"kestrel.queued_requests",METRIC_KESTREL_REJECTED_CONNECTIONS:"kestrel.rejected_connections",METRIC_KESTREL_TLS_HANDSHAKE_DURATION:"kestrel.tls_handshake.duration",METRIC_KESTREL_UPGRADED_CONNECTIONS:"kestrel.upgraded_connections",METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:"signalr.server.active_connections",METRIC_SIGNALR_SERVER_CONNECTION_DURATION:"signalr.server.connection.duration",EVENT_EXCEPTION:"exception"})),uS={name:"@hyperdx/instrumentation-sentry-node",version:"0.2.0"},Uo={},lS={exports:{}};(function(t,e){function n(r,o){var i=[],s=[];return o==null&&(o=function(a,u){return i[0]===u?"[Circular ~]":"[Circular ~."+s.slice(0,i.indexOf(u)).join(".")+"]"}),function(a,u){if(i.length>0){var c=i.indexOf(this);~c?i.splice(c+1):i.push(this),~c?s.splice(c,1/0,a):s.push(a),~i.indexOf(u)&&(u=o.call(this,a,u))}else i.push(u);return r==null?u:r.call(this,a,u)}}(t.exports=function(r,o,i,s){return JSON.stringify(r,n(o,s),i)}).getSerialize=n})(lS);var dS,pS,hS=lS.exports,ZL=se(hS);function fS(){return pS||(pS=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getEventProcessor=t.getSpanNameFromEvent=t.isSentryEventAnException=t.extractSpanEventsFromException=t.extractSemAttrsFromEvent=t.SEMATTRS_SENTRY_VERSION=t.SEMATTRS_EXCEPTION_THREAD_ID=t.SEMATTRS_EXCEPTION_TAGS=t.SEMATTRS_EXCEPTION_PARSED_STACKTRACE=t.SEMATTRS_EXCEPTION_MODULES=t.SEMATTRS_EXCEPTION_MODULE=t.SEMATTRS_EXCEPTION_MECHANISM=void 0;const e=Yi.__importStar(Ji),n=(wp||(wp=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.ExceptionEventName=void 0,Xi.ExceptionEventName="exception"),Xi),r=XL,o=uS,i=function(){if(dS)return Uo;dS=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.jsonToString=void 0;const a=Ji,u=Yi.__importDefault(hS);return Uo.jsonToString=c=>{try{return JSON.stringify(c)}catch(l){return a.diag.error("Failed to stringify json",l),(0,u.default)(c)}},Uo}(),s=e.default.trace.getTracer(o.name,o.version);t.SEMATTRS_EXCEPTION_MECHANISM="exception.mechanism",t.SEMATTRS_EXCEPTION_MODULE="exception.module",t.SEMATTRS_EXCEPTION_MODULES="exception.modules",t.SEMATTRS_EXCEPTION_PARSED_STACKTRACE="exception.parsed_stacktrace",t.SEMATTRS_EXCEPTION_TAGS="exception.tags",t.SEMATTRS_EXCEPTION_THREAD_ID="exception.thread_id",t.SEMATTRS_SENTRY_VERSION="sentry.version",t.extractSemAttrsFromEvent=(a,u,c)=>{var l,d,p,h,_,f;return{...c&&{[t.SEMATTRS_SENTRY_VERSION]:c}
1,...a.modules&&{[t.SEMATTRS_EXCEPTION_MODULES]:(0,i.jsonToString)(a.modules)},[t.SEMATTRS_EXCEPTION_TAGS]:(0,i.jsonToString)({culture:(l=a.contexts)===null||l===void 0?void 0:l.culture,dist:a.dist,environment:a.environment,mechanism:u.mechanism,release:a.release}),...((d=a.contexts)===null||d===void 0?void 0:d.app)&&{"app.build_type":a.contexts.app.build_type,"app.id":a.contexts.app.app_identifier,"app.memory":a.contexts.app.app_memory,"app.name":a.contexts.app.app_name,"app.start_time":a.contexts.app.app_start_time,"app.version":a.contexts.app.app_version},...((p=a.contexts)===null||p===void 0?void 0:p.response)&&{[r.SEMATTRS_HTTP_STATUS_CODE]:a.contexts.response.status_code,[r.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH]:a.contexts.response.body_size,...(a.contexts.response.headers&&Object.entries(a.contexts.response.headers).reduce((m,[E,S])=>(m[`http.response.header.${E}`]=S,m)),{})},...((h=a.contexts)===null||h===void 0?void 0:h.cloud_resource)&&{"cloud.provider":a.contexts.cloud_resource["cloud.provider"],"cloud.account.id":a.contexts.cloud_resource["cloud.account.id"],"cloud.region":a.contexts.cloud_resource["cloud.region"],"cloud.availability_zone":a.contexts.cloud_resource["cloud.availability_zone"],"cloud.platform":a.contexts.cloud_resource["cloud.platform"],"host.id":a.contexts.cloud_resource["host.id"],"host.type":a.contexts.cloud_resource["host.type"]},...((_=a.contexts)===null||_===void 0?void 0:_.os)&&{"os.build_id":a.contexts.os.build,"os.kernel_version":a.contexts.os.kernel_version,"os.type":a.contexts.os.name,"os.version":a.contexts.os.version},...((f=a.contexts)===null||f===void 0?void 0:f.device)&&{"device.id":a.contexts.device.device_unique_identifier,"device.manufacturer":a.contexts.device.manufacturer,"device.model.identifier":a.contexts.device.model_id,"device.model.name":a.contexts.device.model,"device.type":a.contexts.device.device_type,"device.battery_level":a.contexts.device.battery_level,"device.battery_status":a.contexts.device.battery_status,"device.orientation":a.contexts.device.orientation,"device.brand":a.contexts.device.brand,"device.sreen_resolution":a.contexts.device.screen_resolution,"device.screen_height_pixels":a.contexts.device.screen_height_pixels,"device.screen_width_pixels":a.contexts.device.screen_width_pixels,"device.screen_density":a.contexts.device.screen_density,"device.screen_dpi":a.contexts.device.screen_dpi,"device.online":a.contexts.device.online,"device.charging":a.contexts.device.charging,"device.supports_vibration":a.contexts.device.supports_vibration,"device.supports_accelerometer":a.contexts.device.supports_accelerometer,"device.supports_gyroscope":a.contexts.device.supports_gyroscope,"device.supports_audio":a.contexts.device.supports_audio,"device.supports_location_service":a.contexts.device.supports_location_service,"device.boot_time":a.contexts.device.boot_time,"device.low_memory":a.contexts.device.low_memory,"device.simulator":a.contexts.device.simulator,"device.memory_size":a.contexts.device.memory_size,"device.free_memory":a.contexts.device.free_memory,"device.usable_memory":a.contexts.device.usable_memory,"device.storage_size":a.contexts.device.storage_size,"device.free_storage":a.contexts.device.free_storage,"device.external_storage_size":a.contexts.device.external_storage_size,"device.external_free_storage":a.contexts.device.external_free_storage,"host.cpu.model.name":a.contexts.device.cpu_description,"host.cpu.count":a.contexts.device.processor_count,"host.cpu.frequency":a.contexts.device.processor_frequency},...a.server_name&&{"host.name":a.server_name}}},t.extractSpanEventsFromException=a=>({[r.SEMATTRS_EXCEPTION_MESSAGE]:a.value,[t.SEMATTRS_EXCEPTION_PARSED_STACKTRACE]:(0,i.jsonToString)(a.stacktrace),[r.SEMATTRS_EXCEPTION_TYPE]:a.type,...a.mechanism&&{[t.SEMATTRS_EXCEPTION_MECHANISM]:(0,i.jsonToString)(a.mechanism)},...a.module&&{[t.SEMATTRS_EXCEPTION_MODULE]:a.module},...a.thread_id&&{[t.SEMATTRS_EXCEPTION_THREAD_ID]:a.thread_id}}),t.isSentryEventAnException=a=>{var u,c;return((c=(u=a.exception)===null||u===void 0?void 0:u.values)===null||c===void 0?void 0:c.length)>0},t.getSpanNameFromEvent=a=>{var u;return a.message?a.message:[(u=a.exception)===null||u===void 0?void 0:u.values[0].type,a.transaction].join(" ")},t.getEventProcessor=(a,u)=>(c,l,d,p)=>{try{if(e.diag.debug("Received Sentry event",c),(0,t.isSentryEventAnException)(c)){let h=a;h==null&&(h=s,e.diag.debug("Using default tracer")),(({customAttributes:_,event:f,hint:m,sentryVersion:E,span:S,spanStatus:g,tracer:T})=>{var y,R;let O=S,A=!1;const D=1e3*f.timestamp,I=(0,t.extractSemAttrsFromEvent)(f,m,E);O==null&&(A=!0,O=T.startSpan((0,t.getSpanNameFromEvent)(f),{attributes:{..._,...I},startTime:D,kind:e.SpanKind.INTERNAL})),O.setStatus({code:g});for(const x of(R=(y=f.exception)===null||y===void 0?void 0:y.values)!==null&&R!==void 0?R:[])O.addEvent(n.ExceptionEventName,(0,t.extractSpanEventsFromException)(x));A&&O.end(D)})({customAttributes:p,event:c,hint:l,sentryVersion:u,span:d,spanStatus:e.SpanStatusCode.ERROR,tracer:h})}}catch(h){e.diag.error("Error processing event",h)}return c}}(gp)),gp}var xo={};class _S{emit(e){}enabled(){return!1}}const QL=new _S,ns=Symbol.for("io.opentelemetry.js.api.logs"),ko=globalThis,ES=new class{getLogger(t,e,n){return new _S}};class tD{constructor(e,n,r,o){this._provider=e,this.name=n,this.version=r,this.options=o}emit(e){this._getLogger().emit(e)}enabled(e){return this._getLogger().enabled(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):QL}}class mS{getLogger(e,n,r){var o;return(o=this._getDelegateLogger(e,n,r))!==null&&o!==void 0?o:new tD(this,e,n,r)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:ES}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,n,r){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,n,r)}}class Rc{constructor(){this._proxyLoggerProvider=new mS}static getInstance(){return this._instance||(this._instance=new Rc),this._instance}setGlobalLoggerProvider(e){return ko[ns]?this.getLoggerProvider():(ko[ns]=function(n,r,o){return i=>i===n?r:o}(1,e,ES),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,n;return(n=(e=ko[ns])===null||e===void 0?void 0:e.call(ko,1))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(e,n,r){return this.getLoggerProvider().getLogger(e,n,r)}disable(){delete ko[ns],this._proxyLoggerProvider=new mS}}const gS=Rc.getInstance();function SS(t){var i;const e=t.tracerProvider||Q.getTracerProvider(),n=t.meterProvider||Ki.getMeterProvider(),r=t.loggerProvider||gS.getLoggerProvider(),o=((i=t.instrumentations)==null?void 0:i.flat())??[];return function(s,a,u,c){for(let l=0,d=s.length;l<d;l++){const p=s[l];a&&p.setTracerProvider(a),u&&p.setMeterProvider(u),c&&p.setLoggerProvider&&p.setLoggerProvider(c),p.getConfig().enabled||p.enable()}}(o,e,n,r),()=>
1{(function(s){s.forEach(a=>a.disable())})(o)}}let ae=console.error.bind(console);function Bo(t,e,n){const r=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}const TS=(t,e,n)=>{if(!t||!t[e])return void ae("no original function "+String(e)+" to wrap");if(!n)return ae("no wrapper function"),void ae(new Error().stack);const r=t[e];if(typeof r!="function"||typeof n!="function")return void ae("original object and wrapper must be functions");const o=n(r,e);return Bo(o,"__original",r),Bo(o,"__unwrap",()=>{t[e]===o&&Bo(t,e,r)}),Bo(o,"__wrapped",!0),Bo(t,e,o),o},eD=(t,e,n)=>{if(!t)return ae("must provide one or more modules to patch"),void ae(new Error().stack);Array.isArray(t)||(t=[t]),e&&Array.isArray(e)?t.forEach(r=>{e.forEach(o=>{TS(r,o,n)})}):ae("must provide one or more functions to wrap on modules")},vS=(t,e)=>{if(!t||!t[e])return ae("no function to unwrap."),void ae(new Error().stack);const n=t[e];n.__unwrap?n.__unwrap():ae("no original to unwrap to -- has "+String(e)+" already been unwrapped?")},nD=(t,e)=>{if(!t)return ae("must provide one or more modules to patch"),void ae(new Error().stack);Array.isArray(t)||(t=[t]),e&&Array.isArray(e)?t.forEach(n=>{e.forEach(r=>{vS(n,r)})}):ae("must provide one or more functions to unwrap on modules")};class rD{constructor(e,n,r){b(this,"_config",{});b(this,"_tracer");b(this,"_meter");b(this,"_logger");b(this,"_diag");b(this,"instrumentationName");b(this,"instrumentationVersion");b(this,"_wrap",TS);b(this,"_unwrap",vS);b(this,"_massWrap",eD);b(this,"_massUnwrap",nD);this.instrumentationName=e,this.instrumentationVersion=n,this.setConfig(r),this._diag=F.createComponentLogger({namespace:e}),this._tracer=Q.getTracer(e,n),this._meter=Ki.getMeter(e,n),this._logger=gS.getLogger(e,n),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(){const e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,n,r,o){if(e)try{e(r,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},i)}}}class ge extends rD{constructor(e,n,r){super(e,n,r),this._config.enabled&&this.enable()}}function wr(t,e,n){let r,o;try{o=t()}catch(i){r=i}finally{if(e(r,o),r&&!n)throw r;return o}}var tt;function rs(t,e){let n=tt.OLD;const r=e==null?void 0:e.split(",").map(o=>o.trim()).filter(o=>o!=="");for(const o of r??[]){if(o.toLowerCase()===t+"/dup"){n=tt.DUPLICATE;break}o.toLowerCase()===t&&(n=tt.STABLE)}return n}(function(t){t[t.STABLE=1]="STABLE",t[t.OLD=2]="OLD",t[t.DUPLICATE=3]="DUPLICATE"})(tt||(tt={}));var yS,AS,oD=Object.freeze({__proto__:null,registerInstrumentations:SS,InstrumentationBase:ge,InstrumentationNodeModuleDefinition:class{constructor(t,e,n,r,o){b(this,"files");b(this,"name");b(this,"supportedVersions");b(this,"patch");b(this,"unpatch");this.files=o||[],this.name=t,this.supportedVersions=e,this.patch=n,this.unpatch=r}},InstrumentationNodeModuleFile:class{constructor(t,e,n,r){b(this,"name");b(this,"supportedVersions");b(this,"patch");b(this,"unpatch");this.name=function(o){return F.warn("Path normalization is not implemented for this platform. To silence this warning, ensure no node-specific instrumentations are loaded, and node-specific types (e.g. InstrumentationNodeModuleFile), are not used in a browser context)"),o}(t),this.supportedVersions=e,this.patch=n,this.unpatch=r}},isWrapped:function(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0},safeExecuteInTheMiddle:wr,safeExecuteInTheMiddleAsync:async function(t,e,n){let r,o;try{o=await t()}catch(i){r=i}finally{if(await e(r,o),r&&!n)throw r;return o}},get SemconvStability(){return tt},semconvStabilityFromStr:rs}),bS=qe(oD),RS={};function iD(){if(AS)return xo;AS=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.SentryNodeInstrumentation=void 0;const t=Ji,e=bS,n=uS,r=(yS||(yS=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.hyperdxIntegration=i._hyperdxIntegration=void 0;const s=fS();i._hyperdxIntegration=(a={})=>({name:"HyperDX",setupOnce(){},setup(u){var c;if(!u.on)return;const l=u.getSdkMetadata(),d=(0,s.getEventProcessor)(void 0,(c=l.sdk)===null||c===void 0?void 0:c.version);u.on("beforeSendEvent",(p,h)=>{d(p,h)})}}),i.hyperdxIntegration=i._hyperdxIntegration}(RS)),RS);class o extends e.InstrumentationBase{constructor(s={}){super(n.name,n.version,s)}setConfig(s={}){this._config=Object.assign({},s)}getConfig(){return this._config}init(){return[new e.InstrumentationNodeModuleDefinition("@sentry/node",[">=7.30.0 <9"],s=>(t.diag.debug(`Detected Sentry installed with SDK version: ${s.SDK_VERSION}`),this._wrap(s,"init",a=>(...u)=>{const c=a.apply(this,u);try{s.addIntegration instanceof Function?(s.addIntegration((0,r.hyperdxIntegration)()),t.diag.debug("Added HyperDX Sentry integration")):t.diag.error("Sentry SDK does not support addIntegration method")}catch(l){t.diag.error("Error adding HyperDX Sentry integration",l)}return c}),s),s=>{})]}}return xo.SentryNodeInstrumentation=o,xo}var OS,NS={};
1(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Yi;e.__exportStar(fS(),t),e.__exportStar(iD(),t),e.__exportStar((OS||(OS=1,Object.defineProperty(NS,"__esModule",{value:!0})),NS),t)})(Kd);var v={},Vo={},k={},Oc={},ut={};Object.defineProperty(ut,"__esModule",{value:!0});const IS=Object.prototype.toString;function Lr(t,e){return IS.call(t)===`[object ${e}]`}function CS(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function MS(t){return Lr(t,"Object")}function os(t,e){try{return t instanceof e}catch{return!1}}ut.isDOMError=function(t){return Lr(t,"DOMError")},ut.isDOMException=function(t){return Lr(t,"DOMException")},ut.isElement=function(t){return typeof Element<"u"&&os(t,Element)},ut.isError=function(t){switch(IS.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return os(t,Error)}},ut.isErrorEvent=function(t){return Lr(t,"ErrorEvent")},ut.isEvent=function(t){return typeof Event<"u"&&os(t,Event)},ut.isInstanceOf=os,ut.isParameterizedString=CS,ut.isPlainObject=MS,ut.isPrimitive=function(t){return t===null||CS(t)||typeof t!="object"&&typeof t!="function"},ut.isRegExp=function(t){return Lr(t,"RegExp")},ut.isString=function(t){return Lr(t,"String")},ut.isSyntheticEvent=function(t){return MS(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t},ut.isThenable=function(t){return!!(t&&t.then&&typeof t.then=="function")},ut.isVueViewModel=function(t){return!(typeof t!="object"||t===null||!t.__isVue&&!t._isVue)};var Ke={};Object.defineProperty(Ke,"__esModule",{value:!0});const is=ut;function wS(t,e,n=!1){return!!is.isString(t)&&(is.isRegExp(e)?e.test(t):!!is.isString(e)&&(n?t===e:t.includes(e)))}Ke.isMatchingPattern=wS,Ke.safeJoin=function(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const o=t[r];try{is.isVueViewModel(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(e)},Ke.snipLine=function(t,e){let n=t;const r=n.length;if(r<=150)return n;e>r&&(e=r);let o=Math.max(e-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n},Ke.stringMatchesSomePattern=function(t,e=[],n=!1){return e.some(r=>wS(t,r,n))},Ke.truncate=function(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`},Object.defineProperty(Oc,"__esModule",{value:!0});const Nc=ut,sD=Ke;function Ic(t,e,n,r,o,i,s,a){if(i.length>=n+1)return i;let u=[...i];if(Nc.isInstanceOf(r[o],Error)){LS(s,a);const c=t(e,r[o]),l=u.length;DS(c,o,l,a),u=Ic(t,e,n,r[o],o,[c,...u],c,l)}return Array.isArray(r.errors)&&r.errors.forEach((c,l)=>{if(Nc.isInstanceOf(c,Error)){LS(s,a);const d=t(e,c),p=u.length;DS(d,`errors[${l}]`,p,a),u=Ic(t,e,n,c,o,[d,...u],d,p)}}),u}function LS(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 DS(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}Oc.applyAggregateErrorsToEvent=function(t,e,n=250,r,o,i,s){if(!(i.exception&&i.exception.values&&s&&Nc.isInstanceOf(s.originalException,Error)))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var u,c;a&&(i.exception.values=(u=Ic(t,e,o,s.originalException,r,i.exception.values,a,0),c=n,u.map(l=>(l.value&&(l.value=sD.truncate(l.value,c)),l))))};var tr={},jt={},ss={};Object.defineProperty(ss,"__esModule",{value:!0}),ss.SDK_VERSION="8.7.0",Object.defineProperty(jt,"__esModule",{value:!0});const PS=ss,US=globalThis;jt.GLOBAL_OBJ=US,jt.getGlobalSingleton=function(t,e,n){const r=n||US,o=r.__SENTRY__=r.__SENTRY__||{},i=o[PS.SDK_VERSION]=o[PS.SDK_VERSION]||{};return i[t]||(i[t]=e())},Object.defineProperty(tr,"__esModule",{value:!0});const aD=ut,Dr=jt.GLOBAL_OBJ;function cD(t,e){const n=t,r=[];let o,i,s,a,u;if(!n||!n.tagName)return"";if(Dr.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const c=e&&e.length?e.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(c&&c.length)c.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&aD.isString(o))for(i=o.split(/\s+/),u=0;u<i.length;u++)r.push(`.${i[u]}`);const l=["aria-label","type","name","title","alt"];for(u=0;
1u<l.length;u++)s=l[u],a=n.getAttribute(s),a&&r.push(`[${s}="${a}"]`);return r.join("")}tr.getComponentName=function(t){if(!Dr.HTMLElement)return null;let e=t;for(let n=0;n<5;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},tr.getDomElement=function(t){return Dr.document&&Dr.document.querySelector?Dr.document.querySelector(t):null},tr.getLocationHref=function(){try{return Dr.document.location.href}catch{return""}},tr.htmlTreeAsString=function(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,o=[];let i=0,s=0;const a=" > ",u=a.length;let c;const l=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&i++<r&&(c=cD(n,l),!(c==="html"||i>1&&s+o.length*u+c.length>=d));)o.push(c),s+=c.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}};var Pr={},pn={};Object.defineProperty(pn,"__esModule",{value:!0});const uD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;pn.DEBUG_BUILD=uD;var ce={};Object.defineProperty(ce,"__esModule",{value:!0});const lD=pn,Cc=jt,Mc=["debug","info","warn","error","log","assert","trace"],wc={};function xS(t){if(!("console"in Cc.GLOBAL_OBJ))return t();const e=Cc.GLOBAL_OBJ.console,n={},r=Object.keys(wc);r.forEach(o=>{const i=wc[o];n[o]=e[o],e[o]=i});try{return t()}finally{r.forEach(o=>{e[o]=n[o]})}}const dD=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return lD.DEBUG_BUILD?Mc.forEach(n=>{e[n]=(...r)=>{t&&xS(()=>{Cc.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...r)})}}):Mc.forEach(n=>{e[n]=()=>{}}),e}();ce.CONSOLE_LEVELS=Mc,ce.consoleSandbox=xS,ce.logger=dD,ce.originalConsoleMethods=wc,Object.defineProperty(Pr,"__esModule",{value:!0});const pD=pn,Fo=ce,hD=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function kS(t){const e=hD.exec(t);if(!e)return void Fo.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[n,r,o="",i,s="",a]=e.slice(1);let u="",c=a;const l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){const d=c.match(/^\d+/);d&&(c=d[0])}return BS({host:i,pass:o,path:u,projectId:c,port:s,protocol:n,publicKey:r})}function BS(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}Pr.dsnFromString=kS,Pr.dsnToString=function(t,e=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`},Pr.makeDsn=function(t){const e=typeof t=="string"?kS(t):BS(t);if(e&&function(n){if(!pD.DEBUG_BUILD)return!0;const{port:r,projectId:o,protocol:i}=n;return!(["protocol","publicKey","host","projectId"].find(s=>!n[s]&&(Fo.logger.error(`Invalid Sentry Dsn: ${s} missing`),!0))||(o.match(/^\d+$/)?function(s){return s==="http"||s==="https"}(i)?r&&isNaN(parseInt(r,10))&&(Fo.logger.error(`Invalid Sentry Dsn: Invalid port ${r}`),1):(Fo.logger.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(Fo.logger.error(`Invalid Sentry Dsn: Invalid projectId ${o}`),1)))}(e))return e};var as={};Object.defineProperty(as,"__esModule",{value:!0});class fD extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}as.SentryError=fD;var Lc={},xt={};Object.defineProperty(xt,"__esModule",{value:!0});const _D=tr,ED=pn,Ur=ut,mD=ce,VS=Ke;function FS(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{ED.DEBUG_BUILD&&mD.logger.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function GS(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,FS(t,"__sentry_original__",e)}catch{}}function jS(t){if(Ur.isError(t))return{message:t.message,name:t.name,stack:t.stack,...YS(t)};if(Ur.isEvent(t)){const e={type:t.type,target:HS(t.target),currentTarget:HS(t.currentTarget),...YS(t)};return typeof CustomEvent<"u"&&Ur.isInstanceOf(t,CustomEvent)&&(e.detail=t.detail),e}return t}function HS(t){try{return Ur.isElement(t)?_D.htmlTreeAsString(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function YS(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function Dc(t,e){if(function(n){if(!Ur.isPlainObject(n))return!1;try{const r=Object.getPrototypeOf(n).constructor.name;return!r||r==="Object"}catch{return!0}}(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const o of Object.keys(t))t[o]!==void 0&&(r[o]=Dc(t[o],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach(o=>{r.push(Dc(o,e))}),r}return t}xt.addNonEnumerableProperty=FS,xt.convertToPlainObject=jS,xt.dropUndefinedKeys=function(t){return Dc(t,new Map)},xt.extractExceptionKeysForMessage=function(t,e=40){const n=Object.keys(jS(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return VS.truncate(n[0],e);for(let r=n.length;r>0;r--){const o=n.slice(0,r).join(", ");
1if(!(o.length>e))return r===n.length?o:VS.truncate(o,e)}return""},xt.fill=function(t,e,n){if(!(e in t))return;const r=t[e],o=n(r);typeof o=="function"&&GS(o,r),t[e]=o},xt.getOriginalFunction=function(t){return t.__sentry_original__},xt.markFunctionWrapped=GS,xt.objectify=function(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 Ur.isPrimitive(t):e=new t.constructor(t);break;default:e=t}return e},xt.urlEncode=function(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")};var Je={},Ue={};Object.defineProperty(Ue,"__esModule",{value:!0});const $S=50,zS="?",WS=/\(error: (.*)\)/,qS=/captureMessage|captureException/;function KS(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const i=[],s=n.split(` 2`);for(let a=r;a<s.length;a++){const u=s[a];if(u.length>1024)continue;const c=WS.test(u)?u.replace(WS,"$1"):u;if(!c.match(/\S*Error: /)){for(const l of e){const d=l(c);if(d){i.push(d);break}}if(i.length>=$S+o)break}}return JS(i.slice(o))}}function JS(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),qS.test(e[e.length-1].function||"")&&(e.pop(),qS.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,$S).map(n=>({...n,filename:n.filename||e[e.length-1].filename,function:n.function||zS}))}const XS="<anonymous>";Ue.UNKNOWN_FUNCTION=zS,Ue.createStackParser=KS,Ue.getFunctionName=function(t){try{return t&&typeof t=="function"&&t.name||XS}catch{return XS}},Ue.stackParserFromStackParserOptions=function(t){return Array.isArray(t)?KS(...t):t},Ue.stripSentryFramesAndReverse=JS,Object.defineProperty(Je,"__esModule",{value:!0});const gD=pn,SD=ce,TD=Ue,xr={},ZS={};Je.addHandler=function(t,e){xr[t]=xr[t]||[],xr[t].push(e)},Je.maybeInstrument=function(t,e){ZS[t]||(e(),ZS[t]=!0)},Je.resetInstrumentationHandlers=function(){Object.keys(xr).forEach(t=>{xr[t]=void 0})},Je.triggerHandlers=function(t,e){const n=t&&xr[t];if(n)for(const r of n)try{r(e)}catch(o){gD.DEBUG_BUILD&&SD.logger.error(`Error while triggering instrumentation handler. 3Type: ${t} 4Name: ${TD.getFunctionName(r)} 5Error:`,o)}},Object.defineProperty(Lc,"__esModule",{value:!0});const Pc=ce,vD=xt,cs=jt,Uc=Je;function yD(){"console"in cs.GLOBAL_OBJ&&Pc.CONSOLE_LEVELS.forEach(function(t){t in cs.GLOBAL_OBJ.console&&vD.fill(cs.GLOBAL_OBJ.console,t,function(e){return Pc.originalConsoleMethods[t]=e,function(...n){const r={args:n,level:t};Uc.triggerHandlers("console",r);const o=Pc.originalConsoleMethods[t];o&&o.apply(cs.GLOBAL_OBJ.console,n)}})})}Lc.addConsoleInstrumentationHandler=function(t){const e="console";Uc.addHandler(e,t),Uc.maybeInstrument(e,yD)};var us={},xe={};Object.defineProperty(xe,"__esModule",{value:!0});const AD=pn,bD=ce,ls=jt.GLOBAL_OBJ;function xc(){if(!("fetch"in ls))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function kc(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}xe.isNativeFunction=kc,xe.supportsDOMError=function(){try{return new DOMError(""),!0}catch{return!1}},xe.supportsDOMException=function(){try{return new DOMException(""),!0}catch{return!1}},xe.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch{return!1}},xe.supportsFetch=xc,xe.supportsNativeFetch=function(){if(typeof EdgeRuntime=="string")return!0;if(!xc())return!1;if(kc(ls.fetch))return!0;let t=!1;const e=ls.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");
5n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=kc(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){AD.DEBUG_BUILD&&bD.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t},xe.supportsReferrerPolicy=function(){if(!xc())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}},xe.supportsReportingObserver=function(){return"ReportingObserver"in ls};var Se={};Object.defineProperty(Se,"__esModule",{value:!0});const QS=jt,tT=1e3;function eT(){return Date.now()/tT}const RD=function(){const{performance:t}=QS.GLOBAL_OBJ;if(!t||!t.now)return eT;const e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/tT}();Se._browserPerformanceTimeOriginMode=void 0;const OD=(()=>{const{performance:t}=QS.GLOBAL_OBJ;if(!t||!t.now)return void(Se._browserPerformanceTimeOriginMode="none");const e=36e5,n=t.now(),r=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=o<e,s=t.timing&&t.timing.navigationStart,a=typeof s=="number"?Math.abs(s+n-r):e;return i||a<e?o<=a?(Se._browserPerformanceTimeOriginMode="timeOrigin",t.timeOrigin):(Se._browserPerformanceTimeOriginMode="navigationStart",s):(Se._browserPerformanceTimeOriginMode="dateNow",r)})();Se.browserPerformanceTimeOrigin=OD,Se.dateTimestampInSeconds=eT,Se.timestampInSeconds=RD,Object.defineProperty(us,"__esModule",{value:!0});const ND=xt,ID=xe,Bc=Se,nT=jt,Go=Je;function CD(){ID.supportsNativeFetch()&&ND.fill(nT.GLOBAL_OBJ,"fetch",function(t){return function(...e){const{method:n,url:r}=oT(e),o={args:e,fetchData:{method:n,url:r},startTimestamp:1e3*Bc.timestampInSeconds()};return Go.triggerHandlers("fetch",{...o}),t.apply(nT.GLOBAL_OBJ,e).then(i=>{const s={...o,endTimestamp:1e3*Bc.timestampInSeconds(),response:i};return Go.triggerHandlers("fetch",s),i},i=>{const s={...o,endTimestamp:1e3*Bc.timestampInSeconds(),error:i};throw Go.triggerHandlers("fetch",s),i})}})}function Vc(t,e){return!!t&&typeof t=="object"&&!!t[e]}function rT(t){return typeof t=="string"?t:t?Vc(t,"url")?t.url:t.toString?t.toString():"":""}function oT(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:rT(n),method:Vc(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:rT(e),method:Vc(e,"method")?String(e.method).toUpperCase():"GET"}}us.addFetchInstrumentationHandler=function(t){const e="fetch";Go.addHandler(e,t),Go.maybeInstrument(e,CD)},us.parseFetchArgs=oT;var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});const Gc=jt,jc=Je;let ds=null;function MD(){ds=Gc.GLOBAL_OBJ.onerror,Gc.GLOBAL_OBJ.onerror=function(t,e,n,r,o){const i={column:r,error:o,line:n,msg:t,url:e};return jc.triggerHandlers("error",i),!(!ds||ds.__SENTRY_LOADER__)&&ds.apply(this,arguments)},Gc.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}Fc.addGlobalErrorInstrumentationHandler=function(t){const e="error";jc.addHandler(e,t),jc.maybeInstrument(e,MD)};var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});const Yc=jt,$c=Je;let ps=null;function wD(){ps=Yc.GLOBAL_OBJ.onunhandledrejection,Yc.GLOBAL_OBJ.onunhandledrejection=function(t){const e=t;return $c.triggerHandlers("unhandledrejection",e),!(ps&&!ps.__SENTRY_LOADER__)||ps.apply(this,arguments)},Yc.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}Hc.addGlobalUnhandledRejectionInstrumentationHandler=function(t){const e="unhandledrejection";$c.addHandler(e,t),$c.maybeInstrument(e,wD)};var zc={},Wc={exports:{}},jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.getSDKSource=function(){return"npm"},jo.isBrowserBundle=function(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=jo;function r(o,i){return o.require(i)}e.dynamicRequire=r,e.isNodeEnv=function(){return!n.isBrowserBundle()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"},e.loadModule=function(o){let i;try{i=r(t,o)}catch{}try{const{cwd:s}=r(t,"process");i=r(t,`${s()}/node_modules/${o}`)}catch{}return i}}
5(Wc,Wc.exports);var iT=Wc.exports;Object.defineProperty(zc,"__esModule",{value:!0});const LD=iT,sT=jt;zc.isBrowser=function(){return typeof window<"u"&&(!LD.isNodeEnv()||sT.GLOBAL_OBJ.process!==void 0&&sT.GLOBAL_OBJ.process.type==="renderer")};var hs={};Object.defineProperty(hs,"__esModule",{value:!0}),hs.memoBuilder=function(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let r=0;r<e.length;r++)if(e[r]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let r=0;r<e.length;r++)if(e[r]===n){e.splice(r,1);break}}]};var ue={};Object.defineProperty(ue,"__esModule",{value:!0});const DD=xt,qc=Ke,PD=jt;function aT(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}const UD=/^(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-]+)*))?$/;ue.addContextToFrame=function(t,e,n=5){if(e.lineno===void 0)return;const r=t.length,o=Math.max(Math.min(r-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,o-n),o).map(i=>qc.snipLine(i,0)),e.context_line=qc.snipLine(t[Math.min(r-1,o)],e.colno||0),e.post_context=t.slice(Math.min(o+1,r),o+1+n).map(i=>qc.snipLine(i,0))},ue.addExceptionMechanism=function(t,e){const n=aT(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const o={...r&&r.data,...e.data};n.mechanism.data=o}},ue.addExceptionTypeValue=function(t,e,n){const r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")},ue.arrayify=function(t){return Array.isArray(t)?t:[t]},ue.checkOrSetAlreadyCaught=function(t){if(t&&t.__sentry_captured__)return!0;try{DD.addNonEnumerableProperty(t,"__sentry_captured__",!0)}catch{}return!1},ue.getEventDescription=function(t){const{message:e,event_id:n}=t;if(e)return e;const r=aT(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"},ue.parseSemver=function(t){const e=t.match(UD)||[],n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10);return{buildmetadata:e[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(o)?void 0:o,prerelease:e[4]}},ue.uuid4=function(){const t=PD.GLOBAL_OBJ,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(15&n())>>r/4).toString(16))};var Un={};Object.defineProperty(Un,"__esModule",{value:!0});const cT=ut,xD=hs,kD=xt,BD=Ue;function uT(t,e=100,n=1/0){try{return Kc("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Kc(t,e,n=1/0,r=1/0,o=xD.memoBuilder()){const[i,s]=o;if(e==null||["number","boolean","string"].includes(typeof e)&&!Number.isNaN(e))return e;const a=function(h,_){try{if(h==="domain"&&_&&typeof _=="object"&&_._events)return"[Domain]";if(h==="domainEmitter")return"[DomainEmitter]";if(Et!==void 0&&_===Et)return"[Global]";if(typeof window<"u"&&_===window)return"[Window]";if(typeof document<"u"&&_===document)return"[Document]";if(cT.isVueViewModel(_))return"[VueViewModel]";if(cT.isSyntheticEvent(_))return"[SyntheticEvent]";if(typeof _=="number"&&_!=_)return"[NaN]";if(typeof _=="function")return`[Function: ${BD.getFunctionName(_)}]`;if(typeof _=="symbol")return`[${String(_)}]`;if(typeof _=="bigint")return`[BigInt: ${String(_)}]`;const f=function(m){const E=Object.getPrototypeOf(m);return E?E.constructor.name:"null prototype"}(_);return/^HTML(\w*)Element$/.test(f)?`[HTMLElement: ${f}]`:`[object ${f}]`}catch(f){return`**non-serializable** (${f})`}}(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(u===0)return a.replace("object ","");if(i(e))return"[Circular ~]";const c=e;if(c&&typeof c.toJSON=="function")try{return Kc("",c.toJSON(),u-1,r,o)}catch{}const l=Array.isArray(e)?[]:{};let d=0;const p=kD.convertToPlainObject(e);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(d>=r){l[h]="[MaxProperties ~]";break}const _=p[h];l[h]=Kc(h,_,u-1,r,o),d++}return s(e),l}Un.normalize=uT,Un.normalizeToSize=function t(e,n=3,r=102400){const o=uT(e,n);return i=o,function(s){return~-encodeURI(s).split(/%..|./).length}(JSON.stringify(i))>r?t(e,n-1,r):o;var i},Un.normalizeUrlToBase=function(t,e){const n=e.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=t;try{r=decodeURI(t)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")};var hn={};function lT(t,e){let n=0;for(let r=t.length-1;r>=0;r--){const o=t[r];o==="."?t.splice(r,1):o===".."?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}Object.defineProperty(hn,"__esModule",{value:!0});const VD=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function dT(t){const e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,n=VD.exec(e);return n?n.slice(1):[]}
5function Jc(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const o=r>=0?t[r]:"/";o&&(e=`${o}/${e}`,n=o.charAt(0)==="/")}return e=lT(e.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+e||"."}function pT(t){let e=0;for(;e<t.length&&t[e]==="";e++);let n=t.length-1;for(;n>=0&&t[n]==="";n--);return e>n?[]:t.slice(e,n-e+1)}function hT(t){const e=fT(t),n=t.slice(-1)==="/";let r=lT(t.split("/").filter(o=>!!o),!e).join("/");return r||e||(r="."),r&&n&&(r+="/"),(e?"/":"")+r}function fT(t){return t.charAt(0)==="/"}hn.basename=function(t,e){let n=dT(t)[2];return e&&n.slice(-1*e.length)===e&&(n=n.slice(0,n.length-e.length)),n},hn.dirname=function(t){const e=dT(t),n=e[0];let r=e[1];return n||r?(r&&(r=r.slice(0,r.length-1)),n+r):"."},hn.isAbsolute=fT,hn.join=function(...t){return hT(t.join("/"))},hn.normalizePath=hT,hn.relative=function(t,e){t=Jc(t).slice(1),e=Jc(e).slice(1);const n=pT(t.split("/")),r=pT(e.split("/")),o=Math.min(n.length,r.length);let i=o;for(let a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}let s=[];for(let a=i;a<n.length;a++)s.push("..");return s=s.concat(r.slice(i)),s.join("/")},hn.resolve=Jc;var Xc={},kr={};Object.defineProperty(kr,"__esModule",{value:!0});const FD=ut;var fn;(function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"})(fn||(fn={}));class Xe{constructor(e){Xe.prototype.__init.call(this),Xe.prototype.__init2.call(this),Xe.prototype.__init3.call(this),Xe.prototype.__init4.call(this),this._state=fn.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new Xe((r,o)=>{this._handlers.push([!1,i=>{if(e)try{r(e(i))}catch(s){o(s)}else r(i)},i=>{if(n)try{r(n(i))}catch(s){o(s)}else o(i)}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new Xe((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,e&&e()},s=>{i=!0,o=s,e&&e()}).then(()=>{i?r(o):n(o)})})}__init(){this._resolve=e=>{this._setResult(fn.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(fn.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{this._state===fn.PENDING&&(FD.isThenable(n)?n.then(this._resolve,this._reject):(this._state=e,this._value=n,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===fn.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===fn.RESOLVED&&n[1](this._value),this._state===fn.REJECTED&&n[2](this._value),n[0]=!0)})}}}kr.SyncPromise=Xe,kr.rejectedSyncPromise=function(t){return new Xe((e,n)=>{n(t)})},kr.resolvedSyncPromise=function(t){return new Xe(e=>{e(t)})},Object.defineProperty(Xc,"__esModule",{value:!0});const GD=as,Zc=kr;Xc.makePromiseBuffer=function(t){const e=[];function n(r){return e.splice(e.indexOf(r),1)[0]}return{$:e,add:function(r){if(!(t===void 0||e.length<t))return Zc.rejectedSyncPromise(new GD.SentryError("Not adding Promise because buffer limit was reached."));const o=r();return e.indexOf(o)===-1&&e.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o},drain:function(r){return new Zc.SyncPromise((o,i)=>{let s=e.length;if(!s)return o(!0);const a=setTimeout(()=>{r&&r>0&&o(!1)},r);e.forEach(u=>{Zc.resolvedSyncPromise(u).then(()=>{--s||(clearTimeout(a),o(!0))},i)})})}}};var xn={},Qc={};Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.parseCookie=function(t){const e={};let n=0;for(;n<t.length;){const r=t.indexOf("=",n);if(r===-1)break;let o=t.indexOf(";",n);if(o===-1)o=t.length;else if(o<r){n=t.lastIndexOf(";",r-1)+1;continue}const i=t.slice(n,r).trim();if(e[i]===void 0){let s=t.slice(r+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}}n=o+1}return e};var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.getNumberOfUrlSegments=function(t){return t.split(/\\?\//).filter(e=>e.length>0&&e!==",").length},er.getSanitizedUrlString=function(t){const{protocol:e,host:n,path:r}=t;return`${e?`${e}://`:""}${n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${r}`},er.parseUrl=function(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}},er.stripUrlQueryAndFragment=function(t){return t.split(/[\?#]/,1
5)[0]},Object.defineProperty(xn,"__esModule",{value:!0});const jD=Qc,HD=pn,_T=ut,YD=ce,$D=Un,zD=er,WD={ip:!1,request:!0,transaction:!0,user:!0},qD=["cookies","data","headers","method","query_string","url"],ET=["id","username","email"];function tu(t,e={}){const n=t.method&&t.method.toUpperCase();let r="",o="url";e.customRoute||t.route?(r=e.customRoute||`${t.baseUrl||""}${t.route&&t.route.path}`,o="route"):(t.originalUrl||t.url)&&(r=zD.stripUrlQueryAndFragment(t.originalUrl||t.url||""));let i="";return e.method&&n&&(i+=n),e.method&&e.path&&(i+=" "),e.path&&r&&(i+=r),[i,o]}function eu(t,e){const{include:n=qD}=e||{},r={},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||"",c=u.startsWith(a)?u:`${a}://${s}${u}`;return n.forEach(l=>{switch(l){case"headers":r.headers=o,n.includes("cookies")||delete r.headers.cookie;break;case"method":r.method=i;break;case"url":r.url=c;break;case"cookies":r.cookies=t.cookies||o.cookie&&jD.parseCookie(o.cookie)||{};break;case"query_string":r.query_string=function(d){let p=d.originalUrl||d.url||"";if(p){p.startsWith("/")&&(p=`http://dogs.are.great${p}`);try{const h=d.query||new URL(p).search.slice(1);return h.length?h:void 0}catch{return}}}(t);break;case"data":if(i==="GET"||i==="HEAD")break;t.body!==void 0&&(r.data=_T.isString(t.body)?t.body:JSON.stringify($D.normalize(t.body)));break;default:({}).hasOwnProperty.call(t,l)&&(r[l]=t[l])}}),r}function mT(t){const e={};try{t.forEach((n,r)=>{typeof n=="string"&&(e[r]=n)})}catch{HD.DEBUG_BUILD&&YD.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return e}xn.DEFAULT_USER_INCLUDES=ET,xn.addRequestDataToEvent=function(t,e,n){const r={...WD,...n&&n.include};if(r.request){const o=Array.isArray(r.request)?eu(e,{include:r.request}):eu(e);t.request={...t.request,...o}}if(r.user){const o=e.user&&_T.isPlainObject(e.user)?function(i,s){const a={};return(Array.isArray(s)?s:ET).forEach(u=>{i&&u in i&&(a[u]=i[u])}),a}(e.user,r.user):{};Object.keys(o).length&&(t.user={...t.user,...o})}if(r.ip){const o=e.ip||e.socket&&e.socket.remoteAddress;o&&(t.user={...t.user,ip_address:o})}return r.transaction&&!t.transaction&&t.type==="transaction"&&(t.transaction=function(o,i){switch(i){case"path":return tu(o,{path:!0})[0];case"handler":return o.route&&o.route.stack&&o.route.stack[0]&&o.route.stack[0].name||"<anonymous>";default:return tu(o,{path:!0,method:!0,customRoute:o._reconstructedRoute?o._reconstructedRoute:void 0})[0]}}(e,r.transaction)),t},xn.extractPathForTransaction=tu,xn.extractRequestData=eu,xn.winterCGHeadersToDict=mT,xn.winterCGRequestToRequestData=function(t){const e=mT(t.headers);return{method:t.method,url:t.url,headers:e}};var fs={};Object.defineProperty(fs,"__esModule",{value:!0});const gT=["fatal","error","warning","log","info","debug"];fs.severityLevelFromString=function(t){return t==="warn"?"warning":gT.includes(t)?t:"log"},fs.validSeverityLevels=gT;var Br={};Object.defineProperty(Br,"__esModule",{value:!0});const KD=Ue;function ST(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 TT(t){const e=/^\s*[-]{4,}$/,n=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return r=>{const o=r.match(n);if(o){let i,s,a,u,c;if(o[1]){a=o[1];let p=a.lastIndexOf(".");if(a[p-1]==="."&&p--,p>0){i=a.slice(0,p),s=a.slice(p+1);const h=i.indexOf(".Module");h>0&&(a=a.slice(h+1),i=i.slice(0,h))}u=void 0}s&&(u=i,c=s),s==="<anonymous>"&&(c=void 0,a=void 0),a===void 0&&(c=c||KD.UNKNOWN_FUNCTION,a=u?`${u}.${c}`:c);let l=o[2]&&o[2].startsWith("file://")?o[2].slice(7):o[2];const d=o[5]==="native";return l&&l.match(/\/[A-Z]:/)&&(l=l.slice(1)),l||!o[5]||d||(l=o[5]),{filename:l,module:t?t(l):void 0,function:a,lineno:parseInt(o[3],10)||void 0,colno:parseInt(o[4],10)||void 0,in_app:ST(l,d)}}if(r.match(e))return{filename:r}}}Br.filenameIsInApp=ST,Br.node=TT,Br.nodeStackLineParser=function(t){return[90,TT(t)]};var Vr={},Ze={};
5Object.defineProperty(Ze,"__esModule",{value:!0});const JD=pn,XD=ut,ZD=ce,vT="sentry-",yT=/^sentry-/,AT=8192;function bT(t){if(t&&(XD.isString(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=RT(n);for(const o of Object.keys(r))e[o]=r[o];return e},{}):RT(t)}function RT(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(e[n]=r,e),{})}Ze.BAGGAGE_HEADER_NAME="baggage",Ze.MAX_BAGGAGE_STRING_LENGTH=AT,Ze.SENTRY_BAGGAGE_KEY_PREFIX=vT,Ze.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=yT,Ze.baggageHeaderToDynamicSamplingContext=function(t){const e=bT(t);if(!e)return;const n=Object.entries(e).reduce((r,[o,i])=>(o.match(yT)&&(r[o.slice(7)]=i),r),{});return Object.keys(n).length>0?n:void 0},Ze.dynamicSamplingContextToSentryBaggageHeader=function(t){if(t)return function(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((n,[r,o],i)=>{const s=`${encodeURIComponent(r)}=${encodeURIComponent(o)}`,a=i===0?s:`${n},${s}`;return a.length>AT?(JD.DEBUG_BUILD&&ZD.logger.warn(`Not adding key: ${r} with val: ${o} to baggage header due to exceeding baggage size limits.`),n):a},"")}(Object.entries(t).reduce((e,[n,r])=>(r&&(e[`${vT}${n}`]=r),e),{}))},Ze.parseBaggageHeader=bT,Object.defineProperty(Vr,"__esModule",{value:!0});const QD=Ze,nr=ue,OT=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function NT(t){if(!t)return;const e=t.match(OT);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}Vr.TRACEPARENT_REGEXP=OT,Vr.extractTraceparentData=NT,Vr.generateSentryTraceHeader=function(t=nr.uuid4(),e=nr.uuid4().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`},Vr.propagationContextFromHeaders=function(t,e){const n=NT(t),r=QD.baggageHeaderToDynamicSamplingContext(e),{traceId:o,parentSpanId:i,parentSampled:s}=n||{};return n?{traceId:o||nr.uuid4(),parentSpanId:i||nr.uuid4().substring(16),spanId:nr.uuid4().substring(16),sampled:s,dsc:r||{}}:{traceId:o||nr.uuid4(),spanId:nr.uuid4().substring(16)}};var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});const tP=Pr,eP=Un,IT=xt,Fr=jt;function CT(t,e){const n=t[1];for(const r of n)if(e(r,r[0].type))return!0;return!1}function _s(t){return Fr.GLOBAL_OBJ.__SENTRY__&&Fr.GLOBAL_OBJ.__SENTRY__.encodePolyfill?Fr.GLOBAL_OBJ.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}const nP={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};Qt.addItemToEnvelope=function(t,e){const[n,r]=t;return[n,[...r,e]]},Qt.createAttachmentEnvelopeItem=function(t){const e=typeof t.data=="string"?_s(t.data):t.data;return[IT.dropUndefinedKeys({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]},Qt.createEnvelope=function(t,e=[]){return[t,e]},Qt.createEventEnvelopeHeaders=function(t,e,n,r){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:tP.dsnToString(r)},...o&&{trace:IT.dropUndefinedKeys({...o})}}},Qt.createSpanEnvelopeItem=function(t){return[{type:"span"},t]},Qt.envelopeContainsItemType=function(t,e){return CT(t,(n,r)=>e.includes(r))},Qt.envelopeItemTypeToDataCategory=function(t){return nP[t]},Qt.forEachEnvelopeItem=CT,Qt.getSdkMetadataForEnvelopeHeader=function(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}},Qt.parseEnvelope=function(t){let e=typeof t=="string"?_s(t):t;function n(s){const a=e.subarray(0,s);return e=e.subarray(s+1),a}function r(){let s=e.indexOf(10);return s<0&&(s=e.length),JSON.parse((a=n(s),Fr.GLOBAL_OBJ.__SENTRY__&&Fr.GLOBAL_OBJ.__SENTRY__.decodePolyfill?Fr.GLOBAL_OBJ.__SENTRY__.decodePolyfill(a):new TextDecoder().decode(a)));var a}const o=r(),i=[];for(;e.length;){const s=r(),a=typeof s.length=="number"?s.length:void 0;i.push([s,a?n(a):r()])}return[o,i]},Qt.serializeEnvelope=function(t){const[e,n]=t;let r=JSON.stringify(e);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[_s(r),i]:r.push(typeof i=="string"?_s(i):i)}for(const i of n){const[s,a]=i;
5if(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(eP.normalize(a))}o(u)}}return typeof r=="string"?r:function(i){const s=i.reduce((c,l)=>c+l.length,0),a=new Uint8Array(s);let u=0;for(const c of i)a.set(c,u),u+=c.length;return a}(r)};var nu={};Object.defineProperty(nu,"__esModule",{value:!0});const rP=Qt,oP=Se;nu.createClientReportEnvelope=function(t,e,n){const r=[{type:"client_report"},{timestamp:n||oP.dateTimestampInSeconds(),discarded_events:t}];return rP.createEnvelope(e?{dsn:e}:{},[r])};var rr={};Object.defineProperty(rr,"__esModule",{value:!0});const MT=6e4;function wT(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?MT:r-e}function LT(t,e){return t[e]||t.all||0}rr.DEFAULT_RETRY_AFTER=MT,rr.disabledUntil=LT,rr.isRateLimited=function(t,e,n=Date.now()){return LT(t,e)>n},rr.parseRetryAfterHeader=wT,rr.updateRateLimits=function(t,{statusCode:e,headers:n},r=Date.now()){const o={...t},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const a of i.trim().split(",")){const[u,c,,,l]=a.split(":",5),d=parseInt(u,10),p=1e3*(isNaN(d)?60:d);if(c)for(const h of c.split(";"))h==="metric_bucket"&&l&&!l.split(";").includes("custom")||(o[h]=r+p);else o.all=r+p}else s?o.all=r+wT(s,r):e===429&&(o.all=r+6e4);return o};var ru={};Object.defineProperty(ru,"__esModule",{value:!0}),ru.makeFifoCache=function(t){let e=[],n={};return{add(r,o){for(;e.length>=t;){const i=e.shift();i!==void 0&&delete n[i]}n[r]&&this.delete(r),e.push(r),n[r]=o},clear(){n={},e=[]},get:r=>n[r],size:()=>e.length,delete(r){if(!n[r])return!1;delete n[r];for(let o=0;o<e.length;o++)if(e[o]===r){e.splice(o,1);break}return!0}}};var Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});const Es=ut,DT=ue,iP=Un,sP=xt;function ou(t,e){return t(e.stack||"",1)}function PT(t,e){const n={type:e.name||e.constructor.name,value:e.message},r=ou(t,e);return r.length&&(n.stacktrace={frames:r}),n}function aP(t){if("name"in t&&typeof t.name=="string"){let r=`'${t.name}' captured as exception`;return"message"in t&&typeof t.message=="string"&&(r+=` with message '${t.message}'`),r}if("message"in t&&typeof t.message=="string")return t.message;const e=sP.extractExceptionKeysForMessage(t);if(Es.isErrorEvent(t))return`Event \`ErrorEvent\` captured as exception with message \`${t.message}\``;const n=function(r){try{const o=Object.getPrototypeOf(r);return o?o.constructor.name:void 0}catch{}}(t);return`${n&&n!=="Object"?`'${n}'`:"Object"} captured as exception with keys: ${e}`}function cP(t,e,n,r){if(Es.isError(n))return[n,void 0];if(e.synthetic=!0,Es.isPlainObject(n)){const i=t&&t.getOptions().normalizeDepth,s={__serialized__:iP.normalizeToSize(n,i)},a=function(l){for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){const p=l[d];if(p instanceof Error)return p}}(n);if(a)return[a,s];const u=aP(n),c=r&&r.syntheticException||new Error(u);return c.message=u,[c,s]}const o=r&&r.syntheticException||new Error(n);return o.message=`${n}`,[o,void 0]}Gr.eventFromMessage=function(t,e,n="info",r,o){const i={event_id:r&&r.event_id,level:n};if(o&&r&&r.syntheticException){const s=ou(t,r.syntheticException);s.length&&(i.exception={values:[{value:e,stacktrace:{frames:s}}]})}if(Es.isParameterizedString(e)){const{__sentry_template_string__:s,__sentry_template_values__:a}=e;return i.logentry={message:s,params:a},i}return i.message=e,i},Gr.eventFromUnknownInput=function(t,e,n,r){const o=r&&r.data&&r.data.mechanism||{handled:!0,type:"generic"},[i,s]=cP(t,o,n,r),a={exception:{values:[PT(e,i)]}};return s&&(a.extra=s),DT.addExceptionTypeValue(a,void 0,void 0),DT.addExceptionMechanism(a,o),{...a,event_id:r&&r.event_id}},Gr.exceptionFromError=PT,Gr.parseStackFrames=ou;var ms={};Object.defineProperty(ms,"__esModule",{value:!0});const uP=Br,lP=xt,dP=Ue;ms.callFrameToStackFrame=function(t,e,n){const r=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 lP.dropUndefinedKeys({filename:r,module:n(r),function:t.functionName||dP.UNKNOWN_FUNCTION,colno:o,lineno:i,in_app:r?uP.filenameIsInApp(r):void 0})},ms.watchdogTimer=function(t,e,n,r){const o=t();let i=!1,s=!0;return setInterval(()=>{const a=o.getTimeMs();i===!1&&a>e+n&&(i=!0,s&&r()),a<e+n&&(i=!1)},20),{poll:()=>{o.reset()},enabled:a=>{s=a}}};var iu={};
7Object.defineProperty(iu,"__esModule",{value:!0}),iu.LRUMap=class{constructor(t){this._maxSize=t,this._cache=new Map}get size(){return this._cache.size}get(t){const e=this._cache.get(t);if(e!==void 0)return this._cache.delete(t),this._cache.set(t,e),e}set(t,e){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(t,e)}remove(t){const e=this._cache.get(t);return e&&this._cache.delete(t),e}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const t=[];return this._cache.forEach(e=>t.push(e)),t}};var su={},gs={};Object.defineProperty(gs,"__esModule",{value:!0}),gs._nullishCoalesce=function(t,e){return t??e()},Object.defineProperty(su,"__esModule",{value:!0});const pP=gs;su._asyncNullishCoalesce=async function(t,e){return pP._nullishCoalesce(t,e)};var Ss={};Object.defineProperty(Ss,"__esModule",{value:!0}),Ss._asyncOptionalChain=async function(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],i=t[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(e=n,n=await i(n)):o!=="call"&&o!=="optionalCall"||(n=await i((...s)=>n.call(e,...s)),e=void 0)}return n};var au={};Object.defineProperty(au,"__esModule",{value:!0});const hP=Ss;au._asyncOptionalChainDelete=async function(t){const e=await hP._asyncOptionalChain(t);return e==null||e};var Ts={};Object.defineProperty(Ts,"__esModule",{value:!0}),Ts._optionalChain=function(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],i=t[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(e=n,n=i(n)):o!=="call"&&o!=="optionalCall"||(n=i((...s)=>n.call(e,...s)),e=void 0)}return n};var cu={};Object.defineProperty(cu,"__esModule",{value:!0});const fP=Ts;cu._optionalChainDelete=function(t){const e=fP._optionalChain(t);return e==null||e};var uu={};Object.defineProperty(uu,"__esModule",{value:!0});const UT=ue;uu.generatePropagationContext=function(){return{traceId:UT.uuid4(),spanId:UT.uuid4().substring(16)}};var lu={};Object.defineProperty(lu,"__esModule",{value:!0}),lu.escapeStringForRegex=function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};var du={};Object.defineProperty(du,"__esModule",{value:!0});const vs=jt.GLOBAL_OBJ;du.supportsHistory=function(){const t=vs.chrome,e=t&&t.app&&t.app.runtime,n="history"in vs&&!!vs.history.pushState&&!!vs.history.replaceState;return!e&&n},function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Oc,n=tr,r=Pr,o=as,i=jt,s=Lc,a=us,u=Fc,c=Hc,l=Je,d=ut,p=zc,h=ce,_=hs,f=ue,m=iT,E=Un,S=xt,g=hn,T=Xc,y=xn,R=fs,O=Ue,A=Br,D=Ke,I=xe,x=kr,P=Se,L=Vr,B=jo,U=Qt,w=nu,N=rr,V=Ze,j=er,It=ru,z=Gr,bt=ms,vt=iu,ct=su,M=Ss,st=au,Me=gs,J=Ts,_t=cu,Pt=uu,Ct=ss,ft=lu,un=du;t.applyAggregateErrorsToEvent=e.applyAggregateErrorsToEvent,t.getComponentName=n.getComponentName,t.getDomElement=n.getDomElement,t.getLocationHref=n.getLocationHref,t.htmlTreeAsString=n.htmlTreeAsString,t.dsnFromString=r.dsnFromString,t.dsnToString=r.dsnToString,t.makeDsn=r.makeDsn,t.SentryError=o.SentryError,t.GLOBAL_OBJ=i.GLOBAL_OBJ,t.getGlobalSingleton=i.getGlobalSingleton,t.addConsoleInstrumentationHandler=s.addConsoleInstrumentationHandler,t.addFetchInstrumentationHandler=a.addFetchInstrumentationHandler,t.addGlobalErrorInstrumentationHandler=u.addGlobalErrorInstrumentationHandler,t.addGlobalUnhandledRejectionInstrumentationHandler=c.addGlobalUnhandledRejectionInstrumentationHandler,t.addHandler=l.addHandler,t.maybeInstrument=l.maybeInstrument,t.resetInstrumentationHandlers=l.resetInstrumentationHandlers,t.triggerHandlers=l.triggerHandlers,t.isDOMError=d.isDOMError,t.isDOMException=d.isDOMException,t.isElement=d.isElement,t.isError=d.isError,t.isErrorEvent=d.isErrorEvent,t.isEvent=d.isEvent,t.isInstanceOf=d.isInstanceOf,t.isParameterizedString=d.isParameterizedString,t.isPlainObject=d.isPlainObject,t.isPrimitive=d.isPrimitive,t.isRegExp=d.isRegExp,t.isString=d.isString,t.isSyntheticEvent=d.isSyntheticEvent,t.isThenable=d.isThenable,t.isVueViewModel=d.isVueViewModel,t.isBrowser=p.isBrowser,t.CONSOLE_LEVELS=h.CONSOLE_LEVELS,t.consoleSandbox=h.consoleSandbox,t.logger=h.logger,t.originalConsoleMethods=h.originalConsoleMethods,t.memoBuilder=_.memoBuilder,t.addContextToFrame=f.addContextToFrame,t.addExceptionMechanism=f.addExceptionMechanism,t.addExceptionTypeValue=f.addExceptionTypeValue,t.arrayify=f.arrayify,t.checkOrSetAlreadyCaught=f.checkOrSetAlreadyCaught,t.getEventDescription=f.getEventDescription,t.parseSemver=f.parseSemver,t.uuid4=f.uuid4,t.dynamicRequire=m.dynamicRequire,t.isNodeEnv=m.isNodeEnv,t.loadModule=m.loadModule,t.normalize=E.normalize,t.normalizeToSize=E.normalizeToSize,t.normalizeUrlToBase=E.normalizeUrlToBase,t.addNonEnumerableProperty=S.addNonEnumerableProperty,t.convertToPlainObject=S.convertToPlainObject,t.dropUndefinedKeys=S.dropUndefinedKeys,t.extractExceptionKeysForMessage=S.extractExceptionKeysForMessage,t.fill=S.fill,t.getOriginalFunction=S.getOriginalFunction,t.markFunctionWrapped=S.markFunctionWrapped,t.objectify=S.objectify,t.urlEncode=S.urlEncode,t.basename=g.basename,t.dirname=g.dirname,t.isAbsolute=g.isAbsolute,t.join=g.join,t.normalizePath=g.normalizePath,t.relative=g.relative,t.resolve=g.resolve,t.makePromiseBuffer=T.makePromiseBuffer,t.DEFAULT_USER_INCLUDES=y.DEFAULT_USER_INCLUDES,t.addRequestDataToEvent=y.addRequestDataToEvent,t.extractPathForTransaction=y.extractPathForTransaction,t.extractRequestData=y.extractRequestData,t.winterCGHeadersToDict=y.winterCGHeadersToDict,t.winterCGRequestToRequestData=y.winterCGRequestToRequestData,t.severityLevelFromString=R.severityLevelFromString,t.validSeverityLevels=R.validSeverityLevels,t.UNKNOWN_FUNCTION=O.UNKNOWN_FUNCTION,t.createStackParser=O.createStackParser,t.getFunctionName=O.getFunctionName,t.stackParserFromStackParserOptions=O.stackParserFromStackParserOptions,t.stripSentryFramesAndReverse=O.stripSentryFramesAndReverse,t.filenameIsInApp=A.filenameIsInApp,t.node=A.node,t.nodeStackLineParser=A.nodeStackLineParser,t.isMatchingPattern=D.isMatchingPattern,t.safeJoin=D.safeJoin,t.snipLine=D.snipLine,t.stringMatchesSomePattern=D.stringMatchesSomePattern,t.truncate=D.truncate,t.isNativeFunction=I.isNativeFunction,t.supportsDOMError=I.supportsDOMError,t.supportsDOMException=I.supportsDOMException,t.supportsErrorEvent=I.supportsErrorEvent,t.supportsFetch=I.supportsFetch,t.supportsNativeFetch=I.supportsNativeFetch,t.supportsReferrerPolicy=I.supportsReferrerPolicy,t.supportsReportingObserver=I.supportsReportingObserver,t.SyncPromise=x.SyncPromise,t.rejectedSyncPromise=x.rejectedSyncPromise,t.resolvedSyncPromise=x.resolvedSyncPromise,Object.defineProperty(t,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>P._browserPerformanceTimeOriginMode}),t.browserPerformanceTimeOrigin=P.browserPerformanceTimeOrigin,t.dateTimestampInSeconds=P.dateTimestampInSeconds,t.timestampInSeconds=P.timestampInSeconds,t.TRACEPARENT_REGEXP=L.TRACEPARENT_REGEXP,t.extractTraceparentData=L.extractTraceparentData,t.generateSentryTraceHeader=L.generateSentryTraceHeader,t.propagationContextFromHeaders=L.propagationContextFromHeaders,t.getSDKSource=B.getSDKSource,t.isBrowserBun
7dle=B.isBrowserBundle,t.addItemToEnvelope=U.addItemToEnvelope,t.createAttachmentEnvelopeItem=U.createAttachmentEnvelopeItem,t.createEnvelope=U.createEnvelope,t.createEventEnvelopeHeaders=U.createEventEnvelopeHeaders,t.createSpanEnvelopeItem=U.createSpanEnvelopeItem,t.envelopeContainsItemType=U.envelopeContainsItemType,t.envelopeItemTypeToDataCategory=U.envelopeItemTypeToDataCategory,t.forEachEnvelopeItem=U.forEachEnvelopeItem,t.getSdkMetadataForEnvelopeHeader=U.getSdkMetadataForEnvelopeHeader,t.parseEnvelope=U.parseEnvelope,t.serializeEnvelope=U.serializeEnvelope,t.createClientReportEnvelope=w.createClientReportEnvelope,t.DEFAULT_RETRY_AFTER=N.DEFAULT_RETRY_AFTER,t.disabledUntil=N.disabledUntil,t.isRateLimited=N.isRateLimited,t.parseRetryAfterHeader=N.parseRetryAfterHeader,t.updateRateLimits=N.updateRateLimits,t.BAGGAGE_HEADER_NAME=V.BAGGAGE_HEADER_NAME,t.MAX_BAGGAGE_STRING_LENGTH=V.MAX_BAGGAGE_STRING_LENGTH,t.SENTRY_BAGGAGE_KEY_PREFIX=V.SENTRY_BAGGAGE_KEY_PREFIX,t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=V.SENTRY_BAGGAGE_KEY_PREFIX_REGEX,t.baggageHeaderToDynamicSamplingContext=V.baggageHeaderToDynamicSamplingContext,t.dynamicSamplingContextToSentryBaggageHeader=V.dynamicSamplingContextToSentryBaggageHeader,t.parseBaggageHeader=V.parseBaggageHeader,t.getNumberOfUrlSegments=j.getNumberOfUrlSegments,t.getSanitizedUrlString=j.getSanitizedUrlString,t.parseUrl=j.parseUrl,t.stripUrlQueryAndFragment=j.stripUrlQueryAndFragment,t.makeFifoCache=It.makeFifoCache,t.eventFromMessage=z.eventFromMessage,t.eventFromUnknownInput=z.eventFromUnknownInput,t.exceptionFromError=z.exceptionFromError,t.parseStackFrames=z.parseStackFrames,t.callFrameToStackFrame=bt.callFrameToStackFrame,t.watchdogTimer=bt.watchdogTimer,t.LRUMap=vt.LRUMap,t._asyncNullishCoalesce=ct._asyncNullishCoalesce,t._asyncOptionalChain=M._asyncOptionalChain,t._asyncOptionalChainDelete=st._asyncOptionalChainDelete,t._nullishCoalesce=Me._nullishCoalesce,t._optionalChain=J._optionalChain,t._optionalChainDelete=_t._optionalChainDelete,t.generatePropagationContext=Pt.generatePropagationContext,t.SDK_VERSION=Ct.SDK_VERSION,t.escapeStringForRegex=ft.escapeStringForRegex,t.supportsHistory=un.supportsHistory}(k);var yt={};Object.defineProperty(yt,"__esModule",{value:!0});const _P=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;yt.DEBUG_BUILD=_P;var et={},or={},_n={};Object.defineProperty(_n,"__esModule",{value:!0});const Ho=k;function xT(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Ho.SDK_VERSION,e[Ho.SDK_VERSION]=e[Ho.SDK_VERSION]||{}}_n.getMainCarrier=function(){return xT(Ho.GLOBAL_OBJ),Ho.GLOBAL_OBJ},_n.getSentryCarrier=xT;var ys={},Yo={},ir={},kn={};Object.defineProperty(kn,"__esModule",{value:!0});const $o=k;function pu(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||$o.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:$o.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{const n=t.timestamp-t.started;t.duration=n>=0?n: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)}kn.closeSession=function(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),pu(t,n)},kn.makeSession=function(t){const e=$o.timestampInSeconds(),n={sid:$o.uuid4(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(r){return $o.dropUndefinedKeys({sid:`${r.sid}`,init:r.init,started:new Date(1e3*r.started).toISOString(),timestamp:new Date(1e3*r.timestamp).toISOString(),status:r.status,errors:r.errors,did:typeof r.did=="number"||typeof r.did=="string"?`${r.did}`:void 0,duration:r.duration,abnormal_mechanism:r.abnormal_mechanism,attrs:{release:r.release,environment:r.environment,ip_address:r.ipAddress,user_agent:r.userAgent}})}(n)};return t&&pu(n,t),n},kn.updateSession=pu;var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});const EP=k,hu="_sentrySpan";Bn._getSpanForScope=function(t){return t[hu]},Bn._setSpanForScope=function(t,e){e?EP.addNonEnumerableProperty(t,hu,e):delete t[hu]}
vendor: 5,347 bytes, line 7
7,Object.defineProperty(ir,"__esModule",{value:!0});const Qe=k,mP=kn,As=Bn;class fu{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Qe.generatePropagationContext()}clone(){const e=new fu;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,As._setSpanForScope(e,As._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&&mP.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,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},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,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,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;const n=typeof e=="function"?e(this):e,[r,o]=n instanceof kT?[n.getScopeData(),n.getRequestSession()]:Qe.isPlainObject(n)?[e,e.requestSession]:[],{tags:i,extra:s,user:a,contexts:u,level:c,fingerprint:l=[],propagationContext:d}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...u},a&&Object.keys(a).length&&(this._user=a),c&&(this._level=c),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),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,As._setSpanForScope(this,void 0),this._attachments=[],this._propagationContext=Qe.generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:100;if(r<=0)return this;const o={timestamp:Qe.dateTimestampInSeconds(),...e},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>r?i.slice(-r):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:As._getSpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n&&n.event_id?n.event_id:Qe.uuid4();if(!this._client)return Qe.logger.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureMessage(e,n,r){const o=r&&r.event_id?r.event_id:Qe.uuid4();if(!this._client)return Qe.logger.warn("No client configured on scope - will not capture message!"),o;const i=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:i,...r,event_id:o},this),o}captureEvent(e,n){const r=n&&n.event_id?n.event_id:Qe.uuid4();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(Qe.logger.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
7h(e=>{e(this)}),this._notifyingListeners=!1)}}const kT=fu;ir.Scope=kT,Object.defineProperty(Yo,"__esModule",{value:!0});const BT=k,VT=ir;Yo.getDefaultCurrentScope=function(){return BT.getGlobalSingleton("defaultCurrentScope",()=>new VT.Scope)},Yo.getDefaultIsolationScope=function(){return BT.getGlobalSingleton("defaultIsolationScope",()=>new VT.Scope)},Object.defineProperty(ys,"__esModule",{value:!0});const gP=k,FT=Yo,GT=ir,jT=_n;class HT{constructor(e,n){let r,o;r=e||new GT.Scope,o=n||new GT.Scope,this._stack=[{scope:r}],this._isolationScope=o}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(o){throw this._popScope(),o}return gP.isThenable(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}}function jr(){const t=jT.getMainCarrier(),e=jT.getSentryCarrier(t);return e.stack=e.stack||new HT(FT.getDefaultCurrentScope(),FT.getDefaultIsolationScope())}function SP(t){return jr().withScope(t)}function TP(t,e){const n=jr();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function YT(t){return jr().withScope(()=>t(jr().getIsolationScope()))}ys.AsyncContextStack=HT,ys.getStackAsyncContextStrategy=function(){return{withIsolationScope:YT,withScope:SP,withSetScope:TP,withSetIsolationScope:(t,e)=>YT(e),getCurrentScope:()=>jr().getScope(),getIsolationScope:()=>jr().getIsolationScope()}},Object.defineProperty(or,"__esModule",{value:!0});const _u=_n,vP=ys;or.getAsyncContextStrategy=function(t){const e=_u.getSentryCarrier(t);return e.acs?e.acs:vP.getStackAsyncContextStrategy()},or.setAsyncContextStrategy=function(t){const e=_u.getMainCarrier();_u.getSentryCarrier(e).acs=t};var ot={};
vendor: 5,799 bytes, line 7
7Object.defineProperty(ot,"__esModule",{value:!0});const yP=k,bs=or,Rs=_n,AP=ir;function $T(){const t=Rs.getMainCarrier();return bs.getAsyncContextStrategy(t).getCurrentScope()}ot.getClient=function(){return $T().getClient()},ot.getCurrentScope=$T,ot.getGlobalScope=function(){return yP.getGlobalSingleton("globalScope",()=>new AP.Scope)},ot.getIsolationScope=function(){const t=Rs.getMainCarrier();return bs.getAsyncContextStrategy(t).getIsolationScope()},ot.withIsolationScope=function(...t){const e=Rs.getMainCarrier(),n=bs.getAsyncContextStrategy(e);if(t.length===2){const[r,o]=t;return r?n.withSetIsolationScope(r,o):n.withIsolationScope(o)}return n.withIsolationScope(t[0])},ot.withScope=function(...t){const e=Rs.getMainCarrier(),n=bs.getAsyncContextStrategy(e);if(t.length===2){const[r,o]=t;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(t[0])};var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});const bP=k,Eu="_sentryMetrics";Hr.getMetricSummaryJsonForSpan=function(t){const e=t[Eu];if(!e)return;const n={};for(const[,[r,o]]of e)n[r]||(n[r]=[]),n[r].push(bP.dropUndefinedKeys(o));return n},Hr.updateMetricSummaryOnSpan=function(t,e,n,r,o,i,s){const a=t[Eu]||(t[Eu]=new Map),u=`${e}:${n}@${o}`,c=a.get(s);if(c){const[,l]=c;a.set(s,[u,{min:Math.min(l.min,r),max:Math.max(l.max,r),count:l.count+=1,sum:l.sum+=r,tags:l.tags}])}else a.set(s,[u,{min:r,max:r,count:1,sum:r,tags:i}])};var St={};Object.defineProperty(St,"__esModule",{value:!0}),St.SEMANTIC_ATTRIBUTE_CACHE_HIT="cache.hit",St.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE="cache.item_size",St.SEMANTIC_ATTRIBUTE_CACHE_KEY="cache.key",St.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME="sentry.exclusive_time",St.SEMANTIC_ATTRIBUTE_PROFILE_ID="sentry.profile_id",St.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON="sentry.idle_span_finish_reason",St.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT="sentry.measurement_unit",St.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE="sentry.measurement_value",St.SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",St.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",St.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",St.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source";var Te={};Object.defineProperty(Te,"__esModule",{value:!0});const zT=1,te=2;function WT(t){if(t<400&&t>=100)return{code:zT};if(t>=400&&t<500)switch(t){case 401:return{code:te,message:"unauthenticated"};case 403:return{code:te,message:"permission_denied"};case 404:return{code:te,message:"not_found"};case 409:return{code:te,message:"already_exists"};case 413:return{code:te,message:"failed_precondition"};case 429:return{code:te,message:"resource_exhausted"};case 499:return{code:te,message:"cancelled"};default:return{code:te,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:te,message:"unimplemented"};case 503:return{code:te,message:"unavailable"};case 504:return{code:te,message:"deadline_exceeded"};default:return{code:te,message:"internal_error"}}return{code:te,message:"unknown_error"}}Te.SPAN_STATUS_ERROR=te,Te.SPAN_STATUS_OK=zT,Te.SPAN_STATUS_UNSET=0,Te.getSpanStatusFromHttpCode=WT,Te.setHttpStatus=function(t,e){t.setAttribute("http.response.status_code",e);const n=WT(e);n.message!=="unknown_error"&&t.setStatus(n)},Object.defineProperty(et,"__esModule",{value:!0});const sr=k,RP=or,OP=_n,NP=ot,qT=Hr,KT=St,JT=Te,IP=Bn,XT=1;function mu(t){return typeof t=="number"?ZT(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?ZT(t.getTime()):sr.timestampInSeconds()}function ZT(t){return t>9999999999?t/1e3:t}function gu(t){if(function(e){return typeof e.getSpanJSON=="function"}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(r){const o=r;return!!(o.attributes&&o.startTime&&o.name&&o.endTime&&o.status)}(t)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:u}=t;return sr.dropUndefinedKeys({span_id:e,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:mu(o),timestamp:mu(s)||void 0,status:QT(u),op:r[KT.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:r[KT.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:qT.getMetricSummaryJsonForSpan(t)})}return{span_id:e,trace_id:n}}catch{return{}}}function Su(t){const{traceFlags:e}=t.spanContext();return e===XT}function QT(t){if(t&&t.code!==JT.SPAN_STATUS_UNSET)return t.code===JT.SPAN_STATUS_OK?"ok":t.message||"unknown_error"}const ar="_sentryChildSpans",Tu="_sentryRootSpan";function tv(){const t=OP.getMainCarrier(),e=RP.getAsyncContextStrategy(t);return e.getActiveSpan?e.getActiveSpan():IP._getSpanForScope(NP.getCurrentScope())}et.TRACE_FLAG_NONE=0,et.TRACE_FLAG_SAMPLED=XT,et.addChildSpanToSpan=function(t,e){const n=t[Tu]||t;sr.addNonEnumerableProperty(e,Tu,n),t[ar]?t[ar].add(e):sr.addNonEnumerableProperty(t,ar,new Set([e]))},et.getActiveSpan=tv,et.getRootSpan=function(t){return t[Tu]||t},et.getSpanDescendants=function(t){const e=new Set;return function n(r){if(!e.has(r)&&Su(r)){e.add(r);const o=r[ar]?Array.from(r[ar]):[];for(const i of o)n(i)}}(t),Array.from(e)},et.getStatusMessage=QT,et.removeChildSpanFromSpan=function(t,e){t[ar]&&t[ar].delete(e)},et.spanIsSampled=Su,et.spanTimeInputToSeconds=mu,et.spanToJSON=gu,et.spanToTraceContext=function(t){const{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:r}=gu(t);return sr.dropUndefinedKeys({parent_span_id:r,span_id:e,trace_id:n})},et.spanToTraceHeader=function(t){const{traceId:e,spanId:n}=t.spanContext(),r=Su(t);return sr.generateSentryTraceHeader(e,n,r)},et.spanToTransactionTraceContext=function(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:a}=gu(t);return sr.dropUndefinedKeys({parent_span_id:i,span_id:e,trace_id:n,data:r,op:o,status:s,origin:a})},et.updateMetricSummaryOnActiveSpan=function(t,e,n,r,o,i){const s=tv();s&&qT.updateMetricSummaryOnSpan(s,t,e,n,r,o,i)}
7,Object.defineProperty(Vo,"__esModule",{value:!0});const vu=k,CP=yt,ev=et,MP=Te;let nv=!1;function yu(){const t=ev.getActiveSpan(),e=t&&ev.getRootSpan(t);if(e){const n="internal_error";CP.DEBUG_BUILD&&vu.logger.log(`[Tracing] Root span: ${n} -> Global error occured`),e.setStatus({code:MP.SPAN_STATUS_ERROR,message:n})}}yu.tag="sentry_tracingErrorCallback",Vo.registerSpanErrorInstrumentation=function(){nv||(nv=!0,vu.addGlobalErrorInstrumentationHandler(yu),vu.addGlobalUnhandledRejectionInstrumentationHandler(yu))};var cr={};Object.defineProperty(cr,"__esModule",{value:!0});const Au=k,rv="_sentryScope",ov="_sentryIsolationScope";cr.stripUrlQueryAndFragment=Au.stripUrlQueryAndFragment,cr.getCapturedScopesOnSpan=function(t){return{scope:t[rv],isolationScope:t[ov]}},cr.setCapturedScopesOnSpan=function(t,e,n){t&&(Au.addNonEnumerableProperty(t,ov,n),Au.addNonEnumerableProperty(t,rv,e))};var bu={};Object.defineProperty(bu,"__esModule",{value:!0});const wP=Vo;bu.addTracingExtensions=function(){wP.registerSpanErrorInstrumentation()};var Os={},ur={};Object.defineProperty(ur,"__esModule",{value:!0});const LP=ot;ur.hasTracingEnabled=function(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||function(){const n=LP.getClient();return n&&n.getOptions()}();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)};var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0});const iv=k,DP=et;Yr.SentryNonRecordingSpan=class{constructor(t={}){this._traceId=t.traceId||iv.uuid4(),this._spanId=t.spanId||iv.uuid4().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:DP.TRACE_FLAG_NONE}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,e,n){return this}};var le={},zo={};Object.defineProperty(zo,"__esModule",{value:!0});const PP=k;zo.handleCallbackErrors=function(t,e,n=()=>{}){let r;try{r=t()}catch(o){throw e(o),n(),o}return function(o,i,s){return PP.isThenable(o)?o.then(a=>(s(),a),a=>{throw i(a),s(),a}):(s(),o)}(r,e,n)};var de={},$r={};Object.defineProperty($r,"__esModule",{value:!0}),$r.DEFAULT_ENVIRONMENT="production",Object.defineProperty(de,"__esModule",{value:!0});const Ru=k,UP=$r,xP=ot,sv=St,Ns=et,av="_frozenDsc";function cv(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},o=Ru.dropUndefinedKeys({environment:n.environment||UP.DEFAULT_ENVIRONMENT,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",o),o}function uv(t){const e=xP.getClient();if(!e)return{};const n=cv(Ns.spanToJSON(t).trace_id||"",e),r=Ns.getRootSpan(t);if(!r)return n;const o=r[av];if(o)return o;const i=Ns.spanToJSON(r),s=i.data||{},a=s[sv.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];a!=null&&(n.sample_rate=`${a}`);const u=s[sv.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return u&&u!=="url"&&(n.transaction=i.description),n.sampled=String(Ns.spanIsSampled(r)),e.emit("createDsc",n),n}de.freezeDscOnSpan=function(t,e){const n=t;Ru.addNonEnumerableProperty(n,av,e)},de.getDynamicSamplingContextFromClient=cv,de.getDynamicSamplingContextFromSpan=uv,de.spanToBaggageHeader=function(t){const e=uv(t);return Ru.dynamicSamplingContextToSentryBaggageHeader(e)};var zr={};Object.defineProperty(zr,"__esModule",{value:!0});const lv=k,dv=yt,Wr=et;zr.logSpanEnd=function(t){if(!dv.DEBUG_BUILD)return;const{description:e="< unknown name >",op:n="< unknown op >"}=Wr.spanToJSON(t),{spanId:r}=t.spanContext(),o=`[Tracing] Finishing "${n}" ${Wr.getRootSpan(t)===t?"root ":""}span "${e}" with ID ${r}`;lv.logger.log(o)},zr.logSpanStart=function(t){if(!dv.DEBUG_BUILD)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Wr.spanToJSON(t),{spanId:o}=t.spanContext(),i=Wr.spanIsSampled(t),s=Wr.getRootSpan(t),a=s===t,u=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,c=[`op: ${n}`,`name: ${e}`,`ID: ${o}`];if(r&&c.push(`parent ID: ${r}`),!a){const{op:l,description:d}=Wr.spanToJSON(s);c.push(`root ID: ${s.spanContext().spanId}`),l&&c.push(`root op: ${l}`),d&&c.push(`root description: ${d}`)}lv.logger.log(`${u} 8 ${c.join(` 9 `)}`)};var Is={},Wo={};Object.defineProperty(Wo,"__esModule",{value:!0});const kP=k,BP=yt;Wo.parseSampleRate=function(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e;BP.DEBUG_BUILD&&kP.logger.warn(`[Tracing] Given sample rate is invali
9d. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`)},Object.defineProperty(Is,"__esModule",{value:!0});const Ou=k,Nu=yt,VP=ur,FP=Wo;Is.sampleSpan=function(t,e){if(!VP.hasTracingEnabled(t))return[!1];let n;n=typeof t.tracesSampler=="function"?t.tracesSampler(e):e.parentSampled!==void 0?e.parentSampled:t.tracesSampleRate!==void 0?t.tracesSampleRate:1;const r=FP.parseSampleRate(n);return r===void 0?(Nu.DEBUG_BUILD&&Ou.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(Nu.DEBUG_BUILD&&Ou.logger.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(Nu.DEBUG_BUILD&&Ou.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,r])};var Cs={},lr={};Object.defineProperty(lr,"__esModule",{value:!0});const En=k,GP=de,pv=et;lr.createEventEnvelope=function(t,e,n,r){const o=En.getSdkMetadataForEnvelopeHeader(n),i=t.type&&t.type!=="replay_event"?t.type:"event";(function(u,c){c&&(u.sdk=u.sdk||{},u.sdk.name=u.sdk.name||c.name,u.sdk.version=u.sdk.version||c.version,u.sdk.integrations=[...u.sdk.integrations||[],...c.integrations||[]],u.sdk.packages=[...u.sdk.packages||[],...c.packages||[]])})(t,n&&n.sdk);const s=En.createEventEnvelopeHeaders(t,o,r,e);delete t.sdkProcessingMetadata;const a=[{type:i},t];return En.createEnvelope(s,[a])},lr.createSessionEnvelope=function(t,e,n,r){const o=En.getSdkMetadataForEnvelopeHeader(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&e&&{dsn:En.dsnToString(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return En.createEnvelope(i,[s])},lr.createSpanEnvelope=function(t,e){const n=GP.getDynamicSamplingContextFromSpan(t[0]),r=e&&e.getDsn(),o=e&&e.getOptions().tunnel,i={sent_at:new Date().toISOString(),...function(c){return!!c.trace_id&&!!c.public_key}(n)&&{trace:n},...!!o&&r&&{dsn:En.dsnToString(r)}},s=e&&e.getOptions().beforeSendSpan,a=s?c=>s(pv.spanToJSON(c)):c=>pv.spanToJSON(c),u=[];for(const c of t){const l=a(c);l&&u.push(En.createSpanEnvelopeItem(l))}return En.createEnvelope(i,u)};var qo={};Object.defineProperty(qo,"__esModule",{value:!0});const Ms=St,hv=et;qo.setMeasurement=function(t,e,n){const r=hv.getActiveSpan(),o=r&&hv.getRootSpan(r);o&&o.addEvent(t,{[Ms.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e,[Ms.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n})},qo.timedEventsToMeasurements=function(t){if(!t||t.length===0)return;const e={};return t.forEach(n=>{const r=n.attributes||{},o=r[Ms.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=r[Ms.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];typeof o=="string"&&typeof i=="number"&&(e[n.name]={value:i,unit:o})}),e},Object.defineProperty(Cs,"__esModule",{value:!0});const ke=k,Ko=ot,Jo=yt,jP=lr,fv=Hr,dr=St,pe=et,HP=de,YP=zr,_v=qo,Ev=cr;class Iu{constructor(e={}){this._traceId=e.traceId||ke.uuid4(),this._spanId=e.spanId||ke.uuid4().substring(16),this._startTime=e.startTimestamp||ke.timestampInSeconds(),this._attributes={},this.setAttributes({[dr.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[dr.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()}spanContext(){const{_spanId:e,_traceId:n,_sampled:r}=this;return{spanId:e,traceId:n,traceFlags:r?pe.TRACE_FLAG_SAMPLED:pe.TRACE_FLAG_NONE}}setAttribute(e,n){n===void 0?delete this._attributes[e]:this._attributes[e]=n}setAttributes(e){Object.keys(e).forEach(n=>this.setAttribute(n,e[n]))}updateStartTime(e){this._startTime=pe.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=pe.spanTimeInputToSeconds(e),YP.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return ke.dropUndefinedKeys({data:this._attributes,description:this._name,op:this._attributes[dr.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:pe.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[dr.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:fv.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[dr.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[dr.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:_v.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&pe.getRootSpan(this)===this||void 0,segment_id:this._isStandaloneSpan?pe.getRootSpan(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,n,r){Jo.DEBUG_BUILD&&ke.logger.log("[Tracing] Adding an event to span:",e);const o=mv(n)?n:r||ke.timestampInSeconds(),i=mv(n)?{}:n||{}
9,s={name:e,time:pe.spanTimeInputToSeconds(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=Ko.getClient();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===pe.getRootSpan(this)))return;if(this._isStandaloneSpan)return void function(r){const o=Ko.getClient();if(!o)return;const i=r[1];if(!i||i.length===0)return void o.recordDroppedEvent("before_send","span");const s=o.getTransport();s&&s.send(r).then(null,a=>{Jo.DEBUG_BUILD&&ke.logger.error("Error while sending span:",a)})}(jP.createSpanEnvelope([this],e));const n=this._convertSpanToTransaction();n&&(Ev.getCapturedScopesOnSpan(this).scope||Ko.getCurrentScope()).captureEvent(n)}_convertSpanToTransaction(){if(!gv(pe.spanToJSON(this)))return;this._name||(Jo.DEBUG_BUILD&&ke.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:n}=Ev.getCapturedScopesOnSpan(this),r=(e||Ko.getCurrentScope()).getClient()||Ko.getClient();if(this._sampled!==!0)return Jo.DEBUG_BUILD&&ke.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(r&&r.recordDroppedEvent("sample_rate","transaction"));const o=pe.getSpanDescendants(this).filter(u=>u!==this&&!function(c){return c instanceof Iu&&c.isStandaloneSpan()}(u)).map(u=>pe.spanToJSON(u)).filter(gv),i=this._attributes[dr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],s={contexts:{trace:pe.spanToTransactionTraceContext(this)},spans:o.length>1e3?o.sort((u,c)=>u.start_timestamp-c.start_timestamp).slice(0,1e3):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:n,...ke.dropUndefinedKeys({dynamicSamplingContext:HP.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:fv.getMetricSummaryJsonForSpan(this),...i&&{transaction_info:{source:i}}},a=_v.timedEventsToMeasurements(this._events);return a&&Object.keys(a).length&&(Jo.DEBUG_BUILD&&ke.logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(a,void 0,2)),s.measurements=a),s}}function mv(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function gv(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}
9Cs.SentrySpan=Iu,Object.defineProperty(le,"__esModule",{value:!0});const Cu=k,$P=_n,Be=ot,zP=or,WP=yt,Sv=St,Tv=zo,qP=ur,ws=Bn,Vn=et,Mu=de,KP=zr,JP=Is,Xo=Yr,vv=Cs,yv=Te,XP=cr,wu="__SENTRY_SUPPRESS_TRACING__";function Av(t,e){const n=Zo();return n.withActiveSpan?n.withActiveSpan(t,e):Be.withScope(r=>(ws._setSpanForScope(r,t||void 0),e(r)))}function Lu({parentSpan:t,spanContext:e,forceTransaction:n,scope:r}){if(!qP.hasTracingEnabled())return new Xo.SentryNonRecordingSpan;const o=Be.getIsolationScope();let i;if(t&&!n)i=function(s,a,u){const{spanId:c,traceId:l}=s.spanContext(),d=!a.getScopeData().sdkProcessingMetadata[wu]&&Vn.spanIsSampled(s),p=d?new vv.SentrySpan({...u,parentSpanId:c,traceId:l,sampled:d}):new Xo.SentryNonRecordingSpan({traceId:l});Vn.addChildSpanToSpan(s,p);const h=Be.getClient();return h&&(h.emit("spanStart",p),u.endTimestamp&&h.emit("spanEnd",p)),p}(t,r,e),Vn.addChildSpanToSpan(t,i);else if(t){const s=Mu.getDynamicSamplingContextFromSpan(t),{traceId:a,spanId:u}=t.spanContext(),c=Vn.spanIsSampled(t);i=bv({traceId:a,parentSpanId:u,...e},r,c),Mu.freezeDscOnSpan(i,s)}else{const{traceId:s,dsc:a,parentSpanId:u,sampled:c}={...o.getPropagationContext(),...r.getPropagationContext()};i=bv({traceId:s,parentSpanId:u,...e},r,c),a&&Mu.freezeDscOnSpan(i,a)}return KP.logSpanStart(i),XP.setCapturedScopesOnSpan(i,r,o),i}function Du(t){const e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const n={...e};return n.startTimestamp=Vn.spanTimeInputToSeconds(t.startTime),delete n.startTime,n}return e}function Zo(){const t=$P.getMainCarrier();return zP.getAsyncContextStrategy(t)}function bv(t,e,n){const r=Be.getClient(),o=r&&r.getOptions()||{},{name:i="",attributes:s}=t,[a,u]=e.getScopeData().sdkProcessingMetadata[wu]?[!1]:JP.sampleSpan(o,{name:i,parentSampled:n,attributes:s,transactionContext:{name:i,parentSampled:n}}),c=new vv.SentrySpan({...t,attributes:{[Sv.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",...t.attributes},sampled:a});return u!==void 0&&c.setAttribute(Sv.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,u),r&&r.emit("spanStart",c),c}function Pu(t){const e=ws._getSpanForScope(t);if(!e)return;const n=Be.getClient();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Vn.getRootSpan(e):e}le.continueTrace=({sentryTrace:t,baggage:e},n)=>Be.withScope(r=>{const o=Cu.propagationContextFromHeaders(t,e);return r.setPropagationContext(o),n()}),le.startInactiveSpan=function(t){const e=Zo();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=Du(t),r=t.scope||Be.getCurrentScope(),o=Pu(r);return t.onlyIfParent&&!o?new Xo.SentryNonRecordingSpan:Lu({parentSpan:o,spanContext:n,forceTransaction:t.forceTransaction,scope:r})},le.startNewTrace=function(t){return Be.withScope(e=>(e.setPropagationContext(Cu.generatePropagationContext()),WP.DEBUG_BUILD&&Cu.logger.info(`Starting a new trace with id ${e.getPropagationContext().traceId}`),Av(null,t)))},le.startSpan=function(t,e){const n=Zo();if(n.startSpan)return n.startSpan(t,e);const r=Du(t);return Be.withScope(t.scope,o=>{const i=Pu(o),s=t.onlyIfParent&&!i?new Xo.SentryNonRecordingSpan:Lu({parentSpan:i,spanContext:r,forceTransaction:t.forceTransaction,scope:o});return ws._setSpanForScope(o,s),Tv.handleCallbackErrors(()=>e(s),()=>{const{status:a}=Vn.spanToJSON(s);!s.isRecording()||a&&a!=="ok"||s.setStatus({code:yv.SPAN_STATUS_ERROR,message:"internal_error"})},()=>s.end())})},le.startSpanManual=function(t,e){const n=Zo();if(n.startSpanManual)return n.startSpanManual(t,e);const r=Du(t);return Be.withScope(t.scope,o=>{const i=Pu(o),s=t.onlyIfParent&&!i?new Xo.SentryNonRecordingSpan:Lu({parentSpan:i,spanContext:r,forceTransaction:t.forceTransaction,scope:o});function a(){s.end()}return ws._setSpanForScope(o,s),Tv.handleCallbackErrors(()=>e(s,a),()=>{const{status:u}=Vn.spanToJSON(s);!s.isRecording()||u&&u!=="ok"||s.setStatus({code:yv.SPAN_STATUS_ERROR,message:"internal_error"})})})},le.suppressTracing=function(t){const e=Zo();return e.suppressTracing?e.suppressTracing(t):Be.withScope(n=>(n.setSDKProcessingMetadata({[wu]:!0}),t()))},le.withActiveSpan=Av,Object.defineProperty(Os,"__esModule",{value:!0});const Fn=k,Uu=ot,xu=yt,Rv=St,ZP=ur,Ov=Bn,Ve=et,QP=Yr,Nv=Te,tU=le,Ls={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};Os.TRACING_DEFAULTS=Ls,Os.startIdleSpan=function(t,e={}){const n=new Map;let r,o=!1,i="externalFinish",s=!e.disableAutoFinish;const{idleTimeout:a=Ls.idleTimeout,finalTimeout:u=Ls.finalTimeout,childSpanTimeout:c=Ls.childSpanTimeout,beforeSpanEnd:l}=e,d=Uu.getClient();if(!d||!ZP.hasTracingEnabled())return new QP.SentryNonRecordingSpan;const p=Uu.getCurrentScope(),h=Ve.getActiveSpan(),_=function(g){const T=tU.startInactiveSpan(g);return Ov._setSpanForScope(Uu.getCurrentScope(),T),xu.DEBUG_BUILD&&Fn.logger.log("[Tracing] Started span is an i
9dle span"),T}(t);function f(g=Fn.timestampInSeconds()){const T=Ve.getSpanDescendants(_).filter(I=>I!==_);if(!T.length)return void _.end(g);const y=T.map(I=>Ve.spanToJSON(I).timestamp).filter(I=>!!I),R=y.length?Math.max(...y):void 0,O=Ve.spanTimeInputToSeconds(g),A=Ve.spanToJSON(_).start_timestamp,D=Math.min(A?A+u/1e3:1/0,Math.max(A||-1/0,Math.min(O,R||1/0)));_.end(D)}function m(){r&&(clearTimeout(r),r=void 0)}function E(g){m(),r=setTimeout(()=>{!o&&n.size===0&&s&&(i="idleTimeout",f(g))},a)}function S(g){r=setTimeout(()=>{!o&&s&&(i="heartbeatFailed",f(g))},c)}return d.on("spanStart",g=>{if(!(o||g===_||Ve.spanToJSON(g).timestamp)){var T;Ve.getSpanDescendants(_).includes(g)&&(T=g.spanContext().spanId,m(),n.set(T,!0),S(Fn.timestampInSeconds()+c/1e3))}}),d.on("spanEnd",g=>{var T;o||(T=g.spanContext().spanId,n.has(T)&&n.delete(T),n.size===0&&E(Fn.timestampInSeconds()+a/1e3),g===_&&function(){o=!0,n.clear(),l&&l(_),Ov._setSpanForScope(p,h);const y=Ve.spanToJSON(_),{timestamp:R,start_timestamp:O}=y;if(!R||!O)return;(y.data||{})[Rv.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||_.setAttribute(Rv.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,i),Fn.logger.log(`[Tracing] Idle span "${y.op}" finished`);const A=Ve.getSpanDescendants(_).filter(I=>I!==_);let D=0;A.forEach(I=>{I.isRecording()&&(I.setStatus({code:Nv.SPAN_STATUS_ERROR,message:"cancelled"}),I.end(R),xu.DEBUG_BUILD&&Fn.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(I,void 0,2)));const x=Ve.spanToJSON(I),{timestamp:P=0,start_timestamp:L=0}=x,B=L<=R,U=P-L<(u+a)/1e3;if(xu.DEBUG_BUILD){const w=JSON.stringify(I,void 0,2);B?U||Fn.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",w):Fn.logger.log("[Tracing] Discarding span since it happened after idle span was finished",w)}U&&B||(Ve.removeChildSpanFromSpan(_,I),D++)}),D>0&&_.setAttribute("sentry.idle_span_discarded_spans",D)}())}),d.on("idleSpanEnableAutoFinish",g=>{g===_&&(s=!0,E(),n.size&&S())}),e.disableAutoFinish||E(),setTimeout(()=>{o||(_.setStatus({code:Nv.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),i="finalTimeout",f())},u),_};var pt={},Gn={},Ds={};Object.defineProperty(Ds,"__esModule",{value:!0});const ku=k,eU=yt;Ds.notifyEventProcessors=function t(e,n,r,o=0){return new ku.SyncPromise((i,s)=>{const a=e[o];if(n===null||typeof a!="function")i(n);else{const u=a({...n},r);eU.DEBUG_BUILD&&a.id&&u===null&&ku.logger.log(`Event processor "${a.id}" dropped event`),ku.isThenable(u)?u.then(c=>t(e,c,r,o+1).then(i)).then(null,s):t(e,u,r,o+1).then(i).then(null,s)}})};var qr={};Object.defineProperty(qr,"__esModule",{value:!0});const Qo=k,nU=de,Bu=et;function Kr(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}qr.applyScopeDataToEvent=function(t,e){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=e;(function(s,a){const{extra:u,tags:c,user:l,contexts:d,level:p,transactionName:h}=a,_=Qo.dropUndefinedKeys(u);_&&Object.keys(_).length&&(s.extra={..._,...s.extra});const f=Qo.dropUndefinedKeys(c);f&&Object.keys(f).length&&(s.tags={...f,...s.tags});const m=Qo.dropUndefinedKeys(l);m&&Object.keys(m).length&&(s.user={...m,...s.user});const E=Qo.dropUndefinedKeys(d);E&&Object.keys(E).length&&(s.contexts={...E,...s.contexts}),p&&(s.level=p),h&&s.type!=="transaction"&&(s.transaction=h)})(t,e),r&&function(s,a){s.contexts={trace:Bu.spanToTraceContext(a),...s.contexts},s.sdkProcessingMetadata={dynamicSamplingContext:nU.getDynamicSamplingContextFromSpan(a),...s.sdkProcessingMetadata};const u=Bu.getRootSpan(a),c=Bu.spanToJSON(u).description;c&&!s.transaction&&s.type==="transaction"&&(s.transaction=c)}(t,r),function(s,a){s.fingerprint=s.fingerprint?Qo.arrayify(s.fingerprint):[],a&&(s.fingerprint=s.fingerprint.concat(a)),s.fingerprint&&!s.fingerprint.length&&delete s.fingerprint}(t,n),function(s,a){const u=[...s.breadcrumbs||[],...a];s.breadcrumbs=u.length?u:void 0}(t,o),function(s,a){s.sdkProcessingMetadata={...s.sdkProcessingMetadata,...a}}(t,i)},qr.mergeAndOverwriteScopeData=Kr,qr.mergeScopeData=function(t,e){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:d,propagationContext:p,transactionName:h,span:_}=e;Kr(t,"extra",n),Kr(t,"tags",r),Kr(t,"user",o),Kr(t,"contexts",i),Kr(t,"sdkProcessingMetadata",a),s&&(t.level=s),h&&(t.transactionName=h),_&&(t.span=_),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),c.length&&(t.fingerprint=[...t.fingerprint,...c]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...p}},Object.defineProperty(Gn,"__esModule",{value:!0});const he=k,rU=$r,oU=ot,iU=Ds,Iv=ir,Vu=qr,Cv=new WeakMap;function Mv(t,e){const n=he.GLOBAL_OBJ._sentryDebugIds;if(!n)return;let r;const o=Cv.get(e);o?r=o:(r=new Map,Cv.set(e,r));const i=Object.keys(n).reduce((s,a)=>{let u;const c=r.get(a);c?u=c:(u=e(a),r.set(a,u));for(let l=u.length-1;l>=0;l--){const d=u[l];
9if(d.filename){s[d.filename]=n[a];break}}return s},{});try{t.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function wv(t){const e={};try{t.exception.values.forEach(r=>{r.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||[];const n=t.debug_meta.images;Object.keys(e).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:e[r]})})}const sU=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];Gn.applyDebugIds=Mv,Gn.applyDebugMeta=wv,Gn.parseEventHintOrCaptureContext=function(t){if(t)return function(e){return e instanceof Iv.Scope||typeof e=="function"}(t)||function(e){return Object.keys(e).some(n=>sU.includes(n))}(t)?{captureContext:t}:t},Gn.prepareEvent=function(t,e,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,u={...e,event_id:e.event_id||n.event_id||he.uuid4(),timestamp:e.timestamp||he.dateTimestampInSeconds()},c=n.integrations||t.integrations.map(f=>f.name);(function(f,m){const{environment:E,release:S,dist:g,maxValueLength:T=250}=m;"environment"in f||(f.environment="environment"in m?E:rU.DEFAULT_ENVIRONMENT),f.release===void 0&&S!==void 0&&(f.release=S),f.dist===void 0&&g!==void 0&&(f.dist=g),f.message&&(f.message=he.truncate(f.message,T));const y=f.exception&&f.exception.values&&f.exception.values[0];y&&y.value&&(y.value=he.truncate(y.value,T));const R=f.request;R&&R.url&&(R.url=he.truncate(R.url,T))})(u,t),function(f,m){m.length>0&&(f.sdk=f.sdk||{},f.sdk.integrations=[...f.sdk.integrations||[],...m])}(u,c),e.type===void 0&&Mv(u,t.stackParser);const l=function(f,m){if(!m)return f;const E=f?f.clone():new Iv.Scope;return E.update(m),E}(r,n.captureContext);n.mechanism&&he.addExceptionMechanism(u,n.mechanism);const d=o?o.getEventProcessors():[],p=oU.getGlobalScope().getScopeData();if(i){const f=i.getScopeData();Vu.mergeScopeData(p,f)}if(l){const f=l.getScopeData();Vu.mergeScopeData(p,f)}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),Vu.applyScopeDataToEvent(u,p);const _=[...d,...p.eventProcessors];return iU.notifyEventProcessors(_,u,n).then(f=>(f&&wv(f),typeof s=="number"&&s>0?function(m,E,S){if(!m)return null;const g={...m,...m.breadcrumbs&&{breadcrumbs:m.breadcrumbs.map(T=>({...T,...T.data&&{data:he.normalize(T.data,E,S)}}))},...m.user&&{user:he.normalize(m.user,E,S)},...m.contexts&&{contexts:he.normalize(m.contexts,E,S)},...m.extra&&{extra:he.normalize(m.extra,E,S)}};return m.contexts&&m.contexts.trace&&g.contexts&&(g.contexts.trace=m.contexts.trace,m.contexts.trace.data&&(g.contexts.trace.data=he.normalize(m.contexts.trace.data,E,S))),m.spans&&(g.spans=m.spans.map(T=>({...T,...T.data&&{data:he.normalize(T.data,E,S)}}))),g}(f,s,a):f))},Object.defineProperty(pt,"__esModule",{value:!0});const mn=k,aU=$r,lt=ot,Ps=yt,Fu=kn,cU=Gn;function Gu(t,e){const n=lt.getCurrentScope(),r=lt.getClient();if(r){if(r.captureCheckIn)return r.captureCheckIn(t,e,n);Ps.DEBUG_BUILD&&mn.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else Ps.DEBUG_BUILD&&mn.logger.warn("Cannot capture check-in. No client defined.");return mn.uuid4()}function ju(){const t=lt.getIsolationScope(),e=lt.getCurrentScope(),n=e.getSession()||t.getSession();n&&Fu.closeSession(n),Lv(),t.setSession(),e.setSession()}function Lv(){const t=lt.getIsolationScope(),e=lt.getCurrentScope(),n=lt.getClient(),r=e.getSession()||t.getSession();r&&n&&n.captureSession(r)}pt.addEventProcessor=function(t){lt.getIsolationScope().addEventProcessor(t)},pt.captureCheckIn=Gu,pt.captureEvent=function(t,e){return lt.getCurrentScope().captureEvent(t,e)},pt.captureException=function(t,e){return lt.getCurrentScope().captureException(t,cU.parseEventHintOrCaptureContext(e))},pt.captureMessage=function(t,e){const n=typeof e=="string"?e:void 0,r=typeof e!="string"?{captureContext:e}:void 0;return lt.getCurrentScope().captureMessage(t,n,r)},pt.captureSession=function(t=!1){t?ju():Lv()},pt.close=async function(t){const e=lt.getClient();return e?e.close(t):(Ps.DEBUG_BUILD&&mn.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))},pt.endSession=ju,pt.flush=async function(t){const e=lt.getClient();return e?e.flush(t):(Ps.DEBUG_BUILD&&mn.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))},pt.isEnabled=function(){const t=lt.getClient();return!!t&&t.getOptions().enabled!==!1&&!!t.getTransport()},pt.isInitialized=function(){return!!lt.getClient()},pt.lastEventId=function(){return lt.getIsolationScope().lastEventId()},pt.setContext=function(t,e){lt.getIsolationScope().setContext(t,e)},pt.setExtra=function(t,e){lt.getIsolationScope().setExtra(t,e)},pt.setExtras=function(t){lt.getIsolationScope().setExtras(t)},pt.setTag=function(t,e){lt.getIsolationScope().setTag(t,e)},pt.setTags=function(t){lt.getIsolationScope().setTags(t)},pt.setUser=function(t){lt.getIsolationScope().setUser(t)},pt.startSession=function(t){const e=lt.getClient(),n=lt.getIsolationScope(),r=lt.getCurrentScope(),{release:o,environment:i=aU.DEFAULT_ENVIRONMENT}=e&&e.getOptions()||{},{userAgent:s}=mn.GLOBAL_OBJ.navigator||{},a=Fu.makeSession({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...t}),u=n.getSession();return u&&u.status==="ok"&&Fu.updateSession(u,{status:"exited"}),ju(),n.setSession(a),r.setSession(a),a},pt.withMonitor=function(t,e,n){const r=Gu({monitorSlug:t,status:"in_progress"},n),o=mn.timestampInSeconds();function i(s){Gu({monitorSlug:t,status:s,checkInId:r,duration:mn.timestampInSeconds()-o})}return lt.withIsolationScope(()=>{let s;try{s=e()}catch(a){throw i("error"),a}return mn.isThenable(s)?Promise.resolve(s).then(()=>{i("ok")},()=>{i("error")}):i("ok"),s})};var Us={};Object.defineProperty(Us,"__esModule",{value:!0});const uU=k,lU=ot;Us.SessionFlusher=class{constructor(t,e){this._client=t,this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),1e3*this.flushTimeout),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=e}flush(){const t=this.getSessionAggregates();
9t.aggregates.length!==0&&(this._pendingAggregates={},this._client.sendSession(t))}getSessionAggregates(){const t=Object.keys(this._pendingAggregates).map(n=>this._pendingAggregates[parseInt(n)]),e={attrs:this._sessionAttrs,aggregates:t};return uU.dropUndefinedKeys(e)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;const t=lU.getIsolationScope(),e=t.getRequestSession();e&&e.status&&(this._incrementSessionStatusCount(e.status,new Date),t.setRequestSession(void 0))}_incrementSessionStatusCount(t,e){const n=new Date(e).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};const r=this._pendingAggregates[n];switch(r.started||(r.started=new Date(n).toISOString()),t){case"errored":return r.errored=(r.errored||0)+1,r.errored;case"ok":return r.exited=(r.exited||0)+1,r.exited;default:return r.crashed=(r.crashed||0)+1,r.crashed}}};var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});const Hu=k,dU="7";function Dv(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}Jr.getEnvelopeEndpointWithUrlEncodedAuth=function(t,e,n){return e||`${function(r){return`${Dv(r)}${r.projectId}/envelope/`}(t)}?${function(r,o){return Hu.urlEncode({sentry_key:r.publicKey,sentry_version:dU,...o&&{sentry_client:`${o.name}/${o.version}`}})}(t,n)}`},Jr.getReportDialogEndpoint=function(t,e){const n=Hu.makeDsn(t);if(!n)return"";const r=`${Dv(n)}embed/error-page/`;let o=`dsn=${Hu.dsnToString(n)}`;for(const i in e)if(i!=="dsn"&&i!=="onClose")if(i==="user"){const 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`${r}?${o}`};var xs={},Tt={};Object.defineProperty(Tt,"__esModule",{value:!0});const ks=k,pU=ot,Yu=yt,$u=[];function Pv(t,e,n){if(n[e.name])Yu.DEBUG_BUILD&&ks.logger.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,$u.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),$u.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,i)=>r(o,i,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),o=Object.assign((i,s)=>r(i,s,t),{id:e.name});t.addEventProcessor(o)}Yu.DEBUG_BUILD&&ks.logger.log(`Integration installed: ${e.name}`)}}Tt.addIntegration=function(t){const e=pU.getClient();e?e.addIntegration(t):Yu.DEBUG_BUILD&&ks.logger.warn(`Cannot add integration "${t.name}" because no SDK Client is available.`)},Tt.afterSetupIntegrations=function(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)},Tt.defineIntegration=function(t){return t},Tt.getIntegrationsToSetup=function(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach(s=>{s.isDefaultInstance=!0}),r=Array.isArray(n)?[...e,...n]:typeof n=="function"?ks.arrayify(n(e)):e;const o=function(s){const a={};return s.forEach(u=>{const{name:c}=u,l=a[c];l&&!l.isDefaultInstance&&u.isDefaultInstance||(a[c]=u)}),Object.keys(a).map(u=>a[u])}(r),i=function(s,a){for(let u=0;u<s.length;u++)if(a(s[u])===!0)return u;return-1}(o,s=>s.name==="Debug");if(i!==-1){const[s]=o.splice(i,1);o.push(s)}return o},Tt.installedIntegrations=$u,Tt.setupIntegration=Pv,Tt.setupIntegrations=function(t,e){const n={};return e.forEach(r=>{r&&Pv(t,r,n)}),n},Object.defineProperty(xs,"__esModule",{value:!0});const q=k,hU=Jr,fU=ot,jn=yt,Uv=lr,Bs=Tt,xv=kn,_U=de,EU=Wo,mU=Gn,kv="Not capturing exception because it's already been captured.";function Bv(t){return t.type===void 0}function Vv(t){return t.type==="transaction"}xs.BaseClient=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=q.makeDsn(t.dsn):jn.DEBUG_BUILD&&q.logger.warn("No DSN provided, client will not send events."),this._dsn){const e=hU.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){const r=q.uuid4();if(q.checkOrSetAlreadyCaught(t))return jn.DEBUG_BUILD&&q.logger.log(kv),r;const o={event_id:r,...e};return this._process(this.eventFromException(t,o).then(i=>this._captureEvent(i,o,n))),o.event_id}captureMessage(t,e,n,r){const o={event_id:q.uuid4(),...n},i=q.isParameterizedString(t)?t:String(t),s=q.isPrimitive(t)?this.eventFromMessage(i,e,o):this.eventFromException(t,o);return this._process(s.then(a=>this._captureEvent(a,o,r))),o.event_id}captureEvent(t,e,n){const r=q.uuid4();if(e&&e.originalException&&q.checkOrSetAlreadyCaught(e.originalException))return jn.DEBUG_BUILD&&q.logger.log(kv),r;const o={event_id:r,...e},i=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,i||n)),o.event_id}captureSession(t){typeof t.release!="string"?jn.DEBUG_BUILD&&q.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),xv.updateSession(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;
9return e?(this.emit("flush"),this._isClientDoneProcessing(t).then(n=>e.flush(t).then(r=>n&&r))):q.resolvedSyncPromise(!0)}close(t){return this.flush(t).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];Bs.setupIntegration(this,t,this._integrations),e||Bs.afterSetupIntegrations(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=Uv.createEventEnvelope(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of e.attachments||[])n=q.addItemToEnvelope(n,q.createAttachmentEnvelopeItem(o));const r=this.sendEnvelope(n);r&&r.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const e=Uv.createSessionEnvelope(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const r=`${t}:${e}`;jn.DEBUG_BUILD&&q.logger.log(`Adding outcome: "${r}"`),this._outcomes[r]=this._outcomes[r]+1||1}}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach(n=>n(...e))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,e=>(jn.DEBUG_BUILD&&q.logger.error("Error while sending event:",e),e)):(jn.DEBUG_BUILD&&q.logger.error("Transport disabled"),q.resolvedSyncPromise({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Bs.setupIntegrations(this,t),Bs.afterSetupIntegrations(this,t)}_updateSessionFromEvent(t,e){let n=!1,r=!1;const o=e.exception&&e.exception.values;if(o){r=!0;for(const s of o){const a=s.mechanism;if(a&&a.handled===!1){n=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&n)&&(xv.updateSession(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new q.SyncPromise(e=>{let n=0;const r=setInterval(()=>{this._numProcessing==0?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))},1)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,e,n,r=fU.getIsolationScope()){const o=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i.length>0&&(e.integrations=i),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),mU.prepareEvent(o,t,e,n,this,r).then(s=>{if(s===null)return s;const a={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(s.contexts&&s.contexts.trace)&&a){const{traceId:u,spanId:c,parentSpanId:l,dsc:d}=a;s.contexts={trace:q.dropUndefinedKeys({trace_id:u,span_id:c,parent_span_id:l}),...s.contexts};const p=d||_U.getDynamicSamplingContextFromClient(u,this);s.sdkProcessingMetadata={dynamicSamplingContext:p,...s.sdkProcessingMetadata}}return s})}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then(r=>r.event_id,r=>{if(jn.DEBUG_BUILD){const o=r;o.logLevel==="log"?q.logger.log(o.message):q.logger.warn(o)}})}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:o}=r,i=Vv(t),s=Bv(t),a=t.type||"error",u=`before send for type \`${a}\``,c=o===void 0?void 0:EU.parseSampleRate(o);if(s&&typeof c=="number"&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",t),q.rejectedSyncPromise(new q.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const l=a==="replay_event"?"replay":a,d=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,d).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",l,t),new q.SentryError("An event processor returned `null`, will not send event.","log");if(e.data&&e.data.__sentry__===!0)return p;const h=function(_,f,m){const{beforeSend:E,beforeSendTransaction:S,beforeSendSpan:g}=_;if(Bv(f)&&E)return E(f,m);if(Vv(f)){if(f.spans&&g){const T=[];for(const y of f.spans){const R=g(y);R&&T.push(R)}f.spans=T}if(S)return S(f,m)}return f}(r,p,e);return function(_,f){const m=`${f} must return \`null\` or a valid event.`;if(q.isThenable(_))return _.then(E=>{if(!q.isPlainObject(E)&&E!==null)throw new q.SentryError(m);return E},E=>{throw new q.SentryError(`${f} rejected with ${E}`)});if(!q.isPlainObject(_)&&_!==null)throw new q.SentryError(m);return _}(h,u)}).then(p=>{if(p===null)throw this.recordDroppedEvent("before_send",l,t),new q.SentryError(`${u} returned \`null\`, will not send event.`,"log");const h=n&&n.getSession();!i&&h&&this._updateSessionFromEvent(h,p);const _=p.transaction_info;if(i&&_&&p.transaction!==t.transaction){const f="custom";p.transaction_info={..._,source:f}}return this.sendEvent(p,e),p}).then(null,p=>{throw p instanceof q.SentryError?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new q.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 10Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}})}};var zu={},Vs={};Object.defineProperty(Vs,"__esModule",{value:!0});const Wu=k;Vs.createCheckInEnvelope=function(t,e,n,r,o){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&o&&(i.dsn=Wu.dsnToString(o)),e&&(i.trace=Wu.dropUndefinedKeys(e));const s=function(a){return[{type:"check_in"},a]}(t);return Wu.createEnvelope(i,[s])}
10,Object.defineProperty(zu,"__esModule",{value:!0});const gn=k,gU=xs,SU=Vs,Fv=ot,Fs=yt,TU=Us,vU=Vo,yU=Bn,Gv=et,jv=de;class AU extends gU.BaseClient{constructor(e){vU.registerSpanErrorInstrumentation(),super(e)}eventFromException(e,n){return gn.resolvedSyncPromise(gn.eventFromUnknownInput(this,this._options.stackParser,e,n))}eventFromMessage(e,n="info",r){return gn.resolvedSyncPromise(gn.eventFromMessage(this._options.stackParser,e,n,r,this._options.attachStacktrace))}captureException(e,n,r){if(this._options.autoSessionTracking&&this._sessionFlusher){const o=Fv.getIsolationScope().getRequestSession();o&&o.status==="ok"&&(o.status="errored")}return super.captureException(e,n,r)}captureEvent(e,n,r){if(this._options.autoSessionTracking&&this._sessionFlusher&&(e.type||"exception")==="exception"&&e.exception&&e.exception.values&&e.exception.values.length>0){const o=Fv.getIsolationScope().getRequestSession();o&&o.status==="ok"&&(o.status="errored")}return super.captureEvent(e,n,r)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){const{release:e,environment:n}=this._options;e?this._sessionFlusher=new TU.SessionFlusher(this,{release:e,environment:n}):Fs.DEBUG_BUILD&&gn.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,n,r){const o="checkInId"in e&&e.checkInId?e.checkInId:gn.uuid4();if(!this._isEnabled())return Fs.DEBUG_BUILD&&gn.logger.warn("SDK not enabled, will not capture checkin."),o;const i=this.getOptions(),{release:s,environment:a,tunnel:u}=i,c={check_in_id:o,monitor_slug:e.monitorSlug,status:e.status,release:s,environment:a};"duration"in e&&(c.duration=e.duration),n&&(c.monitor_config={schedule:n.schedule,checkin_margin:n.checkinMargin,max_runtime:n.maxRuntime,timezone:n.timezone,failure_issue_threshold:n.failureIssueThreshold,recovery_threshold:n.recoveryThreshold});const[l,d]=this._getTraceInfoFromScope(r);d&&(c.contexts={trace:d});const p=SU.createCheckInEnvelope(c,l,this.getSdkMetadata(),u,this.getDsn());return Fs.DEBUG_BUILD&&gn.logger.info("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(p),o}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():Fs.DEBUG_BUILD&&gn.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,n,r,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,n,r,o)}_getTraceInfoFromScope(e){if(!e)return[void 0,void 0];const n=yU._getSpanForScope(e);if(n){const u=Gv.getRootSpan(n);return[jv.getDynamicSamplingContextFromSpan(u),Gv.spanToTraceContext(u)]}const{traceId:r,spanId:o,parentSpanId:i,dsc:s}=e.getPropagationContext(),a={trace_id:r,span_id:o,parent_span_id:i};return s?[s,a]:[jv.getDynamicSamplingContextFromClient(r,this),a]}}zu.ServerRuntimeClient=AU;var Gs={};Object.defineProperty(Gs,"__esModule",{value:!0});const Hv=k,Yv=ot,bU=yt;function $v(t){Yv.getCurrentScope().setClient(t)}Gs.initAndBind=function(t,e){e.debug===!0&&(bU.DEBUG_BUILD?Hv.logger.enable():Hv.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Yv.getCurrentScope().update(e.initialScope);const n=new t(e);$v(n),n.init()},Gs.setCurrentClient=$v;var js={};Object.defineProperty(js,"__esModule",{value:!0});const ee=k,zv=yt;function Wv(t,e){if(e==="event"||e==="transaction")return Array.isArray(t)?t[1]:void 0}js.DEFAULT_TRANSPORT_BUFFER_SIZE=64,js.createTransport=function(t,e,n=ee.makePromiseBuffer(t.bufferSize||64)){let r={};return{send:function(o){const i=[];if(ee.forEachEnvelopeItem(o,(u,c)=>{const l=ee.envelopeItemTypeToDataCategory(c);if(ee.isRateLimited(r,l)){const d=Wv(u,c);t.recordDroppedEvent("ratelimit_backoff",l,d)}else i.push(u)}),i.length===0)return ee.resolvedSyncPromise({});const s=ee.createEnvelope(o[0],i),a=u=>{ee.forEachEnvelopeItem(s,(c,l)=>{const d=Wv(c,l);t.recordDroppedEvent(u,ee.envelopeItemTypeToDataCategory(l),d)})};return n.add(()=>e({body:ee.serializeEnvelope(s)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&zv.DEBUG_BUILD&&ee.logger.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=ee.updateRateLimits(r,u),u),u=>{throw a("network_error"),u})).then(u=>u,u=>{if(u instanceof ee.SentryError)return zv.DEBUG_BUILD&&ee.logger.error("Skipped sending event because buffer is full."),a("queue_overflow"),ee.resolvedSyncPromise({});throw u})},flush:o=>n.drain(o)}};var ti={};Object.defineProperty(ti,"__esModule",{value:!0});const Hs=k,RU=yt,qu=5e3;ti.MIN_DELAY=100,ti.START_DELAY=qu,ti.makeOfflineTransport=function(t){function e(...n){RU.DEBUG_BUILD&&Hs.logger.info("[Offline]:",...n)}return n=>{const r=t(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let i,s=qu;function a(l){i&&clearTimeout(i),i=setTimeout(async()=>{i=void 0;const d=await o.shift();d&&(e("Attempting to send previously queued event"),d[0].sent_at=new Date().toISOString(),c(d,!0).catch(p=>{e("Failed to retry sending",p)}))},l),typeof i!="number"&&i.unref&&i.unref()}function u(){i||(a(s),s=Math.min(2*s,36e5))}async function c(l,d=!1){if(!d&&Hs.envelopeContainsItemType(l,["replay_event","replay_recording"]))return await o.push(l),a(100),{};try{const p=await r.send(l);let h=100;if(p){if(p.headers&&p.headers["retry-after"])h=Hs.parseRetryAfterHeader(p.headers["retry-after"]);
10else if(p.headers&&p.headers["x-sentry-rate-limits"])h=6e4;else if((p.statusCode||0)>=400)return p}return a(h),s=qu,p}catch(p){if(await function(h,_,f){return!Hs.envelopeContainsItemType(h,["client_report"])&&(!n.shouldStore||n.shouldStore(h,_,f))}(l,p,s))return d?await o.unshift(l):await o.push(l),u(),e("Error sending. Event queued.",p),{};throw p}}return n.flushAtStartup&&u(),{send:c,flush:l=>r.flush(l)}}};var Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});const Ku=k,OU=Jr;function Ju(t,e){let n;return Ku.forEachEnvelopeItem(t,(r,o)=>(e.includes(o)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}Ys.eventFromEnvelope=Ju,Ys.makeMultiplexedTransport=function(t,e){return n=>{const r=t(n),o=new Map;function i(s,a){const u=a?`${s}:${a}`:s;let c=o.get(u);if(!c){const l=Ku.dsnFromString(s);if(!l)return;const d=OU.getEnvelopeEndpointWithUrlEncodedAuth(l,n.tunnel);c=a?function(p,h){return _=>{const f=p(_);return{...f,send:async m=>{const E=Ju(m,["event","transaction","profile","replay_event"]);return E&&(E.release=h),f.send(m)}}}}(t,a)({...n,url:d}):t({...n,url:d}),o.set(u,c)}return[s,c]}return{send:async function(s){const a=e({envelope:s,getEvent:function(c){const l=c&&c.length?c:["event"];return Ju(s,l)}}).map(c=>typeof c=="string"?i(c,void 0):i(c.dsn,c.release)).filter(c=>!!c);return a.length===0&&a.push(["",r]),(await Promise.all(a.map(([c,l])=>l.send(function(d,p){return Ku.createEnvelope(p?{...d[0],dsn:p}:d[0],d[1])}(s,c)))))[0]},flush:async function(s){const a=[...o.values(),r];return(await Promise.all(a.map(u=>u.flush(s)))).every(u=>u)}}}};var Xu={};function qv(t){return t[t.length-1]==="/"?t.slice(0,-1):t}Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.isSentryRequestUrl=function(t,e){const n=e&&e.getDsn(),r=e&&e.getOptions().tunnel;return function(o,i){return!!i&&o.includes(i.host)}(t,n)||function(o,i){return i?qv(o)===qv(i):!1}(t,r)};var Zu={};Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.parameterize=function(t,...e){const n=new String(String.raw(t,...e));return n.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=e,n};var Qu={};Object.defineProperty(Qu,"__esModule",{value:!0});const Kv=k;Qu.applySdkMetadata=function(t,e,n=[e],r="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:Kv.SDK_VERSION})),version:Kv.SDK_VERSION}),t._metadata=o};var $s={};Object.defineProperty($s,"__esModule",{value:!0});const Jv=k,Xv=ot,NU=100;$s.addBreadcrumb=function(t,e){const n=Xv.getClient(),r=Xv.getIsolationScope();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=NU}=n.getOptions();if(i<=0)return;const s={timestamp:Jv.dateTimestampInSeconds(),...t},a=o?Jv.consoleSandbox(()=>o(s,e)):s;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,i))};var tl={};Object.defineProperty(tl,"__esModule",{value:!0});const IU=k,CU=ot,MU=Tt;let Zv;const Qv=new WeakMap,wU=MU.defineIntegration(()=>({name:"FunctionToString",setupOnce(){Zv=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=IU.getOriginalFunction(this),n=Qv.has(CU.getClient())&&e!==void 0?e:this;return Zv.apply(n,t)}}catch{}},setup(t){Qv.set(t,!0)}}));tl.functionToStringIntegration=wU;var el={};
10Object.defineProperty(el,"__esModule",{value:!0});const Ht=k,Xr=yt,LU=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],DU=Tt.defineIntegration((t={})=>({name:"InboundFilters",processEvent(e,n,r){const o=r.getOptions(),i=function(s={},a={}){return{allowUrls:[...s.allowUrls||[],...a.allowUrls||[]],denyUrls:[...s.denyUrls||[],...a.denyUrls||[]],ignoreErrors:[...s.ignoreErrors||[],...a.ignoreErrors||[],...s.disableErrorDefaults?[]:LU],ignoreTransactions:[...s.ignoreTransactions||[],...a.ignoreTransactions||[]],ignoreInternal:s.ignoreInternal===void 0||s.ignoreInternal}}(t,o);return function(s,a){return a.ignoreInternal&&function(u){try{return u.exception.values[0].type==="SentryError"}catch{}return!1}(s)?(Xr.DEBUG_BUILD&&Ht.logger.warn(`Event dropped due to being internal Sentry Error. 11Event: ${Ht.getEventDescription(s)}`),!0):function(u,c){return u.type||!c||!c.length?!1:function(l){const d=[];l.message&&d.push(l.message);let p;try{p=l.exception.values[l.exception.values.length-1]}catch{}return p&&p.value&&(d.push(p.value),p.type&&d.push(`${p.type}: ${p.value}`)),d}(u).some(l=>Ht.stringMatchesSomePattern(l,c))}(s,a.ignoreErrors)?(Xr.DEBUG_BUILD&&Ht.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 12Event: ${Ht.getEventDescription(s)}`),!0):function(u,c){if(u.type!=="transaction"||!c||!c.length)return!1;const l=u.transaction;return!!l&&Ht.stringMatchesSomePattern(l,c)}(s,a.ignoreTransactions)?(Xr.DEBUG_BUILD&&Ht.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 13Event: ${Ht.getEventDescription(s)}`),!0):function(u,c){if(!c||!c.length)return!1;const l=zs(u);return!!l&&Ht.stringMatchesSomePattern(l,c)}(s,a.denyUrls)?(Xr.DEBUG_BUILD&&Ht.logger.warn(`Event dropped due to being matched by \`denyUrls\` option. 14Event: ${Ht.getEventDescription(s)}. 15Url: ${zs(s)}`),!0):function(u,c){if(!c||!c.length)return!0;const l=zs(u);return!l||Ht.stringMatchesSomePattern(l,c)}(s,a.allowUrls)?!1:(Xr.DEBUG_BUILD&&Ht.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option. 16Event: ${Ht.getEventDescription(s)}. 17Url: ${zs(s)}`),!0)}(e,i)?null:e}}));function zs(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?function(n=[]){for(let r=n.length-1;r>=0;r--){const o=n[r];if(o&&o.filename!=="<anonymous>"&&o.filename!=="[native code]")return o.filename||null}return null}(e):null}catch{return Xr.DEBUG_BUILD&&Ht.logger.error(`Cannot extract url for event ${Ht.getEventDescription(t)}`),null}}el.inboundFiltersIntegration=DU;var nl={};Object.defineProperty(nl,"__esModule",{value:!0});const ty=k,PU=Tt.defineIntegration((t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(r,o,i){const s=i.getOptions();ty.applyAggregateErrorsToEvent(ty.exceptionFromError,s.stackParser,s.maxValueLength,n,e,r,o)}}});nl.linkedErrorsIntegration=PU;var rl={},ei={};Object.defineProperty(ei,"__esModule",{value:!0});const ol=k,ey=new Map,ny=new Set;function ry(t,e){return function(n){if(ol.GLOBAL_OBJ._sentryModuleMetadata)for(const r of Object.keys(ol.GLOBAL_OBJ._sentryModuleMetadata)){const o=ol.GLOBAL_OBJ._sentryModuleMetadata[r];if(ny.has(r))continue;ny.add(r);const i=n(r);for(const s of i.reverse())if(s.filename){ey.set(s.filename,o);break}}}(t),ey.get(e)}ei.addMetadataToStackFrames=function(t,e){try{e.exception.values.forEach(n=>{if(n.stacktrace)for(const r of n.stacktrace.frames||[]){if(!r.filename)continue;const o=ry(t,r.filename);o&&(r.module_metadata=o)}})}catch{}},ei.getMetadataForUrl=ry,ei.stripMetadataFromStackFrames=function(t){try{t.exception.values.forEach(e=>{if(e.stacktrace)for(const n of e.stacktrace.frames||[])delete n.module_metadata})}catch{}},Object.defineProperty(rl,"__esModule",{value:!0});const UU=k,oy=ei,xU=Tt.defineIntegration(()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",e=>{UU.forEachEnvelopeItem(e,(n,r)=>{if(r==="event"){const o=Array.isArray(n)?n[1]:void 0;o&&(oy.stripMetadataFromStackFrames(o),n[1]=o)}})})},processEvent(t,e,n){const r=n.getOptions().stackParser;return oy.addMetadataToStackFrames(r,t),t}}));rl.moduleMetadataIntegration=xU;var il={};
17Object.defineProperty(il,"__esModule",{value:!0});const kU=k,sl={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},BU=Tt.defineIntegration((t={})=>{const e={...sl,...t,include:{...sl.include,...t.include,user:t.include&&typeof t.include.user=="boolean"?t.include.user:{...sl.include.user,...(t.include||{}).user}}};return{name:"RequestData",processEvent(n){const{sdkProcessingMetadata:r={}}=n,o=r.request;if(!o)return n;const i=function(s){const{transactionNamingScheme:a,include:{ip:u,user:c,...l}}=s,d=["method"];for(const[h,_]of Object.entries(l))_&&d.push(h);let p;if(c===void 0)p=!0;else if(typeof c=="boolean")p=c;else{const h=[];for(const[_,f]of Object.entries(c))f&&h.push(_);p=h}return{include:{ip:u,user:p,request:d.length!==0?d:void 0,transaction:a}}}(e);return kU.addRequestDataToEvent(n,o,i)}}});il.requestDataIntegration=BU;var al={};Object.defineProperty(al,"__esModule",{value:!0});const pr=k,iy=ot,cl=pt,VU=Tt.defineIntegration((t={})=>{const e=t.levels||pr.CONSOLE_LEVELS;return{name:"CaptureConsole",setup(n){"console"in pr.GLOBAL_OBJ&&pr.addConsoleInstrumentationHandler(({args:r,level:o})=>{iy.getClient()===n&&e.includes(o)&&function(i,s){const a={level:pr.severityLevelFromString(s),extra:{arguments:i}};iy.withScope(u=>{if(u.addEventProcessor(d=>(d.logger="console",pr.addExceptionMechanism(d,{handled:!1,type:"console"}),d)),s==="assert"){if(!i[0]){const d=`Assertion failed: ${pr.safeJoin(i.slice(1)," ")||"console.assert"}`;u.setExtra("arguments",i.slice(1)),cl.captureMessage(d,a)}return}const c=i.find(d=>d instanceof Error);if(c)return void cl.captureException(c,a);const l=pr.safeJoin(i," ");cl.captureMessage(l,a)})}(r,o)})}}});al.captureConsoleIntegration=VU;var ul={};Object.defineProperty(ul,"__esModule",{value:!0});const FU=k,GU=Tt.defineIntegration((t={})=>{const e={stringify:!1,...t};return{name:"Debug",setup(n){n.on("beforeSendEvent",(r,o)=>{FU.consoleSandbox(()=>{e.stringify?(console.log(JSON.stringify(r,null,2)),o&&Object.keys(o).length&&console.log(JSON.stringify(o,null,2))):(console.log(r),o&&Object.keys(o).length&&console.log(o))})})}}});ul.debugIntegration=GU;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});const jU=k,HU=yt,YU=Tt.defineIntegration(()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(sy(e,t))return HU.DEBUG_BUILD&&jU.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}});function sy(t,e){return!!e&&(!!function(n,r){const o=n.message,i=r.message;return!(!o&&!i||o&&!i||!o&&i||o!==i||!cy(n,r)||!ay(n,r))}(t,e)||!!function(n,r){const o=uy(r),i=uy(n);return!(!o||!i||o.type!==i.type||o.value!==i.value||!cy(n,r)||!ay(n,r))}(t,e))}function ay(t,e){let n=ly(t),r=ly(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function cy(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function uy(t){return t.exception&&t.exception.values&&t.exception.values[0]}function ly(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch{return}}Ws._shouldDropEvent=sy,Ws.dedupeIntegration=YU;var ll={};
17Object.defineProperty(ll,"__esModule",{value:!0});const Hn=k,$U=yt,zU=Tt.defineIntegration((t={})=>{const{depth:e=3,captureErrorCause:n=!0}=t;return{name:"ExtraErrorData",processEvent:(r,o)=>function(i,s={},a,u){if(!s.originalException||!Hn.isError(s.originalException))return i;const c=s.originalException.name||s.originalException.constructor.name,l=function(d,p){try{const h=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],_={};for(const f of Object.keys(d)){if(h.indexOf(f)!==-1)continue;const m=d[f];_[f]=Hn.isError(m)?m.toString():m}if(p&&d.cause!==void 0&&(_.cause=Hn.isError(d.cause)?d.cause.toString():d.cause),typeof d.toJSON=="function"){const f=d.toJSON();for(const m of Object.keys(f)){const E=f[m];_[m]=Hn.isError(E)?E.toString():E}}return _}catch(h){$U.DEBUG_BUILD&&Hn.logger.error("Unable to extract extra data from the Error object:",h)}return null}(s.originalException,u);if(l){const d={...i.contexts},p=Hn.normalize(l,a);return Hn.isPlainObject(p)&&(Hn.addNonEnumerableProperty(p,"__sentry_skip_normalization__",!0),d[c]=p),{...i,contexts:d}}return i}(r,o,e,n)}});ll.extraErrorDataIntegration=zU;var qs={};Object.defineProperty(qs,"__esModule",{value:!0});const Ks=k,WU=Tt.defineIntegration((t={})=>{const e=t.root,n=t.prefix||"app:///",r="window"in Ks.GLOBAL_OBJ&&Ks.GLOBAL_OBJ.window!==void 0,o=t.iteratee||dy({isBrowser:r,root:e,prefix:n});function i(s){return{...s,frames:s&&s.frames&&s.frames.map(a=>o(a))}}return{name:"RewriteFrames",processEvent(s){let a=s;return s.exception&&Array.isArray(s.exception.values)&&(a=function(u){try{return{...u,exception:{...u.exception,values:u.exception.values.map(c=>({...c,...c.stacktrace&&{stacktrace:i(c.stacktrace)}}))}}}catch{return u}}(a)),a}}});function dy({isBrowser:t,root:e,prefix:n}){return r=>{if(!r.filename)return r;const o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),i=/^\//.test(r.filename);if(t){if(e){const s=r.filename;s.indexOf(e)===0&&(r.filename=s.replace(e,n))}}else if(o||i){const s=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=e?Ks.relative(e,s):Ks.basename(s);r.filename=`${n}${a}`}return r}}qs.generateIteratee=dy,qs.rewriteFramesIntegration=WU;var dl={};Object.defineProperty(dl,"__esModule",{value:!0});const py=k,qU=Tt.defineIntegration(()=>{const t=1e3*py.timestampInSeconds();return{name:"SessionTiming",processEvent(e){const n=1e3*py.timestampInSeconds();return{...e,extra:{...e.extra,"session:start":t,"session:duration":n-t,"session:end":n}}}}});dl.sessionTimingIntegration=qU;var Js={};Object.defineProperty(Js,"__esModule",{value:!0});const hy=k;function KU(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 JU(t){const e=new Set;for(const r of t.issues)r.path&&e.add(r.path[0]);const n=Array.from(e);return`Failed to validate keys: ${hy.truncate(n.join(", "),100)}`}function fy(t,e,n){return e.exception&&e.exception.values&&n&&n.originalException&&(r=n.originalException,hy.isError(r)&&r.name==="ZodError"&&Array.isArray(r.errors))&&n.originalException.issues.length!==0?{...e,exception:{...e.exception,values:[{...e.exception.values[0],value:JU(n.originalException)},...e.exception.values.slice(1)]},extra:{...e.extra,"zoderror.issues":n.originalException.errors.slice(0,t).map(KU)}}:e;var r}const XU=Tt.defineIntegration((t={})=>{const e=t.limit||10;return{name:"ZodErrors",processEvent:(n,r)=>fy(e,n,r)}});Js.applyZodErrorsToEvent=fy,Js.zodErrorsIntegration=XU;var Xs={},ve={};
17Object.defineProperty(ve,"__esModule",{value:!0}),ve.COUNTER_METRIC_TYPE="c",ve.DEFAULT_BROWSER_FLUSH_INTERVAL=5e3,ve.DEFAULT_FLUSH_INTERVAL=1e4,ve.DISTRIBUTION_METRIC_TYPE="d",ve.GAUGE_METRIC_TYPE="g",ve.MAX_WEIGHT=1e4,ve.SET_METRIC_TYPE="s",Object.defineProperty(Xs,"__esModule",{value:!0});const Zs=k,ZU=ot,QU=yt,pl=et,tx=le,ex=zo,Qs=ve;function _y(t,e){const n=Zs.getGlobalSingleton("globalMetricsAggregators",()=>new WeakMap),r=n.get(t);if(r)return r;const o=new e(t);return t.on("flush",()=>o.flush()),t.on("close",()=>o.close()),n.set(t,o),o}function ta(t,e,n,r,o={}){const i=o.client||ZU.getClient();if(!i)return;const s=pl.getActiveSpan(),a=s?pl.getRootSpan(s):void 0,u=a&&pl.spanToJSON(a).description,{unit:c,tags:l,timestamp:d}=o,{release:p,environment:h}=i.getOptions(),_={};p&&(_.release=p),h&&(_.environment=h),u&&(_.transaction=u),QU.DEBUG_BUILD&&Zs.logger.log(`Adding value of ${r} to ${e} metric ${n}`),_y(i,t).add(e,n,r,c,{..._,...l},d)}function hl(t,e,n,r){ta(t,Qs.DISTRIBUTION_METRIC_TYPE,e,fl(n),r)}const nx={increment:function(t,e,n=1,r){ta(t,Qs.COUNTER_METRIC_TYPE,e,fl(n),r)},distribution:hl,set:function(t,e,n,r){ta(t,Qs.SET_METRIC_TYPE,e,n,r)},gauge:function(t,e,n,r){ta(t,Qs.GAUGE_METRIC_TYPE,e,fl(n),r)},timing:function(t,e,n,r="second",o){if(typeof n=="function"){const i=Zs.timestampInSeconds();return tx.startSpanManual({op:"metrics.timing",name:e,startTime:i,onlyIfParent:!0},s=>ex.handleCallbackErrors(()=>n(),()=>{},()=>{const a=Zs.timestampInSeconds();hl(t,e,a-i,{...o,unit:"second"}),s.end(a)}))}hl(t,e,n,{...o,unit:r})},getMetricsAggregatorForClient:_y};function fl(t){return typeof t=="string"?parseInt(t):t}Xs.metrics=nx;var _l={},El={},ni={},Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});const rx=k;function ox(t){return t.replace(/[^\w\-./]+/gi,"")}const ix=[[` 18`,"\\n"],["\r","\\r"],[" ","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function sx(t){return[...t].reduce((e,n)=>e+function(r){for(const[o,i]of ix)if(r===o)return i;return r}(n),"")}Fe.getBucketKey=function(t,e,n,r){const o=Object.entries(rx.dropUndefinedKeys(r)).sort((i,s)=>i[0].localeCompare(s[0]));return`${t}${e}${n}${o}`},Fe.sanitizeMetricKey=function(t){return t.replace(/[^\w\-.]+/gi,"_")},Fe.sanitizeTags=function(t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[ox(n)]=sx(String(t[n])));return e},Fe.sanitizeUnit=function(t){return t.replace(/[^\w]+/gi,"_")},Fe.serializeMetricBuckets=function(t){let e="";for(const n of t){const r=Object.entries(n.tags),o=r.length>0?`|#${r.map(([i,s])=>`${i}:${s}`).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${o}|T${n.timestamp} 19`}return e},Fe.simpleHash=function(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e&=e;return e>>>0},Object.defineProperty(ni,"__esModule",{value:!0});const ml=k,ax=Fe;function Ey(t,e,n,r){const o={sent_at:new Date().toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(o.dsn=ml.dsnToString(e));const i=function(s){const a=ax.serializeMetricBuckets(s);return[{type:"statsd",length:a.length},a]}(t);return ml.createEnvelope(o,[i])}ni.captureAggregateMetrics=function(t,e){ml.logger.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const n=Ey(e,t.getDsn(),t.getSdkMetadata(),t.getOptions().tunnel);t.sendEnvelope(n)},ni.createMetricEnvelope=Ey;var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});const ea=ve,cx=Fe;class my{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}}class gy{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}`}}class Sy{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}}class Ty{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"?cx.simpleHash(e):e).join(":")}}const ux={[ea.COUNTER_METRIC_TYPE]:my,[ea.GAUGE_METRIC_TYPE]:gy,[ea.DISTRIBUTION_METRIC_TYPE]:Sy,[ea.SET_METRIC_TYPE]:Ty};Yn.CounterMetric=my,Yn.DistributionMetric=Sy,Yn.GaugeMetric=gy,Yn.METRIC_MAP=ux,Yn.SetMetric=Ty,Object.defineProperty(El,"__esMo
19dule",{value:!0});const vy=k,lx=et,ri=ve,dx=ni,px=Yn,na=Fe;El.MetricsAggregator=class{constructor(t){this._client=t,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval(()=>this._flush(),ri.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*ri.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(t,e,n,r="none",o={},i=vy.timestampInSeconds()){const s=Math.floor(i),a=na.sanitizeMetricKey(e),u=na.sanitizeTags(o),c=na.sanitizeUnit(r),l=na.getBucketKey(t,a,c,u);let d=this._buckets.get(l);const p=d&&t===ri.SET_METRIC_TYPE?d.metric.weight:0;d?(d.metric.add(n),d.timestamp<s&&(d.timestamp=s)):(d={metric:new px.METRIC_MAP[t](n),timestamp:s,metricType:t,name:a,unit:c,tags:u},this._buckets.set(l,d));const h=typeof n=="string"?d.metric.weight-p:n;lx.updateMetricSummaryOnActiveSpan(t,a,h,c,o,l),this._bucketsTotalWeight+=d.metric.weight,this._bucketsTotalWeight>=ri.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush)return this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),void this._buckets.clear();const t=Math.floor(vy.timestampInSeconds())-ri.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,e=new Map;for(const[n,r]of this._buckets)r.timestamp<=t&&(e.set(n,r),this._bucketsTotalWeight-=r.metric.weight);for(const[n]of e)this._buckets.delete(n);this._captureMetrics(e)}_captureMetrics(t){if(t.size>0){const e=Array.from(t).map(([,n])=>n);dx.captureAggregateMetrics(this._client,e)}}}
19,Object.defineProperty(_l,"__esModule",{value:!0});const Zr=El,Qr=Xs,hx={increment:function(t,e=1,n){Qr.metrics.increment(Zr.MetricsAggregator,t,e,n)},distribution:function(t,e,n){Qr.metrics.distribution(Zr.MetricsAggregator,t,e,n)},set:function(t,e,n){Qr.metrics.set(Zr.MetricsAggregator,t,e,n)},gauge:function(t,e,n){Qr.metrics.gauge(Zr.MetricsAggregator,t,e,n)},timing:function(t,e,n="second",r){return Qr.metrics.timing(Zr.MetricsAggregator,t,e,n,r)},getMetricsAggregatorForClient:function(t){return Qr.metrics.getMetricsAggregatorForClient(t,Zr.MetricsAggregator)}};_l.metricsDefault=hx;var gl={};Object.defineProperty(gl,"__esModule",{value:!0});const fx=k,_x=et,yy=ve,Ex=ni,mx=Yn,ra=Fe;gl.BrowserMetricsAggregator=class{constructor(t){this._client=t,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),yy.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(t,e,n,r="none",o={},i=fx.timestampInSeconds()){const s=Math.floor(i),a=ra.sanitizeMetricKey(e),u=ra.sanitizeTags(o),c=ra.sanitizeUnit(r),l=ra.getBucketKey(t,a,c,u);let d=this._buckets.get(l);const p=d&&t===yy.SET_METRIC_TYPE?d.metric.weight:0;d?(d.metric.add(n),d.timestamp<s&&(d.timestamp=s)):(d={metric:new mx.METRIC_MAP[t](n),timestamp:s,metricType:t,name:a,unit:c,tags:u},this._buckets.set(l,d));const h=typeof n=="string"?d.metric.weight-p:n;_x.updateMetricSummaryOnActiveSpan(t,a,h,c,o,l)}flush(){if(this._buckets.size===0)return;const t=Array.from(this._buckets.values());Ex.captureAggregateMetrics(this._client,t),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}};var oa={};Object.defineProperty(oa,"__esModule",{value:!0});const hr=k,Sl=ot,Ay=St,by=ur,Ry=et,gx=Yr,Oy=Te,Sx=le,Ny=de;function Iy(t,e,n,r,o){const i=Sl.getIsolationScope(),{traceId:s,spanId:a,sampled:u,dsc:c}={...i.getPropagationContext(),...n.getPropagationContext()},l=o?Ry.spanToTraceHeader(o):hr.generateSentryTraceHeader(s,a,u),d=hr.dynamicSamplingContextToSentryBaggageHeader(c||(o?Ny.getDynamicSamplingContextFromSpan(o):Ny.getDynamicSamplingContextFromClient(s,e))),p=r.headers||(typeof Request<"u"&&hr.isInstanceOf(t,Request)?t.headers:void 0);if(p){if(typeof Headers<"u"&&hr.isInstanceOf(p,Headers)){const h=new Headers(p);return h.append("sentry-trace",l),d&&h.append(hr.BAGGAGE_HEADER_NAME,d),h}if(Array.isArray(p)){const h=[...p,["sentry-trace",l]];return d&&h.push([hr.BAGGAGE_HEADER_NAME,d]),h}{const h="baggage"in p?p.baggage:void 0,_=[];return Array.isArray(h)?_.push(...h):h&&_.push(h),d&&_.push(d),{...p,"sentry-trace":l,baggage:_.length>0?_.join(","):void 0}}}return{"sentry-trace":l,baggage:d}}oa.addTracingHeadersToFetchRequest=Iy,oa.instrumentFetchRequest=function(t,e,n,r,o="auto.http.browser"){if(!t.fetchData)return;const i=by.hasTracingEnabled()&&e(t.fetchData.url);if(t.endTimestamp&&i){const _=t.fetchData.__span;if(!_)return;const f=r[_];return void(f&&(function(m,E){if(E.response){Oy.setHttpStatus(m,E.response.status);const S=E.response&&E.response.headers&&E.response.headers.get("content-length");if(S){const g=parseInt(S);g>0&&m.setAttribute("http.response_content_length",g)}}else E.error&&m.setStatus({code:Oy.SPAN_STATUS_ERROR,message:"internal_error"});m.end()}(f,t),delete r[_]))}const s=Sl.getCurrentScope(),a=Sl.getClient(),{method:u,url:c}=t.fetchData,l=function(_){try{return new URL(_).href}catch{return}}(c),d=l?hr.parseUrl(l).host:void 0,p=!!Ry.getActiveSpan(),h=i&&p?Sx.startInactiveSpan({name:`${u} ${c}`,attributes:{url:c,type:"fetch","http.method":u,"http.url":l,"server.address":d,[Ay.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:o,[Ay.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new gx.SentryNonRecordingSpan;if(t.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h,n(t.fetchData.url)&&a){const _=t.args[0];t.args[1]=t.args[1]||{};const f=t.args[1];f.headers=Iy(_,a,s,f,by.hasTracingEnabled()&&p?h:void 0)}return h};var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});const Cy=k,Tx=ot,ia=pt,My=St,vx=le,vl={mechanism:{handled:!1,data:{function:"trpcMiddleware"}}};Tl.trpcMiddleware=function(t={}){return function(e){const{path:n,type:r,next:o,rawInput:i}=e,s=Tx.getClient(),a=s&&s.getOptions(),u={procedure_type:r};function c(l){typeof l=="object"&&l!==null&&"ok"in l&&!l.ok&&"error"in l&&ia.captureException(l.error,vl)}return(t.attachRpcInput!==void 0?t.attachRpcInput:a&&a.sendDefaultPii)&&(u.input=Cy.normalize(i)),ia.setContext("trpc",u),vx.startSpanManual({name:`trpc/${n}`,op:"rpc.server",attributes:{[My.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[My.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"}},l=>{let d;try{d=o()}
19catch(p){throw ia.captureException(p,vl),l.end(),p}return Cy.isThenable(d)?d.then(p=>(c(p),l.end(),p),p=>{throw ia.captureException(p,vl),l.end(),p}):(c(d),l.end(),d)})}};var yl={};Object.defineProperty(yl,"__esModule",{value:!0});const yx=k,wy=ot;yl.captureFeedback=function(t,e={},n=wy.getCurrentScope()){const{message:r,name:o,email:i,url:s,source:a,associatedEventId:u}=t,c={contexts:{feedback:yx.dropUndefinedKeys({contact_email:i,name:o,message:r,url:s,source:a,associated_event_id:u})},type:"feedback",level:"info"},l=n&&n.getClient()||wy.getClient();return l&&l.emit("beforeSendFeedback",c,e),n.captureEvent(c,e)};var sa={};Object.defineProperty(sa,"__esModule",{value:!0});const Ax=$s,tn=ot,en=pt;function Ly(){return{bindClient(t){tn.getCurrentScope().setClient(t)},withScope:tn.withScope,getClient:()=>tn.getClient(),getScope:tn.getCurrentScope,getIsolationScope:tn.getIsolationScope,captureException:(t,e)=>tn.getCurrentScope().captureException(t,e),captureMessage:(t,e,n)=>tn.getCurrentScope().captureMessage(t,e,n),captureEvent:en.captureEvent,addBreadcrumb:Ax.addBreadcrumb,setUser:en.setUser,setTags:en.setTags,setTag:en.setTag,setExtra:en.setExtra,setExtras:en.setExtras,setContext:en.setContext,getIntegration(t){const e=tn.getClient();return e&&e.getIntegrationByName(t.id)||null},startSession:en.startSession,endSession:en.endSession,captureSession(t){if(t)return en.endSession();(function(){const e=tn.getCurrentScope(),n=tn.getClient(),r=e.getSession();n&&r&&n.captureSession(r)})()}}}const bx=Ly;sa.getCurrentHub=bx,sa.getCurrentHubShim=Ly,Object.defineProperty(v,"__esModule",{value:!0});const Rx=Vo,Dy=cr,Ox=bu,Py=Os,Nx=Cs,Ix=Yr,oi=Te,fr=le,Al=de,Uy=qo,Cx=Is,xy=zr,ye=St,bl=lr,Rt=pt,to=ot,ky=Yo,Mx=or,wx=_n,Rl=kn,Lx=Us,Dx=ir,Px=Ds,By=Jr,Ux=xs,xx=zu,Vy=Gs,kx=js,Bx=ti,Vx=Ys,Ol=Tt,Fy=qr,Fx=Gn,Gx=Vs,jx=ur,Hx=Xu,Yx=zo,$x=Zu,Sn=et,zx=Wo,Wx=Qu,qx=$r,Kx=$s,Jx=tl,Xx=el,Zx=nl,Qx=rl,t1=il,e1=al,n1=ul,r1=Ws,o1=ll,i1=qs,s1=dl,a1=Js,c1=Xs,u1=_l,l1=gl,d1=Hr,Gy=oa,p1=Tl,h1=yl,jy=sa,f1=k;v.registerSpanErrorInstrumentation=Rx.registerSpanErrorInstrumentation,v.getCapturedScopesOnSpan=Dy.getCapturedScopesOnSpan,v.setCapturedScopesOnSpan=Dy.setCapturedScopesOnSpan,v.addTracingExtensions=Ox.addTracingExtensions,v.TRACING_DEFAULTS=Py.TRACING_DEFAULTS,v.startIdleSpan=Py.startIdleSpan,v.SentrySpan=Nx.SentrySpan,v.SentryNonRecordingSpan=Ix.SentryNonRecordingSpan,v.SPAN_STATUS_ERROR=oi.SPAN_STATUS_ERROR,v.SPAN_STATUS_OK=oi.SPAN_STATUS_OK,v.SPAN_STATUS_UNSET=oi.SPAN_STATUS_UNSET,v.getSpanStatusFromHttpCode=oi.getSpanStatusFromHttpCode,v.setHttpStatus=oi.setHttpStatus,v.continueTrace=fr.continueTrace,v.startInactiveSpan=fr.startInactiveSpan,v.startNewTrace=fr.startNewTrace,v.startSpan=fr.startSpan,v.startSpanManual=fr.startSpanManual,v.suppressTracing=fr.suppressTracing,v.withActiveSpan=fr.withActiveSpan,v.getDynamicSamplingContextFromClient=Al.getDynamicSamplingContextFromClient,v.getDynamicSamplingContextFromSpan=Al.getDynamicSamplingContextFromSpan,v.spanToBaggageHeader=Al.spanToBaggageHeader,v.setMeasurement=Uy.setMeasurement,v.timedEventsToMeasurements=Uy.timedEventsToMeasurements,v.sampleSpan=Cx.sampleSpan,v.logSpanEnd=xy.logSpanEnd,v.logSpanStart=xy.logSpanStart,v.SEMANTIC_ATTRIBUTE_CACHE_HIT=ye.SEMANTIC_ATTRIBUTE_CACHE_HIT,v.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=ye.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,v.SEMANTIC_ATTRIBUTE_CACHE_KEY=ye.SEMANTIC_ATTRIBUTE_CACHE_KEY,v.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=ye.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,v.SEMANTIC_ATTRIBUTE_PROFILE_ID=ye.SEMANTIC_ATTRIBUTE_PROFILE_ID,v.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=ye.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,v.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=ye.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,v.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=ye.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,v.SEMANTIC_ATTRIBUTE_SENTRY_OP=ye.SEMANTIC_ATTRIBUTE_SENTRY_OP,v.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=ye.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,v.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=ye.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,v.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=ye.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,v.createEventEnvelope=bl.createEventEnvelope,v.createSessionEnvelope=bl.createSessionEnvelope,v.createSpanEnvelope=bl.createSpanEnvelope,v.addEventProcessor=Rt.addEventProcessor,v.captureCheckIn=Rt.captureCheckIn,v.captureEvent=Rt.captureEvent,v.captureException=Rt.captureException,v.captureMessage=Rt.captureMessage,v.captureSession=Rt.captureSession,v.close=Rt.close,v.endSession=Rt.endSession,v.flush=Rt.flush,v.isEnabled=Rt.isEnabled,v.isInitialized=Rt.isInitialized,v.lastEventId=Rt.lastEventId,v.setContext=Rt.setContext,v.setExtra=Rt.setExtra,v.setExtras=Rt.setExtras,v.setTag=Rt.setTag,v.setTags=Rt.setTags,v.setUser=Rt.setUser,v.startSession=Rt.startSession,v.withMonitor=Rt.withMonitor,v.getClient=to.getClient,v.getCurrentScope=to.getCurrentScope,v.getGlobalScope=to.getGlobalScope,v.getIsolationScope=to.getIsolationScope,v.withIsolationScope=to.withIsolationScope,v.withScope=to.withScope,v.getDefaultCurrentScope=ky.getDefaultCurrentScope,v.getDefaultIsolationScope=ky.getDefaultIsolationScope,v.setAsyncContextStrategy=Mx.setAsyncContextStrategy,v.getMainCarrier=wx.getMainCarrier,v.closeSession=Rl.closeSession,v.makeSession=Rl.makeSession,v.updateSession=Rl.updateSession,v.SessionFlusher=Lx.SessionFlusher,v.Scope=Dx.Scope,v.notifyEventProcessors=Px.notifyEventProcessors,v.getEnvelopeEndpointWithUrlEncodedAuth=By.getEnvelopeEndpointWithUrlEncodedAuth,v.getReportDialogEndpoint=By.getReportDialogEndpoint,v.BaseClient=Ux.BaseClient,v.ServerRuntimeClient=xx.ServerRuntimeClient,v.initAndBind=Vy.initAndBind,v.setCurrentClient=Vy.setCurrentClient,v.createTransport=kx.createTransport,v.makeOfflineTransport=Bx.makeOfflineTransport,v.makeMultiplexedTransport=Vx.makeMultiplexedTransport,v.addIntegration=Ol.addIntegration,v.defineIntegration=Ol.defineIntegration,v.getIntegrationsToSetup=Ol.getIntegrationsToSetup,v.applyScopeDataToEvent=Fy.applyScopeDataToEvent,v.mergeScopeData=Fy.mergeScopeData,v.prepareEvent=Fx.prepareEvent,v.createCheckInEnvelope=Gx.createCheckInEnvelope,v.hasTracingEnabled=jx.hasTracingEnabled,v.isSentryRequestUrl=Hx.isSentryRequestUrl,v.handleCallbackErrors=Yx.handleCallbackErrors,v.parameterize=$x.parameterize,v.addChildSpanToSpan=Sn.addChildSpanToSpan,v.getActiveSpan=Sn.getActiveSpan,v.getRootSpan=Sn.getRootSpan,v.getSpanDescendants=Sn.getSpanDescendants,v.getStatusMessage=Sn.getStatusMessage,v.spanIsSampled=Sn.spanIsSampled,v.spanToJSON=Sn.spanToJSON,v.spanToTraceContext=Sn.spanToTraceContext,v.spanToTraceHeader=Sn.spanToTraceHeader,v.parseSampleRate=zx.parseSampleRate,v.applySdkMetadata=Wx.applySdkMetadata,v.DEFAULT_ENVIRONMENT=qx.DEFAULT_ENVIRONMENT,v.addBreadcrumb=Kx.addBreadcrumb,v.functionToStringIntegration=Jx.functionToStringIntegration,v.inboundFiltersIntegration=Xx.inboundFiltersIntegration,v.linkedErrorsIntegration=Zx.linkedErrorsIntegration,v.moduleMetadataIntegration=Qx.moduleMetadataIntegration,v.requestDataIntegration=t1.requestDataIntegration,v.captureConsoleIntegration=e1.captureConsoleIntegration,v.debugIntegration=n1.debugIntegration,v.dedupeIntegration=r1.dedupeIntegration,v.extraErrorDataIntegration=o1.extraErrorDataIntegration,v.rewriteFramesIntegration=i1.rewriteFramesIntegration,v.sessionTimingIntegration=s1.sessionTimingIntegration,v.zodErrorsIntegration=a1.zodErrorsIntegration,v.metrics=c1.metrics,v.metricsDefault=u1.metricsDefault,v.BrowserMetricsAggregator=l1.BrowserMetricsAggregator,v.getMetricSummaryJsonForSpan=d1.getMetricSummaryJsonForSpan,v.addTracingHeadersToFetchRequest=Gy.addTracingHeadersToFetchRequest,v.instrumentFetchRequest=Gy.instrumentFetchRequest,v.trpcMiddleware=p1.trpcMiddleware,v.captureFeedback=h1.captureFeedback,v.getCurrentHub=jy.getCurrentHub,v.getCurrentHubShim=jy.getCurrentHubShim,v.SDK_VERSION=f1.SDK_VERSION;var _1={name:"@hyperdx/instrumentation-exception",version:"0.3.0"},Ge={};
19Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.eventFromUnknownInput=Ge.eventFromMessage=Ge.eventFromException=Ge.exceptionFromError=void 0;const E1=v,Ot=k;function Nl(t,e){const n=Cl(t,e),r={type:e&&e.name,value:S1(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function m1(t,e,n,r){const o=(0,E1.getClient)(),i=o&&o.getOptions().normalizeDepth,s=function(c){for(const l in c)if(Object.prototype.hasOwnProperty.call(c,l)){const d=c[l];if(d instanceof Error)return d}}(e),a={__serialized__:(0,Ot.normalizeToSize)(e,i)};if(s)return{exception:{values:[Nl(t,s)]},extra:a};const u={exception:{values:[{type:(0,Ot.isEvent)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:T1(e,{isUnhandledRejection:r})}]},extra:a};if(n){const c=Cl(t,n);c.length&&(u.exception.values[0].stacktrace={frames:c})}return u}function Il(t,e){return{exception:{values:[Nl(t,e)]}}}function Cl(t,e){const n=e.stacktrace||e.stack||"",r=function(i){return i&&g1.test(i.message)?1:0}(e),o=function(i){return typeof i.framesToPop=="number"?i.framesToPop:0}(e);try{return t(n,r,o)}catch{}return[]}Ge.exceptionFromError=Nl;const g1=/Minified React error #\d+;/i;function S1(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Hy(t,e,n,r,o){let i;if((0,Ot.isErrorEvent)(e)&&e.error)return Il(t,e.error);if((0,Ot.isDOMError)(e)||(0,Ot.isDOMException)(e)){const s=e;if("stack"in e)i=Il(t,e);else{const a=s.name||((0,Ot.isDOMError)(s)?"DOMError":"DOMException"),u=s.message?`${a}: ${s.message}`:a;i=Ml(t,u,n,r),(0,Ot.addExceptionTypeValue)(i,u)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return(0,Ot.isError)(e)?Il(t,e):(0,Ot.isPlainObject)(e)||(0,Ot.isEvent)(e)?(i=m1(t,e,n,o),(0,Ot.addExceptionMechanism)(i,{synthetic:!0}),i):(i=Ml(t,e,n,r),(0,Ot.addExceptionTypeValue)(i,`${e}`,void 0),(0,Ot.addExceptionMechanism)(i,{synthetic:!0}),i)}function Ml(t,e,n,r){const o={};if(r&&n){const i=Cl(t,n);i.length&&(o.exception={values:[{value:e,stacktrace:{frames:i}}]})}if((0,Ot.isParameterizedString)(e)){const{__sentry_template_string__:i,__sentry_template_values__:s}=e;return o.logentry={message:i,params:s},o}return o.message=e,o}function T1(t,{isUnhandledRejection:e}){const n=(0,Ot.extractExceptionKeysForMessage)(t),r=e?"promise rejection":"exception";return(0,Ot.isErrorEvent)(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:(0,Ot.isEvent)(t)?`Event \`${function(o){try{const i=Object.getPrototypeOf(o);return i?i.constructor.name:void 0}catch{}}(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}Ge.eventFromException=function(t,e,n,r){const o=Hy(t,e,n&&n.syntheticException||void 0,r);return(0,Ot.addExceptionMechanism)(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),(0,Ot.resolvedSyncPromise)(o)},Ge.eventFromMessage=function(t,e,n="info",r,o){const i=Ml(t,e,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),(0,Ot.resolvedSyncPromise)(i)},Ge.eventFromUnknownInput=Hy;var aa={},je={};Object.defineProperty(je,"__esModule",{value:!0}),je.wrap=je.ignoreNextOnError=je.shouldIgnoreOnError=je.WINDOW=void 0;const Yy=v,eo=k;je.WINDOW=eo.GLOBAL_OBJ;let wl=0;function $y(){wl++,setTimeout(()=>{wl--})}je.shouldIgnoreOnError=function(){return wl>0},je.ignoreNextOnError=$y,je.wrap=function t(e,n={},r){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if((0,eo.getOriginalFunction)(e))return e}catch{return e}const o=function(){const i=Array.prototype.slice.call(arguments);try{r&&typeof r=="function"&&r.apply(this,arguments);const s=i.map(a=>t(a,n));return e.apply(this,s)}catch(s){throw $y(),(0,Yy.withScope)(a=>{a.addEventProcessor(u=>(n.mechanism&&((0,eo.addExceptionTypeValue)(u,void 0,void 0),(0,eo.addExceptionMechanism)(u,n.mechanism)),u.extra={...u.extra,arguments:i},u)),(0,Yy.captureException)(s)}),s}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}catch{}(0,eo.markFunctionWrapped)(o,e),(0,eo.addNonEnumerableProperty)(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>e.name})}catch{}return o},Object.defineProperty(aa,"__esModule",{value:!0}),aa.browserApiErrorsIntegration=void 0;const v1=v,ne=k,nn=je,y1=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];function zy(t){return function(...e){const n=e[0];return e[0]=(0,nn.wrap)(n,{mechanism:{data:{function:(0,ne.getFunctionName)(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function A1(t){return function(e){return t.apply(this,[(0,nn.wrap)(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,ne.getFunctionName)(t)},handled:!1,type:"instrument"}})])}}function b1(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&(0,ne.fill)(n,r,function(o){const i={mechanism:{data:{function:r,handler:(0,ne.getFunctionName)(o)},handled:!1,type:"instrument"}},s=(0,ne.getOriginalFunction)(o);return s&&(i.mechanism.data.handler=(0,ne.getFunctionName)(s)),(0,nn.wrap)(o,i)})}),t.apply(this,e)}}function R1(t){const e=nn.WINDOW,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,ne.fill)(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=(0,nn.wrap)(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,ne.getFunctionName)(i),target:t},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,(0,nn.wrap)(i,{mechanism:{data:{function:"addEventListener",handler:(0,ne.getFunctionName)(i),target:t},handled:!1,type:"instrument"}}),s])}}),(0,ne.fill)(n,"removeEventListener",function(r){return function(o,i,s){const a=i;try{const u=a&&a.__sentry_wrapped__;u&&r.call(this,o,u,s)}catch{}return r.call(this,o,a,s)}}))}aa.browserApiErrorsIntegration=(0,v1.defineIntegration)((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&(0,ne.fill)(nn.WINDOW,"setTimeout",zy),e.setInterval&&(0,ne.fill)(nn.WINDOW,"setInterval",zy),e.requestAnimationFrame&&(0,ne.fill)(nn.WINDOW,"requestAnimationFrame",A1),e.XMLHttpRequest&&"XMLHttpRequest"in nn.WINDOW&&(0,ne.fill)(XMLHttpRequest.prototype,"send",b1);const n=e.eventTarget;
19n&&(Array.isArray(n)?n:y1).forEach(R1)}}});var no={};Object.defineProperty(no,"__esModule",{value:!0}),no.applySourceContextToFrame=no.contextLinesIntegration=void 0;const O1=v,Ll=k,Dl=Ll.GLOBAL_OBJ;function Wy(t,e,n,r){return t.filename===n&&t.lineno&&e.length&&(0,Ll.addContextToFrame)(e,t,r),t}no.contextLinesIntegration=(0,O1.defineIntegration)((t={})=>{const e=t.frameContextLines!=null?t.frameContextLines:7;return{name:"ContextLines",processEvent:n=>function(r,o){const i=Dl.document,s=Dl.location&&(0,Ll.stripUrlQueryAndFragment)(Dl.location.href);if(!i||!s)return r;const a=r.exception&&r.exception.values;if(!a||!a.length)return r;const u=i.documentElement.innerHTML;if(!u)return r;const c=["<!DOCTYPE html>","<html>",...u.split(` 20`),"</html>"];return a.forEach(l=>{const d=l.stacktrace;d&&d.frames&&(d.frames=d.frames.map(p=>Wy(p,c,s,o)))}),r}(n,e)}}),no.applySourceContextToFrame=Wy;var ca={};Object.defineProperty(ca,"__esModule",{value:!0}),ca.httpContextIntegration=void 0;const N1=v,_r=je;ca.httpContextIntegration=(0,N1.defineIntegration)(()=>({name:"HttpContext",preprocessEvent(t){if(!_r.WINDOW.navigator&&!_r.WINDOW.location&&!_r.WINDOW.document)return;const e=t.request&&t.request.url||_r.WINDOW.location&&_r.WINDOW.location.href,{referrer:n}=_r.WINDOW.document||{},{userAgent:r}=_r.WINDOW.navigator||{},o={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...t.request,...e&&{url:e},headers:o};t.request=i}}));var qy={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.hyperdxIntegration=t._hyperdxIntegration=void 0;const e=v;t._hyperdxIntegration=(n={})=>({name:"HyperDX",processEvent(r){var o,i,s,a,u,c,l,d;const p=function(_){const f=[];_.message&&f.push(_.message);let m;try{m=_.exception.values[_.exception.values.length-1]}catch{}return m&&m.value&&(f.push(m.value),m.type&&f.push(`${m.type}: ${m.value}`)),f}(r);p.length>0&&(r.message=p[p.length-1]);const h=(o=r.exception)===null||o===void 0?void 0:o.values;if(h&&h.length>0){for(const _ of h)if(!((i=_.stacktrace)===null||i===void 0)&&i.frames){const f=[];let m=null;for(let E=_.stacktrace.frames.length-1;E>=0;E--){const S=_.stacktrace.frames[E];!((s=S.filename)===null||s===void 0)&&s.includes("framework-")||!((a=S.function)===null||a===void 0)&&a.endsWith("hdxReportString")||!((u=S.function)===null||u===void 0)&&u.endsWith("hdxReportError")||!((c=S.function)===null||c===void 0)&&c.endsWith("hdxReportErrorEvent")||!((l=S.function)===null||l===void 0)&&l.endsWith("hdxReportEvent")||(!((d=S.function)===null||d===void 0)&&d.endsWith("hdxReport")?m=S.filename:m&&S.filename===m?m=null:f.unshift(S))}_.stacktrace.frames=f}}return r}}),t.hyperdxIntegration=(0,e.defineIntegration)(t._hyperdxIntegration)})(qy);var ua={};Object.defineProperty(ua,"__esModule",{value:!0}),ua.linkedErrorsIntegration=void 0;const I1=v,C1=k,M1=Ge;ua.linkedErrorsIntegration=(0,I1.defineIntegration)((t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(r,o,i){const s=i.getOptions();(0,C1.applyAggregateErrorsToEvent)(M1.exceptionFromError,s.stackParser,s.maxValueLength,n,e,r,o)}}});var Ky={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultStackParser=t.defaultStackLineParsers=t.opera11StackLineParser=t.opera10StackLineParser=t.winjsStackLineParser=t.geckoStackLineParser=t.chromeStackLineParser=void 0;const e=k;function n(d,p,h,_){const f={filename:d,function:p==="<anonymous>"?e.UNKNOWN_FUNCTION:p,in_app:!0};return h!==void 0&&(f.lineno=h),_!==void 0&&(f.colno=_),f}const r=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/\((\S*)(?::(\d+))(?::(\d+))\)/;t.chromeStackLineParser=[30,d=>{const p=r.exec(d);if(p){if(p[2]&&p[2].indexOf("eval")===0){const f=o.exec(p[2]);f&&(p[2]=f[1],p[3]=f[2],p[4]=f[3])}const[h,_]=l(p[1]||e.UNKNOWN_FUNCTION,p[2]);return n(_,h,p[3]?+p[3]:void 0,p[4]?+p[4]:void 0)}}];const i=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,s=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;t.geckoStackLineParser=[50,d=>{const p=i.exec(d);if(p){if(p[3]&&p[3].indexOf(" > eval")>-1){const f=s.exec(p[3]);f&&(p[1]=p[1]||"eval",p[3]=f[1],p[4]=f[2],p[5]="")}let h=p[3],_=p[1]||e.UNKNOWN_FUNCTION;return[_,h]=l(_,h),n(h,_,p[4]?+p[4]:void 0,p[5]?+p[5]:void 0)}}];const a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;t.winjsStackLineParser=[40,d=>{const p=a.exec(d);return p?n(p[2],p[1]||e.UNKNOWN_FUNCTION,+p[3],p[4]?+p[4]:void 0):void 0}];const u=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;t.opera10StackLineParser=[10,d=>{const p=u.exec(d);return p?n(p[2],p[3]||e.UNKNOWN_FUNCTION,+p[1]):void 0}];const c=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i;t.opera11StackLineParser=[20,d=>{const p=c.exec(d);return p?n(p[5],p[3]||p[4]||e.UNKNOWN_FUNCTION,+p[1],+p[2]):void 0}],t.defaultStackLineParsers=[t.chromeStackLineParser,t.geckoStackLineParser],t.defaultStackParser=(0,e.createStackParser)(...t.defaultStackLineParsers);const l=(d,p)=>{const h=d.indexOf("safari-extension")!==-1,_=d.indexOf("safari-web-extension")!==-1;return h||_?[d.indexOf("@")!==-1?d.split("@")[0]:e.UNKNOWN_FUNCTION,h?`safari-extension:${p}`:`safari-web-extension:${p}`]:[d,p]}}
20)(Ky),function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.recordException=t.buildEventFromException=t.applyIntegrations=t.setupIntegrations=void 0;const e=Kd,n=Ji,r=v,o=_1,i=Ge,s=aa,a=no,u=ca,c=qy,l=ua,d=Ky,p=n.trace.getTracer(o.name,o.version),h=[(0,r.inboundFiltersIntegration)(),(0,a.contextLinesIntegration)(),(0,s.browserApiErrorsIntegration)(),(0,l.linkedErrorsIntegration)(),(0,u.httpContextIntegration)(),(0,c.hyperdxIntegration)()],_={integrations:h,stackParser:d.defaultStackParser,maxValueLength:250,transport:{}},f={getOptions:()=>_};t.setupIntegrations=()=>{var m,E;for(const S of h)(m=S.setupOnce)===null||m===void 0||m.call(S),(E=S.setup)===null||E===void 0||E.call(S,f)},t.applyIntegrations=async(m,E)=>{var S;for(const g of h)await((S=g.preprocessEvent)===null||S===void 0?void 0:S.call(g,m,E,f));for(const g of h)typeof g.processEvent=="function"&&(m=await g.processEvent(m,E,f));return m},t.buildEventFromException=async(m,E)=>{let S=(0,i.eventFromUnknownInput)(d.defaultStackParser,m);try{S=await(0,r.prepareEvent)(_,S,E)}catch(g){n.diag.error("Failed to prepare event",g)}return(0,t.applyIntegrations)(S,E)},t.recordException=async(m,E)=>{try{const{tracer:S,span:g,attributes:T,...y}=E??{},R=Object.keys(y).length>0?y:{mechanism:{type:"generic",handled:!0}};(0,e.getEventProcessor)(S??p)(await(0,t.buildEventFromException)(m,{data:R}),R,g,T)}catch(S){n.diag.error("Failed to capture exception",S)}}}(Xn);var ii={};function Pl(t){return typeof t=="function"}var qt=console.error.bind(console);function si(t,e,n){var r=!!t[e]&&t.propertyIsEnumerable(e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}function ai(t){t&&t.logger&&(Pl(t.logger)?qt=t.logger:qt("new logger isn't a function, not replacing"))}function Jy(t,e,n){if(t&&t[e]){if(!n)return qt("no wrapper function"),void qt(new Error().stack);if(Pl(t[e])&&Pl(n)){var r=t[e],o=n(r,e);return si(o,"__original",r),si(o,"__unwrap",function(){t[e]===o&&si(t,e,r)}),si(o,"__wrapped",!0),si(t,e,o),o}qt("original object and wrapper must be functions")}else qt("no original function "+e+" to wrap")}function Xy(t,e){return t&&t[e]?t[e].__unwrap?t[e].__unwrap():void qt("no original to unwrap to -- has "+e+" already been unwrapped?"):(qt("no function to unwrap."),void qt(new Error().stack))}ai.wrap=Jy,ai.massWrap=function(t,e,n){if(!t)return qt("must provide one or more modules to patch"),void qt(new Error().stack);Array.isArray(t)||(t=[t]),e&&Array.isArray(e)?t.forEach(function(r){e.forEach(function(o){Jy(r,o,n)})}):qt("must provide one or more functions to wrap on modules")},ai.unwrap=Xy,ai.massUnwrap=function(t,e){if(!t)return qt("must provide one or more modules to patch"),void qt(new Error().stack);Array.isArray(t)||(t=[t]),e&&Array.isArray(e)?t.forEach(function(n){e.forEach(function(r){Xy(n,r)})}):qt("must provide one or more functions to unwrap on modules")};var Zy,rt=ai,Tn={};function w1(){return Zy||(Zy=1,Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.getElementXPath=Tn.limitLen=Tn.stringifyValue=void 0,Tn.stringifyValue=function(t){if(t===void 0)return"(undefined)";if(t===null)return"null";if(t instanceof Error)return t.message||t.toString();if(typeof t=="object")try{const e=JSON.stringify(t);return e==="{}"||e==="[]"?"":e}catch{return t.toString()}return t.toString()},Tn.limitLen=function(t,e){return t.length>e?t.substring(0,e):t},Tn.getElementXPath=function t(e,n){if(e.nodeType===Node.DOCUMENT_NODE)return"/";const r=function(i,s){const a=i.nodeType,u=function(l){if(!l.parentNode)return 0;const d=[l.nodeType];l.nodeType===Node.CDATA_SECTION_NODE&&d.push(Node.TEXT_NODE);let p=Array.from(l.parentNode.childNodes);return p=p.filter(h=>{const _=h.localName;return d.indexOf(h.nodeType)>=0&&_===l.localName}),p.length>=1?p.indexOf(l)+1:0}(i);let c="";if(a===Node.ELEMENT_NODE){const l=i.getAttribute("id");if(s&&l)return`//*[@id="${l}"]`;c=i.localName}else if(a===Node.TEXT_NODE||a===Node.CDATA_SECTION_NODE)c="text()";else{if(a!==Node.COMMENT_NODE)return"";c="comment()"}return c&&u>1?`/${c}[${u}]`:`/${c}`}(e,n);if(n&&r.indexOf("@id")>0)return r;let o="";return e.parentNode&&(o+=t(e.parentNode,!1)),o+=r,o}),Tn}
20(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.HyperDXErrorInstrumentation=t.ERROR_INSTRUMENTATION_VERSION=t.ERROR_INSTRUMENTATION_NAME=void 0;const e=bS,n=Yi.__importStar(rt),r=Xn,o=w1();function i(u){return u&&u.trim()!==""&&!u.startsWith("[object")&&u!=="error"}function s(u,c){c&&c.stack&&i(c.stack)&&u.setAttribute("error.stack",(0,o.limitLen)(c.stack.toString(),4096))}t.ERROR_INSTRUMENTATION_NAME="errors",t.ERROR_INSTRUMENTATION_VERSION="1";class a extends e.InstrumentationBase{constructor(c){super(t.ERROR_INSTRUMENTATION_NAME,t.ERROR_INSTRUMENTATION_VERSION,c),this._consoleErrorHandler=l=>(...d)=>(this.hdxReport("console.error",d),l.apply(this,d)),this._unhandledRejectionListener=l=>{this.hdxReport("unhandledrejection",l.reason)},this._errorListener=l=>{this.hdxReport("onerror",l)},this._documentErrorListener=l=>{this.hdxReport("eventListener.error",l)}}init(){}enable(){n.wrap(console,"error",this._consoleErrorHandler),window.addEventListener("unhandledrejection",this._unhandledRejectionListener),window.addEventListener("error",this._errorListener),document.documentElement.addEventListener("error",this._documentErrorListener,{capture:!0})}disable(){n.unwrap(console,"error"),window.removeEventListener("unhandledrejection",this._unhandledRejectionListener),window.removeEventListener("error",this._errorListener),document.documentElement.removeEventListener("error",this._documentErrorListener,{capture:!0})}hdxReportError(c,l){const d=l.message||l.toString();if(!i(d)&&!l.stack)return;const p=Date.now(),h=this.tracer.startSpan(c,{startTime:p});h.setAttribute("component","error"),h.setAttribute("error",!0),h.setAttribute("error.object",i(l.name)?l.name:l.constructor&&l.constructor.name?l.constructor.name:"Error"),h.setAttribute("error.message",(0,o.limitLen)(d,1024)),s(h,l),(0,r.recordException)(l,{tracer:this.tracer,span:h}).finally(()=>{h.end(p)})}hdxReportString(c,l,d){if(!i(l))return;const p=Date.now(),h=this.tracer.startSpan(c,{startTime:p});h.setAttribute("component","error"),h.setAttribute("error",!0),h.setAttribute("error.object","String"),h.setAttribute("error.message",(0,o.limitLen)(l,1024)),d?(s(h,d),(0,r.recordException)(d,{tracer:this.tracer,span:h}).finally(()=>{h.end(p)})):h.end(p)}hdxReportErrorEvent(c,l){l.error?this.hdxReport(c,l.error):l.message&&this.hdxReport(c,l.message)}hdxReportEvent(c,l){if(!l.target&&!i(l.type))return;const d=Date.now(),p=this.tracer.startSpan(c,{startTime:d});p.setAttribute("component","error"),p.setAttribute("error.type",l.type),l.target&&(p.setAttribute("target_element",l.target.tagName),p.setAttribute("target_xpath",(0,o.getElementXPath)(l.target,!0)),p.setAttribute("target_src",l.target.src)),(0,r.recordException)(l,{tracer:this.tracer,span:p}).finally(()=>{p.end(d)})}hdxReport(c,l){if(!Array.isArray(l)||l.length!==0)if(l instanceof Array&&l.length===1&&(l=l[0]),l instanceof Error)this.hdxReportError(c,l);else if(l instanceof ErrorEvent)this.hdxReportErrorEvent(c,l);else if(l instanceof Event)this.hdxReportEvent(c,l);else if(typeof l=="string")this.hdxReportString(c,l);else if(l instanceof Array){const d=l.find(p=>p instanceof Error);this.hdxReportString(c,l.map(p=>(0,o.stringifyValue)(p)).join(" "),d)}else this.hdxReportString(c,(0,o.stringifyValue)(l))}}t.HyperDXErrorInstrumentation=a})(ii);const Qy=$i("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Ul(t){return t.setValue(Qy,!0)}function xl(t){return t.getValue(Qy)===!0}const kl="baggage";class L1{inject(e,n,r){const o=Zt.getBaggage(e);if(!o||xl(e))return;const i=function(a){return a.getAllEntries().map(([u,c])=>{let l=`${encodeURIComponent(u)}=${encodeURIComponent(c.value)}`;return c.metadata!==void 0&&(l+=";"+c.metadata.toString()),l})}(o).filter(a=>a.length<=4096).slice(0,180),s=function(a){return a.reduce((u,c)=>{const l=`${u}${u!==""?",":""}${c}`;return l.length>8192?u:l},"")}(i);s.length>0&&r.set(n,kl,s)}extract(e,n,r){const o=r.get(n,kl),i=Array.isArray(o)?o.join(","):o;if(!i)return e;const s={};return i.length===0?e:(i.split(",").forEach(a=>{const u=function(c){if(!c)return;const l=c.indexOf(";"),d=l===-1?c:c.substring(0,l),p=d.indexOf("=");if(p<=0)return;const h=d.substring(0,p).trim(),_=d.substring(p+1).trim();if(!h||!_)return;let f,m,E;try{f=decodeURIComponent(h),m=decodeURIComponent(_)}catch{return}return l!==-1&&l<c.length-1&&(E=Tp(c.substring(l+1))),{key:f,value:m,metadata:E}}(a);if(u){const c={value:u.value};u.metadata&&(c.metadata=u.metadata),s[u.key]=c}}),Object.entries(s).length===0?e:Zt.setBaggage(e,Zt.createBaggage(s)))}fields(){return[kl]}}function ci(t){const e={};if(typeof t!="object"||t==null)return e;for(const n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;if(!D1(n)){F.warn(`Invalid attribute key: ${n}`);continue}const r=t[n];tA(r)?Array.isArray(r)?e[n]=r.slice():e[n]=r:F.warn(`Invalid attribute value set for key: ${n}`)}return e}function D1(t){return typeof t=="string"&&t!==""}function tA(t){return t==null||(Array.isArray(t)?function(e){let n;for(const r of e){if(r==null)continue;const o=typeof r;
20if(o!==n){if(!n){if(eA(o)){n=o;continue}return!1}return!1}}return!0}(t):eA(typeof t))}function eA(t){switch(t){case"number":case"boolean":case"string":return!0}return!1}let P1=t=>{F.error(function(e){return typeof e=="string"?e:JSON.stringify(function(n){const r={};let o=n;for(;o!==null;)Object.getOwnPropertyNames(o).forEach(i=>{if(r[i])return;const s=o[i];s&&(r[i]=String(s))}),o=Object.getPrototypeOf(o);return r}(e))}(t))};function vn(t){try{P1(t)}catch{}}const U1="process.runtime.name",la={[Do]:"opentelemetry",[U1]:"browser",[es]:aS,[Po]:"2.7.1"},Lt=performance,x1=Math.pow(10,6),da=Math.pow(10,9);function yn(t){const e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*x1)]}function Er(t){return oA(yn(Lt.timeOrigin),yn(typeof t=="number"?t:Lt.now()))}function ui(t){if(Bl(t))return t;if(typeof t=="number")return t<Lt.timeOrigin?Er(t):yn(t);if(t instanceof Date)return yn(t.getTime());throw TypeError("Invalid input type")}function An(t){return t[0]*da+t[1]}function nA(t){return 1e6*t[0]+t[1]/1e3}function Bl(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function rA(t){return Bl(t)||typeof t=="number"||t instanceof Date}function oA(t,e){const n=[t[0]+e[0],t[1]+e[1]];return n[1]>=da&&(n[1]-=da,n[0]+=1),n}var Ae;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(Ae||(Ae={}));class k1{constructor(e={}){b(this,"_propagators");b(this,"_fields");this._propagators=e.propagators??[];const n=new Set;for(const r of this._propagators){const o=typeof r.fields=="function"?r.fields():[];for(const i of o)n.add(i)}this._fields=Array.from(n)}inject(e,n,r){for(const o of this._propagators)try{o.inject(e,n,r)}catch(i){F.warn(`Failed to inject with ${o.constructor.name}. Err: ${i.message}`)}}extract(e,n,r){return this._propagators.reduce((o,i)=>{try{return i.extract(o,n,r)}catch(s){F.warn(`Failed to extract with ${i.constructor.name}. Err: ${s.message}`)}return o},e)}fields(){return this._fields.slice()}}const Vl="[_0-9a-z-*/]",B1=new RegExp(`^(?:${`[a-z]${Vl}{0,255}`}|${`[a-z0-9]${Vl}{0,240}@[a-z]${Vl}{0,13}`})$`),V1=/^[ -~]{0,255}[!-~]$/,F1=/,|=/;function iA(t){return B1.test(t)}function sA(t){return V1.test(t)&&!F1.test(t)}class Fl{constructor(e){b(this,"_length");b(this,"_rawTraceState");b(this,"_internalState");this._rawTraceState=typeof e=="string"?e:"",this._length=this._rawTraceState.length}set(e,n){if(!iA(e)||!sA(n))return this;const r=this._getState(),o=r.get(e);let i=this._length;if(i+=typeof o=="string"?n.length-o.length:e.length+n.length+(r.size>0?2:1),i>512)return this;const s=new Map(r);return s.delete(e),s.set(e,n),this._fromState(s,i)}unset(e){const n=this._getState(),r=n.get(e);if(typeof r!="string")return this;let o=this._length-(e.length+r.length+1);n.size>1&&(o-=1);const i=new Map(n);return i.delete(e),this._fromState(i,o)}get(e){return this._getState().get(e)}serialize(){let e="",n=0;for(const r of this._getState())n>0&&(e=","+e),e=`${r[0]}=${r[1]}`+e,n++;return e}_getState(){if(this._internalState)return this._internalState;const e=this._rawTraceState.split(","),n=new Map;let r=0;for(const o of e){const i=o.trim(),s=i.indexOf("=");if(s===-1)continue;const a=i.slice(0,s),u=i.slice(s+1);if(!iA(a)||!sA(u))continue;const c=r+i.length+(n.size>0?1:0);if(!(c>512)&&(n.set(a,u),r=c,n.size>=32))break}return this._length=r,this._internalState=new Map(Array.from(n.entries()).reverse()),this._internalState}_fromState(e,n){const r=Object.create(Fl.prototype);return r._internalState=e,r._length=n,r}}const pa="traceparent",Gl="tracestate",G1=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");class j1{inject(e,n,r){const o=Q.getSpanContext(e);if(!o||xl(e)||!wo(o))return;const i=`00-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||De.NONE).toString(16)}`;r.set(n,pa,i),o.traceState&&r.set(n,Gl,o.traceState.serialize())}extract(e,n,r){const o=r.get(n,pa);if(!o)return e;const i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return e;const s=function(u){const c=G1.exec(u);return c?c[1]==="00"&&c[5]?null:{traceId:c[2],spanId:c[3],traceFlags:parseInt(c[4],16)}:null}(i);if(!s)return e;s.isRemote=!0;const a=r.get(n,Gl);if(a){const u=Array.isArray(a)?a.join(","):a;s.traceState=new Fl(typeof u=="string"?u:void 0)}return Q.setSpanContext(e,s)}fields(){return[pa,Gl]}}
20const H1="[object Object]",Y1="[object Null]",$1="[object Undefined]",aA=Function.prototype.toString,z1=aA.call(Object),W1=Object.getPrototypeOf,cA=Object.prototype,uA=cA.hasOwnProperty,mr=Symbol?Symbol.toStringTag:void 0,lA=cA.toString;function dA(t){if(!function(r){return r!=null&&typeof r=="object"}(t)||function(r){return r==null?r===void 0?$1:Y1:mr&&mr in Object(r)?function(o){const i=uA.call(o,mr),s=o[mr];let a=!1;try{o[mr]=void 0,a=!0}catch{}const u=lA.call(o);return a&&(i?o[mr]=s:delete o[mr]),u}(r):function(o){return lA.call(o)}(r)}(t)!==H1)return!1;const e=W1(t);if(e===null)return!0;const n=uA.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&aA.call(n)===z1}const q1=20;function jl(t){return ha(t)?t.slice():t}function pA(t,e,n=0,r){let o;if(!(n>q1)){if(n++,fa(t)||fa(e)||fA(e))o=jl(e);else if(ha(t)){if(o=t.slice(),ha(e))for(let i=0,s=e.length;i<s;i++)o.push(jl(e[i]));else if(li(e)){const i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){const u=i[s];u!=="__proto__"&&u!=="constructor"&&u!=="prototype"&&(o[u]=jl(e[u]))}}}else if(li(t))if(li(e)){if(!function(s,a){return!(!dA(s)||!dA(a))}(t,e))return e;o=Object.assign({},t);const i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){const u=i[s];if(u==="__proto__"||u==="constructor"||u==="prototype")continue;const c=e[u];if(fa(c))c===void 0?delete o[u]:o[u]=c;else{const l=o[u],d=c;if(hA(t,u,r)||hA(e,u,r))delete o[u];else{if(li(l)&&li(d)){const p=r.get(l)||[],h=r.get(d)||[];p.push({obj:t,key:u}),h.push({obj:e,key:u}),r.set(l,p),r.set(d,h)}o[u]=pA(o[u],c,n,r)}}}}else o=e;return o}}function hA(t,e,n){const r=n.get(t[e])||[];for(let o=0,i=r.length;o<i;o++){const s=r[o];if(s.key===e&&s.obj===t)return!0}return!1}function ha(t){return Array.isArray(t)}function fA(t){return typeof t=="function"}function li(t){return!fa(t)&&!ha(t)&&!fA(t)&&typeof t=="object"}function fa(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||t===void 0||t instanceof Date||t instanceof RegExp||t===null}function _A(t,e){return typeof e=="string"?t===e:!!t.match(e)}function di(t,e){if(!e)return!1;for(const n of e)if(_A(t,n))return!0;return!1}class K1{constructor(){b(this,"_promise");b(this,"_resolve");b(this,"_reject");this._promise=new Promise((e,n)=>{this._resolve=e,this._reject=n})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class EA{constructor(e,n){b(this,"_isCalled",!1);b(this,"_deferred",new K1);b(this,"_callback");b(this,"_that");this._callback=e,this._that=n}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(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}}const J1={_export:function(t,e){return new Promise(n=>{H.with(Ul(H.active()),()=>{t.export(e,n)})})}};let _a;function X1(){if(_a===void 0)try{const t=globalThis.process.argv0;_a=t?`unknown_service:${t}`:"unknown_service"}catch{_a="unknown_service"}return _a}const pi=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class Ea{constructor(e,n){b(this,"_rawAttributes");b(this,"_asyncAttributesPending",!1);b(this,"_schemaUrl");b(this,"_memoizedAttributes");const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([o,i])=>(pi(i)&&(this._asyncAttributesPending=!0),[o,i])),this._rawAttributes=gA(this._rawAttributes),this._schemaUrl=function(o){return typeof o=="string"||o===void 0?o:void F.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",o)}(n==null?void 0:n.schemaUrl)}static FromAttributeList(e,n){const r=new Ea({},n);return r._rawAttributes=gA(e),r._asyncAttributesPending=e.filter(([o,i])=>pi(i)).length>0,r}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[n,r]=this._rawAttributes[e];this._rawAttributes[e]=[n,pi(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&F.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[n,r]of this._rawAttributes)pi(r)?F.debug(`Unsettled resource attribute ${n} skipped`):r!=null&&(e[n]??(e[n]=r));return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){if(e==null)return this;const n=function(o,i){const s=o==null?void 0:o.schemaUrl,a=i==null?void 0:i.schemaUrl,u=s===void 0||s==="",c=a===void 0||a==="";return u?a:c||s===a?s:void F.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',s,a)}(this,e),r=n?{schemaUrl:n}:void 0;return Ea.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],r)}}function mA(t,e){return Ea.FromAttributeList(Object.entries(t),e)}function gA(t){return t.map(([e,n])=>pi(n)?[e,n.catch(r=>{F.debug("promise rejection for resource attribute: %s - %s",e,r)})]:[e,n])}class Z1{constructor(e){b(this,"_spanContext");b(this,"kind");b(this,"parentSpanContext");b(this,"attributes",{});b(this,"links",[]);b(this,"events",[]);b(this,"startTime");b(this,"resource");b(this,"instrumentationScope");b(this,"_droppedAttributesCount",0);b(this,"_droppedEventsCount",0);b(this,"_droppedLinksCount",0);b(this,"_attributesCount",0);b(this,"name");b(this,"status",{code:Pe.UNSET});b(this,"endTime",[0,0]);b(this,"_ended",!1);b(this,"_duration",[-1,-1]);b(this,"_spanProcessor");b(this,"_spanLimits");b(this,"_attributeValueLengthLimit");b(this,"_recordEndMetrics");b(this,"_performanceStartTime");b(this,"_performanceOffset");b(this,"_startTimeProvided");const n=Date.now();if(this._spanContext=e.spanContext,this._performanceStartTime=Lt.now(),this._performanceOffset=n-(this._performanceStartTime+Lt.timeOrigin),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,e.links)for(const r of e.links)this.addLink(r);this.startTime=this._getTime(e.startTime??n),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,n){if(n==null||this._isSpanEnded())return this;if(e.length===0)return F.warn(`Invalid attribute key: ${e}`),this;if(!tA(n))return F.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:r}=this._spanLimits,o=!Object.prototype.hasOwnProperty.call(this.attributes,e);return r!==void 0&&this._attributesCount>=r&&o?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),o&&this._attributesCount++,this)}setAttributes(e){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.setAttribute(n,e[n]);return this}addEvent(e,n,r){if(this._isSpanEnded())return this;const{eventCountLimit:o}=this._spanLimits;if(o===0)return F.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&F.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),rA(n)&&(rA(r)||(r=n),n=void 0);const i=ci(n),{attributePerEventCountLimit:s}=this._spanLimits,a={};let u=0,c=0;for(const l in i){if(!Object.prototype.hasOwnProperty.call(i,l))continue;const d=i[l];s!==void 0&&c>=s?u++:(a[l]=this._truncateToSize(d),c++)}return this.events.push({name:e,attributes:a,time:this._getTime(r),droppedAttributesCount:u}),this}addLink(e){if(this._isSpanEnded())return this;const{linkCountLimit:n}=this._spanLimits;if(n===0)return this._droppedLinksCount++,this;n!==void 0&&this.links.length>=n&&(this._droppedLinksCount===0&&F.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);const{attributePerLinkCountLimit:r}=this._spanLimits,o=ci(e.attributes),i={};let s=0,a=0;for(const c in o){if(!Object.prototype.hasOwnProperty.call(o,c))continue;const l=o[c];r!==void 0&&a>=r?s++:(i[c]=this._truncateToSize(l),a++)}const u={context:e.context};return a>0&&(u.attributes=i),s>0&&(u.droppedAttributesCount=s),this.links.push(u),this}addLinks(e){for(const n of e)this.addLink(n);return this}setStatus(e){if(this._isSpanEnded())return this;if(e.code===Pe.UNSET)return this;if(this.status.code===Pe.OK)return this;const n={code:e.code};return e.code===Pe.ERROR&&(typeof e.message=="string"?n.message=e.message:e.message!=null&&F.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`)),this.status=n,this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){var n;this._isSpanEnded()?F.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`):(this.endTime=this._getTime(e),this._duration=function(r,o){let i=o[0]-r[0],s=o[1]-r[1];
20return s<0&&(i-=1,s+=da),[i,s]}(this.startTime,this.endTime),this._duration[0]<0&&(F.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&&F.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&F.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),(n=this._recordEndMetrics)==null||n.call(this),this._ended=!0,this._spanProcessor.onEnd(this))}_getTime(e){if(typeof e=="number"&&e<=Lt.now())return Er(e+this._performanceOffset);if(typeof e=="number")return yn(e);if(e instanceof Date)return yn(e.getTime());if(Bl(e))return e;if(this._startTimeProvided)return yn(Date.now());const n=Lt.now()-this._performanceStartTime;return oA(this.startTime,yn(n))}isRecording(){return this._ended===!1}recordException(e,n){const r={};typeof e=="string"?r[Qi]=e:e&&(e.code?r[ts]=e.code.toString():e.name&&(r[ts]=e.name),e.message&&(r[Qi]=e.message),e.stack&&(r[sS]=e.stack)),r[ts]||r[Qi]?this.addEvent("exception",r,n):F.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(){if(this._ended){const e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);F.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,n){return e.length<=n?e:e.substring(0,n)}_truncateToSize(e){const n=this._attributeValueLengthLimit;return n<=0?(F.warn(`Attribute value limit must be positive, got ${n}`),e):typeof e=="string"?this._truncateToLimitUtil(e,n):Array.isArray(e)?e.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):e}}var rn,on;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(rn||(rn={}));class ro{shouldSample(){return{decision:rn.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class $n{shouldSample(){return{decision:rn.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class hi{constructor(e){b(this,"_root");b(this,"_remoteParentSampled");b(this,"_remoteParentNotSampled");b(this,"_localParentSampled");b(this,"_localParentNotSampled");this._root=e.root,this._root||(vn(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new $n),this._remoteParentSampled=e.remoteParentSampled??new $n,this._remoteParentNotSampled=e.remoteParentNotSampled??new ro,this._localParentSampled=e.localParentSampled??new $n,this._localParentNotSampled=e.localParentNotSampled??new ro}shouldSample(e,n,r,o,i,s){const a=Q.getSpanContext(e);return a&&wo(a)?a.isRemote?a.traceFlags&De.SAMPLED?this._remoteParentSampled.shouldSample(e,n,r,o,i,s):this._remoteParentNotSampled.shouldSample(e,n,r,o,i,s):a.traceFlags&De.SAMPLED?this._localParentSampled.shouldSample(e,n,r,o,i,s):this._localParentNotSampled.shouldSample(e,n,r,o,i,s):this._root.shouldSample(e,n,r,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()}}`}}class SA{constructor(e=0){b(this,"_ratio");b(this,"_upperBound");this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}shouldSample(e,n){return{decision:ac(n)&&this._accumulate(n)<this._upperBound?rn.RECORD_AND_SAMPLED:rn.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 n=0;for(let r=0;r<32;r+=8){let o=0;for(let i=0;i<8;i++){const s=e.charCodeAt(r+i);o=o<<4|(s<58?s-48:s<71?s-55:s-87)}n=(n^o)>>>0}return n}}(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"})(on||(on={}));const TA=1;function vA(){return{sampler:yA(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function yA(){const t=on.ParentBasedAlwaysOn;switch(t){case on.AlwaysOn:return new $n;case on.AlwaysOff:return new ro;case on.ParentBasedAlwaysOn:return new hi({root:new $n});case on.ParentBasedAlwaysOff:return new hi({root:new ro});case on.TraceIdRatio:return new SA(AA());case on.ParentBasedTraceIdRatio:return new hi({root:new SA(AA())});default:return F.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "${on.ParentBasedAlwaysOn}".`),new hi({root:new $n})}}function AA(){return F.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${TA}.`),TA}const Q1=1/0;class tk{constructor(e,n){b(this,"_maxExportBatchSize");b(this,"_maxQueueSize");b(this,"_scheduledDelayMillis");b(this,"_exportTimeoutMillis");b(this,"_exporter");b(this,"_isExporting",!1);b(this,"_finishedSpans",[]);b(this,"_timer");b(this,"_shutdownOnce");b(this,"_droppedSpansCount",0);this._exporter=e,this._maxExportBatchSize=typeof(n==null?void 0:n.maxExportBatchSize)=="number"?n.maxExportBatchSize:512,this._maxQueueSize=typeof(n==null?void 0:n.maxQueueSize)=="number"?n.maxQueueSize:2048,this._scheduledDelayMillis=typeof(n==null?void 0:n.scheduledDelayMillis)=="number"?n.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof(n==null?void 0:n.exportTimeoutMillis)=="number"?n.exportTimeoutMillis:3e4,this._shutdownOnce=new EA(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(F.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,n){}onEnd(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&De.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)return this._droppedSpansCount===0&&F.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(F.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}
20_flushAll(){return new Promise((e,n)=>{const r=[];for(let o=0,i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);o<i;o++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{e()}).catch(n)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,n)=>{const r=setTimeout(()=>{n(new Error("Timeout"))},this._exportTimeoutMillis);H.with(Ul(H.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(o,a=>{clearTimeout(r),a.code===Ae.SUCCESS?e():n(a.error??new Error("BatchSpanProcessor: span export failed"))});let s=null;for(let a=0,u=o.length;a<u;a++){const c=o[a];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(c.resource.waitForAsyncAttributes()))}s===null?i():Promise.all(s).then(i,a=>{vn(a),n(a)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(n=>{this._isExporting=!1,vn(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),typeof this._timer!="number"&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class ek extends tk{constructor(n,r){super(n,r);b(this,"_visibilityChangeListener");b(this,"_pageHideListener");this.onInit(r)}onInit(n){(n==null?void 0:n.disableAutoFlushOnDocumentHide)!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{vn(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{vn(r)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const bA=new Uint8Array(16),RA=new Uint8Array(8),nk=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function OA(t){for(let e=0;e<t.length;e++)t[e]=256*Math.random()>>>0;for(let e=0;e<t.length;e++)if(t[e]>0)return;t[t.length-1]=1}function NA(t){let e="";for(let n=0;n<t.length;n++)e+=nk[t[n]];return e}class rk{generateTraceId(){return OA(bA),NA(bA)}generateSpanId(){return OA(RA),NA(RA)}}const ok="otel.span.parent.origin",IA="otel.span.sampling_result";class ik{constructor(e){b(this,"startedSpans");b(this,"liveSpans");this.startedSpans=e.createCounter("otel.sdk.span.started",{unit:"{span}",description:"The number of created spans."}),this.liveSpans=e.createUpDownCounter("otel.sdk.span.live",{unit:"{span}",description:"The number of currently live spans."})}startSpan(e,n){const r=function(i){switch(i){case rn.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case rn.RECORD:return"RECORD_ONLY";case rn.NOT_RECORD:return"DROP"}}(n);if(this.startedSpans.add(1,{[ok]:sk(e),[IA]:r}),n===rn.NOT_RECORD)return()=>{};const o={[IA]:r};return this.liveSpans.add(1,o),()=>{this.liveSpans.add(-1,o)}}}function sk(t){return t?t.isRemote?"remote":"local":"none"}class ak{constructor(e,n,r,o){b(this,"_sampler");b(this,"_generalLimits");b(this,"_spanLimits");b(this,"_idGenerator");b(this,"instrumentationScope");b(this,"_resource");b(this,"_spanProcessor");b(this,"_tracerMetrics");const i=function(a){const u={sampler:yA()},c=vA(),l=Object.assign({},c,u,a);return l.generalLimits=Object.assign({},c.generalLimits,a.generalLimits||{}),l.spanLimits=Object.assign({},c.spanLimits,a.spanLimits||{}),l}(n);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=n.idGenerator||new rk,this._resource=r,this._spanProcessor=o,this.instrumentationScope=e;const s=i.meterProvider?i.meterProvider.getMeter("@opentelemetry/sdk-trace","2.7.1"):yp();this._tracerMetrics=new ik(s)}startSpan(e,n={},r=H.active()){n.root&&(r=Q.deleteSpan(r));const o=Q.getSpan(r);if(xl(r))return F.debug("Instrumentation suppressed, returning Noop Span"),Q.wrapSpanContext(rc);const i=o==null?void 0:o.spanContext(),s=this._idGenerator.generateSpanId();let a,u,c;i&&Q.isSpanContextValid(i)?(u=i.traceId,c=i.traceState,a=i):u=this._idGenerator.generateTraceId();const l=n.kind??Xt.INTERNAL,d=(n.links??[]).map(E=>({context:E.context,attributes:ci(E.attributes)})),p=ci(n.attributes),h=this._sampler.shouldSample(r,u,e,l,p,d),_=this._tracerMetrics.startSpan(i,h.decision);c=h.traceState??c;const f={traceId:u,spanId:s,traceFlags:h.decision===Lo.RECORD_AND_SAMPLED?De.
20SAMPLED:De.NONE,traceState:c};if(h.decision===Lo.NOT_RECORD)return F.debug("Recording is off, propagating context in a non-recording span"),Q.wrapSpanContext(f);const m=ci(Object.assign(p,h.attributes));return new Z1({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:f,name:e,kind:l,links:d,parentSpanContext:a,attributes:m,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:_})}startActiveSpan(e,n,r,o){let i,s,a;if(arguments.length<2)return;arguments.length===2?a=n:arguments.length===3?(i=n,a=r):(i=n,s=r,a=o);const u=s??H.active(),c=this.startSpan(e,i,u),l=Q.setSpan(u,c);return H.with(l,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class ck{constructor(e){b(this,"_spanProcessors");this._spanProcessors=e}forceFlush(){const e=[];for(const n of this._spanProcessors)e.push(n.forceFlush());return new Promise(n=>{Promise.all(e).then(()=>{n()}).catch(r=>{vn(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(e,n){for(const r of this._spanProcessors)r.onStart(e,n)}onEnding(e){for(const n of this._spanProcessors)n.onEnding&&n.onEnding(e)}onEnd(e){for(const n of this._spanProcessors)n.onEnd(e)}shutdown(){const e=[];for(const n of this._spanProcessors)e.push(n.shutdown());return new Promise((n,r)=>{Promise.all(e).then(()=>{n()},r)})}}var gr,Y;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(gr||(gr={}));class uk{constructor(e={}){b(this,"_config");b(this,"_tracers",new Map);b(this,"_resource");b(this,"_activeSpanProcessor");var o;const n=function(...i){let s=i.shift();const a=new WeakMap;for(;i.length>0;)s=pA(s,i.shift(),0,a);return s}({},vA(),function(i){var a,u,c,l;const s=Object.assign({},i.spanLimits);return s.attributeCountLimit=((a=i.spanLimits)==null?void 0:a.attributeCountLimit)??((u=i.generalLimits)==null?void 0:u.attributeCountLimit)??void 0??void 0??128,s.attributeValueLengthLimit=((c=i.spanLimits)==null?void 0:c.attributeValueLengthLimit)??((l=i.generalLimits)==null?void 0:l.attributeValueLengthLimit)??void 0??void 0??Q1,Object.assign({},i,{spanLimits:s})}(e));this._resource=n.resource??mA({[bc]:X1(),[es]:la[es],[Do]:la[Do],[Po]:la[Po]}),this._config=Object.assign({},n,{resource:this._resource});const r=[];(o=e.spanProcessors)!=null&&o.length&&r.push(...e.spanProcessors),this._activeSpanProcessor=new ck(r)}getTracer(e,n,r){const o=`${e}@${n||""}:${(r==null?void 0:r.schemaUrl)||""}`;return this._tracers.has(o)||this._tracers.set(o,new ak({name:e,version:n,schemaUrl:r==null?void 0:r.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(o)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(o=>{let i;const s=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${e} ms`)),i=gr.timeout},e);r.forceFlush().then(()=>{clearTimeout(s),i!==gr.timeout&&(i=gr.resolved,o(i))}).catch(a=>{clearTimeout(s),i=gr.error,o(a)})}));return new Promise((r,o)=>{Promise.all(n).then(i=>{const s=i.filter(a=>a!==gr.resolved);s.length>0?o(s):r()}).catch(i=>o([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class lk{export(e,n){return this._sendSpans(e,n)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(e){var n;return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationScope,traceId:e.spanContext().traceId,parentSpanContext:e.parentSpanContext,traceState:(n=e.spanContext().traceState)==null?void 0:n.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:nA(e.startTime),duration:nA(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}}_sendSpans(e,n){for(const r of e)console.dir(this._exportInfo(r),{depth:3});if(n)return n({code:Ae.SUCCESS})}}class dk{constructor(e){b(this,"_exporter");b(this,"_shutdownOnce");b(this,"_pendingExports");this._exporter=e,this._shutdownOnce=new EA(this._shutdown,this),this._pendingExports=new Set}
20async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(e,n){}onEnd(e){if(this._shutdownOnce.isCalled||!(e.spanContext().traceFlags&De.SAMPLED))return;const n=this._doExport(e).catch(r=>vn(r));this._pendingExports.add(n),n.finally(()=>this._pendingExports.delete(n))}async _doExport(e){var r,o;e.resource.asyncAttributesPending&&await((o=(r=e.resource).waitForAsyncAttributes)==null?void 0:o.call(r));const n=await J1._export(this._exporter,[e]);if(n.code!==Ae.SUCCESS)throw n.error??new Error(`SimpleSpanProcessor: span export failed (status ${n})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class pk{constructor(){b(this,"_enabled",!1);b(this,"_currentContext",Jt)}_bindFunction(e=Jt,n){const r=this,o=function(...i){return r.with(e,()=>n.apply(this,i))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),o}active(){return this._currentContext}bind(e,n){return e===void 0&&(e=this.active()),typeof n=="function"?this._bindFunction(e,n):n}disable(){return this._currentContext=Jt,this._enabled=!1,this}enable(){return this._enabled||(this._enabled=!0,this._currentContext=Jt),this}with(e,n,r,...o){const i=this._currentContext;this._currentContext=e||Jt;try{return n.call(r,...o)}finally{this._currentContext=i}}}class hk extends uk{constructor(e={}){super(e)}register(e={}){var n;Q.setGlobalTracerProvider(this),(n=e.propagator)!==null&&(n!==void 0?Zt.setGlobalPropagator(n):Zt.setGlobalPropagator(new k1({propagators:[new j1,new L1]}))),function(r){if(r!==null){if(r===void 0){const o=new pk;return o.enable(),void H.setGlobalContextManager(o)}r.enable(),H.setGlobalContextManager(r)}}(e.contextManager)}}(function(t){t.CONNECT_END="connectEnd",t.CONNECT_START="connectStart",t.DECODED_BODY_SIZE="decodedBodySize",t.DOM_COMPLETE="domComplete",t.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",t.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",t.DOM_INTERACTIVE="domInteractive",t.DOMAIN_LOOKUP_END="domainLookupEnd",t.DOMAIN_LOOKUP_START="domainLookupStart",t.ENCODED_BODY_SIZE="encodedBodySize",t.FETCH_START="fetchStart",t.LOAD_EVENT_END="loadEventEnd",t.LOAD_EVENT_START="loadEventStart",t.NAVIGATION_START="navigationStart",t.REDIRECT_END="redirectEnd",t.REDIRECT_START="redirectStart",t.REQUEST_START="requestStart",t.RESPONSE_END="responseEnd",t.RESPONSE_START="responseStart",t.SECURE_CONNECTION_START="secureConnectionStart",t.START_TIME="startTime",t.UNLOAD_EVENT_END="unloadEventEnd",t.UNLOAD_EVENT_START="unloadEventStart"})(Y||(Y={}));let Hl;function oo(t,e){return e in t}function kt(t,e,n,r=!0){if(oo(n,e)&&typeof n[e]=="number"&&(!r||n[e]!==0))return t.addEvent(e,n[e])}function Sr(t,e,n=!1,r,o){if(r===void 0&&(r=e[Y.START_TIME]!==0),n||(kt(t,Y.FETCH_START,e,r),kt(t,Y.DOMAIN_LOOKUP_START,e,r),kt(t,Y.DOMAIN_LOOKUP_END,e,r),kt(t,Y.CONNECT_START,e,r),kt(t,Y.SECURE_CONNECTION_START,e,r),kt(t,Y.CONNECT_END,e,r),kt(t,Y.REQUEST_START,e,r),kt(t,Y.RESPONSE_START,e,r),kt(t,Y.RESPONSE_END,e,r)),!o){const i=e[Y.ENCODED_BODY_SIZE];i!==void 0&&t.setAttribute("http.response_content_length",i);const s=e[Y.DECODED_BODY_SIZE];s!==void 0&&i!==s&&t.setAttribute("http.response_content_length_uncompressed",s)}}function CA(){return typeof location<"u"?location.origin:void 0}function MA(t,e,n,r,o=new WeakSet,i){const s=bn(t),a=function(c,l,d,p,h,_){const f=An(l),m=An(d);let E=p.filter(S=>{const g=An(ui(S[Y.FETCH_START])),T=An(ui(S[Y.RESPONSE_END]));return S.initiatorType.toLowerCase()===(_||"xmlhttprequest")&&S.name===c&&g>=f&&T<=m});return E.length>0&&(E=E.filter(S=>!h.has(S))),E}(t=s.toString(),e,n,r,o,i);if(a.length===0)return{mainRequest:void 0};if(a.length===1)return{mainRequest:a[0]};const u=function(c){return c.slice().sort((l,d)=>{const p=l[Y.FETCH_START],h=d[Y.FETCH_START];return p>h?1:p<h?-1:0})}(a);if(s.origin!==CA()&&u.length>1){let c=u[0],l=function(p,h,_){const f=An(_),m=An(ui(h));let E,S=p[1];const g=p.length;for(let T=1;T<g;T++){const y=p[T],R=An(ui(y[Y.FETCH_START])),O=f-An(ui(y[Y.RESPONSE_END]));R>=m&&(!E||O<E)&&(E=O,S=y)}return S}(u,c[Y.RESPONSE_END],n);const d=c[Y.RESPONSE_END];return l[Y.FETCH_START]<d&&(l=c,c=void 0),{corsPreFlightRequest:c,mainRequest:l}}return{mainRequest:a[0]}}function bn(t){if(typeof URL=="function")return new URL(t,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const e=(Hl||(Hl=document.createElement("a")),Hl);return e.href=t,e}
20function wA(t,e){if(t.nodeType===Node.DOCUMENT_NODE)return"/";const n=function(o,i){const s=o.nodeType,a=function(c){if(!c.parentNode)return 0;const l=[c.nodeType];c.nodeType===Node.CDATA_SECTION_NODE&&l.push(Node.TEXT_NODE);let d=Array.from(c.parentNode.childNodes);return d=d.filter(p=>{const h=p.localName;return l.indexOf(p.nodeType)>=0&&h===c.localName}),d.length>=1?d.indexOf(c)+1:0}(o);let u="";if(s===Node.ELEMENT_NODE){const c=o.getAttribute("id");if(c)return`//*[@id="${c}"]`;u=o.localName}else if(s===Node.TEXT_NODE||s===Node.CDATA_SECTION_NODE)u="text()";else{if(s!==Node.COMMENT_NODE)return"";u="comment()"}return u&&a>1?`/${u}[${a}]`:`/${u}`}(t);if(n.indexOf("@id")>0)return n;let r="";return t.parentNode&&(r+=wA(t.parentNode)),r+=n,r}function LA(t,e){let n=e||[];return(typeof n=="string"||n instanceof RegExp)&&(n=[n]),bn(t).origin===CA()||n.some(r=>_A(t,r))}var fi;(function(t){t.DOCUMENT_LOAD="documentLoad",t.DOCUMENT_FETCH="documentFetch",t.RESOURCE_FETCH="resourceFetch"})(fi||(fi={}));const Yl="http.url";var ma;(function(t){t.FIRST_PAINT="firstPaint",t.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"})(ma||(ma={}));const DA={"first-paint":ma.FIRST_PAINT,"first-contentful-paint":ma.FIRST_CONTENTFUL_PAINT};class fk extends ge{constructor(n={}){super("@opentelemetry/instrumentation-document-load","0.63.0",n);b(this,"component","document-load");b(this,"version","1");b(this,"moduleName",this.component);b(this,"_semconvStability");this._semconvStability=rs("http",n==null?void 0:n.semconvStabilityOptIn)}init(){}_onDocumentLoaded(){window.setTimeout(()=>{this._collectPerformance()})}_addResourcesSpans(n){var o;const r=(o=Lt.getEntriesByType)==null?void 0:o.call(Lt,"resource");r&&r.forEach(i=>{this._initResourceSpan(i,n)})}_collectPerformance(){const n=Array.from(document.getElementsByTagName("meta")).find(i=>i.getAttribute("name")===pa),r=(()=>{var a;const i={},s=(a=Lt.getEntriesByType)==null?void 0:a.call(Lt,"navigation")[0];if(s)Object.values(Y).forEach(u=>{if(oo(s,u)){const c=s[u];typeof c=="number"&&(i[u]=c)}});else{const u=Lt.timing;u&&Object.values(Y).forEach(c=>{if(oo(u,c)){const l=u[c];typeof l=="number"&&(i[c]=l)}})}return i})(),o=n&&n.content||"";H.with(Zt.extract(Jt,{traceparent:o}),()=>{var s;const i=this._startSpan(fi.DOCUMENT_LOAD,Y.FETCH_START,r);i&&(H.with(Q.setSpan(H.active(),i),()=>{const a=this._startSpan(fi.DOCUMENT_FETCH,Y.FETCH_START,r);a&&(this._semconvStability&tt.OLD&&a.setAttribute(Yl,location.href),this._semconvStability&tt.STABLE&&a.setAttribute(Mr,location.href),H.with(Q.setSpan(H.active(),a),()=>{var c;const u=!(this._semconvStability&tt.OLD);Sr(a,r,this.getConfig().ignoreNetworkEvents,void 0,u),this._addCustomAttributesOnSpan(a,(c=this.getConfig().applyCustomAttributesOnSpan)==null?void 0:c.documentFetch),this._endSpan(a,Y.RESPONSE_END,r)}))}),this._semconvStability&tt.OLD&&(i.setAttribute(Yl,location.href),i.setAttribute("http.user_agent",navigator.userAgent)),this._semconvStability&tt.STABLE&&(i.setAttribute(Mr,location.href),i.setAttribute(cS,navigator.userAgent)),this._addResourcesSpans(i),this.getConfig().ignoreNetworkEvents||(kt(i,Y.FETCH_START,r),kt(i,Y.UNLOAD_EVENT_START,r),kt(i,Y.UNLOAD_EVENT_END,r),kt(i,Y.DOM_INTERACTIVE,r),kt(i,Y.DOM_CONTENT_LOADED_EVENT_START,r),kt(i,Y.DOM_CONTENT_LOADED_EVENT_END,r),kt(i,Y.DOM_COMPLETE,r),kt(i,Y.LOAD_EVENT_START,r),kt(i,Y.LOAD_EVENT_END,r)),this.getConfig().ignorePerformancePaintEvents||(a=>{var c;const u=(c=Lt.getEntriesByType)==null?void 0:c.call(Lt,"paint");u&&u.forEach(({name:l,startTime:d})=>{oo(DA,l)&&a.addEvent(DA[l],d)})})(i),this._addCustomAttributesOnSpan(i,(s=this.getConfig().applyCustomAttributesOnSpan)==null?void 0:s.documentLoad),this._endSpan(i,Y.LOAD_EVENT_END,r))})}_endSpan(n,r,o){n&&(oo(o,r)?n.end(o[r]):n.end())}_initResourceSpan(n,r){var i;const o=this._startSpan(fi.RESOURCE_FETCH,Y.FETCH_START,n,r);if(o){this._semconvStability&tt.OLD&&o.setAttribute(Yl,n.name),this._semconvStability&tt.STABLE&&o.setAttribute(Mr,n.name);const s=!(this._semconvStability&tt.OLD);Sr(o,n,this.getConfig().ignoreNetworkEvents,void 0,s),this._addCustomAttributesOnResourceSpan(o,n,(i=this.getConfig().applyCustomAttributesOnSpan)==null?void 0:i.resourceFetch),this._endSpan(o,Y.RESPONSE_END,n)}}
20_startSpan(n,r,o,i){if(oo(o,r)&&typeof o[r]=="number")return this.tracer.startSpan(n,{startTime:o[r]},i?Q.setSpan(H.active(),i):void 0)}_waitForPageLoad(){window.document.readyState==="complete"?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))}_addCustomAttributesOnSpan(n,r){r&&wr(()=>r(n),o=>{o&&this._diag.error("addCustomAttributesOnSpan",o)},!0)}_addCustomAttributesOnResourceSpan(n,r,o){o&&wr(()=>o(n,r),i=>{i&&this._diag.error("addCustomAttributesOnResourceSpan",i)},!0)}enable(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()}disable(){window.removeEventListener("load",this._onDocumentLoaded)}}function PA(t,e){if(t&&t[1]&&t[2]){const n=t[1],r=t[2];e.setAttribute("link.traceId",n),e.setAttribute("link.spanId",r)}}const _k=new RegExp(`traceparent;desc=['"]00-([0-9a-f]{32})-([0-9a-f]{16})-01['"]`);function UA(t,e){for(let n of t.split(","))n=n.trim(),PA(n.match(_k),e)}const Ek=new RegExp("00-([0-9a-f]{32})-([0-9a-f]{16})-01"),mk=["beacon","fetch","xmlhttprequest"];var io;(function(t){t.EVENT_TYPE="event_type",t.TARGET_ELEMENT="target_element",t.TARGET_XPATH="target_xpath",t.HTTP_URL="http.url"})(io||(io={}));const xA="0.62.0",gk=["click"];function Sk(){return!1}class Tk extends ge{constructor(n={}){super("@opentelemetry/instrumentation-user-interaction",xA,n);b(this,"version",xA);b(this,"moduleName","user-interaction");b(this,"_spansData",new WeakMap);b(this,"_wrappedListeners",new WeakMap);b(this,"_eventsSpanMap",new WeakMap);b(this,"_eventNames");b(this,"_shouldPreventSpanCreation");this._eventNames=new Set((n==null?void 0:n.eventNames)??gk),this._shouldPreventSpanCreation=typeof(n==null?void 0:n.shouldPreventSpanCreation)=="function"?n.shouldPreventSpanCreation:Sk}init(){}_checkForTimeout(n,r){const o=this._spansData.get(r);o&&(n.source==="setTimeout"?o.hrTimeLastTimeout=Er():n.source!=="Promise.then"&&n.source!=="setTimeout"&&(o.hrTimeLastTimeout=void 0))}_allowEventName(n){return this._eventNames.has(n)}_createSpan(n,r,o){if(!this._isEnabled||!(n instanceof HTMLElement)||!n.getAttribute||n.hasAttribute("disabled")||!this._allowEventName(r))return;const i=wA(n);try{const s=this.tracer.startSpan(r,{attributes:{[io.EVENT_TYPE]:r,[io.TARGET_ELEMENT]:n.tagName,[io.TARGET_XPATH]:i,[io.HTTP_URL]:window.location.href}},o?Q.setSpan(H.active(),o):void 0);return this._shouldPreventSpanCreation(r,n,s)===!0?void 0:(this._spansData.set(s,{taskCount:0}),s)}catch(s){this._diag.error("failed to start create new user interaction span",s)}}_decrementTask(n){const r=this._spansData.get(n);r&&(r.taskCount--,r.taskCount===0&&this._tryToEndSpan(n,r.hrTimeLastTimeout))}_getCurrentSpan(n){const r=n.get("OT_ZONE_CONTEXT");return r&&Q.getSpan(r)}_incrementTask(n){const r=this._spansData.get(n);r&&r.taskCount++}addPatchedListener(n,r,o,i){let s=this._wrappedListeners.get(o);s||(s=new Map,this._wrappedListeners.set(o,s));let a=s.get(r);return a||(a=new Map,s.set(r,a)),!a.has(n)&&(a.set(n,i),!0)}removePatchedListener(n,r,o){const i=this._wrappedListeners.get(o);if(!i)return;const s=i.get(r);if(!s)return;const a=s.get(n);return a&&(s.delete(n),s.size===0&&(i.delete(r),i.size===0&&this._wrappedListeners.delete(o))),a}_invokeListener(n,r,o){return typeof n=="function"?n.apply(r,o):n.handleEvent(o[0])}_patchAddEventListener(){const n=this;return r=>function(o,i,s){if(!i)return r.call(this,o,i,s);const a=s&&typeof s=="object"&&s.once,u=function(...c){let l;const d=c[0],p=d==null?void 0:d.target;d&&(l=n._eventsSpanMap.get(d)),a&&n.removePatchedListener(this,o,i);const h=n._createSpan(p,o,l);return h?(d&&n._eventsSpanMap.set(d,h),H.with(Q.setSpan(H.active(),h),()=>{const _=n._invokeListener(i,this,c);return h.end(),_})):n._invokeListener(i,this,c)};return n.addPatchedListener(this,o,i,u)?r.call(this,o,u,s):void 0}}_patchRemoveEventListener(){const n=this;return r=>function(o,i,s){const a=n.removePatchedListener(this,o,i);return a?r.call(this,o,a,s):r.call(this,o,i,s)}}_getPatchableEventTargets(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]}_patchHistoryApi(){this._isEnabled&&(this._wrap(history,"replaceState",this._patchHistoryMethod()),this._wrap(history,"pushState",this._patchHistoryMethod()),this._wrap(history,"back",this._patchHistoryMethod()),this._wrap(history,"forward",this._patchHistoryMethod()),this._wrap(history,"go",this._patchHistoryMethod()))}_patchHistoryMethod(){const n=this;return r=>function(...o){if(!n._isEnabled)return r.apply(this,o);const i=`${location.pathname}${location.hash}${location.search}`,s=r.apply(this,o),a=`${location.pathname}${location.hash}${location.search}`;return i!==a&&n._updateInteractionName(a),s}}_updateInteractionName(n){const r=Q.getSpan(H.active());r&&typeof r.updateName=="function"&&r.updateName(`Navigation: ${n}`)}_patchZoneCancelTask(){const n=this;return r=>function(o){const i=Zone.current,s=n._getCurrentSpan(i);return s&&n._shouldCountTask(o,i)&&n._decrementTask(s),r.call(this,o)}}
20_patchZoneScheduleTask(){const n=this;return r=>function(o){const i=Zone.current,s=n._getCurrentSpan(i);return s&&n._shouldCountTask(o,i)&&(n._incrementTask(s),n._checkForTimeout(o,s)),r.call(this,o)}}_patchZoneRunTask(){const n=this;return r=>function(o,i,s){const a=Array.isArray(s)&&s[0]instanceof Event?s[0]:void 0,u=a==null?void 0:a.target;let c;const l=this;if(u){if(c=n._createSpan(u,o.eventName),c)return n._incrementTask(c),l.run(()=>{try{return H.with(Q.setSpan(H.active(),c),()=>{const d=Zone.current;return o._zone=d,r.call(d,o,i,s)})}finally{n._decrementTask(c)}})}else c=n._getCurrentSpan(l);try{return r.call(l,o,i,s)}finally{c&&n._shouldCountTask(o,l)&&n._decrementTask(c)}}}_shouldCountTask(n,r){if(n._zone&&(r=n._zone),!r||!n.data||n.data.isPeriodic)return!1;const o=this._getCurrentSpan(r);return!!o&&!!this._spansData.get(o)&&(n.type==="macroTask"||n.type==="microTask")}_tryToEndSpan(n,r){n&&this._spansData.get(n)&&(n.end(r),this._spansData.delete(n))}enable(){if(this._isEnabled||(this._isEnabled=!0,typeof this._zonePatched=="boolean"))return;const n=this._getZoneWithPrototype();this._diag.debug("applying patch to",this.moduleName,this.version,"zone:",!!n),n?(this._zonePatched=!0,this._wrap(n.prototype,"runTask",this._patchZoneRunTask()),this._wrap(n.prototype,"scheduleTask",this._patchZoneScheduleTask()),this._wrap(n.prototype,"cancelTask",this._patchZoneCancelTask())):(this._zonePatched=!1,this._getPatchableEventTargets().forEach(r=>{this._wrap(r,"addEventListener",this._patchAddEventListener()),this._wrap(r,"removeEventListener",this._patchRemoveEventListener())})),this._patchHistoryApi()}disable(){this._isEnabled&&(this._isEnabled=!1)}_getZoneWithPrototype(){return window.Zone}}const $l={click:!0,dblclick:!0,mousedown:!0,mouseup:!0,submit:!0,reset:!0,change:!0,dragend:!0,drop:!0,ended:!0,pause:!0,play:!0},vk=Object.keys($l),kA="route";class yk{constructor(e){b(this,"_delegate");this._delegate=e}export(e,n){this._delegate.export(e,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class BA extends Error{constructor(n,r,o){super(n);b(this,"code");b(this,"name","OTLPExporterError");b(this,"data");this.data=o,this.code=r}}function Ak(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function bk(t,e,n){return{timeoutMillis:Ak(t.timeoutMillis??e.timeoutMillis??n.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??n.concurrencyLimit,compression:t.compression??e.compression??n.compression}}class Rk{constructor(e){b(this,"_concurrencyLimit");b(this,"_sendingPromises",[]);this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const n=()=>{const r=this._sendingPromises.indexOf(e);this._sendingPromises.splice(r,1)};e.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function Ok(t){return new Rk(t.concurrencyLimit)}function Nk(){return{handleResponse(t){t!=null&&function(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}(t)&&t.partialSuccess!=null&&Object.keys(t.partialSuccess).length!==0&&F.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class Ik{constructor(e,n,r,o,i){b(this,"_diagLogger");b(this,"_transport");b(this,"_serializer");b(this,"_responseHandler");b(this,"_promiseQueue");b(this,"_timeout");this._transport=e,this._serializer=n,this._responseHandler=r,this._promiseQueue=o,this._timeout=i,this._diagLogger=F.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,n){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit())return void n({code:Ae.FAILED,error:new Error("Concurrent export limit reached")});const r=this._serializer.serializeRequest(e);r!=null?this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(o=>{if(o.status!=="success")o.status==="failure"&&o.error?n({code:Ae.FAILED,error:o.error}):o.status==="retryable"?n({code:Ae.FAILED,error:o.error??new BA("Export failed with retryable status")}):n({code:Ae.FAILED,error:new BA("Export failed with unknown error")});else{if(o.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(o.data))}
20catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,o.data)}n({code:Ae.SUCCESS})}},o=>n({code:Ae.FAILED,error:o}))):n({code:Ae.FAILED,error:new Error("Nothing to send")})}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Ck(t,e,n){return r={transport:n,serializer:e,promiseHandler:Ok(t)},o={timeout:t.timeoutMillis},new Ik(r.transport,r.serializer,Nk(),r.promiseHandler,o.timeout);var r,o}function Mk(t,e){const n={attributes:ga(t.attributes,e),droppedAttributesCount:0},r=t.schemaUrl;return r&&r!==""&&(n.schemaUrl=r),n}function wk(t){return{name:t.name,version:t.version}}function ga(t,e){return Object.keys(t).map(n=>function(r,o,i){return{key:r,value:zl(o,i)}}(n,t[n],e))}function zl(t,e){const n=typeof t;if(n==="string")return{stringValue:t};if(n==="number")return Number.isInteger(t)?{intValue:t}:{doubleValue:t};if(n==="boolean")return{boolValue:t};if(t instanceof Uint8Array)return{bytesValue:e.encodeUint8Array(t)};if(Array.isArray(t)){const r=new Array(t.length);for(let o=0;o<t.length;o++)r[o]=zl(t[o],e);return{arrayValue:{values:r}}}if(n==="object"&&t!=null){const r=Object.keys(t),o=new Array(r.length);for(let i=0;i<r.length;i++)o[i]={key:r[i],value:zl(t[r[i]],e)};return{kvlistValue:{values:o}}}return{}}const Lk=typeof BigInt<"u"?function(t){return function(n){const r=BigInt(1e9);return BigInt(Math.trunc(n[0]))*r+BigInt(Math.trunc(n[1]))}(t).toString()}:An;function VA(t){return t}const Dk={encodeHrTime:Lk,encodeSpanContext:VA,encodeOptionalSpanContext:VA,encodeUint8Array:t=>{if(typeof Buffer<"u")return Buffer.from(t).toString("base64");const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=String.fromCharCode(t[n]);return btoa(e.join(""))}},Pk=256,Uk=512;function FA(t,e){let n=255&t|Pk;return e&&(n|=Uk),n}function xk(t,e){var i,s,a,u;const n=t.spanContext(),r=t.status,o=(i=t.parentSpanContext)!=null&&i.spanId?e.encodeSpanContext((s=t.parentSpanContext)==null?void 0:s.spanId):void 0;return{traceId:e.encodeSpanContext(n.traceId),spanId:e.encodeSpanContext(n.spanId),parentSpanId:o,traceState:(a=n.traceState)==null?void 0:a.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:ga(t.attributes,e),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(c=>function(l,d){return{attributes:l.attributes?ga(l.attributes,d):[],name:l.name,timeUnixNano:d.encodeHrTime(l.time),droppedAttributesCount:l.droppedAttributesCount||0}}(c,e)),droppedEventsCount:t.droppedEventsCount,status:{code:r.code,message:r.message},links:t.links.map(c=>function(l,d){var p;return{attributes:l.attributes?ga(l.attributes,d):[],spanId:d.encodeSpanContext(l.context.spanId),traceId:d.encodeSpanContext(l.context.traceId),traceState:(p=l.context.traceState)==null?void 0:p.serialize(),droppedAttributesCount:l.droppedAttributesCount||0,flags:FA(l.context.traceFlags,l.context.isRemote)}}(c,e)),droppedLinksCount:t.droppedLinksCount,flags:FA(n.traceFlags,(u=t.parentSpanContext)==null?void 0:u.isRemote)}}function kk(t,e){const n=function(s){const a=new Map;for(const u of s){let c=a.get(u.resource);c||(c=new Map,a.set(u.resource,c));const l=`${u.instrumentationScope.name}@${u.instrumentationScope.version||""}:${u.instrumentationScope.schemaUrl||""}`;let d=c.get(l);d||(d=[],c.set(l,d)),d.push(u)}return a}(t),r=[],o=n.entries();let i=o.next();for(;!i.done;){const[s,a]=i.value,u=[],c=a.values();let l=c.next();for(;!l.done;){const h=l.value;if(h.length>0){const _=h.map(f=>xk(f,e));u.push({scope:wk(h[0].instrumentationScope),spans:_,schemaUrl:h[0].instrumentationScope.schemaUrl})}l=c.next()}const d=Mk(s,e),p={resource:d,scopeSpans:u,schemaUrl:d.schemaUrl};r.push(p),i=o.next()}return r}const Bk={serializeRequest:t=>{const e=function(n,r){return{resourceSpans:kk(n,r)}}(t,Dk);return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{if(t.length===0)return{};const e=new TextDecoder;try{return JSON.parse(e.decode(t))}catch(n){return F.warn(`Failed to parse trace export response: ${n.message}. Returning empty response`),{}}}};class Vk{constructor(e){b(this,"_transport");this._transport=e}retry(e,n,r){return new Promise((o,i)=>{setTimeout(()=>{this._transport.send(e,n).then(o,i)},r)})}async send(e,n){let r=5,o=1e3;const i=Date.now()+n;let s=await this._transport.send(e,n);for(;s.status==="retryable"&&r>0;){r--;const a=Math.max(Math.min(o*(.4*Math.random()-.2+1),5e3),0);o*=1.5;const u=s.retryInMillis??a,c=i-Date.now();if(u>c)return F.info(`Export retry time ${Math.round(u)}ms exceeds remaining timeout ${Math.round(c)}ms, not retrying further.`),s;F.verbose(`Scheduling export retry in ${Math.round(u)}ms`),s=await this.retry(e,c,u)}return s.status==="success"?F.verbose(`Export succeeded after ${5-r} retry attempts.`):s.status==="retryable"?F.info("Export failed after maximum retry attempts (5)."):F.info(`Export failed with non-retryable error: ${s.error}`),s}shutdown(){return this._transport.shutdown()}}let Wl=0,Sa=0;class Fk{constructor(e){b(this,"_parameters");this._parameters=e}async send(e,n){const r=new AbortController,o=setTimeout(()=>r.abort(),n);let i=globalThis.fetch;typeof i.__original=="function"&&(i=i.__original);const s=e.byteLength,a=Wl+s>61440,u=!a&&!(Sa>=9);if(u)Wl+=s,Sa++;else{const l=a?"size limit":"count limit";F.debug(`keepalive disabled: ${(s/1024).toFixed(1)}KB payload, ${Sa} pending (${l})`)}try{const l=new URL(this._parameters.url),d=await i(l.href,{method:"POST",headers:await this._parameters.headers(),body:e,signal:r.signal,keepalive:u,mode:globalThis.location?globalThis.location.origin===l.origin?"same-origin":"cors":"no-cors"});return d.status>=200&&d.status<=299?(F.debug(`export response success (status: ${d.status})`),{status:"success"}):(c=d.status)===429||c===502||c===503||c===504?(F.warn(`export response retryable (status: ${d.status})`),{status:"retryable",retryInMillis:function(h){if(h==null)return;const _=Number.parseInt(h,10);if(Number.isInteger(_))return _>0?1e3*_:-1;const f=new Date(h).getTime()-Date.now();return f>=0?f:0}(d.headers.get("Retry-After"))}):(F.error(`export response failure (status: ${d.status})`),{status:"failure",error:new Error(`Fetch request failed with non-retryable status ${d.status}`)})}catch(l){return function(d){return d instanceof TypeError&&!d.cause}(l)?(F.warn(`export request retryable (network error: ${l})`),{status:"retryable",error:new Error("Fetch request encountered a network error",{cause:l})}):(F.error(`export request failure (error: ${l})`),{status:"failure",error:new Error("Fetch request errored",{cause:l})})}finally{clearTimeout(o),u&&(Wl-=s,Sa--)}var c}shutdown(){}}function Gk(t,e){return Ck(t,e,function(r){return new Vk(r.transport)}({transport:(n=t,new Fk(n))}));var n}function jk(t,e,n){return async()=>{const r={...await n()},o={};return e!=null&&Object.assign(o,await e()),t!=null&&Object.assign(o,function(i){const s={};return Object.entries(i??{}
20).forEach(([a,u])=>{u!==void 0?s[a]=String(u):F.warn(`Header "${a}" has invalid value (${u}) and will be ignored`)}),s}(await t())),Object.assign(o,r)}}function Hk(t){var e;if(t!=null)try{const n=(e=globalThis.location)==null?void 0:e.href;return new URL(t,n).href}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function Yk(t){return typeof t.headers=="function"?t.headers:function(e){if(e!=null)return async()=>e}(t.headers)}function $k(t,e,n){return r={url:t.url,timeoutMillis:t.timeoutMillis,headers:Yk(t),concurrencyLimit:t.concurrencyLimit},o={},i=function(s,a){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none",headers:async()=>s,url:"http://localhost:4318/"+a}}(n,e),{...bk(r,o,i),headers:jk(r.headers,o.headers,i.headers),url:Hk(r.url)??o.url??i.url};var r,o,i}class zk extends yk{constructor(e={}){super(function(n,r,o,i){return Gk($k(n,o,i),r)}(e,Bk,"v1/traces",{"Content-Type":"application/json"}))}}function GA(t){return"x".repeat(t/4).replace(/x/g,function(){return(16*Math.random()|0).toString(16)})}function jA(t,e,n){return t===!1?t:(t!==void 0||!n)&&Object.assign({},e,t)}function re(t){return typeof t=="function"}function Nt(t,e,n){const r=t[e];rt.wrap(t,e,n),t[e].toString=r.toString.bind(r)}function HA(t){for(;t.__original&&t.__original!==t;)t=t.__original;return t}function Ta(t,e){const n=new Map(e.map(r=>[r,r.toLowerCase().replace(/-/g,"_")]));return(r,o)=>{for(const[i,s]of n){const a=o(i);if(a===void 0)continue;const u=`http.${t}.header.${s}`;typeof a=="string"?r.setAttribute(u,[a]):Array.isArray(a)?r.setAttribute(u,a):r.setAttribute(u,[a])}}}const Wk=144e5,qk=900,YA="__rum_sid";let _i,ql,va,Ei=!1;function Kk(){Ei=!0}function $A(t){const e=Date.now();return t>e||e>t+Wk}function Jk(){const t=function(r){const o=decodeURIComponent(document.cookie).split(";");for(let i=0;i<o.length;i++){const s=o[i].trim();if(s.indexOf(r+"=")===0)return s.substring((r+"=").length,s.length)}}(YA);if(!t)return;const e=decodeURIComponent(t);if(!e)return;let n;try{n=JSON.parse(e)}catch{return}return n&&typeof n=="object"&&n.id&&typeof n.id=="string"&&n.id.length&&n.id.length===32&&n.startTime&&typeof n.startTime=="number"&&!$A(n.startTime)?n:void 0}function Xk(t){if($A(t.startTime))return;const e=encodeURIComponent(JSON.stringify(t));let n=YA+"="+e+"; path=/;"+(ql?`domain=${ql};`:"")+"max-age="+qk;(function(){try{return window.self!==window.top}catch{return!0}})()?n+=";SameSite=None; Secure":n+=";SameSite=Strict",document.cookie=n}function zA(){let t=Jk();t||(t={id:GA(128),startTime:Date.now()},Ei=!0),_i=t.id,va==null||va.emit("session-changed",{sessionId:_i}),Ei&&Xk(t),Ei=!1}function Kl(){return _i}const Rn="0.18.0";function WA(t){return t.byteLength||t.size||t.length||void 0}var zn,mi,qA,ya,Jl,KA=-1,Tr=function(t){addEventListener("pageshow",function(e){e.persisted&&(KA=e.timeStamp,t(e))},!0)},Xl=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Aa=function(){var t=Xl();return t&&t.activationStart||0},be=function(t,e){var n=Xl(),r="navigate";return KA>=0?r="back-forward-cache":n&&(document.prerendering||Aa()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:e===void 0?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},so=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver(function(o){Promise.resolve().then(function(){e(o.getEntries())})});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},Re=function(t,e,n,r){var o,i;return function(s){e.value>=0&&(s||r)&&((i=e.value-(o||0))||o===void 0)&&(o=e.value,e.delta=i,e.rating=function(a,u){return a>u[1]?"poor":a>u[0]?"needs-improvement":"good"}(e.value,n),t(e))}},Zl=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},ba=function(t){var e=function(n){n.type!=="pagehide"&&document.visibilityState!=="hidden"||t(n)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},Ql=function(t){var e=!1;return function(n){e||(t(n),e=!0)}},ao=-1,JA=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Ra=function(t){document.visibilityState==="hidden"&&ao>-1&&(ao=t.type==="visibilitychange"?t.timeStamp:0,Zk())},XA=function(){addEventListener("visibilitychange",Ra,!0),addEventListener("prerenderingchange",Ra,!0)},Zk=function(){removeEventListener("visibilitychange",Ra,!0),removeEventListener("prerenderingchange",Ra,!0)},td=function(){return ao<0&&(ao=JA(),XA(),Tr(function(){setTimeout(function(){ao=JA(),XA()},0)})),{get firstHiddenTime(){return ao}}},gi=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},ed=[1800,3e3],nd=function(t,e){e=e||{},gi(function(){var n,r=td(),o=be("FCP"),i=so("paint",function(s){s.forEac
vendor: 1,230 bytes, line 20
20h(function(a){a.name==="first-contentful-paint"&&(i.disconnect(),a.startTime<r.firstHiddenTime&&(o.value=Math.max(a.startTime-Aa(),0),o.entries.push(a),n(!0)))})});i&&(n=Re(t,o,ed,e.reportAllChanges),Tr(function(s){o=be("FCP"),n=Re(t,o,ed,e.reportAllChanges),Zl(function(){o.value=performance.now()-s.timeStamp,n(!0)})}))})},rd=[.1,.25],ZA=function(t,e){e=e||{},nd(Ql(function(){var n,r=be("CLS",0),o=0,i=[],s=function(u){u.forEach(function(c){if(!c.hadRecentInput){var l=i[0],d=i[i.length-1];o&&c.startTime-d.startTime<1e3&&c.startTime-l.startTime<5e3?(o+=c.value,i.push(c)):(o=c.value,i=[c])}}),o>r.value&&(r.value=o,r.entries=i,n())},a=so("layout-shift",s);a&&(n=Re(t,r,rd,e.reportAllChanges),ba(function(){s(a.takeRecords()),n(!0)}),Tr(function(){o=0,r=be("CLS",0),n=Re(t,r,rd,e.reportAllChanges),Zl(function(){return n()})}),setTimeout(n,0))}))},Si={passive:!0,capture:!0},Qk=new Date,QA=function(t,e){zn||(zn=e,mi=t,qA=new Date,eb(removeEventListener),tb())},tb=function(){if(mi>=0&&mi<qA-Qk){var t={entryType:"first-input",name:zn.type,target:zn.target,cancelable:zn.cancelable,startTime:zn.timeStamp,processingStart:zn.timeStamp+mi};ya.forEach(function(e){e(t)}),ya=[]}},tB=function(t){if(t.cancelable){var e=(t.timeStamp>
201e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?function(n,r){var o=function(){QA(n,r),s()},i=function(){s()},s=function(){removeEventListener("pointerup",o,Si),removeEventListener("pointercancel",i,Si)};addEventListener("pointerup",o,Si),addEventListener("pointercancel",i,Si)}(e,t):QA(e,t)}},eb=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,tB,Si)})},od=[100,300],nb=function(t,e){e=e||{},gi(function(){var n,r=td(),o=be("FID"),i=function(u){u.startTime<r.firstHiddenTime&&(o.value=u.processingStart-u.startTime,o.entries.push(u),n(!0))},s=function(u){u.forEach(i)},a=so("first-input",s);n=Re(t,o,od,e.reportAllChanges),a&&ba(Ql(function(){s(a.takeRecords()),a.disconnect()})),a&&Tr(function(){var u;o=be("FID"),n=Re(t,o,od,e.reportAllChanges),ya=[],mi=-1,zn=null,eb(addEventListener),u=i,ya.push(u),tb()})})},rb=0,id=1/0,Oa=0,eB=function(t){t.forEach(function(e){e.interactionId&&(id=Math.min(id,e.interactionId),Oa=Math.max(Oa,e.interactionId),rb=Oa?(Oa-id)/7+1:0)})},ob=function(){return Jl?rb:performance.interactionCount||0},nB=function(){"interactionCount"in performance||Jl||(Jl=so("event",eB,{type:"event",buffered:!0,durationThreshold:0}))},sd=[200,500],ib=0,sb=function(){return ob()-ib},sn=[],ad={},ab=function(t){var e=sn[sn.length-1],n=ad[t.interactionId];if(n||sn.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{var r={id:t.interactionId,latency:t.duration,entries:[t]};ad[r.id]=r,sn.push(r)}sn.sort(function(o,i){return i.latency-o.latency}),sn.splice(10).forEach(function(o){delete ad[o.id]})}},cb=function(t,e){e=e||{},gi(function(){var n;nB();var r,o=be("INP"),i=function(a){a.forEach(function(l){l.interactionId&&ab(l),l.entryType==="first-input"&&!sn.some(function(d){return d.entries.some(function(p){return l.duration===p.duration&&l.startTime===p.startTime})})&&ab(l)});var u,c=(u=Math.min(sn.length-1,Math.floor(sb()/50)),sn[u]);c&&c.latency!==o.value&&(o.value=c.latency,o.entries=c.entries,r())},s=so("event",i,{durationThreshold:(n=e.durationThreshold)!==null&&n!==void 0?n:40});r=Re(t,o,sd,e.reportAllChanges),s&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&s.observe({type:"first-input",buffered:!0}),ba(function(){i(s.takeRecords()),o.value<0&&sb()>0&&(o.value=0,o.entries=[]),r(!0)}),Tr(function(){sn=[],ib=ob(),o=be("INP"),r=Re(t,o,sd,e.reportAllChanges)}))})},cd=[2500,4e3],ud={},ub=function(t,e){e=e||{},gi(function(){var n,r=td(),o=be("LCP"),i=function(u){var c=u[u.length-1];c&&c.startTime<r.firstHiddenTime&&(o.value=Math.max(c.startTime-Aa(),0),o.entries=[c],n())},s=so("largest-contentful-paint",i);if(s){n=Re(t,o,cd,e.reportAllChanges);var a=Ql(function(){ud[o.id]||(i(s.takeRecords()),s.disconnect(),ud[o.id]=!0,n(!0))});["keydown","click"].forEach(function(u){addEventListener(u,function(){return setTimeout(a,0)},!0)}),ba(a),Tr(function(u){o=be("LCP"),n=Re(t,o,cd,e.reportAllChanges),Zl(function(){o.value=performance.now()-u.timeStamp,ud[o.id]=!0,n(!0)})})}})},ld=[800,1800],rB=function t(e){document.prerendering?gi(function(){return t(e)}):document.readyState!=="complete"?addEventListener("load",function(){return t(e)},!0):setTimeout(e,0)},lb=function(t,e){e=e||{};var n=be("TTFB"),r=Re(t,n,ld,e.reportAllChanges);rB(function(){var o=Xl();if(o){var i=o.responseStart;if(i<=0||i>performance.now())return;n.value=Math.max(i-Aa(),0),n.entries=[o],r(!0),Tr(function(){n=be("TTFB",0),(r=Re(t,n,ld,e.reportAllChanges))(!0)})}})},oB=Object.freeze({__proto__:null,CLSThresholds:rd,FCPThresholds:ed,FIDThresholds:od,INPThresholds:sd,LCPThresholds:cd,TTFBThresholds:ld,getCLS:ZA,getFCP:nd,getFID:nb,getINP:cb,getLCP:ub,getTTFB:lb,onCLS:ZA,onFCP:nd,onFID:nb,onINP:cb,onLCP:ub,onTTFB:lb});const dd="longtask",db="browser-longtask",pb="post-doc-load-resource",iB=["img","script"],sB=t=>t instanceof HTMLScriptElement||t instanceof HTMLImageElement;class hb extends ge{constructor(e={}){const n=Object.assign({},{allowedInitiatorTypes:iB},e);super(pb,Rn,n),this.config=n,this.urlToContextMap={}}init(){}enable(){window.PerformanceObserver&&window.addEventListener("load",()=>{this._startPerformanceObserver()}),window.MutationObserver&&this._startHeadMutationObserver()}disable(){this.performanceObserver&&this.performanceObserver.disconnect(),this.headMutationObserver&&this.headMutationObserver.disconnect()}onBeforeContextChange(){this._processHeadMutationObserverRecords(this.headMutationObserver.takeRecords())}_startPerformanceObserver(){this.performanceObserver=new PerformanceObserver(e=>
20{window.document.readyState==="complete"&&e.getEntries().forEach(n=>{this.config.allowedInitiatorTypes.includes(n.initiatorType)&&this._createSpan(n)})}),this.performanceObserver.observe({entryTypes:["resource"]})}_startHeadMutationObserver(){this.headMutationObserver=new MutationObserver(this._processHeadMutationObserverRecords.bind(this)),this.headMutationObserver.observe(document.head,{childList:!0})}_processHeadMutationObserverRecords(e){H.active()!==Jt&&e.flatMap(n=>Array.from(n.addedNodes||[])).filter(sB).forEach(n=>{try{const r=n.getAttribute("src");if(!r)return;const o=new URL(r,location.origin);this.urlToContextMap[o.toString()]=H.active()}catch{}})}_createSpan(e){if(di(e.name,this.config.ignoreUrls))return;const n=new URL(e.name,location.origin),r=this.tracer.startSpan("resourceFetch",{startTime:e.fetchStart},this.urlToContextMap[n.toString()]);r.setAttribute("component",pb),r.setAttribute("http.url",e.name),r.setAttribute("http.method","GET"),Sr(r,e);const o=e.responseEnd;o&&o>0?r.end(o):r.end()}}class aB extends hk{get resource(){return this._resource}shutdown(){return new Promise(e=>{Zt.disable(),H.disable(),Q.disable(),e()}).then(()=>super.shutdown())}}class cB{constructor(){this.events={}}addEventListener(e,n){this.events[e]||(this.events[e]=[]),this.events[e].push(n)}removeEventListener(e,n){if(!this.events[e])return;const r=this.events[e].indexOf(n);r>=0&&this.events[e].splice(r,1)}emit(e,n){const r=this.events[e];r&&r.forEach(o=>{Promise.resolve({payload:n}).then(o)})}}const He="__splunk_context";class uB{constructor(e={}){this._config=e,this._enabled=!1,this._currentContext=Jt,this._hashChangeContext=null,this._contextResumingListeners=new WeakMap,this._messagePorts=new WeakMap}_bindFunction(e,n=Jt){const r=this,o=function(...i){return r.with(n,()=>e.apply(this,i))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),o}active(){return this._currentContext}bind(e,n){return re(n)?this._bindFunction(n,e):n}disable(){return this._enabled?(this._config.async&&(this._unpatchTimeouts(),this._unpatchPromise(),this._unpatchMutationObserver(),this._unpatchEvents(),this._unpatchMessageChannel()),this._currentContext=Jt,this._enabled=!1,this):this}enable(){return this._enabled||(this._config.async&&(this._patchTimeouts(),this._patchPromise(),this._patchMutationObserver(),this._patchEvents(),this._patchMessageChannel()),this._enabled=!0,this._currentContext=Jt),this}bindActiveToArgument(e,n){re(e[n])&&(e[n]=this.bind(this.active(),e[n]))}_patchTimeouts(){const e=this;Nt(window,"setTimeout",n=>function(...r){return(!r[1]||r[1]<=34)&&e.bindActiveToArgument(r,0),n.apply(this,r)}),window.setImmediate&&Nt(window,"setImmediate",n=>function(...r){return e.bindActiveToArgument(r,0),n.apply(this,r)}),window.requestAnimationFrame&&Nt(window,"requestAnimationFrame",n=>function(...r){return e.bindActiveToArgument(r,0),n.apply(this,r)})}_unpatchTimeouts(){rt.unwrap(window,"setTimeout"),window.setImmediate&&rt.unwrap(window,"setImmediate")}_patchPromise(){if(!window.Promise)return;const e=this;Nt(Promise.prototype,"then",n=>function(...r){return e.bindActiveToArgument(r,0),e.bindActiveToArgument(r,1),n.apply(this,r)}),Nt(Promise.prototype,"catch",n=>function(...r){return e.bindActiveToArgument(r,0),n.apply(this,r)}),Nt(Promise.prototype,"finally",n=>function(...r){return e.bindActiveToArgument(r,0),n.apply(this,r)})}_unpatchPromise(){window.Promise&&(rt.unwrap(Promise.prototype,"then"),rt.unwrap(Promise.prototype,"catch"),rt.unwrap(Promise.prototype,"finally"))}_patchMutationObserver(){const e=this;Nt(window,"MutationObserver",n=>class extends n{constructor(...r){if(re(r[0])){const o=r[0];r[0]=function(...i){return this[He]&&e._enabled?e.with(this[He],o,this,...i):o.apply(this,i)}}super(...r),Object.defineProperty(this,He,{value:null,writable:!0,enumerable:!1})}observe(...r){if(r[0]&&r[0]instanceof Text&&!r[0].parentNode&&r[1]&&r[1].characterData){const o=this,i=r[0],s=Object.getOwnPropertyDescriptor(CharacterData.prototype,"data");Object.defineProperty(i,"data",Object.assign(Object.assign({},s),{enumerable:!1,set:function(...a){const u=e.active();return u&&(o[He]=u),s.set.apply(this,a)}}))}return super.observe(...r)}})}_unpatchMutationObserver(){rt.unwrap(window,"MutationObserver")}_getListenersMap(e,n){this._contextResumingListeners.has(e)||this._contextResumingListeners.set(e,new Map);const r=this._contextResumingListeners.get(e);return r.has(n)||r.set(n,new WeakMap),r.get(n)}_patchEvents(){const e=this;Nt(XMLHttpRequest.prototype,"addEventListener",r=>function(...o){if(re(o[1])){const i=e._getListenersMap(this,o[0]);let s=i.get(o[1]);s||(s=e.bind(e.active(),o[1]),i.set(o[1],s)),o[1]=s}return r.apply(this,o)}),Nt(XMLHttpRequest.prototype,"removeEventListener",r=>function(...o){if(re(o[1])){const i=e._getListenersMap(this,o[0]).get(o[1]);i&&(o[1]=i)}return r.apply(this,o)}),["onabort","onerror","onload","onloadend","onloadstart","onprogress","ontimeout"].forEach(r=>{const o=Object.getOwnPropertyDescriptor(XMLHttpRequestEventTarget.prototype,r);o&&(Nt(o,"get",i=>
20function(){const s=i.call(this);return re(s)&&s._orig?s._orig:s}),Nt(o,"set",i=>function(s){if(re(s)){const a=s,u=e.bind(e.active(),s);u._orig=a,s=u}return i.call(this,s)}),Object.defineProperty(XMLHttpRequestEventTarget.prototype,r,o))}),Nt(Window.prototype,"addEventListener",r=>function(...o){if(o[0]==="hashchange"&&re(o[1])){const i=e._getListenersMap(this,o[0]);let s=i.get(o[1]);s||(s=e._getWrappedEventListener(o[1],()=>e._hashChangeContext),i.set(o[1],s)),o[1]=s}return r.apply(this,o)});const n=Object.getOwnPropertyDescriptor(window,"onhashchange");Nt(n,"get",r=>function(){const o=r.call(this);return re(o)&&o._orig?o._orig:o}),Nt(n,"set",r=>function(o){if(re(o)){const i=e._getWrappedEventListener(o,()=>e._hashChangeContext);i._orig=o,o=i}return r.call(this,o)}),Object.defineProperty(window,"onhashchange",n)}_unpatchEvents(){rt.unwrap(XMLHttpRequest.prototype,"addEventListener"),rt.unwrap(XMLHttpRequest.prototype,"removeEventListener")}_patchMessageChannel(){const e=this;Nt(window,"MessageChannel",r=>class extends r{constructor(...o){super(...o),e._messagePorts.set(this.port1,this.port2),e._messagePorts.set(this.port2,this.port1),Object.defineProperty(this.port1,He,{value:null,writable:!0,enumerable:!1}),Object.defineProperty(this.port2,He,{value:null,writable:!0,enumerable:!1})}}),Nt(MessagePort.prototype,"postMessage",r=>function(...o){const i=e.active();if(!e._messagePorts.has(this)||!i)return r.apply(this,o);const s=e._messagePorts.get(this);s[He]=i;const a=r.apply(this,o);return HA(setTimeout)(()=>{s[He]===i&&(s[He]=null)},100),a}),Nt(MessagePort.prototype,"addEventListener",r=>function(...o){if(o[0]==="message"&&re(o[1])){const i=e._getListenersMap(this,o[0]);let s=i.get(o[1]);s||(s=e._getWrappedEventListener(o[1],()=>this[He]),i.set(o[1],s)),o[1]=s}return r.apply(this,o)}),Nt(MessagePort.prototype,"removeEventListener",r=>function(...o){if(o[0]==="message"&&re(o[1])){const i=e._getListenersMap(this,o[0]).get(o[1]);i&&(o[1]=i)}return r.apply(this,o)});const n=Object.getOwnPropertyDescriptor(MessagePort.prototype,"onmessage");Nt(n,"get",r=>function(){const o=r.call(this);return re(o)&&o._orig?o._orig:o}),Nt(n,"set",r=>function(o){if(re(o)){const i=e._getWrappedEventListener(o,()=>this[He]);i._orig=o,o=i}return r.call(this,o)}),Object.defineProperty(MessagePort.prototype,"onmessage",n)}_getWrappedEventListener(e,n){const r=this;return function(...o){const i=n();return i&&r._enabled?r.with(i,e,this,...o):e.apply(this,o)}}_unpatchMessageChannel(){rt.unwrap(window,"MessageChannel"),rt.unwrap(MessagePort.prototype,"postMessage"),rt.unwrap(MessagePort.prototype,"addEventListener"),rt.unwrap(MessagePort.prototype,"removeEventListener");const e=Object.getOwnPropertyDescriptor(MessagePort.prototype,"onmessage");rt.unwrap(e,"get"),rt.unwrap(e,"set"),Object.defineProperty(MessagePort.prototype,"onmessage",e)}with(e,n,r,...o){var i,s,a,u;try{(s=(i=this._config).onBeforeContextStart)===null||s===void 0||s.call(i)}catch{}const c=this._currentContext;this._currentContext=e||Jt;const l=location.hash;try{const d=n.call(r,...o);return(u=(a=this._config).onBeforeContextEnd)===null||u===void 0||u.call(a),d}finally{this._currentContext=c,l!==location.hash&&(this._hashChangeContext=e,HA(setTimeout)(()=>{this._hashChangeContext===e&&(this._hashChangeContext=null)},33))}}}class lB{constructor(e){this._globalAttributes=e??{}}setGlobalAttributes(e){if(e)Object.assign(this._globalAttributes,e);else for(const n of Object.keys(this._globalAttributes))delete this._globalAttributes[n]}getGlobalAttributes(){return this._globalAttributes}forceFlush(){return Promise.resolve()}onStart(e){e.setAttribute("location.href",location.href),e.setAttributes(this._globalAttributes)}onEnd(){}shutdown(){return Promise.resolve()}}const fb="messaging.system",_b="messaging.destination",dB="messaging.operation",Eb="messaging.socket.io.namespace",mb="messaging.socket.io.event_name",gb=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];class pB extends ek{constructor(e,n){super(e,n)}onInit(e){(e==null?void 0:e.disableAutoFlushOnDocumentHide)!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(n=>vn(n))},this._pageHideListener=()=>{this.forceFlush().catch(n=>vn(n))},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}}var hB=function(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")},fB=se(hB),_B=typeof Et=="object"&&Et&&Et.Object===Object&&Et,EB=typeof self=="object"&&self&&self.Object===Object&&self,pd=(_B||EB||Function("return this")()).Symbol,Sb=pd,Tb=Object.prototype,mB=Tb.hasOwnProperty,gB=Tb.toString,Ti=Sb?Sb.toStringTag:void 0,SB=function(t){var e=mB.call(t,Ti),n=t[Ti];try{t[Ti]=void 0;var r=!0}catch{}var o=gB.call(t);return r&&(e?t[Ti]=n:delete t[Ti]),o},TB=Object.prototype.toString,vB=function(t){return TB.call(t)},yB=SB,AB=vB,vb=pd?pd.toStringTag:void 0,yb=function(t){return t==null?t===void 0?"[object Undef
20ined]":"[object Null]":vb&&vb in Object(t)?yB(t):AB(t)},bB=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),Ab=function(t){return t!=null&&typeof t=="object"},RB=yb,OB=bB,NB=Ab,IB=Function.prototype,CB=Object.prototype,bb=IB.toString,MB=CB.hasOwnProperty,wB=bb.call(Object),LB=function(t){if(!NB(t)||RB(t)!="[object Object]")return!1;var e=OB(t);if(e===null)return!0;var n=MB.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&bb.call(n)==wB},Rb=se(LB),DB=Array.isArray,PB=yb,UB=DB,xB=Ab,kB=function(t){return typeof t=="string"||!UB(t)&&xB(t)&&PB(t)=="[object String]"},BB=se(kB);const Ob="console";var Na;(function(t){t.COMPONENT="component",t.HTTP_STATUS_TEXT="http.status_text"})(Na||(Na={}));const Nb=F.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function VB(...t){if(t[0]instanceof URL||typeof t[0]=="string"){const e=t[1];if(!(e!=null&&e.body))return Promise.resolve();if(e.body instanceof ReadableStream){const{body:n,length:r}=function(o){if(!o.pipeThrough)return Nb.warn("Platform has ReadableStream but not pipeThrough!"),{body:o,length:Promise.resolve(void 0)};let i,s=0;const a=new Promise(c=>{i=c}),u=new TransformStream({start(){},async transform(c,l){const d=await c;s+=d.byteLength,l.enqueue(c)},flush(){i(s)}});return{body:o.pipeThrough(u),length:a}}(e.body);return e.body=n,r}return Promise.resolve(function(n){if(r=n,typeof Document<"u"&&r instanceof Document)return new XMLSerializer().serializeToString(document).length;var r;return typeof n=="string"?hd(n):n instanceof Blob?n.size:n instanceof FormData?function(o){let i=0;for(const[s,a]of o.entries())i+=s.length,a instanceof Blob?i+=a.size:i+=a.length;return i}(n):n instanceof URLSearchParams?hd(n.toString()):n.byteLength!==void 0?n.byteLength:void Nb.warn("unknown body type")}(e.body))}{const e=t[0];return e!=null&&e.body?e.clone().text().then(n=>hd(n)):Promise.resolve()}}const FB=new TextEncoder;function hd(t){return FB.encode(t).byteLength}function GB(t){const e=function(){return fd===void 0&&(fd=jB),fd}(),n=t.toUpperCase();return n in e?n:"_OTHER"}const jB={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0};let fd;const HB={"https:":"443","http:":"80"},Ib="0.218.0",Cb=typeof PerformanceObserver<"u";class YB extends ge{constructor(n={}){super("@opentelemetry/instrumentation-fetch",Ib,n);b(this,"component","fetch");b(this,"version",Ib);b(this,"moduleName",this.component);b(this,"_usedResources",new WeakSet);b(this,"_tasksCount",0);b(this,"_semconvStability");this._semconvStability=rs("http",n==null?void 0:n.semconvStabilityOptIn)}init(){}_addChildSpan(n,r){const o=this.tracer.startSpan("CORS Preflight",{startTime:r[Y.FETCH_START]},Q.setSpan(H.active(),n)),i=!(this._semconvStability&tt.OLD);Sr(o,r,this.getConfig().ignoreNetworkEvents,void 0,i),o.end(r[Y.RESPONSE_END])}_addFinalSpanAttributes(n,r){const o=bn(r.url);if(this._semconvStability&tt.OLD&&(n.setAttribute("http.status_code",r.status),r.statusText!=null&&n.setAttribute(Na.HTTP_STATUS_TEXT,r.statusText),n.setAttribute("http.host",o.host),n.setAttribute("http.scheme",o.protocol.replace(":","")),typeof navigator<"u"&&n.setAttribute("http.user_agent",navigator.userAgent)),this._semconvStability&tt.STABLE){n.setAttribute(vc,r.status),n.setAttribute(yc,o.hostname);const i=function(s){const a=Number(s.port||HB[s.protocol]);return a&&!isNaN(a)?a:void 0}(o);i&&n.setAttribute(Ac,i)}}_addHeaders(n,r){if(!LA(r,this.getConfig().propagateTraceHeaderCorsUrls)){const o={};return Zt.inject(H.active(),o),void(Object.keys(o).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}if(n instanceof Request)Zt.inject(H.active(),n.headers,{set:(o,i,s)=>o.set(i,typeof s=="string"?s:String(s))});else{const o=new Headers(n.headers);Zt.inject(H.active(),o,{set:(i,s,a)=>i.set(s,typeof a=="string"?a:String(a))}),n.headers=o}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(n,r={}){if(di(n,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let o="";const i={};if(this._semconvStability&tt.OLD){const s=(r.method||"GET").toUpperCase();o=`HTTP ${s}`,i[Na.COMPONENT]=this.moduleName,i["http.method"]=s,i["http.url"]=n}if(this._semconvStability&tt.STABLE){const s=r.method,a=GB(r.method||"GET");o||(o=a),i[Sc]=a,a!==s&&(i[Tc]=s),i[Mr]=n}return this.tracer.startSpan(o,{kind:Xt.CLIENT,attributes:i})}_findResourceAndAddNetworkEvents(n,r,o){let i=r.entries;if(!i.length){if(!performance.getEntriesByType)return;i=performance.getEntriesByType("resource")}const s=MA(r.spanUrl,r.startTime,o,i,this._usedResources,"fetch");if(s.mainRequest){const a=s.mainRequest;this._markResourceAsUsed(a);const u=s.corsPreFlightRequest;u&&(this._addChildSpan(n,u),this._markResourceAsUsed(u));const c=!(this._semconvStability&tt.OLD);Sr(n,a,this.getConfig().ignoreNetworkEvents,void 0,c)}}_markResourceAsUsed(n){this._usedResources.add(n)}_endSpan(n,r,o){const i=yn(Date.now()),s=Er();this._addFinalSpanAttributes(n,o),this._semconvStability&tt.STABLE&&o.status>=400&&(n.setStatus({code:Pe.ERROR}),n.setAttribute(Zi,String(o.status))),setTimeout(()=>{var a;(a=r.observer)==null||a.disconnect(),this._findResourceAndAddNetworkEvents(n,r,s),this._tasksCount--,this._clearResources(),n.end(i)},300)}_patchConstructor(){return n=>{const r=this;return function(...o){if(!r._isEnabled)return n.apply(this,o);const i=this,s=bn(o[0]instanceof Request?o[0].url:String(o[0])).href;let a;
20a=o[0]instanceof Request?o[1]!=null?new Request(o[0],o[1]):o[0]:o[1]||{};const u=r._createSpan(s,a);if(!u)return n.apply(this,o);const c=r._prepareSpanData(s);function l(_,f){r._applyAttributesAfterFetch(_,a,f),r._endSpan(_,c,{status:f.status||0,statusText:f.message,url:s})}function d(_,f){r._applyAttributesAfterFetch(_,a,f),f.status>=200&&f.status<400?r._endSpan(_,c,f):r._endSpan(_,c,{status:f.status,statusText:f.statusText,url:s})}function p(_,f){try{const m=f.clone().body;if(m){const E=m.getReader(),S=()=>{E.read().then(({done:g})=>{g?d(_,f):S()},g=>{l(_,g)})};S()}else d(_,f)}catch(m){r._diag.error("Failed to read fetch response body",m),r._endSpan(_,c,{status:0,url:s})}return f}function h(_,f){try{l(_,f)}catch(m){r._diag.error("Failed to end span on fetch error",m),r._endSpan(_,c,{status:f.status||0,url:s})}throw f}return r.getConfig().measureRequestSize&&VB(...o).then(_=>{_&&(r._semconvStability&tt.OLD&&u.setAttribute("http.request_content_length_uncompressed",_),r._semconvStability&tt.STABLE&&u.setAttribute("http.request.body.size",_))}).catch(_=>{r._diag.warn("getFetchBodyLength",_)}),H.with(Q.setSpan(H.active(),u),()=>(r._callRequestHook(u,a),r._addHeaders(a,s),r._tasksCount++,n.apply(i,a instanceof Request?[a]:[s,a]).then(p.bind(i,u),h.bind(i,u))))}}}_applyAttributesAfterFetch(n,r,o){const i=this.getConfig().applyCustomAttributesOnSpan;i&&wr(()=>i(n,r,o),s=>{s&&this._diag.error("applyCustomAttributesOnSpan",s)},!0)}_callRequestHook(n,r){const o=this.getConfig().requestHook;o&&wr(()=>o(n,r),i=>{i&&this._diag.error("requestHook",i)},!0)}_prepareSpanData(n){const r=Er(),o=[];if(typeof PerformanceObserver!="function")return{entries:o,startTime:r,spanUrl:n};const i=new PerformanceObserver(s=>{s.getEntries().forEach(a=>{a.initiatorType==="fetch"&&a.name===n&&o.push(a)})});return i.observe({entryTypes:["resource"]}),{entries:o,observer:i,startTime:r,spanUrl:n}}enable(){if(Cb){if(!this._isEnabled){if(this._isFetchPatched)return this._diag.debug("fetch constructor already patched"),void(this._isEnabled=!0);try{this._wrap(globalThis,"fetch",this._patchConstructor()),this._isFetchPatched=!0,this._isEnabled=!0}catch(n){this._diag.warn("Failed to patch globalThis.fetch; instrumentation will not be enabled. Another script may have locked globalThis.fetch via Object.defineProperty.",n)}}}else this._diag.warn("this instrumentation is intended for web usage only, it does not instrument server-side fetch()")}disable(){Cb&&this._isEnabled&&(this._isEnabled=!1,this._usedResources=new WeakSet)}}var On;(function(t){t.METHOD_OPEN="open",t.METHOD_SEND="send",t.EVENT_ABORT="abort",t.EVENT_ERROR="error",t.EVENT_LOAD="loaded",t.EVENT_TIMEOUT="timeout"})(On||(On={}));const $B=F.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"});function zB(t){return e=t,typeof Document<"u"&&e instanceof Document?new XMLSerializer().serializeToString(document).length:typeof t=="string"?Mb(t):t instanceof Blob?t.size:t instanceof FormData?function(n){let r=0;for(const[o,i]of n.entries())r+=o.length,i instanceof Blob?r+=i.size:r+=i.length;return r}(t):t instanceof URLSearchParams?Mb(t.toString()):t.byteLength!==void 0?t.byteLength:void $B.warn("unknown body type");var e}const WB=new TextEncoder;function Mb(t){return WB.encode(t).byteLength}const qB={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0};let _d;function KB(){return _d===void 0&&(_d=qB),_d}const JB={"https:":"443","http:":"80"},wb="0.218.0";var Ed;(function(t){t.HTTP_STATUS_TEXT="http.status_text"})(Ed||(Ed={}));class XB extends ge{constructor(n={}){super("@opentelemetry/instrumentation-xml-http-request",wb,n);b(this,"component","xml-http-request");b(this,"version",wb);b(this,"moduleName",this.component);b(this,"_tasksCount",0);b(this,"_xhrMem",new WeakMap);b(this,"_usedResources",new WeakSet);b(this,"_semconvStability");this._semconvStability=rs("http",n==null?void 0:n.semconvStabilityOptIn)}init(){}_addHeaders(n,r){if(!LA(bn(r).href,this.getConfig().propagateTraceHeaderCorsUrls)){const i={};return Zt.inject(H.active(),i),void(Object.keys(i).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}const o={};
20Zt.inject(H.active(),o),Object.keys(o).forEach(i=>{n.setRequestHeader(i,String(o[i]))})}_addChildSpan(n,r){H.with(Q.setSpan(H.active(),n),()=>{const o=this.tracer.startSpan("CORS Preflight",{startTime:r[Y.FETCH_START]}),i=!(this._semconvStability&tt.OLD);Sr(o,r,this.getConfig().ignoreNetworkEvents,void 0,i),o.end(r[Y.RESPONSE_END])})}_addFinalSpanAttributes(n,r,o){if(this._semconvStability&tt.OLD){if(r.status!==void 0&&n.setAttribute("http.status_code",r.status),r.statusText!==void 0&&n.setAttribute(Ed.HTTP_STATUS_TEXT,r.statusText),typeof o=="string"){const i=bn(o);n.setAttribute("http.host",i.host),n.setAttribute("http.scheme",i.protocol.replace(":",""))}n.setAttribute("http.user_agent",navigator.userAgent)}this._semconvStability&tt.STABLE&&r.status&&n.setAttribute(vc,r.status)}_applyAttributesAfterXHR(n,r){const o=this.getConfig().applyCustomAttributesOnSpan;typeof o=="function"&&wr(()=>o(n,r),i=>{i&&this._diag.error("applyCustomAttributesOnSpan",i)},!0)}_addResourceObserver(n,r){const o=this._xhrMem.get(n);o&&typeof PerformanceObserver=="function"&&typeof PerformanceResourceTiming=="function"&&(o.createdResources={observer:new PerformanceObserver(i=>{const s=i.getEntries(),a=bn(r);s.forEach(u=>{u.initiatorType==="xmlhttprequest"&&u.name===a.href&&o.createdResources&&o.createdResources.entries.push(u)})}),entries:[]},o.createdResources.observer.observe({entryTypes:["resource"]}))}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(Lt.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}_findResourceAndAddNetworkEvents(n,r,o,i,s){if(!(o&&i&&s&&n.createdResources))return;let a=n.createdResources.entries;a&&a.length||(a=Lt.getEntriesByType("resource"));const u=MA(bn(o).href,i,s,a,this._usedResources);if(u.mainRequest){const c=u.mainRequest;this._markResourceAsUsed(c);const l=u.corsPreFlightRequest;l&&(this._addChildSpan(r,l),this._markResourceAsUsed(l));const d=!(this._semconvStability&tt.OLD);Sr(r,c,this.getConfig().ignoreNetworkEvents,void 0,d)}}_cleanPreviousSpanInformation(n){const r=this._xhrMem.get(n);if(r){const o=r.callbackToRemoveEvents;o&&o(),this._xhrMem.delete(n)}}_createSpan(n,r,o){const i=bn(r);if(di(i.href,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let s="";const a={};if(this._semconvStability&tt.OLD&&(s=o.toUpperCase(),a["http.method"]=o,a["http.url"]=i.toString()),this._semconvStability&tt.STABLE){const c=o,l=function(p){const h=KB(),_=p.toUpperCase();return _ in h?_:"_OTHER"}(o);s||(s=l),a[Sc]=l,l!==c&&(a[Tc]=c),a[Mr]=i.toString(),a[yc]=i.hostname;const d=function(p){const h=Number(p.port||JB[p.protocol]);return h&&!isNaN(h)?h:void 0}(i);d&&(a[Ac]=d)}const u=this.tracer.startSpan(s,{kind:Xt.CLIENT,attributes:a});return u.addEvent(On.METHOD_OPEN),this._cleanPreviousSpanInformation(n),this._xhrMem.set(n,{span:u,spanUrl:r}),u}_markResourceAsUsed(n){this._usedResources.add(n)}_patchOpen(){return n=>{const r=this;return function(...o){if(!r._isEnabled)return n.apply(this,o);const i=o[0],s=o[1];return r._createSpan(this,s,i),n.apply(this,o)}}}_patchSend(){const n=this;function r(u,c,l,d){const p=n._xhrMem.get(c);if(!p)return;if(p.status=c.status,p.statusText=c.statusText,n._xhrMem.delete(c),p.span){const f=p.span;n._applyAttributesAfterXHR(f,c),n._semconvStability&tt.STABLE&&(l?d&&(f.setStatus({code:Pe.ERROR,message:d}),f.setAttribute(Zi,d)):p.status&&p.status>=400&&(f.setStatus({code:Pe.ERROR}),f.setAttribute(Zi,String(p.status))))}const h=Er(),_=Date.now();setTimeout(()=>{(function(f,m,E,S){const g=m.callbackToRemoveEvents;typeof g=="function"&&g();const{span:T,spanUrl:y,sendStartTime:R}=m;T&&(n._findResourceAndAddNetworkEvents(m,T,y,R,E),T.addEvent(f,S),n._addFinalSpanAttributes(T,m,y),T.end(S),n._tasksCount--),n._clearResources()})(u,p,h,_)},300)}function o(){r(On.EVENT_ERROR,this,!0,"error")}function i(){r(On.EVENT_ABORT,this,!1)}function s(){r(On.EVENT_TIMEOUT,this,!0,"timeout")}function a(){this.status<299?r(On.EVENT_LOAD,this,!1):r(On.EVENT_ERROR,this,!1)}return u=>function(...c){if(!n._isEnabled)return u.apply(this,c);const l=n._xhrMem.get(this);if(!l)return u.apply(this,c);const d=l.span,p=l.spanUrl;if(d&&p){if(n.getConfig().measureRequestSize&&(c!=null&&c[0])){const h=zB(c[0]);h!==void 0&&(n._semconvStability&tt.OLD&&d.setAttribute("http.request_content_length_uncompressed",h),n._semconvStability&tt.STABLE&&d.setAttribute("http.request.body.size",h))}H.with(Q.setSpan(H.active(),d),()=>{n._tasksCount++,l.sendStartTime=Er(),d.addEvent(On.METHOD_SEND),this.addEventListener("abort",i),this.addEventListener("error",o),this.addEventListener("load",a),this.addEventListener("timeout",s),l.callbackToRemoveEvents=()=>{(function(h){h.removeEventListener("abort",i),h.removeEventListener("error",o),h.removeEventListener("load",a),h.removeEventListener("timeout",s);const _=n._xhrMem.get(h);_&&(_.callbackToRemoveEvents=void 0)})(this),l.createdResources&&l.createdResources.observer.disconnect()},n._addHeaders(this,p),n._addResourceObserver(this,p)})}return u.apply(this,c)}}enable(){if(!this._isEnabled){if(this._isXhrPatched)return this._diag.debug("reactivating existing patch on",this.moduleName,this.version),void(this._isEnabled=!0);try{this._diag.debug("applying patch to",this.moduleName,this.version),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend()),this._isXhrPatched=!0,this._isEnabled=!0}catch(n){this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.warn("Failed to patch globalThis.XMLHttpRequest; instrumentation will not be enabled. Another script may have locked globalThis.XMLHttpRequest via Object.defineProperty.",n)}}}disable(){this._isEnabled&&(this._isEnabled=!1,this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}}const Ia={app:"unknown-browser-app",url:void 0,bufferTimeout:4e3,bufferSize:50,instrumentations:{},exporter:{factory:t=>new zk({url:t.url,headers:{authorization:t.authHeader}})},spanProcessor:{factory:(t,e)=>new pB(t,e)},apiKey:void 0};
20function Lb(t,e,n){!(e in t)||n in t&&t[n]!==Ia[n]||(t[n]=t[e])}const Db=[{Instrument:class extends fk{constructor(t={}){super(t);const e=this,n=e._endSpan.bind(this);e._endSpan=(o,i,s)=>{var a;const u=o;if(o&&o.setAttribute("component",this.component),o&&u.name!=="documentLoad"){if(u.name==="documentFetch"&&!s.serverTiming&&performance.getEntriesByType){const c=performance.getEntriesByType("navigation");!((a=c[0])===null||a===void 0)&&a.serverTiming&&(s.serverTiming=c[0].serverTiming)}(function(c,l){if(c.serverTiming)for(const d of c.serverTiming)d.name==="traceparent"&&d.description&&PA(d.description.match(Ek),l)})(s,o),o.setAttribute("http.method","GET")}return o&&u.name==="documentLoad"&&function(c){document.referrer&&document.referrer!==""&&c.setAttribute("document.referrer",document.referrer),window.screen&&c.setAttribute("screen.xy",window.screen.width+"x"+window.screen.height)}(o),n(o,i,s)};const r=e._initResourceSpan.bind(this);e._initResourceSpan=(o,i)=>{mk.indexOf(o.initiatorType)!==-1||di(o.name,t.ignoreUrls)||r(o,i)}}},confKey:"document",disable:!1},{Instrument:class extends XB{constructor(t={}){super(t);const e=this._createSpan.bind(this);this._createSpan=(r,o,i)=>{var s;const a=e(r,o,i);return a&&(!((s=t.advancedNetworkCapture)===null||s===void 0)&&s.call(t)&&r.addEventListener("readystatechange",function(){if(r.readyState===r.OPENED)rt.wrap(r,"setRequestHeader",u=>function(c,l){return Ta("request",[c])(a,()=>l),u.apply(this,arguments)}),rt.wrap(r,"send",u=>function(c){return c&&a.setAttribute("http.request.body",c.toString()),u.apply(this,arguments)});else if(r.readyState===r.DONE){const u=r.getAllResponseHeaders().split(`\r 21`).reduce((c,l)=>{let[d,p]=l.split(": ");return d&&p&&(c[d]=p),c},{});Ta("response",Object.keys(u))(a,c=>u[c]);try{a.setAttribute("http.response.body",r.responseText)}catch{}rt.unwrap(r,"setRequestHeader"),rt.unwrap(r,"send")}}),r.addEventListener("readystatechange",function(){if(r.readyState===r.HEADERS_RECEIVED&&r.getAllResponseHeaders().toLowerCase().indexOf("server-timing")!==-1){const u=r.getResponseHeader("server-timing");u!==null&&UA(u,a)}}),a.setAttribute("component",this.moduleName),a.updateName(`HTTP ${i.toUpperCase()}`)),a};const n=this._addResourceObserver.bind(this);this._addResourceObserver=(r,o)=>{typeof PerformanceObserver=="function"&&typeof PerformanceResourceTiming=="function"&&n(r,o)}}},confKey:"xhr",disable:!1},{Instrument:class extends Tk{constructor(t={}){if(!t.eventNames){const r=Object.assign({},$l,t.events),o=Object.entries(r).filter(([i,s])=>s).map(([i])=>i);t.eventNames=o}super(t),this._routingTracer=Q.getTracer(kA,"1");const e=this._createSpan.bind(this);this._createSpan=(r,o,i)=>{r===document&&(r=document.documentElement);const s=e(r,o,i);return s&&s.setAttribute("component",this.moduleName),s};const n=this._patchAddEventListener.bind(this);this._patchAddEventListener=()=>{const r=n();return o=>{const i=r(o);return function(s,a,u){return function(c){return c&&(typeof c=="function"||typeof c=="object"&&typeof c.handleEvent=="function")}(a)?(u===null&&(u=void 0),i.call(this,s,a,u)):o.call(this,s,a,u)}}}}setTracerProvider(t){super.setTracerProvider(t),this._routingTracer=t.getTracer(kA,"1")}getZoneWithPrototype(){}enable(){this.__hashChangeHandler=t=>{this._emitRouteChangeSpan(t.oldURL)},window.addEventListener("hashchange",this.__hashChangeHandler),super.enable()}disable(){super.disable(),window.removeEventListener("hashchange",this.__hashChangeHandler)}_patchHistoryMethod(){const t=this;return e=>function(...n){const r=location.href,o=e.apply(this,n);return r!==location.href&&t._emitRouteChangeSpan(r),o}}_emitRouteChangeSpan(t){const e=Date.now(),n=this._routingTracer.startSpan("routeChange",{startTime:e});n.setAttribute("component",this.moduleName),n.setAttribute("prev.href",t),n.end(e)}},confKey:"interactions",disable:!1},{Instrument:hb,confKey:"postload",disable:!1},{Instrument:class extends YB{constructor(t={}){const e=t.applyCustomAttributesOnSpan;t.applyCustomAttributesOnSpan=function(n,r,o){var i;if(n.updateName(`HTTP ${(r.method||"GET").toUpperCase()}`),n.setAttribute("component","fetch"),((i=t.advancedNetworkCapture)===null||i===void 0?void 0:i.call(t))&&n&&(r.headers&&Ta("request",Object.keys(r.headers))(n,s=>{var a;return(a=r.headers)===null||a===void 0?void 0:a[s]}),r.body&&(r.body instanceof ReadableStream?n.setAttribute("http.request.body","[ReadableStream]"):n.setAttribute("http.request.body",r.body.toString())),o instanceof Response)){if(o.headers){const s=[];
21o.headers.forEach((a,u)=>{s.push(u)}),Ta("response",s)(n,a=>{var u;return(u=o.headers.get(a))!==null&&u!==void 0?u:""})}o.clone().text().then(s=>{n.setAttribute("http.response.body",s)}).catch(()=>{})}if(n&&o instanceof Response&&o.headers){const s=o.headers.get("Server-Timing");s&&UA(s,n)}e&&e(n,r,o)},super(t)}enable(){window.fetch&&super.enable()}},confKey:"fetch",disable:!1},{Instrument:class extends ge{constructor(t){super("splunk-websocket",Rn,t),this.listener2ws2patched=new WeakMap,this._config=t}init(){}enable(){const t=this;rt.wrap(window,"WebSocket",function(){class e extends WebSocket{constructor(r,o){if(di(r,t._config.ignoreUrls))return void super(r,o);const i=t.tracer.startSpan("connect",{kind:Xt.CLIENT,attributes:{component:"websocket"}});r&&i.setAttribute("http.url",r),o&&(typeof o=="string"?i.setAttribute("protocols",o):i.setAttribute("protocols",JSON.stringify(o)));try{super(r,o)}catch(s){throw t.endSpanExceptionally(i,s),s}this.addEventListener("open",function(){i.end()}),this.addEventListener("error",function(s){i.isRecording()?t.endSpanExceptionally(i,new Error(s.error||s.message||"Could not connect.")):t.startSpan(this,"error",Xt.CLIENT).end()}),t.patchSend(this),t.patchEventListener(this)}}return e})}disable(){rt.unwrap(window,"WebSocket")}startSpan(t,e,n){const r=this.tracer.startSpan(e,{kind:n});return r.setAttribute("component","websocket"),r.setAttribute("protocol",t.protocol),r.setAttribute("http.url",t.url),r}patchSend(t){const e=this,n=t.send;t.send=function(...r){const o=e.startSpan(t,"send",Xt.PRODUCER),i=r.length>0?WA(r[0]):void 0;let s;o.setAttribute("http.request_content_length",i);try{s=n.apply(t,r)}catch(a){throw e.endSpanExceptionally(o,a),a}return s===!1&&e.endSpanExceptionally(o,new Error("Failed to send frame.")),o.end(),s}}addPatchedListener(t,e,n){let r=this.listener2ws2patched.get(e);return r||(r=new Map,this.listener2ws2patched.set(e,r)),!r.has(t)&&(r.set(t,n),!0)}removePatchedListener(t,e){const n=this.listener2ws2patched.get(e);if(!n)return;const r=n.get(t);return r&&(n.delete(t),n.size===0&&this.listener2ws2patched.delete(t)),r}patchEventListener(t){const e=this,n=t.addEventListener.bind(t);t.addEventListener=function(o,i,s){if(o!=="message")return void n(o,i,s);const a=typeof s=="boolean"||s==null?void 0:s.once,u=function(...c){const l=this,d=c;a&&e.removePatchedListener(t,i);const p=e.startSpan(t,"onmessage",Xt.CONSUMER);d&&d[0]&&d[0].data&&p.setAttribute("http.response_content_length",WA(d[0].data)),H.with(Q.setSpan(H.active(),p),()=>{let h;return h=typeof i=="function"?i.apply(l,d):i.handleEvent(c[0]),p.end(),h})};e.addPatchedListener(t,i,u)&&n.apply(t,[o,u,s])};const r=t.removeEventListener;t.removeEventListener=function(o,i,s){if(o!=="message")return r.call(t,o,i,s);const a=e.removePatchedListener(t,i);return a?r.call(t,o,a,s):r.call(t,o,i,s)}}endSpanExceptionally(t,e){t.setAttribute("error",!0),t.setAttribute("error.message",e.message),t.setAttribute("error.object",e.name?e.name:e.constructor&&e.constructor.name?e.constructor.name:"Error"),t.end()}},confKey:"websocket",disable:!0},{Instrument:class extends ge{constructor(t={}){super(db,Rn,Object.assign({},t))}init(){}enable(){this.isSupported()&&(this._longtaskObserver=new PerformanceObserver(t=>{t.getEntries().forEach(e=>this._createSpanFromEntry(e))}),this._longtaskObserver.observe({type:dd,buffered:!0}))}disable(){this.isSupported()&&this._longtaskObserver.disconnect()}_createSpanFromEntry(t){const e=this.tracer.startSpan(dd,{startTime:t.startTime});e.setAttribute("component",db),e.setAttribute("longtask.name",t.name),e.setAttribute("longtask.entry_type",t.entryType),e.setAttribute("longtask.duration",t.duration);const n=t.attribution;Array.isArray(n)&&n.forEach((r,o)=>{const i=r>1?`longtask.attribution[${o}]`:"longtask.attribution";e.setAttribute(`${i}.name`,r.name),e.setAttribute(`${i}.entry_type`,r.entryType),e.setAttribute(`${i}.start_time`,r.startTime),e.setAttribute(`${i}.duration`,r.duration),e.setAttribute(`${i}.container_type`,r.containerType),e.setAttribute(`${i}.container_src`,r.containerSrc),e.setAttribute(`${i}
21.container_id`,r.containerId),e.setAttribute(`${i}.container_name`,r.containerName)}),e.end(t.startTime+t.duration)}isSupported(){return(window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes||[]).includes(dd)}},confKey:"longtask",disable:!1},{Instrument:ii.HyperDXErrorInstrumentation,confKey:ii.ERROR_INSTRUMENTATION_NAME,disable:!1},{Instrument:class extends ge{constructor(t={}){super("page-visibility",Rn,Object.assign({},t)),this.unloading=!1}init(){}enable(){document.hidden&&this._createSpan(document.hidden),this.unloadListener=()=>{this.unloading=!0},this.visibilityListener=()=>{this.unloading||this._createSpan(document.hidden)},window.addEventListener("beforeunload",this.unloadListener),window.addEventListener("visibilitychange",this.visibilityListener)}disable(){window.removeEventListener("beforeunload",this.unloadListener),window.removeEventListener("visibilitychange",this.visibilityListener)}_createSpan(t){const e=Date.now(),n=this.tracer.startSpan("visibility",{startTime:e});n.setAttribute("hidden",t),n.end(e)}},confKey:"visibility",disable:!0},{Instrument:class extends ge{constructor(t={}){super("splunk-connectivity",Rn,Object.assign({},t)),this.offlineStart=navigator.onLine?null:Date.now()}init(){}enable(){this.offlineListener=()=>{this.offlineStart=Date.now()},this.onlineListener=()=>{this.offlineStart&&(this._createSpan(!1,this.offlineStart),this._createSpan(!0,Date.now()))},window.addEventListener("offline",this.offlineListener),window.addEventListener("online",this.onlineListener)}disable(){window.removeEventListener("offline",this.offlineListener),window.removeEventListener("online",this.onlineListener)}_createSpan(t,e){const n=this.tracer.startSpan("connectivity",{startTime:e});n.setAttribute("online",t),n.end(e)}},confKey:"connectivity",disable:!0},{Instrument:class extends ge{constructor(t={}){super("splunk-socket.io-client",Rn,Object.assign({target:"io"},t)),this.listeners=new WeakMap}init(){}getConfig(){return this._config}patchSocketIo(t){if(!function(n){return typeof n=="function"&&typeof n.Socket=="function"}(t))return void this._diag.debug("Doesn't seem like socket.io-client",t);const e=this;this._wrap(t.Socket.prototype,"emit",n=>function(r,...o){const i=e.tracer.startSpan(`${r} send`,{kind:Xt.PRODUCER,attributes:{[fb]:"socket.io",[_b]:this.nsp,[Eb]:this.nsp,[mb]:r}});try{return H.with(Q.setSpan(H.active(),i),()=>n.apply(this,[r,...o]))}catch(s){let a;throw s instanceof Error&&(i.recordException(s),a=s.message),i.setStatus({code:Pe.ERROR,message:a}),s}finally{i.end()}}),this._wrap(t.Socket.prototype,"on",n=>function(r,o){if(gb.includes(r)||typeof o!="function")return n.call(this,r,o);let i;return e.listeners.has(o)?i=e.listeners.get(o):(i=function(...s){const a=e.tracer.startSpan(`${r} receive`,{kind:Xt.CONSUMER,attributes:{[fb]:"socket.io",[_b]:this.nsp,[dB]:"receive",[Eb]:this.nsp,[mb]:r}});try{o.call(this,s)}catch(u){throw u instanceof Error&&a.recordException(u),u}finally{a.end()}},e.listeners.set(o,i)),n.call(this,r,i)}),t.Socket.prototype.addEventListener=t.Socket.prototype.on,this._wrap(t.Socket.prototype,"off",n=>function(r,o){return!r||gb.includes(r)||typeof o!="function"?n.call(this,r,o):e.listeners.has(o)?n.call(this,r,e.listeners.get(o)):n.call(this,r,o)}),t.Socket.prototype.removeListener=t.Socket.prototype.off,t.Socket.prototype.removeEventListener=t.Socket.prototype.off,t.Socket.prototype.removeAllListeners=t.Socket.prototype.off,this._onDisable=()=>{this._unwrap(t.Socket.prototype,"emit"),this._unwrap(t.Socket.prototype,"on"),t.Socket.prototype.addEventListener=t.Socket.prototype.on,this._unwrap(t.Socket.prototype,"off"),t.Socket.prototype.removeListener=t.Socket.prototype.off,t.Socket.prototype.removeEventListener=t.Socket.prototype.off,t.Socket.prototype.removeAllListeners=t.Socket.prototype.off}}enable(){const t=this.getConfig();t.target&&(typeof t.target=="string"?this._onDisable=function(e,n){if(window[e])return n(window[e]),()=>{};const r=window[e];let o=!1;return Object.defineProperty(window,e,{get:()=>r,set(i){delete window[e],o=!0,window[e]=i,n(i)},configurable:!0,enumerable:!1}),()=>{o||window[e]!==r||(delete window[e],r!==void 0&&(window[e]=r))}}(t.target,e=>this.patchSocketIo(e)):this.patchSocketIo(t.target))}disable(){this._onDisable&&(this._onDisable(),this._onDisable=void 0)}},confKey:"socketio",disable:!0},{Instrument:class extends ge{_createSpan(t,...e){const n=Date.now(),r=(a=>{const u=[];let c;for(const l of a)if(fB(l)){c==null&&Rb(l)&&(c=l);try{const d=JSON.stringify(l);d!=null&&u.push(d)}catch{}}else u.push(l);return c?Object.assign(Object.assign({},c),a.length>1&&{message:u.join(" ")}):u.join(" ")})(e),o=BB(r)?r:(a=>{let u="[HyperDX] Failed to stringify",c=!1;try{u=JSON.stringify(a)}catch{c=!0}if(c)try{u=ZL(a)}catch{}return u})(r),i=this.tracer.startSpan(`console.${t}`,{kind:Xt.INTERNAL,startTime:n});let s=t;t==="log"&&(s="info"),i.setAttribute("component",Ob),i.setAttribute("level",s),i.setAttribute("message",o),Rb(r)&&i.setAttributes(r),i.end(n)}constructor(t={}){super(Ob,Rn,Object.assign({},t)),this._consoleLogHandler=e=>(...n)=>(this._createSpan("log",...n),e.apply(this,n)),this._consoleInfoHandler=e=>(...n)=>(this._createSpan("info",...n),e.apply(this,n)),this._consoleWarnHandler=e=>(...n)=>(this._createSpan("warn",...n),e.apply(this,n)),this._consoleDebugHandler=e=>(...n)=>(this._createSpan("debug",...n),e.apply(this,n))}init(){}enable(){rt.wrap(console,"debug",this._consoleDebugHandler),rt.wrap(console,"info",this._consoleInfoHandler),rt.wrap(console,"log",this._consoleLogHandler),rt.wrap(console,"warn",this._consoleWarnHandler)}disable(){rt.unwrap(console,"debug"),rt.unwrap(console,"info"),rt.unwrap(console,"log"),rt.unwrap(console,"warn")}},confKey:"console",disable:!0}];Db.map(t=>t.confKey).reduce((t,e)=>(t[e]=!1,t),{webvitals:!1});let Ca,Ma,md,vi,Nn,Wn=!1;const In={DEFAULT_AUTO_INSTRUMENTED_EVENTS:$l,DEFAULT_AUTO_INSTRUMENTED_EVENT_NAMES:vk,AlwaysOnSampler:$n,AlwaysOffSampler:ro,ParentBasedSampler:hi,SessionBasedSampler:class{constructor({ratio:t=1,sampled:e=new $n,notSampled:n=new ro}={}){this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio),this._sampled=e,this._notSampled=n}shouldSample(t,e,n,r,o,i){const s=Kl();return this._currentSession!==s&&(this._currentSessionSampled=this._accumulate(s)<this._upperBound,this._currentSession=s),(this._currentSessionSampled?this._sampled:this._notSampled).shouldSample(t,e,n,r,o,i)}toString(){return`SessionBased{ratio=${this._ratio}, sampled=${this._sampled.toString()}, notSampled=${this._notSampled.toString()}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let e=0;for(let n=0;n<t.length/8;n++){const r=8*n;e=(e^parseInt(t.slice(r,r+8),16))>>>0}return e}},get inited(){return Wn},_internalInit:function(t){In.init(Object.assign(Object.assign({},Ia),t))},init:function(t){const e=(y,R)=>typeof y=="function"&&y.__wrapped!==!0&&y.name===R,n=e(console==null?void 0:console.log,"log")?console.log:()=>{},r=e(console==null?void 0:console.warn,"warn")?console.warn:n,o=e(console==null?void 0:console.error,"error")?console.error:n,i=e(console==null?void 0:console.debug,"debug")?console.debug:n,s=e(console==null?void 0:console.trace,"trace")?console.trace:n;if(F.setLogger({error:(...y)=>{e(o,"error")&&o(...y)},warn:(...y)=>{e(r,"warn")&&r(...y)},info:(...y)=>{e(n,"log")&&n(...y)},debug:(...y)=>{e(i,"debug")&&i(...y)}
21,verbose:(...y)=>{e(s,"trace")&&s(...y)}},{suppressOverrideMessage:!0,logLevel:t!=null&&t.debug?Gt.DEBUG:Gt.NONE}),typeof window!="object")return void F.error("Rum: Non-browser environment detected, aborting");if(typeof Symbol!="function")return void F.error("Rum: browser not supported, disabling instrumentation.");Nn=new cB;const a=Object.assign({},Ia,(Lb(u=t,"app","applicationName"),Lb(u,"environment","deploymentEnvironment"),u),{exporter:Object.assign({},Ia.exporter,t.exporter)});var u;if(Wn)return void F.warn("Rum already init()ed.");if(!a.debug){if(!a.url)throw new Error("Rum.init( {url: 'https://something'} ) is required.");if(!a.url.startsWith("https")&&!a.allowInsecureUrl)throw new Error("Not using https is unsafe, if you want to force it use allowInsecureUrl option.")}const c=GA(64);Ma=function(y,R,O){O&&(ql=O),_i=y,Ei=!0,va=R,zA();const A=setInterval(()=>zA(),6e4);return["click","scroll","mousedown","keydown","touchend","visibilitychange"].forEach(D=>document.addEventListener(D,Kk,{capture:!0,passive:!0})),{deinit:()=>{clearInterval(A),_i=void 0,va=void 0}}}(c,Nn,a.cookieDomain).deinit;const{ignoreUrls:l,applicationName:d,deploymentEnvironment:p,version:h,resourceAttributes:_}=a,f={ignoreUrls:l,enabled:!1},m=Object.assign(Object.assign(Object.assign({},_||{}),la),{[Do]:"@hyperdx/otel-web",[Po]:Rn,[bc]:d,"rum.version":Rn,"rum.scriptInstance":c}),E=window.syntheticsRunId;E&&(m["Synthetics-RunId"]=E);const S=Db.map(({Instrument:y,confKey:R,disable:O})=>{const A=jA(a.instrumentations[R],f,O);if(A){const D=new y(A);return R===ii.ERROR_INSTRUMENTATION_NAME&&D instanceof ii.HyperDXErrorInstrumentation&&(md=D),R==="postload"&&D instanceof hb&&(vi=D),D}return null}).filter(y=>!!y);this.attributesProcessor=new lB(Object.assign(Object.assign(Object.assign({},p?{environment:p,"deployment.environment":p}:{}),h?{"app.version":h}:{}),a.globalAttributes||{}));const g=[this.attributesProcessor];if(a.url){const y=function(O){return O.exporter.factory({url:O.url,onAttributesSerializing:O.exporter.onAttributesSerializing,authHeader:O.apiKey})}(a),R=a.spanProcessor.factory(y,{scheduledDelayMillis:a.bufferTimeout,maxExportBatchSize:a.bufferSize});g.push(R),this._processor=R}a.debug&&g.push(new dk(new lk));const T=new aB(Object.assign(Object.assign({},a.tracer),{resource:mA(m),spanProcessors:g}));Object.defineProperty(T.resource.attributes,"rum.sessionId",{get:()=>Kl(),configurable:!0,enumerable:!0}),window.addEventListener("visibilitychange",()=>{var y;document.visibilityState==="hidden"&&((y=this._processor)===null||y===void 0||y.forceFlush())}),T.register({contextManager:new uB(Object.assign(Object.assign({},a.context),{onBeforeContextStart:()=>vi==null?void 0:vi.onBeforeContextChange(),onBeforeContextEnd:()=>vi==null?void 0:vi.onBeforeContextChange()}))}),Ca=SS({tracerProvider:T,instrumentations:S}),this.provider=T,jA(a.instrumentations.webvitals)!==!1&&function(y,R=oB){const O=y.getTracer("webvitals"),A={};function D(I,x){if(A[I])return;A[I]=!0;const P=Date.now(),L=O.startSpan("webvitals",{startTime:P});L.setAttribute(I,x.value),L.end(P)}R.onFID(I=>D("fid",I)),R.onCLS(I=>D("cls",I)),R.onLCP(I=>D("lcp",I)),R.onINP(I=>D("inp",I)),R.onFCP(I=>D("fcp",I)),R.onTTFB(I=>D("ttfb",I))}(T),Wn=!0,F.info("Rum.init() complete")},deinit(){Wn&&(Ca==null||Ca(),Ca=void 0,Ma==null||Ma(),Ma=void 0,this.provider.shutdown(),delete this.provider,Nn=void 0,F.disable(),Wn=!1)},setGlobalAttributes(t){var e,n;(e=this.attributesProcessor)===null||e===void 0||e.setGlobalAttributes(t),Nn==null||Nn.emit("global-attributes-changed",{attributes:((n=this.attributesProcessor)===null||n===void 0?void 0:n.getGlobalAttributes())||{}})},getGlobalAttributes(){var t;return((t=this.attributesProcessor)===null||t===void 0?void 0:t.getGlobalAttributes())||{}},addAction(t,e){if(!Wn)return void F.debug("Rum not inited");const n=Date.now(),r=this.provider.getTracer("custom-action").startSpan(t,{startTime:n});e&&r.setAttributes(e),r.end(n)},_experimental_getGlobalAttributes(){return this.getGlobalAttributes()},recordException(t,e){if(!Wn)return void F.debug("Rum not inited");const n=this.provider.getTracer("record-exception");return Xn.recordException(t,{tracer:n,attributes:e})},error(...t){Wn?md?md.hdxReport("Rum.error",t):F.error("Error was reported, but error instrumentation is disabled."):F.debug("Rum not inited")},addEventListener(t,e){Nn==null||Nn.addEventListener(t,e)},removeEventListener(t,e){Nn==null||Nn.removeEventListener(t,e)},_experimental_addEventListener(t,e){return this.addEventListener(t,e)},_experimental_removeEventListener(t,e){return this.removeEventListener(t,e)},getSessionId:()=>
21Kl(),_experimental_getSessionId(){return this.getSessionId()}};/*! ***************************************************************************** 22 Copyright (c) Microsoft Corporation. 23 24 Permission to use, copy, modify, and/or distribute this software for any 25 purpose with or without fee is hereby granted. 26 27 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 28 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 29 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 30 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 31 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 32 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 33 PERFORMANCE OF THIS SOFTWARE. 34 ***************************************************************************** */var Bt,At=function(){return At=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},At.apply(this,arguments)};function qn(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function K(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function X(t,e,n){if(arguments.length===2)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function yi(t){var e,n=(e=t)===null||e===void 0?void 0:e.host;return!!(n&&n.shadowRoot&&n.shadowRoot===t)}function gd(t){var e=t.maskInputOptions,n=t.tagName,r=t.type,o=t.value,i=t.maskInputFn,s=o||"";return(e[n.toLowerCase()]||e[r])&&(s=i?i(s):"*".repeat(s.length)),s}(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(Bt||(Bt={}));var Pb="__rrweb_original__",co,Ub,ZB=1,QB=new RegExp("[^a-z0-9-_:]"),Ai=-2;function Sd(t){try{var e=t.rules||t.cssRules;return e?Array.from(e).map(tV).join(""):null}catch{return null}}function tV(t){var e=t.cssText;if(function(n){return"styleSheet"in n}(t))try{e=Sd(t.styleSheet)||e}catch{}return e}var eV=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,nV=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,rV=/^(data:)([^,]*),(.*)/i;function wa(t,e){return(t||"").replace(eV,function(n,r,o,i,s,a){var u=o||s||a,c=r||i||"";if(!u)return n;if(!nV.test(u)||rV.test(u))return"url("+c+u+c+")";
34if(u[0]==="/")return"url("+c+(function(f){return(f.indexOf("//")>-1?f.split("/").slice(0,3).join("/"):f.split("/")[0]).split("?")[0]}(e)+u)+c+")";var l=e.split("/"),d=u.split("/");l.pop();for(var p=0,h=d;p<h.length;p++){var _=h[p];_!=="."&&(_===".."?l.pop():l.push(_))}return"url("+c+l.join("/")+c+")"})}var mt,Vt,La,uo,xb,kb,oV=/^[^ \t\n\r\u000c]+/,iV=/^[, \t\n\r\u000c]+/;function bi(t,e){if(!e||e.trim()==="")return e;var n=t.createElement("a");return n.href=e,n.href}function Td(){var t=document.createElement("a");return t.href="",t.href}function Bb(t,e,n,r){return n==="src"||n==="href"&&r||n==="xlink:href"&&r&&r[0]!=="#"?bi(t,r):n!=="background"||!r||e!=="table"&&e!=="td"&&e!=="th"?n==="srcset"&&r?function(o,i){if(i.trim()==="")return i;var s=0;function a(h){var _,f=h.exec(i.substring(s));return f?(_=f[0],s+=_.length,_):""}for(var u=[];a(iV),!(s>=i.length);){var c=a(oV);if(c.slice(-1)===",")c=bi(o,c.substring(0,c.length-1)),u.push(c);else{var l="";c=bi(o,c);for(var d=!1;;){var p=i.charAt(s);if(p===""){u.push((c+l).trim());break}if(d)p===")"&&(d=!1);else{if(p===","){s+=1,u.push((c+l).trim());break}p==="("&&(d=!0)}l+=p,s+=1}}}return u.join(", ")}(t,r):n==="style"&&r?wa(r,Td()):e==="object"&&n==="data"&&r?bi(t,r):r:bi(t,r)}function Da(t,e,n){if(!t)return!1;
34if(t.nodeType===t.ELEMENT_NODE){if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(var r=0;r<t.classList.length;r++){var o=t.classList[r];if(e.test(o))return!0}return!(!n||!t.matches(n))||Da(t.parentNode,e,n)}return t.nodeType,t.TEXT_NODE,Da(t.parentNode,e,n)}function sV(t,e){var n,r,o,i,s=e.doc,a=e.blockClass,u=e.blockSelector,c=e.maskTextClass,l=e.maskTextSelector,d=e.inlineStylesheet,p=e.maskInputOptions,h=p===void 0?{}:p,_=e.maskTextFn,f=e.maskInputFn,m=e.dataURLOptions,E=m===void 0?{}:m,S=e.inlineImages,g=e.recordCanvas,T=e.keepIframeSrcFn;if(s.__sn){var y=s.__sn.id;r=y===1?void 0:y}switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Bt.Document,childNodes:[],compatMode:t.compatMode,rootId:r}:{type:Bt.Document,childNodes:[],rootId:r};case t.DOCUMENT_TYPE_NODE:return{type:Bt.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:r};case t.ELEMENT_NODE:for(var R=function(J,_t,Pt){if(typeof _t=="string"){if(J.classList.contains(_t))return!0}else for(var Ct=0;Ct<J.classList.length;Ct++){var ft=J.classList[Ct];if(_t.test(ft))return!0}return!!Pt&&J.matches(Pt)}(t,a,u),O=function(J){if(J instanceof HTMLFormElement)return"form";var _t=J.tagName.toLowerCase().trim();return QB.test(_t)?"div":_t}(t),A={},D=0,I=Array.from(t.attributes);D<I.length;D++){var x=I[D],P=x.name,L=x.value;A[P]=Bb(s,O,P,L)}if(O==="link"&&d){var B=Array.from(s.styleSheets).find(function(J){return J.href===t.href}),U=null;B&&(U=Sd(B)),U&&(delete A.rel,delete A.href,A._cssText=wa(U,B.href))}if(O==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length&&(U=Sd(t.sheet))&&(A._cssText=wa(U,Td())),(O==="input"||O==="textarea"||O==="select")&&(L=t.value,A.type!=="radio"&&A.type!=="checkbox"&&A.type!=="submit"&&A.type!=="button"&&L?A.value=gd({type:A.type,tagName:O,value:L,maskInputOptions:h,maskInputFn:f}):t.checked&&(A.checked=t.checked)),O==="option"&&(t.selected&&!h.select?A.selected=!0:delete A.selected),O==="canvas"&&g){if(t.__context==="2d")(function(J){var _t=J.getContext("2d");if(!_t)return!0;for(var Pt=0;Pt<J.width;Pt+=50)for(var Ct=0;Ct<J.height;Ct+=50){var ft=_t.getImageData,un=Pb in ft?ft[Pb]:ft;if(new Uint32Array(un.call(_t,Pt,Ct,Math.min(50,J.width-Pt),Math.min(50,J.height-Ct)).data.buffer).some(function(ln){return ln!==0}))return!1}return!0})(t)||(A.rr_dataURL=t.toDataURL(E.type,E.quality));else if(!("__context"in t)){var w=t.toDataURL(E.type,E.quality),N=document.createElement("canvas");N.width=t.width,N.height=t.height,w!==N.toDataURL(E.type,E.quality)&&(A.rr_dataURL=w)}}if(O==="img"&&S){co||(co=s.createElement("canvas"),Ub=co.getContext("2d"));var V=t,j=V.crossOrigin;V.crossOrigin="anonymous";var It=function(){try{co.width=V.naturalWidth,co.height=V.naturalHeight,Ub.drawImage(V,0,0),A.rr_dataURL=co.toDataURL(E.type,E.quality)}catch(J){console.warn("Cannot inline img src="+V.currentSrc+"! Error: "+J)}j?A.crossOrigin=j:delete A.crossOrigin};V.complete&&V.naturalWidth!==0?It():V.onload=It}if(O!=="audio"&&O!=="video"||(A.rr_mediaState=t.paused?"paused":"played",A.rr_mediaCurrentTime=t.currentTime),t.scrollLeft&&(A.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(A.rr_scrollTop=t.scrollTop),R){var z=t.getBoundingClientRect(),bt=z.width,vt=z.height;A={class:A.class,rr_width:bt+"px",rr_height:vt+"px"}}return O!=="iframe"||T(A.src)||(t.contentDocument||(A.rr_src=A.src),delete A.src),{type:Bt.Element,tagName:O,attributes:A,childNodes:[],isSVG:(i=t,!!(i.tagName==="svg"||i.ownerSVGElement)||void 0),needBlock:R,rootId:r};case t.TEXT_NODE:var ct=t.parentNode&&t.parentNode.tagName,M=t.textContent,st=ct==="STYLE"||void 0,Me=ct==="SCRIPT"||void 0;if(st&&M){try{t.nextSibling||t.previousSibling||!((n=t.parentNode.sheet)===null||n===void 0)&&n.cssRules&&(M=(o=t.parentNode.sheet).cssRules?Array.from(o.cssRules).map(function(J){return J.cssText||""}).join(""):"")}catch(J){console.warn("Cannot get CSS styles from text's parentNode. Error: "+J,t)}M=wa(M,Td())}return Me&&(M="SCRIPT_PLACEHOLDER"),!st&&!Me&&Da(t,c,l)&&M&&(M=_?_(M):M.replace(/[\S]/g,"*")),{type:Bt.Text,textContent:M||"",isStyle:st,rootId:r};case t.CDATA_SECTION_NODE:return{type:Bt.CDATA,textContent:"",rootId:r};case t.COMMENT_NODE:return{type:Bt.Comment,textContent:t.textContent||"",rootId:r};default:return!1}}function dt(t){return t===void 0?"":t.toLowerCase()}function Ri(t,e){var n,r=e.doc,o=e.map,i=e.blockClass,s=e.blockSelector,a=e.maskTextClass,u=e.maskTextSelector,c=e.skipChild,l=c!==void 0&&c,d=e.inlineStylesheet,p=d===void 0||d,h=e.maskInputOptions,_=h===void 0?{}:h,f=e.maskTextFn,m=e.maskInputFn,E=e.slimDOMOptions,S=e.dataURLOptions,g=S===void 0?{}:S,T=e.inlineImages,y=T!==void 0&&T,R=e.recordCanvas,O=R!==void 0&&R,A=e.onSerialize,D=e.onIframeLoad,I=e.iframeLoadTimeout,x=I===void 0?5e3:I,P=e.keepIframeSrcFn,L=P===void 0?function(){return!1}:P,B=e.preserveWhiteSpace,U=B===void 0||B,w=sV(t,{doc:r,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:u,inlineStylesheet:p,maskInputOptions:_,maskTextFn:f,maskInputFn:m,dataURLOptions:g,inlineImages:y,recordCanvas:O,keepIframeSrcFn:L});if(!w)return console.warn(t,"not serialized"),null;n="__sn"in t?t.__sn.id:!function(M,st){return!!(st.comment&&M.type===Bt.Comment||M.type===Bt.Element&&(st.script&&(M.tagName==="script"||M.tagName==="link"&&M.attributes.rel==="preload"&&M.attributes.as==="script"||M.tagName==="link"&&M.attributes.rel==="prefetch"&&typeof M.attributes.href=="string"&&M.attributes.href.endsWith(".js"))||st.headFavicon&&(M.tagName==="link"&&M.attributes.rel==="shortcut icon"||M.tagName==="meta"&&(dt(M.attributes.name).match(/^msapplication-tile(image|color)$/)||dt(M.attributes.name)==="application-name"||dt(M.attributes.rel)==="icon"||dt(M.attributes.rel)==="apple-touch-icon"||dt(M.attributes.rel)==="shortcut icon"))||M.tagName==="meta"&&(st.headMetaDescKeywords&&dt(M.attributes.name).match(/^description|keywords$/)||st.headMetaSocial&&(dt(M.attributes.property).match(/^(og|twitter|fb):/)||dt(M.attributes.name).match(/^(og|twitter):/)||dt(M.attributes.name)==="pinterest")||st.headMetaRobots&&(dt(M.attributes.name)==="robots"||dt(M.attributes.name)==="googlebot"||dt(M.attributes.name)==="bingbot")||st.headMetaHttpEquiv&&M.attributes["http-equiv"]!==void 0||st.headMetaAuthorship&&(dt(M.attributes.name)==="author"||dt(M.attributes.name)==="generator"||dt(M.attributes.name)==="framework"||dt(M.attributes.name)==="publisher"||dt(M.attributes.name)==="progid"||dt(M.attributes.property).match(/^article:/)||dt(M.attributes.property).match(/^product:/))||st.headMetaVerification&&(dt(M.attributes.name)==="google-site-verification"||dt(M.attributes.name)==="yandex-verification"||dt(M.attributes.name)==="csrf-token"||dt(M.attributes.name)==="p:domain_verify"||dt(M.attributes.name)==="verify-v1"||dt(M.attributes.name)==="verification"||dt(M.attributes.name)==="shopify-checkout-api-token"))))}(w,E)&&(U||w.type!==Bt.Text||w.isStyle||w.textContent.replace(/^\s+|\s+$/gm,"").length)?ZB++:Ai;var N=Object.assign(w,{id:n});if(t.__sn=N,n===Ai)return null;o[n]=t,A&&A(t);var V=!l;if(N.type===Bt.Element&&(V=V&&!N.needBlock,delete N.needBlock,t.shadowRoot&&(N.isShadowHost=!0)),(N.type===Bt.Document||N.type===Bt.Element)&&V){E.headWhitespace&&w.type===Bt.Element&&w.tagName==="head"&&(U=!1);for(var j={doc:r,map:o,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:u,skipChild:l,inlineStylesheet:p,maskInputOptions:_,maskTextFn:f,maskInputFn:m,slimDOMOptions:E,dataURLOptions:g,inlineImages:y,recordCanvas:O,preserveWhiteSpace:U,onSerialize:A,onIframeLoad:D,iframeLoadTimeout:x,keepIframeSrcFn:L},It=0,z=Array.from(t.childNodes);It<z.length;It++)(ct=Ri(z[It],j))&&N.childNodes.push(ct);if(function(M){return M.nodeType===M.ELEMENT_NODE}(t)&&t.shadowRoot)for(var bt=0,vt=Array.from(t.shadowRoot.childNodes);bt<vt.length;bt++){var ct;(ct=Ri(vt[bt],j))&&(ct.isShadow=!0,N.childNodes.push(ct))}}return t.parentNode&&yi(t.parentNode)&&(N.isShadow=!0),N.type===Bt.Element&&N.tagName==="iframe"&&function(M,st,Me){var J=M.contentWindow;if(J){var _t,Pt=!1;try{_t=J.document.readyState}catch{return}if(_t==="complete"){var Ct="about:blank";J.location.href===Ct&&M.src!==Ct&&M.src!==""?M.addEventListener("load",st):setTimeout(st,0)}else{var ft=setTimeout(function(){Pt||(st(),Pt=!0)},Me);M.addEventListener("load",function(){clearTimeout(ft),Pt=!0,st()})}}}(t,function(){var M=t.contentDocument;if(M&&D){var st=Ri(M,{doc:M,map:o,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:u,skipChild:!1,inlineStylesheet:p,maskInputOptions:_,maskTextFn:f,maskInputFn:m,slimDOMOptions:E,dataURLOptions:g,inlineImages:y,recordCanvas:O,preserveWhiteSpace:U,onSerialize:A,onIframeLoad:D,iframeLoadTimeout:x,keepIframeSrcFn:L});st&&D(t,st)}},x),N}function fe(t,e,n){n===void 0&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(t,e,r),function(){return n.removeEventListener(t,e,r)}}(function(t){t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin"})(mt||(mt={})),function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.In
34put=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration"}(Vt||(Vt={})),function(t){t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel"}(La||(La={})),function(t){t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2"}(uo||(uo={})),function(t){t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange"}(xb||(xb={})),function(t){t.Start="start",t.Pause="pause",t.Resume="resume",t.Resize="resize",t.Finish="finish",t.FullsnapshotRebuilded="fullsnapshot-rebuilded",t.LoadStylesheetStart="load-stylesheet-start",t.LoadStylesheetEnd="load-stylesheet-end",t.SkipStart="skip-start",t.SkipEnd="skip-end",t.MouseInteraction="mouse-interaction",t.EventCast="event-cast",t.CustomEvent="custom-event",t.Flush="flush",t.StateChange="state-change",t.PlayBack="play-back"}(kb||(kb={}));var lo=`Please stop import mirror directly. Instead of that,\r 35now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 36or you can use record.mirror to access the mirror instance during recording.`,Vb={map:{},getId:function(){return console.error(lo),-1},getNode:function(){return console.error(lo),null},removeNodeFromMap:function(){console.error(lo)},has:function(){return console.error(lo),!1},reset:function(){console.error(lo)}};function Oi(t,e,n){n===void 0&&(n={});var r=null,o=0;return function(i){var s=Date.now();o||n.leading!==!1||(o=s);var a=e-(s-o),u=this,c=arguments;a<=0||a>e?(r&&(clearTimeout(r),r=null),o=s,t.apply(u,c)):r||n.trailing===!1||(r=setTimeout(function(){o=n.leading===!1?0:Date.now(),r=null,t.apply(u,c)},a))}}function Pa(t,e,n,r,o){o===void 0&&(o=window);var i=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,r?n:{set:function(s){var a=this;setTimeout(function(){n.set.call(a,s)},0),i&&i.set&&i.set.call(this,s)}}),function(){return Pa(t,e,i||{},!0)}}function po(t,e,n){try{if(!(e in t))return function(){};var r=t[e],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=o,function(){t[e]=r}}catch{return function(){}}}function Fb(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Gb(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function oe(t,e){if(!t)return!1;
36if(t.nodeType===t.ELEMENT_NODE){var n=!1;if(typeof e=="string"){if(t.closest!==void 0)return t.closest("."+e)!==null;n=t.classList.contains(e)}else t.classList.forEach(function(r){e.test(r)&&(n=!0)});return n||oe(t.parentNode,e)}return t.nodeType,t.TEXT_NODE,oe(t.parentNode,e)}function vd(t){return"__sn"in t&&t.__sn.id===Ai}function jb(t,e){if(yi(t))return!1;var n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||jb(t.parentNode,e))}function Hb(t){return!!t.changedTouches}function Yb(t){return"__sn"in t&&t.__sn.type===Bt.Element&&t.__sn.tagName==="iframe"}function $b(t){return!!(t!=null&&t.shadowRoot)}function zb(t){return"__ln"in t}typeof window<"u"&&window.Proxy&&window.Reflect&&(Vb=new Proxy(Vb,{get:function(t,e,n){return e==="map"&&console.error(lo),Reflect.get(t,e,n)}}));var aV=function(){function t(){this.length=0,this.head=null}return t.prototype.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var n=this.head,r=0;r<e;r++)n=(n==null?void 0:n.next)||null;return n},t.prototype.addNode=function(e){var n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&zb(e.previousSibling)){var r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else e.nextSibling&&zb(e.nextSibling)&&e.nextSibling.__ln.previous?(r=e.nextSibling.__ln.previous,n.previous=r,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,r&&(r.next=n)):(this.head&&(this.head.previous=n),n.next=this.head,this.head=n);this.length++},t.prototype.removeNode=function(e){var n=e.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next&&(n.next.previous=n.previous)):(this.head=n.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)},t}(),Wb=function(t,e){return"".concat(t,"@").concat(e)};function qb(t){return"__sn"in t}var cV=function(){function t(){var e=this;this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(n){n.forEach(e.processMutation),e.emit()},this.emit=function(){var n,r,o,i;if(!e.frozen&&!e.locked){for(var s=[],a=new aV,u=function(R){for(var O=R,A=Ai;A===Ai;)A=(O=O&&O.nextSibling)&&e.mirror.getId(O);return A},c=function(R){for(var O,A,D,I,x,P=R.getRootNode?(O=R.getRootNode())===null||O===void 0?void 0:O.host:null,L=P;!((D=(A=L==null?void 0:L.getRootNode)===null||A===void 0?void 0:A.call(L))===null||D===void 0)&&D.host;)L=((x=(I=L==null?void 0:L.getRootNode)===null||I===void 0?void 0:I.call(L))===null||x===void 0?void 0:x.host)||null;var B=!(e.doc.contains(R)||L!==null&&e.doc.contains(L));if(R.parentNode&&!B){var U=yi(R.parentNode)?e.mirror.getId(P):e.mirror.getId(R.parentNode),w=u(R);if(U===-1||w===-1)return a.addNode(R);var N=Ri(R,{doc:e.doc,map:e.mirror.map,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(V){Yb(V)&&e.iframeManager.addIframe(V),$b(R)&&e.shadowDomManager.addShadowRoot(R.shadowRoot,document)},onIframeLoad:function(V,j){e.iframeManager.attachIframe(V,j),e.shadowDomManager.observeAttachShadow(V)}});N&&s.push({parentId:U,nextId:w,node:N})}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());try{for(var l=qn(e.movedSet),d=l.next();!d.done;d=l.next()){var p=d.value;Ad(e.removes,p,e.mirror)&&!e.movedSet.has(p.parentNode)||c(p)}}catch(R){n={error:R}}finally{try{d&&!d.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}try{for(var h=qn(e.addedSet),_=h.next();!_.done;_=h.next())p=_.value,bd(e.droppedSet,p)||Ad(e.removes,p,e.mirror)?bd(e.movedSet,p)?c(p):e.droppedSet.add(p):c(p)}catch(R){o={error:R}}finally{try{_&&!_.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}for(var f=null;a.length;){var m=null;if(f){var E=e.mirror.getId(f.value.parentNode),S=u(f.value);E!==-1&&S!==-1&&(m=f)}if(!m)for(var g=a.length-1;g>=0;g--){var T=a.get(g);if(T&&(E=e.mirror.getId(T.value.parentNode),S=u(T.value),E!==-1&&S!==-1)){m=T;break}}if(!m){for(;a.head;)a.removeNode(a.head.value);break}f=m.previous,a.removeNode(m.value),c(m.value)}var y={texts:e.texts.map(function(R){return{id:e.mirror.getId(R.node),value:R.value}}).filter(function(R){return e.mirror.has(R.id)}),attributes:e.attributes.map(function(R){return{id:e.mirror.getId(R.node),attributes:R.attributes}}).filter(function(R){return e.mirror.has(R.id)}),removes:e.removes,adds:s};(y.texts.length||y.attributes.length||y.removes.length||y.adds.length)&&(e.texts=[],e.attributes=[],e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.movedMap={},e.mutationCb(y))}},this.processMutation=function(n){var r,o,i,s;if(!vd(n.target))switch(n.type){case"characterData":var a=n.target.textContent;oe(n.target,e.blockClass)||a===n.oldValue||e.texts.push({value:Da(n.target,e.maskTextClass,e.maskTextSelector)&&a?e.maskTextFn?e.maskTextFn(a):a.replace(/[\S]/g,"*"):a,node:n.target});break;case"attributes":var u=n.target;if(a=n.target.getAttribute(n.attributeName),n.attributeName==="value"&&(a=gd({maskInputOptions:e.maskInputOptions,tagName:n.target.tagName,type:n.target.getAttribute("type"),value:a,maskInputFn:e.maskInputFn})),oe(n.target,e.blockClass)||a===n.oldValue)return;var c=e.attributes.find(function(g){return g.node===n.target});if(c||(c={node:n.target,attributes:{}},e.attributes.push(c)),n.attributeName==="style"){var l=e.doc.createElement("span");n.oldValue&&l.setAttribute("style",n.oldValue),c.attributes.style!==void 0&&c.attributes.style!==null||(c.attributes.style={});var d=c.attributes.style;try{for(var p=qn(Array.from(u.style)),h=p.next();!h.done;h=p.next()){var _=h.value,f=u.style.getPropertyValue(_),m=u.style.getPropertyPriority(_);f===l.style.getPropertyValue(_)&&m===l.style.getPropertyPriority(_)||(d[_]=m===""?f:[f,m])}}catch(g){r={error:g}}
36finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}try{for(var E=qn(Array.from(l.style)),S=E.next();!S.done;S=E.next())_=S.value,u.style.getPropertyValue(_)===""&&(d[_]=!1)}catch(g){i={error:g}}finally{try{S&&!S.done&&(s=E.return)&&s.call(E)}finally{if(i)throw i.error}}}else c.attributes[n.attributeName]=Bb(e.doc,n.target.tagName,n.attributeName,a);break;case"childList":n.addedNodes.forEach(function(g){return e.genAdds(g,n.target)}),n.removedNodes.forEach(function(g){var T=e.mirror.getId(g),y=yi(n.target)?e.mirror.getId(n.target.host):e.mirror.getId(n.target);oe(n.target,e.blockClass)||vd(g)||(e.addedSet.has(g)?(yd(e.addedSet,g),e.droppedSet.add(g)):e.addedSet.has(n.target)&&T===-1||jb(n.target,e.mirror)||(e.movedSet.has(g)&&e.movedMap[Wb(T,y)]?yd(e.movedSet,g):e.removes.push({parentId:y,id:T,isShadow:!!yi(n.target)||void 0})),e.mapRemoves.push(g))})}},this.genAdds=function(n,r){if(!r||!oe(r,e.blockClass)){if(qb(n)){if(vd(n))return;e.movedSet.add(n);var o=null;r&&qb(r)&&(o=r.__sn.id),o&&(e.movedMap[Wb(n.__sn.id,o)]=!0)}else e.addedSet.add(n),e.droppedSet.delete(n);oe(n,e.blockClass)||n.childNodes.forEach(function(i){return e.genAdds(i)})}}}return t.prototype.init=function(e){var n=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(function(r){n[r]=e[r]})},t.prototype.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.prototype.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.prototype.isFrozen=function(){return this.frozen},t.prototype.lock=function(){this.locked=!0,this.canvasManager.lock()},t.prototype.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.prototype.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t}();function yd(t,e){t.delete(e),e.childNodes.forEach(function(n){return yd(t,n)})}function Ad(t,e,n){var r=e.parentNode;if(!r)return!1;var o=n.getId(r);return!!t.some(function(i){return i.id===o})||Ad(t,r,n)}function bd(t,e){var n=e.parentNode;return!!n&&(!!t.has(n)||bd(t,n))}var uV=cV,vr=[],Kb=typeof CSSGroupingRule<"u",Jb=typeof CSSMediaRule<"u",Xb=typeof CSSSupportsRule<"u",Zb=typeof CSSConditionRule<"u";function Ni(t){try{if("composedPath"in t){var e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0];return t.target}catch{return t.target}}function Qb(t,e){var n,r,o=new uV;vr.push(o),o.init(t);var i=window.MutationObserver||window.__rrMutationObserver,s=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"MutationObserver");s&&window[s]&&(i=window[s]);var a=new i(o.processMutations.bind(o));return a.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function lV(t){var e=t.mouseInteractionCb,n=t.doc,r=t.mirror,o=t.blockClass,i=t.sampling;if(i.mouseInteraction===!1)return function(){};var s=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,a=[];return Object.keys(La).filter(function(u){return Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&s[u]!==!1}).forEach(function(u){var c=u.toLowerCase(),l=function(d){return function(p){var h=Ni(p);if(!oe(h,o)){var _=Hb(p)?p.changedTouches[0]:p;if(_){var f=r.getId(h),m=_.clientX,E=_.clientY;e({type:La[d],id:f,x:m,y:E})}}}}(u);a.push(fe(c,l,n))}),function(){a.forEach(function(u){return u()})}}function tR(t){var e=t.scrollCb,n=t.doc,r=t.mirror,o=t.blockClass;return fe("scroll",Oi(function(i){var s=Ni(i);if(s&&!oe(s,o)){var a=r.getId(s);if(s===n){var u=n.scrollingElement||n.documentElement;e({id:a,x:u.scrollLeft,y:u.scrollTop})}else e({id:a,x:s.scrollLeft,y:s.scrollTop})}},t.sampling.scroll||100),n)}function eR(t,e){var n=At({},t);return e||delete n.userTriggered,n}var dV=["INPUT","TEXTAREA","SELECT"],nR=new WeakMap;function Ua(t){return function(e,n){if(Kb&&e.parentRule instanceof CSSGroupingRule||Jb&&e.parentRule instanceof CSSMediaRule||Xb&&e.parentRule instanceof CSSSupportsRule||Zb&&e.parentRule instanceof CSSConditionRule){var r=Array.from(e.parentRule.cssRules).indexOf(e);n.unshift(r)}else r=Array.from(e.parentStyleSheet.cssRules).indexOf(e),n.unshift(r);return n}(t,[])}function pV(t,e){var n,r;e===void 0&&(e={});var o=t.doc.defaultView;if(!o)return function(){};(function(g,T){var y=g.mutationCb,R=g.mousemoveCb,O=g.mouseInteractionCb,A=g.scrollCb,D=g.viewportResizeCb,I=g.inputCb,x=g.mediaInteractionCb,P=g.styleSheetRuleCb,L=g.styleDeclarationCb,B=g.canvasMutationCb,U=g.fontCb;g.mutationCb=function(){for(var w=[],N=0;N<arguments.length;N++)w[N]=arguments[N];T.mutation&&T.mutation.apply(T,X([],K(w),!1)),y.apply(void 0,X([],K(w),!1))},g.mousemoveCb=function(){for(var w=[],N=0;N<arguments.length;N++)w[N]=arguments[N];T.mousemove&&T.mousemove.apply(T,X([],K(w),!1)),R.apply(void 0,X([],K(w),!1))},g.mouseInteractionCb=function(){for(var w=[],N=0;N<arguments.length;N++)w[N]=arguments[N];T.mouseInteraction&&T.mouseInteraction.apply(T,X([],K(w),!1)),O.apply(void 0,X([],K(w),!1))},g.scrollCb=function(){for(var w=[],N=0;N<arguments.length;N++)w[N]=arguments[N];T.scroll&&T.scroll.apply(T,X([],K(w),!1)),A.apply(void 0,X([],K(w),!1))},g.viewportResizeCb=function(){for(var w=[],N=0;N<arguments.length;N++)w[N]=arguments[N];T.viewportResize&&T.viewportResize.apply(T,X([],K(w),!1)),D.apply(void 0,X([],K(w),!1))},g.inputCb=function(){for(var w=[],N=0;N<arguments.length;N++)w[N]=arguments[N];T.input&&T.input.apply(T,X([],K(w),!1)),I.apply(void 0,X([],K(w),!1))},g.mediaInteractionCb=function(){for(var w=[],N=0;N<arguments.length;N++)w[N]=arguments[N];T.mediaInteaction&&T.mediaInteaction.apply(T,X([],K(w),!1)),x.apply(void 0,X([],K(w),!1))},g.styleSheetRuleCb=function(){for(var w=[],N=0;N<arguments.length;N++)w[N]=arguments[N];T.styleSheetRule&&T.styleSheetRule.apply(T,X([],K(w),!1)),P.apply(void 0,X([],K(w),!1))},g.styleDeclarationCb=function(){for(var w=[],N=0;N<arguments.length;N++)w[N]=arguments[N];T.styleDeclaration&&T.styleDeclaration.apply(T,X([],K(w),!1)),L.apply(void 0,X([],K(w),!1))},g.canvasMutationCb=function(){for(var w=[],N=0;N<arguments.length;N++)w[N]=arguments[N];T.canvasMutation&&T.canvasMutation.apply(T,X([],K(w),!1)),B.apply(void 0,X([],K(w),!1))},g.fontCb=function(){for(var w=[],N=0;N<arguments.length;N++)w[N]=arguments[N];T.font&&T.font.apply(T,X([],K(w),!1)),U.apply(void 0,X([],K(w),!1))}})(t,e);var i=Qb(t,t.doc),s=function(g){var T=g.mousemoveCb,y=g.sampling,R=g.doc,O=g.mirror;if(y.mousemove===!1)return function(){};var A,D=typeof y.mousemove=="number"?y.mousemove:50,I=typeof y.mousemoveCallback=="number"?y.mousemoveCallback:500,x=[],P=Oi(function(U){var w=Date.now()-A;T(x.map(function(N){return N.timeOffset-=w,N}),U),x=[],A=null},I),L=Oi(function(U){var w=Ni(U),N=Hb(U)?U.changedTouches[0]:U,V=N.clientX,j=N.clientY;A||(A=Date.now()),x.push({x:V,y:j,id:O.getId(w),timeOffset:Date.now()-A}),P(typeof DragEvent<"u"&&U instanceof DragEvent?Vt.Drag:U instanceof MouseEvent?Vt.MouseMove:Vt.TouchMove)},D,{trailing:!1}),B=[fe("mousemove",L,R),fe("touchmove",L,R),fe("drag",L,R)];return function(){B.forEach(function(U){return U()})}}(t),a=lV(t),u=tR(t),c=function(g){var T=g.viewportResizeCb,y=-1,R=-1;return fe("resize",Oi(function(){var O=Fb(),A=Gb();y===O&&R===A||(T({width:Number(A),height:Number(O)}),y=O,R=A)},200),window)}(t),l=function(g){var T=g.inputCb,y=g.doc,R=g.mirror,O=g.blockClass,A=g.ignoreClass,D=g.maskInputOptions,I=g.maskInputFn,x=g.sampling,P=g.userTriggeredOnInput;function L(V){var j=Ni(V),It=V.isTrusted;if(j&&j.tagName==="OPTION"&&(j=j.parentElement),j&&j.tagName&&!(dV.indexOf(j.tagName)<0)&&!oe(j,O)){var z=j.type;if(!j.classList.contains(A)){var bt=j.value,vt=!1;z==="radio"||z==="checkbox"?vt=j.checked:(D[j.tagName.toLowerCase()]||D[z])&&(bt=gd({maskInputOptions:D,tagName:j.tagName,type:z,value:bt,maskInputFn:I})),B(j,eR({text:bt,isChecked:vt,userTriggered:It},P));var ct=j.name;z==="radio"&&ct&&vt&&y.querySelectorAll('input[type="radio"][name="'.concat(ct,'"]')).forEac
36h(function(M){M!==j&&B(M,eR({text:M.value,isChecked:!vt,userTriggered:!1},P))})}}}function B(V,j){var It=nR.get(V);if(!It||It.text!==j.text||It.isChecked!==j.isChecked){nR.set(V,j);var z=R.getId(V);T(At(At({},j),{id:z}))}}var U=(x.input==="last"?["change"]:["input","change"]).map(function(V){return fe(V,L,y)}),w=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),N=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return w&&w.set&&U.push.apply(U,X([],K(N.map(function(V){return Pa(V[0],V[1],{set:function(){L({target:this})}})})),!1)),function(){U.forEach(function(V){return V()})}}(t),d=function(g){var T=g.mediaInteractionCb,y=g.blockClass,R=g.mirror,O=g.sampling,A=function(I){return Oi(function(x){var P=Ni(x);if(P&&!oe(P,y)){var L=P,B=L.currentTime,U=L.volume,w=L.muted;T({type:I,id:R.getId(P),currentTime:B,volume:U,muted:w})}},O.media||500)},D=[fe("play",A(0)),fe("pause",A(1)),fe("seeked",A(2)),fe("volumechange",A(3))];return function(){D.forEach(function(I){return I()})}}(t),p=function(g,T){var y=g.styleSheetRuleCb,R=g.mirror,O=T.win,A=O.CSSStyleSheet.prototype.insertRule;O.CSSStyleSheet.prototype.insertRule=function(P,L){var B=R.getId(this.ownerNode);return B!==-1&&y({id:B,adds:[{rule:P,index:L}]}),A.apply(this,arguments)};var D=O.CSSStyleSheet.prototype.deleteRule;O.CSSStyleSheet.prototype.deleteRule=function(P){var L=R.getId(this.ownerNode);return L!==-1&&y({id:L,removes:[{index:P}]}),D.apply(this,arguments)};var I={};Kb?I.CSSGroupingRule=O.CSSGroupingRule:(Jb&&(I.CSSMediaRule=O.CSSMediaRule),Zb&&(I.CSSConditionRule=O.CSSConditionRule),Xb&&(I.CSSSupportsRule=O.CSSSupportsRule));var x={};return Object.entries(I).forEach(function(P){var L=K(P,2),B=L[0],U=L[1];x[B]={insertRule:U.prototype.insertRule,deleteRule:U.prototype.deleteRule},U.prototype.insertRule=function(w,N){var V=R.getId(this.parentStyleSheet.ownerNode);return V!==-1&&y({id:V,adds:[{rule:w,index:X(X([],K(Ua(this)),!1),[N||0],!1)}]}),x[B].insertRule.apply(this,arguments)},U.prototype.deleteRule=function(w){var N=R.getId(this.parentStyleSheet.ownerNode);return N!==-1&&y({id:N,removes:[{index:X(X([],K(Ua(this)),!1),[w],!1)}]}),x[B].deleteRule.apply(this,arguments)}}),function(){O.CSSStyleSheet.prototype.insertRule=A,O.CSSStyleSheet.prototype.deleteRule=D,Object.entries(I).forEach(function(P){var L=K(P,2),B=L[0],U=L[1];U.prototype.insertRule=x[B].insertRule,U.prototype.deleteRule=x[B].deleteRule})}}(t,{win:o}),h=function(g,T){var y=g.styleDeclarationCb,R=g.mirror,O=T.win,A=O.CSSStyleDeclaration.prototype.setProperty;O.CSSStyleDeclaration.prototype.setProperty=function(I,x,P){var L,B,U=R.getId((B=(L=this.parentRule)===null||L===void 0?void 0:L.parentStyleSheet)===null||B===void 0?void 0:B.ownerNode);return U!==-1&&y({id:U,set:{property:I,value:x,priority:P},index:Ua(this.parentRule)}),A.apply(this,arguments)};var D=O.CSSStyleDeclaration.prototype.removeProperty;return O.CSSStyleDeclaration.prototype.removeProperty=function(I){var x,P,L=R.getId((P=(x=this.parentRule)===null||x===void 0?void 0:x.parentStyleSheet)===null||P===void 0?void 0:P.ownerNode);return L!==-1&&y({id:L,remove:{property:I},index:Ua(this.parentRule)}),D.apply(this,arguments)},function(){O.CSSStyleDeclaration.prototype.setProperty=A,O.CSSStyleDeclaration.prototype.removeProperty=D}}(t,{win:o}),_=t.collectFonts?function(g){var T=g.fontCb,y=g.doc,R=y.defaultView;if(!R)return function(){};var O=[],A=new WeakMap,D=R.FontFace;R.FontFace=function(x,P,L){var B=new D(x,P,L);return A.set(B,{family:x,buffer:typeof P!="string",descriptors:L,fontSource:typeof P=="string"?P:JSON.stringify(Array.from(new Uint8Array(P)))}),B};var I=po(y.fonts,"add",function(x){return function(P){return setTimeout(function(){var L=A.get(P);L&&(T(L),A.delete(P))},0),x.apply(this,[P])}});return O.push(function(){R.FontFace=D}),O.push(I),function(){O.forEach(function(x){return x()})}}(t):function(){},f=[];try{for(var m=qn(t.plugins),E=m.next();!E.done;E=m.next()){var S=E.value;f.push(S.observer(S.callback,o,S.options))}}catch(g){n={error:g}}finally{try{E&&!E.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return function(){vr.forEach(function(g){return g.reset()}),i.disconnect(),s(),a(),u(),c(),l(),d(),p(),h(),_(),f.forEach(function(g){return g()})}}for(var hV=function(){function t(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}return t.prototype.addIframe=function(e){this.iframes.set(e,!0)},t.prototype.addLoadListener=function(e){this.loadListener=e},t.prototype.attachIframe=function(e,n){var r;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,e)},t}(),fV=function(){function t(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;var n=this;this.restorePatches.push(po(HTMLElement.prototype,"attachShadow",function(r){return function(){var o=r.apply(this,arguments);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),o}}))}return t.prototype.addShadowRoot=function(e,n){Qb(At(At({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),tR(At(At({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))},t.prototype.observeAttachShadow=function(e){if(e.contentWindow){var n=this;this.restorePatches.push(po(e.contentWindow.HTMLElement.prototype,"attachShadow",function(r){return function(){var o=r.apply(this,arguments);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,e.contentDocument),o}}))}}
36,t.prototype.reset=function(){this.restorePatches.forEach(function(e){return e()})},t}(),Ii="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_V=typeof Uint8Array>"u"?[]:new Uint8Array(256),xa=0;xa<64;xa++)_V[Ii.charCodeAt(xa)]=xa;var rR=new Map,oR=function(t,e,n){if(t&&(iR(t,e)||typeof t=="object")){var r=function(i,s){var a=rR.get(i);return a||(a=new Map,rR.set(i,a)),a.has(s)||a.set(s,[]),a.get(s)}(n,t.constructor.name),o=r.indexOf(t);return o===-1&&(o=r.length,r.push(t)),o}};function ka(t,e,n){if(t instanceof Array)return t.map(function(i){return ka(i,e,n)});if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){var r=t.constructor.name,o=function(i){var s,a=new Uint8Array(i),u=a.length,c="";for(s=0;s<u;s+=3)c+=Ii[a[s]>>2],c+=Ii[(3&a[s])<<4|a[s+1]>>4],c+=Ii[(15&a[s+1])<<2|a[s+2]>>6],c+=Ii[63&a[s+2]];return u%3==2?c=c.substring(0,c.length-1)+"=":u%3==1&&(c=c.substring(0,c.length-2)+"=="),c}(t);return{rr_type:r,base64:o}}return t instanceof DataView?{rr_type:t.constructor.name,args:[ka(t.buffer,e,n),t.byteOffset,t.byteLength]}:t instanceof HTMLImageElement?{rr_type:t.constructor.name,src:t.src}:t instanceof ImageData?{rr_type:t.constructor.name,args:[ka(t.data,e,n),t.width,t.height]}:iR(t,e)||typeof t=="object"?{rr_type:t.constructor.name,index:oR(t,e,n)}:t}var EV=function(t,e,n){return X([],K(t),!1).map(function(r){return ka(r,e,n)})},iR=function(t,e){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(r){return typeof e[r]=="function"});return!!n.find(function(r){return t instanceof e[r]})};function sR(t,e,n,r,o,i){var s,a,u=[],c=Object.getOwnPropertyNames(t),l=function(h){try{if(typeof t[h]!="function")return"continue";var _=po(t,h,function(m){return function(){for(var E=[],S=0;S<arguments.length;S++)E[S]=arguments[S];var g=m.apply(this,E);if(oR(g,i,t),!oe(this.canvas,r)){o.getId(this.canvas);var T=EV(X([],K(E),!1),i,t),y={type:e,property:h,args:T};n(this.canvas,y)}return g}});u.push(_)}catch{var f=Pa(t,h,{set:function(E){n(this.canvas,{type:e,property:h,args:[E],setter:!0})}});u.push(f)}};try{for(var d=qn(c),p=d.next();!p.done;p=d.next())l(p.value)}catch(h){s={error:h}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(s)throw s.error}}return u}var Dt,Ci,mV=function(){function t(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(n,r){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(n)||this.pendingCanvasMutations.set(n,[]),this.pendingCanvasMutations.get(n).push(r)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,e.recordCanvas===!0&&this.initCanvasMutationObserver(e.win,e.blockClass)}return t.prototype.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.prototype.freeze=function(){this.frozen=!0},t.prototype.unfreeze=function(){this.frozen=!1},t.prototype.lock=function(){this.locked=!0},t.prototype.unlock=function(){this.locked=!1},t.prototype.initCanvasMutationObserver=function(e,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r=function(s,a){var u=[];try{var c=po(s.HTMLCanvasElement.prototype,"getContext",function(l){return function(d){for(var p=[],h=1;h<arguments.length;h++)p[h-1]=arguments[h];return oe(this,a)||"__context"in this||(this.__context=d),l.apply(this,X([d],K(p),!1))}});u.push(c)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){u.forEach(function(l){return l()})}}(e,n),o=function(s,a,u,c){var l,d,p=[],h=Object.getOwnPropertyNames(a.CanvasRenderingContext2D.prototype),_=function(E){try{if(typeof a.CanvasRenderingContext2D.prototype[E]!="function")return"continue";var S=po(a.CanvasRenderingContext2D.prototype,E,function(T){return function(){for(var y=this,R=[],O=0;O<arguments.length;O++)R[O]=arguments[O];return oe(this.canvas,u)||setTimeout(function(){var A=X([],K(R),!1);if(E==="drawImage"&&A[0]&&A[0]instanceof HTMLCanvasElement){var D=A[0],I=D.getContext("2d"),x=I==null?void 0:I.getImageData(0,0,D.width,D.height),P=x==null?void 0:x.data;A[0]=JSON.stringify(P)}s(y.canvas,{type:uo["2D"],property:E,args:A})},0),T.apply(this,R)}});p.push(S)}catch{var g=Pa(a.CanvasRenderingContext2D.prototype,E,{set:function(y){s(this.canvas,{type:uo["2D"],property:E,args:[y],setter:!0})}});p.push(g)}};try{for(var f=qn(h),m=f.next();!m.done;m=f.next())_(m.value)}catch(E){l={error:E}}finally{try{m&&!m.done&&(d=f.return)&&d.call(f)}finally{if(l)throw l.error}}return function(){p.forEach(function(E){return E()})}}(this.processMutation.bind(this),e,n,this.mirror),i=function(s,a,u,c){var l=[];return l.push.apply(l,X([],K(sR(a.WebGLRenderingContext.prototype,uo.WebGL,s,u,c,a)),!1)),a.WebGL2RenderingContext!==void 0&&l.push.apply(l,X([],K(sR(a.WebGL2RenderingContext.prototype,uo.WebGL2,s,u,c,a)),!1)),function(){l.forEach(function(d){return d()})}}(this.processMutation.bind(this),e,n,this.mirror);this.resetObservers=function(){r(),o(),i()}},t.prototype.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.prototype.startRAFTimestamping=function(){var e=this,n=function(r){e.rafStamps.latestId=r,requestAnimationFrame(n)};requestAnimationFrame(n)},t.prototype.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(n,r){var o=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,o)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.prototype.flushPendingCanvasMutationFor=function(e,n){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&n!==-1){var o=r.map(function(s){s.type;var a=function(u,c){var l={};for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&c.indexOf(d)<0&&(l[d]=u[d]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function"){var p=0;for(d=Object.getOwnPropertySymbols(u);p<d.length;p++)c.indexOf(d[p])<0&&Object.prototype.propertyIsEnumerable.call(u,d[p])&&(l[d[p]]=u[d[p]])}return l}(s,["type"]);return a}),i=r[0].type;this.mutationCb({id:n,type:i,commands:o}),this.pendingCanvasMutations.delete(e)}}},t}();function Ft(t){return At(At({},t),{timestamp:Date.now()})}var Mi={map:{},getId:function(t){return t&&t.__sn?t.__sn.id:-1},getNode:function(t){return this.map[t]||null},removeNodeFromMap:function(t){var e=this,n=t.__sn&&t.__sn.id;
36delete this.map[n],t.childNodes&&t.childNodes.forEach(function(r){return e.removeNodeFromMap(r)})},has:function(t){return this.map.hasOwnProperty(t)},reset:function(){this.map={}}};function Cn(t){t===void 0&&(t={});var e=t.emit,n=t.checkoutEveryNms,r=t.checkoutEveryNth,o=t.blockClass,i=o===void 0?"rr-block":o,s=t.blockSelector,a=s===void 0?null:s,u=t.ignoreClass,c=u===void 0?"rr-ignore":u,l=t.maskTextClass,d=l===void 0?"rr-mask":l,p=t.maskTextSelector,h=p===void 0?null:p,_=t.inlineStylesheet,f=_===void 0||_,m=t.maskAllInputs,E=t.maskInputOptions,S=t.slimDOMOptions,g=t.maskInputFn,T=t.maskTextFn,y=t.hooks,R=t.packFn,O=t.sampling,A=O===void 0?{}:O,D=t.mousemoveWait,I=t.recordCanvas,x=I!==void 0&&I,P=t.userTriggeredOnInput,L=P!==void 0&&P,B=t.collectFonts,U=B!==void 0&&B,w=t.inlineImages,N=w!==void 0&&w,V=t.plugins,j=t.keepIframeSrcFn,It=j===void 0?function(){return!1}:j;if(!e)throw new Error("emit function is required");D!==void 0&&A.mousemove===void 0&&(A.mousemove=D);var z,bt,vt=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:E!==void 0?E:{password:!0},ct=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all"}:S||{};z===void 0&&(z=window),"NodeList"in z&&!z.NodeList.prototype.forEach&&(z.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in z&&!z.DOMTokenList.prototype.forEach&&(z.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(W){if(!(0 in arguments))throw new TypeError("1 argument is required");do if(this===W)return!0;while(W=W&&W.parentNode);return!1});var M=0;Dt=function(W,Ln){var at;if(!(!((at=vr[0])===null||at===void 0)&&at.isFrozen())||W.type===mt.FullSnapshot||W.type===mt.IncrementalSnapshot&&W.data.source===Vt.Mutation||vr.forEach(function(dn){return dn.unfreeze()}),e(function(dn){var bo,Ha;try{for(var Ut=qn(V||[]),Pn=Ut.next();!Pn.done;Pn=Ut.next()){var Mt=Pn.value;Mt.eventProcessor&&(dn=Mt.eventProcessor(dn))}}catch(Ya){bo={error:Ya}}finally{try{Pn&&!Pn.done&&(Ha=Ut.return)&&Ha.call(Ut)}finally{if(bo)throw bo.error}}return R&&(dn=R(dn)),dn}(W),Ln),W.type===mt.FullSnapshot)bt=W,M=0;else if(W.type===mt.IncrementalSnapshot){if(W.data.source===Vt.Mutation&&W.data.isAttachIframe)return;M++;var Dn=r&&M>=r,Fi=n&&W.timestamp-bt.timestamp>n;(Dn||Fi)&&Ci(!0)}};var st=function(W){Dt(Ft({type:mt.IncrementalSnapshot,data:At({source:Vt.Mutation},W)}))},Me=function(W){return Dt(Ft({type:mt.IncrementalSnapshot,data:At({source:Vt.Scroll},W)}))},J=function(W){return Dt(Ft({type:mt.IncrementalSnapshot,data:At({source:Vt.CanvasMutation},W)}))},_t=new hV({mutationCb:st}),Pt=new mV({recordCanvas:x,mutationCb:J,win:window,blockClass:i,mirror:Mi}),Ct=new fV({mutationCb:st,scrollCb:Me,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:d,maskTextSelector:h,inlineStylesheet:f,maskInputOptions:vt,maskTextFn:T,maskInputFn:g,recordCanvas:x,inlineImages:N,sampling:A,slimDOMOptions:ct,iframeManager:_t,canvasManager:Pt},mirror:Mi});Ci=function(W){var Ln,at,Dn,Fi;W===void 0&&(W=!1),Dt(Ft({type:mt.Meta,data:{href:window.location.href,width:Gb(),height:Fb()}}),W),vr.forEach(function(Ut){return Ut.lock()});var dn=K(function(Ut,Pn){var Mt=Pn||{},Ya=Mt.blockClass,KV=Ya===void 0?"rr-block":Ya,hO=Mt.blockSelector,JV=hO===void 0?null:hO,fO=Mt.maskTextClass,XV=fO===void 0?"rr-mask":fO,_O=Mt.maskTextSelector,ZV=_O===void 0?null:_O,EO=Mt.inlineStylesheet,QV=EO===void 0||EO,mO=Mt.inlineImages,t2=mO!==void 0&&mO,gO=Mt.recordCanvas,e2=gO!==void 0&&gO,SO=Mt.maskAllInputs,qd=SO!==void 0&&SO,n2=Mt.maskTextFn,r2=Mt.maskInputFn,TO=Mt.slimDOM,Gi=TO!==void 0&&TO,o2=Mt.dataURLOptions,i2=Mt.preserveWhiteSpace,s2=Mt.onSerialize,a2=Mt.onIframeLoad,c2=Mt.iframeLoadTimeout,vO=Mt.keepIframeSrcFn,yO={};return[Ri(Ut,{doc:Ut,map:yO,blockClass:KV,blockSelector:JV,maskTextClass:XV,maskTextSelector:ZV,skipChild:!1,inlineStylesheet:QV,maskInputOptions:qd===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:qd===!1?{password:!0}:qd,maskTextFn:n2,maskInputFn:r2,slimDOMOptions:Gi===!0||Gi==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:Gi==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
36:Gi===!1?{}:Gi,dataURLOptions:o2,inlineImages:t2,recordCanvas:e2,preserveWhiteSpace:i2,onSerialize:s2,onIframeLoad:a2,iframeLoadTimeout:c2,keepIframeSrcFn:vO===void 0?function(){return!1}:vO}),yO]}(document,{blockClass:i,blockSelector:a,maskTextClass:d,maskTextSelector:h,inlineStylesheet:f,maskAllInputs:vt,maskTextFn:T,slimDOM:ct,recordCanvas:x,inlineImages:N,onSerialize:function(Ut){Yb(Ut)&&_t.addIframe(Ut),$b(Ut)&&Ct.addShadowRoot(Ut.shadowRoot,document)},onIframeLoad:function(Ut,Pn){_t.attachIframe(Ut,Pn),Ct.observeAttachShadow(Ut)},keepIframeSrcFn:It}),2),bo=dn[0],Ha=dn[1];if(!bo)return console.warn("Failed to snapshot the document");Mi.map=Ha,Dt(Ft({type:mt.FullSnapshot,data:{node:bo,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:(document==null?void 0:document.documentElement.scrollLeft)||((at=(Ln=document==null?void 0:document.body)===null||Ln===void 0?void 0:Ln.parentElement)===null||at===void 0?void 0:at.scrollLeft)||(document==null?void 0:document.body.scrollLeft)||0,top:window.pageYOffset!==void 0?window.pageYOffset:(document==null?void 0:document.documentElement.scrollTop)||((Fi=(Dn=document==null?void 0:document.body)===null||Dn===void 0?void 0:Dn.parentElement)===null||Fi===void 0?void 0:Fi.scrollTop)||(document==null?void 0:document.body.scrollTop)||0}}})),vr.forEach(function(Ut){return Ut.unlock()})};try{var ft=[];ft.push(fe("DOMContentLoaded",function(){Dt(Ft({type:mt.DomContentLoaded,data:{}}))}));var un=function(W){var Ln;return pV({mutationCb:st,mousemoveCb:function(at,Dn){return Dt(Ft({type:mt.IncrementalSnapshot,data:{source:Dn,positions:at}}))},mouseInteractionCb:function(at){return Dt(Ft({type:mt.IncrementalSnapshot,data:At({source:Vt.MouseInteraction},at)}))},scrollCb:Me,viewportResizeCb:function(at){return Dt(Ft({type:mt.IncrementalSnapshot,data:At({source:Vt.ViewportResize},at)}))},inputCb:function(at){return Dt(Ft({type:mt.IncrementalSnapshot,data:At({source:Vt.Input},at)}))},mediaInteractionCb:function(at){return Dt(Ft({type:mt.IncrementalSnapshot,data:At({source:Vt.MediaInteraction},at)}))},styleSheetRuleCb:function(at){return Dt(Ft({type:mt.IncrementalSnapshot,data:At({source:Vt.StyleSheetRule},at)}))},styleDeclarationCb:function(at){return Dt(Ft({type:mt.IncrementalSnapshot,data:At({source:Vt.StyleDeclaration},at)}))},canvasMutationCb:J,fontCb:function(at){return Dt(Ft({type:mt.IncrementalSnapshot,data:At({source:Vt.Font},at)}))},blockClass:i,ignoreClass:c,maskTextClass:d,maskTextSelector:h,maskInputOptions:vt,inlineStylesheet:f,sampling:A,recordCanvas:x,inlineImages:N,userTriggeredOnInput:L,collectFonts:U,doc:W,maskInputFn:g,maskTextFn:T,blockSelector:a,slimDOMOptions:ct,mirror:Mi,iframeManager:_t,shadowDomManager:Ct,canvasManager:Pt,plugins:((Ln=V==null?void 0:V.filter(function(at){return at.observer}))===null||Ln===void 0?void 0:Ln.map(function(at){return{observer:at.observer,options:at.options,callback:function(Dn){return Dt(Ft({type:mt.Plugin,data:{plugin:at.name,payload:Dn}}))}}}))||[]},y)};_t.addLoadListener(function(W){ft.push(un(W.contentDocument))});var ln=function(){Ci(),ft.push(un(document))};return document.readyState==="interactive"||document.readyState==="complete"?ln():ft.push(fe("load",function(){Dt(Ft({type:mt.Load,data:{}})),ln()},window)),function(){ft.forEach(function(W){return W()})}}catch(W){console.warn(W)}}Cn.addCustomEvent=function(t,e){if(!Dt)throw new Error("please add custom event after start recording");Dt(Ft({type:mt.Custom,data:{tag:t,payload:e}}))},Cn.freezePage=function(){vr.forEach(function(t){return t.freeze()})},Cn.takeFullSnapshot=function(t){if(!Ci)throw new Error("please take full snapshot after start recording");Ci(t)},Cn.mirror=Mi;var an=Uint8Array,_e=Uint16Array,Ba=Uint32Array,Rd=new an([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Od=new an([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),aR=new an([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),cR=function(t,e){for(var n=new _e(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];var o=new Ba(n[30]);for(r=1;r<30;++r)for(var i=n[r];i<n[r+1];++i)o[i]=i-n[r]<<5|r;return[n,o]},uR=cR(Rd,2),gV=uR[0],Nd=uR[1];gV[28]=258,Nd[258]=28;for(var lR=cR(Od,0)[1],dR=new _e(32768),ht=0;ht<32768;++ht){var yr=(43690&ht)>>>1|(21845&ht)<<1;yr=(61680&(yr=(52428&yr)>>>2|(13107&yr)<<2))>>>4|(3855&yr)<<4,dR[ht]=((65280&yr)>>>
vendor: 5,339 bytes, line 36
368|(255&yr)<<8)>>>1}var wi=function(t,e,n){for(var r=t.length,o=0,i=new _e(e);o<r;++o)t[o]&&++i[t[o]-1];var s,a=new _e(e);for(o=0;o<e;++o)a[o]=a[o-1]+i[o-1]<<1;for(s=new _e(r),o=0;o<r;++o)t[o]&&(s[o]=dR[a[t[o]-1]++]>>>15-t[o]);return s},Ar=new an(288);for(ht=0;ht<144;++ht)Ar[ht]=8;for(ht=144;ht<256;++ht)Ar[ht]=9;for(ht=256;ht<280;++ht)Ar[ht]=7;for(ht=280;ht<288;++ht)Ar[ht]=8;var Va=new an(32);for(ht=0;ht<32;++ht)Va[ht]=5;var SV=wi(Ar,9),TV=wi(Va,5),pR=function(t){return(t+7)/8|0},Mn=function(t,e,n){n<<=7&e;var r=e/8|0;t[r]|=n,t[r+1]|=n>>>8},Li=function(t,e,n){n<<=7&e;var r=e/8|0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},Id=function(t,e){for(var n=[],r=0;r<t.length;++r)t[r]&&n.push({s:r,f:t[r]});var o=n.length,i=n.slice();if(!o)return[ER,0];if(o==1){var s=new an(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort(function(y,R){return y.f-R.f}),n.push({s:-1,f:25001});var a=n[0],u=n[1],c=0,l=1,d=2;for(n[0]={s:-1,f:a.f+u.f,l:a,r:u};l!=o-1;)a=n[n[c].f<n[d].f?c++:d++],u=n[c!=l&&n[c].f<n[d].f?c++:d++],n[l++]={s:-1,f:a.f+u.f,l:a,r:u};var p=i[0].s;for(r=1;r<o;++r)i[r].s>p&&(p=i[r].s);var h=new _e(p+1),_=Cd(n[l-1],h,0);if(_>e){r=0;var f=0,m=_-e,E=1<<m;for(i.sort(function(y,R){return h[R.s]-h[y.s]||y.f-R.f});r<o;++r){var S=i[r].s;if(!(h[S]>e))break;f+=E-(1<<_-h[S]),h[S]=e}for(f>>>=m;f>0;){var g=i[r].s;h[g]<e?f-=1<<e-h[g]++-1:++r}for(;r>=0&&f;--r){var T=i[r].s;h[T]==e&&(--h[T],++f)}_=e}return[new an(h),_]},Cd=function(t,e,n){return t.s==-1?Math.max(Cd(t.l,e,n+1),Cd(t.r,e,n+1)):e[t.s]=n},hR=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new _e(++e),r=0,o=t[0],i=1,s=function(u){n[r++]=u},a=1;a<=e;++a)if(t[a]==o&&a!=e)++i;else{if(!o&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(o),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(o);i=1,o=t[a]}return[n.subarray(0,r),e]},Di=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},fR=function(t,e,n){var r=n.length,o=pR(e+2);t[o]=255&r,t[o+1]=r>>>8,t[o+2]=255^t[o],t[o+3]=255^t[o+1];for(var i=0;i<r;++i)t[o+i+4]=n[i];return 8*(o+4+r)},_R=function(t,e,n,r,o,i,s,a,u,c,l){Mn(e,l++,n),++o[256];for(var d=Id(o,15),p=d[0],h=d[1],_=Id(i,15),f=_[0],m=_[1],E=hR(p),S=E[0],g=E[1],T=hR(f),y=T[0],R=T[1],O=new _e(19),A=0;A<S.length;++A)O[31&S[A]]++;for(A=0;A<y.length;++A)O[31&y[A]]++;for(var D=Id(O,7),I=D[0],x=D[1],P=19;P>4&&!I[aR[P-1]];--P);var L,B,U,w,N=c+5<<3,V=Di(o,Ar)+Di(i,Va)+s,j=Di(o,p)+Di(i,f)+s+14+3*P+Di(O,I)+(2*O[16]+3*O[17]+7*O[18]);if(N<=V&&N<=j)return fR(e,l,t.subarray(u,u+c));if(Mn(e,l,1+(j<V)),l+=2,j<V){L=wi(p,h),B=p,U=wi(f,m),w=f;var It=wi(I,x);for(Mn(e,l,g-257),Mn(e,l+5,R-1),Mn(e,l+10,P-4),l+=14,A=0;A<P;++A)Mn(e,l+3*A,I[aR[A]]);l+=3*P;for(var z=[S,y],bt=0;bt<2;++bt){var vt=z[bt];for(A=0;A<vt.length;++A){var ct=31&vt[A];Mn(e,l,It[ct]),l+=I[ct],ct>15&&(Mn(e,l,vt[A]>>>5&127),l+=vt[A]>>>12)}}}else L=SV,B=Ar,U=TV,w=Va;for(A=0;A<a;++A)if(r[A]>255){ct=r[A]>>>18&31,Li(e,l,L[ct+257]),l+=B[ct+257],ct>7&&(Mn(e,l,r[A]>>>23&31),l+=Rd[ct]);var M=31&r[A];Li(e,l,U[M]),l+=w[M],M>3&&(Li(e,l,r[A]>>>5&8191),l+=Od[M])}else Li(e,l,L[r[A]]),l+=B[r[A]];return Li(e,l,L[256]),l+B[256]},vV=new Ba([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ER=new an(0),yV=function(t,e,n,r,o,i){var s=t.length,a=new an(r+s+5*(1+Math.ceil(s/7e3))+o),u=a.subarray(r,a.length-o),c=0;if(!e||s<8)for(var l=0;l<=s;l+=65535){var d=l+65535;d>=s&&(u[c>>3]=i),c=fR(u,c+1,t.subarray(l,d))}else{for(var p=vV[e-1],h=p>>>13,_=8191&p,f=(1<<n)-1,m=new _e(32768),E=new _e(f+1),S=Math.ceil(n/3),g=2*S,T=function(ft){return(t[ft]^t[ft+1]<<S^t[ft+2]<<g)&f},y=new Ba(25e3),R=new _e(288),O=new _e(32),A=0,D=0,I=(l=0,0),x=0,P=0;l<s;++l){var L=T(l),B=32767&l,U=E[L];if(m[B]=U,E[L]=B,x<=l){var w=s-l;if((A>7e3||I>24576)&&w>423){c=_R(t,u,0,y,R,O,D,I,P,l-P,c),I=A=D=0,P=l;for(var N=0;N<286;++N)R[N]=0;for(N=0;N<30;++N)O[N]=0}var V=2,j=0,It=_,z=B-U&32767;if(w>2&&L==T(l-z))for(var bt=Math.min(h,w)-1,vt=Math.min(32767,l),ct=Math.min(258,w);z<=vt&&--It&&B!=U;){if(t[l+V]==t[l+V-z]){for(var M=0;M<ct&&t[l+M]==t[l+M-z];++M);if(M>V){if(V=M,j=z,M>bt)break;var st=Math.min(z,M-2),Me=0;for(N=0;N<st;++N){var J=l-z+N+32768&32767,_t=J-m[J]+32768&32767;_t>Me&&(Me=_t,U=J)}}}z+=(B=U)-(U=m[B])+32768&32767}if(j){y[I++]=268435456|Nd[V]<<18|lR[j];var Pt=31&Nd[V],Ct=31&lR[j];D+=Rd[Pt]+Od[Ct],++R[257+Pt],++O[Ct],x=l+V,++A}else y[I++]=t[l],++R[t[l]]}}c=_R(t,u,i,y,R,O,D,I,P,l-P,c)}return function(ft,un,ln){(ln==null||ln>ft.length)&&(ln=ft.length);var W=new(ft.BYTES_PER_ELEMENT==2?_e:ft.BYTES_PER_ELEMENT==4?Ba:an)(ln-un);return W.set(ft.subarray(un,ln)),W}(a,0,r+pR(c)+o)},AV=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var n=e,r=9;--r;)n=(1&n&&-306674912)^n>>>1;t[e]=n}return t}(),Md=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8};function bV(t,e){e||(e={});var n=function(){var l=-1;return{p:function(d){for(var p=l,h=0;h<d.length;++h)p=AV[255&p^d[h]]^p>>>8;l=p},d:function(){return~l}}}(),r=t.length;n.p(t);var o,i,s,a,u=(o=t,i=e,s=function(l){return 10+(l.filename&&l.filename.length+1||0)}(e),a=8,yV(o,i.level==null?6:i.level,i.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(o.length)))):12+i.mem,s,a,!0)),c=u.length;return function(l,d){var p=d.filename;if(l[0]=31,l[1]=139,l[2]=8,l[8]=d.level<2?4:d.level==9?2:0,l[9]=3,d.mtime!=0&&Md(l,4,Math.floor(new Date(d.mtime||Date.now())/1e3)),p){l[3]=8;for(var h=0;h<=p.length;
36++h)l[h+10]=p.charCodeAt(h)}}(u,e),Md(u,c-8,n.d()),Md(u,c-4,r),u}var RV=typeof TextDecoder<"u"&&new TextDecoder;try{RV.decode(ER,{stream:!0})}catch{}/** 37 * @license 38 * Copyright 2009 The Closure Library Authors 39 * Copyright 2020 Daniel Wirtz / The long.js Authors. 40 * 41 * Licensed under the Apache License, Version 2.0 (the "License"); 42 * you may not use this file except in compliance with the License. 43 * You may obtain a copy of the License at 44 * 45 * http://www.apache.org/licenses/LICENSE-2.0 46 * 47 * Unless required by applicable law or agreed to in writing, software 48 * distributed under the License is distributed on an "AS IS" BASIS, 49 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 50 * See the License for the specific language governing permissions and 51 * limitations under the License. 52 * 53 * SPDX-License-Identifier: Apache-2.0 54 */var Oe=null;try{Oe=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function it(t,e,n){this.low=0|t,this.high=0|e,this.unsigned=!!n}function Yt(t){return(t&&t.__isLong__)===!0}function mR(t){var e=Math.clz32(t&-t);return t?31-e:e}it.prototype.__isLong__,Object.defineProperty(it.prototype,"__isLong__",{value:!0}),it.isLong=Yt;var gR={},SR={};function br(t,e){var n,r,o;return e?(o=0<=(t>>>=0)&&t<256)&&(r=SR[t])?r:(n=nt(t,0,!0),o&&(SR[t]=n),n):(o=-128<=(t|=0)&&t<128)&&(r=gR[t])?r:(n=nt(t,t<0?-1:0,!1),o&&(gR[t]=n),n)}function Ne(t,e){if(isNaN(t))return e?wn:$e;if(e){if(t<0)return wn;if(t>=TR)return bR}else{if(t<=-9223372036854776e3)return ie;if(t+1>=OV)return AR}return t<0?Ne(-t,e).neg():nt(t%ho|0,t/ho|0,e)}function nt(t,e,n){return new it(t,e,n)}it.fromInt=br,it.fromNumber=Ne,it.fromBits=nt;var Fa=Math.pow;function wd(t,e,n){if(t.length===0)throw Error("empty string");if(typeof e=="number"?(n=e,e=!1):e=!!e,t==="NaN"||t==="Infinity"||t==="+Infinity"||t==="-Infinity")return e?wn:$e;if((n=n||10)<2||36<n)throw RangeError("radix");var r;if((r=t.indexOf("-"))>0)throw Error("interior hyphen");if(r===0)return wd(t.substring(1),e,n).neg();for(var o=Ne(Fa(n,8)),i=$e,s=0;s<t.length;s+=8){var a=Math.min(8,t.length-s),u=parseInt(t.substring(s,s+a),n);if(a<8){var c=Ne(Fa(n,a));i=i.mul(c).add(Ne(u))}else i=(i=i.mul(o)).add(Ne(u))}return i.unsigned=e,i}function Ye(t,e){return typeof t=="number"?Ne(t,e):typeof t=="string"?wd(t,e):nt(t.low,t.high,typeof e=="boolean"?e:t.unsigned)}it.fromString=wd,it.fromValue=Ye;var ho=4294967296,TR=ho*ho,OV=TR/2,vR=br(1<<24),$e=br(0);it.ZERO=$e;var wn=br(0,!0);it.UZERO=wn;var fo=br(1);it.ONE=fo;var yR=br(1,!0);it.UONE=yR;var Ld=br(-1);it.NEG_ONE=Ld;var AR=nt(-1,2147483647,!1);it.MAX_VALUE=AR;var bR=nt(-1,-1,!0);it.MAX_UNSIGNED_VALUE=bR;var ie=nt(0,-2147483648,!1);it.MIN_VALUE=ie;var C=it.prototype;C.toInt=function(){return this.unsigned?this.low>>>0:this.low},C.toNumber=function(){return this.unsigned?(this.high>>>0)*ho+(this.low>>>0):this.high*ho+(this.low>>>0)},C.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(ie)){var e=Ne(t),n=this.div(e),r=n.mul(e).sub(this);return n.toString(t)+r.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var o=Ne(Fa(t,6),this.unsigned),i=this,s="";;){var a=i.div(o),u=(i.sub(a.mul(o)).toInt()>>>0).toString(t);if((i=a).isZero())return u+s;for(;u.length<6;)u="0"+u;s=""+u+s}},C.getHighBits=function(){return this.high},C.getHighBitsUnsigned=function(){return this.high>>>0},C.getLowBits=function(){return this.low},C.getLowBitsUnsigned=function(){return this.low>>>0},C.getNumBitsAbs=function(){if(this.isNegative())return this.eq(ie)?64:this.neg().getNumBitsAbs();for(var t=this.high!=0?this.high:this.low,e=31;e>0&&!(t&1<<e);e--);return this.high!=0?e+33:e+1},C.isZero=function(){return this.high===0&&this.low===0},C.eqz=C.isZero,C.isNegative=function(){return!this.unsigned&&this.high<0},C.isPositive=function(){return this.unsigned||this.high>=0},C.isOdd=function(){return!(1&~this.low)},C.isEven=function(){return!(1&this.low)},C.equals=function(t){return Yt(t)||(t=Ye(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&this.high===t.high&&this.low===t.low},C.eq=C.equals,C.notEquals=function(t){return!this.eq(t)},C.neq=C.notEquals,C.ne=C.notEquals,C.lessThan=function(t){return this.comp(t)<0},C.lt=C.lessThan,C.lessThanOrEqual=function(t){return this.comp(t)<=0},C.lte=C.lessThanOrEqual,C.le=C.lessThanOrEqual,C.greaterThan=function(t){return this.comp(t)>0}
vendor: 4,361 bytes, line 54
54,C.gt=C.greaterThan,C.greaterThanOrEqual=function(t){return this.comp(t)>=0},C.gte=C.greaterThanOrEqual,C.ge=C.greaterThanOrEqual,C.compare=function(t){if(Yt(t)||(t=Ye(t)),this.eq(t))return 0;var e=this.isNegative(),n=t.isNegative();return e&&!n?-1:!e&&n?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},C.comp=C.compare,C.negate=function(){return!this.unsigned&&this.eq(ie)?ie:this.not().add(fo)},C.neg=C.negate,C.add=function(t){Yt(t)||(t=Ye(t));var e=this.high>>>16,n=65535&this.high,r=this.low>>>16,o=65535&this.low,i=t.high>>>16,s=65535&t.high,a=t.low>>>16,u=0,c=0,l=0,d=0;return l+=(d+=o+(65535&t.low))>>>16,c+=(l+=r+a)>>>16,u+=(c+=n+s)>>>16,u+=e+i,nt((l&=65535)<<16|(d&=65535),(u&=65535)<<16|(c&=65535),this.unsigned)},C.subtract=function(t){return Yt(t)||(t=Ye(t)),this.add(t.neg())},C.sub=C.subtract,C.multiply=function(t){if(this.isZero())return this;if(Yt(t)||(t=Ye(t)),Oe)return nt(Oe.mul(this.low,this.high,t.low,t.high),Oe.get_high(),this.unsigned);if(t.isZero())return this.unsigned?wn:$e;if(this.eq(ie))return t.isOdd()?ie:$e;if(t.eq(ie))return this.isOdd()?ie:$e;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(vR)&&t.lt(vR))return Ne(this.toNumber()*t.toNumber(),this.unsigned);var e=this.high>>>16,n=65535&this.high,r=this.low>>>16,o=65535&this.low,i=t.high>>>16,s=65535&t.high,a=t.low>>>16,u=65535&t.low,c=0,l=0,d=0,p=0;return d+=(p+=o*u)>>>16,l+=(d+=r*u)>>>16,d&=65535,l+=(d+=o*a)>>>16,c+=(l+=n*u)>>>16,l&=65535,c+=(l+=r*a)>>>16,l&=65535,c+=(l+=o*s)>>>16,c+=e*u+n*a+r*s+o*i,nt((d&=65535)<<16|(p&=65535),(c&=65535)<<16|(l&=65535),this.unsigned)},C.mul=C.multiply,C.divide=function(t){if(Yt(t)||(t=Ye(t)),t.isZero())throw Error("division by zero");var e,n,r;if(Oe)return this.unsigned||this.high!==-2147483648||t.low!==-1||t.high!==-1?nt((this.unsigned?Oe.div_u:Oe.div_s)(this.low,this.high,t.low,t.high),Oe.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?wn:$e;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return wn;if(t.gt(this.shru(1)))return yR;r=wn}else{if(this.eq(ie))return t.eq(fo)||t.eq(Ld)?ie:t.eq(ie)?fo:(e=this.shr(1).div(t).shl(1)).eq($e)?t.isNegative()?fo:Ld:(n=this.sub(t.mul(e)),r=e.add(n.div(t)));if(t.eq(ie))return this.unsigned?wn:$e;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();r=$e}for(n=this;n.gte(t);){e=Math.max(1,Math.floor(n.toNumber()/t.toNumber()));for(var o=Math.ceil(Math.log(e)/Math.LN2),i=o<=48?1:Fa(2,o-48),s=Ne(e),a=s.mul(t);a.isNegative()||a.gt(n);)a=(s=Ne(e-=i,this.unsigned)).mul(t);s.isZero()&&(s=fo),r=r.add(s),n=n.sub(a)}return r},C.div=C.divide,C.modulo=function(t){return Yt(t)||(t=Ye(t)),Oe?nt((this.unsigned?Oe.rem_u:Oe.rem_s)(this.low,this.high,t.low,t.high),Oe.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},C.mod=C.modulo,C.rem=C.modulo,C.not=function(){return nt(~this.low,~this.high,this.unsigned)},C.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},C.clz=C.countLeadingZeros,C.countTrailingZeros=function(){return this.low?mR(this.low):mR(this.high)+32},C.ctz=C.countTrailingZeros,C.and=function(t){return Yt(t)||(t=Ye(t)),nt(this.low&t.low,this.high&t.high,this.unsigned)},C.or=function(t){return Yt(t)||(t=Ye(t)),nt(this.low|t.low,this.high|t.high,this.unsigned)},C.xor=function(t){return Yt(t)||(t=Ye(t)),nt(this.low^t.low,this.high^t.high,this.unsigned)},C.shiftLeft=function(t){return Yt(t)&&(t=t.toInt()),(t&=63)==0?this:t<32?nt(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):nt(0,this.low<<t-32,this.unsigned)},C.shl=C.shiftLeft,C.shiftRight=function(t){return Yt(t)&&(t=t.toInt()),(t&=63)==0?this:t<32?nt(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):nt(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},C.shr=C.shiftRight,C.shiftRightUnsigned=function(t){return Yt(t)&&(t=t.toInt()),(t&=63)==0?this:t<32?nt(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):nt(t===32?this.high:this.high>>>t-32,0,this.unsigned)},C.shru=C.shiftRightUnsigned,C.shr_u=C.shiftRightUnsigned,C.rotateLeft=function(t){var e;return Yt(t)&&(t=t.toInt()),(t&=63)==0?this:t===32?nt(this.high,this.low,this.unsigned):t<32?
54(e=32-t,nt(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned)):(e=32-(t-=32),nt(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned))},C.rotl=C.rotateLeft,C.rotateRight=function(t){var e;return Yt(t)&&(t=t.toInt()),(t&=63)==0?this:t===32?nt(this.high,this.low,this.unsigned):t<32?(e=32-t,nt(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned)):(e=32-(t-=32),nt(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned))},C.rotr=C.rotateRight,C.toSigned=function(){return this.unsigned?nt(this.low,this.high,!1):this},C.toUnsigned=function(){return this.unsigned?this:nt(this.low,this.high,!0)},C.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},C.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},C.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,e>>>24,e>>>16&255,e>>>8&255,255&e]},it.fromBytes=function(t,e,n){return n?it.fromBytesLE(t,e):it.fromBytesBE(t,e)},it.fromBytesLE=function(t,e){return new it(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,e)},it.fromBytesBE=function(t,e){return new it(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],e)};var RR,OR,NR={},IR={},CR,Dd,MR,wR,LR,DR,PR,UR={};function NV(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xR,kR,BR,Pd,VR,FR,GR={};function Rr(){return FR||(FR=1,function(t){var e=t;function n(o,i,s){for(var a=Object.keys(i),u=0;u<a.length;++u)o[a[u]]!==void 0&&s||a[u]!=="__proto__"&&(o[a[u]]=i[a[u]]);return o}function r(o){function i(s,a){if(!(this instanceof i))return new i(s,a);Object.defineProperty(this,"message",{get:function(){return s}}),Error.captureStackTrace?Error.captureStackTrace(this,i):Object.defineProperty(this,"stack",{value:new Error().stack||""}),a&&n(this,a)}return i.prototype=Object.create(Error.prototype,{constructor:{value:i,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return o},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),i}e.asPromise=(OR||(OR=1,RR=function(o,i){for(var s=new Array(arguments.length-1),a=0,u=2,c=!0;u<arguments.length;)s[a++]=arguments[u++];return new Promise(function(l,d){s[a]=function(p){if(c)if(c=!1,p)d(p);else{for(var h=new Array(arguments.length-1),_=0;_<h.length;)h[_++]=arguments[_];l.apply(null,h)}};try{o.apply(i||null,s)}catch(p){c&&(c=!1,d(p))}})}),RR),e.base64=(CR||(CR=1,function(o){var i=o;i.length=function(l){var d=l.length;if(!d)return 0;for(var p=0;--d%4>1&&l.charAt(d)==="=";)++p;return Math.ceil(3*l.length)/4-p};for(var s=new Array(64),a=new Array(123),u=0;u<64;)a[s[u]=u<26?u+65:u<52?u+71:u<62?u-4:u-59|43]=u++;i.encode=function(l,d,p){for(var h,_=null,f=[],m=0,E=0;d<p;){var S=l[d++];switch(E){case 0:f[m++]=s[S>>2],h=(3&S)<<4,E=1;break;case 1:f[m++]=s[h|S>>4],h=(15&S)<<2,E=2;break;case 2:f[m++]=s[h|S>>6],f[m++]=s[63&S],E=0}m>8191&&((_||(_=[])).push(String.fromCharCode.apply(String,f)),m=0)}return E&&(f[m++]=s[h],f[m++]=61,E===1&&(f[m++]=61)),_?(m&&_.push(String.fromCharCode.apply(String,f.slice(0,m))),_.join("")):String.fromCharCode.apply(String,f.slice(0,m))};var c="invalid encoding";i.decode=function(l,d,p){for(var h,_=p,f=0,m=0;m<l.length;){var E=l.charCodeAt(m++);if(E===61&&f>1)break;if((E=a[E])===void 0)throw Error(c);switch(f){case 0:h=E,f=1;break;case 1:d[p++]=h<<2|(48&E)>>4,h=E,f=2;break;case 2:d[p++]=(15&h)<<4|(60&E)>>2,h=E,f=3;break;case 3:d[p++]=(3&h)<<6|E,f=0}}if(f===1)throw Error(c);return p-_},i.test=function(l){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(l)}}(UR)),UR),e.EventEmitter=function(){if(MR)return Dd;function o(){this._listeners={}}return MR=1,Dd=o,o.prototype.on=function(i,s,a){return(this._listeners[i]||(this._listeners[i]=[])).push({fn:s,ctx:a||this}),this},o.prototype.off=function(i,s){if(i===void 0)this._listeners={};else if(s===void 0)this._listeners[i]=[];else for(var a=this._listeners[i],u=0;u<a.length;)a[u].fn===s?a.splice(u,1):++u;return this},o.prototype.emit=function(i){var s=this._listeners[i];if(s){for(var a=[],u=1;u<arguments.length;)a.push(arguments[u++]);for(u=0;
54u<s.length;)s[u].fn.apply(s[u++].ctx,a)}return this},Dd}(),e.float=function(){if(LR)return wR;function o(c){return typeof Float32Array<"u"?function(){var l=new Float32Array([-0]),d=new Uint8Array(l.buffer),p=d[3]===128;function h(E,S,g){l[0]=E,S[g]=d[0],S[g+1]=d[1],S[g+2]=d[2],S[g+3]=d[3]}function _(E,S,g){l[0]=E,S[g]=d[3],S[g+1]=d[2],S[g+2]=d[1],S[g+3]=d[0]}function f(E,S){return d[0]=E[S],d[1]=E[S+1],d[2]=E[S+2],d[3]=E[S+3],l[0]}function m(E,S){return d[3]=E[S],d[2]=E[S+1],d[1]=E[S+2],d[0]=E[S+3],l[0]}c.writeFloatLE=p?h:_,c.writeFloatBE=p?_:h,c.readFloatLE=p?f:m,c.readFloatBE=p?m:f}():function(){function l(p,h,_,f){var m=h<0?1:0;if(m&&(h=-h),h===0)p(1/h>0?0:2147483648,_,f);else if(isNaN(h))p(2143289344,_,f);else if(h>34028234663852886e22)p((m<<31|2139095040)>>>0,_,f);else if(h<11754943508222875e-54)p((m<<31|Math.round(h/1401298464324817e-60))>>>0,_,f);else{var E=Math.floor(Math.log(h)/Math.LN2);p((m<<31|E+127<<23|8388607&Math.round(h*Math.pow(2,-E)*8388608))>>>0,_,f)}}function d(p,h,_){var f=p(h,_),m=2*(f>>31)+1,E=f>>>23&255,S=8388607&f;return E===255?S?NaN:m*(1/0):E===0?1401298464324817e-60*m*S:m*Math.pow(2,E-150)*(S+8388608)}c.writeFloatLE=l.bind(null,i),c.writeFloatBE=l.bind(null,s),c.readFloatLE=d.bind(null,a),c.readFloatBE=d.bind(null,u)}(),typeof Float64Array<"u"?function(){var l=new Float64Array([-0]),d=new Uint8Array(l.buffer),p=d[7]===128;function h(E,S,g){l[0]=E,S[g]=d[0],S[g+1]=d[1],S[g+2]=d[2],S[g+3]=d[3],S[g+4]=d[4],S[g+5]=d[5],S[g+6]=d[6],S[g+7]=d[7]}function _(E,S,g){l[0]=E,S[g]=d[7],S[g+1]=d[6],S[g+2]=d[5],S[g+3]=d[4],S[g+4]=d[3],S[g+5]=d[2],S[g+6]=d[1],S[g+7]=d[0]}function f(E,S){return d[0]=E[S],d[1]=E[S+1],d[2]=E[S+2],d[3]=E[S+3],d[4]=E[S+4],d[5]=E[S+5],d[6]=E[S+6],d[7]=E[S+7],l[0]}function m(E,S){return d[7]=E[S],d[6]=E[S+1],d[5]=E[S+2],d[4]=E[S+3],d[3]=E[S+4],d[2]=E[S+5],d[1]=E[S+6],d[0]=E[S+7],l[0]}c.writeDoubleLE=p?h:_,c.writeDoubleBE=p?_:h,c.readDoubleLE=p?f:m,c.readDoubleBE=p?m:f}():function(){function l(p,h,_,f,m,E){var S=f<0?1:0;if(S&&(f=-f),f===0)p(0,m,E+h),p(1/f>0?0:2147483648,m,E+_);else if(isNaN(f))p(0,m,E+h),p(2146959360,m,E+_);else if(f>17976931348623157e292)p(0,m,E+h),p((S<<31|2146435072)>>>0,m,E+_);else{var g;if(f<22250738585072014e-324)p((g=f/5e-324)>>>0,m,E+h),p((S<<31|g/4294967296)>>>0,m,E+_);else{var T=Math.floor(Math.log(f)/Math.LN2);T===1024&&(T=1023),p(4503599627370496*(g=f*Math.pow(2,-T))>>>0,m,E+h),p((S<<31|T+1023<<20|1048576*g&1048575)>>>0,m,E+_)}}}function d(p,h,_,f,m){var E=p(f,m+h),S=p(f,m+_),g=2*(S>>31)+1,T=S>>>20&2047,y=4294967296*(1048575&S)+E;return T===2047?y?NaN:g*(1/0):T===0?5e-324*g*y:g*Math.pow(2,T-1075)*(y+4503599627370496)}c.writeDoubleLE=l.bind(null,i,0,4),c.writeDoubleBE=l.bind(null,s,4,0),c.readDoubleLE=d.bind(null,a,0,4),c.readDoubleBE=d.bind(null,u,4,0)}(),c}function i(c,l,d){l[d]=255&c,l[d+1]=c>>>8&255,l[d+2]=c>>>16&255,l[d+3]=c>>>24}function s(c,l,d){l[d]=c>>>24,l[d+1]=c>>>16&255,l[d+2]=c>>>8&255,l[d+3]=255&c}function a(c,l){return(c[l]|c[l+1]<<8|c[l+2]<<16|c[l+3]<<24)>>>0}function u(c,l){return(c[l]<<24|c[l+1]<<16|c[l+2]<<8|c[l+3])>>>0}return LR=1,wR=o(o)}(),e.inquire=PR?DR:(PR=1,DR=function(o){try{var i=NV(o);return i&&(i.length||Object.keys(i).length)?i:null}catch{return null}}),e.utf8=(xR||(xR=1,function(o){var i=o;i.length=function(s){for(var a=0,u=0,c=0;c<s.length;++c)(u=s.charCodeAt(c))<128?a+=1:u<2048?a+=2:(64512&u)==55296&&(64512&s.charCodeAt(c+1))==56320?(++c,a+=4):a+=3;return a},i.read=function(s,a,u){if(u-a<1)return"";for(var c="",l=a;l<u;){var d=s[l++];if(d<=127)c+=String.fromCharCode(d);else if(d>=192&&d<224){var p=(31&d)<<6|63&s[l++];c+=p>=128?String.fromCharCode(p):"�"}else if(d>=224&&d<240){var h=(15&d)<<12|(63&s[l++])<<6|63&s[l++];c+=h>=2048?String.fromCharCode(h):"�"}else if(d>=240){var _=(7&d)<<18|(63&s[l++])<<12|(63&s[l++])<<6|63&s[l++];_<65536||_>1114111?c+="�":(_-=65536,c+=String.fromCharCode(55296+(_>>10)),c+=String.fromCharCode(56320+(1023&_)))}}return c},i.write=function(s,a,u){for(var c,l,d=u,p=0;p<s.length;++p)(c=s.charCodeAt(p))<128?a[u++]=c:c<2048?(a[u++]=c>>6|192,a[u++]=63&c|128):(64512&c)==55296&&(64512&(l=s.charCodeAt(p+1)))==56320?(c=65536+((1023&c)<<10)+(1023&l),++p,a[u++]=c>>18|240,a[u++]=c>>12&63|128,a[u++]=c>>6&63|128,a[u++]=63&c|128):(a[u++]=c>>12|224,a[u++]=c>>6&63|128,a[u++]=63&c|128);return u-d}}(GR)),GR),e.pool=(BR||(BR=1,kR=function(o,i,s){var a=s||8192,u=a>>>1,c=null,l=a;return function(d){if(d<1||d>u)return o(d);l+d>a&&(c=o(a),l=0);var p=i.call(c,l,l+=d);return 7&l&&(l=1+(7|l)),p}}),kR),e.LongBits=function(){if(VR)return Pd;VR=1,Pd=i;var o=Rr();function i(c,l){this.lo=c>>>0,this.hi=l>>>0}var s=i.zero=new i(0,0);s.toNumber=function(){return 0},s.zzEncode=s.zzDecode=function(){return this},s.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(c){if(c===0)return s;var l=c<0;l&&(c=-c);var d=c>>>0,p=(c-d)/4294967296>>>0;return l&&(p=~p>>>0,d=~d>>>0,++d>4294967295&&(d=0,++p>4294967295&&(p=0))),new i(d,p)},i.from=function(c){if(typeof c=="number")return i.fromNumber(c);if(o.isString(c)){if(!o.Long)return i.fromNumber(parseInt(c,10));c=o.Long.fromString(c)}return c.low||c.high?new i(c.low>>>0,c.high>>>0):s},i.prototype.toNumber=function(c){if(!c&&this.hi>>>31){var l=1+~this.lo>>>0,d=~this.hi>>>0;return l||(d=d+1>>>0),-(l+4294967296*d)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(c){return o.Long?new o.Long(0|this.lo,0|this.hi,!!c):{low:0|this.lo,high:0|this.hi,unsigned:!!c}};var u=String.prototype.charCodeAt;return i.fromHash=function(c){return c===a?s:new i((u.call(c,0)|u.call(c,1)<<8|u.call(c,2)<<16|u.call(c,3)<<24)>>>
vendor: 11,791 bytes, line 54
540,(u.call(c,4)|u.call(c,5)<<8|u.call(c,6)<<16|u.call(c,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var c=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^c)>>>0,this.lo=(this.lo<<1^c)>>>0,this},i.prototype.zzDecode=function(){var c=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^c)>>>0,this.hi=(this.hi>>>1^c)>>>0,this},i.prototype.length=function(){var c=this.lo,l=(this.lo>>>28|this.hi<<4)>>>0,d=this.hi>>>24;return d===0?l===0?c<16384?c<128?1:2:c<2097152?3:4:l<16384?l<128?5:6:l<2097152?7:8:d<128?9:10},Pd}(),e.isNode=!!(Et!==void 0&&Et&&Et.process&&Et.process.versions&&Et.process.versions.node),e.global=e.isNode&&Et||typeof window<"u"&&window||typeof self<"u"&&self||Et,e.emptyArray=Object.freeze?Object.freeze([]):[],e.emptyObject=Object.freeze?Object.freeze({}):{},e.isInteger=Number.isInteger||function(o){return typeof o=="number"&&isFinite(o)&&Math.floor(o)===o},e.isString=function(o){return typeof o=="string"||o instanceof String},e.isObject=function(o){return o&&typeof o=="object"},e.isset=e.isSet=function(o,i){var s=o[i];return!(s==null||!o.hasOwnProperty(i))&&(typeof s!="object"||(Array.isArray(s)?s.length:Object.keys(s).length)>0)},e.Buffer=function(){try{var o=e.inquire("buffer").Buffer;return o.prototype.utf8Write?o:null}catch{return null}}(),e._Buffer_from=null,e._Buffer_allocUnsafe=null,e.newBuffer=function(o){return typeof o=="number"?e.Buffer?e._Buffer_allocUnsafe(o):new e.Array(o):e.Buffer?e._Buffer_from(o):typeof Uint8Array>"u"?o:new Uint8Array(o)},e.Array=typeof Uint8Array<"u"?Uint8Array:Array,e.Long=e.global.dcodeIO&&e.global.dcodeIO.Long||e.global.Long||e.inquire("long"),e.key2Re=/^true|false|0|1$/,e.key32Re=/^-?(?:0|[1-9][0-9]*)$/,e.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,e.longToHash=function(o){return o?e.LongBits.from(o).toHash():e.LongBits.zeroHash},e.longFromHash=function(o,i){var s=e.LongBits.fromHash(o);return e.Long?e.Long.fromBits(s.lo,s.hi,i):s.toNumber(!!i)},e.merge=n,e.recursionLimit=100,e.makeProp=function(o,i){Object.defineProperty(o,i,{enumerable:!0,configurable:!0,writable:!0})},e.lcFirst=function(o){return o.charAt(0).toLowerCase()+o.substring(1)},e.newError=r,e.ProtocolError=r("ProtocolError"),e.oneOfGetter=function(o){for(var i={},s=0;s<o.length;++s)i[o[s]]=1;return function(){for(var a=Object.keys(this),u=a.length-1;u>-1;--u)if(i[a[u]]===1&&this[a[u]]!==void 0&&this[a[u]]!==null)return a[u]}},e.oneOfSetter=function(o){return function(i){for(var s=0;s<o.length;++s)o[s]!==i&&delete this[o[s]]}},e.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},e._configure=function(){var o=e.Buffer;o?(e._Buffer_from=o.from!==Uint8Array.from&&o.from||function(i,s){return new o(i,s)},e._Buffer_allocUnsafe=o.allocUnsafe||function(i){return new o(i)}):e._Buffer_from=e._Buffer_allocUnsafe=null}}(IR)),IR}var Ud,jR=Z,Ie=Rr(),Ga=Ie.LongBits,HR=Ie.base64,YR=Ie.utf8;function Pi(t,e,n){this.fn=t,this.len=e,this.next=void 0,this.val=n}function xd(){}function IV(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function Z(){this.len=0,this.head=new Pi(xd,0,0),this.tail=this.head,this.states=null}var $R=function(){return Ie.Buffer?function(){return(Z.create=function(){return new Ud})()}:function(){return new Z}};function kd(t,e,n){e[n]=255&t}function Bd(t,e){this.len=t,this.next=void 0,this.val=e}function Vd(t,e,n){for(;t.hi;)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function Fd(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}Z.create=$R(),Z.alloc=function(t){return new Ie.Array(t)},Ie.Array!==Array&&(Z.alloc=Ie.pool(Z.alloc,Ie.Array.prototype.subarray)),Z.prototype._push=function(t,e,n){return this.tail=this.tail.next=new Pi(t,e,n),this.len+=e,this},Bd.prototype=Object.create(Pi.prototype),Bd.prototype.fn=function(t,e,n){for(;t>127;)e[n++]=127&t|128,t>>>=7;e[n]=t},Z.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new Bd((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},Z.prototype.int32=function(t){return t<0?this._push(Vd,10,Ga.fromNumber(t)):this.uint32(t)},Z.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},Z.prototype.uint64=function(t){var e=Ga.from(t);return this._push(Vd,e.length(),e)},Z.prototype.int64=Z.prototype.uint64,Z.prototype.sint64=function(t){var e=Ga.from(t).zzEncode();return this._push(Vd,e.length(),e)},Z.prototype.bool=function(t){return this._push(kd,1,t?1:0)},Z.prototype.fixed32=function(t){return this._push(Fd,4,t>>>0)},Z.prototype.sfixed32=Z.prototype.fixed32,Z.prototype.fixed64=function(t){var e=Ga.from(t);return this._push(Fd,4,e.lo)._push(Fd,4,e.hi)},Z.prototype.sfixed64=Z.prototype.fixed64,Z.prototype.float=function(t){return this._push(Ie.float.writeFloatLE,4,t)},Z.prototype.double=function(t){return this._push(Ie.float.writeDoubleLE,8,t)};var CV=Ie.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var r=0;r<t.length;++r)e[n+r]=t[r]};Z.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(kd,1,0);if(Ie.isString(t)){var n=Z.alloc(e=HR.length(t));HR.decode(t,n,0),t=n}return this.uint32(e)._push(CV,e,t)},Z.prototype.string=function(t){var e=YR.length(t);return e?this.uint32(e)._push(YR.write,e,t):this._push(kd,1,0)},Z.prototype.fork=function(){return this.states=new IV(this),this.head=this.tail=new Pi(xd,0,0),this.len=0,this},Z.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Pi(xd,0,0),this.len=0),this},Z.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},Z.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},Z._configure=function(t){Ud=t,Z.create=$R(),Ud._configure()};var MV=cn,zR=jR;(cn.prototype=Object.create(zR.prototype)).constructor=cn;var Kn=Rr();function cn(){zR.call(this)}function wV(t,e,n){t.length<40?Kn.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}cn._configure=function(){cn.alloc=Kn._Buffer_allocUnsafe,cn.writeBytesBuffer=Kn.Buffer&&Kn.Buffer.prototype instanceof Uint8Array&&Kn.Buffer.prototype.set.name==="set"?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var r=0;r<t.length;)e[n++]=t[r++]}},cn.prototype.bytes=function(t){Kn.isString(t)&&(t=Kn._Buffer_from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this._push(cn.writeBytesBuffer,e,t),this},cn.prototype.string=function(t){var e=Kn.Buffer.byteLength(t);return this.uint32(e),e&&this._push(wV,e,t),this},cn._configure();var Gd,WR=gt,Ce=Rr(),qR=Ce.LongBits,LV=Ce.utf8;function ze(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function gt(t){this.buf=t,this.pos=0,this.len=t.length}var $t,KR=typeof Uint8Array<"u"?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new gt(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new gt(t);throw Error("illegal buffer")},JR=function(){return Ce.Buffer?function(t){return(gt.create=function(e){return Ce.Buffer.isBuffer(e)?new Gd(e):KR(e)})(t)}:KR};function jd(){var t=new qR(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw ze(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw ze(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function ja(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function XR(){if(this.pos+8>this.len)throw ze(this,8);return new qR(ja(this.buf,this.pos+=4),ja(this.buf,this.pos+=4))}gt.create=JR(),gt.prototype._slice=Ce.Array.prototype.subarray||Ce.Array.prototype.slice,gt.prototype.uint32=($t=4294967295,function(){if($t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||($t=($t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||($t=($t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||($t=($t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||($t=($t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return $t;if((this.pos+=5)>this.len)throw this.pos=this.len,ze(this,10);return $t}),gt.prototype.int32=function(){return 0|this.uint32()},gt.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},gt.prototype.bool=function(){return this.uint32()!==0},gt.prototype.fixed32=function(){if(this.pos+4>this.len)throw ze(this,4);return ja(this.buf,this.pos+=4)},gt.prototype.sfixed32=function(){if(this.pos+4>this.len)throw ze(this,4);return 0|ja(this.buf,this.pos+=4)},gt.prototype.float=function(){if(this.pos+4>this.len)throw ze(this,4);var t=Ce.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},gt.prototype.double=function(){if(this.pos+8>this.len)throw ze(this,4);var t=Ce.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},gt.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw ze(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var r=Ce.Buffer;return r?r.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)},gt.prototype.string=function(){var t=this.bytes();return LV.read(t,0,t.length)},gt.prototype.skip=function(t){if(typeof t=="number"){if(this.pos+t>this.len)throw ze(this,t);this.pos+=t}else do if(this.pos>=this.len)throw ze(this);while(128&this.buf[this.pos++]);return this},gt.recursionLimit=Ce.recursionLimit,gt.prototype.skipType=function(t,e){if(e===void 0&&(e=0),e>gt.recursionLimit)throw Error("maximum nesting depth exceeded");switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(t=7&this.uint32())!=4;)this.skipType(t,e+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},gt._configure=function(t){Gd=t,gt.create=JR(),Gd._configure();var e=Ce.Long?"toLong":"toNumber";Ce.merge(gt.prototype,{int64:function(){return jd.call(this)[e](!1)},uint64:function(){return jd.call(this)[e](!0)},sint64:function(){return jd.call(this).zzDecode()[e](!1)},fixed64:function(){return XR.call(this)[e](!0)},sfixed64:function(){return XR.call(this)[e](!1)}})};var DV=Or,ZR=WR;(Or.prototype=Object.create(ZR.prototype)).constructor=Or;var QR=Rr();function Or(t){ZR.call(this,t)}Or._configure=function(){QR.Buffer&&(Or.prototype._slice=QR.Buffer.prototype.slice)},Or.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},Or._configure();var tO={},PV=Ui,Hd=Rr();function Ui(t,e,n){if(typeof t!="function")throw TypeError("rpcImpl must be a function");Hd.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!n}(Ui.prototype=Object.create(Hd.EventEmitter.prototype)).constructor=Ui,Ui.prototype.rpcCall=function t(e,n,r,o,i){if
54(!o)throw TypeError("request must be specified");var s=this;if(!i)return Hd.asPromise(t,s,e,n,r,o);if(s.rpcImpl)try{return s.rpcImpl(e,n[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(a,u){if(a)return s.emit("error",a,e),i(a);if(u!==null){if(!(u instanceof r))try{u=r[s.responseDelimited?"decodeDelimited":"decode"](u)}catch(c){return s.emit("error",c,e),i(c)}return s.emit("data",u,e),i(null,u)}s.end(!0)})}catch(a){return s.emit("error",a,e),void setTimeout(function(){i(a)},0)}else setTimeout(function(){i(Error("already ended"))},0)},Ui.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},function(t){t.Service=PV}(tO);var UV={};(function(t){var e=t;function n(){e.util._configure(),e.Writer._configure(e.BufferWriter),e.Reader._configure(e.BufferReader)}e.build="minimal",e.Writer=jR,e.BufferWriter=MV,e.Reader=WR,e.BufferReader=DV,e.util=Rr(),e.rpc=tO,e.roots=UV,e.configure=n,n()})(NR);var $=se(NR);const zt={encode:(t,e=$.Writer.create())=>(t.stringValue!==void 0&&e.uint32(10).string(t.stringValue),t.boolValue!==void 0&&e.uint32(16).bool(t.boolValue),t.intValue!==void 0&&e.uint32(24).int64(t.intValue),t.doubleValue!==void 0&&e.uint32(33).double(t.doubleValue),t.arrayValue!==void 0&&_o.encode(t.arrayValue,e.uint32(42).fork()).ldelim(),t.kvlistValue!==void 0&&Eo.encode(t.kvlistValue,e.uint32(50).fork()).ldelim(),t.bytesValue!==void 0&&e.uint32(58).bytes(t.bytesValue),e),decode(t,e){const n=t instanceof $.Reader?t:$.Reader.create(t);let r=e===void 0?n.len:n.pos+e;const o={stringValue:void 0,boolValue:void 0,intValue:void 0,doubleValue:void 0,arrayValue:void 0,kvlistValue:void 0,bytesValue:void 0};for(;n.pos<r;){const i=n.uint32();switch(i>>>3){case 1:if(i!==10)break;o.stringValue=n.string();continue;case 2:if(i!==16)break;o.boolValue=n.bool();continue;case 3:if(i!==24)break;o.intValue=kV(n.int64());continue;case 4:if(i!==33)break;o.doubleValue=n.double();continue;case 5:if(i!==42)break;o.arrayValue=_o.decode(n,n.uint32());continue;case 6:if(i!==50)break;o.kvlistValue=Eo.decode(n,n.uint32());continue;case 7:if(i!==58)break;o.bytesValue=n.bytes();continue}if((7&i)==4||i===0)break;n.skipType(7&i)}return o},fromJSON:t=>({stringValue:Ee(t.stringValue)?globalThis.String(t.stringValue):void 0,boolValue:Ee(t.boolValue)?globalThis.Boolean(t.boolValue):void 0,intValue:Ee(t.intValue)?globalThis.Number(t.intValue):void 0,doubleValue:Ee(t.doubleValue)?globalThis.Number(t.doubleValue):void 0,arrayValue:Ee(t.arrayValue)?_o.fromJSON(t.arrayValue):void 0,kvlistValue:Ee(t.kvlistValue)?Eo.fromJSON(t.kvlistValue):void 0,bytesValue:Ee(t.bytesValue)?xV(t.bytesValue):void 0}),toJSON(t){const e={};return t.stringValue!==void 0&&(e.stringValue=t.stringValue),t.boolValue!==void 0&&(e.boolValue=t.boolValue),t.intValue!==void 0&&(e.intValue=Math.round(t.intValue)),t.doubleValue!==void 0&&(e.doubleValue=t.doubleValue),t.arrayValue!==void 0&&(e.arrayValue=_o.toJSON(t.arrayValue)),t.kvlistValue!==void 0&&(e.kvlistValue=Eo.toJSON(t.kvlistValue)),t.bytesValue!==void 0&&(e.bytesValue=function(n){if(globalThis.Buffer)return globalThis.Buffer.from(n).toString("base64");{const r=[];return n.forEach(o=>{r.push(globalThis.String.fromCharCode(o))}),globalThis.btoa(r.join(""))}}(t.bytesValue)),e},create:t=>zt.fromPartial(t??{}),fromPartial(t){var e,n,r,o,i;const s={stringValue:void 0,boolValue:void 0,intValue:void 0,doubleValue:void 0,arrayValue:void 0,kvlistValue:void 0,bytesValue:void 0};return s.stringValue=(e=t.stringValue)!==null&&e!==void 0?e:void 0,s.boolValue=(n=t.boolValue)!==null&&n!==void 0?n:void 0,s.intValue=(r=t.intValue)!==null&&r!==void 0?r:void 0,s.doubleValue=(o=t.doubleValue)!==null&&o!==void 0?o:void 0,s.arrayValue=t.arrayValue!==void 0&&t.arrayValue!==null?_o.fromPartial(t.arrayValue):void 0,s.kvlistValue=t.kvlistValue!==void 0&&t.kvlistValue!==null?Eo.fromPartial(t.kvlistValue):void 0,s.bytesValue=(i=t.bytesValue)!==null&&i!==void 0?i:void 0,s}},_o={encode(t,e=$.Writer.create()){if(t.values!==void 0&&t.values.length!==0)for(const n of t.values)zt.encode(n,e.uint32(10).fork()).ldelim();return e},decode(t,e){const n=t instanceof $.Reader?t:$.Reader.create(t);let r=e===void 0?n.len:n.pos+e;const o={values:[]};for(;n.pos<r;){const i=n.uint32();switch(i>>>3){case 1:if(i!==10)break;o.values.push(zt.decode(n,n.uint32()));continue}if((7&i)==4||i===0)break;n.skipType(7&i)}return o},fromJSON:t=>({values:globalThis.Array.isArray(t==null?void 0:t.values)?t.values.map(e=>zt.fromJSON(e)):[]}),toJSON(t){var e;const n={};return!((e=t.values)===null||e===void 0)&&e.length&&(n.values=t.values.map(r=>zt.toJSON(r))),n},create:t=>_o.fromPartial(t??{}),fromPartial(t){var e;const n={values:[]};return n.values=((e=t.values)===null||e===void 0?void 0:e.map(r=>zt.fromPartial(r)))||[],n}},Eo={encode(t,e=$.Writer.create()){if(t.values!==void 0&&t.values.length!==0)for(const n of t.values)Wt.encode(n,e.uint32(10).fork()).ldelim();return e},decode(t,e){const n=t instanceof $.Reader?t:$.Reader.create(t);let r=e===void 0?n.len:n.pos+e;const o={values:[]};for(;n.pos<r;){const i=n.uint32();switch(i>>>3){case 1:if(i!==10)break;o.values.push(Wt.decode(n,n.uint32()));continue}if((7&i)==4||i===0)break;n.skipType(7&i)}return o},fromJSON:t=>({values:globalThis.Array.isArray(t==null?void 0:t.values)?t.values.map(e=>Wt.fromJSON(e)):[]}),toJSON(t){var e;const n={};return!((e=t.values)===null||e===void 0)&&e.length&&(n.values=t.values.map(r=>Wt.toJSON(r))),n},create:t=>Eo.fromPartial(t??{}),fromPartial(t){var e;const n={values:[]};return n.values=((e=t.values)===null||e===void 0?void 0:e.map(r=>Wt.fromPartial(r)))||[],n}},Wt={encode:(t,e=$.Writer.create())=>(t.key!==void 0&&t.key!==""&&e.uint32(10).string(t.key),t.value!==void 0&&zt.encode(t.value,e.uint32(18).fork()).ldelim(),e),decode(t,e){const n=t instanceof $.Reader?t:$.Reader.create(t);let r=e===void 0?n.len:n.pos+e;const o={key:"",value:void 0};for(;n.pos<r;){const i=n.uint32();switch(i>>>3){case 1:if(i!==10)break;o.key=n.string();continue;case 2:if(i!==18)break;o.value=zt.decode(n,n.uint32());continue}if((7&i)==4||i===0)break;n.skipType(7&i)}return o},fromJSON:t=>({key:Ee(t.key)?globalThis.String(t.key):"",value:Ee(t.value)?zt.fromJSON(t.value):void 0}),toJSON(t){const e={};return t.key!==void 0&&t.key!==""&&(e.key=t.key),t.value!==void 0&&(e.value=zt.toJSON(t.value)),e},create:t=>Wt.fromPartial(t??{}),fromPartial(t){var e;const n={key:"",value:void 0};return n.key=(e=t.key)!==null&&e!==void 0?e:"",n.value=t.value!==void 0&&t.value!==null?zt.fromPartial(t.value):void 0,n}},mo={encode:(t,e=$.Writer.create())=>
54(t.name!==void 0&&t.name!==""&&e.uint32(10).string(t.name),t.version!==void 0&&t.version!==""&&e.uint32(18).string(t.version),e),decode(t,e){const n=t instanceof $.Reader?t:$.Reader.create(t);let r=e===void 0?n.len:n.pos+e;const o={name:"",version:""};for(;n.pos<r;){const i=n.uint32();switch(i>>>3){case 1:if(i!==10)break;o.name=n.string();continue;case 2:if(i!==18)break;o.version=n.string();continue}if((7&i)==4||i===0)break;n.skipType(7&i)}return o},fromJSON:t=>({name:Ee(t.name)?globalThis.String(t.name):"",version:Ee(t.version)?globalThis.String(t.version):""}),toJSON(t){const e={};return t.name!==void 0&&t.name!==""&&(e.name=t.name),t.version!==void 0&&t.version!==""&&(e.version=t.version),e},create:t=>mo.fromPartial(t??{}),fromPartial(t){var e,n;const r={name:"",version:""};return r.name=(e=t.name)!==null&&e!==void 0?e:"",r.version=(n=t.version)!==null&&n!==void 0?n:"",r}},go={encode:(t,e=$.Writer.create())=>(t.name!==void 0&&t.name!==""&&e.uint32(10).string(t.name),t.version!==void 0&&t.version!==""&&e.uint32(18).string(t.version),e),decode(t,e){const n=t instanceof $.Reader?t:$.Reader.create(t);let r=e===void 0?n.len:n.pos+e;const o={name:"",version:""};for(;n.pos<r;){const i=n.uint32();switch(i>>>3){case 1:if(i!==10)break;o.name=n.string();continue;case 2:if(i!==18)break;o.version=n.string();continue}if((7&i)==4||i===0)break;n.skipType(7&i)}return o},fromJSON:t=>({name:Ee(t.name)?globalThis.String(t.name):"",version:Ee(t.version)?globalThis.String(t.version):""}),toJSON(t){const e={};return t.name!==void 0&&t.name!==""&&(e.name=t.name),t.version!==void 0&&t.version!==""&&(e.version=t.version),e},create:t=>go.fromPartial(t??{}),fromPartial(t){var e,n;const r={name:"",version:""};return r.name=(e=t.name)!==null&&e!==void 0?e:"",r.version=(n=t.version)!==null&&n!==void 0?n:"",r}};function xV(t){if(globalThis.Buffer)return Uint8Array.from(globalThis.Buffer.from(t,"base64"));{const e=globalThis.atob(t),n=new Uint8Array(e.length);for(let r=0;r<e.length;++r)n[r]=e.charCodeAt(r);return n}}function kV(t){if(t.gt(globalThis.Number.MAX_SAFE_INTEGER))throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");return t.toNumber()}function Ee(t){return t!=null}$.util.Long!==it&&($.util.Long=it,$.configure());const So={encode(t,e=$.Writer.create()){if(t.attributes!==void 0&&t.attributes.length!==0)for(const n of t.attributes)Wt.encode(n,e.uint32(10).fork()).ldelim();return t.droppedAttributesCount!==void 0&&t.droppedAttributesCount!==0&&e.uint32(16).uint32(t.droppedAttributesCount),e},decode(t,e){const n=t instanceof $.Reader?t:$.Reader.create(t);let r=e===void 0?n.len:n.pos+e;const o={attributes:[],droppedAttributesCount:0};for(;n.pos<r;){const i=n.uint32();switch(i>>>3){case 1:if(i!==10)break;o.attributes.push(Wt.decode(n,n.uint32()));continue;case 2:if(i!==16)break;o.droppedAttributesCount=n.uint32();continue}if((7&i)==4||i===0)break;n.skipType(7&i)}return o},fromJSON:t=>({attributes:globalThis.Array.isArray(t==null?void 0:t.attributes)?t.attributes.map(e=>Wt.fromJSON(e)):[],droppedAttributesCount:BV(t.droppedAttributesCount)?globalThis.Number(t.droppedAttributesCount):0}),toJSON(t){var e;const n={};return!((e=t.attributes)===null||e===void 0)&&e.length&&(n.attributes=t.attributes.map(r=>Wt.toJSON(r))),t.droppedAttributesCount!==void 0&&t.droppedAttributesCount!==0&&(n.droppedAttributesCount=Math.round(t.droppedAttributesCount)),n},create:t=>So.fromPartial(t??{}),fromPartial(t){var e,n;const r={attributes:[],droppedAttributesCount:0};return r.attributes=((e=t.attributes)===null||e===void 0?void 0:e.map(o=>Wt.fromPartial(o)))||[],r.droppedAttributesCount=(n=t.droppedAttributesCount)!==null&&n!==void 0?n:0,r}};function BV(t){return t!=null}var G,eO;function VV(t){switch(t){case 0:case"SEVERITY_NUMBER_UNSPECIFIED":return G.SEVERITY_NUMBER_UNSPECIFIED;case 1:case"SEVERITY_NUMBER_TRACE":return G.SEVERITY_NUMBER_TRACE;case 2:case"SEVERITY_NUMBER_TRACE2":return G.SEVERITY_NUMBER_TRACE2;case 3:case"SEVERITY_NUMBER_TRACE3":return G.SEVERITY_NUMBER_TRACE3;case 4:case"SEVERITY_NUMBER_TRACE4":return G.SEVERITY_NUMBER_TRACE4;case 5:case"SEVERITY_NUMBER_DEBUG":return G.SEVERITY_NUMBER_DEBUG;case 6:case"SEVERITY_NUMBER_DEBUG2":return G.SEVERITY_NUMBER_DEBUG2;case 7:case"SEVERITY_NUMBER_DEBUG3":return G.SEVERITY_NUMBER_DEBUG3;case 8:case"SEVERITY_NUMBER_DEBUG4":return G.SEVERITY_NUMBER_DEBUG4;case 9:case"SEVERITY_NUMBER_INFO":return G.SEVERITY_NUMBER_INFO;case 10:case"SEVERITY_NUMBER_INFO2":return G.SEVERITY_NUMBER_INFO2;case 11:case"SEVERITY_NUMBER_INFO3":return G.SEVERITY_NUMBER_INFO3;case 12:case"SEVERITY_NUMBER_INFO4":return G.SEVERITY_NUMBER_INFO4;case 13:case"SEVERITY_NUMBER_WARN":return G.SEVERITY_NUMBER_WARN;case 14:case"SEVERITY_NUMBER_WARN2":return G.SEVERITY_NUMBER_WARN2;case 15:case"SEVERITY_NUMBER_WARN3":return G.SEVERITY_NUMBER_WARN3;case 16:case"SEVERITY_NUMBER_WARN4":return G.SEVERITY_NUMBER_WARN4;case 17:case"SEVERITY_NUMBER_ERROR":return G.SEVERITY_NUMBER_ERROR;case 18:case"SEVERITY_NUMBER_ERROR2":return G.SEVERITY_NUMBER_ERROR2;case 19:case"SEVERITY_NUMBER_ERROR3":return G.SEVERITY_NUMBER_ERROR3;case 20:case"SEVERITY_NUMBER_ERROR4":return G.SEVERITY_NUMBER_ERROR4;case 21:case"SEVERITY_NUMBER_FATAL":return G.SEVERITY_NUMBER_FATAL;case 22:case"SEVERITY_NUMBER_FATAL2":return G.SEVERITY_NUMBER_FATAL2;case 23:case"SEVERITY_NUMBER_FATAL3":return G.SEVERITY_NUMBER_FATAL3;case 24:case"SEVERITY_NUMBER_FATAL4":return G.SEVERITY_NUMBER_FATAL4;default:return G.UNRECOGNIZED}}(function(t){t[t.SEVERITY_NUMBER_UNSPECIFIED=0]="SEVERITY_NUMBER_UNSPECIFIED",t[t.SEVERITY_NUMBER_TRACE=1]="SEVERITY_NUMBER_TRACE",t[t.SEVERITY_NUMBER_TRACE2=2]="SEVERITY_NUMBER_TRACE2",t[t.SEVERITY_NUMBER_TRACE3=3]="SEVERITY_NUMBER_TRACE3",t[t.SEVERITY_NUMBER_TRACE4=4]="SEVERITY_NUMBER_TRACE4",t[t.SEVERITY_NUMBER_DEBUG=5]="SEVERITY_NUMBER_DEBUG",t[t.SEVERITY_NUMBER_DEBUG2=6]="SEVERITY_NUMBER_DEBUG2",t[t.SEVERITY_NUMBER_DEBUG3=7]="SEVERITY_NUMBER_DEBUG3",t[t.SEVERITY_NUMBER_DEBUG4=8]="SEVERITY_NUMBER_DEBUG4",t[t.SEVERITY_NUMBER_INFO=9]="SEVERITY_NUMBER_INFO",t[t.SEVERITY_NUMBER_INFO2=10]="SEVERITY_NUMBER_INFO2",t[t.SEVERITY_NUMBER_INFO3=11]="SEVERITY_NUMBER_INFO3",t[t.SEVERITY_NUMBER_INFO4=12]="SEVERITY_NUMBER_INFO4",t[t.SEVERITY_NUMBER_WARN=13]="SEVERITY_NUMBER_WARN",t[t.SEVERITY_NUMBER_WARN2=14]="SEVERITY_NUMBER_WARN2",t[t.SEVERITY_NUMBER_WARN3=15]="SEVERITY_NUMBER_WARN3",t[t.SEVERITY_NUMBER_WARN4=16]="SEVERITY_NUMBER_WARN4",t[t.SEVERITY_NUMBER_ERROR=17]="SEVERITY_NUMBER_ERROR",t[t.SEVERITY_NUMBER_ERROR2=18]="SEVERITY_NUMBER_ERROR2",t[t.SEVERITY_NUMBER_ERROR3=19]="SEVERITY_NUMBER_ERROR3",t[t.SEVERITY_NUMBER_ERROR4=20]="SEVERITY_NUMBER_ERROR4",t[t.SEVERITY_NUMBER_FATAL=21]="SEVERITY_NUMBER_FATAL",t[t.SEVERITY_NUMBER_FATAL2=22]="SEVERITY_NUMBER_FATAL2",t[t.SEVERITY_NUMBER_FATAL3=23]="SEVERITY_NUMBER_FATAL3",t[t.SEVERITY_NUMBER_FATAL4=24]="SEVERITY_NUMBER_FATAL4",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(G||(G={})),function(t){t[t.LOG_RECORD_FLAG_UNSPECIFIED=0]="LOG_RECORD_FLAG_UNSPECIFIED",t[t.LOG_RECORD_FLAG_TRACE_FLAGS_MASK=255]="LOG_RECORD_FLAG_TRACE_FLAGS_MASK",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"}(eO||(eO={}));const nO={encode(t,e=$.Writer.create()){if(t.resourceLogs!==void 0&&t.resourceLogs.length!==0)for(const n of t.resourceLogs)To.encode(n,e.uint32(10).fork()).ldelim();return e},decode(t,e){const n=t instanceof $.Reader?t:$.Reader.create(t);let r=e===void 0?n.len:n.pos+e;const o={resourceLogs:[]};for(;n.pos<r;){const i=n.uint32();switch(i>>>3){case 1:if(i!==10)break;o.resourceLogs.push(To.decode(n,n.uint32()));continue}if((7&i)==4||i===0)break;n.skipType(7&i)}return o},fromJSON:t=>({resourceLogs:globalThis.Array.isArray(t==null?void 0:t.resourceLogs)?t.resourceLogs.map(e=>To.fromJSON(e)):[]}),toJSON(t){var e;const n={};return!((e=t.resourceLogs)===null||e===void 0)&&e.length&&(n.resourceLogs=t.resourceLogs.map(r=>To.toJSON(r))),n},create:t=>nO.fromPartial(t??{}),fromPartial(t){var e;const n={resourceLogs:[]};return n.resourceLogs=((e=t.resourceLogs)===null||e===void 0?void 0:e.map(r=>To.fromPartial(r)))||[],n}},To={encode(t,e=$.Writer.create()){if(t.resource!==void 0&&So.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeLogs!==void 0&&t.scopeLogs.length!==0)for(const n of t.scopeLogs)vo.encode(n,e.uint32(18).fork()).ldelim();if(t.instrumentationLibraryLogs!==void 0&&t.instrumentationLibraryLogs.length!==0)for(const n of t.instrumentationLibraryLogs)yo.encode(n,e.uint32(8002).fork()).ldelim();return t.schemaUrl!==void 0&&t.schemaUrl!==""&&e.uint32(26).string(t.schemaUrl),e},decode(t,e){const n=t instanceof $.Reader?t:$.Reader.create(t);let r=e===void 0?n.len:n.pos+e;const o={resource:void 0,scopeLogs:[],instrumentationLibraryLogs:[],schemaUrl:""};for(;n.pos<r;){const i=n.uint32();switch(i>>>3){case 1:if(i!==10)break;o.resource=So.decode(n,n.uint32());continue;case 2:if(i!==18)break;o.scopeLogs.push(vo.decode(n,n.uint32()));continue;case 1e3:if(i!==8002)break;o.instrumentationLibraryLogs.push(yo.decode(n,n.uint32()));continue;case 3:if(i!==26)break;o.schemaUrl=n.string();continue}if((7&i)==4||i===0)break;n.skipType(7&i)}return o},fromJSON:t=>({resource:Kt(t.resource)?So.fromJSON(t.resource):void 0,scopeLogs:globalThis.Array.isArray(t==null?void 0:t.scopeLogs)?t.scopeLogs.map(e=>vo.fromJSON(e)):[],instrumentationLibraryLogs:globalThis.Array.isArray(t==null?void 0:t.instrumentationLibraryLogs)?t.instrumentationLibraryLogs.map(e=>yo.fromJSON(e)):[],schemaUrl:Kt(t.schemaUrl)?globalThis.String(t.schemaUrl):""}),toJSON(t){var e,n;const r={};return t.resource!==void 0&&(r.resource=So.toJSON(t.resource)),!((e=t.scopeLogs)===null||e===void 0)&&e.length&&(r.scopeLogs=t.scopeLogs.map(o=>vo.toJSON(o))),!((n=t.instrumentationLibraryLogs)===null||n===void 0)&&n.length&&(r.instrumentationLibraryLogs=t.instrumentationLibraryLogs.map(o=>yo.toJSON(o))),t.schemaUrl!==void 0&&t.schemaUrl!==""&&(r.schemaUrl=t.schemaUrl),r},create:t=>To.fromPartial(t??{}),fromPartial(t){var e,n,r;const o={resource:void 0,scopeLogs:[],instrumentationLibraryLogs:[],schemaUrl:""};return o.resource=t.resource!==void 0&&t.resource!==null?So.fromPartial(t.resource):void 0,o.scopeLogs=((e=t.scopeLogs)===null||e===void 0?void 0:e.map(i=>vo.fromPartial(i)))||[],o.instrumentationLibraryLogs=((n=t.instrumentationLibraryLogs)===null||n===void 0?void 0:n.map(i=>yo.fromPartial(i)))||[],o.schemaUrl=(r=t.schemaUrl)!==null&&r!==void 0?r:"",o}},vo={encode(t,e=$.Writer.create()){if(t.scope!==void 0&&go.encode(t.scope,e.uint32(10).fork()).ldelim(),t.logRecords!==void 0&&t.logRecords.length!==0)for(const n of t.logRecords)We.encode(n,e.uint32(18).fork()).ldelim();return t.schemaUrl!==void 0&&t.schemaUrl!==""&&e.uint32(26).string(t.schemaUrl),e},decode(t,e){const n=t instanceof $.Reader?t:$.Reader.create(t);let r=e===void 0?n.len:n.pos+e;const o={scope:void 0,logRecords:[],schemaUrl:""};for(;n.pos<r;){const i=n.uint32();switch(i>>>3){case 1:if(i!==10)break;o.scope=go.decode(n,n.uint32());continue;case 2:if(i!==18)break;o.logRecords.push(We.decode(n,n.uint32()));continue;case 3:if(i!==26)break;o.schemaUrl=n.string();continue}if((7&i)==4||i===0)break;n.skipType(7&i)}return o},fromJSON:t=>({scope:Kt(t.scope)?go.fromJSON(t.scope):void 0,logRecords:globalThis.Array.isArray(t==null?void 0:t.logRecords)?t.logRecords.map(e=>We.fromJSON(e)):[],schemaUrl:Kt(t.schemaUrl)?globalThis.String(t.schemaUrl):""}),toJSON(t){var e;const n={};return t.scope!==void 0&&(n.scope=go.toJSON(t.scope)),!((e=t.logRecords)===null||e===void 0)&&e.length&&(n.logRecords=t.logRecords.map(r=>We.toJSON(r))),t.schemaUrl!==void 0&&t.schemaUrl!==""&&(n.schemaUrl=t.schemaUrl),n},create:t=>vo.fromPartial(t??{}),fromPartial(t){var e,n;const r={scope:void 0,logRecords:[],schemaUrl:""};return r.scope=t.scope!==void 0&&t.scope!==null?go.fromPartial(t.scope):void 0,r.logRecords=((e=t.logRecords)===null||e===void 0?void 0:e.map(o=>We.fromPartial(o)))||[],r.schemaUrl=(n=t.schemaUrl)!==null&&n!==void 0?n:"",r}},yo={encode(t,e=$.Writer.create()){if(t.instrumentationLibrary!==void 0&&mo.encode(t.instrumentationLibrary,e.uint32(10).fork()).ldelim(),t.logRecords!==void 0&&t.logRecords.length!==0)for(const n of t.logRecords)We.encode(n,e.uint32(18).fork()).ldelim();return t.schemaUrl!==void 0&&t.schemaUrl!==""&&e.uint32(26).string(t.schemaUrl),e},decode(t,e){const n=t instanceof $.Reader?t:$.Reader.create(t);let r=e===void 0?n.len:n.pos+e;const o={instrumentationLibrary:void 0,logRecords:[],schemaUrl:""};for(;n.pos<r;){const i=n.uint32();switch(i>>>3){case 1:if(i!==10)break;o.instrumentationLibrary=mo.decode(n,n.uint32());continue;case 2:if(i!==18)break;o.logRecords.push(We.decode(n,n.uint32()));continue;case 3:if(i!==26)break;o.schemaUrl=n.string();continue}if((7&i)==4||i===0)break;n.skipType(7&i)}return o},fromJSON:t=>({instrumentationLibrary:Kt(t.instrumentationLibrary)?mo.fromJSON(t.instrumentationLibrary):void 0,logRecords:globalThis.Array.isArray(t==null?void 0:t.logRecords)?t.logRecords.map(e=>We.fromJSON(e)):[],schemaUrl:Kt(t.schemaUrl)?globalThis.String(t.schemaUrl):""}),toJSON(t){var e;const n={};return t.instrumentationLibrary!==void 0&&(n.instrumentationLibrary=mo.toJSON(t.instrumentationLibrary)),!((e=t.logRecords)===null||e===void 0)&&e.length&&(n.logRecords=t.logRecords.map(r=>We.toJSON(r))),t.schemaUrl!==void 0&&t.schemaUrl!==""&&(n.schemaUrl=t.schemaUrl),n},create:t=>yo.fromPartial(t??{}),fromPartial(t){var e,n;const r={instrumentationLibrary:void 0,logRecords:[],schemaUrl:""};return r.instrumentationLibrary=t.instrumentationLibrary!==void 0&&t.instrumentationLibrary!==null?mo.fromPartial(t.instrumentationLibrary):void 0,r.logRecords=((e=t.logRecords)===null||e===void 0?void 0:e.map(o=>We.fromPartial(o)))||[],r.schemaUrl=(n=t.schemaUrl)!==null&&n!==void 0?n:"",r}};function rO(){return{timeUnixNano:0,observedTimeUnixNano:0,severityNumber:0,severityText:"",body:void 0,attributes:[],droppedAttributesCount:0,flags:0,traceId:new Uint8Array(0),spanId:new Uint8Array(0)}}const We={encode(t,e=$.Writer.create()){if(t.timeUnixNano!==void 0&&t.timeUnixNano!==0&&e.uint32(9).fixed64(t.timeUnixNano),t.observedTimeUnixNano!==void 0&&t.observedTimeUnixNano!==0&&e.uint32(89).fixed64(t.observedTimeUnixNano),t.severityNumber!==void 0&&t.severityNumber!==0&&e.uint32(16).int32(t.severityNumber),t.severityText!==void 0&&t.severityText!==""&&e.uint32(26).string(t.severityText),t.body!==void 0&&zt.encode(t.body,e.uint32(42).fork()).ldelim(),t.attributes!==void 0&&t.attributes.length!==0)for(const n of t.attributes)Wt.encode(n,e.uint32(50).fork()).ldelim();return t.droppedAttributesCount!==void 0&&t.droppedAttributesCount!==0&&e.uint32(56).uint32(t.droppedAttributesCount),t.flags!==void 0&&t.flags!==0&&e.uint32(69).fixed32(t.flags),t.traceId!==void 0&&t.traceId.length!==0&&e.uint32(74).bytes(t.traceId),t.spanId!==void 0&&t.spanId.length!==0&&e.uint32(82).bytes(t.spanId),e},decode(t,e){const n=t instanceof $.Reader?t:$.Reader.create(t);let r=e===void 0?n.len:n.pos+e;const o=rO();for(;n.pos<r;){const i=n.uint32();switch(i>>>3){case 1:if(i!==9)break;o.timeUnixNano=sO(n.fixed64());continue;case 11:if(i!==89)break;o.observedTimeUnixNano=sO(n.fixed64());continue;case 2:if(i!==16)break;o.severityNumber=n.int32();continue;case 3:if(i!==26)break;o.severityText=n.string();continue;case 5:if(i!==42)break;o.body=zt.decode(n,n.uint32());continue;case 6:if(i!==50)break;o.attributes.push(Wt.decode(n,n.uint32()));continue;case 7:if(i!==56)break;o.droppedAttributesCount=n.uint32();continue;case 8:if(i!==69)break;o.flags=n.fixed32();continue;case 9:if(i!==74)break;o.traceId=n.bytes();continue;case 10:if(i!==82)break;o.spanId=n.bytes();continue}if((7&i)==4||i===0)break;n.skipType(7&i)}return o},fromJSON:t=>({timeUnixNano:Kt(t.timeUnixNano)?globalThis.Number(t.timeUnixNano):0,observedTimeUnixNano:Kt(t.observedTimeUnixNano)?globalThis.Number(t.observedTimeUnixNano):0,severityNumber:Kt(t.severityNumber)?VV(t.severityNumber):0,severityText:Kt(t.severityText)?globalThis.String(t.severityText):"",body:Kt(t.body)?zt.fromJSON(t.body):void 0,attributes:globalThis.Array.isArray(t==null?void 0:t.attributes)?t.attributes.map(e=>Wt.fromJSON(e)):[],droppedAttributesCount:Kt(t.droppedAttributesCount)?globalThis.Number(t.droppedAttributesCount):0,flags:Kt(t.flags)?globalThis.Number(t.flags):0,traceId:Kt(t.traceId)?oO(t.traceId):new Uint8Array(0),spanId:Kt(t.spanId)?oO(t.spanId):new Uint8Array(0)}),toJSON(t){var e;const n={};return t.timeUnixNano!=
54=void 0&&t.timeUnixNano!==0&&(n.timeUnixNano=Math.round(t.timeUnixNano)),t.observedTimeUnixNano!==void 0&&t.observedTimeUnixNano!==0&&(n.observedTimeUnixNano=Math.round(t.observedTimeUnixNano)),t.severityNumber!==void 0&&t.severityNumber!==0&&(n.severityNumber=function(r){switch(r){case G.SEVERITY_NUMBER_UNSPECIFIED:return"SEVERITY_NUMBER_UNSPECIFIED";case G.SEVERITY_NUMBER_TRACE:return"SEVERITY_NUMBER_TRACE";case G.SEVERITY_NUMBER_TRACE2:return"SEVERITY_NUMBER_TRACE2";case G.SEVERITY_NUMBER_TRACE3:return"SEVERITY_NUMBER_TRACE3";case G.SEVERITY_NUMBER_TRACE4:return"SEVERITY_NUMBER_TRACE4";case G.SEVERITY_NUMBER_DEBUG:return"SEVERITY_NUMBER_DEBUG";case G.SEVERITY_NUMBER_DEBUG2:return"SEVERITY_NUMBER_DEBUG2";case G.SEVERITY_NUMBER_DEBUG3:return"SEVERITY_NUMBER_DEBUG3";case G.SEVERITY_NUMBER_DEBUG4:return"SEVERITY_NUMBER_DEBUG4";case G.SEVERITY_NUMBER_INFO:return"SEVERITY_NUMBER_INFO";case G.SEVERITY_NUMBER_INFO2:return"SEVERITY_NUMBER_INFO2";case G.SEVERITY_NUMBER_INFO3:return"SEVERITY_NUMBER_INFO3";case G.SEVERITY_NUMBER_INFO4:return"SEVERITY_NUMBER_INFO4";case G.SEVERITY_NUMBER_WARN:return"SEVERITY_NUMBER_WARN";case G.SEVERITY_NUMBER_WARN2:return"SEVERITY_NUMBER_WARN2";case G.SEVERITY_NUMBER_WARN3:return"SEVERITY_NUMBER_WARN3";case G.SEVERITY_NUMBER_WARN4:return"SEVERITY_NUMBER_WARN4";case G.SEVERITY_NUMBER_ERROR:return"SEVERITY_NUMBER_ERROR";case G.SEVERITY_NUMBER_ERROR2:return"SEVERITY_NUMBER_ERROR2";case G.SEVERITY_NUMBER_ERROR3:return"SEVERITY_NUMBER_ERROR3";case G.SEVERITY_NUMBER_ERROR4:return"SEVERITY_NUMBER_ERROR4";case G.SEVERITY_NUMBER_FATAL:return"SEVERITY_NUMBER_FATAL";case G.SEVERITY_NUMBER_FATAL2:return"SEVERITY_NUMBER_FATAL2";case G.SEVERITY_NUMBER_FATAL3:return"SEVERITY_NUMBER_FATAL3";case G.SEVERITY_NUMBER_FATAL4:return"SEVERITY_NUMBER_FATAL4";case G.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(t.severityNumber)),t.severityText!==void 0&&t.severityText!==""&&(n.severityText=t.severityText),t.body!==void 0&&(n.body=zt.toJSON(t.body)),!((e=t.attributes)===null||e===void 0)&&e.length&&(n.attributes=t.attributes.map(r=>Wt.toJSON(r))),t.droppedAttributesCount!==void 0&&t.droppedAttributesCount!==0&&(n.droppedAttributesCount=Math.round(t.droppedAttributesCount)),t.flags!==void 0&&t.flags!==0&&(n.flags=Math.round(t.flags)),t.traceId!==void 0&&t.traceId.length!==0&&(n.traceId=iO(t.traceId)),t.spanId!==void 0&&t.spanId.length!==0&&(n.spanId=iO(t.spanId)),n},create:t=>We.fromPartial(t??{}),fromPartial(t){var e,n,r,o,i,s,a,u,c;const l=rO();return l.timeUnixNano=(e=t.timeUnixNano)!==null&&e!==void 0?e:0,l.observedTimeUnixNano=(n=t.observedTimeUnixNano)!==null&&n!==void 0?n:0,l.severityNumber=(r=t.severityNumber)!==null&&r!==void 0?r:0,l.severityText=(o=t.severityText)!==null&&o!==void 0?o:"",l.body=t.body!==void 0&&t.body!==null?zt.fromPartial(t.body):void 0,l.attributes=((i=t.attributes)===null||i===void 0?void 0:i.map(d=>Wt.fromPartial(d)))||[],l.droppedAttributesCount=(s=t.droppedAttributesCount)!==null&&s!==void 0?s:0,l.flags=(a=t.flags)!==null&&a!==void 0?a:0,l.traceId=(u=t.traceId)!==null&&u!==void 0?u:new Uint8Array(0),l.spanId=(c=t.spanId)!==null&&c!==void 0?c:new Uint8Array(0),l}};function oO(t){if(globalThis.Buffer)return Uint8Array.from(globalThis.Buffer.from(t,"base64"));{const e=globalThis.atob(t),n=new Uint8Array(e.length);for(let r=0;r<e.length;++r)n[r]=e.charCodeAt(r);return n}}function iO(t){if(globalThis.Buffer)return globalThis.Buffer.from(t).toString("base64");{const e=[];return t.forEach(n=>{e.push(globalThis.String.fromCharCode(n))}),globalThis.btoa(e.join(""))}}function sO(t){if(t.gt(globalThis.Number.MAX_SAFE_INTEGER))throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");return t.toNumber()}function Kt(t){return t!=null}$.util.Long!==it&&($.util.Long=it,$.configure());const aO="2.0.0",cO={"Content-Type":"application/x-protobuf","Content-Encoding":"gzip"},FV=nO;function uO(t){return Array.isArray(t)}function xi(t){return function(e){return!!e&&typeof e=="object"&&!uO(e)}(t)?{kvlistValue:{values:Object.entries(t).map(([e,n])=>({key:e,value:xi(n)}))}}:uO(t)?{arrayValue:{values:t.map(e=>xi(e))}}:typeof t=="string"?{stringValue:t}:typeof t=="number"?{doubleValue:t}:typeof t=="boolean"?{boolValue:t}:{}}class GV{constructor(e){this.config=e}constructLogData(e){var n,r,o;return{resourceLogs:[{resource:{attributes:(o=(r=xi(((n=this.config.resource)===null||n===void 0?void 0:n.attributes)||{}))===null||r===void 0?void 0:r.kvlistValue)===null||o===void 0?void 0:o.values},scopeLogs:[{scope:{name:"rum.rr-web",version:aO},logRecords:e.map(i=>{var s;return{body:xi(i.body),timeUnixNano:1e6*i.timeUnixNano,attributes:(s=xi(i.attributes||{}).kvlistValue)===null||s===void 0?void 0:s.values}})}]}]}}export(e){if(e.length===0)return;const n=this.constructLogData(e);this.config.debug&&console.log("otlp request",n);const r=bV(FV.encode(n).finish()),o=this.config.headers?Object.assign({},cO,this.config.headers):cO;fetch(this.config.beaconUrl,{method:"POST",body:r,headers:o}).catch(()=>{})}}class jV{constructor(e,n){this.logs=[],this.scheduledDelayMillis=(n==null?void 0:n.scheduledDelayMillis)||5e3,this.exporter=e,window.addEventListener("unload",()=>{this._flushAll()})}onLog(e){this.logs.push(e),this.timeout===void 0&&(this.timeout=setTimeout(()=>{this.timeout=void 0,this._flushAll()},this.scheduledDelayMillis))}_flushAll(){this.lastBatchSent=Date.now(),H.with(Ul(H.active()),()=>{const e=this.logs.splice(0,this.logs.length);this.exporter.export(e)})}}function HV(t,e,n){return{body:t,timeUnixNano:e,attributes:n}}class YV{constructor(e,n={}){var r,o;this.rrweb=e,this.options=n,this.bucketSize=100,this.refillRate=10,this.mutationBuckets={},this.loggedTracker={},this.refillBuckets=()=>
54{Object.keys(this.mutationBuckets).forEach(i=>{this.mutationBuckets[i]=this.mutationBuckets[i]+this.refillRate,this.mutationBuckets[i]>=this.bucketSize&&delete this.mutationBuckets[i]})},this.getNodeOrRelevantParent=i=>{const s=this.rrweb.mirror.getNode(i);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){const a=s.closest("svg");if(a)return[this.rrweb.mirror.getId(a),a]}return[i,s]},this.numberOfChanges=i=>{var s,a,u,c,l,d,p,h;return((a=(s=i.removes)===null||s===void 0?void 0:s.length)!==null&&a!==void 0?a:0)+((c=(u=i.attributes)===null||u===void 0?void 0:u.length)!==null&&c!==void 0?c:0)+((d=(l=i.texts)===null||l===void 0?void 0:l.length)!==null&&d!==void 0?d:0)+((h=(p=i.adds)===null||p===void 0?void 0:p.length)!==null&&h!==void 0?h:0)},this.throttleMutations=i=>{if(i.type!==3||i.data.source!==0)return i;const s=i.data,a=this.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(c=>{var l,d,p;const[h,_]=this.getNodeOrRelevantParent(c.id);return this.mutationBuckets[h]!==0&&(this.mutationBuckets[h]=(l=this.mutationBuckets[h])!==null&&l!==void 0?l:this.bucketSize,this.mutationBuckets[h]=Math.max(this.mutationBuckets[h]-1,0),this.mutationBuckets[h]===0&&(this.loggedTracker[h]||(this.loggedTracker[h]=!0,(p=(d=this.options).onBlockedNode)===null||p===void 0||p.call(d,h,_))),c)}));const u=this.numberOfChanges(s);return u!==0||a===u?i:void 0},this.refillRate=(r=this.options.refillRate)!==null&&r!==void 0?r:this.refillRate,this.bucketSize=(o=this.options.bucketSize)!==null&&o!==void 0?o:this.bucketSize,setInterval(()=>{this.refillBuckets()},1e3)}}var $V=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};const Yd=972800,zV=new TextEncoder,WV=new TextDecoder;let ki,$d,Bi,lO,Jn=!1,zd=0,Vi=!1,dO=1,pO=1;const Wd={get inited(){return!!Jn},init(t){if(Jn)return;if(typeof window>"u")return void console.error("Session recorder can't be ran in non-browser environments");let e=Q.getTracerProvider();if(e&&"getDelegate"in e&&(e=e.getDelegate()),!(e!=null&&e.resource))return void console.error("RUM OTEL Web must be inited before recorder.");const n=e.resource,{apiKey:r,url:o,debug:i}=t,s=$V(t,["apiKey","url","debug"]);ki=Q.getTracer("rum.rr-web",aO);const a=ki.startSpan("record init");if(!a.isRecording())return;a.end();const u=o??"https://in-otel.hyperdx.io/v1/logs",c={};r&&(c.authorization=`${r}`);const l=new GV({beaconUrl:u,debug:i,headers:c,resource:n}),d=new jV(l,{});$d=n.attributes["rum.sessionId"],zd=Date.now(),Bi=Bi??new YV(Cn,{onBlockedNode:(p,h)=>{const _=`OpenTelemetry Session Recorder: Rate limiting recording mutations on node ${p}. This can be due to excessive animations.`,f=Date.now(),m=ki.startSpan("console.warn",{kind:Xt.INTERNAL,startTime:f});m.setAttribute("component","console"),m.setAttribute("level","warn"),m.setAttribute("message",_),m.end(f),i&&console.warn(_,h),clearTimeout(lO),lO=setTimeout(()=>{Cn.takeFullSnapshot()},1e3)}}),Jn=Cn(Object.assign(Object.assign({maskAllInputs:!0,maskTextSelector:"*"},s),{emit(p){if(Vi)return;if(n.attributes["rum.sessionId"]!==$d){if(document.hidden)return;$d=n.attributes["rum.sessionId"],zd=Date.now(),dO=1,pO=1,Cn.takeFullSnapshot()}if(p.timestamp>zd+1446e4)return;const h=Bi?Bi.throttleMutations(p):p;if(!h)return;const _=h.timestamp,f=dO++,m=zV.encode(function(S){if(S.length>5e6){const g=/data:([\w/\-.]+);(\w+),([^)"]*)/gim,T=S.matchAll(g);for(const y of T)S=y[1].toLocaleLowerCase().slice(0,6)==="image/"?S.replace(y[0],"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg=="):S.replace(y[0],"")}return S}(JSON.stringify(h))),E=Math.ceil(m.byteLength/Yd);for(let S=0;S<E;S++){const g=S*Yd,T=(S+1)*Yd,y=HV(WV.decode(m.slice(g,T)),_,{"rr-web.offset":pO++,"rr-web.event":f,"rr-web.chunk":S+1,"rr-web.total-chunks":E});i&&console.log(y),d.onLog(y)}}}))},resume(){if(!Jn)return;const t=Vi;Vi=!1,t||(Cn.takeFullSnapshot(),ki.startSpan("record resume").end())},stop(){Jn&&(Vi&&ki.startSpan("record stop").end(),Vi=!0)}
54,deinit(){Jn&&(Jn(),Jn=!1)}};function Ao(){return typeof window<"u"}var qV=new class{constructor(){this._advancedNetworkCapture=!1}init({advancedNetworkCapture:t=!1,apiKey:e,blockClass:n,captureConsole:r,consoleCapture:o,debug:i=!1,disableIntercom:s=!1,disableReplay:a=!1,ignoreClass:u,ignoreUrls:c,instrumentations:l={},maskAllInputs:d=!0,maskAllText:p=!1,maskClass:h,recordCanvas:_=!1,sampling:f,service:m,tracePropagationTargets:E,url:S,tracesUrl:g,logsUrl:T,otelResourceAttributes:y}){var R;if(!Ao())return;e==null?console.warn("HyperDX: Missing apiKey, telemetry will not be saved."):e===""?console.warn("HyperDX: apiKey is empty string, telemetry will not be saved."):typeof e!="string"&&console.warn("HyperDX: apiKey must be a string, telemetry will not be saved.");const O=S??"https://in-otel.hyperdx.io",A=g??`${O}/v1/traces`,D=T??`${O}/v1/logs`;this._advancedNetworkCapture=t,In.init({debug:i,url:A,allowInsecureUrl:!0,apiKey:e,applicationName:m,ignoreUrls:c,resourceAttributes:y,instrumentations:{visibility:!0,console:(R=r??o)!==null&&R!==void 0&&R,fetch:{...E!=null?{propagateTraceHeaderCorsUrls:E}:{},advancedNetworkCapture:()=>this._advancedNetworkCapture},xhr:{...E!=null?{propagateTraceHeaderCorsUrls:E}:{},advancedNetworkCapture:()=>this._advancedNetworkCapture},...l}}),a!==!0&&Wd.init({apiKey:e,blockClass:n,debug:i,ignoreClass:u,maskAllInputs:d,maskTextClass:h,maskTextSelector:p?"*":void 0,recordCanvas:_,sampling:f,url:D});const I=Lp.trace.getTracer("@hyperdx/browser");s!==!0&&function(x){return new Promise((P,L)=>{let B=0;const U=setInterval(()=>{B>20&&(clearInterval(U),L(new Error(`Global ${x} not found`))),window[x]&&(clearInterval(U),P(window[x])),B++},100)})}("Intercom").then(()=>{window.Intercom("onShow",()=>{const x=this.getSessionUrl();if(x!=null){const P={hyperdxSessionUrl:x};window.Intercom("update",P),window.Intercom("trackEvent","HyperDX",P);const L=Date.now(),B=I.startSpan("intercom.onShow",{startTime:L});B.setAttribute("component","intercom"),B.end(L)}})}).catch(()=>{})}stopSessionRecorder(){Ao()&&Wd.stop()}resumeSessionRecorder(){Ao()&&Wd.resume()}addAction(t,e){Ao()&&In.addAction(t,e)}recordException(t,e){Ao()&&In.recordException(t,e)}enableAdvancedNetworkCapture(){this._advancedNetworkCapture=!0}disableAdvancedNetworkCapture(){this._advancedNetworkCapture=!1}setGlobalAttributes(t){Ao()&&In.setGlobalAttributes(t)}getSessionId(){return In.getSessionId()}getSessionUrl(){const t=Date.now(),e=144e5,n=t-e,r=t+e;return In.inited?`https://www.hyperdx.io/sessions?q=process.tag.rum.sessionId%3A"${In.getSessionId()}"&sid=${In.getSessionId()}&sfrom=${n}&sto=${r}&ts=${t}`:void 0}attachToReactErrorBoundary(t){if(!t)return console.warn("Attempted to attach to an ErrorBoundary that does not exist.");const e=this.recordException,n=t.prototype.componentDidCatch;t.prototype.componentDidCatch=function(r,o){const i=o==null?void 0:o.componentStack;e(r,{componentStack:i}),n.call(this,r,o)}}};return qV})}(za)),za.exports}var bO=f2();const _2=d2(bO),g2=p2({__proto__:null,default:_2},[bO]);export{g2 as i};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.