/*!
 * Release Version: 1.0.1-r27
 * Release Time: Tue Nov 26 2024 18:39:09 GMT+0800 (中国标准时间)
 */
!function(e,t){
if(e===window){e.fastTracker=t();e.myWebLogTracker=t();}
//[ONLINE-CONFIG]
"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("fastTracker",[],t):"object"==typeof exports?exports.fastTracker=t():e.fastTracker=t()}(this,(function(){return function(){var e={553:function(e){var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(N){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),i=new C(n||[]);return a._invoke=function(e,t,r){var n=f;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===m){if("throw"===o)throw a;return D()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=O(i,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=l(e,t,r);if("normal"===s.type){if(n=r.done?m:d,s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=m,r.method="throw",r.arg=s.arg)}}}(e,r,i),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(N){return{type:"throw",arg:N}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",m="completed",h={};function g(){}function v(){}function y(){}var _={};s(_,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==r&&n.call(w,a)&&(_=w);var S=y.prototype=g.prototype=Object.create(_);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,a,i,c){var s=l(e[o],e,a);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,c)}))}c(s.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function O(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator["return"]&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function E(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(E,this),this.reset(!0)}function I(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:D}}function D(){return{value:t,done:!0}}return v.prototype=y,s(S,"constructor",y),s(y,"constructor",v),v.displayName=s(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},k(x.prototype),s(x.prototype,i,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new x(u(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(S),s(S,c,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),h}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},757:function(e,t,r){e.exports=r(553)},194:function(){window.$$fastRecord=function(){"use strict";var e,t=function(){return(t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a["return"])&&r.call(a)}finally{if(o)throw o.error}}return i}function o(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e}function a(e){var t,r=null===(t=e)||void 0===t?void 0:t.host;return Boolean(r&&r.shadowRoot&&r.shadowRoot===e)}function i(e){var t=e.maskInputOptions,r=e.tagName,n=e.type,o=e.value,a=e.maskInputFn,i=o||"";return(t[r.toLowerCase()]||t[n])&&(i=a?a(i):"*".repeat(i.length)),i}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(e||(e={}));var c=1,s=new RegExp("[^a-z0-9-_:]");function u(e){try{var t=e.rules||e.cssRules;return t?Array.from(t).map(l).join(""):null}catch(e){return null}}function l(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=u(e.styleSheet)||t}catch(e){}return t}var f=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,d=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,p=/^(data:)([^,]*),(.*)/i;function m(e,t){return(e||"").replace(f,(function(e,r,n,o,a,i){var c,s=n||a||i,u=r||o||"";if(!s)return e;if(!d.test(s))return"url("+u+s+u+")";if(p.test(s))return"url("+u+s+u+")";if("/"===s[0])return"url("+u+(((c=t).indexOf("//")>-1?c.split("/").slice(0,3).join("/"):c.split("/")[0]).split("?")[0]+s)+u+")";var l=t.split("/"),f=s.split("/");l.pop();for(var m=0,h=f;m<h.length;m++){var g=h[m];"."!==g&&(".."===g?l.pop():l.push(g))}return"url("+u+l.join("/")+u+")"}))}var h,g,v,y,_,b=/^[^ \t\n\r\u000c]+/,w=/^[, \t\n\r\u000c]+/;function S(e,t){if(!t||""===t.trim())return t;var r=e.createElement("a");return r.href=t,r.href}function k(){var e=document.createElement("a");return e.href="",e.href}function x(e,t,r,n){return"src"===r||"href"===r&&n||"xlink:href"===r&&n&&"#"!==n[0]?S(e,n):"background"!==r||!n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r&&n?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}for(var o=[];n(w),!(r>=t.length);){var a=n(b);if(","===a.slice(-1))a=S(e,a.substring(0,a.length-1)),o.push(a);else{var i="";a=S(e,a);for(var c=!1;;){var s=t.charAt(r);if(""===s){o.push((a+i).trim());break}if(c)")"===s&&(c=!1);else{if(","===s){r+=1,o.push((a+i).trim());break}"("===s&&(c=!0)}i+=s,r+=1}}}return o.join(", ")}(e,n):"style"===r&&n?m(n,k()):"object"===t&&"data"===r&&n?S(e,n):n:S(e,n)}function O(e,t,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){if("string"==typeof t){if(e.classList.contains(t))return!0}else e.classList.forEach((function(e){if(t.test(e))return!0}));return!(!r||!e.matches(r))||O(e.parentNode,t,r)}return e.nodeType,e.TEXT_NODE,O(e.parentNode,t,r)}function E(t,r){var n,o,a,c,l=r.doc,f=r.blockClass,d=r.blockSelector,p=r.maskTextClass,h=r.maskTextSelector,g=r.inlineStylesheet,v=r.maskInputOptions,y=void 0===v?{}:v,_=r.maskTextFn,b=r.maskInputFn,w=r.recordCanvas,S=r.keepIframeSrcFn;if(l.__sn){var E=l.__sn.id;o=1===E?void 0:E}switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode,rootId:o}:{type:e.Document,childNodes:[],rootId:o};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:o};case t.ELEMENT_NODE:for(var T=function(e,t,r){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=0;n<e.classList.length;n++){var o=e.classList[n];if(t.test(o))return!0}return!!r&&e.matches(r)}(t,f,d),C=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return s.test(t)?"div":t}(t),I={},D=0,N=Array.from(t.attributes);D<N.length;D++){var L=N[D],M=L.name,j=L.value;I[M]=x(l,C,M,j)}if("link"===C&&g){var R,F=Array.from(l.styleSheets).find((function(e){return e.href===t.href}));(R=u(F))&&(delete I.rel,delete I.href,I._cssText=m(R,F.href))}if("style"===C&&t.sheet&&!(t.innerText||t.textContent||"").trim().length&&(R=u(t.sheet))&&(I._cssText=m(R,k())),"input"!==C&&"textarea"!==C&&"select"!==C||(j=t.value,"radio"!==I.type&&"checkbox"!==I.type&&"submit"!==I.type&&"button"!==I.type&&j?I.value=i({type:I.type,tagName:C,value:j,maskInputOptions:y,maskInputFn:b}):t.checked&&(I.checked=t.checked)),"option"===C&&(t.selected?I.selected=!0:delete I.selected),"canvas"===C&&w&&(I.rr_dataURL=t.toDataURL()),"audio"!==C&&"video"!==C||(I.rr_mediaState=t.paused?"paused":"played",I.rr_mediaCurrentTime=t.currentTime),t.scrollLeft&&(I.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(I.rr_scrollTop=t.scrollTop),T){var P=t.getBoundingClientRect(),A=P.width,z=P.height;I={"class":I["class"],rr_width:A+"px",rr_height:z+"px"}}return"iframe"!==C||S(I.src)||(t.contentDocument||(I.rr_src=I.src),delete I.src),{type:e.Element,tagName:C,attributes:I,childNodes:[],isSVG:(c=t,"svg"===c.tagName||c instanceof SVGElement||void 0),needBlock:T,rootId:o};case t.TEXT_NODE:var $=t.parentNode&&t.parentNode.tagName,q=t.textContent,U="STYLE"===$||void 0,B="SCRIPT"===$||void 0;if(U&&q){try{(null===(n=t.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(q=(a=t.parentNode.sheet).cssRules?Array.from(a.cssRules).map((function(e){return e.cssText||""})).join(""):"")}catch(e){}q=m(q,k())}return B&&(q="SCRIPT_PLACEHOLDER"),!U&&!B&&O(t,p,h)&&q&&(q=_?_(q):q.replace(/[\S]/g,"*")),{type:e.Text,textContent:q||"",isStyle:U,rootId:o};case t.CDATA_SECTION_NODE:return{type:e.CDATA,textContent:"",rootId:o};case t.COMMENT_NODE:return{type:e.Comment,textContent:t.textContent||"",rootId:o};default:return!1}}function T(e){return void 0===e?"":e.toLowerCase()}function C(t,r){var n,o=r.doc,i=r.map,s=r.blockClass,u=r.blockSelector,l=r.maskTextClass,f=r.maskTextSelector,d=r.skipChild,p=void 0!==d&&d,m=r.inlineStylesheet,h=void 0===m||m,g=r.maskInputOptions,v=void 0===g?{}:g,y=r.maskTextFn,_=r.maskInputFn,b=r.slimDOMOptions,w=r.recordCanvas,S=void 0!==w&&w,k=r.onSerialize,x=r.onIframeLoad,O=r.iframeLoadTimeout,I=void 0===O?5e3:O,D=r.keepIframeSrcFn,N=void 0===D?function(){return!1}:D,L=r.preserveWhiteSpace,M=void 0===L||L,j=E(t,{doc:o,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:f,inlineStylesheet:h,maskInputOptions:v,maskTextFn:y,maskInputFn:_,recordCanvas:S,keepIframeSrcFn:N});if(!j)return console.warn(t,"not serialized"),null;n="__sn"in t?t.__sn.id:!function(t,r){if(r.comment&&t.type===e.Comment)return!0;if(t.type===e.Element){if(r.script&&("script"===t.tagName||"link"===t.tagName&&"preload"===t.attributes.rel&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(r.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(T(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===T(t.attributes.name)||"icon"===T(t.attributes.rel)||"apple-touch-icon"===T(t.attributes.rel)||"shortcut icon"===T(t.attributes.rel))))return!0;if("meta"===t.tagName){if(r.headMetaDescKeywords&&T(t.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(T(t.attributes.property).match(/^(og|twitter|fb):/)||T(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===T(t.attributes.name)))return!0;if(r.headMetaRobots&&("robots"===T(t.attributes.name)||"googlebot"===T(t.attributes.name)||"bingbot"===T(t.attributes.name)))return!0;if(r.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(r.headMetaAuthorship&&("author"===T(t.attributes.name)||"generator"===T(t.attributes.name)||"framework"===T(t.attributes.name)||"publisher"===T(t.attributes.name)||"progid"===T(t.attributes.name)||T(t.attributes.property).match(/^article:/)||T(t.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&("google-site-verification"===T(t.attributes.name)||"yandex-verification"===T(t.attributes.name)||"csrf-token"===T(t.attributes.name)||"p:domain_verify"===T(t.attributes.name)||"verify-v1"===T(t.attributes.name)||"verification"===T(t.attributes.name)||"shopify-checkout-api-token"===T(t.attributes.name)))return!0}}return!1}(j,b)&&(M||j.type!==e.Text||j.isStyle||j.textContent.replace(/^\s+|\s+$/gm,"").length)?c++:-2;var R=Object.assign(j,{id:n});if(t.__sn=R,-2===n)return null;i[n]=t,k&&k(t);var F=!p;if(R.type===e.Element&&(F=F&&!R.needBlock,delete R.needBlock),(R.type===e.Document||R.type===e.Element)&&F){b.headWhitespace&&j.type===e.Element&&"head"===j.tagName&&(M=!1);for(var P={doc:o,map:i,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:f,skipChild:p,inlineStylesheet:h,maskInputOptions:v,maskTextFn:y,maskInputFn:_,slimDOMOptions:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:I,keepIframeSrcFn:N},A=0,z=Array.from(t.childNodes);A<z.length;A++)(U=C(z[A],P))&&R.childNodes.push(U);if(function(e){return e.nodeType===e.ELEMENT_NODE}(t)&&t.shadowRoot){R.isShadowHost=!0;for(var $=0,q=Array.from(t.shadowRoot.childNodes);$<q.length;$++){var U;(U=C(q[$],P))&&(U.isShadow=!0,R.childNodes.push(U))}}}return t.parentNode&&a(t.parentNode)&&(R.isShadow=!0),R.type===e.Element&&"iframe"===R.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var o,a=!1;try{o=n.document.readyState}catch(e){return}if("complete"===o){var i="about:blank";n.location.href===i&&e.src!==i&&""!==e.src?e.addEventListener("load",t):setTimeout(t,0)}else{var c=setTimeout((function(){a||(t(),a=!0)}),r);e.addEventListener("load",(function(){clearTimeout(c),a=!0,t()}))}}}(t,(function(){var e=t.contentDocument;if(e&&x){var r=C(e,{doc:e,map:i,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:v,maskTextFn:y,maskInputFn:_,slimDOMOptions:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:I,keepIframeSrcFn:N});r&&x(t,r)}}),I),R}function I(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}!function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin"}(h||(h={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration"}(g||(g={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"}(v||(v={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked"}(y||(y={})),function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"}(_||(_={}));var D="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",N={map:{},getId:function(){return console.error(D),-1},getNode:function(){return console.error(D),null},removeNodeFromMap:function(){console.error(D)},has:function(){return console.error(D),!1},reset:function(){console.error(D)}};function L(e,t,r){void 0===r&&(r={});var n=null,o=0;return function(a){var i=Date.now();o||!1!==r.leading||(o=i);var c=t-(i-o),s=this,u=arguments;c<=0||c>t?(n&&(clearTimeout(n),n=null),o=i,e.apply(s,u)):n||!1===r.trailing||(n=setTimeout((function(){o=!1===r.leading?0:Date.now(),n=null,e.apply(s,u)}),c))}}function M(e,t,r,n,o){void 0===o&&(o=window);var a=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout((function(){r.set.call(t,e)}),0),a&&a.set&&a.set.call(this,e)}}),function(){return M(e,t,a||{},!0)}}function j(e,t,r){try{if(!(t in e))return function(){};var n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,function(){e[t]=n}}catch(e){return function(){}}}function R(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function F(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function P(e,t){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){var r=!1;return"string"==typeof t?r=e.classList.contains(t):e.classList.forEach((function(e){t.test(e)&&(r=!0)})),r||P(e.parentNode,t)}return e.nodeType,e.TEXT_NODE,P(e.parentNode,t)}function A(e){return"__sn"in e&&-2===e.__sn.id}function z(e,t){if(a(e))return!1;var r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||z(e.parentNode,t))}function $(e){return Boolean(e.changedTouches)}function q(t){return"__sn"in t&&t.__sn.type===e.Element&&"iframe"===t.__sn.tagName}function U(e){var t;return Boolean(null===(t=e)||void 0===t?void 0:t.shadowRoot)}function B(e){return"__ln"in e}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(N=new Proxy(N,{get:function(e,t,r){return"map"===t&&console.error(D),Reflect.get(e,t,r)}}));var H=function(){function e(){this.length=0,this.head=null}return e.prototype.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},e.prototype.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&B(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else e.nextSibling&&B(e.nextSibling)&&e.nextSibling.__ln.previous?(r=e.nextSibling.__ln.previous,t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)):(this.head&&(this.head.previous=t),t.next=this.head,this.head=t);this.length++},e.prototype.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)},e}(),W=function(e,t){return e+"@"+t};function V(e){return"__sn"in e}var J=function(){function e(){var e=this;this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(t){t.forEach(e.processMutation),e.emit()},this.emit=function(){var t,n,o,i;if(!e.frozen&&!e.locked){for(var c=[],s=new H,u=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},l=function(t){var r,n=t.getRootNode?null===(r=t.getRootNode())||void 0===r?void 0:r.host:null,o=!(e.doc.contains(t)||n instanceof Node&&e.doc.contains(n));if(t.parentNode&&!o){var i=a(t.parentNode)?e.mirror.getId(n):e.mirror.getId(t.parentNode),l=u(t);if(-1===i||-1===l)return s.addNode(t);var f=C(t,{doc:e.doc,map:e.mirror.map,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,recordCanvas:e.recordCanvas,onSerialize:function(r){q(r)&&e.iframeManager.addIframe(r),U(t)&&e.shadowDomManager.addShadowRoot(t.shadowRoot,document)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r)}});f&&c.push({parentId:i,nextId:l,node:f})}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());try{for(var f=r(e.movedSet),d=f.next();!d.done;d=f.next()){var p=d.value;X(e.removes,p,e.mirror)&&!e.movedSet.has(p.parentNode)||l(p)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=f["return"])&&n.call(f)}finally{if(t)throw t.error}}try{for(var m=r(e.addedSet),h=m.next();!h.done;h=m.next())p=h.value,K(e.droppedSet,p)||X(e.removes,p,e.mirror)?K(e.movedSet,p)?l(p):e.droppedSet.add(p):l(p)}catch(e){o={error:e}}finally{try{h&&!h.done&&(i=m["return"])&&i.call(m)}finally{if(o)throw o.error}}for(var g=null;s.length;){var v=null;if(g){var y=e.mirror.getId(g.value.parentNode),_=u(g.value);-1!==y&&-1!==_&&(v=g)}if(!v)for(var b=s.length-1;b>=0;b--){var w=s.get(b);if(w&&(y=e.mirror.getId(w.value.parentNode),_=u(w.value),-1!==y&&-1!==_)){v=w;break}}if(!v){for(;s.head;)s.removeNode(s.head.value);break}g=v.previous,s.removeNode(v.value),l(v.value)}var S={texts:e.texts.map((function(t){return{id:e.mirror.getId(t.node),value:t.value}})).filter((function(t){return e.mirror.has(t.id)})),attributes:e.attributes.map((function(t){return{id:e.mirror.getId(t.node),attributes:t.attributes}})).filter((function(t){return e.mirror.has(t.id)})),removes:e.removes,adds:c};(S.texts.length||S.attributes.length||S.removes.length||S.adds.length)&&(e.texts=[],e.attributes=[],e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.movedMap={},e.emissionCallback(S))}},this.processMutation=function(t){var n,o,c,s;if(!A(t.target))switch(t.type){case"characterData":var u=t.target.textContent;P(t.target,e.blockClass)||u===t.oldValue||e.texts.push({value:O(t.target,e.maskTextClass,e.maskTextSelector)&&u?e.maskTextFn?e.maskTextFn(u):u.replace(/[\S]/g,"*"):u,node:t.target});break;case"attributes":var l=t.target;if(u=t.target.getAttribute(t.attributeName),"value"===t.attributeName&&(u=i({maskInputOptions:e.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:u,maskInputFn:e.maskInputFn})),P(t.target,e.blockClass)||u===t.oldValue)return;var f=e.attributes.find((function(e){return e.node===t.target}));if(f||(f={node:t.target,attributes:{}},e.attributes.push(f)),"style"===t.attributeName){var d=e.doc.createElement("span");t.oldValue&&d.setAttribute("style",t.oldValue),void 0!==f.attributes.style&&null!==f.attributes.style||(f.attributes.style={});var p=f.attributes.style;try{for(var m=r(Array.from(l.style)),h=m.next();!h.done;h=m.next()){var g=h.value,v=l.style.getPropertyValue(g),y=l.style.getPropertyPriority(g);v===d.style.getPropertyValue(g)&&y===d.style.getPropertyPriority(g)||(p[g]=""===y?v:[v,y])}}catch(e){n={error:e}}finally{try{h&&!h.done&&(o=m["return"])&&o.call(m)}finally{if(n)throw n.error}}try{for(var _=r(Array.from(d.style)),b=_.next();!b.done;b=_.next())g=b.value,""===l.style.getPropertyValue(g)&&(p[g]=!1)}catch(e){c={error:e}}finally{try{b&&!b.done&&(s=_["return"])&&s.call(_)}finally{if(c)throw c.error}}}else f.attributes[t.attributeName]=x(e.doc,t.target.tagName,t.attributeName,u);break;case"childList":t.addedNodes.forEach((function(r){return e.genAdds(r,t.target)})),t.removedNodes.forEach((function(r){var n=e.mirror.getId(r),o=a(t.target)?e.mirror.getId(t.target.host):e.mirror.getId(t.target);P(t.target,e.blockClass)||A(r)||(e.addedSet.has(r)?(G(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||z(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[W(n,o)]?G(e.movedSet,r):e.removes.push({parentId:o,id:n,isShadow:!!a(t.target)||void 0})),e.mapRemoves.push(r))}))}},this.genAdds=function(t,r){if(!r||!P(r,e.blockClass)){if(V(t)){if(A(t))return;e.movedSet.add(t);var n=null;r&&V(r)&&(n=r.__sn.id),n&&(e.movedMap[W(t.__sn.id,n)]=!0)}else e.addedSet.add(t),e.droppedSet["delete"](t);P(t,e.blockClass)||t.childNodes.forEach((function(t){return e.genAdds(t)}))}}}return e.prototype.init=function(e,t,r,n,o,a,i,c,s,u,l,f,d,p,m){this.blockClass=t,this.blockSelector=r,this.maskTextClass=n,this.maskTextSelector=o,this.inlineStylesheet=a,this.maskInputOptions=i,this.maskTextFn=c,this.maskInputFn=s,this.recordCanvas=u,this.slimDOMOptions=l,this.emissionCallback=e,this.doc=f,this.mirror=d,this.iframeManager=p,this.shadowDomManager=m},e.prototype.freeze=function(){this.frozen=!0},e.prototype.unfreeze=function(){this.frozen=!1,this.emit()},e.prototype.isFrozen=function(){return this.frozen},e.prototype.lock=function(){this.locked=!0},e.prototype.unlock=function(){this.locked=!1,this.emit()},e}();function G(e,t){e["delete"](t),t.childNodes.forEach((function(t){return G(e,t)}))}function X(e,t,r){var n=t.parentNode;if(!n)return!1;var o=r.getId(n);return!!e.some((function(e){return e.id===o}))||X(e,n,r)}function K(e,t){var r=t.parentNode;return!!r&&(!!e.has(r)||K(e,r))}var Z=[],Y="undefined"!=typeof CSSGroupingRule,Q="undefined"!=typeof CSSMediaRule,ee="undefined"!=typeof CSSSupportsRule,te="undefined"!=typeof CSSConditionRule;function re(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function ne(e,t,r,n,o,a,i,c,s,u,l,f,d,p,m,h){var g,v,y,_=new J;Z.push(_),_.init(e,r,n,o,a,i,c,s,u,l,f,t,d,p,m);var b=window.MutationObserver||window.__rrMutationObserver,w=null===(y=null===(v=null===(g=window)||void 0===g?void 0:g.Zone)||void 0===v?void 0:v.__symbol__)||void 0===y?void 0:y.call(v,"MutationObserver");w&&window[w]&&(b=window[w]);var S=new b(_.processMutations.bind(_));return S.observe(h,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),S}function oe(e,t,r,n,o){if(!1===o.mouseInteraction)return function(){};var a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,i=[];return Object.keys(v).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]})).forEach((function(o){var a=o.toLowerCase(),c=function(t){return function(o){var a=re(o);if(!P(a,n)){var i=$(o)?o.changedTouches[0]:o;if(i){var c=r.getId(a),s=i.clientX,u=i.clientY;e({type:v[t],id:c,x:s,y:u})}}}}(o);i.push(I(a,c,t))})),function(){i.forEach((function(e){return e()}))}}function ae(e,t,r,n,o){return I("scroll",L((function(o){var a=re(o);if(a&&!P(a,n)){var i=r.getId(a);if(a===t){var c=t.scrollingElement||t.documentElement;e({id:i,x:c.scrollLeft,y:c.scrollTop})}else e({id:i,x:a.scrollLeft,y:a.scrollTop})}}),o.scroll||100),t)}function ie(e,r){var n=t({},e);return r||delete n.userTriggered,n}var ce=["INPUT","TEXTAREA","SELECT"],se=new WeakMap;function ue(e){return function(e,t){if(Y&&e.parentRule instanceof CSSGroupingRule||Q&&e.parentRule instanceof CSSMediaRule||ee&&e.parentRule instanceof CSSSupportsRule||te&&e.parentRule instanceof CSSConditionRule){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else r=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(r);return t}(e,[])}function le(e,a){var c,s;void 0===a&&(a={});var u=e.doc.defaultView;if(!u)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,a=e.mouseInteractionCb,i=e.scrollCb,c=e.viewportResizeCb,s=e.inputCb,u=e.mediaInteractionCb,l=e.styleSheetRuleCb,f=e.styleDeclarationCb,d=e.canvasMutationCb,p=e.fontCb;e.mutationCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mutation&&t.mutation.apply(t,o(e)),r.apply(void 0,o(e))},e.mousemoveCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mousemove&&t.mousemove.apply(t,o(e)),n.apply(void 0,o(e))},e.mouseInteractionCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mouseInteraction&&t.mouseInteraction.apply(t,o(e)),a.apply(void 0,o(e))},e.scrollCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.scroll&&t.scroll.apply(t,o(e)),i.apply(void 0,o(e))},e.viewportResizeCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.viewportResize&&t.viewportResize.apply(t,o(e)),c.apply(void 0,o(e))},e.inputCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.input&&t.input.apply(t,o(e)),s.apply(void 0,o(e))},e.mediaInteractionCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mediaInteaction&&t.mediaInteaction.apply(t,o(e)),u.apply(void 0,o(e))},e.styleSheetRuleCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.styleSheetRule&&t.styleSheetRule.apply(t,o(e)),l.apply(void 0,o(e))},e.styleDeclarationCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.styleDeclaration&&t.styleDeclaration.apply(t,o(e)),f.apply(void 0,o(e))},e.canvasMutationCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.canvasMutation&&t.canvasMutation.apply(t,o(e)),d.apply(void 0,o(e))},e.fontCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.font&&t.font.apply(t,o(e)),p.apply(void 0,o(e))}}(e,a);var l,f,d,p=ne(e.mutationCb,e.doc,e.blockClass,e.blockSelector,e.maskTextClass,e.maskTextSelector,e.inlineStylesheet,e.maskInputOptions,e.maskTextFn,e.maskInputFn,e.recordCanvas,e.slimDOMOptions,e.mirror,e.iframeManager,e.shadowDomManager,e.doc),m=function(e,t,r,n){if(!1===t.mousemove)return function(){};var o,a="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,c=[],s=L((function(t){var r=Date.now()-o;e(c.map((function(e){return e.timeOffset-=r,e})),t),c=[],o=null}),i),u=L((function(e){var t=re(e),r=$(e)?e.changedTouches[0]:e,a=r.clientX,i=r.clientY;o||(o=Date.now()),c.push({x:a,y:i,id:n.getId(t),timeOffset:Date.now()-o}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?g.Drag:e instanceof MouseEvent?g.MouseMove:g.TouchMove)}),a,{trailing:!1}),l=[I("mousemove",u,r),I("touchmove",u,r),I("drag",u,r)];return function(){l.forEach((function(e){return e()}))}}(e.mousemoveCb,e.sampling,e.doc,e.mirror),h=oe(e.mouseInteractionCb,e.doc,e.mirror,e.blockClass,e.sampling),v=ae(e.scrollCb,e.doc,e.mirror,e.blockClass,e.sampling),y=(l=e.viewportResizeCb,f=-1,d=-1,I("resize",L((function(){var e=R(),t=F();f===e&&d===t||(l({width:Number(t),height:Number(e)}),f=e,d=t)}),200),window)),_=function(e,r,n,a,c,s,u,l,f){function d(e){var t=re(e),n=e.isTrusted;if(t&&t.tagName&&!(ce.indexOf(t.tagName)<0)&&!P(t,a)){var o=t.type;if(!t.classList.contains(c)){var l=t.value,d=!1;"radio"===o||"checkbox"===o?d=t.checked:(s[t.tagName.toLowerCase()]||s[o])&&(l=i({maskInputOptions:s,tagName:t.tagName,type:o,value:l,maskInputFn:u})),p(t,ie({text:l,isChecked:d,userTriggered:n},f));var m=t.name;"radio"===o&&m&&d&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach((function(e){e!==t&&p(e,ie({text:e.value,isChecked:!d,userTriggered:!1},f))}))}}}function p(r,o){var a=se.get(r);if(!a||a.text!==o.text||a.isChecked!==o.isChecked){se.set(r,o);var i=n.getId(r);e(t(t({},o),{id:i}))}}var m=("last"===l.input?["change"]:["input","change"]).map((function(e){return I(e,d,r)})),h=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),g=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"]];return h&&h.set&&m.push.apply(m,o(g.map((function(e){return M(e[0],e[1],{set:function(){d({target:this})}})})))),function(){m.forEach((function(e){return e()}))}}(e.inputCb,e.doc,e.mirror,e.blockClass,e.ignoreClass,e.maskInputOptions,e.maskInputFn,e.sampling,e.userTriggeredOnInput),b=function(e,t,r){var n=function(n){return function(o){var a=re(o);a&&!P(a,t)&&e({type:n,id:r.getId(a),currentTime:a.currentTime})}},o=[I("play",n(0)),I("pause",n(1)),I("seeked",n(2))];return function(){o.forEach((function(e){return e()}))}}(e.mediaInteractionCb,e.blockClass,e.mirror),w=function(e,t,r){var a=t.CSSStyleSheet.prototype.insertRule;t.CSSStyleSheet.prototype.insertRule=function(t,n){var o=r.getId(this.ownerNode);return-1!==o&&e({id:o,adds:[{rule:t,index:n}]}),a.apply(this,arguments)};var i=t.CSSStyleSheet.prototype.deleteRule;t.CSSStyleSheet.prototype.deleteRule=function(t){var n=r.getId(this.ownerNode);return-1!==n&&e({id:n,removes:[{index:t}]}),i.apply(this,arguments)};var c={};Y?c.CSSGroupingRule=t.CSSGroupingRule:(Q&&(c.CSSMediaRule=t.CSSMediaRule),te&&(c.CSSConditionRule=t.CSSConditionRule),ee&&(c.CSSSupportsRule=t.CSSSupportsRule));var s={};return Object.entries(c).forEach((function(t){var a=n(t,2),i=a[0],c=a[1];s[i]={insertRule:c.prototype.insertRule,deleteRule:c.prototype.deleteRule},c.prototype.insertRule=function(t,n){var a=r.getId(this.parentStyleSheet.ownerNode);return-1!==a&&e({id:a,adds:[{rule:t,index:o(ue(this),[n||0])}]}),s[i].insertRule.apply(this,arguments)},c.prototype.deleteRule=function(t){var n=r.getId(this.parentStyleSheet.ownerNode);return-1!==n&&e({id:n,removes:[{index:o(ue(this),[t])}]}),s[i].deleteRule.apply(this,arguments)}})),function(){t.CSSStyleSheet.prototype.insertRule=a,t.CSSStyleSheet.prototype.deleteRule=i,Object.entries(c).forEach((function(e){var t=n(e,2),r=t[0],o=t[1];o.prototype.insertRule=s[r].insertRule,o.prototype.deleteRule=s[r].deleteRule}))}}(e.styleSheetRuleCb,u,e.mirror),S=function(e,t,r){var n=t.CSSStyleDeclaration.prototype.setProperty;t.CSSStyleDeclaration.prototype.setProperty=function(t,o,a){var i,c,s=r.getId(null===(c=null===(i=this.parentRule)||void 0===i?void 0:i.parentStyleSheet)||void 0===c?void 0:c.ownerNode);return-1!==s&&e({id:s,set:{property:t,value:o,priority:a},index:ue(this.parentRule)}),n.apply(this,arguments)};var o=t.CSSStyleDeclaration.prototype.removeProperty;return t.CSSStyleDeclaration.prototype.removeProperty=function(t){var n,a,i=r.getId(null===(a=null===(n=this.parentRule)||void 0===n?void 0:n.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==i&&e({id:i,remove:{property:t},index:ue(this.parentRule)}),o.apply(this,arguments)},function(){t.CSSStyleDeclaration.prototype.setProperty=n,t.CSSStyleDeclaration.prototype.removeProperty=o}}(e.styleDeclarationCb,u,e.mirror),k=e.recordCanvas?function(e,t,n,a){var i,c,s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),u=[],l=function(r){try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[r])return"continue";var i=j(t.CanvasRenderingContext2D.prototype,r,(function(t){return function(){for(var i=this,c=[],s=0;s<arguments.length;s++)c[s]=arguments[s];return P(this.canvas,n)||setTimeout((function(){var t=o(c);if("drawImage"===r&&t[0]&&t[0]instanceof HTMLCanvasElement){var n=t[0],s=n.getContext("2d"),u=null==s?void 0:s.getImageData(0,0,n.width,n.height),l=null==u?void 0:u.data;t[0]=JSON.stringify(l)}e({id:a.getId(i.canvas),property:r,args:t})}),0),t.apply(this,c)}}));u.push(i)}catch(n){var c=M(t.CanvasRenderingContext2D.prototype,r,{set:function(t){e({id:a.getId(this.canvas),property:r,args:[t],setter:!0})}});u.push(c)}};try{for(var f=r(s),d=f.next();!d.done;d=f.next())l(d.value)}catch(e){i={error:e}}finally{try{d&&!d.done&&(c=f["return"])&&c.call(f)}finally{if(i)throw i.error}}return function(){u.forEach((function(e){return e()}))}}(e.canvasMutationCb,u,e.blockClass,e.mirror):function(){},x=e.collectFonts?function(e,t){var r=t.defaultView;if(!r)return function(){};var n=[],o=new WeakMap,a=r.FontFace;r.FontFace=function(e,t,r){var n=new a(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var i=j(t.fonts,"add",(function(t){return function(r){return setTimeout((function(){var t=o.get(r);t&&(e(t),o["delete"](r))}),0),t.apply(this,[r])}}));return n.push((function(){r.FontFace=a})),n.push(i),function(){n.forEach((function(e){return e()}))}}(e.fontCb,e.doc):function(){},O=[];try{for(var E=r(e.plugins),T=E.next();!T.done;T=E.next()){var C=T.value;O.push(C.observer(C.callback,u,C.options))}}catch(e){c={error:e}}finally{try{T&&!T.done&&(s=E["return"])&&s.call(E)}finally{if(c)throw c.error}}return function(){p.disconnect(),m(),h(),v(),y(),_(),b(),w(),S(),k(),x(),O.forEach((function(e){return e()}))}}var fe,de,pe=function(){function e(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}return e.prototype.addIframe=function(e){this.iframes.set(e,!0)},e.prototype.addLoadListener=function(e){this.loadListener=e},e.prototype.attachIframe=function(e,t){var r;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||r.call(this,e)},e}(),me=function(){function e(e){this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror}return e.prototype.addShadowRoot=function(e,t){ne(this.mutationCb,t,this.bypassOptions.blockClass,this.bypassOptions.blockSelector,this.bypassOptions.maskTextClass,this.bypassOptions.maskTextSelector,this.bypassOptions.inlineStylesheet,this.bypassOptions.maskInputOptions,this.bypassOptions.maskTextFn,this.bypassOptions.maskInputFn,this.bypassOptions.recordCanvas,this.bypassOptions.slimDOMOptions,this.mirror,this.bypassOptions.iframeManager,this,e),ae(this.scrollCb,e,this.mirror,this.bypassOptions.blockClass,this.bypassOptions.sampling)},e}();function he(e){return t(t({},e),{timestamp:Date.now()})}var ge={map:{},getId:function(e){return e&&e.__sn?e.__sn.id:-1},getNode:function(e){return this.map[e]||null},removeNodeFromMap:function(e){var t=this,r=e.__sn&&e.__sn.id;delete this.map[r],e.childNodes&&e.childNodes.forEach((function(e){return t.removeNodeFromMap(e)}))},has:function(e){return this.map.hasOwnProperty(e)},reset:function(){this.map={}}};function ve(e){void 0===e&&(e={});var r=e.emit,o=e.checkoutEveryNms,a=e.checkoutEveryNth,i=e.blockClass,c=void 0===i?"rr-block":i,s=e.blockSelector,u=void 0===s?null:s,l=e.ignoreClass,f=void 0===l?"rr-ignore":l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,m=e.maskTextSelector,v=void 0===m?null:m,y=e.inlineStylesheet,_=void 0===y||y,b=e.maskAllInputs,w=e.maskInputOptions,S=e.slimDOMOptions,k=e.maskInputFn,x=e.maskTextFn,O=e.hooks,E=e.packFn,T=e.sampling,D=void 0===T?{}:T,N=e.mousemoveWait,L=e.recordCanvas,M=void 0!==L&&L,j=e.userTriggeredOnInput,P=void 0!==j&&j,A=e.collectFonts,z=void 0!==A&&A,$=e.plugins,B=e.keepIframeSrcFn,H=void 0===B?function(){return!1}:B;if(!r)throw new Error("emit function is required");void 0!==N&&void 0===D.mousemove&&(D.mousemove=N);var W,V,J=!0===b?{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}:void 0!==w?w:{password:!0},G=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};void 0===W&&(W=window),"NodeList"in W&&!W.NodeList.prototype.forEach&&(W.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in W&&!W.DOMTokenList.prototype.forEach&&(W.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1});var X=0;fe=function(e,t){var n;if(!(null===(n=Z[0])||void 0===n?void 0:n.isFrozen())||e.type===h.FullSnapshot||e.type===h.IncrementalSnapshot&&e.data.source===g.Mutation||Z.forEach((function(e){return e.unfreeze()})),r(E?E(e):e,t),e.type===h.FullSnapshot)V=e,X=0;else if(e.type===h.IncrementalSnapshot){if(e.data.source===g.Mutation&&e.data.isAttachIframe)return;X++;var i=a&&X>=a,c=o&&e.timestamp-V.timestamp>o;(i||c)&&de(!0)}};var K=function(e){fe(he({type:h.IncrementalSnapshot,data:t({source:g.Mutation},e)}))},Y=function(e){return fe(he({type:h.IncrementalSnapshot,data:t({source:g.Scroll},e)}))},Q=new pe({mutationCb:K}),ee=new me({mutationCb:K,scrollCb:Y,bypassOptions:{blockClass:c,blockSelector:u,maskTextClass:p,maskTextSelector:v,inlineStylesheet:_,maskInputOptions:J,maskTextFn:x,maskInputFn:k,recordCanvas:M,sampling:D,slimDOMOptions:G,iframeManager:Q},mirror:ge});de=function(e){var t,r,o,a;void 0===e&&(e=!1),fe(he({type:h.Meta,data:{href:window.location.href,width:F(),height:R()}}),e),Z.forEach((function(e){return e.lock()}));var i=n(function(e,t){var r=t||{},n=r.blockClass,o=r.blockSelector,a=r.maskTextClass,i=r.maskTextSelector,c=r.inlineStylesheet,s=r.recordCanvas,u=r.maskAllInputs,l=void 0!==u&&u,f=r.slimDOM,d=void 0!==f&&f,p=r.keepIframeSrcFn,m={};return[C(e,{doc:e,map:m,blockClass:void 0===n?"rr-block":n,blockSelector:void 0===o?null:o,maskTextClass:void 0===a?"rr-mask":a,maskTextSelector:void 0===i?null:i,skipChild:!1,inlineStylesheet:void 0===c||c,maskInputOptions:!0===l?{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===l?{password:!0}:l,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:!0===d||"all"===d?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===d,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===d?{}:d,recordCanvas:void 0!==s&&s,preserveWhiteSpace:r.preserveWhiteSpace,onSerialize:r.onSerialize,onIframeLoad:r.onIframeLoad,iframeLoadTimeout:r.iframeLoadTimeout,keepIframeSrcFn:void 0===p?function(){return!1}:p}),m]}(document,{blockClass:c,blockSelector:u,maskTextClass:p,maskTextSelector:v,inlineStylesheet:_,maskAllInputs:J,maskTextFn:x,slimDOM:G,recordCanvas:M,onSerialize:function(e){q(e)&&Q.addIframe(e),U(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){Q.attachIframe(e,t)},keepIframeSrcFn:H}),2),s=i[0],l=i[1];if(!s)return console.warn("Failed to snapshot the document");ge.map=l,fe(he({type:h.FullSnapshot,data:{node:s,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(r=null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===r?void 0:r.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===(a=null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.parentElement)||void 0===a?void 0:a.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),Z.forEach((function(e){return e.unlock()}))};try{var te=[];te.push(I("DOMContentLoaded",(function(){fe(he({type:h.DomContentLoaded,data:{}}))})));var re=function(e){return le({mutationCb:K,mousemoveCb:function(e,t){return fe(he({type:h.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return fe(he({type:h.IncrementalSnapshot,data:t({source:g.MouseInteraction},e)}))},scrollCb:Y,viewportResizeCb:function(e){return fe(he({type:h.IncrementalSnapshot,data:t({source:g.ViewportResize},e)}))},inputCb:function(e){return fe(he({type:h.IncrementalSnapshot,data:t({source:g.Input},e)}))},mediaInteractionCb:function(e){return fe(he({type:h.IncrementalSnapshot,data:t({source:g.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return fe(he({type:h.IncrementalSnapshot,data:t({source:g.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return fe(he({type:h.IncrementalSnapshot,data:t({source:g.StyleDeclaration},e)}))},canvasMutationCb:function(e){return fe(he({type:h.IncrementalSnapshot,data:t({source:g.CanvasMutation},e)}))},fontCb:function(e){return fe(he({type:h.IncrementalSnapshot,data:t({source:g.Font},e)}))},blockClass:c,ignoreClass:f,maskTextClass:p,maskTextSelector:v,maskInputOptions:J,inlineStylesheet:_,sampling:D,recordCanvas:M,userTriggeredOnInput:P,collectFonts:z,doc:e,maskInputFn:k,maskTextFn:x,blockSelector:u,slimDOMOptions:G,mirror:ge,iframeManager:Q,shadowDomManager:ee,plugins:(null==$?void 0:$.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return fe(he({type:h.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},O)};Q.addLoadListener((function(e){te.push(re(e.contentDocument))}));var ne=function(){de(),te.push(re(document))};return"interactive"===document.readyState||"complete"===document.readyState?ne():te.push(I("load",(function(){fe(he({type:h.Load,data:{}})),ne()}),window)),function(){te.forEach((function(e){return e()}))}}catch(e){console.warn(e)}}return ve.addCustomEvent=function(e,t){if(!fe)throw new Error("please add custom event after start recording");fe(he({type:h.Custom,data:{tag:e,payload:t}}))},ve.freezePage=function(){Z.forEach((function(e){return e.freeze()}))},ve.takeFullSnapshot=function(e){if(!de)throw new Error("please take full snapshot after start recording");de(e)},ve.mirror=ge,ve}()}},t={};function r(n){var o=t[n];if(o!==undefined)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var n={};return function(){"use strict";r.d(n,{"default":function(){return At}});r(194);function e(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){var r,n;(n="undefined"!=typeof window&&window.navigator.userAgent.toLowerCase())&&/msie|trident/.test(n)?(r=document.createEvent("CustomEvent")).initCustomEvent(e,!1,!1,t):window.CustomEvent?r=new CustomEvent(e,{detail:t}):((r=document.createEvent("HTMLEvents")).initEvent(e,!1,!0),r.detail=t),window.dispatchEvent(r)}function s(e,t,r,n){var o=function c(e){return e&&(e.preventDefault=c.preventDefault,e.stopPropagation=c.stopPropagation),e};o.preventDefault=function(){this.returnValue=!1},o.stopPropagation=function(){this.cancelBubble=!0};var a=function(e,t,r,n){return function(a){if(!(a=a||o(window.event)))return undefined;a.target=a.srcElement;var i,c=!0;"function"==typeof r&&(i=r(a));var s=t.call(e,a);return"beforeunload"!==n?(!1!==i&&!1!==s||(c=!1),c):void 0}},i=function(e,t,r){if(n===undefined&&"click"===t&&(n=!0),e&&e.addEventListener)e.addEventListener(t,(function(e){e._getPath=o._getPath,r.call(this,e)}),n);else{var i="on".concat(t),c=e[i];e[i]=a(e,r,c,t)}};i.apply(null,arguments)}var u=600,l=18e5,f=["endpoint","include_search","collect_event_types","report_api_params","trace_config"],d="__fastTracker__",p="__myWebLogTracker__",m="/data/(data|user/\\d+)/[^/]+/files/www",h="/var/mobile/Containers/Data/Application/[^/]+/Documents/www",g="Hybrid APP",v="x-fast-trace-id",y=["page_stay","page_load","page","click","api","error","crash","start","pause","resume","fmp","anr"],_=[{c:"tenant_reader",n:"tenant_code",sn:"tn"},{c:"real_user_reader",n:"user_account",sn:"ru"},{c:"user_group_reader",n:"user_group",sn:"ug"},{c:"real_user_name_reader",n:"real_user_name",sn:"run"},{c:"real_user_role_reader",n:"real_user_role",sn:"rur"},{c:"real_user_post_reader",n:"real_user_post",sn:"rup"},{c:"real_user_bu_name_reader",n:"real_user_bu_name",sn:"rubn"}],b={top:1,com:1,xyz:1,xin:1,vip:1,win:1,red:1,net:1,org:1,wang:1,gov:1,edu:1,mil:1,co:1,biz:1,name:1,info:1,mobi:1,pro:1,travel:1,club:1,museum:1,int:1,aero:1,post:1,rec:1,asia:1,art:1,firm:1,nom:1,store:1,web:1},w={ad:1,ae:1,af:1,ag:1,ai:1,al:1,am:1,an:1,ao:1,aa:1,ar:1,as:1,at:1,au:1,aw:1,az:1,ba:1,bb:1,bd:1,be:1,bf:1,bg:1,bh:1,bi:1,bj:1,bm:1,bn:1,bo:1,br:1,bs:1,bt:1,bv:1,bw:1,by:1,bz:1,ca:1,cc:1,cf:1,cd:1,ch:1,ci:1,ck:1,cl:1,cm:1,cn:1,cq:1,cr:1,cu:1,cv:1,cx:1,cy:1,cz:1,de:1,dj:1,dk:1,dm:1,"do":1,dz:1,ec:1,ee:1,eg:1,eh:1,er:1,es:1,et:1,ev:1,fi:1,fj:1,fk:1,fm:1,fo:1,fr:1,ga:1,gd:1,ge:1,gf:1,gg:1,gh:1,gi:1,gl:1,gm:1,gn:1,gp:1,gr:1,gs:1,gt:1,gu:1,gw:1,gy:1,hk:1,hm:1,hn:1,hr:1,ht:1,hu:1,id:1,ie:1,il:1,im:1,"in":1,io:1,iq:1,ir:1,is:1,it:1,jm:1,jo:1,jp:1,je:1,ke:1,kg:1,kh:1,ki:1,km:1,kn:1,kp:1,kr:1,kw:1,ky:1,kz:1,la:1,lb:1,lc:1,li:1,lk:1,lr:1,ls:1,lt:1,lu:1,lv:1,ly:1,ma:1,mc:1,md:1,me:1,mg:1,mh:1,mk:1,ml:1,mm:1,mn:1,mo:1,mp:1,mq:1,mr:1,ms:1,mt:1,mu:1,mv:1,mw:1,mx:1,my:1,mz:1,na:1,nc:1,ne:1,nf:1,ng:1,ni:1,nl:1,no:1,np:1,nr:1,nt:1,nu:1,nz:1,om:1,qa:1,pa:1,pe:1,pf:1,pg:1,ph:1,pk:1,pl:1,pm:1,pn:1,pr:1,pt:1,pw:1,py:1,re:1,rs:1,ro:1,ru:1,rw:1,sa:1,sb:1,sc:1,sd:1,se:1,sg:1,sh:1,si:1,sj:1,sk:1,sl:1,sm:1,sn:1,so:1,sr:1,st:1,sv:1,su:1,sy:1,sz:1,sx:1,tc:1,td:1,tf:1,tg:1,th:1,tj:1,tk:1,tl:1,tm:1,tn:1,to:1,tr:1,tt:1,tv:1,tw:1,tz:1,ua:1,ug:1,uk:1,um:1,us:1,uy:1,uz:1,va:1,vc:1,ve:1,vg:1,vi:1,vn:1,vu:1,wf:1,ws:1,ye:1,yt:1,za:1,zm:1,zw:1};function S(e){var t=e.msg,r=void 0===t?"":t,n=e.showFooter,o=void 0!==n&&n,a=e.type,i=void 0===a?"warn":a,c=window.console;if(c&&c.log&&r){var s="error"===i?"color:#F86161":"color:#e80",u="%c[天眼探针内部".concat("error"===i?"错误":"提醒","]");r.indexOf("\n")>-1?(c.log(u,s),r.split("\n").forEach((function(e){e&&c.log(e)}))):c.log("".concat(u,": ").concat(r),s),o&&c.log("探针初始化失败, 请查看文档【https://open.mingyuanyun.com/docs/fast】")}}function k(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function x(e){return e&&"[object Object]"===Object.prototype.toString.call(e)}function O(e){return e&&"[object Function]"===Object.prototype.toString.call(e)}function E(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function T(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function C(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function I(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function D(e){return"[object String]"===Object.prototype.toString.call(e)}var N,L=(N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","function"==typeof window.btoa?window.btoa:function(e){for(var t,r,n,o,a="",i=(e=String(e)).length%3,c=0;c<e.length;){if(r=e.charCodeAt(c++),n=e.charCodeAt(c++),o=e.charCodeAt(c++),r>255||n>255||o>255)return S({msg:"探针内部异常encodeB64失败\nThe string to be encoded contains characters outside of the Latin1 range"}),e;a+=N.charAt((t=r<<16|n<<8|o)>>18&63)+N.charAt(t>>12&63)+N.charAt(t>>6&63)+N.charAt(63&t)}return i?a.slice(0,i-3)+"===".substring(i):a});function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function j(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0!==r.length){var o=k(r[0])?r[0]:r;o.forEach((function(t){try{delete e[t]}catch(r){}}))}}function R(e,t){try{return null===e||e===undefined?null:function(e,t){if(t&&"string"==typeof t)try{if(-1===t.indexOf("."))return e&&e[t]!==undefined?e[t]:null;for(var r=t.split("."),n=e,o=0,a=r.length;null!==n&&n!==undefined&&o<a;)n=n["".concat(r[o++])];return o&&o===a?n:null}catch(i){return null}return null}(e,t)}catch(r){}return null}function F(e){return e.replace(/((password|passwd|passcode|pwd|secret|token|auth|key|cert|signature|sign|cipher|iv|salt|hash|hmac)["']?\s*[:=]\s*["']?)([^"'&,}]+)(["'&,}]+|\b)/gi,(function(e,t,r,n,o){return"".concat(t,"**").concat(o)}))}function P(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1];return e>0?t?Math.round(e):e:0}function A(e){if("function"==typeof Number.isNaN)return Number.isNaN(e);try{return window.isNaN(e)}catch(t){return!1}}function z(e){if("function"==typeof Number.parseFloat)return Number.parseFloat(e);try{return window.parseFloat(e)}catch(t){return+e}}function $(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:2;return A(+e)?0:z((+e).toFixed(t))}function q(e){return function(){return"function ".concat(e,"() { [native code] }")}}function U(e){for(var t=0,r=0;r<e.length;r++){var n=e.charCodeAt(r);n<127?t++:t+=n>=128&&n<=2047?2:n>=2048&&n<=65535?3:4}return t}function B(){var e={registUser:function(){return S({msg:"探针registUser方法调用无效!",showFooter:!0})},setBasicInfo:function(){return S({msg:"探针setBasicInfo方法调用无效!",showFooter:!0})},report:function(){return S({msg:"探针report方法调用无效!",showFooter:!0})},reportError:function(){return S({msg:"探针reportError方法调用无效!",showFooter:!0})},reportLoaded:function(){return S({msg:"探针reportLoaded方法调用无效!且该方法已移除!",showFooter:!0})},clearLogStore:function(){return S({msg:"探针clearLogStore方法调用无效!",showFooter:!0})},printDebug:function(){return S({msg:"探针printDebug方法调用无效!",showFooter:!0})}};return e.registUser.toString=q("registUser"),e.setBasicInfo.toString=q("setBasicInfo"),e.report.toString=q("report"),e.reportError.toString=q("reportError"),e.reportLoaded.toString=q("reportLoaded"),e.clearLogStore.toString=q("clearLogStore"),e.printDebug.toString=q("printDebug"),e}function H(e,t,r){if(e&&"function"==typeof r){var n=e[t];if(!n||!n._fast_wrapped_){var o=r(n);if(o)return o.__fast_wrapped__=!0,o.toString=q(t),e[t]=o,o}}return!1}function W(e){return"string"==typeof e&&(e=e.replace(/(%[0-9a-f]{2})+/gi,(function(e){var t;try{t=decodeURIComponent(e)}catch(r){t=unescape(e)}return t}))),e}function V(e){return e&&"string"==typeof e.tagName?e.tagName.toLowerCase():""}function J(e){var t=(e||"").replace(/^[a-zA-Z]+:\/\//,"");if(t){var r=t.split("."),n=r.length-1;for(1===w[r[n]]&&(n-=1);n>-1;n--)if(1!==b[r[n]])return r[n]}return""}function G(e){var t=e.curr_hash,r=e.curr_search,n=e.curr_href,o=r,a=n.replace(/(^[a-zA-Z]+:\/\/[^/]*)[\s\S]*/,"$1"),i=a.replace(/^[a-zA-Z]+:\/\//i,""),c=n.replace(a,"");if(window.cordova&&(c=(c=c.replace(new RegExp("^".concat(h)),"")).replace(new RegExp("^".concat(m)),"")),t)if(0===t.indexOf("#/")){var s=c.replace(/([^#]*#\/[^#?]*)([#?][\s\S]*)?/,"$2");c=c.replace(/([^#]*#\/[^#?]*)([#?][\s\S]*)?/,"$1"),o=s&&s.indexOf("?")>-1?s.replace(/[^?]*(\?[^#?]*)([#?][\s\S]*)?/,"$1"):""}else c=c.replace(/#[\s\S]*/,"").replace(/\?[\s\S]*/,""),!o&&n.indexOf("?")>-1&&(o=n.replace(/[^?]*(\?[^#?]*)([#?][\s\S]*)?/,"$1"));else c=c.replace(/\?[\s\S]*/,"");return{hash:t,href:n,fixPathname:c,search:o?o.replace(/^\??([\s\S]+)$/,"$1"):"",domain:i}}function X(e){var t=e?e.curr_href:document&&document.referrer;return"string"!=typeof t?"":(window.cordova&&(t=(t=t.replace(new RegExp("^[a-zA-Z]+://([\\w\\.\\-]+(:\\d+)?)?".concat(h)),"")).replace(new RegExp("^[a-zA-Z]+://".concat(m)),"")),t)}function K(){var e,t=(null===(e=document)||void 0===e?void 0:e.location)||{},r=t.href;return{curr_hash:t.hash||"",curr_search:t.search||"",curr_href:r||""}}function Z(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[],r=t.length;if(!e||0===r)return!1;for(var n=0;n<r;n++){var o=t[n];try{if("string"!=typeof o)continue;if(new RegExp(o).test(e))return!0}catch(a){continue}}return!1}function Y(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"",t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"",r=(e||window.location.href).replace(/^[^?]+\?([^?#]+).*$/,"$1"),n=r?r.split("&"):[],o=n.length;if(o>0){for(var a={},i=0;i<o;i++){var c=n[i].indexOf("="),s=n[i].substr(0,c),u=n[i].substr(c+1);if(s&&u){if(t&&s===t)return W(u);a[s]=W(u)}}return t?"":a}return t?"":{}}function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function te(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"",r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"",n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:"",o=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};return o=o||{},"body"===V(e)&&o[n]?o:"function"==typeof e.getAttribute?([t,r,n].forEach((function(t){if(!o[t]){var r=e.getAttribute(t);r&&(o[t]=r)}})),o[t]&&o[r]&&o[n]||!e.parentNode||(o=ee(ee({},o),te(e.parentNode,t,r,n,o))),o):o}function re(e,t){return!!(e&&e.parentNode&&e.parentNode.children)&&(t=t&&t.join?t:[],"body"===e.nodeName.toLowerCase()||1!==e.nodeType?(t.unshift("body"),t.join(" > ")):(t.unshift(function(e){var t=e.parentNode&&9===e.parentNode.nodeType?-1:function(e){var t=[].indexOf;if(!e.parentNode)return-1;var r=e.parentNode.children;if(!r)return-1;var n=r.length;if(t)return t.call(r,e);for(var o=0;o<n;++o)if(e===r[o])return o;return-1}(e);return e.id?"#".concat(e.id):V(e)+(~t?":nth-child(".concat(t+1,")"):"")}(e)),e.id?t.join(" > "):re(e.parentNode,t)))}function ne(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0,r="string"==typeof e.tagName?e.tagName.toUpperCase():"";if(e.childNodes.length>0&&t<3&&"TEXTAREA"!==r){for(var n=[],o=[],a=e.childNodes.length,c=0;c<a;c++)1===e.childNodes[c].nodeType&&e.childNodes[c].childNodes.length>0?o.push(e.childNodes[c]):3===e.childNodes[c].nodeType&&e.childNodes[c].nodeValue&&n.push(e.childNodes[c].nodeValue);for(var s=o.length,u=0;u<s;u++){var l=t>0?t+1:n.length>0?1:0,f=ne(o[u],l);f.length>0&&n.push.apply(n,i(f))}return n}return[]}var oe=function(e){s(document,"click",(function(t){var r=t||window.event;if(!r)return!1;var n=r.target||r.srcElement,o=V(n);if(!o||"body"===o||"html"===o||!n.parentNode||!n.parentNode.children)return!1;var a=te(n,e.conf.log_event_attribute,e.conf.log_content_attribute,e.conf.log_module_attribute),i=a[e.conf.log_content_attribute]||"",c=a[e.conf.log_event_attribute]||"",s=a[e.conf.log_module_attribute]||"",u=re(n),l={g:{et:o,ec:ne(n).join("").replace(/\s/g,"").slice(0,256),ep:u}};return(i||"number"==typeof i)&&(l.l=i),s&&(l.m=s),y.indexOf(c)>-1?c="user-defined-".concat(c):c||(c=y[3]),e.createLog(c,l),!0}))};function ae(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1,t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;return Math.floor(Math.random()*(e-t)+t)}var ie=function(){for(var e=function(){var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&window.msCrypto.getRandomValues.bind(window.msCrypto);if(e){var t=new Uint8Array(16);return function(){return e(t),t}}var r=[];return function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}(),t=function(e){for(var t=(e=unescape(encodeURIComponent(e))).length,r=[],n=0;n<t;n++)r[n]=e.charCodeAt(n);return r}(window.navigator.userAgent),r=t.length,n=[],o=0;o<256;++o)n[o]=(o+256).toString(16).substr(1);var a=(new Date).getTime(),i=0,c=0;return function(){var o=e(),s=0,u=[],l=[1|o[0],o[1],o[2]],f=1e5*(new Date).getTime();performance&&"function"==typeof performance.now&&(f=+"".concat(1e5*(a+performance.now())).replace(/\.\d*/g,""));var d=f.toString(16),p=c+1;(f-i<=0||f>i)&&(p=0),i=f,c=p;var m,h,g=(1e4*(268435455&(f+=122192928e5))+p)%4294967296;return u[s++]=g>>>16&255,u[s++]=g>>>8&255,u[s++]=255&p,u[s++]=l[0],u[s++]=l[1],u[s++]=l[2],u[s++]=255&t[ae(r)],u[s++]=255&t[ae(r)],u[8]=255&t[ae(r)],"".concat(d,"-").concat((m=u,h?[n[m[2]],n[m[Math.floor(3*Math.random())+3]],n[m[Math.floor(3*Math.random())+6]]].join(""):[n[m[0]],n[m[1]],n[m[2]],n[m[3]],n[m[4]],"-",n[m[5]],n[m[6]],n[m[7]],n[m[8]],n[m[9]]].join("")))}}(),ce=function(e){e.curr_pgsted=0,e.createLog(y[2],null,1);var t=function(t){clearTimeout(e.ps_timer),t&&(e.ps_timer=setTimeout((function(){var t=(new Date).getTime();e.curr_pgsted=1,e.createLog(y[0],{g:{du:t-e.page_enter}})}),l))};if(e.conf.is_spa){var r=function(){e.fmpInstance&&e.fmpInstance.stop(),e.fmpInstance&&e.fmpInstance.leaveExcute(),e.fmpInstance&&e.fmpInstance.start(),"function"==typeof performance.getEntriesByType&&(e.last_resource=performance.getEntriesByType("resource").length-1);var r=(new Date).getTime();e.curr_pgsted||(e.curr_pgsted=1,e.createLog(y[0],{g:{du:r-e.page_enter}})),e.page_enter=r;var n=K();e.prev_page=X(e),e.curr_pid=ie(),e.curr_hash=n.curr_hash,e.curr_search=n.curr_search,e.curr_href=n.curr_href,e.curr_pgsted=0,e.curr_pgl=0,e.createLog(y[2]),t(!0)},n=window.navigator.userAgent;if((-1===n.indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history){var o=function(e,t){var n=e[t];"function"!=typeof n||e[t].__fast_wrapped__||(e[t]=function(t,o,a){if(!a||"string"!=typeof a)return n.call(e,t,o);var i=n.call(e,t,o,a);return r(),i},e[t].toString=q(t),e[t].__fast_wrapped__=!0)};o(window.history,"pushState"),o(window.history,"replaceState"),s(window,"popstate",r)}else s(window,"hashchange",r)}t(!0),s(window,"beforeunload",(function(){var r=(new Date).getTime();e.curr_pgsted||(e.curr_pgsted=1,e.createLog(y[0],{g:{du:r-e.page_enter}},2)),e.page_enter=r,e.last_api=-1,t(!1)}))};function se(e,t,r,n,o,a,i){try{var c=e[a](i),s=c.value}catch(u){return void r(u)}c.done?t(s):Promise.resolve(s).then(n,o)}function ue(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){se(a,n,o,i,c,"next",e)}function c(e){se(a,n,o,i,c,"throw",e)}i(undefined)}))}}var le=r(757),fe=r.n(le);function de(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var pe={read:function(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};var me=function zt(e,t){function r(r,n,o){if("undefined"!=typeof document){"number"==typeof(o=de({},t,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),n=e.write(n,r);var a="";for(var i in o)o[i]&&(a+="; "+i,!0!==o[i]&&(a+="="+o[i].split(";")[0]));return document.cookie=r+"="+n+a}}return Object.create({set:r,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var a=r[o].split("="),i=a.slice(1).join("=");'"'===i[0]&&(i=i.slice(1,-1));try{var c=pe.read(a[0]);if(n[c]=e.read(i,c),t===c)break}catch(s){}}return t?n[t]:n}},remove:function(e,t){r(e,"",de({},t,{expires:-1}))},withAttributes:function(e){return zt(this.converter,de({},this.attributes,e))},withConverter:function(e){return zt(de({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}(pe,{path:"/"});function he(e,t){t&&e&&localStorage.setItem(e,JSON.stringify(t))}function ge(e){try{return JSON.parse(localStorage.getItem(e))}catch(t){return null}}function ve(e){var t=e.conf,r=e.static_base,n="__fast_log:".concat(t.logstore),o=function(e,t){var r,n=ge(t);if(k(n)&&n.length>0)(r=e.log_store).push.apply(r,i(n));else if(x(n)&&1===n.closed&&k(n.logs)&&n.logs.length>0){var o;(o=e.log_store).push.apply(o,i(n.logs))}localStorage.removeItem(t)};if(r.at===g)o(e,n);else try{for(var a=localStorage.length,c=0;c<a;c++){var s=localStorage.key(c);s&&0===s.indexOf(n)&&o(e,s)}}catch(u){}}function ye(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[],r=arguments.length>2&&arguments[2]!==undefined&&arguments[2];if(k(t)){var n=e.conf,o=e.ins_id,a=e.static_base,c=a.at===g,s="__fast_log:".concat(n.logstore).concat(c?"":":".concat(o)),u={logs:t,t:(new Date).getTime()},l=ge(s);k(l)&&l.length>0?u.logs=[].concat(i(l),i(u.logs)):x(l)&&k(l.logs)&&l.logs.length>0&&(u.logs=[].concat(i(l.logs),i(u.logs))),r&&(u.closed=1),he(s,u)}}function _e(e){var t={expires:1e4};document&&document.location&&document.location.hostname&&(t.domain=document.location.hostname.replace(/^[^.]+\.(.+)/,".$1")),me.set("__tracker_user_id__",e,t),localStorage.setItem("__tracker_user_id__",e)}function be(e){var t={};document&&document.location&&document.location.hostname&&(t.domain=document.location.hostname.replace(/^[^.]+\.(.+)/,".$1")),me.set("__fast_sid__",e,t)}function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ke(e){var t=e.method,r=void 0===t?"GET":t,n=e.data,o=void 0===n?null:n,a=e.url,i=e.callback,c=e.success,s=e.customHeader,u=void 0===s?{}:s;if(a&&"string"==typeof a){r=r&&"string"==typeof r?r.toUpperCase():"GET";var l="undefined"!=typeof window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest?new XMLHttpRequest:"undefined"!=typeof window.XDomainRequest?new XDomainRequest:null;l&&("undefined"!=typeof window.XDomainRequest&&l instanceof window.XDomainRequest&&(a=a.replace(/^https?:/i,"")),l.open(r,a),"POST"!==r&&"PUT"!==r||!o||(o=JSON.stringify(o),l.setRequestHeader("Content-Type","application/json")),Object.getOwnPropertyNames(u).forEach((function(e){l.setRequestHeader(e,u[e])})),"function"==typeof c&&(l.onreadystatechange=function(){4!==l.readyState||200!==l.status&&304!==l.status||c(l.response)}),l.send(o)),"function"==typeof i&&i()}}function xe(e,t){var r=t.slice(),n=Se(Se({},e.static_base),e.hybrid_base),o=r.length;if(1===o)return{base:n,items:r};for(var a=Se({},n),i=r[0],c=Object.getOwnPropertyNames(i),s=1;s<o;s++){if(0===c.length)break;for(var u=c.length-1;u>-1;u--){var l=c[u];r[s][l]!==undefined&&r[s][l]===i[l]||c.splice(u,1)}}if(c.length>0){for(var f=0;f<c.length;f++){var d=c[f];a[d]=i[d]}r=r.map((function(e){var t=Se({},e);return j(t,c),t}))}return{base:a,items:r}}function Oe(e){if(k(e.log_store)&&e.log_store.length>0){var t=Object.getOwnPropertyNames(e.hybrid_rt);e.log_store=e.log_store.map((function(r){return t.forEach((function(t){r[t]||(r[t]=e.hybrid_rt[t])})),r.e!==y[5]&&j(r,"rom","ram"),r}))}}function Ee(e,t,r){for(var n=e.length,o="",a=0;a<n;a++){var i=e[a];try{"url"===i?o=Y(r,t):"cookie"===i?o=me.get(t):"window"===i?(o=window[t])===window&&(o=""):o="localstorage"===i?localStorage.getItem(t):sessionStorage.getItem(t)}catch(c){}if(o)break}return o}function Te(e,t,r){for(var n=e.length,o="",a=0;a<n;a++){var i=e[a];if("url"!==i&&"cookie"!==i){try{if("window"===i)(o=R(window,t))===window&&(o="");else{var c=t.substring(0,r),s=t.substring(r+1),u="localstorage"===i?localStorage.getItem(c):sessionStorage.getItem(c);o=R(JSON.parse(u),s)}}catch(l){}if(o)break}}return o}function Ce(e,t,r){var n=e.conf[t]||{},o=n.key,a=n.range;if(!k(o)||0===o.length||!k(a)||0===a.length)return"";try{for(var i=o.length,c="",s=0;s<i;s++){var u=o[s];if(u){var l=u.indexOf(".");c=l>-1?Te(a,u,l):Ee(a,u,r&&r.curr_href?r.curr_href:"")}if(c)break}return c||""}catch(f){}return""}function Ie(e){var t=(new Date).getTime().toFixed(3);return e.last_ts&&e.last_ts===t?e.ts_counter=+e.ts_counter+1:(e.last_ts=t,e.ts_counter=0),"".concat(t).concat(Array(4-"".concat(e.ts_counter).length).join("0")+e.ts_counter)}function De(e){if(window.cordova&&x(window.MFastLog)){var t=Se({tn:e.insertData.tn||"",ru:e.insertData.ru||"",ug:e.insertData.ug||"",run:e.insertData.run||"",rur:e.insertData.rur||"",rup:e.insertData.rup||"",rubn:e.insertData.rubn||"",l:e.insertData.cd||{},ahv:e.insertData.ahv||"",sid:e.sid},e.static_base);x(e.hybrid_base)&&(t.afv=e.hybrid_base.afv),window.MFastLog.setExtraLogs(t)}}function Ne(e,t){for(var r=t.length-1;r>-1;r--)if(e&&e.indexOf(t[r])>-1)return!0;return!1}function Le(){return(Le=ue(fe().mark((function e(t,r){var n,o,a,i,c,s,u;return fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.static_base.at=g,n=window,o=n.MFastLog,t.hybrid_rt.ram="",t.hybrid_rt.rom="",t.hybrid_rt.nt="",t.hybrid_rt["do"]="",t.hybrid_base.dmf="",t.hybrid_base.dmd="",t.hybrid_base.afv=window.cordova&&window.cordova.version||"",t.hybrid_base.ir=0,t.hybrid_base.ca="",t.hybrid_base.ac="",t.hybrid_base.aid="",t.hybrid_base.av="",a=0,!x(o)){e.next=39;break}return e.next=18,new Promise((function(e){o.getBasicInformation((function(t){e(t)}))}));case 18:i=e.sent,t.hybrid_rt["do"]=i.device_orientation||"",t.hybrid_rt.ram=i.m_available_ram||"",t.hybrid_rt.rom=i.m_available_rom||"",t.hybrid_rt.nt=i.network||"",t.hybrid_base.dmf=i.device_manufacturer||"",t.hybrid_base.dmd=i.device_model||"",t.hybrid_base.ir=i.m_is_root||0,t.hybrid_base.ca=i.m_cpu_architectures||"",t.hybrid_base.ac=i.m_app_channel||"",t.hybrid_base.aid=i.m_app_id||"",t.hybrid_base.av=i.m_app_version||"",i.os_name&&(t.static_base.osn=i.os_name),i.os_version&&(t.static_base.osv=i.os_version),t.insertData.av=t.hybrid_base.av,a=i.start_timestamp||0,i.user_id&&(t.static_base.u=i.user_id,_e(i.user_id)),"function"==typeof o.setFastConfig&&o.setFastConfig({endpoint:t.conf.replay.endpoint?"".concat(t.conf.replay.endpoint).concat("prod"!==t.env?"?env=".concat(t.env):""):"",eventHashkey:t.conf.logstore||"",recordHashkey:t.conf.replay.logstore||""}),"function"==typeof o.setLogMaxSize&&o.setLogMaxSize(150,(function(){S({msg:"MFastLog的单个日志文件大小成功设置为150Kb (仅提示)"})}),(function(){S({msg:"MFastLog的单个日志文件大小设置失败,仍为默认200Kb (仅提示)"})})),De(t),D(t.hybrid_rt.nt)&&(t.hybrid_rt.nt=t.hybrid_rt.nt.toUpperCase());case 39:t.ha_inited=!0,t.last_hi=(new Date).getTime(),Oe(t),c=ge("__fast_last_start__")||{},s=!1,!A(+a)&&a>0?(s=c.t!==a,u="".concat(a,".000000"),c.t=a):(s=c.sid!==t.sid,u=+t.start_time.toFixed(6),c.sid=t.sid),s&&u&&(t.createLog(y[7],{t:"".concat(u)}),he("__fast_last_start__",c)),r();case 47:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Me(e,t){var r=[y[7],y[8],y[9]],n=[y[0],y[1],y[2],y[10]];return-1!==y.slice().indexOf(t)&&(r.indexOf(t)>-1?-1===e.indexOf("event"):n.indexOf(t)>-1?-1===e.indexOf("page"):t===y[4]?-1===e.indexOf("api"):-1===e.indexOf(t))}function je(e){var t=Object.getOwnPropertyNames(e),r="";return t.forEach((function(t){var n=!1;switch(t){case"is_spa":case"include_search":case"report_api_params":"boolean"!=typeof e[t]&&(n=!0,r+=e[t]===undefined?"":"参数".concat(t,"必须是布尔类型!\n"));break;case"api_url_regx":"string"!=typeof e[t]&&(n=!0,r+=e[t]===undefined?"":"参数".concat(t,"必须是字符串类型!\n"));break;case"log_content_attribute":case"log_event_attribute":case"log_module_attribute":"string"==typeof e[t]&&e[t]||(n=!0,r+=e[t]===undefined?"":"参数".concat(t,"必须是字符串类型且不能为空!\n"));break;case"capture_type":"number"!=typeof e[t]&&(n=!0,r+=e[t]===undefined?"":"参数".concat(t,"必须是数字类型!\n"));break;case"api_ignore_urls":case"ignore_pages":case"collect_event_types":if(k(e[t])||(n=!0,r+=e[t]===undefined?"":"参数".concat(t,"必须是数组类型!\n")),"api_ignore_urls"===t||"ignore_pages"===t){var o=[];e[t].forEach((function(e){var t=D(e)?e.replace(/^\s+|\s+$/g,""):"";t&&o.push(t)})),e[t]=o}break;case"tenant_reader":case"real_user_reader":case"user_group_reader":case"app_version_reader":case"real_user_name_reader":case"real_user_role_reader":case"real_user_post_reader":case"real_user_bu_name_reader":if(x(e[t])?D(e[t].key)&&k(e[t].range)?e[t].key=e[t].key?e[t].key.split("|").map((function(e){return e.replace(/^\s+|\s+$/g,"")})):[]:(n=!0,r+="参数".concat(t,"格式错误，请参照: { key: 'user', range: ['cookie'] }\n")):(n=!0,r+=e[t]===undefined||null===e[t]?"":"参数".concat(t,"必须是对象类型!\n")),!n&&e[t].range.indexOf("window")>-1){var a="";e[t].key.forEach((function(e){R(window,e)===window&&(a+=a?",".concat(e):e)})),a&&(r+="参数".concat(t,"中存在key: ").concat(a,"因在window中查询结果仍然为window，将在window的查找中被忽略\n"))}break;case"trace_config":x(e[t])?null!==e[t]&&(e[t].tid_type=String(e[t].tid_type),"skywalking"!==e[t].tid_type&&"fast"!==e[t].tid_type&&(e[t].tid_type="fast"),k(e[t].rules)&&k(e[t].headers)?k(e[t].headers)&&(e[t].headers=function(e,t){for(var r="skywalking"===t?"sw8":v,n=["accept-charset","accept-encoding","connection","content-length","cookie","cookie2","content-transfer-encoding","date","expect","host","keep-alive","referer","te","trailer","transfer-encoding","upgrade","user-agent","via",/^proxy-/i,/^sec-/i],o=e.length,a=[],i={},c={},s=0,u=0;s<o;s++){var l=e[s]||{},f=l.name,d=l.type,p=l.value;if(f&&p&&("built-in"===d||"static"===d)&&c[f]===undefined){for(var m=n.length-1;m>-1;m--)if("string"==typeof n[m]){if("".concat(f).toLowerCase()===n[m])continue}else if(n[m].test(f))continue;if("built-in"===d){if(i[p])continue;i[p]=1}c[f]=u++,a.push({name:f,type:d,value:p})}}if(!i.tid){var h=c[r];h!==undefined&&a.splice(h,1),a.push({name:r,type:"built-in",value:"tid"})}return a}(e[t].headers,e[t].tid_type)):(n=!0,r+="参数".concat(t,"格式错误，请参照: { tid_type: 'fast', rules: ['http://fast.mypaas.com.cn'], headers: [{ type: 'built-in', name: ").concat(v,", value: 'trace_id' }] }\n"))):(n=!0,r+=e[t]===undefined||null===e[t]?"":"参数".concat(t,"必须是对象类型!\n"));break;case"replay":case"debug":case"product":case"app":case"endpoint":case"logstore":case"accessKey":break;case"enable":1!==e[t]&&0!==e[t]&&(e[t]=1);break;default:n=!0,r+="参数".concat(t,"不属于探针的配置项\n")}n&&e[t]!==undefined&&delete e[t]})),r&&S({msg:r+="以上仅提示，不影响探针运行"}),e}function Re(e,t){var r=t||e,n=G(r),o=n.domain,a=n.fixPathname,i=n.search,c=e.prev_page||"";if(0===c.indexOf(o)&&!e.conf.include_search){var s=c.indexOf("?");s>0&&(c=c.substring(0,s))}var u={d:o?W(o):"",pg:a?W(a):"",pid:e.curr_pid,ps:e.conf.include_search&&i?W(i):"",te:document.title||a,r:c?W(c):"",sid:e.sid,a:window.__fastTrackerAppName__?"".concat(window.__fastTrackerAppName__):e.insertData.a};e.regu_called?_.forEach((function(t){var r=t.sn;u[r]=e.insertData[r]||""})):_.forEach((function(t){var n=t.c,o=t.sn;e.conf[n]&&(u[o]=Ce(e,n,r),e.insertData[o]=u[o])})),e.hybrid_base.av&&D(e.hybrid_base.av)?u.av=e.hybrid_base.av:e.conf.app_version_reader&&(u.av=Ce(e,"app_version_reader",r)||e.insertData.av),e.insertData.ahv&&(u.ahv=e.insertData.ahv);var l=(new Date).getTime();return l-e.last_sync>=12e4&&(De(e),e.last_sync=l),u}function Fe(e,t){var r=arguments.length>2&&arguments[2]!==undefined&&arguments[2],n=e.r,o=e.d,a={};if(!r&&n){var i=Y(n);if(Object.getOwnPropertyNames(i).length>0&&(a.referrer_params=JSON.stringify(i)),a.referrer_domain=0===n.indexOf("file://")?"/":n.replace(/(^[a-zA-Z]+:\/\/[^/]*)[\s\S]*/,"$1"),"/"!==a.referrer_domain&&"/"!==o){var c=J(a.referrer_domain),s=J(o);/^[a-zA-Z]+:\/\/((.*\.baidu\.com$)|(.*\.bing\.com$)|(www\.google\.com$)|(www\.google\.com\.[a-z]{2}$)|(www\.google\.[a-z]{2}$)|(m\.sm\.cn$)|(.+\.so\.com$)|(.*\.sogou\.com$)|(.*\.yahoo\.com$)|(so\.toutiao\.com$))/i.test(a.referrer_domain)?a.traffic_source="搜索引擎":a.traffic_source=c===s?"直接访问":"外部链接"}else a.traffic_source="直接访问"}else a.traffic_source="直接访问";if(t&&t.indexOf("?")>-1){var u=Y(t);["utm_source","utm_medium","utm_campaign","utm_content","utm_term"].forEach((function(e){u[e]&&(a[e]=u[e])}))}return a}function Pe(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0,r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;if(t||2===r){var n=new Image,o=function(){n.onload=null,n.onerror=null,n=undefined};n.onload=o,n.onerror=o,n.crossOrigin="anonymous",n.src=e}else ke({url:e})}function Ae(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;if(1===e.conf.enable)try{t&&e.log_store.push(t);var n="".concat(e.conf.endpoint,"/").concat(e.conf.logstore,"?env=").concat(e.env),o=e.log_store.slice(),a=window.MFastLog||{},i=a.writeToFile,c=a.startUploadLog,s="function"==typeof i&&"function"==typeof c,l=e.static_base.at===g,f=x(s)?50:10,d=o.length,p=(new Date).getTime();if(d>0){var m;if(l&&!e.ha_inited||0===r&&d<f)return;e.log_store=[];var h=(null===(m=window.navigator.connection)||void 0===m?void 0:m.type)||"";if(s&&!/(wifi|4g|cellular)/i.test(h))if(2===r)ye(e,o,!0);else{var v=xe(e,o),y=JSON.stringify(v);clearTimeout(e.wfile_timer),i(y,"event",(function(){r>0&&p-e.last_sul>12e4&&(e.last_sul=p,e.wfile_timer=setTimeout(c,u))}),(function(e){S({msg:"探针内部异常向MFastLog写入事件日志出错\n".concat(e)})}))}else{s&&p-e.last_sul>12e4&&(e.last_sul=p,e.wfile_timer=setTimeout(c,u));var _=16256,b=xe(e,o),w="".concat(n,"&data=").concat(encodeURIComponent(JSON.stringify(b))),k=U(w);if(k<_)Pe(w,e.curr_pgl,r);else if(2!==r)ke({url:n,method:"POST",data:b});else{for(var O=U("".concat(n,"&data=&items=&base=").concat(encodeURIComponent(JSON.stringify(Se(Se({},e.static_base),e.hybrid_base))))),E=[],T=0,C=0;T<d;T++){var I=o[T],D=U(encodeURIComponent(JSON.stringify([I])));if(D+O>=_){var N=xe(e,[I]);"function"==typeof navigator.sendBeacon?navigator.sendBeacon(n,N):ke({url:n,method:"POST",data:N})}else if(C+=D,E.push(I),C+O>=_){var L=xe(e,E),M="".concat(n,"&data=").concat(encodeURIComponent(JSON.stringify(L)));Pe(M,e.curr_pgl,r),C=0,E=[]}}if(E.length>0){var j=xe(e,E),R="".concat(n,"&data=").concat(encodeURIComponent(JSON.stringify(j)));Pe(R,e.curr_pgl,r)}}}}}catch(F){S({msg:"探针内部异常上报日志出错\n".concat(F)})}}function ze(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return $e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $e(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==r["return"]||r["return"]()}finally{if(c)throw a}}}}function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Be(e){if(e&&"string"==typeof e){var t=document.createElement("base");return t.href=e,t.href}return window.location.href}function He(e,t){var r="";if(t)try{var n=e.match(new RegExp(t));n&&(r=n[1]||n[0]||"")}catch(o){r=""}return r}function We(e,t,r){var n="",o="";t&&"string"==typeof t&&t.indexOf("?")>-1&&(n=t.substring(t.indexOf("?")+1)||"")&&(n=W(F(n))),r&&"function"==typeof r.toString&&(0===(o=r.toString()||"").indexOf("[object")?o="":o&&(o=W(F(o))));var a=JSON.stringify(e);return U("".concat(a).concat(n).concat(o))>14336&&(o="-",U("".concat(a).concat(n))>14336&&(n="-")),{request_query:n,request_body:o}}function Ve(e,t){var r=t.conf||{},n=r.endpoint,o=void 0===n?"":n,a=r.api_ignore_urls,i=r.replay,c=[o,"aliyuncs.com","growingio.com","sensorsdata.cn","hm.baidu.com","google-analytics.com","tingyun.com","lr-ingest.io","r.lr-in-prod.com","logrocket.io","gateway-test.myscrm.cn/event-proxy/proxy/publish","gateway-release.myscrm.cn/event-proxy/proxy/publish","gateway.myscrm.cn/event-proxy/proxy/publish"];i&&i.endpoint&&D(i.endpoint)&&c.unshift(i.endpoint);var s=k(a)?a.length:0;if(!e||"string"!=typeof e)return!1;for(var u=0;u<c.length;u++){var l=c[u];if(e.indexOf(l)>-1)return!0}for(var f=0;f<s;f++){var d=a[f];try{if(d&&d.constructor===RegExp&&d.test(e)||"string"==typeof d&&new RegExp(d).test(e))return!0}catch(p){continue}}return!1}function Je(e,t){try{var r=function(e){try{var t={};return e.transferSize>0?t.size=e.transferSize:e.decodedBodySize>0?t.size=e.decodedBodySize:e.encodedBodySize>0&&(t.size=e.encodedBodySize),e.duration>0?t.du=P(e.duration,!0):e.responseEnd>0&&(e.fetchStart>0||e.startTime>0)&&(t.du=P(e.responseEnd-(e.fetchStart>0?e.fetchStart:e.startTime),!0)),(e.connectStart>0||e.requestStart>0)&&e.fetchStart>0&&(t.qas=P((e.connectStart>0?e.connectStart:e.requestStart)-e.fetchStart,!0)),e.connectEnd>0&&e.connectStart>0&&(t.ic=P(e.connectEnd-e.connectStart,!0)),e.responseStart>0&&e.requestStart>0&&(t.wt=P(e.responseStart-e.requestStart,!0)),e.responseEnd>0&&e.responseStart>0&&(t.ctd=P(e.responseEnd-e.responseStart,!0)),t}catch(r){return{}}}(t);r.size!==undefined&&(e.g.size=r.size),r.du!==undefined&&(e.g.du=r.du),r.qas!==undefined&&(e.g.qas=r.qas),r.ic!==undefined&&(e.g.ic=r.ic),r.wt!==undefined&&(e.g.wt=r.wt),r.ctd!==undefined&&(e.g.ctd=r.ctd)}catch(n){S({msg:"探针内部异常合并API阶段数据失败\n".concat(e.g.api,"\n").concat(n.message)})}}function Ge(e,t){try{t.use_trace?"string"==typeof t.use_trace&&t.use_trace&&(t.g.tid=t.use_trace):delete t.g.tid,t.g.regxApiUrl&&(t.g.api=t.g.regxApiUrl),delete t.g.regxApiUrl,delete t.use_trace,e.createLog(y[4],Ue({},t))}catch(r){}}function Xe(e,t){clearTimeout(e.api_timer),-1===e.api_que.indexOf(t.g.tid)&&(e.api_que.push(t.g.tid),e.api_cache[t.g.tid]=Ue({},t)),e.api_timer=setTimeout((function(){var t=e.api_que.slice(),r=t.length;if(e.api_que.splice(0,r),"function"==typeof performance.mark&&"function"==typeof performance.getEntries){var n=e.last_api,o=[];performance.getEntries().slice(n+1).forEach((function(t){var r="mark"===t.entryType&&0===t.name.indexOf("fast-tracker-api"),a="resource"===t.entryType&&("xmlhttprequest,fetch".indexOf(t.initiatorType)>-1||window.navigator.userAgent.indexOf("Android")>-1&&""===t.initiatorType)&&!Ve(W(t.name),e);(r||a)&&o.push(t),n+=1}));for(var a=o.length,i=0;i<a;){var c=o[i];if(c&&"mark"===c.entryType){var s=c.name.split("|$|"),u=s[1],l=s[2];if(u&&l&&e.api_cache[u]){for(var f=1;i+f<a&&o[i+f]&&"mark"!==o[i+f].entryType;){var d=o[i+f];if(d&&d.name===l){e.api_perfCache[u]=d;break}f++}i+=f}else i++}else i++}e.last_api=n}for(var p=0;p<r;p++){var m=t[p],h=e.api_cache[m];if(m&&h){var g=Ue({},h),v=e.api_perfCache[m];v&&Je(g,v),Ge(e,g);try{e.api_cache[m]=null,delete e.api_cache[m],e.api_perfCache[m]=null,delete e.api_perfCache[m]}catch(y){}}}}),1150)}function Ke(e,t){switch(t){case"u":return e.static_base.u;case"dsw":return e.static_base.dsw;case"dsh":return e.static_base.dsh;case"ua":return e.static_base.ua;case"tn":return e.insertData.tn;case"ru":return e.insertData.ru;case"ug":return e.insertData.ug;case"dmf":return e.hybrid_base.dmf;case"dmd":return e.hybrid_base.dmd;case"ac":return e.hybrid_base.ac;case"aid":return e.hybrid_base.aid;case"av":return e.insertData.av;case"ahv":return e.insertData.ahv;default:return""}}function Ze(e,t,r){var n=[];try{var o=e.conf.trace_config||{},a=o.rules,i=o.headers,c=new RegExp(/(\w+):\/\/([^/]+)/),s=t.match(c),u=s?s[0]:t;if(k(a)&&a.length>0&&k(i)&&i.length>0){for(var l=!1,f=a.length-1;f>-1;f--){var d=a[f].replace(/\./g,"\\.").replace(/\?/g,".").replace(/\*/g,".*");if(d&&"string"==typeof d&&new RegExp(d).test(u)){l=!0;break}}if(l)for(var p=i.length,m=function(e){return"\\u"===e?"%u":escape(e)},h=0;h<p;h++){var g=i[h]||{},v=g.name,y=g.type,_=g.value;if(v&&_&&("static"===y||"built-in"===y)){var b="static"===y?_:"tid"===_?r:Ke(e,_);null!==b&&b!==undefined&&""!==b&&n.push({name:v,value:"".concat(b).replace(/[^\x00-\xff]|\\u/g,m)})}}}}catch(w){}return n}function Ye(e,t,r){var n=String(L(r)),o=String(L(ie())),a=String(L(e.static_base.a)),i=String(L(t.av)),c=String(L(t.pg)),s=String(L(t.d.replace(/^\w+:\/\//i,"")));return"".concat(1,"-",n,"-").concat(o,"-0-").concat(a,"-").concat(i,"-").concat(c,"-").concat(s)}var Qe,et=function(e){var t="undefined"!=typeof window?window:"undefined"!=typeof r.g?r.g:{},n="fetch",o="XMLHttpRequest",a="function"==typeof performance.mark&&"function"==typeof performance.getEntries;if("function"==typeof t[n]&&!t[n].__fast_wrapped__&&!t[n].polyfill){t.ofetch=t[n];H(t,n,(function(r){return function(o,i){for(var c=arguments.length,s=new Array(c>2?c-2:0),u=2;u<c;u++)s[u-2]=arguments[u];var l=1===arguments.length?[o]:[o,i].concat(s);if(!i||"HEAD"===i.method||"no-cors"===i.mode)return r.apply(t,l);var f=(o&&"string"!=typeof o?o.url:o)||"";if(!f||Ve(f,e)||-1===e.conf.collect_event_types.indexOf(y[4])||Z(window.location.href,e.conf.ignore_pages)||r.polyfill||t[n].polyfill)return r.apply(t,l);var d=Ue(Ue({},Re(e)),{},{t:Ie(e)}),p="",m="";if(e.conf.report_api_params){var h=We(d,f,i.body);p=h.request_query,m=h.request_body}var g=new Date,_="fast-".concat(ie()),b="skywalking"===e.conf.trace_config.tid_type?Ye(e,d,_):_,w=He(f,e.conf.api_url_regx),k=Be(f),O=Ze(e,k,b),E=O.length>0;if(E)try{for(var T={},C=O.length-1;C>-1;C--){var I=O[C],D=I.name,N=I.value;T[D]=N}if(x(l[1]))if(l[1]=Ue({},l[1]),l[1].headers)if("[object Headers]"===Object.prototype.toString.call(l[1].headers)&&"function"==typeof l[1].headers.keys){var L,M=ze(l[1].headers.keys());try{for(M.s();!(L=M.n()).done;){var j=L.value;T[j]=l[1].headers.get(j)}}catch(R){M.e(R)}finally{M.f()}}else T=Ue(Ue({},T),l[1].headers);else l[1].headers={};else l[1]={headers:{}};l[1].headers=T}catch(F){S({msg:"探针内部异常拦截fetch过程中添加请求头失败\n".concat(F)})}return a&&performance.mark("fast-tracker-api|$|".concat(_,"|$|").concat(k)),r.apply(t,l).then((function(t){var r=t.clone(),n=new Date-g,o=Ue({g:{regxApiUrl:w,api:k,du:n,m:i.method||"GET",tid:_}},d);E&&(o.use_trace=1);try{var a="".concat(r.headers.get(v)||"");if(a){var c=a.indexOf(",");o.use_trace=c>-1?a.slice(0,c):a}}catch(R){}return p&&(o.g.rq=p),m&&(o.g.rb=m),r.ok?r.arrayBuffer().then((function(t){o.g.ss=r.status||200,o.g.size=t&&t.byteLength?t.byteLength:0,Xe(e,o)})):r.arrayBuffer().then((function(t){o.g.ss=r.status||404,o.g.size=t&&t.byteLength?t.byteLength:0,Xe(e,o)})),t}))}}))}if("function"==typeof t[o]&&!t[o].__fast_wrapped__){var c=t[o],u=c.prototype,l=function(t){return function(r,n){for(var o=arguments.length,a=new Array(o>2?o-2:0),c=2;c<o;c++)a[c-2]=arguments[c];var s=1===arguments.length?[r]:[r,n].concat(a),u=n||"";u&&Ve(u,e)&&(u=""),this.__api_method__=(r||"get").toUpperCase(),this.__api_url__=u;try{return t.apply(this,s)}catch(l){return Function.prototype.apply.apply(t,[this].concat(i(s)))}}},f=function(t){return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var l=[].concat(n),f=this;if(f.__fast_tnow=new Date,f&&f.__api_url__&&e.conf.collect_event_types.indexOf(y[4])>-1&&!Z(window.location.href,e.conf.ignore_pages)){var d=Ue(Ue({},Re(e)),{},{t:Ie(e)});if(f.__fast_requestQuery="",f.__fast_requestBody="",e.conf.report_api_params){var p=We(d,f.__api_url__,l[0]);f.__fast_requestQuery=p.request_query,f.__fast_requestBody=p.request_body}f.__fast_traceId="fast-".concat(ie());var m="skywalking"===e.conf.trace_config.tid_type?Ye(e,d,f.__fast_traceId):f.__fast_traceId;f.__fast_regxApiUrl=He(f.__api_url__,e.conf.api_url_regx),f.__fast_fullApiUrl=Be(f.__api_url__),f.__fast_customHeaders=Ze(e,f.__fast_fullApiUrl,m);var h=f.__fast_customHeaders.length>0;if(h){var g=f.setRequestHeader;u&&u.setRequestHeader?g=u.setRequestHeader:c&&c.setRequestHeader&&(g=c.setRequestHeader);for(var v=f.__fast_customHeaders.length-1;v>-1;v--){var _=f.__fast_customHeaders[v],b=_.name,w=_.value;g.call(f,b,w)}}var S=function(t){var r=t.target;if(r&&4===r.readyState){var n,o=new Date-r.__fast_tnow;try{var a=r.response||r.responseText;n=a?D(a)?a.length:JSON.stringify(a).length:0}catch(f){n=0}var i,c=Ue({g:{regxApiUrl:r.__fast_regxApiUrl,api:r.__fast_fullApiUrl,du:o,m:r.__api_method__,size:n,tid:r.__fast_traceId}},d);h&&(c.use_trace=1);try{var s=r.getAllResponseHeaders();if(s.indexOf("x-fast-trace-id:")>-1){var u=s.replace(/^[\s\S]*x-fast-trace-id\:\s*([^,\r\n]+)[\s\S]*$/i,"$1");if(u){var l=u.indexOf(",");c.use_trace=l>-1?u.slice(0,l):u}}}catch(p){}r.__fast_requestQuery&&(c.g.rq=r.__fast_requestQuery),r.__fast_requestBody&&(c.g.rb=r.__fast_requestBody);try{i=r.status}catch(f){i=0}if(c.g.tid){i>=200&&i<300?(c.g.ss=i||200,Xe(e,c)):i>0&&(c.g.ss=i,Xe(e,c));try{r.__fast_traceId=""}catch(f){}}}};s(f,"readystatechange",S),a&&performance.mark("fast-tracker-api|$|".concat(f.__fast_traceId,"|$|").concat(f.__fast_fullApiUrl))}try{return t.apply(f,l)}catch(k){return Function.prototype.apply.apply(t,[f].concat(i(l)))}}};u?(H(u,"open",l),H(u,"send",f)):(t[o]=function(e){var t=new c(e);return H(t,"open",l),H(t,"send",f),t},Object.keys(c).forEach((function(e){M(c,e)&&!M(t[o],e)&&(t[o][e]=c[e])})),t[o].toString=q(o)),t[o].__fast_wrapped__=!0}},tt=function(e){var t=!1;if(window.cordova&&window.cordova.require){var r=window.cordova.require("cordova/channel");r&&r.onDeviceReady&&2===r.onDeviceReady.state&&(t=!0)}var n=function(){if(window.cordova){var t=window.MFastLog;if(x(t)){var r=e.conf.collect_event_types.indexOf(y[6])>-1;if("function"==typeof t.setLogLevelByJson){var n=["event"];e.conf.collect_event_types.indexOf(y[11])>-1&&n.push("anr"),r&&n.push("crash"),t.setLogLevelByJson(n)}}!function(e,t){Le.apply(this,arguments)}(e,(function(){s(document,"pause",(function(){e.createLog(y[8],null,2)})),s(document,"resume",(function(){ve(e),e.createLog(y[9])}))}))}};t?n():document.addEventListener("deviceready",n,!1)},rt=function(e,t,r){return{app:e.static_base.a,record_id:ie(),session_id:e.sid,page_id:e.curr_pid,record_type:t,time:r?r.timestamp:null,content:r?[r]:[]}},nt=(Qe=null,function(e){if(Qe)return Qe;try{var t=e.conf.replay||{},r=t.endpoint,n=t.logstore,o=t.error,a=t.all;if(O(window.$$fastRecord)&&r&&n&&(o||a)){var i=0,c=0,s=[],u=[];window.$$fastRecord({emit:function(t,r){if(i++,r)u.push(rt(e,0,t)),i=1;else if(3!==t.type)0===u.length?u.push(rt(e,0,t)):u[u.length-1].content.push(t);else{var n=u[u.length-1];i>102&&(u=function(e){if(k(e)&&e.length>0){for(var t=e.length-1;t>-1;t--)if(e[t]&&0===e[t].record_type)return e.slice(t);return e}return[]}(u)),0===n.record_type?u.push(rt(e,1,t)):(k(n.content)&&0===n.content.length&&(n.time=t.timestamp),n.content.push(t))}},inlineStylesheet:!0,sampling:{scroll:150,input:"last"},checkoutEveryNth:200}),Qe={caughtError:function(){var t=(new Date).getTime();if(c+500<t&&k(u)&&u.length>1){var o=[];s=[],u.forEach((function(e,t){var r;!e||0!==t&&0===e.record_type||(s.push(e.record_id),e.sended||(o.push({filename:(r=e,"".concat(r.record_type,"_[").concat(r.app,"]_").concat(r.session_id,"_").concat(r.page_id,"_").concat(r.record_id,"_").concat(r.time)),content:JSON.stringify(e)}),e.sended=1))})),u.push(rt(e,1,null)),c=t;var a=window.MFastLog||{},i=a.writeToFile,l=a.startUploadLog;if("function"==typeof i&&"function"==typeof l){var f=o.map((function(e){var t=e.filename,r=e.content;return{filename:"".concat(t,".txt"),filecontent:r}}));i(JSON.stringify(f),"record",(function(){l()}),(function(e){S({msg:"探针内部异常向MFastLog写入回放日志出错\n".concat(e)})}))}else ke({url:"".concat(r).concat("prod"!==e.env?"?env=".concat(e.env):""),method:"POST",customHeader:{hashkey:n},data:{data:o}})}return s},pidChanged:function(){},userExit:function(){}}}}catch(l){S({msg:"探针视频回放采集模块异常\n".concat(l.message)})}return Qe});function ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var at={collectWindowErrors:!0,debug:!1},it="undefined"!=typeof window?window:"undefined"!=typeof r.g?r.g:{},ct=[].slice,st="?",ut=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function lt(){return"undefined"!=typeof document&&document.location?document.location.href:""}at.report=function(){var e,t,r=[],n=null,o=null,a=null;function i(e,t){var n=null;if(!t||at.collectWindowErrors){for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o))try{r[o].apply(null,[e].concat(ct.call(arguments,2)))}catch(a){n=a}if(n)throw n}}function c(){var e=a,t=n;n=null,a=null,o=null,i.apply(null,[e,!1].concat(t))}function s(t,r,n,o,s){var u=T(s)?s.error:s,l=T(t)?t.message:t;if(a)at.computeStackTrace.augmentStackTraceWithInitialElement(a,r,n,l),c();else if(u&&E(u))i(at.computeStackTrace(u),!0);else{var f,d={url:r,line:n,column:o};if(D(l)){var p=l.match(ut);p&&(f=p[1],l=p[2])}d.func=st,i({name:f,message:l,url:lt(),stack:[d]},!0)}return!!e&&e.apply(this,arguments)}function u(){t||(e=it.onerror,it.addEventListener("error",(function(e){try{var t=[(e=e||window.event).message||"",e.filename||""];t.push("undefined"==typeof e.lineno?1:e.lineno),t.push("undefined"==typeof e.colno?1:e.colno),t.push("undefined"==typeof e.error?{}:e.error),s.apply(this,t)}catch(r){}})),t=!0)}function l(e,t){var r=ct.call(arguments,1);if(a){if(o===e)return;c()}var i=at.computeStackTrace(e);if(a=i,o=e,n=r,setTimeout((function(){o===e&&c()}),i.incomplete?2e3:0),!1!==t)throw e}return l.subscribe=function(e){u(),r.push(e)},l.unsubscribe=function(e){for(var t=r.length-1;t>=0;--t)r[t]===e&&r.splice(t,1)},l.uninstall=function(){t&&(it.onerror=e,t=!1,e=undefined),r=[]},l}(),at.computeStackTrace=function(){function e(e){if("undefined"!=typeof e.stack&&e.stack){for(var t,r,n,o=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,i=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,u=e.stack.split("\n"),l=[],f=0,d=u.length;f<d;++f){if(r=o.exec(u[f])){var p=r[2]&&0===r[2].indexOf("native");r[2]&&0===r[2].indexOf("eval")&&(t=s.exec(r[2]))&&(r[2]=t[1],r[3]=t[2],r[4]=t[3]),n={url:p?null:r[2],func:r[1]||st,args:p?[r[2]]:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}else if(r=a.exec(u[f]))n={url:r[2],func:r[1]||st,args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=i.exec(u[f])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(t=c.exec(r[3]))?(r[3]=t[1],r[4]=t[2],r[5]=null):0!==f||r[5]||"undefined"==typeof e.columnNumber||(l[0].column=e.columnNumber+1),n={url:r[3],func:r[1]||st,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}if(!n.func&&n.line&&(n.func=st),n.url&&"blob:"===n.url.substr(0,5)){var m=new XMLHttpRequest;m.open("GET",n.url,!1),m.send(null);try{if(200===m.status){var h=m.responseText||"",g=(h=h.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(g){var v=g[1];"~"===v.charAt(0)&&(v=("undefined"!=typeof document&&document.location?document.location.origin?document.location.origin:"".concat(document.location.protocol,"//").concat(document.location.hostname).concat(document.location.port?":".concat(document.location.port):""):"")+v.slice(1)),n.url=v.slice(0,-4)}}}catch(y){}}l.push(n)}return l.length?{name:e.name,message:e.message,url:lt(),stack:l}:null}}function t(e,t,r){var n={url:t,line:r};if(n.url&&n.line){if(e.incomplete=!1,n.func||(n.func=st),e.stack.length>0&&e.stack[0].url===n.url){if(e.stack[0].line===n.line)return!1;if(!e.stack[0].line&&e.stack[0].func===n.func)return e.stack[0].line=n.line,!1}return e.stack.unshift(n),e.partial=!0,!0}return e.incomplete=!0,!1}function r(e,o){for(var a,i,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,s=[],u={},l=!1,f=r.caller;f&&!l;f=f.caller)if(f!==n&&f!==at.report){if(i={url:null,func:st,line:null,column:null},f.name?i.func=f.name:(a=c.exec(f.toString()))&&(i.func=a[1]),"undefined"==typeof i.func)try{i.func=a.input.substring(0,a.input.indexOf("{"))}catch(p){}u["".concat(f)]?l=!0:u["".concat(f)]=!0,s.push(i)}o&&s.splice(0,o);var d={name:e.name,message:e.message,url:lt(),stack:s};return t(d,e.sourceURL||e.fileName,e.line||e.lineNumber),d}function n(t,n){var o=null;n=null==n?0:+n;try{if(o=e(t))return o}catch(a){if(at.debug)throw a}try{if(o=r(t,n+1))return o}catch(a){if(at.debug)throw a}return{name:t.name,message:t.message,url:lt()}}return n.augmentStackTraceWithInitialElement=t,n.computeStackTraceFromStackProp=e,n}();var ft=at;function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var mt,ht="undefined"!=typeof window?window:"undefined"!=typeof r.g?r.g:{},gt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._lastCaptruedException=null,this._lastData=null,this._lastEventId=null,this._errCallback=null,this._globalOptions={ignoreErrors:[],stackTraceLimit:50,collectWindowErrors:!0,captureUnhandledRejections:!0},this._ignoreOnError=0,this._lastCaptruedEvent=null}var t,r,n;return t=e,(r=[{key:"init",value:function(e){var t=this,r=e.callback,n=e.confSource;r="function"==typeof r?r:function(){},this._errCallback=r;var o=this._globalOptions;o.ignoreErrors.push(/^Script error\.?$/),o.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),o.ignoreErrors=function(e){for(var t,r=[],n=0,o=e.length;n<o;n++)D(t=e[n])?r.push(t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")):t&&t.source&&r.push(t.source);return new RegExp(r.join("|"),"i")}(o.ignoreErrors),ft.report.subscribe((function(){if(-1!==n.conf.collect_event_types.indexOf("error")){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t._handleOnErrorStackInfo.apply(t,r)}})),o.captureUnhandledRejections&&this._attachPromiseRejectionHandler(n)}},{key:"_handleOnErrorStackInfo",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.mechanism=t.mechanism||{type:"onerror",handled:!1,time:(new Date).getTime()},this._ignoreOnError||this._handleStackInfo(e,t)}},{key:"_handleStackInfo",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=this._prepareFrames(e,t);this._processException(e.name,e.message,e.url,e.lineno,r,t)}},{key:"_prepareFrames",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=this,n=[];if(e.stack&&e.stack.length&&(e.stack.forEach((function(t){var o=r._normalizeFrame(t,e.url);o&&n.push(o)})),t&&t.trimHeadFrames))for(var o=0;o<t.trimHeadFrames&&o<n.length;o++)n[o].in_app=!1;return n=n.slice(0,this._globalOptions.stackTraceLimit).filter((function(e){return e.in_app}))}},{key:"_normalizeFrame",value:function(e,t){var r={filename:e.url,lineno:e.line,colno:e.column,"function":e.func||"?"};return e.url||(r.filename=t),r.in_app=!/(StackTracer|TraceKit)\./.test(r["function"]),r}},{key:"_processException",value:function(e,t,r,n,o,a){var i=(e?"".concat(e,": "):"")+(t||"");if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)&&!this._globalOptions.ignoreErrors.test(i)){var c;o&&o.length?(r=o[0].filename||r,o.reverse(),c={frames:o}):r&&(c={frames:[{lineno:n,filename:r,in_app:!0}]});var s=pt({exception:{values:[{value:t,type:e,stacktrace:c}]},transaction:r},a),u=s.exception.values[0];null==u.type&&""===u.value&&(u.value="Unrecoverable error caught"),!s.exception.mechanism&&s.mechanism&&(s.exception.mechanism=s.mechanism,delete s.mechanism),s.exception.mechanism=s.exception.mechanism||{},s.exception.mechanism=pt({type:"generic",handled:!0},s.exception.mechanism),this._errCallback(s)}}},{key:"_attachPromiseRejectionHandler",value:function(e){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this,e),ht.addEventListener&&ht.addEventListener("unhandledrejection",this._promiseRejectionHandler),this}},{key:"_promiseRejectionHandler",value:function(e,t){if(-1!==e.conf.collect_event_types.indexOf("error")){var r=null;r=D(t.reason)?{message:t.reason}:t.reason,this.captureException(r,{mechanism:{type:"onunhandledrejection",handled:!1,time:(new Date).getTime()}})}}},{key:"captureException",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(t=pt({trimHeadFrames:0},t),T(e)&&e.error)e=e.error;else{if(C(e)||I(e)){var r=e.name||(C(e)?"DOMError":"DOMException"),n=e.message?"".concat(r,": ").concat(e.message,"$"):r;return this.captureMessage(n,pt(pt({},t),{},{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}))}if(!E(e))return}this._lastCapturedException=e;try{var o=ft.computeStackTrace(e);this._handleStackInfo(o,t)}catch(a){}return this}},{key:"captureMessage",value:function(e,t){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)){var r,n=pt({message:e+=""},t=t||{});try{throw new Error(e)}catch(c){r=c}r.name=null;var o=ft.computeStackTrace(r),a=k(o.stack)&&o.stack[1];if(a&&"StackTracer.captureException"===a.func&&(a=o.stack[2]),this._globalOptions.stacktrace||t.stacktrace||""===n.message){n.fingerprint=null==n.fingerprint?e:n.fingerprint,(t=pt({trimHeadFrames:0},t)).trimHeadFrames+=1;var i=this._prepareFrames(o,t);n.stacktrace={frames:i.reverse()}}return n.fingerprint&&(n.fingerprint=k(n.fingerprint)?n.fingerprint:[n.fingerprint]),this._errCallback(n),this}}}])&&ot(t.prototype,r),n&&ot(t,n),e}();function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}o(gt,"getInstance",(mt=null,function(e){return mt||(mt=new gt(e)),mt}));var _t,bt,wt,St,kt,xt,Ot,Et,Tt,Ct,It,Dt,Nt=(_t=window.innerWidth,bt=window.innerHeight,wt={},St=function(){clearTimeout(wt.timer),clearTimeout(wt.excTimer),wt.score_arr=[],wt.startTime=performance.now(),wt.lastResourceIndex=performance.getEntriesByType("resource").length-1},kt=function(){wt.observer.disconnect()},xt=function(e){var t=function(e,t,r,n){var o=arguments.length>4&&arguments[4]!==undefined?arguments[4]:[];if("function"!=typeof performance.getEntriesByType)return{resources:[],lastIndex:e};for(var a=[],i=performance.getEntriesByType("resource").slice(e+1),c=i.length,s=r+t,u=0;u<c;u++){var l=i[u];if(!(l.duration<=0||""===l.initiatorType||"xmlhttprequest,fetch".indexOf(l.initiatorType)>-1||l.startTime<r||t&&l.responseEnd>s||o.length>0&&Ne(l.name,o))){var f=l.transferSize||l.decodedBodySize||l.encodedBodySize||0,d=l.name;d=W(d),window.cordova&&(d=(d=d.replace(new RegExp("^[a-zA-Z]+://([\\w\\.\\-]+(:\\d+)?)?".concat(h)),"")).replace(new RegExp("^[a-zA-Z]+://".concat(m)),"")),a.push({u:d,s:f,du:P(l.duration,!0),st:+n+l.startTime,rst:l.startTime-r,it:l.initiatorType||""})}}return{resources:a,lastIndex:e+c}}(wt.lastResourceIndex,e.t,wt.start_time,wt.zeroTime,[wt.confEndpoint]),r={du:e.t,res:t.resources,capturedType:(null==e?void 0:e.capturedType)||"fmp"};if(!wt.$self$.first_pgl){wt.$self$.first_pgl=1;var n="function"==typeof performance.getEntriesByType?performance.getEntriesByType("navigation")[0]:null;n&&n.duration>0&&(r.nty=n.type,r.fs=$(n.fetchStart,6),r.dls=$(n.domainLookupStart,6),r.dle=$(n.domainLookupEnd,6),r.cs=$(n.connectStart,6),r.ce=$(n.connectEnd,6),r.ues=$(n.unloadEventStart,6),r.uee=$(n.unloadEventEnd,6),r.scs=$(n.secureConnectionStart,6),r.rqs=$(n.requestStart,6),r.rps=$(n.responseStart,6),r.rpe=$(n.responseEnd,6),r.di=$(n.domInteractive,6),r.dcs=$(n.domContentLoadedEventStart,6),r.dce=$(n.domContentLoadedEventEnd,6),r.dc=$(n.domComplete,6),r.les=$(n.loadEventStart,6),r.lee=$(n.loadEventEnd,6))}wt.$self$.curr_pgl||(wt.$self$.curr_pgl=1,wt.report(y[1],{__fastCurrPage__:wt.getCurrPage(),g:r,t:e.ct})),St()},Ot=function $t(e){for(var t=1;t<e.length;t++)if(e[t].score<e[t-1].score)return e.splice(t,1),$t(e);return e},Et=function qt(e){if(wt.reverseValue){wt.excTimer&&(clearTimeout(wt.excTimer),wt.excTimer=0);var t="leave"===e?"leave":"fmp";if(function(e,t){var r=performance.now()-e,n=wt.score_arr;return!(r>t||r-(n&&n.length&&n[n.length-1].t||0)>1e3)}(wt.startTime,1e4)&&"leave"!==e)wt.excTimer=setTimeout((function(){qt()}),500);else{kt(),wt.reverseValue=0;for(var r=Ot(wt.score_arr),n=null,o=1;o<r.length;o++)if(r[o].t>=r[o-1].t){var a=r[o].score-r[o-1].score;(!n||n.rate<=a)&&(n={t:r[o].t,ct:r[o].ct,rate:a})}if(n&&n.t>0&&n.t<36e5)xt(yt(yt({},n),{},{capturedType:t}));else{var i=0;if("leave"===e)i=Math.max((new Date).getTime()-wt.$self$.page_enter,0);else if(wt.$self$.first_pgl)i=$(performance.now()-wt.startTime,6);else{var c="function"==typeof performance.getEntriesByType?performance.getEntriesByType("navigation")[0]:null;c&&c.duration>0&&(i=$(c.duration,6))}xt({t:i,ct:Ie(wt.$self$),capturedType:t})}}}},Tt=function(){wt.reverseValue=1,Et("leave")},Ct=function(e){e||St(),wt.observer.observe(document,{childList:!0,subtree:!0}),wt.reverseValue=1,Et()},It=function Ut(e,t,r){var n=0,o=e.tagName;if("SCRIPT"!==o&&"STYLE"!==o&&"META"!==o&&"HEAD"!==o){var a=e.children?e.children.length:0;if(a>0)for(var i=e.children,c=a-1;c>=0;c--)n+=Ut(i[c],t+1,n>0);if(n<=0&&!r){var s=e.getBoundingClientRect(),u=s.width,l=s.height,f=s.left,d=s.top;if(d>bt||d+l<0||f>_t||f+u<0)return 0}n+=1+.5*t}return n},Dt=function(){var e=performance.now()-wt.startTime,t=document.querySelector("body");if(t){var r=0;r+=It(t,1,!1),wt.score_arr.push({score:r,t:e,ct:Ie(wt.$self$)})}else wt.score_arr.push({score:0,t:e,ct:Ie(wt.$self$)})},function(e){var t=window.MutationObserver||window.WebKitMutationObserver;return wt.observer&&wt.observer instanceof t||(wt.confEndpoint=e.conf.endpoint,wt.zeroTime=e.start_time,wt.reverseValue=1,wt.startTime=performance.getEntriesByType("navigation")[0]&&performance.getEntriesByType("navigation")[0].responseEnd||0,wt.score_arr=[],wt.getCurrPage=function(){return{curr_hash:e.curr_hash,curr_search:e.curr_search,curr_href:e.curr_href}},wt.timer=0,wt.excTimer=0,wt.observer=new t(Dt),wt.report=e.createLog,wt.lastResourceIndex=-1,wt.$self$=e,wt.start=Ct,wt.stop=kt,wt.leaveExcute=Tt,Ct(!0)),wt}),Lt=["log_store","conf"];function Mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Rt=gt.getInstance(),Ft=(new Date).getTime(),Pt=function(r,n){r||(r={});var o="fasttrackerinited",a="fastlogcreated",i=[],s=x(window.__fastTrackerInitConfigs__)?jt({},window.__fastTrackerInitConfigs__):{};if(f.forEach((function(e){s[e]===undefined&&window["__fastTrackerConfig_".concat(e,"__")]!==undefined&&(s[e]=window["__fastTrackerConfig_".concat(e,"__")])})),(r=jt(jt({},s),r)).endpoint?D(r.endpoint)&&/^https?:\/\//.test(r.endpoint)?r.endpoint="/"===r.endpoint.slice(-1)?r.endpoint.slice(0,-1):r.endpoint:i.push("初始化参数endpoint[日志上报地址]不合法"):i.push("初始化参数endpoint[日志上报地址]必填"),!r.accessKey||!D(r.accessKey)||r.logstore&&D(r.logstore)||(r.logstore=r.accessKey),r.logstore&&D(r.logstore)||i.push("初始化参数accessKey或者logstore[日志上报密钥]必填"),i.length>0)return S({msg:i.join("\n")}),B();if(window[d]&&window[d].inited)return c(o,window[d]),window[d];if(window[p]&&window[p].inited)return c(o,window[p]),window[p];var l={},m=window,h=m.screen,v=m.navigator,b=me.get("__tracker_user_id__")||localStorage.getItem("__tracker_user_id__")||ie();_e(b);var w=me.get("__fast_sid__")||ie();be(w);var E,T,C=K(),I={env:n||window.__fastTrackerLogEnv__||window.__fastTrackerEnv__||"prod",ins_id:ie(),sid:w,start_time:Ft,ts_counter:0,last_ts:null,conf:(E=r,T=je(E),Se(Se({},{enable:1,is_spa:!0,include_search:!1,log_content_attribute:"data-log",log_event_attribute:"data-event",log_module_attribute:"data-module",report_api_params:!1,api_ignore_urls:[],ignore_pages:[],api_url_regx:"",collect_event_types:["event","page","click","api","error","crash"],capture_type:0,tenant_reader:{key:"",range:["url","localstorage","sessionstorage","cookie","window"]},real_user_reader:{key:"",range:["url","localstorage","sessionstorage","cookie","window"]},user_group_reader:{key:"",range:["url","localstorage","sessionstorage","cookie","window"]},app_version_reader:{key:"",range:["url","localstorage","sessionstorage","cookie","window"]},real_user_name_reader:{key:"",range:["url","localstorage","sessionstorage","cookie","window"]},real_user_role_reader:{key:"",range:["url","localstorage","sessionstorage","cookie","window"]},real_user_post_reader:{key:"",range:["url","localstorage","sessionstorage","cookie","window"]},real_user_bu_name_reader:{key:"",range:["url","localstorage","sessionstorage","cookie","window"]},trace_config:{tid_type:"fast",rules:[],headers:[]},replay:{error:!1}}),T)),ha_inited:!1,log_store:[],page_enter:(new Date).getTime(),curr_hash:C.curr_hash,curr_search:C.curr_search,curr_href:C.curr_href,first_pgl:0,curr_pgl:0,curr_pgsted:0,curr_pid:ie(),prev_page:X(null),ps_timer:0,sid_refresh_timer:0,api_timer:0,api_que:[],api_cache:{},api_perfCache:{},last_api:-1,last_resource:-1,regu_called:!1,last_sync:0,last_hi:0,send_timer:0,wfile_timer:0,last_sul:0,insertData:{a:r.app||"",cd:{},ahv:"",av:"",m:"",tn:"",ru:"",ug:"",run:"",rur:"",rup:"",rubn:""},static_base:{u:b,dsw:h.width,dsh:h.height,ua:v.userAgent,tv:"1.0.1-r27",tl:"javascript",at:""},hybrid_base:{},hybrid_rt:{}};window.cordova&&(I.static_base.at=g);var N=function(){I.static_base.at="miniprogram"===window.__wxjs_environment?"WeChat Mini Program":""};return/miniProgram/.test(I.static_base.ua)?I.static_base.at="WeChat Mini Program":window.WeixinJSBridge&&window.WeixinJSBridge.invoke?N():document.addEventListener("WeixinJSBridgeReady",N,!1),I.createLog=function(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;clearTimeout(I.sid_refresh_timer),I.sid_refresh_timer=setTimeout((function(){var e=ie();be(e),I.sid=e,I.sid_refresh_timer=0}),1801e3),clearTimeout(I.send_timer);try{var o=null;r&&r.__fastCurrPage__&&r.__fastCurrPage__.curr_href&&(o=r.__fastCurrPage__,delete r.__fastCurrPage__);var i=G(o||I),s=i.href,l=!Me(I.conf.collect_event_types,e)&&!Z(s,I.conf.ignore_pages);if(e===y[5]&&r&&(1===r.__fromReportError&&(l=!0),delete r.__fromReportError),l){var f=Re(I,o),p=jt(jt({e:e},f),r);switch(p.m||!I.insertData.m&&!window.__fastTrackerGlobalModule__||(p.m=window.__fastTrackerGlobalModule__?"".concat(window.__fastTrackerGlobalModule__):I.insertData.m),p.g&&x(p.g)||delete p.g,t(p.l)){case"string":try{p.l=x(JSON.parse(p.l))?JSON.parse(p.l):{msg:p.l}}catch(C){p.l=p.l?{msg:p.l}:null}break;case"number":case"boolean":case"symbol":p.l={msg:p.l};break;case"function":case"undefined":p.l=null;break;default:!x(p.l)&&p.l&&(p.l={msg:p.l})}p.l||delete p.l,e===y[2]?p.g=Fe(p,s,I.static_base.at===g):e===y[4]&&(p.g.api=W(p.g.api),p.g.m=D(p.g.m)?p.g.m.toUpperCase():"GET"),p.t||(p.t=Ie(I)),I.insertData.cd&&x(I.insertData.cd)&&(x(p.l)?p.l=jt(jt({},I.insertData.cd),p.l):p.l=jt({},I.insertData.cd));var m=e===y[5];if(m&&x(I.rcdIns)&&O(I.rcdIns.caughtError))try{p.g.replay=I.rcdIns.caughtError()}catch(N){}if(e===y[1]&&window!==window.parent){var h=function(e){O(e.postMessage)&&e.postMessage({source:d,payload:jt(jt(jt(jt(jt({},I.static_base),I.hybrid_base),I.hybrid_rt),p),{},{env:I.env})},"*")};1===I.conf.capture_type?h(window.parent):2===I.conf.capture_type&&h(window.top)}if(c(a,jt(jt(jt(jt(jt({},I.static_base),I.hybrid_base),I.hybrid_rt),p),{},{env:I.env})),window.cordova){var v=(new Date).getTime();if(2===n||v-I.last_hi<(m?3e4:3e5))p["do"]=I.hybrid_rt["do"],p.nt=(I.hybrid_rt.nt||"").toUpperCase(),Ae(I,p,n);else{var _=window,b=_.MFastLog,w=function(e){p["do"]=e["do"],p.nt=e.nt.toUpperCase(),m&&(p.ram=e.ram,p.rom=e.rom),I.hybrid_rt={"do":p["do"],nt:p.nt,ram:e.ram,rom:e.rom},I.last_hi=v,Ae(I,p,n)};if(m&&x(b))b.getBasicInformation((function(e){w({ram:e.m_available_ram||"",rom:e.m_available_rom||"",nt:e.network||"","do":e.device_orientation||""})}));else{var k=window.navigator,E=window.screen,T={nt:"","do":""};k&&k.connection&&k.connection.type&&(T.nt=k.connection.type||""),E&&E.orientation&&E.orientation.type&&(T["do"]=E.orientation.type||""),w(jt(jt({},T),{},{ram:"",rom:""}))}}}else Ae(I,p,n)}}catch(N){S({msg:"探针内部异常createLog失败\n".concat(N.message)})}1===I.conf.enable&&(I.send_timer=setTimeout((function(){Ae(I,null,1)}),u))},tt(I),ve(I),"function"==typeof performance.getEntriesByType&&(window.MutationObserver||window.WebKitMutationObserver)&&(I.fmpInstance=Nt(I)),l.registUser=function(e){if(x(e)&&e)try{_.forEach((function(t){var r=t.n,n=t.sn;e[r]!==undefined&&(I.insertData[n]=e[r]||"")})),I.regu_called=!0,De(I)}catch(t){S({msg:"探针API:registUser内部异常\n".concat(t.message)})}else S({msg:"探针API:registUser的参数必须是对象"})},l.setBasicInfo=function(e){if(x(e)&&e)try{var t=0;e.custom_data&&(x(e.custom_data)?(I.insertData.cd=e.custom_data,t=1):S({msg:"探针API:setBasicInfo参数中custom_data必须是对象"})),e.app_hotupdate_version&&(I.insertData.ahv=String(e.app_hotupdate_version),t=1),e.app_version&&(I.insertData.av=String(e.app_version),t=1),(e.globalModule||e.module)&&(I.insertData.m=String(e.globalModule||e.module),t=1),e.app&&(I.insertData.a=String(e.app),t=1),t&&De(I)}catch(r){S({msg:"探针API:setBasicInfo内部异常\n".concat(r.message)})}else S({msg:"探针API:setBasicInfo的参数必须是对象"})},l.report=function(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"",n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;if(D(e)&&e)if(e)try{var o=y.indexOf(e)>-1;o&&(S({msg:"参数eventName与内置事件重复，已增加user-defined-前缀"}),e="user-defined-".concat(e));var a={};(t||"number"==typeof t)&&(a.l=t),r&&D(r)&&(a.m=r),I.createLog(e,a,n)}catch(i){S({msg:"探针API:report内部异常\n".concat(i.message)})}else S({msg:"参数eventName必填"});else S({msg:"参数eventName必须是字符串"})},l.reportError=function(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";try{var n={__fromReportError:1};return"string"==typeof r&&r&&(n.module=r),x(t)?n.fast_extra_info=t:"string"==typeof t&&t&&(n.fast_extra_info={extra_info:t}),Rt.captureException.call(Rt,e,n),"ok"}catch(o){S({msg:"探针API:reportError内部异常\n".concat(o.message)})}},l.reportLoaded=function(){S({msg:"该方法已移除，天眼将自动记录页面加载时间"})},l.setEnable=function(e){1!==e&&0!==e||(I.conf.enable=e)},l.clearLogStore=function(){try{return I.log_store=[],ye(I,[]),"ok"}catch(e){S({msg:"探针API:clearLogStore内部异常\n".concat(e.message)})}},l.printDebug=function(){try{var t=I.log_store,r=I.conf,n=e(I,Lt),o=window.console;o.log("config: ",r),o.log("$self$: ",n),k(t)&&t.length>0&&o.log("log: ",t)}catch(a){S({msg:"探针API:printDebug内部异常\n".concat(a.message)})}},window[d]=l,window[p]=l,c(o,window[d]),ce(I),oe(I),et(I),Rt.init({confSource:I,callback:function(e){var t={g:{capturedTime:(new Date).getTime(),capturedType:"unknowType",exceptionType:"unkonwType",exceptionReason:"unkonwError",traceFrames:[]}};if(e){if(e.exception){if(e.exception.mechanism){var r=e.exception.mechanism||{};t.g.capturedTime=r.time||(new Date).getTime(),t.g.capturedType=r.type||"unknowType"}if(e.exception.values){var n=e.exception.values[0]||{};t.g.traceFrames=n.stacktrace&&n.stacktrace.frames||[],t.g.exceptionType=n.type||"unkonwType",t.g.exceptionReason=n.value||"unkonwError"}}else e.stacktrace&&k(e.stacktrace.frames)&&(t.g.traceFrames=e.stacktrace.frames,t.g.exceptionReason=e.message||"unkonwError");e.fast_extra_info&&(t.l={extraInfo:e.fast_extra_info}),e.module&&(t.m=e.module),1===e.__fromReportError&&("unknowType"===t.g.capturedType&&(t.g.capturedType="reportError"),t.__fromReportError=1)}if(t.g.traceFrames.length){var o=t.g.traceFrames[t.g.traceFrames.length-1];if(1===t.g.traceFrames.length&&!window.cordova){if(1===o.colno&&1===o.lineno)return;if(!o.colno||!o.lineno)return}/fastTracker/i.test(o.filename)||I.createLog(y[5],t,1)}}}),window.MutationObserver&&x(I.conf.replay)&&I.conf.replay.logstore&&(!0===I.conf.replay.error||!0===I.conf.replay.all)&&(O(window.$$fastRecord)?I.rcdIns=nt(I):function(e,t){var r=0;e.forEach((function(n){var o=document.createElement("script");o.type="text/javascript",o.src=n,document.getElementsByTagName("head")[0].appendChild(o),o.onload=function(){++r===e.length&&t()}}))}(["https://mic-open.mypaas.com.cn/fast-tracker/release/browser/recordlib/tracker-record.min.js"],(function(){I.rcdIns=nt(I)}))),Object.getOwnPropertyNames(l).forEach((function(e){l[e].toString=q(e)})),l.inited=!0,window[d].inited=!0,window[p].inited=!0,console.info("%c天眼(version:".concat("1.0.1-r27",")启动!"),"color:#90f1fe"),console.info("%c运行时配置: ","color:#90f1fe",I.conf),l};window&&!window[d]&&(window[d]=B(),window[p]=window[d]),c("fasttrackerloaded",Pt);var At=Pt}(),n=n["default"]}()}));