!function(){"use strict";function k(){k=function(){return a};var c,a={},e=Object.prototype,l=e.hasOwnProperty,u=Object.defineProperty||function(e,t,n){e[t]=n.value},t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",o=t.toStringTag||"@@toStringTag";function i(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(c){i=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o,i,a,s,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),r=new C(r||[]);return u(t,"_invoke",{value:(o=e,i=n,a=r,s=f,function(e,t){if(s===h)throw new Error("Generator is already running");if(s===m){if("throw"===e)throw t;return{value:c,done:!0}}for(a.method=e,a.arg=t;;){var n=a.delegate;if(n){n=function e(t,n){var r=n.method,o=t.iterator[r];if(o===c)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=c,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;r=d(o,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,v;o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=c),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}(n,a);if(n){if(n===v)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===f)throw s=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=h;n=d(o,i,a);if("normal"===n.type){if(s=a.done?m:p,n.arg===v)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s=m,a.method="throw",a.arg=n.arg)}})}),t}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}a.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function y(){}function g(){}function b(){}var t={},w=(i(t,r,function(){return this}),Object.getPrototypeOf),w=w&&w(w(_([]))),S=(w&&w!==e&&l.call(w,r)&&(t=w),b.prototype=y.prototype=Object.create(t));function E(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function x(a,s){var t;u(this,"_invoke",{value:function(n,r){function e(){return new s(function(e,t){!function t(e,n,r,o){var i,e=d(a[e],a,n);if("throw"!==e.type)return(n=(i=e.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(e){t("next",e,r,o)},function(e){t("throw",e,r,o)}):s.resolve(n).then(function(e){i.value=e,r(i)},function(e){return t("throw",e,r,o)});o(e.arg)}(n,r,e,t)})}return t=t?t.then(e,e):e()}})}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function _(t){if(t||""===t){var n,e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(e=function e(){for(;++ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n/?",o=(n.textBaseline="top",n.font="14px 'Arial'",n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.fillText(r,2,15),n.fillStyle="rgba(102, 204, 0, 0.7)",n.fillText(r,4,17),t.toDataURL());return e?document.body.appendChild(t):n.clearRect(0,0,t.width,t.height),R(o)}catch(e){return null}}function z(e){try{var t=document.createElement("canvas"),n=t.getContext("webgl"),r=(t.width=256,t.height=128,n.createBuffer()),o=(n.bindBuffer(n.ARRAY_BUFFER,r),new Float32Array([-.2,-.9,0,.4,-.26,0,0,.7321,0])),i=(n.bufferData(n.ARRAY_BUFFER,o,n.STATIC_DRAW),r.itemSize=3,r.numItems=3,n.createProgram()),a=n.createShader(n.VERTEX_SHADER),s=(n.shaderSource(a,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),n.compileShader(a),n.createShader(n.FRAGMENT_SHADER)),c=(n.shaderSource(s,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),n.compileShader(s),n.attachShader(i,a),n.attachShader(i,s),n.linkProgram(i),n.useProgram(i),i.vertexPosAttrib=n.getAttribLocation(i,"attrVertex"),i.offsetUniform=n.getUniformLocation(i,"uniformOffset"),n.enableVertexAttribArray(i.vertexPosArray),n.vertexAttribPointer(i.vertexPosAttrib,r.itemSize,n.FLOAT,!1,0,0),n.uniform2f(i.offsetUniform,1,1),n.drawArrays(n.TRIANGLE_STRIP,0,r.numItems),new Uint8Array(t.width*t.height*4)),l=(n.readPixels(0,0,t.width,t.height,n.RGBA,n.UNSIGNED_BYTE,c),JSON.stringify(c).replace(/,?"[0-9]+":/g,""));return e?document.body.appendChild(t):n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT|n.STENCIL_BUFFER_BIT),R(l)}catch(e){return null}}function V(){try{var e=document.createElement("canvas").getContext("webgl");return{VERSION:e.getParameter(e.VERSION),SHADING_LANGUAGE_VERSION:e.getParameter(e.SHADING_LANGUAGE_VERSION),VENDOR:e.getParameter(e.VENDOR),SUPORTED_EXTENSIONS:e.getSupportedExtensions()}}catch(e){return null}}function I(e){return sessionStorage.getItem(e)}function T(e){sessionStorage.setItem(e,(1>>0;if("function"!=typeof e)throw TypeError("predicate must be a function");for(var r=arguments[1],o=0;o>>0;if(0!=r)for(var o,i,t=0|t,a=Math.max(0<=t?t:r-Math.abs(t),0);a>>16)*i&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<13|t>>>19))+((5*(t>>>16)&65535)<<16)&4294967295))+((58964+(n>>>16)&65535)<<16);var c=o-1,l=0;switch(r){case 3:l^=(255&e.charCodeAt(2+c))<<16;break;case 2:l^=(255&e.charCodeAt(1+c))<<8;break;case 1:l^=255&e.charCodeAt(c)}return t=2246822507*(65535&(t=(t=t^(l=(65535&(l=(l=(65535&l)*i+(((l>>>16)*i&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295)^e.length)^t>>>16))+((2246822507*(t>>>16)&65535)<<16)&4294967295,t=3266489909*(65535&(t^=t>>>13))+((3266489909*(t>>>16)&65535)<<16)&4294967295,(t^=t>>>16)>>>0};window.getBrowserFingerprint=U;function J(e){return e.href.split(/(&|\?)?utm_content/)[0]}function $(){var e=0 clientAuth[RES]"))},n.send(JSON.stringify(r)),M.timeEnd("start -> clientAuth[REQ]")}));case 4:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"stop",value:(t=o(k().mark(function e(){var n=arguments;return k().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:var t=0=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Te(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0=i.length);)if(","===(u=s(v)).slice(-1))u=g(o,u.substring(0,u.length-1)),c.push(u);else for(var l="",u=g(o,u),d=!1;;){var f=i.charAt(a);if(""===f){c.push((u+l).trim());break}if(d)")"===f&&(d=!1);else{if(","===f){a+=1,c.push((u+l).trim());break}"("===f&&(d=!0)}l+=f,a+=1}return c.join(", ")}return"style"===n&&r?H(r,Y()):"object"===t&&"data"===n&&r?g(e,r):r}}function X(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return e.nodeType,e.TEXT_NODE,X(e.parentNode,t,n);if("string"==typeof t){if(e.classList.contains(t))return!0}else e.classList.forEach(function(e){if(t.test(e))return!0});return!(!n||!e.matches(n))||X(e.parentNode,t,n)}function A(e){return void 0===e?"":e.toLowerCase()}function W(t,e){var n=e.doc,r=e.map,o=e.blockClass,i=e.blockSelector,a=e.maskTextClass,s=e.maskTextSelector,c=e.skipChild,c=void 0!==c&&c,l=e.inlineStylesheet,u=void 0===l||l,l=e.maskInputOptions,d=void 0===l?{}:l,f=e.maskTextFn,p=e.maskInputFn,h=e.slimDOMOptions,l=e.dataURLOptions,m=void 0===l?{}:l,l=e.inlineImages,v=void 0!==l&&l,l=e.recordCanvas,y=void 0!==l&&l,g=e.onSerialize,b=e.onIframeLoad,l=e.iframeLoadTimeout,w=void 0===l?5e3:l,l=e.keepIframeSrcFn,S=void 0===l?function(){return!1}:l,l=e.preserveWhiteSpace,E=void 0===l||l,e=function(t,e){var n,r,o,i=e.doc,a=e.blockClass,s=e.blockSelector,c=e.maskTextClass,l=e.maskTextSelector,u=e.inlineStylesheet,d=e.maskInputOptions,f=void 0===d?{}:d,p=e.maskTextFn,h=e.maskInputFn,m=void 0===(d=e.dataURLOptions)?{}:d,v=e.inlineImages,y=e.recordCanvas,g=e.keepIframeSrcFn;switch(i.__sn&&(o=1===(d=i.__sn.id)?void 0:d),t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:N.Document,childNodes:[],compatMode:t.compatMode,rootId:o}:{type:N.Document,childNodes:[],rootId:o};case t.DOCUMENT_TYPE_NODE:return{type:N.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:o};case t.ELEMENT_NODE:for(var b,w,S=function(e,t,n){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var r=0;r'):n.write('')),l=n),r[(l.__sn=e).id]=l,(e.type===N.Document||e.type===N.Element)&&!o)for(var u=0,d=e.childNodes;u=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n>2])+i[(3&e[r])<<4|e[r+1]>>4])+i[(15&e[r+1])<<2|e[r+2]>>6])+i[63&e[r+2]];return t%3==2?n=n.substring(0,n.length-1)+"=":t%3==1&&(n=n.substring(0,n.length-2)+"=="),n}()}:o instanceof DataView?{rr_type:o.constructor.name,args:[t(o.buffer,n,r),o.byteOffset,o.byteLength]}:o instanceof HTMLImageElement?{rr_type:o.constructor.name,src:o.src}:o instanceof ImageData?{rr_type:o.constructor.name,args:[t(o.data,n,r),o.width,o.height]}:Je(o,n)||"object"==Mt(o)?{rr_type:o.constructor.name,index:Se(o,n,r)}:o}(e,t,n)})}var Je=function(t,n){var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof n[e]});return Boolean(e.find(function(e){return t instanceof n[e]}))};function $e(a,s,c,l,u,d){var e,t,n=[],r=Object.getOwnPropertyNames(a);try{for(var o=Ie(r),i=o.next();!i.done;i=o.next())!function(i){try{if("function"!=typeof a[i])return;var t=Re(a,i,function(o){return function(){for(var e=[],t=0;to,(n||t)&&Ze(!0))},new me({mutationCb:x})),N=new et({recordCanvas:w,mutationCb:T,win:window,blockClass:a,mirror:tt}),O=new ve({mutationCb:x,scrollCb:I,bypassOptions:{blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:l,inlineStylesheet:u,maskInputOptions:_,maskTextFn:h,maskInputFn:p,recordCanvas:w,inlineImages:S,sampling:g,slimDOMOptions:k,iframeManager:R,canvasManager:N},mirror:tt});Ze=function(e){void 0===e&&(e=!1),G(z({type:Ee.EventType.Meta,data:{href:window.location.href,width:De(),height:Le()}}),e),Oe.forEach(function(e){return e.lock()});var t=Te([W(e=document,{doc:e,map:e={},blockClass:void 0===(n=(t={blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:l,inlineStylesheet:u,maskAllInputs:_,maskTextFn:h,slimDOM:k,recordCanvas:w,inlineImages:S,onSerialize:function(e){B(e)&&R.addIframe(e),U(e)&&O.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){R.attachIframe(e,t)},keepIframeSrcFn:j}).blockClass)?"rr-block":n,blockSelector:void 0===(n=t.blockSelector)?null:n,maskTextClass:void 0===(n=t.maskTextClass)?"rr-mask":n,maskTextSelector:void 0===(n=t.maskTextSelector)?null:n,skipChild:!1,inlineStylesheet:void 0===(n=t.inlineStylesheet)||n,maskInputOptions:!0===(n=void 0!==(n=t.maskAllInputs)&&n)?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===n?{password:!0}:n,maskTextFn:t.maskTextFn,maskInputFn:t.maskInputFn,slimDOMOptions:!0===(n=void 0!==(n=t.slimDOM)&&n)||"all"===n?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===n,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===n?{}:n,dataURLOptions:t.dataURLOptions,inlineImages:void 0!==(n=t.inlineImages)&&n,recordCanvas:void 0!==(n=t.recordCanvas)&&n,preserveWhiteSpace:t.preserveWhiteSpace,onSerialize:t.onSerialize,onIframeLoad:t.onIframeLoad,iframeLoadTimeout:t.iframeLoadTimeout,keepIframeSrcFn:void 0===(n=t.keepIframeSrcFn)?function(){return!1}:n}),e],2),n=t[0],e=t[1];if(!n)return console.warn("Failed to snapshot the document");tt.map=e,G(z({type:Ee.EventType.FullSnapshot,data:{node:n,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null==(e=null==(t=null===document||void 0===document?void 0:document.body)?void 0:t.parentElement)?void 0:e.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null==(t=null==(n=null===document||void 0===document?void 0:document.body)?void 0:n.parentElement)?void 0:t.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),Oe.forEach(function(e){return e.unlock()})};try{var A=[],L=(A.push(_e("DOMContentLoaded",function(){G(z({type:Ee.EventType.DomContentLoaded,data:{}}))})),function(e){return he({mutationCb:x,mousemoveCb:function(e,t){return G(z({type:Ee.EventType.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return G(z({type:Ee.EventType.IncrementalSnapshot,data:xe({source:Ee.IncrementalSource.MouseInteraction},e)}))},scrollCb:I,viewportResizeCb:function(e){return G(z({type:Ee.EventType.IncrementalSnapshot,data:xe({source:Ee.IncrementalSource.ViewportResize},e)}))},inputCb:function(e){return G(z({type:Ee.EventType.IncrementalSnapshot,data:xe({source:Ee.IncrementalSource.Input},e)}))},mediaInteractionCb:function(e){return G(z({type:Ee.EventType.IncrementalSnapshot,data:xe({source:Ee.IncrementalSource.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return G(z({type:Ee.EventType.IncrementalSnapshot,data:xe({source:Ee.IncrementalSource.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return G(z({type:Ee.EventType.IncrementalSnapshot,data:xe({source:Ee.IncrementalSource.StyleDeclaration},e)}))},canvasMutationCb:T,fontCb:function(e){return G(z({type:Ee.EventType.IncrementalSnapshot,data:xe({source:Ee.IncrementalSource.Font},e)}))},blockClass:a,ignoreClass:n,maskTextClass:c,maskTextSelector:l,maskInputOptions:_,inlineStylesheet:u,sampling:g,recordCanvas:w,inlineImages:S,userTriggeredOnInput:P,collectFonts:F,doc:e,maskInputFn:p,maskTextFn:h,blockSelector:s,slimDOMOptions:k,mirror:tt,iframeManager:R,shadowDomManager:O,canvasManager:N,plugins:(null==(e=null==E?void 0:E.filter(function(e){return e.observer}))?void 0:e.map(function(t){return{observer:t.observer,options:t.options,callback:function(e){return G(z({type:Ee.EventType.Plugin,data:{plugin:t.name,payload:e}}))}}}))||[]},m)}),D=(R.addLoadListener(function(e){A.push(L(e.contentDocument))}),function(){Ze(),A.push(L(document))});return"interactive"===document.readyState||"complete"===document.readyState?D():A.push(_e("load",function(){G(z({type:Ee.EventType.Load,data:{}})),D()},window)),function(){A.forEach(function(e){return e()})}}catch(e){console.warn(e)}}function nt(r){return r=r||Object.create(null),{on:function(e,t){(r[e]||(r[e]=[])).push(t)},off:function(e,t){r[e]&&r[e].splice(r[e].indexOf(t)>>>0,1)},emit:function(t,n){(r[t]||[]).slice().map(function(e){e(n)}),(r["*"]||[]).slice().map(function(e){e(t,n)})}}}a.addCustomEvent=function(e,t){if(!G)throw new Error("please add custom event after start recording");G(z({type:Ee.EventType.Custom,data:{tag:e,payload:t}}))},a.freezePage=function(){Oe.forEach(function(e){return e.freeze()})},a.takeFullSnapshot=function(e){if(!Ze)throw new Error("please take full snapshot after start recording");Ze(e)},a.mirror=tt;Object.freeze({__proto__:null,default:nt});function rt(s,c){var e,t,l,u,n;function d(e,t){this.scrollLeft=e,this.scrollTop=t}function r(e){if(null===e||"object"!=Mt(e)||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==Mt(e)&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function o(e,t){return"Y"===t?e.clientHeight+n=n.delay))break;o.shift(),n.doAction()}(0e.delay))return r+1;n=r-1}}return t};var s,ot=c;function c(e,t){void 0===e&&(e=[]),this.timeOffset=0,this.raf=null,this.actions=e,this.speed=t}function it(e,t){var n;if(e.type===Ee.EventType.IncrementalSnapshot&&e.data.source===Ee.IncrementalSource.MouseMove)return n=e.data.positions[0].timeOffset,n=e.timestamp+n,e.delay=n-t;e.delay=e.timestamp-t,e.delay}function at(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),l=c.next();!l.done;l=c.next()){var u=l.value;if(void 0===u)return ft(o,i);var d,f,p,h,m,v="string"==typeof u?{target:u}:u,y=v.target,g=v.actions,b=void 0===g?[]:g,w=v.cond,S=void 0===w?function(){return!0}:w,E=void 0===y,x=null!=y?y:o,I=T.states[x];if(S(i,a))return f=(d=at(pt((E?ct(b):[].concat(s.exit,b,I.entry).filter(function(e){return e})).map(function(e){return lt(e,C._options.actions)}),i,a),3))[0],p=d[1],h=d[2],{value:m=null!=y?y:o,context:p,actions:f,changed:y!==o||0>4,u[l++]=(15&o)<<4|i>>2,u[l++]=(3&i)<<6|63&a;return s;return}if("src"in e)return f.get(e.src)||((t=new Image).src=e.src,f.set(e.src,t),t)}else if(Array.isArray(e))return e.map(xt(f,p));return e}}var It=nt,Tt="[replayer]",Ct={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function _t(e){return e.type==Ee.EventType.IncrementalSnapshot&&(e.data.source==Ee.IncrementalSource.TouchMove||e.data.source==Ee.IncrementalSource.MouseInteraction&&e.data.type==Ee.MouseInteractions.TouchStart)}Object.defineProperty(d.prototype,"timer",{get:function(){return this.service.state.context.timer},enumerable:!1,configurable:!0}),d.prototype.on=function(e,t){return this.emitter.on(e,t),this},d.prototype.off=function(e,t){return this.emitter.off(e,t),this},d.prototype.setConfig=function(t){var n=this;Object.keys(t).forEach(function(e){n.config[e]=t[e]}),this.config.skipInactive||this.backToNormal(),void 0!==t.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),void 0!==t.mouseTail&&(!1===t.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))},d.prototype.getMetaData=function(){var e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}},d.prototype.getCurrentTime=function(){return this.timer.timeOffset+this.getTimeOffset()},d.prototype.getTimeOffset=function(){var e=this.service.state.context;return e.baselineTime-e.events[0].timestamp},d.prototype.getMirror=function(){return this.mirror},d.prototype.play=function(e){void 0===e&&(e=0),this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null!=(e=this.iframe.contentDocument)&&e.getElementsByTagName("html")[0].classList.remove("rrweb-paused"),this.emitter.emit(Ee.ReplayerEvents.Start)},d.prototype.pause=function(e){void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null!=(e=this.iframe.contentDocument)&&e.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(Ee.ReplayerEvents.Pause)},d.prototype.resume=function(e){void 0===e&&(e=0),console.warn("The 'resume' will be departed in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(Ee.ReplayerEvents.Resume)},d.prototype.startLive=function(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})},d.prototype.addEvent=function(e){var t=this,n=this.config.unpackFn?this.config.unpackFn(e):e;_t(n)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(function(){return t.service.send({type:"ADD_EVENT",payload:{event:n}})})},d.prototype.enableInteract=function(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"},d.prototype.disableInteract=function(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"},d.prototype.resetCache=function(){this.cache=M()},d.prototype.setupDom=function(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");var e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(rt(this.iframe.contentWindow,this.iframe.contentDocument),ee(this.iframe.contentWindow))},d.prototype.handleResize=function(e){var t,n;this.iframe.style.display="inherit";try{for(var r=Ie([this.mouseTail,this.iframe]),o=r.next();!o.done;o=r.next()){var i=o.value;i&&(i.setAttribute("width",String(e.width)),i.setAttribute("height",String(e.height)))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},d.prototype.applyEventsSynchronously=function(e){var t,n;try{for(var r=Ie(e),o=r.next();!o.done;o=r.next()){var i=o.value;switch(i.type){case Ee.EventType.DomContentLoaded:case Ee.EventType.Load:case Ee.EventType.Custom:continue;case Ee.EventType.FullSnapshot:case Ee.EventType.Meta:case Ee.EventType.Plugin:break;case Ee.EventType.IncrementalSnapshot:if(i.data.source===Ee.IncrementalSource.MediaInteraction)continue}this.getCastFn(i,!0)()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}this.mousePos&&this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),!(this.mousePos=null)===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null},d.prototype.getCastFn=function(a,s){var c,l=this;switch(void 0===s&&(s=!1),a.type){case Ee.EventType.DomContentLoaded:case Ee.EventType.Load:break;case Ee.EventType.Custom:c=function(){l.emitter.emit(Ee.ReplayerEvents.CustomEvent,a)};break;case Ee.EventType.Meta:c=function(){return l.emitter.emit(Ee.ReplayerEvents.Resize,{width:a.data.width,height:a.data.height})};break;case Ee.EventType.FullSnapshot:c=function(){if(l.firstFullSnapshot){if(l.firstFullSnapshot===a)return void(l.firstFullSnapshot=!0)}else l.firstFullSnapshot=!0;l.rebuildFullSnapshot(a,s),l.iframe.contentWindow.scrollTo(a.data.initialOffset)};break;case Ee.EventType.IncrementalSnapshot:c=function(){var e,t;if(l.applyIncremental(a,s),!s&&(a===l.nextUserInteractionEvent&&(l.nextUserInteractionEvent=null,l.backToNormal()),l.config.skipInactive)&&!l.nextUserInteractionEvent){try{for(var n=Ie(l.service.state.context.events),r=n.next();!r.done;r=n.next()){var o=r.value;if(!(o.timestamp<=a.timestamp)&&l.isUserInteraction(o)){o.delay-a.delay>1e4*l.speedService.state.context.timer.speed&&(l.nextUserInteractionEvent=o);break}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}l.nextUserInteractionEvent&&(e=l.nextUserInteractionEvent.delay-a.delay,t={speed:Math.min(Math.round(e/5e3),l.config.maxSpeed)},l.speedService.send({type:"FAST_FORWARD",payload:t}),l.emitter.emit(Ee.ReplayerEvents.SkipStart,t))}}}return function(){var t,e;c&&c();try{for(var n=Ie(l.config.plugins||[]),r=n.next();!r.done;r=n.next())r.value.handler(a,s,{replayer:l})}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}l.service.send({type:"CAST_EVENT",payload:{event:a}});var o,i=l.service.state.context.events.length-1;a===l.service.state.context.events[i]&&(o=function(){iEe.IncrementalSource.Mutation&&e.data.source<=Ee.IncrementalSource.Input},d.prototype.backToNormal=function(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(Ee.ReplayerEvents.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))},d.prototype.restoreRealParent=function(e,t){(this.mirror.map[t.__sn.id]=t).__sn.type===N.Element&&"textarea"===t.__sn.tagName&&e.textContent&&(t.value=e.textContent),t.appendChild(e),this.restoreState(t)},d.prototype.storeState=function(e){var t,n;if(e&&e.nodeType===e.ELEMENT_NODE){var r=e;if((r.scrollLeft||r.scrollTop)&&this.elementStateMap.set(e,{scroll:[r.scrollLeft,r.scrollTop]}),"STYLE"===r.tagName){var o=r;var i=this.virtualStyleRulesMap;try{var a=Array.from((null==(s=o.sheet)?void 0:s.cssRules)||[]).map(function(e){return e.cssText});i.set(o,[{type:E.Snapshot,cssTexts:a}])}catch(o){}}var s=r.children;try{for(var c=Ie(Array.from(s)),l=c.next();!l.done;l=c.next()){var u=l.value;this.storeState(u)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}}},d.prototype.restoreState=function(e){var t,n;if(e.nodeType===e.ELEMENT_NODE){var r=e,o=(this.elementStateMap.has(e)&&((o=this.elementStateMap.get(e)).scroll&&(r.scrollLeft=o.scroll[0],r.scrollTop=o.scroll[1]),this.elementStateMap.delete(e)),r.children);try{for(var i=Ie(Array.from(o)),a=i.next();!a.done;a=i.next()){var s=a.value;this.restoreState(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}},d.prototype.restoreNodeSheet=function(e){var t=this.virtualStyleRulesMap.get(e);"STYLE"===e.nodeName&&t&&bt(t,e)},d.prototype.warnNodeNotFound=function(e,t){this.treeIndex.idRemoved(t)?this.warn("Node with id '"+t+"' was previously removed. ",e):this.warn("Node with id '"+t+"' not found. ",e)},d.prototype.warnCanvasMutationFailed=function(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)},d.prototype.debugNodeNotFound=function(e,t){this.treeIndex.idRemoved(t)?this.debug(Tt,"Node with id '"+t+"' was previously removed. ",e):this.debug(Tt,"Node with id '"+t+"' not found. ",e)},d.prototype.warn=function(){for(var e=[],t=0;t recorder created"),this.stopRecordingEvents=ee.record({SlimDOMOptions:{script:!1,comment:!1,headFavicon:!1,headWhitespace:!1,headMetaDescKeywords:!1,headMetaSocial:!1,headMetaRobots:!1,headMetaHttpEquiv:!1,headMetaAuthorship:!1,headMetaVerification:!1},maskAllInputs:!0,sampling:{mousemove:!0,scroll:150,media:600,input:"last"},emit:function(e){var t,n;4===e.type&&(e.user_agent=encodeURIComponent(navigator.userAgent.replace('"',"")),e.sizes=(t=document.body,n=document.documentElement,{window_inner_width:window.innerWidth,window_inner_height:window.innerHeight,window_outer_width:window.outerWidth,window_outer_height:window.outerHeight,window_screen_width:window.screen.width,window_screen_height:window.screen.height,body_scroll_width:t.scrollWidth,body_scroll_height:t.scrollHeight,body_offset_width:t.offsetWidth,body_offset_height:t.offsetHeight,html_client_width:n.clientWidth,html_client_height:n.clientHeight,html_scroll_width:n.scrollWidth,html_scroll_height:n.scrollHeight,html_offset_width:n.offsetWidth,html_offset_height:n.offsetHeight}),e.meta={recorder_version:"1.1.7"},e.startTime=(performance.timing||{}).connectStart||K),r.eventsProxy=e,M.timeEnd("start -> first recorded event")}}),M.timeEnd("start -> recorder created"),this.stopRecordingEvents}},{key:"stop",value:function(){var e,t,n=0 first save sent"),fetch("https://monitor.clickcease.com/V2/recorder/entry2",{method:"POST",headers:{"Content-Type":"application/json"},body:e}).then(function(){M.timeEnd("start -> after first save")})}},{key:"resetInterval",value:function(){var e=this;clearInterval(this.saveInterval),this.saveInterval=setInterval(function(){return e.save()},2500)}},{key:"startSaving",value:function(){var e=this;I(_)?T(C):(T(C),T(_)),setTimeout(function(){void 0===(e.save()||{}).stopReason&&e.resetInterval()},1)}}]),e}()),oe=function(){var e=0 found, Please remove one of them."):(window.ccinstalled=!0,M.log("Debug mode."),M.time("start -> first save sent"),M.time("start -> clientAuth[REQ]"),M.time("start -> clientAuth[RES]"),M.time("start -> after first save"),M.time("start -> first recorded event"),M.time("start -> CHEQ response"),function(){var e="[object SafariRemoteNotification]"===(!window.safari||safari.pushNotification).toString();return 0