PageSourceSearch

https://zilicred.com.br/pt-BR/_next/static/chunks/9107.60932e64cc35d10e.js

js zilicred.com.br collected 2026-10-06 16:19:31 UTC 211,368 bytes, 4 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9107],{19738:function(t,e,n){n.d(e,{W:function(){return i}});var r=n(4793);function i(t,e){e.silentMultipleInit||r.j.error(`${t} is already initialized.`)}},36105:function(t,e,n){n.d(e,{r:function(){return a},y:function(){return s}});var r=n(4793),i=n(73677),o=n(75571);function a(t){let e={version:"7.15.0",onReady(t){t()},...t};return Object.defineProperty(e,"_setDebug",{get:()=>o.y,enumerable:!1}),e}function s(t,e,n){let o=t[e];o&&!o.q&&o.version&&r.j.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=n,o?.q&&o.q.forEach(t=>(0,i.Z)(t,"onReady callback threw an error:")())}},84792:function(t,e,n){let r;n.d(e,{$k:function(){return f},EZ:function(){return u},Oo:function(){return c},jO:function(){return d},yw:function(){return l}});var i,o=n(46647),a=n(50160),s=n(52148);let u=((i={}).BEFORE_UNLOAD="beforeunload",i.CLICK="click",i.DBL_CLICK="dblclick",i.KEY_DOWN="keydown",i.LOAD="load",i.POP_STATE="popstate",i.SCROLL="scroll",i.TOUCH_START="touchstart",i.TOUCH_END="touchend",i.TOUCH_MOVE="touchmove",i.VISIBILITY_CHANGE="visibilitychange",i.PAGE_SHOW="pageshow",i.FREEZE="freeze",i.RESUME="resume",i.DOM_CONTENT_LOADED="DOMContentLoaded",i.POINTER_DOWN="pointerdown",i.POINTER_UP="pointerup",i.POINTER_CANCEL="pointercancel",i.HASH_CHANGE="hashchange",i.PAGE_HIDE="pagehide",i.MOUSE_DOWN="mousedown",i.MOUSE_UP="mouseup",i.MOUSE_MOVE="mousemove",i.FOCUS="focus",i.BLUR="blur",i.CONTEXT_MENU="contextmenu",i.RESIZE="resize",i.CHANGE="change",i.INPUT="input",i.PLAY="play",i.PAUSE="pause",i.SECURITY_POLICY_VIOLATION="securitypolicyviolation",i.SELECTION_CHANGE="selectionchange",i.STORAGE="storage",i.UNHANDLED_REJECTION="unhandledrejection",i);function c(t,e,n,r){return l(t,[e],n,r)}function l(t,e,n,{once:i,capture:a,passive:u}={}){let c=(0,s.zk)(t=>{(t.isTrusted||t.__ddIsTrusted||!1!==r)&&(i&&p(),n(t))}),l=u?{capture:a,passive:u}:a,d=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,f=(0,o.I)(d,"addEventListener");function p(){let n=(0,o.I)(d,"removeEventListener");e.forEach(e=>n.call(t,e,c,l))}return e.forEach(e=>f.call(t,e,c,l)),{stop:p}}function d(t,e){if(!t)return!1;try{return c(t,e,a.Z).stop(),!0}catch{return!1}}function f(t){!0!==r&&(r=t??!1)}},76232:function(t,e,n){let r,i;n.d(e,{$1:function(){return d},HZ:function(){return g},OC:function(){return f},d8:function(){return c},ej:function(){return l},kT:function(){return p}});var o=n(99346),a=n(78179),s=n(72097),u=n(43750);function c(t,e,n=0,r){let i=new Date;i.setTime(i.getTime()+n);let o=`expires=${i.toUTCString()}`,a=r?.crossSite?"none":"strict",s=r?.domain?`;domain=${r.domain}`:"",u=r?.secure?";secure":"",c=r?.partitioned?";partitioned":"";document.cookie=`${t}=${e};${o};path=/;samesite=${a}${s}${u}${c}`}function l(t){let e=(0,o.MY)(document.cookie,t);if(""!==e)return e}function d(t){return(0,o.ql)(document.cookie).get(t)||[]}function f(t){return r||(r=(0,o.kq)(document.cookie)),r.get(t)}function p(t,e){c(t,"",0,e)}function g(t){let e={};if(e.secure=t.useSecureSessionCookie||t.usePartitionedCrossSiteSessionCookie,e.crossSite=t.usePartitionedCrossSiteSessionCookie,e.partitioned=t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains){let t=function(t=a.globalObject.location?.hostname??"",e="undefined"!=typeof document?document.referrer:""){if("undefined"!=typeof document){if(void 0===i){let n=function(t,e){try{return t||(0,s.Q2)(e).hostname}catch{}}(t,e);if(n){let t=`dd_site_test_${(0,o.DO)()}`,e=n.split("."),r=e.pop();for(;e.length&&!l(t);)r=`${e.pop()}.${r}`,c(t,"test",u.WT,{domain:r});p(t,{domain:r}),i=r}}return i}}();if(!t)return;e.domain=t}return e}},47529:function(t,e,n){n.d(e,{El:function(){return h},ad:function(){return g},k6:function(){return y},oX:function(){return p}});var r=n(11374),i=n(99346),o=n(76232),a=n(4793),s=n(23418),u=n(23412),c=n(84792),l=n(17245),d=n(78179),f=n(43750);async function p(t,e){let n=`dd_cookie_test_${(0,i.DO)()}`,r="test",o=t(n,e);try{return await o.getAllAndSet(()=>({value:r,expireDelay:f.yR})),(await o.getAll()).includes(r)}catch(t){return a.j.error(t),!1}finally{try{await o.delete()}catch{}}}function g(t,e){let n=(0,s.C)(d.globalObject.cookieStore),i=new r.y$(()=>(0,c.Oo)(n,"change",e=>{(e.changed.some(e=>
1e.name===t)||e.deleted.some(e=>e.name===t))&&i.notify()}).stop);return{getAll:async()=>(await n.getAll(t)).map(t=>t.value),delete:()=>n.delete({name:t,domain:e.domain,path:"/",partitioned:e.partitioned}),async getAllAndSet(r){let i=await n.getAll(t),{value:a,expireDelay:s}=r(i.map(t=>t.value));try{await n.set({name:t,value:a,expires:(0,f.m6)()+s,path:"/",sameSite:e.crossSite?"none":"strict",domain:e.domain,secure:e.secure,partitioned:e.partitioned})}catch(n){if(!t.startsWith("dd_cookie_test_")){let r=(0,o.$1)(t);(0,l.eJ)("Failed to set cookie using Cookie Store API",{"error.message":n.message,newValue:a,cookieOptions:{...e},cookies:i.map(t=>({...t})),cookieCount:i.length,documentCookies:r})}}},observable:i}}let m=f.WT;function h(t,e){let n=(0,o.$1)(t),i=new r.y$(()=>{let e=(0,u.Zi)(()=>{a((0,o.$1)(t))},m);return()=>{(0,u.cv)(e)}});function a(t){String(t)!==String(n)&&(n=t,i.notify())}return{getAll:()=>Promise.resolve((0,o.$1)(t)),async getAllAndSet(n){let{value:r,expireDelay:i}=n((0,o.$1)(t));(0,o.d8)(t,r,i,e),await Promise.resolve(),a([r])},async delete(){(0,o.kT)(t,e),await Promise.resolve(),a([])},observable:i}}function y(){let t=(0,s.C)(d.globalObject.cookieStore);return!!(t&&(0,c.jO)(t,"change"))}},52400:function(t,e,n){n.d(e,{h:function(){return o}});var r=n(46647),i=n(78179);function o(t,e){return(0,r.I)(i.globalObject,"fetch")(t,e)}},14800:function(t,e,n){let r;n.d(e,{a:function(){return m},y:function(){return y}});var i,o=n(11374),a=n(88386),s=n(49126),u=n(50160),c=n(97777);async function l(t){let e=t.getReader(),n=[];for(;;){let t=await e.read();if(t.done)break;n.push(t.value)}return e.cancel().catch(u.Z),(0,c.Kb)(n)}
1var d=n(78179),f=n(72097),p=n(52148),g=n(43750);let m=((i={})[i.IGNORE=0]="IGNORE",i[i.COLLECT=1]="COLLECT",i),h=[];function y({responseBodyAction:t}={}){return t&&h.push(t),r||(r=new o.y$(t=>{if(!d.globalObject.fetch)return;let{stop:e}=(0,a.Su)(d.globalObject,"fetch",e=>(function({parameters:t,onPostCall:e,handlingStack:n},r){let[i,o]=t,a=o?.method;void 0===a&&i instanceof Request&&(a=i.method);let s=void 0!==a?String(a).toUpperCase():"GET",u=i instanceof Request?i.url:(0,f.D5)(String(i)),c={state:"start",init:o,input:i,method:s,startClocks:(0,g.$I)(),url:u,handlingStack:n,isAbortedOnStart:i instanceof Request&&i.signal?.aborted||o?.signal?.aborted||!1};r.notify(c),t[0]=c.input,t[1]=c.init,e(t=>{_(r,t,c).catch(p.$y)})})(e,t),{computeHandlingStack:!0});return e})),r}async function _(t,e,n){let r;try{r=await e}catch(e){t.notify({...n,state:"resolve",status:0,isAborted:n.init?.signal?.aborted||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e});return}if(n.response=r,n.status=r.status,n.responseType=r.type,n.isAborted=!1,1===h.reduce((t,e)=>Math.max(t,e(n)),0)){let t=(0,s.u)(r);if(t?.body)try{let e=await l(t.body);n.responseBody=new TextDecoder().decode(e)}catch{}}t.notify({...n,state:"resolve"})}},1890:function(t,e,n){n.d(e,{FP:function(){return u},PT:function(){return c},k$:function(){return s}});var r=n(11374),i=n(84792),o=n(443),a=n(78179);let s={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function u(){return new r.y$(t=>{let e=a.globalObject.window;if(!e)return;let{stop:n}=(0,i.yw)(e,["visibilitychange","freeze"],e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:s.HIDDEN}):"freeze"===e.type&&t.notify({reason:s.FROZEN})},{capture:!0}),r=(0,i.Oo)(e,"beforeunload",()=>{t.notify({reason:s.UNLOADING})}).stop;return()=>{n(),r()}})}function c(t){return(0,o.TT)(s).includes(t)}},21562:function(t,e,n){n.d(e,{T:function(){return o},_:function(){return a}});var r=n(50160),i=n(84792);function o(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:r.Z}):(0,i.Oo)(window,"complete"===t?"load":"DOMContentLoaded",e,{once:!0})}function a(t){return new Promise(e=>{o(t,e)})}},84562:function(t,e,n){let r;n.d(e,{S:function(){return d}});var i=n(11374),o=n(88386),a=n(84792),s=n(78179),u=n(72097),c=n(43750);let l=new WeakMap;function d(){return r||(r="XMLHttpRequest"in s.globalObject?new i.y$(t=>{let{stop:e}=(0,o.Su)(XMLHttpRequest.prototype,"open",f),{stop:n}=(0,o.Su)(XMLHttpRequest.prototype,"send",e=>{(function({target:t,parameters:[e],handlingStack:n},r){let i=l.get(t);if(!i)return;i.state="start",i.startClocks=(0,c.$I)(),i.isAborted=!1,i.xhr=t,i.handlingStack=n,i.requestBody=e;let s=!1,{stop:u}=(0,o.Su)(t,"onreadystatechange",()=>{t.readyState===XMLHttpRequest.DONE&&d()}),d=()=>{f(),u(),s||(s=!0,i.duration=(0,c._J)(i.startClocks.timeStamp,(0,c.n$)()),i.status=t.status,"string"==typeof t.response&&(i.responseBody=t.response),r.notify({...i,state:"complete"}))},{stop:f}=(0,a.Oo)(t,"loadend",d);r.notify(i)})(e,t)},{computeHandlingStack:!0}),{stop:r}=(0,o.Su)(XMLHttpRequest.prototype,"abort",p);return()=>{e(),n(),r()}}):new i.y$),r}function f({target:t,parameters:[e,n]}){l.set(t,{state:"open",method:String(e).toUpperCase(),url:(0,u.D5)(String(n))})}function p({target:t}){let e=l.get(t);e&&(e.isAborted=!0)}},24937:function(t,e,n){n.d(e,{l3:function(){return c}});var r=n(4793),i=n(80483),o=n(23418);let a=["chrome-extension://","moz-extension://"];function s(t){return a.some(e=>t.includes(e))}var u=n(78179);function c(t,e){let n=(0,o.C)(u.globalObject.location),a=n?n.origin:"",c=t.allowedTrackingOrigins;if(!c)return!function(t,e=""){return!s(t)&&s(e.split("\n").filter(t=>{let e=t.trim();return e.length&&/^at\s+|@/.test(e)})[1]||"")}(a,e)||(r.j.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let l=(0,i.v)(c,a);return l||r.j.error("SDK initialized on a non-allowed domain."),l}},98784:function(t,e,n){n.d(e,{r:function(){return k},Q:function(){return A}});var r,i=n(11374),o=n(23418),a=n(17245),s=n(50160),u=n(61190),c=n(88386),l=n(84792),d=n(91620),f=n(50353),p=n(44286),g=n(78179),m=n(43750);function h(){return new i.y$(t=>
1{let e=(e,n)=>{let r=(0,p.AP)({stackTrace:n,originalError:e,startClocks:(0,m.$I)(),nonErrorPrefix:"Uncaught",source:f.zH.SOURCE,handling:"unhandled"});t.notify(r)},{stop:n}=(0,c.Su)(g.globalObject,"onerror",({parameters:[t,n,r,i,o]})=>{let a;(0,d.V)(o)||(a=(0,u.f)(t,n,r,i)),e(o??t,a)}),{stop:r}=(0,l.jO)(g.globalObject.window,"unhandledrejection")?(0,c.Su)(g.globalObject,"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")}):{stop:s.Z};return()=>{n(),r()}})}var y=n(84562),_=n(14800),b=n(98064),v=n(16172),w=n(66292),E=n(58581),S=n(52148);let C={},k=((r={})[r.RUNTIME_ERROR=0]="RUNTIME_ERROR",r[r.FETCH=1]="FETCH",r[r.XHR=2]="XHR",r[r.CONSOLE=3]="CONSOLE",r);function A(){let t=new i.fk(500,t=>{(0,a.eJ)("Early data collection dropped data on unbuffer",{count:t})}),e=[];function n(n,r){e.push(r.subscribe(e=>{t.notify({type:n,data:e})}))}return n(0,(0,o.C)(h)()),n(1,(0,_.y)()),n(2,(0,y.S)()),n(3,function(t){let e=t.map(t=>(C[t]||(C[t]=new i.y$(e=>{let n=E.jG[t];return E.jG[t]=(...r)=>{n.apply(console,r);let i=(0,b.Xp)("console error");(0,S.L6)(()=>{e.notify(function(t,e,n){let r=t.map(t=>"string"==typeof t?(0,w.N)(t):(0,d.V)(t)?(0,b.jN)((0,u._)(t)):(0,v.l)((0,w.N)(t),void 0,2)).join(" ");if(e===E.vA.error){let i=t.find(d.V),o=(0,p.AP)({originalError:i,handlingStack:n,startClocks:(0,m.$I)(),source:f.zH.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=r,{api:e,message:r,handlingStack:n,error:o}}return{api:e,message:r,error:void 0,handlingStack:n}}(r,t,i))})},()=>{E.jG[t]=n}})),C[t]));return(0,i.$Z)(...e)}(Object.values(E.vA))),{observable:t,stop:()=>e.forEach(t=>t.unsubscribe())}}},90470:function(t,e,n){n.d(e,{JZ:function(){return u},Jj:function(){return o},S2:function(){return s},tg:function(){return a}});var r=n(92389),i=n(18789);let o={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},a={ALL:"all",SAMPLED:"sampled"},s={clientToken:{type:"string",required:!0},service:{type:"string"},env:{type:"string"},version:{type:"string"},site:{type:"site",default:i.D_},proxy:{type:"union",variants:[{type:"string"},{type:"function",signature:void 0}]},sessionSampleRate:{type:"percentage",default:100},telemetrySampleRate:{type:"percentage",default:20},telemetryConfigurationSampleRate:{type:"percentage",default:5},telemetryUsageSampleRate:{type:"percentage",default:5},silentMultipleInit:{type:"boolean",default:!1,strict:!1},storeContextsAcrossPages:{type:"boolean",default:!1,strict:!1},trackAnonymousUser:{type:"boolean",default:!0,strict:!1},useSecureSessionCookie:{type:"boolean",default:!1,strict:!1},usePartitionedCrossSiteSessionCookie:{type:"boolean",default:!1,strict:!1},trackSessionAcrossSubdomains:{type:"boolean",default:!1,strict:!1},allowedTrackingOrigins:{type:"match-option",multiple:!0,strict:!1},trackingConsent:{type:"enum",values:r.h,default:r.h.GRANTED},beforeSend:{type:"function",signature:void 0},source:{type:"enum",values:["browser","flutter","unity"],default:"browser",strict:!1},sessionPersistence:{type:"enum",values:["cookie","local-storage","memory"],multiple:!0,strict:!1},replica:{type:"schema",schema:{clientToken:{type:"string",required:!0},applicationId:{type:"string"}}},datacenter:{type:"string"},sdkVersion:{type:"string"},variant:{type:"string"}};function u(t){return{session_sample_rate:t.sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:t.telemetryUsageSampleRate,use_before_send:!!t.beforeSend,use_partitioned_cross_site_session_cookie:t.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,track_anonymous_user:t.trackAnonymousUser,session_persistence:Array.isArray(t.sessionPersistence)?t.sessionPersistence[0]:t.sessionPersistence,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents,tracking_consent:t.trackingConsent,use_allowed_tracking_origins:Array.isArray(t.allowedTrackingOrigins),source:t.source,sdk_version:t.sdkVersion,variant:t.variant}}},63851:function(t,e,n){n.d(e,{T:function(){return i}});var r=n(78179);function i(){let{navigator:t}=r.globalObject;return{status:t?.onLine?"connected":"not_connected",interfaces:t?.connection?.type?[t.connection.type]:void 0,effective_type:t?.connection?.effectiveType}}},89083:function(t,e,n){n.d(e,{OL:function(){return i},gy:function(){return r}});let r={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},i={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"}},58590:function(t,e,n){n.d(e,{W:function(){return l}});var r=n(11374),i=n(4793),o=n(66292),a=n(80486),s=n(82336);function u(t,e,n){let r={...t};for(let[t,{required:o,type:a}]of Object.entries(e))"string"!==a||c(r[t])||(r[t]=String(r[t])),o&&c(r[t])&&i.j.warn(`The property ${t} of ${n} is required; context will not be sent to the intake.`);return r}function c(t){return null==t||""===t}function l(t="",{propertiesConfig:e={}}={}){let n={},c=new r.y$,l={getContext:()=>(0,s.I8)(n),setContext:r=>{!function(t){let e="object"===(0,a.oL)(t);return e||i.j.error("Unsupported context:",t),e}(r)?l.clearContext():n=(0,o.N)(u(r,e,t)),c.notify()},setContextProperty:(r,i)=>{n=(0,o.N)(u({...n,[r]:i},e,t)),c.notify()},removeContextProperty:r=>{delete n[r],u(n,e,t),c.notify()},clearContext:()=>{n={},c.notify()},changeObservable:c};return l}},50440:function(t,e,n){n.d(e,{h:function(){return a},z:function(){return o}});var r=n(17245),i=n(52148);function o(t,e,n,o){return(0,i.zk)((...i)=>(o&&(0,r.eG)({feature:o}),t()[e][n](...i)))}function a(t,e,n){t.changeObservable.subscribe(()=>{let r=t.getContext();n.notify(t=>t[e].setContext(r))})}},6499:function(t,e,n){n.d(e,{ue:function(){return s}});var r=n(46420),i=n(84792),o=n(82336);let a=[];function s(t,e,n){if("undefined"==typeof window||"undefined"==typeof localStorage)return;let s=`_dd_c_${e}_${n}`;a.push((0,i.Oo)(window,"storage",({key:e})=>{s===e&&t.setContext(c())})),t.changeObservable.subscribe(function(){localStorage.setItem(s,JSON.stringify(t.getContext()))});let u=(0,o.$e)(c(),t.getContext());function c(){let t=localStorage.getItem(s);return t?(0,r.Cy)(t)??{}:{}}(0,r.Qr)(u)||t.setContext(u)}},2604:function(t,e,n){n.d(e,{d:function(){return u},p:function(){return s}});var r=n(46420),i=n(58590),o=n(6499),a=n(9200);function s(t,e,n){let i=u();return e.storeContextsAcrossPages&&(0,o.ue)(i,n,4),t.register(()=>{let t=i.getContext();return(0,r.Qr)(t)||!t.id?a.kb:{account:t}}),i}function u(){return(0,i.W)("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}},11639:function(t,e,n){n.d(e,{$:function(){return o},N:function(){return a}});var r=n(58590),i=n(6499);function o(t,e,n,r){let o=a();return e.storeContextsAcrossPages&&(0,i.ue)(o,n,2),t.register(()=>
1{let t=o.getContext();return r?{context:t}:t}),o}function a(){return(0,r.W)("global context")}},12835:function(t,e,n){let r;n.d(e,{G:function(){return a}});var i=n(99346);let o="_dd_tab_id";function a(t){let e=(r||(r=function(){try{let t=sessionStorage.getItem(o);if(t)return t;let e=(0,i.DO)();return sessionStorage.setItem(o,e),e}catch{return}}()??(0,i.DO)()),r);t.register(()=>({tab:{id:e}}))}},59881:function(t,e,n){n.d(e,{W:function(){return i}});var r=n(9200);function i(t,e,n){t.register(({startTime:t})=>{let i=e.findTrackedSession(t);return i?{session:{id:i.id},anonymous_id:i.anonymousId,...n}:r.kb})}},62019:function(t,e,n){n.d(e,{c:function(){return s},f:function(){return u}});var r=n(46420),i=n(58590),o=n(6499),a=n(9200);function s(t,e,n,i){let s=u();return e.storeContextsAcrossPages&&(0,o.ue)(s,i,1),t.register(({eventType:t,startTime:i})=>{let o=s.getContext(),u=n.findTrackedSession(i);return(u?.anonymousId&&!o.anonymous_id&&e.trackAnonymousUser&&(o.anonymous_id=u.anonymousId),(0,r.Qr)(o))?a.kb:{type:t,usr:o}}),s}function u(){return(0,i.W)("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}},91703:function(t,e,n){var r;n.d(e,{C:function(){return i}});let i=((r={})[r.REPLAY=1]="REPLAY",r[r.RUM=2]="RUM",r[r.TELEMETRY=4]="TELEMETRY",r[r.PROFILING=6]="PROFILING",r)},44286:function(t,e,n){n.d(e,{AP:function(){return f},Lg:function(){return d},u5:function(){return p}});var r=n(61190),i=n(98064),o=n(16172),a=n(66292),s=n(91620),u=n(44403),c=n(80486);function l({originalError:t,stackTrace:e,source:n,useFallbackStack:r=!0,nonErrorPrefix:u}){let c=(0,s.V)(t);return{source:n,type:e?e.name:void 0,message:e?.message&&e?.name?e.message:c?"Empty message":u?`${u} ${(0,o.l)((0,a.N)(t))}`:(0,o.l)((0,a.N)(t)),stack:e?(0,i.P3)(e):r?s.K:void 0}}function d(t){return t?.stack.map(t=>t.url).filter(t=>!!t)??[]}function f({stackTrace:t,originalError:e,handlingStack:n,componentStack:i,startClocks:o,nonErrorPrefix:a,useFallbackStack:f=!0,source:p,handling:g}){let m=t??((0,s.V)(e)?(0,r._)(e):void 0),h=(0,s.V)(e)?function(t){let e=[],n=t.cause;for(;null!=n&&e.length<10;){let t=(0,s.V)(n),i=t?(0,r._)(n):void 0;e.push({originalError:n,stackTrace:i}),n=t?n.cause:void 0}return e}(e):[],y=l({originalError:e,stackTrace:m,source:p,useFallbackStack:f,nonErrorPrefix:a}),_=h.map(({originalError:t,stackTrace:e})=>l({originalError:t,stackTrace:e,source:p,useFallbackStack:!1}));return{startClocks:o,handling:g,handlingStack:n,componentStack:i,originalError:e,...y,debugIds:function(t,e){let n=e.flatMap(({stackTrace:t})=>d(t));return(0,u.J)(d(t).concat(n))}(m,h),causes:_.length?_:void 0,fingerprint:(0,s.V)(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0,context:function(t){if((0,c.sK)(t))return t.dd_context}(e)}}function p(t){return/@ (.+)/.exec(t)?.[1]}},50353:function(t,e,n){var r,i;n.d(e,{Xw:function(){return s},j9:function(){return a},zH:function(){return o}});let o={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"},a=((r={}).UNCAUGHT="Uncaught",r.PROVIDED="Provided",r),s=((i={}).HANDLED="handled",i.UNHANDLED="unhandled",i)},91620:function(t,e,n){n.d(e,{K:function(){return r},V:function(){return i}});let r="No stack, consider using an instance of Error";function i(t){try{return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}catch{return!1}}},58776:function(t,e,n){n.d(e,{K:function(){return o}});var r=n(23412),i=n(43750);function o(t,e,n=3e3){let o=0,a=!1;return{isLimitReached(){if(0===o&&(0,r.iK)(()=>{o=0},i.yR),(o+=1)<=n||a)return a=!1,!1;if(o===n+1){a=!0;try{e(`Reached max number of ${t}s by minute: ${n}`)}finally{a=!1}
1}return!0}}}},88102:function(t,e,n){n.d(e,{_:function(){return d},v:function(){return f}});var r=n(11374),i=n(99346),o=n(98064),a=n(84792),s=n(50353),u=n(44403),c=n(52148),l=n(43750);let d={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function f(t){let e=[];t.includes(d.cspViolation)&&e.push(new r.y$(t=>{if(!(0,a.jO)(document,"securitypolicyviolation"))return;let{stop:e}=(0,a.Oo)(document,"securitypolicyviolation",e=>{t.notify(function(t){let e=`'${t.blockedURI}' blocked by '${t.effectiveDirective}' directive`;return p({type:t.effectiveDirective,message:`${d.cspViolation}: ${e}`,originalError:t,csp:{disposition:t.disposition},stack:g(t.effectiveDirective,t.originalPolicy?`${e} of the policy "${(0,i._z)(t.originalPolicy,100,"...")}"`:"no policy",t.sourceFile,t.lineNumber,t.columnNumber),debugIds:t.sourceFile?(0,u.J)([t.sourceFile]):void 0})}(e))});return e}));let n=t.filter(t=>t!==d.cspViolation);return n.length&&e.push(new r.y$(t=>{if(!window.ReportingObserver)return;let e=(0,c.zk)((e,n)=>e.forEach(e=>t.notify(function(t){let{type:e,body:n}=t;return p({type:n.id,message:`${e}: ${n.message}`,originalError:t,stack:g(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber),debugIds:n.sourceFile?(0,u.J)([n.sourceFile]):void 0})}(e)))),r=new window.ReportingObserver(e,{types:n,buffered:!0});return r.observe(),()=>{r.disconnect()}})),(0,r.$Z)(...e)}function p(t){return{startClocks:(0,l.$I)(),source:s.zH.REPORT,handling:"unhandled",...t}}function g(t,e,n,r,i){return n?(0,o.P3)({name:t,message:e,stack:[{func:"?",url:n,line:r??void 0,column:i??void 0}]}):void 0}},31781:function(t,e,n){n.d(e,{_:function(){return r},x:function(){return i}});let r={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",WEBSOCKET:"websocket",OTHER:"other"},i={FETCH:r.FETCH,XHR:r.XHR}},94952:function(t,e,n){function r(t,e){return t*e/100}n.d(e,{HQ:function(){return r},HR:function(){return o}});let i=new Map;function o(t,e){if(100===e)return!0;if(0===e)return!1;let n=i.get(e);if(t===n?.sessionId)return n.decision;let r=function(t,e){let n=1n<<64n;return Number(0xf6b75ab2bc471c7n*t%n)<=e/100*Number(n)}(BigInt(`0x${t.split("-")[4]}`),e);return i.set(e,{sessionId:t,decision:r}),r}},17432:function(t,e,n){n.d(e,{TN:function(){return i},_q:function(){return s},sr:function(){return o},uY:function(){return a}});var r=n(43750);let i=4*r.dV,o=15*r.yR,a=r.P5,s={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"}},45780:function(t,e,n){let r;n.d(e,{HX:function(){return G},ud:function(){return K}});var i=n(11374),o=n(99346),a=n(4793),s=n(23418),u=n(23412),c=n(50160),l=n(84792),d=n(17245),f=n(94599),p=n(94952),g=n(46420),m=n(443),h=n(17432);let y=/^([a-zA-Z]+)=([a-z0-9-]+)$/;var _=n(43750);function b(t){return t.created?Number(t.created):void 0}function v(t){let e=t.expire&&Number(t.expire),n=b(t);if(e&&n)return Math.min(e,n+h.TN)}function w(t,e){let n={isExpired:"1"};return e.trackAnonymousUser&&t?.anonymousId&&(n.anonymousId=t?.anonymousId),n}function E(t){return(0,g.Qr)(t)}function S(t){return void 0!==t.isExpired||!function(t){let e=v(t);return!!e&&(0,_.m6)()<e}(t)}function C(t){t.expire=String((0,_.m6)()+h.sr)}function k(t){return(0,m.qP)(t).map(([t,e])=>"anonymousId"===t?`aid=${e}`:`${t}=${e}`).join("&")}function A(t){let e={};return t&&(-1!==t.indexOf("&")||y.test(t))&&t.split("&").forEach(t=>{let n=y.exec(t);if(null!==n){let[,t,r]=n;"aid"===t?e.anonymousId=r:e[t]=r}}),e}
1function T(t,e){return E(t)?(e.trackAnonymousUser&&(t.anonymousId=(0,o.DO)()),w(t,e)):t}function O(t,e){if(E(t))return t;let n=t;return S(t)&&(n=w(t,e)),n.id||(n.id=(0,o.DO)(),n.created=String((0,_.m6)())),e.trackAnonymousUser&&!n.anonymousId&&(n.anonymousId=(0,o.DO)()),delete n.isExpired,C(n),n}var R=n(76232),x=n(47529);let I="_dd_s_v2",N="_dd_s";var L=n(52148);async function $(t){let e=(0,R.HZ)(t);if(e){if((0,x.k6)()&&await (0,x.oX)(x.ad,e))return{type:h._q.COOKIE,cookieOptions:e,cookieApi:1};if(await (0,x.oX)(x.El,e))return{type:h._q.COOKIE,cookieOptions:e,cookieApi:0}}}function D(t,e){return 1===t?(0,x.ad)(I,e):(0,x.El)(I,e)}function M(t,e){let n;for(let r of t.slice().reverse())if((n=A(r)).c===e)break;return delete n?.c,n??{}}function P(t){return(0|(t.domain?t.domain.split(".").length-1:0)<<1|(t.crossSite?1:0)).toString(16)}var U=n(78179);let z="_DD_SESSION";async function j(t){var e;for(let n of void 0!==(e=t.sessionPersistence)?e:U.j?[h._q.MEMORY]:[h._q.COOKIE]){let e=await function(t,e){switch(t){case h._q.COOKIE:return $(e);case h._q.LOCAL_STORAGE:return function(){try{let t=(0,o.DO)(),e=`_dd_test_${t}`;localStorage.setItem(e,t);let n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:h._q.LOCAL_STORAGE}:void 0}catch{return}}();case h._q.MEMORY:return{type:h._q.MEMORY};default:a.j.error(`Invalid session persistence '${String(t)}'`);return}}(n,t);if(void 0!==e)return e}}function V(t,e){switch(t.type){case h._q.COOKIE:return function(t,e){let{cookieOptions:n,cookieApi:o}=t,a=new i.y$,u=!!e.trackAnonymousUser,c=P(n),l=(0,s.C)(D)(o,n),d=!0;function f(t){return l.getAllAndSet(e=>{var r;let i=M(e,c);return d&&(0,g.Qr)(i)&&(i=M((0,R.$1)(N),c)),d=!1,{value:(r=t(i),k((0,g.Qr)(r)?r:{...r,c:P(n)})),expireDelay:u?h.uY:h.TN}})}return l.observable.subscribe(()=>{l.getAll().then(t=>{a.notify(M(t,c))}).catch(t=>(0,L.$y)(Error(`Error while reading session cookies on change: ${t}`)))}),{async setSessionState(t,e){"undefined"!=typeof navigator&&navigator.locks?await navigator.locks.request(I,()=>f(t)).catch(t=>{if(!(t instanceof Error&&("AbortError"===t.name||t.message.includes("no longer runnable")||t.message.includes("Responsible document is not fully active")||t.message.includes("The document is not active"))))throw t}):(r=(r??Promise.resolve()).then(()=>f(t)),await r)},sessionObservable:a}}(t,e);case h._q.LOCAL_STORAGE:return function(){let t=new i.y$(t=>(0,l.Oo)(window,"storage",e=>{"_dd_s_v2"===e.key&&e.storageArea===localStorage&&t.notify(A(e.newValue))}).stop),e=!0;return{async setSessionState(n,r){let i=A(localStorage.getItem(I));e&&E(i)&&(i=A(localStorage.getItem(N))),e=!1;let o=n(i);localStorage.setItem(I,k(o)),await Promise.resolve(),t.notify(o)},sessionObservable:t}}();case h._q.MEMORY:return function(){let t=U.globalObject;t._DD_SESSION||(t[z]={});let e=t[z],n=new i.y$,r=e.onChange;return e.onChange=t=>{r?.(t),n.notify(t)},{async setSessionState(t,n){let r=e.state??{},i=(0,g.mv)(t(r));e.state=i,await Promise.resolve(),e.onChange?.(i)},sessionObservable:n}}()}}let F=_.yR,q=12*_.dV,H=[];async function G(t,e){let n;let r=(0,_._q)(),o=new i.y$,g=new i.y$,m=await (0,s.C)(j)(t);if(!m){a.j.warn("No storage available for session. We will not send any data.");return}let h=(0,s.C)(V)(m,t),y=(0,f.p)({maxEntries:1e3});H.push(()=>y.stop());let k=!1,{throttled:A,cancel:R}=(0,c.P)(()=>{k=!1,h.setSessionState(e=>O(e,t),"expandOrRenewOnActivity").catch(L.$y)},_.WT);H.push(R),H.push(()=>(0,u.gr)(n));let x=!1;H.push(()=>{x=!0});let I=await N().catch(t=>(0,L.$y)(Error(`Error while resolving initial session state: ${t}`)));if(I&&!x){for(;!e.isGranted();)if(M(),await new Promise(t=>e.onGrantedOnce(t)),x||!(I=await N().catch(L.$y))||x)return;return y.add(P(I),(0,_.cQ)().relative),$(I),function(){let t=h.sessionObservable.subscribe(t=>{$(t),D(t)});H.push(()=>t.unsubscribe())}(),e.observable.subscribe(()=>{e.isGranted()?(k=!1,h.setSessionState(e=>O(e,t),"expandOrRenewOnConsent").catch(L.$y)):M()}),U.j||(function(t){let{stop:e}=(0,l.yw)(window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});H.push(e)}(()=>{e.isGranted()&&A()}),function(t){let e=()=>{"visible"===document.visibilityState&&t()},{stop:n}=(0,l.Oo)(document,"visibilitychange",e);H.push(n);let r=(0,u.Zi)(e,F);H.push(()=>{(0,u.cv)(r)})}(()=>{k||h.setSessionState(t=>(S(t)||E(t)||!t.id||C(t),t),"expandOnVisibility").catch(L.$y)}),function(t){let{stop:e}=(0,l.Oo)(window,"resume",t,{capture:!0});H.push(e)}(()=>{h.setSessionState(e=>T(e,t),"initializeOnResume").catch(L.$y)})),(0,d.qZ)("Session manager init metrics",{metrics:{duration:(0,_._J)(r,(0,_._q)())}}),{findSession:(t,e)=>y.find(t,e),findTrackedSession:(e,{returnInactive:n=!1,maxAge:r=q}={})=>{let i=y.find(e,{returnInactive:n});if(i&&"invalid"!==i.id&&(0,p.HR)(i.id,t.sessionSampleRate)&&!((0,_.m6)()-i.createdAt>r))return i},renewObservable:o,expireObservable:g,expire:M,updateSessionState:t=>{h.setSessionState(e=>({...e,...t}),"updateState").catch(L.$y)}}}async function N(){let e={};return await h.setSessionState(n=>e=O(T(n,t),t),"initialize"),e}function $(r){(0,u.gr)(n);let i=v(r);if(i){let r=i-(0,_.m6)();n=(0,u.iK)(()=>{h.setSessionState(n=>S(n)?(e.isGranted()||delete n.anonymousId,w(n,t)):n,"expireOnTimeout").catch(L.$y)},r)}}function D(t){let e=y.find(),n=e?.id!==void 0,r=void 0!==t.id,i=n&&r&&e.id!==t.id;if(n&&(!r||i)&&(k=!0,g.notify(),y.closeActive((0,_._q)())),r&&(!n||i)){if(k)return;y.add(P(t),(0,_._q)()),o.notify()}else n&&r&&!i&&(e.isReplayForced=!!t.forcedReplay)}function M(){R();let n=w(y.find(),t);e.isGranted()||delete n.anonymousId,D(n),h.setSessionState(n=>
1(e.isGranted()||delete n.anonymousId,w(n,t)),"expire").catch(L.$y)}function P(t){let e=b(t)??(0,_.n$)();return t.id?{id:t.id,isReplayForced:!!t.forcedReplay,anonymousId:t.anonymousId,createdAt:e}:{id:"invalid",isReplayForced:!1,anonymousId:void 0,createdAt:e}}}function K(){let t={id:(0,o.DO)(),isReplayForced:!1,anonymousId:void 0,createdAt:(0,_.n$)()};return{findSession:()=>t,findTrackedSession:()=>t,renewObservable:new i.y$,expireObservable:new i.y$,expire:c.Z,updateSessionState:e=>{t={...t,...e}}}}},44403:function(t,e,n){n.d(e,{J:function(){return l},q:function(){return d}});var r=n(61190),i=n(17245),o=n(78179);let a=new Map,s=new Set,u=!1;function c(){let t=o.globalObject.window?.DD_SOURCE_CODE_CONTEXT;if(!t)return;let e=!1,n=!1,c=!1;for(let[i,o]of Object.entries(t)){if(e=e||void 0!==o.ddDebugId,n=n||void 0!==o.service,c=c||void 0!==o.version,s.has(i))continue;s.add(i);let t=r._({stack:i}).stack[0]?.url;t&&!a.has(t)&&a.set(t,o)}u||(u=!0,(0,i.eG)({feature:"source-code-context",use_debug_id:e,use_service:n,use_version:c}))}function l(t){c();let e=new Set,n=[];for(let r of t){if(e.has(r))continue;e.add(r);let t=a.get(r)?.ddDebugId;void 0!==t&&n.push({url:r,id:t})}return n.length?n:void 0}function d(t){return c(),a.get(t)}},14339:function(t,e,n){n.d(e,{OT:function(){return f},Y9:function(){return d},m:function(){return p}});var r=n(76232),i=n(46420),o=n(78179);let a="datadog-synthetics-",s=`${a}public-id`,u=`${a}result-id`,c=`${a}injects-rum`,l=`${a}rum-context`;function d(){return!o.j&&!!(o.globalObject._DATADOG_SYNTHETICS_INJECTS_RUM||(0,r.OC)(c))}function f(){let t=function(){let t=o.globalObject._DATADOG_SYNTHETICS_RUM_CONTEXT;if(t)return t;let e=(0,r.OC)(l);return e?(0,i.Cy)(decodeURIComponent(e)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||(0,r.OC)(s),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||(0,r.OC)(u)}}();return"object"==typeof t&&null!==t&&"string"==typeof t.test_id&&"string"==typeof t.result_id?t:void 0}function p(){return!!f()}},20303:function(t,e,n){n.d(e,{C:function(){return a},MS:function(){return o},Y7:function(){return s}});var r=n(4793),i=n(58581);function o(t){let{env:e,service:n,version:r,datacenter:i,sdkVersion:o,variant:s}=t,u=[a("sdk_version",o??"7.15.0")];return e&&u.push(a("env",e)),n&&u.push(a("service",n)),r&&u.push(a("version",r)),i&&u.push(a("datacenter",i)),s&&u.push(a("variant",s)),u}function a(t,e){let n=e?`${t}:${e}`:t;return(n.length>200||RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(n))&&r.j.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${i.IA} ${i.aA}/getting_started/tagging/#defining-tags`),s(n)}function s(t){return t.replace(/,/g,"_")}},17245:function(t,e,n){let r;n.d(e,{T:function(){return N},y0:function(){return I},Uo:function(){return U},eJ:function(){return M},Sz:function(){return P},qZ:function(){return z},eG:function(){return j},VL:function(){return D}});var i,o,a=n(11374),s=n(4793),u=n(63356),c=n(50160),l=n(61190),d=n(98064),f=n(16172),p=n(91620),g=n(20303),m=n(26457),h=n(63851),y=n(18452),_=n(58729);let b="configuration",v="usage";var w=n(18789),E=n(35377),S=n(82336),C=n(78179),k=n(75571),A=n(52148),T=n(43750),O=n(9200);function R(t){return 0!==t&&100*Math.random()<=t}let x=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],I=((i={}).LOGS="browser-logs-sdk",i.RUM="browser-rum-sdk",i),N=((o={}).CUSTOMER_DATA_METRIC_NAME="Customer data measures",o.REMOTE_CONFIGURATION_METRIC_NAME="remote configuration metrics",o.RECORDER_INIT_METRICS_TELEMETRY_NAME="Recorder init metrics",o.SEGMENT_METRICS_TELEMETRY_NAME="Segment network request metrics",o.SESSION_MANAGER_INIT_METRICS_TELEMETRY_NAME="Session manager init metrics",o),L=[w.y7,w.tx];function $(){return r||(r=new a.fk(100)),r}function D(t,e,n,r){let i=new a.y$,{enabled:o,metricsEnabled:s}=function(t,e,n,r,i,o=1,a=15){let s={},c=!L.includes(e.site)&&R(e.telemetrySampleRate),l={log:c,[b]:c&&R(e.telemetryConfigurationSampleRate),[v]:c&&R(e.telemetryUsageSampleRate),metric:c&&R(o)},d={is_local_file:C.globalObject.location?.protocol==="file:",is_worker:C.j},p=$();return p.subscribe(({rawEvent:o,metricName:c})=>{if(c&&!l.metric||!l[o.type])return;let p=c||o.status||o.type,y=s[p];if(y||(y=s[p]=new Set),y.size>=a)return;let _=(0,f.l)(o);if(y.has(_))return;let b=n.trigger({startTime:(0,T.$I)().relative});if(b===O.C_)return;let v=function(t,n,r,o){let a={type:"telemetry",date:(0,T.$I)().timeStamp,service:n,version:"7.15.0",source:"browser",_dd:{format_version:2}
1,telemetry:(0,S.$e)(r,{runtime_env:o,connectivity:(0,h.T)(),sdk_setup:"npm",sdk_name:i}),ddtags:(0,g.MS)(e).join(","),experimental_features:Array.from((0,u.u0)())};return(0,S.$e)(a,t)}(b,t,o,d);r.notify(v),(0,m.j)("telemetry",v),y.add(_)}),p.unbuffer(),(0,A.P_)(P),{enabled:c,metricsEnabled:l.metric}}(t,e,n,i,r),{stop:l}=function(t,e){let n=[];if((0,y.xT)()){let t=(0,y.Ad)(),r=e.subscribe(e=>t.send("internal_telemetry",e));n.push(r.unsubscribe)}else{let r=[(0,E.Ez)(t,"rum")],i=(0,E.ji)(t,"rum");i&&t.site===w.DZ&&r.push(i);let o=(0,_.n)({endpoints:r,reportError:c.Z});n.push(o.stop);let a=e.subscribe(o.add);n.push(a.unsubscribe)}return{stop:()=>n.forEach(t=>t())}}(e,i);return{stop:l,enabled:o,metricsEnabled:s}}function M(t,e){(0,k.K)()&&s.j.debug("[Telemetry]",t,e),$().notify({rawEvent:{type:"log",message:t,status:"debug",...e}})}function P(t,e){$().notify({rawEvent:{type:"log",status:"error",...function(t){if((0,p.V)(t)){let e=(0,l._)(t);return{error:{kind:e.name,stack:(0,d.P3)((e.stack=e.stack.filter(t=>!t.url||x.some(e=>t.url.startsWith(e))),e))},message:e.message}}return{error:{stack:p.K},message:`Uncaught ${(0,f.l)(t)}`}}(t),...e}})}function U(t){$().notify({rawEvent:{type:b,configuration:t}})}function z(t,e){$().notify({rawEvent:{type:"log",message:t,status:"debug",...e},metricName:t})}function j(t){$().notify({rawEvent:{type:v,usage:t}})}},92389:function(t,e,n){n.d(e,{H:function(){return o},h:function(){return i}});var r=n(11374);let i={GRANTED:"granted",NOT_GRANTED:"not-granted"};function o(t){let e=new r.y$;function n(){return t===i.GRANTED}return{tryToInit(e){t||(t=e)},onGrantedOnce(t){if(n())t();else{let r=e.subscribe(()=>{n()&&(t(),r.unsubscribe())})}},update(n){t=n,e.notify()},isGranted:n,observable:e}}},32950:function(t,e,n){n.d(e,{l:function(){return r}});var r=class{constructor(){this.callbacks={}}notify(t,e){let n=this.callbacks[t];n&&n.forEach(t=>t(e))}subscribe(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(t=>e!==t)}}}}},73677:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(4793);function i(t,e){return(...n)=>{try{return t(...n)}catch(t){r.j.error(e,t)}}}},4793:function(t,e,n){n.d(e,{Q:function(){return o},j:function(){return i}});var r=n(58581);let i=(0,r.fT)("Datadog Browser SDK:"),o=`${r.aA}/real_user_monitoring/browser/troubleshooting`},52430:function(t,e,n){n.d(e,{G:function(){return i}});var r=n(97777);function i(){let t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write(n,i){let o=(0,r.qt)(n);e+=o,t+=n,i&&i(o)},finish(t){t(this.finishSync())},finishSync(){let n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:t=>t.length}}},63356:function(t,e,n){n.d(e,{W_:function(){return u},fG:function(){return s},u0:function(){return c},uh:function(){return o}});var r,i=n(46420);let o=((r={}).SESSION_REPLAY_RECORD_CANVAS="session_replay_record_canvas",r.TRACK_INTAKE_REQUESTS="track_intake_requests",r.TRACK_WEBSOCKETS="track_websockets",r.SOFT_NAVIGATION="soft_navigation",r),a=new Set;function s(t){Array.isArray(t)&&function(t){t.forEach(t=>{a.add(t)})}(t.filter(t=>(0,i.E5)(o,t)))}function u(t){return a.has(t)}function c(){return a}},46647:function(t,e,n){n.d(e,{I:function(){return i}});var r=n(78179);function i(t,e){let n;let i=r.globalObject;return i.Zone&&"function"==typeof i.Zone.__symbol__&&(n=t[i.Zone.__symbol__(e)]),n||(n=t[e]),n}},88386:function(t,e,n){n.d(e,{Su:function(){return s},Xk:function(){return f},t1:function(){return u}});var r=n(23412),i=n(50160),o=n(98064),a=n(52148);function s(t,e,n,{computeHandlingStack:r}={}){let a=t[e];if("function"!=typeof a){if(!(e in t&&"string"==typeof e&&e.startsWith("on")))return{stop:i.Z};a=i.Z}let s=!1,{stop:u}=c(t,e,a,function(){if(s)return a.apply(this,arguments);let t=Array.from(arguments);return d(n,{target:this,parameters:t,handlingStack:r?(0,o.Xp)("instrumented method"):void 0},()=>a.apply(this,t))});return{stop:()=>{s=!0,u()}}}function u(t,e,n,{computeHandlingStack:r}={}){let a=t[e];if("function"!=typeof a||l(t,e))return{stop:i.Z};let s=!1,u=function(){if(!new.target)return Reflect.apply(a,this,Array.from(arguments));let t=new.target===u?a:new.target;if(s)return Reflect.construct(a,arguments,t);let e=Array.from(arguments);return d(n,{parameters:e,handlingStack:r?(0,o.Xp)("instrumented constructor"):void 0},()=>Reflect.construct(a,e,t))},f=function(t,e){for(let n of[].concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e))){let r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r)}let{stop:n}=c(e.prototype,"constructor",e.prototype.constructor,t);return n}(u,a),{stop:p}=c(t,e,a,u);return{stop:()=>{s=!0,f(),p()}}}function c(t,e,n,r){return l(t,e)?{stop:i.Z}:(t[e]=r,{stop:()=>{t[e]===r&&(t[e]=n)}})}function l(t,e){let n=Object.getOwnPropertyDescriptor(t,e);return!!n&&!n.writable&&!n.set}function d(t,e,n){let r;(0,a.L6)(t,null,[{...e,onPostCall:t=>{r=t}}]);let i=n();return r&&(0,a.L6)(r,null,[i]),i}function f(t,e,n){let o=Object.getOwnPropertyDescriptor(t,e);if(!o?.set||!o.configurable)return{stop:i.Z};let a=i.Z,s=(t,e)=>{(0,r.iK)(()=>{s!==a&&n(t,e)},0)},u=function(t){o.set.call(this,t),s(this,t)};return Object.defineProperty(t,e,{set:u}),{stop:()=>{Object.getOwnPropertyDescriptor(t,e)?.set===u&&Object.defineProperty(t,e,o),s=a}}}},80483:function(t,e,n){n.d(e,{v:function(){return i}});var r=n(4793);function i(t,e,n=!1){return t.some(t=>{try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.lastIndex=0,t.test(e);
1if("string"==typeof t)return n?e.startsWith(t):t===e}catch(t){r.j.error(t)}return!1})}},23418:function(t,e,n){n.d(e,{C:function(){return r}});function r(t){return t}},11374:function(t,e,n){n.d(e,{fk:function(){return u},y$:function(){return a},$Z:function(){return s}});var r=n(78179),i=n(52148);function o(t){let e=r.globalObject.queueMicrotask;"function"==typeof e?e((0,i.zk)(t)):Promise.resolve().then((0,i.zk)(t))}var a=class{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(e=>e(t))}addObserver(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(e=>t!==e),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}};function s(...t){return new a(e=>{let n=t.map(t=>t.subscribe(t=>e.notify(t)));return()=>n.forEach(t=>t.unsubscribe())})}var u=class extends a{constructor(t,e){super(),this.maxBufferSize=t,this.onDrop=e,this.buffer=[],this.droppedCount=0}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&(this.buffer.shift(),this.droppedCount++),super.notify(t)}subscribe(t){let e=!1;return o(()=>{for(let n of this.buffer){if(e)return;t(n)}e||this.addObserver(t)}),{unsubscribe:()=>{e=!0,this.removeObserver(t)}}}unbuffer(){o(()=>{this.droppedCount>0&&this.onDrop&&this.onDrop(this.droppedCount),this.maxBufferSize=this.buffer.length=0})}}},43241:function(t,e,n){n.d(e,{K:function(){return a}});var r=n(23412),i=n(52148),o=n(43750);function a(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){let n=window.requestIdleCallback((0,i.zk)(t),e);return()=>window.cancelIdleCallback(n)}return function(t){let e=(0,o.m6)(),n=(0,r.iK)(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,o.m6)()-e))})},0);return()=>(0,r.gr)(n)}(t)}},26457:function(t,e,n){n.d(e,{j:function(){return i}});var r=n(78179);function i(t,e){let n=r.globalObject.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}},16172:function(t,e,n){n.d(e,{l:function(){return i},y:function(){return o}});var r=n(50160);function i(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);let r=o(Object.prototype),i=o(Array.prototype),a=o(Object.getPrototypeOf(t)),s=o(t);try{return JSON.stringify(t,e,n)}catch{return"<error: unable to serialize object>"}finally{r(),i(),a(),s()}}function o(t){let e=t.toJSON;return e?(delete t.toJSON,()=>{t.toJSON=e}):r.Z}},66292:function(t,e,n){n.d(e,{N:function(){return s}});var r=n(4793),i=n(97777),o=n(16172);let a=220*i.Hi;function s(t,e=a){let n=(0,o.y)(Object.prototype),r=(0,o.y)(Array.prototype);try{let n=[],r=new WeakMap,i=u(t,"$",void 0,n,r),o=JSON.stringify(i),a=o?o.length:0;if(a>e){c(e,"discarded",t);return}for(;n.length>0&&a<e;){let i=n.shift(),o=0;if(Array.isArray(i.source))for(let s=0;s<i.source.length;s++){let l=u(i.source[s],i.path,s,n,r);if(void 0!==l?a+=JSON.stringify(l).length:a+=4,a+=o,o=1,a>e){c(e,"truncated",t);break}i.target[s]=l}else for(let s in i.source)if(Object.prototype.hasOwnProperty.call(i.source,s)){let l=u(i.source[s],i.path,s,n,r);if(void 0!==l&&(a+=JSON.stringify(l).length+o+s.length+3,o=1),a>e){c(e,"truncated",t);break}i.target[s]=l}}return i}finally{n(),r()}}function u(t,e,n,r,i){let o=function(t){if(("object"!=typeof t||null===t)&&"function"!=typeof t)return t;if("function"==typeof t.toJSON)try{return t.toJSON()}catch{}return t}(t);if(!o||"object"!=typeof o)return"bigint"==typeof o?`[BigInt] ${o.toString()}`:"function"==typeof o?`[Function] ${o.name||"unknown"}`:"symbol"==typeof o?`[Symbol] ${o.description||o.toString()}`:o;let a=function t(e){try{if(e instanceof Event)return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?t(e.currentTarget):null,target:e.target?t(e.target):null};if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;let n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n?.[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;
1if(i.has(t))return`[Reference seen at ${i.get(t)}]`;let s=void 0!==n?`${e}.${n}`:e,u=Array.isArray(o)?[]:{};return i.set(t,s),r.push({source:o,target:u,path:s}),u}function c(t,e,n){r.j.warn(`The data provided has been ${e} as it is over the limit of ${t} characters:`,n)}},61190:function(t,e,n){let r;n.d(e,{_:function(){return o},f:function(){return m}});var i=n(80486);function o(t){let e=[],n=g(t,"stack"),i=String(t);if(n?.startsWith(i)&&(n=n.slice(i.length)),n&&n.split("\n").forEach(t=>{let n=function(t){let e=u.exec(t);if(!e)return;let n=e[2]?.indexOf("native")===0,r=e[2]?.indexOf("eval")===0,i=c.exec(e[2]);return r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){let e=l.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:e[3]?+e[3]:void 0,url:e[2]}}(t)||function(t){let e=d.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:+e[3],url:e[2]}}(t)||function(t){let e=f.exec(t);if(!e)return;let n=e[3]&&e[3].indexOf(" > eval")>-1,r=p.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||"?",line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func="?"),e.push(n))}),e.length>0&&function(){if(void 0!==r)return r;class t extends Error{constructor(){super(),this.name="Error"}}let[e,n]=[t,Error].map(t=>new t);return r=y(Object.getPrototypeOf(e))&&n.stack!==e.stack}()&&t instanceof Error){let n=[],r=t;for(;(r=Object.getPrototypeOf(r))&&y(r);){let t=r.constructor?.name||"?";n.push(t)}for(let t=n.length-1;t>=0&&e[0]?.func===n[t];t--)e.shift()}return{message:g(t,"message"),name:g(t,"name"),stack:e}}let a="((?:blob|native|eval|<anonymous>|[a-zA-Z][a-zA-Z0-9+.-]*:\\/\\/|\\w+\\.|\\/).*?)",s="(?::(\\d+))",u=RegExp(`^\\s*at (.*?) ?\\(${a}${s}?${s}?\\)?\\s*$`,"i"),c=RegExp(`\\((\\S*)${s}${s}\\)`),l=RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${a}${s}?${s}??\\s*$`,"i"),d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function g(t,e){return(0,i.sK)(t)&&"string"==typeof t[e]?t[e]:void 0}function m(t,e,n,r){let i,o;if(void 0===e)return;let{name:a,message:s}=("[object String]"===({}).toString.call(t)&&([,i,o]=h.exec(t)),{name:i,message:o});return{name:a,message:s,stack:[{url:e,column:r,line:n}]}}let h=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function y(t){return String(t.constructor).startsWith("class ")}},98064:function(t,e,n){n.d(e,{P3:function(){return a},Xp:function(){return o},jN:function(){return s}});var r=n(61190),i=n(52148);function o(t){let e;let n=Error(t);return n.name="HandlingStack",(0,i.L6)(()=>{let t=(0,r._)(n);t.stack=t.stack.slice(2),e=a(t)}),e}function a(t){let e=s(t);return t.stack.forEach(t=>{let n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?`(${t.args.join(", ")})`:"",i=t.line?`:${t.line}`:"",o=t.line&&t.column?`:${t.column}`:"";e+=`
2  at ${n}${r} @ ${t.url}${i}${o}`}),e}function s(t){return`${t.name||"Error"}: ${t.message}`}},23412:function(t,e,n){n.d(e,{Zi:function(){return u},cv:function(){return c},gr:function(){return s},iK:function(){return a}});var r=n(46647),i=n(78179),o=n(52148);function a(t,e){return(0,r.I)(i.globalObject,"setTimeout")((0,o.zk)(t),e)}function s(t){(0,r.I)(i.globalObject,"clearTimeout")(t)}function u(t,e){return(0,r.I)(i.globalObject,"setInterval")((0,o.zk)(t),e)}function c(t){(0,r.I)(i.globalObject,"clearInterval")(t)}},80245:function(t,e,n){function r(t,e){let n=t.indexOf(e);n>=0&&t.splice(n,1)}function i(t){return Array.isArray(t)&&t.length>0}n.d(e,{Of:function(){return i},cl:function(){return r}})},97777:function(t,e,n){n.d(e,{Hi:function(){return r},Kb:function(){return s},X9:function(){return i},qt:function(){return a}});let r=1024,i=1048576,o=/[^\u0000-\u007F]/;function a(t){return o.test(t)?new TextEncoder().encode(t).length:t.length}function s(t){if(1===t.length)return t[0];let e=new Uint8Array(t.reduce((t,e)=>t+e.length,0)),n=0;for(let r of t)e.set(r,n),n+=r.length;return e}},50160:function(t,e,n){n.d(e,{P:function(){return i},Z:function(){return o}});var r=n(23412);function i(t,e,n){let i,o;let a=n?.leading===void 0||n.leading,s=n?.trailing===void 0||n.trailing,u=!1;return{throttled:(...n)=>{if(u){i=n;return}a?t(...n):i=n,u=!0,o=(0,r.iK)(()=>{s&&i&&t(...i),u=!1,i=void 0},e)},cancel:()=>{(0,r.gr)(o),u=!1,i=void 0}}}function o(){}},46420:function(t,e,n){n.d(e,{Cy:function(){return i},E5:function(){return a},Q8:function(){return u},Qr:function(){return s},mv:function(){return o}});let r=(t,e)=>"__proto__"===t?void 0:e;function i(t){try{return JSON.parse(t,r)}catch{}}function o(t){return{...t}}function a(t,e){return Object.keys(t).some(n=>t[n]===e)}function s(t){return 0===Object.keys(t).length}function u(t,e){let n={};for(let r of Object.keys(t))n[r]=e(t[r]);return n}},443:function(t,e,n){function r(t,e){for(let n=t.length-1;n>=0;n-=1){let r=t[n];if(e(r,n,t))return r}}function i(t){return Object.values(t)}function o(t){return Object.entries(t)}n.d(e,{TT:function(){return i},dF:function(){return r},qP:function(){return o}})},49126:function(t,e,n){function r(t){return t>=500}function i(t){try{return t.clone()}catch{return}}n.d(e,{o:function(){return r},u:function(){return i}})},99346:function(t,e,n){function r(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,r)}n.d(e,{DO:function(){return r},MY:function(){return o},_z:function(){return u},kq:function(){return s},ql:function(){return a}});let i=/(\S+?)\s*=\s*(.*?)(?:;|$)/g;function o(t,e){for(i.lastIndex=0;;){let n=i.exec(t);if(n){if(n[1]===e)return n[2]}else break}}function a(t){let e=new Map;for(i.lastIndex=0;;){let n=i.exec(t);if(n){let t=n[1],r=n[2];e.has(t)?e.get(t).push(r):e.set(t,[r])}else break}return e}function s(t){let e=new Map;for(i.lastIndex=0;;){let n=i.exec(t);if(n)e.set(n[1],n[2]);else break}return e}function u(t,e,n=""){let r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?t:`${t.slice(0,i)}${n}`}},94599:function(t,e,n){let r;n.d(e,{p:function(){return l}});var i=n(23412),o=n(80245),a=n(43750);let s=1/0,u=a.yR,c=new Set;function l({expireDelay:t,maxEntries:e}){let n=[],l=()=>{if(!t)return;let e=(0,a._q)()-t;
2for(;n.length>0&&n[n.length-1].endTime<e;)n.pop()};return t&&(r||(r=(0,i.Zi)(()=>void c.forEach(t=>t()),u)),c.add(l)),{add:function(t,r){let i={value:t,startTime:r,endTime:s,remove:()=>{(0,o.cl)(n,i)},close:t=>{i.endTime=t}};return e&&n.length>=e&&n.pop(),n.unshift(i),i},find:function(t=s,e={returnInactive:!1}){for(let r of n)if(r.startTime<=t){if(e.returnInactive||t<=r.endTime)return r.value;break}},closeActive:function(t){let e=n[0];e?.endTime===s&&e.close(t)},findAll:function(t=s,e=0){let r=(0,a.WK)(t,e);return n.filter(e=>e.startTime<=r&&t<=e.endTime).map(t=>t.value)},findAllEntries:function(t=s,e=0){let r=(0,a.WK)(t,e);return n.filter(e=>e.startTime<=r&&t<=e.endTime)},getEntries:function(t){return n.filter(e=>e.startTime===t)},reset:function(){n=[]},stop:function(){c.delete(l),0===c.size&&r&&((0,i.cv)(r),r=void 0)}}}},58729:function(t,e,n){n.d(e,{n:function(){return b}});var r=n(4793),i=n(23418),o=n(97777),a=n(16172),s=n(4343),u=n(443),c=n(1890),l=n(52430),d=n(11374),f=n(23412),p=n(78179);let g=30*n(43750).WT,m=p.j?1:50;function h({pageMayExitObservable:t}){let e,n;let r=new d.y$,i=t.subscribe(t=>{e=t.reason;try{r.notify(t.reason)}finally{e=void 0}c(t.reason)}),o=new d.y$(()=>()=>{i.unsubscribe()}),a=0,u=0;function c(t){if(0===u)return;let e=u,r=a;u=0,a=0,(0,f.gr)(n),n=void 0,o.notify({reason:t,messagesCount:e,bytesCount:r})}return{flushObservable:o,prepareUrgentFlushObservable:r,forceFlush:c,get messagesCount(){return u},notifyBeforeAddMessage(t){a+t>=s.Wj&&c(e??"bytes_limit"),u+=1,a+=t,void 0===n&&(n=(0,f.iK)(()=>{c("duration_limit")},g))},notifyAfterAddMessage(t=0){a+=t,u>=m?c(e??"messages_limit"):a>=s.Wj&&c(e??"bytes_limit")}}}var y=n(58581);let _=256*o.Hi;function b({encoder:t=(0,l.G)(),endpoints:e,reportError:n}){let d=(0,i.C)(s.UF)(e,n),f=(0,i.C)(c.FP)(),p=(0,i.C)(h)({pageMayExitObservable:f}),g={},m=p.flushObservable.subscribe(e=>(function(e){let n=(0,u.TT)(g).join("\n");g={};let r=(0,c.PT)(e.reason),i=r?d.sendOnExit:d.send;if(r&&t.isAsync){let e=t.finishSync();e.outputBytesCount&&i(v(e));let r=[e.pendingData,n].filter(Boolean).join("\n");r&&i({data:r,bytesCount:(0,o.qt)(r)})}else n&&t.write(t.isEmpty?n:`
3${n}`),t.finish(t=>{i(v(t))})})(e));function b(e,n){let i=(0,a.l)(e),s=t.estimateEncodedBytesCount(i);if(s>=_){r.j.warn(`Discarded a message whose size was bigger than the maximum allowed size ${_/o.Hi}KiB. ${y.IA} ${r.Q}/#technical-limitations`);return}!function(e,n,r){if(void 0!==r){let i;void 0!==g[r]?i=n-t.estimateEncodedBytesCount(g[r]):(p.notifyBeforeAddMessage(n),i=0),g[r]=e,p.notifyAfterAddMessage(i)}else p.notifyBeforeAddMessage(n),t.write(t.isEmpty?e:`
4${e}`,t=>{p.notifyAfterAddMessage(t-n)})}(i,s,n)}return{get isEmpty(){return 0===p.messagesCount},add:b,upsert:b,prepareUrgentFlushObservable:p.prepareUrgentFlushObservable,forceFlush:p.forceFlush,flushObservable:p.flushObservable,stop:m.unsubscribe}}function v(t){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding}}},18452:function(t,e,n){n.d(e,{Ad:function(){return s},BP:function(){return a},ke:function(){return u},xT:function(){return c}});var r,i=n(4793),o=n(78179);let a=((r={}).RECORDS="records",r.PROFILES="profiles",r);function s(){let t=o.globalObject.DatadogEventBridge;if(t)return{getCapabilities:()=>JSON.parse(t.getCapabilities?.()||"[]"),getPrivacyLevel:()=>t.getPrivacyLevel?.(),getIsTraceSampled:()=>JSON.parse(t.getIsTraceSampled?.()||"null"),getAllowedWebViewHosts:()=>JSON.parse(t.getAllowedWebViewHosts()),send(e,n,r){t.send(JSON.stringify({eventType:e,event:n,view:r?{id:r}:void 0}))}}}function u(t){let e=s();return!!e&&e.getCapabilities().includes(t)}function c(t=o.globalObject.location?.hostname){return s()?.getAllowedWebViewHosts().some(e=>(function(t,e){if(!e.includes("*"))return t===e||t.endsWith(`.${e}`);let n=e.split("*");if(2!==n.length)return i.j.error(`Invalid WebView host pattern "${e}": only one wildcard (*) is supported.`),!1;let[r,o]=n;return t.length>r.length+o.length&&t.startsWith(r)&&t.endsWith(o)})(t,e))??!1}},4343:function(t,e,n){n.d(e,{Wj:function(){return v},UF:function(){return w}});var r=n(11374),i=n(97777),o=n(52400),a=n(23412),s=n(49126),u=n(43750);let c=80*i.Hi,l=20*i.X9,d=u.yR,f=u.WT;function p(t,e,n,r,i,o){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?g(t,e,n,o,{onSuccess:()=>m(0,e,n,r,i,o),onFailure:()=>{e.queuedPayloads.enqueue(t)||o.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t}),function t(e,n,r,i,o){2===e.transportStatus&&(0,a.iK)(()=>{g(e.queuedPayloads.first(),e,n,o,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=f,m(1,e,n,r,i,o)},onFailure:()=>{e.currentBackoffTime=Math.min(d,2*e.currentBackoffTime),t(e,n,r,i,o)}})},e.currentBackoffTime)}(e,n,r,i,o)}}):e.queuedPayloads.enqueue(t)||o.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t})}function g(t,e,n,r,{onSuccess:i,onFailure:o}){e.bandwidthMonitor.add(t),n(t,n=>{e.bandwidthMonitor.remove(t),"opaque"!==n.type&&(0===n.status&&!navigator.onLine||408===n.status||429===n.status||(0,s.o)(n.status))?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status}
4,r.notify({type:"failure",bandwidth:e.bandwidthMonitor.stats(),payload:t}),o()):(e.transportStatus=0,r.notify({type:"success",bandwidth:e.bandwidthMonitor.stats(),payload:t}),i())})}function m(t,e,n,r,o,a){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o(`Reached max ${r} events size queued for upload: ${l/i.X9}MiB`),e.queueFullReported=!0);let s=e.queuedPayloads;for(e.queuedPayloads=h();s.size()>0;)p(s.dequeue(),e,n,r,o,a)}function h(){let t=[];return{bytesCount:0,enqueue(e){return!this.isFull()&&(t.push(e),this.bytesCount+=e.bytesCount,!0)},first:()=>t[0],dequeue(){let e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:()=>t.length,isFull(){return this.bytesCount>=l}}}var y=n(72097),_=n(78179),b=n(52148);let v=16*i.Hi;function w(t,e,n=v){let i=new r.y$,o={transportStatus:0,currentBackoffTime:f,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=c&&this.ongoingRequestCount<32},add(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:h(),queueFullReported:!1};return{observable:i,send:n=>{for(let r of t)p(n,o,(t,e)=>{S(r,t,e)},r.trackType,e,i)},sendOnExit:e=>{for(let r of t)!function(t,e,n){if(n.bytesCount<e)try{let e=t.build("beacon",n),r=(0,y.Q2)(e,_.globalObject.document?.baseURI??_.globalObject.location?.href).protocol;if(("http:"===r||"https:"===r)&&navigator.sendBeacon(e,n.data))return}
4catch(t){E||(E=!0,(0,b.$y)(t))}S(t,n)}(r,n,e)}}}let E=!1;function S(t,e,n){let r=t.build("fetch",e);(0,o.h)(r,{method:"POST",body:e.data,mode:"cors"}).then((0,b.zk)(t=>n?.({status:t.status,type:t.type}))).catch((0,b.zk)(()=>n?.({status:0})))}},54020:function(t,e,n){function r(t,e,n){let r=n.getHandler(),i=Array.isArray(r)?r:[r];return o[t]>=o[n.getLevel()]&&i.includes(e)}n.d(e,{fy:function(){return th}});let i={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},o={[i.ok]:0,[i.debug]:1,[i.info]:2,[i.notice]:4,[i.warn]:5,[i.error]:6,[i.critical]:7,[i.alert]:8,[i.emerg]:9};function a(t,{includeMessage:e=!1}={}){return{stack:t.stack,kind:t.type,message:e?t.message:void 0,causes:t.causes,fingerprint:t.fingerprint,handling:t.handling}}var s=n(82336),u=n(58590),c=n(66292),l=n(44286),d=n(50353),f=n(98064),p=n(20303),g=n(52148),m=n(43750);let h="http",y=Object.keys(i);var _=class{constructor(t,e,n=h,r=i.debug,o={}){this.handleLogStrategy=t,this.handlerType=n,this.level=r,this.contextManager=(0,u.W)("logger"),this.tags=[],this.contextManager.setContext(o),e&&this.contextManager.setContextProperty("logger",{name:e})}logImplementation(t,e,n=i.info,r,o){(0,g.L6)(()=>{let i,u;let f=(0,c.N)(e);if(null!=r){let t=(0,l.AP)({originalError:r,nonErrorPrefix:d.j9.PROVIDED,source:d.zH.LOGGER,handling:d.Xw.HANDLED,startClocks:(0,m.$I)()});u=t.debugIds,i=(0,s.$e)({error:a(t,{includeMessage:!0})},t.context,f)}else i=f;this.handleLogStrategy({message:(0,c.N)(t),context:i,status:n,...u?{debugIds:u}:{}},this,o)})}log(t,e,n=i.info,o){let a;r(n,h,this)&&(a=(0,f.Xp)("log")),this.logImplementation(t,e,n,o,a)}setContext(t){this.contextManager.setContext(t)}getContext(){return this.contextManager.getContext()}setContextProperty(t,e){this.contextManager.setContextProperty(t,e)}removeContextProperty(t){this.contextManager.removeContextProperty(t)}clearContext(){this.contextManager.clearContext()}
4addTag(t,e){this.tags.push((0,p.C)(t,e))}removeTagsWithKey(t){let e=(0,p.Y7)(t);this.tags=this.tags.filter(t=>t!==e&&!t.startsWith(`${e}:`))}getTags(){return this.tags.slice()}setHandler(t){this.handlerType=t}getHandler(){return this.handlerType}setLevel(t){this.level=t}getLevel(){return this.level}};function b(t){return function(e,n,i){let o;r(t,h,this)&&(o=(0,f.Xp)("log")),this.logImplementation(e,n,t,i,o)}}_.prototype.ok=b(i.ok),_.prototype.debug=b(i.debug),_.prototype.info=b(i.info),_.prototype.notice=b(i.notice),_.prototype.warn=b(i.warn),_.prototype.error=b(i.error),_.prototype.critical=b(i.critical),_.prototype.alert=b(i.alert),_.prototype.emerg=b(i.emerg);var v=n(78179);function w(){return v.j?{}:{view:{referrer:document.referrer,url:window.location.href}}}function E(t,e,n){if(t)for(let r of t){let t=r[e];t&&t(n)}}let S=n(32950).l;var C=n(58776),k=n(9200),A=n(58581),T=n(98784);let O={[A.vA.log]:i.info,[A.vA.debug]:i.debug,[A.vA.info]:i.info,[A.vA.warn]:i.warn,[A.vA.error]:i.error};var R=n(88102),x=n(97777),I=n(50160),N=n(14800),L=n(31781),$=n(49126),D=n(61190),M=n(44403),P=n(99346),U=n(18789);let z=32*x.Hi,j={[i.ok]:A.vA.debug,[i.debug]:A.vA.debug,[i.info]:A.vA.info,[i.notice]:A.vA.info,[i.warn]:A.vA.warn,[i.error]:A.vA.error,[i.critical]:A.vA.error,[i.alert]:A.vA.error,[i.emerg]:A.vA.error};var V=n(58729),F=n(35377),q=n(18452),H=n(17245),G=n(14339),K=n(26457),W=n(2604),B=n(62019),Z=n(11639),J=n(12835);let Y="logs";function X(t,e,n,o,u){let c=new S,g=[];c.subscribe(1,t=>(0,K.j)("logs",t));let _=t=>{c.notify(0,{rawLogsEvent:{message:t,date:(0,m.n$)(),origin:d.zH.AGENT,status:i.error}}),(0,H.eJ)("Error reported to customer",{"error.message":t})},{assembleEventDefaults:b}=u;!function(t,e,n){t.register(({startTime:t})=>{let r=n.findTrackedSession(t);return n.findTrackedSession(t,{returnInactive:!0,maxAge:1/0})?{service:e.service,session_id:r?r.id:void 0,session:r?{id:r.id}:void 0}:k.C_})}(b,t,e);let w=(0,W.p)(b,t,Y),E=(0,B.c)(b,t,e,Y),x=(0,Z.$)(b,t,Y,!1);!function(t){let e=v.globalObject;function n(t){let n=function(t,e){if(e?.getInternalContext)return e.getInternalContext(t)}(t,(0,G.Y9)()?e.DD_RUM_SYNTHETICS:e.DD_RUM);if(n)return n}t.assembleEventDefaults.register(({startTime:t})=>n(t)||k.kb),t.assembleTelemetry.register(({startTime:t})=>{let e=n(t);return e?{application:{id:e.application_id},view:{id:e.view?.id},action:{id:e.user_action?.id}}:k.kb})}(u),(0,J.G)(b),function(t,e,n){if(!t.forwardErrorsToLogs)return I.Z;function r(t){return!(0,U.iU)(t.url)&&!t.isAborted&&(0===t.status&&"opaque"!==t.responseType||(0,$.o)(t.status))}function o(t,n){if(!r(n))return;let o="error"in n&&n.error?(0,D._)(n.error):void 0,a=o?(0,f.P3)(o):n.responseBody||"Failed to load",s=o?(0,M.J)((0,l.Lg)(o)):void 0,u={handlingStack:n.handlingStack};e.notify(0,{rawLogsEvent:{message:`${L.x.XHR===t?"XHR":"Fetch"} error ${n.method} ${n.url}`,date:n.startClocks.timeStamp,error:{stack:(0,P._z)(a,z,"..."),handling:void 0},_dd:{debug_ids:s},http:{method:n.method,status_code:n.status,url:n.url},status:i.error,origin:d.zH.NETWORK},domainContext:u})}(0,N.y)({responseBodyAction:t=>r(t)?N.a.COLLECT:N.a.IGNORE}),n.subscribe(({data:t,type:e})=>{e===T.r.FETCH&&"resolve"===t.state?o(L.x.FETCH,t):e===T.r.XHR&&"complete"===t.state&&o(L.x.XHR,t)})}(t,c,o),function(t,e,n){if(!t.forwardErrorsToLogs)return I.Z;n.subscribe(t=>{if(t.type===T.r.RUNTIME_ERROR){let n=t.data;e.notify(0,{rawLogsEvent:(0,s.$e)({message:n.message,date:n.startClocks.timeStamp,error:a(n),_dd:{debug_ids:n.debugIds},origin:d.zH.SOURCE,status:i.error},n.context)})}})}(t,c,o),function(t,e,n){n.subscribe(({data:n,type:r})=>{if(r!==T.r.CONSOLE||!t.forwardConsoleLogs.includes(n.api))return;let i={rawLogsEvent:(0,s.$e)({date:(0,m.n$)(),message:n.message,origin:d.zH.CONSOLE,error:n.error&&a(n.error),_dd:n.error&&{debug_ids:n.error.debugIds},status:O[n.api]},n.error?.context),domainContext:{handlingStack:n.handlingStack}};e.notify(0,i)})}(t,c,o),o.unbuffer(),function(t,e){(0,R.v)(t.forwardReports).subscribe(t=>{let n,r=t.message,o="deprecation"===t.originalError.type?i.warn:i.error;o===i.error?n=a(t):t.stack&&(r+=` Found in ${(0,l.u5)(t.stack)}`),e.notify(0,{rawLogsEvent:{date:(0,m.n$)(),message:r,origin:d.zH.REPORT,error:n,_dd:{debug_ids:t.debugIds},status:o}})})}(t,c);let{handleLog:X}={handleLog:function(t,e,n,i,o){let a=(0,s.$e)(e.getContext(),t.context);if(r(t.status,"console",e)&&function({status:t,message:e},n){A.LD[j[t]].call(A.jG,e,n)}(t,a),r(t.status,h,e)){let r={rawLogsEvent:(0,s.$e)({date:o||(0,m.n$)(),message:t.message,status:t.status,origin:d.zH.LOGGER,_dd:{debug_ids:t.debugIds}},a),savedCommonContext:i,ddtags:e.getTags()};n&&(r.domainContext={handlingStack:n}),c.notify(0,r)}}};if(!function(t,e,n,r,i,o){let a=y.concat(["custom"]),u={};a.forEach(t=>{u[t]=(0,C.K)(t,i,void 0)}),e.subscribe(0,({rawLogsEvent:i,savedCommonContext:o,domainContext:a,ddtags:c=[]})=>{let l=(0,m.zj)(i.date),f=o||r(),g={startTime:l,rawLogsEvent:i,domainContext:a},h=n.assembleEventDefaults.trigger(g);if(h===k.C_)return;let y=n.assembleEvent.trigger(g);if(y===k.C_)return;let _=(0,p.MS)(t),b=(0,s.$e)({view:f.view},h,i,y,{ddtags:_.concat(c).join(",")});t.beforeSend?.(b,a)===!1||b.origin!==d.zH.AGENT&&(u[b.status]??u.custom).isLimitReached()||e.notify(1,b)})}(t,c,u,n,_),(0,q.xT)())!function(t){let e=(0,q.Ad)();t.subscribe(1,t=>{e.send("log",t)})}(c);else{let{stop:n}=function(t,e,n,r){let i=[(0,F.Ez)(t,"logs")],o=(0,F.ji)(t,"logs");o&&i.push(o);let a=(0,V.n)({endpoints:i,reportError:n});return r.expireObservable.subscribe(()=>a.forceFlush("session_expire")),e.subscribe(1,t=>{a.add(t)}),a}(t,c,_,e);g.push(()=>n())}return{handleLog:X,getInternalContext:t=>{let n=e.findTrackedSession(t);if(n)return{session_id:n.id}},accountContext:w,globalContext:x,userContext:E,stop:()=>{g.forEach(t=>t())}}}var Q=n(90470),tt=n(4793),te=n(73677),tn=n(13212);let tr={...Q.S2,forwardErrorsToLogs:{type:"boolean",default:!0,strict:!1},forwardConsoleLogs:{type:"enum",values:A.vA,multiple:!0,allowAll:!0,default:[]},forwardReports:{type:"enum",values:R._,multiple:!0,allowAll:!0,default:[]},plugins:{type:"schema",multiple:!0,strict:!1,default:[],schema:{name:{type:"string",required:!0},getConfigurationTelemetry:{type:"function",strict:!1,signature:void 0},onInit:{type:"function",strict:!1,signature:void 0},onLogsStart:{type:"function",strict:!1,signature:void 0}}}};var ti=n(11374),to=n(50440),ta=n(89083),ts=n(63356),tu=n(84792),tc=n(19738),tl=n(24937),td=n(23418),tf=n(59881),tp=n(45780),tg=n(92389),tm=n(36105);let th=function(t={}){let e=(0,tg.H)(),n=(0,T.Q)().observable,r=function(t,e,n,r){let i,o,a;let s=new ti.fk(500,t=>{(0,H.eJ)("preStartLogs buffer data lost",{count:t})}),u=(0,Z.N)();(0,to.h)(u,ta.gy.globalContext,s);let c=(0,W.d)();(0,to.h)(c,ta.gy.accountContext,s);let l=(0,B.f)();(0,to.h)(l,ta.gy.userContext,s);let d={assembleEventDefaults:(0,k.Bi)(),assembleTelemetry:(0,k.Bi)(),assembleEvent:(0,k.Bi)()},f=e.observable.subscribe(p);function p(){if(!o||!i||!a)return;f.unsubscribe();let t=n(o,a,d);s.subscribe(e=>e(t)),s.unbuffer()}return{init(t,n,s){if(!t){tt.j.error("Missing configuration");return}if((0,ts.fG)(t.enableExperimentalFeatures),(0,tu.$k)(t.allowUntrustedEvents),(0,q.xT)()&&(t={...t,clientToken:"empty"}),i=t,o){(0,tc.W)("DD_LOGS",t);return}E(t.plugins,"onInit",{initConfiguration:t,publicApi:n,registerAssembleEventHook:d.assembleEvent.register});let u=function(t){let e=(0,tn.f)(t,tr,tt.j);if(e)return{...e,beforeSend:e.beforeSend?(0,te.Z)(e.beforeSend,"beforeSend threw an error:"):void 0}}(t);u&&(0,tl.l3)(u,s??"")&&(o=u,e.tryToInit(u.trackingConsent),e.onGrantedOnce(()=>{(function(t,e){function n(){return e.isGranted()?k.kb:k.C_}t.assembleEventDefaults.register(n),t.assembleTelemetry.register(n)})(d,e),(0,td.C)(H.VL)(H.y0.LOGS,u,d.assembleTelemetry,r);let n=e=>{a=e,(0,tf.W)(d.assembleTelemetry,a),(0,H.Uo)(function(t){let e=(0,Q.JZ)(t);return{forward_errors_to_logs:t.forwardErrorsToLogs,forward_console_logs:t.forwardConsoleLogs,forward_reports:t.forwardReports,plugins:t.plugins?.map(t=>({name:t.name,...t.getConfigurationTelemetry?.()})),...e}}(t)),p()};(0,q.xT)()?n((0,tp.ud)()):(0,td.C)(tp.HX)(u,e).then(t=>{t&&n(t)}
4).catch(g.$y)}))},get initConfiguration(){return i},globalContext:u,accountContext:c,userContext:l,getInternalContext:I.Z,handleLog(e,n,r,i=t(),o=(0,m.n$)()){s.notify(t=>t.handleLog(e,n,r,i,o))}}}(w,e,(t,e,i)=>{let o=(0,td.C)(X)(t,e,w,n,i);return r={...r,init:t=>{(0,tc.W)("DD_LOGS",t)},getInternalContext:o.getInternalContext,globalContext:o.globalContext,userContext:o.userContext,accountContext:o.accountContext},E(t.plugins,"onLogsStart",{handleLog:o.handleLog}),o},t.sdkName),i=()=>r,o={},a=new _((...t)=>r.handleLog(...t)),u=(0,tm.r)({logger:a,init:t=>{let e=Error().stack;(0,g.L6)(()=>r.init(t,u,e))},setTrackingConsent:(0,g.zk)(t=>{e.update(t),(0,H.eG)({feature:"set-tracking-consent",tracking_consent:t})}),getGlobalContext:(0,to.z)(i,ta.gy.globalContext,ta.OL.getContext),setGlobalContext:(0,to.z)(i,ta.gy.globalContext,ta.OL.setContext),setGlobalContextProperty:(0,to.z)(i,ta.gy.globalContext,ta.OL.setContextProperty),removeGlobalContextProperty:(0,to.z)(i,ta.gy.globalContext,ta.OL.removeContextProperty),clearGlobalContext:(0,to.z)(i,ta.gy.globalContext,ta.OL.clearContext),createLogger:(0,g.zk)((t,e={})=>(o[t]=new _((...t)=>r.handleLog(...t),(0,c.N)(t),e.handler,e.level,(0,c.N)(e.context)),o[t])),getLogger:(0,g.zk)(t=>o[t]),getInitConfiguration:(0,g.zk)(()=>(0,s.I8)(r.initConfiguration)),getInternalContext:(0,g.zk)(t=>r.getInternalContext(t)),setUser:(0,to.z)(i,ta.gy.userContext,ta.OL.setContext),getUser:(0,to.z)(i,ta.gy.userContext,ta.OL.getContext),setUserProperty:(0,to.z)(i,ta.gy.userContext,ta.OL.setContextProperty),removeUserProperty:(0,to.z)(i,ta.gy.userContext,ta.OL.removeContextProperty),clearUser:(0,to.z)(i,ta.gy.userContext,ta.OL.clearContext),setAccount:(0,to.z)(i,ta.gy.accountContext,ta.OL.setContext),getAccount:(0,to.z)(i,ta.gy.accountContext,ta.OL.getContext),setAccountProperty:(0,to.z)(i,ta.gy.accountContext,ta.OL.setContextProperty),removeAccountProperty:(0,to.z)(i,ta.gy.accountContext,ta.OL.removeContextProperty),clearAccount:(0,to.z)(i,ta.gy.accountContext,ta.OL.clearContext)});return u}({sdkName:"logs"});(0,tm.y)(v.globalObject,"DD_LOGS",th)},40240:function(t,e,n){let r,i,o,a,s,u;n.d(e,{Xn:function(){return t8},k6:function(){return t4},Y5:function(){return tg},zx:function(){return t2},$n:function(){return t3},nw:function(){return t5},D$:function(){return c},wE:function(){return l},uo:function(){return tU},$S:function(){return ep},o8:function(){return g},nu:function(){return eg},QB:function(){return rR},Uo:function(){return tL},q5:function(){return tf},IE:function(){return t9},SZ:function(){return ee},Ow:function(){return t$},$1:function(){return eu},X_:function(){return ec},Gm:function(){return rA},FB:function(){return ea},PA:function(){return ed},AX:function(){return el},qp:function(){return tx},Tv:function(){return tR},aT:function(){return tI},VO:function(){return tN},_r:function(){return rC},Ch:function(){return et},Pu:function(){return tT},vv:function(){return er},gR:function(){return en}});let c={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",VIEW_UPDATE:"view_update",RESOURCE:"resource",VITAL:"vital"},l={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},d={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",SESSION_RENEWAL:"session_renewal",BF_CACHE:"bf_cache"},f={CLICK:"click",CUSTOM:"custom"},p={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},g={DURATION:"duration",OPERATION_STEP:"operation_step"};function m(t,e){e.lastIndex=0;let n=e.exec(t);if(!n)return;let[r,i]=n;return i||r}let h=/[a-zA-Z_$]/,y=/[a-zA-Z0-9_$]/,_=/[0-9]/,b=/[a-fA-F0-9]/,v={0:()=>!1,1:()=>!1,2:t=>h.test(t),3:t=>y.test(t),4:t=>"."===t,5:t=>"["===t,6:t=>"]"===t,7:t=>_.test(t),8:t=>"'\"".includes(t),9:(t,e)=>t===e.quote,10:()=>!0,11:t=>"\\"===t,12:(t,e)=>void 0===e.escapeSequence?`${e.quote}/\\bfnrtu`.includes(t):!!e.escapeSequence.startsWith("u")&&e.escapeSequence.length<5&&b.test(t)},w={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},E=[2,3,7,10],S=[4,5,6],C={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"};var k,A,T,O=n(43750),R=n(80486),x=n(46420),I=n(99346);let N={hit:"success",miss:"missing",error:"failure"};function L(t,e){try{localStorage.setItem(t,JSON.stringify(e))}catch{}}var $=n(4793),D=n(17245),M=n(76232),P=n(52400),U=n(52148),z=n(35377);let j=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","telemetrySampleRate","trackAnonymousUser","trackUserInteractions","trackResources","trackLongTasks","traceContextInjection","actionNameAttribute","defaultPrivacyLevel","enablePrivacyF
4orActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function V(t,e){let n;let r=q(),i=await G(t);return i.ok?(r.increment("fetch","success"),n=F(t,i.value,e,r)):(r.increment("fetch","failure"),$.j.error(i.error)),(0,D.qZ)(D.T.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:r.get()}),n}function F(t,e,n,r){let i={...t};if(e.rum){let t=e.rum;j.forEach(e=>{e in t&&(i[e]=o(t[e]))}),Object.keys(n).forEach(e=>{void 0!==t[e]&&function(t,e){e.forEach(({key:e,value:n})=>{t.setContextProperty(e,o(n))})}(n[e],t[e])})}return e.profiling?.sampleRate!==void 0&&(i.profilingSampleRate=e.profiling.sampleRate),i;function o(t){if(Array.isArray(t))return t.map(o);if((0,R.sK)(t)){if("rcSerializedType"in t){let e=t.rcSerializedType;switch(e){case"string":return t.value;case"regex":return H(t.value);case"dynamic":return function(t){let e;let n=t.strategy;switch(n){case"cookie":e=function({name:t}){let e=(0,M.ej)(t);return r.increment("cookie",void 0!==e?"success":"missing"),e}(t);break;case"dom":e=function({selector:t,attribute:e}){let n;try{n=document.querySelector(t)}catch{$.j.error(`Invalid selector in the remote configuration: '${t}'`),r.increment("dom","failure");return}if(!n){r.increment("dom","missing");return}if("password"===n.getAttribute("type")&&"value"===e){$.j.error(`Forbidden element selected by the remote configuration: '${t}'`),r.increment("dom","failure");return}let i=void 0!==e?n.getAttribute(e):n.textContent;if(null===i){r.increment("dom","missing");return}return r.increment("dom","success"),i}(t);break;case"js":e=function({path:t}){let e=window,n=function(t){let e;let n=[],r=0,i={quote:void 0,escapeSequence:void 0},o="";for(let u of t){if(!(e=w[r].find(t=>v[t](u,i))))return[];if(void 0!==i.escapeSequence&&12!==e){var a,s;if(a=i.escapeSequence,!("\"'/\\bfnrt".includes(a)||a.startsWith("u")&&5===a.length))return[];o+=(s=i.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(s.slice(1),16)):C[s],i.escapeSequence=void 0}E.includes(e)?o+=u:S.includes(e)&&""!==o?(n.push(o),o=""):12===e?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${u}`:u:8===e?i.quote=u:9===e&&(i.quote=void 0),r=e}return w[r].includes(1)?(""!==o&&n.push(o),n):[]}(t);if(0===n.length){$.j.error(`Invalid JSON path in the remote configuration: '${t}'`),r.increment("js","failure");return}for(let i of n){if(!(i in e)){r.increment("js","missing");return}try{e=e[i]}catch(e){$.j.error(`Error accessing: '${t}'`,e),r.increment("js","failure");return}}return r.increment("js","success"),e}(t);break;case"localStorage":e=function({key:t}){let e;try{e=localStorage.getItem(t)}catch{r.increment("localStorage","failure");return}return r.increment("localStorage",null!==e?"success":"missing"),e??void 0}(t);break;default:$.j.error(`Unsupported remote configuration: "strategy": "${n}"`);return}let i=t.extractor;return void 0!==i&&"string"==typeof e?function(t,e){let n=H(t.value);if(void 0!==n)return m(e,n)}(i,e):e}(t);default:$.j.error(`Unsupported remote configuration: "rcSerializedType": "${e}"`);return}}return(0,x.Q8)(t,o)}return t}}function q(){let t={fetch:{}};return{get:()=>t,increment:(e,n)=>{t[e]||(t[e]={}),t[e][n]||(t[e][n]=0),t[e][n]=t[e][n]+1}}}function H(t){try{return new RegExp(t)}catch{$.j.error(`Invalid regex in the remote configuration: '${t}'`)}}async function G(t){let e;try{e=await (0,P.h)(function(t){if(t.remoteConfigurationProxy)return t.remoteConfigurationProxy;let e=K(t);return(0,z.lp)({site:t.site,path:`/v1/${encodeURIComponent(e)}.json`,subdomain:"sdk-configuration"})}(t))}catch{e=void 0}if(!e?.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let n=await e.json();return n.rum||n.profiling?{ok:!0,value:n,lastModified:function(t){let e=t.headers?.get("last-modified");if(!e)return;let n=new Date(e).getTime();return isNaN(n)?void 0:n}(e)}:{ok:!1,error:Error("No remote configuration for RUM.")}}function K(t){return t.remoteConfiguration?.id??t.remoteConfigurationId}var W=n(63356),B=n(90470),Z=n(18452),J=n(73677);function Y(t,e){return+t.toFixed(e)}function X(t){return"number"==typeof t}var Q=n(80245),tt=n(13212);let te=["tracecontext","datadog"],tn=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache","cf-cache-status","x-vercel-cache"],tr={LOW:"low",MEDIUM:"medium",HIGH:"high"},ti={[tr.LOW]:{maxFramesPerSecond:1,hashingMaxDimension:50,maxImageDimension:600,encodeQuality:.3},[tr.MEDIUM]:{maxFramesPerSecond:4,hashingMaxDimension:100,maxImageDimension:1e3,encodeQuality:.5},[tr.HIGH]:{maxFramesPerSecond:8,hashingMaxDimension:100,maxImageDimension:1280,encodeQuality:.75}},to={...B.S2,applicationId:{type:"string",required:!0},actionNameAttribute:{type:"string"},workerUrl:{type:"string"},subdomain:{type:"string"},sessionReplaySampleRate:{type:"percentage",default:0},traceSampleRate:{type:"percentage",default:100},profilingSampleRate:{type:"percentage",default:0},compressIntakeRequests:{type:"boolean",default:!1},trackUserInteractions:{type:"boolean",default:!0,strict:!1},trackResources:{type:"boolean",default:!0,strict:!1},trackLongTasks:{type:"boolean",default:!0,strict:!1},trackViewsManually:{type:"boolean",default:!1,strict:!1},betaEnableViewUpdates:{type:"boolean"},betaTrackWebSockets:{type:"boolean",default:!1,strict:!1}
4,enablePrivacyForActionName:{type:"boolean",default:!0},propagateTraceBaggage:{type:"boolean",default:!0},startSessionReplayRecordingManually:{type:"boolean",default:!1,strict:!1},sessionReplayCanvasRecording:{type:"schema",schema:{enable:{type:"boolean",required:!0},quality:{type:"enum",values:tr,default:tr.MEDIUM}}},defaultPrivacyLevel:{type:"enum",values:B.Jj,default:B.Jj.MASK_USER_INPUT,strict:!1},traceContextInjection:{type:"enum",values:B.tg,default:B.tg.SAMPLED,strict:!1},excludedActivityUrls:{type:"match-option",multiple:!0,default:[]},allowedTracingUrls:{type:"union",multiple:!0,strict:!1,default:[],variants:[{type:"match-option"},{type:"schema",schema:{match:{type:"match-option",required:!0},propagatorTypes:{type:"enum",values:["datadog","b3","b3multi","tracecontext"],multiple:!0,strict:!1,default:te}}}]},plugins:{type:"schema",multiple:!0,strict:!1,default:[],schema:{name:{type:"string",required:!0},getConfigurationTelemetry:{type:"function",strict:!1,signature:void 0},onInit:{type:"function",strict:!1,signature:void 0},onRumStart:{type:"function",strict:!1,signature:void 0}}},trackFeatureFlagsForEvents:{type:"enum",values:["vital","action","long_task","resource"],multiple:!0,strict:!1,default:[]}};function ta(t,e,n){return!(0,Z.xT)()&&(t??(!e&&"rum-salesforce"!==n))}function ts(t){return(0,R.o)(t)?{match:t,propagatorTypes:te}:(0,R.sK)(t)&&(0,R.o)(t.match)&&(null===t.propagatorTypes||void 0===t.propagatorTypes||Array.isArray(t.propagatorTypes))?{match:t.match,propagatorTypes:t.propagatorTypes||te}:void 0}let tu=["request","response","any"];var tc=n(11374),tl=n(46647),td=n(50160);function tf(){let t;let e=window;if(e.Zone&&(t=(0,tl.I)(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){let n=new e.MutationObserver(td.Z);t=tl.I(n,"originalInstance")?.constructor}return t||(t=e.MutationObserver),t}var tp=n(32950);let tg=((k={})[k.AUTO_ACTION_COMPLETED=0]="AUTO_ACTION_COMPLETED",k[k.BEFORE_VIEW_CREATED=1]="BEFORE_VIEW_CREATED",k[k.VIEW_CREATED=2]="VIEW_CREATED",k[k.BEFORE_VIEW_UPDATED=3]="BEFORE_VIEW_UPDATED",k[k.VIEW_UPDATED=4]="VIEW_UPDATED",k[k.VIEW_ENDED=5]="VIEW_ENDED",k[k.AFTER_VIEW_ENDED=6]="AFTER_VIEW_ENDED",k[k.REQUEST_STARTED=7]="REQUEST_STARTED",k[k.REQUEST_COMPLETED=8]="REQUEST_COMPLETED",k[k.WEBSOCKET_COMPLETED=9]="WEBSOCKET_COMPLETED",k[k.SESSION_EXPIRED=10]="SESSION_EXPIRED",k[k.SESSION_RENEWED=11]="SESSION_RENEWED",k[k.PREPARE_URGENT_FLUSH=12]="PREPARE_URGENT_FLUSH",k[k.RAW_RUM_EVENT_COLLECTED=13]="RAW_RUM_EVENT_COLLECTED",k[k.RUM_EVENT_COLLECTED=14]="RUM_EVENT_COLLECTED",k[k.RAW_ERROR_COLLECTED=15]="RAW_ERROR_COLLECTED",k[k.ACTION_STARTED=16]="ACTION_STARTED",k[k.DURATION_VITAL_STARTED=17]="DURATION_VITAL_STARTED",k),tm=tp.l;var th=n(17432),ty=n(94599);let t_=th.TN;var tb=n(72097),tv=n(31781),tw=n(18789);let tE=[[tv._.DOCUMENT,t=>"navigation"===t],[tv._.XHR,t=>"xmlhttprequest"===t],[tv._.FETCH,t=>"fetch"===t],[tv._.BEACON,t=>"beacon"===t],[tv._.CSS,(t,e)=>/\.css$/i.test(e)],[tv._.JS,(t,e)=>/\.js$/i.test(e)],[tv._.IMAGE,(t,e)=>["image","img","icon"].includes(t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)],[tv._.FONT,(t,e)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)],[tv._.MEDIA,(t,e)=>["audio","video"].includes(t)||null!==/\.(mp3|mp4)$/i.exec(e)]];function tS(...t){for(let e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function tC(t,e,n){if(t<=e&&e<=n)return{duration:(0,O.dg)((0,O._J)(e,n)),start:(0,O.dg)((0,O._J)(t,e))}}function tk(t){return t&&(!(0,tw.iU)(t)||(0,W.W_)(W.uh.TRACK_INTAKE_REQUESTS))}let tA=/data:(.+)?(;base64)?,/g;function tT(t,e=24e3){if(t.length<=e||!t.startsWith("data:"))return t;let n=t.substring(0,100).match(tA);return n?`${n[0]}[...]`:t}function tO(t){return t.nodeType===Node.TEXT_NODE}function tR(t){return t.nodeType===Node.ELEMENT_NODE}function tx(t){return tR(t)&&"CANVAS"===t.tagName}function tI(t){return tR(t)&&!!t.shadowRoot}function tN(t){return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&tR(t.host)}function tL(t,e){let n=t.firstChild;for(;n;)e(n),n=n.nextSibling;tI(t)&&e(t.shadowRoot)}function t$(t){return tN(t)?t.host:t.parentNode}function tD(t){if(t.parentElement)return t.parentElement;let e=t.parentNode;return e&&tN(e)?e.host:null}var tM=n(23412),tP=n(84792);let tU=((A={}).EVENT="event",A.FIRST_INPUT="first-input",A.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",A.LAYOUT_SHIFT="layout-shift",A.LONG_TASK="longtask",A.LONG_ANIMATION_FRAME="long-animation-frame",A.NAVIGATION="navigation",A.PAINT="paint",A.RESOURCE="resource",A.SOFT_NAVIGATION="soft-navigation",A.INTERACTION_CONTENTFUL_PAINT="interaction-contentful-paint",A.VISIBILITY_STATE="visibility-state",A);function tz(t){return new tc.y$(e=>{let n;let i=t=>{let n=t.filter(t=>!("resource"===t.entryType&&(!tk(t.name)||!(t.duration>=0))));n.length>0&&e.notify(n)},o=!0,a=new PerformanceObserver((0,U.zk)(t=>{o?n=(0,tM.iK)(()=>i(t.getEntries())):i(t.getEntries())}));return a.observe(t),o=!1,!r&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(r=(0,tP.Oo)(performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()}
4)),()=>{a.disconnect(),(0,tM.gr)(n)}})}function tj(t){return PerformanceObserver.supportedEntryTypes.includes(t)}let tV="Masked Element",tF=["data-dd-action-name","data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],tq=[tZ,tW],tH=[tZ,function(t){if("BODY"===t.tagName)return;let e=t.classList;for(let n=0;n<e.length;n+=1){let r=e[n];if(!tK(r))return`${CSS.escape(t.tagName)}.${CSS.escape(r)}`}},tB];function tG(t,e){if(!t.isConnected)return;let n=function(t){let e=[],n=t;for(;n;){let t=n.getRootNode();if(e.push({rootNode:t,target:n}),tN(t))n=t.host;else break}return e.reverse()}(t),r=[];for(let{rootNode:t,target:i}of n){let n=function(t,e,n){let r;let i=t;for(;i&&"HTML"!==i.nodeName;){let t=tX(i,e,tq,tQ,n,r);if(t)return t1(t,r);r=t1(tX(i,e,tH,t0,n,r)||function(t){let e=tY(t);return`${CSS.escape(t.tagName)}:nth-of-type(${e})`}(i),r),i=i.parentElement}return r}(i,t,e);if(!n)return;r.push(n)}return r.join("::shadow ")}function tK(t){return/[0-9]/.test(t)}function tW(t){if(t.id&&!tK(t.id))return`#${CSS.escape(t.id)}`}function tB(t){return CSS.escape(t.tagName)}function tZ(t,e){if(e){let t=n(e);if(t)return t}for(let t of tF){let e=n(t);if(e)return e}function n(e){if(t.hasAttribute(e))return`${CSS.escape(t.tagName)}${tJ(e,t.getAttribute(e))}`}}function tJ(t,e){return`[${t}="${CSS.escape(e)}"]`}function tY(t){let e=t.parentNode.firstElementChild,n=1;for(;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return n}function tX(t,e,n,r,i,o){for(let a of n){let n=a(t,i);if(n&&r(t,e,n,o))return n}}function tQ(t,e,n,r){return 1===e.querySelectorAll(t1(n,r)).length}function t0(t,e,n,r){let i;if(void 0===r)i=t=>t.matches(n);else{let t=t1(`${n}:scope`,r);i=e=>null!==e.querySelector(t)}let o=t.previousElementSibling;for(;o;){if(i(o))return!1;o=o.previousElementSibling}for(o=t.nextElementSibling;o;){if(i(o))return!1;o=o.nextElementSibling}return!0}function t1(t,e){return e?`${t}>${e}`:t}let t2={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:B.Jj.ALLOW,MASK:B.Jj.MASK,MASK_USER_INPUT:B.Jj.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:B.Jj.MASK_UNLESS_ALLOWLISTED},t3="data-dd-privacy",t5="hidden",t4="***",t8="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",t7={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function t6(t){return`[${t3}="${t}"], .dd-privacy-${t}`}function t9(t,e,n){if(n?.has(t))return n.get(t);let r=t$(t),i=r?t9(r,e,n):e,o=et(ee(t),i);return n&&n.set(t,o),o}function et(t,e){switch(e){case t2.HIDDEN:case t2.IGNORE:return e}switch(t){case t2.ALLOW:case t2.MASK:case t2.MASK_USER_INPUT:case t2.MASK_UNLESS_ALLOWLISTED:case t2.HIDDEN:case t2.IGNORE:return t;default:return e}}function ee(t){if(tR(t)){if("BASE"===t.tagName)return t2.ALLOW;if("INPUT"===t.tagName){if("password"===t.type||"email"===t.type||"tel"===t.type||"hidden"===t.type)return t2.MASK;let e=t.getAttribute("autocomplete");if(e&&(e.startsWith("cc-")||e.endsWith("-password")))return t2.MASK}if(t.matches(t6(t2.HIDDEN)))return t2.HIDDEN;if(t.matches(t6(t2.MASK)))return t2.MASK;if(t.matches(t6(t2.MASK_UNLESS_ALLOWLISTED)))return t2.MASK_UNLESS_ALLOWLISTED;if(t.matches(t6(t2.MASK_USER_INPUT)))return t2.MASK_USER_INPUT;if(t.matches(t6(t2.ALLOW)))return t2.ALLOW;if(function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){let t=e("rel");return/preload|prefetch/i.test(t)&&"script"===e("as")||"shortcut icon"===t||"icon"===t}if("META"===t.nodeName){let n=e("name"),r=e("rel"),i=e("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===r||"apple-touch-icon"===r||"shortcut icon"===r||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function e(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t))return t2.IGNORE}}function en(t,e){switch(e){case t2.MASK:case t2.HIDDEN:case t2.IGNORE:return!0;
4case t2.MASK_UNLESS_ALLOWLISTED:if(tO(t))return!!ei(t.parentNode)||!es(t.textContent||"");return ei(t)||tx(t);case t2.MASK_USER_INPUT:return tO(t)?ei(t.parentNode):ei(t);default:return!1}}function er(t,e,n,r,i){if(r!==t2.MASK&&r!==t2.MASK_UNLESS_ALLOWLISTED||"data-dd-privacy"===e||tF.includes(e)||e===i.actionNameAttribute)return!1;switch(e){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!("A"===t&&"href"===e||"IFRAME"===t&&"srcdoc"===e||n&&e.startsWith("data-"))||("IMG"===t||"SOURCE"===t)&&("src"===e||"srcset"===e)}function ei(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;if("INPUT"===t.tagName)switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!t7[t.tagName]}function eo(t){return t.replace(/\S/g,"x")}function ea(t,e){let n=t.parentElement?.tagName,r=t.textContent||"";return("SCRIPT"===n?r="***":e===t2.HIDDEN?r="***":en(t,e)&&("DATALIST"===n||"SELECT"===n||"OPTGROUP"===n||(r="OPTION"===n?"***":eo(r))),"HEAD"!==n||r.trim())?r:""}function es(t){return!t?.trim()||window.$DD_ALLOW?.has(t.toLocaleLowerCase())||!1}function eu(){let t=window.visualViewport;return Math.round(t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function ec(){let t=window.visualViewport;return Math.round(t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function el(){return i||(i=new tc.y$(t=>{let{throttled:e}=(0,td.P)(()=>{t.notify(ed())},200);return(0,tP.Oo)(window,tP.EZ.RESIZE,e,{capture:!0,passive:!0}).stop})),i}function ed(){let t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var ef=n(94952);let ep=((T={})[T.OFF=0]="OFF",T[T.SAMPLED=1]="SAMPLED",T[T.FORCED=2]="FORCED",T);function eg(t,e){return(0,Z.xT)()?(0,Z.ke)(Z.BP.RECORDS)?1:0:(0,ef.HR)(t.id,(0,ef.HQ)(e.sessionSampleRate,e.sessionReplaySampleRate))?1:t.isReplayForced?2:0}var em=n(88386);function eh(t){let e=crypto.getRandomValues(new Uint32Array(2)),n=BigInt(e[0])+(BigInt(e[1])<<32n);return 63===t&&(n&=0x7fffffffffffffffn),n}function ey(t){return t.toString(16).padStart(16,"0")}var e_=n(443),eb=n(80483);function ev(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function ew(t,e,n,r,i,o){let a=n.findTrackedSession();if(!a)return;let s=t.allowedTracingUrls.find(t=>(0,eb.v)([t.match],e.url,!0));if(!s)return;let u=(0,ef.HR)(a.id,(0,ef.HQ)(t.sessionSampleRate,t.traceSampleRate)),c=(0,Z.xT)()?Z.Ad()?.getIsTraceSampled()??u:u;(c||t.traceContextInjection===B.tg.ALL)&&(e.traceSampled=c,e.traceId=eh(64),e.spanId=eh(63),o(function(t,e,n,r,i,o,a,s){let u={};if(i.forEach(r=>{switch(r){case"datadog":Object.assign(u,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":t.toString()});break;case"tracecontext":Object.assign(u,{traceparent:`00-0000000000000000${ey(t)}-${ey(e)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break;case"b3":Object.assign(u,{b3:`${ey(t)}-${ey(e)}-${n?"1":"0"}`});break;case"b3multi":Object.assign(u,{"X-B3-TraceId":ey(t),"X-B3-SpanId":ey(e),"X-B3-Sampled":n?"1":"0"})}}),s.propagateTraceBaggage){let t={"session.id":r},e=o.getContext().id;"string"==typeof e&&(t["user.id"]=e);let n=a.getContext().id;"string"==typeof n&&(t["account.id"]=n);let i=Object.entries(t).map(([t,e])=>`${t}=${encodeURIComponent(e)}`).join(",");i&&(u.baggage=i)}return u}(e.traceId,e.spanId,e.traceSampled,a.id,s.propagatorTypes,r,i,t)))}var eE=n(97777);let eS=32*eE.Hi;function eC(t,e){return e.allowedGraphQlUrls.find(e=>(0,eb.v)([e.match],t))}var ek=n(84562),eA=n(98784),eT=n(14800);let eO=1;function eR(t){t.requestIndex||(t.requestIndex=eO++)}var ex=n(78179);function eI(t){return"string"==typeof t?(0,eE.qt)(t):t instanceof ArrayBuffer||ArrayBuffer.isView(t)?t.byteLength:"undefined"!=typeof Blob&&t instanceof Blob?t.size:0}var eN=n(66292);function eL(t,e,n){if(void 0===t.openClocks)return;let r=(0,O._J)(t.openClocks.timeStamp,e.timeStamp);if("in"===n&&void 0===t.firstMessageInOffset?t.firstMessageInOffset=r:"out"===n&&void 0===t.firstMessageOutOffset&&(t.firstMessageOutOffset=r),"in"===n){if(void 0!==t.lastMessageInAt){let n=(0,O._J)(t.lastMessageInAt,e.timeStamp);n>t.longestInboundSilence&&(t.longestInboundSilence=n)}t.lastMessageInAt=e.timeStamp}}function e$(t){return X(t)&&t<0?void 0:t}var eD=n(23418);function eM(t,e,n,r,i,o){let a;let s=(0,eD.C)(eP)(t,e,n,r),u=!1,c=(0,tM.iK)((0,U.zk)(()=>p({hadActivity:!1})),100),l=void 0!==o?(0,tM.iK)((0,U.zk)(()=>p({hadActivity:!0,end:(0,O.n$)()})),o):void 0,d=s.subscribe(({isBusy:t})=>{(0,tM.gr)(c),(0,tM.gr)(a);let e=(0,O.n$)();t||(a=(0,tM.iK)((0,U.zk)(()=>p({hadActivity:!0,end:e})),100))}),f=()=>{u=!0,(0,tM.gr)(c),(0,tM.gr)(a),(0,tM.gr)(l),d.unsubscribe()};function p(t){u||(f(),i(t))}return{stop:f}}function eP(t,e,n,r){return new tc.y$(i=>{let o;let a=[],s=0;return a.push(e.subscribe(t=>{t.every(ez)||u()}),n.subscribe(u),tz({type:"resource"}).subscribe(t=>{t.some(t=>!eU(r,t.name))&&u()}),t.subscribe(7,t=>{eU(r,t.url)||(void 0===o&&(o=t.requestIndex),s+=1,u())}),t.subscribe(8,t=>{eU(r,t.url)||void 0===o||t.requestIndex<o||(s-=1,u())})),()=>{a.forEach(t=>t.unsubscribe())};function u(){i.notify({isBusy:s>0})}})}function eU(t,e){return(0,eb.v)(t.excludedActivityUrls,e)}function ez(t){let e="characterData"===t.type?t.target.parentElement:t.target;return!!(e&&tR(e)&&e.matches("[data-dd-excluded-activity-mutations], [data-dd-excluded-activity-mutations] *"))}
4function ej({lifeCycle:t,isChildEvent:e,onChange:n=td.Z}){let r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=t.subscribe(14,t=>{if("view"!==t.type&&"vital"!==t.type&&e(t))switch(t.type){case c.ERROR:r.errorCount+=1,n();break;case c.ACTION:r.actionCount+=1,t.action.frustration&&(r.frustrationCount+=t.action.frustration.type.length),n();break;case c.LONG_TASK:r.longTaskCount+=1,n();break;case c.RESOURCE:t._dd?.discarded||(r.resourceCount+=1,n())}});return{stop:()=>{i.unsubscribe()},eventCounts:r}}var eV=n(82336);let eF=5*O.yR;function eq(t){let e=(0,ty.p)({expireDelay:eF}),n=new Map;function r(t){n.delete(t.key),t.eventCounts?.stop()}function i(){n.forEach(t=>{r(t)}),e.reset()}let o=t.subscribe(11,i);function a(t){let e=n.get(t);if(!e)return;let i=e.eventCounts?.eventCounts;return r(e),e.historyEntry.remove(),{...e.data,id:e.id,startClocks:e.startClocks,counts:i}}return{start:function(r,i,o,s){let u=(0,I.DO)(),c=e.add(u,i.relative);n.has(r)&&a(r);let l={id:u,key:r,startClocks:i,data:o,historyEntry:c,eventCounts:s?.isChildEvent?ej({lifeCycle:t,isChildEvent:s.isChildEvent(u)}):void 0};return n.set(r,l),l},stop:function(t,e,i){let o=n.get(t);if(!o)return;let a=i?(0,eV.$e)(o.data,i):o.data;o.historyEntry.close(e.relative);let s=(0,O._J)(o.startClocks.timeStamp,e.timeStamp),u=o.eventCounts?.eventCounts;return r(o),{...a,id:o.id,startClocks:o.startClocks,duration:s,counts:u}},discard:a,getCounts:function(t){return n.get(t)?.eventCounts?.eventCounts},findId:function(t){return e.findAll(t)},stopAll:function(){o.unsubscribe(),i(),e.stop()}}}let eH=["HTML","BODY"],eG=2*eE.Hi,eK=tF.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]),eW=O.WT;function eB(t,e){let n=function(t,e){let n=t;for(;n;){if(n.matches(e))return n;n=tD(n)}return null}(t,`[${e}]`);if(n)return eQ(eX(n.getAttribute(e).trim()))}let eZ=[(t,e,n)=>{if("labels"in t&&t.labels&&t.labels.length>0)return e1(t.labels[0],e,n)},t=>{if("INPUT"===t.nodeName){let e=t.getAttribute("type");if("button"===e||"submit"===e||"reset"===e)return{name:t.value,nameSource:"text_content"}}},(t,e,n)=>{if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"A"===t.nodeName||"button"===t.getAttribute("role")||"link"===t.getAttribute("role"))return e1(t,e,n)},(t,e,n)=>e0(t,"aria-label",e,n),(t,e,n)=>{let r=t.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(e=>(function(t,e){let n=t.getRootNode();if(n instanceof ShadowRoot){let t=n.getElementById(e);if(t)return t}return t.ownerDocument?t.ownerDocument.getElementById(e):null})(t,e)).filter(t=>!!t).map(t=>e2(t,e,n)).join(" "),nameSource:"text_content"}},(t,e,n)=>e0(t,"alt",e,n),(t,e,n)=>e0(t,"name",e,n),(t,e,n)=>e0(t,"title",e,n),(t,e,n)=>e0(t,"placeholder",e,n),(t,e,n)=>{if("options"in t&&t.options.length>0)return e1(t.options[0],e,n)}],eJ=[(t,e,n)=>e1(t,e,n)];function eY(t,e,n,r){let i=t,o=0;for(;o<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(let t of e){let e=t(i,n,r);if(e){let{name:t,nameSource:n}=e,r=t?.trim();if(r)return{name:eQ(eX(r)),nameSource:n}}}if("FORM"===i.nodeName)break;i=tD(i),o+=1}}function eX(t){return t.replace(/\s+/g," ")}function eQ(t){return t.length>100?`${(0,I._z)(t,100)} [...]`:t}function e0(t,e,n,r){let{enablePrivacyForActionName:i,defaultPrivacyLevel:o}=n,a=t.getAttribute(e);if(a&&i){let i=t9(t,o,r);if(er(t.tagName,e,a,i,n)){var s;a=es(s=a)?s:tV||eo(s)}}else a||(a="");return{name:a,nameSource:"standard_attribute"}}function e1(t,e,n){return{name:e2(t,e,n)||"",nameSource:"text_content"}}function e2(t,e,n){if(t.isContentEditable)return;let{enablePrivacyForActionName:r,actionNameAttribute:i,defaultPrivacyLevel:o}=e,a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(t){let e=t9(t,o,n);if(r&&e&&en(t,e))return NodeFilter.FILTER_REJECT;if(tR(t)){if(t.hasAttribute("data-dd-action-name")||i&&t.hasAttribute(i))return NodeFilter.FILTER_REJECT;let e=getComputedStyle(t);if("visible"!==e.visibility||"none"===e.display||e.contentVisibility&&"visible"!==e.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),s="";for(;a.nextNode();){let t=a.currentNode;if(tR(t)){("BR"===t.nodeName||"P"===t.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(t).display))&&(s+=" ");continue}s+=t.textContent||""}return s.replace(/\s+/g," ").trim()}function e3(){let t=window.getSelection();return!t||t.isCollapsed}function e5(t){return t.target instanceof Element&&!1!==t.isPrimary}function e4(t){if((2&t.ignore)!=0||t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll)return!1;let e=t.event.target;return"LABEL"===e.tagName&&e.hasAttribute("for")&&(e=document.getElementById(e.getAttribute("for"))),!e?.matches('input
4:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}let e8=10*O.WT,e7=new Map;function e6(t,e){e7.set(t,e),e7.forEach((t,e)=>{(0,O._J)(e,(0,O._q)())>e8&&e7.delete(e)})}function e9(t){return e=>e.action?.id?.includes(t)??!1}function nt(t){if(t.composed&&tI(t.target)&&"function"==typeof t.composedPath){let e=t.composedPath();if(e.length>0&&e[0]instanceof Element)return e[0]}return t.target}var ne=n(9200);function nn(t){let e="events"in t,n=e$((0,O.dg)(t.duration));return{rawRumEvent:{type:c.ACTION,date:t.startClocks.timeStamp,action:{id:t.id,target:{name:t.name},type:t.type,...void 0!==n&&{loading_time:n},...t.counts&&{error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},frustration:{type:t.frustrationTypes}},...e?{_dd:{action:{target:{selector:t.target?.selector||void 0,width:t.target?.width||void 0,height:t.target?.height||void 0,composed_path_selector:t.target?.composedPathSelector},position:t.position,name_source:t.nameSource}}}:{context:t.context}},duration:t.duration,startClocks:t.startClocks,domainContext:e?{events:t.events}:{handlingStack:t.handlingStack}}}var nr=n(88102),ni=n(58581),no=n(44286),na=n(50353);function ns(){if(tj("navigation")){let t=performance.getEntriesByType("navigation")[0];if(t&&!(t.loadEventEnd>0&&t.domComplete<=0))return t}let t=function(){let t={},e=performance.timing;for(let n in e)if(X(e[n])){let r=e[n];t[n]=0===r?0:(0,O.zj)(r)}return t}(),e={entryType:"navigation",initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...e,toJSON:void 0}),...t};return e}function nu(t){return t.responseStart>=0&&t.responseStart<=(0,O._q)()?t.responseStart:void 0}let nc=2*O.yR;function nl(t){let e=function(t){let e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]");return nd(e?.content,n?.content)}(t)||function(t){let e=function(t){for(let e=0;e<t.childNodes.length;e+=1){let n=nf(t.childNodes[e]);if(n)return n}if(t.body)for(let e=t.body.childNodes.length-1;e>=0;e-=1){let n=t.body.childNodes[e],r=nf(n);if(r)return r;if(!tO(n))break}}(t);if(e)return nd((0,I.MY)(e,"trace-id"),(0,I.MY)(e,"trace-time"))}(t);if(!(!e||e.traceTime<=(0,O.U)()-nc))return e.traceId}function nd(t,e){let n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function nf(t){if(t&&t.nodeType===Node.COMMENT_NODE){let e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}var np=n(43241);let ng=O.WT;function nm(){let t=[];function e(e){let r;if(!e||e.didTimeout){let t=performance.now();r=()=>30-(performance.now()-t)}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){(0,np.K)(e,{timeout:ng})}return{push(e){1===t.push(e)&&n()},stop(){t.length=0}}}var nh=n(21562);function ny(t,e,n){var r;let i=e?function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toString(),trace_id:t.traceId.toString(),rule_psr:e.rulePsr}}}(e,n):function(t,e){if("navigation"!==t.initiatorType)return;let n=(0,eD.C)(nl)(document);if(n)return{_dd:{trace_id:n,span_id:eh(63).toString(),rule_psr:e.rulePsr}}}(t,n);if(!n.trackResources&&!i)return;let o=(0,O.DY)(t.startTime),a=function(t){let{duration:e,startTime:n,responseEnd:r}=t;return"navigation"===t.initiatorType||0===e&&n<r?(0,O._J)(n,r):e}(t),s=function(t,e){let n=e.trackResourceHeaders;if(0===n.length||!t)return;let r=n.filter(e=>void 0===e.url||(0,eb.v)([e.url],t.url,!0));if(0===r.length)return;let i=r.filter(t=>void 0===t.location||"any"===t.location||"response"===t.location),o=r.filter(t=>void 0===t.location||"any"===t.location||"request"===t.location),a=i.length>0?function(t,e){if(t.type===tv.x.FETCH&&t.response)return nv(t.response.headers,e);if(t.type===tv.x.XHR&&t.xhr){let n=t.xhr.getAllResponseHeaders();if(n)try{return nv(new Headers(function(t){let e=[];for(let n of t.trim().split(/\r\n/)){let t=n.indexOf(":");t>0&&e.push([n.substring(0,t).trim(),n.substring(t+1).trim()])}return e}(n)),e)}catch{}}}(t,i):void 0,s=o.length>0?function(t,e){let n;if(t.type===tv.x.FETCH)return t.init?.headers?n=new Headers(t.init.headers):t.
4input instanceof Request&&(n=t.input.headers),n?nv(n,e):void 0}(t,o):void 0;if(a||s)return{resource:{request:s?{headers:s}:void 0,response:a?{headers:a}:void 0}}}(e,n);return{startClocks:o,duration:a,rawRumEvent:(0,eV.$e)({date:o.timeStamp,resource:{id:(0,I.DO)(),duration:(0,O.dg)(a),type:function(t){let e=t.name;if(!(0,tb.jv)(e))return tv._.OTHER;let n=(0,tb.ye)(e);for(let[e,r]of tE)if(r(t.initiatorType,n))return e;return tv._.OTHER}(t),method:e?.method,status_code:e?e.status:0===(r=t.responseStatus)?void 0:r,url:e?tT(e.url):t.name,protocol:""===t.nextHopProtocol?void 0:t.nextHopProtocol,delivery_type:""===t.deliveryType?"other":t.deliveryType,graphql:e&&function(t,e){let n=eC(t.url,e);if(n)return function(t,e){let n=function(t,e=!1){let n;if("POST"===t.method?n=function(t){if(!t||"string"!=typeof t)return;let e=(0,x.Cy)(t);if(e)return{query:e.query,operationName:e.operationName,variables:e.variables?JSON.stringify(e.variables):void 0,operationType:e.operationType}}(t.requestBody):"GET"===t.method&&(n=function(t){let e=(0,tb.Q2)(t).searchParams,n=e.get("variables"),r=n&&void 0!==(0,x.Cy)(n)?n:void 0;return{query:e.get("query")||void 0,operationName:e.get("operationName")||void 0,variables:r,operationType:e.get("operationType")||void 0}}(t.url)),n)return function(t,e){let n,r,i;if(t.query){let i=t.query.trim();n=i.match(/^\s*(query|mutation|subscription)\b/i)?.[1],e&&(r=(0,I._z)(i,eS,"..."))}if(!n){let e=t.operationType;("query"===e||"mutation"===e||"subscription"===e)&&(n=e)}return t.variables&&(i=t.variables),{operationType:n,operationName:t.operationName,variables:i,payload:r}}(n,e)}(t,e.trackPayload);if(n){if(e.trackResponseErrors&&t.responseBody){let e=function(t){let e=(0,x.Cy)(t);if(e&&"object"==typeof e&&(0,Q.Of)(e.errors))return e.errors.map(t=>({message:t.message,path:t.path,locations:t.locations,code:t.extensions?.code}))}(t.responseBody);e&&(n.error_count=e.length,n.errors=e)}return n}}(t,n)}(e,n),render_blocking_status:t.renderBlockingStatus,...function(t){if(t.startTime<t.responseStart){let{encodedBodySize:e,decodedBodySize:n,transferSize:r}=t;return{size:n,encoded_body_size:e,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(t),...function(t){if(!function(t){let e=tS(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!(t.redirectEnd>t.startTime)||tS(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}(t))return;let{startTime:e,fetchStart:n,workerStart:r,redirectStart:i,redirectEnd:o,domainLookupStart:a,domainLookupEnd:s,connectStart:u,secureConnectionStart:c,connectEnd:l,requestStart:d,responseStart:f,responseEnd:p}=t,g={download:tC(e,f,p),first_byte:tC(e,d,f)};return 0<r&&r<n&&(g.worker=tC(e,r,n)),n<l&&(g.connect=tC(e,u,l),u<=c&&c<=l&&(g.ssl=tC(e,c,l))),n<s&&(g.dns=tC(e,a,s)),e<o&&(g.redirect=tC(e,i,o)),g}(t)},type:c.RESOURCE,_dd:{discarded:!n.trackResources}},i,function(t){let e=t.contentType;if(e)return{resource:{response:{headers:{"content-type":e}}}}}(t),s),domainContext:{performanceEntry:t,isManual:!1,isAborted:!!e&&e.isAborted,isWebSocket:!1,handlingStack:e?.handlingStack,requestInit:e?.init,requestInput:e?.input,response:e?.response,error:e?.error,xhr:e?.xhr}}}let n_=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/,nb=t=>tn.includes(t);function nv(t,e){let n={},r=0,i=!1;return t.forEach((t,o)=>{if(r>=100){i||($.j.warn("Maximum number of headers (100) has been reached. Further headers are dropped."),i=!0);return}let a=o.toLowerCase();if(n_.test(a))return;let s=e.find(t=>(0,eb.v)([t.name??nb],a));if(!s)return;let{extractor:u}=s,c=u?m(t,u):t;void 0!==c&&(c.length>128&&$.j.warn(`Header "${a}" value was truncated from ${c.length} to 128 characters.`),n[a]=(0,I._z)(c,128),r++)}),r>0?n:void 0}let nw=10*O.yR;function nE(t,e,n){if(void 0===n)return;let r=t?function(t,e){let n=function(){if(tj("resource"))return performance.getEntriesByType("resource")}();if(n)return(0,e_.dF)(n,n=>n.name===t&&n.startTime<=e)}(t,e):void 0,i=r?Math.max(n,r.requestStart||r.startTime):n,o=Math.min(e,Math.max(i,r?.responseEnd||0));return{loadDelay:i-n,loadTime:o-i,renderDelay:e-o}}let nS=10*O.yR;function nC(t,e=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:td.Z};if(tj("visibility-state")){let e=performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name).find(e=>e.startTime>=t.relative);if(e)return{timeStamp:e.startTime,stop:td.Z}}let n=1/0,{stop:r}=(0,tP.yw)(e,[tP.EZ.PAGE_HIDE,tP.EZ.VISIBILITY_CHANGE],t=>{(t.type===tP.EZ.PAGE_HIDE||"hidden"===document.visibilityState)&&(n=t.timeStamp,r())},{capture:!0});return{get timeStamp(){return n},stop:r}}let nk=(t,e)=>t*e,nA=(t,e)=>{let n=Math.max(t.left,e.left),r=Math.max(t.top,e.top),i=Math.min(t.right,e.right),o=Math.min(t.bottom,e.bottom);return n>=i||r>=o?0:nk(i-n,o-r)},nT=t=>nk(t.previousRect.width,t.previousRect.height)+nk(t.currentRect.width,t.currentRect.height)-nA(t.previousRect,t.currentRect);function nO({x:t,y:e,width:n,height:r}){return{x:t,y:e,width:n,height:r}}let nR=5*O.WT,nx=O.WT,nI=0,nN=1/0,nL=0,n$=()=>a?nI:window.performance.interactionCount||0,nD=1*O.yR;function nM(t){return Math.min(t,nD)}let nP=O.WT;var nU=n(58590),nz=n(1890);let nj=5*O.yR,nV=5*O.yR;function nF(t){let e=t.indexOf("?");return e<0?t:t.slice(0,e)}function nq(t,e){let n=new Set;for(let r of t)r.startsWith(`${e}.`)&&n.add(r.slice(e.length+1));return n}var nH=n(26457),nG=n(58729),nK=n(91703);let nW=th.TN;function nB(){return(0,eD.C)(ex.globalObject.location)}function nZ(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}let nJ=th.TN,nY=10*O.WT;function nX(){0!==s.batchCount&&((0,D.qZ)(D.T.CUSTOMER_DATA_METRIC_NAME,s),n1())}function nQ(){return{min:1/0,max:0,sum:0}}function n0(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function n1(){s={batchCount:0,batchBytesCount:nQ(),batchMessagesCount:nQ()}}let n2=th.TN;function n3(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function n5(t){let{startClocks:e,type:n,name:r,description:i,context:o,handlingStack:a}=t,s={id:(t.type===g.DURATION?t.id:void 0)??(0,I.DO)(),type:n,name:r,description:i,...n===g.DURATION?{duration:(0,O.dg)(t.duration)}:{step_type:t.stepType,operation_key:t.operationKey,failure_reason:t.failureReason}};return{rawRumEvent:{date:e.timeStamp,vital:s,type:c.VITAL,context:o},startClocks:e,duration:n===g.DURATION?t.duration:void 0,domainContext:a?{handlingStack:a}:{}}}var n4=n(47529);let n8=O.WT;function n7(t,e){let n=(0,M.ej)(t),r=(0,tM.Zi)(()=>{let r=(0,M.ej)(t);r!==n&&(n=r,e(r))},n8);return()=>{(0,tM.cv)(r)}}var n6=n(44403),n9=n(14339);function rt(t){return"object"===(0,R.oL)(t)}var re=n(58776),rn=n(20303);let rr={"view.name":"string","view.url":"string","view.referrer":"string",context:"object",service:"string",version:"string"},ri={[c.VIEW]:{...rr,"view.performance.lcp.resource_url":"string"},[c.ERROR]:{...rr,"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string","_dd.debug_ids":"array"},[c.RESOURCE]:{...rr,"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object","resource.websocket.close_reason":"string","resource.websocket.protocol":"string"},[c.ACTION]:{...rr,"action.target.name":"string"},[c.LONG_TASK]:{...rr,"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string","_dd.debug_ids":"array"},[c.VITAL]:rr};var ro=n(63851);let ra=[c.ACTION,c.ERROR,c.LONG_TASK,c.RESOURCE,c.VITAL];var rs=n(61190),ru=n(12835),rc=n(11639),rl=n(62019),rd=n(2604);function rf(t,e,n,r,i,m,h,y,_,b){let v=[],w=new tm;w.subscribe(14,t=>(0,nH.j)("rum",t)),e.expireObservable.subscribe(()=>w.notify(10,{endClocks:(0,O.$I)()})),e.renewObservable.subscribe(()=>w.notify(11));let E=t=>{w.notify(15,{error:{message:t,source:na.zH.AGENT,startClocks:(0,O.$I)()}}),(0,D.eJ)("Error reported to customer",{"error.message":t})};if((0,Z.xT)()){!function(t){let e=(0,Z.Ad)();t.subscribe(14,t=>{e.send("rum",t)})}(w);let t=(0,nz.FP)().subscribe(t=>{w.notify(12,t.reason)});v.push(()=>t.unsubscribe())}else{var S;let n=function(t,e,n,r,i){let o=[(0,z.Ez)(t,"rum")],a=(0,z.ji)(t,"rum");a&&o.push(a);let s=(0,nG.n)({encoder:i(nK.C.RUM),endpoints:o,reportError:n});r.subscribe(()=>s.forceFlush("session_expire"));let{dispatch:u,stop:l}=function(t,e){let n,r;let i=!1,o=0,{unsubscribe:a}=t.flushObservable.subscribe(()=>{i=!1,r=n});return{dispatch:a=>
4{if(a.type!==c.VIEW){t.add(a);return}if(!e){t.upsert(a,a.view.id);return}let s=a.view.id;if(!a.view.is_active){s===n?.view.id&&(n=void 0,r=void 0,i=!1,o=0),t.upsert(a,s);return}if(s!==n?.view.id){o=0,t.upsert(a,s),n=a,i=!t.isEmpty;return}if(n=a,i){t.upsert(a,s);return}if((o+=1)>=100){o=0,t.upsert(a,s),i=!t.isEmpty;return}if(r){let e=function(t,e){let n=function t(e,n,r){let i={},o=r?.replaceKeys??new Set,a=r?.appendKeys??new Set,s=r?.ignoreKeys??new Set;for(let r of Object.keys(e)){if(s.has(r))continue;let u=e[r],c=n[r];if(!o.has(r)&&(0,R.sK)(u)&&(0,R.sK)(c)){let e=t(u,c,{replaceKeys:nq(o,r),appendKeys:nq(a,r),ignoreKeys:nq(s,r)});e&&(i[r]=e)}else a.has(r)&&Array.isArray(u)&&Array.isArray(c)?u.length>c.length&&(i[r]=u.slice(c.length)):!function t(e,n){if(e===n)return!0;if(null===e||"object"!=typeof e||null===n||"object"!=typeof n)return e===n;if(Array.isArray(e)&&Array.isArray(n))return e.length===n.length&&e.every((e,r)=>t(e,n[r]));if(Array.isArray(e)||Array.isArray(n))return!1;let r=Object.keys(e),i=Object.keys(n);return r.length===i.length&&r.every(r=>i.includes(r)&&t(e[r],n[r]))}(u,c)&&(i[r]=u)}for(let t of Object.keys(n))t in e||(i[t]=null);return Object.keys(i).length>0?i:void 0}(t,e,{replaceKeys:new Set(["view.custom_timings","context","connectivity","usr","device","privacy"]),appendKeys:new Set(["_dd.page_states"]),ignoreKeys:new Set(["date","type","application","session","view.id","view.url","_dd.document_version","_dd.format_version"])});if(n)return(0,eV.$e)(n,{type:c.VIEW_UPDATE,date:t.date,application:t.application,session:t.session,view:{id:t.view.id,url:t.view.url},_dd:{document_version:t._dd.document_version,format_version:t._dd.format_version}})}(a,r);e&&((0,nH.j)("rum",e),t.upsert(e,s))}},stop:a}}(s,t.betaEnableViewUpdates);e.subscribe(14,u);let d=s.stop.bind(s);return s.stop=()=>{l(),d()},s}(t,w,E,e.expireObservable,m),r=n.prepareUrgentFlushObservable.subscribe(t=>{w.notify(12,t)});v.push(()=>r.unsubscribe()),v.push(()=>n.stop()),S=n.flushObservable,y.metricsEnabled&&(n1(),u=!1,w.subscribe(14,()=>{u=!0}),S.subscribe(({bytesCount:t,messagesCount:e})=>{u&&(u=!1,s.batchCount+=1,n0(s.batchBytesCount,t),n0(s.batchMessagesCount,e))}),(0,tM.Zi)(nX,nY))}let{stop:C,...k}=function(t,e,n,r,i,s,u,m,h){var y,_;let b;let v=[],w=function(){let t=tf();return new tc.y$(e=>{let n=new t((0,U.zk)(t=>e.notify(t)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}(),E=(b=(0,x.mv)(nB()),new tc.y$(t=>{let{stop:e}=function(t){let{stop:e}=(0,em.Su)(nZ("pushState"),"pushState",({onPostCall:e})=>{e(t)}),{stop:n}=(0,em.Su)(nZ("replaceState"),"replaceState",({onPostCall:e})=>{e(t)}),{stop:r}=(0,tP.Oo)(window,tP.EZ.POP_STATE,t);return{stop:()=>{e(),n(),r()}}}(r),{stop:n}=(0,tP.Oo)(window,tP.EZ.HASH_CHANGE,r);function r(){if(b.href===nB().href)return;let e=(0,x.mv)(nB());t.notify({newLocation:e,oldLocation:b}),b=e}return()=>{e(),n()}})),{observable:S,stop:C}=function(){let t=new tc.y$,{stop:e}=(0,em.Su)(window,"open",()=>t.notify());return{observable:t,stop:e}}();v.push(C);let{assembleEventDefaults:k}=e;!function(t,e,n){t.register(({eventType:t})=>{let r=e.source;return{type:t,_dd:{format_version:2,drift:(0,O.Pv)(),configuration:{session_sample_rate:Y(e.sessionSampleRate,3),session_replay_sample_rate:Y(e.sessionReplaySampleRate,3),profiling_sample_rate:Y(e.profilingSampleRate,3),trace_sample_rate:Y(e.traceSampleRate,3)},browser_sdk_version:(0,Z.xT)()?"7.15.0":void 0,sdk_name:n},application:{id:e.applicationId},date:(0,O.n$)(),source:r}})}(k,n,m);let A=function(t,e=500){let n;let r=(0,ty.p)({expireDelay:n2,maxEntries:4e3});tj("visibility-state")&&performance.getEntriesByType("visibility-state").forEach(t=>{o("hidden"===t.name?"hidden":"active",t.startTime)}),o(n3(),(0,O._q)());let{stop:i}=(0,tP.yw)(window,[tP.EZ.PAGE_SHOW,tP.EZ.FOCUS,tP.EZ.BLUR,tP.EZ.VISIBILITY_CHANGE,tP.EZ.RESUME,tP.EZ.FREEZE,tP.EZ.PAGE_HIDE],t=>{o(t.type===tP.EZ.FREEZE?"frozen":t.type===tP.EZ.PAGE_HIDE?t.persisted?"frozen":"terminated":n3(),t.timeStamp)},{capture:!0});function o(t,e=(0,O._q)()){t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}function a(t,e,n){return r.findAll(e,n).some(e=>e.state===t)}return t.register(({startTime:t,duration:n=0,eventType:i})=>i===c.VIEW?{type:i,_dd:{page_states:function(t,e,n){if(0!==t.length)return t.slice(-n).reverse().map(({state:t,startTime:n})=>({state:t,start:(0,O.dg)((0,O._J)(e,n))}))}(r.findAll(t,n),t,e)}}:i===c.ACTION||i===c.ERROR?{type:i,view:{in_foreground:a("active",t,0)}}:ne.kb),{wasInPageStateDuringPeriod:a,addPageState:o,stop:()=>{i(),r.stop()}}}(k);v.push(()=>A.stop());let T=function(t){let e=(0,ty.p)({expireDelay:t_});return t.subscribe(1,t=>{e.add({service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks},t.startClocks.relative)}),t.subscribe(6,({endClocks:t})=>{e.closeActive(t.relative)}),t.subscribe(3,t=>{let n=e.find(t.startClocks.relative);n&&(t.name&&(n.name=t.name),t.context&&(n.context=t.context),n.sessionIsActive=t.sessionIsActive)}),t.subscribe(11,()=>{e.reset()}),{findView:(t,n)=>e.find(t,n),stop:()=>{e.stop()}}}(t);v.push(()=>T.stop());let N=function(t,e,n){let r;let i=(0,ty.p)({expireDelay:nW});t.subscribe(1,({startClocks:t,url:e})=>{let n=(0,eD.C)(ex.globalObject.location).href,o=void 0!==e?(0,tb.Q2)(e,n).href:n;i.add(a({url:o,referrer:r||document.referrer}),t.relative),r=o}),t.subscribe(6,({endClocks:t})=>{i.closeActive(t.relative)});let o=n.subscribe(({newLocation:t})=>{let e=i.find();if(e){let n=(0,O._q)();i.closeActive(n),i.add(a({url:t.href,referrer:e.referrer}),n)}});function a({url:t,referrer:e}){return{url:t,referrer:e}}return e.register(({startTime:t,eventType:e})=>{let n=i.find(t);return n?{type:e,view:{url:n.url,referrer:n.referrer}}:ne.C_}),{findUrl:t=>i.find(t),stop:()=>{o.unsubscribe(),i.stop()}}}(t,k,E);v.push(()=>N.stop());let L=function(t,e,n){let r=(0,ty.p)({expireDelay:nJ});return t.subscribe(1,({startClocks:t})=>{r.add({},t.relative)}),t.subscribe(6,({endClocks:t})=>{r.closeActive(t.relative)}),e.register(({startTime:t,eventType:e})=>
4{if(!n.trackFeatureFlagsForEvents.concat([c.VIEW,c.ERROR]).includes(e))return ne.kb;let i=r.find(t);return!i||(0,x.Qr)(i)?ne.kb:{type:e,feature_flags:i}}),{addFeatureFlagEvaluation:(t,e)=>{let n=r.find();n&&(n[t]=e)}}}(t,k,n);!function(t,e,n,r,i){t.register(({eventType:t,startTime:o})=>{let a,s,u;let l=n.findTrackedSession(o),d=i.findView(o);return l&&d?(t===c.VIEW?(a=!!r.getReplayStats(d.id)||void 0,s=1===eg(l,e),u=!!d.sessionIsActive&&void 0):a=!!r.isRecording()||void 0,{type:t,session:{id:l.id,type:"user",has_replay:a,sampled_for_replay:s,is_active:u}}):ne.C_})}(k,n,r,i,T),function(t){t.register(({eventType:t})=>({type:t,connectivity:(0,ro.T)()}))}(k),(0,ru.G)(k);let D=(0,rc.$)(k,n,"rum",!0),P=(0,rl.c)(k,n,r,"rum"),z=(0,rd.p)(k,n,"rum"),j=function(t,e,n,r,i){let o;let{unsubscribe:a}=t.subscribe(0,e=>{t.notify(13,nn(e))}),s=td.Z;i.trackUserInteractions&&(o=function(t,e,n,r){let i;let o=eq(t),a=new tc.y$;t.subscribe(5,c),t.subscribe(12,c);let{stop:s}=function({onPointerDown:t,onPointerUp:e}){let n,r;let i={selection:!1,input:!1,scroll:!1},o=[(0,tP.Oo)(window,tP.EZ.POINTER_DOWN,e=>{e5(e)&&(n=e3(),i={selection:!1,input:!1,scroll:!1},r=t(e))},{capture:!0}),(0,tP.Oo)(window,tP.EZ.SELECTION_CHANGE,()=>{n&&e3()||(i.selection=!0)},{capture:!0}),(0,tP.Oo)(window,tP.EZ.SCROLL,()=>{i.scroll=!0},{capture:!0,passive:!0}),(0,tP.Oo)(window,tP.EZ.POINTER_UP,t=>{if(e5(t)&&r){let n=i;e(r,t,()=>n),r=void 0}},{capture:!0}),(0,tP.Oo)(window,tP.EZ.INPUT,()=>{i.input=!0},{capture:!0})];return{stop:()=>{o.forEach(t=>t.stop())}}}({onPointerDown:i=>(function(t,e,n,r,i){let o;if((o=t.enablePrivacyForActionName?t9(nt(r),t.defaultPrivacyLevel):t2.ALLOW)===t2.HIDDEN)return;let a=function(t,e,n){let r=nt(t),i=r.getBoundingClientRect(),o=tG(r,n.actionNameAttribute),a=function(t,e){let n=t.filter(t=>t instanceof Element&&!eH.includes(t.tagName));if(0===n.length)return"";let r=e?[e].concat(eK):eK,i="";for(let t of n)if((i+=function(t,e){let n=tB(t),r=tW(t),i=Array.from(t.classList).filter(t=>!tK(t)).sort().map(t=>`.${CSS.escape(t)}`).join(""),o=function(t,e){let n=[];for(let r of Array.from(t.attributes))e.includes(r.name)&&n.push(tJ(r.name,r.value));return n.sort().join("")}(t,e),a=function(t){let e=Array.from(t.parentNode.children);if(e.length<=1)return"";let n=e.filter(e=>e.tagName===t.tagName),r=e.indexOf(t),i=tY(t);return`:nth-child(${r+1})${n.length>1?`:nth-of-type(${i})`:""}`}(t);return`${n}${r||""}${o}${i}${a};`}(t,r)).length>=eG)return(0,I._z)(i,eG);return i}(t.composedPath(),n.actionNameAttribute);o&&e6(t.timeStamp,o);let{name:s,nameSource:u}=function(t,e,n=t2.ALLOW){let r=new Map,{actionNameAttribute:i}=e,o=eB(t,"data-dd-action-name")||i&&eB(t,i);return o?{name:o,nameSource:"custom_attribute"}:n===t2.MASK?{name:tV,nameSource:"mask_placeholder"}:eY(t,eZ,e,r)||eY(t,eJ,e,r)||{name:"",nameSource:"blank"}}(r,n,e);return{type:f.CLICK,target:{width:Math.round(i.width),height:Math.round(i.height),selector:o,composedPathSelector:a||void 0},position:{x:Math.round(t.clientX-i.left),y:Math.round(t.clientY-i.top)},name:s,nameSource:u}}(r,o,t),s=!1;return eM(e,n,i,t,t=>{s=t.hadActivity},100),{clickActionBase:a,ignore:function(t){let e=0,n=t;for(;n;){let t=n.getAttribute("data-dd-ignore-frustration");if(null!==t){let n=t.split(/\s+/);if(""===t.trim()||n.includes("all"))return 7;n.includes("rage-click")&&(e|=1),n.includes("dead-click")&&(e|=2),n.includes("error-click")&&(e|=4)}if(7===e)break;n=tD(n)}return e}(nt(r)),hadActivityOnPointerDown:()=>s}})(r,t,e,i,n),onPointerUp:({clickActionBase:i,ignore:s,hadActivityOnPointerDown:c},l,d)=>{!function(t,e,n,r,i,o,a,s,u,c,l,d){let f=function t(e,n,r,i,o,a){let s;let u=(0,I.DO)(),c=(0,O.DY)(a.timeStamp),l=n.start(u,c,i,{isChildEvent:e9});e.notify(16,l);let d=0,f=[],p=new tc.y$;function g(t){0===d&&(d=1,s=t?n.stop(u,(0,O.lO)(t)):n.discard(u),p.notify())}return{event:a,ignore:o,stop:g,stopObservable:p,get hasError(){let t=s?.counts??n.getCounts(u);return!!t&&t.errorCount>0},get hasPageActivity(){return s&&"duration"in s},getUserActivity:r,addFrustration:t=>{f.push(t)},get startClocks(){return c},isStopped:()=>1===d||2===d,clone:()=>t(e,n,r,i,o,a),validate:t=>
4{if(g(),1!==d||!s)return;let n={frustrationTypes:f,events:t??[a],event:a,...s,counts:s.counts};e.notify(0,n),d=2},discard:()=>{g(),d=2}}}(e,i,l,s,u,c);a(f);let p=s?.target?.selector;p&&e6(c.timeStamp,p);let{stop:g}=eM(e,n,r,t,t=>{t.hadActivity&&t.end<f.startClocks.timeStamp?f.discard():t.hadActivity?f.stop(t.end):d()?f.stop(f.startClocks.timeStamp):f.stop()},e8),m=e.subscribe(5,({endClocks:t})=>{f.stop(t.timeStamp)}),h=e.subscribe(12,()=>{f.stop((0,O.n$)())}),y=o.subscribe(()=>{f.stop()});f.stopObservable.subscribe(()=>{h.unsubscribe(),m.unsubscribe(),g(),y.unsubscribe()})}(r,t,e,n,o,a,u,i,s,l,d,c)}});return{stop:()=>{c(),a.notify(),s(),o.stopAll()},findActionId:o.findId};function u(t){if(!i?.tryAppend(t)){let e=t.clone(),n=function(t,e){let n;let r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),(0,tM.gr)(n),n=(0,tM.iK)(s,eW)}function a(){1===i&&r.every(t=>t.isStopped())&&(i=2,e(r))}function s(){(0,tM.gr)(n),0===i&&(i=1,a())}return o(t),{tryAppend:t=>{var e,n,a;return 0===i&&(!(r.length>0)||(1&(e=r[r.length-1]).ignore)!=0==((1&t.ignore)!=0)&&e.event.target===t.event.target&&100>=(n=e.event,a=t.event,Math.sqrt(Math.pow(n.clientX-a.clientX,2)+Math.pow(n.clientY-a.clientY,2)))&&e.event.timeStamp-t.event.timeStamp<=eW?(o(t),!0):(s(),!1))},stop:()=>{s()}}}(t,t=>{(function(t,e){let{isRage:n}=function(t,e){if(function(t){if(t.some(t=>(1&t.ignore)!=0||t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=O.WT)return!0;return!1}(t))return e.addFrustration(p.RAGE_CLICK),t.some(e4)&&e.addFrustration(p.DEAD_CLICK),e.hasError&&!((4&e.ignore)!=0)&&e.addFrustration(p.ERROR_CLICK),{isRage:!0};let n=t.some(t=>t.getUserActivity().selection);return t.forEach(t=>{t.hasError&&!((4&t.ignore)!=0)&&t.addFrustration(p.ERROR_CLICK),e4(t)&&!n&&t.addFrustration(p.DEAD_CLICK)}),{isRage:!1}}(t,e);n?(t.forEach(t=>t.discard()),e.stop((0,O.n$)()),e.validate(t.map(t=>t.event))):(e.discard(),t.forEach(t=>t.validate()))})(t,e),i===n&&(i=void 0)});i=n}}function c(){i&&i.stop()}}(t,n,r,i));let u=function(t,e){let n=eq(t);return{addAction:function(t){e({id:(0,I.DO)(),frustrationTypes:[],...t})},startAction:function(e,r={},i=(0,O.$I)()){let o=r.actionKey??e,a=n.start(o,i,{name:e,...r},{isChildEvent:e9});t.notify(16,a)},stopAction:function(t,r={},i=(0,O.$I)()){let o=r.actionKey??t,a=n.stop(o,i,r);if(!a)return;let s=[];a.counts&&a.counts.errorCount>0&&s.push(p.ERROR_CLICK),e({...a,type:a.type||f.CUSTOM,frustrationTypes:s})},findActionId:n.findId,stop:n.stopAll}}(t,e=>{t.notify(13,nn(e))}),l={findActionId:t=>{let e=u.findActionId(t),n=o?.findActionId(t)??[];return e.concat(n)}};return e.assembleEventDefaults.register(({startTime:t,eventType:e})=>{if(e!==c.ERROR&&e!==c.RESOURCE&&e!==c.LONG_TASK)return ne.kb;let n=e===c.LONG_TASK?(0,O.WK)(t,1):t,r=l.findActionId(n);return r.length?{type:e,action:{id:r}}:ne.kb}),e.assembleTelemetry.register(({startTime:t})=>({action:{id:l.findActionId(t)}})),{addAction:u.addAction,startAction:u.startAction,stopAction:u.stopAction,actionContexts:l,stop:()=>{a(),s(),u.stop(),o?.stop()}}}(t,e,w,S,n);v.push(j.stop);let V=function(t){let e;let n=requestAnimationFrame((0,U.zk)(()=>{e=ed()})),r=el().subscribe(t=>{e=t}).unsubscribe;return t.register(({eventType:t})=>({type:t,display:e?{viewport:e}:void 0})),{stop:()=>{r(),n&&cancelAnimationFrame(n)}}}(k);v.push(V.stop);let F=function(t,e=function(t){let e=(0,n4.k6)()?(t,e)=>(0,tP.Oo)(ex.globalObject.cookieStore,tP.EZ.CHANGE,n=>{let r=n.changed.find(e=>e.name===t)||n.deleted.find(e=>e.name===t);r&&e(r.value)}).stop:n7;return new tc.y$(n=>e(t,t=>n.notify(t)))}("datadog-ci-visibility-test-execution-id")){let n=(0,M.OC)("datadog-ci-visibility-test-execution-id")||function(){let t=window.Cypress;if(t)try{return t.env("traceId")}catch{$.j.warn("Failed to read Cypress test execution id via Cypress.env(). Upgrade dd-trace-js to >= 5.88.0 to keep RUM ↔ test correlation working.");return}}(),r=e.subscribe(t=>{n=t});return t.register(({eventType:t})=>"string"!=typeof n?ne.kb:{type:t,session:{type:"ci_test"},ci_test:{test_execution_id:n}}),{stop:()=>{r.unsubscribe()}}}(k);v.push(F.stop),function(t){t.register(({eventType:t})=>(0,n9.m)()?{type:t,session:{type:"synthetics"},synthetics:{...(0,n9.OT)(),injected:(0,n9.Y9)()}}:ne.kb)}(k),function(t,e,n,r,i){let o={[c.ERROR]:(0,re.K)(c.ERROR,r,void 0),[c.ACTION]:(0,re.K)(c.ACTION,r,void 0),[c.VITAL]:(0,re.K)(c.VITAL,r,void 0)};e.subscribe(13,({startClocks:r,duration:i,rawRumEvent:a,domainContext:s})=>{let u={eventType:a.type,rawRumEvent:a,domainContext:s,startTime:r.relative,duration:i},l=n.assembleEventDefaults.trigger(u);
4if(l===ne.C_)return;let d=n.assembleEvent.trigger(u);if(d===ne.C_)return;let f=(0,eV.$e)(l,a,d,{ddtags:(0,rn.MS)(t).join(",")});(function(t,e,n,r){if(e){let r=function(t,e,n){let r=(0,eV.I8)(t),i=n(r);return(0,e_.qP)(e).forEach(([e,n])=>(function t(e,n,r,i){let[o,...a]=r;if("[]"===o){Array.isArray(e)&&Array.isArray(n)&&e.forEach((e,r)=>t(e,n[r],a,i));return}if(rt(e)&&rt(n)){if(a.length>0)return t(e[o],n[o],a,i);(function(t,e,n,r){if(t[e]===n)return;let i=(0,R.oL)(n);i===r?t[e]=(0,eN.N)(n):"object"===r&&("undefined"===i||"null"===i)?t[e]={}:"array"===r&&("undefined"===i||"null"===i)&&(t[e]=[])})(e,o,n[o],i)}})(t,r,e.split(/\.|(?=\[\])/),n)),i}(t,ri[t.type],t=>e(t,n));if(!1===r&&t.type!==c.VIEW)return!1;!1===r&&$.j.warn("Can't dismiss view events using beforeSend!")}return!r[t.type]?.isLimitReached()})(f,t.beforeSend,s,o)&&((0,x.Qr)(f.context)&&delete f.context,e.notify(14,f))})}(n,t,e,h);let{addTiming:q,setLoadingTime:H,startView:G,setViewName:K,setViewContext:B,setViewContextProperty:J,getViewContext:X,stop:Q}=(t.subscribe(4,e=>t.notify(13,function(t,e,n){let r=n.getReplayStats(t.id),i=t.commonViewMetrics?.cumulativeLayoutShift?.devicePixelRatio,o={_dd:{document_version:t.documentVersion,replay_stats:r,cls:i?{device_pixel_ratio:i}:void 0,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually,remote_configuration_id:e.remoteConfigurationId}},date:t.startClocks.timeStamp,type:c.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:t.commonViewMetrics.cumulativeLayoutShift?.value,cumulative_layout_shift_time:(0,O.dg)(t.commonViewMetrics.cumulativeLayoutShift?.time),cumulative_layout_shift_target_selector:t.commonViewMetrics.cumulativeLayoutShift?.targetSelector,first_byte:(0,O.dg)(t.initialViewMetrics.navigationTimings?.firstByte),dom_complete:(0,O.dg)(t.initialViewMetrics.navigationTimings?.domComplete),dom_content_loaded:(0,O.dg)(t.initialViewMetrics.navigationTimings?.domContentLoaded),dom_interactive:(0,O.dg)(t.initialViewMetrics.navigationTimings?.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:(0,O.dg)(t.initialViewMetrics.firstContentfulPaint),interaction_to_next_paint:(0,O.dg)(t.commonViewMetrics.interactionToNextPaint?.value),interaction_to_next_paint_time:(0,O.dg)(t.commonViewMetrics.interactionToNextPaint?.time),interaction_to_next_paint_target_selector:t.commonViewMetrics.interactionToNextPaint?.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:(0,O.dg)(t.initialViewMetrics.largestContentfulPaint?.value),largest_contentful_paint_target_selector:t.initialViewMetrics.largestContentfulPaint?.targetSelector,load_event:(0,O.dg)(t.initialViewMetrics.navigationTimings?.loadEvent),loading_time:e$((0,O.dg)(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:t,interactionToNextPaint:e},{firstContentfulPaint:n,largestContentfulPaint:r}){return{cls:t&&{score:t.value,timestamp:(0,O.dg)(t.time),target_selector:t.targetSelector,previous_rect:t.previousRect,current_rect:t.currentRect},fcp:n&&{timestamp:(0,O.dg)(n)},inp:e&&{duration:(0,O.dg)(e.value),timestamp:(0,O.dg)(e.time),target_selector:e.targetSelector,sub_parts:e.subParts?{input_delay:(0,O.dg)(e.subParts.inputDelay),processing_duration:(0,O.dg)(e.subParts.processingDuration),presentation_delay:(0,O.dg)(e.subParts.presentationDelay)}:void 0},lcp:r&&{timestamp:(0,O.dg)(r.value),target_selector:r.targetSelector,resource_url:r.resourceUrl,sub_parts:r.subParts?{load_delay:(0,O.dg)(r.subParts.loadDelay),load_time:(0,O.dg)(r.subParts.loadTime),render_delay:(0,O.dg)(r.subParts.renderDelay)}:void 0}}}(t.commonViewMetrics,t.initialViewMetrics),resource:{count:t.eventCounts.resourceCount},time_spent:(0,O.dg)(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,O.dg)(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:e.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:function(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}()}};return(0,x.Qr)(t.customTimings)||(o.view.custom_timings=(0,x.Q8)(t.customTimings,O.dg)),{rawRumEvent:o,startClocks:t.startClocks,duration:t.duration,domainContext:{location:t.location,handlingStack:t.handlingStack}}}(e,n,i))),e.assembleEventDefaults.register(({startTime:t,eventType:e})=>{let n=T.findView(t);return n?{type:e,service:n.service,version:n.version,context:n.context,view:{id:n.id,name:n.name}}:ne.C_}),e.assembleTelemetry.register(({startTime:t})=>({view:{id:T.findView(t)?.id}})),function(t,e,n,r,i,o,s){let u,c;let l=new Set,f=p(d.INITIAL_LOAD,(0,O.cQ)(),s);function p(i,o,s){let u=function(t,e,n,r,i,o=(0,O.$I)(),s){let u;let c=(0,I.DO)(),l=new tc.y$,f={},p=0,g=(0,x.mv)((0,eD.C)(window.location)),m=(0,nU.W)(),h=!0,y=s?.name,_=s?.service||r.service,b=s?.version||r.version,v=s?.context,w=s?.handlingStack;v&&m.setContext(v);let E={id:c,name:y,startClocks:o,service:_,version:b,context:v,url:s?.url};t.notify(1,E),t.notify(2,E);let{throttled:S,cancel:C}=(0,td.P)(J,3e3,{leading:!1}),{setLoadEvent:k,setViewEnd:A,stop:T,stopINPTracking:R,getCommonViewMetrics:N,setLoadingTime:L}=function(t,e,n,r,i,o,s){let u={},c=!1,l=!1,{stop:f,setLoadEvent:p}=function(t,e,n,r,i,o,a){let s=i===d.INITIAL_LOAD,u=!0,c=[],l=nC(o);function f(){if(!u&&!s&&c.length>0){let t=Math.max(...c);t<l.timeStamp-o.relative&&a(t)}}let{stop:p}=eM(t,e,n,r,t=>{u&&(u=!1,t.hadActivity&&c.push((0,O._J)(o.timeStamp,t.end)),f())});return{stop:()=>{p(),l.stop()}
4,setLoadEvent:t=>{s&&(s=!1,c.push(t),f())}}}(t,e,n,r,o,s,t=>{c||(u.loadingTime=t,i())}),{stop:g}=function(t,e,n=function(t=nP){return new tc.y$(e=>{let n=(0,td.P)(function(){e.notify(function(){let t=ec(),{height:e}=ed();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}}())},t,{leading:!1,trailing:!0}),r=document.scrollingElement||document.documentElement,i=new ResizeObserver((0,U.zk)(n.throttled));r&&i.observe(r);let o=(0,tP.Oo)(window,tP.EZ.SCROLL,n.throttled,{passive:!0});return()=>{n.cancel(),i.disconnect(),o.stop()}})}()){let r=0,i=0,o=0,a=n.subscribe(({scrollDepth:n,scrollTop:a,scrollHeight:s})=>{let u=!1;if(n>r&&(r=n,u=!0),s>i){i=s;let e=(0,O._q)();o=(0,O._J)(t.relative,e),u=!0}u&&e({maxDepth:Math.min(r,i),maxDepthScrollTop:a,maxScrollHeight:i,maxScrollHeightTime:o})});return{stop:()=>a.unsubscribe()}}(s,t=>{u.scroll=t}),{stop:m}=function(t,e,n){let r,i,o,a,s;if(!(tj("layout-shift")&&"WeakRef"in window))return{stop:td.Z};let u=0;n({value:0});let c=(a=0,s=0,{update:t=>{let e;return void 0===i||t.startTime-o>=nx||t.startTime-i>=nR?(i=o=t.startTime,s=a=t.value,e=!0):(a+=t.value,o=t.startTime,(e=t.value>s)&&(s=t.value)),{cumulatedValue:a,isMaxValue:e}}}),l=tz({type:"layout-shift",buffered:!0}).subscribe(i=>{for(let o of i){if(o.hadRecentInput||o.startTime<e)continue;let{cumulatedValue:i,isMaxValue:a}=c.update(o);if(a){let t=function(t){let e;for(let n of t)if(n.node&&tR(n.node)){let t=nT(n);(!e||nT(e)<t)&&(e=n)}return e}(o.sources);r={target:t?.node?new WeakRef(t.node):void 0,time:(0,O._J)(e,o.startTime),previousRect:t?.previousRect,currentRect:t?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(i>u){u=i;let e=r?.target?.deref();n({value:Y(u,4),targetSelector:e&&tG(e,t.actionNameAttribute),time:r?.time,previousRect:r?.previousRect?nO(r.previousRect):void 0,currentRect:r?.currentRect?nO(r.currentRect):void 0,devicePixelRatio:r?.devicePixelRatio})}}});return{stop:()=>{l.unsubscribe()}}}(r,s.relative,t=>{u.cumulativeLayoutShift=t,i()}),{stop:h,getInteractionToNextPaint:y,setViewEnd:_}=function(t,e,n){let r;if(!(tj("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>void 0,setViewEnd:td.Z,stop:td.Z};let i=1/0,{getViewInteractionCount:o,stopViewInteractionCount:s}=function(t){"interactionCount"in performance||a||(a=new window.PerformanceObserver((0,U.zk)(t=>{t.getEntries().forEach(t=>{t.interactionId&&(nN=Math.min(nN,t.interactionId),nI=((nL=Math.max(nL,t.interactionId))-nN)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0});let e=t===d.INITIAL_LOAD?0:n$(),n={stopped:!1};return{getViewInteractionCount:()=>n.stopped?n.interactionCount:n$()-e,stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:n$()-e}}}}(n),u=function(t){let e=[];function n(){e.sort((t,e)=>e.duration-t.duration).splice(10)}return{process(t){let r=e.findIndex(e=>t.interactionId===e.interactionId),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction(){let n=Math.min(e.length-1,Math.floor(t()/50));return e[n]},isTracked:t=>e.some(e=>e.interactionId===t)}}(o),c=function(t){let e=new Map;function n(t,e){t.startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd)}return{process(t){if(void 0===t.interactionId||!t.processingStart||!t.processingEnd)return;let r=t.startTime+t.duration,i=e.get(t.interactionId);if(i){n(i,t);return}for(let[,i]of e.entries())if(8>=Math.abs(r-i.referenceRenderTime)){n(i,t),e.set(t.interactionId,i);return}e.set(t.interactionId,{startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,referenceRenderTime:r})},pruneUntracked(){for(let[n]of e)t.isTracked(n)||e.delete(n)},computeSubParts(t,n){if(!t.processingStart||!t.processingEnd||void 0===t.interactionId)return;let r=e.get(t.interactionId);if(!r)return;let i=Math.max(r.startTime+n,r.processingStart),o=Math.min(r.processingEnd,i);return{inputDelay:(0,O._J)(r.startTime,r.processingStart),processingDuration:(0,O._J)(r.processingStart,o),presentationDelay:(0,O._J)(o,i)}},stop(){e.clear()}}}(u),l=tz({type:"first-input",buffered:!0}).subscribe(p),f=tz({type:"event",durationThreshold:40,buffered:!0}).subscribe(p);function p(n){for(let t of n)t.interactionId&&t.startTime>=e&&t.startTime<=i&&(u.process(t),c.process(t));c.pruneUntracked();let o=u.estimateP98Interaction();o&&function(n){let i=(0,O._J)(e,n.startTime);if(n.duration!==r?.duration||i!==r.startTime){let e=function(t){let e=e7.get(t);return e7.delete(t),e}(n.startTime);!e&&n.target&&tR(n.target)&&(e=tG(n.target,t.actionNameAttribute)),r={duration:n.duration,startTime:i,targetSelector:e}}r.subParts=c.computeSubParts(n,nM(r.duration))}(o)}return{getInteractionToNextPaint:()=>r?{value:nM(r.duration),targetSelector:r.targetSelector,time:r.startTime,subParts:r.subParts}:o()?{value:0}
4:void 0,setViewEnd:t=>{i=t,s()},stop:()=>{f.unsubscribe(),l.unsubscribe(),c.stop()}}}(r,s.relative,o);return{stop:()=>{f(),m(),g()},stopINPTracking:h,setLoadEvent:p,setViewEnd:t=>{l=!0,_(t)},getCommonViewMetrics:()=>(u.interactionToNextPaint=y(),u),setLoadingTime:t=>{if(l)return;let e=(0,O._J)(s.timeStamp,t??(0,O.n$)());c||f(),c=!0,u.loadingTime=e,i()}}}(t,e,n,r,Z,i,o),D=i===d.INITIAL_LOAD?{...function(t,e,n,r){var i,o;let a={},{stop:s}=(i=t=>{n(t.loadEvent),a.navigationTimings=t,r()},function(t){let e;let{stop:n}=(0,nh.T)("complete",()=>{e=(0,tM.iK)(()=>t())});return{stop:()=>{n(),(0,tM.gr)(e)}}}(()=>{let t=(0,eD.C)(ns)();t.loadEventEnd<=0||i({domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:nu(t)})})),u=nC(e),{stop:c}=(o=t=>{a.firstContentfulPaint=t,r()},{stop:tz({type:"paint",buffered:!0}).subscribe(t=>{let e=t.find(t=>"first-contentful-paint"===t.name&&t.startTime<u.timeStamp&&t.startTime<nS);e&&o(e.startTime)}).unsubscribe}),{stop:l}=function(t,e,n,r){let i=1/0,{stop:o}=(0,tP.yw)(n,[tP.EZ.POINTER_DOWN,tP.EZ.KEY_DOWN],t=>{i=t.timeStamp},{capture:!0,once:!0}),a=0,s=tz({type:"largest-contentful-paint",buffered:!0}).subscribe(n=>{let o=(0,e_.dF)(n,t=>"largest-contentful-paint"===t.entryType&&t.startTime<i&&t.startTime<e.timeStamp&&t.startTime<nw&&t.size>a);if(o){let e;o.element&&(e=tG(o.element,t.actionNameAttribute));let n=""===o.url?void 0:o.url,i=o.startTime,s=nE(n,i,nu(ns()));r({value:i,targetSelector:e,resourceUrl:n,subParts:s}),a=o.size}});return{stop:()=>{o(),s.unsubscribe()}}}(t,u,window,t=>{a.largestContentfulPaint=t,r()});return{stop:function(){s(),c(),l(),u.stop()},initialViewMetrics:a}}
4(r,o,k,Z),setViewEnd:td.Z}:{stop:td.Z,initialViewMetrics:{},setViewEnd:td.Z};i===d.ROUTE_CHANGE&&(0,W.W_)(W.uh.SOFT_NAVIGATION)&&tj("soft-navigation")&&(D=function(t,e){let n;let r={},i=!1,o=0,a=[],s=tz({type:"interaction-contentful-paint",buffered:!0}).subscribe(t=>{n||a.push(...t),c(t)}),u=tz({type:"soft-navigation",buffered:!1}).subscribe(t=>{if(n)return;n=t[0],c(a),a.length=0;let e=n.getLargestInteractionContentfulPaint();e&&c([e])});function c(i){if(n)for(let a of i){if(a.interactionId!==n.interactionId||a.largestContentfulPaint.size<=o)continue;o=a.largestContentfulPaint.size;let i=a.largestContentfulPaint,s=i.url||void 0,u={value:i.startTime-n.startTime,targetSelector:i.element?tG(i.element,t.actionNameAttribute):void 0,resourceUrl:s,subParts:nE(s,i.startTime,n.startTime)};r.largestContentfulPaint=u,e()}}return{initialViewMetrics:r,setViewEnd:()=>{i=!0,u.unsubscribe(),n||s.unsubscribe()},stop:()=>{i||u.unsubscribe(),s.unsubscribe()}}}(r,Z));let{stop:M,initialViewMetrics:P,setViewEnd:z}=D;if(i===d.BF_CACHE){var j,V,F;j=Z,V=o.relative,F=t=>{P.firstContentfulPaint=t,P.largestContentfulPaint={value:t},j()},requestAnimationFrame(()=>{requestAnimationFrame(()=>{F((0,O._J)(V,(0,O._q)()))})})}let{stop:q,eventCounts:H}=function(t,e,n){let{stop:r,eventCounts:i}=ej({lifeCycle:t,isChildEvent:t=>t.view.id===e,onChange:n});return{stop:r,eventCounts:i}}(t,c,Z),G=(0,tM.Zi)(J,nj),K=t.subscribe(12,t=>{t===nz.k$.UNLOADING&&J()});function B(){t.notify(3,{id:c,name:y,context:m.getContext(),startClocks:o,sessionIsActive:h})}function Z(){B(),S()}function J(){C(),B(),p+=1;let e=void 0===u?(0,O.n$)():u.timeStamp;t.notify(4,{customTimings:f,documentVersion:p,id:c,name:y,service:_,version:b,context:m.getContext(),loadingType:i,location:g,handlingStack:w,startClocks:o,commonViewMetrics:N(),initialViewMetrics:P,duration:(0,O._J)(o.timeStamp,e),isActive:void 0===u,sessionIsActive:h,eventCounts:H})}return J(),m.changeObservable.subscribe(Z),{get name(){return y},service:_,version:b,contextManager:m,stopObservable:l,end(e={}){u||(u=e.endClocks??(0,O.$I)(),h=e.sessionIsActive??!0,t.notify(5,{endClocks:u}),t.notify(6,{endClocks:u}),(0,tM.cv)(G),A(u.relative),z(),T(),K.unsubscribe(),J(),(0,tM.iK)(()=>{this.stop()},nV))},stop(){M(),q(),R(),l.notify()},addTiming(t,e){if(u)return;let n=(0,O.MN)(e)?e:(0,O._J)(o.timeStamp,e);f[function(t){let e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return e!==t&&$.j.warn(`Invalid timing name: ${t}, sanitized to: ${e}`),e}(t)]=n,Z()},setLoadingTime:L,setViewName(t){y=t,J()}}}(t,e,n,r,i,o,s);return l.add(u),u.stopObservable.subscribe(()=>{l.delete(u)}),u}return t.subscribe(11,()=>{f=p(d.SESSION_RENEWAL,void 0,{name:f.name,service:f.service,version:f.version,context:f.contextManager.getContext()})}),t.subscribe(10,({endClocks:t})=>{f.end({sessionIsActive:!1,endClocks:t})}),o&&(c=i.subscribe(({oldLocation:t,newLocation:e})=>{(t.pathname!==e.pathname||!function(t){let e=t.substring(1);return""!==e&&!!document.getElementById(e)}(e.hash)&&nF(e.hash)!==nF(t.hash))&&(f.end(),f=p(d.ROUTE_CHANGE))}),u=function(t){let{stop:e}=(0,tP.Oo)(window,tP.EZ.PAGE_SHOW,e=>{e.persisted&&t(e)},{capture:!0});return e}(t=>{f.end();let e=(0,O.DY)(t.timeStamp);f=p(d.BF_CACHE,e,void 0)})),{addTiming:(t,e=(0,O.n$)())=>{f.addTiming(t,e)},setLoadingTime:t=>f.setLoadingTime(t),startView:(t,e)=>{f.end({endClocks:e}),f=p(d.ROUTE_CHANGE,e,t)},setViewContext:t=>{f.contextManager.setContext(t)},setViewContextProperty:(t,e)=>{f.contextManager.setContextProperty(t,e)},setViewName:t=>{f.setViewName(t)},getViewContext:()=>f.contextManager.getContext(),stop:()=>{c&&c.unsubscribe(),u&&u(),f.end(),l.forEach(t=>t.stop())}}}(t,w,S,n,E,!n.trackViewsManually,s));!function(t){t.register(({domainContext:t,rawRumEvent:e})=>{let n;let r="long_task"===e.type&&"long-animation-frame"===e.long_task.entry_type?e.long_task.scripts[0]?.source_url:("handlingStack"in t&&(n=t.handlingStack),"error"===e.type&&e.error.stack&&(n=e.error.stack),rs._({stack:n}).stack[0]?.url);if(!r)return ne.kb;let i=(0,n6.q)(r);return i?{type:e.type,service:i.service,version:i.version}:ne.kb})}(k),v.push(Q);let tt=function(t,e){let n=(0,eD.C)(nm)(),r=function(t){let e=new Set,n=t.subscribe(8,t=>{e.add(t),e.size>1e3&&e.delete(e.values().next().value)});return{getMatchingRequest(t){let n,r=1/0;for(let i of e){let e=t.startTime-i.startClocks.relative;0<=e&&e<r&&i.url===t.name&&(r=Math.abs(e),n=i)}return n&&e.delete(n),n},stop(){n.unsubscribe()}}}(t);t.subscribe(9,n=>{let r=function(t,e){let n=(0,O._J)(t.startClocks.timeStamp,t.endClocks.timeStamp),r={date:t.startClocks.timeStamp,type:c.RESOURCE,resource:{id:(0,I.DO)(),type:tv._.WEBSOCKET,url:t.url,duration:(0,O.dg)(n),websocket:{connection_id:t.connectionId,handshake_succeeded:t.handshakeSucceeded,start_time:t.startClocks.timeStamp,end_time:t.endClocks.timeStamp,start_view_id:t.startViewId,end_view_id:t.endViewId,tracking_end_reason:t.trackingEndReason,close_code:t.closeCode,close_reason:t.closeReason,was_clean:t.wasClean,messages_in:t.messagesIn,messages_out:t.messagesOut,time_to_first_message_in:(0,O.dg)(t.firstMessageInOffset),time_to_first_message_out:(0,O.dg)(t.firstMessageOutOffset),last_message_in_at:t.lastMessageInAt,longest_inbound_silence:(0,O.dg)(t.longestInboundSilence),inbound_idle_duration_before_close:(0,O.dg)(t.inboundIdleDurationBeforeClose),buffered_amount_max:t.bufferedAmountMax,protocol:t.protocol,setup_duration:(0,O.dg)(t.setupDuration)}},_dd:{discarded:!e.trackResources}};return{startClocks:t.startClocks,duration:n,rawRumEvent:r,domainContext:{isWebSocket:!0,isManual:!1,webSocket:t.webSocket}}}(n,e);r&&t.notify(13,r)});let i=tz({type:"resource",buffered:!0}).subscribe(n=>{for(let i of n)"xmlhttprequest"===i.initiatorType||"fetch"===i.initiatorType?(0,tM.iK)(()=>{let n=ny(i,r.getMatchingRequest(i),e);n&&t.notify(13,n)},50):a(()=>ny(i,void 0,e))}),{stop:o}=(0,nh.T)("interactive",()=>{a(()=>ny(ns(),void 0,e))});function a(e){n.push(()=>{let n=e();n&&t.notify(13,n)})}let s=eq(t);return{startResource:function(t,e={},n=(0,O.$I)()){let r=e.resourceKey??t;s.start(r,n,{url:t,...e})},stopResource:function(e,n={},r=(0,O.$I)()){let i=n.resourceKey??e,o=s.stop(i,r,{context:n.context,type:n.type});if(!o)return;let a=(0,O._J)(o.startClocks.relative,r.relative),u={date:o.startClocks.timeStamp,type:c.RESOURCE,resource:{id:o.id,type:o.type||tv._.OTHER,url:tT(o.url),duration:(0,O.dg)(a),method:o.method,status_code:n.statusCode,size:n.size},_dd:{},context:o.context};t.notify(13,{rawRumEvent:u,startClocks:o.startClocks,duration:a,domainContext:{isManual:!0}})},stop:()=>{o(),n.stop(),i.unsubscribe(),s.stopAll()}}}(t,n);v.push(tt.stop);let{stop:te}=function(t,e){let n=tz({type:tj("long-animation-frame")?"long-animation-frame":"longtask",buffered:!0}).subscribe(n=>{for(let r of n){if(!e.trackLongTasks)break;let n=(0,O.DY)(r.startTime),i=function(t,e){let n=(0,I.DO)(),r=(0,O.dg)(t.duration),i={date:e.timeStamp,type:c.LONG_TASK,_dd:{discarded:!1}};if("longtask"===t.entryType)return{...i,long_task:{id:n,entry_type:l.LONG_TASK,duration:r}};let o=t.scripts.map(t=>t.sourceURL).filter(t=>!!t),a=(0,n6.J)(o);return{...i,_dd:{discarded:!1,debug_ids:a},long_task:{id:n,entry_type:l.LONG_ANIMATION_FRAME,duration:r,blocking_duration:(0,O.dg)(t.blockingDuration),first_ui_event_timestamp:(0,O.dg)(t.firstUIEventTimestamp),render_start:(0,O.dg)(t.render
4Start),style_and_layout_start:(0,O.dg)(t.styleAndLayoutStart),start_time:(0,O.dg)(t.startTime),scripts:t.scripts.map(t=>({duration:(0,O.dg)(t.duration),pause_duration:(0,O.dg)(t.pauseDuration),forced_style_and_layout_duration:(0,O.dg)(t.forcedStyleAndLayoutDuration),start_time:(0,O.dg)(t.startTime),execution_start:(0,O.dg)(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}))}}}(r,n);t.notify(13,{rawRumEvent:i,startClocks:n,duration:r.duration,domainContext:{performanceEntry:r}})}});return{stop:()=>n.unsubscribe()}}(t,n);v.push(te);let{addError:tn}=function(t,e){let n=new tc.y$;return e.subscribe(({data:t,type:e})=>{e===eA.r.RUNTIME_ERROR?n.notify(t):e===eA.r.CONSOLE&&t.api===ni.vA.error&&n.notify(t.error)}),(0,nr.v)([nr._.cspViolation,nr._.intervention]).subscribe(t=>n.notify(t)),n.subscribe(e=>t.notify(15,{error:e})),t.subscribe(15,({error:e})=>{t.notify(13,function(t){let e={date:t.startClocks.timeStamp,error:{id:(0,I.DO)(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,component_stack:t.componentStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},_dd:{debug_ids:t.debugIds},type:c.ERROR,context:t.context},n={error:t.originalError,handlingStack:t.handlingStack};return{rawRumEvent:e,startClocks:t.startClocks,domainContext:n}}(e))}),{addError:({error:e,handlingStack:n,componentStack:r,startClocks:i,context:o})=>{let a=(0,no.AP)({originalError:e,handlingStack:n,componentStack:r,startClocks:i,nonErrorPrefix:na.j9.PROVIDED,source:na.zH.CUSTOM,handling:na.Xw.HANDLED});a.context=(0,eV.$e)(a.context,o),t.notify(15,{error:a})}}}(t,u);!function(t,e,n,r,i,o){let a={clearTracingIfNeeded:ev,traceFetch:t=>ew(e,t,n,r,i,e=>{if(t.input instanceof Request&&!t.init?.headers)t.input=new Request(t.input),Object.keys(e).forEach(n=>{t.input.headers.append(n,e[n])});else{t.init=(0,x.mv)(t.init);let n=[];t.init.headers instanceof Headers?t.init.headers.forEach((t,e)=>{n.push([e,t])}):Array.isArray(t.init.headers)?t.init.headers.forEach(t=>{n.push(t)}):t.init.headers&&Object.keys(t.init.headers).forEach(e=>{n.push([e,t.init.headers[e]])}),t.init.headers=n.concat((0,e_.qP)(e))}}),traceXhr:(t,o)=>ew(e,t,n,r,i,t=>{try{Object.keys(t).forEach(e=>{o.setRequestHeader(e,t[e])})}catch{}})};(function(t,e,n){let r=[];r.push((0,ek.S)().subscribe(t=>{"start"===t.state&&tk(t.url)&&(e.traceXhr(t,t.xhr),eR(t))})),r.push(n.subscribe(({data:n,type:r})=>{if(r===eA.r.XHR&&tk(n.url))switch(n.state){case"start":eR(n),t.notify(7,{requestIndex:n.requestIndex,url:n.url});break;case"complete":e.clearTracingIfNeeded(n),t.notify(8,{...n,type:tv.x.XHR,isAbortedOnStart:!1})}}))})(t,a,o),function(t,e,n,r){let i=[];i.push((0,eT.y)({responseBodyAction:t=>eC(t.url,e)?.trackResponseErrors?eT.a.COLLECT:eT.a.IGNORE}).subscribe(t=>{"start"===t.state&&tk(t.url)&&(n.traceFetch(t),eR(t))})),i.push(r.subscribe(({data:e,type:r})=>{if(r===eA.r.FETCH&&tk(e.url))switch(e.state){case"start":eR(e),t.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":n.clearTracingIfNeeded(e),t.notify(8,{...e,duration:(0,O._J)(e.startClocks.timeStamp,(0,O.n$)()),type:tv.x.FETCH,requestBody:e.init?.body})}}))}(t,e,a,o)}(t,n,r,P,z,u);let tr=function(t,e){let n=eq(t);function r(n){e.wasInPageStateDuringPeriod("frozen",n.startClocks.relative,n.duration)||t.notify(13,n5(n))}return{addOperationStepVital:function(e,n,r,i){let{operationKey:o,context:a,description:s,handlingStack:u}=r||{},c={name:e,type:g.OPERATION_STEP,operationKey:o,failureReason:i,stepType:n,startClocks:(0,O.$I)(),context:(0,eN.N)(a),description:s,handlingStack:u};t.notify(13,n5(c))},addDurationVital:r,startDurationVital:function(e,r={},i=(0,O.$I)()){let{id:o}=n.start(r.vitalKey??e,i,{name:e,...r});t.notify(17,{id:o,name:e,startClocks:i,...r})},stopDurationVital:function(t,e={},i=(0,O.$I)()){let o=n.stop(e.vitalKey??t,i,e);o&&r({type:g.DURATION,...o})}}}(t,A);if(n.trackResources&&(n.betaTrackWebSockets||(0,W.W_)(W.uh.TRACK_WEBSOCKETS))){let e=function(t,e,n){let r=function(t,e,n,r){let i=new Map;function o(e,i,o){let a=function(t,e,n,r){let i=e.at,o="session_end"===n?r.findView(i.relative,{returnInactive:!0})?.id:r.findView(i.relative)?.id,a=void 0!==t.lastMessageInAt?(0,O._J)(t.lastMessageInAt,i.timeStamp):void 0,{openClocks:s,...u}=t;return{...u,endClocks:i,endViewId:o,inboundIdleDurationBeforeClose:a,trackingEndReason:n,handshakeSucceeded:void 0!==s,setupDuration:t.setupDuration??(0,O._J)(t.startClocks.timeStamp,i.timeStamp),closeCode:e.code,closeReason:e.reason,wasClean:e.wasClean}}(e,i,o,n);t.notify(9,a),r({id:(0,I.DO)(),name:"websocket-closed",type:g.DURATION,startClocks:a.endClocks,duration:0,
4context:(0,eN.N)({url:a.url,connection_id:a.connectionId})})}let a=e.subscribe(t=>{switch(t.state){case"connecting":{let e=(0,I.DO)(),o=n.findView(t.startClocks.relative)?.id,a=function(t){let e=(0,tb.Q2)(t);return e.search="",e.href}(t.url),s={webSocket:t.instance,connectionId:e,url:a,startClocks:t.startClocks,startViewId:o,messagesIn:{count:0,size:0},messagesOut:{count:0,size:0},longestInboundSilence:0,bufferedAmountMax:0};i.set(t.instance,s),r({id:(0,I.DO)(),name:"websocket-connecting",type:g.DURATION,startClocks:t.startClocks,duration:0,context:(0,eN.N)({url:a,connection_id:e})});return}case"open":{let e=i.get(t.instance);if(!e)return;e.openClocks=t.openClocks,e.protocol=t.protocol,e.setupDuration=(0,O._J)(e.startClocks.timeStamp,t.openClocks.timeStamp);return}case"message-in":{let e=i.get(t.instance);if(!e)return;e.messagesIn.count+=1,e.messagesIn.size+=t.size,eL(e,t.at,"in");return}case"message-out":{let e=i.get(t.instance);if(!e)return;t.bufferedAmountPreSend>e.bufferedAmountMax&&(e.bufferedAmountMax=t.bufferedAmountPreSend),e.messagesOut.count+=1,e.messagesOut.size+=t.size,eL(e,t.at,"out");return}case"closed":{let e=i.get(t.instance);if(!e)return;i.delete(t.instance),o(e,t,"close_event");return}}});return{flushOpenConnections:(t,e=(0,O.$I)())=>{i.forEach(n=>{o(n,{at:e},t)}),i.clear()},stop:()=>{a.unsubscribe(),i.clear()}}}(t,(o||(o=new tc.y$(t=>{if("function"!=typeof ex.globalObject.WebSocket)return;let{stop:e}=(0,em.t1)(ex.globalObject,"WebSocket",({parameters:e,onPostCall:n})=>{let r=Array.isArray(e[1])?[].concat(e[1]):e[1],i=(0,O.$I)();n(e=>{t.notify({state:"connecting",instance:e,url:e.url,protocols:r,startClocks:i}),function(t,e){let{stop:n}=(0,tP.Oo)(t,"open",()=>{e.notify({state:"open",instance:t,openClocks:(0,O.$I)(),protocol:t.protocol||""}),n()}),{stop:r}=(0,tP.Oo)(t,"message",n=>{e.notify({state:"message-in",instance:t,size:eI(n.data),at:(0,O.$I)()})}),{stop:i}=(0,tP.Oo)(t,"close",n=>{e.notify({state:"closed",instance:t,code:n.code,reason:n.reason,wasClean:n.wasClean,at:(0,O.$I)()}),r(),i()})}(e,t)})}),{stop:n}=(0,em.Su)(ex.globalObject.WebSocket.prototype,"send",({target:e,parameters:[n],onPostCall:r})=>{let i=eI(n),o=e.bufferedAmount;r(()=>{t.notify({state:"message-out",instance:e,size:i,bufferedAmountPreSend:o,at:(0,O.$I)()})})});return()=>{e(),n()}})),o),e,n),i=t.subscribe(10,({endClocks:t})=>{r.flushOpenConnections("session_end",t)});return{stop:()=>{i.unsubscribe(),r.flushOpenConnections("session_end"),r.stop()}}}(t,T,tr.addDurationVital);v.push(e.stop)}let ti=(y=n.applicationId,_=j.actionContexts,{get:t=>{let e=T.findView(t),n=N.findUrl(t),i=r.findTrackedSession(t);if(i&&e&&n){let r=_.findActionId(t);return{application_id:y,session_id:i.id,user_action:r?{id:r}:void 0,view:{id:e.id,name:e.name,referrer:n.referrer,url:n.url}}}}});return{addAction:j.addAction,startAction:j.startAction,stopAction:j.stopAction,startResource:tt.startResource,stopResource:tt.stopResource,addEvent:(e,n,r,i)=>{ra.includes(n.type)&&t.notify(13,{startClocks:(0,O.DY)(e),rawRumEvent:n,domainContext:r,duration:i})},addError:tn,addTiming:q,setLoadingTime:H,addFeatureFlagEvaluation:L.addFeatureFlagEvaluation,startView:G,setViewContext:B,setViewContextProperty:J,getViewContext:X,setViewName:K,viewHistory:T,sessionManager:r,stopSession:()=>r.expire(),getInternalContext:ti.get,startDurationVital:tr.startDurationVital,stopDurationVital:tr.stopDurationVital,addDurationVital:tr.addDurationVital,addOperationStepVital:tr.addOperationStepVital,globalContext:D,userContext:P,accountContext:z,stop:()=>v.forEach(t=>t())}}(w,_,t,e,n,i,h,b,E);return v.push(C),h.unbuffer(),v.push(()=>r.stop()),{...k,lifeCycle:w,sessionManager:e,stopSession:()=>e.expire(),telemetry:y,stop:()=>{v.forEach(t=>t())},hooks:_}}function rp(t){return!!t&&"function"==typeof t.then}var rg=n(50440),rm=n(89083),rh=n(19738),ry=n(24937),r_=n(59881),rb=n(45780),rv=n(92389),rw=n(52430),rE=n(98064),rS=n(36105);function rC(t,e,n={}){let r=(0,rv.H)(),i=(0,eA.Q)(),o=function({ignoreInitIfSyntheticsWillInjectRum:t=!0,startDeflateWorker:e,sdkName:n},r,i){let o,a,s,u,c,l;let d=new tc.fk(500,t=>{(0,D.eJ)("preStartRum buffer data lost",{count:t})}),f=(0,rc.N)();(0,rg.h)(f,rm.gy.globalContext,d);let p=(0,rl.f)();(0,rg.h)(p,rm.gy.userContext,d);let g=(0,rd.d)();(0,rg.h)(g,rm.gy.accountContext,d);let m={assembleEventDefaults:(0,ne.Bi)(),assembleTelemetry:(0,ne.Bi)(),assembleEvent:(0,ne.Bi)()},h=r.observable.subscribe(b),y={},_=!1;function b(){let t;if(_||!s||!u||!c||!l)return;if(h.unsubscribe(),u.trackViewsManually){if(!o)return;t=o.options}let e=u.trackViewsManually?o?.callback:void 0,n=i(u,c,a,t,l,m);_=!0,d.subscribe(t=>{t!==e&&t(n)}),d.unbuffer()}function v(t,i,o){var d;let f=(0,Z.xT)();if(f&&(t={...d=t,service:d.service||d.applicationId,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:d.defaultPrivacyLevel??Z.Ad()?.getPrivacyLevel()}),s=t,u){(0,rh.W)("DD_RUM",t);return}let p=function(t,e){let n=(0,tt.f)(t,to,$.j);if(!n)return;
4let r=n.allowedTracingUrls.map(ts).filter(Boolean);if(r.length>0&&!n.service){$.j.error("Service needs to be configured when tracing is enabled");return}let i=function(t){let e=t&&ti[t.quality];return(0,W.W_)(W.uh.SESSION_REPLAY_RECORD_CANVAS)&&t?.enable&&e?{enable:!0,...e}:void 0}(n.sessionReplayCanvasRecording);return{...n,service:n.service||n.applicationId,sessionReplayCanvasRecording:i,betaEnableViewUpdates:ta(n.betaEnableViewUpdates,n.proxy,e),allowedTracingUrls:r,beforeSend:n.beforeSend?(0,J.Z)(n.beforeSend,"beforeSend threw an error:"):void 0,rulePsr:X(t.traceSampleRate)?t.traceSampleRate/100:void 0,trackResourceHeaders:function(t){let e=t.trackResourceHeaders;if(void 0===e||!1===e)return[];if(!0===e)return tn.map(t=>({name:t}));if(!Array.isArray(e))return $.j.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(0===e.length)return $.j.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];let n=[];return e.forEach((t,e)=>{if(!(0,R.sK)(t)){$.j.warn(`trackResourceHeaders[${e}] should be a MatchHeader object`);return}if(void 0!==t.name&&!(0,R.o)(t.name)){$.j.warn(`trackResourceHeaders[${e}].name should be a MatchOption`);return}if(void 0!==t.url&&!(0,R.o)(t.url)){$.j.warn(`trackResourceHeaders[${e}].url should be a MatchOption`);return}if(void 0!==t.extractor&&!(t.extractor instanceof RegExp)){$.j.warn(`trackResourceHeaders[${e}].extractor should be a RegExp`);return}if(void 0!==t.location&&("string"!=typeof t.location||!tu.includes(t.location))){$.j.warn(`trackResourceHeaders[${e}].location should be 'request', 'response', or 'any'`);return}let{name:r,...i}=t;n.push({...i,...void 0!==r?{name:"string"==typeof r?r.toLowerCase():r}:{}})}),n}(t),allowedGraphQlUrls:function(t){if(!t.allowedGraphQlUrls)return[];if(!Array.isArray(t.allowedGraphQlUrls))return $.j.warn("allowedGraphQlUrls should be an array"),[];let e=[];
4return t.allowedGraphQlUrls.forEach(t=>{(0,R.o)(t)?e.push({match:t,trackPayload:!1,trackResponseErrors:!1}):(0,R.sK)(t)&&(0,R.o)(t.match)&&e.push({match:t.match,trackPayload:!!t.trackPayload,trackResponseErrors:!!t.trackResponseErrors})}),e}(t),remoteConfigurationId:K(t)}}(t,n);if(p&&(0,ry.l3)(p,i??"")){if(p.compressIntakeRequests&&!f&&e&&!(a=e(p,"Datadog RUM",td.Z)))return;u=p,r.tryToInit(p.trackingConsent),r.onGrantedOnce(()=>{let{assembleTelemetry:e}=m;if(function(t,e){t.register(()=>e.isGranted()?ne.kb:ne.C_)}(e,r),l=(0,eD.C)(D.VL)(D.y0.RUM,p,e,n),ex.j){$.j.warn("The RUM SDK is not supported in a web or service worker environment.");return}let i=r=>{c=r,(0,r_.W)(e,c,{application:{id:p.applicationId}}),(0,D.Uo)(function(t,e,n){var r,i,o;let a=(0,B.JZ)(t);return{session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,trace_context_injection:t.traceContextInjection,propagate_trace_baggage:t.propagateTraceBaggage,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:(0,Q.Of)(t.allowedTracingUrls),use_allowed_graph_ql_urls:(0,Q.Of)(t.allowedGraphQlUrls),use_track_graph_ql_payload:(r=t.allowedGraphQlUrls,(0,Q.Of)(r)&&r.some(t=>(0,R.sK)(t)&&t.trackPayload)),use_track_graph_ql_response_errors:(i=t.allowedGraphQlUrls,(0,Q.Of)(i)&&i.some(t=>(0,R.sK)(t)&&t.trackResponseErrors)),selected_tracing_propagators:function(t){let e=new Set;return(0,Q.Of)(t.allowedTracingUrls)&&t.allowedTracingUrls.forEach(t=>{ts(t)?.propagatorTypes.forEach(t=>e.add(t))}),Array.from(e)}(t),default_privacy_level:t.defaultPrivacyLevel,enable_privacy_for_action_name:t.enablePrivacyForActionName,use_excluded_activity_urls:(0,Q.Of)(t.excludedActivityUrls),use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks,plugins:t.plugins?.map(t=>({name:t.name,...t.getConfigurationTelemetry?.()})),track_feature_flags_for_events:t.trackFeatureFlagsForEvents,remote_configuration_id:K(t),remote_configuration:n&&{config_id:K(t),last_modified:n.lastModified,last_synced:n.lastSynced,first_applied:n.firstApplied,sync_id:n.syncId},profiling_sample_rate:t.profilingSampleRate,use_remote_configuration_proxy:!!t.remoteConfigurationProxy,track_resource_headers:!0===(o=t.trackResourceHeaders)?"default_headers":Array.isArray(o)?"custom":void 0,beta_enable_view_updates:ta(t.betaEnableViewUpdates,t.proxy,e),beta_track_web_sockets:t.betaTrackWebSockets,...a}}(t,n,o)),b()};(0,Z.xT)()?i((0,rb.ud)()):(0,eD.C)(rb.HX)(p,r).then(t=>{t&&i(t)}).catch(U.$y)})}}return{init(e,n,r){if(!e){$.j.error("Missing configuration");return}if((0,W.fG)(e.enableExperimentalFeatures),(0,tP.$k)(e.allowUntrustedEvents),s=e,t&&(0,n9.Y9)())return;let i=function(t,e){if(!t)return!0;let n=t.map(t=>t.onInit?.(e));return n.some(rp)?Promise.all(n).then(t=>!t.includes(!1)):!n.includes(!1)}(e.plugins,{initConfiguration:e,publicApi:n,registerAssembleEventHook:m.assembleEvent.register});function o(){if(K(e)){let t={user:p,context:f};if(e.remoteConfigurationId||e.remoteConfiguration?.sync)V(e,t).then(t=>{t&&v(t,r)}).catch(U.$y);else{let n=function(t,e){let n=function({remoteConfigurationId:t}){let e=`dd_rc_${t}`;return{read(){let t;try{t=localStorage.getItem(e)}catch{return{status:"error"}}if(null===t)return{status:"miss"};let n=(0,x.Cy)(t);return void 0===n||!function(t){if("object"!=typeof t||null===t)return!1;let e="version"in t&&3===t.version,n="config"in t&&"object"==typeof t.config&&null!==t.config,r="metadata"in t&&(0,R.sK)(t.metadata)&&"string"==typeof t.metadata.syncId&&"number"==typeof t.metadata.lastSynced;return e&&n&&r}(n)?(this.remove(),{status:"error"}):{status:"hit",config:n.config,metadata:n.metadata}},remove(){try{localStorage.removeItem(e)}catch{}},write(t,n){let r=this.read();("hit"!==r.status||JSON.stringify(r.config)!==JSON.stringify(t))&&L(e,{version:3,config:t,metadata:{lastModified:n,lastSynced:(0,O.n$)(),syncId:(0,I.DO)()}})},stampFirstApplied(t){if(void 0!==t.metadata.firstApplied)return t.metadata;let n={...t.metadata,firstApplied:(0,O.n$)()};return L(e,{version:3,config:t.config,metadata:n}),n}}}({remoteConfigurationId:K(t)}),r=q(),i=n.read();return(r.increment("cache",N[i.status]),!function(t,e,n){G(t).then(t=>{t.ok?(n.increment("fetch","success"),e.write(t.value,t.lastModified)):(n.increment("fetch","failure"),$.j.error(t.error))}).catch(U.$y).finally(()=>{(0,D.qZ)(D.T.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:n.get()})})}
4(t,n,r),"hit"===i.status)?{metadata:n.stampFirstApplied(i),initConfiguration:F(t,i.config,e,r)}:t.remoteConfiguration?.required?void 0:{initConfiguration:t}}(e,t);n&&v(n.initConfiguration,r,n.metadata)}}else v(e,r)}"boolean"==typeof i?i&&o():i.then(t=>{t&&o()}).catch(U.$y)},get initConfiguration(){return s},getInternalContext:td.Z,stopSession:td.Z,addTiming(t,e=(0,O.n$)()){d.notify(n=>n.addTiming(t,e))},setLoadingTime:t=>{d.notify(e=>e.setLoadingTime(t))},startView(t,e=(0,O.$I)()){let n=n=>{n.startView(t,e)};d.notify(n),o||(o={options:t,callback:n},b())},setViewName(t){d.notify(e=>e.setViewName(t))},setViewContext(t){d.notify(e=>e.setViewContext(t))},setViewContextProperty(t,e){d.notify(n=>n.setViewContextProperty(t,e))},getViewContext:()=>y,globalContext:f,userContext:p,accountContext:g,addAction(t){d.notify(e=>e.addAction(t))},startAction(t,e){let n=(0,O.$I)();d.notify(r=>r.startAction(t,e,n))},stopAction(t,e){let n=(0,O.$I)();d.notify(r=>r.stopAction(t,e,n))},startResource(t,e){let n=(0,O.$I)();d.notify(r=>r.startResource(t,e,n))},stopResource(t,e){let n=(0,O.$I)();d.notify(r=>r.stopResource(t,e,n))},addError(t){d.notify(e=>e.addError(t))},addFeatureFlagEvaluation(t,e){d.notify(n=>n.addFeatureFlagEvaluation(t,e))},startDurationVital(t,e){let n=(0,O.$I)();d.notify(r=>r.startDurationVital(t,e,n))},stopDurationVital(t,e){let n=(0,O.$I)();d.notify(r=>r.stopDurationVital(t,e,n))},addDurationVital(t){d.notify(e=>e.addDurationVital(t))},addOperationStepVital:(t,e,n,r)=>{d.notify(i=>i.addOperationStepVital((0,eN.N)(t),e,(0,eN.N)(n),(0,eN.N)(r)))}}}(n,r,(r,a,s,u,c,l)=>{let d=s&&n.createDeflateEncoder?t=>n.createDeflateEncoder(s,t):rw.G,f=(0,eD.C)(rf)(r,a,t,e,u,d,i.observable,c,l,n.sdkName);return t.onRumStart(f.lifeCycle,r,a,f.viewHistory,s,f.telemetry),e.onRumStart(f.lifeCycle,f.hooks,r,a,f.viewHistory,d),o={...o,init:t=>{(0,rh.W)("DD_RUM",t)},getInternalContext:f.getInternalContext,stopSession:f.stopSession,getViewContext:f.getViewContext,globalContext:f.globalContext,userContext:f.userContext,accountContext:f.accountContext},!function(t,e){for(let n of t??[])n.onRumStart?.(e)}(r.plugins,{addEvent:f.addEvent,addError:f.addError}),f}),a=()=>o,s=(t,e)=>{let n=(0,rE.Xp)("vital");(0,U.L6)(()=>{(0,D.eG)({feature:"add-operation-step-vital",action_type:"start"}),o.addOperationStepVital(t,"start",{...e,handlingStack:n})})},u=(0,U.zk)((t,e)=>{(0,D.eG)({feature:"add-operation-step-vital",action_type:"succeed"}),o.addOperationStepVital(t,"end",e)}),c=(0,U.zk)((t,e,n)=>{(0,D.eG)({feature:"add-operation-step-vital",action_type:"fail"}),o.addOperationStepVital(t,"end",n,e)}),l=(0,rS.r)({init:t=>{let e=Error().stack;(0,U.L6)(()=>o.init(t,l,e))},setTrackingConsent:(0,U.zk)(t=>{r.update(t),(0,D.eG)({feature:"set-tracking-consent",tracking_consent:t})}),setViewName:(0,U.zk)(t=>{o.setViewName(rk(t,"view name")),(0,D.eG)({feature:"set-view-name"})}),setViewContext:(0,U.zk)(t=>{o.setViewContext(t),(0,D.eG)({feature:"set-view-context"})}),setViewContextProperty:(0,U.zk)((t,e)=>{o.setViewContextProperty(t,e),(0,D.eG)({feature:"set-view-context-property"})}),getViewContext:(0,U.zk)(()=>((0,D.eG)({feature:"set-view-context-property"}),o.getViewContext())),getInternalContext:(0,U.zk)(t=>o.getInternalContext(t)),getInitConfiguration:(0,U.zk)(()=>(0,eV.I8)(o.initConfiguration)),addAction:(t,e)=>{let n=(0,rE.Xp)("action");(0,U.L6)(()=>{o.addAction({name:(0,eN.N)(t),context:(0,eN.N)(e),startClocks:(0,O.$I)(),type:f.CUSTOM,handlingStack:n}),(0,D.eG)({feature:"add-action"})})},startAction:(0,U.zk)((t,e)=>{(0,D.eG)({feature:"start-action"}),o.startAction((0,eN.N)(t),{type:(0,eN.N)(e?.type),context:(0,eN.N)(e?.context),actionKey:e?.actionKey})}),stopAction:(0,U.zk)((t,e)=>{(0,D.eG)({feature:"stop-action"}),o.stopAction((0,eN.N)(t),{type:(0,eN.N)(e?.type),context:(0,eN.N)(e?.context),actionKey:e?.actionKey})}),startResource:(0,U.zk)((t,e)=>{(0,D.eG)({feature:"start-resource"}),o.startResource((0,eN.N)(t),{type:(0,eN.N)(e?.type),method:(0,eN.N)(e?.method),context:(0,eN.N)(e?.context),resourceKey:e?.resourceKey})}),stopResource:(0,U.zk)((t,e)=>{(0,D.eG)({feature:"stop-resource"}),o.stopResource((0,eN.N)(t),{type:(0,eN.N)(e?.type),statusCode:e?.statusCode,size:e?.size,context:(0,eN.N)(e?.context),resourceKey:e?.resourceKey})}),addError:(t,e)=>{let n=(0,rE.Xp)("error");(0,U.L6)(()=>{o.addError({error:t,handlingStack:n,context:(0,eN.N)(e),startClocks:(0,O.$I)()}),(0,D.eG)({feature:"add-error"})})},addTiming:(0,U.zk)((t,e)=>{o.addTiming((0,eN.N)(t),e)}
4),setViewLoadingTime:(0,U.zk)(()=>{let t=(0,O.n$)();o.setLoadingTime(t),(0,D.eG)({feature:"addViewLoadingTime"})}),setGlobalContext:(0,rg.z)(a,rm.gy.globalContext,rm.OL.setContext,"set-global-context"),getGlobalContext:(0,rg.z)(a,rm.gy.globalContext,rm.OL.getContext,"get-global-context"),setGlobalContextProperty:(0,rg.z)(a,rm.gy.globalContext,rm.OL.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:(0,rg.z)(a,rm.gy.globalContext,rm.OL.removeContextProperty,"remove-global-context-property"),clearGlobalContext:(0,rg.z)(a,rm.gy.globalContext,rm.OL.clearContext,"clear-global-context"),setUser:(0,rg.z)(a,rm.gy.userContext,rm.OL.setContext,"set-user"),getUser:(0,rg.z)(a,rm.gy.userContext,rm.OL.getContext,"get-user"),setUserProperty:(0,rg.z)(a,rm.gy.userContext,rm.OL.setContextProperty,"set-user-property"),removeUserProperty:(0,rg.z)(a,rm.gy.userContext,rm.OL.removeContextProperty,"remove-user-property"),clearUser:(0,rg.z)(a,rm.gy.userContext,rm.OL.clearContext,"clear-user"),setAccount:(0,rg.z)(a,rm.gy.accountContext,rm.OL.setContext,"set-account"),getAccount:(0,rg.z)(a,rm.gy.accountContext,rm.OL.getContext,"get-account"),setAccountProperty:(0,rg.z)(a,rm.gy.accountContext,rm.OL.setContextProperty,"set-account-property"),removeAccountProperty:(0,rg.z)(a,rm.gy.accountContext,rm.OL.removeContextProperty,"remove-account-property"),clearAccount:(0,rg.z)(a,rm.gy.accountContext,rm.OL.clearContext,"clear-account"),startView:t=>{let e=(0,rE.Xp)("view");(0,U.L6)(()=>{let n="object"==typeof t?t:{name:t};o.startView({...n,name:rk(n.name,"view name"),service:rk(n.service,"view service"),version:rk(n.version,"view version"),handlingStack:e}),(0,D.eG)({feature:"start-view"})})},stopSession:(0,U.zk)(()=>{o.stopSession(),(0,D.eG)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,U.zk)((t,e)=>{o.addFeatureFlagEvaluation((0,eN.N)(t),(0,eN.N)(e)),(0,D.eG)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,U.zk)(()=>t.getSessionReplayLink()),startSessionReplayRecording:(0,U.zk)(e=>{t.start(e),(0,D.eG)({feature:"start-session-replay-recording",force:e?.force})}),stopSessionReplayRecording:(0,U.zk)(()=>t.stop()),addDurationVital:(t,e)=>{let n=(0,rE.Xp)("vital");(0,U.L6)(()=>{(0,D.eG)({feature:"add-duration-vital"}),o.addDurationVital({id:(0,I.DO)(),name:(0,eN.N)(t),type:g.DURATION,startClocks:(0,O.lO)(e.startTime),duration:e.duration,context:(0,eN.N)(e?.context),description:(0,eN.N)(e?.description),handlingStack:n})})},startDurationVital:(t,e)=>{let n=(0,rE.Xp)("vital");(0,U.L6)(()=>{(0,D.eG)({feature:"start-duration-vital"}),o.startDurationVital((0,eN.N)(t),{vitalKey:e?.vitalKey,context:(0,eN.N)(e?.context),description:(0,eN.N)(e?.description),handlingStack:n})})},stopDurationVital:(0,U.zk)((t,e)=>{(0,D.eG)({feature:"stop-duration-vital"}),o.stopDurationVital((0,eN.N)(t),{vitalKey:e?.vitalKey,context:(0,eN.N)(e?.context),description:(0,eN.N)(e?.description)})}),startOperation:s,succeedOperation:u,failOperation:c,startFeatureOperation:s,succeedFeatureOperation:u,failFeatureOperation:c,DEFAULT_TRACKED_RESOURCE_HEADERS:tn});return l}function rk(t,e){if(void 0!==t){if("string"!=typeof t){$.j.warn(`Invalid ${e} provided (expected a string, got ${typeof t}). Ignoring.`);return}return(0,eN.N)(t)}}function rA(t,{session:e,viewContext:n,errorType:r}){let i=e?e.id:"no-session-id",o=[];return void 0!==r&&o.push(`error-type=${r}`),n&&(o.push(`seed=${n.id}`),o.push(`from=${n.startClocks.timeStamp}`)),`${function(t){let e=t.site,n=t.subdomain||function(t){switch(t.site){case tw.D_:case tw.Ds:return"app";case tw.DZ:return"dd";default:return}}(t);return`https://${n?`${n}.`:""}${e}`}(t)}/rum/replay/sessions/${i}?${o.join("&")}`}var rT=n(4343),rO=n(16172);function rR(t,e,n,r){let i=(0,rT.UF)([(0,z.Ez)(t,"profile")],t=>{e.notify(15,{error:{message:t,source:na.zH.AGENT,startClocks:(0,O.$I)()}}),(0,D.eJ)("Error reported to customer",{"error.message":t})}),o=n(r);return{async send({event:t,...e}){let n=new FormData,r=(0,rO.l)(t);if(!r)throw Error("Failed to serialize event");n.append("event",new Blob([r],{type:"application/json"}),"event.json");let a=r.length;for(let[t,r]of(0,e_.qP)(e)){let e=(0,rO.l)(r);if(!e)throw Error("Failed to serialize attachment");let i=await function(t,e){return new Promise(n=>{t.write(e),t.finish(t=>{n(t)})})}(o,e);a+=i.outputBytesCount,n.append(t,new Blob([i.output]),t)}i.send({data:n,bytesCount:a})}}}},32822:function(t,e,n){let r;function i(t){return l(t).segments_count}function o(t){l(t).segments_count+=1}function a(t){l(t).records_count+=1}function s(t){l(t).resources_count+=1}function u(t,e){l(t).segments_total_raw_size+=e}function c(t){return r?.get(t)}function l(t){let e;return r||(r=new Map),r.has(t)?e=r.get(t):(e={records_count:0,resources_count:0,segments_count:0,segments_total_raw_size:0},r.set(t,e),r.size>1e3&&function(){if(!r)return;let t=r.keys().next().value;t&&r.delete(t)}()),e}n.d(e,{FT:function(){return i},MA:function(){return c},pk:function(){return u},rp:function(){return s},ui:function(){return o},xK:function(){return a}})},85499:function(t,e,n){let r;n.d(e,{vT:function(){return U}});var i=n(84792),o=n(97777);function a(t,e){let n,r=0,a=[],s=!0,u=0,c=[],{stop:l}=(0,i.Oo)(t,"message",({data:t})=>{if("wrote"!==t.type||t.streamId!==e)return;let i=c[0];i&&(i.id===t.id?(c.shift(),r+=t.additionalBytesCount,a.push(t.result),n=t.trailer,i.writeCallback?i.writeCallback(t.result.byteLength):i.finishCallback&&i.finishCallback()):i.id<t.id&&l())});function d(){let t=0===a.length?new Uint8Array(0):(0,o.Kb)(a.concat(n)),e={rawBytesCount:r,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return r=0,a=[],e}function f(){s||(t.postMessage({action:"reset",streamId:e}),s=!0)}return{isAsync:!0,get isEmpty(){return s},write(n,r){t.postMessage({action:"write",id:u,data:n,streamId:e}),c.push({id:u,writeCallback:r,data:n}),s=!1,u+=1},finish(t){f(),c.length?(c.forEach(t=>{delete t.writeCallback}),c[c.length-1].finishCallback=()=>t(d())):t(d())},finishSync(){f();let t=c.map(t=>t.data).join("");return c.length=0,{...d(),pendingData:t}},estimateEncodedBytesCount:t=>t.length/8,stop(){l()}}}var s=n(4793),u=n(17245),c=n(58581);function l({configuredUrl:t,error:e,source:n,scriptType:r}){var i;if(s.j.error(`${n} failed to start: an error occurred while initializing the ${r}:`,e),e instanceof Event||e instanceof Error&&((i=e.message).includes("Content Security Policy")||i.includes("requires 'TrustedScriptURL'"))){let e;e=t?`Please make sure the ${r} URL ${t} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",s.j.error(`${e} See documentation at ${c.aA}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===r&&(0,u.Sz)(e)}var d=n(23418),f=n(23412),p=n(43750);
4let g=30*p.WT;function m(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t?.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},D=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},M=!1,j=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},C=j,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},T={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=C,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=T[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;
vendor: 8,957 bytes, line 4
4for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?j(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);D(t,t.dyn_ltree,e-1),D(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=O(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t?.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){M||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),M=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t?.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra?.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>
4=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t?.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(T[n]);if(t.header&&(e=this.strm,a=t.header,e?.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t?.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
4i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(T[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch{t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"7.15.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=(new TextEncoder).encode(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let h={status:0};function y(t,e,n){switch(0===h.status&&function(t,e){try{let n=(0,d.C)(m)(t),{stop:r}=(0,i.Oo)(n,"error",n=>{_(t,e,n)}),{stop:o}=(0,i.Oo)(n,"message",({data:n})=>{var r;"errored"===n.type?_(t,e,n.error,n.streamId):"initialized"===n.type&&(r=n.version,1===h.status&&(h={status:3,worker:h.worker,stop:h.stop,version:r}))});n.postMessage({action:"init"}),(0,f.iK)(()=>{1===h.status&&(s.j.error(`${e} failed to start: a timeout occurred while initializing the Worker`),h.initializationFailureCallbacks.forEach(t=>t()),h={status:2})},g),h={status:1,worker:n,stop:()=>{r(),o()},initializationFailureCallbacks:[]}}catch(n){_(t,e,n)}}(t,e),h.status){case 1:return h.initializationFailureCallbacks.push(n),h.worker;case 3:return h.worker}}function _(t,e,n,r){1===h.status||0===h.status?(l({configuredUrl:t.workerUrl,error:n,source:e,scriptType:"worker"}),1===h.status&&h.initializationFailureCallbacks.forEach(t=>t()),h={status:2}):(0,u.Sz)(n,{worker_version:3===h.status&&h.version,stream_id:r})}var b=n(32822),v=n(40240),w=n(50160);async function E(){try{return await (0,d.C)(S)()}catch(t){l({error:t,source:"Recorder",scriptType:"module"})}}async function S(){return(await n.e(1133).then(n.bind(n,38808))).startRecording}var C=n(11374),k=n(21562),A=n(52148);async function T(t,e,n){try{return await n}finally{t.notify(e)}}var O=n(18452),R=n(91703),x=n(78179);function I(){return void 0!==x.globalObject.Profiler}var N=n(9200);async function L(){try{return await (0,d.C)($)()}catch(t){l({error:t,source:"Profiler",scriptType:"module"})}}async function $(){return(await n.e(9050).then(n.bind(n,32005))).createRumProfiler}var D=n(94952),M=n(36105);let P=function(){let t;if((0,O.xT)()&&!(0,O.ke)(O.BP.RECORDS))return{start:w.Z,stop:w.Z,getReplayStats:()=>void 0,onRumStart:w.Z,isRecording:()=>!1,getSessionReplayLink:()=>void 0};let{strategy:e,shouldStartImmediately:n}=(t=0,{strategy:{start(){t=1},stop(){t=2},isRecording:()=>!1,getSessionReplayLink:w.Z},shouldStartImmediately:e=>1===t||0===t&&!e.startSessionReplayRecordingManually});return{start:t=>e.start(t),stop:()=>e.stop(),getSessionReplayLink:()=>e.getSessionReplayLink(),onRumStart:function(t,r,i,o,s,c){let l;e=function(t,e,n,r,i,o){let a,s=0;e.subscribe(v.Y5.SESSION_EXPIRED,()=>{(2===s||3===s)&&(f(),s=1)}),e.subscribe(v.Y5.SESSION_RENEWED,()=>{1===s&&d()});let c=new C.y$;!function(t,e){let n,r,i;if(!t.metricsEnabled)return w.Z;let{unsubscribe:o}=e.subscribe(t=>{switch(t.type){case"start":n={forced:t.forced,timestamp:(0,p.n$)()},r=void 0,i=void 0;break;case"document-ready":n&&(r=(0,p._J)(n.timestamp,(0,p.n$)()));break;
4case"recorder-settled":n&&(i=(0,p._J)(n.timestamp,(0,p.n$)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":var e,a,s;o(),n&&(0,u.qZ)(u.T.RECORDER_INIT_METRICS_TELEMETRY_NAME,{metrics:(e=n.forced,a=i,s=(0,p._J)(n.timestamp,(0,p.n$)()),{forced:e,loadRecorderModuleDuration:a,recorderInitDuration:s,result:t.type,waitForDocReadyDuration:r})})}})}(o,c);let l=async u=>{c.notify({type:"start",forced:u});let[l]=await Promise.all([T(c,{type:"recorder-settled"},E()),T(c,{type:"document-ready"},(0,k._)("interactive"))]);if(2!==s){c.notify({type:"aborted"});return}if(!l){s=0,c.notify({type:"recorder-load-failed"});return}let d=i();if(!d){s=0,c.notify({type:"deflate-encoder-load-failed"});return}({stop:a}=l(e,t,n,r,d,o)),s=3,c.notify({type:"succeeded"})};function d(e){var r;let i=n.findTrackedSession(),o=i?(0,v.nu)(i,t):void 0;if(!(void 0!==o&&(o!==v.$S.OFF||e?.force))){s=1;return}if(2===(r=s)||3===r)return;s=2;let a=e&&e.force&&o===v.$S.OFF||!1;l(a).catch(A.$y),a&&n.updateSessionState({forcedReplay:"1"})}function f(){3===s&&a?.(),s=0}return{start:d,stop:f,getSessionReplayLink:()=>(function(t,e,n,r){let i=e.findTrackedSession(),o=i?(0,v.nu)(i,t)===v.$S.OFF?"incorrect-session-plan":r?void 0:"replay-not-started":"rum-not-tracked",a=n.findView();return(0,v.Gm)(t,{viewContext:a,errorType:o,session:i})})(t,n,r,0!==s),isRecording:()=>3===s}}(r,t,i,o,function(){return!l&&(s??=y(r,"Datadog Session Replay",()=>e.stop()))&&(l=a(s,R.C.REPLAY)),l},c),n(r)&&e.start()},isRecording:()=>3===h.status&&e.isRecording(),getReplayStats:t=>3===h.status?(0,b.MA)(t):void 0}}(),U=(0,v._r)(P,{onRumStart:function(t,e,n,i,o,a){let s;let u=i.findTrackedSession();if(!u||((0,O.xT)()?!(0,O.ke)(O.BP.PROFILES):!(0,D.HR)(u.id,(0,D.HQ)(n.sessionSampleRate,n.profilingSampleRate))))return;let c=(s={status:"starting"},e.assembleEventDefaults.register(({eventType:t})=>t!==v.D$.VIEW&&t!==v.D$.LONG_TASK&&t!==v.D$.ACTION&&t!==v.D$.VITAL?N.kb:{type:t,_dd:{profiling:s}}),{get:()=>s,set:t=>{s=t}});if(!(0,d.C)(I)()){c.set({status:"error",error_reason:"not-supported-by-browser"});return}(0,d.C)(L)().then(e=>{if(!e){c.set({status:"error",error_reason:"failed-to-lazy-load"});return}(r=e(n,t,i,c,a,o,void 0)).start()}).catch(A.$y)},stop:()=>{r?.stop()}},{startDeflateWorker:y,createDeflateEncoder:a,sdkName:"rum"});(0,M.y)(x.globalObject,"DD_RUM",U)},9200:function(t,e,n){n.d(e,{Bi:function(){return i},C_:function(){return o},kb:function(){return a}});var r=n(82336);function i(){let t=[];return{register:e=>(t.push(e),{unregister(){t=t.filter(t=>t!==e)}}),trigger(e){let n=[];for(let r of t){let t=r(e);if("DISCARDED"===t)return o;"SKIPPED"!==t&&n.push(t)}return(0,r.$e)(...n)}}}let o="DISCARDED",a="SKIPPED"},13212:function(t,e,n){n.d(e,{f:function(){return a}});var r=n(80486),i=n(82336),o=n(58581);function a(t,e,n){if(!t||"object"!=typeof t){n.error("Configuration must be an object");return}return s(e,t,n)}function s(t,e,n){let r={};for(let[a,s]of Object.entries(t)){let t=e[a],u=s.multiple?function(t,e,n){if(null==e)return;if("enum"===t.type&&t.allowAll&&"all"===e)return l(t.values).slice();let r=Array.isArray(e)?e:[e],i=[];for(let e of r){let r=c(t,e,n);if(void 0===r){if(!1!==t.strict)return}else i.push(r)}if(!1!==t.strict||0!==i.length||!(r.length>0))return i}(s,t,n):c(s,t,n);if(void 0===u){if(null!=t&&""!==t){if(n.error(function(t,e){switch(e.type){case"string":return`"${t}" must be a non-empty string`;case"number":if(void 0!==e.min&&void 0!==e.max)return`"${t}" must be a number between ${e.min} and ${e.max}`;if(void 0!==e.min)return`"${t}" must be a number greater than or equal to ${e.min}`;if(void 0!==e.max)return`"${t}" must be a number less than or equal to ${e.max}`;return`"${t}" must be a finite number`;case"percentage":return`"${t}" must be a number between 0 and 100`;case"boolean":return`"${t}" must be a boolean`;case"site":return`"${t}" must be a valid Datadog site. ${o.IA} ${o.aA}/getting_started/site/.`;case"match-option":return`"${t}" must be a string, RegExp, or function`;case"enum":return`"${t}" must be one of: "${l(e.values).join('", "')}"`;case"union":return`"${t}" does not match any expected type`;case"schema":return`"${t}" is not a valid object`;case"function":return`"${t}" must be a function`}}(a,s)),s.required||!1!==s.strict)return}else if(s.required){n.error(`"${a}" is required`);return}r[a]="default"in s?(0,i.I8)(s.default):void 0}else r[a]=u}return r}let u=/(datadog|ddog|datad0g|dd0g)/;function c(t,e,n){if("schema"===t.type){if("object"!=typeof e||null===e)return;
4return s(t.schema,e,n)}if("union"===t.type){if(null==e)return;for(let r of t.variants){let t=c(r,e,n);if(void 0!==t)return t}return}if(null!=e)switch(t.type){case"function":return"function"==typeof e?e:void 0;case"string":return"string"==typeof e&&e.length>0?e:void 0;case"number":return"number"==typeof e&&Number.isFinite(e)&&(void 0===t.min||e>=t.min)&&(void 0===t.max||e<=t.max)?e:void 0;case"percentage":return(0,r.zz)(e)?e:void 0;case"boolean":return"boolean"==typeof e?e:!1===t.strict?!!e:void 0;case"site":if("string"!=typeof e||!u.test(e))return;return e;case"match-option":return(0,r.o)(e)?e:void 0;case"enum":return"string"==typeof e&&l(t.values).includes(e)?e:void 0}}function l(t){return Array.isArray(t)?t:Object.values(t)}},52148:function(t,e,n){let r;n.d(e,{$y:function(){return c},L6:function(){return u},P_:function(){return l},zk:function(){return s}});var i=n(58581),o=n(75571);let a=function(t,e){function n(t){return function(...e){return r(t,this,e)}}function r(t,e,n){try{return t.apply(e,n)}catch(t){i(t)}}function i(n){let r=e=>{(0,o.K)()&&t.error("[MONITOR]",e)};r(n);try{e(n)}catch(t){r(t)}}return{monitored:function(t,e,r){r.value=n(r.value)},monitor:n,callMonitored:r,monitorError:i}}((0,i.fT)("Datadog SDK:"),t=>r?.(t)),s=a.monitor,u=a.callMonitored,c=a.monitorError;function l(t){return!r&&(r=t,!0)}},43750:function(t,e,n){let r;n.d(e,{$I:function(){return g},DY:function(){return h},MN:function(){return b},P5:function(){return s},Pv:function(){return v},U:function(){return w},WK:function(){return f},WT:function(){return i},_J:function(){return l},_q:function(){return p},cQ:function(){return m},dV:function(){return a},dg:function(){return d},lO:function(){return y},m6:function(){return u},n$:function(){return c},yR:function(){return o},zj:function(){return _}});let i=1e3,o=6e4,a=36e5,s=31536e6;function u(){return new Date().getTime()}function c(){return u()}function l(t,e){return e-t}function d(t){return"number"!=typeof t?t:Math.round(1e6*t)}function f(t,e){return t+e}function p(){return performance.now()}function g(){return{relative:p(),timeStamp:c()}}function m(){return{relative:0,timeStamp:w()}}function h(t){return{relative:t,timeStamp:function(t){let e=u()-performance.now();return e>w()?Math.round(e+t):Math.round(w()+t)}(t)}}function y(t){return{relative:_(t),timeStamp:t}}function _(t){return t-w()}function b(t){return t<s}function v(){return Math.round(u()-(w()+performance.now()))}function w(){return void 0===r&&(r=performance.timing?.navigationStart??performance.timeOrigin),r}},35377:function(t,e,n){n.d(e,{Ez:function(){return a},ji:function(){return s},lp:function(){return u}});var r=n(72097),i=n(43750),o=n(18789);function a(t,e,n){return{build:(r,o)=>u({proxy:t.proxy,site:t.site,path:`/api/v2/${e}`,parameters:function({clientToken:t,source:e="browser"},n,r,{retry:o,encoding:a},s=[]){let u=[`ddsource=${e}`,`dd-api-key=${t}`,`dd-evp-origin-version=${encodeURIComponent("7.15.0")}`,"dd-evp-origin=browser",`dd-request-id=${function t(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t)}()}`].concat(s);return a&&u.push(`dd-evp-encoding=${a}`),"rum"===n&&(u.push(`batch_time=${(0,i.n$)()}`,`_dd.api=${r}`),o&&u.push(`_dd.retry_count=${o.count}`,`_dd.retry_after=${o.lastFailureStatus}`)),u.join("&")}(t,e,r,o,n)}),trackType:e}}function s({replica:t,proxy:e,source:n},r){if(t)return a({clientToken:t.clientToken,proxy:e,source:n,site:o.D_},r,"rum"===r?[`application.id=${t.applicationId}`]:void 0)}function u({proxy:t,site:e=o.D_,path:n,parameters:i="",subdomain:a}){let s=n;if(i&&(s+=`?${i}`),"string"==typeof t){let e=`${(0,r.D5)(t)}?ddforward=${encodeURIComponent(s)}`;return a&&(e+=`&ddforwardSubdomain=${a}`),e}if("function"==typeof t)return t({path:n,parameters:i,subdomain:a});let u=e.split("."),c=u.pop(),l=`browser-intake-${u.join("-")}.${c}`;return a&&(l=`${a}.${l}`),`https://${l}${s}`}},18789:function(t,e,n){n.d(e,{DZ:function(){return r},D_:function(){return i},Ds:function(){return o},iU:function(){return c},tx:function(){return s},y7:function(){return a}});let r="datad0g.com",i="datadoghq.com",o="datadoghq.eu",a="ddog-gov.com",s="us2.ddog-gov.com",u=["ddsource","dd-api-key","dd-request-id"];function c(t){return u.every(e=>t.includes(e))}},75571:function(t,e,n){n.d(e,{K:function(){return o},y:function(){return i}});let r=!1;function i(t){r=t}function o(){return r}},58581:function(t,e,n){n.d(e,{IA:function(){return i},LD:function(){return s}
4,aA:function(){return r},fT:function(){return u},jG:function(){return a},vA:function(){return o}});let r="https://docs.datadoghq.com",i="More details:",o={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},a=console,s={log:a.log,debug:a.debug,info:a.info,warn:a.warn,error:a.error};function u(t){return{debug:s.debug.bind(a,t),log:s.log.bind(a,t),info:s.info.bind(a,t),warn:s.warn.bind(a,t),error:s.error.bind(a,t)}}},78179:function(t,e,n){n.d(e,{globalObject:function(){return r},j:function(){return i}});let r=globalThis,i="WorkerGlobalScope"in r},82336:function(t,e,n){n.d(e,{$e:function(){return a},I8:function(){return o}});var r=n(80486);function i(t,e,n){if(void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(n.hasAlreadyBeenSeen(e))return;if(Array.isArray(e)){let r=Array.isArray(t)?t:[];for(let t=0;t<e.length;++t)r[t]=i(r[t],e[t],n);return r}let o="object"===(0,r.oL)(t)?t:{};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&"__proto__"!==t&&(o[t]=i(o[t],e[t],n));return o}function o(t){return i(void 0,t,s())}function a(...t){let e;for(let n of t)null!=n&&(e=i(e,n,s()));return e}function s(){let t=new WeakSet;return{hasAlreadyBeenSeen(e){let n=t.has(e);return n||t.add(e),n}}}},80486:function(t,e,n){function r(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function i(t){return"object"===r(t)}function o(t){return"number"==typeof t&&t>=0&&t<=100}function a(t){return"string"==typeof t||t instanceof RegExp||"function"==typeof t}n.d(e,{o:function(){return a},oL:function(){return r},sK:function(){return i},zz:function(){return o}})},72097:function(t,e,n){let r,i;n.d(e,{D5:function(){return a},Q2:function(){return c},jv:function(){return s},ye:function(){return u}});var o=n(78179);function a(t){return c(t,o.globalObject.document?.baseURI??o.globalObject.location?.href).href}function s(t){try{return!!c(t)}catch{return!1}}function u(t){let e=c(t).pathname;return"/"===e[0]?e:`/${e}`}function c(t,e){let n=function(){if(!r){let t=!1;try{t="http://a/b"===new o.globalObject.URL("b","http://a").href}catch{}r=t?o.globalObject.URL:function(){if(!i){let t,e;try{(t=document.createElement("iframe")).style.display="none",document.body.appendChild(t),e=t.contentWindow??o.globalObject}catch{e=o.globalObject}i={URL:e.URL},t?.remove()}return i}().URL}return r}();try{return void 0!==e?new n(t,e):new n(t)}catch(t){throw Error(`Failed to construct URL: ${String(t)}`)}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.