gltracker.min.js
17.9 KB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.gltracker=e()}(this,function(){"use strict";function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=e(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),r=e(function(t){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)}),o=(r.version,function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}),i=function(t){return"object"==typeof t?null!==t:"function"==typeof t},a=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t},u=function(t){try{return!!t()}catch(t){return!0}},c=!u(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),f=n.document,s=i(f)&&i(f.createElement),l=function(t){return s?f.createElement(t):{}},p=!c&&!u(function(){return 7!=Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a}),h=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},d=Object.defineProperty,y={f:c?Object.defineProperty:function(t,e,n){if(a(t),e=h(e,!0),a(n),p)try{return d(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},g=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v=c?function(t,e,n){return y.f(t,e,g(1,n))}:function(t,e,n){return t[e]=n,t},m={}.hasOwnProperty,b=function(t,e){return m.call(t,e)},S=function(t,e,i){var a,u,c,f=t&S.F,s=t&S.G,l=t&S.S,p=t&S.P,h=t&S.B,d=t&S.W,y=s?r:r[e]||(r[e]={}),g=y.prototype,m=s?n:l?n[e]:(n[e]||{}).prototype;for(a in s&&(i=e),i)(u=!f&&m&&void 0!==m[a])&&b(y,a)||(c=u?m[a]:i[a],y[a]=s&&"function"!=typeof m[a]?i[a]:h&&u?o(c,n):d&&m[a]==c?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):p&&"function"==typeof c?o(Function.call,c):c,p&&((y.virtual||(y.virtual={}))[a]=c,t&S.R&&g&&!g[a]&&v(g,a,c)))};S.F=1,S.G=2,S.S=4,S.P=8,S.B=16,S.W=32,S.U=64,S.R=128;var _,O=S,w={}.toString,j=function(t){return w.call(t).slice(8,-1)},k=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==j(t)?t.split(""):Object(t)},M=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},T=function(t){return k(M(t))},P=Math.ceil,E=Math.floor,L=function(t){return isNaN(t=+t)?0:(t>0?E:P)(t)},D=Math.min,I=Math.max,x=Math.min,F=e(function(t){var e=n["__core-js_shared__"]||(n["__core-js_shared__"]={});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),C=0,N=Math.random(),H=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++C+N).toString(36))},A=F("keys"),R=function(t){return A[t]||(A[t]=H(t))},Y=(_=!1,function(t,e,n){var r,o,i=T(t),a=(r=i.length)>0?D(L(r),9007199254740991):0,u=function(t,e){return(t=L(t))<0?I(t+e,0):x(t,e)}(n,a);if(_&&e!=e){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((_||u in i)&&i[u]===e)return _||u||0;return!_&&-1}),J=R("IE_PROTO"),W=function(t,e){var n,r=T(t),o=0,i=[];for(n in r)n!=J&&b(r,n)&&i.push(n);for(;e.length>o;)b(r,n=e[o++])&&(~Y(i,n)||i.push(n));return i},G="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),V=Object.keys||function(t){return W(t,G)},U={f:Object.getOwnPropertySymbols},q={f:{}.propertyIsEnumerable},K=function(t){return Object(M(t))},z=Object.assign,B=!z||u(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=z({},t)[n]||Object.keys(z({},e)).join("")!=r})?function(t,e){for(var n=K(t),r=arguments.length,o=1,i=U.f,a=q.f;r>o;)for(var u,f=k(arguments[o++]),s=i?V(f).concat(i(f)):V(f),l=s.length,p=0;l>p;)u=s[p++],c&&!a.call(f,u)||(n[u]=f[u]);return n}:z;O(O.S+O.F,"Object",{assign:B});var Q=r.Object.assign,X=e(function(t){t.exports={default:Q,__esModule:!0}}),Z=t(X),$=t(e(function(t,e){e.__esModule=!0;var n,r=(n=X)&&n.__esModule?n:{default:n};e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}})),tt=r.JSON||(r.JSON={stringify:JSON.stringify}),et=function(t){return tt.stringify.apply(tt,arguments)},nt=t(e(function(t){t.exports={default:et,__esModule:!0}})),rt=v,ot=c?Object.defineProperties:function(t,e){a(t);for(var n,r=V(e),o=r.length,i=0;o>i;)y.f(t,n=r[i++],e[n]);return t},it=n.document,at=it&&it.documentElement,ut=R("IE_PROTO"),ct=function(){},ft=function(){var t,e=l("iframe"),n=G.length;for(e.style.display="none",at.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),ft=t.F;n--;)delete ft.prototype[G[n]];return ft()},st=Object.create||function(t,e){var n;return null!==t?(ct.prototype=a(t),n=new ct,ct.prototype=null,n[ut]=t):n=ft(),void 0===e?n:ot(n,e)},lt=e(function(t){var e=F("wks"),r=n.Symbol,o="function"==typeof r;(t.exports=function(t){return e[t]||(e[t]=o&&r[t]||(o?r:H)("Symbol."+t))}).store=e}),pt=y.f,ht=lt("toStringTag"),dt=function(t,e,n){t&&!b(t=n?t:t.prototype,ht)&&pt(t,ht,{configurable:!0,value:e})},yt={};v(yt,lt("iterator"),function(){return this});var gt,vt=function(t,e,n){t.prototype=st(yt,{next:g(1,n)}),dt(t,e+" Iterator")},mt=R("IE_PROTO"),bt=Object.prototype,St=Object.getPrototypeOf||function(t){return t=K(t),b(t,mt)?t[mt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?bt:null},_t=lt("iterator"),Ot=!([].keys&&"next"in[].keys()),wt=function(t,e,n,r,o,i,a){vt(n,e,r);var u,c,f,s=function(t){if(!Ot&&t in d)return d[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},l=e+" Iterator",p="values"==o,h=!1,d=t.prototype,y=d[_t]||d["@@iterator"]||o&&d[o],g=y||s(o),m=o?p?s("entries"):g:void 0,b="Array"==e&&d.entries||y;if(b&&(f=St(b.call(new t)))!==Object.prototype&&f.next&&dt(f,l,!0),p&&y&&"values"!==y.name&&(h=!0,g=function(){return y.call(this)}),a&&(Ot||h||!d[_t])&&v(d,_t,g),o)if(u={values:p?g:s("values"),keys:i?g:s("keys"),entries:m},a)for(c in u)c in d||rt(d,c,u[c]);else O(O.P+O.F*(Ot||h),e,u);return u},jt=(gt=!0,function(t,e){var n,r,o=String(M(t)),i=L(e),a=o.length;return i<0||i>=a?gt?"":void 0:(n=o.charCodeAt(i))<55296||n>56319||i+1===a||(r=o.charCodeAt(i+1))<56320||r>57343?gt?o.charAt(i):n:gt?o.slice(i,i+2):r-56320+(n-55296<<10)+65536});wt(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=jt(e,n),this._i+=t.length,{value:t,done:!1})});for(var kt=function(t,e){return{value:e,done:!!t}},Mt=(wt(Array,"Array",function(t,e){this._t=T(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,kt(1)):kt(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),lt("toStringTag")),Tt="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Pt=0;Pt<Tt.length;Pt++){var Et=Tt[Pt],Lt=n[Et],Dt=Lt&&Lt.prototype;Dt&&!Dt[Mt]&&v(Dt,Mt,Et)}var It={f:lt},xt=It.f("iterator"),Ft=e(function(t){t.exports={default:xt,__esModule:!0}});t(Ft);var Ct=e(function(t){var e=H("meta"),n=y.f,r=0,o=Object.isExtensible||function(){return!0},a=!u(function(){return o(Object.preventExtensions({}))}),c=function(t){n(t,e,{value:{i:"O"+ ++r,w:{}}})},f=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!b(t,e)){if(!o(t))return"F";if(!n)return"E";c(t)}return t[e].i},getWeak:function(t,n){if(!b(t,e)){if(!o(t))return!0;if(!n)return!1;c(t)}return t[e].w},onFreeze:function(t){return a&&f.NEED&&o(t)&&!b(t,e)&&c(t),t}}}),Nt=(Ct.KEY,Ct.NEED,Ct.fastKey,Ct.getWeak,Ct.onFreeze,y.f),Ht=function(t){var e=r.Symbol||(r.Symbol={});"_"==t.charAt(0)||t in e||Nt(e,t,{value:It.f(t)})},At=Array.isArray||function(t){return"Array"==j(t)},Rt=G.concat("length","prototype"),Yt={f:Object.getOwnPropertyNames||function(t){return W(t,Rt)}},Jt=Yt.f,Wt={}.toString,Gt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vt={f:function(t){return Gt&&"[object Window]"==Wt.call(t)?function(t){try{return Jt(t)}catch(t){return Gt.slice()}}(t):Jt(T(t))}},Ut=Object.getOwnPropertyDescriptor,qt={f:c?Ut:function(t,e){if(t=T(t),e=h(e,!0),p)try{return Ut(t,e)}catch(t){}if(b(t,e))return g(!q.f.call(t,e),t[e])}},Kt=Ct.KEY,zt=qt.f,Bt=y.f,Qt=Vt.f,Xt=n.Symbol,Zt=n.JSON,$t=Zt&&Zt.stringify,te=lt("_hidden"),ee=lt("toPrimitive"),ne={}.propertyIsEnumerable,re=F("symbol-registry"),oe=F("symbols"),ie=F("op-symbols"),ae=Object.prototype,ue="function"==typeof Xt&&!!U.f,ce=n.QObject,fe=!ce||!ce.prototype||!ce.prototype.findChild,se=c&&u(function(){return 7!=st(Bt({},"a",{get:function(){return Bt(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=zt(ae,e);r&&delete ae[e],Bt(t,e,n),r&&t!==ae&&Bt(ae,e,r)}:Bt,le=function(t){var e=oe[t]=st(Xt.prototype);return e._k=t,e},pe=ue&&"symbol"==typeof Xt.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Xt},he=function(t,e,n){return t===ae&&he(ie,e,n),a(t),e=h(e,!0),a(n),b(oe,e)?(n.enumerable?(b(t,te)&&t[te][e]&&(t[te][e]=!1),n=st(n,{enumerable:g(0,!1)})):(b(t,te)||Bt(t,te,g(1,{})),t[te][e]=!0),se(t,e,n)):Bt(t,e,n)},de=function(t,e){a(t);for(var n,r=function(t){var e=V(t),n=U.f;if(n)for(var r,o=n(t),i=q.f,a=0;o.length>a;)i.call(t,r=o[a++])&&e.push(r);return e}(e=T(e)),o=0,i=r.length;i>o;)he(t,n=r[o++],e[n]);return t},ye=function(t){var e=ne.call(this,t=h(t,!0));return!(this===ae&&b(oe,t)&&!b(ie,t))&&(!(e||!b(this,t)||!b(oe,t)||b(this,te)&&this[te][t])||e)},ge=function(t,e){if(t=T(t),e=h(e,!0),t!==ae||!b(oe,e)||b(ie,e)){var n=zt(t,e);return!n||!b(oe,e)||b(t,te)&&t[te][e]||(n.enumerable=!0),n}},ve=function(t){for(var e,n=Qt(T(t)),r=[],o=0;n.length>o;)b(oe,e=n[o++])||e==te||e==Kt||r.push(e);return r},me=function(t){for(var e,n=t===ae,r=Qt(n?ie:T(t)),o=[],i=0;r.length>i;)!b(oe,e=r[i++])||n&&!b(ae,e)||o.push(oe[e]);return o};ue||(rt((Xt=function(){if(this instanceof Xt)throw TypeError("Symbol is not a constructor!");var t=H(arguments.length>0?arguments[0]:void 0),e=function(n){this===ae&&e.call(ie,n),b(this,te)&&b(this[te],t)&&(this[te][t]=!1),se(this,t,g(1,n))};return c&&fe&&se(ae,t,{configurable:!0,set:e}),le(t)}).prototype,"toString",function(){return this._k}),qt.f=ge,y.f=he,Yt.f=Vt.f=ve,q.f=ye,U.f=me,It.f=function(t){return le(lt(t))}),O(O.G+O.W+O.F*!ue,{Symbol:Xt});for(var be="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Se=0;be.length>Se;)lt(be[Se++]);for(var _e=V(lt.store),Oe=0;_e.length>Oe;)Ht(_e[Oe++]);O(O.S+O.F*!ue,"Symbol",{for:function(t){return b(re,t+="")?re[t]:re[t]=Xt(t)},keyFor:function(t){if(!pe(t))throw TypeError(t+" is not a symbol!");for(var e in re)if(re[e]===t)return e},useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),O(O.S+O.F*!ue,"Object",{create:function(t,e){return void 0===e?st(t):de(st(t),e)},defineProperty:he,defineProperties:de,getOwnPropertyDescriptor:ge,getOwnPropertyNames:ve,getOwnPropertySymbols:me});var we=u(function(){U.f(1)});O(O.S+O.F*we,"Object",{getOwnPropertySymbols:function(t){return U.f(K(t))}}),Zt&&O(O.S+O.F*(!ue||u(function(){var t=Xt();return"[null]"!=$t([t])||"{}"!=$t({a:t})||"{}"!=$t(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(i(e)||void 0!==t)&&!pe(t))return At(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!pe(e))return e}),r[1]=e,$t.apply(Zt,r)}}),Xt.prototype[ee]||v(Xt.prototype,ee,Xt.prototype.valueOf),dt(Xt,"Symbol"),dt(Math,"Math",!0),dt(n.JSON,"JSON",!0),Ht("asyncIterator"),Ht("observable");var je=r.Symbol,ke=e(function(t){t.exports={default:je,__esModule:!0}});t(ke);var Me=t(e(function(t,e){e.__esModule=!0;var n=i(Ft),r=i(ke),o="function"==typeof r.default&&"symbol"==typeof n.default?function(t){return typeof t}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":typeof t};function i(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof r.default&&"symbol"===o(n.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":void 0===t?"undefined":o(t)}})),Te={},Pe={},Ee={server_url:"http://tracking-backend.test.glsx.com/track",send_timeout:6e3,max_length:10,show_log:!0},Le={};var De={};function Ie(t){return t<10?"0"+t:t}De.dateFormat=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss",n=new Date(t),r={YYYY:n.getFullYear(),MM:Ie(n.getMonth()+1),DD:Ie(n.getDate()),HH:Ie(n.getHours()),mm:Ie(n.getMinutes()),ss:Ie(n.getSeconds())};for(var o in r)e=e.replace(o,r[o]);return e},Pe.store={storageInfo:null,store_queue:[],getStorage:function(){return this.storageInfo?this.storageInfo:(this.storageInfo=Ce("tracker_prepare_data")||"",this.storageInfo)},mem:{mdata:[],getLength:function(){return this.mdata.length},add:function(t){this.mdata.push(t)},clear:function(t){this.mdata.splice(0,t)}},init:function(){var t=this.getStorage();t&&this.save(t)},save:function(t){Fe("tracker_prepare_data",t)}};var xe={info:function(){if(Ee.show_log&&"object"===("undefined"==typeof console?"undefined":Me(console))&&console.log)try{if(3===arguments.length)return;if(2===arguments.length)return;if(1===arguments.length)return}catch(t){}}};Te.buildData=function(t){var e={},n=$({event:t.event},t.properties);if("pv"==t.event){var r=$({intoTime:De.dateFormat(new Date),pageUrl:window.location.href},n);Z(e,r),Fe("pageView",nt(r))}else{var o=Ce("pageView")||null;n.create_time=De.dateFormat(new Date),e.exta=nt(n),Z(e,JSON.parse(o))}return Z(e,Le),e},Te.processData=function(t){return t},Te.batchTrackData=function(t){return function(t){return t=nt(t),encodeURIComponent(t)}(t)};var Fe=function(t,e){var n=function(){localStorage.setItem(t,encodeURIComponent(nt(e)))};try{n()}catch(t){xe.info("set Storage fail --",t);try{n()}catch(t){xe.info("set Storage fail again --",t)}}},Ce=function(t){var e="";try{e=localStorage.getItem(t)}catch(n){try{e=localStorage.getItem(t)}catch(t){xe.info("getStorage fail")}}return e=JSON.parse(decodeURIComponent(e))},Ne={getData:function(t){var e=Ce("tracker_prepare_data");Ne.deleteAesData(e||[]),t&&t()},deleteAesData:function(t){var e=[];t.length>0&&t.forEach(function(t){e.push(t)}),Pe.store.mem.mdata=e.concat(Pe.store.mem.mdata)}},He={dataHasSend:!0,dataHasChange:!1,syncStorage:!1,failTime:0,init:function(){Ne.getData(He.syncStorageState),He.batchInterval()},syncStorageState:function(){He.syncStorage=!0},batchInterval:function(){var t=this;!function e(){setTimeout(function(){t.batchWrite(),e()},500)}(),function e(){setTimeout(function(){t.batchSend(),e()},Ee.send_timeout*Math.pow(2,t.failTime))}()},is_first_batch_write:!0,batchWrite:function(){var t=this;this.dataHasChange&&(this.is_first_batch_write&&(this.is_first_batch_write=!1,setTimeout(function(){t.batchSend()},1e3)),this.dataHasChange=!1,this.syncStorage&&Fe("tracker_prepare_data",Pe.store.mem.mdata))},batchSend:function(){if(this.dataHasSend){var t,e=void 0,n=Pe.store.mem.mdata;(t=(e=n.length>=100?n.slice(0,100):n).length)>0&&(this.dataHasSend=!1,this.webrequest({data:e,len:t,success:this.batchRemove.bind(this),fail:this.sendFail.bind(this)}))}},batchRemove:function(t){Pe.store.mem.clear(t),this.dataHasSend=!0,this.dataHasChange=!0,this.batchWrite(),this.failTime=0},sendFail:function(){this.dataHasSend=!0,this.failTime++},webrequest:function(t){if(t.data.length>0){var e=Te.batchTrackData(t.data);xe.info("上报数据监控:",decodeURIComponent(e)),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],n={info:t};fetch(Ee.server_url,{method:"post",body:nt(n),headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(t){return t.json()}).then(function(t){200!=t.code?e.fail():e.success(e.len)}).catch(function(){e.fail()})}(JSON.parse(decodeURIComponent(e)),t)}else t.success(t.len)},send:function(t){this.dataHasChange=!0,Pe.store.mem.getLength()>=500&&(xe.info("数据量存储过大,有异常"),Pe.store.mem.mdata.shift()),(t=Te.processData(t))&&Pe.store.mem.add(t),Pe.store.mem.getLength()>=Ee.max_length&&this.batchSend()}},Ae={send:function(t){if(!Ee.server_url)return xe.info("error: server_url 不能为空"),!1;var e=Pe.kit.buildData(t);e?He.send(e):xe.info("数据异常",e)}};return Pe.init=function(t){var e=t.settings,n=t.common;!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(Ee,t)}(e),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(Le,t)}(n)},Pe.kit=Te,Pe.mergeStorageData=Ne,Pe.trackEvent=Ae,Pe.sendStrategy=He,Pe.track=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=arguments[2];this.trackEvent.send({type:"track",event:e,properties:t},n)},Pe.store.init(),He.init(),Pe});