1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ab299fae-e723-462e-a302-d56b784792ef",t._sentryDebugIdIdentifier="sentry-dbid-ab299fae-e723-462e-a302-d56b784792ef")}catch(t){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8953],{2295:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useReportWebVitals",{enumerable:!0,get:function(){return i}});let n=r(12115),o=r(31862);function i(t){(0,n.useEffect)(()=>{(0,o.onCLS)(t),(0,o.onFID)(t),(0,o.onLCP)(t),(0,o.onINP)(t),(0,o.onFCP)(t),(0,o.onTTFB)(t)},[t])}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},4647:(t,e,r)=>{"use strict";var n;r.d(e,{X:()=>n}),function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(n||(n={}))},9456:t=>{"use strict";function e(t){return"function"==typeof t}var r=console.error.bind(console);function n(t,e,r){var n=!!t[e]&&t.propertyIsEnumerable(e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}function o(t){t&&t.logger&&(e(t.logger)?r=t.logger:r("new logger isn't a function, not replacing"))}function i(t,o,i){if(!t||!t[o])return void r("no original function "+o+" to wrap");if(!i){r("no wrapper function"),r(Error().stack);return}if(!e(t[o])||!e(i))return void r("original object and wrapper must be functions");var a=t[o],s=i(a,o);return n(s,"__original",a),n(s,"__unwrap",function(){t[o]===s&&n(t,o,a)}),n(s,"__wrapped",!0),n(t,o,s),s}function a(t,e){if(!t||!t[e]){r("no function to unwrap."),r(Error().stack);return}if(t[e].__unwrap)return t[e].__unwrap();r("no original to unwrap to -- has "+e+" already been unwrapped?")}o.wrap=i,o.massWrap=function(t,e,n){if(t)Array.isArray(t)||(t=[t]);else{r("must provide one or more modules to patch"),r(Error().stack);return}if(!(e&&Array.isArray(e)))return void r("must provide one or more functions to wrap on modules");t.forEach(function(t){e.forEach(function(e){i(t,e,n)})})},o.unwrap=a,o.massUnwrap=function(t,e){if(t)Array.isArray(t)||(t=[t]);else{r("must provide one or more modules to patch"),r(Error().stack);return}if(!(e&&Array.isArray(e)))return void r("must provide one or more functions to unwrap on modules");t.forEach(function(t){e.forEach(function(e){a(t,e)})})},t.exports=o},13627:(t,e,r)=>{"use strict";r.d(e,{J:()=>v});var n,o=r(40382),i=r(4647),a=r(74998),s=r(65740),u=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),l=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},f=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new u}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,c([this._that],l(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),p=r(55134);!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(n||(n={}));var d=r(58201),h=function(){function t(t,e){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var r=(0,s._)();this._maxExportBatchSize="number"==typeof(null==e?void 0:e.maxExportBatchSize)?e.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==e?void 0:e.maxQueueSize)?e.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==e?void 0:e.sc
1heduledDelayMillis)?e.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==e?void 0:e.exportTimeoutMillis)?e.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new f(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(o.s.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(t,e){},t.prototype.onEnd=function(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&i.X.SAMPLED)!=0&&this._addToBuffer(t)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var t=this;return Promise.resolve().then(function(){return t.onShutdown()}).then(function(){return t._flushAll()}).then(function(){return t._exporter.shutdown()})},t.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){0===this._droppedSpansCount&&o.s.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(o.s.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},t.prototype._flushAll=function(){var t=this;return new Promise(function(e,r){for(var n=[],o=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),i=0;i<o;i++)n.push(t._flushOneBatch());Promise.all(n).then(function(){e()}).catch(r)})},t.prototype._flushOneBatch=function(){var t=this;return(this._clearTimer(),0===this._finishedSpans.length)?Promise.resolve():new Promise(function(e,r){var o=setTimeout(function(){r(Error("Timeout"))},t._exportTimeoutMillis);a._.with((0,p.M1)(a._.active()),function(){t._finishedSpans.length<=t._maxExportBatchSize?(i=t._finishedSpans,t._finishedSpans=[]):i=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var i,a=function(){return t._exporter.export(i,function(t){var i;clearTimeout(o),t.code===n.SUCCESS?e():r(null!=(i=t.error)?i:Error("BatchSpanProcessor: span export failed"))})},s=null,u=0,l=i.length;u<l;u++){var c=i[u];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(null!=s||(s=[]),s.push(c.resource.waitForAsyncAttributes()))}null===s?a():Promise.all(s).then(a,function(t){(0,d.s)(t),r(t)})})})},t.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var e=function(){t._isExporting=!0,t._flushOneBatch().finally(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(e){t._isExporting=!1,(0,d.s)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();void 0===this._timer&&(this._timer=setTimeout(function(){return e()},this._scheduledDelayMillis),this._timer)}},t.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},t}(),g=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),v=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.onInit(r),n}return g(e,t),e.prototype.onInit=function(t){var e=this;(null==t?void 0:t.disableAutoFlushOnDocumentHide)!==!0&&"undefined"!=typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&e.forceFlush().catch(function(t){(0,d.s)(t)})},this._pageHideListener=function(){e.forceFlush().catch(function(t){(0,d.s)(t)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},e.prototype.onShutdown=function(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},e}(h)},14171:(t,e,r)=>{"use strict";function n(t){let{moduleIds:e}=t;return null}
1Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PreloadChunks",{enumerable:!0,get:function(){return n}}),r(95155),r(47650),r(8567),r(77278)},15735:(t,e,r)=>{"use strict";r.d(e,{q:()=>R});var n=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(){function t(){}return t.prototype.createGauge=function(t,e){return v},t.prototype.createHistogram=function(t,e){return _},t.prototype.createCounter=function(t,e){return g},t.prototype.createUpDownCounter=function(t,e){return m},t.prototype.createObservableGauge=function(t,e){return E},t.prototype.createObservableCounter=function(t,e){return y},t.prototype.createObservableUpDownCounter=function(t,e){return T},t.prototype.addBatchObservableCallback=function(t,e){},t.prototype.removeBatchObservableCallback=function(t){},t}(),i=function(){},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.add=function(t,e){},e}(i),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.add=function(t,e){},e}(i),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.record=function(t,e){},e}(i),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.record=function(t,e){},e}(i),c=function(){function t(){}return t.prototype.addCallback=function(t){},t.prototype.removeCallback=function(t){},t}(),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(c),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(c),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(c),h=new o,g=new a,v=new u,_=new l,m=new s,y=new f,E=new p,T=new d,b=new(function(){function t(){}return t.prototype.getMeter=function(t,e,r){return h},t}()),S=r(86405),w=r(27963),O="metrics",R=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(t){return(0,S.$G)(O,t,w.K.instance())},t.prototype.getMeterProvider=function(){return(0,S.mS)(O)||b},t.prototype.getMeter=function(t,e,r){return this.getMeterProvider().getMeter(t,e,r)},t.prototype.disable=function(){(0,S.kv)(O,w.K.instance())},t})().getInstance()},24437:(t,e,r)=>{"use strict";function n(t){let{reason:e,children:r}=t;return r}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),r(24553)},27599:(t,e,r)=>{"use strict";r.d(e,{bL:()=>b,zi:()=>S});var n=r(12115),o=r(92556),i=r(94446),a=r(3468),s=r(23558),u=r(78108),l=r(84288),c=r(97602),f=r(95155),p="Switch",[d,h]=(0,a.A)(p),[g,v]=d(p),_=n.forwardRef((t,e)=>{let{__scopeSwitch:r,name:a,checked:u,defaultChecked:l,required:d,disabled:h,value:v="on",onCheckedChange:_,form:m,...y}=t,[b,S]=n.useState(null),w=(0,i.s)(e,t=>S(t)),O=n.useRef(!1),R=!b||m||!!b.closest("form"),[L,A]=(0,s.i)({prop:u,defaultProp:l??!1,onChange:_,caller:p});return(0,f.jsxs)(g,{scope:r,checked:L,disabled:h,children:[(0,f.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":L,"aria-required":d,"data-state":T(L),"data-disabled":h?"":void 0,disabled:h,value:v,...y,ref:w,onClick:(0,o.m)(t.onClick,t=>{A(t=>!t),R&&(O.current=t.isPropagationStopped(),O.current||t.stopPropagation())})}),R&&(0,f.jsx)(E,{control:b,bubbles:!O.current,name:a,value:v,checked:L,required:d,disabled:h,form:m,style:{transform:"translateX(-100%)"}})]})});_.displayName=p;var m="SwitchThumb",y=n.forwardRef((t,e)=>{let{__scopeSwitch:r,...n}=t,o=v(m,r);return(0,f.jsx)(c.sG.span,{"data-state":T(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:e})});y.displayName=m;var E=n.forwardRef((t,e)=>{let{__scopeSwitch:r,control:o,checked:a,bubbles:s=!0,...c}=t,p=n.useRef(null),d=(0,i.s)(p,e),h=(0,u.Z)(a),g=(0,l.X)(o);return n.useEffect(()=>{let t=p.current;if(!t)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(h!==a&&e){let r=new Event("click",{bubbles:s});e.call(t,a),t.dispatchEvent(r)}},[h,a,s]),(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...c,tabIndex:-1,ref:d,style:{...c.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function T(t){return t?"checked":"unchecked"}E.displayName="SwitchBubbleInput";var b=_,S=y},27963:(t,e,r)=>{"use strict";r.d(e,{K:()=>f});var n=r(86405),o=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},a=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s("debug",this._namespace,t)},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s("error",this._namespace,t)},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s("info",this._namespace,t)},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s("warn",this._namespace,t)},t.prototype.verbose=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s("verbose",this._namespace,t)},t}();function s(t,e,r){var a=(0,n.mS)("diag");if(a)return r.unshift(e),a[t].apply(a,i([],o(r),!1))}var u=r(36285),l=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},f=function(){function t(){function t(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=(0,n.mS)("diag");if(o)return o[t].apply(o,c([],l(e),!1))}}var e=this;e.setLogger=function(t,r){if(void 0===r&&(r={logLevel:u.u.INFO}),t===e){var o,i,a,s=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!=(o=s.stack)?o:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,n.mS)("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return t<u.u.NONE?t=u.u.NONE:t>u.u.ALL&&(t=u.u.ALL),e=e||{},{error:r("error",u.u.ERROR),warn:r("warn",u.u.WARN),info:r("info",u.u.INFO),debug:r("debug",u.u.DEBUG),verbose
1:r("verbose",u.u.VERBOSE)}}(null!=(i=r.logLevel)?i:u.u.INFO,t);if(l&&!r.suppressOverrideMessage){var f=null!=(a=Error().stack)?a:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+f),c.warn("Current logger will overwrite one already registered from "+f)}return(0,n.$G)("diag",c,e,!0)},e.disable=function(){(0,n.kv)("diag",e)},e.createComponentLogger=function(t){return new a(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}()},30403:(t,e,r)=>{"use strict";function n(t){return Symbol.for(t)}r.d(e,{l:()=>o,n:()=>n});var o=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}}},31862:t=>{!function(){"use strict";var e={};e.d=function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},void 0!==e&&(e.ab="//");var r={};e.r(r),e.d(r,{CLSThresholds:function(){return L},FCPThresholds:function(){return O},FIDThresholds:function(){return tt},INPThresholds:function(){return F},LCPThresholds:function(){return z},TTFBThresholds:function(){return G},onCLS:function(){return A},onFCP:function(){return R},onFID:function(){return te},onINP:function(){return H},onLCP:function(){return V},onTTFB:function(){return q}});var n,o,i,a,s,u=-1,l=function(t){addEventListener("pageshow",function(e){e.persisted&&(u=e.timeStamp,t(e))},!0)},c=function(){var t=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},f=function(){var t=c();return t&&t.activationStart||0},p=function(t,e){var r=c(),n="navigate";return u>=0?n="back-forward-cache":r&&(document.prerendering||f()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:n}},d=function(t,e,r){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(t){Promise.resolve().then(function(){e(t.getEntries())})});return n.observe(Object.assign({type:t,buffered:!0},r||{})),n}}catch(t){}},h=function(t,e,r,n){var o,i;return function(a){var s;e.value>=0&&(a||n)&&((i=e.value-(o||0))||void 0===o)&&(o=e.value,e.delta=i,s=e.value,e.rating=s>r[1]?"poor":s>r[0]?"needs-improvement":"good",t(e))}},g=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},v=function(t){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&t()})},_=function(t){var e=!1;return function(){e||(t(),e=!0)}},m=-1,y=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},E=function(t){"hidden"===document.visibilityState&&m>-1&&(m="visibilitychange"===t.type?t.timeStamp:0,b())},T=function(){addEventListener("visibilitychange",E,!0),addEventListener("prerenderingchange",E,!0)},b=function(){removeEventListener("visibilitychange",E,!0),removeEventListener("prerenderingchange",E,!0)},S=function(){return m<0&&(m=y(),T(),l(function(){setTimeout(function(){m=y(),T()},0)})),{get firstHiddenTime(){return m}}},w=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},O=[1800,3e3],R=function(t,e){e=e||{},w(function(){var r,n=S(),o=p("FCP"),i=d("paint",function(t){t.forEach(function(t){"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(o.value=Math.max(t.startTime-f(),0),o.entries.push(t),r(!0)))})});i&&(r=h(t,o,O,e.reportAllChanges),l(function(n){r=h(t,o=p("FCP"),O,e.reportAllChanges),g(function(){o.value=performance.now()-n.timeStamp,r(!0)})}))})},L=[.1,.25],A=function(t,e){e=e||{},R(_(function(){var r,n=p("CLS",0),o=0,i=[],a=function(t){t.forEach(function(t){if(!t.hadRecentInput){var e=i[0],r=i[i.length-1];o&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(o+=t.value,i.push(t)):(o=t.value,i=[t])}}),o>n.value&&(n.value=o,n.entries=i,r())},s=d("layout-shift",a);s&&(r=h(t,n,L,e.reportAllChanges),v(function(){a(s.takeRecords()),r(!0)}),l(function(){o=0,r=h(t,n=p("CLS",0),L,e.reportAllChanges),g(function(){return r()})}),setTimeout(r,0))}))},P=0,C=1/0,N=0,I=function(t){t.forEach(function(t){t.interactionId&&(C=Math.min(C,t.interactionId),P=(N=Math.max(N,t.interactionId))?(N-C)/7+1:0)})},x=function(){"interactionCount"in performance||n||(n=d("event",I,{type:"event",buffered:!0,durationThreshold:0}))},D=[],M=new Map,k=0,j=[],U=function(t){if(j.forEach(function(e){return e(t)}),t.interactionId||"first-input"===t.entryType){var e=D[D.length-1],r=M.get(t.interactionId);if(r||D.length<10||t.duration>e.latency){if(r)t.duration>r.latency?(r.entries=[t],r.latency=t.duration):t.duration===r.latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t);else{var n={id:t.interactionId,latency:t.duration,entries:[t]};M.set(n.id,n),D.push(n)}D.sort(function(t,e){return e.latency-t.latency}),D.length>
110&&D.splice(10).forEach(function(t){return M.delete(t.id)})}}},B=function(t){var e=self.requestIdleCallback||self.setTimeout,r=-1;return t=_(t),"hidden"===document.visibilityState?t():(r=e(t),v(t)),r},F=[200,500],H=function(t,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e=e||{},w(function(){x();var r,o,i=p("INP"),a=function(t){B(function(){t.forEach(U);var e,r=(e=Math.min(D.length-1,Math.floor(((n?P:performance.interactionCount||0)-k)/50)),D[e]);r&&r.latency!==i.value&&(i.value=r.latency,i.entries=r.entries,o())})},s=d("event",a,{durationThreshold:null!=(r=e.durationThreshold)?r:40});o=h(t,i,F,e.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),v(function(){a(s.takeRecords()),o(!0)}),l(function(){k=0,D.length=0,M.clear(),o=h(t,i=p("INP"),F,e.reportAllChanges)}))}))},z=[2500,4e3],X={},V=function(t,e){e=e||{},w(function(){var r,n=S(),o=p("LCP"),i=function(t){e.reportAllChanges||(t=t.slice(-1)),t.forEach(function(t){t.startTime<n.firstHiddenTime&&(o.value=Math.max(t.startTime-f(),0),o.entries=[t],r())})},a=d("largest-contentful-paint",i);if(a){r=h(t,o,z,e.reportAllChanges);var s=_(function(){X[o.id]||(i(a.takeRecords()),a.disconnect(),X[o.id]=!0,r(!0))});["keydown","click"].forEach(function(t){addEventListener(t,function(){return B(s)},!0)}),v(s),l(function(n){r=h(t,o=p("LCP"),z,e.reportAllChanges),g(function(){o.value=performance.now()-n.timeStamp,X[o.id]=!0,r(!0)})})}})},G=[800,1800],$=function t(e){document.prerendering?w(function(){return t(e)}):"complete"!==document.readyState?addEventListener("load",function(){return t(e)},!0):setTimeout(e,0)},q=function(t,e){e=e||{};var r=p("TTFB"),n=h(t,r,G,e.reportAllChanges);$(function(){var o=c();o&&(r.value=Math.max(o.responseStart-f(),0),r.entries=[o],n(!0),l(function(){(n=h(t,r=p("TTFB",0),G,e.reportAllChanges))(!0)}))})},W={passive:!0,capture:!0},K=new Date,Y=function(t,e){o||(o=e,i=t,a=new Date,J(removeEventListener),Q())},Q=function(){if(i>=0&&i<a-K){var t={entryType:"first-input",name:o.type,target:o.target,cancelable:o.cancelable,startTime:o.timeStamp,processingStart:o.timeStamp+i};s.forEach(function(e){e(t)}),s=[]}},Z=function(t){if(t.cancelable){var e,r,n,o=(t.timeStamp>
11e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?(e=function(){Y(o,t),n()},r=function(){n()},n=function(){removeEventListener("pointerup",e,W),removeEventListener("pointercancel",r,W)},addEventListener("pointerup",e,W),addEventListener("pointercancel",r,W)):Y(o,t)}},J=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,Z,W)})},tt=[100,300],te=function(t,e){e=e||{},w(function(){var r,n=S(),a=p("FID"),u=function(t){t.startTime<n.firstHiddenTime&&(a.value=t.processingStart-t.startTime,a.entries.push(t),r(!0))},c=function(t){t.forEach(u)},f=d("first-input",c);r=h(t,a,tt,e.reportAllChanges),f&&(v(_(function(){c(f.takeRecords()),f.disconnect()})),l(function(){r=h(t,a=p("FID"),tt,e.reportAllChanges),s=[],i=-1,o=null,J(addEventListener),s.push(u),Q()}))})};t.exports=r}()},33714:(t,e,r)=>{"use strict";r.d(e,{$:()=>_});var n=r(86405),o=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),i={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},a={set:function(t,e,r){null!=t&&(t[e]=r)}},s=r(39925),u=(0,r(30403).n)("OpenTelemetry Baggage Key");function l(t){return t.getValue(u)||void 0}function c(){return l(s._.getInstance().active())}function f(t,e){return t.setValue(u,e)}function p(t){return t.deleteValue(u)}var d=r(56551),h=r(27963),g="propagation",v=new o,_=(function(){function t(){this.createBaggage=d.L,this.getBaggage=l,this.getActiveBaggage=c,this.setBaggage=f,this.deleteBaggage=p}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return(0,n.$G)(g,t,h.K.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=a),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=i),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){(0,n.kv)(g,h.K.instance())},t.prototype._getGlobalPropagator=function(){return(0,n.mS)(g)||v},t})().getInstance()},35719:(t,e,r)=>{"use strict";r.d(e,{K9:()=>c});var n="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},o=Symbol.for("io.opentelemetry.js.api.logs"),i=function(){function t(){}return t.prototype.emit=function(t){},t}(),a=new i,s=new(function(){function t(){}return t.prototype.getLogger=function(t,e,r){return new i},t}()),u=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.emit=function(t){this._getLogger().emit(t)},t.prototype._getLogger=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):a},t}(),l=function(){function t(){}return t.prototype.getLogger=function(t,e,r){var n;return null!=(n=this.getDelegateLogger(t,e,r))?n:new u(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!=(t=this._delegate)?t:s},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateLogger=function(t,e,r){var n;return null==(n=this._delegate)?void 0:n.getLogger(t,e,r)},t}(),c=(function(){function t(){this._proxyLoggerProvider=new l}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalLoggerProvider=function(t){return n[o]?this.getLoggerProvider():(n[o]=function(e){return 1===e?t:s},this._proxyLoggerProvider.setDelegate(t),t)},t.prototype.getLoggerProvider=function(){var t,e;return null!=(e=null==(t=n[o])?void 0:t.call(n,1))?e:this._proxyLoggerProvider},t.prototype.getLogger=function(t,e,r){return this.getLoggerProvider().getLogger(t,e,r)},t.prototype.disable=function(){delete n[o],this._proxyLoggerProvider=new l},t})().getInstance()},36285:(t,e,r)=>{"use strict";var n;r.d(e,{u:()=>n}),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"}(n||(n={}))},36505:(t,e,r)=>{"use strict";r.d(e,{Q:()=>M});var n,o=function(){function t(t){this._delegate=t}
1return t.prototype.export=function(t,e){this._delegate.export(t,e)},t.prototype.forceFlush=function(){return this._delegate.forceFlush()},t.prototype.shutdown=function(){return this._delegate.shutdown()},t}(),i=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function a(t){return Object.keys(t).map(function(e){return function t(e,r){return{key:e,value:function e(r){var n=typeof r;return"string"===n?{stringValue:r}:"number"===n?Number.isInteger(r)?{intValue:r}:{doubleValue:r}:"boolean"===n?{boolValue:r}:r instanceof Uint8Array?{bytesValue:r}:Array.isArray(r)?{arrayValue:{values:r.map(e)}}:"object"===n&&null!=r?{kvlistValue:{values:Object.entries(r).map(function(e){var r=i(e,2);return t(r[0],r[1])})}}:{}}(r)}}(e,t[e])})}function s(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function u(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n<t.length;n+=2){var o=s(t.charCodeAt(n)),i=s(t.charCodeAt(n+1));e[r++]=o<<4|i}return e}function l(t){var e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function c(t){var e;return{low:Number(BigInt.asUintN(32,e=l(t))),high:Number(BigInt.asUintN(32,e>>BigInt(32)))}}var f="undefined"!=typeof BigInt?function(t){return l(t).toString()}:function(t){return 1e9*t[0]+t[1]};function p(t){return t}function d(t){if(void 0!==t)return u(t)}var h={encodeHrTime:c,encodeSpanContext:u,encodeOptionalSpanContext:d},g=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},_={serializeRequest:function(t){var e={resourceSpans:function(t,e){for(var r=function(t){var e,r,n=new Map;try{for(var o=g(t),i=o.next();!i.done;i=o.next()){var a=i.value,s=n.get(a.resource);s||(s=new Map,n.set(a.resource,s));var u=a.instrumentationLibrary.name+"@"+(a.instrumentationLibrary.version||"")+":"+(a.instrumentationLibrary.schemaUrl||""),l=s.get(u);l||(l=[],s.set(u,l)),l.push(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}(t),n=[],o=r.entries(),i=o.next();!i.done;){for(var s=v(i.value,2),u=s[0],l=s[1],c=[],f=l.values(),p=f.next();!p.done;){var d=p.value;if(d.length>0){var h,_=d.map(function(t){return function(t,e){var r,n=t.spanContext(),o=t.status;return{traceId:e.encodeSpanContext(n.traceId),spanId:e.encodeSpanContext(n.spanId),parentSpanId:e.encodeOptionalSpanContext(t.parentSpanId),traceState:null==(r=n.traceState)?void 0:r.serialize(),name:t.name,kind:null==t.kind?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:a(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(t){var r,n;return r=t,n=e,{attributes:r.attributes?a(r.attributes):[],name:r.name,timeUnixNano:n.encodeHrTime(r.time),droppedAttributesCount:r.droppedAttributesCount||0}}),droppedEventsCount:t.droppedEventsCount,status:{code:o.code,message:o.message},links:t.links.map(function(t){return function(t,e){var r;return{attributes:t.attributes?a(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:null==(r=t.context.traceState)?void 0:r.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}(t,e)}),droppedLinksCount:t.droppedLinksCount}}(t,e)});c.push({scope:{name:(h=d[0].instrumentationLibrary).name,version:h.version},spans:_,schemaUrl:d[0].instrumentationLibrary.schemaUrl})}p=f.next()}var m={resource:{attributes:a(u.attributes),droppedAttributesCount:0},scopeSpans:c,schemaUrl:void 0};n.push(m),i=o.next()}return n}(t,function(t){if(void 0===t)return h;var e,r,n=null==(e=t.useLongBits)||e,o=null!=(r=t.useHex)&&r;return{encodeHrTime:n?c:f,encodeSpanContext:o?p:u,encodeOptionalSpanContext:o?p:d}}({useHex:!0,useLongBits:!1}))};return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:function(t){return JSON.parse(new TextDecoder().decode(t))}},m=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}
1finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},y=function(){function t(t){this._transport=t}return t.prototype.retry=function(t,e,r){var n=this;return new Promise(function(o,i){setTimeout(function(){n._transport.send(t,e).then(o,i)},r)})},t.prototype.send=function(t,e){var r,n,o,i,a;return n=this,o=void 0,i=void 0,a=function(){var n,o,i,a,s,u,l;return m(this,function(c){switch(c.label){case 0:return n=Date.now()+e,[4,this._transport.send(t,e)];case 1:o=c.sent(),i=5,a=1e3,c.label=2;case 2:if(!("retryable"===o.status&&i>0))return[3,4];if(i--,s=Math.max(Math.min(a,5e3)+(.4*Math.random()-.2),0),a*=1.5,(u=null!=(r=o.retryInMillis)?r:s)>(l=n-Date.now()))return[2,o];return[4,this.retry(t,l,u)];case 3:return o=c.sent(),[3,2];case 4:return[2,o]}})},new(i||(i=Promise))(function(t,e){function r(t){try{u(a.next(t))}catch(t){e(t)}}function s(t){try{u(a.throw(t))}catch(t){e(t)}}function u(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(r,s)}u((a=a.apply(n,o||[])).next())})},t.prototype.shutdown=function(){return this._transport.shutdown()},t}();function E(t){return new y(t.transport)}var T=r(40382),b=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},S=function(){function t(t){this._parameters=t}return t.prototype.send=function(t,e){var r=this;return new Promise(function(n){var o=new XMLHttpRequest;o.timeout=e,o.open("POST",r._parameters.url),Object.entries(r._parameters.headers()).forEach(function(t){var e=b(t,2),r=e[0],n=e[1];o.setRequestHeader(r,n)}),o.ontimeout=function(t){n({status:"failure",error:Error("XHR request timed out")})},o.onreadystatechange=function(){o.status>=200&&o.status<=299?(T.s.debug("XHR success"),n({status:"success"})):o.status&&[429,502,503,504].includes(o.status)?n({status:"retryable",retryInMillis:function(t){if(null!=t){var e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?1e3*e:-1;var r=new Date(t).getTime()-Date.now();return r>=0?r:0}}(o.getResponseHeader("Retry-After"))}):0!==o.status&&n({status:"failure",error:Error("XHR request failed with non-retryable status")})},o.onabort=function(){n({status:"failure",error:Error("XHR request aborted")})},o.onerror=function(){n({status:"failure",error:Error("XHR request errored")})},o.send(t)})},t.prototype.shutdown=function(){},t}(),w=function(){function t(t){this._params=t}return t.prototype.send=function(t){var e=this;return new Promise(function(r){navigator.sendBeacon(e._params.url,new Blob([t],{type:e._params.blobType}))?(T.s.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:Error("SendBeacon failed")})})},t.prototype.shutdown=function(){},t}(),O=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}
1finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},R=function(){function t(t){this._sendingPromises=[],this._concurrencyLimit=t}return t.prototype.pushPromise=function(t){var e=this;if(this.hasReachedLimit())throw Error("Concurrency Limit reached");this._sendingPromises.push(t);var r=function(){var r=e._sendingPromises.indexOf(t);e._sendingPromises.splice(r,1)};t.then(r,r)},t.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},t.prototype.awaitAll=function(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=function(){return O(this,function(t){switch(t.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return t.sent(),[2]}})},new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},t}();!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(n||(n={}));var L=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),A=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.name="OTLPExporterError",o.data=n,o.code=r,o}return L(e,t),e}(Error),P=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}
1finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},C=function(){function t(t,e,r,n,o){this._transport=t,this._serializer=e,this._responseHandler=r,this._promiseQueue=n,this._timeout=o,this._diagLogger=T.s.createComponentLogger({namespace:"OTLPExportDelegate"})}return t.prototype.export=function(t,e){var r=this;if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit())return void e({code:n.FAILED,error:Error("Concurrent export limit reached")});var o=this._serializer.serializeRequest(t);if(null==o)return void e({code:n.FAILED,error:Error("Nothing to send")});this._promiseQueue.pushPromise(this._transport.send(o,this._timeout).then(function(t){if("success"===t.status){if(null!=t.data)try{r._responseHandler.handleResponse(r._serializer.deserializeResponse(t.data))}catch(e){r._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",e,t.data)}e({code:n.SUCCESS});return}if("failure"===t.status&&t.error)return void e({code:n.FAILED,error:t.error});"retryable"===t.status?e({code:n.FAILED,error:new A("Export failed with retryable status")}):e({code:n.FAILED,error:new A("Export failed with unknown error")})},function(t){return e({code:n.FAILED,error:t})}))},t.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},t.prototype.shutdown=function(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=function(){return P(this,function(t){switch(t.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return t.sent(),this._transport.shutdown(),[2]}})},new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},t}();function N(t,e,r){var n,o;return n={transport:r,serializer:e,promiseHandler:new R(t.concurrencyLimit)},o={timeout:t.timeoutMillis},new C(n.transport,n.serializer,{handleResponse:function(t){null!=t&&Object.prototype.hasOwnProperty.call(t,"partialSuccess")&&null!=t.partialSuccess&&0!==Object.keys(t.partialSuccess).length&&T.s.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}},n.promiseHandler,o.timeout)}var I=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},x=function(){return(x=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},D=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),M=function(t){function e(e){return void 0===e&&(e={}),t.call(this,function(t,e,r,n){var o,i,a,s,u,l,c,f,p,d,h,g,v,_,m,y,b,O,R,L=!!t.headers||"function"!=typeof navigator.sendBeacon,A=(o={url:t.url,timeoutMillis:t.timeoutMillis,headers:function(t){if(null!=t)return function(){return t}}(t.headers),concurrencyLimit:t.concurrencyLimit},i={},a=x(x({},{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}),{headers:function(){return n},url:"http://localhost:4318/"+r,agentOptions:{keepAlive:!0}}),x(x({},{timeoutMillis:function(t){if(!Number.isNaN(t)&&Number.isFinite(t)&&t>0)return t;throw Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}(null!=(p=null!=(f=o.timeoutMillis)?f:i.timeoutMillis)?p:a.timeoutMillis),concurrencyLimit:null!=(h=null!=(d=o.concurrencyLimit)?d:i.concurrencyLimit)?h:a.concurrencyLimit,compression:null!=(v=null!=(g=o.compression)?g:i.compression)?v:a.compression}),{headers:(_=o.headers,m=function(){var t,e={};return Object.entries(null!=(t=null==_?void 0:_())?t:{}
1).forEach(function(t){var r=I(t,2),n=r[0],o=r[1];void 0!==o?e[n]=String(o):T.s.warn('Header "'+n+'" has invalid value ('+o+") and will be ignored")}),e},y=i.headers,b=a.headers,O=x({},b()),R={},function(){return null!=y&&Object.assign(R,y()),null!=m&&Object.assign(R,m()),Object.assign(R,O)}),url:null!=(u=null!=(s=function(t){if(null!=t)try{return new URL(t),t}catch(e){throw Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}(o.url))?s:i.url)?u:a.url,agentOptions:null!=(c=null!=(l=o.agentOptions)?l:i.agentOptions)?c:a.agentOptions}));return L?N(A,e,E({transport:new S(A)})):N(A,e,E({transport:new w({url:A.url,blobType:A.headers()["Content-Type"]})}))}(e,_,"v1/traces",{"Content-Type":"application/json"}))||this}return D(e,t),e}(o)},38569:(t,e,r)=>{"use strict";var n;r.d(e,{v:()=>n}),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"}(n||(n={}))},39925:(t,e,r)=>{"use strict";r.d(e,{_:()=>d});var n=r(30403),o=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},a=function(){function t(){}return t.prototype.active=function(){return n.l},t.prototype.with=function(t,e,r){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a];return e.call.apply(e,i([r],o(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),s=r(86405),u=r(27963),l=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},f="context",p=new a,d=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return(0,s.$G)(f,t,u.K.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return(n=this._getContextManager()).with.apply(n,c([t,e,r],l(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return(0,s.mS)(f)||p},t.prototype.disable=function(){this._getContextManager().disable(),(0,s.kv)(f,u.K.instance())},t}()},40382:(t,e,r)=>{"use strict";r.d(e,{s:()=>n});var n=r(27963).K.instance()},43400:(t,e,r)=>{"use strict";r.d(e,{u:()=>S});var n=r(86405),o=r(39925),i=r(30403),a=r(85768),s=(0,i.n)("OpenTelemetry Context Key SPAN");function u(t){return t.getValue(s)||void 0}function l(){return u(o._.getInstance().active())}function c(t,e){return t.setValue(s,e)}function f(t){return t.deleteValue(s)}function p(t,e){return c(t,new a.d(e))}function d(t){var e;return null==(e=u(t))?void 0:e.spanContext()}var h=r(97069),g=o._.getInstance(),v=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=g.active()),null==e?void 0:e.root)return new a.d;var n,o=r&&d(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&(0,h.YA)(o)?new a.d(o):new a.d},t.prototype.startActiveSpan=function(t,e,r,n){if(!(arguments.length<2)){2==arguments.length?a=e:3==arguments.length?(o=e,a=r):(o=e,i=r,a=n);var o,i,a,s=null!=i?i:g.active(),u=this.startSpan(t,o,s),l=c(s,u);return g.with(l,a,void 0,u)}},t}(),_=new v,m=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):_},t}(),y=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new v},t}()),E=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!=(n=this.getDelegateTracer(t,e,r))?n:new m(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!=(t=this._delegate)?t:y},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null==(n=this._delegate)?void 0:n.getTracer(t,e,r)},t}(),T=r(27963),b="trace",S=(function(){function t(){this._proxyTracerProvider=new E,this.wrapSpanContext=h.IP,this.isSpanContextValid=h.YA,this.deleteSpan=f,this.get
1Span=u,this.getActiveSpan=l,this.getSpanContext=d,this.setSpan=c,this.setSpanContext=p}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=(0,n.$G)(b,this._proxyTracerProvider,T.K.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return(0,n.mS)(b)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){(0,n.kv)(b,T.K.instance()),this._proxyTracerProvider=new E},t})().getInstance()},54612:(t,e,r)=>{"use strict";var n;r.d(e,{R:()=>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"}(n||(n={}))},55134:(t,e,r)=>{"use strict";r.d(e,{M1:()=>o,Zf:()=>i});var n=(0,r(30403).n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function o(t){return t.setValue(n,!0)}function i(t){return!0===t.getValue(n)}},56551:(t,e,r)=>{"use strict";r.d(e,{B:()=>c,L:()=>l});var n=r(27963),o=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=o(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=new t(this._entries);try{for(var s=i(n),u=s.next();!u.done;u=s.next()){var l=u.value;a._entries.delete(l)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return a},t.prototype.clear=function(){return new t},t}(),s=Symbol("BaggageEntryMetadata"),u=n.K.instance();function l(t){return void 0===t&&(t={}),new a(new Map(Object.entries(t)))}function c(t){return"string"!=typeof t&&(u.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:s,toString:function(){return t}}}},58153:(t,e,r)=>{"use strict";r.d(e,{R:()=>a});var n=r(43400),o=r(15735),i=r(35719);function a(t){for(var e,r,a=t.tracerProvider||n.u.getTracerProvider(),s=t.meterProvider||o.q.getMeterProvider(),u=t.loggerProvider||i.K9.getLoggerProvider(),l=null!=(r=null==(e=t.instrumentations)?void 0:e.flat())?r:[],c=0,f=l.length;c<f;c++){var p=l[c];a&&p.setTracerProvider(a),s&&p.setMeterProvider(s),u&&p.setLoggerProvider&&p.setLoggerProvider(u),p.getConfig().enabled||p.enable()}return function(){l.forEach(function(t){return t.disable()})}}},58201:(t,e,r)=>{"use strict";r.d(e,{s:()=>i});var n=r(40382),o=function(t){var e;n.s.error("string"==typeof(e=t)?e:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(e)))};function i(t){try{o(t)}catch(t){}}},58366:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(12115),o="undefined"!=typeof window;let i=function(t,e){var r=(0,n.useState)(void 0!==e?e:!!o&&window.matchMedia(t).matches),i=r[0],a=r[1];return(0,n.useEffect)(function(){var e=!0,r=window.matchMedia(t),n=function(){e&&a(!!r.matches)};return r.addEventListener("change",n),a(r.matches),function(){e=!1,r.removeEventListener("change",n)}},[t]),i}},63111:(t,e,r)=>{"use strict";let n,o;r.d(e,{X:()=>tr});var i,a,s,u=r(43400),l=r(74998),c=r(33714),f=r(38569),p=r(67516),d=r(40382),h=r(15735);let g="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},v=Symbol.for("io.opentelemetry.js.api.logs");class _{emit(t){}}let m=new _;class y{getLogger(t,e,r){return new _}}let E=new y;class T{constructor(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;let t=this._provider._getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):m}}class b{getLogger(t,e,r){var n;return null!=(n=this._getDelegateLogger(t,e,r))?n:new T(this,t,e,r)}_getDelegate(){var t;return null!=(t=this._delegate)?t:E}_setDelegate(t){this._delegate=t}_getDelegateLogger(t,e,r){var n;return null==(n=this._delegate)?void 0:n.getLogger(t,e,r)}}class S{constructor(){this._proxyLoggerProvider=new b}static getInstance(){return this._instance||(this._instance=new S),this._instance}setGlobalLoggerProvider(t){return g[v]?this.getLoggerProvider():(g[v]=e=>1===e?t:E,this._proxyLoggerProvider._setDelegate(t),t)}getLoggerProvider(){var t,e;return null!=(e=null==(t=g[v])?void 0:t.call(g,1))?e:this._proxyLoggerProvider}getLogger(t,e,r){return this.getLoggerProvider().getLogger(t,e,r)}disable(){delete g[v],this._proxyLoggerProvider=new b}}let w=S.getInstance(),O=console.error.bind(console);function R(t,e,r){let n=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}let L=(t,e,r)=>{if(!t||!t[e])return void O("no original function "+String(e)+" to wrap");if(!r){O("no wrapper function"),O(Error().stack);return}let n=t[e];if("function"!=typeof n||"function"!=typeof r)return void O("original object and wrapper must be functions");
1let o=r(n,e);return R(o,"__original",n),R(o,"__unwrap",()=>{t[e]===o&&R(t,e,n)}),R(o,"__wrapped",!0),R(t,e,o),o},A=(t,e,r)=>{if(t)Array.isArray(t)||(t=[t]);else{O("must provide one or more modules to patch"),O(Error().stack);return}if(!(e&&Array.isArray(e)))return void O("must provide one or more functions to wrap on modules");t.forEach(t=>{e.forEach(e=>{L(t,e,r)})})},P=(t,e)=>{if(!t||!t[e]){O("no function to unwrap."),O(Error().stack);return}let r=t[e];if(r.__unwrap)return void r.__unwrap();O("no original to unwrap to -- has "+String(e)+" already been unwrapped?")},C=(t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{O("must provide one or more modules to patch"),O(Error().stack);return}if(!(e&&Array.isArray(e)))return void O("must provide one or more functions to unwrap on modules");t.forEach(t=>{e.forEach(e=>{P(t,e)})})};function N(t){t&&t.logger&&("function"!=typeof t.logger?O("new logger isn't a function, not replacing"):O=t.logger)}N.wrap=L,N.massWrap=A,N.unwrap=P,N.massUnwrap=C;class I{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(t,e,r){this.instrumentationName=t,this.instrumentationVersion=e,this.setConfig(r),this._diag=d.s.createComponentLogger({namespace:t}),this._tracer=u.u.getTracer(t,e),this._meter=h.q.getMeter(t,e),this._logger=w.getLogger(t,e),this._updateMetricInstruments()}_wrap=L;_unwrap=P;_massWrap=A;_massUnwrap=C;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){let t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,e,r,n){if(t)try{t(r,n)}catch(t){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:e},t)}}}class x extends I{constructor(t,e,r){super(t,e,r),this._config.enabled&&this.enable()}}function D(t,e,r){let n,o;try{o=t()}catch(t){n=t}finally{if(e(n,o),n&&!r)throw n;return o}}function M(t,e){return"string"==typeof e?t===e:!!t.match(e)}!function(t){t[t.STABLE=1]="STABLE",t[t.OLD=2]="OLD",t[t.DUPLICATE=3]="DUPLICATE"}(i||(i={}));let k=performance;function j(t){return[Math.trunc(t/1e3),Math.round(t%1e3*1e6)]}function U(){let t=k.timeOrigin;return"number"!=typeof t&&(t=k.timing&&k.timing.fetchStart),t}function B(t){var e=j(U()),r=j("number"==typeof t?t:k.now());let n=[e[0]+r[0],e[1]+r[1]];return n[1]>=1e9&&(n[1]-=1e9,n[0]+=1),n}function F(t){var e;if(Array.isArray(e=t)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1])return t;if("number"==typeof t)if(t<U())return B(t);else return j(t);if(t instanceof Date)return j(t.getTime());throw TypeError("Invalid input type")}function H(t){return 1e9*t[0]+t[1]}function z(t,e,r,n=!0){if(e in r&&"number"==typeof r[e]&&!(n&&0===r[e]))return t.addEvent(e,r[e])}function X(t,e,r=!1,n,o){if(void 0===n&&(n=0!==e[a.START_TIME]),r||(z(t,a.FETCH_START,e,n),z(t,a.DOMAIN_LOOKUP_START,e,n),z(t,a.DOMAIN_LOOKUP_END,e,n),z(t,a.CONNECT_START,e,n),z(t,a.SECURE_CONNECTION_START,e,n),z(t,a.CONNECT_END,e,n),z(t,a.REQUEST_START,e,n),z(t,a.RESPONSE_START,e,n),z(t,a.RESPONSE_END,e,n)),!o){let r=e[a.ENCODED_BODY_SIZE];void 0!==r&&t.setAttribute("http.response_content_length",r);let n=e[a.DECODED_BODY_SIZE];void 0!==n&&r!==n&&t.setAttribute("http.response_content_length_uncompressed",n)}}function V(){return"undefined"!=typeof location?location.origin:void 0}function G(t){if("function"==typeof URL)return new URL(t,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);let e=(n||(n=document.createElement("a")),n);return e.href=t,e}!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"}(a||(a={})),!function(t){t.COMPONENT="component",t.HTTP_STATUS_TEXT="http.status_text"}(s||(s={}));var $=r(79876);let q=d.s.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"}),W=new TextEncoder;function K(t){return W.encode(t).byteLength}let Y={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0},Q={"https:":"443","http:":"80"},Z="0.205.0",J="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{};var tt=r(87358);let te="object"==typeof tt&&tt.release?.name==="node";class tr extends x{component="fetch";version=Z;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(t={}){super("@opentelemetry/instrumentation-fetch",Z,t),this._semconvStability=function(t,e){let r=i.OLD;for(let n of e?.split(",").map(t=>t.trim()).filter(t=>
1""!==t)??[])if(n.toLowerCase()===t+"/dup"){r=i.DUPLICATE;break}else n.toLowerCase()===t&&(r=i.STABLE);return r}("http",t?.semconvStabilityOptIn)}init(){}_addChildSpan(t,e){let r=this.tracer.startSpan("CORS Preflight",{startTime:e[a.FETCH_START]},u.u.setSpan(l._.active(),t)),n=!(this._semconvStability&i.OLD);X(r,e,this.getConfig().ignoreNetworkEvents,void 0,n),r.end(e[a.RESPONSE_END])}_addFinalSpanAttributes(t,e){let r=G(e.url);if(this._semconvStability&i.OLD&&(t.setAttribute("http.status_code",e.status),null!=e.statusText&&t.setAttribute(s.HTTP_STATUS_TEXT,e.statusText),t.setAttribute("http.host",r.host),t.setAttribute("http.scheme",r.protocol.replace(":","")),"undefined"!=typeof navigator&&t.setAttribute("http.user_agent",navigator.userAgent)),this._semconvStability&i.STABLE){t.setAttribute($.OR,e.status),t.setAttribute($.kS,r.hostname);let n=function(t){let e=Number(t.port||Q[t.protocol]);return e&&!isNaN(e)?e:void 0}(r);n&&t.setAttribute($.A2,n)}}_addHeaders(t,e){let r;if(("string"==typeof(r=this.getConfig().propagateTraceHeaderCorsUrls||[])||r instanceof RegExp)&&(r=[r]),!(G(e).origin===V()||r.some(t=>M(e,t)))){let t={};c.$.inject(l._.active(),t),Object.keys(t).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)c.$.inject(l._.active(),t.headers,{set:(t,e,r)=>t.set(e,"string"==typeof r?r:String(r))});else if(t.headers instanceof Headers)c.$.inject(l._.active(),t.headers,{set:(t,e,r)=>t.set(e,"string"==typeof r?r:String(r))});else if(t.headers instanceof Map)c.$.inject(l._.active(),t.headers,{set:(t,e,r)=>t.set(e,"string"==typeof r?r:String(r))});else{let e={};c.$.inject(l._.active(),e),t.headers=Object.assign({},e,t.headers||{})}}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,e={}){if(function(t,e){if(!e)return!1;for(let r of e)if(M(t,r))return!0;return!1}(t,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let r="",n={};if(this._semconvStability&i.OLD){let o=(e.method||"GET").toUpperCase();r=`HTTP ${o}`,n[s.COMPONENT]=this.moduleName,n["http.method"]=o,n["http.url"]=t}if(this._semconvStability&i.STABLE){let i=e.method,a=function(t){let e=function(){if(void 0===o){let t=void 0;t&&t.length>0?(o={},t.forEach(t=>{o[t]=!0})):o=Y}return o}(),r=t.toUpperCase();return r in e?r:"_OTHER"}(e.method||"GET");r||(r=a),n[$.n4]=a,a!==i&&(n[$.nW]=i),n[$.WQ]=t}return this.tracer.startSpan(r,{kind:f.v.CLIENT,attributes:n})}_findResourceAndAddNetworkEvents(t,e,r){let n=e.entries;if(!n.length){if(!performance.getEntriesByType)return;n=performance.getEntriesByType("resource")}let o=function(t,e,r,n,o=new WeakSet,i){let s=G(t),u=function(t,e,r,n,o,i){let s=H(e),u=H(r),l=n.filter(e=>{let r=H(F(e[a.FETCH_START])),n=H(F(e[a.RESPONSE_END]));return e.initiatorType.toLowerCase()===(i||"xmlhttprequest")&&e.name===t&&r>=s&&n<=u});return l.length>0&&(l=l.filter(t=>!o.has(t))),l}(t=s.toString(),e,r,n,o,i);if(0===u.length)return{mainRequest:void 0};if(1===u.length)return{mainRequest:u[0]};let l=u.slice().sort((t,e)=>{let r=t[a.FETCH_START],n=e[a.FETCH_START];return r>n?1:r<n?-1:0});if(s.origin===V()||!(l.length>1))return{mainRequest:u[0]};{let t=l[0],e=function(t,e,r){let n,o=H(r),i=H(F(e)),s=t[1],u=t.length;for(let e=1;e<u;e++){let r=t[e],u=H(F(r[a.FETCH_START])),l=o-H(F(r[a.RESPONSE_END]));u>=i&&(!n||l<n)&&(n=l,s=r)}return s}(l,t[a.RESPONSE_END],r),n=t[a.RESPONSE_END];return e[a.FETCH_START]<n&&(e=t,t=void 0),{corsPreFlightRequest:t,mainRequest:e}}}(e.spanUrl,e.startTime,r,n,this._usedResources,"fetch");if(o.mainRequest){let e=o.mainRequest;this._markResourceAsUsed(e);let r=o.corsPreFlightRequest;r&&(this._addChildSpan(t,r),this._markResourceAsUsed(r));let n=!(this._semconvStability&i.OLD);X(t,e,this.getConfig().ignoreNetworkEvents,void 0,n)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,e,r){let n=j(Date.now()),o=B();this._addFinalSpanAttributes(t,r),this._semconvStability&i.STABLE&&r.status>=400&&(t.setStatus({code:p.s.ERROR}),t.setAttribute($.oJ,String(r.status))),setTimeout(()=>{e.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,e,o),this._tasksCount--,this._clearResources(),t.end(n)},300)}_patchConstructor(){return t=>{let e=this;return function(...r){let n=this,o=G(r[0]instanceof Request?r[0].url:String(r[0])).href,a=r[0]instanceof Request?r[0]:r[1]||{},s=e._createSpan(o,a);if(!s)return t.apply(this,r);let c=e._prepareSpanData(o);function f(t,r){e._applyAttributesAfterFetch(t,a,r),e._endSpan(t,c,{status:r.status||0,statusText:r.message,url:o})}function p(t,r){e._applyAttributesAfterFetch(t,a,r),r.status>=200&&r.status<400?e._endSpan(t,c,r):e._endSpan(t,c,{status:r.status,statusText:r.statusText,url:o})}function d(t,e,r){try{let e=r.clone().body;if(e){let n=e.getReader(),o=()=>{n.read().then(({done:e})=>{e?p(t,r):o()},e=>{f(t,e)})};o()}else p(t,r)}finally{e(r)}}function h(t,e,r){try{f(t,r)}finally{e(r)}}return e.getConfig().measureRequestSize&&(function(...t){if(t[0]instanceof URL||"string"==typeof t[0]){let e=t[1];if(!e?.body)return Promise.resolve();if(!(e.body instanceof ReadableStream))return Promise.resolve(function(t){return"undefined"!=typeof Document&&t instanceof Document?new XMLSerializer().serializeToString(document).length:"string"==typeof t?K(t):t instanceof Blob?t.size:t instanceof FormData?function(t){let e=0;for(let[r,n]of t.entries())e+=r.length,n instanceof Blob?e+=n.size:e+=n.length;return e}(t):t instanceof URLSearchParams?K(t.toString()):void 0!==t.byteLength?t.byteLength:void q.warn("unknown body type")}(e.body));{let{body:t,length:r}=function(t){let e;if(!t.pipeThrough)return q.warn("Platform has ReadableStream but not pipeThrough!"),{body:t,length:Promise.resolve(void 0)};let r=0,n=new Promise(t=>{e=t}),o=new TransformStream({start(){},async transform(t,e){let n=await t;r+=n.byteLength,e.enqueue(t)},flush(){e(r)}});return{body:t.pipeThrough(o),length:n}}(e.body);return e.body=t,r}}
1{let e=t[0];return e?.body?e.clone().text().then(t=>K(t)):Promise.resolve()}})(...r).then(t=>{t&&(e._semconvStability&i.OLD&&s.setAttribute("http.request_content_length_uncompressed",t),e._semconvStability&i.STABLE&&s.setAttribute("http.request.body.size",t))}).catch(t=>{e._diag.warn("getFetchBodyLength",t)}),new Promise((r,i)=>l._.with(u.u.setSpan(l._.active(),s),()=>(e._addHeaders(a,o),e._callRequestHook(s,a),e._tasksCount++,t.apply(n,a instanceof Request?[a]:[o,a]).then(d.bind(n,s,r),h.bind(n,s,i)))))}}}_applyAttributesAfterFetch(t,e,r){let n=this.getConfig().applyCustomAttributesOnSpan;n&&D(()=>n(t,e,r),t=>{t&&this._diag.error("applyCustomAttributesOnSpan",t)},!0)}_callRequestHook(t,e){let r=this.getConfig().requestHook;r&&D(()=>r(t,e),t=>{t&&this._diag.error("requestHook",t)},!0)}_prepareSpanData(t){let e=B(),r=[];if("function"!=typeof PerformanceObserver)return{entries:r,startTime:e,spanUrl:t};let n=new PerformanceObserver(e=>{e.getEntries().forEach(e=>{"fetch"===e.initiatorType&&e.name===t&&r.push(e)})});return n.observe({entryTypes:["resource"]}),{entries:r,observer:n,startTime:e,spanUrl:t}}enable(){var t;if(te)return void this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");"function"==typeof(t=fetch)&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped&&(this._unwrap(J,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(J,"fetch",this._patchConstructor())}disable(){te||(this._unwrap(J,"fetch"),this._usedResources=new WeakSet)}}},65727:(t,e,r)=>{"use strict";let n=r(88759);t.exports=c;let o=function(){function t(t){return void 0!==t&&t}try{if("undefined"!=typeof globalThis)return globalThis;return Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(e){return t(self)||t(window)||t(this)||{}}}().console||{};function i(t,e){return"silent"===t?1/0:e.levels.values[t]}let a=Symbol("pino.logFuncs"),s=Symbol("pino.hierarchy"),u={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function l(t,e){let r={logger:e,parent:t[s]};e[s]=r}function c(t){var e,r;(t=t||{}).browser=t.browser||{};let n=t.browser.transmit;if(n&&"function"!=typeof n.send)throw Error("pino: transmit option must have a send function");let s=t.browser.write||o;t.browser.write&&(t.browser.asObject=!0);let h=t.serializers||{},g=(e=t.browser.serialize,Array.isArray(e)?e.filter(function(t){return"!stdSerializers.err"!==t}):!0===e&&Object.keys(h)),v=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(v=!1);let E=Object.keys(t.customLevels||{}),T=["error","fatal","warn","info","debug","trace"].concat(E);"function"==typeof s&&T.forEach(function(t){s[t]=s}),(!1===t.enabled||t.browser.disabled)&&(t.level="silent");let b=t.level||"info",S=Object.create(s);S.log||(S.log=_);let w={};T.forEach(t=>{w[t]=s[t]?s[t]:o[t]||o[u[t]||"log"]||_}),S[a]=w,l({},S),Object.defineProperty(S,"levelVal",{get:function(){return i(this.level,this)}}),Object.defineProperty(S,"level",{get:function(){return this._level},set:function(t){if("silent"!==t&&!this.levels.values[t])throw Error("unknown level "+t);this._level=t,f(this,O,S,"error"),f(this,O,S,"fatal"),f(this,O,S,"warn"),f(this,O,S,"info"),f(this,O,S,"debug"),f(this,O,S,"trace"),E.forEach(t=>{f(this,O,S,t)})}});let O={transmit:n,serialize:g,asObject:t.browser.asObject,asObjectBindingsOnly:t.browser.asObjectBindingsOnly,formatters:t.browser.formatters,levels:T,timestamp:"function"==typeof(r=t).timestamp?r.timestamp:!1===r.timestamp?m:y,messageKey:t.messageKey||"msg",onChild:t.onChild||_};function R(e,r,o){if(!r)throw Error("missing bindings for child Pino");o=o||{},g&&r.serializers&&(o.serializers=r.serializers);let i=o.serializers;if(g&&i){var a=Object.assign({},h,i),s=!0===t.browser.serialize?Object.keys(a):g;delete r.serializers,p([r],s,a,this._stdErrSerialize)}function u(t){this._childLevel=(0|t._childLevel)+1,this.bindings=r,a&&(this.serializers=a,this._serialize=s),n&&(this._logEvent=d([].concat(t._logEvent.bindings,r)))}u.prototype=this;let c=new u(this);return l(this,c),c.child=function(...t){return R.call(this,e,...t)},c.level=o.level||this.level,e.onChild(c),c}return S.levels=function(t){let e=t.customLevels||{};return{values:Object.assign({},c.levels.values,e),labels:Object.assign({},c.levels.labels,function(t){let e={};return Object.keys(t).forEach(function(r){e[t[r]]=r}),e}(e))}}(t),S.level=b,S.isLevelEnabled=function(t){return!!this.levels.values[t]&&this.levels.values[t]>=this.levels.values[this.level]},S.setMaxListeners=S.getMaxListeners=S.emit=S.addListener=S.on=S.prependListener=S.once=S.prependOnceListener=S.removeListener=S.removeAllListeners=S.listeners=S.listenerCount=S.eventNames=S.write=S.flush=_,S.serializers=h,S._serialize=g,S._stdErrSerialize=v,S.child=function(...t){return R.call(this,O,...t)},n&&(S._logEvent=d()),S}function f(t,e,r,u){var l,c,f,h,g,v,m;if(Object.defineProperty(t,u,{value:i(t.level,r)>i(u,r)?_:r[a][u],writable:!0,enumerable:!0,configurable:!0}),t[u]===_){if(!e.transmit)return;let n=i(e.transmit.level||t.level,r);if(i(u,r)<n)return}t[u]=(l=t,c=e,f=r,h=u,g=l[a][h],function(){let t=c.timestamp(),e=Array(arguments.length),r=Object.getPrototypeOf&&Object.getPrototypeOf(this)===o?o:this;for(var a=0;a<e.length;a++)e[a]=arguments[a];var s=!1;if(c.serialize&&(p(e,this._serialize,this.serializers,this._stdErrSerialize),s=!0),c.asObject||c.formatters?g.call(r,...function(t,e,r,o,i){let{level:a,log:s=t=>t}=i.formatters||{},u=r.slice(),l=u[0],c={},f=(0|t._childLevel)+1;if(f<1&&(f=1),o&&(c.time=o),a?Object.assign(c,a(e,t.levels.values[e])):c.level=t.levels.values[e],i.asObjectBindingsOnly){if(null!==l&&"object"==typeof l)for(;f--&&"object"==typeof u[0];)Object.assign(c,u.shift());return[s(c),...u]}if(null!==l&&"object"==typeof l){for(;f--&&"object"==typeof u[0];)Object.assign(c,u.shift());l=u.length?n(u.shift(),u):void 0}else"string"==typeof l&&(l=n(u.shift(),u));return void 0!==l&&(c[i.messageKey]=l),[s(c)]}(this,h,e,t,c)):g.apply(r,e),c.transmit){let r=c.transmit.level||l._level,n=i(r,f),o=i(h,f);if(o<n)return;!function(t,e,r,n=!1){let o=e.send,i=e.ts,a=e.methodLevel,s=e.methodValue,u=e.val,l=t._logEvent.bindings;n||p(r,t._serialize||Object.keys(t.serializers),t.serializers,void 0===t._stdErrSerialize||t._stdErrSerialize),t._logEvent.ts=i,t._logEvent.messages=r.filter(function(t){return -1===l.indexOf(t)}),t._logEvent.level.label=a,t._logEvent.level.value=s,o(a,t._logEvent,u),t._logEvent=d(l)}(this,{ts:t,methodLevel:h,methodValue:o,transmitLevel:r,transmitValue:f.levels.values[c.transmit.level||l._level],send:c.transmit.send,val:i(l._level,f)},e,s)}});let y=function(t){let e=[];t.bindings&&e.push(t.bindings);let r=t[s];for(;r.parent;)(r=r.parent).logger.bindings&&e.push(r.logger.bindings);return e.reverse()}(t);0!==y.length&&(t[u]=(v=y,m=t[u],function(){return m.apply(this,[...v,...arguments])}))}function p(t,e,r,n){for(let o in t)if(n&&t[o]instanceof Error)t[o
1]=c.stdSerializers.err(t[o]);else if("object"==typeof t[o]&&!Array.isArray(t[o])&&e)for(let n in t[o])e.indexOf(n)>-1&&n in r&&(t[o][n]=r[n](t[o][n]))}function d(t){return{ts:0,messages:[],bindings:t||[],level:{label:"",value:0}}}function h(t){let e={type:t.constructor.name,msg:t.message,stack:t.stack};for(let r in t)void 0===e[r]&&(e[r]=t[r]);return e}function g(){return{}}function v(t){return t}function _(){}function m(){return!1}function y(){return Date.now()}c.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},c.stdSerializers={mapHttpRequest:g,mapHttpResponse:g,wrapRequestSerializer:v,wrapResponseSerializer:v,wrapErrorSerializer:v,req:g,res:g,err:h,errWithCause:h},c.stdTimeFunctions=Object.assign({},{nullTime:m,epochTime:y,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}}),t.exports.default=c,t.exports.pino=c},65740:(t,e,r)=>{"use strict";r.d(e,{_:()=>i,w:()=>a});var n=r(77354),o="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{};function i(){var t=(0,n.Nq)(o);return Object.assign({},n.Uz,t)}function a(){return(0,n.Nq)(o)}},67516:(t,e,r)=>{"use strict";var n;r.d(e,{s:()=>n}),function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"}(n||(n={}))},74998:(t,e,r)=>{"use strict";r.d(e,{_:()=>n});var n=r(39925)._.getInstance()},75540:(t,e,r)=>{"use strict";r.d(e,{Z:()=>tF});var n,o,i,a,s,u=r(40382),l=r(43400),c=r(74998),f=r(33714),p=Function.prototype.toString,d=p.call(Object),h=(n=Object.getPrototypeOf,o=Object,function(t){return n(o(t))}),g=Object.prototype,v=g.hasOwnProperty,_=Symbol?Symbol.toStringTag:void 0,m=g.toString;function y(t){if(null==(e=t)||"object"!=typeof e||"[object Object]"!==(null==(r=t)?void 0===r?"[object Undefined]":"[object Null]":_&&_ in Object(r)?function(t){var e=v.call(t,_),r=t[_],n=!1;try{t[_]=void 0,n=!0}catch(t){}var o=m.call(t);return n&&(e?t[_]=r:delete t[_]),o}(r):(n=r,m.call(n))))return!1;var e,r,n,o=h(t);if(null===o)return!0;var i=v.call(o,"constructor")&&o.constructor;return"function"==typeof i&&i instanceof i&&p.call(i)===d}function E(t){return b(t)?t.slice():t}function T(t,e,r){for(var n=r.get(t[e])||[],o=0,i=n.length;o<i;o++){var a=n[o];if(a.key===e&&a.obj===t)return!0}return!1}function b(t){return Array.isArray(t)}function S(t){return"function"==typeof t}function w(t){return!O(t)&&!b(t)&&!S(t)&&"object"==typeof t}function O(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||t instanceof RegExp||null===t}var R=r(65740),L=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},A=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!=(e=t.propagators)?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=L(this._propagators),a=i.next();!a.done;a=i.next()){var s=a.value;try{s.inject(t,e,r)}catch(t){u.s.warn("Failed to inject with "+s.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){u.s.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}(),P=r(97069),C=r(4647),N=r(55134),I="[_0-9a-z-*/]",x=RegExp("^(?:[a-z]"+I+"{0,255}|"+("[a-z0-9]"+I+"{0,240}@[a-z]")+I+"{0,13})$"),D=/^[ -~]{0,255}[!-~]$/,M=/,|=/,k=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){!(t.length>512)&&(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);x.test(o)&&D.test(i)&&!M.test(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),j="traceparent",U="tracestate",B=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$"),F=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=l.u.getSpanContext(t);if(!(!n||(0,N.Zf)(t))&&(0,P.YA)(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||C.X.NONE).toString(16);r.set(e,j,o),n.traceState&&r.set(e,U,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n,o=r.get(e,j);if(!o)return t;var i=Array.isArray(o)?o[0]:o;if("string"!=typeof i)return t;var a=(n=B.exec(i))&&("00"!==n[1]||!n[5])?{traceId:n[2],spanId:n[3],traceFlags:parseInt(n[4],16)}:null;if(!a)return t;a.isRemote=!0;var s=r.get(e,U);if(s){var u=Array.isArray(s)?s.join(","):s;a.traceState=new k("string"==typeof u?u:void 0)}return l.u.setSpanContext(t,a)},t.prototype.fields=function(){return[j,U]},t}(),H="baggage",z=r(56551),X=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},V=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=f.$.getBaggage(t);if(!(!n||(0,N.Zf)(t))){var o=n.getAllEntries().map(function(t){var e=X(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o}).filter(function(t){return t.length<=4096}).slice(0,180).reduce(function(t,e){var r=""+t+(""!==t?",":"")+e;return r.length>8192?t:r},"");o.length>0&&r.set(e,H,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,H),o=Array.isArray(n)?n.join(","):n;if(!o)return t;var i={};return 0===o.length||(o.split(",").forEach(function(t){var e=function(t){var e,r=t.split(";");if(!(r.length<=0)){var n=r.shift();if(n){var o=n.indexOf("=");if(!(o<=0)){var i=decodeURIComponent(n.substring(0,o).trim()),a=decodeURIComponent(n.substring(o+1).trim());return r.length>0&&(e=(0,z.B)(r.join(";"))),{key:i,value:a,metadata:e}}}}}(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length)?t:f.$.setBaggage(t,f.$.createBaggage(i))},t.prototype.fields=function(){return[H]},t}(),G=r(89050),$=r(96196),q=r(38569);!function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(i||(i={}));var W=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},K=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Y(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=W(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a,s=K(i.value,2),l=s[0],c=s[1];if(a=l,"string"!=typeof a||!(a.length>0)){u.s.warn("Invalid attribute key: "+l);continue}if(!Q(c)){u.s.warn("Invalid attribute value set for key: "+l);continue}Array.isArray(c)?n[l]=c.slice():n[l]=c}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function Q(t){return null==t||(Array.isArray(t)?function(t){try{for(var e,r,n,o=W(t),i=o.next();!i.done;i=o.next()){var a=i.value;
1if(null!=a){if(!n){if(Z(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):Z(t))}function Z(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var J=r(67516),tt=performance;function te(t){return[Math.trunc(t/1e3),Math.round(t%1e3*1e6)]}function tr(){var t=tt.timeOrigin;return"number"!=typeof t&&(t=tt.timing&&tt.timing.fetchStart),t}function tn(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}function to(t){return tn(t)||"number"==typeof t||t instanceof Date}function ti(t,e){var r=[t[0]+e[0],t[1]+e[1]];return r[1]>=1e9&&(r[1]-=1e9,r[0]+=1),r}var ta="exception.type",ts="exception.message",tu=function(){return(tu=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},tl=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},tc=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},tf=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},tp=function(){function t(t,e,r,n,o,i,a,s,u,l){void 0===a&&(a=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:J.s.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=r,this._spanContext=n,this.parentSpanId=i,this.kind=o,this.links=a;var c=Date.now();this._performanceStartTime=tt.now(),this._performanceOffset=c-(this._performanceStartTime+tr()),this._startTimeProvided=null!=s,this.startTime=this._getTime(null!=s?s:c),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=l&&this.setAttributes(l),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,e)}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return null==e||this._isSpanEnded()||(0===t.length?u.s.warn("Invalid attribute key: "+t):Q(e)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?this._droppedAttributesCount++:this.attributes[t]=this._truncateToSize(e):u.s.warn("Invalid attribute value set for key: "+t)),this},t.prototype.setAttributes=function(t){var e,r;try{for(var n=tl(Object.entries(t)),o=n.next();!o.done;o=n.next()){var i=tc(o.value,2),a=i[0],s=i[1];this.setAttribute(a,s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},t.prototype.addEvent=function(t,e,r){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return u.s.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&u.s.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),to(e)&&(to(r)||(r=e),e=void 0);var n=Y(e);return this.events.push({name:t,attributes:n,time:this._getTime(r),droppedAttributesCount:0}),this},t.prototype.addLink=function(t){return this.links.push(t),this},t.prototype.addLinks=function(t){var e;return(e=this.links).push.apply(e,tf([],tc(t),!1)),this},t.prototype.setStatus=function(t){return this._isSpanEnded()||(this.status=tu({},t),null!=this.status.message&&"string"!=typeof t.message&&(u.s.warn("Dropping invalid status.message of type '"+typeof t.message+"', expected 'string'"),delete this.status.message)),this},t.prototype.updateName=function(t){return this._isSpanEnded()||(this.name=t),this},t.prototype.end=function(t){var e,r,n,o;if(this._isSpanEnded())return void u.s.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");this._ended=!0,this.endTime=this._getTime(t),this._duration=(e=this.startTime,n=(r=this.endTime)[0]-e[0],(o=r[1]-e[1])<0&&(n-=1,o+=1e9),[n,o]),this._duration[0]<0&&(u.s.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&&u.s.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},t.prototype._getTime=function(t){if("number"==typeof t&&t<=tt.now()){var e;return e=t+this._performanceOffset,ti(te(tr()),te("number"==typeof e?e:tt.now()))}if("number"==typeof t)return te(t);if(t instanceof Date)return te(t.getTime());if(tn(t))return t;if(this._startTimeProvided)return te(Date.now());var r=tt.now()-this._performanceStartTime;return ti(this.startTime,te(r))},t.prototype.isRecording=function(){return!1===this._ended},t.prototype.recordException=function(t,e){var r={};"string"==typeof t?r[ts]=t:t&&(t.code?r[ta]=t.code.toString():t.name&&(r[ta]=t.name),t.message&&(r[ts]=t.message),t.stack&&(r["exception.stacktrace"]=t.stack)),r[ta]||r[ts]?this.addEvent("exception",r,e):u.s.warn("Failed to record an exception "+t)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&u.s.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},t.prototype._truncateToLimitUtil=function(t,e){return t.length<=e?t:t.substring(0,e)},t.prototype._truncateToSize=function(t){var e=this,r=this._attributeValueLengthLimit;return r<=0?(u.s.warn("Attribute value limit must be positive, got "+r),t):"string"==typeof t?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(function(t){return"string"==typeof t?e._truncateToLimitUtil(t,r):t}):t},t}(),td=r(54612);!function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(a||(a={}));var th=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:a.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),tg=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:a.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),tv=r(58201),t_=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||((0,tv.s)(Error("ParentBasedSampler must have a root sampler configured")),this._root=new tg),this._remoteParentSampled=null!=(e=t.remoteParentSampled)?e:new tg,this._remoteParentNotSampled=null!=(r=t.remoteParentNotSampled)?r:new th,this._localParentSampled=null!=(n=t.localParentSampled)?n:new tg,this._localParentNotSampled=null!=(o=t.localParentNotSampled)?o:new th}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=l.u.getSpanContext(t);return a&&(0,P.YA)(a)?a.isRemote?a.traceFlags&C.X.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&C.X.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}(),tm=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(0xffffffff*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:(0,P.hX)(e)&&this._accumulate(e)<this._upperBound?a.RECORD_AND_SAMPLED:a.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(t){return"number"!=typeof t||isNaN(t)?0:t>=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r<t.length/8;r++){var n=8*r;e=(e^parseInt(t.slice(n,n+8),16))>>>0}return e},t}(),ty=td.R.AlwaysOn;function tE(){var t=(0,R._)();return{sampler:tT(t),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function tT(t){switch(void 0===t&&(t=(0,R._)()),t.OTEL_TRACES_SAMPLER){case td.R.AlwaysOn:return new tg;case td.R.AlwaysOff:return new th;case td.R.ParentBasedAlwaysOn:return new t_({root:new tg});case td.R.ParentBasedAlwaysOff:return new t_({root:new th});case td.R.TraceIdRatio:return new tm(tb(t));case td.R.ParentBasedTraceIdRatio:return new t_({root:new tm(tb(t))});default:return u.s.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+ty+'".'),new tg}}function tb(t){if(void 0===t.OTEL_TRACES_SAMPLER_ARG||""===t.OTEL_TRACES_SAMPLER_ARG)return u.s.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(u.s.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invali
1d, defaulting to 1."),1):e<0||e>1?(u.s.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to 1."),1):e}var tS=r(77354),tw=function(){this.generateTraceId=tR(16),this.generateSpanId=tR(8)},tO=Array(32);function tR(t){return function(){for(var e=0;e<2*t;e++)tO[e]=Math.floor(16*Math.random())+48,tO[e]>=58&&(tO[e]+=39);return String.fromCharCode.apply(null,tO.slice(0,2*t))}}var tL=function(){function t(t,e,r){this._tracerProvider=r;var n,o,i,a=(n={sampler:tT()},(i=Object.assign({},o=tE(),n,e)).generalLimits=Object.assign({},o.generalLimits,e.generalLimits||{}),i.spanLimits=Object.assign({},o.spanLimits,e.spanLimits||{}),i);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=e.idGenerator||new tw,this.resource=r.resource,this.instrumentationLibrary=t}return t.prototype.startSpan=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r=c._.active()),e.root&&(r=l.u.deleteSpan(r));var n,o,a,s,f,p,d=l.u.getSpan(r);if((0,N.Zf)(r)){u.s.debug("Instrumentation suppressed, returning Noop Span");var h=l.u.wrapSpanContext($.dM);return h}var g=null==d?void 0:d.spanContext(),v=this._idGenerator.generateSpanId();g&&l.u.isSpanContextValid(g)?(s=g.traceId,f=g.traceState,p=g.spanId):s=this._idGenerator.generateTraceId();var _=null!=(n=e.kind)?n:q.v.INTERNAL,m=(null!=(o=e.links)?o:[]).map(function(t){return{context:t.context,attributes:Y(t.attributes)}}),y=Y(e.attributes),E=this._sampler.shouldSample(r,s,t,_,y,m);f=null!=(a=E.traceState)?a:f;var T={traceId:s,spanId:v,traceFlags:E.decision===i.RECORD_AND_SAMPLED?C.X.SAMPLED:C.X.NONE,traceState:f};if(E.decision===i.NOT_RECORD){u.s.debug("Recording is off, propagating context in a non-recording span");var h=l.u.wrapSpanContext(T);return h}var b=Y(Object.assign(y,E.attributes));return new tp(this,r,t,T,_,p,m,e.startTime,void 0,b)},t.prototype.startActiveSpan=function(t,e,r,n){if(!(arguments.length<2)){2==arguments.length?a=e:3==arguments.length?(o=e,a=r):(o=e,i=r,a=n);var o,i,a,s=null!=i?i:c._.active(),u=this.startSpan(t,o,s),f=l.u.setSpan(s,u);return c._.with(f,a,void 0,u)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}(),tA=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},tP=function(){function t(t){this._spanProcessors=t}return t.prototype.forceFlush=function(){var t,e,r=[];try{for(var n=tA(this._spanProcessors),o=n.next();!o.done;o=n.next()){var i=o.value;r.push(i.forceFlush())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return new Promise(function(t){Promise.all(r).then(function(){t()}).catch(function(e){(0,tv.s)(e||Error("MultiSpanProcessor: forceFlush failed")),t()})})},t.prototype.onStart=function(t,e){var r,n;try{for(var o=tA(this._spanProcessors),i=o.next();!i.done;i=o.next())i.value.onStart(t,e)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},t.prototype.onEnd=function(t){var e,r;try{for(var n=tA(this._spanProcessors),o=n.next();!o.done;o=n.next())o.value.onEnd(t)}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},t.prototype.shutdown=function(){var t,e,r=[];try{for(var n=tA(this._spanProcessors),o=n.next();!o.done;o=n.next()){var i=o.value;r.push(i.shutdown())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return new Promise(function(t,e){Promise.all(r).then(function(){t()},e)})},t}(),tC=function(){function t(){}return t.prototype.onStart=function(t,e){},t.prototype.onEnd=function(t){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}(),tN=r(13627),tI=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},tx=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};!function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"}(s||(s={}));var tD=function(){function t(t){void 0===t&&(t={}),this._registeredSpanProcessors=[],this._tracers=new Map;var e,r,n,o,i,a,s,u,l,c,f,p,d,h,g,v,_,m=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=t.shift(),n=new WeakMap;t.length>0;)r=function t(e,r,n,o){if(void 0===n&&(n=0),!(n>
120)){if(n++,O(e)||O(r)||S(r))s=E(r);else if(b(e)){if(s=e.slice(),b(r))for(var i,a,s,u=0,l=r.length;u<l;u++)s.push(E(r[u]));else if(w(r))for(var c=Object.keys(r),u=0,l=c.length;u<l;u++){var f=c[u];s[f]=E(r[f])}}else if(w(e))if(w(r)){if(i=e,a=r,!(y(i)&&y(a)))return r;s=Object.assign({},e);for(var c=Object.keys(r),u=0,l=c.length;u<l;u++){var f=c[u],p=r[f];if(O(p))void 0===p?delete s[f]:s[f]=p;else{var d=s[f];if(T(e,f,o)||T(r,f,o))delete s[f];else{if(w(d)&&w(p)){var h=o.get(d)||[],g=o.get(p)||[];h.push({obj:e,key:f}),g.push({obj:r,key:f}),o.set(d,h),o.set(p,g)}s[f]=t(s[f],p,n,o)}}}}else s=r;return s}}(r,t.shift(),0,n);return r}({},tE(),(h=Object.assign({},(e=t).spanLimits),g=(0,R.w)(),h.attributeCountLimit=null!=(s=null!=(a=null!=(i=null!=(n=null==(r=e.spanLimits)?void 0:r.attributeCountLimit)?n:null==(o=e.generalLimits)?void 0:o.attributeCountLimit)?i:g.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)?a:g.OTEL_ATTRIBUTE_COUNT_LIMIT)?s:tS.fv,h.attributeValueLengthLimit=null!=(d=null!=(p=null!=(f=null!=(l=null==(u=e.spanLimits)?void 0:u.attributeValueLengthLimit)?l:null==(c=e.generalLimits)?void 0:c.attributeValueLengthLimit)?f:g.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)?p:g.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)?d:tS.aE,Object.assign({},e,{spanLimits:h})));if(this.resource=null!=(v=m.resource)?v:G.F.empty(),m.mergeResourceWithDefaults&&(this.resource=G.F.default().merge(this.resource)),this._config=Object.assign({},m,{resource:this.resource}),null==(_=t.spanProcessors)?void 0:_.length)this._registeredSpanProcessors=tx([],tI(t.spanProcessors),!1),this.activeSpanProcessor=new tP(this._registeredSpanProcessors);else{var L=this._buildExporterFromEnv();if(void 0!==L){var A=new tN.J(L);this.activeSpanProcessor=A}else this.activeSpanProcessor=new tC}}return t.prototype.getTracer=function(t,e,r){var n=t+"@"+(e||"")+":"+((null==r?void 0:r.schemaUrl)||"");return this._tracers.has(n)||this._tracers.set(n,new tL({name:t,version:e,schemaUrl:null==r?void 0:r.schemaUrl},this._config,this)),this._tracers.get(n)},t.prototype.addSpanProcessor=function(t){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch(function(t){return u.s.error("Error while trying to shutdown current span processor",t)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new tP(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(t){void 0===t&&(t={}),l.u.setGlobalTracerProvider(this),void 0===t.propagator&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&c._.setGlobalContextManager(t.contextManager),t.propagator&&f.$.setGlobalPropagator(t.propagator)},t.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,e=this._registeredSpanProcessors.map(function(e){return new Promise(function(r){var n,o=setTimeout(function(){r(Error("Span processor did not completed within timeout period of "+t+" ms")),n=s.timeout},t);e.forceFlush().then(function(){clearTimeout(o),n!==s.timeout&&r(n=s.resolved)}).catch(function(t){clearTimeout(o),n=s.error,r(t)})})});return new Promise(function(t,r){Promise.all(e).then(function(e){var n=e.filter(function(t){return t!==s.resolved});n.length>0?r(n):t()}).catch(function(t){return r([t])})})},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(t){var e;return null==(e=this.constructor._registeredPropagators.get(t))?void 0:e()},t.prototype._getSpanExporter=function(t){var e;return null==(e=this.constructor._registeredExporters.get(t))?void 0:e()},t.prototype._buildPropagatorFromEnv=function(){var t=this,e=Array.from(new Set((0,R._)().OTEL_PROPAGATORS)),r=e.map(function(e){var r=t._getPropagator(e);return r||u.s.warn('Propagator "'+e+'" requested through environment variable is unavailable.'),r}).reduce(function(t,e){return e&&t.push(e),t},[]);return 0===r.length?void 0:1===e.length?r[0]:new A({propagators:r})},t.prototype._buildExporterFromEnv=function(){var t=(0,R._)().OTEL_TRACES_EXPORTER;if("none"!==t&&""!==t){var e=this._getSpanExporter(t);return e||u.s.error('Exporter "'+t+'" requested through environment variable is unavailable.'),e}},t._registeredPropagators=new Map([["tracecontext",function(){return new F}],["baggage",function(){return new V}]]),t._registeredExporters=new Map,t}(),tM=r(30403),tk=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},tj=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},tU=function(){function t(){this._enabled=!1,this._currentContext=tM.l}return t.prototype._bindFunction=function(t,e){void 0===t&&(t=tM.l);var r=this,n=function(){for(var n=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return r.with(t,function(){return e.apply(n,o)})};
1return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),n},t.prototype.active=function(){return this._currentContext},t.prototype.bind=function(t,e){return(void 0===t&&(t=this.active()),"function"==typeof e)?this._bindFunction(t,e):e},t.prototype.disable=function(){return this._currentContext=tM.l,this._enabled=!1,this},t.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=tM.l),this},t.prototype.with=function(t,e,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];var i=this._currentContext;this._currentContext=t||tM.l;try{return e.call.apply(e,tj([r],tk(n),!1))}finally{this._currentContext=i}},t}(),tB=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),tF=function(t){function e(e){void 0===e&&(e={});var r=t.call(this,e)||this;if(e.contextManager)throw"contextManager should be defined in register method not in constructor";if(e.propagator)throw"propagator should be defined in register method not in constructor";return r}return tB(e,t),e.prototype.register=function(e){void 0===e&&(e={}),void 0===e.contextManager&&(e.contextManager=new tU),e.contextManager&&e.contextManager.enable(),t.prototype.register.call(this,e)},e}(tD)},77354:(t,e,r)=>{"use strict";r.d(e,{Nq:()=>p,Uz:()=>c,aE:()=>u,fv:()=>l});var n=r(36285),o=r(54612),i=["OTEL_SDK_DISABLED"],a=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"],s=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"],u=1/0,l=128,c={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:n.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:u,OTEL_ATTRIBUTE_COUNT_LIMIT:l,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:u,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:l,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:u,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:l,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:o.R.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]},f={ALL:n.u.ALL,VERBOSE:n.u.VERBOSE,DEBUG:n.u.DEBUG,INFO:n.u.INFO,WARN:n.u.WARN,ERROR:n.u.ERROR,NONE:n.u.NONE};function p(t){var e={};for(var r in c)if("OTEL_LOG_LEVEL"===r)!function(t,e,r){var n=r[t];if("string"==typeof n){var o=f[n.toUpperCase()];null!=o&&(e[t]=o)}}(r,e,t);else if(i.indexOf(r)>-1)!function(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}(r,e,t);else if(a.indexOf(r)>-1)!function(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(i<n?e[t]=n:i>o?e[t]=o:e[t]=i)}}(r,e,t);else if(s.indexOf(r)>-1)!function(t,e,r,n){void 0===n&&(n=",");var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}(r,e,t);else{var n=t[r];null!=n&&(e[r]=String(n))}return e}},79876:(t,e,r)=>{"use strict";r.d(e,{A2:()=>u,OR:()=>a,UX:()=>l,WQ:()=>c,kS:()=>s,n4:()=>
1o,nW:()=>i,oJ:()=>n});let n="error.type",o="http.request.method",i="http.request.method_original",a="http.response.status_code",s="server.address",u="server.port",l="service.name",c="url.full"},83161:(t,e,r)=>{"use strict";let n;r.d(e,{_s:()=>j});var o=r(20676),i=r(12115);let a=i.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),s=()=>{let t=i.useContext(a);if(!t)throw Error("useDrawerContext must be used within a Drawer.Root");return t};function u(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function l(){return c(/^iPhone/)||c(/^iPad/)||c(/^Mac/)&&navigator.maxTouchPoints>1}function c(t){return"undefined"!=typeof window&&null!=window.navigator?t.test(window.navigator.platform):void 0}!function(t){if(!t||"undefined"==typeof document)return;let e=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}
1[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}");let f="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function p(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];for(let t of e)"function"==typeof t&&t(...r)}}let d="undefined"!=typeof document&&window.visualViewport;function h(t){let e=window.getComputedStyle(t);return/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY)}function g(t){for(h(t)&&(t=t.parentElement);t&&!h(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}let v=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),_=0;function m(t,e,r,n){return t.addEventListener(e,r,n),()=>{t.removeEventListener(e,r,n)}}function y(t){let e=document.scrollingElement||document.documentElement;for(;t&&t!==e;){let e=g(t);if(e!==document.documentElement&&e!==document.body&&e!==t){let r=e.getBoundingClientRect().top,n=t.getBoundingClientRect().top;t.getBoundingClientRect().bottom>e.getBoundingClientRect().bottom+24&&(e.scrollTop+=n-r)}t=e.parentElement}}function E(t){return t instanceof HTMLInputElement&&!v.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}function T(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return i.useCallback(function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(...e),e)}let b=new WeakMap;function S(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||!(t instanceof HTMLElement))return;let n={};Object.entries(e).forEach(e=>{let[r,o]=e;if(r.startsWith("--"))return void t.style.setProperty(r,o);n[r]=t.style[r],t.style[r]=o}),r||b.set(t,n)}let w=t=>{switch(t){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return t}};function O(t,e){if(!t)return null;let r=window.getComputedStyle(t),n=r.transform||r.webkitTransform||r.mozTransform,o=n.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[w(e)?13:12]):(o=n.match(/^matrix\((.+)\)$/))?parseFloat(o[1].split(", ")[w(e)?5:4]):null}function R(t,e){if(!t)return()=>{};let r=t.style.cssText;return Object.assign(t.style,e),()=>{t.style.cssText=r}}let L={DURATION:.5,EASE:[.32,.72,0,1]},A="vaul-dragging";function P(t){let e=i.useRef(t);return i.useEffect(()=>{e.current=t}),i.useMemo(()=>function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return null==e.current?void 0:e.current.call(e,...r)},[])}function C(t){let{prop:e,defaultProp:r,onChange:n=()=>{}}=t,[o,a]=function(t){let{defaultProp:e,onChange:r}=t,n=i.useState(e),[o]=n,a=i.useRef(o),s=P(r);return i.useEffect(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:r,onChange:n}),s=void 0!==e,u=s?e:o,l=P(n);return[u,i.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&l(r)}else a(t)},[s,e,a,l])]}let N=()=>()=>{},I=null;function x(t){var e,r;let{open:s,onOpenChange:c,children:h,onDrag:v,onRelease:T,snapPoints:R,shouldScaleBackgroun
1d:P=!1,setBackgroundColorOnScale:N=!0,closeThreshold:x=.25,scrollLockTimeout:D=100,dismissible:M=!0,handleOnly:k=!1,fadeFromIndex:j=R&&R.length-1,activeSnapPoint:U,setActiveSnapPoint:B,fixed:F,modal:H=!0,onClose:z,nested:X,noBodyStyles:V=!1,direction:G="bottom",defaultOpen:$=!1,disablePreventScroll:q=!0,snapToSequentialPoint:W=!1,preventScrollRestoration:K=!1,repositionInputs:Y=!0,onAnimationEnd:Q,container:Z,autoFocus:J=!1}=t,[tt=!1,te]=C({defaultProp:$,prop:s,onChange:t=>{null==c||c(t),t||X||tI(),setTimeout(()=>{null==Q||Q(t)},1e3*L.DURATION),t&&!H&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),t||(document.body.style.pointerEvents="auto")}}),[tr,tn]=i.useState(!1),[to,ti]=i.useState(!1),[ta,ts]=i.useState(!1),tu=i.useRef(null),tl=i.useRef(null),tc=i.useRef(null),tf=i.useRef(null),tp=i.useRef(null),td=i.useRef(!1),th=i.useRef(null),tg=i.useRef(0),tv=i.useRef(!1),t_=i.useRef(!$),tm=i.useRef(0),ty=i.useRef(null),tE=i.useRef((null==(e=ty.current)?void 0:e.getBoundingClientRect().height)||0),tT=i.useRef((null==(r=ty.current)?void 0:r.getBoundingClientRect().width)||0),tb=i.useRef(0),tS=i.useCallback(t=>{R&&t===tA.length-1&&(tl.current=new Date)},[]),{activeSnapPoint:tw,activeSnapPointIndex:tO,setActiveSnapPoint:tR,onRelease:tL,snapPointsOffset:tA,onDrag:tP,shouldFade:tC,getPercentageDragged:tN}=function(t){let{activeSnapPointProp:e,setActiveSnapPointProp:r,snapPoints:n,drawerRef:o,overlayRef:a,fadeFromIndex:s,onSnapPointChange:u,direction:l="bottom",container:c,snapToSequentialPoint:f}=t,[p,d]=C({prop:e,defaultProp:null==n?void 0:n[0],onChange:r}),[h,g]=i.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);i.useEffect(()=>{function t(){g({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);let v=i.useMemo(()=>p===(null==n?void 0:n[n.length-1])||null,[n,p]),_=i.useMemo(()=>{var t;return null!=(t=null==n?void 0:n.findIndex(t=>t===p))?t:null},[n,p]),m=n&&n.length>0&&(s||0===s)&&!Number.isNaN(s)&&n[s]===p||!n,y=i.useMemo(()=>{var t;let e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:"undefined"!=typeof window?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return null!=(t=null==n?void 0:n.map(t=>{let r="string"==typeof t,n=0;if(r&&(n=parseInt(t,10)),w(l)){let o=r?n:h?t*e.height:0;return h?"bottom"===l?e.height-o:-e.height+o:o}let o=r?n:h?t*e.width:0;return h?"right"===l?e.width-o:-e.width+o:o}))?t:[]},[n,h,c]),E=i.useMemo(()=>null!==_?null==y?void 0:y[_]:null,[y,_]),T=i.useCallback(t=>{var e;let r=null!=(e=null==y?void 0:y.findIndex(e=>e===t))?e:null;u(r),S(o.current,{transition:`transform ${L.DURATION}s cubic-bezier(${L.EASE.join(",")})`,transform:w(l)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`}),y&&r!==y.length-1&&void 0!==s&&r!==s&&r<s?S(a.current,{transition:`opacity ${L.DURATION}s cubic-bezier(${L.EASE.join(",")})`,opacity:"0"}):S(a.current,{transition:`opacity ${L.DURATION}s cubic-bezier(${L.EASE.join(",")})`,opacity:"1"}),d(null==n?void 0:n[Math.max(r,0)])},[o.current,n,y,s,a,d]);return i.useEffect(()=>{if(p||e){var t;let r=null!=(t=null==n?void 0:n.findIndex(t=>t===e||t===p))?t:-1;y&&-1!==r&&"number"==typeof y[r]&&T(y[r])}},[p,e,n,y,T]),{isLastSnapPoint:v,activeSnapPoint:p,shouldFade:m,getPercentageDragged:function(t,e){if(!n||"number"!=typeof _||!y||void 0===s)return null;let r=_===s-1;if(_>=s&&e)return 0;if(r&&!e)return 1;if(!m&&!r)return null;let o=r?_+1:_-1,i=t/Math.abs(r?y[o]-y[o-1]:y[o+1]-y[o]);return r?1-i:i},setActiveSnapPoint:d,activeSnapPointIndex:_,onRelease:function(t){let{draggedDistance:e,closeDrawer:r,velocity:o,dismissible:i}=t;if(void 0===s)return;let u="bottom"===l||"right"===l?(null!=E?E:0)-e:(null!=E?E:0)+e,c=_===s-1,p=0===_,d=e>0;if(c&&S(a.current,{transition:`opacity ${L.DURATION}s cubic-bezier(${L.EASE.join(",")})`}),!f&&o>2&&!d)return void(i?r():T(y[0]));if(!f&&o>2&&d&&y&&n)return void T(y[n.length-1]);let h=null==y?void 0:y.reduce((t,e)=>"number"!=typeof t||"number"!=typeof e?t:Math.abs(e-u)<Math.abs(t-u)?e:t),g=w(l)?window.innerHeight:window.innerWidth;if(o>.4&&Math.abs(e)<.4*g){let t=d?1:-1;return t>0&&v&&n?void T(y[n.length-1]):void(p&&t<0&&i&&r(),null===_||T(y[_+t]))}T(h)},onDrag:function(t){let{draggedDistance:e}=t;if(null===E)return;let r="bottom"===l||"right"===l?E-e:E+e;
1("bottom"!==l&&"right"!==l||!(r<y[y.length-1]))&&(("top"===l||"left"===l)&&r>y[y.length-1]||S(o.current,{transform:w(l)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`}))},snapPointsOffset:y}}({snapPoints:R,activeSnapPointProp:U,setActiveSnapPointProp:B,drawerRef:ty,fadeFromIndex:j,overlayRef:tu,onSnapPointChange:tS,direction:G,container:Z,snapToSequentialPoint:W});!function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isDisabled:e}=t;f(()=>{if(!e){var t,r,o;let e,i,a,s,u,c,f;return 1==++_&&l()&&(a=0,s=window.pageXOffset,u=window.pageYOffset,c=p((t=document.documentElement,r="paddingRight",o=`${window.innerWidth-document.documentElement.clientWidth}px`,e=t.style[r],t.style[r]=o,()=>{t.style[r]=e})),window.scrollTo(0,0),f=p(m(document,"touchstart",t=>{((i=g(t.target))!==document.documentElement||i!==document.body)&&(a=t.changedTouches[0].pageY)},{passive:!1,capture:!0}),m(document,"touchmove",t=>{if(!i||i===document.documentElement||i===document.body)return void t.preventDefault();let e=t.changedTouches[0].pageY,r=i.scrollTop,n=i.scrollHeight-i.clientHeight;0!==n&&((r<=0&&e>a||r>=n&&e<a)&&t.preventDefault(),a=e)},{passive:!1,capture:!0}),m(document,"touchend",t=>{let e=t.target;E(e)&&e!==document.activeElement&&(t.preventDefault(),e.style.transform="translateY(-2000px)",e.focus(),requestAnimationFrame(()=>{e.style.transform=""}))},{passive:!1,capture:!0}),m(document,"focus",t=>{let e=t.target;E(e)&&(e.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{e.style.transform="",d&&(d.height<window.innerHeight?requestAnimationFrame(()=>{y(e)}):d.addEventListener("resize",()=>y(e),{once:!0}))}))},!0),m(window,"scroll",()=>{window.scrollTo(0,0)})),n=()=>{c(),f(),window.scrollTo(s,u)}),()=>{0==--_&&(null==n||n())}}},[e])}({isDisabled:!tt||to||!H||ta||!tr||!Y||!q});let{restorePositionSetting:tI}=function(t){let{isOpen:e,modal:r,nested:n,hasBeenOpened:o,preventScrollRestoration:a,noBodyStyles:s}=t,[l,c]=i.useState(()=>"undefined"!=typeof window?window.location.href:""),f=i.useRef(0),p=i.useCallback(()=>{if(u()&&null===I&&e&&!s){I={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};let{scrollX:t,innerHeight:e}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-f.current}px`,left:`${-t}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let t=e-window.innerHeight;t&&f.current>=e&&(document.body.style.top=`${-(f.current+t)}px`)}),300)}},[e]),d=i.useCallback(()=>{if(u()&&null!==I&&!s){let t=-parseInt(document.body.style.top,10),e=-parseInt(document.body.style.left,10);Object.assign(document.body.style,I),window.requestAnimationFrame(()=>{if(a&&l!==window.location.href)return void c(window.location.href);window.scrollTo(e,t)}),I=null}},[l]);return i.useEffect(()=>{function t(){f.current=window.scrollY}return t(),window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[]),i.useEffect(()=>{if(r)return()=>{"undefined"!=typeof document&&(document.querySelector("[data-vaul-drawer]")||d())}},[r,d]),i.useEffect(()=>{!n&&o&&(e?(window.matchMedia("(display-mode: standalone)").matches||p(),r||window.setTimeout(()=>{d()},500)):d())},[e,o,l,r,n,p,d]),{restorePositionSetting:d}}({isOpen:tt,modal:H,nested:null!=X&&X,hasBeenOpened:tr,preventScrollRestoration:K,noBodyStyles:V});function tx(){return(window.innerWidth-26)/window.innerWidth}function tD(t,e){var r;let n=t,o=null==(r=window.getSelection())?void 0:r.toString(),i=ty.current?O(ty.current,G):null,a=new Date;if("SELECT"===n.tagName||n.hasAttribute("data-vaul-no-drag")||n.closest("[data-vaul-no-drag]"))return!1;if("right"===G||"left"===G)return!0;if(tl.current&&a.getTime()-tl.current.getTime()<500)return!1;if(null!==i&&("bottom"===G?i>0:i<0))return!0;if(o&&o.length>0)return!1;if(tp.current&&a.getTime()-tp.current.getTime()<D&&0===i||e)return tp.current=a,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(0!==n.scrollTop)return tp.current=new Date,!1;if("dialog"===n.getAttribute("role"))break}n=n.parentNode}return!0}function tM(t){to&&ty.current&&(ty.current.classList.remove(A),td.current=!1,ti(!1),tf.current=ne
1w Date),null==z||z(),t||te(!1),setTimeout(()=>{R&&tR(R[0])},1e3*L.DURATION)}function tk(){if(!ty.current)return;let t=document.querySelector("[data-vaul-drawer-wrapper]"),e=O(ty.current,G);S(ty.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${L.DURATION}s cubic-bezier(${L.EASE.join(",")})`}),S(tu.current,{transition:`opacity ${L.DURATION}s cubic-bezier(${L.EASE.join(",")})`,opacity:"1"}),P&&e&&e>0&&tt&&S(t,{borderRadius:"8px",overflow:"hidden",...w(G)?{transform:`scale(${tx()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${tx()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${L.DURATION}s`,transitionTimingFunction:`cubic-bezier(${L.EASE.join(",")})`},!0)}return i.useEffect(()=>{window.requestAnimationFrame(()=>{t_.current=!0})},[]),i.useEffect(()=>{var t;function e(){if(ty.current&&Y&&(E(document.activeElement)||tv.current)){var t;let e=(null==(t=window.visualViewport)?void 0:t.height)||0,r=window.innerHeight,n=r-e,o=ty.current.getBoundingClientRect().height||0;tb.current||(tb.current=o);let i=ty.current.getBoundingClientRect().top;if(Math.abs(tm.current-n)>60&&(tv.current=!tv.current),R&&R.length>0&&tA&&tO&&(n+=tA[tO]||0),tm.current=n,o>e||tv.current){let t=ty.current.getBoundingClientRect().height,a=t;t>e&&(a=e-(o>.8*r?i:26)),F?ty.current.style.height=`${t-Math.max(n,0)}px`:ty.current.style.height=`${Math.max(a,e-i)}px`}else!function(){let t=navigator.userAgent;return"undefined"!=typeof window&&(/Firefox/.test(t)&&/Mobile/.test(t)||/FxiOS/.test(t))}()&&(ty.current.style.height=`${tb.current}px`);R&&R.length>0&&!tv.current?ty.current.style.bottom="0px":ty.current.style.bottom=`${Math.max(n,0)}px`}}return null==(t=window.visualViewport)||t.addEventListener("resize",e),()=>{var t;return null==(t=window.visualViewport)?void 0:t.removeEventListener("resize",e)}},[tO,R,tA]),i.useEffect(()=>(tt&&(S(document.documentElement,{scrollBehavior:"auto"}),tl.current=new Date),()=>{!function(t,e){if(!t||!(t instanceof HTMLElement))return;let r=b.get(t);r&&(t.style[e]=r[e])}(document.documentElement,"scrollBehavior")}),[tt]),i.useEffect(()=>{H||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[H]),i.createElement(o.bL,{defaultOpen:$,onOpenChange:t=>{(M||t)&&(t?tn(!0):tM(!0),te(t))},open:tt},i.createElement(a.Provider,{value:{activeSnapPoint:tw,snapPoints:R,setActiveSnapPoint:tR,drawerRef:ty,overlayRef:tu,onOpenChange:c,onPress:function(t){var e,r;(M||R)&&(!ty.current||ty.current.contains(t.target))&&(tE.current=(null==(e=ty.current)?void 0:e.getBoundingClientRect().height)||0,tT.current=(null==(r=ty.current)?void 0:r.getBoundingClientRect().width)||0,ti(!0),tc.current=new Date,l()&&window.addEventListener("touchend",()=>td.current=!1,{once:!0}),t.target.setPointerCapture(t.pointerId),tg.current=w(G)?t.pageY:t.pageX)},onRelease:function(t){var e,r;if(!to||!ty.current)return;ty.current.classList.remove(A),td.current=!1,ti(!1),tf.current=new Date;let n=O(ty.current,G);
1if(!t||!tD(t.target,!1)||!n||Number.isNaN(n)||null===tc.current)return;let o=tf.current.getTime()-tc.current.getTime(),i=tg.current-(w(G)?t.pageY:t.pageX),a=Math.abs(i)/o;if(a>.05&&(ts(!0),setTimeout(()=>{ts(!1)},200)),R){tL({draggedDistance:i*("bottom"===G||"right"===G?1:-1),closeDrawer:tM,velocity:a,dismissible:M}),null==T||T(t,!0);return}if("bottom"===G||"right"===G?i>0:i<0){tk(),null==T||T(t,!0);return}if(a>.4){tM(),null==T||T(t,!1);return}let s=Math.min(null!=(e=ty.current.getBoundingClientRect().height)?e:0,window.innerHeight),u=Math.min(null!=(r=ty.current.getBoundingClientRect().width)?r:0,window.innerWidth);if(Math.abs(n)>=("left"===G||"right"===G?u:s)*x){tM(),null==T||T(t,!1);return}null==T||T(t,!0),tk()},onDrag:function(t){if(ty.current&&to){let e="bottom"===G||"right"===G?1:-1,r=(tg.current-(w(G)?t.pageY:t.pageX))*e,n=r>0,o=R&&!M&&!n;if(o&&0===tO)return;let i=Math.abs(r),a=document.querySelector("[data-vaul-drawer-wrapper]"),s=i/("bottom"===G||"top"===G?tE.current:tT.current),u=tN(i,n);if(null!==u&&(s=u),o&&s>=1||!td.current&&!tD(t.target,n))return;if(ty.current.classList.add(A),td.current=!0,S(ty.current,{transition:"none"}),S(tu.current,{transition:"none"}),R&&tP({draggedDistance:r}),n&&!R){let t=Math.min(-(8*(Math.log(r+1)-2)*1),0)*e;S(ty.current,{transform:w(G)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`});return}let l=1-s;if((tC||j&&tO===j-1)&&(null==v||v(t,s),S(tu.current,{opacity:`${l}`,transition:"none"},!0)),a&&tu.current&&P){let t=Math.min(tx()+s*(1-tx()),1),e=8-8*s,r=Math.max(0,14-14*s);
1S(a,{borderRadius:`${e}px`,transform:w(G)?`scale(${t}) translate3d(0, ${r}px, 0)`:`scale(${t}) translate3d(${r}px, 0, 0)`,transition:"none"},!0)}if(!R){let t=i*e;S(ty.current,{transform:w(G)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}}},dismissible:M,shouldAnimate:t_,handleOnly:k,isOpen:tt,isDragging:to,shouldFade:tC,closeDrawer:tM,onNestedDrag:function(t,e){if(e<0)return;let r=(window.innerWidth-16)/window.innerWidth,n=r+e*(1-r),o=-16+16*e;S(ty.current,{transform:w(G)?`scale(${n}) translate3d(0, ${o}px, 0)`:`scale(${n}) translate3d(${o}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(t){let e=t?(window.innerWidth-16)/window.innerWidth:1,r=t?-16:0;th.current&&window.clearTimeout(th.current),S(ty.current,{transition:`transform ${L.DURATION}s cubic-bezier(${L.EASE.join(",")})`,transform:w(G)?`scale(${e}) translate3d(0, ${r}px, 0)`:`scale(${e}) translate3d(${r}px, 0, 0)`}),!t&&ty.current&&(th.current=setTimeout(()=>{let t=O(ty.current,G);S(ty.current,{transition:"none",transform:w(G)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},500))},onNestedRelease:function(t,e){let r=w(G)?window.innerHeight:window.innerWidth,n=e?(r-16)/r:1,o=e?-16:0;e&&S(ty.current,{transition:`transform ${L.DURATION}s cubic-bezier(${L.EASE.join(",")})`,transform:w(G)?`scale(${n}) translate3d(0, ${o}px, 0)`:`scale(${n}) translate3d(${o}px, 0, 0)`})},keyboardIsOpen:tv,modal:H,snapPointsOffset:tA,activeSnapPointIndex:tO,direction:G,shouldScaleBackground:P,setBackgroundColorOnScale:N,noBodyStyles:V,container:Z,autoFocus:J}},h))}let D=i.forwardRef(function(t,e){let{...r}=t,{overlayRef:n,snapPoints:a,onRelease:u,shouldFade:l,isOpen:c,modal:f,shouldAnimate:p}=s(),d=T(e,n),h=a&&a.length>0;if(!f)return null;let g=i.useCallback(t=>u(t),[u]);return i.createElement(o.hJ,{onMouseUp:g,ref:d,"data-vaul-overlay":"","data-vaul-snap-points":c&&h?"true":"false","data-vaul-snap-points-overlay":c&&l?"true":"false","data-vaul-animate":(null==p?void 0:p.current)?"true":"false",...r})});D.displayName="Drawer.Overlay";let M=i.forwardRef(function(t,e){let{onPointerDownOutside:r,style:n,onOpenAutoFocus:a,...u}=t,{drawerRef:l,onPress:c,onRelease:f,onDrag:p,keyboardIsOpen:d,snapPointsOffset:h,activeSnapPointIndex:g,modal:v,isOpen:_,direction:m,snapPoints:y,container:E,handleOnly:b,shouldAnimate:S,autoFocus:O}=s(),[A,P]=i.useState(!1),C=T(e,l),I=i.useRef(null),x=i.useRef(null),D=i.useRef(!1),M=y&&y.length>0,{direction:k,isOpen:j,shouldScaleBackground:U,setBackgroundColorOnScale:B,noBodyStyles:F}=s(),H=i.useRef(null),z=(0,i.useMemo)(()=>document.body.style.backgroundColor,[]);function X(){return(window.innerWidth-26)/window.innerWidth}i.useEffect(()=>{if(j&&U){H.current&&clearTimeout(H.current);let t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;!function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r]}(B&&!F?R(document.body,{background:"black"}):N,R(t,{transformOrigin:w(k)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${L.DURATION}s`,transitionTimingFunction:`cubic-bezier(${L.EASE.join(",")})`}));let e=R(t,{borderRadius:"8px",overflow:"hidden",...w(k)?{transform:`scale(${X()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${X()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{e(),H.current=window.setTimeout(()=>{z?document.body.style.background=z:document.body.style.removeProperty("background")},1e3*L.DURATION)}}},[j,U,z]);let V=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(D.current)return!0;let n=Math.abs(t.y),o=Math.abs(t.x),i=o>n,a=["bottom","right"].includes(e)?1:-1;if("left"===e||"right"===e){if(!(t.x*a<0)&&o>=0&&o<=r)return i}else if(!(t.y*a<0)&&n>=0&&n<=r)return!i;return D.current=!0,!0};function G(t){I.current=null,D.current=!1,f(t)}return i.useEffect(()=>{M&&window.requestAnimationFrame(()=>{P(!0)})},[]),i.createElement(o.UC,{"data-vaul-drawer-direction":m,"data-vaul-drawer":"","data-vaul-delayed-snap-points":A?"true":"false","data-vaul-snap-points":_&&M?"true":"false","data-vaul-custom-container":E?"true":"false","data-vaul-animate":(null==S?void 0:S.current)?"true":"false",...u,ref:C,style:h&&h.length>0?{"--snap-point-height":`${h[null!=g?g:0]}px`,...n}:n,onPointerDown:t=>{b||(null==u.onPointerDown||u.onPointerDown.call(u,t),I.current={x:t.pageX,y:t.pageY},c(t))},onOpenAutoFocus:t=>{null==a||a(t),O||t.preventDefault()},onPointerDownOutside:t=>{if(null==r||r(t),!v||t.defaultPrevented)return void t.preventDefault();
1d.current&&(d.current=!1)},onFocusOutside:t=>{if(!v)return void t.preventDefault()},onPointerMove:t=>{if(x.current=t,b||(null==u.onPointerMove||u.onPointerMove.call(u,t),!I.current))return;let e=t.pageY-I.current.y,r=t.pageX-I.current.x,n="touch"===t.pointerType?10:2;V({x:r,y:e},m,n)?p(t):(Math.abs(r)>n||Math.abs(e)>n)&&(I.current=null)},onPointerUp:t=>{null==u.onPointerUp||u.onPointerUp.call(u,t),I.current=null,D.current=!1,f(t)},onPointerOut:t=>{null==u.onPointerOut||u.onPointerOut.call(u,t),G(x.current)},onContextMenu:t=>{null==u.onContextMenu||u.onContextMenu.call(u,t),x.current&&G(x.current)}})});M.displayName="Drawer.Content";let k=i.forwardRef(function(t,e){let{preventCycle:r=!1,children:n,...o}=t,{closeDrawer:a,isDragging:u,snapPoints:l,activeSnapPoint:c,setActiveSnapPoint:f,dismissible:p,handleOnly:d,isOpen:h,onPress:g,onDrag:v}=s(),_=i.useRef(null),m=i.useRef(!1);function y(){_.current&&window.clearTimeout(_.current),m.current=!1}return i.createElement("div",{onClick:function(){if(m.current)return void y();window.setTimeout(()=>{!function(){if(u||r||m.current)return y();if(y(),!l||0===l.length){p||a();return}if(c===l[l.length-1]&&p)return a();let t=l.findIndex(t=>t===c);-1!==t&&f(l[t+1])}()},120)},onPointerCancel:y,onPointerDown:t=>{d&&g(t),_.current=window.setTimeout(()=>{m.current=!0},250)},onPointerMove:t=>{d&&v(t)},ref:e,"data-vaul-drawer-visible":h?"true":"false","data-vaul-handle":"","aria-hidden":"true",...o},i.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},n))});k.displayName="Drawer.Handle";let j={Root:x,NestedRoot:function(t){let{onDrag:e,onOpenChange:r,open:n,...o}=t,{onNestedDrag:a,onNestedOpenChange:u,onNestedRelease:l}=s();if(!a)throw Error("Drawer.NestedRoot must be placed in another drawer");return i.createElement(x,{nested:!0,open:n,onClose:()=>{u(!1)},onDrag:(t,r)=>{a(t,r),null==e||e(t,r)},onOpenChange:t=>{t&&u(t),null==r||r(t)},onRelease:l,...o})},Content:M,Overlay:D,Trigger:o.l9,Portal:function(t){let e=s(),{container:r=e.container,...n}=t;return i.createElement(o.ZL,{container:r,...n})},Handle:k,Close:o.bm,Title:o.hE,Description:o.VY}},85768:(t,e,r)=>{"use strict";r.d(e,{d:()=>o});var n=r(96196),o=function(){function t(t){void 0===t&&(t=n.dM),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}()},86405:(t,e,r)=>{"use strict";r.d(e,{mS:()=>l,$G:()=>u,kv:()=>c});var n="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},o="1.9.0",i=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,a=function(t){var e=new Set([t]),r=new Set,n=t.match(i);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=o.prerelease)return function(e){return e===t};function a(t){return r.add(t),!1}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(i);if(!n)return a(t);var s={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=s.prerelease||o.major!==s.major)return a(t);if(0===o.major)return o.minor===s.minor&&o.patch<=s.patch?(e.add(t),!0):a(t);return o.minor<=s.minor?(e.add(t),!0):a(t)}}(o),s=Symbol.for("opentelemetry.js.api."+o.split(".")[0]);function u(t,e,r,i){void 0===i&&(i=!1);var a,u=n[s]=null!=(a=n[s])?a:{version:o};if(!i&&u[t]){var l=Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}if(u.version!==o){var l=Error("@opentelemetry/api: Registration of version v"+u.version+" for "+t+" does not match previously registered API v"+o);return r.error(l.stack||l.message),!1}return u[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+o+"."),!0}function l(t){var e,r,o=null==(e=n[s])?void 0:e.version;if(o&&a(o))return null==(r=n[s])?void 0:r[t]}function c(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+o+".");var r=n[s];r&&delete r[t]}},88759:t=>{"use strict";function e(t){try{return JSON.stringify(t)}catch(t){return'"[Circular]"'}}t.exports=function(t,r,n){var o=n&&n.stringify||e;if("object"==typeof t&&null!==t){var i=r.length+1;if(1===i)return t;var a=Array(i);a[0]=o(t);for(var s=1;s<i;s++)a[s]=o(r[s]);return a.join(" ")}if("string"!=typeof t)return t;var u=r.length;if(0===u)return t;for(var l="",c=0,f=-1,p=t&&t.length||0,d=0;d<p;){if(37===t.charCodeAt(d)&&d+1<p){switch(f=f>-1?f:0,t.charCodeAt(d+1)){case 100:case 102:if(c>=u||null==r[c])break;f<d&&(l+=t.slice(f,d)),l+=Number(r[c]),f=d+2,d++;break;case 105:if(c>=u||null==r[c])break;f<d&&(l+=t.slice(f,d)),l+=Math.floor(Number(r[c])),f=d+2,d++;break;case 79:case 111:case 106:if(c>
1=u||void 0===r[c])break;f<d&&(l+=t.slice(f,d));var h=typeof r[c];if("string"===h){l+="'"+r[c]+"'",f=d+2,d++;break}if("function"===h){l+=r[c].name||"<anonymous>",f=d+2,d++;break}l+=o(r[c]),f=d+2,d++;break;case 115:if(c>=u)break;f<d&&(l+=t.slice(f,d)),l+=String(r[c]),f=d+2,d++;break;case 37:f<d&&(l+=t.slice(f,d)),l+="%",f=d+2,d++,c--}++c}++d}return -1===f?t:(f<p&&(l+=t.slice(f)),l)}},89050:(t,e,r)=>{"use strict";r.d(e,{F:()=>p});var n,o=r(40382),i="telemetry.sdk.name",a="telemetry.sdk.language",s="telemetry.sdk.version",u=((n={})[i]="opentelemetry",n["process.runtime.name"]="browser",n[a]="webjs",n[s]="1.30.1",n),l=function(){return(l=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},c=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}
1finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},f=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},p=function(){function t(t,e){var r,n=this;this._attributes=t,this.asyncAttributesPending=null!=e,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==e?void 0:e.then(function(t){return n._attributes=Object.assign({},n._attributes,t),n.asyncAttributesPending=!1,t},function(t){return o.s.debug("a resource's async attributes promise rejected: %s",t),n.asyncAttributesPending=!1,{}})}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t(((e={})["service.name"]="unknown_service",e[a]=u[a],e[i]=u[i],e[s]=u[s],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&o.s.error("Accessing resource attributes before async attributes settled"),null!=(t=this._attributes)?t:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=function(){return c(this,function(t){switch(t.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:t.sent(),t.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},t.prototype.merge=function(e){var r,n=this;if(!e)return this;var o=l(l({},this._syncAttributes),null!=(r=e._syncAttributes)?r:e.attributes);return this._asyncAttributesPromise||e._asyncAttributesPromise?new t(o,Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(t){var r,o=f(t,2),i=o[0],a=o[1];return l(l(l(l({},n._syncAttributes),i),null!=(r=e._syncAttributes)?r:e.attributes),a)})):new t(o)},t.EMPTY=new t({}),t}()},90740:(t,e,r)=>{t.exports=r(2295)},95391:(t,e,r)=>{"use strict";r.d(e,{D:()=>F});var n,o,i,a,s=r(33714),u=r(74998),l=r(43400),c=r(38569);function f(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var p=r(40382),d=r(15735),h=r(35719),g=r(9456),v=function(){return(v=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},_=function(){function t(t,e,r){this.instrumentationName=t,this.instrumentationVersion=e,this._config={},this._wrap=g.wrap,this._unwrap=g.unwrap,this._massWrap=g.massWrap,this._massUnwrap=g.massUnwrap,this.setConfig(r),this._diag=p.s.createComponentLogger({namespace:t}),this._tracer=l.u.getTracer(t,e),this._meter=d.q.getMeter(t,e),this._logger=h.K9.getLogger(t,e),this._updateMetricInstruments()}return Object.defineProperty(t.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),t.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(t.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),t.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)},t.prototype.getModuleDefinitions=function(){var t,e=null!=(t=this.init())?t:[];return Array.isArray(e)?e:[e]},t.prototype._updateMetricInstruments=function(){},t.prototype.getConfig=function(){return this._config},t.prototype.setConfig=function(t){this._config=v({enabled:!0},t)},t.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(t.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),t.prototype._runSpanCustomizationHook=function(t,e,r,n){if(t)try{t(r,n)}catch(t){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:e},t)}},t}(),m=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),y=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return o._config.enabled&&o.enable(),o}return m(e,t),e}(_),E=performance,T=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function b(t){return[Math.trunc(t/1e3),Math.round(t%1e3*1e6)]}function S(t){var e,r,n,o;return r=b(("number"!=typeof(e=E.timeOrigin)&&(e=E.timing&&E.timing.fetchStart),e)),n=b("number"==typeof t?t:E.now()),(o=[r[0]+n[0],r[1]+n[1]])[1]>=1e9&&(o[1]-=1e9,o[0]+=1),o}!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.UNLOAD_EVENT_END="unloadEventEnd",t.UNLOAD_EVENT_START="unloadEventStart"}(n||(n={}));var w=performance;function O(t){return[Math.trunc(t/1e3),Math.round(t%1e3*1e6)]}function R(){var t=w.timeOrigin;return"number"!=typeof t&&(t=w.timing&&w.timing.fetchStart),t}function L(t){var e,r,n,o;if(Array.isArray(e=t)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1])return t;if("number"==typeof t)if(!(t<R()))return O(t);else{return r=O(R()),n=O("number"==typeof t?t:w.now()),(o=[r[0]+n[0],r[1]+n[1]])[1]>=1e9&&(o[1]-=1e9,o[0]+=1),o}if(t instanceof Date)return O(t.getTime());throw TypeError("Invalid input type")}function A(t){return 1e9*t[0]+t[1]}function P(t,e,r,o){var i=void 0,a=void 0;e in r&&"number"==typeof r[e]&&(i=r[e]);var s=o||n.FETCH_START;if(s in r&&"number"==typeof r[s]&&(a=r[s]),void 0!==i&&void 0!==a&&i>=a)return t.addEvent(e,i),t}function C(t,e,r){void 0===r&&(r=!1),r||(P(t,n.FETCH_START,e),P(t,n.DOMAIN_LOOKUP_START,e),P(t,n.DOMAIN_LOOKUP_END,e),P(t,n.CONNECT_START,e),"name"in e&&e.name.startsWith("https:")&&P(t,n.SECURE_CONNECTION_START,e),P(t,n.CONNECT_END,e),P(t,n.REQUEST_START,e),P(t,n.RESPONSE_START,e),P(t,n.RESPONSE_END,e));var o=e[n.ENCODED_BODY_SIZE];void 0!==o&&t.setAttribute("http.response_content_length",o);var i=e[n.DECODED_BODY_SIZE];void 0!==i&&o!==i&&t.setAttribute("http.response_content_length_uncompressed",i)}function N(){return"undefined"!=typeof location?location.origin:void 0}function I(t){if("function"==typeof URL)return new URL(t,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);var e=(o||(o=document.createElement("a")),o);return e.href=t,e}!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"}(i||(i={}));var x=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},D=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},M=p.s.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"}),k=new TextEncoder;function j(t){return k.encode(t).byteLength}var U="0.57.2";(a||(a={})).HTTP_STATUS_TEXT="http.status_text";var B=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),F=function(t){function e(e){void 0===e&&(e={});var r=t.call(this,"@opentelemetry/instrumentation-xml-http-request",U,e)||this;return r.component="xml-http-request",r.version=U,r.moduleName=r.component,r._tasksCount=0,r._xhrMem=new WeakMap,r._usedResources=new WeakSet,r}return B(e,t),e.prototype.init=function(){},e.prototype._addHeaders=function(t,e){if(r=I(e).href,("string"==typeof(n=this.getConfig().propagateTraceHeaderCorsUrls||[])||n instanceof RegExp)&&(n=[n]),!(I(r).origin===N()||n.some(function(t){return"string"==typeof t?r===t:!!r.match(t)}))){var r,n,o={};s.$.inject(u._.active(),o),Object.keys(o).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}var i={};
1s.$.inject(u._.active(),i),Object.keys(i).forEach(function(e){t.setRequestHeader(e,String(i[e]))})},e.prototype._addChildSpan=function(t,e){var r=this;u._.with(l.u.setSpan(u._.active(),t),function(){var t=r.tracer.startSpan("CORS Preflight",{startTime:e[n.FETCH_START]});C(t,e,r.getConfig().ignoreNetworkEvents),t.end(e[n.RESPONSE_END])})},e.prototype._addFinalSpanAttributes=function(t,e,r){if("string"==typeof r){var n=I(r);void 0!==e.status&&t.setAttribute("http.status_code",e.status),void 0!==e.statusText&&t.setAttribute(a.HTTP_STATUS_TEXT,e.statusText),t.setAttribute("http.host",n.host),t.setAttribute("http.scheme",n.protocol.replace(":","")),t.setAttribute("http.user_agent",navigator.userAgent)}},e.prototype._applyAttributesAfterXHR=function(t,e){var r=this,n=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof n&&function(t,e,r){var n,o;try{o=t()}catch(t){n=t}finally{if(e(n,o),n&&!r)throw n}}(function(){return n(t,e)},function(t){t&&r._diag.error("applyCustomAttributesOnSpan",t)},!0)},e.prototype._addResourceObserver=function(t,e){var r=this._xhrMem.get(t);r&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(r.createdResources={observer:new PerformanceObserver(function(t){var n=t.getEntries(),o=I(e);n.forEach(function(t){"xmlhttprequest"===t.initiatorType&&t.name===o.href&&r.createdResources&&r.createdResources.entries.push(t)})}),entries:[]},r.createdResources.observer.observe({entryTypes:["resource"]}))},e.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(E.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},e.prototype._findResourceAndAddNetworkEvents=function(t,e,r,o,i){if(r&&o&&i&&t.createdResources){var a=t.createdResources.entries;a&&a.length||(a=E.getEntriesByType("resource"));var s=function(t,e,r,o,i,a){void 0===i&&(i=new WeakSet);var s,u,l,c,f,p,d,h,g,v=I(t),_=(s=t=v.toString(),u=e,l=r,c=o,f=i,p=void 0,d=A(u),h=A(l),(g=c.filter(function(t){var e=A(L(t[n.FETCH_START])),r=A(L(t[n.RESPONSE_END]));return t.initiatorType.toLowerCase()===(p||"xmlhttprequest")&&t.name===s&&e>=d&&r<=h})).length>0&&(g=g.filter(function(t){return!f.has(t)})),g);if(0===_.length)return{mainRequest:void 0};if(1===_.length)return{mainRequest:_[0]};var m=_.slice().sort(function(t,e){var r=t[n.FETCH_START],o=e[n.FETCH_START];return r>o?1:r<o?-1:0});if(v.origin===N()||!(m.length>1))return{mainRequest:_[0]};var y=m[0],E=function(t,e,r){for(var o,i=A(r),a=A(L(e)),s=t[1],u=t.length,l=1;l<u;l++){var c=t[l],f=A(L(c[n.FETCH_START])),p=i-A(L(c[n.RESPONSE_END]));f>=a&&(!o||p<o)&&(o=p,s=c)}return s}(m,y[n.RESPONSE_END],r),T=y[n.RESPONSE_END];return E[n.FETCH_START]<T&&(E=y,y=void 0),{corsPreFlightRequest:y,mainRequest:E}}(I(r).href,o,i,a,this._usedResources);if(s.mainRequest){var u=s.mainRequest;this._markResourceAsUsed(u);var l=s.corsPreFlightRequest;l&&(this._addChildSpan(e,l),this._markResourceAsUsed(l)),C(e,u,this.getConfig().ignoreNetworkEvents)}}},e.prototype._cleanPreviousSpanInformation=function(t){var e=this._xhrMem.get(t);if(e){var r=e.callbackToRemoveEvents;r&&r(),this._xhrMem.delete(t)}},e.prototype._createSpan=function(t,e,r){if(function(t,e){var r,n;if(!e)return!1;try{for(var o=T(e),i=o.next();!i.done;i=o.next()){var a=i.value;if("string"==typeof a?t===a:!!t.match(a))return!0}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}(e,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");var n,o=r.toUpperCase(),a=this.tracer.startSpan(o,{kind:c.v.CLIENT,attributes:((n={})["http.method"]=r,n["http.url"]=I(e).toString(),n)});return a.addEvent(i.METHOD_OPEN),this._cleanPreviousSpanInformation(t),this._xhrMem.set(t,{span:a,spanUrl:e}),a},e.prototype._markResourceAsUsed=function(t){this._usedResources.add(t)},e.prototype._patchOpen=function(){var t=this;return function(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r[0],i=r[1];return t._createSpan(this,i,o),e.apply(this,r)}}},e.prototype._patchSend=function(){var t=this;function e(e,r){var n=t._xhrMem.get(r);if(n){n.status=r.status,n.statusText=r.statusText,t._xhrMem.delete(r),n.span&&t._applyAttributesAfterXHR(n.span,r);var o=S(),i=Date.now();setTimeout(function(){var r,a,s,u;"function"==typeof(r=n.callbackToRemoveEvents)&&r(),a=n.span,s=n.spanUrl,u=n.sendStartTime,a&&(t._findResourceAndAddNetworkEvents(n,a,s,u,o),a.addEvent(e,i),t._addFinalSpanAttributes(a,n,s),a.end(i),t._tasksCount--),t._clearResources()},300)}}function r(){e(i.EVENT_ERROR,this)}function n(){e(i.EVENT_ABORT,this)}function o(){e(i.EVENT_TIMEOUT,this)}function a(){this.status<299?e(i.EVENT_LOAD,this):e(i.EVENT_ERROR,this)}return function(e){return function(){for(var s=this,c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];var p=t._xhrMem.get(this);if(!p)return e.apply(this,c);var d=p.span,h=p.spanUrl;if(d&&h){if(t.getConfig().measureRequestSize&&(null==c?void 0:c[0])){var g,v=(g=c[0],"undefined"!=typeof Document&&g instanceof Document?new XMLSerializer().serializeToString(document).length:g instanceof Blob?g.size:void 0!==g.byteLength?g.byteLength:g instanceof FormData?function(t){var e,r,n=0;try{for(var o=x(t.entries()),i=o.next();!i.done;i=o.next()){var a=D(i.value,2),s=a[0],u=a[1];n+=s.length,u instanceof Blob?n+=u.size:n+=u.length}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}(g):g instanceof URLSearchParams?j(g.toString()):"string"==typeof g?j(g):void M.warn("unknown body type"));void 0!==v&&d.setAttribute("http.request_content_length_uncompressed",v)}u._.with(l.u.setSpan(u._.active(),d),function(){t._tasksCount++,p.sendStartTime=S(),d.addEvent(i.METHOD_SEND),s.addEventListener("abort",n),s.addEventListener("error",r),s.addEventListener("load",a),s.addEventListener("timeout",o),p.callbackToRemoveEvents=function(){var e;s.removeEventListener("abort",n),s.removeEventListener("error",r),s.removeEventListener("load",a),s.removeEventListener("timeout",o),(e=t._xhrMem.get(s))&&(e.callbackToRemoveEvents=void 0),p.createdResources&&p.createdResources.observer.disconnect()},t._addHeaders(s,h),t._addResourceObserver(s,h)})}return e.apply(this,c)}}},e.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),f(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),f(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())},e.prototype.disable=function(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet},e}(y)},96196:(t,e,r)=>{"use strict";r.d(e,{RH:()=>i,dM:()=>a,w9:()=>o});var n=r(4647),o="0000000000000000",i="00000000000000000000000000000000",a={traceId:i,spanId:o,traceFlags:n.X.NONE}},97069:(t,e,r)=>{"use strict";r.d(e,{IP:()=>l,YA:()=>u,hX:()=>s});var n=r(96196),o=r(85768),i=/^([0-9a-f]{32})$/i,a=/^[0-9a-f]{16}$/i;function s(t){return i.test(t)&&t!==n.RH}function u(t){var e;return s(t.traceId)&&(e=t.spanId,a.test(e)&&e!==n.w9)}function l(t){return new o.d(t)}}}]);
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.