/*! For license information please see extension.js.LICENSE.txt */ (()=>{var e={1044:(e,t,n)=>{"use strict";n.r(t),n.d(t,{RestError:()=>Qe,bearerTokenAuthenticationPolicy:()=>jt,bearerTokenAuthenticationPolicyName:()=>Lt,createDefaultHttpClient:()=>vt,createEmptyPipeline:()=>o,createHttpHeaders:()=>ut,createPipelineFromOptions:()=>nt,createPipelineRequest:()=>At,decompressResponsePolicy:()=>J,decompressResponsePolicyName:()=>X,defaultRetryPolicy:()=>ye,exponentialRetryPolicy:()=>Ot,exponentialRetryPolicyName:()=>It,formDataPolicy:()=>xe,formDataPolicyName:()=>Ee,getDefaultProxySettings:()=>Me,isRestError:()=>Ze,logPolicy:()=>U,logPolicyName:()=>F,ndJsonPolicy:()=>Ut,ndJsonPolicyName:()=>Ft,proxyPolicy:()=>Fe,proxyPolicyName:()=>Re,redirectPolicy:()=>H,redirectPolicyName:()=>B,retryPolicy:()=>ve,setClientRequestIdPolicy:()=>Be,setClientRequestIdPolicyName:()=>Ue,systemErrorRetryPolicy:()=>Rt,systemErrorRetryPolicyName:()=>Pt,throttlingRetryPolicy:()=>Nt,throttlingRetryPolicyName:()=>kt,tlsPolicy:()=>He,tlsPolicyName:()=>qe,tracingPolicy:()=>tt,tracingPolicyName:()=>et,userAgentPolicy:()=>Y,userAgentPolicyName:()=>K});const r=new Set(["Deserialize","Serialize","Retry","Sign"]);class i{constructor(e){var t;this._policies=[],this._policies=null!==(t=null==e?void 0:e.slice(0))&&void 0!==t?t:[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(t.phase&&!r.has(t.phase))throw new Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!r.has(t.afterPhase))throw new Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){const t=[];return this._policies=this._policies.filter((n=>!(e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase)||(t.push(n.policy),!1))),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight(((e,t)=>n=>t.sendRequest(n,e)),(t=>e.sendRequest(t)))(t)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new i(this._policies)}static create(){return new i}orderPolicies(){const e=[],t=new Map;function n(e){return{name:e,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}const r=n("Serialize"),i=n("None"),o=n("Deserialize"),a=n("Retry"),s=n("Sign"),c=[r,i,o,a,s];function u(e){return"Retry"===e?a:"Serialize"===e?r:"Deserialize"===e?o:"Sign"===e?s:i}for(const e of this._policies){const n=e.policy,r=e.options,i=n.name;if(t.has(i))throw new Error("Duplicate policy names not allowed in pipeline");const o={policy:n,dependsOn:new Set,dependants:new Set};r.afterPhase&&(o.afterPhase=u(r.afterPhase),o.afterPhase.hasAfterPolicies=!0),t.set(i,o),u(r.phase).policies.add(o)}for(const e of this._policies){const{policy:n,options:r}=e,i=n.name,o=t.get(i);if(!o)throw new Error(`Missing node for policy ${i}`);if(r.afterPolicies)for(const e of r.afterPolicies){const n=t.get(e);n&&(o.dependsOn.add(n),n.dependants.add(o))}if(r.beforePolicies)for(const e of r.beforePolicies){const n=t.get(e);n&&(n.dependsOn.add(o),o.dependants.add(n))}}function l(n){n.hasRun=!0;for(const r of n.policies)if((!r.afterPhase||r.afterPhase.hasRun&&!r.afterPhase.policies.size)&&0===r.dependsOn.size){e.push(r.policy);for(const e of r.dependants)e.dependsOn.delete(r);t.delete(r.policy.name),n.policies.delete(r)}}function p(){for(const e of c){if(l(e),e.policies.size>0&&e!==i)return void(i.hasRun||l(i));e.hasAfterPolicies&&l(i)}}let d=0;for(;t.size>0;){d++;const t=e.length;if(p(),e.length<=t&&d>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}}function o(){return i.create()}var a=n(2037),s=n(3837),c=n.n(s);const u="undefined"!=typeof process&&process.env&&process.env.DEBUG||void 0;let l,p=[],d=[];const f=[];u&&m(u);const h=Object.assign((e=>g(e)),{enable:m,enabled:v,disable:function(){const e=l||"";return m(""),e},log:function(e,...t){process.stderr.write(`${c().format(e,...t)}${a.EOL}`)}});function m(e){l=e,p=[],d=[];const t=/\*/g,n=e.split(",").map((e=>e.trim().replace(t,".*?")));for(const e of n)e.startsWith("-")?d.push(new RegExp(`^${e.substr(1)}$`)):p.push(new RegExp(`^${e}$`));for(const e of f)e.enabled=v(e.namespace)}function v(e){if(e.endsWith("*"))return!0;for(const t of d)if(t.test(e))return!1;for(const t of p)if(t.test(e))return!0;return!1}function g(e){const t=Object.assign((function(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}),{enabled:v(e),destroy:y,log:h.log,namespace:e,extend:b});return f.push(t),t}function y(){const e=f.indexOf(this);return e>=0&&(f.splice(e,1),!0)}function b(e){const t=g(`${this.namespace}:${e}`);return t.log=this.log,t}const _=h,E=new Set,x="undefined"!=typeof process&&process.env&&process.env.AZURE_LOG_LEVEL||void 0;let S;const w=_("azure");w.log=(...e)=>{_.log(...e)};const T=["verbose","info","warning","error"];x&&(R(x)?function(e){if(e&&!R(e))throw new Error(`Unknown log level '${e}'. Acceptable values: ${T.join(",")}`);S=e;const t=[];for(const e of E)P(e)&&t.push(e.namespace);_.enable(t.join(","))}(x):console.error(`AZURE_LOG_LEVEL set to unknown log level '${x}'; logging is not enabled. Acceptable values: ${T.join(", ")}.`));const C={verbose:400,info:300,warning:200,error:100};function A(e){const t=w.extend(e);return I(w,t),{error:O(t,"error"),warning:O(t,"warning"),info:O(t,"info"),verbose:O(t,"verbose")}}function I(e,t){t.log=(...t)=>{e.log(...t)}}function O(e,t){const n=Object.assign(e.extend(t),{level:t});if(I(e,n),P(n)){const e=_.disable();_.enable(e+","+n.namespace)}return E.add(n),n}function P(e){return Boolean(S&&C[e.level]<=C[S])}function R(e){return T.includes(e)}const k=A("core-rest-pipeline");function N(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}const D="REDACTED",L=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],M=["api-version"];class j{constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=L.concat(e),t=M.concat(t),this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase()))),this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,n)=>{if(n instanceof Error)return Object.assign(Object.assign({},n),{name:n.name,message:n.message});if("headers"===e)return this.sanitizeHeaders(n);if("url"===e)return this.sanitizeUrl(n);if("query"===e)return this.sanitizeQuery(n);if("body"!==e&&"response"!==e&&"operationSpec"!==e){if(Array.isArray(n)||N(n)){if(t.has(n))return"[Circular]";t.add(n)}return n}}),2)}sanitizeHeaders(e){const t={};for(const n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?t[n]=e[n]:t[n]=D;return t}sanitizeQuery(e){if("object"!=typeof e||null===e)return e;const t={};for(const n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?t[n]=e[n]:t[n]=D;return t}sanitizeUrl(e){if("string"!=typeof e||null===e)return e;const t=new URL(e);if(!t.search)return e;for(const[e]of t.searchParams)this.allowedQueryParameters.has(e.toLowerCase())||t.searchParams.set(e,D);return t.toString()}}const F="logPolicy";function U(e={}){var t;const n=null!==(t=e.logger)&&void 0!==t?t:k.info,r=new j({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:F,async sendRequest(e,t){if(!n.enabled)return t(e);n(`Request: ${r.sanitize(e)}`);const i=await t(e);return n(`Response status code: ${i.status}`),n(`Headers: ${r.sanitize(i.headers)}`),i}}}const B="redirectPolicy",q=["GET","HEAD"];function H(e={}){const{maxRetries:t=20}=e;return{name:B,async sendRequest(e,n){const r=await n(e);return V(n,r,t)}}}async function V(e,t,n,r=0){const{request:i,status:o,headers:a}=t,s=a.get("location");if(s&&(300===o||301===o&&q.includes(i.method)||302===o&&q.includes(i.method)||303===o&&"POST"===i.method||307===o)&&r(e.headers.has(W)||e.headers.set(W,t),n(e))}}const X="decompressResponsePolicy";function J(){return{name:X,sendRequest:async(e,t)=>("HEAD"!==e.method&&e.headers.set("Accept-Encoding","gzip,deflate"),t(e))}}const Q=new WeakMap,Z=new WeakMap;class ee{constructor(){this.onabort=null,Q.set(this,[]),Z.set(this,!1)}get aborted(){if(!Z.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Z.get(this)}static get none(){return new ee}addEventListener(e,t){if(!Q.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Q.get(this).push(t)}removeEventListener(e,t){if(!Q.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");const n=Q.get(this),r=n.indexOf(t);r>-1&&n.splice(r,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function te(e){if(e.aborted)return;e.onabort&&e.onabort.call(e);const t=Q.get(e);t&&t.slice().forEach((t=>{t.call(e,{type:"abort"})})),Z.set(e,!0)}class ne extends Error{constructor(e){super(e),this.name="AbortError"}}class re{constructor(e){if(this._signal=new ee,e){Array.isArray(e)||(e=arguments);for(const t of e)t.aborted?this.abort():t.addEventListener("abort",(()=>{this.abort()}))}}get signal(){return this._signal}abort(){te(this._signal)}static timeout(e){const t=new ee,n=setTimeout(te,e,t);return"function"==typeof n.unref&&n.unref(),t}}const ie="The operation was aborted.";function oe(e,t,n){return new Promise(((r,i)=>{let o,a;const s=()=>i(new ne((null==n?void 0:n.abortErrorMsg)?null==n?void 0:n.abortErrorMsg:ie)),c=()=>{(null==n?void 0:n.abortSignal)&&a&&n.abortSignal.removeEventListener("abort",a)};if(a=()=>(o&&clearTimeout(o),c(),s()),(null==n?void 0:n.abortSignal)&&n.abortSignal.aborted)return s();o=setTimeout((()=>{c(),r(t)}),e),(null==n?void 0:n.abortSignal)&&n.abortSignal.addEventListener("abort",a)}))}function ae(e,t){const n=e.headers.get(t);if(!n)return;const r=Number(n);return Number.isNaN(r)?void 0:r}const se="Retry-After",ce=["retry-after-ms","x-ms-retry-after-ms",se];function ue(e){if(e&&[429,503].includes(e.status))try{for(const t of ce){const n=ae(e,t);if(0===n||n)return n*(t===se?1e3:1)}const t=e.headers.get(se);if(!t)return;const n=Date.parse(t)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch(e){return}}function le(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=ue(e);return Number.isFinite(t)?{retryAfterInMs:t}:{skipStrategy:!0}}}}const pe=1e3,de=64e3;function fe(e={}){var t,n;const r=null!==(t=e.retryDelayInMs)&&void 0!==t?t:pe,i=null!==(n=e.maxRetryDelayInMs)&&void 0!==n?n:de;let o=r;return{name:"exponentialRetryStrategy",retry({retryCount:t,response:n,responseError:r}){const a=!!(p=r)&&("ETIMEDOUT"===p.code||"ESOCKETTIMEDOUT"===p.code||"ECONNREFUSED"===p.code||"ECONNRESET"===p.code||"ENOENT"===p.code),s=a&&e.ignoreSystemErrors,c=function(e){return Boolean(e&&void 0!==e.status&&(e.status>=500||408===e.status)&&501!==e.status&&505!==e.status)}(n),u=c&&e.ignoreHttpStatusCodes,l=n&&(function(e){return Number.isFinite(ue(e))}(n)||!c);var p;if(l||u||s)return{skipStrategy:!0};if(r&&!a&&!c)return{errorToThrow:r};const d=o*Math.pow(2,t),f=Math.min(i,d);var h,m;return o=f/2+(h=0,m=f/2,h=Math.ceil(h),m=Math.floor(m),Math.floor(Math.random()*(m-h+1))+h),{retryAfterInMs:o}}}}const he=A("core-rest-pipeline retryPolicy"),me="retryPolicy";function ve(e,t={maxRetries:z}){const n=t.logger||he;return{name:me,async sendRequest(r,i){var o,a;let s,c,u=-1;e:for(;;){u+=1,s=void 0,c=void 0;try{n.info(`Retry ${u}: Attempting to send request`,r.requestId),s=await i(r),n.info(`Retry ${u}: Received a response from request`,r.requestId)}catch(e){if(n.error(`Retry ${u}: Received an error from request`,r.requestId),c=e,!e||"RestError"!==c.name)throw e;s=c.response}if(null===(o=r.abortSignal)||void 0===o?void 0:o.aborted)throw n.error(`Retry ${u}: Request aborted.`),new ne;if(u>=(null!==(a=t.maxRetries)&&void 0!==a?a:z)){if(n.info(`Retry ${u}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),c)throw c;if(s)return s;throw new Error("Maximum retries reached with no response or error to throw")}n.info(`Retry ${u}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||he;e.info(`Retry ${u}: Processing retry strategy ${t.name}.`);const n=t.retry({retryCount:u,response:s,responseError:c});if(n.skipStrategy){e.info(`Retry ${u}: Skipped.`);continue t}const{errorToThrow:i,retryAfterInMs:o,redirectTo:a}=n;if(i)throw e.error(`Retry ${u}: Retry strategy ${t.name} throws error:`,i),i;if(o||0===o){e.info(`Retry ${u}: Retry strategy ${t.name} retries after ${o}`),await oe(o,void 0,{abortSignal:r.abortSignal});continue e}if(a){e.info(`Retry ${u}: Retry strategy ${t.name} redirects to ${a}`),r.url=a;continue e}}if(c)throw n.info("None of the retry strategies could work with the received error. Throwing it."),c;if(s)return n.info("None of the retry strategies could work with the received response. Returning it."),s}}}}const ge="defaultRetryPolicy";function ye(e={}){var t;return{name:ge,sendRequest:ve([le(),fe(e)],{maxRetries:null!==(t=e.maxRetries)&&void 0!==t?t:z}).sendRequest}}var be=n(6882),_e=n.n(be);const Ee="formDataPolicy";function xe(){return{name:Ee,async sendRequest(e,t){if(e.formData){const t=e.headers.get("Content-Type");t&&-1!==t.indexOf("application/x-www-form-urlencoded")?(e.body=function(e){const t=new URLSearchParams;for(const[n,r]of Object.entries(e))if(Array.isArray(r))for(const e of r)t.append(n,e.toString());else t.append(n,r.toString());return t.toString()}(e.formData),e.formData=void 0):await async function(e,t){const n=new(_e());for(const t of Object.keys(e)){const r=e[t];if(Array.isArray(r))for(const e of r)n.append(t,e);else n.append(t,r)}t.body=n,t.formData=void 0;const r=t.headers.get("Content-Type");r&&-1!==r.indexOf("multipart/form-data")&&t.headers.set("Content-Type",`multipart/form-data; boundary=${n.getBoundary()}`);try{const e=await new Promise(((e,t)=>{n.getLength(((n,r)=>{n?t(n):e(r)}))}));t.headers.set("Content-Length",e)}catch(e){}}(e.formData,e)}return t(e)}}}var Se;const we="undefined"!=typeof process&&Boolean(process.version)&&Boolean(null===(Se=process.versions)||void 0===Se?void 0:Se.node);var Te=n(6018),Ce=n(4476);const Ae="HTTPS_PROXY",Ie="HTTP_PROXY",Oe="ALL_PROXY",Pe="NO_PROXY",Re="proxyPolicy",ke=[];let Ne=!1;const De=new Map;function Le(e){return process.env[e]?process.env[e]:process.env[e.toLowerCase()]?process.env[e.toLowerCase()]:void 0}function Me(e){if(!e&&!(e=function(){if(!process)return;const e=Le(Ae),t=Le(Oe),n=Le(Ie);return e||t||n}()))return;const t=new URL(e);return{host:(t.protocol?t.protocol+"//":"")+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function je(e,{headers:t,tlsSettings:n}){let r;try{r=new URL(e.host)}catch(t){throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}n&&k.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");const i={hostname:r.hostname,port:e.port,protocol:r.protocol,headers:t.toJSON()};return e.username&&e.password?i.auth=`${e.username}:${e.password}`:e.username&&(i.auth=`${e.username}`),i}function Fe(e=Me(),t){Ne||ke.push(...function(){const e=Le(Pe);return Ne=!0,e?e.split(",").map((e=>e.trim())).filter((e=>e.length)):[]}());const n={};return{name:Re,async sendRequest(r,i){var o;return r.proxySettings||function(e,t,n){if(0===t.length)return!1;const r=new URL(e).hostname;if(null==n?void 0:n.has(r))return n.get(r);let i=!1;for(const e of t)"."===e[0]?(r.endsWith(e)||r.length===e.length-1&&r===e.slice(1))&&(i=!0):r===e&&(i=!0);return null==n||n.set(r,i),i}(r.url,null!==(o=null==t?void 0:t.customNoProxyList)&&void 0!==o?o:ke,(null==t?void 0:t.customNoProxyList)?void 0:De)||(r.proxySettings=e),r.proxySettings&&function(e,t){if(e.agent)return;const n="https:"!==new URL(e.url).protocol,r=e.proxySettings;if(r)if(n){if(!t.httpProxyAgent){const n=je(r,e);t.httpProxyAgent=new Ce.HttpProxyAgent(n)}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){const n=je(r,e);t.httpsProxyAgent=new Te.HttpsProxyAgent(n)}e.agent=t.httpsProxyAgent}}(r,n),i(r)}}}const Ue="setClientRequestIdPolicy";function Be(e="x-ms-client-request-id"){return{name:Ue,sendRequest:async(t,n)=>(t.headers.has(e)||t.headers.set(e,t.requestId),n(t))}}const qe="tlsPolicy";function He(e){return{name:qe,sendRequest:async(t,n)=>(t.tlsSettings||(t.tlsSettings=e),n(t))}}const Ve={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Ge(e={}){let t=new ze(e.parentContext);return e.span&&(t=t.setValue(Ve.span,e.span)),e.namespace&&(t=t.setValue(Ve.namespace,e.namespace)),t}class ze{constructor(e){this._contextMap=e instanceof ze?new Map(e._contextMap):new Map}setValue(e,t){const n=new ze(this);return n._contextMap.set(e,t),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new ze(this);return t._contextMap.delete(e),t}}let $e;function We(){return $e||($e={createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(e,t)=>({span:{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{}},tracingContext:Ge({parentContext:t.tracingContext})}),withContext:(e,t,...n)=>t(...n)}),$e}function Ke(e){if(N(e)){const t="string"==typeof e.name,n="string"==typeof e.message;return t&&n}return!1}function Ye(e){if(Ke(e))return e.message;{let t;try{t="object"==typeof e&&e?JSON.stringify(e):String(e)}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}const Xe=s.inspect.custom,Je=new j;class Qe extends Error{constructor(e,t={}){super(e),this.name="RestError",this.code=t.code,this.statusCode=t.statusCode,this.request=t.request,this.response=t.response,Object.setPrototypeOf(this,Qe.prototype)}[Xe](){return`RestError: ${this.message} \n ${Je.sanitize(this)}`}}function Ze(e){return e instanceof Qe||Ke(e)&&"RestError"===e.name}Qe.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR",Qe.PARSE_ERROR="PARSE_ERROR";const et="tracingPolicy";function tt(e={}){const t=$(e.userAgentPrefix),n=function(){try{return function(e){const{namespace:t,packageName:n,packageVersion:r}=e;function i(e,i,o){var a;const s=We().startSpan(e,Object.assign(Object.assign({},o),{packageName:n,packageVersion:r,tracingContext:null===(a=null==i?void 0:i.tracingOptions)||void 0===a?void 0:a.tracingContext}));let c=s.tracingContext;const u=s.span;return c.getValue(Ve.namespace)||(c=c.setValue(Ve.namespace,t)),u.setAttribute("az.namespace",c.getValue(Ve.namespace)),{span:u,updatedOptions:Object.assign({},i,{tracingOptions:Object.assign(Object.assign({},null==i?void 0:i.tracingOptions),{tracingContext:c})})}}function o(e,t,...n){return We().withContext(e,t,...n)}return{startSpan:i,withSpan:async function(e,t,n,r){const{span:a,updatedOptions:s}=i(e,t,r);try{const e=await o(s.tracingOptions.tracingContext,(()=>Promise.resolve(n(s,a))));return a.setStatus({status:"success"}),e}catch(e){throw a.setStatus({status:"error",error:e}),e}finally{a.end()}},withContext:o,parseTraceparentHeader:function(e){return We().parseTraceparentHeader(e)},createRequestHeaders:function(e){return We().createRequestHeaders(e)}}}({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:G})}catch(e){return void k.warning(`Error when creating the TracingClient: ${Ye(e)}`)}}();return{name:et,async sendRequest(e,r){var i,o;if(!n||!(null===(i=e.tracingOptions)||void 0===i?void 0:i.tracingContext))return r(e);const{span:a,tracingContext:s}=null!==(o=function(e,t,n){try{const{span:r,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:{"http.method":t.method,"http.url":t.url,requestId:t.requestId}});if(!r.isRecording())return void r.end();n&&r.setAttribute("http.user_agent",n);const o=e.createRequestHeaders(i.tracingOptions.tracingContext);for(const[e,n]of Object.entries(o))t.headers.set(e,n);return{span:r,tracingContext:i.tracingOptions.tracingContext}}catch(e){return void k.warning(`Skipping creating a tracing span due to an error: ${Ye(e)}`)}}(n,e,t))&&void 0!==o?o:{};if(!a||!s)return r(e);try{const t=await n.withContext(s,r,e);return function(e,t){try{e.setAttribute("http.status_code",t.status);const n=t.headers.get("x-ms-request-id");n&&e.setAttribute("serviceRequestId",n),e.setStatus({status:"success"}),e.end()}catch(e){k.warning(`Skipping tracing span processing due to an error: ${Ye(e)}`)}}(a,t),t}catch(e){throw function(e,t){try{e.setStatus({status:"error",error:Ke(t)?t:void 0}),Ze(t)&&t.statusCode&&e.setAttribute("http.status_code",t.statusCode),e.end()}catch(e){k.warning(`Skipping tracing span processing due to an error: ${Ye(e)}`)}}(a,e),e}}}}function nt(e){const t=o();return we&&(e.tlsOptions&&t.addPolicy(He(e.tlsOptions)),t.addPolicy(Fe(e.proxyOptions)),t.addPolicy(J())),t.addPolicy(xe()),t.addPolicy(Y(e.userAgentOptions)),t.addPolicy(Be()),t.addPolicy(ye(e.retryOptions),{phase:"Retry"}),t.addPolicy(tt(e.userAgentOptions),{afterPhase:"Retry"}),we&&t.addPolicy(H(e.redirectOptions),{afterPhase:"Retry"}),t.addPolicy(U(e.loggingOptions),{afterPhase:"Sign"}),t}var rt=n(3685),it=n(5687),ot=n(9796),at=n(2781);function st(e){return e.toLowerCase()}class ct{constructor(e){if(this._headersMap=new Map,e)for(const t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(st(e),{name:e,value:String(t)})}get(e){var t;return null===(t=this._headersMap.get(st(e)))||void 0===t?void 0:t.value}has(e){return this._headersMap.has(st(e))}delete(e){this._headersMap.delete(st(e))}toJSON(e={}){const t={};if(e.preserveCase)for(const e of this._headersMap.values())t[e.name]=e.value;else for(const[e,n]of this._headersMap)t[e]=n.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return function*(e){for(const t of e.values())yield[t.name,t.value]}(this._headersMap)}}function ut(e){return new ct(e)}const lt={};function pt(e){return e&&"function"==typeof e.pipe}function dt(e){return new Promise((t=>{e.on("close",t),e.on("end",t),e.on("error",t)}))}function ft(e){return e&&"number"==typeof e.byteLength}class ht extends at.Transform{constructor(e){super(),this.loadedBytes=0,this.progressCallback=e}_transform(e,t,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(e){n(e)}}}class mt{constructor(){this.cachedHttpsAgents=new WeakMap}async sendRequest(e){var t,n,r;const i=new re;let o;if(e.abortSignal){if(e.abortSignal.aborted)throw new ne("The operation was aborted.");o=e=>{"abort"===e.type&&i.abort()},e.abortSignal.addEventListener("abort",o)}e.timeout>0&&setTimeout((()=>{i.abort()}),e.timeout);const a=e.headers.get("Accept-Encoding"),s=(null==a?void 0:a.includes("gzip"))||(null==a?void 0:a.includes("deflate"));let c,u="function"==typeof e.body?e.body():e.body;if(u&&!e.headers.has("Content-Length")){const t=function(e){return e?Buffer.isBuffer(e)?e.length:pt(e)?null:ft(e)?e.byteLength:"string"==typeof e?Buffer.from(e).length:null:0}(u);null!==t&&e.headers.set("Content-Length",t)}try{if(u&&e.onUploadProgress){const t=e.onUploadProgress,n=new ht(t);n.on("error",(e=>{k.error("Error in upload progress",e)})),pt(u)?u.pipe(n):n.end(u),u=n}const o=await this.makeRequest(e,i,u),a=function(e){const t=ut();for(const n of Object.keys(e.headers)){const r=e.headers[n];Array.isArray(r)?r.length>0&&t.set(n,r[0]):r&&t.set(n,r)}return t}(o),p={status:null!==(t=o.statusCode)&&void 0!==t?t:0,headers:a,request:e};if("HEAD"===e.method)return o.resume(),p;c=s?function(e,t){const n=t.get("Content-Encoding");if("gzip"===n){const t=ot.createGunzip();return e.pipe(t),t}if("deflate"===n){const t=ot.createInflate();return e.pipe(t),t}return e}(o,a):o;const d=e.onDownloadProgress;if(d){const e=new ht(d);e.on("error",(e=>{k.error("Error in download progress",e)})),c.pipe(e),c=e}return(null===(n=e.streamResponseStatusCodes)||void 0===n?void 0:n.has(Number.POSITIVE_INFINITY))||(null===(r=e.streamResponseStatusCodes)||void 0===r?void 0:r.has(p.status))?p.readableStreamBody=c:p.bodyAsText=await(l=c,new Promise(((e,t)=>{const n=[];l.on("data",(e=>{Buffer.isBuffer(e)?n.push(e):n.push(Buffer.from(e))})),l.on("end",(()=>{e(Buffer.concat(n).toString("utf8"))})),l.on("error",(e=>{e&&"AbortError"===(null==e?void 0:e.name)?t(e):t(new Qe(`Error reading response as text: ${e.message}`,{code:Qe.PARSE_ERROR}))}))}))),p}finally{if(e.abortSignal&&o){let t=Promise.resolve();pt(u)&&(t=dt(u));let n=Promise.resolve();pt(c)&&(n=dt(c)),Promise.all([t,n]).then((()=>{var t;o&&(null===(t=e.abortSignal)||void 0===t||t.removeEventListener("abort",o))})).catch((e=>{k.warning("Error when cleaning up abortListener on httpRequest",e)}))}}var l}makeRequest(e,t,n){var r;const i=new URL(e.url),o="https:"!==i.protocol;if(o&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);const a={agent:null!==(r=e.agent)&&void 0!==r?r:this.getOrCreateAgent(e,o),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0})};return new Promise(((r,i)=>{const s=o?rt.request(a,r):it.request(a,r);s.once("error",(t=>{var n;i(new Qe(t.message,{code:null!==(n=t.code)&&void 0!==n?n:Qe.REQUEST_SEND_ERROR,request:e}))})),t.signal.addEventListener("abort",(()=>{const e=new ne("The operation was aborted.");s.destroy(e),i(e)})),n&&pt(n)?n.pipe(s):n?"string"==typeof n||Buffer.isBuffer(n)?s.end(n):ft(n)?s.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(k.error("Unrecognized body type",n),i(new Qe("Unrecognized body type"))):s.end()}))}getOrCreateAgent(e,t){var n;const r=e.disableKeepAlive;if(t)return r?rt.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new rt.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(r&&!e.tlsSettings)return it.globalAgent;const t=null!==(n=e.tlsSettings)&&void 0!==n?n:lt;let i=this.cachedHttpsAgents.get(t);return i&&i.options.keepAlive===!r||(k.info("No cached TLS Agent exist, creating a new Agent"),i=new it.Agent(Object.assign({keepAlive:!r},t)),this.cachedHttpsAgents.set(t,i)),i}}}function vt(){return new mt}var gt=n(6113),yt=n.n(gt);const bt=new Uint8Array(256);let _t=bt.length;function Et(){return _t>bt.length-16&&(yt().randomFillSync(bt),_t=0),bt.slice(_t,_t+=16)}const xt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,St=[];for(let e=0;e<256;++e)St.push((e+256).toString(16).substr(1));const wt=function(e,t=0){const n=(St[e[t+0]]+St[e[t+1]]+St[e[t+2]]+St[e[t+3]]+"-"+St[e[t+4]]+St[e[t+5]]+"-"+St[e[t+6]]+St[e[t+7]]+"-"+St[e[t+8]]+St[e[t+9]]+"-"+St[e[t+10]]+St[e[t+11]]+St[e[t+12]]+St[e[t+13]]+St[e[t+14]]+St[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&xt.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},Tt=function(e,t,n){const r=(e=e||{}).random||(e.rng||Et)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return wt(r)};class Ct{constructor(e){var t,n,r,i,o,a,s;this.url=e.url,this.body=e.body,this.headers=null!==(t=e.headers)&&void 0!==t?t:ut(),this.method=null!==(n=e.method)&&void 0!==n?n:"GET",this.timeout=null!==(r=e.timeout)&&void 0!==r?r:0,this.formData=e.formData,this.disableKeepAlive=null!==(i=e.disableKeepAlive)&&void 0!==i&&i,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=null!==(o=e.withCredentials)&&void 0!==o&&o,this.abortSignal=e.abortSignal,this.tracingOptions=e.tracingOptions,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||Tt(),this.allowInsecureConnection=null!==(a=e.allowInsecureConnection)&&void 0!==a&&a,this.enableBrowserStreams=null!==(s=e.enableBrowserStreams)&&void 0!==s&&s}}function At(e){return new Ct(e)}const It="exponentialRetryPolicy";function Ot(e={}){var t;return ve([fe(Object.assign(Object.assign({},e),{ignoreSystemErrors:!0}))],{maxRetries:null!==(t=e.maxRetries)&&void 0!==t?t:z})}const Pt="systemErrorRetryPolicy";function Rt(e={}){var t;return{name:Pt,sendRequest:ve([fe(Object.assign(Object.assign({},e),{ignoreHttpStatusCodes:!0}))],{maxRetries:null!==(t=e.maxRetries)&&void 0!==t?t:z}).sendRequest}}const kt="throttlingRetryPolicy";function Nt(e={}){var t;return{name:kt,sendRequest:ve([le()],{maxRetries:null!==(t=e.maxRetries)&&void 0!==t?t:z}).sendRequest}}const Dt={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:12e4};const Lt="bearerTokenAuthenticationPolicy";async function Mt(e){const{scopes:t,getAccessToken:n,request:r}=e,i={abortSignal:r.abortSignal,tracingOptions:r.tracingOptions},o=await n(t,i);o&&e.request.headers.set("Authorization",`Bearer ${o.token}`)}function jt(e){var t;const{credential:n,scopes:r,challengeCallbacks:i}=e,o=e.logger||k,a=Object.assign({authorizeRequest:null!==(t=null==i?void 0:i.authorizeRequest)&&void 0!==t?t:Mt,authorizeRequestOnChallenge:null==i?void 0:i.authorizeRequestOnChallenge},i),s=n?function(e,t){let n,r=null,i=null;const o=Object.assign(Object.assign({},Dt),t),a={get isRefreshing(){return null!==r},get shouldRefresh(){var e;return!a.isRefreshing&&(null!==(e=null==i?void 0:i.expiresOnTimestamp)&&void 0!==e?e:0)-o.refreshWindowInMse.getToken(t,s)),o.retryIntervalInMs,null!==(c=null==i?void 0:i.expiresOnTimestamp)&&void 0!==c?c:Date.now()).then((e=>(r=null,i=e,n=s.tenantId,i))).catch((e=>{throw r=null,i=null,n=void 0,e}))),r}return async(e,t)=>n!==t.tenantId||Boolean(t.claims)||a.mustRefresh?s(e,t):(a.shouldRefresh&&s(e,t),i)}(n):()=>Promise.resolve(null);return{name:Lt,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");let n,i;await a.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:e,getAccessToken:s,logger:o});try{n=await t(e)}catch(e){i=e,n=e.response}if(a.authorizeRequestOnChallenge&&401===(null==n?void 0:n.status)&&function(e){const t=e.headers.get("WWW-Authenticate");if(401===e.status&&t)return t}(n)&&await a.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:e,response:n,getAccessToken:s,logger:o}))return t(e);if(i)throw i;return n}}}const Ft="ndJsonPolicy";function Ut(){return{name:Ft,async sendRequest(e,t){if("string"==typeof e.body&&e.body.startsWith("[")){const t=JSON.parse(e.body);Array.isArray(t)&&(e.body=t.map((e=>JSON.stringify(e)+"\n")).join(""))}return t(e)}}}},5521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,{signal:n}={}){return new Promise(((r,i)=>{function o(){null==n||n.removeEventListener("abort",o),e.removeListener(t,a),e.removeListener("error",s)}function a(...e){o(),r(e)}function s(e){o(),i(e)}null==n||n.addEventListener("abort",o),e.on(t,a),e.on("error",s)}))}},8192:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(1808)),a=i(n(4404)),s=i(n(7310)),c=i(n(8104)),u=i(n(5521)),l=n(8054),p=(0,c.default)("http-proxy-agent");class d extends l.Agent{constructor(e){let t;if(t="string"==typeof e?s.default.parse(e):e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");p("Creating new HttpProxyAgent instance: %o",t),super(t);const n=Object.assign({},t);var r;this.secureProxy=t.secureProxy||"string"==typeof(r=n.protocol)&&/^https:?$/i.test(r),n.host=n.hostname||n.host,"string"==typeof n.port&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,t){return r(this,void 0,void 0,(function*(){const{proxy:n,secureProxy:r}=this,i=s.default.parse(e.path);let c;if(i.protocol||(i.protocol="http:"),i.hostname||(i.hostname=t.hostname||t.host||null),null==i.port&&(t.port,1)&&(i.port=String(t.port)),"80"===i.port&&(i.port=""),e.path=s.default.format(i),n.auth&&e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(n.auth).toString("base64")}`),r?(p("Creating `tls.Socket`: %o",n),c=a.default.connect(n)):(p("Creating `net.Socket`: %o",n),c=o.default.connect(n)),e._header){let t,n;p("Regenerating stored HTTP header string for request"),e._header=null,e._implicitHeader(),e.output&&e.output.length>0?(p("Patching connection write() output buffer with updated header"),t=e.output[0],n=t.indexOf("\r\n\r\n")+4,e.output[0]=e._header+t.substring(n),p("Output buffer: %o",e.output)):e.outputData&&e.outputData.length>0&&(p("Patching connection write() output buffer with updated header"),t=e.outputData[0].data,n=t.indexOf("\r\n\r\n")+4,e.outputData[0].data=e._header+t.substring(n),p("Output buffer: %o",e.outputData[0].data))}return yield(0,u.default)(c,"connect"),c}))}}t.default=d},4476:function(e,t,n){"use strict";const r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(8192));function i(e){return new r.default(e)}!function(e){e.HttpProxyAgent=r.default,e.prototype=r.default.prototype}(i||(i={})),e.exports=i},7164:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>ae,BaseCore:()=>ce,BaseTelemetryPlugin:()=>G.i,CoreUtils:()=>ie.Tr,DiagnosticLogger:()=>R.AQ,ESPromise:()=>pe,ESPromiseScheduler:()=>ge,EventHelper:()=>Ee.zB,EventLatency:()=>T,EventPersistence:()=>A,EventPropertyType:()=>C,EventsDiscardedReason:()=>_e.h,FullVersionString:()=>ie.vs,InternalAppInsightsCore:()=>ne,InternalBaseCore:()=>Z,LoggingSeverity:()=>x,MinChannelPriorty:()=>be,NotificationManager:()=>te,PerfEvent:()=>k.zn,PerfManager:()=>k.Jk,ProcessTelemetryContext:()=>j.Vi,TraceLevel:()=>I,Undefined:()=>we.jA,Utils:()=>ie.cQ,ValueKind:()=>w,ValueSanitizer:()=>ye,Version:()=>ie.Gf,_ExtendedInternalMessageId:()=>O,_InternalLogMessage:()=>R.lQ,_InternalMessageId:()=>S,__getRegisteredEvents:()=>xe.um,_logInternalMessage:()=>R.L4,_throwInternal:()=>R.kP,_warnToConsole:()=>R.jV,addEventHandler:()=>xe.Ib,addEventListeners:()=>xe.yw,addPageHideEventListener:()=>xe.TJ,addPageShowEventListener:()=>xe.nD,addPageUnloadEventListener:()=>xe.c9,areCookiesSupported:()=>q.p7,arrForEach:()=>a.tO,arrIndexOf:()=>a.UA,arrMap:()=>a.Mr,arrReduce:()=>a.Xz,attachEvent:()=>xe.pZ,cookieAvailable:()=>q.p7,createCookieMgr:()=>q.Nz,createEnumStyle:()=>o.By,createGuid:()=>ie.cm,createProcessTelemetryContext:()=>j.CD,createTraceParent:()=>Te.SU,createUniqueNamespace:()=>H.J,createUnloadHandlerContainer:()=>$.Y,dateNow:()=>a.m6,deleteCookie:()=>ie.kT,detachEvent:()=>xe.pD,disableCookies:()=>ie.oF,disallowsSameSiteNone:()=>q.UY,doPerf:()=>k.Lm,dumpObj:()=>N.eU,eventOff:()=>xe.QY,eventOn:()=>xe.XO,extend:()=>ie.l7,findW3cTraceParent:()=>Te.lq,formatTraceParent:()=>Te.aR,generateW3CId:()=>Ee.DO,getCommonSchemaMetaData:()=>ie.Vv,getConsole:()=>N.dr,getCookie:()=>ie.ej,getCookieValue:()=>ie.Do,getCrypto:()=>N.MX,getDocument:()=>N.Me,getExceptionName:()=>a.jj,getFieldValueType:()=>ie.Sy,getGlobal:()=>L.Rd,getGlobalInst:()=>N.a8,getHistory:()=>N.s1,getIEVersion:()=>N.sA,getISOString:()=>a.Y6,getJSON:()=>N.xA,getLocation:()=>N.k$,getMsCrypto:()=>N.gz,getNavigator:()=>N.jW,getPerformance:()=>N.r,getSetValue:()=>a.qK,getTenantId:()=>ie.jM,getTime:()=>ie.hK,getWindow:()=>N.Jj,hasDocument:()=>N.Nv,hasHistory:()=>N.fE,hasJSON:()=>N.nS,hasNavigator:()=>N.d6,hasOwnProperty:()=>a.nr,hasWindow:()=>N.Ym,isArray:()=>a.kJ,isArrayValid:()=>ie.JT,isBeaconsSupported:()=>N.MF,isBoolean:()=>a.jn,isChromium:()=>ie.mJ,isDate:()=>a.J_,isDocumentObjectAvailable:()=>ie.x9,isError:()=>a.VZ,isFetchSupported:()=>N.JO,isFunction:()=>a.mf,isIE:()=>N.w1,isLatency:()=>ie.r7,isNotTruthy:()=>a.F,isNullOrUndefined:()=>a.le,isNumber:()=>a.hj,isObject:()=>a.Kn,isReactNative:()=>N.b$,isSampledFlag:()=>Te.Pn,isString:()=>a.HD,isTruthy:()=>a.fQ,isTypeof:()=>a.Ym,isUint8ArrayAvailable:()=>ie.IZ,isUndefined:()=>a.o8,isValidSpanId:()=>Te.Lc,isValidTraceId:()=>Te.jN,isValidTraceParent:()=>Te.J6,isValueAssigned:()=>ie.Sn,isValueKind:()=>ie.oS,isWindowObjectAvailable:()=>ie.dH,isXhrSupported:()=>N.Z3,mergeEvtNamespace:()=>xe.jU,newGuid:()=>Ee.GW,newId:()=>Se.pZ,normalizeJsName:()=>a.Gf,objCreate:()=>L.pu,objDefineAccessors:()=>a.l_,objForEachKey:()=>a.rW,objFreeze:()=>a.FL,objKeys:()=>a.FY,objSeal:()=>a.Xi,openXhr:()=>ie.ot,optimizeObject:()=>a.Ax,parseTraceParent:()=>Te.j_,perfNow:()=>Ee.Jj,proxyAssign:()=>a.cf,proxyFunctionAs:()=>a.Oi,proxyFunctions:()=>a.Vb,random32:()=>Se._l,randomValue:()=>Se.az,removeEventHandler:()=>xe.C1,removeEventListeners:()=>xe.nJ,removePageHideEventListener:()=>xe.C9,removePageShowEventListener:()=>xe.Yl,removePageUnloadEventListener:()=>xe.JA,safeGetCookieMgr:()=>q.JP,safeGetLogger:()=>R.vH,sanitizeProperty:()=>ie.yj,setCookie:()=>ie.d8,setEnableEnvMocks:()=>N.dI,setProcessTelemetryTimings:()=>ie.if,setValue:()=>a.sO,strContains:()=>a._Q,strEndsWith:()=>a.Id,strFunction:()=>we.cb,strObject:()=>we.fK,strPrototype:()=>we.hB,strStartsWith:()=>a.xe,strTrim:()=>a.nd,strUndefined:()=>we.jA,throwError:()=>a._y,toISOString:()=>a.Y6,useXDomainRequest:()=>N.cp});var r,i=n(7421),o=n(951),a=n(4869),s="Failed",c=s+"MonitorAjax",u="Track",l="Start",p="Stop",d="Event",f="AuthContext",h="Exception",m="Local",v="Session",g="Storage",y="Browser",b="Cannot",_="Buffer",E="InstrumentationKey",x=(0,o.By)({CRITICAL:1,WARNING:2}),S=(0,o.By)(((r={})[y+"DoesNotSupport"+m+g]=0,r[y+b+"Read"+m+g]=1,r[y+b+"Read"+v+g]=2,r[y+b+"Write"+m+g]=3,r[y+b+"Write"+v+g]=4,r[y+s+"RemovalFrom"+m+g]=5,r[y+s+"RemovalFrom"+v+g]=6,r[b+"SendEmptyTelemetry"]=7,r.ClientPerformanceMathError=8,r["ErrorParsingAI"+v+"Cookie"]=9,r.ErrorPVCalc=10,r[h+"WhileLoggingError"]=11,r[s+"AddingTelemetryTo"+_]=12,r[c+"Abort"]=13,r[c+"Dur"]=14,r[c+"Open"]=15,r[c+"RSC"]=16,r[c+"Send"]=17,r[c+"GetCorrelationHeader"]=18,r[s+"ToAddHandlerForOnBeforeUnload"]=19,r[s+"ToSendQueuedTelemetry"]=20,r[s+"ToReportDataLoss"]=21,r["Flush"+s]=22,r.MessageLimitPerPVExceeded=23,r.MissingRequiredFieldSpecification=24,r.NavigationTimingNotSupported=25,r.OnError=26,r[v+"RenewalDateIsZero"]=27,r.SenderNotInitialized=28,r[l+u+d+s]=29,r[p+u+d+s]=30,r[l+u+s]=31,r[p+u+s]=32,r.TelemetrySampledAndNotSent=33,r[u+d+s]=34,r[u+h+s]=35,r[u+"Metric"+s]=36,r[u+"PV"+s]=37,r[u+"PV"+s+"Calc"]=38,r[u+"Trace"+s]=39,r["Transmission"+s]=40,r[s+"ToSet"+g+_]=41,r[s+"ToRestore"+g+_]=42,r.InvalidBackendResponse=43,r[s+"ToFixDepricatedValues"]=44,r.InvalidDurationValue=45,r.TelemetryEnvelopeInvalid=46,r.CreateEnvelopeError=47,r[b+"SerializeObject"]=48,r[b+"SerializeObjectNonSerializable"]=49,r.CircularReferenceDetected=50,r["Clear"+f+s]=51,r[h+"Truncated"]=52,r.IllegalCharsInName=53,r.ItemNotInArray=54,r.MaxAjaxPerPVExceeded=55,r.MessageTruncated=56,r.NameTooLong=57,r.SampleRateOutOfRange=58,r["Set"+f+s]=59,r["Set"+f+s+"AccountName"]=60,r.StringValueTooLong=61,r.StartCalledMoreThanOnce=62,r.StopCalledWithoutStart=63,r["TelemetryInitializer"+s]=64,r.TrackArgumentsNotSpecified=65,r.UrlTooLong=66,r[v+g+_+"Full"]=67,r[b+"AccessCookie"]=68,r.IdTooLong=69,r.InvalidEvent=70,r[c+"SetRequestHeader"]=71,r["Send"+y+"InfoOnUserInit"]=72,r["Plugin"+h]=73,r["Notification"+h]=74,r.SnippetScriptLoadFailure=99,r["Invalid"+E]=100,r[b+"ParseAiBlobValue"]=101,r.InvalidContentBlob=102,r[u+"PageAction"+d+s]=103,r[s+"AddingCustomDefinedRequestContext"]=104,r["InMemory"+g+_+"Full"]=105,r[E+"Deprecation"]=106,r)),w=(0,o.By)({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),T=(0,o.By)({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),C=(0,o.By)({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),A=(0,o.By)({Normal:1,Critical:2}),I=(0,o.By)({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),O=(0,a.FL)((0,i.uc)((0,i.uc)({},S),(0,o.By)({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),P=n(9141),R=n(9339),k=n(1782),N=n(9251),D=n(8145),L=n(175),M=n(6335),j=n(1030),F=n(9031),U=500;function B(e,t,n){t&&(0,a.kJ)(t)&&t[D.R5]>0&&(t=t.sort((function(e,t){return e[M.yi]-t[M.yi]})),(0,a.tO)(t,(function(e){e[M.yi]0)){var r=(0,a.v4)(t.diagnosticLogInterval);r&&r>0||(r=1e4),S=setInterval((function(){clearInterval(S),S=0,G()}),r)}return S}function C(){n=!1,t=(0,a.mm)(!0,{},X),e[D.TC]=t,e[D.eZ]=new R.AQ(t),e[D.iC]=[],g=new z,r=[],o=null,s=null,c=null,u=null,l=null,d=null,p=[],f=null,h=null,m=null,v=!1,y=null,b=(0,H.J)("AIBaseCore",!0),_=(0,$.Y)(),x=null}function A(){var n=(0,j.CD)(P(),t,e);return n[D.Fc](T),n}function I(n){var r=function(e,t,n){var r,i=[],o={};return(0,a.tO)(n,(function(t){((0,a.le)(t)||(0,a.le)(t[D.VL]))&&(0,a._y)(W);var n=t[M.yi],r=t[D.pZ];t&&n&&((0,a.le)(o[n])?o[n]=r:(0,R.jV)(e,"Two extensions have same priority #"+n+" - "+o[n]+", "+r)),(!n||n<500)&&i[D.MW](t)})),(r={all:n})[M.oV]=i,r}(e[D.eZ],0,p);d=r[M.oV],l=null;var i=r.all;if(m=(0,a.FL)(function(e,t,n){var r=[];if(e&&(0,a.tO)(e,(function(e){return B(r,e,n)})),t){var i=[];(0,a.tO)(t,(function(e){e[M.yi]>U&&i[D.MW](e)})),B(r,i,n)}return r}(h,i,e)),f){var o=(0,a.UA)(i,f);-1!==o&&i[D.cb](o,1),-1!==(o=(0,a.UA)(d,f))&&d[D.cb](o,1),f._setQueue(m)}else f=function(e,t){function n(){return(0,j.CD)(null,t[D.TC],t,null)}function r(e,t,n,r){var i=e?e[D.R5]+1:1;function o(){0==--i&&(r&&r(),r=null)}i>0&&(0,a.tO)(e,(function(e){if(e&&e.queue[D.R5]>0){var r=e.chain,a=t[D.zV](r);a[D.Fc](o),n(a)}else i--})),o()}var i=!1,o={identifier:"ChannelControllerPlugin",priority:U,initialize:function(t,n,r,o){i=!0,(0,a.tO)(e,(function(e){e&&e.queue[D.R5]>0&&(0,F.bP)((0,j.CD)(e.chain,t,n),r)}))},isInitialized:function(){return i},processTelemetry:function(t,i){r(e,i||n(),(function(e){e[D.uL](t)}),(function(){i[D.uL](t)}))},update:function(t,n){var i=n||{reason:0};return r(e,t,(function(e){e[D.uL](i)}),(function(){t[D.uL](i)})),!0},pause:function(){r(e,n(),(function(e){e.iterate((function(e){e.pause&&e.pause()}))}),null)},resume:function(){r(e,n(),(function(e){e.iterate((function(e){e.resume&&e.resume()}))}),null)},teardown:function(t,n){var o=n||{reason:0,isAsync:!1};return r(e,t,(function(e){e[D.uL](o)}),(function(){t[D.uL](o),i=!1})),!0},getChannel:function(t){var n=null;return e&&e[D.R5]>0&&(0,a.tO)(e,(function(e){if(e&&e.queue[D.R5]>0&&((0,a.tO)(e.queue,(function(e){if(e[D.pZ]===t)return n=e,-1})),n))return-1})),n},flush:function(t,i,o,a){var s=1,c=!1,u=null;function l(){s--,c&&0===s&&(u&&(clearTimeout(u),u=null),i&&i(c),i=null)}return a=a||5e3,r(e,n(),(function(e){e.iterate((function(e){if(e[D.kL]){s++;var n=!1;e[D.kL](t,(function(){n=!0,l()}),o)||n||(t&&null==u?u=setTimeout((function(){u=null,l()}),a):l())}}))}),(function(){c=!0,l()})),!0},_setQueue:function(t){e=t}};return o}(m,e);i[D.MW](f),d[D.MW](f),e[D.iC]=(0,F.AA)(i),f[D.VL](t,e,i);var s=A();(0,F.bP)(s,i),e[D.iC]=(0,a.FL)((0,F.AA)(d||[])).slice(),n&&function(t){var n=(0,j.xy)(P(),e);n[D.Fc](T),e._updateHook&&!0===e._updateHook(n,t)||n[D.uL](t)}(n)}function O(t){var n,r=null,i=null;return(0,a.tO)(e[D.iC],(function(e){if(e[D.pZ]===t&&e!==f&&e!==g)return i=e,-1})),!i&&f&&(i=f.getChannel(t)),i&&((n={plugin:i})[D.$h]=function(e){(0,F.OY)(i)[M.mE]=!e},n.isEnabled=function(){var e=(0,F.OY)(i);return!e[D.fi]&&!e[M.mE]},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[i],o=((n={reason:1})[D.d]=e,n);N(r,o,(function(e){e&&I({reason:32,removed:r}),t&&t(e)}))},r=n),r}function P(){if(!l){var n=(d||[]).slice();-1===(0,a.UA)(n,g)&&n[D.MW](g),l=(0,j.jV)((0,F.AA)(n),t,e)}return l}function N(n,r,i){if(n&&n[D.R5]>0){var o=(0,j.jV)(n,t,e),s=(0,j.Bt)(o,e);s[D.Fc]((function(){var e=!1,t=[];(0,a.tO)(p,(function(r,i){Q(r,n)?e=!0:t[D.MW](r)})),p=t;var r=[];h&&((0,a.tO)(h,(function(t,i){var o=[];(0,a.tO)(t,(function(t){Q(t,n)?e=!0:o[D.MW](t)})),r[D.MW](o)})),h=r),i&&i(e),T()})),s[D.uL](r)}else i(!1)}function G(){if(e[D.eZ]&&e[D.eZ].queue){var n=e[D.eZ].queue.slice(0);e[D.eZ].queue[D.R5]=0,(0,a.tO)(n,(function(n){var r,i=((r={})[D.I]=y||"InternalMessageId: "+n[D.Gc],r.iKey=(0,a.v4)(t[D.p$]),r.time=(0,a.Y6)(new Date),r.baseType=R.lQ.dataType,r.baseData={message:n[D.gU]},r);e.track(i)}))}}function Z(e,t,n,r){return f?f[D.kL](e,t,n||6,r):(t&&t(!1),!0)}function ee(t){var n=e[D.eZ];n?((0,R.kP)(n,2,73,t),T()):(0,a._y)(t)}C(),e[D.yl]=function(){return n},e[D.VL]=function(r,s,u,l){var d,f;v&&(0,a._y)(Y),e[D.yl]()&&(0,a._y)("Core should not be initialized more than once"),t=r||{},e[D.TC]=t,(0,a.le)(r[D.p$])&&(0,a._y)("Please provide instrumentation key"),o=l,e[K]=l,!0===(f=(0,a.v4)(t.disableDbgExt))&&E&&(o[D.n7](E),E=null),o&&!E&&!0!==f&&(E=(0,V.p)(t),o[D.g](E)),!(d=(0,a.v4)(t.enablePerfMgr))&&c&&(c=null),d&&(0,a.qK)(t,M.DN,J),(0,a.qK)(t,M.Zh,{}).NotificationManager=o,u&&(e[D.eZ]=u);var g=(0,a.qK)(t,M.js,[]);(p=[])[D.MW].apply(p,(0,i.$h)((0,i.$h)([],s,!1),g,!1)),h=(0,a.qK)(t,M.Z,[]),I(null),m&&0!==m[D.R5]||(0,a._y)("No "+M.Z+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return m&&(0,a.tO)(m,(function(t){e[D.MW](t.queue)})),(0,a.FL)(e)},e.track=function(n){n.iKey=n.iKey||t[D.p$],n[D.Z_]=n[D.Z_]||(0,a.Y6)(new Date),n.ver=n.ver||"4.0",!v&&e[D.yl]()?A()[D.uL](n):r[D.MW](n)},e[D.SD]=A,e[D.tb]=function(){return o||(o=function(){var e;return(0,L.pu)(((e={})[D.g]=function(e){},e[D.n7]=function(e){},e[M.uC]=function(e){},e[M.$F]=function(e,t){},e[M.f_]=function(e,t){},e))}(),e[K]=o),o},e[D.g]=function(e){o&&o[D.g](e)},e[D.n7]=function(e){o&&o[D.n7](e)},e.getCookieMgr=function(){return u||(u=(0,q.Nz)(t,e[D.eZ])),u},e.setCookieMgr=function(e){u=e},e[M.kl]=function(){if(!s&&!c&&(0,a.v4)(t.enablePerfMgr)){var n=(0,a.v4)(t[M.DN]);(0,a.mf)(n)&&(c=n(e,e[D.tb]()))}return s||c||(0,k.j5)()},e.setPerfMgr=function(e){s=e},e.eventCnt=function(){return r[D.R5]},e.releaseQueue=function(){if(n&&r[D.R5]>0){var e=r;r=[],(0,a.tO)(e,(function(e){A()[D.uL](e)}))}},e.pollInternalLogs=function(e){return y=e||null,w=!1,S&&(clearInterval(S),S=null),T(!0)},e[D.LS]=function(){w=!0,S&&(clearInterval(S),S=0,G())},(0,a.Vb)(e,(function(){return g}),["addTelemetryInitializer"]),e.unload=function(t,r,i){var o;void 0===t&&(t=!0),n||(0,a._y)("SDK is not initialized"),v&&(0,a._y)(Y);var s=((o={reason:50})[D.d]=t,o.flushComplete=!1,o),c=(0,j.Bt)(P(),e);function u(t){s.flushComplete=t,v=!0,_.run(c,s),e[D.LS](),c[D.uL](s)}c[D.Fc]((function(){C(),r&&r(s)}),e),G(),Z(t,u,6,i)||u(!1)},e[D.TO]=O,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void ee(W);var i=O(e[D.pZ]);if(i&&!t)return r&&r(!1),void ee("Plugin ["+e[D.pZ]+"] is already loaded!");var o={reason:16};function a(t){p[D.MW](e),o.added=[e],I(o),r&&r(!0)}if(i){var s=[i.plugin];N(s,{reason:2,isAsync:!!n},(function(e){e?(o.removed=s,o.reason|=32,a()):r&&r(!1)}))}else a()},e.evtNamespace=function(){return b},e[D.kL]=Z,e.getTraceCtx=function(e){return x||(x=(0,F.Yn)()),x},e.setTraceCtx=function(e){x=e||null},(0,a.Oi)(e,"addUnloadCb",(function(){return _}),"add")}))}return e.__ieDyn=1,e}();function ee(e,t,n,r){(0,a.tO)(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(e){}}))}var te=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0,P.Z)(e,this,(function(e){e[D.g]=function(t){e.listeners[D.MW](t)},e[D.n7]=function(t){for(var n=(0,a.UA)(e[D.dE],t);n>-1;)e.listeners[D.cb](n,1),n=(0,a.UA)(e[D.dE],t)},e[M.uC]=function(t){ee(e[D.dE],M.uC,!0,(function(e){e[M.uC](t)}))},e[M.$F]=function(t,n){ee(e[D.dE],M.$F,!0,(function(e){e[M.$F](t,n)}))},e[M.f_]=function(t,n){ee(e[D.dE],M.f_,n,(function(e){e[M.f_](t,n)}))},e[M.C$]=function(t){t&&(!n&&t[D.PL]()||ee(e[D.dE],M.C$,!1,(function(e){t[D.d]?setTimeout((function(){return e[M.C$](t)}),0):e[M.C$](t)})))}}))}return e.__ieDyn=1,e}(),ne=function(e){function t(){var n=e.call(this)||this;return(0,P.Z)(t,n,(function(e,t){function n(t){var n=e[D.tb]();n&&n[M.$F]([t],2)}e[D.VL]=function(e,n,r,i){t[D.VL](e,n,r||new R.AQ(e),i||new te(e))},e.track=function(r){(0,k.Lm)(e[M.kl](),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),(0,a._y)("Invalid telemetry item")),function(e){(0,a.le)(e[D.I])&&(n(e),(0,a._y)("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return(0,i.ne)(t,e),t.__ieDyn=1,t}(Z),re=n(1539),ie=n(5705),oe=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0,P.Z)(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new R.AQ({loggingLevelConsole:1})),e.initialize=function(n,r,i,o){(0,k.Lm)(e,(function(){return"AppInsightsCore.initialize"}),(function(){var s=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=re.YT);var c=n.propertyStorageOverride;!c||c.getProperty&&c.setProperty||(0,a._y)("Invalid property storage override passed."),n.channels&&(0,a.tO)(n.channels,(function(e){e&&(0,a.tO)(e,(function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}}))}))}e.getWParam=function(){return"undefined"!=typeof document||n.enableWParam?0:-1},r&&(0,a.tO)(r,(function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}})),e.pluginVersionString=s.join(";"),e.pluginVersionStringArr=s;try{t.initialize(n,r,i,o),e.pollInternalLogs("InternalLog")}catch(t){var u=e.logger,l=(0,N.eU)(t);-1!==l.indexOf("channels")&&(l+="\n - Channels must be provided through config.channels only!"),(0,R.kP)(u,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}}),(function(){return{config:n,extensions:r,logger:i,notificationManager:o}}))},e.track=function(n){(0,k.Lm)(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=(0,ie.hK)(),(0,ie.r7)(r.latency)||(r.latency=1);var i=r.ext=r.ext||{};i.sdk=i.sdk||{},i.sdk.ver=ie.vs;var o=r.baseData=r.baseData||{};o[re.o6]=o[re.o6]||{};var a=o[re.o6];a[re.p8]=a[re.p8]||e.pluginVersionString||re.qS}t.track(r)}),(function(){return{item:n}}),!n.sync)}})),n}return(0,i.ne)(t,e),t.__ieDyn=1,t}(ne);const ae=oe;var se=function(e){function t(){var n=e.call(this)||this;return(0,P.Z)(t,n,(function(e,t){e.initialize=function(n,r,i,o){n&&!n.endpointUrl&&(n.endpointUrl=re.YT),e.getWParam=function(){return ie.x9||n.enableWParam?0:-1};try{t.initialize(n,r,i,o)}catch(t){(0,R.kP)(e.logger,1,514,"Initialization Failed: "+(0,N.eU)(t)+"\n - Note: Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var r=n.ext=n.ext||{};r.sdk=r.sdk||{},r.sdk.ver=ie.vs}t.track(n)}})),n}return(0,i.ne)(t,e),t.__ieDyn=1,t}(Z);const ce=se;var ue=a.mf;function le(e,t,n){return function(r){e[t]=r,n()}}const pe=function(){function e(t){var n=0,r=null,i=[];function o(){if(i.length>0){var e=i.slice();i=[],setTimeout((function(){for(var t=0,n=e.length;t")+"."+de;function o(e){var t=(0,L.Rd)();t&&t.QUnit&&console&&console.log("ESPromiseScheduler["+i+"] "+e)}function a(e){(0,R.jV)(n,"ESPromiseScheduler["+i+"] "+e)}de++,(0,P.Z)(e,this,(function(e){var t=null,n=0;function s(e,t){for(var n=0;n0){for(var c=0;c{"use strict";n.d(t,{YT:()=>i,o6:()=>a,p8:()=>o,qS:()=>r});var r="",i="https://browser.events.data.microsoft.com/OneCollector/1.0/",o="version",a="properties"},5705:(e,t,n)=>{"use strict";n.d(t,{Do:()=>k,Gf:()=>f,IZ:()=>w,JT:()=>j,Sn:()=>x,Sy:()=>U,Tr:()=>q,Vv:()=>A,cQ:()=>B,cm:()=>N,d8:()=>O,dH:()=>E,ej:()=>R,hK:()=>L,if:()=>F,jM:()=>S,kT:()=>P,l7:()=>D,mJ:()=>H,oF:()=>I,oS:()=>M,ot:()=>V,r7:()=>T,vs:()=>h,x9:()=>_,yj:()=>C});var r,i=n(9251),o=n(4869),a=n(8140),s=n(8956),c=n(1550),u=n(7954),l=n(9406),p=n(175),d=n(1539),f="3.2.14",h="1DS-Web-JS-"+f,m="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",v="withCredentials",g="timeout",y=((r={})[0]=0,r[2]=6,r[1]=1,r[3]=7,r[4098]=6,r[4097]=1,r[4099]=7,r),b=null,_=Boolean((0,i.Me)()),E=Boolean((0,i.Jj)());function x(e){return!(e===d.qS||(0,o.le)(e))}function S(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return d.qS}function w(){return null===b&&(b=!(0,o.o8)(Uint8Array)&&!function(){var e=(0,i.jW)();if(!(0,o.o8)(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&t.indexOf("chrome")<0)return!0}return!1}()&&!(0,i.b$)()),b}function T(e){return!!(e&&(0,o.hj)(e)&&e>=1&&e<=4)}function C(e,t,n){if(!t&&!x(t)||"string"!=typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||(0,o.kJ)(t))t={value:t};else if("object"!==r||c.CY.call(t,"value")){if((0,o.le)(t.value)||t.value===d.qS||!(0,o.HD)(t.value)&&!(0,o.hj)(t.value)&&!(0,o.jn)(t.value)&&!(0,o.kJ)(t.value))return null}else t={value:n?JSON.stringify(t):t};if((0,o.kJ)(t.value)&&!j(t.value))return null;if(!(0,o.le)(t.kind)){if((0,o.kJ)(t.value)||!M(t.kind))return null;t.value=t.value.toString()}return t}function A(e,t,n){var r=-1;if(!(0,o.o8)(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),function(e){return e>=0&&e<=9}(n))-1===r&&(r=0),r|=n;else{var i=y[U(e)]||-1;-1!==r&&-1!==i?r|=i:6===i&&(r=i)}return r}function I(){(0,a.JP)(null).setEnabled(!1)}function O(e,t,n){(0,a.p7)(null)&&(0,a.JP)(null).set(e,t,86400*n,null,"/")}function P(e){(0,a.p7)(null)&&(0,a.JP)(null).del(e)}function R(e){return(0,a.p7)(null)?k((0,a.JP)(null),e):d.qS}function k(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||d.qS}function N(e){void 0===e&&(e="D");var t=(0,s.GW)();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,d.qS)),t}function D(e,t,n,r,i){var a={},s=!1,u=0,l=arguments.length,p=arguments;for("[object Boolean]"===Object[c.hB].toString.call(p[0])&&(s=p[0],u++);u0&&e<=13||32===e}function j(e){return e.length>0}function F(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=L()}function U(e){var t=0;if(null!=e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===c.fK&&(t=4,(0,o.kJ)(e)?(t=4096,e.length>0&&(t|=U(e[0]))):c.CY.call(e,"value")&&(t=8192|U(e.value)))}return t}var B={Version:f,FullVersionString:h,strUndefined:c.jA,strObject:c.fK,Undefined:c.jA,arrForEach:o.tO,arrIndexOf:o.UA,arrMap:o.Mr,arrReduce:o.Xz,objKeys:o.FY,toISOString:o.Y6,isReactNative:i.b$,isString:o.HD,isNumber:o.hj,isBoolean:o.jn,isFunction:o.mf,isArray:o.kJ,isObject:o.Kn,strTrim:o.nd,isDocumentObjectAvailable:_,isWindowObjectAvailable:E,isValueAssigned:x,getTenantId:S,isBeaconsSupported:i.MF,isUint8ArrayAvailable:w,isLatency:T,sanitizeProperty:C,getISOString:o.Y6,useXDomainRequest:i.cp,getCommonSchemaMetaData:A,cookieAvailable:a.p7,disallowsSameSiteNone:a.UY,setCookie:O,deleteCookie:P,getCookie:R,createGuid:N,extend:D,getTime:L,isValueKind:M,isArrayValid:j,objDefineAccessors:o.l_,addPageUnloadEventListener:u.c9,setProcessTelemetryTimings:F,addEventHandler:u.Ib,getFieldValueType:U,strEndsWith:o.Id,objForEachKey:o.rW},q={_canUseCookies:void 0,isTypeof:o.Ym,isUndefined:o.o8,isNullOrUndefined:o.le,hasOwnProperty:o.nr,isFunction:o.mf,isObject:o.Kn,isDate:o.J_,isArray:o.kJ,isError:o.VZ,isString:o.HD,isNumber:o.hj,isBoolean:o.jn,toISOString:o.Y6,arrForEach:o.tO,arrIndexOf:o.UA,arrMap:o.Mr,arrReduce:o.Xz,strTrim:o.nd,objCreate:p.pu,objKeys:o.FY,objDefineAccessors:o.l_,addEventHandler:u.Ib,dateNow:o.m6,isIE:i.w1,disableCookies:I,newGuid:s.GW,perfNow:s.Jj,newId:l.pZ,randomValue:l.az,random32:l._l,mwcRandomSeed:l.CN,mwcRandom32:l.F6,generateW3CId:s.DO};function H(){return!!(0,i.a8)("chrome")}function V(e,t,n,r,i,o){function a(e,t,n){try{e[t]=n}catch(e){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var s=new XMLHttpRequest;return r&&a(s,m,r),n&&a(s,v,n),s.open(e,t,!i),n&&a(s,v,n),!i&&o&&a(s,g,o),s}},1488:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BE_PROFILE:()=>v,NRT_PROFILE:()=>m,PostChannel:()=>me,RT_PROFILE:()=>h});var r=n(7421),i=n(9141),o=n(1782),a=n(7954),s=n(7624),c=n(5705),u=n(4869),l=n(9251),p=n(8452),d=n(9339),f=n(7951),h="REAL_TIME",m="NEAR_REAL_TIME",v="BEST_EFFORT",g="",y="POST",b="drop",_="requeue",E="application/x-json-stream",x="cache-control",S="content-type",w="kill-duration",T="time-delta-millis",C="client-version",A="client-id",I="time-delta-to-apply-millis",O="upload-time",P="apikey",R="AuthMsaDeviceTicket",k="AuthXToken",N="msfpc",D="trace",L="user";function M(e){var t=(e.ext||{}).intweb;return t&&(0,c.Sn)(t[N])?t[N]:null}function j(e){for(var t=null,n=0;null===t&&n(0,u.m6)()||(delete n[r],!1)}}))}return e.__ieDyn=1,e}();var q=n(1550);function H(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var V,G=2e6,z=Math.min(G,65e3),$="metadata",W="f",K=/\./,Y=function(){function e(t,n,r,a){var s="data",l="baseData",p=!!a,d=n,f={};(0,i.Z)(e,this,(function(e){function n(e,t,i,o,a,s,l){(0,u.rW)(e,(function(e,h){var m=null;if(h||(0,c.Sn)(h)){var v=i,g=e,y=a,b=t;if(p&&!o&&K.test(e)){var _=e.split("."),E=_.length;if(E>1){y&&(y=y.slice());for(var x=0;x=7&&(n=(0,u.xe)(e,"ext.metadata")||(0,u.xe)(e,"ext.web")),f[e]=n),n}(v);if(m=!w&&d&&d.handleField(v,g)?d.value(v,g,h,r):(0,c.yj)(g,h,r)){var T=m.value;if(b[g]=T,s&&s(y,g,m),l&&"object"==typeof T&&!(0,u.kJ)(T)){var C=y;C&&(C=C.slice()).push(g),n(h,T,v+"."+g,o,C,s,l)}}}}))}e.createPayload=function(e,t,n,r,i,o){return{apiKeys:[],payloadBlob:g,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r,sendType:o,sendReason:i}},e.appendPayload=function(n,r,i){var a=n&&r&&!n.overflow;return a&&(0,o.Lm)(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=r.events(),o=n.payloadBlob,a=n.numEvents,s=!1,c=[],l=[],p=n.isBeacon,d=p?65e3:3984588,f=p?z:G,h=0,m=0;h=i){n.overflow=r.split(h);break}var g=e.getEventBlob(v);if(g&&g.length<=f){var y=g.length;if(o.length+y>d){n.overflow=r.split(h);break}o&&(o+="\n"),o+=g,++m>20&&(o.substr(0,1),m=0),s=!0,a++}else g?c.push(v):l.push(v),t.splice(h,1),h--}h++}if(c&&c.length>0&&n.sizeExceed.push(F.create(r.iKey(),c)),l&&l.length>0&&n.failedEvts.push(F.create(r.iKey(),l)),s){n.batches.push(r),n.payloadBlob=o,n.numEvents=a;var b=r.iKey();-1===(0,u.UA)(n.apiKeys,b)&&n.apiKeys.push(b)}}),(function(){return{payload:n,theBatch:{iKey:r.iKey(),evts:r.events()},max:i}})),a},e.getEventBlob=function(e){try{return(0,o.Lm)(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+(0,c.jM)(e.iKey);var r={},i=e.ext;i&&(t.ext=r,(0,u.rW)(i,(function(e,t){n(t,r[e]={},"ext."+e,!0,null,null,!0)})));var o=t[s]={};o.baseType=e.baseType;var a=o[l]={};return n(e.baseData,a,l,!1,[l],(function(e,t,n){X(r,e,t,n)}),!0),n(e.data,o,s,!1,[],(function(e,t,n){X(r,e,t,n)}),!0),JSON.stringify(t)}),(function(){return{item:e}}))}catch(e){return null}}}))}return e.__ieDyn=1,e}();function X(e,t,n,r){if(r&&e){var i=(0,c.Vv)(r.value,r.kind,r.propertyType);if(i>-1){var o=e[$];o||(o=e[$]={f:{}});var a=o[W];if(a||(a=o[W]={}),t)for(var s=0;s0)for(var i=t.toLowerCase(),o=0;o0&&(r&&ee[t]?(e.hdrs[ee[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}function ae(e,t){return t&&((0,u.hj)(t)?e=[t].concat(e):(0,u.kJ)(t)&&(e=t.concat(e))),e}ne(R,R,!1),ne(C,C),ne(A,"Client-Id"),ne(P,P),ne(I,I),ne(O,O),ne(k,k);var se=function(){function e(t,n,r,a,s){this._responseHandlers=[];var p,f,h,m,v,_,R,k,D,L,M="?cors=true&"+S.toLowerCase()+"="+E,j=new B,F=!1,V=new U,G=!1,z=0,$=!0,W=[],K={},X=[],ee=null,ne=!1,se=!1,ce=!1;(0,i.Z)(e,this,(function(e){var i=!0;function U(e,t){for(var n=0,r=null,i=0;null==r&&i0&&(l.headers=e.headers),fetch(o,l).then((function(e){var n={},r=g,i=e.headers;i&&i.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),c||(c=!0,pe(t,e.status,n,r),Se(r))})).catch((function(e){c||(c=!0,pe(t,0,{}))})),a&&!c&&(c=!0,pe(t,200,{})),!c&&e.timeout>0&&s.set((function(){c||(c=!0,pe(t,500,{}))}),e.timeout)}function le(e,t,n){var r=e.urlString;function o(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=(0,u.nd)(r))}return e}function a(e,n){pe(t,e.status,function(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if((0,u.HD)(e)){var n=(0,u.nd)(e).split(/[\r\n]+/);(0,u.tO)(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=(0,u.nd)(e.substring(0,n)).toLowerCase(),i=(0,u.nd)(e.substring(n+1));t[r]=i}else t[(0,u.nd)(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=o(t,e,T),t=o(t,e,w),t=o(t,e,"kill-duration-seconds")),t}(e),n)}n&&e.disableXhrSync&&(n=!1);var s=(0,c.ot)(y,r,i,!0,n,e.timeout);(0,u.rW)(e.headers,(function(e,t){s.setRequestHeader(e,t)})),s.onload=function(){var e=re(s);a(s,e),Se(e)},s.onerror=function(){a(s)},s.ontimeout=function(){a(s)},s.send(e.data)}function pe(e,t,n,r){try{e(t,n,r)}catch(e){(0,d.kP)(f,2,518,(0,l.eU)(e))}}function de(e,t,n){var r=200,i=e._thePayload,o=e.urlString+(L?Q:g);try{var a=(0,l.jW)();if(!a.sendBeacon(o,e.data))if(i){var s=[];(0,u.tO)(i.batches,(function(e){if(s&&e&&e.count()>0){for(var t=e.events(),n=0;n0&&!F&&h[t]&&ee&&(r=0!==t||me()&&(n>0||V.allowRequestSending())),r}function ye(e){var t={};return e&&(0,u.tO)(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function be(e,n,r,i,a){if(e&&0!==e.length)if(F)we(e,1,i);else{i=he(i);try{var s=e,u=0!==i;(0,o.Lm)(m,(function(){return"HttpManager:_sendBatches"}),(function(o){o&&(e=e.slice(0));for(var s=[],l=null,p=(0,c.hK)(),d=h[i]||(u?h[1]:h[0]),f=d&&d._transport,m=D&&(se||fe(i)||3===f||d._isSync&&2===f);ge(e,i,n);){var v=e.shift();v&&v.count()>0&&(j.isTenantKilled(v.iKey())?s.push(v):(l=l||ee.createPayload(n,r,u,m,a,i),ee.appendPayload(l,v,t)?null!==l.overflow&&(e=[l.overflow].concat(e),l.overflow=null,Ee(l,p,(0,c.hK)(),a),p=(0,c.hK)(),l=null):(Ee(l,p,(0,c.hK)(),a),p=(0,c.hK)(),e=[v].concat(e),l=null)))}l&&Ee(l,p,(0,c.hK)(),a),e.length>0&&(X=e.concat(X)),we(s,8004,i)}),(function(){return{batches:ye(s),retryCount:n,isTeardown:r,isSynchronous:u,sendReason:a,useSendBeacon:fe(i),sendType:i}}),!u)}catch(e){(0,d.kP)(f,2,48,"Unexpected Exception sending batch: "+(0,l.eU)(e))}}}function _e(e,t,n){e[t]=e[t]||{},e[t][p.identifier]=n}function Ee(t,n,i,a){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var s=!!e.sendHook,v=h[t.sendType];!fe(t.sendType)&&t.isBeacon&&2===t.sendReason&&(v=h[2]||h[3]||v);var y=ce;(t.isBeacon||3===v._transport)&&(y=!1);var b=function(e,t){var n={url:M,hdrs:{},useHdrs:!1};t?(n.hdrs=(0,c.l7)(n.hdrs,K),n.useHdrs=(0,u.FY)(n.hdrs).length>0):(0,u.rW)(K,(function(e,t){te[e]?oe(n,te[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),oe(n,A,"NO_AUTH",t),oe(n,C,c.vs,t);var r=g;(0,u.tO)(e.apiKeys,(function(e){r.length>0&&(r+=","),r+=e})),oe(n,P,r,t),oe(n,O,(0,u.m6)().toString(),t);var i=function(e){for(var t=0;t=0&&(n.url+="&w="+o)}for(var a=0;a0?A[J]++:A[J]=1}we(t.batches,1e3+(a||0),t.sendType,!0);var O={data:t.payloadBlob,urlString:b.url,headers:b.hdrs,_thePayload:t,_sendReason:a,timeout:_,disableXhrSync:R,disableFetchKeepAlive:k};y&&(ie(O.headers,x)||(O.headers[x]="no-cache, no-store"),ie(O.headers,S)||(O.headers[S]=E));var P=null;v&&(P=function(n){V.firstRequestSent();var i=function(n,i){!function(t,n,i,o){var a,s=9e3,l=null,d=!1,f=!1;try{var h=!0;if(typeof t!==q.jA){if(n){V.setClockSkew(n[T]);var m=n[w]||n["kill-duration-seconds"];(0,u.tO)(j.setKillSwitchTenants(n["kill-tokens"],m),(function(e){(0,u.tO)(i.batches,(function(t){if(t.iKey()===e){l=l||[];var n=t.split(0);i.numEvents-=n.count(),l.push(n)}}))}))}if(200==t||204==t)return void(s=200);((a=t)>=300&&a<500&&408!=a&&429!=a||501==a||505==a||i.numEvents<=0)&&(h=!1),s=9e3+t%1e3}if(h){s=100;var v=i.retryCnt;0===i.sendType&&(v0&&function(e,t){ne&&(0,u.tO)(e,(function(e){_e(e.timings=e.timings||{},"sendEventCompleted",t)}))}(e.events(),t)}))}}(t.batches)),we(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(z--,5!==r&&e.sendQueuedRequests(t.sendType,r))}}(i,s,o,f)),we(l,8004,i.sendType)}}(n,i,t,a)},o=t.isTeardown||t.isSync;try{v.sendPOST(n,i,o),e.sendListener&&e.sendListener(O,n,o,t.isBeacon)}catch(e){(0,d.jV)(f,"Unexpected exception sending payload. Ex:"+(0,l.eU)(e)),pe(i,0,{})}}),(0,o.Lm)(m,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(P)if(0===t.sendType&&z++,s&&!t.isBeacon&&3!==v._transport){var n={data:O.data,urlString:O.urlString,headers:(0,c.l7)({},O.headers),timeout:O.timeout,disableXhrSync:O.disableXhrSync,disableFetchKeepAlive:O.disableFetchKeepAlive},r=!1;(0,o.Lm)(m,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){r=!0,$||e._thePayload||(e._thePayload=e._thePayload||O._thePayload,e._sendReason=e._sendReason||O._sendReason),P(e)}),t.isSync||t.isTeardown)}catch(e){r||P(O)}}))}else P(O)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:i,sendReason:a}}),t.isSync)}t.sizeExceed&&t.sizeExceed.length>0&&we(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&we(t.failedEvts,8002,t.sendType)}function xe(e,t,n){t?e():s.set(e,n)}function Se(t){var n=e._responseHandlers;try{for(var r=0;r0&&a){var i=a[(u=t,l=Z[u],(0,c.Sn)(l)||(l="oth",u>=9e3&&u<=9999?l="rspFail":u>=8e3&&u<=8999?l=b:u>=1e3&&u<=1999&&(l="send")),l)];if(i){var s=0!==n;(0,o.Lm)(m,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){xe((function(){try{i.call(a,e,t,s,n)}catch(e){(0,d.kP)(f,1,74,"send request notification failed: "+e)}}),r||s,0)}),(function(){return{batches:ye(e),reason:t,isSync:s,sendSync:r,sendType:n}}),!s)}}var u,l}e.initialize=function(e,t,n,r,o){var a;o||(o={}),M=e+M,ce=!!(0,u.o8)(o.avoidOptions)||!o.avoidOptions,m=t,v=t.getCookieMgr(),ne=!m.config.disableEventTimings;var s=!!m.config.enableCompoundKey;f=(p=n).diagLog();var c=o.valueSanitizer,g=o.stringifyObjects;(0,u.o8)(o.enableCompoundKey)||(s=!!o.enableCompoundKey),_=o.xhrTimeout,R=!!o.disableXhrSync,k=!!o.disableFetchKeepAlive,L=!1!==o.addNoResponse,G=!(0,l.b$)(),ee=new Y(m,c,g,s),(0,u.le)(o.useSendBeacon)||(G=!!o.useSendBeacon);var y=r,b=o.alwaysUseXhrOverride?r:null,E=o.alwaysUseXhrOverride?r:null,x=[3,2];if(!r){$=!1;var S=(0,l.k$)();S&&S.protocol&&"file:"===S.protocol.toLowerCase()&&(i=!1);var w=[];(0,l.b$)()?(w=[2,1],x=[2,1,3]):w=[1,2,3],(r=U(w=ae(w,o.transports),!1))||(0,d.jV)(f,"No available transport to send events"),y=U(w,!0)}b||(b=U(x=ae(x,o.unloadTransports),!0)),D=!$&&(G&&(0,l.MF)()||!k&&(0,l.JO)(!0)),(a={})[0]=r,a[1]=y||U([1,2,3],!0),a[2]=b||y||U([1],!0),a[3]=E||U([2,3],!0)||y||U([1],!0),h=a},e._getDbgPlgTargets=function(){return[h[0],j,ee,h]},e.addQueryStringParameter=function(e,t){for(var n=0;n0){if(j.isTenantKilled(e.iKey()))return!1;X.push(e)}return!0},e.teardown=function(){X.length>0&&be(ve(),0,!0,2,2)},e.pause=function(){F=!0},e.resume=function(){F=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&((0,u.le)(t)&&(t=1),se&&(t=he(t),n=2),be([e],0,!1,t,n||0))}}))}return e.__ieDyn=1,e}();function ce(e,t){for(var n=[],r=2;r0){var o=i.split(0,r),a=o.count();if(a>0)return 4===n?A-=a:O-=a,be(pe,[o],p.h.QueueFull),!0}n++}return oe(),!1}(e.iKey,e.latency,a,s)&&(o=!ie(e,t))}o&&ye(pe,[e],p.h.QueueFull)}function Y(e,t,n){var r=ae(e,t,n);return g.sendQueuedRequests(t,n),r}function X(){return O>0}function J(){if(V>=0&&ae(V,0,_)&&g.sendQueuedRequests(0,_),A>0&&!j&&!C){var e=k[N][2];e>=0&&(j=Z((function(){j=null,Y(4,0,1),J()}),e))}var t=k[N][1];!M&&!T&&t>=0&&!C&&(X()?M=Z((function(){M=null,Y(0===B?3:1,0,1),B++,B%=2,J()}),t):B=0)}function Q(){n=null,S=!1,w=[],T=null,C=!1,A=0,I=500,O=0,P=1e4,k={},N=h,M=null,j=null,U=0,B=0,f=null,q={},y=void 0,b=0,V=-1,_=null,G=!0,z=!1,$=6,W=2,E=null,x=le(),g=new se(500,2,1,{requeue:ve,send:_e,sent:Ee,drop:xe,rspFail:Se,oth:we},x),me(),q[4]={batches:[],iKeyMap:{}},q[3]={batches:[],iKeyMap:{}},q[2]={batches:[],iKeyMap:{}},q[1]={batches:[],iKeyMap:{}},Te()}function Z(e,t){0===t&&U&&(t=1);var n=1e3;return U&&(n=H(U-1)),x.set(e,t*n)}function ee(){return null!==M&&(x.clear(M),M=null,B=0,!0)}function te(e,t){ee(),T&&(x.clear(T),T=null),C||Y(1,e,t)}function ne(e,t,n){var r=q[t];r||(r=q[t=1]);var i=r.iKeyMap[e];return!i&&n&&(i=F.create(e),r.batches.push(i),r.iKeyMap[e]=i),i}function re(t,n){g.canSendRequest()&&!U&&(y>0&&O>y&&(n=!0),n&&null==T&&e.flush(t,null,20))}function ie(e,t){G&&(e=(0,u.Ax)(e));var n=e.latency,r=ne(e.iKey,n,!0);return!!r.addEvent(e)&&(4!==n?(O++,t&&0===e.sendAttempt&&re(!e.sync,b>0&&r.count()>=b)):A++,!0)}function oe(){for(var e=0,t=0,n=function(n){var r=q[n];r&&r.batches&&(0,u.tO)(r.batches,(function(r){4===n?e+=r.count():t+=r.count()}))},r=1;r<=4;r++)n(r);O=t,A=e}function ae(t,n,r){var i=!1,a=0===n;return!a||g.canSendRequest()?(0,o.Lm)(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var r=q[n];r&&r.batches&&r.batches.length>0&&((0,u.tO)(r.batches,(function(t){g.addBatch(t)?i=i||t&&t.count()>0:e=e.concat(t.events()),4===n?A-=t.count():O-=t.count()})),r.batches=[],r.iKeyMap={}),n--}e.length>0&&ye(pe,e,p.h.KillSwitch),i&&V>=t&&(V=-1,_=0)}),(function(){return{latency:t,sendType:n,sendReason:r}}),!a):(V=V>=0?Math.min(V,t):t,_=Math.max(_,r)),i}function ce(e,t){Y(1,0,t),oe(),ue((function(){e&&e(),w.length>0?T=Z((function(){T=null,ce(w.shift(),t)}),0):(T=null,J())}))}function ue(e){g.isCompletelyIdle()?e():T=Z((function(){T=null,ue(e)}),.25)}function me(){(k={})[h]=[2,1,0],k[m]=[6,3,0],k[v]=[18,9,0]}function ve(t,n){var r=[],i=$;z&&(i=W),(0,u.tO)(t,(function(t){t&&t.count()>0&&(0,u.tO)(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt0&&ye(pe,r,p.h.NonRetryableStatus),z&&te(2,2)}function ge(t,n){var r=e._notificationManager||{},i=r[t];if(i)try{i.apply(r,n)}catch(n){(0,d.kP)(e.diagLog(),1,74,t+" notification failed: "+n)}}function ye(e,t){for(var n=[],r=2;r0&&ge(e,[t].concat(n))}function be(e,t){for(var n=[],r=2;r0&&(0,u.tO)(t,(function(t){t&&t.count()>0&&ge(e,[t.events()].concat(n))}))}function _e(e,t,n){e&&e.length>0&&ge("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function Ee(e,t){be("eventsSent",e,t),J()}function xe(e,t){be(pe,e,t>=8e3&&t<=8999?t-8e3:p.h.Unknown)}function Se(e){be(pe,e,p.h.NonRetryableStatus),J()}function we(e,t){be(pe,e,p.h.Unknown),J()}function Te(){b=n&&n.disableAutoBatchFlushLimit?0:Math.max(1500,P/6)}Q(),e._getDbgPlgTargets=function(){return[g]},e.initialize=function(l,p,d){(0,o.Lm)(p,(function(){return"PostChannel:initialize"}),(function(){var o=p;t.initialize(l,p,d);try{p.addUnloadCb,E=(0,a.jU)((0,s.J)(e.identifier),p.evtNamespace&&p.evtNamespace());var h=e._getTelCtx();l.extensionConfig[e.identifier]=l.extensionConfig[e.identifier]||{},n=h.getExtCfg(e.identifier),x=le(n.setTimeoutOverride,n.clearTimeoutOverride),G=!n.disableOptimizeObj&&(0,c.mJ)(),function(e){var t=e.getWParam;e.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}(o),n.eventsLimitInMem>0&&(P=n.eventsLimitInMem),n.immediateEventLimit>0&&(I=n.immediateEventLimit),n.autoFlushEventsLimit>0&&(y=n.autoFlushEventsLimit),(0,u.hj)(n[fe])&&($=n[fe]),(0,u.hj)(n[he])&&(W=n[he]),Te(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(f=n.httpXHROverride),(0,c.Sn)(l.anonCookieName)&&g.addQueryStringParameter("anoncknm",l.anonCookieName),g.sendHook=n.payloadPreprocessor,g.sendListener=n.payloadListener;var m=n.overrideEndpointUrl?n.overrideEndpointUrl:l.endpointUrl;e._notificationManager=p.getNotifyMgr(),g.initialize(m,e.core,e,f,n);var v=l.disablePageUnloadEvents||[];(0,a.c9)(r,v,E),(0,a.TJ)(r,v,E),(0,a.nD)(i,l.disablePageShowEvents,E)}catch(t){throw e.setInitialized(!1),t}}),(function(){return{coreConfig:l,core:p,extensions:d}}))},e.processTelemetry=function(t,r){(0,c.if)(t,e.identifier);var i=(r=e._getTelCtx(r)).getExtCfg(e.identifier),o=!!n.disableTelemetry;i&&(o=o||!!i.disableTelemetry);var a=t;o||S||(n[de]&&(a.iKey=n[de]),i&&i[de]&&(a.iKey=i[de]),K(a,!0),z?te(2,2):J()),e.processNext(a,r)},e._doTeardown=function(e,t){te(2,2),S=!0,g.teardown(),(0,a.JA)(null,E),(0,a.C9)(null,E),(0,a.Yl)(null,E),Q()},e.setEventQueueLimits=function(e,t){P=e>0?e:1e4,y=t>0?t:0,Te();var n=O>e;if(!n&&b>0)for(var r=1;!n&&r<=3;r++){var i=q[r];i&&i.batches&&(0,u.tO)(i.batches,(function(e){e&&e.count()>=b&&(n=!0)}))}re(!0,n)},e.pause=function(){ee(),C=!0,g.pause()},e.resume=function(){C=!1,g.resume(),J()},e.addResponseHandler=function(e){g._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){ee(),me(),N=h,J(),(0,u.rW)(e,(function(e,t){var n=t.length;if(n>=2){var r=n>2?t[2]:0;if(t.splice(0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var i=t[0]/t[1];t[0]=Math.ceil(i)*t[1]}r>=0&&t[1]>=0&&r>t[1]&&(r=t[1]),t.push(r),k[e]=t}}))},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!C)if(n=n||1,e)null==T?(ee(),ae(1,0,n),T=Z((function(){T=null,ce(t,n)}),0)):w.push(t);else{var r=ee();Y(1,1,n),null!=t&&t(),r&&J()}},e.setMsaAuthTicket=function(e){g.addHeader(R,e)},e.hasEvents=X,e._setTransmitProfile=function(e){N!==e&&void 0!==k[e]&&(ee(),N=e,J())},e._backOffTransmission=function(){U<4&&(U++,ee(),J())},e._clearBackOff=function(){U&&(U=0,ee(),J())},(0,u.l_)(e,"_setTimeoutOverride",(function(){return x.set}),(function(e){x=le(e,x.clear)})),(0,u.l_)(e,"_clearTimeoutOverride",(function(){return x.clear}),(function(e){x=le(x.set,e)}))})),r}return(0,r.ne)(t,e),t.__ieDyn=1,t}(f.i)},951:(e,t,n)=>{"use strict";n.d(t,{By:()=>i});var r=n(4869);function i(e){var t={};return(0,r.rW)(e,(function(e,n){t[e]=n,t[n]=e})),(0,r._A)(t)}},8452:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var r=(0,n(951).By)({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5})},7951:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r=n(9141),i=n(8145),o=n(4869),a=n(6335),s=n(1030),c=n(8593),u="getPlugin",l=function(){function e(){var t,n,l,p,d,f=this;function h(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||(0,s.CD)(null,{},f[a.oV]);t=l&&l[u]?r[i.zV](null,l[u]):r[i.zV](null,l)}return t}function m(e,t,r){e&&(0,o.sO)(e,a.Zh,[],null,o.le),!r&&t&&(r=t[i.SD]()[i.W2]());var c=l;l&&l[u]&&(c=l[u]()),f[a.oV]=t,n=(0,s.CD)(r,e,t,c)}function v(){t=!1,f[a.oV]=null,n=null,l=null,d=[],p=(0,c.Y)()}v(),(0,r.Z)(e,f,(function(e){e[i.VL]=function(e,n,r,i){m(e,n,i),t=!0},e[i.fi]=function(t,n){var r,c=e[a.oV];if(c&&(!t||c===t[a.oV]())){var f,h=!1,m=t||(0,s.Bt)(null,c,l&&l[u]?l[u]():l),g=n||((r={reason:0})[i.d]=!1,r);return e[i.F3]&&!0===e[i.F3](m,g,y)?f=!0:y(),f}function y(){if(!h){h=!0,p.run(m,n);var e=d;d=[],(0,o.tO)(e,(function(e){e.rm()})),!0===f&&m[i.uL](g),v()}}},e[i.Tu]=function(t,n){var r=e[a.oV];if(r&&(!t||r===t[a.oV]())){var o,c=!1,p=t||(0,s.xy)(null,r,l&&l[u]?l[u]():l),d=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(p,d,f)?o=!0:f(),o}function f(){c||(c=!0,m(p.getCfg(),p.core(),p[i.W2]()))}},e._addHook=function(e){e&&((0,o.kJ)(e)?d=d.concat(e):d[i.MW](e))},(0,o.Oi)(e,"_addUnloadCb",(function(){return p}),"add")})),f[i.mc]=function(e){return h(e)[i.mc]()},f[i.yl]=function(){return t},f.setInitialized=function(e){t=e},f[i.Jd]=function(e){l=e},f[i.uL]=function(e,t){t?t[i.uL](e):l&&(0,o.mf)(l[a.hL])&&l[a.hL](e,null)},f._getTelCtx=h}return e.__ieDyn=1,e}()},8140:(e,t,n)=>{"use strict";n.d(t,{JP:()=>T,Nz:()=>C,UY:()=>N,kj:()=>x,p7:()=>A});var r=n(8145),i=n(9339),o=n(9251),a=n(4869),s=n(6335),c="toGMTString",u="toUTCString",l="cookie",p="expires",d="enabled",f="isCookieUseDisabled",h="disableCookiesUsage",m="_ckMgr",v=null,g=null,y=null,b=(0,o.Me)(),_={},E={};function x(e,t){var n=C[m]||E[m];return n||(n=C[m]=C(e,t),E[m]=n),n}function S(e){return!e||e.isEnabled()}function w(e,t){return!!(t&&e&&(0,a.kJ)(e.ignoreCookies))&&-1!==e.ignoreCookies[r.ou](t)}function T(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var i=t[r.Lk];n=i[m]?i[m]:C(t)}return n||(n=x(t,(e||{})[r.eZ])),n}function C(e,t){var n,i=function(e){var t=e[r.Lk]=e[r.Lk]||{};if((0,a.sO)(t,"domain",e.cookieDomain,a.BX,a.le),(0,a.sO)(t,"path",e.cookiePath||"/",null,a.le),(0,a.le)(t[d])){var n=void 0;(0,a.o8)(e[f])||(n=!e[f]),(0,a.o8)(e[h])||(n=!e[h]),t[d]=n}return t}(e||E),l=i.path||"/",v=i.domain,y=!1!==i[d],b=((n={isEnabled:function(){var e=y&&A(t),n=E[m];return e&&n&&b!==n&&(e=S(n)),e}})[r.$h]=function(e){y=!1!==e},n.set=function(e,t,n,d,f){var h=!1;if(S(b)&&!function(e,t){return!!(t&&e&&(0,a.kJ)(e.blockedCookies)&&-1!==e.blockedCookies[r.ou](t))||w(e,t)}(i,e)){var m={},y=(0,a.nd)(t||s.qS),_=y[r.ou](";");if(-1!==_&&(y=(0,a.nd)(t[r.zc](0,_)),m=I(t[r.zc](_+1))),(0,a.sO)(m,"domain",d||v,a.fQ,a.o8),!(0,a.le)(n)){var E=(0,o.w1)();if((0,a.o8)(m[p])){var x=(0,a.m6)()+1e3*n;if(x>0){var T=new Date;T.setTime(x),(0,a.sO)(m,p,O(T,E?c:u)||O(T,E?c:u)||s.qS,a.fQ)}}E||(0,a.sO)(m,"max-age",s.qS+n,null,a.o8)}var C=(0,o.k$)();C&&"https:"===C.protocol&&((0,a.sO)(m,"secure",null,null,a.o8),null===g&&(g=!N(((0,o.jW)()||{})[r.qV])),g&&(0,a.sO)(m,"SameSite","None",null,a.o8)),(0,a.sO)(m,"path",f||l,null,a.o8),(i.setCookie||k)(e,P(y,m)),h=!0}return h},n.get=function(e){var t=s.qS;return S(b)&&!w(i,e)&&(t=(i.getCookie||R)(e)),t},n.del=function(e,t){var n=!1;return S(b)&&(n=b.purge(e,t)),n},n.purge=function(e,n){var r,a=!1;if(A(t)){var c=((r={}).path=n||"/",r[p]="Thu, 01 Jan 1970 00:00:01 GMT",r);(0,o.w1)()||(c["max-age"]="0"),(i.delCookie||k)(e,P(s.qS,c)),a=!0}return a},n);return b[m]=b,b}function A(e){if(null===v){v=!1;try{v=void 0!==(b||{})[l]}catch(t){(0,i.kP)(e,2,68,"Cannot access document.cookie - "+(0,a.jj)(t),{exception:(0,o.eU)(t)})}}return v}function I(e){var t={};if(e&&e[r.R5]){var n=(0,a.nd)(e)[r.w6](";");(0,a.tO)(n,(function(e){if(e=(0,a.nd)(e||s.qS)){var n=e[r.ou]("=");-1===n?t[e]=null:t[(0,a.nd)(e[r.zc](0,n))]=(0,a.nd)(e[r.zc](n+1))}}))}return t}function O(e,t){return(0,a.mf)(e[t])?e[t]():null}function P(e,t){var n=e||s.qS;return(0,a.rW)(t,(function(e,t){n+="; "+e+((0,a.le)(t)?s.qS:"="+t)})),n}function R(e){var t=s.qS;if(b){var n=b[l]||s.qS;y!==n&&(_=I(n),y=n),t=(0,a.nd)(_[e]||s.qS)}return t}function k(e,t){b&&(b[l]=e+"="+t)}function N(e){return!(!(0,a.HD)(e)||!(0,a._Q)(e,"CPU iPhone OS 12")&&!(0,a._Q)(e,"iPad; CPU OS 12")&&!((0,a._Q)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,a._Q)(e,"Version/")&&(0,a._Q)(e,"Safari"))&&(!(0,a._Q)(e,"Macintosh; Intel Mac OS X 10_14")||!(0,a.Id)(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!(0,a._Q)(e,"Chrome/5")&&!(0,a._Q)(e,"Chrome/6")&&(!(0,a._Q)(e,"UnrealEngine")||(0,a._Q)(e,"Chrome"))&&!(0,a._Q)(e,"UCBrowser/12")&&!(0,a._Q)(e,"UCBrowser/11"))}},8956:(e,t,n)=>{"use strict";n.d(t,{DO:()=>m,GW:()=>f,Jj:()=>h,zB:()=>g});var r,i=n(175),o=n(8145),a=n(8140),s=n(9251),c=n(7954),u=n(4869),l=n(6335),p=n(9406),d=null;function f(){var e=m();return e[o.zc](0,8)+"-"+e[o.zc](8,12)+"-"+e[o.zc](12,16)+"-"+e[o.zc](16,20)+"-"+e[o.zc](20)}function h(){var e=(0,s.r)();return e&&e.now?e.now():(0,u.m6)()}function m(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=l.qS,r=0;r<4;r++)n+=t[15&(e=(0,p._l)())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&(0,p._l)())|0];return n[o.Jn](0,8)+n[o.Jn](9,4)+"4"+n[o.Jn](13,3)+i+n[o.Jn](16,3)+n[o.Jn](19,12)}var v={_canUseCookies:void 0,isTypeof:u.Ym,isUndefined:u.o8,isNullOrUndefined:u.le,hasOwnProperty:u.nr,isFunction:u.mf,isObject:u.Kn,isDate:u.J_,isArray:u.kJ,isError:u.VZ,isString:u.HD,isNumber:u.hj,isBoolean:u.jn,toISOString:u.Y6,arrForEach:u.tO,arrIndexOf:u.UA,arrMap:u.Mr,arrReduce:u.Xz,strTrim:u.nd,objCreate:i.pu,objKeys:u.FY,objDefineAccessors:u.l_,addEventHandler:c.Ib,dateNow:u.m6,isIE:s.w1,disableCookies:function(){var e,t,n,i;(n=(0,a.kj)(e,t),i=v._canUseCookies,null===d&&(d=[],r=i,(0,u.l_)(v,"_canUseCookies",(function(){return r}),(function(e){r=e,(0,u.tO)(d,(function(t){t[o.$h](e)}))}))),-1===(0,u.UA)(d,n)&&d[o.MW](n),(0,u.jn)(i)&&n[o.$h](i),(0,u.jn)(r)&&n[o.$h](r),n)[o.$h](!1)},newGuid:f,perfNow:h,newId:p.pZ,randomValue:p.az,random32:p._l,mwcRandomSeed:p.CN,mwcRandom32:p.F6,generateW3CId:m},g={Attach:c.pZ,AttachEvent:c.pZ,Detach:c.pD,DetachEvent:c.pD}},7624:(e,t,n)=>{"use strict";n.d(t,{J:()=>f,K:()=>h});var r=n(1550),i=n(8145),o=n(4869),a=n(6335),s=n(9406),c=r.RJ,u="2.8.16",l="."+(0,s.pZ)(6),p=0;function d(e){return 1===e[i.xv]||9===e[i.xv]||!+e[i.xv]}function f(e,t){return void 0===t&&(t=!1),(0,o.Gf)(e+p+++(t?"."+u:a.qS)+l)}function h(e){var t={id:f("_aiData-"+(e||a.qS)+"."+u),accept:function(e){return d(e)},get:function(e,n,r,i){var a=e[t.id];return a?a[(0,o.Gf)(n)]:(i&&((a=function(e,t){var n=t[e.id];if(!n){n={};try{d(t)&&(function(e,t,n){if(c)try{return c(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return!1}(t,e.id,n)||(t[e.id]=n))}catch(e){}}return n}(t,e))[(0,o.Gf)(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}},8341:(e,t,n)=>{"use strict";n.d(t,{j:()=>u,p:()=>l});var r,i=n(8145),o=n(9251),a=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],s=null;function c(e,t){return function(){var n=arguments,r=u(t);if(r){var o=r.listener;o&&o[e]&&o[e][i.ZV](o,n)}}}function u(e){var t,n=s;return n||!0===e.disableDbgExt||(n=s||((t=(0,o.a8)("Microsoft"))&&(s=t.ApplicationInsights),s)),n?n.ChromeDbgExt:null}function l(e){if(!r){r={};for(var t=0;t{"use strict";n.d(t,{AQ:()=>f,L4:()=>g,jV:()=>v,kP:()=>m,lQ:()=>p,vH:()=>d});var r=n(9141),i=n(8145),o=n(8341),a=n(9251),s=n(4869),c=n(6335);function u(e){return e?'"'+e[i.i7](/\"/g,c.qS)+'"':c.qS}function l(e,t){var n=(0,a.dr)();if(n){var r="log";n[e]&&(r=e),(0,s.mf)(n[r])&&n[r](t)}}var p=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o[i.Gc]=e,o[i.gU]=(n?"AI: ":"AI (Internal): ")+e;var s=c.qS;(0,a.nS)()&&(s=(0,a.xA)().stringify(r));var l=(t?" message:"+u(t):c.qS)+(r?" props:"+u(s):c.qS);o[i.gU]+=l}return e.dataType="MessageData",e}();function d(e,t){return(e||{})[i.eZ]||new f(t)}var f=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,u,d,f,h=0,m={};(0,r.Z)(e,this,(function(e){function r(t,n){if(!(h>=d)){var r=!0,o="AITR_"+n[i.Gc];if(m[o]?r=!1:m[o]=!0,r&&(t<=u&&(e.queue[i.MW](n),h++,v(1===t?"error":"warn",n)),h===d)){var a="Internal events throttle limit per PageView reached for this app.",s=new p(23,a,!1);e.queue[i.MW](s),1===t?e[c.ys](a):e[c.cL](a)}}}function v(e,n){var r=(0,o.j)(t||{});r&&r[i.mc]&&r[i.mc](e,n)}!function(e){n=(0,s.v4)(e.loggingLevelConsole,0),u=(0,s.v4)(e.loggingLevelTelemetry,1),d=(0,s.v4)(e.maxMessageLimit,25),f=(0,s.v4)(e.enableDebug,(0,s.v4)(e[i.Fr],!1))}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return u},e.maxInternalMessageLimit=function(){return d},e[i.Fr]=function(){return f},e.throwInternal=function(t,o,u,l,d){void 0===d&&(d=!1);var h=new p(o,u,d,l);if(f)throw(0,a.eU)(h);var g=1===t?c.ys:c.cL;if((0,s.o8)(h[i.gU]))v("throw"+(1===t?"Critical":"Warning"),h);else{if(d){var y=+h[i.Gc];!m[y]&&n>=t&&(e[g](h[i.gU]),m[y]=!0)}else n>=t&&e[g](h[i.gU]);r(t,h)}},e[c.cL]=function(e){l("warn",e),v("warning",e)},e[c.ys]=function(e){l("error",e),v("error",e)},e.resetInternalMessageCount=function(){h=0,m={}},e[i.jk]=r}))}return e.__ieDyn=1,e}();function h(e){return e||new f}function m(e,t,n,r,i,o){void 0===o&&(o=!1),h(e).throwInternal(t,n,r,i,o)}function v(e,t){h(e)[c.cL](t)}function g(e,t,n){h(e)[i.jk](t,n)}},9251:(e,t,n)=>{"use strict";n.d(t,{JO:()=>J,Jj:()=>k,MF:()=>X,MX:()=>G,Me:()=>D,Nv:()=>N,Ym:()=>R,Z3:()=>Z,a8:()=>P,b$:()=>$,cp:()=>Q,d6:()=>L,dI:()=>O,dr:()=>B,eU:()=>Y,ed:()=>te,fE:()=>j,gz:()=>z,jW:()=>M,k$:()=>U,nS:()=>H,pI:()=>ne,r:()=>q,s1:()=>F,sA:()=>K,w1:()=>W,xA:()=>V});var r=n(1550),i=n(175),o=n(8145),a=n(4869),s=n(6335),c="window",u="document",l="documentMode",p="navigator",d="history",f="location",h="console",m="performance",v="JSON",g="crypto",y="msCrypto",b="ReactNative",_="msie",E="trident/",x="XMLHttpRequest",S=null,w=null,T=!1,C=null,A=null;function I(e,t){var n=!1;if(e){try{if(!(n=t in e)){var i=e[r.hB];i&&(n=t in i)}}catch(e){}if(!n)try{var o=new e;n=!(0,a.o8)(o[t])}catch(e){}}return n}function O(e){T=e}function P(e){var t=(0,i.Rd)();return t&&t[e]?t[e]:e===c&&R()?window:null}function R(){return Boolean(typeof window===r.fK&&window)}function k(){return R()?window:P(c)}function N(){return Boolean(typeof document===r.fK&&document)}function D(){return N()?document:P(u)}function L(){return Boolean(typeof navigator===r.fK&&navigator)}function M(){return L()?navigator:P(p)}function j(){return Boolean(typeof history===r.fK&&history)}function F(){return j()?history:P(d)}function U(e){if(e&&T){var t=P("__mockLocation");if(t)return t}return typeof location===r.fK&&location?location:P(f)}function B(){return typeof console!==r.jA?console:P(h)}function q(){return P(m)}function H(){return Boolean(typeof JSON===r.fK&&JSON||null!==P(v))}function V(){return H()?JSON||P(v):null}function G(){return P(g)}function z(){return P(y)}function $(){var e=M();return!(!e||!e.product)&&e.product===b}function W(){var e=M();if(e&&(e[o.qV]!==w||null===S)){var t=((w=e[o.qV])||s.qS)[o.T1]();S=(0,a._Q)(t,_)||(0,a._Q)(t,E)}return S}function K(e){if(void 0===e&&(e=null),!e){var t=M()||{};e=t?(t[o.qV]||s.qS)[o.T1]():s.qS}var n=(e||s.qS)[o.T1]();if((0,a._Q)(n,_)){var r=D()||{};return Math.max(parseInt(n[o.w6](_)[1]),r[l]||0)}if((0,a._Q)(n,E)){var i=parseInt(n[o.w6](E)[1]);if(i)return i+4}return null}function Y(e){var t=Object[r.hB].toString[o._S](e),n=s.qS;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[o.I]+"'":H()&&(n=V().stringify(e)),t+n}function X(){return null===A&&(A=L()&&Boolean(M().sendBeacon)),A}function J(e){var t=!1;try{t=!!P("fetch");var n=P("Request");t&&e&&n&&(t=I(n,"keepalive"))}catch(e){}return t}function Q(){return null===C&&(C=typeof XDomainRequest!==r.jA)&&Z()&&(C=C&&!I(P(x),"withCredentials")),C}function Z(){var e=!1;try{e=!!P(x)}catch(e){}return e}function ee(e,t){if(e)for(var n=0;n0?r[0]:{}).serverTiming,e).description}return t}},7954:(e,t,n)=>{"use strict";n.d(t,{C1:()=>F,C9:()=>z,Ib:()=>j,JA:()=>V,QY:()=>D,TJ:()=>G,XO:()=>N,Yl:()=>W,c9:()=>H,jU:()=>k,nD:()=>$,nJ:()=>q,pD:()=>M,pZ:()=>L,um:()=>I,yw:()=>B});var r=n(8145),i=n(7624),o=n(9251),a=n(4869),s=n(6335),c="on",u="attachEvent",l="addEventListener",p="detachEvent",d="removeEventListener",f="events",h="visibilitychange",m="pagehide",v="pageshow",g="unload",y="beforeunload",b=(0,i.J)("aiEvtPageHide"),_=(0,i.J)("aiEvtPageShow"),E=/\.[\.]+/g,x=/[\.]+$/,S=1,w=(0,i.K)("events"),T=/^([^.]*)(?:\.(.+)|)/;function C(e){return e&&e[r.i7]?e[r.i7](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,s.qS):e}function A(e,t){var n;if(t){var i=s.qS;(0,a.kJ)(t)?(i=s.qS,(0,a.tO)(t,(function(e){(e=C(e))&&("."!==e[0]&&(e="."+e),i+=e)}))):i=C(t),i&&("."!==i[0]&&(i="."+i),e=(e||s.qS)+i)}var o=T.exec(e||s.qS)||[];return(n={})[r.P6]=o[1],n.ns=(o[2]||s.qS).replace(E,".").replace(x,s.qS)[r.w6](".").sort().join("."),n}function I(e,t,n){var i=[],o=w.get(e,f,{},!1),c=A(t,n);return(0,a.rW)(o,(function(e,t){(0,a.tO)(t,(function(e){var t;c[r.P6]&&c[r.P6]!==e.evtName[r.P6]||c.ns&&c.ns!=c.ns||i[r.MW](((t={})[r.I]=e.evtName[r.P6]+(e.evtName.ns?"."+e.evtName.ns:s.qS),t.handler=e[r.Kn],t))}))})),i}function O(e,t,n){void 0===n&&(n=!0);var r=w.get(e,f,{},n),i=r[t];return i||(i=r[t]=[]),i}function P(e,t,n,i){e&&t&&t[r.P6]&&(e[d]?e[d](t[r.P6],n,i):e[p]&&e[p](c+t[r.P6],n))}function R(e,t,n,i){for(var o=t[r.R5];o--;){var a=t[o];a&&(n.ns&&n.ns!==a.evtName.ns||i&&!i(a)||(P(e,a.evtName,a[r.Kn],a.capture),t[r.cb](o,1)))}}function k(e,t){return t?A("xx",(0,a.kJ)(t)?[e].concat(t):[e,t]).ns[r.w6]("."):e}function N(e,t,n,i,o){var a;void 0===o&&(o=!1);var s=!1;if(e)try{var p=A(t,i);if(s=function(e,t,n,i){var o=!1;return e&&t&&t[r.P6]&&n&&(e[l]?(e[l](t[r.P6],n,i),o=!0):e[u]&&(e[u](c+t[r.P6],n),o=!0)),o}(e,p,n,o),s&&w.accept(e)){var d=((a={guid:S++,evtName:p})[r.Kn]=n,a.capture=o,a);O(e,p.type)[r.MW](d)}}catch(e){}return s}function D(e,t,n,i,o){if(void 0===o&&(o=!1),e)try{var s=A(t,i),c=!1;!function(e,t,n){if(t[r.P6])R(e,O(e,t[r.P6]),t,n);else{var i=w.get(e,f,{});(0,a.rW)(i,(function(r,i){R(e,i,t,n)})),0===(0,a.FY)(i)[r.R5]&&w.kill(e,f)}}(e,s,(function(e){return!((!s.ns||n)&&e[r.Kn]!==n||(c=!0,0))})),c||P(e,s,n,o)}catch(e){}}function L(e,t,n,r){return void 0===r&&(r=!1),N(e,t,n,null,r)}function M(e,t,n,r){void 0===r&&(r=!1),D(e,t,n,null,r)}function j(e,t,n){var r=!1,i=(0,o.Jj)();i&&(r=N(i,e,t,n),r=N(i.body,e,t,n)||r);var a=(0,o.Me)();return a&&(r=N(a,e,t,n)||r),r}function F(e,t,n){var r=(0,o.Jj)();r&&(D(r,e,t,n),D(r.body,e,t,n));var i=(0,o.Me)();i&&D(i,e,t,n)}function U(e,t,n,i){var o=!1;return t&&e&&e[r.R5]>0&&(0,a.tO)(e,(function(e){e&&(n&&-1!==(0,a.UA)(n,e)||(o=j(e,t,i)||o))})),o}function B(e,t,n,i){var o=!1;return t&&e&&(0,a.kJ)(e)&&!(o=U(e,t,n,i))&&n&&n[r.R5]>0&&(o=U(e,t,null,i)),o}function q(e,t,n){e&&(0,a.kJ)(e)&&(0,a.tO)(e,(function(e){e&&F(e,t,n)}))}function H(e,t,n){return B([y,g,m],e,t,n)}function V(e,t){q([y,g,m],e,t)}function G(e,t,n){var r=k(b,n),i=U([m],e,t,r);return t&&-1!==(0,a.UA)(t,h)||(i=U([h],(function(t){var n=(0,o.Me)();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||i),!i&&t&&(i=G(e,null,n)),i}function z(e,t){var n=k(b,t);q([m],e,n),q([h],null,n)}function $(e,t,n){var r=k(_,n),i=U([v],e,t,r);return!(i=U([h],(function(t){var n=(0,o.Me)();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||i)&&t&&(i=$(e,null,n)),i}function W(e,t){var n=k(_,t);q([v],e,n),q([h],null,n)}},4869:(e,t,n)=>{"use strict";n.d(t,{Ax:()=>Te,BX:()=>j,F:()=>ye,FL:()=>pe,FY:()=>se,Gf:()=>q,HD:()=>Y,Id:()=>V,J_:()=>$,Kn:()=>U,Mr:()=>ne,Oi:()=>Se,UA:()=>te,VZ:()=>K,Vb:()=>we,Xi:()=>de,Xz:()=>re,Y6:()=>Z,Ym:()=>D,_A:()=>le,_Q:()=>z,_y:()=>_e,cf:()=>xe,fQ:()=>be,hj:()=>X,jj:()=>he,jn:()=>J,kJ:()=>W,l_:()=>ce,le:()=>M,m6:()=>fe,mf:()=>B,mm:()=>Ce,nd:()=>ie,nr:()=>F,o8:()=>L,qK:()=>ve,rW:()=>H,sO:()=>me,tO:()=>ee,v4:()=>ge,xe:()=>G});var r=n(1550),i=n(175),o=n(8145),a=n(6335),s="toISOString",c="endsWith",u="startsWith",l="indexOf",p="map",d="reduce",f="trim",h="toString",m="__proto__",v="constructor",g=r.RJ,y=r.Pw.freeze,b=r.Pw.seal,_=r.Pw.keys,E=String[r.hB],x=E[f],S=E[c],w=E[u],T=Date[r.hB][s],C=Array.isArray,A=r.V4[h],I=r.CY[h],O=I[o._S](r.Pw),P=/-([a-z])/g,R=/([^\w\d_$])/g,k=/^(\d+[\w\d_$])/,N=Object.getPrototypeOf;function D(e,t){return typeof e===t}function L(e){return void 0===e||typeof e===r.jA}function M(e){return null===e||L(e)}function j(e){return!M(e)}function F(e,t){return!(!e||!r.CY[o._S](e,t))}function U(e){return!(!e||typeof e!==r.fK)}function B(e){return!(!e||typeof e!==r.cb)}function q(e){var t=e;return t&&Y(t)&&(t=(t=(t=t[o.i7](P,(function(e,t){return t.toUpperCase()})))[o.i7](R,"_"))[o.i7](k,(function(e,t){return"_"+t}))),t}function H(e,t){if(e)for(var n in e)r.CY[o._S](e,n)&&t[o._S](e,n,e[n])}function V(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=S?e[c](t):function(e,t){var n=!1,r=t?t[o.R5]:0,i=e?e[o.R5]:0;if(r&&i&&i>=r&&!(n=e===t)){for(var a=i-1,s=r-1;s>=0;s--){if(e[a]!=t[s])return!1;a--}n=!0}return n}(e,t)),n}function G(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=w?e[u](t):function(e,t){var n=!1,r=t?t[o.R5]:0;if(e&&r&&e[o.R5]>=r&&!(n=e===t)){for(var i=0;i=0?i:r-Math.abs(i),0);a=3)r=arguments[2];else{for(;a0&&J(u)&&(p=u,u=c[d]||{},d++),U(u)||(u={});d{"use strict";n.d(t,{$F:()=>f,C$:()=>m,DN:()=>a,Z:()=>i,Zh:()=>c,cL:()=>g,f_:()=>h,hL:()=>l,js:()=>u,kl:()=>y,mE:()=>s,oV:()=>o,qS:()=>r,uC:()=>d,yi:()=>p,ys:()=>v});var r="",i="channels",o="core",a="createPerfMgr",s="disabled",c="extensionConfig",u="extensions",l="processTelemetry",p="priority",d="eventsSent",f="eventsDiscarded",h="eventsSendRequest",m="perfEvent",v="errorToConsole",g="warnToConsole",y="getPerfMgr"},1782:(e,t,n)=>{"use strict";n.d(t,{Jk:()=>d,Lm:()=>h,j5:()=>m,zn:()=>p});var r=n(9141),i=n(8145),o=n(4869),a=n(6335),s="ctx",c="ParentContextKey",u="ChildrenContextKey",l=null,p=function(){function e(t,n,r){var a,l=this,p=!1;l.start=(0,o.m6)(),l[i.I]=t,l[i.d]=r,l[i.PL]=function(){return!1},(0,o.mf)(n)&&(p=(0,o.l_)(l,"payload",(function(){return!a&&(0,o.mf)(n)&&(a=n(),n=null),a}))),l[i.T]=function(t){return t?t===e[c]||t===e[u]?l[t]:(l[s]||{})[t]:null},l[i.wu]=function(t,n){t&&(t===e[c]?(l[t]||(l[i.PL]=function(){return!0}),l[t]=n):t===e[u]?l[t]=n:(l[s]=l[s]||{})[t]=n)},l[i.Km]=function(){var t=0,r=l[i.T](e[u]);if((0,o.kJ)(r))for(var a=0;a{"use strict";n.d(t,{Bt:()=>v,CD:()=>m,Vi:()=>b,jV:()=>y,xy:()=>g});var r=n(8145),i=n(9339),o=n(9251),a=n(4869),s=n(6335),c=n(1782),u=n(9031),l="TelemetryPluginChain",p="_hasRun",d="_getTelCtx",f=0;function h(e,t,n,c){var u=null,l=[];null!==c&&(u=c?function(e,t,n){for(;e;){if(e[r.TO]()===n)return e;e=e[r.W2]()}return y([n],t[r.TC]||{},t)}(e,n,c):e);var p={_next:function(){var e=u;if(u=e?e[r.W2]():null,!e){var t=l;t&&t[r.R5]>0&&((0,a.tO)(t,(function(e){try{e.func[r._S](e.self,e.args)}catch(e){(0,i.kP)(n[r.eZ],2,73,"Unexpected Exception during onComplete - "+(0,o.eU)(e))}})),l=[])}return e},ctx:{core:function(){return n},diagLog:function(){return(0,i.vH)(n,t)},getCfg:function(){return t},getExtCfg:d,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,o=d(e,null);return o&&!(0,a.le)(o[n])?i=o[n]:t&&!(0,a.le)(t[n])&&(i=t[n]),(0,a.le)(i)?r:i},hasNext:function(){return!!u},getNext:function(){return u},setNext:function(e){u=e},iterate:function(e){for(var t;t=p._next();){var n=t[r.TO]();n&&e(n)}},onComplete:function(e,t){for(var n=[],i=2;i0){var b=null;(0,a.tO)(e,(function(e){if(g||h!==e||(g=!0),g&&e&&(0,a.mf)(e[s.hL])){var y=function(e,t,n){var h,v=null,g=(0,a.mf)(e[s.hL]),y=(0,a.mf)(e[r.Jd]),b={getPlugin:function(){return e},getNext:function(){return v},processTelemetry:function(i,o){_(o=o||function(){var r;return e&&(0,a.mf)(e[d])&&(r=e[d]()),r||(r=m(b,t,n)),r}(),(function(t){if(!e||!g)return!1;var n=(0,u.OY)(e);return!n[r.fi]&&!n[s.mE]&&(y&&e[r.Jd](v),e[s.hL](i,t),!0)}),"processTelemetry",(function(){return{item:i}}),!i.sync)||o[r.uL](i)},unload:function(t,n){_(t,(function(){var i=!1;if(e){var o=(0,u.OY)(e),a=e[s.oV]||o[s.oV];!e||a&&a!==t.core()||o[r.fi]||(o[s.oV]=null,o[r.fi]=!0,o[r.yl]=!1,e[r.fi]&&!0===e[r.fi](t,n)&&(i=!0))}return i}),"unload",(function(){}),n[r.d])||t[r.uL](n)},update:function(t,n){_(t,(function(){var i=!1;if(e){var o=(0,u.OY)(e),a=e[s.oV]||o[s.oV];!e||a&&a!==t.core()||o[r.fi]||e[r.Tu]&&!0===e[r.Tu](t,n)&&(i=!0)}return i}),"update",(function(){}),!1)||t[r.uL](n)},_id:h=e?e[r.pZ]+"-"+e[s.yi]+"-"+f++:"Unknown-0-"+f++,_setNext:function(e){v=e}};function _(t,n,a,u,d){var f=!1,m=e?e[r.pZ]:l,g=t[p];return g||(g=t[p]={}),t.setNext(v),e&&(0,c.Lm)(t[s.oV](),(function(){return m+":"+a}),(function(){g[h]=!0;try{var e=v?v._id:s.qS;e&&(g[e]=!1),f=n(t)}catch(e){var c=!v||g[v._id];c&&(f=!0),v&&c||(0,i.kP)(t[r.mc](),1,73,"Plugin ["+m+"] failed during "+a+" - "+(0,o.eU)(e)+", run flags: "+(0,o.eU)(g))}}),u,d),f}return(0,a.FL)(b)}(e,t,n);v||(v=y),b&&b._setNext(y),b=y}}))}return h&&!v?y([h],t,n):v}var b=function(e,t,n,r){var i=m(e,t,n,r);(0,a.Vb)(this,i,(0,a.FY)(i))}},9406:(e,t,n)=>{"use strict";n.d(t,{CN:()=>v,F6:()=>g,_l:()=>m,az:()=>h,pZ:()=>y});var r=n(8145),i=n(9251),o=n(4869),a=n(6335),s=4294967296,c=4294967295,u=!1,l=123456789,p=987654321;function d(e){e<0&&(e>>>=0),l=123456789+e&c,p=987654321-e&c,u=!0}function f(){try{var e=2147483647&(0,o.m6)();d((Math.random()*s^e)+e)}catch(e){}}function h(e){return e>0?Math.floor(m()/c*(e+1))>>>0:0}function m(e){var t=0,n=(0,i.MX)()||(0,i.gz)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&c),0===t&&(0,i.w1)()&&(u||f(),t=g()&c),0===t&&(t=Math.floor(s*Math.random()|0)),e||(t>>>=0),t}function v(e){e?d(e):f()}function g(e){var t=((p=36969*(65535&p)+(p>>16)&c)<<16)+(65535&(l=18e3*(65535&l)+(l>>16)&c))>>>0&c|0;return e||(t>>>=0),t}function y(e){void 0===e&&(e=22);for(var t=m()>>>0,n=0,i=a.qS;i[r.R5]>>=6,5===n&&(t=(m()<<2&4294967295|3&t)>>>0,n=0);return i}},9031:(e,t,n)=>{"use strict";n.d(t,{AA:()=>p,OY:()=>u,Yn:()=>d,bP:()=>l});var r=n(8145),i=n(7624),o=n(4869),a=n(6335),s=n(6207),c=(0,i.K)("plugin");function u(e){return c.get(e,"state",{},!0)}function l(e,t){for(var n,i=[],s=null,c=e[r.W2]();c;){var l=c[r.TO]();l&&(s&&(0,o.mf)(s[r.Jd])&&(0,o.mf)(l[a.hL])&&s[r.Jd](l),((0,o.mf)(l[r.yl])?l[r.yl]():(n=u(l))[r.yl])||i[r.MW](l),s=l,c=c[r.W2]())}(0,o.tO)(i,(function(i){var o=e[a.oV]();i[r.VL](e.getCfg(),o,t,e[r.W2]()),n=u(i),i[a.oV]||n[a.oV]||(n[a.oV]=o),n[r.yl]=!0,delete n[r.fi]}))}function p(e){return e.sort((function(e,t){var n=0;if(t){var r=(0,o.mf)(t[a.hL]);(0,o.mf)(e[a.hL])?n=r?e[a.yi]-t[a.yi]:1:r&&(n=-1)}else n=e?1:-1;return n}))}function d(e){var t={};return{getName:function(){return t[r.I]},setName:function(n){e&&e.setName(n),t[r.I]=n},getTraceId:function(){return t[r.nY]},setTraceId:function(n){e&&e.setTraceId(n),(0,s.jN)(n)&&(t[r.nY]=n)},getSpanId:function(){return t[r._d]},setSpanId:function(n){e&&e.setSpanId(n),(0,s.Lc)(n)&&(t[r._d]=n)},getTraceFlags:function(){return t[r.T0]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[r.T0]=n}}}},8593:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});var r=n(8145),i=n(9339),o=n(9251),a=n(4869);function s(){var e=[];return{add:function(t){t&&e[r.MW](t)},run:function(t,n){(0,a.tO)(e,(function(e){try{e(t,n)}catch(e){(0,i.kP)(t[r.mc](),2,73,"Unexpected error calling unload handler - "+(0,o.eU)(e))}})),e=[]}}}},6207:(e,t,n)=>{"use strict";n.d(t,{J6:()=>E,Lc:()=>_,Pn:()=>x,SU:()=>g,aR:()=>S,jN:()=>b,j_:()=>y,lq:()=>w});var r=n(8145),i=n(8956),o=n(9251),a=n(4869),s=n(6335),c=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,u="00",l="ff",p="00000000000000000000000000000000",d="0000000000000000",f=1;function h(e,t,n){return!(!e||e[r.R5]!==t||e===n||!e.match(/^[\da-f]*$/i))}function m(e,t,n){return h(e,t)?e:n}function v(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[r.R5]<2;)t="0"+t;return t}function g(e,t,n,o){var a;return(a={})[r.PA]=h(o,2,l)?o:u,a[r.nY]=b(e)?e:(0,i.DO)(),a.spanId=_(t)?t:(0,i.DO)()[r.Jn](0,16),a.traceFlags=n>=0&&n<=255?n:1,a}function y(e,t){var n;if(!e)return null;if((0,a.kJ)(e)&&(e=e[0]||""),!e||!(0,a.HD)(e)||e[r.R5]>8192)return null;if(-1!==e[r.ou](",")){var i=e[r.w6](",");e=i[t>0&&i[r.R5]>t?t:0]}var o=c.exec((0,a.nd)(e));return o&&o[1]!==l&&o[2]!==p&&o[3]!==d?((n={version:(o[1]||s.qS)[r.T1](),traceId:(o[2]||s.qS)[r.T1](),spanId:(o[3]||s.qS)[r.T1]()})[r.T0]=parseInt(o[4],16),n):null}function b(e){return h(e,32,p)}function _(e){return h(e,16,d)}function E(e){return!!(e&&h(e[r.PA],2,l)&&h(e[r.nY],32,p)&&h(e[r._d],16,d)&&h(v(e[r.T0]),2))}function x(e){return!!E(e)&&(e[r.T0]&f)===f}function S(e){if(e){var t=v(e[r.T0]);h(t,2)||(t="01");var n=e[r.PA]||u;return"00"!==n&&"ff"!==n&&(n=u),"".concat(n.toLowerCase(),"-").concat(m(e.traceId,32,p).toLowerCase(),"-").concat(m(e.spanId,16,d).toLowerCase(),"-").concat(t.toLowerCase())}return""}function w(e){var t="traceparent",n=y((0,o.ed)(t),e);return n||(n=y((0,o.pI)(t),e)),n}},8145:(e,t,n)=>{"use strict";n.d(t,{$h:()=>U,F3:()=>I,Fc:()=>b,Fr:()=>G,Gc:()=>T,I:()=>i,Jd:()=>k,Jn:()=>B,Km:()=>ee,Kn:()=>Y,LS:()=>y,Lk:()=>D,MW:()=>s,P6:()=>K,PA:()=>ie,PL:()=>J,R5:()=>d,SD:()=>m,T:()=>Q,T0:()=>re,T1:()=>$,TC:()=>u,TO:()=>_,Tu:()=>O,VL:()=>r,W2:()=>P,ZV:()=>H,Z_:()=>f,_S:()=>W,_d:()=>ne,cb:()=>S,d:()=>A,dE:()=>X,eZ:()=>p,fi:()=>w,g:()=>v,gU:()=>C,i7:()=>V,iC:()=>x,jk:()=>z,kL:()=>E,mc:()=>R,n7:()=>g,nY:()=>te,ou:()=>L,p$:()=>l,pZ:()=>a,qV:()=>j,tb:()=>o,uL:()=>h,w6:()=>F,wu:()=>Z,xv:()=>q,yl:()=>c,zV:()=>N,zc:()=>M});var r="initialize",i="name",o="getNotifyMgr",a="identifier",s="push",c="isInitialized",u="config",l="instrumentationKey",p="logger",d="length",f="time",h="processNext",m="getProcessTelContext",v="addNotificationListener",g="removeNotificationListener",y="stopPollingInternalLogs",b="onComplete",_="getPlugin",E="flush",x="_extensions",S="splice",w="teardown",T="messageId",C="message",A="isAsync",I="_doTeardown",O="update",P="getNext",R="diagLog",k="setNextPlugin",N="createNew",D="cookieCfg",L="indexOf",M="substring",j="userAgent",F="split",U="setEnabled",B="substr",q="nodeType",H="apply",V="replace",G="enableDebugExceptions",z="logInternalMessage",$="toLowerCase",W="call",K="type",Y="handler",X="listeners",J="isChildEvt",Q="getCtx",Z="setCtx",ee="complete",te="traceId",ne="spanId",re="traceFlags",ie="version"},1550:(e,t,n)=>{"use strict";n.d(t,{CY:()=>f,Pw:()=>c,RJ:()=>d,V4:()=>u,bO:()=>s,cb:()=>r,fK:()=>i,hB:()=>a,jA:()=>o,rl:()=>l,yu:()=>p});var r="function",i="object",o="undefined",a="prototype",s="hasOwnProperty",c=Object,u=c[a],l=c.assign,p=c.create,d=c.defineProperty,f=u[s]},175:(e,t,n)=>{"use strict";n.d(t,{Rd:()=>o,ZU:()=>a,pu:()=>s});var r=n(1550),i=null;function o(e){void 0===e&&(e=!0);var t=!1===e?null:i;return t||(typeof globalThis!==r.jA&&(t=globalThis),t||typeof self===r.jA||(t=self),t||typeof window===r.jA||(t=window),t||typeof global===r.jA||(t=global),i=t),t}function a(e){throw new TypeError(e)}function s(e){var t=r.yu;if(t)return t(e);if(null==e)return{};var n=typeof e;function i(){}return n!==r.fK&&n!==r.cb&&a("Object prototype may only be an Object:"+e),i[r.hB]=e,new i}},7421:(e,t,n)=>{"use strict";n.d(t,{$h:()=>c,ne:()=>s,uc:()=>o});var r=n(1550),i=n(175),o=(((0,i.Rd)()||{}).Symbol,((0,i.Rd)()||{}).Reflect,r.rl||function(e){for(var t,n=1,i=arguments.length;n{"use strict";n.r(t),n.d(t,{webSnippet:()=>r});var r='!function(T,l,y){var S=T.location,k="script",D="instrumentationKey",C="ingestionendpoint",I="disableExceptionTracking",E="ai.device.",b="toLowerCase",w="crossOrigin",N="POST",e="appInsightsSDK",t=y.name||"appInsights";(y.name||T[e])&&(T[e]=t);var n=T[t]||function(d){var g=!1,f=!1,m={initialize:!0,queue:[],sv:"5",version:2,config:d};function v(e,t){var n={},a="Browser";return n[E+"id"]=a[b](),n[E+"type"]=a,n["ai.operation.name"]=S&&S.pathname||"_unknown_",n["ai.internal.sdkVersion"]="javascript:snippet_"+(m.sv||m.version),{time:function(){var e=new Date;function t(e){var t=""+e;return 1===t.length&&(t="0"+t),t}return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+((e.getUTCMilliseconds()/1e3).toFixed(3)+"").slice(2,5)+"Z"}(),iKey:e,name:"Microsoft.ApplicationInsights."+e.replace(/-/g,"")+"."+t,sampleRate:100,tags:n,data:{baseData:{ver:2}}}}var h=d.url||y.src;if(h){function a(e){var t,n,a,i,r,o,s,c,u,p,l;g=!0,m.queue=[],f||(f=!0,t=h,s=function(){var e={},t=d.connectionString;if(t)for(var n=t.split(";"),a=0;a{"use strict";var r;n.d(t,{Z:()=>F});var i,o="undefined",a="constructor",s="prototype",c="function",u="_dynInstFuncs",l="_isDynProxy",p="_dynClass",d="_dynCls$",f="_dynInstChk",h=f,m="_dfOpts",v="_unknown_",g="__proto__",y="_dyn"+g,b="__dynProto$Gbl",_="_dynInstProto",E="useBaseInst",x="setInstFuncs",S=Object,w=S.getPrototypeOf,T=S.getOwnPropertyNames,C=(typeof globalThis!==o&&(i=globalThis),i||typeof self===o||(i=self),i||typeof window===o||(i=window),i||typeof global===o||(i=global),i||{}),A=C[b]||(C[b]={o:(r={},r[x]=!0,r[E]=!0,r),n:1e3});function I(e,t){return e&&S[s].hasOwnProperty.call(e,t)}function O(e){return e&&(e===S[s]||e===Array[s])}function P(e){return O(e)||e===Function[s]}function R(e){var t;if(e){if(w)return w(e);var n=e[g]||e[s]||(e[a]?e[a][s]:null);t=e[y]||n,I(e,y)||(delete e[_],t=e[y]=e[_]||e[y],e[_]=n)}return t}function k(e,t){var n=[];if(T)n=T(e);else for(var r in e)"string"==typeof r&&I(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i=0;n--)if(e[n]===t)return!0;return!1}function M(e,t,n,r,i){if(!O(e)){var o=n[u]=n[u]||{},a=o[t]=o[t]||{};!1!==o[h]&&(o[h]=!!i),k(n,(function(t){N(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!I(e,t)||e[t]&&!e[t][l])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&I(n,p)){var o=e[u]||{};if((i=(o[n[p]]||{})[t])||D("Missing ["+t+"] "+c),!i[f]&&!1!==o[h]){for(var a=!I(e,t),s=R(e),l=[];a&&s&&!P(s)&&!L(l,s);){var d=s[t];if(d){a=d===r;break}l.push(s),s=R(s)}try{a&&(e[t]=i),i[f]=1}catch(e){o[h]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=R(t)[e]),typeof r!==c&&D("["+e+"] is not a "+c),r}(t,e,n);return r.apply(this,arguments)};return n[l]=1,n}(e,t)))}))}}function j(e,t){return I(e,s)?e.name||t||v:((e||{})[a]||{}).name||t||v}function F(e,t,n,r){I(e,s)||D("theClass is an invalid class definition.");var i=e[s];(function(e,t){if(w){for(var n=[],r=R(t);r&&!P(r)&&!L(n,r);){if(r===e)return!0;n.push(r),r=R(r)}return!1}return!0})(i,t)||D("["+j(e)+"] not in hierarchy of ["+j(t)+"]");var o=null;I(i,p)?o=i[p]:(o=d+j(e,"_")+"$"+A.n,A.n++,i[p]=o);var a=F[m],c=!!a[E];c&&r&&void 0!==r[E]&&(c=!!r[E]);var f=function(e){var t={};return k(e,(function(n){!t[n]&&N(e,n,!1)&&(t[n]=e[n])})),t}(t),v=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[l]&&r){var o=e[u]||{};!1!==o[h]&&(i=(o[t[p]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};k(n,(function(e){o[e]=i(t,n,e)}));for(var a=R(e),s=[];a&&!P(a)&&!L(s,a);)k(a,(function(e){!o[e]&&N(a,e,!w)&&(o[e]=i(t,a,e))})),s.push(a),a=R(a);return o}(i,t,f,c);n(t,v);var g=!!w&&!!a[x];g&&r&&(g=!!r[x]),M(i,o,t,f,!1!==g)}F[m]=A.o},7150:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});var r=n(5834),i=function(){function e(){}return e.prototype.active=function(){return r.I},e.prototype.with=function(e,t,n){for(var r=[],i=3;i0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(r),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),o=n(658),a=n(5774),s="context",c=new i,u=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return(0,o.TG)(s,e,a.G.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,i=[],o=3;o0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return(0,o.Rd)(s)||c},e.prototype.disable=function(){this._getContextManager().disable(),(0,o.J_)(s,a.G.instance())},e}()},5774:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(658),i=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(n),!1))}var a=n(6740),s=function(){function e(){function e(e){return function(){for(var t=[],n=0;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,n){var i,o,s;if(void 0===n&&(n={logLevel:a.n.INFO}),e===t){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(i=c.stack)&&void 0!==i?i:c.message),!1}"number"==typeof n&&(n={logLevel:n});var u=(0,r.Rd)("diag"),l=function(e,t){function n(n,r){var i=t[n];return"function"==typeof i&&e>=r?i.bind(t):function(){}}return ea.n.ALL&&(e=a.n.ALL),t=t||{},{error:n("error",a.n.ERROR),warn:n("warn",a.n.WARN),info:n("info",a.n.INFO),debug:n("debug",a.n.DEBUG),verbose:n("verbose",a.n.VERBOSE)}}(null!==(o=n.logLevel)&&void 0!==o?o:a.n.INFO,e);if(u&&!n.suppressOverrideMessage){var p=null!==(s=(new Error).stack)&&void 0!==s?s:"";u.warn("Current logger will be overwritten from "+p),l.warn("Current logger will overwrite one already registered from "+p)}return(0,r.TG)("diag",l,t,!0)},t.disable=function(){(0,r.J_)("diag",t)},t.createComponentLogger=function(e){return new i(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},2599:(e,t,n)=>{"use strict";n.d(t,{u:()=>c,H:()=>s});var r=n(5774),i=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(e){var t=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(e,2);return[t[0],t[1]]}))},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),s=a.next();!s.done;s=a.next()){var c=s.value;o._entries.delete(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o},e.prototype.clear=function(){return new e},e}(),o=Symbol("BaggageEntryMetadata"),a=r.G.instance();function s(e){return void 0===e&&(e={}),new i(new Map(Object.entries(e)))}function c(e){return"string"!=typeof e&&(a.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:o,toString:function(){return e}}}},6339:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r=n(7150).c.getInstance()},5834:(e,t,n)=>{"use strict";function r(e){return Symbol.for(e)}n.d(t,{I:()=>i,Y:()=>r});var i=new function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}},928:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var r=n(5774).G.instance()},6740:(e,t,n)=>{"use strict";var r;n.d(t,{n:()=>r}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(r||(r={}))},4284:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DiagConsoleLogger:()=>c,DiagLogLevel:()=>u.n,INVALID_SPANID:()=>H.fQ,INVALID_SPAN_CONTEXT:()=>H.Rr,INVALID_TRACEID:()=>H.AE,ProxyTracer:()=>O.T,ProxyTracerProvider:()=>P.K,ROOT_CONTEXT:()=>a.I,SamplingDecision:()=>R.U,SpanKind:()=>k.M,SpanStatusCode:()=>N.Q,TraceFlags:()=>D.r,ValueType:()=>i,baggageEntryMetadataFromString:()=>o.u,context:()=>V.D,createContextKey:()=>a.Y,createNoopMeter:()=>A,createTraceState:()=>B,default:()=>Q,defaultTextMapGetter:()=>I.r,defaultTextMapSetter:()=>I.M,diag:()=>G.K,isSpanContextValid:()=>q.BM,isValidSpanId:()=>q.Lc,isValidTraceId:()=>q.jN,metrics:()=>Y,propagation:()=>X.u,trace:()=>J.g});var r,i,o=n(2599),a=n(5834),s=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],c=function(){function e(e){return function(){for(var t=[],n=0;n512||(this._internalState=e.split(",").reverse().reduce((function(e,t){var n=t.trim(),r=n.indexOf("=");if(-1!==r){var i=n.slice(0,r),o=n.slice(r+1,t.length);(function(e){return M.test(e)})(i)&&function(e){return j.test(e)&&!F.test(e)}(o)&&e.set(i,o)}return e}),new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}();function B(e){return new U(e)}var q=n(7228),H=n(7007),V=n(6339),G=n(928),z=new(function(){function e(){}return e.prototype.getMeter=function(e,t,n){return _},e}()),$=n(658),W=n(5774),K="metrics",Y=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return(0,$.TG)(K,e,W.G.instance())},e.prototype.getMeterProvider=function(){return(0,$.Rd)(K)||z},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){(0,$.J_)(K,W.G.instance())},e}().getInstance(),X=n(8303),J=n(2210);const Q={context:V.D,diag:G.K,metrics:Y,propagation:X.u,trace:J.g}},658:(e,t,n)=>{"use strict";n.d(t,{Rd:()=>p,TG:()=>l,J_:()=>d});var r="object"==typeof globalThis?globalThis:global,i="1.6.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,a=function(e){var t=new Set([e]),n=new Set,r=e.match(o);if(!r)return function(){return!1};var i=+r[1],a=+r[2],s=+r[3];if(null!=r[4])return function(t){return t===e};function c(e){return n.add(e),!1}function u(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(o);if(!r)return c(e);var l=+r[1],p=+r[2],d=+r[3];return null!=r[4]||i!==l?c(e):0===i?a===p&&s<=d?u(e):c(e):a<=p?u(e):c(e)}}(i),s=i.split(".")[0],c=Symbol.for("opentelemetry.js.api."+s),u=r;function l(e,t,n,r){var o;void 0===r&&(r=!1);var a=u[c]=null!==(o=u[c])&&void 0!==o?o:{version:i};if(!r&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(s.stack||s.message),!1}return a.version!==i?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+i),n.error(s.stack||s.message),!1):(a[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+i+"."),!0)}function p(e){var t,n,r=null===(t=u[c])||void 0===t?void 0:t.version;if(r&&a(r))return null===(n=u[c])||void 0===n?void 0:n[e]}function d(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+i+".");var n=u[c];n&&delete n[e]}},8303:(e,t,n)=>{"use strict";n.d(t,{u:()=>g});var r=n(658),i=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}(),o=n(7008),a=n(7150),s=(0,n(5834).Y)("OpenTelemetry Baggage Key");function c(e){return e.getValue(s)||void 0}function u(){return c(a.c.getInstance().active())}function l(e,t){return e.setValue(s,t)}function p(e){return e.deleteValue(s)}var d=n(2599),f=n(5774),h="propagation",m=new i,v=function(){function e(){this.createBaggage=d.H,this.getBaggage=c,this.getActiveBaggage=u,this.setBaggage=l,this.deleteBaggage=p}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return(0,r.TG)(h,e,f.G.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=o.M),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=o.r),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){(0,r.J_)(h,f.G.instance())},e.prototype._getGlobalPropagator=function(){return(0,r.Rd)(h)||m},e}(),g=v.getInstance()},7008:(e,t,n)=>{"use strict";n.d(t,{M:()=>i,r:()=>r});var r={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},i={set:function(e,t,n){null!=e&&(e[t]=n)}}},2210:(e,t,n)=>{"use strict";n.d(t,{g:()=>u});var r=n(658),i=n(5236),o=n(7228),a=n(3557),s=n(5774),c="trace",u=function(){function e(){this._proxyTracerProvider=new i.K,this.wrapSpanContext=o.kw,this.isSpanContextValid=o.BM,this.deleteSpan=a.TW,this.getSpan=a.Br,this.getActiveSpan=a.HN,this.getSpanContext=a.A3,this.setSpan=a.WZ,this.setSpanContext=a.G3}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=(0,r.TG)(c,this._proxyTracerProvider,s.G.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return(0,r.Rd)(c)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){(0,r.J_)(c,s.G.instance()),this._proxyTracerProvider=new i.K},e}().getInstance()},7817:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(7007),i=function(){function e(e){void 0===e&&(e=r.Rr),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}()},9127:(e,t,n)=>{"use strict";n.d(t,{E:()=>c});var r=n(7150),i=n(3557),o=n(7817),a=n(7228),s=r.c.getInstance(),c=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(void 0===n&&(n=s.active()),Boolean(null==t?void 0:t.root))return new o.s;var r,c=n&&(0,i.A3)(n);return"object"==typeof(r=c)&&"string"==typeof r.spanId&&"string"==typeof r.traceId&&"number"==typeof r.traceFlags&&(0,a.BM)(c)?new o.s(c):new o.s},e.prototype.startActiveSpan=function(e,t,n,r){var o,a,c;if(!(arguments.length<2)){2===arguments.length?c=t:3===arguments.length?(o=t,c=n):(o=t,a=n,c=r);var u=null!=a?a:s.active(),l=this.startSpan(e,o,u),p=(0,i.WZ)(u,l);return s.with(p,c,void 0,l)}},e}()},9953:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=new(n(9127).E),i=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):r},e}()},5236:(e,t,n)=>{"use strict";n.d(t,{K:()=>a});var r=n(9953),i=n(9127),o=new(function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new i.E},e}()),a=function(){function e(){}return e.prototype.getTracer=function(e,t,n){var i;return null!==(i=this.getDelegateTracer(e,t,n))&&void 0!==i?i:new r.T(this,e,t,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:o},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getTracer(e,t,n)},e}()},1227:(e,t,n)=>{"use strict";var r;n.d(t,{U:()=>r}),function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(r||(r={}))},3557:(e,t,n)=>{"use strict";n.d(t,{A3:()=>d,Br:()=>s,G3:()=>p,HN:()=>c,TW:()=>l,WZ:()=>u});var r=n(5834),i=n(7817),o=n(7150),a=(0,r.Y)("OpenTelemetry Context Key SPAN");function s(e){return e.getValue(a)||void 0}function c(){return s(o.c.getInstance().active())}function u(e,t){return e.setValue(a,t)}function l(e){return e.deleteValue(a)}function p(e,t){return u(e,new i.s(t))}function d(e){var t;return null===(t=s(e))||void 0===t?void 0:t.spanContext()}},7007:(e,t,n)=>{"use strict";n.d(t,{AE:()=>o,Rr:()=>a,fQ:()=>i});var r=n(8726),i="0000000000000000",o="00000000000000000000000000000000",a={traceId:o,spanId:i,traceFlags:r.r.NONE}},87:(e,t,n)=>{"use strict";var r;n.d(t,{M:()=>r}),function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"}(r||(r={}))},7228:(e,t,n)=>{"use strict";n.d(t,{BM:()=>u,Lc:()=>c,jN:()=>s,kw:()=>l});var r=n(7007),i=n(7817),o=/^([0-9a-f]{32})$/i,a=/^[0-9a-f]{16}$/i;function s(e){return o.test(e)&&e!==r.AE}function c(e){return a.test(e)&&e!==r.fQ}function u(e){return s(e.traceId)&&c(e.spanId)}function l(e){return new i.s(e)}},1820:(e,t,n)=>{"use strict";var r;n.d(t,{Q:()=>r}),function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(r||(r={}))},8726:(e,t,n)=>{"use strict";var r;n.d(t,{r:()=>r}),function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(r||(r={}))},3420:(e,t,n)=>{"use strict";var r;n.d(t,{I:()=>r}),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(r||(r={}))},3250:(e,t,n)=>{"use strict";n.d(t,{Cx:()=>s,H3:()=>u,Vo:()=>r,WM:()=>a,bO:()=>i,bU:()=>o,ef:()=>c});var r="=",i=";",o=",",a="baggage",s=180,c=4096,u=8192},926:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var r=n(8303),i=n(8397),o=n(3250),a=n(315),s=function(){function e(){}return e.prototype.inject=function(e,t,n){var s=r.u.getBaggage(e);if(s&&!(0,i.Ll)(e)){var c=(0,a.getKeyPairs)(s).filter((function(e){return e.length<=o.ef})).slice(0,o.Cx),u=(0,a.serializeKeyPairs)(c);u.length>0&&n.set(t,o.WM,u)}},e.prototype.extract=function(e,t,n){var i=n.get(t,o.WM),s=Array.isArray(i)?i.join(o.bU):i;if(!s)return e;var c={};return 0===s.length?e:(s.split(o.bU).forEach((function(e){var t=(0,a.parsePairKeyValue)(e);if(t){var n={value:t.value};t.metadata&&(n.metadata=t.metadata),c[t.key]=n}})),0===Object.entries(c).length?e:r.u.setBaggage(e,r.u.createBaggage(c)))},e.prototype.fields=function(){return[o.WM]},e}()},315:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getKeyPairs:()=>s,parseKeyPairsIntoRecord:()=>u,parsePairKeyValue:()=>c,serializeKeyPairs:()=>a});var r=n(2599),i=n(3250),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function a(e){return e.reduce((function(e,t){var n=""+e+(""!==e?i.bU:"")+t;return n.length>i.H3?e:n}),"")}function s(e){return e.getAllEntries().map((function(e){var t=o(e,2),n=t[0],r=t[1],a=encodeURIComponent(n)+"="+encodeURIComponent(r.value);return void 0!==r.metadata&&(a+=i.bO+r.metadata.toString()),a}))}function c(e){var t=e.split(i.bO);if(!(t.length<=0)){var n=t.shift();if(n){var o=n.indexOf(i.Vo);if(!(o<=0)){var a,s=decodeURIComponent(n.substring(0,o).trim()),c=decodeURIComponent(n.substring(o+1).trim());return t.length>0&&(a=(0,r.u)(t.join(i.bO))),{key:s,value:c,metadata:a}}}}}function u(e){return"string"!=typeof e||0===e.length?{}:e.split(i.bU).map((function(e){return c(e)})).filter((function(e){return void 0!==e&&e.value.length>0})).reduce((function(e,t){return e[t.key]=t.value,e}),{})}},551:(e,t,n)=>{"use strict";n.d(t,{Do:()=>c,FT:()=>a,sy:()=>s});var r=n(928),i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function a(e){var t,n,a={};if("object"!=typeof e||null==e)return a;try{for(var u=i(Object.entries(e)),l=u.next();!l.done;l=u.next()){var p=o(l.value,2),d=p[0],f=p[1];s(d)?c(f)?Array.isArray(f)?a[d]=f.slice():a[d]=f:r.K.warn("Invalid attribute value set for key: "+d):r.K.warn("Invalid attribute key: "+d)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return a}function s(e){return"string"==typeof e&&e.length>0}function c(e){return null==e||(Array.isArray(e)?function(e){var t,n,r;try{for(var o=i(e),a=o.next();!a.done;a=o.next()){var s=a.value;if(null!=s){if(!r){if(u(s)){r=typeof s;continue}return!1}if(typeof s!==r)return!1}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0}(e):u(e))}function u(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}},6220:(e,t,n)=>{"use strict";n.d(t,{L:()=>o,c:()=>i});var r=(0,n(6470).x)();function i(e){r=e}function o(e){try{r(e)}catch(e){}}},6470:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(928);function i(){return function(e){r.K.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){for(var t={},n=e;null!==n;)Object.getOwnPropertyNames(n).forEach((function(e){if(!t[e]){var r=n[e];r&&(t[e]=String(r))}})),n=Object.getPrototypeOf(n);return t}(e))}(e))}}},7664:(e,t,n)=>{"use strict";n.d(t,{Dt:()=>v,J3:()=>p,Jt:()=>u,KO:()=>h,PW:()=>f,U:()=>c,Us:()=>d,X_:()=>g,aE:()=>l,i5:()=>s,ji:()=>m,vF:()=>y});var r=n(471),i=9,o=Math.pow(10,6),a=Math.pow(10,i);function s(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*o)]}function c(){var e=r.t.timeOrigin;if("number"!=typeof e){var t=r.t;e=t.timing&&t.timing.fetchStart}return e}function u(e){return y(s(c()),s("number"==typeof e?e:r.t.now()))}function l(e){if(v(e))return e;if("number"==typeof e)return e=a&&(n[1]-=a,n[0]+=1),n}},7593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlwaysOffSampler:()=>N,AlwaysOnSampler:()=>D,AnchoredClock:()=>i,BindOnceFuture:()=>Q.q,CompositePropagator:()=>T.Y,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>H.qG,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>H.KR,DEFAULT_ENVIRONMENT:()=>H.J9,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>H.Ys,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>H.VH,ExportResultCode:()=>u.I,ParentBasedSampler:()=>F,RPCType:()=>E,RandomIdGenerator:()=>y,SDK_INFO:()=>S.m,TRACE_PARENT_HEADER:()=>C.FX,TRACE_STATE_HEADER:()=>C.C3,TimeoutError:()=>$,TraceIdRatioBasedSampler:()=>U,TraceState:()=>q.n,TracesSamplerValues:()=>G.J,VERSION:()=>l.q,W3CBaggagePropagator:()=>r.a,W3CTraceContextPropagator:()=>C.jf,_globalThis:()=>f,addHrTimes:()=>c.vF,baggageUtils:()=>p,callWithTimeout:()=>W,deleteRPCMetadata:()=>O,getEnv:()=>d.d,getEnvWithoutDefaults:()=>H.vU,getRPCMetadata:()=>P,getTimeOrigin:()=>c.U,globalErrorHandler:()=>a.L,hexToBase64:()=>g,hrTime:()=>c.Jt,hrTimeDuration:()=>c.J3,hrTimeToMicroseconds:()=>c.ji,hrTimeToMilliseconds:()=>c.KO,hrTimeToNanoseconds:()=>c.PW,hrTimeToTimeStamp:()=>c.Us,internal:()=>ee,isAttributeKey:()=>o.sy,isAttributeValue:()=>o.Do,isTimeInput:()=>c.X_,isTimeInputHrTime:()=>c.Dt,isTracingSuppressed:()=>B.Ll,isUrlIgnored:()=>X,isWrapped:()=>J,loggingErrorHandler:()=>s.x,merge:()=>V.T,millisToHrTime:()=>c.i5,otperformance:()=>x.t,parseEnvironment:()=>H.Ds,parseTraceParent:()=>C.j_,sanitizeAttributes:()=>o.FT,setGlobalErrorHandler:()=>a.c,setRPCMetadata:()=>I,suppressTracing:()=>B.hE,timeInputToHrTime:()=>c.aE,unrefTimer:()=>w.g,unsuppressTracing:()=>B.yy,urlMatches:()=>Y});var r=n(926),i=function(){function e(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}return e.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},e}(),o=n(551),a=n(6220),s=n(6470),c=n(7664),u=n(3420),l=n(8923),p=n(315),d=n(4241),f="object"==typeof globalThis?globalThis:global;function h(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}var m=Buffer.alloc(8),v=Buffer.alloc(16);function g(e){var t;t=16===e.length?m:32===e.length?v:Buffer.alloc(e.length/2);for(var n=0,r=0;r>>0,4*t);for(t=0;t0);t++)t===e-1&&(b[e-1]=1);return b.toString("hex",0,e)}}var E,x=n(471),S=n(3290),w=n(2140),T=n(3135),C=n(9588),A=(0,n(5834).Y)("OpenTelemetry SDK Context Key RPC_METADATA");function I(e,t){return e.setValue(A,t)}function O(e){return e.deleteValue(A)}function P(e){return e.getValue(A)}!function(e){e.HTTP="http"}(E||(E={}));var R,k=n(1227),N=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:k.U.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),D=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:k.U.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),L=n(2210),M=n(7228),j=n(8726),F=function(){function e(e){var t,n,r,i;this._root=e.root,this._root||((0,a.L)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new D),this._remoteParentSampled=null!==(t=e.remoteParentSampled)&&void 0!==t?t:new D,this._remoteParentNotSampled=null!==(n=e.remoteParentNotSampled)&&void 0!==n?n:new N,this._localParentSampled=null!==(r=e.localParentSampled)&&void 0!==r?r:new D,this._localParentNotSampled=null!==(i=e.localParentNotSampled)&&void 0!==i?i:new N}return e.prototype.shouldSample=function(e,t,n,r,i,o){var a=L.g.getSpanContext(e);return a&&(0,M.BM)(a)?a.isRemote?a.traceFlags&j.r.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,i,o):this._remoteParentNotSampled.shouldSample(e,t,n,r,i,o):a.traceFlags&j.r.SAMPLED?this._localParentSampled.shouldSample(e,t,n,r,i,o):this._localParentNotSampled.shouldSample(e,t,n,r,i,o):this._root.shouldSample(e,t,n,r,i,o)},e.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()+"}"},e}(),U=function(){function e(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}return e.prototype.shouldSample=function(e,t){return{decision:(0,M.jN)(t)&&this._accumulate(t)=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,n=0;n>>0}return t},e}(),B=n(8397),q=n(9598),H=n(450),V=n(9009),G=n(9290),z=(R=function(e,t){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},R(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),$=function(e){function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return z(t,e),t}(Error);function W(e,t){var n,r=new Promise((function(e,r){n=setTimeout((function(){r(new $("Operation timed out."))}),t)}));return Promise.race([e,r]).then((function(e){return clearTimeout(n),e}),(function(e){throw clearTimeout(n),e}))}var K=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Y(e,t){return"string"==typeof t?e===t:!!e.match(t)}function X(e,t){var n,r;if(!t)return!1;try{for(var i=K(t),o=i.next();!o.done;o=i.next())if(Y(e,o.value))return!0}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}function J(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}var Q=n(1399),Z=n(6339),ee={_export:function(e,t){return new Promise((function(n){Z.D.with((0,B.hE)(Z.D.active()),(function(){e.export(t,(function(e){n(e)}))}))}))}}},4241:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(2037),i=n(450);function o(){var e=(0,i.Ds)(process.env);return Object.assign({HOSTNAME:r.hostname()},i.J9,e)}},471:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var r=require("perf_hooks").performance},3290:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var r,i=n(8923),o=n(5364),a=((r={})[o.R9.TELEMETRY_SDK_NAME]="opentelemetry",r[o.R9.PROCESS_RUNTIME_NAME]="node",r[o.R9.TELEMETRY_SDK_LANGUAGE]=o.Te.NODEJS,r[o.R9.TELEMETRY_SDK_VERSION]=i.q,r)},2140:(e,t,n)=>{"use strict";function r(e){e.unref()}n.d(t,{g:()=>r})},3135:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i});var r=n(928),i=function(){function e(e){var t;void 0===e&&(e={}),this._propagators=null!==(t=e.propagators)&&void 0!==t?t:[],this._fields=Array.from(new Set(this._propagators.map((function(e){return"function"==typeof e.fields?e.fields():[]})).reduce((function(e,t){return e.concat(t)}),[])))}return e.prototype.inject=function(e,t,n){var i,o;try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),s=a.next();!s.done;s=a.next()){var c=s.value;try{c.inject(e,t,n)}catch(e){r.K.warn("Failed to inject with "+c.constructor.name+". Err: "+e.message)}}}catch(e){i={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}},e.prototype.extract=function(e,t,n){return this._propagators.reduce((function(e,i){try{return i.extract(e,t,n)}catch(e){r.K.warn("Failed to inject with "+i.constructor.name+". Err: "+e.message)}return e}),e)},e.prototype.fields=function(){return this._fields.slice()},e}()},9598:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r="[_0-9a-z-*/]",i=new RegExp("^(?:[a-z]"+r+"{0,255}|[a-z0-9]"+r+"{0,240}@[a-z]"+r+"{0,13})$"),o=/^[ -~]{0,255}[!-~]$/,a=/,|=/,s=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce((function(t,n){return t.push(n+"="+e.get(n)),t}),[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce((function(e,t){var n=t.trim(),r=n.indexOf("=");if(-1!==r){var s=n.slice(0,r),c=n.slice(r+1,t.length);(function(e){return i.test(e)})(s)&&function(e){return o.test(e)&&!a.test(e)}(c)&&e.set(s,c)}return e}),new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()},9588:(e,t,n)=>{"use strict";n.d(t,{C3:()=>u,FX:()=>c,j_:()=>p,jf:()=>d});var r=n(2210),i=n(7228),o=n(8726),a=n(8397),s=n(9598),c="traceparent",u="tracestate",l=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function p(e){var t=l.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}var d=function(){function e(){}return e.prototype.inject=function(e,t,n){var s=r.g.getSpanContext(e);if(s&&!(0,a.Ll)(e)&&(0,i.BM)(s)){var l="00-"+s.traceId+"-"+s.spanId+"-0"+Number(s.traceFlags||o.r.NONE).toString(16);n.set(t,c,l),s.traceState&&n.set(t,u,s.traceState.serialize())}},e.prototype.extract=function(e,t,n){var i=n.get(t,c);if(!i)return e;var o=Array.isArray(i)?i[0]:i;if("string"!=typeof o)return e;var a=p(o);if(!a)return e;a.isRemote=!0;var l=n.get(t,u);if(l){var d=Array.isArray(l)?l.join(","):l;a.traceState=new s.n("string"==typeof d?d:void 0)}return r.g.setSpanContext(e,a)},e.prototype.fields=function(){return[c,u]},e}()},8397:(e,t,n)=>{"use strict";n.d(t,{Ll:()=>a,hE:()=>i,yy:()=>o});var r=(0,n(5834).Y)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function i(e){return e.setValue(r,!0)}function o(e){return e.deleteValue(r)}function a(e){return!0===e.getValue(r)}},1399:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r=function(){function e(){var e=this;this._promise=new Promise((function(t,n){e._resolve=t,e._reject=n}))}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(e){this._resolve(e)},e.prototype.reject=function(e){this._reject(e)},e}(),i=function(){function e(e,t){this._callback=e,this._that=t,this._isCalled=!1,this._deferred=new r}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var e,t=this,n=[],r=0;r0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(n),!1))).then((function(e){return t._deferred.resolve(e)}),(function(e){return t._deferred.reject(e)}))}catch(e){this._deferred.reject(e)}}return this._deferred.promise},e}()},450:(e,t,n)=>{"use strict";n.d(t,{qG:()=>h,KR:()=>f,J9:()=>g,Ys:()=>m,VH:()=>v,vU:()=>w,Ds:()=>S});var r=n(6740),i=n(9290),o="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},a=",",s=["OTEL_SDK_DISABLED"];function c(e){return s.indexOf(e)>-1}var u=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function l(e){return u.indexOf(e)>-1}var p=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function d(e){return p.indexOf(e)>-1}var f=1/0,h=128,m=128,v=128,g={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:r.n.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:f,OTEL_ATTRIBUTE_COUNT_LIMIT:h,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:f,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:h,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:f,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:h,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:m,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:v,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:i.J.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function y(e,t,n){if(void 0!==n[e]){var r=String(n[e]);t[e]="true"===r.toLowerCase()}}function b(e,t,n,r,i){if(void 0===r&&(r=-1/0),void 0===i&&(i=1/0),void 0!==n[e]){var o=Number(n[e]);isNaN(o)||(t[e]=oi?i:o)}}function _(e,t,n,r){void 0===r&&(r=a);var i=n[e];"string"==typeof i&&(t[e]=i.split(r).map((function(e){return e.trim()})))}var E={ALL:r.n.ALL,VERBOSE:r.n.VERBOSE,DEBUG:r.n.DEBUG,INFO:r.n.INFO,WARN:r.n.WARN,ERROR:r.n.ERROR,NONE:r.n.NONE};function x(e,t,n){var r=n[e];if("string"==typeof r){var i=E[r.toUpperCase()];null!=i&&(t[e]=i)}}function S(e){var t={};for(var n in g){var r=n;if("OTEL_LOG_LEVEL"===r)x(r,t,e);else if(c(r))y(r,t,e);else if(l(r))b(r,t,e);else if(d(r))_(r,t,e);else{var i=e[r];null!=i&&(t[r]=String(i))}}return t}function w(){return"undefined"!=typeof process&&process&&process.env?S(process.env):S(o)}},9009:(e,t,n)=>{"use strict";n.d(t,{T:()=>g});var r,i,o="[object Object]",a="[object Null]",s="[object Undefined]",c=Function.prototype.toString,u=c.call(Object),l=(r=Object.getPrototypeOf,i=Object,function(e){return r(i(e))}),p=Object.prototype,d=p.hasOwnProperty,f=Symbol?Symbol.toStringTag:void 0,h=p.toString;function m(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||function(e){return null==e?void 0===e?s:a:f&&f in Object(e)?function(e){var t=d.call(e,f),n=e[f],r=!1;try{e[f]=void 0,r=!0}catch(e){}var i=h.call(e);return r&&(t?e[f]=n:delete e[f]),i}(e):function(e){return h.call(e)}(e)}(e)!==o)return!1;var t=l(e);if(null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)===u}var v=20;function g(){for(var e=[],t=0;t0;)n=b(n,e.shift(),0,r);return n}function y(e){return E(e)?e.slice():e}function b(e,t,n,r){var i;if(void 0===n&&(n=0),!(n>v)){if(n++,w(e)||w(t)||x(t))i=y(t);else if(E(e)){if(i=e.slice(),E(t))for(var o=0,a=t.length;o{"use strict";var r;n.d(t,{J:()=>r}),function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"}(r||(r={}))},8923:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var r="1.17.0"},2506:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlwaysOffSampler:()=>E,AlwaysOnSampler:()=>x,BasicTracerProvider:()=>ie,BatchSpanProcessor:()=>re,ConsoleSpanExporter:()=>oe,ForceFlushState:()=>F,InMemorySpanExporter:()=>ae,NoopSpanProcessor:()=>J,ParentBasedSampler:()=>T,RandomIdGenerator:()=>D,SamplingDecision:()=>r,SimpleSpanProcessor:()=>ce,Span:()=>y,TraceIdRatioBasedSampler:()=>C,Tracer:()=>U});var r,i=n(6339),o=n(2210),a=n(928),s=n(7007),c=n(87),u=n(1227),l=n(8726),p=n(8397),d=n(551),f=n(1820),h=n(471),m=n(7664),v=n(3108),g=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},y=function(){function e(e,t,n,r,i,o,a,s,c){void 0===a&&(a=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:f.Q.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=r,this.parentSpanId=o,this.kind=i,this.links=a;var u=Date.now();this._performanceStartTime=h.t.now(),this._performanceOffset=u-(this._performanceStartTime+(0,m.U)()),this._startTimeProvided=null!=s,this.startTime=this._getTime(null!=s?s:u),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return null==t||this._isSpanEnded()?this:0===e.length?(a.K.warn("Invalid attribute key: "+e),this):(0,d.Do)(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),this):(a.K.warn("Invalid attribute value set for key: "+e),this)},e.prototype.setAttributes=function(e){var t,n;try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(e)),i=r.next();!i.done;i=r.next()){var o=g(i.value,2),a=o[0],s=o[1];this.setAttribute(a,s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.addEvent=function(e,t,n){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return a.K.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(a.K.warn("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,m.X_)(t)&&((0,m.X_)(n)||(n=t),t=void 0);var r=(0,d.FT)(t);return this.events.push({name:e,attributes:r,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.setStatus=function(e){return this._isSpanEnded()||(this.status=e),this},e.prototype.updateName=function(e){return this._isSpanEnded()||(this.name=e),this},e.prototype.end=function(e){this._isSpanEnded()?a.K.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(e),this._duration=(0,m.J3)(this.startTime,this.endTime),this._duration[0]<0&&(a.K.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._spanProcessor.onEnd(this))},e.prototype._getTime=function(e){if("number"==typeof e&&e=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,n=0;n>>0}return t},e}(),A=(0,b.d)(),I=_.J.AlwaysOn,O=1;function P(){return{sampler:R(A),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,b.d)().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,b.d)().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:(0,b.d)().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,b.d)().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:(0,b.d)().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:(0,b.d)().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:(0,b.d)().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:(0,b.d)().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function R(e){switch(void 0===e&&(e=(0,b.d)()),e.OTEL_TRACES_SAMPLER){case _.J.AlwaysOn:return new x;case _.J.AlwaysOff:return new E;case _.J.ParentBasedAlwaysOn:return new T({root:new x});case _.J.ParentBasedAlwaysOff:return new T({root:new E});case _.J.TraceIdRatio:return new C(k(e));case _.J.ParentBasedTraceIdRatio:return new T({root:new C(k(e))});default:return a.K.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+I+'".'),new x}}function k(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return a.K.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+O+"."),O;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(a.K.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+O+"."),O):t<0||t>1?(a.K.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+O+"."),O):t}var N=n(450),D=function(){this.generateTraceId=M(16),this.generateSpanId=M(8)},L=Buffer.allocUnsafe(16);function M(e){return function(){for(var t=0;t>>0,4*t);for(t=0;t0);t++)t===e-1&&(L[e-1]=1);return L.toString("hex",0,e)}}var j,F,U=function(){function e(e,t,n){this._tracerProvider=n;var r,i,o,a,s=(r=t,i={sampler:R()},o=P(),(a=Object.assign({},o,i,r)).generalLimits=Object.assign({},o.generalLimits,r.generalLimits||{}),a.spanLimits=Object.assign({},o.spanLimits,r.spanLimits||{}),a);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=t.idGenerator||new D,this.resource=n.resource,this.instrumentationLibrary=e}return e.prototype.startSpan=function(e,t,n){var r,f,h;void 0===t&&(t={}),void 0===n&&(n=i.D.active()),t.root&&(n=o.g.deleteSpan(n));var m=o.g.getSpan(n);if((0,p.Ll)(n))return a.K.debug("Instrumentation suppressed, returning Noop Span"),o.g.wrapSpanContext(s.Rr);var v,g,b,_=null==m?void 0:m.spanContext(),E=this._idGenerator.generateSpanId();_&&o.g.isSpanContextValid(_)?(v=_.traceId,g=_.traceState,b=_.spanId):v=this._idGenerator.generateTraceId();var x=null!==(r=t.kind)&&void 0!==r?r:c.M.INTERNAL,S=(null!==(f=t.links)&&void 0!==f?f:[]).map((function(e){return{context:e.context,attributes:(0,d.FT)(e.attributes)}})),w=(0,d.FT)(t.attributes),T=this._sampler.shouldSample(n,v,e,x,w,S);g=null!==(h=T.traceState)&&void 0!==h?h:g;var C={traceId:v,spanId:E,traceFlags:T.decision===u.U.RECORD_AND_SAMPLED?l.r.SAMPLED:l.r.NONE,traceState:g};if(T.decision===u.U.NOT_RECORD)return a.K.debug("Recording is off, propagating context in a non-recording span"),o.g.wrapSpanContext(C);var A=new y(this,n,e,C,x,b,S,t.startTime),I=(0,d.FT)(Object.assign(w,T.attributes));return A.setAttributes(I),A},e.prototype.startActiveSpan=function(e,t,n,r){var a,s,c;if(!(arguments.length<2)){2===arguments.length?c=t:3===arguments.length?(a=t,c=n):(a=t,s=n,c=r);var u=null!=s?s:i.D.active(),l=this.startSpan(e,a,u),p=o.g.setSpan(u,l);return i.D.with(p,c,void 0,l)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}(),B=n(8303),q=n(9009),H=n(3135),V=n(9588),G=n(926),z=n(5364),$=n(3290),W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(e,2),o=i[0],a=i[1];return W(W(W(W({},r._syncAttributes),o),null!==(n=t._syncAttributes)&&void 0!==n?n:t.attributes),a)}));return new e(i,o)},e.EMPTY=new e({}),e}(),Y=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},X=function(){function e(e){this._spanProcessors=e}return e.prototype.forceFlush=function(){var e,t,n=[];try{for(var r=Y(this._spanProcessors),i=r.next();!i.done;i=r.next()){var o=i.value;n.push(o.forceFlush())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return new Promise((function(e){Promise.all(n).then((function(){e()})).catch((function(t){(0,w.L)(t||new Error("MultiSpanProcessor: forceFlush failed")),e()}))}))},e.prototype.onStart=function(e,t){var n,r;try{for(var i=Y(this._spanProcessors),o=i.next();!o.done;o=i.next())o.value.onStart(e,t)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(e){var t,n;try{for(var r=Y(this._spanProcessors),i=r.next();!i.done;i=r.next())i.value.onEnd(e)}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.shutdown=function(){var e,t,n=[];try{for(var r=Y(this._spanProcessors),i=r.next();!i.done;i=r.next()){var o=i.value;n.push(o.shutdown())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return new Promise((function(e,t){Promise.all(n).then((function(){e()}),t)}))},e}(),J=function(){function e(){}return e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}(),Q=n(1399),Z=n(3420),ee=n(2140),te=function(){function e(e,t){this._exporter=e,this._finishedSpans=[],this._droppedSpansCount=0;var n=(0,b.d)();this._maxExportBatchSize="number"==typeof(null==t?void 0:t.maxExportBatchSize)?t.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==t?void 0:t.maxQueueSize)?t.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==t?void 0:t.scheduledDelayMillis)?t.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==t?void 0:t.exportTimeoutMillis)?t.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new Q.q(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(a.K.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){this._shutdownOnce.isCalled||0!=(e.spanContext().traceFlags&l.r.SAMPLED)&&this._addToBuffer(e)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var e=this;return Promise.resolve().then((function(){return e.onShutdown()})).then((function(){return e._flushAll()})).then((function(){return e._exporter.shutdown()}))},e.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&a.K.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(a.K.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},e.prototype._flushAll=function(){var e=this;return new Promise((function(t,n){for(var r=[],i=0,o=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize);i0&&(e._clearTimer(),e._maybeStartTimer())})).catch((function(e){(0,w.L)(e)}))}),this._scheduledDelayMillis),(0,ee.g)(this._timer))},e.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},e}(),ne=(j=function(e,t){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},j(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),t.prototype.onShutdown=function(){},t}(te);!function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"}(F||(F={}));var ie=function(){function e(e){var t;void 0===e&&(e={}),this._registeredSpanProcessors=[],this._tracers=new Map;var n=(0,q.T)({},P(),function(e){var t,n,r,i,o,a,s,c,u,l,p,d,f=Object.assign({},e.spanLimits),h=(0,N.vU)();return f.attributeCountLimit=null!==(a=null!==(o=null!==(i=null!==(n=null===(t=e.spanLimits)||void 0===t?void 0:t.attributeCountLimit)&&void 0!==n?n:null===(r=e.generalLimits)||void 0===r?void 0:r.attributeCountLimit)&&void 0!==i?i:h.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)&&void 0!==o?o:h.OTEL_ATTRIBUTE_COUNT_LIMIT)&&void 0!==a?a:N.qG,f.attributeValueLengthLimit=null!==(d=null!==(p=null!==(l=null!==(c=null===(s=e.spanLimits)||void 0===s?void 0:s.attributeValueLengthLimit)&&void 0!==c?c:null===(u=e.generalLimits)||void 0===u?void 0:u.attributeValueLengthLimit)&&void 0!==l?l:h.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==p?p:h.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==d?d:N.KR,Object.assign({},e,{spanLimits:f})}(e));this.resource=null!==(t=n.resource)&&void 0!==t?t:K.empty(),this.resource=K.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var r=this._buildExporterFromEnv();if(void 0!==r){var i=new re(r);this.activeSpanProcessor=i}else this.activeSpanProcessor=new J}return e.prototype.getTracer=function(e,t,n){var r=e+"@"+(t||"")+":"+((null==n?void 0:n.schemaUrl)||"");return this._tracers.has(r)||this._tracers.set(r,new U({name:e,version:t,schemaUrl:null==n?void 0:n.schemaUrl},this._config,this)),this._tracers.get(r)},e.prototype.addSpanProcessor=function(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch((function(e){return a.K.error("Error while trying to shutdown current span processor",e)})),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new X(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(e){void 0===e&&(e={}),o.g.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&i.D.setGlobalContextManager(e.contextManager),e.propagator&&B.u.setGlobalPropagator(e.propagator)},e.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map((function(t){return new Promise((function(n){var r,i=setTimeout((function(){n(new Error("Span processor did not completed within timeout period of "+e+" ms")),r=F.timeout}),e);t.forceFlush().then((function(){clearTimeout(i),r!==F.timeout&&(r=F.resolved,n(r))})).catch((function(e){clearTimeout(i),r=F.error,n(e)}))}))}));return new Promise((function(e,n){Promise.all(t).then((function(t){var r=t.filter((function(e){return e!==F.resolved}));r.length>0?n(r):e()})).catch((function(e){return n([e])}))}))},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(e){var t;return null===(t=this.constructor._registeredPropagators.get(e))||void 0===t?void 0:t()},e.prototype._getSpanExporter=function(e){var t;return null===(t=this.constructor._registeredExporters.get(e))||void 0===t?void 0:t()},e.prototype._buildPropagatorFromEnv=function(){var e=this,t=Array.from(new Set((0,b.d)().OTEL_PROPAGATORS)),n=t.map((function(t){var n=e._getPropagator(t);return n||a.K.warn('Propagator "'+t+'" requested through environment variable is unavailable.'),n})).reduce((function(e,t){return t&&e.push(t),e}),[]);return 0===n.length?void 0:1===t.length?n[0]:new H.Y({propagators:n})},e.prototype._buildExporterFromEnv=function(){var e=(0,b.d)().OTEL_TRACES_EXPORTER;if("none"!==e&&""!==e){var t=this._getSpanExporter(e);return t||a.K.error('Exporter "'+e+'" requested through environment variable is unavailable.'),t}},e._registeredPropagators=new Map([["tracecontext",function(){return new V.jf}],["baggage",function(){return new G.a}]]),e._registeredExporters=new Map,e}(),oe=function(){function e(){}return e.prototype.export=function(e,t){return this._sendSpans(e,t)},e.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},e.prototype.forceFlush=function(){return Promise.resolve()},e.prototype._exportInfo=function(e){var t;return{traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:null===(t=e.spanContext().traceState)||void 0===t?void 0:t.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:(0,m.ji)(e.startTime),duration:(0,m.ji)(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}},e.prototype._sendSpans=function(e,t){var n,r;try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),o=i.next();!o.done;o=i.next()){var a=o.value;console.dir(this._exportInfo(a),{depth:3})}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}if(t)return t({code:Z.I.SUCCESS})},e}(),ae=function(){function e(){this._finishedSpans=[],this._stopped=!1}return e.prototype.export=function(e,t){var n;if(this._stopped)return t({code:Z.I.FAILED,error:new Error("Exporter has been stopped")});(n=this._finishedSpans).push.apply(n,function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(e),!1)),setTimeout((function(){return t({code:Z.I.SUCCESS})}),0)},e.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()},e.prototype.forceFlush=function(){return Promise.resolve()},e.prototype.reset=function(){this._finishedSpans=[]},e.prototype.getFinishedSpans=function(){return this._finishedSpans},e}(),se=n(7593),ce=function(){function e(e){this._exporter=e,this._shutdownOnce=new Q.q(this._shutdown,this),this._unresolvedExports=new Set}return e.prototype.forceFlush=function(){return e=this,t=void 0,r=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";n.r(t),n.d(t,{AwsEcsLaunchtypeValues:()=>i._t,CloudPlatformValues:()=>i.CY,CloudProviderValues:()=>i.LH,DbCassandraConsistencyLevelValues:()=>r.xM,DbSystemValues:()=>r.fL,FaasDocumentOperationValues:()=>r.ZI,FaasInvokedProviderValues:()=>r.o0,FaasTriggerValues:()=>r.iD,HostArchValues:()=>i.IV,HttpFlavorValues:()=>r.Yi,MessageTypeValues:()=>r._J,MessagingDestinationKindValues:()=>r.y8,MessagingOperationValues:()=>r.jU,NetHostConnectionSubtypeValues:()=>r.oP,NetHostConnectionTypeValues:()=>r.ZM,NetTransportValues:()=>r.Di,OsTypeValues:()=>i.er,RpcGrpcStatusCodeValues:()=>r.yG,SemanticAttributes:()=>r.og,SemanticResourceAttributes:()=>i.R9,TelemetrySdkLanguageValues:()=>i.Te});var r=n(3108),i=n(5364)},5364:(e,t,n)=>{"use strict";n.d(t,{CY:()=>o,IV:()=>s,LH:()=>i,R9:()=>r,Te:()=>u,_t:()=>a,er:()=>c});var r={CLOUD_PROVIDER:"cloud.provider",CLOUD_ACCOUNT_ID:"cloud.account.id",CLOUD_REGION:"cloud.region",CLOUD_AVAILABILITY_ZONE:"cloud.availability_zone",CLOUD_PLATFORM:"cloud.platform",AWS_ECS_CONTAINER_ARN:"aws.ecs.container.arn",AWS_ECS_CLUSTER_ARN:"aws.ecs.cluster.arn",AWS_ECS_LAUNCHTYPE:"aws.ecs.launchtype",AWS_ECS_TASK_ARN:"aws.ecs.task.arn",AWS_ECS_TASK_FAMILY:"aws.ecs.task.family",AWS_ECS_TASK_REVISION:"aws.ecs.task.revision",AWS_EKS_CLUSTER_ARN:"aws.eks.cluster.arn",AWS_LOG_GROUP_NAMES:"aws.log.group.names",AWS_LOG_GROUP_ARNS:"aws.log.group.arns",AWS_LOG_STREAM_NAMES:"aws.log.stream.names",AWS_LOG_STREAM_ARNS:"aws.log.stream.arns",CONTAINER_NAME:"container.name",CONTAINER_ID:"container.id",CONTAINER_RUNTIME:"container.runtime",CONTAINER_IMAGE_NAME:"container.image.name",CONTAINER_IMAGE_TAG:"container.image.tag",DEPLOYMENT_ENVIRONMENT:"deployment.environment",DEVICE_ID:"device.id",DEVICE_MODEL_IDENTIFIER:"device.model.identifier",DEVICE_MODEL_NAME:"device.model.name",FAAS_NAME:"faas.name",FAAS_ID:"faas.id",FAAS_VERSION:"faas.version",FAAS_INSTANCE:"faas.instance",FAAS_MAX_MEMORY:"faas.max_memory",HOST_ID:"host.id",HOST_NAME:"host.name",HOST_TYPE:"host.type",HOST_ARCH:"host.arch",HOST_IMAGE_NAME:"host.image.name",HOST_IMAGE_ID:"host.image.id",HOST_IMAGE_VERSION:"host.image.version",K8S_CLUSTER_NAME:"k8s.cluster.name",K8S_NODE_NAME:"k8s.node.name",K8S_NODE_UID:"k8s.node.uid",K8S_NAMESPACE_NAME:"k8s.namespace.name",K8S_POD_UID:"k8s.pod.uid",K8S_POD_NAME:"k8s.pod.name",K8S_CONTAINER_NAME:"k8s.container.name",K8S_REPLICASET_UID:"k8s.replicaset.uid",K8S_REPLICASET_NAME:"k8s.replicaset.name",K8S_DEPLOYMENT_UID:"k8s.deployment.uid",K8S_DEPLOYMENT_NAME:"k8s.deployment.name",K8S_STATEFULSET_UID:"k8s.statefulset.uid",K8S_STATEFULSET_NAME:"k8s.statefulset.name",K8S_DAEMONSET_UID:"k8s.daemonset.uid",K8S_DAEMONSET_NAME:"k8s.daemonset.name",K8S_JOB_UID:"k8s.job.uid",K8S_JOB_NAME:"k8s.job.name",K8S_CRONJOB_UID:"k8s.cronjob.uid",K8S_CRONJOB_NAME:"k8s.cronjob.name",OS_TYPE:"os.type",OS_DESCRIPTION:"os.description",OS_NAME:"os.name",OS_VERSION:"os.version",PROCESS_PID:"process.pid",PROCESS_EXECUTABLE_NAME:"process.executable.name",PROCESS_EXECUTABLE_PATH:"process.executable.path",PROCESS_COMMAND:"process.command",PROCESS_COMMAND_LINE:"process.command_line",PROCESS_COMMAND_ARGS:"process.command_args",PROCESS_OWNER:"process.owner",PROCESS_RUNTIME_NAME:"process.runtime.name",PROCESS_RUNTIME_VERSION:"process.runtime.version",PROCESS_RUNTIME_DESCRIPTION:"process.runtime.description",SERVICE_NAME:"service.name",SERVICE_NAMESPACE:"service.namespace",SERVICE_INSTANCE_ID:"service.instance.id",SERVICE_VERSION:"service.version",TELEMETRY_SDK_NAME:"telemetry.sdk.name",TELEMETRY_SDK_LANGUAGE:"telemetry.sdk.language",TELEMETRY_SDK_VERSION:"telemetry.sdk.version",TELEMETRY_AUTO_VERSION:"telemetry.auto.version",WEBENGINE_NAME:"webengine.name",WEBENGINE_VERSION:"webengine.version",WEBENGINE_DESCRIPTION:"webengine.description"},i={ALIBABA_CLOUD:"alibaba_cloud",AWS:"aws",AZURE:"azure",GCP:"gcp"},o={ALIBABA_CLOUD_ECS:"alibaba_cloud_ecs",ALIBABA_CLOUD_FC:"alibaba_cloud_fc",AWS_EC2:"aws_ec2",AWS_ECS:"aws_ecs",AWS_EKS:"aws_eks",AWS_LAMBDA:"aws_lambda",AWS_ELASTIC_BEANSTALK:"aws_elastic_beanstalk",AZURE_VM:"azure_vm",AZURE_CONTAINER_INSTANCES:"azure_container_instances",AZURE_AKS:"azure_aks",AZURE_FUNCTIONS:"azure_functions",AZURE_APP_SERVICE:"azure_app_service",GCP_COMPUTE_ENGINE:"gcp_compute_engine",GCP_CLOUD_RUN:"gcp_cloud_run",GCP_KUBERNETES_ENGINE:"gcp_kubernetes_engine",GCP_CLOUD_FUNCTIONS:"gcp_cloud_functions",GCP_APP_ENGINE:"gcp_app_engine"},a={EC2:"ec2",FARGATE:"fargate"},s={AMD64:"amd64",ARM32:"arm32",ARM64:"arm64",IA64:"ia64",PPC32:"ppc32",PPC64:"ppc64",X86:"x86"},c={WINDOWS:"windows",LINUX:"linux",DARWIN:"darwin",FREEBSD:"freebsd",NETBSD:"netbsd",OPENBSD:"openbsd",DRAGONFLYBSD:"dragonflybsd",HPUX:"hpux",AIX:"aix",SOLARIS:"solaris",Z_OS:"z_os"},u={CPP:"cpp",DOTNET:"dotnet",ERLANG:"erlang",GO:"go",JAVA:"java",NODEJS:"nodejs",PHP:"php",PYTHON:"python",RUBY:"ruby",WEBJS:"webjs"}},3108:(e,t,n)=>{"use strict";n.d(t,{Di:()=>u,Yi:()=>d,ZI:()=>s,ZM:()=>l,_J:()=>v,fL:()=>i,iD:()=>a,jU:()=>h,o0:()=>c,oP:()=>p,og:()=>r,xM:()=>o,y8:()=>f,yG:()=>m});var r={AWS_LAMBDA_INVOKED_ARN:"aws.lambda.invoked_arn",DB_SYSTEM:"db.system",DB_CONNECTION_STRING:"db.connection_string",DB_USER:"db.user",DB_JDBC_DRIVER_CLASSNAME:"db.jdbc.driver_classname",DB_NAME:"db.name",DB_STATEMENT:"db.statement",DB_OPERATION:"db.operation",DB_MSSQL_INSTANCE_NAME:"db.mssql.instance_name",DB_CASSANDRA_KEYSPACE:"db.cassandra.keyspace",DB_CASSANDRA_PAGE_SIZE:"db.cassandra.page_size",DB_CASSANDRA_CONSISTENCY_LEVEL:"db.cassandra.consistency_level",DB_CASSANDRA_TABLE:"db.cassandra.table",DB_CASSANDRA_IDEMPOTENCE:"db.cassandra.idempotence",DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:"db.cassandra.speculative_execution_count",DB_CASSANDRA_COORDINATOR_ID:"db.cassandra.coordinator.id",DB_CASSANDRA_COORDINATOR_DC:"db.cassandra.coordinator.dc",DB_HBASE_NAMESPACE:"db.hbase.namespace",DB_REDIS_DATABASE_INDEX:"db.redis.database_index",DB_MONGODB_COLLECTION:"db.mongodb.collection",DB_SQL_TABLE:"db.sql.table",EXCEPTION_TYPE:"exception.type",EXCEPTION_MESSAGE:"exception.message",EXCEPTION_STACKTRACE:"exception.stacktrace",EXCEPTION_ESCAPED:"exception.escaped",FAAS_TRIGGER:"faas.trigger",FAAS_EXECUTION:"faas.execution",FAAS_DOCUMENT_COLLECTION:"faas.document.collection",FAAS_DOCUMENT_OPERATION:"faas.document.operation",FAAS_DOCUMENT_TIME:"faas.document.time",FAAS_DOCUMENT_NAME:"faas.document.name",FAAS_TIME:"faas.time",FAAS_CRON:"faas.cron",FAAS_COLDSTART:"faas.coldstart",FAAS_INVOKED_NAME:"faas.invoked_name",FAAS_INVOKED_PROVIDER:"faas.invoked_provider",FAAS_INVOKED_REGION:"faas.invoked_region",NET_TRANSPORT:"net.transport",NET_PEER_IP:"net.peer.ip",NET_PEER_PORT:"net.peer.port",NET_PEER_NAME:"net.peer.name",NET_HOST_IP:"net.host.ip",NET_HOST_PORT:"net.host.port",NET_HOST_NAME:"net.host.name",NET_HOST_CONNECTION_TYPE:"net.host.connection.type",NET_HOST_CONNECTION_SUBTYPE:"net.host.connection.subtype",NET_HOST_CARRIER_NAME:"net.host.carrier.name",NET_HOST_CARRIER_MCC:"net.host.carrier.mcc",NET_HOST_CARRIER_MNC:"net.host.carrier.mnc",NET_HOST_CARRIER_ICC:"net.host.carrier.icc",PEER_SERVICE:"peer.service",ENDUSER_ID:"enduser.id",ENDUSER_ROLE:"enduser.role",ENDUSER_SCOPE:"enduser.scope",THREAD_ID:"thread.id",THREAD_NAME:"thread.name",CODE_FUNCTION:"code.function",CODE_NAMESPACE:"code.namespace",CODE_FILEPATH:"code.filepath",CODE_LINENO:"code.lineno",HTTP_METHOD:"http.method",HTTP_URL:"http.url",HTTP_TARGET:"http.target",HTTP_HOST:"http.host",HTTP_SCHEME:"http.scheme",HTTP_STATUS_CODE:"http.status_code",HTTP_FLAVOR:"http.flavor",HTTP_USER_AGENT:"http.user_agent",HTTP_REQUEST_CONTENT_LENGTH:"http.request_content_length",HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:"http.request_content_length_uncompressed",HTTP_RESPONSE_CONTENT_LENGTH:"http.response_content_length",HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:"http.response_content_length_uncompressed",HTTP_SERVER_NAME:"http.server_name",HTTP_ROUTE:"http.route",HTTP_CLIENT_IP:"http.client_ip",AWS_DYNAMODB_TABLE_NAMES:"aws.dynamodb.table_names",AWS_DYNAMODB_CONSUMED_CAPACITY:"aws.dynamodb.consumed_capacity",AWS_DYNAMODB_ITEM_COLLECTION_METRICS:"aws.dynamodb.item_collection_metrics",AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:"aws.dynamodb.provisioned_read_capacity",AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:"aws.dynamodb.provisioned_write_capacity",AWS_DYNAMODB_CONSISTENT_READ:"aws.dynamodb.consistent_read",AWS_DYNAMODB_PROJECTION:"aws.dynamodb.projection",AWS_DYNAMODB_LIMIT:"aws.dynamodb.limit",AWS_DYNAMODB_ATTRIBUTES_TO_GET:"aws.dynamodb.attributes_to_get",AWS_DYNAMODB_INDEX_NAME:"aws.dynamodb.index_name",AWS_DYNAMODB_SELECT:"aws.dynamodb.select",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:"aws.dynamodb.global_secondary_indexes",AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:"aws.dynamodb.local_secondary_indexes",AWS_DYNAMODB_EXCLUSIVE_START_TABLE:"aws.dynamodb.exclusive_start_table",AWS_DYNAMODB_TABLE_COUNT:"aws.dynamodb.table_count",AWS_DYNAMODB_SCAN_FORWARD:"aws.dynamodb.scan_forward",AWS_DYNAMODB_SEGMENT:"aws.dynamodb.segment",AWS_DYNAMODB_TOTAL_SEGMENTS:"aws.dynamodb.total_segments",AWS_DYNAMODB_COUNT:"aws.dynamodb.count",AWS_DYNAMODB_SCANNED_COUNT:"aws.dynamodb.scanned_count",AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:"aws.dynamodb.attribute_definitions",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:"aws.dynamodb.global_secondary_index_updates",MESSAGING_SYSTEM:"messaging.system",MESSAGING_DESTINATION:"messaging.destination",MESSAGING_DESTINATION_KIND:"messaging.destination_kind",MESSAGING_TEMP_DESTINATION:"messaging.temp_destination",MESSAGING_PROTOCOL:"messaging.protocol",MESSAGING_PROTOCOL_VERSION:"messaging.protocol_version",MESSAGING_URL:"messaging.url",MESSAGING_MESSAGE_ID:"messaging.message_id",MESSAGING_CONVERSATION_ID:"messaging.conversation_id",MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:"messaging.message_payload_size_bytes",MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:"messaging.message_payload_compressed_size_bytes",MESSAGING_OPERATION:"messaging.operation",MESSAGING_CONSUMER_ID:"messaging.consumer_id",MESSAGING_RABBITMQ_ROUTING_KEY:"messaging.rabbitmq.routing_key",MESSAGING_KAFKA_MESSAGE_KEY:"messaging.kafka.message_key",MESSAGING_KAFKA_CONSUMER_GROUP:"messaging.kafka.consumer_group",MESSAGING_KAFKA_CLIENT_ID:"messaging.kafka.client_id",MESSAGING_KAFKA_PARTITION:"messaging.kafka.partition",MESSAGING_KAFKA_TOMBSTONE:"messaging.kafka.tombstone",RPC_SYSTEM:"rpc.system",RPC_SERVICE:"rpc.service",RPC_METHOD:"rpc.method",RPC_GRPC_STATUS_CODE:"rpc.grpc.status_code",RPC_JSONRPC_VERSION:"rpc.jsonrpc.version",RPC_JSONRPC_REQUEST_ID:"rpc.jsonrpc.request_id",RPC_JSONRPC_ERROR_CODE:"rpc.jsonrpc.error_code",RPC_JSONRPC_ERROR_MESSAGE:"rpc.jsonrpc.error_message",MESSAGE_TYPE:"message.type",MESSAGE_ID:"message.id",MESSAGE_COMPRESSED_SIZE:"message.compressed_size",MESSAGE_UNCOMPRESSED_SIZE:"message.uncompressed_size"},i={OTHER_SQL:"other_sql",MSSQL:"mssql",MYSQL:"mysql",ORACLE:"oracle",DB2:"db2",POSTGRESQL:"postgresql",REDSHIFT:"redshift",HIVE:"hive",CLOUDSCAPE:"cloudscape",HSQLDB:"hsqldb",PROGRESS:"progress",MAXDB:"maxdb",HANADB:"hanadb",INGRES:"ingres",FIRSTSQL:"firstsql",EDB:"edb",CACHE:"cache",ADABAS:"adabas",FIREBIRD:"firebird",DERBY:"derby",FILEMAKER:"filemaker",INFORMIX:"informix",INSTANTDB:"instantdb",INTERBASE:"interbase",MARIADB:"mariadb",NETEZZA:"netezza",PERVASIVE:"pervasive",POINTBASE:"pointbase",SQLITE:"sqlite",SYBASE:"sybase",TERADATA:"teradata",VERTICA:"vertica",H2:"h2",COLDFUSION:"coldfusion",CASSANDRA:"cassandra",HBASE:"hbase",MONGODB:"mongodb",REDIS:"redis",COUCHBASE:"couchbase",COUCHDB:"couchdb",COSMOSDB:"cosmosdb",DYNAMODB:"dynamodb",NEO4J:"neo4j",GEODE:"geode",ELASTICSEARCH:"elasticsearch",MEMCACHED:"memcached",COCKROACHDB:"cockroachdb"},o={ALL:"all",EACH_QUORUM:"each_quorum",QUORUM:"quorum",LOCAL_QUORUM:"local_quorum",ONE:"one",TWO:"two",THREE:"three",LOCAL_ONE:"local_one",ANY:"any",SERIAL:"serial",LOCAL_SERIAL:"local_serial"},a={DATASOURCE:"datasource",HTTP:"http",PUBSUB:"pubsub",TIMER:"timer",OTHER:"other"},s={INSERT:"insert",EDIT:"edit",DELETE:"delete"},c={ALIBABA_CLOUD:"alibaba_cloud",AWS:"aws",AZURE:"azure",GCP:"gcp"},u={IP_TCP:"ip_tcp",IP_UDP:"ip_udp",IP:"ip",UNIX:"unix",PIPE:"pipe",INPROC:"inproc",OTHER:"other"},l={WIFI:"wifi",WIRED:"wired",CELL:"cell",UNAVAILABLE:"unavailable",UNKNOWN:"unknown"},p={GPRS:"gprs",EDGE:"edge",UMTS:"umts",CDMA:"cdma",EVDO_0:"evdo_0",EVDO_A:"evdo_a",CDMA2000_1XRTT:"cdma2000_1xrtt",HSDPA:"hsdpa",HSUPA:"hsupa",HSPA:"hspa",IDEN:"iden",EVDO_B:"evdo_b",LTE:"lte",EHRPD:"ehrpd",HSPAP:"hspap",GSM:"gsm",TD_SCDMA:"td_scdma",IWLAN:"iwlan",NR:"nr",NRNSA:"nrnsa",LTE_CA:"lte_ca"},d={HTTP_1_0:"1.0",HTTP_1_1:"1.1",HTTP_2_0:"2.0",SPDY:"SPDY",QUIC:"QUIC"},f={QUEUE:"queue",TOPIC:"topic"},h={RECEIVE:"receive",PROCESS:"process"},m={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15,UNAUTHENTICATED:16},v={SENT:"SENT",RECEIVED:"RECEIVED"}},725:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.oneDataSystemClientFactory=void 0,t.oneDataSystemClientFactory=async(e,t,r)=>{let i=await(async(e,t,r)=>{const i=await Promise.resolve().then((()=>o(n(7164)))),a=await Promise.resolve().then((()=>o(n(1488)))),s=new i.AppInsightsCore,c=new a.PostChannel,u={instrumentationKey:e,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[c]]};if(r){u.extensionConfig={};const e={alwaysUseXhrOverride:!0,httpXHROverride:r};u.extensionConfig[c.identifier]=e}const l=t.workspace.getConfiguration("telemetry").get("internalTesting");return s.initialize(u,[]),s.addTelemetryInitializer((e=>{l&&(e.ext=e.ext??{},e.ext.utc=e.ext.utc??{},e.ext.utc.flags=8462029)})),s})(e,t,r);return{logEvent:(e,t)=>{try{i?.track({name:e,baseData:{name:e,properties:t?.properties,measurements:t?.measurements}})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},flush:async()=>{try{return new Promise(((e,t)=>{i?i.flush(!0,(e=>{e||t("Failed to flush app 1DS!")})):e()}))}catch(e){throw new Error("Failed to flush 1DS!\n"+e.message)}},dispose:async()=>new Promise((e=>{i?i.unload(!1,(()=>{e(),i=void 0}),1e3):e()}))}}},3456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTelemetryReporter=void 0,t.BaseTelemetryReporter=class{constructor(e,t,n){this.telemetrySender=e,this.vscodeAPI=t,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this._onDidChangeTelemetryLevel=new this.vscodeAPI.EventEmitter,this.onDidChangeTelemetryLevel=this._onDidChangeTelemetryLevel.event,this.telemetryLogger=this.vscodeAPI.env.createTelemetryLogger(this.telemetrySender,n),this.updateUserOptIn(),this.telemetryLogger.onDidChangeEnableStates((()=>{this.updateUserOptIn()}))}updateUserOptIn(){this.errorOptIn=this.telemetryLogger.isErrorsEnabled,this.userOptIn=this.telemetryLogger.isUsageEnabled,(this.telemetryLogger.isErrorsEnabled||this.telemetryLogger.isUsageEnabled)&&this.telemetrySender.instantiateSender(),this._onDidChangeTelemetryLevel.fire(this.telemetryLevel)}get telemetryLevel(){return this.errorOptIn&&this.userOptIn?"all":this.errorOptIn?"error":"off"}internalSendTelemetryEvent(e,t,n,r){r?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logUsage(e,{properties:t,measurements:n})}sendTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!1)}sendRawTelemetryEvent(e,t,n){const r={...t};for(const e of Object.keys(r??{})){const t=r[e];"string"==typeof e&&void 0!==t&&(r[e]=new this.vscodeAPI.TelemetryTrustedValue("string"==typeof t?t:t.value))}this.sendTelemetryEvent(e,r,n)}sendDangerousTelemetryEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryEvent(e,t,n,!0)}internalSendTelemetryErrorEvent(e,t,n,r){r?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logError(e,{properties:t,measurements:n})}sendTelemetryErrorEvent(e,t,n){this.internalSendTelemetryErrorEvent(e,t,n,!1)}sendDangerousTelemetryErrorEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryErrorEvent(e,t,n,!0)}async dispose(){return await this.telemetrySender.dispose(),this.telemetryLogger.dispose(),Promise.all(this.disposables.map((e=>e.dispose())))}}},2015:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTelemetrySender=void 0,function(e){e[e.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",e[e.INSTANTIATING=1]="INSTANTIATING",e[e.INSTANTIATED=2]="INSTANTIATED"}(n||(n={})),t.BaseTelemetrySender=class{constructor(e,t){this._instantiationStatus=n.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}sendEventData(e,t){this._telemetryClient?this._telemetryClient.logEvent(e,t):this._instantiationStatus!==n.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t})}sendErrorData(e,t){if(!this._telemetryClient)return void(this._instantiationStatus!==n.INSTANTIATED&&this._exceptionQueue.push({exception:e,data:t}));const r={stack:e.stack,message:e.message,name:e.name};t?t.properties={...t.properties,...r}:t={properties:r},this._telemetryClient.logEvent("unhandlederror",t)}async flush(){return this._telemetryClient?.flush()}async dispose(){this._telemetryClient&&(await this._telemetryClient.dispose(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach((({eventName:e,data:t})=>this.sendEventData(e,t))),this._eventQueue=[],this._exceptionQueue.forEach((({exception:e,data:t})=>this.sendErrorData(e,t))),this._exceptionQueue=[]}instantiateSender(){this._instantiationStatus===n.NOT_INSTANTIATED&&(this._instantiationStatus=n.INSTANTIATING,this._clientFactory(this._key).then((e=>{this._telemetryClient=e,this._instantiationStatus=n.INSTANTIATED,this._flushQueues()})).catch((e=>{console.error(e),this._instantiationStatus=n.INSTANTIATED})))}}},5888:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryUtil=void 0;class n{static applyReplacements(e,t){for(const n of Object.keys(e))for(const r of t)r.lookup.test(n)&&(void 0!==r.replacementString?e[n]=r.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return 74===e.length&&"-"===e[32]&&"-"===e[41]&&"-"===e[46]&&"-"===e[51]&&"-"===e[56]&&"-"===e[69]}static getAdditionalCommonProperties(e){return{"common.os":e.platform,"common.nodeArch":e.architecture,"common.platformversion":(e.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),"common.telemetryclientversion":"0.8.5"}}static getInstance(){return n._instance||(n._instance=new n),n._instance}}t.TelemetryUtil=n},2291:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const a=o(n(2037)),s=o(n(9496)),c=o(n(5687)),u=n(3456),l=n(2015),p=n(5888),d=n(725);class f extends u.BaseTelemetryReporter{constructor(e,t){let r=e=>(async(e,t)=>{let r;try{process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL="1";const t=await Promise.resolve().then((()=>o(n(9574))));t.defaultClient?(r=new t.TelemetryClient(e),r.channel.setUseDiskRetryCaching(!0)):(t.setup(e).setAutoCollectRequests(!1).setAutoCollectPerformance(!1).setAutoCollectExceptions(!1).setAutoCollectDependencies(!1).setAutoDependencyCorrelation(!1).setAutoCollectConsole(!1).setAutoCollectHeartbeat(!1).setAutoCollectIncomingRequestAzureFunctions(!1).setUseDiskRetryCaching(!0).start(),r=t.defaultClient),s&&s.env&&(r.context.tags[r.context.keys.userId]=s.env.machineId,r.context.tags[r.context.keys.sessionId]=s.env.sessionId,r.context.tags[r.context.keys.cloudRole]=s.env.appName,r.context.tags[r.context.keys.cloudRoleInstance]=s.env.appName)}catch(e){return Promise.reject("Failed to initialize app insights!\n"+e.message)}return t?.length&&function(e,t){e.addTelemetryProcessor((e=>(Array.isArray(e.tags)?e.tags.forEach((e=>p.TelemetryUtil.applyReplacements(e,t))):e.tags&&p.TelemetryUtil.applyReplacements(e.tags,t),e.data.baseData&&p.TelemetryUtil.applyReplacements(e.data.baseData,t),!0)))}(r,t),{logEvent:(e,t)=>{try{r?.trackEvent({name:e,properties:t?.properties,measurements:t?.measurements})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},flush:async()=>{try{r?.flush()}catch(e){throw new Error("Failed to flush app insights!\n"+e.message)}},dispose:async()=>{r?.flush({isAppCrashing:!0}),r=void 0}}})(e,t);p.TelemetryUtil.shouldUseOneDataSystemSDK(e)&&(r=e=>(0,d.oneDataSystemClientFactory)(e,s,{sendPOST:(e,t)=>{const n={method:"POST",headers:{...e.headers,"Content-Type":"application/json","Content-Length":Buffer.byteLength(e.data)}};try{const r=c.request(e.urlString,n,(e=>{e.on("data",(function(n){t(e.statusCode??200,e.headers,n.toString())})),e.on("error",(function(){t(0,{})}))}));r.write(e.data,(e=>{e&&t(0,{})})),r.end()}catch{t(0,{})}}}));const i={release:a.release(),platform:a.platform(),architecture:a.arch()},u=new l.BaseTelemetrySender(e,r);if(e&&0===e.indexOf("AIF-"))throw new Error("AIF keys are no longer supported. Please switch to 1DS keys for 1st party extensions");super(u,s,{additionalCommonProperties:p.TelemetryUtil.getAdditionalCommonProperties(i)})}}t.default=f},4536:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PythonExtension=t.PVSC_EXTENSION_ID=void 0;const r=n(9496);t.PVSC_EXTENSION_ID="ms-python.python",(t.PythonExtension||(t.PythonExtension={})).api=async function(){const e=r.extensions.getExtension(t.PVSC_EXTENSION_ID);if(void 0===e)throw new Error("Python extension is not installed or is disabled");return e.isActive||await e.activate(),e.exports}},8054:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=n(2361),o=r(n(8104)),a=r(n(6304)),s=o.default("agent-base");function c(){const{stack:e}=new Error;return"string"==typeof e&&e.split("\n").some((e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:")))}function u(e,t){return new u.Agent(e,t)}!function(e){class t extends i.EventEmitter{constructor(e,t){super();let n=t;"function"==typeof e?this.callback=e:e&&(n=e),this.timeout=null,n&&"number"==typeof n.timeout&&(this.timeout=n.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return"number"==typeof this.explicitDefaultPort?this.explicitDefaultPort:c()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){return"string"==typeof this.explicitProtocol?this.explicitProtocol:c()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,n){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const n=Object.assign({},t);"boolean"!=typeof n.secureEndpoint&&(n.secureEndpoint=c()),null==n.host&&(n.host="localhost"),null==n.port&&(n.port=n.secureEndpoint?443:80),null==n.protocol&&(n.protocol=n.secureEndpoint?"https:":"http:"),n.host&&n.path&&delete n.path,delete n.agent,delete n.hostname,delete n._defaultAgent,delete n.defaultPort,delete n.createConnection,e._last=!0,e.shouldKeepAlive=!1;let r=!1,i=null;const o=n.timeout||this.timeout,u=t=>{e._hadError||(e.emit("error",t),e._hadError=!0)},l=()=>{i=null,r=!0;const e=new Error(`A "socket" was not created for HTTP request before ${o}ms`);e.code="ETIMEOUT",u(e)},p=e=>{r||(null!==i&&(clearTimeout(i),i=null),u(e))},d=t=>{if(r)return;if(null!=i&&(clearTimeout(i),i=null),o=t,Boolean(o)&&"function"==typeof o.addRequest)return s("Callback returned another Agent instance %o",t.constructor.name),void t.addRequest(e,n);var o;if(t)return t.once("free",(()=>{this.freeSocket(t,n)})),void e.onSocket(t);const a=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);u(a)};if("function"==typeof this.callback){this.promisifiedCallback||(this.callback.length>=3?(s("Converting legacy callback function to promise"),this.promisifiedCallback=a.default(this.callback)):this.promisifiedCallback=this.callback),"number"==typeof o&&o>0&&(i=setTimeout(l,o)),"port"in n&&"number"!=typeof n.port&&(n.port=Number(n.port));try{s("Resolving socket for %o request: %o",n.protocol,`${e.method} ${e.path}`),Promise.resolve(this.promisifiedCallback(e,n)).then(d,p)}catch(e){Promise.reject(e).catch(p)}}else u(new Error("`callback` is not defined"))}freeSocket(e,t){s("Freeing socket %o %o",e.constructor.name,t),e.destroy()}destroy(){s("Destroying agent %o",this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype}(u||(u={})),e.exports=u},6304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){return new Promise(((r,i)=>{e.call(this,t,n,((e,t)=>{e?i(e):r(t)}))}))}}},699:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";var r=n(7396),i=function(){function e(t){if(e.INSTANCE)throw new Error("Console logging adapter tracking should be configured from the applicationInsights object");this._client=t,e.INSTANCE=this}return e.prototype.enable=function(e,t){r.IsInitialized&&(n(4309).wp(e&&t,this._client),n(5823).wp(e,this._client),n(454).wp(e,this._client))},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1,!1)},e._methodNames=["debug","info","log","warn","error"],e}();e.exports=i},894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorrelationContextManager=void 0;var r=n(5282),i=n(7396),o=n(8090),a=n(6333),s=n(6694),c=n(5740),u=function(){function e(){}return e.getCurrentContext=function(){if(!e.enabled)return null;var t=e.session.get(e.CONTEXT_NAME);return void 0===t?null:t},e.generateContextObject=function(e,t,n,r,i,o){return t=t||e,this.enabled?{operation:{name:n,id:e,parentId:t,traceparent:i,tracestate:o},customProperties:new l(r)}:null},e.spanToContextObject=function(t,n,r){var i=new o;return i.traceId=t.traceId,i.spanId=t.spanId,i.traceFlag=o.formatOpenTelemetryTraceFlags(t.traceFlags)||o.DEFAULT_TRACE_FLAG,i.parentId=n,e.generateContextObject(i.traceId,i.parentId,r,null,i)},e.runWithContext=function(t,n){var i;if(e.enabled)try{return e.session.bind(n,((i={})[e.CONTEXT_NAME]=t,i))()}catch(e){r.warn("Error binding to session context",c.dumpObj(e))}return n()},e.wrapEmitter=function(t){if(e.enabled)try{e.session.bindEmitter(t)}catch(e){r.warn("Error binding to session context",c.dumpObj(e))}},e.wrapCallback=function(t,n){var i;if(e.enabled)try{return e.session.bind(t,n?((i={})[e.CONTEXT_NAME]=n,i):void 0)}catch(e){r.warn("Error binding to session context",c.dumpObj(e))}return t},e.enable=function(t){this.enabled||(this.isNodeVersionCompatible()?(e.hasEverEnabled||(this.forceClsHooked=t,this.hasEverEnabled=!0,void 0===this.cls&&(!0===e.forceClsHooked||void 0===e.forceClsHooked&&e.shouldUseClsHooked()?this.cls=n(9562):this.cls=n(3057)),e.session=this.cls.createNamespace("AI-CLS-Session"),i.registerContextPreservation((function(t){try{return e.session.bind(t)}catch(e){r.warn("Error binding to session context",c.dumpObj(e))}}))),this.enabled=!0):this.enabled=!1)},e.startOperation=function(t,n){var i=t&&t.traceContext||null,c=t&&t.spanContext?t:null,u=t&&t.traceId?t:null,l=t&&t.headers;if(c)return this.spanToContextObject(c.spanContext(),c.parentSpanId,c.name);if(u)return this.spanToContextObject(u,"|"+u.traceId+"."+u.spanId+".","string"==typeof n?n:"");var p="string"==typeof n?n:"";if(i){var d=null,f=null;if(p=i.attributes.OperationName||p,n){var h=n;h.headers&&(h.headers.traceparent?d=new o(h.headers.traceparent):h.headers["request-id"]&&(d=new o(null,h.headers["request-id"])),h.headers.tracestate&&(f=new a(h.headers.tracestate)))}d||(d=new o(i.traceParent||i.traceparent)),f||(f=new a(i.traceState||i.tracestate));var m=void 0;return"object"==typeof n&&(m=(v=new s(n)).getCorrelationContextHeader(),p=v.getOperationName({})),e.generateContextObject(d.traceId,d.parentId,p,m,d,f)}if(l){d=new o(l.traceparent?l.traceparent.toString():null),f=new a(l.tracestate?l.tracestate.toString():null);var v=new s(t);return e.generateContextObject(d.traceId,d.parentId,v.getOperationName({}),v.getCorrelationContextHeader(),d,f)}return r.warn("startOperation was called with invalid arguments",arguments),null},e.disable=function(){this.enabled=!1},e.reset=function(){e.hasEverEnabled&&(e.session=null,e.session=this.cls.createNamespace("AI-CLS-Session"))},e.isNodeVersionCompatible=function(){var e=process.versions.node.split(".");return parseInt(e[0])>3||parseInt(e[0])>2&&parseInt(e[1])>2},e.shouldUseClsHooked=function(){var e=process.versions.node.split(".");return parseInt(e[0])>8||parseInt(e[0])>=8&&parseInt(e[1])>=2},e.canUseClsHooked=function(){var e=process.versions.node.split("."),t=parseInt(e[0])>8||parseInt(e[0])>=8&&parseInt(e[1])>=0,n=parseInt(e[0])<8||parseInt(e[0])<=8&&parseInt(e[1])<2,r=parseInt(e[0])>4||parseInt(e[0])>=4&&parseInt(e[1])>=7;return!(t&&n)&&r},e.enabled=!1,e.hasEverEnabled=!1,e.forceClsHooked=void 0,e.CONTEXT_NAME="ApplicationInsights-Context",e}();t.CorrelationContextManager=u;var l=function(){function e(e){this.props=[],this.addHeaderData(e)}return e.prototype.addHeaderData=function(e){var t=e?e.split(", "):[];this.props=t.map((function(e){var t=e.split("=");return{key:t[0],value:t[1]}})).concat(this.props)},e.prototype.serializeToHeader=function(){return this.props.map((function(e){return e.key+"="+e.value})).join(", ")},e.prototype.getProperty=function(e){for(var t=0;t0&&e.forEach((function(e){var n=e.name;if(void 0!==n){var r=e.value;switch(typeof r){case"function":case"object":break;case"string":t+=" "+n+': "'+r+'",\r\n';break;default:t+=" "+n+": "+r+",\r\n"}}}))}catch(e){this._isEnabled=!1,a.info("Parse client web instrumentation error. Web Instrumentation is disabled")}return t},e.prototype._initialize=function(){this._isInitialized=!0;var t=r.createServer,n=i.createServer,o=this._isEnabled;r.createServer=function(n){var r=n;return r&&(n=function(t,n){var i=n.write,c="GET"==t.method;n.write=function(t,r,u){try{if(o&&c){var l=s.getContentEncodingFromHeaders(n),p=void 0;if("string"==typeof r&&(p=r),null==l)e.INSTANCE.ValidateInjection(n,t)&&(arguments[0]=e.INSTANCE.InjectWebSnippet(n,t,void 0,p));else if(l.length){var d=l[0];arguments[0]=e.INSTANCE.InjectWebSnippet(n,t,d)}}}catch(e){a.warn("Inject snippet error: "+e)}return i.apply(n,arguments)};var u=n.end;return n.end=function(t,r,i){if(o&&c)try{if(o&&c){var l=s.getContentEncodingFromHeaders(n),p=void 0;if("string"==typeof r&&(p=r),null==l)e.INSTANCE.ValidateInjection(n,t)&&(arguments[0]=e.INSTANCE.InjectWebSnippet(n,t,void 0,p));else if(l.length){var d=l[0];arguments[0]=e.INSTANCE.InjectWebSnippet(n,t,d)}}}catch(e){a.warn("Inject snipet error: "+e)}return u.apply(n,arguments)},r(t,n)}),t(n)},i.createServer=function(t,r){var i=r;if(i)return r=function(t,n){var r="GET"==t.method,c=n.write,u=n.end;return n.write=function(t,i,u){try{if(o&&r){var l=s.getContentEncodingFromHeaders(n),p=void 0;if("string"==typeof i&&(p=i),null==l)e.INSTANCE.ValidateInjection(n,t)&&(arguments[0]=this.InjectWebSnippet(n,t,void 0,p));else if(l.length){var d=l[0];arguments[0]=e.INSTANCE.InjectWebSnippet(n,t,d)}}}catch(e){a.warn("Inject snippet error: "+e)}return c.apply(n,arguments)},n.end=function(t,i,c){try{if(o&&r){var l=s.getContentEncodingFromHeaders(n),p=void 0;if("string"==typeof i&&(p=i),null==l)e.INSTANCE.ValidateInjection(n,t)&&(arguments[0]=e.INSTANCE.InjectWebSnippet(n,t,void 0,p));else if(l.length){var d=l[0];arguments[0]=e.INSTANCE.InjectWebSnippet(n,t,d)}}}catch(e){a.warn("Inject snippet error: "+e)}return u.apply(n,arguments)},i(t,n)},n(t,r)}},e.prototype.ValidateInjection=function(t,n){try{if(!t||!n||200!=t.statusCode)return!1;if(!s.isContentTypeHeaderHtml(t))return!1;var r=n.slice().toString();if(r.indexOf("")>=0&&r.indexOf("")>=0&&r.indexOf(e._aiUrl)<0&&r.indexOf(e._aiDeprecatedUrl)<0)return!0}catch(e){a.info("validate injections error: "+e)}return!1},e.prototype.InjectWebSnippet=function(t,n,r,i){try{if(r)t.removeHeader("Content-Length"),n=this._getInjectedCompressBuffer(t,n,r),t.setHeader("Content-Length",n.length);else{var o=n.toString(),c=o.indexOf("");if(c<0)return n;var u=s.insertSnippetByIndex(c,o,e._snippet);if("string"==typeof n)t.removeHeader("Content-Length"),n=u,t.setHeader("Content-Length",Buffer.byteLength(n));else if(Buffer.isBuffer(n)){var l=i||"utf8";if(s.isBufferType(n,l)){t.removeHeader("Content-Length");var p=Buffer.from(u).toString(l);n=Buffer.from(p,l),t.setHeader("Content-Length",n.length)}}}}catch(e){a.warn("Failed to inject web snippet and change content-lenght headers. Exception:"+e)}return n},e.prototype._getInjectedCompressBuffer=function(e,t,n){try{switch(n){case s.contentEncodingMethod.GZIP:var r=o.gunzipSync(t);if(this.ValidateInjection(e,r)){var i=this.InjectWebSnippet(e,r);t=o.gzipSync(i)}break;case s.contentEncodingMethod.DEFLATE:var c=o.inflateSync(t);if(this.ValidateInjection(e,c)){var u=this.InjectWebSnippet(e,c);t=o.deflateSync(u)}break;case s.contentEncodingMethod.BR:var l=s.getBrotliDecompressSync(o),p=s.getBrotliCompressSync(o);if(l&&p){var d=l(t);this.ValidateInjection(e,d)&&(t=p(this.InjectWebSnippet(e,d)));break}}}catch(e){a.info("get web injection compress buffer error: "+e)}return t},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e}();e.exports=d},211:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spanToTelemetryContract=void 0;var r=n(7310),i=n(4284),o=n(7480),a=n(3580),s=n(211),c=n(5740);function u(e){if(e.attributes[o.SemanticAttributes.HTTP_METHOD]){var t=e.attributes[o.SemanticAttributes.HTTP_URL];if(t)return String(t);var n=e.attributes[o.SemanticAttributes.HTTP_SCHEME],r=e.attributes[o.SemanticAttributes.HTTP_TARGET];if(n&&r){var i=e.attributes[o.SemanticAttributes.HTTP_HOST];if(i)return n+"://"+i+r;var a=e.attributes[o.SemanticAttributes.NET_PEER_PORT];if(a){var s=e.attributes[o.SemanticAttributes.NET_PEER_NAME];if(s)return n+"://"+s+":"+a+r;var c=e.attributes[o.SemanticAttributes.NET_PEER_IP];if(c)return n+"://"+c+":"+a+r}}}return""}function l(e){var t=e.attributes[o.SemanticAttributes.PEER_SERVICE],n=e.attributes[o.SemanticAttributes.HTTP_HOST],r=e.attributes[o.SemanticAttributes.HTTP_URL],i=e.attributes[o.SemanticAttributes.NET_PEER_NAME],a=e.attributes[o.SemanticAttributes.NET_PEER_IP];return t?String(t):n?String(n):r?String(r):i?String(i):a?String(a):""}t.spanToTelemetryContract=function(e){var t;switch(e.kind){case i.SpanKind.CLIENT:case i.SpanKind.PRODUCER:case i.SpanKind.INTERNAL:t=function(e){var t={name:e.name,success:e.status.code!=i.SpanStatusCode.ERROR,resultCode:"0",duration:0,data:"",dependencyTypeName:""};e.kind===i.SpanKind.PRODUCER&&(t.dependencyTypeName=a.DependencyTypeName.QueueMessage),e.kind===i.SpanKind.INTERNAL&&e.parentSpanId&&(t.dependencyTypeName=a.DependencyTypeName.InProc);var n=e.attributes[o.SemanticAttributes.HTTP_METHOD],s=e.attributes[o.SemanticAttributes.DB_SYSTEM],c=e.attributes[o.SemanticAttributes.RPC_SYSTEM];if(n){t.dependencyTypeName=a.DependencyTypeName.Http;var p=e.attributes[o.SemanticAttributes.HTTP_URL];if(p){var d="";try{d=new r.URL(String(p)).pathname}catch(e){}t.name=n+" "+d}t.data=u(e);var f=e.attributes[o.SemanticAttributes.HTTP_STATUS_CODE];if(f&&(t.resultCode=String(f)),b=l(e)){try{var h=new RegExp(/(https?)(:\/\/.*)(:\d+)(\S*)/).exec(b);if(null!=h){var m=h[1],v=h[3];("https"==m&&":443"==v||"http"==m&&":80"==v)&&(b=h[1]+h[2]+h[4])}}catch(e){}t.target=""+b}}else if(s){String(s)===o.DbSystemValues.MYSQL?t.dependencyTypeName="mysql":String(s)===o.DbSystemValues.POSTGRESQL?t.dependencyTypeName="postgresql":String(s)===o.DbSystemValues.MONGODB?t.dependencyTypeName="mongodb":String(s)===o.DbSystemValues.REDIS?t.dependencyTypeName="redis":function(e){return e===o.DbSystemValues.DB2||e===o.DbSystemValues.DERBY||e===o.DbSystemValues.MARIADB||e===o.DbSystemValues.MSSQL||e===o.DbSystemValues.ORACLE||e===o.DbSystemValues.SQLITE||e===o.DbSystemValues.OTHER_SQL||e===o.DbSystemValues.HSQLDB||e===o.DbSystemValues.H2}(String(s))?t.dependencyTypeName="SQL":t.dependencyTypeName=String(s);var g=e.attributes[o.SemanticAttributes.DB_STATEMENT],y=e.attributes[o.SemanticAttributes.DB_OPERATION];g?t.data=String(g):y&&(t.data=String(y));var b=l(e),_=e.attributes[o.SemanticAttributes.DB_NAME];t.target=b?_?b+"|"+_:""+b:_?""+_:""+s}else if(c){t.dependencyTypeName=a.DependencyTypeName.Grpc;var E=e.attributes[o.SemanticAttributes.RPC_GRPC_STATUS_CODE];E&&(t.resultCode=String(E)),(b=l(e))?t.target=""+b:c&&(t.target=String(c))}return t}(e);break;case i.SpanKind.SERVER:case i.SpanKind.CONSUMER:t=function(e){var t={name:e.name,success:e.status.code!=i.SpanStatusCode.ERROR,resultCode:"0",duration:0,url:"",source:void 0},n=e.attributes[o.SemanticAttributes.HTTP_METHOD],a=e.attributes[o.SemanticAttributes.RPC_GRPC_STATUS_CODE];if(n){if(e.kind==i.SpanKind.SERVER){var s=e.attributes[o.SemanticAttributes.HTTP_ROUTE],c=e.attributes[o.SemanticAttributes.HTTP_URL];if(s)t.name=n+" "+s;else if(c)try{var l=new r.URL(String(c));t.name=n+" "+l.pathname}catch(e){}}t.url=u(e);var p=e.attributes[o.SemanticAttributes.HTTP_STATUS_CODE];p&&(t.resultCode=String(p))}else a&&(t.resultCode=String(a));return t}(e)}var n=""+(e.spanContext?e.spanContext():e.context()).spanId,p=Math.round(1e3*e.duration[0]+e.duration[1]/1e6);return t.id=n,t.duration=p,t.properties=function(e){for(var t={},n=0,r=Object.keys(e.attributes);n0&&(t["_MS.links"]=c.stringify(o)),t}(e),e.attributes[a.AzNamespace]&&(e.kind===i.SpanKind.INTERNAL&&(t.dependencyTypeName=a.DependencyTypeName.InProc+" | "+e.attributes[a.AzNamespace]),e.attributes[a.AzNamespace]===a.MicrosoftEventHub&&s.parseEventHubSpan(e,t)),t}},9879:(e,t,n)=>{"use strict";t.wp=t.qP=void 0;var r=n(4284),i=n(3580),o=n(4953),a=n(5946),s=n(699),c=[];t.qP=function(e){try{var t=e.data,n=a.spanToTelemetryContract(t);s.AsyncScopeManager.with(t,(function(){c.forEach((function(e){t.kind===r.SpanKind.SERVER||t.kind===r.SpanKind.CONSUMER?e.trackRequest(n):t.kind!==r.SpanKind.CLIENT&&t.kind!==r.SpanKind.INTERNAL&&t.kind!==r.SpanKind.PRODUCER||e.trackDependency(n)}))}))}catch(e){}},t.wp=function(e,n){if(e){if(c.find((function(e){return e==n})))return;0===c.length&&o.channel.subscribe("azure-coretracing",t.qP,o.trueFilter,(function(e,t){var r=n.getStatsbeat();r&&r.addInstrumentation(i.StatsbeatInstrumentation.AZURE_CORE_TRACING)})),c.push(n)}else 0===(c=c.filter((function(e){return e!=n}))).length&&o.channel.unsubscribe("azure-coretracing",t.qP)}},5823:(e,t,n)=>{"use strict";t.wp=void 0;var r=n(5290),i=n(3580),o=n(4953),a=[],s={10:r.SeverityLevel.Verbose,20:r.SeverityLevel.Verbose,30:r.SeverityLevel.Information,40:r.SeverityLevel.Warning,50:r.SeverityLevel.Error,60:r.SeverityLevel.Critical},c=function(e){var t=e.data.result,n=s[e.data.level];a.forEach((function(e){try{var r=JSON.parse(t);if(r.err){var i=new Error(r.err.message);return i.name=r.err.name,i.stack=r.err.stack,e.config.enableLoggerErrorToTrace?void e.trackTrace({message:t,severity:n}):void e.trackException({exception:i})}}catch(e){}e.trackTrace({message:t,severity:n})}))};t.wp=function(e,t){if(e){if(a.find((function(e){return e==t})))return;0===a.length&&o.channel.subscribe("bunyan",c,o.trueFilter,(function(e,n){var r=t.getStatsbeat();r&&r.addInstrumentation(i.StatsbeatInstrumentation.BUNYAN)})),a.push(t)}else 0===(a=a.filter((function(e){return e!=t}))).length&&o.channel.unsubscribe("bunyan",c)}},4309:(e,t,n)=>{"use strict";t.wp=void 0;var r=n(5290),i=n(3580),o=n(4953),a=[],s=function(e){var t=e.data.message;a.forEach((function(n){t instanceof Error&&!n.config.enableLoggerErrorToTrace?n.trackException({exception:t}):t instanceof Error?n.trackTrace({message:t.toString(),severity:e.data.stderr?r.SeverityLevel.Error:r.SeverityLevel.Information}):(t.lastIndexOf("\n")==t.length-1&&(t=t.substring(0,t.length-1)),n.trackTrace({message:t,severity:e.data.stderr?r.SeverityLevel.Warning:r.SeverityLevel.Information}))}))};t.wp=function(e,t){if(e){if(a.find((function(e){return e==t})))return;0===a.length&&o.channel.subscribe("console",s,o.trueFilter,(function(e,n){var r=t.getStatsbeat();r&&r.addInstrumentation(i.StatsbeatInstrumentation.CONSOLE)})),a.push(t)}else 0===(a=a.filter((function(e){return e!=t}))).length&&o.channel.unsubscribe("console",s)}},7396:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerContextPreservation=t.IsInitialized=void 0;var r=n(5282),i=n(3063);t.IsInitialized=!i.JsonConfig.getInstance().noDiagnosticChannel;var o="DiagnosticChannel";if(t.IsInitialized){var a=n(4106),s=i.JsonConfig.getInstance().noPatchModules.split(","),c={bunyan:a.bunyan,console:a.console,mongodb:a.mongodb,mongodbCore:a.mongodbCore,mysql:a.mysql,redis:a.redis,pg:a.pg,pgPool:a.pgPool,winston:a.winston,azuresdk:a.azuresdk};for(var u in c)-1===s.indexOf(u)&&(c[u].enable(),r.info(o,"Subscribed to "+u+" events"));s.length>0&&r.info(o,"Some modules will not be patched",s)}else r.info(o,"Not subscribing to dependency autocollection because APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL was set");t.registerContextPreservation=function(e){t.IsInitialized&&n(4953).channel.addContextPreservation(e)}},7886:(e,t,n)=>{"use strict";t.wp=t.qP=void 0;var r=n(3580),i=n(4953),o=[];t.qP=function(e){"ismaster"!==e.data.event.commandName&&o.forEach((function(t){var n=e.data.startedData&&e.data.startedData.databaseName||"Unknown database";t.trackDependency({target:n,data:e.data.event.commandName,name:e.data.event.commandName,duration:e.data.event.duration,success:e.data.succeeded,resultCode:e.data.succeeded?"0":"1",time:e.data.startedData.time,dependencyTypeName:"mongodb"})}))},t.wp=function(e,n){if(e){if(o.find((function(e){return e==n})))return;0===o.length&&i.channel.subscribe("mongodb",t.qP,i.trueFilter,(function(e,t){var i=n.getStatsbeat();i&&i.addInstrumentation(r.StatsbeatInstrumentation.MONGODB)})),o.push(n)}else 0===(o=o.filter((function(e){return e!=n}))).length&&i.channel.unsubscribe("mongodb",t.qP)}},4777:(e,t,n)=>{"use strict";t.wp=t.qP=void 0;var r=n(3580),i=n(4953),o=[];t.qP=function(e){o.forEach((function(t){var n=e.data.query||{},r=n.sql||"Unknown query",i=!e.data.err,o=(n._connection||{}).config||{},a=o.socketPath?o.socketPath:(o.host||"localhost")+":"+o.port;t.trackDependency({target:a,data:r,name:r,duration:e.data.duration,success:i,resultCode:i?"0":"1",time:e.data.time,dependencyTypeName:"mysql"})}))},t.wp=function(e,n){if(e){if(o.find((function(e){return e==n})))return;0===o.length&&i.channel.subscribe("mysql",t.qP,i.trueFilter,(function(e,t){var i=n.getStatsbeat();i&&i.addInstrumentation(r.StatsbeatInstrumentation.MYSQL)})),o.push(n)}else 0===(o=o.filter((function(e){return e!=n}))).length&&i.channel.unsubscribe("mysql",t.qP)}},9843:(e,t,n)=>{"use strict";t.wp=t.qP=void 0;var r=n(3580),i=n(4953),o=[];t.qP=function(e){o.forEach((function(t){var n=e.data.query,r=n.preparable&&n.preparable.text||n.plan||n.text||"unknown query",i=!e.data.error,o=e.data.database.host+":"+e.data.database.port;t.trackDependency({target:o,data:r,name:r,duration:e.data.duration,success:i,resultCode:i?"0":"1",time:e.data.time,dependencyTypeName:"postgres"})}))},t.wp=function(e,n){if(e){if(o.find((function(e){return e==n})))return;0===o.length&&i.channel.subscribe("postgres",t.qP,i.trueFilter,(function(e,t){var i=n.getStatsbeat();i&&i.addInstrumentation(r.StatsbeatInstrumentation.POSTGRES)})),o.push(n)}else 0===(o=o.filter((function(e){return e!=n}))).length&&i.channel.unsubscribe("postgres",t.qP)}},5071:(e,t,n)=>{"use strict";t.wp=t.qP=void 0;var r=n(3580),i=n(4953),o=[];t.qP=function(e){o.forEach((function(t){"info"!==e.data.commandObj.command&&t.trackDependency({target:e.data.address,name:e.data.commandObj.command,data:e.data.commandObj.command,duration:e.data.duration,success:!e.data.err,resultCode:e.data.err?"1":"0",time:e.data.time,dependencyTypeName:"redis"})}))},t.wp=function(e,n){if(e){if(o.find((function(e){return e==n})))return;0===o.length&&i.channel.subscribe("redis",t.qP,i.trueFilter,(function(e,t){var i=n.getStatsbeat();i&&i.addInstrumentation(r.StatsbeatInstrumentation.REDIS)})),o.push(n)}else 0===(o=o.filter((function(e){return e!=n}))).length&&i.channel.unsubscribe("redis",t.qP)}},454:(e,t,n)=>{"use strict";t.wp=void 0;var r=n(3580),i=n(5290),o=n(4953),a=[],s={syslog:function(e){var t={emerg:i.SeverityLevel.Critical,alert:i.SeverityLevel.Critical,crit:i.SeverityLevel.Critical,error:i.SeverityLevel.Error,warning:i.SeverityLevel.Warning,notice:i.SeverityLevel.Information,info:i.SeverityLevel.Information,debug:i.SeverityLevel.Verbose};return void 0===t[e]?i.SeverityLevel.Information:t[e]},npm:function(e){var t={error:i.SeverityLevel.Error,warn:i.SeverityLevel.Warning,info:i.SeverityLevel.Information,verbose:i.SeverityLevel.Verbose,debug:i.SeverityLevel.Verbose,silly:i.SeverityLevel.Verbose};return void 0===t[e]?i.SeverityLevel.Information:t[e]},unknown:function(e){return i.SeverityLevel.Information}},c=function(e){var t=e.data.message,n=s[e.data.levelKind](e.data.level);a.forEach((function(r){t instanceof Error&&!r.config.enableLoggerErrorToTrace?r.trackException({exception:t,properties:e.data.meta}):t instanceof Error?r.trackTrace({message:t.toString(),severity:n,properties:e.data.meta}):r.trackTrace({message:t,severity:n,properties:e.data.meta})}))};t.wp=function(e,t){if(e){if(a.find((function(e){return e==t})))return;0===a.length&&o.channel.subscribe("winston",c,o.trueFilter,(function(e,n){var i=t.getStatsbeat();i&&i.addInstrumentation(r.StatsbeatInstrumentation.WINSTON)})),a.push(t)}else 0===(a=a.filter((function(e){return e!=t}))).length&&o.channel.unsubscribe("winston",c)}},3580:(e,t)=>{"use strict";var n,r,i,o,a,s,c,u,l;Object.defineProperty(t,"__esModule",{value:!0}),t.WEB_INSTRUMENTATION_DEPRECATED_SOURCE=t.WEB_INSTRUMENTATION_DEFAULT_SOURCE=t.TIME_SINCE_ENQUEUED=t.ENQUEUED_TIME=t.MessageBusDestination=t.MicrosoftEventHub=t.AzNamespace=t.HttpRequestCookieNames=t.StatsbeatNetworkCategory=t.StatsbeatFeatureType=t.StatsbeatInstrumentation=t.StatsbeatFeature=t.StatsbeatCounter=t.StatsbeatAttach=t.StatsbeatResourceProvider=t.StatsbeatTelemetryName=t.HeartBeatMetricName=t.DependencyTypeName=t.TelemetryTypeStringToQuickPulseDocumentType=t.TelemetryTypeStringToQuickPulseType=t.QuickPulseType=t.QuickPulseDocumentType=t.PerformanceToQuickPulseCounter=t.MetricId=t.PerformanceCounter=t.QuickPulseCounter=t.DEFAULT_LIVEMETRICS_HOST=t.DEFAULT_LIVEMETRICS_ENDPOINT=t.DEFAULT_BREEZE_ENDPOINT=t.APPLICATION_INSIGHTS_SDK_VERSION=void 0,t.APPLICATION_INSIGHTS_SDK_VERSION="2.8.0",t.DEFAULT_BREEZE_ENDPOINT="https://dc.services.visualstudio.com",t.DEFAULT_LIVEMETRICS_ENDPOINT="https://rt.services.visualstudio.com",t.DEFAULT_LIVEMETRICS_HOST="rt.services.visualstudio.com",function(e){e.COMMITTED_BYTES="\\Memory\\Committed Bytes",e.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",e.REQUEST_RATE="\\ApplicationInsights\\Requests/Sec",e.REQUEST_FAILURE_RATE="\\ApplicationInsights\\Requests Failed/Sec",e.REQUEST_DURATION="\\ApplicationInsights\\Request Duration",e.DEPENDENCY_RATE="\\ApplicationInsights\\Dependency Calls/Sec",e.DEPENDENCY_FAILURE_RATE="\\ApplicationInsights\\Dependency Calls Failed/Sec",e.DEPENDENCY_DURATION="\\ApplicationInsights\\Dependency Call Duration",e.EXCEPTION_RATE="\\ApplicationInsights\\Exceptions/Sec"}(r=t.QuickPulseCounter||(t.QuickPulseCounter={})),function(e){e.PRIVATE_BYTES="\\Process(??APP_WIN32_PROC??)\\Private Bytes",e.AVAILABLE_BYTES="\\Memory\\Available Bytes",e.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",e.PROCESS_TIME="\\Process(??APP_WIN32_PROC??)\\% Processor Time",e.REQUEST_RATE="\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Requests/Sec",e.REQUEST_DURATION="\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Request Execution Time"}(i=t.PerformanceCounter||(t.PerformanceCounter={})),(l=t.MetricId||(t.MetricId={})).REQUESTS_DURATION="requests/duration",l.DEPENDENCIES_DURATION="dependencies/duration",l.EXCEPTIONS_COUNT="exceptions/count",l.TRACES_COUNT="traces/count",t.PerformanceToQuickPulseCounter=((n={})[i.PROCESSOR_TIME]=r.PROCESSOR_TIME,n[i.REQUEST_RATE]=r.REQUEST_RATE,n[i.REQUEST_DURATION]=r.REQUEST_DURATION,n[r.COMMITTED_BYTES]=r.COMMITTED_BYTES,n[r.REQUEST_FAILURE_RATE]=r.REQUEST_FAILURE_RATE,n[r.DEPENDENCY_RATE]=r.DEPENDENCY_RATE,n[r.DEPENDENCY_FAILURE_RATE]=r.DEPENDENCY_FAILURE_RATE,n[r.DEPENDENCY_DURATION]=r.DEPENDENCY_DURATION,n[r.EXCEPTION_RATE]=r.EXCEPTION_RATE,n),t.QuickPulseDocumentType={Event:"Event",Exception:"Exception",Trace:"Trace",Metric:"Metric",Request:"Request",Dependency:"RemoteDependency",Availability:"Availability",PageView:"PageView"},t.QuickPulseType={Event:"EventTelemetryDocument",Exception:"ExceptionTelemetryDocument",Trace:"TraceTelemetryDocument",Metric:"MetricTelemetryDocument",Request:"RequestTelemetryDocument",Dependency:"DependencyTelemetryDocument",Availability:"AvailabilityTelemetryDocument",PageView:"PageViewTelemetryDocument"},t.TelemetryTypeStringToQuickPulseType={EventData:t.QuickPulseType.Event,ExceptionData:t.QuickPulseType.Exception,MessageData:t.QuickPulseType.Trace,MetricData:t.QuickPulseType.Metric,RequestData:t.QuickPulseType.Request,RemoteDependencyData:t.QuickPulseType.Dependency,AvailabilityData:t.QuickPulseType.Availability,PageViewData:t.QuickPulseType.PageView},t.TelemetryTypeStringToQuickPulseDocumentType={EventData:t.QuickPulseDocumentType.Event,ExceptionData:t.QuickPulseDocumentType.Exception,MessageData:t.QuickPulseDocumentType.Trace,MetricData:t.QuickPulseDocumentType.Metric,RequestData:t.QuickPulseDocumentType.Request,RemoteDependencyData:t.QuickPulseDocumentType.Dependency,AvailabilityData:t.QuickPulseDocumentType.Availability,PageViewData:t.QuickPulseDocumentType.PageView},t.DependencyTypeName={Grpc:"GRPC",Http:"HTTP",InProc:"InProc",Sql:"SQL",QueueMessage:"Queue Message"},t.HeartBeatMetricName="HeartbeatState",t.StatsbeatTelemetryName="Statsbeat",t.StatsbeatResourceProvider={appsvc:"appsvc",functions:"functions",vm:"vm",unknown:"unknown"},t.StatsbeatAttach={codeless:"codeless",sdk:"sdk"},t.StatsbeatCounter={REQUEST_SUCCESS:"Request Success Count",REQUEST_FAILURE:"Request Failure Count",REQUEST_DURATION:"Request Duration",RETRY_COUNT:"Retry Count",THROTTLE_COUNT:"Throttle Count",EXCEPTION_COUNT:"Exception Count",ATTACH:"Attach",FEATURE:"Feature"},(u=t.StatsbeatFeature||(t.StatsbeatFeature={}))[u.NONE=0]="NONE",u[u.DISK_RETRY=1]="DISK_RETRY",u[u.AAD_HANDLING=2]="AAD_HANDLING",u[u.WEB_SNIPPET=4]="WEB_SNIPPET",(c=t.StatsbeatInstrumentation||(t.StatsbeatInstrumentation={}))[c.NONE=0]="NONE",c[c.AZURE_CORE_TRACING=1]="AZURE_CORE_TRACING",c[c.MONGODB=2]="MONGODB",c[c.MYSQL=4]="MYSQL",c[c.REDIS=8]="REDIS",c[c.POSTGRES=16]="POSTGRES",c[c.BUNYAN=32]="BUNYAN",c[c.WINSTON=64]="WINSTON",c[c.CONSOLE=128]="CONSOLE",(s=t.StatsbeatFeatureType||(t.StatsbeatFeatureType={}))[s.Feature=0]="Feature",s[s.Instrumentation=1]="Instrumentation",(a=t.StatsbeatNetworkCategory||(t.StatsbeatNetworkCategory={}))[a.Breeze=0]="Breeze",a[a.Quickpulse=1]="Quickpulse",(o=t.HttpRequestCookieNames||(t.HttpRequestCookieNames={})).SESSION="ai_session",o.USER="ai_user",o.AUTH_USER="ai_authUser",t.AzNamespace="az.namespace",t.MicrosoftEventHub="Microsoft.EventHub",t.MessageBusDestination="message_bus.destination",t.ENQUEUED_TIME="enqueuedTime",t.TIME_SINCE_ENQUEUED="timeSinceEnqueued",t.WEB_INSTRUMENTATION_DEFAULT_SOURCE="https://js.monitor.azure.com/scripts/b/ai",t.WEB_INSTRUMENTATION_DEPRECATED_SOURCE="https://az416426.vo.msecnd.net/scripts/b/ai"},9382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.domainSupportsProperties=t.RemoteDependencyDataConstants=void 0;var r=n(9958),i=function(){function e(){}return e.TYPE_HTTP="Http",e.TYPE_AI="Http (tracked component)",e}();t.RemoteDependencyDataConstants=i,t.domainSupportsProperties=function(e){return"properties"in e||e instanceof r.EventData||e instanceof r.ExceptionData||e instanceof r.MessageData||e instanceof r.MetricData||e instanceof r.PageViewData||e instanceof r.RemoteDependencyData||e instanceof r.RequestData}},7220:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return i(t,e),t}(n(8934));e.exports=o},4101:e=>{"use strict";e.exports=function(){}},9871:e=>{"use strict";e.exports=function(){this.applicationVersion="ai.application.ver",this.deviceId="ai.device.id",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceOEMName="ai.device.oemName",this.deviceOSVersion="ai.device.osVersion",this.deviceType="ai.device.type",this.locationIp="ai.location.ip",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.userAccountId="ai.user.accountId",this.userId="ai.user.id",this.userAuthUserId="ai.user.authUserId",this.cloudRole="ai.cloud.role",this.cloudRoleInstance="ai.cloud.roleInstance",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion",this.internalNodeName="ai.internal.nodeName"}},320:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(){return e.call(this)||this}return i(t,e),t}(n(4101));e.exports=o},8602:(e,t,n)=>{"use strict";var r=n(495);e.exports=function(){this.kind=r.Measurement}},495:e=>{"use strict";var t;!function(e){e[e.Measurement=0]="Measurement",e[e.Aggregation=1]="Aggregation"}(t||(t={})),e.exports=t},8934:e=>{"use strict";e.exports=function(){}},7300:e=>{"use strict";e.exports=function(){this.ver=1,this.sampleRate=100,this.tags={}}},4526:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return i(t,e),t}(n(8934));e.exports=o},935:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.exceptions=[],t.properties={},t.measurements={},t}return i(t,e),t}(n(8934));e.exports=o},8082:e=>{"use strict";e.exports=function(){this.hasFullStack=!0,this.parsedStack=[]}},901:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t}return i(t,e),t}(n(8934));e.exports=o},3092:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.metrics=[],t.properties={},t}return i(t,e),t}(n(8934));e.exports=o},6279:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return i(t,e),t}(n(4526));e.exports=o},6290:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.success=!0,t.properties={},t.measurements={},t}return i(t,e),t}(n(8934));e.exports=o},7339:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return i(t,e),t}(n(8934));e.exports=o},9697:e=>{"use strict";var t;!function(e){e[e.Verbose=0]="Verbose",e[e.Information=1]="Information",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Critical=4]="Critical"}(t||(t={})),e.exports=t},6781:e=>{"use strict";e.exports=function(){}},9958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AvailabilityData=n(7220),t.Base=n(4101),t.ContextTagKeys=n(9871),t.Data=n(320),t.DataPoint=n(8602),t.DataPointType=n(495),t.Domain=n(8934),t.Envelope=n(7300),t.EventData=n(4526),t.ExceptionData=n(935),t.ExceptionDetails=n(8082),t.MessageData=n(901),t.MetricData=n(3092),t.PageViewData=n(6279),t.RemoteDependencyData=n(6290),t.RequestData=n(7339),t.SeverityLevel=n(9697),t.StackFrame=n(6781)},6522:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4429:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8937:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9003:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5977:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(9477),t),i(n(4429),t),i(n(532),t),i(n(9003),t),i(n(5323),t),i(n(6522),t),i(n(6647),t),i(n(8937),t)},3382:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1727:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6375:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4381:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4013:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5481:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryType=t.TelemetryTypeString=t.baseTypeToTelemetryType=t.telemetryTypeToBaseType=void 0,t.telemetryTypeToBaseType=function(e){switch(e){case n.Event:return"EventData";case n.Exception:return"ExceptionData";case n.Trace:return"MessageData";case n.Metric:return"MetricData";case n.Request:return"RequestData";case n.Dependency:return"RemoteDependencyData";case n.Availability:return"AvailabilityData";case n.PageView:return"PageViewData"}},t.baseTypeToTelemetryType=function(e){switch(e){case"EventData":return n.Event;case"ExceptionData":return n.Exception;case"MessageData":return n.Trace;case"MetricData":return n.Metric;case"RequestData":return n.Request;case"RemoteDependencyData":return n.Dependency;case"AvailabilityData":return n.Availability;case"PageViewData":return n.PageView}},t.TelemetryTypeString={Event:"EventData",Exception:"ExceptionData",Trace:"MessageData",Metric:"MetricData",Request:"RequestData",Dependency:"RemoteDependencyData",Availability:"AvailabilityData",PageView:"PageViewData"},function(e){e[e.Event=0]="Event",e[e.Exception=1]="Exception",e[e.Trace=2]="Trace",e[e.Metric=3]="Metric",e[e.Request=4]="Request",e[e.Dependency=5]="Dependency",e[e.Availability=6]="Availability",e[e.PageView=7]="PageView"}(n=t.TelemetryType||(t.TelemetryType={}))},5539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2626:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1727),t),i(n(8010),t),i(n(2637),t),i(n(4381),t),i(n(2334),t),i(n(5539),t),i(n(8836),t),i(n(1143),t),i(n(2166),t),i(n(3382),t),i(n(4013),t),i(n(6375),t),i(n(5481),t)},5290:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(9382),t),i(n(9958),t),i(n(2626),t),i(n(5977),t)},521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AggregatedMetricCounter=void 0;t.AggregatedMetricCounter=function(e){this.dimensions=e,this.totalCount=0,this.lastTotalCount=0,this.intervalExecutionTime=0,this.lastTime=+new Date,this.lastIntervalExecutionTime=0}},7535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreaggregatedMetricPropertyNames=void 0,t.PreaggregatedMetricPropertyNames={cloudRoleInstance:"cloud/roleInstance",cloudRoleName:"cloud/roleName",operationSynthetic:"operation/synthetic",requestSuccess:"Request.Success",requestResultCode:"request/resultCode",dependencyType:"Dependency.Type",dependencyTarget:"dependency/target",dependencySuccess:"Dependency.Success",dependencyResultCode:"dependency/resultCode",traceSeverityLevel:"trace/severityLevel"}},287:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureVirtualMachine=void 0;var r=n(5282),i=n(5740),o=n(8723),a=function(){function e(){}return e.getAzureComputeMetadata=function(t,n){var a,s=this,c={},u=((a={method:"GET"})[o.disableCollectionRequestOption]=!0,a.headers={Metadata:"True"},a),l=i.makeRequest(t,"http://169.254.169.254/metadata/instance/compute?api-version=2017-12-01&format=json",u,(function(t){if(200===t.statusCode){c.isVM=!0;var i="";t.on("data",(function(e){i+=e})),t.on("end",(function(){try{var t=JSON.parse(i);c.id=t.vmId||"",c.subscriptionId=t.subscriptionId||"",c.osType=t.osType||""}catch(t){r.info(e.TAG,t)}n(c)}))}else n(c)}),!1,!1);l&&(setTimeout((function(){s._requestTimedOut=!0,l.abort()}),e.HTTP_TIMEOUT),l.on("error",(function(t){s._requestTimedOut&&t&&(t.name="telemetry timeout",t.message="telemetry request timed out"),t&&t.message&&t.message.indexOf("UNREACH")>-1?c.isVM=!1:r.info(e.TAG,t),n(c)})),l.end())},e.HTTP_TIMEOUT=2500,e.TAG="AzureVirtualMachine",e}();t.AzureVirtualMachine=a},3504:(e,t,n)=>{"use strict";var r=n(5282),i=n(5740),o=function(){function e(e,t,n,r){this._buffer=[],this._lastSend=0,this._isDisabled=e,this._getBatchSize=t,this._getBatchIntervalMs=n,this._sender=r}return e.prototype.setUseDiskRetryCaching=function(e,t,n){this._sender.setDiskRetryMode(e,t,n)},e.prototype.send=function(e){var t=this;this._isDisabled()||(e?(this._buffer.push(e),this._buffer.length>=this._getBatchSize()?this.triggerSend(!1):!this._timeoutHandle&&this._buffer.length>0&&(this._timeoutHandle=setTimeout((function(){t._timeoutHandle=null,t.triggerSend(!1)}),this._getBatchIntervalMs()))):r.warn("Cannot send null/undefined telemetry"))},e.prototype.triggerSend=function(e,t){var n=this._buffer.length<1;n||(e||i.isNodeExit?(this._sender.saveOnCrash(this._buffer),"function"==typeof t&&t("data saved on crash")):this._sender.send(this._buffer,t)),this._lastSend=+new Date,this._buffer=[],clearTimeout(this._timeoutHandle),this._timeoutHandle=null,n&&"function"==typeof t&&t("no data to send")},e}();e.exports=o},9253:(e,t,n)=>{"use strict";var r=n(9962),i=n(5158),o=n(5282),a=n(3580),s=n(7310),c=n(3063),u=function(){function e(t){this._endpointBase=a.DEFAULT_BREEZE_ENDPOINT,this._mergeConfig();var n=this._connectionString,r=i.parse(t),o=i.parse(n),c=!r.instrumentationkey&&Object.keys(r).length>0?null:t,u=this._instrumentationKey;this.instrumentationKey=r.instrumentationkey||c||o.instrumentationkey||u;var l=""+(this.endpointUrl||r.ingestionendpoint||o.ingestionendpoint||this._endpointBase);l.endsWith("/")&&(l=l.slice(0,-1)),this.endpointUrl=l+"/v2.1/track",this.maxBatchSize=this.maxBatchSize||250,this.maxBatchIntervalMs=this.maxBatchIntervalMs||15e3,this.disableAppInsights=this.disableAppInsights||!1,this.samplingPercentage=this.samplingPercentage||100,this.correlationIdRetryIntervalMs=this.correlationIdRetryIntervalMs||3e4,this.enableWebInstrumentation=this.enableWebInstrumentation||this.enableAutoWebSnippetInjection||!1,this.webInstrumentationConfig=this.webInstrumentationConfig||null,this.enableAutoWebSnippetInjection=this.enableWebInstrumentation,this.correlationHeaderExcludedDomains=this.correlationHeaderExcludedDomains||["*.core.windows.net","*.core.chinacloudapi.cn","*.core.cloudapi.de","*.core.usgovcloudapi.net","*.core.microsoft.scloud","*.core.eaglex.ic.gov"],this.ignoreLegacyHeaders=this.ignoreLegacyHeaders||!1,this.profileQueryEndpoint=r.ingestionendpoint||o.ingestionendpoint||process.env[e.ENV_profileQueryEndpoint]||this._endpointBase,this.quickPulseHost=this.quickPulseHost||r.liveendpoint||o.liveendpoint||process.env[e.ENV_quickPulseHost]||a.DEFAULT_LIVEMETRICS_HOST,this.webInstrumentationConnectionString=this.webInstrumentationConnectionString||this._webInstrumentationConnectionString||"",this.webSnippetConnectionString=this.webInstrumentationConnectionString,this.quickPulseHost.match(/^https?:\/\//)&&(this.quickPulseHost=new s.URL(this.quickPulseHost).host)}return Object.defineProperty(e.prototype,"profileQueryEndpoint",{get:function(){return this._profileQueryEndpoint},set:function(e){this._profileQueryEndpoint=e,this.correlationId=r.correlationIdPrefix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instrumentationKey",{get:function(){return this._instrumentationKey},set:function(t){e._validateInstrumentationKey(t)||o.warn("An invalid instrumentation key was provided. There may be resulting telemetry loss",this.instrumentationKey),this._instrumentationKey=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"webSnippetConnectionString",{get:function(){return this._webInstrumentationConnectionString},set:function(e){this._webInstrumentationConnectionString=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"webInstrumentationConnectionString",{get:function(){return this._webInstrumentationConnectionString},set:function(e){this._webInstrumentationConnectionString=e},enumerable:!1,configurable:!0}),e.prototype._mergeConfig=function(){var e=c.JsonConfig.getInstance();this._connectionString=e.connectionString,this._instrumentationKey=e.instrumentationKey,this.correlationHeaderExcludedDomains=e.correlationHeaderExcludedDomains,this.correlationIdRetryIntervalMs=e.correlationIdRetryIntervalMs,this.disableAllExtendedMetrics=e.disableAllExtendedMetrics,this.disableAppInsights=e.disableAppInsights,this.disableStatsbeat=e.disableStatsbeat,this.distributedTracingMode=e.distributedTracingMode,this.enableAutoCollectConsole=e.enableAutoCollectConsole,this.enableLoggerErrorToTrace=e.enableLoggerErrorToTrace,this.enableAutoCollectDependencies=e.enableAutoCollectDependencies,this.enableAutoCollectIncomingRequestAzureFunctions=e.enableAutoCollectIncomingRequestAzureFunctions,this.enableAutoCollectExceptions=e.enableAutoCollectExceptions,this.enableAutoCollectExtendedMetrics=e.enableAutoCollectExtendedMetrics,this.enableAutoCollectExternalLoggers=e.enableAutoCollectExternalLoggers,this.enableAutoCollectHeartbeat=e.enableAutoCollectHeartbeat,this.enableAutoCollectPerformance=e.enableAutoCollectPerformance,this.enableAutoCollectPreAggregatedMetrics=e.enableAutoCollectPreAggregatedMetrics,this.enableAutoCollectRequests=e.enableAutoCollectRequests,this.enableAutoDependencyCorrelation=e.enableAutoDependencyCorrelation,this.enableInternalDebugLogging=e.enableInternalDebugLogging,this.enableInternalWarningLogging=e.enableInternalWarningLogging,this.enableResendInterval=e.enableResendInterval,this.enableMaxBytesOnDisk=e.enableMaxBytesOnDisk,this.enableSendLiveMetrics=e.enableSendLiveMetrics,this.enableUseAsyncHooks=e.enableUseAsyncHooks,this.enableUseDiskRetryCaching=e.enableUseDiskRetryCaching,this.endpointUrl=e.endpointUrl,this.extendedMetricDisablers=e.extendedMetricDisablers,this.ignoreLegacyHeaders=e.ignoreLegacyHeaders,this.maxBatchIntervalMs=e.maxBatchIntervalMs,this.maxBatchSize=e.maxBatchSize,this.proxyHttpUrl=e.proxyHttpUrl,this.proxyHttpsUrl=e.proxyHttpsUrl,this.quickPulseHost=e.quickPulseHost,this.samplingPercentage=e.samplingPercentage,this.enableWebInstrumentation=e.enableWebInstrumentation,this._webInstrumentationConnectionString=e.webInstrumentationConnectionString,this.webInstrumentationConfig=e.webInstrumentationConfig,this.webInstrumentationSrc=e.webInstrumentationSrc},e._validateInstrumentationKey=function(e){return new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e)},e.ENV_azurePrefix="APPSETTING_",e.ENV_iKey="APPINSIGHTS_INSTRUMENTATIONKEY",e.legacy_ENV_iKey="APPINSIGHTS_INSTRUMENTATION_KEY",e.ENV_profileQueryEndpoint="APPINSIGHTS_PROFILE_QUERY_ENDPOINT",e.ENV_quickPulseHost="APPINSIGHTS_QUICKPULSE_HOST",e}();e.exports=u},5158:(e,t,n)=>{"use strict";var r=n(3580),i=function(){function e(){}return e.parse=function(t){if(!t)return{};var n=t.split(e._FIELDS_SEPARATOR).reduce((function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(2===r.length){var i=r[0].toLowerCase(),o=r[1];t[i]=o}return t}),{});if(Object.keys(n).length>0){if(n.endpointsuffix){var i=n.location?n.location+".":"";n.ingestionendpoint=n.ingestionendpoint||"https://"+i+"dc."+n.endpointsuffix,n.liveendpoint=n.liveendpoint||"https://"+i+"live."+n.endpointsuffix}n.ingestionendpoint=n.ingestionendpoint||r.DEFAULT_BREEZE_ENDPOINT,n.liveendpoint=n.liveendpoint||r.DEFAULT_LIVEMETRICS_ENDPOINT}return n},e.isIkeyValid=function(e){return!(!e||""==e)&&new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e)},e._FIELDS_SEPARATOR=";",e._FIELD_KEY_VALUE_SEPARATOR="=",e}();e.exports=i},4470:(e,t,n)=>{"use strict";var r=n(2037),i=n(7147),o=n(1017),a=n(5290),s=n(3580),c=n(5282),u=function(){function e(e){this.keys=new a.ContextTagKeys,this.tags={},this._loadApplicationContext(e),this._loadDeviceContext(),this._loadInternalContext()}return e.prototype._loadApplicationContext=function(t){try{if(t=t||o.resolve(__dirname,"../../../../package.json"),!e.appVersion[t]){e.appVersion[t]="unknown";var n=JSON.parse(i.readFileSync(t,"utf8"));n&&"string"==typeof n.version&&(e.appVersion[t]=n.version)}this.tags[this.keys.applicationVersion]=e.appVersion[t]}catch(e){c.info("Failed to read app version: ",e)}},e.prototype._loadDeviceContext=function(){var t=r&&r.hostname(),n=e.DefaultRoleName;process.env.WEBSITE_SITE_NAME&&(n=process.env.WEBSITE_SITE_NAME),process.env.WEBSITE_INSTANCE_ID&&(t=process.env.WEBSITE_INSTANCE_ID),this.tags[this.keys.deviceId]="",this.tags[this.keys.cloudRoleInstance]=t,this.tags[this.keys.deviceOSVersion]=r&&r.type()+" "+r.release(),this.tags[this.keys.cloudRole]=n,this.tags["ai.device.osArchitecture"]=r&&r.arch(),this.tags["ai.device.osPlatform"]=r&&r.platform()},e.prototype._loadInternalContext=function(){e.sdkVersion=s.APPLICATION_INSIGHTS_SDK_VERSION,this.tags[this.keys.internalSdkVersion]="node:"+e.sdkVersion},e.DefaultRoleName="Web",e.appVersion={},e.sdkVersion=null,e}();e.exports=u},9962:(e,t,n)=>{"use strict";var r=n(5740),i=function(){function e(){}return e.queryCorrelationId=function(e,t){},e.cancelCorrelationIdQuery=function(e,t){},e.generateRequestId=function(t){if(t){"."!==(t="|"==t[0]?t:"|"+t)[t.length-1]&&(t+=".");var n=(e.currentRootId++).toString(16);return e.appendSuffix(t,n,"_")}return e.generateRootId()},e.getRootId=function(e){var t=e.indexOf(".");t<0&&(t=e.length);var n="|"===e[0]?1:0;return e.substring(n,t)},e.generateRootId=function(){return"|"+r.w3cTraceId()+"."},e.appendSuffix=function(t,n,i){if(t.length+n.lengtho)for(;o>1;--o){var a=t[o-1];if("."===a||"_"===a)break}if(o<=1)return e.generateRootId();for(n=r.randomu32().toString(16);n.length<8;)n="0"+n;return t.substring(0,o)+n+"#"},e.correlationIdPrefix="cid-v1:",e.w3cEnabled=!0,e.HTTP_TIMEOUT=2500,e.requestIdMaxLength=1024,e.currentRootId=r.randomu32(),e}();e.exports=i},9813:(e,t,n)=>{"use strict";var r=n(5290),i=n(5740),o=n(894),a=n(5282),s=function(){function e(){}return e.createEnvelope=function(t,n,o,a,s){var c=null;switch(n){case r.TelemetryType.Trace:c=e.createTraceData(t);break;case r.TelemetryType.Dependency:c=e.createDependencyData(t);break;case r.TelemetryType.Event:c=e.createEventData(t);break;case r.TelemetryType.Exception:c=e.createExceptionData(t);break;case r.TelemetryType.Request:c=e.createRequestData(t);break;case r.TelemetryType.Metric:c=e.createMetricData(t);break;case r.TelemetryType.Availability:c=e.createAvailabilityData(t);break;case r.TelemetryType.PageView:c=e.createPageViewData(t)}if(c&&c.baseData&&r.domainSupportsProperties(c.baseData)){if(o)if(c.baseData.properties)for(var u in o)c.baseData.properties[u]||(c.baseData.properties[u]=o[u]);else c.baseData.properties=o;e.addAzureFunctionsCorrelationProperties(c.baseData.properties),c.baseData.properties&&(c.baseData.properties=i.validateStringMap(c.baseData.properties))}var l=s&&s.instrumentationKey||"",p=new r.Envelope;return p.data=c,p.iKey=l,p.name="Microsoft.ApplicationInsights."+l.replace(/-/g,"")+"."+c.baseType.substr(0,c.baseType.length-4),p.tags=this.getTags(a,t.tagOverrides),p.time=(new Date).toISOString(),p.ver=1,p.sampleRate=s?s.samplingPercentage:100,n===r.TelemetryType.Metric&&(p.sampleRate=100),p},e.addAzureFunctionsCorrelationProperties=function(e){var t=o.CorrelationContextManager.getCurrentContext();if(t&&t.customProperties&&t.customProperties.getProperty instanceof Function){e=e||{};var n=t.customProperties.getProperty("InvocationId");n&&(e.InvocationId=n),(n=t.customProperties.getProperty("ProcessId"))&&(e.ProcessId=n),(n=t.customProperties.getProperty("LogLevel"))&&(e.LogLevel=n),(n=t.customProperties.getProperty("Category"))&&(e.Category=n),(n=t.customProperties.getProperty("HostInstanceId"))&&(e.HostInstanceId=n),(n=t.customProperties.getProperty("AzFuncLiveLogsSessionId"))&&(e.AzFuncLiveLogsSessionId=n)}},e.truncateProperties=function(e){if(e.properties)try{for(var t={},n=Object.keys(e.properties),r=Object.values(e.properties),o=0;o0,o.exceptions.push(s);var c=new r.Data;return c.baseType=r.telemetryTypeToBaseType(r.TelemetryType.Exception),c.baseData=o,c},e.createRequestData=function(e){var t,n,o,a,s=new r.RequestData;e.id?s.id=e.id:s.id=i.w3cTraceId(),s.name=null===(t=e.name)||void 0===t?void 0:t.substring(0,1024),s.url=null===(n=e.url)||void 0===n?void 0:n.substring(0,2048),s.source=null===(o=e.source)||void 0===o?void 0:o.substring(0,1024),s.duration=i.msToTimeSpan(e.duration),s.responseCode=null===(a=e.resultCode?e.resultCode.toString():"0")||void 0===a?void 0:a.substring(0,1024),s.success=e.success,s.properties=this.truncateProperties(e),s.measurements=e.measurements;var c=new r.Data;return c.baseType=r.telemetryTypeToBaseType(r.TelemetryType.Request),c.baseData=s,c},e.createMetricData=function(e){var t,n=new r.MetricData;n.metrics=[];var i=new r.DataPoint;i.count=isNaN(e.count)?1:e.count,i.kind=r.DataPointType.Aggregation,i.max=isNaN(e.max)?e.value:e.max,i.min=isNaN(e.min)?e.value:e.min,i.name=null===(t=e.name)||void 0===t?void 0:t.substring(0,1024),i.stdDev=isNaN(e.stdDev)?0:e.stdDev,i.value=e.value,i.ns=e.namespace,n.metrics.push(i),n.properties=this.truncateProperties(e);var o=new r.Data;return o.baseType=r.telemetryTypeToBaseType(r.TelemetryType.Metric),o.baseData=n,o},e.createAvailabilityData=function(e){var t,n,o=new r.AvailabilityData;e.id?o.id=e.id:o.id=i.w3cTraceId(),o.name=null===(t=e.name)||void 0===t?void 0:t.substring(0,1024),o.duration=i.msToTimeSpan(e.duration),o.success=e.success,o.runLocation=e.runLocation,o.message=null===(n=e.message)||void 0===n?void 0:n.substring(0,8192),o.measurements=e.measurements,o.properties=this.truncateProperties(e);var a=new r.Data;return a.baseType=r.telemetryTypeToBaseType(r.TelemetryType.Availability),a.baseData=o,a},e.createPageViewData=function(e){var t,n,o=new r.PageViewData;o.name=null===(t=e.name)||void 0===t?void 0:t.substring(0,1024),o.duration=i.msToTimeSpan(e.duration),o.url=null===(n=e.url)||void 0===n?void 0:n.substring(0,2048),o.measurements=e.measurements,o.properties=this.truncateProperties(e);var a=new r.Data;return a.baseType=r.telemetryTypeToBaseType(r.TelemetryType.PageView),a.baseData=o,a},e.getTags=function(e,t){var n=o.CorrelationContextManager.getCurrentContext(),r={};if(e&&e.tags)for(var i in e.tags)r[i]=e.tags[i];if(t)for(var i in t)r[i]=t[i];return n&&(r[e.keys.operationId]=r[e.keys.operationId]||n.operation.id,r[e.keys.operationName]=r[e.keys.operationName]||n.operation.name,r[e.keys.operationParentId]=r[e.keys.operationParentId]||n.operation.parentId),r},e.parseStack=function(e){var t=void 0;if("string"==typeof e){var n=e.split("\n");t=[];for(var r=0,i=0,o=0;o<=n.length;o++){var a=n[o];if(c.regex.test(a)){var s=new c(n[o],r++);i+=s.sizeInBytes,t.push(s)}}if(i>32768)for(var u=0,l=t.length-1,p=0,d=u,f=l;u32768){var h=f-d+1;t.splice(d,h);break}d=u,f=l,u++,l--}}return t},e}(),c=function(){function e(t,n){this.sizeInBytes=0,this.level=n,this.method="",this.assembly=i.trim(t);var r=t.match(e.regex);r&&r.length>=5&&(this.method=i.trim(r[2])||this.method,this.fileName=i.trim(r[4])||"",this.line=parseInt(r[5])||0),this.sizeInBytes+=this.method.length,this.sizeInBytes+=this.fileName.length,this.sizeInBytes+=this.assembly.length,this.sizeInBytes+=e.baseSize,this.sizeInBytes+=this.level.toString().length,this.sizeInBytes+=this.line.toString().length}return e.regex=/^(\s+at)?(.*?)(\@|\s\(|\s)([^\(\n]+):(\d+):(\d+)(\)?)$/,e.baseSize=58,e}();e.exports=s},2640:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3370:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]this.maxSizeBytes?[4,this._createBackupFile(t)]:[3,14];case 13:return i.sent(),[3,16];case 14:return[4,u.appendFileAsync(this._fileFullPath,t)];case 15:i.sent(),i.label=16;case 16:return[3,18];case 17:return o=i.sent(),console.log(this.TAG,"Failed to create backup file: "+(o&&o.message)),[3,18];case 18:return[2]}}))}))},e.prototype._createBackupFile=function(e){return r(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,4,5]),[4,u.readFileAsync(this._fileFullPath)];case 1:return t=i.sent(),n=c.join(this._tempDir,(new Date).getTime()+"."+this._logFileName),[4,u.writeFileAsync(n,t)];case 2:return i.sent(),[3,5];case 3:return r=i.sent(),console.log("Failed to generate backup log file",r),[3,5];case 4:return u.writeFileAsync(this._fileFullPath,e),[7];case 5:return[2]}}))}))},e.prototype._fileCleanupTask=function(){return r(this,void 0,void 0,(function(){var e,t,n,r,o,a=this;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,6,,7]),[4,u.readdirAsync(this._tempDir)];case 1:(e=(e=i.sent()).filter((function(e){return c.basename(e).indexOf(a._backUpNameFormat)>-1}))).sort((function(e,t){var n=new Date(parseInt(e.split(a._backUpNameFormat)[0])),r=new Date(parseInt(t.split(a._backUpNameFormat)[0]));return n=r?1:void 0})),t=e.length,n=0,i.label=2;case 2:return n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JsonConfig=void 0;var r=n(7147),i=n(1017),o=n(5282),a="APPSETTING_",s="APPINSIGHTS_INSTRUMENTATIONKEY",c="APPINSIGHTS_INSTRUMENTATION_KEY",u=function(){function e(){this.connectionString=process.env.APPLICATIONINSIGHTS_CONNECTION_STRING,this.instrumentationKey=process.env[s]||process.env[a+s]||process.env[c]||process.env[a+c],!this.connectionString&&this.instrumentationKey&&o.warn("APPINSIGHTS_INSTRUMENTATIONKEY is in path of deprecation, please use APPLICATIONINSIGHTS_CONNECTION_STRING env variable to setup the SDK."),this.disableAllExtendedMetrics=!!process.env.APPLICATION_INSIGHTS_DISABLE_ALL_EXTENDED_METRICS,this.extendedMetricDisablers=process.env.APPLICATION_INSIGHTS_DISABLE_EXTENDED_METRIC,this.proxyHttpUrl=process.env.http_proxy,this.proxyHttpsUrl=process.env.https_proxy,this.noDiagnosticChannel=!!process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL,this.disableStatsbeat=!!process.env.APPLICATION_INSIGHTS_NO_STATSBEAT,this.noHttpAgentKeepAlive=!!process.env.APPLICATION_INSIGHTS_NO_HTTP_AGENT_KEEP_ALIVE,this.noPatchModules=process.env.APPLICATION_INSIGHTS_NO_PATCH_MODULES||"",this.enableWebInstrumentation=!!process.env.APPLICATIONINSIGHTS_WEB_INSTRUMENTATION_ENABLED||!!process.env.APPLICATIONINSIGHTS_WEB_SNIPPET_ENABLED,this.webInstrumentationSrc=process.env.APPLICATIONINSIGHTS_WEB_INSTRUMENTATION_SOURCE||"",this.webInstrumentationConnectionString=process.env.APPLICATIONINSIGHTS_WEB_INSTRUMENTATION_CONNECTION_STRING||process.env.APPLICATIONINSIGHTS_WEB_SNIPPET_CONNECTION_STRING||"",this.enableAutoWebSnippetInjection=this.enableWebInstrumentation,this.webSnippetConnectionString=this.webInstrumentationConnectionString,this._loadJsonFile()}return e.getInstance=function(){return e._instance||(e._instance=new e),e._instance},e.prototype._loadJsonFile=function(){var e="",t=process.env.APPLICATIONINSIGHTS_CONFIGURATION_CONTENT;if(t)e=t;else{var n=i.join(__dirname,"../../"),a=i.join(n,"applicationinsights.json"),s=process.env.APPLICATIONINSIGHTS_CONFIGURATION_FILE;s&&(a=i.isAbsolute(s)?s:i.join(n,s));try{e=r.readFileSync(a,"utf8")}catch(e){o.warn("Failed to read JSON config file: ",e)}}try{var c=JSON.parse(e);null!=c.disableStatsbeat&&(this.disableStatsbeat=c.disableStatsbeat),null!=c.disableAllExtendedMetrics&&(this.disableAllExtendedMetrics=c.disableStatsbeat),null!=c.noDiagnosticChannel&&(this.noDiagnosticChannel=c.noDiagnosticChannel),null!=c.noHttpAgentKeepAlive&&(this.noHttpAgentKeepAlive=c.noHttpAgentKeepAlive),null!=c.connectionString&&(this.connectionString=c.connectionString),null!=c.extendedMetricDisablers&&(this.extendedMetricDisablers=c.extendedMetricDisablers),null!=c.noDiagnosticChannel&&(this.noDiagnosticChannel=c.noDiagnosticChannel),null!=c.proxyHttpUrl&&(this.proxyHttpUrl=c.proxyHttpUrl),null!=c.proxyHttpsUrl&&(this.proxyHttpsUrl=c.proxyHttpsUrl),null!=c.proxyHttpsUrl&&(this.proxyHttpsUrl=c.proxyHttpsUrl),null!=c.noPatchModules&&(this.noPatchModules=c.noPatchModules),null!=c.enableAutoWebSnippetInjection&&(this.enableWebInstrumentation=c.enableAutoWebSnippetInjection,this.enableAutoWebSnippetInjection=this.enableWebInstrumentation),null!=c.enableWebInstrumentation&&(this.enableWebInstrumentation=c.enableWebInstrumentation,this.enableAutoWebSnippetInjection=this.enableWebInstrumentation),null!=c.webSnippetConnectionString&&(this.webInstrumentationConnectionString=c.webSnippetConnectionString,this.webSnippetConnectionString=this.webInstrumentationConnectionString),null!=c.webInstrumentationConnectionString&&(this.webInstrumentationConnectionString=c.webInstrumentationConnectionString,this.webSnippetConnectionString=this.webInstrumentationConnectionString),null!=c.webInstrumentationConfig&&(this.webInstrumentationConfig=c.webInstrumentationConfig),null!=c.webInstrumentationSrc&&(this.webInstrumentationSrc=c.webInstrumentationSrc),null!=c.enableLoggerErrorToTrace&&(this.enableLoggerErrorToTrace=c.enableLoggerErrorToTrace),this.endpointUrl=c.endpointUrl,this.maxBatchSize=c.maxBatchSize,this.maxBatchIntervalMs=c.maxBatchIntervalMs,this.disableAppInsights=c.disableAppInsights,this.samplingPercentage=c.samplingPercentage,this.correlationIdRetryIntervalMs=c.correlationIdRetryIntervalMs,this.correlationHeaderExcludedDomains=c.correlationHeaderExcludedDomains,this.ignoreLegacyHeaders=c.ignoreLegacyHeaders,this.distributedTracingMode=c.distributedTracingMode,this.enableAutoCollectExternalLoggers=c.enableAutoCollectExternalLoggers,this.enableAutoCollectConsole=c.enableAutoCollectConsole,this.enableLoggerErrorToTrace=c.enableLoggerErrorToTrace,this.enableAutoCollectExceptions=c.enableAutoCollectExceptions,this.enableAutoCollectPerformance=c.enableAutoCollectPerformance,this.enableAutoCollectExtendedMetrics=c.enableAutoCollectExtendedMetrics,this.enableAutoCollectPreAggregatedMetrics=c.enableAutoCollectPreAggregatedMetrics,this.enableAutoCollectHeartbeat=c.enableAutoCollectHeartbeat,this.enableAutoCollectRequests=c.enableAutoCollectRequests,this.enableAutoCollectDependencies=c.enableAutoCollectDependencies,this.enableAutoDependencyCorrelation=c.enableAutoDependencyCorrelation,this.enableAutoCollectIncomingRequestAzureFunctions=c.enableAutoCollectIncomingRequestAzureFunctions,this.enableUseAsyncHooks=c.enableUseAsyncHooks,this.enableUseDiskRetryCaching=c.enableUseDiskRetryCaching,this.enableResendInterval=c.enableResendInterval,this.enableMaxBytesOnDisk=c.enableMaxBytesOnDisk,this.enableInternalDebugLogging=c.enableInternalDebugLogging,this.enableInternalWarningLogging=c.enableInternalWarningLogging,this.enableSendLiveMetrics=c.enableSendLiveMetrics,this.quickPulseHost=c.quickPulseHost}catch(e){o.warn("Invalid JSON config file: ",e)}},e}();t.JsonConfig=u},5282:(e,t,n)=>{"use strict";var r=n(3370),i=function(){function e(){}return e.info=function(e){for(var t=[],n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getResourceProvider=t.getOsPrefix=t.isFunctionApp=t.isWebApp=t.isLinux=t.isWindows=void 0,t.isWindows=function(){return"win32"===process.platform},t.isLinux=function(){return"linux"===process.platform},t.isWebApp=function(){return!!process.env.WEBSITE_SITE_NAME},t.isFunctionApp=function(){return!!process.env.FUNCTIONS_WORKER_RUNTIME},t.getOsPrefix=function(){return t.isWindows()?"w":t.isLinux()?"l":"u"},t.getResourceProvider=function(){return t.isWebApp()?"a":t.isFunctionApp()?"f":"u"}},7148:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?t:null,InstrumentationKey:n.instrumentationKey||"",Metrics:e.length>0?e:null,InvariantVersion:1,Timestamp:"/Date("+Date.now()+")/",Version:r.tags[r.keys.internalSdkVersion],StreamId:u,MachineName:o,Instance:a,RoleName:s}},e.createQuickPulseMetric=function(e){return{Name:e.name,Value:e.value,Weight:e.count||1}},e.telemetryEnvelopeToQuickPulseDocument=function(t){switch(t.data.baseType){case o.TelemetryTypeString.Event:return e.createQuickPulseEventDocument(t);case o.TelemetryTypeString.Exception:return e.createQuickPulseExceptionDocument(t);case o.TelemetryTypeString.Trace:return e.createQuickPulseTraceDocument(t);case o.TelemetryTypeString.Dependency:return e.createQuickPulseDependencyDocument(t);case o.TelemetryTypeString.Request:return e.createQuickPulseRequestDocument(t)}return null},e.createQuickPulseEventDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData.name;return r(r({},n),{Name:i})},e.createQuickPulseTraceDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData.severityLevel||0;return r(r({},n),{Message:t.data.baseData.message,SeverityLevel:o.SeverityLevel[i]})},e.createQuickPulseExceptionDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData.exceptions,o="",a="",s="";return i&&i.length>0&&(i[0].parsedStack&&i[0].parsedStack.length>0?i[0].parsedStack.forEach((function(e){o+=e.assembly+"\n"})):i[0].stack&&i[0].stack.length>0&&(o=i[0].stack),a=i[0].message,s=i[0].typeName),r(r({},n),{Exception:o,ExceptionMessage:a,ExceptionType:s})},e.createQuickPulseRequestDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData;return r(r({},n),{Name:i.name,Success:i.success,Duration:i.duration,ResponseCode:i.responseCode,OperationName:i.name})},e.createQuickPulseDependencyDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData;return r(r({},n),{Name:i.name,Target:i.target,Success:i.success,Duration:i.duration,ResultCode:i.resultCode,CommandName:i.data,OperationName:n.OperationId,DependencyTypeName:i.type})},e.createQuickPulseDocument=function(t){var n,r;return t.data.baseType?(r=a.TelemetryTypeStringToQuickPulseType[t.data.baseType],n=a.TelemetryTypeStringToQuickPulseDocumentType[t.data.baseType]):c.warn("Document type invalid; not sending live metric document",t.data.baseType),{DocumentType:n,__type:r,OperationId:t.tags[e.keys.operationId],Version:"1.0",Properties:e.aggregateProperties(t)}},e.aggregateProperties=function(e){var t=[],n=e.data.baseData.measurements||{};for(var r in n)if(n.hasOwnProperty(r)){var i={key:r,value:n[r]};t.push(i)}var o=e.data.baseData.properties||{};for(var r in o)o.hasOwnProperty(r)&&(i={key:r,value:o[r]},t.push(i));return t},e.keys=new o.ContextTagKeys,e}();e.exports=l},9184:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?n:this._config.quickPulseHost,_.method="POST",_.path="/QuickPulseService.svc/"+h+"?ikey="+this._config.instrumentationKey,_.headers=((E={Expect:"100-continue"})["x-ms-qps-transmission-time"]=c.getTransmissionTime(),E["Content-Type"]="application/json",E["Content-Length"]=Buffer.byteLength(r),E),v=_,m&&m.length>0&&m.forEach((function(e){return v.headers[e.name]=e.value})),"post"!==h)return[3,4];if(!(g=this._getAuthorizationHandler?this._getAuthorizationHandler(this._config):null))return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,g.addAuthorizationHeader(v)];case 2:return i.sent(),[3,4];case 3:return y=i.sent(),s.info(e.TAG,"Failed to get AAD bearer token for the Application. Error:",y),[2];case 4:return this._config.httpsAgent?v.agent=this._config.httpsAgent:v.agent=u.tlsRestrictedAgent,(b=o.request(v,(function(e){if(200==e.statusCode){var t="true"===e.headers["x-ms-qps-subscribed"],n=null;try{n=e.headers[d]?new l.URL(e.headers[d].toString()).host:null}catch(e){x._onError("Failed to parse redirect header from QuickPulse: "+u.dumpObj(e))}var r=e.headers[p]?parseInt(e.headers[p].toString()):null;x._consecutiveErrors=0,f(t,e,n,r)}else x._onError("StatusCode:"+e.statusCode+" StatusMessage:"+e.statusMessage),f()}))).on("error",(function(e){x._onError(e),f()})),b.write(r),b.end(),[2]}}))}))},e.prototype._onError=function(t){this._consecutiveErrors++;var n="Transient error connecting to the Live Metrics endpoint. This packet will not appear in your Live Metrics Stream. Error:";this._consecutiveErrors%e.MAX_QPS_FAILURES_BEFORE_WARN==0?(n="Live Metrics endpoint could not be reached "+this._consecutiveErrors+" consecutive times. Most recent error:",s.warn(e.TAG,n,t)):s.info(e.TAG,n,t)},e.TAG="QuickPulseSender",e.MAX_QPS_FAILURES_BEFORE_WARN=25,e}();e.exports=f},3668:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?this._pollingIntervalHint:e.PING_INTERVAL,o=this._isCollectingData?e.POST_INTERVAL:r,this._isCollectingData&&Date.now()-this._lastSuccessTime>=e.MAX_POST_WAIT_TIME&&!this._lastSendSucceeded?(this._isCollectingData=!1,o=e.FALLBACK_INTERVAL):!this._isCollectingData&&Date.now()-this._lastSuccessTime>=e.MAX_PING_WAIT_TIME&&!this._lastSendSucceeded&&(o=e.FALLBACK_INTERVAL),this._lastSendSucceeded=null,this._handle=setTimeout(this._goQuickPulse.bind(this),o),this._handle.unref(),[2]}}))}))},e.prototype._ping=function(e){this._sender.ping(e,this._redirectedHost,this._quickPulseDone.bind(this))},e.prototype._post=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this._sender.post(e,this._redirectedHost,this._quickPulseDone.bind(this))];case 1:return t.sent(),[2]}}))}))},e.prototype._quickPulseDone=function(e,t,n,r){null!=e?(this._isCollectingData!==e&&(o.info("Live Metrics sending data",e),this.enableCollectors(e)),this._isCollectingData=e,n&&n.length>0&&(this._redirectedHost=n,o.info("Redirecting endpoint to: ",n)),r&&r>0&&(this._pollingIntervalHint=r),t&&t.statusCode<300&&t.statusCode>=200?(this._lastSuccessTime=Date.now(),this._lastSendSucceeded=!0):this._lastSendSucceeded=!1):this._lastSendSucceeded=!1},e.MAX_POST_WAIT_TIME=2e4,e.MAX_PING_WAIT_TIME=6e4,e.FALLBACK_INTERVAL=6e4,e.PING_INTERVAL=5e3,e.POST_INTERVAL=1e3,e}();e.exports=l},3751:e=>{"use strict";e.exports={getTransmissionTime:function(){return 1e4*(Date.now()+621355968e5)}}},9036:e=>{"use strict";e.exports={requestContextHeader:"request-context",requestContextSourceKey:"appId",requestContextTargetKey:"appId",requestIdHeader:"request-id",parentIdHeader:"x-ms-request-id",rootIdHeader:"x-ms-request-root-id",correlationContextHeader:"correlation-context",traceparentHeader:"traceparent",traceStateHeader:"tracestate"}},2588:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0&&(this._resendInterval=Math.floor(n)),"number"==typeof r&&r>=0&&(this._maxBytesOnDisk=Math.floor(r)),t&&!m.FileAccessControl.OS_PROVIDES_FILE_PROTECTION&&(this._enableDiskRetryMode=!1,this._logWarn("Ignoring request to enable disk retry mode. Sufficient file protection capabilities were not detected.")),this._enableDiskRetryMode?(this._statsbeat&&this._statsbeat.addFeature(u.StatsbeatFeature.DISK_RETRY),this._fileCleanupTimer||(this._fileCleanupTimer=setTimeout((function(){i._fileCleanupTask()}),e.CLEANUP_TIMEOUT),this._fileCleanupTimer.unref())):(this._statsbeat&&this._statsbeat.removeFeature(u.StatsbeatFeature.DISK_RETRY),this._fileCleanupTimer&&clearTimeout(this._fileCleanupTimer))},e.prototype.send=function(t,n){return r(this,void 0,void 0,(function(){var r,o,a,s,p,h,m,g,y=this;return i(this,(function(i){switch(i.label){case 0:if(!t)return[3,5];if(r=this._redirectedHost||this._config.endpointUrl,o=new f.URL(r).hostname,a={method:"POST",withCredentials:!1,headers:{"Content-Type":"application/x-json-stream"}},!(s=this._getAuthorizationHandler?this._getAuthorizationHandler(this._config):null))return[3,4];this._statsbeat&&this._statsbeat.addFeature(u.StatsbeatFeature.AAD_HANDLING),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,s.addAuthorizationHeader(a)];case 2:return i.sent(),[3,4];case 3:return p=i.sent(),h="Failed to get AAD bearer token for the Application.",this._enableDiskRetryMode&&(h+="This batch of telemetry items will be retried. ",this._storeToDisk(t)),h+="Error:"+p.toString(),this._logWarn(h),"function"==typeof n&&n(h),[2];case 4:m="",t.forEach((function(e){var t=d.stringify(e);"string"==typeof t&&(m+=t+"\n")})),m.length>0&&(m=m.substring(0,m.length-1)),g=Buffer.from?Buffer.from(m):new Buffer(m),c.gzip(g,(function(i,s){var c=s;i?(y._logWarn(d.dumpObj(i)),c=g,a.headers["Content-Length"]=g.length.toString()):(a.headers["Content-Encoding"]="gzip",a.headers["Content-Length"]=s.length.toString()),y._logInfo(d.dumpObj(a)),a[l.disableCollectionRequestOption]=!0;var p=+new Date,f=d.makeRequest(y._config,r,a,(function(e){e.setEncoding("utf-8");var r="";e.on("data",(function(e){r+=e})),e.on("end",(function(){var i=+new Date-p;if(y._numConsecutiveFailures=0,y._isStatsbeatSender&&!y._statsbeatHasReachedIngestionAtLeastOnce&&(v.includes(e.statusCode)?y._statsbeatHasReachedIngestionAtLeastOnce=!0:y._statsbeatFailedToIngest()),y._statsbeat&&(402==e.statusCode||439==e.statusCode?y._statsbeat.countThrottle(u.StatsbeatNetworkCategory.Breeze,o,e.statusCode):y._statsbeat.countRequest(u.StatsbeatNetworkCategory.Breeze,o,i,200===e.statusCode,e.statusCode)),y._enableDiskRetryMode)if(200===e.statusCode)y._resendTimer||(y._resendTimer=setTimeout((function(){y._resendTimer=null,y._sendFirstFileOnDisk()}),y._resendInterval),y._resendTimer.unref());else if(y._isRetriable(e.statusCode))try{y._statsbeat&&y._statsbeat.countRetry(u.StatsbeatNetworkCategory.Breeze,o,e.statusCode);var a=JSON.parse(r),s=[];a.errors&&(a.errors.forEach((function(e){429!=e.statusCode&&500!=e.statusCode&&503!=e.statusCode||s.push(t[e.index])})),s.length>0&&y._storeToDisk(s))}catch(e){y._storeToDisk(t)}if(307===e.statusCode||308===e.statusCode)if(y._numConsecutiveRedirects++,y._numConsecutiveRedirects<10){var c=e.headers.location?e.headers.location.toString():null;c&&(y._redirectedHost=c,y.send(t,n))}else y._statsbeat&&y._statsbeat.countException(u.StatsbeatNetworkCategory.Breeze,o,{name:"Circular Redirect",message:"Error sending telemetry because of circular redirects."}),"function"==typeof n&&n("Error sending telemetry because of circular redirects.");else y._numConsecutiveRedirects=0,"function"==typeof n&&n(r),y._logInfo(r),"function"==typeof y._onSuccess&&y._onSuccess(r)}))}));f.setTimeout(e.HTTP_TIMEOUT,(function(){y._requestTimedOut=!0,f.abort()})),f.on("error",(function(r){if(y._isStatsbeatSender&&!y._statsbeatHasReachedIngestionAtLeastOnce&&y._statsbeatFailedToIngest(),y._numConsecutiveFailures++,y._statsbeat&&y._statsbeat.countException(u.StatsbeatNetworkCategory.Breeze,o,r),!y._enableDiskRetryMode||y._numConsecutiveFailures>0&&y._numConsecutiveFailures%e.MAX_CONNECTION_FAILURES_BEFORE_WARN==0){var i="Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:";y._enableDiskRetryMode&&(i="Ingestion endpoint could not be reached "+y._numConsecutiveFailures+" consecutive times. There may be resulting telemetry loss. Most recent error:"),y._logWarn(i,d.dumpObj(r))}else i="Transient failure to reach ingestion endpoint. This batch of telemetry items will be retried. Error:",y._logInfo(i,d.dumpObj(r));y._onErrorHelper(r),"function"==typeof n&&(r?(y._requestTimedOut&&(r.name="telemetry timeout",r.message="telemetry request timed out"),n(d.dumpObj(r))):n("Error sending telemetry")),y._enableDiskRetryMode&&y._storeToDisk(t)})),f.write(c),f.end()})),i.label=5;case 5:return[2]}}))}))},e.prototype.saveOnCrash=function(e){this._enableDiskRetryMode&&this._storeToDiskSync(d.stringify(e))},e.prototype._isRetriable=function(e){return 206===e||401===e||403===e||408===e||429===e||500===e||502===e||503===e||504===e},e.prototype._logInfo=function(t){for(var n=[],r=1;r=3&&this._shutdownStatsbeat())},e.prototype._storeToDisk=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,a,c,u;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),this._logInfo("Checking existence of data storage directory: "+this._tempDir),[4,p.confirmDirExists(this._tempDir)];case 1:return i.sent(),[3,3];case 2:return t=i.sent(),this._logWarn("Failed to create folder to put telemetry: "+d.dumpObj(t)),this._onErrorHelper(t),[2];case 3:return i.trys.push([3,5,,6]),[4,m.FileAccessControl.applyACLRules(this._tempDir)];case 4:return i.sent(),[3,6];case 5:return n=i.sent(),this._logWarn("Failed to apply file access control to folder: "+d.dumpObj(n)),this._onErrorHelper(n),[2];case 6:return i.trys.push([6,8,,9]),[4,p.getShallowDirectorySize(this._tempDir)];case 7:return(r=i.sent())>this._maxBytesOnDisk?(this._logWarn("Not saving data due to max size limit being met. Directory size in bytes is: "+r),[2]):[3,9];case 8:return o=i.sent(),this._logWarn("Failed to read directory for retriable telemetry: "+d.dumpObj(o)),this._onErrorHelper(o),[2];case 9:return i.trys.push([9,11,,12]),a=(new Date).getTime()+".ai.json",c=s.join(this._tempDir,a),this._logInfo("saving data to disk at: "+c),[4,p.writeFileAsync(c,d.stringify(e),{mode:384})];case 10:return i.sent(),[3,12];case 11:return u=i.sent(),this._logWarn("Failed to persist telemetry to disk: "+d.dumpObj(u)),this._onErrorHelper(u),[2];case 12:return[2]}}))}))},e.prototype._storeToDiskSync=function(e){try{this._logInfo("Checking existence of data storage directory: "+this._tempDir),o.existsSync(this._tempDir)||o.mkdirSync(this._tempDir),m.FileAccessControl.applyACLRulesSync(this._tempDir);var t=p.getShallowDirectorySizeSync(this._tempDir);if(t>this._maxBytesOnDisk)return void this._logInfo("Not saving data due to max size limit being met. Directory size in bytes is: "+t);var n=(new Date).getTime()+".ai.json",r=s.join(this._tempDir,n);this._logInfo("saving data before crash to disk at: "+r),o.writeFileSync(r,e,{mode:384})}catch(e){this._logWarn("Error while saving data to disk: "+d.dumpObj(e)),this._onErrorHelper(e)}},e.prototype._sendFirstFileOnDisk=function(){return r(this,void 0,void 0,(function(){var e,t,n,r,o,a;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,6,,7]),[4,p.readdirAsync(this._tempDir)];case 1:return(e=(e=i.sent()).filter((function(e){return s.basename(e).indexOf(".ai.json")>-1}))).length>0?(t=e[0],n=s.join(this._tempDir,t),[4,p.readFileAsync(n)]):[3,5];case 2:return r=i.sent(),[4,p.unlinkAsync(n)];case 3:return i.sent(),o=JSON.parse(r.toString()),[4,this.send(o)];case 4:i.sent(),i.label=5;case 5:return[3,7];case 6:return a=i.sent(),this._onErrorHelper(a),[3,7];case 7:return[2]}}))}))},e.prototype._onErrorHelper=function(e){"function"==typeof this._onError&&this._onError(e)},e.prototype._fileCleanupTask=function(){return r(this,void 0,void 0,(function(){var t,n,r,o,a,c=this;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,6,,7]),[4,p.readdirAsync(this._tempDir)];case 1:if(!((t=(t=i.sent()).filter((function(e){return s.basename(e).indexOf(".ai.json")>-1}))).length>0))return[3,5];n=0,i.label=2;case 2:return nr?(o=s.join(this._tempDir,t[n]),[4,p.unlinkAsync(o).catch((function(e){c._onErrorHelper(e)}))]):[3,4]):[3,5];case 3:i.sent(),i.label=4;case 4:return n++,[3,2];case 5:return[3,7];case 6:return"ENOENT"!=(a=i.sent()).code&&this._onErrorHelper(a),[3,7];case 7:return[2]}}))}))},e.TAG="Sender",e.WAIT_BETWEEN_RESEND=6e4,e.MAX_BYTES_ON_DISK=52428800,e.MAX_CONNECTION_FAILURES_BEFORE_WARN=5,e.CLEANUP_TIMEOUT=36e5,e.FILE_RETEMPTION_PERIOD=6048e5,e.TEMPDIR_PREFIX="appInsights-node",e.HTTP_TIMEOUT=2e4,e}();e.exports=g},2570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isContentTypeHeaderHtml=t.insertSnippetByIndex=t.getContentEncodingFromHeaders=t.isSupportedContentEncoding=t.findBufferEncodingType=t.isBufferType=t.getBrotliDecompressSync=t.getBrotliDecompressAsync=t.getBrotliCompressSync=t.getBrotliCompressAsync=t.inflateAsync=t.deflateAsync=t.gunzipAsync=t.gzipAsync=t.isBrotliSupperted=t.bufferEncodingTypes=t.contentEncodingMethod=void 0;var r,i=n(9796),o=n(3837);!function(e){e.GZIP="gzip",e.DEFLATE="deflate",e.BR="br"}(r=t.contentEncodingMethod||(t.contentEncodingMethod={})),t.bufferEncodingTypes=["utf8","utf16le","latin1","base64","hex","ascii","binary","ucs2"],t.isBrotliSupperted=function(){var e=process.versions.node.split(".")[0];return parseInt(e)>=10},t.gzipAsync=o.promisify(i.gzip),t.gunzipAsync=o.promisify(i.gunzip),t.deflateAsync=o.promisify(i.deflate),t.inflateAsync=o.promisify(i.inflate),t.getBrotliCompressAsync=function(e){return t.isBrotliSupperted()&&"function"==typeof e.brotliCompress?o.promisify(e.brotliCompress):null},t.getBrotliCompressSync=function(e){return t.isBrotliSupperted()&&"function"==typeof e.brotliCompressSync?e.brotliCompressSync:null},t.getBrotliDecompressAsync=function(e){return t.isBrotliSupperted()&&"function"==typeof e.brotliDecompress?o.promisify(e.brotliDecompress):null},t.getBrotliDecompressSync=function(e){return t.isBrotliSupperted()&&"function"==typeof e.brotliDecompressSync?e.brotliDecompressSync:null},t.isBufferType=function(e,t){var n=t||"utf8",r=!1;return Buffer.isEncoding(n)&&(r=Buffer.from(e.toString(n),n).toJSON().data.toString()===e.toJSON().data.toString()),r},t.findBufferEncodingType=function(e){var n=null;for(var r in t.bufferEncodingTypes){var i=t.bufferEncodingTypes[r];if(Buffer.isEncoding(i)&&t.isBufferType(e,i)){n=i;break}}return n},t.isSupportedContentEncoding=function(e){var t=null;switch(e){case"gzip":t=r.GZIP;break;case"br":t=r.BR;break;case"deflate":t=r.DEFLATE}return t},t.getContentEncodingFromHeaders=function(e){var n=[],r=e.getHeader("Content-Encoding");if(!r)return null;if("string"==typeof r){var i=t.isSupportedContentEncoding(r);i&&n.push(i)}return n},t.insertSnippetByIndex=function(e,t,n){return e<0?null:t.substring(0,e)+'