@cloudcare/browser-rum 3.2.22 → 3.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/dataflux-rum.js +1 -1
- package/cjs/boot/buildEnv.js +1 -1
- package/cjs/domain/configuration.js +1 -1
- package/cjs/domain/configuration.js.map +1 -1
- package/cjs/domain/deflate/deflateWorker.js +1 -1
- package/cjs/domain/tracing/tracer.js +1 -4
- package/cjs/domain/tracing/tracer.js.map +1 -1
- package/esm/boot/buildEnv.js +1 -1
- package/esm/domain/configuration.js +1 -1
- package/esm/domain/configuration.js.map +1 -1
- package/esm/domain/deflate/deflateWorker.js +1 -1
- package/esm/domain/tracing/tracer.js +1 -4
- package/esm/domain/tracing/tracer.js.map +1 -1
- package/package.json +2 -2
- package/src/domain/configuration.js +4 -1
- package/src/domain/tracing/tracer.js +1 -3
package/bundle/dataflux-rum.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=console,n={};Object.keys(t).forEach((function(t){n[t]=e[t]}));var r,i="GUANCE Browser SDK:",o={debug:n.debug.bind(e,i),log:n.log.bind(e,i),info:n.info.bind(e,i),warn:n.warn.bind(e,i),error:n.error.bind(e,i)};function a(t,e){var n,r=window;return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}var s=!1;function u(t){s=t}function c(t){return function(){return l(t,this,arguments)}}function l(t,e,n){try{return t.apply(e,n)}catch(t){if(f(t),r)try{r(t)}catch(t){f(t)}}}function f(){var t=[].slice.call(arguments);s&&o.error.apply(null,["[MONITOR]"].concat(t))}function d(t,e){return function(){var n=[].slice.call(arguments);try{return t.apply(this,n)}catch(t){o.error(e,t)}}}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function v(){if("object"===("undefined"==typeof globalThis?"undefined":p(globalThis)))return globalThis;Object.defineProperty(Object.prototype,"_gc_temp_",{get:function(){return this},configurable:!0});var t=_gc_temp_;return delete Object.prototype._gc_temp_,"object"!==p(t)&&(t="object"===("undefined"==typeof self?"undefined":p(self))?self:"object"===("undefined"==typeof window?"undefined":p(window))?window:{}),t}function h(t,e){return a(v(),"setTimeout")(c(t),e)}function m(t){a(v(),"clearTimeout")(t)}function g(t,e){return a(v(),"setInterval")(c(t),e)}function y(t){a(v(),"clearInterval")(t)}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}var b=Array.prototype,w=(Function.prototype,Object.prototype),S=b.slice,x=w.toString,E=w.hasOwnProperty,k=b.forEach,T=Array.isArray,C=!1,O=function(t,e,n){if(null===t)return!1;if(k&&t.forEach===k)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&e.call(n,t[r],r,t)===C)return!1}else for(var o in t)if(E.call(t,o)&&e.call(n,t[o],o,t)===C)return!1};function I(t){return O(S.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function A(t){return I({},t)}var R=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},P=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&($(e[n])&&$(t[n])?R(t[n],e[n]):t[n]=e[n])})),t},N=T||function(t){return"[object Array]"===x.call(t)},M=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},L=function(t){return t?t.toArray?t.toArray():N(t)?S.call(t):(e=t)&&E.call(e,"callee")?S.call(t):D(t):[];var e},D=function(t){var e=[];return null===t||O(t,(function(t){e[e.length]=t})),e},U=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},B=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},z=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},V=function(t,e,n){return void 0===n&&(n=!1),z(t,(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?Ft(e,t):t===e}catch(t){o.error(t)}return!1}))},j=function(t){return t+="",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?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}))},$=function(t){return null!==t&&"[object Object]"===x.call(t)},H=function(t){if($(t)){for(var e in t)if(E.call(t,e))return!1;return!0}return!1},F=function(t){var e=[];return O(t,(function(t,n){e.push([n,t])})),e},W=function(t){return"[object String]"===x.call(t)},q=function(t){return"[object Boolean]"===x.call(t)},G=function(t){return"[object Number]"===x.call(t)&&/[\d\.]+/.test(String(t))},Q=(Date.now,function(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1,u=this;return{throttled:function(){s?r=arguments:(o?t.apply(u,arguments):r=arguments,s=!0,i=h((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){m(i),s=!1,r=void 0}}}),K=function(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)})));var e,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",l=[];if(!(t=String(t)))return t;t=function(t){var e,n,r,i,o="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=t.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(n>e&&(o+=t.substring(e,n)),o+=s,e=n=i+1)}return n>e&&(o+=t.substring(e,t.length)),o}(t);do{e=(o=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,l[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<t.length);switch(c=l.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function X(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,X)}function J(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var Y=function(t){var e=function(t){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=null,this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,void 0!==t&&this._parse(t)};return e.prototype.setUrl=function(t){this._parse(t)},e.prototype._initValues=function(){for(var t in this._fields)this._values[t]=""},e.prototype.addQueryString=function(t){if("object"!==_(t))return!1;var e=this._values.QueryString||"";for(var n in t)e=new RegExp(n+"[^&]+").test(e)?e.replace(new RegExp(n+"[^&]+"),n+"="+t[n]):"&"===e.slice(-1)?e+n+"="+t[n]:""===e?n+"="+t[n]:e+"&"+n+"="+t[n];this._values.QueryString=e},e.prototype.getParse=function(){return this._values},e.prototype.getUrl=function(){var t="";return t+=this._values.Origin,t+=this._values.Path,t+=this._values.QueryString?"?"+this._values.QueryString:""},e.prototype._parse=function(t){this._initValues();var e=this._regex.exec(t);if(!e)throw"DPURLParser::_parse -> Invalid URL";for(var n in this._fields)void 0!==e[this._fields[n]]&&(this._values[n]=e[this._fields[n]]);this._values.Path=this._values.Path||"/",this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname+(this._values.Port?":"+this._values.Port:"")},new e(t)};var Z=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=tt("?"+n)),e},tt=function(t){for(var e=function(t){return decodeURIComponent(t)},n={},r=(t=t||"").substring(1).split("&"),i=0;i<r.length;i++){var o=r[i].indexOf("=");if(-1!==o){var a=r[i].substring(0,o),s=r[i].substring(o+1);a=e(a),s=e(s),n[a]=s}}return n};function et(t){return null===t?"null":Array.isArray(t)?"array":_(t)}function nt(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!==_(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]=nt(i[o],e[o],n);return i}i="object"===et(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=nt(i[a],e[a],n));return i}}function rt(t){return nt(void 0,t)}function it(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):0===t?void 0:t}function ot(){}var at,st=1e3,ut=6e4;function ct(t){return 0!==t&&100*Math.random()<=t}function lt(t,e){return+t.toFixed(e)}function ft(t){return"number"!=typeof t?t:lt(1e6*t,0)}function dt(t){return G(t)?lt(1e6*t,0):t}function pt(t){return t-Et()}function vt(t){return Math.round(Et()+t)}function ht(){return performance.now()}function mt(){return{relative:ht(),timeStamp:gt()}}function gt(){return yt()}function yt(){return(new Date).getTime()}function _t(t,e){return e-t}function bt(){return{relative:0,timeStamp:Et()}}function wt(t){return{relative:t,timeStamp:xt(t)}}function St(t,e){return t+e}function xt(t){var e=yt()-performance.now();return e>Et()?Math.round(e+t):vt(t)}function Et(){return void 0===at&&(at=performance.timing.navigationStart),at}var kt=/([\w-]+)\s*=\s*([^;]+)/g;function Tt(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&$(t)&&r in t&&E.call(t,r)))return;t=t[r]}return t}function Ct(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function Ot(t){var e=et(t);return"string"===e||"function"===e||t instanceof RegExp}function It(t,e){return-1!==t.indexOf(e)}function At(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Rt(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach((function(t){e.push(t)}));else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function Pt(t){return G(t)&&t>=0&&t<=100}var Nt,Mt=0,Lt=1,Dt=2,Ut=3;function Bt(){return $t(Nt,Nt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return Lt;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return Dt;if(t.document.documentMode)return Mt;return Ut}())}function zt(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Vt(t){var e={};return O(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=jt(t)})),e}function jt(t){return N(t)?B(t,(function(t){return jt(t)})):"object"===_(t)&&null!==t?Vt(t):t}function $t(t,e){return null!=t?t:e}function Ht(t,e){return z((r=[],null===(n=t)||O(n,(function(t,e){r[r.length]=e})),r),(function(n){return t[n]===e}));var n,r}function Ft(t,e){return t.slice(0,e.length)===e}function Wt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function qt(t){var e=t.substr(1);return!!e&&!!document.getElementById(e)}function Gt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Qt(t){return G(t)&&t<0?void 0:t}function Kt(){var t=[],e=function(e){t.push(e)>500&&t.splice(0,1)};return{add:e,remove:e,drain:function(e){t.forEach((function(t){t(e)})),t.length=0}}}var Xt=1/0;function Jt(t){var e=t.expireDelay,n=t.maxEntries,r=[],i=g((function(){return function(){var t=ht()-e;for(;r.length>0&&r[r.length-1].endTime<t;)r.pop()}()}),6e4);return{add:function(t,e){var i={value:t,startTime:e,endTime:Xt,remove:function(){Wt(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=Xt),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===Xt&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Xt),void 0===e&&(e=0);var n=St(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(){y(i)}}}var Yt={navigator:"undefined"!=typeof window&&void 0!==window.navigator?window.navigator:{},infoMap:{engine:["WebKit","Trident","Gecko","Presto"],browser:["Safari","Chrome","Edge","IE","IE 11","IE 10","IE 9","IE 8","IE 7","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Arora","Lunascape","QupZilla","Coc Coc","Kindle","Iceweasel","Konqueror","Iceape","SeaMonkey","Epiphany","360","360SE","360EE","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat",,"WechatWork","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","Android","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],device:["Mobile","Tablet","iPad"]}},Zt={getMatchMap:c((function(t){return{Trident:t.indexOf("Trident")>-1||t.indexOf("NET CLR")>-1,Presto:t.indexOf("Presto")>-1,WebKit:t.indexOf("AppleWebKit")>-1,Gecko:t.indexOf("Gecko/")>-1,Safari:t.indexOf("Safari")>-1,Chrome:t.indexOf("Chrome")>-1||t.indexOf("CriOS")>-1,IE:t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1,Edge:t.indexOf("Edge")>-1||t.indexOf("Edg")>-1,Firefox:t.indexOf("Firefox")>-1||t.indexOf("FxiOS")>-1,"Firefox Focus":t.indexOf("Focus")>-1,Chromium:t.indexOf("Chromium")>-1,Opera:t.indexOf("Opera")>-1||t.indexOf("OPR")>-1,Vivaldi:t.indexOf("Vivaldi")>-1,Yandex:t.indexOf("YaBrowser")>-1,Arora:t.indexOf("Arora")>-1,Lunascape:t.indexOf("Lunascape")>-1,QupZilla:t.indexOf("QupZilla")>-1,"Coc Coc":t.indexOf("coc_coc_browser")>-1,Kindle:t.indexOf("Kindle")>-1||t.indexOf("Silk/")>-1,Iceweasel:t.indexOf("Iceweasel")>-1,Konqueror:t.indexOf("Konqueror")>-1,Iceape:t.indexOf("Iceape")>-1,SeaMonkey:t.indexOf("SeaMonkey")>-1,Epiphany:t.indexOf("Epiphany")>-1,360:t.indexOf("QihooBrowser")>-1||t.indexOf("QHBrowser")>-1,"360EE":t.indexOf("360EE")>-1,"360SE":t.indexOf("360SE")>-1,UC:t.indexOf("UC")>-1||t.indexOf(" UBrowser")>-1,QQBrowser:t.indexOf("QQBrowser")>-1,QQ:t.indexOf("QQ/")>-1,Baidu:t.indexOf("Baidu")>-1||t.indexOf("BIDUBrowser")>-1,Maxthon:t.indexOf("Maxthon")>-1,Sogou:t.indexOf("MetaSr")>-1||t.indexOf("Sogou")>-1,LBBROWSER:t.indexOf("LBBROWSER")>-1,"2345Explorer":t.indexOf("2345Explorer")>-1,TheWorld:t.indexOf("TheWorld")>-1,XiaoMi:t.indexOf("MiuiBrowser")>-1,Quark:t.indexOf("Quark")>-1,Qiyu:t.indexOf("Qiyu")>-1,Wechat:t.indexOf("MicroMessenger")>-1,Taobao:t.indexOf("AliApp(TB")>-1,Alipay:t.indexOf("AliApp(AP")>-1,Weibo:t.indexOf("Weibo")>-1,Douban:t.indexOf("com.douban.frodo")>-1,Suning:t.indexOf("SNEBUY-APP")>-1,iQiYi:t.indexOf("IqiyiApp")>-1,Windows:t.indexOf("Windows")>-1,Linux:t.indexOf("Linux")>-1||t.indexOf("X11")>-1,"Mac OS":t.indexOf("Macintosh")>-1,Android:t.indexOf("Android")>-1||t.indexOf("Adr")>-1,Ubuntu:t.indexOf("Ubuntu")>-1,FreeBSD:t.indexOf("FreeBSD")>-1,Debian:t.indexOf("Debian")>-1,"Windows Phone":t.indexOf("IEMobile")>-1||t.indexOf("Windows Phone")>-1,BlackBerry:t.indexOf("BlackBerry")>-1||t.indexOf("RIM")>-1,MeeGo:t.indexOf("MeeGo")>-1,Symbian:t.indexOf("Symbian")>-1,iOS:t.indexOf("like Mac OS X")>-1,"Chrome OS":t.indexOf("CrOS")>-1,WebOS:t.indexOf("hpwOS")>-1,Mobile:t.indexOf("Mobi")>-1||t.indexOf("iPh")>-1||t.indexOf("480")>-1,Tablet:t.indexOf("Tablet")>-1||t.indexOf("Nexus 7")>-1,iPad:t.indexOf("iPad")>-1}})),matchInfoMap:c((function(t){var e=Yt.navigator.userAgent||"",n=Zt.getMatchMap(e);for(var r in Yt.infoMap)for(var i=0;i<Yt.infoMap[r].length;i++){var o=Yt.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:c((function(){return Zt.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:c((function(){var t=this,e=Yt.navigator.userAgent||"";t.osVersion="",t.osMajor="";var n={Windows:function(){var t=e.replace(/^.*Windows NT ([\d.]+);.*$/,"$1");return{6.4:"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP","5.0":"2000"}[t]||t},Android:function(){return e.replace(/^.*Android ([\d.]+);.*$/,"$1")},iOS:function(){return e.replace(/^.*OS ([\d_]+) like.*$/,"$1").replace(/_/g,".")},Debian:function(){return e.replace(/^.*Debian\/([\d.]+).*$/,"$1")},"Windows Phone":function(){return e.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/,"$2")},"Mac OS":function(){return e.replace(/^.*Mac OS X ([\d_]+).*$/,"$1").replace(/_/g,".")},WebOS:function(){return e.replace(/^.*hpwOS\/([\d.]+);.*$/,"$1")}};return n[t.os]&&(t.osVersion=n[t.os](),t.osVersion===e&&(t.osVersion="")),t.osVersion&&(t.osMajor=t.osVersion.split(".").length&&t.osVersion.split(".")[0]),{version:t.osVersion,osMajor:t.osMajor}})),getOrientationStatu:c((function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"})),getDeviceType:c((function(){var t=this;return t.device="PC",Zt.matchInfoMap(t),t.device})),getNetwork:c((function(){var t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,e="unknown",n=t?t.type||t.effectiveType:null;if(n&&"string"==typeof n)switch(n){case"bluetooth":case"cellular":case"slow-2g":case"2g":case"3g":e="cellular";break;case"none":e="none";break;case"ethernet":case"wifi":case"wimax":case"4g":e="wifi";break;case"other":case"unknown":e="unknown"}return e})),getLanguage:c((function(){var t;return this.language=((t=(Yt.navigator.browserLanguage||Yt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getBrowserInfo:c((function(){var t=this;Zt.matchInfoMap(t);var e=Yt.navigator.userAgent||"",n=function(t,e){var n=Yt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=Zt.getMatchMap(e),i=!1;if("undefined"!=typeof window&&window.chrome){var o=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");o>36&&window.showModalDialog?i=!0:o>45&&(i=n("type","application/vnd.chromium.remoting-viewer"))}if(r.Baidu&&r.Opera&&(r.Baidu=!1),r.Mobile&&(r.Mobile=!(e.indexOf("iPad")>-1)),i&&(n("type","application/gameplugin")||Yt.navigator&&Yt.navigator.connection&&void 0===Yt.navigator.connection.saveData?r["360SE"]=!0:r["360EE"]=!0),r.IE||r.Edge)switch(window.screenTop-window.screenY){case 71:case 74:case 99:case 75:case 74:case 105:default:break;case 102:r["360EE"]=!0;break;case 104:r["360SE"]=!0}var a={Safari:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return e.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return e.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return e.replace(/^.*Edge?\/([\d.]+).*$/,"$1")},Firefox:function(){return e.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return e.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return e.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return e.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1")},Vivaldi:function(){return e.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return e.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return e.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return e.replace(/^.*Lunascape[\/\s]([\d.]+).*$/,"$1")},QupZilla:function(){return e.replace(/^.*QupZilla[\/\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return e.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return e.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return e.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return e.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return e.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return e.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},360:function(){return e.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){return{63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"360EE":function(){return{69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},Maxthon:function(){return e.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return e.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return e.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return e.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/,"$1")},UC:function(){return e.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return e.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},LBBROWSER:function(){var t="";e.indexOf("LieBaoFast")>-1&&(t=e.replace(/^.*LieBaoFast\/([\d.]+).*$/,"$1"));var n=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");return t||{57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[n]||""},"2345Explorer":function(){return e.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1")},TheWorld:function(){return e.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return e.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return e.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return e.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return e.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},WechatWork:function(){return e.replace(/^.*wxwork\/([\d.]+).*$/,"$1")},Taobao:function(){return e.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return e.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return e.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return e.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return e.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return e.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")}};return t.browserVersion="",t.browserMajor="",a[t.browser]&&(t.browserVersion=a[t.browser](),t.browserVersion==e&&(t.browserVersion="")),"Chrome"==t.browser&&e.match(/\S+Browser/)&&(t.browser=e.match(/\S+Browser/)[0],t.version=e.replace(/^.*Browser\/([\d.]+).*$/,"$1")),"Edge"==t.browser&&(t.version>"75"?t.engine="Blink":t.engine="EdgeHTML"),("Chrome"==t.browser&&parseInt(t.browserVersion)>27||r.Chrome&&"WebKit"==t.engine&&parseInt(t.browserVersion)>27||"Opera"==t.browser&&parseInt(t.version)>12||"Yandex"==t.browser)&&(t.engine="Blink"),t.browserVersion&&(t.browserMajor=t.browserVersion.split(".").length&&this.browserVersion.split(".")[0]),{browser:t.browser,browserVersion:t.browserVersion,engine:t.engine,browserMajor:t.browserMajor}})),getGeoPostion:c((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){o.warn(t)}))}))},te={};"undefined"!=typeof window&&(te={os:Zt.getOS(),osVersion:Zt.getOSVersion().version,osVersionMajor:Zt.getOSVersion().osMajor,browser:Zt.getBrowserInfo().browser,browserVersion:Zt.getBrowserInfo().browserVersion,browserVersionMajor:Zt.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:Zt.getNetwork(),device:Zt.getDeviceType()});var ee=te,ne="beforeunload",re="click",ie="dblclick",oe="keydown",ae="load",se="popstate",ue="scroll",ce="touchstart",le="touchend",fe="touchmove",de="visibilitychange",pe="pageshow",ve="freeze",he="resume",me="DOMContentLoaded",ge="pointerdown",ye="pointerup",_e="pointercancel",be="hashchange",we="pagehide",Se="mousedown",xe="mousemove",Ee="focus",ke="blur",Te="contextmenu",Ce="resize",Oe="change",Ie="input",Ae="play",Re="pause",Pe="securitypolicyviolation",Ne="selectionchange",Me="storage",Le="document",De="xhr",Ue="beacon",Be="fetch",ze="css",Ve="js",je="image",$e="font",He="media",Fe="other",We="click",qe="custom",Ge="rage_click",Qe="error_click",Ke="dead_click",Xe={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},Je="long-task",Ye="long-animation-frame",Ze="initial_load",tn="route_change",en={FETCH:Be,XHR:De},nn="ddtrace",rn="zipkin",on="zipkin_single_header",an="w3c_traceparent",sn="w3c_traceparent_64bit",un="skywalking_v3",cn="jaeger",ln="handled",fn="unhandled",dn="Uncaught",pn="Provided";function vn(t){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(t)}function hn(t,e,n){if("object"!==vn(t)||null===t)return JSON.stringify(t);var r=mn(Object.prototype),i=mn(Array.prototype),o=mn(Object.getPrototypeOf(t)),a=mn(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function mn(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ot}function gn(t){return gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(t)}var yn="?";function _n(t){var e=[],n=On(t,"stack"),r=String(t);return n&&n.startsWith(r)&&(n=n.slice(r.length)),n&&O(n.split("\n"),(function(t){var n=function(t){var e=Sn.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=xn.exec(e[2]);r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||yn,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=En.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:yn,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=kn.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||yn,line:+e[3],url:e[2]}}(t)||function(t){var e=Tn.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Cn.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||yn,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=yn),e.push(n))})),{message:On(t,"message"),name:On(t,"name"),stack:e}}var bn="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",wn="(?::(\\d+))",Sn=new RegExp("^\\s*at (.*?) ?\\("+bn+wn+"?"+wn+"?\\)?\\s*$","i"),xn=new RegExp("\\((\\S*)"+wn+wn+"\\)");var En=new RegExp("^\\s*at ?"+bn+wn+"?"+wn+"??\\s*$","i");var kn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Tn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Cn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function On(t,e){if("object"===gn(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var In=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function An(t){var e=function(t){return qn(window,"onerror",(function(e){var n,r=e.parameters,i=r[0],o=r[1],a=r[2],s=r[3],u=r[4];if(u instanceof Error)n=_n(u);else{var c={url:o,column:s,line:a},l=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=In.exec(t);r&&(e=r[1],n=r[2])}return{name:e,message:n}}(i);n={name:l.name,message:l.message,stack:[c]}}t(n,$t(u,i))}))}(t),n=function(t){return qn(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=_n(n);t(r,n)}))}(t);return{stop:function(){e.stop(),n.stop()}}}var Rn=1024,Pn=/[^\u0000-\u007F]/;function Nn(t){return Pn.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function Ln(t,e){void 0===e&&(e=225280);var n=mn(Object.prototype),r=mn(Array.prototype),i=[],o=new WeakMap,a=Dn(t,"$",void 0,i,o),s=JSON.stringify(a)&&JSON.stringify(a).length||0;if(!(s>e)){for(;i.length>0&&s<e;){var u=i.shift(),c=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(s+=void 0!==(f=Dn(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){Bn(e,"truncated",t);break}u.target[l]=f}else for(var l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){var f;if(void 0!==(f=Dn(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+3,c=1),s>e){Bn(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}Bn(e,"discarded",t)}function Dn(t,e,n,r,i){var o=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!o||"object"!==Mn(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Mn(t))return"[Symbol] "+t.description||0;return t}(o);var a=Un(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=t;if(i.has(s))return"[Reference seen at "+i.get(s)+"]";var u=void 0!==n?e+"."+n:e,c=Array.isArray(o)?[]:{};return i.set(s,u),r.push({source:o,target:c,path:u}),c}function Un(t){try{if(t instanceof Event)return{type:(n=t).type,isTrusted:n.isTrusted,currentTarget:n.currentTarget?Un(n.currentTarget):null,target:n.target?Un(n.target):null};if(t instanceof RegExp)return"[RegExp] ".concat(t.toString());var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}var n;return"[Unserializable]"}function Bn(t,e,n){o.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",n)}var zn="No stack, consider using an instance of Error",Vn={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function jn(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+hn(Ln(r))}(e,u,o,n),l=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(u,e)?Hn(e):zn,f=u?Wn(n,a):void 0;return{startClocks:i,source:a,handling:s,originalError:n,message:c,stack:l,handlingStack:r,type:e&&e.name,causes:f}}function $n(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return l((function(){var n=_n(e);n.stack=n.stack.slice(2),t=Hn(n)})),t}function Hn(t){var e=Fn(t);return O(t.stack,(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"("+t.args.join(", ")+")":"",i=t.line?":"+t.line:"",o=t.line&&t.column?":"+t.column:"";e+="\n at "+n+r+" @ "+t.url+i+o})),e}function Fn(t){return(t.name||"Error")+": "+t.message}function Wn(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=_n(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&Hn(i)}),n=n.cause}return r.length?r:void 0}function qn(t,e,n,r){var i=r&&r.computeHandlingStack,o=t[e];if("function"!=typeof o){if(!Ft(e,"on"))return{stop:ot};o=ot}var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=Rt(arguments);l(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?$n():void 0}]);var r=o.apply(this,e);return t&&l(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function Gn(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:ot};var i=ot,o=function(t,e){h((function(){o!==i&&n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===a&&Object.defineProperty(t,e,r),o=i}}}var Qn=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};Qn.prototype={subscribe:function(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0);var e=this;return{unsubscribe:function(){e.observers=U(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){O(this.observers,(function(e){e(t)}))}};var Kn=Qn;function Xn(){var t=[].slice.call(arguments);return new Kn((function(e){var n=B(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return O(n,(function(t){return t.unsubscribe()}))}}))}var Jn={};function Yn(e){var n=B(e,(function(e){return Jn[e]||(Jn[e]=function(e){return new Kn((function(n){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=$n();l((function(){n.notify(function(e,n,r){var i,o=B(e,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return Fn(_n(t));return hn(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=At(e,(function(t){return t instanceof Error}));i={stack:a?Hn(_n(a)):void 0,causes:a?Wn(a,"console"):void 0,startClocks:mt(),message:o,source:Vn.CONSOLE,handling:ln,handlingStack:r}}return{api:n,message:o,error:i,handlingStack:r}}(i,e,o))}))},function(){console[e]=r}}))}(e)),Jn[e]}));return Xn.apply(this,n)}function Zn(t,e,n,r){return tr(t,[e],n,r)}function tr(t,e,n,r){var i=c(r&&r.once?function(t){s(),n(t)}:n);r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture;var o=a(t,"addEventListener");O(e,(function(e){o.call(t,e,i,r)}));var s=function(){var n=a(t,"removeEventListener");O(e,(function(e){n.call(t,e,i,r)}))};return{stop:s}}var er="intervention",nr="csp_violation";function rr(t,e){var n=[];It(e,nr)&&n.push(new Kn((function(t){return Zn(document,Pe,(function(e){t.notify(function(t){var e="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return ir({type:t.effectiveDirective,message:nr+": "+e,originalError:t,csp:{disposition:t.disposition},stack:or(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(Ct(t.originalPolicy,100),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(e))})).stop})));var r=U(e,(function(t){return t!==nr}));return r.length&&n.push(function(t){return new Kn((function(e){if(window.ReportingObserver){var n=c((function(t){O(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return ir({type:e.id,message:n+": "+e.message,originalError:t,stack:or(e.id,e.message,e.sourceFile,e.lineNumber,e.columnNumber)})}(t))}))})),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),Xn.apply(this,n)}function ir(t){return I({startClocks:mt(),source:ErrorSource.REPORT,handling:ErrorHandling.UNHANDLED},t)}function or(t,e,n,r,i){return n&&Hn({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var ar=function(){this._events=[],this.pendingEvents=[]};ar.prototype={emit:function(t){var e=[].slice.call(arguments,1);O(this._events,(function(n){if(n.type!==t)return!1;n.callback.apply(n.context,e)}))},on:function(t,e,n){"function"==typeof e&&this._events.push({type:t,callback:e,context:n||this})}};new ar;var sr,ur="AUTO_ACTION_COMPLETED",cr="BEFORE_VIEW_CREATED",lr="VIEW_CREATED",fr="VIEW_UPDATED",dr="BEFORE_VIEW_UPDATED",pr="VIEW_ENDED",vr="AFTER_VIEW_ENDED",hr="SESSION_RENEWED",mr="SESSION_EXPIRED",gr="PAGE_EXITED",yr="REQUEST_STARTED",_r="REQUEST_COMPLETED",br="RAW_RUM_EVENT_COLLECTED",wr="RUM_EVENT_COLLECTED",Sr="RAW_ERROR_COLLECTED";function xr(){this.callbacks={}}function Er(t){return Ir(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Cr(t)||Tr()}function kr(t,e){return Ir(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||Cr(t,e)||Tr()}function Tr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Cr(t,e){if(t){if("string"==typeof t)return Or(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Or(t,e):void 0}}function Or(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ir(t){if(Array.isArray(t))return t}function Ar(t,e,n){var r=rt(t),i=n(r);return F(e).forEach((function(e){var n=kr(e,2),i=n[0],o=n[1];return Rr(t,r,i.split(/\.|(?=\[\])/),o)})),i}function Rr(t,e,n,r){var i=Er(n),o=i[0],a=i.slice(1);if("[]"!==o){if(Pr(t)&&Pr(e))return a.length>0?Rr(t[o],e[o],a,r):void function(t,e,n,r){var i=et(n);i===r?t[e]=Ln(n):"object"!==r||"undefined"!==i&&"null"!==i||(t[e]={})}(t,o,e[o],r)}else Array.isArray(t)&&Array.isArray(e)&&t.forEach((function(t,n){return Rr(t,e[n],a,r)}))}function Pr(t){return"object"===et(t)}function Nr(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&h((function(){r=0}),ut),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of "+t+"s by minute: "+e,source:Vn.AGENT,startClocks:mt()})}finally{i=!1}}return!0}}}function Mr(t){return Dr(t,zt(window.location)).href}function Lr(t){return zt(Dr(t))}function Dr(t,e){if(function(){if(void 0!==sr)return sr;try{var t=new URL("http://test/path");return sr="http://test/path"===t.href}catch(t){sr=!1}return sr}())return void 0!==e?new URL(t,e):new URL(t);if(void 0===e&&!/:/.test(t))throw new Error("Invalid URL: "+t);var n=document,r=n.createElement("a");if(void 0!==e){var i=(n=document.implementation.createHTMLDocument("")).createElement("base");i.href=e,n.head.appendChild(i),n.body.appendChild(r)}return r.href=t,r}xr.prototype={notify:function(t,e){var n=this.callbacks[t];n&&O(n,(function(t){t(e)}))},subscribe:function(t,e){this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e);var n=this;return{unsubscribe:function(){n.callbacks[t]=U(n.callbacks[t],(function(t){return t!==e}))}}}};var Ur=navigator.userAgent.toLowerCase(),Br=function(){return/iphone os/.test(Ur)};function zr(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(c(t),e);return function(){return window.cancelIdleCallback(n)}}return function(t){var e=yt(),n=h((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,Vr-(yt()-e))}})}),0);return function(){return m(n)}}(t)}var Vr=50;var jr,$r=/^\s+|\s+$/g,Hr={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function Fr(t,e){var n=Hr[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+Wr(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?Wr(r)+"v1/write"+n:Wr(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function Wr(t){return t.replace($r,"")}function qr(t,e){return"".concat(t,"_").concat(e&&e.crossSite?"cs1":"cs0","_").concat(e&&e.domain?"d1":"d0","_").concat(e&&e.secure?"sec1":"sec0","_").concat(e&&e.partitioned?"part1":"part0")}function Gr(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires="+i.toUTCString(),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain="+r.domain:"",u=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie=qr(t,r)+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function Qr(t,e){return function(t,e){for(kt.lastIndex=0;;){var n=kt.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,qr(t,e))}function Kr(t,e){Gr(t,"",0,e)}var Xr=144e5,Jr=9e5,Yr="_gc_s";function Zr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ti(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ti(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ti(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ei=/^([a-zA-Z]+)=([a-z0-9-]+)$/,ni="&";function ri(t){return H(t)}function ii(t){return void 0!==t.isExpired||!((void 0===(e=t).created||yt()-Number(e.created)<Xr)&&(void 0===e.expire||yt()<Number(e.expire)));var e}function oi(t){return B(F(t),(function(t){return t[0]+"="+t[1]})).join("&")}function ai(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(ni)||ei.test(t))}(t)&&t.split(ni).forEach((function(t){var n=ei.exec(t);if(null!==n){var r=Zr(n,3),i=r[1],o=r[2];e[i]=o}})),e}function si(t){var e=function(t){var e={};e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===jr){for(var t="gc_site_test_".concat(X()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Qr(t,{domain:n});)n="".concat(e.pop(),".").concat(n),Gr(t,"test",st,{domain:n});Kr(t,{domain:n}),jr=n}return jr}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(X()),n="test";Gr(e,n,ut,t);var r=Qr(e,t)===n;return Kr(e,t),r}catch(t){return!1}}(e)?{type:"Cookie",cookieOptions:e}:void 0}function ui(t){var e;return{isLockEnabled:Bt()===Lt,persistSession:(e=t,function(t){Gr(Yr,oi(t),Jr,e)}),retrieveSession:ci(t),expireSession:function(){return function(t){Gr(Yr,oi({isExpired:"1"}),Xr,t)}(t)}}}function ci(t){return function(){return ai(Qr(Yr,t))}}function li(t){localStorage.setItem(Yr,oi(t))}function fi(){return ai(localStorage.getItem(Yr))}function di(){li({isExpired:"1"})}var pi,vi=[];function hi(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.isLockEnabled,i=e.persistSession,o=e.expireSession,a=function(t){return i(I({},t,{lock:u}))},s=function(){var t=e.retrieveSession(),n=t.lock;return t.lock&&delete t.lock,{session:t,lock:n}};if(pi||(pi=t),t===pi)if(r&&n>=100)gi(e);else{var u,c=s();if(r){if(c.lock&&!ri(c.session))return void mi(t,e,n);if(u=X(),a(c.session),(c=s()).lock!==u&&!ri(c.session))return void mi(t,e,n)}var l=t.process(c.session);if(!r||(c=s()).lock===u||ri(c.session)){if(l&&(ii(l)?o():(l.expire=String(yt()+Jr),r?a(l):i(l))),r&&(!l||!ii(l))){if((c=s()).lock!==u&&!ri(c.session))return void mi(t,e,n);i(c.session),l=c.session}t.after&&t.after(l||c.session),gi(e)}else mi(t,e,n)}else vi.push(t)}function mi(t,e,n){h((function(){hi(t,e,n+1)}),10)}function gi(t){pi=void 0;var e=vi.shift();e&&hi(e,t)}var yi=st;function _i(t){var e=si(t);return!e&&t.allowFallbackToLocalStorage&&(e=function(){try{var t=X(),e="".concat("_gc_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),e}function bi(t,e,n){var r,i=new Kn,o=new Kn,a=new Kn,s="Cookie"===t.type?ui(t.cookieOptions):{isLockEnabled:!1,persistSession:li,retrieveSession:fi,expireSession:di},u=s.expireSession,c=g((function(){hi({process:function(t){return ii(t)?{isExpired:"1"}:void 0},after:p},s)}),yi);v();var l=Q((function(){hi({process:function(t){if(!ri(t)){var r=p(t);return function(t){if(ri(t))return!1;var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,delete t.isExpired,o&&!t.id&&(t.id=X(),t.created=String(yt()))}(r),r}},after:function(t){ri(t)||h()||function(t){r=t,i.notify()}(t),r=t}},s)}),yi),f=l.throttled,d=l.cancel;function p(t){return ii(t)&&(t={isExpired:"1"}),h()&&(!function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(a.notify({previousState:r,newState:t}),r=t):(r={isExpired:"1"},o.notify())),t}function v(){hi({process:function(t){if(ri(t))return{isExpired:"1"}},after:function(t){r=t}},s)}function h(){return void 0!==r[e]}return{expandOrRenewSession:f,expandSession:function(){hi({process:function(t){return h()?p(t):void 0}},s)},getSession:function(){return r||{}},renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a,restartSession:v,expire:function(){d(),u(),p({isExpired:"1"})},stop:function(){y(c)},updateSessionState:function(t){hi({process:function(e){return I({},e,t)},after:p},s)}}}var wi={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Si(t){if(void 0===t.sampleRate||Pt(t.sampleRate))if(void 0===t.sessionSampleRate||Pt(t.sessionSampleRate)){if(void 0===t.telemetrySampleRate||Pt(t.telemetrySampleRate)){var e=$t(t.sessionSampleRate,t.sampleRate);return I({beforeSend:t.beforeSend&&d(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:_i(t),sessionSampleRate:$t(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:$t(t.telemetrySampleRate,100),telemetryEnabled:$t(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,resourceUrlLimit:5120,storeContextsToLocal:!!t.storeContextsToLocal,storeContextsKey:t.storeContextsKey,sendContentTypeByJson:!!t.sendContentTypeByJson,retryMaxSize:$t(t.retryMaxSize,-1)},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&M(t.isIntakeUrl)&&q(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&M(t.isServerError)&&q(t.isServerError())&&(n=t.isServerError),{rumEndpoint:Fr(t,"rum"),logsEndpoint:Fr(t,"log"),sessionReplayEndPoint:Fr(t,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}o.error("Telemetry Sample Rate should be a number between 0 and 100")}else o.error("Sample Rate should be a number between 0 and 100");else o.error("Sample Rate should be a number between 0 and 100")}function xi(t){return xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(t)}function Ei(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ki(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ei(Object(n),!0).forEach((function(e){Ti(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ti(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=xi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=xi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xi(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ci(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Oi(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oi(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ii(t,e){!function(t,e){var n=new XMLHttpRequest;Zn(n,"load",(function(){if(200===n.status){var t=JSON.parse(n.responseText);e(t.content)}else e({}),Ni()})),Zn(n,"error",(function(){e({}),Ni()})),n.open("GET",function(t){var e=t.datakitOrigin||t.datakitUrl||t.site;0===e.indexOf("/")&&(e=location.origin+Wr(e));var n=e;n=e.lastIndexOf("/")===e.length-1?Wr(e)+"v1/env_variable":Wr(e)+"/v1/env_variable";n+="?app_id="+t.applicationId,t.site&&t.clientToken&&(n=n+"&token="+t.clientToken+"&to_headless=true");return n}(t)),n.send()}(t,(function(n){e(function(t,e){var n={};for(var r in e){if(void 0!==e[r])n[r.replace("R."+t.applicationId+".","")]=e[r]}return ki(ki({},t),function(t,e){var n={};return F(e).forEach((function(e){var r=Ci(e,2),i=r[0],o=r[1],a=t[i];et(a)===o&&(n[i]=a)})),n}(n,Pi))}(t,n))}))}var Ai,Ri,Pi={sessionSampleRate:"number",telemetrySampleRate:"number",silentMultipleInit:"boolean",service:"string",env:"string",version:"string",tracingSampleRate:"number",useCrossSiteSessionCookie:"boolean",usePartitionedCrossSiteSessionCookie:"boolean",useSecureSessionCookie:"boolean",trackSessionAcrossSubdomains:"boolean",storeContextsToLocal:"boolean",storeContextsKey:"string",sendContentTypeByJson:"boolean",allowFallbackToLocalStorage:"boolean",sessionOnErrorSampleRate:"number",sessionReplaySampleRate:"number",sessionReplayOnErrorSampleRate:"number",trackUserInteractions:"boolean",trackInteractions:"boolean",actionNameAttribute:"string",trackViewsManually:"boolean",workerUrl:"string",compressIntakeRequests:"boolean",traceType:"string"};function Ni(){o.error("Error fetching the remote configuration.")}function Mi(){return Ai||(Ai=new Kn((function(t){if(window.fetch){var e=qn(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=t.handlingStack,o=n[0],a=n[1],s=a&&a.method;void 0===s&&o instanceof Request&&(s=o.method);var u=void 0!==s?String(s).toUpperCase():"GET",l=o instanceof Request?o.url:Mr(String(o)),f=mt(),d={state:"start",init:a,input:o,method:u,startClocks:f,url:l,handlingStack:i};e.notify(d),n[0]=d.input,n[1]=d.init,r((function(t){return function(t,e,n){var r=n,i=function(e){r.state="resolve",I(r,e),t.notify(r)};e.then(c((function(t){var e="";try{e=t.constructor===Response&&t.type||""}catch(t){e=""}i({response:t,responseType:e,status:t.status,isAborted:!1})})),c((function(t){i({status:0,isAborted:r.init&&r.init.signal&&r.init.signal.aborted||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})})))}(e,t,d)}))}(e,t)}),{computeHandlingStack:!0});return e.stop}}))),Ai}var Li=new WeakMap;function Di(){return Ri||(Ri=new Kn((function(t){var e=qn(XMLHttpRequest.prototype,"open",Ui),n=qn(XMLHttpRequest.prototype,"send",(function(e){!function(t,e){var n=t.target,r=t.handlingStack,i=Li.get(n);if(i){var o=i;o.state="start",o.startClocks=mt(),o.isAborted=!1,o.xhr=n,o.handlingStack=r;var a=!1,s=qn(n,"onreadystatechange",(function(){n.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(c(),s(),!a){a=!0;var t=i;t.state="complete",t.duration=_t(o.startClocks.timeStamp,gt()),t.status=n.status,e.notify(A(t))}},c=Zn(n,"loadend",u).stop;e.notify(o)}}(e,t)}),{computeHandlingStack:!0}),r=qn(XMLHttpRequest.prototype,"abort",Bi);return function(){e.stop(),n.stop(),r.stop()}}))),Ri}function Ui(t){var e=t.target,n=t.parameters[0],r=t.parameters[1];Li.set(e,{state:"open",method:String(n).toUpperCase(),url:Mr(String(r))})}function Bi(t){var e=t.target,n=Li.get(e);n&&(n.isAborted=!0)}var zi={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Vi(t){return It(D(zi),t)}function ji(t){return t.nodeType===Node.ELEMENT_NODE}function $i(t){return ji(t)&&Boolean(t.shadowRoot)}function Hi(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&ji(e.host)}function Fi(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;$i(t)&&e(t.shadowRoot)}function Wi(t){return Hi(t)?t.host:t.parentNode}function qi(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:ot}):Zn(window,"complete"===t?ae:me,e,{once:!0})}function Gi(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function Qi(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}var Ki={sdk_name:"_gc.sdk_name",sdk_version:"_gc.sdk_version",app_id:"application.id",env:"env",service:"service",version:"version",source:"source",userid:"user.id",user_email:"user.email",user_name:"user.name",session_id:"session.id",session_type:"session.type",session_sampling:"session.is_sampling",is_signin:"user.is_signin",os:"device.os",os_version:"device.os_version",os_version_major:"device.os_version_major",browser:"device.browser",browser_version:"device.browser_version",browser_version_major:"device.browser_version_major",screen_size:"device.screen_size",network_type:"device.network_type",device:"device.device",view_id:"view.id",view_referrer:"view.referrer",view_url:"view.url",view_host:"view.host",view_path:"view.path",view_name:"view.name",view_path_group:"view.path_group"},Xi={view_url_query:"view.url_query",action_id:"action.id",action_ids:"action.ids",view_in_foreground:"view.in_foreground",display:"display",session_has_replay:"session.has_replay",is_login:"user.is_login",page_states:"_gc.page_states",session_sample_rate:"_gc.configuration.session_sample_rate",session_replay_sample_rate:"_gc.configuration.session_replay_sample_rate",session_on_error_sample_rate:"_gc.configuration.session_on_error_sample_rate",session_replay_on_error_sample_rate:"_gc.configuration.session_replay_on_error_sample_rate",drift:"_gc.drift"},Ji={view:{type:Xe.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{sampled_for_replay:"session.sampled_for_replay",sampled_for_error_replay:"session.sampled_for_error_replay",sampled_for_error_session:"session.sampled_for_error_session",session_error_timestamp:"session.error_timestamp_for_session",is_active:"view.is_active",session_replay_stats:"_gc.replay_stats",session_is_active:"session.is_active",view_error_count:"view.error.count",view_resource_count:"view.resource.count",view_long_task_count:"view.long_task.count",view_action_count:"view.action.count",first_contentful_paint:"view.first_contentful_paint",largest_contentful_paint:"view.largest_contentful_paint",largest_contentful_paint_element_selector:"view.largest_contentful_paint_element_selector",cumulative_layout_shift:"view.cumulative_layout_shift",cumulative_layout_shift_time:"view.cumulative_layout_shift_time",cumulative_layout_shift_target_selector:"view.cumulative_layout_shift_target_selector",first_input_delay:"view.first_input_delay",loading_time:"view.loading_time",dom_interactive:"view.dom_interactive",dom_content_loaded:"view.dom_content_loaded",dom_complete:"view.dom_complete",load_event:"view.load_event",first_input_time:"view.first_input_time",first_input_target_selector:"view.first_input_target_selector",first_paint_time:"view.fpt",interaction_to_next_paint:"view.interaction_to_next_paint",interaction_to_next_paint_target_selector:"view.interaction_to_next_paint_target_selector",resource_load_time:"view.resource_load_time",time_to_interactive:"view.tti",dom:"view.dom",dom_ready:"view.dom_ready",time_spent:"view.time_spent",first_byte:"view.first_byte",frustration_count:"view.frustration.count",custom_timings:"view.custom_timings"}},resource:{type:Xe.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",resource_id:"resource.id",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",resource_url:"resource.url",resource_url_host:"resource.url_host",resource_url_path:"resource.url_path",resource_url_path_group:"resource.url_path_group",resource_url_query:"resource.url_query",resource_delivery_type:"resource.delivery_type",resource_type:"resource.type",resource_protocol:"resource.protocol",resource_encode_size:"resource.encoded_body_size",resource_decode_size:"resource.decoded_body_size",resource_transfer_size:"resource.transfer_size",resource_render_blocking_status:"resource.render_blocking_status",resource_dns:"resource.dns",resource_tcp:"resource.tcp",resource_ssl:"resource.ssl",resource_ttfb:"resource.ttfb",resource_trans:"resource.trans",resource_redirect:"resource.redirect",resource_first_byte:"resource.firstbyte",resource_dns_time:"resource.dns_time",resource_download_time:"resource.download_time",resource_first_byte_time:"resource.first_byte_time",resource_connect_time:"resource.connect_time",resource_ssl_time:"resource.ssl_time",resource_redirect_time:"resource.redirect_time"}},error:{type:Xe.ERROR,tags:{error_id:"error.id",trace_id:"_gc.trace_id",span_id:"_gc.span_id",error_source:"error.source",error_type:"error.type",error_handling:"error.handling"},fields:{error_message:["string","error.message"],error_stack:["string","error.stack"],error_causes:["string","error.causes"],error_handling_stack:["string","error.handling_stack"]}},long_task:{type:Xe.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration",blocking_duration:"long_task.blocking_duration",first_ui_event_timestamp:"long_task.first_ui_event_timestamp",render_start:"long_task.render_start",style_and_layout_start:"long_task.style_and_layout_start",long_task_start_time:"long_task.start_time",scripts:["string","long_task.scripts"]}},action:{type:Xe.ACTION,tags:{action_type:"action.type"},fields:{action_name:"action.target.name",duration:"action.loading_time",action_error_count:"action.error.count",action_resource_count:"action.resource.count",action_frustration_types:"action.frustration.type",action_long_task_count:"action.long_task.count",action_target:"_gc.action.target",action_position:"_gc.action.position"}},telemetry:{type:"telemetry",fields:{status:"telemetry.status",message:["string","telemetry.message"],type:"telemetry.type",error_stack:["string","telemetry.error.stack"],error_kind:["string","telemetry.error.kind"],connectivity:["string","telemetry.connectivity"],runtime_env:["string","telemetry.runtime_env"],usage:["string","telemetry.usage"],configuration:["string","telemetry.configuration"]}},browser_log:{type:Xe.LOGGER,tags:{error_source:"error.source",error_type:"error.type",error_resource_url:"http.url",error_resource_url_host:"http.url_host",error_resource_url_path:"http.url_path",error_resource_url_path_group:"http.url_path_group",error_resource_status:"http.status_code",error_resource_status_group:"http.status_group",error_resource_method:"http.method",action_id:"user_action.id",service:"service",status:"status"},fields:{message:["string","message"],error_message:["string","error.message"],error_stack:["string","error.stack"]}}},Yi=ut,Zi=Xr,to=[];function eo(t,e,n){var r=new Kn,i=new Kn,o=bi(t.sessionStoreStrategyType,e,n);to.push((function(){return o.stop()}));var a,s=Jt({expireDelay:Zi});function u(){return{id:o.getSession().id,trackingType:o.getSession()[e],hasError:!!o.getSession().hasError}}return to.push((function(){return s.stop()})),o.renewObservable.subscribe((function(){s.add(u(),ht()),r.notify()})),o.expireObservable.subscribe((function(){i.notify(),s.closeActive(ht())})),o.expandOrRenewSession(),s.add(u(),bt().relative),a=tr(window,[re,ce,oe,ue],(function(){o.expandOrRenewSession()}),{capture:!0,passive:!0}).stop,to.push(a),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=Zn(document,de,e).stop;to.push(n);var r=g(e,Yi);to.push((function(){y(r)}))}((function(){return o.expandSession()})),function(t){var e=Zn(window,he,t,{capture:!0}).stop;to.push(e)}((function(){o.restartSession()})),{findSession:function(t,e){return s.find(t,e)},renewObservable:r,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}var no=3145728,ro=st,io=0,oo=1,ao=2,so=0,uo=1;function co(t,e,n,r,i){e.transportStatus===io&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?fo(t,e,n,{onSuccess:function(){return po(so,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),lo(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function lo(t,e,n,r){t.transportStatus===ao&&h((function(){fo(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=ro,po(uo,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),lo(t,e,n,r)}})}),t.currentBackoffTime)}function fo(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t,e,n){return!(e.retryMaxSize>-1&&n.retry&&n.retry.count>e.retryMaxSize)&&("opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500))}(n,e,t)?(e.transportStatus=io,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?oo:ao,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function po(t,e,n,r,i){t===so&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: 3MiB",source:Vn.AGENT,startClocks:mt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=vo();o.size()>0;)co(o.dequeue(),e,n,r,i)}function vo(){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>=no}}}function ho(){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?void 0:t.effectiveType}}var mo="log",go="configuration",yo="usage",_o="debug",bo="error",wo=["https://static.guance.com","http://localhost","<anonymous>"],So="browser-rum-sdk",xo=Kt(),Eo=function(t){xo.add((function(){Eo(t)}))};function ko(t,e){var n,i=new Kn,o=new Set,a=e.telemetryEnabled&&ct(e.telemetrySampleRate),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return Eo=function(r){var u=hn(r);if(a&&o.size<e.maxTelemetryEventsPerPage&&!o.has(u)){var c=function(t,e,r){return P({type:"telemetry",date:gt(),service:t,version:"3.2.22",source:"browser",telemetry:P(e,{runtime_env:r,connectivity:ho()})},void 0!==n?n():{})}(t,r,s);i.notify(c),o.add(u)}},r=Co,{setContextProvider:function(t){n=t},observable:i,enabled:a}}function To(t,e){f(t,e),Eo(I({type:mo,message:t,status:_o},e))}function Co(t,e){Eo(I({type:mo,status:bo},function(t){if(t instanceof Error){var e=_n(t);return{error:{kind:e.name,stack:Hn(Io(e))},message:e.message}}return{error:{stack:zn},message:dn+" "+hn(t)}}(t),e))}function Oo(t){Eo({type:yo,usage:t})}function Io(t){return t.stack=t.stack.filter((function(t){return!t.url||wo.some((function(e){return Ft(t.url,e)}))})),t}function Ao(t,e){return t?(t=t+(-1===t.indexOf("?")?"?":"&")+"precision=ms",e&&(t=t+"&encoding="+e),t):t}function Ro(t,e,n,r){void 0===n&&(n=-1);var i=function(t){return{transportStatus:io,currentBackoffTime:ro,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:vo(),queueFullReported:!1,retryMaxSize:t}}(n),o=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=Ao(t,n.encoding),s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&o<e;if(s){var u={method:"POST",body:i,keepalive:!0,mode:"cors"};n.type&&(u.headers={"Content-Type":n.type}),fetch(a,u).then(c((function(t){"function"==typeof r&&r({status:t.status,type:t.type})})),c((function(){No(a,n,r)})))}else No(a,n,r)}(t,e,n,r)};return{send:function(e){co(e,i,o,t,r)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=Ao(t,n.encoding),a=!!navigator.sendBeacon&&i<e;if(a)try{var s;if(s=n.type?new Blob([r],{type:n.type}):r,navigator.sendBeacon(o,s))return}catch(t){!function(t){Po||(Po=!0,Co(t))}(t)}No(o,n)}(t,e,n)}}}var Po=!1;function No(t,e,n){var r=e.data,i=new XMLHttpRequest;i.open("POST",t,!0),r instanceof Blob?i.setRequestHeader("Content-Type",r.type):e.type&&i.setRequestHeader("Content-Type",e.type),Zn(i,"loadend",(function(){"function"==typeof n&&n({status:i.status})}),{once:!0}),i.send(r)}function Mo(t){return Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(t)}function Lo(t){if("object"===Mo(t)&&t)t=hn(t);else if(!W(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function Do(t,e){return"object"===Mo(t)&&t?t=hn(t):e&&(t=""+t),t}function Uo(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function Bo(t){return"object"===Mo(t)&&t?Uo(hn(t)):W(t)?Uo(t):t}var zo="custom_keys",Vo=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return O(Ji,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=R({},Ki,i.tags),u=["date","type",zo];O(s,(function(n,r){var i=Tt(t,n);u.push(r),(i||G(i))&&(e.tags[r]=Do(i,!0),a.push(Lo(r)+"="+Lo(i)))}));var c=[],l=R({},Xi,i.fields);if(O(l,(function(n,r){if(N(n)&&2===n.length){var i=n[1],o=Tt(t,i);u.push(r),null!=o&&(e.fields[r]=Do(o),c.push(Lo(r)+"="+Bo(o)))}else if(W(n)){o=Tt(t,n);u.push(r),null!=o&&(e.fields[r]=Do(o),c.push(Lo(r)+"="+Bo(o)))}})),t.context&&$(t.context)&&!H(t.context)){var f=[];O(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=Do(t),c.push(Lo(n)+"="+Bo(t))))})),f.length&&(e.fields[zo]=Do(f),c.push(Lo(zo)+"="+Bo(f)))}t.type===Xe.LOGGER&&O(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=Do(t),c.push(Lo(n)+"="+Bo(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=t.date}})),{rowStr:n?r:"",rowData:n?e:void 0}};function jo(t){var e=t.encoder,n=t.request,r=t.messageBytesLimit,i=t.sendContentTypeByJson,a=t.flushController,s={},u=a.flushObservable.subscribe((function(t){!function(t){var r=D(s).join(i?",":"\n");s={};var o=Vi(t.reason),a=o?n.sendOnExit:n.send;if(o&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&a($o(u,i));var l=[u.pendingData,r].filter(Boolean).join("\n");l&&a({data:l,bytesCount:Nn(l)})}else{if(r){var f=c([r],e.isEmpty());i&&(f+="]"),e.write(f)}else i&&e.write("]");e.finish((function(t){a($o(t))}))}}(t)}));function c(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i?e?"["+t.join(","):","+t.join(","):e?t.join("\n"):"\n"+t.join("\n")}function l(t,n){var u=function(t){return i?hn(Vo(t).rowData):Vo(t).rowStr}(t),l=e.estimateEncodedBytesCount(u);l>=r?o.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(r,"KB.")):(function(t){return void 0!==t&&void 0!==s[t]}(n)&&function(t){var n=s[t];delete s[t];var r=e.estimateEncodedBytesCount(n);a.notifyAfterRemoveMessage(r)}(n),function(t,n,r){a.notifyBeforeAddMessage(n),void 0!==r?(s[r]=t,a.notifyAfterAddMessage()):e.write(c([t],e.isEmpty()),(function(t){a.notifyAfterAddMessage(t-n)}))}(u,l,n))}return{flushController:a,add:l,upsert:l,stop:u.unsubscribe}}function $o(t,e){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),type:e?"application/json;UTF-8":void 0,bytesCount:t.outputBytesCount,encoding:t.encoding}}function Ho(t){var e=t.messagesLimit,n=t.bytesLimit,r=t.durationLimit,i=t.pageExitObservable,o=t.sessionExpireObservable;i.subscribe((function(t){return l(t.reason)})),o.subscribe((function(){return l("session_expire")}));var a,s=new Kn((function(){return function(){pageExitSubscription.unsubscribe(),sessionExpireSubscription.unsubscribe()}})),u=0,c=0;function l(t){if(0!==c){var e=c,n=u;c=0,u=0,f(),s.notify({reason:t,messagesCount:e,bytesCount:n})}}function f(){m(a),a=void 0}return{flushObservable:s,getMessagesCount:function(){return c},notifyBeforeAddMessage:function(t){u+t>=n&&l("bytes_limit"),c+=1,u+=t,void 0===a&&(a=h((function(){l("duration_limit")}),r))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),u+=t,c>=e?l("messages_limit"):u>=n&&l("bytes_limit")},notifyAfterRemoveMessage:function(t){u-=t,0===(c-=1)&&f()}}}function Fo(){var t=v().FTWebViewJavascriptBridge;if(t)return{getCapabilities:function(){return JSON.parse(t.getCapabilities&&t.getCapabilities()||"[]")},getPrivacyLevel:function(){return t.getPrivacyLevel&&t.getPrivacyLevel()},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n,r){var i=r?{id:r}:void 0;t.sendEvent(JSON.stringify({name:e,data:n,view:i}))}}}var Wo="records";function qo(t){var e=Fo();return!!e&&e.getCapabilities().includes(t)}function Go(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(t=v().location)||void 0===t?void 0:t.hostname,n=Fo();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||e.endsWith(".".concat(t))}))}function Qo(t){return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(t)}function Ko(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Xo(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xo(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Jo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yo(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Qo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qo(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zo(t,e,n){for(var r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jo(Object(n),!0).forEach((function(e){Yo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),i=0,a=Object.entries(e);i<a.length;i++){var s=Ko(a[i],2),u=s[0],c=s[1],l=c.required;"string"===c.type&&u in r&&(r[u]=String(r[u])),l&&!(u in t)&&o.warn("The property ".concat(u," of ").concat(n," context is required; context will not be sent to the intake."))}return r}function ta(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.customerDataTracker,r=e.propertiesConfig,i=void 0===r?{}:r,o={},a=new Kn,s={getContext:function(){return rt(o)},setContext:function(e){"object"===et(e)?(o=Ln(Zo(e,i,t)),null==n||n.updateCustomerData(o)):s.clearContext(),a.notify()},setContextProperty:function(e,r){o[e]=Ln(Zo(Yo({},e,r),i,t)[e]),null==n||n.updateCustomerData(o),a.notify()},removeContextProperty:function(e){delete o[e],null==n||n.updateCustomerData(o),Zo(o,i,t),a.notify()},clearContext:function(){o={},null==n||n.resetCustomerData(),a.notify()},changeObservable:a};return s}var ea="user",na="global context",ra="view",ia="_gc_s",oa=[];function aa(t,e,n,r){var i=function(t,e,n){return t.storeContextsKey&&W(t.storeContextsKey)?ia+"_"+e+"_"+n+"_"+t.storeContextsKey:ia+"_"+e+"_"+n}(t,n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}return oa.push(Zn(window,Me,(function(t){i===t.key&&e.setContext(o())}))),e.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(e.getContext()))})),e.setContext(P(o(),e.getContext())),e}var sa=0,ua=1,ca=2;function la(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ca,e=new Map,n=!1;function r(){if(!n&&t!==sa){var r=t===ca?3072:16384,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e.forEach((function(t){i+=t.getBytesCount()})),i>r&&(!function(t){o.warn("Customer data exceeds the recommended ".concat(t/Rn,"KiB threshold."))}(r),n=!0)}}return{createDetachedTracker:function(){var t=fa((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,fa(r)),e.get(t)},setCompressionStatus:function(e){t===sa&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}function fa(t){var e=0,n=Q((function(n){e=Nn(hn(n)),t()}),200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){H(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function da(){var t="",e=0;return{isAsync:!1,isEmpty:function(){return!t},write:function(n,r){var i=Nn(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}}}function pa(t){var e=I({},t);return O(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function va(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}function ha(t,e){e.silentMultipleInit||o.error(t+" is already initialized.")}va.prototype.add=function(t){return this.map.set(t,1),this},va.prototype.delete=function(t){return this.map.delete(t)},va.prototype.has=function(t){return this.map.has(t)};var ma=1,ga=2,ya=3,_a="0",ba="1",wa="2",Sa="3",xa="4",Ea="5",ka="6";function Ta(t,e){var n=eo(t,"rum",(function(e){return function(t,e){var n,r=t.sessionSampleRate,i=t.sessionOnErrorSampleRate,o=t.sessionReplaySampleRate,a=t.sessionReplayOnErrorSampleRate,s=ct(r),u=ct(i),c=ct(o),l=ct(a);!function(t){return t===_a||t===Ea||t===ka||t===xa||t===wa||t===Sa||t===ba}(e)?u||s?s&&c?n=ba:s&&l?n=Sa:!s||c||l?u&&c?n=xa:u&&l?n=ka:!u||c||l||(n=Ea):n=wa:n=_a:n=e;return{trackingType:n,isTracked:Ca(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(mr)})),n.renewObservable.subscribe((function(){e.notify(hr)})),n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,r=t.newState;if(!e.hasError&&r.hasError){var i=n.findSession();i&&(i.hasError=!0,i.ets=r.ets||gt())}})),{findTrackedSession:function(t){var e=n.findSession(t);if(e&&Ca(e.trackingType)){var r=e.trackingType===Ea||e.trackingType===xa||e.trackingType===ka,i=ma;return e.trackingType===ba||e.trackingType===xa?i=ga:e.trackingType!==ka&&e.trackingType!==Sa||(i=ya),{id:e.id,plan:i,errorSessionReplayAllowed:i===ya,sessionHasError:e.hasError,isErrorSession:r,sessionErrorTimestamp:e.ets,sessionReplayAllowed:i===ga||i===ya}}},expire:n.expire,expireObservable:n.expireObservable,sessionStateUpdateObservable:n.sessionStateUpdateObservable,setErrorForSession:function(){return n.updateSessionState({hasError:"1",ets:gt()})}}}function Ca(t){return t!==_a}var Oa="_gc_usr_id";var Ia=function(t){var e;if(t.sessionStoreStrategyType)return e="Cookie"===t.sessionStoreStrategyType.type?function(t){var e=Qr(Oa,t);return e||(e=X(),Gr(Oa,e,5184e6,t)),e}(t.sessionStoreStrategyType.cookieOptions):function(){var t=localStorage.getItem(Oa);return t||(t=X(),localStorage.setItem(Oa,t)),t}(),{getId:function(){return e}}};function Aa(){var t,e=window;if(e.Zone&&(t=a(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=a(new e.MutationObserver(ot),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function Ra(t){var e=A(t);return new Kn((function(n){var r,i,o,a,s=(r=c,i=qn(History.prototype,"pushState",(function(t){(0,t.onPostCall)(r)})),o=qn(History.prototype,"replaceState",(function(t){(0,t.onPostCall)(r)})),a=Zn(window,se,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),u=Zn(window,be,c);function c(){if(e.href!==t.href){var r=A(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){s.stop(),u.stop()}}))}var Pa="initial_document",Na=[[Le,function(t){return Pa===t}],[De,function(t){return"xmlhttprequest"===t}],[Be,function(t){return"fetch"===t}],[Ue,function(t){return"beacon"===t}],[ze,function(t,e){return null!==e.match(/\.css$/i)}],[Ve,function(t,e){return null!==e.match(/\.js$/i)}],[je,function(t,e){return It(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[$e,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[He,function(t,e){return It(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Ma(t){var e=t.name;if(!function(t){try{return!!Dr(t)}catch(t){return!1}}(e))return Fe;var n=function(t){var e=Dr(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=Fe;return O(Na,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function La(){for(var t=L(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function Da(t){return""===t.deliveryType?"other":t.deliveryType}function Ua(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}var Ba=/[^\u0000-\u007F]/;function za(t,e){return n=t,(Ba.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function Va(t){return 0===t.duration&&t.startTime<t.responseEnd?ft(t.responseEnd-t.startTime):ft(t.duration)}function ja(t){if(Ha(t)){var e=t.startTime,n=t.fetchStart,r=t.redirectStart,i=t.redirectEnd,o=t.domainLookupStart,a=t.domainLookupEnd,s=t.connectStart,u=t.secureConnectionStart,c=t.connectEnd,l=t.requestStart,f=t.responseStart,d=t.responseEnd,p={firstbyte:ft(f-l),trans:ft(d-f),downloadTime:Wa(e,f,d),firstByteTime:Wa(e,l,f)};return f>0&&f<=ht()&&(p.ttfb=ft(f-l)),c!==n&&(p.tcp=ft(c-s),p.connectTime=Wa(e,s,c),La(s,u,c)&&(p.ssl=ft(c-u),p.sslTime=Wa(e,u,c))),a!==n&&(p.dns=ft(a-o),p.dnsTime=Wa(e,o,a)),Fa(t)&&(p.redirect=ft(i-r),p.redirectTime=Wa(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function $a(t){return t.duration>=0}function Ha(t){var e=La(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!Fa(t)||La(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function Fa(t){return t.redirectEnd>t.startTime}function Wa(t,e,n){return{duration:ft(n-e),start:ft(e-t)}}function qa(t){return t.startTime<t.responseStart?{size:t.decodedBodySize,encodedBodySize:t.encodedBodySize,decodedBodySize:t.decodedBodySize,transferSize:t.transferSize}:{size:void 0,encodedBodySize:void 0,decodedBodySize:void 0,transferSize:void 0}}function Ga(t,e){return e&&!function(t,e){var n=[e.rumEndpoint];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),z(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}var Qa=/data:(.+)?(;base64)?,/g;function Ka(t){return!(t.length<=24e3)&&("data:"===t.substring(0,5)&&(t=t.substring(0,24e3),!0))}function Xa(t){return t.match(Qa)[0]+"[...]"}function Ja(t,e){var n=yt(),r=!1,i=tr(window,[re,Se,oe,ce,ge],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:ht(),processingEnd:ht(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};t.type===ge?function(t){tr(window,[ye,_e],(function(e){e.type===ye&&o(t)}),{once:!0})}(e):o(e)}}),{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<yt()-n&&e(t)}}}var Ya,Za="event",ts="first-input",es="largest-contentful-paint",ns="layout-shift",rs="longtask",is="long-animation-frame",os="navigation",as="paint",ss="resource",us="visibility-state";function cs(t,e){return new Kn((function(n){if(window.PerformanceObserver){var r,i,o=function(e){var r=function(t,e){return e.filter((function(e){return!function(t,e){return!(e.entryType!==ss||Ga(t,e.name)&&$a(e))}(t,e)}))}(t,e);r.length>0&&n.notify(r)},a=!0,s=new PerformanceObserver(c((function(t){a?r=h((function(){o(t.getEntries())})):o(t.getEntries())})));try{s.observe(e)}catch(t){if(It([ss,os,rs,as],e.type)){e.buffered&&(r=h((function(){o(performance.getEntriesByType(e.type))})));try{s.observe({entryTypes:[e.type]})}catch(t){return}}}if(a=!1,function(){!Ya&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(Ya=Zn(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(),!ls(ts)&&e.type===ts){var u=Ja(0,(function(t){o([t])}));i=u.stop}return function(){s.disconnect(),i&&i(),m(r)}}}))}function ls(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function fs(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=ot);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(wr,(function(t){if(t.type!==Xe.VIEW&&n(t))switch(t.type){case Xe.ERROR:i.errorCount+=1,r();break;case Xe.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case Xe.LONG_TASK:i.longTaskCount+=1,r();break;case Xe.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var ds=100;function ps(t,e,n,r,i){var o=function(t,e,n){return new Kn((function(r){var i,o=[],a=0;o.push(e.subscribe((function(){u()})),cs(n,{type:ss}).subscribe((function(t){z(t,(function(t){return!vs(n,t.name)}))&&u()})),t.subscribe(yr,(function(t){vs(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(_r,(function(t){vs(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=qn(window,"open",u).stop;return function(){s(),O(o,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}))}(t,e,n);return function(t,e,n){var r,i=!1,o=h((function(){c({hadActivity:!1})}),100),a=void 0!==n?h((function(){return c({hadActivity:!0,end:gt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;m(o),m(r);var n=gt();e||(r=h((function(){c({hadActivity:!0,end:n})}),100))})),u=function(){i=!0,m(o),m(r),m(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function vs(t,e){return V(t.excludedActivityUrls,e)}var hs=st,ms=0,gs=1,ys=2;function _s(t,e){var n,r=[],i=ms;function o(t){t.stopObservable.subscribe(a),r.push(t),m(n),n=h(s,hs)}function a(){i===gs&&function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r}(r,(function(t){return t.isStopped()}))&&(i=ys,e(r))}function s(){m(n),i===ms&&(i=gs,a())}return o(t),{tryAppend:function(t){return i===ms&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=hs))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var bs="data-guance-action-name";function ws(t,e){return Ss(t,bs)||e&&Ss(t,e)||Os(t,e,ks)||Os(t,e,Ts)||""}function Ss(t,e){var n;if(function(){void 0===Es&&(Es="closest"in HTMLElement.prototype);return Es}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return As(Is(n.getAttribute(e).trim()))}var xs,Es,ks=[function(t,e){if(function(){void 0===xs&&(xs="labels"in HTMLInputElement.prototype);return xs}()){if("labels"in t&&t.labels&&t.labels.length>0)return Rs(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&At(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&Rs(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return Rs(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n=n.split(/\s+/),n=B(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=U(n,(function(t){return Boolean(t)})),(n=B(n,(function(t){return Rs(t,e)}))).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return Rs(t.options[0],e)}],Ts=[function(t,e){return Rs(t,e)}],Cs=10;function Os(t,e,n){for(var r=t,i=0;i<=Cs&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0;o<n.length;o++){var a=(0,n[o])(r,e);if("string"==typeof a){var s=a.trim();if(s)return As(Is(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Is(t){return t.replace(/\s+/g," ")}function As(t){return t.length>100?Ct(t,100)+" [...]":t}function Rs(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return Bt()===Mt&&r("script, style"),r("["+bs+"]"),e&&r("["+e+"]"),n}return t.textContent}}var Ps,Ns=[bs,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Ms=[Bs,function(t){if(t.id&&!Us(t.id))return"#"+j(t.id)}],Ls=[Bs,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e<t.classList.length;e+=1){var n=t.classList[e];if(!Us(n))return j(t.tagName)+"."+j(n)}},function(t){return j(t.tagName)}];function Ds(t,e){if(function(t){if("isConnected"in t)return t.isConnected;return t.ownerDocument.documentElement.contains(t)}(t)){for(var n,r=t;r&&"HTML"!==r.nodeName;){var i=Vs(r,Ms,js,e,n);if(i)return i;n=Vs(r,Ls,$s,e,n)||Hs(zs(r),n),r=r.parentElement}return n}}function Us(t){return/[0-9]/.test(t)}function Bs(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<Ns.length;n++){var r;if(r=i(Ns[n]))return r}function i(e){if(t.hasAttribute(e))return j(t.tagName)+"["+e+'="'+j(t.getAttribute(e))+'"]'}}function zs(t){for(var e=t.parentElement&&t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;var r=j(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function Vs(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 Hs(a,i)}}function js(t,e,n){return 1===t.ownerDocument.querySelectorAll(Hs(e,n)).length}function $s(t,e,n){var r;if(void 0===n)r=function(t){return t.matches(e)};else{var i=function(){if(void 0===Ps)try{document.querySelector(":scope"),Ps=!0}catch(t){Ps=!1}return Ps}()?Hs("".concat(e,":scope"),n):Hs(e,n);r=function(t){return null!==t.querySelector(i)}}for(var o=t.parentElement.firstElementChild;o;){if(o!==t&&r(o))return!1;o=o.nextElementSibling}return!0}function Hs(t,e){return e?t+">"+e:t}function Fs(){var t=window.getSelection();return!t||t.isCollapsed}function Ws(t){return t.target instanceof Element&&!1!==t.isPrimary}function qs(t,e){if(function(t){if(z(t,(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<=st)return!0;return!1}(t))return e.addFrustration(Ge),z(t,Qs)&&e.addFrustration(Ke),e.hasError()&&e.addFrustration(Qe),{isRage:!0};var n=z(t,(function(t){return t.getUserActivity().selection}));return O(t,(function(t){t.hasError()&&t.addFrustration(Qe),Qs(t)&&!n&&t.addFrustration(Ke)})),{isRage:!1}}var Gs='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] *';function Qs(t){return!(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)&&(e=t.event.target,n=Gs,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var Ks=1e4,Xs=new Map;function Js(t,e){Xs.set(t,e),Xs.forEach((function(t,e){_t(e,ht())>1e4&&Xs.delete(e)}))}function Ys(t,e,n){var r,i=new Jt({expireDelay:3e5}),o=new Kn;t.subscribe(hr,(function(){i.reset()})),t.subscribe(pr,p);var a,s,u,c,l,f=(a={onPointerDown:function(r){return function(t,e,n,r){var i,o,a,s,u=(i=r,o=t.actionNameAttribute,a=i.target.getBoundingClientRect(),(s=Ds(i.target,o))&&Js(i.timeStamp,s),{type:We,target:{width:Math.round(a.width),height:Math.round(a.height),selector:s},position:{x:Math.round(i.clientX-a.left),y:Math.round(i.clientY-a.top)},name:ws(i.target,o)}),c=!1;return ps(e,n,t,(function(t){c=t.hadActivity}),ds),{clickActionBase:u,hadActivityOnPointerDown:function(){return c}}}(n,t,e,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var l=tu(e,r,u,a,s);o(l);var f=a&&a.target&&a.target.selector;f&&Js(s.timeStamp,f);var d=ps(e,n,t,(function(t){t.hadActivity&&t.end<l.startClocks.timeStamp?l.discard():t.hadActivity?l.stop(t.end):c()?l.stop(l.startClocks.timeStamp):l.stop()}),Ks),p=d.stop,v=e.subscribe(pr,(function(t){l.stop(t.endClocks.timeStamp)})),h=i.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){v.unsubscribe(),p(),h.unsubscribe()}))}(n,t,e,i,o,v,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1,scroll:!1},l=[Zn(window,ge,(function(t){Ws(t)&&(s=Fs(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),Zn(window,Ne,(function(){s&&Fs()||(c.selection=!0)}),{capture:!0}),Zn(window,ye,(function(t){if(Ws(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),Zn(window,ue,(function(){c.scroll=!0}),{capture:!0,passive:!0}),Zn(window,Ie,(function(){c.input=!0}),{capture:!0})],{stop:function(){O(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){var e=i.findAll(t);if(e&&e.length)return e[e.length-1]},findAllActionId:function(t){return i.findAll(t)}}};function p(){r&&r.stop()}function v(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=_s(t,(function(t){!function(t,e){var n=qs(t,e),r=n.isRage;r?(O(t,(function(t){t.discard()})),e.stop(gt()),e.validate(B(t,(function(t){return t.event})))):(e.discard(),O(t,(function(t){t.validate()})))}(t,e)}))}}}var Zs={ONGOING:0,STOPPED:1,FINALIZED:2};function tu(t,e,n,r,i){var o,a=X(),s=mt(),u=e.add(a,s.relative),c=fs({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(N(t.action.ids)?It(t.action.ids,a):t.action.ids===a)}}),l=Zs.ONGOING,f=[],d=new Kn;function p(t){l===Zs.ONGOING&&(o=t,l=Zs.STOPPED,o?u.close(pt(o)):u.remove(),c.stop(),d.notify())}return{event:i,stop:p,stopObservable:d,hasError:function(){return c.eventCounts.errorCount>0},hasPageActivity:function(){return void 0!==o},getUserActivity:n,addFrustration:function(t){f.push(t)},startClocks:s,isStopped:function(){return l===Zs.STOPPED||l===Zs.FINALIZED},clone:function(){return tu(t,e,n,r,i)},validate:function(e){if(p(),l===Zs.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,v=n.longTaskCount,h=I({type:We,duration:o&&_t(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:v},events:$t(e,[i]),event:i},r);t.notify(ur,h),l=Zs.FINALIZED}},discard:function(){p(),l=Zs.FINALIZED}}}var eu=Xr,nu="active",ru="passive",iu="hidden",ou="frozen",au="terminated";function su(t){void 0===t&&(t=500);var e,n=Jt({expireDelay:eu,maxEntries:4e3});i(uu(),ht());var r=tr(window,[pe,Ee,ke,de,he,ve,we],(function(t){i(function(t){if(t.type===ve)return ou;if(t.type===we)return t.persisted?ou:au;return uu()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=ht()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}var o={findAll:function(e,r){var i=n.findAll(e,r);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-t),s=i.length-1;s>=a;s--){var u=i[s],c=_t(e,u.startTime);o.push({state:u.state,start:dt(c)})}return o}},wasInPageStateAt:function(t,e){return o.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,r){return n.findAll(e,r).some((function(e){return e.state===t}))},addPageState:i,stop:function(){r(),n.stop()}};return o}function uu(){return"hidden"===document.visibilityState?iu:document.hasFocus()?nu:ru}function cu(t,e){var n=lu(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Qt(dt(t.duration)),frustration:{type:t.frustrationTypes},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_gc:{action:{target:t.target,position:t.position}}}:{action:{loadingTime:0}};return{customerContext:lu(t)?void 0:t.context,rawRumEvent:P({action:{id:X(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:Xe.ACTION,view:{in_foreground:e.wasInPageStateAt(nu,t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:lu(t)?{event:t.event,events:t.events}:{}}}function lu(t){return t.type!==qe}var fu=1,du=2;function pu(t,e){var n,r=0,i=[],o=0,a=[],s=Zn(t,"message",(function(t){var o=t.data;if(!("wrote"!==o.type||o.streamId&&o.streamId!==e)){r+=o.additionalBytesCount,i.push(o.result),n=o.trailer;var u=a.shift();u&&u.id===o.id?u.writeCallback?u.writeCallback(o.result.byteLength):u.finishCallback&&u.finishCallback():(s(),To("Worker responses received out of order."))}})).stop;function u(){var t=0===i.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,i=0,o=t;i<o.length;i++){var a=o[i];n.set(a,r),r+=a.length}return n}(i.concat(n)),e={rawBytesCount:r,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return r=0,i=[],e}function c(){o>0&&(t.postMessage({action:"reset",streamId:e}),o=0)}return{isAsync:!0,isEmpty:function(){return 0===o},write:function(n,r){t.postMessage({action:"write",id:o,data:n,streamId:e}),a.push({id:o,writeCallback:r,data:n}),o+=1},finish:function(t){c(),a.length?(a.forEach((function(t){delete t.writeCallback})),a[a.length-1].finishCallback=function(){return t(u())}):t(u())},finishSync:function(){c();var t=a.map((function(t){return delete t.writeCallback,delete t.finishCallback,t.data})).join("");return I(u(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){s()}}}function vu(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;)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);i.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:"3.2.22"};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 hu=0,mu=1,gu=2,yu=3,_u={status:hu};function bu(t,e,n,r){switch(void 0===r&&(r=vu),_u.status===hu&&function(t,e,n){void 0===n&&(n=vu);try{var r=n(t),i=Zn(r,"error",(function(n){Su(t,e,n)})),a=Zn(r,"message",(function(t){var e,n=t.data;"errored"===n.type?Su(n.error,n.streamId):"initialized"===n.type&&(e=n.version,_u.status===mu&&(_u={status:yu,worker:_u.worker,version:e,stop:_u.stop}))}));r.postMessage({action:"init"}),h((function(){return function(t){_u.status===mu&&(o.error(t+" failed to start: a timeout occurred while initializing the Worker"),_u.initializationFailureCallbacks.forEach((function(t){t()})),_u={status:gu})}(e)}),1e4),_u={status:mu,worker:r,stop:function(){i.stop(),a.stop()},initializationFailureCallbacks:[]}}catch(n){Su(t,e,n)}}(t,e,r),_u.status){case mu:return _u.initializationFailureCallbacks.push(n),_u.worker;case yu:return _u.worker}}function wu(){return _u.status}function Su(t,e,n,r){if(_u.status===mu){var i;if(o.error(e+" failed to start: an error occurred while creating the Worker:",n),n instanceof Event||n instanceof Error&&(It(a=n.message,"Content Security Policy")||It(a,"requires 'TrustedScriptURL'")))i=t.workerUrl?"Please make sure the Worker URL "+t.workerUrl+" is correct and CSP is correctly configured.":"Please make sure CSP is correctly configured.",o.error(i);else Co(n);_u.status===mu&&_u.initializationFailureCallbacks.forEach((function(t){t()})),_u={status:gu}}else Co(n,{worker_version:_u.status===yu&&_u.version,stream_id:r});var a}function xu(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){void 0===o&&(o=jo);var a=function(t,e){return o({encoder:e.encoder,request:Ro(e.endpoint,t.batchBytesLimit,t.retryMaxSize,n),flushController:Ho({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:r,sessionExpireObservable:i}),messageBytesLimit:t.messageBytesLimit,sendContentTypeByJson:t.sendContentTypeByJson})}(t,e);return{flushObservable:a.flushController.flushObservable,add:function(t){a.add(t)},upsert:function(t,e){a.upsert(t,e)},stop:function(){a.stop()}}}(t,{endpoint:t.rumEndpoint,encoder:a(du)},r,i,o);return e.subscribe(wr,(function(t){t.type===Xe.VIEW?s.upsert(t,t.view.id):s.add(t)})),n.subscribe((function(t){s.add(t)})),s}function Eu(t){return Eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eu(t)}function ku(t){var e=function(t,e){if("object"!=Eu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Eu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Eu(e)?e:e+""}function Tu(t,e,n){return(e=ku(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ou(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cu(Object(n),!0).forEach((function(e){Tu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Iu,Au="synthetics",Ru="user",Pu={"view.url":"string","view.referrer":"string"},Nu={context:"object"},Mu={service:"string",version:"string"},Lu={};function Du(t,e,n,r,i,a,s,u,c,l){Lu[Xe.VIEW]=Ou(Ou({},Nu),Pu),Lu[Xe.ERROR]=I({"error.message":"string","error.stack":"string","error.resource.url":"string"},Nu,Pu,Mu),Lu[Xe.RESOURCE]=I({"resource.url":"string"},Nu,Pu,Mu),Lu[Xe.ACTION]=I({"action.target.name":"string"},Nu,Pu,Mu),Lu[Xe.LONG_TASK]=I({},Nu,Pu);var f={};f[Xe.ERROR]=Nr(Xe.ERROR,t.eventRateLimiterThreshold,l),f[Xe.ACTION]=Nr(Xe.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(br,(function(l){var d,p=l.startTime,v=l.rawRumEvent,h=l.savedCommonContext,m=l.customerContext,g=l.domainContext,y=i.findView(p),_=a.findUrl(p),b=n.findTrackedSession(p);if((!b||!b.isErrorSession||b.sessionHasError)&&(b&&y&&_)){var w=s.findActionId(p),S=s.findAllActionId(p),x=h||c(),E={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(yt()-(Et()+performance.now())),configuration:{session_sample_rate:lt(t.sessionSampleRate,3),session_replay_sample_rate:lt(t.sessionReplaySampleRate,3),session_on_error_sample_rate:lt(t.sessionOnErrorSampleRate,3),session_replay_on_error_sample_rate:lt(t.sessionReplayOnErrorSampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:ee,env:t.env||"",service:y.service||t.service||"browser",version:y.version||t.version||"",source:"browser",date:gt(),user:{id:r.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?Ru:Au,id:b.id},view:{id:y.id,name:y.name||_.path,url:_.url,referrer:_.referrer,host:_.host,path:_.path,pathGroup:_.pathGroup,urlQuery:_.urlQuery},action:(d=v,-1!==[Xe.ERROR,Xe.RESOURCE,Xe.LONG_TASK].indexOf(d.type)&&w?{id:w,ids:S}:void 0),display:u.get()},k=Vt(P(E,y,v)),T=P({},x.context,y.context,m);H(T)||(k.context=T),"has_replay"in k.session||(k.session.has_replay=x.hasReplay),b.errorSessionReplayAllowed&&(k.session.has_replay=k.session.has_replay&&b.sessionHasError),"view"===k.type&&(k.session.sampled_for_error_replay=b.errorSessionReplayAllowed,k.session.sampled_for_error_session=b.isErrorSession,k.session.error_timestamp_for_session=b.sessionErrorTimestamp),H(x.user)||(k.user=P({is_signin:"T",is_login:!0},x.user)),function(t,e,n,r){if(e){var i=Ar(t,Lu[t.type],(function(t){return e(t,n)}));if(!1===i&&t.type!==Xe.VIEW)return!1;!1===i&&o.warn("Can't dismiss view events using beforeSend!")}var a=!1;r[t.type]&&(a=r[t.type].isLimitReached());return!a}(k,t.beforeSend,g,f)&&(H(k.context)&&delete k.context,e.notify(wr,k))}}))}function Uu(){return Iu||(Iu=new Kn((function(t){var e=Q((function(){t.notify(Bu())}),200).throttled;return Zn(window,Ce,e,{capture:!0,passive:!0}).stop}))),Iu}function Bu(){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 zu=Xr;var Vu=Xr;function ju(e,n,r,i){var o=new Kn;!function(e){var n=Yn([t.error]).subscribe((function(t){e.notify(t.error)}))}(o),function(t){An((function(e,n){t.notify(jn({stackTrace:e,originalError:n,startClocks:mt(),nonErrorPrefix:dn,source:Vn.SOURCE,handling:fn}))}))}(o),function(t,e){var n=rr(0,[er]).subscribe((function(t){e.notify({startClocks:mt(),message:t.message,stack:t.stack,type:t.subtype,source:Vn.REPORT,handling:fn})}))}(0,o);var a=r.findTrackedSession(),s=a.isErrorSession&&a.sessionHasError;return a.isErrorSession&&e.subscribe(hr,(function(){s=!1})),o.subscribe((function(t){a.isErrorSession&&!s&&(r.setErrorForSession(),s=!0),e.notify(Sr,{error:t})})),function(t,e){return t.subscribe(Sr,(function(n){t.notify(br,I({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:X(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser"},type:Xe.ERROR,view:{in_foreground:e.wasInPageStateAt(nu,t.startClocks.relative)}};return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,i=jn({stackTrace:r instanceof Error?_n(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:pn,source:Vn.CUSTOM,handling:ln});t.notify(Sr,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,i)}function $u(){if(ls(os)){var t=performance.getEntriesByType(os)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(G(e[n])){var r=n,i=e[r];t[r]=0===i?0:pt(i)}return t}(),n=I({entryType:os,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return I({},n,{toJSON:void 0})}},e);return n}function Hu(t,e,n){return void 0===n&&(n=$u),function(t){var e,n=qi("complete",(function(){e=h((function(){t()}))}));return{stop:function(){n.stop(),m(e)}}}((function(){var t=n();(function(t){return t.loadEventEnd<=0})(t)||e(function(t){return{fetchStart:t.fetchStart,responseEnd:t.responseEnd,domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,loadEventEnd:t.loadEventEnd,loadEventStart:t.loadEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domContentLoadedEventStart:t.domContentLoadedEventStart,firstByte:t.responseStart>=0&&t.responseStart<=ht()?t.responseStart:void 0}}(t))}))}function Fu(t){if(void 0===t&&(t=window),"hidden"===document.visibilityState)return{getTimeStamp:function(){return 0},stop:ot};if(ls(us)){var e=performance.getEntriesByType(us).find((function(t){return"hidden"===t.name}));if(e)return{getTimeStamp:function(){return e.startTime},stop:ot}}var n=1/0,r=tr(t,[we,de],(function(t){t.type!==we&&"hidden"!==document.visibilityState||(n=t.timeStamp,r())}),{capture:!0}).stop;return{getTimeStamp:function(){return n},stop:function(){r()}}}function Wu(t,e,n){var r={},i=Hu(0,(function(t){e(t.loadEvent),r.navigationTimings=t,n()})),o=Fu(),a=i.stop,s=function(t,e,n){return{stop:cs(t,{type:as,buffered:!0}).subscribe((function(t){var r=At(t,(function(t){return t.entryType===as&&"first-contentful-paint"===t.name&&t.startTime<e.getTimeStamp()&&t.startTime<6e5}));r&&n(r.startTime)})).unsubscribe}}(t,o,(function(t){r.firstContentfulPaint=t,n()})),u=s.stop,c=function(t,e,n,r){var i=1/0,o=tr(n,[ge,oe],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,s=cs(t,{type:es,buffered:!0}).subscribe((function(n){var o,s=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(n,(function(t){return t.entryType===es&&t.startTime<i&&t.startTime<e.getTimeStamp()&&t.startTime<6e5&&t.size>a}));s&&(s.element&&(o=Ds(s.element,t.actionNameAttribute)),r({value:s.startTime,targetSelector:o}),a=s.size)}));return{stop:function(){o(),s.unsubscribe()}}}(t,o,window,(function(t){r.largestContentfulPaint=t,n()})),l=c.stop,f=function(t,e,n){var r=cs(t,{type:ts,buffered:!0}).subscribe((function(r){var i=At(r,(function(t){return t.entryType===ts&&t.startTime<e.getTimeStamp()}));if(i){var o,a=_t(i.startTime,i.processingStart);i.target&&ji(i.target)&&(o=Ds(i.target,t.actionNameAttribute)),n({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}}));return{stop:function(){r.unsubscribe()}}}(t,o,(function(t){r.firstInput=t,n()})),d=f.stop;return{stop:function(){a(),u(),l(),d(),o.stop()},initialViewMetrics:r}}var qu=st;function Gu(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=qu);return new Kn((function(t){function n(){var e,n,r,i;t.notify((e=Qi(),n=Bu().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(n+e),{scrollHeight:r,scrollDepth:i,scrollTop:e}))}if(window.ResizeObserver){var r=Q(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(c(r.throttled));i&&o.observe(i);var a=Zn(window,ue,r.throttled,{passive:!0});return function(){r.cancel(),o.unobserve(i),a.stop()}}}))}());var i=0,o=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=ht();a=_t(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}function Qu(t,e,n){if(!Zu())return{stop:ot};var r,i,o=0;n({value:0});var a=function(){var t,e,n=0,r=0;return{update:function(i){var o;return void 0===t||i.startTime-e>=Yu||i.startTime-t>=5*Ju?(t=e=i.startTime,r=n=i.value,o=!0):(n+=i.value,e=i.startTime,(o=i.value>r)&&(r=i.value)),{cumulatedValue:n,isMaxValue:o}}}}(),s=cs(t,{type:ns,buffered:!0}).subscribe((function(s){for(var u=0,c=s;u<c.length;u++){var l=c[u];if(!(l.hadRecentInput||l.startTime<e)){var f=a.update(l),d=f.cumulatedValue;if(f.isMaxValue){var p=Ku(l.sources);r=p?new WeakRef(p):void 0,i=_t(e,l.startTime)}if(d>o){o=d;p=r&&r.deref();n({value:lt(o,4),targetSelector:p&&Ds(p,t.actionNameAttribute),time:i})}}}}));return{stop:function(){s.unsubscribe()}}}function Ku(t){if(t){var e=At(t,(function(t){return!!t.node&&ji(t.node)}));return e&&e.node}}var Xu,Ju=5e3,Yu=st;function Zu(){return ls(ns)&&"WeakRef"in window}var tc=0,ec=1/0,nc=0;var rc=function(){return Xu?tc:window.performance.interactionCount||0};function ic(t,e,n){if(!(ls("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ot,stop:ot};var r,i,o=function(t){"interactionCount"in performance||Xu||(Xu=new window.PerformanceObserver(c((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(ec=Math.min(ec,e.interactionId),nc=Math.max(nc,e.interactionId),tc=(nc-ec)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===Ze?0:rc(),n={stopped:!1};function r(){return rc()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,u=1/0,l=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]}}}(a),f=-1;function d(n){for(var o=0,a=n;o<a.length;o++){var s=a[o];s.interactionId&&s.startTime>=e&&s.startTime<=u&&l.process(s)}var c,d,p=l.estimateP98Interaction();p&&p.duration!==f&&(f=p.duration,i=_t(e,p.startTime),c=p.startTime,d=Xs.get(c),Xs.delete(c),!(r=d)&&p.target&&ji(p.target)&&(r=Ds(p.target,t.actionNameAttribute)))}var p=cs(t,{type:ts,buffered:!0}).subscribe(d),v=cs(t,{type:Za,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,6e4),targetSelector:r,time:i}:a()?{value:0}:void 0},setViewEnd:function(t){u=t,s()},stop:function(){v.unsubscribe(),p.unsubscribe()}}}function oc(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a=r===Ze,s=!0,u=[],c=Fu();function l(){if(!s&&!a&&u.length>0){var t=Math.max.apply(Math,u);t<c.getTimeStamp()&&o(t)}}var f=ps(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(_t(i.timeStamp,t.end)),l())})).stop;return{setLoadEvent:function(t){a&&(a=!1,u.push(t),l())},stop:function(){f(),c.stop(),s&&(s=!1,l())}}}(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=Gu(0,o,(function(t){a.scroll=t})).stop,f=Qu(n,o.relative,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=ic(n,o.relative,i),p=d.stop,v=d.getInteractionToNextPaint;return{stop:function(){u(),f(),l()},stopINPTracking:p,setLoadEvent:c,setViewEnd:d.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=v(),a}}}var ac,sc=3e5,uc=3e5;function cc(t,e,n,r,i,o,a){var s=new Set;function u(i,o,a){var u=function(t,e,n,r,i,o,a){void 0===o&&(o=mt());var s,u,c,l,f,d=X(),p=new Kn,v={},m=0,_=A(r),b=ta(),w=!0;a&&(u=a.name,c=a.service,l=a.version,f=a.context);f&&b.setContext(f);var S={id:d,name:u,startClocks:o,service:c,version:l};t.notify(cr,S),t.notify(lr,S);var x=Q(H,3e3,{leading:!1}),E=x.throttled,k=x.cancel,T=oc(t,e,n,$,i,o),C=T.setLoadEvent,O=T.stop,I=T.getCommonViewMetrics,R=T.stopINPTracking,P=T.setViewEnd,N=i===Ze?Wu(n,C,$):{stop:ot,initialViewMetrics:{}},M=N.stop,L=N.initialViewMetrics,D=function(t,e,n){var r=fs({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,d,$),U=D.stop,B=D.eventCounts,z=g(H,sc),V=t.subscribe(gr,(function(t){t.reason===zi.UNLOADING&&H()}));function j(){t.notify(dr,{id:d,name:u,context:b.getContext(),startClocks:o})}function $(){j(),E()}function H(){k(),j(),m+=1;var e=void 0===s?gt():s.timeStamp;t.notify(fr,{customTimings:v,documentVersion:m,id:d,name:u,service:c,version:l,context:b.getContext(),loadingType:i,location:_,startClocks:o,commonViewMetrics:I(),initialViewMetrics:L,duration:_t(o.timeStamp,e),isActive:void 0===s,sessionIsActive:w,eventCounts:B})}H(),b.changeObservable.subscribe($);var F={name:u,service:c,version:l,contextManager:b,stopObservable:p,end:function(e){s||(s=$t(e&&e.endClocks,mt()),w=$t(e&&e.sessionIsActive,!0),t.notify(pr,{endClocks:s}),t.notify(vr,{endClocks:s}),y(z),P(s.relative),O(),V.unsubscribe(),H(),h((function(){F.stop()}),uc))},stop:function(){M(),U(),R(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<31536e6}(e)?e:_t(o.timeStamp,e);v[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&console.warn("Invalid timing name: "+t+", sanitized to: "+e);return e}(t)]=n,$()}},setViewName:function(t){u=t,H()}};return F}(e,n,r,t,i,o,a);return s.add(u),u.stopObservable.subscribe((function(){s.delete(u)})),u}var c,l=u(Ze,bt(),a);return e.subscribe(hr,(function(){l=u(tn,void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})})),e.subscribe(mr,(function(){l.end({sessionIsActive:!1})})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!qt(n.hash)&&Gt(n.hash)!==Gt(e.hash))return l.end(),void(l=u(tn))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=gt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(tn,e,t)},setViewContext:function(t){l.contextManager.setContext(t)},setViewContextProperty:function(t,e){l.contextManager.setContextProperty(t,e)},setViewName:function(t){l.setViewName(t)},getViewContext:function(){return l.contextManager.getContext()},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function lc(t,e,n,r,i,o,a,s){return t.subscribe(fr,(function(n){t.notify(br,function(t,e,n,r){var i=n.getReplayStats(t.id),o=r.findAll(t.startClocks.relative,t.duration),a={_gc:{document_version:t.documentVersion,replay_stats:i,page_states:o},date:t.startClocks.timeStamp,type:Xe.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:Tt(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_time:Tt(t.commonViewMetrics,"cumulativeLayoutShift.time"),cumulative_layout_shift_target_selector:Tt(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:dt(Tt(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:dt(Tt(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:dt(Tt(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:dt(Tt(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:dt(Tt(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:dt(Tt(t.initialViewMetrics,"firstInput.delay")),first_input_time:dt(Tt(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:Tt(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:dt(Tt(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:Tt(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:dt(Tt(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:Tt(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:dt(Tt(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:Qt(dt(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:dt(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:dt(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!i||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};H(t.customTimings)||(a.view.custom_timings=(s=t.customTimings,u=dt,c={},O(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=P(a,{view:fc(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),cc(n,t,r,e,i,!e.trackViewsManually,s)}function fc(t){if(t){var e=t.fetchStart,n=t.responseEnd,r=t.domInteractive,i=t.domContentLoaded,o=t.domComplete,a=t.loadEventEnd,s=t.loadEventStart,u=t.domContentLoadedEventEnd,c={};if(G(n)&&G(e)&&n!==e){c.fpt=dt(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return G(r)&&G(e)&&r!==e&&(c.tti=dt(r-e)),G(i)&&G(e)&&i!==e&&(c.dom_ready=dt(i-e)),G(a)&&G(e)&&a!==e&&(c.load=dt(a-e)),G(s)&&G(u)&&s!==u&&(c.resource_load_time=dt(s-u)),G(o)&&G(r)&&o!==r&&(c.dom=dt(o-r)),c}}function dc(){this.buffer=new Uint8Array(8),pc().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function pc(){return window.crypto||window.msCrypto}function vc(t,e){if(this._spanId=new dc,this._traceId=new dc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function hc(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function mc(t,e,n){if(this._spanId=hc(),this._traceId=hc(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=Y(e).getParse(),this._traceSampled=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function gc(t,e){if(this._traceId=new dc,this._spanId=new dc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function yc(t,e){if(this._traceId=new dc,this._spanId=new dc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function _c(t,e){if(this._traceId=new dc,this._spanId=new dc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function bc(t,e,n){if(this._traceId=new dc,this._spanId=new dc,this._traceSampled=e,this.isHexTraceId=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function wc(t,e){return 100===e||0!==e&&(ac&&t===ac.sessionId?ac.decision:(n=window.BigInt?function(t,e){var n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(BigInt("0x".concat(t.split("-")[4])),e):ct(e),ac={sessionId:t,decision:n},n));var n}function Sc(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function xc(t,e,n,r){var i=n.findTrackedSession();if(i){var o=At(t.allowedTracingUrls,(function(t){return V([t.match],e.url,!0)}));if(o){var a,s=wc(i.id,t.tracingSampleRate);switch(o.traceType){case nn:a=new vc(t,s);break;case un:a=new mc(t,e.url,s);break;case rn:a=new _c(t,s);break;case cn:a=new gc(t,s);break;case an:a=new bc(t,s);break;case sn:a=new bc(t,s,!0);break;case on:a=new yc(t,s)}if(a&&a.isTracingSupported()){e.traceId=a.getTraceId(),e.spanId=a.getSpanId(),e.traceSampled=s;var u=a.makeTracingHeaders();if(t.injectTraceHeader){var c=t.injectTraceHeader(A(e));"object"===et(c)&&O(c,(function(t,e){"string"===et(t)&&(u[e]=t)}))}r(u)}}}}dc.prototype={toString:function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},toDecimalString:function(){return this.toString(10)},toPaddedHexadecimalString:function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},readInt32:function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]}},vc.prototype={isTracingSupported:function(){return void 0!==pc()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId.toDecimalString()},makeTracingHeaders:function(){return{"x-datadog-origin":"rum","x-datadog-parent-id":this.getSpanId(),"x-datadog-sampling-priority":this._traceSampled?"2":"-1","x-datadog-trace-id":this.getTraceId()}}},mc.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId},getSkyWalkingSw8:function(){try{var t=String(K(this.getTraceId())),e=String(K(this.getSpanId())),n=String(K(this._applicationId+"_rum_"+this.env)),r=String(K(this._version)),i=String(K(window.location.href)),o=String(K(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},gc.prototype={isTracingSupported:function(){return void 0!==pc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},getUberTraceId:function(){return this.getTraceId()+":"+this.getSpanId()+":0:"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{"uber-trace-id":this.getUberTraceId()}}},yc.prototype={isTracingSupported:function(){return void 0!==pc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId.toPaddedHexadecimalString()},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},_c.prototype={isTracingSupported:function(){return void 0!==pc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getSpanId(),"X-B3-SpanId":this.getTraceId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},bc.prototype={isTracingSupported:function(){return void 0!==pc()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.isHexTraceId?this._traceId.toDecimalString():this._traceId.toPaddedHexadecimalString()+this._spanId.toPaddedHexadecimalString()},getTraceParent:function(){return this.isHexTraceId?"00-0000000000000000"+this._traceId.toPaddedHexadecimalString()+"-"+this._spanId.toPaddedHexadecimalString()+"-"+(this._traceSampled?"01":"00"):"00-"+this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){var t={traceparent:this.getTraceParent()};return this.isHexTraceId?I(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var Ec=1;function kc(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Sc,traceFetch:function(n){return xc(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=A(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):N(n.init.headers)?O(n.init.headers,(function(t){e.push(t)})):n.init.headers&&O(n.init.headers,(function(t,n){e.push([n,t])}));var r={};O(e.concat(F(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),O(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return xc(t,n,e,(function(t){O(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=Di().subscribe((function(r){var i=r;if(Ga(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=Tc(),t.notify(yr,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(_r,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:en.XHR,url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack})}}))}(t,e,r),function(t,e,n){var r=Mi().subscribe((function(r){var i=r;if(Ga(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=Tc(),t.notify(yr,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":!function(t,e){var n=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response);n&&n.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function a(){var t,a;if(r.cancel().catch(ot),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;O(i,(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(c((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),c((function(t){e(t)})))}()}(n.body,(function(){e(_t(t.startClocks.timeStamp,gt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(_t(t.startClocks.timeStamp,gt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(_r,{duration:e,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:en.FETCH,url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})}))}}))}(t,e,r)}function Tc(){var t=Ec;return Ec+=1,t}var Cc=new va;function Oc(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=U(e,(function(t){return!Cc.has(t)}));n=U(n,(function(t){return $a(t)&&Ha(t)})),n=U(n,(function(e){return n=e,r=t.startClocks.relative,i=Ic({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Ic(n)<=St(i,o);var n,r,i,o}));var r=void 0;if(n.length>1){var i=Number.MAX_SAFE_INTEGER;n.forEach((function(e){var n=Math.abs(e.startTime-t.startClocks.relative);n<i&&(i=n,r=e)}))}else 1===n.length&&(r=n[0]);return r?(Cc.add(r),r.toJSON()):void 0}}}function Ic(t){return St(t.startTime,t.duration)}function Ac(t,e){qi("interactive",(function(){var t=I($u().toJSON(),{entryType:ss,initiatorType:Pa,toJSON:function(){return I({},t,{toJSON:void 0})}});e(t)}))}function Rc(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(){zr(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=Ac),t.subscribe(_r,(function(t){a((function(){return function(t,e){var n=Oc(t),r=n?wt(n.startTime):t.startClocks,i=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:X()}}}(t),o=t.type===en.XHR?De:Be,a=n?Nc(n):void 0,s=function(t,e,n){return t.wasInPageStateDuringPeriod(ou,e.relative,n)?void 0:dt(n)}(e,r,t.duration),u=Y(t.url).getParse(),c=P({date:r.timeStamp,resource:{id:X(),type:o,duration:s,method:t.method,status:t.status,statusGroup:it(t.status),url:Ka(t.url)?Xa(t.url):t.url,urlHost:u.Host,urlPath:u.Path,urlPathGroup:J(u.Path),urlQuery:Z(t.url),deliveryType:n&&Da(n),protocol:n&&Ua(n)},type:Xe.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:c,domainContext:{performanceEntry:n,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}(t,n)}))}));var o=cs(e,{type:ss,buffered:!0}).subscribe((function(t){for(var n=function(t){(function(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType})(t)||za(t.name,e.resourceUrlLimit)||a((function(){return Pc(t,e)}))},r=0,i=t;r<i.length;r++){n(i[r])}}));function a(e){r.push((function(){var n=e();n&&t.notify(br,n)}))}return i(e,(function(t){a((function(){return Pc(t,e)}))})),{stop:function(){o.unsubscribe()}}}function Pc(t,e){var n,r=wt(t.startTime),i=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),o=Ma(t),a=Nc(t),s=Y(t.name).getParse(),u=P({date:r.timeStamp,resource:{id:X(),type:o,url:t.name,urlHost:s.Host,urlPath:s.Path,urlPathGroup:J(s.Path),urlQuery:Z(t.name),method:"GET",status:(n=t.responseStatus,0===n?void 0:n),statusGroup:it(t.responseStatus),deliveryType:Da(t),protocol:Ua(t)},type:Xe.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:t}}}function Nc(t){return{resource:P({},{duration:Va(t)},qa(t),ja(t))}}var Mc={sdkVersion:"3.2.22",sdkName:"df_web_rum_sdk"};function Lc(t){if(t.applicationId){var e=function(t){return t.site||t.datakitOrigin||t.datakitUrl?!(t.site&&!t.clientToken&&(o.error("clientToken is not configured, no RUM data will be collected."),1)):(o.error("datakitOrigin or site is not configured, no RUM data will be collected."),!1)}(t);if(e)if(void 0===t.sessionOnErrorSampleRate||Pt(t.sessionOnErrorSampleRate))if(void 0===t.sessionReplaySampleRate||Pt(t.sessionReplaySampleRate))if(void 0===t.sessionReplayOnErrorSampleRate||Pt(t.sessionReplayOnErrorSampleRate)){var n=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&o.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!N(t.allowedTracingUrls))return void o.error("Allowed Tracing URLs should be an array");var e=[];return O(t.allowedTracingUrls,(function(n){var r;Ot(n)?e.push({match:n,traceType:$t(t.traceType,nn)}):"object"===et(r=n)&&Ot(r.match)&&W(r.traceType)?e.push(n):o.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)})),e}if(void 0!==t.allowedTracingOrigins){if(!N(t.allowedTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedTracingOrigins,(function(n){var r=Dc(n,$t(t.traceType,nn));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!N(t.allowedDDTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedDDTracingOrigins,(function(n){var r=Dc(n,$t(t.traceType,nn));r&&e.push(r)})),e}return[]}(t);if(n)if(void 0===t.tracingSampleRate||Pt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||N(t.excludedActivityUrls)){var r=Si(t);if(r){var i=!!$t(t.trackUserInteractions,t.trackInteractions);return I({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:$t(t.sessionReplaySampleRate,100),sessionOnErrorSampleRate:$t(t.sessionOnErrorSampleRate,0),sessionReplayOnErrorSampleRate:$t(t.sessionReplayOnErrorSampleRate,0),tracingSampleRate:t.tracingSampleRate,allowedTracingUrls:n,injectTraceHeader:t.injectTraceHeader&&d(t.injectTraceHeader,"injectTraceHeader threw an error:"),generateTraceId:t.generateTraceId&&d(t.generateTraceId,"generateTraceId threw an error:"),excludedActivityUrls:$t(t.excludedActivityUrls,[]),workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:i,enableLongAnimationFrame:!!t.enableLongAnimationFrame,trackViewsManually:!!t.trackViewsManually,traceType:$t(t.traceType,nn),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:Ht(wi,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:wi.MASK_USER_INPUT,shouldMaskNode:t.shouldMaskNode&&d(t.shouldMaskNode,"shouldMaskNode threw an error:")},r,Mc)}}else o.error("Excluded Activity Urls should be an array");else o.error("Tracing Sample Rate should be a number between 0 and 100")}else o.error("Error Session Replay Sample Rate should be a number between 0 and 100");else o.error("Session Replay Sample Rate should be a number between 0 and 100");else o.error("Error Session Sample Rate should be a number between 0 and 100")}else o.error("Application ID is not configured, no RUM data will be collected.")}function Dc(t,e){var n;if("string"==typeof t?n=t:t instanceof RegExp?n=function(e){return t.test(Lr(e))}:"function"==typeof t&&(n=function(e){return t(Lr(e))}),void 0!==n)return{match:n,traceType:e};o.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}function Uc(t,e,n){var r,i,a,s,u=t.ignoreInitIfSyntheticsWillInjectRum,c=t.startDeflateWorker,l=Kt();function f(){if(a&&s){var t;if(s.trackViewsManually){if(!r)return;l.remove(r.callback),t=r.options}var e=n(s,i,t);l.drain(e)}}function d(t){var e=Go();if(e&&(t=function(t){var e,n;return I({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(e=t.defaultPrivacyLevel)&&void 0!==e?e:null===(n=Fo())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),a=t,function(t){Eo({type:go,configuration:t})}(rt(t)),s)ha("DATAFLUX_RUM",t);else{var n=Lc(t);n&&(e||n.sessionStoreStrategyType?(!n.compressIntakeRequests||n.sendContentTypeByJson||e||!c||(i=c(n,"RUM",ot)))&&(s=n,Mi().subscribe(ot),f()):o.warn("No storage available for session. We will not send any data."))}}return{init:function(t){t?(a=t,u&&Boolean(window._GUANCE_SYNTHETICS_INJECTS_RUM||Qr("guance-synthetics-injects-rum"))||(t.remoteConfiguration?Ii(t,d):d(t))):o.error("Missing configuration")},getInitConfiguration:function(){return a},getInternalContext:ot,stopSession:ot,addTiming:function(t,e){void 0===e&&(e=gt()),l.add((function(n){n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=mt());var n=function(n){n.startView(t,e)};l.add(n),r||(r={options:t,callback:n},f())},setViewName:function(t){l.add((function(e){return e.setViewName(t)}))},setViewContext:function(t){l.add((function(e){return e.setViewContext(t)}))},setViewContextProperty:function(t,e){l.add((function(n){return n.setViewContextProperty(t,e)}))},getViewContext:function(){},addAction:function(t,n){void 0===n&&(n=e()),l.add((function(e){e.addAction(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),l.add((function(e){e.addError(t,n)}))}}}var Bc=2,zc=3,Vc=4,jc=6,$c=7,Hc=8,Fc=9,Wc=0,qc=1,Gc=2,Qc=3,Kc=4,Xc=11,Jc=0,Yc=1,Zc=2,tl=3,el=4,nl=5,rl=6,il=7,ol=8,al=0,sl=1,ul=2,cl=3,ll=4,fl=5,dl=6,pl=7,vl=9,hl=0,ml=1,gl={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:wi.ALLOW,MASK:wi.MASK,MASK_USER_INPUT:wi.MASK_USER_INPUT},yl="data-gc-privacy",_l="hidden",bl="***",wl={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Sl(t,e,n){if(n&&n.has(t))return n.get(t);var r=Wi(t),i=r?Sl(r,e):e,o=xl(El(t),i);return n&&n.set(t,o),o}function xl(t,e){switch(e){case gl.HIDDEN:case gl.IGNORE:return e}switch(t){case gl.ALLOW:case gl.MASK:case gl.MASK_USER_INPUT:case gl.HIDDEN:case gl.IGNORE:return t;default:return e}}function El(t){if(ji(t)){var e=t.getAttribute(yl);if("BASE"===t.tagName)return gl.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return gl.MASK;if("hidden"===n.type)return gl.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return gl.MASK}return e===_l||t.classList.contains("gc-privacy-hidden")?gl.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?gl.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?gl.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?gl.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),r=(e=i("rel"),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)?gl.IGNORE:void 0}}function kl(t,e,n){if(t.shouldMaskNode&&!0===t.shouldMaskNode(e,n))return!0;switch(n){case gl.MASK:case gl.HIDDEN:case gl.IGNORE:return!0;case gl.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(e)?Tl(e.parentNode):Tl(e);default:return!1}}function Tl(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!wl[e.tagName]}function Cl(t,e,n,r){var i=e.parentElement&&e.parentElement.tagName,o=e.textContent||"";if(!n||o.trim()){if("SCRIPT"===i)o=bl;else if(r===gl.HIDDEN)o=bl;else if(kl(t,e,r))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?bl:o.replace(/\S/g,"x");return o}}var Ol=new WeakMap;function Il(t){return Ol.has(t)}function Al(t){return Ol.get(t)}function Rl(t,e,n){var r=e.tagName,i=e.value;if(kl(t,e,n)){var o=e.type;if("INPUT"===r&&("button"===o||"submit"===o||"reset"===o||"range"===o))return i;if(!i||"OPTION"===r)return;return bl}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?i:void 0}var Pl=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Nl=/^[A-Za-z]+:|^\/\//,Ml=/^data:.*,/i;function Ll(t,e){return t.replace(Pl,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Nl.test(s)||Ml.test(s))return t;var u=n||i||"";return"/"===s[0]?"url(".concat(u).concat(function(t){return(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]}(e)+s).concat(u,")"):"url(".concat(u).concat(function(t,e){try{return Dr(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}function Dl(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch(t){}return e?Ll(((n=Array.from(e,Bt()===Dt?Bl:Ul).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),n),t.href):null}function Ul(t){return function(t){return"styleSheet"in t}(t)&&Dl(t.styleSheet)||t.cssText}function Bl(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return Ul(t)}function zl(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function Vl(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var jl=/^[^ \t\n\r\u000c]+/,$l=/^[, \t\n\r\u000c]+/;var Hl=0,Fl=1,Wl=2;function ql(t,e,n){return Gl(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function Gl(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Wc,childNodes:Ql(t,e),adoptedStyleSheets:zl(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=Hi(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:Xc,childNodes:Ql(t,e),isShadowRoot:n,adoptedStyleSheets:n?zl(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:qc,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=Yl(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=xl(El(t),e.parentNodePrivacyLevel);var o;if(i===gl.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:Gc,tagName:n,attributes:Tu({rr_width:s+"px",rr_height:u+"px"},yl,_l),childNodes:[],isSVG:r}}if(i===gl.IGNORE)return;var c=function(t,e,n){if(e===gl.HIDDEN)return{};for(var r={},i=Yl(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=Kl(t,e,s,n.configuration);null!==u&&(r[s]=Zl(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=Rl(n.configuration,t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===gl.ALLOW){var l=t;l.selected&&(r.selected=l.selected)}if("link"===i){var f=Array.from(o.styleSheets).find((function(e){return e.href===t.href}));(d=Dl(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=Dl(t.sheet))&&(r._cssText=d)}var p,v,h=t;"input"!==i||"radio"!==h.type&&"checkbox"!==h.type||(e===gl.ALLOW?r.checked=!!h.checked:kl(n.configuration,h,e)&&delete r.checked);if("audio"===i||"video"===i){var m=t;r.rr_mediaState=m.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case Hl:p=Math.round(t.scrollTop),v=Math.round(t.scrollLeft),(p||v)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:v});break;case Fl:if(g.elementsScrollPositions.has(t)){var y=g.elementsScrollPositions.get(t);p=y.scrollTop,v=y.scrollLeft}}v&&(r.rr_scrollLeft=v);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(function(t){return t.childNodes.length>0||$i(t)}(t)&&"style"!==n){l=Ql(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:I({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:Gc,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=Cl(e.configuration,t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:Qc,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:Kc,textContent:""}}var n}(t,e);if(!n)return null;var r=Al(t)||Xl++,i=n;return i.id=r,function(t,e){Ol.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function Ql(t,e){var n=[];return Fi(t,(function(t){var r=Gl(t,e);r&&n.push(r)})),n}function Kl(t,e,n,r){if(e===gl.HIDDEN)return null;var i=t.getAttribute(n);if(e===gl.MASK&&n!==yl&&!Ns.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return bl}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("onerror"===n)return null}if("A"===o&&"href"===n)return bl;if(i&&Ft(n,"data-"))return bl;if("IFRAME"===o&&"srcdoc"===n)return bl}return i&&"string"==typeof i&&Ka(i)?Xa(i):i}var Xl=1;var Jl=/[^a-z1-6-_]/;function Yl(t){var e=(t+"").toLowerCase().trim();return Jl.test(e)?"div":e}function Zl(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Vl(t,r):"background"!==n||!r||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;var n=0;function r(t){var r,i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}for(var i=[];r($l),!(n>=e.length);){var o=r(jl);if(","===o.slice(-1))o=Vl(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Vl(t,o);for(var s=!1;;){var u=e.charAt(n);if(""===u){i.push((o+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,i.push((o+a).trim());break}"("===u&&(s=!0)}a+=u,n+=1}}}return i.join(", ")}(t,r):"style"===n?Ll(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?Vl(t,r):r:Vl(t,r):r;var i}function tf(t){return Boolean(t.changedTouches)}function ef(t,e){return{data:I({source:t},e),type:zc,timestamp:gt()}}function nf(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){r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}}function rf(t,e,n,r){var i=Aa();if(!i)return{stop:ot,flush:ot};var o=function(t){var e=ot,n=[];function r(){e(),t(n),n=[]}var i=Q(r,16,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(t){0===n.length&&(e=zr(o,{timeout:100})),Array.prototype.push.apply(n,t)},flush:r,stop:function(){e(),a()}}}((function(r){!function(t,e,n,r){var i=new Map;t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){of(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Il(e)&&!Hi(e))return!1;e=Wi(e)}return!0}(t.target)&&Sl(t.target,n.defaultPrivacyLevel,i)!==gl.HIDDEN})),a=function(t,e,n,r){for(var i=new Set,o=new Map,a=0,s=t;a<s.length;a++){var u=s[a];u.addedNodes.forEach((function(t){i.add(t)})),u.removedNodes.forEach((function(t){i.has(t)||o.set(t,u.target),i.delete(t)}))}var c=Array.from(i);l=c,l.sort((function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}));var l;for(var f=new Set,d=[],p=0,v=c;p<v.length;p++){var h=v[p];if(!b(h)){var m=Sl(h.parentNode,e.defaultPrivacyLevel,r);if(m!==gl.HIDDEN&&m!==gl.IGNORE){var g=Gl(h,{serializedNodeIds:f,parentNodePrivacyLevel:m,serializationContext:{status:Wl,shadowRootsController:n},configuration:e});if(g){var y=Wi(h);d.push({nextId:w(h),parentId:Al(y),node:g})}}}}var _=[];return o.forEach((function(t,e){Il(e)&&_.push({parentId:Al(t),id:Al(e)})})),{adds:d,removes:_,serializedNodeIds:f,hasBeenSerialized:b};function b(t){return Il(t)&&f.has(Al(t))}function w(t){for(var e=t.nextSibling;e;){if(Il(e))return Al(e);e=e.nextSibling}return null}}(o.filter((function(t){return"childList"===t.type})),n,r,i),s=a.adds,u=a.removes,c=a.serializedNodeIds;function l(t){return Il(t)&&c.has(Al(t))}var f=function(t,e,n){for(var r=[],i=new Set,o=t.filter((function(t){return!i.has(t.target)&&(i.add(t.target),!0)})),a=0,s=o;a<s.length;a++){var u=s[a];if(u.target.textContent!==u.oldValue){var c=Sl(Wi(u.target),e.defaultPrivacyLevel,n);c!==gl.HIDDEN&&c!==gl.IGNORE&&r.push({id:Al(u.target),value:$t(Cl(e,u.target,!1,c))})}}return r}(o.filter((function(t){return"characterData"===t.type&&!l(t.target)})),n,i),d=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,u=o;s<u.length;s++){var c=u[s];if(c.target.getAttribute(c.attributeName)!==c.oldValue){var l,f=Sl(c.target,e.defaultPrivacyLevel,n),d=Kl(c.target,f,c.attributeName,e);if("value"===c.attributeName){var p=Rl(e,c.target,f);if(void 0===p)continue;l=p}else l="string"==typeof d?d:null;var v=a.get(c.target);v||(v={id:Al(c.target),attributes:{}},r.push(v),a.set(c.target,v)),v.attributes[c.attributeName]=l}}return r}(o.filter((function(t){return"attributes"===t.type&&!l(t.target)})),n,i);if(!(f.length||d.length||u.length||s.length))return;e({adds:s,removes:u,texts:f,attributes:d})}(r.concat(a.takeRecords()),t,e,n)})),a=new i(c(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()}}}function of(t,e){$i(t)&&e(t.shadowRoot),Fi(t,(function(t){return of(t,e)}))}var af=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(!function(){var t=window.visualViewport;return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}()?(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)):(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)),r):r},sf=function(){var t=window.visualViewport;return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}},uf=new WeakMap,cf=1;function lf(t){return uf.has(t)||uf.set(t,cf++),uf.get(t)}function ff(t){var e,n,r,i,o,a,s=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,rf(e,n,r,document)),u=function(t){var e=Q((function(e){var n=hf(e);if(Il(n)){var r=pf(e);if(!r)return;var i={id:Al(n),timeOffset:0,x:r.x,y:r.y};t([i],tf(e)?rl:Yc)}}),50,{trailing:!1}),n=e.cancel,r=e.throttled,i=tr(document,[xe,fe],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb,t.configuration),c=function(t,e){var n=function(n){var r=hf(n);if(Sl(r,e.defaultPrivacyLevel)!==gl.HIDDEN&&Il(r)){var i,o=Al(r),a=df[n.type];if(a!==dl&&a!==fl){var s=pf(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=I({id:lf(n)},ef(Zc,i));t(u)}};return tr(document,Object.keys(df),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration),l=function(t,e,n){var r=Q((function(r){var i=hf(r);if(i&&Sl(i,e.defaultPrivacyLevel)!==gl.HIDDEN&&Il(i)){var o=Al(i),a=i===document?{scrollTop:Qi(),scrollLeft:Gi()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),100),i=r.cancel,o=r.throttled,a=Zn(document,ue,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration,t.elementsScrollPositions),f=function(t){return Uu().subscribe(t).unsubscribe}(t.viewportResizeCb,t.configuration),d=vf(t.inputCb,t.configuration),p=function(t,e){var n=function(n){var r=hf(n);r&&Sl(r,e.defaultPrivacyLevel)!==gl.HIDDEN&&Il(r)&&t({id:Al(r),type:n.type===Ae?hl:ml})};return tr(document,[Ae,Re],n,{capture:!0,passive:!0}).stop}(t.mediaInteractionCb,t.configuration),v=function(t){function e(t,e){t&&Il(t.ownerNode)&&e(Al(t.ownerNode))}var n=[qn(CSSStyleSheet.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r,(function(e){return t({id:e,adds:[{rule:o,index:a}]})}))})),qn(CSSStyleSheet.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r,(function(e){return t({id:e,removes:[{index:i}]})}))}))];"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(r){n.push(qn(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=nf(r);n&&(n.push(a||0),t({id:e,adds:[{rule:o,index:n}]}))}))})),qn(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=nf(r);n&&(n.push(i),t({id:e,removes:[{index:n}]}))}))})))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb,t.configuration),h=(i=t.focusCb,t.configuration,tr(window,[Ee,ke],(function(){i({has_focus:document.hasFocus()})})).stop),m=function(t){if(!window.visualViewport)return ot;var e=Q((function(){t(sf())}),200,{trailing:!1}),n=tr(window.visualViewport,[Ce,ue],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb,t.configuration),g=(o=t.lifeCycle,a=t.frustrationCb,t.configuration,o.subscribe(br,(function(t){t.rawRumEvent.type===Xe.ACTION&&t.rawRumEvent.action.type===We&&t.rawRumEvent.action.frustration&&t.rawRumEvent.action.frustration.type&&t.rawRumEvent.action.frustration.type.length&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&a({timestamp:t.rawRumEvent.date,type:Fc,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return lf(t)}))}})})).unsubscribe);return{flush:function(){s.flush()},stop:function(){s.stop(),u(),c(),l(),f(),d(),p(),v(),h(),m(),g()}}}var df=Tu(Tu(Tu(Tu(Tu(Tu(Tu(Tu(Tu({},ye,al),Se,sl),re,ul),Te,cl),ie,ll),Ee,fl),ke,dl),ce,pl),le,vl);function pf(t){var e=tf(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=af(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function vf(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=tr(n,o?[Oe]:[Ie,Oe],(function(t){var e=hf(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=ot;else{var u=[Gn(HTMLInputElement.prototype,"value",c),Gn(HTMLInputElement.prototype,"checked",c),Gn(HTMLSelectElement.prototype,"value",c),Gn(HTMLTextAreaElement.prototype,"value",c),Gn(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var n=Sl(t,e.defaultPrivacyLevel);if(n!==gl.HIDDEN){var r,i=t.type;if("radio"===i||"checkbox"===i){if(kl(e,t,n))return;r={isChecked:t.checked}}else{var o=Rl(e,t,n);if(void 0===o)return;r={text:o}}l(t,r);var a,s,u=t.name;"radio"===i&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'+j(u)+'"]'),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(e,n){if(Il(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(I({id:Al(e)},n)))}}}function hf(t){return!0===t.composed&&$i(t.target)?t.composedPath()[0]:t.target}function mf(t){var e=t.emit;if(!e)throw new Error("emit function is required");var n,r=(n=new WeakMap,{set:function(t,e){(t!==document||document.scrollingElement)&&n.set(t===document?document.scrollingElement:t,e)},get:function(t){return n.get(t)},has:function(t){return n.has(t)}}),i=function(t){e(ef(Jc,t))},o=function(t){e(ef(nl,t))},a=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=rf(n,t,o,e),s=a.flush,u=a.stop,c=vf(r,t,e);i.set(e,{flush:s,stop:function(){u(),c()}})}},removeShadowRoot:function(t){var e=i.get(t);e&&(e.stop(),i.delete(t))},stop:function(){i.forEach((function(t){t.stop()}))},flush:function(){i.forEach((function(t){t.flush()}))}};return o}(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=gt()),void 0===i&&(i={status:Hl,elementsScrollPositions:r,shadowRootsController:a});var o=Bu(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:Vc,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:jc,timestamp:n}),e({data:{node:ql(document,t.configuration,i),initialOffset:{left:Gi(),top:Qi()}},type:Bc,timestamp:n}),window.visualViewport&&e({data:sf(),type:Hc,timestamp:n})};s();var u=ff({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(ef(il,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(ef(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(ef(tl,t))},styleSheetCb:function(t){e(ef(ol,t))},viewportResizeCb:function(t){e(ef(el,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:jc,timestamp:gt()})},visualViewportResizeCb:function(t){e({data:t,type:Hc,timestamp:gt()})},shadowRootsController:a}),c=u.stop,l=u.flush;function f(){a.flush(),l()}return{stop:function(){a.stop(),c()},takeSubsequentFullSnapshot:function(t){f(),s(t,{shadowRootsController:a,status:Fl,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function gf(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),yf(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function yf(t,e,n){void 0===n&&(n=""),O(F(t),(function(t){var r=t[1],i=t[0];"object"===Eu(r)&&null!==r?yf(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var _f;function bf(t){return wf(t).segments_count}function wf(t){var e;return _f||(_f=new Map),_f.has(t)?e=_f.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},_f.set(t,e),_f.size>10&&Sf()),e}function Sf(){if(_f)if(_f.keys)_f.delete(_f.keys().next().value);else{var t=!0;_f.forEach((function(e,n){t&&(_f.delete(n),t=!1)}))}}function xf(t){var e=t.context,n=t.creationReason,r=t.encoder,i=0,o=e.view.id,a=I({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:bf(o),source:"browser"},e);return function(t){wf(t).segments_count+=1}(o),{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=t.type===Bc),function(t){wf(t).records_count+=1}(a.view.id);var n=r.isEmpty()?'{"records":[':",";r.write(n+JSON.stringify(t),(function(t){e(i+=t)}))},flush:function(t){if(r.isEmpty())throw new Error("Empty segment flushed");r.write("],"+JSON.stringify(a).slice(1)+"\n"),r.finish((function(e){!function(t,e){wf(t).segments_total_raw_size+=e}(a.view.id,e.rawBytesCount),t(a,e)}))}}}var Ef=6e4;function kf(t,e,n,r,i,o){return function(t,e,n,r,i){var o={status:Tf.WaitingForInitialRecord,nextSegmentCreationReason:"init",isLocked:i},a=t.subscribe(lr,(function(){f("view_change")})),s=a.unsubscribe,u=t.subscribe(gr,(function(t){f(t.reason)})),c=u.unsubscribe,l=["view_change","buffer_checkout"];function f(t,e){var r=o.isLocked;if(o.status===Tf.SegmentPending){if(r&&l.includes(t))o.segment.flush((function(){e&&e()}));else{if(r)return;o.segment.flush((function(e,r){var i=gf(r.output,e,r.rawBytesCount);Vi(t)?n.sendOnExit(i):n.send(i)}))}m(o.expirationTimeoutId)}o="stop"!==t?{status:Tf.WaitingForInitialRecord,nextSegmentCreationReason:t,isLocked:o.isLocked}:{status:Tf.Stopped,isLocked:!1}}return{addRecord:function(t){if(o.status!==Tf.Stopped){if(o.status===Tf.WaitingForInitialRecord){var n=e();if(!n)return;o={status:Tf.SegmentPending,segment:xf({encoder:r,context:n,creationReason:o.nextSegmentCreationReason}),isLocked:o.isLocked,expirationTimeoutId:h((function(){f("segment_duration_limit")}),5e3)}}o.segment.addRecord(t,(function(t){t>Ef&&f("segment_bytes_limit")}))}},unlockSegment:function(){o.isLocked=!1},flushBufferSegment:function(t){f("buffer_checkout",t)},isLocked:function(){return o.isLocked},stop:function(){f("stop"),s(),c()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{sdk:{name:t.sdkName,version:t.sdkVersion},env:t.env||"",service:i.service||t.service||"browser",version:i.version||t.version||"",app:{id:t.applicationId},session:{id:r.id},view:{id:i.id}}}(e,n,r)}),i,o,arguments.length>6&&void 0!==arguments[6]&&arguments[6])}var Tf={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var Cf=0,Of=1,If=2,Af=3;var Rf,Pf,Nf,Mf,Lf=function(t,e){if(Go()&&!qo(Wo)||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:ot,stop:ot,getReplayStats:function(){},onRumStart:ot,isRecording:function(){return!1}};var n={status:Cf},r=function(){n={status:Of}},i=function(){n={status:Cf}};return{start:function(t){r(t)},stop:function(){i()},onRumStart:function(o,a,s,u,c){var l;o.subscribe(mr,(function(){n.status!==If&&n.status!==Af||(i(),n={status:Of})})),o.subscribe(gr,(function(t){t.reason===zi.UNLOADING&&i()})),o.subscribe(hr,(function(){n.status===Of&&r()})),r=function(r){var f=s.findTrackedSession();f&&f.sessionReplayAllowed?n.status!==If&&n.status!==Af&&(n={status:If},qi("interactive",(function(){if(n.status===If){var r=(l||(c||(c=bu(a,"Session Replay",(function(){i()}),e)),c&&(l=pu(c,fu))),l);if(r){var f=t(o,a,s,u,r);n={status:Af,stopRecording:f.stop}}else n={status:Cf}}}))):n={status:Of}},i=function(){n.status!==Cf&&(n.status===Af&&n.stopRecording(),n={status:Cf})},n.status===Of&&r()},isRecording:function(){return wu()===yu&&n.status===Af},getReplayStats:function(t){return wu()===yu?function(t){return _f&&_f.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a,s,u,c,l=[],f=o||Ro(e.sessionReplayEndPoint,Ef,e.retryMaxSize,(function(e){t.notify(Sr,{error:e}),To("Error reported to customer",{"error.message":e.message})}));if(Go()){var d=(u=r,c=Fo(),{addRecord:function(t){var e=u.findView();c.send("session_replay",t,e.id)}});s=mf({emit:a=d.addRecord,configuration:e,lifeCycle:t})}else{var p=n.findTrackedSession(),v=p&&p.errorSessionReplayAllowed&&!p.sessionHasError,h=kf(t,e,n,r,f,i,v);a=h.addRecord;var m=h.flushBufferSegment,g=h.unlockSegment;l.push(h.stop),v&&n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,n=t.newState;!e.hasError&&n.hasError&&(v=!1,g())}));var y=null;s=mf({emit:function(t){if(a(t),v)if(t.type===Bc)y=t;else if(t.type===zc){t.timestamp-y.timestamp>6e4&&m((function(){Sf(),_()}))}},configuration:e,lifeCycle:t})}l.push(s.stop);var _=s.takeSubsequentFullSnapshot,b=s.flushMutations,w=t.subscribe(pr,(function(){b(),a({timestamp:gt(),type:$c})}));l.push(w.unsubscribe);var S=t.subscribe(lr,(function(t){_(t.startClocks.timeStamp)}));return l.push(S.unsubscribe),{stop:function(){l.forEach((function(t){t()}))}}})),Df=function(t,e,n){void 0===n&&(n={});var r=la(sa),i=ta("global",{customerDataTracker:r.getOrCreateTracker(na)}),a=ta("user",{customerDataTracker:r.getOrCreateTracker(ea),propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}});function s(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(i,a,e)}var f,d,p=Uc(n,s,(function(o,u,c){o.storeContextsToLocal&&(aa(o,i,"rum",na),aa(o,a,"rum",ea)),r.setCompressionStatus(u?ua:ca);var l=t(o,e,r,s,c,u&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(u,t)}:da);return e.onRumStart(l.lifeCycle,o,l.session,l.viewContexts,u),p=function(t,e){return I({init:function(t){ha("DATAFLUX_RUM",t)},initConfiguration:t.getInitConfiguration()},e)}(p,l),l})),v=c((function(t){var e="object"===Eu(t)?t:{name:t};p.startView(e),e.context&&r.getOrCreateTracker(ra).updateCustomerData(e.context),Oo({feature:"start-view"})})),h=(f={init:c((function(t){p.init(t)})),setViewName:c((function(t){p.setViewName(t),Oo({feature:"set-view-name"})})),setViewContext:c((function(t){p.setViewContext(t),Oo({feature:"set-view-context"})})),setViewContextProperty:c((function(t,e){p.setViewContextProperty(t,e),Oo({feature:"set-view-context-property"})})),getViewContext:c((function(){return Oo({feature:"set-view-context-property"}),p.getViewContext()})),addRumGlobalContext:c((function(t,e){i.setContextProperty(t,e),Oo({feature:"set-global-context"})})),setGlobalContextProperty:c((function(t,e){i.setContextProperty(t,e),Oo({feature:"set-global-context"})})),removeRumGlobalContext:c((function(t){return i.removeContextProperty(t)})),removeGlobalContextProperty:c((function(t){return i.removeContextProperty(t)})),getRumGlobalContext:c((function(){return i.getContext()})),getGlobalContext:c((function(){return i.getContext()})),setRumGlobalContext:c((function(t){i.setContext(t),Oo({feature:"set-global-context"})})),setGlobalContext:c((function(t){i.setContext(t),Oo({feature:"set-global-context"})})),clearGlobalContext:c((function(){return i.clearContext()})),getInitConfiguration:c((function(){return rt(p.initConfiguration)})),getInternalContext:c((function(t){return p.getInternalContext(t)})),addDebugSession:c((function(t){})),clearDebugSession:c((function(){})),getDebugSession:c((function(){})),addAction:c((function(t,e){var n=$n();l((function(){p.addAction({name:Ln(t),context:Ln(e),startClocks:mt(),type:qe,handlingStack:n}),Oo({feature:"add-action"})}))})),addError:c((function(t,e){var n=$n();l((function(){p.addError({error:t,handlingStack:n,context:Ln(e),startClocks:mt()}),Oo({feature:"add-error"})}))})),addTiming:c((function(t,e){p.addTiming(Ln(t),e)})),setUser:c((function(t){(function(t){var e="object"===et(t);return e||o.error("Unsupported user:",t),e})(t)&&a.setContext(pa(t)),Oo({feature:"set-user"})})),getUser:c((function(){return a.getContext()})),setUserProperty:c((function(t,e){var n={};n[t]=e;var r=pa(n)[t];a.setContextProperty(t,r),Oo({feature:"set-user"})})),removeUserProperty:c((function(t){return a.removeContextProperty(t)})),removeUser:c((function(){return a.clearContext()})),clearUser:c((function(){return a.clearContext()})),startView:v,stopSession:c((function(){p.stopSession(),Oo({feature:"stop-session"})})),startSessionReplayRecording:c((function(t){e.start(t),Oo({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:c(e.stop)},d=I({onReady:function(t){t()}},f),Object.defineProperty(d,"_setDebug",{get:function(){return u},enumerable:!1}),d);return h}((function(t,e,n,r,i,o){var a=[],s=new xr,u=function(t){var e=ko(So,t);return e}(t),l=function(t){s.notify(Sr,{error:t})},f=new Kn((function(t){var e=tr(window,[de,ve],(function(e){e.type===de&&"hidden"===document.visibilityState?t.notify({reason:zi.HIDDEN}):e.type===ve&&t.notify({reason:zi.FROZEN})}),{capture:!0}),n=Zn(window,ne,(function(){t.notify({reason:zi.UNLOADING})}));return function(){e.stop(),n.stop()}}));f.subscribe((function(t){s.notify(gr,t)})),a.push((function(){pageExitSubscription.unsubscribe()}));var d=Go()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:ma,isErrorSession:!1,sessionErrorTimestamp:0,sessionReplayAllowed:!!qo(Wo),errorSessionReplayAllowed:!1,sessionHasError:!1};return{findTrackedSession:function(){return t},expire:ot,expireObservable:new Kn,setErrorForSession:function(){}}}():Ta(t,s);if(Go())!function(t){var e=Fo();t.subscribe(wr,(function(t){var n=Vo(t).rowData;e.send("rum",n)}))}(s);else{var p=xu(t,s,u.observable,l,f,d.expireObservable,o);a.push((function(){p.stop()}))}var v,h=Ia(t),m=(v=Aa(),new Kn((function(t){if(v){var e=new v(c((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),g=Ra(location),y=su(),_=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=Jt({expireDelay:Vu});return t.subscribe(cr,(function(t){e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(vr,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(dr,(function(t){var n=e.find(t.startClocks.relative);n&&t.name&&(n.name=t.name),n&&t.context&&(n.context=t.context)})),t.subscribe(hr,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),f=function(t,e,n){var r,i=Jt({expireDelay:zu});t.subscribe(cr,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(vr,(function(t){i.closeActive(t.endClocks.relative)}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=ht();i.closeActive(n),i.add(a({url:t.newLocation.href,location:t.newLocation,referrer:e.referrer}),n)}}));function a(t){var e=t.location.pathname,n=t.location.hash;return n&&!qt(n)&&(e="/"+Gt(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:J(e),urlQuery:Z(t.location.href)}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,a,n),d=function(t,e,n,r){t.subscribe(ur,(function(e){t.notify(br,cu(e,r))}));var i={findActionId:ot,findAllActionId:ot};return n.trackUserInteractions&&(i=Ys(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(br,R({savedCommonContext:n},cu(e,r)))}}}(t,s,e,o),p=d.actionContexts,v=d.addAction,h=(m=Bu(),{get:function(){return{viewport:m}},stop:Uu().subscribe((function(t){m=t})).unsubscribe});var m;return Du(e,t,r,i,l,f,p,h,u,c),{viewContexts:l,urlContexts:f,pageStateHistory:o,addAction:v,actionContexts:p,stop:function(){h.stop(),o.stop(),f.stop(),l.stop()}}}(s,t,location,d,h,y,g,m,r,l),b=_.viewContexts,w=_.urlContexts,S=_.actionContexts,x=_.stop,E=_.addAction;a.push(x),xo.drain(),u.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:d.findTrackedSession()&&d.findTrackedSession().id},view:{id:b.findView()&&b.findView().id},action:{id:S.findActionId(),ids:S.findAllActionId()}}}));var k=lc(s,t,location,m,g,y,e,i),T=k.addTiming,C=k.startView,O=k.setViewName,I=k.setViewContext,A=k.setViewContextProperty,P=k.getViewContext,N=k.stop;a.push(N);var M=Rc(s,t,y);if(a.push(M.stop),PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(is)){var L=function(t,e){var n=cs(e,{type:is,buffered:!0}).subscribe((function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=wt(i.startTime),a={date:o.timeStamp,longTask:{id:X(),entryType:Ye,duration:dt(i.duration),blockingDuration:dt(i.blockingDuration),firstUiEventTimestamp:dt(i.firstUIEventTimestamp),renderStart:dt(i.renderStart),styleAndLayoutStart:dt(i.styleAndLayoutStart),startTime:dt(i.startTime),scripts:i.scripts.map((function(t){return{duration:dt(t.duration),pause_duration:dt(t.pauseDuration),forced_style_and_layout_duration:dt(t.forcedStyleAndLayoutDuration),start_time:dt(t.startTime),execution_start:dt(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:Xe.LONG_TASK};t.notify(br,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}}));return{stop:function(){n.unsubscribe()}}}(s,t);a.push(L.stop)}else!function(t,e){var n=cs(e,{type:rs,buffered:!0}).subscribe((function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==rs)break;var i=wt(r.startTime),o={date:i.timeStamp,longTask:{id:X(),entryType:Je,duration:dt(r.duration)},type:Xe.LONG_TASK};t.notify(br,{rawRumEvent:o,startTime:i.relative,domainContext:{performanceEntry:r}})}}))}(s,t);var D=ju(s,0,d,y).addError;kc(s,t,d);var U=function(t,e,n,r,i){return{get:function(o){var a=n.findView(o),s=i.findUrl(o),u=e.findTrackedSession(o);if(u&&a&&s){var c=r.findActionId(o),l=r.findAllActionId(o);return{application:{id:t},session:{id:u.id},userAction:c?{id:c,ids:l}:void 0,view:{id:a.id,name:a.name||s.path,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,urlQuery:s.urlQuery}}}}}}(t.applicationId,d,b,S,w);return{addAction:E,addError:D,addTiming:T,configuration:t,startView:C,setViewContext:I,setViewContextProperty:A,getViewContext:P,setViewName:O,lifeCycle:s,viewContexts:b,session:d,stopSession:function(){d.expire()},getInternalContext:U.get,stop:function(){a.forEach((function(t){t()}))}}}),Lf,{startDeflateWorker:bu,createDeflateEncoder:pu});Rf=v(),Nf=Df,Mf=Rf[Pf="DATAFLUX_RUM"],Rf[Pf]=Nf,Mf&&Mf.q&&O(Mf.q,(function(t){d(t,"onReady callback threw an error:")()}))}();
|
|
1
|
+
!function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=console,n={};Object.keys(t).forEach((function(t){n[t]=e[t]}));var r,i="GUANCE Browser SDK:",o={debug:n.debug.bind(e,i),log:n.log.bind(e,i),info:n.info.bind(e,i),warn:n.warn.bind(e,i),error:n.error.bind(e,i)};function a(t,e){var n,r=window;return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}var s=!1;function u(t){s=t}function c(t){return function(){return l(t,this,arguments)}}function l(t,e,n){try{return t.apply(e,n)}catch(t){if(f(t),r)try{r(t)}catch(t){f(t)}}}function f(){var t=[].slice.call(arguments);s&&o.error.apply(null,["[MONITOR]"].concat(t))}function d(t,e){return function(){var n=[].slice.call(arguments);try{return t.apply(this,n)}catch(t){o.error(e,t)}}}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function v(){if("object"===("undefined"==typeof globalThis?"undefined":p(globalThis)))return globalThis;Object.defineProperty(Object.prototype,"_gc_temp_",{get:function(){return this},configurable:!0});var t=_gc_temp_;return delete Object.prototype._gc_temp_,"object"!==p(t)&&(t="object"===("undefined"==typeof self?"undefined":p(self))?self:"object"===("undefined"==typeof window?"undefined":p(window))?window:{}),t}function h(t,e){return a(v(),"setTimeout")(c(t),e)}function m(t){a(v(),"clearTimeout")(t)}function g(t,e){return a(v(),"setInterval")(c(t),e)}function y(t){a(v(),"clearInterval")(t)}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}var b=Array.prototype,w=(Function.prototype,Object.prototype),S=b.slice,x=w.toString,E=w.hasOwnProperty,k=b.forEach,T=Array.isArray,C=!1,O=function(t,e,n){if(null===t)return!1;if(k&&t.forEach===k)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&e.call(n,t[r],r,t)===C)return!1}else for(var o in t)if(E.call(t,o)&&e.call(n,t[o],o,t)===C)return!1};function I(t){return O(S.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function A(t){return I({},t)}var R=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},P=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&($(e[n])&&$(t[n])?R(t[n],e[n]):t[n]=e[n])})),t},N=T||function(t){return"[object Array]"===x.call(t)},M=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},L=function(t){return t?t.toArray?t.toArray():N(t)?S.call(t):(e=t)&&E.call(e,"callee")?S.call(t):D(t):[];var e},D=function(t){var e=[];return null===t||O(t,(function(t){e[e.length]=t})),e},U=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},B=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},z=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},V=function(t,e,n){return void 0===n&&(n=!1),z(t,(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?Ft(e,t):t===e}catch(t){o.error(t)}return!1}))},j=function(t){return t+="",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?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}))},$=function(t){return null!==t&&"[object Object]"===x.call(t)},H=function(t){if($(t)){for(var e in t)if(E.call(t,e))return!1;return!0}return!1},F=function(t){var e=[];return O(t,(function(t,n){e.push([n,t])})),e},W=function(t){return"[object String]"===x.call(t)},q=function(t){return"[object Boolean]"===x.call(t)},G=function(t){return"[object Number]"===x.call(t)&&/[\d\.]+/.test(String(t))},Q=(Date.now,function(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1,u=this;return{throttled:function(){s?r=arguments:(o?t.apply(u,arguments):r=arguments,s=!0,i=h((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){m(i),s=!1,r=void 0}}}),K=function(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)})));var e,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",l=[];if(!(t=String(t)))return t;t=function(t){var e,n,r,i,o="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=t.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(n>e&&(o+=t.substring(e,n)),o+=s,e=n=i+1)}return n>e&&(o+=t.substring(e,t.length)),o}(t);do{e=(o=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,l[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<t.length);switch(c=l.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function X(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,X)}function J(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var Y=function(t){var e=function(t){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=null,this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,void 0!==t&&this._parse(t)};return e.prototype.setUrl=function(t){this._parse(t)},e.prototype._initValues=function(){for(var t in this._fields)this._values[t]=""},e.prototype.addQueryString=function(t){if("object"!==_(t))return!1;var e=this._values.QueryString||"";for(var n in t)e=new RegExp(n+"[^&]+").test(e)?e.replace(new RegExp(n+"[^&]+"),n+"="+t[n]):"&"===e.slice(-1)?e+n+"="+t[n]:""===e?n+"="+t[n]:e+"&"+n+"="+t[n];this._values.QueryString=e},e.prototype.getParse=function(){return this._values},e.prototype.getUrl=function(){var t="";return t+=this._values.Origin,t+=this._values.Path,t+=this._values.QueryString?"?"+this._values.QueryString:""},e.prototype._parse=function(t){this._initValues();var e=this._regex.exec(t);if(!e)throw"DPURLParser::_parse -> Invalid URL";for(var n in this._fields)void 0!==e[this._fields[n]]&&(this._values[n]=e[this._fields[n]]);this._values.Path=this._values.Path||"/",this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname+(this._values.Port?":"+this._values.Port:"")},new e(t)};var Z=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=tt("?"+n)),e},tt=function(t){for(var e=function(t){return decodeURIComponent(t)},n={},r=(t=t||"").substring(1).split("&"),i=0;i<r.length;i++){var o=r[i].indexOf("=");if(-1!==o){var a=r[i].substring(0,o),s=r[i].substring(o+1);a=e(a),s=e(s),n[a]=s}}return n};function et(t){return null===t?"null":Array.isArray(t)?"array":_(t)}function nt(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!==_(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]=nt(i[o],e[o],n);return i}i="object"===et(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=nt(i[a],e[a],n));return i}}function rt(t){return nt(void 0,t)}function it(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):0===t?void 0:t}function ot(){}var at,st=1e3,ut=6e4;function ct(t){return 0!==t&&100*Math.random()<=t}function lt(t,e){return+t.toFixed(e)}function ft(t){return"number"!=typeof t?t:lt(1e6*t,0)}function dt(t){return G(t)?lt(1e6*t,0):t}function pt(t){return t-Et()}function vt(t){return Math.round(Et()+t)}function ht(){return performance.now()}function mt(){return{relative:ht(),timeStamp:gt()}}function gt(){return yt()}function yt(){return(new Date).getTime()}function _t(t,e){return e-t}function bt(){return{relative:0,timeStamp:Et()}}function wt(t){return{relative:t,timeStamp:xt(t)}}function St(t,e){return t+e}function xt(t){var e=yt()-performance.now();return e>Et()?Math.round(e+t):vt(t)}function Et(){return void 0===at&&(at=performance.timing.navigationStart),at}var kt=/([\w-]+)\s*=\s*([^;]+)/g;function Tt(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&$(t)&&r in t&&E.call(t,r)))return;t=t[r]}return t}function Ct(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function Ot(t){var e=et(t);return"string"===e||"function"===e||t instanceof RegExp}function It(t,e){return-1!==t.indexOf(e)}function At(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Rt(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach((function(t){e.push(t)}));else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function Pt(t){return G(t)&&t>=0&&t<=100}var Nt,Mt=0,Lt=1,Dt=2,Ut=3;function Bt(){return $t(Nt,Nt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return Lt;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return Dt;if(t.document.documentMode)return Mt;return Ut}())}function zt(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Vt(t){var e={};return O(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=jt(t)})),e}function jt(t){return N(t)?B(t,(function(t){return jt(t)})):"object"===_(t)&&null!==t?Vt(t):t}function $t(t,e){return null!=t?t:e}function Ht(t,e){return z((r=[],null===(n=t)||O(n,(function(t,e){r[r.length]=e})),r),(function(n){return t[n]===e}));var n,r}function Ft(t,e){return t.slice(0,e.length)===e}function Wt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function qt(t){var e=t.substr(1);return!!e&&!!document.getElementById(e)}function Gt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Qt(t){return G(t)&&t<0?void 0:t}function Kt(){var t=[],e=function(e){t.push(e)>500&&t.splice(0,1)};return{add:e,remove:e,drain:function(e){t.forEach((function(t){t(e)})),t.length=0}}}var Xt=1/0;function Jt(t){var e=t.expireDelay,n=t.maxEntries,r=[],i=g((function(){return function(){var t=ht()-e;for(;r.length>0&&r[r.length-1].endTime<t;)r.pop()}()}),6e4);return{add:function(t,e){var i={value:t,startTime:e,endTime:Xt,remove:function(){Wt(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=Xt),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===Xt&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Xt),void 0===e&&(e=0);var n=St(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(){y(i)}}}var Yt={navigator:"undefined"!=typeof window&&void 0!==window.navigator?window.navigator:{},infoMap:{engine:["WebKit","Trident","Gecko","Presto"],browser:["Safari","Chrome","Edge","IE","IE 11","IE 10","IE 9","IE 8","IE 7","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Arora","Lunascape","QupZilla","Coc Coc","Kindle","Iceweasel","Konqueror","Iceape","SeaMonkey","Epiphany","360","360SE","360EE","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat",,"WechatWork","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","Android","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],device:["Mobile","Tablet","iPad"]}},Zt={getMatchMap:c((function(t){return{Trident:t.indexOf("Trident")>-1||t.indexOf("NET CLR")>-1,Presto:t.indexOf("Presto")>-1,WebKit:t.indexOf("AppleWebKit")>-1,Gecko:t.indexOf("Gecko/")>-1,Safari:t.indexOf("Safari")>-1,Chrome:t.indexOf("Chrome")>-1||t.indexOf("CriOS")>-1,IE:t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1,Edge:t.indexOf("Edge")>-1||t.indexOf("Edg")>-1,Firefox:t.indexOf("Firefox")>-1||t.indexOf("FxiOS")>-1,"Firefox Focus":t.indexOf("Focus")>-1,Chromium:t.indexOf("Chromium")>-1,Opera:t.indexOf("Opera")>-1||t.indexOf("OPR")>-1,Vivaldi:t.indexOf("Vivaldi")>-1,Yandex:t.indexOf("YaBrowser")>-1,Arora:t.indexOf("Arora")>-1,Lunascape:t.indexOf("Lunascape")>-1,QupZilla:t.indexOf("QupZilla")>-1,"Coc Coc":t.indexOf("coc_coc_browser")>-1,Kindle:t.indexOf("Kindle")>-1||t.indexOf("Silk/")>-1,Iceweasel:t.indexOf("Iceweasel")>-1,Konqueror:t.indexOf("Konqueror")>-1,Iceape:t.indexOf("Iceape")>-1,SeaMonkey:t.indexOf("SeaMonkey")>-1,Epiphany:t.indexOf("Epiphany")>-1,360:t.indexOf("QihooBrowser")>-1||t.indexOf("QHBrowser")>-1,"360EE":t.indexOf("360EE")>-1,"360SE":t.indexOf("360SE")>-1,UC:t.indexOf("UC")>-1||t.indexOf(" UBrowser")>-1,QQBrowser:t.indexOf("QQBrowser")>-1,QQ:t.indexOf("QQ/")>-1,Baidu:t.indexOf("Baidu")>-1||t.indexOf("BIDUBrowser")>-1,Maxthon:t.indexOf("Maxthon")>-1,Sogou:t.indexOf("MetaSr")>-1||t.indexOf("Sogou")>-1,LBBROWSER:t.indexOf("LBBROWSER")>-1,"2345Explorer":t.indexOf("2345Explorer")>-1,TheWorld:t.indexOf("TheWorld")>-1,XiaoMi:t.indexOf("MiuiBrowser")>-1,Quark:t.indexOf("Quark")>-1,Qiyu:t.indexOf("Qiyu")>-1,Wechat:t.indexOf("MicroMessenger")>-1,Taobao:t.indexOf("AliApp(TB")>-1,Alipay:t.indexOf("AliApp(AP")>-1,Weibo:t.indexOf("Weibo")>-1,Douban:t.indexOf("com.douban.frodo")>-1,Suning:t.indexOf("SNEBUY-APP")>-1,iQiYi:t.indexOf("IqiyiApp")>-1,Windows:t.indexOf("Windows")>-1,Linux:t.indexOf("Linux")>-1||t.indexOf("X11")>-1,"Mac OS":t.indexOf("Macintosh")>-1,Android:t.indexOf("Android")>-1||t.indexOf("Adr")>-1,Ubuntu:t.indexOf("Ubuntu")>-1,FreeBSD:t.indexOf("FreeBSD")>-1,Debian:t.indexOf("Debian")>-1,"Windows Phone":t.indexOf("IEMobile")>-1||t.indexOf("Windows Phone")>-1,BlackBerry:t.indexOf("BlackBerry")>-1||t.indexOf("RIM")>-1,MeeGo:t.indexOf("MeeGo")>-1,Symbian:t.indexOf("Symbian")>-1,iOS:t.indexOf("like Mac OS X")>-1,"Chrome OS":t.indexOf("CrOS")>-1,WebOS:t.indexOf("hpwOS")>-1,Mobile:t.indexOf("Mobi")>-1||t.indexOf("iPh")>-1||t.indexOf("480")>-1,Tablet:t.indexOf("Tablet")>-1||t.indexOf("Nexus 7")>-1,iPad:t.indexOf("iPad")>-1}})),matchInfoMap:c((function(t){var e=Yt.navigator.userAgent||"",n=Zt.getMatchMap(e);for(var r in Yt.infoMap)for(var i=0;i<Yt.infoMap[r].length;i++){var o=Yt.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:c((function(){return Zt.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:c((function(){var t=this,e=Yt.navigator.userAgent||"";t.osVersion="",t.osMajor="";var n={Windows:function(){var t=e.replace(/^.*Windows NT ([\d.]+);.*$/,"$1");return{6.4:"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP","5.0":"2000"}[t]||t},Android:function(){return e.replace(/^.*Android ([\d.]+);.*$/,"$1")},iOS:function(){return e.replace(/^.*OS ([\d_]+) like.*$/,"$1").replace(/_/g,".")},Debian:function(){return e.replace(/^.*Debian\/([\d.]+).*$/,"$1")},"Windows Phone":function(){return e.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/,"$2")},"Mac OS":function(){return e.replace(/^.*Mac OS X ([\d_]+).*$/,"$1").replace(/_/g,".")},WebOS:function(){return e.replace(/^.*hpwOS\/([\d.]+);.*$/,"$1")}};return n[t.os]&&(t.osVersion=n[t.os](),t.osVersion===e&&(t.osVersion="")),t.osVersion&&(t.osMajor=t.osVersion.split(".").length&&t.osVersion.split(".")[0]),{version:t.osVersion,osMajor:t.osMajor}})),getOrientationStatu:c((function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"})),getDeviceType:c((function(){var t=this;return t.device="PC",Zt.matchInfoMap(t),t.device})),getNetwork:c((function(){var t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,e="unknown",n=t?t.type||t.effectiveType:null;if(n&&"string"==typeof n)switch(n){case"bluetooth":case"cellular":case"slow-2g":case"2g":case"3g":e="cellular";break;case"none":e="none";break;case"ethernet":case"wifi":case"wimax":case"4g":e="wifi";break;case"other":case"unknown":e="unknown"}return e})),getLanguage:c((function(){var t;return this.language=((t=(Yt.navigator.browserLanguage||Yt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getBrowserInfo:c((function(){var t=this;Zt.matchInfoMap(t);var e=Yt.navigator.userAgent||"",n=function(t,e){var n=Yt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=Zt.getMatchMap(e),i=!1;if("undefined"!=typeof window&&window.chrome){var o=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");o>36&&window.showModalDialog?i=!0:o>45&&(i=n("type","application/vnd.chromium.remoting-viewer"))}if(r.Baidu&&r.Opera&&(r.Baidu=!1),r.Mobile&&(r.Mobile=!(e.indexOf("iPad")>-1)),i&&(n("type","application/gameplugin")||Yt.navigator&&Yt.navigator.connection&&void 0===Yt.navigator.connection.saveData?r["360SE"]=!0:r["360EE"]=!0),r.IE||r.Edge)switch(window.screenTop-window.screenY){case 71:case 74:case 99:case 75:case 74:case 105:default:break;case 102:r["360EE"]=!0;break;case 104:r["360SE"]=!0}var a={Safari:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return e.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return e.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return e.replace(/^.*Edge?\/([\d.]+).*$/,"$1")},Firefox:function(){return e.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return e.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return e.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return e.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1")},Vivaldi:function(){return e.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return e.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return e.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return e.replace(/^.*Lunascape[\/\s]([\d.]+).*$/,"$1")},QupZilla:function(){return e.replace(/^.*QupZilla[\/\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return e.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return e.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return e.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return e.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return e.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return e.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},360:function(){return e.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){return{63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"360EE":function(){return{69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},Maxthon:function(){return e.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return e.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return e.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return e.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/,"$1")},UC:function(){return e.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return e.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},LBBROWSER:function(){var t="";e.indexOf("LieBaoFast")>-1&&(t=e.replace(/^.*LieBaoFast\/([\d.]+).*$/,"$1"));var n=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");return t||{57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[n]||""},"2345Explorer":function(){return e.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1")},TheWorld:function(){return e.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return e.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return e.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return e.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return e.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},WechatWork:function(){return e.replace(/^.*wxwork\/([\d.]+).*$/,"$1")},Taobao:function(){return e.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return e.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return e.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return e.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return e.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return e.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")}};return t.browserVersion="",t.browserMajor="",a[t.browser]&&(t.browserVersion=a[t.browser](),t.browserVersion==e&&(t.browserVersion="")),"Chrome"==t.browser&&e.match(/\S+Browser/)&&(t.browser=e.match(/\S+Browser/)[0],t.version=e.replace(/^.*Browser\/([\d.]+).*$/,"$1")),"Edge"==t.browser&&(t.version>"75"?t.engine="Blink":t.engine="EdgeHTML"),("Chrome"==t.browser&&parseInt(t.browserVersion)>27||r.Chrome&&"WebKit"==t.engine&&parseInt(t.browserVersion)>27||"Opera"==t.browser&&parseInt(t.version)>12||"Yandex"==t.browser)&&(t.engine="Blink"),t.browserVersion&&(t.browserMajor=t.browserVersion.split(".").length&&this.browserVersion.split(".")[0]),{browser:t.browser,browserVersion:t.browserVersion,engine:t.engine,browserMajor:t.browserMajor}})),getGeoPostion:c((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){o.warn(t)}))}))},te={};"undefined"!=typeof window&&(te={os:Zt.getOS(),osVersion:Zt.getOSVersion().version,osVersionMajor:Zt.getOSVersion().osMajor,browser:Zt.getBrowserInfo().browser,browserVersion:Zt.getBrowserInfo().browserVersion,browserVersionMajor:Zt.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:Zt.getNetwork(),device:Zt.getDeviceType()});var ee=te,ne="beforeunload",re="click",ie="dblclick",oe="keydown",ae="load",se="popstate",ue="scroll",ce="touchstart",le="touchend",fe="touchmove",de="visibilitychange",pe="pageshow",ve="freeze",he="resume",me="DOMContentLoaded",ge="pointerdown",ye="pointerup",_e="pointercancel",be="hashchange",we="pagehide",Se="mousedown",xe="mousemove",Ee="focus",ke="blur",Te="contextmenu",Ce="resize",Oe="change",Ie="input",Ae="play",Re="pause",Pe="securitypolicyviolation",Ne="selectionchange",Me="storage",Le="document",De="xhr",Ue="beacon",Be="fetch",ze="css",Ve="js",je="image",$e="font",He="media",Fe="other",We="click",qe="custom",Ge="rage_click",Qe="error_click",Ke="dead_click",Xe={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},Je="long-task",Ye="long-animation-frame",Ze="initial_load",tn="route_change",en={FETCH:Be,XHR:De},nn="ddtrace",rn="zipkin",on="zipkin_single_header",an="w3c_traceparent",sn="w3c_traceparent_64bit",un="skywalking_v3",cn="jaeger",ln="handled",fn="unhandled",dn="Uncaught",pn="Provided";function vn(t){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(t)}function hn(t,e,n){if("object"!==vn(t)||null===t)return JSON.stringify(t);var r=mn(Object.prototype),i=mn(Array.prototype),o=mn(Object.getPrototypeOf(t)),a=mn(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function mn(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ot}function gn(t){return gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(t)}var yn="?";function _n(t){var e=[],n=On(t,"stack"),r=String(t);return n&&n.startsWith(r)&&(n=n.slice(r.length)),n&&O(n.split("\n"),(function(t){var n=function(t){var e=Sn.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=xn.exec(e[2]);r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||yn,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=En.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:yn,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=kn.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||yn,line:+e[3],url:e[2]}}(t)||function(t){var e=Tn.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Cn.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||yn,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=yn),e.push(n))})),{message:On(t,"message"),name:On(t,"name"),stack:e}}var bn="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",wn="(?::(\\d+))",Sn=new RegExp("^\\s*at (.*?) ?\\("+bn+wn+"?"+wn+"?\\)?\\s*$","i"),xn=new RegExp("\\((\\S*)"+wn+wn+"\\)");var En=new RegExp("^\\s*at ?"+bn+wn+"?"+wn+"??\\s*$","i");var kn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Tn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Cn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function On(t,e){if("object"===gn(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var In=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function An(t){var e=function(t){return qn(window,"onerror",(function(e){var n,r=e.parameters,i=r[0],o=r[1],a=r[2],s=r[3],u=r[4];if(u instanceof Error)n=_n(u);else{var c={url:o,column:s,line:a},l=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=In.exec(t);r&&(e=r[1],n=r[2])}return{name:e,message:n}}(i);n={name:l.name,message:l.message,stack:[c]}}t(n,$t(u,i))}))}(t),n=function(t){return qn(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=_n(n);t(r,n)}))}(t);return{stop:function(){e.stop(),n.stop()}}}var Rn=1024,Pn=/[^\u0000-\u007F]/;function Nn(t){return Pn.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function Ln(t,e){void 0===e&&(e=225280);var n=mn(Object.prototype),r=mn(Array.prototype),i=[],o=new WeakMap,a=Dn(t,"$",void 0,i,o),s=JSON.stringify(a)&&JSON.stringify(a).length||0;if(!(s>e)){for(;i.length>0&&s<e;){var u=i.shift(),c=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(s+=void 0!==(f=Dn(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){Bn(e,"truncated",t);break}u.target[l]=f}else for(var l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){var f;if(void 0!==(f=Dn(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+3,c=1),s>e){Bn(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}Bn(e,"discarded",t)}function Dn(t,e,n,r,i){var o=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!o||"object"!==Mn(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Mn(t))return"[Symbol] "+t.description||0;return t}(o);var a=Un(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=t;if(i.has(s))return"[Reference seen at "+i.get(s)+"]";var u=void 0!==n?e+"."+n:e,c=Array.isArray(o)?[]:{};return i.set(s,u),r.push({source:o,target:c,path:u}),c}function Un(t){try{if(t instanceof Event)return{type:(n=t).type,isTrusted:n.isTrusted,currentTarget:n.currentTarget?Un(n.currentTarget):null,target:n.target?Un(n.target):null};if(t instanceof RegExp)return"[RegExp] ".concat(t.toString());var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}var n;return"[Unserializable]"}function Bn(t,e,n){o.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",n)}var zn="No stack, consider using an instance of Error",Vn={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function jn(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+hn(Ln(r))}(e,u,o,n),l=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(u,e)?Hn(e):zn,f=u?Wn(n,a):void 0;return{startClocks:i,source:a,handling:s,originalError:n,message:c,stack:l,handlingStack:r,type:e&&e.name,causes:f}}function $n(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return l((function(){var n=_n(e);n.stack=n.stack.slice(2),t=Hn(n)})),t}function Hn(t){var e=Fn(t);return O(t.stack,(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"("+t.args.join(", ")+")":"",i=t.line?":"+t.line:"",o=t.line&&t.column?":"+t.column:"";e+="\n at "+n+r+" @ "+t.url+i+o})),e}function Fn(t){return(t.name||"Error")+": "+t.message}function Wn(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=_n(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&Hn(i)}),n=n.cause}return r.length?r:void 0}function qn(t,e,n,r){var i=r&&r.computeHandlingStack,o=t[e];if("function"!=typeof o){if(!Ft(e,"on"))return{stop:ot};o=ot}var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=Rt(arguments);l(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?$n():void 0}]);var r=o.apply(this,e);return t&&l(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function Gn(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:ot};var i=ot,o=function(t,e){h((function(){o!==i&&n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===a&&Object.defineProperty(t,e,r),o=i}}}var Qn=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};Qn.prototype={subscribe:function(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0);var e=this;return{unsubscribe:function(){e.observers=U(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){O(this.observers,(function(e){e(t)}))}};var Kn=Qn;function Xn(){var t=[].slice.call(arguments);return new Kn((function(e){var n=B(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return O(n,(function(t){return t.unsubscribe()}))}}))}var Jn={};function Yn(e){var n=B(e,(function(e){return Jn[e]||(Jn[e]=function(e){return new Kn((function(n){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=$n();l((function(){n.notify(function(e,n,r){var i,o=B(e,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return Fn(_n(t));return hn(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=At(e,(function(t){return t instanceof Error}));i={stack:a?Hn(_n(a)):void 0,causes:a?Wn(a,"console"):void 0,startClocks:mt(),message:o,source:Vn.CONSOLE,handling:ln,handlingStack:r}}return{api:n,message:o,error:i,handlingStack:r}}(i,e,o))}))},function(){console[e]=r}}))}(e)),Jn[e]}));return Xn.apply(this,n)}function Zn(t,e,n,r){return tr(t,[e],n,r)}function tr(t,e,n,r){var i=c(r&&r.once?function(t){s(),n(t)}:n);r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture;var o=a(t,"addEventListener");O(e,(function(e){o.call(t,e,i,r)}));var s=function(){var n=a(t,"removeEventListener");O(e,(function(e){n.call(t,e,i,r)}))};return{stop:s}}var er="intervention",nr="csp_violation";function rr(t,e){var n=[];It(e,nr)&&n.push(new Kn((function(t){return Zn(document,Pe,(function(e){t.notify(function(t){var e="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return ir({type:t.effectiveDirective,message:nr+": "+e,originalError:t,csp:{disposition:t.disposition},stack:or(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(Ct(t.originalPolicy,100),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(e))})).stop})));var r=U(e,(function(t){return t!==nr}));return r.length&&n.push(function(t){return new Kn((function(e){if(window.ReportingObserver){var n=c((function(t){O(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return ir({type:e.id,message:n+": "+e.message,originalError:t,stack:or(e.id,e.message,e.sourceFile,e.lineNumber,e.columnNumber)})}(t))}))})),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),Xn.apply(this,n)}function ir(t){return I({startClocks:mt(),source:ErrorSource.REPORT,handling:ErrorHandling.UNHANDLED},t)}function or(t,e,n,r,i){return n&&Hn({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var ar=function(){this._events=[],this.pendingEvents=[]};ar.prototype={emit:function(t){var e=[].slice.call(arguments,1);O(this._events,(function(n){if(n.type!==t)return!1;n.callback.apply(n.context,e)}))},on:function(t,e,n){"function"==typeof e&&this._events.push({type:t,callback:e,context:n||this})}};new ar;var sr,ur="AUTO_ACTION_COMPLETED",cr="BEFORE_VIEW_CREATED",lr="VIEW_CREATED",fr="VIEW_UPDATED",dr="BEFORE_VIEW_UPDATED",pr="VIEW_ENDED",vr="AFTER_VIEW_ENDED",hr="SESSION_RENEWED",mr="SESSION_EXPIRED",gr="PAGE_EXITED",yr="REQUEST_STARTED",_r="REQUEST_COMPLETED",br="RAW_RUM_EVENT_COLLECTED",wr="RUM_EVENT_COLLECTED",Sr="RAW_ERROR_COLLECTED";function xr(){this.callbacks={}}function Er(t){return Ir(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Cr(t)||Tr()}function kr(t,e){return Ir(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||Cr(t,e)||Tr()}function Tr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Cr(t,e){if(t){if("string"==typeof t)return Or(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Or(t,e):void 0}}function Or(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ir(t){if(Array.isArray(t))return t}function Ar(t,e,n){var r=rt(t),i=n(r);return F(e).forEach((function(e){var n=kr(e,2),i=n[0],o=n[1];return Rr(t,r,i.split(/\.|(?=\[\])/),o)})),i}function Rr(t,e,n,r){var i=Er(n),o=i[0],a=i.slice(1);if("[]"!==o){if(Pr(t)&&Pr(e))return a.length>0?Rr(t[o],e[o],a,r):void function(t,e,n,r){var i=et(n);i===r?t[e]=Ln(n):"object"!==r||"undefined"!==i&&"null"!==i||(t[e]={})}(t,o,e[o],r)}else Array.isArray(t)&&Array.isArray(e)&&t.forEach((function(t,n){return Rr(t,e[n],a,r)}))}function Pr(t){return"object"===et(t)}function Nr(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&h((function(){r=0}),ut),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of "+t+"s by minute: "+e,source:Vn.AGENT,startClocks:mt()})}finally{i=!1}}return!0}}}function Mr(t){return Dr(t,zt(window.location)).href}function Lr(t){return zt(Dr(t))}function Dr(t,e){if(function(){if(void 0!==sr)return sr;try{var t=new URL("http://test/path");return sr="http://test/path"===t.href}catch(t){sr=!1}return sr}())return void 0!==e?new URL(t,e):new URL(t);if(void 0===e&&!/:/.test(t))throw new Error("Invalid URL: "+t);var n=document,r=n.createElement("a");if(void 0!==e){var i=(n=document.implementation.createHTMLDocument("")).createElement("base");i.href=e,n.head.appendChild(i),n.body.appendChild(r)}return r.href=t,r}xr.prototype={notify:function(t,e){var n=this.callbacks[t];n&&O(n,(function(t){t(e)}))},subscribe:function(t,e){this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e);var n=this;return{unsubscribe:function(){n.callbacks[t]=U(n.callbacks[t],(function(t){return t!==e}))}}}};var Ur=navigator.userAgent.toLowerCase(),Br=function(){return/iphone os/.test(Ur)};function zr(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(c(t),e);return function(){return window.cancelIdleCallback(n)}}return function(t){var e=yt(),n=h((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,Vr-(yt()-e))}})}),0);return function(){return m(n)}}(t)}var Vr=50;var jr,$r=/^\s+|\s+$/g,Hr={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function Fr(t,e){var n=Hr[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+Wr(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?Wr(r)+"v1/write"+n:Wr(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function Wr(t){return t.replace($r,"")}function qr(t,e){return"".concat(t,"_").concat(e&&e.crossSite?"cs1":"cs0","_").concat(e&&e.domain?"d1":"d0","_").concat(e&&e.secure?"sec1":"sec0","_").concat(e&&e.partitioned?"part1":"part0")}function Gr(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires="+i.toUTCString(),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain="+r.domain:"",u=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie=qr(t,r)+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function Qr(t,e){return function(t,e){for(kt.lastIndex=0;;){var n=kt.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,qr(t,e))}function Kr(t,e){Gr(t,"",0,e)}var Xr=144e5,Jr=9e5,Yr="_gc_s";function Zr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ti(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ti(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ti(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ei=/^([a-zA-Z]+)=([a-z0-9-]+)$/,ni="&";function ri(t){return H(t)}function ii(t){return void 0!==t.isExpired||!((void 0===(e=t).created||yt()-Number(e.created)<Xr)&&(void 0===e.expire||yt()<Number(e.expire)));var e}function oi(t){return B(F(t),(function(t){return t[0]+"="+t[1]})).join("&")}function ai(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(ni)||ei.test(t))}(t)&&t.split(ni).forEach((function(t){var n=ei.exec(t);if(null!==n){var r=Zr(n,3),i=r[1],o=r[2];e[i]=o}})),e}function si(t){var e=function(t){var e={};e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===jr){for(var t="gc_site_test_".concat(X()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Qr(t,{domain:n});)n="".concat(e.pop(),".").concat(n),Gr(t,"test",st,{domain:n});Kr(t,{domain:n}),jr=n}return jr}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(X()),n="test";Gr(e,n,ut,t);var r=Qr(e,t)===n;return Kr(e,t),r}catch(t){return!1}}(e)?{type:"Cookie",cookieOptions:e}:void 0}function ui(t){var e;return{isLockEnabled:Bt()===Lt,persistSession:(e=t,function(t){Gr(Yr,oi(t),Jr,e)}),retrieveSession:ci(t),expireSession:function(){return function(t){Gr(Yr,oi({isExpired:"1"}),Xr,t)}(t)}}}function ci(t){return function(){return ai(Qr(Yr,t))}}function li(t){localStorage.setItem(Yr,oi(t))}function fi(){return ai(localStorage.getItem(Yr))}function di(){li({isExpired:"1"})}var pi,vi=[];function hi(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.isLockEnabled,i=e.persistSession,o=e.expireSession,a=function(t){return i(I({},t,{lock:u}))},s=function(){var t=e.retrieveSession(),n=t.lock;return t.lock&&delete t.lock,{session:t,lock:n}};if(pi||(pi=t),t===pi)if(r&&n>=100)gi(e);else{var u,c=s();if(r){if(c.lock&&!ri(c.session))return void mi(t,e,n);if(u=X(),a(c.session),(c=s()).lock!==u&&!ri(c.session))return void mi(t,e,n)}var l=t.process(c.session);if(!r||(c=s()).lock===u||ri(c.session)){if(l&&(ii(l)?o():(l.expire=String(yt()+Jr),r?a(l):i(l))),r&&(!l||!ii(l))){if((c=s()).lock!==u&&!ri(c.session))return void mi(t,e,n);i(c.session),l=c.session}t.after&&t.after(l||c.session),gi(e)}else mi(t,e,n)}else vi.push(t)}function mi(t,e,n){h((function(){hi(t,e,n+1)}),10)}function gi(t){pi=void 0;var e=vi.shift();e&&hi(e,t)}var yi=st;function _i(t){var e=si(t);return!e&&t.allowFallbackToLocalStorage&&(e=function(){try{var t=X(),e="".concat("_gc_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),e}function bi(t,e,n){var r,i=new Kn,o=new Kn,a=new Kn,s="Cookie"===t.type?ui(t.cookieOptions):{isLockEnabled:!1,persistSession:li,retrieveSession:fi,expireSession:di},u=s.expireSession,c=g((function(){hi({process:function(t){return ii(t)?{isExpired:"1"}:void 0},after:p},s)}),yi);v();var l=Q((function(){hi({process:function(t){if(!ri(t)){var r=p(t);return function(t){if(ri(t))return!1;var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,delete t.isExpired,o&&!t.id&&(t.id=X(),t.created=String(yt()))}(r),r}},after:function(t){ri(t)||h()||function(t){r=t,i.notify()}(t),r=t}},s)}),yi),f=l.throttled,d=l.cancel;function p(t){return ii(t)&&(t={isExpired:"1"}),h()&&(!function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(a.notify({previousState:r,newState:t}),r=t):(r={isExpired:"1"},o.notify())),t}function v(){hi({process:function(t){if(ri(t))return{isExpired:"1"}},after:function(t){r=t}},s)}function h(){return void 0!==r[e]}return{expandOrRenewSession:f,expandSession:function(){hi({process:function(t){return h()?p(t):void 0}},s)},getSession:function(){return r||{}},renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a,restartSession:v,expire:function(){d(),u(),p({isExpired:"1"})},stop:function(){y(c)},updateSessionState:function(t){hi({process:function(e){return I({},e,t)},after:p},s)}}}var wi={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Si(t){if(void 0===t.sampleRate||Pt(t.sampleRate))if(void 0===t.sessionSampleRate||Pt(t.sessionSampleRate)){if(void 0===t.telemetrySampleRate||Pt(t.telemetrySampleRate)){var e=$t(t.sessionSampleRate,t.sampleRate);return I({beforeSend:t.beforeSend&&d(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:_i(t),sessionSampleRate:$t(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:$t(t.telemetrySampleRate,100),telemetryEnabled:$t(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,resourceUrlLimit:5120,storeContextsToLocal:!!t.storeContextsToLocal,storeContextsKey:t.storeContextsKey,sendContentTypeByJson:!!t.sendContentTypeByJson,retryMaxSize:$t(t.retryMaxSize,-1)},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&M(t.isIntakeUrl)&&q(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&M(t.isServerError)&&q(t.isServerError())&&(n=t.isServerError),{rumEndpoint:Fr(t,"rum"),logsEndpoint:Fr(t,"log"),sessionReplayEndPoint:Fr(t,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}o.error("Telemetry Sample Rate should be a number between 0 and 100")}else o.error("Sample Rate should be a number between 0 and 100");else o.error("Sample Rate should be a number between 0 and 100")}function xi(t){return xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(t)}function Ei(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ki(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ei(Object(n),!0).forEach((function(e){Ti(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ti(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=xi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=xi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xi(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ci(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Oi(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oi(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ii(t,e){!function(t,e){var n=new XMLHttpRequest;Zn(n,"load",(function(){if(200===n.status){var t=JSON.parse(n.responseText);e(t.content)}else e({}),Ni()})),Zn(n,"error",(function(){e({}),Ni()})),n.open("GET",function(t){var e=t.datakitOrigin||t.datakitUrl||t.site;0===e.indexOf("/")&&(e=location.origin+Wr(e));var n=e;n=e.lastIndexOf("/")===e.length-1?Wr(e)+"v1/env_variable":Wr(e)+"/v1/env_variable";n+="?app_id="+t.applicationId,t.site&&t.clientToken&&(n=n+"&token="+t.clientToken+"&to_headless=true");return n}(t)),n.send()}(t,(function(n){e(function(t,e){var n={};for(var r in e){if(void 0!==e[r])n[r.replace("R."+t.applicationId+".","")]=e[r]}return ki(ki({},t),function(t,e){var n={};return F(e).forEach((function(e){var r=Ci(e,2),i=r[0],o=r[1],a=t[i];et(a)===o&&(n[i]=a)})),n}(n,Pi))}(t,n))}))}var Ai,Ri,Pi={sessionSampleRate:"number",telemetrySampleRate:"number",silentMultipleInit:"boolean",service:"string",env:"string",version:"string",tracingSampleRate:"number",useCrossSiteSessionCookie:"boolean",usePartitionedCrossSiteSessionCookie:"boolean",useSecureSessionCookie:"boolean",trackSessionAcrossSubdomains:"boolean",storeContextsToLocal:"boolean",storeContextsKey:"string",sendContentTypeByJson:"boolean",allowFallbackToLocalStorage:"boolean",sessionOnErrorSampleRate:"number",sessionReplaySampleRate:"number",sessionReplayOnErrorSampleRate:"number",trackUserInteractions:"boolean",trackInteractions:"boolean",actionNameAttribute:"string",trackViewsManually:"boolean",workerUrl:"string",compressIntakeRequests:"boolean",traceType:"string"};function Ni(){o.error("Error fetching the remote configuration.")}function Mi(){return Ai||(Ai=new Kn((function(t){if(window.fetch){var e=qn(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=t.handlingStack,o=n[0],a=n[1],s=a&&a.method;void 0===s&&o instanceof Request&&(s=o.method);var u=void 0!==s?String(s).toUpperCase():"GET",l=o instanceof Request?o.url:Mr(String(o)),f=mt(),d={state:"start",init:a,input:o,method:u,startClocks:f,url:l,handlingStack:i};e.notify(d),n[0]=d.input,n[1]=d.init,r((function(t){return function(t,e,n){var r=n,i=function(e){r.state="resolve",I(r,e),t.notify(r)};e.then(c((function(t){var e="";try{e=t.constructor===Response&&t.type||""}catch(t){e=""}i({response:t,responseType:e,status:t.status,isAborted:!1})})),c((function(t){i({status:0,isAborted:r.init&&r.init.signal&&r.init.signal.aborted||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})})))}(e,t,d)}))}(e,t)}),{computeHandlingStack:!0});return e.stop}}))),Ai}var Li=new WeakMap;function Di(){return Ri||(Ri=new Kn((function(t){var e=qn(XMLHttpRequest.prototype,"open",Ui),n=qn(XMLHttpRequest.prototype,"send",(function(e){!function(t,e){var n=t.target,r=t.handlingStack,i=Li.get(n);if(i){var o=i;o.state="start",o.startClocks=mt(),o.isAborted=!1,o.xhr=n,o.handlingStack=r;var a=!1,s=qn(n,"onreadystatechange",(function(){n.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(c(),s(),!a){a=!0;var t=i;t.state="complete",t.duration=_t(o.startClocks.timeStamp,gt()),t.status=n.status,e.notify(A(t))}},c=Zn(n,"loadend",u).stop;e.notify(o)}}(e,t)}),{computeHandlingStack:!0}),r=qn(XMLHttpRequest.prototype,"abort",Bi);return function(){e.stop(),n.stop(),r.stop()}}))),Ri}function Ui(t){var e=t.target,n=t.parameters[0],r=t.parameters[1];Li.set(e,{state:"open",method:String(n).toUpperCase(),url:Mr(String(r))})}function Bi(t){var e=t.target,n=Li.get(e);n&&(n.isAborted=!0)}var zi={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Vi(t){return It(D(zi),t)}function ji(t){return t.nodeType===Node.ELEMENT_NODE}function $i(t){return ji(t)&&Boolean(t.shadowRoot)}function Hi(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&ji(e.host)}function Fi(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;$i(t)&&e(t.shadowRoot)}function Wi(t){return Hi(t)?t.host:t.parentNode}function qi(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:ot}):Zn(window,"complete"===t?ae:me,e,{once:!0})}function Gi(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function Qi(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}var Ki={sdk_name:"_gc.sdk_name",sdk_version:"_gc.sdk_version",app_id:"application.id",env:"env",service:"service",version:"version",source:"source",userid:"user.id",user_email:"user.email",user_name:"user.name",session_id:"session.id",session_type:"session.type",session_sampling:"session.is_sampling",is_signin:"user.is_signin",os:"device.os",os_version:"device.os_version",os_version_major:"device.os_version_major",browser:"device.browser",browser_version:"device.browser_version",browser_version_major:"device.browser_version_major",screen_size:"device.screen_size",network_type:"device.network_type",device:"device.device",view_id:"view.id",view_referrer:"view.referrer",view_url:"view.url",view_host:"view.host",view_path:"view.path",view_name:"view.name",view_path_group:"view.path_group"},Xi={view_url_query:"view.url_query",action_id:"action.id",action_ids:"action.ids",view_in_foreground:"view.in_foreground",display:"display",session_has_replay:"session.has_replay",is_login:"user.is_login",page_states:"_gc.page_states",session_sample_rate:"_gc.configuration.session_sample_rate",session_replay_sample_rate:"_gc.configuration.session_replay_sample_rate",session_on_error_sample_rate:"_gc.configuration.session_on_error_sample_rate",session_replay_on_error_sample_rate:"_gc.configuration.session_replay_on_error_sample_rate",drift:"_gc.drift"},Ji={view:{type:Xe.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{sampled_for_replay:"session.sampled_for_replay",sampled_for_error_replay:"session.sampled_for_error_replay",sampled_for_error_session:"session.sampled_for_error_session",session_error_timestamp:"session.error_timestamp_for_session",is_active:"view.is_active",session_replay_stats:"_gc.replay_stats",session_is_active:"session.is_active",view_error_count:"view.error.count",view_resource_count:"view.resource.count",view_long_task_count:"view.long_task.count",view_action_count:"view.action.count",first_contentful_paint:"view.first_contentful_paint",largest_contentful_paint:"view.largest_contentful_paint",largest_contentful_paint_element_selector:"view.largest_contentful_paint_element_selector",cumulative_layout_shift:"view.cumulative_layout_shift",cumulative_layout_shift_time:"view.cumulative_layout_shift_time",cumulative_layout_shift_target_selector:"view.cumulative_layout_shift_target_selector",first_input_delay:"view.first_input_delay",loading_time:"view.loading_time",dom_interactive:"view.dom_interactive",dom_content_loaded:"view.dom_content_loaded",dom_complete:"view.dom_complete",load_event:"view.load_event",first_input_time:"view.first_input_time",first_input_target_selector:"view.first_input_target_selector",first_paint_time:"view.fpt",interaction_to_next_paint:"view.interaction_to_next_paint",interaction_to_next_paint_target_selector:"view.interaction_to_next_paint_target_selector",resource_load_time:"view.resource_load_time",time_to_interactive:"view.tti",dom:"view.dom",dom_ready:"view.dom_ready",time_spent:"view.time_spent",first_byte:"view.first_byte",frustration_count:"view.frustration.count",custom_timings:"view.custom_timings"}},resource:{type:Xe.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",resource_id:"resource.id",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",resource_url:"resource.url",resource_url_host:"resource.url_host",resource_url_path:"resource.url_path",resource_url_path_group:"resource.url_path_group",resource_url_query:"resource.url_query",resource_delivery_type:"resource.delivery_type",resource_type:"resource.type",resource_protocol:"resource.protocol",resource_encode_size:"resource.encoded_body_size",resource_decode_size:"resource.decoded_body_size",resource_transfer_size:"resource.transfer_size",resource_render_blocking_status:"resource.render_blocking_status",resource_dns:"resource.dns",resource_tcp:"resource.tcp",resource_ssl:"resource.ssl",resource_ttfb:"resource.ttfb",resource_trans:"resource.trans",resource_redirect:"resource.redirect",resource_first_byte:"resource.firstbyte",resource_dns_time:"resource.dns_time",resource_download_time:"resource.download_time",resource_first_byte_time:"resource.first_byte_time",resource_connect_time:"resource.connect_time",resource_ssl_time:"resource.ssl_time",resource_redirect_time:"resource.redirect_time"}},error:{type:Xe.ERROR,tags:{error_id:"error.id",trace_id:"_gc.trace_id",span_id:"_gc.span_id",error_source:"error.source",error_type:"error.type",error_handling:"error.handling"},fields:{error_message:["string","error.message"],error_stack:["string","error.stack"],error_causes:["string","error.causes"],error_handling_stack:["string","error.handling_stack"]}},long_task:{type:Xe.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration",blocking_duration:"long_task.blocking_duration",first_ui_event_timestamp:"long_task.first_ui_event_timestamp",render_start:"long_task.render_start",style_and_layout_start:"long_task.style_and_layout_start",long_task_start_time:"long_task.start_time",scripts:["string","long_task.scripts"]}},action:{type:Xe.ACTION,tags:{action_type:"action.type"},fields:{action_name:"action.target.name",duration:"action.loading_time",action_error_count:"action.error.count",action_resource_count:"action.resource.count",action_frustration_types:"action.frustration.type",action_long_task_count:"action.long_task.count",action_target:"_gc.action.target",action_position:"_gc.action.position"}},telemetry:{type:"telemetry",fields:{status:"telemetry.status",message:["string","telemetry.message"],type:"telemetry.type",error_stack:["string","telemetry.error.stack"],error_kind:["string","telemetry.error.kind"],connectivity:["string","telemetry.connectivity"],runtime_env:["string","telemetry.runtime_env"],usage:["string","telemetry.usage"],configuration:["string","telemetry.configuration"]}},browser_log:{type:Xe.LOGGER,tags:{error_source:"error.source",error_type:"error.type",error_resource_url:"http.url",error_resource_url_host:"http.url_host",error_resource_url_path:"http.url_path",error_resource_url_path_group:"http.url_path_group",error_resource_status:"http.status_code",error_resource_status_group:"http.status_group",error_resource_method:"http.method",action_id:"user_action.id",service:"service",status:"status"},fields:{message:["string","message"],error_message:["string","error.message"],error_stack:["string","error.stack"]}}},Yi=ut,Zi=Xr,to=[];function eo(t,e,n){var r=new Kn,i=new Kn,o=bi(t.sessionStoreStrategyType,e,n);to.push((function(){return o.stop()}));var a,s=Jt({expireDelay:Zi});function u(){return{id:o.getSession().id,trackingType:o.getSession()[e],hasError:!!o.getSession().hasError}}return to.push((function(){return s.stop()})),o.renewObservable.subscribe((function(){s.add(u(),ht()),r.notify()})),o.expireObservable.subscribe((function(){i.notify(),s.closeActive(ht())})),o.expandOrRenewSession(),s.add(u(),bt().relative),a=tr(window,[re,ce,oe,ue],(function(){o.expandOrRenewSession()}),{capture:!0,passive:!0}).stop,to.push(a),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=Zn(document,de,e).stop;to.push(n);var r=g(e,Yi);to.push((function(){y(r)}))}((function(){return o.expandSession()})),function(t){var e=Zn(window,he,t,{capture:!0}).stop;to.push(e)}((function(){o.restartSession()})),{findSession:function(t,e){return s.find(t,e)},renewObservable:r,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}var no=3145728,ro=st,io=0,oo=1,ao=2,so=0,uo=1;function co(t,e,n,r,i){e.transportStatus===io&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?fo(t,e,n,{onSuccess:function(){return po(so,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),lo(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function lo(t,e,n,r){t.transportStatus===ao&&h((function(){fo(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=ro,po(uo,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),lo(t,e,n,r)}})}),t.currentBackoffTime)}function fo(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t,e,n){return!(e.retryMaxSize>-1&&n.retry&&n.retry.count>e.retryMaxSize)&&("opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500))}(n,e,t)?(e.transportStatus=io,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?oo:ao,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function po(t,e,n,r,i){t===so&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: 3MiB",source:Vn.AGENT,startClocks:mt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=vo();o.size()>0;)co(o.dequeue(),e,n,r,i)}function vo(){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>=no}}}function ho(){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?void 0:t.effectiveType}}var mo="log",go="configuration",yo="usage",_o="debug",bo="error",wo=["https://static.guance.com","http://localhost","<anonymous>"],So="browser-rum-sdk",xo=Kt(),Eo=function(t){xo.add((function(){Eo(t)}))};function ko(t,e){var n,i=new Kn,o=new Set,a=e.telemetryEnabled&&ct(e.telemetrySampleRate),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return Eo=function(r){var u=hn(r);if(a&&o.size<e.maxTelemetryEventsPerPage&&!o.has(u)){var c=function(t,e,r){return P({type:"telemetry",date:gt(),service:t,version:"3.2.23",source:"browser",telemetry:P(e,{runtime_env:r,connectivity:ho()})},void 0!==n?n():{})}(t,r,s);i.notify(c),o.add(u)}},r=Co,{setContextProvider:function(t){n=t},observable:i,enabled:a}}function To(t,e){f(t,e),Eo(I({type:mo,message:t,status:_o},e))}function Co(t,e){Eo(I({type:mo,status:bo},function(t){if(t instanceof Error){var e=_n(t);return{error:{kind:e.name,stack:Hn(Io(e))},message:e.message}}return{error:{stack:zn},message:dn+" "+hn(t)}}(t),e))}function Oo(t){Eo({type:yo,usage:t})}function Io(t){return t.stack=t.stack.filter((function(t){return!t.url||wo.some((function(e){return Ft(t.url,e)}))})),t}function Ao(t,e){return t?(t=t+(-1===t.indexOf("?")?"?":"&")+"precision=ms",e&&(t=t+"&encoding="+e),t):t}function Ro(t,e,n,r){void 0===n&&(n=-1);var i=function(t){return{transportStatus:io,currentBackoffTime:ro,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:vo(),queueFullReported:!1,retryMaxSize:t}}(n),o=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=Ao(t,n.encoding),s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&o<e;if(s){var u={method:"POST",body:i,keepalive:!0,mode:"cors"};n.type&&(u.headers={"Content-Type":n.type}),fetch(a,u).then(c((function(t){"function"==typeof r&&r({status:t.status,type:t.type})})),c((function(){No(a,n,r)})))}else No(a,n,r)}(t,e,n,r)};return{send:function(e){co(e,i,o,t,r)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=Ao(t,n.encoding),a=!!navigator.sendBeacon&&i<e;if(a)try{var s;if(s=n.type?new Blob([r],{type:n.type}):r,navigator.sendBeacon(o,s))return}catch(t){!function(t){Po||(Po=!0,Co(t))}(t)}No(o,n)}(t,e,n)}}}var Po=!1;function No(t,e,n){var r=e.data,i=new XMLHttpRequest;i.open("POST",t,!0),r instanceof Blob?i.setRequestHeader("Content-Type",r.type):e.type&&i.setRequestHeader("Content-Type",e.type),Zn(i,"loadend",(function(){"function"==typeof n&&n({status:i.status})}),{once:!0}),i.send(r)}function Mo(t){return Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(t)}function Lo(t){if("object"===Mo(t)&&t)t=hn(t);else if(!W(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function Do(t,e){return"object"===Mo(t)&&t?t=hn(t):e&&(t=""+t),t}function Uo(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function Bo(t){return"object"===Mo(t)&&t?Uo(hn(t)):W(t)?Uo(t):t}var zo="custom_keys",Vo=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return O(Ji,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=R({},Ki,i.tags),u=["date","type",zo];O(s,(function(n,r){var i=Tt(t,n);u.push(r),(i||G(i))&&(e.tags[r]=Do(i,!0),a.push(Lo(r)+"="+Lo(i)))}));var c=[],l=R({},Xi,i.fields);if(O(l,(function(n,r){if(N(n)&&2===n.length){var i=n[1],o=Tt(t,i);u.push(r),null!=o&&(e.fields[r]=Do(o),c.push(Lo(r)+"="+Bo(o)))}else if(W(n)){o=Tt(t,n);u.push(r),null!=o&&(e.fields[r]=Do(o),c.push(Lo(r)+"="+Bo(o)))}})),t.context&&$(t.context)&&!H(t.context)){var f=[];O(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=Do(t),c.push(Lo(n)+"="+Bo(t))))})),f.length&&(e.fields[zo]=Do(f),c.push(Lo(zo)+"="+Bo(f)))}t.type===Xe.LOGGER&&O(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=Do(t),c.push(Lo(n)+"="+Bo(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=t.date}})),{rowStr:n?r:"",rowData:n?e:void 0}};function jo(t){var e=t.encoder,n=t.request,r=t.messageBytesLimit,i=t.sendContentTypeByJson,a=t.flushController,s={},u=a.flushObservable.subscribe((function(t){!function(t){var r=D(s).join(i?",":"\n");s={};var o=Vi(t.reason),a=o?n.sendOnExit:n.send;if(o&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&a($o(u,i));var l=[u.pendingData,r].filter(Boolean).join("\n");l&&a({data:l,bytesCount:Nn(l)})}else{if(r){var f=c([r],e.isEmpty());i&&(f+="]"),e.write(f)}else i&&e.write("]");e.finish((function(t){a($o(t))}))}}(t)}));function c(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i?e?"["+t.join(","):","+t.join(","):e?t.join("\n"):"\n"+t.join("\n")}function l(t,n){var u=function(t){return i?hn(Vo(t).rowData):Vo(t).rowStr}(t),l=e.estimateEncodedBytesCount(u);l>=r?o.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(r,"KB.")):(function(t){return void 0!==t&&void 0!==s[t]}(n)&&function(t){var n=s[t];delete s[t];var r=e.estimateEncodedBytesCount(n);a.notifyAfterRemoveMessage(r)}(n),function(t,n,r){a.notifyBeforeAddMessage(n),void 0!==r?(s[r]=t,a.notifyAfterAddMessage()):e.write(c([t],e.isEmpty()),(function(t){a.notifyAfterAddMessage(t-n)}))}(u,l,n))}return{flushController:a,add:l,upsert:l,stop:u.unsubscribe}}function $o(t,e){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),type:e?"application/json;UTF-8":void 0,bytesCount:t.outputBytesCount,encoding:t.encoding}}function Ho(t){var e=t.messagesLimit,n=t.bytesLimit,r=t.durationLimit,i=t.pageExitObservable,o=t.sessionExpireObservable;i.subscribe((function(t){return l(t.reason)})),o.subscribe((function(){return l("session_expire")}));var a,s=new Kn((function(){return function(){pageExitSubscription.unsubscribe(),sessionExpireSubscription.unsubscribe()}})),u=0,c=0;function l(t){if(0!==c){var e=c,n=u;c=0,u=0,f(),s.notify({reason:t,messagesCount:e,bytesCount:n})}}function f(){m(a),a=void 0}return{flushObservable:s,getMessagesCount:function(){return c},notifyBeforeAddMessage:function(t){u+t>=n&&l("bytes_limit"),c+=1,u+=t,void 0===a&&(a=h((function(){l("duration_limit")}),r))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),u+=t,c>=e?l("messages_limit"):u>=n&&l("bytes_limit")},notifyAfterRemoveMessage:function(t){u-=t,0===(c-=1)&&f()}}}function Fo(){var t=v().FTWebViewJavascriptBridge;if(t)return{getCapabilities:function(){return JSON.parse(t.getCapabilities&&t.getCapabilities()||"[]")},getPrivacyLevel:function(){return t.getPrivacyLevel&&t.getPrivacyLevel()},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n,r){var i=r?{id:r}:void 0;t.sendEvent(JSON.stringify({name:e,data:n,view:i}))}}}var Wo="records";function qo(t){var e=Fo();return!!e&&e.getCapabilities().includes(t)}function Go(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(t=v().location)||void 0===t?void 0:t.hostname,n=Fo();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||e.endsWith(".".concat(t))}))}function Qo(t){return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(t)}function Ko(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Xo(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xo(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Jo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yo(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Qo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qo(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zo(t,e,n){for(var r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jo(Object(n),!0).forEach((function(e){Yo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),i=0,a=Object.entries(e);i<a.length;i++){var s=Ko(a[i],2),u=s[0],c=s[1],l=c.required;"string"===c.type&&u in r&&(r[u]=String(r[u])),l&&!(u in t)&&o.warn("The property ".concat(u," of ").concat(n," context is required; context will not be sent to the intake."))}return r}function ta(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.customerDataTracker,r=e.propertiesConfig,i=void 0===r?{}:r,o={},a=new Kn,s={getContext:function(){return rt(o)},setContext:function(e){"object"===et(e)?(o=Ln(Zo(e,i,t)),null==n||n.updateCustomerData(o)):s.clearContext(),a.notify()},setContextProperty:function(e,r){o[e]=Ln(Zo(Yo({},e,r),i,t)[e]),null==n||n.updateCustomerData(o),a.notify()},removeContextProperty:function(e){delete o[e],null==n||n.updateCustomerData(o),Zo(o,i,t),a.notify()},clearContext:function(){o={},null==n||n.resetCustomerData(),a.notify()},changeObservable:a};return s}var ea="user",na="global context",ra="view",ia="_gc_s",oa=[];function aa(t,e,n,r){var i=function(t,e,n){return t.storeContextsKey&&W(t.storeContextsKey)?ia+"_"+e+"_"+n+"_"+t.storeContextsKey:ia+"_"+e+"_"+n}(t,n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}return oa.push(Zn(window,Me,(function(t){i===t.key&&e.setContext(o())}))),e.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(e.getContext()))})),e.setContext(P(o(),e.getContext())),e}var sa=0,ua=1,ca=2;function la(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ca,e=new Map,n=!1;function r(){if(!n&&t!==sa){var r=t===ca?3072:16384,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e.forEach((function(t){i+=t.getBytesCount()})),i>r&&(!function(t){o.warn("Customer data exceeds the recommended ".concat(t/Rn,"KiB threshold."))}(r),n=!0)}}return{createDetachedTracker:function(){var t=fa((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,fa(r)),e.get(t)},setCompressionStatus:function(e){t===sa&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}function fa(t){var e=0,n=Q((function(n){e=Nn(hn(n)),t()}),200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){H(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function da(){var t="",e=0;return{isAsync:!1,isEmpty:function(){return!t},write:function(n,r){var i=Nn(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}}}function pa(t){var e=I({},t);return O(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function va(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}function ha(t,e){e.silentMultipleInit||o.error(t+" is already initialized.")}va.prototype.add=function(t){return this.map.set(t,1),this},va.prototype.delete=function(t){return this.map.delete(t)},va.prototype.has=function(t){return this.map.has(t)};var ma=1,ga=2,ya=3,_a="0",ba="1",wa="2",Sa="3",xa="4",Ea="5",ka="6";function Ta(t,e){var n=eo(t,"rum",(function(e){return function(t,e){var n,r=t.sessionSampleRate,i=t.sessionOnErrorSampleRate,o=t.sessionReplaySampleRate,a=t.sessionReplayOnErrorSampleRate,s=ct(r),u=ct(i),c=ct(o),l=ct(a);!function(t){return t===_a||t===Ea||t===ka||t===xa||t===wa||t===Sa||t===ba}(e)?u||s?s&&c?n=ba:s&&l?n=Sa:!s||c||l?u&&c?n=xa:u&&l?n=ka:!u||c||l||(n=Ea):n=wa:n=_a:n=e;return{trackingType:n,isTracked:Ca(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(mr)})),n.renewObservable.subscribe((function(){e.notify(hr)})),n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,r=t.newState;if(!e.hasError&&r.hasError){var i=n.findSession();i&&(i.hasError=!0,i.ets=r.ets||gt())}})),{findTrackedSession:function(t){var e=n.findSession(t);if(e&&Ca(e.trackingType)){var r=e.trackingType===Ea||e.trackingType===xa||e.trackingType===ka,i=ma;return e.trackingType===ba||e.trackingType===xa?i=ga:e.trackingType!==ka&&e.trackingType!==Sa||(i=ya),{id:e.id,plan:i,errorSessionReplayAllowed:i===ya,sessionHasError:e.hasError,isErrorSession:r,sessionErrorTimestamp:e.ets,sessionReplayAllowed:i===ga||i===ya}}},expire:n.expire,expireObservable:n.expireObservable,sessionStateUpdateObservable:n.sessionStateUpdateObservable,setErrorForSession:function(){return n.updateSessionState({hasError:"1",ets:gt()})}}}function Ca(t){return t!==_a}var Oa="_gc_usr_id";var Ia=function(t){var e;if(t.sessionStoreStrategyType)return e="Cookie"===t.sessionStoreStrategyType.type?function(t){var e=Qr(Oa,t);return e||(e=X(),Gr(Oa,e,5184e6,t)),e}(t.sessionStoreStrategyType.cookieOptions):function(){var t=localStorage.getItem(Oa);return t||(t=X(),localStorage.setItem(Oa,t)),t}(),{getId:function(){return e}}};function Aa(){var t,e=window;if(e.Zone&&(t=a(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=a(new e.MutationObserver(ot),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function Ra(t){var e=A(t);return new Kn((function(n){var r,i,o,a,s=(r=c,i=qn(History.prototype,"pushState",(function(t){(0,t.onPostCall)(r)})),o=qn(History.prototype,"replaceState",(function(t){(0,t.onPostCall)(r)})),a=Zn(window,se,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),u=Zn(window,be,c);function c(){if(e.href!==t.href){var r=A(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){s.stop(),u.stop()}}))}var Pa="initial_document",Na=[[Le,function(t){return Pa===t}],[De,function(t){return"xmlhttprequest"===t}],[Be,function(t){return"fetch"===t}],[Ue,function(t){return"beacon"===t}],[ze,function(t,e){return null!==e.match(/\.css$/i)}],[Ve,function(t,e){return null!==e.match(/\.js$/i)}],[je,function(t,e){return It(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[$e,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[He,function(t,e){return It(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Ma(t){var e=t.name;if(!function(t){try{return!!Dr(t)}catch(t){return!1}}(e))return Fe;var n=function(t){var e=Dr(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=Fe;return O(Na,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function La(){for(var t=L(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function Da(t){return""===t.deliveryType?"other":t.deliveryType}function Ua(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}var Ba=/[^\u0000-\u007F]/;function za(t,e){return n=t,(Ba.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function Va(t){return 0===t.duration&&t.startTime<t.responseEnd?ft(t.responseEnd-t.startTime):ft(t.duration)}function ja(t){if(Ha(t)){var e=t.startTime,n=t.fetchStart,r=t.redirectStart,i=t.redirectEnd,o=t.domainLookupStart,a=t.domainLookupEnd,s=t.connectStart,u=t.secureConnectionStart,c=t.connectEnd,l=t.requestStart,f=t.responseStart,d=t.responseEnd,p={firstbyte:ft(f-l),trans:ft(d-f),downloadTime:Wa(e,f,d),firstByteTime:Wa(e,l,f)};return f>0&&f<=ht()&&(p.ttfb=ft(f-l)),c!==n&&(p.tcp=ft(c-s),p.connectTime=Wa(e,s,c),La(s,u,c)&&(p.ssl=ft(c-u),p.sslTime=Wa(e,u,c))),a!==n&&(p.dns=ft(a-o),p.dnsTime=Wa(e,o,a)),Fa(t)&&(p.redirect=ft(i-r),p.redirectTime=Wa(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function $a(t){return t.duration>=0}function Ha(t){var e=La(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!Fa(t)||La(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function Fa(t){return t.redirectEnd>t.startTime}function Wa(t,e,n){return{duration:ft(n-e),start:ft(e-t)}}function qa(t){return t.startTime<t.responseStart?{size:t.decodedBodySize,encodedBodySize:t.encodedBodySize,decodedBodySize:t.decodedBodySize,transferSize:t.transferSize}:{size:void 0,encodedBodySize:void 0,decodedBodySize:void 0,transferSize:void 0}}function Ga(t,e){return e&&!function(t,e){var n=[e.rumEndpoint];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),z(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}var Qa=/data:(.+)?(;base64)?,/g;function Ka(t){return!(t.length<=24e3)&&("data:"===t.substring(0,5)&&(t=t.substring(0,24e3),!0))}function Xa(t){return t.match(Qa)[0]+"[...]"}function Ja(t,e){var n=yt(),r=!1,i=tr(window,[re,Se,oe,ce,ge],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:ht(),processingEnd:ht(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};t.type===ge?function(t){tr(window,[ye,_e],(function(e){e.type===ye&&o(t)}),{once:!0})}(e):o(e)}}),{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<yt()-n&&e(t)}}}var Ya,Za="event",ts="first-input",es="largest-contentful-paint",ns="layout-shift",rs="longtask",is="long-animation-frame",os="navigation",as="paint",ss="resource",us="visibility-state";function cs(t,e){return new Kn((function(n){if(window.PerformanceObserver){var r,i,o=function(e){var r=function(t,e){return e.filter((function(e){return!function(t,e){return!(e.entryType!==ss||Ga(t,e.name)&&$a(e))}(t,e)}))}(t,e);r.length>0&&n.notify(r)},a=!0,s=new PerformanceObserver(c((function(t){a?r=h((function(){o(t.getEntries())})):o(t.getEntries())})));try{s.observe(e)}catch(t){if(It([ss,os,rs,as],e.type)){e.buffered&&(r=h((function(){o(performance.getEntriesByType(e.type))})));try{s.observe({entryTypes:[e.type]})}catch(t){return}}}if(a=!1,function(){!Ya&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(Ya=Zn(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(),!ls(ts)&&e.type===ts){var u=Ja(0,(function(t){o([t])}));i=u.stop}return function(){s.disconnect(),i&&i(),m(r)}}}))}function ls(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function fs(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=ot);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(wr,(function(t){if(t.type!==Xe.VIEW&&n(t))switch(t.type){case Xe.ERROR:i.errorCount+=1,r();break;case Xe.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case Xe.LONG_TASK:i.longTaskCount+=1,r();break;case Xe.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var ds=100;function ps(t,e,n,r,i){var o=function(t,e,n){return new Kn((function(r){var i,o=[],a=0;o.push(e.subscribe((function(){u()})),cs(n,{type:ss}).subscribe((function(t){z(t,(function(t){return!vs(n,t.name)}))&&u()})),t.subscribe(yr,(function(t){vs(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(_r,(function(t){vs(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=qn(window,"open",u).stop;return function(){s(),O(o,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}))}(t,e,n);return function(t,e,n){var r,i=!1,o=h((function(){c({hadActivity:!1})}),100),a=void 0!==n?h((function(){return c({hadActivity:!0,end:gt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;m(o),m(r);var n=gt();e||(r=h((function(){c({hadActivity:!0,end:n})}),100))})),u=function(){i=!0,m(o),m(r),m(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function vs(t,e){return V(t.excludedActivityUrls,e)}var hs=st,ms=0,gs=1,ys=2;function _s(t,e){var n,r=[],i=ms;function o(t){t.stopObservable.subscribe(a),r.push(t),m(n),n=h(s,hs)}function a(){i===gs&&function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r}(r,(function(t){return t.isStopped()}))&&(i=ys,e(r))}function s(){m(n),i===ms&&(i=gs,a())}return o(t),{tryAppend:function(t){return i===ms&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=hs))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var bs="data-guance-action-name";function ws(t,e){return Ss(t,bs)||e&&Ss(t,e)||Os(t,e,ks)||Os(t,e,Ts)||""}function Ss(t,e){var n;if(function(){void 0===Es&&(Es="closest"in HTMLElement.prototype);return Es}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return As(Is(n.getAttribute(e).trim()))}var xs,Es,ks=[function(t,e){if(function(){void 0===xs&&(xs="labels"in HTMLInputElement.prototype);return xs}()){if("labels"in t&&t.labels&&t.labels.length>0)return Rs(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&At(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&Rs(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return Rs(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n=n.split(/\s+/),n=B(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=U(n,(function(t){return Boolean(t)})),(n=B(n,(function(t){return Rs(t,e)}))).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return Rs(t.options[0],e)}],Ts=[function(t,e){return Rs(t,e)}],Cs=10;function Os(t,e,n){for(var r=t,i=0;i<=Cs&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0;o<n.length;o++){var a=(0,n[o])(r,e);if("string"==typeof a){var s=a.trim();if(s)return As(Is(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Is(t){return t.replace(/\s+/g," ")}function As(t){return t.length>100?Ct(t,100)+" [...]":t}function Rs(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return Bt()===Mt&&r("script, style"),r("["+bs+"]"),e&&r("["+e+"]"),n}return t.textContent}}var Ps,Ns=[bs,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Ms=[Bs,function(t){if(t.id&&!Us(t.id))return"#"+j(t.id)}],Ls=[Bs,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e<t.classList.length;e+=1){var n=t.classList[e];if(!Us(n))return j(t.tagName)+"."+j(n)}},function(t){return j(t.tagName)}];function Ds(t,e){if(function(t){if("isConnected"in t)return t.isConnected;return t.ownerDocument.documentElement.contains(t)}(t)){for(var n,r=t;r&&"HTML"!==r.nodeName;){var i=Vs(r,Ms,js,e,n);if(i)return i;n=Vs(r,Ls,$s,e,n)||Hs(zs(r),n),r=r.parentElement}return n}}function Us(t){return/[0-9]/.test(t)}function Bs(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<Ns.length;n++){var r;if(r=i(Ns[n]))return r}function i(e){if(t.hasAttribute(e))return j(t.tagName)+"["+e+'="'+j(t.getAttribute(e))+'"]'}}function zs(t){for(var e=t.parentElement&&t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;var r=j(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function Vs(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 Hs(a,i)}}function js(t,e,n){return 1===t.ownerDocument.querySelectorAll(Hs(e,n)).length}function $s(t,e,n){var r;if(void 0===n)r=function(t){return t.matches(e)};else{var i=function(){if(void 0===Ps)try{document.querySelector(":scope"),Ps=!0}catch(t){Ps=!1}return Ps}()?Hs("".concat(e,":scope"),n):Hs(e,n);r=function(t){return null!==t.querySelector(i)}}for(var o=t.parentElement.firstElementChild;o;){if(o!==t&&r(o))return!1;o=o.nextElementSibling}return!0}function Hs(t,e){return e?t+">"+e:t}function Fs(){var t=window.getSelection();return!t||t.isCollapsed}function Ws(t){return t.target instanceof Element&&!1!==t.isPrimary}function qs(t,e){if(function(t){if(z(t,(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<=st)return!0;return!1}(t))return e.addFrustration(Ge),z(t,Qs)&&e.addFrustration(Ke),e.hasError()&&e.addFrustration(Qe),{isRage:!0};var n=z(t,(function(t){return t.getUserActivity().selection}));return O(t,(function(t){t.hasError()&&t.addFrustration(Qe),Qs(t)&&!n&&t.addFrustration(Ke)})),{isRage:!1}}var Gs='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] *';function Qs(t){return!(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)&&(e=t.event.target,n=Gs,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var Ks=1e4,Xs=new Map;function Js(t,e){Xs.set(t,e),Xs.forEach((function(t,e){_t(e,ht())>1e4&&Xs.delete(e)}))}function Ys(t,e,n){var r,i=new Jt({expireDelay:3e5}),o=new Kn;t.subscribe(hr,(function(){i.reset()})),t.subscribe(pr,p);var a,s,u,c,l,f=(a={onPointerDown:function(r){return function(t,e,n,r){var i,o,a,s,u=(i=r,o=t.actionNameAttribute,a=i.target.getBoundingClientRect(),(s=Ds(i.target,o))&&Js(i.timeStamp,s),{type:We,target:{width:Math.round(a.width),height:Math.round(a.height),selector:s},position:{x:Math.round(i.clientX-a.left),y:Math.round(i.clientY-a.top)},name:ws(i.target,o)}),c=!1;return ps(e,n,t,(function(t){c=t.hadActivity}),ds),{clickActionBase:u,hadActivityOnPointerDown:function(){return c}}}(n,t,e,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var l=tu(e,r,u,a,s);o(l);var f=a&&a.target&&a.target.selector;f&&Js(s.timeStamp,f);var d=ps(e,n,t,(function(t){t.hadActivity&&t.end<l.startClocks.timeStamp?l.discard():t.hadActivity?l.stop(t.end):c()?l.stop(l.startClocks.timeStamp):l.stop()}),Ks),p=d.stop,v=e.subscribe(pr,(function(t){l.stop(t.endClocks.timeStamp)})),h=i.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){v.unsubscribe(),p(),h.unsubscribe()}))}(n,t,e,i,o,v,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1,scroll:!1},l=[Zn(window,ge,(function(t){Ws(t)&&(s=Fs(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),Zn(window,Ne,(function(){s&&Fs()||(c.selection=!0)}),{capture:!0}),Zn(window,ye,(function(t){if(Ws(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),Zn(window,ue,(function(){c.scroll=!0}),{capture:!0,passive:!0}),Zn(window,Ie,(function(){c.input=!0}),{capture:!0})],{stop:function(){O(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){var e=i.findAll(t);if(e&&e.length)return e[e.length-1]},findAllActionId:function(t){return i.findAll(t)}}};function p(){r&&r.stop()}function v(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=_s(t,(function(t){!function(t,e){var n=qs(t,e),r=n.isRage;r?(O(t,(function(t){t.discard()})),e.stop(gt()),e.validate(B(t,(function(t){return t.event})))):(e.discard(),O(t,(function(t){t.validate()})))}(t,e)}))}}}var Zs={ONGOING:0,STOPPED:1,FINALIZED:2};function tu(t,e,n,r,i){var o,a=X(),s=mt(),u=e.add(a,s.relative),c=fs({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(N(t.action.ids)?It(t.action.ids,a):t.action.ids===a)}}),l=Zs.ONGOING,f=[],d=new Kn;function p(t){l===Zs.ONGOING&&(o=t,l=Zs.STOPPED,o?u.close(pt(o)):u.remove(),c.stop(),d.notify())}return{event:i,stop:p,stopObservable:d,hasError:function(){return c.eventCounts.errorCount>0},hasPageActivity:function(){return void 0!==o},getUserActivity:n,addFrustration:function(t){f.push(t)},startClocks:s,isStopped:function(){return l===Zs.STOPPED||l===Zs.FINALIZED},clone:function(){return tu(t,e,n,r,i)},validate:function(e){if(p(),l===Zs.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,v=n.longTaskCount,h=I({type:We,duration:o&&_t(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:v},events:$t(e,[i]),event:i},r);t.notify(ur,h),l=Zs.FINALIZED}},discard:function(){p(),l=Zs.FINALIZED}}}var eu=Xr,nu="active",ru="passive",iu="hidden",ou="frozen",au="terminated";function su(t){void 0===t&&(t=500);var e,n=Jt({expireDelay:eu,maxEntries:4e3});i(uu(),ht());var r=tr(window,[pe,Ee,ke,de,he,ve,we],(function(t){i(function(t){if(t.type===ve)return ou;if(t.type===we)return t.persisted?ou:au;return uu()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=ht()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}var o={findAll:function(e,r){var i=n.findAll(e,r);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-t),s=i.length-1;s>=a;s--){var u=i[s],c=_t(e,u.startTime);o.push({state:u.state,start:dt(c)})}return o}},wasInPageStateAt:function(t,e){return o.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,r){return n.findAll(e,r).some((function(e){return e.state===t}))},addPageState:i,stop:function(){r(),n.stop()}};return o}function uu(){return"hidden"===document.visibilityState?iu:document.hasFocus()?nu:ru}function cu(t,e){var n=lu(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Qt(dt(t.duration)),frustration:{type:t.frustrationTypes},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_gc:{action:{target:t.target,position:t.position}}}:{action:{loadingTime:0}};return{customerContext:lu(t)?void 0:t.context,rawRumEvent:P({action:{id:X(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:Xe.ACTION,view:{in_foreground:e.wasInPageStateAt(nu,t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:lu(t)?{event:t.event,events:t.events}:{}}}function lu(t){return t.type!==qe}var fu=1,du=2;function pu(t,e){var n,r=0,i=[],o=0,a=[],s=Zn(t,"message",(function(t){var o=t.data;if(!("wrote"!==o.type||o.streamId&&o.streamId!==e)){r+=o.additionalBytesCount,i.push(o.result),n=o.trailer;var u=a.shift();u&&u.id===o.id?u.writeCallback?u.writeCallback(o.result.byteLength):u.finishCallback&&u.finishCallback():(s(),To("Worker responses received out of order."))}})).stop;function u(){var t=0===i.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,i=0,o=t;i<o.length;i++){var a=o[i];n.set(a,r),r+=a.length}return n}(i.concat(n)),e={rawBytesCount:r,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return r=0,i=[],e}function c(){o>0&&(t.postMessage({action:"reset",streamId:e}),o=0)}return{isAsync:!0,isEmpty:function(){return 0===o},write:function(n,r){t.postMessage({action:"write",id:o,data:n,streamId:e}),a.push({id:o,writeCallback:r,data:n}),o+=1},finish:function(t){c(),a.length?(a.forEach((function(t){delete t.writeCallback})),a[a.length-1].finishCallback=function(){return t(u())}):t(u())},finishSync:function(){c();var t=a.map((function(t){return delete t.writeCallback,delete t.finishCallback,t.data})).join("");return I(u(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){s()}}}function vu(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;)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);i.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:"3.2.23"};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 hu=0,mu=1,gu=2,yu=3,_u={status:hu};function bu(t,e,n,r){switch(void 0===r&&(r=vu),_u.status===hu&&function(t,e,n){void 0===n&&(n=vu);try{var r=n(t),i=Zn(r,"error",(function(n){Su(t,e,n)})),a=Zn(r,"message",(function(t){var e,n=t.data;"errored"===n.type?Su(n.error,n.streamId):"initialized"===n.type&&(e=n.version,_u.status===mu&&(_u={status:yu,worker:_u.worker,version:e,stop:_u.stop}))}));r.postMessage({action:"init"}),h((function(){return function(t){_u.status===mu&&(o.error(t+" failed to start: a timeout occurred while initializing the Worker"),_u.initializationFailureCallbacks.forEach((function(t){t()})),_u={status:gu})}(e)}),1e4),_u={status:mu,worker:r,stop:function(){i.stop(),a.stop()},initializationFailureCallbacks:[]}}catch(n){Su(t,e,n)}}(t,e,r),_u.status){case mu:return _u.initializationFailureCallbacks.push(n),_u.worker;case yu:return _u.worker}}function wu(){return _u.status}function Su(t,e,n,r){if(_u.status===mu){var i;if(o.error(e+" failed to start: an error occurred while creating the Worker:",n),n instanceof Event||n instanceof Error&&(It(a=n.message,"Content Security Policy")||It(a,"requires 'TrustedScriptURL'")))i=t.workerUrl?"Please make sure the Worker URL "+t.workerUrl+" is correct and CSP is correctly configured.":"Please make sure CSP is correctly configured.",o.error(i);else Co(n);_u.status===mu&&_u.initializationFailureCallbacks.forEach((function(t){t()})),_u={status:gu}}else Co(n,{worker_version:_u.status===yu&&_u.version,stream_id:r});var a}function xu(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){void 0===o&&(o=jo);var a=function(t,e){return o({encoder:e.encoder,request:Ro(e.endpoint,t.batchBytesLimit,t.retryMaxSize,n),flushController:Ho({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:r,sessionExpireObservable:i}),messageBytesLimit:t.messageBytesLimit,sendContentTypeByJson:t.sendContentTypeByJson})}(t,e);return{flushObservable:a.flushController.flushObservable,add:function(t){a.add(t)},upsert:function(t,e){a.upsert(t,e)},stop:function(){a.stop()}}}(t,{endpoint:t.rumEndpoint,encoder:a(du)},r,i,o);return e.subscribe(wr,(function(t){t.type===Xe.VIEW?s.upsert(t,t.view.id):s.add(t)})),n.subscribe((function(t){s.add(t)})),s}function Eu(t){return Eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eu(t)}function ku(t){var e=function(t,e){if("object"!=Eu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Eu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Eu(e)?e:e+""}function Tu(t,e,n){return(e=ku(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ou(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cu(Object(n),!0).forEach((function(e){Tu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Iu,Au="synthetics",Ru="user",Pu={"view.url":"string","view.referrer":"string"},Nu={context:"object"},Mu={service:"string",version:"string"},Lu={};function Du(t,e,n,r,i,a,s,u,c,l){Lu[Xe.VIEW]=Ou(Ou({},Nu),Pu),Lu[Xe.ERROR]=I({"error.message":"string","error.stack":"string","error.resource.url":"string"},Nu,Pu,Mu),Lu[Xe.RESOURCE]=I({"resource.url":"string"},Nu,Pu,Mu),Lu[Xe.ACTION]=I({"action.target.name":"string"},Nu,Pu,Mu),Lu[Xe.LONG_TASK]=I({},Nu,Pu);var f={};f[Xe.ERROR]=Nr(Xe.ERROR,t.eventRateLimiterThreshold,l),f[Xe.ACTION]=Nr(Xe.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(br,(function(l){var d,p=l.startTime,v=l.rawRumEvent,h=l.savedCommonContext,m=l.customerContext,g=l.domainContext,y=i.findView(p),_=a.findUrl(p),b=n.findTrackedSession(p);if((!b||!b.isErrorSession||b.sessionHasError)&&(b&&y&&_)){var w=s.findActionId(p),S=s.findAllActionId(p),x=h||c(),E={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(yt()-(Et()+performance.now())),configuration:{session_sample_rate:lt(t.sessionSampleRate,3),session_replay_sample_rate:lt(t.sessionReplaySampleRate,3),session_on_error_sample_rate:lt(t.sessionOnErrorSampleRate,3),session_replay_on_error_sample_rate:lt(t.sessionReplayOnErrorSampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:ee,env:t.env||"",service:y.service||t.service||"browser",version:y.version||t.version||"",source:"browser",date:gt(),user:{id:r.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?Ru:Au,id:b.id},view:{id:y.id,name:y.name||_.path,url:_.url,referrer:_.referrer,host:_.host,path:_.path,pathGroup:_.pathGroup,urlQuery:_.urlQuery},action:(d=v,-1!==[Xe.ERROR,Xe.RESOURCE,Xe.LONG_TASK].indexOf(d.type)&&w?{id:w,ids:S}:void 0),display:u.get()},k=Vt(P(E,y,v)),T=P({},x.context,y.context,m);H(T)||(k.context=T),"has_replay"in k.session||(k.session.has_replay=x.hasReplay),b.errorSessionReplayAllowed&&(k.session.has_replay=k.session.has_replay&&b.sessionHasError),"view"===k.type&&(k.session.sampled_for_error_replay=b.errorSessionReplayAllowed,k.session.sampled_for_error_session=b.isErrorSession,k.session.error_timestamp_for_session=b.sessionErrorTimestamp),H(x.user)||(k.user=P({is_signin:"T",is_login:!0},x.user)),function(t,e,n,r){if(e){var i=Ar(t,Lu[t.type],(function(t){return e(t,n)}));if(!1===i&&t.type!==Xe.VIEW)return!1;!1===i&&o.warn("Can't dismiss view events using beforeSend!")}var a=!1;r[t.type]&&(a=r[t.type].isLimitReached());return!a}(k,t.beforeSend,g,f)&&(H(k.context)&&delete k.context,e.notify(wr,k))}}))}function Uu(){return Iu||(Iu=new Kn((function(t){var e=Q((function(){t.notify(Bu())}),200).throttled;return Zn(window,Ce,e,{capture:!0,passive:!0}).stop}))),Iu}function Bu(){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 zu=Xr;var Vu=Xr;function ju(e,n,r,i){var o=new Kn;!function(e){var n=Yn([t.error]).subscribe((function(t){e.notify(t.error)}))}(o),function(t){An((function(e,n){t.notify(jn({stackTrace:e,originalError:n,startClocks:mt(),nonErrorPrefix:dn,source:Vn.SOURCE,handling:fn}))}))}(o),function(t,e){var n=rr(0,[er]).subscribe((function(t){e.notify({startClocks:mt(),message:t.message,stack:t.stack,type:t.subtype,source:Vn.REPORT,handling:fn})}))}(0,o);var a=r.findTrackedSession(),s=a.isErrorSession&&a.sessionHasError;return a.isErrorSession&&e.subscribe(hr,(function(){s=!1})),o.subscribe((function(t){a.isErrorSession&&!s&&(r.setErrorForSession(),s=!0),e.notify(Sr,{error:t})})),function(t,e){return t.subscribe(Sr,(function(n){t.notify(br,I({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:X(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser"},type:Xe.ERROR,view:{in_foreground:e.wasInPageStateAt(nu,t.startClocks.relative)}};return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,i=jn({stackTrace:r instanceof Error?_n(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:pn,source:Vn.CUSTOM,handling:ln});t.notify(Sr,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,i)}function $u(){if(ls(os)){var t=performance.getEntriesByType(os)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(G(e[n])){var r=n,i=e[r];t[r]=0===i?0:pt(i)}return t}(),n=I({entryType:os,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return I({},n,{toJSON:void 0})}},e);return n}function Hu(t,e,n){return void 0===n&&(n=$u),function(t){var e,n=qi("complete",(function(){e=h((function(){t()}))}));return{stop:function(){n.stop(),m(e)}}}((function(){var t=n();(function(t){return t.loadEventEnd<=0})(t)||e(function(t){return{fetchStart:t.fetchStart,responseEnd:t.responseEnd,domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,loadEventEnd:t.loadEventEnd,loadEventStart:t.loadEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domContentLoadedEventStart:t.domContentLoadedEventStart,firstByte:t.responseStart>=0&&t.responseStart<=ht()?t.responseStart:void 0}}(t))}))}function Fu(t){if(void 0===t&&(t=window),"hidden"===document.visibilityState)return{getTimeStamp:function(){return 0},stop:ot};if(ls(us)){var e=performance.getEntriesByType(us).find((function(t){return"hidden"===t.name}));if(e)return{getTimeStamp:function(){return e.startTime},stop:ot}}var n=1/0,r=tr(t,[we,de],(function(t){t.type!==we&&"hidden"!==document.visibilityState||(n=t.timeStamp,r())}),{capture:!0}).stop;return{getTimeStamp:function(){return n},stop:function(){r()}}}function Wu(t,e,n){var r={},i=Hu(0,(function(t){e(t.loadEvent),r.navigationTimings=t,n()})),o=Fu(),a=i.stop,s=function(t,e,n){return{stop:cs(t,{type:as,buffered:!0}).subscribe((function(t){var r=At(t,(function(t){return t.entryType===as&&"first-contentful-paint"===t.name&&t.startTime<e.getTimeStamp()&&t.startTime<6e5}));r&&n(r.startTime)})).unsubscribe}}(t,o,(function(t){r.firstContentfulPaint=t,n()})),u=s.stop,c=function(t,e,n,r){var i=1/0,o=tr(n,[ge,oe],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,s=cs(t,{type:es,buffered:!0}).subscribe((function(n){var o,s=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(n,(function(t){return t.entryType===es&&t.startTime<i&&t.startTime<e.getTimeStamp()&&t.startTime<6e5&&t.size>a}));s&&(s.element&&(o=Ds(s.element,t.actionNameAttribute)),r({value:s.startTime,targetSelector:o}),a=s.size)}));return{stop:function(){o(),s.unsubscribe()}}}(t,o,window,(function(t){r.largestContentfulPaint=t,n()})),l=c.stop,f=function(t,e,n){var r=cs(t,{type:ts,buffered:!0}).subscribe((function(r){var i=At(r,(function(t){return t.entryType===ts&&t.startTime<e.getTimeStamp()}));if(i){var o,a=_t(i.startTime,i.processingStart);i.target&&ji(i.target)&&(o=Ds(i.target,t.actionNameAttribute)),n({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}}));return{stop:function(){r.unsubscribe()}}}(t,o,(function(t){r.firstInput=t,n()})),d=f.stop;return{stop:function(){a(),u(),l(),d(),o.stop()},initialViewMetrics:r}}var qu=st;function Gu(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=qu);return new Kn((function(t){function n(){var e,n,r,i;t.notify((e=Qi(),n=Bu().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(n+e),{scrollHeight:r,scrollDepth:i,scrollTop:e}))}if(window.ResizeObserver){var r=Q(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(c(r.throttled));i&&o.observe(i);var a=Zn(window,ue,r.throttled,{passive:!0});return function(){r.cancel(),o.unobserve(i),a.stop()}}}))}());var i=0,o=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=ht();a=_t(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}function Qu(t,e,n){if(!Zu())return{stop:ot};var r,i,o=0;n({value:0});var a=function(){var t,e,n=0,r=0;return{update:function(i){var o;return void 0===t||i.startTime-e>=Yu||i.startTime-t>=5*Ju?(t=e=i.startTime,r=n=i.value,o=!0):(n+=i.value,e=i.startTime,(o=i.value>r)&&(r=i.value)),{cumulatedValue:n,isMaxValue:o}}}}(),s=cs(t,{type:ns,buffered:!0}).subscribe((function(s){for(var u=0,c=s;u<c.length;u++){var l=c[u];if(!(l.hadRecentInput||l.startTime<e)){var f=a.update(l),d=f.cumulatedValue;if(f.isMaxValue){var p=Ku(l.sources);r=p?new WeakRef(p):void 0,i=_t(e,l.startTime)}if(d>o){o=d;p=r&&r.deref();n({value:lt(o,4),targetSelector:p&&Ds(p,t.actionNameAttribute),time:i})}}}}));return{stop:function(){s.unsubscribe()}}}function Ku(t){if(t){var e=At(t,(function(t){return!!t.node&&ji(t.node)}));return e&&e.node}}var Xu,Ju=5e3,Yu=st;function Zu(){return ls(ns)&&"WeakRef"in window}var tc=0,ec=1/0,nc=0;var rc=function(){return Xu?tc:window.performance.interactionCount||0};function ic(t,e,n){if(!(ls("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ot,stop:ot};var r,i,o=function(t){"interactionCount"in performance||Xu||(Xu=new window.PerformanceObserver(c((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(ec=Math.min(ec,e.interactionId),nc=Math.max(nc,e.interactionId),tc=(nc-ec)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===Ze?0:rc(),n={stopped:!1};function r(){return rc()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,u=1/0,l=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]}}}(a),f=-1;function d(n){for(var o=0,a=n;o<a.length;o++){var s=a[o];s.interactionId&&s.startTime>=e&&s.startTime<=u&&l.process(s)}var c,d,p=l.estimateP98Interaction();p&&p.duration!==f&&(f=p.duration,i=_t(e,p.startTime),c=p.startTime,d=Xs.get(c),Xs.delete(c),!(r=d)&&p.target&&ji(p.target)&&(r=Ds(p.target,t.actionNameAttribute)))}var p=cs(t,{type:ts,buffered:!0}).subscribe(d),v=cs(t,{type:Za,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,6e4),targetSelector:r,time:i}:a()?{value:0}:void 0},setViewEnd:function(t){u=t,s()},stop:function(){v.unsubscribe(),p.unsubscribe()}}}function oc(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a=r===Ze,s=!0,u=[],c=Fu();function l(){if(!s&&!a&&u.length>0){var t=Math.max.apply(Math,u);t<c.getTimeStamp()&&o(t)}}var f=ps(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(_t(i.timeStamp,t.end)),l())})).stop;return{setLoadEvent:function(t){a&&(a=!1,u.push(t),l())},stop:function(){f(),c.stop(),s&&(s=!1,l())}}}(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=Gu(0,o,(function(t){a.scroll=t})).stop,f=Qu(n,o.relative,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=ic(n,o.relative,i),p=d.stop,v=d.getInteractionToNextPaint;return{stop:function(){u(),f(),l()},stopINPTracking:p,setLoadEvent:c,setViewEnd:d.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=v(),a}}}var ac,sc=3e5,uc=3e5;function cc(t,e,n,r,i,o,a){var s=new Set;function u(i,o,a){var u=function(t,e,n,r,i,o,a){void 0===o&&(o=mt());var s,u,c,l,f,d=X(),p=new Kn,v={},m=0,_=A(r),b=ta(),w=!0;a&&(u=a.name,c=a.service,l=a.version,f=a.context);f&&b.setContext(f);var S={id:d,name:u,startClocks:o,service:c,version:l};t.notify(cr,S),t.notify(lr,S);var x=Q(H,3e3,{leading:!1}),E=x.throttled,k=x.cancel,T=oc(t,e,n,$,i,o),C=T.setLoadEvent,O=T.stop,I=T.getCommonViewMetrics,R=T.stopINPTracking,P=T.setViewEnd,N=i===Ze?Wu(n,C,$):{stop:ot,initialViewMetrics:{}},M=N.stop,L=N.initialViewMetrics,D=function(t,e,n){var r=fs({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,d,$),U=D.stop,B=D.eventCounts,z=g(H,sc),V=t.subscribe(gr,(function(t){t.reason===zi.UNLOADING&&H()}));function j(){t.notify(dr,{id:d,name:u,context:b.getContext(),startClocks:o})}function $(){j(),E()}function H(){k(),j(),m+=1;var e=void 0===s?gt():s.timeStamp;t.notify(fr,{customTimings:v,documentVersion:m,id:d,name:u,service:c,version:l,context:b.getContext(),loadingType:i,location:_,startClocks:o,commonViewMetrics:I(),initialViewMetrics:L,duration:_t(o.timeStamp,e),isActive:void 0===s,sessionIsActive:w,eventCounts:B})}H(),b.changeObservable.subscribe($);var F={name:u,service:c,version:l,contextManager:b,stopObservable:p,end:function(e){s||(s=$t(e&&e.endClocks,mt()),w=$t(e&&e.sessionIsActive,!0),t.notify(pr,{endClocks:s}),t.notify(vr,{endClocks:s}),y(z),P(s.relative),O(),V.unsubscribe(),H(),h((function(){F.stop()}),uc))},stop:function(){M(),U(),R(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<31536e6}(e)?e:_t(o.timeStamp,e);v[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&console.warn("Invalid timing name: "+t+", sanitized to: "+e);return e}(t)]=n,$()}},setViewName:function(t){u=t,H()}};return F}(e,n,r,t,i,o,a);return s.add(u),u.stopObservable.subscribe((function(){s.delete(u)})),u}var c,l=u(Ze,bt(),a);return e.subscribe(hr,(function(){l=u(tn,void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})})),e.subscribe(mr,(function(){l.end({sessionIsActive:!1})})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!qt(n.hash)&&Gt(n.hash)!==Gt(e.hash))return l.end(),void(l=u(tn))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=gt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(tn,e,t)},setViewContext:function(t){l.contextManager.setContext(t)},setViewContextProperty:function(t,e){l.contextManager.setContextProperty(t,e)},setViewName:function(t){l.setViewName(t)},getViewContext:function(){return l.contextManager.getContext()},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function lc(t,e,n,r,i,o,a,s){return t.subscribe(fr,(function(n){t.notify(br,function(t,e,n,r){var i=n.getReplayStats(t.id),o=r.findAll(t.startClocks.relative,t.duration),a={_gc:{document_version:t.documentVersion,replay_stats:i,page_states:o},date:t.startClocks.timeStamp,type:Xe.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:Tt(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_time:Tt(t.commonViewMetrics,"cumulativeLayoutShift.time"),cumulative_layout_shift_target_selector:Tt(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:dt(Tt(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:dt(Tt(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:dt(Tt(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:dt(Tt(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:dt(Tt(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:dt(Tt(t.initialViewMetrics,"firstInput.delay")),first_input_time:dt(Tt(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:Tt(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:dt(Tt(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:Tt(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:dt(Tt(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:Tt(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:dt(Tt(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:Qt(dt(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:dt(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:dt(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!i||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};H(t.customTimings)||(a.view.custom_timings=(s=t.customTimings,u=dt,c={},O(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=P(a,{view:fc(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),cc(n,t,r,e,i,!e.trackViewsManually,s)}function fc(t){if(t){var e=t.fetchStart,n=t.responseEnd,r=t.domInteractive,i=t.domContentLoaded,o=t.domComplete,a=t.loadEventEnd,s=t.loadEventStart,u=t.domContentLoadedEventEnd,c={};if(G(n)&&G(e)&&n!==e){c.fpt=dt(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return G(r)&&G(e)&&r!==e&&(c.tti=dt(r-e)),G(i)&&G(e)&&i!==e&&(c.dom_ready=dt(i-e)),G(a)&&G(e)&&a!==e&&(c.load=dt(a-e)),G(s)&&G(u)&&s!==u&&(c.resource_load_time=dt(s-u)),G(o)&&G(r)&&o!==r&&(c.dom=dt(o-r)),c}}function dc(){this.buffer=new Uint8Array(8),pc().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function pc(){return window.crypto||window.msCrypto}function vc(t,e){if(this._spanId=new dc,this._traceId=new dc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function hc(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function mc(t,e,n){if(this._spanId=hc(),this._traceId=hc(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=Y(e).getParse(),this._traceSampled=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function gc(t,e){if(this._traceId=new dc,this._spanId=new dc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function yc(t,e){if(this._traceId=new dc,this._spanId=new dc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function _c(t,e){if(this._traceId=new dc,this._spanId=new dc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function bc(t,e,n){if(this._traceId=new dc,this._spanId=new dc,this._traceSampled=e,this.isHexTraceId=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function wc(t,e){return 100===e||0!==e&&(ac&&t===ac.sessionId?ac.decision:(n=window.BigInt?function(t,e){var n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(BigInt("0x".concat(t.split("-")[4])),e):ct(e),ac={sessionId:t,decision:n},n));var n}function Sc(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function xc(t,e,n,r){var i=n.findTrackedSession();if(i){var o=At(t.allowedTracingUrls,(function(t){return V([t.match],e.url,!0)}));if(o){var a=wc(i.id,t.tracingSampleRate);if(a){var s;switch(o.traceType){case nn:s=new vc(t,a);break;case un:s=new mc(t,e.url,a);break;case rn:s=new _c(t,a);break;case cn:s=new gc(t,a);break;case an:s=new bc(t,a);break;case sn:s=new bc(t,a,!0);break;case on:s=new yc(t,a)}if(s&&s.isTracingSupported()){e.traceId=s.getTraceId(),e.spanId=s.getSpanId(),e.traceSampled=a;var u=s.makeTracingHeaders();if(t.injectTraceHeader){var c=t.injectTraceHeader(A(e));"object"===et(c)&&O(c,(function(t,e){"string"===et(t)&&(u[e]=t)}))}r(u)}}}}}dc.prototype={toString:function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},toDecimalString:function(){return this.toString(10)},toPaddedHexadecimalString:function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},readInt32:function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]}},vc.prototype={isTracingSupported:function(){return void 0!==pc()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId.toDecimalString()},makeTracingHeaders:function(){return{"x-datadog-origin":"rum","x-datadog-parent-id":this.getSpanId(),"x-datadog-sampling-priority":this._traceSampled?"2":"-1","x-datadog-trace-id":this.getTraceId()}}},mc.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId},getSkyWalkingSw8:function(){try{var t=String(K(this.getTraceId())),e=String(K(this.getSpanId())),n=String(K(this._applicationId+"_rum_"+this.env)),r=String(K(this._version)),i=String(K(window.location.href)),o=String(K(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},gc.prototype={isTracingSupported:function(){return void 0!==pc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},getUberTraceId:function(){return this.getTraceId()+":"+this.getSpanId()+":0:"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{"uber-trace-id":this.getUberTraceId()}}},yc.prototype={isTracingSupported:function(){return void 0!==pc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId.toPaddedHexadecimalString()},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},_c.prototype={isTracingSupported:function(){return void 0!==pc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getSpanId(),"X-B3-SpanId":this.getTraceId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},bc.prototype={isTracingSupported:function(){return void 0!==pc()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.isHexTraceId?this._traceId.toDecimalString():this._traceId.toPaddedHexadecimalString()+this._spanId.toPaddedHexadecimalString()},getTraceParent:function(){return this.isHexTraceId?"00-0000000000000000"+this._traceId.toPaddedHexadecimalString()+"-"+this._spanId.toPaddedHexadecimalString()+"-"+(this._traceSampled?"01":"00"):"00-"+this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){var t={traceparent:this.getTraceParent()};return this.isHexTraceId?I(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var Ec=1;function kc(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Sc,traceFetch:function(n){return xc(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=A(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):N(n.init.headers)?O(n.init.headers,(function(t){e.push(t)})):n.init.headers&&O(n.init.headers,(function(t,n){e.push([n,t])}));var r={};O(e.concat(F(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),O(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return xc(t,n,e,(function(t){O(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=Di().subscribe((function(r){var i=r;if(Ga(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=Tc(),t.notify(yr,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(_r,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:en.XHR,url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack})}}))}(t,e,r),function(t,e,n){var r=Mi().subscribe((function(r){var i=r;if(Ga(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=Tc(),t.notify(yr,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":!function(t,e){var n=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response);n&&n.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function a(){var t,a;if(r.cancel().catch(ot),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;O(i,(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(c((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),c((function(t){e(t)})))}()}(n.body,(function(){e(_t(t.startClocks.timeStamp,gt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(_t(t.startClocks.timeStamp,gt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(_r,{duration:e,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:en.FETCH,url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})}))}}))}(t,e,r)}function Tc(){var t=Ec;return Ec+=1,t}var Cc=new va;function Oc(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=U(e,(function(t){return!Cc.has(t)}));n=U(n,(function(t){return $a(t)&&Ha(t)})),n=U(n,(function(e){return n=e,r=t.startClocks.relative,i=Ic({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Ic(n)<=St(i,o);var n,r,i,o}));var r=void 0;if(n.length>1){var i=Number.MAX_SAFE_INTEGER;n.forEach((function(e){var n=Math.abs(e.startTime-t.startClocks.relative);n<i&&(i=n,r=e)}))}else 1===n.length&&(r=n[0]);return r?(Cc.add(r),r.toJSON()):void 0}}}function Ic(t){return St(t.startTime,t.duration)}function Ac(t,e){qi("interactive",(function(){var t=I($u().toJSON(),{entryType:ss,initiatorType:Pa,toJSON:function(){return I({},t,{toJSON:void 0})}});e(t)}))}function Rc(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(){zr(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=Ac),t.subscribe(_r,(function(t){a((function(){return function(t,e){var n=Oc(t),r=n?wt(n.startTime):t.startClocks,i=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:X()}}}(t),o=t.type===en.XHR?De:Be,a=n?Nc(n):void 0,s=function(t,e,n){return t.wasInPageStateDuringPeriod(ou,e.relative,n)?void 0:dt(n)}(e,r,t.duration),u=Y(t.url).getParse(),c=P({date:r.timeStamp,resource:{id:X(),type:o,duration:s,method:t.method,status:t.status,statusGroup:it(t.status),url:Ka(t.url)?Xa(t.url):t.url,urlHost:u.Host,urlPath:u.Path,urlPathGroup:J(u.Path),urlQuery:Z(t.url),deliveryType:n&&Da(n),protocol:n&&Ua(n)},type:Xe.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:c,domainContext:{performanceEntry:n,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}(t,n)}))}));var o=cs(e,{type:ss,buffered:!0}).subscribe((function(t){for(var n=function(t){(function(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType})(t)||za(t.name,e.resourceUrlLimit)||a((function(){return Pc(t,e)}))},r=0,i=t;r<i.length;r++){n(i[r])}}));function a(e){r.push((function(){var n=e();n&&t.notify(br,n)}))}return i(e,(function(t){a((function(){return Pc(t,e)}))})),{stop:function(){o.unsubscribe()}}}function Pc(t,e){var n,r=wt(t.startTime),i=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),o=Ma(t),a=Nc(t),s=Y(t.name).getParse(),u=P({date:r.timeStamp,resource:{id:X(),type:o,url:t.name,urlHost:s.Host,urlPath:s.Path,urlPathGroup:J(s.Path),urlQuery:Z(t.name),method:"GET",status:(n=t.responseStatus,0===n?void 0:n),statusGroup:it(t.responseStatus),deliveryType:Da(t),protocol:Ua(t)},type:Xe.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:t}}}function Nc(t){return{resource:P({},{duration:Va(t)},qa(t),ja(t))}}var Mc={sdkVersion:"3.2.23",sdkName:"df_web_rum_sdk"};function Lc(t){if(t.applicationId){var e=function(t){return t.site||t.datakitOrigin||t.datakitUrl?!(t.site&&!t.clientToken&&(o.error("clientToken is not configured, no RUM data will be collected."),1)):(o.error("datakitOrigin or site is not configured, no RUM data will be collected."),!1)}(t);if(e)if(void 0===t.sessionOnErrorSampleRate||Pt(t.sessionOnErrorSampleRate))if(void 0===t.sessionReplaySampleRate||Pt(t.sessionReplaySampleRate))if(void 0===t.sessionReplayOnErrorSampleRate||Pt(t.sessionReplayOnErrorSampleRate)){var n=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&o.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!N(t.allowedTracingUrls))return void o.error("Allowed Tracing URLs should be an array");var e=[];return O(t.allowedTracingUrls,(function(n){var r;Ot(n)?e.push({match:n,traceType:$t(t.traceType,nn)}):"object"===et(r=n)&&Ot(r.match)&&W(r.traceType)?e.push(n):o.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)})),e}if(void 0!==t.allowedTracingOrigins){if(!N(t.allowedTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedTracingOrigins,(function(n){var r=Dc(n,$t(t.traceType,nn));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!N(t.allowedDDTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedDDTracingOrigins,(function(n){var r=Dc(n,$t(t.traceType,nn));r&&e.push(r)})),e}return[]}(t);if(n)if(void 0===t.tracingSampleRate||Pt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||N(t.excludedActivityUrls)){var r=Si(t);if(r){var i=!!$t(t.trackUserInteractions,t.trackInteractions);return I({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:$t(t.sessionReplaySampleRate,100),sessionOnErrorSampleRate:$t(t.sessionOnErrorSampleRate,0),sessionReplayOnErrorSampleRate:$t(t.sessionReplayOnErrorSampleRate,0),tracingSampleRate:$t(t.tracingSampleRate,100),allowedTracingUrls:n,injectTraceHeader:t.injectTraceHeader&&d(t.injectTraceHeader,"injectTraceHeader threw an error:"),generateTraceId:t.generateTraceId&&d(t.generateTraceId,"generateTraceId threw an error:"),excludedActivityUrls:$t(t.excludedActivityUrls,[]),workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:i,enableLongAnimationFrame:!!t.enableLongAnimationFrame,trackViewsManually:!!t.trackViewsManually,traceType:$t(t.traceType,nn),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:Ht(wi,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:wi.MASK_USER_INPUT,shouldMaskNode:t.shouldMaskNode&&d(t.shouldMaskNode,"shouldMaskNode threw an error:")},r,Mc)}}else o.error("Excluded Activity Urls should be an array");else o.error("Tracing Sample Rate should be a number between 0 and 100")}else o.error("Error Session Replay Sample Rate should be a number between 0 and 100");else o.error("Session Replay Sample Rate should be a number between 0 and 100");else o.error("Error Session Sample Rate should be a number between 0 and 100")}else o.error("Application ID is not configured, no RUM data will be collected.")}function Dc(t,e){var n;if("string"==typeof t?n=t:t instanceof RegExp?n=function(e){return t.test(Lr(e))}:"function"==typeof t&&(n=function(e){return t(Lr(e))}),void 0!==n)return{match:n,traceType:e};o.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}function Uc(t,e,n){var r,i,a,s,u=t.ignoreInitIfSyntheticsWillInjectRum,c=t.startDeflateWorker,l=Kt();function f(){if(a&&s){var t;if(s.trackViewsManually){if(!r)return;l.remove(r.callback),t=r.options}var e=n(s,i,t);l.drain(e)}}function d(t){var e=Go();if(e&&(t=function(t){var e,n;return I({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(e=t.defaultPrivacyLevel)&&void 0!==e?e:null===(n=Fo())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),a=t,function(t){Eo({type:go,configuration:t})}(rt(t)),s)ha("DATAFLUX_RUM",t);else{var n=Lc(t);n&&(e||n.sessionStoreStrategyType?(!n.compressIntakeRequests||n.sendContentTypeByJson||e||!c||(i=c(n,"RUM",ot)))&&(s=n,Mi().subscribe(ot),f()):o.warn("No storage available for session. We will not send any data."))}}return{init:function(t){t?(a=t,u&&Boolean(window._GUANCE_SYNTHETICS_INJECTS_RUM||Qr("guance-synthetics-injects-rum"))||(t.remoteConfiguration?Ii(t,d):d(t))):o.error("Missing configuration")},getInitConfiguration:function(){return a},getInternalContext:ot,stopSession:ot,addTiming:function(t,e){void 0===e&&(e=gt()),l.add((function(n){n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=mt());var n=function(n){n.startView(t,e)};l.add(n),r||(r={options:t,callback:n},f())},setViewName:function(t){l.add((function(e){return e.setViewName(t)}))},setViewContext:function(t){l.add((function(e){return e.setViewContext(t)}))},setViewContextProperty:function(t,e){l.add((function(n){return n.setViewContextProperty(t,e)}))},getViewContext:function(){},addAction:function(t,n){void 0===n&&(n=e()),l.add((function(e){e.addAction(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),l.add((function(e){e.addError(t,n)}))}}}var Bc=2,zc=3,Vc=4,jc=6,$c=7,Hc=8,Fc=9,Wc=0,qc=1,Gc=2,Qc=3,Kc=4,Xc=11,Jc=0,Yc=1,Zc=2,tl=3,el=4,nl=5,rl=6,il=7,ol=8,al=0,sl=1,ul=2,cl=3,ll=4,fl=5,dl=6,pl=7,vl=9,hl=0,ml=1,gl={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:wi.ALLOW,MASK:wi.MASK,MASK_USER_INPUT:wi.MASK_USER_INPUT},yl="data-gc-privacy",_l="hidden",bl="***",wl={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Sl(t,e,n){if(n&&n.has(t))return n.get(t);var r=Wi(t),i=r?Sl(r,e):e,o=xl(El(t),i);return n&&n.set(t,o),o}function xl(t,e){switch(e){case gl.HIDDEN:case gl.IGNORE:return e}switch(t){case gl.ALLOW:case gl.MASK:case gl.MASK_USER_INPUT:case gl.HIDDEN:case gl.IGNORE:return t;default:return e}}function El(t){if(ji(t)){var e=t.getAttribute(yl);if("BASE"===t.tagName)return gl.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return gl.MASK;if("hidden"===n.type)return gl.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return gl.MASK}return e===_l||t.classList.contains("gc-privacy-hidden")?gl.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?gl.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?gl.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?gl.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),r=(e=i("rel"),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)?gl.IGNORE:void 0}}function kl(t,e,n){if(t.shouldMaskNode&&!0===t.shouldMaskNode(e,n))return!0;switch(n){case gl.MASK:case gl.HIDDEN:case gl.IGNORE:return!0;case gl.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(e)?Tl(e.parentNode):Tl(e);default:return!1}}function Tl(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!wl[e.tagName]}function Cl(t,e,n,r){var i=e.parentElement&&e.parentElement.tagName,o=e.textContent||"";if(!n||o.trim()){if("SCRIPT"===i)o=bl;else if(r===gl.HIDDEN)o=bl;else if(kl(t,e,r))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?bl:o.replace(/\S/g,"x");return o}}var Ol=new WeakMap;function Il(t){return Ol.has(t)}function Al(t){return Ol.get(t)}function Rl(t,e,n){var r=e.tagName,i=e.value;if(kl(t,e,n)){var o=e.type;if("INPUT"===r&&("button"===o||"submit"===o||"reset"===o||"range"===o))return i;if(!i||"OPTION"===r)return;return bl}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?i:void 0}var Pl=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Nl=/^[A-Za-z]+:|^\/\//,Ml=/^data:.*,/i;function Ll(t,e){return t.replace(Pl,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Nl.test(s)||Ml.test(s))return t;var u=n||i||"";return"/"===s[0]?"url(".concat(u).concat(function(t){return(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]}(e)+s).concat(u,")"):"url(".concat(u).concat(function(t,e){try{return Dr(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}function Dl(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch(t){}return e?Ll(((n=Array.from(e,Bt()===Dt?Bl:Ul).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),n),t.href):null}function Ul(t){return function(t){return"styleSheet"in t}(t)&&Dl(t.styleSheet)||t.cssText}function Bl(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return Ul(t)}function zl(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function Vl(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var jl=/^[^ \t\n\r\u000c]+/,$l=/^[, \t\n\r\u000c]+/;var Hl=0,Fl=1,Wl=2;function ql(t,e,n){return Gl(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function Gl(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Wc,childNodes:Ql(t,e),adoptedStyleSheets:zl(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=Hi(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:Xc,childNodes:Ql(t,e),isShadowRoot:n,adoptedStyleSheets:n?zl(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:qc,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=Yl(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=xl(El(t),e.parentNodePrivacyLevel);var o;if(i===gl.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:Gc,tagName:n,attributes:Tu({rr_width:s+"px",rr_height:u+"px"},yl,_l),childNodes:[],isSVG:r}}if(i===gl.IGNORE)return;var c=function(t,e,n){if(e===gl.HIDDEN)return{};for(var r={},i=Yl(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=Kl(t,e,s,n.configuration);null!==u&&(r[s]=Zl(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=Rl(n.configuration,t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===gl.ALLOW){var l=t;l.selected&&(r.selected=l.selected)}if("link"===i){var f=Array.from(o.styleSheets).find((function(e){return e.href===t.href}));(d=Dl(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=Dl(t.sheet))&&(r._cssText=d)}var p,v,h=t;"input"!==i||"radio"!==h.type&&"checkbox"!==h.type||(e===gl.ALLOW?r.checked=!!h.checked:kl(n.configuration,h,e)&&delete r.checked);if("audio"===i||"video"===i){var m=t;r.rr_mediaState=m.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case Hl:p=Math.round(t.scrollTop),v=Math.round(t.scrollLeft),(p||v)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:v});break;case Fl:if(g.elementsScrollPositions.has(t)){var y=g.elementsScrollPositions.get(t);p=y.scrollTop,v=y.scrollLeft}}v&&(r.rr_scrollLeft=v);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(function(t){return t.childNodes.length>0||$i(t)}(t)&&"style"!==n){l=Ql(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:I({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:Gc,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=Cl(e.configuration,t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:Qc,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:Kc,textContent:""}}var n}(t,e);if(!n)return null;var r=Al(t)||Xl++,i=n;return i.id=r,function(t,e){Ol.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function Ql(t,e){var n=[];return Fi(t,(function(t){var r=Gl(t,e);r&&n.push(r)})),n}function Kl(t,e,n,r){if(e===gl.HIDDEN)return null;var i=t.getAttribute(n);if(e===gl.MASK&&n!==yl&&!Ns.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return bl}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("onerror"===n)return null}if("A"===o&&"href"===n)return bl;if(i&&Ft(n,"data-"))return bl;if("IFRAME"===o&&"srcdoc"===n)return bl}return i&&"string"==typeof i&&Ka(i)?Xa(i):i}var Xl=1;var Jl=/[^a-z1-6-_]/;function Yl(t){var e=(t+"").toLowerCase().trim();return Jl.test(e)?"div":e}function Zl(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Vl(t,r):"background"!==n||!r||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;var n=0;function r(t){var r,i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}for(var i=[];r($l),!(n>=e.length);){var o=r(jl);if(","===o.slice(-1))o=Vl(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Vl(t,o);for(var s=!1;;){var u=e.charAt(n);if(""===u){i.push((o+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,i.push((o+a).trim());break}"("===u&&(s=!0)}a+=u,n+=1}}}return i.join(", ")}(t,r):"style"===n?Ll(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?Vl(t,r):r:Vl(t,r):r;var i}function tf(t){return Boolean(t.changedTouches)}function ef(t,e){return{data:I({source:t},e),type:zc,timestamp:gt()}}function nf(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){r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}}function rf(t,e,n,r){var i=Aa();if(!i)return{stop:ot,flush:ot};var o=function(t){var e=ot,n=[];function r(){e(),t(n),n=[]}var i=Q(r,16,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(t){0===n.length&&(e=zr(o,{timeout:100})),Array.prototype.push.apply(n,t)},flush:r,stop:function(){e(),a()}}}((function(r){!function(t,e,n,r){var i=new Map;t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){of(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Il(e)&&!Hi(e))return!1;e=Wi(e)}return!0}(t.target)&&Sl(t.target,n.defaultPrivacyLevel,i)!==gl.HIDDEN})),a=function(t,e,n,r){for(var i=new Set,o=new Map,a=0,s=t;a<s.length;a++){var u=s[a];u.addedNodes.forEach((function(t){i.add(t)})),u.removedNodes.forEach((function(t){i.has(t)||o.set(t,u.target),i.delete(t)}))}var c=Array.from(i);l=c,l.sort((function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}));var l;for(var f=new Set,d=[],p=0,v=c;p<v.length;p++){var h=v[p];if(!b(h)){var m=Sl(h.parentNode,e.defaultPrivacyLevel,r);if(m!==gl.HIDDEN&&m!==gl.IGNORE){var g=Gl(h,{serializedNodeIds:f,parentNodePrivacyLevel:m,serializationContext:{status:Wl,shadowRootsController:n},configuration:e});if(g){var y=Wi(h);d.push({nextId:w(h),parentId:Al(y),node:g})}}}}var _=[];return o.forEach((function(t,e){Il(e)&&_.push({parentId:Al(t),id:Al(e)})})),{adds:d,removes:_,serializedNodeIds:f,hasBeenSerialized:b};function b(t){return Il(t)&&f.has(Al(t))}function w(t){for(var e=t.nextSibling;e;){if(Il(e))return Al(e);e=e.nextSibling}return null}}(o.filter((function(t){return"childList"===t.type})),n,r,i),s=a.adds,u=a.removes,c=a.serializedNodeIds;function l(t){return Il(t)&&c.has(Al(t))}var f=function(t,e,n){for(var r=[],i=new Set,o=t.filter((function(t){return!i.has(t.target)&&(i.add(t.target),!0)})),a=0,s=o;a<s.length;a++){var u=s[a];if(u.target.textContent!==u.oldValue){var c=Sl(Wi(u.target),e.defaultPrivacyLevel,n);c!==gl.HIDDEN&&c!==gl.IGNORE&&r.push({id:Al(u.target),value:$t(Cl(e,u.target,!1,c))})}}return r}(o.filter((function(t){return"characterData"===t.type&&!l(t.target)})),n,i),d=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,u=o;s<u.length;s++){var c=u[s];if(c.target.getAttribute(c.attributeName)!==c.oldValue){var l,f=Sl(c.target,e.defaultPrivacyLevel,n),d=Kl(c.target,f,c.attributeName,e);if("value"===c.attributeName){var p=Rl(e,c.target,f);if(void 0===p)continue;l=p}else l="string"==typeof d?d:null;var v=a.get(c.target);v||(v={id:Al(c.target),attributes:{}},r.push(v),a.set(c.target,v)),v.attributes[c.attributeName]=l}}return r}(o.filter((function(t){return"attributes"===t.type&&!l(t.target)})),n,i);if(!(f.length||d.length||u.length||s.length))return;e({adds:s,removes:u,texts:f,attributes:d})}(r.concat(a.takeRecords()),t,e,n)})),a=new i(c(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()}}}function of(t,e){$i(t)&&e(t.shadowRoot),Fi(t,(function(t){return of(t,e)}))}var af=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(!function(){var t=window.visualViewport;return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}()?(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)):(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)),r):r},sf=function(){var t=window.visualViewport;return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}},uf=new WeakMap,cf=1;function lf(t){return uf.has(t)||uf.set(t,cf++),uf.get(t)}function ff(t){var e,n,r,i,o,a,s=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,rf(e,n,r,document)),u=function(t){var e=Q((function(e){var n=hf(e);if(Il(n)){var r=pf(e);if(!r)return;var i={id:Al(n),timeOffset:0,x:r.x,y:r.y};t([i],tf(e)?rl:Yc)}}),50,{trailing:!1}),n=e.cancel,r=e.throttled,i=tr(document,[xe,fe],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb,t.configuration),c=function(t,e){var n=function(n){var r=hf(n);if(Sl(r,e.defaultPrivacyLevel)!==gl.HIDDEN&&Il(r)){var i,o=Al(r),a=df[n.type];if(a!==dl&&a!==fl){var s=pf(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=I({id:lf(n)},ef(Zc,i));t(u)}};return tr(document,Object.keys(df),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration),l=function(t,e,n){var r=Q((function(r){var i=hf(r);if(i&&Sl(i,e.defaultPrivacyLevel)!==gl.HIDDEN&&Il(i)){var o=Al(i),a=i===document?{scrollTop:Qi(),scrollLeft:Gi()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),100),i=r.cancel,o=r.throttled,a=Zn(document,ue,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration,t.elementsScrollPositions),f=function(t){return Uu().subscribe(t).unsubscribe}(t.viewportResizeCb,t.configuration),d=vf(t.inputCb,t.configuration),p=function(t,e){var n=function(n){var r=hf(n);r&&Sl(r,e.defaultPrivacyLevel)!==gl.HIDDEN&&Il(r)&&t({id:Al(r),type:n.type===Ae?hl:ml})};return tr(document,[Ae,Re],n,{capture:!0,passive:!0}).stop}(t.mediaInteractionCb,t.configuration),v=function(t){function e(t,e){t&&Il(t.ownerNode)&&e(Al(t.ownerNode))}var n=[qn(CSSStyleSheet.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r,(function(e){return t({id:e,adds:[{rule:o,index:a}]})}))})),qn(CSSStyleSheet.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r,(function(e){return t({id:e,removes:[{index:i}]})}))}))];"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(r){n.push(qn(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=nf(r);n&&(n.push(a||0),t({id:e,adds:[{rule:o,index:n}]}))}))})),qn(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=nf(r);n&&(n.push(i),t({id:e,removes:[{index:n}]}))}))})))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb,t.configuration),h=(i=t.focusCb,t.configuration,tr(window,[Ee,ke],(function(){i({has_focus:document.hasFocus()})})).stop),m=function(t){if(!window.visualViewport)return ot;var e=Q((function(){t(sf())}),200,{trailing:!1}),n=tr(window.visualViewport,[Ce,ue],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb,t.configuration),g=(o=t.lifeCycle,a=t.frustrationCb,t.configuration,o.subscribe(br,(function(t){t.rawRumEvent.type===Xe.ACTION&&t.rawRumEvent.action.type===We&&t.rawRumEvent.action.frustration&&t.rawRumEvent.action.frustration.type&&t.rawRumEvent.action.frustration.type.length&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&a({timestamp:t.rawRumEvent.date,type:Fc,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return lf(t)}))}})})).unsubscribe);return{flush:function(){s.flush()},stop:function(){s.stop(),u(),c(),l(),f(),d(),p(),v(),h(),m(),g()}}}var df=Tu(Tu(Tu(Tu(Tu(Tu(Tu(Tu(Tu({},ye,al),Se,sl),re,ul),Te,cl),ie,ll),Ee,fl),ke,dl),ce,pl),le,vl);function pf(t){var e=tf(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=af(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function vf(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=tr(n,o?[Oe]:[Ie,Oe],(function(t){var e=hf(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=ot;else{var u=[Gn(HTMLInputElement.prototype,"value",c),Gn(HTMLInputElement.prototype,"checked",c),Gn(HTMLSelectElement.prototype,"value",c),Gn(HTMLTextAreaElement.prototype,"value",c),Gn(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var n=Sl(t,e.defaultPrivacyLevel);if(n!==gl.HIDDEN){var r,i=t.type;if("radio"===i||"checkbox"===i){if(kl(e,t,n))return;r={isChecked:t.checked}}else{var o=Rl(e,t,n);if(void 0===o)return;r={text:o}}l(t,r);var a,s,u=t.name;"radio"===i&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'+j(u)+'"]'),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(e,n){if(Il(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(I({id:Al(e)},n)))}}}function hf(t){return!0===t.composed&&$i(t.target)?t.composedPath()[0]:t.target}function mf(t){var e=t.emit;if(!e)throw new Error("emit function is required");var n,r=(n=new WeakMap,{set:function(t,e){(t!==document||document.scrollingElement)&&n.set(t===document?document.scrollingElement:t,e)},get:function(t){return n.get(t)},has:function(t){return n.has(t)}}),i=function(t){e(ef(Jc,t))},o=function(t){e(ef(nl,t))},a=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=rf(n,t,o,e),s=a.flush,u=a.stop,c=vf(r,t,e);i.set(e,{flush:s,stop:function(){u(),c()}})}},removeShadowRoot:function(t){var e=i.get(t);e&&(e.stop(),i.delete(t))},stop:function(){i.forEach((function(t){t.stop()}))},flush:function(){i.forEach((function(t){t.flush()}))}};return o}(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=gt()),void 0===i&&(i={status:Hl,elementsScrollPositions:r,shadowRootsController:a});var o=Bu(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:Vc,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:jc,timestamp:n}),e({data:{node:ql(document,t.configuration,i),initialOffset:{left:Gi(),top:Qi()}},type:Bc,timestamp:n}),window.visualViewport&&e({data:sf(),type:Hc,timestamp:n})};s();var u=ff({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(ef(il,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(ef(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(ef(tl,t))},styleSheetCb:function(t){e(ef(ol,t))},viewportResizeCb:function(t){e(ef(el,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:jc,timestamp:gt()})},visualViewportResizeCb:function(t){e({data:t,type:Hc,timestamp:gt()})},shadowRootsController:a}),c=u.stop,l=u.flush;function f(){a.flush(),l()}return{stop:function(){a.stop(),c()},takeSubsequentFullSnapshot:function(t){f(),s(t,{shadowRootsController:a,status:Fl,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function gf(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),yf(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function yf(t,e,n){void 0===n&&(n=""),O(F(t),(function(t){var r=t[1],i=t[0];"object"===Eu(r)&&null!==r?yf(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var _f;function bf(t){return wf(t).segments_count}function wf(t){var e;return _f||(_f=new Map),_f.has(t)?e=_f.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},_f.set(t,e),_f.size>10&&Sf()),e}function Sf(){if(_f)if(_f.keys)_f.delete(_f.keys().next().value);else{var t=!0;_f.forEach((function(e,n){t&&(_f.delete(n),t=!1)}))}}function xf(t){var e=t.context,n=t.creationReason,r=t.encoder,i=0,o=e.view.id,a=I({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:bf(o),source:"browser"},e);return function(t){wf(t).segments_count+=1}(o),{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=t.type===Bc),function(t){wf(t).records_count+=1}(a.view.id);var n=r.isEmpty()?'{"records":[':",";r.write(n+JSON.stringify(t),(function(t){e(i+=t)}))},flush:function(t){if(r.isEmpty())throw new Error("Empty segment flushed");r.write("],"+JSON.stringify(a).slice(1)+"\n"),r.finish((function(e){!function(t,e){wf(t).segments_total_raw_size+=e}(a.view.id,e.rawBytesCount),t(a,e)}))}}}var Ef=6e4;function kf(t,e,n,r,i,o){return function(t,e,n,r,i){var o={status:Tf.WaitingForInitialRecord,nextSegmentCreationReason:"init",isLocked:i},a=t.subscribe(lr,(function(){f("view_change")})),s=a.unsubscribe,u=t.subscribe(gr,(function(t){f(t.reason)})),c=u.unsubscribe,l=["view_change","buffer_checkout"];function f(t,e){var r=o.isLocked;if(o.status===Tf.SegmentPending){if(r&&l.includes(t))o.segment.flush((function(){e&&e()}));else{if(r)return;o.segment.flush((function(e,r){var i=gf(r.output,e,r.rawBytesCount);Vi(t)?n.sendOnExit(i):n.send(i)}))}m(o.expirationTimeoutId)}o="stop"!==t?{status:Tf.WaitingForInitialRecord,nextSegmentCreationReason:t,isLocked:o.isLocked}:{status:Tf.Stopped,isLocked:!1}}return{addRecord:function(t){if(o.status!==Tf.Stopped){if(o.status===Tf.WaitingForInitialRecord){var n=e();if(!n)return;o={status:Tf.SegmentPending,segment:xf({encoder:r,context:n,creationReason:o.nextSegmentCreationReason}),isLocked:o.isLocked,expirationTimeoutId:h((function(){f("segment_duration_limit")}),5e3)}}o.segment.addRecord(t,(function(t){t>Ef&&f("segment_bytes_limit")}))}},unlockSegment:function(){o.isLocked=!1},flushBufferSegment:function(t){f("buffer_checkout",t)},isLocked:function(){return o.isLocked},stop:function(){f("stop"),s(),c()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{sdk:{name:t.sdkName,version:t.sdkVersion},env:t.env||"",service:i.service||t.service||"browser",version:i.version||t.version||"",app:{id:t.applicationId},session:{id:r.id},view:{id:i.id}}}(e,n,r)}),i,o,arguments.length>6&&void 0!==arguments[6]&&arguments[6])}var Tf={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var Cf=0,Of=1,If=2,Af=3;var Rf,Pf,Nf,Mf,Lf=function(t,e){if(Go()&&!qo(Wo)||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:ot,stop:ot,getReplayStats:function(){},onRumStart:ot,isRecording:function(){return!1}};var n={status:Cf},r=function(){n={status:Of}},i=function(){n={status:Cf}};return{start:function(t){r(t)},stop:function(){i()},onRumStart:function(o,a,s,u,c){var l;o.subscribe(mr,(function(){n.status!==If&&n.status!==Af||(i(),n={status:Of})})),o.subscribe(gr,(function(t){t.reason===zi.UNLOADING&&i()})),o.subscribe(hr,(function(){n.status===Of&&r()})),r=function(r){var f=s.findTrackedSession();f&&f.sessionReplayAllowed?n.status!==If&&n.status!==Af&&(n={status:If},qi("interactive",(function(){if(n.status===If){var r=(l||(c||(c=bu(a,"Session Replay",(function(){i()}),e)),c&&(l=pu(c,fu))),l);if(r){var f=t(o,a,s,u,r);n={status:Af,stopRecording:f.stop}}else n={status:Cf}}}))):n={status:Of}},i=function(){n.status!==Cf&&(n.status===Af&&n.stopRecording(),n={status:Cf})},n.status===Of&&r()},isRecording:function(){return wu()===yu&&n.status===Af},getReplayStats:function(t){return wu()===yu?function(t){return _f&&_f.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a,s,u,c,l=[],f=o||Ro(e.sessionReplayEndPoint,Ef,e.retryMaxSize,(function(e){t.notify(Sr,{error:e}),To("Error reported to customer",{"error.message":e.message})}));if(Go()){var d=(u=r,c=Fo(),{addRecord:function(t){var e=u.findView();c.send("session_replay",t,e.id)}});s=mf({emit:a=d.addRecord,configuration:e,lifeCycle:t})}else{var p=n.findTrackedSession(),v=p&&p.errorSessionReplayAllowed&&!p.sessionHasError,h=kf(t,e,n,r,f,i,v);a=h.addRecord;var m=h.flushBufferSegment,g=h.unlockSegment;l.push(h.stop),v&&n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,n=t.newState;!e.hasError&&n.hasError&&(v=!1,g())}));var y=null;s=mf({emit:function(t){if(a(t),v)if(t.type===Bc)y=t;else if(t.type===zc){t.timestamp-y.timestamp>6e4&&m((function(){Sf(),_()}))}},configuration:e,lifeCycle:t})}l.push(s.stop);var _=s.takeSubsequentFullSnapshot,b=s.flushMutations,w=t.subscribe(pr,(function(){b(),a({timestamp:gt(),type:$c})}));l.push(w.unsubscribe);var S=t.subscribe(lr,(function(t){_(t.startClocks.timeStamp)}));return l.push(S.unsubscribe),{stop:function(){l.forEach((function(t){t()}))}}})),Df=function(t,e,n){void 0===n&&(n={});var r=la(sa),i=ta("global",{customerDataTracker:r.getOrCreateTracker(na)}),a=ta("user",{customerDataTracker:r.getOrCreateTracker(ea),propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}});function s(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(i,a,e)}var f,d,p=Uc(n,s,(function(o,u,c){o.storeContextsToLocal&&(aa(o,i,"rum",na),aa(o,a,"rum",ea)),r.setCompressionStatus(u?ua:ca);var l=t(o,e,r,s,c,u&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(u,t)}:da);return e.onRumStart(l.lifeCycle,o,l.session,l.viewContexts,u),p=function(t,e){return I({init:function(t){ha("DATAFLUX_RUM",t)},initConfiguration:t.getInitConfiguration()},e)}(p,l),l})),v=c((function(t){var e="object"===Eu(t)?t:{name:t};p.startView(e),e.context&&r.getOrCreateTracker(ra).updateCustomerData(e.context),Oo({feature:"start-view"})})),h=(f={init:c((function(t){p.init(t)})),setViewName:c((function(t){p.setViewName(t),Oo({feature:"set-view-name"})})),setViewContext:c((function(t){p.setViewContext(t),Oo({feature:"set-view-context"})})),setViewContextProperty:c((function(t,e){p.setViewContextProperty(t,e),Oo({feature:"set-view-context-property"})})),getViewContext:c((function(){return Oo({feature:"set-view-context-property"}),p.getViewContext()})),addRumGlobalContext:c((function(t,e){i.setContextProperty(t,e),Oo({feature:"set-global-context"})})),setGlobalContextProperty:c((function(t,e){i.setContextProperty(t,e),Oo({feature:"set-global-context"})})),removeRumGlobalContext:c((function(t){return i.removeContextProperty(t)})),removeGlobalContextProperty:c((function(t){return i.removeContextProperty(t)})),getRumGlobalContext:c((function(){return i.getContext()})),getGlobalContext:c((function(){return i.getContext()})),setRumGlobalContext:c((function(t){i.setContext(t),Oo({feature:"set-global-context"})})),setGlobalContext:c((function(t){i.setContext(t),Oo({feature:"set-global-context"})})),clearGlobalContext:c((function(){return i.clearContext()})),getInitConfiguration:c((function(){return rt(p.initConfiguration)})),getInternalContext:c((function(t){return p.getInternalContext(t)})),addDebugSession:c((function(t){})),clearDebugSession:c((function(){})),getDebugSession:c((function(){})),addAction:c((function(t,e){var n=$n();l((function(){p.addAction({name:Ln(t),context:Ln(e),startClocks:mt(),type:qe,handlingStack:n}),Oo({feature:"add-action"})}))})),addError:c((function(t,e){var n=$n();l((function(){p.addError({error:t,handlingStack:n,context:Ln(e),startClocks:mt()}),Oo({feature:"add-error"})}))})),addTiming:c((function(t,e){p.addTiming(Ln(t),e)})),setUser:c((function(t){(function(t){var e="object"===et(t);return e||o.error("Unsupported user:",t),e})(t)&&a.setContext(pa(t)),Oo({feature:"set-user"})})),getUser:c((function(){return a.getContext()})),setUserProperty:c((function(t,e){var n={};n[t]=e;var r=pa(n)[t];a.setContextProperty(t,r),Oo({feature:"set-user"})})),removeUserProperty:c((function(t){return a.removeContextProperty(t)})),removeUser:c((function(){return a.clearContext()})),clearUser:c((function(){return a.clearContext()})),startView:v,stopSession:c((function(){p.stopSession(),Oo({feature:"stop-session"})})),startSessionReplayRecording:c((function(t){e.start(t),Oo({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:c(e.stop)},d=I({onReady:function(t){t()}},f),Object.defineProperty(d,"_setDebug",{get:function(){return u},enumerable:!1}),d);return h}((function(t,e,n,r,i,o){var a=[],s=new xr,u=function(t){var e=ko(So,t);return e}(t),l=function(t){s.notify(Sr,{error:t})},f=new Kn((function(t){var e=tr(window,[de,ve],(function(e){e.type===de&&"hidden"===document.visibilityState?t.notify({reason:zi.HIDDEN}):e.type===ve&&t.notify({reason:zi.FROZEN})}),{capture:!0}),n=Zn(window,ne,(function(){t.notify({reason:zi.UNLOADING})}));return function(){e.stop(),n.stop()}}));f.subscribe((function(t){s.notify(gr,t)})),a.push((function(){pageExitSubscription.unsubscribe()}));var d=Go()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:ma,isErrorSession:!1,sessionErrorTimestamp:0,sessionReplayAllowed:!!qo(Wo),errorSessionReplayAllowed:!1,sessionHasError:!1};return{findTrackedSession:function(){return t},expire:ot,expireObservable:new Kn,setErrorForSession:function(){}}}():Ta(t,s);if(Go())!function(t){var e=Fo();t.subscribe(wr,(function(t){var n=Vo(t).rowData;e.send("rum",n)}))}(s);else{var p=xu(t,s,u.observable,l,f,d.expireObservable,o);a.push((function(){p.stop()}))}var v,h=Ia(t),m=(v=Aa(),new Kn((function(t){if(v){var e=new v(c((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),g=Ra(location),y=su(),_=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=Jt({expireDelay:Vu});return t.subscribe(cr,(function(t){e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(vr,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(dr,(function(t){var n=e.find(t.startClocks.relative);n&&t.name&&(n.name=t.name),n&&t.context&&(n.context=t.context)})),t.subscribe(hr,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),f=function(t,e,n){var r,i=Jt({expireDelay:zu});t.subscribe(cr,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(vr,(function(t){i.closeActive(t.endClocks.relative)}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=ht();i.closeActive(n),i.add(a({url:t.newLocation.href,location:t.newLocation,referrer:e.referrer}),n)}}));function a(t){var e=t.location.pathname,n=t.location.hash;return n&&!qt(n)&&(e="/"+Gt(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:J(e),urlQuery:Z(t.location.href)}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,a,n),d=function(t,e,n,r){t.subscribe(ur,(function(e){t.notify(br,cu(e,r))}));var i={findActionId:ot,findAllActionId:ot};return n.trackUserInteractions&&(i=Ys(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(br,R({savedCommonContext:n},cu(e,r)))}}}(t,s,e,o),p=d.actionContexts,v=d.addAction,h=(m=Bu(),{get:function(){return{viewport:m}},stop:Uu().subscribe((function(t){m=t})).unsubscribe});var m;return Du(e,t,r,i,l,f,p,h,u,c),{viewContexts:l,urlContexts:f,pageStateHistory:o,addAction:v,actionContexts:p,stop:function(){h.stop(),o.stop(),f.stop(),l.stop()}}}(s,t,location,d,h,y,g,m,r,l),b=_.viewContexts,w=_.urlContexts,S=_.actionContexts,x=_.stop,E=_.addAction;a.push(x),xo.drain(),u.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:d.findTrackedSession()&&d.findTrackedSession().id},view:{id:b.findView()&&b.findView().id},action:{id:S.findActionId(),ids:S.findAllActionId()}}}));var k=lc(s,t,location,m,g,y,e,i),T=k.addTiming,C=k.startView,O=k.setViewName,I=k.setViewContext,A=k.setViewContextProperty,P=k.getViewContext,N=k.stop;a.push(N);var M=Rc(s,t,y);if(a.push(M.stop),PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(is)){var L=function(t,e){var n=cs(e,{type:is,buffered:!0}).subscribe((function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=wt(i.startTime),a={date:o.timeStamp,longTask:{id:X(),entryType:Ye,duration:dt(i.duration),blockingDuration:dt(i.blockingDuration),firstUiEventTimestamp:dt(i.firstUIEventTimestamp),renderStart:dt(i.renderStart),styleAndLayoutStart:dt(i.styleAndLayoutStart),startTime:dt(i.startTime),scripts:i.scripts.map((function(t){return{duration:dt(t.duration),pause_duration:dt(t.pauseDuration),forced_style_and_layout_duration:dt(t.forcedStyleAndLayoutDuration),start_time:dt(t.startTime),execution_start:dt(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:Xe.LONG_TASK};t.notify(br,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}}));return{stop:function(){n.unsubscribe()}}}(s,t);a.push(L.stop)}else!function(t,e){var n=cs(e,{type:rs,buffered:!0}).subscribe((function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==rs)break;var i=wt(r.startTime),o={date:i.timeStamp,longTask:{id:X(),entryType:Je,duration:dt(r.duration)},type:Xe.LONG_TASK};t.notify(br,{rawRumEvent:o,startTime:i.relative,domainContext:{performanceEntry:r}})}}))}(s,t);var D=ju(s,0,d,y).addError;kc(s,t,d);var U=function(t,e,n,r,i){return{get:function(o){var a=n.findView(o),s=i.findUrl(o),u=e.findTrackedSession(o);if(u&&a&&s){var c=r.findActionId(o),l=r.findAllActionId(o);return{application:{id:t},session:{id:u.id},userAction:c?{id:c,ids:l}:void 0,view:{id:a.id,name:a.name||s.path,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,urlQuery:s.urlQuery}}}}}}(t.applicationId,d,b,S,w);return{addAction:E,addError:D,addTiming:T,configuration:t,startView:C,setViewContext:I,setViewContextProperty:A,getViewContext:P,setViewName:O,lifeCycle:s,viewContexts:b,session:d,stopSession:function(){d.expire()},getInternalContext:U.get,stop:function(){a.forEach((function(t){t()}))}}}),Lf,{startDeflateWorker:bu,createDeflateEncoder:pu});Rf=v(),Nf=Df,Mf=Rf[Pf="DATAFLUX_RUM"],Rf[Pf]=Nf,Mf&&Mf.q&&O(Mf.q,(function(t){d(t,"onReady callback threw an error:")()}))}();
|