Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 832

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
import{c as Xn,g as In}from"./_commonjsHelpers-BosuxZz1.js";const IO=e=>e==="query"?"queries":`${e}s`,CO=e=>e==="queries"?"query":e.slice(0,-1),RO=(e,...t)=>{let n="";for(let r=0;r[...e,t],xO=(e,t,n)=>[...e.slice(0,t),n,...e.slice(t+1)],kO=(e,t)=>[...e.slice(0,t),...e.slice(t+1)],NO=(e,t)=>e.reduce(([n,r],o)=>t(o)?[[...n,o],r]:[n,[...r,o]],[[],[]]);function LO(e,t){window.dataLayer=window.dataLayer||[],window.dataLayer.push(t),window.dataLayer.push({event:e})}const Lf=(e,t=!1)=>{const n=new URL(e,window.location.origin);if(n.searchParams.set("_cb",new Date().getTime().toString()),t)return window.open(n.toString(),"_blank");window.location.assign(n.toString())};async function MO(){return new Promise(e=>{setTimeout(e,0)})}function DO(e){const t=e.startsWith("--")?e:`--${e}`;return getComputedStyle(document.documentElement).getPropertyValue(t).trim()}function mi(){const e=[];let t=null;const n=(s,i,a)=>{s.addEventListener(i,a),e.push({element:s,event:i,handler:a})},o=Object.assign(()=>{e.forEach(({element:s,event:i,handler:a})=>{s.removeEventListener(i,a)}),e.length=0},{withPageRestore:s=>{t=s,window.addEventListener("pageshow",i=>{i.persisted&&t&&t()})}});return{addListener:n,cleanup:o}}/*! js-cookie v3.0.5 | MIT */function Nr(e){for(var t=1;t"u")){i=Nr({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,i[c]!==!0&&(a+="="+i[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a{dn[e]=at[e]});const $n="Datadog Browser SDK:",V={debug:dn.debug.bind(at,$n),log:dn.log.bind(at,$n),info:dn.info.bind(at,$n),warn:dn.warn.bind(at,$n),error:dn.error.bind(at,$n)},hi="https://docs.datadoghq.com",Pf=`${hi}/real_user_monitoring/browser/troubleshooting`,gi="More details:";function Tu(e,t){return(...n)=>{try{return e(...n)}catch(r){V.error(t,r)}}}function Ft(e){return e!==0&&Math.random()*100<=e}function Qn(e,t){return+e.toFixed(t)}function Ff(e){return fr(e)&&e>=0&&e<=100}function fr(e){return typeof e=="number"}const Oe=1e3,xe=60*Oe,vu=60*xe,Uf=24*vu,Au=365*Uf;function Eo(e){return{relative:e,timeStamp:Bf(e)}}function $f(e){return{relative:_i(e),timeStamp:e}}function Bf(e){const t=Ie()-performance.now();return t>pr()?Math.round(Cn(t,e)):jf(e)}function Vf(){return Math.round(Ie()-Cn(pr(),performance.now()))}function U(e){return fr(e)?Qn(e*1e6,0):e}function Ie(){return new Date().getTime()}function Me(){return Ie()}function Ue(){return performance.now()}function me(){return{relative:Ue(),timeStamp:Me()}}function wu(){return{relative:0,timeStamp:pr()}}function le(e,t){return t-e}function Cn(e,t){return e+t}function _i(e){return e-pr()}function jf(e){return Math.round(Cn(pr(),e))}function Hf(e){return ee[n]===t)}function Wt(e){return Object.keys(e).length===0}function Ru(e,t){const n={};for(const r of Object.keys(e))n[r]=t(e[r]);return n}function Ke(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,typeof e!="object"&&(typeof self=="object"?e=self:typeof window=="object"?e=window:e={}),e}const et=Ke(),io="WorkerGlobalScope"in et;function yt(e,t){const n=Ke();let r;return n.Zone&&typeof n.Zone.__symbol__=="function"&&(r=e[n.Zone.__symbol__(t)]),r||(r=e[t]),r}let Ds,Ou=!1;function Wf(e){Ds=e}function qf(e){Ou=e}function D(e){return function(){return gt(e,this,arguments)}}function gt(e,t,n){try{return e.apply(t,n)}catch(r){bo(r)}}function bo(e){if(Ps(e),Ds)try{Ds(e)}catch(t){Ps(t)}}function Ps(...e){Ou&&V.error("[MONITOR]",...e)}function Le(e,t){return yt(Ke(),"setTimeout")(D(e),t)}function Be(e){yt(Ke(),"clearTimeout")(e)}function Rn(e,t){return yt(Ke(),"setInterval")(D(e),t)}function So(e){yt(Ke(),"clearInterval")(e)}function ya(e){var t;const n=(t=et.queueMicrotask)===null||t===void 0?void 0:t.bind(et);typeof n=="function"?n(D(e)):Promise.resolve().then(D(e))}class X{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(n=>n(t))}addObserver(t){this.observers.push(t),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(n=>t!==n),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function xu(...e){return new X(t=>{const n=e.map(r=>r.subscribe(o=>t.notify(o)));return()=>n.forEach(r=>r.unsubscribe())})}class ku extends X{constructor(t){super(),this.maxBufferSize=t,this.buffer=[]}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(t)}subscribe(t){let n=!1;const r={unsubscribe:()=>{n=!0,this.removeObserver(t)}};return ya(()=>{for(const o of this.buffer){if(n)return;t(o)}n||this.addObserver(t)}),r}unbuffer(){ya(()=>{this.maxBufferSize=this.buffer.length=0})}}function To(e,t,n){const r=n&&n.leading!==void 0?n.leading:!0,o=n&&n.trailing!==void 0?n.trailing:!0;let s=!1,i,a;return{throttled:(...c)=>{if(s){i=c;return}r?e(...c):i=c,s=!0,a=Le(()=>{o&&i&&e(...i),s=!1,i=void 0},t)},cancel:()=>{Be(a),s=!1,i=void 0}}}function Q(){}function be(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,be)}const ao=/([\w-]+)\s*=\s*([^;]+)/g;function rr(e,t){for(ao.lastIndex=0;;){const n=ao.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function Kf(e){const t=new Map;for(ao.lastIndex=0;;){const n=ao.exec(e);if(n)t.set(n[1],n[2]);else break}return t}function yi(e,t,n=""){const r=e.charCodeAt(t-1),s=r>=55296&&r<=56319?t+1:t;return e.length<=s?e:`${e.slice(0,s)}${n}`}function zf(){return Yf()===0}let Lr;function Yf(){return Lr??(Lr=Xf())}function Xf(e=window){var t;const n=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(n)?0:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?1:2}function Ei(e){return vo(e,location.href).href}function Jf(e){try{return!!vo(e)}catch{return!1}}function Qf(e){const t=vo(e).pathname;return t[0]==="/"?t:`/${t}`}function vo(e,t){const{URL:n}=Zf();try{return t!==void 0?new n(e,t):new n(e)}catch(r){throw new Error(`Failed to construct URL: ${String(r)}`)}}let Qo;function Zf(){if(!Qo){let e,t;try{e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e),t=e.contentWindow}catch{t=et}Qo={URL:t.URL},e==null||e.remove()}return Qo}function Ao(e,t,n=0,r){const o=new Date;o.setTime(o.getTime()+n);const s=`expires=${o.toUTCString()}`,i=r&&r.crossSite?"none":"strict",a=r&&r.domain?`;domain=${r.domain}`:"",c=r&&r.secure?";secure":"",u=r&&r.partitioned?";partitioned":"";document.cookie=`${e}=${t};${s};path=/;samesite=${i}${a}${c}${u}`}function wo(e){return rr(document.cookie,e)}let Zo;function ht(e){return Zo||(Zo=Kf(document.cookie)),Zo.get(e)}function Nu(e,t){Ao(e,"",0,t)}function ep(e){if(document.cookie===void 0||document.cookie===null)return!1;try{const t=`dd_cookie_test_${be()}`,n="test";Ao(t,n,xe,e);const r=wo(t)===n;return Nu(t,e),r}catch(t){return V.error(t),!1}}let es;function Lu(e=location.hostname,t=document.referrer){if(es===void 0){const n=tp(e,t);if(n){const r=`dd_site_test_${be()}`,o="test",s=n.split(".");let i=s.pop();for(;s.length&&!wo(r);)i=`${s.pop()}.${i}`,Ao(r,o,Oe,{domain:i});Nu(r,{domain:i}),es=i}}return es}function tp(e,t){try{return e||vo(t).hostname}catch{}}const Et="_dd_s";function Mu(e,t){for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(t(r,n,e))return r}}function Du(e){return Object.values(e)}function bi(e){return Object.entries(e)}const qt=4*vu,Pu=15*xe,np=Au,Fu="0",or={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},Uu=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Si="&";function rp(e){return!!e&&(e.indexOf(Si)!==-1||Uu.test(e))}const op="1";function kt(e,t){const n={isExpired:op};return t.trackAnonymousUser&&(e!=null&&e.anonymousId?n.anonymousId=e==null?void 0:e.anonymousId:n.anonymousId=be()),n}function zr(e){return Wt(e)}function $u(e){return!zr(e)}function Zn(e){return e.isExpired!==void 0||!sp(e)}function sp(e){return(e.created===void 0||Ie()-Number(e.created)t==="anonymousId"?`aid=${n}`:`${t}=${n}`).join(Si)}function Ti(e){const t={};return rp(e)&&e.split(Si).forEach(n=>{const r=Uu.exec(n);if(r!==null){const[,o,s]=r;o==="aid"?t.anonymousId=s:t[o]=s}}),t}const ip="_dd",ap="_dd_r",cp="_dd_l",up="rum",lp="logs";function dp(e){if(!ht(Et)){const n=ht(ip),r=ht(ap),o=ht(cp),s={};n&&(s.id=n),o&&/^[01]$/.test(o)&&(s[lp]=o),r&&/^[012]$/.test(r)&&(s[up]=r),$u(s)&&(Bu(s),e.persistSession(s))}}function Ea(e){const t=pp(e);return t&&ep(t)?{type:or.COOKIE,cookieOptions:t}:void 0}function fp(e,t){const n={isLockEnabled:zf(),persistSession:r=>ba(t,e,r,Pu),retrieveSession:ju,expireSession:r=>ba(t,e,kt(r,e),qt)};return dp(n),n}function ba(e,t,n,r){Ao(Et,Vu(n),t.trackAnonymousUser?np:r,e)}function ju(){const e=wo(Et);return Ti(e)}function pp(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const n=Lu();if(!n)return;t.domain=n}return t}const mp="_dd_test_";function Sa(){try{const e=be(),t=`${mp}${e}`;localStorage.setItem(t,e);const n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:or.LOCAL_STORAGE}:void 0}catch{return}}function hp(e){return{isLockEnabled:!1,persistSession:Hu,retrieveSession:gp,expireSession:t=>_p(t,e)}}function Hu(e){localStorage.setItem(Et,Vu(e))}function gp(){const e=localStorage.getItem(Et);return Ti(e)}function _p(e,t){Hu(kt(e,t))}const yp=10,Ep=100,bp=Oe,Gu="--",Wu=[];let Yr;function Nt(e,t,n=0){var r;const{isLockEnabled:o,persistSession:s,expireSession:i}=t,a=f=>s({...f,lock:u}),c=()=>{const{lock:f,...p}=t.retrieveSession();return{session:p,lock:f&&!Tp(f)?f:void 0}};if(Yr||(Yr=e),e!==Yr){Wu.push(e);return}if(o&&n>=Ep){Ta(t);return}let u,l=c();if(o){if(l.lock){Mr(e,t,n);return}if(u=Sp(),a(l.session),l=c(),l.lock!==u){Mr(e,t,n);return}}let d=e.process(l.session);if(o&&(l=c(),l.lock!==u)){Mr(e,t,n);return}if(d&&(Zn(d)?i(d):(Bu(d),o?a(d):s(d))),o&&!(d&&Zn(d))){if(l=c(),l.lock!==u){Mr(e,t,n);return}s(l.session),d=l.session}(r=e.after)===null||r===void 0||r.call(e,d||l.session),Ta(t)}function Mr(e,t,n){Le(()=>{Nt(e,t,n+1)},yp)}function Ta(e){Yr=void 0;const t=Wu.shift();t&&Nt(t,e)}function Sp(){return be()+Gu+Me()}function Tp(e){const[,t]=e.split(Gu);return!t||le(Number(t),Me())>bp}const va=Oe;function vp(e){switch(e.sessionPersistence){case or.COOKIE:return Ea(e);case or.LOCAL_STORAGE:return Sa();case void 0:{let t=Ea(e);return!t&&e.allowFallbackToLocalStorage&&(t=Sa()),t}default:V.error(`Invalid session persistence '${String(e.sessionPersistence)}'`)}}function Ap(e,t){return e.type===or.COOKIE?fp(t,e.cookieOptions):hp(t)}function wp(e,t,n,r,o=Ap(e,t)){const s=new X,i=new X,a=new X,c=Rn(p,va);let u;g();const{throttled:l,cancel:d}=To(()=>{Nt({process:_=>{if(zr(_))return;const w=h(_);return y(w),w},after:_=>{$u(_)&&!C()&&E(_),u=_}},o)},va);function f(){Nt({process:_=>C()?h(_):void 0},o)}function p(){const _=o.retrieveSession();Zn(_)?Nt({process:w=>Zn(w)?kt(w,t):void 0,after:h},o):h(_)}function h(_){return Zn(_)&&(_=kt(_,t)),C()&&(k(_)?N():(a.notify({previousState:u,newState:_}),u=_)),_}function g(){Nt({process:_=>{if(zr(_))return kt(_,t)},after:_=>{u=_}},o)}function y(_){if(zr(_))return!1;const w=r(_[n]);_[n]=w,delete _.isExpired,w!==Fu&&!_.id&&(_.id=be(),_.created=String(Ie()))}function C(){return(u==null?void 0:u[n])!==void 0}function k(_){return u.id!==_.id||u[n]!==_[n]}function N(){u=kt(u,t),i.notify()}function E(_){u=_,s.notify()}function I(_){Nt({process:w=>({...w,..._}),after:h},o)}return{expandOrRenewSession:l,expandSession:f,getSession:()=>u,renewObservable:s,expireObservable:i,sessionStateUpdateObservable:a,restartSession:g,expire:()=>{d(),o.expireSession(u),h(kt(u,t))},stop:()=>{So(c)},updateSessionState:I}}const Fs={GRANTED:"granted",NOT_GRANTED:"not-granted"};function Ip(e){const t=new X;return{tryToInit(n){e||(e=n)},update(n){e=n,t.notify()},isGranted(){return e===Fs.GRANTED},observable:t}}function Kt(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function sr(e){const t=Kt(e);return t==="string"||t==="function"||e instanceof RegExp}function Io(e,t,n=!1){return e.some(r=>{try{if(typeof r=="function")return r(t);if(r instanceof RegExp)return r.test(t);if(typeof r=="string")return n?t.startsWith(r):r===t}catch(o){V.error(o)}return!1})}const Cp=["chrome-extension://","moz-extension://"];function Aa(e){return Cp.some(t=>e.includes(t))}function Rp(e,t=""){if(Aa(e))return!1;const r=t.split(` `).filter(o=>{const s=o.trim();return s.length&&/^at\s+|@/.test(s)})[1]||"";return Aa(r)}const Op="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",xp="SDK initialized on a non-allowed domain.";function kp(e,t,n=typeof location<"u"?location.origin:""){const r=e.allowedTrackingOrigins;if(!r)return Rp(n,t)?(V.error(Op),!1):!0;const o=Io(r,n);return o||V.error(xp),o}const qu="datad0g.com",Np="dd0g-gov.com",Ut="datadoghq.com",Lp="datadoghq.eu",Mp="ddog-gov.com",Dp="pci.browser-intake-datadoghq.com",Pp=["ddsource","dd-api-key","dd-request-id"];function Lt(e,t,n){const r=Fp(e,t);return{build(o,s){const i=Up(e,t,o,s,n);return r(i)},trackType:t}}function Fp(e,t){const n=`/api/v2/${t}`,r=e.proxy;if(typeof r=="string"){const s=Ei(r);return i=>`${s}?ddforward=${encodeURIComponent(`${n}?${i}`)}`}if(typeof r=="function")return s=>r({path:n,parameters:s});const o=Ku(t,e);return s=>`https://${o}${n}?${s}`}function Ku(e,t){const{site:n=Ut,internalAnalyticsSubdomain:r}=t;if(e==="logs"&&t.usePciIntake&&n===Ut)return Dp;if(r&&n===Ut)return`${r}.${Ut}`;if(n===Np)return`http-intake.logs.${n}`;const o=n.split("."),s=o.pop();return`browser-intake-${o.join("-")}.${s}`}function Up({clientToken:e,internalAnalyticsSubdomain:t,source:n="browser"},r,o,{retry:s,encoding:i},a=[]){const c=[`ddsource=${n}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.22.0")}`,"dd-evp-origin=browser",`dd-request-id=${be()}`].concat(a);return i&&c.push(`dd-evp-encoding=${i}`),r==="rum"&&(c.push(`batch_time=${Me()}`,`_dd.api=${o}`),s&&c.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`)),t&&c.reverse(),c.join("&")}function $p(e){const t=e.site||Ut,n=Bp(e.source),r=Vp({...e,site:t,source:n});return{replica:jp({...e,site:t,source:n}),site:t,source:n,...r}}function Bp(e){return e==="flutter"||e==="unity"?e:"browser"}function Vp(e){return{logsEndpointBuilder:Lt(e,"logs"),rumEndpointBuilder:Lt(e,"rum"),profilingEndpointBuilder:Lt(e,"profile"),sessionReplayEndpointBuilder:Lt(e,"replay"),exposuresEndpointBuilder:Lt(e,"exposures")}}function jp(e){if(!e.replica)return;const t={...e,site:Ut,clientToken:e.replica.clientToken};return{logsEndpointBuilder:Lt(t,"logs"),rumEndpointBuilder:Lt(t,"rum",[`application.id=${e.replica.applicationId}`])}}function Hp(e){return Pp.every(t=>e.includes(t))}const fn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},Us={ALL:"all",SAMPLED:"sampled"};function ts(e,t){return e!=null&&typeof e!="string"?(V.error(`${t} must be defined as a string`),!1):!0}function Gp(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(V.error(`Site should be a valid Datadog site. ${gi} ${hi}/getting_started/site/.`),!1):!0}function pn(e,t){return e!==void 0&&!Ff(e)?(V.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function Wp(e,t){var n,r,o,s,i,a,c,u,l,d;if(!e||!e.clientToken){V.error("Client Token is not configured, we will not send any data.");return}if(e.allowedTrackingOrigins!==void 0&&!Array.isArray(e.allowedTrackingOrigins)){V.error("Allowed Tracking Origins must be an array");return}if(!(!Gp(e.site)||!pn(e.sessionSampleRate,"Session")||!pn(e.telemetrySampleRate,"Telemetry")||!pn(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!pn(e.telemetryUsageSampleRate,"Telemetry Usage")||!ts(e.version,"Version")||!ts(e.env,"Env")||!ts(e.service,"Service")||!kp(e,t??""))){if(e.trackingConsent!==void 0&&!so(Fs,e.trackingConsent)){V.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:e.beforeSend&&Tu(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:io?void 0:vp(e),sessionSampleRate:(n=e.sessionSampleRate)!==null&&n!==void 0?n:100,telemetrySampleRate:(r=e.telemetrySampleRate)!==null&&r!==void 0?r:20,telemetryConfigurationSampleRate:(o=e.telemetryConfigurationSampleRate)!==null&&o!==void 0?o:5,telemetryUsageSampleRate:(s=e.telemetryUsageSampleRate)!==null&&s!==void 0?s:5,service:(i=e.service)!==null&&i!==void 0?i:void 0,env:(a=e.env)!==null&&a!==void 0?a:void 0,version:(c=e.version)!==null&&c!==void 0?c:void 0,datacenter:(u=e.datacenter)!==null&&u!==void 0?u:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:(l=e.trackingConsent)!==null&&l!==void 0?l:Fs.GRANTED,trackAnonymousUser:(d=e.trackAnonymousUser)!==null&&d!==void 0?d:!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*_n,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*Oe,batchMessagesLimit:io?1:50,messageBytesLimit:256*_n,variant:e.variant,sdkVersion:e.sdkVersion,...$p(e)}}}function qp(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),source:e.source,sdk_version:e.sdkVersion,variant:e.variant}}var Vt;(function(e){e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",e.FEATURE_OPERATION_VITAL="feature_operation_vital",e.SHORT_SESSION_INVESTIGATION="short_session_investigation"})(Vt||(Vt={}));const vi=new Set;function Kp(e){Array.isArray(e)&&zp(e.filter(t=>so(Vt,t)))}function zp(e){e.forEach(t=>{vi.add(t)})}function Co(e){return vi.has(e)}function Yp(){return vi}const yn="?";function mr(e){var t,n;const r=[];let o=ns(e,"stack");const s=String(e);if(o&&o.startsWith(s)&&(o=o.slice(s.length)),o&&o.split(` `).forEach(i=>{const a=Qp(i)||em(i)||nm(i)||sm(i);a&&(!a.func&&a.line&&(a.func=yn),r.push(a))}),r.length>0&&um()&&e instanceof Error){const i=[];let a=e;for(;(a=Object.getPrototypeOf(a))&&Yu(a);){const c=((t=a.constructor)===null||t===void 0?void 0:t.name)||yn;i.push(c)}for(let c=i.length-1;c>=0&&((n=r[0])===null||n===void 0?void 0:n.func)===i[c];c--)r.shift()}return{message:ns(e,"message"),name:ns(e,"name"),stack:r}}const zu="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",En="(?::(\\d+))",Xp=new RegExp(`^\\s*at (.*?) ?\\(${zu}${En}?${En}?\\)?\\s*$`,"i"),Jp=new RegExp(`\\((\\S*)${En}${En}\\)`);function Qp(e){const t=Xp.exec(e);if(!t)return;const n=t[2]&&t[2].indexOf("native")===0,r=t[2]&&t[2].indexOf("eval")===0,o=Jp.exec(t[2]);return r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||yn,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}const Zp=new RegExp(`^\\s*at ?${zu}${En}?${En}??\\s*$`,"i");function em(e){const t=Zp.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:yn,line:t[2]?+t[2]:void 0,url:t[1]}}const tm=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function nm(e){const t=tm.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||yn,line:+t[3],url:t[2]}}const rm=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,om=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function sm(e){const t=rm.exec(e);if(!t)return;const n=t[3]&&t[3].indexOf(" > eval")>-1,r=om.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||yn,line:t[4]?+t[4]:void 0,url:t[3]}}function ns(e,t){if(typeof e!="object"||!e||!(t in e))return;const n=e[t];return typeof n=="string"?n:void 0}function im(e,t,n,r){if(t===void 0)return;const{name:o,message:s}=cm(e);return{name:o,message:s,stack:[{url:t,column:r,line:n}]}}const am=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function cm(e){let t,n;return{}.toString.call(e)==="[object String]"&&([,t,n]=am.exec(e)),{name:t,message:n}}function Yu(e){return String(e.constructor).startsWith("class ")}let Dr;function um(){if(Dr!==void 0)return Dr;class e extends Error{constructor(){super(),this.name="Error"}}const[t,n]=[e,Error].map(r=>new r);return Dr=Yu(Object.getPrototypeOf(t))&&n.stack!==t.stack,Dr}function co(e){const n=new Error(e);n.name="HandlingStack";let r;return gt(()=>{const o=mr(n);o.stack=o.stack.slice(2),r=hr(o)}),r}function hr(e){let t=Xu(e);return e.stack.forEach(n=>{const r=n.func==="?"?"":n.func,o=n.args&&n.args.length>0?`(${n.args.join(", ")})`:"",s=n.line?`:${n.line}`:"",i=n.line&&n.column?`:${n.column}`:"";t+=` at ${r}${o} @ ${n.url}${s}${i}`}),t}function Xu(e){return`${e.name||"Error"}: ${e.message}`}function Ze(e,t,n,{computeHandlingStack:r}={}){let o=e[t];if(typeof o!="function")if(t in e&&t.startsWith("on"))o=Q;else return{stop:Q};let s=!1;const i=function(){if(s)return o.apply(this,arguments);const a=Array.from(arguments);let c;gt(n,null,[{target:this,parameters:a,onPostCall:l=>{c=l},handlingStack:r?co("instrumented method"):void 0}]);const u=o.apply(this,a);return c&>(c,null,[u]),u};return e[t]=i,{stop:()=>{s=!0,e[t]===i&&(e[t]=o)}}}function gr(e,t,n){if(typeof e!="object"||e===null)return JSON.stringify(e);const r=mn(Object.prototype),o=mn(Array.prototype),s=mn(Object.getPrototypeOf(e)),i=mn(e);try{return JSON.stringify(e,t,n)}catch{return""}finally{r(),o(),s(),i()}}function mn(e){const t=e,n=t.toJSON;return n?(delete t.toJSON,()=>{t.toJSON=n}):Q}const lm=220*_n,dm="$",fm=3;function ne(e,t=lm){const n=mn(Object.prototype),r=mn(Array.prototype),o=[],s=new WeakMap,i=rs(e,dm,void 0,o,s),a=JSON.stringify(i);let c=a?a.length:0;if(c>t){os(t,"discarded",e);return}for(;o.length>0&&ct){os(t,"truncated",e);break}u.target[d]=f}else for(const d in u.source)if(Object.prototype.hasOwnProperty.call(u.source,d)){const f=rs(u.source[d],u.path,d,o,s);if(f!==void 0&&(c+=JSON.stringify(f).length+l+d.length+fm,l=1),c>t){os(t,"truncated",e);break}u.target[d]=f}}return n(),r(),i}function rs(e,t,n,r,o){const s=hm(e);if(!s||typeof s!="object")return pm(s);const i=$s(s);if(i!=="[Object]"&&i!=="[Array]"&&i!=="[Error]")return i;const a=e;if(o.has(a))return`[Reference seen at ${o.get(a)}]`;const c=n!==void 0?`${t}.${n}`:t,u=Array.isArray(s)?[]:{};return o.set(a,c),r.push({source:s,target:u,path:c}),u}function pm(e){return typeof e=="bigint"?`[BigInt] ${e.toString()}`:typeof e=="function"?`[Function] ${e.name||"unknown"}`:typeof e=="symbol"?`[Symbol] ${e.description||e.toString()}`:e}function $s(e){try{if(e instanceof Event)return mm(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}function mm(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?$s(e.currentTarget):null,target:e.target?$s(e.target):null}}function hm(e){const t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function os(e,t,n){V.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}const Ju="No stack, consider using an instance of Error";function Ai({stackTrace:e,originalError:t,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:s,useFallbackStack:i=!0,source:a,handling:c}){const u=zt(t);return!e&&u&&(e=mr(t)),{startClocks:o,source:a,handling:c,handlingStack:n,componentStack:r,originalError:t,type:e?e.name:void 0,message:gm(e,u,s,t),stack:e?hr(e):i?Ju:void 0,causes:u?Em(t,a):void 0,fingerprint:_m(t),context:ym(t)}}function gm(e,t,n,r){return e!=null&&e.message&&(e!=null&&e.name)?e.message:t?"Empty message":`${n} ${gr(ne(r))}`}function _m(e){return zt(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function ym(e){if(e!==null&&typeof e=="object"&&"dd_context"in e)return e.dd_context}function zt(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function Em(e,t){let n=e;const r=[];for(;zt(n==null?void 0:n.cause)&&r.length<10;){const o=mr(n.cause);r.push({message:n.cause.message,source:t,type:o==null?void 0:o.name,stack:o&&hr(o)}),n=n.cause}return r.length?r:void 0}const On={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function bm(){return new X(e=>{const t=(o,s)=>{const i=Ai({stackTrace:s,originalError:o,startClocks:me(),nonErrorPrefix:"Uncaught",source:On.SOURCE,handling:"unhandled"});e.notify(i)},{stop:n}=Sm(t),{stop:r}=Tm(t);return()=>{n(),r()}})}function Sm(e){return Ze(Ke(),"onerror",({parameters:[t,n,r,o,s]})=>{let i;zt(s)||(i=im(t,n,r,o)),e(s??t,i)})}function Tm(e){return Ze(Ke(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}function vm(e){const t={version:"6.22.0",onReady(n){n()},...e};return Object.defineProperty(t,"_setDebug",{get(){return qf},enumerable:!1}),t}function Am(e,t,n){const r=e[t];r&&!r.q&&r.version&&V.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,r&&r.q&&r.q.forEach(o=>Tu(o,"onReady callback threw an error:")())}function Qu(e,t){t.silentMultipleInit||V.error(`${e} is already initialized.`)}function ue(e,t,n,r,o){return bt(e,t,[n],r,o)}function bt(e,t,n,r,{once:o,capture:s,passive:i}={}){const a=D(f=>{!f.isTrusted&&!f.__ddIsTrusted&&!e.allowUntrustedEvents||(o&&d(),r(f))}),c=i?{capture:s,passive:i}:s,u=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,l=yt(u,"addEventListener");n.forEach(f=>l.call(t,f,a,c));function d(){const f=yt(u,"removeEventListener");n.forEach(p=>f.call(t,p,a,c))}return{stop:d}}const ir={intervention:"intervention",cspViolation:"csp_violation"};function wm(e,t){const n=[];t.includes(ir.cspViolation)&&n.push(Cm(e));const r=t.filter(o=>o!==ir.cspViolation);return r.length&&n.push(Im(r)),xu(...n)}function Im(e){return new X(t=>{if(!window.ReportingObserver)return;const n=D((o,s)=>o.forEach(i=>t.notify(Rm(i)))),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),()=>{r.disconnect()}})}function Cm(e){return new X(t=>{const{stop:n}=ue(e,document,"securitypolicyviolation",r=>{t.notify(Om(r))});return n})}function Rm(e){const{type:t,body:n}=e;return Zu({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:el(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}function Om(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return Zu({type:e.effectiveDirective,message:`${ir.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:el(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${yi(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function Zu(e){return{startClocks:me(),source:On.REPORT,handling:"unhandled",...e}}function el(e,t,n,r,o){return n?hr({name:e,message:t,stack:[{func:"?",url:n,line:r??void 0,column:o??void 0}]}):void 0}const xm=200;function tl(e){const{env:t,service:n,version:r,datacenter:o,sdkVersion:s,variant:i}=e,a=[sn("sdk_version",s??"6.22.0")];return t&&a.push(sn("env",t)),n&&a.push(sn("service",n)),r&&a.push(sn("version",r)),o&&a.push(sn("datacenter",o)),i&&a.push(sn("variant",i)),a}function sn(e,t){const n=t?`${e}:${t}`:e;return(n.length>xm||Nm(n))&&V.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${gi} ${hi}/getting_started/tagging/#defining-tags`),km(n)}function km(e){return e.replace(/,/g,"_")}function Nm(e){return Lm()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e):!1}function Lm(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function nl(e,t){const n=et.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function uo(e,t,n=Mm()){if(t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const o=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,o)}if(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const o=Array.isArray(e)?e:[];for(let s=0;s=0;return n||e.push(t),n}}}function rl(){var e;const t=et.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:(e=t.connection)===null||e===void 0?void 0:e.effectiveType}}function Dm(e){return e>=500}function Pm(e){try{return e.clone()}catch{return}}const Fm=80*_n,Um=32,ol=20*Iu,$m=xe,sl=Oe;function il(e,t,n,r,o,s){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?cl(e,t,n,s,{onSuccess:()=>ul(0,t,n,r,o,s),onFailure:()=>{t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),al(t,n,r,o,s)}}):t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function al(e,t,n,r,o){e.transportStatus===2&&Le(()=>{const s=e.queuedPayloads.first();cl(s,e,t,o,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=sl,ul(1,e,t,n,r,o)},onFailure:()=>{e.currentBackoffTime=Math.min($m,e.currentBackoffTime*2),al(e,t,n,r,o)}})},e.currentBackoffTime)}function cl(e,t,n,r,{onSuccess:o,onFailure:s}){t.bandwidthMonitor.add(e),n(e,i=>{t.bandwidthMonitor.remove(e),Bm(i)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:i.status},r.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s()):(t.transportStatus=0,r.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o())})}function ul(e,t,n,r,o,s){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:`Reached max ${r} events size queued for upload: ${ol/Iu}MiB`,source:On.AGENT,startClocks:me()}),t.queueFullReported=!0);const i=t.queuedPayloads;for(t.queuedPayloads=ll();i.size()>0;)il(i.dequeue(),t,n,r,o,s)}function Bm(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||Dm(e.status))}function Vm(){return{transportStatus:0,currentBackoffTime:sl,bandwidthMonitor:jm(),queuedPayloads:ll(),queueFullReported:!1}}function ll(){const e=[];return{bytesCount:0,enqueue(t){return this.isFull()?!1:(e.push(t),this.bytesCount+=t.bytesCount,!0)},first(){return e[0]},dequeue(){const t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size(){return e.length},isFull(){return this.bytesCount>=ol}}}function jm(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=Fm&&this.ongoingRequestCount{for(const i of e)il(s,o,(a,c)=>Wm(i,t,a,c),i.trackType,n,r)},sendOnExit:s=>{for(const i of e)Hm(i,t,s)}}}function Hm(e,t,n){if(!!navigator.sendBeacon&&n.bytesCountr==null?void 0:r({status:i.status,type:i.type}))).catch(D(()=>Bs(e,n,r)))}else Bs(e,n,r)}function Bs(e,t,n){const r=e.build("fetch",t);fetch(r,{method:"POST",body:t.data,mode:"cors"}).then(D(o=>n==null?void 0:n({status:o.status,type:o.type}))).catch(D(()=>n==null?void 0:n({status:0})))}function qm(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function _r(){const e=zm();if(e)return{getCapabilities(){var t;return JSON.parse(((t=e.getCapabilities)===null||t===void 0?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return(t=e.getPrivacyLevel)===null||t===void 0?void 0:t.call(e)},getAllowedWebViewHosts(){return JSON.parse(e.getAllowedWebViewHosts())},send(t,n,r){const o=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:o}))}}}function Km(e){const t=_r();return!!t&&t.getCapabilities().includes(e)}function ar(e){var t;e===void 0&&(e=(t=Ke().location)===null||t===void 0?void 0:t.hostname);const n=_r();return!!n&&n.getAllowedWebViewHosts().some(r=>e===r||e.endsWith(`.${r}`))}function zm(){return Ke().DatadogEventBridge}const hn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Ym(e){return new X(t=>{const{stop:n}=bt(e,window,["visibilitychange","freeze"],o=>{o.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:hn.HIDDEN}):o.type==="freeze"&&t.notify({reason:hn.FROZEN})},{capture:!0}),r=ue(e,window,"beforeunload",()=>{t.notify({reason:hn.UNLOADING})}).stop;return()=>{n(),r()}})}function Xm(e){return Du(hn).includes(e)}function fl({encoder:e,request:t,flushController:n,messageBytesLimit:r}){let o={};const s=n.flushObservable.subscribe(d=>l(d));function i(d,f,p){n.notifyBeforeAddMessage(f),p!==void 0?(o[p]=d,n.notifyAfterAddMessage()):e.write(e.isEmpty?d:` ${d}`,h=>{n.notifyAfterAddMessage(h-f)})}function a(d){return d!==void 0&&o[d]!==void 0}function c(d){const f=o[d];delete o[d];const p=e.estimateEncodedBytesCount(f);n.notifyAfterRemoveMessage(p)}function u(d,f){const p=gr(d),h=e.estimateEncodedBytesCount(p);if(h>=r){V.warn(`Discarded a message whose size was bigger than the maximum allowed size ${r}KB. ${gi} ${Pf}/#technical-limitations`);return}a(f)&&c(f),i(p,h,f)}function l(d){const f=Du(o).join(` `);o={};const p=Xm(d.reason),h=p?t.sendOnExit:t.send;if(p&&e.isAsync){const g=e.finishSync();g.outputBytesCount&&h(Ia(g));const y=[g.pendingData,f].filter(Boolean).join(` `);y&&h({data:y,bytesCount:Cu(y)})}else f&&e.write(e.isEmpty?f:` ${f}`),e.finish(g=>{h(Ia(g))})}return{flushController:n,add:u,upsert:u,stop:s.unsubscribe}}function Ia(e){let t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}function pl({messagesLimit:e,bytesLimit:t,durationLimit:n,pageMayExitObservable:r,sessionExpireObservable:o}){const s=r.subscribe(h=>l(h.reason)),i=o.subscribe(()=>l("session_expire")),a=new X(()=>()=>{s.unsubscribe(),i.unsubscribe()});let c=0,u=0;function l(h){if(u===0)return;const g=u,y=c;u=0,c=0,p(),a.notify({reason:h,messagesCount:g,bytesCount:y})}let d;function f(){d===void 0&&(d=Le(()=>{l("duration_limit")},n))}function p(){Be(d),d=void 0}return{flushObservable:a,get messagesCount(){return u},notifyBeforeAddMessage(h){c+h>=t&&l("bytes_limit"),u+=1,c+=h,f()},notifyAfterAddMessage(h=0){c+=h,u>=e?l("messages_limit"):c>=t&&l("bytes_limit")},notifyAfterRemoveMessage(h){c-=h,u-=1,u===0&&p()}}}const St="DISCARDED",je="SKIPPED";function Jm(){const e={};return{register(t,n){return e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(r=>r!==n)}}},triggerHook(t,n){const r=e[t]||[],o=[];for(const s of r){const i=s(n);if(i===St)return St;i!==je&&o.push(i)}return ft(...o)}}}const _t={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},Qm=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],Zm=1,eh=[Mp];let ss;function xn(){return ss||(ss=new ku(100)),ss}function th(e,t,n,r,o,s){const i=new X,{stop:a}=rh(t,r,o,s,i),{enabled:c,metricsEnabled:u}=nh(e,t,n,i);return{stop:a,enabled:c,metricsEnabled:u}}function nh(e,t,n,r,o=Zm){const s={},i=!eh.includes(t.site)&&Ft(t.telemetrySampleRate),a={[_t.LOG]:i,[_t.CONFIGURATION]:i&&Ft(t.telemetryConfigurationSampleRate),[_t.USAGE]:i&&Ft(t.telemetryUsageSampleRate),metric:i&&Ft(o)},c=oh(),u=xn();return u.subscribe(({rawEvent:d,metricName:f})=>{if(f&&!a.metric||!a[d.type])return;const p=f||d.status||d.type;let h=s[p];if(h||(h=s[p]=new Set),h.size>=t.maxTelemetryEventsPerPage)return;const g=gr(d);if(h.has(g))return;const y=n.triggerHook(1,{startTime:me().relative});if(y===St)return;const C=l(y,e,d,c);r.notify(C),nl("telemetry",C),h.add(g)}),u.unbuffer(),Wf(ih),{enabled:i,metricsEnabled:a.metric};function l(d,f,p,h){const y={type:"telemetry",date:me().timeStamp,service:f,version:"6.22.0",source:"browser",_dd:{format_version:2},telemetry:ft(p,{runtime_env:h,connectivity:rl(),sdk_setup:"npm"}),ddtags:tl(t).join(","),experimental_features:Array.from(Yp())};return ft(y,d)}}function rh(e,t,n,r,o){const s=[];if(ar()){const i=_r(),a=o.subscribe(c=>i.send("internal_telemetry",c));s.push(a.unsubscribe)}else{const i=[e.rumEndpointBuilder];e.replica&&sh(e)&&i.push(e.replica.rumEndpointBuilder);const a=fl({encoder:r(4),request:dl(i,e.batchBytesLimit,t),flushController:pl({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:n,sessionExpireObservable:new X}),messageBytesLimit:e.messageBytesLimit});s.push(a.stop);const c=o.subscribe(a.add);s.push(c.unsubscribe)}return{stop:()=>s.forEach(i=>i())}}function oh(){var e;return{is_local_file:((e=et.location)===null||e===void 0?void 0:e.protocol)==="file:",is_worker:io}}function sh(e){return e.site===qu}function Ro(e,t){Ps(yo.debug,e,t),xn().notify({rawEvent:{type:_t.LOG,message:e,status:"debug",...t}})}function ih(e,t){xn().notify({rawEvent:{type:_t.LOG,status:"error",...ch(e),...t}})}function ah(e){xn().notify({rawEvent:{type:_t.CONFIGURATION,configuration:e}})}function Ii(e,t){xn().notify({rawEvent:{type:_t.LOG,message:e,status:"debug",...t},metricName:e})}function fe(e){xn().notify({rawEvent:{type:_t.USAGE,usage:e}})}function ch(e){if(zt(e)){const t=mr(e);return{error:{kind:t.name,stack:hr(uh(t))},message:t.message}}return{error:{stack:Ju},message:`Uncaught ${gr(e)}`}}function uh(e){return e.stack=e.stack.filter(t=>!t.url||Qm.some(n=>t.url.startsWith(n))),e}function ml(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function er(e){return Array.isArray(e)&&e.length>0}const Pr=1/0,lh=xe;let Bn=null;const Xr=new Set;function dh(){Xr.forEach(e=>e())}function kn({expireDelay:e,maxEntries:t}){let n=[];Bn||(Bn=Rn(()=>dh(),lh));const r=()=>{const l=Ue()-e;for(;n.length>0&&n[n.length-1].endTime{ml(n,f)},close:p=>{f.endTime=p}};return t&&n.length>=t&&n.pop(),n.unshift(f),f}function s(l=Pr,d={returnInactive:!1}){for(const f of n)if(f.startTime<=l){if(d.returnInactive||l<=f.endTime)return f.value;break}}function i(l){const d=n[0];d&&d.endTime===Pr&&d.close(l)}function a(l=Pr,d=0){const f=Cn(l,d);return n.filter(p=>p.startTime<=f&&l<=p.endTime).map(p=>p.value)}function c(){n=[]}function u(){Xr.delete(r),Xr.size===0&&Bn&&(So(Bn),Bn=null)}return{add:o,find:s,closeActive:i,findAll:a,reset:c,stop:u}}const fh="datadog-synthetics-public-id",ph="datadog-synthetics-result-id",mh="datadog-synthetics-injects-rum";function hl(){return io?!1:!!(et._DATADOG_SYNTHETICS_INJECTS_RUM||ht(mh))}function gl(){const e=window._DATADOG_SYNTHETICS_PUBLIC_ID||ht(fh);return typeof e=="string"?e:void 0}function _l(){const e=window._DATADOG_SYNTHETICS_RESULT_ID||ht(ph);return typeof e=="string"?e:void 0}function yl(){return!!(gl()&&_l())}const hh=xe,gh=qt;function _h(e,t,n,r){const o=new X,s=new X,i=wp(e.sessionStoreStrategyType,e,t,n),a=kn({expireDelay:gh});if(i.renewObservable.subscribe(()=>{a.add(c(),Ue()),o.notify()}),i.expireObservable.subscribe(()=>{s.notify(),a.closeActive(Ue())}),i.expandOrRenewSession(),a.add(c(),wu().relative),Co(Vt.SHORT_SESSION_INVESTIGATION)){const u=i.getSession();u&&Th(e,u)}r.observable.subscribe(()=>{r.isGranted()?i.expandOrRenewSession():i.expire()}),yh(e,()=>{r.isGranted()&&i.expandOrRenewSession()}),Eh(e,()=>i.expandSession()),bh(e,()=>i.restartSession());function c(){const u=i.getSession();return u?{id:u.id,trackingType:u[t],isReplayForced:!!u.forcedReplay,anonymousId:u.anonymousId}:(Sh().catch(()=>{}),{id:"invalid",trackingType:Fu,isReplayForced:!1,anonymousId:void 0})}return{findSession:(u,l)=>a.find(u,l),renewObservable:o,expireObservable:s,sessionStateUpdateObservable:i.sessionStateUpdateObservable,expire:i.expire,updateSessionState:i.updateSessionState}}function yh(e,t){const{stop:n}=bt(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0})}function Eh(e,t){const n=()=>{document.visibilityState==="visible"&&t()},{stop:r}=ue(e,document,"visibilitychange",n);Rn(n,hh)}function bh(e,t){const{stop:n}=ue(e,window,"resume",t,{capture:!0})}async function Sh(){const e=ju();Ro("Unexpected session state",{session:e,isSyntheticsTest:yl(),createdTimestamp:e==null?void 0:e.created,expireTimestamp:e==null?void 0:e.expire,cookie:await El(),currentDomain:`${window.location.protocol}//${window.location.hostname}`})}function Th(e,t){if(!window.cookieStore||!t.created)return;const n=Number(t.created),r=Ie(),{stop:o}=ue(e,cookieStore,"change",s);function s(i){const a=Mu(i.changed,u=>u.name===Et);if(!a)return;const c=Ie()-n;if(c>14*xe)o();else{const u=Ti(a.value);if(u.id&&u.id!==t.id){o();const l=Ie()-r;El().then(d=>{Ro("Session cookie changed",{time:l,session_age:c,old:t,new:u,cookie:d})}).catch(bo)}}}}async function El(){let e;return"cookieStore"in window?e=await window.cookieStore.getAll(Et):e=document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(Et)),{count:e.length,domain:Lu()||"undefined",...e}}function vh(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,r){const o=Cu(n);t+=o,e+=n,r&&r(o)},finish(n){n(this.finishSync())},finishSync(){const n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount(n){return n.length}}}class Ah{constructor(){this.callbacks={}}notify(t,n){const r=this.callbacks[t];r&&r.forEach(o=>o(n))}subscribe(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(r=>n!==r)}}}}function is(e,t,n){let r=0,o=!1;return{isLimitReached(){if(r===0&&Le(()=>{r=0},xe),r+=1,r<=t||o)return o=!1,!1;if(r===t+1){o=!0;try{n({message:`Reached max number of ${e}s by minute: ${t}`,source:On.AGENT,startClocks:me()})}finally{o=!1}}return!0}}}function bl(e,t,n){return document.readyState===t||document.readyState==="complete"?(n(),{stop:Q}):ue(e,window,t==="complete"?"load":"DOMContentLoaded",n,{once:!0})}let as;const Ci=new WeakMap;function wh(e){return as||(as=Ih(e)),as}function Ih(e){return new X(t=>{const{stop:n}=Ze(XMLHttpRequest.prototype,"open",Ch),{stop:r}=Ze(XMLHttpRequest.prototype,"send",s=>{Rh(s,e,t)},{computeHandlingStack:!0}),{stop:o}=Ze(XMLHttpRequest.prototype,"abort",Oh);return()=>{n(),r(),o()}})}function Ch({target:e,parameters:[t,n]}){Ci.set(e,{state:"open",method:String(t).toUpperCase(),url:Ei(String(n))})}function Rh({target:e,parameters:[t],handlingStack:n},r,o){const s=Ci.get(e);if(!s)return;const i=s;i.state="start",i.startClocks=me(),i.isAborted=!1,i.xhr=e,i.handlingStack=n,i.body=t;let a=!1;const{stop:c}=Ze(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&u()}),u=()=>{if(l(),c(),a)return;a=!0;const d=s;d.state="complete",d.duration=le(i.startClocks.timeStamp,Me()),d.status=e.status,o.notify(nr(d))},{stop:l}=ue(r,e,"loadend",u);o.notify(i)}function Oh({target:e}){const t=Ci.get(e);t&&(t.isAborted=!0)}let cs;function Sl(){return cs||(cs=xh()),cs}function xh(){return new X(e=>{if(!et.fetch)return;const{stop:t}=Ze(et,"fetch",n=>kh(n,e),{computeHandlingStack:!0});return t})}function kh({parameters:e,onPostCall:t,handlingStack:n},r){const[o,s]=e;let i=s&&s.method;i===void 0&&o instanceof Request&&(i=o.method);const a=i!==void 0?String(i).toUpperCase():"GET",c=o instanceof Request?o.url:Ei(String(o)),u=me(),l={state:"start",init:s,input:o,method:a,startClocks:u,url:c,handlingStack:n};r.notify(l),e[0]=l.input,e[1]=l.init,t(d=>Nh(r,d,l))}function Nh(e,t,n){const r=n;function o(s){r.state="resolve",Object.assign(r,s),e.notify(r)}t.then(D(s=>{o({response:s,responseType:s.type,status:s.status,isAborted:!1})}),D(s=>{var i,a;o({status:0,isAborted:((a=(i=r.init)===null||i===void 0?void 0:i.signal)===null||a===void 0?void 0:a.aborted)||s instanceof DOMException&&s.code===DOMException.ABORT_ERR,error:s})}))}function Lh(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback(D(e),t);return()=>window.cancelIdleCallback(n)}return Dh(e)}const Mh=50;function Dh(e){const t=Ie(),n=Le(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,Mh-(Ie()-t))})},0);return()=>Be(n)}const Ph=Oe,Fh=30;function Uh(){const e=[];function t(r){let o;if(r.didTimeout){const s=performance.now();o=()=>Fh-(performance.now()-s)}else o=r.timeRemaining.bind(r);for(;o()>0&&e.length;)e.shift()();e.length&&n()}function n(){Lh(t,{timeout:Ph})}return{push(r){e.push(r)===1&&n()},stop(){e.length=0}}}let us={};function $h(e){const t=e.map(n=>(us[n]||(us[n]=Bh(n)),us[n]));return xu(...t)}function Bh(e){return new X(t=>{const n=at[e];return at[e]=(...r)=>{n.apply(console,r);const o=co("console error");gt(()=>{t.notify(Vh(r,e,o))})},()=>{at[e]=n}})}function Vh(e,t,n){const r=e.map(o=>jh(o)).join(" ");if(t===yo.error){const o=e.find(zt),s=Ai({originalError:o,handlingStack:n,startClocks:me(),source:On.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return s.message=r,{api:t,message:r,handlingStack:n,error:s}}return{api:t,message:r,error:void 0,handlingStack:n}}function jh(e){return typeof e=="string"?ne(e):zt(e)?Xu(mr(e)):gr(ne(e),void 0,2)}const Hh=500;function Gh(){const e=[];return{add:o=>{e.push(o)>Hh&&e.splice(0,1)},remove:o=>{ml(e,o)},drain:o=>{e.forEach(s=>s(o)),e.length=0}}}function Wh(e){const t=Kt(e)==="object";return t||V.error("Unsupported context:",e),t}function ls(e,t,n){const r={...e};for(const[o,{required:s,type:i}]of Object.entries(t))i==="string"&&!Ca(r[o])&&(r[o]=String(r[o])),s&&Ca(r[o])&&V.warn(`The property ${o} of ${n} is required; context will not be sent to the intake.`);return r}function Ca(e){return e==null||e===""}function Oo(e="",{propertiesConfig:t={}}={}){let n={};const r=new X,o={getContext:()=>wi(n),setContext:s=>{Wh(s)?n=ne(ls(s,t,e)):o.clearContext(),r.notify()},setContextProperty:(s,i)=>{n=ne(ls({...n,[s]:i},t,e)),r.notify()},removeContextProperty:s=>{delete n[s],ls(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return o}function Se(e,t,n,r){return D((...o)=>(r&&fe({feature:r}),e()[t][n](...o)))}const qh="_dd_c",Kh=[];function Ri(e,t,n,r){const o=zh(n,r);Kh.push(ue(e,window,"storage",({key:u})=>{o===u&&i()})),t.changeObservable.subscribe(a);const s=ft(c(),t.getContext());Wt(s)||t.setContext(s);function i(){t.setContext(c())}function a(){localStorage.setItem(o,JSON.stringify(t.getContext()))}function c(){const u=localStorage.getItem(o);return u?JSON.parse(u):{}}}function zh(e,t){return`${qh}_${e}_${t}`}function Yh(e,t,n){const r=Tl();return t.storeContextsAcrossPages&&Ri(t,r,n,4),e.register(0,()=>{const o=r.getContext();return Wt(o)||!o.id?je:{account:o}}),r}function Tl(){return Oo("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function Xh(e,t,n,r){const o=vl();return t.storeContextsAcrossPages&&Ri(t,o,n,2),e.register(0,()=>({context:o.getContext()})),o}function vl(){return Oo("global context")}function Jh(e,t,n,r){const o=Al();return t.storeContextsAcrossPages&&Ri(t,o,r,1),e.register(0,({eventType:s,startTime:i})=>{const a=o.getContext(),c=n.findTrackedSession(i);return c&&c.anonymousId&&!a.anonymous_id&&t.trackAnonymousUser&&(a.anonymous_id=c.anonymousId),Wt(a)?je:{type:s,usr:a}}),e.register(1,({startTime:s})=>{var i;return{anonymous_id:(i=n.findTrackedSession(s))===null||i===void 0?void 0:i.anonymousId}}),o}function Al(){return Oo("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const pe={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},Te={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function Qh(e,t,n){const r=e.getReader();let o=0;s();function s(){r.read().then(D(a=>{if(a.done){i();return}o+=a.value.length,o>n.bytesLimit?i():s()}),D(a=>t(a)))}function i(){r.cancel().catch(Q),t(void 0,void 0,void 0)}}const Ae={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},xo={FETCH:Ae.FETCH,XHR:Ae.XHR},Zh=500;function eg(e=bm){const t=new ku(Zh),n=e().subscribe(r=>{t.notify({type:0,error:r})});return{observable:t,stop:()=>{n.unsubscribe()}}}function tg(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}const B={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},wl={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},ct={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",BF_CACHE:"bf_cache"},Oi={CLICK:"click",CUSTOM:"custom"},Vn={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},cr={DURATION:"duration",OPERATION_STEP:"operation_step"};function ng(){return{vitalsByName:new Map,vitalsByReference:new WeakMap}}function rg(e,t,n){function r(i){return!t.wasInPageStateDuringPeriod("frozen",i.startClocks.relative,i.duration)}function o(i){r(i)&&e.notify(12,Ra(i))}function s(i,a,c,u){if(!Co(Vt.FEATURE_OPERATION_VITAL))return;const{operationKey:l,context:d,description:f}=c||{},p={name:i,type:cr.OPERATION_STEP,operationKey:l,failureReason:u,stepType:a,startClocks:me(),context:ne(d),description:f};e.notify(12,Ra(p))}return{addOperationStepVital:s,addDurationVital:o,startDurationVital:(i,a={})=>Il(n,i,a),stopDurationVital:(i,a={})=>{Cl(o,n,i,a)}}}function Il({vitalsByName:e,vitalsByReference:t},n,r={}){const o={name:n,startClocks:me(),...r},s={__dd_vital_reference:!0};return e.set(n,o),t.set(s,o),s}function Cl(e,{vitalsByName:t,vitalsByReference:n},r,o={}){const s=typeof r=="string"?t.get(r):n.get(r);s&&(e(og(s,s.startClocks,o,me())),typeof r=="string"?t.delete(r):n.delete(r))}function og(e,t,n,r){var o;return{name:e.name,type:cr.DURATION,startClocks:t,duration:le(t.timeStamp,r.timeStamp),context:ft(e.context,n.context),description:(o=n.description)!==null&&o!==void 0?o:e.description}}function Ra(e){const{startClocks:t,type:n,name:r,description:o,context:s}=e,i={id:be(),type:n,name:r,description:o,...n===cr.DURATION?{duration:U(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:i,type:B.VITAL,context:s},startTime:t.relative,duration:n===cr.DURATION?e.duration:void 0,domainContext:{}}}function Rl(e,t,n){if(e)for(const r of e){const o=r[t];o&&o(n)}}const Oa=new Map;function sg(e,t){if(t===100)return!0;if(t===0)return!1;const n=Oa.get(t);if(n&&e===n.sessionId)return n.decision;let r;return window.BigInt?r=ig(BigInt(`0x${e.split("-")[4]}`),t):r=Ft(t),Oa.set(t,{sessionId:e,decision:r}),r}function ig(e,t){const n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000"),o=e*n%r;return Number(o)<=t/100*Number(r)}function ag(){return xl(64)}function Ol(){return xl(63)}function xl(e){const t=crypto.getRandomValues(new Uint32Array(2));return e===63&&(t[t.length-1]>>>=1),{toString(n=10){let r=t[1],o=t[0],s="";do{const i=r%n*4294967296+o;r=Math.floor(r/n),o=Math.floor(i/n),s=(i%n).toString(n)+s}while(r||o);return s}}}function an(e){return e.toString(16).padStart(16,"0")}function cg(e){const t=e;return Kt(t)==="object"&&sr(t.match)&&Array.isArray(t.propagatorTypes)}function ug(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function lg(e,t,n,r){return{clearTracingIfNeeded:ug,traceFetch:o=>xa(e,o,t,n,r,s=>{var i;if(o.input instanceof Request&&!(!((i=o.init)===null||i===void 0)&&i.headers))o.input=new Request(o.input),Object.keys(s).forEach(a=>{o.input.headers.append(a,s[a])});else{o.init=nr(o.init);const a=[];o.init.headers instanceof Headers?o.init.headers.forEach((c,u)=>{a.push([u,c])}):Array.isArray(o.init.headers)?o.init.headers.forEach(c=>{a.push(c)}):o.init.headers&&Object.keys(o.init.headers).forEach(c=>{a.push([c,o.init.headers[c]])}),o.init.headers=a.concat(bi(s))}}),traceXhr:(o,s)=>xa(e,o,t,n,r,i=>{Object.keys(i).forEach(a=>{s.setRequestHeader(a,i[a])})})}}function xa(e,t,n,r,o,s){const i=n.findTrackedSession();if(!i)return;const a=e.allowedTracingUrls.find(l=>Io([l.match],t.url,!0));if(!a)return;const c=sg(i.id,e.traceSampleRate);(c||e.traceContextInjection===Us.ALL)&&(t.traceSampled=c,t.traceId=ag(),t.spanId=Ol(),s(dg(t.traceId,t.spanId,t.traceSampled,i.id,a.propagatorTypes,r,o,e)))}function dg(e,t,n,r,o,s,i,a){const c={};if(o.forEach(u=>{switch(u){case"datadog":{Object.assign(c,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toString()});break}case"tracecontext":{Object.assign(c,{traceparent:`00-0000000000000000${an(e)}-${an(t)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break}case"b3":{Object.assign(c,{b3:`${an(e)}-${an(t)}-${n?"1":"0"}`});break}case"b3multi":{Object.assign(c,{"X-B3-TraceId":an(e),"X-B3-SpanId":an(t),"X-B3-Sampled":n?"1":"0"});break}}}),a.propagateTraceBaggage){const u={"session.id":r},l=s.getContext().id;typeof l=="string"&&(u["user.id"]=l);const d=i.getContext().id;typeof d=="string"&&(u["account.id"]=d);const f=Object.entries(u).map(([p,h])=>`${p}=${encodeURIComponent(h)}`).join(",");f&&(c.baggage=f)}return c}const kl=["tracecontext","datadog"];function fg(e,t){var n,r,o,s,i,a,c;if(e.trackFeatureFlagsForEvents!==void 0&&!Array.isArray(e.trackFeatureFlagsForEvents)&&V.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId){V.error("Application ID is not configured, no RUM data will be collected.");return}if(!pn(e.sessionReplaySampleRate,"Session Replay")||!pn(e.traceSampleRate,"Trace"))return;if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){V.error("Excluded Activity Urls should be an array");return}const u=pg(e);if(!u)return;const l=Wp(e,t),d=hg(e);if(!l)return;const f=(n=e.sessionReplaySampleRate)!==null&&n!==void 0?n:0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:f,startSessionReplayRecordingManually:e.startSessionReplayRecordingManually!==void 0?!!e.startSessionReplayRecordingManually:f===0,traceSampleRate:(r=e.traceSampleRate)!==null&&r!==void 0?r:100,rulePsr:fr(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:u,excludedActivityUrls:(o=e.excludedActivityUrls)!==null&&o!==void 0?o:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(!((s=e.trackUserInteractions)!==null&&s!==void 0)||s),trackViewsManually:!!e.trackViewsManually,trackResources:!!(!((i=e.trackResources)!==null&&i!==void 0)||i),trackLongTasks:!!(!((a=e.trackLongTasks)!==null&&a!==void 0)||a),trackBfcacheViews:!!e.trackBfcacheViews,trackEarlyRequests:!!e.trackEarlyRequests,subdomain:e.subdomain,defaultPrivacyLevel:so(fn,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:fn.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,traceContextInjection:so(Us,e.traceContextInjection)?e.traceContextInjection:Us.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:(c=e.profilingSampleRate)!==null&&c!==void 0?c:0,propagateTraceBaggage:!!e.propagateTraceBaggage,allowedGraphQlUrls:d,...l}}function pg(e){if(e.allowedTracingUrls===void 0)return[];if(!Array.isArray(e.allowedTracingUrls)){V.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){V.error("Service needs to be configured when tracing is enabled");return}const t=[];return e.allowedTracingUrls.forEach(n=>{sr(n)?t.push({match:n,propagatorTypes:kl}):cg(n)?t.push(n):V.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)}),t}function mg(e){const t=new Set;return er(e.allowedTracingUrls)&&e.allowedTracingUrls.forEach(n=>{sr(n)?kl.forEach(r=>t.add(r)):Kt(n)==="object"&&Array.isArray(n.propagatorTypes)&&n.propagatorTypes.forEach(r=>t.add(r))}),Array.from(t)}function hg(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return V.warn("allowedGraphQlUrls should be an array"),[];const t=[];return e.allowedGraphQlUrls.forEach(n=>{sr(n)?t.push({match:n,trackPayload:!1}):n&&typeof n=="object"&&"match"in n&&sr(n.match)&&t.push({match:n.match,trackPayload:!!n.trackPayload})}),t}function gg(e){return er(e)&&e.some(t=>typeof t=="object"&&"trackPayload"in t?!!t.trackPayload:!1)}function _g(e){var t;const n=qp(e);return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,propagate_trace_baggage:e.propagateTraceBaggage,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:er(e.allowedTracingUrls),use_allowed_graph_ql_urls:er(e.allowedGraphQlUrls),use_track_graph_ql_payload:gg(e.allowedGraphQlUrls),selected_tracing_propagators:mg(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:er(e.excludedActivityUrls),use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,track_bfcache_views:e.trackBfcacheViews,track_early_requests:e.trackEarlyRequests,plugins:(t=e.plugins)===null||t===void 0?void 0:t.map(r=>{var o;return{name:r.name,...(o=r.getConfigurationTelemetry)===null||o===void 0?void 0:o.call(r)}}),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,remote_configuration_id:e.remoteConfigurationId,profiling_sample_rate:e.profilingSampleRate,use_remote_configuration_proxy:!!e.remoteConfigurationProxy,...n}}function yg(e){const t=[];let n=0,r;const o={quote:void 0,escapeSequence:void 0};let s="";for(const i of e){if(r=ka[n].find(a=>Ag[a](i,o)),!r)return[];if(o.escapeSequence!==void 0&&r!==12){if(!Cg(o.escapeSequence))return[];s+=Og(o.escapeSequence),o.escapeSequence=void 0}wg.includes(r)?s+=i:Ig.includes(r)&&s!==""?(t.push(s),s=""):r===12?o.escapeSequence=o.escapeSequence?`${o.escapeSequence}${i}`:i:r===8?o.quote=i:r===9&&(o.quote=void 0),n=r}return ka[n].includes(1)?(s!==""&&t.push(s),t):[]}const Eg=/[a-zA-Z_$]/,bg=/[a-zA-Z0-9_$]/,Sg=/[0-9]/,Tg=/[a-fA-F0-9]/,vg=`'"`,Ag={0:()=>!1,1:()=>!1,2:e=>Eg.test(e),3:e=>bg.test(e),4:e=>e===".",5:e=>e==="[",6:e=>e==="]",7:e=>Sg.test(e),8:e=>vg.includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>e==="\\",12:(e,t)=>t.escapeSequence===void 0?`${t.quote}/\\bfnrtu`.includes(e):t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5?Tg.test(e):!1},ka={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]},wg=[2,3,7,10],Ig=[4,5,6];function Cg(e){return`"'/\\bfnrt`.includes(e)||e.startsWith("u")&&e.length===5}const Rg={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:` `,r:"\r",t:" "};function Og(e){return e.startsWith("u")?String.fromCharCode(parseInt(e.slice(1),16)):Rg[e]}const xg="v1",kg=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function Ng(e,t){let n;const r=Mg(),o=await Ug(e);return o.ok?(r.increment("fetch","success"),n=Lg(e,o.value,t,r)):(r.increment("fetch","failure"),V.error(o.error)),Ii("remote configuration metrics",{metrics:r.get()}),n}function Lg(e,t,n,r){const o={...e};return kg.forEach(f=>{f in t&&(o[f]=s(t[f]))}),Object.keys(n).forEach(f=>{t[f]!==void 0&&i(n[f],t[f])}),o;function s(f){if(Array.isArray(f))return f.map(s);if(Dg(f)){if(Pg(f)){const p=f.rcSerializedType;switch(p){case"string":return f.value;case"regex":return Nl(f.value);case"dynamic":return a(f);default:V.error(`Unsupported remote configuration: "rcSerializedType": "${p}"`);return}}return Ru(f,s)}return f}function i(f,p){p.forEach(({key:h,value:g})=>{f.setContextProperty(h,s(g))})}function a(f){const p=f.strategy;let h;switch(p){case"cookie":h=c(f);break;case"dom":h=u(f);break;case"js":h=d(f);break;default:V.error(`Unsupported remote configuration: "strategy": "${p}"`);return}const g=f.extractor;return g!==void 0&&typeof h=="string"?Fg(g,h):h}function c({name:f}){const p=wo(f);return r.increment("cookie",p!==void 0?"success":"missing"),p}function u({selector:f,attribute:p}){let h;try{h=document.querySelector(f)}catch{V.error(`Invalid selector in the remote configuration: '${f}'`),r.increment("dom","failure");return}if(!h){r.increment("dom","missing");return}if(l(h,p)){V.error(`Forbidden element selected by the remote configuration: '${f}'`),r.increment("dom","failure");return}const g=p!==void 0?h.getAttribute(p):h.textContent;if(g===null){r.increment("dom","missing");return}return r.increment("dom","success"),g}function l(f,p){return f.getAttribute("type")==="password"&&p==="value"}function d({path:f}){let p=window;const h=yg(f);if(h.length===0){V.error(`Invalid JSON path in the remote configuration: '${f}'`),r.increment("js","failure");return}for(const g of h){if(!(g in p)){r.increment("js","missing");return}try{p=p[g]}catch(y){V.error(`Error accessing: '${f}'`,y),r.increment("js","failure");return}}return r.increment("js","success"),p}}function Mg(){const e={fetch:{}};return{get:()=>e,increment:(t,n)=>{e[t]||(e[t]={}),e[t][n]||(e[t][n]=0),e[t][n]=e[t][n]+1}}}function Dg(e){return typeof e=="object"&&e!==null}function Pg(e){return"rcSerializedType"in e}function Nl(e){try{return new RegExp(e)}catch{V.error(`Invalid regex in the remote configuration: '${e}'`)}}function Fg(e,t){const n=Nl(e.value);if(n===void 0)return;const r=n.exec(t);if(r===null)return;const[o,s]=r;return s||o}async function Ug(e){let t;try{t=await fetch($g(e))}catch{t=void 0}if(!t||!t.ok)return{ok:!1,error:new Error("Error fetching the remote configuration.")};const n=await t.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:new Error("No remote configuration for RUM.")}}function $g(e){return e.remoteConfigurationProxy?e.remoteConfigurationProxy:`https://sdk-configuration.${Ku("rum",e)}/${xg}/${encodeURIComponent(e.remoteConfigurationId)}.json`}function Bg({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},n,r,o){const s=Gh(),i=vl();ds(i,pe.globalContext,s);const a=Al();ds(a,pe.userContext,s);const c=Tl();ds(c,pe.accountContext,s);let u,l,d,f;const p=n.observable.subscribe(g),h={};function g(){if(!d||!f||!n.isGranted())return;p.unsubscribe();let E;if(f.trackViewsManually){if(!u)return;s.remove(u.callback),E=u.options}const I=o(f,l,E);s.drain(I)}function y(E,I){const _=ar();if(_&&(E=Vg(E)),d=E,ah(_g(E)),f){Qu("DD_RUM",E);return}const w=fg(E,I);if(w){if(!_&&!w.sessionStoreStrategyType){V.warn("No storage available for session. We will not send any data.");return}w.compressIntakeRequests&&!_&&t&&(l=t(w,"Datadog RUM",Q),!l)||(f=w,Sl().subscribe(Q),n.tryToInit(w.trackingConsent),g())}}const C=E=>{s.add(I=>I.addDurationVital(E))};return{init(E,I,_){if(!E){V.error("Missing configuration");return}Kp(E.enableExperimentalFeatures),d=E,!(e&&hl())&&(Rl(E.plugins,"onInit",{initConfiguration:E,publicApi:I}),E.remoteConfigurationId?Ng(E,{user:a,context:i}).then(w=>{w&&y(w,_)}).catch(bo):y(E,_))},get initConfiguration(){return d},getInternalContext:Q,stopSession:Q,addTiming(E,I=Me()){s.add(_=>_.addTiming(E,I))},startView(E,I=me()){const _=w=>{w.startView(E,I)};s.add(_),u||(u={options:E,callback:_},g())},setViewName(E){s.add(I=>I.setViewName(E))},setViewContext(E){s.add(I=>I.setViewContext(E))},setViewContextProperty(E,I){s.add(_=>_.setViewContextProperty(E,I))},getViewContext:()=>h,globalContext:i,userContext:a,accountContext:c,addAction(E){s.add(I=>I.addAction(E))},addError(E){s.add(I=>I.addError(E))},addFeatureFlagEvaluation(E,I){s.add(_=>_.addFeatureFlagEvaluation(E,I))},startDurationVital(E,I){return Il(r,E,I)},stopDurationVital(E,I){Cl(C,r,E,I)},addDurationVital:C,addOperationStepVital:(E,I,_,w)=>{s.add(F=>F.addOperationStepVital(ne(E),I,ne(_),ne(w)))}}}function Vg(e){var t,n;return{...e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(t=e.defaultPrivacyLevel)!==null&&t!==void 0?t:(n=_r())===null||n===void 0?void 0:n.getPrivacyLevel()}}function ds(e,t,n){e.changeObservable.subscribe(()=>{const r=e.getContext();n.add(o=>o[t].setContext(r))})}function jg(e,t,n,r={}){const o=Ip(),s=ng(),i=eg().observable;let a=Bg(r,o,s,(d,f,p)=>{const h=f&&r.createDeflateEncoder?y=>r.createDeflateEncoder(d,f,y):vh,g=e(d,t,n,p,h,o,s,i,r.sdkName);return t.onRumStart(g.lifeCycle,d,g.session,g.viewHistory,f,g.telemetry),n.onRumStart(g.lifeCycle,g.hooks,d,g.session,g.viewHistory,h),a=Hg(a,g),Rl(d.plugins,"onRumStart",{strategy:a,addEvent:g.addEvent}),g});const c=()=>a,u=D(d=>{const f=typeof d=="object"?d:{name:d};a.startView(f),fe({feature:"start-view"})}),l=vm({init:d=>{const f=new Error().stack;gt(()=>a.init(d,l,f))},setTrackingConsent:D(d=>{o.update(d),fe({feature:"set-tracking-consent",tracking_consent:d})}),setViewName:D(d=>{a.setViewName(d),fe({feature:"set-view-name"})}),setViewContext:D(d=>{a.setViewContext(d),fe({feature:"set-view-context"})}),setViewContextProperty:D((d,f)=>{a.setViewContextProperty(d,f),fe({feature:"set-view-context-property"})}),getViewContext:D(()=>(fe({feature:"set-view-context-property"}),a.getViewContext())),getInternalContext:D(d=>a.getInternalContext(d)),getInitConfiguration:D(()=>wi(a.initConfiguration)),addAction:(d,f)=>{const p=co("action");gt(()=>{a.addAction({name:ne(d),context:ne(f),startClocks:me(),type:Oi.CUSTOM,handlingStack:p}),fe({feature:"add-action"})})},addError:(d,f)=>{const p=co("error");gt(()=>{a.addError({error:d,handlingStack:p,context:ne(f),startClocks:me()}),fe({feature:"add-error"})})},addTiming:D((d,f)=>{a.addTiming(ne(d),f)}),setGlobalContext:Se(c,pe.globalContext,Te.setContext,"set-global-context"),getGlobalContext:Se(c,pe.globalContext,Te.getContext,"get-global-context"),setGlobalContextProperty:Se(c,pe.globalContext,Te.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:Se(c,pe.globalContext,Te.removeContextProperty,"remove-global-context-property"),clearGlobalContext:Se(c,pe.globalContext,Te.clearContext,"clear-global-context"),setUser:Se(c,pe.userContext,Te.setContext,"set-user"),getUser:Se(c,pe.userContext,Te.getContext,"get-user"),setUserProperty:Se(c,pe.userContext,Te.setContextProperty,"set-user-property"),removeUserProperty:Se(c,pe.userContext,Te.removeContextProperty,"remove-user-property"),clearUser:Se(c,pe.userContext,Te.clearContext,"clear-user"),setAccount:Se(c,pe.accountContext,Te.setContext,"set-account"),getAccount:Se(c,pe.accountContext,Te.getContext,"get-account"),setAccountProperty:Se(c,pe.accountContext,Te.setContextProperty,"set-account-property"),removeAccountProperty:Se(c,pe.accountContext,Te.removeContextProperty,"remove-account-property"),clearAccount:Se(c,pe.accountContext,Te.clearContext,"clear-account"),startView:u,stopSession:D(()=>{a.stopSession(),fe({feature:"stop-session"})}),addFeatureFlagEvaluation:D((d,f)=>{a.addFeatureFlagEvaluation(ne(d),ne(f)),fe({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:D(()=>t.getSessionReplayLink()),startSessionReplayRecording:D(d=>{t.start(d),fe({feature:"start-session-replay-recording",force:d&&d.force})}),stopSessionReplayRecording:D(()=>t.stop()),addDurationVital:D((d,f)=>{fe({feature:"add-duration-vital"}),a.addDurationVital({name:ne(d),type:cr.DURATION,startClocks:$f(f.startTime),duration:f.duration,context:ne(f&&f.context),description:ne(f&&f.description)})}),startDurationVital:D((d,f)=>(fe({feature:"start-duration-vital"}),a.startDurationVital(ne(d),{context:ne(f&&f.context),description:ne(f&&f.description)}))),stopDurationVital:D((d,f)=>{fe({feature:"stop-duration-vital"}),a.stopDurationVital(typeof d=="string"?ne(d):d,{context:ne(f&&f.context),description:ne(f&&f.description)})}),startFeatureOperation:D((d,f)=>{fe({feature:"add-operation-step-vital",action_type:"start"}),a.addOperationStepVital(d,"start",f)}),succeedFeatureOperation:D((d,f)=>{fe({feature:"add-operation-step-vital",action_type:"succeed"}),a.addOperationStepVital(d,"end",f)}),failFeatureOperation:D((d,f,p)=>{fe({feature:"add-operation-step-vital",action_type:"fail"}),a.addOperationStepVital(d,"end",p,f)})});return l}function Hg(e,t){return{init:n=>{Qu("DD_RUM",n)},initConfiguration:e.initConfiguration,...t}}function Gg(){const e=Wg();return new X(t=>{if(!e)return;const n=new e(D(r=>t.notify(r)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}function Wg(){let e;const t=window;if(t.Zone&&(e=yt(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){const n=new t.MutationObserver(Q),r=yt(n,"originalInstance");e=r&&r.constructor}return e||(e=t.MutationObserver),e}function qg(){const e=new X,{stop:t}=Ze(window,"open",()=>e.notify());return{observable:e,stop:t}}function Kg(e,t,n,r,o){return{get:s=>{const i=n.findView(s),a=o.findUrl(s),c=t.findTrackedSession(s);if(c&&i&&a){const u=r.findActionId(s);return{application_id:e,session_id:c.id,user_action:u?{id:u}:void 0,view:{id:i.id,name:i.name,referrer:a.referrer,url:a.url}}}}}}const zg=Ah,Yg=qt;function Xg(e){const t=kn({expireDelay:Yg});e.subscribe(1,r=>{t.add(n(r),r.startClocks.relative)}),e.subscribe(6,({endClocks:r})=>{t.closeActive(r.relative)}),e.subscribe(3,r=>{const o=t.find(r.startClocks.relative);o&&(r.name&&(o.name=r.name),r.context&&(o.context=r.context),o.sessionIsActive=r.sessionIsActive)}),e.subscribe(10,()=>{t.reset()});function n(r){return{service:r.service,version:r.version,context:r.context,id:r.id,name:r.name,startClocks:r.startClocks}}return{findView:r=>t.find(r),stop:()=>{t.stop()}}}const Ll="initial_document",Jg=[[Ae.DOCUMENT,e=>Ll===e],[Ae.XHR,e=>e==="xmlhttprequest"],[Ae.FETCH,e=>e==="fetch"],[Ae.BEACON,e=>e==="beacon"],[Ae.CSS,(e,t)=>/\.css$/i.test(t)],[Ae.JS,(e,t)=>/\.js$/i.test(t)],[Ae.IMAGE,(e,t)=>["image","img","icon"].includes(e)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)!==null],[Ae.FONT,(e,t)=>/\.(woff|eot|woff2|ttf)$/i.exec(t)!==null],[Ae.MEDIA,(e,t)=>["audio","video"].includes(e)||/\.(mp3|mp4)$/i.exec(t)!==null]];function Qg(e){const t=e.name;if(!Jf(t))return Ae.OTHER;const n=Qf(t);for(const[r,o]of Jg)if(o(e.initiatorType,n))return r;return Ae.OTHER}function Na(...e){for(let t=1;te[t])return!1;return!0}function Ml(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function Zg(e){const{duration:t,startTime:n,responseEnd:r}=e;return t===0&&n=0}function Pl(e){const t=Na(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=t_(e)?Na(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart):!0;return t&&n}function t_(e){return e.redirectEnd>e.startTime}function xt(e,t,n){if(e<=t&&t<=n)return{duration:U(le(t,n)),start:U(le(e,t))}}function n_(e){return e.nextHopProtocol===""?void 0:e.nextHopProtocol}function r_(e){return e.deliveryType===""?"other":e.deliveryType}function o_(e){if(e.startTime{const s=o;if(xi(s.url))switch(s.state){case"start":n.traceXhr(s,s.xhr),s.requestIndex=Fl(),e.notify(7,{requestIndex:s.requestIndex,url:s.url});break;case"complete":n.clearTracingIfNeeded(s),e.notify(8,{duration:s.duration,method:s.method,requestIndex:s.requestIndex,spanId:s.spanId,startClocks:s.startClocks,status:s.status,traceId:s.traceId,traceSampled:s.traceSampled,type:xo.XHR,url:s.url,xhr:s.xhr,isAborted:s.isAborted,handlingStack:s.handlingStack,body:s.body});break}});return{stop:()=>r.unsubscribe()}}function l_(e,t){const n=Sl().subscribe(r=>{const o=r;if(xi(o.url))switch(o.state){case"start":t.traceFetch(o),o.requestIndex=Fl(),e.notify(7,{requestIndex:o.requestIndex,url:o.url});break;case"resolve":d_(o,s=>{var i;t.clearTracingIfNeeded(o),e.notify(8,{duration:s,method:o.method,requestIndex:o.requestIndex,responseType:o.responseType,spanId:o.spanId,startClocks:o.startClocks,status:o.status,traceId:o.traceId,traceSampled:o.traceSampled,type:xo.FETCH,url:o.url,response:o.response,init:o.init,input:o.input,isAborted:o.isAborted,handlingStack:o.handlingStack,body:(i=o.init)===null||i===void 0?void 0:i.body})});break}});return{stop:()=>n.unsubscribe()}}function Fl(){const e=La;return La+=1,e}function d_(e,t){const n=e.response&&Pm(e.response);!n||!n.body?t(le(e.startClocks.timeStamp,Me())):Qh(n.body,()=>{t(le(e.startClocks.timeStamp,Me()))},{bytesLimit:Number.POSITIVE_INFINITY})}function Ul(e){return fr(e)&&e<0?void 0:e}function $l({lifeCycle:e,isChildEvent:t,onChange:n=Q}){const r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(13,s=>{var i;if(!(s.type==="view"||s.type==="vital"||!t(s)))switch(s.type){case B.ERROR:r.errorCount+=1,n();break;case B.ACTION:r.actionCount+=1,s.action.frustration&&(r.frustrationCount+=s.action.frustration.type.length),n();break;case B.LONG_TASK:r.longTaskCount+=1,n();break;case B.RESOURCE:!((i=s._dd)===null||i===void 0)&&i.discarded||(r.resourceCount+=1,n());break}});return{stop:()=>{o.unsubscribe()},eventCounts:r}}function f_(e,t){const n=Ie();let r=!1;const{stop:o}=bt(e,window,["click","mousedown","keydown","touchstart","pointerdown"],a=>{if(!a.cancelable)return;const c={entryType:"first-input",processingStart:Ue(),processingEnd:Ue(),startTime:a.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};a.type==="pointerdown"?s(e,c):i(c)},{passive:!0,capture:!0});return{stop:o};function s(a,c){bt(a,window,["pointerup","pointercancel"],u=>{u.type==="pointerup"&&i(c)},{once:!0})}function i(a){if(!r){r=!0,o();const c=a.processingStart-a.startTime;c>=0&&c{if(!window.PerformanceObserver)return;const r=c=>{const u=h_(c);u.length>0&&n.notify(u)};let o,s=!0;const i=new PerformanceObserver(D(c=>{s?o=Le(()=>r(c.getEntries())):r(c.getEntries())}));try{i.observe(t)}catch{if([J.RESOURCE,J.NAVIGATION,J.LONG_TASK,J.PAINT].includes(t.type)){t.buffered&&(o=Le(()=>r(performance.getEntriesByType(t.type))));try{i.observe({entryTypes:[t.type]})}catch{return}}}s=!1,p_(e);let a;return!Yt(J.FIRST_INPUT)&&t.type===J.FIRST_INPUT&&({stop:a}=f_(e,c=>{r([c])})),()=>{i.disconnect(),a&&a(),Be(o)}})}let jn;function p_(e){return!jn&&m_()&&"addEventListener"in performance&&(jn=ue(e,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{jn==null||jn.stop()}}function m_(){return window.performance!==void 0&&"getEntries"in performance}function Yt(e){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(e)}function h_(e){return e.filter(t=>!g_(t))}function g_(e){return e.entryType===J.RESOURCE&&(!xi(e.name)||!Dl(e))}function Vs(e){return e.nodeType===Node.TEXT_NODE}function __(e){return e.nodeType===Node.COMMENT_NODE}function Tt(e){return e.nodeType===Node.ELEMENT_NODE}function y_(e){const t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Tt(t.host)}function E_(e){return y_(e)?e.host:e.parentNode}const Bl=100,b_=100,Ma="data-dd-excluded-activity-mutations";function ki(e,t,n,r,o,s){const i=T_(e,t,n,r);return S_(i,o,s)}function S_(e,t,n){let r,o=!1;const s=Le(D(()=>u({hadActivity:!1})),Bl),i=n!==void 0?Le(D(()=>u({hadActivity:!0,end:Me()})),n):void 0,a=e.subscribe(({isBusy:l})=>{Be(s),Be(r);const d=Me();l||(r=Le(D(()=>u({hadActivity:!0,end:d})),b_))}),c=()=>{o=!0,Be(s),Be(r),Be(i),a.unsubscribe()};function u(l){o||(c(),t(l))}return{stop:c}}function T_(e,t,n,r){return new X(o=>{const s=[];let i,a=0;return s.push(t.subscribe(u=>{u.every(v_)||c()}),n.subscribe(c),tt(r,{type:J.RESOURCE}).subscribe(u=>{u.some(l=>!fs(r,l.name))&&c()}),e.subscribe(7,u=>{fs(r,u.url)||(i===void 0&&(i=u.requestIndex),a+=1,c())}),e.subscribe(8,u=>{fs(r,u.url)||i===void 0||u.requestIndex{s.forEach(u=>u.unsubscribe())};function c(){o.notify({isBusy:a>0})}})}function fs(e,t){return Io(e.excludedActivityUrls,t)}function v_(e){const t=e.type==="characterData"?e.target.parentElement:e.target;return!!(t&&Tt(t)&&t.matches(`[${Ma}], [${Ma}] *`))}const ko="data-dd-action-name",A_="Masked Element",w_=[ko,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],I_=[jl,R_],C_=[jl,O_,x_];function yr(e,t){if(!e.isConnected)return;let n,r=e;for(;r&&r.nodeName!=="HTML";){const o=Da(r,I_,N_,t,n);if(o)return o;n=Da(r,C_,L_,t,n)||No(k_(r),n),r=r.parentElement}return n}function Vl(e){return/[0-9]/.test(e)}function R_(e){if(e.id&&!Vl(e.id))return`#${CSS.escape(e.id)}`}function O_(e){if(e.tagName==="BODY")return;const t=e.classList;for(let n=0;ni.matches(t);else{const i=No(`${t}:scope`,n);r=a=>a.querySelector(i)!==null}let s=e.parentElement.firstElementChild;for(;s;){if(s!==e&&r(s))return!1;s=s.nextElementSibling}return!0}function No(e,t){return t?`${e}>${t}`:e}const Y={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:fn.ALLOW,MASK:fn.MASK,MASK_USER_INPUT:fn.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:fn.MASK_UNLESS_ALLOWLISTED},M_="data-dd-privacy",D_="dd-privacy-",P_={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Mt(e){return`[${M_}="${e}"], .${D_}${e}`}function Ni(e,t,n){if(n&&n.has(e))return n.get(e);const r=E_(e),o=r?Ni(r,t,n):t,s=U_(e),i=F_(s,o);return n&&n.set(e,i),i}function F_(e,t){switch(t){case Y.HIDDEN:case Y.IGNORE:return t}switch(e){case Y.ALLOW:case Y.MASK:case Y.MASK_USER_INPUT:case Y.MASK_UNLESS_ALLOWLISTED:case Y.HIDDEN:case Y.IGNORE:return e;default:return t}}function U_(e){if(Tt(e)){if(e.tagName==="BASE")return Y.ALLOW;if(e.tagName==="INPUT"){const t=e;if(t.type==="password"||t.type==="email"||t.type==="tel"||t.type==="hidden")return Y.MASK;const n=t.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return Y.MASK}if(e.matches(Mt(Y.HIDDEN)))return Y.HIDDEN;if(e.matches(Mt(Y.MASK)))return Y.MASK;if(e.matches(Mt(Y.MASK_UNLESS_ALLOWLISTED)))return Y.MASK_UNLESS_ALLOWLISTED;if(e.matches(Mt(Y.MASK_USER_INPUT)))return Y.MASK_USER_INPUT;if(e.matches(Mt(Y.ALLOW)))return Y.ALLOW;if(B_(e))return Y.IGNORE}}function $_(e,t){switch(t){case Y.MASK:case Y.HIDDEN:case Y.IGNORE:return!0;case Y.MASK_UNLESS_ALLOWLISTED:return Vs(e)?Fr(e.parentNode)?!0:!V_(e.textContent||""):Fr(e);case Y.MASK_USER_INPUT:return Vs(e)?Fr(e.parentNode):Fr(e);default:return!1}}function Fr(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;const t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!P_[t.tagName]}function B_(e){if(e.nodeName==="SCRIPT")return!0;if(e.nodeName==="LINK"){const n=t("rel");return/preload|prefetch/i.test(n)&&t("as")==="script"||n==="shortcut icon"||n==="icon"}if(e.nodeName==="META"){const n=t("name"),r=t("rel"),o=t("property");return/^msapplication-tile(image|color)$/.test(n)||n==="application-name"||r==="icon"||r==="apple-touch-icon"||r==="shortcut icon"||n==="keywords"||n==="description"||/^(og|twitter|fb):/.test(o)||/^(og|twitter):/.test(n)||n==="pinterest"||n==="robots"||n==="googlebot"||n==="bingbot"||e.hasAttribute("http-equiv")||n==="author"||n==="generator"||n==="framework"||n==="publisher"||n==="progid"||/^article:/.test(o)||/^product:/.test(o)||n==="google-site-verification"||n==="yandex-verification"||n==="csrf-token"||n==="p:domain_verify"||n==="verify-v1"||n==="verification"||n==="shopify-checkout-api-token"}function t(n){return(e.getAttribute(n)||"").toLowerCase()}return!1}function V_(e){var t;return!e||!e.trim()?!0:((t=window.$DD_ALLOW)===null||t===void 0?void 0:t.has(e.toLocaleLowerCase()))||!1}const Hl=Oe,j_=100;function H_(e,t){const n=[];let r=0,o;s(e);function s(c){c.stopObservable.subscribe(i),n.push(c),Be(o),o=Le(a,Hl)}function i(){r===1&&n.every(c=>c.isStopped())&&(r=2,t(n))}function a(){Be(o),r===0&&(r=1,i())}return{tryAppend:c=>r!==0?!1:n.length>0&&!G_(n[n.length-1].event,c.event)?(a(),!1):(s(c),!0),stop:()=>{a()}}}function G_(e,t){return e.target===t.target&&W_(e,t)<=j_&&e.timeStamp-t.timeStamp<=Hl}function W_(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function q_(e,t,n=Y.ALLOW){const{actionNameAttribute:r}=t,o=Pa(e,ko)||r&&Pa(e,r);return o?{name:o,nameSource:"custom_attribute"}:n===Y.MASK?{name:A_,nameSource:"mask_placeholder"}:Fa(e,K_,t)||Fa(e,z_,t)||{name:"",nameSource:"blank"}}function Pa(e,t){const n=e.closest(`[${t}]`);if(!n)return;const r=n.getAttribute(t);return Wl(Gl(r.trim()))}const K_=[(e,t)=>{if("labels"in e&&e.labels&&e.labels.length>0)return Jr(e.labels[0],t)},e=>{if(e.nodeName==="INPUT"){const t=e,n=t.getAttribute("type");if(n==="button"||n==="submit"||n==="reset")return{name:t.value,nameSource:"text_content"}}},(e,t)=>{if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return Jr(e,t)},e=>Hn(e,"aria-label"),(e,t)=>{const n=e.getAttribute("aria-labelledby");if(n)return{name:n.split(/\s+/).map(r=>X_(e,r)).filter(r=>!!r).map(r=>ql(r,t)).join(" "),nameSource:"text_content"}},e=>Hn(e,"alt"),e=>Hn(e,"name"),e=>Hn(e,"title"),e=>Hn(e,"placeholder"),(e,t)=>{if("options"in e&&e.options.length>0)return Jr(e.options[0],t)}],z_=[(e,t)=>Jr(e,t)],Y_=10;function Fa(e,t,n){let r=e,o=0;for(;o<=Y_&&r&&r.nodeName!=="BODY"&&r.nodeName!=="HTML"&&r.nodeName!=="HEAD";){for(const s of t){const i=s(r,n);if(i){const{name:a,nameSource:c}=i,u=a&&a.trim();if(u)return{name:Wl(Gl(u)),nameSource:c}}}if(r.nodeName==="FORM")break;r=r.parentElement,o+=1}}function Gl(e){return e.replace(/\s+/g," ")}function Wl(e){return e.length>100?`${yi(e,100)} [...]`:e}function X_(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}function Hn(e,t){return{name:e.getAttribute(t)||"",nameSource:"standard_attribute"}}function Jr(e,t){return{name:ql(e,t)||"",nameSource:"text_content"}}function ql(e,t){if(e.isContentEditable)return;const{enablePrivacyForActionName:n,actionNameAttribute:r,defaultPrivacyLevel:o}=t;if(Co(Vt.USE_TREE_WALKER_FOR_ACTION_NAME))return J_(e,r,n,o);if("innerText"in e){let s=e.innerText;const i=a=>{const c=e.querySelectorAll(a);for(let u=0;u0&&(s=s.replace(d,""))}}};return i(`[${ko}]`),r&&i(`[${r}]`),n&&i(`${Mt(Y.HIDDEN)}, ${Mt(Y.MASK)}`),s}return e.textContent}function J_(e,t,n,r){const o=new Map,s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,a);let i="";for(;s.nextNode();){const c=s.currentNode;if(Tt(c)){(c.nodeName==="BR"||c.nodeName==="P"||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(c).display))&&(i+=" ");continue}i+=c.textContent||""}return i.replace(/\s+/g," ").trim();function a(c){const u=Ni(c,r,o);if(n&&u&&$_(c,u))return NodeFilter.FILTER_REJECT;if(Tt(c)){if(c.hasAttribute(ko)||t&&c.hasAttribute(t))return NodeFilter.FILTER_REJECT;const l=getComputedStyle(c);if(l.visibility!=="visible"||l.display==="none"||l.contentVisibility&&l.contentVisibility!=="visible")return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}}function Q_(e,{onPointerDown:t,onPointerUp:n}){let r,o={selection:!1,input:!1,scroll:!1},s;const i=[ue(e,window,"pointerdown",a=>{$a(a)&&(r=Ua(),o={selection:!1,input:!1,scroll:!1},s=t(a))},{capture:!0}),ue(e,window,"selectionchange",()=>{(!r||!Ua())&&(o.selection=!0)},{capture:!0}),ue(e,window,"scroll",()=>{o.scroll=!0},{capture:!0,passive:!0}),ue(e,window,"pointerup",a=>{if($a(a)&&s){const c=o;n(s,a,()=>c),s=void 0}},{capture:!0}),ue(e,window,"input",()=>{o.input=!0},{capture:!0})];return{stop:()=>{i.forEach(a=>a.stop())}}}function Ua(){const e=window.getSelection();return!e||e.isCollapsed}function $a(e){return e.target instanceof Element&&e.isPrimary!==!1}const Ba=3;function Z_(e,t){if(ey(e))return t.addFrustration(Vn.RAGE_CLICK),e.some(Va)&&t.addFrustration(Vn.DEAD_CLICK),t.hasError&&t.addFrustration(Vn.ERROR_CLICK),{isRage:!0};const n=e.some(r=>r.getUserActivity().selection);return e.forEach(r=>{r.hasError&&r.addFrustration(Vn.ERROR_CLICK),Va(r)&&!n&&r.addFrustration(Vn.DEAD_CLICK)}),{isRage:!1}}function ey(e){if(e.some(t=>t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let t=0;t{le(r,Ue())>Kl&&tr.delete(r)})}const ry=5*xe;function oy(e,t,n,r){const o=kn({expireDelay:ry}),s=new X;let i;e.subscribe(10,()=>{o.reset()}),e.subscribe(5,l),e.subscribe(11,d=>{d.reason===hn.UNLOADING&&l()});const{stop:a}=Q_(r,{onPointerDown:d=>sy(r,e,t,d,n),onPointerUp:({clickActionBase:d,hadActivityOnPointerDown:f},p,h)=>{iy(r,e,t,n,o,s,u,d,p,h,f)}});return{stop:()=>{l(),s.notify(),a()},actionContexts:{findActionId:d=>o.findAll(d)}};function u(d){if(!i||!i.tryAppend(d)){const f=d.clone();i=H_(d,p=>{cy(p,f)})}}function l(){i&&i.stop()}}function sy(e,t,n,r,o){let s;if(e.enablePrivacyForActionName?s=Ni(r.target,e.defaultPrivacyLevel):s=Y.ALLOW,s===Y.HIDDEN)return;const i=ay(r,s,e);let a=!1;return ki(t,n,o,e,c=>{a=c.hadActivity},Bl),{clickActionBase:i,hadActivityOnPointerDown:()=>a}}function iy(e,t,n,r,o,s,i,a,c,u,l){var d;const f=Yl(t,o,u,a,c);i(f);const p=(d=a==null?void 0:a.target)===null||d===void 0?void 0:d.selector;p&&zl(c.timeStamp,p);const{stop:h}=ki(t,n,r,e,C=>{C.hadActivity&&C.end{f.stop(C.timeStamp)}),y=s.subscribe(()=>{f.stop()});f.stopObservable.subscribe(()=>{g.unsubscribe(),h(),y.unsubscribe()})}function ay(e,t,n){const r=e.target.getBoundingClientRect(),o=yr(e.target,n.actionNameAttribute);o&&zl(e.timeStamp,o);const{name:s,nameSource:i}=q_(e.target,n,t);return{type:Oi.CLICK,target:{width:Math.round(r.width),height:Math.round(r.height),selector:o},position:{x:Math.round(e.clientX-r.left),y:Math.round(e.clientY-r.top)},name:s,nameSource:i}}function Yl(e,t,n,r,o){const s=be(),i=me(),a=t.add(s,i.relative),c=$l({lifeCycle:e,isChildEvent:h=>h.action!==void 0&&(Array.isArray(h.action.id)?h.action.id.includes(s):h.action.id===s)});let u=0,l;const d=[],f=new X;function p(h){u===0&&(l=h,u=1,l?a.close(_i(l)):a.remove(),c.stop(),f.notify())}return{event:o,stop:p,stopObservable:f,get hasError(){return c.eventCounts.errorCount>0},get hasPageActivity(){return l!==void 0},getUserActivity:n,addFrustration:h=>{d.push(h)},startClocks:i,isStopped:()=>u===1||u===2,clone:()=>Yl(e,t,n,r,o),validate:h=>{if(p(),u!==1)return;const{resourceCount:g,errorCount:y,longTaskCount:C}=c.eventCounts,k={duration:l&&le(i.timeStamp,l),startClocks:i,id:s,frustrationTypes:d,counts:{resourceCount:g,errorCount:y,longTaskCount:C},events:h??[o],event:o,...r};e.notify(0,k),u=2},discard:()=>{p(),u=2}}}function cy(e,t){const{isRage:n}=Z_(e,t);n?(e.forEach(r=>r.discard()),t.stop(Me()),t.validate(e.map(r=>r.event))):(t.discard(),e.forEach(r=>r.validate()))}function uy(e,t,n,r,o){const{unsubscribe:s}=e.subscribe(0,c=>{e.notify(12,ja(c))});t.register(0,({startTime:c,eventType:u})=>{if(u!==B.ERROR&&u!==B.RESOURCE&&u!==B.LONG_TASK)return je;const l=i.findActionId(c);return l?{type:u,action:{id:l}}:je}),t.register(1,({startTime:c})=>({action:{id:i.findActionId(c)}}));let i={findActionId:Q},a=Q;return o.trackUserInteractions&&({actionContexts:i,stop:a}=oy(e,n,r,o)),{addAction:c=>{e.notify(12,ja(c))},actionContexts:i,stop:()=>{s(),a()}}}function ja(e){const t=ps(e)?{action:{id:e.id,loading_time:Ul(U(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position,name_source:e.nameSource}}}:{context:e.context},n=ft({action:{id:be(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:B.ACTION},t),r=ps(e)?e.duration:void 0,o=ps(e)?{events:e.events}:{handlingStack:e.handlingStack};return{rawRumEvent:n,duration:r,startTime:e.startClocks.relative,domainContext:o}}function ps(e){return e.type!==Oi.CUSTOM}function ly(e){const t=$h([yo.error]).subscribe(n=>e.notify(n.error));return{stop:()=>{t.unsubscribe()}}}function dy(e,t){const n=wm(e,[ir.cspViolation,ir.intervention]).subscribe(r=>t.notify(r));return{stop:()=>{n.unsubscribe()}}}function fy(e,t,n){const r=new X;return n.subscribe(o=>{o.type===0&&r.notify(o.error)}),ly(r),dy(t,r),r.subscribe(o=>e.notify(14,{error:o})),py(e)}function py(e){return e.subscribe(14,({error:t})=>{e.notify(12,my(t))}),{addError:({error:t,handlingStack:n,componentStack:r,startClocks:o,context:s})=>{const i=Ai({originalError:t,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:"Provided",source:On.CUSTOM,handling:"handled"});i.context=ft(i.context,s),e.notify(14,{error:i})}}}function my(e){const t={date:e.startClocks.timeStamp,error:{id:be(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:B.ERROR,context:e.context},n={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startTime:e.startClocks.relative,domainContext:n}}const Ha=new WeakSet;function hy(e){if(!performance||!("getEntriesByName"in performance))return;const t=performance.getEntriesByName(e.url,"resource");if(!t.length||!("toJSON"in t[0]))return;const n=t.filter(r=>!Ha.has(r)).filter(r=>Dl(r)&&Pl(r)).filter(r=>gy(r,e.startClocks.relative,Xl({startTime:e.startClocks.relative,duration:e.duration})));if(n.length===1)return Ha.add(n[0]),n[0].toJSON()}function Xl(e){return Cn(e.startTime,e.duration)}function gy(e,t,n){return e.startTime>=t-1&&Xl(e)<=Cn(n,1)}const _y=2*xe;function yy(e){const t=Ey(e)||by(e);if(!(!t||t.traceTime<=Ie()-_y))return t.traceId}function Ey(e){const t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return Jl(t&&t.content,n&&n.content)}function by(e){const t=Sy(e);if(t)return Jl(rr(t,"trace-id"),rr(t,"trace-time"))}function Jl(e,t){const n=t&&Number(t);if(!(!e||!n))return{traceId:e,traceTime:n}}function Sy(e){for(let t=0;t=0;t-=1){const n=e.body.childNodes[t],r=Ga(n);if(r)return r;if(!Vs(n))break}}function Ga(e){if(e&&__(e)){const t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function Ql(){if(Yt(J.NAVIGATION)){const n=performance.getEntriesByType(J.NAVIGATION)[0];if(n)return n}const e=Ty(),t={entryType:J.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function Ty(){const e={},t=performance.timing;for(const n in t)if(fr(t[n])){const r=n,o=t[r];e[r]=o===0?0:_i(o)}return e}function vy(e,t,n=Ql){bl(e,"interactive",()=>{const r=n(),o=Object.assign(r.toJSON(),{entryType:J.RESOURCE,initiatorType:Ll,duration:r.responseEnd,traceId:yy(document),toJSON:()=>({...o,toJSON:void 0})});t(o)})}const Ay=1e3;function wy(e){const t=new Set,n=e.subscribe(8,r=>{t.add(r),t.size>Ay&&(Ro("Too many requests"),t.delete(t.values().next().value))});return{getMatchingRequest(r){let o=1/0,s;for(const i of t){const a=r.startTime-i.startClocks.relative;0<=a&&aIo([n.match],e))}function Ry(e,t=!1){if(!e||typeof e!="string")return;let n;try{n=JSON.parse(e)}catch{return}if(!n||!n.query)return;const r=n.query.trim(),o=Oy(r),s=n.operationName;if(!o)return;let i;return n.variables&&(i=JSON.stringify(n.variables)),{operationType:o,operationName:s,variables:i,payload:t?yi(r,Iy,"..."):void 0}}function Oy(e){var t;return(t=e.match(/^\s*(query|mutation|subscription)\b/i))===null||t===void 0?void 0:t[1]}function xy(e,t,n,r=Uh(),o=vy){let s;const i=t.trackEarlyRequests;i?s=wy(e):e.subscribe(8,u=>{c(()=>ky(u,t,n))});const a=tt(t,{type:J.RESOURCE,buffered:!0}).subscribe(u=>{for(const l of u)(i||!Ml(l))&&c(()=>Wa(l,t,n,s))});o(t,u=>{c(()=>Wa(u,t,n,s))});function c(u){r.push(()=>{const l=u();l&&e.notify(12,l)})}return{stop:()=>{r.stop(),a.unsubscribe()}}}function ky(e,t,n){const r=hy(e);return Zl(r,e,n,t)}function Wa(e,t,n,r){const o=Ml(e)&&r?r.getMatchingRequest(e):void 0;return Zl(e,o,n,t)}function Zl(e,t,n,r){if(!e&&!t)return;const o=t?Dy(t,r):Py(e,r);if(!r.trackResources&&!o)return;const s=e?Eo(e.startTime):t.startClocks,i=e?Zg(e):Fy(n,s,t.duration),a=t&&Ny(t,r),c=ft({date:s.timeStamp,resource:{id:be(),duration:U(i),type:t?t.type===xo.XHR?Ae.XHR:Ae.FETCH:Qg(e),method:t?t.method:void 0,status_code:t?t.status:Uy(e.responseStatus),url:t?a_(t.url):e.name,protocol:e&&n_(e),delivery_type:e&&r_(e),graphql:a},type:B.RESOURCE,_dd:{discarded:!r.trackResources}},o,e&&My(e));return{startTime:s.relative,duration:i,rawRumEvent:c,domainContext:Ly(e,t)}}function Ny(e,t){const n=Cy(e.url,t);if(n)return Ry(e.body,n.trackPayload)}function Ly(e,t){if(t){const n={performanceEntry:e,isAborted:t.isAborted,handlingStack:t.handlingStack};return t.type===xo.XHR?{xhr:t.xhr,...n}:{requestInput:t.input,requestInit:t.init,response:t.response,error:t.error,...n}}return{performanceEntry:e}}function My(e){const{renderBlockingStatus:t}=e;return{resource:{render_blocking_status:t,...o_(e),...e_(e)}}}function Dy(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}function Py(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:Ol().toString(),rule_psr:t.rulePsr}}}function Fy(e,t,n){return e.wasInPageStateDuringPeriod("frozen",t.relative,n)?void 0:n}function Uy(e){return e===0?void 0:e}function $y(e,t,n){const{stop:r,eventCounts:o}=$l({lifeCycle:e,isChildEvent:s=>s.view.id===t,onChange:n});return{stop:r,eventCounts:o}}const By=10*xe;function Vy(e,t,n){return{stop:tt(e,{type:J.PAINT,buffered:!0}).subscribe(o=>{const s=o.find(i=>i.name==="first-contentful-paint"&&i.startTime{requestAnimationFrame(()=>{t(le(e,Ue()))})})}function Hy(e,t,n){const r=tt(e,{type:J.FIRST_INPUT,buffered:!0}).subscribe(o=>{const s=o.find(i=>i.startTime=0?i:0,time:s.startTime,targetSelector:a})}});return{stop:()=>{r.unsubscribe()}}}function Gy(e,t,n=Ql){return Ky(e,()=>{const r=n();qy(r)||t(Wy(r))})}function Wy(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=Ue()?e.responseStart:void 0}}function qy(e){return e.loadEventEnd<=0}function Ky(e,t){let n;const{stop:r}=bl(e,"complete",()=>{n=Le(()=>t())});return{stop:()=>{r(),Be(n)}}}const zy=10*xe;function Yy(e,t,n,r){let o=1/0;const{stop:s}=bt(e,n,["pointerdown","keydown"],c=>{o=c.timeStamp},{capture:!0,once:!0});let i=0;const a=tt(e,{type:J.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(c=>{const u=Mu(c,l=>l.entryType===J.LARGEST_CONTENTFUL_PAINT&&l.startTimei);if(u){let l;u.element&&(l=yr(u.element,e.actionNameAttribute)),r({value:u.startTime,targetSelector:l,resourceUrl:Xy(u)}),i=u.size}});return{stop:()=>{s(),a.unsubscribe()}}}function Xy(e){return e.url===""?void 0:e.url}function ed(e,t,n=window){if(document.visibilityState==="hidden")return{timeStamp:0,stop:Q};if(Yt(J.VISIBILITY_STATE)){const s=performance.getEntriesByType(J.VISIBILITY_STATE).filter(i=>i.name==="hidden").find(i=>i.startTime>=t.relative);if(s)return{timeStamp:s.startTime,stop:Q}}let r=1/0;const{stop:o}=bt(e,n,["pagehide","visibilitychange"],s=>{(s.type==="pagehide"||document.visibilityState==="hidden")&&(r=s.timeStamp,o())},{capture:!0});return{get timeStamp(){return r},stop:o}}function Jy(e,t,n,r){const o={},{stop:s}=Gy(e,d=>{n(d.loadEvent),o.navigationTimings=d,r()}),i=ed(e,t),{stop:a}=Vy(e,i,d=>{o.firstContentfulPaint=d,r()}),{stop:c}=Yy(e,i,window,d=>{o.largestContentfulPaint=d,r()}),{stop:u}=Hy(e,i,d=>{o.firstInput=d,r()});function l(){s(),a(),c(),u(),i.stop()}return{stop:l,initialViewMetrics:o}}const js=(e,t)=>e*t,Qy=(e,t)=>{const n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),o=Math.min(e.right,t.right),s=Math.min(e.bottom,t.bottom);return n>=o||r>=s?0:js(o-n,s-r)},qa=e=>{const t=js(e.previousRect.width,e.previousRect.height),n=js(e.currentRect.width,e.currentRect.height),r=Qy(e.previousRect,e.currentRect);return t+n-r};function Zy(e,t,n){if(!oE())return{stop:Q};let r=0,o;n({value:0});const s=rE(),i=tt(e,{type:J.LAYOUT_SHIFT,buffered:!0}).subscribe(a=>{var c;for(const u of a){if(u.hadRecentInput||u.startTimer){r=l;const f=(c=o==null?void 0:o.target)===null||c===void 0?void 0:c.deref();n({value:Qn(r,4),targetSelector:f&&yr(f,e.actionNameAttribute),time:o==null?void 0:o.time,previousRect:o!=null&&o.previousRect?Ka(o.previousRect):void 0,currentRect:o!=null&&o.currentRect?Ka(o.currentRect):void 0,devicePixelRatio:o==null?void 0:o.devicePixelRatio})}}});return{stop:()=>{i.unsubscribe()}}}function eE(e){let t;for(const n of e)if(n.node&&Tt(n.node)){const r=qa(n);(!t||qa(t){const s=t===void 0||o.startTime-n>=nE||o.startTime-t>=tE;let i;return s?(t=n=o.startTime,r=e=o.value,i=!0):(e+=o.value,n=o.startTime,i=o.value>r,i&&(r=o.value)),{cumulatedValue:e,isMaxValue:i}}}}function oE(){return Yt(J.LAYOUT_SHIFT)&&"WeakRef"in window}let Qr,td=0,ms=1/0,hs=0;function sE(){"interactionCount"in performance||Qr||(Qr=new window.PerformanceObserver(D(e=>{e.getEntries().forEach(t=>{const n=t;n.interactionId&&(ms=Math.min(ms,n.interactionId),hs=Math.max(hs,n.interactionId),td=(hs-ms)/7+1)})})),Qr.observe({type:"event",buffered:!0,durationThreshold:0}))}const za=()=>Qr?td:window.performance.interactionCount||0,Ya=10,iE=1*xe;function aE(e,t,n){if(!lE())return{getInteractionToNextPaint:()=>{},setViewEnd:Q,stop:Q};const{getViewInteractionCount:r,stopViewInteractionCount:o}=uE(n);let s=1/0;const i=cE(r);let a=-1,c,u;function l(p){for(const g of p)g.interactionId&&g.startTime>=t&&g.startTime<=s&&i.process(g);const h=i.estimateP98Interaction();h&&h.duration!==a&&(a=h.duration,u=le(t,h.startTime),c=ny(h.startTime),!c&&h.target&&Tt(h.target)&&(c=yr(h.target,e.actionNameAttribute)))}const d=tt(e,{type:J.FIRST_INPUT,buffered:!0}).subscribe(l),f=tt(e,{type:J.EVENT,durationThreshold:40,buffered:!0}).subscribe(l);return{getInteractionToNextPaint:()=>{if(a>=0)return{value:Math.min(a,iE),targetSelector:c,time:u};if(r())return{value:0}},setViewEnd:p=>{s=p,o()},stop:()=>{f.unsubscribe(),d.unsubscribe()}}}function cE(e){const t=[];function n(){t.sort((r,o)=>o.duration-r.duration).splice(Ya)}return{process(r){const o=t.findIndex(i=>r.interactionId===i.interactionId),s=t[t.length-1];o!==-1?r.duration>t[o].duration&&(t[o]=r,n()):(t.lengths.duration)&&(t.push(r),n())},estimateP98Interaction(){const r=Math.min(t.length-1,Math.floor(e()/50));return t[r]}}}function uE(e){sE();const t=e===ct.INITIAL_LOAD?0:za();let n={stopped:!1};function r(){return za()-t}return{getViewInteractionCount:()=>n.stopped?n.interactionCount:r(),stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:r()}}}}function lE(){return Yt(J.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function dE(e,t,n,r,o,s,i){let a=o===ct.INITIAL_LOAD,c=!0;const u=[],l=ed(r,s);function d(){if(!c&&!a&&u.length>0){const p=Math.max(...u);p{c&&(c=!1,p.hadActivity&&u.push(le(s.timeStamp,p.end)),d())});return{stop:()=>{f(),l.stop()},setLoadEvent:p=>{a&&(a=!1,u.push(p),d())}}}function fE(){let e;const t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}let gs;function pE(e){return gs||(gs=mE(e)),gs}function mE(e){return new X(t=>{const{throttled:n}=To(()=>{t.notify(Li())},200);return ue(e,window,"resize",n,{capture:!0,passive:!0}).stop})}function Li(){const e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}const hE=Oe;function gE(e,t,n,r=yE(e)){let o=0,s=0,i=0;const a=r.subscribe(({scrollDepth:c,scrollTop:u,scrollHeight:l})=>{let d=!1;if(c>o&&(o=c,d=!0),l>s){s=l;const f=Ue();i=le(t.relative,f),d=!0}d&&n({maxDepth:Math.min(o,s),maxDepthScrollTop:u,maxScrollHeight:s,maxScrollHeightTime:i})});return{stop:()=>a.unsubscribe()}}function _E(){const e=fE(),{height:t}=Li(),n=Math.round((document.scrollingElement||document.documentElement).scrollHeight),r=Math.round(t+e);return{scrollHeight:n,scrollDepth:r,scrollTop:e}}function yE(e,t=hE){return new X(n=>{function r(){n.notify(_E())}if(window.ResizeObserver){const o=To(r,t,{leading:!1,trailing:!0}),s=document.scrollingElement||document.documentElement,i=new ResizeObserver(D(o.throttled));s&&i.observe(s);const a=ue(e,window,"scroll",o.throttled,{passive:!0});return()=>{o.cancel(),i.disconnect(),a.stop()}}})}function EE(e,t,n,r,o,s,i){const a={},{stop:c,setLoadEvent:u}=dE(e,t,n,r,s,i,g=>{a.loadingTime=g,o()}),{stop:l}=gE(r,i,g=>{a.scroll=g}),{stop:d}=Zy(r,i.relative,g=>{a.cumulativeLayoutShift=g,o()}),{stop:f,getInteractionToNextPaint:p,setViewEnd:h}=aE(r,i.relative,s);return{stop:()=>{c(),d(),l()},stopINPTracking:f,setLoadEvent:u,setViewEnd:h,getCommonViewMetrics:()=>(a.interactionToNextPaint=p(),a)}}function bE(e,t){const{stop:n}=ue(e,window,"pageshow",r=>{r.persisted&&t(r)},{capture:!0});return n}function SE(e,t,n){jy(e.relative,r=>{t.firstContentfulPaint=r,t.largestContentfulPaint={value:r},n()})}const TE=3e3,vE=5*xe,AE=5*xe;function wE(e,t,n,r,o,s,i,a){const c=new Set;let u=f(ct.INITIAL_LOAD,wu(),a),l;p();let d;i&&(d=h(s),o.trackBfcacheViews&&(l=bE(o,g=>{u.end();const y=Eo(g.timeStamp);u=f(ct.BF_CACHE,y,void 0)})));function f(g,y,C){const k=IE(t,n,r,o,e,g,y,C);return c.add(k),k.stopObservable.subscribe(()=>{c.delete(k)}),k}function p(){t.subscribe(10,()=>{u=f(ct.ROUTE_CHANGE,void 0,{name:u.name,service:u.service,version:u.version,context:u.contextManager.getContext()})}),t.subscribe(9,()=>{u.end({sessionIsActive:!1})})}function h(g){return g.subscribe(({oldLocation:y,newLocation:C})=>{RE(y,C)&&(u.end(),u=f(ct.ROUTE_CHANGE))})}return{addTiming:(g,y=Me())=>{u.addTiming(g,y)},startView:(g,y)=>{u.end({endClocks:y}),u=f(ct.ROUTE_CHANGE,y,g)},setViewContext:g=>{u.contextManager.setContext(g)},setViewContextProperty:(g,y)=>{u.contextManager.setContextProperty(g,y)},setViewName:g=>{u.setViewName(g)},getViewContext:()=>u.contextManager.getContext(),stop:()=>{d&&d.unsubscribe(),l&&l(),u.end(),c.forEach(g=>g.stop())}}}function IE(e,t,n,r,o,s,i=me(),a){const c=be(),u=new X,l={};let d=0,f;const p=nr(o),h=Oo();let g=!0,y=a==null?void 0:a.name;const C=(a==null?void 0:a.service)||r.service,k=(a==null?void 0:a.version)||r.version,N=a==null?void 0:a.context;N&&h.setContext(N);const E={id:c,name:y,startClocks:i,service:C,version:k,context:N};e.notify(1,E),e.notify(2,E);const{throttled:I,cancel:_}=To(te,TE,{leading:!1}),{setLoadEvent:w,setViewEnd:F,stop:q,stopINPTracking:he,getCommonViewMetrics:v}=EE(e,t,n,r,ee,s,i),{stop:T,initialViewMetrics:A}=s===ct.INITIAL_LOAD?Jy(r,i,w,ee):{stop:Q,initialViewMetrics:{}};s===ct.BF_CACHE&&SE(i,A,ee);const{stop:b,eventCounts:O}=$y(e,c,ee),H=Rn(te,vE),z=e.subscribe(11,j=>{j.reason===hn.UNLOADING&&te()});te(),h.changeObservable.subscribe(ee);function G(){e.notify(3,{id:c,name:y,context:h.getContext(),startClocks:i,sessionIsActive:g})}function ee(){G(),I()}function te(){_(),G(),d+=1;const j=f===void 0?Me():f.timeStamp;e.notify(4,{customTimings:l,documentVersion:d,id:c,name:y,service:C,version:k,context:h.getContext(),loadingType:s,location:p,startClocks:i,commonViewMetrics:v(),initialViewMetrics:A,duration:le(i.timeStamp,j),isActive:f===void 0,sessionIsActive:g,eventCounts:O})}return{get name(){return y},service:C,version:k,contextManager:h,stopObservable:u,end(j={}){var ge,P;f||(f=(ge=j.endClocks)!==null&&ge!==void 0?ge:me(),g=(P=j.sessionIsActive)!==null&&P!==void 0?P:!0,e.notify(5,{endClocks:f}),e.notify(6,{endClocks:f}),So(H),F(f.relative),q(),z.unsubscribe(),te(),Le(()=>{this.stop()},AE))},stop(){T(),b(),he(),u.notify()},addTiming(j,ge){if(f)return;const P=Hf(ge)?ge:le(i.timeStamp,ge);l[CE(j)]=P,ee()},setViewName(j){y=j,te()}}}function CE(e){const t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&V.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}function RE(e,t){return e.pathname!==t.pathname||!OE(t.hash)&&Xa(t.hash)!==Xa(e.hash)}function OE(e){const t=e.substring(1);return t!==""&&!!document.getElementById(t)}function Xa(e){const t=e.indexOf("?");return t<0?e:e.slice(0,t)}function xE(e,t,n,r,o,s,i,a,c,u){return e.subscribe(4,l=>e.notify(12,kE(l,n,a))),t.register(0,({startTime:l,eventType:d})=>{const f=c.findView(l);return f?{type:d,service:f.service,version:f.version,context:f.context,view:{id:f.id,name:f.name}}:St}),t.register(1,({startTime:l})=>{var d;return{view:{id:(d=c.findView(l))===null||d===void 0?void 0:d.id}}}),wE(r,e,o,s,n,i,!n.trackViewsManually,u)}function kE(e,t,n){var r,o,s,i,a,c,u,l,d,f,p,h,g,y,C,k,N,E;const I=n.getReplayStats(e.id),_=(o=(r=e.commonViewMetrics)===null||r===void 0?void 0:r.cumulativeLayoutShift)===null||o===void 0?void 0:o.devicePixelRatio,w={_dd:{document_version:e.documentVersion,replay_stats:I,cls:_?{device_pixel_ratio:_}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:B.VIEW,view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:(s=e.commonViewMetrics.cumulativeLayoutShift)===null||s===void 0?void 0:s.value,cumulative_layout_shift_time:U((i=e.commonViewMetrics.cumulativeLayoutShift)===null||i===void 0?void 0:i.time),cumulative_layout_shift_target_selector:(a=e.commonViewMetrics.cumulativeLayoutShift)===null||a===void 0?void 0:a.targetSelector,first_byte:U((c=e.initialViewMetrics.navigationTimings)===null||c===void 0?void 0:c.firstByte),dom_complete:U((u=e.initialViewMetrics.navigationTimings)===null||u===void 0?void 0:u.domComplete),dom_content_loaded:U((l=e.initialViewMetrics.navigationTimings)===null||l===void 0?void 0:l.domContentLoaded),dom_interactive:U((d=e.initialViewMetrics.navigationTimings)===null||d===void 0?void 0:d.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:U(e.initialViewMetrics.firstContentfulPaint),first_input_delay:U((f=e.initialViewMetrics.firstInput)===null||f===void 0?void 0:f.delay),first_input_time:U((p=e.initialViewMetrics.firstInput)===null||p===void 0?void 0:p.time),first_input_target_selector:(h=e.initialViewMetrics.firstInput)===null||h===void 0?void 0:h.targetSelector,interaction_to_next_paint:U((g=e.commonViewMetrics.interactionToNextPaint)===null||g===void 0?void 0:g.value),interaction_to_next_paint_time:U((y=e.commonViewMetrics.interactionToNextPaint)===null||y===void 0?void 0:y.time),interaction_to_next_paint_target_selector:(C=e.commonViewMetrics.interactionToNextPaint)===null||C===void 0?void 0:C.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:U((k=e.initialViewMetrics.largestContentfulPaint)===null||k===void 0?void 0:k.value),largest_contentful_paint_target_selector:(N=e.initialViewMetrics.largestContentfulPaint)===null||N===void 0?void 0:N.targetSelector,load_event:U((E=e.initialViewMetrics.navigationTimings)===null||E===void 0?void 0:E.loadEvent),loading_time:Ul(U(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:NE(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:U(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:U(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:t.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:tg()}};return Wt(e.customTimings)||(w.view.custom_timings=Ru(e.customTimings,U)),{rawRumEvent:w,startTime:e.startClocks.relative,duration:e.duration,domainContext:{location:e.location}}}function NE({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:n,firstInput:r,largestContentfulPaint:o}){return{cls:e&&{score:e.value,timestamp:U(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:n&&{timestamp:U(n)},fid:r&&{duration:U(r.delay),timestamp:U(r.time),target_selector:r.targetSelector},inp:t&&{duration:U(t.value),timestamp:U(t.time),target_selector:t.targetSelector},lcp:o&&{timestamp:U(o.value),target_selector:o.targetSelector,resource_url:o.resourceUrl}}}const LE="rum";function ME(e,t,n){const r=_h(e,LE,o=>PE(e,o),n);return r.expireObservable.subscribe(()=>{t.notify(9)}),r.renewObservable.subscribe(()=>{t.notify(10)}),r.sessionStateUpdateObservable.subscribe(({previousState:o,newState:s})=>{if(!o.forcedReplay&&s.forcedReplay){const i=r.findSession();i&&(i.isReplayForced=!0)}}),{findTrackedSession:o=>{const s=r.findSession(o);if(!(!s||s.trackingType==="0"))return{id:s.id,sessionReplay:s.trackingType==="1"?1:s.isReplayForced?2:0,anonymousId:s.anonymousId}},expire:r.expire,expireObservable:r.expireObservable,setForcedReplay:()=>r.updateSessionState({forcedReplay:"1"})}}function DE(){const e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:Km("records")?1:0};return{findTrackedSession:()=>e,expire:Q,expireObservable:new X,setForcedReplay:Q}}function PE(e,t){return FE(t)?t:Ft(e.sessionSampleRate)?Ft(e.sessionReplaySampleRate)?"1":"2":"0"}function FE(e){return e==="0"||e==="1"||e==="2"}function UE(e,t,n,r,o,s){const i=[e.rumEndpointBuilder];e.replica&&i.push(e.replica.rumEndpointBuilder);const a=fl({encoder:s(2),request:dl(i,e.batchBytesLimit,n),flushController:pl({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:r,sessionExpireObservable:o}),messageBytesLimit:e.messageBytesLimit});return t.subscribe(13,c=>{c.type===B.VIEW?a.upsert(c,c.view.id):a.add(c)}),a}function $E(e){const t=_r();e.subscribe(13,n=>{t.send("rum",n)})}const BE=qt;function VE(e,t,n,r){const o=kn({expireDelay:BE});let s;e.subscribe(1,({startClocks:c})=>{const u=r.href;o.add(a({url:u,referrer:s||document.referrer}),c.relative),s=u}),e.subscribe(6,({endClocks:c})=>{o.closeActive(c.relative)});const i=n.subscribe(({newLocation:c})=>{const u=o.find();if(u){const l=Ue();o.closeActive(l),o.add(a({url:c.href,referrer:u.referrer}),l)}});function a({url:c,referrer:u}){return{url:c,referrer:u}}return t.register(0,({startTime:c,eventType:u})=>{const l=o.find(c);return l?{type:u,view:{url:l.url,referrer:l.referrer}}:St}),{findUrl:c=>o.find(c),stop:()=>{i.unsubscribe(),o.stop()}}}function jE(e,t){let n=nr(t);return new X(r=>{const{stop:o}=HE(e,i),{stop:s}=GE(e,i);function i(){if(n.href===t.href)return;const a=nr(t);r.notify({newLocation:a,oldLocation:n}),n=a}return()=>{o(),s()}})}function HE(e,t){const{stop:n}=Ze(Ja("pushState"),"pushState",({onPostCall:s})=>{s(t)}),{stop:r}=Ze(Ja("replaceState"),"replaceState",({onPostCall:s})=>{s(t)}),{stop:o}=ue(e,window,"popstate",t);return{stop:()=>{n(),r(),o()}}}function GE(e,t){return ue(e,window,"hashchange",t)}function Ja(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}const WE=qt;function qE(e,t,n){const r=kn({expireDelay:WE});return e.subscribe(1,({startClocks:o})=>{r.add({},o.relative)}),e.subscribe(6,({endClocks:o})=>{r.closeActive(o.relative)}),t.register(0,({startTime:o,eventType:s})=>{if(!n.trackFeatureFlagsForEvents.concat([B.VIEW,B.ERROR]).includes(s))return je;const a=r.find(o);return!a||Wt(a)?je:{type:s,feature_flags:a}}),{addFeatureFlagEvaluation:(o,s)=>{const i=r.find();i&&(i[o]=s)}}}const KE=10*Oe;let gn,Ur;function zE(e,t,n){e.metricsEnabled&&(nd(),Ur=!1,t.subscribe(13,()=>{Ur=!0}),n.subscribe(({bytesCount:r,messagesCount:o})=>{Ur&&(Ur=!1,gn.batchCount+=1,Za(gn.batchBytesCount,r),Za(gn.batchMessagesCount,o))}),Rn(YE,KE))}function YE(){gn.batchCount!==0&&(Ii("Customer data measures",gn),nd())}function Qa(){return{min:1/0,max:0,sum:0}}function Za(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function nd(){gn={batchCount:0,batchBytesCount:Qa(),batchMessagesCount:Qa()}}const XE=4e3,JE=500,QE=qt;function ZE(e,t,n=JE){const r=kn({expireDelay:QE,maxEntries:XE});let o;Yt(J.VISIBILITY_STATE)&&performance.getEntriesByType(J.VISIBILITY_STATE).forEach(u=>{const l=u.name==="hidden"?"hidden":"active";i(l,u.startTime)}),i(rd(),Ue());const{stop:s}=bt(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],c=>{i(tb(c),c.timeStamp)},{capture:!0});function i(c,u=Ue()){c!==o&&(o=c,r.closeActive(u),r.add({state:o,startTime:u},u))}function a(c,u,l){return r.findAll(u,l).some(d=>d.state===c)}return e.register(0,({startTime:c,duration:u=0,eventType:l})=>{if(l===B.VIEW){const d=r.findAll(c,u);return{type:l,_dd:{page_states:eb(d,c,n)}}}return l===B.ACTION||l===B.ERROR?{type:l,view:{in_foreground:a("active",c,0)}}:je}),{wasInPageStateDuringPeriod:a,addPageState:i,stop:()=>{s(),r.stop()}}}function eb(e,t,n){if(e.length!==0)return e.slice(-n).reverse().map(({state:r,startTime:o})=>({state:r,start:U(le(t,o))}))}function tb(e){return e.type==="freeze"?"frozen":e.type==="pagehide"?e.persisted?"frozen":"terminated":rd()}function rd(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function nb(e,t){let n;const r=requestAnimationFrame(D(()=>{n=Li()})),o=pE(t).subscribe(s=>{n=s}).unsubscribe;return e.register(0,({eventType:s})=>({type:s,display:n?{viewport:n}:void 0})),{stop:()=>{o(),r&&cancelAnimationFrame(r)}}}function rb(e,t){const n=window.cookieStore?ob(e):ib;return new X(r=>n(t,o=>r.notify(o)))}function ob(e){return(t,n)=>ue(e,window.cookieStore,"change",o=>{const s=o.changed.find(i=>i.name===t)||o.deleted.find(i=>i.name===t);s&&n(s.value)}).stop}const sb=Oe;function ib(e,t){const n=rr(document.cookie,e),r=Rn(()=>{const o=rr(document.cookie,e);o!==n&&t(o)},sb);return()=>{So(r)}}const ec="datadog-ci-visibility-test-execution-id";function ab(e,t,n=rb(e,ec)){var r;let o=ht(ec)||((r=window.Cypress)===null||r===void 0?void 0:r.env("traceId"));const s=n.subscribe(i=>{o=i});return t.register(0,({eventType:i})=>typeof o!="string"?je:{type:i,session:{type:"ci_test"},ci_test:{test_execution_id:o}}),{stop:()=>{s.unsubscribe()}}}function cb(e,t){const n=tt(t,{type:J.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(r=>{for(const o of r){const s=Eo(o.startTime),i={date:s.timeStamp,long_task:{id:be(),entry_type:wl.LONG_ANIMATION_FRAME,duration:U(o.duration),blocking_duration:U(o.blockingDuration),first_ui_event_timestamp:U(o.firstUIEventTimestamp),render_start:U(o.renderStart),style_and_layout_start:U(o.styleAndLayoutStart),start_time:U(o.startTime),scripts:o.scripts.map(a=>({duration:U(a.duration),pause_duration:U(a.pauseDuration),forced_style_and_layout_duration:U(a.forcedStyleAndLayoutDuration),start_time:U(a.startTime),execution_start:U(a.executionStart),source_url:a.sourceURL,source_function_name:a.sourceFunctionName,source_char_position:a.sourceCharPosition,invoker:a.invoker,invoker_type:a.invokerType,window_attribution:a.windowAttribution}))},type:B.LONG_TASK,_dd:{discarded:!1}};e.notify(12,{rawRumEvent:i,startTime:s.relative,duration:o.duration,domainContext:{performanceEntry:o}})}});return{stop:()=>n.unsubscribe()}}function ub(e,t){const n=tt(t,{type:J.LONG_TASK,buffered:!0}).subscribe(r=>{for(const o of r){if(o.entryType!==J.LONG_TASK||!t.trackLongTasks)break;const s=Eo(o.startTime),i={date:s.timeStamp,long_task:{id:be(),entry_type:wl.LONG_TASK,duration:U(o.duration)},type:B.LONG_TASK,_dd:{discarded:!1}};e.notify(12,{rawRumEvent:i,startTime:s.relative,duration:o.duration,domainContext:{performanceEntry:o}})}});return{stop(){n.unsubscribe()}}}function lb(e){e.register(0,({eventType:t})=>{if(!yl())return je;const n=gl(),r=_l();return{type:t,session:{type:"synthetics"},synthetics:{test_id:n,result_id:r,injected:hl()}}})}function db(e,t,n){const r=wi(e),o=n(r);return bi(t).forEach(([s,i])=>Hs(e,r,s.split(/\.|(?=\[\])/),i)),o}function Hs(e,t,n,r){const[o,...s]=n;if(o==="[]"){Array.isArray(e)&&Array.isArray(t)&&e.forEach((i,a)=>Hs(i,t[a],s,r));return}if(!(!tc(e)||!tc(t))){if(s.length>0)return Hs(e[o],t[o],s,r);fb(e,o,t[o],r)}}function fb(e,t,n,r){const o=Kt(n);o===r?e[t]=ne(n):r==="object"&&(o==="undefined"||o==="null")&&(e[t]={})}function tc(e){return Kt(e)==="object"}const cn={"view.name":"string","view.url":"string","view.referrer":"string"},un={context:"object"},ln={service:"string",version:"string"};let od;function pb(e,t,n,r){od={[B.VIEW]:{"view.performance.lcp.resource_url":"string",...un,...cn,...ln},[B.ERROR]:{"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string",...un,...cn,...ln},[B.RESOURCE]:{"resource.url":"string",...un,...cn,...ln},[B.ACTION]:{"action.target.name":"string",...un,...cn,...ln},[B.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...un,...cn,...ln},[B.VITAL]:{...un,...cn,...ln}};const o={[B.ERROR]:is(B.ERROR,e.eventRateLimiterThreshold,r),[B.ACTION]:is(B.ACTION,e.eventRateLimiterThreshold,r),[B.VITAL]:is(B.VITAL,e.eventRateLimiterThreshold,r)};t.subscribe(12,({startTime:s,duration:i,rawRumEvent:a,domainContext:c})=>{const u=n.triggerHook(0,{eventType:a.type,startTime:s,duration:i});if(u===St)return;const l=ft(u,a,{ddtags:tl(e).join(",")});mb(l,e.beforeSend,c,o)&&(Wt(l.context)&&delete l.context,t.notify(13,l))})}function mb(e,t,n,r){var o;if(t){const i=db(e,od[e.type],a=>t(a,n));if(i===!1&&e.type!==B.VIEW)return!1;i===!1&&V.warn("Can't dismiss view events using beforeSend!")}return!((o=r[e.type])===null||o===void 0?void 0:o.isLimitReached())}function hb(e,t,n,r){e.register(0,({eventType:o,startTime:s})=>{const i=t.findTrackedSession(s),a=r.findView(s);if(!i||!a)return St;let c,u,l;return o===B.VIEW?(c=n.getReplayStats(a.id)?!0:void 0,u=i.sessionReplay===1,l=a.sessionIsActive?void 0:!1):c=n.isRecording()?!0:void 0,{type:o,session:{id:i.id,type:"user",has_replay:c,sampled_for_replay:u,is_active:l}}}),e.register(1,({startTime:o})=>{const s=t.findTrackedSession(o);return s?{session:{id:s.id}}:je})}function gb(e){e.register(0,({eventType:t})=>({type:t,connectivity:rl()}))}function _b(e,t,n){e.register(0,({eventType:r})=>{const o=t.source;return{type:r,_dd:{format_version:2,drift:Vf(),configuration:{session_sample_rate:Qn(t.sessionSampleRate,3),session_replay_sample_rate:Qn(t.sessionReplaySampleRate,3),profiling_sample_rate:Qn(t.profilingSampleRate,3)},browser_sdk_version:ar()?"6.22.0":void 0,sdk_name:n},application:{id:t.applicationId},date:Me(),source:o}}),e.register(1,()=>({application:{id:t.applicationId}}))}function yb(e,t){e.register(1,()=>t.isGranted()?je:St)}const Eb=Jm,bb=[B.ACTION,B.ERROR,B.LONG_TASK,B.RESOURCE,B.VITAL];function Sb(e){return{addEvent:(t,n,r,o)=>{bb.includes(n.type)&&e.notify(12,{startTime:t,rawRumEvent:n,domainContext:r,duration:o})}}}function Tb(e,t){if(!t.metricsEnabled)return{stop:Q};const{unsubscribe:n}=e.subscribe(4,({initialViewMetrics:r})=>{!r.largestContentfulPaint||!r.navigationTimings||(Ii("Initial view metrics",{metrics:vb(r.largestContentfulPaint,r.navigationTimings)}),n())});return{stop:n}}function vb(e,t){return{lcp:{value:e.value},navigation:{domComplete:t.domComplete,domContentLoaded:t.domContentLoaded,domInteractive:t.domInteractive,firstByte:t.firstByte,loadEvent:t.loadEvent}}}function Ab(e,t,n,r,o,s,i,a,c){const u=[],l=new zg,d=Eb();l.subscribe(13,ae=>nl("rum",ae));const f=ae=>{l.notify(14,{error:ae}),Ro("Error reported to customer",{"error.message":ae.message})},p=Ym(e),h=p.subscribe(ae=>{l.notify(11,ae)});u.push(()=>h.unsubscribe());const g=th("browser-rum-sdk",e,d,f,p,o);u.push(g.stop);const y=ar()?DE():ME(e,l,s);if(ar())$E(l);else{const ae=UE(e,l,f,p,y.expireObservable,o);u.push(()=>ae.stop()),zE(g,l,ae.flushController.flushObservable)}const C=Gg(),k=jE(e,location),{observable:N,stop:E}=qg();u.push(E),_b(d,e,c);const I=ZE(d,e),_=Xg(l);u.push(()=>_.stop());const w=VE(l,d,k,location);u.push(()=>w.stop());const F=qE(l,d,e);hb(d,y,t,_),gb(d),yb(d,s);const q=Xh(d,e,"rum"),he=Jh(d,e,y,"rum"),v=Yh(d,e,"rum"),{actionContexts:T,addAction:A,addEvent:b,stop:O}=wb(l,d,e,I,C,N,f);u.push(O);const{addTiming:H,startView:z,setViewName:G,setViewContext:ee,setViewContextProperty:te,getViewContext:j,stop:ge}=xE(l,d,e,location,C,N,k,t,_,r);u.push(ge);const{stop:P}=Tb(l,g);u.push(P);const{stop:$e}=xy(l,e,I);if(u.push($e),e.trackLongTasks)if(Yt(J.LONG_ANIMATION_FRAME)){const{stop:ae}=cb(l,e);u.push(ae)}else ub(l,e);const{addError:K}=fy(l,e,a);a.unbuffer(),c_(l,e,y,he,v);const se=rg(l,I,i),ze=Kg(e.applicationId,y,_,T,w);return u.push(()=>n.stop()),{addAction:A,addEvent:b,addError:K,addTiming:H,addFeatureFlagEvaluation:F.addFeatureFlagEvaluation,startView:z,setViewContext:ee,setViewContextProperty:te,getViewContext:j,setViewName:G,lifeCycle:l,viewHistory:_,session:y,stopSession:()=>y.expire(),getInternalContext:ze.get,startDurationVital:se.startDurationVital,stopDurationVital:se.stopDurationVital,addDurationVital:se.addDurationVital,addOperationStepVital:se.addOperationStepVital,globalContext:q,userContext:he,accountContext:v,telemetry:g,stop:()=>{u.forEach(ae=>ae())},hooks:d}}function wb(e,t,n,r,o,s,i){const a=uy(e,t,o,s,n),c=Sb(e),u=nb(t,n),l=ab(n,t);return lb(t),pb(n,e,t,i),{pageStateHistory:r,addAction:a.addAction,addEvent:c.addEvent,actionContexts:a.actionContexts,stop:()=>{a.stop(),l.stop(),u.stop(),r.stop()}}}function Ib(e,{session:t,viewContext:n,errorType:r}){const o=t?t.id:"no-session-id",s=[];s.push(`error-type=${r}`),n&&(s.push(`seed=${n.id}`),s.push(`from=${n.startClocks.timeStamp}`));const i=Cb(e),a=`/rum/replay/sessions/${o}`;return`${i}${a}?${s.join("&")}`}function Cb(e){const t=e.site,n=e.subdomain||Rb(e);return`https://${n?`${n}.`:""}${t}`}function Rb(e){switch(e.site){case Ut:case Lp:return"app";case qu:return"dd";default:return}}function Ob(e){return Ib(e,{errorType:"slim-package"})}function xb(){let e=Q;return{start:Q,stop:Q,onRumStart(t,n){e=()=>Ob(n)},isRecording:()=>!1,getReplayStats:()=>{},getSessionReplayLink:()=>e()}}function kb(){return{onRumStart:Q,stop:Q}}const bn=jg(Ab,xb(),kb(),{sdkName:"rum-slim"});Am(Ke(),"DD_RUM",bn);const Nb=["YsAppBridge is not defined","MtPopUpList is not defined","GEOCODER_GEOCODE: ZERO_RESULTS","No identifiers allowed directly after numeric literal","window.yandexReadabilityChecker.isProbablyReaderable","window.TelegramWebview.post is not a function","Java bridge method invocation error","Argument 1 ('element') to Window.getComputedStyle must be an instance of Element","Window.getComputedStyle: Argument 1 is not an object","Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'","Object Not Found Matching Id","csp_violation: 'https://accounts.google.com' blocked by 'frame-src' directive","csp_violation: 'https://accounts.google.com/' blocked by 'frame-src' directive","Could not find file: 'inmemory://model/1'","Script error.",'Uncaught "Empty reason"',"grecaptcha is not defined",'Uncaught "Timeout"'];/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:sd,setPrototypeOf:nc,isFrozen:Lb,getPrototypeOf:Mb,getOwnPropertyDescriptor:Db}=Object;let{freeze:Ce,seal:He,create:id}=Object,{apply:Gs,construct:Ws}=typeof Reflect<"u"&&Reflect;Ce||(Ce=function(t){return t});He||(He=function(t){return t});Gs||(Gs=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s1?n-1:0),o=1;o1?n-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Zr;nc&&nc(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const s=n(o);s!==o&&(Lb(t)||(t[r]=s),o=s)}e[o]=!0}return e}function Vb(e){for(let t=0;t/gm),qb=He(/\$\{[\w\W]*/gm),Kb=He(/^data-[\-\w.\u00B7-\uFFFF]+$/),zb=He(/^aria-[\-\w]+$/),ad=He(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yb=He(/^(?:\w+script|data):/i),Xb=He(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cd=He(/^html$/i),Jb=He(/^[a-z][.\w]*(-[.\w]+)+$/i);var cc=Object.freeze({__proto__:null,ARIA_ATTR:zb,ATTR_WHITESPACE:Xb,CUSTOM_ELEMENT:Jb,DATA_ATTR:Kb,DOCTYPE_NAME:cd,ERB_EXPR:Wb,IS_ALLOWED_URI:ad,IS_SCRIPT_OR_DATA:Yb,MUSTACHE_EXPR:Gb,TMPLIT_EXPR:qb});const zn={element:1,text:3,progressingInstruction:7,comment:8,document:9},Qb=function(){return typeof window>"u"?null:window},Zb=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},uc=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ud(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qb();const t=x=>ud(x);if(t.version="3.2.7",t.removed=[],!e||!e.document||e.document.nodeType!==zn.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:i,Node:a,Element:c,NodeFilter:u,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,h=c.prototype,g=Kn(h,"cloneNode"),y=Kn(h,"remove"),C=Kn(h,"nextSibling"),k=Kn(h,"childNodes"),N=Kn(h,"parentNode");if(typeof i=="function"){const x=n.createElement("template");x.content&&x.content.ownerDocument&&(n=x.content.ownerDocument)}let E,I="";const{implementation:_,createNodeIterator:w,createDocumentFragment:F,getElementsByTagName:q}=n,{importNode:he}=r;let v=uc();t.isSupported=typeof sd=="function"&&typeof N=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:T,ERB_EXPR:A,TMPLIT_EXPR:b,DATA_ATTR:O,ARIA_ATTR:H,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:ee}=cc;let{IS_ALLOWED_URI:te}=cc,j=null;const ge=W({},[...oc,...Es,...bs,...Ss,...sc]);let P=null;const $e=W({},[...ic,...Ts,...ac,...Br]);let K=Object.seal(id(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),se=null,ze=null,ae=!0,Ge=!0,Qt=!1,Ar=!0,ye=!1,wr=!0,Rt=!1,jo=!1,Ho=!1,Zt=!1,Ir=!1,Cr=!1,Zi=!0,ea=!1;const wf="user-content-";let Go=!0,Fn=!1,en={},tn=null;const ta=W({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let na=null;const ra=W({},["audio","video","img","source","image","track"]);let Wo=null;const oa=W({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rr="http://www.w3.org/1998/Math/MathML",Or="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let nn=rt,qo=!1,Ko=null;const If=W({},[Rr,Or,rt],_s);let xr=W({},["mi","mo","mn","ms","mtext"]),kr=W({},["annotation-xml"]);const Cf=W({},["title","style","font","a","script"]);let Un=null;const Rf=["application/xhtml+xml","text/html"],Of="text/html";let de=null,rn=null;const xf=n.createElement("form"),sa=function(m){return m instanceof RegExp||m instanceof Function},zo=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(rn&&rn===m)){if((!m||typeof m!="object")&&(m={}),m=it(m),Un=Rf.indexOf(m.PARSER_MEDIA_TYPE)===-1?Of:m.PARSER_MEDIA_TYPE,de=Un==="application/xhtml+xml"?_s:Zr,j=We(m,"ALLOWED_TAGS")?W({},m.ALLOWED_TAGS,de):ge,P=We(m,"ALLOWED_ATTR")?W({},m.ALLOWED_ATTR,de):$e,Ko=We(m,"ALLOWED_NAMESPACES")?W({},m.ALLOWED_NAMESPACES,_s):If,Wo=We(m,"ADD_URI_SAFE_ATTR")?W(it(oa),m.ADD_URI_SAFE_ATTR,de):oa,na=We(m,"ADD_DATA_URI_TAGS")?W(it(ra),m.ADD_DATA_URI_TAGS,de):ra,tn=We(m,"FORBID_CONTENTS")?W({},m.FORBID_CONTENTS,de):ta,se=We(m,"FORBID_TAGS")?W({},m.FORBID_TAGS,de):it({}),ze=We(m,"FORBID_ATTR")?W({},m.FORBID_ATTR,de):it({}),en=We(m,"USE_PROFILES")?m.USE_PROFILES:!1,ae=m.ALLOW_ARIA_ATTR!==!1,Ge=m.ALLOW_DATA_ATTR!==!1,Qt=m.ALLOW_UNKNOWN_PROTOCOLS||!1,Ar=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ye=m.SAFE_FOR_TEMPLATES||!1,wr=m.SAFE_FOR_XML!==!1,Rt=m.WHOLE_DOCUMENT||!1,Zt=m.RETURN_DOM||!1,Ir=m.RETURN_DOM_FRAGMENT||!1,Cr=m.RETURN_TRUSTED_TYPE||!1,Ho=m.FORCE_BODY||!1,Zi=m.SANITIZE_DOM!==!1,ea=m.SANITIZE_NAMED_PROPS||!1,Go=m.KEEP_CONTENT!==!1,Fn=m.IN_PLACE||!1,te=m.ALLOWED_URI_REGEXP||ad,nn=m.NAMESPACE||rt,xr=m.MATHML_TEXT_INTEGRATION_POINTS||xr,kr=m.HTML_INTEGRATION_POINTS||kr,K=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&sa(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(K.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&sa(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(K.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(K.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ye&&(Ge=!1),Ir&&(Zt=!0),en&&(j=W({},sc),P=[],en.html===!0&&(W(j,oc),W(P,ic)),en.svg===!0&&(W(j,Es),W(P,Ts),W(P,Br)),en.svgFilters===!0&&(W(j,bs),W(P,Ts),W(P,Br)),en.mathMl===!0&&(W(j,Ss),W(P,ac),W(P,Br))),m.ADD_TAGS&&(j===ge&&(j=it(j)),W(j,m.ADD_TAGS,de)),m.ADD_ATTR&&(P===$e&&(P=it(P)),W(P,m.ADD_ATTR,de)),m.ADD_URI_SAFE_ATTR&&W(Wo,m.ADD_URI_SAFE_ATTR,de),m.FORBID_CONTENTS&&(tn===ta&&(tn=it(tn)),W(tn,m.FORBID_CONTENTS,de)),Go&&(j["#text"]=!0),Rt&&W(j,["html","head","body"]),j.table&&(W(j,["tbody"]),delete se.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=m.TRUSTED_TYPES_POLICY,I=E.createHTML("")}else E===void 0&&(E=Zb(p,o)),E!==null&&typeof I=="string"&&(I=E.createHTML(""));Ce&&Ce(m),rn=m}},ia=W({},[...Es,...bs,...jb]),aa=W({},[...Ss,...Hb]),kf=function(m){let S=N(m);(!S||!S.tagName)&&(S={namespaceURI:nn,tagName:"template"});const R=Zr(m.tagName),oe=Zr(S.tagName);return Ko[m.namespaceURI]?m.namespaceURI===Or?S.namespaceURI===rt?R==="svg":S.namespaceURI===Rr?R==="svg"&&(oe==="annotation-xml"||xr[oe]):!!ia[R]:m.namespaceURI===Rr?S.namespaceURI===rt?R==="math":S.namespaceURI===Or?R==="math"&&kr[oe]:!!aa[R]:m.namespaceURI===rt?S.namespaceURI===Or&&!kr[oe]||S.namespaceURI===Rr&&!xr[oe]?!1:!aa[R]&&(Cf[R]||!ia[R]):!!(Un==="application/xhtml+xml"&&Ko[m.namespaceURI]):!1},Ye=function(m){Gn(t.removed,{element:m});try{N(m).removeChild(m)}catch{y(m)}},Ot=function(m,S){try{Gn(t.removed,{attribute:S.getAttributeNode(m),from:S})}catch{Gn(t.removed,{attribute:null,from:S})}if(S.removeAttribute(m),m==="is")if(Zt||Ir)try{Ye(S)}catch{}else try{S.setAttribute(m,"")}catch{}},ca=function(m){let S=null,R=null;if(Ho)m=""+m;else{const ce=ys(m,/^[\r\n\t ]+/);R=ce&&ce[0]}Un==="application/xhtml+xml"&&nn===rt&&(m=''+m+"");const oe=E?E.createHTML(m):m;if(nn===rt)try{S=new f().parseFromString(oe,Un)}catch{}if(!S||!S.documentElement){S=_.createDocument(nn,"template",null);try{S.documentElement.innerHTML=qo?I:oe}catch{}}const Ee=S.body||S.documentElement;return m&&R&&Ee.insertBefore(n.createTextNode(R),Ee.childNodes[0]||null),nn===rt?q.call(S,Rt?"html":"body")[0]:Rt?S.documentElement:Ee},ua=function(m){return w.call(m.ownerDocument||m,m,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Yo=function(m){return m instanceof d&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof l)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},la=function(m){return typeof a=="function"&&m instanceof a};function ot(x,m,S){$r(x,R=>{R.call(t,m,S,rn)})}const da=function(m){let S=null;if(ot(v.beforeSanitizeElements,m,null),Yo(m))return Ye(m),!0;const R=de(m.nodeName);if(ot(v.uponSanitizeElement,m,{tagName:R,allowedTags:j}),wr&&m.hasChildNodes()&&!la(m.firstElementChild)&&ve(/<[/\w!]/g,m.innerHTML)&&ve(/<[/\w!]/g,m.textContent)||m.nodeType===zn.progressingInstruction||wr&&m.nodeType===zn.comment&&ve(/<[/\w]/g,m.data))return Ye(m),!0;if(!j[R]||se[R]){if(!se[R]&&pa(R)&&(K.tagNameCheck instanceof RegExp&&ve(K.tagNameCheck,R)||K.tagNameCheck instanceof Function&&K.tagNameCheck(R)))return!1;if(Go&&!tn[R]){const oe=N(m)||m.parentNode,Ee=k(m)||m.childNodes;if(Ee&&oe){const ce=Ee.length;for(let Ne=ce-1;Ne>=0;--Ne){const st=g(Ee[Ne],!0);st.__removalCount=(m.__removalCount||0)+1,oe.insertBefore(st,C(m))}}}return Ye(m),!0}return m instanceof c&&!kf(m)||(R==="noscript"||R==="noembed"||R==="noframes")&&ve(/<\/no(script|embed|frames)/i,m.innerHTML)?(Ye(m),!0):(ye&&m.nodeType===zn.text&&(S=m.textContent,$r([T,A,b],oe=>{S=Wn(S,oe," ")}),m.textContent!==S&&(Gn(t.removed,{element:m.cloneNode()}),m.textContent=S)),ot(v.afterSanitizeElements,m,null),!1)},fa=function(m,S,R){if(Zi&&(S==="id"||S==="name")&&(R in n||R in xf))return!1;if(!(Ge&&!ze[S]&&ve(O,S))){if(!(ae&&ve(H,S))){if(!P[S]||ze[S]){if(!(pa(m)&&(K.tagNameCheck instanceof RegExp&&ve(K.tagNameCheck,m)||K.tagNameCheck instanceof Function&&K.tagNameCheck(m))&&(K.attributeNameCheck instanceof RegExp&&ve(K.attributeNameCheck,S)||K.attributeNameCheck instanceof Function&&K.attributeNameCheck(S,m))||S==="is"&&K.allowCustomizedBuiltInElements&&(K.tagNameCheck instanceof RegExp&&ve(K.tagNameCheck,R)||K.tagNameCheck instanceof Function&&K.tagNameCheck(R))))return!1}else if(!Wo[S]){if(!ve(te,Wn(R,G,""))){if(!((S==="src"||S==="xlink:href"||S==="href")&&m!=="script"&&Ub(R,"data:")===0&&na[m])){if(!(Qt&&!ve(z,Wn(R,G,"")))){if(R)return!1}}}}}}return!0},pa=function(m){return m!=="annotation-xml"&&ys(m,ee)},ma=function(m){ot(v.beforeSanitizeAttributes,m,null);const{attributes:S}=m;if(!S||Yo(m))return;const R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0};let oe=S.length;for(;oe--;){const Ee=S[oe],{name:ce,namespaceURI:Ne,value:st}=Ee,on=de(ce),Xo=st;let _e=ce==="value"?Xo:$b(Xo);if(R.attrName=on,R.attrValue=_e,R.keepAttr=!0,R.forceKeepAttr=void 0,ot(v.uponSanitizeAttribute,m,R),_e=R.attrValue,ea&&(on==="id"||on==="name")&&(Ot(ce,m),_e=wf+_e),wr&&ve(/((--!?|])>)|<\/(style|title|textarea)/i,_e)){Ot(ce,m);continue}if(on==="attributename"&&ys(_e,"href")){Ot(ce,m);continue}if(R.forceKeepAttr)continue;if(!R.keepAttr){Ot(ce,m);continue}if(!Ar&&ve(/\/>/i,_e)){Ot(ce,m);continue}ye&&$r([T,A,b],ga=>{_e=Wn(_e,ga," ")});const ha=de(m.nodeName);if(!fa(ha,on,_e)){Ot(ce,m);continue}if(E&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Ne)switch(p.getAttributeType(ha,on)){case"TrustedHTML":{_e=E.createHTML(_e);break}case"TrustedScriptURL":{_e=E.createScriptURL(_e);break}}if(_e!==Xo)try{Ne?m.setAttributeNS(Ne,ce,_e):m.setAttribute(ce,_e),Yo(m)?Ye(m):rc(t.removed)}catch{Ot(ce,m)}}ot(v.afterSanitizeAttributes,m,null)},Nf=function x(m){let S=null;const R=ua(m);for(ot(v.beforeSanitizeShadowDOM,m,null);S=R.nextNode();)ot(v.uponSanitizeShadowNode,S,null),da(S),ma(S),S.content instanceof s&&x(S.content);ot(v.afterSanitizeShadowDOM,m,null)};return t.sanitize=function(x){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,R=null,oe=null,Ee=null;if(qo=!x,qo&&(x=""),typeof x!="string"&&!la(x))if(typeof x.toString=="function"){if(x=x.toString(),typeof x!="string")throw qn("dirty is not a string, aborting")}else throw qn("toString is not a function");if(!t.isSupported)return x;if(jo||zo(m),t.removed=[],typeof x=="string"&&(Fn=!1),Fn){if(x.nodeName){const st=de(x.nodeName);if(!j[st]||se[st])throw qn("root node is forbidden and cannot be sanitized in-place")}}else if(x instanceof a)S=ca(""),R=S.ownerDocument.importNode(x,!0),R.nodeType===zn.element&&R.nodeName==="BODY"||R.nodeName==="HTML"?S=R:S.appendChild(R);else{if(!Zt&&!ye&&!Rt&&x.indexOf("<")===-1)return E&&Cr?E.createHTML(x):x;if(S=ca(x),!S)return Zt?null:Cr?I:""}S&&Ho&&Ye(S.firstChild);const ce=ua(Fn?x:S);for(;oe=ce.nextNode();)da(oe),ma(oe),oe.content instanceof s&&Nf(oe.content);if(Fn)return x;if(Zt){if(Ir)for(Ee=F.call(S.ownerDocument);S.firstChild;)Ee.appendChild(S.firstChild);else Ee=S;return(P.shadowroot||P.shadowrootmode)&&(Ee=he.call(r,Ee,!0)),Ee}let Ne=Rt?S.outerHTML:S.innerHTML;return Rt&&j["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&ve(cd,S.ownerDocument.doctype.name)&&(Ne=" `+Ne),ye&&$r([T,A,b],st=>{Ne=Wn(Ne,st," ")}),E&&Cr?E.createHTML(Ne):Ne},t.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zo(x),jo=!0},t.clearConfig=function(){rn=null,jo=!1},t.isValidAttribute=function(x,m,S){rn||zo({});const R=de(x),oe=de(m);return fa(R,oe,S)},t.addHook=function(x,m){typeof m=="function"&&Gn(v[x],m)},t.removeHook=function(x,m){if(m!==void 0){const S=Pb(v[x],m);return S===-1?void 0:Fb(v[x],S,1)[0]}return rc(v[x])},t.removeHooks=function(x){v[x]=[]},t.removeAllHooks=function(){v=uc()},t}var eS=ud();const tS=["chrome-extension://"],nS=e=>{if(!e.target.closest("header.unified-header.signed-in a[data-intercept-mobile-users]"))return;e.preventDefault();const t=e.target.dataset.interceptMobileUsers;t==="apple"?window.appendFlash("You currently have a Pro subscription on Apple. Please upgrade to Pro+ on your iOS device.","danger"):t==="google"&&window.appendFlash("You currently have a Pro subscription on Google. Please upgrade to Pro+ on your Android device.","danger")};function PO(){document.addEventListener("click",nS),Df()}const rS=e=>!!(e.type==="error"&&(Nb.some(t=>{var n,r;return(r=(n=e.error)==null?void 0:n.message)==null?void 0:r.includes(t)})||tS.some(t=>{var n,r;return(r=(n=e.error)==null?void 0:n.stack)==null?void 0:r.includes(t)})));function FO(){var r,o,s,i,a;if(window.appendFlash=function(c,u="success",l=null,d=!1){const f=h=>{h.classList.remove("fadein"),h.classList.add("fadeout"),setTimeout(()=>{h.style.display="none",h.remove()},500)};document.querySelectorAll("#flash-messages .sticky").forEach(h=>{f(h)});let p=document.createElement("div");p.className=`flash-msg alert alert-${u} fadein`,d&&p.classList.add("sticky"),p.append(eS.sanitize(c)),document.querySelector("#flash-messages").appendChild(p),d||setTimeout(()=>{f(p),l==null||l()},3e3)},document.querySelectorAll(".flash-msg:not(.sticky)").forEach(c=>{setInterval(function(){c.classList.add("fadeout"),setTimeout(()=>{c.style.display="none"},500)},3e3)}),(r=window.App)!=null&&r.datadogClientToken&&window.App.trackSession&&(bn.init({applicationId:window.App.datadogApplicationId,clientToken:window.App.datadogClientToken,site:"datadoghq.com",service:window.App.datadogService,version:window.App.datadogVersion,sessionSampleRate:Number(window.App.datadogSessionSampleRate),allowedTracingUrls:window.App.datadogAllowedTracingUrls,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input",beforeSend:(c,u)=>{var l;if(rS(c))return!1;if(c.type==="resource"&&(c.resource.type==="fetch"||c.resource.type==="document"||c.resource.type==="xhr")){let d=((l=u.performanceEntry)==null?void 0:l.serverTiming)||[];if(d.length>0){let f=d.map(p=>[p.name,{duration:p.duration,description:p.description}]);c.context.serverTiming=Object.fromEntries(f)}}},proxy:c=>`/dri${c.path}/p?${c.parameters}`}),window.App.user)){let c={...window.App.user};c.id||(c.id=window.App.browserSessionId),c.tier||(c.tier="free"),bn.setUser(c)}if(window.App.mixpanelKey){window.App.mixpanelKey;const c=window.location.origin,u=c+"/lib.min.js";let l={autocapture:!0,persistence:"localStorage",api_host:c,api_routes:{track:"mxpnl/track",engage:"mxpnl/engage",groups:"mxpnl/groups",record:"mxpnl/record"}};(window.App.env==="development"||window.location.hostname==="web-rehearsal.ifttt.com")&&(l.debug=!0),function(d,f){if(!f.__SV){var p,h,g,y;window.mixpanel=f,f._i=[],f.init=function(C,k,N){function E(w,F){var q=F.split(".");q.length==2&&(w=w[q[0]],F=q[1]),w[F]=function(){w.push([F].concat(Array.prototype.slice.call(arguments,0)))}}var I=f;for(typeof N<"u"?I=f[N]=[]:N="mixpanel",I.people=I.people||[],I.toString=function(w){var F="mixpanel";return N!=="mixpanel"&&(F+="."+N),w||(F+=" (stub)"),F},I.people.toString=function(){return I.toString(1)+".people (stub)"},g="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "),y=0;y{mixpanel.reset()},{once:!0})}const e=new URL(window.location.href),t=["🧂","_cb"];t.some(c=>e.searchParams.has(c))&&(t.forEach(c=>{e.searchParams.has(c)&&e.searchParams.delete(c)}),window.history.replaceState({},"",e.pathname+e.search)),((a=(i=window.App)==null?void 0:i.user)==null?void 0:a.segment)!=="unauthenticated"&&document.querySelectorAll(`a[href='${window.location.origin}/explore']:not([data-target])`).forEach(c=>{c.addEventListener("click",u=>{u.preventDefault(),Lf(u.target.href,u.metaKey)})}),window.addEventListener("offline",()=>{window.appendFlash("Your network connection has been lost.","danger",null,!0)}),window.addEventListener("online",()=>{window.appendFlash("Your network connection has been restored.","success")})}function UO(e,t={}){window.App.allowDebugErrorMessages&&console.log("Logging to Datadog",e,t),setTimeout(()=>{bn.addAction(e,t)})}function oS(e){window.App.allowDebugErrorMessages&&console.warn("Logging error to Datadog",oS),setTimeout(()=>{bn.addError(e)})}function $O(e,t){bn.setViewContextProperty(e,t)}const $=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Z=globalThis,$t="10.12.0";function Lo(){return Mo(Z),Z}function Mo(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||$t,t[$t]=t[$t]||{}}function Er(e,t,n=Z){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[$t]=r[$t]||{};return o[e]||(o[e]=t())}const sS=["debug","info","warn","error","log","assert","trace"],iS="Sentry Logger ",lo={};function Nn(e){if(!("console"in Z))return e();const t=Z.console,n={},r=Object.keys(lo);r.forEach(o=>{const s=lo[o];n[o]=t[o],t[o]=s});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function aS(){Di().enabled=!0}function cS(){Di().enabled=!1}function ld(){return Di().enabled}function uS(...e){Mi("log",...e)}function lS(...e){Mi("warn",...e)}function dS(...e){Mi("error",...e)}function Mi(e,...t){$&&ld()&&Nn(()=>{Z.console[e](`${iS}[${e}]:`,...t)})}function Di(){return $?Er("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const M={enable:aS,disable:cS,isEnabled:ld,log:uS,warn:lS,error:dS},dd=50,jt="?",lc=/\(error: (.*)\)/,dc=/captureMessage|captureException/;function fd(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const s=[],i=n.split(` `);for(let a=r;a1024&&(c=c.slice(0,1024));const u=lc.test(c)?c.replace(lc,"$1"):c;if(!u.match(/\S*Error: /)){for(const l of t){const d=l(u);if(d){s.push(d);break}}if(s.length>=dd+o)break}}return pS(s.slice(o))}}function fS(e){return Array.isArray(e)?fd(...e):e}function pS(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Vr(t).function||"")&&t.pop(),t.reverse(),dc.test(Vr(t).function||"")&&(t.pop(),dc.test(Vr(t).function||"")&&t.pop()),t.slice(0,dd).map(n=>({...n,filename:n.filename||Vr(t).filename,function:n.function||jt}))}function Vr(e){return e[e.length-1]||{}}const vs="";function vt(e){try{return!e||typeof e!="function"?vs:e.name||vs}catch{return vs}}function fc(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const eo={},pc={};function Xt(e,t){eo[e]=eo[e]||[],eo[e].push(t)}function Jt(e,t){if(!pc[e]){pc[e]=!0;try{t()}catch(n){$&&M.error(`Error while instrumenting ${e}`,n)}}}function qe(e,t){const n=e&&eo[e];if(n)for(const r of n)try{r(t)}catch(o){$&&M.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${vt(r)} Error:`,o)}}let As=null;function mS(e){const t="error";Xt(t,e),Jt(t,hS)}function hS(){As=Z.onerror,Z.onerror=function(e,t,n,r,o){return qe("error",{column:r,error:o,line:n,msg:e,url:t}),As?As.apply(this,arguments):!1},Z.onerror.__SENTRY_INSTRUMENTED__=!0}let ws=null;function gS(e){const t="unhandledrejection";Xt(t,e),Jt(t,_S)}function _S(){ws=Z.onunhandledrejection,Z.onunhandledrejection=function(e){return qe("unhandledrejection",e),ws?ws.apply(this,arguments):!0},Z.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const pd=Object.prototype.toString;function Bt(e){switch(pd.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return At(e,Error)}}function Ln(e,t){return pd.call(e)===`[object ${t}]`}function md(e){return Ln(e,"ErrorEvent")}function mc(e){return Ln(e,"DOMError")}function yS(e){return Ln(e,"DOMException")}function ut(e){return Ln(e,"String")}function Pi(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Fi(e){return e===null||Pi(e)||typeof e!="object"&&typeof e!="function"}function Sn(e){return Ln(e,"Object")}function Do(e){return typeof Event<"u"&&At(e,Event)}function ES(e){return typeof Element<"u"&&At(e,Element)}function bS(e){return Ln(e,"RegExp")}function br(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function SS(e){return Sn(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function At(e,t){try{return e instanceof t}catch{return!1}}function hd(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function TS(e){return typeof Request<"u"&&At(e,Request)}const Ui=Z,vS=80;function gd(e,t={}){if(!e)return"";try{let n=e;const r=5,o=[];let s=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||vS;for(;n&&s++1&&i+o.length*c+u.length>=d));)o.push(u),i+=u.length,n=n.parentNode;return o.reverse().join(a)}catch{return""}}function AS(e,t){const n=e,r=[];if(!(n!=null&&n.tagName))return"";if(Ui.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t!=null&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(o!=null&&o.length)o.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&ut(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const s=["aria-label","type","name","title","alt"];for(const i of s){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function $i(){try{return Ui.document.location.href}catch{return""}}function wS(e){if(!Ui.HTMLElement)return null;let t=e;const n=5;for(let r=0;rto(e,r,n))}function Pe(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const o=n(r);typeof o=="function"&&_d(o,r);try{e[t]=o}catch{$&&M.log(`Failed to replace method "${t}" in object`,e)}}function wt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{$&&M.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function _d(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,wt(e,"__sentry_original__",t)}catch{}}function Bi(e){return e.__sentry_original__}function yd(e){if(Bt(e))return{message:e.message,name:e.name,stack:e.stack,..._c(e)};if(Do(e)){const t={type:e.type,target:gc(e.target),currentTarget:gc(e.currentTarget),..._c(e)};return typeof CustomEvent<"u"&&At(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function gc(e){try{return ES(e)?gd(e):Object.prototype.toString.call(e)}catch{return""}}function _c(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function IS(e,t=40){const n=Object.keys(yd(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ur(r,t);for(let o=n.length;o>0;o--){const s=n.slice(0,o).join(", ");if(!(s.length>t))return o===n.length?s:ur(s,t)}return""}function CS(){const e=Z;return e.crypto||e.msCrypto}function Ve(e=CS()){let t=()=>Math.random()*16;try{if(e!=null&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e!=null&&e.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function Ed(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function Dt(e){const{message:t,event_id:n}=e;if(t)return t;const r=Ed(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function qs(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function Tn(e,t){const n=Ed(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const s={...o==null?void 0:o.data,...t.data};n.mechanism.data=s}}function yc(e){if(RS(e))return!0;try{wt(e,"__sentry_captured__",!0)}catch{}return!1}function RS(e){try{return e.__sentry_captured__}catch{}}const bd=1e3;function Sr(){return Date.now()/bd}function OS(){const{performance:e}=Z;if(!(e!=null&&e.now)||!e.timeOrigin)return Sr;const t=e.timeOrigin;return()=>(t+e.now())/bd}let Ec;function lt(){return(Ec??(Ec=OS()))()}function xS(e){const t=lt(),n={sid:Ve(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>NS(n)};return e&&vn(n,e),n}function vn(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||lt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ve()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function kS(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),vn(e,n)}function NS(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Tr(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Tr(r[o],t[o],n-1));return r}function bc(){return Ve()}function Sd(){return Ve().substring(16)}const Ks="_sentrySpan";function Sc(e,t){t?wt(e,Ks,t):delete e[Ks]}function Tc(e){return e[Ks]}const LS=100;class nt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:bc(),sampleRand:Math.random()}}clone(){const t=new nt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Sc(t,Tc(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&vn(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof nt?n.getScopeData():Sn(n)?t:void 0,{tags:o,extra:s,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,Sc(this,void 0),this._attachments=[],this.setPropagationContext({traceId:bc(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var s;const r=typeof n=="number"?n:LS;if(r<=0)return this;const o={timestamp:Sr(),...t,message:t.message?ur(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(s=this._client)==null||s.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Tc(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Tr(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=(n==null?void 0:n.event_id)||Ve();if(!this._client)return $&&M.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=(r==null?void 0:r.event_id)||Ve();if(!this._client)return $&&M.warn("No client configured on scope - will not capture message!"),o;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:o},this),o}captureEvent(t,n){const r=(n==null?void 0:n.event_id)||Ve();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):($&&M.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function MS(){return Er("defaultCurrentScope",()=>new nt)}function DS(){return Er("defaultIsolationScope",()=>new nt)}class PS{constructor(t,n){let r;t?r=t:r=new nt;let o;n?o=n:o=new nt,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return br(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function An(){const e=Lo(),t=Mo(e);return t.stack=t.stack||new PS(MS(),DS())}function FS(e){return An().withScope(e)}function US(e,t){const n=An();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function vc(e){return An().withScope(()=>e(An().getIsolationScope()))}function $S(){return{withIsolationScope:vc,withScope:FS,withSetScope:US,withSetIsolationScope:(e,t)=>vc(t),getCurrentScope:()=>An().getScope(),getIsolationScope:()=>An().getIsolationScope()}}function Vi(e){const t=Mo(e);return t.acs?t.acs:$S()}function mt(){const e=Lo();return Vi(e).getCurrentScope()}function Mn(){const e=Lo();return Vi(e).getIsolationScope()}function BS(){return Er("globalScope",()=>new nt)}function VS(...e){const t=Lo(),n=Vi(t);if(e.length===2){const[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function ke(){return mt().getClient()}function jS(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,s={trace_id:n,span_id:o||Sd()};return r&&(s.parent_span_id=r),s}const HS="sentry.source",GS="sentry.sample_rate",WS="sentry.previous_trace_sample_rate",qS="sentry.op",KS="sentry.origin",Td="sentry.profile_id",vd="sentry.exclusive_time",zS=0,YS=1,XS="_sentryScope",JS="_sentryIsolationScope";function Ad(e){return{scope:e[XS],isolationScope:e[JS]}}const QS="sentry-",ZS=/^sentry-/;function eT(e){const t=tT(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,s])=>{if(o.match(ZS)){const i=o.slice(QS.length);r[i]=s}return r},{});if(Object.keys(n).length>0)return n}function tT(e){if(!(!e||!ut(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Ac(n);return Object.entries(r).forEach(([o,s])=>{t[o]=s}),t},{}):Ac(e)}function Ac(e){return e.split(",").map(t=>t.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}const nT=/^o(\d+)\./,rT=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function oT(e){return e==="http"||e==="https"}function Fo(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${i}`}function sT(e){const t=rT.exec(e);if(!t){Nn(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",s="",i="",a=""]=t.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const d=u.match(/^\d+/);d&&(u=d[0])}return wd({host:s,pass:o,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function wd(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function iT(e){if(!$)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(M.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?oT(r)?t&&isNaN(parseInt(t,10))?(M.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(M.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(M.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function aT(e){const t=e.match(nT);return t==null?void 0:t[1]}function cT(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=aT(n)),r}function uT(e){const t=typeof e=="string"?sT(e):wd(e);if(!(!t||!iT(t)))return t}function lT(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const Id=1;let wc=!1;function dT(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:ji(e).parent_span_id,s=Ad(e).scope,i=r?(s==null?void 0:s.getPropagationContext().propagationSpanId)||Sd():t;return{parent_span_id:o,span_id:i,trace_id:n}}function fT(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...o},attributes:s})=>({span_id:t,trace_id:n,sampled:r===Id,attributes:s,...o}))}function Ic(e){return typeof e=="number"?Cc(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Cc(e.getTime()):lt()}function Cc(e){return e>9999999999?e/1e3:e}function ji(e){var r;if(mT(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(pT(e)){const{attributes:o,startTime:s,name:i,endTime:a,status:c,links:u}=e,l="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(r=e.parentSpanContext)==null?void 0:r.spanId:void 0;return{span_id:t,trace_id:n,data:o,description:i,parent_span_id:l,start_timestamp:Ic(s),timestamp:Ic(a)||void 0,status:gT(c),op:o[qS],origin:o[KS],links:fT(u)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function pT(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function mT(e){return typeof e.getSpanJSON=="function"}function hT(e){const{traceFlags:t}=e.spanContext();return t===Id}function gT(e){if(!(!e||e.code===zS))return e.code===YS?"ok":e.message||"unknown_error"}const _T="_sentryRootSpan";function Cd(e){return e[_T]||e}function Rc(){wc||(Nn(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),wc=!0)}function yT(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=(n=ke())==null?void 0:n.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const Hi="production",ET="_frozenDsc";function Rd(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||Hi,release:n.release,public_key:r,trace_id:e,org_id:cT(t)};return t.emit("createDsc",o),o}function bT(e,t){const n=t.getPropagationContext();return n.dsc||Rd(n.traceId,e)}function ST(e){var h;const t=ke();if(!t)return{};const n=Cd(e),r=ji(n),o=r.data,s=n.spanContext().traceState,i=(s==null?void 0:s.get("sentry.sample_rate"))??o[GS]??o[WS];function a(g){return(typeof i=="number"||typeof i=="string")&&(g.sample_rate=`${i}`),g}const c=n[ET];if(c)return a(c);const u=s==null?void 0:s.get("sentry.dsc"),l=u&&eT(u);if(l)return a(l);const d=Rd(e.spanContext().traceId,t),f=o[HS],p=r.description;return f!=="url"&&p&&(d.transaction=p),yT()&&(d.sampled=String(hT(n)),d.sample_rand=(s==null?void 0:s.get("sentry.sample_rand"))??((h=Ad(n).scope)==null?void 0:h.getPropagationContext().sampleRand.toString())),a(d),t.emit("createDsc",d,n),d}function Je(e,t=100,n=1/0){try{return zs("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Od(e,t=3,n=100*1024){const r=Je(e,t);return wT(r)>n?Od(e,t-1,n):r}function zs(e,t,n=1/0,r=1/0,o=IT()){const[s,i]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=TT(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(s(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return zs("",p,c-1,r,o)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const f=yd(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=r){l[p]="[MaxProperties ~]";break}const h=f[p];l[p]=zs(p,h,c-1,r,o),d++}return i(t),l}function TT(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(hd(t))return"[VueViewModel]";if(SS(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${vt(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=vT(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function vT(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function AT(e){return~-encodeURI(e).split(/%..|./).length}function wT(e){return AT(JSON.stringify(e))}function IT(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function vr(e,t=[]){return[e,t]}function CT(e,t){const[n,r]=e;return[n,[...r,t]]}function Oc(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function Ys(e){const t=Mo(Z);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function RT(e){const[t,n]=e;let r=JSON.stringify(t);function o(s){typeof r=="string"?r=typeof s=="string"?r+s:[Ys(r),s]:r.push(typeof s=="string"?Ys(s):s)}for(const s of n){const[i,a]=s;if(o(` ${JSON.stringify(i)} `),typeof a=="string"||a instanceof Uint8Array)o(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Je(a))}o(c)}}return typeof r=="string"?r:OT(r)}function OT(e){const t=e.reduce((o,s)=>o+s.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function xT(e){const t=typeof e.data=="string"?Ys(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const kT={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function xc(e){return kT[e]}function xd(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function NT(e,t,n,r){var s;const o=(s=e.sdkProcessingMetadata)==null?void 0:s.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Fo(r)},...o&&{trace:o}}}function kc(e,t){if(!(t!=null&&t.length)||!e.description)return!1;for(const n of t){if(MT(n)){if(to(e.description,n))return!0;continue}if(!n.name&&!n.op)continue;const r=n.name?to(e.description,n.name):!0,o=n.op?e.op&&to(e.op,n.op):!0;if(r&&o)return!0}return!1}function LT(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const o of e)o.parent_span_id===r&&(o.parent_span_id=n)}function MT(e){return typeof e=="string"||e instanceof RegExp}function DT(e,t){var r,o,s,i;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((r=e.sdk)==null?void 0:r.integrations)||[],...t.integrations||[]],packages:[...((o=e.sdk)==null?void 0:o.packages)||[],...t.packages||[]],settings:(s=e.sdk)!=null&&s.settings||t.settings?{...(i=e.sdk)==null?void 0:i.settings,...t.settings}:void 0},e}function PT(e,t,n,r){const o=xd(n),s={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Fo(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return vr(s,[i])}function FT(e,t,n,r){const o=xd(n),s=e.type&&e.type!=="replay_event"?e.type:"event";DT(e,n==null?void 0:n.sdk);const i=NT(e,o,r,t);return delete e.sdkProcessingMetadata,vr(i,[[{type:s},e]])}const Is=0,Nc=1,Lc=2;function It(e){return new Ht(t=>{t(e)})}function Gi(e){return new Ht((t,n)=>{n(e)})}class Ht{constructor(t){this._state=Is,this._handlers=[],this._runExecutor(t)}then(t,n){return new Ht((r,o)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(i){o(i)}},s=>{if(!n)o(s);else try{r(n(s))}catch(i){o(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Ht((n,r)=>{let o,s;return this.then(i=>{s=!1,o=i,t&&t()},i=>{s=!0,o=i,t&&t()}).then(()=>{if(s){r(o);return}n(o)})})}_executeHandlers(){if(this._state===Is)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Nc&&n[1](this._value),this._state===Lc&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,i)=>{if(this._state===Is){if(br(i)){i.then(r,o);return}this._state=s,this._value=i,this._executeHandlers()}},r=s=>{n(Nc,s)},o=s=>{n(Lc,s)};try{t(r,o)}catch(s){o(s)}}}function UT(e,t,n,r=0){try{const o=Xs(t,n,e,r);return br(o)?o:It(o)}catch(o){return Gi(o)}}function Xs(e,t,n,r){const o=n[r];if(!e||!o)return e;const s=o({...e},t);return $&&s===null&&M.log(`Event processor "${o.id||"?"}" dropped event`),br(s)?s.then(i=>Xs(i,t,n,r+1)):Xs(s,t,n,r+1)}function $T(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;BT(e,t),r&&HT(e,r),GT(e,n),VT(e,o),jT(e,s)}function Mc(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:f,transactionName:p,span:h}=t;jr(e,"extra",n),jr(e,"tags",r),jr(e,"user",o),jr(e,"contexts",s),e.sdkProcessingMetadata=Tr(e.sdkProcessingMetadata,a,2),i&&(e.level=i),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function jr(e,t,n){e[t]=Tr(e[t],n,1)}function BT(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function VT(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function jT(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function HT(e,t){e.contexts={trace:dT(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ST(t),...e.sdkProcessingMetadata};const n=Cd(t),r=ji(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function GT(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let Hr,Dc,Gr;function WT(e){const t=Z._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Gr&&n.length===Dc||(Dc=n.length,Gr=n.reduce((r,o)=>{Hr||(Hr={});const s=Hr[o];if(s)r[s[0]]=s[1];else{const i=e(o);for(let a=i.length-1;a>=0;a--){const c=i[a],u=c==null?void 0:c.filename,l=t[o];if(u&&l){r[u]=l,Hr[o]=[u,l];break}}}return r},{})),Gr}function qT(e,t,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Ve(),timestamp:t.timestamp||Sr()},u=n.integrations||e.integrations.map(y=>y.name);KT(c,e),XT(c,u),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&zT(c,e.stackParser);const l=QT(r,n.captureContext);n.mechanism&&Tn(c,n.mechanism);const d=o?o.getEventProcessors():[],f=BS().getScopeData();if(s){const y=s.getScopeData();Mc(f,y)}if(l){const y=l.getScopeData();Mc(f,y)}const p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),$T(c,f);const h=[...d,...f.eventProcessors];return UT(h,c,n).then(y=>(y&&YT(y),typeof i=="number"&&i>0?JT(y,i,a):y))}function KT(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;e.environment=e.environment||n||Hi,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);const i=e.request;i!=null&&i.url&&(i.url=ur(i.url,s))}function zT(e,t){var r,o;const n=WT(t);(o=(r=e.exception)==null?void 0:r.values)==null||o.forEach(s=>{var i,a;(a=(i=s.stacktrace)==null?void 0:i.frames)==null||a.forEach(c=>{c.filename&&(c.debug_id=n[c.filename])})})}function YT(e){var r,o;const t={};if((o=(r=e.exception)==null?void 0:r.values)==null||o.forEach(s=>{var i,a;(a=(i=s.stacktrace)==null?void 0:i.frames)==null||a.forEach(c=>{c.debug_id&&(c.abs_path?t[c.abs_path]=c.debug_id:c.filename&&(t[c.filename]=c.debug_id),delete c.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([s,i])=>{n.push({type:"sourcemap",code_file:s,debug_id:i})})}function XT(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function JT(e,t,n){var o,s;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Je(i.data,t,n)}}))},...e.user&&{user:Je(e.user,t,n)},...e.contexts&&{contexts:Je(e.contexts,t,n)},...e.extra&&{extra:Je(e.extra,t,n)}};return(o=e.contexts)!=null&&o.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Je(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:Je(i.data,t,n)}}))),(s=e.contexts)!=null&&s.flags&&r.contexts&&(r.contexts.flags=Je(e.contexts.flags,3,n)),r}function QT(e,t){if(!t)return e;const n=e?e.clone():new nt;return n.update(t),n}function ZT(e){if(e)return ev(e)?{captureContext:e}:nv(e)?{captureContext:e}:e}function ev(e){return e instanceof nt||typeof e=="function"}const tv=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function nv(e){return Object.keys(e).some(t=>tv.includes(t))}function rv(e,t){return mt().captureException(e,ZT(t))}function BO(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return mt().captureMessage(e,n,r)}function kd(e,t){return mt().captureEvent(e,t)}function VO(e,t){Mn().setContext(e,t)}function Pc(e){const t=Mn(),n=mt(),{userAgent:r}=Z.navigator||{},o=xS({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),s=t.getSession();return(s==null?void 0:s.status)==="ok"&&vn(s,{status:"exited"}),Nd(),t.setSession(o),o}function Nd(){const e=Mn(),n=mt().getSession()||e.getSession();n&&kS(n),Ld(),e.setSession()}function Ld(){const e=Mn(),t=ke(),n=e.getSession();n&&t&&t.captureSession(n)}function Fc(e=!1){if(e){Nd();return}Ld()}const ov="7";function sv(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function iv(e){return`${sv(e)}${e.projectId}/envelope/`}function av(e,t){const n={sentry_version:ov};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function cv(e,t,n){return t||`${iv(e)}?${av(e,n)}`}const Uc=[];function uv(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function lv(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const o=n(t);r=Array.isArray(o)?o:[o]}else r=t;return uv(r)}function dv(e,t){const n={};return t.forEach(r=>{r&&Md(e,r,n)}),n}function $c(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function Md(e,t,n){if(n[t.name]){$&&M.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Uc.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Uc.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,s)=>r(o,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((s,i)=>r(s,i,e),{id:t.name});e.addEventProcessor(o)}$&&M.log(`Integration installed: ${t.name}`)}function fv(e,t,n){const r=[{type:"client_report"},{timestamp:Sr(),discarded_events:e}];return vr(t?{dsn:t}:{},[r])}function Dd(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function pv(e){var c;const{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:s,data:i,op:a}=((c=e.contexts)==null?void 0:c.trace)??{};return{data:i??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:i==null?void 0:i[Td],exclusive_time:i==null?void 0:i[vd],measurements:e.measurements,is_segment:!0}}function mv(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[Td]:e.profile_id},...e.exclusive_time&&{[vd]:e.exclusive_time}}}},measurements:e.measurements}}const Bc="Not capturing exception because it's already been captured.",Vc="Discarded session because of missing or non-string release",Pd=Symbol.for("SentryInternalError"),Fd=Symbol.for("SentryDoNotSendEventError");function no(e){return{message:e,[Pd]:!0}}function Cs(e){return{message:e,[Fd]:!0}}function jc(e){return!!e&&typeof e=="object"&&Pd in e}function Hc(e){return!!e&&typeof e=="object"&&Fd in e}class hv{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=uT(t.dsn):$&&M.warn("No DSN provided, client will not send events."),this._dsn){const n=cv(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const o=Ve();if(yc(t))return $&&M.log(Bc),o;const s={event_id:o,...n};return this._process(this.eventFromException(t,s).then(i=>this._captureEvent(i,s,r))),s.event_id}captureMessage(t,n,r,o){const s={event_id:Ve(),...r},i=Pi(t)?t:String(t),a=Fi(t)?this.eventFromMessage(i,n,s):this.eventFromException(t,s);return this._process(a.then(c=>this._captureEvent(c,s,o))),s.event_id}captureEvent(t,n,r){const o=Ve();if(n!=null&&n.originalException&&yc(n.originalException))return $&&M.log(Bc),o;const s={event_id:o,...n},i=t.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope;return this._process(this._captureEvent(t,s,a||r,c)),s.event_id}captureSession(t){this.sendSession(t),vn(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):It(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Md(this,t,this._integrations),n||$c(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=FT(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=CT(r,xT(o));this.sendEnvelope(r).then(o=>this.emit("afterSendEvent",t,o))}sendSession(t){const{release:n,environment:r=Hi}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n){$&&M.warn(Vc);return}s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n){$&&M.warn(Vc);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const o=PT(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const o=`${t}:${n}`;$&&M.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>($&&M.error("Error while sending envelope:",n),{})):($&&M.error("Transport disabled"),It({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=dv(this,t),$c(this,t)}_updateSessionFromEvent(t,n){var c;let r=n.level==="fatal",o=!1;const s=(c=n.exception)==null?void 0:c.values;if(s){o=!0;for(const u of s){const l=u.mechanism;if((l==null?void 0:l.handled)===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(vn(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Ht(n=>{let r=0;const o=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=o,t&&r>=t&&(clearInterval(s),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o){const s=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&(i!=null&&i.length)&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),qT(s,t,n,r,this,o).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:jS(r),...a.contexts};const c=bT(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=mt(),o=Mn()){return $&&Js(t)&&M.log(`Captured error event \`${Dd(t)[0]||""}\``),this._processEvent(t,n,r,o).then(s=>s.event_id,s=>{$&&(Hc(s)?M.log(s.message):jc(s)?M.warn(s.message):M.warn(s))})}_processEvent(t,n,r,o){const s=this.getOptions(),{sampleRate:i}=s,a=Ud(t),c=Js(t),u=t.type||"error",l=`before send for type \`${u}\``,d=typeof i>"u"?void 0:lT(i);if(c&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error"),Gi(Cs(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const f=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,r,o).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",f),Cs("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return p;const g=_v(this,s,p,n);return gv(g,l)}).then(p=>{var y;if(p===null){if(this.recordDroppedEvent("before_send",f),a){const k=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",k)}throw Cs(`${l} returned \`null\`, will not send event.`)}const h=r.getSession()||o.getSession();if(c&&h&&this._updateSessionFromEvent(h,p),a){const C=((y=p.sdkProcessingMetadata)==null?void 0:y.spanCountBeforeProcessing)||0,k=p.spans?p.spans.length:0,N=C-k;N>0&&this.recordDroppedEvent("before_send","span",N)}const g=p.transaction_info;if(a&&g&&p.transaction!==t.transaction){const C="custom";p.transaction_info={...g,source:C}}return this.sendEvent(p,n),p}).then(null,p=>{throw Hc(p)||jc(p)?p:(this.captureException(p,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:p}),no(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,s]=n.split(":");return{reason:o,category:s,quantity:r}})}_flushOutcomes(){$&&M.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){$&&M.log("No outcomes to send");return}if(!this._dsn){$&&M.log("No dsn provided, will not send outcomes");return}$&&M.log("Sending outcomes:",t);const n=fv(t,this._options.tunnel&&Fo(this._dsn));this.sendEnvelope(n)}}function gv(e,t){const n=`${t} must return \`null\` or a valid event.`;if(br(e))return e.then(r=>{if(!Sn(r)&&r!==null)throw no(n);return r},r=>{throw no(`${t} rejected with ${r}`)});if(!Sn(e)&&e!==null)throw no(n);return e}function _v(e,t,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:i,ignoreSpans:a}=t;let c=n;if(Js(c)&&o)return o(c,r);if(Ud(c)){if(i||a){const u=pv(c);if(a!=null&&a.length&&kc(u,a))return null;if(i){const l=i(u);l?c=Tr(n,mv(l)):Rc()}if(c.spans){const l=[],d=c.spans;for(const p of d){if(a!=null&&a.length&&kc(p,a)){LT(d,p);continue}if(i){const h=i(p);h?l.push(h):(Rc(),l.push(p))}else l.push(p)}const f=c.spans.length-l.length;f&&e.recordDroppedEvent("before_send","span",f),c.spans=l}}if(s){if(c.spans){const u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return s(c,r)}}return c}function Js(e){return e.type===void 0}function Ud(e){return e.type==="transaction"}function yv(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function Ev(e,t,n,r){const o={};return t!=null&&t.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=Fo(r)),vr(o,[yv(e)])}function Rs(e,t){const n=bv(e)??[];if(n.length===0)return;const r=e.getOptions(),o=Ev(n,r._metadata,r.tunnel,e.getDsn());$d().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function bv(e){return $d().get(e)}function $d(){return Er("clientToLogBufferMap",()=>new WeakMap)}function Sv(e,t){t.debug===!0&&($?M.enable():Nn(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),mt().update(t.initialScope);const r=new e(t);return Tv(r),r.init(),r}function Tv(e){mt().setClient(e)}const Bd=Symbol.for("SentryBufferFullError");function vv(e){const t=[];function n(){return e===void 0||t.lengthr(a)).then(null,()=>r(a).then(null,()=>{})),a}function s(i){return new Ht((a,c)=>{let u=t.length;if(!u)return a(!0);const l=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(d=>{It(d).then(()=>{--u||(clearTimeout(l),a(!0))},c)})})}return{$:t,add:o,drain:s}}const Av=60*1e3;function wv(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Av:r-t}function Iv(e,t){return e[t]||e.all||0}function Cv(e,t,n=Date.now()){return Iv(e,t)>n}function Rv(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n==null?void 0:n["x-sentry-rate-limits"],i=n==null?void 0:n["retry-after"];if(s)for(const a of s.trim().split(",")){const[c,u,,,l]=a.split(":",5),d=parseInt(c,10),f=(isNaN(d)?60:d)*1e3;if(!u)o.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(o[p]=r+f):o[p]=r+f}else i?o.all=r+wv(i,r):t===429&&(o.all=r+60*1e3);return o}const Ov=64;function xv(e,t,n=vv(e.bufferSize||Ov)){let r={};const o=i=>n.drain(i);function s(i){const a=[];if(Oc(i,(d,f)=>{const p=xc(f);Cv(r,p)?e.recordDroppedEvent("ratelimit_backoff",p):a.push(d)}),a.length===0)return It({});const c=vr(i[0],a),u=d=>{Oc(c,(f,p)=>{e.recordDroppedEvent(d,xc(p))})},l=()=>t({body:RT(c)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&$&&M.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Rv(r,d),d),d=>{throw u("network_error"),$&&M.error("Encountered error running transport request:",d),d});return n.add(l).then(d=>d,d=>{if(d===Bd)return $&&M.error("Skipped sending event because buffer is full."),u("queue_overflow"),It({});throw d})}return{send:s,flush:o}}function Os(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function kv(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function Nv(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:$t})),version:$t}),e._metadata=o}const Lv=100;function Gt(e,t){const n=ke(),r=Mn();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=Lv}=n.getOptions();if(s<=0)return;const a={timestamp:Sr(),...e},c=o?Nn(()=>o(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,s))}let Gc;const Mv="FunctionToString",Wc=new WeakMap,Dv=()=>({name:Mv,setupOnce(){Gc=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Bi(this),n=Wc.has(ke())&&t!==void 0?t:this;return Gc.apply(n,e)}}catch{}},setup(e){Wc.set(e,!0)}}),Pv=Dv,Fv=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Uv="EventFilters",$v=(e={})=>{let t;return{name:Uv,setup(n){const r=n.getOptions();t=qc(e,r)},processEvent(n,r,o){if(!t){const s=o.getOptions();t=qc(e,s)}return Vv(n,t)?null:n}}},Bv=(e={})=>({...$v(e),name:"InboundFilters"});function qc(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Fv],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Vv(e,t){if(e.type){if(e.type==="transaction"&&Hv(e,t.ignoreTransactions))return $&&M.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${Dt(e)}`),!0}else{if(jv(e,t.ignoreErrors))return $&&M.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${Dt(e)}`),!0;if(Kv(e))return $&&M.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${Dt(e)}`),!0;if(Gv(e,t.denyUrls))return $&&M.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${Dt(e)}. Url: ${fo(e)}`),!0;if(!Wv(e,t.allowUrls))return $&&M.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${Dt(e)}. Url: ${fo(e)}`),!0}return!1}function jv(e,t){return t!=null&&t.length?Dd(e).some(n=>Po(n,t)):!1}function Hv(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?Po(n,t):!1}function Gv(e,t){if(!(t!=null&&t.length))return!1;const n=fo(e);return n?Po(n,t):!1}function Wv(e,t){if(!(t!=null&&t.length))return!0;const n=fo(e);return n?Po(n,t):!0}function qv(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function fo(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(s=>{var i,a,c;return((i=s.mechanism)==null?void 0:i.parent_id)===void 0&&((c=(a=s.stacktrace)==null?void 0:a.frames)==null?void 0:c.length)}),o=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return o?qv(o):null}catch{return $&&M.error(`Cannot extract url for event ${Dt(e)}`),null}}function Kv(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function zv(e,t,n,r,o,s){var a;if(!((a=o.exception)!=null&&a.values)||!s||!At(s.originalException,Error))return;const i=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;i&&(o.exception.values=Qs(e,t,r,s.originalException,n,o.exception.values,i,0))}function Qs(e,t,n,r,o,s,i,a){if(s.length>=n+1)return s;let c=[...s];if(At(r[o],Error)){Kc(i,a);const u=e(t,r[o]),l=c.length;zc(u,o,l,a),c=Qs(e,t,n,r[o],o,[u,...c],u,l)}return Array.isArray(r.errors)&&r.errors.forEach((u,l)=>{if(At(u,Error)){Kc(i,a);const d=e(t,u),f=c.length;zc(d,`errors[${l}]`,f,a),c=Qs(e,t,n,u,o,[d,...c],d,f)}}),c}function Kc(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function zc(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Yv(e){const t="console";Xt(t,e),Jt(t,Xv)}function Xv(){"console"in Z&&sS.forEach(function(e){e in Z.console&&Pe(Z.console,e,function(t){return lo[e]=t,function(...n){qe("console",{args:n,level:e});const o=lo[e];o==null||o.apply(Z.console,n)}})})}function Jv(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Qv="Dedupe",Zv=()=>{let e;return{name:Qv,processEvent(t){if(t.type)return t;try{if(tA(t,e))return $&&M.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},eA=Zv;function tA(e,t){return t?!!(nA(e,t)||rA(e,t)):!1}function nA(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!jd(e,t)||!Vd(e,t))}function rA(e,t){const n=Yc(t),r=Yc(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!jd(e,t)||!Vd(e,t))}function Vd(e,t){let n=fc(e),r=fc(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:oA,processEvent(r,o,s){const{maxValueLength:i=250}=s.getOptions();return iA(r,o,t,n,i)}}},jO=sA;function iA(e,t={},n,r,o){if(!t.originalException||!Bt(t.originalException))return e;const s=t.originalException.name||t.originalException.constructor.name,i=Hd(t.originalException,r,o);if(i){const a={...e.contexts},c=Je(i,n);return Sn(c)&&(wt(c,"__sentry_skip_normalization__",!0),a[s]=c),{...e,contexts:a}}return e}function Hd(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const s of Object.keys(e)){if(r.indexOf(s)!==-1)continue;const i=e[s];o[s]=Bt(i)||typeof i=="string"?ur(`${i}`,n):i}if(t&&e.cause!==void 0)if(Bt(e.cause)){const s=e.cause.name||e.cause.constructor.name;o.cause={[s]:Hd(e.cause,!1,n)}}else o.cause=e.cause;if(typeof e.toJSON=="function"){const s=e.toJSON();for(const i of Object.keys(s)){const a=s[i];o[i]=Bt(a)?a.toString():a}}return o}catch(r){$&&M.error("Unable to extract extra data from the Error object:",r)}return null}function Gd(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const lr=Z;function aA(){return"history"in lr&&!!lr.history}function cA(){if(!("fetch"in lr))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Zs(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function uA(){var n;if(typeof EdgeRuntime=="string")return!0;if(!cA())return!1;if(Zs(lr.fetch))return!0;let e=!1;const t=lr.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=Zs(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){$&&M.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function lA(e,t){const n="fetch";Xt(n,e),Jt(n,()=>dA(void 0,t))}function dA(e,t=!1){t&&!uA()||Pe(Z,"fetch",function(n){return function(...r){const o=new Error,{method:s,url:i}=fA(r),a={args:r,fetchData:{method:s,url:i},startTimestamp:lt()*1e3,virtualError:o,headers:pA(r)};return qe("fetch",{...a}),n.apply(Z,r).then(async c=>(qe("fetch",{...a,endTimestamp:lt()*1e3,response:c}),c),c=>{if(qe("fetch",{...a,endTimestamp:lt()*1e3,error:c}),Bt(c)&&c.stack===void 0&&(c.stack=o.stack,wt(c,"framesToPop",1)),c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const u=new URL(a.fetchData.url);c.message=`${c.message} (${u.host})`}catch{}throw c})}})}function ei(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Xc(e){return typeof e=="string"?e:e?ei(e,"url")?e.url:e.toString?e.toString():"":""}function fA(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Xc(n),method:ei(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Xc(t),method:ei(t,"method")?String(t.method).toUpperCase():"GET"}}function pA(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(TS(t))return new Headers(t.headers)}catch{}}function mA(){return"npm"}const ie=Z;let ti=0;function Wd(){return ti>0}function hA(){ti++,setTimeout(()=>{ti--})}function wn(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(Bi(e))return e}catch{return e}const r=function(...o){try{const s=o.map(i=>wn(i,t));return e.apply(this,s)}catch(s){throw hA(),VS(i=>{i.addEventProcessor(a=>(t.mechanism&&(qs(a,void 0),Tn(a,t.mechanism)),a.extra={...a.extra,arguments:o},a)),rv(s)}),s}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}_d(r,e),wt(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function gA(){const e=$i(),{referrer:t}=ie.document||{},{userAgent:n}=ie.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function Wi(e,t){const n=qi(e,t),r={type:SA(t),value:TA(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function _A(e,t,n,r){const o=ke(),s=o==null?void 0:o.getOptions().normalizeDepth,i=CA(t),a={__serialized__:Od(t,s)};if(i)return{exception:{values:[Wi(e,i)]},extra:a};const c={exception:{values:[{type:Do(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:wA(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=qi(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function xs(e,t){return{exception:{values:[Wi(e,t)]}}}function qi(e,t){const n=t.stacktrace||t.stack||"",r=EA(t),o=bA(t);try{return e(n,r,o)}catch{}return[]}const yA=/Minified React error #\d+;/i;function EA(e){return e&&yA.test(e.message)?1:0}function bA(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function qd(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function SA(e){const t=e==null?void 0:e.name;return!t&&qd(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function TA(e){const t=e==null?void 0:e.message;return qd(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function vA(e,t,n,r){const o=(n==null?void 0:n.syntheticException)||void 0,s=Ki(e,t,o,r);return Tn(s),s.level="error",n!=null&&n.event_id&&(s.event_id=n.event_id),It(s)}function AA(e,t,n="info",r,o){const s=(r==null?void 0:r.syntheticException)||void 0,i=ni(e,t,s,o);return i.level=n,r!=null&&r.event_id&&(i.event_id=r.event_id),It(i)}function Ki(e,t,n,r,o){let s;if(md(t)&&t.error)return xs(e,t.error);if(mc(t)||yS(t)){const i=t;if("stack"in t)s=xs(e,t);else{const a=i.name||(mc(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;s=ni(e,c,n,r),qs(s,c)}return"code"in i&&(s.tags={...s.tags,"DOMException.code":`${i.code}`}),s}return Bt(t)?xs(e,t):Sn(t)||Do(t)?(s=_A(e,t,n,o),Tn(s,{synthetic:!0}),s):(s=ni(e,t,n,r),qs(s,`${t}`),Tn(s,{synthetic:!0}),s)}function ni(e,t,n,r){const o={};if(r&&n){const s=qi(e,n);s.length&&(o.exception={values:[{value:t,stacktrace:{frames:s}}]}),Tn(o,{synthetic:!0})}if(Pi(t)){const{__sentry_template_string__:s,__sentry_template_values__:i}=t;return o.logentry={message:s,params:i},o}return o.message=t,o}function wA(e,{isUnhandledRejection:t}){const n=IS(e),r=t?"promise rejection":"exception";return md(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Do(e)?`Event \`${IA(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function IA(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function CA(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const RA=5e3;class OA extends hv{constructor(t){var a;const n=xA(t),r=ie.SENTRY_SDK_SOURCE||mA();Nv(n,"browser",["browser"],r),(a=n._metadata)!=null&&a.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:o,sendClientReports:s,enableLogs:i}=this._options;ie.document&&(s||i)&&ie.document.addEventListener("visibilitychange",()=>{ie.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),i&&Rs(this))}),i&&(this.on("flush",()=>{Rs(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Rs(this)},RA)})),o&&this.on("beforeSendSession",kv)}eventFromException(t,n){return vA(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return AA(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,o)}}function xA(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=ie.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const kA=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,we=Z,NA=1e3;let Jc,ri,oi;function LA(e){const t="dom";Xt(t,e),Jt(t,MA)}function MA(){if(!we.document)return;const e=qe.bind(null,"dom"),t=Qc(e,!0);we.document.addEventListener("click",t,!1),we.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var s,i;const o=(s=we[n])==null?void 0:s.prototype;(i=o==null?void 0:o.hasOwnProperty)!=null&&i.call(o,"addEventListener")&&(Pe(o,"addEventListener",function(a){return function(c,u,l){if(c==="click"||c=="keypress")try{const d=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=d[c]=d[c]||{refCount:0};if(!f.handler){const p=Qc(e);f.handler=p,a.call(this,c,p,l)}f.refCount++}catch{}return a.call(this,c,u,l)}}),Pe(o,"removeEventListener",function(a){return function(c,u,l){if(c==="click"||c=="keypress")try{const d=this.__sentry_instrumentation_handlers__||{},f=d[c];f&&(f.refCount--,f.refCount<=0&&(a.call(this,c,f.handler,l),f.handler=void 0,delete d[c]),Object.keys(d).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,c,u,l)}}))})}function DA(e){if(e.type!==ri)return!1;try{if(!e.target||e.target._sentryId!==oi)return!1}catch{}return!0}function PA(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function Qc(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=FA(n);if(PA(n.type,r))return;wt(n,"_sentryCaptured",!0),r&&!r._sentryId&&wt(r,"_sentryId",Ve());const o=n.type==="keypress"?"input":n.type;DA(n)||(e({event:n,name:o,global:t}),ri=n.type,oi=r?r._sentryId:void 0),clearTimeout(Jc),Jc=we.setTimeout(()=>{oi=void 0,ri=void 0},NA)}}function FA(e){try{return e.target}catch{return null}}let Wr;function Kd(e){const t="history";Xt(t,e),Jt(t,UA)}function UA(){if(we.addEventListener("popstate",()=>{const t=we.location.href,n=Wr;if(Wr=t,n===t)return;qe("history",{from:n,to:t})}),!aA())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const o=Wr,s=$A(String(r));if(Wr=s,o===s)return t.apply(this,n);qe("history",{from:o,to:s})}return t.apply(this,n)}}Pe(we.history,"pushState",e),Pe(we.history,"replaceState",e)}function $A(e){try{return new URL(e,we.location.origin).toString()}catch{return e}}const ro={};function BA(e){const t=ro[e];if(t)return t;let n=we[e];if(Zs(n))return ro[e]=n.bind(we);const r=we.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const s=o.contentWindow;s!=null&&s[e]&&(n=s[e]),r.head.removeChild(o)}catch(o){kA&&M.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(ro[e]=n.bind(we))}function VA(e){ro[e]=void 0}const Jn="__sentry_xhr_v3__";function jA(e){const t="xhr";Xt(t,e),Jt(t,HA)}function HA(){if(!we.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=new Error,s=lt()*1e3,i=ut(r[0])?r[0].toUpperCase():void 0,a=GA(r[1]);if(!i||!a)return t.apply(n,r);n[Jn]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[Jn];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const l={endTimestamp:lt()*1e3,startTimestamp:s,xhr:n,virtualError:o};qe("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,l,d){return c(),u.apply(l,d)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,l,d){const[f,p]=d,h=l[Jn];return h&&ut(f)&&ut(p)&&(h.request_headers[f.toLowerCase()]=p),u.apply(l,d)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const o=n[Jn];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const s={startTimestamp:lt()*1e3,xhr:n};return qe("xhr",s),t.apply(n,r)}})}function GA(e){if(ut(e))return e;try{return e.toString()}catch{}}function WA(e,t=BA("fetch")){let n=0,r=0;async function o(s){const i=s.body.length;n+=i,r++;const a={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw VA("fetch"),c}finally{n-=i,r--}}return xv(e,o)}const qA=30,KA=50;function si(e,t,n,r){const o={filename:e,function:t===""?jt:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const zA=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,YA=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,XA=/\((\S*)(?::(\d+))(?::(\d+))\)/,JA=/at (.+?) ?\(data:(.+?),/,QA=e=>{const t=e.match(JA);if(t)return{filename:``,function:t[1]};const n=zA.exec(e);if(n){const[,o,s,i]=n;return si(o,jt,+s,+i)}const r=YA.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const a=XA.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[s,i]=zd(r[1]||jt,r[2]);return si(i,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},ZA=[qA,QA],ew=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tw=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,nw=e=>{const t=ew.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=tw.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],o=t[1]||jt;return[o,r]=zd(o,r),si(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},rw=[KA,nw],ow=[ZA,rw],sw=fd(...ow),zd=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:jt,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Uo=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qr=1024,iw="Breadcrumbs",aw=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:iw,setup(n){t.console&&Yv(dw(n)),t.dom&&LA(lw(n,t.dom)),t.xhr&&jA(fw(n)),t.fetch&&lA(pw(n)),t.history&&Kd(mw(n)),t.sentry&&n.on("beforeSendEvent",uw(n))}}},cw=aw;function uw(e){return function(n){ke()===e&&Gt({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Dt(n)},{event:n})}}function lw(e,t){return function(r){if(ke()!==e)return;let o,s,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>qr&&(Uo&&M.warn(`\`dom.maxStringLength\` cannot exceed ${qr}, but a value of ${a} was configured. Sentry will use ${qr} instead.`),a=qr),typeof i=="string"&&(i=[i]);try{const u=r.event,l=hw(u)?u.target:u;o=gd(l,{keyAttrs:i,maxStringLength:a}),s=wS(l)}catch{o=""}if(o.length===0)return;const c={category:`ui.${r.name}`,message:o};s&&(c.data={"ui.component_name":s}),Gt(c,{event:r.event,name:r.name,global:r.global})}}function dw(e){return function(n){if(ke()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Jv(n.level),message:hc(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${hc(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Gt(r,{input:n.args,level:n.level})}}function fw(e){return function(n){if(ke()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,s=n.xhr[Jn];if(!r||!o||!s)return;const{method:i,url:a,status_code:c,body:u}=s,l={method:i,url:a,status_code:c},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:o},f={category:"xhr",data:l,type:"http",level:Gd(c)};e.emit("beforeOutgoingRequestBreadcrumb",f,d),Gt(f,d)}}function pw(e){return function(n){if(ke()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const s=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o},a={category:"fetch",data:s,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,i),Gt(a,i)}else{const s=n.response,i={...n.fetchData,status_code:s==null?void 0:s.status};n.fetchData.request_body_size,n.fetchData.response_body_size,s==null||s.status;const a={input:n.args,response:s,startTimestamp:r,endTimestamp:o},c={category:"fetch",data:i,type:"http",level:Gd(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),Gt(c,a)}}}function mw(e){return function(n){if(ke()!==e)return;let r=n.from,o=n.to;const s=Os(ie.location.href);let i=r?Os(r):void 0;const a=Os(o);i!=null&&i.path||(i=s),s.protocol===a.protocol&&s.host===a.host&&(o=a.relative),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),Gt({category:"navigation",data:{from:r,to:o}})}}function hw(e){return!!e&&!!e.target}const gw=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],_w="BrowserApiErrors",yw=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:_w,setupOnce(){t.setTimeout&&Pe(ie,"setTimeout",Zc),t.setInterval&&Pe(ie,"setInterval",Zc),t.requestAnimationFrame&&Pe(ie,"requestAnimationFrame",bw),t.XMLHttpRequest&&"XMLHttpRequest"in ie&&Pe(XMLHttpRequest.prototype,"send",Sw);const n=t.eventTarget;n&&(Array.isArray(n)?n:gw).forEach(o=>Tw(o,t))}}},Ew=yw;function Zc(e){return function(...t){const n=t[0];return t[0]=wn(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${vt(e)}`}}),e.apply(this,t)}}function bw(e){return function(t){return e.apply(this,[wn(t,{mechanism:{data:{handler:vt(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Sw(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&Pe(n,o,function(s){const i={mechanism:{data:{handler:vt(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},a=Bi(s);return a&&(i.mechanism.data.handler=vt(a)),wn(s,i)})}),e.apply(this,t)}}function Tw(e,t){var o,s;const r=(o=ie[e])==null?void 0:o.prototype;(s=r==null?void 0:r.hasOwnProperty)!=null&&s.call(r,"addEventListener")&&(Pe(r,"addEventListener",function(i){return function(a,c,u){try{vw(c)&&(c.handleEvent=wn(c.handleEvent,{mechanism:{data:{handler:vt(c),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&Aw(this,a,c),i.apply(this,[a,wn(c,{mechanism:{data:{handler:vt(c),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),u])}}),Pe(r,"removeEventListener",function(i){return function(a,c,u){try{const l=c.__sentry_wrapped__;l&&i.call(this,a,l,u)}catch{}return i.call(this,a,c,u)}}))}function vw(e){return typeof e.handleEvent=="function"}function Aw(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const ww=()=>({name:"BrowserSession",setupOnce(){if(typeof ie.document>"u"){Uo&&M.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Pc({ignoreDuration:!0}),Fc(),Kd(({from:e,to:t})=>{e!==void 0&&e!==t&&(Pc({ignoreDuration:!0}),Fc())})}}),Iw="GlobalHandlers",Cw=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Iw,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Ow(n),eu("onerror")),t.onunhandledrejection&&(xw(n),eu("onunhandledrejection"))}}},Rw=Cw;function Ow(e){mS(t=>{const{stackParser:n,attachStacktrace:r}=Yd();if(ke()!==e||Wd())return;const{msg:o,url:s,line:i,column:a,error:c}=t,u=Lw(Ki(n,c||o,void 0,r,!1),s,i,a);u.level="error",kd(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function xw(e){gS(t=>{const{stackParser:n,attachStacktrace:r}=Yd();if(ke()!==e||Wd())return;const o=kw(t),s=Fi(o)?Nw(o):Ki(n,o,void 0,r,!0);s.level="error",kd(s,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function kw(e){if(Fi(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Nw(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Lw(e,t,n,r){const o=e.exception=e.exception||{},s=o.values=o.values||[],i=s[0]=s[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,l=n,d=Mw(t)??$i();return c.length===0&&c.push({colno:u,filename:d,function:jt,in_app:!0,lineno:l}),e}function eu(e){Uo&&M.log(`Global Handler attached: ${e}`)}function Yd(){const e=ke();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Mw(e){if(!(!ut(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return``}return e.slice(0,1024)}}const Dw=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!ie.navigator&&!ie.location&&!ie.document)return;const t=gA(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}}}),Pw="cause",Fw=5,Uw="LinkedErrors",$w=(e={})=>{const t=e.limit||Fw,n=e.key||Pw;return{name:Uw,preprocessEvent(r,o,s){const i=s.getOptions();zv(Wi,i.stackParser,n,t,r,o)}}},Bw=$w;function Vw(){return jw()?(Uo&&Nn(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function jw(){var s;if(typeof ie.window>"u")return!1;const e=ie;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((s=t==null?void 0:t.runtime)!=null&&s.id))return!1;const n=$i(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(ie===ie.top&&r.some(i=>n.startsWith(`${i}://`)))}function Hw(e){return[Bv(),Pv(),Ew(),cw(),Rw(),Bw(),eA(),Dw(),ww()]}function HO(e={}){const t=!e.skipBrowserExtensionCheck&&Vw(),n={...e,enabled:t?!1:e.enabled,stackParser:fS(e.stackParser||sw),integrations:lv({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?Hw():e.defaultIntegrations}),transport:e.transport||WA};return Sv(OA,n)}const Dn=e=>{try{const t=localStorage.getItem(e);return t===null?void 0:JSON.parse(t)}catch{return}},dt=(e,t)=>{try{const n=JSON.stringify(e);localStorage.setItem(t,n)}catch{return}},GO=e=>{try{localStorage.removeItem(e)}catch{return}},tu="data-allow-new-badge",Fe=()=>{var e;return`newBadgeForSubscribers-${(e=window.App.user)==null?void 0:e.id}`},Gw=7,Ww=new Date().setDate(new Date().getDate()+Gw);function WO(e,t){var o,s,i,a;const n=Dn(Fe()),r={ttl:Ww,header_create_cta:!0,filter_code:e==="pro"&&((o=t.filter_code)==null?void 0:o.permitted),queries:e==="pro"&&((s=t.queries)==null?void 0:s.permitted),multi_service_account:e==="pro"&&((i=t.multi_service_account)==null?void 0:i.permitted),multi_action:(a=t.multi_action)==null?void 0:a.permitted};dt(n?{...n,...r}:{...r},Fe()),ii()}function qw(e){Object.entries(e).forEach(([t,n])=>{n===!0&&(e[t]=!1)}),dt({...e},Fe())}function ii(){const e=Dn(Fe());if(!e)return;if(new Date().getTime()>e.ttl){qw(e);return}const t=Object.entries(e).filter(([n,r])=>r===!0).map(([n,r])=>n);t.length!==0&&(t.length===1&&t[0]==="header_create_cta"?(dt({...e,header_create_cta:!1},Fe()),ii()):t.length===2&&t.includes("header_create_cta")&&t.includes("multi_service_account")?(dt({...e,header_create_cta:!1},Fe()),ii()):t&&document.querySelectorAll(`[${tu}]`).forEach(n=>{const r=n.getAttribute(tu);if(!r)return;const o=r==="filter_code_queries_delay"&&(e.queries||e.filter_code);if(!n.classList.contains("button-with-badge-new")&&(e[r]||o)){if(n.classList.add("button-with-badge-new"),r==="header_create_cta")return;n.addEventListener("click",()=>{dt({...e,[r]:!1},Fe())},{once:!0})}}))}function qO(){const e=Dn(Fe());return e&&e.multi_service_account}function KO(){const e=Dn(Fe());dt({...e,multi_service_account:!1},Fe())}function zO(e,t){const n=Dn(Fe());n&&e in n&&(n[e]=t,dt({...n},Fe()))}const Xd=({fontSizePx:e,minFontSizePx:t,fontSizePrecisionPx:n,updateFontSizePx:r,breakPredicate:o})=>{const s=Math.ceil(1/n);let i=0;for(;e>t&&i{const t=getComputedStyle(e);return e.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)},nu=e=>{const t=getComputedStyle(e);return e.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)},Kw=e=>{e.innerEl.style.whiteSpace="nowrap",Jd(e),e.innerEl.scrollWidth>dr(e.containerEl)&&(e.innerEl.style.whiteSpace="normal")},Jd=({innerEl:e,containerEl:t,fontSizePx:n,minFontSizePx:r,maxFontSizePx:o,fontSizePrecisionPx:s,updateFontSizePx:i})=>{let c=0,u=1;for(;c<10;){const l=e.scrollWidth,d=dr(t),f=nr&&l>d,h=l/d;if(u===h||!(f||p))break;const g=n/h-n,y=n;if(n=i(n+g),Math.abs(n-y)<=s)break;u=h,c++}Xd({fontSizePx:n,minFontSizePx:r,updateFontSizePx:i,fontSizePrecisionPx:s,breakPredicate:()=>e.scrollWidth<=dr(t)})},ru=({innerEl:e,containerEl:t,fontSizePx:n,minFontSizePx:r,maxFontSizePx:o,fontSizePrecisionPx:s,updateFontSizePx:i})=>{n=i((o-r)*.5);let c=(o-r)*.25,u=0;for(;c>s&&u<100;){const l=e.scrollWidth,d=dr(t),f=e.scrollHeight,p=nu(t);if(l===d&&f===p)break;nr&&(l>d||f>p)&&(n=i(n-c)),c*=.5,u++}Xd({fontSizePx:n,minFontSizePx:r,updateFontSizePx:i,fontSizePrecisionPx:s,breakPredicate:()=>e.scrollWidth<=dr(t)&&e.scrollHeight<=nu(t)})};function zw({innerEl:e,containerEl:t,mode:n="multiline",minFontSizePx:r=8,maxFontSizePx:o=160,fontSizePrecisionPx:s=.1}){if(performance.now(),!isFinite(r))throw new Error(`Invalid minFontSizePx (${r})`);if(!isFinite(r))throw new Error(`Invalid maxFontSizePx (${o})`);if(!isFinite(s)||s===0)throw new Error(`Invalid fontSizePrecisionPx (${s})`);t.children.length>1&&console.warn(`AutoTextSize has ${t.children.length-1} siblings. This may interfere with the algorithm.`);const i={display:"flex",alignItems:"start"},a={display:"block"};n==="oneline"?a.whiteSpace="nowrap":n==="multiline"?a.wordBreak="break-word":n==="box"?(a.whiteSpace="pre-wrap",a.wordBreak="break-word"):n==="boxoneline"&&(a.whiteSpace="nowrap"),Object.assign(t.style,i),Object.assign(e.style,a);const c=window.getComputedStyle(e,null).getPropertyValue("font-size");let u=parseFloat(c);const l=f=>(f=Math.min(Math.max(f,r),o),u=f,e.style.fontSize=`${u}px`,u);(u>o||u{(e||document).querySelectorAll("[data-fittty]").forEach(t=>{const n=t;if(n.clientHeight===0)return;const r=n.children[0];zw({innerEl:r,containerEl:n,mode:t.dataset.fitttyMode||"box",minFontSizePx:t.dataset.fitttyMin||20,maxFontSizePx:t.dataset.fitttyMax||52,fontSizePrecisionPx:.1}),t.removeAttribute("data-fittty")}),window.dispatchEvent(new CustomEvent("VanillaFittty",{}))};function XO(e={}){const t=document.querySelector("body"),n=document.documentElement;Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight);const r=[".story-header-container",".connect-header-container",".header-container",".connection-header",".service-header",".site-header",".unified-header"],o=[".site-footer"],s=e.color||ou(r),i=ou(o)||s;if(s){if(e.updateBottomBg){const a=document.createElement("div");a.style.position="absolute",a.style.top="50vh",a.style.height="1px",a.style.width="100%",t.appendChild(a);const c=new IntersectionObserver(u=>{u.forEach(l=>{if(t.classList.contains("mobile-universal-search-enabled"))return;const d=l.boundingClientRect.top<0;e.platform?t.style.backgroundColor=d?"#fff":s:t.style.backgroundColor=d?i:s})},{threshold:0});c.observe(a),window.addEventListener("pagehide",()=>{c.disconnect(),a.remove()})}setTimeout(()=>{t.style.backgroundColor=s})}}function ou(e){let t,n;return e.find(r=>t=document.querySelector(r)),t?(n=window.getComputedStyle(t,null),n.backgroundColor):null}function JO(e){const t=document.referrer,n=t?new URL(t).hostname:null;n!=null&&n.endsWith(window.location.hostname)?window.history.back():location.href=e}function QO(){const e=new IntersectionObserver((n,r)=>{n.forEach(o=>{if(o.isIntersecting){const s=o.target;s.classList.remove("lazy-bg-img"),r.unobserve(s)}})},{threshold:0});document.querySelectorAll(".lazy-bg-img").forEach(n=>e.observe(n))}function ZO(){let e=null,t=null;const n=()=>{e==null||e.disconnect(),t==null||t.disconnect()},r=()=>{const s=document.querySelector(".site-footer"),i=document.querySelector("#zendesk-widget-button .help-button");if(!s||!i)return;const a=s.offsetTop,c=window.innerHeight-a,u=Math.max(c,0);document.documentElement.style.setProperty("--zendesk-widget-bottom",`${u}px`),e==null||e.disconnect(),requestAnimationFrame(()=>{e=new IntersectionObserver(l=>{l.forEach(d=>{const f=i.getBoundingClientRect(),p=d.boundingClientRect,h=f.top>p.top;i.style.visibility=h?"hidden":"visible"})},{threshold:[0,.1,.2,.3,.4,.5,.66,.75]}),e.observe(s)})};r();const o=document.querySelector("main");return o&&(t=new ResizeObserver(()=>{r()}),t.observe(o)),n}const{addListener:ks,cleanup:su}=mi(),Yw=()=>{const e=t=>{const n=t==null?void 0:t.querySelector("input");n&&(n.value="",window.dispatchEvent(new CustomEvent(`clean-search:${t.id}`,{})))};document.querySelectorAll(".icon.clean-search").forEach(t=>{ks(t,"click",n=>{n.preventDefault(),n.stopPropagation();const r=n.target.closest(".ifttt-search");r&&e(r)})}),document.querySelectorAll(".ifttt-search input").forEach(t=>{ks(t,"keydown",n=>{if(n.key==="Escape"){const r=n.target.closest(".ifttt-search");r&&(r.querySelector(".highlighted")||e(r))}})}),document.querySelectorAll(".ifttt-search a.search-navigation").forEach(t=>{var r;const n=(r=t.closest(".ifttt-search"))==null?void 0:r.querySelector("input");ks(n,"input",o=>{const i=o.target.value.trim();i&&(t.href=`/search/query/${encodeURIComponent(i.toLowerCase())}`)})}),su.withPageRestore(()=>{Yw()}),window.addEventListener("beforeunload",su)};var Qd={};/*! * mustache.js - Logic-less {{mustache}} templates with JavaScript * http://github.com/janl/mustache.js */(function(e){(function(n,r){e&&typeof e.nodeName!="string"?r(e):(n.Mustache={},r(n.Mustache))})(Xn,function(n){var r=Object.prototype.toString,o=Array.isArray||function(T){return r.call(T)==="[object Array]"};function s(v){return typeof v=="function"}function i(v){return o(v)?"array":typeof v}function a(v){return v.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function c(v,T){return v!=null&&typeof v=="object"&&T in v}var u=RegExp.prototype.test;function l(v,T){return u.call(v,T)}var d=/\S/;function f(v){return!l(d,v)}var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function h(v){return String(v).replace(/[&<>"'`=\/]/g,function(A){return p[A]})}var g=/\s*/,y=/\s+/,C=/\s*=/,k=/\s*\}/,N=/#|\^|\/|>|\{|&|=|!/;function E(v,T){if(!v)return[];var A=[],b=[],O=[],H=!1,z=!1;function G(){if(H&&!z)for(;O.length;)delete b[O.pop()];else O=[];H=!1,z=!1}var ee,te,j;function ge(ye){if(typeof ye=="string"&&(ye=ye.split(y,2)),!o(ye)||ye.length!==2)throw new Error("Invalid tags: "+ye);ee=new RegExp(a(ye[0])+"\\s*"),te=new RegExp("\\s*"+a(ye[1])),j=new RegExp("\\s*"+a("}"+ye[1]))}ge(T||n.tags);for(var P=new w(v),$e,K,se,ze,ae,Ge;!P.eos();){if($e=P.pos,se=P.scanUntil(ee),se)for(var Qt=0,Ar=se.length;Qt0?b[b.length-1][4]:T;break;default:A.push(O)}return T}function w(v){this.string=v,this.tail=v,this.pos=0}w.prototype.eos=function(){return this.tail===""},w.prototype.scan=function(T){var A=this.tail.match(T);if(!A||A.index!==0)return"";var b=A[0];return this.tail=this.tail.substring(b.length),this.pos+=b.length,b},w.prototype.scanUntil=function(T){var A=this.tail.search(T),b;switch(A){case-1:b=this.tail,this.tail="";break;case 0:b="";break;default:b=this.tail.substring(0,A),this.tail=this.tail.substring(A)}return this.pos+=b.length,b};function F(v,T){this.view=v,this.cache={".":this.view},this.parent=T}F.prototype.push=function(T){return new F(T,this)},F.prototype.lookup=function(T){var A=this.cache,b;if(A.hasOwnProperty(T))b=A[T];else{for(var O=this,H,z,G=!1;O;){if(T.indexOf(".")>0)for(b=O.view,H=T.split("."),z=0;b!=null&&z"?ee=this.renderPartial(z,A,b,O):G==="&"?ee=this.unescapedValue(z,A):G==="name"?ee=this.escapedValue(z,A):G==="text"&&(ee=this.rawValue(z)),ee!==void 0&&(H+=ee);return H},q.prototype.renderSection=function(T,A,b,O){var H=this,z="",G=A.lookup(T[1]);function ee(ge){return H.render(ge,A,b)}if(G){if(o(G))for(var te=0,j=G.length;te`Invalid value for key ${e}`,nI=e=>`Pattern length exceeds max of ${e}.`,rI=e=>`Missing ${e} property in key`,oI=e=>`Property 'weight' in key '${e}' must be a positive integer`,iu=Object.prototype.hasOwnProperty;class sI{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=nf(r);this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function nf(e){let t=null,n=null,r=null,o=1,s=null;if(Qe(e)||pt(e))r=e,t=au(e),n=ai(e);else{if(!iu.call(e,"name"))throw new Error(rI("name"));const i=e.name;if(r=i,iu.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(oI(i));t=au(i),n=ai(i),s=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:s}}function au(e){return pt(e)?e:e.split(".")}function ai(e){return pt(e)?e.join("."):e}function iI(e,t){let n=[],r=!1;const o=(s,i,a)=>{if(De(s))if(!i[a])n.push(s);else{let c=i[a];const u=s[c];if(!De(u))return;if(a===i.length-1&&(Qe(u)||Zd(u)||Qw(u)))n.push(Jw(u));else if(pt(u)){r=!0;for(let l=0,d=u.length;le.score===t.score?e.idx{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Qe(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();Qe(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n{let i=o.getFn?o.getFn(t):this.getFn(t,o.path);if(De(i)){if(pt(i)){let a=[];const c=[{nestedArrIndex:-1,value:i}];for(;c.length;){const{nestedArrIndex:u,value:l}=c.pop();if(De(l))if(Qe(l)&&!Ns(l)){let d={v:l,i:u,n:this.norm.get(l)};a.push(d)}else pt(l)&&l.forEach((d,f)=>{c.push({nestedArrIndex:f,value:d})})}r.$[s]=a}else if(Qe(i)&&!Ns(i)){let a={v:i,n:this.norm.get(i)};r.$[s]=a}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function rf(e,t,{getFn:n=L.getFn,fieldNormWeight:r=L.fieldNormWeight}={}){const o=new Yi({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(nf)),o.setSources(t),o.create(),o}function pI(e,{getFn:t=L.getFn,fieldNormWeight:n=L.fieldNormWeight}={}){const{keys:r,records:o}=e,s=new Yi({getFn:t,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(o),s}function Kr(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=L.distance,ignoreLocation:s=L.ignoreLocation}={}){const i=t/e.length;if(s)return i;const a=Math.abs(r-n);return o?i+a/o:a?1:i}function mI(e=[],t=L.minMatchCharLength){let n=[],r=-1,o=-1,s=0;for(let i=e.length;s=t&&n.push([r,o]),r=-1)}return e[s-1]&&s-r>=t&&n.push([r,s-1]),n}const Pt=32;function hI(e,t,n,{location:r=L.location,distance:o=L.distance,threshold:s=L.threshold,findAllMatches:i=L.findAllMatches,minMatchCharLength:a=L.minMatchCharLength,includeMatches:c=L.includeMatches,ignoreLocation:u=L.ignoreLocation}={}){if(t.length>Pt)throw new Error(nI(Pt));const l=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let p=s,h=f;const g=a>1||c,y=g?Array(d):[];let C;for(;(C=e.indexOf(t,h))>-1;){let w=Kr(t,{currentLocation:C,expectedLocation:f,distance:o,ignoreLocation:u});if(p=Math.min(w,p),h=C+l,g){let F=0;for(;F=he;b-=1){let O=b-1,H=n[e.charAt(O)];if(g&&(y[O]=+!!H),T[b]=(T[b+1]<<1|1)&H,w&&(T[b]|=(k[b+1]|k[b])<<1|1|k[b+1]),T[b]&I&&(N=Kr(t,{errors:w,currentLocation:O,expectedLocation:f,distance:o,ignoreLocation:u}),N<=p)){if(p=N,h=O,h<=f)break;he=Math.max(1,2*f-h)}}if(Kr(t,{errors:w+1,currentLocation:f,expectedLocation:f,distance:o,ignoreLocation:u})>p)break;k=T}const _={isMatch:h>=0,score:Math.max(.001,N)};if(g){const w=mI(y,a);w.length?c&&(_.indices=w):_.isMatch=!1}return _}function gI(e){let t={};for(let n=0,r=e.length;ne.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class of{constructor(t,{location:n=L.location,threshold:r=L.threshold,distance:o=L.distance,includeMatches:s=L.includeMatches,findAllMatches:i=L.findAllMatches,minMatchCharLength:a=L.minMatchCharLength,isCaseSensitive:c=L.isCaseSensitive,ignoreDiacritics:u=L.ignoreDiacritics,ignoreLocation:l=L.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:s,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:c,ignoreDiacritics:u,ignoreLocation:l},t=c?t:t.toLowerCase(),t=u?po(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const d=(p,h)=>{this.chunks.push({pattern:p,alphabet:gI(p),startIndex:h})},f=this.pattern.length;if(f>Pt){let p=0;const h=f%Pt,g=f-h;for(;p{const{isMatch:k,score:N,indices:E}=hI(t,g,y,{location:s+C,distance:i,threshold:a,findAllMatches:c,minMatchCharLength:u,includeMatches:o,ignoreLocation:l});k&&(p=!0),f+=N,k&&E&&(d=[...d,...E])});let h={isMatch:p,score:p?f/this.chunks.length:1};return p&&o&&(h.indices=d),h}}class Ct{constructor(t){this.pattern=t}static isMultiMatch(t){return cu(t,this.multiRegex)}static isSingleMatch(t){return cu(t,this.singleRegex)}search(){}}function cu(e,t){const n=e.match(t);return n?n[1]:null}class _I extends Ct{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class yI extends Ct{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class EI extends Ct{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class bI extends Ct{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class SI extends Ct{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class TI extends Ct{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class sf extends Ct{constructor(t,{location:n=L.location,threshold:r=L.threshold,distance:o=L.distance,includeMatches:s=L.includeMatches,findAllMatches:i=L.findAllMatches,minMatchCharLength:a=L.minMatchCharLength,isCaseSensitive:c=L.isCaseSensitive,ignoreDiacritics:u=L.ignoreDiacritics,ignoreLocation:l=L.ignoreLocation}={}){super(t),this._bitapSearch=new of(t,{location:n,threshold:r,distance:o,includeMatches:s,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:c,ignoreDiacritics:u,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class af extends Ct{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],s=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+s,o.push([r,n-1]);const i=!!o.length;return{isMatch:i,score:i?0:1,indices:o}}}const ci=[_I,af,EI,bI,TI,SI,yI,sf],uu=ci.length,vI=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,AI="|";function wI(e,t={}){return e.split(AI).map(n=>{let r=n.trim().split(vI).filter(s=>s&&!!s.trim()),o=[];for(let s=0,i=r.length;s!!(e[mo.AND]||e[mo.OR]),OI=e=>!!e[di.PATH],xI=e=>!pt(e)&&ef(e)&&!fi(e),lu=e=>({[mo.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function cf(e,t,{auto:n=!0}={}){const r=o=>{let s=Object.keys(o);const i=OI(o);if(!i&&s.length>1&&!fi(o))return r(lu(o));if(xI(o)){const c=i?o[di.PATH]:s[0],u=i?o[di.PATTERN]:o[c];if(!Qe(u))throw new Error(tI(c));const l={keyId:ai(c),pattern:u};return n&&(l.searcher=li(u,t)),l}let a={children:[],operator:s[0]};return s.forEach(c=>{const u=o[c];pt(u)&&u.forEach(l=>{a.children.push(r(l))})}),a};return fi(e)||(e=lu(e)),r(e)}function kI(e,{ignoreFieldNorm:t=L.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:s,score:i})=>{const a=o?o.weight:null;r*=Math.pow(i===0&&a?Number.EPSILON:i,(a||1)*(t?1:s))}),n.score=r})}function NI(e,t){const n=e.matches;t.matches=[],De(n)&&n.forEach(r=>{if(!De(r.indices)||!r.indices.length)return;const{indices:o,value:s}=r;let i={indices:o,value:s};r.key&&(i.key=r.key.src),r.idx>-1&&(i.refIndex=r.idx),t.matches.push(i)})}function LI(e,t){t.score=e.score}function MI(e,t,{includeMatches:n=L.includeMatches,includeScore:r=L.includeScore}={}){const o=[];return n&&o.push(NI),r&&o.push(LI),e.map(s=>{const{idx:i}=s,a={item:t[i],refIndex:i};return o.length&&o.forEach(c=>{c(s,a)}),a})}class Pn{constructor(t,n={},r){this.options={...L,...n},this.options.useExtendedSearch,this._keyStore=new sI(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Yi))throw new Error(eI);this._myIndex=n||rf(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){De(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r-1&&(c=c.slice(0,n)),MI(c,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=li(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:s,i,n:a})=>{if(!De(s))return;const{isMatch:c,score:u,indices:l}=n.searchIn(s);c&&o.push({item:s,idx:i,matches:[{score:u,value:s,norm:a,indices:l}]})}),o}_searchLogical(t){const n=cf(t,this.options),r=(a,c,u)=>{if(!a.children){const{keyId:d,searcher:f}=a,p=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(c,d),searcher:f});return p&&p.length?[{idx:u,item:c,matches:p}]:[]}const l=[];for(let d=0,f=a.children.length;d{if(De(a)){let u=r(n,a,c);u.length&&(s[c]||(s[c]={idx:c,item:a,matches:[]},i.push(s[c])),u.forEach(({matches:l})=>{s[c].matches.push(...l)}))}}),i}_searchObjectList(t){const n=li(t,this.options),{keys:r,records:o}=this._myIndex,s=[];return o.forEach(({$:i,i:a})=>{if(!De(i))return;let c=[];r.forEach((u,l)=>{c.push(...this._findMatches({key:u,value:i[l],searcher:n}))}),c.length&&s.push({idx:a,item:i,matches:c})}),s}_findMatches({key:t,value:n,searcher:r}){if(!De(n))return[];let o=[];if(pt(n))n.forEach(({v:s,i,n:a})=>{if(!De(s))return;const{isMatch:c,score:u,indices:l}=r.searchIn(s);c&&o.push({score:u,key:t,value:s,idx:i,norm:a,indices:l})});else{const{v:s,n:i}=n,{isMatch:a,score:c,indices:u}=r.searchIn(s);a&&o.push({score:c,key:t,value:s,norm:i,indices:u})}return o}}Pn.version="7.1.0";Pn.createIndex=rf;Pn.parseIndex=pI;Pn.config=L;Pn.parseQuery=cf;RI(CI);function DI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var $o=DI,PI=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,uf=PI,FI=uf,UI=typeof self=="object"&&self&&self.Object===Object&&self,$I=FI||UI||Function("return this")(),Xi=$I,BI=Xi,VI=function(){return BI.Date.now()},jI=VI,HI=/\s/;function GI(e){for(var t=e.length;t--&&HI.test(e.charAt(t)););return t}var WI=GI,qI=WI,KI=/^\s+/;function zI(e){return e&&e.slice(0,qI(e)+1).replace(KI,"")}var YI=zI,XI=Xi,JI=XI.Symbol,lf=JI,du=lf,df=Object.prototype,QI=df.hasOwnProperty,ZI=df.toString,Yn=du?du.toStringTag:void 0;function e0(e){var t=QI.call(e,Yn),n=e[Yn];try{e[Yn]=void 0;var r=!0}catch{}var o=ZI.call(e);return r&&(t?e[Yn]=n:delete e[Yn]),o}var t0=e0,n0=Object.prototype,r0=n0.toString;function o0(e){return r0.call(e)}var s0=o0,fu=lf,i0=t0,a0=s0,c0="[object Null]",u0="[object Undefined]",pu=fu?fu.toStringTag:void 0;function l0(e){return e==null?e===void 0?u0:c0:pu&&pu in Object(e)?i0(e):a0(e)}var Bo=l0;function d0(e){return e!=null&&typeof e=="object"}var Vo=d0,f0=Bo,p0=Vo,m0="[object Symbol]";function h0(e){return typeof e=="symbol"||p0(e)&&f0(e)==m0}var g0=h0,_0=YI,mu=$o,y0=g0,hu=NaN,E0=/^[-+]0x[0-9a-f]+$/i,b0=/^0b[01]+$/i,S0=/^0o[0-7]+$/i,T0=parseInt;function v0(e){if(typeof e=="number")return e;if(y0(e))return hu;if(mu(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=mu(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_0(e);var n=b0.test(e);return n||S0.test(e)?T0(e.slice(2),n?2:8):E0.test(e)?hu:+e}var ff=v0,A0=$o,Ls=jI,gu=ff,w0="Expected a function",I0=Math.max,C0=Math.min;function R0(e,t,n){var r,o,s,i,a,c,u=0,l=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(w0);t=gu(t)||0,A0(n)&&(l=!!n.leading,d="maxWait"in n,s=d?I0(gu(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f);function p(_){var w=r,F=o;return r=o=void 0,u=_,i=e.apply(F,w),i}function h(_){return u=_,a=setTimeout(C,t),l?p(_):i}function g(_){var w=_-c,F=_-u,q=t-w;return d?C0(q,s-F):q}function y(_){var w=_-c,F=_-u;return c===void 0||w>=t||w<0||d&&F>=s}function C(){var _=Ls();if(y(_))return k(_);a=setTimeout(C,g(_))}function k(_){return a=void 0,f&&r?p(_):(r=o=void 0,i)}function N(){a!==void 0&&clearTimeout(a),u=0,r=c=o=a=void 0}function E(){return a===void 0?i:k(Ls())}function I(){var _=Ls(),w=y(_);if(r=arguments,o=this,c=_,w){if(a===void 0)return h(c);if(d)return clearTimeout(a),a=setTimeout(C,t),p(c)}return a===void 0&&(a=setTimeout(C,t)),i}return I.cancel=N,I.flush=E,I}var O0=R0;const x0=In(O0);function k0(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var pf=k0;function N0(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e-1&&e%1==0&&e<=hC}var _f=gC,_C=Bo,yC=_f,EC=Vo,bC="[object Arguments]",SC="[object Array]",TC="[object Boolean]",vC="[object Date]",AC="[object Error]",wC="[object Function]",IC="[object Map]",CC="[object Number]",RC="[object Object]",OC="[object RegExp]",xC="[object Set]",kC="[object String]",NC="[object WeakMap]",LC="[object ArrayBuffer]",MC="[object DataView]",DC="[object Float32Array]",PC="[object Float64Array]",FC="[object Int8Array]",UC="[object Int16Array]",$C="[object Int32Array]",BC="[object Uint8Array]",VC="[object Uint8ClampedArray]",jC="[object Uint16Array]",HC="[object Uint32Array]",re={};re[DC]=re[PC]=re[FC]=re[UC]=re[$C]=re[BC]=re[VC]=re[jC]=re[HC]=!0;re[bC]=re[SC]=re[LC]=re[TC]=re[MC]=re[vC]=re[AC]=re[wC]=re[IC]=re[CC]=re[RC]=re[OC]=re[xC]=re[kC]=re[NC]=!1;function GC(e){return EC(e)&&yC(e.length)&&!!re[_C(e)]}var WC=GC;function qC(e){return function(t){return e(t)}}var KC=qC,go={exports:{}};go.exports;(function(e,t){var n=uf,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===r,i=s&&n.process,a=function(){try{var c=o&&o.require&&o.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=a})(go,go.exports);var zC=go.exports,YC=WC,XC=KC,yu=zC,Eu=yu&&yu.isTypedArray,JC=Eu?XC(Eu):YC,QC=JC,ZC=J0,eR=aC,tR=Ji,nR=dC,rR=gf,oR=QC,sR=Object.prototype,iR=sR.hasOwnProperty;function aR(e,t){var n=tR(e),r=!n&&eR(e),o=!n&&!r&&nR(e),s=!n&&!r&&!o&&oR(e),i=n||r||o||s,a=i?ZC(e.length,String):[],c=a.length;for(var u in e)(t||iR.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||rR(u,c)))&&a.push(u);return a}var cR=aR,uR=Object.prototype;function lR(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||uR;return e===n}var dR=lR;function fR(e,t){return function(n){return e(t(n))}}var pR=fR,mR=pR,hR=mR(Object.keys,Object),gR=hR,_R=dR,yR=gR,ER=Object.prototype,bR=ER.hasOwnProperty;function SR(e){if(!_R(e))return yR(e);var t=[];for(var n in Object(e))bR.call(e,n)&&n!="constructor"&&t.push(n);return t}var TR=SR,vR=Bo,AR=$o,wR="[object AsyncFunction]",IR="[object Function]",CR="[object GeneratorFunction]",RR="[object Proxy]";function OR(e){if(!AR(e))return!1;var t=vR(e);return t==IR||t==CR||t==wR||t==RR}var xR=OR,kR=xR,NR=_f;function LR(e){return e!=null&&NR(e.length)&&!kR(e)}var yf=LR,MR=cR,DR=TR,PR=yf;function FR(e){return PR(e)?MR(e):DR(e)}var Ef=FR;const tx=In(Ef);var UR=Y0,$R=Ef;function BR(e){return e==null?[]:UR(e,$R(e))}var bf=BR;const nx=In(bf);var VR=pf,jR=mf,HR=bf;function GR(e,t){var n=HR(e);return jR(n,VR(t,0,n.length))}var WR=GR;function qR(e,t){return e===t||e!==e&&t!==t}var KR=qR,zR=KR,YR=yf,XR=gf,JR=$o;function QR(e,t,n){if(!JR(n))return!1;var r=typeof t;return(r=="number"?YR(n)&&XR(t,n.length):r=="string"&&t in n)?zR(n[t],e):!1}var ZR=QR,eO=ff,tO=1/0,nO=17976931348623157e292;function rO(e){if(!e)return e===0?e:0;if(e=eO(e),e===tO||e===-1/0){var t=e<0?-1:1;return t*nO}return e===e?e:0}var oO=rO,sO=oO;function iO(e){var t=sO(e),n=t%1;return t===t?n?t-n:t:0}var aO=iO,cO=G0,uO=WR,lO=Ji,dO=ZR,fO=aO;function pO(e,t,n){(n?dO(e,t,n):t===void 0)?t=1:t=fO(t);var r=lO(e)?cO:uO;return r(e,t)}var mO=pO;const hO=In(mO),Qi=`
  • {{name}}
    {{name}}
    Service
  • `,gO=`
  • {{term}}
  • `,Sf=e=>`search_history:${e}`,_O=4,yO=10,_o=()=>{var e;return(e=window.App.user)!=null&&e.id?Dn(Sf(window.App.user.id))||[]:[]},oo=({type:e,term:t,details:n})=>{var r;return!((r=window.App.user)!=null&&r.id)||t===""||t.length<_O?[]:Tf({type:e,term:t,details:n})},rx=({type:e,term:t,details:n})=>{var r;return!((r=window.App.user)!=null&&r.id)||t===""?[]:Tf({type:e,term:t,details:n})},Tf=({type:e,term:t,details:n})=>{const r=Sf(window.App.user.id),o={type:e,term:t,details:n};let s=_o();return s.length===0?s.push(o):(s.unshift(o),s=EO(s).slice(0,yO)),dt(s,r),dispatchEvent(new CustomEvent("search-history:updated",{})),s},EO=e=>{const t=new Map;return e.forEach(n=>{const r=n.term.toLowerCase(),o=t.get(r);o?n.type==="service"&&o.type==="search"&&t.set(r,n):t.set(r,n)}),Array.from(t.values())},vf=e=>e.dataset.moduleName?{type:"service",term:e.dataset.term,details:{name:e.dataset.term,brand_color:e.dataset.brandColor,module_name:e.dataset.moduleName,image:e.dataset.image}}:{type:"search",term:e.dataset.term},{addListener:bO,cleanup:bu}=mi(),pi=4,Af=()=>{const e=_o().slice(0,pi),t=n=>{document.querySelectorAll(".recent-searches").forEach(r=>{if(n.length>0){r.classList.remove("hide");const o=r.querySelector("ul.universal-search-helper-list");if(!o)return;o.innerHTML="",n.forEach(({type:s,term:i,details:a})=>{const c={term:i,query_term:i.toLowerCase(),...a},u=zi.render(s==="service"?Qi:gO,c);o.insertAdjacentHTML("beforeend",u)})}else r.classList.add("hide")})};document.querySelector("#explore-search")&&bO(window,"search-history:updated",()=>{t(_o().slice(0,pi))}),t(e),bu.withPageRestore(()=>{Af()}),window.addEventListener("beforeunload",bu)},SO=(e,t)=>{const n=e.filter(o=>o.recommended),r=hO(n,t);r.forEach(o=>{const s=document.createElement("link");s.rel="preload",s.as="image",s.href=o.image,document.head.appendChild(s)}),document.querySelectorAll(".recommended-services > ul.universal-search-helper-list").forEach(o=>{o.innerHTML="",r.forEach(s=>{const i=zi.render(Qi,s);o.insertAdjacentHTML("beforeend",i)})})},TO=async()=>{var i,a;const e=8-(_o().slice(0,pi).length||0);let t=[];const n="recommended-services-cache",r="/explore/services.json",o=async c=>{c.ok&&(t=await c.json(),SO(t,e))},s=async()=>{try{const c=await caches.open(n),u=await c.match(r);if(u){await o(u);return}const l=await fetch(r);if(l.ok){const d=l.clone();await c.put(r,d),await o(l);return}throw new Error(`Network response not ok: ${l.status}`)}catch{const u=await fetch(r);await o(u)}};try{await s()}catch(c){(a=(i=window.App)==null?void 0:i.Sentry)==null||a.captureException(c,{tags:{component:"RecommendedServices",action:"fetch"}})}return t},vO=e=>{if(!e)return;const t=e.querySelector("input");if(!t)return;let n=-1;const r=()=>{const u=t.value.trim()?".search-preview li, a.search-navigation":".default-recommendations li";return Array.from(e.querySelectorAll(u))},o=c=>{const u=r();e.querySelectorAll(".universal-search-helper .highlighted").forEach(l=>l.classList.remove("highlighted")),c>=0&&c{const u=r();if(u.length===0)return;let l;c==="up"?l=n<=0?u.length-1:n-1:l=n===-1||n>=u.length-1?0:n+1,o(l)},i=()=>{const c=r();if(n>=0&&n{n=-1,o(-1)};t.addEventListener("input",a),t.addEventListener("keydown",c=>{switch(c.key){case"ArrowUp":c.preventDefault(),s("up");break;case"ArrowDown":c.preventDefault(),s("down");break;case"Enter":n>=0&&(c.preventDefault(),i());break;case"Escape":c.preventDefault(),a();break}})},{addListener:Xe,cleanup:Su}=mi(),AO=async()=>{var g,y;const e=document.querySelector("#universal-search");if(!e)return;(g=e.parentElement)==null||g.removeAttribute("style"),(y=e.querySelector(".universal-search-helper"))==null||y.removeAttribute("style");const t=e.querySelector("input"),n=e.querySelector(".search-preview > ul");Af();const r=await TO();vO(e);const o=new Pn(r,{includeScore:!0,threshold:.3,keys:["name"]}),s=C=>{const k=C,N=k.target.value.trim();if(N&&k.key==="Enter"){window.App.Utils.logCustomDatadogAction("universal_search_trigger_via_enter",{term:N});const E=r.find(I=>I.name.toLowerCase()===N.toLowerCase()||I.module_name.toLowerCase()===N.toLowerCase());E?(oo({type:"service",term:N,details:{name:E.name,brand_color:E.brand_color,module_name:E.module_name,image:E.image}}),window.location.assign(`/${E.module_name}`)):(oo({type:"search",term:N}),window.location.assign(`/search/query/${encodeURIComponent(N.toLowerCase())}`))}},i=C=>k=>{const N=k.target.value.trim();if(!N)return;const E=o.search(N).slice(0,12);C&&(C.innerHTML="",E.forEach(I=>{const _=zi.render(Qi,I.item);C.insertAdjacentHTML("beforeend",_)}))},a=C=>{const k=C.target.closest("li > a"),N=vf(k);oo(N),t.value.trim()?window.App.Utils.logCustomDatadogAction("universal_search_service_filter_clicked",{service:k.dataset.term}):N.type==="search"?window.App.Utils.logCustomDatadogAction("universal_search_recent_searches_clicked",{term:k.dataset.term}):window.App.Utils.logCustomDatadogAction("universal_search_recommended_service_clicked",{service:k.dataset.term})},c=x0(i(n),100);Xe(t,"input",c),Xe(t,"keydown",s);const u=e.querySelector(".recent-searches");u&&Xe(u,"click",a);const l=e.querySelector(".recommended-services");l&&Xe(l,"click",a);const d=e.querySelector(".search-preview");d&&Xe(d,"click",a);const f=e.querySelector("a.search-navigation");f&&Xe(f,"click",()=>{window.App.Utils.logCustomDatadogAction("universal_search_trigger_via_navigation_link",{term:t==null?void 0:t.value.trim()})}),Xe(t,"focus",()=>{window.App.Utils.logCustomDatadogAction("universal_search_click_search_bar")});const p=document.querySelector("span.mobile-icon-search");p&&Xe(p,"click",()=>{document.body.classList.add("mobile-universal-search-enabled"),t==null||t.focus(),window.App.Utils.logCustomDatadogAction("mobile_universal_search_view")});const h=document.querySelector(".mobile-close-search-icon");h&&Xe(h,"click",()=>{document.body.classList.remove("mobile-universal-search-enabled"),t==null||t.blur()}),Xe(window,"scroll",()=>{document.body.classList.contains("mobile-universal-search-enabled")&&(t==null||t.blur())}),Su.withPageRestore(()=>{t&&(t.value="",t.dispatchEvent(new Event("input",{bubbles:!0}))),n&&(n.innerHTML=""),AO()}),window.addEventListener("beforeunload",Su)};export{Xi as $,TO as A,oo as B,vf as C,_O as D,rx as E,Pn as F,WO as G,eS as H,Ji as I,nx as J,ex as K,ZR as L,zi as M,tx as N,DO as O,O0 as P,bf as Q,XO as R,vO as S,yf as T,q0 as U,YO as V,KR as W,Ef as X,dR as Y,cR as Z,Bo as _,Lf as a,pR as a0,lf as a1,L0 as a2,dC as a3,gf as a4,oO as a5,YI as a6,g0 as a7,xR as a8,QC as a9,_f as aa,aC as ab,TR as ac,LO as ad,CO as ae,HO as af,Nb as ag,Rw as ah,jO as ai,PO as aj,Yw as ak,AO as al,FO as am,QO as an,ZO as ao,JO as ap,oS as aq,Nv as ar,VO as as,MO as at,RO as au,zC as b,GO as c,KC as d,$o as e,_a as f,x0 as g,qO as h,Vo as i,ii as j,BO as k,Dn as l,rv as m,NO as n,kO as o,IO as p,xO as q,KO as r,dt as s,aO as t,OO as u,zO as v,$O as w,UO as x,mi as y,Af as z}; //# sourceMappingURL=header-CguoQ-HR.js.map