@cloudcare/browser-rum 3.1.17 → 3.1.19
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/boot/rumPublicApi.js +21 -7
- package/cjs/boot/rumPublicApi.js.map +1 -1
- package/cjs/domain/contexts/urlContexts.js +3 -6
- package/cjs/domain/contexts/urlContexts.js.map +1 -1
- package/cjs/domain/replay/deflate/deflateWorker.js +1 -1
- package/cjs/domain/rumEventsCollection/resource/resourceCollection.js +25 -20
- package/cjs/domain/rumEventsCollection/resource/resourceCollection.js.map +1 -1
- package/esm/boot/buildEnv.js +1 -1
- package/esm/boot/rumPublicApi.js +22 -8
- package/esm/boot/rumPublicApi.js.map +1 -1
- package/esm/domain/contexts/urlContexts.js +3 -6
- package/esm/domain/contexts/urlContexts.js.map +1 -1
- package/esm/domain/replay/deflate/deflateWorker.js +1 -1
- package/esm/domain/rumEventsCollection/resource/resourceCollection.js +25 -20
- package/esm/domain/rumEventsCollection/resource/resourceCollection.js.map +1 -1
- package/package.json +4 -4
- package/src/boot/rumPublicApi.js +25 -14
- package/src/domain/contexts/urlContexts.js +7 -13
- package/src/domain/rumEventsCollection/resource/resourceCollection.js +27 -33
package/bundle/dataflux-rum.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t,e={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},n=function t(n){var r=[].slice.call(arguments,1);Object.prototype.hasOwnProperty.call(e,n)||(n=e.log),t[n].apply(t,r)};function r(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}n.debug=console.debug.bind(console),n.log=console.log.bind(console),n.info=console.info.bind(console),n.warn=console.warn.bind(console),n.error=console.error.bind(console);var i=!1;function o(t){i=t}function a(t){return function(){return s(t,this,arguments)}}function s(n,r,i){try{return n.apply(r,i)}catch(n){if(u(e.error,n),t)try{t(n)}catch(t){u(e.error,t)}}}function u(t){var e=[].slice.call(arguments,1);i&&n.apply(null,[t,"[MONITOR]"].concat(e))}function c(t,e){return function(){var r=[].slice.call(arguments);try{return t.apply(this,r)}catch(t){n.error(e,t)}}}function l(t){return l="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},l(t)}function f(){if("object"===("undefined"==typeof globalThis?"undefined":l(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"!==l(t)&&(t="object"===("undefined"==typeof self?"undefined":l(self))?self:"object"===("undefined"==typeof window?"undefined":l(window))?window:{}),t}function d(t,e){return r(f(),"setTimeout")(a(t),e)}function p(t){r(f(),"clearTimeout")(t)}function h(t,e){return r(window,"setInterval")(a(t),e)}function v(t){r(window,"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 g=Array.prototype,m=(Function.prototype,Object.prototype),y=g.slice,E=m.toString,b=m.hasOwnProperty,w=g.forEach,S=Array.isArray,T=!1,C=function(t,e,n){if(null===t)return!1;if(w&&t.forEach===w)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)===T)return!1}else for(var o in t)if(b.call(t,o)&&e.call(n,t[o],o,t)===T)return!1};function O(t){return C(y.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function I(t){return O({},t)}var A=function(t){return C(y.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},R=function(t){return C(y.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(H(e[n])&&H(t[n])?A(t[n],e[n]):t[n]=e[n])})),t},x=S||function(t){return"[object Array]"===E.call(t)},N=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},k=function(t){return t?t.toArray?t.toArray():x(t)?y.call(t):(e=t)&&b.call(e,"callee")?y.call(t):L(t):[];var e},L=function(t){var e=[];return null===t||C(t,(function(t){e[e.length]=t})),e},D=function(t){var e=[];return null===t||C(t,(function(t,n){e[e.length]=n})),e},M=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},P=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},U=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},B=function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r},F=function(t,e,r){return void 0===r&&(r=!1),U(t,(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return r?Ht(e,t):t===e}catch(t){n.error(t)}return!1}))},V=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}))},H=function(t){return null!==t&&"[object Object]"===E.call(t)},z=function(t){if(H(t)){for(var e in t)if(b.call(t,e))return!1;return!0}return!1},W=function(t){var e=[];return C(t,(function(t,n){e.push([n,t])})),e},$=function(t){return"[object String]"===E.call(t)},j=function(t){return"[object Boolean]"===E.call(t)},G=function(t){return"[object Number]"===E.call(t)&&/[\d\.]+/.test(String(t))},K=function t(e){var n=e;try{n=t(e)}catch(t){n=e}return n},Z=(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=d((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){p(i),s=!1,r=void 0}}}),q=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 Y(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,Y)}function Q(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var X=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 J=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=tt("?"+n)),e},tt=function(t){for(var e=function(t){return K(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"):t}function ot(){}var at,st=1e3,ut=60*st,ct=60*ut,lt=365*(24*ct);function ft(t){return 0!==t&&100*Math.random()<=t}function dt(t,e){return+t.toFixed(e)}function pt(t){return"number"!=typeof t?t:dt(1e6*t,0)}function ht(t){return G(t)?dt(1e6*t,0):t}function vt(t){return t-Ot()}function _t(t){return Math.round(Ot()+t)}function gt(){return performance.now()}function mt(){return{relative:gt(),timeStamp:yt()}}function yt(){return Et()}function Et(){return(new Date).getTime()}function bt(t,e){return e-t}function wt(){return{relative:0,timeStamp:Ot()}}function St(t){return{relative:t,timeStamp:Ct(t)}}function Tt(t,e){return t+e}function Ct(t){var e=Et()-performance.now();return e>Ot()?Math.round(e+t):_t(t)}function Ot(){return void 0===at&&(at=performance.timing.navigationStart),at}var It=/([\w-]+)\s*=\s*([^;]+)/g;function At(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&r in t&&b.call(t,r)))return;t=t[r]}return t}function Rt(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function xt(t){var e=et(t);return"string"===e||"function"===e||t instanceof RegExp}function Nt(t,e){return-1!==t.indexOf(e)}function kt(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Lt(t){return G(t)&&t>=0&&t<=100}var Dt,Mt={IE:0,CHROMIUM:1,SAFARI:2,OTHER:3};function Pt(){return Vt(Dt,Dt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return Mt.CHROMIUM;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 Mt.SAFARI;if(t.document.documentMode)return Mt.IE;return Mt.OTHER}())}function Ut(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Bt(t){var e={};return C(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=Ft(t)})),e}function Ft(t){return x(t)?P(t,(function(t){return Ft(t)})):"object"===_(t)&&null!==t?Bt(t):t}function Vt(t,e){return null!=t?t:e}function Ht(t,e){return t.slice(0,e.length)===e}function zt(t){var e=t.substr(1);return!!e&&!!document.getElementById(e)}function Wt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function $t(t){return G(t)&&t<0?void 0:t}var jt=function(){this.buffer=[]};jt.prototype={add:function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},drain:function(){C(this.buffer,(function(t){t()})),this.buffer.length=0}};var Gt=jt;function Kt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Zt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var qt=1/0,Yt=ut;function Qt(t,e){this.expireDelay=t,this.entries=[],this.maxEntries=e;var n=this;this.clearOldContextsInterval=h((function(){n.clearOldContexts()}),Yt)}Qt.prototype.add=function(t,e){var n=this,r={context:t,startTime:e,endTime:qt,remove:function(){var t=n.entries.indexOf(r);t>=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},Qt.prototype.find=function(t){void 0===t&&(t=qt);var e,n=Kt(this.entries);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.startTime<=t){if(t<=r.endTime)return r.context;break}}}catch(t){n.e(t)}finally{n.f()}},Qt.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===qt&&e.close(t)},Qt.prototype.findAll=function(t,e){void 0===e&&(e=0),void 0===t&&(t=qt);var n=Tt(t,e),r=M(this.entries,(function(e){return e.startTime<=n&&t<=e.endTime}));return P(r,(function(t){return t.context}))},Qt.prototype.reset=function(){this.entries=[]},Qt.prototype.stop=function(){v(this.clearOldContextsInterval)},Qt.prototype.clearOldContexts=function(){for(var t=gt()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()};var Xt={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"]}},Jt={getMatchMap:a((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:a((function(t){var e=Xt.navigator.userAgent||"",n=Jt.getMatchMap(e);for(var r in Xt.infoMap)for(var i=0;i<Xt.infoMap[r].length;i++){var o=Xt.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:a((function(){return Jt.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:a((function(){var t=this,e=Xt.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:a((function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"})),getDeviceType:a((function(){var t=this;return t.device="PC",Jt.matchInfoMap(t),t.device})),getNetwork:a((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:a((function(){var t;return this.language=((t=(Xt.navigator.browserLanguage||Xt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getBrowserInfo:a((function(){var t=this;Jt.matchInfoMap(t);var e=Xt.navigator.userAgent||"",n=function(t,e){var n=Xt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=Jt.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")||Xt.navigator&&Xt.navigator.connection&&void 0===Xt.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:a((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){n.warn(t)}))}))},te={};"undefined"!=typeof window&&(te={os:Jt.getOS(),MethodLibrary:Jt,osVersion:Jt.getOSVersion().version,osVersionMajor:Jt.getOSVersion().osMajor,browser:Jt.getBrowserInfo().browser,browserVersion:Jt.getBrowserInfo().browserVersion,browserVersionMajor:Jt.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:Jt.getNetwork(),divice:Jt.getDeviceType()});var ee=te,ne={BEFORE_UNLOAD:"beforeunload",CLICK:"click",DBL_CLICK:"dblclick",KEY_DOWN:"keydown",LOAD:"load",POP_STATE:"popstate",SCROLL:"scroll",TOUCH_START:"touchstart",TOUCH_END:"touchend",TOUCH_MOVE:"touchmove",VISIBILITY_CHANGE:"visibilitychange",PAGE_SHOW:"pageshow",FREEZE:"freeze",RESUME:"resume",DOM_CONTENT_LOADED:"DOMContentLoaded",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_CANCEL:"pointercancel",HASH_CHANGE:"hashchange",PAGE_HIDE:"pagehide",MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup",MOUSE_MOVE:"mousemove",FOCUS:"focus",BLUR:"blur",CONTEXT_MENU:"contextmenu",RESIZE:"resize",CHANGE:"change",INPUT:"input",PLAY:"play",PAUSE:"pause",SECURITY_POLICY_VIOLATION:"securitypolicyviolation",SELECTION_CHANGE:"selectionchange",STORAGE:"storage"},re={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},ie={CLICK:"click",CUSTOM:"custom"},oe={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},ae={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},se={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change"},ue={FETCH:re.FETCH,XHR:re.XHR},ce={DDTRACE:"ddtrace",ZIPKIN_MULTI_HEADER:"zipkin",ZIPKIN_SINGLE_HEADER:"zipkin_single_header",W3C_TRACEPARENT:"w3c_traceparent",W3C_TRACEPARENT_64:"w3c_traceparent_64bit",SKYWALKING_V3:"skywalking_v3",JAEGER:"jaeger"},le={HANDLED:"handled",UNHANDLED:"unhandled"},fe={UNCAUGHT:"Uncaught",PROVIDED:"Provided"};function de(t,e,n){var r=t[e],i=n(r),o=function(){if("function"==typeof i)return i.apply(this,arguments)};return t[e]=o,{stop:function(){t[e]===o?t[e]=r:i=r}}}function pe(t,e,n){return de(t,e,(function(t){return function(){var e;return n&&n.before&&s(n.before,this,arguments),"function"==typeof t&&(e=t.apply(this,arguments)),n&&n.after&&s(n.after,this,arguments),e}}))}function he(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){d((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}}}function ve(t){return ve="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},ve(t)}function _e(t,e,n){if("object"!==ve(t)||null===t)return JSON.stringify(t);var r=ge(Object.prototype),i=ge(Array.prototype),o=ge(Object.getPrototypeOf(t)),a=ge(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function ge(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ot}function me(t){return me="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},me(t)}var ye="?";function Ee(t){var e=[],n=Re(t,"stack");return n&&C(n.split("\n"),(function(t){var n=function(t){var e=Se.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=Te.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]||ye,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Ce.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:ye,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Oe.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||ye,line:+e[3],url:e[2]}}(t)||function(t){var e=Ie.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Ae.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]||ye,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=ye),e.push(n))})),{message:Re(t,"message"),name:Re(t,"name"),stack:e}}var be="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",we="(?::(\\d+))",Se=new RegExp("^\\s*at (.*?) ?\\("+be+we+"?"+we+"?\\)?\\s*$","i"),Te=new RegExp("\\((\\S*)"+we+we+"\\)");var Ce=new RegExp("^\\s*at ?"+be+we+"?"+we+"??\\s*$","i");var Oe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Ie=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Ae=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Re(t,e){if("object"===me(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var xe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Ne(t){var e=function(t){return pe(window,"onerror",{before:function(e,n,r,i,o){var a;if(o instanceof Error)a=Ee(o);else{var s={url:n,column:i,line:r},u=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=xe.exec(t);r&&(e=r[1],n=r[2])}return{name:e,message:n}}(e);a={name:u.name,message:u.message,stack:[s]}}t(a,Vt(o,e))}})}(t),n=function(t){return pe(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason",r=Ee(n);t(r,n)}})}(t);return{stop:function(){e.stop(),n.stop()}}}function ke(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Le(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Le(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var De=1024,Me=1024*De,Pe=/[^\u0000-\u007F]/;function Ue(t){return Pe.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Be(t){return Be="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},Be(t)}var Fe=220*De,Ve="$",He=3;function ze(t,e){void 0===e&&(e=Fe);var n=ge(Object.prototype),r=ge(Array.prototype),i=[],o=new WeakMap,a=We(t,Ve,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=We(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){$e(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=We(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+He,c=1),s>e){$e(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}$e(e,"discarded",t)}function We(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"!==Be(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Be(t))return"[Symbol] "+t.description||0;return t}(o);var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}return"[Unserializable]"}(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 $e(t,e,r){n.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",r)}var je="No stack, consider using an instance of Error",Ge={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function Ke(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+" "+_e(ze(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)?qe(e):je,f=u?Qe(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 Ze(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return s((function(){var n=Ee(e);n.stack=n.stack.slice(2),t=qe(n)})),t}function qe(t){var e=Ye(t);return C(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 Ye(t){return(t.name||"Error")+": "+t.message}function Qe(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=Ee(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&qe(i)}),n=n.cause}return r.length?r:void 0}var Xe=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};Xe.prototype={subscribe:function(t){!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),this.observers.push(t);var e=this;return{unsubscribe:function(){e.observers=M(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){C(this.observers,(function(e){e(t)}))}};var Je=Xe;function tn(){var t=[].slice.call(arguments);return new Je((function(e){var n=P(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return C(n,(function(t){return t.unsubscribe()}))}}))}var en={};function nn(t){var n=P(t,(function(t){return en[t]||(en[t]=function(t){return new Je((function(n){var r=console[t];return console[t]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=Ze();s((function(){n.notify(function(t,n,r){var i,o,a=P(t,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return Ye(Ee(t));return _e(t,void 0,2)}(t)})).join(" ");if(n===e.error){var s=kt(t,(function(t){return t instanceof Error}));i=s?qe(Ee(s)):void 0,a="console error: "+a,o=s?Qe(s,"console"):void 0}return{api:n,message:a,stack:i,handlingStack:r,causes:o}}(i,t,o))}))},function(){console[t]=r}}))}(t)),en[t]}));return tn.apply(this,n)}function rn(t,e,n,r){return on(t,[e],n,r)}function on(t,e,n,i){var o=a(i&&i.once?function(t){u(),n(t)}:n);i=i&&i.passive?{capture:i.capture,passive:i.passive}:i&&i.capture;var s=r(t,"addEventListener");C(e,(function(e){s.call(t,e,o,i)}));var u=function(){var n=r(t,"removeEventListener");C(e,(function(e){n.call(t,e,o,i)}))};return{stop:u}}var an={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function sn(t,e){var n=[];Nt(e,an.cspViolation)&&n.push(new Je((function(t){var e=function(e){t.notify(function(t){var e=an.cspViolation,n="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return{type:an.cspViolation,subtype:t.effectiveDirective,message:e+": "+n,stack:un(t.effectiveDirective,n+' of the policy "'+Rt(t.originalPolicy,100)+'"',t.sourceFile,t.lineNumber,t.columnNumber)}}(e))};return rn(document,ne.SECURITY_POLICY_VIOLATION,e).stop})));var r=M(e,(function(t){return t!==an.cspViolation}));return r.length&&n.push(function(t){return new Je((function(e){if(window.ReportingObserver){var n=a((function(t){C(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return{type:n,subtype:e.id,message:n+": "+e.message,stack:un(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)),tn.apply(this,n)}function un(t,e,n,r,i){return n&&qe({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var cn=function(){this._events=[],this.pendingEvents=[]};cn.prototype={emit:function(t){var e=[].slice.call(arguments,1);C(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 cn;var ln,fn={PERFORMANCE_ENTRIES_COLLECTED:"PERFORMANCE_ENTRIES_COLLECTED",AUTO_ACTION_COMPLETED:"AUTO_ACTION_COMPLETED",BEFORE_VIEW_CREATED:"BEFORE_VIEW_CREATED",VIEW_CREATED:"VIEW_CREATED",VIEW_UPDATED:"VIEW_UPDATED",VIEW_ENDED:"VIEW_ENDED",AFTER_VIEW_ENDED:"AFTER_VIEW_ENDED",SESSION_RENEWED:"SESSION_RENEWED",SESSION_EXPIRED:"SESSION_EXPIRED",PAGE_EXITED:"PAGE_EXITED",REQUEST_STARTED:"REQUEST_STARTED",REQUEST_COMPLETED:"REQUEST_COMPLETED",RAW_RUM_EVENT_COLLECTED:"RAW_RUM_EVENT_COLLECTED",RUM_EVENT_COLLECTED:"RUM_EVENT_COLLECTED",RAW_ERROR_COLLECTED:"RAW_ERROR_COLLECTED",RAW_LOG_COLLECTED:"RAW_LOG_COLLECTED",LOG_COLLECTED:"LOG_COLLECTED"};function dn(){this.callbacks={}}function pn(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return hn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hn(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function hn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function vn(t,e,n){var r=rt(t),i=n(r);return C(W(e),(function(e){var n=e[0],i=e[1],o=function(t,e){var n,r=t,i=pn(e.split("."));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!mn(r,o))return;r=r[o]}}catch(t){i.e(t)}finally{i.f()}return r}(r,n),a=et(o);a===i?_n(t,n,ze(o)):"object"!==i||"undefined"!==a&&"null"!==a||_n(t,n,{})})),i}function _n(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!gn(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function gn(t){return"object"===et(t)}function mn(t,e){return gn(t)&&Object.prototype.hasOwnProperty.call(t,e)}function yn(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&d((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:Ge.AGENT,startClocks:mt()})}finally{i=!1}}return!0}}}function En(t){return wn(t,Ut(window.location)).href}function bn(t){return Ut(wn(t))}function wn(t,e){if(function(){if(void 0!==ln)return ln;try{var t=new URL("http://test/path");return ln="http://test/path"===t.href}catch(t){ln=!1}return ln}())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}dn.prototype={notify:function(t,e){var n=this.callbacks[t];n&&C(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]=M(n.callbacks[t],(function(t){return t!==e}))}}}};var Sn=navigator.userAgent.toLowerCase(),Tn=function(){return/iphone os/.test(Sn)};var Cn;function On(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=t+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function In(t){return function(t,e){for(It.lastIndex=0;;){var n=It.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,t)}var An=/^\s+|\s+$/g,Rn={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function xn(t,e){var n=Rn[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+Nn(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?Nn(r)+"v1/write"+n:Nn(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function Nn(t){return t.replace(An,"")}var kn,Ln,Dn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Mn(t){if(void 0===t.sampleRate||Lt(t.sampleRate))if(void 0===t.sessionSampleRate||Lt(t.sessionSampleRate)){if(void 0===t.telemetrySampleRate||Lt(t.telemetrySampleRate)){var e=t.sessionSampleRate||t.sampleRate;return O({beforeSend:t.beforeSend&&c(t.beforeSend,"beforeSend threw an error:"),cookieOptions:Pn(t),sessionSampleRate:Vt(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:Vt(t.telemetrySampleRate,100),telemetryEnabled:Vt(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16*De,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*st,batchMessagesLimit:50,messageBytesLimit:256*De,resourceUrlLimit:5*De,storeContextsToLocal:!!t.storeContextsToLocal,sendContentTypeByJson:!!t.sendContentTypeByJson},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&N(t.isIntakeUrl)&&j(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&N(t.isServerError)&&j(t.isServerError())&&(n=t.isServerError),{rumEndpoint:xn(t,"rum"),logsEndpoint:xn(t,"log"),sessionReplayEndPoint:xn(t,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}n.error("Telemetry Sample Rate should be a number between 0 and 100")}else n.error("Sample Rate should be a number between 0 and 100");else n.error("Sample Rate should be a number between 0 and 100")}function Pn(t){var e={};return 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===Cn){for(var t="gc_site_test_".concat(Y()),e=window.location.hostname.split("."),n=e.pop();e.length&&!In(t);)n=e.pop()+"."+n,On(t,"test",st,{domain:n});Cn=n}return Cn}()),e}function Un(){return kn||(kn=new Je((function(t){if(window.fetch)return de(window,"fetch",(function(e){return function(n,r){var i,o=s(Bn,null,[t,n,r]);return o?(i=e.call(this,o.input,o.init),s(Fn,null,[t,i,o])):i=e.call(this,n,r),i}})).stop}))),kn}function Bn(t,e,n){var r=n&&n.method;void 0===r&&e instanceof Request&&(r=e.method);var i=void 0!==r?String(r).toUpperCase():"GET",o=e instanceof Request?e.url:En(String(e)),a={state:"start",init:n,input:e,method:i,startClocks:mt(),url:o};return t.notify(a),a}function Fn(t,e,n){var r=function(e){var r=n;if(r.state="resolve","stack"in e||e instanceof Error)r.status=0,r.isAborted=e instanceof DOMException&&e.code===DOMException.ABORT_ERR,r.error=e;else if("status"in e){r.response=e;try{r.responseType=e.constructor===Response&&e.type||""}catch(t){r.responseType=""}r.status=e.status,r.isAborted=!1}t.notify(r)};e.then(a(r),a(r))}var Vn={},Hn="_DATAFLUX_REQUEST_UUID";function zn(){return Ln||(Ln=new Je((function(t){var e=pe(XMLHttpRequest.prototype,"open",{before:Wn}),n=pe(XMLHttpRequest.prototype,"send",{before:function(){$n.call(this,t)}}),r=pe(XMLHttpRequest.prototype,"abort",{before:Gn});return function(){e.stop(),n.stop(),r.stop()}}))),Ln}function Wn(t,e){var n=this[Hn]||Y();this[Hn]=n,Vn[n]={state:"open",method:String(t).toUpperCase(),url:En(String(e))}}function $n(t){var e=Vn[this[Hn]];if(e){var n=e;n.state="start",n.startTime=gt(),n.startClocks=mt(),n.isAborted=!1,n.xhr=this;var r=!1,i=pe(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&o.call(this)}}).stop,o=function(){if(a(),i(),!r){r=!0;var o=e;o.state="complete",o.duration=bt(n.startClocks.timeStamp,yt()),o.status=this.status,t.notify(I(o)),jn.call(this)}},a=rn(this,"loadend",o).stop;t.notify(n)}}function jn(){delete Vn[this[Hn]],delete this[Hn]}function Gn(){var t=Vn[this[Hn]];t&&(t.isAborted=!0)}var Kn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Zn(t){return Nt(L(Kn),t)}function qn(t){return t.nodeType===Node.ELEMENT_NODE}function Yn(t){return qn(t)&&Boolean(t.shadowRoot)}function Qn(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&qn(e.host)}function Xn(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;Yn(t)&&e(t.shadowRoot)}function Jn(t){return Qn(t)?t.host:t.parentNode}function tr(t,e){if(document.readyState===t||"complete"===document.readyState)e();else{var n="complete"===t?ne.LOAD:ne.DOM_CONTENT_LOADED;rn(window,n,e,{once:!0})}}function er(){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 nr(){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 rr,ir={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.path",view_path_group:"view.path_group"},or={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",drift:"_gc.drift"},ar={view:{type:ae.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",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_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:ae.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",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_type:"resource.type",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",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:ae.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"]}},long_task:{type:ae.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration"}},action:{type:ae.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"]}},browser_log:{type:ae.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"]}}},sr=4*ct,ur=15*ut,cr=/^([a-z]+)=([a-z0-9-]+)$/,lr="&",fr="_dataflux_s",dr=10,pr=100,hr=[];function vr(t,e){if(void 0===e&&(e=0),rr||(rr=t),t===rr)if(e>=pr)mr();else{var n,r=Er();if(_r()){if(r.lock)return void gr(t,e);if(n=Y(),r.lock=n,yr(r,t.options),(r=Er()).lock!==n)return void gr(t,e)}var i=t.process(r);if(_r()&&(r=Er()).lock!==n)gr(t,e);else{if(i&&function(t,e){if(br(t))return void wr(e);t.expire=String(Et()+ur),yr(t,e)}(i,t.options),_r()&&(!i||!br(i))){if((r=Er()).lock!==n)return void gr(t,e);delete r.lock,yr(r,t.options),i=r}t.after&&t.after(i||r),mr()}}else hr.push(t)}function _r(){return Pt()===Mt.CHROMIUM}function gr(t,e){d((function(){vr(t,e+1)}),dr)}function mr(){rr=void 0;var t=hr.shift();t&&vr(t)}function yr(t,e){On(fr,function(t){return P(W(t),(function(t){return t[0]+"="+t[1]})).join(lr)}(t),ur,e)}function Er(){var t=In(fr),e={};return function(t){return void 0!==t&&(-1!==t.indexOf(lr)||cr.test(t))}(t)&&C(t.split(lr),(function(t){var n=cr.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}})),e}function br(t){return z(t)}function wr(t){On(fr,"",0,t)}var Sr=st;function Tr(t,e,n){var r=new Je,i=new Je,o=h((function(){vr({options:t,process:function(t){return d(t)?void 0:{}},after:l})}),Sr),a=function(){var t=Er();if(d(t))return t;return{}}(),s=Z((function(){var i;vr({options:t,process:function(t){var r=l(t);return i=function(t){var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,o&&!t.id&&(t.id=Y(),t.created=String(Et()));return o}(r),r},after:function(t){i&&!f()&&function(t){a=t,r.notify()}(t),a=t}})}),Sr),u=s.throttled,c=s.cancel;function l(t){return d(t)||(t={}),f()&&(!function(t){return a.id!==t.id||a[e]!==t[e]}(t)?a=t:(a={},i.notify())),t}function f(){return void 0!==a[e]}function d(t){return(void 0===t.created||Et()-Number(t.created)<sr)&&(void 0===t.expire||Et()<Number(t.expire))}return{expandOrRenewSession:u,expandSession:function(){vr({options:t,process:function(t){return f()?l(t):void 0}})},getSession:function(){return a},renewObservable:r,expireObservable:i,expire:function(){c(),wr(t),l({})},stop:function(){v(o)}}}var Cr=ut,Or=sr,Ir=[],Ar=function(t,e,n){var r=new Je,i=new Je,o=Tr(t,e,n);Ir.push((function(){return o.stop()}));var a,s,u=new Qt(Or);function c(){return{id:o.getSession().id,trackingType:o.getSession()[e]}}return Ir.push((function(){return u.stop()})),o.renewObservable.subscribe((function(){u.add(c(),gt()),r.notify()})),o.expireObservable.subscribe((function(){i.notify(),u.closeActive(gt())})),o.expandOrRenewSession(),u.add(c(),wt().relative),a=function(){return o.expandOrRenewSession()},s=on(window,[ne.CLICK,ne.TOUCH_START,ne.KEY_DOWN,ne.SCROLL],a,{capture:!0,passive:!0}),Ir.push(s.stop),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=rn(document,ne.VISIBILITY_CHANGE,e);Ir.push(n.stop);var r=h(e,Cr);Ir.push((function(){v(r)}))}((function(){return o.expandSession()})),{findActiveSession:function(t){return u.find(t)},renewObservable:r,expireObservable:i,expire:o.expire}};var Rr=80*De,xr=32,Nr=3*Me,kr=256*st,Lr=st,Dr={UP:0,FAILURE_DETECTED:1,DOWN:2},Mr={AFTER_SUCCESS:0,AFTER_RESUME:1};function Pr(t,e,n,r,i){e.transportStatus===Dr.UP&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Br(t,e,n,{onSuccess:function(){return Fr(Mr.AFTER_SUCCESS,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),Ur(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function Ur(t,e,n,r){t.transportStatus===Dr.DOWN&&d((function(){Br(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Lr,Fr(Mr.AFTER_RESUME,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(kr,2*t.currentBackoffTime),Ur(t,e,n,r)}})}),t.currentBackoffTime)}function Br(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){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500)}(n)?(e.transportStatus=Dr.UP,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?Dr.FAILURE_DETECTED:Dr.DOWN,e.lastFailureStatus=n.status,o())}))}function Fr(t,e,n,r,i){t===Mr.AFTER_SUCCESS&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: "+Nr/Me+"MiB",source:Ge.AGENT,startClocks:mt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=Vr();o.size()>0;)Pr(o.dequeue(),e,n,r,i)}function Vr(){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>=Nr}}}function Hr(t){return t?t+(-1===t.indexOf("?")?"?":"&")+"precision=ms":t}function zr(t,e,n,r){var i=n?"application/json; charset=UTF-8":void 0,o={transportStatus:Dr.UP,lastFailureStatus:0,currentBackoffTime:Lr,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=Rr&&this.ongoingRequestCount<xr},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:Vr(),queueFullReported:!1},s=function(n,r){return function(t,e,n,r,i){var o=r.data,s=r.bytesCount,u=Hr(t),c=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&s<e;if(c){var l={method:"POST",body:o,keepalive:!0,mode:"cors"};n&&(l.headers={"Content-Type":n}),fetch(u,l).then(a((function(t){"function"==typeof i&&i({status:t.status,type:t.type})})),a((function(){Wr(u,n,o,i)})))}else Wr(u,n,o,i)}(t,e,i,n,r)};return{send:function(e){Pr(e,o,s,t,r)},sendOnExit:function(n){!function(t,e,n,r){var i=r.data,o=r.bytesCount,a=Hr(t),s=!!navigator.sendBeacon&&o<e;if(s)try{var u;if(u=n?new Blob([i],{type:n}):i,navigator.sendBeacon(a,u))return}catch(t){}Wr(a,n,i)}(t,e,i,n)}}}function Wr(t,e,n,r){var i=new XMLHttpRequest;i.open("POST",t,!0),e&&i.setRequestHeader("Content-Type",e),rn(i,"loadend",(function(){"function"==typeof r&&r({status:i.status})}),{once:!0}),i.send(n)}function $r(t){return $r="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},$r(t)}function jr(t){if("object"===$r(t)&&t)t=_e(t);else if(!$(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function Gr(t,e){return"object"===$r(t)&&t?t=_e(t):e&&(t=""+t),t}function Kr(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function Zr(t){return"object"===$r(t)&&t?Kr(_e(t)):$(t)?Kr(t):t}var qr="custom_keys",Yr=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return C(ar,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=A({},ir,i.tags),u=["date","type",qr];C(s,(function(n,r){var i=At(t,n);u.push(r),(i||G(i))&&(e.tags[r]=Gr(i,!0),a.push(jr(r)+"="+jr(i)))}));var c=[],l=A({},or,i.fields);if(C(l,(function(n,r){if(x(n)&&2===n.length){var i=n[1],o=At(t,i);u.push(r),null!=o&&(e.fields[r]=Gr(o),c.push(jr(r)+"="+Zr(o)))}else if($(n)){o=At(t,n);u.push(r),null!=o&&(e.fields[r]=Gr(o),c.push(jr(r)+"="+Zr(o)))}})),t.context&&H(t.context)&&!z(t.context)){var f=[];C(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=Gr(t),c.push(jr(n)+"="+Zr(t))))})),f.length&&(e.fields[qr]=Gr(f),c.push(jr(qr)+"="+Zr(f)))}t.type===ae.LOGGER&&C(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=Gr(t),c.push(jr(n)+"="+Zr(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}},Qr=function(t,e,n,r){this.pushOnlyBuffer=[],this.upsertBuffer={},this.request=t,this.flushController=e,this.messageBytesLimit=n,this.sendContentTypeByJson=r;var i=this;this.flushController.flushObservable.subscribe((function(t){i.flush(t)}))};Qr.prototype.add=function(t){this.addOrUpdate(t)},Qr.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},Qr.prototype.flush=function(t){var e=this.pushOnlyBuffer.concat(L(this.upsertBuffer));if(this.pushOnlyBuffer=[],this.upsertBuffer={},e.length>0){var n={data:this.sendContentTypeByJson?"["+e.join(",")+"]":e.join("\n"),bytesCount:t.bytesCount,flushReason:t.reason};Zn(t.reason)?this.request.sendOnExit(n):this.request.send(n)}},Qr.prototype.addOrUpdate=function(t,e){var r=this.process(t),i=r.processedMessage,o=r.messageBytesCount;o>=this.messageBytesLimit?n.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.messageBytesLimit+"KB."):(this.hasMessageFor(e)&&this.remove(e),this.push(i,o,e))},Qr.prototype.process=function(t){var e="";return{processedMessage:e=this.sendContentTypeByJson?_e(Yr(t).rowData):Yr(t).rowStr,messageBytesCount:Ue(e)}},Qr.prototype.push=function(t,e,n){var r=this.flushController.getMessagesCount()>0?1:0;this.flushController.notifyBeforeAddMessage(e+r),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.flushController.notifyAfterAddMessage()},Qr.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=Ue(e),r=this.flushController.getMessagesCount()>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},Qr.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]};var Xr=Qr;function Jr(t){var e=t.messagesLimit,n=t.bytesLimit,r=t.durationLimit,i=t.pageExitObservable,o=t.sessionExpireObservable,a=new Je;i.subscribe((function(t){return l(t.reason)})),o.subscribe((function(){return l("session_expire")}));var s,u=0,c=0;function l(t){if(0!==c){var e=c,n=u;c=0,u=0,f(),a.notify({reason:t,messagesCount:e,bytesCount:n})}}function f(){p(s),s=void 0}return{flushObservable:a,getMessagesCount:function(){return c},notifyBeforeAddMessage:function(t){u+t>=n&&l("bytes_limit"),c+=1,u+=t,void 0===s&&(s=d((function(){l("duration_limit")}),r))},notifyAfterAddMessage:function(){c>=e?l("messages_limit"):u>=n&&l("bytes_limit")},notifyAfterRemoveMessage:function(t){u-=t,0===(c-=1)&&f()}}}function ti(){var t=f().FTWebViewJavascriptBridge;if(t)return{send:function(e,n){t.sendEvent(JSON.stringify({name:e,data:n}))}}}function ei(){return!!ti()}var ni=3*De,ri="user",ii="global context";var oi=200;function ai(t,e){void 0===e&&(e=Ue);var r,i={},o=!1,a=new Je,s=Z((function(i){r=e(_e(i)),o||(o=function(t,e){return t>ni&&(n.warn("The "+e+"data is over "+ni/De+" KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth."),!0)}(r,t))}),oi).throttled,u={getBytesCount:function(){return r},get:function(){return i},add:function(t,e){i[t]=e,s(i),a.notify()},remove:function(t){delete i[t],s(i),a.notify()},set:function(t){s(i=t),a.notify()},getContext:function(){return rt(i)},setContext:function(t){"object"===et(t)?(i=ze(t),s(i)):u.clearContext(),a.notify()},setContextProperty:function(t,e){i[t]=rt(e),s(i),a.notify()},removeContextProperty:function(t){delete i[t],s(i),a.notify()},clearContext:function(){i={},r=0,a.notify()},changeObservable:a};return u}var si="_gc_s",ui=[];function ci(t,e,n){void 0===n&&(n=Ue);var r=function(t,e){return si+"_"+t+"_"+e}(t,e),i=ai(e,n);function o(){var t=localStorage.getItem(r),e=null!==t?JSON.parse(t):{};i.setContext(e)}return o(),ui.push(rn(window,ne.STORAGE,(function(t){r===t.key&&o()}))),i.changeObservable.subscribe((function(){localStorage.setItem(r,JSON.stringify(i.getContext()))})),i}function li(t){var e=O({},t);return C(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function fi(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}fi.prototype.add=function(t){return this.map.set(t,1),this},fi.prototype.delete=function(t){return this.map.delete(t)},fi.prototype.has=function(t){return this.map.has(t)};var di,pi={log:"log",configuration:"configuration"},hi={debug:"debug",error:"error"},vi=["https://static.guance.com","http://localhost","<anonymous>"],_i={LOGS:"browser-logs-sdk",RUM:"browser-rum-sdk"},gi={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1};function mi(e,n){var r,i=new Je;return gi.telemetryEnabled=n.telemetryEnabled&&ft(n.telemetrySampleRate),di=function(t){if(gi.telemetryEnabled){var n=function(t,e){return R({type:"telemetry",date:yt(),service:t,version:"3.1.17",source:"browser",telemetry:e},void 0!==r?r():{})}(e,t);i.notify(n)}},t=Ei,O(gi,{maxEventsPerPage:n.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){r=t},observable:i,enabled:gi.telemetryEnabled}}function yi(t,n){u(e.debug,t,n),bi(O({type:pi.log,message:t,status:hi.debug},n))}function Ei(t,e){bi(O({type:pi.log,status:hi.error},function(t){if(t instanceof Error){var e=Ee(t);return{error:{kind:e.name,stack:qe(wi(e))},message:e.message}}return{error:{stack:je},message:fe.UNCAUGHT+" "+_e(t)}}(t),e))}function bi(t){di&&gi.sentEventCount<gi.maxEventsPerPage&&(gi.sentEventCount+=1,di(t))}function wi(t){return t.stack=t.stack.filter((function(t){return!t.url||vi.some((function(e){return Ht(t.url,e)}))})),t}var Si="rum",Ti={WITHOUT_SESSION_REPLAY:1,WITH_SESSION_REPLAY:2},Ci={NOT_TRACKED:"0",TRACKED_WITH_SESSION_REPLAY:"1",TRACKED_WITHOUT_SESSION_REPLAY:"2"};function Oi(t,e){var n=Ar(t.cookieOptions,Si,(function(e){return function(t,e){var n;n=function(t){return t===Ci.NOT_TRACKED||t===Ci.TRACKED_WITH_SESSION_REPLAY||t===Ci.TRACKED_WITHOUT_SESSION_REPLAY}(e)?e:ft(t.sessionSampleRate)?ft(t.sessionReplaySampleRate)?Ci.TRACKED_WITH_SESSION_REPLAY:Ci.TRACKED_WITHOUT_SESSION_REPLAY:Ci.NOT_TRACKED;return{trackingType:n,isTracked:Ii(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(fn.SESSION_EXPIRED)})),n.renewObservable.subscribe((function(){e.notify(fn.SESSION_RENEWED)})),{findTrackedSession:function(t){var e=n.findActiveSession(t);if(e&&Ii(e.trackingType)){var r=e.trackingType===Ci.TRACKED_WITH_SESSION_REPLAY?Ti.WITH_SESSION_REPLAY:Ti.WITHOUT_SESSION_REPLAY;return{id:e.id,plan:r,sessionReplayAllowed:r===Ti.WITH_SESSION_REPLAY}}},expire:n.expire,expireObservable:n.expireObservable}}function Ii(t){return t===Ci.TRACKED_WITHOUT_SESSION_REPLAY||t===Ci.TRACKED_WITH_SESSION_REPLAY}var Ai="_dataflulx_usr_id",Ri=1440*ct,xi="initial_document",Ni=[[re.DOCUMENT,function(t){return xi===t}],[re.XHR,function(t){return"xmlhttprequest"===t}],[re.FETCH,function(t){return"fetch"===t}],[re.BEACON,function(t){return"beacon"===t}],[re.CSS,function(t,e){return null!==e.match(/\.css$/i)}],[re.JS,function(t,e){return null!==e.match(/\.js$/i)}],[re.IMAGE,function(t,e){return Nt(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[re.FONT,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[re.MEDIA,function(t,e){return Nt(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function ki(t){var e=t.name;if(!function(t){try{return!!wn(t)}catch(t){return!1}}(e))return re.OTHER;var n=function(t){var e=wn(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=re.OTHER;return C(Ni,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function Li(){for(var t=k(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}var Di=/[^\u0000-\u007F]/;function Mi(t,e){return n=t,(Di.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function Pi(t){if(Ui(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:pt(f-l),trans:pt(d-f),downloadTime:Fi(e,f,d),firstByteTime:Fi(e,l,f)};return f>0&&f<=gt()&&(p.ttfb=pt(f-l)),c!==n&&(p.tcp=pt(c-s),p.connectTime=Fi(e,s,c),Li(s,u,c)&&(p.ssl=pt(c-u),p.sslTime=Fi(e,u,c))),a!==n&&(p.dns=pt(a-o),p.dnsTime=Fi(e,o,a)),Bi(t)&&(p.redirect=pt(i-r),p.redirectTime=Fi(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function Ui(t){var e=Li(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!Bi(t)||Li(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function Bi(t){return t.fetchStart!==t.startTime}function Fi(t,e,n){return{duration:pt(n-e),start:pt(e-t)}}function Vi(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 Hi(t,e){return e&&!function(t,e){var n=[e.rumEndpoint];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),U(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}var zi=/data:(.+)?(;base64)?,/g,Wi=24e3;function $i(t){return!(t.length<=Wi)&&("data:"===t.substring(0,5)&&(t=t.substring(0,Wi),!0))}function ji(t){return t.match(zi)[0]+"[...]"}function Gi(){return void 0!==window.performance&&"getEntries"in performance}function Ki(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&Nt(PerformanceObserver.supportedEntryTypes,t)}function Zi(t,e){var n;if(n=function(n){Yi(t,e,[n])},tr("interactive",(function(){var t,e={entryType:"resource",initiatorType:xi,traceId:"",toJSON:function(){return O({},t,{toJSON:void 0})}};if(Ki("navigation")&&performance.getEntriesByType("navigation").length>0){var r=performance.getEntriesByType("navigation")[0];t=A(r.toJSON(),e)}else{var i=qi();t=A(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},e)}n(t)})),Gi()){var r=performance.getEntries();d((function(){Yi(t,e,r)}))}if(window.PerformanceObserver){var i=a((function(n){Yi(t,e,n.getEntries())})),o=["resource","navigation","longtask","paint"],s=["largest-contentful-paint","first-input","layout-shift","event"];try{C(s,(function(t){new PerformanceObserver(i).observe({type:t,buffered:!0,durationThreshold:40})}))}catch(t){C(s,(function(t){o.push(t)}))}new PerformanceObserver(i).observe({entryTypes:o}),Gi()&&"addEventListener"in performance&&rn(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}Ki("navigation")||function(t){function e(){t(A(qi(),{entryType:"navigation"}))}tr("complete",(function(){d(e)}))}((function(n){Yi(t,e,[n])})),Ki("first-input")||function(t){var e=Et(),n=!1,r=on(window,[ne.CLICK,ne.MOUSE_DOWN,ne.KEY_DOWN,ne.TOUCH_START,ne.POINTER_DOWN],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:gt(),processingEnd:gt(),startTime:t.timeStamp,duration:0,name:""};t.type===ne.POINTER_DOWN?i(e):o(e)}}),{passive:!0,capture:!0}).stop;function i(t){on(window,[ne.POINTER_UP,ne.POINTER_CANCEL],(function(e){e.type===ne.POINTER_UP&&o(t)}),{once:!0})}function o(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&o<Et()-e&&t(i)}}}((function(n){return Yi(t,e,[n])}))}function qi(){var t={},e=performance.timing;for(var n in e)G(e[n])&&(t[n]=0===e[n]?0:vt(e[n]));return t}function Yi(t,e,n){var r=M(n,(function(t){return"resource"===t.entryType||"navigation"===t.entryType||"paint"===t.entryType||"longtask"===t.entryType||"largest-contentful-paint"===t.entryType||"first-input"===t.entryType||"layout-shift"===t.entryType||"event"===t.entryType})),i=M(r,(function(t){return!function(t){return"navigation"===t.entryType&&t.loadEventEnd<=0}(t)&&!function(t,e){return"resource"===e.entryType&&!Hi(t,e.name)}(e,t)}));i.length&&t.notify(fn.PERFORMANCE_ENTRIES_COLLECTED,i)}function Qi(){var t,e=window;if(e.Zone&&(t=r(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=r(new e.MutationObserver(ot),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function Xi(t){var e=I(t);return new Je((function(n){var r,i,o,a,s,u=(r=l,i=pe(history,"pushState",{after:r}),o=pe(history,"replaceState",{after:r}),a=rn(window,ne.POP_STATE,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),c=(s=l,rn(window,ne.HASH_CHANGE,s));function l(){if(e.href!==t.href){var r=I(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){u.stop(),c.stop()}}))}function Ji(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(fn.RUM_EVENT_COLLECTED,(function(t){if(t.type!==ae.VIEW&&n(t))switch(t.type){case ae.ERROR:i.errorCount+=1,r();break;case ae.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case ae.LONG_TASK:i.longTaskCount+=1,r();break;case ae.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var to=100,eo=100;function no(t,e,n,r,i){var o=function(t,e,n){return new Je((function(r){var i,o=[],a=0;o.push(e.subscribe(u),t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(t){U(t,(function(t){return"resource"===t.entryType&&!ro(n,t.name)}))&&u()})),t.subscribe(fn.REQUEST_STARTED,(function(t){ro(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(fn.REQUEST_COMPLETED,(function(t){ro(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=pe(window,"open",{before:u}).stop;return function(){s(),C(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=d((function(){c({hadActivity:!1})}),to),a=void 0!==n?d((function(){return c({hadActivity:!0,end:yt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;p(o),p(r);var n=yt();e||(r=d((function(){c({hadActivity:!0,end:n})}),eo))})),u=function(){i=!0,p(o),p(r),p(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function ro(t,e){return F(t.excludedActivityUrls,e)}var io=st,oo=100,ao={WaitingForMoreClicks:0,WaitingForClicksToStop:1,Finalized:2};function so(t,e){var n,r=[],i=ao.WaitingForMoreClicks;function o(t){t.stopObservable.subscribe(a),r.push(t),p(n),n=d(s,io)}function a(){i===ao.WaitingForClicksToStop&&B(r,(function(t){return t.isStopped()}))&&(i=ao.Finalized,e(r))}function s(){p(n),i===ao.WaitingForMoreClicks&&(i=ao.WaitingForClicksToStop,a())}return o(t),{tryAppend:function(t){return i===ao.WaitingForMoreClicks&&(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))<=oo)&&e.timeStamp-n.timeStamp<=io))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var uo="data-guance-action-name";function co(t,e){return lo(t,uo)||e&&lo(t,e)||go(t,e,ho)||go(t,e,vo)||""}function lo(t,e){var n;if(function(){void 0===po&&(po="closest"in HTMLElement.prototype);return po}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return yo(mo(n.getAttribute(e).trim()))}var fo,po,ho=[function(t,e){if(function(){void 0===fo&&(fo="labels"in HTMLInputElement.prototype);return fo}()){if("labels"in t&&t.labels&&t.labels.length>0)return Eo(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&kt(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&Eo(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 Eo(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=P(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=M(n,(function(t){return Boolean(t)})),(n=P(n,(function(t){return Eo(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 Eo(t.options[0],e)}],vo=[function(t,e){return Eo(t,e)}],_o=10;function go(t,e,n){for(var r=t,i=0;i<=_o&&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 yo(mo(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function mo(t){return t.replace(/\s+/g," ")}function yo(t){return t.length>100?Rt(t,100)+" [...]":t}function Eo(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 Pt()===Mt.IE&&r("script, style"),r("["+uo+"]"),e&&r("["+e+"]"),n}return t.textContent}}var bo,wo=[uo,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],So=[Io,function(t){if(t.id&&!Oo(t.id))return"#"+V(t.id)}],To=[Io,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(!Oo(n))return V(t.tagName)+"."+V(n)}},function(t){return V(t.tagName)}];function Co(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=Ro(r,So,xo,e,n);if(i)return i;n=Ro(r,To,No,e,n)||ko(Ao(r),n),r=r.parentElement}return n}}function Oo(t){return/[0-9]/.test(t)}function Io(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<wo.length;n++){var r;if(r=i(wo[n]))return r}function i(e){if(t.hasAttribute(e))return V(t.tagName)+"["+e+'="'+V(t.getAttribute(e))+'"]'}}function Ao(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=V(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function Ro(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a){var s=ko(a,i);if(n(t,s))return s}}}function xo(t,e){return 1===t.ownerDocument.body.querySelectorAll(e).length}function No(t,e){return 1===t.parentElement.querySelectorAll(function(){if(void 0===bo)try{document.querySelector(":scope"),bo=!0}catch{bo=!1}return bo}()?ko(":scope",e):e).length}function ko(t,e){return e?t+">"+e:t}function Lo(){var t=window.getSelection();return!t||t.isCollapsed}function Do(t){return t.target instanceof Element&&!1!==t.isPrimary}var Mo=3;function Po(t,e){if(function(t){if(U(t,(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e<t.length-(Mo-1);e+=1)if(t[e+Mo-1].event.timeStamp-t[e].event.timeStamp<=st)return!0;return!1}(t))return e.addFrustration(oe.RAGE_CLICK),U(t,Bo)&&e.addFrustration(oe.DEAD_CLICK),e.hasError()&&e.addFrustration(oe.ERROR_CLICK),{isRage:!0};var n=U(t,(function(t){return t.getUserActivity().selection}));return C(t,(function(t){t.hasError()&&t.addFrustration(oe.ERROR_CLICK),Bo(t)&&!n&&t.addFrustration(oe.DEAD_CLICK)})),{isRage:!1}}var Uo='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 Bo(t){return!(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)&&(e=t.event.target,n=Uo,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var Fo=10*st,Vo=5*ut;function Ho(t,e,n){var r,i=new Qt(Vo),o=new Je;t.subscribe(fn.SESSION_RENEWED,(function(){i.reset()})),t.subscribe(fn.VIEW_ENDED,p);var a,s,u,c,l,f=(a={onPointerDown:function(r){return function(t,e,n,r){var i,o,a,s=(i=r,o=t.actionNameAttribute,a=i.target.getBoundingClientRect(),{type:ie.CLICK,target:{width:Math.round(a.width),height:Math.round(a.height),selector:Co(i.target,o)},position:{x:Math.round(i.clientX-a.left),y:Math.round(i.clientY-a.top)},name:co(i.target,o)}),u=!1;return no(e,n,t,(function(t){u=t.hadActivity}),to),{clickActionBase:s,hadActivityOnPointerDown:function(){return u}}}(n,t,e,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var l=Wo(e,r,u,a,s);o(l);var f=no(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()}),Fo),d=f.stop,p=e.subscribe(fn.VIEW_ENDED,(function(t){l.stop(t.endClocks.timeStamp)})),h=i.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){p.unsubscribe(),d(),h.unsubscribe()}))}(n,t,e,i,o,h,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1,scroll:!1},l=[rn(window,ne.POINTER_DOWN,(function(t){Do(t)&&(s=Lo(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),rn(window,ne.SELECTION_CHANGE,(function(){s&&Lo()||(c.selection=!0)}),{capture:!0}),rn(window,ne.POINTER_UP,(function(t){if(Do(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),rn(window,ne.SCROLL,(function(){c.scroll=!0}),{capture:!0,passive:!0}),rn(window,ne.INPUT,(function(){c.input=!0}),{capture:!0})],{stop:function(){C(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){const 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 h(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=so(t,(function(t){!function(t,e){var n=Po(t,e),r=n.isRage;r?(C(t,(function(t){t.discard()})),e.stop(yt()),e.validate(P(t,(function(t){return t.event})))):(e.discard(),C(t,(function(t){t.validate()})))}(t,e)}))}}}var zo={ONGOING:0,STOPPED:1,FINALIZED:2};function Wo(t,e,n,r,i){var o,a=Y(),s=mt(),u=e.add(a,s.relative),c=Ji({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(x(t.action.ids)?Nt(t.action.ids,a):t.action.ids===a)}}),l=zo.ONGOING,f=[],d=new Je;function p(t){l===zo.ONGOING&&(o=t,l=zo.STOPPED,o?u.close(vt(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===zo.STOPPED||l===zo.FINALIZED},clone:function(){return Wo(t,e,n,r,i)},validate:function(e){if(p(),l===zo.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,h=n.longTaskCount,v=O({type:ie.CLICK,duration:o&&bt(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:h},events:Vt(e,[i]),event:i},r);t.notify(fn.AUTO_ACTION_COMPLETED,v),l=zo.FINALIZED}},discard:function(){p(),l=zo.FINALIZED}}}var $o=4e3,jo=500,Go=sr,Ko={ACTIVE:"active",PASSIVE:"passive",HIDDEN:"hidden",FROZEN:"frozen",TERMINATED:"terminated"};function Zo(t){void 0===t&&(t=jo);var e,n=new Qt(Go,$o);i(qo(),gt());var r=on(window,[ne.PAGE_SHOW,ne.FOCUS,ne.BLUR,ne.VISIBILITY_CHANGE,ne.RESUME,ne.FREEZE,ne.PAGE_HIDE],(function(t){i(function(t){if(t.type===ne.FREEZE)return Ko.FROZEN;if(t.type===ne.PAGE_HIDE)return t.persisted?Ko.FROZEN:Ko.TERMINATED;return qo()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=gt()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}const 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=bt(e,u.startTime);o.push({state:u.state,start:ht(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 qo(){return"hidden"===document.visibilityState?Ko.HIDDEN:document.hasFocus()?Ko.ACTIVE:Ko.PASSIVE}function Yo(t,e){var n=Qo(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:$t(ht(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:Qo(t)?void 0:t.context,rawRumEvent:R({action:{id:Y(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:ae.ACTION,view:{in_foreground:e.wasInPageStateAt(Ko.ACTIVE,t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:Qo(t)?{event:t.event,events:t.events}:{}}}function Qo(t){return t.type!==ie.CUSTOM}function Xo(t,e,n,r,i,o){var a=function(t,e,n,r){var i=a(t.rumEndpoint),o=i.batch;function a(i){var o=Jr({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:n,sessionExpireObservable:r});return{batch:new Xr(zr(i,t.batchBytesLimit,t.sendContentTypeByJson,e),o,t.messageBytesLimit,t.sendContentTypeByJson),flushController:o}}return{flushObservable:i.flushController.flushObservable,add:function(t){o.add(t)},upsert:function(t,e){o.upsert(t,e)}}}(t,r,i,o);e.subscribe(fn.RUM_EVENT_COLLECTED,(function(t){t.type===ae.VIEW?a.upsert(t,t.view.id):a.add(t)})),n.subscribe((function(t){a.add(t)}))}var Jo,ta={SYNTHETICS:"synthetics",USER:"user"},ea={"view.url":"string","view.referrer":"string"},na={context:"object"},ra={};function ia(t,e,r,i,o,a,s,u,c,l){ra[ae.VIEW]=ea,ra[ae.ERROR]=O({"error.message":"string","error.stack":"string","error.resource.url":"string"},na,ea),ra[ae.RESOURCE]=O({"resource.url":"string"},na,ea),ra[ae.ACTION]=O({"action.target.name":"string"},na,ea),ra[ae.LONG_TASK]=O({},na,ea);var f={};f[ae.ERROR]=yn(ae.ERROR,t.eventRateLimiterThreshold,l),f[ae.ACTION]=yn(ae.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(fn.RAW_RUM_EVENT_COLLECTED,(function(l){var d,p=l.startTime,h=l.rawRumEvent,v=l.savedCommonContext,_=l.customerContext,g=l.domainContext,m=o.findView(p),y=a.findUrl(p),E=r.findTrackedSession(h.type!==ae.VIEW?p:void 0);if(E&&m&&y){var b=s.findActionId(p),w=s.findAllActionId(p),S=v||c(),T={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(Et()-(Ot()+performance.now())),configuration:{session_sample_rate:dt(t.sessionSampleRate,3),session_replay_sample_rate:dt(t.sessionReplaySampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:ee,env:t.env||"",service:m.service||t.service||"browser",version:m.version||t.version||"",source:"browser",date:yt(),user:{id:i.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?ta.USER:ta.SYNTHETICS,id:E.id},view:{id:m.id,name:m.name,url:y.url,referrer:y.referrer,host:y.host,path:y.path,pathGroup:y.pathGroup,urlQuery:y.urlQuery},action:(d=h,-1!==[ae.ERROR,ae.RESOURCE,ae.LONG_TASK].indexOf(d.type)&&b?{id:b,ids:w}:void 0),display:u.get()},C=Bt(R(T,m,h)),O=R({},S.context,_);z(O)||(C.context=O),"has_replay"in C.session||(C.session.has_replay=S.hasReplay),"view"===C.type&&(C.session.sampled_for_replay=E.sessionReplayAllowed),z(S.user)||(C.user=R({is_signin:"T",is_login:!0},S.user)),function(t,e,r,i){if(e){var o=vn(t,ra[t.type],(function(t){return e(t,r)}));if(!1===o&&t.type!==ae.VIEW)return!1;!1===o&&n.warn("Can't dismiss view events using beforeSend!")}var a=!1;i[t.type]&&(a=i[t.type].isLimitReached());return!a}(C,t.beforeSend,g,f)&&(z(C.context)&&delete C.context,e.notify(fn.RUM_EVENT_COLLECTED,C))}}))}function oa(){return Jo||(Jo=new Je((function(t){var e=Z((function(){t.notify(aa())}),200).throttled;return rn(window,ne.RESIZE,e,{capture:!0,passive:!0}).stop}))),Jo}function aa(){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 sa=sr;var ua=sr;function ca(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}function la(t,n,r){var i=new Je;return function(t){var n=nn([e.error]).subscribe((function(e){t.notify({startClocks:mt(),message:e.message,stack:e.stack,source:Ge.CONSOLE,handling:le.HANDLED,handlingStack:e.handlingStack})}))}(i),function(t){Ne((function(e,n){t.notify(Ke({stackTrace:e,originalError:n,startClocks:mt(),nonErrorPrefix:fe.UNCAUGHT,source:Ge.SOURCE,handling:le.UNHANDLED}))}))}(i),function(t,e){var n=sn(0,[(an.cspViolation,an.intervention)]).subscribe((function(t){e.notify({startClocks:mt(),message:t.message,stack:t.stack,type:t.subtype,source:Ge.REPORT,handling:le.UNHANDLED})}))}(0,i),i.subscribe((function(e){t.notify(fn.RAW_ERROR_COLLECTED,{error:e})})),function(t,e){return t.subscribe(fn.RAW_ERROR_COLLECTED,(function(n){t.notify(fn.RAW_RUM_EVENT_COLLECTED,O({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:Y(),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:ae.ERROR,view:{in_foreground:e.wasInPageStateAt(Ko.ACTIVE,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=Ke({stackTrace:r instanceof Error?Ee(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:fe.PROVIDED,source:Ge.CUSTOM,handling:le.HANDLED});t.notify(fn.RAW_ERROR_COLLECTED,{customerContext:e.context,savedCommonContext:n,error:i})}}}(t,r)}var fa=10*ut;var da=10*ut;function pa(t,e,n,r){var i={},o=function(t,e){return{stop:t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(t){for(var n=0;n<t.length;n++){var r=t[n];"navigation"===r.entryType&&e({fetchStart:r.fetchStart,responseEnd:r.responseEnd,domComplete:r.domComplete,domContentLoaded:r.domContentLoadedEventEnd,domInteractive:r.domInteractive,loadEvent:r.loadEventEnd,loadEventEnd:r.loadEventEnd,loadEventStart:r.loadEventStart,domContentLoadedEventEnd:r.domContentLoadedEventEnd,domContentLoadedEventStart:r.domContentLoadedEventStart,firstByte:r.responseStart>=0&&r.responseStart<=gt()?r.responseStart:void 0})}})).unsubscribe}}(t,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})),a=function(t){var e;if(void 0===t&&(t=window),"hidden"===document.visibilityState)e=0;else{e=1/0;var n=on(t,[ne.PAGE_HIDE,ne.VISIBILITY_CHANGE],(function(t){t.type!==ne.PAGE_HIDE&&"hidden"!==document.visibilityState||(e=t.timeStamp,n())}),{capture:!0}).stop}return{geTimeStamp(){return e},stop:function(){n&&n()}}}(),s=o.stop,u=function(t,e,n){return{stop:t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var r=kt(t,(function(t){return"paint"===t.entryType&&"first-contentful-paint"===t.name&&t.startTime<e.geTimeStamp()&&t.startTime<fa}));r&&n(r.startTime)})).unsubscribe}}(t,a,(function(t){i.firstContentfulPaint=t,r()})),c=u.stop,l=function(t,e,n,r,i){var o=1/0,a=on(r,[ne.POINTER_DOWN,ne.KEY_DOWN],(function(t){o=t.timeStamp}),{capture:!0,once:!0}).stop,s=0,u=t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var r,a=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,(function(t){return"largest-contentful-paint"===t.entryType&&t.startTime<o&&t.startTime<n.geTimeStamp()&&t.startTime<da&&t.size>s}));a&&(a.element&&(r=Co(a.element,e.actionNameAttribute)),i({value:a.startTime,targetSelector:r}),s=a.size)})).unsubscribe;return{stop:function(){a(),u()}}}(t,e,a,window,(function(t){i.largestContentfulPaint=t,r()})),f=l.stop,d=function(t,e,n,r){return{stop:t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var i=kt(t,(function(t){return"first-input"===t.entryType&&t.startTime<n.geTimeStamp()}));if(i){var o,a=bt(i.startTime,i.processingStart);i.target&&qn(i.target)&&(o=Co(i.target,e.actionNameAttribute)),r({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}})).unsubscribe}}(t,e,a,(function(t){i.firstInput=t,r()})),p=d.stop;return{stop:function(){s(),c(),f(),p(),a.stop()},initialViewMetrics:i}}var ha=st;function va(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=ha);return new Je((function(t){function n(){var e,n,r,i;t.notify((e=nr(),n=aa().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=Z(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(a(r.throttled));o.observe(i);var s=rn(window,ne.SCROLL,r.throttled,{passive:!0});return function(){r.cancel(),o.unobserve(i),s.stop()}}}))}());var i=0,o=0,s=0,u=r.subscribe((function(t){var r=t.scrollDepth,a=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=gt();s=bt(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:a,maxScrollHeight:o,maxScrollHeightTime:s})}));return{stop:function(){return u.unsubscribe()}}}function _a(t,e,n,r,i,o){var a=r===se.INITIAL_LOAD,s=!0,u=[];function c(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}var l=no(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(bt(i.timeStamp,t.end)),c())})).stop;return{setLoadEvent:function(t){a&&(a=!1,u.push(t),c())},stop:function(){l(),u.length>0&&o(Math.max.apply(Math,u))}}}function ga(t,e,n){if(!Ki("layout-shift"))return{stop:ot};var r,i=0;n({value:0});var o=function(){var t,e,n=0,r=0;return{update:function(i){var o;return void 0===t||i.startTime-e>=ba||i.startTime-t>=5*Ea?(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}}}}();return{stop:t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(t=>{for(var a of t)if("layout-shift"===a.entryType&&!a.hadRecentInput){var s=o.update(a),u=s.cumulatedValue;if(s.isMaxValue){var c=ma(a.sources);r=c?new WeakRef(c):void 0}if(u>i){i=u;c=r&&r.deref();n({value:dt(i,4),targetSelector:c&&Co(c,e.actionNameAttribute)})}}})).unsubscribe}}function ma(t){if(t){var e=kt(t,(function(t){return!!t.node&&qn(t.node)}));return e&&e.node}}var ya,Ea=5*st,ba=st;var wa=0,Sa=1/0,Ta=0;var Ca=function(){return ya?wa:window.performance.interactionCount||0},Oa=10,Ia=1*ut;function Aa(t,e,n,r){if(!(Ki("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ot,stop:ot};var i=function(t){"interactionCount"in performance||ya||(ya=new window.PerformanceObserver(a((function(t){t.getEntries().forEach((function(t){const e=t;e.interactionId&&(Sa=Math.min(Sa,e.interactionId),Ta=Math.max(Ta,e.interactionId),wa=(Ta-Sa)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===se.INITIAL_LOAD?0:Ca(),n={stopped:!1};function r(){return Ca()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),o=i.getViewInteractionCount,s=i.stopViewInteractionCount;let u=1/0;var c,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(Oa)}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<Oa||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(o),f=-1;return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,Ia),targetSelector:c}:o()?{value:0}:void 0},setViewEnd:function(t){u=t,s()},stop:r.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(n){for(var r of n)("event"===r.entryType||"first-input"===r.entryType)&&r.interactionId&&r.startTime>=e&&r.startTime<=u&&l.process(r);var i=l.estimateP98Interaction();i&&i.duration!==f&&(f=i.duration,c=i.target&&qn(i.target)?Co(i.target,t.actionNameAttribute):void 0)})).unsubscribe}}var Ra=5*ut;var xa=3e3,Na=5*ut,ka=5*ut;function La(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=Y(),p=new Je,_={},g=0,m=I(r),y=!0;a&&(u=a.name,c=a.service,l=a.version);var E={id:f,name:u,startClocks:o,service:c,version:l};t.notify(fn.BEFORE_VIEW_CREATED,E),t.notify(fn.VIEW_CREATED,E);var b=Z(B,xa,{leading:!1}),w=b.throttled,S=b.cancel,T=function(t,e,n,r,i,o){var a={},s=_a(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=va(0,o,(function(t){a.scroll=t})).stop,f=ga(t,n,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=Aa(n,o.relative,i,t),p=d.stop,h=d.getInteractionToNextPaint;return{stop:function(){u(),f(),l()},stopINPTracking:p,setLoadEvent:c,setViewEnd:d.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=h(),a}}}(t,e,n,w,i,o),C=T.setLoadEvent,O=T.stop,A=T.getCommonViewMetrics,R=T.stopINPTracking,x=T.setViewEnd,N=i===se.INITIAL_LOAD?pa(t,n,C,w):{stop:ot,initialViewMetrics:{}},k=N.stop,L=N.initialViewMetrics,D=function(t,e,n){var r=Ji({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{scheduleStop:function(){d(r.stop,Ra)},eventCounts:r.eventCounts}}(t,f,w),M=D.scheduleStop,P=D.eventCounts,U=h(B,Na);function B(){S(),g+=1;var e=void 0===s?yt():s.timeStamp;t.notify(fn.VIEW_UPDATED,{customTimings:_,documentVersion:g,id:f,name:u,service:c,version:l,loadingType:i,location:m,startClocks:o,commonViewMetrics:A(),initialViewMetrics:L,duration:bt(o.timeStamp,e),isActive:void 0===s,sessionIsActive:y,eventCounts:P})}B();var F={name:u,service:c,version:l,stopObservable:p,end:function(e){s||(s=Vt(e&&e.endClocks,mt()),y=Vt(e&&e.sessionIsActive,!0),t.notify(fn.VIEW_ENDED,{endClocks:s}),t.notify(fn.AFTER_VIEW_ENDED,{endClocks:s}),v(U),x(s.relative),O(),B(),d((function(){F.stop()}),ka))},stop:function(){k(),M(),R(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<lt}(e)?e:bt(o.timeStamp,e);_[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,w()}}};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(se.INITIAL_LOAD,wt(),a);return e.subscribe(fn.SESSION_RENEWED,(function(){l=u(se.ROUTE_CHANGE,void 0,{name:l.name,service:l.service,version:l.version})})),e.subscribe(fn.SESSION_EXPIRED,(function(){l.end({sessionIsActive:!1})})),e.subscribe(fn.PAGE_EXITED,(function(t){t.reason===Kn.UNLOADING&&l.end()})),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||!zt(n.hash)&&Wt(n.hash)!==Wt(e.hash))return l.end(),void(l=u(se.ROUTE_CHANGE))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=yt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(se.ROUTE_CHANGE,e,t)},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function Da(t,e,n,r,i,o,a,s){return t.subscribe(fn.VIEW_UPDATED,(function(n){t.notify(fn.RAW_RUM_EVENT_COLLECTED,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:ae.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:At(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_target_selector:At(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:ht(At(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:ht(At(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:ht(At(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:ht(At(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:ht(At(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:ht(At(t.initialViewMetrics,"firstInput.delay")),first_input_time:ht(At(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:At(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:ht(At(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:At(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:ht(At(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:At(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:ht(At(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:$t(ht(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:ht(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:ht(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!i||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};z(t.customTimings)||(a.view.custom_timings=(s=t.customTimings,u=ht,c={},C(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=R(a,{view:Ma(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),La(n,t,r,e,i,!e.trackViewsManually,s)}function Ma(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=ht(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return G(r)&&G(e)&&r!==e&&(c.tti=ht(r-e)),G(i)&&G(e)&&i!==e&&(c.dom_ready=ht(i-e)),G(a)&&G(e)&&a!==e&&(c.load=ht(a-e)),G(s)&&G(u)&&s!==u&&(c.resource_load_time=ht(s-u)),G(o)&&G(r)&&o!==r&&(c.dom=ht(o-r)),c}}function Pa(){this.buffer=new Uint8Array(8),Ua().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Ua(){return window.crypto||window.msCrypto}function Ba(t){this._spanId=new Pa,this._traceId=new Pa,this._traceSampled=t}function Fa(){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 Va(t,e,n){this._spanId=Fa(),this._traceId=Fa(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=X(e).getParse(),this._traceSampled=n}function Ha(t,e){this._traceId=new Pa,this._spanId=new Pa,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function za(t,e){this._traceId=new Pa,this._spanId=new Pa,this._traceSampled=e}function Wa(t,e){this._traceId=new Pa,this._spanId=new Pa,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function $a(t,e){this._traceId=new Pa,this._spanId=new Pa,this._traceSampled=t,this.isHexTraceId=e}function ja(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Ga(t,e,n,r){if(n.findTrackedSession()){var i=kt(t.allowedTracingUrls,(function(t){return F([t.match],e.url,!0)}));if(i){var o,a=!G(t.tracingSampleRate)||ft(t.tracingSampleRate);switch(i.traceType){case ce.DDTRACE:o=new Ba(a);break;case ce.SKYWALKING_V3:o=new Va(t,e.url,a);break;case ce.ZIPKIN_MULTI_HEADER:o=new Wa(t,a);break;case ce.JAEGER:o=new Ha(t,a);break;case ce.W3C_TRACEPARENT:o=new $a(a);break;case ce.W3C_TRACEPARENT_64:o=new $a(a,!0);break;case ce.ZIPKIN_SINGLE_HEADER:o=new za(t,a)}if(o&&o.isTracingSupported()){e.traceId=o.getTraceId(),e.spanId=o.getSpanId(),e.traceSampled=a;var s=o.makeTracingHeaders();if(t.injectTraceHeader){var u=t.injectTraceHeader(I(e));"object"===et(u)&&C(u,(function(t,e){"string"===et(t)&&(s[e]=t)}))}r(s)}}}}Pa.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(){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]}},Ba.prototype={isTracingSupported:function(){return void 0!==Ua()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return 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()}}},Va.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getSkyWalkingSw8:function(){try{var t=String(q(this._traceId)),e=String(q(this._spanId)),n=String(q(this._applicationId+"_rum_"+this.env)),r=String(q(this._version)),i=String(q(window.location.href)),o=String(q(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},Ha.prototype={isTracingSupported:function(){return void 0!==Ua()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return 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()}}},za.prototype={isTracingSupported:function(){return void 0!==Ua()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this._traceId.toPaddedHexadecimalString()},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},Wa.prototype={isTracingSupported:function(){return void 0!==Ua()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return 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"}}},$a.prototype={isTracingSupported:function(){return void 0!==Ua()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return 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?O(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var Ka=1;function Za(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:ja,traceFetch:function(n){return Ga(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=I(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):x(n.init.headers)?C(n.init.headers,(function(t){e.push(t)})):n.init.headers&&C(n.init.headers,(function(t,n){e.push([n,t])}));var r={};C(e.concat(W(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),C(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Ga(t,n,e,(function(t){C(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=zn().subscribe((function(r){var i=r;if(Hi(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=qa(),t.notify(fn.REQUEST_STARTED,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(fn.REQUEST_COMPLETED,{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:ue.XHR,url:i.url,xhr:i.xhr})}}))}(t,e,r),function(t,e,n){var r=Un().subscribe((function(r){var i=r;if(Hi(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=qa(),t.notify(fn.REQUEST_STARTED,{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 s(){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;C(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(a((function(e){e.done?s():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?s():t())})),a((function(t){e(t)})))}()}(n.body,(function(){e(bt(t.startClocks.timeStamp,yt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(bt(t.startClocks.timeStamp,yt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(fn.REQUEST_COMPLETED,{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:ue.FETCH,url:i.url,response:i.response,init:i.init,input:i.input})}))}}))}(t,e,r)}function qa(){var t=Ka;return Ka+=1,t}var Ya=new fi;function Qa(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=M(e,(function(t){return!Ya.has(t)}));return n=M(n,(function(t){return Ui(t)})),1===(n=M(n,(function(e){return n=e,r=t.startClocks.relative,i=Xa({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Xa(n)<=Tt(i,o);var n,r,i,o}))).length?(Ya.add(n[0]),n[0].toJSON()):void 0}}}function Xa(t){return Tt(t.startTime,t.duration)}function Ja(t,e,n,r){t.subscribe(fn.REQUEST_COMPLETED,(function(i){var o=function(t,e,n,r){var i=Qa(t),o=i?St(i.startTime):t.startClocks,a=es(e,n,o),s=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:Y()}}}(t);if(!a&&!s)return;var u=t.type===ue.XHR?re.XHR:re.FETCH,c=i?ns(i):void 0,l=function(t,e,n){const r=t.findAll(e.relative,n);var i;r&&(i=U(r,(function(t){return t.state===Ko.FROZEN})));return i?void 0:ht(n)}(r,o,t.duration),f=rs(r,o,Vt(i&&i.duration,t.duration)),d=X(t.url).getParse(),p=R({date:o.timeStamp,resource:{id:Y,type:u,duration:l,method:t.method,status:t.status,statusGroup:it(t.status),url:$i(t.url)?ji(t.url):t.url,urlHost:d.Host,urlPath:d.Path,urlPathGroup:Q(d.Path),urlQuery:J(t.url)},type:ae.RESOURCE},s,c,f);return{startTime:o.relative,rawRumEvent:p,domainContext:{performanceEntry:i,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(i,e,n,r);o&&t.notify(fn.RAW_RUM_EVENT_COLLECTED,o)})),t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(i){for(var o=0;o<i.length;o++){var a=i[o];if("resource"===a.entryType&&("xmlhttprequest"!==(u=a).initiatorType&&"fetch"!==u.initiatorType)&&!Mi(a.name,e.resourceUrlLimit)){var s=ts(a,e,n,r);s&&t.notify(fn.RAW_RUM_EVENT_COLLECTED,s)}}var u}))}function ts(t,e,n,r){var i=St(t.startTime),o=es(e,n,i),a=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t);if(o||a){var s=ki(t),u=ns(t),c=X(t.name).getParse(),l="";0!==t.responseStatus?l=t.responseStatus:!function(t){return t.encodedBodySize>0&&t.transferSize>0&&t.transferSize<t.encodedBodySize||null}(t)?function(t){return!(t.transferSize>0)&&(t.decodedBodySize>0||t.duration<30)}(t)&&(l=200):l=304;var f=rs(r,i,t.duration),d=R({date:i.timeStamp,resource:{id:Y(),type:s,url:t.name,urlHost:c.Host,urlPath:c.Path,urlPathGroup:Q(c.Path),urlQuery:J(t.name),method:"GET",status:l,statusGroup:it(l)},type:ae.RESOURCE},a,u,f);return{startTime:i.relative,rawRumEvent:d,domainContext:{performanceEntry:t}}}}function es(t,e,n){return e.findTrackedSession(n.relative)}function ns(t){return{resource:R({},{duration:(e=t,0===e.duration&&e.startTime<e.responseEnd?pt(e.responseEnd-e.startTime):pt(e.duration))},Vi(t),Pi(t))};var e}function rs(t,e,n){return{_gc:{page_states:t.findAll(e.relative,n),page_was_discarded:String(document.wasDiscarded)}}}var is={sdkVersion:"3.1.17",sdkName:"df_web_rum_sdk"};function os(t){if(t.applicationId){var e=function(t){return t.site||t.datakitOrigin||t.datakitUrl?!(t.site&&!t.clientToken&&(n.error("clientToken is not configured, no RUM data will be collected."),1)):(n.error("datakitOrigin or site is not configured, no RUM data will be collected."),!1)}(t);if(e)if(void 0===t.sessionReplaySampleRate||Lt(t.sessionReplaySampleRate)){var r=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&n.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!x(t.allowedTracingUrls))return void n.error("Allowed Tracing URLs should be an array");var e=[];return C(t.allowedTracingUrls,(function(r){var i;xt(r)?e.push({match:r,traceType:Vt(t.traceType,ce.DDTRACE)}):"object"===et(i=r)&&xt(i.match)&&$(i.traceType)?e.push(r):n.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)})),e}if(void 0!==t.allowedTracingOrigins){if(!x(t.allowedTracingOrigins))return void n.error("Allowed Tracing Origins should be an array");e=[];return C(t.allowedTracingOrigins,(function(n){var r=as(n,Vt(t.traceType,ce.DDTRACE));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!x(t.allowedDDTracingOrigins))return void n.error("Allowed Tracing Origins should be an array");e=[];return C(t.allowedDDTracingOrigins,(function(n){var r=as(n,Vt(t.traceType,ce.DDTRACE));r&&e.push(r)})),e}return[]}(t);if(r)if(void 0===t.tracingSampleRate||Lt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||x(t.excludedActivityUrls)){var i=Mn(t);if(i){var o,a,s=!!Vt(t.trackUserInteractions,t.trackInteractions);return O({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Vt(t.sessionReplaySampleRate,100),tracingSampleRate:t.tracingSampleRate,allowedTracingUrls:r,injectTraceHeader:t.injectTraceHeader&&c(t.injectTraceHeader,"injectTraceHeader threw an error:"),excludedActivityUrls:Vt(t.excludedActivityUrls,[]),trackUserInteractions:s,trackViewsManually:!!t.trackViewsManually,traceType:Vt(t.traceType,ce.DDTRACE),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:(o=Dn,a=t.defaultPrivacyLevel,U(D(o),(function(t){return o[t]===a}))?t.defaultPrivacyLevel:Dn.MASK_USER_INPUT)},i,is)}}else n.error("Excluded Activity Urls should be an array");else n.error("Tracing Sample Rate should be a number between 0 and 100")}else n.error("Premium Sample Rate should be a number between 0 and 100")}else n.error("Application ID is not configured, no RUM data will be collected.")}function as(t,e){var r;if("string"==typeof t?r=t:t instanceof RegExp?r=function(e){return t.test(bn(e))}:"function"==typeof t&&(r=function(e){return t(bn(e))}),void 0!==r)return{match:r,traceType:e};n.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}var ss={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},us={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},cs={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},ls={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},fs={Play:0,Pause:1},ds={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Dn.ALLOW,MASK:Dn.MASK,MASK_USER_INPUT:Dn.MASK_USER_INPUT},ps="data-gc-privacy",hs="allow",vs="mask",_s="mask-user-input",gs="hidden",ms="gc-privacy-allow",ys="gc-privacy-mask",Es="gc-privacy-mask-user-input",bs="gc-privacy-hidden",ws="***",Ss="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Ts={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Cs(t,e,n){if(n&&n.has(t))return n.get(t);var r=Jn(t),i=r?Cs(r,e):e,o=Os(Is(t),i);return n&&n.set(t,o),o}function Os(t,e){switch(e){case ds.HIDDEN:case ds.IGNORE:return e}switch(t){case ds.ALLOW:case ds.MASK:case ds.MASK_USER_INPUT:case ds.HIDDEN:case ds.IGNORE:return t;default:return e}}function Is(t){if(qn(t)){var e=t.getAttribute(ps);if("BASE"===t.tagName)return ds.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return ds.MASK;if("hidden"===n.type)return ds.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return ds.MASK}return e===gs||t.classList.contains(bs)?ds.HIDDEN:e===vs||t.classList.contains(ys)?ds.MASK:e===_s||t.classList.contains(Es)?ds.MASK_USER_INPUT:e===hs||t.classList.contains(ms)?ds.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)?ds.IGNORE:void 0}}function As(t,e){switch(e){case ds.MASK:case ds.HIDDEN:case ds.IGNORE:return!0;case ds.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(t)?Rs(t.parentNode):Rs(t);default:return!1}}function Rs(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!!Ts[e.tagName]}var xs=function(t){return t.replace(/\S/g,"x")};function Ns(t,e,n){var r=t.parentElement&&t.parentElement.tagName,i=t.textContent||"";if(!e||i.trim()){var o=n;if("SCRIPT"===r)i=ws;else if(o===ds.HIDDEN)i=ws;else if(As(t,o))if("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r){if(!i.trim())return}else i="OPTION"===r?ws:xs(i);return i}}var ks=new WeakMap;function Ls(t){return ks.has(t)}function Ds(t){return ks.get(t)}function Ms(t,e){var n=t.tagName,r=t.value;if(As(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i||"range"===i))return r;if(!r||"OPTION"===n)return;return ws}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Ps=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Us=/^[A-Za-z]+:|^\/\//,Bs=/^data:.*,/i;function Fs(t,e){return t.replace(Ps,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Us.test(s)||Bs.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(${u}${function(t,e){try{return wn(t,e).href}catch(e){return t}}(s,e)}${u})`}))}function Vs(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch{}return e?Fs(((n=Array.from(e,Pt()===Mt.SAFARI?zs:Hs).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 Hs(t){return function(t){return"styleSheet"in t}(t)&&Vs(t.styleSheet)||t.cssText}function zs(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){const e=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(e,"$1\\$2")}return Hs(t)}function Ws(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 $s(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var js=/^[^ \t\n\r\u000c]+/,Gs=/^[, \t\n\r\u000c]+/;var Ks={INITIAL_FULL_SNAPSHOT:0,SUBSEQUENT_FULL_SNAPSHOT:1,MUTATION:2};function Zs(t,e,n){return qs(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function qs(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:us.Document,childNodes:Ys(t,e),adoptedStyleSheets:Ws(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=Qn(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:us.DocumentFragment,childNodes:Ys(t,e),isShadowRoot:n,adoptedStyleSheets:n?Ws(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:us.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=tu(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=Os(Is(t),e.parentNodePrivacyLevel);var o;if(i===ds.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:us.Element,tagName:n,attributes:{rr_width:s+"px",rr_height:u+"px",[ps]:gs},childNodes:[],isSVG:r}}if(i===ds.IGNORE)return;var c=function(t,e,n){if(e===ds.HIDDEN)return{};for(var r={},i=tu(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=Qs(t,e,s,n.configuration);null!==u&&(r[s]=eu(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=Ms(t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===ds.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=Vs(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=Vs(t.sheet))&&(r._cssText=d)}var p,h,v=t;"input"!==i||"radio"!==v.type&&"checkbox"!==v.type||(e===ds.ALLOW?r.checked=!!v.checked:As(v,e)&&delete r.checked);if("audio"===i||"video"===i){var _=t;r.rr_mediaState=_.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case Ks.INITIAL_FULL_SNAPSHOT:p=Math.round(t.scrollTop),h=Math.round(t.scrollLeft),(p||h)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:h});break;case Ks.SUBSEQUENT_FULL_SNAPSHOT:if(g.elementsScrollPositions.has(t)){const e=g.elementsScrollPositions.get(t);p=e.scrollTop,h=e.scrollLeft}}h&&(r.rr_scrollLeft=h);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(function(t){return t.childNodes.length>0||Yn(t)}(t)&&"style"!==n){l=Ys(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:O({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:us.Element,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=Ns(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:us.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:us.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var r=Ds(t)||Xs++,i=n;return i.id=r,function(t,e){ks.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function Ys(t,e){var n=[];return Xn(t,(function(t){var r=qs(t,e);r&&n.push(r)})),n}function Qs(t,e,n,r){if(e===ds.HIDDEN)return null;var i=t.getAttribute(n);if(e===ds.MASK&&n!==ps&&!wo.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return ws}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return Ss;if("onerror"===n)return null}if("A"===o&&"href"===n)return ws;if(i&&Ht(n,"data-"))return ws;if("IFRAME"===o&&"srcdoc"===n)return ws}return i&&"string"==typeof i&&$i(i)?ji(i):i}var Xs=1;var Js=/[^a-z1-6-_]/;function tu(t){var e=(t+"").toLowerCase().trim();return Js.test(e)?"div":e}function eu(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?$s(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(Gs),!(n>=e.length);){var o=r(js);if(","===o.slice(-1))o=$s(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=$s(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?Fs(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?$s(t,r):r:$s(t,r):r;var i}function nu(t){return Boolean(t.changedTouches)}function ru(t,e){return{data:O({source:t},e),type:ss.IncrementalSnapshot,timestamp:yt()}}function iu(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}}var ou=100,au=16;function su(t){var e=ot,n=[];function r(){e(),t(n),n=[]}var i=Z(r,au,{leading:!1}),o=i.throttled,s=i.cancel;return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback){var n=window.requestIdleCallback(a(t),e);return function(){return window.cancelIdleCallback(n)}}n=window.requestAnimationFrame(a(t));return function(){return window.cancelAnimationFrame(n)}}(o,{timeout:ou})),Array.prototype.push.apply(n,t)},flush:r,stop:function(){e(),s()}}}function uu(t,e,n,r){var i=Qi();if(!i)return{stop:ot,flush:ot};var o=su((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){cu(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Ls(e)&&!Qn(e))return!1;e=Jn(e)}return!0}(t.target)&&Cs(t.target,n.defaultPrivacyLevel,i)!==ds.HIDDEN})),a=function(t,e,n,r){var i=new Set,o=new Map;for(var a of t)a.addedNodes.forEach((function(t){i.add(t)})),a.removedNodes.forEach((function(t){i.has(t)||o.set(t,a.target),i.delete(t)}));var s=Array.from(i);u=s,u.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 u;var c=new Set,l=[];for(var f of s)if(!_(f)){var d=Cs(f.parentNode,e.defaultPrivacyLevel,r);if(d!==ds.HIDDEN&&d!==ds.IGNORE){var p=qs(f,{serializedNodeIds:c,parentNodePrivacyLevel:d,serializationContext:{status:Ks.MUTATION,shadowRootsController:n},configuration:e});if(p){var h=Jn(f);l.push({nextId:g(f),parentId:Ds(h),node:p})}}}var v=[];return o.forEach((function(t,e){Ls(e)&&v.push({parentId:Ds(t),id:Ds(e)})})),{adds:l,removes:v,serializedNodeIds:c,hasBeenSerialized:_};function _(t){return Ls(t)&&c.has(Ds(t))}function g(t){for(var e=t.nextSibling;e;){if(Ls(e))return Ds(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 Ls(t)&&c.has(Ds(t))}var f=function(t,e,n){var r=[],i=new Set,o=t.filter((function(t){return!i.has(t.target)&&(i.add(t.target),!0)}));for(var a of o){if(a.target.textContent!==a.oldValue){var s=Cs(Jn(a.target),e.defaultPrivacyLevel,n);s!==ds.HIDDEN&&s!==ds.IGNORE&&r.push({id:Ds(a.target),value:Vt(Ns(a.target,!1,s))})}}return r}(o.filter((function(t){return"characterData"===t.type&&!l(t.target)})),n,i),d=function(t,e,n){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;for(var s of o){if(s.target.getAttribute(s.attributeName)!==s.oldValue){var u,c=Cs(s.target,e.defaultPrivacyLevel,n),l=Qs(s.target,c,s.attributeName,e);if("value"===s.attributeName){var f=Ms(s.target,c);if(void 0===f)continue;u=f}else u="string"==typeof l?l:null;var d=a.get(s.target);d||(d={id:Ds(s.target),attributes:{}},r.push(d),a.set(s.target,d)),d.attributes[s.attributeName]=u}}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(s.takeRecords()),t,e,n)})),s=new i(a(o.addMutations));return s.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){s.disconnect(),o.stop()},flush:function(){o.flush()}}}function cu(t,e){Yn(t)&&e(t.shadowRoot),Xn(t,(function(t){return cu(t,e)}))}var lu=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},fu=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}},du=50,pu=100,hu=200,vu=new WeakMap;let _u=1;function gu(t){return vu.has(t)||vu.set(t,_u++),vu.get(t)}function mu(t){var e,n,r,i,o,a,s,u,c,l=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,uu(e,n,r,document)),f=function(t){var e=Z((function(e){var n=wu(e);if(Ls(n)){var r=Eu(e);if(!r)return;var i={id:Ds(n),timeOffset:0,x:r.x,y:r.y};t([i],nu(e)?cs.TouchMove:cs.MouseMove)}}),du,{trailing:!1}),n=e.cancel,r=e.throttled,i=on(document,[ne.MOUSE_MOVE,ne.TOUCH_MOVE],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb),d=function(t,e){var n=function(n){var r=wu(n);if(Cs(r,e)!==ds.HIDDEN&&Ls(r)){var i,o=Ds(r),a=yu[n.type];if(a!==ls.Blur&&a!==ls.Focus){var s=Eu(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=O({id:gu(n)},ru(cs.MouseInteraction,i));t(u)}};return on(document,Object.keys(yu),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration.defaultPrivacyLevel),p=function(t,e,n){var r=Z((function(r){var i=wu(r);if(i&&Cs(i,e)!==ds.HIDDEN&&Ls(i)){var o=Ds(i),a=i===document?{scrollTop:nr(),scrollLeft:er()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),pu),i=r.cancel,o=r.throttled,a=rn(document,ne.SCROLL,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration.defaultPrivacyLevel,t.elementsScrollPositions),h=function(t){return oa().subscribe(t).unsubscribe}(t.viewportResizeCb),v=bu(t.inputCb,t.configuration.defaultPrivacyLevel),_=(i=t.mediaInteractionCb,o=t.configuration.defaultPrivacyLevel,a=function(t){var e=wu(t);e&&Cs(e,o)!==ds.HIDDEN&&Ls(e)&&i({id:Ds(e),type:t.type===ne.PLAY?fs.Play:fs.Pause})},on(document,[ne.PLAY,ne.PAUSE],a,{capture:!0,passive:!0}).stop),g=function(t){function e(t,e){t&&Ls(t.ownerNode)&&e(Ds(t.ownerNode))}var n=[pe(CSSStyleSheet.prototype,"insertRule",{before:function(n,r){e(this,(function(e){return t({id:e,adds:[{rule:n,index:r}]})}))}}),pe(CSSStyleSheet.prototype,"deleteRule",{before:function(n){e(this,(function(e){return t({id:e,removes:[{index:n}]})}))}})];"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(r){n.push(pe(r.prototype,"insertRule",{before:function(n,r){var i=this;e(this.parentStyleSheet,(function(e){var o=iu(i);o&&(o.push(r||0),t({id:e,adds:[{rule:n,index:o}]}))}))}}),pe(r.prototype,"deleteRule",{before:function(n){var r=this;e(this.parentStyleSheet,(function(e){var i=iu(r);i&&(i.push(n),t({id:e,removes:[{index:i}]}))}))}}))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb),m=(s=t.focusCb,on(window,[ne.FOCUS,ne.BLUR],(function(){s({has_focus:document.hasFocus()})})).stop),y=function(t){if(!window.visualViewport)return ot;var e=Z((function(){t(fu())}),hu,{trailing:!1}),n=on(window.visualViewport,[ne.RESIZE,ne.SCROLL],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb),E=(u=t.lifeCycle,c=t.frustrationCb,u.subscribe(fn.RAW_RUM_EVENT_COLLECTED,(function(t){t.rawRumEvent.type===ae.ACTION&&t.rawRumEvent.action.type===ie.CLICK&&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&&c({timestamp:t.rawRumEvent.date,type:ss.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return gu(t)}))}})})).unsubscribe);return{flush:function(){l.flush()},stop:function(){l.stop(),f(),d(),p(),h(),v(),_(),g(),m(),y(),E()}}}var yu={[ne.POINTER_UP]:ls.MouseUp,[ne.MOUSE_DOWN]:ls.MouseDown,[ne.CLICK]:ls.Click,[ne.CONTEXT_MENU]:ls.ContextMenu,[ne.DBL_CLICK]:ls.DblClick,[ne.FOCUS]:ls.Focus,[ne.BLUR]:ls.Blur,[ne.TOUCH_START]:ls.TouchStart,[ne.TOUCH_END]:ls.TouchEnd};function Eu(t){var e=nu(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=lu(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function bu(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=on(n,o?[ne.CHANGE]:[ne.INPUT,ne.CHANGE],(function(t){var e=wu(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&u(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=ot;else{const t=[he(HTMLInputElement.prototype,"value",u),he(HTMLInputElement.prototype,"checked",u),he(HTMLSelectElement.prototype,"value",u),he(HTMLTextAreaElement.prototype,"value",u),he(HTMLSelectElement.prototype,"selectedIndex",u)];r=function(){t.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function u(t){var n=Cs(t,e);if(n===ds.HIDDEN)return;var r=t.type;let i;if("radio"===r||"checkbox"===r){if(As(t,n))return;i={isChecked:t.checked}}else{var o=Ms(t,n);if(void 0===o)return;i={text:o}}c(t,i);var a,s,u=t.name;"radio"===r&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'+V(u)+'"]'),s=function(e){e!==t&&c(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}function c(e,n){if(Ls(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(O({id:Ds(e)},n)))}}}function wu(t){return!0===t.composed&&Yn(t.target)?t.composedPath()[0]:t.target}var Su=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=uu(n,t,o,e),s=a.flush,u=a.stop,c=bu(r,t.defaultPrivacyLevel,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};function Tu(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(ru(cs.Mutation,t))},o=function(t){e(ru(cs.Input,t))},a=Su(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=yt()),void 0===i&&(i={status:Ks.INITIAL_FULL_SNAPSHOT,elementsScrollPositions:r,shadowRootsController:a});var o=aa(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:ss.Meta,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:ss.Focus,timestamp:n}),e({data:{node:Zs(document,t.configuration,i),initialOffset:{left:er(),top:nr()}},type:ss.FullSnapshot,timestamp:n}),window.visualViewport&&e({data:fu(),type:ss.VisualViewport,timestamp:n})};s();var u=mu({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(ru(cs.MediaInteraction,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(ru(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(ru(cs.Scroll,t))},styleSheetCb:function(t){e(ru(cs.StyleSheetRule,t))},viewportResizeCb:function(t){e(ru(cs.ViewportResize,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:ss.Focus,timestamp:yt()})},visualViewportResizeCb:function(t){e({data:t,type:ss.VisualViewport,timestamp:yt()})},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:Ks.SUBSEQUENT_FULL_SNAPSHOT,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function Cu(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),Ou(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function Ou(t,e,n){void 0===n&&(n=""),C(W(t),(function(t){var r=t[1],i=t[0];"object"==typeof r&&null!==r?Ou(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var Iu,Au=10;function Ru(t){return xu(t).segments_count}function xu(t){var e;return Iu||(Iu=new Map),Iu.has(t)?e=Iu.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},Iu.set(t,e),Iu.size>Au&&function(){if(!Iu)return;if(Iu.keys)Iu.delete(Iu.keys().next().value);else{var t=!0;Iu.forEach((function(e,n){t&&(Iu.delete(n),t=!1)}))}}()),e}function Nu(t,e,n){this.encoder=t;var r=e.view.id;this.metadata=O({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:Ru(r),source:"browser"},e),function(t){xu(t).segments_count+=1}(r)}Nu.prototype.addRecord=function(t,e){this.metadata.start=Math.min(this.metadata.start,t.timestamp),this.metadata.end=Math.max(this.metadata.end,t.timestamp),this.metadata.records_count+=1,this.metadata.has_full_snapshot||(this.metadata.has_full_snapshot=t.type===ss.FullSnapshot),xu(this.metadata.view.id).records_count+=1;const n=1===this.metadata.records_count?'{"records":[':",";this.encoder.write(n+JSON.stringify(t),e)},Nu.prototype.flush=function(t){if(0===this.metadata.records_count)throw new Error("Empty segment flushed");var e=this;this.encoder.write("],"+JSON.stringify(this.metadata).slice(1)+"\n",(function(){var n,r;n=e.metadata.view.id,r=e.encoder.getRawBytesCount(),xu(n).segments_total_raw_size+=r,t(e.metadata)})),this.encoder.reset()};var ku=30*st,Lu=6e4;function Du(t,e,n,r,i,o){return function(t,e,n,r){var i={status:Mu.WaitingForInitialRecord,nextSegmentCreationReason:"init"},o=t.subscribe(fn.VIEW_CREATED,(function(){c("view_change")})),a=o.unsubscribe,s=t.subscribe(fn.PAGE_EXITED,(function(t){c(t.reason)})),u=s.unsubscribe;function c(t){i.status===Mu.SegmentPending&&(i.segment.flush((function(e){var i=Cu(r.getEncodedBytes(),e,r.getRawBytesCount());Zn(t)?n.sendOnExit(i):n.send(i)})),p(i.expirationTimeoutId)),i="stop"!==t?{status:Mu.WaitingForInitialRecord,nextSegmentCreationReason:t}:{status:Mu.Stopped}}return{addRecord:function(t){if(i.status!==Mu.Stopped){if(i.status===Mu.WaitingForInitialRecord){var n=e();if(!n)return;i={status:Mu.SegmentPending,segment:new Nu(r,n,i.nextSegmentCreationReason),expirationTimeoutId:d((function(){c("segment_duration_limit")}),ku)}}var o=i.segment;o.addRecord(t,(function(){i.status===Mu.SegmentPending&&i.segment===o&&r.getEncodedBytesCount()>Lu&&c("segment_bytes_limit")}))}},stop:function(){c("stop"),a(),u()}}}(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)}var Mu={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var Pu=1;function Uu(t,e){var n,r=0,i=[],o=0,a=[],s=rn(t,"message",(function(t){var o=t.data;if("wrote"===o.type&&o.streamId===e){var u=a.shift();u&&u.id===o.id?(0===o.id?(r=o.additionalBytesCount,i=[o.result]):(r+=o.additionalBytesCount,i.push(o.result)),n=o.trailer,u.callback()):(s(),yi("Worker responses received out of order."))}})).stop;return{getEncodedBytes:function(){return i.length?function(t){var e,n=t.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,o=ke(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;r.set(a,i),i+=a.length}}catch(t){o.e(t)}finally{o.f()}return r}(i.concat(n)):new Uint8Array(0)},getEncodedBytesCount:function(){return i.length?i.reduce((function(t,e){return t+e.length}),0)+n.length:0},getRawBytesCount:function(){return r},write:function(n,r){t.postMessage({action:"write",id:o,data:n,streamId:e}),a.push({id:o,callback:r}),o+=1},reset:function(){t.postMessage({action:"reset",streamId:e}),o=0}}}var Bu=10*st;function Fu(){return new Worker(URL.createObjectURL(new Blob(['!function(){"use strict";function t(t,a){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,a){if(!t)return;if("string"==typeof t)return e(t,a);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,a)}(t))||a&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,_=!0,h=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return _=t.done,t},e:function(t){h=!0,s=t},f:function(){try{_||null==n.return||n.return()}finally{if(h)throw s}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function a(e){var a,n=e.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,s=t(e);try{for(s.s();!(a=s.n()).done;){var _=a.value;r.set(_,i),i+=_.length}}catch(t){s.e(t)}finally{s.f()}return r}function n(t){for(var e=t.length;--e>=0;)t[e]=0}var r=256,i=286,s=30,_=15,h=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]),l=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]),o=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=new Array(576);n(u);var f=new Array(60);n(f);var c=new Array(512);n(c);var p=new Array(256);n(p);var g=new Array(29);n(g);var v,w,b,m=new Array(s);function y(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 k(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}n(m);var z=function(t){return t<256?c[t]:c[256+(t>>>7)]},A=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},x=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,A(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)},E=function(t,e,a){x(t,a[2*e],a[2*e+1])},Z=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},S=function(t,e,a){var n,r,i=new Array(16),s=0;for(n=1;n<=_;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=Z(i[h]++,h))}},U=function(t){var e;for(e=0;e<i;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;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},R=function(t){t.bi_valid>8?A(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},L=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]},F=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&L(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!L(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},T=function(t,e,a){var n,i,s,_,o=0;if(0!==t.last_lit)do{n=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===n?E(t,i,e):(s=p[i],E(t,s+r+1,e),0!==(_=h[s])&&(i-=g[s],x(t,i,_)),n--,s=z(n),E(t,s,a),0!==(_=l[s])&&(n-=m[s],x(t,n,_)))}while(o<t.last_lit);E(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)F(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],F(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,F(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,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(i=0;i<=_;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(i=p,g++),l[2*n+1]=i,n>o||(t.bl_count[i]++,s=0,n>=c&&(s=f[n-c]),h=l[2*n],t.opt_len+=h*(i+s),u&&(t.static_len+=h*(d[2*n+1]+s)));if(0!==g){do{for(i=p-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(i=p;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),S(i,o,t.bl_count)},O=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},N=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{E(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(E(t,r,t.bl_tree),_--),E(t,16,t.bl_tree),x(t,_-3,2)):_<=10?(E(t,17,t.bl_tree),x(t,_-3,3)):(E(t,18,t.bl_tree),x(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},D=!1,C=function(t,e,a,n){x(t,0+(n?1:0),3),function(t,e,a,n){R(t),n&&(A(t,a),A(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},M=function(t,e,a,n){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&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<r;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(O(t,t.dyn_ltree,t.l_desc.max_code),O(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*d[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=a+5,a+4<=i&&-1!==e?C(t,e,a,n):4===t.strategy||s===i?(x(t,2+(n?1:0),3),T(t,u,f)):(x(t,4+(n?1:0),3),function(t,e,a,n){var r;for(x(t,e-257,5),x(t,a-1,5),x(t,n-4,4),r=0;r<n;r++)x(t,t.bl_tree[2*d[r]+1],3);N(t,t.dyn_ltree,e-1),N(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),T(t,t.dyn_ltree,t.dyn_dtree)),U(t),n&&R(t)},B={_tr_init:function(t){D||(!function(){var t,e,a,n,r,d=new Array(16);for(a=0,n=0;n<28;n++)for(g[n]=a,t=0;t<1<<h[n];t++)p[a++]=n;for(p[a-1]=n,r=0,n=0;n<16;n++)for(m[n]=r,t=0;t<1<<l[n];t++)c[r++]=n;for(r>>=7;n<s;n++)for(m[n]=r<<7,t=0;t<1<<l[n]-7;t++)c[256+r++]=n;for(e=0;e<=_;e++)d[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,d[8]++;for(;t<=255;)u[2*t+1]=9,t++,d[9]++;for(;t<=279;)u[2*t+1]=7,t++,d[7]++;for(;t<=287;)u[2*t+1]=8,t++,d[8]++;for(S(u,287,d),t=0;t<s;t++)f[2*t+1]=5,f[2*t]=Z(t,5);v=new y(u,h,257,i,_),w=new y(f,l,0,s,_),b=new y(new Array(0),o,0,19,7)}(),D=!0),t.l_desc=new k(t.dyn_ltree,v),t.d_desc=new k(t.dyn_dtree,w),t.bl_desc=new k(t.bl_tree,b),t.bi_buf=0,t.bi_valid=0,U(t)},_tr_stored_block:C,_tr_flush_block:M,_tr_tally:function(t,e,a){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&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(p[a]+r+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){x(t,2,3),E(t,256,u),function(t){16===t.bi_valid?(A(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)}},H=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},Y=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}()),K=function(t,e,a,n){var r=Y,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},P={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"},j={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},G=B._tr_init,X=B._tr_stored_block,W=B._tr_flush_block,$=B._tr_tally,q=B._tr_align,J=j.Z_NO_FLUSH,Q=j.Z_PARTIAL_FLUSH,V=j.Z_FULL_FLUSH,tt=j.Z_FINISH,et=j.Z_BLOCK,at=j.Z_OK,nt=j.Z_STREAM_END,rt=j.Z_STREAM_ERROR,it=j.Z_DATA_ERROR,st=j.Z_BUF_ERROR,_t=j.Z_DEFAULT_COMPRESSION,ht=j.Z_FILTERED,lt=j.Z_HUFFMAN_ONLY,ot=j.Z_RLE,dt=j.Z_FIXED,ut=j.Z_DEFAULT_STRATEGY,ft=j.Z_UNKNOWN,ct=j.Z_DEFLATED,pt=258,gt=262,vt=103,wt=113,bt=666,mt=function(t,e){return t.msg=P[e],e},yt=function(t){return(t<<1)-(t>4?9:0)},kt=function(t){for(var e=t.length;--e>=0;)t[e]=0},zt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},At=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))},xt=function(t,e){W(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,At(t.strm)},Et=function(t,e){t.pending_buf[t.pending++]=e},Zt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},St=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-gt?t.strstart-(t.w_size-gt):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+pt,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=pt-(u-i),i=u-pt,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Ut=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-gt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=H(s.adler,_,o,h):2===s.state.wrap&&(s.adler=K(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=zt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=zt(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<gt&&0!==t.strm.avail_in)},Rt=function(t,e){for(var a,n;;){if(t.lookahead<gt){if(Ut(t),t.lookahead<gt&&e===J)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=zt(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-gt&&(t.match_length=St(t,a)),t.match_length>=3)if(n=$(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=zt(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=zt(t,t.ins_h,t.window[t.strstart+1]);else n=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2},Lt=function(t,e){for(var a,n,r;;){if(t.lookahead<gt){if(Ut(t),t.lookahead<gt&&e===J)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=zt(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-gt&&(t.match_length=St(t,a),t.match_length<=5&&(t.strategy===ht||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=$(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=zt(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&&(xt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=$(t,0,t.window[t.strstart-1]))&&xt(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=$(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2};function Ft(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 Tt=[new Ft(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(Ut(t),0===t.lookahead&&e===J)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,xt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-gt&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(xt(t,!1),t.strm.avail_out),1)})),new Ft(4,4,8,4,Rt),new Ft(4,5,16,8,Rt),new Ft(4,6,32,32,Rt),new Ft(4,4,16,16,Lt),new Ft(8,16,32,32,Lt),new Ft(8,16,128,128,Lt),new Ft(8,32,128,256,Lt),new Ft(32,128,258,1024,Lt),new Ft(32,258,258,4096,Lt)];function It(){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=ct,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),kt(this.dyn_ltree),kt(this.dyn_dtree),kt(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),kt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),kt(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 mt(t,rt);t.total_in=t.total_out=0,t.data_type=ft;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:wt,t.adler=2===e.wrap?0:1,e.last_flush=J,G(e),at},Nt=function(t){var e,a=Ot(t);return a===at&&((e=t.state).window_size=2*e.w_size,kt(e.head),e.max_lazy_match=Tt[e.level].max_lazy,e.good_match=Tt[e.level].good_length,e.nice_match=Tt[e.level].nice_length,e.max_chain_length=Tt[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},Dt=function(t,e,a,n,r,i){if(!t)return rt;var s=1;if(e===_t&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ct||n<8||n>15||e<0||e>9||i<0||i>dt)return mt(t,rt);8===n&&(n=9);var _=new It;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,Nt(t)},Ct={deflateInit:function(t,e){return Dt(t,e,ct,15,8,ut)},deflateInit2:Dt,deflateReset:Nt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?rt:(t.state.gzhead=e,at):rt},deflate:function(t,e){var a,n;if(!t||!t.state||e>et||e<0)return t?mt(t,rt):rt;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===bt&&e!==tt)return mt(t,0===t.avail_out?st:rt);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Et(r,31),Et(r,139),Et(r,8),r.gzhead?(Et(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)),Et(r,255&r.gzhead.time),Et(r,r.gzhead.time>>8&255),Et(r,r.gzhead.time>>16&255),Et(r,r.gzhead.time>>24&255),Et(r,9===r.level?2:r.strategy>=lt||r.level<2?4:0),Et(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Et(r,255&r.gzhead.extra.length),Et(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=K(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Et(r,0),Et(r,0),Et(r,0),Et(r,0),Et(r,0),Et(r,9===r.level?2:r.strategy>=lt||r.level<2?4:0),Et(r,3),r.status=wt);else{var s=ct+(r.w_bits-8<<4)<<8;s|=(r.strategy>=lt||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=wt,Zt(r,s),0!==r.strstart&&(Zt(r,t.adler>>>16),Zt(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=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending!==r.pending_buf_size));)Et(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=K(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=K(t.adler,r.pending_buf,r.pending-a,a)),At(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,Et(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=K(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=K(t.adler,r.pending_buf,r.pending-a,a)),At(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,Et(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=vt)}else r.status=vt;if(r.status===vt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&At(t),r.pending+2<=r.pending_buf_size&&(Et(r,255&t.adler),Et(r,t.adler>>8&255),t.adler=0,r.status=wt)):r.status=wt),0!==r.pending){if(At(t),0===t.avail_out)return r.last_flush=-1,at}else if(0===t.avail_in&&yt(e)<=yt(i)&&e!==tt)return mt(t,st);if(r.status===bt&&0!==t.avail_in)return mt(t,st);if(0!==t.avail_in||0!==r.lookahead||e!==J&&r.status!==bt){var _=r.strategy===lt?function(t,e){for(var a;;){if(0===t.lookahead&&(Ut(t),0===t.lookahead)){if(e===J)return 1;break}if(t.match_length=0,a=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ot?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=pt){if(Ut(t),t.lookahead<=pt&&e===J)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+pt;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=pt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=$(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Tt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=bt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),at;if(2===_&&(e===Q?q(r):e!==et&&(X(r,0,0,!1),e===V&&(kt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),At(t),0===t.avail_out))return r.last_flush=-1,at}return e!==tt?at:r.wrap<=0?nt:(2===r.wrap?(Et(r,255&t.adler),Et(r,t.adler>>8&255),Et(r,t.adler>>16&255),Et(r,t.adler>>24&255),Et(r,255&t.total_in),Et(r,t.total_in>>8&255),Et(r,t.total_in>>16&255),Et(r,t.total_in>>24&255)):(Zt(r,t.adler>>>16),Zt(r,65535&t.adler)),At(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?at:nt)},deflateEnd:function(t){if(!t||!t.state)return rt;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==vt&&e!==wt&&e!==bt?mt(t,rt):(t.state=null,e===wt?mt(t,it):at)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return rt;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return rt;if(1===r&&(t.adler=H(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(kt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Ut(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=zt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Ut(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,at},deflateInfo:"pako deflate (from Nodeca project)"};for(var Mt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Mt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Mt[254]=Mt[254]=1;var Ht=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},Yt=Object.prototype.toString,Kt=j.Z_NO_FLUSH,Pt=j.Z_SYNC_FLUSH,jt=j.Z_FULL_FLUSH,Gt=j.Z_FINISH,Xt=j.Z_OK,Wt=j.Z_STREAM_END,$t=j.Z_DEFAULT_COMPRESSION,qt=j.Z_DEFAULT_STRATEGY,Jt=j.Z_DEFLATED;function Qt(){this.options={level:$t,method:Jt,chunkSize:16384,windowBits:15,memLevel:8,strategy:qt};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 Ht,this.strm.avail_out=0;var e=Ct.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==Xt)throw new Error(P[e]);if(t.header&&Ct.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Yt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ct.deflateSetDictionary(this.strm,a))!==Xt)throw new Error(P[e]);this._dict_set=!0}}function Vt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function te(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Qt.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?Gt:Kt,"[object ArrayBuffer]"===Yt.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===Pt||n===jt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ct.deflate(r,n))===Wt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ct.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Xt;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},Qt.prototype.onData=function(t){this.chunks.push(t)},Qt.prototype.onEnd=function(t){t===Xt&&(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,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(t){void 0===t&&(t=self);try{var e=new Map;t.addEventListener("message",(function(n){try{var r=function(t,e){switch(e.action){case"init":return{type:"initialized",version:"3.1.17"};case"write":var n=t.get(e.streamId);n||(n=new Qt,t.set(e.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(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}(e.data);return n.push(i,j.Z_SYNC_FLUSH),{type:"wrote",id:e.id,streamId:e.streamId,result:a(n.chunks.slice(r)),trailer:te(n),additionalBytesCount:i.length};case"reset":t.delete(e.streamId)}}(e,n.data);r&&t.postMessage(r)}catch(e){Vt(t,e,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(e){Vt(t,e)}}()}();'])))}var Vu={Nil:0,Loading:1,Error:2,Initialized:3},Hu={status:Vu.Nil};function zu(t,e){switch(void 0===e&&(e=Fu),Hu.status===Vu.Nil&&function(t){void 0===t&&(t=Fu);try{var e=t();rn(e,"error",ju),rn(e,"message",(function(t){var e,n=t.data;"errored"===n.type?ju(n.error,n.streamId):"initialized"===n.type&&(e=n.version,Hu.status===Vu.Loading&&(Hu={status:Vu.Initialized,worker:Hu.worker,version:e}))})),e.postMessage({action:"init"}),d($u,Bu),Hu={status:Vu.Loading,worker:e,initializationFailureCallbacks:[]}}catch(t){ju(t)}}(e),Hu.status){case Vu.Loading:return Hu.initializationFailureCallbacks.push(t),Hu.worker;case Vu.Initialized:return Hu.worker}}function Wu(){return Hu.status}function $u(){Hu.status===Vu.Loading&&(n.error("Session Replay recording failed to start: a timeout occurred while initializing the Worker"),Hu.initializationFailureCallbacks.forEach((function(t){t()})),Hu={status:Vu.Error})}function ju(t,e){var r;Hu.status===Vu.Loading?(n.error("Session Replay recording failed to start: an error occurred while creating the Worker:",t),t instanceof Event||t instanceof Error&&(Nt(r=t.message,"Content Security Policy")||Nt(r,"requires 'TrustedScriptURL'"))?n.error("Please make sure CSP is correctly configured !!!"):Ei(t),Hu.status===Vu.Loading&&Hu.initializationFailureCallbacks.forEach((function(t){t()})),Hu={status:Vu.Error}):Ei(t,{worker_version:Hu.status===Vu.Initialized&&Hu.version,stream_id:e})}var Gu=0,Ku=1,Zu=2,qu=3;var Yu,Qu,Xu,Ju,tc=function(t,e){var n=new Je;if(ei()||"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},recorderStartObservable:n};var r={status:Gu},i=function(){r={status:Ku}},o=function(){r={status:Gu}};return{start:function(){i()},stop:function(){o()},recorderStartObservable:n,getReplayStats:function(t){return Wu()===Vu.Initialized?function(t){return Iu&&Iu.get(t)}(t):void 0},onRumStart:function(a,s,u,c,l){var f;a.subscribe(fn.SESSION_EXPIRED,(function(){r.status!==Zu&&r.status!==qu||(o(),r={status:Ku})})),a.subscribe(fn.PAGE_EXITED,(function(t){t.reason!==Kn.UNLOADING&&t.reason!==Kn.PAGEHIDE||o()})),a.subscribe(fn.SESSION_RENEWED,(function(){r.status===Ku&&i()})),i=function(){var i=u.findTrackedSession();i&&i.sessionReplayAllowed?r.status!==Zu&&r.status!==qu&&(r={status:Zu},tr("interactive",(function(){if(r.status===Zu){var i=(f||(l||(l=zu((function(){o()}),e)),l&&(f=Uu(l,Pu))),f);if(i){var d=t(a,s,u,c,i);n.notify(gt()),r={status:qu,stopRecording:d.stop}}else r={status:Gu}}}))):r={status:Ku}},o=function(){r.status!==Gu&&(r.status===qu&&r.stopRecording(),r={status:Gu})},r.status===Ku&&i()},isRecording:function(){return r.status===qu}}}((function(t,e,n,r,i,o){var a=o||zr(e.sessionReplayEndPoint,Lu,!1,(function(e){t.notify(fn.RAW_ERROR_COLLECTED,{error:e}),yi("Error reported to customer",{"error.message":e.message})})),s=Du(t,e,n,r,a,i),u=s.addRecord,c=s.stop,l=Tu({emit:u,configuration:e,lifeCycle:t}),f=l.stop,d=l.takeSubsequentFullSnapshot,p=l.flushMutations,h=t.subscribe(fn.VIEW_ENDED,(function(){p(),u({timestamp:yt(),type:ss.ViewEnd})})),v=t.subscribe(fn.VIEW_CREATED,(function(t){d(t.startClocks.timeStamp)}));return{stop:function(){h.unsubscribe(),v.unsubscribe(),f(),c()}}})),ec=function(t,e){var r=!1,i=ai(ii),s=ai(ri),u=function(){},c=function(){},l=function(){},f=new Gt,d=function(t,e){void 0===e&&(e=yt()),f.add((function(){return d(t,e)}))},p=function(t,e){void 0===e&&(e=mt()),f.add((function(){return p(t,e)}))},h=function(t,n){void 0===n&&(n=ca(i,s,e)),f.add((function(){return h(t,n)}))},v=function(t,n){void 0===n&&(n=ca(i,s,e)),f.add((function(){return v(t,n)}))};function _(n,r){if(n.storeContextsToLocal){var o=i.getContext();(i=ci("rum",ii)).setContext(R(i.getContext(),o));var a=s.getContext();(s=ci("rum",ri)).setContext(R(s.getContext(),a))}var c=t(n,e,i,s,r);p=c.startView,h=c.addAction,v=c.addError,d=c.addTiming,u=c.getInternalContext,l=c.stopSession,f.drain(),e.onRumStart(c.lifeCycle,n,c.session,c.viewContexts)}var g,m,y=a((function(t){p("object"==typeof t?t:{name:t})}));return g={init:a((function(t){if(c=function(){return rt(t)},ei()&&(t=function(t){return O({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",sessionSampleRate:100})}(t)),function(t){return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(Y()),n="test";return On(e,n,st,t),In(e)===n}catch(t){return!1}}(Pn(t))?"file:"!==window.location.protocol||(n.error("Execution is not allowed in the current context."),!1):(n.warn("Cookies are not authorized, we will not send any data."),!1)}(t)&&function(t){return!r||(t.silentMultipleInit||n.error("DATAFLUX_RUM is already initialized."),!1)}(t)){var e=os(t);if(e){if(e.trackViewsManually){var i=f;f=new Gt,p=function(t){_(e,t)},i.drain()}else _(e);r=!0}}})),addRumGlobalContext:a((function(t,e){return i.add(t,e)})),setGlobalContextProperty:a((function(t,e){return i.setContextProperty(t,e)})),removeRumGlobalContext:a((function(t){return i.remove(t)})),removeGlobalContextProperty:a((function(t){return i.removeContextProperty(t)})),getRumGlobalContext:a((function(){return i.get()})),getGlobalContext:a((function(){return i.getContext()})),setRumGlobalContext:a((function(t){return i.set(t)})),setGlobalContext:a((function(t){return i.setContext(t)})),clearGlobalContext:a((function(){return i.clearContext()})),getInitConfiguration:a((function(){return c()})),getInternalContext:a((function(t){return u(t)})),addDebugSession:a((function(t){})),clearDebugSession:a((function(){})),getDebugSession:a((function(){})),addAction:a((function(t,e){h({name:t,context:rt(e),startClocks:mt(),type:ie.CUSTOM})})),addError:a((function(t,e){var n=Ze();v({error:t,handlingStack:n,context:rt(e),startClocks:mt()})})),addTiming:a((function(t,e){d(t,e)})),setUser:a((function(t){(function(t){var e="object"===et(t);return e||n.error("Unsupported user:",t),e})(t)&&s.setContext(li(t))})),getUser:a((function(){return s.getContext()})),setUserProperty:a((function(t,e){var n={};n[t]=e;var r=li(n)[t];s.setContextProperty(t,r)})),removeUserProperty:a((function(t){return s.removeContextProperty(t)})),removeUser:a((function(){return s.clearContext()})),clearUser:a((function(){return s.clearContext()})),startView:y,stopSession:a((function(){l()})),startSessionReplayRecording:a(e.start),stopSessionReplayRecording:a(e.stop)},m=O({onReady:function(t){t()}},g),Object.defineProperty(m,"_setDebug",{get:function(){return o},enumerable:!1}),m}((function(t,e,n,r,i){var o=[],s=new dn,u=function(t){const e=mi(_i.RUM,t);return e}(t);u.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:f.findTrackedSession()&&f.findTrackedSession().id},view:{id:m.findView()&&m.findView().id},action:{id:E.findActionId(),ids:E.findAllActionId()}}}));var c=function(t){s.notify(fn.RAW_ERROR_COLLECTED,{error:t})},l=new Je((function(t){var e=on(document,[ne.VISIBILITY_CHANGE,ne.FREEZE,ne.PAGE_HIDE],(function(e){e.type===ne.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?t.notify({reason:Kn.HIDDEN}):e.type===ne.FREEZE&&t.notify({reason:Kn.FROZEN})}),{capture:!0}),n=rn(window,ne.BEFORE_UNLOAD,(function(){t.notify({reason:Kn.UNLOADING})}));return function(){e.stop(),n.stop()}}));l.subscribe((function(t){s.notify(fn.PAGE_EXITED,t)})),o.push((function(){pageExitSubscription.unsubscribe()}));var f=ei()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:Ti.WITHOUT_SESSION_REPLAY,sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:ot,expireObservable:new Je}}():Oi(t,s);if(ei())!function(t){var e=ti();t.subscribe(fn.RUM_EVENT_COLLECTED,(function(t){var n=Yr(t).rowData;e.send("rum",n)}))}(s);else{var d=Xo(t,s,u.observable,c,l,f.expireObservable);o.push((function(){d.stop()}))}var p,h=function(t){var e=In(Ai);return e||(e=Y(),On(Ai,e,Ri,t.cookieOptions)),{getId:function(){return e}}}(t),v=(p=Qi(),new Je((function(t){if(p){var e=new p(a((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),_=Xi(location),g=function(t,e,n,r,i,o,a,s,u){var c=function(t){var e=new Qt(ua);return t.subscribe(fn.BEFORE_VIEW_CREATED,(function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name}}(t),t.startClocks.relative)})),t.subscribe(fn.AFTER_VIEW_ENDED,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(fn.SESSION_RENEWED,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),l=function(t,e,n){var r,i=new Qt(sa);t.subscribe(fn.BEFORE_VIEW_CREATED,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(fn.AFTER_VIEW_ENDED,(function(t){i.closeActive(t.endClocks.relative)}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=gt();i.closeActive(n),i.add(a({url:t.newLocation.href,location:t.newLocation,referrer:e.referrer},!0),n)}}));function a(t,e){void 0===e&&(e=!1);var n=t.location.pathname,r=t.location.hash;return r&&!zt(r)&&e&&(n="/"+Wt(r)),{url:t.url,referrer:t.referrer,host:t.location.host,path:n,pathGroup:Q(n),urlQuery:J(t.location.href)}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,o,n),f=Zo(),d=function(t,e,n,r){t.subscribe(fn.AUTO_ACTION_COMPLETED,(function(e){t.notify(fn.RAW_RUM_EVENT_COLLECTED,Yo(e,r))}));var i={findActionId:ot,findAllActionId:ot};return n.trackUserInteractions&&(i=Ho(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(fn.RAW_RUM_EVENT_COLLECTED,A({savedCommonContext:n},Yo(e,r)))}}}(t,a,e,f),p=d.actionContexts,h=d.addAction,v=(_=aa(),{get:function(){return{viewport:_}},stop:oa().subscribe((function(t){_=t})).unsubscribe});var _;return ia(e,t,r,i,c,l,p,v,s,u),{viewContexts:c,urlContexts:l,pageStateHistory:f,addAction:h,actionContexts:p,stop:function(){c.stop(),l.stop(),f.stop(),v.stop()}}}(s,t,location,f,h,_,v,(function(){return ca(n,r,e)}),c),m=g.viewContexts,y=g.urlContexts,E=g.actionContexts,b=g.pageStateHistory,w=g.stop,S=g.addAction;o.push(w),function(t,e){t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(n){for(var r=0;r<n.length;r++){var i=n[r];if("longtask"!==i.entryType)return;if(!e.findTrackedSession(i.startTime))break;var o=St(i.startTime),a={date:o.timeStamp,long_task:{id:Y(),duration:ht(i.duration)},type:ae.LONG_TASK};t.notify(fn.RAW_RUM_EVENT_COLLECTED,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i.toJSON()}})}}))}(s,f),Ja(s,t,f,b);var T=Da(s,t,location,v,_,b,e,i),C=T.addTiming,O=T.startView,I=T.stop;o.push(I);var R=la(s,0,b).addError;Za(s,t,f),Zi(s,t);var x=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,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,urlQuery:s.urlQuery}}}}}}(t.applicationId,f,m,E,y);return{addAction:S,addError:R,addTiming:C,configuration:t,lifeCycle:s,viewContexts:m,session:f,startView:O,stopSession:function(){f.expire()},getInternalContext:x.get,stop:function(){o.forEach((function(t){t()}))}}}),tc);Yu=f(),Xu=ec,Ju=Yu[Qu="DATAFLUX_RUM"],Yu[Qu]=Xu,Ju&&Ju.q&&C(Ju.q,(function(t){c(t,"onReady callback threw an error:")()}))}();
|
|
1
|
+
!function(){"use strict";var t,e={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},n=function t(n){var r=[].slice.call(arguments,1);Object.prototype.hasOwnProperty.call(e,n)||(n=e.log),t[n].apply(t,r)};function r(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}n.debug=console.debug.bind(console),n.log=console.log.bind(console),n.info=console.info.bind(console),n.warn=console.warn.bind(console),n.error=console.error.bind(console);var i=!1;function o(t){i=t}function a(t){return function(){return s(t,this,arguments)}}function s(n,r,i){try{return n.apply(r,i)}catch(n){if(u(e.error,n),t)try{t(n)}catch(t){u(e.error,t)}}}function u(t){var e=[].slice.call(arguments,1);i&&n.apply(null,[t,"[MONITOR]"].concat(e))}function c(t,e){return function(){var r=[].slice.call(arguments);try{return t.apply(this,r)}catch(t){n.error(e,t)}}}function l(t){return l="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},l(t)}function f(){if("object"===("undefined"==typeof globalThis?"undefined":l(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"!==l(t)&&(t="object"===("undefined"==typeof self?"undefined":l(self))?self:"object"===("undefined"==typeof window?"undefined":l(window))?window:{}),t}function d(t,e){return r(f(),"setTimeout")(a(t),e)}function p(t){r(f(),"clearTimeout")(t)}function h(t,e){return r(window,"setInterval")(a(t),e)}function v(t){r(window,"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 g=Array.prototype,m=(Function.prototype,Object.prototype),y=g.slice,E=m.toString,b=m.hasOwnProperty,w=g.forEach,S=Array.isArray,T=!1,C=function(t,e,n){if(null===t)return!1;if(w&&t.forEach===w)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)===T)return!1}else for(var o in t)if(b.call(t,o)&&e.call(n,t[o],o,t)===T)return!1};function O(t){return C(y.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function I(t){return O({},t)}var A=function(t){return C(y.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},R=function(t){return C(y.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(H(e[n])&&H(t[n])?A(t[n],e[n]):t[n]=e[n])})),t},x=S||function(t){return"[object Array]"===E.call(t)},N=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},k=function(t){return t?t.toArray?t.toArray():x(t)?y.call(t):(e=t)&&b.call(e,"callee")?y.call(t):L(t):[];var e},L=function(t){var e=[];return null===t||C(t,(function(t){e[e.length]=t})),e},D=function(t){var e=[];return null===t||C(t,(function(t,n){e[e.length]=n})),e},M=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},P=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},U=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},B=function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r},F=function(t,e,r){return void 0===r&&(r=!1),U(t,(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return r?Ht(e,t):t===e}catch(t){n.error(t)}return!1}))},V=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}))},H=function(t){return null!==t&&"[object Object]"===E.call(t)},z=function(t){if(H(t)){for(var e in t)if(b.call(t,e))return!1;return!0}return!1},W=function(t){var e=[];return C(t,(function(t,n){e.push([n,t])})),e},$=function(t){return"[object String]"===E.call(t)},j=function(t){return"[object Boolean]"===E.call(t)},G=function(t){return"[object Number]"===E.call(t)&&/[\d\.]+/.test(String(t))},K=function t(e){var n=e;try{n=t(e)}catch(t){n=e}return n},Z=(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=d((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){p(i),s=!1,r=void 0}}}),q=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 Y(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,Y)}function Q(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var X=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 J=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=tt("?"+n)),e},tt=function(t){for(var e=function(t){return K(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"):t}function ot(){}var at,st=1e3,ut=60*st,ct=60*ut,lt=365*(24*ct);function ft(t){return 0!==t&&100*Math.random()<=t}function dt(t,e){return+t.toFixed(e)}function pt(t){return"number"!=typeof t?t:dt(1e6*t,0)}function ht(t){return G(t)?dt(1e6*t,0):t}function vt(t){return t-Ot()}function _t(t){return Math.round(Ot()+t)}function gt(){return performance.now()}function mt(){return{relative:gt(),timeStamp:yt()}}function yt(){return Et()}function Et(){return(new Date).getTime()}function bt(t,e){return e-t}function wt(){return{relative:0,timeStamp:Ot()}}function St(t){return{relative:t,timeStamp:Ct(t)}}function Tt(t,e){return t+e}function Ct(t){var e=Et()-performance.now();return e>Ot()?Math.round(e+t):_t(t)}function Ot(){return void 0===at&&(at=performance.timing.navigationStart),at}var It=/([\w-]+)\s*=\s*([^;]+)/g;function At(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&r in t&&b.call(t,r)))return;t=t[r]}return t}function Rt(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function xt(t){var e=et(t);return"string"===e||"function"===e||t instanceof RegExp}function Nt(t,e){return-1!==t.indexOf(e)}function kt(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Lt(t){return G(t)&&t>=0&&t<=100}var Dt,Mt={IE:0,CHROMIUM:1,SAFARI:2,OTHER:3};function Pt(){return Vt(Dt,Dt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return Mt.CHROMIUM;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 Mt.SAFARI;if(t.document.documentMode)return Mt.IE;return Mt.OTHER}())}function Ut(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Bt(t){var e={};return C(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=Ft(t)})),e}function Ft(t){return x(t)?P(t,(function(t){return Ft(t)})):"object"===_(t)&&null!==t?Bt(t):t}function Vt(t,e){return null!=t?t:e}function Ht(t,e){return t.slice(0,e.length)===e}function zt(t){var e=t.substr(1);return!!e&&!!document.getElementById(e)}function Wt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function $t(t){return G(t)&&t<0?void 0:t}var jt=function(){this.buffer=[]};jt.prototype={add:function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},drain:function(){C(this.buffer,(function(t){t()})),this.buffer.length=0}};var Gt=jt;function Kt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Zt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var qt=1/0,Yt=ut;function Qt(t,e){this.expireDelay=t,this.entries=[],this.maxEntries=e;var n=this;this.clearOldContextsInterval=h((function(){n.clearOldContexts()}),Yt)}Qt.prototype.add=function(t,e){var n=this,r={context:t,startTime:e,endTime:qt,remove:function(){var t=n.entries.indexOf(r);t>=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},Qt.prototype.find=function(t){void 0===t&&(t=qt);var e,n=Kt(this.entries);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.startTime<=t){if(t<=r.endTime)return r.context;break}}}catch(t){n.e(t)}finally{n.f()}},Qt.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===qt&&e.close(t)},Qt.prototype.findAll=function(t,e){void 0===e&&(e=0),void 0===t&&(t=qt);var n=Tt(t,e),r=M(this.entries,(function(e){return e.startTime<=n&&t<=e.endTime}));return P(r,(function(t){return t.context}))},Qt.prototype.reset=function(){this.entries=[]},Qt.prototype.stop=function(){v(this.clearOldContextsInterval)},Qt.prototype.clearOldContexts=function(){for(var t=gt()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()};var Xt={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"]}},Jt={getMatchMap:a((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:a((function(t){var e=Xt.navigator.userAgent||"",n=Jt.getMatchMap(e);for(var r in Xt.infoMap)for(var i=0;i<Xt.infoMap[r].length;i++){var o=Xt.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:a((function(){return Jt.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:a((function(){var t=this,e=Xt.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:a((function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"})),getDeviceType:a((function(){var t=this;return t.device="PC",Jt.matchInfoMap(t),t.device})),getNetwork:a((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:a((function(){var t;return this.language=((t=(Xt.navigator.browserLanguage||Xt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getBrowserInfo:a((function(){var t=this;Jt.matchInfoMap(t);var e=Xt.navigator.userAgent||"",n=function(t,e){var n=Xt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=Jt.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")||Xt.navigator&&Xt.navigator.connection&&void 0===Xt.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:a((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){n.warn(t)}))}))},te={};"undefined"!=typeof window&&(te={os:Jt.getOS(),MethodLibrary:Jt,osVersion:Jt.getOSVersion().version,osVersionMajor:Jt.getOSVersion().osMajor,browser:Jt.getBrowserInfo().browser,browserVersion:Jt.getBrowserInfo().browserVersion,browserVersionMajor:Jt.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:Jt.getNetwork(),divice:Jt.getDeviceType()});var ee=te,ne={BEFORE_UNLOAD:"beforeunload",CLICK:"click",DBL_CLICK:"dblclick",KEY_DOWN:"keydown",LOAD:"load",POP_STATE:"popstate",SCROLL:"scroll",TOUCH_START:"touchstart",TOUCH_END:"touchend",TOUCH_MOVE:"touchmove",VISIBILITY_CHANGE:"visibilitychange",PAGE_SHOW:"pageshow",FREEZE:"freeze",RESUME:"resume",DOM_CONTENT_LOADED:"DOMContentLoaded",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_CANCEL:"pointercancel",HASH_CHANGE:"hashchange",PAGE_HIDE:"pagehide",MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup",MOUSE_MOVE:"mousemove",FOCUS:"focus",BLUR:"blur",CONTEXT_MENU:"contextmenu",RESIZE:"resize",CHANGE:"change",INPUT:"input",PLAY:"play",PAUSE:"pause",SECURITY_POLICY_VIOLATION:"securitypolicyviolation",SELECTION_CHANGE:"selectionchange",STORAGE:"storage"},re={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},ie={CLICK:"click",CUSTOM:"custom"},oe={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},ae={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},se={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change"},ue={FETCH:re.FETCH,XHR:re.XHR},ce={DDTRACE:"ddtrace",ZIPKIN_MULTI_HEADER:"zipkin",ZIPKIN_SINGLE_HEADER:"zipkin_single_header",W3C_TRACEPARENT:"w3c_traceparent",W3C_TRACEPARENT_64:"w3c_traceparent_64bit",SKYWALKING_V3:"skywalking_v3",JAEGER:"jaeger"},le={HANDLED:"handled",UNHANDLED:"unhandled"},fe={UNCAUGHT:"Uncaught",PROVIDED:"Provided"};function de(t,e,n){var r=t[e],i=n(r),o=function(){if("function"==typeof i)return i.apply(this,arguments)};return t[e]=o,{stop:function(){t[e]===o?t[e]=r:i=r}}}function pe(t,e,n){return de(t,e,(function(t){return function(){var e;return n&&n.before&&s(n.before,this,arguments),"function"==typeof t&&(e=t.apply(this,arguments)),n&&n.after&&s(n.after,this,arguments),e}}))}function he(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){d((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}}}function ve(t){return ve="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},ve(t)}function _e(t,e,n){if("object"!==ve(t)||null===t)return JSON.stringify(t);var r=ge(Object.prototype),i=ge(Array.prototype),o=ge(Object.getPrototypeOf(t)),a=ge(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function ge(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ot}function me(t){return me="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},me(t)}var ye="?";function Ee(t){var e=[],n=Re(t,"stack");return n&&C(n.split("\n"),(function(t){var n=function(t){var e=Se.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=Te.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]||ye,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Ce.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:ye,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Oe.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||ye,line:+e[3],url:e[2]}}(t)||function(t){var e=Ie.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Ae.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]||ye,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=ye),e.push(n))})),{message:Re(t,"message"),name:Re(t,"name"),stack:e}}var be="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",we="(?::(\\d+))",Se=new RegExp("^\\s*at (.*?) ?\\("+be+we+"?"+we+"?\\)?\\s*$","i"),Te=new RegExp("\\((\\S*)"+we+we+"\\)");var Ce=new RegExp("^\\s*at ?"+be+we+"?"+we+"??\\s*$","i");var Oe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Ie=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Ae=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Re(t,e){if("object"===me(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var xe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Ne(t){var e=function(t){return pe(window,"onerror",{before:function(e,n,r,i,o){var a;if(o instanceof Error)a=Ee(o);else{var s={url:n,column:i,line:r},u=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=xe.exec(t);r&&(e=r[1],n=r[2])}return{name:e,message:n}}(e);a={name:u.name,message:u.message,stack:[s]}}t(a,Vt(o,e))}})}(t),n=function(t){return pe(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason",r=Ee(n);t(r,n)}})}(t);return{stop:function(){e.stop(),n.stop()}}}function ke(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Le(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Le(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var De=1024,Me=1024*De,Pe=/[^\u0000-\u007F]/;function Ue(t){return Pe.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Be(t){return Be="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},Be(t)}var Fe=220*De,Ve="$",He=3;function ze(t,e){void 0===e&&(e=Fe);var n=ge(Object.prototype),r=ge(Array.prototype),i=[],o=new WeakMap,a=We(t,Ve,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=We(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){$e(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=We(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+He,c=1),s>e){$e(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}$e(e,"discarded",t)}function We(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"!==Be(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Be(t))return"[Symbol] "+t.description||0;return t}(o);var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}return"[Unserializable]"}(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 $e(t,e,r){n.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",r)}var je="No stack, consider using an instance of Error",Ge={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function Ke(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+" "+_e(ze(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)?qe(e):je,f=u?Qe(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 Ze(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return s((function(){var n=Ee(e);n.stack=n.stack.slice(2),t=qe(n)})),t}function qe(t){var e=Ye(t);return C(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 Ye(t){return(t.name||"Error")+": "+t.message}function Qe(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=Ee(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&qe(i)}),n=n.cause}return r.length?r:void 0}var Xe=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};Xe.prototype={subscribe:function(t){!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),this.observers.push(t);var e=this;return{unsubscribe:function(){e.observers=M(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){C(this.observers,(function(e){e(t)}))}};var Je=Xe;function tn(){var t=[].slice.call(arguments);return new Je((function(e){var n=P(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return C(n,(function(t){return t.unsubscribe()}))}}))}var en={};function nn(t){var n=P(t,(function(t){return en[t]||(en[t]=function(t){return new Je((function(n){var r=console[t];return console[t]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=Ze();s((function(){n.notify(function(t,n,r){var i,o,a=P(t,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return Ye(Ee(t));return _e(t,void 0,2)}(t)})).join(" ");if(n===e.error){var s=kt(t,(function(t){return t instanceof Error}));i=s?qe(Ee(s)):void 0,a="console error: "+a,o=s?Qe(s,"console"):void 0}return{api:n,message:a,stack:i,handlingStack:r,causes:o}}(i,t,o))}))},function(){console[t]=r}}))}(t)),en[t]}));return tn.apply(this,n)}function rn(t,e,n,r){return on(t,[e],n,r)}function on(t,e,n,i){var o=a(i&&i.once?function(t){u(),n(t)}:n);i=i&&i.passive?{capture:i.capture,passive:i.passive}:i&&i.capture;var s=r(t,"addEventListener");C(e,(function(e){s.call(t,e,o,i)}));var u=function(){var n=r(t,"removeEventListener");C(e,(function(e){n.call(t,e,o,i)}))};return{stop:u}}var an={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function sn(t,e){var n=[];Nt(e,an.cspViolation)&&n.push(new Je((function(t){var e=function(e){t.notify(function(t){var e=an.cspViolation,n="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return{type:an.cspViolation,subtype:t.effectiveDirective,message:e+": "+n,stack:un(t.effectiveDirective,n+' of the policy "'+Rt(t.originalPolicy,100)+'"',t.sourceFile,t.lineNumber,t.columnNumber)}}(e))};return rn(document,ne.SECURITY_POLICY_VIOLATION,e).stop})));var r=M(e,(function(t){return t!==an.cspViolation}));return r.length&&n.push(function(t){return new Je((function(e){if(window.ReportingObserver){var n=a((function(t){C(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return{type:n,subtype:e.id,message:n+": "+e.message,stack:un(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)),tn.apply(this,n)}function un(t,e,n,r,i){return n&&qe({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var cn=function(){this._events=[],this.pendingEvents=[]};cn.prototype={emit:function(t){var e=[].slice.call(arguments,1);C(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 cn;var ln,fn={PERFORMANCE_ENTRIES_COLLECTED:"PERFORMANCE_ENTRIES_COLLECTED",AUTO_ACTION_COMPLETED:"AUTO_ACTION_COMPLETED",BEFORE_VIEW_CREATED:"BEFORE_VIEW_CREATED",VIEW_CREATED:"VIEW_CREATED",VIEW_UPDATED:"VIEW_UPDATED",VIEW_ENDED:"VIEW_ENDED",AFTER_VIEW_ENDED:"AFTER_VIEW_ENDED",SESSION_RENEWED:"SESSION_RENEWED",SESSION_EXPIRED:"SESSION_EXPIRED",PAGE_EXITED:"PAGE_EXITED",REQUEST_STARTED:"REQUEST_STARTED",REQUEST_COMPLETED:"REQUEST_COMPLETED",RAW_RUM_EVENT_COLLECTED:"RAW_RUM_EVENT_COLLECTED",RUM_EVENT_COLLECTED:"RUM_EVENT_COLLECTED",RAW_ERROR_COLLECTED:"RAW_ERROR_COLLECTED",RAW_LOG_COLLECTED:"RAW_LOG_COLLECTED",LOG_COLLECTED:"LOG_COLLECTED"};function dn(){this.callbacks={}}function pn(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return hn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hn(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function hn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function vn(t,e,n){var r=rt(t),i=n(r);return C(W(e),(function(e){var n=e[0],i=e[1],o=function(t,e){var n,r=t,i=pn(e.split("."));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!mn(r,o))return;r=r[o]}}catch(t){i.e(t)}finally{i.f()}return r}(r,n),a=et(o);a===i?_n(t,n,ze(o)):"object"!==i||"undefined"!==a&&"null"!==a||_n(t,n,{})})),i}function _n(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!gn(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function gn(t){return"object"===et(t)}function mn(t,e){return gn(t)&&Object.prototype.hasOwnProperty.call(t,e)}function yn(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&d((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:Ge.AGENT,startClocks:mt()})}finally{i=!1}}return!0}}}function En(t){return wn(t,Ut(window.location)).href}function bn(t){return Ut(wn(t))}function wn(t,e){if(function(){if(void 0!==ln)return ln;try{var t=new URL("http://test/path");return ln="http://test/path"===t.href}catch(t){ln=!1}return ln}())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}dn.prototype={notify:function(t,e){var n=this.callbacks[t];n&&C(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]=M(n.callbacks[t],(function(t){return t!==e}))}}}};var Sn=navigator.userAgent.toLowerCase(),Tn=function(){return/iphone os/.test(Sn)};var Cn;function On(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=t+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function In(t){return function(t,e){for(It.lastIndex=0;;){var n=It.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,t)}var An=/^\s+|\s+$/g,Rn={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function xn(t,e){var n=Rn[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+Nn(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?Nn(r)+"v1/write"+n:Nn(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function Nn(t){return t.replace(An,"")}var kn,Ln,Dn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Mn(t){if(void 0===t.sampleRate||Lt(t.sampleRate))if(void 0===t.sessionSampleRate||Lt(t.sessionSampleRate)){if(void 0===t.telemetrySampleRate||Lt(t.telemetrySampleRate)){var e=t.sessionSampleRate||t.sampleRate;return O({beforeSend:t.beforeSend&&c(t.beforeSend,"beforeSend threw an error:"),cookieOptions:Pn(t),sessionSampleRate:Vt(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:Vt(t.telemetrySampleRate,100),telemetryEnabled:Vt(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16*De,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*st,batchMessagesLimit:50,messageBytesLimit:256*De,resourceUrlLimit:5*De,storeContextsToLocal:!!t.storeContextsToLocal,storeContextsKey:t.storeContextsKey,sendContentTypeByJson:!!t.sendContentTypeByJson},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&N(t.isIntakeUrl)&&j(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&N(t.isServerError)&&j(t.isServerError())&&(n=t.isServerError),{rumEndpoint:xn(t,"rum"),logsEndpoint:xn(t,"log"),sessionReplayEndPoint:xn(t,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}n.error("Telemetry Sample Rate should be a number between 0 and 100")}else n.error("Sample Rate should be a number between 0 and 100");else n.error("Sample Rate should be a number between 0 and 100")}function Pn(t){var e={};return 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===Cn){for(var t="gc_site_test_".concat(Y()),e=window.location.hostname.split("."),n=e.pop();e.length&&!In(t);)n=e.pop()+"."+n,On(t,"test",st,{domain:n});Cn=n}return Cn}()),e}function Un(){return kn||(kn=new Je((function(t){if(window.fetch)return de(window,"fetch",(function(e){return function(n,r){var i,o=s(Bn,null,[t,n,r]);return o?(i=e.call(this,o.input,o.init),s(Fn,null,[t,i,o])):i=e.call(this,n,r),i}})).stop}))),kn}function Bn(t,e,n){var r=n&&n.method;void 0===r&&e instanceof Request&&(r=e.method);var i=void 0!==r?String(r).toUpperCase():"GET",o=e instanceof Request?e.url:En(String(e)),a={state:"start",init:n,input:e,method:i,startClocks:mt(),url:o};return t.notify(a),a}function Fn(t,e,n){var r=function(e){var r=n;if(r.state="resolve","stack"in e||e instanceof Error)r.status=0,r.isAborted=e instanceof DOMException&&e.code===DOMException.ABORT_ERR,r.error=e;else if("status"in e){r.response=e;try{r.responseType=e.constructor===Response&&e.type||""}catch(t){r.responseType=""}r.status=e.status,r.isAborted=!1}t.notify(r)};e.then(a(r),a(r))}var Vn={},Hn="_DATAFLUX_REQUEST_UUID";function zn(){return Ln||(Ln=new Je((function(t){var e=pe(XMLHttpRequest.prototype,"open",{before:Wn}),n=pe(XMLHttpRequest.prototype,"send",{before:function(){$n.call(this,t)}}),r=pe(XMLHttpRequest.prototype,"abort",{before:Gn});return function(){e.stop(),n.stop(),r.stop()}}))),Ln}function Wn(t,e){var n=this[Hn]||Y();this[Hn]=n,Vn[n]={state:"open",method:String(t).toUpperCase(),url:En(String(e))}}function $n(t){var e=Vn[this[Hn]];if(e){var n=e;n.state="start",n.startTime=gt(),n.startClocks=mt(),n.isAborted=!1,n.xhr=this;var r=!1,i=pe(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&o.call(this)}}).stop,o=function(){if(a(),i(),!r){r=!0;var o=e;o.state="complete",o.duration=bt(n.startClocks.timeStamp,yt()),o.status=this.status,t.notify(I(o)),jn.call(this)}},a=rn(this,"loadend",o).stop;t.notify(n)}}function jn(){delete Vn[this[Hn]],delete this[Hn]}function Gn(){var t=Vn[this[Hn]];t&&(t.isAborted=!0)}var Kn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Zn(t){return Nt(L(Kn),t)}function qn(t){return t.nodeType===Node.ELEMENT_NODE}function Yn(t){return qn(t)&&Boolean(t.shadowRoot)}function Qn(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&qn(e.host)}function Xn(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;Yn(t)&&e(t.shadowRoot)}function Jn(t){return Qn(t)?t.host:t.parentNode}function tr(t,e){if(document.readyState===t||"complete"===document.readyState)e();else{var n="complete"===t?ne.LOAD:ne.DOM_CONTENT_LOADED;rn(window,n,e,{once:!0})}}function er(){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 nr(){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 rr,ir={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.path",view_path_group:"view.path_group"},or={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",drift:"_gc.drift"},ar={view:{type:ae.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",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_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:ae.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",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_type:"resource.type",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",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:ae.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:ae.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration"}},action:{type:ae.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"]}},browser_log:{type:ae.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"]}}},sr=4*ct,ur=15*ut,cr=/^([a-z]+)=([a-z0-9-]+)$/,lr="&",fr="_dataflux_s",dr=10,pr=100,hr=[];function vr(t,e){if(void 0===e&&(e=0),rr||(rr=t),t===rr)if(e>=pr)mr();else{var n,r=Er();if(_r()){if(r.lock)return void gr(t,e);if(n=Y(),r.lock=n,yr(r,t.options),(r=Er()).lock!==n)return void gr(t,e)}var i=t.process(r);if(_r()&&(r=Er()).lock!==n)gr(t,e);else{if(i&&function(t,e){if(br(t))return void wr(e);t.expire=String(Et()+ur),yr(t,e)}(i,t.options),_r()&&(!i||!br(i))){if((r=Er()).lock!==n)return void gr(t,e);delete r.lock,yr(r,t.options),i=r}t.after&&t.after(i||r),mr()}}else hr.push(t)}function _r(){return Pt()===Mt.CHROMIUM}function gr(t,e){d((function(){vr(t,e+1)}),dr)}function mr(){rr=void 0;var t=hr.shift();t&&vr(t)}function yr(t,e){On(fr,function(t){return P(W(t),(function(t){return t[0]+"="+t[1]})).join(lr)}(t),ur,e)}function Er(){var t=In(fr),e={};return function(t){return void 0!==t&&(-1!==t.indexOf(lr)||cr.test(t))}(t)&&C(t.split(lr),(function(t){var n=cr.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}})),e}function br(t){return z(t)}function wr(t){On(fr,"",0,t)}var Sr=st;function Tr(t,e,n){var r=new Je,i=new Je,o=h((function(){vr({options:t,process:function(t){return d(t)?void 0:{}},after:l})}),Sr),a=function(){var t=Er();if(d(t))return t;return{}}(),s=Z((function(){var i;vr({options:t,process:function(t){var r=l(t);return i=function(t){var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,o&&!t.id&&(t.id=Y(),t.created=String(Et()));return o}(r),r},after:function(t){i&&!f()&&function(t){a=t,r.notify()}(t),a=t}})}),Sr),u=s.throttled,c=s.cancel;function l(t){return d(t)||(t={}),f()&&(!function(t){return a.id!==t.id||a[e]!==t[e]}(t)?a=t:(a={},i.notify())),t}function f(){return void 0!==a[e]}function d(t){return(void 0===t.created||Et()-Number(t.created)<sr)&&(void 0===t.expire||Et()<Number(t.expire))}return{expandOrRenewSession:u,expandSession:function(){vr({options:t,process:function(t){return f()?l(t):void 0}})},getSession:function(){return a},renewObservable:r,expireObservable:i,expire:function(){c(),wr(t),l({})},stop:function(){v(o)}}}var Cr=ut,Or=sr,Ir=[],Ar=function(t,e,n){var r=new Je,i=new Je,o=Tr(t,e,n);Ir.push((function(){return o.stop()}));var a,s,u=new Qt(Or);function c(){return{id:o.getSession().id,trackingType:o.getSession()[e]}}return Ir.push((function(){return u.stop()})),o.renewObservable.subscribe((function(){u.add(c(),gt()),r.notify()})),o.expireObservable.subscribe((function(){i.notify(),u.closeActive(gt())})),o.expandOrRenewSession(),u.add(c(),wt().relative),a=function(){return o.expandOrRenewSession()},s=on(window,[ne.CLICK,ne.TOUCH_START,ne.KEY_DOWN,ne.SCROLL],a,{capture:!0,passive:!0}),Ir.push(s.stop),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=rn(document,ne.VISIBILITY_CHANGE,e);Ir.push(n.stop);var r=h(e,Cr);Ir.push((function(){v(r)}))}((function(){return o.expandSession()})),{findActiveSession:function(t){return u.find(t)},renewObservable:r,expireObservable:i,expire:o.expire}};var Rr=80*De,xr=32,Nr=3*Me,kr=256*st,Lr=st,Dr={UP:0,FAILURE_DETECTED:1,DOWN:2},Mr={AFTER_SUCCESS:0,AFTER_RESUME:1};function Pr(t,e,n,r,i){e.transportStatus===Dr.UP&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Br(t,e,n,{onSuccess:function(){return Fr(Mr.AFTER_SUCCESS,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),Ur(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function Ur(t,e,n,r){t.transportStatus===Dr.DOWN&&d((function(){Br(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Lr,Fr(Mr.AFTER_RESUME,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(kr,2*t.currentBackoffTime),Ur(t,e,n,r)}})}),t.currentBackoffTime)}function Br(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){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500)}(n)?(e.transportStatus=Dr.UP,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?Dr.FAILURE_DETECTED:Dr.DOWN,e.lastFailureStatus=n.status,o())}))}function Fr(t,e,n,r,i){t===Mr.AFTER_SUCCESS&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: "+Nr/Me+"MiB",source:Ge.AGENT,startClocks:mt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=Vr();o.size()>0;)Pr(o.dequeue(),e,n,r,i)}function Vr(){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>=Nr}}}function Hr(t){return t?t+(-1===t.indexOf("?")?"?":"&")+"precision=ms":t}function zr(t,e,n,r){var i=n?"application/json; charset=UTF-8":void 0,o={transportStatus:Dr.UP,lastFailureStatus:0,currentBackoffTime:Lr,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=Rr&&this.ongoingRequestCount<xr},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:Vr(),queueFullReported:!1},s=function(n,r){return function(t,e,n,r,i){var o=r.data,s=r.bytesCount,u=Hr(t),c=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&s<e;if(c){var l={method:"POST",body:o,keepalive:!0,mode:"cors"};n&&(l.headers={"Content-Type":n}),fetch(u,l).then(a((function(t){"function"==typeof i&&i({status:t.status,type:t.type})})),a((function(){Wr(u,n,o,i)})))}else Wr(u,n,o,i)}(t,e,i,n,r)};return{send:function(e){Pr(e,o,s,t,r)},sendOnExit:function(n){!function(t,e,n,r){var i=r.data,o=r.bytesCount,a=Hr(t),s=!!navigator.sendBeacon&&o<e;if(s)try{var u;if(u=n?new Blob([i],{type:n}):i,navigator.sendBeacon(a,u))return}catch(t){}Wr(a,n,i)}(t,e,i,n)}}}function Wr(t,e,n,r){var i=new XMLHttpRequest;i.open("POST",t,!0),e&&i.setRequestHeader("Content-Type",e),rn(i,"loadend",(function(){"function"==typeof r&&r({status:i.status})}),{once:!0}),i.send(n)}function $r(t){return $r="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},$r(t)}function jr(t){if("object"===$r(t)&&t)t=_e(t);else if(!$(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function Gr(t,e){return"object"===$r(t)&&t?t=_e(t):e&&(t=""+t),t}function Kr(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function Zr(t){return"object"===$r(t)&&t?Kr(_e(t)):$(t)?Kr(t):t}var qr="custom_keys",Yr=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return C(ar,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=A({},ir,i.tags),u=["date","type",qr];C(s,(function(n,r){var i=At(t,n);u.push(r),(i||G(i))&&(e.tags[r]=Gr(i,!0),a.push(jr(r)+"="+jr(i)))}));var c=[],l=A({},or,i.fields);if(C(l,(function(n,r){if(x(n)&&2===n.length){var i=n[1],o=At(t,i);u.push(r),null!=o&&(e.fields[r]=Gr(o),c.push(jr(r)+"="+Zr(o)))}else if($(n)){o=At(t,n);u.push(r),null!=o&&(e.fields[r]=Gr(o),c.push(jr(r)+"="+Zr(o)))}})),t.context&&H(t.context)&&!z(t.context)){var f=[];C(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=Gr(t),c.push(jr(n)+"="+Zr(t))))})),f.length&&(e.fields[qr]=Gr(f),c.push(jr(qr)+"="+Zr(f)))}t.type===ae.LOGGER&&C(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=Gr(t),c.push(jr(n)+"="+Zr(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}},Qr=function(t,e,n,r){this.pushOnlyBuffer=[],this.upsertBuffer={},this.request=t,this.flushController=e,this.messageBytesLimit=n,this.sendContentTypeByJson=r;var i=this;this.flushController.flushObservable.subscribe((function(t){i.flush(t)}))};Qr.prototype.add=function(t){this.addOrUpdate(t)},Qr.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},Qr.prototype.flush=function(t){var e=this.pushOnlyBuffer.concat(L(this.upsertBuffer));if(this.pushOnlyBuffer=[],this.upsertBuffer={},e.length>0){var n={data:this.sendContentTypeByJson?"["+e.join(",")+"]":e.join("\n"),bytesCount:t.bytesCount,flushReason:t.reason};Zn(t.reason)?this.request.sendOnExit(n):this.request.send(n)}},Qr.prototype.addOrUpdate=function(t,e){var r=this.process(t),i=r.processedMessage,o=r.messageBytesCount;o>=this.messageBytesLimit?n.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.messageBytesLimit+"KB."):(this.hasMessageFor(e)&&this.remove(e),this.push(i,o,e))},Qr.prototype.process=function(t){var e="";return{processedMessage:e=this.sendContentTypeByJson?_e(Yr(t).rowData):Yr(t).rowStr,messageBytesCount:Ue(e)}},Qr.prototype.push=function(t,e,n){var r=this.flushController.getMessagesCount()>0?1:0;this.flushController.notifyBeforeAddMessage(e+r),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.flushController.notifyAfterAddMessage()},Qr.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=Ue(e),r=this.flushController.getMessagesCount()>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},Qr.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]};var Xr=Qr;function Jr(t){var e=t.messagesLimit,n=t.bytesLimit,r=t.durationLimit,i=t.pageExitObservable,o=t.sessionExpireObservable,a=new Je;i.subscribe((function(t){return l(t.reason)})),o.subscribe((function(){return l("session_expire")}));var s,u=0,c=0;function l(t){if(0!==c){var e=c,n=u;c=0,u=0,f(),a.notify({reason:t,messagesCount:e,bytesCount:n})}}function f(){p(s),s=void 0}return{flushObservable:a,getMessagesCount:function(){return c},notifyBeforeAddMessage:function(t){u+t>=n&&l("bytes_limit"),c+=1,u+=t,void 0===s&&(s=d((function(){l("duration_limit")}),r))},notifyAfterAddMessage:function(){c>=e?l("messages_limit"):u>=n&&l("bytes_limit")},notifyAfterRemoveMessage:function(t){u-=t,0===(c-=1)&&f()}}}function ti(){var t=f().FTWebViewJavascriptBridge;if(t)return{send:function(e,n){t.sendEvent(JSON.stringify({name:e,data:n}))}}}function ei(){return!!ti()}var ni=3*De,ri="user",ii="global context";var oi=200;function ai(t,e){void 0===e&&(e=Ue);var r,i={},o=!1,a=new Je,s=Z((function(i){r=e(_e(i)),o||(o=function(t,e){return t>ni&&(n.warn("The "+e+"data is over "+ni/De+" KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth."),!0)}(r,t))}),oi).throttled,u={getBytesCount:function(){return r},get:function(){return i},add:function(t,e){i[t]=e,s(i),a.notify()},remove:function(t){delete i[t],s(i),a.notify()},set:function(t){s(i=t),a.notify()},getContext:function(){return rt(i)},setContext:function(t){"object"===et(t)?(i=ze(t),s(i)):u.clearContext(),a.notify()},setContextProperty:function(t,e){i[t]=rt(e),s(i),a.notify()},removeContextProperty:function(t){delete i[t],s(i),a.notify()},clearContext:function(){i={},r=0,a.notify()},changeObservable:a};return u}var si="_gc_s",ui=[];function ci(t,e,n,r){var i=function(t,e,n){return t.storeContextsKey&&$(t.storeContextsKey)?si+"_"+e+"_"+n+"_"+t.storeContextsKey:si+"_"+e+"_"+n}(t,n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}return ui.push(rn(window,ne.STORAGE,(function(t){i===t.key&&e.setContext(o())}))),e.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(e.getContext()))})),e.setContext(R(o(),e.getContext())),e}function li(t){var e=O({},t);return C(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function fi(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}fi.prototype.add=function(t){return this.map.set(t,1),this},fi.prototype.delete=function(t){return this.map.delete(t)},fi.prototype.has=function(t){return this.map.has(t)};var di,pi={log:"log",configuration:"configuration"},hi={debug:"debug",error:"error"},vi=["https://static.guance.com","http://localhost","<anonymous>"],_i={LOGS:"browser-logs-sdk",RUM:"browser-rum-sdk"},gi={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1};function mi(e,n){var r,i=new Je;return gi.telemetryEnabled=n.telemetryEnabled&&ft(n.telemetrySampleRate),di=function(t){if(gi.telemetryEnabled){var n=function(t,e){return R({type:"telemetry",date:yt(),service:t,version:"3.1.19",source:"browser",telemetry:e},void 0!==r?r():{})}(e,t);i.notify(n)}},t=Ei,O(gi,{maxEventsPerPage:n.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){r=t},observable:i,enabled:gi.telemetryEnabled}}function yi(t,n){u(e.debug,t,n),bi(O({type:pi.log,message:t,status:hi.debug},n))}function Ei(t,e){bi(O({type:pi.log,status:hi.error},function(t){if(t instanceof Error){var e=Ee(t);return{error:{kind:e.name,stack:qe(wi(e))},message:e.message}}return{error:{stack:je},message:fe.UNCAUGHT+" "+_e(t)}}(t),e))}function bi(t){di&&gi.sentEventCount<gi.maxEventsPerPage&&(gi.sentEventCount+=1,di(t))}function wi(t){return t.stack=t.stack.filter((function(t){return!t.url||vi.some((function(e){return Ht(t.url,e)}))})),t}var Si="rum",Ti={WITHOUT_SESSION_REPLAY:1,WITH_SESSION_REPLAY:2},Ci={NOT_TRACKED:"0",TRACKED_WITH_SESSION_REPLAY:"1",TRACKED_WITHOUT_SESSION_REPLAY:"2"};function Oi(t,e){var n=Ar(t.cookieOptions,Si,(function(e){return function(t,e){var n;n=function(t){return t===Ci.NOT_TRACKED||t===Ci.TRACKED_WITH_SESSION_REPLAY||t===Ci.TRACKED_WITHOUT_SESSION_REPLAY}(e)?e:ft(t.sessionSampleRate)?ft(t.sessionReplaySampleRate)?Ci.TRACKED_WITH_SESSION_REPLAY:Ci.TRACKED_WITHOUT_SESSION_REPLAY:Ci.NOT_TRACKED;return{trackingType:n,isTracked:Ii(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(fn.SESSION_EXPIRED)})),n.renewObservable.subscribe((function(){e.notify(fn.SESSION_RENEWED)})),{findTrackedSession:function(t){var e=n.findActiveSession(t);if(e&&Ii(e.trackingType)){var r=e.trackingType===Ci.TRACKED_WITH_SESSION_REPLAY?Ti.WITH_SESSION_REPLAY:Ti.WITHOUT_SESSION_REPLAY;return{id:e.id,plan:r,sessionReplayAllowed:r===Ti.WITH_SESSION_REPLAY}}},expire:n.expire,expireObservable:n.expireObservable}}function Ii(t){return t===Ci.TRACKED_WITHOUT_SESSION_REPLAY||t===Ci.TRACKED_WITH_SESSION_REPLAY}var Ai="_dataflulx_usr_id",Ri=1440*ct,xi="initial_document",Ni=[[re.DOCUMENT,function(t){return xi===t}],[re.XHR,function(t){return"xmlhttprequest"===t}],[re.FETCH,function(t){return"fetch"===t}],[re.BEACON,function(t){return"beacon"===t}],[re.CSS,function(t,e){return null!==e.match(/\.css$/i)}],[re.JS,function(t,e){return null!==e.match(/\.js$/i)}],[re.IMAGE,function(t,e){return Nt(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[re.FONT,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[re.MEDIA,function(t,e){return Nt(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function ki(t){var e=t.name;if(!function(t){try{return!!wn(t)}catch(t){return!1}}(e))return re.OTHER;var n=function(t){var e=wn(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=re.OTHER;return C(Ni,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function Li(){for(var t=k(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}var Di=/[^\u0000-\u007F]/;function Mi(t,e){return n=t,(Di.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function Pi(t){if(Ui(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:pt(f-l),trans:pt(d-f),downloadTime:Fi(e,f,d),firstByteTime:Fi(e,l,f)};return f>0&&f<=gt()&&(p.ttfb=pt(f-l)),c!==n&&(p.tcp=pt(c-s),p.connectTime=Fi(e,s,c),Li(s,u,c)&&(p.ssl=pt(c-u),p.sslTime=Fi(e,u,c))),a!==n&&(p.dns=pt(a-o),p.dnsTime=Fi(e,o,a)),Bi(t)&&(p.redirect=pt(i-r),p.redirectTime=Fi(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function Ui(t){var e=Li(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!Bi(t)||Li(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function Bi(t){return t.fetchStart!==t.startTime}function Fi(t,e,n){return{duration:pt(n-e),start:pt(e-t)}}function Vi(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 Hi(t,e){return e&&!function(t,e){var n=[e.rumEndpoint];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),U(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}var zi=/data:(.+)?(;base64)?,/g,Wi=24e3;function $i(t){return!(t.length<=Wi)&&("data:"===t.substring(0,5)&&(t=t.substring(0,Wi),!0))}function ji(t){return t.match(zi)[0]+"[...]"}function Gi(){return void 0!==window.performance&&"getEntries"in performance}function Ki(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&Nt(PerformanceObserver.supportedEntryTypes,t)}function Zi(t,e){var n;if(n=function(n){Yi(t,e,[n])},tr("interactive",(function(){var t,e={entryType:"resource",initiatorType:xi,traceId:"",toJSON:function(){return O({},t,{toJSON:void 0})}};if(Ki("navigation")&&performance.getEntriesByType("navigation").length>0){var r=performance.getEntriesByType("navigation")[0];t=A(r.toJSON(),e)}else{var i=qi();t=A(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},e)}n(t)})),Gi()){var r=performance.getEntries();d((function(){Yi(t,e,r)}))}if(window.PerformanceObserver){var i=a((function(n){Yi(t,e,n.getEntries())})),o=["resource","navigation","longtask","paint"],s=["largest-contentful-paint","first-input","layout-shift","event"];try{C(s,(function(t){new PerformanceObserver(i).observe({type:t,buffered:!0,durationThreshold:40})}))}catch(t){C(s,(function(t){o.push(t)}))}new PerformanceObserver(i).observe({entryTypes:o}),Gi()&&"addEventListener"in performance&&rn(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}Ki("navigation")||function(t){function e(){t(A(qi(),{entryType:"navigation"}))}tr("complete",(function(){d(e)}))}((function(n){Yi(t,e,[n])})),Ki("first-input")||function(t){var e=Et(),n=!1,r=on(window,[ne.CLICK,ne.MOUSE_DOWN,ne.KEY_DOWN,ne.TOUCH_START,ne.POINTER_DOWN],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:gt(),processingEnd:gt(),startTime:t.timeStamp,duration:0,name:""};t.type===ne.POINTER_DOWN?i(e):o(e)}}),{passive:!0,capture:!0}).stop;function i(t){on(window,[ne.POINTER_UP,ne.POINTER_CANCEL],(function(e){e.type===ne.POINTER_UP&&o(t)}),{once:!0})}function o(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&o<Et()-e&&t(i)}}}((function(n){return Yi(t,e,[n])}))}function qi(){var t={},e=performance.timing;for(var n in e)G(e[n])&&(t[n]=0===e[n]?0:vt(e[n]));return t}function Yi(t,e,n){var r=M(n,(function(t){return"resource"===t.entryType||"navigation"===t.entryType||"paint"===t.entryType||"longtask"===t.entryType||"largest-contentful-paint"===t.entryType||"first-input"===t.entryType||"layout-shift"===t.entryType||"event"===t.entryType})),i=M(r,(function(t){return!function(t){return"navigation"===t.entryType&&t.loadEventEnd<=0}(t)&&!function(t,e){return"resource"===e.entryType&&!Hi(t,e.name)}(e,t)}));i.length&&t.notify(fn.PERFORMANCE_ENTRIES_COLLECTED,i)}function Qi(){var t,e=window;if(e.Zone&&(t=r(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=r(new e.MutationObserver(ot),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function Xi(t){var e=I(t);return new Je((function(n){var r,i,o,a,s,u=(r=l,i=pe(history,"pushState",{after:r}),o=pe(history,"replaceState",{after:r}),a=rn(window,ne.POP_STATE,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),c=(s=l,rn(window,ne.HASH_CHANGE,s));function l(){if(e.href!==t.href){var r=I(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){u.stop(),c.stop()}}))}function Ji(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(fn.RUM_EVENT_COLLECTED,(function(t){if(t.type!==ae.VIEW&&n(t))switch(t.type){case ae.ERROR:i.errorCount+=1,r();break;case ae.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case ae.LONG_TASK:i.longTaskCount+=1,r();break;case ae.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var to=100,eo=100;function no(t,e,n,r,i){var o=function(t,e,n){return new Je((function(r){var i,o=[],a=0;o.push(e.subscribe(u),t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(t){U(t,(function(t){return"resource"===t.entryType&&!ro(n,t.name)}))&&u()})),t.subscribe(fn.REQUEST_STARTED,(function(t){ro(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(fn.REQUEST_COMPLETED,(function(t){ro(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=pe(window,"open",{before:u}).stop;return function(){s(),C(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=d((function(){c({hadActivity:!1})}),to),a=void 0!==n?d((function(){return c({hadActivity:!0,end:yt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;p(o),p(r);var n=yt();e||(r=d((function(){c({hadActivity:!0,end:n})}),eo))})),u=function(){i=!0,p(o),p(r),p(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function ro(t,e){return F(t.excludedActivityUrls,e)}var io=st,oo=100,ao={WaitingForMoreClicks:0,WaitingForClicksToStop:1,Finalized:2};function so(t,e){var n,r=[],i=ao.WaitingForMoreClicks;function o(t){t.stopObservable.subscribe(a),r.push(t),p(n),n=d(s,io)}function a(){i===ao.WaitingForClicksToStop&&B(r,(function(t){return t.isStopped()}))&&(i=ao.Finalized,e(r))}function s(){p(n),i===ao.WaitingForMoreClicks&&(i=ao.WaitingForClicksToStop,a())}return o(t),{tryAppend:function(t){return i===ao.WaitingForMoreClicks&&(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))<=oo)&&e.timeStamp-n.timeStamp<=io))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var uo="data-guance-action-name";function co(t,e){return lo(t,uo)||e&&lo(t,e)||go(t,e,ho)||go(t,e,vo)||""}function lo(t,e){var n;if(function(){void 0===po&&(po="closest"in HTMLElement.prototype);return po}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return yo(mo(n.getAttribute(e).trim()))}var fo,po,ho=[function(t,e){if(function(){void 0===fo&&(fo="labels"in HTMLInputElement.prototype);return fo}()){if("labels"in t&&t.labels&&t.labels.length>0)return Eo(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&kt(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&Eo(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 Eo(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=P(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=M(n,(function(t){return Boolean(t)})),(n=P(n,(function(t){return Eo(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 Eo(t.options[0],e)}],vo=[function(t,e){return Eo(t,e)}],_o=10;function go(t,e,n){for(var r=t,i=0;i<=_o&&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 yo(mo(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function mo(t){return t.replace(/\s+/g," ")}function yo(t){return t.length>100?Rt(t,100)+" [...]":t}function Eo(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 Pt()===Mt.IE&&r("script, style"),r("["+uo+"]"),e&&r("["+e+"]"),n}return t.textContent}}var bo,wo=[uo,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],So=[Io,function(t){if(t.id&&!Oo(t.id))return"#"+V(t.id)}],To=[Io,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(!Oo(n))return V(t.tagName)+"."+V(n)}},function(t){return V(t.tagName)}];function Co(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=Ro(r,So,xo,e,n);if(i)return i;n=Ro(r,To,No,e,n)||ko(Ao(r),n),r=r.parentElement}return n}}function Oo(t){return/[0-9]/.test(t)}function Io(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<wo.length;n++){var r;if(r=i(wo[n]))return r}function i(e){if(t.hasAttribute(e))return V(t.tagName)+"["+e+'="'+V(t.getAttribute(e))+'"]'}}function Ao(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=V(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function Ro(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a){var s=ko(a,i);if(n(t,s))return s}}}function xo(t,e){return 1===t.ownerDocument.body.querySelectorAll(e).length}function No(t,e){return 1===t.parentElement.querySelectorAll(function(){if(void 0===bo)try{document.querySelector(":scope"),bo=!0}catch{bo=!1}return bo}()?ko(":scope",e):e).length}function ko(t,e){return e?t+">"+e:t}function Lo(){var t=window.getSelection();return!t||t.isCollapsed}function Do(t){return t.target instanceof Element&&!1!==t.isPrimary}var Mo=3;function Po(t,e){if(function(t){if(U(t,(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e<t.length-(Mo-1);e+=1)if(t[e+Mo-1].event.timeStamp-t[e].event.timeStamp<=st)return!0;return!1}(t))return e.addFrustration(oe.RAGE_CLICK),U(t,Bo)&&e.addFrustration(oe.DEAD_CLICK),e.hasError()&&e.addFrustration(oe.ERROR_CLICK),{isRage:!0};var n=U(t,(function(t){return t.getUserActivity().selection}));return C(t,(function(t){t.hasError()&&t.addFrustration(oe.ERROR_CLICK),Bo(t)&&!n&&t.addFrustration(oe.DEAD_CLICK)})),{isRage:!1}}var Uo='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 Bo(t){return!(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)&&(e=t.event.target,n=Uo,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var Fo=10*st,Vo=5*ut;function Ho(t,e,n){var r,i=new Qt(Vo),o=new Je;t.subscribe(fn.SESSION_RENEWED,(function(){i.reset()})),t.subscribe(fn.VIEW_ENDED,p);var a,s,u,c,l,f=(a={onPointerDown:function(r){return function(t,e,n,r){var i,o,a,s=(i=r,o=t.actionNameAttribute,a=i.target.getBoundingClientRect(),{type:ie.CLICK,target:{width:Math.round(a.width),height:Math.round(a.height),selector:Co(i.target,o)},position:{x:Math.round(i.clientX-a.left),y:Math.round(i.clientY-a.top)},name:co(i.target,o)}),u=!1;return no(e,n,t,(function(t){u=t.hadActivity}),to),{clickActionBase:s,hadActivityOnPointerDown:function(){return u}}}(n,t,e,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var l=Wo(e,r,u,a,s);o(l);var f=no(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()}),Fo),d=f.stop,p=e.subscribe(fn.VIEW_ENDED,(function(t){l.stop(t.endClocks.timeStamp)})),h=i.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){p.unsubscribe(),d(),h.unsubscribe()}))}(n,t,e,i,o,h,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1,scroll:!1},l=[rn(window,ne.POINTER_DOWN,(function(t){Do(t)&&(s=Lo(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),rn(window,ne.SELECTION_CHANGE,(function(){s&&Lo()||(c.selection=!0)}),{capture:!0}),rn(window,ne.POINTER_UP,(function(t){if(Do(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),rn(window,ne.SCROLL,(function(){c.scroll=!0}),{capture:!0,passive:!0}),rn(window,ne.INPUT,(function(){c.input=!0}),{capture:!0})],{stop:function(){C(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){const 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 h(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=so(t,(function(t){!function(t,e){var n=Po(t,e),r=n.isRage;r?(C(t,(function(t){t.discard()})),e.stop(yt()),e.validate(P(t,(function(t){return t.event})))):(e.discard(),C(t,(function(t){t.validate()})))}(t,e)}))}}}var zo={ONGOING:0,STOPPED:1,FINALIZED:2};function Wo(t,e,n,r,i){var o,a=Y(),s=mt(),u=e.add(a,s.relative),c=Ji({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(x(t.action.ids)?Nt(t.action.ids,a):t.action.ids===a)}}),l=zo.ONGOING,f=[],d=new Je;function p(t){l===zo.ONGOING&&(o=t,l=zo.STOPPED,o?u.close(vt(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===zo.STOPPED||l===zo.FINALIZED},clone:function(){return Wo(t,e,n,r,i)},validate:function(e){if(p(),l===zo.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,h=n.longTaskCount,v=O({type:ie.CLICK,duration:o&&bt(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:h},events:Vt(e,[i]),event:i},r);t.notify(fn.AUTO_ACTION_COMPLETED,v),l=zo.FINALIZED}},discard:function(){p(),l=zo.FINALIZED}}}var $o=4e3,jo=500,Go=sr,Ko={ACTIVE:"active",PASSIVE:"passive",HIDDEN:"hidden",FROZEN:"frozen",TERMINATED:"terminated"};function Zo(t){void 0===t&&(t=jo);var e,n=new Qt(Go,$o);i(qo(),gt());var r=on(window,[ne.PAGE_SHOW,ne.FOCUS,ne.BLUR,ne.VISIBILITY_CHANGE,ne.RESUME,ne.FREEZE,ne.PAGE_HIDE],(function(t){i(function(t){if(t.type===ne.FREEZE)return Ko.FROZEN;if(t.type===ne.PAGE_HIDE)return t.persisted?Ko.FROZEN:Ko.TERMINATED;return qo()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=gt()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}const 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=bt(e,u.startTime);o.push({state:u.state,start:ht(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 qo(){return"hidden"===document.visibilityState?Ko.HIDDEN:document.hasFocus()?Ko.ACTIVE:Ko.PASSIVE}function Yo(t,e){var n=Qo(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:$t(ht(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:Qo(t)?void 0:t.context,rawRumEvent:R({action:{id:Y(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:ae.ACTION,view:{in_foreground:e.wasInPageStateAt(Ko.ACTIVE,t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:Qo(t)?{event:t.event,events:t.events}:{}}}function Qo(t){return t.type!==ie.CUSTOM}function Xo(t,e,n,r,i,o){var a=function(t,e,n,r){var i=a(t.rumEndpoint),o=i.batch;function a(i){var o=Jr({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:n,sessionExpireObservable:r});return{batch:new Xr(zr(i,t.batchBytesLimit,t.sendContentTypeByJson,e),o,t.messageBytesLimit,t.sendContentTypeByJson),flushController:o}}return{flushObservable:i.flushController.flushObservable,add:function(t){o.add(t)},upsert:function(t,e){o.upsert(t,e)}}}(t,r,i,o);e.subscribe(fn.RUM_EVENT_COLLECTED,(function(t){t.type===ae.VIEW?a.upsert(t,t.view.id):a.add(t)})),n.subscribe((function(t){a.add(t)}))}var Jo,ta={SYNTHETICS:"synthetics",USER:"user"},ea={"view.url":"string","view.referrer":"string"},na={context:"object"},ra={};function ia(t,e,r,i,o,a,s,u,c,l){ra[ae.VIEW]=ea,ra[ae.ERROR]=O({"error.message":"string","error.stack":"string","error.resource.url":"string"},na,ea),ra[ae.RESOURCE]=O({"resource.url":"string"},na,ea),ra[ae.ACTION]=O({"action.target.name":"string"},na,ea),ra[ae.LONG_TASK]=O({},na,ea);var f={};f[ae.ERROR]=yn(ae.ERROR,t.eventRateLimiterThreshold,l),f[ae.ACTION]=yn(ae.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(fn.RAW_RUM_EVENT_COLLECTED,(function(l){var d,p=l.startTime,h=l.rawRumEvent,v=l.savedCommonContext,_=l.customerContext,g=l.domainContext,m=o.findView(p),y=a.findUrl(p),E=r.findTrackedSession(h.type!==ae.VIEW?p:void 0);if(E&&m&&y){var b=s.findActionId(p),w=s.findAllActionId(p),S=v||c(),T={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(Et()-(Ot()+performance.now())),configuration:{session_sample_rate:dt(t.sessionSampleRate,3),session_replay_sample_rate:dt(t.sessionReplaySampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:ee,env:t.env||"",service:m.service||t.service||"browser",version:m.version||t.version||"",source:"browser",date:yt(),user:{id:i.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?ta.USER:ta.SYNTHETICS,id:E.id},view:{id:m.id,name:m.name,url:y.url,referrer:y.referrer,host:y.host,path:y.path,pathGroup:y.pathGroup,urlQuery:y.urlQuery},action:(d=h,-1!==[ae.ERROR,ae.RESOURCE,ae.LONG_TASK].indexOf(d.type)&&b?{id:b,ids:w}:void 0),display:u.get()},C=Bt(R(T,m,h)),O=R({},S.context,_);z(O)||(C.context=O),"has_replay"in C.session||(C.session.has_replay=S.hasReplay),"view"===C.type&&(C.session.sampled_for_replay=E.sessionReplayAllowed),z(S.user)||(C.user=R({is_signin:"T",is_login:!0},S.user)),function(t,e,r,i){if(e){var o=vn(t,ra[t.type],(function(t){return e(t,r)}));if(!1===o&&t.type!==ae.VIEW)return!1;!1===o&&n.warn("Can't dismiss view events using beforeSend!")}var a=!1;i[t.type]&&(a=i[t.type].isLimitReached());return!a}(C,t.beforeSend,g,f)&&(z(C.context)&&delete C.context,e.notify(fn.RUM_EVENT_COLLECTED,C))}}))}function oa(){return Jo||(Jo=new Je((function(t){var e=Z((function(){t.notify(aa())}),200).throttled;return rn(window,ne.RESIZE,e,{capture:!0,passive:!0}).stop}))),Jo}function aa(){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 sa=sr;var ua=sr;function ca(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}function la(t,n,r){var i=new Je;return function(t){var n=nn([e.error]).subscribe((function(e){t.notify({startClocks:mt(),message:e.message,stack:e.stack,source:Ge.CONSOLE,handling:le.HANDLED,handlingStack:e.handlingStack})}))}(i),function(t){Ne((function(e,n){t.notify(Ke({stackTrace:e,originalError:n,startClocks:mt(),nonErrorPrefix:fe.UNCAUGHT,source:Ge.SOURCE,handling:le.UNHANDLED}))}))}(i),function(t,e){var n=sn(0,[(an.cspViolation,an.intervention)]).subscribe((function(t){e.notify({startClocks:mt(),message:t.message,stack:t.stack,type:t.subtype,source:Ge.REPORT,handling:le.UNHANDLED})}))}(0,i),i.subscribe((function(e){t.notify(fn.RAW_ERROR_COLLECTED,{error:e})})),function(t,e){return t.subscribe(fn.RAW_ERROR_COLLECTED,(function(n){t.notify(fn.RAW_RUM_EVENT_COLLECTED,O({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:Y(),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:ae.ERROR,view:{in_foreground:e.wasInPageStateAt(Ko.ACTIVE,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=Ke({stackTrace:r instanceof Error?Ee(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:fe.PROVIDED,source:Ge.CUSTOM,handling:le.HANDLED});t.notify(fn.RAW_ERROR_COLLECTED,{customerContext:e.context,savedCommonContext:n,error:i})}}}(t,r)}var fa=10*ut;var da=10*ut;function pa(t,e,n,r){var i={},o=function(t,e){return{stop:t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(t){for(var n=0;n<t.length;n++){var r=t[n];"navigation"===r.entryType&&e({fetchStart:r.fetchStart,responseEnd:r.responseEnd,domComplete:r.domComplete,domContentLoaded:r.domContentLoadedEventEnd,domInteractive:r.domInteractive,loadEvent:r.loadEventEnd,loadEventEnd:r.loadEventEnd,loadEventStart:r.loadEventStart,domContentLoadedEventEnd:r.domContentLoadedEventEnd,domContentLoadedEventStart:r.domContentLoadedEventStart,firstByte:r.responseStart>=0&&r.responseStart<=gt()?r.responseStart:void 0})}})).unsubscribe}}(t,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})),a=function(t){var e;if(void 0===t&&(t=window),"hidden"===document.visibilityState)e=0;else{e=1/0;var n=on(t,[ne.PAGE_HIDE,ne.VISIBILITY_CHANGE],(function(t){t.type!==ne.PAGE_HIDE&&"hidden"!==document.visibilityState||(e=t.timeStamp,n())}),{capture:!0}).stop}return{geTimeStamp(){return e},stop:function(){n&&n()}}}(),s=o.stop,u=function(t,e,n){return{stop:t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var r=kt(t,(function(t){return"paint"===t.entryType&&"first-contentful-paint"===t.name&&t.startTime<e.geTimeStamp()&&t.startTime<fa}));r&&n(r.startTime)})).unsubscribe}}(t,a,(function(t){i.firstContentfulPaint=t,r()})),c=u.stop,l=function(t,e,n,r,i){var o=1/0,a=on(r,[ne.POINTER_DOWN,ne.KEY_DOWN],(function(t){o=t.timeStamp}),{capture:!0,once:!0}).stop,s=0,u=t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var r,a=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,(function(t){return"largest-contentful-paint"===t.entryType&&t.startTime<o&&t.startTime<n.geTimeStamp()&&t.startTime<da&&t.size>s}));a&&(a.element&&(r=Co(a.element,e.actionNameAttribute)),i({value:a.startTime,targetSelector:r}),s=a.size)})).unsubscribe;return{stop:function(){a(),u()}}}(t,e,a,window,(function(t){i.largestContentfulPaint=t,r()})),f=l.stop,d=function(t,e,n,r){return{stop:t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var i=kt(t,(function(t){return"first-input"===t.entryType&&t.startTime<n.geTimeStamp()}));if(i){var o,a=bt(i.startTime,i.processingStart);i.target&&qn(i.target)&&(o=Co(i.target,e.actionNameAttribute)),r({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}})).unsubscribe}}(t,e,a,(function(t){i.firstInput=t,r()})),p=d.stop;return{stop:function(){s(),c(),f(),p(),a.stop()},initialViewMetrics:i}}var ha=st;function va(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=ha);return new Je((function(t){function n(){var e,n,r,i;t.notify((e=nr(),n=aa().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=Z(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(a(r.throttled));o.observe(i);var s=rn(window,ne.SCROLL,r.throttled,{passive:!0});return function(){r.cancel(),o.unobserve(i),s.stop()}}}))}());var i=0,o=0,s=0,u=r.subscribe((function(t){var r=t.scrollDepth,a=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=gt();s=bt(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:a,maxScrollHeight:o,maxScrollHeightTime:s})}));return{stop:function(){return u.unsubscribe()}}}function _a(t,e,n,r,i,o){var a=r===se.INITIAL_LOAD,s=!0,u=[];function c(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}var l=no(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(bt(i.timeStamp,t.end)),c())})).stop;return{setLoadEvent:function(t){a&&(a=!1,u.push(t),c())},stop:function(){l(),u.length>0&&o(Math.max.apply(Math,u))}}}function ga(t,e,n){if(!Ki("layout-shift"))return{stop:ot};var r,i=0;n({value:0});var o=function(){var t,e,n=0,r=0;return{update:function(i){var o;return void 0===t||i.startTime-e>=ba||i.startTime-t>=5*Ea?(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}}}}();return{stop:t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(t=>{for(var a of t)if("layout-shift"===a.entryType&&!a.hadRecentInput){var s=o.update(a),u=s.cumulatedValue;if(s.isMaxValue){var c=ma(a.sources);r=c?new WeakRef(c):void 0}if(u>i){i=u;c=r&&r.deref();n({value:dt(i,4),targetSelector:c&&Co(c,e.actionNameAttribute)})}}})).unsubscribe}}function ma(t){if(t){var e=kt(t,(function(t){return!!t.node&&qn(t.node)}));return e&&e.node}}var ya,Ea=5*st,ba=st;var wa=0,Sa=1/0,Ta=0;var Ca=function(){return ya?wa:window.performance.interactionCount||0},Oa=10,Ia=1*ut;function Aa(t,e,n,r){if(!(Ki("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ot,stop:ot};var i=function(t){"interactionCount"in performance||ya||(ya=new window.PerformanceObserver(a((function(t){t.getEntries().forEach((function(t){const e=t;e.interactionId&&(Sa=Math.min(Sa,e.interactionId),Ta=Math.max(Ta,e.interactionId),wa=(Ta-Sa)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===se.INITIAL_LOAD?0:Ca(),n={stopped:!1};function r(){return Ca()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),o=i.getViewInteractionCount,s=i.stopViewInteractionCount;let u=1/0;var c,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(Oa)}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<Oa||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(o),f=-1;return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,Ia),targetSelector:c}:o()?{value:0}:void 0},setViewEnd:function(t){u=t,s()},stop:r.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(n){for(var r of n)("event"===r.entryType||"first-input"===r.entryType)&&r.interactionId&&r.startTime>=e&&r.startTime<=u&&l.process(r);var i=l.estimateP98Interaction();i&&i.duration!==f&&(f=i.duration,c=i.target&&qn(i.target)?Co(i.target,t.actionNameAttribute):void 0)})).unsubscribe}}var Ra=5*ut;var xa=3e3,Na=5*ut,ka=5*ut;function La(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=Y(),p=new Je,_={},g=0,m=I(r),y=!0;a&&(u=a.name,c=a.service,l=a.version);var E={id:f,name:u,startClocks:o,service:c,version:l};t.notify(fn.BEFORE_VIEW_CREATED,E),t.notify(fn.VIEW_CREATED,E);var b=Z(B,xa,{leading:!1}),w=b.throttled,S=b.cancel,T=function(t,e,n,r,i,o){var a={},s=_a(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=va(0,o,(function(t){a.scroll=t})).stop,f=ga(t,n,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=Aa(n,o.relative,i,t),p=d.stop,h=d.getInteractionToNextPaint;return{stop:function(){u(),f(),l()},stopINPTracking:p,setLoadEvent:c,setViewEnd:d.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=h(),a}}}(t,e,n,w,i,o),C=T.setLoadEvent,O=T.stop,A=T.getCommonViewMetrics,R=T.stopINPTracking,x=T.setViewEnd,N=i===se.INITIAL_LOAD?pa(t,n,C,w):{stop:ot,initialViewMetrics:{}},k=N.stop,L=N.initialViewMetrics,D=function(t,e,n){var r=Ji({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{scheduleStop:function(){d(r.stop,Ra)},eventCounts:r.eventCounts}}(t,f,w),M=D.scheduleStop,P=D.eventCounts,U=h(B,Na);function B(){S(),g+=1;var e=void 0===s?yt():s.timeStamp;t.notify(fn.VIEW_UPDATED,{customTimings:_,documentVersion:g,id:f,name:u,service:c,version:l,loadingType:i,location:m,startClocks:o,commonViewMetrics:A(),initialViewMetrics:L,duration:bt(o.timeStamp,e),isActive:void 0===s,sessionIsActive:y,eventCounts:P})}B();var F={name:u,service:c,version:l,stopObservable:p,end:function(e){s||(s=Vt(e&&e.endClocks,mt()),y=Vt(e&&e.sessionIsActive,!0),t.notify(fn.VIEW_ENDED,{endClocks:s}),t.notify(fn.AFTER_VIEW_ENDED,{endClocks:s}),v(U),x(s.relative),O(),B(),d((function(){F.stop()}),ka))},stop:function(){k(),M(),R(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<lt}(e)?e:bt(o.timeStamp,e);_[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,w()}}};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(se.INITIAL_LOAD,wt(),a);return e.subscribe(fn.SESSION_RENEWED,(function(){l=u(se.ROUTE_CHANGE,void 0,{name:l.name,service:l.service,version:l.version})})),e.subscribe(fn.SESSION_EXPIRED,(function(){l.end({sessionIsActive:!1})})),e.subscribe(fn.PAGE_EXITED,(function(t){t.reason===Kn.UNLOADING&&l.end()})),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||!zt(n.hash)&&Wt(n.hash)!==Wt(e.hash))return l.end(),void(l=u(se.ROUTE_CHANGE))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=yt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(se.ROUTE_CHANGE,e,t)},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function Da(t,e,n,r,i,o,a,s){return t.subscribe(fn.VIEW_UPDATED,(function(n){t.notify(fn.RAW_RUM_EVENT_COLLECTED,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:ae.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:At(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_target_selector:At(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:ht(At(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:ht(At(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:ht(At(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:ht(At(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:ht(At(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:ht(At(t.initialViewMetrics,"firstInput.delay")),first_input_time:ht(At(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:At(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:ht(At(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:At(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:ht(At(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:At(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:ht(At(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:$t(ht(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:ht(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:ht(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!i||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};z(t.customTimings)||(a.view.custom_timings=(s=t.customTimings,u=ht,c={},C(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=R(a,{view:Ma(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),La(n,t,r,e,i,!e.trackViewsManually,s)}function Ma(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=ht(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return G(r)&&G(e)&&r!==e&&(c.tti=ht(r-e)),G(i)&&G(e)&&i!==e&&(c.dom_ready=ht(i-e)),G(a)&&G(e)&&a!==e&&(c.load=ht(a-e)),G(s)&&G(u)&&s!==u&&(c.resource_load_time=ht(s-u)),G(o)&&G(r)&&o!==r&&(c.dom=ht(o-r)),c}}function Pa(){this.buffer=new Uint8Array(8),Ua().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Ua(){return window.crypto||window.msCrypto}function Ba(t){this._spanId=new Pa,this._traceId=new Pa,this._traceSampled=t}function Fa(){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 Va(t,e,n){this._spanId=Fa(),this._traceId=Fa(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=X(e).getParse(),this._traceSampled=n}function Ha(t,e){this._traceId=new Pa,this._spanId=new Pa,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function za(t,e){this._traceId=new Pa,this._spanId=new Pa,this._traceSampled=e}function Wa(t,e){this._traceId=new Pa,this._spanId=new Pa,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function $a(t,e){this._traceId=new Pa,this._spanId=new Pa,this._traceSampled=t,this.isHexTraceId=e}function ja(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Ga(t,e,n,r){if(n.findTrackedSession()){var i=kt(t.allowedTracingUrls,(function(t){return F([t.match],e.url,!0)}));if(i){var o,a=!G(t.tracingSampleRate)||ft(t.tracingSampleRate);switch(i.traceType){case ce.DDTRACE:o=new Ba(a);break;case ce.SKYWALKING_V3:o=new Va(t,e.url,a);break;case ce.ZIPKIN_MULTI_HEADER:o=new Wa(t,a);break;case ce.JAEGER:o=new Ha(t,a);break;case ce.W3C_TRACEPARENT:o=new $a(a);break;case ce.W3C_TRACEPARENT_64:o=new $a(a,!0);break;case ce.ZIPKIN_SINGLE_HEADER:o=new za(t,a)}if(o&&o.isTracingSupported()){e.traceId=o.getTraceId(),e.spanId=o.getSpanId(),e.traceSampled=a;var s=o.makeTracingHeaders();if(t.injectTraceHeader){var u=t.injectTraceHeader(I(e));"object"===et(u)&&C(u,(function(t,e){"string"===et(t)&&(s[e]=t)}))}r(s)}}}}Pa.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(){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]}},Ba.prototype={isTracingSupported:function(){return void 0!==Ua()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return 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()}}},Va.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getSkyWalkingSw8:function(){try{var t=String(q(this._traceId)),e=String(q(this._spanId)),n=String(q(this._applicationId+"_rum_"+this.env)),r=String(q(this._version)),i=String(q(window.location.href)),o=String(q(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},Ha.prototype={isTracingSupported:function(){return void 0!==Ua()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return 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()}}},za.prototype={isTracingSupported:function(){return void 0!==Ua()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this._traceId.toPaddedHexadecimalString()},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},Wa.prototype={isTracingSupported:function(){return void 0!==Ua()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return 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"}}},$a.prototype={isTracingSupported:function(){return void 0!==Ua()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return 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?O(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var Ka=1;function Za(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:ja,traceFetch:function(n){return Ga(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=I(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):x(n.init.headers)?C(n.init.headers,(function(t){e.push(t)})):n.init.headers&&C(n.init.headers,(function(t,n){e.push([n,t])}));var r={};C(e.concat(W(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),C(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Ga(t,n,e,(function(t){C(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=zn().subscribe((function(r){var i=r;if(Hi(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=qa(),t.notify(fn.REQUEST_STARTED,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(fn.REQUEST_COMPLETED,{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:ue.XHR,url:i.url,xhr:i.xhr})}}))}(t,e,r),function(t,e,n){var r=Un().subscribe((function(r){var i=r;if(Hi(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=qa(),t.notify(fn.REQUEST_STARTED,{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 s(){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;C(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(a((function(e){e.done?s():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?s():t())})),a((function(t){e(t)})))}()}(n.body,(function(){e(bt(t.startClocks.timeStamp,yt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(bt(t.startClocks.timeStamp,yt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(fn.REQUEST_COMPLETED,{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:ue.FETCH,url:i.url,response:i.response,init:i.init,input:i.input})}))}}))}(t,e,r)}function qa(){var t=Ka;return Ka+=1,t}var Ya=new fi;function Qa(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=M(e,(function(t){return!Ya.has(t)}));return n=M(n,(function(t){return Ui(t)})),1===(n=M(n,(function(e){return n=e,r=t.startClocks.relative,i=Xa({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Xa(n)<=Tt(i,o);var n,r,i,o}))).length?(Ya.add(n[0]),n[0].toJSON()):void 0}}}function Xa(t){return Tt(t.startTime,t.duration)}function Ja(t,e,n,r){t.subscribe(fn.REQUEST_COMPLETED,(function(i){var o=function(t,e,n,r){var i=Qa(t),o=i?St(i.startTime):t.startClocks,a=es(e,n,o),s=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:Y()}}}(t);if(!a&&!s)return;var u=t.type===ue.XHR?re.XHR:re.FETCH,c=i?ns(i):void 0,l=function(t,e,n){return t.wasInPageStateDuringPeriod(Ko.FROZEN,e.relative,n)?void 0:ht(n)}(r,o,t.duration),f=X(t.url).getParse(),d=R({date:o.timeStamp,resource:{id:Y,type:u,duration:l,method:t.method,status:t.status,statusGroup:it(t.status),url:$i(t.url)?ji(t.url):t.url,urlHost:f.Host,urlPath:f.Path,urlPathGroup:Q(f.Path),urlQuery:J(t.url)},type:ae.RESOURCE},s,c);return{startTime:o.relative,rawRumEvent:d,domainContext:{performanceEntry:i,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(i,e,n,r);o&&t.notify(fn.RAW_RUM_EVENT_COLLECTED,o)})),t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(i){for(var o=0;o<i.length;o++){var a=i[o];if("resource"===a.entryType&&("xmlhttprequest"!==(u=a).initiatorType&&"fetch"!==u.initiatorType)&&!Mi(a.name,e.resourceUrlLimit)){var s=ts(a,e,n,r);s&&t.notify(fn.RAW_RUM_EVENT_COLLECTED,s)}}var u}))}function ts(t,e,n,r){var i=St(t.startTime),o=es(e,n,i),a=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t);if(o||a){var s=ki(t),u=ns(t),c=X(t.name).getParse(),l="";0!==t.responseStatus?l=t.responseStatus:!function(t){return t.encodedBodySize>0&&t.transferSize>0&&t.transferSize<t.encodedBodySize||null}(t)?function(t){return!(t.transferSize>0)&&(t.decodedBodySize>0||t.duration<30)}(t)&&(l=200):l=304;var f=R({date:i.timeStamp,resource:{id:Y(),type:s,url:t.name,urlHost:c.Host,urlPath:c.Path,urlPathGroup:Q(c.Path),urlQuery:J(t.name),method:"GET",status:l,statusGroup:it(l)},type:ae.RESOURCE},a,u);return{startTime:i.relative,rawRumEvent:f,domainContext:{performanceEntry:t}}}}function es(t,e,n){return e.findTrackedSession(n.relative)}function ns(t){return{resource:R({},{duration:(e=t,0===e.duration&&e.startTime<e.responseEnd?pt(e.responseEnd-e.startTime):pt(e.duration))},Vi(t),Pi(t))};var e}var rs={sdkVersion:"3.1.19",sdkName:"df_web_rum_sdk"};function is(t){if(t.applicationId){var e=function(t){return t.site||t.datakitOrigin||t.datakitUrl?!(t.site&&!t.clientToken&&(n.error("clientToken is not configured, no RUM data will be collected."),1)):(n.error("datakitOrigin or site is not configured, no RUM data will be collected."),!1)}(t);if(e)if(void 0===t.sessionReplaySampleRate||Lt(t.sessionReplaySampleRate)){var r=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&n.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!x(t.allowedTracingUrls))return void n.error("Allowed Tracing URLs should be an array");var e=[];return C(t.allowedTracingUrls,(function(r){var i;xt(r)?e.push({match:r,traceType:Vt(t.traceType,ce.DDTRACE)}):"object"===et(i=r)&&xt(i.match)&&$(i.traceType)?e.push(r):n.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)})),e}if(void 0!==t.allowedTracingOrigins){if(!x(t.allowedTracingOrigins))return void n.error("Allowed Tracing Origins should be an array");e=[];return C(t.allowedTracingOrigins,(function(n){var r=os(n,Vt(t.traceType,ce.DDTRACE));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!x(t.allowedDDTracingOrigins))return void n.error("Allowed Tracing Origins should be an array");e=[];return C(t.allowedDDTracingOrigins,(function(n){var r=os(n,Vt(t.traceType,ce.DDTRACE));r&&e.push(r)})),e}return[]}(t);if(r)if(void 0===t.tracingSampleRate||Lt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||x(t.excludedActivityUrls)){var i=Mn(t);if(i){var o,a,s=!!Vt(t.trackUserInteractions,t.trackInteractions);return O({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Vt(t.sessionReplaySampleRate,100),tracingSampleRate:t.tracingSampleRate,allowedTracingUrls:r,injectTraceHeader:t.injectTraceHeader&&c(t.injectTraceHeader,"injectTraceHeader threw an error:"),excludedActivityUrls:Vt(t.excludedActivityUrls,[]),trackUserInteractions:s,trackViewsManually:!!t.trackViewsManually,traceType:Vt(t.traceType,ce.DDTRACE),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:(o=Dn,a=t.defaultPrivacyLevel,U(D(o),(function(t){return o[t]===a}))?t.defaultPrivacyLevel:Dn.MASK_USER_INPUT)},i,rs)}}else n.error("Excluded Activity Urls should be an array");else n.error("Tracing Sample Rate should be a number between 0 and 100")}else n.error("Premium Sample Rate should be a number between 0 and 100")}else n.error("Application ID is not configured, no RUM data will be collected.")}function os(t,e){var r;if("string"==typeof t?r=t:t instanceof RegExp?r=function(e){return t.test(bn(e))}:"function"==typeof t&&(r=function(e){return t(bn(e))}),void 0!==r)return{match:r,traceType:e};n.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}var as={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},ss={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},us={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},cs={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},ls={Play:0,Pause:1},fs={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Dn.ALLOW,MASK:Dn.MASK,MASK_USER_INPUT:Dn.MASK_USER_INPUT},ds="data-gc-privacy",ps="allow",hs="mask",vs="mask-user-input",_s="hidden",gs="gc-privacy-allow",ms="gc-privacy-mask",ys="gc-privacy-mask-user-input",Es="gc-privacy-hidden",bs="***",ws="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Ss={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Ts(t,e,n){if(n&&n.has(t))return n.get(t);var r=Jn(t),i=r?Ts(r,e):e,o=Cs(Os(t),i);return n&&n.set(t,o),o}function Cs(t,e){switch(e){case fs.HIDDEN:case fs.IGNORE:return e}switch(t){case fs.ALLOW:case fs.MASK:case fs.MASK_USER_INPUT:case fs.HIDDEN:case fs.IGNORE:return t;default:return e}}function Os(t){if(qn(t)){var e=t.getAttribute(ds);if("BASE"===t.tagName)return fs.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return fs.MASK;if("hidden"===n.type)return fs.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return fs.MASK}return e===_s||t.classList.contains(Es)?fs.HIDDEN:e===hs||t.classList.contains(ms)?fs.MASK:e===vs||t.classList.contains(ys)?fs.MASK_USER_INPUT:e===ps||t.classList.contains(gs)?fs.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)?fs.IGNORE:void 0}}function Is(t,e){switch(e){case fs.MASK:case fs.HIDDEN:case fs.IGNORE:return!0;case fs.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(t)?As(t.parentNode):As(t);default:return!1}}function As(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!!Ss[e.tagName]}var Rs=function(t){return t.replace(/\S/g,"x")};function xs(t,e,n){var r=t.parentElement&&t.parentElement.tagName,i=t.textContent||"";if(!e||i.trim()){var o=n;if("SCRIPT"===r)i=bs;else if(o===fs.HIDDEN)i=bs;else if(Is(t,o))if("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r){if(!i.trim())return}else i="OPTION"===r?bs:Rs(i);return i}}var Ns=new WeakMap;function ks(t){return Ns.has(t)}function Ls(t){return Ns.get(t)}function Ds(t,e){var n=t.tagName,r=t.value;if(Is(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i||"range"===i))return r;if(!r||"OPTION"===n)return;return bs}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Ms=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Ps=/^[A-Za-z]+:|^\/\//,Us=/^data:.*,/i;function Bs(t,e){return t.replace(Ms,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Ps.test(s)||Us.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(${u}${function(t,e){try{return wn(t,e).href}catch(e){return t}}(s,e)}${u})`}))}function Fs(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch{}return e?Bs(((n=Array.from(e,Pt()===Mt.SAFARI?Hs:Vs).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 Vs(t){return function(t){return"styleSheet"in t}(t)&&Fs(t.styleSheet)||t.cssText}function Hs(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){const e=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(e,"$1\\$2")}return Vs(t)}function zs(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 Ws(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var $s=/^[^ \t\n\r\u000c]+/,js=/^[, \t\n\r\u000c]+/;var Gs={INITIAL_FULL_SNAPSHOT:0,SUBSEQUENT_FULL_SNAPSHOT:1,MUTATION:2};function Ks(t,e,n){return Zs(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function Zs(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:ss.Document,childNodes:qs(t,e),adoptedStyleSheets:zs(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=Qn(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:ss.DocumentFragment,childNodes:qs(t,e),isShadowRoot:n,adoptedStyleSheets:n?zs(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:ss.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=Js(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=Cs(Os(t),e.parentNodePrivacyLevel);var o;if(i===fs.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:ss.Element,tagName:n,attributes:{rr_width:s+"px",rr_height:u+"px",[ds]:_s},childNodes:[],isSVG:r}}if(i===fs.IGNORE)return;var c=function(t,e,n){if(e===fs.HIDDEN)return{};for(var r={},i=Js(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=Ys(t,e,s,n.configuration);null!==u&&(r[s]=tu(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=Ds(t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===fs.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=Fs(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=Fs(t.sheet))&&(r._cssText=d)}var p,h,v=t;"input"!==i||"radio"!==v.type&&"checkbox"!==v.type||(e===fs.ALLOW?r.checked=!!v.checked:Is(v,e)&&delete r.checked);if("audio"===i||"video"===i){var _=t;r.rr_mediaState=_.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case Gs.INITIAL_FULL_SNAPSHOT:p=Math.round(t.scrollTop),h=Math.round(t.scrollLeft),(p||h)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:h});break;case Gs.SUBSEQUENT_FULL_SNAPSHOT:if(g.elementsScrollPositions.has(t)){const e=g.elementsScrollPositions.get(t);p=e.scrollTop,h=e.scrollLeft}}h&&(r.rr_scrollLeft=h);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(function(t){return t.childNodes.length>0||Yn(t)}(t)&&"style"!==n){l=qs(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:O({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:ss.Element,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=xs(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:ss.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:ss.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var r=Ls(t)||Qs++,i=n;return i.id=r,function(t,e){Ns.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function qs(t,e){var n=[];return Xn(t,(function(t){var r=Zs(t,e);r&&n.push(r)})),n}function Ys(t,e,n,r){if(e===fs.HIDDEN)return null;var i=t.getAttribute(n);if(e===fs.MASK&&n!==ds&&!wo.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return bs}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return ws;if("onerror"===n)return null}if("A"===o&&"href"===n)return bs;if(i&&Ht(n,"data-"))return bs;if("IFRAME"===o&&"srcdoc"===n)return bs}return i&&"string"==typeof i&&$i(i)?ji(i):i}var Qs=1;var Xs=/[^a-z1-6-_]/;function Js(t){var e=(t+"").toLowerCase().trim();return Xs.test(e)?"div":e}function tu(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Ws(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(js),!(n>=e.length);){var o=r($s);if(","===o.slice(-1))o=Ws(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Ws(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?Bs(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?Ws(t,r):r:Ws(t,r):r;var i}function eu(t){return Boolean(t.changedTouches)}function nu(t,e){return{data:O({source:t},e),type:as.IncrementalSnapshot,timestamp:yt()}}function ru(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}}var iu=100,ou=16;function au(t){var e=ot,n=[];function r(){e(),t(n),n=[]}var i=Z(r,ou,{leading:!1}),o=i.throttled,s=i.cancel;return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback){var n=window.requestIdleCallback(a(t),e);return function(){return window.cancelIdleCallback(n)}}n=window.requestAnimationFrame(a(t));return function(){return window.cancelAnimationFrame(n)}}(o,{timeout:iu})),Array.prototype.push.apply(n,t)},flush:r,stop:function(){e(),s()}}}function su(t,e,n,r){var i=Qi();if(!i)return{stop:ot,flush:ot};var o=au((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){uu(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!ks(e)&&!Qn(e))return!1;e=Jn(e)}return!0}(t.target)&&Ts(t.target,n.defaultPrivacyLevel,i)!==fs.HIDDEN})),a=function(t,e,n,r){var i=new Set,o=new Map;for(var a of t)a.addedNodes.forEach((function(t){i.add(t)})),a.removedNodes.forEach((function(t){i.has(t)||o.set(t,a.target),i.delete(t)}));var s=Array.from(i);u=s,u.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 u;var c=new Set,l=[];for(var f of s)if(!_(f)){var d=Ts(f.parentNode,e.defaultPrivacyLevel,r);if(d!==fs.HIDDEN&&d!==fs.IGNORE){var p=Zs(f,{serializedNodeIds:c,parentNodePrivacyLevel:d,serializationContext:{status:Gs.MUTATION,shadowRootsController:n},configuration:e});if(p){var h=Jn(f);l.push({nextId:g(f),parentId:Ls(h),node:p})}}}var v=[];return o.forEach((function(t,e){ks(e)&&v.push({parentId:Ls(t),id:Ls(e)})})),{adds:l,removes:v,serializedNodeIds:c,hasBeenSerialized:_};function _(t){return ks(t)&&c.has(Ls(t))}function g(t){for(var e=t.nextSibling;e;){if(ks(e))return Ls(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 ks(t)&&c.has(Ls(t))}var f=function(t,e,n){var r=[],i=new Set,o=t.filter((function(t){return!i.has(t.target)&&(i.add(t.target),!0)}));for(var a of o){if(a.target.textContent!==a.oldValue){var s=Ts(Jn(a.target),e.defaultPrivacyLevel,n);s!==fs.HIDDEN&&s!==fs.IGNORE&&r.push({id:Ls(a.target),value:Vt(xs(a.target,!1,s))})}}return r}(o.filter((function(t){return"characterData"===t.type&&!l(t.target)})),n,i),d=function(t,e,n){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;for(var s of o){if(s.target.getAttribute(s.attributeName)!==s.oldValue){var u,c=Ts(s.target,e.defaultPrivacyLevel,n),l=Ys(s.target,c,s.attributeName,e);if("value"===s.attributeName){var f=Ds(s.target,c);if(void 0===f)continue;u=f}else u="string"==typeof l?l:null;var d=a.get(s.target);d||(d={id:Ls(s.target),attributes:{}},r.push(d),a.set(s.target,d)),d.attributes[s.attributeName]=u}}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(s.takeRecords()),t,e,n)})),s=new i(a(o.addMutations));return s.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){s.disconnect(),o.stop()},flush:function(){o.flush()}}}function uu(t,e){Yn(t)&&e(t.shadowRoot),Xn(t,(function(t){return uu(t,e)}))}var cu=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},lu=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}},fu=50,du=100,pu=200,hu=new WeakMap;let vu=1;function _u(t){return hu.has(t)||hu.set(t,vu++),hu.get(t)}function gu(t){var e,n,r,i,o,a,s,u,c,l=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,su(e,n,r,document)),f=function(t){var e=Z((function(e){var n=bu(e);if(ks(n)){var r=yu(e);if(!r)return;var i={id:Ls(n),timeOffset:0,x:r.x,y:r.y};t([i],eu(e)?us.TouchMove:us.MouseMove)}}),fu,{trailing:!1}),n=e.cancel,r=e.throttled,i=on(document,[ne.MOUSE_MOVE,ne.TOUCH_MOVE],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb),d=function(t,e){var n=function(n){var r=bu(n);if(Ts(r,e)!==fs.HIDDEN&&ks(r)){var i,o=Ls(r),a=mu[n.type];if(a!==cs.Blur&&a!==cs.Focus){var s=yu(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=O({id:_u(n)},nu(us.MouseInteraction,i));t(u)}};return on(document,Object.keys(mu),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration.defaultPrivacyLevel),p=function(t,e,n){var r=Z((function(r){var i=bu(r);if(i&&Ts(i,e)!==fs.HIDDEN&&ks(i)){var o=Ls(i),a=i===document?{scrollTop:nr(),scrollLeft:er()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),du),i=r.cancel,o=r.throttled,a=rn(document,ne.SCROLL,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration.defaultPrivacyLevel,t.elementsScrollPositions),h=function(t){return oa().subscribe(t).unsubscribe}(t.viewportResizeCb),v=Eu(t.inputCb,t.configuration.defaultPrivacyLevel),_=(i=t.mediaInteractionCb,o=t.configuration.defaultPrivacyLevel,a=function(t){var e=bu(t);e&&Ts(e,o)!==fs.HIDDEN&&ks(e)&&i({id:Ls(e),type:t.type===ne.PLAY?ls.Play:ls.Pause})},on(document,[ne.PLAY,ne.PAUSE],a,{capture:!0,passive:!0}).stop),g=function(t){function e(t,e){t&&ks(t.ownerNode)&&e(Ls(t.ownerNode))}var n=[pe(CSSStyleSheet.prototype,"insertRule",{before:function(n,r){e(this,(function(e){return t({id:e,adds:[{rule:n,index:r}]})}))}}),pe(CSSStyleSheet.prototype,"deleteRule",{before:function(n){e(this,(function(e){return t({id:e,removes:[{index:n}]})}))}})];"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(r){n.push(pe(r.prototype,"insertRule",{before:function(n,r){var i=this;e(this.parentStyleSheet,(function(e){var o=ru(i);o&&(o.push(r||0),t({id:e,adds:[{rule:n,index:o}]}))}))}}),pe(r.prototype,"deleteRule",{before:function(n){var r=this;e(this.parentStyleSheet,(function(e){var i=ru(r);i&&(i.push(n),t({id:e,removes:[{index:i}]}))}))}}))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb),m=(s=t.focusCb,on(window,[ne.FOCUS,ne.BLUR],(function(){s({has_focus:document.hasFocus()})})).stop),y=function(t){if(!window.visualViewport)return ot;var e=Z((function(){t(lu())}),pu,{trailing:!1}),n=on(window.visualViewport,[ne.RESIZE,ne.SCROLL],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb),E=(u=t.lifeCycle,c=t.frustrationCb,u.subscribe(fn.RAW_RUM_EVENT_COLLECTED,(function(t){t.rawRumEvent.type===ae.ACTION&&t.rawRumEvent.action.type===ie.CLICK&&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&&c({timestamp:t.rawRumEvent.date,type:as.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return _u(t)}))}})})).unsubscribe);return{flush:function(){l.flush()},stop:function(){l.stop(),f(),d(),p(),h(),v(),_(),g(),m(),y(),E()}}}var mu={[ne.POINTER_UP]:cs.MouseUp,[ne.MOUSE_DOWN]:cs.MouseDown,[ne.CLICK]:cs.Click,[ne.CONTEXT_MENU]:cs.ContextMenu,[ne.DBL_CLICK]:cs.DblClick,[ne.FOCUS]:cs.Focus,[ne.BLUR]:cs.Blur,[ne.TOUCH_START]:cs.TouchStart,[ne.TOUCH_END]:cs.TouchEnd};function yu(t){var e=eu(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=cu(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function Eu(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=on(n,o?[ne.CHANGE]:[ne.INPUT,ne.CHANGE],(function(t){var e=bu(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&u(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=ot;else{const t=[he(HTMLInputElement.prototype,"value",u),he(HTMLInputElement.prototype,"checked",u),he(HTMLSelectElement.prototype,"value",u),he(HTMLTextAreaElement.prototype,"value",u),he(HTMLSelectElement.prototype,"selectedIndex",u)];r=function(){t.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function u(t){var n=Ts(t,e);if(n===fs.HIDDEN)return;var r=t.type;let i;if("radio"===r||"checkbox"===r){if(Is(t,n))return;i={isChecked:t.checked}}else{var o=Ds(t,n);if(void 0===o)return;i={text:o}}c(t,i);var a,s,u=t.name;"radio"===r&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'+V(u)+'"]'),s=function(e){e!==t&&c(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}function c(e,n){if(ks(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(O({id:Ls(e)},n)))}}}function bu(t){return!0===t.composed&&Yn(t.target)?t.composedPath()[0]:t.target}var wu=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=su(n,t,o,e),s=a.flush,u=a.stop,c=Eu(r,t.defaultPrivacyLevel,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};function Su(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(nu(us.Mutation,t))},o=function(t){e(nu(us.Input,t))},a=wu(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=yt()),void 0===i&&(i={status:Gs.INITIAL_FULL_SNAPSHOT,elementsScrollPositions:r,shadowRootsController:a});var o=aa(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:as.Meta,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:as.Focus,timestamp:n}),e({data:{node:Ks(document,t.configuration,i),initialOffset:{left:er(),top:nr()}},type:as.FullSnapshot,timestamp:n}),window.visualViewport&&e({data:lu(),type:as.VisualViewport,timestamp:n})};s();var u=gu({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(nu(us.MediaInteraction,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(nu(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(nu(us.Scroll,t))},styleSheetCb:function(t){e(nu(us.StyleSheetRule,t))},viewportResizeCb:function(t){e(nu(us.ViewportResize,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:as.Focus,timestamp:yt()})},visualViewportResizeCb:function(t){e({data:t,type:as.VisualViewport,timestamp:yt()})},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:Gs.SUBSEQUENT_FULL_SNAPSHOT,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function Tu(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),Cu(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function Cu(t,e,n){void 0===n&&(n=""),C(W(t),(function(t){var r=t[1],i=t[0];"object"==typeof r&&null!==r?Cu(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var Ou,Iu=10;function Au(t){return Ru(t).segments_count}function Ru(t){var e;return Ou||(Ou=new Map),Ou.has(t)?e=Ou.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},Ou.set(t,e),Ou.size>Iu&&function(){if(!Ou)return;if(Ou.keys)Ou.delete(Ou.keys().next().value);else{var t=!0;Ou.forEach((function(e,n){t&&(Ou.delete(n),t=!1)}))}}()),e}function xu(t,e,n){this.encoder=t;var r=e.view.id;this.metadata=O({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:Au(r),source:"browser"},e),function(t){Ru(t).segments_count+=1}(r)}xu.prototype.addRecord=function(t,e){this.metadata.start=Math.min(this.metadata.start,t.timestamp),this.metadata.end=Math.max(this.metadata.end,t.timestamp),this.metadata.records_count+=1,this.metadata.has_full_snapshot||(this.metadata.has_full_snapshot=t.type===as.FullSnapshot),Ru(this.metadata.view.id).records_count+=1;const n=1===this.metadata.records_count?'{"records":[':",";this.encoder.write(n+JSON.stringify(t),e)},xu.prototype.flush=function(t){if(0===this.metadata.records_count)throw new Error("Empty segment flushed");var e=this;this.encoder.write("],"+JSON.stringify(this.metadata).slice(1)+"\n",(function(){var n,r;n=e.metadata.view.id,r=e.encoder.getRawBytesCount(),Ru(n).segments_total_raw_size+=r,t(e.metadata)})),this.encoder.reset()};var Nu=30*st,ku=6e4;function Lu(t,e,n,r,i,o){return function(t,e,n,r){var i={status:Du.WaitingForInitialRecord,nextSegmentCreationReason:"init"},o=t.subscribe(fn.VIEW_CREATED,(function(){c("view_change")})),a=o.unsubscribe,s=t.subscribe(fn.PAGE_EXITED,(function(t){c(t.reason)})),u=s.unsubscribe;function c(t){i.status===Du.SegmentPending&&(i.segment.flush((function(e){var i=Tu(r.getEncodedBytes(),e,r.getRawBytesCount());Zn(t)?n.sendOnExit(i):n.send(i)})),p(i.expirationTimeoutId)),i="stop"!==t?{status:Du.WaitingForInitialRecord,nextSegmentCreationReason:t}:{status:Du.Stopped}}return{addRecord:function(t){if(i.status!==Du.Stopped){if(i.status===Du.WaitingForInitialRecord){var n=e();if(!n)return;i={status:Du.SegmentPending,segment:new xu(r,n,i.nextSegmentCreationReason),expirationTimeoutId:d((function(){c("segment_duration_limit")}),Nu)}}var o=i.segment;o.addRecord(t,(function(){i.status===Du.SegmentPending&&i.segment===o&&r.getEncodedBytesCount()>ku&&c("segment_bytes_limit")}))}},stop:function(){c("stop"),a(),u()}}}(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)}var Du={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var Mu=1;function Pu(t,e){var n,r=0,i=[],o=0,a=[],s=rn(t,"message",(function(t){var o=t.data;if("wrote"===o.type&&o.streamId===e){var u=a.shift();u&&u.id===o.id?(0===o.id?(r=o.additionalBytesCount,i=[o.result]):(r+=o.additionalBytesCount,i.push(o.result)),n=o.trailer,u.callback()):(s(),yi("Worker responses received out of order."))}})).stop;return{getEncodedBytes:function(){return i.length?function(t){var e,n=t.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,o=ke(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;r.set(a,i),i+=a.length}}catch(t){o.e(t)}finally{o.f()}return r}(i.concat(n)):new Uint8Array(0)},getEncodedBytesCount:function(){return i.length?i.reduce((function(t,e){return t+e.length}),0)+n.length:0},getRawBytesCount:function(){return r},write:function(n,r){t.postMessage({action:"write",id:o,data:n,streamId:e}),a.push({id:o,callback:r}),o+=1},reset:function(){t.postMessage({action:"reset",streamId:e}),o=0}}}var Uu=10*st;function Bu(){return new Worker(URL.createObjectURL(new Blob(['!function(){"use strict";function t(t,a){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,a){if(!t)return;if("string"==typeof t)return e(t,a);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,a)}(t))||a&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,_=!0,h=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return _=t.done,t},e:function(t){h=!0,s=t},f:function(){try{_||null==n.return||n.return()}finally{if(h)throw s}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function a(e){var a,n=e.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,s=t(e);try{for(s.s();!(a=s.n()).done;){var _=a.value;r.set(_,i),i+=_.length}}catch(t){s.e(t)}finally{s.f()}return r}function n(t){for(var e=t.length;--e>=0;)t[e]=0}var r=256,i=286,s=30,_=15,h=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]),l=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]),o=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=new Array(576);n(u);var f=new Array(60);n(f);var c=new Array(512);n(c);var p=new Array(256);n(p);var g=new Array(29);n(g);var v,w,b,m=new Array(s);function y(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 k(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}n(m);var z=function(t){return t<256?c[t]:c[256+(t>>>7)]},A=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},x=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,A(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)},E=function(t,e,a){x(t,a[2*e],a[2*e+1])},Z=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},S=function(t,e,a){var n,r,i=new Array(16),s=0;for(n=1;n<=_;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=Z(i[h]++,h))}},U=function(t){var e;for(e=0;e<i;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;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},R=function(t){t.bi_valid>8?A(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},L=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]},F=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&L(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!L(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},T=function(t,e,a){var n,i,s,_,o=0;if(0!==t.last_lit)do{n=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===n?E(t,i,e):(s=p[i],E(t,s+r+1,e),0!==(_=h[s])&&(i-=g[s],x(t,i,_)),n--,s=z(n),E(t,s,a),0!==(_=l[s])&&(n-=m[s],x(t,n,_)))}while(o<t.last_lit);E(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)F(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],F(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,F(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,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(i=0;i<=_;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(i=p,g++),l[2*n+1]=i,n>o||(t.bl_count[i]++,s=0,n>=c&&(s=f[n-c]),h=l[2*n],t.opt_len+=h*(i+s),u&&(t.static_len+=h*(d[2*n+1]+s)));if(0!==g){do{for(i=p-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(i=p;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),S(i,o,t.bl_count)},O=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},N=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{E(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(E(t,r,t.bl_tree),_--),E(t,16,t.bl_tree),x(t,_-3,2)):_<=10?(E(t,17,t.bl_tree),x(t,_-3,3)):(E(t,18,t.bl_tree),x(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},D=!1,C=function(t,e,a,n){x(t,0+(n?1:0),3),function(t,e,a,n){R(t),n&&(A(t,a),A(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},M=function(t,e,a,n){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&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<r;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(O(t,t.dyn_ltree,t.l_desc.max_code),O(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*d[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=a+5,a+4<=i&&-1!==e?C(t,e,a,n):4===t.strategy||s===i?(x(t,2+(n?1:0),3),T(t,u,f)):(x(t,4+(n?1:0),3),function(t,e,a,n){var r;for(x(t,e-257,5),x(t,a-1,5),x(t,n-4,4),r=0;r<n;r++)x(t,t.bl_tree[2*d[r]+1],3);N(t,t.dyn_ltree,e-1),N(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),T(t,t.dyn_ltree,t.dyn_dtree)),U(t),n&&R(t)},B={_tr_init:function(t){D||(!function(){var t,e,a,n,r,d=new Array(16);for(a=0,n=0;n<28;n++)for(g[n]=a,t=0;t<1<<h[n];t++)p[a++]=n;for(p[a-1]=n,r=0,n=0;n<16;n++)for(m[n]=r,t=0;t<1<<l[n];t++)c[r++]=n;for(r>>=7;n<s;n++)for(m[n]=r<<7,t=0;t<1<<l[n]-7;t++)c[256+r++]=n;for(e=0;e<=_;e++)d[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,d[8]++;for(;t<=255;)u[2*t+1]=9,t++,d[9]++;for(;t<=279;)u[2*t+1]=7,t++,d[7]++;for(;t<=287;)u[2*t+1]=8,t++,d[8]++;for(S(u,287,d),t=0;t<s;t++)f[2*t+1]=5,f[2*t]=Z(t,5);v=new y(u,h,257,i,_),w=new y(f,l,0,s,_),b=new y(new Array(0),o,0,19,7)}(),D=!0),t.l_desc=new k(t.dyn_ltree,v),t.d_desc=new k(t.dyn_dtree,w),t.bl_desc=new k(t.bl_tree,b),t.bi_buf=0,t.bi_valid=0,U(t)},_tr_stored_block:C,_tr_flush_block:M,_tr_tally:function(t,e,a){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&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(p[a]+r+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){x(t,2,3),E(t,256,u),function(t){16===t.bi_valid?(A(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)}},H=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},Y=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}()),K=function(t,e,a,n){var r=Y,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},P={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"},j={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},G=B._tr_init,X=B._tr_stored_block,W=B._tr_flush_block,$=B._tr_tally,q=B._tr_align,J=j.Z_NO_FLUSH,Q=j.Z_PARTIAL_FLUSH,V=j.Z_FULL_FLUSH,tt=j.Z_FINISH,et=j.Z_BLOCK,at=j.Z_OK,nt=j.Z_STREAM_END,rt=j.Z_STREAM_ERROR,it=j.Z_DATA_ERROR,st=j.Z_BUF_ERROR,_t=j.Z_DEFAULT_COMPRESSION,ht=j.Z_FILTERED,lt=j.Z_HUFFMAN_ONLY,ot=j.Z_RLE,dt=j.Z_FIXED,ut=j.Z_DEFAULT_STRATEGY,ft=j.Z_UNKNOWN,ct=j.Z_DEFLATED,pt=258,gt=262,vt=103,wt=113,bt=666,mt=function(t,e){return t.msg=P[e],e},yt=function(t){return(t<<1)-(t>4?9:0)},kt=function(t){for(var e=t.length;--e>=0;)t[e]=0},zt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},At=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))},xt=function(t,e){W(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,At(t.strm)},Et=function(t,e){t.pending_buf[t.pending++]=e},Zt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},St=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-gt?t.strstart-(t.w_size-gt):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+pt,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=pt-(u-i),i=u-pt,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Ut=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-gt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=H(s.adler,_,o,h):2===s.state.wrap&&(s.adler=K(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=zt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=zt(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<gt&&0!==t.strm.avail_in)},Rt=function(t,e){for(var a,n;;){if(t.lookahead<gt){if(Ut(t),t.lookahead<gt&&e===J)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=zt(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-gt&&(t.match_length=St(t,a)),t.match_length>=3)if(n=$(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=zt(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=zt(t,t.ins_h,t.window[t.strstart+1]);else n=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2},Lt=function(t,e){for(var a,n,r;;){if(t.lookahead<gt){if(Ut(t),t.lookahead<gt&&e===J)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=zt(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-gt&&(t.match_length=St(t,a),t.match_length<=5&&(t.strategy===ht||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=$(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=zt(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&&(xt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=$(t,0,t.window[t.strstart-1]))&&xt(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=$(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2};function Ft(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 Tt=[new Ft(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(Ut(t),0===t.lookahead&&e===J)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,xt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-gt&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(xt(t,!1),t.strm.avail_out),1)})),new Ft(4,4,8,4,Rt),new Ft(4,5,16,8,Rt),new Ft(4,6,32,32,Rt),new Ft(4,4,16,16,Lt),new Ft(8,16,32,32,Lt),new Ft(8,16,128,128,Lt),new Ft(8,32,128,256,Lt),new Ft(32,128,258,1024,Lt),new Ft(32,258,258,4096,Lt)];function It(){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=ct,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),kt(this.dyn_ltree),kt(this.dyn_dtree),kt(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),kt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),kt(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 mt(t,rt);t.total_in=t.total_out=0,t.data_type=ft;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:wt,t.adler=2===e.wrap?0:1,e.last_flush=J,G(e),at},Nt=function(t){var e,a=Ot(t);return a===at&&((e=t.state).window_size=2*e.w_size,kt(e.head),e.max_lazy_match=Tt[e.level].max_lazy,e.good_match=Tt[e.level].good_length,e.nice_match=Tt[e.level].nice_length,e.max_chain_length=Tt[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},Dt=function(t,e,a,n,r,i){if(!t)return rt;var s=1;if(e===_t&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ct||n<8||n>15||e<0||e>9||i<0||i>dt)return mt(t,rt);8===n&&(n=9);var _=new It;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,Nt(t)},Ct={deflateInit:function(t,e){return Dt(t,e,ct,15,8,ut)},deflateInit2:Dt,deflateReset:Nt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?rt:(t.state.gzhead=e,at):rt},deflate:function(t,e){var a,n;if(!t||!t.state||e>et||e<0)return t?mt(t,rt):rt;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===bt&&e!==tt)return mt(t,0===t.avail_out?st:rt);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Et(r,31),Et(r,139),Et(r,8),r.gzhead?(Et(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)),Et(r,255&r.gzhead.time),Et(r,r.gzhead.time>>8&255),Et(r,r.gzhead.time>>16&255),Et(r,r.gzhead.time>>24&255),Et(r,9===r.level?2:r.strategy>=lt||r.level<2?4:0),Et(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Et(r,255&r.gzhead.extra.length),Et(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=K(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Et(r,0),Et(r,0),Et(r,0),Et(r,0),Et(r,0),Et(r,9===r.level?2:r.strategy>=lt||r.level<2?4:0),Et(r,3),r.status=wt);else{var s=ct+(r.w_bits-8<<4)<<8;s|=(r.strategy>=lt||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=wt,Zt(r,s),0!==r.strstart&&(Zt(r,t.adler>>>16),Zt(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=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending!==r.pending_buf_size));)Et(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=K(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=K(t.adler,r.pending_buf,r.pending-a,a)),At(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,Et(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=K(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=K(t.adler,r.pending_buf,r.pending-a,a)),At(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,Et(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=vt)}else r.status=vt;if(r.status===vt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&At(t),r.pending+2<=r.pending_buf_size&&(Et(r,255&t.adler),Et(r,t.adler>>8&255),t.adler=0,r.status=wt)):r.status=wt),0!==r.pending){if(At(t),0===t.avail_out)return r.last_flush=-1,at}else if(0===t.avail_in&&yt(e)<=yt(i)&&e!==tt)return mt(t,st);if(r.status===bt&&0!==t.avail_in)return mt(t,st);if(0!==t.avail_in||0!==r.lookahead||e!==J&&r.status!==bt){var _=r.strategy===lt?function(t,e){for(var a;;){if(0===t.lookahead&&(Ut(t),0===t.lookahead)){if(e===J)return 1;break}if(t.match_length=0,a=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ot?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=pt){if(Ut(t),t.lookahead<=pt&&e===J)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+pt;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=pt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=$(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Tt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=bt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),at;if(2===_&&(e===Q?q(r):e!==et&&(X(r,0,0,!1),e===V&&(kt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),At(t),0===t.avail_out))return r.last_flush=-1,at}return e!==tt?at:r.wrap<=0?nt:(2===r.wrap?(Et(r,255&t.adler),Et(r,t.adler>>8&255),Et(r,t.adler>>16&255),Et(r,t.adler>>24&255),Et(r,255&t.total_in),Et(r,t.total_in>>8&255),Et(r,t.total_in>>16&255),Et(r,t.total_in>>24&255)):(Zt(r,t.adler>>>16),Zt(r,65535&t.adler)),At(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?at:nt)},deflateEnd:function(t){if(!t||!t.state)return rt;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==vt&&e!==wt&&e!==bt?mt(t,rt):(t.state=null,e===wt?mt(t,it):at)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return rt;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return rt;if(1===r&&(t.adler=H(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(kt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Ut(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=zt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Ut(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,at},deflateInfo:"pako deflate (from Nodeca project)"};for(var Mt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Mt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Mt[254]=Mt[254]=1;var Ht=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},Yt=Object.prototype.toString,Kt=j.Z_NO_FLUSH,Pt=j.Z_SYNC_FLUSH,jt=j.Z_FULL_FLUSH,Gt=j.Z_FINISH,Xt=j.Z_OK,Wt=j.Z_STREAM_END,$t=j.Z_DEFAULT_COMPRESSION,qt=j.Z_DEFAULT_STRATEGY,Jt=j.Z_DEFLATED;function Qt(){this.options={level:$t,method:Jt,chunkSize:16384,windowBits:15,memLevel:8,strategy:qt};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 Ht,this.strm.avail_out=0;var e=Ct.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==Xt)throw new Error(P[e]);if(t.header&&Ct.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Yt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ct.deflateSetDictionary(this.strm,a))!==Xt)throw new Error(P[e]);this._dict_set=!0}}function Vt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function te(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Qt.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?Gt:Kt,"[object ArrayBuffer]"===Yt.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===Pt||n===jt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ct.deflate(r,n))===Wt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ct.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Xt;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},Qt.prototype.onData=function(t){this.chunks.push(t)},Qt.prototype.onEnd=function(t){t===Xt&&(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,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(t){void 0===t&&(t=self);try{var e=new Map;t.addEventListener("message",(function(n){try{var r=function(t,e){switch(e.action){case"init":return{type:"initialized",version:"3.1.19"};case"write":var n=t.get(e.streamId);n||(n=new Qt,t.set(e.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(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}(e.data);return n.push(i,j.Z_SYNC_FLUSH),{type:"wrote",id:e.id,streamId:e.streamId,result:a(n.chunks.slice(r)),trailer:te(n),additionalBytesCount:i.length};case"reset":t.delete(e.streamId)}}(e,n.data);r&&t.postMessage(r)}catch(e){Vt(t,e,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(e){Vt(t,e)}}()}();'])))}var Fu={Nil:0,Loading:1,Error:2,Initialized:3},Vu={status:Fu.Nil};function Hu(t,e){switch(void 0===e&&(e=Bu),Vu.status===Fu.Nil&&function(t){void 0===t&&(t=Bu);try{var e=t();rn(e,"error",$u),rn(e,"message",(function(t){var e,n=t.data;"errored"===n.type?$u(n.error,n.streamId):"initialized"===n.type&&(e=n.version,Vu.status===Fu.Loading&&(Vu={status:Fu.Initialized,worker:Vu.worker,version:e}))})),e.postMessage({action:"init"}),d(Wu,Uu),Vu={status:Fu.Loading,worker:e,initializationFailureCallbacks:[]}}catch(t){$u(t)}}(e),Vu.status){case Fu.Loading:return Vu.initializationFailureCallbacks.push(t),Vu.worker;case Fu.Initialized:return Vu.worker}}function zu(){return Vu.status}function Wu(){Vu.status===Fu.Loading&&(n.error("Session Replay recording failed to start: a timeout occurred while initializing the Worker"),Vu.initializationFailureCallbacks.forEach((function(t){t()})),Vu={status:Fu.Error})}function $u(t,e){var r;Vu.status===Fu.Loading?(n.error("Session Replay recording failed to start: an error occurred while creating the Worker:",t),t instanceof Event||t instanceof Error&&(Nt(r=t.message,"Content Security Policy")||Nt(r,"requires 'TrustedScriptURL'"))?n.error("Please make sure CSP is correctly configured !!!"):Ei(t),Vu.status===Fu.Loading&&Vu.initializationFailureCallbacks.forEach((function(t){t()})),Vu={status:Fu.Error}):Ei(t,{worker_version:Vu.status===Fu.Initialized&&Vu.version,stream_id:e})}var ju=0,Gu=1,Ku=2,Zu=3;var qu,Yu,Qu,Xu,Ju=function(t,e){var n=new Je;if(ei()||"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},recorderStartObservable:n};var r={status:ju},i=function(){r={status:Gu}},o=function(){r={status:ju}};return{start:function(){i()},stop:function(){o()},recorderStartObservable:n,getReplayStats:function(t){return zu()===Fu.Initialized?function(t){return Ou&&Ou.get(t)}(t):void 0},onRumStart:function(a,s,u,c,l){var f;a.subscribe(fn.SESSION_EXPIRED,(function(){r.status!==Ku&&r.status!==Zu||(o(),r={status:Gu})})),a.subscribe(fn.PAGE_EXITED,(function(t){t.reason!==Kn.UNLOADING&&t.reason!==Kn.PAGEHIDE||o()})),a.subscribe(fn.SESSION_RENEWED,(function(){r.status===Gu&&i()})),i=function(){var i=u.findTrackedSession();i&&i.sessionReplayAllowed?r.status!==Ku&&r.status!==Zu&&(r={status:Ku},tr("interactive",(function(){if(r.status===Ku){var i=(f||(l||(l=Hu((function(){o()}),e)),l&&(f=Pu(l,Mu))),f);if(i){var d=t(a,s,u,c,i);n.notify(gt()),r={status:Zu,stopRecording:d.stop}}else r={status:ju}}}))):r={status:Gu}},o=function(){r.status!==ju&&(r.status===Zu&&r.stopRecording(),r={status:ju})},r.status===Gu&&i()},isRecording:function(){return r.status===Zu}}}((function(t,e,n,r,i,o){var a=o||zr(e.sessionReplayEndPoint,ku,!1,(function(e){t.notify(fn.RAW_ERROR_COLLECTED,{error:e}),yi("Error reported to customer",{"error.message":e.message})})),s=Lu(t,e,n,r,a,i),u=s.addRecord,c=s.stop,l=Su({emit:u,configuration:e,lifeCycle:t}),f=l.stop,d=l.takeSubsequentFullSnapshot,p=l.flushMutations,h=t.subscribe(fn.VIEW_ENDED,(function(){p(),u({timestamp:yt(),type:as.ViewEnd})})),v=t.subscribe(fn.VIEW_CREATED,(function(t){d(t.startClocks.timeStamp)}));return{stop:function(){h.unsubscribe(),v.unsubscribe(),f(),c()}}})),tc=function(t,e){var r=!1,i=ai(ii),s=ai(ri),u=function(){},c=function(){},l=function(){},f=new Gt,d=function(t,e){void 0===e&&(e=yt()),f.add((function(){return d(t,e)}))},p=function(t,e){void 0===e&&(e=mt()),f.add((function(){return p(t,e)}))},h=function(t,n){void 0===n&&(n=ca(i,s,e)),f.add((function(){return h(t,n)}))},v=function(t,n){void 0===n&&(n=ca(i,s,e)),f.add((function(){return v(t,n)}))};function _(n,r){n.storeContextsToLocal&&(ci(n,i,"rum",ii),ci(n,s,"rum",ri));var o=t(n,e,i,s,r);p=o.startView,h=o.addAction,v=o.addError,d=o.addTiming,u=o.getInternalContext,l=o.stopSession,f.drain(),e.onRumStart(o.lifeCycle,n,o.session,o.viewContexts)}var g,m,y=a((function(t){p("object"==typeof t?t:{name:t})}));return g={init:a((function(t){if(c=function(){return rt(t)},ei()&&(t=function(t){return O({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",sessionSampleRate:100})}(t)),function(t){return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(Y()),n="test";return On(e,n,st,t),In(e)===n}catch(t){return!1}}(Pn(t))?"file:"!==window.location.protocol||(n.error("Execution is not allowed in the current context."),!1):(n.warn("Cookies are not authorized, we will not send any data."),!1)}(t)&&function(t){return!r||(t.silentMultipleInit||n.error("DATAFLUX_RUM is already initialized."),!1)}(t)){var e=is(t);if(e){if(e.trackViewsManually){var i=f;f=new Gt,p=function(t){_(e,t)},i.drain()}else _(e);r=!0}}})),addRumGlobalContext:a((function(t,e){return i.add(t,e)})),setGlobalContextProperty:a((function(t,e){return i.setContextProperty(t,e)})),removeRumGlobalContext:a((function(t){return i.remove(t)})),removeGlobalContextProperty:a((function(t){return i.removeContextProperty(t)})),getRumGlobalContext:a((function(){return i.get()})),getGlobalContext:a((function(){return i.getContext()})),setRumGlobalContext:a((function(t){return i.set(t)})),setGlobalContext:a((function(t){return i.setContext(t)})),clearGlobalContext:a((function(){return i.clearContext()})),getInitConfiguration:a((function(){return c()})),getInternalContext:a((function(t){return u(t)})),addDebugSession:a((function(t){})),clearDebugSession:a((function(){})),getDebugSession:a((function(){})),addAction:a((function(t,e){h({name:t,context:rt(e),startClocks:mt(),type:ie.CUSTOM})})),addError:a((function(t,e){var n=Ze();v({error:t,handlingStack:n,context:rt(e),startClocks:mt()})})),addTiming:a((function(t,e){d(t,e)})),setUser:a((function(t){(function(t){var e="object"===et(t);return e||n.error("Unsupported user:",t),e})(t)&&s.setContext(li(t))})),getUser:a((function(){return s.getContext()})),setUserProperty:a((function(t,e){var n={};n[t]=e;var r=li(n)[t];s.setContextProperty(t,r)})),removeUserProperty:a((function(t){return s.removeContextProperty(t)})),removeUser:a((function(){return s.clearContext()})),clearUser:a((function(){return s.clearContext()})),startView:y,stopSession:a((function(){l()})),startSessionReplayRecording:a(e.start),stopSessionReplayRecording:a(e.stop)},m=O({onReady:function(t){t()}},g),Object.defineProperty(m,"_setDebug",{get:function(){return o},enumerable:!1}),m}((function(t,e,n,r,i){var o=[],s=new dn,u=function(t){const e=mi(_i.RUM,t);return e}(t);u.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:f.findTrackedSession()&&f.findTrackedSession().id},view:{id:m.findView()&&m.findView().id},action:{id:E.findActionId(),ids:E.findAllActionId()}}}));var c=function(t){s.notify(fn.RAW_ERROR_COLLECTED,{error:t})},l=new Je((function(t){var e=on(document,[ne.VISIBILITY_CHANGE,ne.FREEZE,ne.PAGE_HIDE],(function(e){e.type===ne.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?t.notify({reason:Kn.HIDDEN}):e.type===ne.FREEZE&&t.notify({reason:Kn.FROZEN})}),{capture:!0}),n=rn(window,ne.BEFORE_UNLOAD,(function(){t.notify({reason:Kn.UNLOADING})}));return function(){e.stop(),n.stop()}}));l.subscribe((function(t){s.notify(fn.PAGE_EXITED,t)})),o.push((function(){pageExitSubscription.unsubscribe()}));var f=ei()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:Ti.WITHOUT_SESSION_REPLAY,sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:ot,expireObservable:new Je}}():Oi(t,s);if(ei())!function(t){var e=ti();t.subscribe(fn.RUM_EVENT_COLLECTED,(function(t){var n=Yr(t).rowData;e.send("rum",n)}))}(s);else{var d=Xo(t,s,u.observable,c,l,f.expireObservable);o.push((function(){d.stop()}))}var p,h=function(t){var e=In(Ai);return e||(e=Y(),On(Ai,e,Ri,t.cookieOptions)),{getId:function(){return e}}}(t),v=(p=Qi(),new Je((function(t){if(p){var e=new p(a((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),_=Xi(location),g=function(t,e,n,r,i,o,a,s,u){var c=function(t){var e=new Qt(ua);return t.subscribe(fn.BEFORE_VIEW_CREATED,(function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name}}(t),t.startClocks.relative)})),t.subscribe(fn.AFTER_VIEW_ENDED,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(fn.SESSION_RENEWED,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),l=function(t,e,n){var r,i=new Qt(sa);t.subscribe(fn.BEFORE_VIEW_CREATED,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(fn.AFTER_VIEW_ENDED,(function(t){i.closeActive(t.endClocks.relative)}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=gt();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&&!zt(n)&&(e="/"+Wt(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:Q(e),urlQuery:J(t.location.href)}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,o,n),f=Zo(),d=function(t,e,n,r){t.subscribe(fn.AUTO_ACTION_COMPLETED,(function(e){t.notify(fn.RAW_RUM_EVENT_COLLECTED,Yo(e,r))}));var i={findActionId:ot,findAllActionId:ot};return n.trackUserInteractions&&(i=Ho(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(fn.RAW_RUM_EVENT_COLLECTED,A({savedCommonContext:n},Yo(e,r)))}}}(t,a,e,f),p=d.actionContexts,h=d.addAction,v=(_=aa(),{get:function(){return{viewport:_}},stop:oa().subscribe((function(t){_=t})).unsubscribe});var _;return ia(e,t,r,i,c,l,p,v,s,u),{viewContexts:c,urlContexts:l,pageStateHistory:f,addAction:h,actionContexts:p,stop:function(){c.stop(),l.stop(),f.stop(),v.stop()}}}(s,t,location,f,h,_,v,(function(){return ca(n,r,e)}),c),m=g.viewContexts,y=g.urlContexts,E=g.actionContexts,b=g.pageStateHistory,w=g.stop,S=g.addAction;o.push(w),function(t,e){t.subscribe(fn.PERFORMANCE_ENTRIES_COLLECTED,(function(n){for(var r=0;r<n.length;r++){var i=n[r];if("longtask"!==i.entryType)return;if(!e.findTrackedSession(i.startTime))break;var o=St(i.startTime),a={date:o.timeStamp,long_task:{id:Y(),duration:ht(i.duration)},type:ae.LONG_TASK};t.notify(fn.RAW_RUM_EVENT_COLLECTED,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i.toJSON()}})}}))}(s,f),Ja(s,t,f,b);var T=Da(s,t,location,v,_,b,e,i),C=T.addTiming,O=T.startView,I=T.stop;o.push(I);var R=la(s,0,b).addError;Za(s,t,f),Zi(s,t);var x=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,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,urlQuery:s.urlQuery}}}}}}(t.applicationId,f,m,E,y);return{addAction:S,addError:R,addTiming:C,configuration:t,lifeCycle:s,viewContexts:m,session:f,startView:O,stopSession:function(){f.expire()},getInternalContext:x.get,stop:function(){o.forEach((function(t){t()}))}}}),Ju);qu=f(),Qu=tc,Xu=qu[Yu="DATAFLUX_RUM"],qu[Yu]=Qu,Xu&&Xu.q&&C(Xu.q,(function(t){c(t,"onReady callback threw an error:")()}))}();
|