(()=>{function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function c(e,o,a,i){var c=o&&o.prototype instanceof f?o:f,s=Object.create(c.prototype);return r(s,"_invoke",function(e,r,o){var a,i,c,f=0,s=o||[],d=!1,p={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,r){return a=e,i=0,c=t,p.n=r,u}};function m(e,r){for(i=e,c=r,n=0;!d&&f&&!o&&n3?(o=v===r)&&(c=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=m&&((o=e<2&&mr||r>v)&&(a[4]=e,a[5]=r,p.n=v,i=0))}if(o||e>1)return u;throw d=!0,r}return function(o,s,v){if(f>1)throw TypeError("Generator is already running");for(d&&1===s&&m(s,v),i=s,c=v;(n=i<2?t:c)||!d;){a||(i?i<3?(i>1&&(p.n=-1),m(i,c)):p.n=c:p.v=c);try{if(f=2,a){if(i||(o="next"),n=a[o]){if(!(n=n.call(a,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,i<2&&(i=0)}else 1===i&&(n=a.return)&&n.call(a),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=t}else if((n=(d=p.n<0)?c:e.call(r,p))!==u)break}catch(e){a=t,i=1,c=e}finally{f=1}}return{value:n,done:d}}}(e,a,i),!0),s}var u={};function f(){}function s(){}function d(){}n=Object.getPrototypeOf;var p=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),m=d.prototype=f.prototype=Object.create(p);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,r(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e}return s.prototype=d,r(m,"constructor",d),r(d,"constructor",s),s.displayName="GeneratorFunction",r(d,i,"GeneratorFunction"),r(m),r(m,i,"Generator"),r(m,a,function(){return this}),r(m,"toString",function(){return"[object Generator]"}),(e=function(){return{w:c,m:v}})()}function r(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}r=function(e,t,n,o){function i(t,n){r(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},r(e,t,n,o)}function t(e,r,t,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void t(e)}c.done?r(u):Promise.resolve(u).then(n,o)}function n(e){return function(){var r=this,n=arguments;return new Promise(function(o,a){var i=e.apply(r,n);function c(e){t(i,o,a,c,u,"next",e)}function u(e){t(i,o,a,c,u,"throw",e)}c(void 0)})}}var o,a,i;o=window.history,a=o.pushState,i=o.replaceState,o.pushState=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n2&&void 0!==arguments[2]?arguments[2]:"/";document.cookie=e+"="+encodeURIComponent(r)+"; path="+t},RumTracker.getCookie=function(e){return document.cookie.split("; ").reduce(function(r,t){var n=t.split("=");return n[0]===e?decodeURIComponent(n[1]):r},"")},RumTracker.sendDataToServer=n(e().m(function r(){var t,n,o,a,i,c;return e().w(function(e){for(;;)switch(e.n){case 0:if(t=RumTracker.getBrowser(),n=t.browserName,o=t.browserVersion,a=RumTracker.getCookie(RumTracker.RUM_USER_IP),i=RumTracker.getDeviceType(),a){e.n=2;break}return e.n=1,RumTracker.getIp();case 1:a=e.v,RumTracker.setCookie(RumTracker.RUM_USER_IP,a);case 2:c={projectId:RumTracker.ProjectId,ip:a,path:location.pathname,browser:n,browserVersion:o,device:i},fetch("".concat("https://api.sitebeacon.io/","analytics"),{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});case 3:return e.a(2)}},r)})),addEventListener("locationchange",function(){RumTracker.getCookie(RumTracker.RUM_VISITED_ROUTE_COOKIE)!=location.pathname&&RumTracker.sendDataToServer(),RumTracker.setCookie(RumTracker.RUM_VISITED_ROUTE_COOKIE,location.pathname)}),addEventListener("load",function(){RumTracker.setCookie(RumTracker.RUM_VISITED_ROUTE_COOKIE,location.pathname),RumTracker.sendDataToServer()})})();