var itraceNext=function(t){"use strict";function e(t,r){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,r)}var r=function(t){return t.ZH="cn",t.QUARK="quark",t.INTL="intl",t}({});!function(t){t[t.JSERR=1]="JSERR",t[t.API=2]="API",t[t.PERF=3]="PERF",t[t.RESERR=4]="RESERR",t[t.PVUV=5]="PVUV",t[t.BKPG=6]="BKPG",t[t.LONGTASK=8]="LONGTASK",t[t.INPD=15]="INPD",t[t.NODERES=16]="NODERES",t[t.PGERROR=17]="PGERROR",t[t.BLOCK=18]="BLOCK",t[t.PERFNEXT=1e3]="PERFNEXT",t[t.MAINDOC=1e5]="MAINDOC",t[t.RESTIMING=100001]="RESTIMING"}({});var n=function(t){return t.JSERR="jserr",t.API="api",t.PERF="jsfsperf",t.RESERR="resloadfail",t.PVUV="flow",t.BKPG="bkpg",t.CUSTOM="jssdkidx",t.INPD="inputdelay",t.LONGTASK="longtask",t.NODERES="nodres",t.PGERROR="pgerror",t.BLOCK="h5block",t}({});function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(null,arguments)}var o=[-6,-7],s=[-5,-4,-3,-2,-1],a=["fr","rom","model","bver","sver","net"];function c(t){if(p(console)&&f(console.warn)){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];(e=console).warn.apply(e,["[itrace says] "+t].concat(n))}}function u(t){return void 0!==t}function d(t){var e=Date.now();"undefined"!=typeof window&&window.performance&&"function"==typeof window.performance.now&&(e+=performance.now());var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:11&r).toString(16)});return!1===t?r.replace(/-/g,""):r}function p(t){return"object"==typeof t}function l(t){return"[object Array]"==={}.toString.call(t)}function f(t){return"function"==typeof t}function h(t){var e;switch(t){case 1:e=n.JSERR;break;case 2:e=n.API;break;case 3:e=n.PERF;break;case 4:e=n.RESERR;break;case 5:e=n.PVUV;break;case 6:e=n.BKPG;break;case 8:e=n.LONGTASK;break;case 15:e=n.INPD;break;case 16:e=n.NODERES;break;case 17:e=n.PGERROR;break;case 18:e=n.BLOCK;break;default:e=n.CUSTOM}return e}function g(t){var e=+new Date;return!0===t&&(e=Math.floor(e/1e3)),e}function v(t){var e=[];for(var r in t)e.push(r+"="+t[r]);return e.join("&")}function _(t){return!!t&&(t>=1||"100%"===t||(/^\d+(\.\d+)?%$/.test(t)?Math.random()<parseFloat(t)/100:t>0&&t<1&&Math.random()<t))}function y(){for(var t=arguments.length<=0?void 0:arguments[0],e=1,r=arguments.length;e<r;e++){var n=e<0||arguments.length<=e?void 0:arguments[e];for(var i in n)x(n,i)&&(t[i]=n[i])}return t}function m(t,e){if(-1===e)t();else var r=setTimeout(function(){t(),clearTimeout(r)},e||0)}function w(t,e,r,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1),t.addEventListener?t.addEventListener(e,function o(s){i&&t.removeEventListener(e,o,n),r.call(this,s)},n):t.attachEvent&&t.attachEvent("on"+e,function o(s){i&&t.detachEvent(e,o,n),r.call(this,s)})}function b(t){for(var e in t)0===e.indexOf("_")&&delete t[e];for(var r,n=1;n<=15;n++)x(t,r="bl"+n)&&(t["w_"+r]=t[r],delete t[r]);r=null,function(t,e,r){for(var n,i=e.length,o=0;o<i;o++)"string"==typeof(n=t[e[o]])?t[e[o]]=n.substring(0,r):"object"==typeof n&&(n=JSON.stringify(n),t[e[o]]=n.substring(0,r))}(t,["c1","c2","c3","c4","c5","c6","c7","c8","c9","c10"],128)}var R="undefined"!=typeof navigator?(navigator.userAgent||"").toLowerCase():"";function k(){return R.indexOf("quark/")>-1}function E(){return R.indexOf("quarkpc/")>-1}function S(t,e,r,n){var o;if("function"==typeof(null==(o=window)||null==(o=o.ucapi)?void 0:o.invoke)){var s=i({},e,{success:r,fail:n});window.ucapi.invoke(t,s)}else n&&n("ucapi is not exist")}var L=function(t){return 0===t?0:o.indexOf(t)>-1?1:s.indexOf(t)>-1?2:0},P=function(t){for(var e={},r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];void 0===t[i]||null===t[i]||a.includes(i)?(e[i]=t[i],delete t[i]):("object"==typeof t[i]&&(t[i]=JSON.stringify(t[i])),"string"!=typeof t[i]&&(t[i]=""+t[i]))}return e},x=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},O=function(t){if(!t)return 0;try{return"function"==typeof TextEncoder?(new TextEncoder).encode(t).length:function(t){for(var e=0,r=0,n=t.length;r<n;r++){var i=t.charCodeAt(r);e+=i<128?1:i<2048?2:i<55296?3:i<56320?4:3}return e}(t)}catch(e){return t.length}},I=function(){function t(t){this.logSrc="jssdk",this.sdkCode="default",t=t||{},this.bid=t.bid||"",this.cid=t.cid||"",this.uid=t.uid||"",this.rel=t.rel||"",this.utdid=t.utdid||void 0,this.debug=t.debug||!1,this.delay=!1!==t.delay,this.cluster=t.cluster||r.ZH,this.sampleRate=t.sampleRate,this.ready=!1,this.plugins=t.plugins||[],this.gateway=t.gateway||""}var e=t.prototype;return e.print=function(){this.debug&&c.apply(void 0,arguments)},e.isReady=function(){return this.ready},e.setReady=function(){this.ready=!0},e.setConfig=function(t){var e=this;if(p(t)){var r=function(r){var n;(function(t,e){for(var r,n=0,i=t.length;n<i;n++)if(r=t[n],e.call(this,r))return!0;return!1})(["plugins"],function(t){return t===r})||y(e,((n={})[r]=t[r],n))};for(var n in t)r(n)}},t}(),C=function(){function t(){this.logList=[],this.preLogList=[]}var e=t.prototype;return e.getLogList=function(){return this.logList},e.takeLogList=function(){var t=this.logList;return this.logList=[],t},e.getPreLogList=function(){return this.preLogList},e._updateLogQueue=function(t){var e=this.logList.length,r=!0;if(1!==t.category||0===e)this.logList.push(t);else{for(var n,i=0;i<e;i++)if((n=this.logList[i])._hash===t._hash){n.w_cnt=n.w_cnt?++n.w_cnt:1,r=!1;break}r&&this.logList.push(t)}return r},e.popLog=function(){return this.logList.shift()},e.popPreLog=function(){return this.preLogList.shift()},e.pushLog=function(t){return this._updateLogQueue(t)},e.hasLog=function(){return this.logList&&this.logList.length>0},e.pushPreLog=function(t){this.preLogList.push(t)},e.hasPreLog=function(){return this.preLogList&&this.preLogList.length>0},e.setPreLogList=function(t){void 0===t&&(t=[]),this.preLogList=this.preLogList.concat(t)},e.clearLogList=function(){this.logList=[]},t}(),j=function(t){return t.ZH="cn",t.QUARK="quark",t.INTL="intl",t}({}),A=function(){function t(){}return t.getAddr=function(e,r){return r?""+r+t.uploadPath:""+t.hosts[e.valueOf()]+t.uploadPath},t.getConfAddr=function(e,r){return r?""+r+t.jconfigPath:""+t.hosts[e.valueOf()]+t.jconfigPath},t.getHosts=function(e){return t.hosts[e]},t}();A.hosts={cn:"https://px.effirst.com",intl:"https://px-intl.ucweb.com",quark:"https://px.wpk.quark.cn",er:"https://erpx.effirst.com"},A.uploadPath="/api/v1/jssdk/upload",A.jconfigPath="/api/v1/jconfig";var N=function(t){return t[t.JSERR=1]="JSERR",t[t.API=2]="API",t[t.PERF=3]="PERF",t[t.RESERR=4]="RESERR",t[t.PVUV=5]="PVUV",t[t.BKPG=6]="BKPG",t[t.LONGTASK=8]="LONGTASK",t[t.INPD=15]="INPD",t[t.NODERES=16]="NODERES",t[t.PGERROR=17]="PGERROR",t[t.BLOCK=18]="BLOCK",t[t.PERFNEXT=1e3]="PERFNEXT",t[t.MAINDOC=1e5]="MAINDOC",t[t.RESTIMING=100001]="RESTIMING",t}({});!function(t){t.JSERR="jserr",t.API="api",t.PERF="jsfsperf",t.RESERR="resloadfail",t.PVUV="flow",t.BKPG="bkpg",t.CUSTOM="jssdkidx",t.INPD="inputdelay",t.LONGTASK="longtask",t.NODERES="nodres",t.PGERROR="pgerror",t.BLOCK="h5block"}({});var T=0,B=2;function U(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return q(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var D,M=window,G=document,V=navigator,K=location,J=void 0!==M.devicePixelRatio?M.devicePixelRatio:1,F="__itrace",H="__itrace_conf",Q="__itrace_wid",W="__wpkreporterwid_";function X(t,e){for(var r,n,i=t.split("."),o=e.split("."),s=i.length,a=0;a<s;a++)if((r=parseInt(i[a]))!==(n=parseInt(o[a])))return r>n;return!0}function z(){var t=[],e=function(){for(var t=navigator.userAgent.split(" "),e=0;e<t.length;e++)if(t[e].toLowerCase().indexOf("quarkpc/")>-1)return t[e].split("/")[1]}();return e&&(X(e,"1.0.0.0")&&t.push.apply(t,["flow","blank"]),X(e,"2.0.0.0")&&t.push.apply(t,["perf","jserror"])),t}function Z(t){try{if(u(window)&&window.ucweb&&window.ucweb.window||u(t)){for(var e=(t||V.userAgent).split(" "),r=e.length,n=!1,i=0;i<r;i++)if(-1!==e[i].indexOf("UWS/")){n=X(e[i].split("/")[1],"2.13.2.37");break}return n||R.indexOf("ucbrowser/")>-1||k()||R.indexOf("tongyi/")>-1||R.indexOf("@TongYi_")>-1}}catch(t){console.error(t)}return!1}var $=function(){var t,e;return 3===(null==(t=window.ucweb)||null==(t=t.window)||null==(t=t.performance)?void 0:t.pt)||(null==(e=window.compass)||null==(e=e.env)?void 0:e.isPrerender)};function Y(t){try{var e="__wpktestingls__";return t().setItem(e,e),t().removeItem(e),!0}catch(t){return!1}}function tt(){return localStorage}var et={get:function(t){if(Y(tt)){var e=tt().getItem(t);if(e){if(e=JSON.parse(e),Date.now()<e.expireAt)return e;this.rm(t)}}return null},set:function(t,e){Y(tt)&&t&&e&&(e.expireAt=Date.now()+18e5,tt().setItem(t,JSON.stringify(e)))},rm:function(t){Y(tt)&&tt().removeItem(t)}};function rt(){return sessionStorage}var nt=function(t,e){if(!e)return!0;if(!l(e))return!1;if(1===e.length)return t===e[0];if(2===e.length){var r=e[0],n=e[1];return r&&!n?i(t,r):r&&n?i(t,r)&&i(n,t):i(n,t)}return!1;function i(t,e){var r=t.split("."),n=e.split(".");return!(parseInt(r[0])<parseInt(n[0]))&&(parseInt(r[0])>parseInt(n[0])||!(parseInt(r[1])<parseInt(n[1]))&&(parseInt(r[1])>parseInt(n[1])||parseInt(r[2])>=parseInt(n[2])))}};function it(t,e,r,n){var i="itracereporter:dynamicConf:"+t,o=et.get(i);if(o)f(n)&&n(o);else{var s=v({app:t,tm:g(!0),ud:d(),sver:e,sign:"c41e43c828c16c16a6eb1c9c1e68e8ce"});!function(t,e){if("undefined"==typeof XMLHttpRequest)e();else{var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState){var t;if(200===r.status&&r.response)try{var n=JSON.parse(r.response);0===n.code&&(t=n.config||[])}catch(t){}e(t)}};try{r.open("GET",t,!0),r.timeout=3e3,r.send()}catch(t){}}}(r+"?wpk-header="+encodeURIComponent(s),function(t){if(o={},void 0!==t){for(var r=t.length,s=0;s<r;s++){var a=t[s],c=a.sdkver;if(nt(e,c)){if(a.common&&void 0!==a.common.sampleRate&&(o.all=a.common.sampleRate),a.config)for(var u=a.config.length,d=0;d<u;d++){var p=a.config[d];if(p.type){if(p.category_rate)for(var l in p.category_rate)o[p.type+"@"+l]=p.category_rate[l];p.sampleRate&&(o[p.type]=p.sampleRate)}}break}}try{et.set(i,o)}catch(t){}}f(n)&&n(o)})}}function ot(){return M.cookieStore}var st=function(t,e){var r;null==(r=ot())||r.get(t).then(function(t){e(null==t?void 0:t.value)}).catch(function(t){console.error(t),e(null)})},at=function(t){var e;Object.assign(t,{sameSite:"none"}),null==(e=ot())||e.set(t).catch(function(t){return console.error(t)})},ct=function(t){var e;null==(e=ot())||e.delete(t).catch(function(t){return console.error(t)})},ut={},dt=function(t,e,r,n,i){if(void 0===e){if(!ut[t]){var o=null,s=new RegExp(t+"=([^;]+)");try{o=s.exec(G.cookie)}catch(t){return null}o&&(ut[t]=o[1])}return ut[t]}var a=t+"="+e;n&&(a+="; domain="+n),i&&(a+="; path="+i),r&&(a+="; max-age="+r);try{G.cookie=a}catch(t){return null}return a},pt=null;function lt(t,e){var r,n;(n=ot())&&"function"==typeof n.get?(console.warn("[itrace says] using cookieStore"),t?(ct(Q),ct(W),(r=pt)||(r=d(),pt=r),e&&e(r)):st(Q,function(t){t||(t=d(),pt=t),at({name:Q,value:t,expires:Date.now()+15552e6}),e&&e(t)})):(console.warn("[itrace says] using document.cookie"),t?(!function(){var t=dt(Q);t&&dt(Q,"",-1),(t=dt(W))&&dt(W,"",-1)}(),r=pt):r=dt(Q),r||(r=d(),t?pt=r:dt(Q,r,15552e3)),e&&e(r))}var ft=function(t){return"itrace"+(t.replace(/^\S/g,function(t){return t.toUpperCase()})+"Plugin")},ht=function(t,e){try{var r=ft(e.id),n=window[r];if(f(n))new n(e).init(t),t.print(e.id+" plugin init success");else t.print(e.id+" plugin's constructor is not exist")}catch(r){t.print(e.id+" plugin init fail: ",r)}},gt=function(t,e){try{new(0,e.plugin)(e).init(t),t.print(e.id+" plugin init success by option.plugin")}catch(r){t.print(e.id+" plugin init fail: ",r)}};function vt(t,e){var r=t._sdkEnv.useU4Monitor,n=["flow","interface","jserror","perf","resource","blank"],i=[],o=[];t._sdkEnv.isQuarkPC&&(n=z());for(var s,a=U(e);!(s=a()).done;){var c=s.value,u="string"==typeof c?{id:c,plugin:null}:c;if(u.id){if(r&&n.includes(u.id)&&!u.forceEnable){if(t.print("uccore monitor has been enabled, so ["+u.id+"] plugin will be ignore. you can set the plugin option [ forceEnable ] as true to enable it."),"interface"!==u.id||!u.enableTrace)continue;u.onlyForTrace=!0}if(u.plugin&&f(u.plugin))gt(t,u);else{var d=ft(u.id);f(window[d])?(t.print(u.id+" plugin already exists in window, init it immediately"),ht(t,u)):(i.push(u),o.push("itrace-"+u.id+".iife.js"))}}else t.print("plugin options has no id, base sdk will ignore it")}!function(t,e,r){if(r.length<=0)t.print("no plugins need load from cdn");else{var n=(t.cdn||"https://g.alicdn.com/woodpeckerx/itrace-next")+"/??",i=document.getElementsByTagName("script")[0],o=document.createElement("script");if(o.type="text/javascript",o.crossOrigin="anonymous",o.async=!0,i&&i.parentNode)i.parentNode.insertBefore(o,i);else{var s=document.head;null==s||s.appendChild(o)}o.src=n+r.join(","),o.onload=function(){for(var r,n=U(e);!(r=n()).done;){var i=r.value;ht(t,i)}}}}(t,i,o)}function _t(){var t;if(!G)return{};var e=G.referrer;e&&-1!==e.indexOf('"')&&(e=encodeURIComponent(G.referrer));var r,n=function(){if(void 0===D){var t=(V?V.userAgent:"").toLowerCase();D=t.indexOf("electron/")>-1}return D}()?"renderer":void 0,i=null==(t=M.__itracecfg__)?void 0:t.wv_traceid,o=V.deviceMemory||-1;return{w_url:(K.origin?K.origin:K.protocol+"//"+K.host)+K.pathname,w_query:K.search,w_ref:K.hash.substring(1),w_title:G.title,ua:V.userAgent,referrer:e,dsp_dpi:J||1,dsp_w:M.screen.width,dsp_h:M.screen.height,w_wv_traceid:i,wk_proc_type:n,wl_devmem:o,net:(r=V.connection,r&&r.type?"none"===r.type?"disconnected":"cellular"===r.type?"slow-2g"===r.effectiveType?"2g":r.effectiveType:r.type:"")}}var yt=function(t,e,r){if("function"==typeof XMLHttpRequest){var n=new XMLHttpRequest;n.open("POST",e,!0),n.setRequestHeader("Content-Type","text/plain"),n.timeout=5e3,n.send(r)}else t.print("xhr is not supported")},mt=function(t,e){S("webMonitor.reportWpkLog",e,function(e){t.print("report success by jsapi",e)},function(e){t.print("report failed by jsapi",e)})};function wt(){return V&&!!V.sendBeacon&&M.Blob}var bt=function(t){try{return 1===((null==M?void 0:M.nativeWpkReport)||{})[t]}catch(t){return!1}};function Rt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return kt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}!function(){if(!p(window)||!u(window.navigator))throw new Error("iTrace sdk only support")}();var Et=function(t){function r(e){var r;return(r=t.call(this,e)||this).uc_param_str="",r.cdn="",r._sdkEnv={},r._wid="",r._begin=0,r._sid="",r._frmId="",r.__sn=0,r._dyStart=0,r._hasWidTimer=!1,r.spa=e.spa||!1,r.ignoreU4HA=!0===e.ignoreU4HA,r.checkHidden=!1!==e.checkHidden,r.disableCookie=!0===e.disableCookie,r.supportBeaconBody=!1!==e.supportBeaconBody,r.maxSessDuration=e.maxSessDuration||288e5,r.immediatePV=!1!==e.immediatePV,r.uc_param_str=e.uc_param_str||"prveosfrnwutmisvbditcu",r.sdkVer="2.3.34",r.sdkCode="browser",r.beforeSend=e.beforeSend,r.clearBeforeunload=!1!==e.clearBeforeunload,r.cdn=e.cdn||"",r._logq=new C,r._dying=!1,r._prerender=e.prerender,r.useNativeCH=!1!==e.useNativeCH,!e.cluster&&k()&&(r.cluster=j.QUARK),r}!function(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,e(t,r)}(r,t);var n=r.prototype;return n.prerenderCommit=function(){if(this._sdkEnv.hasPrerenderCommit)this.print("prerenderCommit can only call once");else{this.print("prerender commit event"),this._sdkEnv.hasPrerenderCommit=!0;var t=new Event("wpkpageforeground");window.dispatchEvent(t),this.reportImmediatePV(!0)}},n._listenCompassPrerenderEvt=function(){var t=this;$()&&(this._sdkEnv.prerenderType="compass",w(document,"prerendercommit",function(){t.prerenderCommit()},!1,!0),w(document,"touchstart",function(){t.prerenderCommit()},!1,!0))},n._loadPlugins=function(){if(l(this.plugins)&&this.plugins.length>0)try{vt(this,this.plugins)}catch(t){this._reportToSelf(t,{c1:"插件初始化异常"})}},n._normalizeLog=function(t){var e=t.uid||this.uid||this._wid,r=t.rel||this.rel,n=_t(),i=h(t.category),o=++this.__sn,s=y({uid:e,utdid:t.utdid||this.utdid,wid:this._wid,type:i,category:t.category,w_cnt:1,w_rel:r,w_bid:t.bid||this.bid,w_cid:t.cid||this.cid||void 0,w_spa:this.spa,w_frmid:this._frmId,w_tm:g(),log_src:this.logSrc,sdk_ver:this.sdkVer,crver:this.sdkVer,uc_param:this.uc_param,wl_wpk_sn:o},n,t),a=this._genReportUrl(s,!0);return s._url=a,s._hash=function(t){var e="";switch(t.category){case 1:e=[t.category,t.uid,t.w_url,t.w_ref,t.w_msg||"",t.w_line||"",t.w_col||""].join("");break;case 2:e=[t.category,t.uid,t.w_res,t.w_method,t.w_rc].join("");break;case 4:e=[t.category,t.uid,t.w_url,t.w_ref,t.w_res,t.w_type].join("")}return e}(s),s},n._genReportUrl=function(t,e){var r={app:t.w_bid||this.bid,cp:"none",de:e?4:1,seq:""+Math.floor(+new Date/1e3)+Math.floor(1e4*Math.random()),tm:g(!0),ud:encodeURIComponent(t.uid||this.uid||this._wid),ver:t.rel||this.rel,type:t.type||h(t.category),sver:this.sdkVer,sign:"9bf8a190ef82c5049df7b199c599c45b"};return A.getAddr(this.cluster,this.gateway)+"?wpk-header="+encodeURIComponent(v(r))+(this.uc_param_str?"&uc_param_str="+this.uc_param_str:"")},n.send=function(t,e,r){if(r)yt(this,t,e);else if(u(e)){navigator.sendBeacon(t,e)||(this.print("beacon send fail, retry by xhr"),yt(this,t,e))}else this._sdkEnv.supportBeacon?navigator.sendBeacon(t):(n=t,i="itraceimgreporter_"+g()+".r"+Math.floor(1e3*Math.random()),(o=M[i]=new Image).onload=o.onerror=function(){M[i]=null},o.src=n);var n,i,o;this.print("log is sent: ",t)},n.setReady=function(){var e=this;t.prototype.setReady.call(this),m(function(){e._sendQueuingLogs()},0)},n._updateSpecialFields=function(t){return t._dirty?y(t,{w_bid:this.bid,w_cid:this.cid,w_rel:this.rel,uid:this.uid,utdid:this.utdid}):t},n._enhanceLog=function(t){t.wid=this._wid,void 0!==t.uid&&null!==t.uid&&""!==t.uid||(t.uid=this._wid,t.regenurl=!0),b(t)},n._isWidReady=function(){return!(!this._wid||""===this._wid)},n._sendQueuingLogs=function(){var t=this;if(this._logq.hasLog()){if(!this._isWidReady())return this._hasWidTimer||(this._hasWidTimer=!0,lt(this.disableCookie,function(e){t._wid=e}),m(function(){t._sendQueuingLogs()},500)),void this.print("wid is not ready, will retry after 500ms.");var e=this._logq.takeLogList(),r=e.length;if(this.useNativeCH&&this._sdkEnv.quantumApiEnable){this.print("use quantum api upload log");for(var n=!1,i=0;i<r;i++)try{var o=e[i];o.w_send_mode="quantum.api",o._url=void 0,o.net=void 0,this._updateSpecialFields(o),this._enhanceLog(o);var s=P(o),a=window.quantum.wpk._jsonLog(o.type,o);this.print("quantum api report ret: ",a);var c=L(a);if(c!==T){n=!0,c===B&&(this._sdkEnv.quantumApiEnable=!1,Object.assign(o,s)),r=(e=e.slice(i)).length;break}}catch(t){this.print(t)}if(!n)return;this.print("log report fallback")}if(this._sdkEnv.sendByJsapi)for(var u=0;u<r;u++)try{var d=e[u];d.w_send_mode="jsapi",d._url=void 0,this._updateSpecialFields(d),this._enhanceLog(d),mt(this,{type:d.type,immediate:"jsfsperf"===d.type?0:1,args:d})}catch(t){this.print(t)}else if(this._sdkEnv.supportBeaconBody&&this.supportBeaconBody)for(var p,l=function(t){for(var e=[],r=[],n=t.length,i=0;i<n;i++){var o=t[i].category;-1===r.indexOf(o)&&r.push(o)}for(var s=r.length,a=0;a<s;a++){for(var c=r[a],u=[],d=0;d<n;d++){var p=t[d];p.category===c&&u.push(p)}e[a]=u}return e}(e),f=Rt(l);!(p=f()).done;){var h=p.value;try{for(var g,v=[],_=0,y=Rt(h);!(g=y()).done;){var w=g.value;this._updateSpecialFields(w),this._enhanceLog(w),w.w_send_mode="beacon";var b=JSON.stringify(w),R=O(b);R>6e4?(this.send(this._genReportUrl(w,!1),b,!0),this.print("single log oversize 60k, send by xhr")):((_+=R)>6e4&&(this.send(this._genReportUrl(w,!1),v.join("\n")),this.print("group log length is "+v.length+" size is "+_+" oversize 60k, send now"),v.splice(0,v.length),_=R),v.push(b))}if(v.length>0){var k=this._genReportUrl(h[0],!1);this.send(k,v.join("\n"))}}catch(t){this.print(t)}}else for(var E=0;E<r;E++){var S=e[E],x=S._url||"",I=S._forcePost||!1;this._updateSpecialFields(S),this._enhanceLog(S),S.w_send_mode=I?"fetch":wt()?"beacon":"img";try{var C=JSON.stringify(S);(I=I||O(C)>7500)?(x=this._genReportUrl(S,!1),this.send(x,C,I)):(S.regenurl&&(this.print("regen report url"),x=this._genReportUrl(S,!1)),x+="&data="+encodeURIComponent(C),this.send(x))}catch(t){this.print(t)}}}else this.print("logq is empty.")},n._handlePreReporting=function(){var t=window.__iTraceLogQueue;if(l(t)&&t.length>0&&(this._logq.setPreLogList(t),window.__iTraceLogQueue=[],this.print("preLogList is updated")),this._logq.hasPreLog()){this.print("handling logq for pre-reporting");for(var e=this._logq.getPreLogList();e.length;){var r=e.shift(),n=null==r?void 0:r.shift();f(this[n])&&(this[n].apply(this,r),this.print(n+" is called by pre-reporting."))}}},n.resetSession=function(){var t;this._sid=(t=d(),Y(rt)&&rt().setItem("wpkreporter:frmid",t),t),this._begin=Date.now(),this._frmId=this._sid},n._useU4Monitor=function(){return!this.ignoreU4HA&&(Z()||E())&&function(t){if(u(document)&&document.getElementsByTagName)for(var e=document.getElementsByTagName("meta"),r=e.length,n=0;n<r;n++){var i=e[n];if(i.name===t)return i.content}return""}("wpk-bid")===this.bid},n.init=function(){this._syncDyConf(),this.resetSession(),this.initSdkEnv(),this._loadPlugins(),this._listenCompassPrerenderEvt();var t=this;m(function(){t.reportImmediatePV(),function(t,e){try{S("biz.ucparams",{params:t},function(t){e.uc_param=t,e.print("get uc_param success",t)},function(t){e.print("get uc_param_str error: ",t)})}catch(t){e.print("get uc_param_str error: ",t)}}(t.uc_param_str,t)},0);var e=this._sdkEnv.isIOS?"pagehide":"beforeunload";w(window,e,function(){(t.isReady()||t.clearBeforeunload)&&(t._sendQueuingLogs(),t.print("do clearing jobs on page unload~"))},!0),this._sdkEnv.isPrerender&&this.print("预渲染场景下，白屏、性能检测时机为webview上屏之后")},n.initSdkEnv=function(){try{this._sdkEnv.useU4Monitor=this._useU4Monitor(),this._sdkEnv.isPrerender=$()||this._prerender,this._sdkEnv.iOSNBCheck=this.useNativeCH&&bt("enableBlankReport"),this._sdkEnv.sendByJsapi=this.useNativeCH&&bt("enablePerformanceReport"),this._sdkEnv.isIOS=/(iphone|ipad|ipod|ios)/i.test(R),this._sdkEnv.supportBeacon=!!wt(),this._sdkEnv.supportBeaconBody=this._sdkEnv.supportBeacon&&!this._sdkEnv.isIOS,this._sdkEnv.isQuarkPC=E(),this._sdkEnv.quantumApiEnable=function(){try{if(window.quantum&&"function"==typeof window.quantum.wpk._jsonLog)return!0}catch(t){}return!1}(),this.print("sdk env:",this._sdkEnv)}catch(t){this.print("init sdk env error",t)}},n.reportImmediatePV=function(t){void 0===t&&(t=!1),this._sdkEnv.useU4Monitor||this._sdkEnv.isPrerender&&!t||!this.immediatePV||this.reportFlow()},n.report=function(t){var e=this;if(this.print("reporting data:",t.category,t),!t||!t.category)return this;var r=t.sampleRate||this.sampleRate;if(r||0===r||(r=1),!_(r))return this.print("log is rejected by sampling rate, type: %s category: %s, rate: %s log: %o",t.type,t.category,r,t),this;Date.now()-this._begin>=this.maxSessDuration&&this.resetSession();try{var n=this._normalizeLog(t);if(this._dyConf&&Date.now()<this._dyConf.expireAt){var i=n.type+"@"+n.category,o=this._dyConf[i];if(u(o)||(i=n.type||"undefined",o=this._dyConf[i]),o=u(o)?o:this._dyConf.all,u(o)&&!_(o))return this.print("log is rejected by dynamic sampling rate, type: %s, category: %s, rate: %s log: %o",n.type,n.category,o,n),this}else!this._dying&&Date.now()-this._dyStart>=18e5&&(this.print("syncing dynamic config"),this._syncDyConf());if(this._handlePreReporting(),f(this.beforeSend))try{if(!1===this.beforeSend(n))return this.print("the beforeSend hook rejects this log"),this}catch(t){this.print("beforeSend hook error",t)}n.category===N.JSERR&&delete n.error;var s=this.isReady();if(n._dirty=!s,!this._logq.pushLog(n))return this.print("log merged: ",n),this;if(s)m(function(){e._sendQueuingLogs()},!n._reportNow&&this.delay&&-1!==[1,2,4,8,15,18].indexOf(n.category||0)?1e3:-1);else this.print("sdk is not ready, you should call setReady to trigger reporting.")}catch(e){this.print("report failed: ",t,e),this._reportToSelf(e)}return this},n.reportFlow=function(t){var e=t||{};return e.category=N.PVUV,this.report(e),this},n.reportJSError=function(t,e){return!function(t){var e={}.toString.call(t);return("[object Error]"===e||"[object Exception]"===e||"[object DOMException]"===e||e instanceof Error)&&p(t)}(t)?this.print("the input is not a real JSError"):((e=e||{}).category=N.JSERR,e.w_msg=t.toString(),e.stack=function(t){if(t.stack){var e=t.stack.split("\n");return e.shift(),e.join("\n")}return""}(t),e.w_file=t.filename||"",e.w_line=t.lineno,e.w_col=t.colno,this.report(e)),this},n.reportApi=function(t){if(t){p(t.queryString)&&(t.queryString=v(t.queryString));var e=y(t,{category:N.API,w_type:16,w_res:t.url,w_method:t.method,w_param:t.queryString,w_body:"object"==typeof t.body?JSON.stringify(t.body):t.body,w_resp:t.response,w_rc:t.status,w_rt:t.spent||0},{url:void 0,queryString:void 0,response:void 0,body:void 0,status:void 0,spent:void 0});this.report(e)}return this},n.reportBlankPage=function(t){var e=t||{};return x(t,"w_fp")||(e=y(t,{w_fp:999})),e=y(e,{category:N.BKPG}),this.report(e),this},n.reportPerf=function(t){return this._hasReportPerfData?(this.print("do not repeat report performance data"),this):(this.print("manual report performance data"),this.__customPerfCache__=t,this)},n.detectBlank=function(t){return this.print("need itrace-blank plugin"),this},n.detectBlock=function(t,e){return this.print("need itrace-fluency plugin"),this},n._syncDyConf=function(){var t=A.getConfAddr(this.cluster,this.gateway),e=this;e._dyStart=Date.now(),e._dying=!0,it(e.bid,e.sdkVer,t,function(t){e._dying=!1,e._dyConf=t,e.print("jconfig come back")})},n._reportToSelf=function(t,e){void 0===e&&(e={});this.reportJSError(t,y({bid:"itrace-next"},e))},r}(I),St=window;function Lt(t){var e=t||St[H]||{},r=new Et(e);return r.init(),r}return St[H]&&p(St[H])&&!u(St[F])&&(St[F]=new Et(St[H]),St[F].init()),St.__getItraceInstance||(St.__getItraceInstance=Lt),t.getItraceInstance=Lt,t.getItraceSingleton=function(t){if(St[F])return St[F];var e=t||St[H]||{};return St[F]=new Et(e),St[F].init(),St[F]},t.iTraceReporter=Et,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["wpk-api-filter"]=n():t["wpk-api-filter"]=n()}(window,(function(){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=48)}([function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n,r){t.exports=!r(3)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(1),o=r(7),i=r(8),u=r(27),c=r(19),f="prototype",a=function(t,n,r){var s,p,l,v,d=t&a.F,y=t&a.G,x=t&a.S,h=t&a.P,m=t&a.B,_=y?e:x?e[n]||(e[n]={}):(e[n]||{})[f],S=y?o:o[n]||(o[n]={}),b=S[f]||(S[f]={});for(s in y&&(r=n),r)l=((p=!d&&_&&void 0!==_[s])?_:r)[s],v=m&&p?c(l,e):h&&"function"==typeof l?c(Function.call,l):l,_&&u(_,s,l,t&a.U),S[s]!=l&&i(S,s,v),h&&b[s]!=l&&(b[s]=l)};e.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n,r){var e=r(18)("wks"),o=r(17),i=r(1).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},,function(t,n){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(9),o=r(26);t.exports=r(2)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(10),o=r(11),i=r(13),u=Object.defineProperty;n.f=r(2)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(0);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n,r){t.exports=!r(2)&&!r(3)((function(){return 7!=Object.defineProperty(r(12)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(0),o=r(1).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){var e=r(0);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,n,r){"use strict";var e=r(3);t.exports=function(t,n){return!!t&&e((function(){n?t.call(null,(function(){}),1):t.call(null)}))}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n,r){var e=r(7),o=r(1),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(30)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n,r){var e=r(31);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,r){var e=r(19),o=r(21),i=r(32),u=r(22),c=r(33);t.exports=function(t,n){var r=1==t,f=2==t,a=3==t,s=4==t,p=6==t,l=5==t||p,v=n||c;return function(n,c,d){for(var y,x,h=i(n),m=o(h),_=e(c,d,3),S=u(m.length),b=0,g=r?v(n,S):f?v(n,0):void 0;S>b;b++)if((l||b in m)&&(x=_(y=m[b],b,h),t))if(r)g[b]=x;else if(x)switch(t){case 3:return!0;case 5:return y;case 6:return b;case 2:g.push(y)}else if(s)return!1;return p?-1:a||s?s:g}}},function(t,n,r){var e=r(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n,r){var e=r(23),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(37),o=r(22),i=r(38);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=o(f.length),s=i(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n,r){"use strict";var e=r(4),o=r(20)(3);e(e.P+e.F*!r(16)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,r){var e=r(1),o=r(8),i=r(28),u=r(17)("src"),c=r(29),f="toString",a=(""+c).split(f);r(7).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var f="function"==typeof r;f&&(i(r,"name")||o(r,"name",n)),t[n]!==r&&(f&&(i(r,u)||o(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:o(t,n,r):(delete t[n],o(t,n,r)))})(Function.prototype,f,(function(){return"function"==typeof this&&this[u]||c.call(this)}))},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){t.exports=r(18)("native-function-to-string",Function.toString)},function(t,n){t.exports=!1},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(15);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(34);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(0),o=r(35),i=r(5)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)||(n=void 0),e(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},function(t,n,r){var e=r(14);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){"use strict";var e=r(4),o=r(24)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(u||!r(16)(i)),"Array",{indexOf:function(t){return u?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,n,r){var e=r(21),o=r(15);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(23),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=e(t))<0?o(t+n,0):i(t,n)}},function(t,n,r){"use strict";var e=r(4),o=r(20)(2);e(e.P+e.F*!r(16)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(4),o=r(41),i="includes";e(e.P+e.F*r(43)(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){var e=r(42),o=r(15);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(t))}},function(t,n,r){var e=r(0),o=r(14),i=r(5)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},function(t,n,r){var e=r(5)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,r){"use strict";var e=r(4),o=r(24)(!0);e(e.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r(45)("includes")},function(t,n,r){var e=r(5)("unscopables"),o=Array.prototype;null==o[e]&&r(8)(o,e,{}),t.exports=function(t){o[e][t]=!0}},,,function(t,n,r){"use strict";r.r(n);r(25),r(36),r(39),r(40),r(44),n.default=function(t){var n=t.type;return"api"===n?function(t){var n=t.type,r=t.w_rshd,e=void 0===r?{}:r,o=t.w_resp,i=void 0===o?"":o;if("api"!==n)return t;try{t.w_rshd=void 0,t.w_resp=void 0;var u=t.w_res||"";if(/\.(js|css|m3u8)$/.test(u))return!1;var c=(null==e?void 0:e["x-eagleeye-id"])||"";t.c1=c;var f=window.mtopConfig,a=f.prefix,s=f.mainDomain,p=[a,f.subDomain,s].filter(Boolean).join(".");if(new URL(u).host!==p)return t;var l=JSON.parse(i).ret[0];"string"!=typeof l||null!=l&&l.includes("SUCCESS")||(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return["FAIL_SYS_SESSION_EXPIRED","FAIL_SYS_TOKEN_EXOIRED","FAIL_SYS_TOKEN_EMPTY"].some((function(n){return t.indexOf(n)>-1}))}(l)||(t.w_rc=588),/^BIZ_/i.test(l)&&(t.w_rc=200),t.msg=l)}catch(t){}return t}(t):"jserr"===n?function(t){var n=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((function(n){return t.indexOf(n)>-1}))},r=t.type,e=t.w_msg,o=void 0===e?"":e,i=t.stack,u=void 0===i?"":i;if("jserr"!==r)return t;try{var c=n(o,["FAIL_SYS_TOKEN_EMPTY","FAIL_SYS_TOKEN_EXOIRED","FAIL_SYS_SESSION_EXPIRED","接口超时","接口异常退出","非法请求","用户未登录","ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications."]),f=n(u,["chrome-extension://","userscript.html","api.useinsider.com/ins.js","at setNativeValue (<anonymous>","account_health#agent=true&master=true&enable=true","Connection is closing."]),a=n(window.location.pathname,["/apps/holidaymode/index"]);if(c||f||a)return!1}catch(t){}return t}(t):t}}]).default}));!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["wpk-fsp-report"]=t():e["wpk-fsp-report"]=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=46)}({46:function(e,t,n){"use strict";n.r(t);var i=n(6),o=n.n(i),r=!1;t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=window.__itrace;r||(r=!0,null!=t&&t.isReady()&&(null===o.a||void 0===o.a||o.a.on((function(n){if(window.__lzd_fsp_done=!0,null!=t&&t.report){var i=Math.floor(n)-Math.floor(window.preLoadTime||0);if(i>0&&i<2e4){var o={category:e.category||200,msg:e.msg||"自定义首屏",wl_avgv1:i,c1:i,c2:n,c3:window.preLoadTime||"-"};t.report(o);var r=(window.lzdItraceLifeCircle||{}).lzdItraceShareFspTime;"function"==typeof r&&r({fspTime:i,preLoadTime:window.preLoadTime,url:location.href})}else{var a=i<0?"负值":"极大值 (>20s)",l={category:e.category||200,msg:"".concat(a),c1:i,c2:n,c3:window.preLoadTime||"-"};t.report(l)}}}))))}},6:function(e,t,n){!function(){var t,n=function(){},i=n,o=null,r={version:"20220310",listeners:[],on:function(e){-1===this.listeners.indexOf(e)&&this.listeners.push(e)},un:function(e){if(e){var t=this.listeners.indexOf(e);this.listeners.splice(t,1)}},forceStop:function(){i()},_fn:function(e,t,n){for(var i in this.listeners)(0,this.listeners[i])(e,t,n);this.listeners=[]},lazy:function(){o||T()}};if("undefined"==typeof window||"undefined"==typeof performance||"undefined"==typeof MutationObserver)e.exports={on:n,un:n,forceStop:n};else{var a=!1;window._jstrackerFSP?r.listeners=window._jstrackerFSP.listeners:(window._jstrackerFSP=r,a=!0);var l=window._t2Frames=[],u=screen.width*screen.height,c=3e4,f=3e3,s=200,d=1,h=null,m=!1,p=!1,g=["SCRIPT","LINK","SVG","IMG","VIDEO"],v=[];var w=new MutationObserver((function(e){var t=[],n=[];z(e,(function(e){z(e.addedNodes,(function(e){1!==e.nodeType&&9!==e.nodeType||t.push(e)}))})),t.length+n.length>0&&S(t.concat(n))})),y={childList:!0,subtree:!0};function T(){a&&(w.observe(document.firstElementChild,y),v=[],z(document.querySelectorAll("[ignoreFspCollection]"),(function(e){v.push(e)})),S(document.querySelectorAll("BODY > *")),o=setTimeout((function(){b(!0)}),c))}function b(e){m||(p=!0,h&&clearTimeout(h),w.disconnect(),w.takeRecords(),v=[],setTimeout((function(){m=!0,L()}),1e3))}function M(e,t){var n=0===l.length,i=screen.width,o=screen.height,r=e.left+e.width,a=e.top+e.height,u=Math.round(.02*Math.min(screen.width,screen.height)),c=Math.round(.05*o);return n?(u=.02*Math.min(i,o),e.width>=t||e.height>=t?u:r>=u&&i-e.left>=u&&a>=c&&o-e.top>=c):e.width>=u&&e.height>=u&&r>=c&&i-e.left>=c&&a>=c&&o-e.top>2*c}function x(e,t,n){var i=n||0;return z(e,(function(e){i=t(e,i)})),i}function _(e){var t=function(){e.lastTime=Math.max(k(),e.lastTime),e.c=document.getElementsByTagName("*").length,j()};window.requestAnimationFrame?requestAnimationFrame(t):setTimeout(t,0)}function S(e){var t=k(),n={createTime:t,lastTime:t,wait:0,piece:[],v:0,c:document.getElementsByTagName("*").length};z(e,(function(e){(function(e){for(var t=v.length,n=null,i=0;i<t;i++)if((n=v[i])&&n.contains&&n.contains(e))return!0;return!!e.hasAttribute("ignoreFspCollection")&&(v.push(e),!0)})(e)||function(e,t,n){var i=e.piece,o=document.documentElement.scrollTop||window.pageYOffset||document.body&&document.body.scrollTop||0,r=document.documentElement.scrollLeft||window.pageXOffset||document.body&&document.body.scrollLeft||0,a=n?null:t.getBoundingClientRect(),l=n||{type:0,className:O(t),top:a.top+o,left:a.left+r,width:a.width,height:a.height},c=t.offsetParent;c&&c.offsetWidth<c.scrollWidth&&(l.width=Math.min(c.offsetWidth,l.width)),c&&c.offsetHeight<c.scrollHeight&&(l.height=Math.min(c.offsetHeight,l.height));var f=t.tagName;if(-1!==g.indexOf(f.toUpperCase())&&"IMG"===f){var s=0;l.width=Math.max(l.width,1),l.height=Math.max(l.height,1),l.type=1,M(l)&&(e.wait+=1,t.addEventListener("load",(function n(){if(m)t.removeEventListener("load",n,!0);else{s++,e.wait-=1;var i=t.getBoundingClientRect(),o=k();M(l,!0)&&(s<=1||o<=1e3)?(l.width=i.width,l.height=i.height,e.lastTime=Math.max(o,e.lastTime),l.size=i.width*i.height,l.v=l.size/u,e.v=x(e.piece,(function(e,t){return e.v+t}),0),_(e)):j()}}),!0),t.addEventListener("error",(function n(){m?t.removeEventListener("error",n,!0):(e.wait-=1,M(l)?(e.lastTime=Math.max(k(),e.lastTime),0===e.wait&&(e.v=x(e.piece,(function(e,t){return e.v+t}),0),_(e))):j())}),!0))}var d={};if(window.getComputedStyle&&("none"===(d=window.getComputedStyle(t,null)).display||"fixed"===d.position))return i;if(M(l)){var h=d.backgroundImage||"",p=/url\(['"]?(.*?)['"]?\)/i;if(p.test(h)&&(h=h.replace(p,"$1"),!/^data:/i.test(h))){e.wait+=1;var v=document.createElement("img");v.onload=function(){e.wait-=1,e.lastTime=Math.max(k(),e.lastTime),0===e.wait&&_(e)},v.src=h}(function(e,t){var n=null;for(var i in e)if(n=e[i],t.top>=n.top&&t.left>=n.left&&t.top+t.height<=n.top+n.height&&t.left+t.width<=n.left+n.width)return!0;return!1})(i,l)||(l.size=l.width*l.height,l.v=l.size/u,e.v+=l.v,l.size&&i.push(l))}}(n,e)})),n.piece.length>0&&(l.push(n),_(n))}function O(e){if(!d)return"";var t=[],n=e;do{t.push(n.tagName+"."+n.className),n=n.parentElement}while(n&&n!==document.body);return t.reverse().join(" > ")}function j(){if(!p&&!m){h&&clearTimeout(h),h=setTimeout((function(){b()}),f);for(var e=null,t=null,n=0,i=0,o=0,r=0,a=0,u=l.length-1;u>1;u--){if(e=l[u],t=l[u-1],r=Math.floor(100*e.v)/100,i=(a=Math.floor(100*t.v)/100)?Math.abs(r-a)/a:0,(o+=Math.min(e.v,1))>10){b();break}if(i<.5){if(++n>6){b();break}}else n>0&&(n=0)}}}document&&((t=document.querySelector("meta[name=jstracker-lazy-sfsp]"))&&"true"===t.getAttribute("content")||T());var E=0;function L(){if(0!==l.length){var e=[],t=[],n=[],i=-1,o=0,a=0,u=0;for(u=function(e,t=.1,n=3){let i=e.length-1,o=0;do{const n=e[i],r=e[i-1];if(!(Math.abs(n-r)/n<t))break;o++,i--}while(i>0);return o>=n&&i>0?Math.min(i,e.length-1):e.length-1}(l.map((function(e){return Math.floor(100*e.v)/100}))),t=u>0?l.slice(0,u+1):l;t.length>0;)if(i=t[0].lastTime,o=t[0].c,n=[],a=0,u=0,z(t,(function(e){a+=e.v,u++,e.createTime<=i+s&&(i=Math.max(i,e.lastTime),o=Math.max(o,e.c)),e.lastTime>i&&n.push(e)})),t=n,a<.02||a/u<.01?E++:E=0,e.push([i,o]),E>=3){e.splice(e.length-3),b();break}var c=e.length-1;0!==E&&(c=Math.max(c-E,0));var f=c===e.length?-3:c-1;f<=0&&(f=0),e[c]?r._fn(e[c][0],e.slice(f,f+3),e[c][1]):r._fn(null,null,null)}}function k(){return performance.now()}function z(e,t){if(Array.prototype.forEach)Array.prototype.forEach.call(e,t);else for(var n=e.length,i=0;i<n;i++)t(e[i],i)}i=L,e.exports=r}}()}}).default}));