PageSourceSearch

https://strack.greatlife.cn/sdk/JS/beidou.v2.min.js

js greatlife.cn collected 2026-10-04 05:46:40 UTC 237,642 bytes, 7 lines download raw bytes

1/*!
2 * Beidou.js v5.0.4
3 * (c) 2006-2022 Beidou Holding Ltd(Chengdu)
4 */
5function CreateDataProperty(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ToObject(e){if(null===e||e===undefined)throw TypeError();return Object(e)}Object.keys||(Object.keys=function(e){if(e!==Object(e))throw TypeError("Object.keys called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.defineProperties||(Object.defineProperties=function(e,t){for(var r=Object.keys(t),n=0;n<r.length;n++){var i=r[n];"__proto__"!==i&&Object.defineProperty(e,i,t[i])}return e}),Object.freeze||(Object.freeze=function(e){if(Object(e)!==e)throw new TypeError("Object.freeze can only be called on Objects.");return e},Object.create||(Object.create=function(e,t){if("object"!=typeof e)throw TypeError();function r(){}r.prototype=e;var n=new r;if(e&&(n.constructor=r),t!==undefined){if(t!==Object(t))throw TypeError();Object.defineProperties(n,t)}return n})),Object.setPrototypeOf||(Object.setPrototypeOf="object"!=typeof"".__proto__?function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=t[r]);e.__proto__=t}:function(e,t){e.__proto__=t}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){if(e!==Object(e))throw TypeError("Object.getPrototypeOf called on non-object");return e.__proto__||e.constructor.prototype||Object.prototype}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),document.querySelectorAll||(document.querySelectorAll=function(e){var t,r=document.createElement("style"),n=[];for(document.documentElement.firstChild.appendChild(r),document._qsa=[],r.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),r.parentNode.removeChild(r);document._qsa.length;)(t=document._qsa.shift()).style.removeAttribute("x-qsa"),n.push(t);return document._qsa=null,n}),"undefined"!=typeof Element&&Element.prototype&&!Element.prototype.getAttributeNames&&(Element.prototype.getAttributeNames=function(){for(var e=this.attributes,t=e.length,r=new Array(t),n=0;n<t;n++)r[n]=e[n].name;return r}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw TypeError();if(e.hasOwnProperty(t))return{value:e[t],enumerable:!0,writable:!0,configurable:!0}}),"function"!=typeof Object.getOwnPropertyNames&&(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyDescriptors||(Object.getOwnPropertyDescriptors=function(e){for(var t=ToObject(e),r=Object.getOwnPropertyNames(t),n=0;n<r.length;++n)r[n];return{}}),function(e){"use strict";function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?t(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function n(){
6/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
7n=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(x){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new P(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(x){return{type:"throw",arg:x}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var _={};u(_,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==t&&r.call(v,o)&&(_=v);var m=h.prototype=f.prototype=Object.create(_);function y(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,425 bytes, line 7
7))}function b(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function w(e,t){var r=e.iterator[t.method];if(undefined===r){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=undefined,w(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=undefined,t.done=!0,t};return i.next=i}}return{next:O}}function O(){return{value:undefined,done:!0}}return p.prototype=h,u(m,"constructor",h),u(h,"constructor",p),p.displayName=u(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,s,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},y(b.prototype),u(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(m),u(m,s,"Generator"),u(m,o,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=undefined),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];
vendor: 4,329 bytes, line 7
7if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=undefined),d}},e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}function h(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r["return"]||r["return"]()}finally{if(s)throw o}}}}var m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y=function(e){return e&&e.Math==Math&&e},b=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof m&&m)||function(){return this}()||Function("return this")(),w={},k=function(e){try{return!!e()}catch(t){return!0}},S=!k((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}}
vendor: 4,987 bytes, line 7
7)[1]})),P=!k((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),E=P,O=Function.prototype.call,x=E?O.bind(O):function(){return O.apply(O,arguments)},j={},I={}.propertyIsEnumerable,T=Object.getOwnPropertyDescriptor,D=T&&!I.call({1:2},1);j.f=D?function(e){var t=T(this,e);return!!t&&t.enumerable}:I;var N,A,C=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},R=P,L=Function.prototype,B=L.bind,M=L.call,H=R&&B.bind(M,M),$=R?function(e){return e&&H(e)}:function(e){return e&&function(){return M.apply(e,arguments)}},U=$,q=U({}.toString),J=U("".slice),F=function(e){return J(q(e),8,-1)},W=k,z=F,K=Object,G=$("".split),V=W((function(){return!K("z").propertyIsEnumerable(0)}))?function(e){return"String"==z(e)?G(e,""):K(e)}:K,X=function(e){return null===e||e===undefined},Y=X,Q=TypeError,Z=function(e){if(Y(e))throw Q("Can't call method on "+e);return e},ee=V,te=Z,re=function(e){return ee(te(e))},ne=function(e){return"function"==typeof e},ie=ne,oe="object"==typeof document&&document.all,ae=void 0===oe&&oe!==undefined?function(e){return"object"==typeof e?null!==e:ie(e)||e===oe}:function(e){return"object"==typeof e?null!==e:ie(e)},se=b,ue=ne,ce=function(e){return ue(e)?e:undefined},le=function(e,t){return arguments.length<2?ce(se[e]):se[e]&&se[e][t]},de=$({}.isPrototypeOf),fe=le("navigator","userAgent")||"",pe=b,he=fe,_e=pe.process,ge=pe.Deno,ve=_e&&_e.versions||ge&&ge.version,me=ve&&ve.v8;me&&(A=(N=me.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!A&&he&&(!(N=he.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=he.match(/Chrome\/(\d+)/))&&(A=+N[1]);var ye=A,be=ye,we=k,ke=!!Object.getOwnPropertySymbols&&!we((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&be&&be<41})),Se=ke&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Pe=le,Ee=ne,Oe=de,xe=Object,je=Se?function(e){return"symbol"==typeof e}:function(e){var t=Pe("Symbol");return Ee(t)&&Oe(t.prototype,xe(e))},Ie=String,Te=function(e){try{return Ie(e)}catch(t){return"Object"}},De=ne,Ne=Te,Ae=TypeError,Ce=function(e){if(De(e))return e;throw Ae(Ne(e)+" is not a function")},Re=Ce,Le=X,Be=function(e,t){var r=e[t];return Le(r)?undefined:Re(r)},Me=x,He=ne,$e=ae,Ue=TypeError,qe={exports:{}},Je=b,Fe=Object.defineProperty,We=function(e,t){try{Fe(Je,e,{value:t,configurable:!0,writable:!0})}catch(r){Je[e]=t}return t},ze=We,Ke="__core-js_shared__",Ge=b[Ke]||ze(Ke,{}),Ve=Ge;(qe.exports=function(e,t){return Ve[e]||(Ve[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.25.0",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Xe=Z,Ye=Object,Qe=function(e){return Ye(Xe(e))},Ze=Qe,et=$({}.hasOwnProperty),tt=Object.hasOwn||function(e,t){return et(Ze(e),t)},rt=$,nt=0,it=Math.random(),ot=rt(1..toString),at=function(e){return"Symbol("+(e===undefined?"":e)+")_"+ot(++nt+it,36)},st=b,ut=qe.exports,ct=tt,lt=at,dt=ke,ft=Se,pt=ut("wks"),ht=st.Symbol,_t=ht&&ht["for"],gt=ft?ht:ht&&ht.withoutSetter||lt,vt=function(e){if(!ct(pt,e)||!dt&&"string"!=typeof pt[e]){var t="Symbol."+e;dt&&ct(ht,e)?pt[e]=ht[e]:pt[e]=ft&&_t?_t(t):gt(t)}return pt[e]},mt=x,yt=ae,bt=je,wt=Be,kt=function(e,t){var r,n;if("string"===t&&He(r=e.toString)&&!$e(n=Me(r,e)))return n;if(He(r=e.valueOf)&&!$e(n=Me(r,e)))return n;if("string"!==t&&He(r=e.toString)&&!$e(n=Me(r,e)))return n;throw Ue("Can't convert object to primitive value")},St=TypeError,Pt=vt("toPrimitive"),Et=function(e,t){if(!yt(e)||bt(e))return e;var r,n=wt(e,Pt);if(n){if(t===undefined&&(t="default"),r=mt(n,e,t),!yt(r)||bt(r))return r;throw St("Can't convert object to primitive value")}return t===undefined&&(t="number"),kt(e,t)},Ot=Et,xt=je,jt=function(e){var t=Ot(e,"string");return xt(t)?t:t+""},It=ae,Tt=b.document,Dt=It(Tt)&&It(Tt.createElement),Nt=function(e){return Dt?Tt.createElement(e):{}},At=Nt,Ct=!S&&!k((function(){return 7!=Object.defineProperty(At("div"),"a",{get:function(){return 7}}).a})),Rt=S,Lt=x,Bt=j,Mt=C,Ht=re,$t=jt,Ut=tt,qt=Ct,Jt=Object.getOwnPropertyDescriptor;w.f=Rt?Jt:function(e,t){if(e=Ht(e),t=$t(t),qt)try{return Jt(e,t)}catch(r){}if(Ut(e,t))return Mt(!Lt(Bt.f,e,t),e[t])};var Ft={},Wt=S&&k((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),zt=ae,Kt=String,Gt=TypeError,Vt=function(e){if(zt(e))return e;throw Gt(Kt(e)+" is not an object")},Xt=S,Yt=Ct,Qt=Wt,Zt=Vt,er=jt,tr=TypeError,rr=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,ir="enumerable",or="configurable",ar="writable";Ft.f=Xt?Qt?function(e,t,r){if(Zt(e),t=er(t),Zt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&ar in r&&!r.writable){var n=nr(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:or in r?r.configurable:n.configurable,enumerable:ir in r?r.enumerable:n.enumerable,writable:!1})}return rr(e,t,r)}:rr:function(e,t,r){if(Zt(e),t=er(t),Zt(r),Yt)try{return rr(e,t,r)}catch(n){}
vendor: 18,768 bytes, line 7
7if("get"in r||"set"in r)throw tr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var sr=Ft,ur=C,cr=S?function(e,t,r){return sr.f(e,t,ur(1,r))}:function(e,t,r){return e[t]=r,e},lr={exports:{}},dr=S,fr=tt,pr=Function.prototype,hr=dr&&Object.getOwnPropertyDescriptor,_r=fr(pr,"name"),gr={EXISTS:_r,PROPER:_r&&"something"===function(){}.name,CONFIGURABLE:_r&&(!dr||dr&&hr(pr,"name").configurable)},vr=ne,mr=Ge,yr=$(Function.toString);vr(mr.inspectSource)||(mr.inspectSource=function(e){return yr(e)});var br,wr,kr,Sr=mr.inspectSource,Pr=ne,Er=b.WeakMap,Or=Pr(Er)&&/native code/.test(String(Er)),xr=qe.exports,jr=at,Ir=xr("keys"),Tr=function(e){return Ir[e]||(Ir[e]=jr(e))},Dr={},Nr=Or,Ar=b,Cr=$,Rr=ae,Lr=cr,Br=tt,Mr=Ge,Hr=Tr,$r=Dr,Ur="Object already initialized",qr=Ar.TypeError,Jr=Ar.WeakMap;if(Nr||Mr.state){var Fr=Mr.state||(Mr.state=new Jr),Wr=Cr(Fr.get),zr=Cr(Fr.has),Kr=Cr(Fr.set);br=function(e,t){if(zr(Fr,e))throw qr(Ur);return t.facade=e,Kr(Fr,e,t),t},wr=function(e){return Wr(Fr,e)||{}},kr=function(e){return zr(Fr,e)}}else{var Gr=Hr("state");$r[Gr]=!0,br=function(e,t){if(Br(e,Gr))throw qr(Ur);return t.facade=e,Lr(e,Gr,t),t},wr=function(e){return Br(e,Gr)?e[Gr]:{}},kr=function(e){return Br(e,Gr)}}var Vr={set:br,get:wr,has:kr,enforce:function(e){return kr(e)?wr(e):br(e,{})},getterFor:function(e){return function(t){var r;if(!Rr(t)||(r=wr(t)).type!==e)throw qr("Incompatible receiver, "+e+" required");return r}}},Xr=k,Yr=ne,Qr=tt,Zr=S,en=gr.CONFIGURABLE,tn=Sr,rn=Vr.enforce,nn=Vr.get,on=Object.defineProperty,an=Zr&&!Xr((function(){return 8!==on((function(){}),"length",{value:8}).length})),sn=String(String).split("String"),un=lr.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Qr(e,"name")||en&&e.name!==t)&&(Zr?on(e,"name",{value:t,configurable:!0}):e.name=t),an&&r&&Qr(r,"arity")&&e.length!==r.arity&&on(e,"length",{value:r.arity});try{r&&Qr(r,"constructor")&&r.constructor?Zr&&on(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=undefined)}catch(i){}var n=rn(e);return Qr(n,"source")||(n.source=sn.join("string"==typeof t?t:"")),e};Function.prototype.toString=un((function(){return Yr(this)&&nn(this).source||tn(this)}),"toString");var cn=ne,ln=Ft,dn=lr.exports,fn=We,pn=function(e,t,r,n){n||(n={});var i=n.enumerable,o=n.name!==undefined?n.name:t;if(cn(r)&&dn(r,o,n),n.global)i?e[t]=r:fn(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(a){}i?e[t]=r:ln.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},hn={},_n=Math.ceil,gn=Math.floor,vn=Math.trunc||function(e){var t=+e;return(t>0?gn:_n)(t)},mn=function(e){var t=+e;return t!=t||0===t?0:vn(t)},yn=mn,bn=Math.max,wn=Math.min,kn=function(e,t){var r=yn(e);return r<0?bn(r+t,0):wn(r,t)},Sn=mn,Pn=Math.min,En=function(e){return e>0?Pn(Sn(e),9007199254740991):0},On=En,xn=function(e){return On(e.length)},jn=re,In=kn,Tn=xn,Dn=function(e){return function(t,r,n){var i,o=jn(t),a=Tn(o),s=In(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},Nn={includes:Dn(!0),indexOf:Dn(!1)},An=tt,Cn=re,Rn=Nn.indexOf,Ln=Dr,Bn=$([].push),Mn=function(e,t){var r,n=Cn(e),i=0,o=[];for(r in n)!An(Ln,r)&&An(n,r)&&Bn(o,r);for(;t.length>i;)An(n,r=t[i++])&&(~Rn(o,r)||Bn(o,r));return o},Hn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$n=Mn,Un=Hn.concat("length","prototype");hn.f=Object.getOwnPropertyNames||function(e){return $n(e,Un)};var qn={};qn.f=Object.getOwnPropertySymbols;var Jn=le,Fn=hn,Wn=qn,zn=Vt,Kn=$([].concat),Gn=Jn("Reflect","ownKeys")||function(e){var t=Fn.f(zn(e)),r=Wn.f;return r?Kn(t,r(e)):t},Vn=tt,Xn=Gn,Yn=w,Qn=Ft,Zn=k,ei=ne,ti=/#|\.prototype\./,ri=function(e,t){var r=ii[ni(e)];return r==ai||r!=oi&&(ei(t)?Zn(t):!!t)},ni=ri.normalize=function(e){return String(e).replace(ti,".").toLowerCase()},ii=ri.data={},oi=ri.NATIVE="N",ai=ri.POLYFILL="P",si=ri,ui=b,ci=w.f,li=cr,di=pn,fi=We,pi=function(e,t,r){for(var n=Xn(t),i=Qn.f,o=Yn.f,a=0;a<n.length;a++){var s=n[a];Vn(e,s)||r&&Vn(r,s)||i(e,s,o(t,s))}},hi=si,_i=function(e,t){var r,n,i,o,a,s=e.target,u=e.global,c=e.stat;if(r=u?ui:c?ui[s]||fi(s,{}):(ui[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(a=ci(r,n))&&a.value:r[n],!hi(u?n:s+(c?".":"#")+n,e.forced)&&i!==undefined){if(typeof o==typeof i)continue;pi(o,i)}(e.sham||i&&i.sham)&&li(o,"sham",!0),di(r,n,o,e)}},gi=Ce,vi=P,mi=$($.bind),yi=function(e,t){return gi(e),t===undefined?e:vi?mi(e,t):function(){return e.apply(t,arguments)}},bi=F,wi=Array.isArray||function(e){return"Array"==bi(e)},ki={};ki[vt("toStringTag")]="z";var Si="[object z]"===String(ki),Pi=Si,Ei=ne,Oi=F,xi=vt("toStringTag"),ji=Object,Ii="Arguments"==Oi(function(){return arguments}()),Ti=Pi?Oi:function(e){var t,r,n;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=ji(e),xi))?r:Ii?Oi(t):"Object"==(n=Oi(t))&&Ei(t.callee)?"Arguments":n},Di=$,Ni=k,Ai=ne,Ci=Ti,Ri=Sr,Li=function(){},Bi=[],Mi=le("Reflect","construct"),Hi=/^\s*(?:class|function)\b/,$i=Di(Hi.exec),Ui=!Hi.exec(Li),qi=function(e){if(!Ai(e))return!1;try{return Mi(Li,Bi,e),!0}catch(t){return!1}},Ji=function(e){if(!Ai(e))return!1;switch(Ci(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ui||!!$i(Hi,Ri(e))}catch(t){return!0}};Ji.sham=!0;var Fi=!Mi||Ni((function(){var e;return qi(qi.call)||!qi(Object)||!qi((function(){e=!0}))||e}))?Ji:qi,Wi=wi,zi=Fi,Ki=ae,Gi=vt("species"),Vi=Array,Xi=function(e){var t;return Wi(e)&&(t=e.constructor,(zi(t)&&(t===Vi||Wi(t.prototype))||Ki(t)&&null===(t=t[Gi]))&&(t=undefined)),t===undefined?Vi:t},Yi=function(e,t){return new(Xi(e))(0===t?0:t)},Qi=yi,Zi=V,eo=Qe,to=xn,ro=Yi,no=$([].push),io=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(u,c,l,d){for(var f,p,h=eo(u),_=Zi(h),g=Qi(c,l),v=to(_),m=0,y=d||ro,b=t?y(u,v):r||a?y(u,0):undefined;v>m;m++)if((s||m in _)&&(p=g(f=_[m],m,h),e))if(t)b[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:no(b,f)}else switch(e){case 4:return!1;case 7:no(b,f)}return o?-1:n||i?i:b}},oo={forEach:io(0),map:io(1),filter:io(2),some:io(3),every:io(4),find:io(5),findIndex:io(6),filterReject:io(7)},ao=k,so=function(e,t){var r=[][e];return!!r&&ao((function(){r.call(null,t||function(){return 1},1)}))},uo=oo.forEach,co=so("forEach")?[].forEach:function(e){return uo(this,e,arguments.length>1?arguments[1]:undefined)};_i({target:"Array",proto:!0,forced:[].forEach!=co},{forEach:co});var lo=Ti,fo=Si?{}.toString:function(){return"[object "+lo(this)+"]"};Si||pn(Object.prototype,"toString",fo,{unsafe:!0});var po=ne,ho=String,_o=TypeError,go=$,vo=Vt,mo=function(e){if("object"==typeof e||po(e))return e;throw _o("Can't set "+ho(e)+" as a prototype")},yo=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=go(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return vo(r),mo(n),t?e(r,n):r.__proto__=n,r}}():undefined),bo=ne,wo=ae,ko=yo,So=function(e,t,r){var n,i;return ko&&bo(n=t.constructor)&&n!==r&&wo(i=n.prototype)&&i!==r.prototype&&ko(e,i),e},Po=ae,Eo=F,Oo=vt("match"),xo=function(e){var t;return Po(e)&&((t=e[Oo])!==undefined?!!t:"RegExp"==Eo(e))},jo=Ti,Io=String,To=function(e){if("Symbol"===jo(e))throw TypeError("Cannot convert a Symbol value to a string");return Io(e)},Do=Vt,No=function(){var e=Do(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Ao=x,Co=tt,Ro=de,Lo=No,Bo=RegExp.prototype,Mo=function(e){var t=e.flags;return t!==undefined||"flags"in Bo||Co(e,"flags")||!Ro(Bo,e)?t:Ao(Lo,e)},Ho=k,$o=b.RegExp,Uo=Ho((function(){var e=$o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),qo=Uo||Ho((function(){return!$o("a","y").sticky})),Jo={BROKEN_CARET:Uo||Ho((function(){var e=$o("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:qo,UNSUPPORTED_Y:Uo},Fo=Ft.f,Wo=le,zo=Ft,Ko=S,Go=vt("species"),Vo=function(e){var t=Wo(e),r=zo.f;Ko&&t&&!t[Go]&&r(t,Go,{configurable:!0,get:function(){return this}})},Xo=k,Yo=b.RegExp,Qo=Xo((function(){var e=Yo(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Zo=k,ea=b.RegExp,ta=Zo((function(){var e=ea("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ra=S,na=b,ia=$,oa=si,aa=So,sa=cr,ua=hn.f,ca=de,la=xo,da=To,fa=Mo,pa=Jo,ha=function(e,t,r){r in e||Fo(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},_a=pn,ga=k,va=tt,ma=Vr.enforce,ya=Vo,ba=Qo,wa=ta,ka=vt("match"),Sa=na.RegExp,Pa=Sa.prototype,Ea=na.SyntaxError,Oa=ia(Pa.exec),xa=ia("".charAt),ja=ia("".replace),Ia=ia("".indexOf),Ta=ia("".slice),Da=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Na=/a/g,Aa=/a/g,Ca=new Sa(Na)!==Na,Ra=pa.MISSED_STICKY,La=pa.UNSUPPORTED_Y,Ba=ra&&(!Ca||Ra||ba||wa||ga((function(){return Aa[ka]=!1,Sa(Na)!=Na||Sa(Aa)==Aa||"/a/i"!=Sa(Na,"i")})));if(oa("RegExp",Ba)){for(var Ma=function(e,t){var r,n,i,o,a,s,u=ca(Pa,this),c=la(e),l=t===undefined,d=[],f=e;if(!u&&c&&l&&e.constructor===Ma)return e;if((c||ca(Pa,e))&&(e=e.source,l&&(t=fa(f))),e=e===undefined?"":da(e),t=t===undefined?"":da(t),f=e,ba&&"dotAll"in Na&&(n=!!t&&Ia(t,"s")>-1)&&(t=ja(t,/s/g,"")),r=t,Ra&&"sticky"in Na&&(i=!!t&&Ia(t,"y")>-1)&&La&&(t=ja(t,/y/g,"")),wa&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],a={},s=!1,u=!1,c=0,l="";n<=r;n++){if("\\"===(t=xa(e,n)))t+=xa(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:Oa(Da,Ta(e,n+1))&&(n+=2,u=!0),i+=t,c++;continue;case">"===t&&u:if(""===l||va(a,l))throw new Ea("Invalid capture group name");a[l]=!0,o[o.length]=[l,c],u=!1,l="";continue}u?l+=t:i+=t}return[i,o]}(e),e=o[0],d=o[1]),a=aa(Sa(e,t),u?this:Pa,Ma),(n||i||d.length)&&(s=ma(a),n&&(s.dotAll=!0,s.raw=Ma(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=xa(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+xa(e,++n);return i}(e),r)),i&&(s.sticky=!0),d.length&&(s.groups=d)),e!==f)try{sa(a,"source",""===f?"(?:)":f)}catch(p){}return a},Ha=ua(Sa),$a=0;Ha.length>$a;)ha(Ma,Sa,Ha[$a++]);Pa.constructor=Ma,Ma.prototype=Pa,_a(na,"RegExp",Ma,{constructor:!0})}ya("RegExp");var Ua={},qa=Mn,Ja=Hn,Fa=Object.keys||function(e){return qa(e,Ja)},Wa=S,za=Wt,Ka=Ft,Ga=Vt,Va=re,Xa=Fa;Ua.f=Wa&&!za?Object.defineProperties:function(e,t){Ga(e);for(var r,n=Va(t),i=Xa(t),o=i.length,a=0;o>a;)Ka.f(e,r=i[a++],n[r]);return e};var Ya,Qa=le("document","documentElement"),Za=Vt,es=Ua,ts=Hn,rs=Dr,ns=Qa,is=Nt,os=Tr("IE_PROTO"),as=function(){},ss=function(e){return"<script>"+e+"</"+"script>"},us=function(e){e.write(ss("")),e.close();var t=e.parentWindow.Object;return e=null,t},cs=function(){try{Ya=new ActiveXObject("htmlfile")}catch(n){}var e,t;cs="undefined"!=typeof document?document.domain&&Ya?us(Ya):((t=is("iframe")).style.display="none",ns.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ss("document.F=Object")),e.close(),e.F):us(Ya);for(var r=ts.length;r--;)delete cs.prototype[ts[r]];return cs()};rs[os]=!0;var ls=Object.create||function(e,t){var r;return null!==e?(as.prototype=Za(e),r=new as,as.prototype=null,r[os]=e):r=cs(),t===undefined?r:es.f(r,t)},ds=x,fs=$,ps=To,hs=No,_s=Jo,gs=qe.exports,vs=ls,ms=Vr.get,ys=Qo,bs=ta,ws=gs("native-string-replace",String.prototype.replace),ks=RegExp.prototype.exec,Ss=ks,Ps=fs("".charAt),Es=fs("".indexOf),Os=fs("".replace),xs=fs("".slice),js=function(){var e=/a/,t=/b*/g;return ds(ks,e,"a"),ds(ks,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Is=_s.BROKEN_CARET,Ts=/()??/.exec("")[1]!==undefined;(js||Ts||Is||ys||bs)&&(Ss=function(e){var t,r,n,i,o,a,s,u=this,c=ms(u),l=ps(e),d=c.raw;if(d)return d.lastIndex=u.lastIndex,t=ds(Ss,d,l),u.lastIndex=d.lastIndex,t;var f=c.groups,p=Is&&u.sticky,h=ds(hs,u),_=u.source,g=0,v=l;if(p&&(h=Os(h,"y",""),-1===Es(h,"g")&&(h+="g"),v=xs(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Ps(l,u.lastIndex-1))&&(_="(?: "+_+")",v=" "+v,g++),r=new RegExp("^(?:"+_+")",h)),Ts&&(r=new RegExp("^"+_+"$(?!\\s)",h)),js&&(n=u.lastIndex),i=ds(ks,p?r:u,v),p?i?(i.input=xs(i.input,g),i[0]=xs(i[0],g),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:js&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Ts&&i&&i.length>1&&ds(ws,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)arguments[o]===undefined&&(i[o]=undefined)})),i&&f)for(i.groups=a=vs(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=i[s[1]];return i});var Ds=Ss;_i({target:"RegExp",proto:!0,forced:/./.exec!==Ds},{exec:Ds});var Ns=gr.PROPER,As=pn,Cs=Vt,Rs=To,Ls=k,Bs=Mo,Ms="toString",Hs=RegExp.prototype.toString,$s=Ls((function(){return"/a/b"!=Hs.call({source:"a",flags:"b"})})),Us=Ns&&Hs.name!=Ms;($s||Us)&&As(RegExp.prototype,Ms,(function(){var e=Cs(this);return"/"+Rs(e.source)+"/"+Rs(Bs(e))}),{unsafe:!0});var qs=$([].slice),Js=$,Fs=Ce,Ws=ae,zs=tt,Ks=qs,Gs=P,Vs=Function,Xs=Js([].concat),Ys=Js([].join),Qs={},Zs=function(e,t,r){if(!zs(Qs,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Qs[t]=Vs("C,a","return new C("+Ys(n,",")+")")}return Qs[t](e,r)},eu=Gs?Vs.bind:function(e){var t=Fs(this),r=t.prototype,n=Ks(arguments,1),i=function(){var r=Xs(n,Ks(arguments));return this instanceof i?Zs(t,r.length,r):t.apply(e,r)};return Ws(r)&&(i.prototype=r),i},tu=eu;_i({target:"Function",proto:!0,forced:Function.bind!==tu},{bind:tu});var ru={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},nu=Nt("span").classList,iu=nu&&nu.constructor&&nu.constructor.prototype,ou=iu===Object.prototype?undefined:iu,au=b,su=ru,uu=ou,cu=co,lu=cr,du=function(e){if(e&&e.forEach!==cu)try{lu(e,"forEach",cu)}catch(t){e.forEach=cu}};for(var fu in su)su[fu]&&du(au[fu]&&au[fu].prototype);du(uu);var pu=S,hu=gr.EXISTS,_u=$,gu=Ft.f,vu=Function.prototype,mu=_u(vu.toString),yu=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,bu=_u(yu.exec);pu&&!hu&&gu(vu,"name",{configurable:!0,get:function(){try{return bu(yu,mu(this))[1]}catch(e){return""}}});var wu=jt,ku=Ft,Su=C,Pu=function(e,t,r){var n=wu(t);n in e?ku.f(e,n,Su(0,r)):e[n]=r},Eu=k,Ou=ye,xu=vt("species"),ju=function(e){return Ou>=51||!Eu((function(){var t=[];return(t.constructor={})[xu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Iu=_i,Tu=wi,Du=Fi,Nu=ae,Au=kn,Cu=xn,Ru=re,Lu=Pu,Bu=vt,Mu=qs,Hu=ju("slice"),$u=Bu("species"),Uu=Array,qu=Math.max;Iu({target:"Array",proto:!0,forced:!Hu},{slice:function(e,t){var r,n,i,o=Ru(this),a=Cu(o),s=Au(e,a),u=Au(t===undefined?a:t,a);if(Tu(o)&&(r=o.constructor,(Du(r)&&(r===Uu||Tu(r.prototype))||Nu(r)&&null===(r=r[$u]))&&(r=undefined),r===Uu||r===undefined))return Mu(o,s,u);for(n=new(r===undefined?Uu:r)(qu(u-s,0)),i=0;s<u;s++,i++)s in o&&Lu(n,i,o[s]);return n.length=i,n}});var Ju=TypeError,Fu=function(e){if(e>9007199254740991)throw Ju("Maximum allowed index exceeded");return e},Wu=_i,zu=k,Ku=wi,Gu=ae,Vu=Qe,Xu=xn,Yu=Fu,Qu=Pu,Zu=Yi,ec=ju,tc=ye,rc=vt("isConcatSpreadable"),nc=tc>=51||!zu((function(){var e=[];return e[rc]=!1,e.concat()[0]!==e})),ic=ec("concat"),oc=function(e){if(!Gu(e))return!1;var t=e[rc];return t!==undefined?!!t:Ku(e)};Wu({target:"Array",proto:!0,arity:1,forced:!nc||!ic},{concat:function(e){var t,r,n,i,o,a=Vu(this),s=Zu(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(oc(o=-1===t?a:arguments[t]))for(i=Xu(o),Yu(u+i),r=0;r<i;r++,u++)r in o&&Qu(s,u,o[r]);else Yu(u+1),Qu(s,u++,o);return s.length=u,s}});var ac=$,sc=pn,uc=Ds,cc=k,lc=vt,dc=cr,fc=lc("species"),pc=RegExp.prototype,hc=function(e,t,r,n){var i=lc(e),o=!cc((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!cc((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[fc]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return t=!0,null},r[i](""),!t}));if(!o||!a||r){var s=ac(/./[i]),u=t(i,""[e],(function(e,t,r,n,i){var a=ac(e),u=t.exec;return u===uc||u===pc.exec?o&&!i?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));sc(String.prototype,e,u[0]),sc(pc,i,u[1])}n&&dc(pc[i],"sham",!0)},_c=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},gc=x,vc=Vt,mc=ne,yc=F,bc=Ds,wc=TypeError,kc=function(e,t){var r=e.exec;if(mc(r)){var n=gc(r,e,t);return null!==n&&vc(n),n}if("RegExp"===yc(e))return gc(bc,e,t);throw wc("RegExp#exec called on incompatible receiver")},Sc=x,Pc=Vt,Ec=X,Oc=Z,xc=_c,jc=To,Ic=Be,Tc=kc;hc("search",(function(e,t,r){return[function(t){var r=Oc(this),n=Ec(t)?undefined:Ic(t,e);return n?Sc(n,t,r):new RegExp(t)[e](jc(r))},function(e){var n=Pc(this),i=jc(e),o=r(t,n,i);if(o.done)return o.value;var a=n.lastIndex;xc(a,0)||(n.lastIndex=0);var s=Tc(n,i);return xc(n.lastIndex,a)||(n.lastIndex=a),null===s?-1:s.index}]}));var Dc=P,Nc=Function.prototype,Ac=Nc.apply,Cc=Nc.call,Rc="object"==typeof Reflect&&Reflect.apply||(Dc?Cc.bind(Ac):function(){return Cc.apply(Ac,arguments)}),Lc=$,Bc=mn,Mc=To,Hc=Z,$c=Lc("".charAt),Uc=Lc("".charCodeAt),qc=Lc("".slice),Jc=function(e){return function(t,r){var n,i,o=Mc(Hc(t)),a=Bc(r),s=o.length;return a<0||a>=s?e?"":undefined:(n=Uc(o,a))<55296||n>56319||a+1===s||(i=Uc(o,a+1))<56320||i>57343?e?$c(o,a):n:e?qc(o,a,a+2):i-56320+(n-55296<<10)+65536}},Fc={codeAt:Jc(!1),charAt:Jc(!0)},Wc=Fc.charAt,zc=function(e,t,r){return t+(r?Wc(e,t).length:1)},Kc=$,Gc=Qe,Vc=Math.floor,Xc=Kc("".charAt),Yc=Kc("".replace),Qc=Kc("".slice),Zc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,el=/\$([$&'`]|\d{1,2})/g,tl=Rc,rl=x,nl=$,il=hc,ol=k,al=Vt,sl=ne,ul=X,cl=mn,ll=En,dl=To,fl=Z,pl=zc,hl=Be,_l=function(e,t,r,n,i,o){var a=r+e.length,s=n.length,u=el;return i!==undefined&&(i=Gc(i),u=Zc),Yc(o,u,(function(o,u){var c;switch(Xc(u,0)){case"$":return"$";case"&":return e;case"`":return Qc(t,0,r);case"'":return Qc(t,a);case"<":c=i[Qc(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>s){var d=Vc(l/10);return 0===d?o:d<=s?n[d-1]===undefined?Xc(u,1):n[d-1]+Xc(u,1):o}c=n[l-1]}return c===undefined?"":c}))},gl=kc,vl=vt("replace"),ml=Math.max,yl=Math.min,bl=nl([].concat),wl=nl([].push),kl=nl("".indexOf),Sl=nl("".slice),Pl="$0"==="a".replace(/./,"$0"),El=!!/./[vl]&&""===/./[vl]("a","$0");il("replace",(function(e,t,r){var n=El?"$":"$0";return[function(e,r){var n=fl(this),i=ul(e)?undefined:hl(e,vl);
7return i?rl(i,e,n,r):rl(t,dl(n),e,r)},function(e,i){var o=al(this),a=dl(e);if("string"==typeof i&&-1===kl(i,n)&&-1===kl(i,"$<")){var s=r(t,o,a,i);if(s.done)return s.value}var u=sl(i);u||(i=dl(i));var c=o.global;if(c){var l=o.unicode;o.lastIndex=0}for(var d=[];;){var f=gl(o,a);if(null===f)break;if(wl(d,f),!c)break;""===dl(f[0])&&(o.lastIndex=pl(a,ll(o.lastIndex),l))}for(var p,h="",_=0,g=0;g<d.length;g++){for(var v=dl((f=d[g])[0]),m=ml(yl(cl(f.index),a.length),0),y=[],b=1;b<f.length;b++)wl(y,(p=f[b])===undefined?p:String(p));var w=f.groups;if(u){var k=bl([v],y,m,a);w!==undefined&&wl(k,w);var S=dl(tl(i,undefined,k))}else S=_l(v,a,m,y,w,i);m>=_&&(h+=Sl(a,_,m)+S,_=m+v.length)}return h+Sl(a,_)}]}),!!ol((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Pl||El);var Ol=$,xl=pn,jl=Date.prototype,Il="Invalid Date",Tl="toString",Dl=Ol(jl.toString),Nl=Ol(jl.getTime);String(new Date(NaN))!=Il&&xl(jl,Tl,(function(){var e=Nl(this);return e==e?Dl(this):Il}));var Al=$(1..valueOf),Cl="\t\n\x0B\f\r                 \u2028\u2029\ufeff",Rl=Z,Ll=To,Bl=$("".replace),Ml="[\t\n\x0B\f\r                 \u2028\u2029\ufeff]",Hl=RegExp("^"+Ml+Ml+"*"),$l=RegExp(Ml+Ml+"*$"),Ul=function(e){return function(t){var r=Ll(Rl(t));return 1&e&&(r=Bl(r,Hl,"")),2&e&&(r=Bl(r,$l,"")),r}},ql={start:Ul(1),end:Ul(2),trim:Ul(3)},Jl=S,Fl=b,Wl=$,zl=si,Kl=pn,Gl=tt,Vl=So,Xl=de,Yl=je,Ql=Et,Zl=k,ed=hn.f,td=w.f,rd=Ft.f,nd=Al,id=ql.trim,od="Number",ad=Fl.Number,sd=ad.prototype,ud=Fl.TypeError,cd=Wl("".slice),ld=Wl("".charCodeAt),dd=function(e){var t=Ql(e,"number");return"bigint"==typeof t?t:fd(t)},fd=function(e){var t,r,n,i,o,a,s,u,c=Ql(e,"number");if(Yl(c))throw ud("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=id(c),43===(t=ld(c,0))||45===t){if(88===(r=ld(c,2))||120===r)return NaN}else if(48===t){switch(ld(c,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+c}for(a=(o=cd(c,2)).length,s=0;s<a;s++)if((u=ld(o,s))<48||u>i)return NaN;return parseInt(o,n)}return+c};if(zl(od,!ad(" 0o1")||!ad("0b1")||ad("+0x1"))){for(var pd,hd=function(e){var t=arguments.length<1?0:ad(dd(e)),r=this;return Xl(sd,r)&&Zl((function(){nd(r)}))?Vl(Object(t),r,hd):t},_d=Jl?ed(ad):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),gd=0;_d.length>gd;gd++)Gl(ad,pd=_d[gd])&&!Gl(hd,pd)&&rd(hd,pd,td(ad,pd));hd.prototype=sd,sd.constructor=hd,Kl(Fl,od,hd,{constructor:!0})}var vd=vt,md=ls,yd=Ft.f,bd=vd("unscopables"),wd=Array.prototype;wd[bd]==undefined&&yd(wd,bd,{configurable:!0,value:md(null)});var kd=function(e){wd[bd][e]=!0},Sd=Nn.includes,Pd=kd;_i({target:"Array",proto:!0,forced:k((function(){return!Array(1).includes()}))},{includes:function(e){return Sd(this,e,arguments.length>1?arguments[1]:undefined)}}),Pd("includes");var Ed=xo,Od=TypeError,xd=function(e){if(Ed(e))throw Od("The method doesn't accept regular expressions");return e},jd=vt("match"),Id=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[jd]=!1,"/./"[e](t)}catch(n){}}return!1},Td=_i,Dd=xd,Nd=Z,Ad=To,Cd=Id,Rd=$("".indexOf);Td({target:"String",proto:!0,forced:!Cd("includes")},{includes:function(e){return!!~Rd(Ad(Nd(this)),Ad(Dd(e)),arguments.length>1?arguments[1]:undefined)}});var Ld=_i,Bd=Nn.indexOf,Md=so,Hd=$([].indexOf),$d=!!Hd&&1/Hd([1],1,-0)<0,Ud=Md("indexOf");Ld({target:"Array",proto:!0,forced:$d||!Ud},{indexOf:function(e){var t=arguments.length>1?arguments[1]:undefined;return $d?Hd(this,e,t)||0:Bd(this,e,t)}}),_i({target:"Array",stat:!0},{isArray:wi});var qd,Jd,Fd,Wd,zd="process"==F(b.process),Kd=Ft.f,Gd=tt,Vd=vt("toStringTag"),Xd=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Gd(e,Vd)&&Kd(e,Vd,{configurable:!0,value:t})},Yd=de,Qd=TypeError,Zd=function(e,t){if(Yd(t,e))return e;throw Qd("Incorrect invocation")},ef=Fi,tf=Te,rf=TypeError,nf=Vt,of=function(e){if(ef(e))return e;throw rf(tf(e)+" is not a constructor")},af=X,sf=vt("species"),uf=function(e,t){var r,n=nf(e).constructor;return n===undefined||af(r=nf(n)[sf])?t:of(r)},cf=TypeError,lf=function(e,t){if(e<t)throw cf("Not enough arguments");return e},df=/(?:ipad|iphone|ipod).*applewebkit/i.test(fe),ff=b,pf=Rc,hf=yi,_f=ne,gf=tt,vf=k,mf=Qa,yf=qs,bf=Nt,wf=lf,kf=df,Sf=zd,Pf=ff.setImmediate,Ef=ff.clearImmediate,Of=ff.process,xf=ff.Dispatch,jf=ff.Function,If=ff.MessageChannel,Tf=ff.String,Df=0,Nf={},Af="onreadystatechange";try{qd=ff.location}catch(lj){}var Cf=function(e){if(gf(Nf,e)){var t=Nf[e];delete Nf[e],t()}},Rf=function(e){return function(){Cf(e)}},Lf=function(e){Cf(e.data)},Bf=function(e){ff.postMessage(Tf(e),qd.protocol+"//"+qd.host)};Pf&&Ef||(Pf=function(e){wf(arguments.length,1);
vendor: 4,430 bytes, line 7
7var t=_f(e)?e:jf(e),r=yf(arguments,1);return Nf[++Df]=function(){pf(t,undefined,r)},Jd(Df),Df},Ef=function(e){delete Nf[e]},Sf?Jd=function(e){Of.nextTick(Rf(e))}:xf&&xf.now?Jd=function(e){xf.now(Rf(e))}:If&&!kf?(Wd=(Fd=new If).port2,Fd.port1.onmessage=Lf,Jd=hf(Wd.postMessage,Wd)):ff.addEventListener&&_f(ff.postMessage)&&!ff.importScripts&&qd&&"file:"!==qd.protocol&&!vf(Bf)?(Jd=Bf,ff.addEventListener("message",Lf,!1)):Jd=Af in bf("script")?function(e){mf.appendChild(bf("script")).onreadystatechange=function(){mf.removeChild(this),Cf(e)}}:function(e){setTimeout(Rf(e),0)});var Mf,Hf,$f,Uf,qf,Jf,Ff,Wf,zf={set:Pf,clear:Ef},Kf=b,Gf=/ipad|iphone|ipod/i.test(fe)&&Kf.Pebble!==undefined,Vf=/web0s(?!.*chrome)/i.test(fe),Xf=b,Yf=yi,Qf=w.f,Zf=zf.set,ep=df,tp=Gf,rp=Vf,np=zd,ip=Xf.MutationObserver||Xf.WebKitMutationObserver,op=Xf.document,ap=Xf.process,sp=Xf.Promise,up=Qf(Xf,"queueMicrotask"),cp=up&&up.value;cp||(Mf=function(){var e,t;for(np&&(e=ap.domain)&&e.exit();Hf;){t=Hf.fn,Hf=Hf.next;try{t()}catch(lj){throw Hf?Uf():$f=undefined,lj}}$f=undefined,e&&e.enter()},ep||np||rp||!ip||!op?!tp&&sp&&sp.resolve?((Ff=sp.resolve(undefined)).constructor=sp,Wf=Yf(Ff.then,Ff),Uf=function(){Wf(Mf)}):np?Uf=function(){ap.nextTick(Mf)}:(Zf=Yf(Zf,Xf),Uf=function(){Zf(Mf)}):(qf=!0,Jf=op.createTextNode(""),new ip(Mf).observe(Jf,{characterData:!0}),Uf=function(){Jf.data=qf=!qf}));var lp=cp||function(e){var t={fn:e,next:undefined};$f&&($f.next=t),Hf||(Hf=t,Uf()),$f=t},dp=b,fp=function(e){try{return{error:!1,value:e()}}catch(lj){return{error:!0,value:lj}}},pp=function(){this.head=null,this.tail=null};pp.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var hp=pp,_p=b.Promise,gp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,vp=!gp&&!zd&&"object"==typeof window&&"object"==typeof document,mp=b,yp=_p,bp=ne,wp=si,kp=Sr,Sp=vt,Pp=vp,Ep=gp,Op=ye;yp&&yp.prototype;var xp=Sp("species"),jp=!1,Ip=bp(mp.PromiseRejectionEvent),Tp=wp("Promise",(function(){var e=kp(yp),t=e!==String(yp);if(!t&&66===Op)return!0;if(!Op||Op<51||!/native code/.test(e)){var r=new yp((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[xp]=n,!(jp=r.then((function(){}))instanceof n))return!0}return!t&&(Pp||Ep)&&!Ip})),Dp={CONSTRUCTOR:Tp,REJECTION_EVENT:Ip,SUBCLASSING:jp},Np={},Ap=Ce,Cp=TypeError,Rp=function(e){var t,r;this.promise=new e((function(e,n){if(t!==undefined||r!==undefined)throw Cp("Bad Promise constructor");t=e,r=n})),this.resolve=Ap(t),this.reject=Ap(r)};Np.f=function(e){return new Rp(e)};var Lp,Bp,Mp,Hp=_i,$p=zd,Up=b,qp=x,Jp=pn,Fp=yo,Wp=Xd,zp=Vo,Kp=Ce,Gp=ne,Vp=ae,Xp=Zd,Yp=uf,Qp=zf.set,Zp=lp,eh=function(e,t){var r=dp.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},th=fp,rh=hp,nh=Vr,ih=_p,oh=Np,ah="Promise",sh=Dp.CONSTRUCTOR,uh=Dp.REJECTION_EVENT,ch=Dp.SUBCLASSING,lh=nh.getterFor(ah),dh=nh.set,fh=ih&&ih.prototype,ph=ih,hh=fh,_h=Up.TypeError,gh=Up.document,vh=Up.process,mh=oh.f,yh=mh,bh=!!(gh&&gh.createEvent&&Up.dispatchEvent),wh="unhandledrejection",kh=function(e){var t;return!(!Vp(e)||!Gp(t=e.then))&&t},Sh=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&jh(t),t.rejection=1),!0===s?r=o:(l&&l.enter(),r=s(o),l&&(l.exit(),i=!0)),r===e.promise?c(_h("Promise-chain cycle")):(n=kh(r))?qp(n,r,u,c):u(r)):c(o)}catch(lj){l&&!i&&l.exit(),c(lj)}},Ph=function(e,t){e.notified||(e.notified=!0,Zp((function(){for(var r,n=e.reactions;r=n.get();)Sh(r,e);e.notified=!1,t&&!e.rejection&&Oh(e)})))},Eh=function(e,t,r){var n,i;bh?((n=gh.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Up.dispatchEvent(n)):n={promise:t,reason:r},!uh&&(i=Up["on"+e])?i(n):e===wh&&eh("Unhandled promise rejection",r)},Oh=function(e){qp(Qp,Up,(function(){var t,r=e.facade,n=e.value;if(xh(e)&&(t=th((function(){$p?vh.emit("unhandledRejection",n,r):Eh(wh,r,n)})),e.rejection=$p||xh(e)?2:1,t.error))throw t.value}))},xh=function(e){return 1!==e.rejection&&!e.parent},jh=function(e){qp(Qp,Up,(function(){var t=e.facade;$p?vh.emit("rejectionHandled",t):Eh("rejectionhandled",t,e.value)}))},Ih=function(e,t,r){return function(n){e(t,n,r)}},Th=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Ph(e,!0))},Dh=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);
vendor: 4,712 bytes, line 7
7try{if(e.facade===t)throw _h("Promise can't be resolved itself");var n=kh(t);n?Zp((function(){var r={done:!1};try{qp(n,t,Ih(Dh,r,e),Ih(Th,r,e))}catch(lj){Th(r,lj,e)}})):(e.value=t,e.state=1,Ph(e,!1))}catch(lj){Th({done:!1},lj,e)}}};if(sh&&(hh=(ph=function(e){Xp(this,hh),Kp(e),qp(Lp,this);var t=lh(this);try{e(Ih(Dh,t),Ih(Th,t))}catch(lj){Th(t,lj)}}).prototype,(Lp=function(e){dh(this,{type:ah,done:!1,notified:!1,parent:!1,reactions:new rh,rejection:!1,state:0,value:undefined})}).prototype=Jp(hh,"then",(function(e,t){var r=lh(this),n=mh(Yp(this,ph));return r.parent=!0,n.ok=!Gp(e)||e,n.fail=Gp(t)&&t,n.domain=$p?vh.domain:undefined,0==r.state?r.reactions.add(n):Zp((function(){Sh(n,r)})),n.promise})),Bp=function(){var e=new Lp,t=lh(e);this.promise=e,this.resolve=Ih(Dh,t),this.reject=Ih(Th,t)},oh.f=mh=function(e){return e===ph||undefined===e?new Bp(e):yh(e)},Gp(ih)&&fh!==Object.prototype)){Mp=fh.then,ch||Jp(fh,"then",(function(e,t){var r=this;return new ph((function(e,t){qp(Mp,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete fh.constructor}catch(lj){}Fp&&Fp(fh,hh)}Hp({global:!0,constructor:!0,wrap:!0,forced:sh},{Promise:ph}),Wp(ph,ah,!1),zp(ah);var Nh={},Ah=Nh,Ch=vt("iterator"),Rh=Array.prototype,Lh=function(e){return e!==undefined&&(Ah.Array===e||Rh[Ch]===e)},Bh=Ti,Mh=Be,Hh=X,$h=Nh,Uh=vt("iterator"),qh=function(e){if(!Hh(e))return Mh(e,Uh)||Mh(e,"@@iterator")||$h[Bh(e)]},Jh=x,Fh=Ce,Wh=Vt,zh=Te,Kh=qh,Gh=TypeError,Vh=function(e,t){var r=arguments.length<2?Kh(e):t;if(Fh(r))return Wh(Jh(r,e));throw Gh(zh(e)+" is not iterable")},Xh=x,Yh=Vt,Qh=Be,Zh=function(e,t,r){var n,i;Yh(e);try{if(!(n=Qh(e,"return"))){if("throw"===t)throw r;return r}n=Xh(n,e)}catch(lj){i=!0,n=lj}if("throw"===t)throw r;if(i)throw n;return Yh(n),r},e_=yi,t_=x,r_=Vt,n_=Te,i_=Lh,o_=xn,a_=de,s_=Vh,u_=qh,c_=Zh,l_=TypeError,d_=function(e,t){this.stopped=e,this.result=t},f_=d_.prototype,p_=function(e,t,r){var n,i,o,a,s,u,c,l=r&&r.that,d=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),_=e_(t,l),g=function(e){return n&&c_(n,"normal",e),new d_(!0,e)},v=function(e){return d?(r_(e),h?_(e[0],e[1],g):_(e[0],e[1])):h?_(e,g):_(e)};if(f)n=e.iterator;else if(p)n=e;else{if(!(i=u_(e)))throw l_(n_(e)+" is not iterable");if(i_(i)){for(o=0,a=o_(e);a>o;o++)if((s=v(e[o]))&&a_(f_,s))return s;return new d_(!1)}n=s_(e,i)}for(u=f?e.next:n.next;!(c=t_(u,n)).done;){try{s=v(c.value)}catch(lj){c_(n,"throw",lj)}if("object"==typeof s&&s&&a_(f_,s))return s}return new d_(!1)},h_=vt("iterator"),__=!1;try{var g_=0,v_={next:function(){return{done:!!g_++}},"return":function(){__=!0}};v_[h_]=function(){return this},Array.from(v_,(function(){throw 2}))}catch(lj){}var m_=function(e,t){if(!t&&!__)return!1;var r=!1;try{var n={};n[h_]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(lj){}return r},y_=_p,b_=Dp.CONSTRUCTOR||!m_((function(e){y_.all(e).then(undefined,(function(){}))})),w_=x,k_=Ce,S_=Np,P_=fp,E_=p_;_i({target:"Promise",stat:!0,forced:b_},{all:function(e){var t=this,r=S_.f(t),n=r.resolve,i=r.reject,o=P_((function(){var r=k_(t.resolve),o=[],a=0,s=1;E_(e,(function(e){var u=a++,c=!1;s++,w_(r,t,e).then((function(e){c||(c=!0,o[u]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var O_=_i,x_=Dp.CONSTRUCTOR,j_=_p,I_=le,T_=ne,D_=pn,N_=j_&&j_.prototype;if(O_({target:"Promise",proto:!0,forced:x_,real:!0},{"catch":function(e){return this.then(undefined,e)}}),T_(j_)){var A_=I_("Promise").prototype["catch"];N_["catch"]!==A_&&D_(N_,"catch",A_,{unsafe:!0})}var C_=x,R_=Ce,L_=Np,B_=fp,M_=p_;_i({target:"Promise",stat:!0,forced:b_},{race:function(e){var t=this,r=L_.f(t),n=r.reject,i=B_((function(){var i=R_(t.resolve);M_(e,(function(e){C_(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var H_=x,$_=Np;_i({target:"Promise",stat:!0,forced:Dp.CONSTRUCTOR},{reject:function(e){var t=$_.f(this);return H_(t.reject,undefined,e),t.promise}});var U_=Vt,q_=ae,J_=Np,F_=_i,W_=Dp.CONSTRUCTOR,z_=function(e,t){if(U_(e),q_(t)&&t.constructor===e)return t;var r=J_.f(e);return(0,r.resolve)(t),r.promise};le("Promise"),F_({target:"Promise",stat:!0,forced:W_},{resolve:function(e){return z_(this,e)}});var K_=oo.filter;_i({target:"Array",proto:!0,forced:!ju("filter")},{filter:function(e){return K_(this,e,arguments.length>1?arguments[1]:undefined)}});var G_=Array.prototype,V_=Object.prototype,X_=G_.slice,Y_=V_.toString,Q_=V_.hasOwnProperty,Z_=G_.forEach,eg=Array.isArray,tg={},rg=eg||function(e){return"[object Array]"===Y_.call(e)},ng=function(e){return"[object String]"===Y_.call(e)},ig=function(e){return"[object Date]"===Y_.call(e)},og=function(e){return"[object Number]"===Y_.call(e)&&/[\d\.]+/.test(String(e))},ag=function(e){try{JSON.parse(e)}
7catch(t){return console.log("🕷-isJSONString",t),!1}return!0},sg=function(e){if(!e)return!1;try{return/^\s*\bfunction\b/.test(e)}catch(t){return console.log("🕷-isFunction",t),!1}},ug=function(e){return!(null===e||!e)&&"[object Object]"===Y_.call(e)},cg=function(e){if(ug(e)){for(var t in e)if(Q_.call(e,t))return!1;return!0}return!1},lg=function(e,t,r){if(null===e)return!1;if(Z_&&e.forEach===Z_)e.forEach(t,r);else if(e.length===Number(e.length)){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===tg)return!1}else for(var o in e)if(Q_.call(e,o)&&t.call(r,e[o],o,e)===tg)return!1},dg=function(e){return lg(X_.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},fg=function(e){return lg(X_.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&void 0===e[r]&&(e[r]=t[r])})),e},pg=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},hg=function(e){var t=null;try{t=JSON.parse(e)}catch(r){return console.log("🕷-safeJSONParse",r),!1}return t},_g=function(e){if("string"!=typeof e)return 0;var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t},gg=function(e){try{return JSON.stringify(e,null,"  ")}catch(t){return console.log("🕷-formatJsonString",t),JSON.stringify(e)}},vg=function dj(e,t){ug(e)&&lg(e,(function(r,n){ug(r)?dj(e[n],t):ng(r)&&(e[n]=function(e,t){return e.length>t.para.max_string_length?(t.log("字符串长度超过限制,已经做截取--"+e),e.slice(0,t.para.max_string_length)):e}(r,t))}))},mg=function(e,t,r){return ug(e)?(lg(e,(function(n,i){if(rg(n)){var o=[];lg(n,(function(e){ng(e)?o.push(e):!r&&t.log("您的数据-",i,n,"的数组里的值必须是字符串,已经将其删除")})),0!==o.length?e[i]=o:(delete e[i],!r&&t.log("已经删除空的数组"))}var a;ng(n)||og(n)||ig(n)||(a=n,"[object Boolean]"===Y_.call(a))||rg(n)||sg(n)||"$option"===i||(!r&&t.log("您的数据-",i,n,"-格式不满足要求,我们已经将其删除"),delete e[i])})),e):e},yg=function(e,t){ug(e)&&lg(["_unique_id","session_id","user_id","_pv_id","id","date","datetime","event","events","first_id","original_id","device_id","properties","second_id","time","users"],(function(r,n){r in e&&(n<4?(delete e[r],t.log("您的属性- "+r+"是保留字段,我们已经将其删除")):t.log("您的属性- "+r+"是保留字段,请避免其作为属性名"))}))},bg=_i,wg=V,kg=re,Sg=so,Pg=$([].join),Eg=wg!=Object,Og=Sg("join",",");bg({target:"Array",proto:!0,forced:Eg||!Og},{join:function(e){return Pg(kg(this),e===undefined?",":e)}});var xg=_i,jg=Date,Ig=$(jg.prototype.getTime);xg({target:"Date",stat:!0},{now:function(){return Ig(new jg)}});var Tg,Dg=function(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})));var t,r,n,i,o,a=String(e),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,c=0,l="",d=[];if(!a)return a;a=function(e){var t,r,n,i,o=String(e).replace(/\r\n/g,"\n").replace(/\r/g,"\n"),a="";for(t=r=0,n=o.length,i=0;i<n;i++){var s=o.charCodeAt(i),u=null;s<128?r++:u=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==u&&(r>t&&(a+=o.substring(t,r)),a+=u,t=r=i+1)}return r>t&&(a+=o.substring(t,o.length)),a}(a);do{t=(o=a.charCodeAt(u++)<<16|a.charCodeAt(u++)<<8|a.charCodeAt(u++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,d[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(u<a.length);switch(l=d.join(""),a.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},Ng=(Tg=function(){for(var e=Number(new Date),t=0;e===Number(new Date);)t++;return e.toString(16)+t.toString(16)},function(){var e=String(screen.height*screen.width);e=e&&/\d{5,}/.test(e)?e.toString(16):String(31242*Math.random()).replace(".","").slice(0,8);var t=Tg()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,r=navigator.userAgent,n=[],i=0;function o(e,t){var r,i=0;for(r=0;r<t.length;r++)i|=n[r]<<8*r;return e^i}for(e=0;e<r.length;e++)t=r.charCodeAt(e),n.unshift(255&t),n.length>=4&&(i=o(i,n),n=[]);return n.length>0&&(i=o(i,n)),i.toString(16)}()+"-"+e+"-"+Tg();return t||(String(Math.random())+String(Math.random())+String(Math.random())).slice(2,15)}),Ag=function(e){var t="t6KJCZa5pDdQ9khoEM3Tj70fbP2eLSyc4BrsYugARqFIw1mzlGNVXOHiWvxUn8",r=t.length-1,n={},i=0;for(i=0;i<t.length;i++)n[t.charAt(i)]=t.charAt(r-i);var o="";for(i=0;i<e.length;i++)e.charAt(i)in n?o+=n[e.charAt(i)]:o+=e.charAt(i);return o},Cg=x,Rg=Vt,Lg=X,Bg=En,Mg=To,Hg=Z,$g=Be,Ug=zc,qg=kc;hc("match",(function(e,t,r){return[function(t){var r=Hg(this),n=Lg(t)?undefined:$g(t,e);return n?Cg(n,t,r):new RegExp(t)[e](Mg(r))},function(e){var n=Rg(this),i=Mg(e),o=r(t,n,i);if(o.done)return o.value;if(!n.global)return qg(n,i);var a=n.unicode;n.lastIndex=0;for(var s,u=[],c=0;null!==(s=qg(n,i));){var l=Mg(s[0]);u[c]=l,""===l&&(n.lastIndex=Ug(i,Bg(n.lastIndex),a)),c++}return 0===c?null:u}]}));var Jg=kn,Fg=xn,Wg=Pu,zg=Array,Kg=Math.max,Gg=function(e,t,r){for(var n=Fg(e),i=Jg(t,n),o=Jg(r===undefined?n:r,n),a=zg(Kg(o-i,0)),s=0;i<o;i++,s++)Wg(a,s,e[i]);return a.length=s,a},Vg=Rc,Xg=x,Yg=$,Qg=hc,Zg=Vt,ev=X,tv=xo,rv=Z,nv=uf,iv=zc,ov=En,av=To,sv=Be,uv=Gg,cv=kc,lv=Ds,dv=k,fv=Jo.UNSUPPORTED_Y,pv=4294967295,hv=Math.min,_v=[].push,gv=Yg(/./.exec),vv=Yg(_v),mv=Yg("".slice),yv=!dv((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));Qg("split",(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=av(rv(this)),i=r===undefined?pv:r>>>0;if(0===i)return[];if(e===undefined)return[n];if(!tv(e))return Xg(t,n,e,i);for(var o,a,s,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,d=new RegExp(e.source,c+"g");(o=Xg(lv,d,n))&&!((a=d.lastIndex)>l&&(vv(u,mv(n,l,o.index)),o.length>1&&o.index<n.length&&Vg(_v,u,uv(o,1)),s=o[0].length,l=a,u.length>=i));)d.lastIndex===o.index&&d.lastIndex++;return l===n.length?!s&&gv(d,"")||vv(u,""):vv(u,mv(n,l)),u.length>i?uv(u,0,i):u}:"0".split(undefined,0).length?function(e,r){return e===undefined&&0===r?[]:Xg(t,this,e,r)}:t,[function(t,r){var i=rv(this),o=ev(t)?undefined:sv(t,e);return o?Xg(o,t,i,r):Xg(n,av(i),t,r)},function(e,i){var o=Zg(this),a=av(e),s=r(n,o,a,i,n!==t);if(s.done)return s.value;var u=nv(o,RegExp),c=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(fv?"g":"y"),d=new u(fv?"^(?:"+o.source+")":o,l),f=i===undefined?pv:i>>>0;if(0===f)return[];if(0===a.length)return null===cv(d,a)?[a]:[];for(var p=0,h=0,_=[];h<a.length;){d.lastIndex=fv?0:h;var g,v=cv(d,fv?mv(a,h):a);if(null===v||(g=hv(ov(d.lastIndex+(fv?h:0)),a.length))===p)h=iv(a,h,c);else{if(vv(_,mv(a,p,h)),_.length===f)return _;for(var m=1;m<=v.length-1;m++)if(vv(_,v[m]),_.length===f)return _;h=p=g}}return vv(_,mv(a,p)),_}]}),!yv,fv);var bv=S,wv=wi,kv=TypeError,Sv=Object.getOwnPropertyDescriptor,Pv=bv&&!function(){if(this!==undefined)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(lj){return lj instanceof TypeError}}(),Ev=Te,Ov=TypeError,xv=_i,jv=Qe,Iv=kn,Tv=mn,Dv=xn,Nv=Pv?function(e,t){if(wv(e)&&!Sv(e,"length").writable)throw kv("C
7annot set read only .length");return e.length=t}:function(e,t){return e.length=t},Av=Fu,Cv=Yi,Rv=Pu,Lv=function(e,t){if(!delete e[t])throw Ov("Cannot delete property "+Ev(t)+" of "+Ev(e))},Bv=ju("splice"),Mv=Math.max,Hv=Math.min;xv({target:"Array",proto:!0,forced:!Bv},{splice:function(e,t){var r,n,i,o,a,s,u=jv(this),c=Dv(u),l=Iv(e,c),d=arguments.length;for(0===d?r=n=0:1===d?(r=0,n=c-l):(r=d-2,n=Hv(Mv(Tv(t),0),c-l)),Av(c+r-n),i=Cv(u,n),o=0;o<n;o++)(a=l+o)in u&&Rv(i,o,u[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)s=o+r,(a=o+n)in u?u[s]=u[a]:Lv(u,s);for(o=c;o>c-n+r;o--)Lv(u,o-1)}else if(r>n)for(o=c-n;o>l;o--)s=o+r-1,(a=o+n-1)in u?u[s]=u[a]:Lv(u,s);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return Nv(u,c-n+r),i}});var $v,Uv,qv,Jv=!k((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Fv=tt,Wv=ne,zv=Qe,Kv=Jv,Gv=Tr("IE_PROTO"),Vv=Object,Xv=Vv.prototype,Yv=Kv?Vv.getPrototypeOf:function(e){var t=zv(e);if(Fv(t,Gv))return t[Gv];var r=t.constructor;return Wv(r)&&t instanceof r?r.prototype:t instanceof Vv?Xv:null},Qv=k,Zv=ne,em=ae,tm=Yv,rm=pn,nm=vt("iterator"),im=!1;[].keys&&("next"in(qv=[].keys())?(Uv=tm(tm(qv)))!==Object.prototype&&($v=Uv):im=!0);var om=!em($v)||Qv((function(){var e={};return $v[nm].call(e)!==e}));om&&($v={}),Zv($v[nm])||rm($v,nm,(function(){return this}));var am={IteratorPrototype:$v,BUGGY_SAFARI_ITERATORS:im},sm=am.IteratorPrototype,um=ls,cm=C,lm=Xd,dm=Nh,fm=function(){return this},pm=function(e,t,r,n){var i=t+" Iterator";return e.prototype=um(sm,{next:cm(+!n,r)}),lm(e,i,!1),dm[i]=fm,e},hm=_i,_m=x,gm=ne,vm=pm,mm=Yv,ym=yo,bm=Xd,wm=cr,km=pn,Sm=Nh,Pm=gr.PROPER,Em=gr.CONFIGURABLE,Om=am.IteratorPrototype,xm=am.BUGGY_SAFARI_ITERATORS,jm=vt("iterator"),Im="keys",Tm="values",Dm="entries",Nm=function(){return this},Am=function(e,t,r,n,i,o,a){vm(r,t,n);var s,u,c,l=function(e){if(e===i&&_)return _;if(!xm&&e in p)return p[e];switch(e){case Im:case Tm:case Dm:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",f=!1,p=e.prototype,h=p[jm]||p["@@iterator"]||i&&p[i],_=!xm&&h||l(i),g="Array"==t&&p.entries||h;if(g&&(s=mm(g.call(new e)))!==Object.prototype&&s.next&&(mm(s)!==Om&&(ym?ym(s,Om):gm(s[jm])||km(s,jm,Nm)),bm(s,d,!0)),Pm&&i==Tm&&h&&h.name!==Tm&&(Em?wm(p,"name",Tm):(f=!0,_=function(){return _m(h,this)})),i)if(u={values:l(Tm),keys:o?_:l(Im),entries:l(Dm)},a)for(c in u)(xm||f||!(c in p))&&km(p,c,u[c]);else hm({target:t,proto:!0,forced:xm||f},u);return p[jm]!==_&&km(p,jm,_,{name:i}),Sm[t]=_,u},Cm=re,Rm=kd,Lm=Nh,Bm=Vr,Mm=Ft.f,Hm=Am,$m=S,Um="Array Iterator",qm=Bm.set,Jm=Bm.getterFor(Um),Fm=Hm(Array,"Array",(function(e,t){qm(this,{type:Um,target:Cm(e),index:0,kind:t})}),(function(){var e=Jm(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=undefined,{value:undefined,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),Wm=Lm.Arguments=Lm.Array;if(Rm("keys"),Rm("values"),Rm("entries"),$m&&"values"!==Wm.name)try{Mm(Wm,"name",{value:"values"})}catch(lj){}var zm=Fc.charAt,Km=To,Gm=Vr,Vm=Am,Xm="String Iterator",Ym=Gm.set,Qm=Gm.getterFor(Xm);Vm(String,"String",(function(e){Ym(this,{type:Xm,string:Km(e),index:0})}),(function(){var e,t=Qm(this),r=t.string,n=t.index;return n>=r.length?{value:undefined,done:!0}:(e=zm(r,n),t.index+=e.length,{value:e,done:!1})}));var Zm=b,ey=ru,ty=ou,ry=Fm,ny=cr,iy=vt,oy=iy("iterator"),ay=iy("toStringTag"),sy=ry.values,uy=function(e,t){if(e){if(e[oy]!==sy)try{ny(e,oy,sy)}catch(lj){e[oy]=sy}if(e[ay]||ny(e,ay,t),ey[t])for(var r in ry)if(e[r]!==ry[r])try{ny(e,r,ry[r])}catch(lj){e[r]=ry[r]}}};
vendor: 4,423 bytes, line 7
7for(var cy in ey)uy(Zm[cy]&&Zm[cy].prototype,cy);uy(ty,"DOMTokenList");var ly=k,dy=vt("iterator"),fy=!ly((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[dy]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",undefined).host})),py=lr.exports,hy=Ft,_y=S,gy=$,vy=x,my=k,yy=Fa,by=qn,wy=j,ky=Qe,Sy=V,Py=Object.assign,Ey=Object.defineProperty,Oy=gy([].concat),xy=!Py||my((function(){if(_y&&1!==Py({b:1},Py(Ey({},"a",{enumerable:!0,get:function(){Ey(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Py({},e)[r]||yy(Py({},t)).join("")!=n}))?function(e,t){for(var r=ky(e),n=arguments.length,i=1,o=by.f,a=wy.f;n>i;)for(var s,u=Sy(arguments[i++]),c=o?Oy(yy(u),o(u)):yy(u),l=c.length,d=0;l>d;)s=c[d++],_y&&!vy(a,u,s)||(r[s]=u[s]);return r}:Py,jy=Vt,Iy=Zh,Ty=yi,Dy=x,Ny=Qe,Ay=function(e,t,r,n){try{return n?t(jy(r)[0],r[1]):t(r)}catch(lj){Iy(e,"throw",lj)}},Cy=Lh,Ry=Fi,Ly=xn,By=Pu,My=Vh,Hy=qh,$y=Array,Uy=$,qy=2147483647,Jy=/[^\0-\u007E]/,Fy=/[.\u3002\uFF0E\uFF61]/g,Wy="Overflow: input needs wider integers to process",zy=RangeError,Ky=Uy(Fy.exec),Gy=Math.floor,Vy=String.fromCharCode,Xy=Uy("".charCodeAt),Yy=Uy([].join),Qy=Uy([].push),Zy=Uy("".replace),eb=Uy("".split),tb=Uy("".toLowerCase),rb=function(e){return e+22+75*(e<26)},nb=function(e,t,r){var n=0;for(e=r?Gy(e/700):e>>1,e+=Gy(e/t);e>455;)e=Gy(e/35),n+=36;return Gy(n+36*e/(e+38))},ib=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=Xy(e,r++);if(i>=55296&&i<=56319&&r<n){var o=Xy(e,r++);56320==(64512&o)?Qy(t,((1023&i)<<10)+(1023&o)+65536):(Qy(t,i),r--)}else Qy(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&Qy(t,Vy(n));var u=t.length,c=u;for(u&&Qy(t,"-");c<i;){var l=qy;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var d=c+1;if(l-o>Gy((qy-a)/d))throw zy(Wy);for(a+=(l-o)*d,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++a>qy)throw zy(Wy);if(n==o){for(var f=a,p=36;;){var h=p<=s?1:p>=s+26?26:p-s;if(f<h)break;var _=f-h,g=36-h;Qy(t,Vy(rb(h+_%g))),f=Gy(_/g),p+=36}Qy(t,Vy(rb(f))),s=nb(a,d,c==u),a=0,c++}}a++,o++}return Yy(t,"")},ob=pn,ab=function(e,t,r){for(var n in t)ob(e,n,t[n],r);return e},sb=Gg,ub=Math.floor,cb=function(e,t){var r=e.length,n=ub(r/2);return r<8?lb(e,t):db(e,cb(sb(e,0,n),t),cb(sb(e,n),t),t)},lb=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},db=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},fb=_i,pb=b,hb=x,_b=$,gb=S,vb=fy,mb=pn,yb=ab,bb=Xd,wb=pm,kb=Vr,Sb=Zd,Pb=ne,Eb=tt,Ob=yi,xb=Ti,jb=Vt,Ib=ae,Tb=To,Db=ls,Nb=C,Ab=Vh,Cb=qh,Rb=lf,Lb=cb,Bb=vt("iterator"),Mb="URLSearchParams",Hb="URLSearchParamsIterator",$b=kb.set,Ub=kb.getterFor(Mb),qb=kb.getterFor(Hb),Jb=Object.getOwnPropertyDescriptor,Fb=function(e){if(!gb)return pb[e];var t=Jb(pb,e);return t&&t.value},Wb=Fb("fetch"),zb=Fb("Request"),Kb=Fb("Headers"),Gb=zb&&zb.prototype,Vb=Kb&&Kb.prototype,Xb=pb.RegExp,Yb=pb.TypeError,Qb=pb.decodeURIComponent,Zb=pb.encodeURIComponent,ew=_b("".charAt),tw=_b([].join),rw=_b([].push),nw=_b("".replace),iw=_b([].shift),ow=_b([].splice),aw=_b("".split),sw=_b("".slice),uw=/\+/g,cw=Array(4),lw=function(e){return cw[e-1]||(cw[e-1]=Xb("((?:%[\\da-f]{2}){"+e+"})","gi"))},dw=function(e){try{return Qb(e)}catch(lj){return e}},fw=function(e){var t=nw(e,uw," "),r=4;try{return Qb(t)}catch(lj){for(;r;)t=nw(t,lw(r--),dw);return t}},pw=/[!'()~]|%20/g,hw={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_w=function(e){return hw[e]},gw=function(e){return nw(Zb(e),pw,_w)},vw=wb((function(e,t){$b(this,{type:Hb,iterator:Ab(Ub(e).entries),kind:t})}),"Iterator",(function(){var e=qb(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),mw=function(e){this.entries=[],this.url=null,e!==undefined&&(Ib(e)?this.parseObject(e):this.parseQuery("str
7ing"==typeof e?"?"===ew(e,0)?sw(e,1):e:Tb(e)))};mw.prototype={type:Mb,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,u=Cb(e);if(u)for(r=(t=Ab(e,u)).next;!(n=hb(r,t)).done;){if(o=(i=Ab(jb(n.value))).next,(a=hb(o,i)).done||(s=hb(o,i)).done||!hb(o,i).done)throw Yb("Expected sequence with length 2");rw(this.entries,{key:Tb(a.value),value:Tb(s.value)})}else for(var c in e)Eb(e,c)&&rw(this.entries,{key:c,value:Tb(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=aw(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=aw(t,"="),rw(this.entries,{key:fw(iw(r)),value:fw(tw(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],rw(r,gw(e.key)+"="+gw(e.value));return tw(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var yw=function(){Sb(this,bw);var e=arguments.length>0?arguments[0]:undefined;$b(this,new mw(e))},bw=yw.prototype;if(yb(bw,{append:function(e,t){Rb(arguments.length,2);var r=Ub(this);rw(r.entries,{key:Tb(e),value:Tb(t)}),r.updateURL()},"delete":function(e){Rb(arguments.length,1);for(var t=Ub(this),r=t.entries,n=Tb(e),i=0;i<r.length;)r[i].key===n?ow(r,i,1):i++;t.updateURL()},get:function(e){Rb(arguments.length,1);for(var t=Ub(this).entries,r=Tb(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Rb(arguments.length,1);for(var t=Ub(this).entries,r=Tb(e),n=[],i=0;i<t.length;i++)t[i].key===r&&rw(n,t[i].value);return n},has:function(e){Rb(arguments.length,1);for(var t=Ub(this).entries,r=Tb(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Rb(arguments.length,1);for(var r,n=Ub(this),i=n.entries,o=!1,a=Tb(e),s=Tb(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?ow(i,u--,1):(o=!0,r.value=s));o||rw(i,{key:a,value:s}),n.updateURL()},sort:function(){var e=Ub(this);Lb(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Ub(this).entries,n=Ob(e,arguments.length>1?arguments[1]:undefined),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new vw(this,"keys")},values:function(){return new vw(this,"values")},entries:function(){return new vw(this,"entries")}},{enumerable:!0}),mb(bw,Bb,bw.entries,{name:"entries"}),mb(bw,"toString",(function(){return Ub(this).serialize()}),{enumerable:!0}),bb(yw,Mb),fb({global:!0,constructor:!0,forced:!vb},{URLSearchParams:yw}),!vb&&Pb(Kb)){var ww=_b(Vb.has),kw=_b(Vb.set),Sw=function(e){if(Ib(e)){var t,r=e.body;if(xb(r)===Mb)return t=e.headers?new Kb(e.headers):new Kb,ww(t,"content-type")||kw(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Db(e,{body:Nb(0,Tb(r)),headers:Nb(0,t)})}return e};if(Pb(Wb)&&fb({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Wb(e,arguments.length>1?Sw(arguments[1]):{})}}),Pb(zb)){var Pw=function(e){return Sb(this,Gb),new zb(e,arguments.length>1?Sw(arguments[1]):{})};Gb.constructor=Pw,Pw.prototype=Gb,fb({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Pw})}}var Ew,Ow=_i,xw=S,jw=fy,Iw=b,Tw=yi,Dw=$,Nw=pn,Aw=function(e,t,r){return r.get&&py(r.get,t,{getter:!0}),r.set&&py(r.set,t,{setter:!0}),hy.f(e,t,r)},Cw=Zd,Rw=tt,Lw=xy,Bw=function(e){var t=Ny(e),r=Ry(this),n=arguments.length,i=n>1?arguments[1]:undefined,o=i!==undefined;o&&(i=Ty(i,n>2?arguments[2]:undefined));var a,s,u,c,l,d,f=Hy(t),p=0;if(!f||this===$y&&Cy(f))for(a=Ly(t),s=r?new this(a):$y(a);a>p;p++)d=o?i(t[p],p):t[p],By(s,p,d);else for(l=(c=My(t,f)).next,s=r?new this:[];!(u=Dy(l,c)).done;p++)d=o?Ay(c,i,[u.value,p],!0):u.value,By(s,p,d);return s.length=p,s},Mw=Gg,Hw=Fc.codeAt,$w=function(e){var t,r,n=[],i=eb(Zy(tb(e),Fy,"."),".");for(t=0;t<i.length;t++)r=i[t],Qy(n,Ky(Jy,r)?"xn--"+ib(r):r);return Yy(n,".")},Uw=To,qw=Xd,Jw=lf,Fw={URLSearchParams:yw,getState:Ub},Ww=Vr,zw=Ww.set,Kw=Ww.getterFor("URL"),Gw=Fw.URLSearchParams,Vw=Fw.getState,Xw=Iw.URL,Yw=Iw.TypeError,Qw=Iw.parseInt,Zw=Math.floor,ek=Math.pow,tk=Dw("".charAt),rk=Dw(/./.exec),nk=Dw([].join),ik=Dw(1..toString),ok=Dw([].pop),ak=Dw([].push),sk=Dw("".replace),uk=Dw([].shift),ck=Dw("".split),lk=Dw("".slice),dk=Dw("".toLowerCase),fk=Dw([].unshift),pk="Invalid scheme",hk="Invalid host",_k="Invalid port",gk=/[a-z]/i,vk=/[\d+-.a-z]/i,mk=/\d/,yk=/^0x/i,bk=/^[0-7]+$/,wk=/^\d+$/,kk=/^[\da-f]+$/i,Sk=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Pk=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ek=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Ok=/[\t\n\r]/g,xk=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)fk(t,e%256),e=Zw(e/256);return nk(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=ik(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},jk={},Ik=Lw({},jk,{" ":1,'"':1,"<":1,">":1,"`":1}),Tk=Lw({},Ik,{"#":1,"?":1,"{":1,"}":1}),Dk=Lw({},Tk,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Nk=function(e,t){var r=Hw(e,0);return r>32&&r<127&&!Rw(t,e)?e:encodeURIComponent(e)},Ak={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ck=function(e,t){var r;return 2==e.length&&rk(gk,tk(e,0))&&(":"==(r=tk(e,1))||!t&&"|"==r)},Rk=function(e){var t;return e.length>1&&Ck(lk(e,0,2))&&(2==e.length||"/"===(t=tk(e,2))||"\\"===t||"?"===t||"#"===t)},Lk=function(e){return"."===e||"%2e"===dk(e)},Bk={},Mk={},Hk={},$k={},Uk={},qk={},Jk={},Fk={},Wk={},zk={},Kk={},Gk={},Vk={},Xk={},Yk={},Qk={},Zk={},eS={},tS={},rS={},nS={},iS=function(e,t,r){var n,i,o,a=Uw(e);if(t){if(i=this.parse(a))throw Yw(i);this.searchParams=null}else{if(r!==undefined&&(n=new iS(r,!0)),i=this.parse(a,null,n))throw Yw(i);(o=Vw(new Gw)).bindURL(this),this.searchParams=o}};iS.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,u=this,c=t||Bk,l=0,d="",f=!1,p=!1,h=!1;for(e=Uw(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=sk(e,Ek,"")),e=sk(e,Ok,""),n=Bw(e);l<=n.length;){switch(i=n[l],c){case Bk:if(!i||!rk(gk,i)){if(t)return pk;c=Hk;continue}d+=dk(i),c=Mk;break;case Mk:if(i&&(rk(vk,i)||"+"==i||"-"==i||"."==i))d+=dk(i);else{if(":"!=i){if(t)return pk;d="",c=Hk,l=0;continue}if(t&&(u.isSpecial()!=Rw(Ak,d)||"file"==d&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=d,t)return void(u.isSpecial()&&Ak[u.scheme]==u.port&&(u.port=null));d="","file"==u.scheme?c=Xk:u.isSpecial()&&r&&r.scheme==u.scheme?c=$k:u.isSpecial()?c=Fk:"/"==n[l+1]?(c=Uk,l++):(u.cannotBeABaseURL=!0,ak(u.path,""),c=tS)}break;case Hk:if(!r||r.cannotBeABaseURL&&"#"!=i)return pk;if(r.cannotBeABaseURL&&"#"==i){u.scheme=r.scheme,u.path=Mw(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=nS;break}c="file"==r.scheme?Xk:qk;continue;case $k:if("/"!=i||"/"!=n[l+1]){c=qk;continue}c=Wk,l++;break;case Uk:if("/"==i){c=zk;break}c=eS;continue;case qk:if(u.scheme=r.scheme,i==Ew)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Mw(r.path),u.query=r.query;else if("/"==i||"\\"==i&&u.isSpecial())c=Jk;else if("?"==i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Mw(r.path),u.query="",c=rS;else{if("#"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Mw(r.path),u.path.length--,c=eS;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Mw(r.path),u.query=r.query,u.fragment="",c=nS}break;case Jk:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=eS;continue}c=zk}else c=Wk;break;case Fk:if(c=Wk,"/"!=i||"/"!=tk(d,l+1))continue;l++;break;case Wk:if("/"!=i&&"\\"!=i){c=zk;continue}break;case zk:if("@"==i){f&&(d="%40"+d),f=!0,o=Bw(d);for(var _=0;_<o.length;_++){var g=o[_];if(":"!=g||h){var v=Nk(g,Dk);h?u.password+=v:u.username+=v}else h=!0}d=""}else if(i==Ew||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(f&&""==d)return"Invalid authority";l-=Bw(d).length+1,d="",c=Kk}else d+=i;break;case Kk:case Gk:if(t&&"file"==u.scheme){c=Qk;continue}if(":"!=i||p){if(i==Ew||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==d)return hk;if(t&&""==d&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(d))return a;
vendor: 5,371 bytes, line 7
7if(d="",c=Zk,t)return;continue}"["==i?p=!0:"]"==i&&(p=!1),d+=i}else{if(""==d)return hk;if(a=u.parseHost(d))return a;if(d="",c=Vk,t==Gk)return}break;case Vk:if(!rk(mk,i)){if(i==Ew||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=d){var m=Qw(d,10);if(m>65535)return _k;u.port=u.isSpecial()&&m===Ak[u.scheme]?null:m,d=""}if(t)return;c=Zk;continue}return _k}d+=i;break;case Xk:if(u.scheme="file","/"==i||"\\"==i)c=Yk;else{if(!r||"file"!=r.scheme){c=eS;continue}if(i==Ew)u.host=r.host,u.path=Mw(r.path),u.query=r.query;else if("?"==i)u.host=r.host,u.path=Mw(r.path),u.query="",c=rS;else{if("#"!=i){Rk(nk(Mw(n,l),""))||(u.host=r.host,u.path=Mw(r.path),u.shortenPath()),c=eS;continue}u.host=r.host,u.path=Mw(r.path),u.query=r.query,u.fragment="",c=nS}}break;case Yk:if("/"==i||"\\"==i){c=Qk;break}r&&"file"==r.scheme&&!Rk(nk(Mw(n,l),""))&&(Ck(r.path[0],!0)?ak(u.path,r.path[0]):u.host=r.host),c=eS;continue;case Qk:if(i==Ew||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&Ck(d))c=eS;else if(""==d){if(u.host="",t)return;c=Zk}else{if(a=u.parseHost(d))return a;if("localhost"==u.host&&(u.host=""),t)return;d="",c=Zk}continue}d+=i;break;case Zk:if(u.isSpecial()){if(c=eS,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=Ew&&(c=eS,"/"!=i))continue}else u.fragment="",c=nS;else u.query="",c=rS;break;case eS:if(i==Ew||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=dk(s=d))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||ak(u.path,"")):Lk(d)?"/"==i||"\\"==i&&u.isSpecial()||ak(u.path,""):("file"==u.scheme&&!u.path.length&&Ck(d)&&(u.host&&(u.host=""),d=tk(d,0)+":"),ak(u.path,d)),d="","file"==u.scheme&&(i==Ew||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)uk(u.path);"?"==i?(u.query="",c=rS):"#"==i&&(u.fragment="",c=nS)}else d+=Nk(i,Tk);break;case tS:"?"==i?(u.query="",c=rS):"#"==i?(u.fragment="",c=nS):i!=Ew&&(u.path[0]+=Nk(i,jk));break;case rS:t||"#"!=i?i!=Ew&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":Nk(i,jk)):(u.fragment="",c=nS);break;case nS:i!=Ew&&(u.fragment+=Nk(i,Ik))}l++}},parseHost:function(e){var t,r,n;if("["==tk(e,0)){if("]"!=tk(e,e.length-1))return hk;if(t=function(e){var t,r,n,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,d=0,f=function(){return tk(e,d)};if(":"==f()){if(":"!=tk(e,1))return;d+=2,l=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=r=0;r<4&&rk(kk,f());)t=16*t+Qw(f(),16),d++,r++;if("."==f()){if(0==r)return;if(d-=r,c>6)return;for(n=0;f();){if(i=null,n>0){if(!("."==f()&&n<4))return;d++}if(!rk(mk,f()))return;for(;rk(mk,f());){if(o=Qw(f(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;d++}u[c]=256*u[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==f()){if(d++,!f())return}else if(f())return;u[c++]=t}else{if(null!==l)return;d++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u}(lk(e,1,-1)),!t)return hk;this.host=t}else if(this.isSpecial()){if(e=$w(e),rk(Sk,e))return hk;if(t=function(e){var t,r,n,i,o,a,s,u=ck(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=u[n]))return e;if(o=10,i.length>1&&"0"==tk(i,0)&&(o=rk(yk,i)?16:8,i=lk(i,8==o?1:2)),""===i)a=0;else{if(!rk(10==o?wk:8==o?bk:kk,i))return e;a=Qw(i,o)}ak(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=ek(256,5-t))return null}else if(a>255)return null;for(s=ok(r),n=0;n<r.length;n++)s+=r[n]*ek(256,3-n);return s}(e),null===t)return hk;this.host=t}else{if(rk(Pk,e))return hk;for(t="",r=Bw(e),n=0;n<r.length;n++)t+=Nk(r[n],jk);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Rw(Ak,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Ck(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=xk(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+nk(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw Yw(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new oS(e.path[0]).origin}catch(lj){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+xk(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Uw(e)+":",Bk)},getUsername:function(){return this.username},setUsername:function(e){var t=Bw(Uw(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Nk(t[r],Dk)}},getPassword:function(){return this.password},setPassword:function(e){var t=Bw(Uw(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Nk(t[r],Dk)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?xk(e):xk(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Kk)},getHostname:function(){var e=this.host;return null===e?"":xk(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Gk)},getPort:function(){var e=this.port;return null===e?"":Uw(e)}
7,setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Uw(e))?this.port=null:this.parse(e,Vk))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+nk(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Zk))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Uw(e))?this.query=null:("?"==tk(e,0)&&(e=lk(e,1)),this.query="",this.parse(e,rS)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Uw(e))?("#"==tk(e,0)&&(e=lk(e,1)),this.fragment="",this.parse(e,nS)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var oS=function(e){var t=Cw(this,aS),r=Jw(arguments.length,1)>1?arguments[1]:undefined,n=zw(t,new iS(e,!1,r));xw||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},aS=oS.prototype,sS=function(e,t){return{get:function(){return Kw(this)[e]()},set:t&&function(e){return Kw(this)[t](e)},configurable:!0,enumerable:!0}};if(xw&&(Aw(aS,"href",sS("serialize","setHref")),Aw(aS,"origin",sS("getOrigin")),Aw(aS,"protocol",sS("getProtocol","setProtocol")),Aw(aS,"username",sS("getUsername","setUsername")),Aw(aS,"password",sS("getPassword","setPassword")),Aw(aS,"host",sS("getHost","setHost")),Aw(aS,"hostname",sS("getHostname","setHostname")),Aw(aS,"port",sS("getPort","setPort")),Aw(aS,"pathname",sS("getPathname","setPathname")),Aw(aS,"search",sS("getSearch","setSearch")),Aw(aS,"searchParams",sS("getSearchParams")),Aw(aS,"hash",sS("getHash","setHash"))),Nw(aS,"toJSON",(function(){return Kw(this).serialize()}),{enumerable:!0}),Nw(aS,"toString",(function(){return Kw(this).serialize()}),{enumerable:!0}),Xw){var uS=Xw.createObjectURL,cS=Xw.revokeObjectURL;uS&&Nw(oS,"createObjectURL",Tw(uS,Xw)),cS&&Nw(oS,"revokeObjectURL",Tw(cS,Xw))}qw(oS,"URL"),Ow({global:!0,constructor:!0,forced:!jw,sham:!xw},{URL:oS});var lS=function(e){var t=e;try{t=window.decodeURIComponent(e)}catch(r){console.log("🕷-decodeURIComponent",r),t=e}return t};function dS(){return navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)}var fS=function(e,t){if("object"!==i(t))throw new Error("参数缺失!");var r=e||document.referrer;return!r&&Boolean(t.para.app_js_bridge)&&(ug(window.BeidouData_APP_New_H5_Bridge)||ug(window.BeidouData_iOS_JS_Bridge))&&((r=lS(t.cookie.get(t.para.global_prefix+"app_referrer")||""))||(r=lS(window._beidou_app_android_referrer&&window._beidou_app_android_referrer.referrer||""))),"string"!=typeof r?"取值异常_referrer异常_"+String(r):(0===r.indexOf("https://www.baidu.com/")&&(r=r.split("?")[0]),"string"==typeof(r=r.slice(0,t.para.max_referrer_string_length))?r:"")},pS=function(e){var t=e||window.location.hostname,r=t.split(".");if(rg(r)&&r.length>=2&&!/^(\d+\.)+\d+$/.test(t))for(var n="."+r.splice(r.length-1,1);r.length>0;)if(n="."+r.splice(r.length-1,1)+n,document.cookie="beidoudata_domain_test=true; path=/; domain="+n,-1!==document.cookie.indexOf("beidoudata_domain_test=true")){var i=new Date;return i.setTime(i.getTime()-1e3),document.cookie="beidoudata_domain_test=true; expires="+i.toGMTString()+"; path=/; domain="+n,n}return""},hS=function(e,t){var r=t.para.current_domain;switch(i(r)){case"function":var n=r();return""===n||""===pg(n)?"url解析失败":-1!==n.indexOf(".")?n:"url解析失败";case"string":return""===r||""===pg(r)?"url解析失败":-1!==r.indexOf(".")?r:"url解析失败";default:var o=pS();return""===e||""===o?"url解析失败":o}},_S=function(e,t){if(!e.target)return!1;var r=e.target,n=r.tagName.toLowerCase(),i={};i._element_type=n,i._element_name=r.getAttribute("name"),i._element_id=r.getAttribute("id"),i._element_class_name="string"==typeof r.className?r.className:null,i._element_target_url=r.getAttribute("href");var o,a="";return r.textContent?a=pg(r.textContent):r.innerText&&(a=pg(r.innerText)),a&&(a=a.replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)),i._element_c
7ontent=a||"","input"===n&&("button"===r.type||"submit"===r.type||t.para.heatmap&&"function"==typeof t.para.heatmap.collect_input&&t.para.heatmap.collect_input(r))&&(i._element_content=r.value||""),o={},lg(i,(function(e,t){null!==e&&(o[t]=e)})),(i=o)._url=location.href,i._url_path=location.pathname,i._title=document.title,i._viewport_width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0,i},gS=function(e){for(var t=function(e){return lS(e)},r={},n=(e||"").substring(1).split("&"),i=0;i<n.length;i++){var o=n[i].indexOf("=");if(-1!==o){var a=n[i].substring(0,o),s=n[i].substring(o+1);a=t(a),s=t(s),r[a]=s}}return r},vS=function(e){var t,r={},n=["hash","host","hostname","href","origin","password","pathname","port","protocol","search","username"],i=/^hzbxw:\/\/(\S+)/;if(!0===i.test(e)&&(e=e.replace(i,"https://$1")),"function"==typeof window.URL&&function(){try{return"http://modernizr.com/"===new window.URL("http://modernizr.com/").href}catch(e){return console.log("🕷-isURLAPIWorking",e),!1}}())(r=new window.URL(e)).searchParams||(r.searchParams=(t=gS(r.search),{get:function(e){return t[e]}}));else{if(!1===/^https?:\/\/.+/.test(e))throw new Error("Invalid URL");var o=document.createElement("a");o.href=e;for(var a=n.length-1;a>=0;a--){var s=n[a];r[s]=o[s]}r.hostname&&"string"==typeof r.pathname&&0!==r.pathname.indexOf("/")&&(r.pathname="/"+r.pathname),r.searchParams=function(){var e=gS(r.search);return{get:function(t){return e[t]}}}()}return r},mS=function(e,t){var r=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");r=r.replace("$","\\$");var n=lS(e),i=new RegExp("[\\?&]"+r+"=([^&#]*)").exec(n);return null===i||i&&"string"!=typeof i[1]&&i[1].length?"":lS(i[1])},yS=function(){return"undefined"!=typeof window.XMLHttpRequest&&("withCredentials"in new XMLHttpRequest||"undefined"!=typeof XDomainRequest)},bS=function(e,t){var r=null;t&&"string"==typeof t||(r="hostname解析异常");var n=null;try{n=vS(e).hostname}catch(i){console.log("🕷-getHostname",i),console.error(i)}return n||r},wS=function(e,t){var r,n,o=e||document.referrer,a=t.para.source_type.keyword;if(document&&"string"==typeof o){if(0===o.indexOf("http")){var s=function(e){var t=bS(e);if(!t||"hostname解析异常"===t)return"";var r={baidu:[/^.*\.baidu\.com$/],bing:[/^.*\.bing\.com$/],google:[/^www\.google\.com$/,/^www\.google\.com\.[a-z]{2}$/,/^www\.google\.[a-z]{2}$/],sm:[/^m\.sm\.cn$/,/^so\.m\.sm\.cn$/],so:[/^.+\.so\.com$/],sogou:[/^.*\.
7sogou\.com$/],yahoo:[/^.*\.yahoo\.com$/],toutiao:[/^so\.toutiao\.com$/]};for(var n in r)for(var i=r[n],o=0,a=i.length;o<a;o++)if(i[o].test(t))return n;return"未知搜索引擎"}(o),u=(r={},(n=o.split("?")[1]||"")&&(r=gS("?"+n)),r);if(cg(u))return"未取到值";var c=null;for(var l in a)if(s===l&&"object"===i(u))if(c=a[l],rg(c))for(var d=0;d<c.length;d++){var f=u[c[d]];if(f)return f}else if(u[c])return u[c];return"未取到值"}return""===o?"未取到值_直接打开":"未取到值_非http的url"}return"取值异常_referrer异常_"+String(o)},kS=function(e,t){function r(e,t){for(var r=0;r<e.length;r++)if(-1!==t.split("?")[0].indexOf(e[r]))return!0}var n="("+e.para.source_type.utm.join("|")+")\\=[^&]+",i=e.para.source_type.search,o=e.para.source_type.social,a=document.referrer||"",s=t.pageProp.url;if(s){var u=s.match(new RegExp(n));return u&&u[0]?"付费广告流量":r(i,a)?"自然搜索流量":r(o,a)?"社交网站流量":""===a?"直接流量":"引荐流量"}return"获取url异常"},SS=function(e,t){return e.hasAttribute?e.hasAttribute(t):Boolean(e.attributes[t]&&e.attributes[t].specified)},PS=function(e){var t={},n=[];if(e.getAttributeNames)n=e.getAttributeNames();else for(var i=e.attributes,o=i.length,a=0;a<o;a++)n[a]=i[a].name;return n.forEach((function(n){var i=e.getAttribute(n);if(0===n.indexOf("beidou-prop-")&&"beidou-prop-json"!==n){var o=n.replace("beidou-prop-","");o&&i&&(t[o]=i)}else if("beidou-prop-json"===n)try{var a=JSON.parse(i);t=r(r({},t),a)}catch(lj){console.log("json parse error")}})),t},ES=function(){return window===top};function OS(){return"undefined"!=typeof navigator&&(/miniprogram/i.test(navigator.userAgent)||"miniprogram"===window.__wxjs_environment)}function xS(e){var t=e;try{t=decodeURI(e)}catch(r){t=e}return t}function jS(e){return ng(e)?xS(e):xS(location.href)}function IS(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r}function TS(){return xS(location.pathname)}function DS(){var e=document.body&&document.body.scrollHeight||0,t=document.documentElement&&document.documentElement.scrollHeight||0,r=document.body&&document.body.offsetHeight||0,n=document.documentElement&&document.documentElement.offsetHeight||0,i=document.body&&document.body.clientHeight||0,o=document.documentElement&&document.documentElement.clientHeight||0;return Math.max(e,t,r,n,i,o)||0}var NS=function(e,t){if(e&&"string"==typeof e){var n=t||{},i=null;if(window._Beidou_Plugins&&window._Beidou_Plugins[e]&&"function"==typeof window._Beidou_Plugins[e].prototype.init){var o=new window._Beidou_Plugins[e](this.hooks);o.init instanceof Function&&o.init(r({},n)),i=function(t,r){return o[t]instanceof Function?o[t](r):(console.warn("方法".concat(t,"在插件").concat(e,"中不存在")),null)},this.plugins[e]={callService:i}}else console.error("插件".concat(e," 注册失败请检查插件名称"))}},AS=function(){function e(){o(this,e)}return s(e,[{key:"isSupport",value:function(){var e=!0,t="__beidousdatasupport__",r="testIsSupportStorage";try{window.sessionStorage&&window.sessionStorage.setItem?(window.sessionStorage.setItem(t,r),window.sessionStorage.removeItem(t,r),e=!0):e=!1}catch(n){console.log("🕷-SessionStorage",n),e=!1}return e}},{key:"setItem",value:function(){return window.sessionStorage.setItem(arguments)}},{key:"getItem",value:function(){return window.sessionStorage.getItem(arguments)}},{key:"removeItem",value:function(){return window.sessionStorage.removeItem(arguments)}}]),e}(),CS=new AS,RS=function(){function e(){o(this,e)}return s(e,[{key:"length",get:function(){return window.localStorage.length}},{key:"key",value:function(){return window.localStorage.key(arguments)}},{key:"get",value:function(e){return window.localStorage.getItem(e)}},{key:"parse",value:function(e){var t;try{t=JSON.parse(this.get(e))||null}catch(r){console.error(r)}return t}},{key:"set",value:function(e,t){window.localStorage.setItem(e,t)}},{key:"remove",value:function(e){window.localStorage.removeItem(e)}},{key:"isSupport",value:function(){var e=!0;try{var t="__beidoudatasupport__",r="testIsSupportStorage";this.set(t,r),this.get(t)!==r&&(e=!1),this.remove(t)}catch(n){console.log("🕷-isSupport",n),e=!1}return e}}]),e}(),LS=new RS,BS="beidouDataAnalytic202002",MS="https://uat-stat.hzins.net/beidou/collect",HS={server_url:"https://stat.hzins.net/beidou/collect",preset_properties:{latest_utm:!0,latest_traffic_source_type:!0,latest_search_keyword:!0,latest_referrer:!0,latest_referrer_host:!1,latest_landing_page:!1,url:!1,title:!1},img_use_crossorigin:!1,name:"sa",max_referrer_string_length:200,max_string_length:2e3,cross_subdomain:!0,soft_exchange_crossdomain:!1,show_log:!0,is_debug:!1,debug_mode:!1,debug_mode_upload:!1,webstay_time:{time:null,close_heartbeat_log:!0},refresh_pageleave_data_time:5e3,pageleave_custom_Props:{},session_time:0,source_channel:[],send_type:"image",method_get_max_length:2e3,vtrack_ignore:{},auto_init:!0,is_track_single_page:!1,is_single_page:!1,is_hash_single_page:!1,batch_send:!1,source_type:{},callback_timeout:200,datasend_timeout:1e4,queue_timeout:300,is_track_device_id:!1,use_app_track:!1,use_app_track_is_send:!0,ignore_oom:!0,app_js_bridge:{white_list:["https://stat.hzins.net","https://uat-stat.hzins.net"]},global_prefix:"_beidou_",no_auto_pageview:!1,no_app_event:!1,heatmap:{collect_elements:"all"},exposure_time:300,exposure_area_percent:.3,enable_heartbeat:!1,encrypt_c
7ookie:!1},$S=["www.baidu.","m.baidu.","m.sm.cn","so.com","sogou.com","youdao.com","google.","yahoo.com/","bing.com/","ask.com/","so.toutiao.com"],US=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_code","utm_id"],qS=["weibo.com","renren.com","kaixin001.com","douban.com","qzone.qq.com","zhihu.com","tieba.baidu.com","weixin.qq.com"],JS={baidu:["wd","word","kw","keyword"],google:"q",bing:"q",yahoo:"p",sogou:["query","keyword"],so:"q",sm:"q",toutiao:"keyword"},FS=[],WS=["_pageview","_pageleave","_web_stay","_web_click","_web_longpress","_web_exposure","_sign_up","_sign_in","_sign_out"],zS=function(e,t){return{getServerUrl:function(){return e.server_url||t.server_url},setServerUrl:function(e){t.server_url=e},getEnv:function(){return e.environment||t.environment},setDefaultEnv:function(e){t.environment=e},getEnableHeartbeat:function(){return e.enable_heartbeat||t.enable_heartbeat},setDefaultEnableHeartbeat:function(e){t.enable_heartbeat=e},getAppJsBridge:function(){return e.app_js_bridge||t.app_js_bridge},getGlobalPrefix:function(){return e.global_prefix||t.global_prefix},getMaxReferrerStringLength:function(){return e.max_referrer_string_length||t.max_referrer_string_length},getMaxStringLength:function(){return e.max_string_length||t.max_string_length},setDefaultMaxStringLength:function(e){t.max_string_length=e},getDatasendTimeout:function(){return e.datasend_timeout||t.datasend_timeout},setDefaultDatasendTimeout:function(e){t.datasend_timeout=e},setSEND_FILED_DELETE_LIST:function(e){FS=e}}},KS=function(){function e(){o(this,e),this.state=0,this.historyState=[],this.stateType={1:"1-init未开始",2:"2-init开始",3:"3-store完成"}}return s(e,[{key:"getState",value:function(){return this.historyState.join("\n")}},{key:"setState",value:function(e){String(e)in this.stateType&&(this.state=e),this.historyState.push(this.stateType[e])}}]),e}(),GS=function(){function e(t){o(this,e),this.beidou=t}return s(e,[{key:"_unique_id",value:function(){}},{key:"jssdkDebug",value:function(){}},{key:"_sendDebug",value:function(e){this.beidou.trail.track("_beidoudata2019_debug",{_jssdk_debug_info:e})}},{key:"apph5",value:function(e){var t="app_h5打通失败-",r={1:t+"use_app_track为false",2:t+"Android或者iOS,没有暴露相应方法",3.1:t+"Android校验server_url失败",3.2:t+"iOS校验server_url失败"},n=e.output,i=e.step,o=e.data;"all"!==n&&"console"!==n||ug(this.beidou.para.webstay_time)&&this.beidou.para.webstay_time.close_heartbeat_log||this.beidou.log(r[i]),("all"===n||"code"===n)&&ug(this.beidou.para.is_debug)&&this.beidou.para.is_debug.apph5&&(o.type&&"profile"===o.type.slice(0,7)||(o.properties._jssdk_debug_info="apph5-"+String(i)))}}]),e}(),VS=function(){function e(t){o(this,e),this.beidou=t,this.pageProp={},this.currentProps={},this.currentPageProps={}}return s(e,[{key:"initPage",value:function(){var e=this.beidou,t=fS(null,e),r=location.href,n=hS(r,e);n||e.debug.jssdkDebug("url_domain异常_"+r+"_"+n),this.pageProp={referrer:t,referrer_host:t?bS(t):"",url:r,url_host:bS(r,"url_host取值异常"),url_domain:n}}},{key:"campaignParams",value:function(){var e=this.beidou.source_channel_standard.split(" "),t="",r={};return rg(this.beidou.para.source_channel)&&this.beidou.para.source_channel.length>0&&(e=function(e){for(var t,r=[],n={},i=0;i<e.length;i++)(t=e[i])in n||(n[t]=!0,r.push(t));return r}(e=e.concat(this.beidou.para.source_channel))),lg(e,(function(e){(t=mS(location.href,e)).length&&(r[e]=t)})),r}},{key:"getCurrentPageProps",value:function(){var e=/(http|https):\/\/([\w.]+\/?)\S*/,t={},n=window.location.href;if(!this.beidou.para.is_hash_single_page){var i=window.location.href.indexOf("#");i>0&&(n=window.location.href.slice(0,i))}var o=this.currentPageProps[n];for(var a in this.currentPageProps)e.test(a)||(t[a]=this.currentPageProps[a]);return t=r(r({},t),o),yg(t,this.beidou),t}},{key:"removePageCommonProps",value:function(e){var t=this,r=this.currentPageProps[location.href];if(!e&&r)delete this.currentPageProps[location.href];else if("string"==typeof e&&r&&isObject(r))delete this.currentPageProps[location.href][e];else{if(!(rg(e)&&r&&isObject(r)))throw"".concat(e,", 参数错误");e.forEach((function(e){if("string"!=typeof e||!r[e])throw"".concat(e,", 参数错误");delete t.currentPageProps[location.href][e]}))}}},{key:"campaignParamsStandard",value:function(e,t){var r=e||"",n=t||"",i=this.campaignParams(),o={},a={};for(var s in i)-1!==(" "+this.beidou.source_channel_standard+" ").indexOf(" "+s+" ")?o[r+s]=i[s]:a[n+s]=i[s];return{_utms:o,otherUtms:a}}},{key:"properties",value:function(){return{_screen_height:Number(screen.height)||0,_screen_width:Number(screen.width)||0}}},{key:"register",value:function(e){dg(this.currentProps,e)}}]),e}(),XS=function(){function e(t){o(this,e),this.beidou=t}return s(e,[{key:"get",value:function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return lS(i.substring(t.length,i.length))}return null}},{key:"set",value:function(e,t,r,n,i){var o="",a="",s="",u=null===r?73e3:r;if(void 0===n?this.beidou.para.cross_subdomain:n){var c=hS(location.href,this.beidou);"url解析失败"===c&&(c=""),o=c?"; domain="+c:""}if(0!==u){var l=new Date;"s"===String(u).slice(-1)?l.setTime(l.getTime()+1e3*Number(String(u).slice(0,-1))):l.setTime(l.getTime()+24*u*60*60*1e3),a="; expires="+l.toUTCString()}i&&(s="; secure"),document.cookie=e+"="+encodeURIComponent(t)+a+"; path=/"+o+s}},{key:"encrypt",value:function(e){return"beidou-df-encode-"+Ag(e)}},{key:"decrypt",value:function(e){return 0===e.indexOf("beidou-df-encode-")&&(e=e.substring("beidou-df-encode-".length),e=Ag(e)),e}},{key:"resolveValue",value:function(e){return!ng(e)||0!==e.indexOf("data:enc;")&&0!==e.indexOf("beidou-df-encode-")||(e=this.decrypt(e)),e}},{key:"remove",value:function(e,t){var r=void 0===t?this.beidou.para.cross_subdomain:t;this.set(e,"",-1,r)}},{key:"getCookieName",value:function(e,t,r){var n="",i=t||location.href;if(!1===("boolean"==typeof r?r:this.beidou.para.cross_subdomain)){try{n=vS(i).hostname}catch(o){console.log("🕷-getCookieName",o),this.beidou.log(o)}n="string"==typeof n&&""!==n?"BeidouDataWebSdkCore"+e+"_"+n.replace(/\./g,"_"):"BeidouDataWebSdkRoot"+e}else n="BeidouDataWebSdkCross"+e;return n}},{key:"getOldCookieName",value:function(e,t){var r="";if(!1===("boolean"==typeof t?t:this.beidou.para.cross_subdomain)){try{r=vS(location.href).hostname}catch(n){console.log("🕷-getCookieName",n),this.beidou.log(n)}r="string"==typeof r&&""!==r?"sa_jssdk_2015"+e+"_"+r.replace(/\./g,"_"):"sa_jssdk_2015_root"+e}else r="beidoudata2015jssdkcross"+e;return r}},{key:"getNewUser",value:function(){return null!==this.get("beidoudata_is_new_user")||null!==this.get(this.getCookieName("_new_user",null,null))}}]),e}(),YS=Qe,QS=Fa;_i({target:"Object",stat:!0,forced:k((function(){QS(1)}))},{keys:function(e){return QS(YS(e))}});var ZS=function(){function e(t){o(this,e),this.beidou=t,this.is_first_visit_time=!1}return s(e,[{key:"checkIsAddSign",value:function(e){"track"===e.type&&(this.beidou.cookie.getNewUser()?e.properties._is_first_day=!0:e.properties._is_first_day=!1)}},{key:"checkIsFirstTime",value:function(e){"track"===e.type&&"_pageview"===e.event&&(this.is_first_visit_time?(e.properties._is_first_time=!0,this.is_first_visit_time=!1):e.properties._is_first_time=!1)}},{key:"setDeviceId",value:function(e){var t=null,r=this.beidou.cookie.get("BeidouDataWebSdkCross"),n={};null!==(r=this.beidou.cookie.resolveValue(r))&&ag(r)&&(n=JSON.parse(r))._device_id&&(t=n._device_id),t=t||e,!0===this.beidou.para.cross_subdomain?this.beidou.store.set("_device_id",t):(n._device_id=t,this.beidou.cookie.set("BeidouDataWebSdkCross",JSON.stringify(n),null,!0)),this.beidou.para.is_track_device_id&&(this.beidou.info.currentProps._device_id=t)}},{key:"storeInitCheck",value:function(){if(this.beidou.is_first_visitor){var e=new Date,t={h:23-e.getHours(),m:59-e.getMinutes(),s:59-e.getSeconds()};this.beidou.cookie.set(this.beidou.cookie.getCookieName("_new_user"),"1",3600*t.h+60*t.m+t.s+"s"),this.is_first_visit_time=!0}else this.beidou.cookie.getNewUser()||(this.checkIsAddSign=function(e){"track"===e.type&&(e.properties._is_first_day=!1)}),this.checkIsFirstTime=function(e){"track"===e.type&&"_pageview"===e.event&&(e.properties._is_first_time=!1)}}},{key:"checkIsFirstLatest",value:function(){for(var e=this,t=this.beidou.info.pageProp.url_domain,r=["_utm_source","_utm_medium","_utm_campaign","_utm_content","_utm_term","_utm_code","_utm_id"],n=this.beidou.store.getProps(),i=0;i<r.length;i++)r[i]in n&&delete n[r[i]];this.beidou.store.setProps(n,!0);var o={};""===t&&(t="url解析失败");var a=wS(null,this.beidou);if(this.handleSearchKeyWord(o,a),lg(this.beidou.para.preset_properties,(function(r,n){if(-1===n.indexOf("latest_"))return!1;var i,s,u=n.slice(7);if(r){if("utm"!==u&&"url解析失败"===t)o["_latest_"+u]="url的domain解析失败";else if(i=document.referrer,""===(s=i||document.referrer)||pS(bS(s))!==pS())switch(u){case"traffic_source_type":o._latest_traffic_source_type=kS(e.beidou,e.beidou.info);break;case"referrer":o._latest_referrer=e.beidou.info.pageProp.referrer;break;case"search_keyword":o._latest_search_keyword=a;break;case"landing_page":o._latest_landing_page=location.href}}else if("utm"===u&&e.beidou.store._state.props)for(var c in e.beidou.store._state.props)0!==c.indexOf("_latest_utm")&&0!==c.indexOf("_latest_")||delete e.beidou.store._state.props[c];else e.beidou.store._state.props&&"_latest_"+u in e.beidou.store._state.props&&delete e.beidou.store._state.props["_latest_"+u]})),this.beidou.register(o),this.beidou.para.preset_properties.latest_utm){var s=this.beidou.info.campaignParamsStandard("_latest_","_latest_"),u=s._utms,c=s.otherUtms;cg(u)||this.beidou.register(u),cg(c)||this.beidou.register(c)}}},{key:"handleSearchKeyWord",value:function(e,t){Object.keys(this.beidou.para.preset_properties).includes("latest_search_keyword")&&!window.sessionStorage.getItem("getSearchKeyword")?(e._search_keyword=t,window.sessionStorage.setItem("getSearchKeyword",!0)):"string"==typeof t&&(t.includes("未取到值")||t.includes("取值异常"))?e._search_keyword=t:e._search_keyword=""}}]),e}(),eP=xy;_i({target:"Object",stat:!0,arity:2,forced:Object.assign!==eP},{assign:eP});var tP,rP=_i,nP=$,iP=w.f,oP=En,aP=To,sP=xd,uP=Z,cP=Id,lP=nP("".startsWith),dP=nP("".slice),fP=Math.min,pP=cP("startsWith");rP({target:"String",proto:!0,forced:!!(pP||(tP=iP(String.prototype,"startsWith"),!tP||tP.writable))&&!pP},{startsWith:function(e){var t=aP(uP(this));sP(e);var r=oP(fP(arguments.length>1?arguments[1]:undefined,t.length)),n=aP(e);return lP?lP(t,n,r):dP(t,r,r+n.length)===n}});var hP=function(){function e(t){o(this,e),this.beidou=t,this.requests={},this._sessionState={},this.miniState={},this._state={_unique_id:"",first_id:"",props:{},session_id:"",_page_visit_id:"",ids:{},history_user_id:{name:"",value:""},already_send_once_profile:!1}}return s(e,[{key:"getProps",value:function(){return this._state.props||{}}},{key:"getSessionProps",value:function(){return this._sessionState}},{key:"getMiniState",value:function(){return this.miniState}},{key:"getDistinctId",value:function(){return this._state._distinct_id||this._state._unique_id}},{key:"getPVId",value:function(){return this._state._page_visit_id}},{key:"getSessionId",value:function(){return this._state.session_id}},{key:"getGuid",value:function(){return String(Date.now())+"-"+Math.floor(1e7*Math.random())+"-"+Math.random().toString(16).replace(".","")+"-"+String(31242*Math.random()).replace(".","").slice(0,8)}},{key:"getUnionId",value:function(){var e={},t=this._state._first_id||this._state.first_id,r=this._state._distinct_id||this._state._unique_id;return t&&r?(e.anonymous_id=t,e.uuid=Ng()):(e.anonymous_id=r,e.uuid=Ng()),OS()&&this.miniState._beidouWxDistinctId&&(e._user_id=this.miniState._beidouWxLoginId),e}},{key:"getFirstId",value:function(){return this._state._first_id||this._state.first_id}},{key:"getSdkInjection",value:function(){return this._state.sdk_injection}},{key:"getIds",value:function(){return this._state.ids||{}}},{key:"getHistoryUserId",value:function(){return this._state.history_user_id||{name:"",value:""}}},{key:"getFirstVisitProps",value:function(){return this._state.first_visit_props||{}}}
7,{key:"getAlreadySendOnceProfile",value:function(){return this._state.already_send_once_profile}},{key:"toState",value:function(e){var t=null;if(null!==e&&ag(e))if(t=JSON.parse(e),this._state=dg(t),t._unique_id){if("object"===i(t.props)){for(var r in t.props)"string"==typeof t.props[r]&&(t.props[r]=t.props[r].slice(0,this.beidou.para.max_referrer_string_length));this.save()}}else{var n=Ng();this.set("_unique_id",n),this.setIds({_unq_id:n}),this.beidou.debug._unique_id("1",e)}else{var o=Ng();this.set("_unique_id",o),this.beidou.debug._unique_id("2",e)}OS()&&this.miniState._beidouWxDistinctId&&(this.set("_unique_id",this.miniState._beidouWxDistinctId),this.set("_user_id",this.miniState._beidouWxLoginId))}},{key:"initSessionState",value:function(){var e=this.beidou.cookie.get("beidouDataSession"),t=null;null!==e&&"object"===i(t=JSON.parse(e))&&(this._sessionState=t||{})}},{key:"setOnce",value:function(e,t){e in this._state||this.set(e,t)}},{key:"set",value:function(e,t){if(this._state=this._state||{},this._state[e]=t,"first_id"===e?delete this._state._first_id:"_unique_id"===e&&delete this._state._distinct_id,"_user_id"===e){var r=this.beidou.para.user_id_key||"_user_id",n=this.beidou.cookie.resolveValue(this.beidou.cookie.get(this.beidou.cookie.getCookieName(""))),i=JSON.parse(n)._user_id_key;if(i){var o=JSON.parse(i);this.beidou.para.user_id_key!==o[0]&&this.setUnbindIds(u({},o[0],o[1]))}this.set("_user_id_key",JSON.stringify([r,t])),this.setIds(u({},r,t))}OS()&&this.miniState._beidouWxDistinctId&&("_user_id"===e&&(this._state[e]=this.miniState._beidouWxLoginId),"_unique_id"===e&&(this._state[e]=this.miniState._beidouWxDistinctId)),this.save()}},{key:"change",value:function(e,t){this._state["_"+e]=t}},{key:"setSessionProps",value:function(e){var t=this._sessionState;dg(t,e),this.sessionSave(t)}},{key:"setSessionPropsOnce",value:function(e){var t=this._sessionState;fg(t,e),this.sessionSave(t)}},{key:"setProps",value:function(e,t){var r={};for(var n in r=t?e:dg(this._state.props||{},e))"string"==typeof r[n]&&(r[n]=r[n].slice(0,this.beidou.para.max_referrer_string_length));this.set("props",r)}},{key:"setPropsOnce",value:function(e){var t=this._state.props||{};fg(t,e),this.set("props",t)}},{key:"clearAllProps",value:function(e){if(this._sessionState={},rg(e)&&e.length>0)for(var t=0;t<e.length;t++)ng(e[t])&&-1===e[t].indexOf("latest_")&&e[t]in this._state.props&&delete this._state.props[e[t]];else for(var r in this._state.props)1!==r.indexOf("latest_")&&delete this._state.props[r];this.sessionSave({}),this.save()}},{key:"setIds",value:function(e){var t=dg(this._state.ids||{},e);for(var r in t)"string"==typeof t[r]&&(t[r]=t[r].slice(0,this.beidou.para.max_referrer_string_length));this.set("ids",t),this.save()}},{key:"setUnbindIds",value:function(e){var t=this._state.ids;for(var r in e)e[r]&&t[r]===e[r]&&delete t[r];cg(t)&&(t=undefined),this.set("ids",t),this.save()}},{key:"setHistoryUserId",value:function(e,t){var r=this._state.history_user_id;r.name=e,r.value=t,this.set("history_user_id",r),this.save()}},{key:"sessionSave",value:function(e){this._sessionState=e,this.beidou.cookie.set("beidouDataSession",JSON.stringify(this._sessionState),0)}},{key:"setFirstVisitProps",value:function(){var e=this.beidou.info.campaignParams();for(var t in e)(" "+this.beidou.source_channel_standard+" ").indexOf(" "+t+" "),e[t];var r={};for(var n in e)r["_first_".concat(n)]=e[n];var i=Object.assign({_first_visit_time:(new Date).getTime(),_first_referrer:fS(null,this.beidou),_first_browser_language:navigator.language||"取值异常",_first_browser_charset:"string"==typeof document.charset?document.charset.toUpperCase():"取值异常",_first_traffic_source_type:kS(this.beidou,this.beidou.info),_first_search_keyword:wS(null,this.beidou)},r);this.set("first_visit_props",i),this.save()}},{key:"setAlreadySendOnceProfile",value:function(){this.set("already_send_once_profile",!0),this.save()}},{key:"save",value:function(){var e=JSON.parse(JSON.stringify(this._state));OS()&&this.miniState._beidouWxDistinctId&&(e._unique_id=this.miniState._beidouWxDistinctId),delete e._first_id,delete e.distinct_id;var t=JSON.stringify(e);
7this.beidou.para.encrypt_cookie&&(t=this.beidou.cookie.encrypt(t)),this.beidou.cookie.set(this.beidou.cookie.getCookieName(""),t,73e3,this.beidou.para.cross_subdomain)}},{key:"initMiniProgramState",value:function(){if(OS()){var e="beidou_mini_cross_state",t=JSON.parse(this.beidou.cookie.get(e)||"{}"),r=mS(location.href,"beidouWxDistinctId"),n=mS(location.href,"beidouWxLoginId"),i=r||t._beidouWxDistinctId,o=n||t._beidouWxLoginId;r&&!n&&(o=""),i||(i="",o="");var a=pS();a&&(a=a.substring(1,a.length)),this.miniState={_beidouWxDistinctId:i,_beidouWxLoginId:o},this.beidou.cookie.set(e,JSON.stringify({_beidouWxDistinctId:i,_beidouWxLoginId:o}),null,a)}}},{key:"exchangeOldCookie",value:function(e){var t=this;try{var r=JSON.parse(e);Object.keys(r).forEach((function(e){var n={distinct_id:"_unique_id",login_id:"_user_id",first_id:"first_id",session_id:"session_id",sdk_injection:"sdk_injection"};if(n[e])r[e]&&(t.set(n[e],r[e]),"_unique_id"===n[e]&&t.setIds({_unq_id:r[e]}));else if(e.startsWith("$")&&"$page_visit_id"!==e)t.set(e.replace("$","_"),r[e]);else if("props"===e&&"object"===i(r[e])){Object.keys(r.props).forEach((function(e){e.startsWith("$")&&(r.props[e.replace("$","_")]=r.props[e],delete r.props[e])})),t.set("props",r.props)}else t.set(e,r[e])})),this.beidou.cookie.remove(this.beidou.cookie.getOldCookieName(""),this.beidou.para.cross_subdomain)}catch(n){console.log("标准版用户标识打通老版失败,json parse error")}}},{key:"dealNewUser",value:function(){this.beidou.cookie.get(this.beidou.cookie.getOldCookieName("_new_user"))&&(this.beidou.cookie.set(this.beidou.cookie.getCookieName("_new_user"),1,null),this.beidou.cookie.remove(this.beidou.cookie.getOldCookieName("_new_user")))}},{key:"dealCrossNewUser",value:function(){this.beidou.cookie.get(this.beidou.cookie.getCookieName("_new_user",null,!0))&&(this.beidou.cookie.set(this.beidou.cookie.getCookieName("_new_user",null,!1),1,null),this.beidou.cookie.remove(this.beidou.cookie.getCookieName("_new_user",null,!0)))}},{key:"init",value:function(){this.initSessionState(),this.initMiniProgramState();var e=Ng(),t=this.beidou.cookie.get(this.beidou.cookie.getCookieName(""));if(null===(t=this.beidou.cookie.resolveValue(t))){var r=this.beidou.cookie.get(this.beidou.cookie.getOldCookieName("")),n=this.beidou.cookie.get(this.beidou.cookie.getCookieName("",null,!0));r?(this.dealNewUser(),this.exchangeOldCookie(r)):!this.beidou.para.cross_subdomain&&this.beidou.para.soft_exchange_crossdomain&&!r&&n&&ag(n)&&JSON.parse(n)._unique_id?(this.dealCrossNewUser(),this.exchangeOldCookie(n)):(this.beidou.is_first_visitor=!0,this.set("_unique_id",e),this.setIds({_unq_id:e}))}else ag(t)&&JSON.parse(t)._unique_id||(this.beidou.is_first_visitor=!0),this.toState(t);this.set("_page_visit_id","".concat(e,"-").concat(Date.now())),this.beidou.beidouNewUser.setDeviceId(e),this.beidou.beidouNewUser.storeInitCheck(),this.beidou.beidouNewUser.checkIsFirstLatest()}}]),e}(),_P=mn,gP=To,vP=Z,mP=RangeError,yP=_i,bP=$,wP=mn,kP=Al,SP=function(e){var t=gP(vP(this)),r="",n=_P(e);if(n<0||n==Infinity)throw mP("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r},PP=k,EP=RangeError,OP=String,xP=Math.floor,jP=bP(SP),IP=bP("".slice),TP=bP(1..toFixed),DP=function(e,t,r){return 0===t?r:t%2==1?DP(e,t-1,r*e):DP(e*e,t/2,r)},NP=function(e,t,r){for(var n=-1,i=r;++n<6;)i+=t*e[n],e[n]=i%1e7,i=xP(i/1e7)},AP=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=xP(n/t),n=n%t*1e7},CP=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=OP(e[t]);r=""===r?n:r+jP("0",7-n.length)+n}return r};yP({target:"Number",proto:!0,forced:PP((function(){return"0.000"!==TP(8e-5,3)||"1"!==TP(.9,0)||"1.25"!==TP(1.255,2)||"1000000000000000128"!==TP(0xde0b6b3a7640080,0)}))||!PP((function(){TP({})}))},{toFixed:function(e){var t,r,n,i,o=kP(this),a=wP(e),s=[0,0,0,0,0,0],u="",c="0";if(a<0||a>20)throw EP("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return OP(o);if(o<0&&(u="-",o=-o),o>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(o*DP(2,69,1))-69)<0?o*DP(2,-t,1):o/DP(2,t,1),r*=4503599627370496,(t=52-t)>0){for(NP(s,0,r),n=a;n>=7;)NP(s,1e7,0),n-=7;for(NP(s,DP(10,n,1),0),n=t-1;n>=23;)AP(s,1<<23),n-=23;AP(s,1<<n),NP(s,1,1),AP(s,2),c=CP(s)}else NP(s,0,r),NP(s,1<<-t,0),c=CP(s)+jP("0",a);return c=a>0?u+((i=c.length)<=a?"0."+jP("0",a-i)+c:IP(c,0,i-a)+"."+IP(c,i-a)):u+c}});var RP=b,LP=Rc,BP=ne,MP=qs,HP=lf,$P=/MSIE .\./.test(fe),UP=RP.Function,qP=function(e){return $P?function(t,r){var n=HP(arguments.length,1)>
72,i=BP(t)?t:UP(t),o=n?MP(arguments,2):undefined;return e(n?function(){LP(i,this,o)}:i,r)}:e},JP={setTimeout:qP(RP.setTimeout),setInterval:qP(RP.setInterval)},FP=JP.setInterval;_i({global:!0,bind:!0,forced:b.setInterval!==FP},{setInterval:FP});var WP=JP.setTimeout;_i({global:!0,bind:!0,forced:b.setTimeout!==WP},{setTimeout:WP});var zP=b,KP=k,GP=$,VP=To,XP=ql.trim,YP=Cl,QP=zP.parseInt,ZP=zP.Symbol,eE=ZP&&ZP.iterator,tE=/^[+-]?0x/i,rE=GP(tE.exec),nE=8!==QP(YP+"08")||22!==QP(YP+"0x16")||eE&&!KP((function(){QP(Object(eE))}))?function(e,t){var r=XP(VP(e));return QP(r,t>>>0||(rE(tE,r)?16:10))}:QP;_i({global:!0,forced:parseInt!=nE},{parseInt:nE});var iE=Ce,oE=Qe,aE=V,sE=xn,uE=TypeError,cE=function(e){return function(t,r,n,i){iE(r);var o=oE(t),a=aE(o),s=sE(o),u=e?s-1:0,c=e?-1:1;if(n<2)for(;;){if(u in a){i=a[u],u+=c;break}if(u+=c,e?u<0:s<=u)throw uE("Reduce of empty array with no initial value")}for(;e?u>=0:s>u;u+=c)u in a&&(i=r(i,a[u],u,o));return i}},lE={left:cE(!1),right:cE(!0)}.left,dE=ye,fE=zd;_i({target:"Array",proto:!0,forced:!so("reduce")||!fE&&dE>79&&dE<83},{reduce:function(e){var t=arguments.length;return lE(this,e,t,t>1?arguments[1]:undefined)}});var pE=function(e){function t(e){if(!e)return"";try{return JSON.parse(e)}catch(t){return console.log("🕷-getJSON",t),{}}}e.timeout=e.timeout||2e4,e.credentials="undefined"==typeof e.credentials||e.credentials;var r=function(e){if(e)return"undefined"!=typeof window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest?new XMLHttpRequest:"undefined"!=typeof XDomainRequest?new window.XDomainRequest:null;if("undefined"!=typeof window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(t){console.log("🕷-xhr-ActiveXObject",t);try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(r){console.error(r)}}}(e.cors);if(!r)return!1;e.type||(e.type=e.data?"POST":"GET");var n=dg({success:function(){},error:function(){}},e);try{"object"===i(r)&&"timeout"in r?r.timeout=n.timeout:setTimeout((function(){r.abort()}),n.timeout+500)}catch(a){console.log("🕷-ajax",a);try{setTimeout((function(){r.abort()}),n.timeout+500)}catch(s){console.error(s)}}r.onreadystatechange=function(){try{4==r.readyState&&(r.status>=200&&r.status<300||304==r.status?n.success(t(r.responseText)):n.error(t(r.responseText),r.status),r.onreadystatechange=null,r.onload=null)}catch(a){console.log("🕷-onreadystatechange",a),r.onreadystatechange=null,r.onload=null}},r.open(n.type,n.url,!0);try{if(n.credentials&&(r.withCredentials=!0),ug(n.header))for(var o in n.header)r.setRequestHeader(o,n.header[o]);n.data&&(n.cors||r.setRequestHeader("X-Requested-With","XMLHttpRequest"),"application/json"===n.contentType?r.setRequestHeader("Content-type","application/json; charset=UTF-8"):r.setRequestHeader("Content-type","application/x-www-form-urlencoded"))}catch(a){console.error(a)}r.send(n.data||null)},hE=function fj(e){return new fj.init(e)};(hE.init=function(e){this.ele=e}).prototype={addClass:function(e){return-1===(" "+this.ele.className+" ").indexOf(" "+e+" ")&&(this.ele.className=this.ele.className+(""===this.ele.className?"":" ")+e),this},removeClass:function(e){var t=" "+this.ele.className+" ";return-1!==t.indexOf(" "+e+" ")&&(this.ele.className=t.replace(" "+e+" "," ").slice(1,-1)),this},hasClass:function(e){return-1!==(" "+this.ele.className+" ").indexOf(" "+e+" ")},attr:function(e,t){if("string"==typeof e&&void 0===t)return this.ele.getAttribute(e);if("string"==typeof e){var r=String(t);this.ele.setAttribute(e,r)}return this},offset:function(){var e=this.ele.getBoundingClientRect();if(e.width||e.height){var t=this.ele.ownerDocument.documentElement;return{top:e.top+window.pageYOffset-t.clientTop,left:e.left+window.pageXOffset-t.clientLeft}}return{top:0,left:0}},getSize:function(){if(!window.getComputedStyle)return{width:this.ele.offsetWidth,height:this.ele.offsetHeight};try{var e=this.ele.getBoundingClientRect();return{width:e.width,height:e.height}}catch(t){return console.log("🕷-getSize",t),{width:0,height:0}}},getStyle:function(e){return this.ele.currentStyle?this.ele.currentStyle[e]:this.ele.ownerDocument.defaultView.getComputedStyle(this.ele,null).getPropertyValue(e)},wrap:function(e){var t=document.createElement(e);return this.ele.parentNode.insertBefore(t,this.ele),t.appendChild(this.ele),hE(t)},getCssStyle:function(e){var t=this.ele.style.getPropertyValue(e);if(t)return t;var r=null;if("function"==typeof window.getMatchedCSSRules&&(r=window.getMatchedCSSRules(this.ele)),!r||!rg(r))return null;for(var n=r.length-1;n>=0;n--){if(t=r[n].style.getPropertyValue(e))return t}},sibling:function(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e},next:function(){return this.sibling(this.ele,"nextSibling")},prev:function(){return this.sibling(this.ele,"previousSibling")},siblings:function(){return this.siblings((this.ele.parentNode||{}).firstChild,this.ele)},children:function(){return this.siblings(this.ele.firstChild)},parent:function(){var e=this.ele.parentNode;return e=e&&11!==e.nodeType?e:null,hE(e)}};var _E=function(e){var t={};return t.timeout=e.timeout||1e3,t.func=e.func,t.hasInit=!1,t.inter=null,t.main=function(e,t,r){this.func(e,t,r),this.inter=null},t.go=function(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i={},o=document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop||0,a=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0,s=DS();this.inter||(i._viewport_position=o,i._viewport_position=Math.round(i._viewport_position)||0,i._viewport_height=a,i._viewport_position_percent=s?Number((100*(o+document.documentElement.clientHeight)/s).toFixed(2)):0,i._viewport_width=window.innerWidth||document.documentElement.clientWidth||document.body&&document.body.clientWidth||0,i._stay_type=n.type||"none",i=r(r({},i),n._utms||{}),e?t.main(i,!0,n):this.inter=setTimeout((function(){t.main(i,!1,n)}),this.timeout))},t};function gE(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{},i=document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||document.body&&document.body.scrollTop||0,o=new Date,a=o-this.current_time;if(a>e.para.heatmap.scroll_delay_time&&i-t._viewport_position!=0||r){if(t._url=location.href,t._title=document.title,t._url_path=location.pathname,t._event_duration=Math.min(e.para.heatmap.scroll_event_duration,parseInt(a,10)/1e3),!n.pageviewTime)return;var s=o-n.pageviewTime;Array.isArray(n.leaveTime)&&n.leaveTime.length&&(s-=n.leaveTime.reduce((function(e,t){return e+t}))),t._event_duration_from_in=parseInt(s,10)/1e3,n.event_duration_delta&&(t._event_duration_delta=n.event_duration_delta),n.isHeartbeat&&(t._stay_type="heartbeat"),e.trail.track("_web_stay",t)}this.current_time=o}var vE=function(){function e(t){o(this,e),this.beidou=t}return s(e,[{key:"setNotice",value:function(e){this.beidou.is_heatmap_render_mode=!0,this.beidou.para.heatmap||(this.beidou.errorMsg="您没有配置开启点击图ï¼
7Œå¯èƒ½æ²¡æœ‰æ•°æ®ï¼"),e&&e[0]&&e[1]&&"http:"===e[1].slice(0,5)&&"https"===location.protocol&&(this.beidou.errorMsg="您的当前页面是https的地址,北斗分析环境也必须是https!"),this.beidou.para.heatmap_url||(this.beidou.para.heatmap_url=location.protocol+"//static.beidouthis.beidou.ta.cn/this.beidou./"+this.beidou.lib_version+"/heatmap.min.js")}},{key:"getDomIndex",value:function(e){if(!e.parentNode)return-1;for(var t=0,r=e.tagName,n=e.parentNode.children,i=0;i<n.length;i++)if(n[i].tagName===r){if(e===n[i])return t;t++}return-1}},{key:"selector",value:function(e){var t=e.parentNode&&9===e.parentNode.nodeType?-1:this.getDomIndex(e);return e.getAttribute&&e.getAttribute("id")&&(!this.beidou.para.heatmap||this.beidou.para.heatmap&&"not_use_id"!==this.beidou.para.heatmap.element_selector)?"#"+e.getAttribute("id"):e.tagName.toLowerCase()+(~t?":nth-of-type("+(t+1)+")":"")}},{key:"getDomSelector",value:function(e,t){if(!e||!e.parentNode||!e.parentNode.children)return!1;var r=t&&t.join?t:[],n=e.nodeName.toLowerCase();return e&&"body"!==n&&1===e.nodeType?(r.unshift(this.selector(e)),e.getAttribute&&e.getAttribute("id")&&this.beidou.para.heatmap&&"not_use_id"!==this.beidou.para.heatmap.element_selector?r.join(" > "):this.getDomSelector(e.parentNode,r)):(r.unshift("body"),r.join(" > "))}},{key:"getBrowserWidth",value:function(){var e=window.innerWidth||document.body.clientWidth;return isNaN(e)?0:parseInt(e,10)}},{key:"getBrowserHeight",value:function(){var e=window.innerHeight||document.body.clientHeight;return isNaN(e)?0:parseInt(e,10)}},{key:"getScrollWidth",value:function(){var e=parseInt(document.body.scrollWidth,10);return isNaN(e)?0:e}},{key:"start",value:function(e,t,r,n,i,o){var a=ug(n)?n:{},s=sg(i)?i:sg(n)?n:undefined;if(this.beidou.para.heatmap&&this.beidou.para.heatmap.collect_element&&!this.beidou.para.heatmap.collect_element(t))return!1;var u=this.getDomSelector(t),c=_S({target:t},this.beidou),l=gS(window&&window.location&&window.location.search),d={latest_campaign_code:l.campaign_code,_referrer_page_alias:l.share_page_alias||CS&&CS.getItem("_referrer_page_alias"),is_share:l.is_share,share_url:l.share_url,share_page_alias:l.share_page_alias,share_platform_type:l.share_platform_type,share_member_id:l.share_member_id,page_type:dS()?"H5":"PC-Web",appstore_code:window._hz_appinfo&&window._hz_appinfo.appstore_code};if((c=dg(c,d))._element_selector=u||"",this.beidou.para.heatmap&&this.beidou.para.heatmap.custom_property){var f=this.beidou.para.heatmap.custom_property(t);ug(f)&&(c=dg(c,f))}c=dg(c,a),o?this.beidou.trail.track("_web_longpress",c,s):"a"===r&&this.beidou.para.heatmap&&!0===this.beidou.para.heatmap.isTrackLink?this.beidou.trail.trackLink({event:e,target:t},"_web_click",c):this.beidou.trail.track("_web_click",c,s)}},{key:"hasElement",value:function(e){var t=e._getPath();if(rg(t)&&t.length>0)for(var r=0;r<t.length;r++)if(t[r]&&t[r].tagName&&"a"===t[r].tagName.toLowerCase())return t[r];return!1}},{key:"initScrollmap",value:function(){var e=this,t=this.beidou;if(!ug(this.beidou.para.heatmap)||"default"!==this.beidou.para.heatmap.scroll_notice_map)return!1;var r=function(){return!(e.beidou.para.scrollmap&&sg(e.beidou.para.scrollmap.collect_url)&&!e.beidou.para.scrollmap.collect_url())},n=_E({timeout:1e3,func:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return gE.bind(this).apply(void 0,[t].concat(r))}});n.current_time=new Date;function i(e){t.info.currentProps&&"page_alias"in t.info.currentProps?window.sessionStorage&&window.sessionStorage.setItem("_referrer_page_alias",t.info.currentProps.page_alias):window.sessionStorage&&window.sessionStorage.setItem("_referrer_page_alias","");var r={};"unload"===e&&(r=function(){var e=t.info.campaignParams(),r={};for(var n in e)-1!==(" "+t.source_channel_standard+" ").indexOf(" "+n+" ")?r["_"+n]=e[n]:r[n]=e[n];return r}()),n.go("notime",{type:e,pageviewTime:t.pageview_time,_utms:r})}t.eventListener.addEvent(window,"scroll",(function(){if(!r())return!1;n.go(null,{type:"scroll",pageviewTime:t.pageview_time})})),t.eventListener.addEvent(window,"unload",(function(){if(!r())return!1;i("unload")})),t.eventListener.addEvent(window,"disappear",(function(){if(!r())return!1;i("disappear")}))}},{key:"initHeatmap",value:function(){var e=this,t=e.beidou;if(!ug(this.beidou.para.heatmap)||"default"!==this.beidou.para.heatmap.clickmap)return!1;if(sg(this.beidou.para.heatmap.collect_url)&&!this.beidou.para.heatmap.collect_url())return!1;function r(r){t.eventListener.addEvent(window,"longPress",(function(t){var n=t||window.event;if(!n)return!1;var o=n.target||n.srcElement;if("object"!==i(o))return!1;if("string"!=typeof o.tagName)return!1;var a=o.tagName.toLowerCase();if("body"===a.toLowerCase()||"html"===a.toLowerCase())return!1;if(!o||!o.parentNode||!o.parentNode.children)return!1;var s=o.parentNode.tagName.toLowerCase();if(r||"a"===a||"button"===a||"input"===a||"textarea"===a||"img"===a||SS(o,"data-beidou-click"))e.start(n,o,a,undefined,undefined,
7!0);else if("button"===s||"a"===s)e.start(n,s,o.parentNode.tagName.toLowerCase(),undefined,undefined,!0);else{var u=e.hasElement(t);u&&e.start(n,u,u.tagName.toLowerCase(),undefined,undefined,!0)}}))}"all"===this.beidou.para.heatmap.collect_elements?this.beidou.para.heatmap.collect_elements="all":this.beidou.para.heatmap.collect_elements="interact","all"===this.beidou.para.heatmap.collect_elements?(this.beidou.eventListener.addEvent(document,"click",(function(t){var r=t||window.event;if(!r)return!1;var n=r.target||r.srcElement;if("object"!==i(n))return!1;if("string"!=typeof n.tagName)return!1;var o=n.tagName.toLowerCase();if("body"===o||"html"===o)return!1;if(!n||!n.parentNode||!n.parentNode.children)return!1;var a=n.parentNode.tagName.toLowerCase();"a"===a||"button"===a?e.start(r,n.parentNode,a):e.start(r,n,o)})),r(!0)):(this.beidou.eventListener.addEvent(document,"click",(function(t){var r=t||window.event;if(!r)return!1;var n=r.target||r.srcElement;if("object"!==i(n))return!1;if("string"!=typeof n.tagName)return!1;var o=n.tagName.toLowerCase();if("body"===o.toLowerCase()||"html"===o.toLowerCase())return!1;if(!n||!n.parentNode||!n.parentNode.children)return!1;var a=n.parentNode;if("a"===o||"button"===o||"input"===o||"textarea"===o||SS(n,"data-beidou-click"))e.start(r,n,o);else if("button"===a.tagName.toLowerCase()||"a"===a.tagName.toLowerCase())e.start(r,a,n.parentNode.tagName.toLowerCase());else if("area"===o&&"map"===a.tagName.toLowerCase()&&hE(a).prev().tagName&&"img"===hE(a).prev().tagName.toLowerCase())e.start(r,hE(a).prev(),hE(a).prev().tagName.toLowerCase());else{var s=e.hasElement(t);s&&e.start(r,s,s.tagName.toLowerCase())}})),r(!1))}},{key:"prepare",value:function(e){var t=location.search.match(/sa-request-id=([^&#]+)/),r=location.search.match(/sa-request-type=([^&#]+)/),n=location.search.match(/sa-request-url=([^&#]+)/),o=this;function a(e,t,r){var n,a,s;o.para.heatmap_url?(n={success:function(){setTimeout((function(){"undefined"!=typeof sa_jssdk_heatmap_render&&(window.sa_jssdk_heatmap_render(o.data,t,r),"object"===("undefined"==typeof console?"undefined":i(console))&&"function"==typeof console.log&&(o.heatmap_version&&o.heatmap_version===o.lib_version||console.log("heatmap.js与beidouthis.beidou.ta.js版本号不一致,可能存在风险!")))}),0)},error:function(){},type:"js",url:o.para.heatmap_url},a=dg({success:function(){},error:function(){},appendCall:function(e){document.getElementsByTagName("head")[0].appendChild(e)}},n),s=null,"css"===a.type&&((s=document.createElement("link")).rel="stylesheet",s.href=a.url),"js"===a.type&&((s=document.createElement("script")).async="async",s.setAttribute("charset","UTF-8"),s.src=a.url,s.type="text/javascript"),s.onload=s.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(a.success(),s.onload=s.onreadystatechange=null)},s.onerror=function(){a.error(),s.onerror=null},a.appendCall(s)):o.log("没有指定heatmap_url的路径")}t&&t[0]&&t[1]?(this.setNotice(n),CS.isSupport()&&(n&&n[0]&&n[1]&&CS.setItem("beidou_heatmap_url",decodeURIComponent(n[1])),CS.setItem("beidou_heatmap_id",t[1]),r&&r[0]&&r[1]?"1"===r[1]||"2"===r[1]||"3"===r[1]?(r=r[1],CS.setItem("beidou_heatmap_type",r)):r=null:r=null!==CS.getItem("beidou_heatmap_type")?CS.getItem("beidou_heatmap_type"):null),a(t[1],r)):CS.isSupport()&&"string"==typeof CS.getItem("beidou_heatmap_id")?(this.setNotice(),a(CS.getItem("beidou_heatmap_id"),CS.getItem("beidou_heatmap_type"),location.href)):(e(),ug(this.beidou.para.heatmap)&&(this.initHeatmap(),this.initScrollmap()))}},{key:"autoTrailByAttr",value:function(){var e=this.beidou;e.eventListener.addEvent(document,"click",(function(t){var r=t||window.event;if(!r)return!1;var n=r.target||r.srcElement;if("object"!==i(n))return!1;if("string"!=typeof n.tagName)return!1;var o=n.tagName.toLowerCase();if("body"===o.toLowerCase()||"html"===o.toLowerCase())return!1;if(!n||!n.parentNode||!n.parentNode.children)return!1;if(!SS(n,"beidou-auto-track"))return!1;var a,s,u=SS(a=n,s="beidou-auto-track")&&a.attributes[s].value?a.attributes[s].value:null;if(!u)return!1;var c=PS(n);e.beidouEvent.send({type:"track",event:u,properties:c})}))}},{key:"trackByAppEvent",value:function(){var e=this.beidou;e.eventListener.addEvent(window,"appear",(function(t){var r=t||window.event;if(!r)return!1;e.trail.track("_pageview",dg(e.commonWays.useFirstTimeReportParam(),e.commonWays.pageviewParams,{_pageview_type:"appear",_referrer:r.detail.$referrer}))}))}}]),e}(),mE=function(){function e(t){o(this,e),this.start_time=(new Date).getTime(),this.page_show_status=!0,this.page_hidden_status=!1,this.beidou=t,this.timer=null,this.current_page_url=document.referrer,this.url=location.href,this.pageleave_custom_Props={},this.refresh_pageleave_data_time=5e3,this.refresh_interval_timer=null,this.page_visit_id=null,this.pageleave_storage_name="beidoujssdk
7pageleave",this.pagetime_storage_name="beidoujssdkpageviewtime",this.refresh_page_end_time=500}return s(e,[{key:"init",value:function(e){this.pageleave_custom_Props=Object.assign({},e.para.pageleave_custom_Props),this.refresh_pageleave_data_time=e.para.refresh_pageleave_data_time,this.page_visit_id=this.beidou.store.getPVId(),this.beidou=e,this.addEventListener(),document.hidden?this.page_show_status=!1:this.addHeartBeatInterval()}},{key:"refreshPageEndTimer",value:function(){var e=this;this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout((function(){e.page_hidden_status=!1}),this.refresh_page_end_time)}},{key:"hiddenStatusHandler",value:function(){clearTimeout(this.timer),this.timer=null,this.page_hidden_status=!1}},{key:"pageStartHandler",value:function(){this.start_time=this.getCurTimestamp(),this.page_show_status=!0,document.hidden?this.page_show_status=!1:this.page_show_status=!0,this.url=location.href}},{key:"pageEndHandler",value:function(e){if(!this.page_hidden_status){var t=this.getPageLeaveProperties();!1===this.page_show_status&&delete t._event_duration_from_in,this.page_show_status=!1,this.page_hidden_status=!0,this.beidou.track("_pageleave",Object.assign(Object.assign({},t),{_url:jS(this.url),_url_path:TS()})),this.saveCurPageviewTime(t._event_duration_from_in),this.refreshPageEndTimer(),this.delHeartBeatData()}}},{key:"addEventListener",value:function(){this.addPageStartListener(),this.addPageSwitchListener(),this.addSinglePageListener(),this.addPageEndListener()}},{key:"addPageStartListener",value:function(){var e=this;"onpageshow"in window&&this.beidou.eventListener.addEvent(window,"pageshow",(function(){e.pageStartHandler(),e.hiddenStatusHandler()}))}},{key:"addSinglePageListener",value:function(){var e=this;this.beidou.singlePage.prepend((function(t){t!=location.href&&(e.url=t,e.pageEndHandler(e.beidou.singlePage.enventType),e.stopHeartBeatInterval(),e.current_page_url=e.url,e.pageStartHandler(),e.hiddenStatusHandler(),e.startHeartBeatInterval())}))}},{key:"addPageEndListener",value:function(){var e=this;["pagehide","beforeunload","unload"].forEach((function(t){"on"+t in window&&e.beidou.eventListener.addEvent(window,t,(function(){e.pageEndHandler(t),e.stopHeartBeatInterval()}))}))}},{key:"addPageSwitchListener",value:function(){var e=this;this.beidou.listenPageState({visible:function(){e.pageStartHandler(),e.hiddenStatusHandler(),e.startHeartBeatInterval()},hidden:function(){e.url=location.href,e.pageEndHandler(this.visibilityChange),e.stopHeartBeatInterval()}})}},{key:"addHeartBeatInterval",value:function(){LS.isSupport()&&this.startHeartBeatInterval()}},{key:"startHeartBeatInterval",value:function(){var e=this;this.refresh_interval_timer&&this.stopHeartBeatInterval(),this.refresh_interval_timer=setInterval((function(){e.saveHeartBeatData()}),this.refresh_pageleave_data_time),this.saveHeartBeatData("is_frist"),this.reissueHeartBeatData()}},{key:"stopHeartBeatInterval",value:function(){clearInterval(this.refresh_interval_timer),this.refresh_interval_timer=null}},{key:"saveHeartBeatData",value:function(e){var t=this.getPageLeaveProperties();t.time=this.getCurTimestamp(),"is_frist"===e&&(t._event_duration_from_in=3.14);var r=this.beidou.beidouEvent.buildData(Object.assign(Object.assign({type:"track",event:"_pageleave"},t),{refresh_pageleave_data_time:this.refresh_pageleave_data_time}));LS.set(this.getStorageKey(),JSON.stringify(r))}},{key:"delHeartBeatData",value:function(e){LS.remove(e||this.getStorageKey())}},{key:"reissueHeartBeatData",value:function(){for(var e=LS.length-1;e>=0;){var t=window.localStorage.key(e);if(t&&t!==this.getStorageKey()&&0===t.indexOf(this.pageleave_storage_name+"-")){var r=LS.parse(t);ug(r)&&this.getCurTimestamp()-r.time>r.refresh_pageleave_data_time+5e3&&(delete r.refresh_pageleave_data_time,this.beidou.beidouEvent.sendData(r),this.delHeartBeatData(t))}e--}}},{key:"getPageviewId",value:function(){return this.beidou.store.getPVId()}},{key:"saveCurPageviewTime",value:function(e){var t=LS.parse(this.pagetime_storage_name)||{},r=Object.keys(t)[0];r&&r!==this.getPageviewId()&&delete t[r],LS.set(this.pagetime_storage_name,JSON.stringify(e&&og(+e)&&+e?u({},this.getPageviewId(),e):{}))}},{key:"getCurPageViewTime",value:function(){var e=(LS.parse(this.pagetime_storage_name)||{})[this.getPageviewId()];return e&&og(+e)&&+e?e:0}},{key:"getStorageKey",value:function(){return this.pageleave_storage_name+"-"+this.page_visit_id}},{key:"getCurTimestamp",value:function(){return(new Date).getTime()}},{key:"getPageLeaveProperties",value:function(){var e=(this.getCurTimestamp()-this.start_time)/1e3,t=Number(this.getCurPageViewTime())||0;(isNaN(e)||e<0)&&(e=Number(e.toFixed(3)));var r=fS(this.current_page_url,this.beidou),n=Math.round(document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||document.body&&document.body.scrollTop||0)||0,i={_title:document.title,_url:jS(this.url),_url_path:TS(),_referrer_host:r?bS(r):"",_referrer:r,_viewport_position:n};return e&&(i._event_duration_from_in=Number(e+t).toFixed(3)),dg(i,this.pageleave_custom_Props)}}]),e}(),yE=function(){function e(t){o(this,e),this.beidou=t,this.autoTrailIsUsed=!1,this.pageviewParams={},this.firstTimeReportParam={},this.isPushState=!1}return s(e,[{key:"setOnlineState",value:function(e){var t=this;if(!0===e&&ug(this.beidou.para.jsapp)&&"function"==typeof this.beidou.para.jsapp.getData){this.beidou.para.jsapp.isOnline=!0;var r=this.beidou.para.jsapp.getData();rg(r)&&r.length>0&&lg(r,(function(e){ag(e)&&t.beidou.sendState.pushSend(JSON.parse(e))}))}else this.beidou.para.jsapp.isOnline=!1}},{key:"isReady",value:function(e){e()}},{key:"getNewReportParam",value:function(){var e=gS(window&&window.location&&window.location.search);return{latest_campaign_code:e.campaign_code,is_share:e.is_share,depth:document.documentElement&&document.documentElement.scrollTop||document.body&&document.body.scrollTop||0,depth_direction:document.documentElement&&document.documentElement.scrollTop||document.body&&document.body.scrollTop?2:0,_referrer_page_alias:e.share_page_alias||CS&&CS.getItem("_referrer_page_alias"),share_url:e.share_url,share_page_alias:e.share_page_alias,share_platform_type:e.share_platform_type,share_member_id:e.share_member_id,page_type:dS()?"H5":"PC-Web",appstore_code:window._hz_appinfo&&window._hz_appinfo.appstore_code}}},{key:"useFirstTimeReportParam",value:function(){var e=this.firstTimeReportParam;return this.firstTimeReportParam={},e}},{key:"getUtm",value:function(){return this.beidou.info.campaignParams()}},{key:"getStayTime",value:function(){return(new Date-this.beidou._t)/1e3}},{key:"setProfileLocal",value:function(e){if(!LS.isSupport())return this.beidou.registerUserProps(e),!1;if(!ug(e)||cg(e))return!1;var t=LS.parse("beidoudata_2015_jssdk_profile"),r=!1;if(ug(t)&&!cg(t)){for(var n in e)(n in t&&t[n]!==e[n]||!(n in t))&&(t[n]=e[n],r=!0);r&&(LS.set("beidoudata_2015_jssdk_profile",JSON.stringify(t)),this.beidou.registerUserProps(e))}else LS.set("beidoudata_2015_jssdk_profile",JSON.stringify(e)),this.beidou.registerUserProps(e)}},{key:"setInitReferrer",value:function(){var e=fS(null,this.beidou);this.beidou.registerOnceUserProps({_init_referrer:e,_init_referrer_host:this.beidou.info.pageProp.referrer_host})}},{key:"setSessionReferrer",value:function(){var e=fS(null,this.beidou);this.beidou.store.setSessionPropsOnce({_session_referrer:e,_session_referrer_host:this.beidou.info.pageProp.referrer_host})}},{key:"setDefaultAttr",value:function(){this.beidou.info.register({_current_url:location.href,_referrer:fS(null,this.beidou),_referring_host:this.beidou.info.pageProp.referrer_host})}},{key:"trackHeatMap",value:function(e,t,r){if("object"===i(e)&&e.tagName){var n=e.tagName.toLowerCase(),o=e.parentNode.tagName.toLowerCase();"button"===n||"a"===n||"a"===o||"button"===o||"input"===n||"textarea"===n||SS(e,"data-beidou-click")||this.beidou.heatmapstart(null,e,n,t,r)}}},{key:"trackAllHeatMap",value:function(e,t,r){if("object"===i(e)&&e.tagName){var n=e.tagName.toLowerCase();this.beidou.heatmapstart(null,e,n,t,r)}}},{key:"autoTrailSinglePage",value:function(e,t){var n,i=this.beidou;n=this.autoTrailIsUsed?i.info.pageProp.url:i.info.pageProp.referrer;var o=ug(e)?e:{},a=function(){var e=i.info.campaignParams(),t={};for(var r in e)-1!==(" "+i.source_channel_standard+" ").indexOf(" "+r+" ")?t["_"+r]=e[r]:t[r]=e[r];return t};i.is_first_visitor&&!o.not_set_profile&&(this.sendFirstProfile(a()),i.is_first_visitor=!1),o.not_set_profile&&delete o.not_set_profile;var s=this;function u(e,t){s.pageviewParams=dg({_referrer:n,_url:location.href,_url_path:location.pathname,_title:document.title},o,a()),i.store.set("_page_visit_id","".concat(i.store.getDistinctId(),"-").concat(Date.now())),window[i.para.global_prefix+"no_auto_pageview"]||i.para.no_auto_pageview||i.trail.track("_pageview",dg(s.useFirstTimeReportParam(),s.pageviewParams,r({},e),{_pageview_type:"auto_track_single_page"}),t),n=location.href}this.firstTimeReportParam=this.getNewReportParam(),u(o,t),this.autoTrailSinglePage=u}},{key:"autoTrailWithoutProfile",value:function(e,t){var r=ug(e)?e:{};this.autoTrail(dg(r,{not_set_profile:!0}),t)}},{key:"sendFirstProfile",value:function(){var e=this.beidou.store.getFirstVisitProps();this.beidou.registerOnceUserProps(dg(e)),this.beidou.store.setAlreadySe
7ndOnceProfile()}},{key:"autoTrail",value:function(e,t){var r=this,n=ug(e)?e:{},i=this.beidou.info.campaignParams(),o={};for(var a in this.beidou.store.set("_page_visit_id","".concat(this.beidou.store.getDistinctId(),"-").concat(Date.now())),i)-1!==(" "+this.beidou.source_channel_standard+" ").indexOf(" "+a+" ")?o["_"+a]=i[a]:o[a]=i[a];this.beidou.store.getAlreadySendOnceProfile()||n.not_set_profile||this.sendFirstProfile(),n.not_set_profile&&delete n.not_set_profile;var s=location.href;(this.pageviewParams=dg({_referrer:fS(null,this.beidou),_url:location.href,_url_path:location.pathname,_title:document.title},o,n),this.firstTimeReportParam=this.getNewReportParam(),this.beidou.para.is_single_page&&this.beidou.eventListener.addHashEvent((function(){var e=fS(s,r.beidou);r.beidou.trail.track("_pageview",dg({_referrer:e,_url:location.href,_url_path:location.pathname,_title:document.title,_pageview_type:"single_page"},r.useFirstTimeReportParam(),o,n),t),s=location.href})),window[this.beidou.para.global_prefix+"no_auto_pageview"]||this.beidou.para.no_auto_pageview)||this.beidou.trail.track("_pageview",dg(this.useFirstTimeReportParam(),this.pageviewParams,{_pageview_type:"auto_track"}),t);this.autoTrailIsUsed=!0}},{key:"getAnonymousID",value:function(){return cg(this.beidou.store._state)?"请先初始化SDK":this.beidou.store._state._first_id||this.beidou.store._state.first_id||this.beidou.store._state._distinct_id||this.beidou.store._state._unique_id}},{key:"registerCommonMethod",value:function(e,t){var r=this.beidou.para?this.beidou.log:console.log;"string"==typeof e&&e?t instanceof Function?((this[e]||this.beidou[e])&&r("方法".concat(e,"已存在, 本操作将覆盖该方法")),this[e]=t,this.beidou[e]=t):r("".concat(e,"注册了错误的方法体:").concat(t)):r("错误的方法名:".concat(e))}}]),e}(),bE=function pj(e){ug(e)&&lg(e,(function(t,r){ug(t)?pj(e[r]):ig(t)&&(e[r]=function(e){function t(e){return e<10?"0"+e:e}return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+" "+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds())+"."+t(e.getMilliseconds())}(t))}))},wE=function(){function e(t){o(this,e),this.beidou=t,this.checkOption={regChecks:{regName:/^((?!^_unique_id$|^original_id$|^sdk_injection$|^time$|^properties$|^id$|^first_id$|^second_id$|^users$|^events$|^event$|^user_id$|^date$|^datetime$)[a-zA-Z_\-$][a-zA-Z\d_\-$]{0,99})$/i},checkPropertiesKey:function(e){var t=this,r=!0;return lg(e,(function(e,n){t.regChecks.regName.test(n)||(r=!1)})),r},check:function(e,t){return"string"==typeof this[e]?this[this[e]](t):this[e](t)},str:function(e){return ng(e)||t.log("请检查参数格式,必须是字符串"),!0},properties:function(e){return mg(e,t),!e||(ug(e)?(this.checkPropertiesKey(e)||t.log("properties 里的自定义属性名需要是合法的变量名,不能以数字开头,且只包含:大小写字母、数字、下划线、中划线,自定义属性不能以下划线开头"),!0):(t.log("properties可以没有,但有的话必须是对象"),!0))},propertiesMust:function(e){return mg(e,t),e===undefined||!ug(e)||cg(e)?(t.log("properties必须是对象且有值"),!0):(this.checkPropertiesKey(e)||t.log("properties 里的自定义属性名需要是合法的变量名,不能以数字开头,且只包含:大小写字母、数字、下划线,中划线,自定义属性不能以下划线开头"),!0)},event:function(e){return ng(e)&&this.regChecks.regName.test(e)||t.log("请检查参数格式,eventName 必须是字符串,且需是合法的变量名,即不能以数字开头,且只包含:大小写字母、数字、下划线、中划线,其中以下划线开头的表明是系统的保留字段,自定义事件名请不要以下划线开头"),!0},test_id:"str",group_id:"str",_unique_id:function(e){return!(!ng(e)||!/^.{1,255}$/.test(e))||(t.log("_unique_id必须是不能为空,且小于255位的字符串"),!1)}}}return s(e,[{key:"check",value:function(e){for(var t in e)if(!this.checkOption.check(t,e[t]))return!1;return!0}},{key:"getSessionId",value:function(){var e="BeidouDataWebSdkCross_session_id";this.beidou.para.cross_subdomain||(e="BeidouDataWebSdkCore_session_id");var t=this.beidou.cookie.get(e);return t||(t=this.beidou.store.getGuid(),this.beidou.cookie.set(e,t,.02)),t}},{key:"iframePostId",value:function(){document.querySelectorAll("iframe").forEach((function(e){e.contentWindow.postMessage({type:"set_iframe_id",iframeId:"iframe#".concat(e.id)},e.src)}))}},{key:"initIframeId",value:function(){var e=this;window.addEventListener("message",(function(t){var r=t.data||{};"set_iframe_id"===r.type?window.Beidou_Iframe_ID=r.iframeId:"has_chid_iframe"===r.type&&e.iframePostId()}),!1),ES()||parent.postMessage({type:"has_chid_iframe"},parent.location.href)}},{key:"sendIframeData",value:function(e){e.lib._app_id=this.beidou.para.app_id,e.properties._url=window.top.location.href,e.properties._url_path=window.top.location.pathname;var t=window.Beidou_Iframe_ID?"".concat(window.Beidou_Iframe_ID," > "):"";e.properties._element_selector="".concat(t).concat(e.properties._element_selector),this.beidou.sendState.getSendCall(e,{})}},{key:"addReferrerHost",value:function(e){var t="取值异常";ug(e.properties)&&(e.properties._first_referrer&&(e.properties._first_referrer_host=bS(e.properties._first_referrer,t)),"track"!==e.type&&"track_signup"!==e.type||("_referrer"in e.properties&&(e.properties._referrer_host=""===e.properties._referrer?"":bS(e.properties._referrer,t),e.properties._referrer_path=""===e.properties._referrer?"":function(e,t){var r=null;t&&"string"==typeof t||(r="pathname解析异常");var n=null;try{n=vS(e).pathname}catch(i){console.log("🕷-getHostname",i),console.error(i)}return n||r}(e.properties._referrer,t)),this.beidou.para.preset_properties.latest_referrer&&this.beidou.para.preset_properties.latest_referrer_host&&(e.properties._latest_referrer_host=""===e.properties._latest_referrer?"":bS(e.properties._latest_referrer,t))))}},{key:"addPropsHook",value:function(e){var t=this.beidou;t.para.preset_properties&&t.para.preset_properties.url&&("track"===e.type||"track_signup"===e.type)&&"undefined"==typeof e.properties._url&&(e.properties._url=window.location.href),t.para.preset_properties&&t.para.preset_properties.title&&("track"===e.type||"track_signup"===e.type)&&"undefined"==typeof e.properties._title&&(e.properties._title=document.title)}},{key:"buildData",value:function(e){var t={_session_id:this.getSessionId(),lib:{_lib:"js",_lib_method:"code",_lib_version:String(this.beidou.lib_version)},app:{_app_id:this.beidou.para.app_id,_app_version:this.beidou.para.app_version},properties:{}};if(!1===this.beidou.dealHookCallback(this.beidou.hooks.beforeAssemble,{event:t}))return!1;ug(e)&&ug(e.properties)&&!cg(e.properties)&&e.properties._lib_detail&&(t.lib._lib_detail=e.properties._lib_detail,delete e.properties._lib_detail);var r=this.beidou.store.getUnionId();if(dg(t,r,e),ug(e.properties)&&!cg(e.properties)){var n=window[this.beidou.para.global_prefix+"native_params"]||{};e.properties._unimem_id=r.anonymous_id,dg(t.properties,e.properties,n)}return t.properties._page_visit_id=this.beidou.store.getPVId(),e.type&&"profile"===e.type.slice(0,7)||(t.properties=dg({},this.beidou.info.properties(),this.beidou.store.getProps(),this.beidou.store.getSessionProps(),this.beidou.info.currentProps,this.beidou.info.getCurrentPageProps(),t.properties),t.ids=this.beidou.store.getIds(),t.properties._url||(t.properties._url=window&&window.location.href),t.properties._title=document&&document.title,this.beidou.para.preset_properties.latest_referrer&&!ng(t.properties._latest_referrer)&&(t.properties._latest_referrer="取值异常"),this.beidou.para.preset_properties.latest_search_keyword&&!ng(t.properties._latest_search_keyword)&&(t.properties._latest_search_keyword="取值异常"),this.beidou.para.preset_properties.latest_traffic_source_type&&!ng(t.properties._latest_traffic_source_type)&&(t.properties._latest_traffic_source_type="取值异常"),this.beidou.para.preset_properties.latest_landing_page&&!ng(t.properties._latest_landing_page)&&(t.properties._latest_landing_page="取值异常"),t.properties._sdk_injection||(t.properties._sdk_injection=this.beidou.store.getSdkInjection())),t.properties.time&&ig(t.properties.time)?t.time=Number(t.properties.time):t.time=(new Date).getTime(),function(e,t){ug(e)&&(lg(e,(function(r,n){if(sg(r))try{e[n]=r(),sg(e[n])&&(t.log("您的属性- "+n+" 格式不满足要求,我们已经将其删除"),delete e[n])}
7catch(i){console.log("🕷-parseSuperProperties",i),delete e[n],t.log("您的属性- "+n+" 抛出了异常,我们已经将其删除")}})),mg(e,t))}(t.properties,this.beidou),yg(t.properties,this.beidou),bE(t),vg(t,this.beidou),function(e){"undefined"!=typeof e.properties.$project&&(e.project=e.properties.$project,delete e.properties.$project),"undefined"!=typeof e.properties.$token&&(e.token=e.properties.$token,delete e.properties.$token)}(t),this.beidou.beidouNewUser.checkIsAddSign(t),this.beidou.beidouNewUser.checkIsFirstTime(t),this.addReferrerHost(t),this.addPropsHook(t),t.properties._env=this.beidou.para.environment,"string"==typeof t.event&&t.event&&(t._event=t.event,delete t.event),t}},{key:"sendData",value:function(e,t){var r=function(e){if("object"===i(e)&&e._option){var t=e._option;return delete e._option,t}return{}}(e.properties),n=this.beidou.dealHookCallback(this.beidou.hooks.beforeSend,{event:e});if(!0===this.beidou.para.debug_mode)this.beidou.log(e),this.debugPath(JSON.stringify(e),t);else{if(!ES()&&"_web_click"===e.event&&window.Beidou_Iframe_ID)return void this.sendIframeData(e);if(!1===n)return!1;this.beidou.sendState.getSendCall(e,r,t)}}},{key:"send",value:function(e,t){var r=this.buildData(e,t);this.sendData(r,t)}},{key:"debugPath",value:function(e,t){var r=e,n="";n=-1!==this.beidou.para.debug_mode_url.indexOf("?")?this.beidou.para.debug_mode_url+"&data="+encodeURIComponent(Dg(e)):this.beidou.para.debug_mode_url+"?data="+encodeURIComponent(Dg(e)),pE({url:n,type:"GET",cors:!0,header:{"Dry-Run":String(this.beidou.para.debug_mode_upload)},success:function(t){!0===cg(t)?alert("debug数据发送成功"+r):alert("debug失败 错误原因"+JSON.stringify(e))}})}}]),e}(),kE=function(){function e(t){o(this,e),this.beidou=t,this.sendingData=0}return s(e,[{key:"add",value:function(e){ug(e)&&(this.writeStore(e),"track_signup"!==e.type&&"_pageview"!==e.event||this.sendStrategy())}},{key:"remove",value:function(e){this.sendingData>0&&--this.sendingData,rg(e)&&e.length>0&&lg(e,(function(e){LS.remove(e)}),null)}},{key:"send",value:function(e){var t=this,r=rg(this.beidou.para.server_url)?this.beidou.para.server_url[0]:this.beidou.para.server_url,n=JSON.parse(JSON.stringify(e));this.beidou.hooks.willSend.call({name:"batchHook",data:{type:"batch",hookContext:n},beidou:this.beidou}),pE({url:r,type:"POST",data:"data_list="+encodeURIComponent(Dg(JSON.stringify(n.vals))),credentials:!1,timeout:this.beidou.para.batch_send.datasend_timeout,cors:!0,success:function(){t.remove(n.keys)},error:function(){t.sendingData>0&&--t.sendingData}})}},{key:"sendPrepare",value:function(e){var t=e.vals,r=this.beidou.para.batch_send.one_send_max_length,n=t.length;if(n>0)if(n<=r)this.send({keys:e.keys,vals:t});else for(var i=0;i*r<n;i++)this.send({keys:e.keys.splice(0,r),vals:t.splice(0,r)})}},{key:"sendStrategy",value:function(){var e=this.readStore();e.keys.length>0&&0===this.sendingData&&(this.sendingData=Math.ceil(e.vals.length/this.beidou.para.batch_send.one_send_max_length),this.sendPrepare(e))}},{key:"batchInterval",value:function(){var e=this;setInterval((function(){e.sendStrategy()}),this.beidou.para.batch_send.send_interval)}},{key:"readStore",value:function(){for(var e=[],t=[],r=null,n=(new Date).getTime(),i=LS.length,o=0;o<i;o++){var a=LS.key(o);0===a.indexOf("beidouwebjssdk-")&&/^beidouwebjssdk\-\d+$/.test(a)&&((r=LS.get(a))?(r=hg(r))&&ug(r)?(r._flush_time=n,e.push(a),t.push(r)):(LS.remove(a),this.beidou.log("localStorage-数据parse异常"+r)):(LS.remove(a),this.beidou.log("localStorage-数据取值异常"+r)))}return{keys:e,vals:t}}},{key:"writeStore",value:function(e){var t=String(Math.random()).slice(2,5)+String(Math.random()).slice(2,5)+String((new Date).getTime()).slice(3);LS.set("beidouwebjssdk-"+t,JSON.stringify(e))}}]),e}(),SE=function(){function e(t){o(this,e),this.beidou=t;var r=this;this.image=function(e){this.callback=e.callback,this.img=document.createElement("img"),this.img.width=1,this.img.height=1,t.para.img_use_crossorigin&&(this.img.crossOrigin="anonymous"),this.data=e.data,this.server_url=r.getSendUrl(e.server_url,e.data)},this.ajax=function(e){this.callback=e.callback,this.server_url=e.server_url,this.data=r.getSendData(e.data)},this.beacon=function(e){this.callback=e.callback,this.server_url=e.server_url,this.data=r.getSendData(e.data)},this.image.prototype.start=function(){var e=this;t.para.ignore_oom&&(this.img.onload=function(){this.onload=null,this.onerror=null,this.onabort=null,e.isEnd()},this.img.onerror=function(){this.onload=null,this.onerror=null,this.onabort=null,e.isEnd()},this.img.onabort=function(){this.onload=null,this.onerror=null,this.onabort=null,e.isEnd()}),this.img.src=this.server_url},this.image.prototype.lastClear=function(){this.img.src=""},this.ajax.prototype.start=function(){var e=this;pE({url:this.server_url,type:"POST",data:this.data,credentials:!1,timeout:t.para.datasend_timeout,cors:!0,success:function(){e.isEnd()},error:function(){e.isEnd()}})},this.beacon.prototype.start=function(){var e=this;"object"===("undefined"==typeof navigator?"undefined":i(navigator))&&"function"==typeof navigator.sendBeacon&&navigator.sendBeacon(this.server_url,this.data),setTimeout((function(){e.isEnd()}),40)}}return s(e,[{key:"getSendUrl",value:function(e,t){var r=Dg(t),n="crc="+_g(r);return-1!==e.indexOf("?")?e+"&data="+encodeURIComponent(r)+"&ext="+encodeURIComponent(n):e+"?data="+encodeURIComponent(r)+"&ext="+encodeURIComponent(n)}},{key:"getSendData",value:function(e){var t=Dg(e),r="crc="+_g(t);return"data="+encodeURIComponent(t)+"&ext="+encodeURIComponent(r)}},{key:"getInstance",value:function(e){var t=this.beidou,r=new(this[this.get
7SendType(e)])(e),n=r.start;return r.start=function(){ug(t.is_debug)&&t.para.is_debug.storage&&t.store.requests&&t.store.requests.push({name:this.server_url,initiatorType:this.img?"img":"xmlhttprequest",entryType:"resource",requestData:this.data});var e=this;n.apply(this,arguments),setTimeout((function(){e.isEnd(!0)}),t.para.callback_timeout)},r.end=function(){this.callback&&this.callback();var e=this;setTimeout((function(){e.lastClear&&e.lastClear()}),t.para.datasend_timeout-t.para.callback_timeout)},r.isEnd=function(e){if(!this.received){this.received=!0,this.end();var r=this;e?t.para.queue_timeout-t.para.callback_timeout<=0?r.close():setTimeout((function(){r.close()}),t.para.queue_timeout-t.para.callback_timeout):r.close()}},r}},{key:"getSendType",value:function(e){var t,r=this.beidou,n=JSON.parse(e.data)._e,i=(e.data||"").length,o="function"==typeof navigator.sendBeacon;return t=e.config&&function(e,t){var r=e.indexOf;if(r)return r.call(e,t);for(var n=0;n<e.length;n++)if(t===e[n])return n;return-1}(["image","ajax","beacon"],e.config.send_type)>-1?e.config.send_type:r.para.send_type,i>=r.para.method_get_max_length&&"_pageview"===n&&("image"===t&&o&&(t="beacon"),"image"!==t||o||(t="ajax"),"beacon"!==t||o||(t="ajax"),r.log("_pageview上报字段长度为".concat(i,", 超过method_get_max_length设置值:").concat(r.para.method_get_max_length,", 更改为post上传"))),"beacon"!==t||o||(t=i<r.para.method_get_max_length?"image":"ajax"),"ajax"===t&&!1===yS()&&(t="image"),t}}]),e}(),PE=u({_unique_id:"_unq_id",_unimem_id:"_uni_id",anonymous_id:"_ano_id",_lib:"_lib",_lib_version:"_lib_v",_lib_method:"_lib_m",_app_id:"_app_id",_app_version:"_app_ver",_env:"_env",_scene:"_sce",_screen_height:"_scr_h",_screen_width:"_scr_w",_screen_name:"_scr_n",_carrier:"_carrier",_city:"_city",_country:"_country",_device_id:"_dev_id",_device_type:"_dev_type",_element_class_name:"_ele_c_n",_element_content:"_ele_ct",_element_id:"_ele_id",_element_name:"_ele_nm",_element_path:"_ele_p",_element_position:"_ele_pst",_element_selector:"_ele_slt",_element_target_url:"_ele_tg_url",_element_type:"_ele_t",_event_duration:"_ev_d",_event_duration_from_in:"_ev_dt_f_i",_event_duration_delta:"_ev_dt_dt",_flush_time:"_flush_time",time:"_time",_exposure_times:"_exposure_times",_ip:"_ip",_ip_isp:"_ip_isp",_is_first_day:"_is_first_d",_is_first_time:"_is_first_t",_latest_referrer:"_lat_ref",_latest_referrer_host:"_lat_ref_h",_latest_scene:"_lat_sce",_latest_search_keyword:"_lat_sc_kw",_search_keyword:"_sc_kw",_latest_traffic_source_type:"_lat_traf_s_t",_latest_utm_campaign:"_lat_utm_cp",_latest_utm_content:"_lat_utm_ct",_latest_utm_medium:"_lat_utm_md",_latest_utm_source:"_lat_utm_s",_latest_utm_term:"_lat_utm_t",_manufacturer:"_mft",_model:"_model",_mp_app_id:"_mp_app_id",_network_type:"_net_t",_os:"_os",_os_version:"_os_ver",_province:"_province",_referrer:"_ref",_referrer_host:"_ref_h",_referrer_title:"_ref_t",_session_id:"_ses_id",_page_visit_id:"_pv_id",_share_unique_id:"_share_unq_id",_share_depth:"_share_d",_latest_share_unique_id:"_lat_s_u_id",_share_method:"_share_m",_share_url_path:"_share_url_p",_stay_type:"_stay_type",_title:"_title",_url:"_url",_url_host:"_url_h",_url_path:"_url_p",_url_query:"_url_q",_user_agent:"_ua",_utm_source:"_utm_s",_utm_campaign:"_utm_c",_utm_medium:"_utm_m",_utm_term:"_utm_t",_utm_content:"_utm_ct",_viewport_height:"_vp_h",_viewport_position:"_vp_p",_viewport_position_percent:"_vp_p_p",_viewport_width:"_vp_w",_wifi:"_wifi",_referrer_path:"_ref_p",_referrer_page_alias:"_ref_p_a",_user_id:"_user_id",uuid:"_uuid",_event:"_e",_event_time:"_e_t",_latest_landing_page:"_lat_ld_p",latest_utm:"_lat_utm",_sdk_injection:"_sdk_inj",_pageview_type:"_pv_t",timezone_offset:"_tz_ofs",_first_visit_time:"_first_v_t",_first_referrer:"_first_ref",_first_referrer_host:"_first_ref_h",_first_browser_language:"_first_bs_lg",_first_browser_charset:"_first_bs_ch",_first_traffic_source_type:"_first_traf_s_t",_first_search_keyword:"_first_sc_kw",_first_utm_source:"_first_utm_s",_first_utm_medium:"_first_utm_md",_first_utm_term:"_first_utm_t",_first_utm_content:"_first_utm_ct",_first_utm_campaign:"_first_utm_cp",original_id:"_org_id",_track_id:"_tr_id",depth:"_dep",depth_direction:"_dep_d",ids:"_ids",ops_ids:"_ops_ids",ops_profile:"_ops_profile",unbindid:"_unbindid",page_type:"_p_t",platform_type:"_plt",type:"_type"},"time","_time");function EE(e,t){var r={};for(var n in e)PE[n]===undefined||FS.includes(n)?"ops_profile"!=t?(r._data||(r._data={}),!FS.includes(n)&&(r._data[n]=e[n])):r[n]=e[n]:r[PE[n]]=e[n],["ops_profile"].includes(n)&&!cg(e[n])&&(r["_"+n]=EE(e[n],n));return r}var OE=function(e,t){if(!ug(e)||cg(e))return console.error("发送的"+e+" 格式有误
7!"),{};var r,n=e,i={};for(var o in n)ug(n[o])?["ids","unbindid","ops_ids","ops_profile"].includes(o)&&!cg(n[o])?i[o]=n[o]:dg(i,n[o]):i[o]=n[o];return r=EE(i),(e&&ug(e.properties)&&"heartbeat"!==e.properties._stay_type||!t.para.webstay_time.close_heartbeat_log)&&t.log(r),r};var xE=function(){function e(t){o(this,e),this.beidou=t,this.queue={items:[],enqueue:function(e){this.items.push(e),this.start()},dequeue:function(){return this.items.shift()},getCurrentItem:function(){return this.items[0]},isRun:!1,start:function(){this.items.length>0&&!this.isRun&&(this.isRun=!0,this.getCurrentItem().start())},close:function(){this.dequeue(),this.isRun=!1,this.start()}},this.requestData=null}return s(e,[{key:"getSendCall",value:function(e,t,r){var n=this.beidou;return!n.is_heatmap_render_mode&&(n.readyState.state<3?(n.log("初始化没有完成"),!1):(e._track_id=Number(String(Math.random()).slice(2,5)+String(Math.random()).slice(2,4)+String((new Date).getTime()).slice(-4)),e._flush_time=(new Date).getTime(),this.requestData={data:e,config:t,callback:r},!n.para.app_js_bridge&&n.para.batch_send&&localStorage.length<200?(n.log(e),n.batchSend.add(this.requestData.data),!1):void n.bridge.dataSend(this.requestData,this,r)))}},{key:"prepareServerUrl",value:function(){this.requestData.data=OE(this.requestData.data,this.beidou);var e=this.beidou;if("object"===i(this.requestData.config)&&this.requestData.config.server_url)this.sendCall(this.requestData.config.server_url,this.requestData.callback);else if(rg(e.para.server_url))for(var t=0;t<e.para.server_url.length;t++)this.sendCall(e.para.server_url[t]);else this.sendCall(e.para.server_url,this.requestData.callback)}},{key:"sendCall",value:function(e,t){var r=this.beidou;r.hooks.willSend.call({name:"singleHook",data:{type:"single",hookContext:this},beidou:r});var n={server_url:e,data:JSON.stringify(this.requestData.data),callback:t,config:this.requestData.config};ug(r.para.jsapp)&&!r.para.jsapp.isOnline&&"function"==typeof r.para.jsapp.setData?(delete n.callback,n=JSON.stringify(n),r.para.jsapp.setData(n)):this.pushSend(n)}},{key:"pushSend",value:function(e){var t=this.beidou.dataSend.getInstance(e),r=this;t.close=function(){r.queue.close()},this.queue.enqueue(t)}}]),e}(),jE=function(){function e(t){o(this,e),this.beidou=t,this.parents=function(){if(parent===top)return[parent];for(var e,t=[parent];e!==top;)try{e=parent.parent,t.push(e)}catch(r){e=top}return t.push(top),t}()}return s(e,[{key:"postParents",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"*";ES()||this.parents.forEach((function(r){r.postMessage&&r.postMessage(e,t)}))}}]),e}(),IE={_unique_id:"distinct_id",_unimem_id:"$unimem_id",anonymous_id:"anonymous_id",_lib:"$lib",_lib_version:"$lib_version",_lib_method:"$lib_method",_app_id:"$app_id",_app_version:"$app_version",_env:"$env",_scene:"$scene",_screen_height:"$screen_height",_screen_width:"$screen_width",_screen_name:"$screen_name",_carrier:"$carrier",_city:"$city",_country:"$country",_device_id:"$device_id",_device_type:"$device_type",_element_class_name:"$element_class_name",_element_content:"$element_content",_element_id:"$element_id",_element_name:"$element_name",_element_path:"$element_path",_element_position:"$element_position",_element_selector:"$element_selector",_element_target_url:"$element_target_url",_element_type:"$element_type",_event_duration:"$event_duration",_event_duration_from_in:"$event_duration_from_in",_event_duration_delta:"$event_duration_delta",_exposure_times:"$exposure_times",_ip:"$ip",_ip_isp:"$ip_isp",_is_first_day:"$is_first_day",_is_first_time:"$is_first_time",_latest_referrer:"$latest_referrer",_latest_referrer_host:"$latest_referrer_host",_latest_scene:"$latest_scene",_latest_search_keyword:"$latest_search_keyword",_search_keyword:"$search_keyword",_latest_traffic_source_type:"$latest_traffic_source_type",_latest_utm_campaign:"$latest_utm_campaign",_latest_utm_content:"$latest_utm_content",_latest_utm_medium:"$latest_utm_medium",_latest_utm_source:"$latest_utm_source",_latest_utm_term:"$latest_utm_term",_manufacturer:"$manufacturer",_model:"$model",_mp_app_id:"$mp_app_id",_network_type:"$network_type",_os:"$os",_os_version:"$os_version",_province:"$province",_referrer:"$referrer",_referrer_host:"$referrer_host",_referrer_title:"$referrer_title",_session_id:"session_id",_page_visit_id:"$page_visit_id",_share_unique_id:"$share_distinct_id",_share_depth:"$share_depth",_latest_share_unique_id:"$latest_share_distinct_id",_share_method:"$share_method",_share_url_path:"$share_url_path",_stay_type:"$stay_type",_title:"$title",_url:"$url",_url_host:"$url_host",_url_path:"$url_path",_url_query:"$url_query",_user_agent:"$user_agent",_utm_source:"$utm_source",_utm_campaign:"$utm_campaign",_utm_medium:"$utm_medium",_utm_term:"$utm_term",_utm_content:"$utm_content",_viewport_height:"$viewport_height",_viewport_position:"$viewport_position",_viewport_position_percent:"$viewport_position_percent",_viewport_width:"$viewport_width",_wifi:"$wifi",_referrer_path:"$referrer_path",_referrer_page_alias:"$referrer_page_alias",_user_id:"login_id",uuid:"uuid",_event:"event",_latest_landing_page:"$latest_landing_page",_sdk_injection:"$sdk_injection",_pageview_type:"$pageview_type",_first_visit_time:"$first_visit_time",_first_referrer:"$first_referrer",_first_referrer_host:"$first_referrer_host",_first_browser_language:"$first_browser_language",_first_browser_charset:"$first_browser_charset",_first_traffic_source_type:"$f
7irst_traffic_source_type",_first_search_keyword:"$first_search_keyword",original_id:"original_id",_track_id:"_track_id",depth:"depth",depth_direction:"depth_direction",ids:"ids",ops_ids:"ops_ids",ops_profile:"ops_profile",page_type:"page_type",platform_type:"platform_type",type:"type"},TE=function hj(e){var t,r={};for(var n in e){var i=IE[n]||n;"_session_id"===n?t=e[n]:ug(e[n])&&!cg(e[n])?r[i]=hj(e[n]):FS.includes(n)||(r[i]=e[n])}return t&&(r.properties.session_id=t),r},DE=function(e,t){if(!ug(e)||cg(e))return console.error("发送的"+e+" 格式有误!"),{};var r,n=TE(e);return n.event={_pageview:"$pageview",_web_click:"$WebClick",_web_stay:"$WebStay",_web_long_press:"$WebLongPress",_web_exposure:"$WebExposure"}[r=n.event]||r,(e&&"heartbeat"!==e._stay_type||!t.para.webstay_time.close_heartbeat_log)&&t.log(n),n},NE=function(){function e(t){o(this,e),this.beidou=t}return s(e,[{key:"initPara",value:function(){var e={is_send:!0,white_list:[],is_mui:!1};"object"===i(this.beidou.para.app_js_bridge)?this.beidou.para.app_js_bridge=dg({},e,this.beidou.para.app_js_bridge):!0===this.beidou.para.use_app_track||!0===this.beidou.para.app_js_bridge||"only"===this.beidou.para.use_app_track?(!1!==this.beidou.para.use_app_track_is_send&&"only"!==this.beidou.para.use_app_track||(e.is_send=!1),this.beidou.para.app_js_bridge=dg({},e)):"mui"===this.beidou.para.use_app_track&&(e.is_mui=!0,this.beidou.para.app_js_bridge=dg({},e)),!1===this.beidou.para.app_js_bridge.is_send&&this.beidou.log("设置了 is_send:false,如果打通失败,数据将被丢弃!")}},{key:"initState",value:function(){var e=this.beidou;function t(t){function r(t){var r={hostname:"",project:""};try{r.hostname=vS(t).hostname,r.project=vS(t).searchParams.get("project")||"default"}catch(n){e.log(n)}return r}var n=r(t),i=r(e.para.server_url);if(n.hostname===i.hostname&&n.project===i.project)return!0;if(e.para.app_js_bridge.white_list.length>0)for(var o=0;o<e.para.app_js_bridge.white_list.length;o++){var a=r(e.para.app_js_bridge.white_list[o]);if(a.hostname===n.hostname&&a.project===n.project)return!0}return!1}if(ug(this.beidou.para.app_js_bridge)&&!this.beidou.para.app_js_bridge.is_mui)if(window.webkit&&window.webkit.messageHandlers&&(window.webkit.messageHandlers.beidoudataNativeTracker||window.webkit.messageHandlers.BeidouMiniDataNativeTracker)&&(ug(window.BeidouData_iOS_JS_Bridge)&&window.BeidouData_iOS_JS_Bridge.beidoudata_app_server_url&&t(window.BeidouData_iOS_JS_Bridge.beidoudata_app_server_url)||ug(window.BeidouMiniData_iOS_JS_Bridge)&&window.BeidouMiniData_iOS_JS_Bridge.beidoudata_app_server_url&&t(window.BeidouMiniData_iOS_JS_Bridge.beidoudata_app_server_url)))this.beidou.bridge.is_verify_success=!0;else if(ug(window.BeidouData_APP_New_H5_Bridge)&&window.BeidouData_APP_New_H5_Bridge.beidoudata_get_server_url&&window.BeidouData_APP_New_H5_Bridge.beidoudata_track){var r=window.BeidouData_APP_New_H5_Bridge.beidoudata_get_server_url();r&&t(r)&&(this.beidou.bridge.is_verify_success=!0)}}},{key:"initDefineBridgeInfo",value:function(){var e={touch_app_bridge:!0,verify_success:!1};return window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.beidoudataNativeTracker&&window.webkit.messageHandlers.beidoudataNativeTracker.postMessage&&ug(window.BeidouData_iOS_JS_Bridge)&&window.BeidouData_iOS_JS_Bridge.beidoudata_app_server_url||ug(window.BeidouData_APP_New_H5_Bridge)&&window.BeidouData_APP_New_H5_Bridge.beidoudata_get_server_url&&window.BeidouData_APP_New_H5_Bridge.beidoudata_track?this.beidou.bridge.is_verify_success?e.verify_success="success":e.verify_success="fail":"object"===("undefined"==typeof BeidouData_APP_JS_Bridge?"undefined":i(BeidouData_APP_JS_Bridge))&&(window.BeidouData_APP_JS_Bridge.beidoudata_verify&&window.BeidouData_APP_JS_Bridge.beidoudata_visual_verify||window.BeidouData_APP_JS_Bridge.beidoudata_track)?window.BeidouData_APP_JS_Bridge.beidoudata_verify&&window.BeidouData_APP_JS_Bridge.beidoudata_visual_verify?window.BeidouData_APP_JS_Bridge.beidoudata_visual_verify(JSON.stringify({server_url:this.beidou.para.server_url}))?e.verify_success="success":e.verify_success="fail":e.verify_success="success":e.touch_app_bridge=!1,e}}
7,{key:"dealAndroidSend",value:function(e,t){var r=t;if(r._user_agent=navigator.userAgent,e.sdk_info instanceof Function){var n=e.sdk_info();try{"standard"===JSON.parse(n).lib_type?r=OE(t,this.beidou):this.beidou.plugins.caniuse("HuizeMainPlugin")&&(r=DE(t,this.beidou))}catch(i){console.log("终端sdk_info注入值json parse error")}}else this.beidou.plugins.caniuse("HuizeMainPlugin")&&(r=DE(t,this.beidou));return r}},{key:"miniIOSBridge",value:function(e){if(window.webkit.messageHandlers.BeidouMiniDataNativeTracker&&window.webkit.messageHandlers.BeidouMiniDataNativeTracker.postMessage&&ug(window.BeidouMiniData_iOS_JS_Bridge)&&window.BeidouMiniData_iOS_JS_Bridge.beidoudata_app_server_url){var t=JSON.stringify({callType:"app_h5_track",data:dg({server_url:this.beidou.para.server_url},e)});ug(window.BeidouMiniData_iOS_JS_Bridge)&&window.BeidouMiniData_iOS_JS_Bridge.beidoudata_app_server_url&&window.webkit.messageHandlers.BeidouMiniDataNativeTracker.postMessage(t)}}},{key:"iOSBridge",value:function(e){if(window.webkit.messageHandlers.beidoudataNativeTracker&&window.webkit.messageHandlers.beidoudataNativeTracker.postMessage&&ug(window.BeidouData_iOS_JS_Bridge)&&window.BeidouData_iOS_JS_Bridge.beidoudata_app_server_url){var t=e;if(t._user_agent=navigator.userAgent,window.BeidouData_iOS_JS_Bridge.sdk_info){var r=window.BeidouData_iOS_JS_Bridge.sdk_info;console.log("sdkInfoStr:",r);try{"standard"===JSON.parse(r).lib_type?t=OE(e,this.beidou):this.beidou.plugins.caniuse("HuizeMainPlugin")&&(t=DE(e,this.beidou))}catch(i){console.log("终端sdk_info注入值json parse error")}}else this.beidou.plugins.caniuse("HuizeMainPlugin")&&(t=DE(e,this.beidou));var n=JSON.stringify({callType:"app_h5_track",data:dg({server_url:this.beidou.para.server_url},t)});ug(window.BeidouData_iOS_JS_Bridge)&&window.BeidouData_iOS_JS_Bridge.beidoudata_app_server_url&&window.webkit.messageHandlers.beidoudataNativeTracker.postMessage(n)}}},{key:"androidBridge",value:function(e,t,r,n){var i=this.dealAndroidSend(e,t);e&&e.beidoudata_verify?e.beidoudata_verify(JSON.stringify(dg({server_url:this.beidou.para.server_url},i)))?"function"==typeof n&&n():this.beidou.para.app_js_bridge.is_send?(this.beidou.debug.apph5({data:i,step:"3.1",output:"all"}),r.prepareServerUrl(i)):"function"==typeof n&&n():e&&e.beidoudata_track&&(e.beidoudata_track(JSON.stringify(dg({server_url:this.beidou.para.server_url},i))),"function"==typeof n&&n())}},{key:"dataSend",value:function(e,t,r){var n=e.data;if(ug(this.beidou.para.app_js_bridge)&&!this.beidou.para.app_js_bridge.is_mui){if(window.webkit&&window.webkit.messageHandlers)this.beidou.bridge.is_verify_success?(this.iOSBridge(n),this.miniIOSBridge(n),"function"==typeof r&&r()):this.beidou.para.app_js_bridge.is_send?(this.beidou.debug.apph5({data:n,step:"4.1",output:"all"}),t.prepareServerUrl(e)):"function"==typeof r&&r();else if(ug(window.BeidouData_APP_New_H5_Bridge)&&window.BeidouData_APP_New_H5_Bridge.beidoudata_get_server_url&&window.BeidouData_APP_New_H5_Bridge.beidoudata_track)if(this.beidou.bridge.is_verify_success){n=this.dealAndroidSend(window.BeidouData_APP_New_H5_Bridge,n),window.BeidouData_APP_New_H5_Bridge.beidoudata_track(JSON.stringify(dg({server_url:this.beidou.para.server_url},function e(t){return Object.keys(t).forEach((function(r){null===t[r]||"undefined"==typeof t[r]?delete t[r]:"object"!==i(t[r])||t[r]instanceof Array||(t[r]=e(t[r]))})),t}(n)))),"function"==typeof r&&r()}else this.beidou.para.app_js_bridge.is_send?(this.beidou.debug.apph5({data:n,step:"4.2",output:"all"}),t.prepareServerUrl(e)):"function"==typeof r&&r();else"object"===("undefined"==typeof BeidouData_APP_JS_Bridge?"undefined":i(BeidouData_APP_JS_Bridge))?this.androidBridge(window.BeidouData_APP_JS_Bridge,n,t,r):"object"!==("undefined"==typeof BeidouMinData_Android_JS_Bridge?"undefined":i(BeidouMinData_Android_JS_Bridge))&&(ug(this.beidou.para.app_js_bridge)&&!0===this.beidou.para.app_js_bridge.is_send?(this.beidou.debug.apph5({data:n,step:"2",output:"all"}),t.prepareServerUrl(e)):"function"==typeof r&&r());"object"===("undefined"==typeof BeidouMinData_Android_JS_Bridge?"undefined":i(BeidouMinData_Android_JS_Bridge))&&(console.log("通过BeidouMinData_Android_JS_Bridge传送数据"),this.androidBridge(window.BeidouMinData_Android_JS_Bridge,n,t,r))}else ug(this.beidou.para.app_js_bridge)&&this.beidou.para.app_js_bridge.is_mui?ug(window.plus)&&window.plus.S
7DAnalytics&&window.plus.SDAnalytics.trackH5Event?(window.plus.SDAnalytics.trackH5Event(e),"function"==typeof r&&r()):ug(this.beidou.para.app_js_bridge)&&!0===this.beidou.para.app_js_bridge.is_send?t.prepareServerUrl(e):"function"==typeof r&&r():(this.beidou.debug.apph5({data:n,step:"1",output:"code"}),t.prepareServerUrl(e))}},{key:"app_js_bridge_v1",value:function(){var e=null,t=null;window.beidoudata_app_js_bridge_call_js=function(r){!function(r){ag(e=r)&&(e=JSON.parse(e)),t&&(t(e),t=null,e=null)}(r)},this.beidou.getAppStatus=function(r){if(function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream){var e=document.createElement("iframe");e.setAttribute("src","beidouanalytics://getAppInfo"),document.documentElement.appendChild(e),e.parentNode.removeChild(e),e=null}}(),"object"===i(window.BeidouData_APP_JS_Bridge)&&window.BeidouData_APP_JS_Bridge.beidoudata_call_app&&(e=window.BeidouData_APP_JS_Bridge.beidoudata_call_app(),ag(e)&&(e=JSON.parse(e))),!r)return e;null===e?t=r:(r(e),e=null)}}},{key:"supportAppCallJs",value:function(){window.beidoudata_app_call_js=function(e,t){e in window.beidoudata_app_call_js.modules&&window.beidoudata_app_call_js.modules[e](t)},window.beidoudata_app_call_js.modules={}}}]),e}(),AE=b,CE=k,RE=To,LE=ql.trim,BE=$("".charAt),ME=AE.parseFloat,HE=AE.Symbol,$E=HE&&HE.iterator,UE=1/ME("\t\n\x0B\f\r                 \u2028\u2029\ufeff-0")!=-Infinity||$E&&!CE((function(){ME(Object($E))}))?function(e){var t=LE(RE(e)),r=ME(t);return 0===r&&"-"==BE(t,0)?-0:r}:ME;_i({global:!0,forced:parseFloat!=UE},{parseFloat:UE});var qE=/^\s+|\s+$/g,JE=/^[-+]0x[0-9a-f]+$/i,FE=/^0b[01]+$/i,WE=/^0o[0-7]+$/i,zE=parseInt,KE="object"==typeof m&&m&&m.Object===Object&&m,G
7E="object"==typeof self&&self&&self.Object===Object&&self,VE=KE||GE||Function("return this")(),XE=Object.prototype.toString,YE=Math.max,QE=Math.min,ZE=function(){return VE.Date.now()};function eO(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function tO(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==XE.call(e)}(e))return NaN;if(eO(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eO(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(qE,"");var r=FE.test(e);return r||WE.test(e)?zE(e.slice(2),r?2:8):JE.test(e)?NaN:+e}var rO=function(e,t,r){var n,i,o,a,s,u,c=0,l=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,o=i;return n=i=undefined,c=t,a=e.apply(o,r)}function h(e){return c=e,s=setTimeout(g,t),l?p(e):a}function _(e){var r=e-u;return u===undefined||r>=t||r<0||d&&e-c>=o}function g(){var e=ZE();if(_(e))return v(e);s=setTimeout(g,function(e){var r=t-(e-u);return d?QE(r,o-(e-c)):r}(e))}function v(e){return s=undefined,f&&n?p(e):(n=i=undefined,a)}function m(){var e=ZE(),r=_(e);if(n=arguments,i=this,u=e,r){if(s===undefined)return h(u);if(d)return s=setTimeout(g,t),p(u)}return s===undefined&&(s=setTimeout(g,t)),a}return t=tO(t)||0,eO(r)&&(l=!!r.leading,o=(d="maxWait"in r)?YE(tO(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f),m.cancel=function(){s!==undefined&&clearTimeout(s),c=0,n=u=i=s=undefined},m.flush=function(){return s===undefined?a:v(ZE())},m},nO=function(){function e(t){o(this,e),this.beidou=t,this.open=!0,this.timers=[],this.selectors=["[beidou-auto-exposure]"]}return s(e,[{key:"effectiveTarget",value:function(e){var t=e.getBoundingClientRect(),r=t.width||e.offsetWidth,n=t.height||e.offsetHeight,i=e.style.display;return r>0&&n>0&&"none"!==i}},{key:"getEffectiveArea",value:function(e){var t=e.getBoundingClientRect(),r=window.innerHeight||document.body.clientHeight,n=window.innerWidth||document.body.clientWidth,i=t.width||e.offsetWidth;return{height:(t.height||e.offsetHeight)-(t.top>0?0:-t.top)-(t.bottom<r?0:t.bottom-r),width:i-(t.left>0?0:-t.left)-(t.right<n?0:t.right-n)}}},{key:"effectiveAreaOfOptions",value:function(e){var t=this.getEffectiveArea(e);return t.width>parseInt(e.getAttribute("beidou-exposure_width")||"0",10)||t.height>parseInt(e.getAttribute("beidou-exposure_height")||"0",10)}},{key:"sendData",value:function(e,t){var n=_S({target:e},this.beidou),i=this.beidou.commonWays.getNewReportParam(),o=i.latest_campaign_code,a=i._referrer_page_alias,s=i.is_share,u=i.share_url,c=i.share_page_alias,l=i.share_platform_type,d=i.share_member_id,f=i.page_type,p=i.appstore_code,h=r(r(r({},n),{},{_exposure_times:t.number||1,_element_selector:this.beidou.heatmap.getDomSelector(e),_session_id:this.beidou.beidouEvent.getSessionId(),_unimem_id:this.beidou.store.getUnionId()?this.beidou.store.getUnionId().anonymous_id:""},PS(e)),{},{latest_campaign_code:o,_referrer_page_alias:a,is_share:s,share_url:u,share_page_alias:c,share_platform_type:l,share_member_id:d,page_type:f,appstore_code:p});t.number=t.number+1,this.beidou.beidouEvent.send({type:"track",event:"_web_exposure",properties:h})}},{key:"createTimer",value:function(e,t){var r=this,n={dom:e},i=setTimeout((function(){r.sendData(e,n)}),this.exposureTime);return n.timer=i,n.number=t||1,n}},{key:"setExposureTimer",value:function(e){var t=-1,r=!1;this.timers.forEach((function(n,i){n.dom===e&&(t=i,n.timer&&(r=!0))})),r||(t>-1?this.timers[t]=this.createTimer(e,this.timers[t].number):this.timers.push(this.createTimer(e)))}},{key:"stopExposureTimer",value:function(e){var t=-1;this.timers.forEach((function(r,n){r.dom===e&&r.timer&&(clearTimeout(r.timer),t=n)})),t>-1&&(this.timers[t].timer=undefined)}},{key:"addObserve",value:function(e){var t=this;document.querySelectorAll(e).forEach((function(e){e.getAttribute("beidou-exposure_width")||e.getAttribute("beidou-exposure_height")?t.io.observe(e):t.io2.observe(e)}))}},{key:"createOI",value:function(e,t){var r=this,n=this;return new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&t.intersectionRatio>=r.exposureAreaPercent&&r.effectiveTarget(t.target)||r.effectiveTarget(t.target)&&r.effectiveAreaOfOptions(t.target)&&e?n.setExposureTimer(t.target):n.stopExposureTimer(t.target)}))}),t)}},{key:"setShowObserver",value:function(){for(var e=this,t=[],r=this.exposureAreaPercent,n=0;n<=r;)t.push(n),n=parseFloat((n+.01).toFixed(2));var i={threshold:t},o={threshold:[r]};this.io=this.createOI(!0,i),this.io2=this.createOI(!1,o),this.selectors.forEac
7h((function(t){e.addObserve(t)}))}},{key:"effectiveAreaPercentMth",value:function(e){var t=e.getBoundingClientRect(),r=this.getEffectiveArea(e),n=t.width||e.offsetWidth,i=t.height||e.offsetHeight;return r.height*r.width*100/(i*n)}},{key:"getEffectiveElements",value:function(e){var t=this,r=document.querySelectorAll(e);if("[object Object]"===Object.prototype.toString.apply(r)){var n=[];for(key in r)"length"!==key&&n.push(r[key]);r=n}r&&r.forEach((function(e){t.effectiveTarget(e)&&t.effectiveAreaPercentMth(e)>=100*t.exposureAreaPercent||t.effectiveTarget(e)&&(e.getAttribute("beidou-exposure_width")||e.getAttribute("beidou-exposure_height"))&&t.effectiveAreaOfOptions(e)?t.setExposureTimer(e):t.stopExposureTimer(e)}))}},{key:"selectorsEffective",value:function(){var e=this;this.selectors.forEach((function(t){e.getEffectiveElements(t)}))}},{key:"setScrollListener",value:function(){var e=this;this.onScroll=function(){e.selectorsEffective()},IS(window,"scroll",this.onScroll)}},{key:"destroy",value:function(e){var t,r,n;e&&(t=window,r="scroll",n=this.onScroll,t.addEventListener?t.removeEventListener(r,n,!1):t.detachEvent?t.detachEvent("on"+r,n):t["on"+r]=""),this.io&&this.io.disconnect(),this.io2&&this.io2.disconnect()}},{key:"destroyListener",value:function(){var e=this;IS(window,"unload",(function(){e.destroy(!0)}))}},{key:"onDomChange",value:function(){this.destroy(),"function"==typeof IntersectionObserver&&this.setShowObserver()}},{key:"domDynamicChangeListener",value:function(){var e=this,t=rO((function(){return e.onDomChange()}),1e3);["DOMSubtreeModified","DOMNodeInserted","DOMNodeRemoved"].forEach((function(e){document.getElementsByTagName("html")[0]&&IS(document.getElementsByTagName("html")[0],e,t)}))}},{key:"init",value:function(){var e=this;this.exposureTime="number"==typeof this.beidou.para.exposure_time&&this.beidou.para.exposure_time>=0?this.beidou.para.exposure_time:this.beidou.para_default.exposure_time,this.exposureAreaPercent="number"==typeof this.beidou.para.exposure_area_percent&&this.beidou.para.exposure_area_percent>=0?parseFloat(this.beidou.para.exposure_area_percent.toFixed(2),10):this.beidou.para_default.exposure_area_percent,"function"==typeof IntersectionObserver?this.setShowObserver():(this.setScrollListener(),setTimeout((function(){e.selectorsEffective()}),200)),this.domDynamicChangeListener(),this.destroyListener()}}]),e}(),iO=function(){function e(t){o(this,e),this.beidou=t,this.singlePageEvent=null}return s(e,[{key:"addEvent",value:function(){var e=this.beidou;function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation,e._getPath=t._getPath),e}function r(e,r,n,i){return function(o){var a=o||t(window.event);if(!a)return undefined;a.target=a.srcElement;var s,u,c=!0;return"function"==typeof n&&(s=n(a)),u=r.call(e,a),"beforeunload"!==i?(!1!==s&&!1!==u||(c=!1),c):void 0}}function n(e,t,r,n){var i=1;function o(e){0===i?t(e):(clearTimeout(i),i=1)}e.addEventListener("touchstart",(function(){i=window.setTimeout((function(){i=0}),n||400)}),r),e.addEventListener("touchmove",(function(){clearTimeout(i),i=1}),r),e.addEventListener("touchend",o,r),e.addEventListener("touchcancel",o,r)}t._getPath=function(){var e=this;return this.path||this.composedPath&&this.composedPath()||function(){try{var t=e.target,r=[t];if(null===t||null===t.parentElement)return[];for(;null!==t.parentElement;)t=t.parentElement,r.unshift(t);return r}catch(n){return console.log("🕷-fixEvent._getPath",n),[]}}()},t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0};var i=function(i,o,a){var s=e.para,u=!(!ug(s.heatmap)||!s.heatmap.useCapture);if(ug(s.heatmap)&&"undefined"==typeof s.heatmap.useCapture&&"click"===o&&(u=!0),i&&i.addEventListener){var c=function(e){e._getPath=t._getPath,a.call(this,e,o)};"longPress"===o?n(i,c,u,e.para.long_press_timeout):i.addEventListener(o,c,u)}else{var l="on"+o,d=i[l];i[l]=r(i,a,d,o)}};i.apply(null,arguments)}},{key:"addHashEvent",value:function(e){var t=this.beidou;t.hashEvent="pushState"in window.history?"popstate":"hashchange",t.para.is_hash_single_page&&(t.hashEvent="hashchange"),t.eventListener.addEvent(window,this.hashEvent,e)}},{key:"addSinglePageEvent",value:function(e){this.beidou.singlePage.subscribe(e)}}]),e}(),oO=function(){function e(t){o(this,e),this.beidou=t,this.is_create=!1,this.current_url=location.href,this.eventList=[],this.enventType=""}return s(e,[{key:"create",value:function(){var e=this;function t(){lg(e.eventList,(function(t){sg(t)&&t(e.current_url)}),{}),e.current_url=location.href}var r,n=window.history.pushState,i=window.history.replaceState;sg(window.history.pushState)&&(window.history.pushState=function(){n.apply(window.history,arguments),t()}),sg(window.history.replaceState)&&(window.history.replaceState=function(){i.apply(window.history,arguments),t()}),r=window.document.documentMode?"hashchange":n?"popstate":"hashchange",this.enventType=r,this.beidou.eventListener.addEvent(window,r,(function(){t()})),this.is_create=!0}},{key:"subscribe",value:function(e){this.is_create||this.create(),sg(e)&&this.eventList.push(e)}},{key:"prepend",value:function(e){this.is_create||this.create(),sg(e)&&this.eventList.unshift(e)}}]),e}(),aO=function(){function e(t){o(this,e),this.timers=[],this.isPageShow=!0,this.cacheGeneratorResult=null,this.cacheGenerator=null,this.beidou=t,this.beforeLeaveTimestamp=0,this.leaveTime=0,this.leaveTimes=[]}return s(e,[{key:"init",value:function(){this.addWebstayTiggerEvent()}},{key:"addWebstayTiggerEvent",value:function(){this.beidou;var e=this;this.beidou.listenPageState({visible:function(){e.isPageShow=!0,e.leaveTime=e.beforeLeaveTime?(new Date).getTime()-e.beforeLeaveTime:0,e.leaveTimes.push(e.leaveTime),e.beforeLeaveTime=0,e.next(e.cacheGeneratorResult,e.cacheGenerator)},hidden:function(){e.isPageShow=!1,e.beforeLeaveTime=(new Date).getTime()}})}},{key:"startWebstayEvent",value:function(){var e=this,t=n().mark(f),r=this.beidou,o=function(){var e,t=15,r=30,n=60,i=120,o=600,a=600,s=[t,r,n,i,o],c=[[],[],[],[],[]],l=(u(e={},t,2),u(e,r,3),u(e,n,5),u(e,i,10),u(e,o,20),e),d=0,f=[];for(;d<=a;){if(d&&d<=t&&d%2==0)f.push(l[t]),c[0].push(d);else for(var p=1;p<=4;p++)if(d<=s[p]&&d>s[p-1]){var h=c[p-1][c[p-1].length-1],_=c[p][c[p].length-1];if(_+l[s[p]]>=s[p]){d++;break}!c[p].length&&h<s[p-1]?c[p].push(h+l[s[p]]):c[p].push(_?_+l[s[p]]:d+l[s[p
7]]),f.push(l[s[p]])}d++}return f}(),a="心跳配置有误,请查询文档修改配置!";if("function"==typeof r.para.webstay_time&&(o=r.para.webstay_time()),rg(r.para.webstay_time)&&(o=r.para.webstay_time),ug(r.para.webstay_time)&&r.para.webstay_time.time&&("function"==typeof r.para.webstay_time.time&&(o=r.para.webstay_time.time()),rg(r.para.webstay_time.time)&&(o=r.para.webstay_time.time)),!rg(o))return console.error(a),!1;var s=[];this.leaveTimes=[];for(var c=function(t){if(!og(o[t]))return console.error(a),{v:void 0};e.cleanTimer(),s.push((function(){return new Promise((function(n){var i=setTimeout((function(){r.heatmapDelayTime.go("notime",{pageviewTime:r.pageview_time,isHeartbeat:!0,leaveTime:e.leaveTimes,event_duration_delta:o[t]}),n(t)}),1e3*o[t]);e.setTimer(i)}))}))},l=0;l<o.length;l++){var d=c(l);if("object"===i(d))return d.v}function f(e,r){var i,o,a;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=v(e),t.prev=1,i.s();case 3:if((o=i.n()).done){t.next=10;break}return a=o.value,t.next=7,a(r);case 7:r=t.sent;case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](1),i.e(t.t0);case 15:return t.prev=15,i.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[1,12,15,18]])}var p=f(s,1);this.next(p.next(),p)}},{key:"next",value:function(e,t){var r=this;e&&t&&!e.done&&(this.isPageShow?(this.cacheGenerator=t,e.value.then((function(e){r.next(t.next(e),t)}))):this.cacheGeneratorResult=e)}},{key:"setTimer",value:function(e){e&&this.timers.push(e)}},{key:"cleanTimer",value:function(){this.timers.length&&this.timers.forEach((function(e){return clearTimeout(e)}))}}]),e}();var sO=function(){function e(t){o(this,e),this.beidou=t,this.signTimer=null}return s(e,[{key:"track",value:function(e,t,r){var n=this,i=this.beidou;if(i.readyState.getState())if(e&&ng(e)){if(!1===i.dealHookCallback(i.hooks.beforeTrack,{event:e}))return!1;i.beidouEvent.check({event:e,properties:t})&&i.beidouEvent.send({type:"track",event:e,properties:t},(function(){return n.postTrack(e,t,r)}))}else console.error("自定义事件名称非法!");else console.error("请先初始化北斗JS SDK")}},{key:"postTrack",value:function(e,t,r){var n=this.beidou;if("_pageview"===e){if(n.para.post_message.is_track&&(n.postMessage.postParents({url:t._url||location.href},n.para.post_message.traget_origin),n.para.enable_heartbeat&&n.webstayHeartbeat.startWebstayEvent()),n.hashEvent&&n.heatmapDelayTime&&"single_page"===t._pageview_type){if(!n.checkPage())return!1;n.heatmapDelayTime.go("notime",{type:n.hashEvent,pageviewTime:n.pageview_time})}if(n.eventListener.singlePageEvent&&n.heatmapDelayTime&&"single_page"===t._pageview_type){if(!n.checkPage())return!1;n.heatmapDelayTime.go("notime",{type:n.singlePageEvent,pageviewTime:n.pageview_time})}n.pageview_time=new Date}"function"==typeof r&&r()}},{key:"trackLink",value:function(e,t,r){var n=this.beidou,o=e||{},a=null;o.ele&&(a=o.ele),o.event&&(a=o.target?o.target:o.event.target);var s=r||{};if(!a||"object"!==i(a))return!1;if(!a.href||/^javascript/.test(a.href)||a.target||a.download||a.onclick)return n.trail.track(t,s),!1;function u(e){e.stopPropagation(),e.preventDefault();var r=!1;function i(){r||(r=!0,location.href=a.href)}setTimeout(i,1e3),n.trail.track(t,s,i)}o.event&&u(o.event),o.ele&&this.eventListener.addEvent(o.ele,"click",(function(e){u(e)}))}},{key:"trackSingleLink",value:function(e,t,r){this.beidou.readyState.getState()?"object"===i(e)&&e.tagName?this.trackLink({ele:e},t,r):"object"===i(e)&&e.target&&e.event&&this.trackLink(e,t,r):console.error("请先初始化北斗JS SDK")}},{key:"trackLinks",value:function(e,t,r){var n=this.beidou,o=this;if(n.readyState.getState()){var a=r||{};return!(!e||"object"!==i(e))&&(!(!e.href||/^javascript/.test(e.href)||e.target)&&void n.eventListener.addEvent(e,"click",(function(r){r.preventDefault();var n=!1;function i(){n||(n=!0,location.href=e.href)}setTimeout(i,1e3),o.track(t,a,i)})))}console.error("请先初始化北斗JS SDK")}},{key:"trailSign",value:function(e,t,r,n,i){var o=this.beidou;if(o.readyState.getState())if(e){if(o.beidouEvent.check({_unique_id:e,event:t,properties:r})){var a=o.store.getFirstId()||o.store.getDistinctId();o.store.set("_unique_id",a),o.store.set("_user_id",e),o.beidouEvent.send({original_id:a,_unique_id:a,type:i,event:t,properties:r},n)}}else o.beidouEvent.check({event:t,properties:r})&&(this.signTimer,this.signTimer=setTimeout((function(){o.beidouEvent.send({type:i,event:t,properties:r},n)}),200));else console.error("请先初始化北斗JS SDK")}},{key:"trackAbtest",value:function(e,t){}},{key:"trackNextTick",value:function(e,t,r){var n=this,i=this.beidou;if(i.readyState.getState()){var o=function(){i.beidouEvent.send({type:"track",event:e,properties:t},n.postTrack(e,t,r))};return new Promise((function(r,n){i.beidouEvent.check({event:e,properties:t})?WS.includes(e)?(o(),r(!0)):setTimeout((function(){o(),r(!0)}),0):n(!1)}))}console.error("请先初始化北斗JS SDK")}}]),e}(),uO=function(){function e(t){o(this,e),this.beidou=t}return s(e,[{key:"setProfile",value:function(e,t){var r=this.beidou;r.readyState.getState()?ug(e)?r.beidouEvent.check({propertiesMust:e})&&r.beidouEvent.send({type:"set_profile",ops_profile:e},t):console.error("用户的属性类型为对象"):console.error("请先初始化北斗JS SDK")}},{key:"setOnceProfile",value:function(e,t){var r=this.beidou;r.readyState.getState()?ug(e)?r.beidouEvent.check({propertiesMust:e})&&r.beidouEvent.send({type:"set_once_profile",ops_profile:e},t):console.error("用户的属性类型为对象"):console.error("请先初始化北斗JS SDK")}},{key:"appendProfile",value:function(e,t){var r=this.beidou;r.readyState.getState()?r.beidouEvent.check({propertiesMust:e})&&(lg(e,(function(t,n){ng(t)?e[n]=[t]:rg(t)?e[n]=t:(delete e[n],r.log("appendProfile属性的值必须是字符串或者数组"))})),cg(e)||r.beidouEvent.send({type:"append_profile",ops_profile:e},t)):console.error("请先初始化北斗JS SDK")}},{key:"incrementProfile",value:function(e,t){var r=this.beidou;if(r.readyState.getState()){var n=e;ng(e)&&((e={})[n]=1),r.beidouEvent.check({propertiesMust:e})&&(!function(e){for(var t in e)if(!/-*\d+/.test(String(e[t])))return!1;return!0}(e)?r.log("increment_profile的值只能是数字"):r.beidouEvent.send({type:"increment_profile",ops_profile:e},t))}else console.error("请先初始化北斗JS SDK")}},{key:"deleteProfile",value:function(e){var t=this.beidou;t.readyState.getState()?(t.beidouEvent.send({type:"delete_profile"},e),t.store.set("distinct_id",Ng()),t.store.set("first_id","")):console.error("请先初始化北斗JS SDK")}},{key:"unsetProfile",value:function(e,t){var r=this.beidou;if(r.readyState.getState()){var n=e,i=[];ng(e)&&(e=[]).push(n),rg(e)?(lg(e,(function(e){ng(e)?i.push(e):r.log("unset_profile给的数组里面的值必须时string,已经过滤掉",e)})),r.beidouEvent.send({type:"unset_profile",ops_profile:{_unset_fields:i}},t)):r.log("profile_unset的参数是数组")}else console.error("请先初始化北斗JS SDK")}}]),e}(),cO=function(){function e(t){o(this,e),this.beidou=t}return s(e,[{key:"login",value:function(e,t,r,n){var i=this.beidou;if(i.readyState.getState())if(i.hooks.eventHooks.call({name:"beforeLogin",params:{id:e,props:r},beidou:i}),"number"==typeof e&&(e=String(e)),i.beidouEvent.check({_unique_id:e})){var o=i.store.getFirstId(),a=i.store.getDistinctId();e!==a?(o||i.store.set("first_id",a),i.trail.trailSign(e,"_signup",r||{},t,n||"track_signup"),i.hooks.eventHooks.call({name:"loginSuccess",params:{id:e,props:r},beidou:i})):t&&t()}else i.log("login的参数必须是字符串"),t&&t();else console.error("请先初始化北斗JS SDK")}},{key:"logout",value:function(e){var t=this.beidou;if(t.readyState.getState()){var r=t.store.getFirstId();if(r){if(t.store.set("first_id",""),!0===e){var n=Ng();t.store.set("_unique_id",n)}else t.store.set("_unique_id",r);t.para.cross_subdomain?t.cookie.remove("BeidouDataWebSdkCross_session_id"):t.cookie.remove("BeidouDataWebSdkCore_session_id")}else t.log("没有first_id,logout失败")}else console.error("请先初始化北斗JS SDK")}},{key:"dealUserKey",value:function(e){var t=this.beidou,r=t.store.getHistoryUserId();if(t.para.user_id_key&&ng(t.para.user_id_key)){if(t.para.user_id_key===r.name&&e===r.value)return!1;var n=t.store.getIds();n[r.name]&&delete n[r.name],n[t.para.user_id_key]=e,t.store.setIds(n),t.store.setHistoryUserId(t.para.user_id_key,e)}return!0}},{key:"signin",value:function(e,t,r){var n=this.beidou;this.dealUserKey(e)?(e&&this.login(e,t,r,"track_signin"),n.readyState.getState()?n.trail.trailSign(e,"_sign_in",r||{},t,"track_signin"):console.error("请先初始化北斗JS SDK")):n.log("重复登录")}},{key:"signup",value:function(e,t,r){var n=this.beidou;this.dealUserKey(e)?(e&&this.login(e,t,r,"track_signup"),n.readyState.getState()?n.trail.trailSign(e,"_sign_up",r||{},t,"track_signup"):console.error("请先初始化北斗JS SDK")):n.log("该用户已存在")}},{key:"signout",value:function(e,t,r){var n=this.beidou;e&&this.logout(e);var i=n.store.getHistoryUserId(),o=n.store.getIds();ng(i.name)&&i.name&&o[i.name]&&(delete o[i.name],n.store.setIds(o)),n.store.setHistoryUserId("",""),n.readyState.getState()?n.trail.trailSign(null,"_sign_out",r||{},t,"track_signout"):console.error("请先初始化北斗JS SDK")}}]),e}(),lO=function(){function e(t){o(this,e),this.beidou=t}return s(e,[{key:"log",value:function(){var e=this.beidou;if((CS.isSupport()&&"true"===CS.getItem("beidoudata_jssdk_debug")||e.para.show_log)&&(!0!==e.para.show_log&&"string"!==e.para.show_log&&!1!==e.para.show_log||(arguments[0]=gg(arguments[0])),"object"===("undefined"==typeof console?"undefined":i(console))&&console.log))try{return"function"==typeof console.log.apply?console.log.apply(console,arguments):console.log(Array.prototype.slice.call(arguments).join(","))}catch(t){console.log("🕷-log",t),console.log(arguments[0])}}},{key:"enableLocalLog",value:function(){if(CS.isSupport())try{CS.setItem("beidoudata_jssdk_debug","true")}catch(e){console.log("🕷-enableLocalLog",e),this.log("enableLocalLog error: "+e.message)}}},{key:"disableLocalLog",value:function(){CS.isSupport()&&CS.removeItem("beidoudata_jssdk_debug")}}]),e}(),dO=gr.PROPER,fO=k,pO=Cl,hO=ql.trim;_i({target:"String",proto:!0,forced:function(e){return fO((function(){return!!pO[e]()||"​…᠎"!=="​…᠎"[e]()||dO&&pO[e].name!==e}))}("trim")},{trim:function(){return hO(this)}});var _O={exports:{}},gO={},vO=F,mO=re,yO=hn.f,bO=Gg,wO="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];gO.f=function(e){return wO&&"Window"==vO(e)?function(e){try{return yO(e)}catch(lj){return bO(wO)}}(e):yO(mO(e))};var kO=k((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),SO=k,PO=ae,EO=F,OO=kO,xO=Object.isExtensible,jO=SO((function(){xO(1)}))||OO?function(e){return!!PO(e)&&((!OO||"ArrayBuffer"!=EO(e))&&(!xO||xO(e)))}:xO,IO=!k((function(){return Object.isExtensible(Object.preventExtensions({}))})),TO=_i,DO=$,NO=Dr,AO=ae,CO=tt,RO=Ft.f,LO=hn,BO=gO,MO=jO,HO=IO,$O=!1,UO=at("meta"),qO=0,JO=function(e){RO(e,UO,{value:{objectID:"O"+qO++,weakData:{}}})}
7,FO=_O.exports={enable:function(){FO.enable=function(){},$O=!0;var e=LO.f,t=DO([].splice),r={};r[UO]=1,e(r).length&&(LO.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===UO){t(n,i,1);break}return n},TO({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:BO.f}))},fastKey:function(e,t){if(!AO(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!CO(e,UO)){if(!MO(e))return"F";if(!t)return"E";JO(e)}return e[UO].objectID},getWeakData:function(e,t){if(!CO(e,UO)){if(!MO(e))return!0;if(!t)return!1;JO(e)}return e[UO].weakData},onFreeze:function(e){return HO&&$O&&MO(e)&&!CO(e,UO)&&JO(e),e}};NO[UO]=!0;var WO=_i,zO=b,KO=$,GO=si,VO=pn,XO=_O.exports,YO=p_,QO=Zd,ZO=ne,ex=X,tx=ae,rx=k,nx=m_,ix=Xd,ox=So,ax=function(e,t,r){var n=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=n?"set":"add",a=zO[e],s=a&&a.prototype,u=a,c={},l=function(e){var t=KO(s[e]);VO(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!tx(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return i&&!tx(e)?undefined:t(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!tx(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(GO(e,!ZO(a)||!(i||s.forEach&&!rx((function(){(new a).entries().next()})))))u=r.getConstructor(t,e,n,o),XO.enable();else if(GO(e,!0)){var d=new u,f=d[o](i?{}:-0,1)!=d,p=rx((function(){d.has(1)})),h=nx((function(e){new a(e)})),_=!i&&rx((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));h||((u=t((function(e,t){QO(e,s);var r=ox(new a,e,u);return ex(t)||YO(t,r[o],{that:r,AS_ENTRIES:n}),r}))).prototype=s,s.constructor=u),(p||_)&&(l("delete"),l("has"),n&&l("get")),(_||f)&&l(o),i&&s.clear&&delete s.clear}return c[e]=u,WO({global:!0,constructor:!0,forced:u!=a},c),ix(u,e),i||r.setStrong(u,e,n),u},sx=Ft.f,ux=ls,cx=ab,lx=yi,dx=Zd,fx=X,px=p_,hx=Am,_x=Vo,gx=S,vx=_O.exports.fastKey,mx=Vr.set,yx=Vr.getterFor,bx={getConstructor:function(e,t,r,n){var i=e((function(e,i){dx(e,o),mx(e,{type:t,index:ux(null),first:undefined,last:undefined,size:0}),gx||(e.size=0),fx(i)||px(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=yx(t),s=function(e,t,r){var n,i,o=a(e),s=u(e,t);return s?s.value=r:(o.last=s={index:i=vx(t,!0),key:t,value:r,previous:n=o.last,next:undefined,removed:!1},o.first||(o.first=s),n&&(n.next=s),gx?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},u=function(e,t){var r,n=a(e),i=vx(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return cx(o,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=undefined),delete t[r.index],r=r.next;e.first=e.last=undefined,gx?e.size=0:this.size=0},"delete":function(e){var t=this,r=a(t),n=u(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),gx?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=lx(e,arguments.length>1?arguments[1]:undefined);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),cx(o,r?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),gx&&sx(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=yx(t),o=yx(n);hx(e,t,(function(e,t){mx(this,{type:n,target:e,state:i(e),kind:t,last:undefined})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=undefined,{value:undefined,done:!0})}),r?"entries":"values",!r,!0),_x(t)}};ax("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),bx),_i({target:"Object",stat:!0},{setPrototypeOf:yo});var wx={deprecate:function(e,t){var r=!0;return function(){return r&&(console.warn("DeprecationWarning: "+t),r=!1),e.apply(this,arguments)}}},kx=wx.deprecate((function(){}),"Hook.context is deprecated and will be removed"),Sx=function(){return this.call=this._createCall("sync"),this.call.apply(this,arguments)},Px=function(){return this.callAsync=this._createCall("async"),this.callAsync.apply(this,arguments)},Ex=function(){return this.promise=this._createCall("promise"),this.promise.apply(this,arguments)},Ox=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;o(this,e),this._args=t,this.name=r,this.taps=[],this.interceptors=[],this._call=Sx,this.call=Sx,this._callAsync=Px,this.callAsync=Px,this._promise=Ex,this.promise=Ex,this._x=undefined,this.compile=this.compile,this.tap=this.tap,this.tapAsync=this.tapAsync,this.tapPromise=this.tapPromise}
7return s(e,[{key:"compile",value:function(e){throw new Error("Abstract: should be overridden")}},{key:"_createCall",value:function(e){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:e})}},{key:"_tap",value:function(e,t,r){if("string"==typeof t)t={name:t.trim()};else if("object"!==i(t)||null===t)throw new Error("Invalid tap options");if("string"!=typeof t.name||""===t.name)throw new Error("Missing name for tap");"undefined"!=typeof t.context&&kx(),t=Object.assign({type:e,fn:r},t),t=this._runRegisterInterceptors(t),this._insert(t)}},{key:"tap",value:function(e,t){this._tap("sync",e,t)}},{key:"tapAsync",value:function(e,t){this._tap("async",e,t)}},{key:"tapPromise",value:function(e,t){this._tap("promise",e,t)}},{key:"_runRegisterInterceptors",value:function(e){var t,r=v(this.interceptors);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.register){var i=n.register(e);i!==undefined&&(e=i)}}}catch(o){r.e(o)}finally{r.f()}return e}},{key:"withOptions",value:function(e){var t=this,r=function(t){return Object.assign({},e,"string"==typeof t?{name:t}:t)};return{name:this.name,tap:function(e,n){return t.tap(r(e),n)},tapAsync:function(e,n){return t.tapAsync(r(e),n)},tapPromise:function(e,n){return t.tapPromise(r(e),n)},intercept:function(e){return t.intercept(e)},isUsed:function(){return t.isUsed()},withOptions:function(e){return t.withOptions(r(e))}}}},{key:"isUsed",value:function(){return this.taps.length>0||this.interceptors.length>0}},{key:"intercept",value:function(e){if(this._resetCompilation(),this.interceptors.push(Object.assign({},e)),e.register)for(var t=0;t<this.taps.length;t++)this.taps[t]=e.register(this.taps[t])}},{key:"_resetCompilation",value:function(){this.call=this._call,this.callAsync=this._callAsync,this.promise=this._promise}},{key:"_insert",value:function(e){var t;this._resetCompilation(),"string"==typeof e.before?t=new Set([e.before]):Array.isArray(e.before)&&(t=new Set(e.before));var r=0;"number"==typeof e.stage&&(r=e.stage);for(var n=this.taps.length;n>0;){n--;var i=this.taps[n];this.taps[n+1]=i;var o=i.stage||0;if(t){if(t.has(i.name)){t["delete"](i.name);continue}if(t.size>0)continue}if(!(o>r)){n++;break}}this.taps[n]=e}}]),e}();Object.setPrototypeOf(Ox.prototype,null);var xx=Ox,jx=oo.map;_i({target:"Array",proto:!0,forced:!ju("map")},{map:function(e){return jx(this,e,arguments.length>1?arguments[1]:undefined)}});var Ix=_i,Tx=oo.findIndex,Dx=kd,Nx="findIndex",Ax=!0;Nx in[]&&Array(1).findIndex((function(){Ax=!1})),Ix({target:"Array",proto:!0,forced:Ax},{findIndex:function(e){return Tx(this,e,arguments.length>1?arguments[1]:undefined)}}),Dx(Nx);var Cx=oo.every;_i({target:"Array",proto:!0,forced:!so("every")},{every:function(e){return Cx(this,e,arguments.length>1?arguments[1]:undefined)}});var Rx=function(){function e(t){o(this,e),this.config=t,this.options=undefined,this._args=undefined}return s(e,[{key:"create",value:function(e){var t;switch(this.init(e),this.options.type){case"sync":t=new Function(this.args(),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:function(e){return"throw ".concat(e,";\n")},onResult:function(e){return"return ".concat(e,";\n")},resultReturns:!0,onDone:function(){return""},rethrowIfPossible:!0}));break;case"async":t=new Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:function(e){return"_callback(".concat(e,");\n")},onResult:function(e){return"_callback(null, ".concat(e,");\n")},onDone:function(){return"_callback();\n"}}));break;case"promise":var r=!1,n=this.contentWithInterceptors({onError:function(e){return r=!0,"_error(".concat(e,");\n")},onResult:function(e){return"_resolve(".concat(e,");\n")},onDone:function(){return"_resolve();\n"}}),i="";i+='"use strict";\n',i+=this.header(),i+="return new Promise((function(_resolve, _reject) {\n",r&&(i+="var _sync = true;\n",i+="function _error(_err) {\n",i+="if(_sync)\n",i+="_resolve(Promise.resolve().then((function() { throw _err; })));\n",i+="else\n",i+="_reject(_err);\n",i+="};\n"),i+=n,r&&(i+="_sync = false;\n"),i+="}));\n",t=new Function(this.args(),i)}
7return this.deinit(),t}},{key:"setup",value:function(e,t){e._x=t.taps.map((function(e){return e.fn}))}},{key:"init",value:function(e){this.options=e,this._args=e.args.slice()}},{key:"deinit",value:function(){this.options=undefined,this._args=undefined}},{key:"contentWithInterceptors",value:function(e){var t=this;if(this.options.interceptors.length>0){for(var r=e.onError,n=e.onResult,i=e.onDone,o="",a=0;a<this.options.interceptors.length;a++){var s=this.options.interceptors[a];s.call&&(o+="".concat(this.getInterceptor(a),".call(").concat(this.args({before:s.context?"_context":undefined}),");\n"))}return o+=this.content(Object.assign(e,{onError:r&&function(e){for(var n="",i=0;i<t.options.interceptors.length;i++){t.options.interceptors[i].error&&(n+="".concat(t.getInterceptor(i),".error(").concat(e,");\n"))}return n+=r(e)},onResult:n&&function(e){for(var r="",i=0;i<t.options.interceptors.length;i++){t.options.interceptors[i].result&&(r+="".concat(t.getInterceptor(i),".result(").concat(e,");\n"))}return r+=n(e)},onDone:i&&function(){for(var e="",r=0;r<t.options.interceptors.length;r++){t.options.interceptors[r].done&&(e+="".concat(t.getInterceptor(r),".done();\n"))}return e+=i()}}))}return this.content(e)}},{key:"header",value:function(){var e="";return this.needContext()?e+="var _context = {};\n":e+="var _context;\n",e+="var _x = this._x;\n",this.options.interceptors.length>0&&(e+="var _taps = this.taps;\n",e+="var _interceptors = this.interceptors;\n"),e}},{key:"needContext",value:function(){var e,t=v(this.options.taps);try{for(t.s();!(e=t.n()).done;){if(e.value.context)return!0}}catch(r){t.e(r)}finally{t.f()}return!1}},{key:"callTap",value:function(e,t){for(var r=t.onError,n=t.onResult,i=t.onDone,o=t.rethrowIfPossible,a="",s=!1,u=0;u<this.options.interceptors.length;u++){var c=this.options.interceptors[u];c.tap&&(s||(a+="var _tap".concat(e," = ").concat(this.getTap(e),";\n"),s=!0),a+="".concat(this.getInterceptor(u),".tap(").concat(c.context?"_context, ":"","_tap").concat(e,");\n"))}a+="var _fn".concat(e," = ").concat(this.getTapFn(e),";\n");var l=this.options.taps[e];switch(l.type){case"sync":o||(a+="var _hasError".concat(e," = false;\n"),a+="try {\n"),a+=n?"var _result".concat(e," = _fn").concat(e,"(").concat(this.args({before:l.context?"_context":undefined}),");\n"):"_fn".concat(e,"(").concat(this.args({before:l.context?"_context":undefined}),");\n"),o||(a+="} catch(_err) {\n",a+="_hasError".concat(e," = true;\n"),a+=r("_err"),a+="}\n",a+="if(!_hasError".concat(e,") {\n")),n&&(a+=n("_result".concat(e))),i&&(a+=i()),o||(a+="}\n");break;case"async":var d="";d+=n?"(function(_err".concat(e,", _result").concat(e,") {\n"):"(function(_err".concat(e,") {\n"),d+="if(_err".concat(e,") {\n"),d+=r("_err".concat(e)),d+="} else {\n",n&&(d+=n("_result".concat(e))),i&&(d+=i()),d+="}\n",d+="})",a+="_fn".concat(e,"(").concat(this.args({before:l.context?"_context":undefined,after:d}),");\n");break;case"promise":a+="var _hasResult".concat(e," = false;\n"),a+="var _promise".concat(e," = _fn").concat(e,"(").concat(this.args({before:l.context?"_context":undefined}),");\n"),a+="if (!_promise".concat(e," || !_promise").concat(e,".then)\n"),a+="  throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise".concat(e," + ')');\n"),a+="_promise".concat(e,".then((function(_result").concat(e,") {\n"),a+="_hasResult".concat(e," = true;\n"),n&&(a+=n("_result".concat(e))),i&&(a+=i()),a+="}), function(_err".concat(e,") {\n"),a+="if(_hasResult".concat(e,") throw _err").concat(e,";\n"),a+=r("_err".concat(e)),a+="});\n"}return a}},{key:"callTapsSeries",value:function(e){var t=this,r=e.onError,n=e.onResult,i=e.resultReturns,o=e.onDone,a=e.doneReturns,s=e.rethrowIfPossible;if(0===this.options.taps.length)return o();for(var u=this.options.taps.findIndex((function(e){return"sync"!==e.type})),c=i||a,l="",d=o,f=0,p=function(e){var i=e;d!==o&&("sync"!==t.options.taps[i].type||f++>20)&&(f=0,l+="function _next".concat(i,"() {\n"),l+=d(),l+="}\n",d=function(){return"".concat(c?"return ":"","_next").concat(i,"();\n")});var a=d,p=function(e){return e?"":o()},h=t.callTap(i,{onError:function(e){return r(i,e,a,p)},onResult:n&&function(e){return n(i,e,a,p)},onDone:!n&&a,rethrowIfPossible:s&&(u<0||i<u)});d=function(){return h}},h=this.options.taps.length-1;h>=0;h--)p(h);return l+=d()}},{key:"callTapsLooping",value:function(e){var t=e.onError,r=e.onDone,n=e.rethrowIfPossible;if(0===this.options.taps.length)return r();var i=this.options.taps.every((function(e){return"sync"===e.type})),o="";
7i||(o+="var _looper = (function() {\n",o+="var _loopAsync = false;\n"),o+="var _loop;\n",o+="do {\n",o+="_loop = false;\n";for(var a=0;a<this.options.interceptors.length;a++){var s=this.options.interceptors[a];s.loop&&(o+="".concat(this.getInterceptor(a),".loop(").concat(this.args({before:s.context?"_context":undefined}),");\n"))}return o+=this.callTapsSeries({onError:t,onResult:function(e,t,r,n){var o="";return o+="if(".concat(t," !== undefined) {\n"),o+="_loop = true;\n",i||(o+="if(_loopAsync) _looper();\n"),o+=n(!0),o+="} else {\n",o+=r(),o+="}\n"},onDone:r&&function(){var e="";return e+="if(!_loop) {\n",e+=r(),e+="}\n"},rethrowIfPossible:n&&i}),o+="} while(_loop);\n",i||(o+="_loopAsync = true;\n",o+="});\n",o+="_looper();\n"),o}},{key:"callTapsParallel",value:function(e){var t=this,r=e.onError,n=e.onResult,i=e.onDone,o=e.rethrowIfPossible,a=e.onTap,s=void 0===a?function(e,t){return t()}:a;if(this.options.taps.length<=1)return this.callTapsSeries({onError:r,onResult:n,onDone:i,rethrowIfPossible:o});var u="";u+="do {\n",u+="var _counter = ".concat(this.options.taps.length,";\n"),i&&(u+="var _done = (function() {\n",u+=i(),u+="});\n");for(var c=function(e){var a=function(){return i?"if(--_counter === 0) _done();\n":"--_counter;"},c=function(e){return e||!i?"_counter = 0;\n":"_counter = 0;\n_done();\n"};u+="if(_counter <= 0) break;\n",u+=s(e,(function(){return t.callTap(e,{onError:function(t){var n="";return n+="if(_counter > 0) {\n",n+=r(e,t,a,c),n+="}\n"},onResult:n&&function(t){var r="";return r+="if(_counter > 0) {\n",r+=n(e,t,a,c),r+="}\n"},onDone:!n&&function(){return a()},rethrowIfPossible:o})}),a,c)},l=0;l<this.options.taps.length;l++)c(l);return u+="} while(false);\n"}},{key:"args",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=e.before,r=e.after,n=this._args;return t&&(n=[t].concat(n)),r&&(n=n.concat(r)),0===n.length?"":n.join(", ")}},{key:"getTapFn",value:function(e){return"_x[".concat(e,"]")}},{key:"getTap",value:function(e){return"_taps[".concat(e,"]")}},{key:"getInterceptor",value:function(e){return"_interceptors[".concat(e,"]")}}]),e}(),Lx=Rx,Bx=xx,Mx=function(e){c(r,e);var t=p(r);function r(){return o(this,r),t.apply(this,arguments)}return s(r,[{key:"content",value:function(e){var t=e.onError,r=e.onDone,n=e.rethrowIfPossible;return this.callTapsSeries({onError:function(e,r){return t(r)},onDone:r,rethrowIfPossible:n})}}]),r}(Lx),Hx=new Mx,$x=function(){throw new Error("tapAsync is not supported on a SyncHook")},Ux=function(){throw new Error("tapPromise is not supported on a SyncHook")},qx=function(e){return Hx.setup(this,e),Hx.create(e)};function Jx(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined,r=new Bx(e,t);return r.constructor=Jx,r.tapAsync=$x,r.tapPromise=Ux,r.compile=qx,r}Jx.prototype=null;var Fx=Jx,Wx=function(e){c(r,e);var t=p(r);function r(){return o(this,r),t.apply(this,arguments)}return s(r,[{key:"content",value:function(e){var t=e.onError,r=e.onResult,n=e.resultReturns,i=e.onDone,o=e.rethrowIfPossible;return this.callTapsSeries({onError:function(e,r){return t(r)},onResult:function(e,t,n){return"if(".concat(t," !== undefined) {\n").concat(r(t),";\n} else {\n").concat(n(),"}\n")},resultReturns:n,onDone:i,rethrowIfPossible:o})}}]),r}(Lx);new Wx;var zx=function(e){c(r,e);var t=p(r);function r(){return o(this,r),t.apply(this,arguments)}return s(r,[{key:"content",value:function(e){var t=this,r=e.onError,n=e.onResult,i=e.resultReturns,o=e.rethrowIfPossible;return this.callTapsSeries({onError:function(e,t){return r(t)},onResult:function(e,r,n){var i="";return i+="if(".concat(r," !== undefined) {\n"),i+="".concat(t._args[0]," = ").concat(r,";\n"),i+="}\n",i+=n()},onDone:function(){return n(t._args[0])},doneReturns:i,rethrowIfPossible:o})}}]),r}(Lx);new zx;var Kx=function(e){c(r,e);var t=p(r);function r(){return o(this,r),t.apply(this,arguments)}return s(r,[{key:"content",value:function(e){var t=e.onError,r=e.onDone,n=e.rethrowIfPossible;return this.callTapsLooping({onError:function(e,r){return t(r)},onDone:r,rethrowIfPossible:n})}}]),r}(Lx);new Kx;var Gx=function(e){c(r,e);var t=p(r);function r(){return o(this,r),t.apply(this,arguments)}
7return s(r,[{key:"content",value:function(e){var t=e.onError,r=e.onDone;return this.callTapsParallel({onError:function(e,r,n,i){return t(r)+i(!0)},onDone:r})}}]),r}(Lx);new Gx;var Vx=function(e){c(r,e);var t=p(r);function r(){return o(this,r),t.apply(this,arguments)}return s(r,[{key:"content",value:function(e){var t=e.onError,r=e.onResult,n=e.onDone,i="";return i+="var _results = new Array(".concat(this.options.taps.length,");\n"),i+="var _checkDone = function() {\n",i+="for(var i = 0; i < _results.length; i++) {\n",i+="var item = _results[i];\n",i+="if(item === undefined) return false;\n",i+="if(item.result !== undefined) {\n",i+=r("item.result"),i+="return true;\n",i+="}\n",i+="if(item.error) {\n",i+=t("item.error"),i+="return true;\n",i+="}\n",i+="}\n",i+="return false;\n",i+="}\n",i+=this.callTapsParallel({onError:function(e,t,r,n){var i="";return i+="if(".concat(e," < _results.length && ((_results.length = ").concat(e+1,"), (_results[").concat(e,"] = { error: ").concat(t," }), _checkDone())) {\n"),i+=n(!0),i+="} else {\n",i+=r(),i+="}\n"},onResult:function(e,t,r,n){var i="";return i+="if(".concat(e," < _results.length && (").concat(t," !== undefined && (_results.length = ").concat(e+1,"), (_results[").concat(e,"] = { result: ").concat(t," }), _checkDone())) {\n"),i+=n(!0),i+="} else {\n",i+=r(),i+="}\n"},onTap:function(e,t,r,n){var i="";return e>0&&(i+="if(".concat(e," >= _results.length) {\n"),i+=r(),i+="} else {\n"),i+=t(),e>0&&(i+="}\n"),i},onDone:n}),i}}]),r}(Lx);new Vx;var Xx=function(e){c(r,e);var t=p(r);function r(){return o(this,r),t.apply(this,arguments)}return s(r,[{key:"content",value:function(e){var t=e.onError,r=e.onDone;return this.callTapsSeries({onError:function(e,r,n,i){return t(r)+i(!0)},onDone:r})}}]),r}(Lx);new Xx;var Yx=function(e){c(r,e);var t=p(r);function r(){return o(this,r),t.apply(this,arguments)}return s(r,[{key:"content",value:function(e){var t=e.onError,r=e.onResult,n=e.resultReturns,i=e.onDone;return this.callTapsSeries({onError:function(e,r,n,i){return t(r)+i(!0)},onResult:function(e,t,n){return"if(".concat(t," !== undefined) {\n").concat(r(t),"\n} else {\n").concat(n(),"}\n")},resultReturns:n,onDone:i})}}]),r}(Lx);new Yx;var Qx=function(e){c(r,e);var t=p(r);function r(){return o(this,r),t.apply(this,arguments)}return s(r,[{key:"content",value:function(e){var t=e.onError,r=e.onDone;return this.callTapsLooping({onError:function(e,r,n,i){return t(r)+i(!0)},onDone:r})}}]),r}(Lx);new Qx;var Zx=function(e){c(r,e);var t=p(r);function r(){return o(this,r),t.apply(this,arguments)}return s(r,[{key:"content",value:function(e){var t=this,r=e.onError,n=e.onResult;return e.onDone,this.callTapsSeries({onError:function(e,t,n,i){return r(t)+i(!0)},onResult:function(e,r,n){var i="";return i+="if(".concat(r," !== undefined) {\n"),i+="".concat(t._args[0]," = ").concat(r,";\n"),i+="}\n",i+=n()},onDone:function(){return n(t._args[0])}})}}]),r}(Lx);new Zx;ax("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),bx);var ej=wx,tj=function(e,t){return t},rj=function(){function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;o(this,e),this._map=new Map,this.name=r,this._factory=t,this._interceptors=[]}return s(e,[{key:"get",value:function(e){return this._map.get(e)}},{key:"for",value:function(e){var t=this.get(e);if(t!==undefined)return t;for(var r=this._factory(e),n=this._interceptors,i=0;i<n.length;i++)r=n[i].factory(e,r);return this._map.set(e,r),r}},{key:"intercept",value:function(e){this._interceptors.push(Object.assign({factory:tj},e))}}]),e}();rj.prototype.tap=ej.deprecate((function(e,t,r){return this["for"](e).tap(t,r)}),"HookMap#tap(key,…) is deprecated. Use HookMap#for(key).tap(…) instead."),rj.prototype.tapAsync=ej.deprecate((function(e,t,r){return this["for"](e).tapAsync(t,r)}),"HookMap#tapAsync(key,…) is deprecated. Use HookMap#for(key).tapAsync(…) instead."),rj.prototype.tapPromise=ej.deprecate((function(e,t,r){return this["for"](e).tapPromise(t,r)}),"HookMap#tapPromise(key,…) is deprecated. Use HookMap#for(key).tapPromise(…) instead.");var nj=Fx;"object"===("undefined"==typeof window?"undefined":i(window))&&(window.BeiDouData_APP_JS_Bridge=null);var ij,oj=function(){function e(t){o(this,e),this.hashEvent=null,this.para_default=HS,this.readyState=new KS,this.debug=new GS(this),this.heatmap=new vE(this),this.pageleave=ne
7w mE(this),this.heatmapDelayTime=null,this.info=new VS(this),this.singlePage=new oO(this),this.cookie=new XS(this),this.beidouNewUser=new ZS(this),this.store=new hP(this),this.commonWays=new yE(this),this.beidouEvent=new wE(this),this.batchSend=new kE(this),this.dataSend=new SE(this),this.sendState=new xE(this),this.postMessage=new jE(this),this.bridge=new NE(this),this.autoExposure=new nO(this),this.eventListener=new iO(this),this.trail=new sO(this),this.webstayHeartbeat=new aO(this),this.track=this.trail.track.bind(this.trail),this.trailSign=this.trail.trailSign.bind(this.trail),this.profile=new uO(this),this.setProfile=this.profile.setProfile.bind(this.profile),this.setOnceProfile=this.profile.setOnceProfile.bind(this.profile),this.appendProfile=this.profile.appendProfile.bind(this.profile),this.incrementProfile=this.profile.incrementProfile.bind(this.profile),this.unsetProfile=this.profile.unsetProfile.bind(this.profile),this.loginMethod=new cO(this),this.signin=this.loginMethod.signin.bind(this.loginMethod),this.signup=this.loginMethod.signup.bind(this.loginMethod),this.signout=this.loginMethod.signout.bind(this.loginMethod),this.log=new lO(this).log.bind({beidou:this}),this.pageview_time=null,this.plugins={caniuse:function(e){return Boolean(this[e])},connectPlugin:function(e){if(this[e])return this[e];console.log("插件资源".concat(e,"尚未初始化,请检查配置"))}},this.hooks={beforeSetup:new nj(["context","callback"]),afterSetup:new nj(["context","callback"]),beforeTrack:new nj(["context","callback"]),beforeAssemble:new nj(["context","callback"]),beforeSend:new nj(["context","callback"]),willSend:new nj(["context","callback"]),afterSend:new nj(["context","callback"]),eventHooks:new nj(["context"])},this.init(t)}return s(e,[{key:"initialPlugin",value:function(e){var t=this;e.plugin&&e.plugin.forEach((function(e){var r=e.name,n=ug(e.params)?e.params:{};NS.call(t,r,n)}))}},{key:"usePlugin",value:function(e,t){var r=ug(t)?t:{};NS.call(this,e,r)}},{key:"initPara",value:function(e){this.para=e||this.para||{};var t,r={};if(ug(this.para.is_track_latest))for(var n in this.para.is_track_latest)r["latest_"+n]=this.para.is_track_latest[n];for(t in this.para.preset_properties=dg({},this.para_default.preset_properties,r,this.para.preset_properties||{}),this.para_default)void 0===this.para[t]&&(this.para[t]=this.para_default[t]);this.para_default.heatmap&&this.para_default.heatmap.collect_elements&&"undefined"==typeof this.para.heatmap.collect_elements&&(this.para.heatmap=this.para.heatmap||{},this.para.heatmap.collect_elements=this.para_default.heatmap.collect_elements),"string"==typeof this.para.server_url&&"://"===this.para.server_url.slice(0,3)&&(this.para.server_url=location.protocol+this.para.server_url),"string"==typeof this.para.web_url&&"://"===this.para.web_url.slice(0,3)&&(this.para.web_url=location.protocol+this.para.web_url),"image"!==this.para.send_type&&"ajax"!==this.para.send_type&&"beacon"!==this.para.send_type&&(this.para.send_type="image"),this.bridge.initPara(),this.bridge.initState();var o={datasend_timeout:6e3,send_interval:6e3,one_send_max_length:6};LS.isSupport()&&yS()&&"object"===i(LS)?!0===this.para.batch_send?this.para.batch_send=dg({},o):"object"===i(this.para.batch_send)&&(this.para.batch_send=dg({},o,this.para.batch_send)):this.para.batch_send=!1;var a=US,s=$S,u=qS,c=JS;if("object"===i(this.para.source_type)&&(this.para.source_type.utm=rg(this.para.source_type.utm)?this.para.source_type.utm.concat(a):a,this.para.source_type.search=rg(this.para.source_type.search)?this.para.source_type.search.concat(s):s,this.para.source_type.social=rg(this.para.source_type.social)?this.para.source_type.social.concat(u):u,this.para.source_type.keyword=ug(this.para.source_type.keyword)?dg(c,this.para.source_type.keyword):c),ug(this.para.heatmap)&&(this.para.heatmap.clickmap=this.para.heatmap.clickmap||"default",this.para.heatmap.scroll_notice_map=this.para.heatmap.scroll_notice_map||"default",this.para.heatmap.scroll_delay_time=this.para.heatmap.scroll_delay_time||4e3,this.para.heatmap.scroll_event_duration=this.para.heatmap.scroll_event_duration||18e3,this.para.heatmap.renderRefreshTime=this.para.heatmap.renderRefreshTime||1e3,this.para.heatmap.loadTimeout=this.para.heatmap.loadTimeout||1e3),"object"===i(this.para.server_url)&&this.para.server_url.length)for(t=0;t<this.para.server_url.length;t++)/sa\.gif[^\/]*$/.test(this.para.server_url[t])||(this.para.server_url[t]=this.para.server_url[t].replace(/\/sa$/,"/sa.gif").replace(/(\/sa)(\?[^\/]+)$/,"/sa.gif$2"));else/sa\.gif[^\/]*$/.test(this.para.server_url)||(this.para.server_url=this.para.server_url.replace(/\/sa$/,"/sa.gif").replace(/(\/sa)(\?[^\/]+)$/,"/sa.gif$2"));"string"==typeof this.para.server_url&&(this.para.debug_mode_url=this.para.debug_mode_url||this.para.server_url.replace("sa.gif","debug")),!0===this.para.noCache?this.para.noCache="?"+(new Date).getTime():this.para.noCache="",this.para.callback_timeout>this.para.datasend_timeout&&(this.para.datasend_timeout=this.para.callback_timeout),this.para.callback_timeout>this.para.queue_timeout&&(this.para.queue_timeout=this.para.callback_timeout),this.para.queue_timeout>this.para.datasend_timeout&&(this.para.datasend_timeout=this.para.queue_timeout),ug(this.para.post_message)?(this.para.post_message.is_track=!1!==this.para.post_message.is_track,this.para.post_message.traget_origin=this.para.post_message.traget_origin||"*"):this.para.post_message={
7is_track:!0,traget_origin:"*"}}},{key:"setPreConfig",value:function(e){this.para=e.para,this._q=e._q}},{key:"setInitVar",value:function(){this._t=this._t||Number(new Date),this.lib_version="5.0.4",this.is_first_visitor=!1,this.source_channel_standard="utm_source utm_medium utm_campaign utm_content utm_term utm_code utm_id"}},{key:"tellUpperMessage",value:function(){console.log("post msg beidou_sdk_init",window.location.href),window.opener&&window.opener.postMessage?window.opener.postMessage({type:"beidou_sdk_init"},"*"):window.parent&&window.parent.postMessage&&window.parent.postMessage({type:"beidou_sdk_init"},"*")}},{key:"beidouUserAnalysisModuleListener",value:function(){var e=this;window.addEventListener("message",(function(t){var r=t.data||{};"init_beidou_analysis_module"===r.type?(console.log("receive init_beidou_analysis_module",window.location.href),e.heatmapRender||e.eventRender||(e.hooks.eventHooks.call({name:"initFlowAnalysis",event:t,beidou:e}),e.UpperWindowEvent=t,window._Beidou_Ext_MD_Including=[].concat(h(window._Beidou_Ext_MD_Including),["analysis_module"]),e.lowerWindowEvent&&e.lowerWindowEvent.length>0&&e.lowerWindowEvent.forEach((function(e){e.init||(console.log("post to iframe init_beidou_analysis_module: ",e.event.origin),e.event.source.postMessage({type:"init_beidou_analysis_module"},e.origin),e.init=!0)})))):"beidou_sdk_init"===r.type&&t&&t.source&&t.source.postMessage&&(console.log("receive beidou_sdk_init: ",t.origin),console.log(window._Beidou_Ext_MD_Including),window._Beidou_Ext_MD_Including.includes("analysis_module")&&t.source.postMessage({type:"init_beidou_analysis_module"},t.origin),e.lowerWindowEvent=[].concat(h(e.lowerWindowEvent||[]),[{event:t,init:window._Beidou_Ext_MD_Including.includes("analysis_module")}]))})),this.tellUpperMessage()}},{key:"dealHookCallback",value:function(e,t){var r,n=t,i=this.cookie,o=this.store,a=this.log,s=this.eventListener,u=this.plugins,c=this.trail,l=this.call,d=this.commonWays,f=this.loginMethod;return n.beidou={cookie:i,store:o,log:a,eventListener:s,trail:c,call:l,commonWays:d,loginMethod:f,plugins:{caniuse:u.caniuse,connectPlugin:u.connectPlugin}},e.call(t,(function(e){r=e})),r}},{key:"init",value:function(e){var t=this;if(this.readyState&&this.readyState.state&&this.readyState.state>=2)return!1;if(!ug(e))return console.error("初始化参数不能为空"),!1;if(!ng(e.app_id))return console.error("应用id未设置"),!1;if(e.environment)switch(e.environment){case"development":case"test":case"preview":this.para_default.server_url=MS}if(this.initialPlugin(e),!1===this.dealHookCallback(this.hooks.beforeSetup,{config:zS(e,this.para_default)}))return!1;window._Beidou_Ext_MD_Including=[],this.plugins.caniuse("FlowAnalysisPlugin")&&this.beidouUserAnalysisModuleListener(),this.setInitVar(),this.readyState.setState(2),this.initPara(e);try{this.beidouEvent.initIframeId()}catch(o){console.log(o)}this.autoExposure.init();var r=this;function n(){var e=null,t=null;window.beidoudata_app_js_bridge_call_js=function(r){!function(r){ag(e=r)&&(e=JSON.parse(e)),t&&(t(e),t=null,e=null)}(r)},window[r.para.global_prefix+"dispatchEvent"]=r.dispatchEvent,r.getAppStatus=function(r){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,"object"===i(window.BeidouData_APP_JS_Bridge)&&window.BeidouData_APP_JS_Bridge.beidoudata_call_app&&(e=window.BeidouData_APP_JS_Bridge.beidoudata_call_app(),ag(e)&&(e=JSON.parse(e))),!r)return e;null===e?t=r:(r(e),e=null)}}if(r.eventListener.addEvent(window,"pageshow",(function(e){if(e)try{e.persisted&&r.call("autoTrail",dg({_url:location.href,_referrer:fS(null,r)}))}catch(o){}})),this.heatmap.prepare((function(){t.getAppStatus=n(),t.info.initPage(),t.para.is_track_single_page&&t.eventListener.addSinglePageEvent((function(e){t.commonWays.isPushState=!0;var r=function(r){var n=r||{};e!==location.href&&(t.info.pageProp.referrer=e,t.call("autoTrail",dg({_url:location.href,_referrer:e},n)))};if("boolean"==typeof t.para.is_track_single_page)r();else if("function"==typeof t.para.is_track_single_page){var n=t.para.is_track_single_page();ug(n)?r(n):!0===n&&r()}}
7)),t.para.batch_send&&t.batchSend.batchInterval(),t.store.init(),t.setStoreInitVar(),t.readyState.setState(3),t._q&&rg(t._q)&&t._q.length>0&&lg(t._q,(function(e){t[e[0]].apply(t,Array.prototype.slice.call(e[1]))})),function(e){e.heatmapDelayTime=_E({timeout:1e3,func:function(){if(new Date-e.current_time<100)return!1;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return gE.bind(this).apply(void 0,[e].concat(r))}}),e.heatmapDelayTime.current_time=new Date}(t)})),this.heatmap.autoTrailByAttr(),this.para.no_app_event||this.heatmap.trackByAppEvent(),this.pageleave.init(this),this.webstayHeartbeat.init(),!1===this.dealHookCallback(this.hooks.afterSetup,{config:zS(e,this.para_default)}))return!1;this.is_first_visitor&&!this.store.getFirstVisitProps().first_visit_time&&this.store.setFirstVisitProps()}},{key:"checkPage",value:function(){return!(this.para.scrollmap&&sg(this.beidou.para.scrollmap.collect_url)&&!this.para.scrollmap.collect_url())}},{key:"listenPageState",value:function(e){var t=this;({visibleHandler:sg(e.visible)?e.visible:function(){},hiddenHandler:sg(e.hidden)?e.hidden:function(){},visibilityChange:null,hidden:null,isSupport:function(){return"undefined"!=typeof document[this.hidden]},init:function(){"undefined"!=typeof document.hidden?(this.hidden="hidden",this.visibilityChange="visibilitychange"):"undefined"!=typeof document.mozHidden?(this.hidden="mozHidden",this.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.msHidden?(this.hidden="msHidden",this.visibilityChange="msvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(this.hidden="webkitHidden",this.visibilityChange="webkitvisibilitychange"),this.listen()},listen:function(){if(this.isSupport()){var e=this;t.eventListener.addEvent(document,this.visibilityChange,(function(){document[e.hidden]?e.hiddenHandler():e.visibleHandler()}),1)}else t.eventListener.addEvent(window,"focus",this.visibleHandler),t.eventListener.addEvent(window,"blur",this.hiddenHandler)}}).init()}},{key:"setStoreInitVar",value:function(){this.store.getDistinctId()?this.store.set("sdk_injection",this.para.sdkInjection||"none"):console.error("请先初始化北斗JS SDK store")}},{key:"call",value:function(){if(this.readyState.getState()){var e=Array.prototype.slice.call(arguments),t=e[0],r=e.slice(1);if("string"==typeof t&&this.commonWays[t])return this.commonWays[t].apply(this.commonWays,r);"function"==typeof t?t.apply(this,r):this.log("call方法中没有这个功能"+e[0])}else console.error("请先初始化北斗JS SDK")}},{key:"registerUserProps",value:function(e,t){this.readyState.getState()?this.beidouEvent.check({propertiesMust:e})&&this.beidouEvent.send({type:"profile_set",properties:e},t):console.error("请先初始化北斗JS SDK")}},{key:"registerOnceUserProps",value:function(e,t){this.readyState.getState()?this.beidouEvent.check({propertiesMust:e})&&this.beidouEvent.send({type:"set_once_profile",ops_profile:e},t):console.error("请先初始化北斗JS SDK")}},{key:"identify",value:function(e,t){if(this.readyState.getState()){var r=e;"number"==typeof r&&(r=String(r));var n=this.store.getFirstId();if(void 0===r)if(n)this.store.set("first_id",Ng());else{var i=Ng();this.store.set("_unique_id",i)}else this.beidouEvent.check({_unique_id:r})?!0===t?n?this.store.set("first_id",r):this.store.set("_unique_id",r):n?this.store.change("first_id",r):this.store.change("_unique_id",r):this.log("identify的参数必须是字符串")}else console.error("请先初始化北斗JS SDK")}},{key:"registerCommonProps",value:function(e){this.readyState.getState()?this.beidouEvent.check({properties:e})?dg(this.info.currentProps,e):this.log("register输入的参数有误"):console.error("请先初始化北斗JS SDK")}},{key:"clearAllRegister",value:function(e){this.readyState.getState()?this.store.clearAllProps(e):console.error("请先初始化北斗JS SDK")}},{key:"registerPageCommonProps",value:function(e){if(this.readyState.getState())if(this.beidouEvent.check({properties:e})){var t=window.location.href;if(!this.para.is_hash_single_page){var n=window.location.href.indexOf("#");n>0&&(t=window.location.href.slice(0,n))}var i=this.info.currentPageProps[t];i?dg(i,r({},e)):i=r({},e),dg(this.info.currentPageProps,u({},t,r({},i)))}else this.log("register输入的参数有误");else console.error("请先初始化北斗JS SDK")}},{key:"removePageCommonProps",value:function(e){var t=this,r=this.info.currentPageProps[location.href];if(!e&&r)delete this.info.currentPageProps[location.href];else if("string"==typeof e&&r&&ug(r))delete this.info.currentPageProps[location.href][e];else{if(!(rg(e)&&r&&ug(r)))throw new Error("".concat(e,", 参数错误"));e.forEach((function(e){if("string"!=typeof e||!r[e])throw new Error("".concat(e,", 参数错误"));delete t.info.currentPageProps[location.href][e]}))}}},{key:"unRegisterPageCommonProps",value:function(e){if(this.readyState.getState())try{this.removePageCommonProps(e)}catch(lj){this.log(lj)}else console.error("请先初始化北斗JS SDK")}},{key:"register",value:function(e){this.readyState.getState()?this.beidouEvent.check({properties:e})?this.store.setProps(e):this.log("register输入的参数有误"):console.error("请先初始化北斗JS SDK")}},{key:"registerPropsOnce",value:function(e){this.readyState.getState()?this.beidouEvent.check({properties:e})?this.store.setPropsOnce(e):this.log("registerPropsOnce输入的参数有误"):console.error("请先初始化北斗JS SDK")}},{key:"registerSession",value:function(e){this.beidouEvent.check({properties:e})?this.store.setSessionProps(e):this.log("registerSession输入的参数有误")}},{key:"registerSessionOnce",value:function(e){this.beidouEvent.check({properties:e})?this.store.setSessionPropsOnce(e):this.log("registerSessionOnce输入的参数有误")}},{key:"getPresetProperties",value:function(){if(this.readyState.getState()){var e=this,t={_referrer:this.info.pageProp.referrer||"",_referrer_host:this.info.pageProp.referrer?bS(this.info.pageProp.referrer):"",_url:location.href,_url_path:location.pathname,_title:document.title||"",_distinct_id:this.store.getDistinctId()},r=dg({},this.info.properties(),this.store.getProps(),function(){var t=e.info.campaignParams(),r={};for(var n in t)-1!==(" "+e.source_channel_standard+" ").indexOf(" "+n+" ")?r["_"+n]=t[n]:r[n]=t[n];return r}(),t);return this.para.preset_properties.latest_referrer&&this.para.preset_properties.latest_referrer_host&&(r._latest_referrer_host=""===r._latest_referrer?"":bS(r._latest_referrer)),r}console.error("请先初始化北斗JS SDK")}},{key:"dispatchEvent",value:function(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:window,n=arguments.length>3?arguments[3]:undefined,i=n||CustomEvent||Event;return r.dispatchEvent(new i(e,t))}},{key:"bindid",value:function(e){this.readyState.getState()?ug(e)&&!cg(e)&&(this.store.setIds(e),this.beidouEvent.send({type:"bindid",ops_ids:e})):console.error("请先初始化北斗JS SDK")}},{key:"unbindid",value:function(e){this.readyState.getState()?(ug(e)&&!cg(e)&&this.beidouEvent.send({type:"unbindid",ops_ids:e}
7),this.store.setUnbindIds(e)):console.error("请先初始化北斗JS SDK")}}]),e}(),aj=!1;"undefined"==typeof window&&(aj=!0);var sj={__empty__:!0};["track","asyncTrack","call","clearAllRegister","trackNextTick","register","registerCommonProps","registerPageCommonProps","unRegisterPageCommonProps","registerPropsOnce","registerUserProps","registerOnceUserProps","trailSign","signin","signout","signup","dispatchEvent","usePlugin","setProfile","setOnceProfile","incrementProfile","unsetProfile","bindid","unbindid"].forEach((function(e){sj[e]=function(){var t;if(ij&&"function"==typeof ij[e])return(t=ij)[e].apply(t,arguments);console.warn("sdk未初始化")}}));ij||(ij=sj);var uj=ij,cj=ij;e.beidou=uj,e["default"]=cj,e.setup=function(e){var t,r=(t=new RegExp("(?:; )?fed-env=([^;]*)"),"undefined"!=typeof document&&t.test(document.cookie)?decodeURIComponent(RegExp.$1):"undefined"!=typeof process&&process.env?process.env.NODE_CONFIG_ENV||process.env.NODE_ENV:"");return r&&(e.environment=r),aj?sj:("object"!==i(window[BS])||window[BS].__empty__?window[BS]=ij=new oj(e):ij=window[BS],ij)},Object.defineProperty(e,"__esModule",{value:!0})}(this.BeidouData=this.BeidouData||{});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.