forked from bombastictranz/awesome-go
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path5973-6f5e2bb0d95df2e5.js.download
1 lines (1 loc) · 227 KB
/
5973-6f5e2bb0d95df2e5.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5973],{70135:function(t,e,n){n.d(e,{v:function(){return r9}});var r,i,o,a,s,u,c,l,f,d,p,h,v,m,y,g,b,_,w,S,x,k,E,T,C,A,I,O={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},R=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Object.prototype.hasOwnProperty.call(O,t)||(t=O.log),R[t].apply(R,e)};function N(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return t.apply(void 0,n)}catch(t){R.error(e,t)}}}R.debug=console.debug.bind(console),R.log=console.log.bind(console),R.info=console.info.bind(console),R.warn=console.warn.bind(console),R.error=console.error.bind(console);var P=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},M=!1;function L(t){M=t}function F(t){return function(){return D(t,this,arguments)}}function D(t,e,n){try{return t.apply(e,n)}catch(t){if(U(O.error,t),s)try{s(t)}catch(t){U(O.error,t)}}}function U(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];M&&R.apply(void 0,P([t,"[MONITOR]"],e,!1))}function j(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&(t="object"==typeof self?self:window),t}function B(t,e){var n,r=j();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function z(t,e){return B(j(),"setTimeout")(F(t),e)}function q(t){B(j(),"clearTimeout")(t)}function Z(t,e){return B(window,"setInterval")(F(t),e)}function G(t){B(window,"clearInterval")(t)}function J(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],u=0;u<arguments.length;u++)n[u]=arguments[u];if(s){r=n;return}o?t.apply(void 0,n):r=n,s=!0,i=z(function(){a&&r&&t.apply(void 0,r),s=!1,r=void 0},e)},cancel:function(){q(i),s=!1,r=void 0}}}function H(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}function V(t){return H({},t)}function K(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,K)}function W(t){return 0!==t&&100*Math.random()<=t}function Y(){}function X(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);var r=$(Object.prototype),i=$(Array.prototype),o=$(Object.getPrototypeOf(t)),a=$(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function $(t){var e=t.toJSON;return e?(delete t.toJSON,function(){t.toJSON=e}):Y}function Q(t,e){return -1!==t.indexOf(e)}function tt(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach(function(t){return e.push(t)});else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function te(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n))return r}}function tn(t){return tr(t)&&t>=0&&t<=100}function tr(t){return"number"==typeof t}function ti(t){return Object.keys(t).map(function(e){return t[e]})}function to(t,e){return Object.keys(t).some(function(n){return t[n]===e})}function ta(t){return Object.keys(t).map(function(e){return[e,t[e]]})}function ts(t){return 0===Object.keys(t).length}function tu(t,e){return t.slice(0,e.length)===e}function tc(t){if(t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return"".concat(t.protocol,"//").concat(e)}function tl(t,e){var n=new RegExp("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)")).exec(t);return n?n[1]:void 0}function tf(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 td(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function tp(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=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<e.length;++o)i[o]=tp(i[o],e[o],n);return i}var a="object"===td(t)?t:{};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=tp(a[s],e[s],n));return a}}function th(t){return tp(void 0,t)}function tv(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r];null!=i&&(t=tp(t,i))}return t}function tm(t){var e=td(t);return"string"===e||"function"===e||t instanceof RegExp}function ty(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?tu(e,t):t===e}catch(t){R.error(t)}return!1})}function tg(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\x00"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)})}var tb=/[^\u0000-\u007F]/;function t_(t){return tb.test(t)?void 0!==window.TextEncoder?new TextEncoder().encode(t).length:new Blob([t]).size:t.length}(r=u||(u={})).PAGEHIDE="pagehide",r.SHADOW_DOM_DEBUG="shadow_dom_debug",r.FEATURE_FLAGS="feature_flags",r.RESOURCE_DURATIONS="resource_durations",r.RESOURCE_PAGE_STATES="resource_page_states",r.CLICKMAP="clickmap",r.COLLECT_FLUSH_REASON="collect_flush_reason",r.SANITIZE_INPUTS="sanitize_inputs";var tw=new Set;function tS(t){return tw.has(t)}function tx(t,e){return t>3072&&(R.warn("The ".concat(e," data is over ").concat(3,"KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth.")),!0)}function tk(t,e){void 0===e&&(e=225280);var n,r=$(Object.prototype),i=$(Array.prototype),o=[],a=new WeakMap,s=tE(t,"$",void 0,o,a),u=(null===(n=JSON.stringify(s))||void 0===n?void 0:n.length)||0;if(u>e){tT(e,"discarded",t);return}for(;o.length>0&&u<e;){var c=o.shift(),l=0;if(Array.isArray(c.source))for(var f=0;f<c.source.length;f++){var d=tE(c.source[f],c.path,f,o,a);if(void 0!==d?u+=JSON.stringify(d).length:u+=4,u+=l,l=1,u>e){tT(e,"truncated",t);break}c.target[f]=d}else for(var f in c.source)if(Object.prototype.hasOwnProperty.call(c.source,f)){var d=tE(c.source[f],c.path,f,o,a);if(void 0!==d&&(u+=JSON.stringify(d).length+l+f.length+3,l=1),u>e){tT(e,"truncated",t);break}c.target[f]=d}}return r(),i(),s}function tE(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)return a;if(i.has(t))return"[Reference seen at ".concat(i.get(t),"]");var s=void 0!==n?"".concat(e,".").concat(n):e,u=Array.isArray(o)?[]:{};return i.set(t,s),r.push({source:o,target:u,path:s}),u}function tT(t,e,n){R.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}function tC(t,e){void 0===e&&(e=t_);var n,r={},i=!1,o=J(function(r){n=e(X(r)),i||(i=tx(n,t))},200).throttled;return{getBytesCount:function(){return n},get:function(){return r},add:function(t,e){r[t]=e,o(r)},remove:function(t){delete r[t],o(r)},set:function(t){o(r=t)},getContext:function(){return th(r)},setContext:function(t){o(r=tS(u.SANITIZE_INPUTS)?tk(t):th(t))},setContextProperty:function(t,e){r[t]=tS(u.SANITIZE_INPUTS)?tk(e):th(e),o(r)},removeContextProperty:function(t){delete r[t],o(r)},clearContext:function(){r={},n=0}}}var tA=function(){function t(){this.buffer=[]}return t.prototype.add=function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},t.prototype.drain=function(){this.buffer.forEach(function(t){return t()}),this.buffer.length=0},t}();function tI(t){var e;return{relative:t,timeStamp:(e=tR()-performance.now())>tF()?Math.round(e+t):Math.round(tF()+t)}}function tO(t){return tr(t)?+(1e6*t).toFixed(0):t}function tR(){return new Date().getTime()}function tN(){return tR()}function tP(){return performance.now()}function tM(){return{relative:tP(),timeStamp:tN()}}function tL(){return{relative:0,timeStamp:tF()}}function tF(){return void 0===c&&(c=performance.timing.navigationStart),c}function tD(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):"",u=r&&r.secure?";secure":"";document.cookie="".concat(t,"=").concat(e,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(u)}function tU(t){return tl(document.cookie,t)}function tj(t,e){tD(t,"",0,e)}function tB(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||tU("datadog-synthetics-injects-rum"))}function tz(){var t=j().DatadogEventBridge;if(t)return{getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n){t.send(JSON.stringify({eventType:e,event:n}))}}}function tq(t){void 0===t&&(t=null===(e=j().location)||void 0===e?void 0:e.hostname);var e,n=tz();return!!n&&n.getAllowedWebViewHosts().some(function(e){var n,r;return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r)})}function tZ(t){var e=[],n=t$(t,"stack"),r=String(t);return n&&tu(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(function(t){var n=function(t){var e=tH.exec(t);if(e){var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=tV.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=tK.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=tW.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=tY.exec(t);if(e){var n=e[3]&&e[3].indexOf(" > eval")>-1,r=tX.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:t$(t,"message"),name:t$(t,"name"),stack:e}}var tG="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",tJ="(?::(\\d+))",tH=RegExp("^\\s*at (.*?) ?\\(".concat(tG).concat(tJ,"?").concat(tJ,"?\\)?\\s*$"),"i"),tV=new RegExp("\\((\\S*)".concat(tJ).concat(tJ,"\\)")),tK=RegExp("^\\s*at ?".concat(tG).concat(tJ,"?").concat(tJ,"??\\s*$"),"i"),tW=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tY=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,tX=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function t$(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var tQ={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",SOURCE:"source",REPORT:"report"};function t0(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling;if(!e||void 0===e.message&&!(n instanceof Error)){var c=tS(u.SANITIZE_INPUTS)?tk(n):n;return{startClocks:i,source:a,handling:s,originalError:c,message:"".concat(o," ").concat(X(c)),stack:"No stack, consider using an instance of Error",handlingStack:r,type:e&&e.name}}return{startClocks:i,source:a,handling:s,originalError:n,message:e.message||"Empty message",stack:t1(e),handlingStack:r,type:e.name,causes:function(t,e){for(var n=t,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var i=tZ(n.cause);r.push({message:n.cause.message,source:e,type:null==i?void 0:i.name,stack:i&&t1(i)}),n=n.cause}return r.length?r:void 0}(n,a)}}function t1(t){var e=t2(t);return t.stack.forEach(function(t){var n="?"===t.func?"<anonymous>":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 t2(t){return"".concat(t.name||"Error",": ").concat(t.message)}function t3(){var t,e=Error();if(!e.stack)try{throw e}catch(t){}return D(function(){var n=tZ(e);n.stack=n.stack.slice(2),t=t1(n)}),t}function t5(t){var e=H({},t);return["id","name","email"].forEach(function(t){t in e&&(e[t]=String(e[t]))}),e}function t4(t){return t6(t,tc(window.location)).href}function t6(t,e){if(function(){if(void 0!==f)return f;try{var t=new URL("http://test/path");f="http://test/path"===t.href}catch(t){f=!1}return f}())try{return void 0!==e?new URL(t,e):new URL(t)}catch(n){throw Error("Failed to construct URL. ".concat(X({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw Error("Invalid URL: '".concat(t,"'"));var n=document,r=n.createElement("a");if(void 0!==e){var i=(n=document.implementation.createHTMLDocument("")).createElement("base");i.href=e,n.head.appendChild(i),n.body.appendChild(r)}return r.href=t,r}var t8="datadoghq.com",t7={logs:"logs",rum:"rum",sessionReplay:"session-replay"},t9={logs:"logs",rum:"rum",sessionReplay:"replay"};function et(t,e,n){var r=function(t,e){var n="/api/v2/".concat(t9[e]),r=t.proxy,i=t.proxyUrl;if(r){var o=t4(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?t8:n,i=t.internalAnalyticsSubdomain;if(i&&r===t8)return"".concat(i,".").concat(t8);var o=r.split("."),a=o.pop(),s="ap1.datadoghq.com"!==r?"".concat(t7[e],"."):"";return"".concat(s,"browser-intake-").concat(o.join("-"),".").concat(a)}(t,e);if(void 0===r&&i){var s=t4(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,a){var s,c,l,f;return r((s=t.clientToken,c=t.internalAnalyticsSubdomain,l=["sdk_version:".concat("4.38.0"),"api:".concat(i)].concat(n),o&&tS(u.COLLECT_FLUSH_REASON)&&l.push("flush_reason:".concat(o)),a&&l.push("retry_count:".concat(a.count),"retry_after:".concat(a.lastFailureStatus)),f=["ddsource=browser","ddtags=".concat(encodeURIComponent(l.join(","))),"dd-api-key=".concat(s),"dd-evp-origin-version=".concat(encodeURIComponent("4.38.0")),"dd-evp-origin=browser","dd-request-id=".concat(K())],"rum"===e&&f.push("batch_time=".concat(tN())),c&&f.reverse(),f.join("&")))},urlPrefix:r(""),endpointType:e}}var ee=/[^a-z0-9_:./-]/;function en(t,e){var n=200-t.length-1;(e.length>n||ee.test(e))&&R.warn("".concat(t," value doesn't meet tag requirements and will be sanitized"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}var er={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function ei(t){var e={};return e.secure=!!t.useSecureSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.useCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===l){for(var t="dd_site_test_".concat(K()),e=window.location.hostname.split("."),n=e.pop();e.length&&!tU(t);)tD(t,"test",1e3,{domain:n="".concat(e.pop(),".").concat(n)});tj(t,{domain:n}),l=n}return l}()),e}function eo(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function ea(t,e,n,r){if(void 0!==es()&&n.findTrackedSession()){var i,o,a,s,u,c=te(t.allowedTracingUrls,function(t){return ty([t.match],e.url,!0)});c&&(e.traceId=new eu,e.spanId=new eu,e.traceSampled=!tr(t.traceSampleRate)||W(t.traceSampleRate),r((i=e.traceId,o=e.spanId,a=e.traceSampled,s=c.propagatorTypes,u={},s.forEach(function(t){switch(t){case"datadog":H(u,{"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":H(u,{traceparent:"00-0000000000000000".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-0").concat(a?"1":"0")});break;case"b3":H(u,{b3:"".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-").concat(a?"1":"0")});break;case"b3multi":H(u,{"X-B3-TraceId":i.toPaddedHexadecimalString(),"X-B3-SpanId":o.toPaddedHexadecimalString(),"X-B3-Sampled":a?"1":"0"})}}),u)))}}function es(){return window.crypto||window.msCrypto}var eu=function(){function t(){this.buffer=new Uint8Array(8),es().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return t.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},t.prototype.toDecimalString=function(){return this.toString(10)},t.prototype.toPaddedHexadecimalString=function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},t.prototype.readInt32=function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]},t}();function ec(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}function el(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}var ef=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.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()}}},t.prototype.notify=function(t){this.observers.forEach(function(e){return e(t)})},t}();function ed(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=new ef(function(){var e=t.map(function(t){return t.subscribe(function(t){return n.notify(t)})});return function(){return e.forEach(function(t){return t.unsubscribe()})}});return n}function ep(t,e,n,r){return eh(t,[e],n,r)}function eh(t,e,n,r){var i=void 0===r?{}:r,o=i.once,a=i.capture,s=i.passive,u=F(o?function(t){f(),n(t)}:n),c=s?{capture:a,passive:s}:a,l=B(t,"addEventListener");function f(){var n=B(t,"removeEventListener");e.forEach(function(e){return n.call(t,e,u,c)})}return e.forEach(function(e){return l.call(t,e,u,c)}),{stop:f}}var ev={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"},em={log:"log",configuration:"configuration"},ey=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","http://localhost","<anonymous>"],eg=["ddog-gov.com"],eb={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function e_(t,e){U(O.debug,t,e),eS(H({type:em.log,message:t,status:"debug"},e))}function ew(t){eS(H({type:em.log,status:"error"},function(t){if(t instanceof Error){var e=tZ(t);return{error:{kind:e.name,stack:t1((e.stack=e.stack.filter(function(t){return!t.url||ey.some(function(e){return tu(t.url,e)})}),e))},message:e.message}}return{error:{stack:"Not an instance of error"},message:"Uncaught ".concat(X(t))}}(t)))}function eS(t){d&&eb.sentEventCount<eb.maxEventsPerPage&&(eb.sentEventCount+=1,d(t))}function ex(){var t,e=window;if(e.Zone&&(t=B(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=B(new e.MutationObserver(Y),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function ek(t,e){document.readyState===t||"complete"===document.readyState?e():ep(window,"complete"===t?"load":"DOMContentLoaded",e,{once:!0})}var eE="initial_document",eT=[["document",function(t){return eE===t}],["xhr",function(t){return"xmlhttprequest"===t}],["fetch",function(t){return"fetch"===t}],["beacon",function(t){return"beacon"===t}],["css",function(t,e){return/\.css$/i.test(e)}],["js",function(t,e){return/\.js$/i.test(e)}],["image",function(t,e){return Q(["image","img","icon"],t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)}],["font",function(t,e){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)}],["media",function(t,e){return Q(["audio","video"],t)||null!==/\.(mp3|mp4)$/i.exec(e)}]];function eC(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=1;n<t.length;n+=1)if(t[n-1]>t[n])return!1;return!0}function eA(t){if(eC(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!eI(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e<t.startTime&&(e=t.startTime),n<t.startTime&&(n=t.fetchStart),eC(t.startTime,e,n,t.fetchStart))return H({},t,{redirectEnd:n,redirectStart:e})}}function eI(t){return t.fetchStart!==t.startTime}function eO(t,e,n){return{duration:tO(n-e),start:tO(e-t)}}function eR(t,e){return e&&!t.isIntakeUrl(e)}function eN(t){return t.nodeType===Node.TEXT_NODE}function eP(t){return t.nodeType===Node.ELEMENT_NODE}function eM(t){return eP(t)&&!!t.shadowRoot}function eL(t){return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&eP(t.host)}function eF(t){return eL(t)?t.host:t.parentNode}function eD(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function eU(t){if(t&&t.nodeType===Node.COMMENT_NODE){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function ej(){return void 0!==window.performance&&"getEntries"in performance}function eB(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function ez(){var t={},e=performance.timing;for(var n in e)if(tr(e[n])){var r=e[n];t[n]=0===r?0:r-tF()}return t}function eq(t,e,n){var r=n.filter(function(t){return"resource"===t.entryType||"navigation"===t.entryType||"paint"===t.entryType||"longtask"===t.entryType||"largest-contentful-paint"===t.entryType||"first-input"===t.entryType||"layout-shift"===t.entryType}).filter(function(t){return!("navigation"===t.entryType&&t.loadEventEnd<=0)&&("resource"!==t.entryType||!!eR(e,t.name))});r.length&&t.notify(0,r)}function eZ(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&z(function(){r=0},6e4),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of ".concat(t,"s by minute: ").concat(e),source:tQ.AGENT,startClocks:tM()})}finally{i=!1}}return!0}}}function eG(t,e){for(var n=t,r=0,i=e.split(".");r<i.length;r++){var o=i[r];if(!eH(n,o))return;n=n[o]}return n}function eJ(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!eH(r,a))return;o!==i.length-1?r=r[a]:r[a]=n}}function eH(t,e){return"object"==typeof t&&null!==t&&Object.prototype.hasOwnProperty.call(t,e)}function eV(){var t;return p||(p=t=new ef(function(){var e=J(function(){t.notify(eK())},200).throttled;return ep(window,"resize",e,{capture:!0,passive:!0}).stop})),p}function eK(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var eW=["view.url","view.referrer","action.target.name","error.message","error.stack","error.resource.url","resource.url"],eY=eW.concat(["context"]),eX=[];function e$(){if(!(eX.length>2500)){var t=eX[eX.length-1],e=tP();(void 0===t||void 0!==t.end)&&eX.push({start:e})}}function eQ(){if(0!==eX.length){var t=eX[eX.length-1],e=tP();void 0===t.end&&(t.end=e)}}function e0(t){for(var e=eX.length-1;e>=0;e--){var n=eX[e];if(void 0!==n.end&&t>n.end)break;if(t>n.start&&(void 0===n.end||t<n.end))return!0}return!1}function e1(t,e){for(var n=t+e,r=[],i=Math.max(0,eX.length-500),o=eX.length-1;o>=i;o--){var a=eX[o];if(void 0!==a.end&&t>a.end)break;if(!(n<a.start)){var s=t>a.start?t:a.start,u=s-t,c=(void 0===a.end||n<a.end?n:a.end)-s;r.unshift({start:tO(u),duration:tO(c)})}}return r}var e2=function(){function t(){this.callbacks={}}return t.prototype.notify=function(t,e){var n=this.callbacks[t];n&&n.forEach(function(t){return t(e)})},t.prototype.subscribe=function(t,e){var n=this;return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:function(){n.callbacks[t]=n.callbacks[t].filter(function(t){return e!==t})}}},t}(),e3=1/0,e5=function(){function t(t){var e=this;this.expireDelay=t,this.entries=[],this.clearOldContextsInterval=Z(function(){return e.clearOldContexts()},6e4)}return t.prototype.add=function(t,e){var n=this,r={context:t,startTime:e,endTime:e3,remove:function(){var t=n.entries.indexOf(r);t>=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.entries.unshift(r),r},t.prototype.find=function(t){void 0===t&&(t=e3);for(var e=0,n=this.entries;e<n.length;e++){var r=n[e];if(r.startTime<=t){if(t<=r.endTime)return r.context;break}}},t.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===e3&&e.close(t)},t.prototype.findAll=function(t){return void 0===t&&(t=e3),this.entries.filter(function(e){return e.startTime<=t&&t<=e.endTime}).map(function(t){return t.context})},t.prototype.reset=function(){this.entries=[]},t.prototype.stop=function(){G(this.clearOldContextsInterval)},t.prototype.clearOldContexts=function(){for(var t=tP()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()},t}();function e4(t,e,n){var r=t[e],i=n(r),o=function(){if("function"==typeof i)return i.apply(this,arguments)};return t[e]=o,{stop:function(){t[e]===o?t[e]=r:i=r}}}function e6(t,e,n){var r=n.before,i=n.after;return e4(t,e,function(t){return function(){var e,n=arguments;return r&&D(r,this,n),"function"==typeof t&&(e=t.apply(this,n)),i&&D(i,this,n),e}})}function e8(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:Y};var i=function(t,e){z(function(){n(t,e)},0)},o=function(t){r.set.call(this,t),i(this,t)};return Object.defineProperty(t,e,{set:o}),{stop:function(){var n;(null===(n=Object.getOwnPropertyDescriptor(t,e))||void 0===n?void 0:n.set)===o?Object.defineProperty(t,e,r):i=Y}}}var e7=new WeakMap;function e9(t,e){e7.set(this,{state:"open",method:t,url:t4(String(e))})}function nt(t){var e=this,n=e7.get(this);if(n){n.state="start",n.startTime=tP(),n.startClocks=tM(),n.isAborted=!1,n.xhr=this;var r=!1,i=e6(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&o()}}).stop,o=F(function(){var a;e.removeEventListener("loadend",o),i(),r||(r=!0,n.state="complete",n.duration=(a=n.startClocks.timeStamp,tN()-a),n.status=e.status,t.notify(V(n)))});this.addEventListener("loadend",o),t.notify(n)}}function ne(){var t=e7.get(this);t&&(t.isAborted=!0)}function nn(t,e,n){var r=n&&n.method||e instanceof Request&&e.method||"GET",i=e instanceof Request?e.url:t4(String(e)),o={state:"start",init:n,input:e,method:r,startClocks:tM(),url:i};return t.notify(o),o}function nr(t,e,n){var r=function(e){n.state="resolve","stack"in e||e instanceof Error?(n.status=0,n.isAborted=e instanceof DOMException&&e.code===DOMException.ABORT_ERR,n.error=e):"status"in e&&(n.response=e,n.responseType=e.type,n.status=e.status,n.isAborted=!1),t.notify(n)};e.then(F(r),F(r))}var ni=1;function no(){var t=ni;return ni+=1,t}function na(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,i=void 0===r?Y:r,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(11,function(t){if("view"!==t.type&&n(t))switch(t.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,t.action.frustration&&(o.frustrationCount+=t.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":o.resourceCount+=1,i()}});return{stop:function(){a.unsubscribe()},eventCounts:o}}function ns(t,e,n){var r,i=!1,o=z(F(function(){return c({hadActivity:!1})}),100),a=n&&z(F(function(){return c({hadActivity:!0,end:tN()})}),n),s=t.subscribe(function(t){var e=t.isBusy;q(o),q(r);var n=tN();e||(r=z(F(function(){return c({hadActivity:!0,end:n})}),100))}),u=function(){i=!0,q(o),q(r),q(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}function nu(t,e,n){var r=new ef(function(){var i,o=[],a=0;o.push(e.subscribe(u),t.subscribe(0,function(t){t.some(function(t){return"resource"===t.entryType&&!nc(n,t.name)})&&u()}),t.subscribe(5,function(t){nc(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())}),t.subscribe(6,function(t){nc(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())}));var s=e6(window,"open",{before:u}).stop;return function(){s(),o.forEach(function(t){return t.unsubscribe()})};function u(){r.notify({isBusy:a>0})}});return r}function nc(t,e){return ty(t.excludedActivityUrls,e)}var nl="data-dd-action-name";function nf(t,e){if(void 0===g&&(g="closest"in HTMLElement.prototype),g)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 nm(nv(n.getAttribute(e).trim()))}var nd=[function(t,e){if(void 0===y&&(y="labels"in HTMLInputElement.prototype),y){if("labels"in t&&t.labels&&t.labels.length>0)return ny(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&te(t.ownerDocument.querySelectorAll("label"),function(e){return e.htmlFor===t.id});return n&&ny(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 ny(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 ny(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 ny(t.options[0],e)}],np=[function(t,e){return ny(t,e)}];function nh(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;o<n.length;o++){var a=(0,n[o])(r,e);if("string"==typeof a){var s=a.trim();if(s)return nm(nv(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function nv(t){return t.replace(/\s+/g," ")}function nm(t){return t.length>100?"".concat(tf(t,100)," [...]"):t}function ny(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return document.documentMode&&r("script, style"),r("[".concat(nl,"]")),e&&r("[".concat(e,"]")),n}return t.textContent}}var ng=[nl,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],nb=[nS,function(t){if(t.id&&!nw(t.id))return"#".concat(tg(t.id))}],n_=[nS,function(t){if("BODY"!==t.tagName&&t.classList.length>0)for(var e=0;e<t.classList.length;e+=1){var n=t.classList[e];if(!nw(n))return"".concat(t.tagName,".").concat(tg(n))}},function(t){return t.tagName}];function nw(t){return/[0-9]/.test(t)}function nS(t,e){if(e){var n=i(e);if(n)return n}for(var r=0;r<ng.length;r++){var n=i(ng[r]);if(n)return n}function i(e){if(t.hasAttribute(e))return"".concat(t.tagName,"[").concat(e,'="').concat(tg(t.getAttribute(e)),'"]')}}function nx(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a){var s=nT(a,i);if(n(t,s))return s}}}function nk(t,e){return 1===t.ownerDocument.querySelectorAll(e).length}function nE(t,e){return 1===t.parentElement.querySelectorAll(!function(){if(void 0===b)try{document.querySelector(":scope"),b=!0}catch(t){b=!1}return b}()?e:nT(":scope",e)).length}function nT(t,e){return e?"".concat(t,">").concat(e):t}function nC(){var t=window.getSelection();return!t||t.isCollapsed}function nA(t){return t.target instanceof Element&&!1!==t.isPrimary}function nI(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 nO(t,e){var n=nR(t)?{action:{id:t.id,loading_time:tO(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,r=nR(t)?void 0:t.context,i=tv({action:{id:K(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action"},n),o=e.isInForegroundAt(t.startClocks.relative);return void 0!==o&&(i.view={in_foreground:o}),{customerContext:r,rawRumEvent:i,startTime:t.startClocks.relative,domainContext:nR(t)?{event:t.event,events:t.events}:{}}}function nR(t){return"custom"!==t.type}var nN=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/,nP={},nM={intervention:"intervention",cspViolation:"csp_violation"};function nL(t,e,n,r,i){return n&&t1({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}function nF(t){return t.startTime+t.duration}function nD(t){var e,n,r;return{resource:H({duration:(e=t.duration,n=t.startTime,r=t.responseEnd,0===e&&n<r?tO(r-n):tO(e)),size:function(t){if(t.startTime<t.responseStart)return t.decodedBodySize}(t)},function(t){var e=eA(t);if(e){var n=e.startTime,r=e.fetchStart,i=e.redirectStart,o=e.redirectEnd,a=e.domainLookupStart,s=e.domainLookupEnd,u=e.connectStart,c=e.secureConnectionStart,l=e.connectEnd,f=e.requestStart,d=e.responseStart,p={download:eO(n,d,e.responseEnd),first_byte:eO(n,f,d)};return l!==r&&(p.connect=eO(n,u,l),eC(u,c,l)&&(p.ssl=eO(n,c,l))),s!==r&&(p.dns=eO(n,a,s)),eI(t)&&(p.redirect=eO(n,i,o)),p}}(t))}}function nU(t){return tr(t.traceSampleRate)?t.traceSampleRate/100:void 0}function nj(t,e){var n=t.findTrackedSession(e.relative);return{_dd:{discarded:!n||!n.resourceAllowed}}}function nB(t,e,n){if(tS(u.RESOURCE_PAGE_STATES))return{_dd:{page_states:t.findAll(e.relative,n),page_was_discarded:String(document.wasDiscarded)}}}function nz(t){return void 0===t&&(t=window),_||("hidden"===document.visibilityState?_={timeStamp:0}:(_={timeStamp:1/0},w=eh(t,["pagehide","visibilitychange"],function(t){("pagehide"===t.type||"hidden"===document.visibilityState)&&(_.timeStamp=t.timeStamp,w())},{capture:!0}).stop)),_}function nq(t,e,n,r,i,o,a){void 0===o&&(o=tM());var s,u,c,l,f,d,p,h,v,m,y,g,b,_,w,S,x,k=K(),E={},T={},C=0,A=V(r);a&&(w=a.name,S=a.service,x=a.version),t.notify(2,{id:k,name:w,startClocks:o,service:S,version:x});var I=J(B,3e3,{leading:!1}),O=I.throttled,N=I.cancel,P=(h={},m=(v=function(t,e,n,r,i,o){var a="initial_load"===r,s=!0,u=[];function c(){s||a||!(u.length>0)||o(Math.max.apply(Math,u))}return{stop:ns(nu(t,e,n),function(t){if(s){if(s=!1,t.hadActivity){var e;u.push((e=i.timeStamp,t.end-e))}c()}},void 0).stop,setLoadEvent:function(t){a&&(a=!1,u.push(t),c())}}}(t,e,n,i,o,function(t){h.loadingTime=t,O()})).stop,y=v.setLoadEvent,eB("layout-shift")?(h.cumulativeLayoutShift=0,p=(s=function(t){h.cumulativeLayoutShift=t,O()},f=0,l=0,d={update:function(t){void 0===u||t.startTime-c>=1e3||t.startTime-u>=5e3?(u=c=t.startTime,l=t.value):(l+=t.value,c=t.startTime)},value:function(){return l}},{stop:t.subscribe(0,function(t){for(var e=0;e<t.length;e++){var n=t[e];"layout-shift"===n.entryType&&!n.hadRecentInput&&(d.update(n),d.value()>f)&&s(+(f=d.value()).toFixed(4))}}).unsubscribe}).stop):p=Y,{stop:function(){m(),p()},setLoadEvent:y,viewMetrics:h}),M=P.setLoadEvent,L=P.stop,F=P.viewMetrics,D=(b=(g=na({lifeCycle:t,isChildEvent:function(t){return t.view.id===k},onChange:O})).stop,{scheduleStop:function(){z(b,3e5)},eventCounts:g.eventCounts}),U=D.scheduleStop,j=D.eventCounts;function B(){C+=1;var e=void 0===_?tN():_.timeStamp;t.notify(3,H({customTimings:T,documentVersion:C,id:k,name:w,service:S,version:x,loadingType:i,location:A,startClocks:o,timings:E,duration:e-o.timeStamp,isActive:void 0===_,eventCounts:j},F))}return B(),{name:w,service:S,version:x,scheduleUpdate:O,end:function(e){void 0===e&&(e=tM()),_=e,t.notify(4,{endClocks:_}),L(),U()},triggerUpdate:function(){N(),B()},updateTimings:function(t){E=t,void 0!==t.loadEvent&&M(t.loadEvent)},addTiming:function(t,e){var n,r=e<31536e6?e:e-o.timeStamp;T[(n=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==t&&R.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(n)),n]=r}}}function nZ(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var nG=/^([a-z]+)=([a-z0-9-]+)$/,nJ="_dd_s",nH=[];function nV(t,e){if(void 0===e&&(e=0),S||(S=t),t!==S){nH.push(t);return}if(e>=100){nY();return}var n,r,i=nQ();if(nK()&&(i.lock||(r=K(),i.lock=r,n$(i,t.options),(i=nQ()).lock!==r))){nW(t,e);return}var o=t.process(i);if(nK()&&(i=nQ()).lock!==r){nW(t,e);return}if(o&&nX(o,t.options),nK()&&!(o&&ts(o))){if((i=nQ()).lock!==r){nW(t,e);return}delete i.lock,n$(i,t.options),o=i}null===(n=t.after)||void 0===n||n.call(t,o||i),nY()}function nK(){return!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent)}function nW(t,e){z(function(){nV(t,e+1)},10)}function nY(){S=void 0;var t=nH.shift();t&&nV(t)}function nX(t,e){if(ts(t)){tj(nJ,e);return}t.expire=String(tR()+9e5),n$(t,e)}function n$(t,e){tD(nJ,ta(t).map(function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n)}).join("&"),9e5,e)}function nQ(){var t=tU(nJ),e={};return void 0!==t&&(-1!==t.indexOf("&")||nG.test(t))&&t.split("&").forEach(function(t){var n=nG.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}}),e}var n0=[];function n1(t){return"2"===t||"1"===t}var n2=function(){function t(t,e,n,r,i,o){var a=this;this.request=t,this.batchMessagesLimit=e,this.batchBytesLimit=n,this.messageBytesLimit=r,this.flushTimeout=i,this.pageExitObservable=o,this.flushObservable=new ef,this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesCount=0,this.bufferMessagesCount=0,o.subscribe(function(t){return a.flush(t.reason,a.request.sendOnExit)}),this.flushPeriodically()}return t.prototype.add=function(t){this.addOrUpdate(t)},t.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},t.prototype.flush=function(t,e){if(void 0===e&&(e=this.request.send),0!==this.bufferMessagesCount){var n=this.pushOnlyBuffer.concat(ti(this.upsertBuffer)),r=this.bufferBytesCount;this.flushObservable.notify({bufferBytesCount:this.bufferBytesCount,bufferMessagesCount:this.bufferMessagesCount}),this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesCount=0,this.bufferMessagesCount=0,e({data:n.join("\n"),bytesCount:r,flushReason:t})}},t.prototype.addOrUpdate=function(t,e){var n=this.process(t),r=n.processedMessage,i=n.messageBytesCount;if(i>=this.messageBytesLimit){R.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.willReachedBytesLimitWith(i)&&this.flush("batch_bytes_limit"),this.push(r,i,e),this.isFull()&&this.flush("batch_bytes_limit")},t.prototype.process=function(t){var e=X(t),n=t_(e);return{processedMessage:e,messageBytesCount:n}},t.prototype.push=function(t,e,n){this.bufferMessagesCount>0&&(this.bufferBytesCount+=1),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.bufferBytesCount+=e,this.bufferMessagesCount+=1},t.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=t_(e);this.bufferBytesCount-=n,this.bufferMessagesCount-=1,this.bufferMessagesCount>0&&(this.bufferBytesCount-=1)},t.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},t.prototype.willReachedBytesLimitWith=function(t){return this.bufferBytesCount+t+1>=this.batchBytesLimit},t.prototype.isFull=function(){return this.bufferMessagesCount===this.batchMessagesLimit||this.bufferBytesCount>=this.batchBytesLimit},t.prototype.flushPeriodically=function(){var t=this;z(function(){t.flush("batch_duration_limit"),t.flushPeriodically()},this.flushTimeout)},t}();function n3(t,e,n,r,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?n5(t,e,n,{onSuccess:function(){return n4(0,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),function t(e,n,r,i){2===e.transportStatus&&z(function(){n5(e.queuedPayloads.first(),e,n,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=1e3,n4(1,e,n,r,i)},onFailure:function(){e.currentBackoffTime=Math.min(6e4,2*e.currentBackoffTime),t(e,n,r,i)}})},e.currentBackoffTime)}(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function n5(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 n4(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:tQ.AGENT,startClocks:tM()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=n6();o.size()>0;)n3(o.dequeue(),e,n,r,i)}function n6(){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 n8(t,e,n){var r={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:n6(),queueFullReported:!1},i=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=n.flushReason,s=n.retry;if(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&o<e){var u=t.build("fetch",a,s);fetch(u,{method:"POST",body:i,keepalive:!0,mode:"cors"}).then(F(function(t){return null==r?void 0:r({status:t.status,type:t.type})}),F(function(){n9(t.build("xhr",a,s),i,r)}))}else n9(t.build("xhr",a,s),i,r)}(t,e,n,r)};return{send:function(e){n3(e,r,i,t.endpointType,n)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=n.flushReason;if(navigator.sendBeacon&&i<e)try{var a=t.build("beacon",o);if(navigator.sendBeacon(a,r))return}catch(t){n7||(n7=!0,ew(t))}n9(t.build("xhr",o),r)}(t,e,n)}}}var n7=!1;function n9(t,e,n){var r=new XMLHttpRequest,i=F(function(){r.removeEventListener("loadend",i),null==n||n({status:r.status})});r.open("POST",t,!0),r.addEventListener("loadend",i),r.send(e)}function rt(){0!==x.batchCount&&(e_("Customer data measures",x),ri())}function re(){return{min:1/0,max:0,sum:0}}function rn(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function rr(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function ri(){x={batchCount:0,batchBytesCount:re(),batchMessagesCount:re(),globalContextBytes:re(),userContextBytes:re(),featureFlagBytes:re()}}function ro(){E=!1,k={globalContextBytes:re(),userContextBytes:re(),featureFlagBytes:re()}}var ra=[];function rs(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function ru(t,e){void 0===e&&(e=500),t!==T&&(T=t,ra.length===e&&ra.shift(),ra.push({state:T,startTime:tP()}))}var rc={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},rl={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},rf={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},rd={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},rp={Play:0,Pause:1};function rh(t,e){return{data:H({source:t},e),type:rc.IncrementalSnapshot,timestamp:tN()}}var rv={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:er.ALLOW,MASK:er.MASK,MASK_USER_INPUT:er.MASK_USER_INPUT},rm="data-dd-privacy",ry="hidden",rg={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function rb(t,e){var n=eF(t),r=n?rb(n,e):e;return r_(rw(t),r)}function r_(t,e){switch(e){case rv.HIDDEN:case rv.IGNORE:return e}switch(t){case rv.ALLOW:case rv.MASK:case rv.MASK_USER_INPUT:case rv.HIDDEN:case rv.IGNORE:return t;default:return e}}function rw(t){if(eP(t)){var e=t.getAttribute(rm);if("BASE"===t.tagName)return rv.ALLOW;if("INPUT"===t.tagName){if("password"===t.type||"email"===t.type||"tel"===t.type||"hidden"===t.type)return rv.MASK;var n=t.getAttribute("autocomplete");if(n&&0===n.indexOf("cc-"))return rv.MASK}return e===ry||t.classList.contains("dd-privacy-hidden")?rv.HIDDEN:"mask"===e||t.classList.contains("dd-privacy-mask")?rv.MASK:"mask-user-input"===e||t.classList.contains("dd-privacy-mask-user-input")?rv.MASK_USER_INPUT:"allow"===e||t.classList.contains("dd-privacy-allow")?rv.ALLOW:!function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),e=i("rel"),r=i("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?void 0:rv.IGNORE}}function rS(t,e){switch(e){case rv.MASK:case rv.HIDDEN:case rv.IGNORE:return!0;case rv.MASK_USER_INPUT:return eN(t)?rx(t.parentNode):rx(t);default:return!1}}function rx(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;if("INPUT"===t.tagName)switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!rg[t.tagName]}function rk(t,e,n){var r,i=null===(r=t.parentElement)||void 0===r?void 0:r.tagName,o=t.textContent||"";if(!e||o.trim()){if("SCRIPT"===i)o="***";else if(n===rv.HIDDEN)o="***";else if(rS(t,n)&&"STYLE"!==i){if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?"***":o.replace(/\S/g,"x")}return o}}var rE=new WeakMap;function rT(t){return rE.has(t)}function rC(t){return rE.get(t)}function rA(t,e){var n=t.tagName,r=t.value;if(rS(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return"***"}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var rI=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,rO=/^[A-Za-z]+:|^\/\//,rR=/^data:.*,/i,rN=/[^a-z1-6-_]/;function rP(t){var e=t.toLowerCase().trim();return rN.test(e)?"div":e}function rM(t){if(void 0!==t&&0!==t.length)return t.map(function(t){return{cssRules:Array.from(t.cssRules||t.rules,function(t){return t.cssText}),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}})}function rL(t,e,n,r){if(e===rv.HIDDEN)return null;var i=t.getAttribute(n);if(e===rv.MASK&&n!==rm&&!ng.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&&tu(n,"data-"))return"***"}return i&&"string"==typeof i&&i.length>1e5&&"data:"===i.slice(0,5)?"data:truncated":i}function rF(t){var e,n,r;if(!t)return null;try{e=t.rules||t.cssRules}catch(t){}return e?(n=Array.from(e,rD).join(""),r=t.href,n.replace(rI,function(t,e,n,i,o,a){var s=n||o||a;if(!r||!s||rO.test(s)||rR.test(s))return t;var u=e||i||"";return"url(".concat(u).concat(function(t,e){try{return t6(t,e).href}catch(e){return t}}(s,r)).concat(u,")")})):null}function rD(t){return"styleSheet"in t?rF(t.styleSheet)||"":t.cssText}function rU(t,e){var n=function(t,e){var n,r;switch(t.nodeType){case t.DOCUMENT_NODE:return{type:rl.Document,childNodes:rB(t,e),adoptedStyleSheets:rM(t.adoptedStyleSheets)};case t.DOCUMENT_FRAGMENT_NODE:return n=[],t.childNodes.length&&(n=rB(t,e)),(r=eL(t))&&e.serializationContext.shadowRootsController.addShadowRoot(t),{type:rl.DocumentFragment,childNodes:n,isShadowRoot:r,adoptedStyleSheets:r?rM(t.adoptedStyleSheets):void 0};case t.DOCUMENT_TYPE_NODE:return{type:rl.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r=rP(t.tagName),i="svg"===t.tagName||t instanceof SVGElement||void 0,o=r_(rw(t),e.parentNodePrivacyLevel);if(o===rv.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:rl.Element,tagName:r,attributes:((n={rr_width:"".concat(s,"px"),rr_height:"".concat(u,"px")})[rm]=ry,n),childNodes:[],isSVG:i}}if(o!==rv.IGNORE){var c=function(t,e,n){if(e===rv.HIDDEN)return{};for(var r,i,o,a={},s=rP(t.tagName),u=t.ownerDocument,c=0;c<t.attributes.length;c+=1){var l=t.attributes.item(c).name,f=rL(t,e,l,n.configuration);null!==f&&(a[l]=f)}if(t.value&&("textarea"===s||"select"===s||"option"===s||"input"===s)){var d=rA(t,e);void 0!==d&&(a.value=d)}if("option"===s&&e===rv.ALLOW&&t.selected&&(a.selected=t.selected),"link"===s){var p=Array.from(u.styleSheets).find(function(e){return e.href===t.href}),h=rF(p);h&&p&&(a._cssText=h)}if("style"===s&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){var h=rF(t.sheet);h&&(a._cssText=h)}"input"===s&&("radio"===t.type||"checkbox"===t.type)&&(e===rv.ALLOW?a.checked=!!t.checked:rS(t,e)&&delete a.checked),("audio"===s||"video"===s)&&(a.rr_mediaState=t.paused?"paused":"played");var v=n.serializationContext;switch(v.status){case 0:i=Math.round(t.scrollTop),o=Math.round(t.scrollLeft),(i||o)&&v.elementsScrollPositions.set(t,{scrollTop:i,scrollLeft:o});break;case 1:v.elementsScrollPositions.has(t)&&(i=(r=v.elementsScrollPositions.get(t)).scrollTop,o=r.scrollLeft)}return o&&(a.rr_scrollLeft=o),i&&(a.rr_scrollTop=i),a}(t,o,e),l=[];if(t.childNodes.length&&(l=rB(t,e.parentNodePrivacyLevel===o&&e.ignoreWhiteSpace===("head"===r)?e:H({},e,{parentNodePrivacyLevel:o,ignoreWhiteSpace:"head"===r}))),eM(t)){var f=rU(t.shadowRoot,e);null!==f&&l.push(f)}return{type:rl.Element,tagName:r,attributes:c,childNodes:l,isSVG:i}}}(t,e);case t.TEXT_NODE:return function(t,e){var n,r=null===(n=t.parentElement)||void 0===n?void 0:n.tagName,i=rk(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(i)return{type:rl.Text,textContent:i,isStyle:"STYLE"===r||void 0}}(t,e);case t.CDATA_SECTION_NODE:return{type:rl.CDATA,textContent:""}}}(t,e);if(!n)return null;var r=rC(t)||rj++;return n.id=r,rE.set(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),n}var rj=1;function rB(t,e){var n=[];return t.childNodes.forEach(function(t){var r=rU(t,e);r&&n.push(r)}),n}function rz(t){return!!t.changedTouches}function rq(t){return!0===t.composed&&eM(t.target)?t.composedPath()[0]:t.target}var rZ=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},rG=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 rJ(){var t=window.visualViewport;return Math.round(t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function rH(){var t=window.visualViewport;return Math.round(t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function rV(t){var e=rz(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=rZ(n,r),o=i.visualViewportX,a=i.visualViewportY;n=o,r=a}if(!Number.isFinite(n)||!Number.isFinite(r)){t.isTrusted&&e_("mouse/touch event without x/y");return}return{x:n,y:r}}var rK=((C={}).pointerup=rd.MouseUp,C.mousedown=rd.MouseDown,C.click=rd.Click,C.contextmenu=rd.ContextMenu,C.dblclick=rd.DblClick,C.focus=rd.Focus,C.blur=rd.Blur,C.touchstart=rd.TouchStart,C.touchend=rd.TouchEnd,C);function rW(t,e,n){var r=void 0===n?{}:n,i=r.domEvents,o=r.target,a=void 0===o?document:o,s=new WeakMap;function u(t){var n,r,i=rb(t,e);if(i!==rv.HIDDEN){var o=t.type;if("radio"===o||"checkbox"===o){if(rS(t,i))return;r={isChecked:t.checked}}else{var a=rA(t,i);if(void 0===a)return;r={text:a}}c(t,r);var s=t.name;"radio"===o&&s&&t.checked&&(n=document.querySelectorAll('input[type="radio"][name="'.concat(s,'"]')),Array.prototype.forEach.call(n,function(e){e!==t&&c(e,{isChecked:!1})}))}}function c(e,n){if(rT(e)){var r=s.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(s.set(e,n),t(H({id:rC(e)},n)))}}var l=eh(a,void 0===i?["input","change"]:i,function(t){var e=rq(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&u(e)},{capture:!0,passive:!0}).stop,f=[e8(HTMLInputElement.prototype,"value",u),e8(HTMLInputElement.prototype,"checked",u),e8(HTMLSelectElement.prototype,"value",u),e8(HTMLTextAreaElement.prototype,"value",u),e8(HTMLSelectElement.prototype,"selectedIndex",u)];return function(){f.forEach(function(t){return t.stop()}),l()}}function rY(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 rX(t,e,n,r){var i=ex();if(!i)return{stop:Y,flush:Y};var o=function(t){var e=Y,n=[];function r(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(F(t),e);return function(){return window.cancelIdleCallback(n)}}var r=window.requestAnimationFrame(F(t));return function(){return window.cancelAnimationFrame(r)}}(r,{timeout:100})),n.push.apply(n,t)},flush:r,stop:function(){e()}}}(function(i){!function(t,e,n,r,i){t.filter(function(t){return"childList"===t.type}).forEach(function(t){t.removedNodes.forEach(function(t){!function t(e,n){eM(e)&&n(e.shadowRoot),(eM(e)?e.shadowRoot.childNodes:e.childNodes).forEach(function(e){return t(e,n)})}(t,r.removeShadowRoot)})});var o=t.filter(function(t){return i.contains(t.target)&&function(t){for(var e=t;e;){if(!rT(e)&&!eL(e))return!1;e=eF(e)}return!0}(t.target)&&rb(t.target,n.defaultPrivacyLevel)!==rv.HIDDEN}),a=function(t,e,n){for(var r=new Set,i=new Map,o=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)})},a=0;a<t.length;a++)o(t[a]);var s=Array.from(r);!function(t){t.sort(function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS?1:n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}(s);for(var u=new Set,c=[],l=0;l<s.length;l++){var f=s[l];if(!m(f)){var d=rb(f.parentNode,e.defaultPrivacyLevel);if(d!==rv.HIDDEN&&d!==rv.IGNORE){var p=rU(f,{serializedNodeIds:u,parentNodePrivacyLevel:d,serializationContext:{status:2,shadowRootsController:n},configuration:e});if(p){var h=eF(f);c.push({nextId:function(t){for(var e=t.nextSibling;e;){if(rT(e))return rC(e);e=e.nextSibling}return null}(f),parentId:rC(h),node:p})}}}}var v=[];return i.forEach(function(t,e){rT(e)&&v.push({parentId:rC(t),id:rC(e)})}),{adds:c,removes:v,hasBeenSerialized:m};function m(t){return rT(t)&&u.has(rC(t))}}(o.filter(function(t){return"childList"===t.type}),n,r),s=a.adds,u=a.removes,c=a.hasBeenSerialized,l=function(t,e){for(var n,r=[],i=new Set,o=t.filter(function(t){return!i.has(t.target)&&(i.add(t.target),!0)}),a=0;a<o.length;a++){var s=o[a];if(s.target.textContent!==s.oldValue){var u=rb(eF(s.target),e.defaultPrivacyLevel);u!==rv.HIDDEN&&u!==rv.IGNORE&&r.push({id:rC(s.target),value:null!==(n=rk(s.target,!1,u))&&void 0!==n?n:null})}}return r}(o.filter(function(t){return"characterData"===t.type&&!c(t.target)}),n),f=function(t,e){for(var n=[],r=new Map,i=t.filter(function(t){var e=r.get(t.target);return(null==e||!e.has(t.attributeName))&&(e?e.add(t.attributeName):r.set(t.target,new Set([t.attributeName])),!0)}),o=new Map,a=0;a<i.length;a++){var s=i[a];if(s.target.getAttribute(s.attributeName)!==s.oldValue){var u=rb(s.target,e.defaultPrivacyLevel),c=rL(s.target,u,s.attributeName,e),l=void 0;if("value"===s.attributeName){var f=rA(s.target,u);if(void 0===f)continue;l=f}else l="string"==typeof c?c:null;var d=o.get(s.target);d||(d={id:rC(s.target),attributes:{}},n.push(d),o.set(s.target,d)),d.attributes[s.attributeName]=l}}return n}(o.filter(function(t){return"attributes"===t.type&&!c(t.target)}),n);(l.length||f.length||u.length||s.length)&&e({adds:s,removes:u,texts:l,attributes:f})}(i.concat(a.takeRecords()),t,e,n,r)}),a=new i(F(o.addMutations));return a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}rv.ALLOW;var r$=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){var a=rX(n,t,o,e),s=a.stop,u=a.flush,c=rW(r,t.defaultPrivacyLevel,{target:e,domEvents:["change"]});i.set(e,{flush:u,stop:function(){s(),c()}})},removeShadowRoot:function(t){var e=i.get(t);if(!e){e_("no shadow root in map",{shadowRoot:t?t.nodeName:"no node name",childrenLength:t?t.childElementCount:"-1",controllerByShadowRootSize:i.size,html:t&&tS(u.SHADOW_DOM_DEBUG)?t.innerHTML.substring(0,2e3):void 0});return}e.stop(),i.delete(t)},stop:function(){i.forEach(function(t){return(0,t.stop)()})},flush:function(){i.forEach(function(t){return(0,t.flush)()})}};return o};function rQ(t){r1(t).records_count+=1}function r0(t){return null==A?void 0:A.get(t)}function r1(t){var e;return A||(A=new Map),A.has(t)?e=A.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},A.set(t,e),A.size>10&&function(){if(A){if(A.keys)A.delete(A.keys().next().value);else{var t=!0;A.forEach(function(e,n){t&&(A.delete(n),t=!1)})}}}()),e}var r2=0,r3=function(){function t(t,e,n,r,i,o){var a=this;this.worker=t,this.id=r2++;var s=e.view.id;this.metadata=H({start:r.timestamp,end:r.timestamp,creation_reason:n,records_count:1,has_full_snapshot:r.type===rc.FullSnapshot,index_in_view:r1(s).segments_count,source:"browser"},e),r1(s).segments_count+=1,rQ(s);var u=F(function(e){var n,r=e.data;"errored"!==r.type&&"initialized"!==r.type&&(r.id===a.id?(n=r.additionalBytesCount,r1(s).segments_total_raw_size+=n,"flushed"===r.type?(o(r.result,r.rawBytesCount),t.removeEventListener("message",u)):i(r.compressedBytesCount)):r.id>a.id&&(t.removeEventListener("message",u),e_("Segment did not receive a 'flush' response before being replaced.")))});t.addEventListener("message",u),el("record",{record:r,segment:this.metadata}),this.worker.postMessage({data:'{"records":['.concat(JSON.stringify(r)),id:this.id,action:"write"})}return t.prototype.addRecord=function(t){var 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,rQ(this.metadata.view.id),(e=this.metadata).has_full_snapshot||(e.has_full_snapshot=t.type===rc.FullSnapshot),el("record",{record:t,segment:this.metadata}),this.worker.postMessage({data:",".concat(JSON.stringify(t)),id:this.id,action:"write"})},t.prototype.flush=function(t){this.worker.postMessage({data:"],".concat(JSON.stringify(this.metadata).slice(1),"\n"),id:this.id,action:"flush"}),this.flushReason=t},t}();function r5(){return I||(I=URL.createObjectURL(new Blob(["(".concat(r4,")(self)")]))),new Worker(I)}function r4(){function t(t){return function(){try{return t.apply(this,arguments)}catch(t){try{self.postMessage({type:"errored",error:t})}catch(e){self.postMessage({type:"errored",error:"".concat(t)})}}}}t(function(){var e=function(){function t(t){for(var e=t.length;--e>=0;)t[e]=0}var e,n,r,i=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]),o=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]),a=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),s=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=Array(576);t(u);var c=Array(60);t(c);var l=Array(512);t(l);var f=Array(256);t(f);var d=Array(29);t(d);var p=Array(30);function h(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function v(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(p);var m=function(t){return t<256?l[t]:l[256+(t>>>7)]},y=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=function(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,y(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},b=function(t,e,n){g(t,n[2*e],n[2*e+1])},_=function(t,e){var n=0;do n|=1&t,t>>>=1,n<<=1;while(--e>0);return n>>>1},w=function(t){16===t.bi_valid?(y(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)},S=function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,h=e.stat_desc.max_length,v=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>h&&(o=h,v++),u[2*r+1]=o,!(r>c)&&(t.bl_count[o]++,a=0,r>=p&&(a=d[r-p]),s=u[2*r],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*r+1]+a)));if(0!==v){do{for(o=h-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[h]--,v-=2}while(v>0);for(o=h;0!==o;o--)for(r=t.bl_count[o];0!==r;)!((i=t.heap[--n])>c)&&(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}},x=function(t,e,n){var r,i,o=Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=_(o[s]++,s))}},k=function(){var t,s,v,m,y,g=Array(16);for(m=0,v=0;m<28;m++)for(t=0,d[m]=v;t<1<<i[m];t++)f[v++]=m;for(f[v-1]=m,y=0,m=0;m<16;m++)for(t=0,p[m]=y;t<1<<o[m];t++)l[y++]=m;for(y>>=7;m<30;m++)for(t=0,p[m]=y<<7;t<1<<o[m]-7;t++)l[256+y++]=m;for(s=0;s<=15;s++)g[s]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,g[8]++;for(;t<=255;)u[2*t+1]=9,t++,g[9]++;for(;t<=279;)u[2*t+1]=7,t++,g[7]++;for(;t<=287;)u[2*t+1]=8,t++,g[8]++;for(x(u,287,g),t=0;t<30;t++)c[2*t+1]=5,c[2*t]=_(t,5);e=new h(u,i,257,286,15),n=new h(c,o,0,30,15),r=new h([],a,0,19,7)},E=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},T=function(t){t.bi_valid>8?y(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},C=function(t,e,n,r){T(t),r&&(y(t,n),y(t,~n)),t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n},A=function(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]},I=function(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&A(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!A(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r},O=function(t,e,n){var r,a,s,u,c=0;if(0!==t.last_lit)do r=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],a=t.pending_buf[t.l_buf+c],c++,0===r?b(t,a,e):(b(t,(s=f[a])+256+1,e),0!==(u=i[s])&&g(t,a-=d[s],u),b(t,s=m(--r),n),0!==(u=o[s])&&g(t,r-=p[s],u));while(c<t.last_lit);b(t,256,e)},R=function(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(n=0,t.heap_len=0,t.heap_max=573;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)I(t,o,n);i=u;do n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],I(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,I(t,o,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],S(t,e),x(o,c,t.bl_count)},N=function(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[(n+1)*2+1]=65535,r=0;r<=n;r++)i=a,a=e[(r+1)*2+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))},P=function(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[(r+1)*2+1],!(++s<u)||i!==a){if(s<c)do b(t,i,t.bl_tree);while(0!=--s);else 0!==i?(i!==o&&(b(t,i,t.bl_tree),s--),b(t,16,t.bl_tree),g(t,s-3,2)):s<=10?(b(t,17,t.bl_tree),g(t,s-3,3)):(b(t,18,t.bl_tree),g(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}},M=function(t){var e;for(N(t,t.dyn_ltree,t.l_desc.max_code),N(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*s[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e},L=function(t,e,n,r){var i;for(g(t,e-257,5),g(t,n-1,5),g(t,r-4,4),i=0;i<r;i++)g(t,t.bl_tree[2*s[i]+1],3);P(t,t.dyn_ltree,e-1),P(t,t.dyn_dtree,n-1)},F=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<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0},D=!1,U=function(t,e,n,r){g(t,0+(r?1:0),3),C(t,e,n,!0)},j={_tr_init:function(t){D||(k(),D=!0),t.l_desc=new v(t.dyn_ltree,e),t.d_desc=new v(t.dyn_dtree,n),t.bl_desc=new v(t.bl_tree,r),t.bi_buf=0,t.bi_valid=0,E(t)},_tr_stored_block:U,_tr_flush_block:function(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=F(t)),R(t,t.l_desc),R(t,t.d_desc),a=M(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?U(t,e,n,r):4===t.strategy||o===i?(g(t,2+(r?1:0),3),O(t,u,c)):(g(t,4+(r?1:0),3),L(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),O(t,t.dyn_ltree,t.dyn_dtree)),E(t),r&&T(t)},_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[(f[n]+256+1)*2]++,t.dyn_dtree[2*m(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){g(t,2,3),b(t,256,u),w(t)}},B=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){a=n>2e3?2e3:n,n-=a;do o=o+(i=i+e[r++]|0)|0;while(--a);i%=65521,o%=65521}return i|o<<16|0},z=new Uint32Array(function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}()),q=function(t,e,n,r){var i=r+n;t^=-1;for(var o=r;o<i;o++)t=t>>>8^z[(t^e[o])&255];return -1^t},Z={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"},G={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},J=j._tr_init,H=j._tr_stored_block,V=j._tr_flush_block,K=j._tr_tally,W=j._tr_align,Y=G.Z_NO_FLUSH,X=G.Z_PARTIAL_FLUSH,$=G.Z_FULL_FLUSH,Q=G.Z_FINISH,tt=G.Z_BLOCK,te=G.Z_OK,tn=G.Z_STREAM_END,tr=G.Z_STREAM_ERROR,ti=G.Z_DATA_ERROR,to=G.Z_BUF_ERROR,ta=G.Z_DEFAULT_COMPRESSION,ts=G.Z_FILTERED,tu=G.Z_HUFFMAN_ONLY,tc=G.Z_RLE,tl=G.Z_FIXED,tf=G.Z_DEFAULT_STRATEGY,td=G.Z_UNKNOWN,tp=G.Z_DEFLATED,th=function(t,e){return t.msg=Z[e],e},tv=function(t){return(t<<1)-(t>4?9:0)},tm=function(t){for(var e=t.length;--e>=0;)t[e]=0},ty=function(t,e,n){return(e<<t.hash_shift^n)&t.hash_mask},tg=function(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))},tb=function(t,e){V(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,tg(t.strm)},t_=function(t,e){t.pending_buf[t.pending++]=e},tw=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tS=function(t,e,n,r){var i=t.avail_in;return(i>r&&(i=r),0===i)?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),n),1===t.state.wrap?t.adler=B(t.adler,e,i,n):2===t.state.wrap&&(t.adler=q(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)},tx=function(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,l=t.w_mask,f=t.prev,d=t.strstart+258,p=c[o+a-1],h=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]!==h||c[n+a-1]!==p||c[n]!==c[o]||c[++n]!==c[o+1])continue;o+=2,n++;do;while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<d);if(r=258-(d-o),o=d-258,r>a){if(t.match_start=e,a=r,r>=s)break;p=c[o+a-1],h=c[o+a]}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead},tk=function(t){var e,n,r,i,o,a=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-262)){t.window.set(t.window.subarray(a,a+a),0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=n=t.hash_size;do r=t.head[--e],t.head[e]=r>=a?r-a:0;while(--n);e=n=a;do r=t.prev[--e],t.prev[e]=r>=a?r-a:0;while(--n);i+=a}if(0===t.strm.avail_in)break;if(n=tS(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=3)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=ty(t,t.ins_h,t.window[o+1]);t.insert&&(t.ins_h=ty(t,t.ins_h,t.window[o+3-1]),t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},tE=function(t,e){for(var n,r;;){if(t.lookahead<262){if(tk(t),t.lookahead<262&&e===Y)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=ty(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=tx(t,n)),t.match_length>=3){if(r=K(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=ty(t,t.ins_h,t.window[t.strstart+3-1]),n=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=ty(t,t.ins_h,t.window[t.strstart+1])}else r=K(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(tb(t,!1),0===t.strm.avail_out))return 1}return(t.insert=t.strstart<2?t.strstart:2,e===Q)?(tb(t,!0),0===t.strm.avail_out)?3:4:t.last_lit&&(tb(t,!1),0===t.strm.avail_out)?1:2},tT=function(t,e){for(var n,r,i;;){if(t.lookahead<262){if(tk(t),t.lookahead<262&&e===Y)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=ty(t,t.ins_h,t.window[t.strstart+3-1]),n=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!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=tx(t,n),t.match_length<=5&&(t.strategy===ts||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=K(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=i&&(t.ins_h=ty(t,t.ins_h,t.window[t.strstart+3-1]),n=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++,r&&(tb(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=K(t,0,t.window[t.strstart-1]))&&tb(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&&(r=K(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===Q)?(tb(t,!0),0===t.strm.avail_out)?3:4:t.last_lit&&(tb(t,!1),0===t.strm.avail_out)?1:2},tC=function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=258){if(tk(t),t.lookahead<=258&&e===Y)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+258;do;while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=258-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=K(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=K(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(tb(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===Q)?(tb(t,!0),0===t.strm.avail_out)?3:4:t.last_lit&&(tb(t,!1),0===t.strm.avail_out)?1:2},tA=function(t,e){for(var n;;){if(0===t.lookahead&&(tk(t),0===t.lookahead)){if(e===Y)return 1;break}if(t.match_length=0,n=K(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(tb(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===Q)?(tb(t,!0),0===t.strm.avail_out)?3:4:t.last_lit&&(tb(t,!1),0===t.strm.avail_out)?1:2};function tI(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}var tO=[new tI(0,0,0,0,function(t,e){var n=65535;for(65535>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(tk(t),0===t.lookahead&&e===Y)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,tb(t,!1),0===t.strm.avail_out)||t.strstart-t.block_start>=t.w_size-262&&(tb(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===Q)?(tb(t,!0),0===t.strm.avail_out)?3:4:(t.strstart>t.block_start&&(tb(t,!1),t.strm.avail_out),1)}),new tI(4,4,8,4,tE),new tI(4,5,16,8,tE),new tI(4,6,32,32,tE),new tI(4,4,16,16,tT),new tI(8,16,32,32,tT),new tI(8,16,128,128,tT),new tI(8,32,128,256,tT),new tI(32,128,258,1024,tT),new tI(32,258,258,4096,tT)],tR=function(t){t.window_size=2*t.w_size,tm(t.head),t.max_lazy_match=tO[t.level].max_lazy,t.good_match=tO[t.level].good_length,t.nice_match=tO[t.level].nice_length,t.max_chain_length=tO[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0};function tN(){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=tp,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),tm(this.dyn_ltree),tm(this.dyn_dtree),tm(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),tm(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),tm(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var tP=function(t){if(!t||!t.state)return th(t,tr);t.total_in=t.total_out=0,t.data_type=td;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=Y,J(e),te},tM=function(t){var e=tP(t);return e===te&&tR(t.state),e},tL=function(t,e,n,r,i,o){if(!t)return tr;var a=1;if(e===ta&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>9||n!==tp||r<8||r>15||e<0||e>9||o<0||o>tl)return th(t,tr);8===r&&(r=9);var s=new tN;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=n,tM(t)},tF={deflateInit:function(t,e){return tL(t,e,tp,15,8,tf)},deflateInit2:tL,deflateReset:tM,deflateResetKeep:tP,deflateSetHeader:function(t,e){return t&&t.state&&2===t.state.wrap?(t.state.gzhead=e,te):tr},deflate:function(t,e){if(!t||!t.state||e>tt||e<0)return t?th(t,tr):tr;var n,r,i=t.state;if(!t.output||!t.input&&0!==t.avail_in||666===i.status&&e!==Q)return th(t,0===t.avail_out?to:tr);i.strm=t;var o=i.last_flush;if(i.last_flush=e,42===i.status){if(2===i.wrap)t.adler=0,t_(i,31),t_(i,139),t_(i,8),i.gzhead?(t_(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),t_(i,255&i.gzhead.time),t_(i,i.gzhead.time>>8&255),t_(i,i.gzhead.time>>16&255),t_(i,i.gzhead.time>>24&255),t_(i,9===i.level?2:i.strategy>=tu||i.level<2?4:0),t_(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(t_(i,255&i.gzhead.extra.length),t_(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=q(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(t_(i,0),t_(i,0),t_(i,0),t_(i,0),t_(i,0),t_(i,9===i.level?2:i.strategy>=tu||i.level<2?4:0),t_(i,3),i.status=113);else{var a=tp+(i.w_bits-8<<4)<<8;a|=(i.strategy>=tu||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(a|=32),a+=31-a%31,i.status=113,tw(i,a),0!==i.strstart&&(tw(i,t.adler>>>16),tw(i,65535&t.adler)),t.adler=1}}if(69===i.status){if(i.gzhead.extra){for(n=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>n&&(t.adler=q(t.adler,i.pending_buf,i.pending-n,n)),tg(t),n=i.pending,i.pending!==i.pending_buf_size));)t_(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(t.adler=q(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73}if(73===i.status){if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=q(t.adler,i.pending_buf,i.pending-n,n)),tg(t),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,t_(i,r)}while(0!==r);i.gzhead.hcrc&&i.pending>n&&(t.adler=q(t.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.gzindex=0,i.status=91)}else i.status=91}if(91===i.status){if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=q(t.adler,i.pending_buf,i.pending-n,n)),tg(t),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,t_(i,r)}while(0!==r);i.gzhead.hcrc&&i.pending>n&&(t.adler=q(t.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.status=103)}else i.status=103}if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&tg(t),i.pending+2<=i.pending_buf_size&&(t_(i,255&t.adler),t_(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(tg(t),0===t.avail_out)return i.last_flush=-1,te}else if(0===t.avail_in&&tv(e)<=tv(o)&&e!==Q)return th(t,to);if(666===i.status&&0!==t.avail_in)return th(t,to);if(0!==t.avail_in||0!==i.lookahead||e!==Y&&666!==i.status){var s=i.strategy===tu?tA(i,e):i.strategy===tc?tC(i,e):tO[i.level].func(i,e);if((3===s||4===s)&&(i.status=666),1===s||3===s)return 0===t.avail_out&&(i.last_flush=-1),te;if(2===s&&(e===X?W(i):e!==tt&&(H(i,0,0,!1),e===$&&(tm(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),tg(t),0===t.avail_out))return i.last_flush=-1,te}return e!==Q?te:i.wrap<=0?tn:(2===i.wrap?(t_(i,255&t.adler),t_(i,t.adler>>8&255),t_(i,t.adler>>16&255),t_(i,t.adler>>24&255),t_(i,255&t.total_in),t_(i,t.total_in>>8&255),t_(i,t.total_in>>16&255),t_(i,t.total_in>>24&255)):(tw(i,t.adler>>>16),tw(i,65535&t.adler)),tg(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?te:tn)},deflateEnd:function(t){if(!t||!t.state)return tr;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?th(t,tr):(t.state=null,113===e?th(t,ti):te)},deflateSetDictionary:function(t,e){var n=e.length;if(!t||!t.state)return tr;var r=t.state,i=r.wrap;if(2===i||1===i&&42!==r.status||r.lookahead)return tr;if(1===i&&(t.adler=B(t.adler,e,n,0)),r.wrap=0,n>=r.w_size){0===i&&(tm(r.head),r.strstart=0,r.block_start=0,r.insert=0);var o=new Uint8Array(r.w_size);o.set(e.subarray(n-r.w_size,n),0),e=o,n=r.w_size}var a=t.avail_in,s=t.next_in,u=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,tk(r);r.lookahead>=3;){var c=r.strstart,l=r.lookahead-2;do r.ins_h=ty(r,r.ins_h,r.window[c+3-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--l);r.strstart=c,r.lookahead=2,tk(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,r.wrap=i,te},deflateInfo:"pako deflate (from Nodeca project)"},tD=new Uint8Array(256),tU=0;tU<256;tU++)tD[tU]=tU>=252?6:tU>=248?5:tU>=240?4:tU>=224?3:tU>=192?2:1;tD[254]=tD[254]=1;var tj=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},tB=Object.prototype.toString,tz=G.Z_NO_FLUSH,tq=G.Z_SYNC_FLUSH,tZ=G.Z_FULL_FLUSH,tG=G.Z_FINISH,tJ=G.Z_OK,tH=G.Z_STREAM_END,tV=G.Z_DEFAULT_COMPRESSION,tK=G.Z_DEFAULT_STRATEGY,tW=G.Z_DEFLATED;function tY(){this.options={level:tV,method:tW,chunkSize:16384,windowBits:15,memLevel:8,strategy:tK};var t,e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new tj,this.strm.avail_out=0;var n=tF.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==tJ)throw Error(Z[n]);if(e.header&&tF.deflateSetHeader(this.strm,e.header),e.dictionary){if(t="[object ArrayBuffer]"===tB.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=tF.deflateSetDictionary(this.strm,t))!==tJ)throw Error(Z[n]);this._dict_set=!0}}return tY.prototype.push=function(t,e){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(r=e===~~e?e:!0===e?tG:tz,"[object ArrayBuffer]"===tB.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;){if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(r===tq||r===tZ)&&i.avail_out<=6){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if((n=tF.deflate(i,r))===tH)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=tF.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===tJ;if(0===i.avail_out){this.onData(i.output);continue}if(r>0&&i.next_out>0){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(0===i.avail_in)break}return!0},tY.prototype.onData=function(t){this.chunks.push(t)},tY.prototype.onEnd=function(t){t===tJ&&(this.result=function(t){for(var e=0,n=0,r=t.length;n<r;n++)e+=t[n].length;for(var i=new Uint8Array(e),o=0,a=0,s=t.length;o<s;o++){var u=t[o];i.set(u,a),a+=u.length}return i}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},{Deflate:tY,constants:G,string2buf:function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);var e,n,r,i,o,a=t.length,s=0;for(i=0;i<a;i++)(64512&(n=t.charCodeAt(i)))==55296&&i+1<a&&(64512&(r=t.charCodeAt(i+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(o=0,e=new Uint8Array(s),i=0;o<s;i++)(64512&(n=t.charCodeAt(i)))==55296&&i+1<a&&(64512&(r=t.charCodeAt(i+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e}}}(),n=e.Deflate,r=e.constants,i=e.string2buf,o=new n,a=0;function s(t){var e=i(t);return o.push(e,r.Z_SYNC_FLUSH),a+=e.length,e.length}self.addEventListener("message",t(function(t){var e=t.data;switch(e.action){case"init":self.postMessage({type:"initialized"});break;case"write":var i=s(e.data);self.postMessage({type:"wrote",id:e.id,compressedBytesCount:o.chunks.reduce(function(t,e){return t+e.length},0),additionalBytesCount:i});break;case"flush":var i=e.data?s(e.data):0;o.push("",r.Z_FINISH),self.postMessage({type:"flushed",id:e.id,result:o.result,additionalBytesCount:i,rawBytesCount:a}),o=new n,a=0}}))})()}var r6={status:0};function r8(t,e){switch(void 0===e&&(e=r5),r6.status){case 0:r6={status:1,callbacks:[t]},function(t){void 0===t&&(t=r5);try{var e=t();e.addEventListener("error",F(r7)),e.addEventListener("message",F(function(t){var n=t.data;"errored"===n.type?r7(n.error):"initialized"===n.type&&1===r6.status&&(r6.callbacks.forEach(function(t){return t(e)}),r6={status:3,worker:e})})),e.postMessage({action:"init"})}catch(t){r7(t)}}(e);break;case 1:r6.callbacks.push(t);break;case 2:t();break;case 3:t(r6.worker)}}function r7(t){var e;1===r6.status?(R.error("Session Replay recording failed to start: an error occurred while creating the Worker:",t),t instanceof Event||t instanceof Error&&(Q(e=t.message,"Content Security Policy")||Q(e,"requires 'TrustedScriptURL'"))?R.error("Please make sure CSP is correctly configured https://docs.datadoghq.com/real_user_monitoring/faq/content_security_policy"):ew(t),r6.callbacks.forEach(function(t){return t()}),r6={status:2}):ew(t)}var r9=function(t,e,n){var r,i,o=(void 0===n?{}:n).ignoreInitIfSyntheticsWillInjectRum,a=void 0===o||o,s=!1,c=tC("global context"),l=tC("user"),f=function(){},d=function(){},p=Y,h=new tA,v=function(t,e){void 0===e&&(e=tN()),h.add(function(){return v(t,e)})},m=function(t,e){void 0===e&&(e=tM()),h.add(function(){return m(t,e)})},y=function(t,n){void 0===n&&(n=ec(c,l,e)),h.add(function(){return y(t,n)})},g=function(t,n){void 0===n&&(n=ec(c,l,e)),h.add(function(){return g(t,n)})},b=function(t,e){h.add(function(){return b(t,e)})};function _(n,r,i){var o=t(n,r,e,c,l,i);m=o.startView,y=o.addAction,g=o.addError,v=o.addTiming,b=o.addFeatureFlagEvaluation,f=o.getInternalContext,p=o.stopSession,h.drain(),e.onRumStart(o.lifeCycle,r,o.session,o.viewContexts)}var w=F(function(t){m("object"==typeof t?t:{name:t})});return r={init:F(function(t){if(d=function(){return th(t)},!(a&&tB())){if(tq())t=H({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100});else if(!(!function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(K()),n="test";tD(e,n,6e4,t);var r=tU(e)===n;return tj(e,t),r}catch(t){return R.error(t),!1}}(ei(t))?(R.warn("Cookies are not authorized, we will not send any data."),!1):"file:"!==window.location.protocol||(R.error("Execution is not allowed in the current context."),!1)))return;if(e=t,!s||(e.silentMultipleInit||R.error("DD_RUM is already initialized."),0)){var e,n=function(t){if(!t.applicationId){R.error("Application ID is not configured, no RUM data will be collected.");return}if(void 0!==t.sessionReplaySampleRate&&!tn(t.sessionReplaySampleRate)){R.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&&(R.warn("Ignoring Premium Sample Rate because Session Replay Sample Rate is set"),s=void 0),void 0!==s&&!tn(s)){R.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&&!tn(c)){R.error("Trace Sample Rate should be a number between 0 and 100");return}if(void 0!==t.excludedActivityUrls&&!Array.isArray(t.excludedActivityUrls)){R.error("Excluded Activity Urls should be an array");return}var l=function(t){if(void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&R.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins."),void 0!==t.allowedTracingUrls){if(!Array.isArray(t.allowedTracingUrls)){R.error("Allowed Tracing URLs should be an array");return}if(0!==t.allowedTracingUrls.length&&void 0===t.service){R.error("Service needs to be configured when tracing is enabled");return}var e=[];return t.allowedTracingUrls.forEach(function(t){tm(t)?e.push({match:t,propagatorTypes:["datadog"]}):"object"===td(t)&&tm(t.match)&&Array.isArray(t.propagatorTypes)?e.push(t):R.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)){R.error("Allowed Tracing Origins should be an array");return}if(0!==t.allowedTracingOrigins.length&&void 0===t.service){R.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(tc(t6(e)))}:"function"==typeof t&&(e=function(e){return t(tc(t6(e)))}),void 0===e){R.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 f=function(t){if(!t||!t.clientToken){R.error("Client Token is not configured, we will not send any data.");return}var e,n,r,i,o,a,s,c,l,f,d=null!==(c=t.sessionSampleRate)&&void 0!==c?c:t.sampleRate;if(void 0!==d&&!tn(d)){R.error("Session Sample Rate should be a number between 0 and 100");return}if(void 0!==t.telemetrySampleRate&&!tn(t.telemetrySampleRate)){R.error("Telemetry Sample Rate should be a number between 0 and 100");return}if(void 0!==t.telemetryConfigurationSampleRate&&!tn(t.telemetryConfigurationSampleRate)){R.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){tw.add(t)})}(t.enableExperimentalFeatures.filter(function(t){return to(u,t)})),H({beforeSend:t.beforeSend&&N(t.beforeSend,"beforeSend threw an error:"),cookieOptions:ei(t),sessionSampleRate:null!=d?d:100,telemetrySampleRate:null!==(l=t.telemetrySampleRate)&&void 0!==l?l:20,telemetryConfigurationSampleRate:null!==(f=t.telemetryConfigurationSampleRate)&&void 0!==f?f:5,service:t.service,silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(e=t.env,n=t.service,r=t.version,i=t.datacenter,o=[],e&&o.push(en("env",e)),n&&o.push(en("service",n)),r&&o.push(en("version",r)),i&&o.push(en("datacenter",i)),s=ti(a={logsEndpointBuilder:et(t,"logs",o),rumEndpointBuilder:et(t,"rum",o),sessionReplayEndpointBuilder:et(t,"sessionReplay",o)}).map(function(t){return t.urlPrefix}),H({isIntakeUrl:function(t){return s.some(function(e){return 0===t.indexOf(e)})},replica:function(t,e,n){if(t.replica){var r=H({},t,{site:t8,clientToken:t.replica.clientToken}),i={logsEndpointBuilder:et(r,"logs",n),rumEndpointBuilder:et(r,"rum",n)};return e.push.apply(e,ti(i).map(function(t){return t.urlPrefix})),H({applicationId:t.replica.applicationId},i)}}(t,s,o),site:t.site||t8},a)))}(t);if(f){var d=!!(null!==(r=t.trackUserInteractions)&&void 0!==r?r:t.trackInteractions),p=!!t.trackFrustrations;return H({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:[],trackUserInteractions:d||p,trackFrustrations:p,trackViewsManually:!!t.trackViewsManually,trackResources:t.trackResources,trackLongTasks:t.trackLongTasks,defaultPrivacyLevel:to(er,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:er.MASK_USER_INPUT,customerDataTelemetrySampleRate:1},f)}}}(t);if(n){if(n.trackViewsManually){var r=h;h=new tA,m=function(e){_(t,n,e)},r.drain()}else _(t,n);s=!0}}}}),addRumGlobalContext:F(c.add),setGlobalContextProperty:F(c.setContextProperty),removeRumGlobalContext:F(c.remove),removeGlobalContextProperty:F(c.removeContextProperty),getRumGlobalContext:F(c.get),getGlobalContext:F(c.getContext),setRumGlobalContext:F(c.set),setGlobalContext:F(c.setContext),clearGlobalContext:F(c.clearContext),getInternalContext:F(function(t){return f(t)}),getInitConfiguration:F(function(){return d()}),addAction:F(function(t,e){y({name:tS(u.SANITIZE_INPUTS)?tk(t):t,context:tS(u.SANITIZE_INPUTS)?tk(e):th(e),startClocks:tM(),type:"custom"})}),addError:function(t,e){var n=t3();D(function(){g({error:t,handlingStack:n,context:tS(u.SANITIZE_INPUTS)?tk(e):th(e),startClocks:tM()})})},addTiming:F(function(t,e){v(tS(u.SANITIZE_INPUTS)?tk(t):t,e)}),setUser:F(function(t){var e;(e="object"===td(t))||R.error("Unsupported user:",t),e&&l.setContext(t5(t))}),getUser:F(l.getContext),setUserProperty:F(function(t,e){var n,r=t5(((n={})[t]=e,n))[t];l.setContextProperty(t,r)}),removeUserProperty:F(l.removeContextProperty),removeUser:F(l.clearContext),clearUser:F(l.clearContext),startView:w,stopSession:F(function(){p()}),startSessionReplayRecording:F(e.start),stopSessionReplayRecording:F(e.stop),addFeatureFlagEvaluation:F(function(t,e){b(tS(u.SANITIZE_INPUTS)?tk(t):t,tS(u.SANITIZE_INPUTS)?tk(e):e)})},Object.defineProperty(i=H({version:"4.38.0",onReady:function(t){t()}},r),"_setDebug",{get:function(){return L},enumerable:!1}),i}(function(t,e,n,r,i,o){var a,c,l,f,p,y,g,b,_,w,S,T,C,A,I,N,P,M,L,U,j,B,$,tn,ti,to,tu,tc=new e2;tc.subscribe(11,function(t){return el("rum",t)});var tp=function(t){var e,n,r=(n=new ef,eb.telemetryEnabled=!Q(eg,t.site)&&W(t.telemetrySampleRate),eb.telemetryConfigurationEnabled=eb.telemetryEnabled&&W(t.telemetryConfigurationSampleRate),d=function(t){if(eb.telemetryEnabled){var r=tv({type:"telemetry",date:tN(),service:"browser-rum-sdk",version:"4.38.0",source:"browser",_dd:{format_version:2},telemetry:t,experimental_features:tt(tw)},void 0!==e?e():{});n.notify(r),el("telemetry",r)}},s=ew,H(eb,{maxEventsPerPage:t.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){e=t},observable:n,enabled:eb.telemetryEnabled});if(tq()){var i=tz();r.observable.subscribe(function(t){return i.send("internal_telemetry",t)})}return r}(e);tp.setContextProvider(function(){var t,n;return{application:{id:e.applicationId},session:{id:null===(t=tD.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(n=tV.findView())||void 0===n?void 0:n.id},action:{id:tY.findActionId()}}});var ty=function(t){tc.notify(12,{error:t})},tg=function(t,e){if(void 0===e&&(e=t_),!tS(u.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},getFeatureFlagBytesCount:function(){return 0},addFeatureFlagEvaluation:Y};var n=new e5(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=J(function(t){r=e(X(t)),i||(i=tx(r,"feature flag evaluation"))},200).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,o(r))}}}(tc);if(tq())!function(t){var e=tz();t.subscribe(11,function(t){e.send("rum",t)})}(tc);else{var tb,tE,tT,tC,tA=tE=new ef(function(){var t=tS(u.PAGEHIDE),e=eh(window,["visibilitychange","freeze","pagehide"],function(e){"pagehide"===e.type&&t?tE.notify({reason:ev.PAGEHIDE}):"visibilitychange"===e.type&&"hidden"===document.visibilityState?tE.notify({reason:ev.HIDDEN}):"freeze"===e.type&&tE.notify({reason:ev.FROZEN})},{capture:!0}).stop,n=Y;return t||(n=ep(window,"beforeunload",function(){tE.notify({reason:ev.UNLOADING})}).stop),function(){e(),n()}});tA.subscribe(function(t){tc.notify(9,t)}),tb=(tT=tp.observable,tC=function(t,e,n){var r,i=a(t.rumEndpointBuilder),o=t.replica;function a(r){return new n2(n8(r,t.batchBytesLimit,e),t.batchMessagesLimit,t.batchBytesLimit,t.messageBytesLimit,t.flushTimeout,n)}function s(t){return tv(t,{application:{id:o.applicationId}})}return void 0!==o&&(r=a(o.rumEndpointBuilder)),{flushObservable:i.flushObservable,add:function(t,e){void 0===e&&(e=!0),i.add(t),r&&e&&r.add(s(t))},upsert:function(t,e){i.upsert(t,e),r&&r.upsert(s(t),e)}}}(e,ty,tA),tc.subscribe(11,function(t){"view"===t.type?tC.upsert(t,t.view.id):tC.add(t)}),tT.subscribe(function(t){return tC.add(t,"datad0g.com"===e.site)}),tC).flushObservable,tp.enabled&&W(e.customerDataTelemetrySampleRate)&&(ri(),ro(),tc.subscribe(11,function(t){E=!0,rn(k.globalContextBytes,ts(r.get())?0:r.getBytesCount()),rn(k.userContextBytes,ts(i.get())?0:i.getBytesCount());var e=tg.findFeatureFlagEvaluations(),n=Q(["view","error"],t.type)&&e&&!ts(e);rn(k.featureFlagBytes,n?tg.getFeatureFlagBytesCount():0)}),tb.subscribe(function(t){var e=t.bufferBytesCount,n=t.bufferMessagesCount;E&&(x.batchCount+=1,rn(x.batchBytesCount,e),rn(x.batchMessagesCount,n),rr(x.globalContextBytes,k.globalContextBytes),rr(x.userContextBytes,k.userContextBytes),rr(x.featureFlagBytes,k.featureFlagBytes),ro())}),Z(rt,1e4))}var tD=tq()?(b={id:"00000000-aaaa-0000-aaaa-000000000000",plan:1,sessionReplayAllowed:!1,longTaskAllowed:!0,resourceAllowed:!0},{findTrackedSession:function(){return b},expire:Y}):((_=function(t,e,n){!function(t){var e=tU(nJ),n=tU("_dd"),r=tU("_dd_r"),i=tU("_dd_l");if(!e){var o={};n&&(o.id=n),i&&/^[01]$/.test(i)&&(o.logs=i),r&&/^[012]$/.test(r)&&(o.rum=r),nX(o,t)}}(t);var r,i,o,a,s=function(t,e,n){var r,i=new ef,o=new ef,a=Z(function(){nV({options:t,process:function(t){return l(t)?void 0:{}},after:u})},1e3),s=l(r=nQ())?r:{};function u(t){var n;return l(t)||(t={}),c()&&((n=t,s.id!==n.id||s[e]!==n[e])?(s={},o.notify()):s=t),t}function c(){return void 0!==s[e]}function l(t){return(void 0===t.created||tR()-Number(t.created)<144e5)&&(void 0===t.expire||tR()<Number(t.expire))}return{expandOrRenewSession:J(function(){var r;nV({options:t,process:function(t){var i,o,a,s=u(t);return o=(i=n(s[e])).trackingType,a=i.isTracked,s[e]=o,a&&!s.id&&(s.id=K(),s.created=String(tR())),r=a,s},after:function(t){r&&!c()&&(s=t,i.notify()),s=t}})},1e3).throttled,expandSession:function(){nV({options:t,process:function(t){return c()?u(t):void 0}})},getSession:function(){return s},renewObservable:i,expireObservable:o,expire:function(){tj(nJ,t),u({})},stop:function(){G(a)}}}(t,e,n);n0.push(function(){return s.stop()});var u=new e5(144e5);function c(){return{id:s.getSession().id,trackingType:s.getSession()[e]}}return n0.push(function(){return u.stop()}),s.renewObservable.subscribe(function(){u.add(c(),tP())}),s.expireObservable.subscribe(function(){u.closeActive(tP())}),s.expandOrRenewSession(),u.add(c(),tL().relative),r=eh(window,["click","touchstart","keydown","scroll"],function(){return s.expandOrRenewSession()},{capture:!0,passive:!0}).stop,n0.push(r),i=function(){"visible"===document.visibilityState&&s.expandSession()},o=ep(document,"visibilitychange",i).stop,n0.push(o),a=Z(i,6e4),n0.push(function(){G(a)}),{findActiveSession:function(t){return u.find(t)},renewObservable:s.renewObservable,expireObservable:s.expireObservable,expire:s.expire}}(e.cookieOptions,"rum",function(t){var n;return{trackingType:n="0"===t||"1"===t||"2"===t?t:W(e.sessionSampleRate)?W(e.sessionReplaySampleRate)?"1":"2":"0",isTracked:n1(n)}})).expireObservable.subscribe(function(){tc.notify(7)}),_.renewObservable.subscribe(function(){tc.notify(8)}),{findTrackedSession:function(t){var n=_.findActiveSession(t);if(n&&n1(n.trackingType)){var r="1"===n.trackingType?2:1;return{id:n.id,plan:r,sessionReplayAllowed:2===r,longTaskAllowed:void 0!==e.trackLongTasks?e.trackLongTasks:e.oldPlansBehavior&&2===r,resourceAllowed:void 0!==e.trackResources?e.trackResources:e.oldPlansBehavior&&2===r}}},expire:_.expire}),tG=(w=ex(),S=new ef(function(){if(w){var t=new w(F(function(){return S.notify()}));return t.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return t.disconnect()}}})),tJ=function(t){var e=V(t),n=new ef(function(){var t,e,n,i=(t=e6(history,"pushState",{after:r}).stop,e=e6(history,"replaceState",{after:r}).stop,n=ep(window,"popstate",r).stop,{stop:function(){t(),e(),n()}}).stop,o=ep(window,"hashchange",r).stop;return function(){i(),o()}});function r(){if(e.href!==t.href){var r=V(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return n}(location),tH=function(t,e,n,r,i,o,a,s){var c,l,f,d=(c=new e5(144e5),t.subscribe(2,function(t){c.add({service:t.service,version:t.version,id:t.id,name:t.name},t.startClocks.relative)}),t.subscribe(4,function(t){var e=t.endClocks;c.closeActive(e.relative)}),t.subscribe(8,function(){c.reset()}),{findView:function(t){return c.find(t)},stop:function(){c.stop()}}),p=function(t,e,n){var r,i=new e5(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(a({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=tP();i.closeActive(r),i.add(a({url:e.href,referrer:n.referrer}),r)}});function a(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,i,n),v=(document.hasFocus()&&e$(),l=ep(window,"focus",function(t){t.isTrusted&&e$()}).stop,f=ep(window,"blur",function(t){t.isTrusted&&eQ()}).stop,{isInForegroundAt:e0,selectInForegroundPeriodsFor:e1,stop:function(){eX=[],l(),f()}}),m=function(t,e,n,r){t.subscribe(1,function(e){return t.notify(10,nO(e,r))});var i={findActionId:Y};return n.trackUserInteractions&&(i=function(t,e,n){var r,i,o,a,s,c,l,f,d=new e5(3e5),p=new ef;t.subscribe(8,function(){d.reset()}),t.subscribe(4,m);var h=(a=(r={onPointerDown:function(r){return function(t,e,n,r,i){if(!(!t.trackFrustrations&&r.find())){var o=function(t,e){if(tS(u.CLICKMAP)){var n,r,i,o=t.target.getBoundingClientRect();r={width:Math.round(o.width),height:Math.round(o.height),selector:function(t,e){for(var n="",r=t;r&&"HTML"!==r.nodeName;){var i=nx(r,nb,nk,e,n);if(i)return i;n=nx(r,n_,nE,e,n)||nT(function(t){for(var e=t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return"".concat(t.tagName,":nth-of-type(").concat(n,")")}(r),n),r=r.parentElement}return n}(t.target,e)},i={x:Math.round(t.clientX-o.left),y:Math.round(t.clientY-o.top)}}return{type:"click",target:r,position:i,name:nf(n=t.target,nl)||e&&nf(n,e)||nh(n,e,nd)||nh(n,e,np)||""}}(i,t.actionNameAttribute);if(t.trackFrustrations||o.name){var a=!1;return ns(nu(e,n,t),function(t){a=t.hadActivity},100),{clickActionBase:o,hadActivityOnPointerDown:function(){return a}}}}}(n,t,e,d,r)},onPointerUp:function(r,i,o){var a,s,u,c,l,f,h,m,y,g,b,_,w,S;return a=n,s=t,u=e,c=d,l=p,f=v,h=r.clickActionBase,m=i,y=o,g=r.hadActivityOnPointerDown,b=function t(e,n,r,i,o){var a,s=K(),u=tM(),c=n.add(s,u.relative),l=na({lifeCycle:e,isChildEvent:function(t){return void 0!==t.action&&(Array.isArray(t.action.id)?Q(t.action.id,s):t.action.id===s)}}),f=0,d=[],p=new ef;function h(t){0===f&&((f=1,a=t)?c.close(a-tF()):c.remove(),l.stop(),p.notify())}return{event:o,stop:h,stopObservable:p,get hasError(){return l.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==a},getUserActivity:r,addFrustration:function(t){d.push(t)},startClocks:u,isStopped:function(){return 1===f||2===f},clone:function(){return t(e,n,r,i,o)},validate:function(t){if(h(),1===f){var n,r=l.eventCounts,c=r.resourceCount,p=r.errorCount,v=r.longTaskCount,m=H({type:"click",duration:a&&(n=u.timeStamp,a-n),startClocks:u,id:s,frustrationTypes:d,counts:{resourceCount:c,errorCount:p,longTaskCount:v},events:null!=t?t:[o],event:o},i);e.notify(1,m),f=2}},discard:function(){h(),f=2}}}(s,c,y,h,m),a.trackFrustrations&&f(b),_=ns(nu(s,u,a),function(t){t.hadActivity&&t.end<b.startClocks.timeStamp?b.discard():(t.hadActivity?b.stop(t.end):g()?b.stop(b.startClocks.timeStamp):b.stop(),a.trackFrustrations||(t.hadActivity?b.validate():b.discard()))},1e4).stop,w=s.subscribe(4,function(t){var e=t.endClocks;b.stop(e.timeStamp)}),S=l.subscribe(function(){b.stop()}),void b.stopObservable.subscribe(function(){w.unsubscribe(),_(),S.unsubscribe()})}}).onPointerDown,s=r.onPointerUp,c={selection:!1,input:!1},l=[ep(window,"pointerdown",function(t){nA(t)&&(i=nC(),c={selection:!1,input:!1},o=a(t))},{capture:!0}),ep(window,"selectionchange",function(){i&&nC()||(c.selection=!0)},{capture:!0}),ep(window,"pointerup",function(t){if(nA(t)&&o){var e=c;s(o,t,function(){return e}),o=void 0}},{capture:!0}),ep(window,"input",function(){c.input=!0},{capture:!0})],{stop:function(){l.forEach(function(t){return t.stop()})}}).stop;return{stop:function(){m(),p.notify(),h()},actionContexts:{findActionId:function(t){return n.trackFrustrations?d.findAll(t):d.find(t)}}};function v(t){if(!f||!f.tryAppend(t)){var e=t.clone();f=function(t,e){var n,r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),q(n),n=z(s,1e3)}function a(){1===i&&r.every(function(t){return t.isStopped()})&&(i=2,e(r))}function s(){q(n),0===i&&(i=1,a())}return o(t),{tryAppend:function(t){var e,n;return 0===i&&(!(r.length>0)||(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)?(o(t),!0):(s(),!1))},stop:function(){s()}}}(t,function(t){(function(t,e){if(function(t){if(t.some(function(t){return t.getUserActivity().selection}))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=1e3)return!0;return!1}(t))return e.addFrustration("rage_click"),t.some(nI)&&e.addFrustration("dead_click"),e.hasError&&e.addFrustration("error_click"),{isRage:!0};var n=t.some(function(t){return t.getUserActivity().selection});return t.forEach(function(t){t.hasError&&t.addFrustration("error_click"),nI(t)&&!n&&t.addFrustration("dead_click")}),{isRage:!1}})(t,e).isRage?(t.forEach(function(t){return t.discard()}),e.stop(tN()),e.validate(t.map(function(t){return t.event}))):(e.discard(),t.forEach(function(t){return t.validate()}))})}}function m(){f&&f.stop()}}(t,e,n).actionContexts),{addAction:function(e,n){t.notify(10,H({savedCommonContext:n},nO(e,r)))},actionContexts:i}}(t,o,e,v),y=m.addAction,g=m.actionContexts;return!function(t,e,n,r,i,o,a,s){var c,l=((c={}).error=eZ("error",t.eventRateLimiterThreshold,s),c.action=eZ("action",t.eventRateLimiterThreshold,s),c),f=function(){var t,e,n="string"==typeof(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||tU("datadog-synthetics-public-id"))?t:void 0,r="string"==typeof(e=window._DATADOG_SYNTHETICS_RESULT_ID||tU("datadog-synthetics-result-id"))?e:void 0;if(n&&r)return{test_id:n,result_id:r,injected:tB()}}(),d=function(){var t,e=null===(t=window.Cypress)||void 0===t?void 0:t.env("traceId");if("string"==typeof e)return{test_execution_id:e}}();e.subscribe(10,function(s){var c=s.startTime,p=s.rawRumEvent,v=s.domainContext,m=s.savedCommonContext,y=s.customerContext,g=r.findView(c),b=i.findUrl(c),_=n.findTrackedSession("view"!==p.type?c:void 0);if(_&&g&&b){var w=m||a(),S=o.findActionId(c),x=tv({_dd:{format_version:2,drift:Math.round(tR()-(tF()+performance.now())),session:{plan:_.plan},browser_sdk_version:tq()?"4.38.0":void 0},application:{id:t.applicationId},date:tN(),service:g.service||t.service,version:g.version||t.version,source:"browser",session:{id:_.id,type:f?"synthetics":d?"ci_test":"user"},view:{id:g.id,name:g.name,url:b.url,referrer:b.referrer},action:-1!==["error","resource","long_task"].indexOf(p.type)&&S?{id:S}:void 0,synthetics:f,ci_test:d,display:function(){if(tS(u.CLICKMAP))return h||(h=eK(),eV().subscribe(function(t){h=t}).unsubscribe),{viewport:h}}()},p);x.context=tv(w.context,y),"has_replay"in x.session||(x.session.has_replay=w.hasReplay),ts(w.user)||(x.usr=w.user),function(t,e,n,r){if(e){var i,o,a,s,c=(i="view"===t.type?eW:eY,a=e(o=th(t),n),i.forEach(function(e){var n=eG(t,e),r=eG(o,e),i=td(n),a=td(r);a===i?eJ(t,e,tS(u.SANITIZE_INPUTS)?tk(r):r):"object"===i&&("undefined"===a||"null"===a)&&eJ(t,e,{})}),a);if(!1===c&&"view"!==t.type)return!1;!1===c&&R.warn("Can't dismiss view events using beforeSend!")}return!(null===(s=r[t.type])||void 0===s?void 0:s.isLimitReached())}(x,t.beforeSend,v,l)&&(ts(x.context)&&delete x.context,e.notify(11,x))}})}(e,t,r,d,p,g,a,s),{viewContexts:d,foregroundContexts:v,urlContexts:p,addAction:y,actionContexts:g,stop:function(){d.stop(),v.stop()}}}(tc,e,location,tD,tJ,tG,function(){return ec(r,i,n)},ty),tV=tH.viewContexts,tK=tH.foregroundContexts,tW=tH.urlContexts,tY=tH.actionContexts,tX=tH.addAction;A=null!==(T=t.proxy)&&void 0!==T?T:t.proxyUrl,P={session_sample_rate:null!==(C=t.sessionSampleRate)&&void 0!==C?C:t.sampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,use_before_send:!!t.beforeSend,use_cross_site_session_cookie:t.useCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:void 0!==A?!!A:void 0,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,track_resources:t.trackResources,track_long_task:t.trackLongTasks},L=H({premium_sample_rate:t.premiumSampleRate,replay_sample_rate:t.replaySampleRate,session_replay_sample_rate:t.sessionReplaySampleRate,trace_sample_rate:null!==(I=t.traceSampleRate)&&void 0!==I?I:t.tracingSampleRate,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_origins:Array.isArray(t.allowedTracingOrigins)&&t.allowedTracingOrigins.length>0,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:(M=new Set,Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach(function(t){tm(t)?M.add("datadog"):t.propagatorTypes.forEach(function(t){return M.add(t)})}),Array.isArray(t.allowedTracingOrigins)&&t.allowedTracingOrigins.length>0&&M.add("datadog"),tt(M)),default_privacy_level:t.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(t.allowedTracingOrigins)&&t.allowedTracingOrigins.length>0,track_frustrations:t.trackFrustrations,track_views_manually:t.trackViewsManually,track_user_interactions:null!==(N=t.trackUserInteractions)&&void 0!==N?N:t.trackInteractions},P),eb.telemetryConfigurationEnabled&&eS({type:em.configuration,configuration:L}),function(t,e){t.subscribe(0,function(n){for(var r=0;r<n.length;r++){var i=n[r];if("longtask"!==i.entryType)break;var o=e.findTrackedSession(i.startTime);if(!o||!o.longTaskAllowed)break;var a=tI(i.startTime),s={date:a.timeStamp,long_task:{id:K(),duration:tO(i.duration)},type:"long_task",_dd:{discarded:!1}};t.notify(10,{rawRumEvent:s,startTime:a.relative,domainContext:{performanceEntry:i.toJSON()}})}})}(tc,tD);var t$=(ru(rs()),{findAll:function(t,e){for(var n=[],r=t+e,i=ra.length-1;i>=0;i--){var o=ra[i].startTime;if(!(o>=r)&&(n.unshift(ra[i]),o<t))break}return n.length?n:void 0},stop:eh(window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(t){t.isTrusted&&("freeze"===t.type?ru("frozen"):"pagehide"===t.type?ru(t.persisted?"frozen":"terminated"):ru(rs()))},{capture:!0}).stop});tc.subscribe(6,function(t){var n,r,i,o,a,s,c,l,f,d,p;tc.notify(10,(r="xhr"===t.type?"xhr":"fetch",o=(i=function(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=e.map(function(t){return t.toJSON()}).filter(eA).filter(function(e){var n,r;return n=t.startClocks.relative,r=nF({startTime:t.startClocks.relative,duration:t.duration}),e.startTime>=n-1&&nF(e)<=r+1});if(1===n.length)return n[0]}}}(t))?tI(i.startTime):t.startClocks,a=i?nD(i):void 0,s=function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:nU(e)}}}(t,e),c=nj(tD,o),f=function(t,e){if(tS(u.RESOURCE_DURATIONS))return{_dd:{computed_duration:t,performance_entry_duration:e,override_duration_diff:e?t-e:void 0}}}(l=tO(t.duration),null==a?void 0:a.resource.duration),d=nB(t$,o,null!==(n=null==i?void 0:i.duration)&&void 0!==n?n:t.duration),p=tv({date:o.timeStamp,resource:{id:K(),type:r,duration:l,method:t.method,status_code:t.status,url:t.url},type:"resource"},s,a,c,f,d),{startTime:o.relative,rawRumEvent:p,domainContext:{performanceEntry:i&&i,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}))}),tc.subscribe(0,function(t){for(var n=0;n<t.length;n++){var r=t[n];"resource"!==r.entryType||"xmlhttprequest"===r.initiatorType||"fetch"===r.initiatorType||tc.notify(10,function(t,e,n,r){var i=function(t){var e,n=t.name;if(!function(t){try{return!!t6(t)}catch(t){return!1}}(n))return e_('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var r="/"===(e=t6(n).pathname)[0]?e:"/".concat(e),i=0;i<eT.length;i++){var o=eT[i],a=o[0];if((0,o[1])(t.initiatorType,r))return a}return"other"}(t),o=nD(t),a=tI(t.startTime),s=function(t,e){if(t.traceId)return{_dd:{trace_id:t.traceId,rule_psr:nU(e)}}}(t,e),u=nj(n,a),c=nB(r,a,t.duration),l=tv({date:a.timeStamp,resource:{id:K(),type:i,url:t.name},type:"resource"},s,o,u,c);return{startTime:a.relative,rawRumEvent:l,domainContext:{performanceEntry:t}}}(r,e,tD,t$))}});var t5=(U=location,tc.subscribe(3,function(t){var e,r,i,o;return tc.notify(10,(r=n.getReplayStats(t.id),i=tg.findFeatureFlagEvaluations(t.startClocks.relative),o={_dd:{document_version:t.documentVersion,replay_stats:r},date:t.startClocks.timeStamp,type:"view",view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:t.cumulativeLayoutShift,first_byte:tO(t.timings.firstByte),dom_complete:tO(t.timings.domComplete),dom_content_loaded:tO(t.timings.domContentLoaded),dom_interactive:tO(t.timings.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:tO(t.timings.firstContentfulPaint),first_input_delay:tO(t.timings.firstInputDelay),first_input_time:tO(t.timings.firstInputTime),is_active:t.isActive,name:t.name,largest_contentful_paint:tO(t.timings.largestContentfulPaint),load_event:tO(t.timings.loadEvent),loading_time:tr(e=tO(t.loadingTime))&&e<0?void 0:e,loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:tO(t.duration),in_foreground_periods:tK.selectInForegroundPeriodsFor(t.startClocks.relative,t.duration)},feature_flags:i&&!ts(i)?i:void 0,session:{has_replay:!!r||void 0}},ts(t.customTimings)||(o.view.custom_timings=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=e(t[o])}return n}(t.customTimings,tO)),{rawRumEvent:o,startTime:t.startClocks.relative,domainContext:{location:t.location}}))}),function(t,e,n,r,i,o,a){var s,u,c,l,f=(s=nq(e,n,r,t,"initial_load",tL(),a),u=function(t,e){var n,r,i,o,a,s,u,c,l,f={};function d(t){H(f,t),e(f)}var p={stop:t.subscribe(0,function(t){for(var e=0;e<t.length;e++){var n=t[e];"navigation"===n.entryType&&d({domComplete:n.domComplete,domContentLoaded:n.domContentLoadedEventEnd,domInteractive:n.domInteractive,loadEvent:n.loadEventEnd,firstByte:n.responseStart>=0&&n.responseStart<=tP()?n.responseStart:void 0})}}).unsubscribe}.stop,h=(n=nz(),{stop:t.subscribe(0,function(t){var e=te(t,function(t){return"paint"===t.entryType&&"first-contentful-paint"===t.name&&t.startTime<n.timeStamp&&t.startTime<6e5});e&&d({firstContentfulPaint:e.startTime})}).unsubscribe}).stop,v=(r=window,i=function(t){d({largestContentfulPaint:t})},o=nz(),a=1/0,s=eh(r,["pointerdown","keydown"],function(t){a=t.timeStamp},{capture:!0,once:!0}).stop,u=t.subscribe(0,function(t){var e=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,function(t){return"largest-contentful-paint"===t.entryType&&t.startTime<a&&t.startTime<o.timeStamp&&t.startTime<6e5});e&&i(e.startTime)}).unsubscribe,{stop:function(){s(),u()}}).stop,m=(c=function(t){d({firstInputDelay:t.firstInputDelay,firstInputTime:t.firstInputTime})},l=nz(),{stop:t.subscribe(0,function(t){var e=te(t,function(t){return"first-input"===t.entryType&&t.startTime<l.timeStamp});if(e){var n,r=(n=e.startTime,e.processingStart-n);c({firstInputDelay:r>=0?r:0,firstInputTime:e.startTime})}}).unsubscribe}).stop;return{stop:function(){p(),h(),v(),m()}}}(e,function(t){s.updateTimings(t),s.scheduleUpdate()}).stop,{initialView:s,stop:u}),d=f.stop,p=f.initialView,h=(e.subscribe(8,function(){p.end(),p=v(void 0,{name:p.name,service:p.service,version:p.version})}),e.subscribe(9,function(t){(t.reason===ev.UNLOADING||t.reason===ev.PAGEHIDE)&&(p.end(),p.triggerUpdate())}),c=Z(function(){p.triggerUpdate()},3e5),{stop:function(){G(c)}}).stop;function v(i,o){return nq(e,n,r,t,"route_change",i,o)}return o&&(l=i.subscribe(function(t){var e,n,r;if(e=t.oldLocation,n=t.newLocation,e.pathname!==n.pathname||(r=n.hash.substr(1),!document.getElementById(r)&&nZ(n.hash)!==nZ(e.hash))){p.end(),p.triggerUpdate(),p=v();return}})),{addTiming:function(t,e){void 0===e&&(e=tN()),p.addTiming(t,e),p.scheduleUpdate()},startView:function(t,e){p.end(e),p.triggerUpdate(),p=v(e,t)},stop:function(){null==l||l.unsubscribe(),d(),h(),p.end()}}}(U,tc,tG,e,tJ,!e.trackViewsManually,o)),t4=t5.addTiming,t8=t5.startView,t7=(a=j=new ef,(c=[O.error].map(function(t){var e;return nP[t]||(nP[t]=e=new ef(function(){var n=console[t];return console[t]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n.apply(console,r);var o=t3();D(function(){e.notify(function(t,e,n){var r,i=t.map(function(t){return"string"==typeof t?tS(u.SANITIZE_INPUTS)?tk(t):t:t instanceof Error?t2(tZ(t)):X(tS(u.SANITIZE_INPUTS)?tk(t):t,void 0,2)}).join(" ");if(e===O.error){var o=te(t,function(t){return t instanceof Error});r=o?t1(tZ(o)):void 0,i="console error: ".concat(i)}return{api:e,message:i,stack:r,handlingStack:n}}(r,t,o))})},function(){console[t]=n}})),nP[t]}),ed.apply(void 0,c)).subscribe(function(t){return a.notify({startClocks:tM(),message:t.message,stack:t.stack,source:tQ.CONSOLE,handling:"handled",handlingStack:t.handlingStack})}),(l=B=function(t,e){j.notify(t0({stackTrace:t,originalError:e,startClocks:tM(),nonErrorPrefix:"Uncaught",source:tQ.SOURCE,handling:"unhandled"}))},e6(window,"onerror",{before:function(t,e,n,r,i){if(i)l(tZ(i),i);else{var o,a=t;if("[object String]"===({}).toString.call(t)){var s=nN.exec(a);s&&(o=s[1],a=s[2])}l({name:o,message:"string"==typeof a?a:void 0,stack:[{url:e,column:r,line:n}]},t)}}})).stop,e6(window,"onunhandledrejection",{before:function(t){var e=t.reason||"Empty reason";B(tZ(e),e)}}).stop,($=[nM.cspViolation,nM.intervention],tn=[],Q($,nM.cspViolation)&&tn.push(f=new ef(function(){var t=F(function(t){var e,n;f.notify((e=nM.cspViolation,n="'".concat(t.blockedURI,"' blocked by '").concat(t.effectiveDirective,"' directive"),{type:nM.cspViolation,subtype:t.effectiveDirective,message:"".concat(e,": ").concat(n),stack:nL(t.effectiveDirective,t.originalPolicy?"".concat(n,' of the policy "').concat(tf(t.originalPolicy,100,"..."),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)}))});return ep(document,"securitypolicyviolation",t).stop})),(ti=$.filter(function(t){return t!==nM.cspViolation})).length&&tn.push(p=new ef(function(){if(window.ReportingObserver){var t=F(function(t){return t.forEach(function(t){var e,n;p.notify({type:e=t.type,subtype:(n=t.body).id,message:"".concat(e,": ").concat(n.message),stack:nL(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})})}),e=new window.ReportingObserver(t,{types:ti,buffered:!0});return e.observe(),function(){e.disconnect()}}})),ed.apply(void 0,tn)).subscribe(function(t){return j.notify({startClocks:tM(),message:t.message,stack:t.stack,type:t.subtype,source:tQ.REPORT,handling:"unhandled"})}),j.subscribe(function(t){return tc.notify(12,{error:t})}),tc.subscribe(12,function(t){var e,n,r,i=t.error,o=t.customerContext,a=t.savedCommonContext;tc.notify(10,H({customerContext:o,savedCommonContext:a},(e={date:i.startClocks.timeStamp,error:{id:K(),message:i.message,source:i.source,stack:i.stack,handling_stack:i.handlingStack,type:i.type,handling:i.handling,causes:i.causes,source_type:"browser"},type:"error"},(n=tK.isInForegroundAt(i.startClocks.relative))&&(e.view={in_foreground:n}),(r=tg.findFeatureFlagEvaluations(i.startClocks.relative))&&!ts(r)&&(e.feature_flags=r),{rawRumEvent:e,startTime:i.startClocks.relative,domainContext:{error:i.originalError}})))}),{addError:function(t,e){var n=t.error,r=t.handlingStack,i=t.startClocks,o=t.context,a=t0({stackTrace:n instanceof Error?tZ(n):void 0,originalError:n,handlingStack:r,startClocks:i,nonErrorPrefix:"Provided",source:tQ.CUSTOM,handling:"handled"});tc.notify(12,{customerContext:o,savedCommonContext:e,error:a})}}).addError;to={clearTracingIfNeeded:eo,traceFetch:function(t){return ea(e,t,tD,function(e){var n;if(t.input instanceof Request&&!(null===(n=t.init)||void 0===n?void 0:n.headers))t.input=new Request(t.input),Object.keys(e).forEach(function(n){t.input.headers.append(n,e[n])});else{t.init=V(t.init);var r=[];t.init.headers instanceof Headers?t.init.headers.forEach(function(t,e){r.push([e,t])}):Array.isArray(t.init.headers)?t.init.headers.forEach(function(t){r.push(t)}):t.init.headers&&Object.keys(t.init.headers).forEach(function(e){r.push([e,t.init.headers[e]])}),t.init.headers=r.concat(ta(e))}})},traceXhr:function(t,n){return ea(e,t,tD,function(t){Object.keys(t).forEach(function(e){n.setRequestHeader(e,t[e])})})}},(v||(v=y=new ef(function(){var t=e6(XMLHttpRequest.prototype,"open",{before:e9}).stop,e=e6(XMLHttpRequest.prototype,"send",{before:function(){nt.call(this,y)}}).stop,n=e6(XMLHttpRequest.prototype,"abort",{before:ne}).stop;return function(){t(),e(),n()}})),v).subscribe(function(t){if(eR(e,t.url))switch(t.state){case"start":to.traceXhr(t,t.xhr),t.requestIndex=no(),tc.notify(5,{requestIndex:t.requestIndex,url:t.url});break;case"complete":to.clearTracingIfNeeded(t),tc.notify(6,{duration:t.duration,method:t.method,requestIndex:t.requestIndex,spanId:t.spanId,startClocks:t.startClocks,status:t.status,traceId:t.traceId,traceSampled:t.traceSampled,type:"xhr",url:t.url,xhr:t.xhr})}}),(m||(m=g=new ef(function(){if(window.fetch)return e4(window,"fetch",function(t){return function(e,n){var r,i=D(nn,null,[g,e,n]);return i?D(nr,null,[g,r=t.call(this,i.input,i.init),i]):r=t.call(this,e,n),r}}).stop})),m).subscribe(function(t){if(eR(e,t.url))switch(t.state){case"start":to.traceFetch(t),t.requestIndex=no(),tc.notify(5,{requestIndex:t.requestIndex,url:t.url});break;case"resolve":var n,r,i;n=function(e){to.clearTracingIfNeeded(t),tc.notify(6,{duration:e,method:t.method,requestIndex:t.requestIndex,responseType:t.responseType,spanId:t.spanId,startClocks:t.startClocks,status:t.status,traceId:t.traceId,traceSampled:t.traceSampled,type:"fetch",url:t.url,response:t.response,init:t.init,input:t.input})},(i=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response))&&i.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function a(){if(r.cancel().catch(Y),n.collectStreamBody){if(1===i.length)s=i[0];else{s=new Uint8Array(o);var t,a,s,u=0;i.forEach(function(t){s.set(t,u),u+=t.length})}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}(function t(){r.read().then(F(function(e){if(e.done){a();return}n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t()}),F(function(t){return e(t)}))})()}(i.body,function(){var e;n((e=t.startClocks.timeStamp,tN()-e))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):n((r=t.startClocks.timeStamp,tN()-r))}}),function(t,e){var n;if(n=function(n){eq(t,e,[n])},ek("interactive",function(){var t,e={entryType:"resource",initiatorType:eE,traceId:function(t){var e,n,r=(e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]"),eD(e&&e.content,n&&n.content)||function(t){var e=function(t){for(var e=0;e<t.childNodes.length;e+=1){var n=eU(t.childNodes[e]);if(n)return n}if(t.body)for(var e=t.body.childNodes.length-1;e>=0;e-=1){var r=t.body.childNodes[e],n=eU(r);if(n)return n;if(!eN(r))break}}(t);if(e)return eD(tl(e,"trace-id"),tl(e,"trace-time"))}(t));if(!(!r||r.traceTime<=tR()-12e4))return r.traceId}(document)};if(eB("navigation")&&performance.getEntriesByType("navigation").length>0)t=H(performance.getEntriesByType("navigation")[0].toJSON(),e);else{var r=ez();t=H(r,{decodedBodySize:0,duration:r.responseEnd,name:window.location.href,startTime:0},e)}n(t)}),ej()){var r=performance.getEntries();z(function(){return eq(t,e,r)})}if(window.PerformanceObserver){var i=F(function(n){return eq(t,e,n.getEntries())}),o=["resource","navigation","longtask","paint"],a=["largest-contentful-paint","first-input","layout-shift"];try{a.forEach(function(t){new PerformanceObserver(i).observe({type:t,buffered:!0})})}catch(t){o.push.apply(o,a)}new PerformanceObserver(i).observe({entryTypes:o}),ej()&&"addEventListener"in performance&&performance.addEventListener("resourcetimingbufferfull",function(){performance.clearResourceTimings()})}eB("navigation")||function(t){function e(){t(H(ez(),{entryType:"navigation"}))}ek("complete",function(){z(e)})}(function(n){eq(t,e,[n])}),eB("first-input")||function(t){var e=tR(),n=!1,r=eh(window,["click","mousedown","keydown","touchstart","pointerdown"],function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:tP(),startTime:t.timeStamp};"pointerdown"===t.type?eh(window,["pointerup","pointercancel"],function(t){"pointerup"===t.type&&i(e)},{once:!0}):i(e)}},{passive:!0,capture:!0}).stop;function i(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&o<tR()-e&&t(i)}}}(function(n){eq(t,e,[n])})}(tc,e);var t9=(tu=e.applicationId,{get:function(t){var e=tV.findView(t),n=tW.findUrl(t),r=tD.findTrackedSession(t);if(r&&e&&n){var i=tY.findActionId(t);return{application_id:tu,session_id:r.id,user_action:i?{id:i}:void 0,view:{id:e.id,name:e.name,referrer:n.referrer,url:n.url}}}}});return{addAction:tX,addError:t7,addTiming:t4,addFeatureFlagEvaluation:tg.addFeatureFlagEvaluation,startView:t8,lifeCycle:tc,viewContexts:tV,session:tD,stopSession:function(){return tD.expire()},getInternalContext:t9.get}},function(t,e){if(void 0===e&&(e=r8),tq()||!("function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"forEach"in NodeList.prototype))return{start:Y,stop:Y,getReplayStats:function(){},onRumStart:Y,isRecording:function(){return!1}};var n={status:0},r=function(){n={status:1}},i=function(){n={status:0}};return{start:function(){return r()},stop:function(){return i()},getReplayStats:r0,onRumStart:function(o,a,s,u){o.subscribe(7,function(){(2===n.status||3===n.status)&&(i(),n={status:1})}),o.subscribe(8,function(){1===n.status&&r()}),r=function(){var r=s.findTrackedSession();if(!r||!r.sessionReplayAllowed){n={status:1};return}2!==n.status&&3!==n.status&&(n={status:2},ek("interactive",function(){2===n.status&&e(function(e){if(2===n.status){if(!e){n={status:0};return}n={status:3,stopRecording:t(o,a,s,u,e).stop}}})}))},i=function(){0!==n.status&&(3===n.status&&n.stopRecording(),n={status:0})},1===n.status&&r()},isRecording:function(){return 3===n.status}}}(function(t,e,n,r,i,o){var a,s=o||n8(e.sessionReplayEndpointBuilder,6e4,function(e){t.notify(12,{error:e})}),u=(a=e.applicationId,function(t,e,n,r){var i={status:0,nextSegmentCreationReason:"init"},o=t.subscribe(2,function(){s("view_change")}).unsubscribe,a=t.subscribe(9,function(t){s(t.reason)}).unsubscribe;function s(t){1===i.status&&(i.segment.flush(t),q(i.expirationTimeoutId)),i="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:function(t){switch(i.status){case 0:!function(t,o){var a=e();if(a){var u=new r3(r,a,t,o,function(t){!u.flushReason&&t>6e4&&s("segment_bytes_limit")},function(t,e){var r,i,o,a=(r=u.metadata,(i=new FormData).append("segment",new Blob([t],{type:"application/octet-stream"}),"".concat(r.session.id,"-").concat(r.start)),function t(e,n,r){void 0===r&&(r=""),ta(e).forEach(function(e){var i=e[0],o=e[1];"object"==typeof o&&null!==o?t(o,n,"".concat(r).concat(i,".")):n("".concat(r).concat(i),String(o))})}(r,function(t,e){return i.append(t,e)}),i.append("raw_segment_size",e.toString()),{data:i,bytesCount:t.byteLength});(o=u.flushReason,Q(ti(ev),o))?n.sendOnExit(a):n.send(a)});i={status:1,segment:u,expirationTimeoutId:z(function(){s("segment_duration_limit")},3e4)}}}(i.nextSegmentCreationReason,t);break;case 1:i.segment.addRecord(t)}},stop:function(){s("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}}}(a,n,r)},s,i)),c=u.addRecord,l=u.stop,f=function(t){var e,n,r,i,o,a,s,u,c,l,f,d,p,h,v,m,y,g,b,_,w,S,x,k,E,T,C,A,I,O,R=t.emit;if(!R)throw Error("emit function is required");var N=(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)}}),P=function(t){R(rh(rf.Mutation,t))},M=function(t){return R(rh(rf.Input,t))},L=r$(t.configuration,{mutationCb:P,inputCb:M}),F=function(e,n){void 0===e&&(e=tN()),void 0===n&&(n={status:0,elementsScrollPositions:N,shadowRootsController:L});var r,i=eK(),o=i.width;R({data:{height:i.height,href:window.location.href,width:o},type:rc.Meta,timestamp:e}),R({data:{has_focus:document.hasFocus()},type:rc.Focus,timestamp:e}),R({data:{node:rU(document,{serializationContext:n,parentNodePrivacyLevel:(r=t.configuration).defaultPrivacyLevel,configuration:r}),initialOffset:{left:rJ(),top:rH()}},type:rc.FullSnapshot,timestamp:e}),window.visualViewport&&R({data:rG(window.visualViewport),type:rc.VisualViewport,timestamp:e})};F();var D=(n={lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:N,inputCb:M,mediaInteractionCb:function(t){return R(rh(rf.MediaInteraction,t))},mouseInteractionCb:function(t){return R(t)},mousemoveCb:function(t,e){return R(rh(e,{positions:t}))},mutationCb:P,scrollCb:function(t){return R(rh(rf.Scroll,t))},styleSheetCb:function(t){return R(rh(rf.StyleSheetRule,t))},viewportResizeCb:function(t){return R(rh(rf.ViewportResize,t))},frustrationCb:function(t){return R(t)},focusCb:function(t){return R({data:t,type:rc.Focus,timestamp:tN()})},visualViewportResizeCb:function(t){R({data:t,type:rc.VisualViewport,timestamp:tN()})},shadowRootsController:L},r=new WeakMap,i=1,o={getIdForEvent:function(t){return r.has(t)||r.set(t,i++),r.get(t)}},a=rX(n.mutationCb,n.configuration,n.shadowRootsController,document),s=n.mousemoveCb,u=J(function(t){var e=rq(t);if(rT(e)){var n=rV(t);if(!n)return;s([{id:rC(e),timeOffset:0,x:n.x,y:n.y}],rz(t)?rf.TouchMove:rf.MouseMove)}},50,{trailing:!1}).throttled,c=eh(document,["mousemove","touchmove"],u,{capture:!0,passive:!0}).stop,l=n.mouseInteractionCb,f=n.configuration.defaultPrivacyLevel,d=eh(document,Object.keys(rK),function(t){var e,n=rq(t);if(rb(n,f)!==rv.HIDDEN&&rT(n)){var r=rC(n),i=rK[t.type];if(i!==rd.Blur&&i!==rd.Focus){var a=rV(t);if(!a)return;e={id:r,type:i,x:a.x,y:a.y}}else e={id:r,type:i};l(H({id:o.getIdForEvent(t)},rh(rf.MouseInteraction,e)))}},{capture:!0,passive:!0}).stop,p=n.scrollCb,h=n.configuration.defaultPrivacyLevel,v=n.elementsScrollPositions,m=J(function(t){var e=rq(t);if(e&&rb(e,h)!==rv.HIDDEN&&rT(e)){var n=rC(e),r=e===document?{scrollTop:rH(),scrollLeft:rJ()}:{scrollTop:Math.round(e.scrollTop),scrollLeft:Math.round(e.scrollLeft)};v.set(e,r),p({id:n,x:r.scrollLeft,y:r.scrollTop})}},100).throttled,y=ep(document,"scroll",m,{capture:!0,passive:!0}).stop,g=n.viewportResizeCb,b=eV().subscribe(g).unsubscribe,_=rW(n.inputCb,n.configuration.defaultPrivacyLevel),w=n.mediaInteractionCb,S=n.configuration.defaultPrivacyLevel,x=eh(document,["play","pause"],function(t){var e=rq(t);e&&rb(e,S)!==rv.HIDDEN&&rT(e)&&w({id:rC(e),type:"play"===t.type?rp.Play:rp.Pause})},{capture:!0,passive:!0}).stop,k=function(t){function e(t,e){t&&rT(t.ownerNode)&&e(rC(t.ownerNode))}var n=[e6(CSSStyleSheet.prototype,"insertRule",{before:function(n,r){e(this,function(e){return t({id:e,adds:[{rule:n,index:r}]})})}}),e6(CSSStyleSheet.prototype,"deleteRule",{before:function(n){e(this,function(e){return t({id:e,removes:[{index:n}]})})}})];function r(r){n.push(e6(r.prototype,"insertRule",{before:function(n,r){var i=this;e(this.parentStyleSheet,function(e){var o=rY(i);o&&(o.push(r||0),t({id:e,adds:[{rule:n,index:o}]}))})}}),e6(r.prototype,"deleteRule",{before:function(n){var r=this;e(this.parentStyleSheet,function(e){var i=rY(r);i&&(i.push(n),t({id:e,removes:[{index:i}]}))})}}))}return"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule)),function(){return n.forEach(function(t){return t.stop()})}}(n.styleSheetCb),E=n.focusCb,T=eh(window,["focus","blur"],function(){E({has_focus:document.hasFocus()})}).stop,C=function(t){var e=window.visualViewport;if(!e)return Y;var n=J(function(){t(rG(e))},200,{trailing:!1}),r=n.throttled,i=n.cancel,o=eh(e,["resize","scroll"],r,{capture:!0,passive:!0}).stop;return function(){o(),i()}}(n.visualViewportResizeCb),A=n.lifeCycle,I=n.frustrationCb,O=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)&&I({timestamp:t.rawRumEvent.date,type:rc.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(),c(),d(),y(),b(),_(),x(),k(),T(),C(),O()}}),U=D.stop,j=D.flush;function B(){L.flush(),j()}return{stop:function(){L.stop(),U()},takeSubsequentFullSnapshot:function(t){B(),F(t,{shadowRootsController:L,status:1,elementsScrollPositions:N})},flushMutations:B,shadowRootsController:L}}({emit:c,configuration:e,lifeCycle:t}),d=f.stop,p=f.takeSubsequentFullSnapshot,h=f.flushMutations,v=t.subscribe(4,function(){h(),c({timestamp:tN(),type:rc.ViewEnd})}).unsubscribe,m=t.subscribe(2,function(t){p(t.startClocks.timeStamp)}).unsubscribe;return{stop:function(){v(),m(),d(),l()}}}));a=(i=j())[o="DD_RUM"],i[o]=r9,a&&a.q&&a.q.forEach(function(t){return N(t,"onReady callback threw an error:")()})},52574:function(t,e,n){function r(t,e){return new Promise(function(n,r){var i=setTimeout(function(){r(Error("Promise timed out"))},e);t.then(function(t){return clearTimeout(i),n(t)}).catch(r)})}function i(t,e,n){var i=function(){try{return Promise.resolve(e(t))}catch(t){return Promise.reject(t)}};return new Promise(function(t){return setTimeout(t,n)}).then(function(){return r(i(),1e3)}).catch(function(e){null==t||t.log("warn","Callback Error",{error:e}),null==t||t.stats.increment("callback_error")}).then(function(){return t})}n.d(e,{FJ:function(){return r},UI:function(){return i}})},72841:function(t,e,n){n.d(e,{Y:function(){return u},_:function(){return c}});var r=n(96586),i=n(96706),o=n(34792),a=function(){function t(){this._logs=[]}return t.prototype.log=function(t,e,n){var r=new Date;this._logs.push({level:t,message:e,time:r,extras:n})},Object.defineProperty(t.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),t.prototype.flush=function(){if(this.logs.length>1){var t=this._logs.reduce(function(t,e){var n,r,i,a=(0,o.pi)((0,o.pi)({},e),{json:JSON.stringify(e.extras,null," "),extras:e.extras});delete a.time;var s=null!==(i=null===(r=e.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return t[s]&&(s="".concat(s,"-").concat(Math.random())),(0,o.pi)((0,o.pi)({},t),((n={})[s]=a,n))},{});console.table?console.table(t):console.log(t)}else this.logs.forEach(function(t){var e=t.level,n=t.message,r=t.extras;"info"===e||"debug"===e?console.log(n,null!=r?r:""):console[e](n,null!=r?r:"")});this._logs=[]},t}(),s=n(99367),u=function(t){var e,n,r;this.retry=null===(e=t.retry)||void 0===e||e,this.type=null!==(n=t.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=t.reason)&&void 0!==r?r:""},c=function(){function t(t,e,n,i){void 0===e&&(e=(0,r.v4)()),void 0===n&&(n=new s.i),void 0===i&&(i=new a),this.attempts=0,this.event=t,this._id=e,this.logger=i,this.stats=n}return t.system=function(){},t.prototype.isSame=function(t){return t.id===this.id},t.prototype.cancel=function(t){if(t)throw t;throw new u({reason:"Context Cancel"})},t.prototype.log=function(t,e,n){this.logger.log(t,e,n)},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t.prototype.updateEvent=function(t,e){var n;if("integrations"===t.split(".")[0]){var r=t.split(".")[1];if((null===(n=this.event.integrations)||void 0===n?void 0:n[r])===!1)return this.event}return(0,i.N)(this.event,t,e),this.event},t.prototype.failedDelivery=function(){return this._failedDelivery},t.prototype.setFailedDelivery=function(t){this._failedDelivery=t},t.prototype.logs=function(){return this.logger.logs},t.prototype.flush=function(){this.logger.flush(),this.stats.flush()},t.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},t}()},89506:function(t,e,n){n.d(e,{Q:function(){return r}});var r=function(){function t(){this.callbacks={}}return t.prototype.on=function(t,e){return this.callbacks[t]?this.callbacks[t].push(e):this.callbacks[t]=[e],this},t.prototype.once=function(t,e){var n=this,r=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.off(t,r),e.apply(n,i)};return this.on(t,r),this},t.prototype.off=function(t,e){var n,r=(null!==(n=this.callbacks[t])&&void 0!==n?n:[]).filter(function(t){return t!==e});return this.callbacks[t]=r,this},t.prototype.emit=function(t){for(var e,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(null!==(e=this.callbacks[t])&&void 0!==e?e:[]).forEach(function(t){t.apply(n,r)}),this},t}()},80510:function(t,e,n){n.d(e,{M:function(){return o},Z:function(){return a}});var r=n(34792),i=n(89506),o="onRemoveFromFuture",a=function(t){function e(e,n,r){var i=t.call(this)||this;return i.future=[],i.maxAttempts=e,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.ZT)(e,t),e.prototype.push=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map(function(e){return!(t.updateAttempts(e)>t.maxAttempts||t.includes(e))&&(t.queue.push(e),!0)});return this.queue=this.queue.sort(function(e,n){return t.getAttempts(e)-t.getAttempts(n)}),r},e.prototype.pushWithBackoff=function(t){var e,n,r,i,a,s=this;if(0===this.getAttempts(t))return this.push(t)[0];var u=this.updateAttempts(t);return!(u>this.maxAttempts||this.includes(t))&&(setTimeout(function(){s.queue.push(t),s.future=s.future.filter(function(e){return e.id!==t.id}),s.emit(o)},(e={attempt:u-1},n=Math.random()+1,r=e.minTimeout,Math.min(n*(void 0===r?500:r)*Math.pow(void 0===(i=e.factor)?2:i,e.attempt),void 0===(a=e.maxTimeout)?1/0:a))),this.future.push(t),!0)},e.prototype.getAttempts=function(t){var e;return null!==(e=this.seen[t.id])&&void 0!==e?e:0},e.prototype.updateAttempts=function(t){return this.seen[t.id]=this.getAttempts(t)+1,this.getAttempts(t)},e.prototype.includes=function(t){return this.queue.includes(t)||this.future.includes(t)||!!this.queue.find(function(e){return e.id===t.id})||!!this.future.find(function(e){return e.id===t.id})},e.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(e.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),e}(i.Q)},39967:function(t,e,n){n.d(e,{a:function(){return o},z:function(){return a}});var r=n(34792),i=n(72841);function o(t,e){t.log("debug","plugin",{plugin:e.name});var n=new Date().getTime(),o=e[t.event.type];return void 0===o?Promise.resolve(t):(function(t){return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t()];case 1:return[2,e.sent()];case 2:return[2,Promise.reject(e.sent())];case 3:return[2]}})})})(function(){return o.apply(e,[t])}).then(function(t){var r=new Date().getTime()-n;return t.stats.gauge("plugin_time",r,["plugin:".concat(e.name)]),t}).catch(function(n){if(n instanceof i.Y&&"middleware_cancellation"===n.type)throw n;return n instanceof i.Y?t.log("warn",n.type,{plugin:e.name,error:n}):(t.log("error","plugin Error",{plugin:e.name,error:n}),t.stats.increment("plugin_error",1,["plugin:".concat(e.name)])),n})}function a(t,e){return o(t,e).then(function(e){if(e instanceof i._)return e;t.log("debug","Context canceled"),t.stats.increment("context_canceled"),t.cancel(e)})}},99367:function(t,e,n){n.d(e,{i:function(){return o},s:function(){return i}});var r=n(34792),i=function(){function t(){this.metrics=[]}return t.prototype.increment=function(t,e,n){void 0===e&&(e=1),this.metrics.push({metric:t,value:e,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},t.prototype.gauge=function(t,e,n){this.metrics.push({metric:t,value:e,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},t.prototype.flush=function(){var t=this.metrics.map(function(t){return(0,r.pi)((0,r.pi)({},t),{tags:t.tags.join(",")})});console.table?console.table(t):console.log(t),this.metrics=[]},t.prototype.serialize=function(){return this.metrics.map(function(t){return{m:t.metric,v:t.value,t:t.tags,k:({gauge:"g",counter:"c"})[t.type],e:t.timestamp}})},t}(),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.gauge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},e.prototype.increment=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},e.prototype.flush=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},e.prototype.serialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return[]},e}(i)},86120:function(t,e,n){n.d(e,{b:function(){return tb}});var r,i=n(34792),o=n(43474);function a(){return void 0!==o&&o.env?o.env:{}}var s=n(1770),u=n(19194);function c(t){return"string"==typeof t}function l(t){return"number"==typeof t}function f(t){return"function"==typeof t}function d(t){return"object"===Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}var p=function(t){function e(e,n){var r=t.call(this,n)||this;return r.field=e,r}return(0,i.ZT)(e,t),e}(Error);function h(t){var e,n,r,i,o=t&&t.event&&t.event.type,a=t.event;if(void 0===a)throw new p("event","Event is missing");if(!c(o)||"track"===o&&!c(a.event))throw new p("event","Event is not a string");var s=null!==(i=a.properties)&&void 0!==i?i:a.traits;if("alias"!==o&&!d(s))throw new p("properties","properties is not an object");if(!c(null!==(r=null!==(n=null!==(e=a.userId)&&void 0!==e?e:a.anonymousId)&&void 0!==n?n:a.groupId)&&void 0!==r?r:a.previousId))throw new p("userId","Missing userId or anonymousId");return t}var v={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:h,identify:h,page:h,alias:h,group:h,screen:h};function m(t,e,n,r){var i,o=[t,e,n,r],a=d(t)?t.event:t;if(!a||!c(a))throw Error("Event missing");var s=d(t)?null!==(i=t.properties)&&void 0!==i?i:{}:d(e)?e:{},u={};return f(n)||(u=null!=n?n:{}),d(t)&&!f(e)&&(u=null!=e?e:{}),[a,s,u,o.find(f)]}function y(t,e,n,r,i){var o,a,s=null,u=null,l=[t,e,n,r,i],p=l.filter(c);void 0!==p[0]&&void 0!==p[1]&&(s=p[0],u=p[1]),1===p.length&&(s=null,u=p[0]);var h=l.find(f),v=l.filter(function(t){return null===u?d(t):d(t)||null===t}),m=null!==(o=v[0])&&void 0!==o?o:{},y=null!==(a=v[1])&&void 0!==a?a:{};return[s,u,m,y,h]}var g=function(t){return function(){for(var e,n,r,i,o,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var u=null;u=null!==(r=null!==(e=a.find(c))&&void 0!==e?e:null===(n=a.find(l))||void 0===n?void 0:n.toString())&&void 0!==r?r:t.id();var p=a.filter(function(t){return null===u?d(t):d(t)||null===t}),h=null!==(i=p[0])&&void 0!==i?i:{},v=null!==(o=p[1])&&void 0!==o?o:{},m=a.find(f);return[u,h,v,m]}};function b(t,e,n,r){l(t)&&(t=t.toString()),l(e)&&(e=e.toString());var i=[t,e,n,r],o=i.filter(c),a=o[0],s=void 0===a?t:a,u=o[1],p=i.filter(d)[0];return[s,void 0===u?null:u,void 0===p?{}:p,i.find(f)]}var _=n(15584),w=n(53085),S=n(52574),x=n(89506),k=n(96586),E=n(96706),T=n(38377),C=n.n(T),A=function(){function t(t){this.user=t}return t.prototype.track=function(t,e,n,r){return this.normalize((0,i.pi)((0,i.pi)({},this.baseEvent()),{event:t,type:"track",properties:e,options:(0,i.pi)({},n),integrations:(0,i.pi)({},r)}))},t.prototype.page=function(t,e,n,r,o){var a,s={type:"page",properties:(0,i.pi)({},n),options:(0,i.pi)({},r),integrations:(0,i.pi)({},o)};return null!==t&&(s.category=t,s.properties=null!==(a=s.properties)&&void 0!==a?a:{},s.properties.category=t),null!==e&&(s.name=e),this.normalize((0,i.pi)((0,i.pi)({},this.baseEvent()),s))},t.prototype.screen=function(t,e,n,r,o){var a={type:"screen",properties:(0,i.pi)({},n),options:(0,i.pi)({},r),integrations:(0,i.pi)({},o)};return null!==t&&(a.category=t),null!==e&&(a.name=e),this.normalize((0,i.pi)((0,i.pi)({},this.baseEvent()),a))},t.prototype.identify=function(t,e,n,r){return this.normalize((0,i.pi)((0,i.pi)({},this.baseEvent()),{type:"identify",userId:t,traits:e,options:(0,i.pi)({},n),integrations:(0,i.pi)({},r)}))},t.prototype.group=function(t,e,n,r){return this.normalize((0,i.pi)((0,i.pi)({},this.baseEvent()),{type:"group",traits:e,options:(0,i.pi)({},n),integrations:(0,i.pi)({},r),groupId:t}))},t.prototype.alias=function(t,e,n,r){var o={userId:t,type:"alias",options:(0,i.pi)({},n),integrations:(0,i.pi)({},r)};return(null!==e&&(o.previousId=e),void 0===t)?this.normalize((0,i.pi)((0,i.pi)({},o),this.baseEvent())):this.normalize((0,i.pi)((0,i.pi)({},this.baseEvent()),o))},t.prototype.baseEvent=function(){var t={integrations:{},options:{}},e=this.user;return e.id()&&(t.userId=e.id()),e.anonymousId()&&(t.anonymousId=e.anonymousId()),t},t.prototype.context=function(t){var e,n,r,i=["integrations","anonymousId","timestamp","userId"],o=null!==(e=t.options)&&void 0!==e?e:{};delete o.integrations;var a=Object.keys(o),s=null!==(r=null===(n=t.options)||void 0===n?void 0:n.context)&&void 0!==r?r:{},u={};return a.forEach(function(t){"context"!==t&&(i.includes(t)?(0,E.N)(u,t,o[t]):(0,E.N)(s,t,o[t]))}),[s,u]},t.prototype.normalize=function(t){(null===(e=t.options)||void 0===e?void 0:e.anonymousId)&&this.user.anonymousId(t.options.anonymousId);var e,n,r,o=Object.keys(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce(function(e,n){var r,o;return(0,i.pi)((0,i.pi)({},e),((r={})[n]=!!(null===(o=t.integrations)||void 0===o?void 0:o[n]),r))},{}),a=(0,i.pi)((0,i.pi)({},o),null===(r=t.options)||void 0===r?void 0:r.integrations),s=this.context(t),u=s[0],c=s[1];t.options;var l=(0,i._T)(t,["options"]),f=(0,i.pi)((0,i.pi)((0,i.pi)({timestamp:new Date},l),{context:u,integrations:a}),c),d="ajs-next-"+C().hash(JSON.stringify(f)+(0,k.v4)());return(0,i.pi)((0,i.pi)({},f),{messageId:d})},t}(),I=n(42621),O=n(80510),R=n(72841),N=function(){var t,e,n=0;return{done:function(){return t},run:function(r){var i=r();return"object"==typeof i&&null!==i&&"then"in i&&"function"==typeof i.then&&(1==++n&&(t=new Promise(function(t){return e=t})),i.finally(function(){return 0==--n&&e()})),i}}},P=n(39967),M=function(t){function e(e){return t.call(this,null!=e?e:new I.$(4,"event-queue"))||this}return(0,i.ZT)(e,t),e}(function(t){function e(e){var n=t.call(this)||this;return n.criticalTasks=N(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=e,n.queue.on(O.M,function(){n.scheduleFlush(0)}),n}return(0,i.ZT)(e,t),e.prototype.register=function(t,e,n){return(0,i.mG)(this,void 0,void 0,function(){var r=this;return(0,i.Jh)(this,function(i){switch(i.label){case 0:return[4,Promise.resolve(e.load(t,n)).then(function(){r.plugins.push(e)}).catch(function(n){if("destination"===e.type){r.failedInitializations.push(e.name),console.warn(e.name,n),t.log("warn","Failed to load destination",{plugin:e.name,error:n});return}throw n})];case 1:return i.sent(),[2]}})})},e.prototype.deregister=function(t,e,n){return(0,i.mG)(this,void 0,void 0,function(){var r;return(0,i.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!e.unload)return[3,2];return[4,Promise.resolve(e.unload(t,n))];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(t){return t.name!==e.name}),[3,4];case 3:return r=i.sent(),t.log("warn","Failed to unload destination",{plugin:e.name,error:r}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(t){return(0,i.mG)(this,void 0,void 0,function(){var e;return(0,i.Jh)(this,function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.push(t),e=this.subscribeToDelivery(t),this.scheduleFlush(0),[2,e]})})},e.prototype.subscribeToDelivery=function(t){return(0,i.mG)(this,void 0,void 0,function(){var e=this;return(0,i.Jh)(this,function(n){return[2,new Promise(function(n){var r=function(i,o){i.isSame(t)&&(e.off("flush",r),n(i))};e.on("flush",r)})]})})},e.prototype.dispatchSingle=function(t){return(0,i.mG)(this,void 0,void 0,function(){var e=this;return(0,i.Jh)(this,function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.updateAttempts(t),t.attempts=1,[2,this.deliver(t).catch(function(n){return e.enqueuRetry(n,t)?e.subscribeToDelivery(t):(t.setFailedDelivery({reason:n}),t)})]})})},e.prototype.isEmpty=function(){return 0===this.queue.length},e.prototype.scheduleFlush=function(t){var e=this;void 0===t&&(t=500),this.flushing||(this.flushing=!0,setTimeout(function(){e.flush().then(function(){setTimeout(function(){e.flushing=!1,e.queue.length&&e.scheduleFlush(0)},0)})},t))},e.prototype.deliver=function(t){return(0,i.mG)(this,void 0,void 0,function(){var e,n,r,o;return(0,i.Jh)(this,function(i){switch(i.label){case 0:return[4,this.criticalTasks.done()];case 1:i.sent(),e=Date.now(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.flushOne(t)];case 3:return t=i.sent(),n=Date.now()-e,this.emit("delivery_success",t),t.stats.gauge("delivered",n),t.log("debug","Delivered",t.event),[2,t];case 4:throw o=r=i.sent(),t.log("error","Failed to deliver",o),this.emit("delivery_failure",t,o),t.stats.increment("delivery_failed"),r;case 5:return[2]}})})},e.prototype.enqueuRetry=function(t,e){return(!(t instanceof R.Y)||!!t.retry)&&this.queue.pushWithBackoff(e)},e.prototype.flush=function(){return(0,i.mG)(this,void 0,void 0,function(){var t,e;return(0,i.Jh)(this,function(n){switch(n.label){case 0:if(0===this.queue.length||!window.navigator.onLine||!(t=this.queue.pop()))return[2,[]];t.attempts=this.queue.getAttempts(t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(t)];case 2:return t=n.sent(),this.emit("flush",t,!0),[3,4];case 3:return e=n.sent(),this.enqueuRetry(e,t)||(t.setFailedDelivery({reason:e}),this.emit("flush",t,!1)),[2,[]];case 4:return[2,[t]]}})})},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(t){var e,n,r=(e="type",n={},this.plugins.filter(function(e){if("destination"!==e.type&&"Segment.io"!==e.name)return!0;var n,r,i,o=void 0;return null===(n=e.alternativeNames)||void 0===n||n.forEach(function(e){void 0!==t[e]&&(o=t[e])}),null!==(i=null!==(r=t[e.name])&&void 0!==r?r:o)&&void 0!==i?i:!1!==("Segment.io"===e.name||t.All)}).forEach(function(t){var r,o=void 0;if("string"==typeof e){var a=t[e];o="string"!=typeof a?JSON.stringify(a):a}else e instanceof Function&&(o=e(t));void 0!==o&&(n[o]=(0,i.ev)((0,i.ev)([],null!==(r=n[o])&&void 0!==r?r:[],!0),[t],!1))}),n),o=r.before,a=r.enrichment,s=r.destination,u=r.after;return{before:void 0===o?[]:o,enrichment:void 0===a?[]:a,destinations:void 0===s?[]:s,after:void 0===u?[]:u}},e.prototype.flushOne=function(t){var e,n;return(0,i.mG)(this,void 0,void 0,function(){var r,o,a,s,u,c,l,f,d,p,h,v,m;return(0,i.Jh)(this,function(i){switch(i.label){case 0:if(!this.isReady())throw Error("Not ready");t.attempts>1&&this.emit("delivery_retry",t),o=(r=this.availableExtensions(null!==(e=t.event.integrations)&&void 0!==e?e:{})).before,a=r.enrichment,s=0,u=o,i.label=1;case 1:if(!(s<u.length))return[3,4];return c=u[s],[4,(0,P.z)(t,c)];case 2:(l=i.sent())instanceof R._&&(t=l),this.emit("message_enriched",t,c),i.label=3;case 3:return s++,[3,1];case 4:f=0,d=a,i.label=5;case 5:if(!(f<d.length))return[3,8];return p=d[f],[4,(0,P.a)(t,p)];case 6:(l=i.sent())instanceof R._&&(t=l),this.emit("message_enriched",t,p),i.label=7;case 7:return f++,[3,5];case 8:return v=(h=this.availableExtensions(null!==(n=t.event.integrations)&&void 0!==n?n:{})).destinations,m=h.after,[4,new Promise(function(e,n){setTimeout(function(){Promise.all(v.map(function(e){return(0,P.a)(t,e)})).then(e).catch(n)},0)})];case 9:return i.sent(),t.stats.increment("message_delivered"),this.emit("message_delivered",t),[4,Promise.all(m.map(function(e){return(0,P.a)(t,e)}))];case 10:return i.sent(),[2,t]}})})},e}(x.Q)),L=n(4851),F=n(98045),D=n(50202),U=n(83722),j="This is being deprecated and will be not be available in future releases of Analytics JS",B=(0,U.R)(),z=null==B?void 0:B.analytics;function q(){console.warn(j)}var Z=function(t){function e(e,n,r,o,a){var s,u,c,l,f,d,p=this;(p=t.call(this)||this)._debug=!1,p.initialized=!1,p.user=function(){return p._user},p.init=p.initialize.bind(p),p.log=q,p.addIntegrationMiddleware=q,p.listeners=q,p.addEventListener=q,p.removeAllListeners=q,p.removeListener=q,p.removeEventListener=q,p.hasListeners=q,p.add=q,p.addIntegration=q;var h=null==n?void 0:n.cookie,v=null!==(l=null==n?void 0:n.disableClientPersistence)&&void 0!==l&&l;return p.settings=e,p.settings.timeout=null!==(f=p.settings.timeout)&&void 0!==f?f:300,p.queue=null!=r?r:(void 0===(s=null==n?void 0:n.retryQueue)&&(s=!1),void 0===(u=v)&&(u=!1),c=s?4:1,new M(u?new O.Z(c,[]):new I.$(c,"event-queue"))),p._universalStorage=new L.Nt(v?["memory"]:["localStorage","cookie","memory"],(0,L.sV)(h)),p._user=null!=o?o:new L.n5(v?(0,i.pi)((0,i.pi)({},null==n?void 0:n.user),{persist:!1}):null==n?void 0:n.user,h).load(),p._group=null!=a?a:new L.ZA(v?(0,i.pi)((0,i.pi)({},null==n?void 0:n.group),{persist:!1}):null==n?void 0:n.group,h).load(),p.eventFactory=new A(p._user),p.integrations=null!==(d=null==n?void 0:n.integrations)&&void 0!==d?d:{},p.options=null!=n?n:{},(0,F.Z)(p),p}return(0,i.ZT)(e,t),Object.defineProperty(e.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),e.prototype.track=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.mG)(this,void 0,void 0,function(){var e,n,r,o,a,s,u=this;return(0,i.Jh)(this,function(i){return n=(e=m.apply(void 0,t))[0],r=e[1],o=e[2],a=e[3],s=this.eventFactory.track(n,r,o,this.integrations),[2,this._dispatch(s,a).then(function(t){return u.emit("track",n,t.event.properties,t.event.options),t})]})})},e.prototype.page=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.mG)(this,void 0,void 0,function(){var e,n,r,o,a,s,u,c=this;return(0,i.Jh)(this,function(i){return n=(e=y.apply(void 0,t))[0],r=e[1],o=e[2],a=e[3],s=e[4],u=this.eventFactory.page(n,r,o,a,this.integrations),[2,this._dispatch(u,s).then(function(t){return c.emit("page",n,r,t.event.properties,t.event.options),t})]})})},e.prototype.identify=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.mG)(this,void 0,void 0,function(){var e,n,r,o,a,s,u=this;return(0,i.Jh)(this,function(i){return n=(e=g(this._user).apply(void 0,t))[0],r=e[1],o=e[2],a=e[3],this._user.identify(n,r),s=this.eventFactory.identify(this._user.id(),this._user.traits(),o,this.integrations),[2,this._dispatch(s,a).then(function(t){return u.emit("identify",t.event.userId,t.event.traits,t.event.options),t})]})})},e.prototype.group=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(0===e.length)return this._group;var r=g(this._group).apply(void 0,e),i=r[0],o=r[1],a=r[2],s=r[3];this._group.identify(i,o);var u=this._group.id(),c=this._group.traits(),l=this.eventFactory.group(u,c,a,this.integrations);return this._dispatch(l,s).then(function(e){return t.emit("group",e.event.groupId,e.event.traits,e.event.options),e})},e.prototype.alias=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.mG)(this,void 0,void 0,function(){var e,n,r,o,a,s,u=this;return(0,i.Jh)(this,function(i){return n=(e=b.apply(void 0,t))[0],r=e[1],o=e[2],a=e[3],s=this.eventFactory.alias(n,r,o,this.integrations),[2,this._dispatch(s,a).then(function(t){return u.emit("alias",n,r,t.event.options),t})]})})},e.prototype.screen=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.mG)(this,void 0,void 0,function(){var e,n,r,o,a,s,u,c=this;return(0,i.Jh)(this,function(i){return n=(e=y.apply(void 0,t))[0],r=e[1],o=e[2],a=e[3],s=e[4],u=this.eventFactory.screen(n,r,o,a,this.integrations),[2,this._dispatch(u,s).then(function(t){return c.emit("screen",n,r,t.event.properties,t.event.options),t})]})})},e.prototype.trackClick=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.mG)(this,void 0,void 0,function(){var e;return(0,i.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e(8119).then(n.bind(n,19459))];case 1:return[2,(e=r.sent().link).call.apply(e,(0,i.ev)([this],t,!1))]}})})},e.prototype.trackLink=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.mG)(this,void 0,void 0,function(){var e;return(0,i.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e(8119).then(n.bind(n,19459))];case 1:return[2,(e=r.sent().link).call.apply(e,(0,i.ev)([this],t,!1))]}})})},e.prototype.trackSubmit=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.mG)(this,void 0,void 0,function(){var e;return(0,i.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e(8119).then(n.bind(n,19459))];case 1:return[2,(e=r.sent().form).call.apply(e,(0,i.ev)([this],t,!1))]}})})},e.prototype.trackForm=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.mG)(this,void 0,void 0,function(){var e;return(0,i.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e(8119).then(n.bind(n,19459))];case 1:return[2,(e=r.sent().form).call.apply(e,(0,i.ev)([this],t,!1))]}})})},e.prototype.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.mG)(this,void 0,void 0,function(){var e,n=this;return(0,i.Jh)(this,function(r){switch(r.label){case 0:return e=w._.system(),[4,Promise.all(t.map(function(t){return n.queue.register(e,t,n)}))];case 1:return r.sent(),[2,e]}})})},e.prototype.deregister=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.mG)(this,void 0,void 0,function(){var e,n=this;return(0,i.Jh)(this,function(r){switch(r.label){case 0:return e=w._.system(),[4,Promise.all(t.map(function(t){var r=n.queue.plugins.find(function(e){return e.name===t});if(r)return n.queue.deregister(e,r,n);e.log("warn","plugin ".concat(t," not found"))}))];case 1:return r.sent(),[2,e]}})})},e.prototype.debug=function(t){return!1===t&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=t,this},e.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},e.prototype.timeout=function(t){this.settings.timeout=t},e.prototype._dispatch=function(t,e){return(0,i.mG)(this,void 0,void 0,function(){var n;return(0,i.Jh)(this,function(r){return(n=new w._(t),(0,_.s)()&&!this.options.retryQueue)?[2,n]:[2,function(t,e,n,r){return(0,i.mG)(this,void 0,void 0,function(){var o,a;return(0,i.Jh)(this,function(i){switch(i.label){case 0:if(n.emit("dispatch_start",t),o=Date.now(),!e.isEmpty())return[3,2];return[4,e.dispatchSingle(t)];case 1:return a=i.sent(),[3,4];case 2:return[4,e.dispatch(t)];case 3:a=i.sent(),i.label=4;case 4:var s,u;if(!(null==r?void 0:r.callback))return[3,6];return[4,(0,S.UI)(a,r.callback,(s=o,Math.max((null!=(u=r.timeout)?u:300)-(Date.now()-s),0)))];case 5:a=i.sent(),i.label=6;case 6:return(null==r?void 0:r.debug)&&a.flush(),[2,a]}})})}(n,this.queue,this,{callback:e,debug:this._debug,timeout:this.settings.timeout})]})})},e.prototype.addSourceMiddleware=function(t){return(0,i.mG)(this,void 0,void 0,function(){var e=this;return(0,i.Jh)(this,function(r){switch(r.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,i.mG)(e,void 0,void 0,function(){var e,r,o;return(0,i.Jh)(this,function(i){switch(i.label){case 0:return[4,Promise.resolve().then(n.bind(n,15532))];case 1:return e=i.sent().sourceMiddlewarePlugin,r={},this.queue.plugins.forEach(function(t){if("destination"===t.type)return r[t.name]=!0}),o=e(t,r),[4,this.register(o)];case 2:return i.sent(),[2]}})})})];case 1:return r.sent(),[2,this]}})})},e.prototype.addDestinationMiddleware=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.queue.plugins.filter(function(e){return e.name.toLowerCase()===t.toLowerCase()}).forEach(function(t){t.addMiddleware.apply(t,e)}),Promise.resolve(this)},e.prototype.setAnonymousId=function(t){return this._user.anonymousId(t)},e.prototype.queryString=function(t){return(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(e){switch(e.label){case 0:if(!1===this.options.useQueryString)return[2,[]];return[4,n.e(3096).then(n.bind(n,1177))];case 1:return[2,(0,e.sent().queryString)(this,t)]}})})},e.prototype.use=function(t){return t(this),this},e.prototype.ready=function(t){return void 0===t&&(t=function(t){return t}),(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(e){return[2,Promise.all(this.queue.plugins.map(function(t){return t.ready?t.ready():Promise.resolve()})).then(function(e){return t(e),e})]})})},e.prototype.noConflict=function(){return console.warn(j),window.analytics=null!=z?z:this,this},e.prototype.normalize=function(t){return console.warn(j),this.eventFactory.normalize(t)},Object.defineProperty(e.prototype,"failedInitializations",{get:function(){return console.warn(j),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"VERSION",{get:function(){return D.i},enumerable:!1,configurable:!0}),e.prototype.initialize=function(t,e){return(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(t){return console.warn(j),[2,Promise.resolve(this)]})})},e.prototype.pageview=function(t){return(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(e){switch(e.label){case 0:return console.warn(j),[4,this.page({path:t})];case 1:return e.sent(),[2,this]}})})},Object.defineProperty(e.prototype,"plugins",{get:function(){var t;return console.warn(j),null!==(t=this._plugins)&&void 0!==t?t:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Integrations",{get:function(){return console.warn(j),this.queue.plugins.filter(function(t){return"destination"===t.type}).reduce(function(t,e){var n="".concat(e.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return t;var i=r.Integration;return i?t[e.name]=i:t[e.name]=r,t},{})},enumerable:!1,configurable:!0}),e.prototype.push=function(t){var e=t.shift();(!e||this[e])&&this[e].apply(this,t)},e}(x.Q),G=n(56927),J=function(){var t,e,n=new Promise(function(n,r){t=n,e=r});return{resolve:t,reject:e,promise:n}};function H(){var t=document.getElementsByTagName("link"),e="";return Array.prototype.slice.call(t).forEach(function(t){"canonical"===t.getAttribute("rel")&&(e=t.getAttribute("href"))}),e}function V(){return{path:function(){var t=H();if(!t)return window.location.pathname;var e=document.createElement("a");return e.href=t,e.pathname.startsWith("/")?e.pathname:"/"+e.pathname}(),referrer:document.referrer,search:location.search,title:document.title,url:function(t){void 0===t&&(t="");var e=H();if(e)return e.includes("?")?e:"".concat(e).concat(t);var n=window.location.href,r=n.indexOf("#");return -1===r?n:n.slice(0,r)}(location.search)}}function K(t){var e,n=t.event;n.context=n.context||{};var r=V(),i=null!==(e=n.properties)&&void 0!==e?e:{};return Object.keys(r).forEach(function(t){i[t]&&(r[t]=i[t])}),n.context.page&&(r=Object.assign({},r,n.context.page)),n.context=Object.assign({},n.context,{page:r}),t.event=n,t}var W={name:"Page Enrichment",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:function(t){return t.event.properties=Object.assign({},V(),t.event.properties),t.event.name&&(t.event.properties.name=t.event.name),K(t)},alias:K,track:K,identify:K,group:K},Y=n(91221),X=n(15532),$=function(){function t(t,e){this.version="1.0.0",this.alternativeNames=[],this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=e,this.name=t,this.type=e.type,this.alternativeNames.push(e.name)}return t.prototype.addMiddleware=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];"destination"===this.type&&(t=this.middleware).push.apply(t,e)},t.prototype.transform=function(t){return(0,i.mG)(this,void 0,void 0,function(){var e;return(0,i.Jh)(this,function(n){switch(n.label){case 0:return[4,(0,X.applyDestinationMiddleware)(this.name,t.event,this.middleware)];case 1:return null===(e=n.sent())&&t.cancel(new R.Y({retry:!1,reason:"dropped by destination middleware"})),[2,new w._(e)]}})})},t.prototype._createMethod=function(t){var e=this;return function(n){return(0,i.mG)(e,void 0,void 0,function(){var e;return(0,i.Jh)(this,function(r){switch(r.label){case 0:if(!this.action[t])return[2,n];if(e=n,"destination"!==this.type)return[3,2];return[4,this.transform(n)];case 1:e=r.sent(),r.label=2;case 2:return[4,this.action[t](e)];case 3:return r.sent(),[2,n]}})})}},t.prototype.isLoaded=function(){return this.action.isLoaded()},t.prototype.ready=function(){return this.action.ready?this.action.ready():Promise.resolve()},t.prototype.load=function(t,e){return this.action.load(t,e)},t.prototype.unload=function(t,e){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,t,e)},t}(),Q=n(75331),tt=function(t){var e=!1;window.addEventListener("pagehide",function(){e||(e=!0,t())}),document.addEventListener("visibilitychange",function(){"hidden"==document.visibilityState?e||(e=!0,t()):e=!1})};function te(t){return(encodeURI(JSON.stringify(t)).split(/%..|./).length-1)/1024}var tn=n(13443),tr=n(63197);function ti(t,e,n,r){var o=this;t||setTimeout(function(){return(0,i.mG)(o,void 0,void 0,function(){var t,o;return(0,i.Jh)(this,function(a){switch(a.label){case 0:return t=!0,[4,function(t,e){return(0,i.mG)(this,void 0,void 0,function(){var n,r=this;return(0,i.Jh)(this,function(o){switch(o.label){case 0:if(n=[],(0,_.s)())return[2,e];return[4,(0,tr.x)(function(){return e.length>0&&!(0,_.s)()},function(){return(0,i.mG)(r,void 0,void 0,function(){var r;return(0,i.Jh)(this,function(i){switch(i.label){case 0:if(!(r=e.pop()))return[2];return[4,(0,P.a)(r,t)];case 1:return i.sent() instanceof w._||n.push(r),[2]}})})})];case 1:return o.sent(),n.map(function(t){return e.pushWithBackoff(t)}),[2,e]}})})}(n,e)];case 1:return o=a.sent(),t=!1,e.todo>0&&r(t,o,n,r),[2]}})})},5e3*Math.random())}var to=n(75164),ta=function(t,e,n){n.getCalls(t).forEach(function(t){tf(e,t).catch(console.error)})},ts=ta.bind(void 0,"on"),tu=ta.bind(void 0,"setAnonymousId"),tc=function(t,e){e.toArray().forEach(function(e){setTimeout(function(){tf(t,e).catch(console.error)},0)})},tl=function(){function t(){this._value={}}return t.prototype.toArray=function(){var t;return(t=[]).concat.apply(t,Object.values(this._value))},t.prototype.getCalls=function(t){var e;return null!==(e=this._value[t])&&void 0!==e?e:[]},t.prototype.push=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.forEach(function(e){t._value[e.method]?t._value[e.method].push(e):t._value[e.method]=[e]}),this},t.prototype.clear=function(){return this._value={},this},t}();function tf(t,e){return(0,i.mG)(this,void 0,void 0,function(){var n,r;return(0,i.Jh)(this,function(i){switch(i.label){case 0:var o;if(i.trys.push([0,3,,4]),e.called)return[2,void 0];if(e.called=!0,!("object"==typeof(o=n=t[e.method].apply(t,e.args))&&null!==o&&"then"in o&&"function"==typeof o.then))return[3,2];return[4,n];case 1:i.sent(),i.label=2;case 2:return e.resolve(n),[3,4];case 3:return r=i.sent(),e.reject(r),[3,4];case 4:return[2]}})})}var td=function(){function t(t){var e=this;this._preInitBuffer=new tl,this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=D.i,this._promise=t(this._preInitBuffer),this._promise.then(function(t){var n=t[0],r=t[1];e.instance=n,e.ctx=r}).catch(function(){})}return t.prototype.then=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).then.apply(t,e)},t.prototype.catch=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).catch.apply(t,e)},t.prototype.finally=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).finally.apply(t,e)},t.prototype._createMethod=function(t){var e=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.instance?Promise.resolve((n=e.instance)[t].apply(n,r)):new Promise(function(n,i){e._preInitBuffer.push({method:t,args:r,resolve:n,reject:i,called:!1})})}},t.prototype._createChainableMethod=function(t){var e=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.instance?(n=e.instance)[t].apply(n,r):e._preInitBuffer.push({method:t,args:r,resolve:function(){},reject:console.error,called:!1}),e}},t}();function tp(t){return{method:t[0],resolve:function(){},reject:console.error,args:t.slice(1),called:!1}}var th=function(){var t=window.analytics;return Array.isArray(t)?t.splice(0,t.length).map(tp):[]},tv=(0,U.R)(),tm=null!==(r=tv.__SEGMENT_INSPECTOR__)&&void 0!==r?r:tv.__SEGMENT_INSPECTOR__={},ty=function(t){var e;return null===(e=tm.attach)||void 0===e?void 0:e.call(tm,t)},tg=n(32502),tb=function(t){function e(){var e=this,r=J(),o=r.promise,c=r.resolve;return(e=t.call(this,function(t){return o.then(function(e){return function(t,e,r){var o,c,l,f,d,p,h;return void 0===e&&(e={}),(0,i.mG)(this,void 0,void 0,function(){var m,y,g,b,w,S,x,k,E,T,C;return(0,i.Jh)(this,function(A){var R,N,P,M;switch(A.label){case 0:if(t.cdnURL&&(0,s.UH)(t.cdnURL),!(null!==(o=t.cdnSettings)&&void 0!==o))return[3,1];return y=o,[3,3];case 1:return[4,(R=t.writeKey,P=null!=(N=t.cdnURL)?N:(0,s.Vl)(),(0,u.h)("".concat(P,"/v1/projects/").concat(R,"/settings")).then(function(t){return t.ok?t.json():t.text().then(function(t){throw Error(t)})}).catch(function(t){throw console.error(t.message),t}))];case 2:y=A.sent(),A.label=3;case 3:return g=null===(l=null===(c=(m=y).integrations["Segment.io"])||void 0===c?void 0:c.retryQueue)||void 0===l||l,ty(w=new Z(t,b=(0,i.pi)({retryQueue:g},e))),S=null!==(f=t.plugins)&&void 0!==f?f:[],x=null!==(d=t.classicIntegrations)&&void 0!==d?d:[],tg.j.initRemoteMetrics(m.metrics),M=w,r.push.apply(r,th()),tu(M,r),ts(M,r),[4,function(t,e,r,o,c,l){var f,d,p;return(0,i.mG)(this,void 0,void 0,function(){var h,m,y,g,b,w,S,x,k,E,T=this;return(0,i.Jh)(this,function(C){var A,R,N;switch(C.label){case 0:if("test"===a().NODE_ENV||!((null!==(N=null===(R=null===(A=t.middlewareSettings)||void 0===A?void 0:A.routingRules)||void 0===R?void 0:R.length)&&void 0!==N?N:0)>0))return[3,2];return[4,n.e(4604).then(n.bind(n,15896)).then(function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)})];case 1:return m=C.sent(),[3,3];case 2:m=void 0,C.label=3;case 3:if(h=m,("test"===a().NODE_ENV||!(Object.keys(t.integrations).length>1))&&!(l.length>0))return[3,5];return[4,n.e(9464).then(n.bind(n,21041)).then(function(n){return n.ajsDestinations(t,e.integrations,r,h,l)})];case 4:return g=C.sent(),[3,6];case 5:g=[],C.label=6;case 6:if(y=g,!t.legacyVideoPluginsEnabled)return[3,8];return[4,n.e(8150).then(n.bind(n,5471)).then(function(t){return t.loadLegacyVideoPlugins(e)})];case 7:C.sent(),C.label=8;case 8:if(!(null===(f=r.plan)||void 0===f?void 0:f.track))return[3,10];return[4,n.e(7493).then(n.bind(n,63383)).then(function(e){var n;return e.schemaFilter(null===(n=r.plan)||void 0===n?void 0:n.track,t)})];case 9:return w=C.sent(),[3,11];case 10:w=void 0,C.label=11;case 11:return b=w,S=(0,G.o)(t,o),[4,(function(t,e,n,r,o){var a,u,c;return(0,i.mG)(this,void 0,void 0,function(){var l,f,d,p=this;return(0,i.Jh)(this,function(h){switch(h.label){case 0:return l=[],f=(0,s.Vl)(),d=null!==(u=null===(a=t.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==u?u:[],[4,Promise.all((null!==(c=t.remotePlugins)&&void 0!==c?c:[]).map(function(t){return(0,i.mG)(p,void 0,void 0,function(){var a,s,u,c,p,h,v,m;return(0,i.Jh)(this,function(y){switch(y.label){case 0:var g,b;if(g=e[t.creationName],b=e[t.name],!1===e.All&&!g&&!b||!1===g||!1===b)return[2];y.label=1;case 1:if(y.trys.push([1,12,,13]),a=RegExp("https://cdn.segment.(com|build)"),!r)return[3,7];u=(s=t.url.split("/"))[s.length-2],c=t.url.replace(u,btoa(u).replace(/=/g,"")),y.label=2;case 2:return y.trys.push([2,4,,6]),[4,(0,Y.v)(c.replace(a,f))];case 3:case 5:return y.sent(),[3,6];case 4:return y.sent(),[4,(0,Y.v)(t.url.replace(a,f))];case 6:return[3,9];case 7:return[4,(0,Y.v)(t.url.replace(a,f))];case 8:y.sent(),y.label=9;case 9:if(p=t.libraryName,"function"!=typeof window[p])return[3,11];return[4,(0,window[p])((0,i.pi)((0,i.pi)({},t.settings),n[t.name]))];case 10:(function(t){if(!Array.isArray(t))throw Error("Not a valid list of plugins");var e=["load","isLoaded","name","version","type"];t.forEach(function(t){e.forEach(function(e){var n;if(void 0===t[e])throw Error("Plugin: ".concat(null!==(n=t.name)&&void 0!==n?n:"unknown"," missing required function ").concat(e))})})})(v=Array.isArray(h=y.sent())?h:[h]),m=d.filter(function(e){return e.destinationName===t.creationName}),v.forEach(function(e){var n=new $(t.creationName,e);m.length&&o&&"destination"===e.type&&n.addMiddleware(o),l.push(n)}),y.label=11;case 11:return[3,13];case 12:return console.warn("Failed to load Remote Plugin",y.sent()),[3,13];case 13:return[2]}})})}))];case 1:return h.sent(),[2,l.filter(Boolean)]}})})})(t,e.integrations,S,o.obfuscate,h).catch(function(){return[]})];case 12:return x=C.sent(),k=(0,i.ev)((0,i.ev)((0,i.ev)([v,W],c,!0),y,!0),x,!0),b&&k.push(b),(null===(d=r.integrations)||void 0===d?void 0:d.All)===!1&&!r.integrations["Segment.io"]||r.integrations&&!1===r.integrations["Segment.io"]||k.push(function(t,e,n){window.addEventListener("pagehide",function(){s.push.apply(s,Array.from(c)),c.clear()});var r,o,a,s=t.options.disableClientPersistence?new O.Z(t.queue.queue.maxAttempts,[]):new I.$(t.queue.queue.maxAttempts,"dest-Segment.io"),c=new Set,l=null!==(o=null==e?void 0:e.apiHost)&&void 0!==o?o:to.U,f=null!==(a=null==e?void 0:e.protocol)&&void 0!==a?a:"https",d="".concat(f,"://").concat(l),p=null==e?void 0:e.deliveryStrategy,h=(null==p?void 0:p.strategy)==="batching"?function(t,e){var n,r,o,a=[],s=!1,c=null!==(n=null==e?void 0:e.size)&&void 0!==n?n:10,l=null!==(r=null==e?void 0:e.timeout)&&void 0!==r?r:5e3;function f(e){if(0!==e.length){var n,r=null===(n=e[0])||void 0===n?void 0:n.writeKey;return(0,u.h)("https://".concat(t,"/b"),{keepalive:s,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({batch:e,writeKey:r})})}}function d(){return(0,i.mG)(this,void 0,void 0,function(){var t;return(0,i.Jh)(this,function(e){return a.length?(t=a,a=[],[2,f(t)]):[2]})})}return tt(function(){if(s=!0,a.length){var t,e;Promise.all((t=[],e=0,a.forEach(function(n){te(t[e])>=64&&e++,t[e]?t[e].push(n):t[e]=[n]}),t).map(f)).catch(console.error)}}),{dispatch:function(t,e){return(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(t){return a.push(e),[2,a.length>=c||te(a)>=450||s?d():void(o||(o=setTimeout(function(){o=void 0,d().catch(console.error)},l)))]})})}}}(l,p.config):(r=null==p?void 0:p.config,{dispatch:function(t,e){return(0,u.h)(t,{keepalive:null==r?void 0:r.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(e)})}});function v(r){return(0,i.mG)(this,void 0,void 0,function(){var o,a;return(0,i.Jh)(this,function(i){if((0,_.s)())return s.push(r),ti(!1,s,m,ti),[2,r];if(c.add(r),o=r.event.type.charAt(0),a=(0,Q.D)(r.event).json(),"track"===r.event.type&&delete a.traits,"alias"===r.event.type){var u,l,f,p,v,y;u=a,y=t.user(),u.previousId=null!==(p=null!==(f=null!==(l=u.previousId)&&void 0!==l?l:u.from)&&void 0!==f?f:y.id())&&void 0!==p?p:y.anonymousId(),u.userId=null!==(v=u.userId)&&void 0!==v?v:u.to,delete u.from,delete u.to,a=u}return[2,h.dispatch("".concat(d,"/").concat(o),(0,tn.Fv)(t,a,e,n)).then(function(){return r}).catch(function(){return s.pushWithBackoff(r),ti(!1,s,m,ti),r}).finally(function(){c.delete(r)})]})})}var m={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:v,identify:v,page:v,alias:v,group:v};return s.todo&&ti(!1,s,m,ti),m}(e,S["Segment.io"],t.integrations)),[4,e.register.apply(e,k)];case 13:if(E=C.sent(),!Object.entries(null!==(p=t.enabledMiddleware)&&void 0!==p?p:{}).some(function(t){return t[1]}))return[3,15];return[4,n.e(9214).then(n.bind(n,22245)).then(function(n){var r=n.remoteMiddlewares;return(0,i.mG)(T,void 0,void 0,function(){return(0,i.Jh)(this,function(n){switch(n.label){case 0:return[4,r(E,t,o.obfuscate)];case 1:return[2,Promise.all(n.sent().map(function(t){return e.addSourceMiddleware(t)}))]}})})})];case 14:C.sent(),C.label=15;case 15:return[2,E]}})})}(m,w,b,e,S,x)];case 4:if(k=A.sent(),E=null!==(p=window.location.search)&&void 0!==p?p:"",T=null!==(h=window.location.hash)&&void 0!==h?h:"",!(C=E.length?E:T.replace(/(?=#).*(?=\?)/,"")).includes("ajs_"))return[3,6];return[4,w.queryString(C).catch(console.error)];case 5:A.sent(),A.label=6;case 6:return w.initialized=!0,w.emit("initialize",t,e),e.initialPageview&&w.page().catch(console.error),[4,function(t,e){return(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(n){switch(n.label){case 0:return e.push.apply(e,th()),[4,(0,i.mG)(void 0,void 0,void 0,function(){var n,r;return(0,i.Jh)(this,function(i){switch(i.label){case 0:n=0,r=e.getCalls("addSourceMiddleware"),i.label=1;case 1:if(!(n<r.length))return[3,4];return[4,tf(t,r[n]).catch(console.error)];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}})})];case 1:return n.sent(),e.push.apply(e,th()),tc(t,e),e.clear(),[2]}})})}(w,r)];case 7:return A.sent(),[2,[w,k]]}})})}(e[0],e[1],t)})})||this)._resolveLoadStart=function(t,e){return c([t,e])},e}return(0,i.ZT)(e,t),e.prototype.load=function(t,e){return void 0===e&&(e={}),this._resolveLoadStart(t,e),this},e.load=function(t,n){return void 0===n&&(n={}),new e().load(t,n)},e.standalone=function(t,n){return e.load({writeKey:t},n).then(function(t){return t[0]})},e}(td)},15584:function(t,e,n){n.d(e,{G:function(){return i},s:function(){return o}});var r=n(42325);function i(){return!(0,r.j)()||window.navigator.onLine}function o(){return!i()}},75164:function(t,e,n){n.d(e,{U:function(){return r}});var r="api.segment.io/v1"},53085:function(t,e,n){n.d(e,{_:function(){return a}});var r=n(34792),i=n(72841),o=n(32502),a=function(t){function e(e,n){return t.call(this,e,n,new o.j)||this}return(0,r.ZT)(e,t),e.system=function(){return new this({type:"track",event:"system"})},e}(i._)},42325:function(t,e,n){function r(){return!0}function i(){return!1}n.d(e,{j:function(){return r},s:function(){return i}})},83537:function(t,e,n){n.d(e,{a:function(){return r}});function r(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}}},32502:function(t,e,n){n.d(e,{j:function(){return p}});var r,i=n(34792),o=n(99367),a=n(19194),s=n(50202),u=n(13443),c=n(75164),l=function(t,e,n){var r=e.reduce(function(t,e){var n=e.split(":"),r=n[0],i=n[1];return t[r]=i,t},{});return{type:"Counter",metric:t,value:1,tags:(0,i.pi)((0,i.pi)({},r),{library:"analytics.js",library_version:"web"===n?"next-".concat(s.i):"npm:next-".concat(s.i)})}};function f(t){console.error("Error sending segment performance metrics",t)}var d=function(){function t(t){var e,n,r,i,o=this;if(this.host=null!==(e=null==t?void 0:t.host)&&void 0!==e?e:c.U,this.sampleRate=null!==(n=null==t?void 0:t.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==t?void 0:t.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==t?void 0:t.maxQueueSize)&&void 0!==i?i:20,this.queue=[],this.sampleRate>0){var a=!1,s=function(){a||(a=!0,o.flush().catch(f),a=!1,setTimeout(s,o.flushTimer))};s()}}return t.prototype.increment=function(t,e){if(!(!t.includes("analytics_js.")||0===e.length||Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=l(t,e,(0,u.Bz)());this.queue.push(n),t.includes("error")&&this.flush().catch(f)}},t.prototype.flush=function(){return(0,i.mG)(this,void 0,void 0,function(){var t=this;return(0,i.Jh)(this,function(e){switch(e.label){case 0:if(this.queue.length<=0)return[2];return[4,this.send().catch(function(e){f(e),t.sampleRate=0})];case 1:return e.sent(),[2]}})})},t.prototype.send=function(){return(0,i.mG)(this,void 0,void 0,function(){var t,e,n;return(0,i.Jh)(this,function(r){return t={series:this.queue},this.queue=[],e={"Content-Type":"text/plain"},n="https://".concat(this.host,"/m"),[2,(0,a.h)(n,{headers:e,body:JSON.stringify(t),method:"POST"})]})})},t}(),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.initRemoteMetrics=function(t){r=new d(t)},e.prototype.increment=function(e,n,i){t.prototype.increment.call(this,e,n,i),null==r||r.increment(e,null!=i?i:[])},e}(o.s)},4851:function(t,e,n){n.d(e,{Nt:function(){return p},ZA:function(){return y},n5:function(){return v},sV:function(){return h}});var r=n(34792),i=n(96586),o=n(62493),a=n(87472),s=n(98045),u={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},c=function(){function t(){this.cache={}}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t.prototype.remove=function(t){delete this.cache[t]},Object.defineProperty(t.prototype,"type",{get:function(){return"memory"},enumerable:!1,configurable:!0}),t}(),l=function(t){function e(n){void 0===n&&(n=e.defaults);var i=t.call(this)||this;return i.options=(0,r.pi)((0,r.pi)({},e.defaults),n),i}return(0,r.ZT)(e,t),e.available=function(){var t=window.navigator.cookieEnabled;return t||(o.Z.set("ajs:cookies","test"),t=document.cookie.includes("ajs:cookies"),o.Z.remove("ajs:cookies")),t},Object.defineProperty(e,"defaults",{get:function(){return{maxage:365,domain:(0,a.P)(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(t){try{var e=o.Z.get(t);if(!e)return null;try{return JSON.parse(e)}catch(t){return e}}catch(t){return null}},e.prototype.set=function(t,e){"string"==typeof e?o.Z.set(t,e,this.opts()):null===e?o.Z.remove(t,this.opts()):o.Z.set(t,JSON.stringify(e),this.opts())},e.prototype.remove=function(t){return o.Z.remove(t,this.opts())},Object.defineProperty(e.prototype,"type",{get:function(){return"cookie"},enumerable:!1,configurable:!0}),e}(c),f=function(t,e){console.warn("Unable to access ".concat(t,", localStorage may be ").concat(e))},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.available=function(){var t="test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}},e.prototype.get=function(t){try{var e=localStorage.getItem(t);if(null===e)return null;try{return JSON.parse(e)}catch(t){return e}}catch(e){return f(t,"unavailable"),null}},e.prototype.set=function(t,e){try{localStorage.setItem(t,JSON.stringify(e))}catch(e){f(t,"full")}},e.prototype.remove=function(t){try{return localStorage.removeItem(t)}catch(e){f(t,"unavailable")}},Object.defineProperty(e.prototype,"type",{get:function(){return"localStorage"},enumerable:!1,configurable:!0}),e}(c),p=function(){function t(t,e){this.storageOptions=e,this.enabledStores=t}return t.prototype.getStores=function(t){var e=this,n=[];return this.enabledStores.filter(function(e){return!t||(null==t?void 0:t.includes(e))}).forEach(function(t){var r=e.storageOptions[t];void 0!==r&&n.push(r)}),n},t.prototype.getAndSync=function(t,e){var n=this.get(t,e),r="number"==typeof n?n.toString():n;return this.set(t,r,e),r},t.prototype.get=function(t,e){for(var n=null,r=0,i=this.getStores(e);r<i.length;r++)if(n=i[r].get(t))return n;return null},t.prototype.set=function(t,e,n){for(var r=0,i=this.getStores(n);r<i.length;r++)i[r].set(t,e)},t.prototype.clear=function(t,e){for(var n=0,r=this.getStores(e);n<r.length;n++)r[n].remove(t)},t}();function h(t){return{cookie:l.available()?new l(t):void 0,localStorage:d.available()?new d:void 0,memory:new c}}var v=function(){function t(t,e){void 0===t&&(t=u);var n,r,o,a,c=this;this.options={},this.id=function(t){if(c.options.disable)return null;var e=c.identityStore.getAndSync(c.idKey);void 0!==t&&(c.identityStore.set(c.idKey,t),t!==e&&null!==e&&null!==t&&c.anonymousId(null));var n=c.identityStore.getAndSync(c.idKey);if(n)return n;var r=c.legacyUserStore.get(u.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(t){var e,n;if(c.options.disable)return null;if(void 0===t){var r=null!==(e=c.identityStore.getAndSync(c.anonKey))&&void 0!==e?e:null===(n=c.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===t?c.identityStore.set(c.anonKey,null):c.identityStore.set(c.anonKey,null!=t?t:(0,i.v4)()),c.identityStore.getAndSync(c.anonKey)},this.traits=function(t){var e;if(!c.options.disable)return null===t&&(t={}),t&&c.traitsStore.set(c.traitsKey,null!=t?t:{}),null!==(e=c.traitsStore.get(c.traitsKey))&&void 0!==e?e:{}},this.options=t,this.cookieOptions=e,this.idKey=null!==(r=null===(n=t.cookie)||void 0===n?void 0:n.key)&&void 0!==r?r:u.cookie.key,this.traitsKey=null!==(a=null===(o=t.localStorage)||void 0===o?void 0:o.key)&&void 0!==a?a:u.localStorage.key,this.anonKey="ajs_anonymous_id";var l=!0===t.disable,f=!1!==t.persist,d=l?[]:f?["localStorage","cookie","memory"]:["memory"],v=h(e);t.localStorageFallbackDisabled&&(d=d.filter(function(t){return"localStorage"!==t})),this.identityStore=new p(d,v),this.legacyUserStore=new p(d.filter(function(t){return"localStorage"!==t&&"memory"!==t}),v),this.traitsStore=new p(d.filter(function(t){return"cookie"!==t}),v);var m=this.legacyUserStore.get(u.cookie.oldKey);m&&"object"==typeof m&&(m.id&&this.id(m.id),m.traits&&this.traits(m.traits)),(0,s.Z)(this)}return t.prototype.legacySIO=function(){var t=this.legacyUserStore.get("_sio");if(!t)return null;var e=t.split("----");return[e[0],e[1]]},t.prototype.identify=function(t,e){if(!this.options.disable){e=null!=e?e:{};var n=this.id();(null===n||n===t)&&(e=(0,r.pi)((0,r.pi)({},this.traits()),e)),t&&this.id(t),this.traits(e)}},t.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},t.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},t.prototype.load=function(){return new t(this.options,this.cookieOptions)},t.prototype.save=function(){return!0},t.defaults=u,t}(),m={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},y=function(t){function e(e,n){void 0===e&&(e=m);var r=t.call(this,e,n)||this;return r.anonymousId=function(t){},(0,s.Z)(r),r}return(0,r.ZT)(e,t),e}(v)},87472:function(t,e,n){n.d(e,{P:function(){return i}});var r=n(62493);function i(t){var e=function(t){try{return new URL(t)}catch(t){return}}(t);if(e)for(var n=function(t){var e=t.hostname.split("."),n=e[e.length-1],r=[];if(4===e.length&&parseInt(n,10)>0||e.length<=1)return r;for(var i=e.length-2;i>=0;--i)r.push(e.slice(i).join("."));return r}(e),i=0;i<n.length;++i){var o="__tld__",a=n[i],s={domain:"."+a};try{if(r.Z.set(o,"1",s),r.Z.get(o))return r.Z.remove(o,s),a}catch(t){return}}}},50202:function(t,e,n){n.d(e,{i:function(){return r}});var r="1.51.3"},98045:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t){for(var e=t.constructor.prototype,n=0,r=Object.getOwnPropertyNames(e);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);o&&"function"==typeof o.value&&(t[i]=t[i].bind(t))}}return t}},19194:function(t,e,n){n.d(e,{h:function(){return a}});var r=n(93078),i=n.n(r),o=n(83722),a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=(0,o.R)();return(n&&n.fetch||i()).apply(void 0,t)}},83722:function(t,e,n){n.d(e,{R:function(){return r}});var r=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window}},91221:function(t,e,n){function r(t){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find(function(e){return e.src===t})}function i(t,e){var n=r(t);if(void 0!==n){var i=null==n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise(function(t,e){n.addEventListener("load",function(){return t(n)}),n.addEventListener("error",function(t){return e(t)})})}return new Promise(function(n,r){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=t,o.async=!0,o.setAttribute("status","loading");for(var a=0,s=Object.entries(null!=e?e:{});a<s.length;a++){var u=s[a],c=u[0],l=u[1];o.setAttribute(c,l)}o.onload=function(){o.onerror=o.onload=null,o.setAttribute("status","loaded"),n(o)},o.onerror=function(){o.onerror=o.onload=null,o.setAttribute("status","error"),r(Error("Failed to load ".concat(t)))};var f=window.document.getElementsByTagName("script")[0];null===(i=f.parentElement)||void 0===i||i.insertBefore(o,f)})}function o(t){var e=r(t);return void 0!==e&&e.remove(),Promise.resolve()}n.d(e,{t:function(){return o},v:function(){return i}})},56927:function(t,e,n){n.d(e,{o:function(){return i}});var r=n(34792);function i(t,e){var n,i=Object.entries(null!==(n=e.integrations)&&void 0!==n?n:{}).reduce(function(t,e){var n,i,o=e[0],a=e[1];return"object"==typeof a?(0,r.pi)((0,r.pi)({},t),((n={})[o]=a,n)):(0,r.pi)((0,r.pi)({},t),((i={})[o]={},i))},{});return Object.entries(t.integrations).reduce(function(t,e){var n,o=e[0],a=e[1];return(0,r.pi)((0,r.pi)({},t),((n={})[o]=(0,r.pi)((0,r.pi)({},a),i[o]),n))},{})}},63197:function(t,e,n){n.d(e,{x:function(){return i}});var r=n(34792),i=function(t,e){return(0,r.mG)(void 0,void 0,void 0,function(){var n;return(0,r.Jh)(this,function(i){return[2,(n=function(i){return(0,r.mG)(void 0,void 0,void 0,function(){var o;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(!t(i))return[3,2];return o=n,[4,e()];case 1:return[2,o.apply(void 0,[r.sent()])];case 2:return[2]}})})})(void 0)]})})}},1770:function(t,e,n){n.d(e,{Kg:function(){return c},UH:function(){return s},Vl:function(){return u}});var r,i=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,o=function(){var t;return Array.prototype.slice.call(document.querySelectorAll("script")).forEach(function(e){var n,r=null!==(n=e.getAttribute("src"))&&void 0!==n?n:"",o=i.exec(r);o&&o[1]&&(t=o[1])}),t},a=function(){var t;return null!=r?r:null===(t=window.analytics)||void 0===t?void 0:t._cdn},s=function(t){window.analytics&&(window.analytics._cdn=t),r=t},u=function(){var t=a();return t?t:o()||"https://cdn.segment.com"},c=function(){var t=u();return"".concat(t,"/next-integrations")}},42621:function(t,e,n){n.d(e,{$:function(){return d}});var r=n(34792),i=n(80510),o=n(53085),a=n(42325),s={getItem:function(){},setItem:function(){},removeItem:function(){}};try{s=(0,a.j)()&&window.localStorage?window.localStorage:s}catch(t){console.warn("Unable to access localStorage",t)}function u(t){var e=s.getItem(t);return(e?JSON.parse(e):[]).map(function(t){return new o._(t.event,t.id)})}function c(t){var e=s.getItem(t);return e?JSON.parse(e):{}}function l(t){s.removeItem(t)}function f(t,e,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(t,":lock"),i=s.getItem(r),o=i?JSON.parse(i):null,a=null===o||new Date().getTime()>o;if(a){s.setItem(r,JSON.stringify(new Date().getTime()+50)),e(),s.removeItem(r);return}!a&&n<3?setTimeout(function(){f(t,e,n+1)},50):console.error("Unable to retrieve lock")}var d=function(t){function e(e,n){var i=t.call(this,e,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),d=[],p={};return f(n,function(){try{d=u(o),p=c(a),l(o),l(a),i.queue=(0,r.ev)((0,r.ev)([],d,!0),i.queue,!0),i.seen=(0,r.pi)((0,r.pi)({},p),i.seen)}catch(t){console.error(t)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var t=(0,r.ev)((0,r.ev)([],i.queue,!0),i.future,!0);try{f(n,function(){var e,n,l,f;e=u(o),n=(0,r.ev)((0,r.ev)([],t,!0),e,!0).reduce(function(t,e){var n;return(0,r.pi)((0,r.pi)({},t),((n={})[e.id]=e,n))},{}),s.setItem(o,JSON.stringify(Object.values(n))),l=i.seen,f=c(a),s.setItem(a,JSON.stringify((0,r.pi)((0,r.pi)({},f),l)))})}catch(t){console.error(t)}}}),i}return(0,r.ZT)(e,t),e}(i.Z)},75331:function(t,e,n){n.d(e,{D:function(){return i}});var r=n(79352);function i(t,e){var n=new r.hg(t,e);return"track"===t.type&&(n=new r.fQ(t,e)),"identify"===t.type&&(n=new r.h2(t,e)),"page"===t.type&&(n=new r.T3(t,e)),"alias"===t.type&&(n=new r.V8(t,e)),"group"===t.type&&(n=new r.ZA(t,e)),"screen"===t.type&&(n=new r.lL(t,e)),Object.defineProperty(n,"obj",{value:t,writable:!0}),n}},15532:function(t,e,n){n.r(e),n.d(e,{applyDestinationMiddleware:function(){return a},sourceMiddlewarePlugin:function(){return s}});var r=n(34792),i=n(72841),o=n(75331);function a(t,e,n){return(0,r.mG)(this,void 0,void 0,function(){var i,a,s,u,c;return(0,r.Jh)(this,function(l){switch(l.label){case 0:i=(0,o.D)(e,{clone:!0,traverse:!1}).rawEvent(),a=0,s=n,l.label=1;case 1:if(!(a<s.length))return[3,4];return u=s[a],[4,function(e,n){return(0,r.mG)(this,void 0,void 0,function(){var i,a,s;return(0,r.Jh)(this,function(u){switch(u.label){case 0:return i=!1,a=null,[4,n({payload:(0,o.D)(e,{clone:!0,traverse:!1}),integration:t,next:function(t){i=!0,null===t&&(a=null),t&&(a=t.obj)}})];case 1:return u.sent(),i||null===a||(a.integrations=(0,r.pi)((0,r.pi)({},e.integrations),((s={})[t]=!1,s))),[2,a]}})})}(i,u)];case 2:if(null===(c=l.sent()))return[2,null];i=c,l.label=3;case 3:return a++,[3,1];case 4:return[2,i]}})})}function s(t,e){function n(n){return(0,r.mG)(this,void 0,void 0,function(){var a;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return a=!1,[4,t({payload:(0,o.D)(n.event,{clone:!0,traverse:!1}),integrations:null!=e?e:{},next:function(t){a=!0,t&&(n.event=t.obj)}})];case 1:if(r.sent(),!a)throw new i.Y({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(t.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(t){return Promise.resolve(t)},track:n,page:n,identify:n,alias:n,group:n}}},13443:function(t,e,n){n.d(e,{Bz:function(){return l},Fv:function(){return f}});var r,i=n(34792),o=n(62493),a=n(83537),s=n(87472),u=n(50202),c=n(4851);function l(){return"npm"}function f(t,e,n,f){var d,p,h,v,m,y,g,b,_,w=t.user(),S=window.location.search;e.context=null!==(g=null!==(y=e.context)&&void 0!==y?y:e.options)&&void 0!==g?g:{};var x=e.context;delete e.options,e.writeKey=null==n?void 0:n.apiKey,x.userAgent=window.navigator.userAgent;var k=navigator.userLanguage||navigator.language;void 0===x.locale&&void 0!==k&&(x.locale=k),x.library||("web"===l()?x.library={name:"analytics.js",version:"next-".concat(u.i)}:x.library={name:"analytics.js",version:"npm:next-".concat(u.i)}),S&&!x.campaign&&(x.campaign=((m=S).startsWith("?")&&(m=m.substring(1)),(m=m.replace(/\?/g,"&")).split("&").reduce(function(t,e){var n=e.split("="),r=n[0],i=n[1];if(r.includes("utm_")&&r.length>4){var o=r.substr(4);"campaign"===o&&(o="name"),t[o]=(0,a.a)(void 0===i?"":i)}return t},{}))),d=null!==(b=t.options.disableClientPersistence)&&void 0!==b&&b,h=(p=new c.Nt(d?[]:["cookie"],(0,c.sV)(function(){if(r)return r;var t=(0,s.P)(window.location.href);return r={expires:31536e6,secure:!1,path:"/"},t&&(r.domain=t),r}()))).get("s:context.referrer"),(v=null!=(v=function(t){var e={btid:"dataxu",urid:"millennial-media"};t.startsWith("?")&&(t=t.substring(1));for(var n=(t=t.replace(/\?/g,"&")).split("&"),r=0;r<n.length;r++){var i=n[r].split("="),o=i[0],a=i[1];if(e[o])return{id:a,type:e[o]}}}(S))?v:h)&&(x&&(x.referrer=(0,i.pi)((0,i.pi)({},x.referrer),v)),p.set("s:context.referrer",v)),e.userId=e.userId||w.id(),e.anonymousId=e.anonymousId||w.anonymousId(),e.sentAt=new Date;var E=t.queue.failedInitializations||[];E.length>0&&(e._metadata={failedInitializations:E});var T=[],C=[];for(var A in f){var I=f[A];"Segment.io"===A&&T.push(A),"bundled"===I.bundlingStatus&&T.push(A),"unbundled"===I.bundlingStatus&&C.push(A)}for(var O=0,R=(null==n?void 0:n.unbundledIntegrations)||[];O<R.length;O++){var N=R[O];C.includes(N)||C.push(N)}var P=null!==(_=null==n?void 0:n.maybeBundledConfigIds)&&void 0!==_?_:{},M=[];T.sort().forEach(function(t){var e;(null!==(e=P[t])&&void 0!==e?e:[]).forEach(function(t){M.push(t)})}),(null==n?void 0:n.addBundledMetadata)!==!1&&(e._metadata=(0,i.pi)((0,i.pi)({},e._metadata),{bundled:T.sort(),unbundled:C.sort(),bundledIds:M}));var L=function(){var t=o.Z.get("_ga");if(t&&t.startsWith("amp"))return t}();return L&&(x.amp={id:L}),e}},4540:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(30851))&&r.__esModule?r:{default:r};function o(t,e){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+t)||i.default(n,t)||(e?i.default(n,"address."+e):null)||(e?i.default(n,e):null)||i.default(r,"address."+t)||i.default(r,t)||(e?i.default(r,"address."+e):null)||(e?i.default(r,e):null)}}e.default=function(t){t.zip=o("postalCode","zip"),t.country=o("country"),t.street=o("street"),t.state=o("state"),t.city=o("city"),t.region=o("region")}},30966:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Alias=void 0;var r,i=(r=n(26770))&&r.__esModule?r:{default:r},o=n(63708);function a(t,e){o.Facade.call(this,t,e)}e.Alias=a,i.default(a,o.Facade),a.prototype.action=function(){return"alias"},a.prototype.type=a.prototype.action,a.prototype.previousId=function(){return this.field("previousId")||this.field("from")},a.prototype.from=a.prototype.previousId,a.prototype.userId=function(){return this.field("userId")||this.field("to")},a.prototype.to=a.prototype.userId},5059:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.clone=void 0,e.clone=function t(e){if("object"!=typeof e)return e;if("[object Object]"===Object.prototype.toString.call(e)){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=t(e[r]));return n}return Array.isArray(e)?e.map(t):e}},30798:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Delete=void 0;var r,i=(r=n(26770))&&r.__esModule?r:{default:r},o=n(63708);function a(t,e){o.Facade.call(this,t,e)}e.Delete=a,i.default(a,o.Facade),a.prototype.type=function(){return"delete"}},63708:function(t,e,n){var r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Facade=void 0;var i=r(n(4540)),o=n(5059),a=r(n(38419)),s=r(n(43898)),u=r(n(30851)),c=r(n(31806));function l(t,e){e=e||{},this.raw=o.clone(t),"clone"in e||(e.clone=!0),e.clone&&(t=o.clone(t)),"traverse"in e||(e.traverse=!0),"timestamp"in t?t.timestamp=s.default(t.timestamp):t.timestamp=new Date,e.traverse&&c.default(t),this.opts=e,this.obj=t}e.Facade=l;var f=l.prototype;function d(t){return o.clone(t)}f.proxy=function(t){var e,n=t.split("."),r=this[t=n.shift()]||this.obj[t];return r?("function"==typeof r&&(r=r.call(this)||{}),0===n.length||(r=u.default(r,n.join("."))),this.opts.clone?(e=r,o.clone(e)):r):r},f.field=function(t){var e,n=this.obj[t];return this.opts.clone?(e=n,o.clone(e)):n},l.proxy=function(t){return function(){return this.proxy(t)}},l.field=function(t){return function(){return this.field(t)}},l.multi=function(t){return function(){var e=this.proxy(t+"s");if(Array.isArray(e))return e;var n=this.proxy(t);return n&&(n=[this.opts.clone?o.clone(n):n]),n||[]}},l.one=function(t){return function(){var e=this.proxy(t);if(e)return e;var n=this.proxy(t+"s");if(Array.isArray(n))return n[0]}},f.json=function(){var t=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(t.type=this.type()),t},f.rawEvent=function(){return this.raw},f.options=function(t){var e=this.obj.options||this.obj.context||{},n=this.opts.clone?o.clone(e):e;if(!t)return n;if(this.enabled(t)){var r=this.integrations(),i=r[t]||u.default(r,t);return"object"!=typeof i&&(i=u.default(this.options(),t)),"object"==typeof i?i:{}}},f.context=f.options,f.enabled=function(t){var e=this.proxy("options.providers.all");"boolean"!=typeof e&&(e=this.proxy("options.all")),"boolean"!=typeof e&&(e=this.proxy("integrations.all")),"boolean"!=typeof e&&(e=!0);var n=e&&a.default(t),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(t)&&(n=r.providers[t]),r.hasOwnProperty(t)){var i=r[t];n="boolean"!=typeof i||i}return!!n},f.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},f.active=function(){var t=this.proxy("options.active");return null==t&&(t=!0),t},f.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},f.sessionId=f.anonymousId,f.groupId=l.proxy("options.groupId"),f.traits=function(t){var e=this.proxy("options.traits")||{},n=this.userId();for(var r in t=t||{},n&&(e.id=n),t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==i)continue;e[t[r]]=i,delete e[r]}return e},f.library=function(){var t=this.proxy("options.library");return t?"string"==typeof t?{name:t,version:null}:t:{name:"unknown",version:null}},f.device=function(){var t=this.proxy("context.device");("object"!=typeof t||null===t)&&(t={});var e=this.library().name;return t.type||(e.indexOf("ios")>-1&&(t.type="ios"),e.indexOf("android")>-1&&(t.type="android")),t},f.userAgent=l.proxy("context.userAgent"),f.timezone=l.proxy("context.timezone"),f.timestamp=l.field("timestamp"),f.channel=l.field("channel"),f.ip=l.proxy("context.ip"),f.userId=l.field("userId"),i.default(f)},61783:function(t,e,n){var r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Group=void 0;var i=r(n(26770)),o=r(n(59583)),a=r(n(43898)),s=n(63708);function u(t,e){s.Facade.call(this,t,e)}e.Group=u,i.default(u,s.Facade);var c=u.prototype;c.action=function(){return"group"},c.type=c.action,c.groupId=s.Facade.field("groupId"),c.created=function(){var t=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(t)return a.default(t)},c.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.groupId();if(o.default(e))return e},c.traits=function(t){var e=this.properties(),n=this.groupId();for(var r in t=t||{},n&&(e.id=n),t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=null==this[r]?this.proxy("traits."+r):this[r]();if(null==i)continue;e[t[r]]=i,delete e[r]}return e},c.name=s.Facade.proxy("traits.name"),c.industry=s.Facade.proxy("traits.industry"),c.employees=s.Facade.proxy("traits.employees"),c.properties=function(){return this.field("traits")||this.field("properties")||{}}},30575:function(t,e,n){var r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Identify=void 0;var i=n(63708),o=r(n(30851)),a=r(n(26770)),s=r(n(59583)),u=r(n(43898)),c=function(t){return t.trim()};function l(t,e){i.Facade.call(this,t,e)}e.Identify=l,a.default(l,i.Facade);var f=l.prototype;f.action=function(){return"identify"},f.type=f.action,f.traits=function(t){var e=this.field("traits")||{},n=this.userId();for(var r in t=t||{},n&&(e.id=n),t){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(e[t[r]]=i,r!==t[r]&&delete e[r])}return e},f.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.userId();if(s.default(e))return e},f.created=function(){var t=this.proxy("traits.created")||this.proxy("traits.createdAt");if(t)return u.default(t)},f.companyCreated=function(){var t=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(t)return u.default(t)},f.companyName=function(){return this.proxy("traits.company.name")},f.name=function(){var t=this.proxy("traits.name");if("string"==typeof t)return c(t);var e=this.firstName(),n=this.lastName();if(e&&n)return c(e+" "+n)},f.firstName=function(){var t=this.proxy("traits.firstName");if("string"==typeof t)return c(t);var e=this.proxy("traits.name");if("string"==typeof e)return c(e).split(" ")[0]},f.lastName=function(){var t=this.proxy("traits.lastName");if("string"==typeof t)return c(t);var e=this.proxy("traits.name");if("string"==typeof e){var n=c(e).indexOf(" ");if(-1!==n)return c(e.substr(n+1))}},f.uid=function(){return this.userId()||this.username()||this.email()},f.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},f.age=function(){var t=this.birthday(),e=o.default(this.traits(),"age");return null!=e?e:t instanceof Date?new Date().getFullYear()-t.getFullYear():void 0},f.avatar=function(){var t=this.traits();return o.default(t,"avatar")||o.default(t,"photoUrl")||o.default(t,"avatarUrl")},f.position=function(){var t=this.traits();return o.default(t,"position")||o.default(t,"jobTitle")},f.username=i.Facade.proxy("traits.username"),f.website=i.Facade.one("traits.website"),f.websites=i.Facade.multi("traits.website"),f.phone=i.Facade.one("traits.phone"),f.phones=i.Facade.multi("traits.phone"),f.address=i.Facade.proxy("traits.address"),f.gender=i.Facade.proxy("traits.gender"),f.birthday=i.Facade.proxy("traits.birthday")},79352:function(t,e,n){var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};e.lL=e.T3=e.fQ=e.h2=e.ZA=e.V8=e.hg=void 0;var i=n(63708);Object.defineProperty(e,"hg",{enumerable:!0,get:function(){return i.Facade}});var o=n(30966);Object.defineProperty(e,"V8",{enumerable:!0,get:function(){return o.Alias}});var a=n(61783);Object.defineProperty(e,"ZA",{enumerable:!0,get:function(){return a.Group}});var s=n(30575);Object.defineProperty(e,"h2",{enumerable:!0,get:function(){return s.Identify}});var u=n(38075);Object.defineProperty(e,"fQ",{enumerable:!0,get:function(){return u.Track}});var c=n(25152);Object.defineProperty(e,"T3",{enumerable:!0,get:function(){return c.Page}});var l=n(25708);Object.defineProperty(e,"lL",{enumerable:!0,get:function(){return l.Screen}});var f=n(30798);r(r({},i.Facade),{Alias:o.Alias,Group:a.Group,Identify:s.Identify,Track:u.Track,Page:c.Page,Screen:l.Screen,Delete:f.Delete})},59583:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=/.+\@.+\..+/;e.default=function(t){return n.test(t)}},38419:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n={Salesforce:!0};e.default=function(t){return!n[t]}},25152:function(t,e,n){var r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Page=void 0;var i=r(n(26770)),o=n(63708),a=n(38075),s=r(n(59583));function u(t,e){o.Facade.call(this,t,e)}e.Page=u,i.default(u,o.Facade);var c=u.prototype;c.action=function(){return"page"},c.type=c.action,c.category=o.Facade.field("category"),c.name=o.Facade.field("name"),c.title=o.Facade.proxy("properties.title"),c.path=o.Facade.proxy("properties.path"),c.url=o.Facade.proxy("properties.url"),c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.properties=function(t){var e=this.field("properties")||{},n=this.category(),r=this.name();for(var i in t=t||{},n&&(e.category=n),r&&(e.name=r),t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=null==this[i]?this.proxy("properties."+i):this[i]();if(null==o)continue;e[t[i]]=o,i!==t[i]&&delete e[i]}return e},c.email=function(){var t=this.proxy("context.traits.email")||this.proxy("properties.email");if(t)return t;var e=this.userId();if(s.default(e))return e},c.fullName=function(){var t=this.category(),e=this.name();return e&&t?t+" "+e:e},c.event=function(t){return t?"Viewed "+t+" Page":"Loaded a Page"},c.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new a.Track(e,this.opts)}},25708:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Screen=void 0;var r,i=(r=n(26770))&&r.__esModule?r:{default:r},o=n(25152),a=n(38075);function s(t,e){o.Page.call(this,t,e)}e.Screen=s,i.default(s,o.Page),s.prototype.action=function(){return"screen"},s.prototype.type=s.prototype.action,s.prototype.event=function(t){return t?"Viewed "+t+" Screen":"Loaded a Screen"},s.prototype.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new a.Track(e,this.opts)}},38075:function(t,e,n){var r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Track=void 0;var i=r(n(26770)),o=n(63708),a=n(30575),s=r(n(59583)),u=r(n(30851));function c(t,e){o.Facade.call(this,t,e)}e.Track=c,i.default(c,o.Facade);var l=c.prototype;l.action=function(){return"track"},l.type=l.action,l.event=o.Facade.field("event"),l.value=o.Facade.proxy("properties.value"),l.category=o.Facade.proxy("properties.category"),l.id=o.Facade.proxy("properties.id"),l.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},l.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},l.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},l.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},l.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},l.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},l.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},l.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},l.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},l.sku=o.Facade.proxy("properties.sku"),l.tax=o.Facade.proxy("properties.tax"),l.name=o.Facade.proxy("properties.name"),l.price=o.Facade.proxy("properties.price"),l.total=o.Facade.proxy("properties.total"),l.repeat=o.Facade.proxy("properties.repeat"),l.coupon=o.Facade.proxy("properties.coupon"),l.shipping=o.Facade.proxy("properties.shipping"),l.discount=o.Facade.proxy("properties.discount"),l.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},l.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},l.description=o.Facade.proxy("properties.description"),l.plan=o.Facade.proxy("properties.plan"),l.subtotal=function(){var t=u.default(this.properties(),"subtotal"),e=this.total()||this.revenue();if(t)return t;if(!e)return 0;if(this.total()){var n=this.tax();n&&(e-=n),(n=this.shipping())&&(e-=n),(n=this.discount())&&(e+=n)}return e},l.products=function(){var t=this.properties(),e=u.default(t,"products");return Array.isArray(e)?e.filter(function(t){return null!==t}):[]},l.quantity=function(){return(this.obj.properties||{}).quantity||1},l.currency=function(){return(this.obj.properties||{}).currency||"USD"},l.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},l.query=o.Facade.proxy("options.query"),l.properties=function(t){var e=this.field("properties")||{};for(var n in t=t||{})if(Object.prototype.hasOwnProperty.call(t,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;e[t[n]]=r,delete e[n]}return e},l.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},l.email=function(){var t=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(t)return t;var e=this.userId();if(s.default(e))return e},l.revenue=function(){var t=this.proxy("properties.revenue"),e=this.event();return!t&&e&&e.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(t=this.proxy("properties.total")),function(t){if(t&&("number"==typeof t||"string"==typeof t&&!isNaN(t=parseFloat(t=t.replace(/\$/g,"")))))return t}(t)},l.cents=function(){var t=this.revenue();return"number"!=typeof t?this.value()||0:100*t},l.identify=function(){var t=this.json();return t.traits=this.traits(),new a.Identify(t,this.opts)}},31806:function(t,e,n){var r=n(46497);t.exports=function t(e,n){var i,o;return(void 0===n&&(n=!0),e&&"object"==typeof e)?(i=n,Object.keys(e).forEach(function(n){e[n]=t(e[n],i)}),e):Array.isArray(e)?(o=n,e.forEach(function(n,r){e[r]=t(n,o)}),e):r.is(e,n)?r.parse(e):e}},46497:function(t,e){var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;e.parse=function(t){var e=[1,5,6,7,11,12],r=n.exec(t),i=0;if(!r)return new Date(t);for(var o,a=0;o=e[a];a++)r[o]=parseInt(r[o],10)||0;return r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?i=new Date().getTimezoneOffset():"Z"!==r[9]&&r[10]&&(i=60*r[11]+r[12],"+"===r[10]&&(i=0-i)),new Date(Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]))},e.is=function(t,e){return"string"==typeof t&&(!e||!1!==/^\d{4}-\d{2}-\d{2}/.test(t))&&n.test(t)}},26770:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},43898:function(t,e,n){var r=n(46497),i=n(33081),o=n(53430),a=Object.prototype.toString;t.exports=function(t){return"[object Date]"===a.call(t)?t:"[object Number]"===a.call(t)?new Date(t<315576e5?1e3*t:t):r.is(t)?r.parse(t):i.is(t)?i.parse(t):o.is(t)?o.parse(t):new Date(t)}},33081:function(t,e){var n=/\d{13}/;e.is=function(t){return n.test(t)},e.parse=function(t){return new Date(t=parseInt(t,10))}},53430:function(t,e){var n=/\d{10}/;e.is=function(t){return n.test(t)},e.parse=function(t){return new Date(1e3*parseInt(t,10))}},93078:function(t){let e=self.fetch.bind(self);t.exports=e,t.exports.default=t.exports},30851:function(t){function e(t){return function(e,n,r,o){var a,s=o&&"function"==typeof o.normalizer?o.normalizer:i;n=s(n);for(var u=!1;!u;)!function(){for(a in e){var t=s(a);if(0===n.indexOf(t)){var r=n.substr(t.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var i=e[a];if(null==i||!n.length){u=!0;return}e=i;return}}}a=void 0,u=!0}();if(a)return null==e?e:t(e,a,r)}}function n(t,e){return t.hasOwnProperty(e)&&delete t[e],t}function r(t,e,n){return t.hasOwnProperty(e)&&(t[e]=n),t}function i(t){return t.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}t.exports=e(function(t,e){if(t.hasOwnProperty(e))return t[e]}),t.exports.find=t.exports,t.exports.replace=function(t,n,i,o){return e(r).call(this,t,n,i,o),t},t.exports.del=function(t,r,i){return e(n).call(this,t,r,null,i),t}},38377:function(t){t.exports=function(t){var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];n+=(r&i|~r&o)+e[0]-680876936|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+e[1]-389564586|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+e[2]+606105819|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+e[3]-1044525330|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+e[4]-176418897|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+e[5]+1200080426|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+e[6]-1473231341|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+e[7]-45705983|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+e[8]+1770035416|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+e[9]-1958414417|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+e[10]-42063|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+e[11]-1990404162|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+e[12]+1804603682|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+e[13]-40341101|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+e[14]-1502002290|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+e[15]+1236535329|0,n+=((r=(r<<22|r>>>10)+i|0)&o|i&~o)+e[1]-165796510|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+e[6]-1069501632|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+e[11]+643717713|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+e[0]-373897302|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+e[5]-701558691|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+e[10]+38016083|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+e[15]-660478335|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+e[4]-405537848|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+e[9]+568446438|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+e[14]-1019803690|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+e[3]-187363961|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+e[8]+1163531501|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+e[13]-1444681467|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+e[2]-51403784|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+e[7]+1735328473|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+e[12]-1926607734|0,n+=((r=(r<<20|r>>>12)+i|0)^i^o)+e[5]-378558|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+e[8]-2022574463|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+e[11]+1839030562|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+e[14]-35309556|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+e[1]-1530992060|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+e[4]+1272893353|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+e[7]-155497632|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+e[10]-1094730640|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+e[13]+681279174|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+e[0]-358537222|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+e[3]-722521979|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+e[6]+76029189|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+e[9]-640364487|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+e[12]-421815835|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+e[15]+530742520|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+e[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~o))+e[0]-198630844|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+e[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+e[14]-1416354905|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+e[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+e[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+e[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+e[10]-1051523|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+e[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+e[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+e[15]-30611744|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+e[6]-1560198380|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+e[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+e[4]-145523070|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+e[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+e[2]+718787259|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+e[9]-343485551|0,r=(r<<21|r>>>11)+i|0,t[0]=n+t[0]|0,t[1]=r+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}function r(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function i(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n}function o(t){var e,i,o,a,s,u,c=t.length,l=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;e+=64)n(l,r(t.substring(e-64,e)));for(i=(t=t.substring(e-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(l,o),e=0;e<16;e+=1)o[e]=0;return s=parseInt((a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/))[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(l,o),l}function a(t){var n;for(n=0;n<t.length;n+=1)t[n]=function(t){var n,r="";for(n=0;n<4;n+=1)r+=e[t>>8*n+4&15]+e[t>>8*n&15];return r}(t[n]);return t.join("")}function s(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function u(t){var e,n=[],r=t.length;for(e=0;e<r-1;e+=2)n.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,n)}function c(){this.reset()}return a(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(e,n){var r,i,o,a,s=this.byteLength,u=t(e,s),c=s;return(void 0!==n&&(c=t(n,s)),u>c)?new ArrayBuffer(0):(r=c-u,i=new ArrayBuffer(r),o=new Uint8Array(i),a=new Uint8Array(this,u,r),o.set(a),i)}}(),c.prototype.append=function(t){return this.appendBinary(s(t)),this},c.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,i=this._buff.length;for(e=64;e<=i;e+=64)n(this._hash,r(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},c.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r.charCodeAt(e)<<(e%4<<3);return this._finish(o,i),n=a(this._hash),t&&(n=u(n)),this.reset(),n},c.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},c.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},c.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},c.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},c.prototype._finish=function(t,e){var r,i,o,a=e;if(t[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,t),a=0;a<16;a+=1)t[a]=0;i=parseInt((r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(r[1],16)||0,t[14]=i,t[15]=o,n(this._hash,t)},c.hash=function(t,e){return c.hashBinary(s(t),e)},c.hashBinary=function(t,e){var n=a(o(t));return e?u(n):n},c.ArrayBuffer=function(){this.reset()},c.ArrayBuffer.prototype.append=function(t){var e,r,o,a=(e=this._buff.buffer,(r=new Uint8Array(e.byteLength+t.byteLength)).set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),r),s=a.length;for(this._length+=t.byteLength,o=64;o<=s;o+=64)n(this._hash,i(a.subarray(o-64,o)));return this._buff=new Uint8Array(o-64<s?a.buffer.slice(o-64):0),this},c.ArrayBuffer.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r[e]<<(e%4<<3);return this._finish(o,i),n=a(this._hash),t&&(n=u(n)),this.reset(),n},c.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},c.ArrayBuffer.prototype.getState=function(){var t,e=c.prototype.getState.call(this);return e.buff=(t=e.buff,String.fromCharCode.apply(null,new Uint8Array(t))),e},c.ArrayBuffer.prototype.setState=function(t){return t.buff=function(t,e){var n,r=t.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=t.charCodeAt(n);return e?o:i}(t.buff,!0),c.prototype.setState.call(this,t)},c.ArrayBuffer.prototype.destroy=c.prototype.destroy,c.ArrayBuffer.prototype._finish=c.prototype._finish,c.ArrayBuffer.hash=function(t,e){var r=a(function(t){var e,r,o,a,s,u,c=t.length,l=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;e+=64)n(l,i(t.subarray(e-64,e)));for(r=(t=e-64<c?t.subarray(e-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<r;e+=1)o[e>>2]|=t[e]<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(l,o),e=0;e<16;e+=1)o[e]=0;return s=parseInt((a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/))[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(l,o),l}(new Uint8Array(t)));return e?u(r):r},c}()},96586:function(t,e,n){n.d(e,{v4:function(){return a}});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function a(){var t,e=0,n="";if(!r||i+16>256){for(r=Array(e=256);e--;)r[e]=256*Math.random()|0;e=i=0}for(;e<16;e++)t=r[i+e],6==e?n+=o[15&t|64]:8==e?n+=o[63&t|128]:n+=o[t],1&e&&e>1&&e<11&&(n+="-");return i++,n}},96706:function(t,e,n){n.d(e,{N:function(){return r}});function r(t,e,n){e.split&&(e=e.split("."));for(var r,i,o=0,a=e.length,s=t;o<a&&"__proto__"!==(i=e[o++])&&"constructor"!==i&&"prototype"!==i;)s=s[i]=o===a?n:typeof(r=s[i])==typeof e?r:0*e[o]!=0||~(""+e[o]).indexOf(".")?{}:[]}},62493:function(t,e){/*! js-cookie v3.0.1 | MIT */function n(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var r=function t(e,r){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=n({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=t+"="+e.write(i,t)+a}}return Object.create({set:i,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=e.read(a,s),t===s)break}catch(t){}}return t?r[t]:r}},remove:function(t,e){i(t,"",n({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,n({},this.attributes,e))},withConverter:function(e){return t(n({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});e.Z=r},34792:function(t,e,n){n.d(e,{Jh:function(){return u},ZT:function(){return i},_T:function(){return a},ev:function(){return c},mG:function(){return s},pi:function(){return o}});var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function s(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})}function u(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function c(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError}}]);