/*agent_version=3.3.5*/function _defineproperty(t,e,n){return e in t?object.defineproperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":typeof t})(t)}window.tingyun=function(t,e){if(/(msie [0-8].\d+)/.test(navigator.useragent)){return ;}function n(t){var e=!!t&&"length"in t&&t.length,n=_typeof(t);return"function"===n?!1:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function r(t,e,r){var a,i=0;if(t)if(n(t))for(a=t.length;a>i&&e.call(t[i],t[i],i)!==!1;i++);else for(i in t)if((r||object.prototype.hasownproperty.call(t,i))&&e.call(t[i],t[i],i)===!1)break;return t}function a(t){var e=!1;try{/\{\s+\[native code\]/.test(function.prototype.tostring.call(t))&&(e=!0)}catch(n){}return e}function i(t){return json.parse(t)}function o(t){return json.stringify(t)}function s(t){return function(e){return"array"===t&&array.isarray?array.isarray(e):object.prototype.tostring.call(e)==="[object "+t+"]"}}function c(t){return new function("return "+t)()}function u(t){switch(_typeof(t)){case"object":if(!t)return null;if(t instanceof array){var e=gi.call(t);return r(e,function(t,n){e[n]=u(t)}),"["+e.join(",")+"]"}if(t instanceof date)return t.gettime().tostring();var n="";return r(t,function(t,e){ji(t)||(n+=u(e)+":"+u(t)+",")}),n&&(n=n.substr(0,n.length-1)),"{"+n+"}";case"string":return yi+t.replace(zi,"\\$1").replace(ji,"\\n")+yi;case"number":return isnan(t)?null:t;case"boolean":return t;case"function":return u(t.tostring());case"undefined":default:return'"undefined"'}}function l(){var t=wi&&wi.stringify;if(!ji(t)||!a(t))return!1;var e=!0;try{var n=[boolean,number,string,object,array];r(n,function(t){return t.prototype.tojson?(e=!1,!1):void 0})}catch(i){}return e}function f(){var t=wi&&wi.stringify;return ji(t)&&a(t)}function d(){ri=f()?i:c,di=l()?o:u}function p(t){return t&&li(t)?ri(t):t}function h(t,e,n,r){return t.addeventlistener(e,n,r)}function m(t,e,n){return t.attachevent("on"+e,n)}function v(t,e){return function.prototype.apply.apply(t,e)}function g(t,e){return function(){return t.apply(e,arguments)}}function y(t){return vi?vi(t):t}function _(t){var e=arguments.length;if(2>e||!t)return t;var n=gi.call(arguments,1);return r(n,function(e){r(e,function(e,n){t[n]=e})}),t}function x(t,e){for(var n=-1,r=0,a=null==t?0:t.length,i=[];++n>>0;if(0===i)return-1;var o=+n||0;if(math.abs(o)===1/0&&(o=0),o>=i)return-1;for(r=math.max(o>=0?o:i-math.abs(o),0);i>r;){if(r in a&&a[r]===e)return r;r++}return-1}function t(t,e){var n=null==t?0:t.length;if(!n)return-1;for(var r=n;r--;)if(t[r]===e)return r;return r}function s(t){return settimeout(t,0)}function a(t){return settimeout(t,0,{__ty_ignore:!0})}function w(){}function c(){var t=window&&window.performance;return t&&t.timing&&t.timing.navigationstart&&t.now?math.round(t.timing.navigationstart+t.now()):+new date}function k(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}function o(t){return t?li(t)?t.length:e.arraybuffer&&t instanceof arraybuffer?t.bytelength:e.blob&&t instanceof blob?t.size:t.length?t.length:0:0}function n(){this.events={}}function i(t,e){return settimeout(t,e||0,{__ty_ignore:!0})}function p(t,e){au[t]=e}function r(t){t=t||{},this._contexts=t.contexts||null,this._name=t.name}function d(){wu.scope||(wu.scope=new r({name:"root"}))}function l(){d(),wu.scope.setcontext.apply(wu.scope,arguments)}function h(){d(),wu.scope.setextracontext.apply(wu.scope,arguments)}function j(t,e,n){if(t&&e){n||(n="scope");var r=e?e.getdata():null;return r&&(t[n]=r),t}}function q(t,e,n){return n||(e===rc?n=qc:e===dc&&(n=mc)),"".concat(t,"_").concat(e||iu,"_").concat(n||pu)}function m(t){if(t&&qi(t)){var n=t.type,r=t.name,a=t.handler,i=t.options;if(!(null==nu[n]||r&&e(nu[n],r)<0||!ji(a)||i&&!qi(i))){var o=q(n,r,i&&i.position);ru[o]||(ru[o]=[]),ru[o].push(t),n===wc&&(r===ic&&e.tingyun&&e.tingyun.inited&&y({type:wc,name:ic}),r===pc&&wu.pageloadeventend&&y({type:wc,name:pc}))}}}function b(t,e){m({type:wc,name:t,handler:e})}function u(t,e,n){m({type:cc,name:t,handler:e,options:n})}function f(t,e){m({type:kc,name:t,handler:e})}function g(t){m({type:oc,handler:t})}function y(t){var e=t.type,n=t.name,a=t.hookpostion,i=t.args,o=q(e,n,a),s={exist:!1,results:[]};if(ru[o]){s.exist=!0;var c=t.scope;c||(c=new r);try{r(ru[o],function(t){var e=t.handler,n=t.options;n=n||{};var r=_(i||{},{scope:c}),a=e.call(c,r);s.results.push(a)})}catch(u){}}return s}function z(t,e){return nu[t]&&e(nu[t],e)>-1}function j(t){function e(){}return e.prototype=t,new e}function w(t){v(),uu=t||{},fu=du(uu),_(fu,{isgather:!1,fp_threshold:_u,fs_threshold:xu,dr_threshold:bu,trace_threshold:eu,pvid:qi(),ref:hu.url,referrer:hu.referrer,v:"3.3.5",av:"3.3.5",ua:(mu||{}).useragent,baseinfo:{}}),zu={pvid:fu.pvid,ref:fu.ref,referrer:fu.referrer,v:fu.v,av:fu.av,ua:fu.ua}}function k(t){_(zu,t)}function v(){fu={},uu={}}function x(){return e.navigator.useragent.substring(0,256)}function $(){return wu}function q(){return e.webkit&&e.webkit.messagehandlers&&e.webkit.messagehandlers.nbsbrowseragent&&e.webkit.messagehandlers.nbsbrowseragent.postmessage}function z(t){return li(t)||(t=di(t)),t}function tt(t,e){e=e||w;var n=new image;ki(n,ao,function(){("loaded"==n.readystate||4==n.readystate)&&e(null)},!1),ki(n,to,function(){e(null)},!1),ki(n,zi,function(){e(zi)},!1),n.src=t}function et(t,e){var n=t.url,r=t.data,a=(t.header,t.callback),i=t.method,o=t.timeout,s=k(a),c=new xdomainrequest;c[fo]=!0,i=i||vu,c.open(i,n),c.onload=function(){s(c.responsetext),e()},c.onerror=function(t){s(t),e()},o&&(c.timeout=o),ku(function(){i===vu?c.send(z(r)):c.send()})}function nt(t,e){var n=t.url,r=t.data,a=t.header,i=t.callback,o=t.method,s=t.timeout,c=k(i),u=new ju;u[fo]=!0,u.overridemimetype&&u.overridemimetype("text/html"),s&&(u.timeout=s),u.onreadystatechange=function(){4==u.readystate&&(c(u.responsetext),e())},u.onerror=function(){c(),e()};try{o=o||vu,u.open(o,n,!0);for(var l in a)u.setrequestheader(l,a[l]);o===vu?u.send(z(r)):u.send()}catch(f){e()}}function rt(t,e){var n=t.url,r=t.data,a=(t.header,t.callback),i=mu.sendbeacon(n,z(r));i&&(a&&a(),e())}function at(t,n){var r=t.url,a=t.data,i=t.callback,o={url:r,header:{"content-type":"text/plain;charset=utf-8"},body:z(a)},s={type:0,params:{ri:o}},c=z(s);try{e.webkit.messagehandlers.nbsbrowseragent.postmessage(c)}catch(u){}i&&i(),n()}function it(t){this.size=t||100,this.queue=[],this.running=!1}function ot(){vu=ku=nt,xu=!1,yu.initiator=ou}function st(t){ou=new it(t)}function ct(t){ou.add(t)}function ut(){var t=this;t.xhrs={},t.errs=[],n.call(t)}function lt(){var t="";try{t=e.location.protocol}catch(n){}return e(sl,t)<0&&(t=ol),t}function ft(t){if(!t)return null;var e=t.indexof(":");return e>-1&&(t=t.substring(0,e)),t}function dt(t){ht(t,cl)}function pt(t){ht(t,ul)}function ht(t,e){var n="ok";return t?void e.push(t):n=e.length?e.join("\n"):n}function mt(t){try{return p(t)}catch(e){dt(e&&e.message)}return null}function vt(t,e,n){if(null==t[e]||hi(t[e]))hi(t[e])?t[e].push(n):t[e]=n;else{var r=t[e];t[e]=[r],t[e].push(n)}}function gt(t){return t.send_protocol?t.send_protocol:t.pageprotocol!==il&&/^https/i.test(t.pageprotocol)?ol:il}function yt(t){if(!t||!li(t))return"";var e,n=t.indexof("?");return n>=0&&(e=t.substring(n+1)),e}function _t(t){var e=yt(t),n=tt(e);return{queryobj:n,querystring:e}}function xt(t){var e=yt(t);return tt(e)}function bt(t){return t&&t.indexof("?")&&t.lastindexof("=")&&t.lastindexof("=")>t.indexof("?")?xt(t):{}}function et(t){var e={};return t=t||"",li(t)&&t?e=tt(t):e}function tt(t){var e={};return t&&r(t.split("&"),function(t){var n=t.split("="),r=st(n[0]),a=st(n[1]);if(li(a)&&window.isnan(a)){var i=mt(a);null!=i&&(a=i)}r&&null!=a&&vt(e,r,a)}),e}function st(t){try{return decodeuricomponent(t)}catch(e){}return null}function at(t){var e=[];return r(t,function(t,n){var r=y(n)+"="+y(t);e.push(r)}),e.join("&")}function wt(t,e){var n=at(e);return t+=(t.indexof("?")>0?"&":"?")+n}function ct(t,e){return e?el+"//"+t:t}function kt(t){el=gt(t)}function ot(){e.tingyun_release&&e.tingyun_release.id&&(fu.releaseid=e.tingyun_release.id)}function nt(t){t[0]&&(zu.sid=t[0]),t[1]&&(zu.__s=+t[1])}function it(){delete zu.sid,delete zu.__s}function pt(){return fu.sessionmode==xc}function rt(){var t=nl(fs);return t?t.split(zs):null}function dt(t){t&&3===t.length&&rl(fs,t.join(zs))}function lt(){var t=ht();nt(t)}function ht(){var t=c(),e=[qi(),t,t];return dt(e),e}function jt(){var t=c(),e=rt();qt(e)?lt():(e[2]=t,dt(e))}function qt(t){return!t||3!==t.length||c()-+t[2]>ys}function mt(){var t=nl(gs);return t?t:rl(gs,qi())}function bt(){return e.tingyun&&e.tingyun.uid?e.tingyun.uid:nl(us)}function ut(t,n){if(null!=t){var r=bt();null!=r&&t!==r&<(),e.tingyun.uid=t,n&&n.nostore||rl(us,t)}}function ft(t){null!=t&&rl(gs,t)}function gt(){var t={did:mt()},e=bt();return e&&(t.uid=e),t}function yt(t){var e=!0;if(t.beacon_config&&qi(t.beacon_config)){var n=ft(t.pageprotocol),r=n&&t.beacon_config[n];r&&(t.beacon=r,e=!1)}t.relativebeaconprotocol=e}function zt(t){var n=gt(),r=_({url:e.location.href},zu,n,t||{},fu.baseinfo,zu||{});return ot(),fu.releaseid&&(r.rid=fu.releaseid),r}function jt(t){var e=wt();return t=zt(t),{beacon:e,query:t}}function wt(){return ct(fu.beacon,fu.relativebeaconprotocol)}function kt(t){var e=t.beacon,n=t.path,r=t.query;return wt("".concat(e).concat(n),r)}function vt(t,e){var n=!1;return r(t,function(t){var r=e.call(this,t);return r?(n=!0,!1):!0}),n}function xt(){return j({type:io,optcustomparam:wu.opt_custom_param,info:yu},wu.scope)}function $t(t,e){if(t){pt()&&jt(),e=e||{};var n=e.requestinfo;n||(n=jt()),_(n.query,e.query||{},{ps:e.crosspage||t.type===ho&&t.subtype===bo?1:0,__r:c()}),n.path="/action";var a=[e.commonactioninfomessage?e.commonactioninfomessage:xt(),t];n.data=a;var i=y({type:oc,args:n,scope:wu.scope});if(!i.exist||!vt(i.results,function(t){return t===!1})){ll&&(ll=!1,d());try{var o=[];r(n.data,function(t){var e=qt(t);e&&o.push(e+di(t))});var s=o.join("\n"),c=kt(n);qu.emit("send",c,s,function(){e.cb&&e.cb.call(null,t)})}catch(u){}}}}function qt(t){var e="";return e=t.type===io?wo:t.type===po?fo:t.type===ro?go:t.type===lo?zo:t.type===do?yo:t.type===ho?jo:t.type===qo?ko:t.type===eu?nu:t.type}function zt(t,e){var n;return t&&(n=!0,r(t,function(){return n=!1},e)),!!n}function te(){var t={};return r(pl,function(e){t[e]={current:0,children:0}}),t}function ee(t,e){r(t,function(t){t.cid===e.id&&(t.items=e.items||[])})}function ne(t,e){r(t,function(t){r(e,function(e){t.cid===e.id&&(t.state||(t.state=e.state),t.items=e.items||[])})}),r(e,function(t){ne(t.items,t.children)})}function re(t){t=t||{},this.id=++wu.uniqueid,this.parent=t.parent||null,this.children=[],this.name=t.name||"",this.type=t.type||po,this.subtype=this.type===po?t.subtype||"click":t.subtype,this.items=[],this.remain=te(),this.s=t.s||c(),this.e=null,this.data=t.data,this.state=xo,this.crosspage=t.crosspage||!1,this.callback=t.callback||{},this.endlock=t.endlock,this.registertimeout(),this.closed=!1,this.istimeout=!1,this.cleared=!1,this.statechanged=!1,this.actioncount={ajax:this.type===ro?1:0,iframe:this.type===lo?1:0},this.sent=!1,this.sendoptions={},this.spebinded=!1,this.spe=null,this.waitingspeend=!1,this.waitingspetimer=null,null!=this.parent&&this.parent.children.push(this),this.eventdata=null,this.resource={handler:{},loaded:{},srcs:{}},this._ctx={}}function ae(t){nt([t.id,t.starttime]),hl=t}function ie(t,e,n){if(!pt()){var r={id:t||qi(),starttime:c()};return li(e)&&(r.name=e),fu.session_handler&&fu.session_handler.create&&fu.session_handler.create.call(this,r),ae(r),ce(qc,n),r}}function oe(t,e){pt()||(fu.session_handler&&fu.session_handler.end&&(!t&&hl&&(t=hl.id),fu.session_handler.end.call(this,t)),ce(tu,e),it(),hl=null)}function se(t){pt()||hl&&qi(t)&&ce(zc,t)}function ce(t,e){if(hl){var n=hl,r=n.id,a=n.starttime,i=n.name,o={type:$c,id:r,time:c(),starttime:a};i&&(o.name=i),e&&(o.scope={contexts:e}),re.buildimmediateaction($c,t,o)}}function ue(){if(fu.session_handler&&fu.session_handler.init){var t;try{t=fu.session_handler.init.call(null)}catch(e){}t&&ae(t)}}function le(t){var e={},n={},r=_t(t),a=r.queryobj,i=r.querystring;return a&&(e=fe(a,fu.requestparamkeys[mo],fu.requestparamkeys[vo]),n[go]=me(a,fu.optcustomparamrules[go],!0)),{requestparams:e,optcustomparams:he(n),operaallparam:i}}function fe(t,e,n){var a={};return t&&e&&e.length&&e.length>0&&r(e,function(e){var n=t[e];null!=n&&vt(a,e,n)}),t&&n&&n.length&&n.length>0&&r(n,function(e){var n=de(eo,e),r=n(t);null!=r&&vt(a,e,r)}),a}function de(t,e){var n=t+"."+e;if(vl[n])return vl[n];var a=(e||"").split("."),i="";e&&0!==e.indexof("[")&&(i=".");var o=t;r(a,function(t,e){0===e&&(o+=i),o+=t.indexof("-")>-1&&0!==t.indexof("[")&&t.indexof("]")!==t.length-1?"['"+t+"']":(e>0?".":"")+t});var s;try{s=new function(t,"try{return "+o+";}catch(e){}return null;")}catch(c){s=w}return vl[n]=s,s}function pe(t){return t+="",t&&t.substr(0,128)||""}function he(t){var e={};return r(t,function(t,n){zt(t)||(e[n]=t)}),e}function me(t,e,n){var a={};return t&&e&&e.length&&e.length>0&&r(e,function(e){var r=t[e];if(null!=r)vt(a,e,r);else if(n){var i=de(eo,e);r=i(t),null!=r&&vt(a,e,r)}}),a}function ve(t){gl&&t()}function ge(t){return function(){gl&&t.apply(this,arguments)}}function ye(){gl=!1}function _e(t){return t.loadeventend||t._end}function xe(e){var n=e.performance||{},r=n.timing,a=r&&r.navigationstart?r.navigationstart:t;return{performance:n,timing:r,starttime:a}}function be(t,n){var a=xe(n),i=a.performance,o=a.timing,s=a.starttime,c=0;if(su[bc]&&su[bc]>0?(c=su[bc],t.__fp=xl):i.getentriesbyname&&o?(c=o.domloading,r(su.resources,function(t){var e=i.getentriesbyname(t);if(1===e.length){var n=e[0].responseend;n>c&&(c=n)}}),c-=s,t.__fp=tl):e.tingyun&&e.tingyun[sc]&&(c=e.tingyun[sc]-s,0>c&&(c=0),t.__fp=sl),!c||0>=c){if(n.chrome&&n.chrome.loadtimes){var u=n.chrome.loadtimes();u&&u.firstpainttime&&(c=1e3*u.firstpainttime-s,t.__fp=bl)}else o&&o.msfirstpaint&&(c=o.msfirstpaint-s,t.__fp=el);(!c||0>=c)&&(c=0,t.__fp=_l)}return math.round(c)}function ee(t,n){var a=xe(n),i=a.performance,o=a.timing,s=a.starttime,c=t.fp||0;if(t.__fs=nl,su[uc])c=su[uc],t.__fs=wl;else if(su.lcpstoptime)c=su.lcpstoptime-s,t.__fs=cl;else if(te()){var u=su.imageresources||[],l=e.innerheight,f=e.innerwidth;l||(l=hu.documentelement.clientheight),f||(f=hu.documentelement.clientwidth);var d=[];u.length>0?r(u,function(t){ae(t.element,l,f)&&d.push(t)}):ji(i.getentriesbyname)&&r(hu.queryselectorall("img"),function(t){ae(t,l,f)&&d.push({element:t})});var p=(o.loadeventend||qu.loadeventend)-s;r(d,function(e){if(e.loadtime){var n=e.loadtime-s;n>c&&(c=n,t.__fs=ol)}else if(e.element&&e.element.src){var r=i.getentriesbyname(e.element.src);if(r.length){var a=r[0],o=a.responseend;a.fetchstart<=p&&o>c&&(c=o,t.__fs=kl)}}})}return c<=t.fp&&(c=t.fp||0,t.__fs=nl,0>=c&&(c=0,t.__fs=al)),math.round(c)}function te(t){var e=!0,n=hu.createelement("img");return n.getboundingclientrect||(e=!1),e}function se(t){if(!t)return!1;if(!fu.fs_resources||0===fu.fs_resources.length)return!0;var e=!1;return r(fu.fs_resources,function(n){return t.indexof(n)>-1?(e=!0,!1):void 0}),e}function ae(t,e,n){return t.src&&se(t.src)&&we(ce(t),e,n)&&!ke(t)}function we(t,n,r){if(t){var a=e.pageyoffset,i=t.top+(0===a?0:a||hu.scrolltop||0)-(hu.clienttop||0);if(i>=n)return!1;var o=t.left;return o>=0&&r>o}return!1}function ce(t){if($())return ji(t.getboundingclientrect)?t.getboundingclientrect():void 0;var e;try{e=t.getboundingclientrect?t.getboundingclientrect():void 0}catch(n){}return e}function ke(t){return dl.reliablehiddenoffsets()?t.offsetwidth<=0&&t.offsetheight<=0&&!t.getclientrects().length:oe(t)}function oe(t){for(;t&&1===t.nodetype;){if("none"===ne(t)||"hidden"===t.type)return!0;t=t.parentnode}return!1}function ne(t){return t.style&&t.style.display}function ie(t,e){var n=xe(e),r=n.timing,a=n.starttime,i=0;r&&(i=r[rs]||r.dominteractive||r.domloading||i),0>=i?(qu.domcontentloadedeventstart?(i=qu.domcontentloadedeventstart,t.__dr=rl):(i=qu._end,t.__dr=dl),0>=i&&(t.__dr=il)):t.__dr=pl;var o=i-a;return 0>o&&(o=0),math.round(o)}function pe(e,n,r){e.loadeventend=e.le;var a=n.performance&&n.performance.timing||{},i=a.navigationstart||t,o=0;if(r&&r.haschildtype(ro))o=c()-i;else{var s=(a.loadeventend||qu.loadeventend)-i,c=[e.fs,e.dr,e.fp,s];o=math.max.apply(null,c)}return math.round(o)}function re(t,e){var n=t.fp||0,r=xe(e),a=r.starttime,i=c()-a-n;return 0>i&&(i=0),i}function de(e){function n(t){return o[t]>0?o[t]-s:0}var a={},i=e.performance||{},o=i.timing||{},s=e.tingyun&&e.tingyun.globalstart||t,c=e.tingyun&&e.tingyun.currentagent||qu;if(o){ve(function(){var t=yl.t={};r(o,function(e,n){ji(e)||(t[n]=e)},!0)}),s=o.navigationstart,a={ns:s,f:n(zo),qs:n(ts),rs:n(es),re:n(ns),os:n(rs),oe:n(as),oi:n(is),oc:n(os),ls:n(ss),le:n(cs),tus:n(us),tue:n(ls)};var u=n(fs),l=n(ds),f=n(ps),d=n(hs),p=n(ms),h=n(vs);if(a.cs=p,a.ce=h,a.ds=u,a.de=l,(d-f>0||d>0)&&(a.es=f,a.ee=d),0==a.le){var m=_e(c);a.ue=m-s}c&&(c._le=a.ue||a.le),o[gs]?a.sl=n(gs):a.sl=0}else a={t:s,le:_e(c)-s};return a.je=c&&c.errs&&c.errs.length||0,a}function le(t){if(!t)return{};var e=de(t);return e.fp=be(e,t),e.dr=ie(e,t),e.fs=ee(e,t),e.le=pe(e,t),he(e)}function he(t){var e={f:t.f,fp:t.fp,fs:t.fs,dr:t.dr,le:t.le,loadeventend:t.loadeventend,je:t.je,load:t.load};return _(e,wu.pageserverdata),wu.iframemetric=e,e}function je(){wu.enablelcpobserver=!1;try{r(wu.performanceobserver,function(t){t&&t.disconnect()})}catch(t){}}function qe(){su.lcpstoptime=c(),wu.enablelcpobserver=!1;try{var t=wu.performanceobserver[uc];t&&t.disconnect()}catch(e){}}function me(){var t=le(fu.ref);wu.pageurlinfo=t,wu.opt_custom_param=t.optcustomparams}function be(t,e,n){if(!n)try{n=e&&window[e]||hu.cookie||""}catch(r){}if(n){var a=n.match(new regexp("(^|;\\s*)("+t+")=([^;]*)"));return a?a[3]:null}return null}function ue(t,e,n,r,a){var i=t+"="+e;if(n){var o=new date;o.settime(o.gettime()+1e3*n),i+=";expires="+o.togmtstring()}r&&(i+=";path="+r),(a||hu).cookie=i}function fe(t){var e,n;if(t)if(0===t.indexof(co)){var r=t.substring(co.length);try{n=hl.decode(r),e=mt(n)}catch(a){}}else{try{n=decodeuricomponent(t),e=mt(n)}catch(a){}if(!e)try{n=decodeuricomponent(n),e=mt(n)}catch(a){dt(a&&a.message)}}return e}function ge(){if(!fu.pageserverdata){var t=ye(),e={};t&&qi(t)&&(e.s_id=t.id,e.s_tname=t.tname,e.s_tid=t.tid,e.s_rid=t.rid,e.s_duration=t.duration,"user"in t&&(e.s_user=t.user,ut(t.user)),"bid"in t&&(e.s_bid=pe(t.bid)),"ber"in t&&(e.s_ber=t.ber),"iserror"in t&&(e.s_iserror=t.iserror)),fu.pageserverdata=e}}function ye(){var t={},e=be(so,to);return e&&(t=fe(e),ue(so,"",-1e3,"/")),t}function ze(t){var e={};if(t){var n=[xc,bc,ec,tc,sc];r(t.split(""),function(t,r){e[n[r]]="1"===t})}return e}function je(t){var e={};return r(t,function(t){t&&e(e[t.type]||[],t.key)<0&&(e[t.type]=e[t.type]||[]).push(t.key)}),e}function we(t){return ve(t,!0)}function ke(t,e){return t in fu&&fu[t]>0?fu[t]:e}function ve(t,e){return t in fu?1==fu[t]:e}function xe(t,e){return t in fu?fu[t]:e}function $e(t){w(t),_(fu,{requestparamkeys:je(fu.request_param_keys),optcustomparamrules:je(fu.opt_custom_param_rule),corsdomains:xe("cors_domains",[]),ignorenofileproperror:we("ignore_err"),debuggable:we("debug"),sessiontimeout:ke("session_timeout",ys),collectallparam:ze(fu.collect_all_param),routerenable:we("router_enable"),hook_auto_event:we("hook_auto_event"),hook_timer:we("hook_timer"),hook_iframe:we("hook_iframe"),hook_cross_page:we("hook_cross_page"),hook_inline_event:we("hook_inline_event"),inline_event_associate_threshold:ke("inline_event_associate_threshold",bs),script_event_associate_threshold:ke("script_event_associate_threshold",ac),spametricenable:we("spa_metric_enable"),lcpenable:we("lcp_enable"),pageloaddelay:ke("page_load_delay",gc),resourcewaittime:ke("resource_wait_time",yc),resourceassociatethreshold:ke("resource_associate_threshold",zc),eventresources:xe("event_resources",[]),eventresourcesignore:xe("event_resources_ignore",[]),fs_resources:xe("fs_resources",[]),sessionmode:xe("session_mode",xc),exposeoriginerror:we("expose_origin_error"),ajaxblacklist:xe("ajax_blacklist",[]),eventtimeout:ke("event_timeout",no),configload:ve("config_load",!1),configloaduri:xe("config_load_uri",hu),configloadinterval:ke("config_load_interval",du),configloadtimeout:ke("config_load_timeout",pu),console_debug:ve("console_debug",!1),set_timeout_max_depth:ke("set_timeout_max_depth",ys),mpaas_rpc:we("mpaas_rpc"),mpaas_rpc_api:xe("mpaas_rpc_api",gu),req_capacity:ke("req_capacity",yu),x_server_switch:we("x_server_switch"),collect_noajax_hashroute:ve("collect_noajax_hashroute",!1),upload_timeout_ajax:ve("upload_timeout_ajax",!1),hook_xhr_setrequestheader:ve("hook_xhr_setrequestheader",!0),router_event_delay:ke("router_event_delay",cc),monitor_dom_mutation:ve("monitor_dom_mutation",!0)});var n=fu.apm_headers||[];fu.apm_arms&&e(fu.apm_headers,nc)<0&&n.push(nc),fu.apmheaders=n,r(fu.corsdomains,function(t){return"*"===t?(fu.apmenableallcorsdomains=!0,!1):!0}),r(jl,function(t){uu[t]&&(fu.baseinfo[t]=uu[t],e[uo][t]=uu[t])});try{fu.basehref=(document.getelementsbytagname("base")[0]||{}).href}catch(a){}}function qe(){if(fu.appkey&&!q()&&ot(),fu.pageprotocol=lt(),kt(fu),yt(fu),k(gt()),pt()){var t=rt();qt(t)&&(t=ht()),nt(t)}else ue();ge(),ot(),me()}function ze(){return fu}function tn(t){function e(t,e,r){var a=r||"log",i=n[t]||(n[t]={});i[a]=i[a]||"",i[a]+=e}var n={},a=dt();if(e("status",a,"ok"!==a),e("debug",pt()),r(ql,function(t,n){e("timeline",n+": "+t.tostring())}),!t&&ml)console.log("[tingyun agent diagnosis]\n"),r(n,function(t,e){var n=console[e];r(n,function(t,e){console[e](t)})});else{if(t!==lo)return di(n);qu.href=qu.href+"#"+di(n)}}function en(t,e,n){t&&t.context&&t.context.parent&&(t.pcid=t.context.parent.id,t.context.parent.updateremain(1,e),t.context.parent.items.push(t.context.data),n&&t.context.parent.children.push(t.context))}function nn(t){if(!t)return!1;var e=fu.eventresources.length>0,n=fu.eventresourcesignore.length>0;return e&&n?rn(t)&&an(t):e?rn(t):n?an(t):!0}function rn(t){var e=!1;return r(fu.eventresources,function(n){return t.indexof(n)>-1?(e=!0,!1):void 0}),e}function an(t){var e=!0;return r(fu.eventresourcesignore,function(n){return t.indexof(n)>-1?(e=!1,!1):void 0}),e}function on(t){return t&&(t.type===ho||t.type===po&&t.subtype!==os)}function sn(t){var e=bl.indexof(t.nodename)>-1&&nn(t.src)&&!ke(t);if(e){var n=wu.recentfinishedajaxcontext;if(n&&n.data){var a=c()-n.data.end;if(a<=fu.resourceassociatethreshold){var i=re.getrootcontext(n,function(t){return t.type===ho||t.type===po&&!t.subtype===os});i&&i.addresource(t)}}}r(t.childnodes,sn)}function cn(){if(fu.spametricenable&&ji(window.mutationobserver)){var t=document.getelementsbytagname("body"),e=t&&t[0];if(e){var n={childlist:!0,subtree:!0},a=function(t){r(t,function(t){r(t.addednodes,sn)})};try{ml=new mutationobserver(a),ml.observe(e,n)}catch(i){}}}}function un(){var t=hu.getelementsbytagname("img");r(t,function(t){t.complete||t[ic]||(t[ic]=!0,ki(t,to,function(){su.imageresources.push({loadtime:c(),element:t})}))})}function ln(t){var e=hu.createelement("script");e.type="text/javascript";try{e.appendchild(hu.createtextnode(t))}catch(n){e.text=t}hu.getelementsbytagname("head")[0].appendchild(e)}function fn(){function t(t){try{var e=t.getentries();e&&r(e,function(t){t.entrytype===uc&&wu.enablelcpobserver?su[uc]=t.rendertime||t.loadtime:t.entrytype===bc&&t.name===fc&&(su[bc]=t.starttime)})}catch(n){}}if(e.performanceobserver){var n=[bc];fu.lcpenable&&n.push(uc);var a=[],i=e.performanceobserver.supportedentrytypes||[];if(r(n,function(t){i.indexof(t)>-1&&a.push(t)}),ve(function(){yl.et=a}),0!=a.length)try{r(a,function(n){wu.performanceobserver[n]=new e.performanceobserver(t),wu.performanceobserver[n].observe({type:n,buffered:!0})})}catch(o){}}}function dn(t){fn(),gl.on(to,k(function(){n();var e=c();ve(function(){yl.load=e}),t.loadeventend=e,clearinterval(fl)})),r([to,eo,no,ro],function(t){ki(e,t,function(e){ve(function(){(yl.e[t]||(yl.e[t]=[])).push(c())}),gl.emit(t,e)})});var n=k(function(){fu.monitor_dom_mutation&&cn();var n=c();if(ve(function(){yl.end=n}),t.domcontentloadedeventstart=n,$()&&e.performance&&e.performance.getentriesbyname){if(!hu.queryselectorall)return;su.resources=su.resources||[],r(hu.queryselectorall("head>link,head>script"),function(t){var e;"link"==t.tagname?e=t.href:"script"!=t.tagname||t.defer||t.async||(e=t.src),e&&su.resources.push(e)})}});if($()&&ki(hu,oo,n),ki(hu,ao,function(t){hu.readystate===io&&n()}),(!$()||e.performance&&!e.performance.getentriesbyname)&&(fl=setinterval(un,oc)),!$())try{ln("if(window.tingyun) {window.tingyun.".concat(sc,"=+new date();}"))}catch(a){}}function pn(t){return ul.call(t)}function hn(t){var e={},n=t.split(":");if(!n)return e;if(1===n.length)e.filename=n[0],e.lineno=0,e.colno=0,e.resolvelevel=ru;else if(n.length>=2){var r,a=n[n.length-1],i=n[n.length-2],o=!isnan(+a),s=!isnan(+i);o&&s?(r=2,e.lineno=+i,e.colno=+a,e.resolvelevel=iu):o?(r=1,e.lineno=+a,e.colno=0,e.resolvelevel=au):(r=0,e.lineno=0,e.colno=0,e.resolvelevel=ru),e.filename=(n.slice(0,n.length-r)||[]).join(":")}return e}function mn(t){if(t&&(t=pn(t))){var e;if(0===t.indexof("at ")){var n=t.indexof("("),r=t.indexof(")");if(n&&r){var a=n+1;a>r&&(a=r);var i=t.substring(a,r);i&&(e=hn(i))}}else if(t.indexof("@")>-1){var o=t.split("@");o[1]&&(e=hn(o[1]))}return e}}function vn(t){this.limit=t,this.reset()}function gn(t,e,n,r,a){return string(t)+string(e)+string(n)+string(r)+string(a)}function yn(t,e,n,r){return string(t)+string(e)+string(n)+string(r)}function _n(t,e,n,r,a,i,o,s){var c=this;c.id=t,c.time=c(),c.msg=e,c.lineno=r,c.colno=a,c.filename=n,c.count=1,c.stack=i&&i.stack||"",c.module=o,c.trigger=s||wl,c.error=i,c.fix();var u=yn(e,r,a,o),l=vl[u];c.ep=l?0:1,vl[u]=!0,c.fep=0,c.trace={},this.recordfilename()}function xn(e){var n=function(t){var e=[];return r(t,function(t){e.push(t.toobject())}),e}(kl.c);if(!n||!n.length)return null;var a={fu:zl?zl:zl++,os:parseint((c()-(su.pfstart||t))/1e3)};tu.ulabel&&(a.ulabel=tu.ulabel),re.buildimmediateaction(qo,null,null,{actionoptions:_(a,{items:n})}),kl.reset()}function bn(t,e,n,a,i,o,s){if(e||!fu.ignorenofileproperror){var c=!1;if(r(fu.domains,function(t){return c=t.test(e),c?!1:void 0}),!c){var u=i&&i.moduleid,l=gn(e,t,n,a,u),f=kl.get(l);f?f.increase():(f=new _n(l,t,e,n,a,i,u,o),kl.add(l,f),qu.errs&&qu.errs.push(f));var d=f.inittraceinstance();f.triggeractionhook(d);try{d.scope.setcontext(s)}catch(p){}f.trace[d.id]={time:d.time,scope:d.scope}}}}function en(){var t=e.onerror;e.onerror=function(e,n,r,a,i){return bn(e,n,r,a,i),ji(t)?t.apply(this,arguments):void 0},e.onerror._ty=!0}function tn(){var t=e.onerror;t&&t._ty||en()}function sn(t,e){if(t){var n=t.message||"",a=t.stack,i="",o=0,s=0;if(a){var c,u={},l=a.split(/\n/);r(l,function(t,e){var n=mn(t);if(!n)return!0;var r=n.resolvelevel;if(r===iu){if(n.filename&&n.lineno>0&&n.colno>0)return c=n,!1}else u[r]||(u[r]=n)}),c||(c=u[au]||u[ru]),c&&(i=c.filename,o=c.lineno,s=c.colno)}bn(n,i,o,s,{stack:a},jl,e)}}function an(){var t=xi();return t?en():ki(e,zi,function(t){var n,r,a,i,o;(t instanceof e.event||e.errorevent&&t instanceof e.errorevent)&&(n=t.message||t.error&&(t.error.message||t.error.constructor.name)||"",r=t.lineno||0,a=t.colno||0,i=t.filename||t.error&&t.error.filename||t.target&&t.target.baseuri||"",o=t.error),bn(n,i,r,a,o)}),gl.on([to,eo,no,ro],function(t){xn()}).on(to,function(){t&&ku(tn)}),setinterval(xn,yl,!0)}function wn(t){return ji(t)?t.apply(this):t}function cn(t){if(t&&qi(t)){var e=t.name,n=t.msg,r=t.status,a=t.context,i=wn(e),o=wn(n),s=wn(r),c=wn(a),u={type:eu,name:i,time:c()};u.name&&(o&&(u.msg=o),s&&(u.status=s),c&&qi(c)&&(u.scope={contexts:c}),re.buildimmediateaction(eu,null,u))}}function kn(t){t=t||{},this._capacity=t.capacity||10,this._cache={},this._cachekeys=[],this._size=0}function on(t,e,n){if(t&&n&&ji(n)){var r=t[e];if(!r||!r._wrapped){var a=n(r,e);return a&&(a._wrapped=!0),t[e]=a,a}}}function nn(t,n){return function(r){if(e[ko].hook&&e[ko].hook.eventcb&&mn(r)){var a={originalcallback:t,eventhandlertype:n};return e[ko].hook.eventcb.call(this,arguments,a)}return t.apply(this,arguments)}}function in(t,e,n){return n===ql?nn(t,e):(t.handleevent=nn(t.handleevent,e),t)}function pn(t){return ji(t)}function rn(t){return qi(t)&&ji(t.handleevent)}function dn(t){var e;return pn(t)?e=ql:rn(t)&&(e=zl),{isvalid:t&&e,listenertype:e}}function ln(t){return function(){var e=arguments[0],n=arguments[1],r=arguments[2],a=!0;r&&qi(r)&&r[as]&&(a=!1);var i=dn(n),o=i.isvalid,s=i.listenertype;if(a&&$l.indexof(e)>-1&&o){var c;if(n[rc]&&n[rc][this])c=n[rc][this];else{var u=in(n,ns,s);s===ql&&(n[rc]||(n[rc]={},n[rc][ac]=0),n[rc][this]={listener:u,options:arguments[2]},n[rc][ac]++,c=n[rc][this])}c&&(c.listener&&(arguments[1]=c.listener),c.options&&(arguments[2]=c.options))}return t&&t.apply(this,arguments)}}function hn(t){return function(e,n){var r;try{r=t&&t.apply(this,arguments)}finally{try{if(n&&$l.indexof(e)>-1){var a=n[rc];a&&a[this]&&a[this].listener&&(null!=a[this].options?this.removeeventlistener(e,a[this].listener,a[this].options):this.removeeventlistener(e,a[this].listener),a[this]=null,a[ac]--,a[ac]<=0&&(n[rc]=null,delete n[rc]))}}catch(i){}}return r}}function jn(){e.eventtarget&&(on(e.eventtarget.prototype,"addeventlistener",function(t){return ln(t)}),on(e.eventtarget.prototype,"removeeventlistener",function(t){return hn(t)}))}function qn(){object.getownpropertydescriptor&&object.defineproperty&&r($l,function(t){var n="on"+t,r=object.getownpropertydescriptor(e.htmlelement.prototype,n),a=r.get,i=r.set;object.defineproperty(e.htmlelement.prototype,n,{get:function(){return a.apply(this,arguments)},set:function(){var t=arguments[0];t&&(arguments[0]=in(t,is,ql)),i&&i.apply(this,arguments)},configurable:!0,enumerable:!0})})}function mn(t){return t&&t.target instanceof e.htmlelement&&t.currenttarget instanceof e.htmlelement}function bn(t){return!!t.match(bn.regex)}function un(t){return t&&t.substr(0,256)||""}function fn(t){try{if(!t)return"";for(var e=[],n=t.parentnode,r=function(){var r=t.tagname,a=void 0;a=n.children;var i=void 0;i=a?1===x(a,function(t){return t.tagname===r}).length?r:"".concat(r,":nth-child(").concat(1+e(a,t),")"):r;var o=t.id?"#".concat(t.id):"",s=t.classname;li(s)&&(s=pn(s));var c="";if(s){var u=s.split(" ");u&&(c=x(u,function(t){return pn(t)}).map(function(t){return".".concat(t)}).join(""))}e.unshift("".concat(i).concat(o).concat(c)),t=n,n=t.parentnode};n;)r();return"".concat(e.join(" > ")).tolowercase()}catch(a){}}function gn(t){return!t.istrusted||null!=t.pointertype&&!t.pointertype}function yn(t,e,n){var r=t.target,a=r.nodename,i=r.id,o=r.classname,s=r.title,c=r.value,u=r.innertext,l=a+i,f=gn(t),d={type:po,id:i,nodename:a,classname:o,title:s,value:c,text:a===ls?"":un(u),path:fn(t.target),trigger:f?vc:mc,range:gc},p=t[ws];if(p||(p=qi(),t[ws]=p),d.eventid=p,f){var h=t.timestamp&&c();rf&&math.abs(h-rf.timestamp)<=fu.script_event_associate_threshold&&(d.refid=rf.eventid)}else rf={timestamp:t.timestamp&&c(),eventid:d.eventid};if(rs===a){var m=t.target.getattribute("src");m&&!bn(m)&&(d.src=m)}if(ds===a){var v=t.target.getattribute("href");v&&(d.href=v)}return d.eventhandlertype=e,new re(_({name:l,type:po,subtype:t.type||cs,data:d},n))}function zn(t,e){wu.context=yn(t,e)}function jn(){var t=wu.context;t&&t.canend()&&t.end(),wu.context=null}function wn(t,e){var n=e.originalcallback,r=e.eventhandlertype,a=t[0],i=!(a&&a.target&&tf.indexof(a.type)>-1);if(!i)try{zn.call(this,a,r)}catch(o){}var s;try{s=n.apply(this,t)}finally{if(!i)try{wu.context&&!wu.context.canend({ignorefields:[do]})&&(a[ss]=!0),jn.apply(this)}catch(o){}}return s}function kn(){r(tf,function(t){ document.addeventlistener(t,function(t){ef.length>=_s&&ef.shift(),ef.push(t)},_defineproperty({capture:!0},as,!0))})}function vn(t){try{return 13===(t+"").split(".")[0].length}catch(e){}return!1}function xn(n){var r=e.performance&&e.performance.timing?e.performance.timing.navigationstart:t,a=n.timestamp;return a=a?vn(a)?a:math.round(n.timestamp+r):c()}function $n(t){var e=x(ef,function(t){return!t[ss]}),n=e[e.length-1];if(n){var r=xn(n);if(math.abs(r-t)0){var r=e[0];return yn(r,ps,{s:xn(r)})}}function zn(){e[ko].hook&&(e[ko].hook.eventcb=wn),!e[ko].listenerhooked&&e.htmlelement&&(jn(),qn()),fu.hook_inline_event&&kn()}function tr(t,e){this.flags=0,ji(t.create)&&(this.create=t.create,this.flags|=af),ji(t.before)&&(this.before=t.before,this.flags|=of),ji(t.after)&&(this.after=t.after,this.flags|=sf),ji(t.error)&&(this.error=t.error,this.flags|=cf),this.data=e}function er(t,e){if(!lf){if(!qi(t)||!t)throw new typeerror("callbacks arguments must be an object");return lf=new tr(t,e)}}function nr(t,e){var n=e||lf.data;if(!n&&0!==(lf.flags&af)){var r=lf.create(lf.data);void 0!==r&&(n=r)}return function a(){0!==(lf.flags&of)&&lf.before(this,n);var e=a;e._&&(e._=1);var r;if(fu.exposeoriginerror)try{r=t.apply(this,arguments)}finally{0!==(lf.flags&sf)&&lf.after(this,n)}else{try{r=t.apply(this,arguments)}catch(i){throw 0!==(lf.flags&cf)&&lf.error(n,i),i}0!==(lf.flags&sf)&&lf.after(this,n)}return r}}function rr(t){return function(){var e;try{e=t.apply(this,arguments)}finally{wu.context=null}return e}}function ar(t,e){return!lf||lf.flags<=0?t:nr(t,e)}function ir(t,e){return rr(ar(t,e))}function or(){this.id=null,this.active=null,this._set=[]}function sr(){var t=new or;return t.id=er({create:function(){return t.active},before:function(e,n){n&&t.enter(n)},after:function(e,n){n&&t.exit(n)},error:function(e,n){if(e){try{var r="moduleid";n[r]=e[r]}catch(a){}t.exit(e)}}}),t}function cr(){return df||(ff=sr(),df=!0),ff}function ur(t){var e=t,n=t.xhrs;e.hasajax=n&&n.length>0,delete e.xhrs;var r={ss:1};t.type===$s&&(r.rs=1),re.buildimmediateaction(po,os,{type:po,items:n,spe:e},{sendoptions:{query:r}})}function lr(t){if(mf[t.key]){var e=mf[t.key];if(delete mf[t.key],e.spebinded){var n=e.setspe(t);n||(!e.ismeaningfulaction()&&e.isnoremain()?ur(t):i(function(){e.sent||ur(t)},uc))}}else ur(t)}function fr(t){ml&&console.warn(t||"event key required!")}function dr(t){t=t||{},this.key=t.key,this.type=t.type||xs;var e=t.timeout||ks;this.timeout=e,this.status=1,this.remain=0,this.xhrs=[],this.s=c(),this.e=null,this.called=this.sent=this.stored=!1,t.debuginfo&&(this.debuginfo=t.debuginfo),this.duration=t.duration||0,this.scope=new r({contexts:t.context})}function pr(t){var e=null;e=wu.context?re.getrootcontext(wu.context,function(t){return t.type===po&&t.subtype!==os}):$n(t.s),null!=e&&(mf[t.key]=e,e.spebinded=!0)}function hr(t){t=t||{};var e=t.key;if(!e)return new fr;if(hf[e])return new fr("event "+e+" is executing");hf[e]=!0;var n=pf.createcontext();pf.enter(n);var r=new dr(t);return r._end=function(){var t=this;t.sent||t.stored||0!==t.remain||!t.called?t.stored&&this.refresheventandstore(n):t.finish().send(n)},r.end=function(t){t=t||{};var e=this;return e.called?void(ml&&console.warn("event "+this.key+"has ended or failed!")):(e.called=!0,pf.exit(n),e.status=null!=t.status?t.status:1,t.context&&qi(t.context)&&e.scope.setcontext(t.context),void(t.storeevent||e._end()))},r.finish=function(){var t=this;return t.e=c(),t.i&&cleartimeout(t.i),delete hf[t.key],t},r.fail=function(){this.end({status:0})},r.store=function(){this.end({storeevent:!0}),this.refresheventandstore(n),this.stored=!0},r.i=r.timeout?i(g(r.fail,r),r.timeout):null,r.type===$s&&pr(r),pf.set("event",r),r}function mr(t){if(e.tingyun&&e.tingyun.inited){var n=nl(js),r=mt(n);if(r&&r.start&&(t=t||{},!t.key||r.key===t.key)){var a=t.timeout;if(a||(a=ws),r.duration=c()-r.start,r.duration>a)return void al(js);var i=e.performance&&e.performance.timing;if(i&&i.navigationstart&&(i.loadeventend||i.loadeventstart)&&i.navigationstart-r.start>=0){var o={method:"get",url:fu.ref,status:200,type:ro,subtype:ho,startspeoffset:i.navigationstart-r.start,start:i.navigationstart,__spe:1,du:(i.loadeventend||i.loadeventstart)-i.navigationstart};r.xhrs||(r.xhrs=[]),r.xhrs.push(o)}var s=1;t.status&&(s=t.status===zs?1:0),r.status=s,al(js),lr(r)}}}function vr(t,e){e.status&&e.status===tc?t.fail():t.end()}function gr(t,n){if(!e.tingyun||!e.tingyun.inited)return new fr("agent is not inited!");t=_({},{type:vs},n?{debuginfo:{immediate:!0}}:{},t||{});var r=hr(t);return n?vr(r,t):t.autoend&&i(function(){vr(r,t)},t.enddelay||qs),r}function yr(t){return mf[t]}function _r(t,e){if(mf[t]){var n=mf[t];n.id!==e.id&&e.subtype!==hc&&(e.spebinded=!0,mf[t]=e)}}function xr(t,n){e.tingyun&&e.tingyun.inited&&(n&&qi(n)||(n={}),t&&t.beforeeach&&t.aftereach&&(fu.routerenable=!1,t.aftereach(function(t){var r=t.fullpath;if(r=r?e.location.origin+r:t.path){var a={key:r,type:$s,autoend:!0,enddelay:cc,debuginfo:{api:hc}};_(a,n),gr(a)}})))}function br(t,e){if(t){var n=t.split("_"),r=n[0],a=n[1];"ty"===r&&a&&p(a,{timestamp:c(),data:e})}}function er(){return{get:function(t,e){null==e&&(e=w);var n=mt(nl(lu));n&&n[fu]?e(n[fu][t]):e()},set:function(t,e){var n=mt(nl(lu));n||(n={}),n[fu]||(n[fu]={}),n[fu][t]=e,rl(lu,di(n))}}}function tr(){return{get:function(t){t&&t()},set:w}}function sr(t){return fu.configload?t&&t.config?c()-(t.lastupdate||0)>6e4*fu.configloadinterval:!0:!1}function ar(t){if(yu.initiator!==cu&&sr(t)){var e={token:fu.token,_r:c()},n="".concat(wt()).concat(fu.configloaduri,"?").concat(at(e));ct({url:n,method:mu,timeout:fu.configloadtimeout,callback:function(t){var e=mt(t);if(e){var n=e.code,r=e.data;200===n&&r&&bf(fu.token,{token:fu.token,lastupdate:c(),config:r})}}})}}function wr(){if(object.defineproperty){var t=e[co];t&&object.defineproperty(e,co,{get:function(){return ef++>0&&e.console&&console.warn("window.%s is deprecated, use window.%s instead.",co,uo),t}})}}function cr(t){var e=t;return tf&&(sf.setattribute("href",e),e=sf.href),sf.setattribute("href",e),{href:sf.href,protocol:sf.protocol?sf.protocol.replace(/:$/,""):"",host:sf.host,search:sf.search?sf.search.replace(/^\?/,""):"",hash:sf.hash?sf.hash.replace(/^#/,""):"",hostname:sf.hostname,port:sf.port,pathname:"/"===sf.pathname.charat(0)?sf.pathname:"/"+sf.pathname}}function kr(t){var e=!1;return fu.corsdomains&&r(fu.corsdomains,function(n){return t.indexof(n)>-1?(e=!0,!1):void 0}),e}function or(t){if(!li(t))return!1;if(fu.apmenableallcorsdomains)return!0;var e=cr(t);return e.protocol===af.protocol&&e.host===af.host||kr(e.host)}function nr(){try{return qi().substring(0,16)}catch(t){}}function ir(t){var e=!1;try{var n=or(t.url);if(fu.x_server_switch&&n){var a=nr(),i="c=b|"+fu.key;if(a&&(i+=";x="+a),t.addheader(ao,i),e=!0,t.xtingyunsent=!0,fu.apmheaders){var o={},s=qi().replace(/-/g,"");r(fu.apmheaders,function(n){if(n){var r=t.getheader(n);null==r&&(t.addheader(n,s),e=!0,r=s),o[n]=r}}),t.apms=o}}}catch(c){}return e}function pr(t,e){if(!t.context){var n=wu.context;!t.shouldaddtoevent&&on(n)&&(n=null),t.context=new re({parent:n,name:"".concat(t.url,"-").concat(t.id),type:ro,subtype:e||wc})}}function rr(t,e){var n=t.context.data,r=t.xtingyunsent?mt(e(wo)):null;if(r){if(n.hasserverheader=!0,n.s_id=r.id,n.s_tname=r.tname,n.s_tid=r.tid,n.s_rid=r.rid,n.s_duration=r.duration,"user"in r){var a=r.user,i=a;if(null!=a&&0===a.indexof(co)){var o=a.substring(co.length);try{i=hl.decode(o)}catch(s){}}n.s_user=i,ut(i)}"bid"in r&&(n.s_bid=pe(r.bid)),"ber"in r&&(n.s_ber=r.ber),"iserror"in r&&(n.s_iserror=r.iserror)}else n.hasserverheader=!1;t.apms&&(n.apms=t.apms)}function dr(t){var e=t.context.data;t.key&&(e.__spe=1)}function lr(t,e){wu.context=t.context,wu.globalasyncstore=t,wu.globalajaxcontext=e}function hr(t){if(t.context){var e=!1;return t.context.setdata({state:$o}),t.context.canend()&&(t.context.end(),e=!0),t.context.data&&t.context.state===qo&&fu.upload_timeout_ajax&&(t.context.data.brsonly=!0,re.buildimmediateaction(ro,"",t.context.data,{actionoptions:{state:qo}})),wu.globalasyncstore=null,wu.globalajaxcontext=null,e}}function jr(t){if(!t||!t.context)return{};var e=t.context.data,n={method:e.method,url:e.url,start:e.start,end:e.end,du:e.du,status:e.status};return t.context.subtype===wc?_(n,{err:e.err,rec:e.rec,send:e.send,requestheader:t.headerrecord}):_(n,{requestheader:t.fetchoptions.headers}),n}function qr(t){if(t.shouldaddtoevent&&null==t.context.parent){var e;if($()&&(e=$n(t.start)),!e&&wu.recordingpageloadevent&&wu.pageloadevent&&(e=wu.pageloadevent,wu.recordingcpactions&&t.context.setdata({crosspage:!0})),!e){var n=pf.get("event");n&&n.type==$s&&n.key===t.key&&(e=yr(n.key))}if(e){t.context.parent=e,t.context.unregistertimeout(),en(t,ro,!0);var r=pf.get("event");r&&r.type==$s&&r.key===t.key&&_r(r.key,e)}}}function mr(t){var e=pf.get("event");if(e&&e.key){if(e.type===$s){var n=yr(e.key),r=re.getrootcontext(t.context,function(t){return t.type===po&&t.subtype!==os});if(n&&r&&n.id!=r.id)return}t.key=e.key,e.remain++}}function br(t){var e=!0;return r(fu.ajaxblacklist,function(n){return n&&t.indexof(n)>-1?(e=!1,!1):void 0}),e}function ur(t,e){t[co]=e.id,nf[e.id]=e}function fr(t){return nf[t[co]]}function gr(t){try{nf[t[co]]=null,delete nf[t[co]]}catch(e){}}function yr(t){return t?t[fo]?!1:!0:!1}function zr(t){return{addheader:function(e,n){try{t.setrequestheader(e,n)}catch(r){}},getheader:function(t){return this.headerrecord[t]}}}function jr(t){return function e(n,r){var a=this,i=e;if(i._&&(i._=1),!br(r)&&a&&(a[fo]=!0),yr(a)){var o={};o.method=n,o.url=r,o.id=wf.uniqueid++,o.jserror=!1,o.headerrecord={},o.scope=new r,o.shouldaddtoevent=nn(r),_(o,zr(a)),pr(o),mr(o),o.context.setdata({type:ro,subtype:wc,id:o.id,cid:o.context.id,method:o.method,url:o.url,state:o.state,jserror:o.jserror}),en(o,ro),o.tojson=function(){},ur(a,o)}try{return t.apply(a,arguments)}catch(s){}return $()?void 0:v(t,[a,arguments])}}function wr(t){return function e(n,r){var a=this,i=e;i._&&(i._=1);var o;if(yr(a)&&(o=fr(a))){var s=ca(n,fu.optcustomparamrules);bu.isgather&&(o.wreqheaderparam||(o.wreqheaderparam={}),o.wreqheaderparam[n]=r),o&&s&&(o.reqheaderparam||(o.reqheaderparam={}),o.reqheaderparam[n]=r),o.headerrecord||(o.headerrecord={}),o.headerrecord[n]=r}try{return t.apply(a,arguments)}catch(c){}return $()?void 0:v(t,[a,arguments])}}function kr(t){return function e(n){var r=this,a=e;a._&&(a._=1);var i;yr(r)&&(i=fr(r))&&(i.start=c(),i.reqsize=o(n),i.requestdata=n,i.context.setdata({start:i.start}),qr(i),zr(r,i),ir(i),y({type:cc,name:rc,hookpostion:jc,args:{target:r},scope:i.scope}));try{return t.apply(r,arguments)}catch(o){}return $()?void 0:v(t,[r,arguments])}}function vr(t,e){r(cf,function(n,r){var a="on"+r;t[a]?on(t,a,function(t){return function(){return $r(e,n,r),ji(t)?t.apply(this,arguments):void 0}}):t[a]=function(){$r(e,n,r)}})}function xr(t,e){r(cf,function(n,r){ki(t,r,function(){$r(e,n,r),t&&t[ms]===kf&&ta(t,e)})})}function $r(t,e,n){t&&(t.errorcode=e,t.errorevent=n)}function qr(t,e){if($()){var n=t[kf];n&&!t[qs]&&(on(t,kf,e),t[qs]=!0,t[ms]=kf)}var r=t[of];!r||t[qs]||r[qs]||(on(t,of,e),t[qs]=!0,t[ms]=of)}function zr(t,e){function n(n){return ir(function a(){var r=a;r._&&(r._=1),ta(t,e);var i;if(ji(n)){var o;if(e&&4==t.readystate&&(o=c(),lr(e,t)),fu.exposeoriginerror)try{i=n.apply(this,arguments)}finally{e&&4==t.readystate&&(e.cbtime=c()-o)}else try{i=n.apply(this,arguments)}catch(s){throw e&&(e.jserror=!0),s}finally{e&&4==t.readystate&&(e.cbtime=c()-o)}}return i},r)}var r=pf.getcontext();qr(t,n);try{$()?xr(t,e):vr(t,e)}catch(a){}if(!t[qs]){var i=ir(function o(){var n=o;n._&&(n._=1),t[qs]||4===t.readystate&&ta(t,e)},r);try{$()?ki(t,ao,i):(t[of]=i,t[of][qs]=!0)}catch(a){return}}ku(function(){qr(t,n)})}function ta(t,e){if(e&&(e.end=c(),e.readystate=t.readystate,4==t.readystate)){if(e.callbackend)return;e.callbackend=!0,$()&&delete t[qs],lr(e),e.status=t.status,e.text=ea(t),e.ressize=o(e.text);var n=ia(e,t);y({type:cc,name:rc,hookpostion:qc,args:{target:t,actiondata:jr(e)},scope:e.scope}),e.shouldaddtoevent&&(wu.recentfinishedajaxcontext=e.context);var r=pf.get("event");ku(function(){aa(e,n),r&&r.key==e.key&&(r.xhrs.push(n),0===--r.remain&&r._end()),qu.xhrs&&(qu.xhrs[e.url]=n);var a=hr(e);a&&gr(t)})}}function ea(t){var e="";if(""==t.responsetype||"text"==t.responsetype)e=t.responsetext;else if(t.response)e=t.response;else try{e=t.responsetext}catch(n){}return e||""}function na(t){return t.data&&"event"===t.data.type?{text:t.data.text,path:t.data.path,src:t.data.src,value:t.data.value,href:t.data.href,title:t.data.title,nodename:t.data.nodename,items:t.items}:t.parent&&t.parent.data&&"event"===t.parent.data.type?{text:t.parent.data.text,path:t.parent.data.path,src:t.parent.data.src,value:t.parent.data.value,href:t.parent.data.href,title:t.parent.data.title,nodename:t.parent.data.nodename,items:t.parent.items}:t.parent&&t.parent.parent?na(t.parent):{text:"",path:"",nodename:"",items:[]}}function ra(t){return this.getresponseheader(t)}function aa(t,e){t&&e&&t.jserror&&(e.jserror=t.jserror),t.errorcode&&!e.err&&(e.err=t.errorcode),t.cbtime&&!e.cb&&(e.cb=t.cbtime),j(e,t.scope)}function ia(t,n){if(t&&t.context&&!t.composed){var r=t.status;if(bu.isgather){var a=na(t.context);t.wcustom={fromjs:"agent",key:fu.key,ajaxurl:t.url,items:t.context.items,itemstemp:a&&a.items,id:t.id,url:fu.ref,text:a&&a.text,href:a&&a.href,title:a&&a.title,value:a&&a.value,src:a&&a.src,xpath:a&&a.path,nodename:a&&a.nodename,method:t.method,urlparams:bt(fu.ref),ajaxurlparams:bt(t.url),start:t.start,requestheader:t.wreqheaderparam,requestparams:t.requestdata,responseheader:n.getallresponseheaders()&&n.getallresponseheaders().split("\n"),responsebody:n.response,children:[]},e.top&&e.top.postmessage&&e.top.postmessage(di(t.wcustom),"*"),delete t.wcustom,delete t.wreqheaderparam}_(t.context.data,{end:t.end,du:r>0?t.end-t.start:0,cb:t.cbtime||0,status:r,err:t.errorcode?t.errorcode:0,rec:t.ressize,send:t.reqsize});var i=t.context.data,o={},s=le(t.url),c=s.optcustomparams;o[yo]=t.reqheaderparam||{},o[_o]=me(la(t.requestdata),fu.optcustomparamrules[_o],!0),o[xo]=ua(n,fu.optcustomparamrules,xo);var u=mt(t.text);u&&(o[bo]=me(u,fu.optcustomparamrules[bo],!0)),i.opt_custom_param=he(oa(o,c)),rr(t,g(ra,n)),dr(t);var l={};if(fu.collectallparam[xc]&&s.operaallparam&&(l[xc]=s.operaallparam),fu.collectallparam[bc]&&t.headerrecord&&(l[bc]=t.headerrecord),fu.collectallparam[ec]&&t.requestdata&&(l[ec]=t.requestdata),fu.collectallparam[tc])try{l[tc]=fa(n.getallresponseheaders())}catch(f){}return fu.collectallparam[sc]&&t.text&&(l[sc]=t.text),zt(l)||(i.opera_all_param=l),t.composed=!0,i}}function oa(t,e){return r(e,function(e,n){t[n]=_({},t[n]||{},e||{})}),t}function sa(t,e){if(t&&t.getresponseheader)try{return t.getresponseheader(e)}catch(n){}}function ca(t,e){var n;return r(e[yo],function(e){return t===e?(n=!0,!1):void 0}),n}function ua(t,e,n){var a={};return r(e[n||ho],function(e){var n=sa(t,e);null!=n&&vt(a,e,n)}),a}function la(t){var e=mt(t);return e||(e=et(t)),e}function fa(t){if(!t)return{};var e=t.split(/\r?\n/),n={};return r(e,function(t){if(!t)return!0;var e=t.indexof(":");if(e>-1){var r=$i(t.substring(0,e)),a=$i(t.substring(e+1));r&&(n[r]=a)}}),n}function da(){var t=ju&&ju.prototype;t?(on(t,"open",jr),fu.hook_xhr_setrequestheader&&on(t,"setrequestheader",wr),on(t,"send",kr)):ju&&(e.xmlhttprequest=function(){var t=new ju;return on(t,"open",jr),fu.hook_xhr_setrequestheader&&on(t,"setrequestheader",wr),on(t,"send",kr),t})}function pa(t){t&&!t.composed&&(_(t.contextdata,{end:t.end||c()}),t.composed=!0)}function ha(){on(window,"settimeout",ea),on(window,"cleartimeout",ta)}function ma(t){t.context||(t.context=new re({name:"".concat(t.name,"-").concat(t.id),type:do,subtype:t.name}))}function va(t){wu.context=t.context,wu.globalasyncstore=t}function ga(t){t.context&&(t.context.setdata({state:$o}),t.context.canend()&&t.context.end(),wu.globalasyncstore=null)}function ya(t){var e=0,n=t.context;if(n){var r=n.remain[ro],a=n.remain[lo];e+=r.current+r.children+a.current+a.children}return e>0}function _a(t){for(var e=0;null!=t&&e=0;r--){var a=e[r];a.type===po||a.end||(a.end=n),e[r-1]&&(e[r-1].items=[a]);var i=void 0;i=a.start&&a.end&&a.end-a.start>fu.eventtimeout?qo:a.type===po?e[r+1]&&e[r+1].state||$o:$o,a.state=i}t.data=e[0],t.end=n}function aa(t){var e=wu.cpparent;if(e){wu.recordingcpactions=!1;var n=e.action,r=e.data,a=e.commonactioninfo,i=e.requestinfo;if(n&&r&&0!==r.length){var o=t.context;r[r.length-1].items=[o.eventdata.data],sa(n,r),n.data&&(n.data.range=yc);var s=_(a||{},j({pageparam:zt(),cpoptcustomparam:wu.opt_custom_param},wu.scope,"cpscope"));o.eventdata=n,o.setsendoptions({commonactioninfomessage:s,requestinfo:i,crosspage:!0})}}}function wa(t){if(t){var e=t.action,n=t.data;e&&n&&0!==n.length&&(sa(e,n),$t(e))}}function ca(t){rl(xs,di(t))}function ka(t){var e=rf++,n=t.url||"",r=c(),a=new re({parent:wu.context,name:"".concat(n,"-").concat(e),type:jo,subtype:t.subtype||bs}),i={type:jo,subtype:a.subtype,id:e,cid:a.id,url:n,start:r};a&&a.setdata(i);var o;return a.parent&&(a.parent.type===ro?ia(wu.globalasyncstore,wu.globalajaxcontext):a.parent.type===do&&pa(wu.globalasyncstore),o=a.collectcrosspagedata(),df=o,t.delaystorage||ca(o),a.clear(),a=null),{storagedata:o,context:a}}function oa(t){return function(){var e=arguments[0],n=ka({url:e,delaystorage:!0}),r=n.storagedata,a=n.context;try{var i=t.apply(this,arguments);if(i){if(!r&&a){var o=$n(a.data.start);o&&(a.parent=o,r=a.collectcrosspagedata(),df=r,a.clear(),a=null)}ca(r)}return i}catch(s){}return $()?void 0:v(t,[this,arguments])}}function na(){on(e,"open",oa)}function ia(){function t(t){return{valid:ds===t.target.nodename&&!t.defaultprevented&&t.target.href,url:t.target.href,subtype:es}}function e(t){return{valid:ls===t.target.nodename&&!t.defaultprevented&&t.target.action,url:t.target.action,subtype:ts}}r([cs,ks],function(n){hu.addeventlistener(n,function(r){if(r){var a=n===cs?t(r):e(r);if(a.valid){var i=r.timestamp?qn(r):$n(xn(r));i&&(wu.context=i,ka({subtype:a.subtype,url:a.url}),wu.context=null)}}},_defineproperty({},as,!0))})}function pa(){wa(df),df=null}function ra(){ki(hu,_c,function(){"hidden"===hu.visibilitystate&&pa()}),ki(e,ro,function(){pa()})}function da(){na(),ia(),ra()}function la(t){t.context.setdata(_({pvid:t.pvid,end:t.end,url:t.url},t.iframepagemetric||{}))}function ha(t){if(!t.context){var e=wu.context;!t.shouldaddtoevent&&on(e)&&(e=null),t.context=new re({parent:e,name:"".concat(t.src,"-").concat(t.id),type:lo})}}function ja(t){if(!t)return!0;var e=!1,n=t.substring(0,100);try{r(qf,function(t){return n.indexof(t)>-1?(e=!0,!1):void 0})}catch(a){e=!0}return e}function qa(t,e,n){function r(){if(a.end=c(),a.sameorigin&&this&&this.contentdocument&&this.contentwindow){a.sameorigin=!0,a.url=this.contentdocument.url;var e,n=this.contentwindow[uo],i=!1;n&&(a.pvid=n.pvid||"",ji(n.checkhooksupported)&&n.checkhooksupported(wc,pc)&&(i=!0,n.addlifecyclehook(pc,function(t){var n=t.iframemetric;e=n,ma(a,e)}))),i||(e=le(this.contentwindow),ma(a,e))}else a.sameorigin=!1;la(a),ba(a),t.removeeventlistener("load",r)}if(!ja(e)&&t){n||(n=t.src?jf:hf);var a={id:lf++,src:e,loadtype:n,start:c(),sameorigin:or(e),shouldaddtoevent:nn(e)};ha(a),a.context&&a.context.setdata({type:lo,loadtype:a.loadtype,id:a.id,cid:a.context.id,src:a.src,start:a.start,sameorigin:a.sameorigin}),en(a,lo);var i;null==a.context.parent&&a.shouldaddtoevent&&$()&&(a.context.parent=$n(a.start),i=a.context.parent),null==a.context.parent&&a.shouldaddtoevent&&wu.recordingpageloadevent&&wu.pageloadevent&&(a.context.parent=wu.pageloadevent,i=a.context.parent,wu.recordingcpactions&&(a.context.crosspage=!0)),i&&(en(a,lo,!0),a.context.unregistertimeout()),t.addeventlistener("load",r)}}function ma(t,e){t.iframepagemetric=e,la(t),ba(t)}function ba(t){t.context&&(t.context.setdata({state:$o}),t.context.canend()&&t.context.end())}function ua(){function t(t){return function(e){return"iframe"===e.nodename&&e.src&&qa(e,e.src,hf),t.apply(this,arguments)}}on(node.prototype,"appendchild",t),on(node.prototype,"insertbefore",t)}function fa(){function t(){if(hu&&hu.body&&hu.body.contains&&hu.body.contains(this)){var t=arguments[0],e=this;qa(e,t)}return r.apply(this,arguments)}if(object.getownpropertydescriptor&&object.defineproperty){var e=object.getownpropertydescriptor(htmliframeelement.prototype,"src"),n=e.get,r=e.set;object.defineproperty(htmliframeelement.prototype,"src",{get:function(){return n.apply(this,arguments)},set:t,enumerable:!0,configurable:!0})}}function ga(){ua(),fa()}function ya(){fu.hook_auto_event&&zn(),fu.hook_timer&&ha(),fu.hook_iframe&&ga(),fu.hook_cross_page&&da()}function za(t){var e=!0,n=!0;t.fetchoptions.headers||(e=!1,t.fetchoptions.headers={});var r=t.fetchoptions.headers;ui(r)?_(t,mf.headers):qi(r)?_(t,mf.literal):(n=!1,_(t,mf.notsupport)),t.hasoriginalheaders=e,t.supportaddheaders=n}function ja(t){return this.headers?this.headers.get(t):void 0}function wa(t,e){if(t&&t.context){t.context.setdata({end:t.end,du:t.status>0?t.end-t.start:0,status:t.status});var n=t.context.data;e||(n.err=cf.error);var a={},i=le(t.url);i.optcustomparams[go]&&(a[go]=i.optcustomparams[go]),a[yo]=ka(t),e&&(a[xo]=va(e)),n.opt_custom_param=he(a),t.headeradded&&rr(t,g(ja,e||{})),dr(t);var o={};if(fu.collectallparam[xc]&&i.operaallparam&&(o[xc]=i.operaallparam),fu.collectallparam[bc]&&t.fetchoptions.headers&&(o[bc]=t.fetchoptions.headers),fu.collectallparam[tc]&&e&&e.headers&&ji(e.headers.entries)){var s={};r(e.headers,function(t,e){s[e]=t}),o[tc]=s}return zt(o)||(n.opera_all_param=o),n}}function ka(t){var e={};return r(fu.optcustomparamrules[yo],function(n){var r=t.getheader(n);null!=r&&(e[n]=r)}),e}function va(t){var e={};return r(fu.optcustomparamrules[xo],function(n){var r=t.headers.get(n);null!=r&&(e[n]=r)}),e}function xa(t){if(!fi(t)&&!qi(t))return null;var e={};return t.url&&(e.url=t.url),t.method&&(e.method=t.method),t.headers&&(e.headers=t.headers),e}function $a(t){var e={};return li(t)?e.url=t:_(e,xa(t)),e}function qa(t,e){t&&e&&ti(t,null)}function za(t){return function e(){var n=e;n._&&(n._=1);var r=this,a=gi.call(arguments,0);return new promise(function(e,n){var i={};if(a&&(i=$a(a[0]),a[1])){var o=a[1];_(i,$a(o))}var s,c=br(i.url);if(c){if(s={id:wf.uniqueid++,method:i.method||mu,url:i.url,start:c(),fetchoptions:i,shouldaddtoevent:nn(i.url),scope:new r},za(s),s.supportaddheaders){var u=ir(s);if(!s.hasoriginalheaders&&u)try{a[1]||(a[1]={}),a[1].headers=s.fetchoptions.headers}catch(l){u=!1}s.headeradded=u}pr(s,kc),mr(s),s.context.setdata({type:ro,subtype:kc,id:s.id,cid:s.context.id,method:s.method,url:s.url,start:s.start}),en(s,ro),qr(s),y({type:cc,name:rc,hookpostion:jc,args:{},scope:s.scope})}var f;try{f=t.apply(r,a)}catch(l){return qa(s,c),void n(l)}f.then(ir(function d(t){var n=d;n._&&(n._=1),t&&c&&s&&ti(s,t),e(t)}),ir(function(t){qa(s,c),n(t)}))})}}function ti(t,e){t.end=c(),t.status=e?e.status:0;var n=wa(t,e);y({type:cc,name:rc,hookpostion:qc,args:{target:e||{},actiondata:jr(t)},scope:t.scope}),j(n,t.scope);var r=pf.get("event");r&&r.key==t.key&&(r.xhrs.push(n),0===--r.remain&&r._end()),qu.xhrs&&(qu.xhrs[t.url]=n),hr(t)}function ei(){e.fetch&&e.promise&&$()&&on(e,"fetch",za)}function ni(t){var e={};return r(fu.optcustomparamrules[yo],function(n){var r=t[n];null!=r&&(e[n]=r)}),e}function ri(t){var e={};return t&&hi(t)&&t.length>0&&r(t,function(t){var n=t;li(t)&&(n=mt(t)),_(e,me(n,fu.optcustomparamrules[_o],!0))}),e}function ai(t,e,n){if(t&&t.context&&!t.composed){t.composed=!0;var r=mt(e),a={};a[yo]=ni(n.headers||{}),a[_o]=ri(n.requestdata),t.context.setdata({end:t.end,du:t.end-t.start,cb:t.cbtime,status:200,err:r&&null!=r.error?r.error:0,opt_custom_param:he(a)})}}function ii(t){return t.context.data}function oi(t,e,n){var r=e;return function(e){t.end=c();var a,i=c();try{r&&(a=r.apply(this,arguments))}finally{var o=c();t.cbtime=o-i}ai(t,e,n),y({type:cc,name:rc,hookpostion:qc,args:{target:this,actiondata:ii(t)},scope:t.scope}),j(t.context.data,t.scope);var s=pf.get("event");return s&&s.key==t.key&&(s.xhrs.push(t.context.data),0===--s.remain&&s._end()),hr(t),a}}function si(t){return function(){var e=arguments[0],n=arguments[1];if("rpc"===e&&n&&n.operationtype){var r=arguments[2],a=fu.mpaas_rpc_api+n.operationtype,i={id:wf.uniqueid++,url:a,method:"",start:c(),shouldaddtoevent:nn(a),scope:new r};pr(i,vc),mr(i),i.context.setdata({type:ro,subtype:vc,id:i.id,cid:i.context.id,method:i.method,url:i.url,start:i.start}),en(i,ro),qr(i),y({type:cc,name:rc,hookpostion:jc,args:{},scope:i.scope}),arguments[2]=oi(i,r,n)}try{return t.apply(self,arguments)}catch(o){}}}function ci(){fu.mpaas_rpc&&window.alipayjsbridge&&ji(window.alipayjsbridge.call)&&on(window.alipayjsbridge,"call",si)}function ui(){da(),ei(),ci()}function li(){if($()){var t=0;try{t=window.performance.timing.loadeventend}catch(e){}return t>0}return hu.readystate===io}function fi(t,e){if(di()){var n={rm:{},em:[],cpm:{}};e&&(n.rm.res=e.res||[]),t&&(n.cpm=t,n.cpm.ul=fu.ref),nbsjsbridge.logjsresult(di(n))}}function di(){return"undefined"!=typeof nbsjsbridge&&nbsjsbridge.logjsresult}function pi(e,n){var a={tr:!1,tt:y(hu.title),charset:hu.characterset};tu.resources&&_(a,tu.resources),ve(function(){a.debug=yl}),ye();var i=qu.errs;r(i,function(e,r){var a=e.toobject();a.o=a.o-n&&n.navigationstart||t,i[r]=a}),a.err=i;var o,s="getentriesbytype";return e[s]?o=e[s]("resource"):pt(b(bf,[s])),o&&(a.tr=!0,a.res=[],r(o,function(t){function e(e){var n=t[e];return n>0?n:0}var n=t.initiatortype,i=t.name,o={o:e("starttime"),rt:n,n:i,f:e(zo),ds:e(fs),de:e(ds),cs:e(ms),ce:e(vs),sl:e(gs),qs:e(ts),rs:e(es),re:e(ns),ts:t.transfersize||0,es:t.encodedbodysize||0};if("xmlhttprequest"===n||"fetch"===n){var s=hi(i);r(s,function(t,e){0==e.indexof("s_")&&(o[e]=t)})}a.res.push(o)})),a}function hi(t){var e;return r(qu.xhrs,function(n,r){return r&&t.indexof(r)>-1?(e=n,!1):void 0}),e}function mi(t){if(t){var e=t.fetchstart;if(e)return e-t.navigationstart}}function vi(){var n={},a=0,i=e.performance;i&&i.getentriesbytype&&r(i.getentriesbytype("mark")||[],function(t){if(t&&t.name&&t.starttime&&0===t.name.indexof(oo)){var e=t.name.substring(oo.length);e&&(n[e]=math.round(t.starttime),a+=1)}});var o=i&&i.timing?i.timing.navigationstart:t,s=e[ko]&&e[ko].data,c=_({},s||{},au||{});return c&&i&&i.timing&&r(c,function(t,e){t&&qi(t)&&t.timestamp&&(n[e]=t.timestamp-o,a+=1)}),a>0?n:null}function gi(t,e,n){var r=_({},t||{},{type:ho,subtype:n||bo});return wu.recordingcpactions&&(r.crosspage=!0),e&&(r.body=e),r}function yi(t){wu.recordingpageloadevent=!1,wu.pageloadevent&&(t&&(wu.pageloadevent._ctx.pageclose=!0),wu.pageloadevent.endlock=!1,wu.pageloadevent.end())}function _i(){if(wu.recordingpageloadevent=!0,wu.pageloadevent=new re({type:ho,subtype:bo,endlock:!0,callback:{beforesend:function(t){y({type:kc,name:hc,args:{context:t}})},aftersend:function(t){wu.pageloadeventend=!0,qu.xhrs=qu.errs=null,je(),y({type:wc,name:pc,args:{actiondata:t}})}}}),f(hc,gf),$()){var t=mt(nl(xs));t&&t.fromurl&&hu.referrer&&t.fromurl.indexof(hu.referrer)>-1&&(wu.recordingcpactions=!0,wu.cpparent=t,f(hc,aa)),al(xs)}return li()&&!wu.pfsent&&yi(),gl.on(to,function(){var t=0;if(fu.pfdelay&&qi(fu.pfdelay)){var e=vi();r(fu.pfdelay,function(n,r){(!e||null==e[r])&&mi(n)&&n>t&&(t=n)})}fu.spametricenable&&wu.pageloadevent&&!wu.pageloadevent.haschildtype(ro)&&fu.pageloaddelay>t&&(t=fu.pageloaddelay),i(function(){yi()},t)}).on([eo,no,ro],yf)}function xi(t,e){t&&fu.routerenable&&gr({key:t,autoend:!0,enddelay:fu.router_event_delay,type:$s,debuginfo:{api:e}})}function bi(){r(zf,function(t){on(e.history,t,function(n){return function(r,a,i){var o;o=n.apply(this,arguments);try{xi(e.location.href,t)}catch(s){}return o}})}),ki(e,fc,function(){xi(e.location.href,fc)})}function ei(){ki(e,lc,function(){xi(e.location.href,lc)})}function ti(){var t=e.history;t?bi():ei()}function si(){fu.routerenable&&ti()}function ai(t){var e=t||new date,n=e.getfullyear()+"-",r=(e.getmonth()+1<10?"0"+(e.getmonth()+1):e.getmonth()+1)+"-",a=e.getdate()+" ";return n+r+a}function wi(){if(st(fu.req_capacity),d(),$())try{ki(e,"message",ni)}catch(t){}dn(qu),$()&&ya(),_i(),ui(),an(),si(),qu._end=c(),ve(function(){yl._end=qu._end}),wr()}function ci(){return e[uo]&&e[uo].inited}function ki(t,n){return _({},e[ko].config||{},t||{},n||{})}function oi(t){var n={};if(ji(t)){var r={};t(r),n=r}else n={server:t};e[ko]||(e[ko]={hook:{}}),xf(fu.token,function(t){t=t||{};var r=ki(n.server,t.config),a=ci();(!a||r.reinit)&&($e(r),qe(),!fu.key&&!fu.appkey||a||(wi(),e[uo].inited=!0),y({type:wc,name:ic,args:{firstinit:!a}}),ar(t))})}function ni(t){try{var n;if(!t||!t.data||0!==t.data.indexof("_tingyun"))return;if(n=t.data.replace("_tingyun",""),mt(n)){var r=mt(n);if("gather"===r.type&&"apm"===r.fromjs&&!e[ec]){bu.isgather=!0;var a=t.origin,i=hu.getelementsbytagname("head")[0],o=hu.createelement("script");o.type="text/javascript",o.src=a+"/assets/lib/gather/path-gather.min.js?version="+ai(new date),i.appendchild(o)}}}catch(s){}}function ii(t){if(t&&(ji(t)||qi(t))){var e=y({type:wc,name:nc,args:{firstinit:!ci()}});e.exist&&vt(e.results,function(t){return t===!1})||oi(t)}}function pi(){return window[uo]&&3===window[uo].mainversion?window[uo]:(_f.init=ii,_f)}var ri,di,li=s("string"),hi=s("array"),ji=s("function"),qi=s("object"),mi=s("number"),bi=s("undefined"),ui=s("headers"),fi=s("request"),gi=[].slice,yi='"',zi=/([\"\\])/g,ji=/\n/g,wi=e.json;d();var ki;ki=e.addeventlistener?h:m;var vi=e.encodeuricomponent,xi=function(){return!document.addeventlistener},$i=string.prototype.trim?function(t){return null==t?"":t.trim()}:function(t){return null==t?"":t.tostring().replace(/^\s+/,"").replace(/\s+$/,"")},qi=(e.location.protocol,function(){function t(t){return 0>t?nan:30>=t?0|math.random()*(1<=t?(0|math.random()*(1<<30))+(0|math.random()*(1<0;r>>>=1,a+=a)1&r&&(n=a+n);return n}return function(n){return n||(n=""),e(t(32),8)+n+e(t(16),4)+n+e(16384|t(12),4)+n+e(32768|t(14),4)+n+e(t(48),12)}}());n.prototype={on:function(t,e){var n=this;return li(t)?(n.events[t]||(n.events[t]=[])).push(e):hi(t)&&r(t,function(t){n.on(t,e)}),n},off:function(t,e){var n=arguments.length,r=this;if(0===n)return r.events={},r;var a=r.events[t];if(!a)return r;if(1===n)return r.events[t]=null,r;for(var i,o=a.length;o--;)if(i=a[o],i===e){a.splice(o,1);break}return r},emit:function(t){var e=[].slice.call(arguments,1),n=this.events[t];return n&&r(n,function(t){return t.apply(this,e)}),this}, unshift:function(t,e){var n=this;return(n.events[t]||(n.events[t]=[])).unshift(e),n}};var zi="error",to="load",eo="unload",no="beforeunload",ro="pagehide",ao="readystatechange",io="complete",oo="domcontentloaded",so="on",co="_ty_rum",uo="tingyun",lo=2,fo="__ign",po="__ty_asyncwrap__",ho="3",mo="1",vo="2",go="1",yo="2",_o="3",xo="4",bo="5",eo="reqbody",to="tingyun_cookie_value",so="tingyun_data",ao="x-tingyun",wo="x-tingyun-data",co="ty_base64",ko="__tingyun",oo="ty_",no=6e4,io="common",po="event",ro="ajax",do="timer",lo="iframe",ho="pf",jo="crosspage",qo="jserror",mo="resource",bo="main",uo="quit",fo="e",go="a",yo="t",zo="i",jo="p",wo="c",ko="j",vo="finish",xo="pending",$o="finish",qo="timeout",zo="fetchstart",ts="requeststart",es="responsestart",ns="responseend",rs="domcontentloadedeventstart",as="domcontentloadedeventend",is="dominteractive",os="domcomplete",ss="loadeventstart",cs="loadeventend",us="unloadeventstart",ls="unloadeventend",fs="domainlookupstart",ds="domainlookupend",ps="redirectstart",hs="redirectend",ms="connectstart",vs="connectend",gs="secureconnectionstart",ys=5,_s=5,xs="__ty_crs_page_events",bs="window_open",es="a_link",ts="form_submit",ss="__ty_event_patch_tag",as="__ty_event_patch_disable",ws="__ty_event_patch_id",cs="click",ks="submit",os="spe",ns="addeventlistener",is="onproperty",ps="inline",rs="img",ds="a",ls="form",hs=3,js="__ty_ignore",qs="__ty_xhr_hooked",ms="__ty_xhr_hooked_type",bs=200,us="ty_user_id",fs="ty_session_n_id",gs="ty_device_n_id",ys=18e5,zs="|",js="__ty_spe_store",ws=6e4,ks=6e5,vs="auto",xs="defined",$s="route",qs=500,zs="success",tc="fail",ec="ty_path_gather",nc="eagleeye-traceid",rc="__ty_element_cb",ac="__ty_cb_counter",ic="__ty_image_load_hook",oc=60,sc="__tagfirstpainttime",cc=500,uc=1e4,lc="hashchange",fc="popstate",dc="pushstate",pc="replacestate",hc="vuerouter",mc="normal",vc="script",gc="current",yc="crosspage",_c="visibilitychange",xc="url",bc="qh",ec="qb",tc="rh",sc="rb",ac=200,wc="lifecycle",cc="action",kc="contextsend",oc="send",nc="preinit",ic="init",pc="pageload",rc="ajax",dc="error",lc="useraction",hc="pageload",jc="ajax_send",qc="ajax_finish",mc="error_trigger",bc="paint",uc="largest-contentful-paint",fc="first-contentful-paint",gc=500,yc=1e4,zc=100,jc="__ty_resource_load_bind_id",wc="xhr",kc="fetch",vc="mpaas_rpc",xc="auto",$c="session",qc="start",zc="data",tu="end",eu="immediateevent",nu="event",ru=1,au=2,iu=3,ou="xhr",su="xdr",cu="beacon",uu="postmessage",lu="tingyun_storage",fu="agent_config",du=60,pu=3e4,hu="/js-config/config/web-agent",mu="get",vu="post",gu="http://mgw/",yu=100,_u=2e3,xu=4e3,bu=4e3,eu=7e3,tu={},su={imageresources:[]},au={},wu={context:null,uniqueid:0,actions:[],opt_custom_param:{},unassignedevents:[],cpactions:[],recordingcpactions:!1,cpparent:null,cpremain:{ajax:0,iframe:0},tryendcpactionsfailed:!1,globalasyncstore:null,globalajaxcontext:null,pfsent:!1,ajaxuniqueid:0,scope:null,performanceobserver:{},enablelcpobserver:!0,recordingpageloadevent:!1,recentfinishedajaxcontext:null,iframemetric:{},pageloadeventend:!1},cu="extra";r.prototype.setcontext=function(t,e){var n=this;t&&qi(t)?r(t,function(t,e){n._mergecontext(e,t)}):this._mergecontext(t,e)},r.prototype.setextracontext=function(t){this.setcontext(cu,t)},r.prototype.getcontext=function(t){return null==t?this._contexts:null==this._contexts?null:this._contexts[t]},r.prototype.getdata=function(){return null==this._contexts?null:{contexts:this._contexts}},r.prototype._mergecontext=function(t,e){null!=t&&qi(e)&&(this._contexts||(this._contexts={}),this._contexts[t]=_(this._contexts[t]||{},e))},r.prototype.tojson=function(){};var ku,ou,nu={lifecycle:[nc,ic,pc],action:[rc,dc,lc],contextsend:[hc],send:[]},iu="default",pu="default",ru={},du=object.create?object.create:j,lu=e.error,hu=e.document,ju=e.xmlhttprequest,qu=e.location,mu=e.navigator,bu=(e.htmlelement,{isgather:!1}),uu={},fu={},gu={info:{}},yu=gu.info,zu={},ju=function(){var t=e.navigator.standalone,n=x().tolowercase(),r=/safari/.test(n),a=/iphone|ipod|ipad/.test(n);return a&&!t&&!r},wu=!/(msie [0-8].\d+)/.test(x())&&document.addeventlistener,ku=$()?a:s,vu=tt,xu=!1;it.prototype.add=function(t){this.queue.length>=this.size||(this.queue.push(t),this.running||(this.running=!0,this.run()))},it.prototype.run=function(){var t=this,e=function(){t.queue.length>0?t.run():t.running=!1};this.handler(this.queue.shift(),e)},it.prototype.handler=function(t,e){ku(t,k(function(){e()}))},mu.sendbeacon&&(xu=!0),q()?(ku=at,xu=!1,yu.initiator=uu):e.xdomainrequest?(ku=et,yu.initiator=su):ju()?ot():(ku=nt,yu.initiator=ou),ku||(ku=function(t,e){e()},xu=!1),ki(e,no,function(t){xu&&(ku=rt,yu.initiator=cu)});var $u=ut.prototype;_($u,n.prototype);var qu=new ut;qu.on("send",function(t,e,n){n=n||w,ct({url:t,data:e,callback:n})});var zu={},tl=e.screen;tl&&(zu.sh=tl.height,zu.sw=tl.width);var el,nl,rl,al,il="http:",ol="https:",sl=[il,ol],cl=[],ul=[];nl=function(t){try{return e.localstorage.getitem(t)}catch(n){}},rl=function(t,n){try{e.localstorage.setitem(t,n)}catch(r){}return n},al=function(t){try{e.localstorage.removeitem(t)}catch(n){}};var ll=!0,fl=function(){try{var t=qi();return e.localstorage.setitem(t,t),e.localstorage.removeitem(t),!0}catch(n){return!1}}(),dl={};dl.localstorage=fl,dl.getentriesbyname=e.performance&&ji(e.performance.getentriesbyname),function(){function t(){var t,l,f=hu.documentelement;f.appendchild(c),u.style.csstext="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=a=s=!1,r=o=!0,e.getcomputedstyle&&(l=e.getcomputedstyle(u),n="1%"!==(l||{}).top,s="2px"===(l||{}).marginleft,a="4px"===(l||{width:"4px"}).width,u.style.marginright="50%",r="4px"===(l||{marginright:"4px"}).marginright,t=u.appendchild(hu.createelement("div")),t.style.csstext=u.style.csstext="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginright=t.style.width="0",u.style.width="1px",o=!parsefloat((e.getcomputedstyle(t)||{}).marginright),u.removechild(t)),u.style.display="none",i=0===u.getclientrects().length,i&&(u.style.display="",u.innerhtml="
t
",t=u.getelementsbytagname("td"),t[0].style.csstext="margin:0;border:0;padding:0;display:none",i=0===t[0].offsetheight,i&&(t[0].style.display="",t[1].style.display="none",i=0===t[0].offsetheight)),f.removechild(c)}var n,r,a,i,o,s,c=(hu.documentelement,hu.createelement("div")),u=hu.createelement("div");u.style&&(u.style.csstext="float:left;opacity:.5",dl.opacity="0.5"===u.style.opacity,dl.cssfloat=!!u.style.cssfloat,u.style.backgroundclip="content-box",u.clonenode(!0).style.backgroundclip="",dl.clearclonestyle="content-box"===u.style.backgroundclip,c=hu.createelement("div"),c.style.csstext="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",u.innerhtml="",c.appendchild(u),dl.boxsizing=""===u.style.boxsizing||""===u.style.mozboxsizing||""===u.style.webkitboxsizing,dl.reliablehiddenoffsets=function(){return null==n&&t(),i})}();var pl=[ro,do,lo,mo];re.prototype.end=function(t){var e=this;if(this.closed)return void(!this.cleared&&fu.console_debug&&console.warn("current context is already closed"));if(t&&(this.actioncount.ajax+=t.actioncount.ajax,this.actioncount.iframe+=t.actioncount.iframe,ee(this.items,t),this.updateremain(-1,t.type)),!this.endlock&&(this.isnoremain()||this.istimeout))if(this.e=c(),this.closed=!0,this.i&&cleartimeout(this.i),this.e-this.s>fu.eventtimeout&&(this.istimeout=!0),this.setstate(this.istimeout?qo:$o),this.data&&(this.data.state=this.state),this.parent)this.parent.end(this);else{var n;this.istimeout&&(this.isremainmeaningfulaction()||this.ismeaningfulaction())?n=this.composetimeoutactiondata():this.ismeaningfulaction()&&(n=this.composeactiondata()),n&&(this.eventdata=n,this.spebinded?null==this.spe?(this.waitingspeend=!0,this.waitingspetimer=i(function(){e.waitingspeend=!1,e.send()},uc)):(this.buildeventdatawithspe(),this.send()):this.send()),wu.context=null}},re.prototype.isnoremain=function(t){t=t||{};var e=!0;return r(this.remain,function(n,r){if(t.ignorefields&&e(t.ignorefields,r)>-1)return!0;var a=n.current<=0&&(t.testcurrent?!0:n.children<=0);return a?void 0:(e=!1,!1)}),e},re.prototype.clear=function(){this.closed=!0,this.cleared=!0,this.i&&cleartimeout(this.i)},re.prototype.ismeaningfulaction=function(){return this.actioncount.ajax>0||this.actioncount.iframe>0||this.type===ho},re.prototype.isremainmeaningfulaction=function(){return this.remain.ajax.current>0||this.remain.ajax.children>0||this.remain.iframe.current>0||this.remain.iframe.children>0},re.prototype.timeout=function(){this.istimeout=!0,this.setstate(qo),this.end(null,!0)},re.prototype.setdata=function(t){this.data||(this.data={}),_(this.data,t||{})},re.prototype.composeactiondata=function(){return{type:this.type,subtype:this.subtype,start:this.s,end:this.e,duration:this.e-this.s>0?this.e-this.s:0,data:_({},this.data||{},{items:(this.items||[]).slice()},zt(this.resource.srcs)?null:{resource:{srcs:this.resource.srcs,loaded:this.resource.loaded}})}},re.prototype.composetimeoutactiondata=function(){return this.collectactiondatafromtop(),this.composeactiondata()},re.prototype.collectactiondatafromtop=function(){ne(this.items,this.children)},re.prototype.collectcrosspagedata=function(t){if(t||(t=[]),this.crosspage=!0,this.data&&(this.data.crosspage=!0),t.unshift(this.data),this.parent)return this.parent.collectcrosspagedata(t);var e={type:this.type,subtype:this.subtype,start:this.s};return(this.isnoremain()||1===this.children.length)&&this.clear(),{action:e,data:t,requestinfo:jt(),commonactioninfo:xt(),fromurl:fu.ref}},re.prototype.canend=function(t){return!this.closed&&this.isnoremain(_({testcurrent:!0},t))},re.prototype.updateremain=function(t,e){if(this.remain[e]){e||(e=ro);var n=t||0;this.remain[e].current=this.remain[e].current+n;for(var r=this.parent;r;)r.remain[e].children=r.remain[e].children+n,r=r.parent}},re.prototype.setstate=function(t){return this.statechanged?!1:(this.state=t,this.statechanged=!0,!0)},re.prototype.current=function(){return wu.context},re.prototype.buildeventdatawithspe=function(){if(this.spe&&this.eventdata&&this.eventdata.data){var t=this.spe.xhrs;this.spe.hasajax=t&&t.length>0,delete this.spe.xhrs,this.eventdata.data.spe=this.spe}},re.prototype.setspe=function(t){return t?(this.spe=t,this.waitingspeend&&(this.buildeventdatawithspe(),this.send(),cleartimeout(this.waitingspetimer)),this.sent):void 0},re.prototype.send=function(){if(!this.sent){var t={};null!=this.spe&&this.spebinded&&(t.query={ss:1},this.spe.type===$s&&(t.query.rs=1)),ji(this.callback.beforesend)&&this.callback.beforesend.call(this,this),ji(this.callback.aftersend)&&(t.cb=this.callback.aftersend),this.setsendoptions(t),$t(this.eventdata,this.sendoptions),this.sent=!0}},re.prototype.removefromparent=function(){if(this.parent){var t=this.parent.children.indexof(this);t>-1&&this.parent.children.splice(t,1);var e=this.parent.items.indexof(this.data);e>-1&&this.parent.items.splice(e,1),this.parent.updateremain(-1,this.type),this.parent.end()}},re.prototype.addresource=function(t){var e=this;if(!t[jc]){var n={timeout:!1},r=qi();t[jc]=r,this.resource.handler[r]=n,this.resource.srcs[t.src]?this.resource.srcs[t.src]++:this.resource.srcs[t.src]=1,this.updateremain(1,mo),n.timerid=i(function(){var t=e.resource.handler[r];t&&(t.timeout=!0,e.updateremain(-1,mo),e.end())},fu.resourcewaittime),n.handler=function(){var n=e.resource.handler[r];if(n&&!n.timeout){cleartimeout(n.timerid),e.updateremain(-1,mo);try{if(!e.resource.loaded[t.src]&&dl.getentriesbyname){var a=window.performance.getentriesbyname(t.src)[0];a&&(e.resource.loaded[t.src]=a)}}catch(i){}e.end()}},t.addeventlistener("load",n.handler)}},re.prototype.haschildtype=function(t){var e=!1;return r(this.children,function(n){return n.type===t?(e=!0,!1):void 0}),e},re.buildimmediateaction=function(t,e,n,r){r=r||{};var a=_({type:t,subtype:e,state:vo,data:n},r.actionoptions||{});return a.data&&(a.data.state=a.state),r.notsend||$t(a,r.sendoptions),a},re.getrootcontext=function(t,e){if(!t&&!ji(e))return null;for(;t;){if(null==t.parent&&e.call(null,t))return t;t=t.parent}return null},re.prototype.tojson=function(){},re.prototype.setsendoptions=function(t){this.sendoptions||(this.sendoptions={}),_(this.sendoptions,t)},re.prototype.registertimeout=function(){var t=this;null==this.parent&&this.type!==ho&&(this.i=i(function(){t.timeout()},fu.eventtimeout))},re.prototype.unregistertimeout=function(){try{cleartimeout(this.i)}catch(t){}};var hl,ml,vl={},gl=fu.debuggable,yl={start:t,e:{},an:{count:0},visible:[]},_l=0,xl=1,bl=2,el=3,tl=4,sl=5,al=0,wl=1,cl=2,kl=3,ol=4,nl=5,il=0,pl=1,rl=2,dl=3,ll=e,hl=function(){var t="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789+/",e=function(t){for(var e={},n=0,r=t.length;r>n;n++)e[t.charat(n)]=n;return e}(t),n=string.fromcharcode,r=function(t){if(t.length<2){var e=t.charcodeat(0);return 128>e?t:2048>e?n(192|e>>>6)+n(128|63&e):n(224|e>>>12&15)+n(128|e>>>6&63)+n(128|63&e)}var e=65536+1024*(t.charcodeat(0)-55296)+(t.charcodeat(1)-56320);return n(240|e>>>18&7)+n(128|e>>>12&63)+n(128|e>>>6&63)+n(128|63&e)},a=/[\ud800-\udbff][\udc00-\udffff]|[^\x00-\x7f]/g,i=function(t){return t.replace(a,r)},o=function(e){var n=[0,2,1][e.length%3],r=e.charcodeat(0)<<16|(e.length>1?e.charcodeat(1):0)<<8|(e.length>2?e.charcodeat(2):0),a=[t.charat(r>>>18),t.charat(r>>>12&63),n>=2?"=":t.charat(r>>>6&63),n>=1?"=":t.charat(63&r)];return a.join("")},s=ll.btoa?function(t){return ll.btoa(t)}:function(t){return t.replace(/[\s\s]{1,3}/g,o)},c=function(t){var e="[object uint8array]"===object.prototype.tostring.call(t);return e?t.tostring("base64"):s(i(string(t)))},u=function(t,e){return e?c(string(t)).replace(/[+\/]/g,function(t){return"+"==t?"-":"_"}).replace(/=/g,""):c(t)},l=function(t){return u(t,!0)},f=new regexp(["[\xc0-\xdf][\x80-\xbf]","[\xe0-\xef][\x80-\xbf]{2}","[\xf0-\xf7][\x80-\xbf]{3}"].join("|"),"g"),d=function(t){switch(t.length){case 4:var e=(7&t.charcodeat(0))<<18|(63&t.charcodeat(1))<<12|(63&t.charcodeat(2))<<6|63&t.charcodeat(3),r=e-65536;return n((r>>>10)+55296)+n((1023&r)+56320);case 3:return n((15&t.charcodeat(0))<<12|(63&t.charcodeat(1))<<6|63&t.charcodeat(2));default:return n((31&t.charcodeat(0))<<6|63&t.charcodeat(1))}},p=function(t){return t.replace(f,d)},h=function(t){var r=t.length,a=r%4,i=(r>0?e[t.charat(0)]<<18:0)|(r>1?e[t.charat(1)]<<12:0)|(r>2?e[t.charat(2)]<<6:0)|(r>3?e[t.charat(3)]:0),o=[n(i>>>16),n(i>>>8&255),n(255&i)];return o.length-=[0,0,2,1][a],o.join("")},m=ll.atob?function(t){return ll.atob(t)}:function(t){return t.replace(/\s{1,4}/g,h)},v=function(t){return m(string(t).replace(/[^a-za-z0-9\+\/]/g,""))},g=function(t){return p(m(t))},y=function(t){return g(string(t).replace(/[-_]/g,function(t){return"-"==t?"+":"/"}).replace(/[^a-za-z0-9\+\/]/g,""))};return{atob:v,btoa:s,utob:i,encode:u,encodeuri:l,btou:p,decode:y}}(),jl=["id","key","appkey","token"],ql={},ml="undefined"!=typeof e.console,bl=["img","script","iframe"];!function(){if(fu.debuggable){var t,e,n="visibilitychange";bi(hu.hidden)?bi(hu.mshidden)?bi(hu.webkithidden)||(t="webkithidden",e="webkit"+n):(t="mshidden",e="ms"+n):(t="hidden",e=n),bi(hu.addeventlistener)||bi(hu[t])||ki(hu,e,ge(function(){yl.visible.push([hu[t],c()])}))}}();var ul,fl=null,gl=new n;ul=string.prototype.trim?string.prototype.trim:function(){return this.replace(/^[\s\ufeff\xa0]+|[\s\ufeff\xa0]+$/g,"")};var yl=1e4,zl=0,jl="report",wl="error";vn.prototype={add:function(t,e){this.len>this.limit||this.get(t)||(this.c[t]=e,this.len++)},get:function(t){return this.c[t]},reset:function(){this.c={},this.len=0}};var kl=new vn(100),vl={},xl={};_n.prototype={increase:function(){this.recordfilename(),this.count++},recordfilename:function(){var t=this.filename||"_";this.fep+=xl[t]?0:1,xl[t]=!0},fix:function(){var t=this,e=t.stack;if(e&&li(e)){e=e.split(/\n/);var n=[];r(e,function(t,e){-1==t.indexof(po)&&n.push(t)}),t.stack=n.join("\n")}},geterroroverview:function(){var t=this;return{o:t.time,e:t.msg,l:t.lineno,c:t.colno,r:t.filename,ec:t.count,s:t.stack,m:t.module,ep:t.ep,fep:t.fep,tr:t.trigger}},toobject:function(){var t=this.geterroroverview(),e={};return r(this.trace,function(t,n){e[n]=j({time:t.time},t.scope)}),t.trace=e,t},inittraceinstance:function(){var t={id:qi(),time:c(),scope:new r};return t},triggeractionhook:function(t){if(t){var e=_(this.geterroroverview(),{id:t.id,o:t.time});y({type:cc,name:dc,args:{target:this.error,actiondata:e},scope:t.scope}),e.id&&(t.id=e.id)}}},kn.prototype.put=function(t,e){if(this._size>=this._capacity)try{var n=this._cachekeys.shift();this._size--,this._cache[n]=null,delete this._cache[n]}catch(r){}this._cache[t]=e,this._cachekeys.push(t),this._size++},kn.prototype.get=function(t){return this._cache[t]};var $l=[cs,ks],ql=1,zl=2,tf=[cs,ks],ef=[],nf=new kn({capacity:20}),rf=null;bn.regex=/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i;var af=1,of=2,sf=4,cf=8,uf=tr.prototype;uf.create=uf.before=uf.after=uf.error=null;var lf;or.prototype={createcontext:function(){return du(this.active)},getcontext:function(){return this.active},get:function(t){return this.active?this.active[t]:void 0},set:function(t,e){return this.active?this.active[t]=e:void 0},enter:function(t){if(!t)throw new lu("context required!");this._set.push(this.active),this.active=t},exit:function(t){if(!t)throw new lu("context required!");if(t===this.active)return void(this.active=this._set.pop());var e=this._set.lastindexof?this._set.lastindexof(t):t(this._set,t);if(0>e)throw new lu("context not currently entered!");this._set.splice(e,1)},bind:function(t,e){e||(e=this.active?this.active:this.createcontext());var n=this;return function(){n.enter(e);try{return t.apply(this,arguments)}catch(r){try{var a="moduleid";r[a]=e[a]}catch(i){}throw r}finally{n.exit(e)}}}};var ff,df=!1,pf=cr(),hf={},mf={},vf=fr.prototype;vf.fail=vf.end=vf.store=w;var gf=dr.prototype;gf.end=gf.finish=gf.fail=null,gf.send=function(t){this.sent=!0;var e=this.geteventdata(t),n=this.timeout||ks;(fu.collect_noajax_hashroute||!(e.debuginfo&&e.debuginfo.api===lc||e.type===$s&&e.key.indexof("#")>-1)||0!==e.xhrs.length)&&(e.duration>=n||(y({type:cc,name:lc,args:{actiondata:e},scope:this.scope}),j(e,this.scope),lr(e)))},gf.geteventdata=function(t){var e=this,n=t.event&&t.event.xhrs||[];r(n,function(t){t.startspeoffset=t.start-e.s});var a={key:e.key,start:e.s,duration:e.e-e.s,status:e.status,type:e.type,xhrs:n};return e.duration>0&&(a.duration=e.duration,a.start=e.e-e.duration),e.type===$s&&fu.basehref&&(a.basehref=fu.basehref),this.debuginfo&&(a.debuginfo=this.debuginfo),a},gf.refresheventandstore=function(t){this.finish();var e=this.geteventdata(t);rl(js,di(e))};var yf,_f={mainversion:hs,version:"3.3.5",key:fu.key,pvid:fu.pvid,diagnose_href:lo,diagnose:tn,createevent:gr,globalstart:t,currentagent:qu,mark:br,wrapvuerouter:xr,setuid:ut,createautoevent:gr,endstoreevent:mr,captureexception:sn,setdid:ft,addhook:m,addlifecyclehook:b,addactionhook:u,addsendhook:g,setcontext:l,setextracontext:h,stoplcpobserver:qe,checkhooksupported:z,newsession:ie,endsession:oe,setsessioncontext:se,newevent:cn,createcustomevent:cn,parsequery:xt,json:{stringify:di,parse:mt},newaction:gr,getagentconfig:ze,util:{uuid:qi}};yf=e.localstorage?er():tr();var xf=yf.get,bf=yf.set,ef=0,tf=/(msie|trident)/i.test(x()),sf=hu.createelement("a"),af=cr(qu.href),wf={uniqueid:0},cf={error:990,abort:905,timeout:903},kf="onload",of=so+ao,nf={},if=0,pf={},rf=0,df=null,lf=0,hf="load",jf="reload",qf=["__wvjb_queue_message__","__bridge_loaded__"],mf={literal:{addheader:function(t,e){this.fetchoptions.headers[t]=e},getheader:function(t){return this.fetchoptions.headers[t]}},headers:{addheader:function(t,e){this.fetchoptions.headers.append(t,e)},getheader:function(t){return this.fetchoptions.headers.get(t)}},notsupport:{addheader:w,getheader:w}},bf="{0} not support",uf={},ff=k(function(){if(uf.overview){var t=_({},uf.overview),n=re(t,e);t.st=n;var r=gi(t,null,uo);re.buildimmediateaction(ho,uo,r)}}),gf=k(function(t){function n(t){return t?"1":"0"}var a=t.context;if(!wu.pfsent){var i=e.performance,o=!!i,s=i&&i.timing;o||pt(b(bf,["pf"]));var c=_(de(e),fu.pageserverdata,tu),u=_({le:c.le},zu);u.fp=be(u,e),u.dr=ie(u,e),u.fs=ee(u,e),u.le=pe(u,e,a);var l=_(c,u)||{},f=vi();f&&r(f,function(t,e){mi(t)&&t>=0&&(l[e]=t)});var d,p="",h=s?mi(s):0;r(["fp","fs","dr","le"],function(t){var e=t;"le"===t&&(e="trace"),p+=n((h?l[t]-h:l[t])>=uu[e+"_threshold"])}),o&&p.indexof("1")>-1&&(d=pi(i,s),l.ressize=!(!i||!i.getentriesbyname)),f&&(d||(d={}),d.mark=f),l.trflag=p||"0000",su.pfstart=c(),delete l.firstscreenresources,delete l.resources,d||(d={tr:!1,tt:y(hu.title),charset:hu.characterset});var m=wu.pageurlinfo||{};fu.collectallparam[xc]&&m.operaallparam&&(d.opera_all_param={},d.opera_all_param[xc]=m.operaallparam),a._ctx.pageclose&&(l.st=re(u.fp,e)),uf.overview=l;var v=gi(l,d);_(a.eventdata.data,v);try{fi(l,d)}catch(g){}wu.pfsent=!0}}),yf=k(function(){wu.pageloadevent&&(wu.pageloadevent.closed?ff():(yi(!0),wu.pageloadevent.closed||wu.pageloadevent.timeout()))}),zf=[dc,pc],jf=pi();return jf}(+new date,window);window.tingyun && window.tingyun.init && window.tingyun.init(function(ty_rum){ty_rum.server={"event_timeout":60000,"dr_threshold":15000,"opt_custom_param_rule":[],"cross_page_delay":3000,"router_enable":true,"fp_threshold":10000,"token":"a9cc24b4db354a5e89683f0feffd0e31","beacon":"bamp-js.999.com.cn","trace_threshold":20000,"x_server_switch":true,"ignore_err":false,"id":"4ga5hricw8g","key":"aexaipcqueu","inline_event_associate_threshold":1,"fs_threshold":15000}});/*ty_agent_end*/