1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,953980,330375,580224,875459,790293,604239,563580,821014,239936,187806,234725,485605,809328,767310,368263,782407,976472,241146,550308,229284,419487,159199,206014,126530,556724,679307,680309,835454,308731,452467,30877,23388,375064,993789,107630,207952,617814,655589,758209,769400,971983,396984,377104,698863,544e3,893092,t=>{"use strict";var e,n,r,i,o,a,s,u,c,l,d,f,p,v,h,m,g,y,_,b,w,S,k,C,x,E,T={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},A=console,R={};Object.keys(T).forEach(function(t){R[t]=A[t]});var I="Datadog Browser SDK:",N={debug:R.debug.bind(A,I),log:R.log.bind(A,I),info:R.info.bind(A,I),warn:R.warn.bind(A,I),error:R.error.bind(A,I)},O="https://docs.datadoghq.com",M="".concat(O,"/real_user_monitoring/browser/troubleshooting"),L="More details:";function D(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){N.error(e,t)}}}t.s(["ConsoleApiName",0,T,"DOCS_ORIGIN",0,O,"DOCS_TROUBLESHOOTING",0,M,"MORE_DETAILS",0,L,"display",0,N,"globalConsole",0,A,"originalConsoleMethods",0,R],330375);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))},U=!1;function z(t){r=t}function B(t){U=t}function V(t){return function(){return F(t,this,arguments)}}function F(t,e,n){try{return t.apply(e,n)}catch(t){if(j(t),r)try{r(t)}catch(t){j(t)}}}function j(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];U&&N.error.apply(N,P(["[MONITOR]"],t,!1))}function q(t,e){return -1!==t.indexOf(e)}function H(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 G(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n))return r}}function W(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}function K(t,e){Array.prototype.forEach.call(t,e)}function Y(t){return Object.keys(t).map(function(e){return t[e]})}function J(t){return Object.keys(t).map(function(e){return[e,t[e]]})}function X(t,e){return t.slice(0,e.length)===e}function $(t,e){return t.slice(-e.length)===e}function Z(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 Q(t){var e=Z({version:"5.35.1",onReady:function(t){t()}},t);return Object.defineProperty(e,"_setDebug",{get:function(){return B},enumerable:!1}),e}function tt(t,e,n){var r=t[e];r&&!r.q&&r.version&&N.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=n,r&&r.q&&r.q.forEach(function(t){return D(t,"onReady callback threw an error:")()})}function te(){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:"object"==typeof window?window:{}),t}function tn(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}t.s(["callMonitored",0,F,"displayIfDebugEnabled",0,j,"monitor",0,V,"monitored",0,function(t,e,n){var i=n.value;n.value=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(r?V(i):i).apply(this,t)}},"setDebugMode",0,B,"startMonitorErrorCollection",0,z],580224),t.s(["arrayFrom",0,H,"assign",0,Z,"endsWith",0,$,"find",0,G,"findLast",0,W,"forEach",0,K,"includes",0,q,"objectEntries",0,J,"objectValues",0,Y,"startsWith",0,X],875459),t.s(["defineGlobal",0,tt,"makePublicApi",0,Q],790293),t.s(["getGlobalObject",0,te],604239),t.s(["sendToExtension",0,tn],563580);var tr=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){e.observers=e.observers.filter(function(e){return t!==e}),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}}
1,t.prototype.notify=function(t){this.observers.forEach(function(e){return e(t)})},t}();function ti(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new tr(function(e){var n=t.map(function(t){return t.subscribe(function(t){return e.notify(t)})});return function(){return n.forEach(function(t){return t.unsubscribe()})}})}function to(t,e){var n,r=te();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function ta(t,e,n,r,i){return ts(t,e,[n],r,i)}function ts(t,e,n,r,i){var o=void 0===i?{}:i,a=o.once,s=o.capture,u=o.passive,c=V(function(e){(e.isTrusted||e.__ddIsTrusted||t.allowUntrustedEvents)&&(a&&p(),r(e))}),l=u?{capture:s,passive:u}:s,d=window.EventTarget&&e instanceof EventTarget?window.EventTarget.prototype:e,f=to(d,"addEventListener");function p(){var t=to(d,"removeEventListener");n.forEach(function(n){return t.call(e,n,c,l)})}return n.forEach(function(t){return f.call(e,t,c,l)}),{stop:p}}t.s(["Observable",0,tr,"mergeObservables",0,ti],821014);var tu={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function tc(t){return new tr(function(e){var n=ts(t,window,["visibilitychange","freeze"],function(t){"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:tu.HIDDEN}):"freeze"===t.type&&e.notify({reason:tu.FROZEN})},{capture:!0}).stop,r=ta(t,window,"beforeunload",function(){e.notify({reason:tu.UNLOADING})}).stop;return function(){n(),r()}})}function tl(t){return q(Y(tu),t)}t.s(["PageExitReason",0,tu,"createPageExitObservable",0,tc,"isPageExitReason",0,tl],239936);var td=/[^\u0000-\u007F]/;function tf(t){return td.test(t)?void 0!==window.TextEncoder?new TextEncoder().encode(t).length:new Blob([t]).size:t.length}function tp(t){for(var e=new Uint8Array(t.reduce(function(t,e){return t+e.length},0)),n=0,r=0;r<t.length;r++){var i=t[r];e.set(i,n),n+=i.length}return e}function tv(t,e){return to(te(),"setTimeout")(V(t),e)}function th(t){to(te(),"clearTimeout")(t)}function tm(t,e){return to(te(),"setInterval")(V(t),e)}function tg(t){to(te(),"clearInterval")(t)}function ty(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=tv(function(){a&&r&&t.apply(void 0,r),s=!1,r=void 0},e)},cancel:function(){th(i),s=!1,r=void 0}}}function t_(){}function tb(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);var r=tw(Object.prototype),i=tw(Array.prototype),o=tw(Object.getPrototypeOf(t)),a=tw(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function tw(t){var e=t.toJSON;return e?(delete t.toJSON,function(){t.toJSON=e}):t_}t.s(["ONE_KIBI_BYTE",0,1024,"ONE_MEBI_BYTE",0,1048576,"computeBytesCount",0,tf,"concatBuffers",0,tp],187806),t.s(["noop",0,t_,"throttle",0,ty],234725);function tS(t,e){void 0===e&&(e=225280);var n=tw(Object.prototype),r=tw(Array.prototype),i=[],o=new WeakMap,a=tk(t,"$",void 0,i,o),s=JSON.stringify(a),u=s?s.length:0;if(u>e)return void tC(e,"discarded",t);for(;i.length>0&&u<e;){var c=i.shift(),l=0;if(Array.isArray(c.source))for(var d=0;d<c.source.length;d++){var f=tk(c.source[d],c.path,d,i,o);if(void 0!==f?u+=JSON.stringify(f).length:u+=4,u+=l,l=1,u>e){tC(e,"truncated",t);break}c.target[d]=f}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var f=tk(c.source[d],c.path,d,i,o);if(void 0!==f&&(u+=JSON.stringify(f).length+l+d.length+3,l=1),u>e){tC(e,"truncated",t);break}c.target[d]=f}}return n(),r(),a}function tk(t,e,n,r,i){var o,a=function(t){if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(t){}return t}(t);if(!a||"object"!=typeof a){return"bigint"==typeof(o=a)?"[BigInt] ".concat(o.toString()):"function"==typeof o?"[Function] ".concat(o.name||"unknown"):"symbol"==typeof o?"[Symbol] ".concat(o.description||o.toString()):o}var s=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]"}(a);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;if(i.has(t))return"[Reference seen at ".concat(i.get(t),"]");var u=void 0!==n?"".concat(e,".").concat(n):e,c=Array.isArray(a)?[]:{};return i.set(t,u),r.push({source:a,target:c,path:u}),c}function tC(t,e,n){N.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}function tx(t){var e=[],n=tL(t,"stack"),r=String(t);return n&&X(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(function(t){var n=function(t){var e=tA.exec(t);if(e){var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=tR.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=tI.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=tN.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:+e[3],url:e[2]}}(t)||function(t){var e=tO.exec(t);if(e){var n=e[3]&&e[3].indexOf(" > eval")>-1,r=tM.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:tL(t,"message"),name:tL(t,"name"),stack:e}}t.s(["sanitize",0,tS],485605);var tE="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",tT="(?::(\\d+))",tA=RegExp("^\\s*at (.*?) ?\\(".concat(tE).concat(tT,"?").concat(tT,"?\\)?\\s*$"),"i"),tR=new RegExp("\\((\\S*)".concat(tT).concat(tT,"\\)")),tI=RegExp("^\\s*at ?".concat(tE).concat(tT,"?").concat(tT,"??\\s*$"),"i"),tN=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tO=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,tM=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function tL(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}function tD(t,e,n,r){var i,o,a,s,u=(i=t,"[object String]"===({}).toString.call(i)&&(a=(o=tP.exec(i))[1],s=o[2]),{name:a,message:s});return{name:u.name,message:u.message,stack:[{url:e,column:r,line:n}
1]}}var tP=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function tU(){var t,e=Error();if(!e.stack)try{throw e}catch(t){t_()}return F(function(){var n=tx(e);n.stack=n.stack.slice(2),t=tz(n)}),t}function tz(t){var e=tB(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 tB(t){return"".concat(t.name||"Error",": ").concat(t.message)}t.s(["computeStackTrace",0,tx,"computeStackTraceFromOnErrorMessage",0,tD],809328),t.s(["createHandlingStack",0,tU,"formatErrorMessage",0,tB,"toStackTraceString",0,tz],767310);var tV="No stack, consider using an instance of Error";function tF(t){var e,n,r,i,o,a,s=t.stackTrace,u=t.originalError,c=t.handlingStack,l=t.startClocks,d=t.nonErrorPrefix,f=t.source,p=t.handling,v=tq(u),h=(e=s,n=v,r=d,i=u,(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:n?"Empty message":"".concat(r," ").concat(tb(tS(i)))),m=(o=v,void 0!==(a=s)&&(o||a.stack.length>0&&(a.stack.length>1||void 0!==a.stack[0].url)))?tz(s):tV,g=v?tH(u,f):void 0,y=s?s.name:void 0,_=tj(u);return{startClocks:l,source:f,handling:p,handlingStack:c,originalError:u,type:y,message:h,stack:m,causes:g,fingerprint:_}}function tj(t){return tq(t)&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function tq(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function tH(t,e){for(var n=t,r=[];tq(null==n?void 0:n.cause)&&r.length<10;){var i=tx(n.cause);r.push({message:n.cause.message,source:e,type:null==i?void 0:i.name,stack:i&&tz(i)}),n=n.cause}return r.length?r:void 0}function tG(t){return Z({},t)}function tW(t,e){return Object.keys(t).some(function(n){return t[n]===e})}function tK(t){return 0===Object.keys(t).length}function tY(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.s(["NO_ERROR_STACK_PRESENT_MESSAGE",0,tV,"computeRawError",0,tF,"flattenErrorCauses",0,tH,"getFileFromStackTraceString",0,function(t){var e;return null==(e=/@ (.+)/.exec(t))?void 0:e[1]},"isError",0,tq,"tryToGetFingerprint",0,tj],368263),t.s(["isEmptyObject",0,tK,"mapValues",0,tY,"objectHasValue",0,tW,"shallowClone",0,tG],782407),(e=i||(i={})).WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",e.REMOTE_CONFIGURATION="remote_configuration",e.LONG_ANIMATION_FRAME="long_animation_frame",e.ANONYMOUS_USER_TRACKING="anonymous_user_tracking",e.ACTION_NAME_MASKING="action_name_masking",e.CONSISTENT_TRACE_SAMPLING="consistent_trace_sampling",e.DELAY_VIEWPORT_COLLECTION="delay_viewport_collection";var tJ=new Set;function tX(t){Array.isArray(t)&&t.filter(function(t){return tW(i,t)}).forEach(function(t){tJ.add(t)})}function t$(t){return tJ.has(t)}function tZ(){return tJ}t.s(["ExperimentalFeature",0,i,"getExperimentalFeatures",0,tZ,"initFeatureFlags",0,tX,"isExperimentalFeatureEnabled",0,t$],976472);var tQ="datad0g.com",t0="datadoghq.com",t1=["ddsource","ddtags"];function t2(t){return 0!==t&&100*Math.random()<=t}function t3(t,e){return+t.toFixed(e)}function t5(t){return t6(t)&&t>=0&&t<=100}function t6(t){return"number"==typeof t}t.s(["isNumber",0,t6,"isPercentage",0,t5,"performDraw",0,t2,"round",0,t3],241146);function t4(t){var e,n,r;return{relative:t,timeStamp:(e=t,(n=et()-performance.now())>ec()?Math.round(ea(n,e)):(r=e,Math.round(ea(ec(),r))))}}function t8(t){return{relative:es(t),timeStamp:t}}function t9(){return Math.round(et()-ea(ec(),performance.now()))}function t7(t){return t6(t)?t3(1e6*t,0):t}function et(){return new Date().getTime()}function ee(){return et()}function en(){return performance.now()}function er(){return{relative:en(),timeStamp:ee()}}function ei(){return{relative:0,timeStamp:ec()}}function eo(t,e){return e-t}function ea(t,e){return t+e}function es(t){return t-ec()}function eu(t){return t<31536e6}function ec(){return void 0===o&&(o=performance.timing.navigationStart),o}function el(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function ed(t,e,n){if(void 0===n&&(n=function(){if("u">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]=ed(i[o],e[o],n);return i}var a="object"===el(t)?t:{};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=ed(a[s],e[s],n));return a}}function ef(t){return ed(void 0,t)}function ep(){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=ed(t,i))}return t}function ev(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null==(t=e.connection)?void 0:t.effectiveType}}function eh(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function em(){var t=[];return{add:function(e){t.push(e)>500&&t.splice(0,1)},remove:function(e){eh(t,e)},drain:function(e){t.forEach(function(t){return t(e)}),t.length=0}}}t.s(["ONE_HOUR",0,36e5,"ONE_MINUTE",0,6e4,"ONE_SECOND",0,1e3,"ONE_YEAR",0,31536e6,"addDuration",0,ea,"clocksNow",0,er,"clocksOrigin",0,ei,"currentDrift",0,t9,"dateNow",0,et,"elapsed",0,eo,"getRelativeTime",0,es,"looksLikeRelativeTime",0,eu,"relativeNow",0,en,"relativeToClocks",0,t4,"timeStampNow",0,ee,"timeStampToClocks",0,t8,"toServerDuration",0,t7],550308),t.s(["comb
1ine",0,ep,"deepClone",0,ef],229284),t.s(["removeDuplicates",0,function(t){var e=new Set;return t.forEach(function(t){return e.add(t)}),H(e)},"removeItem",0,eh],419487),t.s(["createBoundedBuffer",0,em],159199);var eg="configuration",ey="usage",e_=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],eb=["ddog-gov.com"],ew=em(),eS=function(t){ew.add(function(){return eS(t)})};function ek(t,e){var n,r,i=new tr,o=new Set,a=!q(eb,e.site)&&t2(e.telemetrySampleRate),s=((n={}).log=a,n[eg]=a&&t2(e.telemetryConfigurationSampleRate),n[ey]=a&&t2(e.telemetryUsageSampleRate),n),u={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return eS=function(n){var a=tb(n);if(s[n.type]&&o.size<e.maxTelemetryEventsPerPage&&!o.has(a)){var c,l,d,f=(c=t,l=n,d=u,ep({type:"telemetry",date:ee(),service:c,version:"5.35.1",source:"browser",_dd:{format_version:2},telemetry:ep(l,{runtime_env:d,connectivity:ev(),sdk_setup:"npm"}),experimental_features:H(tZ())},void 0!==r?r():{}));i.notify(f),tn("telemetry",f),o.add(a)}},z(eT),{setContextProvider:function(t){r=t},observable:i,enabled:a}}function eC(){ew.drain()}function ex(t){return t.site===tQ}function eE(t,e){j(T.debug,t,e),eS(Z({type:"log",message:t,status:"debug"},e))}function eT(t,e){eS(Z({type:"log",status:"error"},function(t){if(tq(t)){var e,n=tx(t);return{error:{kind:n.name,stack:tz(((e=n).stack=e.stack.filter(function(t){return!t.url||e_.some(function(e){return X(t.url,e)})}),e))},message:n.message}}return{error:{stack:tV},message:"".concat("Uncaught"," ").concat(tb(t))}}(t),e))}function eA(t){eS({type:eg,configuration:t})}function eR(t){eS({type:ey,usage:t})}function eI(){var t=te().DatadogEventBridge;if(t)return{getCapabilities:function(){var e;return JSON.parse((null==(e=t.getCapabilities)?void 0:e.call(t))||"[]")},getPrivacyLevel:function(){var e;return null==(e=t.getPrivacyLevel)?void 0:e.call(t)},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n,r){t.send(JSON.stringify({eventType:e,event:n,view:r?{id:r}:void 0}))}}}function eN(t){var e=eI();return!!e&&q(e.getCapabilities(),t)}function eO(t){void 0===t&&(t=null==(e=te().location)?void 0:e.hostname);var e,n=eI();return!!n&&n.getAllowedWebViewHosts().some(function(e){return t===e||$(t,".".concat(e))})}function eM(){var t,e=window;if(e.Zone&&(t=to(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=to(new e.MutationObserver(t_),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function eL(t,e,n,r){var i=(void 0===r?{}:r).computeHandlingStack,o=t[e];if("function"!=typeof o)if(!(e in t&&X(e,"on")))return{stop:t_};else o=t_;var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=H(arguments);F(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?tU():void 0}]);var r=o.apply(this,e);return t&&F(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function eD(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:t_};var i=function(t,e){tv(function(){i!==t_&&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.set)===o&&Object.defineProperty(t,e,r),i=t_}}}t.s(["addTelemetryConfiguration",0,eA,"addTelemetryDebug",0,eE,"addTelemetryError",0,eT,"addTelemetryUsage",0,eR,"drainPreStartTelemetry",0,eC,"isTelemetryReplicationAllowed",0,ex,"startTelemetry",0,ek],206014),t.s(["bridgeSupports",0,eN,"canUseEventBridge",0,eO,"getEventBridge",0,eI],126530);var eP={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function eU(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&tv(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:eP.AGENT,startClocks:er()})}finally{i=!1}}return!0}}}function ez(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,ez)}t.s(["ErrorSource",0,eP],556724),t.s(["createEventRateLimiter",0,eU],679307);var eB=/([\w-]+)\s*=\s*([^;]+)/g;function eV(t,e){for(eB.lastIndex=0;;){var n=eB.exec(t);if(n){if(n[1]===e)return n[2]}else break}}function eF(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 ej(t,e,n,r){void 0===n&&(n=0);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":"",c=r&&r.partitioned?";partitioned":"";document.cookie="".concat(t,"=").concat(e,";").concat(o,";path=/;
1samesite=").concat(a).concat(s).concat(u).concat(c)}function eq(t){return eV(document.cookie,t)}function eH(t){return a||(a=function(t){var e=new Map;for(eB.lastIndex=0;;){var n=eB.exec(t);if(n)e.set(n[1],n[2]);else break}return e}(document.cookie)),a.get(t)}function eG(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||eH("datadog-synthetics-injects-rum"))}function eW(){var t=window._DATADOG_SYNTHETICS_PUBLIC_ID||eH("datadog-synthetics-public-id");return"string"==typeof t?t:void 0}function eK(){var t=window._DATADOG_SYNTHETICS_RESULT_ID||eH("datadog-synthetics-result-id");return"string"==typeof t?t:void 0}function eY(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!eJ(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function eJ(t){return"object"===el(t)}t.s(["getSyntheticsResultId",0,eK,"getSyntheticsTestId",0,eW,"willSyntheticsInjectRum",0,eG],680309);var eX={"view.name":"string","view.url":"string","view.referrer":"string"},e$={context:"object"},eZ={service:"string",version:"string"},eQ=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}();t.s(["AbstractLifeCycle",0,eQ],835454);var e0=144e5,e1=9e5,e2="cookie",e3="local-storage",e5=1/0;function e6(t){var e=t.expireDelay,n=t.maxEntries,r=[],i=tm(function(){for(var t=en()-e;r.length>0&&r[r.length-1].endTime<t;)r.pop()},6e4);return{add:function(t,e){var i={value:t,startTime:e,endTime:e5,remove:function(){eh(r,i)},close:function(t){i.endTime=t}};return n&&r.length>=n&&r.pop(),r.unshift(i),i},find:function(t,e){void 0===t&&(t=e5),void 0===e&&(e={returnInactive:!1});for(var n=0,i=r;n<i.length;n++){var o=i[n];if(o.startTime<=t){if(e.returnInactive||t<=o.endTime)return o.value;break}}},closeActive:function(t){var e=r[0];e&&e.endTime===e5&&e.close(t)},findAll:function(t,e){void 0===t&&(t=e5),void 0===e&&(e=0);var n=ea(t,e);return r.filter(function(e){return e.startTime<=n&&t<=e.endTime}).map(function(t){return t.value})},reset:function(){r=[]},stop:function(){tg(i)}}}function e4(t){return e8(t,location.href).href}function e8(t,e){var n=function(){if(void 0===c)try{var t=new e9("http://test/path");c="http://test/path"===t.href}catch(t){c=!1}return c?e9:void 0}();if(n)try{return void 0!==e?new n(t,e):new n(t)}catch(n){throw Error("Failed to construct URL: ".concat(String(n)," ").concat(tb({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw Error("Invalid URL: '".concat(t,"'"));var r=document,i=r.createElement("a");if(void 0!==e){var o=(r=document.implementation.createHTMLDocument("")).createElement("base");o.href=e,r.head.appendChild(o),r.body.appendChild(i)}return i.href=t,i}var e9=URL;function e7(){return l||(l=new tr(function(t){if(window.fetch)return eL(window,"fetch",function(e){var n,r,i,o,a,s,u,c,l,d,f;return n=e,r=t,i=n.parameters,o=n.onPostCall,a=n.handlingStack,s=i[0],void 0===(c=(u=i[1])&&u.method)&&s instanceof Request&&(c=s.method),l=void 0!==c?String(c).toUpperCase():"GET",d=s instanceof Request?s.url:e4(String(s)),f={state:"start",init:u,input:s,method:l,startClocks:er(),url:d,handlingStack:a},void(r.notify(f),i[0]=f.input,i[1]=f.init,o(function(t){var e=r,n=t,i=f;function o(t){i.state="resolve",Z(i,t),e.notify(i)}n.then(V(function(t){o({response:t,responseType:t.type,status:t.status,isAborted:!1})}),V(function(t){var e,n;o({status:0,isAborted:(null==(n=null==(e=i.init)?void 0:e.signal)?void 0:n.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})}))}))},{computeHandlingStack:!0}).stop})),l}t.s(["initFetchObservable",0,e7],308731);var nt=new WeakMap;function ne(t){var e;return d||(e=t,d=new tr(function(t){var n=eL(XMLHttpRequest.prototype,"open",nn).stop,r=eL(XMLHttpRequest.prototype,"send",function(n){!function(t,e,n){var r=t.target,i=t.handlingStack,o=nt.get(r);if(o){o.state="start",o.startClocks=er(),o.isAborted=!1,o.xhr=r,o.handlingStack=i;var a=!1,s=eL(r,"onreadystatechange",function(){r.readyState===XMLHttpRequest.DONE&&u()}).stop,u=function(){c(),s(),a||(a=!0,o.state="complete",o.duration=eo(o.startClocks.timeStamp,ee()),o.status=r.status,n.notify(tG(o)))},c=ta(e,r,"loadend",u).stop;n.notify(o)}}(n,e,t)},{computeHandlingStack:!0}).stop,i=eL(XMLHttpRequest.prototype,"abort",nr).stop;return function(){n(),r(),i()}})),d}function nn(t){var e=t.target,n=t.parameters,r=n[0],i=n[1];nt.set(e,{state:"open",method:String(r).toUpperCase(),url:e4(String(i))})}function nr(t){var e=t.target,n=nt.get(e);n&&(n.isAborted=!0)}function ni(t,e,n){var r=t.getReader(),i=[],o=0;
1function a(){if(r.cancel().catch(t_),n.collectStreamBody){if(1===i.length)s=i[0];else{var t,a,s=new Uint8Array(o),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(V(function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())}),V(function(t){return e(t)}))}()}function no(t){return t>=500}function na(t){try{return t.clone()}catch(t){return}}function ns(t,e,n){var r=function(t,e){var n="/api/v2/".concat(e),r=t.proxy;if("string"==typeof r){var i=e4(r);return function(t){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(t)))}}if("function"==typeof r)return function(t){return r({path:n,parameters:t})};var o=function(t,e){var n=e.site,r=void 0===n?t0:n,i=e.internalAnalyticsSubdomain;if("logs"===t&&e.usePciIntake&&r===t0)return"pci.browser-intake-datadoghq.com";if(i&&r===t0)return"".concat(i,".").concat(t0);if("dd0g-gov.com"===r)return"http-intake.logs.".concat(r);var o=r.split("."),a=o.pop();return"browser-intake-".concat(o.join("-"),".").concat(a)}(e,t);return function(t){return"https://".concat(o).concat(n,"?").concat(t)}}(t,e);return{build:function(i,o){var a,s,u,c,l,d,f,p,v,h,m;return r((a=t,s=e,u=n,c=i,l=o,d=a.clientToken,f=a.internalAnalyticsSubdomain,p=l.retry,v=l.encoding,h=["sdk_version:".concat("5.35.1"),"api:".concat(c)].concat(u),p&&h.push("retry_count:".concat(p.count),"retry_after:".concat(p.lastFailureStatus)),m=["ddsource=browser","ddtags=".concat(encodeURIComponent(h.join(","))),"dd-api-key=".concat(d),"dd-evp-origin-version=".concat(encodeURIComponent("5.35.1")),"dd-evp-origin=browser","dd-request-id=".concat(ez())],v&&m.push("dd-evp-encoding=".concat(v)),"rum"===s&&m.push("batch_time=".concat(ee())),f&&m.reverse(),m.join("&")))},urlPrefix:r(""),trackType:e}}function nu(t,e){var n,r=200-t.length-1;(e.length>r||(n=e,function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(t){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(n)))&&N.warn("".concat(t," value doesn't meet tag requirements and will be sanitized. ").concat(L," ").concat(O,"/getting_started/tagging/#defining-tags"));var i=e.replace(/,/g,"_");return"".concat(t,":").concat(i)}function nc(t){var e,n,r,i,o,a,s,u=t.site||t0,c=(r=t.env,i=t.service,o=t.version,a=t.datacenter,s=[],r&&s.push(nu("env",r)),i&&s.push(nu("service",i)),o&&s.push(nu("version",o)),a&&s.push(nu("datacenter",a)),s),l={logsEndpointBuilder:ns(e=t,"logs",n=c),rumEndpointBuilder:ns(e,"rum",n),sessionReplayEndpointBuilder:ns(e,"replay",n)};return Z({replica:function(t,e){if(t.replica){var n=Z({},t,{site:t0,clientToken:t.replica.clientToken}),r={logsEndpointBuilder:ns(n,"logs",e),rumEndpointBuilder:ns(n,"rum",e)};return Z({applicationId:t.replica.applicationId},r)}}(t,c),site:u},l)}function nl(t){return t1.every(function(e){return q(t,e)})}t.s(["initXhrObservable",0,ne],452467),t.s(["readBytesFromStream",0,ni],30877),t.s(["isServerError",0,no,"tryToClone",0,na],23388),t.s(["computeTransportConfiguration",0,nc,"isIntakeUrl",0,nl],375064);var nd="initial_document",nf=[["document",function(t){return nd===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 np(){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 nv(t){return t.duration>=0}function nh(t){var e,n=np(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),r=!((e=t).redirectEnd>e.startTime)||np(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return n&&r}function nm(t,e,n){if(t<=e&&e<=n)return{duration:t7(eo(e,n)),start:t7(eo(t,e))}}function ng(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}function ny(t){return""===t.deliveryType?"other":t.deliveryType}var n_=/data:(.+)?(;base64)?,/g;function nb(t){if(t.length<=24e3);else if("data:"===t.substring(0,5))return t=t.substring(0,24e3),!0;return!1}function nw(t){return"".concat(t.match(n_)[0],"[...]")}function nS(t){var e=el(t);return"string"===e||"function"===e||t instanceof RegExp}function nk(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);
1if("string"==typeof t)return n?X(e,t):t===e}catch(t){N.error(t)}return!1})}function nC(){var t,e,n;return null!=f?f:(void 0===t&&(t=window),n=t.navigator.userAgent,f=t.chrome||/HeadlessChrome/.test(n)?1:(null==(e=t.navigator.vendor)?void 0:e.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?2:3*!t.document.documentMode)}var nx="_dd_s";function nE(t){var e=Z({},t);return["id","name","email"].forEach(function(t){t in e&&(e[t]=String(e[t]))}),e}function nT(t){var e="object"===el(t);return e||N.error("Unsupported user:",t),e}function nA(){return Math.floor(0x20000000000000*Math.random()).toString(36)}t.s(["checkUser",0,nT,"generateAnonymousId",0,nA,"sanitizeUser",0,nE],993789);var nR=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function nI(t){var e={isExpired:"1"};return t$(i.ANONYMOUS_USER_TRACKING)&&((null==t?void 0:t.anonymousId)?e.anonymousId=null==t?void 0:t.anonymousId:e.anonymousId=nA()),e}function nN(t){var e;return void 0!==t.isExpired||!((void 0===(e=t).created||et()-Number(e.created)<e0)&&(void 0===e.expire||et()<Number(e.expire)))}function nO(t){t.expire=String(et()+e1)}function nM(t){return J(t).map(function(t){var e=t[0],n=t[1];return"anonymousId"===e?"aid=".concat(n):"".concat(e,"=").concat(n)}).join("&")}function nL(t){var e={};return t&&(-1!==t.indexOf("&")||nR.test(t))&&t.split("&").forEach(function(t){var n=nR.exec(t);if(null!==n){var r=n[1],i=n[2];"aid"===r?e.anonymousId=i:e[r]=i}}),e}function nD(t){var e,n,r=((n={}).secure=!!(e=t).useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,n.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,n.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(n.domain=function(){if(void 0===s){for(var t="dd_site_test_".concat(ez()),e=window.location.hostname.split("."),n=e.pop();e.length&&!eq(t);)ej(t,"test",1e3,{domain:n="".concat(e.pop(),".").concat(n)});ej(t,"",0,{domain:n}),s=n}return s}()),n);return!function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(ez()),n="test";ej(e,n,6e4,t);var r=eq(e)===n;return ej(e,"",0,t),r}catch(t){return N.error(t),!1}}(r)?void 0:{type:e2,cookieOptions:r}}function nP(){return nL(eq(nx))}function nU(){try{var t=ez(),e="".concat("_dd_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:e3}:void 0}catch(t){return}}function nz(t){localStorage.setItem(nx,nM(t))}function nB(){return nL(localStorage.getItem(nx))}function nV(t){nz(nI(t))}var nF=[];function nj(t,e,n){void 0===n&&(n=0);var r,i,o=e.isLockEnabled,a=e.persistSession,s=e.expireSession,u=function(t){return a(Z({},t,{lock:i}))},c=function(){var t=e.retrieveSession(),n=t.lock;return t.lock&&delete t.lock,{session:t,lock:n}};if(p||(p=t),t!==p)return void nF.push(t);if(o&&n>=100)return void nH(e);var l=c();if(o&&(l.lock||(i=ez(),u(l.session),(l=c()).lock!==i)))return void nq(t,e,n);var d=t.process(l.session);if(o&&(l=c()).lock!==i)return void nq(t,e,n);if(d&&(nN(d)?s(d):(nO(d),o?u(d):a(d))),o&&!(d&&nN(d))){if((l=c()).lock!==i)return void nq(t,e,n);a(l.session),d=l.session}null==(r=t.after)||r.call(t,d||l.session),nH(e)}function nq(t,e,n){tv(function(){nj(t,e,n+1)},10)}function nH(t){p=void 0;var e=nF.shift();e&&nj(e,t)}var nG={GRANTED:"granted",NOT_GRANTED:"not-granted"};function nW(t){var e=new tr;return{tryToInit:function(e){t||(t=e)},update:function(n){t=n,e.notify()},isGranted:function(){return t===nG.GRANTED},observable:e}}t.s(["TrackingConsent",0,nG,"createTrackingConsentState",0,nW],107630);var nK={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},nY={ALL:"all",SAMPLED:"sampled"};function nJ(t,e){return null==t||"string"==typeof t||(N.error("".concat(e," must be defined as a string")),!1)}function nX(t,e){return void 0===t||!!t5(t)||(N.error("".concat(e," Sample Rate should be a number between 0 and 100")),!1)}function n$(t){var e,n,r,i,o,a;return t&&t.clientToken?(!(a=t.site)||"string"!=typeof a||/(datadog|ddog|datad0g|dd0g)/.test(a)||(N.error("Site should be a valid Datadog site. ".concat(L," ").concat(O,"/getting_started/site/.")),0))&&nX(t.sessionSampleRate,"Session")&&nX(t.telemetrySampleRate,"Telemetry")&&nX(t.telemetryConfigurationSampleRate,"Telemetry Configuration")&&nX(t.telemetryUsageSampleRate,"Telemetry Usage")&&nJ(t.version,"Version")&&nJ(t.env,"Env")&&nJ(t.service,"Service")?void 0===t.trackingConsent||tW(nG,t.trackingConsent)?Z({beforeSend:t.beforeSend&&D(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:function(t){switch(t.sessionPersistence){case e2:return nD(t);case e3:return nU();case void 0:var e=nD(t);return!e&&t.allowFallbackToLocalStorage&&(e=nU()),e;default:N.error("Invalid session persistence '".concat(String(t.sessionPersistence),"'"))}}(t),sessionSampleRate:null!=(e=t.sessionSampleRate)?e:100,telemetrySampleRate:null!=(n=t.telemetrySampleRate)?n:20,telemetryConfigurationSampleRate:null!=(r=t.telemetryConfigurationSampleRate)?r:5,telemetryUsageSampleRate:null!=(i=t.telemetryUsageSampleRate)?i:5,service:t.service||void 0,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:null!=(o=t.trackingConsent)?o:nG.GRANTED,storeContextsAcrossPages:!!t.storeContextsAcrossPages,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},nc(t)):void N.error('Tracking Consent should be either "granted" or "not-granted"'):void 0:void N.error("Client Token is not configured, we will not send any data.")}function nZ(t){return{session_sample_rate:t.sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:t.telemetryUsageSampleRate,use_before_send:!!t.beforeSend,use_cross_site_session_cookie:t.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:t.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,session_persistence:t.sessionPersistence,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents,tracking_consent:t.trackingConsent}}function nQ(){return window.crypto||window.msCrypto}t.s(["DefaultPrivacyLevel",0,nK,"TraceContextInjection",0,nY,"isSampleRate",0,nX,"serializeConfiguration",0,nZ,"validateAndBuildConfiguration",0,n$],207952);function n0(t){return v||(v=t$(i.CONSISTENT_TRACE_SAMPLING)&&function(){try{return crypto.getRandomValues(new BigUint64Array(1)),!0}catch(t){return!1}}()?n1:n2),v(t)}function n1(t){var e=crypto.getRandomValues(new BigUint64Array(1))[0];return 63===t&&(e>>=BigInt("1")),e}function n2(t){var e=nQ().getRandomValues(new Uint32Array(2));return 63===t&&(e[e.length-1]>>>=1),{toString:function(t){void 0===t&&(t=10);var n=e[1],r=e[0],i="";do{var o=n%t*0x100000000+r;n=Math.floor(n/t),r=Math.floor(o/t),i=(o%t).toString(t)+i}while(n||r)return i}}}function n3(t){var e=t.toString(16);return Array(17-e.length).join("0")+e}function n5(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function n6(t,e,n,r){if(void 0!==nQ()&&n.findTrackedSession()){var i=G(t.allowedTracingUrls,function(t){return nk([t.match],e.url,!0)});if(i){var o,a,s,u,c,l=n0(64);e.traceSampled=function(t,e){if(100===e)return!0;
1if(0===e)return!1;if("bigint"!=typeof t)return t2(e);var n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(l,t.traceSampleRate),(e.traceSampled||t.traceContextInjection===nY.ALL)&&(e.traceId=l,e.spanId=n0(63),r((o=e.traceId,a=e.spanId,s=e.traceSampled,u=i.propagatorTypes,c={},u.forEach(function(t){switch(t){case"datadog":Z(c,{"x-datadog-origin":"rum","x-datadog-parent-id":a.toString(),"x-datadog-sampling-priority":s?"1":"0","x-datadog-trace-id":o.toString()});break;case"tracecontext":Z(c,{traceparent:"00-0000000000000000".concat(n3(o),"-").concat(n3(a),"-0").concat(s?"1":"0")});break;case"b3":Z(c,{b3:"".concat(n3(o),"-").concat(n3(a),"-").concat(s?"1":"0")});break;case"b3multi":Z(c,{"X-B3-TraceId":n3(o),"X-B3-SpanId":n3(a),"X-B3-Sampled":s?"1":"0"})}}),c)))}}}var n4=1;function n8(){var t=n4;return n4+=1,t}function n9(t){return t6(t)&&t<0?void 0:t}function n7(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,i=void 0===r?t_:r,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(13,function(t){var e;if("view"!==t.type&&"vital"!==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":(null==(e=t._dd)?void 0:e.discarded)||(o.resourceCount+=1,i())}});return{stop:function(){a.unsubscribe()},eventCounts:o}}function rt(t,e){return new tr(function(n){if(window.PerformanceObserver){var r,i,o,a=function(t){var e=t.filter(function(t){var e,n;return!((e=t).entryType===h.RESOURCE&&(!((n=e.name)&&!nl(n))||!nv(e)))});e.length>0&&n.notify(e)},s=!0,u=new PerformanceObserver(V(function(t){s?i=tv(function(){return a(t.getEntries())}):a(t.getEntries())}));try{u.observe(e)}catch(t){if(q([h.RESOURCE,h.NAVIGATION,h.LONG_TASK,h.PAINT],e.type)){e.buffered&&(i=tv(function(){return a(performance.getEntriesByType(e.type))}));try{u.observe({entryTypes:[e.type]})}catch(t){return}}}return s=!1,r=t,!m&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(m=ta(r,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),re(h.FIRST_INPUT)||e.type!==h.FIRST_INPUT||(o=function(t,e){var n=et(),r=!1,i=ts(t,window,["click","mousedown","keydown","touchstart","pointerdown"],function(e){if(e.cancelable){var n,r,i={entryType:"first-input",processingStart:en(),processingEnd:en(),startTime:e.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};"pointerdown"===e.type?(n=t,r=i,ts(n,window,["pointerup","pointercancel"],function(t){"pointerup"===t.type&&o(r)},{once:!0})):o(i)}},{passive:!0,capture:!0}).stop;return{stop:i};function o(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o<et()-n&&e(t)}}}(t,function(t){a([t])}).stop),function(){u.disconnect(),o&&o(),th(i)}}})}function re(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}(n=h||(h={})).EVENT="event",n.FIRST_INPUT="first-input",n.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",n.LAYOUT_SHIFT="layout-shift",n.LONG_TASK="longtask",n.LONG_ANIMATION_FRAME="long-animation-frame",n.NAVIGATION="navigation",n.PAINT="paint",n.RESOURCE="resource";function rn(t,e,n){var r,i=!1,o=tv(V(function(){return c({hadActivity:!1})}),100),a=void 0!==n?tv(V(function(){return c({hadActivity:!0,end:ee()})}),n):void 0,s=t.subscribe(function(t){var e=t.isBusy;th(o),th(r);var n=ee();e||(r=tv(V(function(){return c({hadActivity:!0,end:n})}),100))}),u=function(){i=!0,th(o),th(r),th(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}function rr(t,e,n,r){return new tr(function(i){var o,a=[],s=0;return a.push(e.subscribe(u),n.subscribe(u),rt(r,{type:h.RESOURCE}).subscribe(function(t){t.some(function(t){return!ri(r,t.name)})&&u()}),t.subscribe(7,function(t){ri(r,t.url)||(void 0===o&&(o=t.requestIndex),s+=1,u())}),t.subscribe(8,function(t){ri(r,t.url)||void 0===o||t.requestIndex<o||(s-=1,u())})),function(){a.forEach(function(t){return t.unsubscribe()})};function u(){i.notify({isBusy:s>0})}})}function ri(t,e){return nk(t.excludedActivityUrls,e)}function ro(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?"\0"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)})}function ra(t,e){return t.matches?t.matches(e):!!t.msMatchesSelector&&t.msMatchesSelector(e)}function rs(t){if(t.parentElement)return t.parentElement;for(;t.parentNode;){if(t.parentNode.nodeType===Node.ELEMENT_NODE)return t.parentNode;t=t.parentNode}return null}var ru=function(){function t(t){var e=this;this.map=new WeakMap,t&&t.forEach(function(t){return e.map.set(t,1)})}return t.prototype.add=function(t){return this.map.set(t,1),this},t.prototype.delete=function(t){return this.map.delete(t)},t.prototype.has=function(t){return this.map.has(t)},t}();function rc(t){return t.nodeType===Node.TEXT_NODE}function rl(t){return t.nodeType===Node.ELEMENT_NODE}function rd(t){return rl(t)&&!!t.shadowRoot}function rf(t){return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&rl(t.host)}function rp(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;rd(t)&&e(t.shadowRoot)}function rv(t){return rf(t)?t.host:t.parentNode}var rh={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:nK.ALLOW,MASK:nK.MASK,MASK_USER_INPUT:nK.MASK_USER_INPUT},rm="data-dd-privacy",rg="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",ry={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function r_(t,e,n){if(n&&n.has(t))return n.get(t);var r=rv(t),i=r?r_(r,e,n):e,o=rb(rw(t),i);return n&&n.set(t,o),o}function rb(t,e){switch(e){case rh.HIDDEN:case rh.IGNORE:return e}switch(t){case rh.ALLOW:case rh.MASK:case rh.MASK_USER_INPUT:case rh.HIDDEN:case rh.IGNORE:return t;default:return e}}function rw(t){if(rl(t)){if("BASE"===t.tagName)return rh.ALLOW;if("INPUT"===t.tagName){if("password"===t.type||"email"===t.type||"tel"===t.type||"hidden"===t.type)return rh.MASK;var e=t.getAttribute("autocomplete");if(e&&(e.startsWith("cc-")||e.endsWith("-password")))return rh.MASK}if(ra(t,rx(rh.HIDDEN)))return rh.HIDDEN;if(ra(t,rx(rh.MASK)))return rh.MASK;if(ra(t,rx(rh.MASK_USER_INPUT)))return rh.MASK_USER_INPUT;if(ra(t,rx(rh.ALLOW)))return rh.ALLOW;if(function(t){if("SCRIPT"===t.nodeName)return!0;
1if("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))return rh.IGNORE}}function rS(t,e){switch(e){case rh.MASK:case rh.HIDDEN:case rh.IGNORE:return!0;case rh.MASK_USER_INPUT:return rc(t)?rk(t.parentNode):rk(t);default:return!1}}function rk(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!!ry[t.tagName]}function rC(t,e,n){var r,i=null==(r=t.parentElement)?void 0:r.tagName,o=t.textContent||"";if(!e||o.trim()){if("SCRIPT"===i)o="***";else if(n===rh.HIDDEN)o="***";else if(rS(t,n))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?"***":o.replace(/\S/g,"x");return o}}function rx(t){return"[".concat(rm,'="').concat(t,'"], .').concat("dd-privacy-").concat(t)}var rE="data-dd-action-name";function rT(t,e){if(void 0===y&&(y="closest"in HTMLElement.prototype),y)n=t.closest("[".concat(e,"]"));else for(var n,r=t;r;){if(r.hasAttribute(e)){n=r;break}r=rs(r)}if(n)return rO(rN(n.getAttribute(e).trim()))}var rA=[function(t,e,n){if(void 0===g&&(g="labels"in HTMLInputElement.prototype),g){if("labels"in t&&t.labels&&t.labels.length>0)return rL(t.labels[0],e)}else if(t.id){var r=t.ownerDocument&&G(t.ownerDocument.querySelectorAll("label"),function(e){return e.htmlFor===t.id});return r&&rL(r,e,n)}},function(t){if("INPUT"===t.nodeName){var e=t.getAttribute("type");if("button"===e||"submit"===e||"reset"===e)return{name:t.value,nameSource:"text_content"}}},function(t,e,n){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return rL(t,e,n)},function(t){return rM(t,"aria-label")},function(t,e,n){var r=t.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(function(e){var n,r;return n=t,r=e,n.ownerDocument?n.ownerDocument.getElementById(r):null}).filter(function(t){return!!t}).map(function(t){return rD(t,e,n)}).join(" "),nameSource:"text_content"}},function(t){return rM(t,"alt")}
1,function(t){return rM(t,"name")},function(t){return rM(t,"title")},function(t){return rM(t,"placeholder")},function(t,e){if("options"in t&&t.options.length>0)return rL(t.options[0],e)}],rR=[function(t,e,n){return rL(t,e,n)}];function rI(t,e,n,r){for(var i=t,o=0;o<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(var a=0;a<n.length;a++){var s=(0,n[a])(i,e,r);if(s){var u=s.name,c=s.nameSource,l=u&&u.trim();if(l)return{name:rO(rN(l)),nameSource:c}}}if("FORM"===i.nodeName)break;i=rs(i),o+=1}}function rN(t){return t.replace(/\s+/g," ")}function rO(t){return t.length>100?"".concat(eF(t,100)," [...]"):t}function rM(t,e){return{name:t.getAttribute(e)||"",nameSource:"standard_attribute"}}function rL(t,e,n){return{name:rD(t,e,n)||"",nameSource:"text_content"}}function rD(t,e,n){if(!t.isContentEditable){if("innerText"in t){var r=t.innerText,i=function(e){for(var n=t.querySelectorAll(e),i=0;i<n.length;i+=1){var o=n[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(r=r.replace(a,""))}}};return 0===nC()&&i("script, style"),i("[".concat(rE,"]")),e&&i("[".concat(e,"]")),n&&i("".concat(rx(rh.HIDDEN),", ").concat(rx(rh.MASK))),r}return t.textContent}}var rP=[rE,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],rU=[rF,function(t){if(t.id&&!rV(t.id))return"#".concat(ro(t.id))}],rz=[rF,function(t){if("BODY"!==t.tagName)for(var e=function(t){if(t.classList)return t.classList;var e=(t.getAttribute("class")||"").trim();return e?e.split(/\s+/):[]}(t),n=0;n<e.length;n+=1){var r=e[n];if(!rV(r))return"".concat(ro(t.tagName),".").concat(ro(r))}},function(t){return ro(t.tagName)}];function rB(t,e){var n;if("isConnected"in(n=t)?n.isConnected:n.ownerDocument.documentElement.contains(n)){for(var r,i=t;i&&"HTML"!==i.nodeName;){var o=rj(i,rU,rq,e,r);if(o)return o;r=rj(i,rz,rH,e,r)||rG(function(t){for(var e=rs(t).firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return"".concat(ro(t.tagName),":nth-of-type(").concat(n,")")}(i),r),i=rs(i)}return r}}function rV(t){return/[0-9]/.test(t)}function rF(t,e){if(e){var n=i(e);if(n)return n}for(var r=0;r<rP.length;r++){var n=i(rP[r]);if(n)return n}function i(e){if(t.hasAttribute(e))return"".concat(ro(t.tagName),"[").concat(e,'="').concat(ro(t.getAttribute(e)),'"]')}}function rj(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a&&n(t,a,i))return rG(a,i)}}function rq(t,e,n){return 1===t.ownerDocument.querySelectorAll(rG(e,n)).length}function rH(t,e,n){if(void 0===n)r=function(t){return ra(t,e)};else{var r,i=!function(){if(void 0===_)try{document.querySelector(":scope"),_=!0}catch(t){_=!1}return _}()?rG(e,n):rG("".concat(e,":scope"),n);r=function(t){return null!==t.querySelector(i)}}for(var o=rs(t).firstElementChild;o;){if(o!==t&&r(o))return!1;o=o.nextElementSibling}return!0}function rG(t,e){return e?"".concat(t,">").concat(e):t}function rW(){var t=window.getSelection();return!t||t.isCollapsed}function rK(t){return t.target instanceof Element&&!1!==t.isPrimary}function rY(t){return!t.hasPageActivity&&!t.getUserActivity().input&&!t.getUserActivity().scroll&&!ra(t.event.target,'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] *')}var rJ=new Map;function rX(t,e){rJ.set(t,e),rJ.forEach(function(t,e){eo(e,en())>1e4&&rJ.delete(e)})}var r$=3e5;function rZ(t,e){var n=rQ(t)?{action:{id:t.id,loading_time:n9(t7(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,name_source:t$(i.ACTION_NAME_MASKING)?t.nameSource:void 0}}}:void 0,r=rQ(t)?void 0:t.context,o=ep({action:{id:ez(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},n),a=rQ(t)?{events:t.events}:{};return!rQ(t)&&t.handlingStack&&(a.handlingStack=t.handlingStack),{customerContext:r,rawRumEvent:o,startTime:t.startClocks.relative,domainContext:a}}function rQ(t){return"custom"!==t.type}function r0(t){var e,n,r=function(e,n){var r=tF({stackTrace:e,originalError:n,startClocks:er(),nonErrorPrefix:"Uncaught",source:eP.SOURCE,handling:"unhandled"});t.notify(r)},i=(e=r,eL(window,"onerror",function(t){var n=t.parameters,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4];e(tq(s)?tx(s):tD(r,i,o,a),null!=s?s:r)}
1)).stop,o=(n=r,eL(window,"onunhandledrejection",function(t){var e=t.parameters[0].reason||"Empty reason";n(tx(e),e)})).stop;return{stop:function(){i(),o()}}}t.s(["trackRuntimeError",0,r0],617814);var r1={};function r2(t){var e=t.map(function(t){var e;return r1[t]||(r1[t]=(e=t,new tr(function(t){var n=A[e];return A[e]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n.apply(console,r);var o=tU();F(function(){t.notify(function(t,e,n){var r,i=t.map(function(t){var e;return"string"==typeof(e=t)?tS(e):tq(e)?tB(tx(e)):tb(tS(e),void 0,2)}).join(" ");if(e===T.error){var o=G(t,tq);r={stack:o?tz(tx(o)):void 0,fingerprint:tj(o),causes:o?tH(o,"console"):void 0,startClocks:er(),message:i,source:eP.CONSOLE,handling:"handled",handlingStack:n}}return{api:e,message:i,error:r,handlingStack:n}}(r,e,o))})},function(){A[e]=n}}))),r1[t]});return ti.apply(void 0,e)}t.s(["initConsoleObservable",0,r2],655589);var r3={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function r5(t,e){var n,r,i=[];q(e,r3.cspViolation)&&i.push((n=t,new tr(function(t){return ta(n,document,"securitypolicyviolation",function(e){var n,r;t.notify((n=e,r="'".concat(n.blockedURI,"' blocked by '").concat(n.effectiveDirective,"' directive"),r6({type:n.effectiveDirective,message:"".concat(r3.cspViolation,": ").concat(r),originalError:n,csp:{disposition:n.disposition},stack:r4(n.effectiveDirective,n.originalPolicy?"".concat(r,' of the policy "').concat(eF(n.originalPolicy,100,"..."),'"'):"no policy",n.sourceFile,n.lineNumber,n.columnNumber)})))}).stop})));var o=e.filter(function(t){return t!==r3.cspViolation});return o.length&&i.push((r=o,new tr(function(t){if(window.ReportingObserver){var e=V(function(e,n){return e.forEach(function(e){var n,r,i;return t.notify((r=(n=e).type,r6({type:(i=n.body).id,message:"".concat(r,": ").concat(i.message),originalError:n,stack:r4(i.id,i.message,i.sourceFile,i.lineNumber,i.columnNumber)})))})}),n=new window.ReportingObserver(e,{types:r,buffered:!0});return n.observe(),function(){n.disconnect()}}}))),ti.apply(void 0,i)}function r6(t){return Z({startClocks:er(),source:eP.REPORT,handling:"unhandled"},t)}function r4(t,e,n,r,i){return n?tz({name:t,message:e,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=i?i:void 0}]}):void 0}function r8(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n,r,i,o=window.requestIdleCallback(V(t),e);return function(){return window.cancelIdleCallback(o)}}return n=t,r=et(),i=tv(function(){n({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(et()-r))}})},0),function(){return th(i)}}t.s(["RawReportType",0,r3,"initReportObservable",0,r5],758209);var r9=new ru;function r7(t){return ea(t.startTime,t.duration)}function it(t,e,n){return document.readyState===e||"complete"===document.readyState?(n(),{stop:t_}):ta(t,window,"complete"===e?"load":"DOMContentLoaded",n,{once:!0})}var ie=12e4;function ir(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function ii(t){if(t&&t.nodeType===Node.COMMENT_NODE){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function io(){if(re(h.NAVIGATION)){var t=performance.getEntriesByType(h.NAVIGATION)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(t6(e[n])){var r=e[n];t[n]=0===r?0:es(r)}return t}(),n=Z({entryType:h.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:function(){return Z({},n,{toJSON:void 0})}},e);return n}function ia(t,e){it(t,"interactive",function(){var t=Z(io().toJSON(),{entryType:h.RESOURCE,initiatorType:nd,traceId:function(t){var e,n,r,i=(n=(e=t).querySelector("meta[name=dd-trace-id]"),r=e.querySelector("meta[name=dd-trace-time]"),ir(n&&n.content,r&&r.content)||function(t){var e=function(t){for(var e=0;e<t.childNodes.length;e+=1){var n=ii(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=ii(r);if(n)return n;if(!rc(r))break}}(t);if(e)return ir(eV(e,"trace-id"),eV(e,"trace-time"))}(t));if(!(!i||i.traceTime<=et()-ie))return i.traceId}(document),toJSON:function(){return Z({},t,{toJSON:void 0})}});e(t)})}function is(t,e){var n=t4(t.startTime),r=function(t,e){if(t.traceId)return{_dd:{trace_id:t.traceId,span_id:n0(63).toString(),rule_psr:e.rulePsr}}}(t,e);if(e.trackResources||r){var i,o=function(t){var e,n=t.name;if(!function(t){try{return!!e8(t)}catch(t){return!1}}(n))return eE('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var r="/"===(e=e8(n).pathname)[0]?e:"/".concat(e),i=0;i<nf.length;i++){var o=nf[i],a=o[0];if((0,o[1])(t.initiatorType,r))return a}return"other"}(t),a=iu(t),s=ep({date:n.timeStamp,resource:{id:ez(),type:o,url:t.name,status_code:0===(i=t.responseStatus)?void 0:i,protocol:ng(t),delivery_type:ny(t)},type:"resource",_dd:{discarded:!e.trackResources}},r,a);return{startTime:n.relative,rawRumEvent:s,domainContext:{performanceEntry:t}}}}function iu(t){var e,n,r,i=t.renderBlockingStatus;return{resource:Z({duration:(e=t.duration,n=t.startTime,r=t.responseEnd,0===e&&n<r?t7(eo(n,r)):t7(e)),render_blocking_status:i},function(t){if(t.startTime<t.responseStart){var e=t.encodedBodySize,n=t.decodedBodySize;return{size:n,encoded_body_size:e,decoded_body_size:n,transfer_size:t.transferSize}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(t),function(t){if(nh(t)){var e=t.startTime,n=t.fetchStart,r=t.workerStart,i=t.redirectStart,o=t.redirectEnd,a=t.domainLookupStart,s=t.domainLookupEnd,u=t.connectStart,c=t.secureConnectionStart,l=t.connectEnd,d=t.requestStart,f=t.responseStart,p={download:nm(e,f,t.responseEnd),first_byte:nm(e,d,f)};return 0<r&&r<n&&(p.worker=nm(e,r,n)),n<l&&(p.connect=nm(e,u,l),u<=c&&c<=l&&(p.ssl=nm(e,c,l))),n<s&&(p.dns=nm(e,a,s)),e<o&&(p.redirect=nm(e,i,o)),p}}(t))}}function ic(t){var e={},n=new tr,r={getContext:function(){return ef(e)},setContext:function(i){"object"===el(i)?(e=tS(i),null==t||t.updateCustomerData(e)):r.clearContext(),n.notify()},setContextProperty:function(r,i){e[r]=tS(i),null==t||t.updateCustomerData(e),n.notify()},removeContextProperty:function(r){delete e[r],null==t||t.updateCustomerData(e),n.notify()},clearContext:function(){e={},null==t||t.resetCustomerData(),n.notify()},changeObservable:n};return r}t.s(["createContextManager",0,ic],769400);var il=6e5,id=6e5;function ip(t,e){var n,r;return void 0===e&&(e=window),"hidden"===document.visibilityState?n=0:(n=1/0,r=ts(t,e,["pagehide","visibilitychange"],function(t){("pagehide"===t.type||"hidden"===document.visibilityState)&&(n=t.timeStamp,r())},{capture:!0}).stop),{get timeStamp(){return n},stop:function(){null==r||r()}}}var iv=0,ih=1/0,im=0,ig=function(){return b?iv:window.performance.interactionCount||0},iy=6e4;
1function i_(){var t=window.visualViewport;return Math.round(t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function ib(){var t=window.visualViewport;return Math.round(t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function iw(t){var e;return w||(e=t,w=new tr(function(t){return ta(e,window,"resize",ty(function(){t.notify(iS())},200).throttled,{capture:!0,passive:!0}).stop})),w}function iS(){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 ik=3e5,iC=3e5;function ix(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var iE=[];function iT(t,e,n,r){var o,a,s,u,c,l,d,f=new tr,p=new tr,v=function(t,e,n){var r,o=new tr,a=new tr,s=new tr,u=t.type===e2?function(t){var e,n={isLockEnabled:1===nC(),persistSession:(e=t,function(t){ej(nx,nM(t),e1,e)}),retrieveSession:nP,expireSession:function(e){var n;return n=t,void ej(nx,nM(nI(e)),t$(i.ANONYMOUS_USER_TRACKING)?31536e6:e0,n)}};if(!eH(nx)){var r=eH("_dd"),o=eH("_dd_r"),a=eH("_dd_l"),s={};r&&(s.id=r),a&&/^[01]$/.test(a)&&(s.logs=a),o&&/^[012]$/.test(o)&&(s.rum=o),tK(s)||(nO(s),n.persistSession(s))}return n}(t.cookieOptions):{isLockEnabled:!1,persistSession:nz,retrieveSession:nB,expireSession:nV},c=u.expireSession,l=tm(function(){nj({process:function(t){return nN(t)?nI(t):void 0},after:v},u)},1e3);h();var d=ty(function(){nj({process:function(t){if(!tK(t)){var r=v(t);return function(t){if(!tK(t)){var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,delete t.isExpired,o&&!t.id&&(t.id=ez(),t.created=String(et()))}}(r),r}},after:function(t){tK(t)||m()||(r=t,o.notify()),r=t}},u)},1e3),f=d.throttled,p=d.cancel;function v(t){var n;return nN(t)&&(t=nI(t)),m()&&((n=t,r.id!==n.id||r[e]!==n[e])?(r=nI(r),a.notify()):(s.notify({previousState:r,newState:t}),r=t)),t}function h(){nj({process:function(t){if(tK(t))return nI(t)},after:function(t){r=t}},u)}function m(){return void 0!==r[e]}return{expandOrRenewSession:f,expandSession:function(){nj({process:function(t){return m()?v(t):void 0}},u)},getSession:function(){return r},renewObservable:o,expireObservable:a,sessionStateUpdateObservable:s,restartSession:h,expire:function(){p(),c(r),v(nI(r))},stop:function(){tg(l)},updateSessionState:function(t){nj({process:function(e){return Z({},e,t)},after:v},u)}}}(t.sessionStoreStrategyType,e,n);iE.push(function(){return v.stop()});var h=e6({expireDelay:e0});function m(){return{id:v.getSession().id,trackingType:v.getSession()[e],isReplayForced:!!v.getSession().forcedReplay,anonymousId:v.getSession().anonymousId}}return iE.push(function(){return h.stop()}),v.renewObservable.subscribe(function(){h.add(m(),en()),f.notify()}),v.expireObservable.subscribe(function(){p.notify(),h.closeActive(en())}),v.expandOrRenewSession(),h.add(m(),ei().relative),r.observable.subscribe(function(){r.isGranted()?v.expandOrRenewSession():v.expire()}),o=ts(t,window,["click","touchstart","keydown","scroll"],function(){r.isGranted()&&v.expandOrRenewSession()},{capture:!0,passive:!0}).stop,iE.push(o),a=t,s=function(){return v.expandSession()},u=function(){"visible"===document.visibilityState&&s()},c=ta(a,document,"visibilitychange",u).stop,iE.push(c),l=tm(u,6e4),iE.push(function(){tg(l)}),d=ta(t,window,"resume",function(){return v.restartSession()},{capture:!0}).stop,iE.push(d),{findSession:function(t,e){return h.find(t,e)},renewObservable:f,expireObservable:p,sessionStateUpdateObservable:v.sessionStateUpdateObservable,expire:v.expire,updateSessionState:v.updateSessionState}}function iA(t){return"2"===t||"1"===t}function iR(t){var e=t.encoder,n=t.request,r=t.flushController,i=t.messageBytesLimit,o={},a=r.flushObservable.subscribe(function(t){return function(t){var r=Y(o).join("\n");o={};var i=tl(t.reason),a=i?n.sendOnExit:n.send;if(i&&e.isAsync){var s=e.finishSync();s.outputBytesCount&&a(iI(s));var u=[s.pendingData,r].filter(Boolean).join("\n");u&&a({data:u,bytesCount:tf(u)})}else r&&e.write(e.isEmpty?r:"\n".concat(r)),e.finish(function(t){a(iI(t))})}(t)});function s(t,n){var a,s,u=tb(t),c=e.estimateEncodedBytesCount(u);c>=i?N.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(i,"KB. ").concat(L," ").concat(M,"/#technical-limitations")):(void 0!==n&&void 0!==o[n]&&(a=o[n],delete o[n],s=e.estimateEncodedBytesCount(a),r.notifyAfterRemoveMessage(s)),r.notifyBeforeAddMessage(c),void 0!==n?(o[n]=u,r.notifyAfterAddMessage()):e.write(e.isEmpty?u:"\n".concat(u),function(t){r.notifyAfterAddMessage(t-c)}))}return{flushController:r,add:s,upsert:s,stop:a.unsubscribe}}function iI(t){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding}}t.s(["startSessionManager",0,iT],971983);var iN=3145728;function iO(t,e,n,r,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?iM(t,e,n,{onSuccess:function(){return iL(0,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),function t(e,n,r,i){2===e.transportStatus&&tv(function(){iM(e.queuedPayloads.first(),e,n,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=1e3,iL(1,e,
1n,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 iM(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,function(n){var r;e.bandwidthMonitor.remove(t),"opaque"!==(r=n).type&&(0===r.status&&!navigator.onLine||408===r.status||429===r.status||no(r.status))?(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 iL(t,e,n,r,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(iN/1048576,"MiB"),source:eP.AGENT,startClocks:er()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=iD();o.size()>0;)iO(o.dequeue(),e,n,r,i)}function iD(){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>=iN}}}function iP(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:iD(),queueFullReported:!1},i=function(n,r){var i,o,a,s;return i=t,o=e,a=n,s=r,void(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&a.bytesCount<o?fetch(i.build("fetch",a),{method:"POST",body:a.data,keepalive:!0,mode:"cors"}).then(V(function(t){return null==s?void 0:s({status:t.status,type:t.type})}),V(function(){iz(i.build("xhr",a),a.data,s)})):iz(i.build("xhr",a),a.data,s))};return{send:function(e){iO(e,r,i,t.trackType,n)},sendOnExit:function(n){!function(t,e,n){if(navigator.sendBeacon&&n.bytesCount<e)try{var r,i=t.build("beacon",n);if(navigator.sendBeacon(i,n.data))return}catch(t){r=t,iU||(iU=!0,eT(r))}iz(t.build("xhr",n),n.data)}(t,e,n)}}}var iU=!1;function iz(t,e,n){var r=new XMLHttpRequest;r.open("POST",t,!0),e instanceof Blob&&r.setRequestHeader("Content-Type",e.type),ta({allowUntrustedEvents:!0},r,"loadend",function(){null==n||n({status:r.status})},{once:!0}),r.send(e)}function iB(t,e,n,r,i,o,a){void 0===a&&(a=iR);var s=c(t,e),u=n&&c(t,n);function c(t,e){var n=e.endpoint,s=e.encoder;return a({encoder:s,request:iP(n,t.batchBytesLimit,r),flushController:function(t){var e,n=t.messagesLimit,r=t.bytesLimit,i=t.durationLimit,o=t.pageExitObservable,a=t.sessionExpireObservable,s=o.subscribe(function(t){return f(t.reason)}),u=a.subscribe(function(){return f("session_expire")}),c=new tr(function(){return function(){s.unsubscribe(),u.unsubscribe()}}),l=0,d=0;function f(t){if(0!==d){var e=d,n=l;d=0,l=0,p(),c.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){th(e),e=void 0}return{flushObservable:c,get messagesCount(){return d},notifyBeforeAddMessage:function(t){l+t>=r&&f("bytes_limit"),d+=1,l+=t,void 0===e&&(e=tv(function(){f("duration_limit")},i))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,d>=n?f("messages_limit"):l>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0==(d-=1)&&p()}}}({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),messageBytesLimit:t.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),s.add(t),u&&e&&u.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){s.upsert(t,e),u&&u.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){s.stop(),u&&u.stop()}}}function iV(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}t.s(["startBatchWithReplica",0,iB],396984);function iF(){0!==S.batchCount&&(eE("Customer data measures",S),iG())}function ij(){return{min:1/0,max:0,sum:0}}function iq(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function iH(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function iG(){S={batchCount:0,batchBytesCount:ij(),batchMessagesCount:ij(),globalContextBytes:ij(),userContextBytes:ij(),featureFlagBytes:ij()}}function iW(){C=!1,k={globalContextBytes:ij(),userContextBytes:ij(),featureFlagBytes:ij()}}function iK(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function iY(t,e,n){var r=t.vitalsByName,i=t.vitalsByReference;void 0===n&&(n={});var o={name:e,startClocks:er(),context:n.context,description:n.description},a={__dd_vital_reference:!0};return r.set(e,o),i.set(a,o),a}function iJ(t,e,n,r){var i,o,a,s,u,c=e.vitalsByName,l=e.vitalsByReference;void 0===r&&(r={});var d="string"==typeof n?c.get(n):l.get(n);d&&(t((i=d,o=d.startClocks,a=r,s=er(),{name:i.name,type:"duration",startClocks:o,duration:eo(o.timeStamp,s.timeStamp),context:ep(i.context,a.context),description:null!=(u=a.description)?u:i.description})),"string"==typeof n?c.delete(n):l.delete(n))}function iX(t,e){var n=eV(document.cookie,t),r=tm(function(){var r=eV(document.cookie,t);r!==n&&e(r)},1e3);return function(){tg(r)}}var i$="datadog-ci-visibility-test-execution-id";function iZ(){var t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write:function(n,r){var i=tf(n);e+=i,t+=n,r&&r(i)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}
1t.s(["createIdentityEncoder",0,iZ],377104);function iQ(t){void 0===t&&(t=2);var e=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==t){var i,o=2===t?3072:16384,a=r;e.forEach(function(t){a+=t.getBytesCount()}),a>o&&(i=o,N.warn("Customer data exceeds the recommended ".concat(i/1024,"KiB threshold. ").concat(L," ").concat(M,"/#customer-data-exceeds-the-recommended-threshold-warning")),n=!0)}}return{createDetachedTracker:function(){var t=i0(function(){return r(t.getBytesCount())});return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,i0(r)),e.get(t)},setCompressionStatus:function(e){0===t&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach(function(t){return t.stop()}),e.clear()}}}function i0(t){var e=0,n=ty(function(n){e=tf(tb(n)),t()},200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){tK(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}t.s(["createCustomerDataTrackerManager",0,iQ],698863);var i1=[];function i2(t,e,n,r){var i,o,a=(i=n,o=r,"".concat("_dd_c","_").concat(i,"_").concat(o));function s(){var t=localStorage.getItem(a);return null!==t?JSON.parse(t):{}}i1.push(ta(t,window,"storage",function(t){a===t.key&&e.setContext(s())})),e.changeObservable.subscribe(function(){localStorage.setItem(a,JSON.stringify(e.getContext()))}),e.setContext(ep(s(),e.getContext()))}function i3(t,e){e.silentMultipleInit||N.error("".concat(t," is already initialized."))}t.s(["storeContextManager",0,i2],544e3),t.s(["displayAlreadyInitializedError",0,i3],893092);var i5=["tracecontext","datadog"];function i6(){N.error("Error fetching the remote configuration.")}function i4(t){var e;return x||(x=new Map),x.has(t)?e=x.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},x.set(t,e),x.size>10&&function(){if(x)if(x.keys){var t=x.keys().next().value;t&&x.delete(t)}else{var e=!0;x.forEach(function(t,n){e&&(x.delete(n),e=!1)})}}()),e}var i8=new WeakMap;function i9(t){return i8.has(t)}function i7(t){return i8.get(t)}function ot(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 oe=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,on=/^[A-Za-z]+:|^\/\//,or=/^data:.*,/i,oi=/[^a-z1-6-_]/;function oo(t){var e=t.toLowerCase().trim();return oi.test(e)?"div":e}function oa(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(t,"' height='").concat(e,"' style='background-color:silver'%3E%3C/svg%3E")}function os(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 ou(t,e,n,r){if(e===rh.HIDDEN)return null;var i=t.getAttribute(n);if(e===rh.MASK&&n!==rm&&!rP.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return"***"}if("IMG"===o&&("src"===n||"srcset"===n)){if(t.naturalWidth>0)return oa(t.naturalWidth,t.naturalHeight);var a=t.getBoundingClientRect(),s=a.width,u=a.height;return s>0||u>0?oa(s,u):rg}if("SOURCE"===o&&("src"===n||"srcset"===n))return rg;if("A"===o&&"href"===n||i&&X(n,"data-")||"IFRAME"===o&&"srcdoc"===n)return"***"}return i&&"string"==typeof i&&nb(i)?nw(i):i}function oc(t){var e,n,r;if(!t)return null;try{e=t.rules||t.cssRules}catch(t){}return e?(n=Array.from(e,2===nC()?ol:od).join(""),r=t.href,n.replace(oe,function(t,e,n,i,o,a){var s=n||o||a;if(!r||!s||on.test(s)||or.test(s))return t;var u=e||i||"";return"url(".concat(u).concat(function(t,e){try{return e8(t,e).href}catch(e){return t}}(s,r)).concat(u,")")})):null}function ol(t){return"selectorText"in t&&t.selectorText.includes(":")?t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):od(t)}function od(t){return"styleSheet"in t&&oc(t.styleSheet)||t.cssText}function of(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return{type:0,childNodes:ov(n=t,e),adoptedStyleSheets:os(n.adoptedStyleSheets)};case t.DOCUMENT_FRAGMENT_NODE:return r=t,i=e,(o=rf(r))&&i.serializationContext.shadowRootsController.addShadowRoot(r),{type:11,childNodes:ov(r,i),isShadowRoot:o,adoptedStyleSheets:o?os(r.adoptedStyleSheets):void 0};case t.DOCUMENT_TYPE_NODE:return{type:1,name:(a=t).name,publicId:a.publicId,systemId:a.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r,i=oo(t.tagName),o="svg"===(n=t).tagName||n instanceof SVGElement||void 0,a=rb(rw(t),e.parentNodePrivacyLevel);if(a===rh.HIDDEN){var s=t.getBoundingClientRect(),u=s.width,c=s.height;return{type:2,tagName:i,attributes:((r={rr_width:"".concat(u,"px"),rr_height:"".concat(c,"px")}
1)[rm]="hidden",r),childNodes:[],isSVG:o}}if(a!==rh.IGNORE){var l=function(t,e,n){if(e===rh.HIDDEN)return{};for(var r,i,o,a={},s=oo(t.tagName),u=t.ownerDocument,c=0;c<t.attributes.length;c+=1){var l=t.attributes.item(c).name,d=ou(t,e,l,n.configuration);null!==d&&(a[l]=d)}if(t.value&&("textarea"===s||"select"===s||"option"===s||"input"===s)){var f=ot(t,e);void 0!==f&&(a.value=f)}if("option"===s&&e===rh.ALLOW&&t.selected&&(a.selected=t.selected),"link"===s){var p=Array.from(u.styleSheets).find(function(e){return e.href===t.href}),v=oc(p);v&&p&&(a._cssText=v)}if("style"===s&&t.sheet){var v=oc(t.sheet);v&&(a._cssText=v)}"input"===s&&("radio"===t.type||"checkbox"===t.type)&&(e===rh.ALLOW?a.checked=!!t.checked:rS(t,e)&&delete a.checked),("audio"===s||"video"===s)&&(a.rr_mediaState=t.paused?"paused":"played");var h=n.serializationContext;switch(h.status){case 0:i=Math.round(t.scrollTop),o=Math.round(t.scrollLeft),(i||o)&&h.elementsScrollPositions.set(t,{scrollTop:i,scrollLeft:o});break;case 1:h.elementsScrollPositions.has(t)&&(i=(r=h.elementsScrollPositions.get(t)).scrollTop,o=r.scrollLeft)}return o&&(a.rr_scrollLeft=o),i&&(a.rr_scrollTop=i),a}(t,a,e),d=[];(t.childNodes.length>0||rd(t))&&"style"!==i&&(d=ov(t,e.parentNodePrivacyLevel===a&&e.ignoreWhiteSpace===("head"===i)?e:Z({},e,{parentNodePrivacyLevel:a,ignoreWhiteSpace:"head"===i})));return{type:2,tagName:i,attributes:l,childNodes:d,isSVG:o}}}(t,e);case t.TEXT_NODE:var n,r,i,o,a,s=t,u=e,c=rC(s,u.ignoreWhiteSpace||!1,u.parentNodePrivacyLevel);if(void 0!==c)return{type:3,textContent:c};return;case t.CDATA_SECTION_NODE:return{type:4,textContent:""}}}(t,e);if(!n)return null;var r=i7(t)||op++;return n.id=r,i8.set(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),n}var op=1;function ov(t,e){var n=[];return rp(t,function(t){var r=of(t,e);r&&n.push(r)}),n}function oh(t){return!!t.changedTouches}function om(t){return!0===t.composed&&rd(t.target)?t.composedPath()[0]:t.target}var og=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualVie
1wportX: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},oy=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 o_(t,e){return{data:Z({source:t},e),type:3,timestamp:ee()}}function ob(t){var e=oh(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=og(n,r),o=i.visualViewportX,a=i.visualViewportY;n=o,r=a}if(!Number.isFinite(n)||!Number.isFinite(r)){t.isTrusted&&eE("mouse/touch event without x/y");return}return{x:n,y:r}}var ow=((E={}).pointerup=0,E.mousedown=1,E.click=2,E.contextmenu=3,E.dblclick=4,E.focus=5,E.blur=6,E.touchstart=7,E.touchend=9,E);function oS(t,e,n,r){void 0===r&&(r=document);var i=ty(function(r){var i=om(r);if(i&&r_(i,t.defaultPrivacyLevel)!==rh.HIDDEN&&i9(i)){var o=i7(i),a=i===document?{scrollTop:ib(),scrollLeft:i_()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),e(o_(3,{id:o,x:a.scrollLeft,y:a.scrollTop}))}},100),o=i.throttled,a=i.cancel,s=ta(t,r,"scroll",o,{capture:!0,passive:!0}).stop;return{stop:function(){s(),a()}}}function ok(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 oC(t,e,n){void 0===n&&(n=document);var r,i=t.defaultPrivacyLevel,o=new WeakMap,a=n!==document,s=ts(t,n,a?["change"]:["input","change"],function(t){var e=om(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)},{capture:!0,passive:!0}).stop;if(a)r=t_;else{var u=[eD(HTMLInputElement.prototype,"value",c),eD(HTMLInputElement.prototype,"checked",c),eD(HTMLSelectElement.prototype,"value",c),eD(HTMLTextAreaElement.prototype,"value",c),eD(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach(function(t){return t.stop()})}}return{stop:function(){r(),s()}};function c(t){var e,n=r_(t,i);if(n!==rh.HIDDEN){var r=t.type;if("radio"===r||"checkbox"===r){if(rS(t,n))return;e={isChecked:t.checked}}else{var o=ot(t,n);if(void 0===o)return;e={text:o}}l(t,e);var a=t.name;"radio"===r&&a&&t.checked&&K(document.querySelectorAll('input[type="radio"][name="'.concat(ro(a),'"]')),function(e){e!==t&&l(e,{isChecked:!1})})}}function l(t,n){if(i9(t)){var r=o.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(o.set(t,n),e(o_(5,Z({id:i7(t)},n))))}}}function ox(t,e,n,r){var i=eM();if(!i)return{stop:t_,flush:t_};var o=function(t){var e=t_,n=[];function r(){e(),t(n),n=[]}var i=ty(r,16,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(t){0===n.length&&(e=r8(o,{timeout:100})),n.push.apply(n,t)},flush:r,stop:function(){e(),a()}}}(function(r){var i,o,s,u,c,l,d,f,p,v,h,m;i=r.concat(a.takeRecords()),o=t,s=e,u=n,c=new Map,i.filter(function(t){return"childList"===t.type}).forEach(function(t){t.removedNodes.forEach(function(t){!function t(e,n){rd(e)&&n(e.shadowRoot),rp(e,function(e){return t(e,n)})}(t,u.removeShadowRoot)})}),f=(d=function(t,e,n,r){for(var i=new Set,o=new Map,a=function(t){t.addedNodes.forEach(function(t){i.add(t)}),t.removedNodes.forEach(function(e){i.has(e)||o.set(e,t.target),i.delete(e)})},s=0;s<t.length;s++)a(t[s]);var u=Array.from(i);u.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});for(var c=new Set,l=[],d=0;d<u.length;d++){var f=u[d];if(!g(f)){var p=r_(f.parentNode,e.defaultPrivacyLevel,r);if(p!==rh.HIDDEN&&p!==rh.IGNORE){var v=of(f,{serializedNodeIds:c,parentNodePrivacyLevel:p,serializationContext:{status:2,shadowRootsController:n},configuration:e});if(v){var h=rv(f);l.push({nextId:function(t){for(var e=t.nextSibling;e;){if(i9(e))return i7(e);e=e.nextSibling}return null}(f),parentId:i7(h),node:v})}}}}var m=[];return o.forEach(function(t,e){i9(e)&&m.push({parentId:i7(t),id:i7(e)})}),{adds:l,removes:m,hasBeenSerialized:g};function g(t){return i9(t)&&c.has(i7(t))}}((l=i.filter(function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!i9(e)&&!rf(e))return!1;e=rv(e)}return!0}(t.target)&&r_(t.target,s.defaultPrivacyLevel,c)!==rh.HIDDEN})).filter(function(t){return"childList"===t.type}),s,u,c)).adds,p=d.removes,v=d.hasBeenSerialized,h=function(t,e,n){for(var r,i=[],o=new Set,a=t.filter(function(t){return!o.has(t.target)&&(o.add(t.target),!0)}),s=0;s<a.length;s++){var u=a[s];if(u.target.textContent!==u.oldValue){var c=r_(rv(u.target),e.defaultPrivacyLevel,n);c!==rh.HIDDEN&&c!==rh.IGNORE&&i.push({id:i7(u.target),value:null!=(r=rC(u.target,!1,c))?r:null})}}return i}(l.filter(function(t){return"characterData"===t.type&&!v(t.target)}),s,c),m=function(t,e,n){for(var r=[],i=new Map,o=t.filter(function(t){var e=i.get(t.target);return!(e&&e.has(t.attributeName))&&(e?e.add(t.attributeName):i.set(t.target,new Set([t.attributeName])),!0)}),a=new Map,s=0;s<o.length;s++){var u=o[s];if(u.target.getAttribute(u.attributeName)!==u.oldValue){var c=r_(u.target,e.defaultPrivacyLevel,n),l=ou(u.target,c,u.attributeName,e),d=void 0;if("value"===u.attributeName){var f=ot(u.target,c);if(void 0===f)continue;d=f}else d="string"==typeof l?l:null;var p=a.get(u.target);p||(p={id:i7(u.target),attributes:{}},r.push(p),a.set(u.target,p)),p.attributes[u.attributeName]=d}}return r}(l.filter(function(t){return"attributes"===t.type&&!v(t.target)}),s,c),(h.length||m.length||p.length||f.length)&&o(o_(0,{adds:f,removes:p,texts:h,attributes:m}))}),a=new i(V(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()}}}var oE=function(t,e,n){var r=new Map,i={addShadowRoot:function(o){if
1(!r.has(o)){var a=ox(e,t,i,o),s=oC(t,e,o),u=oS(t,e,n,o);r.set(o,{flush:function(){return a.flush()},stop:function(){a.stop(),s.stop(),u.stop()}})}},removeShadowRoot:function(t){var e=r.get(t);e&&(e.stop(),r.delete(t))},stop:function(){r.forEach(function(t){return(0,t.stop)()})},flush:function(){r.forEach(function(t){return(0,t.flush)()})}};return i};function oT(t,e,n){var r,i=0,o=[],a=0,s=[],u=ta(t,e,"message",function(t){var e=t.data;if("wrote"===e.type&&e.streamId===n){i+=e.additionalBytesCount,o.push(e.result),r=e.trailer;var a=s.shift();a&&a.id===e.id?a.writeCallback?a.writeCallback(e.result.byteLength):a.finishCallback&&a.finishCallback():(u(),eE("Worker responses received out of order."))}}).stop;function c(){var t=0===o.length?new Uint8Array(0):tp(o.concat(r)),e={rawBytesCount:i,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return i=0,o=[],e}function l(){a>0&&(e.postMessage({action:"reset",streamId:n}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(t,r){e.postMessage({action:"write",id:a,data:t,streamId:n}),s.push({id:a,writeCallback:r,data:t}),a+=1},finish:function(t){l(),s.length?(s.forEach(function(t){delete t.writeCallback}),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map(function(t){return delete t.writeCallback,delete t.finishCallback,t.data}).join("");return Z(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}function oA(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),h=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]),l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},U=function(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=A(s[l]++,l))}},I=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;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},B=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},S=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&E(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!E(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},C=function(t,e,n){var r,i,l,_,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(l=f[i],x(t,l+a+1,e),0!==(_=s[l])&&(i-=c[l],z(t,i,_)),r--,l=y(r),x(t,l,n),0!==(_=h[l])&&(r-=v[l],z(t,r,_)))}while(o<t.last_lit);x(t,256,e)},D=function(t,e){var a,n,r,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,_=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<_;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;
vendor: 18,315 bytes, line 1
1)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,l&&(t.static_len-=h[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)S(t,s,a);r=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,S(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,h,l,_=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(_[2*r+1]!==s&&(t.opt_len+=(s-_[2*r+1])*_[2*r],_[2*r+1]=s),n--)}}(t,e),U(s,o,t.bl_count)},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},M=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{x(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),h--),x(t,16,t.bl_tree),z(t,h-3,2)):h<=10?(x(t,17,t.bl_tree),z(t,h-3,3)):(x(t,18,t.bl_tree),z(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},L=!1,T=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){B(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},H=function(t,e,n,r){var i,s,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),h=function(t){var e;for(j(t,t.dyn_ltree,t.l_desc.max_code),j(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?T(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),C(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*_[r]+1],3);M(t,t.dyn_ltree,e-1),M(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),C(t,t.dyn_ltree,t.dyn_dtree)),I(t),r&&B(t)},R={_tr_init:function(t){L||(!function(){var t,e,a,_,m,y=new Array(16);for(a=0,_=0;_<28;_++)for(c[_]=a,t=0;t<1<<s[_];t++)f[a++]=_;for(f[a-1]=_,m=0,_=0;_<16;_++)for(v[_]=m,t=0;t<1<<h[_];t++)u[m++]=_;for(m>>=7;_<r;_++)for(v[_]=m<<7,t=0;t<1<<h[_]-7;t++)u[256+m++]=_;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(U(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,h,0,r,i),w=new b(new Array(0),l,0,19,7)}(),L=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,I(t)},_tr_stored_block:T,_tr_flush_block:H,_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[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},K=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},N=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=N,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},q={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"},F=0,G=2,J=3,P=4,Q=0,V=1,W=-1,X=0,Y=8,Z=R._tr_init,$=R._tr_stored_block,tt=R._tr_flush_block,et=R._tr_tally,at=R._tr_align,nt=F,rt=1,it=J,st=P,ht=5,lt=Q,_t=V,ot=-2,dt=-3,ut=-5,ft=W,ct=1,pt=2,gt=3,wt=4,vt=X,bt=2,mt=Y,yt=258,kt=262,zt=103,xt=113,At=666,Ut=function(t,e){return t.msg=q[e],e},It=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Et=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},St=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Ct=function(t,e){tt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},jt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Mt=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-kt?t.strstart-(t.w_size-kt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+yt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=yt-(u-i),i=u-yt,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},Lt=function(t){var e,a,n,r,i,s,h,l,_,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-kt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=K(s.adler,h,o,l):2===s.state.wrap&&(s.adler=O(s.adler,h,o,l)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Et(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Et(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<kt&&0!==t.strm.avail_in)},Tt=function(t,e){for(var a,n;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a)),t.match_length>=3)if(n=et(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=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Et(t,t.ins_h,t.window[t.strstart+1]);else n=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,e){for(var a,n,r;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a),t.match_length<=5&&(t.strategy===ct||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=et(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=et(t,0,t.window[t.strstart-1]))&&Ct(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=et(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Kt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Lt(t),0===t.lookahead&&e===nt)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Ct(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-kt&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ct(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Tt),new Rt(4,5,16,8,Tt),new Rt(4,6,32,32,Tt),new Rt(4,4,16,16,Ht),new Rt(8,16,32,32,Ht),new Rt(8,16,128,128,Ht),new Rt(8,32,128,256,Ht),new Rt(32,128,258,1024,Ht),new Rt(32,258,258,4096,Ht)];function Nt(){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=mt,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),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(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),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ot=function(t){if(!t||!t.state)return Ut(t,ot);t.total_in=t.total_out=0,t.data_type=bt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:xt,t.adler=2===e.wrap?0:1,e.last_flush=nt,Z(e),lt},qt=function(t){var e,a=Ot(t);return a===lt&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Kt[e.level].max_lazy,e.good_match=Kt[e.level].good_length,e.nice_match=Kt[e.level].nice_length,e.max_chain_length=Kt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Ft=function(t,e,a,n,r,i){if(!t)return ot;var s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==mt||n<8||n>15||e<0||e>9||i<0||i>wt)return Ut(t,ot);8===n&&(n=9);var h=new Nt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,qt(t)},Gt={deflateInit:function(t,e){return Ft(t,e,mt,15,8,vt)},deflateInit2:Ft,deflateReset:qt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?ot:(t.state.gzhead=e,lt):ot},deflate:function(t,e){var a,n;if(!t||!t.state||e>ht||e<0)return t?Ut(t,ot):ot;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===At&&e!==st)return Ut(t,0===t.avail_out?ut:ot);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,3),r.status=xt);else{var s=mt+(r.w_bits-8<<4)<<8;s|=(r.strategy>=pt||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=xt,jt(r,s),0!==r.strstart&&(jt(r,t.adler>>>16),jt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=zt)}else r.status=zt;if(r.status===zt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&St(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=xt)):r.status=xt),0!==r.pending){if(St(t),0===t.avail_out)return r.last_flush=-1,lt}else if(0===t.avail_in&&It(e)<=It(i)&&e!==st)return Ut(t,ut);if(r.status===At&&0!==t.avail_in)return Ut(t,ut);if(0!==t.avail_in||0!==r.lookahead||e!==nt&&r.status!==At){var h=r.strategy===pt?function(t,e){for(var a;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===nt)return 1;break}if(t.match_length=0,a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===gt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=yt){if(Lt(t),t.lookahead<=yt&&e===nt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+yt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=yt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=et(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):Kt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=At),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),lt;if(2===h&&(e===rt?at(r):e!==ht&&($(r,0,0,!1),e===it&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),St(t),0===t.avail_out))return r.last_flush=-1,lt}return e!==st?lt:r.wrap<=0?_t:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(jt(r,t.adler>>>16),jt(r,65535&t.adler)),St(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?lt:_t)},deflateEnd:function(t){if(!t||!t.state)return ot;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==zt&&e!==xt&&e!==At?Ut(t,ot):(t.state=null,e===xt?Ut(t,dt):lt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return ot;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return ot;if(1===r&&(t.adler=K(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Et(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,lt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Jt=new Uint8Array(256),Pt=0;Pt<256;Pt++)Jt[Pt]=Pt>=252?6:Pt>=248?5:Pt>=240?4:Pt>=224?3:Pt>=192?2:1;Jt[254]=Jt[254]=1;var Qt=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},Vt=Object.prototype.toString,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X,ne=Y;function re(){this.options={level:ee,method:ne,chunkSize:16384,windowBits:15,memLevel:8,strategy:ae};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;var e=Gt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==$t)throw new Error(q[e]);if(t.header&&Gt.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Vt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Gt.deflateSetDictionary(this.strm,a))!==$t)throw new Error(q[e]);this._dict_set=!0}}function ie(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function se(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}re.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Zt:Wt,"[object ArrayBuffer]"===Vt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Xt||n===Yt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Gt.deflate(r,n))===te)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Gt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===$t;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},re.prototype.onData=function(t){this.chunks.push(t)},re.prototype.onEnd=function(t){t===$t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.35.1"};case"write":var n=e.get(a.streamId);n||(n=new re,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,G),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:se(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){ie(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){ie(e,t)}}()}();'])))}var oR={status:0};function oI(t,e,n,r){switch(void 0===r&&(r=oA),0===oR.status&&function(t,e,n){void 0===n&&(n=oA);try{var r=n(t),i=ta(t,r,"error",function(n){oN(t,e,n)}).stop,o=ta(t,r,"message",function(n){var r,i=n.data;
1"errored"===i.type?oN(t,e,i.error,i.streamId):"initialized"===i.type&&(r=i.version,1===oR.status&&(oR={status:3,worker:oR.worker,stop:oR.stop,version:r}))}).stop;r.postMessage({action:"init"}),tv(function(){var t;return t=e,void(1===oR.status&&(N.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),oR.initializationFailureCallbacks.forEach(function(t){return t()}),oR={status:2}))},3e4),oR={status:1,worker:r,stop:function(){i(),o()},initializationFailureCallbacks:[]}}catch(n){oN(t,e,n)}}(t,e,r),oR.status){case 1:return oR.initializationFailureCallbacks.push(n),oR.worker;case 3:return oR.worker}}function oN(t,e,n,r){if(1===oR.status||0===oR.status){var i;if(N.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(q(i=n.message,"Content Security Policy")||q(i,"requires 'TrustedScriptURL'"))){var o=void 0;o=t.workerUrl?"Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",N.error("".concat(o," See documentation at ").concat(O,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else eT(n);1===oR.status&&oR.initializationFailureCallbacks.forEach(function(t){return t()}),oR={status:2}}else eT(n,{worker_version:3===oR.status&&oR.version,stream_id:r})}function oO(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}var oM=function(t,e,n){void 0===n&&(n={});var r=iQ(0),o=ic(r.getOrCreateTracker(2)),a=ic(r.getOrCreateTracker(1)),s=nW(),u={vitalsByName:new Map,vitalsByReference:new WeakMap};function c(){return{context:o.getContext(),user:a.getContext(),hasReplay:!!e.isRecording()||void 0}}var l=function(t,e,n,r,o){var a,s,u,c,l=t.ignoreInitIfSyntheticsWillInjectRum,d=t.startDeflateWorker,f=em(),p=n.observable.subscribe(v);function v(){if(u&&c&&n.isGranted()){if(p.unsubscribe(),c.trackViewsManually){if(!a)return;f.remove(a.callback),t=a.options}var t,e=o(c,s,t);f.drain(e)}}function h(t){var e,r,i,o,a,l,f,p=eO();if(p&&(t=Z({},e=t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!=(r=e.defaultPrivacyLevel)?r:null==(i=eI())?void 0:i.getPrivacyLevel()})),u=t,eA((l=nZ(o=t),Z({session_replay_sample_rate:o.sessionReplaySampleRate,start_session_replay_recording_manually:o.startSessionReplayRecordingManually,trace_sample_rate:o.traceSampleRate,trace_context_injection:o.traceContextInjection,action_name_attribute:o.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(o.allowedTracingUrls)&&o.allowedTracingUrls.length>0,selected_tracing_propagators:(f=new Set,Array.isArray(o.allowedTracingUrls)&&o.allowedTracingUrls.length>0&&o.allowedTracingUrls.forEach(function(t){nS(t)?i5.forEach(function(t){return f.add(t)}):"object"===el(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach(function(t){return f.add(t)})}),H(f)),default_privacy_level:o.defaultPrivacyLevel,enable_privacy_for_action_name:o.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(o.excludedActivityUrls)&&o.excludedActivityUrls.length>0,use_worker_url:!!o.workerUrl,compress_intake_requests:o.compressIntakeRequests,track_views_manually:o.trackViewsManually,track_user_interactions:o.trackUserInteractions,track_resources:o.trackResources,track_long_task:o.trackLongTasks,plugins:null==(a=o.plugins)?void 0:a.map(function(t){var e;return Z({name:t.name},null==(e=t.getConfigurationTelemetry)?void 0:e.call(t))})},l))),c)return void i3("DD_RUM",t);var h=function(t){if(!t.applicationId)return void N.error("Application ID is not configured, no RUM data will be collected.");if(nX(t.sessionReplaySampleRate,"Session Replay")&&nX(t.traceSampleRate,"Trace")){if(void 0!==t.excludedActivityUrls&&!Array.isArray(t.excludedActivityUrls))return void N.error("Excluded Activity Urls should be an array");var e,n,r,i=function(t){if(void 0===t.allowedTracingUrls)return[];if(!Array.isArray(t.allowedTracingUrls))return void N.error("Allowed Tracing URLs should be an array");if(0!==t.allowedTracingUrls.length&&void 0===t.service)return void N.error("Service needs to be configured when tracing is enabled");var e=[];
1return t.allowedTracingUrls.forEach(function(t){if(nS(t))e.push({match:t,propagatorTypes:i5});else"object"===el(t)&&nS(t.match)&&Array.isArray(t.propagatorTypes)?e.push(t):N.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)}),e}(t);if(i){var o=n$(t);if(o){var a=null!=(e=t.sessionReplaySampleRate)?e:0;return Z({applicationId:t.applicationId,version:t.version||void 0,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:a,startSessionReplayRecordingManually:void 0!==t.startSessionReplayRecordingManually?!!t.startSessionReplayRecordingManually:0===a,traceSampleRate:null!=(n=t.traceSampleRate)?n:100,rulePsr:t6(t.traceSampleRate)?t.traceSampleRate/100:void 0,allowedTracingUrls:i,excludedActivityUrls:null!=(r=t.excludedActivityUrls)?r:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:tW(nK,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:nK.MASK,enablePrivacyForActionName:!!t.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:tW(nY,t.traceContextInjection)?t.traceContextInjection:nY.ALL,plugins:t.plugins||[]},o)}}}}(t);if(h){if(!p&&!h.sessionStoreStrategyType)return void N.warn("No storage available for session. We will not send any data.");if(h.compressIntakeRequests&&!p&&d&&!(s=d(h,"Datadog RUM",t_)))return;c=h,e7().subscribe(t_),n.tryToInit(h.trackingConsent),v()}}var m=function(t){f.add(function(e){return e.addDurationVital(t)})};return{init:function(t,e){if(!t)return void N.error("Missing configuration");if(tX(t.enableExperimentalFeatures),u=t,!(l&&eG()))if(!function(t,e,n){if(t)for(var r=0;r<t.length;r++){var i=t[r][e];i&&i(n)}}(t.plugins,"onInit",{initConfiguration:t,publicApi:e}),t.remoteConfigurationId&&t$(i.REMOTE_CONFIGURATION)){var n,r,o;n=t,r=function(e){h(Z({},t,e))},ta(n,o=new XMLHttpRequest,"load",function(){200===o.status?r(JSON.parse(o.responseText)):i6()}),ta(n,o,"error",function(){i6()}),o.open("GET","".concat("https://d3uc069fcn7uxw.cloudfront.net/configuration","/").concat(encodeURIComponent(n.remoteConfigurationId),".json")),o.send()}else h(t)},get initConfiguration(){return u},getInternalContext:t_,stopSession:t_,addTiming:function(t,e){void 0===e&&(e=ee()),f.add(function(n){return n.addTiming(t,e)})},startView:function(t,e){void 0===e&&(e=er());var n=function(n){n.startView(t,e)};f.add(n),a||(a={options:t,callback:n},v())},setViewName:function(t){f.add(function(e){return e.setViewName(t)})},setViewContext:function(t){f.add(function(e){return e.setViewContext(t)})},setViewContextProperty:function(t,e){f.add(function(n){return n.setViewContextProperty(t,e)})},addAction:function(t,n){void 0===n&&(n=e()),f.add(function(e){return e.addAction(t,n)})},addError:function(t,n){void 0===n&&(n=e()),f.add(function(e){return e.addError(t,n)})},addFeatureFlagEvaluation:function(t,e){f.add(function(n){return n.addFeatureFlagEvaluation(t,e)})},startDurationVital:function(t,e){return iY(r,t,e)},stopDurationVital:function(t,e){iJ(m,r,t,e)},addDurationVital:m}}(n,c,s,u,function(i,d,f){i.storeContextsAcrossPages&&(i2(i,o,"rum",2),i2(i,a,"rum",1)),r.setCompressionStatus(d?1:2);var p,v,h=t(i,e,r,c,f,d&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(i,d,t)}:iZ,s,u);return e.onRumStart(h.lifeCycle,i,h.session,h.viewHistory,d),p=l,v=h,l=Z({init:function(t){i3("DD_RUM",t)},initConfiguration:p.initConfiguration},v),h}),d=V(function(t){var e="object"==typeof t?t:{name:t};e.context&&r.getOrCreateTracker(3).updateCustomerData(e.context),l.startView(e),eR({feature:"start-view"})}),f=Q({init:V(function(t){l.init(t,f)}),setTrackingConsent:V(function(t){s.update(t),eR({feature:"set-tracking-consent",tracking_consent:t})}),setViewName:V(function(t){l.setViewName(t)}),setViewContext:V(function(t){l.setViewContext(t)}),setViewContextProperty:V(function(t,e){l.setViewContextProperty(t,e)}),setGlobalContext:V(function(t){o.setContext(t),eR({feature:"set-global-context"})}),getGlobalContext:V(function(){return o.getContext()}),setGlobalContextProperty:V(function(t,e){o.setContextProperty(t,e),eR({feature:"set-global-context"})}),removeGlobalContextProperty:V(function(t){return o.removeContextProperty(t)}),clearGlobalContext:V(function(){return o.clearContext()}),getInternalContext:V(function(t){return l.getInternalContext(t)}
1),getInitConfiguration:V(function(){return ef(l.initConfiguration)}),addAction:function(t,e){var n=tU();F(function(){l.addAction({name:tS(t),context:tS(e),startClocks:er(),type:"custom",handlingStack:n}),eR({feature:"add-action"})})},addError:function(t,e){var n=tU();F(function(){l.addError({error:t,handlingStack:n,context:tS(e),startClocks:er()}),eR({feature:"add-error"})})},addTiming:V(function(t,e){l.addTiming(tS(t),e)}),setUser:V(function(t){nT(t)&&a.setContext(nE(t)),eR({feature:"set-user"})}),getUser:V(function(){return a.getContext()}),setUserProperty:V(function(t,e){var n,r=nE(((n={})[t]=e,n))[t];a.setContextProperty(t,r),eR({feature:"set-user"})}),removeUserProperty:V(function(t){return a.removeContextProperty(t)}),clearUser:V(function(){return a.clearContext()}),startView:d,stopSession:V(function(){l.stopSession(),eR({feature:"stop-session"})}),addFeatureFlagEvaluation:V(function(t,e){l.addFeatureFlagEvaluation(tS(t),tS(e)),eR({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:V(function(){return e.getSessionReplayLink()}),startSessionReplayRecording:V(function(t){e.start(t),eR({feature:"start-session-replay-recording",force:t&&t.force})}),stopSessionReplayRecording:V(function(){return e.stop()}),addDurationVital:V(function(t,e){eR({feature:"add-duration-vital"}),l.addDurationVital({name:tS(t),type:"duration",startClocks:t8(e.startTime),duration:e.duration,context:tS(e&&e.context),description:tS(e&&e.description)})}),startDurationVital:V(function(t,e){return eR({feature:"start-duration-vital"}),l.startDurationVital(tS(t),{context:tS(e&&e.context),description:tS(e&&e.description)})}),stopDurationVital:V(function(t,e){eR({feature:"stop-duration-vital"}),l.stopDurationVital("string"==typeof t?tS(t):t,{context:tS(e&&e.context),description:tS(e&&e.description)})})});return f}(function(t,e,n,r,o,a,s,c){var l,d,f,p,v,m,g,y,_,w,x,E,A=[],R=new eQ;R.subscribe(13,function(t){return tn("rum",t)});var I=function(t){var e=ek("browser-rum-sdk",t);if(eO()){var n=eI();e.observable.subscribe(function(t){return n.send("internal_telemetry",t)})}return e}(t);I.setContextProvider(function(){var e,n;return{application:{id:t.applicationId},session:{id:null==(e=P.findTrackedSession())?void 0:e.id},view:{id:null==(n=tp.findView())?void 0:n.id},action:{id:tw.findActionId()}}});var O=function(t){R.notify(14,{error:t}),eE("Error reported to customer",{"error.message":t.message})},M=(U=n.getOrCreateTracker(0),z=e6({expireDelay:e0}),R.subscribe(1,function(t){var e=t.startClocks;z.add({},e.relative),U.resetCustomerData()}),R.subscribe(6,function(t){var e=t.endClocks;z.closeActive(e.relative)}),{findFeatureFlagEvaluations:function(t){return z.find(t)},addFeatureFlagEvaluation:function(t,e){var n=z.find();n&&(n[t]=e,U.updateCustomerData(n))},stop:function(){return U.stop()}}),L=tc(t),D=L.subscribe(function(t){R.notify(11,t)});A.push(function(){return D.unsubscribe()});var P=eO()?(B={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:+!!eN("records")},{findTrackedSession:function(){return B},expire:t_,expireObservable:new tr,setForcedReplay:t_}):((F=iT(t,"rum",function(e){var n,r,i,o;return n=t,{trackingType:i="0"===(o=r=e)||"1"===o||"2"===o?r:t2(n.sessionSampleRate)?t2(n.sessionReplaySampleRate)?"1":"2":"0",isTracked:iA(i)}},s)).expireObservable.subscribe(function(){R.notify(9)}),F.renewObservable.subscribe(function(){R.notify(10)}),F.sessionStateUpdateObservable.subscribe(function(t){var e=t.previousState,n=t.newState;if(!e.forcedReplay&&n.forcedReplay){var r=F.findSession();r&&(r.isReplayForced=!0)}}),{findTrackedSession:function(t){var e=F.findSession(t);if(e&&iA(e.trackingType))return{id:e.id,sessionReplay:"1"===e.trackingType?1:2*!!e.isReplayForced,anonymousId:e.anonymousId}},expire:F.expire,expireObservable:F.expireObservable,setForcedReplay:function(){return F.updateSessionState({forcedReplay:"1"})}});if(eO())j=eI(),R.subscribe(13,function(t){j.send("rum",t)});else{var U,z,B,F,j,H,K,Y,X,$,Q=(H=I.observable,K=P.expireObservable,Y=t.replica,X=iB(t,{endpoint:t.rumEndpointBuilder,encoder:a(2)},Y&&{endpoint:Y.rumEndpointBuilder,transformMessage:function(t){return ep(t,{application:{id:Y.applicationId}})},encoder:a(3)}
1,O,L,K),R.subscribe(13,function(t){"view"===t.type?X.upsert(t,t.view.id):X.add(t)}),H.subscribe(function(e){return X.add(e,ex(t))}),X);A.push(function(){return Q.stop()}),$=Q.flushObservable,I.enabled&&t2(t.customerDataTelemetrySampleRate)&&(iG(),iW(),R.subscribe(13,function(t){C=!0,iq(k.globalContextBytes,n.getOrCreateTracker(2).getBytesCount()),iq(k.userContextBytes,n.getOrCreateTracker(1).getBytesCount()),iq(k.featureFlagBytes,q(["view","error"],t.type)?n.getOrCreateTracker(0).getBytesCount():0)}),$.subscribe(function(t){var e=t.bytesCount,n=t.messagesCount;C&&(S.batchCount+=1,iq(S.batchBytesCount,e),iq(S.batchMessagesCount,n),iH(S.globalContextBytes,k.globalContextBytes),iH(S.userContextBytes,k.userContextBytes),iH(S.featureFlagBytes,k.featureFlagBytes),iW())}),tm(iF,1e4))}var tt=(tL=eM(),new tr(function(t){if(tL){var e=new tL(V(function(){return t.notify()}));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}})),te=(tP=tG(tD=location),new tr(function(e){var n,r,i,o,a,s=(n=t,r=c,i=eL(iV("pushState"),"pushState",function(t){(0,t.onPostCall)(r)}).stop,o=eL(iV("replaceState"),"replaceState",function(t){(0,t.onPostCall)(r)}).stop,a=ta(n,window,"popstate",r).stop,{stop:function(){i(),o(),a()}}).stop,u=ta(t,window,"hashchange",c).stop;function c(){if(tP.href!==tD.href){var t=tG(tD);e.notify({newLocation:t,oldLocation:tP}),tP=t}}return function(){s(),u()}})),ti=function(t,e){void 0===e&&(e=500);var n,r=e6({expireDelay:e0,maxEntries:4e3});o(iK(),en());var i=ts(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(t){var e;o("freeze"===(e=t).type?"frozen":"pagehide"===e.type?e.persisted?"frozen":"terminated":iK(),t.timeStamp)},{capture:!0}).stop;function o(t,e){void 0===e&&(e=en()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}var a={findAll:function(t,n){var i=r.findAll(t,n);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-e),s=i.length-1;s>=a;s--){var u=i[s],c=eo(t,u.startTime);o.push({state:u.state,start:t7(c)})}return o}},wasInPageStateAt:function(t,e){return a.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,n){return r.findAll(e,n).some(function(e){return e.state===t})},addPageState:o,stop:function(){i(),r.stop()}};return a}(t),to=(tU=new tr,tz=eL(window,"open",function(){return tU.notify()}).stop,{observable:tU,stop:tz}),tl=to.observable,td=to.stop;A.push(td);var tf=function(t,e,n,r,o,a,s,c,l,d){var f,p,v,h,m,g,y,_,b,w,S,k,C,x,E,T,A,R,I=(p=e6({expireDelay:e0}),t.subscribe(1,function(t){var e;p.add({service:(e=t).service,version:e.version,context:e.context,id:e.id,name:e.name,startClocks:e.startClocks},t.startClocks.relative)}),t.subscribe(6,function(t){var e=t.endClocks;p.closeActive(e.relative)}),t.subscribe(3,function(t){var e=p.find(t.startClocks.relative);e&&t.name&&(e.name=t.name),e&&t.context&&(e.context=t.context)}),t.subscribe(10,function(){p.reset()}),{findView:function(t){return p.find(t)},stop:function(){p.stop()}}),O=function(t,e,n){var r,i=e6({expireDelay:e0});t.subscribe(1,function(t){var e=t.startClocks,o=n.href;i.add(a({url:o,referrer:r||document.referrer}),e.relative),r=o}),t.subscribe(6,function(t){var e=t.endClocks;i.closeActive(e.relative)});var o=e.subscribe(function(t){var e=t.newLocation,n=i.find();if(n){var r=en();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,a,n),M=(t.subscribe(0,function(e){return t.notify(12,rZ(e,o))}),h={findActionId:t_},m=t_,e.trackUserInteractions&&(h=(v=function(t,e,n,r){var i,o,a,s,u,c,l,d,f=e6({expireDelay:r$}),p=new tr;t.subscribe(10,function(){f.reset()}),t.subscribe(5,m);var v=(s=(i={onPointerDown:function(i){var o=r,a=t,s=e,u=i,c=n,l=o.enablePrivacyForActionName?r_(u.target,o.defaultPrivacyLevel):rh.ALLOW;if(l!==rh.HIDDEN){var d,f=function(t,e,n){var r,i,o,a,s=t.target.getBoundingClientRect(),u=rB(t.target,n.actionNameAttribute);u&&rX(t.timeStamp,u);
1var c=(r=t.target,i=n.enablePrivacyForActionName,o=n.actionNameAttribute,(a=rT(r,rE)||o&&rT(r,o))?{name:a,nameSource:"custom_attribute"}:e===rh.MASK?{name:"Masked Element",nameSource:"mask_placeholder"}:rI(r,o,rA,i)||rI(r,o,rR,i)||{name:"",nameSource:"blank"});return{type:"click",target:{width:Math.round(s.width),height:Math.round(s.height),selector:u},position:{x:Math.round(t.clientX-s.left),y:Math.round(t.clientY-s.top)},name:c.name,nameSource:c.nameSource}}(u,l,o),p=!1;return d=function(t){p=t.hadActivity},rn(rr(a,s,c,o),d,100),{clickActionBase:f,hadActivityOnPointerDown:function(){return p}}}},onPointerUp:function(i,o,a){!function(t,e,n,r,i,o,a,s,u,c,l){var d,f,p=function t(e,n,r,i,o){var a,s=ez(),u=er(),c=n.add(s,u.relative),l=n7({lifeCycle:e,isChildEvent:function(t){return void 0!==t.action&&(Array.isArray(t.action.id)?q(t.action.id,s):t.action.id===s)}}),d=0,f=[],p=new tr;function v(t){0===d&&(d=1,(a=t)?c.close(es(a)):c.remove(),l.stop(),p.notify())}return{event:o,stop:v,stopObservable:p,get hasError(){return l.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==a},getUserActivity:r,addFrustration:function(t){f.push(t)},startClocks:u,isStopped:function(){return 1===d||2===d},clone:function(){return t(e,n,r,i,o)},validate:function(t){if(v(),1===d){var n=l.eventCounts,r=n.resourceCount,c=n.errorCount,p=n.longTaskCount,h=Z({type:"click",duration:a&&eo(u.timeStamp,a),startClocks:u,id:s,frustrationTypes:f,counts:{resourceCount:r,errorCount:c,longTaskCount:p},events:null!=t?t:[o],event:o},i);e.notify(0,h),d=2}},discard:function(){v(),d=2}}}(e,i,c,s,u);a(p);var v=null==(f=null==s?void 0:s.target)?void 0:f.selector;v&&rX(u.timeStamp,v);var h=(d=function(t){t.hadActivity&&t.end<p.startClocks.timeStamp?p.discard():t.hadActivity?p.stop(t.end):l()?p.stop(p.startClocks.timeStamp):p.stop()},rn(rr(e,n,r,t),d,1e4)).stop,m=e.subscribe(5,function(t){var e=t.endClocks;p.stop(e.timeStamp)}),g=o.subscribe(function(){p.stop()});p.stopObservable.subscribe(function(){m.unsubscribe(),h(),g.unsubscribe()})}(r,t,e,n,f,p,h,i.clickActionBase,o,a,i.hadActivityOnPointerDown)}}).onPointerDown,u=i.onPointerUp,c={selection:!1,input:!1,scroll:!1},l=[ta(r,window,"pointerdown",function(t){rK(t)&&(o=rW(),c={selection:!1,input:!1,scroll:!1},a=s(t))},{capture:!0}),ta(r,window,"selectionchange",function(){o&&rW()||(c.selection=!0)},{capture:!0}),ta(r,window,"scroll",function(){c.scroll=!0},{capture:!0,passive:!0}),ta(r,window,"pointerup",function(t){if(rK(t)&&a){var e=c;u(a,t,function(){return e}),a=void 0}},{capture:!0}),ta(r,window,"input",function(){c.input=!0},{capture:!0})],{stop:function(){l.forEach(function(t){return t.stop()})}}).stop;return{stop:function(){m(),p.notify(),v()},actionContexts:{findActionId:function(t){return f.findAll(t)}}};function h(t){if(!d||!d.tryAppend(t)){var e=t.clone();d=function(t,e){var n,r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),th(n),n=tv(s,1e3)}function a(){1===i&&r.every(function(t){return t.isStopped()})&&(i=2,e(r))}function s(){th(n),0===i&&(i=1,a())}return o(t),{tryAppend:function(t){var e,n,a,u;return 0===i&&(!(r.length>0)||(e=r[r.length-1].event,n=t.event,e.target===n.target&&100>=(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2)))&&e.timeStamp-n.timeStamp<=1e3)?(o(t),!0):(s(),!1))},stop:function(){s()}}}(t,function(t){var n,r;(function(t,e){if(function(t){if(t.some(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll}))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(rY)&&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"),rY(t)&&!n&&t.addFrustration("dead_click")}),{isRage:!1}})(n=t,r=e).isRage?(n.forEach(function(t){return t.discard()}),r.stop(ee()),r.validate(n.map(function(t){return t.event}))):(r.discard(),n.forEach(function(t){return t.validate()}))})}}function m(){d&&d.stop()}}(t,s,c,e)).actionContexts,m=v.stop),{addAction:function(e,n){t.notify(12,Z({savedCommonContext:n},rZ(e,o)))},actionContexts:h,stop:m}),L=(t$(i.DELAY_VIEWPORT_COLLECTION)?y=requestAnimationFrame(function(){g=iS()}):g=iS(),_=iw(e).subscribe(function(t){g=t}).unsubscribe,{get:function(){return g?{viewport:g}:void 0},stop:function(){_(),y&&cancelAnimationFrame(y)}}),D=(void 0===b&&(w=window.cookieStore?(f=e,function(t,e){return ta(f,window.cookieStore,"change",function(n){var r=G(n.changed,function(e){return e.name===t})||G(n.deleted,function(e){return e.name===t});r&&e(r.value)}).stop}):iX,b=new tr(function(t){return w(i$,function(e){return t.notify(e)})})),k=eH(i$)||(null==(S=window.Cypress)?void 0:S.env("traceId")),C=b.subscribe(function(t){k=t}),{get:function(){if("string"==typeof k)return{test_execution_id:k}},stop:function(){return C.unsubscribe()}});return x=M.actionContexts,(E={}).view=Z({},e$,eX),E.error=Z({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},e$,eX,eZ),E.resource=Z({"resource.url":"string"},t$(i.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},e$,eX,eZ),E.action=Z({"action.target.name":"string"},e$,eX,eZ),E.long_task=Z({},e$,eX),E.vital=Z({},e$,eX),u=E,(T={}).error=eU("error",e.eventRateLimiterThreshold,d),T.action=eU("action",e.eventRateLimiterThreshold,d),T.vital=eU("vital",e.eventRateLimiterThreshold,d),A=T,R=function(){var t=eW(),e=eK();if(t&&e)return{test_id:t,result_id:e,injected:eG()}}(),t.subscribe(12,function(n){var o=n.startTime,a=n.rawRumEvent,s=n.domainContext,c=n.savedCommonContext,d=n.customerContext,f
1=I.findView(o),p=O.findUrl(o),v=r.findTrackedSession(o);if(v&&f&&p){var h=c||l(),m=x.findActionId(o),g=ep({_dd:{format_version:2,drift:t9(),configuration:{session_sample_rate:t3(e.sessionSampleRate,3),session_replay_sample_rate:t3(e.sessionReplaySampleRate,3)},browser_sdk_version:eO()?"5.35.1":void 0},application:{id:e.applicationId},date:ee(),service:f.service||e.service,version:f.version||e.version,source:"browser",session:{id:v.id,type:R?"synthetics":D.get()?"ci_test":"user"},view:{id:f.id,name:f.name,url:p.url,referrer:p.referrer},action:-1!==["error","resource","long_task"].indexOf(a.type)&&m?{id:m}:void 0,synthetics:R,ci_test:D.get(),display:L.get(),connectivity:ev()},a);g.context=ep(h.context,f.context,d),"has_replay"in g.session||(g.session.has_replay=h.hasReplay),"view"===g.type&&(g.session.sampled_for_replay=1===v.sessionReplay),t$(i.ANONYMOUS_USER_TRACKING)&&!h.user.anonymous_id&&(h.user.anonymous_id=v.anonymousId),tK(h.user)||(g.usr=h.user),function(t,e,n,r){if(e){var i,o,a,s,c=(i=u[t.type],a=e(o=ef(t),n),J(i).forEach(function(e){var n=e[0],r=e[1],i=function(t,e){for(var n=t,r=0,i=e.split(".");r<i.length;r++){var o,a,s=i[r];if(o=n,a=s,!(eJ(o)&&Object.prototype.hasOwnProperty.call(o,a)))return;n=n[s]}return n}(o,n),a=el(i);a===r?eY(t,n,tS(i)):"object"===r&&("undefined"===a||"null"===a)&&eY(t,n,{})}),a);if(!1===c&&"view"!==t.type)return!1;!1===c&&N.warn("Can't dismiss view events using beforeSend!")}return!(null==(s=r[t.type])?void 0:s.isLimitReached())}(g,e.beforeSend,s,A)&&(tK(g.context)&&delete g.context,t.notify(13,g))}}),{viewHistory:I,pageStateHistory:o,urlContexts:O,addAction:M.addAction,actionContexts:M.actionContexts,stop:function(){M.stop(),D.stop(),L.stop(),O.stop(),I.stop(),o.stop()}}}(R,t,location,P,ti,te,tt,tl,r,O),tp=tf.viewHistory,tb=tf.urlContexts,tw=tf.actionContexts,tk=tf.addAction,tC=tf.stop;A.push(tC),eC();var tE=(tB=location,R.subscribe(4,function(n){var r,i,o,a,s,u,c,l,d,f,p,v,h,m,g,y,_,b,w,S,k,C,x,E,T;return R.notify(12,(r=n,i=t,o=M,a=e,s=ti,C=a.getReplayStats(r.id),x=o.findFeatureFlagEvaluations(r.startClocks.relative),E=s.findAll(r.startClocks.relative,r.duration),T={_dd:{document_version:r.documentVersion,replay_stats:C,page_states:E,configuration:{start_session_replay_recording_manually:i.startSessionReplayRecordingManually}},date:r.startClocks.timeStamp,type:"view",view:{action:{count:r.eventCounts.actionCount},frustration:{count:r.eventCounts.frustrationCount},cumulative_layout_shift:null==(u=r.commonViewMetrics.cumulativeLayoutShift)?void 0:u.value,cumulative_layout_shift_time:t7(null==(c=r.commonViewMetrics.cumulativeLayoutShift)?void 0:c.time),cumulative_layout_shift_target_selector:null==(l=r.commonViewMetrics.cumulativeLayoutShift)?void 0:l.targetSelector,first_byte:t7(null==(d=r.initialViewMetrics.navigationTimings)?void 0:d.firstByte),dom_complete:t7(null==(f=r.initialViewMetrics.navigationTimings)?void 0:f.domComplete),dom_content_loaded:t7(null==(p=r.initialViewMetrics.navigationTimings)?void 0:p.domContentLoaded),dom_interactive:t7(null==(v=r.initialViewMetrics.navigationTimings)?void 0:v.domInteractive),error:{count:r.eventCounts.errorCount},first_contentful_paint:t7(r.initialViewMetrics.firstContentfulPaint),first_input_delay:t7(null==(h=r.initialViewMetrics.firstInput)?void 0:h.delay),first_input_time:t7(null==(m=r.initialViewMetrics.firstInput)?void 0:m.time),first_input_target_selector:null==(g=r.initialViewMetrics.firstInput)?void 0:g.targetSelector,interaction_to_next_paint:t7(null==(y=r.commonViewMetrics.interactionToNextPaint)?void 0:y.value),interaction_to_next_paint_time:t7(null==(_=r.commonViewMetrics.interactionToNextPaint)?void 0:_.time),interaction_to_next_paint_target_selector:null==(b=r.commonViewMetrics.interactionToNextPaint)?void 0:b.targetSelector,is_active:r.isActive,name:r.name,largest_contentful_paint:t7(null==(w=r.initialViewMetrics.largestContentfulPaint)?void 0:w.value),largest_contentful_paint_target_selector:null==(S=r.initialViewMetrics.largestContentfulPaint)?void 0:S.targetSelector,load_event:t7(null==(k=r.initialViewMetrics.navigationTimings)?void 0:k.loadEvent),loading_time:n9(t7(r.commonViewMetrics.loadingTime)),loading_type:r.loadingType,long_task:{count:r.eventCounts.longTaskCount},resource:{count:r.eventCounts.resourceCount},time_spent:t7(r.duration)},feature_flags:x&&!tK(x)?x:void 0,display:r.commonViewMetrics.scroll?{scroll:{max_depth:r.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:r.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:r.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:t7(r.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!C||void 0,is_active:!!r.sessionIsActive&&void 0},privacy:{replay_level:i.defaultPrivacyLevel}},tK(r.customTimings)||(T.view.custom_timings=tY(r.customTimings,t7)),{rawRumEvent:T,startTime:r.startClocks.relative,domainContext:{location:r.location}}))}),function(t,e,n,r,i,o,a,s){var u,c=new Set,l=d("initial_load",ei(),s);function d(o,a,s){var u=function(t,e,n,r,i,o,a,s){void 0===a&&(a=er());var u,c,l,d,f,p,v,m,g,y,_,w,S,k,C,x,E,T,A,R,I,O,M,L,D,P,U,z,B,F,j,q,H,K,Y,J,X,$,Z,Q,tt,te,tn,ti,to,tu=ez(),tc=new tr,tl={},td=0,tf=tG(i),tp=ic(),tb=!0;s&&(te=s.name,tn=s.service||void 0,ti=s.version||void 0,s.context&&(to=s.context,tp.setContext(to)));var tw={id:tu,name:te,startClocks:a,service:tn,version:ti,context:to};t.notify(1,tw),t.notify(2,tw);var tS=ty(tz,3e3,{leading:!1}),tk=tS.throttled,tC=tS.cancel,tx=(m={},y=(g=function(t,e,n,r,i,o,a){var s,u="initial_load"===i,c=!0,l=[],d=ip(r);function f(){if(!c&&!u&&l.length>0){var t=Math.max.apply(Math,l);t<d.timeStamp&&a(t)}}var p=(s=function(t){c&&(c=!1,t.hadActivity&&l.push(eo(o.timeStamp,t.end)),f())},rn(rr(t,e,n,r),s,void 0)).stop;return{stop:function(){p(),d.stop()}
1,setLoadEvent:function(t){u&&(u=!1,l.push(t),f())}}}(t,e,n,r,o,v=a,function(t){m.loadingTime=t,tk()})).stop,_=g.setLoadEvent,T=(w=function(t){m.scroll=t},void 0===S&&(u=r,void 0===c&&(c=1e3),S=new tr(function(t){if(window.ResizeObserver){var e=ty(function(){var e,n;t.notify((e=ib(),n=iS().height,{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(n+e),scrollTop:e}))},c,{leading:!1,trailing:!0}),n=document.scrollingElement||document.documentElement,r=new ResizeObserver(V(e.throttled));n&&r.observe(n);var i=ta(u,window,"scroll",e.throttled,{passive:!0});return function(){e.cancel(),r.disconnect(),i.stop()}}})),k=0,C=0,x=0,E=S.subscribe(function(t){var e=t.scrollDepth,n=t.scrollTop,r=t.scrollHeight,i=!1;if(e>k&&(k=e,i=!0),r>C){C=r;var o=en();x=eo(v.relative,o),i=!0}i&&w({maxDepth:Math.min(k,C),maxDepthScrollTop:n,maxScrollHeight:C,maxScrollHeightTime:x})}),{stop:function(){return E.unsubscribe()}}).stop,A=function(t,e,n){if(!(re(h.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:t_};var r,i,o,a,s,u,c=0;n({value:0});var l=(o=0,a=0,{update:function(t){var e;return void 0===r||t.startTime-i>=1e3||t.startTime-r>=5e3?(r=i=t.startTime,a=o=t.value,e=!0):(o+=t.value,i=t.startTime,(e=t.value>a)&&(a=t.value)),{cumulatedValue:o,isMaxValue:e}}}),d=rt(t,{type:h.LAYOUT_SHIFT,buffered:!0}).subscribe(function(r){for(var i=0;i<r.length;i++){var o=r[i];if(!o.hadRecentInput&&!(o.startTime<e)){var a=l.update(o),d=a.cumulatedValue;if(a.isMaxValue){var f=function(t){var e;if(t)return null==(e=G(t,function(t){return!!t.node&&rl(t.node)}))?void 0:e.node}(o.sources);s=f?new WeakRef(f):void 0,u=eo(e,o.startTime)}if(d>c){c=d;var f=null==s?void 0:s.deref();n({value:t3(c,4),targetSelector:f&&rB(f,t.actionNameAttribute),time:u})}}}});return{stop:function(){d.unsubscribe()}}}(r,v.relative,function(t){m.cumulativeLayoutShift=t,tk()}).stop,I=(R=function(t,e,n){if(!(re(h.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:t_,stop:t_};var r,i,o,a,s,u=(r=n,"interactionCount"in performance||b||(b=new window.PerformanceObserver(V(function(t){t.getEntries().forEach(function(t){t.interactionId&&(ih=Math.min(ih,t.interactionId),iv=((im=Math.max(im,t.interactionId))-ih)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),i="initial_load"===r?0:ig(),o={stopped:!1},{getViewInteractionCount:function(){return o.stopped?o.interactionCount:ig()-i},stopViewInteractionCount:function(){o={stopped:!0,interactionCount:ig()-i}}}),c=u.getViewInteractionCount,l=u.stopViewInteractionCount,d=1/0,f=function(t){var e=[];function n(){e.sort(function(t,e){return e.duration-t.duration}).splice(10)}return{process:function(t){var r=e.findIndex(function(e){return t.interactionId===e.interactionId}),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(c),p=-1;function v(n){for(var r,i,o=0;o<n.length;o++){var u=n[o];u.interactionId&&u.startTime>=e&&u.startTime<=d&&f.process(u)}var c=f.estimateP98Interaction();c&&c.duration!==p&&(p=c.duration,s=eo(e,c.startTime),r=c.startTime,i=rJ.get(r),rJ.delete(r),!(a=i)&&c.target&&rl(c.target)&&(a=rB(c.target,t.actionNameAttribute)))}var m=rt(t,{type:h.FIRST_INPUT,buffered:!0}).subscribe(v),g=rt(t,{type:h.EVENT,durationThreshold:40,buffered:!0}).subscribe(v);return{getInteractionToNextPaint:function(){return p>=0?{value:Math.min(p,iy),targetSelector:a,time:s}:c()?{value:0}:void 0},setViewEnd:function(t){d=t,l()},stop:function(){g.unsubscribe(),m.unsubscribe()}}}(r,v.relative,o)).stop,O=R.getInteractionToNextPaint,{stop:function(){y(),A(),T()},stopINPTracking:I,setLoadEvent:_,setViewEnd:R.setViewEnd,getCommonViewMetrics:function(){return m.interactionToNextPaint=O(),m}}),tE=tx.setLoadEvent,tT=tx.setViewEnd,tA=tx.stop,tR=tx.stopINPTracking,tI=tx.getCommonViewMetrics,tN="initial_load"===o?(M={},P=(L=function(t){tE(t.loadEvent),M.navigationTimings=t,tk()},void 0===D&&(D=io),l=r,d=function(){var t,e=D();e.loadEventEnd<=0||L({domComplete:(t=e).domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:t.responseStart>=0&&t.responseStart<=en()?t.responseStart:void 0})},p=it(l,"complete",function(){f=tv(function(){return d()})}).stop,{stop:function(){p(),th(f)}}).stop,U=ip(r),B=(z=function(t){M.firstContentfulPaint=t,tk()},{stop:rt(r,{type:h.PAINT,buffered:!0}
1).subscribe(function(t){var e=G(t,function(t){return"first-contentful-paint"===t.name&&t.startTime<U.timeStamp&&t.startTime<il});e&&z(e.startTime)}).unsubscribe}).stop,J=(F=window,j=function(t){M.largestContentfulPaint=t,tk()},q=1/0,H=ts(r,F,["pointerdown","keydown"],function(t){q=t.timeStamp},{capture:!0,once:!0}).stop,K=0,Y=rt(r,{type:h.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(function(t){var e=W(t,function(t){return t.entryType===h.LARGEST_CONTENTFUL_PAINT&&t.startTime<q&&t.startTime<U.timeStamp&&t.startTime<id&&t.size>K});if(e){var n=void 0;e.element&&(n=rB(e.element,r.actionNameAttribute)),j({value:e.startTime,targetSelector:n}),K=e.size}}),{stop:function(){H(),Y.unsubscribe()}}).stop,Z=(X=function(t){M.firstInput=t,tk()},$=rt(r,{type:h.FIRST_INPUT,buffered:!0}).subscribe(function(t){var e=G(t,function(t){return t.startTime<U.timeStamp});if(e){var n=eo(e.startTime,e.processingStart),i=void 0;e.target&&rl(e.target)&&(i=rB(e.target,r.actionNameAttribute)),X({delay:n>=0?n:0,time:e.startTime,targetSelector:i})}}),{stop:function(){$.unsubscribe()}}).stop,{stop:function(){P(),B(),J(),Z(),U.stop()},initialViewMetrics:M}):{stop:t_,initialViewMetrics:{}},tO=tN.stop,tM=tN.initialViewMetrics,tL={stop:(Q=n7({lifeCycle:t,isChildEvent:function(t){return t.view.id===tu},onChange:tk})).stop,eventCounts:Q.eventCounts},tD=tL.stop,tP=tL.eventCounts,tU=tm(tz,ik);function tz(){tC(),td+=1;var e=void 0===tt?ee():tt.timeStamp;t.notify(4,{customTimings:tl,documentVersion:td,id:tu,name:te,service:tn,version:ti,context:tp.getContext(),loadingType:o,location:tf,startClocks:a,commonViewMetrics:tI(),initialViewMetrics:tM,duration:eo(a.timeStamp,e),isActive:void 0===tt,sessionIsActive:tb,eventCounts:tP})}return tz(),tp.changeObservable.subscribe(function(){t.notify(3,{id:tu,name:te,context:tp.getContext(),startClocks:a}),tk()}),{get name(){return te},service:tn,version:ti,contextManager:tp,stopObservable:tc,end:function(e){var n,r,i=this;void 0===e&&(e={}),tt||(tt=null!=(n=e.endClocks)?n:er(),tb=null==(r=e.sessionIsActive)||r,t.notify(5,{endClocks:tt}),t.notify(6,{endClocks:tt}),tg(tU),tT(tt.relative),tA(),tz(),tv(function(){i.stop()},iC))},stop:function(){tO(),tD(),tR(),tc.notify()},addTiming:function(t,e){if(!tt){var n,r,i=eu(e)?e:eo(a.timeStamp,e);tl[(r=(n=t).replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==n&&N.warn("Invalid timing name: ".concat(n,", sanitized to: ").concat(r)),r]=i,tk()}},setViewName:function(t){te=t,tz()}}}(e,n,r,i,t,o,a,s);return c.add(u),u.stopObservable.subscribe(function(){c.delete(u)}),u}return e.subscribe(10,function(){l=d("route_change",void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})}),e.subscribe(9,function(){l.end({sessionIsActive:!1})}),e.subscribe(11,function(t){t.reason===tu.UNLOADING&&l.end()}),a&&(u=o.subscribe(function(t){var e,n,r;e=t.oldLocation,n=t.newLocation,e.pathname===n.pathname&&(""!==(r=n.hash.substring(1))&&document.getElementById(r)||ix(n.hash)===ix(e.hash))||(l.end(),l=d("route_change"))})),{addTiming:function(t,e){void 0===e&&(e=ee()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=d("route_change",e,t)},setViewContext:function(t){l.contextManager.setContext(t)},setViewContextProperty:function(t,e){l.contextManager.setContextProperty(t,e)},setViewName:function(t){l.setViewName(t)},stop:function(){u&&u.unsubscribe(),l.end(),c.forEach(function(t){return t.stop()})}}}(tB,R,tt,tl,t,te,!t.trackViewsManually,o)),tT=tE.addTiming,tA=tE.startView,tR=tE.setViewName,tI=tE.setViewContext,tN=tE.setViewContextProperty,tO=tE.stop;A.push(tO);var tM=function(t,e,n,r,i){void 0===r&&(r=function(){var t=[];function e(e){var r;if(e.didTimeout){var i=performance.now();r=function(){return 30-(performance.now()-i)}}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){r8(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=ia),t.subscribe(8,function(t){a(function(){return function(t,e,n){var r=function(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=e.filter(function(t){return!r9.has(t)}).filter(function(t){return nv(t)&&nh(t)}).filter(function(e){var n,r,i;return n=e,r=t.startClocks.relative,i=r7({startTime:t.startClocks.relative,duration:t.duration}),n.startTime>=r-1&&r7(n)<=ea(i,1)});if(1===n.length)return r9.add(n[0]),n[0].toJSON()}}}(t),i=r?t4(r.startTime):t.startClocks,o=function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toString(),trace_id:t.traceId.toString(),rule_psr:e.rulePsr}}}(t,e);if(e.trackResources||o){var a,s,u,c="xhr"===t.type?"xhr":"fetch",l=r?iu(r):void 0,d=(a=n,s=i,u=t.duration,a.wasInPageStateDuringPeriod("frozen",s.relative,u)?void 0:t7(u)),f=ep({date:i.timeStamp,resource:{id:ez(),type:c,duration:d,method:t.method,status_code:t.status,protocol:r&&ng(r),url:nb(t.url)?nw(t.url):t.url,delivery_type:r&&ny(r)}
1,type:"resource",_dd:{discarded:!e.trackResources}},o,l);return{startTime:i.relative,rawRumEvent:f,domainContext:{performanceEntry:r,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}}(t,e,n)})});var o=rt(e,{type:h.RESOURCE,buffered:!0}).subscribe(function(t){for(var n=function(t){"xmlhttprequest"!==t.initiatorType&&"fetch"!==t.initiatorType&&a(function(){return is(t,e)})},r=0;r<t.length;r++)n(t[r])});function a(e){r.push(function(){var n=e();n&&t.notify(12,n)})}return i(e,function(t){a(function(){return is(t,e)})}),{stop:function(){o.unsubscribe()}}}(R,t,ti).stop;if(A.push(tM),t$(i.LONG_ANIMATION_FRAME)){if(t.trackLongTasks){var tL,tD,tP,tU,tz,tB,tV,tj=(tV=rt(t,{type:h.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(function(t){for(var e=0;e<t.length;e++){var n=t[e],r=t4(n.startTime),i={date:r.timeStamp,long_task:{id:ez(),entry_type:"long-animation-frame",duration:t7(n.duration),blocking_duration:t7(n.blockingDuration),first_ui_event_timestamp:t7(n.firstUIEventTimestamp),render_start:t7(n.renderStart),style_and_layout_start:t7(n.styleAndLayoutStart),start_time:t7(n.startTime),scripts:n.scripts.map(function(t){return{duration:t7(t.duration),pause_duration:t7(t.pauseDuration),forced_style_and_layout_duration:t7(t.forcedStyleAndLayoutDuration),start_time:t7(t.startTime),execution_start:t7(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}})},type:"long_task",_dd:{discarded:!1}};R.notify(12,{rawRumEvent:i,startTime:r.relative,domainContext:{performanceEntry:n}})}}),{stop:function(){return tV.unsubscribe()}}).stop;A.push(tj)}}else rt(t,{type:h.LONG_TASK,buffered:!0}).subscribe(function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==h.LONG_TASK||!t.trackLongTasks)break;var i=t4(r.startTime),o={date:i.timeStamp,long_task:{id:ez(),entry_type:"long-task",duration:t7(r.duration)},type:"long_task",_dd:{discarded:!1}};R.notify(12,{rawRumEvent:o,startTime:i.relative,domainContext:{performanceEntry:r}})}});var tH=(w=_=new tr,r2([T.error]).subscribe(function(t){return w.notify(t.error)}),r0(_),r5(t,[r3.cspViolation,r3.intervention]).subscribe(function(t){return _.notify(t)}),_.subscribe(function(t){return R.notify(14,{error:t})}),l=R,d=ti,f=M,l.subscribe(14,function(t){var e,n,r,i,o,a,s=t.error,u=t.customerContext,c=t.savedCommonContext;l.notify(12,Z({customerContext:u,savedCommonContext:c},(e=s,n=d,r=f,i={date:e.startClocks.timeStamp,error:{id:ez(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:"error",view:{in_foreground:n.wasInPageStateAt("active",e.startClocks.relative)}},(o=r.findFeatureFlagEvaluations(e.startClocks.relative))&&!tK(o)&&(i.feature_flags=o),a={error:e.originalError,handlingStack:e.handlingStack},{rawRumEvent:i,startTime:e.startClocks.relative,domainContext:a})))}),{addError:function(t,e){var n=t.error,r=t.handlingStack,i=t.startClocks,o=t.context,a=tF({stackTrace:tq(n)?tx(n):void 0,originalError:n,handlingStack:r,startClocks:i,nonErrorPrefix:"Provided",source:eP.CUSTOM,handling:"handled"});l.notify(14,{customerContext:o,savedCommonContext:e,error:a})}}).addError;x={clearTracingIfNeeded:n5,traceFetch:function(e){return n6(t,e,P,function(t){var n;if(e.input instanceof Request&&!(null==(n=e.init)?void 0:n.headers))e.input=new Request(e.input),Object.keys(t).forEach(function(n){e.input.headers.append(n,t[n])});else{e.init=tG(e.init);var r=[];e.init.headers instanceof Headers?e.init.headers.forEach(function(t,e){r.push([e,t])}):Array.isArray(e.init.headers)?e.init.headers.forEach(function(t){r.push(t)}):e.init.headers&&Object.keys(e.init.headers).forEach(function(t){r.push([t,e.init.headers[t]])}),e.init.headers=r.concat(J(t))}})},traceXhr:function(e,n){return n6(t,e,P,function(t){Object.keys(t).forEach(function(e){n.setRequestHeader(e,t[e])})})}},p=R,v=t,m=x,ne(v).subscribe(function(t){var e;if((e=t.url)&&!nl(e))switch(t.state){case"start":m.traceXhr(t,t.xhr),t.requestIndex=n8(),p.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"complete":m.clearTracingIfNeeded(t),p.notify(8,{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,isAborted:t.isAborted,handlingStack:t.handlingStack})}}),g=R,y=x,e7().subscribe(function(t){var e,n,r,i;if((e=t.url)&&!nl(e))switch(t.state){case"start":y.traceFetch(t),t.requestIndex=n8(),g.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"resolve":n=t,r=function(e){y.clearTracingIfNeeded(t),g.notify(8,{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,isAborted:t.isAborted,handlingStack:t.handlingStack})},(i=n.response&&na(n.response))&&i.body?ni(i.body,function(){r(eo(n.startClocks.timeStamp,ee()))},{bytesLimit:1/0,collectStreamBody:!1}):r(eo(n.startClocks.timeStamp,ee()))}});var tW=function(t,e,n){function r(n){var r,i,o;e.wasInPageStateDuringPeriod("frozen",n.startClocks.relative,n.duration)||t.notify(12,(i=!0,o={date:(r=n).startClocks.timeStamp,vital:{id:ez(),type:r.type,name:r.name,duration:t7(r.duration),description:r.description},type:"vital"},i&&(o._dd={vital:{computed_value:!0}}),{rawRumEvent:o,startTime:r.startClocks.relative,customerContext:r.context,domainContext:{}}))}return{addDurationVital:r,startDurationVital:function(t,e){return void 0===e&&(e={}),iY(n,t,e)},stopDurationVital:function(t,e){void 0===e&&(e={}),iJ(r,n,t,e)}}}(R,ti,c),tJ=(E=t.applicationId,{get:function(t){var e=tp.findView(t),n=tb.findUrl(t),r=P.findTrackedSession(t);if(r&&e&&n){var i=tw.findActionId(t);return{application_id:E,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:tk,addError:tH,addTiming:tT,addFeatureFlagEvaluation:M.addFeatureFlagEvaluation,startView:tA,setViewContext:tI,setViewContextProperty:tN,setVie
1wName:tR,lifeCycle:R,viewHistory:tp,session:P,stopSession:function(){return P.expire()},getInternalContext:tJ.get,startDurationVital:tW.startDurationVital,stopDurationVital:tW.stopDurationVital,addDurationVital:tW.addDurationVital,stop:function(){A.forEach(function(t){return t()})}}},function(t){if(eO()&&!eN("records")||!oO())return{start:t_,stop:t_,getReplayStats:function(){},onRumStart:t_,isRecording:function(){return!1},getSessionReplayLink:function(){}};var e,n=(e=0,{strategy:{start:function(){e=1},stop:function(){e=2},isRecording:function(){return!1},getSessionReplayLink:t_},shouldStartImmediately:function(t){return 1===e||0===e&&!t.startSessionReplayRecordingManually}}),r=n.strategy,i=n.shouldStartImmediately;return{start:function(t){return r.start(t)},stop:function(){return r.stop()},getSessionReplayLink:function(){return r.getSessionReplayLink()},onRumStart:function(e,n,o,a,s){var u;r=function(t,e,n,r,i,o){var a,s=0;function u(u){var c,l,d,f,p,v=n.findTrackedSession();if(c=v,l=u,!c||0===c.sessionReplay&&(!l||!l.force)){s=1;return}2!==(d=s)&&3!==d&&(s=2,it(t,"interactive",function(){if(2===s){var u=o();if(!u){s=0;return}a=i(e,t,n,r,u).stop,s=3}}),f=v,(p=u)&&p.force&&0===f.sessionReplay&&n.setForcedReplay())}function c(){0!==s&&3===s&&(null==a||a()),s=0}return e.subscribe(9,function(){(2===s||3===s)&&(c(),s=1)}),e.subscribe(11,function(t){t.reason===tu.UNLOADING&&c()}),e.subscribe(10,function(){1===s&&u()}),{start:u,stop:c,getSessionReplayLink:function(){var e,i,o,a,u,c,l,d,f,p,v,h,m,g,y,_;return e=0!==s,h=i=n.findTrackedSession(),m=e,o=oO()?h?0===h.sessionReplay?"incorrect-session-plan":m?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported",a=r.findView(),c=(u={viewContext:a,errorType:o,session:i}).session,l=u.viewContext,d=u.errorType,f=c?c.id:"no-session-id",p=[],void 0!==d&&p.push("error-type=".concat(d)),l&&(p.push("seed=".concat(l.id)),p.push("from=".concat(l.startClocks.timeStamp))),y=(g=t).site,_=g.subdomain||function(t){switch(t.site){case t0:case"datadoghq.eu":return"app";case tQ:return"dd";default:return}}(g),v="https://".concat(_?"".concat(_,"."):"").concat(y),"".concat(v).concat("/rum/replay/sessions/".concat(f),"?").concat(p.join("&"))},isRecording:function(){return 3===s}}}(n,e,o,a,t,function(){return!u&&(null!=s||(s=oI(n,"Datadog Session Replay",function(){r.stop()},void 0)),s&&(u=oT(n,s,1))),u}),i(n)&&r.start()},isRecording:function(){return 3===oR.status&&r.isRecording()},getReplayStats:function(t){return 3===oR.status?null==x?void 0:x.get(t):void 0}}}(function(t,e,n,r,i,o){var a,s=[],u=o||iP(e.sessionReplayEndpointBuilder,6e4,function(e){t.notify(14,{error:e}),eE("Error reported to customer",{"error.message":e.message})});if(eO())a=(c=eI(),{addRecord:function(t){var e=r.findView();c.send("record",t,e.id)}}).addRecord;else{var c,l=function(t,e,n,r){var i={status:0,nextSegmentCreationReason:"init"},o=t.subscribe(2,function(){s("view_change")}).unsubscribe,a=t.subscribe(11,function(t){s(t.reason)}).unsubscribe;function s(t){1===i.status&&(i.segment.flush(function(e,r){var i,o,a,s,u=(i=r.output,o=r.rawBytesCount,(a=new FormData).append("segment",new Blob([i],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start)),s=JSON.stringify(Z({raw_segment_size:o,compressed_segment_size:i.byteLength},e)),a.append("event",new Blob([s],{type:"application/json"})),{data:a,bytesCount:i.byteLength});tl(t)?n.sendOnExit(u):n.send(u)}),th(i.expirationTimeoutId)),i="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:function(t){if(2!==i.status){if(0===i.status){var n=e();if(!n)return;i={status:1,segment:function(t){var e=t.context,n=t.creationReason,r=t.encoder,i=0,o=e.view.id,a=Z({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:i4(o).segments_count,source:"browser"},e);return i4(o).segments_count+=1,{addRecord:function(t,e){a.start=Math.min(a.start,t.timestamp),a.end=Math.max(a.end,t.timestamp),a.records_count+=1,a.has_full_snapshot||(a.has_full_snapshot=2===t.type);var n=r.isEmpty?'{"records":[':",";r.write(n+JSON.stringify(t),function(t){e(i+=t)})},flush:function(t){if(r.isEmpty)throw Error("Empty segment flushed");r.write("],".concat(JSON.stringify(a).slice(1),"\n")),r.finish(function(e){var n,r;n=a.view.id,r=e.rawBytesCount,i4(n).segments_total_raw_size+=r,t(a,e)})}}}({encoder:r,context:n,creationReason:i.nextSegmentCreationReason}),expirationTimeoutId:tv(function(){s("segment_duration_limit")},5e3)}}i.segment.addRecord(t,function(t){t>6e4&&s("segment_bytes_limit")})}},stop:function(){s("stop"),o(),a()}}}(t,function(){var t=e.applicationId,i=n,o=r,a=i.findTrackedSession(),s=o.findView();return a&&s?{application:{id:t},session:{id:a.id},view:{id:s.id}}:void 0},u,i);a=l.addRecord,s.push(l.stop)}var d=function(t){var e,n,r,i,o,a,s,u,c,l,d,f,p,v,h=t.emit,m=t.configuration,g=t.lifeCycle;if(!h)throw Error("emit function is required");var y=function(e){var n;h(e),tn("record",{record:e}),n=t.viewHistory.findView().id,i4(n).records_count+=1},_=(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)}}
1),b=oE(m,y,_),w=(n=S,(r=function(t){return t.forEach(function(t){return y(t)})})((i=function(t,e){void 0===t&&(t=ee()),void 0===e&&(e={status:0,elementsScrollPositions:_,shadowRootsController:b});var n=iS(),r=n.width,i=[{data:{height:n.height,href:window.location.href,width:r},type:4,timestamp:t},{data:{has_focus:document.hasFocus()},type:6,timestamp:t},{data:{node:of(document,{serializationContext:e,parentNodePrivacyLevel:m.defaultPrivacyLevel,configuration:m}),initialOffset:{left:i_(),top:ib()}},type:2,timestamp:t}];return window.visualViewport&&i.push({data:oy(window.visualViewport),type:8,timestamp:t}),i})()),{stop:g.subscribe(2,function(t){n(),r(i(t.startClocks.timeStamp,{shadowRootsController:b,status:1,elementsScrollPositions:_}))}).unsubscribe}).stop;function S(){b.flush(),C.flush()}var k=(o=new WeakMap,a=1,{getIdForEvent:function(t){return o.has(t)||o.set(t,a++),o.get(t)}}),C=ox(y,m,b,document),x=[C,(u=(s=ty(function(t){var e=om(t);if(i9(e)){var n=ob(t);if(!n)return;var r={id:i7(e),timeOffset:0,x:n.x,y:n.y};y(o_(oh(t)?6:1,{positions:[r]}))}},50,{trailing:!1})).throttled,c=s.cancel,l=ts(m,document,["mousemove","touchmove"],u,{capture:!0,passive:!0}).stop,{stop:function(){l(),c()}}),ts(m,document,Object.keys(ow),function(t){var e,n=om(t);if(r_(n,m.defaultPrivacyLevel)!==rh.HIDDEN&&i9(n)){var r=i7(n),i=ow[t.type];if(6!==i&&5!==i){var o=ob(t);if(!o)return;e={id:r,type:i,x:o.x,y:o.y}}else e={id:r,type:i};y(Z({id:k.getIdForEvent(t)},o_(2,e)))}},{capture:!0,passive:!0}),oS(m,y,_,document),(d=iw(m).subscribe(function(t){y(o_(4,t))}),{stop:function(){d.unsubscribe()}}),oC(m,y),ts(m,document,["play","pause"],function(t){var e=om(t);e&&r_(e,m.defaultPrivacyLevel)!==rh.HIDDEN&&i9(e)&&y(o_(7,{id:i7(e),type:1*("play"!==t.type)}))},{capture:!0,passive:!0}),function(t){function e(t,e){t&&i9(t.ownerNode)&&e(i7(t.ownerNode))}var n=[eL(CSSStyleSheet.prototype,"insertRule",function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r,function(e){return t(o_(8,{id:e,adds:[{rule:o,index:a}]}))})}),eL(CSSStyleSheet.prototype,"deleteRule",function(n){var r=n.target,i=n.parameters[0];e(r,function(e){return t(o_(8,{id:e,removes:[{index:i}]}))})})];function r(r){n.push(eL(r.prototype,"insertRule",function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r.parentStyleSheet,function(e){var n=ok(r);n&&(n.push(a||0),t(o_(8,{id:e,adds:[{rule:o,index:n}]})))})}),eL(r.prototype,"deleteRule",function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,function(e){var n=ok(r);n&&(n.push(i),t(o_(8,{id:e,removes:[{index:n}]})))})}))}return"u">typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule)),{stop:function(){n.forEach(function(t){return t.stop()})}}}(y),ts(m,window,["focus","blur"],function(){y({data:{has_focus:document.hasFocus()},type:6,timestamp:ee()})}),function(t,e){var n=window.visualViewport;if(!n)return{stop:t_};var r=ty(function(){e({data:oy(n),type:8,timestamp:ee()})},200,{trailing:!1}),i=r.throttled,o=r.cancel,a=ts(t,n,["resize","scroll"],i,{capture:!0,passive:!0}).stop;return{stop:function(){a(),o()}}}(m,y),(f=g.subscribe(12,function(t){var e,n;"action"===t.rawRumEvent.type&&"click"===t.rawRumEvent.action.type&&(null==(n=null==(e=t.rawRumEvent.action.frustration)?void 0:e.type)?void 0:n.length)&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&y({timestamp:t.rawRumEvent.date,type:9,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map(function(t){return k.getIdForEvent(t)})}})}),{stop:function(){f.unsubscribe()}}),(p=function(t){S(),y(t)},v=g.subscribe(5,function(){p({timestamp:ee(),type:7})}),{stop:function(){v.unsubscribe()}})];return{stop:function(){b.stop(),x.forEach(function(t){return t.stop()}),w()},flushMutations:S,shadowRootsController:b}}({emit:a,configuration:e,lifeCycle:t,viewHistory:r}).stop;return s.push(d),{stop:function(){s.forEach(function(t){return t()})}}}),{startDeflateWorker:oI,createDeflateEncoder:oT});tt(te(),"DD_RUM",oM),t.s(["datadogRum",0,oM],953980)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.