(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{62705:function(t,e,n){var r=n(55639).Symbol;t.exports=r},44239:function(t,e,n){var r=n(62705),i=n(89607),o=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},27561:function(t,e,n){var r=n(67990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},31957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},89607:function(t,e,n){var r=n(62705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},55639:function(t,e,n){var r=n(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},67990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},23279:function(t,e,n){var r=n(13218),i=n(7771),o=n(14841),a=Math.max,s=Math.min;t.exports=function(t,e,n){var c,l,d,f,p,m,h=0,g=!1,v=!1,y=!0;if("function"!=typeof t)throw TypeError("Expected a function");function invokeFunc(e){var n=c,r=l;return c=l=void 0,h=e,f=t.apply(r,n)}function shouldInvoke(t){var n=t-m,r=t-h;return void 0===m||n>=e||n<0||v&&r>=d}function timerExpired(){var t,n,r,o=i();if(shouldInvoke(o))return trailingEdge(o);p=setTimeout(timerExpired,(t=o-m,n=o-h,r=e-t,v?s(r,d-n):r))}function trailingEdge(t){return(p=void 0,y&&c)?invokeFunc(t):(c=l=void 0,f)}function debounced(){var t,n=i(),r=shouldInvoke(n);if(c=arguments,l=this,m=n,r){if(void 0===p)return h=t=m,p=setTimeout(timerExpired,e),g?invokeFunc(t):f;if(v)return clearTimeout(p),p=setTimeout(timerExpired,e),invokeFunc(m)}return void 0===p&&(p=setTimeout(timerExpired,e)),f}return e=o(e)||0,r(n)&&(g=!!n.leading,d=(v="maxWait"in n)?a(o(n.maxWait)||0,e):d,y="trailing"in n?!!n.trailing:y),debounced.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=m=l=p=void 0},debounced.flush=function(){return void 0===p?f:trailingEdge(i())},debounced}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},14841:function(t,e,n){var r=n(27561),i=n(13218),o=n(33448),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=c.test(t);return n||l.test(t)?d(t.slice(2),n?2:8):s.test(t)?a:+t}},91118:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(83040)}])},28144:function(t,e,n){"use strict";n.d(e,{Ht:function(){return o},et:function(){return a},lB:function(){return c},oZ:function(){return l}});var r,i=n(248),percent=function(t,e){return Math.round(t*e/100)},darken=function(t,e){return Object.assign(Object.assign({},t),{l:t.l-percent(t.l,e)})},alpha=function(t,e){return Object.assign(Object.assign({},t),{a:e})},o={red:{h:11,s:80,l:45,a:1},blurpleLight:{h:240,s:83.3,l:95.3,a:1},blurpleMedium:{h:242,s:81,l:87.6,a:1},blurple:{h:242,s:88.4,l:66.3,a:1},blurpleDark:{h:242,s:87.6,l:62,a:1},offWhite:{h:45,s:36.4,l:95.7,a:1},blueLight:{h:206,s:58.3,l:85.9,a:1},blue:{h:206,s:100,l:73.3,a:1},blueDark:{h:206,s:29.5,l:33.9,a:1},orangeLight:{h:6,s:100,l:89.6,a:1},orange:{h:11,s:100,l:62.2,a:1},orangeDark:{h:11,s:79.9,l:64.9,a:1},tealLight:{h:180,s:20,l:67.6,a:1},teal:{h:180,s:51.4,l:51.6,a:1},tealDark:{h:180,s:16.2,l:22.9,a:1},yellowLight:{h:39,s:100,l:87.8,a:1},yellow:{h:50,s:100,l:57.3,a:1},yellowDark:{h:39,s:100,l:68,a:1}},a={grey8:{h:0,s:0,l:13,a:1},grey7:{h:246,s:16,l:26,a:1},grey6:{h:252,s:13,l:46,a:1},grey5:{h:240,s:7,l:62,a:1},grey4:{h:259,s:12,l:75,a:1},grey3:{h:260,s:11,l:85,a:1},grey2:{h:260,s:11,l:95,a:1},grey1:{h:240,s:7,l:97,a:1},white:{h:0,s:0,l:100,a:1}},s={focusRing:alpha(o.blurple,.5),record:o.orange,recordHover:darken(o.orange,15.8),recordActive:darken(o.orange,31.6),info:o.blue,success:o.teal,warning:o.yellowDark,danger:o.red,dangerHover:darken(o.red,15.8),dangerActive:darken(o.red,31.6),backdrop:alpha(a.grey8,.5),backdropDark:alpha(a.grey8,.9),backdropTwilight:alpha({h:245,s:44.8,l:46.9,a:1},.8),disabledContent:a.grey5,highlight:{h:o.blurpleLight.h,s:o.blurpleLight.s,l:66.3,a:.15}},c={light:Object.assign(Object.assign({primary:o.blurple,primaryHover:darken(o.blurple,15.8),primaryActive:darken(o.blurple,31.6),body:a.grey8,bodyDimmed:a.grey6,background:a.white,backgroundHover:alpha(a.grey7,.1),backgroundActive:alpha(a.grey7,.3),backgroundSecondary:alpha(a.grey7,.04),backgroundSecondary2:{h:45,s:34,l:78,a:.2},overlay:a.white,border:alpha(a.grey6,.2)},s),{disabledBackground:a.grey2,formFieldBorder:a.grey3,formFieldBackground:a.white,buttonBorder:alpha(a.grey6,.25),upgrade:{h:206,s:100,l:93,a:1},upgradeHover:darken({h:206,s:100,l:93,a:1},9),upgradeActive:darken({h:206,s:100,l:93,a:1},17),tabBackground:alpha(a.grey6,.15),discoveryBackground:{h:206,s:100,l:93,a:1},discoveryLightBackground:{h:206,s:100,l:97,a:1},discoveryTitle:a.grey8,discoveryHighlight:{h:206,s:100,l:77,a:.3}}),dark:Object.assign(Object.assign({primary:{h:242,s:87,l:73,a:1},primaryHover:darken(o.blurple,15.8),primaryActive:darken(o.blurple,31.6),body:a.grey1,bodyDimmed:a.grey5,background:a.grey8,backgroundHover:alpha(a.white,.1),backgroundActive:alpha(a.white,.2),backgroundSecondary:alpha(a.white,.04),backgroundSecondary2:{h:45,s:13,l:44,a:.2},overlay:Object.assign(Object.assign({},r=a.grey8),{l:r.l+percent(r.l,50)}),border:alpha(a.grey4,.2)},s),{disabledBackground:darken(a.grey6,50),formFieldBorder:a.grey6,formFieldBackground:a.grey8,buttonBorder:alpha(a.white,.25),upgrade:{h:206,s:92,l:81,a:1},upgradeHover:darken({h:206,s:92,l:81,a:1},9),upgradeActive:darken({h:206,s:92,l:81,a:1},17),tabBackground:alpha(a.white,.15),discoveryBackground:{h:206,s:92,l:81,a:1},discoveryLightBackground:a.grey8,discoveryTitle:o.blue,discoveryHighlight:{h:206,s:100,l:77,a:.3}})},l=Object.assign(Object.assign({},o),a);(0,i._)(Object.keys(l)).concat((0,i._)(Object.keys(c.light)))},36086:function(t,e,n){"use strict";n.d(e,{nl:function(){return i.nl},hb:function(){return i.hb},Rv:function(){return getColorValue},yb:function(){return getFocusRing},On:function(){return getFontWeight},H5:function(){return getRadius},$C:function(){return i.$C},W1:function(){return i.W1},Xj:function(){return getShadow},ap:function(){return o.a},TX:function(){return o.T},y3:function(){return getTextSize},u:function(){return o.u}});var r=n(28144),getColorValue=function(t){if(t)return t in r.oZ||t in r.lB.light?"var(--lns-color-".concat(t,")"):t},i=n(97246),o=n(55657),getTextSize=function(t){return t&&"\n font-size: var(--lns-fontSize-".concat(t,");\n line-height: var(--lns-lineHeight-").concat(t,");\n")},getRadius=function(t){return t&&"border-radius: var(--lns-radius-".concat(t,");")},getFontWeight=function(t){return t&&"font-weight: var(--lns-fontWeight-".concat(t,");")},getShadow=function(t){return t&&"box-shadow: var(--lns-shadow-".concat(t,");")},getFocusRing=function(t,e){var n=t||getColorValue("focusRing");return"box-shadow:".concat(e||""," 0 0 0 2px ").concat(n,";")}},97246:function(t,e,n){"use strict";n.d(e,{nl:function(){return arrayToBreakpoints},hb:function(){return getAlignmentStyles},$C:function(){return getResponsiveBoolean},Uw:function(){return getResponsiveGridSections},W1:function(){return getResponsiveOneOf},$n:function(){return objectToBreakpoints}});var r=n(24043),i=n(62290),o=n(55657);n(23279),n(67294);var getMediaCss=function(t,e,n){return"@media(".concat(t,": ").concat(e,"){").concat(n,"}")},arrayToBreakpoints=function(t){return getMediaCss("max-width",Object.values(i.AV)[0],t[0])+t.reduce(function(t,e,n){return t+getMediaCss("min-width","".concat(Object.values(i.AV)[n]),e)},"")},objectToBreakpoints=function(t,e){var n=[];return e.default&&n.push("".concat(t,": ").concat(e.default,";")),delete e.default,Object.entries(e).forEach(function(e){var o=(0,r._)(e,2),a=o[0],s=o[1],c=a in i.AV?i.AV[a]:a;n.push("@media(min-width: ".concat(c,"){ ").concat(t,": ").concat(s," }"))}),n.join(" ")},getResponsiveOneOf=function(t,e){return Array.isArray(e)?arrayToBreakpoints(e.map(function(e){return"".concat(t,": ").concat(e,";")})):"object"==typeof e?objectToBreakpoints(t,e):"".concat(t,": ").concat(e,";")},getAlignmentStyles=function(t,e){if(t){if(Array.isArray(t)){var n=[];return t.map(function(t){n.push(e[t])}),getResponsiveOneOf("align-items",n)}return"align-items ".concat(e[t],";")}},getResponsiveBoolean=function(t,e,n){return Array.isArray(n)?arrayToBreakpoints(n.map(function(n){var r=!0===n?e[0]:e[1];return"".concat(t,": ").concat(r,";")})):"".concat(t,": ").concat(e[0],";")},transformColumns=function(t){return Array.isArray(t)?t.map(function(t){return(0,o.T)(t)}).join(" "):t},getResponsiveGridSections=function(t,e){if(t){if("object"==typeof t&&!Array.isArray(t)){var n={};return Object.entries(t).forEach(function(t){var e=(0,r._)(t,2),i=e[0],o=e[1];return n[i]=transformColumns(o)}),objectToBreakpoints("grid-template-".concat(e),n)}return"grid-template-".concat(e,": ").concat(transformColumns(t),";")}}},55657:function(t,e,n){"use strict";n.d(e,{T:function(){return getSizeValue},a:function(){return getSize},u:function(){return u}});var r=n(24043),i=n(36086),o=n(62290),a=n(97246),u=function(t){return t&&"calc(".concat(t," * var(--lns-unit, ").concat(o.bf,"px))")},getSizeValue=function(t){return t in o.RZ?"var(--lns-space-".concat(t,")"):t&&isNaN(t)?"".concat(t):0===t?"0":t?"".concat(u(t)):void 0},getSize=function(t,e){if(e||0===e){if(Array.isArray(e)){var n=e.map(function(e){return"".concat(t,": ").concat(getSizeValue(e))});return(0,i.nl)(n)}if("object"==typeof e){var o={};return Object.entries(e).forEach(function(t){var e=(0,r._)(t,2),n=e[0],i=e[1];return o[n]=getSizeValue(i)}),(0,a.$n)(t,o)}return"".concat(t,": ").concat(getSizeValue(e),";")}}},62290:function(t,e,n){"use strict";n.d(e,{AV:function(){return d},RZ:function(){return l},bf:function(){return i},iH:function(){return o},pD:function(){return s},q:function(){return c},vC:function(){return a}});var r=n(36086),i=8,o={small:{fontSize:1.5,lineHeight:1.5},"body-sm":{fontSize:1.5,lineHeight:1.5},medium:{fontSize:1.75,lineHeight:1.6},"body-md":{fontSize:1.75,lineHeight:1.6},large:{fontSize:2.25,lineHeight:1.45},"body-lg":{fontSize:2.25,lineHeight:1.45},xlarge:{fontSize:3,lineHeight:1.35},"heading-sm":{fontSize:3,lineHeight:1.35},xxlarge:{fontSize:4,lineHeight:1.2},"heading-md":{fontSize:4,lineHeight:1.2},xxxlarge:{fontSize:6,lineHeight:1.15},"heading-lg":{fontSize:6,lineHeight:1.15}},a={book:400,bold:700},s={medium:(0,r.u)(1),large:(0,r.u)(2),xlarge:(0,r.u)(3),full:(0,r.u)(999)},c={small:"0 ".concat((0,r.u)(.5)," ").concat((0,r.u)(1.25)," hsla(0, 0%, 0%, 0.05)"),medium:"0 ".concat((0,r.u)(.5)," ").concat((0,r.u)(1.25)," hsla(0, 0%, 0%, 0.1)"),large:"0 ".concat((0,r.u)(.75)," ").concat((0,r.u)(3)," hsla(0, 0%, 0%, 0.1)")},l={xsmall:.5,small:1,medium:2,large:3,xlarge:5,xxlarge:8},d={xsmall:"31em",small:"48em",medium:"64em",large:"75em"}},76815:function(t,e,n){"use strict";n.d(e,{B3:function(){return l},M$:function(){return i},Ss:function(){return s},Uc:function(){return a},cZ:function(){return o},td:function(){return c}});var r,i="production";r=window.location.hostname;var o="production"===i,a="stage.loom.com"===r,s="preview"===i,c="development"===i,l=window.location.toString().includes("stage.loom.com")?"https://stage.loom.com/graphql":"https://mulligan.indiedemos.com/graphql"},25419:function(t,e,n){"use strict";n.d(e,{cA:function(){return PageBgColorProvider},sW:function(){return usePageBgColor}});var r=n(24043),i=n(85893),o=n(67294),a=(0,o.createContext)({color:"bg-grey-7",setColor:function(){}});function PageBgColorProvider(t){var e=t.children,n=(0,r._)((0,o.useState)(""),2),s=n[0],c=n[1];return(0,o.useEffect)(function(){c(a)},[]),(0,i.jsx)(a.Provider,{value:{color:s,setColor:c},children:e})}a.displayName="PageBgColor";var usePageBgColor=function(){var t=(0,o.useContext)(a);return{color:t.color,setColor:t.setColor}}},83040:function(t,e,n){"use strict";n.r(e),n.d(e,{MyApp:function(){return MyApp},default:function(){return eV}});var r,i,o,a,s,c,l,d,f,p,m,h,g,v,y,b,_,S,w,E,C,T,k,x,A,O,N,R,I,L,M,P,U,D,F,z,B=n(72253),V=n(85893);n(54902),n(70041);var j={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},H=console,q={};Object.keys(j).forEach(function(t){q[t]=H[t]});var W="Datadog Browser SDK:",G={debug:q.debug.bind(H,W),log:q.log.bind(H,W),info:q.info.bind(H,W),warn:q.warn.bind(H,W),error:q.error.bind(H,W)};function catchUserErrors(t,e){return function(){for(var n=[],r=0;r=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o"}finally{r(),i(),o(),a()}}function detachToJsonMethod(t){var e=t.toJSON;return e?(delete t.toJSON,function(){t.toJSON=e}):noop}function sanitize(t,e){void 0===e&&(e=225280);var n,r=detachToJsonMethod(Object.prototype),i=detachToJsonMethod(Array.prototype),o=[],a=new WeakMap,s=sanitizeProcessor(t,"$",void 0,o,a),c=(null===(n=JSON.stringify(s))||void 0===n?void 0:n.length)||0;if(c>e){warnOverCharacterLimit(e,"discarded",t);return}for(;o.length>0&&ce){warnOverCharacterLimit(e,"truncated",t);break}l.target[f]=p}else for(var f in l.source)if(Object.prototype.hasOwnProperty.call(l.source,f)){var p=sanitizeProcessor(l.source[f],l.path,f,o,a);if(void 0!==p&&(c+=JSON.stringify(p).length+d+f.length+3,d=1),c>e){warnOverCharacterLimit(e,"truncated",t);break}l.target[f]=p}}return r(),i(),s}function sanitizeProcessor(t,e,n,r,i){var o=function(t){if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(t){}return t}(t);if(!o||"object"!=typeof o)return"bigint"==typeof o?"[BigInt] ".concat(o.toString()):"function"==typeof o?"[Function] ".concat(o.name||"unknown"):"symbol"==typeof o?"[Symbol] ".concat(o.description||o.toString()):o;var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"[".concat(e[1],"]")}catch(t){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(i.has(t))return"[Reference seen at ".concat(i.get(t),"]");var s=void 0!==n?"".concat(e,".").concat(n):e,c=Array.isArray(o)?[]:{};return i.set(t,s),r.push({source:o,target:c,path:s}),c}function warnOverCharacterLimit(t,e,n){G.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var X=function(){function Observable(t){this.onFirstSubscribe=t,this.observers=[]}return Observable.prototype.subscribe=function(t){var e=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(t),{unsubscribe:function(){e.observers=e.observers.filter(function(e){return t!==e}),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},Observable.prototype.notify=function(t){this.observers.forEach(function(e){return e(t)})},Observable}();function mergeObservables(){for(var t=[],e=0;e3072&&(G.warn("The ".concat(J[e]," data exceeds the recommended ").concat(3,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-3kib-warning")),!0)}function createContextManager(t,e){void 0===e&&(e=computeBytesCount);var n,r={},i=!1,o=new X,a=throttle(function(r){n=e(jsonStringify(r)),i||(i=warnIfCustomerDataLimitReached(n,t))},200).throttled,s={getBytesCount:function(){return n},get:function(){return r},add:function(t,e){r[t]=e,a(r),o.notify()},remove:function(t){delete r[t],a(r),o.notify()},set:function(t){a(r=t),o.notify()},getContext:function(){return deepClone(r)},setContext:function(t){"object"===getType(t)?a(r=sanitize(t)):s.clearContext(),o.notify()},setContextProperty:function(t,e){r[t]=sanitize(e),a(r),o.notify()},removeContextProperty:function(t){delete r[t],a(r),o.notify()},clearContext:function(){r={},n=0,o.notify()},changeObservable:o};return s}var Y=function(){function BoundedBuffer(){this.buffer=[]}return BoundedBuffer.prototype.add=function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},BoundedBuffer.prototype.drain=function(){this.buffer.forEach(function(t){return t()}),this.buffer.length=0},BoundedBuffer}();function performDraw(t){return 0!==t&&100*Math.random()<=t}function round(t,e){return+t.toFixed(e)}function isPercentage(t){return isNumber(t)&&t>=0&&t<=100}function isNumber(t){return"number"==typeof t}function relativeToClocks(t){var e;return{relative:t,timeStamp:(e=dateNow()-performance.now())>getNavigationStart()?Math.round(e+t):Math.round(getNavigationStart()+t)}}function toServerDuration(t){return isNumber(t)?round(1e6*t,0):t}function dateNow(){return new Date().getTime()}function timeStampNow(){return dateNow()}function relativeNow(){return performance.now()}function clocksNow(){return{relative:relativeNow(),timeStamp:timeStampNow()}}function clocksOrigin(){return{relative:0,timeStamp:getNavigationStart()}}function getNavigationStart(){return void 0===v&&(v=performance.timing.navigationStart),v}function generateUUID(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,generateUUID)}function findCommaSeparatedValue(t,e){var n=new RegExp("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)")).exec(t);return n?n[1]:void 0}function safeTruncate(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?t:"".concat(t.slice(0,i)).concat(n)}function setCookie(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",c=r&&r.secure?";secure":"";document.cookie="".concat(t,"=").concat(e,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(c)}function getCookie(t){return findCommaSeparatedValue(document.cookie,t)}function deleteCookie(t,e){setCookie(t,"",0,e)}function willSyntheticsInjectRum(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||getCookie("datadog-synthetics-injects-rum"))}function getEventBridge(){var t=getGlobalObject().DatadogEventBridge;if(t)return{getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n){t.send(JSON.stringify({eventType:e,event:n}))}}}function canUseEventBridge(t){void 0===t&&(t=null===(e=getGlobalObject().location)||void 0===e?void 0:e.hostname);var e,n=getEventBridge();return!!n&&n.getAllowedWebViewHosts().some(function(e){var n,r;return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r)})}function addEventListener(t,e,n,r,i){return addEventListeners(t,e,[n],r,i)}function addEventListeners(t,e,n,r,i){var o=void 0===i?{}:i,a=o.once,s=o.capture,c=o.passive,l=monitor(a?function(t){stop(),r(t)}:r),d=c?{capture:s,passive:c}:s,f=getZoneJsOriginalValue(e,"addEventListener");function stop(){var t=getZoneJsOriginalValue(e,"removeEventListener");n.forEach(function(n){return t.call(e,n,l,d)})}return n.forEach(function(t){return f.call(e,t,l,d)}),{stop:stop}}var $=[];function createStoredContextManager(t,e,n,r){void 0===r&&(r=computeBytesCount);var i="".concat("_dd_c","_").concat(e,"_").concat(n),o=createContextManager(n,r);return synchronizeWithStorage(),$.push(addEventListener(t,window,"storage",function(t){i===t.key&&synchronizeWithStorage()})),o.changeObservable.subscribe(function(){localStorage.setItem(i,JSON.stringify(o.getContext()))}),o;function synchronizeWithStorage(){var t=localStorage.getItem(i),e=null!==t?JSON.parse(t):{};o.setContext(e)}}function computeStackTrace(t){var e=[],n=tryToGetString(t,"stack"),r=String(t);return n&&startsWith(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(function(t){var n=function(t){var e=te.exec(t);if(e){var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=tn.exec(e[2]);return r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}}(t)||function(t){var e=tr.exec(t);if(e)return{args:[],column:e[3]?+e[3]:void 0,func:"?",line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=ti.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:+e[3],url:e[2]}}(t)||function(t){var e=to.exec(t);if(e){var n=e[3]&&e[3].indexOf(" > eval")>-1,r=ta.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||"?",line:e[4]?+e[4]:void 0,url:e[3]}}}(t);n&&(!n.func&&n.line&&(n.func="?"),e.push(n))}),{message:tryToGetString(t,"message"),name:tryToGetString(t,"name"),stack:e}}var Q="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",tt="(?::(\\d+))",te=RegExp("^\\s*at (.*?) ?\\(".concat(Q).concat(tt,"?").concat(tt,"?\\)?\\s*$"),"i"),tn=new RegExp("\\((\\S*)".concat(tt).concat(tt,"\\)")),tr=RegExp("^\\s*at ?".concat(Q).concat(tt,"?").concat(tt,"??\\s*$"),"i"),ti=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,to=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ta=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function tryToGetString(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var ts="No stack, consider using an instance of Error";function computeRawError(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,c=n instanceof Error,l=(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:c?"Empty message":"".concat(o," ").concat(jsonStringify(sanitize(n))),d=void 0!==e&&(c||e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url))?toStackTraceString(e):ts,f=c?function(t,e){for(var n=t,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var i=computeStackTrace(n.cause);r.push({message:n.cause.message,source:e,type:null==i?void 0:i.name,stack:i&&toStackTraceString(i)}),n=n.cause}return r.length?r:void 0}(n,a):void 0,p=null==e?void 0:e.name,m=tryToGetFingerprint(n);return{startClocks:i,source:a,handling:s,handlingStack:r,originalError:n,type:p,message:l,stack:d,causes:f,fingerprint:m}}function tryToGetFingerprint(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function toStackTraceString(t){var e=formatErrorMessage(t);return t.stack.forEach(function(t){var n="?"===t.func?"":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",i=t.line?":".concat(t.line):"",o=t.line&&t.column?":".concat(t.column):"";e+="\n at ".concat(n).concat(r," @ ").concat(t.url).concat(i).concat(o)}),e}function formatErrorMessage(t){return"".concat(t.name||"Error",": ").concat(t.message)}function createHandlingStack(){var t,e=Error();if(!e.stack)try{throw e}catch(t){}return callMonitored(function(){var n=computeStackTrace(e);n.stack=n.stack.slice(2),t=toStackTraceString(n)}),t}function sanitizeUser(t){var e=polyfills_assign({},t);return["id","name","email"].forEach(function(t){t in e&&(e[t]=String(e[t]))}),e}(r=b||(b={})).PAGEHIDE="pagehide",r.FEATURE_FLAGS="feature_flags",r.RESOURCE_PAGE_STATES="resource_page_states",r.PAGE_STATES="page_states",r.COLLECT_FLUSH_REASON="collect_flush_reason",r.NO_RESOURCE_DURATION_FROZEN_STATE="no_resource_duration_frozen_state",r.SCROLLMAP="scrollmap",r.INTERACTION_TO_NEXT_PAINT="interaction_to_next_paint",r.WEB_VITALS_ATTRIBUTION="web_vitals_attribution",r.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css";var tc=new Set;function isExperimentalFeatureEnabled(t){return tc.has(t)}function shallowClone(t){return polyfills_assign({},t)}function objectHasValue(t,e){return Object.keys(t).some(function(n){return t[n]===e})}function isEmptyObject(t){return 0===Object.keys(t).length}var tu="_dd_s",tl=/^([a-z]+)=([a-z0-9-]+)$/;function expandSessionState(t){t.expire=String(dateNow()+9e5)}function toSessionString(t){return objectEntries(t).map(function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n)}).join("&")}function toSessionState(t){var e={};return t&&(-1!==t.indexOf("&")||tl.test(t))&&t.split("&").forEach(function(t){var n=tl.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}}),e}function retrieveSessionCookie(){return toSessionState(getCookie(tu))}function persistInLocalStorage(t){localStorage.setItem(tu,toSessionString(t))}function retrieveSessionFromLocalStorage(){return toSessionState(localStorage.getItem(tu))}function clearSessionFromLocalStorage(){localStorage.removeItem(tu)}var td=[];function processSessionStoreOperations(t,e,n){void 0===n&&(n=0);var r,i,o=e.isLockEnabled,a=e.retrieveSession,s=e.persistSession,c=e.clearSession;if(E||(E=t),t!==E){td.push(t);return}if(o&&n>=100){next(e);return}var l=a();if(o&&(l.lock||(i=generateUUID(),l.lock=i,s(l),(l=a()).lock!==i))){retryLater(t,e,n);return}var d=t.process(l);if(o&&(l=a()).lock!==i){retryLater(t,e,n);return}if(d&&(isEmptyObject(d)?c():(expandSessionState(d),s(d))),o&&!(d&&isEmptyObject(d))){if((l=a()).lock!==i){retryLater(t,e,n);return}delete l.lock,s(l),d=l}null===(r=t.after)||void 0===r||r.call(t,d||l),next(e)}function retryLater(t,e,n){timer_setTimeout(function(){processSessionStoreOperations(t,e,n+1)},10)}function next(t){E=void 0;var e=td.shift();e&&processSessionStoreOperations(e,t)}function normalizeUrl(t){return buildUrl(t,getLinkElementOrigin(window.location)).href}function buildUrl(t,e){var n=function(){if(void 0===C)try{var t=new tf("http://test/path");C="http://test/path"===t.href}catch(t){C=!1}return C?tf:void 0}();if(n)try{return void 0!==e?new n(t,e):new n(t)}catch(n){throw Error("Failed to construct URL: ".concat(String(n)," ").concat(jsonStringify({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw Error("Invalid URL: '".concat(t,"'"));var r=document,i=r.createElement("a");if(void 0!==e){var o=(r=document.implementation.createHTMLDocument("")).createElement("base");o.href=e,r.head.appendChild(o),r.body.appendChild(i)}return i.href=t,i}var tf=URL;function getLinkElementOrigin(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return"".concat(t.protocol,"//").concat(e)}var tp="datad0g.com",tm="datadoghq.com",th={logs:"logs",rum:"rum",sessionReplay:"session-replay"},tg={logs:"logs",rum:"rum",sessionReplay:"replay"};function createEndpointBuilder(t,e,n){var r=function(t,e){var n="/api/v2/".concat(tg[e]),r=t.proxy,i=t.proxyUrl;if(r){var o=normalizeUrl(r);return function(t){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(t)))}}var a=function(t,e){var n=t.site,r=void 0===n?tm:n,i=t.internalAnalyticsSubdomain;if(i&&r===tm)return"".concat(i,".").concat(tm);var o=r.split("."),a=o.pop(),s="ap1.datadoghq.com"!==r?"".concat(th[e],"."):"";return"".concat(s,"browser-intake-").concat(o.join("-"),".").concat(a)}(t,e);if(void 0===r&&i){var s=normalizeUrl(i);return function(t){return"".concat(s,"?ddforward=").concat(encodeURIComponent("https://".concat(a).concat(n,"?").concat(t)))}}return function(t){return"https://".concat(a).concat(n,"?").concat(t)}}(t,e);return{build:function(i,o){var a,s,c,l,d,f,p;return r((a=t.clientToken,s=t.internalAnalyticsSubdomain,c=o.retry,l=o.flushReason,d=o.encoding,f=["sdk_version:".concat("4.50.1"),"api:".concat(i)].concat(n),l&&isExperimentalFeatureEnabled(b.COLLECT_FLUSH_REASON)&&f.push("flush_reason:".concat(l)),c&&f.push("retry_count:".concat(c.count),"retry_after:".concat(c.lastFailureStatus)),p=["ddsource=browser","ddtags=".concat(encodeURIComponent(f.join(","))),"dd-api-key=".concat(a),"dd-evp-origin-version=".concat(encodeURIComponent("4.50.1")),"dd-evp-origin=browser","dd-request-id=".concat(generateUUID())],d&&p.push("dd-evp-encoding=".concat(d)),"rum"===e&&p.push("batch_time=".concat(timeStampNow())),s&&p.reverse(),p.join("&")))},urlPrefix:r(""),endpointType:e}}var tv=/[^a-z0-9_:./-]/;function buildTag(t,e){var n=200-t.length-1;(e.length>n||tv.test(e))&&G.warn("".concat(t," value doesn't meet tag requirements and will be sanitized"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}var ty={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function isMatchOption(t){var e=getType(t);return"string"===e||"function"===e||t instanceof RegExp}function matchList(t,e,n){return void 0===n&&(n=!1),t.some(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?startsWith(e,t):t===e}catch(t){G.error(t)}return!1})}function clearTracingIfNeeded(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function injectHeadersIfTracingAllowed(t,e,n,r){if(void 0!==getCrypto()&&n.findTrackedSession()){var i,o,a,s,c,l=find(t.allowedTracingUrls,function(t){return matchList([t.match],e.url,!0)});l&&(e.traceId=new tb,e.spanId=new tb,e.traceSampled=!isNumber(t.traceSampleRate)||performDraw(t.traceSampleRate),r((i=e.traceId,o=e.spanId,a=e.traceSampled,s=l.propagatorTypes,c={},s.forEach(function(t){switch(t){case"datadog":polyfills_assign(c,{"x-datadog-origin":"rum","x-datadog-parent-id":o.toDecimalString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":i.toDecimalString()});break;case"tracecontext":polyfills_assign(c,{traceparent:"00-0000000000000000".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-0").concat(a?"1":"0")});break;case"b3":polyfills_assign(c,{b3:"".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-").concat(a?"1":"0")});break;case"b3multi":polyfills_assign(c,{"X-B3-TraceId":i.toPaddedHexadecimalString(),"X-B3-SpanId":o.toPaddedHexadecimalString(),"X-B3-Sampled":a?"1":"0"})}}),c)))}}function getCrypto(){return window.crypto||window.msCrypto}var tb=function(){function TraceIdentifier(){this.buffer=new Uint8Array(8),getCrypto().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return TraceIdentifier.prototype.toString=function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},TraceIdentifier.prototype.toDecimalString=function(){return this.toString(10)},TraceIdentifier.prototype.toPaddedHexadecimalString=function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},TraceIdentifier.prototype.readInt32=function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]},TraceIdentifier}();function buildCommonContext(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}function sendToExtension(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}var t_={log:"log",configuration:"configuration"},tS=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],tw=["ddog-gov.com"],tE={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function addTelemetryDebug(t,e){displayIfDebugEnabled(j.debug,t,e),addTelemetry(polyfills_assign({type:t_.log,message:t,status:"debug"},e))}function addTelemetryError(t,e){addTelemetry(polyfills_assign({type:t_.log,status:"error"},function(t){if(t instanceof Error){var e=computeStackTrace(t);return{error:{kind:e.name,stack:toStackTraceString((e.stack=e.stack.filter(function(t){return!t.url||tS.some(function(e){return startsWith(t.url,e)})}),e))},message:e.message}}return{error:{stack:ts},message:"".concat("Uncaught"," ").concat(jsonStringify(t))}}(t),e))}function addTelemetry(t){T&&tE.sentEventCountt[n])return!1;return!0}function toValidEntry(t){if(areInOrder(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!hasRedirection(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},ValueHistory.prototype.find=function(t){void 0===t&&(t=tR);for(var e=0,n=this.entries;e0&&this.entries[this.entries.length-1].endTime0})}});return r}function isExcludedUrl(t,e){return matchList(t.excludedActivityUrls,e)}var tP="data-dd-action-name";function getActionNameFromElementProgrammatically(t,e){if(void 0===R&&(R="closest"in HTMLElement.prototype),R)n=t.closest("[".concat(e,"]"));else for(var n,r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return truncate(normalizeWhitespace(n.getAttribute(e).trim()))}var tU=[function(t,e){if(void 0===N&&(N="labels"in HTMLInputElement.prototype),N){if("labels"in t&&t.labels&&t.labels.length>0)return getTextualContent(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&find(t.ownerDocument.querySelectorAll("label"),function(e){return e.htmlFor===t.id});return n&&getTextualContent(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t.getAttribute("type");if("button"===e||"submit"===e||"reset"===e)return t.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return getTextualContent(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map(function(e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}).filter(function(t){return!!t}).map(function(t){return getTextualContent(t,e)}).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return getTextualContent(t.options[0],e)}],tD=[function(t,e){return getTextualContent(t,e)}];function getActionNameFromElementForStrategies(t,e,n){for(var r=t,i=0;i<=10&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0;o100?"".concat(safeTruncate(t,100)," [...]"):t}function getTextualContent(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,removeTextFromElements=function(e){for(var r=t.querySelectorAll(e),i=0;i0&&(n=n.replace(a,""))}}};return(null!=_?_:_=!!document.documentMode)&&removeTextFromElements("script, style"),removeTextFromElements("[".concat(tP,"]")),e&&removeTextFromElements("[".concat(e,"]")),n}return t.textContent}}var tF=[tP,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],tz=[getStableAttributeSelector,function(t){if(t.id&&!isGeneratedValue(t.id))return"#".concat(cssEscape(t.id))}],tB=[getStableAttributeSelector,function(t){if("BODY"!==t.tagName&&t.classList.length>0)for(var e=0;e").concat(e):t}function isSelectionEmpty(){var t=window.getSelection();return!t||t.isCollapsed}function isValidPointerEvent(t){return t.target instanceof Element&&!1!==t.isPrimary}function isDead(t){var e,n;return!t.hasPageActivity&&!t.getUserActivity().input&&(e=t.event.target,n='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *',e.matches?!e.matches(n):!(e.msMatchesSelector&&e.msMatchesSelector(n)))}function processAction(t,e){var n=isAutoAction(t)?{action:{id:t.id,loading_time:toServerDuration(t.duration),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:void 0;return{customerContext:isAutoAction(t)?void 0:t.context,rawRumEvent:combine({action:{id:generateUUID(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:isAutoAction(t)?{event:t.event,events:t.events}:{}}}function isAutoAction(t){return"custom"!==t.type}var tV=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/,tj={},tH={intervention:"intervention",cspViolation:"csp_violation"};function buildStack(t,e,n,r,i){return n?toStackTraceString({name:t,message:e,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=i?i:void 0}]}):void 0}function endTime(t){return t.startTime+t.duration}function computePerformanceEntryMetrics(t){var e,n,r;return{resource:polyfills_assign({duration:(e=t.duration,n=t.startTime,r=t.responseEnd,0===e&&n=this.messageBytesLimit){G.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB."));return}this.hasMessageFor(e)&&this.remove(e),this.push(r,i,e)},Batch.prototype.process=function(t){var e=jsonStringify(t),n=computeBytesCount(e);return{processedMessage:e,messageBytesCount:n}},Batch.prototype.push=function(t,e,n){var r=this.flushController.messagesCount>0?1:0;this.flushController.notifyBeforeAddMessage(e+r),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.flushController.notifyAfterAddMessage()},Batch.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=computeBytesCount(e),r=this.flushController.messagesCount>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},Batch.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},Batch}();function sendWithRetryStrategy(t,e,n,r,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?send(t,e,n,{onSuccess:function(){return retryQueuedPayloads(0,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),function scheduleRetry(t,e,n,r){2===t.transportStatus&&timer_setTimeout(function(){send(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,retryQueuedPayloads(1,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),scheduleRetry(t,e,n,r)}})},t.currentBackoffTime)}(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function send(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,function(n){e.bandwidthMonitor.remove(t),"opaque"!==n.type&&(0===n.status&&!navigator.onLine||408===n.status||429===n.status||n.status>=500)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o()):(e.transportStatus=0,i())})}function retryQueuedPayloads(t,e,n,r,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:tx.AGENT,startClocks:clocksNow()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=newPayloadQueue();o.size()>0;)sendWithRetryStrategy(o.dequeue(),e,n,r,i)}function newPayloadQueue(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=3145728}}}function createHttpRequest(t,e,n,r){var i={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:newPayloadQueue(),queueFullReported:!1},sendStrategyForRetry=function(r,i){return function(t,e,n,r,i){if(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&r.bytesCount0?Array.from(t.media):void 0}})}function serializeAttribute(t,e,n,r){if(e===t1.HIDDEN)return null;var i=t.getAttribute(n);if(e===t1.MASK&&n!==t2&&!tF.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return"***"}if(("IMG"===o||"SOURCE"===o)&&("src"===n||"srcset"===n))return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("A"===o&&"href"===n||i&&startsWith(n,"data-"))return"***"}return i&&"string"==typeof i&&i.length>1e5&&"data:"===i.slice(0,5)?"data:truncated":i}function getCssRulesString(t){var e,n,r;if(!t)return null;try{e=t.rules||t.cssRules}catch(t){}return e?(n=Array.from(e,(null!=w?w:w=/^((?!chrome|android).)*safari/i.test(navigator.userAgent))?getCssRuleStringForSafari:getCssRuleString).join(""),r=t.href,n.replace(t4,function(t,e,n,i,o,a){var s=n||o||a;if(!r||!s||t8.test(s)||t7.test(s))return t;var c=e||i||"";return"url(".concat(c).concat(function(t,e){try{return buildUrl(t,e).href}catch(e){return t}}(s,r)).concat(c,")")})):null}function getCssRuleStringForSafari(t){return"selectorText"in t&&t.selectorText.includes(":")?t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):getCssRuleString(t)}function getCssRuleString(t){return"styleSheet"in t&&getCssRulesString(t.styleSheet)||t.cssText}function serializeNodeWithId(t,e){var n=function(t,e){var n;switch(t.nodeType){case t.DOCUMENT_NODE:return{type:tY.Document,childNodes:serializeChildNodes(t,e),adoptedStyleSheets:serializeStyleSheets(t.adoptedStyleSheets)};case t.DOCUMENT_FRAGMENT_NODE:return(n=isNodeShadowRoot(t))&&e.serializationContext.shadowRootsController.addShadowRoot(t),{type:tY.DocumentFragment,childNodes:serializeChildNodes(t,e),isShadowRoot:n,adoptedStyleSheets:n?serializeStyleSheets(t.adoptedStyleSheets):void 0};case t.DOCUMENT_TYPE_NODE:return{type:tY.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r=getValidTagName(t.tagName),i="svg"===t.tagName||t instanceof SVGElement||void 0,o=reducePrivacyLevel(getNodeSelfPrivacyLevel(t),e.parentNodePrivacyLevel);if(o===t1.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,c=a.height;return{type:tY.Element,tagName:r,attributes:((n={rr_width:"".concat(s,"px"),rr_height:"".concat(c,"px")})[t2]=t5,n),childNodes:[],isSVG:i}}if(o!==t1.IGNORE){var l=function(t,e,n){if(e===t1.HIDDEN)return{};for(var r,i,o,a={},s=getValidTagName(t.tagName),c=t.ownerDocument,l=0;l0||isNodeShadowHost(t))&&"style"!==r&&(d=serializeChildNodes(t,e.parentNodePrivacyLevel===o&&e.ignoreWhiteSpace===("head"===r)?e:polyfills_assign({},e,{parentNodePrivacyLevel:o,ignoreWhiteSpace:"head"===r}))),{type:tY.Element,tagName:r,attributes:l,childNodes:d,isSVG:i}}}(t,e);case t.TEXT_NODE:return function(t,e){var n=getTextContent(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0!==n)return{type:tY.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:tY.CDATA,textContent:""}}}(t,e);if(!n)return null;var r=getSerializedNodeId(t)||et++;return n.id=r,t6.set(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),n}var et=1;function serializeChildNodes(t,e){var n=[];return forEachChildNodes(t,function(t){var r=serializeNodeWithId(t,e);r&&n.push(r)}),n}function isTouchEvent(t){return!!t.changedTouches}function getEventTarget(t){return!0===t.composed&&isNodeShadowHost(t.target)?t.composedPath()[0]:t.target}var convertMouseEventToLayoutCoordinates=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n&&(Math.abs(n.pageTop-n.offsetTop-window.scrollY)>25||Math.abs(n.pageLeft-n.offsetLeft-window.scrollX)>25?(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)):(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop))),r},getVisualViewport=function(t){return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}};function tryToComputeCoordinates(t){var e=isTouchEvent(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=convertMouseEventToLayoutCoordinates(n,r),o=i.visualViewportX,a=i.visualViewportY;n=o,r=a}if(!Number.isFinite(n)||!Number.isFinite(r)){t.isTrusted&&addTelemetryDebug("mouse/touch event without x/y");return}return{x:n,y:r}}var ee=((F={}).pointerup=tQ.MouseUp,F.mousedown=tQ.MouseDown,F.click=tQ.Click,F.contextmenu=tQ.ContextMenu,F.dblclick=tQ.DblClick,F.focus=tQ.Focus,F.blur=tQ.Blur,F.touchstart=tQ.TouchStart,F.touchend=tQ.TouchEnd,F);function initInputObserver(t,e,n){void 0===n&&(n=document);var r,i=t.defaultPrivacyLevel,o=new WeakMap,a=n!==document,s=addEventListeners(t,n,a?["change"]:["input","change"],function(t){var e=getEventTarget(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&onElementChange(e)},{capture:!0,passive:!0}).stop;if(a)r=noop;else{var c=[instrumentSetter(HTMLInputElement.prototype,"value",onElementChange),instrumentSetter(HTMLInputElement.prototype,"checked",onElementChange),instrumentSetter(HTMLSelectElement.prototype,"value",onElementChange),instrumentSetter(HTMLTextAreaElement.prototype,"value",onElementChange),instrumentSetter(HTMLSelectElement.prototype,"selectedIndex",onElementChange)];r=function(){c.forEach(function(t){return t.stop()})}}return function(){r(),s()};function onElementChange(t){var e,n,r=getNodePrivacyLevel(t,i);if(r!==t1.HIDDEN){var o=t.type;if("radio"===o||"checkbox"===o){if(shouldMaskNode(t,r))return;n={isChecked:t.checked}}else{var a=getElementInputValue(t,r);if(void 0===a)return;n={text:a}}cbWithDedup(t,n);var s=t.name;"radio"===o&&s&&t.checked&&(e=document.querySelectorAll('input[type="radio"][name="'.concat(cssEscape(s),'"]')),Array.prototype.forEach.call(e,function(e){e!==t&&cbWithDedup(e,{isChecked:!1})}))}}function cbWithDedup(t,n){if(hasSerializedNode(t)){var r=o.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(o.set(t,n),e(polyfills_assign({id:getSerializedNodeId(t)},n)))}}}function getPathToNestedCSSRule(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(i),e}}function initMutationObserver(t,e,n,r){var i=getMutationObserverConstructor();if(!i)return{stop:noop,flush:noop};var o=function(t){var e=noop,n=[];function flush(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(monitor(t),e);return function(){return window.cancelIdleCallback(n)}}var r=window.requestAnimationFrame(monitor(t));return function(){return window.cancelAnimationFrame(r)}}(flush,{timeout:100})),n.push.apply(n,t)},flush:flush,stop:function(){e()}}}(function(r){!function(t,e,n,r){t.filter(function(t){return"childList"===t.type}).forEach(function(t){t.removedNodes.forEach(function(t){!function traverseRemovedShadowDom(t,e){isNodeShadowHost(t)&&e(t.shadowRoot),forEachChildNodes(t,function(t){return traverseRemovedShadowDom(t,e)})}(t,r.removeShadowRoot)})});var i=t.filter(function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!hasSerializedNode(e)&&!isNodeShadowRoot(e))return!1;e=getParentNode(e)}return!0}(t.target)&&getNodePrivacyLevel(t.target,n.defaultPrivacyLevel)!==t1.HIDDEN}),o=function(t,e,n){for(var r=new Set,i=new Map,_loop_1=function(t){t.addedNodes.forEach(function(t){r.add(t)}),t.removedNodes.forEach(function(e){r.has(e)||i.set(e,t.target),r.delete(e)})},o=0;o10&&function(){if(z){if(z.keys)z.delete(z.keys().next().value);else{var t=!0;z.forEach(function(e,n){t&&(z.delete(n),t=!1)})}}}()),e}var en=function(){function Segment(t,e,n){this.encoder=t;var r=e.view.id;this.metadata=polyfills_assign({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:getOrCreateReplayStats(r).segments_count,source:"browser"},e),getOrCreateReplayStats(r).segments_count+=1}return Segment.prototype.addRecord=function(t,e){this.metadata.start=Math.min(this.metadata.start,t.timestamp),this.metadata.end=Math.max(this.metadata.end,t.timestamp),this.metadata.records_count+=1,(r=this.metadata).has_full_snapshot||(r.has_full_snapshot=t.type===tJ.FullSnapshot),sendToExtension("record",{record:t,segment:this.metadata}),n=this.metadata.view.id,getOrCreateReplayStats(n).records_count+=1;var n,r,i=1===this.metadata.records_count?'{"records":[':",";this.encoder.write(i+JSON.stringify(t),e)},Segment.prototype.flush=function(t){var e=this;if(0===this.metadata.records_count)throw Error("Empty segment flushed");this.encoder.write("],".concat(JSON.stringify(this.metadata).slice(1),"\n"),function(){var n,r;n=e.metadata.view.id,r=e.encoder.rawBytesCount,getOrCreateReplayStats(n).segments_total_raw_size+=r,t(e.metadata)}),this.encoder.reset()},Segment}();function isBrowserSupported(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function createDeflateWorker(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r>=7;l>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&is){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&rt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var er={status:0};function onError(t,e,n,r){if(1===er.status||0===er.status){var i;if(G.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(includes(i=n.message,"Content Security Policy")||includes(i,"requires 'TrustedScriptURL'"))){var o=void 0;o=t.workerUrl?"Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",G.error("".concat(o," See documentation at https://docs.datadoghq.com/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else addTelemetryError(n);1===er.status&&er.initializationFailureCallbacks.forEach(function(t){return t()}),er={status:2}}else addTelemetryError(n,{worker_version:3===er.status&&er.version,stream_id:r})}var ei=function(t,e,n){var r,i,o=(void 0===n?{}:n).ignoreInitIfSyntheticsWillInjectRum,a=void 0===o||o,s=!1,c=createContextManager(2),l=createContextManager(1),getInternalContextStrategy=function(){},getInitConfigurationStrategy=function(){},d=noop,getSessionReplayLinkStrategy=function(){},f=new Y,addTimingStrategy=function(t,e){void 0===e&&(e=timeStampNow()),f.add(function(){return addTimingStrategy(t,e)})},startViewStrategy=function(t,e){void 0===e&&(e=clocksNow()),f.add(function(){return startViewStrategy(t,e)})},addActionStrategy=function(t,n){void 0===n&&(n=buildCommonContext(c,l,e)),f.add(function(){return addActionStrategy(t,n)})},addErrorStrategy=function(t,n){void 0===n&&(n=buildCommonContext(c,l,e)),f.add(function(){return addErrorStrategy(t,n)})},addFeatureFlagEvaluationStrategy=function(t,e){f.add(function(){return addFeatureFlagEvaluationStrategy(t,e)})};function doStartRum(n,r,i){if(n.storeContextsAcrossPages){var o=c.getContext();(c=createStoredContextManager(r,"rum",2)).setContext(combine(c.getContext(),o));var a=l.getContext();(l=createStoredContextManager(r,"rum",1)).setContext(combine(l.getContext(),a))}var s=t(n,r,e,c,l,i);getSessionReplayLinkStrategy=function(){return e.getSessionReplayLink(r,s.session,s.viewContexts)},startViewStrategy=s.startView,addActionStrategy=s.addAction,addErrorStrategy=s.addError,addTimingStrategy=s.addTiming,addFeatureFlagEvaluationStrategy=s.addFeatureFlagEvaluation,getInternalContextStrategy=s.getInternalContext,d=s.stopSession,f.drain(),e.onRumStart(s.lifeCycle,r,s.session,s.viewContexts)}var p=monitor(function(t){startViewStrategy("object"==typeof t?t:{name:t})});return r={init:monitor(function(t){if(!t){G.error("Missing configuration");return}if(getInitConfigurationStrategy=function(){return deepClone(t)},!(a&&willSyntheticsInjectRum())){var e,n=canUseEventBridge();if(n&&(t=polyfills_assign({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100})),e=t,!s||(e.silentMultipleInit||G.error("DD_RUM is already initialized."),0)){var r=function(t){if(!t.applicationId){G.error("Application ID is not configured, no RUM data will be collected.");return}if(void 0!==t.sessionReplaySampleRate&&!isPercentage(t.sessionReplaySampleRate)){G.error("Session Replay Sample Rate should be a number between 0 and 100");return}var e,n,r,i,o,a,s=null!==(e=t.premiumSampleRate)&&void 0!==e?e:t.replaySampleRate;if(void 0!==s&&void 0!==t.sessionReplaySampleRate&&(G.warn("Ignoring Premium Sample Rate because Session Replay Sample Rate is set"),s=void 0),void 0!==s&&!isPercentage(s)){G.error("Premium Sample Rate should be a number between 0 and 100");return}var c=null!==(n=t.traceSampleRate)&&void 0!==n?n:t.tracingSampleRate;if(void 0!==c&&!isPercentage(c)){G.error("Trace Sample Rate should be a number between 0 and 100");return}if(void 0!==t.excludedActivityUrls&&!Array.isArray(t.excludedActivityUrls)){G.error("Excluded Activity Urls should be an array");return}var l=function(t){if(void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&G.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins."),void 0!==t.allowedTracingUrls){if(!Array.isArray(t.allowedTracingUrls)){G.error("Allowed Tracing URLs should be an array");return}if(0!==t.allowedTracingUrls.length&&void 0===t.service){G.error("Service needs to be configured when tracing is enabled");return}var e=[];return t.allowedTracingUrls.forEach(function(t){isMatchOption(t)?e.push({match:t,propagatorTypes:["datadog"]}):"object"===getType(t)&&isMatchOption(t.match)&&Array.isArray(t.propagatorTypes)?e.push(t):G.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)}),e}if(void 0!==t.allowedTracingOrigins){if(!Array.isArray(t.allowedTracingOrigins)){G.error("Allowed Tracing Origins should be an array");return}if(0!==t.allowedTracingOrigins.length&&void 0===t.service){G.error("Service needs to be configured when tracing is enabled");return}var n=[];return t.allowedTracingOrigins.forEach(function(t){var e=function(t){var e;if("string"==typeof t?e=t:t instanceof RegExp?e=function(e){return t.test(getLinkElementOrigin(buildUrl(e)))}:"function"==typeof t&&(e=function(e){return t(getLinkElementOrigin(buildUrl(e)))}),void 0===e){G.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t);return}return{match:e,propagatorTypes:["datadog"]}}(t);e&&n.push(e)}),n}return[]}(t);if(l){var d=function(t){if(!t||!t.clientToken){G.error("Client Token is not configured, we will not send any data.");return}var e,n,r,i,o,a,s,c,l,d,f,p,m=null!==(d=t.sessionSampleRate)&&void 0!==d?d:t.sampleRate;if(void 0!==m&&!isPercentage(m)){G.error("Session Sample Rate should be a number between 0 and 100");return}if(void 0!==t.telemetrySampleRate&&!isPercentage(t.telemetrySampleRate)){G.error("Telemetry Sample Rate should be a number between 0 and 100");return}if(void 0!==t.telemetryConfigurationSampleRate&&!isPercentage(t.telemetryConfigurationSampleRate)){G.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");return}return Array.isArray(t.enableExperimentalFeatures)&&function(t){t.forEach(function(t){tc.add(t)})}(t.enableExperimentalFeatures.filter(function(t){return objectHasValue(b,t)})),polyfills_assign({beforeSend:t.beforeSend&&catchUserErrors(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:((n=!function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(generateUUID()),n="test";setCookie(e,n,6e4,t);var r=getCookie(e)===n;return deleteCookie(e,t),r}catch(t){return G.error(t),!1}}(((e={}).secure=!!t.useSecureSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.useCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===y){for(var t="dd_site_test_".concat(generateUUID()),e=window.location.hostname.split("."),n=e.pop();e.length&&!getCookie(t);)setCookie(t,"test",1e3,{domain:n="".concat(e.pop(),".").concat(n)});deleteCookie(t,{domain:n}),y=n}return y}()),e))?void 0:{type:"Cookie",cookieOptions:e})||!t.allowFallbackToLocalStorage||(n=function(){try{var t=generateUUID(),e="".concat("_dd_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),n),sessionSampleRate:null!=m?m:100,telemetrySampleRate:null!==(f=t.telemetrySampleRate)&&void 0!==f?f:20,telemetryConfigurationSampleRate:null!==(p=t.telemetryConfigurationSampleRate)&&void 0!==p?p:5,service:t.service,silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(r=t.env,i=t.service,o=t.version,a=t.datacenter,s=[],r&&s.push(buildTag("env",r)),i&&s.push(buildTag("service",i)),o&&s.push(buildTag("version",o)),a&&s.push(buildTag("datacenter",a)),l=objectValues(c={logsEndpointBuilder:createEndpointBuilder(t,"logs",s),rumEndpointBuilder:createEndpointBuilder(t,"rum",s),sessionReplayEndpointBuilder:createEndpointBuilder(t,"sessionReplay",s)}).map(function(t){return t.urlPrefix}),polyfills_assign({isIntakeUrl:function(t){return l.some(function(e){return 0===t.indexOf(e)})},replica:function(t,e,n){if(t.replica){var r=polyfills_assign({},t,{site:tm,clientToken:t.replica.clientToken}),i={logsEndpointBuilder:createEndpointBuilder(r,"logs",n),rumEndpointBuilder:createEndpointBuilder(r,"rum",n)};return e.push.apply(e,objectValues(i).map(function(t){return t.urlPrefix})),polyfills_assign({applicationId:t.replica.applicationId},i)}}(t,l,s),site:t.site||tm},c)))}(t);if(d){var f=!!(null!==(r=t.trackUserInteractions)&&void 0!==r?r:t.trackInteractions),p=!!t.trackFrustrations;return polyfills_assign({applicationId:t.applicationId,version:t.version,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!==(o=null!==(i=t.sessionReplaySampleRate)&&void 0!==i?i:s)&&void 0!==o?o:100,oldPlansBehavior:void 0===t.sessionReplaySampleRate,traceSampleRate:c,allowedTracingUrls:l,excludedActivityUrls:null!==(a=t.excludedActivityUrls)&&void 0!==a?a:[],workerUrl:t.workerUrl,trackUserInteractions:f||p,trackFrustrations:p,trackViewsManually:!!t.trackViewsManually,trackResources:t.trackResources,trackLongTasks:t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:objectHasValue(ty,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:ty.MASK_USER_INPUT,customerDataTelemetrySampleRate:1},d)}}}(t);if(r){if(!n&&!r.sessionStoreStrategyType){G.warn("No storage available for session. We will not send any data.");return}if(r.trackViewsManually){var i=f;f=new Y,startViewStrategy=function(e){doStartRum(t,r,e)},i.drain()}else doStartRum(t,r);s=!0}}}}),addRumGlobalContext:monitor(function(t,e){return c.add(t,e)}),setGlobalContextProperty:monitor(function(t,e){return c.setContextProperty(t,e)}),removeRumGlobalContext:monitor(function(t){return c.remove(t)}),removeGlobalContextProperty:monitor(function(t){return c.removeContextProperty(t)}),getRumGlobalContext:monitor(function(){return c.get()}),getGlobalContext:monitor(function(){return c.getContext()}),setRumGlobalContext:monitor(function(t){return c.set(t)}),setGlobalContext:monitor(function(t){return c.setContext(t)}),clearGlobalContext:monitor(function(){return c.clearContext()}),getInternalContext:monitor(function(t){return getInternalContextStrategy(t)}),getInitConfiguration:monitor(function(){return getInitConfigurationStrategy()}),addAction:monitor(function(t,e){addActionStrategy({name:sanitize(t),context:sanitize(e),startClocks:clocksNow(),type:"custom"})}),addError:function(t,e){var n=createHandlingStack();callMonitored(function(){addErrorStrategy({error:t,handlingStack:n,context:sanitize(e),startClocks:clocksNow()})})},addTiming:monitor(function(t,e){addTimingStrategy(sanitize(t),e)}),setUser:monitor(function(t){var e;(e="object"===getType(t))||G.error("Unsupported user:",t),e&&l.setContext(sanitizeUser(t))}),getUser:monitor(function(){return l.getContext()}),setUserProperty:monitor(function(t,e){var n,r=sanitizeUser(((n={})[t]=e,n))[t];l.setContextProperty(t,r)}),removeUserProperty:monitor(function(t){return l.removeContextProperty(t)}),removeUser:monitor(function(){return l.clearContext()}),clearUser:monitor(function(){return l.clearContext()}),startView:p,stopSession:monitor(function(){d()}),startSessionReplayRecording:monitor(e.start),stopSessionReplayRecording:monitor(e.stop),addFeatureFlagEvaluation:monitor(function(t,e){addFeatureFlagEvaluationStrategy(sanitize(t),sanitize(e))}),getSessionReplayLink:monitor(function(){return getSessionReplayLinkStrategy()})},Object.defineProperty(i=polyfills_assign({version:"4.50.1",onReady:function(t){t()}},r),"_setDebug",{get:function(){return setDebugMode},enumerable:!1}),i}(function(t,e,n,r,i,o){var a,s,c,l,d,f,p,m,g,v,y,_,w,E,C,N,R,I,M,F,z,B,V,q,W,Z,K,J,Y,$,Q,tt,te,tn,tr,ti,to,ta,ts,tl,td,tf=[],tm=new tN;tm.subscribe(11,function(t){return sendToExtension("rum",t)});var th=function(t){var e,n,r,i=(n=new X,tE.telemetryEnabled=!includes(tw,t.site)&&performDraw(t.telemetrySampleRate),tE.telemetryConfigurationEnabled=tE.telemetryEnabled&&performDraw(t.telemetryConfigurationSampleRate),r={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self},T=function(t){if(tE.telemetryEnabled){var i=combine({type:"telemetry",date:timeStampNow(),service:"browser-rum-sdk",version:"4.50.1",source:"browser",_dd:{format_version:2},telemetry:combine(t,{runtime_env:r}),experimental_features:arrayFrom(tc)},void 0!==e?e():{});n.notify(i),sendToExtension("telemetry",i)}},h=addTelemetryError,polyfills_assign(tE,{maxEventsPerPage:t.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){e=t},observable:n,enabled:tE.telemetryEnabled});if(canUseEventBridge()){var o=getEventBridge();i.observable.subscribe(function(t){return o.send("internal_telemetry",t)})}return i}(e);th.setContextProvider(function(){var t,n;return{application:{id:e.applicationId},session:{id:null===(t=tb.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(n=t0.findView())||void 0===n?void 0:n.id},action:{id:t5.findActionId()}}});var reportError=function(t){tm.notify(12,{error:t}),addTelemetryDebug("Error reported to customer",{"error.message":t.message})},tg=function(t,e){if(void 0===e&&(e=computeBytesCount),!isExperimentalFeatureEnabled(b.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},getFeatureFlagBytesCount:function(){return 0},addFeatureFlagEvaluation:noop,stop:noop};var n=new tI(144e5),r=0,i=!1;t.subscribe(4,function(t){var e=t.endClocks;n.closeActive(e.relative)}),t.subscribe(2,function(t){var e=t.startClocks;n.add({},e.relative),r=0});var o=throttle(function(t){r=e(jsonStringify(t)),i||(i=warnIfCustomerDataLimitReached(r,0))},200),a=o.throttled;return{findFeatureFlagEvaluations:function(t){return n.find(t)},getFeatureFlagBytesCount:function(){return n.find()?r:0},addFeatureFlagEvaluation:function(t,e){var r=n.find();r&&(r[t]=e,a(r))},stop:o.cancel}}(tm),tv=tR=new X(function(){var t=isExperimentalFeatureEnabled(b.PAGEHIDE),n=addEventListeners(e,window,["visibilitychange","freeze","pagehide"],function(e){"pagehide"===e.type&&t?tR.notify({reason:tC.PAGEHIDE}):"visibilitychange"===e.type&&"hidden"===document.visibilityState?tR.notify({reason:tC.HIDDEN}):"freeze"===e.type&&tR.notify({reason:tC.FROZEN})},{capture:!0}).stop,r=noop;return t||(r=addEventListener(e,window,"beforeunload",function(){tR.notify({reason:tC.UNLOADING})}).stop),function(){n(),r()}}),ty=tv.subscribe(function(t){tm.notify(9,t)});tf.push(function(){return ty.unsubscribe()});var tb=canUseEventBridge()?(tL={id:"00000000-aaaa-0000-aaaa-000000000000",plan:1,sessionReplayAllowed:!1,longTaskAllowed:!0,resourceAllowed:!0},{findTrackedSession:function(){return tL},expire:noop,expireObservable:new X}):((tM=function(t,e,n){var r,i,o,a,s=function(t,e,n){var r,i,o,a=new X,s=new X,c="Cookie"===t.type?(i=t.cookieOptions,function(t){if(!getCookie(tu)){var e=getCookie("_dd"),n=getCookie("_dd_r"),r=getCookie("_dd_l"),i={};e&&(i.id=e),r&&/^[01]$/.test(r)&&(i.logs=r),n&&/^[012]$/.test(n)&&(i.rum=n),isEmptyObject(i)||(expandSessionState(i),t.persistSession(i))}}(o={isLockEnabled:null!=S?S:S=!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent),persistSession:function(t){setCookie(tu,toSessionString(t),9e5,i)},retrieveSession:retrieveSessionCookie,clearSession:function(){deleteCookie(tu,i)}}),o):{isLockEnabled:!1,persistSession:persistInLocalStorage,retrieveSession:retrieveSessionFromLocalStorage,clearSession:clearSessionFromLocalStorage},l=c.clearSession,d=c.retrieveSession,f=timer_setInterval(function(){processSessionStoreOperations({process:function(t){return isActiveSession(t)?void 0:{}},after:synchronizeSession},c)},1e3),p=isActiveSession(r=d())?r:{};function synchronizeSession(t){var n;return isActiveSession(t)||(t={}),hasSessionInCache()&&((n=t,p.id!==n.id||p[e]!==n[e])?(p={},s.notify()):p=t),t}function hasSessionInCache(){return void 0!==p[e]}function isActiveSession(t){return(void 0===t.created||dateNow()-Number(t.created)<144e5)&&(void 0===t.expire||dateNow()=r&&flush("bytes_limit"),f+=1,d+=t,void 0===e&&(e=timer_setTimeout(function(){flush("duration_limit")},i))},notifyAfterAddMessage:function(){f>=n?flush("messages_limit"):d>=r&&flush("bytes_limit")},notifyAfterRemoveMessage:function(t){d-=t,0==(f-=1)&&cancelDurationLimitTimeout()}}}({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),t.messageBytesLimit)}return{flushObservable:a.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),a.add(t),s&&e&&s.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){a.upsert(t,e),s&&s.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){a.stop(),null==s||s.stop()}}}(e,{endpoint:e.rumEndpointBuilder},tB&&{endpoint:tB.rumEndpointBuilder,transformMessage:function(t){return combine(t,{application:{id:tB.applicationId}})}},reportError,tv,tz),tm.subscribe(11,function(t){"view"===t.type?tX.upsert(t,t.view.id):tX.add(t)}),tF.subscribe(function(t){return tX.add(t,e.site===tp)}),tX);tf.push(function(){return tJ.stop()}),tS=tJ.flushObservable,th.enabled&&performDraw(e.customerDataTelemetrySampleRate)&&(initCurrentPeriodMeasures(),initCurrentBatchMeasures(),tm.subscribe(11,function(t){D=!0,updateMeasure(U.globalContextBytes,isEmptyObject(r.get())?0:r.getBytesCount()),updateMeasure(U.userContextBytes,isEmptyObject(i.get())?0:i.getBytesCount());var e=tg.findFeatureFlagEvaluations(),n=includes(["view","error"],t.type)&&e&&!isEmptyObject(e);updateMeasure(U.featureFlagBytes,n?tg.getFeatureFlagBytesCount():0)}),tS.subscribe(function(t){var e=t.bytesCount,n=t.messagesCount;D&&(P.batchCount+=1,updateMeasure(P.batchBytesCount,e),updateMeasure(P.batchMessagesCount,n),mergeMeasure(P.globalContextBytes,U.globalContextBytes),mergeMeasure(P.userContextBytes,U.userContextBytes),mergeMeasure(P.featureFlagBytes,U.featureFlagBytes),initCurrentBatchMeasures())}),timer_setInterval(sendCurrentPeriodMeasures,1e4))}var tY=(q=getMutationObserverConstructor(),W=new X(function(){if(q){var t=new q(monitor(function(){return W.notify()}));return t.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return t.disconnect()}}})),t$=function(t,e){var n=shallowClone(e),r=new X(function(){var e,n,r,i=(e=instrumentMethodAndCallOriginal(history,"pushState",{after:onLocationChange}).stop,n=instrumentMethodAndCallOriginal(history,"replaceState",{after:onLocationChange}).stop,r=addEventListener(t,window,"popstate",onLocationChange).stop,{stop:function(){e(),n(),r()}}).stop,o=addEventListener(t,window,"hashchange",onLocationChange).stop;return function(){i(),o()}});function onLocationChange(){if(n.href!==e.href){var t=shallowClone(e);r.notify({newLocation:t,oldLocation:n}),n=t}}return r}(e,location),tQ=(a=tm,s=e,c=location,l=tb,d=t$,f=tY,p=function(){return buildCommonContext(r,i,n)},m=reportError,y=(g=new tI(144e5),a.subscribe(2,function(t){g.add({service:t.service,version:t.version,id:t.id,name:t.name,startClocks:t.startClocks},t.startClocks.relative)}),a.subscribe(4,function(t){var e=t.endClocks;g.closeActive(e.relative)}),a.subscribe(8,function(){g.reset()}),{findView:function(t){return g.find(t)},stop:function(){g.stop()}}),_=function(t,e,n){var r,i=new tI(144e5);t.subscribe(4,function(t){var e=t.endClocks;i.closeActive(e.relative)}),t.subscribe(2,function(t){var e=t.startClocks,o=n.href;i.add(buildUrlContext({url:o,referrer:r||document.referrer}),e.relative),r=o});var o=e.subscribe(function(t){var e=t.newLocation,n=i.find();if(n){var r=relativeNow();i.closeActive(r),i.add(buildUrlContext({url:e.href,referrer:n.referrer}),r)}});function buildUrlContext(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(a,d,c),w=function(t,e){void 0===e&&(e=500);var n,r=new tI(144e5,4e3);addPageState(getPageState(),relativeNow());var i=addEventListeners(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(t){t.isTrusted&&addPageState("freeze"===t.type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":getPageState(),t.timeStamp)},{capture:!0}).stop;function addPageState(t,e){void 0===e&&(e=relativeNow()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}return{findAll:function(t,n){var i=r.findAll(t,n);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-e),s=i.length-1;s>=a;s--){var c=i[s],l=c.startTime-t;o.push({state:c.state,start:toServerDuration(l)})}return o}},isInActivePageStateAt:function(t){var e=r.find(t);return void 0!==e&&"active"===e.state},addPageState:addPageState,stop:function(){i(),r.stop()}}}(s),C=(E=function(t,e,n,r){t.subscribe(1,function(e){return t.notify(10,processAction(e,r))});var i={findActionId:noop};return n.trackUserInteractions&&(i=function(t,e,n){var r,i,o,a,s,c,l,d,f=new tI(3e5),p=new X;t.subscribe(8,function(){f.reset()}),t.subscribe(4,stopClickChain);var m=(a=(r={onPointerDown:function(r){return function(t,e,n,r,i){if(!(!t.trackFrustrations&&r.find())){var o,a,s,c,l=(o=i,a=t.actionNameAttribute,{type:"click",target:{width:Math.round((c=o.target.getBoundingClientRect()).width),height:Math.round(c.height),selector:getSelectorFromElement(o.target,a)},position:{x:Math.round(o.clientX-c.left),y:Math.round(o.clientY-c.top)},name:getActionNameFromElementProgrammatically(s=o.target,tP)||a&&getActionNameFromElementProgrammatically(s,a)||getActionNameFromElementForStrategies(s,a,tU)||getActionNameFromElementForStrategies(s,a,tD)||""});if(t.trackFrustrations||l.name){var d=!1;return doWaitPageActivityEnd(createPageActivityObservable(e,n,t),function(t){d=t.hadActivity},100),{clickActionBase:l,hadActivityOnPointerDown:function(){return d}}}}}(n,t,e,f,r)},onPointerUp:function(r,i,o){var a,s,c,l,d,m,h,g,v,y,b,_,S,w;return a=n,s=t,c=e,l=f,d=p,m=appendClickToClickChain,h=r.clickActionBase,g=i,v=o,y=r.hadActivityOnPointerDown,b=function newClick(t,e,n,r,i){var o,a=generateUUID(),s=clocksNow(),c=e.add(a,s.relative),l=trackEventCounts({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(Array.isArray(t.action.id)?includes(t.action.id,a):t.action.id===a)}}),d=0,f=[],p=new X;function stop(t){0===d&&((d=1,o=t)?c.close(o-getNavigationStart()):c.remove(),l.stop(),p.notify())}return{event:i,stop:stop,stopObservable:p,get hasError(){return l.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==o},getUserActivity:n,addFrustration:function(t){f.push(t)},startClocks:s,isStopped:function(){return 1===d||2===d},clone:function(){return newClick(t,e,n,r,i)},validate:function(e){if(stop(),1===d){var n,c=l.eventCounts,p=c.resourceCount,m=c.errorCount,h=c.longTaskCount,g=polyfills_assign({type:"click",duration:o&&(n=s.timeStamp,o-n),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:p,errorCount:m,longTaskCount:h},events:null!=e?e:[i],event:i},r);t.notify(1,g),d=2}},discard:function(){stop(),d=2}}}(s,l,v,h,g),a.trackFrustrations&&m(b),_=doWaitPageActivityEnd(createPageActivityObservable(s,c,a),function(t){t.hadActivity&&t.end0)||(e=r[r.length-1].event,n=t.event,e.target===n.target&&100>=Math.sqrt(Math.pow(e.clientX-n.clientX,2)+Math.pow(e.clientY-n.clientY,2))&&e.timeStamp-n.timeStamp<=1e3)?(appendClick(t),!0):(dontAcceptMoreClick(),!1))},stop:function(){dontAcceptMoreClick()}}}(t,function(t){(function(t,e){if(function(t){if(t.some(function(t){return t.getUserActivity().selection}))return!1;for(var e=0;e0,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:(tt=new Set,Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach(function(t){isMatchOption(t)?tt.add("datadog"):"object"===getType(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach(function(t){return tt.add(t)})}),Array.isArray(t.allowedTracingOrigins)&&t.allowedTracingOrigins.length>0&&tt.add("datadog"),arrayFrom(tt)),default_privacy_level:t.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,track_frustrations:t.trackFrustrations,track_views_manually:t.trackViewsManually,track_user_interactions:null!==($=t.trackUserInteractions)&&void 0!==$?$:t.trackInteractions},Q),tE.telemetryConfigurationEnabled&&addTelemetry({type:t_.configuration,configuration:te}),function(t,e){t.subscribe(0,function(n){for(var r=0;r=n-1&&endTime(e)<=r+1});if(1===n.length)return n[0]}}}(t))?relativeToClocks(a.startTime):t.startClocks,c=a?computePerformanceEntryMetrics(a):void 0,l=function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:getRulePsr(e)}}}(t,e),d=computeIndexingInfo(tb,s),n=t.duration,f=isExperimentalFeatureEnabled(b.NO_RESOURCE_DURATION_FROZEN_STATE)&&(null===(r=t1.findAll(s.relative,n))||void 0===r?void 0:r.some(function(t){return"frozen"===t.state}))?void 0:toServerDuration(n),p=computePageStateInfo(t1,s,null!==(i=null==a?void 0:a.duration)&&void 0!==i?i:t.duration),m=combine({date:s.timeStamp,resource:{id:generateUUID(),type:o,duration:f,method:t.method,status_code:t.status,url:t.url},type:"resource"},l,c,d,p),{startTime:s.relative,rawRumEvent:m,domainContext:{performanceEntry:a&&a,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}))}),tm.subscribe(0,function(t){for(var n=0;n=0?i.start:0,s=o?o.start:toServerDuration(e);n.push({start:a,duration:s-a})}}return n}(E,t.duration):void 0},feature_flags:S&&!isEmptyObject(S)?S:void 0,display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:toServerDuration(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!_||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}},isEmptyObject(t.customTimings)||(C.view.custom_timings=function(t,e){for(var n={},r=0,i=Object.keys(t);r0)||o(Math.max.apply(Math,c))}return{stop:doWaitPageActivityEnd(createPageActivityObservable(t,e,n),function(t){if(s){if(s=!1,t.hadActivity){var e;c.push((e=i.timeStamp,t.end-e))}invokeCallbackIfAllCandidatesAreReceived()}},void 0).stop,setLoadEvent:function(t){a&&(a=!1,c.push(t),invokeCallbackIfAllCandidatesAreReceived())}}}(t,e,n,i,l=o,function(t){d.loadingTime=t,ta()})).stop,m=f.setLoadEvent,w=(h=function(t){d.scroll=t},void 0===g&&(void 0===s&&(s=1e3),g=c=new X(function(){if(window.ResizeObserver){var t=throttle(function(){var t,e;c.notify((t=getScrollY(),e=getViewportDimension().height,{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}))},s,{leading:!1,trailing:!0}),e=document.scrollingElement||document.documentElement,r=new ResizeObserver(monitor(t.throttled));r.observe(e);var i=addEventListener(n,window,"scroll",t.throttled,{passive:!0});return function(){t.cancel(),r.unobserve(e),i.stop()}}})),v=0,y=0,_=0,S=g.subscribe(function(t){var e=t.scrollDepth,n=t.scrollTop,r=t.scrollHeight,i=!1;e>v&&(v=e,i=!0),r>y&&(y=r,_=relativeNow()-l.relative,i=!0),i&&h({maxDepth:Math.min(v,y),maxDepthScrollTop:n,maxScrollHeight:y,maxScrollHeightTime:_})}),{stop:function(){return S.unsubscribe()}}).stop,E=function(t,e,n){if(!supportPerformanceTimingEvent(k.LAYOUT_SHIFT))return{stop:noop};var r,i,o,a,s,c,l=0;n({value:0});var d=(s=0,c=0,{update:function(t){var e,n;void 0===r||t.startTime-i>=1e3||t.startTime-r>=5e3?(r=i=t.startTime,s=t.value,c=0,o=void 0):(s+=t.value,i=t.startTime),t.value>c&&(c=t.value,a=t.startTime,o=(null===(e=t.sources)||void 0===e?void 0:e.length)?null===(n=find(t.sources,function(t){return!!t.node&&isElementNode(t.node)}))||void 0===n?void 0:n.node:void 0)},value:function(){return s},largestLayoutShiftTarget:function(){return o},largestLayoutShiftTime:function(){return a}});return{stop:e.subscribe(0,function(e){for(var r=0;rl)){var o=round(l=d.value(),4),a=d.largestLayoutShiftTarget(),s=void 0;isExperimentalFeatureEnabled(b.WEB_VITALS_ATTRIBUTION)&&a&&(s=getSelectorFromElement(a,t.actionNameAttribute)),n({value:o,targetSelector:s})}}}).unsubscribe}}(n,t,function(t){d.cumulativeLayoutShift=t,ta()}).stop,T=(C=function(t,e,n,r){if(!(supportPerformanceTimingEvent(k.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype)||!isExperimentalFeatureEnabled(b.INTERACTION_TO_NEXT_PAINT))return{getInteractionToNextPaint:function(){},stop:noop};var i,o,a=("interactionCount"in performance||L||(L=new window.PerformanceObserver(monitor(function(t){t.getEntries().forEach(function(t){t.interactionId&&(tW=Math.min(tW,t.interactionId),tq=((tG=Math.max(tG,t.interactionId))-tW)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),i="initial_load"===n?0:getInteractionCount(),{getViewInteractionCount:function(){return getInteractionCount()-i}}).getViewInteractionCount,s=function(t){var e=[];function sortAndTrimLongestInteractions(){e.sort(function(t,e){return e.duration-t.duration}).splice(10)}return{process:function(t){var n=e.findIndex(function(e){return t.interactionId===e.interactionId}),r=e[e.length-1];-1!==n?t.duration>e[n].duration&&(e[n]=t,sortAndTrimLongestInteractions()):(e.length<10||t.duration>r.duration)&&(e.push(t),sortAndTrimLongestInteractions())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),c=-1,l=!1;return{getInteractionToNextPaint:function(){return c>=0?{value:c,targetSelector:o}:a()?{value:0}:void 0},stop:r.subscribe(0,function(n){for(var r,i,a=0;a6e5&&!l&&(l=!0,addTelemetryDebug("INP outlier",{inp:c,interaction:{timeFromViewStart:(r=e.relative,f.startTime-r),duration:f.duration,startTime:f.startTime,processingStart:f.processingStart,processingEnd:f.processingEnd,interactionId:f.interactionId,name:f.name,targetNodeName:null===(i=f.target)||void 0===i?void 0:i.nodeName}})),o=isExperimentalFeatureEnabled(b.WEB_VITALS_ATTRIBUTION)&&f.target&&isElementNode(f.target)?getSelectorFromElement(f.target,t.actionNameAttribute):void 0)}).unsubscribe}}(n,l,i,t)).stop,x=C.getInteractionToNextPaint,{stop:function(){p(),E(),w(),T()},setLoadEvent:m,getCommonViewMetrics:function(){return d.interactionToNextPaint=x(),d}}),tu=tc.setLoadEvent,tl=tc.stop,td=tc.getCommonViewMetrics,tf="initial_load"===i?(A={},N=(O=function(t){tu(t.loadEvent),A.navigationTimings=t,ta()},{stop:t.subscribe(0,function(t){for(var e=0;e=0&&n.responseStart<=relativeNow()?n.responseStart:void 0})}}).unsubscribe}).stop,void 0===R&&(R=window),"hidden"===document.visibilityState?I=0:(I=1/0,M=addEventListeners(n,R,["pagehide","visibilitychange"],function(t){("pagehide"===t.type||"hidden"===document.visibilityState)&&(I=t.timeStamp,M())},{capture:!0}).stop),P={get timeStamp(){return I},stop:function(){null==M||M()}},D=(U=function(t){A.firstContentfulPaint=t,ta()},{stop:t.subscribe(0,function(t){var e=find(t,function(t){return t.entryType===k.PAINT&&"first-contentful-paint"===t.name&&t.startTime=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,function(t){return t.entryType===k.LARGEST_CONTENTFUL_PAINT&&t.startTime=0?i:0,time:e.startTime,targetSelector:o})}}).unsubscribe}).stop,{stop:function(){N(),D(),H(),W(),P.stop()},initialViewMetrics:A}):{stop:noop,initialViewMetrics:{}},tp=tf.stop,tm=tf.initialViewMetrics,th={stop:(Z=trackEventCounts({lifeCycle:t,isChildEvent:function(t){return t.view.id===Q},onChange:ta})).stop,eventCounts:Z.eventCounts},tg=th.stop,tv=th.eventCounts,ty=timer_setInterval(triggerViewUpdate,3e5);function triggerViewUpdate(){ts(),tn+=1;var e=void 0===K?timeStampNow():K.timeStamp;t.notify(3,{customTimings:te,documentVersion:tn,id:Q,name:J,service:Y,version:$,loadingType:i,location:tr,startClocks:o,commonViewMetrics:td(),initialViewMetrics:tm,duration:e-o.timeStamp,isActive:void 0===K,sessionIsActive:ti,eventCounts:tv})}return triggerViewUpdate(),{name:J,service:Y,version:$,stopObservable:tt,end:function(e){var n,r,i=this;void 0===e&&(e={}),K||(K=null!==(n=e.endClocks)&&void 0!==n?n:clocksNow(),ti=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(4,{endClocks:K}),timer_clearInterval(ty),tl(),triggerViewUpdate(),timer_setTimeout(function(){i.stop()},3e5))},stop:function(){tp(),tg(),tt.notify()},addTiming:function(t,e){if(!K){var n,r=e<31536e6?e:e-o.timeStamp;te[(n=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==t&&G.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(n)),n]=r,ta()}}}}(e,n,r,t,i,o,a);return c.add(s),s.stopObservable.subscribe(function(){c.delete(s)}),s}return e.subscribe(8,function(){l=startNewView("route_change",void 0,{name:l.name,service:l.service,version:l.version})}),e.subscribe(7,function(){l.end({sessionIsActive:!1})}),e.subscribe(9,function(t){(t.reason===tC.UNLOADING||t.reason===tC.PAGEHIDE)&&l.end()}),o&&(s=i.subscribe(function(t){var e,n,r;e=t.oldLocation,n=t.newLocation,e.pathname===n.pathname&&(r=n.hash.substr(1),document.getElementById(r)||getPathFromHash(n.hash)===getPathFromHash(e.hash))||(l.end(),l=startNewView("route_change"))})),{addTiming:function(t,e){void 0===e&&(e=timeStampNow()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=startNewView("route_change",e,t)},stop:function(){null==s||s.unsubscribe(),l.end(),c.forEach(function(t){return t.stop()})}}}(tn,tm,tY,e,t$,!e.trackViewsManually,o)),t8=t4.addTiming,t7=t4.startView,t9=t4.stop;tf.push(t9);var et=(I=tr=new X,(M=[j.error].map(function(t){var e;return tj[t]||(tj[t]=e=new X(function(){var n=H[t];return H[t]=function(){for(var r=[],i=0;in.bytesLimit}e(void 0,t,a)}(function readMore(){r.read().then(monitor(function(t){if(t.done){onDone();return}n.collectStreamBody&&i.push(t.value),(o+=t.value.length)>n.bytesLimit?onDone():readMore()}),monitor(function(t){return e(t)}))})()}(i.body,function(){var e;n((e=t.startClocks.timeStamp,timeStampNow()-e))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):n((r=t.startClocks.timeStamp,timeStampNow()-r))}}),function(t,e){var n;if(n=function(n){handleRumPerformanceEntries(t,e,[n])},runOnReadyState(e,"interactive",function(){var t,e={entryType:k.RESOURCE,initiatorType:tT,traceId:function(t){var e,n,r=(e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]"),createDocumentTraceData(e&&e.content,n&&n.content)||function(t){var e=function(t){for(var e=0;e=0;e-=1){var r=t.body.childNodes[e],n=getTraceCommentFromNode(r);if(n)return n;if(!isTextNode(r))break}}(t);if(e)return createDocumentTraceData(findCommaSeparatedValue(e,"trace-id"),findCommaSeparatedValue(e,"trace-time"))}(t));if(!(!r||r.traceTime<=dateNow()-12e4))return r.traceId}(document),toJSON:function(){return polyfills_assign({},t,{toJSON:void 0})}};if(supportPerformanceTimingEvent(k.NAVIGATION)&&performance.getEntriesByType(k.NAVIGATION).length>0)t=polyfills_assign(performance.getEntriesByType(k.NAVIGATION)[0].toJSON(),e);else{var r=computeRelativePerformanceTiming();t=polyfills_assign(r,{decodedBodySize:0,duration:r.responseEnd,name:window.location.href,startTime:0},e)}n(t)}),supportPerformanceObject()){var r=performance.getEntries();timer_setTimeout(function(){return handleRumPerformanceEntries(t,e,r)})}if(window.PerformanceObserver){var i=monitor(function(n){return handleRumPerformanceEntries(t,e,n.getEntries())}),o=[k.RESOURCE,k.NAVIGATION,k.LONG_TASK,k.PAINT],a=[k.LARGEST_CONTENTFUL_PAINT,k.FIRST_INPUT,k.LAYOUT_SHIFT,k.EVENT];try{a.forEach(function(t){new window.PerformanceObserver(i).observe({type:t,buffered:!0,durationThreshold:40})})}catch(t){o.push.apply(o,a)}new PerformanceObserver(i).observe({entryTypes:o}),supportPerformanceObject()&&"addEventListener"in performance&&addEventListener(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})}supportPerformanceTimingEvent(k.NAVIGATION)||function(t,e){function sendFakeTiming(){e(polyfills_assign(computeRelativePerformanceTiming(),{entryType:k.NAVIGATION}))}runOnReadyState(t,"complete",function(){timer_setTimeout(sendFakeTiming)})}(e,function(n){handleRumPerformanceEntries(t,e,[n])}),supportPerformanceTimingEvent(k.FIRST_INPUT)||function(t,e){var n=dateNow(),r=!1,i=addEventListeners(t,window,["click","mousedown","keydown","touchstart","pointerdown"],function(e){if(e.cancelable){var n={entryType:k.FIRST_INPUT,processingStart:relativeNow(),processingEnd:relativeNow(),startTime:e.timeStamp,duration:0,name:""};"pointerdown"===e.type?addEventListeners(t,window,["pointerup","pointercancel"],function(t){"pointerup"===t.type&&sendTiming(n)},{once:!0}):sendTiming(n)}},{passive:!0,capture:!0}).stop;function sendTiming(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o6e4&&flushSegment("segment_bytes_limit")})}},stop:function(){flushSegment("stop"),o(),a()}}}(t,function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(r&&i)return{application:{id:t},session:{id:r.id},view:{id:i.id}}}(e.applicationId,n,r)},a,i),c=s.addRecord,l=s.stop,d=function(t){var e,n,r,i,o,a,s,c,l,d,f,p,m,h,g,v,y,b,_,S,w,E,C,T,k,x,A,O,N,R=t.emit,I=t.configuration;if(!R)throw Error("emit function is required");var L=(e=new WeakMap,{set:function(t,n){(t!==document||document.scrollingElement)&&e.set(t===document?document.scrollingElement:t,n)},get:function(t){return e.get(t)},has:function(t){return e.has(t)}}),mutationCb=function(t){R(assembleIncrementalSnapshot(t$.Mutation,t))},inputCb=function(t){return R(assembleIncrementalSnapshot(t$.Input,t))},M=initShadowRootsController(I,{mutationCb:mutationCb,inputCb:inputCb}),takeFullSnapshot=function(t,e){void 0===t&&(t=timeStampNow()),void 0===e&&(e={status:0,elementsScrollPositions:L,shadowRootsController:M});var n=getViewportDimension(),r=n.width;R({data:{height:n.height,href:window.location.href,width:r},type:tJ.Meta,timestamp:t}),R({data:{has_focus:document.hasFocus()},type:tJ.Focus,timestamp:t}),R({data:{node:serializeNodeWithId(document,{serializationContext:e,parentNodePrivacyLevel:I.defaultPrivacyLevel,configuration:I}),initialOffset:{left:getScrollX(),top:getScrollY()}},type:tJ.FullSnapshot,timestamp:t}),window.visualViewport&&R({data:getVisualViewport(window.visualViewport),type:tJ.VisualViewport,timestamp:t})};takeFullSnapshot();var P=(n={lifeCycle:t.lifeCycle,configuration:I,elementsScrollPositions:L,inputCb:inputCb,mediaInteractionCb:function(t){return R(assembleIncrementalSnapshot(t$.MediaInteraction,t))},mouseInteractionCb:function(t){return R(t)},mousemoveCb:function(t,e){return R(assembleIncrementalSnapshot(e,{positions:t}))},mutationCb:mutationCb,scrollCb:function(t){return R(assembleIncrementalSnapshot(t$.Scroll,t))},styleSheetCb:function(t){return R(assembleIncrementalSnapshot(t$.StyleSheetRule,t))},viewportResizeCb:function(t){return R(assembleIncrementalSnapshot(t$.ViewportResize,t))},frustrationCb:function(t){return R(t)},focusCb:function(t){return R({data:t,type:tJ.Focus,timestamp:timeStampNow()})},visualViewportResizeCb:function(t){R({data:t,type:tJ.VisualViewport,timestamp:timeStampNow()})},shadowRootsController:M},r=new WeakMap,i=1,o={getIdForEvent:function(t){return r.has(t)||r.set(t,i++),r.get(t)}},a=initMutationObserver(n.mutationCb,n.configuration,n.shadowRootsController,document),s=n.mousemoveCb,c=throttle(function(t){var e=getEventTarget(t);if(hasSerializedNode(e)){var n=tryToComputeCoordinates(t);if(!n)return;s([{id:getSerializedNodeId(e),timeOffset:0,x:n.x,y:n.y}],isTouchEvent(t)?t$.TouchMove:t$.MouseMove)}},50,{trailing:!1}).throttled,l=addEventListeners(I,document,["mousemove","touchmove"],c,{capture:!0,passive:!0}).stop,d=n.mouseInteractionCb,f=addEventListeners(I,document,Object.keys(ee),function(t){var e,n=getEventTarget(t);if(getNodePrivacyLevel(n,I.defaultPrivacyLevel)!==t1.HIDDEN&&hasSerializedNode(n)){var r=getSerializedNodeId(n),i=ee[t.type];if(i!==tQ.Blur&&i!==tQ.Focus){var a=tryToComputeCoordinates(t);if(!a)return;e={id:r,type:i,x:a.x,y:a.y}}else e={id:r,type:i};d(polyfills_assign({id:o.getIdForEvent(t)},assembleIncrementalSnapshot(t$.MouseInteraction,e)))}},{capture:!0,passive:!0}).stop,p=n.scrollCb,m=n.configuration.defaultPrivacyLevel,h=n.elementsScrollPositions,g=throttle(function(t){var e=getEventTarget(t);if(e&&getNodePrivacyLevel(e,m)!==t1.HIDDEN&&hasSerializedNode(e)){var n=getSerializedNodeId(e),r=e===document?{scrollTop:getScrollY(),scrollLeft:getScrollX()}:{scrollTop:Math.round(e.scrollTop),scrollLeft:Math.round(e.scrollLeft)};h.set(e,r),p({id:n,x:r.scrollLeft,y:r.scrollTop})}},100).throttled,v=addEventListener(I,document,"scroll",g,{capture:!0,passive:!0}).stop,y=n.viewportResizeCb,b=initViewportObservable(I).subscribe(y).unsubscribe,_=initInputObserver(I,n.inputCb),S=n.mediaInteractionCb,w=n.configuration.defaultPrivacyLevel,E=addEventListeners(I,document,["play","pause"],function(t){var e=getEventTarget(t);e&&getNodePrivacyLevel(e,w)!==t1.HIDDEN&&hasSerializedNode(e)&&S({id:getSerializedNodeId(e),type:"play"===t.type?t0.Play:t0.Pause})},{capture:!0,passive:!0}).stop,C=function(t){function checkStyleSheetAndCallback(t,e){t&&hasSerializedNode(t.ownerNode)&&e(getSerializedNodeId(t.ownerNode))}var e=[instrumentMethodAndCallOriginal(CSSStyleSheet.prototype,"insertRule",{before:function(e,n){checkStyleSheetAndCallback(this,function(r){return t({id:r,adds:[{rule:e,index:n}]})})}}),instrumentMethodAndCallOriginal(CSSStyleSheet.prototype,"deleteRule",{before:function(e){checkStyleSheetAndCallback(this,function(n){return t({id:n,removes:[{index:e}]})})}})];function instrumentGroupingCSSRuleClass(n){e.push(instrumentMethodAndCallOriginal(n.prototype,"insertRule",{before:function(e,n){var r=this;checkStyleSheetAndCallback(this.parentStyleSheet,function(i){var o=getPathToNestedCSSRule(r);o&&(o.push(n||0),t({id:i,adds:[{rule:e,index:o}]}))})}}),instrumentMethodAndCallOriginal(n.prototype,"deleteRule",{before:function(e){var n=this;checkStyleSheetAndCallback(this.parentStyleSheet,function(r){var i=getPathToNestedCSSRule(n);i&&(i.push(e),t({id:r,removes:[{index:i}]}))})}}))}return"undefined"!=typeof CSSGroupingRule?instrumentGroupingCSSRuleClass(CSSGroupingRule):(instrumentGroupingCSSRuleClass(CSSMediaRule),instrumentGroupingCSSRuleClass(CSSSupportsRule)),function(){return e.forEach(function(t){return t.stop()})}}(n.styleSheetCb),T=n.focusCb,k=addEventListeners(I,window,["focus","blur"],function(){T({has_focus:document.hasFocus()})}).stop,x=function(t,e){var n=window.visualViewport;if(!n)return noop;var r=throttle(function(){e(getVisualViewport(n))},200,{trailing:!1}),i=r.throttled,o=r.cancel,a=addEventListeners(t,n,["resize","scroll"],i,{capture:!0,passive:!0}).stop;return function(){a(),o()}}(I,n.visualViewportResizeCb),A=n.lifeCycle,O=n.frustrationCb,N=A.subscribe(10,function(t){var e,n,r;"action"===t.rawRumEvent.type&&"click"===t.rawRumEvent.action.type&&(null===(n=null===(e=t.rawRumEvent.action.frustration)||void 0===e?void 0:e.type)||void 0===n?void 0:n.length)&&"events"in t.domainContext&&(null===(r=t.domainContext.events)||void 0===r?void 0:r.length)&&O({timestamp:t.rawRumEvent.date,type:tJ.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map(function(t){return o.getIdForEvent(t)})}})}).unsubscribe,{flush:function(){a.flush()},stop:function(){a.stop(),l(),f(),v(),b(),_(),E(),C(),k(),x(),N()}}),U=P.stop,D=P.flush;function flushMutations(){M.flush(),D()}return{stop:function(){M.stop(),U()},takeSubsequentFullSnapshot:function(t){flushMutations(),takeFullSnapshot(t,{shadowRootsController:M,status:1,elementsScrollPositions:L})},flushMutations:flushMutations,shadowRootsController:M}}({emit:c,configuration:e,lifeCycle:t}),f=d.stop,p=d.takeSubsequentFullSnapshot,m=d.flushMutations,h=t.subscribe(4,function(){m(),c({timestamp:timeStampNow(),type:tJ.ViewEnd})}).unsubscribe,g=t.subscribe(2,function(t){p(t.startClocks.timeStamp)}).unsubscribe;return{stop:function(){h(),g(),f(),l()}}}));s=(o=getGlobalObject())[a="DD_RUM"],o[a]=ei,s&&s.q&&s.q.forEach(function(t){return catchUserErrors(t,"onReady callback threw an error:")()});var eo=n(24043),ea=n(248),es=n(62290),ec=n(28144),eu=n(36086),getCssVarsFromObject=function(t,e){var n={};return Object.entries(e).forEach(function(e){var r=(0,eo._)(e,2),i=r[0],o=r[1];n["--lns-".concat((t?"".concat(t,"-"):"")+i)]=o}),n},el=getCssVarsFromObject(void 0,{unit:"".concat(es.bf/16,"rem")}),ed=getCssVarsFromObject("fontWeight",es.vC),ef=getCssVarsFromObject(void 0,(c={},Object.entries(es.iH).forEach(function(t){var e=(0,eo._)(t,2),n=e[0],r=e[1],i={};i["fontSize-".concat(n)]=(0,eu.u)(r.fontSize),i["lineHeight-".concat(n)]=r.lineHeight,Object.assign(c,i,{})}),c)),ep=getCssVarsFromObject("radius",es.pD),em=getCssVarsFromObject("shadow",es.q),eh=getCssVarsFromObject(void 0,(l={},Object.entries(es.RZ).forEach(function(t){var e=(0,eo._)(t,2),n=e[0],r=e[1];l["space-".concat(n)]=(0,eu.u)(r)}),l)),eg=getCssVarsFromObject(void 0,{formFieldBorderWidth:"1px",formFieldBorderWidthFocus:"2px",formFieldHeight:(0,eu.u)(4.5),formFieldRadius:(0,eu.u)(2.25),formFieldHorizontalPadding:(0,eu.u)(2),formFieldBorderShadow:"\n inset 0 0 0 var(--lns-formFieldBorderWidth) var(--lns-color-formFieldBorder)\n ",formFieldBorderShadowFocus:"\n inset 0 0 0 var(--lns-formFieldBorderWidthFocus) var(--lns-color-blurple),\n 0 0 0 var(--lns-formFieldBorderWidthFocus) var(--lns-color-focusRing)\n "}),ev=getCssVarsFromObject("color",(d={},Object.keys(Object.assign(Object.assign({},ec.Ht),ec.et)).forEach(function(t){d[t]="hsla(".concat(ec.oZ[t].h,",").concat(ec.oZ[t].s,"%,").concat(ec.oZ[t].l,"%,").concat(ec.oZ[t].a,")")}),d)),ey=getCssVarsFromObject(void 0,Object.assign(Object.assign({},(f=function(t,e){return Object.keys(t).reduce(function(n,r){var i=t[r];return n["".concat(e,"-color-").concat(r)]="hsla(".concat(i.h,",").concat(i.s,"%,").concat(i.l,"%,").concat(i.a,")"),n},{})})(ec.lB.light,"themeLight")),f(ec.lB.dark,"themeDark")));/*! * css-vars-ponyfill * v2.4.8 * https://jhildenbiddle.github.io/css-vars-ponyfill/ * (c) 2018-2022 John Hildenbiddle * MIT license */function _extends(){return(_extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e * MIT license */function getUrls(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:e.mimeType||null,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},r=Array.isArray(t)?t:[t],i=Array.apply(null,Array(r.length)).map(function(t){return null});function isValidCss(t){var e="string"==typeof t,n=e&&"<"===t.trim().charAt(0);return e&&!n}function onError(t,e){n.onError(t,r[e],e)}function onSuccess(t,e){var o=n.onSuccess(t,r[e],e);t=!1===o?"":o||t,i[e]=t,-1===i.indexOf(null)&&n.onComplete(i)}var o=document.createElement("a");r.forEach(function(t,e){if(o.setAttribute("href",t),o.href=String(o.href),document.all&&!window.atob&&o.host.split(":")[0]!==location.host.split(":")[0]){if(o.protocol===location.protocol){var r=new XDomainRequest;r.open("GET",t),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){var t=r.responseText;isValidCss(t)?onSuccess(t,e):onError(r,e)},r.onerror=function(t){onError(r,e)},setTimeout(function(){r.send()},0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(t,")")),onError(null,e)}else{var i=new XMLHttpRequest;i.open("GET",t),n.mimeType&&i.overrideMimeType&&i.overrideMimeType(n.mimeType),n.onBeforeSend(i,t,e),i.onreadystatechange=function(){if(4===i.readyState){var t=i.responseText;i.status<400&&isValidCss(t)?onSuccess(t,e):0===i.status&&isValidCss(t)?onSuccess(t,e):onError(i,e)}},i.send()}})}/** * Gets CSS data from