1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1358],{741:(t,e,r)=>{"use strict";function n(t){return 0!==t&&100*Math.random()<=t}function i(t,e){return+t.toFixed(e)}function o(t){return"number"==typeof t}r.d(e,{Et:()=>o,LI:()=>i,ic:()=>n})},3674:(t,e,r)=>{"use strict";r.d(e,{NR:()=>s,Yn:()=>a,uC:()=>o});var n=r(27268),i=r(81091);function o(t){let e,r=Error(t);return r.name="HandlingStack",(0,n.um)(()=>{let t=(0,i.T)(r);t.stack=t.stack.slice(2),e=a(t)}),e}function a(t){let e=s(t);return t.stack.forEach(t=>{let r="?"===t.func?"<anonymous>":t.func,n=t.args&&t.args.length>0?`(${t.args.join(", ")})`:"",i=t.line?`:${t.line}`:"",o=t.line&&t.column?`:${t.column}`:"";e+=` 2 at ${r}${n} @ ${t.url}${i}${o}`}),e}function s(t){return`${t.name||"Error"}: ${t.message}`}},8179:(t,e,r)=>{"use strict";r.d(e,{Vy:()=>i,Xs:()=>o});var n=r(26824);let i=(0,n.XH)("Datadog Browser SDK:"),o=`${n.fH}/real_user_monitoring/browser/troubleshooting`},9968:(t,e,r)=>{"use strict";let n;function i(t){return c(t).segments_count}function o(t){c(t).segments_count+=1}function a(t){c(t).records_count+=1}function s(t,e){c(t).segments_total_raw_size+=e}function u(t){return n?.get(t)}function c(t){let e;return n||(n=new Map),n.has(t)?e=n.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},n.set(t,e),n.size>1e3&&function(){if(!n)return;let t=n.keys().next().value;t&&n.delete(t)}()),e}r.d(e,{$1:()=>a,H5:()=>o,K_:()=>i,L7:()=>s,lv:()=>u})},10157:function(t,e,r){var n,i;void 0===(i="function"==typeof(n=function(){var t,e,r,n={};n.version="0.2.0";var i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(t,e,r){return t<e?e:t>r?r:t}n.configure=function(t){var e,r;for(e in t)void 0!==(r=t[e])&&t.hasOwnProperty(e)&&(i[e]=r);return this},n.status=null,n.set=function(t){var e=n.isStarted();n.status=1===(t=o(t,i.minimum,1))?null:t;var r=n.render(!e),u=r.querySelector(i.barSelector),c=i.speed,l=i.easing;return r.offsetWidth,a(function(e){var o,a,d,f;""===i.positionUsing&&(i.positionUsing=n.getPositioningCSS()),s(u,(o=t,a=c,d=l,(f="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+o)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+o)*100+"%,0)"}:{"margin-left":(-1+o)*100+"%"}).transition="all "+a+"ms "+d,f)),1===t?(s(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){s(r,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){n.remove(),e()},c)},c)):setTimeout(e,c)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var t=function(){setTimeout(function(){n.status&&(n.trickle(),t())},i.trickleSpeed)};return i.trickle&&t(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*o(Math.random()*e,.1,.95)),e=o(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},t=0,e=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===e&&n.start(),t++,e++,r.always(function(){0==--e?(t=0,n.done()):n.set((t-e)/t)})),this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=i.template;var r,o=e.querySelector(i.barSelector),a=t?"-100":(-1+(n.status||0))*100,u=document.querySelector(i.parent);return s(o,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),!i.showSpinner&&(r=e.querySelector(i.spinnerSelector))&&f(r),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(e),e},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(i.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&f(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var a=(r=[],function(t){r.push(t),1==r.length&&function t(){var e=r.shift();e&&e(t)}
2()}),s=function(){var t=["Webkit","O","Moz","ms"],e={};function r(r,n,i){var o;n=e[o=(o=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]||(e[o]=function(e){var r=document.body.style;if(e in r)return e;for(var n,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((n=t[i]+o)in r)return n;return e}(o)),r.style[n]=i}return function(t,e){var n,i,o=arguments;if(2==o.length)for(n in e)void 0!==(i=e[n])&&e.hasOwnProperty(n)&&r(t,n,i);else r(t,o[1],o[2])}}();function u(t,e){return("string"==typeof t?t:d(t)).indexOf(" "+e+" ")>=0}function c(t,e){var r=d(t),n=r+e;u(r,e)||(t.className=n.substring(1))}function l(t,e){var r,n=d(t);u(t,e)&&(t.className=(r=n.replace(" "+e+" "," ")).substring(1,r.length-1))}function d(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function f(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?n.call(e,r,e,t):n)||(t.exports=i)},11776:(t,e,r)=>{"use strict";r.d(e,{Z:()=>s,m:()=>a});var n=r(8179),i=r(77180),o=r(77407);function a(t){let e={version:"7.7.0",onReady(t){t()},...t};return Object.defineProperty(e,"_setDebug",{get:()=>o.p,enumerable:!1}),e}function s(t,e,r){let o=t[e];o&&!o.q&&o.version&&n.Vy.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=r,o?.q&&o.q.forEach(t=>(0,i.y)(t,"onReady callback threw an error:")())}},11947:(t,e,r)=>{"use strict";function n(t,e){for(let r=t.length-1;r>=0;r-=1){let n=t[r];if(e(n,r,t))return n}}function i(t){return Object.values(t)}function o(t){return Object.entries(t)}r.d(e,{KQ:()=>i,Uk:()=>n,WP:()=>o})},13076:(t,e,r)=>{"use strict";r.d(e,{dX:()=>u,cP:()=>a,Fx:()=>s});var n=r(27268),i=r(15616);function o(t){let e=i.J.queueMicrotask;"function"==typeof e?e((0,n.dm)(t)):Promise.resolve().then((0,n.dm)(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 r=t.map(t=>t.subscribe(t=>e.notify(t)));return()=>r.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 r of this.buffer){if(e)return;t(r)}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})}}},14149:(t,e,r)=>{"use strict";let n;r.d(e,{BX:()=>l,fK:()=>d,gX:()=>s,lQ:()=>c,q2:()=>u});var i=r(27268),o=r(48716),a=r(43116);let s=function(t){return t.BEFORE_UNLOAD="beforeunload",t.CLICK="click",t.DBL_CLICK="dblclick",t.KEY_DOWN="keydown",t.LOAD="load",t.POP_STATE="popstate",t.SCROLL="scroll",t.TOUCH_START="touchstart",t.TOUCH_END="touchend",t.TOUCH_MOVE="touchmove",t.VISIBILITY_CHANGE="visibilitychange",t.PAGE_SHOW="pageshow",t.FREEZE="freeze",t.RESUME="resume",t.DOM_CONTENT_LOADED="DOMContentLoaded",t.POINTER_DOWN="pointerdown",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.HASH_CHANGE="hashchange",t.PAGE_HIDE="pagehide",t.MOUSE_DOWN="mousedown",t.MOUSE_UP="mouseup",t.MOUSE_MOVE="mousemove",t.FOCUS="focus",t.BLUR="blur",t.CONTEXT_MENU="contextmenu",t.RESIZE="resize",t.CHANGE="change",t.INPUT="input",t.PLAY="play",t.PAUSE="pause",t.SECURITY_POLICY_VIOLATION="securitypolicyviolation",t.SELECTION_CHANGE="selectionchange",t.STORAGE="storage",t.UNHANDLED_REJECTION="unhandledrejection",t}({});function u(t,e,r,n){return c(t,[e],r,n)}function c(t,e,r,{once:a,capture:s,passive:u}={}){let l=(0,i.dm)(t=>{(t.isTrusted||t.__ddIsTrusted||!1!==n)&&(a&&h(),r(t))}),d=u?{capture:s,passive:u}:s,f=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,p=(0,o.W)(f,"addEventListener");function h(){let r=(0,o.W)(f,"removeEventListener");
2e.forEach(e=>r.call(t,e,l,d))}return e.forEach(e=>p.call(t,e,l,d)),{stop:h}}function l(t,e){if(!t)return!1;try{return u(t,e,a.l).stop(),!0}catch{return!1}}function d(t){!0!==n&&(n=t??!1)}},15616:(t,e,r)=>{"use strict";r.d(e,{J:()=>n,W:()=>i});let n=globalThis,i="WorkerGlobalScope"in n},15648:(t,e,r)=>{"use strict";r.d(e,{Go:()=>o,kg:()=>a});var n=r(86989);function i(t,e,r){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(r.hasAlreadyBeenSeen(e))return;if(Array.isArray(e)){let n=Array.isArray(t)?t:[];for(let t=0;t<e.length;++t)n[t]=i(n[t],e[t],r);return n}let o="object"===(0,n.Pw)(t)?t:{};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&"__proto__"!==t&&(o[t]=i(o[t],e[t],r));return o}function o(t){return i(void 0,t,s())}function a(...t){let e;for(let r of t)null!=r&&(e=i(e,r,s()));return e}function s(){let t=new WeakSet;return{hasAlreadyBeenSeen(e){let r=t.has(e);return r||t.add(e),r}}}},16417:(t,e,r)=>{"use strict";r.d(e,{$O:()=>a,ab:()=>i,ug:()=>o});var n=r(15648);function i(){let t=[];return{register:e=>(t.push(e),{unregister(){t=t.filter(t=>t!==e)}}),trigger(e){let r=[];for(let n of t){let t=n(e);if("DISCARDED"===t)return o;"SKIPPED"!==t&&r.push(t)}return(0,n.kg)(...r)}}}let o="DISCARDED",a="SKIPPED"},16794:()=>{},17476:(t,e,r)=>{"use strict";let n;r.d(e,{AY:()=>a,L2:()=>s,c$:()=>u,l2:()=>o});var i=r(15616);function o(t){return u(t,i.J.location?.href).href}function a(t){try{return!!u(t)}catch{return!1}}function s(t){let e=u(t).pathname;return"/"===e[0]?e:`/${e}`}function u(t,e){let{URL:r}=function(){if(!n){let t,e;try{(t=document.createElement("iframe")).style.display="none",document.body.appendChild(t),e=t.contentWindow??i.J}catch{e=i.J}n={URL:e.URL},t?.remove()}return n}();try{return void 0!==e?new r(t,e):new r(t)}catch(t){throw Error(`Failed to construct URL: ${String(t)}`)}}},18760:(t,e,r)=>{"use strict";r.d(e,{O7:()=>i,aC:()=>o,gf:()=>n});let n={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"},i=function(t){return t.UNCAUGHT="Uncaught",t.PROVIDED="Provided",t}({}),o=function(t){return t.HANDLED="handled",t.UNHANDLED="unhandled",t}({})},18897:(t,e,r)=>{"use strict";r.d(e,{J:()=>l,y:()=>d});var n=r(81091),i=r(94840),o=r(15616);let a=new Map,s=new Set,u=!1;function c(){let t=o.J.window?.DD_SOURCE_CODE_CONTEXT;if(!t)return;let e=!1,r=!1,c=!1;for(let[i,o]of Object.entries(t)){if(e=e||void 0!==o.ddDebugId,r=r||void 0!==o.service,c=c||void 0!==o.version,s.has(i))continue;s.add(i);let t=(0,n.T)({stack:i}).stack[0]?.url;t&&!a.has(t)&&a.set(t,o)}u||(u=!0,(0,i.Q6)({feature:"source-code-context",use_debug_id:e,use_service:r,use_version:c}))}function l(t){c();let e=new Set,r=[];for(let n of t){if(e.has(n))continue;e.add(n);let t=a.get(n)?.ddDebugId;void 0!==t&&r.push({url:n,id:t})}return r.length?r:void 0}function d(t){return c(),a.get(t)}},19959:(t,e,r)=>{"use strict";let n;r.d(e,{$H:()=>s,$S:()=>p,A3:()=>_,FR:()=>g,Gw:()=>f,M8:()=>h,MA:()=>a,OY:()=>i,Oc:()=>m,Zj:()=>d,_O:()=>b,d6:()=>v,iW:()=>o,jR:()=>y,nx:()=>c,uc:()=>w,vk:()=>l,x3:()=>u});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 h(){return{relative:p(),timeStamp:c()}}function m(){return{relative:0,timeStamp:w()}}function g(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:v(t),timeStamp:t}}function v(t){return t-w()}function _(t){return t<s}function b(){return Math.round(u()-(w()+performance.now()))}function w(){return void 0===n&&(n=performance.timing?.navigationStart??performance.timeOrigin),n}},20162:(t,e,r)=>{"use strict";r.d(e,{DJ:()=>s,vG:()=>c,wg:()=>a,yb:()=>u});var n=r(27268),i=r(48716),o=r(15616);function a(t,e){return(0,i.W)(o.J,"setTimeout")((0,n.dm)(t),e)}function s(t){(0,i.W)(o.J,"clearTimeout")(t)}function u(t,e){return(0,i.W)(o.J,"setInterval")((0,n.dm)(t),e)}function c(t){(0,i.W)(o.J,"clearInterval")(t)}},22364:(t,e,r)=>{"use strict";let n;r.d(e,{q:()=>l});
2var i=r(20162),o=r(28329),a=r(19959);let s=1/0,u=a.iW,c=new Set;function l({expireDelay:t,maxEntries:e}){let r=[],l=()=>{if(!t)return;let e=(0,a.$S)()-t;for(;r.length>0&&r[r.length-1].endTime<e;)r.pop()};return t&&(n||(n=(0,i.yb)(()=>void c.forEach(t=>t()),u)),c.add(l)),{add:function(t,n){let i={value:t,startTime:n,endTime:s,remove:()=>{(0,o.Ai)(r,i)},close:t=>{i.endTime=t}};return e&&r.length>=e&&r.pop(),r.unshift(i),i},find:function(t=s,e={returnInactive:!1}){for(let n of r)if(n.startTime<=t){if(e.returnInactive||t<=n.endTime)return n.value;break}},closeActive:function(t){let e=r[0];e?.endTime===s&&e.close(t)},findAll:function(t=s,e=0){let n=(0,a.Gw)(t,e);return r.filter(e=>e.startTime<=n&&t<=e.endTime).map(t=>t.value)},findAllEntries:function(t=s,e=0){let n=(0,a.Gw)(t,e);return r.filter(e=>e.startTime<=n&&t<=e.endTime)},getEntries:function(t){return r.filter(e=>e.startTime===t)},reset:function(){r=[]},stop:function(){c.delete(l),0===c.size&&n&&((0,i.vG)(n),n=void 0)}}}},25441:(t,e,r)=>{"use strict";r.d(e,{B:()=>a});var n=r(27268),i=r(20162),o=r(19959);function a(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){let r=window.requestIdleCallback((0,n.dm)(t),e);return()=>window.cancelIdleCallback(r)}var r=t;let a=(0,o.x3)(),s=(0,i.wg)(()=>{r({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,o.x3)()-a))})},0);return()=>(0,i.DJ)(s)}},26824:(t,e,r)=>{"use strict";r.d(e,{JZ:()=>a,XH:()=>u,bP:()=>o,fH:()=>n,xG:()=>i});let n="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)}}},27268:(t,e,r)=>{"use strict";let n;r.d(e,{um:()=>u,dm:()=>s,Dx:()=>c,Bd:()=>l});var i=r(8179),o=r(77407);let{monitored:a,monitor:s,callMonitored:u,monitorError:c}=function(t,e){function r(t){return function(...e){return n(t,this,e)}}function n(t,e,r){try{return t.apply(e,r)}catch(t){i(t)}}function i(r){let n=e=>{(0,o.N)()&&t.error("[MONITOR]",e)};n(r);try{e(r)}catch(t){n(t)}}return{monitored:function(t,e,n){n.value=r(n.value)},monitor:r,callMonitored:n,monitorError:i}}(i.Vy,t=>n?.(t));function l(t){n=t}},28329:(t,e,r)=>{"use strict";function n(t,e){let r=t.indexOf(e);r>=0&&t.splice(r,1)}function i(t){return Array.isArray(t)&&t.length>0}r.d(e,{Ai:()=>n,EI:()=>i})},33661:(t,e,r)=>{"use strict";r.d(e,{m5:()=>o});var n=r(8179),i=r(26824);function o(t){let{env:e,service:r,version:n,datacenter:i,sdkVersion:o,variant:s}=t,u=[a("sdk_version",o??"7.7.0")];return e&&u.push(a("env",e)),r&&u.push(a("service",r)),n&&u.push(a("version",n)),i&&u.push(a("datacenter",i)),s&&u.push(a("variant",s)),u}function a(t,e){var r;let o=e?`${t}:${e}`:t;return(o.length>200||(r=o,RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(r)))&&n.Vy.warn(`Tag ${o} doesn't meet tag requirements and will be sanitized. ${i.xG} ${i.fH}/getting_started/tagging/#defining-tags`),o.replace(/,/g,"_")}},43116:(t,e,r)=>{"use strict";r.d(e,{l:()=>o,n:()=>i});var n=r(20162);function i(t,e,r){let i,o,a=r?.leading===void 0||r.leading,s=r?.trailing===void 0||r.trailing,u=!1;return{throttled:(...r)=>{if(u){i=r;return}a?t(...r):i=r,u=!0,o=(0,n.wg)(()=>{s&&i&&t(...i),u=!1,i=void 0},e)},cancel:()=>{(0,n.DJ)(o),u=!1,i=void 0}}}function o(){}},43633:(t,e,r)=>{"use strict";r.d(e,{Bb:()=>n,KG:()=>s,NW:()=>i,R8:()=>a,dV:()=>o,wo:()=>c});let n="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))}},48716:(t,e,r)=>{"use strict";r.d(e,{W:()=>i});var n=r(15616);function i(t,e){let r,i=n.J;return i.Zone&&"function"==typeof i.Zone.__symbol__&&(r=t[i.Zone.__symbol__(e)]),r||(r=t[e]),r}},48864:(t,e,r)=>{"use strict";let n,i,o,a,s,u,c,l,d,f,p,h;r.d(e,{eT:()=>es,o:()=>ea,Rg:()=>tR,$m:()=>en,NT:()=>ei,Wd:()=>eo,bb:()=>m,K:()=>g,do:()=>tJ,xC:()=>eA,DL:()=>b,K$:()=>ek,wP:()=>iR,wI:()=>tG,W3:()=>tA,PJ:()=>el,dT:()=>ef,$4:()=>tB,Gn:()=>e_,zL:()=>eb,dx:()=>iA,rf:()=>ey,pB:()=>eE,g1:()=>ew,nS:()=>tF,XS:()=>tz,p_:()=>tq,AB:()=>iC,jR:()=>ed,ei:()=>tV,ap:()=>eh,Ie:()=>ep});let m={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",VIEW_UPDATE:"view_update",RESOURCE:"resource",VITAL:"vital"},g={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},y={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",SESSION_RENEWAL:"session_renewal",BF_CACHE:"bf_cache"},v={CLICK:"click",CUSTOM:"custom"},_={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"}
2,b={DURATION:"duration",OPERATION_STEP:"operation_step"};function w(t,e){e.lastIndex=0;let r=e.exec(t);if(!r)return;let[n,i]=r;return i||n}let E=/[a-zA-Z_$]/,S=/[a-zA-Z0-9_$]/,C=/[0-9]/,A=/[a-fA-F0-9]/,k={0:()=>!1,1:()=>!1,2:t=>E.test(t),3:t=>S.test(t),4:t=>"."===t,5:t=>"["===t,6:t=>"]"===t,7:t=>C.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&&A.test(t)},R={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]},T=[2,3,7,10],O=[4,5,6],x={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:" "};var I=r(19959),N=r(74987);let M={hit:"success",miss:"missing",error:"failure"};var P=r(86989),D=r(8179),L=r(94840);function U(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,U)}let $=/(\S+?)\s*=\s*(.*?)(?:;|$)/g;function V(t,e){for($.lastIndex=0;;){let r=$.exec(t);if(r){if(r[1]===e)return r[2]}else break}}function j(t,e,r=""){let n=t.charCodeAt(e-1),i=n>=55296&&n<=56319?e+1:e;return t.length<=i?t:`${t.slice(0,i)}${r}`}var F=r(15616),z=r(17476);function q(t,e,r=0,n){let i=new Date;i.setTime(i.getTime()+r);let o=`expires=${i.toUTCString()}`,a=n?.crossSite?"none":"strict",s=n?.domain?`;domain=${n.domain}`:"",u=n?.secure?";secure":"",c=n?.partitioned?";partitioned":"";document.cookie=`${t}=${e};${o};path=/;samesite=${a}${s}${u}${c}`}function G(t){let e=V(document.cookie,t);if(""!==e)return e}function B(t){return(function(t){let e=new Map;for($.lastIndex=0;;){let r=$.exec(t);if(r){let t=r[1],n=r[2];e.has(t)?e.get(t).push(n):e.set(t,[n])}else break}return e})(document.cookie).get(t)||[]}function W(t){return n||(n=function(t){let e=new Map;for($.lastIndex=0;;){let r=$.exec(t);if(r)e.set(r[1],r[2]);else break}return e}(document.cookie)),n.get(t)}var H=r(55e3),K=r(27268),J=r(90677);let Z=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","telemetrySampleRate","trackAnonymousUser","trackUserInteractions","trackResources","trackLongTasks","traceContextInjection","actionNameAttribute","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function X(t,e){let r,n=Q(),i=await te(t);return i.ok?(n.increment("fetch","success"),r=Y(t,i.value,e,n)):(n.increment("fetch","failure"),D.Vy.error(i.error)),(0,L.Gk)(L.Xf.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:n.get()}),r}function Y(t,e,r,n){let i={...t};if(e.rum){let t=e.rum;Z.forEach(e=>{e in t&&(i[e]=o(t[e]))}),Object.keys(r).forEach(e=>{var n;void 0!==t[e]&&(n=r[e],t[e].forEach(({key:t,value:e})=>{n.setContextProperty(t,o(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,P.OE)(t)){if("rcSerializedType"in t){let r=t.rcSerializedType;switch(r){case"string":return t.value;case"regex":return tt(t.value);case"dynamic":let i;var e=t;let o=e.strategy;switch(o){case"cookie":i=function({name:t}){let e=G(t);return n.increment("cookie",void 0!==e?"success":"missing"),e}(e);break;case"dom":i=function({selector:t,attribute:e}){var r,i;let o;try{o=document.querySelector(t)}catch{D.Vy.error(`Invalid selector in the remote configuration: '${t}'`),n.increment("dom","failure");return}if(!o)return void n.increment("dom","missing");if(r=o,i=e,"password"===r.getAttribute("type")&&"value"===i){D.Vy.error(`Forbidden element selected by the remote configuration: '${t}'`),n.increment("dom","failure");return}let a=void 0!==e?o.getAttribute(e):o.textContent;return null===a?void n.increment("dom","missing"):(n.increment("dom","success"),a)}(e);break;case"js":i=function({path:t}){let e=window,r=function(t){let e,r=[],n=0,i={quote:void 0,escapeSequence:void 0},o="";for(let u of t){if(!(e=R[n].find(t=>k[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)):x[s],i.escapeSequence=void 0}T.includes(e)?o+=u:O.includes(e)&&""!==o?(r.push(o),o=""):12===e?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${u}`:u:8===e?i.quote=u:9===e&&(i.quote=void 0),n=e}return R[n].includes(1)?(""!==o&&r.push(o),r):[]}(t);if(0===r.length){D.Vy.error(`Invalid JSON path in the remote configuration: '${t}'`),n.increment("js","failure");return}for(let i of r){if(!(i in e))return void n.increment("js","missing");try{e=e[i]}catch(e){D.Vy.error(`Error accessing: '${t}'`,e),n.increment("js","failure");return}}return n.increment("js","success"),e}(e);break;case"localStorage":i=function({key:t}){let e;try{e=localStorage.getItem(t)}catch{n.increment("localStorage","failure");return}return n.increment("localStorage",null!==e?"success":"missing"),e??void 0}(e);break;default:D.Vy.error(`Unsupported remote configuration: "strategy": "${o}"`);return}let a=e.extractor;return void 0!==a&&"string"==typeof i?function(t,e){let r=tt(t.value);if(void 0!==r)return w(e,r)}(a,i):i;default:D.Vy.error(`Unsupported remote configuration: "rcSerializedType": "${r}"`);return}}return(0,N.LG)(t,o)}return t}}function Q(){let t={fetch:{}};return{get:()=>t,increment:(e,r)=>{t[e]||(t[e]={}),t[e][r]||(t[e][r]=0),t[e][r]=t[e][r]+1}}}function tt(t){try{return new RegExp(t)}catch{D.Vy.error(`Invalid regex in the remote configuration: '${t}'`)}}async function te(t){let e;try{e=await (0,H.h)(function(t){if(t.remoteConfigurationProxy)return t.remoteConfigurationProxy;let e=tr(t);return(0,J.Hg)({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 r=await e.json();return r.rum||r.profiling?{ok:!0,value:r}:{ok:!1,error:Error("No remote configuration for RUM.")}}function tr(t){return t.remoteConfiguration?.id??t.remoteConfigurationId}var tn=r(13076);let ti={GRANTED:"granted",NOT_GRANTED:"not-granted"};var to=r(43633);let ta={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},ts={ALL:"all",SAMPLED:"sampled"},tu={clientToken:{type:"string",required:!0},service:{type:"string"},env:{type:"string"},version:{type:"string"},site:{type:"site",default:to.NW},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}
2,trackSessionAcrossSubdomains:{type:"boolean",default:!1,strict:!1},allowedTrackingOrigins:{type:"match-option",multiple:!0,strict:!1},trackingConsent:{type:"enum",values:ti,default:ti.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"}};var tc=r(77180),tl=r(741),td=r(28329),tf=r(15648),tp=r(26824);function th(t,e,r){let n={};for(let[i,o]of Object.entries(t)){let t=e[i],a=o.multiple?function(t,e,r){if(null==e)return;if("enum"===t.type&&t.allowAll&&"all"===e)return ty(t.values).slice();let n=Array.isArray(e)?e:[e],i=[];for(let e of n){let n=tg(t,e,r);if(void 0===n){if(!1!==t.strict)return}else i.push(n)}if(!1!==t.strict||0!==i.length||!(n.length>0))return i}(o,t,r):tg(o,t,r);if(void 0===a){if(null!=t&&""!==t){if(r.error(function(t,e){switch(e.type){case"string":return`"${t}" must be a non-empty string`;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. ${tp.xG} ${tp.fH}/getting_started/site/.`;case"match-option":return`"${t}" must be a string, RegExp, or function`;case"enum":return`"${t}" must be one of: "${ty(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`}}(i,o)),o.required||!1!==o.strict)return}else if(o.required)return void r.error(`"${i}" is required`);n[i]="default"in o?(0,tf.Go)(o.default):void 0}else n[i]=a}return n}let tm=/(datadog|ddog|datad0g|dd0g)/;function tg(t,e,r){if("schema"===t.type){if("object"!=typeof e||null===e)return;return th(t.schema,e,r)}if("union"===t.type){if(null==e)return;for(let n of t.variants){let t=tg(n,e,r);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"percentage":return(0,P.fp)(e)?e:void 0;case"boolean":return"boolean"==typeof e?e:!1===t.strict?!!e:void 0;case"site":if("string"!=typeof e||!tm.test(e))return;return e;case"match-option":return(0,P.Vl)(e)?e:void 0;case"enum":return"string"==typeof e&&ty(t.values).includes(e)?e:void 0}}function ty(t){return Array.isArray(t)?t:Object.values(t)}let tv=["tracecontext","datadog"],t_=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache","cf-cache-status","x-vercel-cache"],tb={...tu,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",default:!1},betaTrackWebSockets:{type:"boolean",default:!1,strict:!1},enablePrivacyForActionName:{type:"boolean",default:!0},propagateTraceBaggage:{type:"boolean",default:!0},startSessionReplayRecordingManually:{type:"boolean",default:!1,strict:!1},defaultPrivacyLevel:{type:"enum",values:ta,default:ta.MASK_USER_INPUT,strict:!1},traceContextInjection:{type:"enum",values:ts,default:ts.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:tv}}}]},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 tw(t){return(0,P.Vl)(t)?{match:t,propagatorTypes:tv}:(0,P.OE)(t)&&(0,P.Vl)(t.match)&&(null===t.propagatorTypes||void 0===t.propagatorTypes||Array.isArray(t.propagatorTypes))?{match:t.match,propagatorTypes:t.propagatorTypes||tv}:void 0}let tE=["request","response","any"];var tS=r(48716),tC=r(43116);function tA(){let t,e=window;return e.Zone&&(t=(0,tS.W)(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver&&(t=(0,tS.W)(new e.MutationObserver(tC.l),"originalInstance")?.constructor)),t||(t=e.MutationObserver),t}var tk=class{constructor(){this.callbacks={}}notify(t,e){let r=this.callbacks[t];r&&r.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)}}}};let tR=function(t){return t[t.AUTO_ACTION_COMPLETED=0]="AUTO_ACTION_COMPLETED",t[t.BEFORE_VIEW_CREATED=1]="BEFORE_VIEW_CREATED",t[t.VIEW_CREATED=2]="VIEW_CREATED",t[t.BEFORE_VIEW_UPDATED=3]="BEFORE_VIEW_UPDATED",t[t.VIEW_UPDATED=4]="VIEW_UPDATED",t[t.VIEW_ENDED=5]="VIEW_ENDED",t[t.AFTER_VIEW_ENDED=6]="AFTER_VIEW_ENDED",t[t.REQUEST_STARTED=7]="REQUEST_STARTED",t[t.REQUEST_COMPLETED=8]="REQUEST_COMPLETED",t[t.WEBSOCKET_COMPLETED=9]="WEBSOCKET_COMPLETED",t[t.SESSION_EXPIRED=10]="SESSION_EXPIRED",t[t.SESSION_RENEWED=11]="SESSION_RENEWED",t[t.PREPARE_URGENT_FLUSH=12]="PREPARE_URGENT_FLUSH",t[t.RAW_RUM_EVENT_COLLECTED=13]="RAW_RUM_EVENT_COLLECTED",t[t.RUM_EVENT_COLLECTED=14]="RUM_EVENT_COLLECTED",t[t.RAW_ERROR_COLLECTED=15]="RAW_ERROR_COLLECTED",t[t.ACTION_STARTED=16]="ACTION_STARTED",t[t.DURATION_VITAL_STARTED=17]="DURATION_VITAL_STARTED",t}({});var tT=r(71102),tO=r(22364);let tx=tT.AQ,tI={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",WEBSOCKET:"websocket",OTHER:"other"},tN={FETCH:tI.FETCH,XHR:tI.XHR};var tM=r(61230);let tP=[[tI.DOCUMENT,t=>"navigation"===t],[tI.XHR,t=>"xmlhttprequest"===t],[tI.FETCH,t=>"fetch"===t],[tI.BEACON,t=>"beacon"===t],[tI.CSS,(t,e)=>
2/\.css$/i.test(e)],[tI.JS,(t,e)=>/\.js$/i.test(e)],[tI.IMAGE,(t,e)=>["image","img","icon"].includes(t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)],[tI.FONT,(t,e)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)],[tI.MEDIA,(t,e)=>["audio","video"].includes(t)||null!==/\.(mp3|mp4)$/i.exec(e)]];function tD(...t){for(let e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function tL(t,e,r){if(t<=e&&e<=r)return{duration:(0,I.Zj)((0,I.vk)(e,r)),start:(0,I.Zj)((0,I.vk)(t,e))}}function tU(t){return t&&(!(0,to.wo)(t)||(0,tM.sr)(tM.R9.TRACK_INTAKE_REQUESTS))}let t$=/data:(.+)?(;base64)?,/g;function tV(t,e=24e3){if(t.length<=e||!t.startsWith("data:"))return t;let r=t.substring(0,100).match(t$);return r?`${r[0]}[...]`:t}function tj(t){return t.nodeType===Node.TEXT_NODE}function tF(t){return t.nodeType===Node.ELEMENT_NODE}function tz(t){return tF(t)&&!!t.shadowRoot}function tq(t){return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&tF(t.host)}function tG(t,e){let r=t.firstChild;for(;r;)e(r),r=r.nextSibling;tz(t)&&e(t.shadowRoot)}function tB(t){return tq(t)?t.host:t.parentNode}function tW(t){if(t.parentElement)return t.parentElement;let e=t.parentNode;return e&&tq(e)?e.host:null}var tH=r(20162),tK=r(14149);let tJ=function(t){return t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.LONG_ANIMATION_FRAME="long-animation-frame",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource",t.VISIBILITY_STATE="visibility-state",t}({});function tZ(t){return new tn.cP(e=>{let r,n=t=>{let r=t.filter(t=>{var e;return!("resource"===(e=t).entryType&&(!tU(e.name)||!(e.duration>=0)))});r.length>0&&e.notify(r)},i=!0,a=new PerformanceObserver((0,K.dm)(t=>{i?r=(0,tH.wg)(()=>n(t.getEntries())):n(t.getEntries())}));return a.observe(t),i=!1,!o&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(o=(0,tK.q2)(performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{a.disconnect(),(0,tH.DJ)(r)}})}function tX(t){return PerformanceObserver.supportedEntryTypes.includes(t)}let tY="Masked Element",tQ=["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"],t0=[t8,t3],t1=[t8,function(t){if("BODY"===t.tagName)return;let e=t.classList;for(let r=0;r<e.length;r+=1){let n=e[r];if(!t6(n))return`${CSS.escape(t.tagName)}.${CSS.escape(n)}`}},t5];function t2(t,e){if(!t.isConnected)return;let r=function(t){let e=[],r=t;for(;r;){let t=r.getRootNode();if(e.push({rootNode:t,target:r}),tq(t))r=t.host;else break}return e.reverse()}(t),n=[];for(let{rootNode:t,target:i}of r){let r=function(t,e,r){let n,i=t;for(;i&&"HTML"!==i.nodeName;){let t=t9(i,e,t0,et,r,n);if(t)return er(t,n);n=er(t9(i,e,t1,ee,r,n)||function(t){let e=t7(t);return`${CSS.escape(t.tagName)}:nth-of-type(${e})`}(i),n),i=i.parentElement}return n}(i,t,e);if(!r)return;n.push(r)}return n.join("::shadow ")}function t6(t){return/[0-9]/.test(t)}function t3(t){if(t.id&&!t6(t.id))return`#${CSS.escape(t.id)}`}function t5(t){return CSS.escape(t.tagName)}function t8(t,e){if(e){let t=r(e);if(t)return t}for(let t of tQ){let e=r(t);if(e)return e}function r(e){if(t.hasAttribute(e))return`${CSS.escape(t.tagName)}${t4(e,t.getAttribute(e))}`}}function t4(t,e){return`[${t}="${CSS.escape(e)}"]`}function t7(t){let e=t.parentNode.firstElementChild,r=1;for(;e&&e!==t;)e.tagName===t.tagName&&(r+=1),e=e.nextElementSibling;return r}function t9(t,e,r,n,i,o){for(let a of r){let r=a(t,i);if(r&&n(t,e,r,o))return r}}function et(t,e,r,n){return 1===e.querySelectorAll(er(r,n)).length}function ee(t,e,r,n){let i;if(void 0===n)i=t=>t.matches(r);else{let t=er(`${r}:scope`,n);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 er(t,e){return e?`${t}>${e}`:t}let en={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:ta.ALLOW,MASK:ta.MASK,MASK_USER_INPUT:ta.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:ta.MASK_UNLESS_ALLOWLISTED},ei="data-dd-privacy",eo="hidden",ea="***",es="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",eu={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function ec(t){return`[${ei}="${t}"], .dd-privacy-${t}`}function el(t,e,r){if(r?.has(t))return r.get(t);let n=tB(t),i=n?el(n,e,r):e,o=ed(ef(t),i);return r&&r.set(t,o),o}function ed(t,e){switch(e){case en.HIDDEN:case en.IGNORE:return e}switch(t){case en.ALLOW:case en.MASK:case en.MASK_USER_INPUT:case en.MASK_UNLESS_ALLOWLISTED:case en.HIDDEN:case en.IGNORE:return t;default:return e}}function ef(t){if(tF(t)){if("BASE"===t.tagName)return en.ALLOW;if("INPUT"===t.tagName){if("password"===t.type||"email"===t.type||"tel"===t.type||"hidden"===t.type)return en.MASK;let e=t.getAttribute("autocomplete");if(e&&(e.startsWith("cc-")||e.endsWith("-password")))return en.MASK}if(t.matches(ec(en.HIDDEN)))return en.HIDDEN;if(t.matches(ec(en.MASK)))return en.MASK;if(t.matches(ec(en.MASK_UNLESS_ALLOWLISTED)))return en.MASK_UNLESS_ALLOWLISTED;if(t.matches(ec(en.MASK_USER_INPUT)))return en.MASK_USER_INPUT;if(t.matches(ec(en.ALLOW)))return en.ALLOW;if(function(t){if("SCRIPT"===t.nodeName)return!0;
2if("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 r=e("name"),n=e("rel"),i=e("property");return/^msapplication-tile(image|color)$/.test(r)||"application-name"===r||"icon"===n||"apple-touch-icon"===n||"shortcut icon"===n||"keywords"===r||"description"===r||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(r)||"pinterest"===r||"robots"===r||"googlebot"===r||"bingbot"===r||t.hasAttribute("http-equiv")||"author"===r||"generator"===r||"framework"===r||"publisher"===r||"progid"===r||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===r||"yandex-verification"===r||"csrf-token"===r||"p:domain_verify"===r||"verify-v1"===r||"verification"===r||"shopify-checkout-api-token"===r}function e(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t))return en.IGNORE}}function ep(t,e){switch(e){case en.MASK:case en.HIDDEN:case en.IGNORE:return!0;case en.MASK_UNLESS_ALLOWLISTED:if(tj(t))return!!em(t.parentNode)||!ev(t.textContent||"");return em(t);case en.MASK_USER_INPUT:return tj(t)?em(t.parentNode):em(t);default:return!1}}function eh(t,e,r,n,i){if(n!==en.MASK&&n!==en.MASK_UNLESS_ALLOWLISTED||"data-dd-privacy"===e||tQ.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||r&&e.startsWith("data-"))||("IMG"===t||"SOURCE"===t)&&("src"===e||"srcset"===e)}function em(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!!eu[t.tagName]}function eg(t){return t.replace(/\S/g,"x")}function ey(t,e){let r=t.parentElement?.tagName,n=t.textContent||"";return("SCRIPT"===r||e===en.HIDDEN?n="***":ep(t,e)&&("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r||(n="OPTION"===r?"***":eg(n))),"HEAD"!==r||n.trim())?n:""}function ev(t){return!t?.trim()||window.$DD_ALLOW?.has(t.toLocaleLowerCase())||!1}function e_(){let t=window.visualViewport;return Math.round(t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function eb(){let t=window.visualViewport;return Math.round(t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function ew(){return a||(a=new tn.cP(t=>{let{throttled:e}=(0,tC.n)(()=>{t.notify(eE())},200);return(0,tK.q2)(window,tK.gX.RESIZE,e,{capture:!0,passive:!0}).stop})),a}function eE(){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 eS=r(69800),eC=r(52084);let eA=function(t){return t[t.OFF=0]="OFF",t[t.SAMPLED=1]="SAMPLED",t[t.FORCED=2]="FORCED",t}({});function ek(t,e){return(0,eS.d0)()?+!!(0,eS.Ww)(eS.oc.RECORDS):(0,eC.$5)(t.id,(0,eC.it)(e.sessionSampleRate,e.sessionReplaySampleRate))?1:2*!!t.isReplayForced}var eR=r(72613);function eT(t){let e=crypto.getRandomValues(new Uint32Array(2)),r=BigInt(e[0])+(BigInt(e[1])<<32n);return 63===t&&(r&=0x7fffffffffffffffn),r}function eO(t){return t.toString(16).padStart(16,"0")}var ex=r(11947);function eI(t,e,r=!1){return t.some(t=>{try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.lastIndex=0,t.test(e);if("string"==typeof t)return r?e.startsWith(t):t===e}catch(t){D.Vy.error(t)}return!1})}function eN(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function eM(t,e,r,n,i,o){let a=r.findTrackedSession();if(!a)return;let s=t.allowedTracingUrls.find(t=>eI([t.match],e.url,!0));if(!s)return;let u=(0,eC.$5)(a.id,(0,eC.it)(t.sessionSampleRate,t.traceSampleRate)),c=(0,eS.d0)()?(0,eS.Y9)()?.getIsTraceSampled()??u:u;(c||t.traceContextInjection===ts.ALL)&&(e.traceSampled=c,e.traceId=eT(64),e.spanId=eT(63),o(function(t,e,r,n,i,o,a,s){let u={};if(i.forEach(n=>{switch(n){case"datadog":Object.assign(u,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":t.toString()});break;case"tracecontext":Object.assign(u,{traceparent:`00-0000000000000000${eO(t)}-${eO(e)}-0${r?"1":"0"}`,tracestate:`dd=s:${r?"1":"0"};o:rum`});break;case"b3":Object.assign(u,{b3:`${eO(t)}-${eO(e)}-${r?"1":"0"}`});break;case"b3multi":Object.assign(u,{"X-B3-TraceId":eO(t),"X-B3-SpanId":eO(e),"X-B3-Sampled":r?"1":"0"})}}),s.propagateTraceBaggage){let t={"session.id":n},e=o.getContext().id;"string"==typeof e&&(t["user.id"]=e);let r=a.getContext().id;"string"==typeof r&&(t["account.id"]=r);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,n,i,t)))}var eP=r(79134);let eD=32*eP._m;function eL(t,e){return e.allowedGraphQlUrls.find(e=>eI([e.match],t))}let eU=new WeakMap;function e$(){return s||(s="XMLHttpRequest"in F.J?new tn.cP(t=>{let{stop:e}=(0,eR.H7)(XMLHttpRequest.prototype,"open",eV),{stop:r}=(0,eR.H7)(XMLHttpRequest.prototype,"send",e=>{!function({target:t,parameters:[e],handlingStack:r},n){let i=eU.get(t);if(!i)return;i.state="start",i.startClocks=(0,I.M8)(),i.isAborted=!1,i.xhr=t,
2i.handlingStack=r,i.requestBody=e;let o=!1,{stop:a}=(0,eR.H7)(t,"onreadystatechange",()=>{t.readyState===XMLHttpRequest.DONE&&s()}),s=()=>{u(),a(),o||(o=!0,i.duration=(0,I.vk)(i.startClocks.timeStamp,(0,I.nx)()),i.status=t.status,"string"==typeof t.response&&(i.responseBody=t.response),n.notify({...i,state:"complete"}))},{stop:u}=(0,tK.q2)(t,"loadend",s);n.notify(i)}(e,t)},{computeHandlingStack:!0}),{stop:n}=(0,eR.H7)(XMLHttpRequest.prototype,"abort",ej);return()=>{e(),r(),n()}}):new tn.cP),s}function eV({target:t,parameters:[e,r]}){eU.set(t,{state:"open",method:String(e).toUpperCase(),url:(0,z.l2)(String(r))})}function ej({target:t}){let e=eU.get(t);e&&(e.isAborted=!0)}var eF=r(86391),ez=r(81091),eq=r(50161),eG=r(18760),eB=r(3674),eW=r(81494);let eH=220*eP._m;function eK(t,e=eH){let r=(0,eW.M)(Object.prototype),n=(0,eW.M)(Array.prototype);try{let r=[],n=new WeakMap,i=eJ(t,"$",void 0,r,n),o=JSON.stringify(i),a=o?o.length:0;if(a>e)return void eZ(e,"discarded",t);for(;r.length>0&&a<e;){let i=r.shift(),o=0;if(Array.isArray(i.source))for(let s=0;s<i.source.length;s++){let u=eJ(i.source[s],i.path,s,r,n);if(void 0!==u?a+=JSON.stringify(u).length:a+=4,a+=o,o=1,a>e){eZ(e,"truncated",t);break}i.target[s]=u}else for(let s in i.source)if(Object.prototype.hasOwnProperty.call(i.source,s)){let u=eJ(i.source[s],i.path,s,r,n);if(void 0!==u&&(a+=JSON.stringify(u).length+o+s.length+3,o=1),a>e){eZ(e,"truncated",t);break}i.target[s]=u}}return i}finally{r(),n()}}function eJ(t,e,r,n,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){var a;return"bigint"==typeof(a=o)?`[BigInt] ${a.toString()}`:"function"==typeof a?`[Function] ${a.name||"unknown"}`:"symbol"==typeof a?`[Symbol] ${a.description||a.toString()}`:a}let s=function t(e){try{if(e instanceof Event){var r;return{type:(r=e).type,isTrusted:r.isTrusted,currentTarget:r.currentTarget?t(r.currentTarget):null,target:r.target?t(r.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]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;if(i.has(t))return`[Reference seen at ${i.get(t)}]`;let u=void 0!==r?`${e}.${r}`:e,c=Array.isArray(o)?[]:{};return i.set(t,u),n.push({source:o,target:c,path:u}),c}function eZ(t,e,r){D.Vy.warn(`The data provided has been ${e} as it is over the limit of ${t} characters:`,r)}var eX=r(18897);function eY({originalError:t,stackTrace:e,source:r,useFallbackStack:n=!0,nonErrorPrefix:i}){var o,a,s,u;let c=(0,eq.b)(t);return{source:r,type:e?e.name:void 0,message:(o=e,a=c,s=i,u=t,o?.message&&o?.name?o.message:a?"Empty message":s?`${s} ${(0,eW.s)(eK(u))}`:(0,eW.s)(eK(u))),stack:e?(0,eB.Yn)(e):n?eq.e:void 0}}function eQ(t){return t?.stack.map(t=>t.url).filter(t=>!!t)??[]}function e0({stackTrace:t,originalError:e,handlingStack:r,componentStack:n,startClocks:i,nonErrorPrefix:o,useFallbackStack:a=!0,source:s,handling:u}){var c;let l=t??((0,eq.b)(e)?(0,ez.T)(e):void 0),d=(0,eq.b)(e)?function(t){let e=[],r=t.cause;for(;null!=r&&e.length<10;){let t=(0,eq.b)(r),n=t?(0,ez.T)(r):void 0;e.push({originalError:r,stackTrace:n}),r=t?r.cause:void 0}return e}(e):[],f=eY({originalError:e,stackTrace:l,source:s,useFallbackStack:a,nonErrorPrefix:o}),p=d.map(({originalError:t,stackTrace:e})=>eY({originalError:t,stackTrace:e,source:s,useFallbackStack:!1}));return{startClocks:i,handling:u,handlingStack:r,componentStack:n,originalError:e,...f,debugIds:function(t,e){let r=e.flatMap(({stackTrace:t})=>eQ(t));return(0,eX.J)(eQ(t).concat(r))}(l,d),causes:p.length?p:void 0,fingerprint:(c=e,(0,eq.b)(c)&&"dd_fingerprint"in c?String(c.dd_fingerprint):void 0),context:function(t){if((0,P.OE)(t))return t.dd_context}(e)}}function e1(){return new tn.cP(t=>{var e,r;let n=(e,r)=>{let n=e0({stackTrace:r,originalError:e,startClocks:(0,I.M8)(),nonErrorPrefix:"Uncaught",source:eG.gf.SOURCE,handling:"unhandled"});t.notify(n)},{stop:i}=(e=n,(0,eR.H7)(F.J,"onerror",({parameters:[t,r,n,i,o]})=>{let a;(0,eq.b)(o)||(a=(0,ez.h)(t,r,n,i)),e(o??t,a)})),{stop:o}=(r=n,(0,tK.BX)(F.J.window,"unhandledrejection")?(0,eR.H7)(F.J,"onunhandledrejection",({parameters:[t]})=>{r(t.reason||"Empty reason")}):{stop:tC.l});return()=>{i(),o()}})}var e2=r(48867);
2async function e6(t){let e=t.getReader(),r=[];for(;;){let t=await e.read();if(t.done)break;r.push(t.value)}return e.cancel().catch(tC.l),(0,eP.wh)(r)}let e3=function(t){return t[t.IGNORE=0]="IGNORE",t[t.COLLECT=1]="COLLECT",t}({}),e5=[];function e8({responseBodyAction:t}={}){return t&&e5.push(t),u||(u=new tn.cP(t=>{if(!F.J.fetch)return;let{stop:e}=(0,eR.H7)(F.J,"fetch",e=>(function({parameters:t,onPostCall:e,handlingStack:r},n){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,z.l2)(String(i)),c={state:"start",init:o,input:i,method:s,startClocks:(0,I.M8)(),url:u,handlingStack:r,isAbortedOnStart:i instanceof Request&&i.signal?.aborted||o?.signal?.aborted||!1};n.notify(c),t[0]=c.input,t[1]=c.init,e(t=>{e4(n,t,c).catch(K.Dx)})})(e,t),{computeHandlingStack:!0});return e})),u}async function e4(t,e,r){let n;try{n=await e}catch(e){t.notify({...r,state:"resolve",status:0,isAborted:r.init?.signal?.aborted||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e});return}if(r.response=n,r.status=n.status,r.responseType=n.type,r.isAborted=!1,1===e5.reduce((t,e)=>Math.max(t,e(r)),0)){let t=(0,e2.i)(n);if(t?.body)try{let e=await e6(t.body);r.responseBody=new TextDecoder().decode(e)}catch{}}t.notify({...r,state:"resolve"})}let e7={},e9=function(t){return t[t.RUNTIME_ERROR=0]="RUNTIME_ERROR",t[t.FETCH=1]="FETCH",t[t.XHR=2]="XHR",t[t.CONSOLE=3]="CONSOLE",t}({}),rt=1;function re(t){t.requestIndex||(t.requestIndex=rt++)}function rr(t){return"string"==typeof t?(0,eP.WW)(t):t instanceof ArrayBuffer||ArrayBuffer.isView(t)?t.byteLength:"undefined"!=typeof Blob&&t instanceof Blob?t.size:0}function rn(t,e,r){if(void 0===t.openClocks)return;let n=(0,I.vk)(t.openClocks.timeStamp,e.timeStamp);if("in"===r&&void 0===t.firstMessageInOffset?t.firstMessageInOffset=n:"out"===r&&void 0===t.firstMessageOutOffset&&(t.firstMessageOutOffset=n),"in"===r){if(void 0!==t.lastMessageInAt){let r=(0,I.vk)(t.lastMessageInAt,e.timeStamp);r>t.longestInboundSilence&&(t.longestInboundSilence=r)}t.lastMessageInAt=e.timeStamp}}function ri(t){return(0,tl.Et)(t)&&t<0?void 0:t}function ro(t,e,r,n,i,o){let a,s=(0,eF.B)(ra)(t,e,r,n),u=!1,c=(0,tH.wg)((0,K.dm)(()=>p({hadActivity:!1})),100),l=void 0!==o?(0,tH.wg)((0,K.dm)(()=>p({hadActivity:!0,end:(0,I.nx)()})),o):void 0,d=s.subscribe(({isBusy:t})=>{(0,tH.DJ)(c),(0,tH.DJ)(a);let e=(0,I.nx)();t||(a=(0,tH.wg)((0,K.dm)(()=>p({hadActivity:!0,end:e})),100))}),f=()=>{u=!0,(0,tH.DJ)(c),(0,tH.DJ)(a),(0,tH.DJ)(l),d.unsubscribe()};function p(t){u||(f(),i(t))}return{stop:f}}function ra(t,e,r,n){return new tn.cP(i=>{let o,a=[],s=0;return a.push(e.subscribe(t=>{t.every(ru)||u()}),r.subscribe(u),tZ({type:"resource"}).subscribe(t=>{t.some(t=>!rs(n,t.name))&&u()}),t.subscribe(7,t=>{rs(n,t.url)||(void 0===o&&(o=t.requestIndex),s+=1,u())}),t.subscribe(8,t=>{rs(n,t.url)||void 0===o||t.requestIndex<o||(s-=1,u())})),()=>{a.forEach(t=>t.unsubscribe())};function u(){i.notify({isBusy:s>0})}})}function rs(t,e){return eI(t.excludedActivityUrls,e)}function ru(t){let e="characterData"===t.type?t.target.parentElement:t.target;return!!(e&&tF(e)&&e.matches("[data-dd-excluded-activity-mutations], [data-dd-excluded-activity-mutations] *"))}function rc({lifeCycle:t,isChildEvent:e,onChange:r=tC.l}){let n={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 m.ERROR:n.errorCount+=1,r();break;case m.ACTION:n.actionCount+=1,t.action.frustration&&(n.frustrationCount+=t.action.frustration.type.length),r();break;case m.LONG_TASK:n.longTaskCount+=1,r();break;case m.RESOURCE:t._dd?.discarded||(n.resourceCount+=1,r())}});return{stop:()=>{i.unsubscribe()},eventCounts:n}}let rl=5*I.iW;function rd(t){let e=(0,tO.q)({expireDelay:rl}),r=new Map;function n(t){r.delete(t.key),t.eventCounts?.stop()}function i(){r.forEach(t=>{n(t)}),e.reset()}let o=t.subscribe(11,i);return{start:function(i,o,a,s){let u=U(),c=e.add(u,o.relative),l=r.get(i);l&&n(l);let d={id:u,key:i,startClocks:o,data:a,historyEntry:c,eventCounts:s?.isChildEvent?rc({lifeCycle:t,isChildEvent:s.isChildEvent(u)}):void 0};return r.set(i,d),d}
2,stop:function(t,e,i){let o=r.get(t);if(!o)return;let a=i?(0,tf.kg)(o.data,i):o.data;o.historyEntry.close(e.relative);let s=(0,I.vk)(o.startClocks.timeStamp,e.timeStamp),u=o.eventCounts?.eventCounts;return n(o),{...a,id:o.id,startClocks:o.startClocks,duration:s,counts:u}},discard:function(t){let e=r.get(t);if(!e)return;let i=e.eventCounts?.eventCounts;return n(e),e.historyEntry.remove(),{...e.data,id:e.id,startClocks:e.startClocks,counts:i}},getCounts:function(t){return r.get(t)?.eventCounts?.eventCounts},findId:function(t){return e.findAll(t)},stopAll:function(){o.unsubscribe(),i(),e.stop()}}}let rf=["HTML","BODY"],rp=2*eP._m,rh=tQ.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]),rm=I.OY;function rg(t,e){let r=function(t,e){let r=t;for(;r;){if(r.matches(e))return r;r=tW(r)}return null}(t,`[${e}]`);if(r)return rw(rb(r.getAttribute(e).trim()))}let ry=[(t,e,r)=>{if("labels"in t&&t.labels&&t.labels.length>0)return rS(t.labels[0],e,r)},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,r)=>{if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return rS(t,e,r)},(t,e,r)=>rE(t,"aria-label",e,r),(t,e,r)=>{let n=t.getAttribute("aria-labelledby");if(n)return{name:n.split(/\s+/).map(e=>(function(t,e){let r=t.getRootNode();if(r instanceof ShadowRoot){let t=r.getElementById(e);if(t)return t}return t.ownerDocument?t.ownerDocument.getElementById(e):null})(t,e)).filter(t=>!!t).map(t=>rC(t,e,r)).join(" "),nameSource:"text_content"}},(t,e,r)=>rE(t,"alt",e,r),(t,e,r)=>rE(t,"name",e,r),(t,e,r)=>rE(t,"title",e,r),(t,e,r)=>rE(t,"placeholder",e,r),(t,e,r)=>{if("options"in t&&t.options.length>0)return rS(t.options[0],e,r)}],rv=[(t,e,r)=>rS(t,e,r)];function r_(t,e,r,n){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,r,n);if(e){let{name:t,nameSource:r}=e,n=t?.trim();if(n)return{name:rw(rb(n)),nameSource:r}}}if("FORM"===i.nodeName)break;i=tW(i),o+=1}}function rb(t){return t.replace(/\s+/g," ")}function rw(t){return t.length>100?`${j(t,100)} [...]`:t}function rE(t,e,r,n){let{enablePrivacyForActionName:i,defaultPrivacyLevel:o}=r,a=t.getAttribute(e);if(a&&i){var s;let i=el(t,o,n);eh(t.tagName,e,a,i,r)&&(a=ev(s=a)?s:tY||eg(s))}else a||(a="");return{name:a,nameSource:"standard_attribute"}}function rS(t,e,r){return{name:rC(t,e,r)||"",nameSource:"text_content"}}function rC(t,e,r){if(t.isContentEditable)return;let{enablePrivacyForActionName:n,actionNameAttribute:i,defaultPrivacyLevel:o}=e,a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(t){let e=el(t,o,r);if(n&&e&&ep(t,e))return NodeFilter.FILTER_REJECT;if(tF(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(tF(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 rA(){let t=window.getSelection();return!t||t.isCollapsed}function rk(t){return t.target instanceof Element&&!1!==t.isPrimary}function rR(t){if(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: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 rT=10*I.OY,rO=new Map;function rx(t,e){rO.set(t,e),rO.forEach((t,e)=>{(0,I.vk)(e,(0,I.$S)())>rT&&rO.delete(e)})}function rI(t){return e=>e.action?.id?.includes(t)??!1}function rN(t){if(t.composed&&tz(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 rM=r(16417);function rP(t){let e="events"in t,r=ri((0,I.Zj)(t.duration));return{rawRumEvent:{type:m.ACTION,date:t.startClocks.timeStamp,action:{id:t.id,target:{name:t.name},type:t.type,...void 0!==r&&{loading_time:r},...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}}}let rD={intervention:"intervention",cspViolation:"csp_violation"};function rL(t){return{startClocks:(0,I.M8)(),source:eG.gf.REPORT,handling:"unhandled",...t}}function rU(t,e,r,n,i){return r?(0,eB.Yn)({name:t,message:e,stack:[{func:"?",url:r,line:n??void 0,column:i??void 0}]}):void 0}function r$(){if(tX("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 r in e)if((0,tl.Et)(e[r])){let n=e[r];t[r]=0===n?0:(0,I.d6)(n)}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 rV(t){return t.responseStart>=0&&t.responseStart<=(0,I.$S)()?t.responseStart:void 0}let rj=2*I.iW;function rF(t){let e=function(t){let e=t.querySelector("meta[name=dd-trace-id]"),r=t.querySelector("meta[name=dd-trace-time]");return rz(e?.content,r?.content)}(t)||function(t){let e=function(t){for(let e=0;e<t.childNodes.length;e+=1){let r=rq(t.childNodes[e]);if(r)return r}if(t.body)for(let e=t.body.childNodes.length-1;e>=0;e-=1){let r=t.body.childNodes[e],n=rq(r);if(n)return n;if(!tj(r))break}}(t);if(e)return rz(V(e,"trace-id"),V(e,"trace-time"))}(t);if(!(!e||e.traceTime<=(0,I.uc)()-rj))return e.traceId}function rz(t,e){let r=e&&Number(e);if(t&&r)return{traceId:t,traceTime:r}}function rq(t){if(t&&t.nodeType===Node.COMMENT_NODE){let e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}var rG=r(25441);let rB=I.OY;function rW(){let t=[];function e(e){let n;if(!e||e.didTimeout){let t=performance.now();n=()=>30-(performance.now()-t)}else n=e.timeRemaining.bind(e);for(;n()>0&&t.length;)t.shift()();t.length&&r()}function r(){(0,rG.B)(e,{timeout:rB})}return{push(e){1===t.push(e)&&r()},stop(){t.length=0}}}var rH=r(99428);function rK(t,e,r){var n,i;let o=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,r):function(t,e){if("navigation"!==t.initiatorType)return;let r=(0,eF.B)(rF)(document);if(r)return{_dd:{trace_id:r,span_id:eT(63).toString(),rule_psr:e.rulePsr}}}(t,r);if(!r.trackResources&&!o)return;let a=(0,I.FR)(t.startTime),s=function(t){let{duration:e,startTime:r,responseEnd:n}=t;return"navigation"===t.initiatorType||0===e&&r<n?(0,I.vk)(r,n):e}(t),u=function(t,e){let r=e.trackResourceHeaders;if(0===r.length||!t)return;let n=r.filter(e=>void 0===e.url||eI([e.url],t.url,!0));if(0===n.length)return;let i=n.filter(t=>void 0===t.location||"any"===t.location||"response"===t.location),o=n.filter(t=>void 0===t.location||"any"===t.location||"request"===t.location),a=i.length>0?function(t,e){if(t.type===tN.FETCH&&t.response)return rZ(t.response.headers,e);
2if(t.type===tN.XHR&&t.xhr){let r=t.xhr.getAllResponseHeaders();if(r)try{return rZ(new Headers(function(t){let e=[];for(let r of t.trim().split(/\r\n/)){let t=r.indexOf(":");t>0&&e.push([r.substring(0,t).trim(),r.substring(t+1).trim()])}return e}(r)),e)}catch{}}}(t,i):void 0,s=o.length>0?function(t,e){let r;if(t.type===tN.FETCH)return t.init?.headers?r=new Headers(t.init.headers):t.input instanceof Request&&(r=t.input.headers),r?rZ(r,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,r);return{startClocks:a,duration:s,rawRumEvent:(0,tf.kg)({date:a.timeStamp,resource:{id:U(),duration:(0,I.Zj)(s),type:function(t){let e=t.name;if(!(0,z.AY)(e))return tI.OTHER;let r=(0,z.L2)(e);for(let[e,n]of tP)if(n(t.initiatorType,r))return e;return tI.OTHER}(t),method:e?.method,status_code:e?e.status:0===(n=t.responseStatus)?void 0:n,url:e?tV(e.url):t.name,protocol:""===t.nextHopProtocol?void 0:t.nextHopProtocol,delivery_type:""===t.deliveryType?"other":t.deliveryType,graphql:e&&function(t,e){let r=eL(t.url,e);if(r){let e=function(t,e=!1){let r;if("POST"===t.method?r=function(t){if(!t||"string"!=typeof t)return;let e=(0,N.XU)(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&&(r=function(t){let e=(0,z.c$)(t).searchParams,r=e.get("variables"),n=r&&void 0!==(0,N.XU)(r)?r:void 0;return{query:e.get("query")||void 0,operationName:e.get("operationName")||void 0,variables:n,operationType:e.get("operationType")||void 0}}(t.url)),r)return function(t,e){let r,n,i;if(t.query){var o;let i=t.query.trim();o=i,r=o.match(/^\s*(query|mutation|subscription)\b/i)?.[1],e&&(n=j(i,eD,"..."))}if(!r){let e=t.operationType;("query"===e||"mutation"===e||"subscription"===e)&&(r=e)}return t.variables&&(i=t.variables),{operationType:r,operationName:t.operationName,variables:i,payload:n}}(r,e)}(t,r.trackPayload);if(e){if(r.trackResponseErrors&&t.responseBody){let r=function(t){let e=(0,N.XU)(t);if(e&&"object"==typeof e&&(0,td.EI)(e.errors))return e.errors.map(t=>({message:t.message,path:t.path,locations:t.locations,code:t.extensions?.code}))}(t.responseBody);r&&(e.error_count=r.length,e.errors=r)}return e}return}}(e,r),render_blocking_status:t.renderBlockingStatus,...function(t){if(t.startTime<t.responseStart){let{encodedBodySize:e,decodedBodySize:r,transferSize:n}=t;return{size:r,encoded_body_size:e,decoded_body_size:r,transfer_size:n}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(t),...function(t){if(!function(t){var e;let r=tD(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!((e=t).redirectEnd>e.startTime)||tD(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return r&&n}(t))return;let{startTime:e,fetchStart:r,workerStart:n,redirectStart:i,redirectEnd:o,domainLookupStart:a,domainLookupEnd:s,connectStart:u,secureConnectionStart:c,connectEnd:l,requestStart:d,responseStart:f,responseEnd:p}=t,h={download:tL(e,f,p),first_byte:tL(e,d,f)};return 0<n&&n<r&&(h.worker=tL(e,n,r)),r<l&&(h.connect=tL(e,u,l),u<=c&&c<=l&&(h.ssl=tL(e,c,l))),r<s&&(h.dns=tL(e,a,s)),e<o&&(h.redirect=tL(e,i,o)),h}(t)},type:m.RESOURCE,_dd:{discarded:!r.trackResources}},o,function(t){let e=t.contentType;if(e)return{resource:{response:{headers:{"content-type":e}}}}}(t),u),domainContext:{performanceEntry:t,isManual:!1,isAborted:!!(i=e)&&i.isAborted,isWebSocket:!1,handlingStack:i?.handlingStack,requestInit:i?.init,requestInput:i?.input,response:i?.response,error:i?.error,xhr:i?.xhr}}}let rJ=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/;function rZ(t,e){let r={},n=0,i=0,o=!1;return t.forEach((t,a)=>{if(i++,n>=100){o||(D.Vy.warn("Maximum number of headers (100) has been reached. Further headers are dropped."),o=!0);return}let s=a.toLowerCase();if(rJ.test(s))return;let u=e.find(t=>eI([t.name],s));if(!u)return;let{extractor:c}=u,l=c?w(t,c):t;void 0!==l&&(l.length>128&&(D.Vy.warn(`Header "${s}" value was truncated from ${l.length} to 128 characters.`),(0,L.A2)("Resource header value was truncated",{header_name:s,original_length:l.length,limit:128})),r[s]=j(l,128),n++)}),o&&(0,L.A2)("Maximum number of resource headers reached",{collectedHeaderCount:n,totalHeaderCount:i}),n>0?r:void 0}let rX=10*I.iW,rY=10*I.iW;function rQ(t,e=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:tC.l};
2if(tX("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:tC.l}}let r=1/0,{stop:n}=(0,tK.lQ)(e,[tK.gX.PAGE_HIDE,tK.gX.VISIBILITY_CHANGE],t=>{(t.type===tK.gX.PAGE_HIDE||"hidden"===document.visibilityState)&&(r=t.timeStamp,n())},{capture:!0});return{get timeStamp(){return r},stop:n}}let r0=t=>{let e=t.previousRect.width*t.previousRect.height;return e+t.currentRect.width*t.currentRect.height-((t,e)=>{let r=Math.max(t.left,e.left),n=Math.max(t.top,e.top),i=Math.min(t.right,e.right),o=Math.min(t.bottom,e.bottom);return r>=i||n>=o?0:(i-r)*(o-n)})(t.previousRect,t.currentRect)};function r1({x:t,y:e,width:r,height:n}){return{x:t,y:e,width:r,height:n}}let r2=5*I.OY,r6=I.OY,r3=0,r5=1/0,r8=0,r4=()=>l?r3:window.performance.interactionCount||0,r7=+I.iW;function r9(t){return Math.min(t,r7)}let nt=I.OY;function ne(t,e,r){let n={...t};for(let[t,{required:i,type:o}]of Object.entries(e))"string"!==o||nr(n[t])||(n[t]=String(n[t])),i&&nr(n[t])&&D.Vy.warn(`The property ${t} of ${r} is required; context will not be sent to the intake.`);return n}function nr(t){return null==t||""===t}function nn(t="",{propertiesConfig:e={}}={}){let r={},n=new tn.cP,i={getContext:()=>(0,tf.Go)(r),setContext:o=>{!function(t){let e="object"===(0,P.Pw)(t);return e||D.Vy.error("Unsupported context:",t),e}(o)?i.clearContext():r=eK(ne(o,e,t)),n.notify()},setContextProperty:(i,o)=>{r=eK(ne({...r,[i]:o},e,t)),n.notify()},removeContextProperty:i=>{delete r[i],ne(r,e,t),n.notify()},clearContext:()=>{r={},n.notify()},changeObservable:n};return i}var ni=r(87251);let no=5*I.iW,na=5*I.iW;function ns(t){let e=t.indexOf("?");return e<0?t:t.slice(0,e)}function nu(t,e){let r=new Set;for(let n of t)n.startsWith(`${e}.`)&&r.add(n.slice(e.length+1));return r}var nc=r(83929),nl=r(58182),nd=r(99324);let nf=tT.AQ;function np(){return(0,eF.B)(F.J.location)}function nh(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}let nm=tT.AQ,ng=10*I.OY;function ny(){0!==d.batchCount&&((0,L.Gk)(L.Xf.CUSTOMER_DATA_METRIC_NAME,d),nb())}function nv(){return{min:1/0,max:0,sum:0}}function n_(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function nb(){d={batchCount:0,batchBytesCount:nv(),batchMessagesCount:nv()}}let nw=tT.AQ;function nE(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function nS(t){let{startClocks:e,type:r,name:n,description:i,context:o,handlingStack:a}=t,s={id:(t.type===b.DURATION?t.id:void 0)??U(),type:r,name:n,description:i,...r===b.DURATION?{duration:(0,I.Zj)(t.duration)}:{step_type:t.stepType,operation_key:t.operationKey,failure_reason:t.failureReason}};return{rawRumEvent:{date:e.timeStamp,vital:s,type:m.VITAL,context:o},startClocks:e,duration:r===b.DURATION?t.duration:void 0,domainContext:a?{handlingStack:a}:{}}}async function nC(t,e){let r=`dd_cookie_test_${U()}`,n="test",i=t(r,e);try{return await i.getAllAndSet(()=>({value:n,expireDelay:I.iW})),(await i.getAll()).includes(n)}catch(t){return D.Vy.error(t),!1}finally{try{await i.delete()}catch{}}}function nA(t,e){let r=(0,eF.B)(F.J.cookieStore),n=new tn.cP(()=>(0,tK.q2)(r,"change",e=>{(e.changed.some(e=>e.name===t)||e.deleted.some(e=>e.name===t))&&n.notify()}).stop);return{getAll:async()=>(await r.getAll(t)).map(t=>t.value),delete:()=>r.delete({name:t,domain:e.domain,path:"/",partitioned:e.partitioned}),async getAllAndSet(n){let i=await r.getAll(t),{value:o,expireDelay:a}=n(i.map(t=>t.value));try{await r.set({name:t,value:o,expires:(0,I.x3)()+a,path:"/",sameSite:e.crossSite?"none":"strict",domain:e.domain,secure:e.secure,partitioned:e.partitioned})}catch(r){if(!t.startsWith("dd_cookie_test_")){let n=B(t);(0,L.A2)("Failed to set cookie using Cookie Store API",{"error.message":r.message,newValue:o,cookieOptions:{...e},cookies:i.map(t=>({...t})),cookieCount:i.length,documentCookies:n})}}},observable:n}}let nk=I.OY;function nR(t,e){let r=B(t),n=new tn.cP(()=>{let e=(0,tH.yb)(()=>{i(B(t))},nk);return()=>{(0,tH.vG)(e)}});function i(t){String(t)!==String(r)&&(r=t,n.notify())}return{getAll:()=>Promise.resolve(B(t)),async getAllAndSet(r){let{value:n,expireDelay:o}=r(B(t));q(t,n,o,e),await Promise.resolve(),i([n])},async delete(){q(t,"",0,e),await Promise.resolve(),i([])},observable:n}}function nT(){let t=(0,eF.B)(F.J.cookieStore);return!!(t&&(0,tK.BX)(t,"change"))}let nO=I.OY;function nx(t,e){let r=G(t),n=(0,tH.yb)(()=>{let n=G(t);n!==r&&(r=n,e(n))},nO);return()=>{(0,tH.vG)(n)}}let nI="datadog-synthetics-",nN=`${nI}public-id`,nM=`${nI}result-id`,nP=`${nI}injects-rum`,nD=`${nI}rum-context`;function nL(){return!F.W&&!!(F.J._DATADOG_SYNTHETICS_INJECTS_RUM||W(nP))}function nU(){var t;let e=function(){let t=F.J._DATADOG_SYNTHETICS_RUM_CONTEXT;if(t)return t;let e=W(nD);return e?(0,N.XU)(decodeURIComponent(e)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||W(nN),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||W(nM)}}();return"object"==typeof(t=e)&&null!==t&&"string"==typeof t.test_id&&"string"==typeof t.result_id?e:void 0}function n$(t){return"object"===(0,P.Pw)(t)}function nV(t,e,r=3e3){let n=0,i=!1;return{isLimitReached(){if(0===n&&(0,tH.wg)(()=>{n=0},I.iW),(n+=1)<=r||i)return i=!1,!1;if(n===r+1){i=!0;try{e(`Reached max number of ${t}s by minute: ${r}`)}finally{i=!1}}return!0}}}var nj=r(33661);let nF={"view.name":"string","view.url":"string","view.referrer":"string",context:"object",service:"string",version:"string"},nz={[m.VIEW]:{...nF,"view.performance.lcp.resource_url":"string"},[m.ERROR]:{...nF,"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string","_dd.debug_ids":"array"},[m.RESOURCE]:{...nF,"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object","resource.websocket.close_reason":"string","resource.websocket.protocol":"string"},[m.ACTION]:{...nF,"action.target.name":"string"},[m.LONG_TASK]:{...nF,"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string","_dd.debug_ids":"array"},[m.VITAL]:nF};var nq=r(62009);let nG=[m.ACTION,m.ERROR,m.LONG_TASK,m.RESOURCE,m.VITAL],nB="_dd_tab_id",nW=[];function nH(t,e,r){var n,i;if("undefined"==typeof window||"undefined"==typeof localStorage)return;let o=(n=e,i=r,`_dd_c_${n}_${i}`);nW.push((0,tK.q2)(window,"storage",({key:e})=>{o===e&&t.setContext(s())})),t.changeObservable.subscribe(function(){localStorage.setItem(o,JSON.stringify(t.getContext()))});let a=(0,tf.kg)(s(),t.getContext());function s(){let t=localStorage.getItem(o);return t?(0,N.XU)(t)??{}:{}}(0,N.RI)(a)||t.setContext(a)}function nK(){return nn("global context")}function nJ(){return nn("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function nZ(){return nn("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function nX(t,e,r,n,i,o,a,s,u,h){let w=[],E=new tk;E.subscribe(14,t=>(0,nc.b)("rum",t)),e.expireObservable.subscribe(()=>E.notify(10)),e.renewObservable.subscribe(()=>E.notify(11));let S=t=>{E.notify(15,{error:{message:t,source:eG.gf.AGENT,startClocks:(0,I.M8)()}}),(0,L.A2)("Error reported to customer",{"error.message":t})};if((0,eS.d0)()){var C;let t=(0,eS.Y9)();E.subscribe(14,e=>{t.send("rum",e)});let e=(0,ni._T)().subscribe(t=>{E.notify(12,t.reason)});w.push(()=>e.unsubscribe())}else{let r=function(t,e,r,n,i){let o=[(0,J.ns)(t,"rum")],a=(0,J.np)(t,"rum");a&&o.push(a);let s=(0,nl.X)({encoder:i(nd.j.RUM),endpoints:o,reportError:r});n.subscribe(()=>s.forceFlush("session_expire"));let{dispatch:u,stop:c}=function(t,e){let r,n,i=!1,o=0,{unsubscribe:a}=t.flushObservable.subscribe(()=>{i=!1,n=r});return{dispatch:a=>
2{if(a.type!==m.VIEW)return void t.add(a);if(!e)return void t.upsert(a,a.view.id);let s=a.view.id;if(!a.view.is_active){s===r?.view.id&&(r=void 0,n=void 0,i=!1,o=0),t.upsert(a,s);return}if(s!==r?.view.id){o=0,t.upsert(a,s),r=a,i=!t.isEmpty;return}if(r=a,i)return void t.upsert(a,s);if((o+=1)>=100){o=0,t.upsert(a,s),i=!t.isEmpty;return}if(n){let e=function(t,e){let r=function t(e,r,n){let i={},o=n?.replaceKeys??new Set,a=n?.appendKeys??new Set,s=n?.ignoreKeys??new Set;for(let n of Object.keys(e)){if(s.has(n))continue;let u=e[n],c=r[n];if(!o.has(n)&&(0,P.OE)(u)&&(0,P.OE)(c)){let e=t(u,c,{replaceKeys:nu(o,n),appendKeys:nu(a,n),ignoreKeys:nu(s,n)});e&&(i[n]=e)}else a.has(n)&&Array.isArray(u)&&Array.isArray(c)?u.length>c.length&&(i[n]=u.slice(c.length)):!function t(e,r){if(e===r)return!0;if(null===e||"object"!=typeof e||null===r||"object"!=typeof r)return e===r;if(Array.isArray(e)&&Array.isArray(r))return e.length===r.length&&e.every((e,n)=>t(e,r[n]));if(Array.isArray(e)||Array.isArray(r))return!1;let n=Object.keys(e),i=Object.keys(r);return n.length===i.length&&n.every(n=>i.includes(n)&&t(e[n],r[n]))}(u,c)&&(i[n]=u)}for(let t of Object.keys(r))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(r)return(0,tf.kg)(r,{type:m.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,n);e&&((0,nc.b)("rum",e),t.upsert(e,s))}},stop:a}}(s,t.betaEnableViewUpdates);e.subscribe(14,u);let l=s.stop.bind(s);return s.stop=()=>{c(),l()},s}(t,E,S,e.expireObservable,o),n=r.prepareUrgentFlushObservable.subscribe(t=>{E.notify(12,t)});w.push(()=>n.unsubscribe()),w.push(()=>r.stop()),C=r.flushObservable,s.metricsEnabled&&(nb(),f=!1,E.subscribe(14,()=>{f=!0}),C.subscribe(({bytesCount:t,messagesCount:e})=>{f&&(f=!1,d.batchCount+=1,n_(d.batchBytesCount,t),n_(d.batchMessagesCount,e))}),(0,tH.yb)(ny,ng))}let{stop:A,...k}=function(t,e,r,n,i,o,a,s,u){var d,f,h;let w,E=[],S=function(){let t=tA();return new tn.cP(e=>{let r=new t((0,K.dm)(t=>e.notify(t)));return r.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>r.disconnect()})}(),C=(w=(0,N.yG)(np()),new tn.cP(t=>{var e;let{stop:r}=function(t){let{stop:e}=(0,eR.H7)(nh("pushState"),"pushState",({onPostCall:e})=>{e(t)}),{stop:r}=(0,eR.H7)(nh("replaceState"),"replaceState",({onPostCall:e})=>{e(t)}),{stop:n}=(0,tK.q2)(window,tK.gX.POP_STATE,t);return{stop:()=>{e(),r(),n()}}}(i),{stop:n}=(e=i,(0,tK.q2)(window,tK.gX.HASH_CHANGE,e));function i(){if(w.href===np().href)return;let e=(0,N.yG)(np());t.notify({newLocation:e,oldLocation:w}),w=e}return()=>{r(),n()}})),{observable:A,stop:k}=function(){let t=new tn.cP,{stop:e}=(0,eR.H7)(window,"open",()=>t.notify());return{observable:t,stop:e}}();E.push(k);let{assemble:R}=e;R.register(({eventType:t})=>{let e=r.source;return{type:t,_dd:{format_version:2,drift:(0,I._O)(),configuration:{session_sample_rate:(0,tl.LI)(r.sessionSampleRate,3),session_replay_sample_rate:(0,tl.LI)(r.sessionReplaySampleRate,3),profiling_sample_rate:(0,tl.LI)(r.profilingSampleRate,3),trace_sample_rate:(0,tl.LI)(r.traceSampleRate,3)},browser_sdk_version:(0,eS.d0)()?"7.7.0":void 0,sdk_name:s},application:{id:r.applicationId},date:(0,I.nx)(),source:e}});let T=function(t,e=500){let r,n=(0,tO.q)({expireDelay:nw,maxEntries:4e3});tX("visibility-state")&&performance.getEntriesByType("visibility-state").forEach(t=>{o("hidden"===t.name?"hidden":"active",t.startTime)}),o(nE(),(0,I.$S)());let{stop:i}=(0,tK.lQ)(window,[tK.gX.PAGE_SHOW,tK.gX.FOCUS,tK.gX.BLUR,tK.gX.VISIBILITY_CHANGE,tK.gX.RESUME,tK.gX.FREEZE,tK.gX.PAGE_HIDE],t=>{var e;o((e=t).type===tK.gX.FREEZE?"frozen":e.type===tK.gX.PAGE_HIDE?e.persisted?"frozen":"terminated":nE(),t.timeStamp)},{capture:!0});function o(t,e=(0,I.$S)()){t!==r&&(r=t,n.closeActive(e),n.add({state:r,startTime:e},e))}function a(t,e,r){return n.findAll(e,r).some(e=>e.state===t)}return t.register(({startTime:t,duration:r=0,eventType:i})=>i===m.VIEW?{type:i,_dd:{page_states:function(t,e,r){if(0!==t.length)return t.slice(-r).reverse().map(({state:t,startTime:r})=>({state:t,start:(0,I.Zj)((0,I.vk)(e,r))}))}(n.findAll(t,r),t,e)}}:i===m.ACTION||i===m.ERROR?{type:i,view:{in_foreground:a("active",t,0)}}:rM.$O),{wasInPageStateDuringPeriod:a,addPageState:o,stop:()=>{i(),n.stop()}}}(R);E.push(()=>T.stop());let O=function(t){let e=(0,tO.q)({expireDelay:tx});return t.subscribe(1,t=>{var r;e.add({service:(r=t).service,version:r.version,context:r.context,id:r.id,name:r.name,startClocks:r.startClocks},t.startClocks.relative)}),t.subscribe(6,({endClocks:t})=>{e.closeActive(t.relative)}),t.subscribe(3,t=>{let r=e.find(t.startClocks.relative);r&&(t.name&&(r.name=t.name),t.context&&(r.context=t.context),r.sessionIsActive=t.sessionIsActive)}),t.subscribe(11,()=>{e.reset()}),{findView:(t,r)=>e.find(t,r),stop:()=>{e.stop()}}}(t);E.push(()=>O.stop());let x=function(t,e,r){let n,i=(0,tO.q)({expireDelay:nf});t.subscribe(1,({startClocks:t,url:e})=>{let r=(0,eF.B)(F.J.location).href,o=void 0!==e?(0,z.c$)(e,r).href:r;i.add(a({url:o,referrer:n||document.referrer}),t.relative),n=o}),t.subscribe(6,({endClocks:t})=>{i.closeActive(t.relative)});let o=r.subscribe(({newLocation:t})=>{let e=i.find();if(e){let r=(0,I.$S)();i.closeActive(r),i.add(a({url:t.href,referrer:e.referrer}),r)}});function a({url:t,referrer:e}){return{url:t,referrer:e}}return e.register(({startTime:t,eventType:e})=>{let r=i.find(t);return r?{type:e,view:{url:r.url,referrer:r.referrer}}:rM.ug}),{findUrl:t=>i.find(t),stop:()=>{o.unsubscribe(),i.stop()}}}(t,R,C);E.push(()=>x.stop());let M=function(t,e,r){let n=(0,tO.q)({expireDelay:nm});return t.subscribe(1,({startClocks:t})=>{n.add({},t.relative)}),t.subscribe(6,({endClocks:t})=>{n.closeActive(t.relative)}),e.register(({startTime:t,eventType:e})=>
2{if(!r.trackFeatureFlagsForEvents.concat([m.VIEW,m.ERROR]).includes(e))return rM.$O;let i=n.find(t);return!i||(0,N.RI)(i)?rM.$O:{type:e,feature_flags:i}}),{addFeatureFlagEvaluation:(t,e)=>{let r=n.find();r&&(r[t]=e)}}}(t,R,r);R.register(({eventType:t,startTime:e})=>{let o,a,s,u=n.findTrackedSession(e),c=O.findView(e);return u&&c?(t===m.VIEW?(o=!!i.getReplayStats(c.id)||void 0,a=1===ek(u,r),s=!!c.sessionIsActive&&void 0):o=!!i.isRecording()||void 0,{type:t,session:{id:u.id,type:"user",has_replay:o,sampled_for_replay:a,is_active:s}}):rM.ug}),R.register(({eventType:t})=>({type:t,connectivity:(0,nq.q)()}));let L=(p||(p=function(){try{let t=sessionStorage.getItem(nB);if(t)return t;let e=U();return sessionStorage.setItem(nB,e),e}catch{return}}()??U()),p);R.register(()=>({tab:{id:L}}));let $=function(t,e,r,n){let i=nK();return e.storeContextsAcrossPages&&nH(i,"rum",2),t.register(()=>{let t=i.getContext();return n?{context:t}:t}),i}(R,r,0,!0),V=function(t,e,r,n){let i=nJ();return e.storeContextsAcrossPages&&nH(i,"rum",1),t.register(({eventType:t,startTime:n})=>{let o=i.getContext(),a=r.findTrackedSession(n);return(a?.anonymousId&&!o.anonymous_id&&e.trackAnonymousUser&&(o.anonymous_id=a.anonymousId),(0,N.RI)(o))?rM.$O:{type:t,usr:o}}),i}(R,r,n,0),q=function(t,e,r){let n=nZ();return e.storeContextsAcrossPages&&nH(n,"rum",4),t.register(()=>{let t=n.getContext();return(0,N.RI)(t)||!t.id?rM.$O:{account:t}}),n}(R,r,0),G=function(t,e,r,n,i){let o,{unsubscribe:a}=t.subscribe(0,e=>{t.notify(13,rP(e))}),s=tC.l;i.trackUserInteractions&&(o=function(t,e,r,n){let i,o=rd(t),a=new tn.cP;t.subscribe(5,c),t.subscribe(12,c);let{stop:s}=function({onPointerDown:t,onPointerUp:e}){let r,n,i={selection:!1,input:!1,scroll:!1},o=[(0,tK.q2)(window,tK.gX.POINTER_DOWN,e=>{rk(e)&&(r=rA(),i={selection:!1,input:!1,scroll:!1},n=t(e))},{capture:!0}),(0,tK.q2)(window,tK.gX.SELECTION_CHANGE,()=>{r&&rA()||(i.selection=!0)},{capture:!0}),(0,tK.q2)(window,tK.gX.SCROLL,()=>{i.scroll=!0},{capture:!0,passive:!0}),(0,tK.q2)(window,tK.gX.POINTER_UP,t=>{if(rk(t)&&n){let r=i;e(n,t,()=>r),n=void 0}},{capture:!0}),(0,tK.q2)(window,tK.gX.INPUT,()=>{i.input=!0},{capture:!0})];return{stop:()=>{o.forEach(t=>t.stop())}}}({onPointerDown:i=>(function(t,e,r,n,i){let o;if((o=t.enablePrivacyForActionName?el(rN(n),t.defaultPrivacyLevel):en.ALLOW)===en.HIDDEN)return;let a=function(t,e,r){let n=rN(t),i=n.getBoundingClientRect(),o=t2(n,r.actionNameAttribute),a=function(t,e){let r=t.filter(t=>t instanceof Element&&!rf.includes(t.tagName));if(0===r.length)return"";let n=e?[e].concat(rh):rh,i="";for(let t of r)if((i+=function(t,e){let r=t5(t),n=t3(t),i=Array.from(t.classList).filter(t=>!t6(t)).sort().map(t=>`.${CSS.escape(t)}`).join(""),o=function(t,e){let r=[];for(let n of Array.from(t.attributes))e.includes(n.name)&&r.push(t4(n.name,n.value));return r.sort().join("")}(t,e),a=function(t){let e=Array.from(t.parentNode.children);if(e.length<=1)return"";let r=e.filter(e=>e.tagName===t.tagName),n=e.indexOf(t),i=t7(t);return`:nth-child(${n+1})${r.length>1?`:nth-of-type(${i})`:""}`}(t);return`${r}${n||""}${o}${i}${a};`}(t,n)).length>=rp)return j(i,rp);return i}(t.composedPath(),r.actionNameAttribute);o&&rx(t.timeStamp,o);let{name:s,nameSource:u}=function(t,e,r=en.ALLOW){let n=new Map,{actionNameAttribute:i}=e,o=rg(t,"data-dd-action-name")||i&&rg(t,i);return o?{name:o,nameSource:"custom_attribute"}:r===en.MASK?{name:tY,nameSource:"mask_placeholder"}:r_(t,ry,e,n)||r_(t,rv,e,n)||{name:"",nameSource:"blank"}}(n,r,e);return{type:v.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}}(n,o,t),s=!1;return ro(e,r,i,t,t=>{s=t.hadActivity},100),{clickActionBase:a,hadActivityOnPointerDown:()=>s}})(n,t,e,i,r),onPointerUp:({clickActionBase:i,hadActivityOnPointerDown:s},c,l)=>{!function(t,e,r,n,i,o,a,s,u,c,l){let d=function t(e,r,n,i,o){let a,s=U(),u=(0,I.FR)(o.timeStamp),c=r.start(s,u,i,{isChildEvent:rI});e.notify(16,c);let l=0,d=[],f=new tn.cP;function p(t){0===l&&(l=1,a=t?r.stop(s,(0,I.jR)(t)):r.discard(s),f.notify())}return{event:o,stop:p,stopObservable:f,get hasError(){let t=a?.counts??r.getCounts(s);return!!t&&t.errorCount>0},get hasPageActivity(){return a&&"duration"in a},getUserActivity:n,addFrustration:t=>{d.push(t)},get startClocks(){return u},isStopped:()=>1===l||2===l,clone:()=>t(e,r,n,i,o),validate:t=>{if(p(),1!==l||!a)return;let r={frustrationTypes:d,events:t??[o],event:o,...a,counts:a.counts};e.notify(0,r),l=2},discard:()=>{p(),l=2}}}(e,i,c,s,u);a(d);let f=s?.target?.selector;f&&rx(u.timeStamp,f);let{stop:p}=ro(e,r,n,t,t=>{t.hadActivity&&t.end<d.startClocks.timeStamp?d.discard():t.hadActivity?d.stop(t.end):l()?d.stop(d.startClocks.timeStamp):d.stop()},rT),h=e.subscribe(5,({endClocks:t})=>{d.stop(t.timeStamp)}),m=e.subscribe(12,()=>{d.stop((0,I.nx)())}),g=o.subscribe(()=>{d.stop()});d.stopObservable.subscribe(()=>{m.unsubscribe(),h.unsubscribe(),p(),g.unsubscribe()})}(n,t,e,r,o,a,u,i,c,l,s)}});return{stop:()=>{c(),a.notify(),s(),o.stopAll()},findActionId:o.findId};function u(t){if(!i?.tryAppend(t)){let e=t.clone();i=function(t,e){let r,n=[],i=0;function o(t){t.stopObservable.subscribe(a),n.push(t),(0,tH.DJ)(r),r=(0,tH.wg)(s,rm)}function a(){1===i&&n.every(t=>t.isStopped())&&(i=2,e(n))}function s(){(0,tH.DJ)(r),0===i&&(i=1,a())}return o(t),{tryAppend:t=>{var e,r,a,u;return 0===i&&(!(n.length>0)||(e=n[n.length-1].event,r=t.event,e.target===r.target&&100>=(a=e,u=r,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2)))&&e.timeStamp-r.timeStamp<=rm)?(o(t),!0):(s(),!1))},stop:()=>{s()}}}(t,t=>{(function(t,e){let{isRage:r}=function(t,e){if(function(t){if(t.some(t=>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<=I.OY)return!0;return!1}(t))return e.addFrustration(_.RAGE_CLICK),t.some(rR)&&e.addFrustration(_.DEAD_CLICK),e.hasError&&e.addFrustration(_.ERROR_CLICK),{isRage:!0};let r=t.some(t=>t.getUserActivity().selection);return t.forEach(t=>{t.hasError&&t.addFrustration(_.ERROR_CLICK),rR(t)&&!r&&t.addFrustration(_.DEAD_CLICK)}),{isRage:!1}}(t,e);r?(t.forEach(t=>t.discard()),e.stop((0,I.nx)()),e.validate(t.map(t=>t.event))):(e.discard(),t.forEach(t=>t.validate()))})(t,e),i=void 0})}}function c(){i&&i.stop()}}(t,r,n,i));let u=function(t,e){let r=rd(t);return{addAction:function(t){e({id:U(),frustrationTypes:[],...t})},startAction:function(e,n={},i=(0,I.M8)()){let o=n.actionKey??e,a=r.start(o,i,{name:e,...n},{isChildEvent:rI});t.notify(16,a)},stopAction:function(t,n={},i=(0,I.M8)()){let o=n.actionKey??t,a=r.stop(o,i,n);if(!a)return;let s=[];a.counts&&a.counts.errorCount>0&&s.push(_.ERROR_CLICK),e({...a,type:a.type||v.CUSTOM,frustrationTypes:s})},findActionId:r.findId,stop:r.stopAll}}(t,e=>{t.notify(13,rP(e))}),c={findActionId:t=>{let e=u.findActionId(t),r=o?.findActionId(t)??[];return e.concat(r)}};return e.assemble.register(({startTime:t,eventType:e})=>
2{if(e!==m.ERROR&&e!==m.RESOURCE&&e!==m.LONG_TASK)return rM.$O;let r=e===m.LONG_TASK?(0,I.Gw)(t,1):t,n=c.findActionId(r);return n.length?{type:e,action:{id:n}}:rM.$O}),e.assembleTelemetry.register(({startTime:t})=>({action:{id:c.findActionId(t)}})),{addAction:u.addAction,startAction:u.startAction,stopAction:u.stopAction,actionContexts:c,stop:()=>{a(),s(),u.stop(),o?.stop()}}}(t,e,S,A,r);E.push(G.stop);let B={addEvent:(e,r,n,i)=>{nG.includes(r.type)&&t.notify(13,{startClocks:(0,I.FR)(e),rawRumEvent:r,domainContext:n,duration:i})}},H=function(t){let e,r=requestAnimationFrame((0,K.dm)(()=>{e=eE()})),n=ew().subscribe(t=>{e=t}).unsubscribe;return t.register(({eventType:t})=>({type:t,display:e?{viewport:e}:void 0})),{stop:()=>{n(),r&&cancelAnimationFrame(r)}}}(R);E.push(H.stop);let J=function(t,e=function(t){let e=nT()?(t,e)=>(0,tK.q2)(F.J.cookieStore,tK.gX.CHANGE,r=>{let n=r.changed.find(e=>e.name===t)||r.deleted.find(e=>e.name===t);n&&e(n.value)}).stop:nx;return new tn.cP(r=>e(t,t=>r.notify(t)))}("datadog-ci-visibility-test-execution-id")){let r=W("datadog-ci-visibility-test-execution-id")||function(){let t=window.Cypress;if(t)try{return t.env("traceId")}catch{D.Vy.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}}(),n=e.subscribe(t=>{r=t});return t.register(({eventType:t})=>"string"!=typeof r?rM.$O:{type:t,session:{type:"ci_test"},ci_test:{test_execution_id:r}}),{stop:()=>{n.unsubscribe()}}}(R);E.push(J.stop),R.register(({eventType:t})=>nU()?{type:t,session:{type:"synthetics"},synthetics:{...nU(),injected:nL()}}:rM.$O);let Z={[m.ERROR]:nV(m.ERROR,u,void 0),[m.ACTION]:nV(m.ACTION,u,h),[m.VITAL]:nV(m.VITAL,u,h)};t.subscribe(13,({startClocks:e,duration:n,rawRumEvent:i,domainContext:o})=>{let a=R.trigger({eventType:i.type,rawRumEvent:i,domainContext:o,startTime:e.relative,duration:n});if(a===rM.ug)return;let s=(0,tf.kg)(a,i,{ddtags:(0,nj.m5)(r).join(",")});(function(t,e,r,n){if(e){let n=function(t,e,r){let n=(0,tf.Go)(t),i=r(n);return(0,ex.WP)(e).forEach(([e,r])=>(function t(e,r,n,i){let[o,...a]=n;if("[]"===o){Array.isArray(e)&&Array.isArray(r)&&e.forEach((e,n)=>t(e,r[n],a,i));return}if(n$(e)&&n$(r)){if(a.length>0)return t(e[o],r[o],a,i);!function(t,e,r,n){if(t[e]===r)return;let i=(0,P.Pw)(r);i===n?t[e]=eK(r):"object"===n&&("undefined"===i||"null"===i)?t[e]={}:"array"===n&&("undefined"===i||"null"===i)&&(t[e]=[])}(e,o,r[o],i)}})(t,n,e.split(/\.|(?=\[\])/),r)),i}(t,nz[t.type],t=>e(t,r));if(!1===n&&t.type!==m.VIEW)return!1;!1===n&&D.Vy.warn("Can't dismiss view events using beforeSend!")}return!n[t.type]?.isLimitReached()})(s,r.beforeSend,o,Z)&&((0,N.RI)(s.context)&&delete s.context,t.notify(14,s))});let{addTiming:X,setLoadingTime:Y,startView:Q,setViewName:tt,setViewContext:te,setViewContextProperty:tr,getViewContext:ti,stop:to}=(t.subscribe(4,e=>t.notify(13,function(t,e,r){let n=r.getReplayStats(t.id),i=t.commonViewMetrics?.cumulativeLayoutShift?.devicePixelRatio,o={_dd:{document_version:t.documentVersion,replay_stats:n,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:m.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:t.commonViewMetrics.cumulativeLayoutShift?.value,cumulative_layout_shift_time:(0,I.Zj)(t.commonViewMetrics.cumulativeLayoutShift?.time),cumulative_layout_shift_target_selector:t.commonViewMetrics.cumulativeLayoutShift?.targetSelector,first_byte:(0,I.Zj)(t.initialViewMetrics.navigationTimings?.firstByte),dom_complete:(0,I.Zj)(t.initialViewMetrics.navigationTimings?.domComplete),dom_content_loaded:(0,I.Zj)(t.initialViewMetrics.navigationTimings?.domContentLoaded),dom_interactive:(0,I.Zj)(t.initialViewMetrics.navigationTimings?.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:(0,I.Zj)(t.initialViewMetrics.firstContentfulPaint),interaction_to_next_paint:(0,I.Zj)(t.commonViewMetrics.interactionToNextPaint?.value),interaction_to_next_paint_time:(0,I.Zj)(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,I.Zj)(t.initialViewMetrics.largestContentfulPaint?.value),largest_contentful_paint_target_selector:t.initialViewMetrics.largestContentfulPaint?.targetSelector,load_event:(0,I.Zj)(t.initialViewMetrics.navigationTimings?.loadEvent),loading_time:ri((0,I.Zj)(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:t,interactionToNextPaint:e},{firstContentfulPaint:r,largestContentfulPaint:n}){return{cls:t&&{score:t.value,timestamp:(0,I.Zj)(t.time),target_selector:t.targetSelector,previous_rect:t.previousRect,current_rect:t.currentRect},fcp:r&&{timestamp:(0,I.Zj)(r)},inp:e&&{duration:(0,I.Zj)(e.value),timestamp:(0,I.Zj)(e.time),target_selector:e.targetSelector,sub_parts:e.subParts?{input_delay:(0,I.Zj)(e.subParts.inputDelay),processing_duration:(0,I.Zj)(e.subParts.processingDuration),presentation_delay:(0,I.Zj)(e.subParts.presentationDelay)}:void 0},lcp:n&&{timestamp:(0,I.Zj)(n.value),target_selector:n.targetSelector,resource_url:n.resourceUrl,sub_parts:n.subParts?{load_delay:(0,I.Zj)(n.subParts.loadDelay),load_time:(0,I.Zj)(n.subParts.loadTime),render_delay:(0,I.Zj)(n.subParts.renderDelay)}:void 0}}}(t.commonViewMetrics,t.initialViewMetrics),resource:{count:t.eventCounts.resourceCount},time_spent:(0,I.Zj)(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,I.Zj)(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,N.RI)(t.customTimings)||(o.view.custom_timings=(0,N.LG)(t.customTimings,I.Zj)),{rawRumEvent:o,startClocks:t.startClocks,duration:t.duration,domainContext:{location:t.location,handlingStack:t.handlingStack}}}(e,r,i))),e.assemble.register(({startTime:t,eventType:e})=>{let r=O.findView(t);return r?{type:e,service:r.service,version:r.version,context:r.context,view:{id:r.id,name:r.name}}:rM.ug}),e.assembleTelemetry.register(({startTime:t})=>({view:{id:O.findView(t)?.id}})),function(t,e,r,n,i,o,a){let s,u,c=new Set,d=f(y.INITIAL_LOAD,(0,I.Oc)(),a);function f(i,o,a){let s=function(t,e,r,n,i,o=(0,I.M8)(),a){var s;let u,c=U(),d=new tn.cP,f={},p=0,h=(0,N.yG)((0,eF.B)(window.location)),m=nn(),g=!0,v=a?.name,_=a?.service||n.service,b=a?.version||n.version,w=a?.context,E=a?.handlingStack;w&&m.setContext(w);let S={id:c,name:v,startClocks:o,service:_,version:b,context:w,url:a?.url};t.notify(1,S),t.notify(2,S);let{throttled:C,cancel:A}=(0,tC.n)(G,3e3,{leading:!1}),{setLoadEvent:k,setViewEnd:R,stop:T,stopINPTracking:O,getCommonViewMetrics:x,setLoa
2dingTime:M}=function(t,e,r,n,i,o,a){let s={},u=!1,c=!1,{stop:d,setLoadEvent:f}=function(t,e,r,n,i,o,a){let s=i===y.INITIAL_LOAD,u=!0,c=[],l=rQ(o);function d(){if(!u&&!s&&c.length>0){let t=Math.max(...c);t<l.timeStamp-o.relative&&a(t)}}let{stop:f}=ro(t,e,r,n,t=>{u&&(u=!1,t.hadActivity&&c.push((0,I.vk)(o.timeStamp,t.end)),d())});return{stop:()=>{f(),l.stop()},setLoadEvent:t=>{s&&(s=!1,c.push(t),d())}}}(t,e,r,n,o,a,t=>{u||(s.loadingTime=t,i())}),{stop:p}=function(t,e,r=function(t=nt){return new tn.cP(e=>{let r=(0,tC.n)(function(){e.notify(function(){let t=eb(),{height:e}=eE();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}}())},t,{leading:!1,trailing:!0}),n=document.scrollingElement||document.documentElement,i=new ResizeObserver((0,K.dm)(r.throttled));n&&i.observe(n);let o=(0,tK.q2)(window,tK.gX.SCROLL,r.throttled,{passive:!0});return()=>{r.cancel(),i.disconnect(),o.stop()}})}()){let n=0,i=0,o=0,a=r.subscribe(({scrollDepth:r,scrollTop:a,scrollHeight:s})=>{let u=!1;if(r>n&&(n=r,u=!0),s>i){i=s;let e=(0,I.$S)();o=(0,I.vk)(t.relative,e),u=!0}u&&e({maxDepth:Math.min(n,i),maxDepthScrollTop:a,maxScrollHeight:i,maxScrollHeightTime:o})});return{stop:()=>a.unsubscribe()}}(a,t=>{s.scroll=t}),{stop:h}=function(t,e,r){let n,i,o,a,s;if(!(tX("layout-shift")&&"WeakRef"in window))return{stop:tC.l};let u=0;r({value:0});let c=(a=0,s=0,{update:t=>{let e;return void 0===i||t.startTime-o>=r6||t.startTime-i>=r2?(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 r of t)if(r.node&&tF(r.node)){let t=r0(r);(!e||r0(e)<t)&&(e=r)}return e}(o.sources);n={target:t?.node?new WeakRef(t.node):void 0,time:(0,I.vk)(e,o.startTime),previousRect:t?.previousRect,currentRect:t?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(i>u){u=i;let e=n?.target?.deref();r({value:(0,tl.LI)(u,4),targetSelector:e&&t2(e,t.actionNameAttribute),time:n?.time,previousRect:n?.previousRect?r1(n.previousRect):void 0,currentRect:n?.currentRect?r1(n.currentRect):void 0,devicePixelRatio:n?.devicePixelRatio})}}});return{stop:()=>{l.unsubscribe()}}}(n,a.relative,t=>{s.cumulativeLayoutShift=t,i()}),{stop:m,getInteractionToNextPaint:g,setViewEnd:v}=function(t,e,r){let n;if(!(tX("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>void 0,setViewEnd:tC.l,stop:tC.l};let i=1/0,{getViewInteractionCount:o,stopViewInteractionCount:a}=function(t){"interactionCount"in performance||l||(l=new window.PerformanceObserver((0,K.dm)(t=>{t.getEntries().forEach(t=>{t.interactionId&&(r5=Math.min(r5,t.interactionId),r3=((r8=Math.max(r8,t.interactionId))-r5)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0});let e=t===y.INITIAL_LOAD?0:r4(),r={stopped:!1};return{getViewInteractionCount:()=>r.stopped?r.interactionCount:r4()-e,stopViewInteractionCount:()=>{r={stopped:!0,interactionCount:r4()-e}}}}(r),s=function(t){let e=[];function r(){e.sort((t,e)=>e.duration-t.duration).splice(10)}return{process(t){let n=e.findIndex(e=>t.interactionId===e.interactionId),i=e[e.length-1];-1!==n?t.duration>e[n].duration&&(e[n]=t,r()):(e.length<10||t.duration>i.duration)&&(e.push(t),r())},estimateP98Interaction(){let r=Math.min(e.length-1,Math.floor(t()/50));return e[r]},isTracked:t=>e.some(e=>e.interactionId===t)}}(o),u=function(t){let e=new Map;function r(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 n=t.startTime+t.duration,i=e.get(t.interactionId);if(i)return void r(i,t);for(let[,i]of e.entries())if(8>=Math.abs(n-i.referenceRenderTime)){r(i,t),e.set(t.interactionId,i);return}e.set(t.interactionId,{startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,referenceRenderTime:n})},pruneUntracked(){for(let[r]of e)t.isTracked(r)||e.delete(r)},computeSubParts(t,r){if(!t.processingStart||!t.processingEnd||void 0===t.interactionId)return;let n=e.get(t.interactionId);if(!n)return;let i=Math.max(n.startTime+r,n.processingStart),o=Math.min(n.processingEnd,i);return{inputDelay:(0,I.vk)(n.startTime,n.processingStart),processingDuration:(0,I.vk)(n.processingStart,o),presentationDelay:(0,I.vk)(o,i)}},stop(){e.clear()}}}(s),c=tZ({type:"first-input",buffered:!0}).subscribe(f),d=tZ({type:"event",durationThreshold:40,buffered:!0}).subscribe(f);function f(r){for(let t of r)t.interactionId&&t.startTime>=e&&t.startTime<=i&&(s.process(t),u.process(t));u.pruneUntracked();let o=s.estimateP98Interaction();o&&function(r){let i=(0,I.vk)(e,r.startTime);if(r.duration!==n?.duration||i!==n.startTime){let e=function(t){let e=rO.get(t);return rO.delete(t),e}(r.startTime);!e&&r.target&&tF(r.target)&&(e=t2(r.target,t.actionNameAttribute)),n={duration:r.duration,startTime:i,targetSelector:e}}n.subParts=u.computeSubParts(r,r9(n.duration))}(o)}return{getInteractionToNextPaint:()=>n?{value:r9(n.duration),targetSelector:n.targetSelector,time:n.startTime,subParts:n.subParts}:o()?{value:0}
2:void 0,setViewEnd:t=>{i=t,a()},stop:()=>{d.unsubscribe(),c.unsubscribe(),u.stop()}}}(n,a.relative,o);return{stop:()=>{d(),h(),p()},stopINPTracking:m,setLoadEvent:f,setViewEnd:t=>{c=!0,v(t)},getCommonViewMetrics:()=>(s.interactionToNextPaint=g(),s),setLoadingTime:t=>{if(c)return;let e=(0,I.vk)(a.timeStamp,t??(0,I.nx)());u||d(),u=!0,s.loadingTime=e,i()}}}(t,e,r,n,q,i,o),{stop:P,initialViewMetrics:L}=i===y.INITIAL_LOAD?function(t,e,r,n){var i,o;let a={},{stop:s}=(i=t=>{r(t.loadEvent),a.navigationTimings=t,n()},function(t){let e,{stop:r}=(0,rH.H)("complete",()=>{e=(0,tH.wg)(()=>t())});return{stop:()=>{r(),(0,tH.DJ)(e)}}}(()=>{var t;let e=(0,eF.B)(r$)();e.loadEventEnd<=0||i({domComplete:(t=e).domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:rV(t)})})),u=rQ(e),{stop:c}=(o=t=>{a.firstContentfulPaint=t,n()},{stop:tZ({type:"paint",buffered:!0}).subscribe(t=>{let e=t.find(t=>"first-contentful-paint"===t.name&&t.startTime<u.timeStamp&&t.startTime<rX);e&&o(e.startTime)}).unsubscribe}),{stop:l}=function(t,e,r,n){let i=1/0,{stop:o}=(0,tK.lQ)(r,[tK.gX.POINTER_DOWN,tK.gX.KEY_DOWN],t=>{i=t.timeStamp},{capture:!0,once:!0}),a=0,s=tZ({type:"largest-contentful-paint",buffered:!0}).subscribe(r=>{let o=(0,ex.Uk)(r,t=>"largest-contentful-paint"===t.entryType&&t.startTime<i&&t.startTime<e.timeStamp&&t.startTime<rY&&t.size>a);if(o){var s;let e;o.element&&(e=t2(o.element,t.actionNameAttribute));let r=""===(s=o).url?void 0:s.url,i=o.startTime,u=function(t,e){let r=rV(r$());if(void 0===r)return;let n=t?function(t,e){let r=function(){if(tX("resource"))return performance.getEntriesByType("resource")}();if(r)return(0,ex.Uk)(r,r=>r.name===t&&r.startTime<=e)}(t,e):void 0,i=n?Math.max(r,n.requestStart||n.startTime):r,o=Math.min(e,Math.max(i,n?.responseEnd||0));return{loadDelay:i-r,loadTime:o-i,renderDelay:e-o}}(r,i);n({value:i,targetSelector:e,resourceUrl:r,subParts:u}),a=o.size}});return{stop:()=>{o(),s.unsubscribe()}}}(t,u,window,t=>{a.largestContentfulPaint=t,n()});return{stop:function(){s(),c(),l(),u.stop()},initialViewMetrics:a}}(n,o,k,q):{stop:tC.l,initialViewMetrics:{}};i===y.BF_CACHE&&(s=o.relative,requestAnimationFrame(()=>{requestAnimationFrame(()=>{(t=>{L.firstContentfulPaint=t,L.largestContentfulPaint={value:t},q()})((0,I.vk)(s,(0,I.$S)()))})}));let{stop:$,eventCounts:V}=function(t,e,r){let{stop:n,eventCounts:i}=rc({lifeCycle:t,isChildEvent:t=>t.view.id===e,onChange:r});return{stop:n,eventCounts:i}}(t,c,q),j=(0,tH.yb)(G,no),F=t.subscribe(12,t=>{t===ni.y5.UNLOADING&&G()});function z(){t.notify(3,{id:c,name:v,context:m.getContext(),startClocks:o,sessionIsActive:g})}function q(){z(),C()}function G(){A(),z(),p+=1;let e=void 0===u?(0,I.nx)():u.timeStamp;t.notify(4,{customTimings:f,documentVersion:p,id:c,name:v,service:_,version:b,context:m.getContext(),loadingType:i,location:h,handlingStack:E,startClocks:o,commonViewMetrics:x(),initialViewMetrics:L,duration:(0,I.vk)(o.timeStamp,e),isActive:void 0===u,sessionIsActive:g,eventCounts:V})}return G(),m.changeObservable.subscribe(q),{get name(){return v},service:_,version:b,contextManager:m,stopObservable:d,end(e={}){u||(u=e.endClocks??(0,I.M8)(),g=e.sessionIsActive??!0,t.notify(5,{endClocks:u}),t.notify(6,{endClocks:u}),(0,tH.vG)(j),R(u.relative),T(),F.unsubscribe(),G(),(0,tH.wg)(()=>{this.stop()},na))},stop(){P(),$(),O(),d.notify()},addTiming(t,e){if(u)return;let r=(0,I.A3)(e)?e:(0,I.vk)(o.timeStamp,e);f[function(t){let e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return e!==t&&D.Vy.warn(`Invalid timing name: ${t}, sanitized to: ${e}`),e}(t)]=r,q()},setLoadingTime:M,setViewName(t){v=t,G()}}}(t,e,r,n,i,o,a);return c.add(s),s.stopObservable.subscribe(()=>{c.delete(s)}),s}return t.subscribe(11,()=>{d=f(y.SESSION_RENEWAL,void 0,{name:d.name,service:d.service,version:d.version,context:d.contextManager.getContext()})}),t.subscribe(10,()=>{d.end({sessionIsActive:!1})}),o&&(u=i.subscribe(({oldLocation:t,newLocation:e})=>{var r,n;r=t,n=e,(r.pathname!==n.pathname||!function(t){let e=t.substring(1);return""!==e&&!!document.getElementById(e)}(n.hash)&&ns(n.hash)!==ns(r.hash))&&(d.end(),d=f(y.ROUTE_CHANGE))}),s=function(t){let{stop:e}=(0,tK.q2)(window,tK.gX.PAGE_SHOW,e=>{e.persisted&&t(e)},{capture:!0});return e}(t=>{d.end();let e=(0,I.FR)(t.timeStamp);d=f(y.BF_CACHE,e,void 0)})),{addTiming:(t,e=(0,I.nx)())=>{d.addTiming(t,e)}
2,setLoadingTime:t=>d.setLoadingTime(t),startView:(t,e)=>{d.end({endClocks:e}),d=f(y.ROUTE_CHANGE,e,t)},setViewContext:t=>{d.contextManager.setContext(t)},setViewContextProperty:(t,e)=>{d.contextManager.setContextProperty(t,e)},setViewName:t=>{d.setViewName(t)},getViewContext:()=>d.contextManager.getContext(),stop:()=>{u&&u.unsubscribe(),s&&s(),d.end(),c.forEach(t=>t.stop())}}}(t,S,A,r,C,!r.trackViewsManually,o));R.register(({domainContext:t,rawRumEvent:e})=>{var r,n;let i,o=(r=t,"long_task"===(n=e).type&&"long-animation-frame"===n.long_task.entry_type?n.long_task.scripts[0]?.source_url:("handlingStack"in r&&(i=r.handlingStack),"error"===n.type&&n.error.stack&&(i=n.error.stack),(0,ez.T)({stack:i}).stack[0]?.url));if(!o)return rM.$O;let a=(0,eX.y)(o);return a?{type:e.type,service:a.service,version:a.version}:rM.$O}),E.push(to);let ta=function(t,e){let r=(0,eF.B)(rW)(),n=function(t){let e=new Set,r=t.subscribe(8,t=>{e.add(t),e.size>1e3&&e.delete(e.values().next().value)});return{getMatchingRequest(t){let r,n=1/0;for(let i of e){let e=t.startTime-i.startClocks.relative;0<=e&&e<n&&i.url===t.name&&(n=Math.abs(e),r=i)}return r&&e.delete(r),r},stop(){r.unsubscribe()}}}(t);t.subscribe(9,r=>{let n=function(t,e){let r=(0,I.vk)(t.startClocks.timeStamp,t.endClocks.timeStamp),n={date:t.startClocks.timeStamp,type:m.RESOURCE,resource:{id:U(),type:tI.WEBSOCKET,url:t.url,duration:(0,I.Zj)(r),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,I.Zj)(t.firstMessageInOffset),time_to_first_message_out:(0,I.Zj)(t.firstMessageOutOffset),last_message_in_at:t.lastMessageInAt,longest_inbound_silence:(0,I.Zj)(t.longestInboundSilence),inbound_idle_duration_before_close:(0,I.Zj)(t.inboundIdleDurationBeforeClose),buffered_amount_max:t.bufferedAmountMax,protocol:t.protocol,setup_duration:(0,I.Zj)(t.setupDuration)}},_dd:{discarded:!e.trackResources}};return{startClocks:t.startClocks,duration:r,rawRumEvent:n,domainContext:{isWebSocket:!0,isManual:!1,webSocket:t.webSocket}}}(r,e);n&&t.notify(13,n)});let i=tZ({type:"resource",buffered:!0}).subscribe(r=>{for(let i of r)"xmlhttprequest"===i.initiatorType||"fetch"===i.initiatorType?(0,tH.wg)(()=>{let r=rK(i,n.getMatchingRequest(i),e);r&&t.notify(13,r)},50):a(()=>rK(i,void 0,e))}),{stop:o}=(0,rH.H)("interactive",()=>{a(()=>rK(r$(),void 0,e))});function a(e){r.push(()=>{let r=e();r&&t.notify(13,r)})}let s=rd(t),u={startResource:function(t,e={},r=(0,I.M8)()){let n=e.resourceKey??t;s.start(n,r,{url:t,...e})},stopResource:function(e,r={},n=(0,I.M8)()){let i=r.resourceKey??e,o=s.stop(i,n,{context:r.context,type:r.type});if(!o)return;let a=(0,I.vk)(o.startClocks.relative,n.relative),u={date:o.startClocks.timeStamp,type:m.RESOURCE,resource:{id:o.id,type:o.type||tI.OTHER,url:tV(o.url),duration:(0,I.Zj)(a),method:o.method,status_code:r.statusCode,size:r.size},_dd:{},context:o.context};t.notify(13,{rawRumEvent:u,startClocks:o.startClocks,duration:a,domainContext:{isManual:!0}})}};return{startResource:u.startResource,stopResource:u.stopResource,stop:()=>{o(),r.stop(),i.unsubscribe(),s.stopAll()}}}(t,r);E.push(ta.stop);let{stop:ts}=function(t,e){let r=tZ({type:tX("long-animation-frame")?"long-animation-frame":"longtask",buffered:!0}).subscribe(r=>{for(let n of r){if(!e.trackLongTasks)break;let r=(0,I.FR)(n.startTime),i=function(t,e){let r=U(),n=(0,I.Zj)(t.duration),i={date:e.timeStamp,type:m.LONG_TASK,_dd:{discarded:!1}};if("longtask"===t.entryType)return{...i,long_task:{id:r,entry_type:g.LONG_TASK,duration:n}};let o=(0,eX.J)(t.scripts.map(t=>t.sourceURL).filter(t=>!!t));return{...i,_dd:{discarded:!1,debug_ids:o},long_task:{id:r,entry_type:g.LONG_ANIMATION_FRAME,duration:n,blocking_duration:(0,I.Zj)(t.blockingDuration),first_ui_event_timestamp:(0,I.Zj)(t.firstUIEventTimestamp),render_start:(0,I.Zj)(t.render
2Start),style_and_layout_start:(0,I.Zj)(t.styleAndLayoutStart),start_time:(0,I.Zj)(t.startTime),scripts:t.scripts.map(t=>({duration:(0,I.Zj)(t.duration),pause_duration:(0,I.Zj)(t.pauseDuration),forced_style_and_layout_duration:(0,I.Zj)(t.forcedStyleAndLayoutDuration),start_time:(0,I.Zj)(t.startTime),execution_start:(0,I.Zj)(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}))}}}(n,r);t.notify(13,{rawRumEvent:i,startClocks:r,duration:n.duration,domainContext:{performanceEntry:n}})}});return{stop:()=>r.unsubscribe()}}(t,r);E.push(ts);let{addError:tu}=function(t,e){var r,n;let i=new tn.cP;return e.subscribe(({data:t,type:e})=>{e===e9.RUNTIME_ERROR?i.notify(t):e===e9.CONSOLE&&t.api===tp.bP.error&&i.notify(t.error)}),r=i,(function(t){var e;let r=[];t.includes(rD.cspViolation)&&r.push(new tn.cP(t=>{if(!(0,tK.BX)(document,"securitypolicyviolation"))return;let{stop:e}=(0,tK.q2)(document,"securitypolicyviolation",e=>{t.notify(function(t){let e=`'${t.blockedURI}' blocked by '${t.effectiveDirective}' directive`;return rL({type:t.effectiveDirective,message:`${rD.cspViolation}: ${e}`,originalError:t,csp:{disposition:t.disposition},stack:rU(t.effectiveDirective,t.originalPolicy?`${e} of the policy "${j(t.originalPolicy,100,"...")}"`:"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(e))});return e}));let n=t.filter(t=>t!==rD.cspViolation);return n.length&&r.push((e=n,new tn.cP(t=>{if(!window.ReportingObserver)return;let r=(0,K.dm)((e,r)=>e.forEach(e=>t.notify(function(t){let{type:e,body:r}=t;return rL({type:r.id,message:`${e}: ${r.message}`,originalError:t,stack:rU(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}(e)))),n=new window.ReportingObserver(r,{types:e,buffered:!0});return n.observe(),()=>{n.disconnect()}}))),(0,tn.Fx)(...r)})([rD.cspViolation,rD.intervention]).subscribe(t=>r.notify(t)),i.subscribe(e=>t.notify(15,{error:e})),(n=t).subscribe(15,({error:t})=>{n.notify(13,function(t){let e={date:t.startClocks.timeStamp,error:{id:U(),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:m.ERROR,context:t.context},r={error:t.originalError,handlingStack:t.handlingStack};return{rawRumEvent:e,startClocks:t.startClocks,domainContext:r}}(t))}),{addError:({error:t,handlingStack:e,componentStack:r,startClocks:i,context:o})=>{let a=e0({originalError:t,handlingStack:e,componentStack:r,startClocks:i,nonErrorPrefix:eG.O7.PROVIDED,source:eG.gf.CUSTOM,handling:eG.aC.HANDLED});a.context=(0,tf.kg)(a.context,o),n.notify(15,{error:a})}}}(t,a);!function(t,e,r,n,i,o){let a={clearTracingIfNeeded:eN,traceFetch:t=>eM(e,t,r,n,i,e=>{if(t.input instanceof Request&&!t.init?.headers)t.input=new Request(t.input),Object.keys(e).forEach(r=>{t.input.headers.append(r,e[r])});else{t.init=(0,N.yG)(t.init);let r=[];t.init.headers instanceof Headers?t.init.headers.forEach((t,e)=>{r.push([e,t])}):Array.isArray(t.init.headers)?t.init.headers.forEach(t=>{r.push(t)}):t.init.headers&&Object.keys(t.init.headers).forEach(e=>{r.push([e,t.init.headers[e]])}),t.init.headers=r.concat((0,ex.WP)(e))}}),traceXhr:(t,o)=>eM(e,t,r,n,i,t=>{try{Object.keys(t).forEach(e=>{o.setRequestHeader(e,t[e])})}catch{}})};(function(t,e,r){let n=[];n.push(e$().subscribe(t=>{"start"===t.state&&tU(t.url)&&(e.traceXhr(t,t.xhr),re(t))})),n.push(r.subscribe(({data:r,type:n})=>{if(n===e9.XHR&&tU(r.url))switch(r.state){case"start":re(r),t.notify(7,{requestIndex:r.requestIndex,url:r.url});break;case"complete":e.clearTracingIfNeeded(r),t.notify(8,{...r,type:tN.XHR,isAbortedOnStart:!1})}}))})(t,a,o),function(t,e,r,n){let i=[];i.push(e8({responseBodyAction:t=>eL(t.url,e)?.trackResponseErrors?e3.COLLECT:e3.IGNORE}).subscribe(t=>{"start"===t.state&&tU(t.url)&&(r.traceFetch(t),re(t))})),i.push(n.subscribe(({data:e,type:n})=>{if(n===e9.FETCH&&tU(e.url))switch(e.state){case"start":re(e),t.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":r.clearTracingIfNeeded(e),t.notify(8,{...e,duration:(0,I.vk)(e.startClocks.timeStamp,(0,I.nx)()),type:tN.FETCH,requestBody:e.init?.body})}}))}(t,e,a,o)}(t,r,n,V,q,a);let tc=function(t,e){let r=rd(t);function n(r){e.wasInPageStateDuringPeriod("frozen",r.startClocks.relative,r.duration)||t.notify(13,nS(r))}return{addOperationStepVital:function(e,r,n,i){let{operationKey:o,context:a,description:s,handlingStack:u}=n||{}
2,c={name:e,type:b.OPERATION_STEP,operationKey:o,failureReason:i,stepType:r,startClocks:(0,I.M8)(),context:eK(a),description:s,handlingStack:u};t.notify(13,nS(c))},addDurationVital:n,startDurationVital:function(e,n={},i=(0,I.M8)()){let{id:o}=r.start(n.vitalKey??e,i,{name:e,...n});t.notify(17,{id:o,name:e,startClocks:i,...n})},stopDurationVital:function(t,e={},i=(0,I.M8)()){let o=r.stop(e.vitalKey??t,i,e);o&&n({type:b.DURATION,...o})}}}(t,T);if(r.trackResources&&(r.betaTrackWebSockets||(0,tM.sr)(tM.R9.TRACK_WEBSOCKETS))){let e=function(t,e,r){let n=function(t,e,r,n){let i=new Map;function o(e,i,o){let a=function(t,e,r,n){let i=e.at,o="session_end"===r?n.findView(i.relative,{returnInactive:!0})?.id:n.findView(i.relative)?.id,a=void 0!==t.lastMessageInAt?(0,I.vk)(t.lastMessageInAt,i.timeStamp):void 0,{openClocks:s,...u}=t;return{...u,endClocks:i,endViewId:o,inboundIdleDurationBeforeClose:a,trackingEndReason:r,handshakeSucceeded:void 0!==s,setupDuration:t.setupDuration??(0,I.vk)(t.startClocks.timeStamp,i.timeStamp),closeCode:e.code,closeReason:e.reason,wasClean:e.wasClean}}(e,i,o,r);t.notify(9,a),n({id:U(),name:"websocket-closed",type:b.DURATION,startClocks:a.endClocks,duration:0,context:eK({url:a.url,connection_id:a.connectionId})})}let a=e.subscribe(t=>{switch(t.state){case"connecting":{let e=U(),o=r.findView(t.startClocks.relative)?.id,a=function(t){let e=(0,z.c$)(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),n({id:U(),name:"websocket-connecting",type:b.DURATION,startClocks:t.startClocks,duration:0,context:eK({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,I.vk)(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,rn(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,rn(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=>{let e=(0,I.M8)();i.forEach(r=>{o(r,{at:e},t)}),i.clear()},stop:()=>{a.unsubscribe(),i.clear()}}}(t,(c||(c=new tn.cP(t=>{if("function"!=typeof F.J.WebSocket)return;let{stop:e}=(0,eR.my)(F.J,"WebSocket",({parameters:e,onPostCall:r})=>{let n=Array.isArray(e[1])?[].concat(e[1]):e[1],i=(0,I.M8)();r(e=>{t.notify({state:"connecting",instance:e,url:e.url,protocols:n,startClocks:i}),function(t,e){let{stop:r}=(0,tK.q2)(t,"open",()=>{e.notify({state:"open",instance:t,openClocks:(0,I.M8)(),protocol:t.protocol||""}),r()}),{stop:n}=(0,tK.q2)(t,"message",r=>{e.notify({state:"message-in",instance:t,size:rr(r.data),at:(0,I.M8)()})}),{stop:i}=(0,tK.q2)(t,"close",r=>{e.notify({state:"closed",instance:t,code:r.code,reason:r.reason,wasClean:r.wasClean,at:(0,I.M8)()}),n(),i()})}(e,t)})}),{stop:r}=(0,eR.H7)(F.J.WebSocket.prototype,"send",({target:e,parameters:[r],onPostCall:n})=>{let i=rr(r),o=e.bufferedAmount;n(()=>{t.notify({state:"message-out",instance:e,size:i,bufferedAmountPreSend:o,at:(0,I.M8)()})})});return()=>{e(),r()}})),c),e,r),i=t.subscribe(10,()=>{n.flushOpenConnections("session_end")});return{stop:()=>{i.unsubscribe(),n.flushOpenConnections("session_end"),n.stop()}}}(t,O,tc.addDurationVital);E.push(e.stop)}let td=(d=r.applicationId,f=G.actionContexts,{get:t=>{let e=O.findView(t),r=x.findUrl(t),i=n.findTrackedSession(t);if(i&&e&&r){let n=f.findActionId(t);return{application_id:d,session_id:i.id,user_action:n?{id:n}:void 0,view:{id:e.id,name:e.name,referrer:r.referrer,url:r.url}}}}});return{addAction:G.addAction,startAction:G.startAction,stopAction:G.stopAction,startResource:ta.startResource,stopResource:ta.stopResource,addEvent:B.addEvent,addError:tu,addTiming:X,setLoadingTime:Y,addFeatureFlagEvaluation:M.addFeatureFlagEvaluation,startView:Q,setVie
2wContext:te,setViewContextProperty:tr,getViewContext:ti,setViewName:tt,viewHistory:O,sessionManager:n,stopSession:()=>n.expire(),getInternalContext:td.get,startDurationVital:tc.startDurationVital,stopDurationVital:tc.stopDurationVital,addDurationVital:tc.addDurationVital,addOperationStepVital:tc.addOperationStepVital,globalContext:$,userContext:V,accountContext:q,stop:()=>E.forEach(t=>t())}}(E,u,t,e,r,i,a,h,S);return w.push(A),a.unbuffer(),w.push(()=>n.stop()),{...k,lifeCycle:E,sessionManager:e,stopSession:()=>e.expire(),telemetry:s,stop:()=>{w.forEach(t=>t())},hooks:u}}function nY(t,e,r){if(t)for(let n of t){let t=n[e];t&&t(r)}}function nQ(t,e,r,n){return(0,K.dm)((...i)=>(n&&(0,L.Q6)({feature:n}),t()[e][r](...i)))}function n0(t,e,r){t.changeObservable.subscribe(()=>{let n=t.getContext();r.notify(t=>t[e].setContext(n))})}let n1={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},n2={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function n6(t,e){e.silentMultipleInit||D.Vy.error(`${t} is already initialized.`)}let n3=["chrome-extension://","moz-extension://"];function n5(t){return n3.some(e=>t.includes(e))}let n8=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function n4(t){return t.created?Number(t.created):void 0}function n7(t){let e=t.expire&&Number(t.expire),r=n4(t);if(e&&r)return Math.min(e,r+tT.AQ)}function n9(t,e){let r={isExpired:"1"};return e.trackAnonymousUser&&t?.anonymousId&&(r.anonymousId=t?.anonymousId),r}function it(t){return(0,N.RI)(t)}function ie(t){return void 0!==t.isExpired||!function(t){let e=n7(t);return!!e&&(0,I.x3)()<e}(t)}function ir(t){t.expire=String((0,I.x3)()+tT.HB)}function ii(t){return(0,ex.WP)(t).map(([t,e])=>"anonymousId"===t?`aid=${e}`:`${t}=${e}`).join("&")}function io(t){let e={};return t&&(-1!==t.indexOf("&")||n8.test(t))&&t.split("&").forEach(t=>{let r=n8.exec(t);if(null!==r){let[,t,n]=r;"aid"===t?e.anonymousId=n:e[t]=n}}),e}
2function ia(t,e){return it(t)?(e.trackAnonymousUser&&(t.anonymousId=U()),n9(t,e)):t}function is(t,e){if(it(t))return t;let r=t;return ie(t)&&(r=n9(t,e)),r.id||(r.id=U(),r.created=String((0,I.x3)())),e.trackAnonymousUser&&!r.anonymousId&&(r.anonymousId=U()),delete r.isExpired,ir(r),r}let iu="_dd_s_v2",ic="_dd_s";async function il(t){let e=function(t){let e={};if(e.secure=t.useSecureSessionCookie||t.usePartitionedCrossSiteSessionCookie,e.crossSite=t.usePartitionedCrossSiteSessionCookie,e.partitioned=t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains){let t=function(t=F.J.location?.hostname??"",e="undefined"!=typeof document?document.referrer:""){if("undefined"!=typeof document){if(void 0===i){let r=function(t,e){try{return t||(0,z.c$)(e).hostname}catch{}}(t,e);if(r){let t=`dd_site_test_${U()}`,e=r.split("."),n=e.pop();for(;e.length&&!G(t);)n=`${e.pop()}.${n}`,q(t,"test",I.OY,{domain:n});q(t,"",0,{domain:n}),i=n}}return i}}();if(!t)return;e.domain=t}return e}(t);if(e){if(nT()&&await nC(nA,e))return{type:tT.Q_.COOKIE,cookieOptions:e,cookieApi:1};if(await nC(nR,e))return{type:tT.Q_.COOKIE,cookieOptions:e,cookieApi:0}}}function id(t,e){return 1===t?nA(iu,e):nR(iu,e)}function ip(t,e){let r;for(let n of t.slice().reverse())if((r=io(n)).c===e)break;return delete r?.c,r??{}}function ih(t){return((t.domain?t.domain.split(".").length-1:0)<<1|!!t.crossSite).toString(16)}let im="_DD_SESSION";async function ig(t){var e;for(let r of void 0!==(e=t.sessionPersistence)?e:F.W?[tT.Q_.MEMORY]:[tT.Q_.COOKIE]){let e=await function(t,e){switch(t){case tT.Q_.COOKIE:return il(e);case tT.Q_.LOCAL_STORAGE:try{let t=U(),e=`_dd_test_${t}`;localStorage.setItem(e,t);let r=localStorage.getItem(e);return localStorage.removeItem(e),t===r?{type:tT.Q_.LOCAL_STORAGE}:void 0}catch{return}case tT.Q_.MEMORY:return{type:tT.Q_.MEMORY};default:D.Vy.error(`Invalid session persistence '${String(t)}'`);return}}(r,t);if(void 0!==e)return e}}function iy(t,e){switch(t.type){case tT.Q_.COOKIE:return function(t,e){let{cookieOptions:r,cookieApi:n}=t,i=new tn.cP,o=!!e.trackAnonymousUser,a=ih(r),s=(0,eF.B)(id)(n,r),u=!0;function c(t){return s.getAllAndSet(e=>{var n,i;let s=ip(e,a);return u&&(0,N.RI)(s)&&(s=ip(B(ic),a)),u=!1,{value:(n=t(s),i=r,ii((0,N.RI)(n)?n:{...n,c:ih(i)})),expireDelay:o?tT._P:tT.AQ}})}return s.observable.subscribe(()=>{s.getAll().then(t=>{i.notify(ip(t,a))}).catch(t=>(0,K.Dx)(Error(`Error while reading session cookies on change: ${t}`)))}),{async setSessionState(t,e){"undefined"!=typeof navigator&&navigator.locks?await navigator.locks.request(iu,()=>c(t)).catch(t=>{var e;if(!((e=t)instanceof Error&&("AbortError"===e.name||e.message.includes("no longer runnable"))))throw t}):(h=(h??Promise.resolve()).then(()=>c(t)),await h)},sessionObservable:i}}(t,e);case tT.Q_.LOCAL_STORAGE:let r=new tn.cP(t=>(0,tK.q2)(window,"storage",e=>{"_dd_s_v2"===e.key&&e.storageArea===localStorage&&t.notify(io(e.newValue))}).stop),n=!0;return{async setSessionState(t,e){let i=io(localStorage.getItem(iu));n&&it(i)&&(i=io(localStorage.getItem(ic))),n=!1;let o=t(i);localStorage.setItem(iu,ii(o)),await Promise.resolve(),r.notify(o)},sessionObservable:r};case tT.Q_.MEMORY:let i=F.J;i._DD_SESSION||(i[im]={});let o=i[im],a=new tn.cP,s=o.onChange;return o.onChange=t=>{s?.(t),a.notify(t)},{async setSessionState(t,e){let r=(0,N.yG)(t(o.state??{}));o.state=r,await Promise.resolve(),o.onChange?.(r)},sessionObservable:a}}}let iv=I.iW,i_=12*I.MA,ib=[];async function iw(t,e){let r,n=(0,I.$S)(),i=new tn.cP,o=new tn.cP,a=await (0,eF.B)(ig)(t);if(!a)return void D.Vy.warn("No storage available for session. We will not send any data.");let s=(0,eF.B)(iy)(a,t),u=(0,tO.q)({maxEntries:1e3});ib.push(()=>u.stop());let c=!1,{throttled:l,cancel:d}=(0,tC.n)(()=>{c=!1,s.setSessionState(e=>is(e,t),"expandOrRenewOnActivity").catch(K.Dx)},I.OY);ib.push(d),ib.push(()=>(0,tH.DJ)(r));let f=!1;ib.push(()=>{f=!0});let p=await h().catch(t=>(0,K.Dx)(Error(`Error while resolving initial session state: ${t}`)));if(p&&!f){for(;!e.isGranted();)if(y(),await new Promise(t=>e.onGrantedOnce(t)),f||!(p=await h().catch(K.Dx))||f)return;return u.add(v(p),(0,I.Oc)().relative),m(p),function(){let t=s.sessionObservable.subscribe(t=>{m(t),g(t)});ib.push(()=>t.unsubscribe())}(),e.observable.subscribe(()=>{e.isGranted()?(c=!1,s.setSessionState(e=>is(e,t),"expandOrRenewOnConsent").catch(K.Dx)):y()}),F.W||(function(t){let{stop:e}=(0,tK.lQ)(window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});ib.push(e)}(()=>{e.isGranted()&&l()}),function(t){let e=()=>{"visible"===document.visibilityState&&t()},{stop:r}=(0,tK.q2)(document,"visibilitychange",e);ib.push(r);let n=(0,tH.yb)(e,iv);ib.push(()=>{(0,tH.vG)(n)})}(()=>{c||s.setSessionState(t=>(ie(t)||it(t)||!t.id||ir(t),t),"expandOnVisibility").catch(K.Dx)}),function(t){let{stop:e}=(0,tK.q2)(window,"resume",t,{capture:!0});ib.push(e)}(()=>{s.setSessionState(e=>ia(e,t),"initializeOnResume").catch(K.Dx)})),(0,L.Gk)("Session manager init metrics",{metrics:{duration:(0,I.vk)(n,(0,I.$S)())}}),{findSession:(t,e)=>u.find(t,e),findTrackedSession:(e,{returnInactive:r=!1,maxAge:n=i_}={})=>{let i=u.find(e,{returnInactive:r});if(i&&"invalid"!==i.id&&(0,eC.$5)(i.id,t.sessionSampleRate)&&!((0,I.x3)()-i.createdAt>n))return i},renewObservable:i,expireObservable:o,expire:y,updateSessionState:t=>{s.setSessionState(e=>({...e,...t}),"updateState").catch(K.Dx)}}}async function h(){let e={};return await s.setSessionState(r=>e=is(ia(r,t),t),"initialize"),e}function m(n){(0,tH.DJ)(r);let i=n7(n);i&&(r=(0,tH.wg)(()=>{s.setSessionState(r=>ie(r)?(e.isGranted()||delete r.anonymousId,n9(r,t)):r,"expireOnTimeout").catch(K.Dx)},i-(0,I.x3)()))}function g(t){let e=u.find(),r=e?.id!==void 0,n=void 0!==t.id,a=r&&n&&e.id!==t.id;if(r&&(!n||a)&&(c=!0,o.notify(),u.closeActive((0,I.$S)())),n&&(!r||a)){if(c)return;u.add(v(t),(0,I.$S)()),i.notify()}
2else r&&n&&!a&&(e.isReplayForced=!!t.forcedReplay)}function y(){d();let r=n9(u.find(),t);e.isGranted()||delete r.anonymousId,g(r),s.setSessionState(r=>(e.isGranted()||delete r.anonymousId,n9(r,t)),"expire").catch(K.Dx)}function v(t){let e=n4(t)??(0,I.nx)();return t.id?{id:t.id,isReplayForced:!!t.forcedReplay,anonymousId:t.anonymousId,createdAt:e}:{id:"invalid",isReplayForced:!1,anonymousId:void 0,createdAt:e}}}var iE=r(78497),iS=r(11776);function iC(t,e,r={}){let n=function(t){let e=new tn.cP;function r(){return t===ti.GRANTED}return{tryToInit(e){t||(t=e)},onGrantedOnce(t){if(r())t();else{let n=e.subscribe(()=>{r()&&(t(),n.unsubscribe())})}},update(r){t=r,e.notify()},isGranted:r,observable:e}}(),i=function(){var t;let e=new tn.dX(500,t=>{(0,L.A2)("Early data collection dropped data on unbuffer",{count:t})}),r=[];function n(t,n){r.push(n.subscribe(r=>{e.notify({type:t,data:r})}))}return n(0,(0,eF.B)(e1)()),n(1,e8()),n(2,e$()),n(3,(t=Object.values(tp.bP),(0,tn.Fx)(...t.map(t=>{var e;return e7[t]||(e7[t]=(e=t,new tn.cP(t=>{let r=tp.JZ[e];return tp.JZ[e]=(...n)=>{r.apply(console,n);let i=(0,eB.uC)("console error");(0,K.um)(()=>{t.notify(function(t,e,r){let n=t.map(t=>{var e;return"string"==typeof(e=t)?eK(e):(0,eq.b)(e)?(0,eB.NR)((0,ez.T)(e)):(0,eW.s)(eK(e),void 0,2)}).join(" ");if(e===tp.bP.error){let i=e0({originalError:t.find(eq.b),handlingStack:r,startClocks:(0,I.M8)(),source:eG.gf.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return i.message=n,{api:e,message:n,handlingStack:r,error:i}}return{api:e,message:n,error:void 0,handlingStack:r}}(n,e,i))})},()=>{tp.JZ[e]=r}}))),e7[t]})))),{observable:e,stop:()=>r.forEach(t=>t.unsubscribe())}}(),o=function({ignoreInitIfSyntheticsWillInjectRum:t=!0,startDeflateWorker:e,sdkName:r},n,i){let o,a,s,u,c,l,d=new tn.dX(500,t=>{(0,L.A2)("preStartRum buffer data lost",{count:t})}),f=nK();n0(f,n1.globalContext,d);let p=nJ();n0(p,n1.userContext,d);let h=nZ();n0(h,n1.accountContext,d);let m={assemble:(0,rM.ab)(),assembleTelemetry:(0,rM.ab)()},g=n.observable.subscribe(_),y={},v=!1;function _(){let t;if(v||!s||!u||!c||!l)return;if(g.unsubscribe(),u.trackViewsManually){if(!o)return;t=o.options}let e=u.trackViewsManually?o?.callback:void 0,r=i(u,c,a,t,l,m);v=!0,d.subscribe(t=>{t!==e&&t(r)}),d.unbuffer()}function b(t,i){var o;let d=(0,eS.d0)();if(d&&(t={...o=t,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:o.defaultPrivacyLevel??(0,eS.Y9)()?.getPrivacyLevel()}),s=t,u)return void n6("DD_RUM",t);let f=function(t){var e;let r=(e=D.Vy,t&&"object"==typeof t?th(tb,t,e):void e.error("Configuration must be an object"));if(!r)return;let n=r.allowedTracingUrls.map(tw).filter(Boolean);return n.length>0&&!r.service?void D.Vy.error("Service needs to be configured when tracing is enabled"):{...r,allowedTracingUrls:n,beforeSend:r.beforeSend?(0,tc.y)(r.beforeSend,"beforeSend threw an error:"):void 0,rulePsr:(0,tl.Et)(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 t_.map(t=>({name:t}));if(!Array.isArray(e))return D.Vy.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(0===e.length)return D.Vy.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];let r=[];return e.forEach((t,e)=>(0,P.OE)(t)&&(0,P.Vl)(t.name)?void 0===t.url||(0,P.Vl)(t.url)?void 0===t.extractor||t.extractor instanceof RegExp?void 0===t.location||tE.includes(t.location)?void r.push({...t,name:"string"==typeof t.name?t.name.toLowerCase():t.name}):void D.Vy.warn(`trackResourceHeaders[${e}].location should be 'request', 'response', or 'any'`):void D.Vy.warn(`trackResourceHeaders[${e}].extractor should be a RegExp`):void D.Vy.warn(`trackResourceHeaders[${e}].url should be a MatchOption`):void D.Vy.warn(`trackResourceHeaders[${e}] should be a MatchHeader object with a 'name' property`)),r}(t),allowedGraphQlUrls:function(t){if(!t.allowedGraphQlUrls)return[];if(!Array.isArray(t.allowedGraphQlUrls))return D.Vy.warn("allowedGraphQlUrls should be an array"),[];let e=[];
2return t.allowedGraphQlUrls.forEach(t=>{(0,P.Vl)(t)?e.push({match:t,trackPayload:!1,trackResponseErrors:!1}):(0,P.OE)(t)&&(0,P.Vl)(t.match)&&e.push({match:t.match,trackPayload:!!t.trackPayload,trackResponseErrors:!!t.trackResponseErrors})}),e}(t),remoteConfigurationId:tr(t)}}(t);if(f&&function(t,e){let r=(0,eF.B)(F.J.location),n=r?r.origin:"",i=t.allowedTrackingOrigins;if(!i)return!function(t,e=""){return!n5(t)&&n5(e.split("\n").filter(t=>{let e=t.trim();return e.length&&/^at\s+|@/.test(e)})[1]||"")}(n,e)||(D.Vy.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let o=eI(i,n);return o||D.Vy.error("SDK initialized on a non-allowed domain."),o}(f,i??"")){if(f.compressIntakeRequests&&!d&&e&&!(a=e(f,"Datadog RUM",tC.l)))return;u=f,n.tryToInit(f.trackingConsent),n.onGrantedOnce(()=>{let e,{assembleTelemetry:i}=m;if(i.register(()=>n.isGranted()?rM.$O:rM.ug),l=(0,eF.B)(L.a5)(L.H0.RUM,f,i,r),F.W)return void D.Vy.warn("The RUM SDK is not supported in a web or service worker environment.");((0,eS.d0)()?(e={id:U(),isReplayForced:!1,anonymousId:void 0,createdAt:(0,I.nx)()},Promise.resolve({findSession:()=>e,findTrackedSession:()=>e,renewObservable:new tn.cP,expireObservable:new tn.cP,expire:tC.l,updateSessionState:t=>{e={...e,...t}}})):(0,eF.B)(iw)(f,n)).then(e=>{if(e){var r,n;r=c=e,n={application:{id:f.applicationId}},i.register(({startTime:t})=>{let e=r.findTrackedSession(t);return e?{session:{id:e.id},anonymous_id:e.anonymousId,...n}:rM.$O}),(0,L.Rr)(function(t){var e,r,n;let i={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};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,td.EI)(t.allowedTracingUrls),use_allowed_graph_ql_urls:(0,td.EI)(t.allowedGraphQlUrls),use_track_graph_ql_payload:(e=t.allowedGraphQlUrls,(0,td.EI)(e)&&e.some(t=>(0,P.OE)(t)&&t.trackPayload)),use_track_graph_ql_response_errors:(r=t.allowedGraphQlUrls,(0,td.EI)(r)&&r.some(t=>(0,P.OE)(t)&&t.trackResponseErrors)),selected_tracing_propagators:function(t){let e=new Set;return(0,td.EI)(t.allowedTracingUrls)&&t.allowedTracingUrls.forEach(t=>{tw(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,td.EI)(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:tr(t),profiling_sample_rate:t.profilingSampleRate,use_remote_configuration_proxy:!!t.remoteConfigurationProxy,track_resource_headers:!0===(n=t.trackResourceHeaders)?"default_headers":Array.isArray(n)?"custom"
2:void 0,beta_enable_view_updates:t.betaEnableViewUpdates,beta_track_web_sockets:t.betaTrackWebSockets,...i}}(t)),_()}}).catch(K.Dx)})}}return{init(e,r,n){if(!e)return void D.Vy.error("Missing configuration");if((0,tM.Aq)(e.enableExperimentalFeatures),(0,tK.fK)(e.allowUntrustedEvents),s=e,!(t&&nL()))if(nY(e.plugins,"onInit",{initConfiguration:e,publicApi:r}),tr(e)){let t={user:p,context:f};if(e.remoteConfigurationId||e.remoteConfiguration?.sync)X(e,t).then(t=>{t&&b(t,n)}).catch(K.Dx);else{let r=function(t,e){let r=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 r=(0,N.XU)(t);return void 0===r||!function(t){if("object"!=typeof t||null===t)return!1;let e="version"in t&&2===t.version,r="config"in t&&"object"==typeof t.config&&null!==t.config;return e&&r}(r)?(this.remove(),{status:"error"}):{status:"hit",config:r.config}},remove(){try{localStorage.removeItem(e)}catch{}},write(t){let r={version:2,config:t,fetchedAt:(0,I.nx)()};try{localStorage.setItem(e,JSON.stringify(r))}catch{}}}}({remoteConfigurationId:tr(t)}),n=Q(),i=r.read();return(n.increment("cache",M[i.status]),te(t).then(t=>{t.ok?(n.increment("fetch","success"),r.write(t.value)):(n.increment("fetch","failure"),D.Vy.error(t.error))}).catch(K.Dx).finally(()=>{(0,L.Gk)(L.Xf.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:n.get()})}),"hit"===i.status)?Y(t,i.config,e,n):t.remoteConfiguration?.required?void 0:t}(e,t);r&&b(r,n)}}else b(e,n)},get initConfiguration(){return s},getInternalContext:tC.l,stopSession:tC.l,addTiming(t,e=(0,I.nx)()){d.notify(r=>r.addTiming(t,e))},setLoadingTime:t=>{d.notify(e=>e.setLoadingTime(t))},startView(t,e=(0,I.M8)()){let r=r=>{r.startView(t,e)};d.notify(r),o||(o={options:t,callback:r},_())},setViewName(t){d.notify(e=>e.setViewName(t))},setViewContext(t){d.notify(e=>e.setViewContext(t))},setViewContextProperty(t,e){d.notify(r=>r.setViewContextProperty(t,e))},getViewContext:()=>y,globalContext:f,userContext:p,accountContext:h,addAction(t){d.notify(e=>e.addAction(t))},startAction(t,e){let r=(0,I.M8)();d.notify(n=>n.startAction(t,e,r))},stopAction(t,e){let r=(0,I.M8)();d.notify(n=>n.stopAction(t,e,r))},startResource(t,e){let r=(0,I.M8)();d.notify(n=>n.startResource(t,e,r))},stopResource(t,e){let r=(0,I.M8)();d.notify(n=>n.stopResource(t,e,r))},addError(t){d.notify(e=>e.addError(t))},addFeatureFlagEvaluation(t,e){d.notify(r=>r.addFeatureFlagEvaluation(t,e))},startDurationVital(t,e){let r=(0,I.M8)();d.notify(n=>n.startDurationVital(t,e,r))},stopDurationVital(t,e){let r=(0,I.M8)();d.notify(n=>n.stopDurationVital(t,e,r))},addDurationVital(t){d.notify(e=>e.addDurationVital(t))},addOperationStepVital:(t,e,r,n)=>{d.notify(i=>i.addOperationStepVital(eK(t),e,eK(r),eK(n)))}}}(r,n,(n,a,s,u,c,l)=>{var d,f;let p=s&&r.createDeflateEncoder?t=>r.createDeflateEncoder(s,t):iE.N,h=(0,eF.B)(nX)(n,a,t,e,u,p,i.observable,c,l,r.sdkName);return t.onRumStart(h.lifeCycle,n,a,h.viewHistory,s,h.telemetry),e.onRumStart(h.lifeCycle,h.hooks,n,a,h.viewHistory,p),d=o,f=h,o={...d,init:t=>{n6("DD_RUM",t)},getInternalContext:f.getInternalContext,stopSession:f.stopSession,getViewContext:f.getViewContext,globalContext:f.globalContext,userContext:f.userContext,accountContext:f.accountContext},nY(n.plugins,"onRumStart",{addEvent:h.addEvent,addError:h.addError}),h}),a=()=>o,s=(t,e)=>{let r=(0,eB.uC)("vital");(0,K.um)(()=>{(0,L.Q6)({feature:"add-operation-step-vital",action_type:"start"}),o.addOperationStepVital(t,"start",{...e,handlingStack:r})})},u=(0,K.dm)((t,e)=>{(0,L.Q6)({feature:"add-operation-step-vital",action_type:"succeed"}),o.addOperationStepVital(t,"end",e)}),c=(0,K.dm)((t,e,r)=>{(0,L.Q6)({feature:"add-operation-step-vital",action_type:"fail"}),o.addOperationStepVital(t,"end",r,e)}),l=(0,iS.m)({init:t=>{let e=Error().stack;(0,K.um)(()=>o.init(t,l,e))},setTrackingConsent:(0,K.dm)(t=>{n.update(t),(0,L.Q6)({feature:"set-tracking-consent",tracking_consent:t})}),setViewName:(0,K.dm)(t=>{o.setViewName(t),(0,L.Q6)({feature:"set-view-name"})}),setViewContext:(0,K.dm)(t=>{o.setViewContext(t),(0,L.Q6)({feature:"set-view-context"})}
2),setViewContextProperty:(0,K.dm)((t,e)=>{o.setViewContextProperty(t,e),(0,L.Q6)({feature:"set-view-context-property"})}),getViewContext:(0,K.dm)(()=>((0,L.Q6)({feature:"set-view-context-property"}),o.getViewContext())),getInternalContext:(0,K.dm)(t=>o.getInternalContext(t)),getInitConfiguration:(0,K.dm)(()=>(0,tf.Go)(o.initConfiguration)),addAction:(t,e)=>{let r=(0,eB.uC)("action");(0,K.um)(()=>{o.addAction({name:eK(t),context:eK(e),startClocks:(0,I.M8)(),type:v.CUSTOM,handlingStack:r}),(0,L.Q6)({feature:"add-action"})})},startAction:(0,K.dm)((t,e)=>{(0,L.Q6)({feature:"start-action"}),o.startAction(eK(t),{type:eK(e?.type),context:eK(e?.context),actionKey:e?.actionKey})}),stopAction:(0,K.dm)((t,e)=>{(0,L.Q6)({feature:"stop-action"}),o.stopAction(eK(t),{type:eK(e?.type),context:eK(e?.context),actionKey:e?.actionKey})}),startResource:(0,K.dm)((t,e)=>{(0,L.Q6)({feature:"start-resource"}),o.startResource(eK(t),{type:eK(e?.type),method:eK(e?.method),context:eK(e?.context),resourceKey:e?.resourceKey})}),stopResource:(0,K.dm)((t,e)=>{(0,L.Q6)({feature:"stop-resource"}),o.stopResource(eK(t),{type:eK(e?.type),statusCode:e?.statusCode,size:e?.size,context:eK(e?.context),resourceKey:e?.resourceKey})}),addError:(t,e)=>{let r=(0,eB.uC)("error");(0,K.um)(()=>{o.addError({error:t,handlingStack:r,context:eK(e),startClocks:(0,I.M8)()}),(0,L.Q6)({feature:"add-error"})})},addTiming:(0,K.dm)((t,e)=>{o.addTiming(eK(t),e)}),setViewLoadingTime:(0,K.dm)(()=>{let t=(0,I.nx)();o.setLoadingTime(t),(0,L.Q6)({feature:"addViewLoadingTime"})}),setGlobalContext:nQ(a,n1.globalContext,n2.setContext,"set-global-context"),getGlobalContext:nQ(a,n1.globalContext,n2.getContext,"get-global-context"),setGlobalContextProperty:nQ(a,n1.globalContext,n2.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:nQ(a,n1.globalContext,n2.removeContextProperty,"remove-global-context-property"),clearGlobalContext:nQ(a,n1.globalContext,n2.clearContext,"clear-global-context"),setUser:nQ(a,n1.userContext,n2.setContext,"set-user"),getUser:nQ(a,n1.userContext,n2.getContext,"get-user"),setUserProperty:nQ(a,n1.userContext,n2.setContextProperty,"set-user-property"),removeUserProperty:nQ(a,n1.userContext,n2.removeContextProperty,"remove-user-property"),clearUser:nQ(a,n1.userContext,n2.clearContext,"clear-user"),setAccount:nQ(a,n1.accountContext,n2.setContext,"set-account"),getAccount:nQ(a,n1.accountContext,n2.getContext,"get-account"),setAccountProperty:nQ(a,n1.accountContext,n2.setContextProperty,"set-account-property"),removeAccountProperty:nQ(a,n1.accountContext,n2.removeContextProperty,"remove-account-property"),clearAccount:nQ(a,n1.accountContext,n2.clearContext,"clear-account"),startView:t=>{let e=(0,eB.uC)("view");(0,K.um)(()=>{o.startView({..."object"==typeof t?t:{name:t},handlingStack:e}),(0,L.Q6)({feature:"start-view"})})},stopSession:(0,K.dm)(()=>{o.stopSession(),(0,L.Q6)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,K.dm)((t,e)=>{o.addFeatureFlagEvaluation(eK(t),eK(e)),(0,L.Q6)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,K.dm)(()=>t.getSessionReplayLink()),startSessionReplayRecording:(0,K.dm)(e=>{t.start(e),(0,L.Q6)({feature:"start-session-replay-recording",force:e?.force})}),stopSessionReplayRecording:(0,K.dm)(()=>t.stop()),addDurationVital:(t,e)=>{let r=(0,eB.uC)("vital");(0,K.um)(()=>{(0,L.Q6)({feature:"add-duration-vital"}),o.addDurationVital({id:U(),name:eK(t),type:b.DURATION,startClocks:(0,I.jR)(e.startTime),duration:e.duration,context:eK(e?.context),description:eK(e?.description),handlingStack:r})})},startDurationVital:(t,e)=>{let r=(0,eB.uC)("vital");(0,K.um)(()=>{(0,L.Q6)({feature:"start-duration-vital"}),o.startDurationVital(eK(t),{vitalKey:e?.vitalKey,context:eK(e?.context),description:eK(e?.description),handlingStack:r})})},stopDurationVital:(0,K.dm)((t,e)=>{(0,L.Q6)({feature:"stop-duration-vital"}),o.stopDurationVital(eK(t),{vitalKey:e?.vitalKey,context:eK(e?.context),description:eK(e?.description)})}),startOperation:s,succeedOperation:u,failOperation:c,startFeatureOperation:s,succeedFeatureOperation:u,failFeatureOperation:c,DEFAULT_TRACKED_RESOURCE_HEADERS:t_});return l}function iA(t,{session:e,viewContext:r,errorType:n}){let i=e?e.id:"no-session-id",o=[];return void 0!==n&&o.push(`error-type=${n}`),r&&(o.push(`seed=${r.id}`),o.push(`from=${r.startClocks.timeStamp}`)),`${function(t){let e=t.site,r=t.subdomain||function(t){switch(t.site){case to.NW:case to.dV:return"app";case to.Bb:return"dd";default:return}}(t);return`https://${r?`${r}.`:""}${e}`}(t)}/rum/replay/sessions/${i}?${o.join("&")}`}var ik=r(94738);function iR(t,e,r,n){let i=(0,ik.sA)([(0,J.ns)(t,"profile")],t=>{e.notify(15,{error:{message:t,source:eG.gf.AGENT,startClocks:(0,I.M8)()}}),(0,L.A2)("Error reported to customer",{"error.message":t})}),o=r(n);return{async send({event:t,...e}){let r=new FormData,n=(0,eW.s)(t);if(!n)throw Error("Failed to serialize event");r.append("event",new Blob([n],{type:"application/json"}),"event.json");let a=n.length;for(let[t,n]of(0,ex.WP)(e)){let e=(0,eW.s)(n);if(!e)throw Error("Failed to serialize attachment");let i=await function(t,e){return new Promise(r=>{t.write(e),t.finish(t=>{r(t)})})}(o,e);a+=i.outputBytesCount,r.append(t,new Blob([i.output]),t)}i.send({data:r,bytesCount:a})}}}},48867:(t,e,r)=>{"use strict";function n(t){return t>=500}function i(t){try{return t.clone()}catch{return}}r.d(e,{G:()=>n,i:()=>i})},50161:(t,e,r)=>{"use strict";r.d(e,{b:()=>i,e:()=>n});let n="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}}},50562:(t,e,r)=>{"use strict";r.d(e,{default:()=>o});var n=r(55672),i=r(44951);function o(t){let{locale:e,...r}=t;if(!e)throw Error(void 0);return(0,i.jsx)(n.Dk,{locale:e,...r})}},52084:(t,e,r)=>{"use strict";function n(t,e){return t*e/100}r.d(e,{$5:()=>o,it:()=>n});let i=new Map;function o(t,e){if(100===e)return!0;
2if(0===e)return!1;let r=i.get(e);if(t===r?.sessionId)return r.decision;let n=function(t,e){let r=1n<<64n;return Number(0xf6b75ab2bc471c7n*t%r)<=e/100*Number(r)}(BigInt(`0x${t.split("-")[4]}`),e);return i.set(e,{sessionId:t,decision:n}),n}},53936:(t,e,r)=>{"use strict";r.d(e,{L2:()=>L});var n=r(14149),i=r(79134);function o(t,e){let r,o=0,a=[],s=!0,u=0,c=[],{stop:l}=(0,n.q2)(t,"message",({data:t})=>{if("wrote"!==t.type||t.streamId!==e)return;let n=c[0];n&&(n.id===t.id?(c.shift(),o+=t.additionalBytesCount,a.push(t.result),r=t.trailer,n.writeCallback?n.writeCallback(t.result.byteLength):n.finishCallback&&n.finishCallback()):n.id<t.id&&l())});function d(){let t=0===a.length?new Uint8Array(0):(0,i.wh)(a.concat(r)),e={rawBytesCount:o,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return o=0,a=[],e}function f(){s||(t.postMessage({action:"reset",streamId:e}),s=!0)}return{isAsync:!0,get isEmpty(){return s},write(r,n){t.postMessage({action:"write",id:u,data:r,streamId:e}),c.push({id:u,writeCallback:n,data:r}),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 a=r(8179),s=r(26824),u=r(94840);function c({configuredUrl:t,error:e,source:r,scriptType:n}){var i;if(a.Vy.error(`${r} failed to start: an error occurred while initializing the ${n}:`,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 ${n} URL ${t} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",a.Vy.error(`${e} See documentation at ${s.fH}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===n&&(0,u.VJ)(e)}var l=r(86391),d=r(20162),f=r(19959);let p=30*f.OY;function h(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])&&
vendor: 4,494 bytes, line 2
2(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;for(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)}
vendor: 8,488 bytes, line 2
2(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>
2=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);
2i.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.7.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 m={status:0};function g(t,e,r){switch(0===m.status&&function(t,e){try{let r=(0,l.B)(h)(t),{stop:i}=(0,n.q2)(r,"error",r=>{y(t,e,r)}),{stop:o}=(0,n.q2)(r,"message",({data:r})=>{var n;"errored"===r.type?y(t,e,r.error,r.streamId):"initialized"===r.type&&(n=r.version,1===m.status&&(m={status:3,worker:m.worker,stop:m.stop,version:n}))});r.postMessage({action:"init"}),(0,d.wg)(()=>{var t;return t=e,void(1===m.status&&(a.Vy.error(`${t} failed to start: a timeout occurred while initializing the Worker`),m.initializationFailureCallbacks.forEach(t=>t()),m={status:2}))},p),m={status:1,worker:r,stop:()=>{i(),o()},initializationFailureCallbacks:[]}}catch(r){y(t,e,r)}}(t,e),m.status){case 1:return m.initializationFailureCallbacks.push(r),m.worker;case 3:return m.worker}}function y(t,e,r,n){1===m.status||0===m.status?(c({configuredUrl:t.workerUrl,error:r,source:e,scriptType:"worker"}),1===m.status&&m.initializationFailureCallbacks.forEach(t=>t()),m={status:2}):(0,u.VJ)(r,{worker_version:3===m.status&&m.version,stream_id:n})}var v=r(9968),_=r(48864),b=r(43116);async function w(){try{return await (0,l.B)(E)()}catch(t){c({error:t,source:"Recorder",scriptType:"module"})}}async function E(){return(await r.e(3581).then(r.bind(r,42294))).startRecording}var S=r(13076),C=r(99428),A=r(27268);async function k(t,e,r){try{return await r}finally{t.notify(e)}}var R=r(69800),T=r(99324),O=r(15616);function x(){return void 0!==O.J.Profiler}var I=r(16417);async function N(){try{return await (0,l.B)(M)()}catch(t){c({error:t,source:"Profiler",scriptType:"module"})}}async function M(){return(await r.e(2440).then(r.bind(r,32297))).createRumProfiler}var P=r(52084),D=r(11776);let L=(0,_.AB)(function(){let t;if((0,R.d0)()&&!(0,R.Ww)(R.oc.RECORDS))return{start:b.l,stop:b.l,getReplayStats:()=>void 0,onRumStart:b.l,isRecording:()=>!1,getSessionReplayLink:()=>void 0};let{strategy:e,shouldStartImmediately:r}=(t=0,{strategy:{start(){t=1},stop(){t=2},isRecording:()=>!1,getSessionReplayLink:b.l},shouldStartImmediately:e=>1===t||0===t&&!e.startSessionReplayRecordingManually});return{start:t=>e.start(t),stop:()=>e.stop(),getSessionReplayLink:()=>
2e.getSessionReplayLink(),onRumStart:function(t,n,i,a,s,c){let l;e=function(t,e,r,n,i,o){let a,s=0;e.subscribe(_.Rg.SESSION_EXPIRED,()=>{(2===s||3===s)&&(p(),s=1)}),e.subscribe(_.Rg.SESSION_RENEWED,()=>{1===s&&d()});let c=new S.cP;!function(t,e){let r,n,i;if(!t.metricsEnabled)return b.l;let{unsubscribe:o}=e.subscribe(t=>{switch(t.type){case"start":r={forced:t.forced,timestamp:(0,f.nx)()},n=void 0,i=void 0;break;case"document-ready":r&&(n=(0,f.vk)(r.timestamp,(0,f.nx)()));break;case"recorder-settled":r&&(i=(0,f.vk)(r.timestamp,(0,f.nx)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":var e,a,s,c;o(),r&&(0,u.Gk)(u.Xf.RECORDER_INIT_METRICS_TELEMETRY_NAME,{metrics:(e=r.forced,a=i,s=(0,f.vk)(r.timestamp,(0,f.nx)()),c=t.type,{forced:e,loadRecorderModuleDuration:a,recorderInitDuration:s,result:c,waitForDocReadyDuration:n})})}})}(o,c);let l=async u=>{c.notify({type:"start",forced:u});let[l]=await Promise.all([k(c,{type:"recorder-settled"},w()),k(c,{type:"document-ready"},(0,C.N)("interactive"))]);if(2!==s)return void c.notify({type:"aborted"});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,r,n,d,o)),s=3,c.notify({type:"succeeded"})};function d(e){var n,i,o,a,u;let c=r.findTrackedSession(),d=c?(0,_.K$)(c,t):void 0;if(n=d,i=e,!(void 0!==n&&(n!==_.xC.OFF||i?.force))){s=1;return}if(2===(o=s)||3===o)return;s=2;let f=(a=d,(u=e)&&u.force&&a===_.xC.OFF||!1);l(f).catch(A.Dx),f&&r.updateSessionState({forcedReplay:"1"})}function p(){3===s&&a?.(),s=0}return{start:d,stop:p,getSessionReplayLink:()=>(function(t,e,r,n){var i,o,a;let s=e.findTrackedSession(),u=(i=t,o=s,a=n,o?(0,_.K$)(o,i)===_.xC.OFF?"incorrect-session-plan":a?void 0:"replay-not-started":"rum-not-tracked");return(0,_.dx)(t,{viewContext:r.findView(),errorType:u,session:s})})(t,r,n,0!==s),isRecording:()=>3===s}}(n,t,i,a,function(){return!l&&(s??=g(n,"Datadog Session Replay",()=>e.stop()))&&(l=o(s,T.j.REPLAY)),l},c),r(n)&&e.start()},isRecording:()=>3===m.status&&e.isRecording(),getReplayStats:t=>3===m.status?(0,v.lv)(t):void 0}}(),function(){let t;return{onRumStart:function(e,r,n,i,o,a){var s,u;let c,d=i.findTrackedSession();if(!d||(s=n,u=d,(0,R.d0)()?!(0,R.Ww)(R.oc.PROFILES):!(0,P.$5)(u.id,(0,P.it)(s.sessionSampleRate,s.profilingSampleRate))))return;let f=(c={status:"starting"},r.assemble.register(({eventType:t})=>t!==_.bb.VIEW&&t!==_.bb.LONG_TASK&&t!==_.bb.ACTION&&t!==_.bb.VITAL?I.$O:{type:t,_dd:{profiling:c}}),{get:()=>c,set:t=>{c=t}});if(!(0,l.B)(x)())return void f.set({status:"error",error_reason:"not-supported-by-browser"});(0,l.B)(N)().then(r=>{if(!r)return void f.set({status:"error",error_reason:"failed-to-lazy-load"});(t=r(n,e,i,f,a,o,void 0)).start()}).catch(A.Dx)},stop:()=>{t?.stop()}}}(),{startDeflateWorker:g,createDeflateEncoder:o,sdkName:"rum"});(0,D.Z)(O.J,"DD_RUM",L)},54259:(t,e,r)=>{"use strict";let n;r.d(e,{A:()=>s});let i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},o=new Uint8Array(16),a=[];for(let t=0;t<256;++t)a.push((t+256).toString(16).slice(1));let s=function(t,e,r){if(i.randomUUID&&!e&&!t)return i.randomUUID();let s=(t=t||{}).random||(t.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)})();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e){r=r||0;for(let t=0;t<16;++t)e[r+t]=s[t];return e}return function(t,e=0){return a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]}(s)}},55e3:(t,e,r)=>{"use strict";r.d(e,{h:()=>o});var n=r(48716),i=r(15616);function o(t,e){return(0,n.W)(i.J,"fetch")(t,e)}},58182:(t,e,r)=>{"use strict";r.d(e,{X:()=>_});var n=r(8179),i=r(26824),o=r(86391),a=r(79134),s=r(81494),u=r(94738),c=r(11947),l=r(87251),d=r(78497),f=r(13076),p=r(20162),h=r(15616);let m=30*r(19959).OY,g=h.W?1:50;function y({pageMayExitObservable:t}
2){let e,r,n=new f.cP,i=t.subscribe(t=>{e=t.reason;try{n.notify(t.reason)}finally{e=void 0}c(t.reason)}),o=new f.cP(()=>()=>{i.unsubscribe()}),a=0,s=0;function c(t){if(0===s)return;let e=s,n=a;s=0,a=0,(0,p.DJ)(r),r=void 0,o.notify({reason:t,messagesCount:e,bytesCount:n})}return{flushObservable:o,prepareUrgentFlushObservable:n,forceFlush:c,get messagesCount(){return s},notifyBeforeAddMessage(t){a+t>=u.AK&&c(e??"bytes_limit"),s+=1,a+=t,void 0===r&&(r=(0,p.wg)(()=>{c("duration_limit")},m))},notifyAfterAddMessage(t=0){a+=t,s>=g?c(e??"messages_limit"):a>=u.AK&&c(e??"bytes_limit")}}}let v=256*a._m;function _({encoder:t=(0,d.N)(),endpoints:e,reportError:r}){let f=(0,o.B)(u.sA)(e,r),p=(0,o.B)(l._T)(),h=(0,o.B)(y)({pageMayExitObservable:p}),m={},g=h.flushObservable.subscribe(e=>(function(e){let r=(0,c.KQ)(m).join("\n");m={};let n=(0,l.Kp)(e.reason),i=n?f.sendOnExit:f.send;if(n&&t.isAsync){let e=t.finishSync();e.outputBytesCount&&i(b(e));let n=[e.pendingData,r].filter(Boolean).join("\n");n&&i({data:n,bytesCount:(0,a.WW)(n)})}else r&&t.write(t.isEmpty?r:` 3${r}`),t.finish(t=>{i(b(t))})})(e));function _(e,r){let o=(0,s.s)(e),u=t.estimateEncodedBytesCount(o);if(u>=v)return void n.Vy.warn(`Discarded a message whose size was bigger than the maximum allowed size ${v/a._m}KiB. ${i.xG} ${n.Xs}/#technical-limitations`);if(void 0!==r){let e;void 0!==m[r]?e=u-t.estimateEncodedBytesCount(m[r]):(h.notifyBeforeAddMessage(u),e=0),m[r]=o,h.notifyAfterAddMessage(e)}else h.notifyBeforeAddMessage(u),t.write(t.isEmpty?o:` 4${o}`,t=>{h.notifyAfterAddMessage(t-u)})}return{get isEmpty(){return 0===h.messagesCount},add:_,upsert:_,prepareUrgentFlushObservable:h.prepareUrgentFlushObservable,forceFlush:h.forceFlush,flushObservable:h.flushObservable,stop:g.unsubscribe}}function b(t){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding}}},58604:(t,e,r)=>{"use strict";r.d(e,{$:()=>s,s:()=>a});var n=r(30961),i=r(37088),o=r(79900),a=class extends i.k{#t;#e;#r;#n;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#r=t.mutationCache,this.#e=[],this.state=t.state||s(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#i({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=(0,o.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#i({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});let n="pending"===this.state.status,i=!this.#n.canStart();try{if(n)e();else{this.#i({type:"pending",variables:t,isPaused:i}),this.#r.config.onMutate&&await this.#r.config.onMutate(t,this,r);let e=await this.options.onMutate?.(t,r);e!==this.state.context&&this.#i({type:"pending",context:e,variables:t,isPaused:i})}let o=await this.#n.start();return await this.#r.config.onSuccess?.(o,t,this.state.context,this,r),await this.options.onSuccess?.(o,t,this.state.context,r),await this.#r.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(o,null,t,this.state.context,r),this.#i({type:"success",data:o}),o}catch(e){try{await this.#r.config.onError?.(e,t,this.state.context,this,r)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,r)}catch(t){Promise.reject(t)}try{await this.#r.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,r)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,r)}catch(t){Promise.reject(t)}throw this.#i({type:"error",error:e}),e}finally{this.#r.runNext(this)}}#i(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};
4case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),n.jG.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#r.notify({mutation:this,type:"updated",action:t})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},61230:(t,e,r)=>{"use strict";r.d(e,{Aq:()=>a,R9:()=>i,q7:()=>u,sr:()=>s});var n=r(74987);let i=function(t){return t.TRACK_INTAKE_REQUESTS="track_intake_requests",t.TRACK_WEBSOCKETS="track_websockets",t}({}),o=new Set;function a(t){Array.isArray(t)&&t.filter(t=>(0,n.Rj)(i,t)).forEach(t=>{o.add(t)})}function s(t){return o.has(t)}function u(){return o}},62009:(t,e,r)=>{"use strict";r.d(e,{q:()=>i});var n=r(15616);function i(){let{navigator:t}=n.J;return{status:t?.onLine?"connected":"not_connected",interfaces:t?.connection?.type?[t.connection.type]:void 0,effective_type:t?.connection?.effectiveType}}},69800:(t,e,r)=>{"use strict";r.d(e,{Ww:()=>s,Y9:()=>a,d0:()=>u,oc:()=>o});var n=r(8179),i=r(15616);let o=function(t){return t.RECORDS="records",t.PROFILES="profiles",t}({});function a(){let t=i.J.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,r,n){t.send(JSON.stringify({eventType:e,event:r,view:n?{id:n}:void 0}))}}}function s(t){let e=a();return!!e&&e.getCapabilities().includes(t)}function u(t=i.J.location?.hostname){return a()?.getAllowedWebViewHosts().some(e=>(function(t,e){if(!e.includes("*"))return t===e||t.endsWith(`.${e}`);let r=e.split("*");if(2!==r.length)return n.Vy.error(`Invalid WebView host pattern "${e}": only one wildcard (*) is supported.`),!1;let[i,o]=r;return t.length>i.length+o.length&&t.startsWith(i)&&t.endsWith(o)})(t,e))??!1}},71102:(t,e,r)=>{"use strict";r.d(e,{AQ:()=>i,HB:()=>o,Q_:()=>s,_P:()=>a});var n=r(19959);let i=4*n.MA,o=15*n.iW,a=n.$H,s={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"}},72613:(t,e,r)=>{"use strict";r.d(e,{H7:()=>s,my:()=>u,tv:()=>d});var n=r(27268),i=r(20162),o=r(43116),a=r(3674);function s(t,e,r,{computeHandlingStack:n}={}){let i=t[e];if("function"!=typeof i)if(!(e in t&&"string"==typeof e&&e.startsWith("on")))return{stop:o.l};else i=o.l;let u=!1,{stop:d}=c(t,e,i,function(){if(u)return i.apply(this,arguments);let t=Array.from(arguments);return l(r,{target:this,parameters:t,handlingStack:n?(0,a.uC)("instrumented method"):void 0},()=>i.apply(this,t))});return{stop:()=>{u=!0,d()}}}function u(t,e,r,{computeHandlingStack:n}={}){let i=t[e];if("function"!=typeof i)return{stop:o.l};let s=!1,d=function(){if(!new.target)return Reflect.apply(i,this,Array.from(arguments));let t=new.target===d?i:new.target;if(s)return Reflect.construct(i,arguments,t);let e=Array.from(arguments);return l(r,{parameters:e,handlingStack:n?(0,a.uC)("instrumented constructor"):void 0},()=>Reflect.construct(i,e,t))},f=function(t,e){for(let r of[].concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e))){let n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n)}let{stop:r}=c(e.prototype,"constructor",e.prototype.constructor,t);return r}(d,i),{stop:p}=c(t,e,i,d);return{stop:()=>{s=!0,f(),p()}}}function c(t,e,r,n){return t[e]=n,{stop:()=>{t[e]===n&&(t[e]=r)}}}function l(t,e,r){let i;(0,n.um)(t,null,[{...e,onPostCall:t=>{i=t}}]);let o=r();return i&&(0,n.um)(i,null,[o]),o}function d(t,e,r){let n=Object.getOwnPropertyDescriptor(t,e);if(!n?.set||!n.configurable)return{stop:o.l};let a=o.l,s=(t,e)=>{(0,i.wg)(()=>{s!==a&&r(t,e)},0)},u=function(t){n.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,n),s=a}}}},74987:(t,e,r)=>{"use strict";r.d(e,{LG:()=>u,RI:()=>s,Rj:()=>a,XU:()=>i,yG:()=>o});let n=(t,e)=>"__proto__"===t?void 0:e;function i(t){try{return JSON.parse(t,n)}catch{}}function o(t){return{...t}}function a(t,e){return Object.keys(t).some(r=>t[r]===e)}function s(t){return 0===Object.keys(t).length}function u(t,e){let r={};for(let n of Object.keys(t))r[n]=e(t[n]);return r}},77180:(t,e,r)=>{"use strict";r.d(e,{y:()=>i});var n=r(8179);function i(t,e){return(...r)=>{try{return t(...r)}catch(t){n.Vy.error(e,t)}}}},77407:(t,e,r)=>{"use strict";r.d(e,{N:()=>o,p:()=>i});let n=!1;function i(t){n=t}function o(){return n}},78497:(t,e,r)=>{"use strict";r.d(e,{N:()=>i});var n=r(79134);function i(){let t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write(r,i){let o=(0,n.WW)(r);e+=o,t+=r,i&&i(o)},finish(t){t(this.finishSync())},finishSync(){let r={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,r},estimateEncodedBytesCount:t=>t.length}}},79134:(t,e,r)=>{"use strict";r.d(e,{WW:()=>a,_m:()=>n,iH:()=>i,wh:()=>s});let n=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)),r=0;for(let n of t)e.set(n,r),r+=n.length;return e}},81091:(t,e,r)=>{"use strict";let n;r.d(e,{T:()=>
4o,h:()=>m});var i=r(86989);function o(t){let e=[],r=h(t,"stack"),i=String(t);if(r?.startsWith(i)&&(r=r.slice(i.length)),r&&r.split("\n").forEach(t=>{let r=function(t){let e=u.exec(t);if(!e)return;let r=e[2]?.indexOf("native")===0,n=e[2]?.indexOf("eval")===0,i=c.exec(e[2]);return n&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:r?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:e[3]?+e[3]:void 0,url:r?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 r=e[3]&&e[3].indexOf(" > eval")>-1,n=p.exec(e[3]);return r&&n&&(e[3]=n[1],e[4]=n[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);r&&(!r.func&&r.line&&(r.func="?"),e.push(r))}),e.length>0&&function(){if(void 0!==n)return n;class t extends Error{constructor(){super(),this.name="Error"}}let[e,r]=[t,Error].map(t=>new t);return n=y(Object.getPrototypeOf(e))&&r.stack!==e.stack}()&&t instanceof Error){let r=[],n=t;for(;(n=Object.getPrototypeOf(n))&&y(n);){let t=n.constructor?.name||"?";r.push(t)}for(let t=r.length-1;t>=0&&e[0]?.func===r[t];t--)e.shift()}return{message:h(t,"message"),name:h(t,"name"),stack:e}}let a="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\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 h(t,e){return(0,i.OE)(t)&&"string"==typeof t[e]?t[e]:void 0}function m(t,e,r,n){var i;let o,a;if(void 0===e)return;let{name:s,message:u}=(i=t,"[object String]"===({}).toString.call(i)&&([,o,a]=g.exec(i)),{name:o,message:a});return{name:s,message:u,stack:[{url:e,column:n,line:r}]}}let g=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function y(t){return String(t.constructor).startsWith("class ")}},81494:(t,e,r)=>{"use strict";r.d(e,{M:()=>o,s:()=>i});var n=r(43116);function i(t,e,r){if("object"!=typeof t||null===t)return JSON.stringify(t);let n=o(Object.prototype),i=o(Array.prototype),a=o(Object.getPrototypeOf(t)),s=o(t);try{return JSON.stringify(t,e,r)}catch{return"<error: unable to serialize object>"}finally{n(),i(),a(),s()}}function o(t){let e=t.toJSON;return e?(delete t.toJSON,()=>{t.toJSON=e}):n.l}},83929:(t,e,r)=>{"use strict";r.d(e,{b:()=>i});var n=r(15616);function i(t,e){let r=n.J.__ddBrowserSdkExtensionCallback;r&&r({type:t,payload:e})}},86391:(t,e,r)=>{"use strict";function n(t){return t}r.d(e,{B:()=>n})},86989:(t,e,r)=>{"use strict";function n(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function i(t){return"object"===n(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}r.d(e,{OE:()=>i,Pw:()=>n,Vl:()=>a,fp:()=>o})},87201:(t,e,r)=>{"use strict";r.d(e,{n:()=>l});var n=r(46047),i=r(58604),o=r(30961),a=r(84906),s=r(59376),u=class extends a.Q{#t;#o=void 0;#a;#s;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#u()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,s.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,s.EN)(e.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(t){this.#u(),this.#c(t)}getCurrentResult(){return this.#o}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#u(),this.#c()}mutate(t,e){return this.#s=e,this.#a?.removeObserver(this),this.#a=this.#t.getMutationCache().build(this.#t,this.options),this.#a.addObserver(this),this.#a.execute(t)}#u(){let t=this.#a?.state??(0,i.$)();this.#o={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#c(t){o.jG.batch(()=>
4{if(this.#s&&this.hasListeners()){let e=this.#o.variables,r=this.#o.context,n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#s.onSuccess?.(t.data,e,r,n)}catch(t){Promise.reject(t)}try{this.#s.onSettled?.(t.data,null,e,r,n)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#s.onError?.(t.error,e,r,n)}catch(t){Promise.reject(t)}try{this.#s.onSettled?.(void 0,t.error,e,r,n)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#o)})})}},c=r(97364);function l(t,e){let r=(0,c.jE)(e),[i]=n.useState(()=>new u(r,t));n.useEffect(()=>{i.setOptions(t)},[i,t]);let a=n.useSyncExternalStore(n.useCallback(t=>i.subscribe(o.jG.batchCalls(t)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=n.useCallback((t,e)=>{i.mutate(t,e).catch(s.lQ)},[i]);if(a.error&&(0,s.GU)(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}},87251:(t,e,r)=>{"use strict";r.d(e,{Kp:()=>c,_T:()=>u,y5:()=>s});var n=r(13076),i=r(14149),o=r(11947),a=r(15616);let s={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function u(){return new n.cP(t=>{let e=a.J.window;if(!e)return;let{stop:r}=(0,i.lQ)(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}),n=(0,i.q2)(e,"beforeunload",()=>{t.notify({reason:s.UNLOADING})}).stop;return()=>{r(),n()}})}function c(t){return(0,o.KQ)(s).includes(t)}},90677:(t,e,r)=>{"use strict";r.d(e,{Hg:()=>u,np:()=>s,ns:()=>a});var n=r(17476),i=r(19959),o=r(43633);function a(t,e,r){return{build:(n,o)=>u({proxy:t.proxy,site:t.site,path:`/api/v2/${e}`,parameters:function({clientToken:t,source:e="browser"},r,n,{retry:o,encoding:a},s=[]){let u=[`ddsource=${e}`,`dd-api-key=${t}`,`dd-evp-origin-version=${encodeURIComponent("7.7.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"===r&&(u.push(`batch_time=${(0,i.nx)()}`,`_dd.api=${n}`),o&&u.push(`_dd.retry_count=${o.count}`,`_dd.retry_after=${o.lastFailureStatus}`)),u.join("&")}(t,e,n,o,r)}),trackType:e}}function s({replica:t,proxy:e,source:r},n){if(t)return a({clientToken:t.clientToken,proxy:e,source:r,site:o.NW},n,"rum"===n?[`application.id=${t.applicationId}`]:void 0)}function u({proxy:t,site:e=o.NW,path:r,parameters:i="",subdomain:a}){let s=r;if(i&&(s+=`?${i}`),"string"==typeof t){let e=`${(0,n.l2)(t)}?ddforward=${encodeURIComponent(s)}`;return a&&(e+=`&ddforwardSubdomain=${a}`),e}if("function"==typeof t)return t({path:r,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}`}},94153:(t,e,r)=>{"use strict";r.d(e,{G3:()=>f,_Y:()=>p});var n,i=r(46047),o=r(37811),a=function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=function(t){var e;t?function(t){if(t)for(;t.lastChild;)t.lastChild.remove()}("string"==typeof t?document.getElementById(t):t):(e=document.querySelector(".grecaptcha-badge"))&&e.parentNode&&document.body.removeChild(e.parentNode)},u=function(t,e){s(e),window.___grecaptcha_cfg=void 0;var r,n=document.querySelector("#"+t);n&&n.remove(),(r=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))&&r.remove()},c=function(t){var e=t.render,r=t.onLoadCallbackName,n=t.language,i=t.onLoad,o=t.useRecaptchaNet,a=t.useEnterprise,s=t.scriptProps,u=void 0===s?{}:s,c=u.nonce,l=void 0===c?"":c,d=u.defer,f=u.async,p=u.id,h=u.appendTo,m=(void 0===p?"":p)||"google-recaptcha-v3";if(document.querySelector("#"+m))i();else{var g,y="https://www."+((g={useEnterprise:a,useRecaptchaNet:o}).useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(g.useEnterprise?"enterprise.js":"api.js"),v=document.createElement("script");
4v.id=m,v.src=y+"?render="+e+("explicit"===e?"&onload="+r:"")+(n?"&hl="+n:""),l&&(v.nonce=l),v.defer=!!(void 0!==d&&d),v.async=!!(void 0!==f&&f),v.onload=i,("body"===h?document.body:document.getElementsByTagName("head")[0]).appendChild(v)}},l=function(t){void 0===o||o.env,console.warn(t)};(n||(n={})).SCRIPT_NOT_AVAILABLE="Recaptcha script is not available";var d=(0,i.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});function f(t){var e=t.reCaptchaKey,r=t.useEnterprise,o=void 0!==r&&r,s=t.useRecaptchaNet,f=void 0!==s&&s,p=t.scriptProps,h=t.language,m=t.container,g=t.children,y=(0,i.useState)(null),v=y[0],_=y[1],b=(0,i.useRef)(e),w=JSON.stringify(p),E=JSON.stringify(null==m?void 0:m.parameters);(0,i.useEffect)(function(){if(e){var t=(null==p?void 0:p.id)||"google-recaptcha-v3",r=(null==p?void 0:p.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[r]=function(){var t=o?window.grecaptcha.enterprise:window.grecaptcha,r=a({badge:"inline",size:"invisible",sitekey:e},(null==m?void 0:m.parameters)||{});b.current=t.render(null==m?void 0:m.element,r)},c({render:(null==m?void 0:m.element)?"explicit":e,onLoadCallbackName:r,useEnterprise:o,useRecaptchaNet:f,scriptProps:p,language:h,onLoad:function(){if(window&&window.grecaptcha){var t=o?window.grecaptcha.enterprise:window.grecaptcha;t.ready(function(){_(t)})}else l("<GoogleRecaptchaProvider /> "+n.SCRIPT_NOT_AVAILABLE)},onError:function(){l("Error loading google recaptcha script")}}),function(){u(t,null==m?void 0:m.element)}}l("<GoogleReCaptchaProvider /> recaptcha key not provided")},[o,f,w,E,h,e,null==m?void 0:m.element]);var S=(0,i.useCallback)(function(t){if(!v||!v.execute)throw Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return v.execute(b.current,{action:t})},[v,b]),C=(0,i.useMemo)(function(){return{executeRecaptcha:v?S:void 0,container:null==m?void 0:m.element}},[S,v,null==m?void 0:m.element]);return i.createElement(d.Provider,{value:C},g)}d.Consumer;var p=function(){return(0,i.useContext)(d)};function h(t,e){return t(e={exports:{}},e.exports),e.exports}var m="function"==typeof Symbol&&Symbol.for,g=m?Symbol.for("react.element"):60103,y=m?Symbol.for("react.portal"):60106,v=m?Symbol.for("react.fragment"):60107,_=m?Symbol.for("react.strict_mode"):60108,b=m?Symbol.for("react.profiler"):60114,
4w=m?Symbol.for("react.provider"):60109,E=m?Symbol.for("react.context"):60110,S=m?Symbol.for("react.async_mode"):60111,C=m?Symbol.for("react.concurrent_mode"):60111,A=m?Symbol.for("react.forward_ref"):60112,k=m?Symbol.for("react.suspense"):60113,R=m?Symbol.for("react.suspense_list"):60120,T=m?Symbol.for("react.memo"):60115,O=m?Symbol.for("react.lazy"):60116,x=m?Symbol.for("react.block"):60121,I=m?Symbol.for("react.fundamental"):60117,N=m?Symbol.for("react.responder"):60118,M=m?Symbol.for("react.scope"):60119;function P(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case g:switch(t=t.type){case S:case C:case v:case b:case _:case k:return t;default:switch(t=t&&t.$$typeof){case E:case A:case O:case T:case w:return t;default:return e}}case y:return e}}}function D(t){return P(t)===C}var L={AsyncMode:S,ConcurrentMode:C,ContextConsumer:E,ContextProvider:w,Element:g,ForwardRef:A,Fragment:v,Lazy:O,Memo:T,Portal:y,Profiler:b,StrictMode:_,Suspense:k,isAsyncMode:function(t){return D(t)||P(t)===S},isConcurrentMode:D,isContextConsumer:function(t){return P(t)===E},isContextProvider:function(t){return P(t)===w},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===g},isForwardRef:function(t){return P(t)===A},isFragment:function(t){return P(t)===v},isLazy:function(t){return P(t)===O},isMemo:function(t){return P(t)===T},isPortal:function(t){return P(t)===y},isProfiler:function(t){return P(t)===b},isStrictMode:function(t){return P(t)===_},isSuspense:function(t){return P(t)===k},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===v||t===C||t===b||t===_||t===k||t===R||"object"==typeof t&&null!==t&&(t.$$typeof===O||t.$$typeof===T||t.$$typeof===w||t.$$typeof===E||t.$$typeof===A||t.$$typeof===I||t.$$typeof===N||t.$$typeof===M||t.$$typeof===x)},typeOf:P},U=h(function(t,e){}),$=(U.AsyncMode,U.ConcurrentMode,U.ContextConsumer,U.ContextProvider,U.Element,U.ForwardRef,U.Fragment,U.Lazy,U.Memo,U.Portal,U.Profiler,U.StrictMode,U.Suspense,U.isAsyncMode,U.isConcurrentMode,U.isContextConsumer,U.isContextProvider,U.isElement,U.isForwardRef,U.isFragment,U.isLazy,U.isMemo,U.isPortal,U.isProfiler,U.isStrictMode,U.isSuspense,U.isValidElementType,U.typeOf,h(function(t){t.exports=L})),V={};V[$.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[$.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype},94738:(t,e,r)=>{"use strict";r.d(e,{AK:()=>v,sA:()=>_});var n=r(27268),i=r(13076),o=r(79134),a=r(55e3),s=r(20162),u=r(48867),c=r(19959);let l=80*o._m,d=20*o.iH,f=c.iW,p=c.OY;function h(t,e,r,n,i,o){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?m(t,e,r,o,{onSuccess:()=>g(0,e,r,n,i,o),onFailure:()=>{e.queuedPayloads.enqueue(t)||o.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t}),function t(e,r,n,i,o){2===e.transportStatus&&(0,s.wg)(()=>{m(e.queuedPayloads.first(),e,r,o,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=p,g(1,e,r,n,i,o)},onFailure:()=>{e.currentBackoffTime=Math.min(f,2*e.currentBackoffTime),t(e,r,n,i,o)}})},e.currentBackoffTime)}(e,r,n,i,o)}}):e.queuedPayloads.enqueue(t)||o.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t})}function m(t,e,r,n,{onSuccess:i,onFailure:o}){e.bandwidthMonitor.add(t),r(t,r=>{var a;e.bandwidthMonitor.remove(t),"opaque"!==(a=r).type&&(0===a.status&&!navigator.onLine||408===a.status||429===a.status||(0,u.G)(a.status))?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:r.status},n.notify({type:"failure",bandwidth:e.bandwidthMonitor.stats(),payload:t}),o()):(e.transportStatus=0,n.notify({type:"success",bandwidth:e.bandwidthMonitor.stats(),payload:t}),i())})}function g(t,e,r,n,i,a){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i(`Reached max ${n} events size queued for upload: ${d/o.iH}MiB`),e.queueFullReported=!0);let s=e.queuedPayloads;for(e.queuedPayloads=y();s.size()>0;)h(s.dequeue(),e,r,n,i,a)}function y(){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>=d}}}let v=16*o._m;function _(t,e,r=v){let o=new i.cP,a={transportStatus:0,currentBackoffTime:p,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=l&&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:y(),queueFullReported:!1};return{observable:o,send:r=>{for(let n of t)h(r,a,(t,e)=>{w(n,t,e)},n.trackType,e,o)},sendOnExit:e=>{for(let i of t)!function(t,e,r){if(r.bytesCount<e)try{let e=t.build("beacon",r);if(navigator.sendBeacon(e,r.data))return}catch(t){var i;i=t,b||(b=!0,(0,n.Dx)(i))}w(t,r)}(i,r,e)}}}let b=!1;function w(t,e,r){(0,a.h)(t.build("fetch",e),{method:"POST",body:e.data,mode:"cors"}).then((0,n.dm)(t=>r?.({status:t.status,type:t.type}))).catch((0,n.dm)(()=>r?.({status:0})))}},94840:(t,e,r)=>{"use strict";let n;r.d(e,{Xf:()=>O,H0:()=>T,Rr:()=>D,A2:()=>M,VJ:()=>P,Gk:()=>L,Q6:()=>U,a5:()=>N});var i=r(8179),o=r(27268),a=r(13076),s=r(61230),u=r(43116),c=r(81091),l=r(3674),d=r(81494),f=r(50161),p=r(33661),h=r(83929),m=r(741),g=r(62009),y=r(69800),v=r(58182);let _={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"};var b=r(43633),w=r(90677),E=r(15648),S=r(15616),C=r(77407),A=r(19959),k=r(16417);let R=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],T=function(t){return t.LOGS="browser-logs-sdk",t.RUM="browser-rum-sdk",t}({}),O=function(t){return t.CUSTOMER_DATA_METRIC_NAME="Customer data measures",t.REMOTE_CONFIGURATION_METRIC_NAME="remote configuration metrics",t.RECORDER_INIT_METRICS_TELEMETRY_NAME="Recorder init metrics",t.SEGMENT_METRICS_TELEMETRY_NAME="Segment network request metrics",t.SESSION_MANAGER_INIT_METRICS_TELEMETRY_NAME="Session manager init metrics",t}({}),x=[b.R8,b.KG];function I(){return n||(n=new a.dX(100)),n}function N(t,e,r,n){let i=new a.cP,{enabled:c,metricsEnabled:l}=function(t,e,r,n,i,a=1,u=15){let c={}
4,l=!x.includes(e.site)&&(0,m.ic)(e.telemetrySampleRate),f={[_.LOG]:l,[_.CONFIGURATION]:l&&(0,m.ic)(e.telemetryConfigurationSampleRate),[_.USAGE]:l&&(0,m.ic)(e.telemetryUsageSampleRate),metric:l&&(0,m.ic)(a)},y={is_local_file:S.J.location?.protocol==="file:",is_worker:S.W},v=I();return v.subscribe(({rawEvent:o,metricName:a})=>{var l,m,v,_;if(a&&!f.metric||!f[o.type])return;let b=a||o.status||o.type,w=c[b];if(w||(w=c[b]=new Set),w.size>=u)return;let S=(0,d.s)(o);if(w.has(S))return;let C=r.trigger({startTime:(0,A.M8)().relative});if(C===k.ug)return;let R=(l=C,m=t,v=o,_=y,(0,E.kg)({type:"telemetry",date:(0,A.M8)().timeStamp,service:m,version:"7.7.0",source:"browser",_dd:{format_version:2},telemetry:(0,E.kg)(v,{runtime_env:_,connectivity:(0,g.q)(),sdk_setup:"npm",sdk_name:i}),ddtags:(0,p.m5)(e).join(","),experimental_features:Array.from((0,s.q7)())},l));n.notify(R),(0,h.b)("telemetry",R),w.add(S)}),v.unbuffer(),(0,o.Bd)(P),{enabled:l,metricsEnabled:f.metric}}(t,e,r,i,n),{stop:f}=function(t,e){let r=[];if((0,y.d0)()){let t=(0,y.Y9)(),n=e.subscribe(e=>t.send("internal_telemetry",e));r.push(n.unsubscribe)}else{let n=[(0,w.ns)(t,"rum")],i=(0,w.np)(t,"rum");i&&t.site===b.Bb&&n.push(i);let o=(0,v.X)({endpoints:n,reportError:u.l});r.push(o.stop);let a=e.subscribe(o.add);r.push(a.unsubscribe)}return{stop:()=>r.forEach(t=>t())}}(e,i);return{stop:f,enabled:c,metricsEnabled:l}}function M(t,e){(0,C.N)()&&i.Vy.debug("[Telemetry]",t,e),I().notify({rawEvent:{type:_.LOG,message:t,status:"debug",...e}})}function P(t,e){I().notify({rawEvent:{type:_.LOG,status:"error",...function(t){if((0,f.b)(t)){var e;let r=(0,c.T)(t);return{error:{kind:r.name,stack:(0,l.Yn)(((e=r).stack=e.stack.filter(t=>!t.url||R.some(e=>t.url.startsWith(e))),e))},message:r.message}}return{error:{stack:f.e},message:`Uncaught ${(0,d.s)(t)}`}}(t),...e}})}function D(t){I().notify({rawEvent:{type:_.CONFIGURATION,configuration:t}})}function L(t,e){I().notify({rawEvent:{type:_.LOG,message:t,status:"debug",...e},metricName:t})}function U(t){I().notify({rawEvent:{type:_.USAGE,usage:t}})}},99324:(t,e,r)=>{"use strict";r.d(e,{j:()=>n});let n=function(t){return t[t.REPLAY=1]="REPLAY",t[t.RUM=2]="RUM",t[t.TELEMETRY=4]="TELEMETRY",t[t.PROFILING=6]="PROFILING",t}({})},99428:(t,e,r)=>{"use strict";r.d(e,{H:()=>o,N:()=>a});var n=r(43116),i=r(14149);function o(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:n.l}):(0,i.q2)(window,"complete"===t?"load":"DOMContentLoaded",e,{once:!0})}function a(t){return new Promise(e=>{o(t,e)})}}}]);
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.