Text_to_Speech/preview-templates/cocos-analytics/cocosAnalytics.min.js
2022-01-21 17:50:26 +08:00

3 lines
62 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function t(e,r,n){function o(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=r[a]={exports:{}};e[a][0].call(f.exports,function(t){var r=e[a][1][t];return o(r||t)},f,f.exports,t,e,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(t,e,r){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function o(t){return 3*t.length/4-n(t)}function i(t){var e,r,o,i,a,s=t.length;i=n(t),a=new l(3*s/4-i),r=i>0?s-4:s;var u=0;for(e=0;e<r;e+=4)o=f[t.charCodeAt(e)]<<18|f[t.charCodeAt(e+1)]<<12|f[t.charCodeAt(e+2)]<<6|f[t.charCodeAt(e+3)],a[u++]=o>>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=f[t.charCodeAt(e)]<<2|f[t.charCodeAt(e+1)]>>4,a[u++]=255&o):1===i&&(o=f[t.charCodeAt(e)]<<10|f[t.charCodeAt(e+1)]<<4|f[t.charCodeAt(e+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}function a(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function s(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16)+(t[i+1]<<8)+t[i+2],o.push(a(n));return o.join("")}function u(t){for(var e,r=t.length,n=r%3,o="",i=[],a=0,u=r-n;a<u;a+=16383)i.push(s(t,a,a+16383>u?u:a+16383));return 1===n?(e=t[r-1],o+=c[e>>2],o+=c[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=c[e>>10],o+=c[e>>4&63],o+=c[e<<2&63],o+="="),i.push(o),i.join("")}r.byteLength=o,r.toByteArray=i,r.fromByteArray=u;for(var c=[],f=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=h.length;p<d;++p)c[p]=h[p],f[h.charCodeAt(p)]=p;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},{}],2:[function(t,e,r){(function(e){"use strict";function n(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=i.prototype):(null===t&&(t=new i(e)),t.length=e),t}function i(t,e,r){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return a(this,t,e,r)}function a(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,r,n):"string"==typeof e?f(t,e,r):p(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,r,n){return s(e),e<=0?o(t,e):void 0!==r?"string"==typeof n?o(t,e).fill(r,n):o(t,e).fill(r):o(t,e)}function c(t,e){if(s(e),t=o(t,e<0?0:0|d(e)),!i.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function f(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!i.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(e,r);t=o(t,n);var a=t.write(e,r);return a!==n&&(t=t.slice(0,a)),t}function l(t,e){var r=e.length<0?0:0|d(e.length);t=o(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function h(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),i.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=i.prototype):t=l(t,e),t}function p(t,e){if(i.isBuffer(e)){var r=0|d(e.length);return t=o(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||K(e.length)?o(t,0):l(t,e);if("Buffer"===e.type&&Z(e.data))return l(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),i.alloc(+t)}function y(t,e){if(i.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(t).length;default:if(n)return j(t).length;e=(""+e).toLowerCase(),n=!0}}function b(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return D(this,e,r);case"latin1":case"binary":return R(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=i.from(e,n)),i.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,o);if("number"==typeof e)return e&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,o){function i(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}var c;if(o){var f=-1;for(c=r;c<s;c++)if(i(t,c)===i(e,-1===f?0:c-f)){if(-1===f&&(f=c),c-f+1===u)return f*a}else-1!==f&&(c-=c-f),f=-1}else for(r+u>s&&(r=s-u),c=r;c>=0;c--){for(var l=!0,h=0;h<u;h++)if(i(t,c+h)!==i(e,h)){l=!1;break}if(l)return c}return-1}function x(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function S(t,e,r,n){return J(j(e,t.length-r),t,r,n)}function _(t,e,r,n){return J(V(e),t,r,n)}function A(t,e,r,n){return _(t,e,r,n)}function P(t,e,r,n){return J(z(e),t,r,n)}function T(t,e,r,n){return J($(e,t.length-r),t,r,n)}function E(t,e,r){return 0===e&&r===t.length?q.fromByteArray(t):q.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,s=i>239?4:i>223?3:i>191?2:1;if(o+s<=r){var u,c,f,l;switch(s){case 1:i<128&&(a=i);break;case 2:u=t[o+1],128==(192&u)&&(l=(31&i)<<6|63&u)>127&&(a=l);break;case 3:u=t[o+1],c=t[o+2],128==(192&u)&&128==(192&c)&&(l=(15&i)<<12|(63&u)<<6|63&c)>2047&&(l<55296||l>57343)&&(a=l);break;case 4:u=t[o+1],c=t[o+2],f=t[o+3],128==(192&u)&&128==(192&c)&&128==(192&f)&&(l=(15&i)<<18|(63&u)<<12|(63&c)<<6|63&f)>65535&&l<1114112&&(a=l)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=s}return I(n)}function I(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Q));return r}function D(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function R(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function B(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=G(t[i]);return o}function M(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function O(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,o,a){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function k(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function U(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function N(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function X(t,e,r,n,o){return o||N(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),H.write(t,e,r,n,23,4),r+4}function F(t,e,r,n,o){return o||N(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),H.write(t,e,r,n,52,8),r+8}function Y(t){if(t=W(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function W(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function j(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function $(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function z(t){return q.toByteArray(Y(t))}function J(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function K(t){return t!==t}var q=t("base64-js"),H=t("ieee754"),Z=t("isarray");r.Buffer=i,r.SlowBuffer=g,r.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),r.kMaxLength=n(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,e,r){return a(null,t,e,r)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,e,r){return u(null,t,e,r)},i.allocUnsafe=function(t){return c(null,t)},i.allocUnsafeSlow=function(t){return c(null,t)},i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,a=Math.min(r,n);o<a;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,e){if(!Z(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=i.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var a=t[r];if(!i.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},i.byteLength=y,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},i.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):b.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t,e,r,n,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var a=o-n,s=r-e,u=Math.min(a,s),c=this.slice(n,o),f=t.slice(e,r),l=0;l<u;++l)if(c[l]!==f[l]){a=c[l],s=f[l];break}return a<s?-1:s<a?1:0},i.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},i.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},i.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},i.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return x(this,t,e,r);case"utf8":case"utf-8":return S(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return A(this,t,e,r);case"base64":return P(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;i.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n;if(i.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=i.prototype;else{var o=e-t;n=new i(o,void 0);for(var a=0;a<o;++a)n[a]=this[a+t]}return n},i.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},i.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},i.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},i.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},i.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),H.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),H.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),H.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),H.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){L(this,t,e,r,Math.pow(2,8*r)-1,0)}var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},i.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){L(this,t,e,r,Math.pow(2,8*r)-1,0)}var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},i.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):k(this,t,e,!0),e+2},i.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):k(this,t,e,!1),e+2},i.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):U(this,t,e,!0),e+4},i.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},i.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},i.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},i.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):k(this,t,e,!0),e+2},i.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):k(this,t,e,!1),e+2},i.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):U(this,t,e,!0),e+4},i.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},i.prototype.writeFloatLE=function(t,e,r){return X(this,t,e,!0,r)},i.prototype.writeFloatBE=function(t,e,r){return X(this,t,e,!1,r)},i.prototype.writeDoubleLE=function(t,e,r){return F(this,t,e,!0,r)},i.prototype.writeDoubleBE=function(t,e,r){return F(this,t,e,!1,r)},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,a=n-r;if(this===t&&r<e&&e<n)for(o=a-1;o>=0;--o)t[o+e]=this[o+r];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},i.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var s=i.isBuffer(t)?t:j(new i(t,n).toString()),u=s.length;for(a=0;a<r-e;++a)this[a+e]=s[a%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":1,ieee754:5,isarray:7}],3:[function(t,e,r){var n={utf8:{stringToBytes:function(t){return n.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(n.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};e.exports=n},{}],4:[function(t,e,r){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=r.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(e){for(var r=[],n=0;n<e.length;n+=3)for(var o=e[n]<<16|e[n+1]<<8|e[n+2],i=0;i<4;i++)8*n+6*i<=8*e.length?r.push(t.charAt(o>>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,o=0;n<e.length;o=++n%4)0!=o&&r.push((t.indexOf(e.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(n))>>>6-2*o);return r}};e.exports=r}()},{}],5:[function(t,e,r){r.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=s;f>0;i=256*i+t[e+l],l+=h,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=c}return(p?-1:1)*a*Math.pow(2,i-n)},r.write=function(t,e,r,n,o,i){var a,s,u,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+l>=1?h/u:h*Math.pow(2,1-l),e*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*u-1)*Math.pow(2,o),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&s,p+=d,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;t[r+p]=255&a,p+=d,a/=256,c-=8);t[r+p-d]|=128*g}},{}],6:[function(t,e,r){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function o(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}e.exports=function(t){return null!=t&&(n(t)||o(t)||!!t._isBuffer)}},{}],7:[function(t,e,r){var n={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],8:[function(t,e,r){!function(){var r=t("crypt"),n=t("charenc").utf8,o=t("is-buffer"),i=t("charenc").bin,a=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?i.stringToBytes(t):n.stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var s=r.bytesToWords(t),u=8*t.length,c=1732584193,f=-271733879,l=-1732584194,h=271733878,p=0;p<s.length;p++)s[p]=16711935&(s[p]<<8|s[p]>>>24)|4278255360&(s[p]<<24|s[p]>>>8);s[u>>>5]|=128<<u%32,s[14+(u+64>>>9<<4)]=u;for(var d=a._ff,g=a._gg,y=a._hh,b=a._ii,p=0;p<s.length;p+=16){var v=c,m=f,w=l,x=h;c=d(c,f,l,h,s[p+0],7,-680876936),h=d(h,c,f,l,s[p+1],12,-389564586),l=d(l,h,c,f,s[p+2],17,606105819),f=d(f,l,h,c,s[p+3],22,-1044525330),c=d(c,f,l,h,s[p+4],7,-176418897),h=d(h,c,f,l,s[p+5],12,1200080426),l=d(l,h,c,f,s[p+6],17,-1473231341),f=d(f,l,h,c,s[p+7],22,-45705983),c=d(c,f,l,h,s[p+8],7,1770035416),h=d(h,c,f,l,s[p+9],12,-1958414417),l=d(l,h,c,f,s[p+10],17,-42063),f=d(f,l,h,c,s[p+11],22,-1990404162),c=d(c,f,l,h,s[p+12],7,1804603682),h=d(h,c,f,l,s[p+13],12,-40341101),l=d(l,h,c,f,s[p+14],17,-1502002290),f=d(f,l,h,c,s[p+15],22,1236535329),c=g(c,f,l,h,s[p+1],5,-165796510),h=g(h,c,f,l,s[p+6],9,-1069501632),l=g(l,h,c,f,s[p+11],14,643717713),f=g(f,l,h,c,s[p+0],20,-373897302),c=g(c,f,l,h,s[p+5],5,-701558691),h=g(h,c,f,l,s[p+10],9,38016083),l=g(l,h,c,f,s[p+15],14,-660478335),f=g(f,l,h,c,s[p+4],20,-405537848),c=g(c,f,l,h,s[p+9],5,568446438),h=g(h,c,f,l,s[p+14],9,-1019803690),l=g(l,h,c,f,s[p+3],14,-187363961),f=g(f,l,h,c,s[p+8],20,1163531501),c=g(c,f,l,h,s[p+13],5,-1444681467),h=g(h,c,f,l,s[p+2],9,-51403784),l=g(l,h,c,f,s[p+7],14,1735328473),f=g(f,l,h,c,s[p+12],20,-1926607734),c=y(c,f,l,h,s[p+5],4,-378558),h=y(h,c,f,l,s[p+8],11,-2022574463),l=y(l,h,c,f,s[p+11],16,1839030562),f=y(f,l,h,c,s[p+14],23,-35309556),c=y(c,f,l,h,s[p+1],4,-1530992060),h=y(h,c,f,l,s[p+4],11,1272893353),l=y(l,h,c,f,s[p+7],16,-155497632),f=y(f,l,h,c,s[p+10],23,-1094730640),c=y(c,f,l,h,s[p+13],4,681279174),h=y(h,c,f,l,s[p+0],11,-358537222),l=y(l,h,c,f,s[p+3],16,-722521979),f=y(f,l,h,c,s[p+6],23,76029189),c=y(c,f,l,h,s[p+9],4,-640364487),h=y(h,c,f,l,s[p+12],11,-421815835),l=y(l,h,c,f,s[p+15],16,530742520),f=y(f,l,h,c,s[p+2],23,-995338651),c=b(c,f,l,h,s[p+0],6,-198630844),h=b(h,c,f,l,s[p+7],10,1126891415),l=b(l,h,c,f,s[p+14],15,-1416354905),f=b(f,l,h,c,s[p+5],21,-57434055),c=b(c,f,l,h,s[p+12],6,1700485571),h=b(h,c,f,l,s[p+3],10,-1894986606),l=b(l,h,c,f,s[p+10],15,-1051523),f=b(f,l,h,c,s[p+1],21,-2054922799),c=b(c,f,l,h,s[p+8],6,1873313359),h=b(h,c,f,l,s[p+15],10,-30611744),l=b(l,h,c,f,s[p+6],15,-1560198380),f=b(f,l,h,c,s[p+13],21,1309151649),c=b(c,f,l,h,s[p+4],6,-145523070),h=b(h,c,f,l,s[p+11],10,-1120210379),l=b(l,h,c,f,s[p+2],15,718787259),f=b(f,l,h,c,s[p+9],21,-343485551),c=c+v>>>0,f=f+m>>>0,l=l+w>>>0,h=h+x>>>0}return r.endian([c,f,l,h])};a._ff=function(t,e,r,n,o,i,a){var s=t+(e&r|~e&n)+(o>>>0)+a;return(s<<i|s>>>32-i)+e},a._gg=function(t,e,r,n,o,i,a){var s=t+(e&n|r&~n)+(o>>>0)+a;return(s<<i|s>>>32-i)+e},a._hh=function(t,e,r,n,o,i,a){var s=t+(e^r^n)+(o>>>0)+a;return(s<<i|s>>>32-i)+e},a._ii=function(t,e,r,n,o,i,a){var s=t+(r^(e|~n))+(o>>>0)+a;return(s<<i|s>>>32-i)+e},a._blocksize=16,a._digestsize=16,e.exports=function(t,e){if(void 0===t||null===t)throw new Error("Illegal argument "+t);var n=r.wordsToBytes(a(t,e));return e&&e.asBytes?n:e&&e.asString?i.bytesToString(n):r.bytesToHex(n)}}()},{charenc:3,crypt:4,"is-buffer":6}],9:[function(t,e,r){(function(t){(function(){"use strict";function n(t){return t=String(t),t.charAt(0).toUpperCase()+t.slice(1)}function o(t,e,r){var n={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return e&&r&&/^Win/i.test(t)&&!/^Windows Phone /i.test(t)&&(n=n[/[\d.]+$/.exec(t)])&&(t="Windows "+n),t=String(t),e&&r&&(t=t.replace(RegExp(e,"i"),r)),t=a(t.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function i(t,e){var r=-1,n=t?t.length:0;if("number"==typeof n&&n>-1&&n<=w)for(;++r<n;)e(t[r],r,t);else s(t,e)}function a(t){return t=h(t),/^(?:webOS|i(?:OS|P))/.test(t)?t:n(t)}function s(t,e){for(var r in t)A.call(t,r)&&e(t[r],r,t)}function u(t){return null==t?n(t):P.call(t).slice(8,-1)}function c(t,e){var r=null!=t?typeof t[e]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(r)||"object"==r&&!t[e])}function f(t){return String(t).replace(/([ -])(?!$)/g,"$1?")}function l(t,e){var r=null;return i(t,function(n,o){r=e(r,n,o,t)}),r}function h(t){return String(t).replace(/^ +| +$/g,"")}function p(t){function e(e){return l(e,function(e,r){var n=r.pattern||f(r);return!e&&(e=RegExp("\\b"+n+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+n+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+n+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(r.label&&!RegExp(n,"i").test(r.label)?r.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),r=r.label||r,e=a(e[0].replace(RegExp(n,"i"),r).replace(RegExp("; *(?:"+r+"[_-])?","i")," ").replace(RegExp("("+r+")[-_.]?(\\w)","i"),"$1 $2"))),e})}function r(){return this.description||""}var n=g,i=t&&"object"==typeof t&&"String"!=u(t);i&&(n=t,t=null);var d=n.navigator||{},b=d.userAgent||"";t||(t=b);var v,m,w=i||S==y,_=i?!!d.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(P.toString()),A=i?"Object":"ScriptBridgingProxyObject",T=i?"Object":"Environment",E=i&&n.java?"JavaPackage":u(n.java),C=i?"Object":"RuntimeObject",I=/\bJava/.test(E)&&n.java,D=I&&u(n.environment)==T,R=I?"a":"α",B=I?"b":"β",M=n.document||{},O=n.operamini||n.opera,L=x.test(L=i&&O?O["[[Class]]"]:u(O))?L:O=null,k=t,U=[],N=null,X=t==b,F=X&&O&&"function"==typeof O.version&&O.version(),Y=function(e){return l(e,function(e,r){return e||RegExp("\\b"+(r.pattern||f(r))+"\\b","i").exec(t)&&(r.label||r)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),W=function(e){return l(e,function(e,r){return e||RegExp("\\b"+(r.pattern||f(r))+"\\b","i").exec(t)&&(r.label||r)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"
},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),G=e([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),j=function(e){return l(e,function(e,r,n){return e||(r[G]||r[/^[a-z]+(?: +[a-z]+\b)*/i.exec(G)]||RegExp("\\b"+f(n)+"(?:\\b|\\w*\\d)","i").exec(t))&&n})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),V=function(e){return l(e,function(e,r){var n=r.pattern||f(r);return!e&&(e=RegExp("\\b"+n+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=o(e,n,r.label||r)),e})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(Y&&(Y=[Y]),j&&!G&&(G=e([j])),(v=/\bGoogle TV\b/.exec(G))&&(G=v[0]),/\bSimulator\b/i.test(t)&&(G=(G?G+" ":"")+"Simulator"),"Opera Mini"==W&&/\bOPiOS\b/.test(t)&&U.push("running in Turbo/Uncompressed mode"),"IE"==W&&/\blike iPhone OS\b/.test(t)?(v=p(t.replace(/like iPhone OS/,"")),j=v.manufacturer,G=v.product):/^iP/.test(G)?(W||(W="Safari"),V="iOS"+((v=/ OS ([\d_]+)/i.exec(t))?" "+v[1].replace(/_/g,"."):"")):"Konqueror"!=W||/buntu/i.test(V)?j&&"Google"!=j&&(/Chrome/.test(W)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(G))||/\bAndroid\b/.test(V)&&/^Chrome/.test(W)&&/\bVersion\//i.test(t)?(W="Android Browser",V=/\bAndroid\b/.test(V)?V:"Android"):"Silk"==W?(/\bMobi/i.test(t)||(V="Android",U.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&U.unshift("accelerated")):"PaleMoon"==W&&(v=/\bFirefox\/([\d.]+)\b/.exec(t))?U.push("identifying as Firefox "+v[1]):"Firefox"==W&&(v=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(V||(V="Firefox OS"),G||(G=v[1])):!W||(v=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(W))?(W&&!G&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(v+"/")+8))&&(W=null),(v=G||j||V)&&(G||j||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(V))&&(W=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(V)?V:v)+" Browser")):"Electron"==W&&(v=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&U.push("Chromium "+v):V="Kubuntu",F||(F=function(e){return l(e,function(e,r){return e||(RegExp(r+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",f(W),"(?:Firefox|Minefield|NetFront)"])),(v="iCab"==Y&&parseFloat(F)>3&&"WebKit"||/\bOpera\b/.test(W)&&(/\bOPR\b/.test(t)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(Y)&&"WebKit"||!Y&&/\bMSIE\b/i.test(t)&&("Mac OS"==V?"Tasman":"Trident")||"WebKit"==Y&&/\bPlayStation\b(?! Vita\b)/i.test(W)&&"NetFront")&&(Y=[v]),"IE"==W&&(v=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(W+=" Mobile",V="Windows Phone "+(/\+$/.test(v)?v:v+".x"),U.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(W="IE Mobile",V="Windows Phone 8.x",U.unshift("desktop mode"),F||(F=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=W&&"Trident"==Y&&(v=/\brv:([\d.]+)/.exec(t))&&(W&&U.push("identifying as "+W+(F?" "+F:"")),W="IE",F=v[1]),X){if(c(n,"global"))if(I&&(v=I.lang.System,k=v.getProperty("os.arch"),V=V||v.getProperty("os.name")+" "+v.getProperty("os.version")),w&&c(n,"system")&&(v=[n.system])[0]){V||(V=v[0].os||null);try{v[1]=n.require("ringo/engine").version,F=v[1].join("."),W="RingoJS"}catch(t){v[0].global.system==n.system&&(W="Narwhal")}}else"object"==typeof n.process&&!n.process.browser&&(v=n.process)?"object"==typeof v.versions?"string"==typeof v.versions.electron?(U.push("Node "+v.versions.node),W="Electron",F=v.versions.electron):"string"==typeof v.versions.nw&&(U.push("Chromium "+F,"Node "+v.versions.node),W="NW.js",F=v.versions.nw):(W="Node.js",k=v.arch,V=v.platform,F=/[\d.]+/.exec(v.version),F=F?F[0]:"unknown"):D&&(W="Rhino");else u(v=n.runtime)==A?(W="Adobe AIR",V=v.flash.system.Capabilities.os):u(v=n.phantom)==C?(W="PhantomJS",F=(v=v.version||null)&&v.major+"."+v.minor+"."+v.patch):"number"==typeof M.documentMode&&(v=/\bTrident\/(\d+)/i.exec(t))?(F=[F,M.documentMode],(v=+v[1]+4)!=F[1]&&(U.push("IE "+F[1]+" mode"),Y&&(Y[1]=""),F[1]=v),F="IE"==W?String(F[1].toFixed(1)):F[0]):"number"==typeof M.documentMode&&/^(?:Chrome|Firefox)\b/.test(W)&&(U.push("masking as "+W+" "+F),W="IE",F="11.0",Y=["Trident"],V="Windows");V=V&&a(V)}if(F&&(v=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(F)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(X&&d.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(N=/b/i.test(v)?"beta":"alpha",F=F.replace(RegExp(v+"\\+?$"),"")+("beta"==N?B:R)+(/\d+\+?/.exec(v)||"")),"Fennec"==W||"Firefox"==W&&/\b(?:Android|Firefox OS)\b/.test(V))W="Firefox Mobile";else if("Maxthon"==W&&F)F=F.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(G))"Xbox 360"==G&&(V=null),"Xbox 360"==G&&/\bIEMobile\b/.test(t)&&U.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(W)&&(!W||G||/Browser|Mobi/.test(W))||"Windows CE"!=V&&!/Mobi/i.test(t))if("IE"==W&&X)try{null===n.external&&U.unshift("platform preview")}catch(t){U.unshift("embedded")}else(/\bBlackBerry\b/.test(G)||/\bBB10\b/.test(t))&&(v=(RegExp(G.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||F)?(v=[v,/BB10/.test(t)],V=(v[1]?(G=null,j="BlackBerry"):"Device Software")+" "+v[0],F=null):this!=s&&"Wii"!=G&&(X&&O||/Opera/.test(W)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==W&&/\bOS X (?:\d+\.){2,}/.test(V)||"IE"==W&&(V&&!/^Win/.test(V)&&F>5.5||/\bWindows XP\b/.test(V)&&F>8||8==F&&!/\bTrident\b/.test(t)))&&!x.test(v=p.call(s,t.replace(x,"")+";"))&&v.name&&(v="ing as "+v.name+((v=v.version)?" "+v:""),x.test(W)?(/\bIE\b/.test(v)&&"Mac OS"==V&&(V=null),v="identify"+v):(v="mask"+v,W=L?a(L.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(v)&&(V=null),X||(F=null)),Y=["Presto"],U.push(v));else W+=" Mobile";(v=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(v=[parseFloat(v.replace(/\.(\d)$/,".0$1")),v],"Safari"==W&&"+"==v[1].slice(-1)?(W="WebKit Nightly",N="alpha",F=v[1].slice(0,-1)):F!=v[1]&&F!=(v[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(F=null),v[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1],537.36==v[0]&&537.36==v[2]&&parseFloat(v[1])>=28&&"WebKit"==Y&&(Y=["Blink"]),X&&(_||v[1])?(Y&&(Y[1]="like Chrome"),v=v[1]||(v=v[0],v<530?1:v<532?2:v<532.05?3:v<533?4:v<534.03?5:v<534.07?6:v<534.1?7:v<534.13?8:v<534.16?9:v<534.24?10:v<534.3?11:v<535.01?12:v<535.02?"13+":v<535.07?15:v<535.11?16:v<535.19?17:v<536.05?18:v<536.1?19:v<537.01?20:v<537.11?"21+":v<537.13?23:v<537.18?24:v<537.24?25:v<537.36?26:"Blink"!=Y?"27":"28")):(Y&&(Y[1]="like Safari"),v=v[0],v=v<400?1:v<500?2:v<526?3:v<533?4:v<534?"4+":v<535?5:v<537?6:v<538?7:v<601?8:"8"),Y&&(Y[1]+=" "+(v+="number"==typeof v?".x":/[.+]/.test(v)?"":"+")),"Safari"==W&&(!F||parseInt(F)>45)&&(F=v)),"Opera"==W&&(v=/\bzbov|zvav$/.exec(V))?(W+=" ",U.unshift("desktop mode"),"zvav"==v?(W+="Mini",F=null):W+="Mobile",V=V.replace(RegExp(" *"+v+"$"),"")):"Safari"==W&&/\bChrome\b/.exec(Y&&Y[1])&&(U.unshift("desktop mode"),W="Chrome Mobile",F=null,/\bOS X\b/.test(V)?(j="Apple",V="iOS 4.3+"):V=null),F&&0==F.indexOf(v=/[\d.]+$/.exec(V))&&t.indexOf("/"+v+"-")>-1&&(V=h(V.replace(v,""))),Y&&!/\b(?:Avant|Nook)\b/.test(W)&&(/Browser|Lunascape|Maxthon/.test(W)||"Safari"!=W&&/^iOS/.test(V)&&/\bSafari\b/.test(Y[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(W)&&Y[1])&&(v=Y[Y.length-1])&&U.push(v),U.length&&(U=["("+U.join("; ")+")"]),j&&G&&G.indexOf(j)<0&&U.push("on "+j),G&&U.push((/^on /.test(U[U.length-1])?"":"on ")+G),V&&(v=/ ([\d.+]+)$/.exec(V),m=v&&"/"==V.charAt(V.length-v[0].length-1),V={architecture:32,family:v&&!m?V.replace(v[0],""):V,version:v?v[1]:null,toString:function(){var t=this.version;return this.family+(t&&!m?" "+t:"")+(64==this.architecture?" 64-bit":"")}}),(v=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(k))&&!/\bi686\b/i.test(k)?(V&&(V.architecture=64,V.family=V.family.replace(RegExp(" *"+v),"")),W&&(/\bWOW64\b/i.test(t)||X&&/\w(?:86|32)$/.test(d.cpuClass||d.platform)&&!/\bWin64; x64\b/i.test(t))&&U.unshift("32-bit")):V&&/^OS X/.test(V.family)&&"Chrome"==W&&parseFloat(F)>=39&&(V.architecture=64),t||(t=null);var $={};return $.description=t,$.layout=Y&&Y[0],$.manufacturer=j,$.name=W,$.prerelease=N,$.product=G,$.ua=t,$.version=W&&F,$.os=V||{architecture:null,family:null,version:null,toString:function(){return"null"}},$.parse=p,$.toString=r,$.version&&U.unshift(F),$.name&&U.unshift(W),V&&W&&(V!=String(V).split(" ")[0]||V!=W.split(" ")[0]&&!G)&&U.push(G?"("+V+")":"on "+V),U.length&&($.description=U.join(" ")),$}var d={function:!0,object:!0},g=d[typeof window]&&window||this,y=g,b=d[typeof r]&&r,v=d[typeof e]&&e&&!e.nodeType&&e,m=b&&v&&"object"==typeof t&&t;!m||m.global!==m&&m.window!==m&&m.self!==m||(g=m);var w=Math.pow(2,53)-1,x=/\bOpera/,S=this,_=Object.prototype,A=_.hasOwnProperty,P=_.toString,T=p();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(g.platform=T,define(function(){return T})):b&&v?s(T,function(t,e){b[e]=t}):g.platform=T}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(t,e,r){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function a(t){if(h===clearTimeout)return clearTimeout(t);if((h===o||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){y&&d&&(y=!1,d.length?g=d.concat(g):b=-1,g.length&&u())}function u(){if(!y){var t=i(s);y=!0;for(var e=g.length;e;){for(d=g,g=[];++b<e;)d&&d[b].run();b=-1,e=g.length}d=null,y=!1,a(t)}}function c(t,e){this.fun=t,this.array=e}function f(){}var l,h,p=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{h="function"==typeof clearTimeout?clearTimeout:o}catch(t){h=o}}();var d,g=[],y=!1,b=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];g.push(new c(t,e)),1!==g.length||y||i(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=f,p.addListener=f,p.once=f,p.off=f,p.removeListener=f,p.removeAllListeners=f,p.emit=f,p.prependListener=f,p.prependOnceListener=f,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{}],11:[function(t,e,r){(function(r){!function(){var n=t("crypt"),o=t("charenc").utf8,i=t("charenc").bin,a=function(t){t.constructor==String?t=o.stringToBytes(t):void 0!==r&&"function"==typeof r.isBuffer&&r.isBuffer(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());var e=n.bytesToWords(t),i=8*t.length,a=[],s=1732584193,u=-271733879,c=-1732584194,f=271733878,l=-1009589776;e[i>>5]|=128<<24-i%32,e[15+(i+64>>>9<<4)]=i;for(var h=0;h<e.length;h+=16){for(var p=s,d=u,g=c,y=f,b=l,v=0;v<80;v++){if(v<16)a[v]=e[h+v];else{var m=a[v-3]^a[v-8]^a[v-14]^a[v-16];a[v]=m<<1|m>>>31}var w=(s<<5|s>>>27)+l+(a[v]>>>0)+(v<20?1518500249+(u&c|~u&f):v<40?1859775393+(u^c^f):v<60?(u&c|u&f|c&f)-1894007588:(u^c^f)-899497514);l=f,f=c,c=u<<30|u>>>2,u=s,s=w}s+=p,u+=d,c+=g,f+=y,l+=b}return[s,u,c,f,l]},s=function(t,e){var r=n.wordsToBytes(a(t));return e&&e.asBytes?r:e&&e.asString?i.bytesToString(r):n.bytesToHex(r)};s._blocksize=16,s._digestsize=20,e.exports=s}()}).call(this,t("buffer").Buffer)},{buffer:2,charenc:3,crypt:4}],12:[function(t,e,r){"use strict";var n=function(t){t.extends(this)};n.prototype={loginStart:function(){var t=this._generatePostData({category:"account",action:"start"});this._upload(t)},loginSuccess:function(t){if(!t||!t.userID)return void console.log("userID 不能为空!");this.data.userID=t.userID,this._addLocalStorage("_UID_"+this.data.appID,this.data.userID);var e=this._generatePostData({category:"account",action:"success"});this._upload(e)},loginFailed:function(){var t=this._generatePostData({category:"account",action:"failure"});this._upload(t)},logout:function(){var t=this._generatePostData({category:"account",action:"logout"});this._upload(t)},setAccountType:function(t){var e=this._generatePostData({category:"account",action:"setType",accountType:t});this._upload(e)},setAge:function(t){var e=this._generatePostData({category:"account",action:"setAge",age:t});this._upload(e)},setGender:function(t){if(0!=t&&1!=t&&2!=t)return void console.log("gender 为 int 类型0 未知、1 男性、 2 女性");var e=this._generatePostData({category:"account",action:"setGender",gender:t});this._upload(e)},createRole:function(t){var e={};t.roleID&&(e.roleID=t.roleID),t.userName&&(e.userName=t.userName),t.race&&(e.race=t.race),t.class&&(e.class=t.class),t.gameServer&&(e.gameServer=t.gameServer);var r=this._generatePostData({category:"createRole",role:e});this._upload(r)},setLevel:function(t){var e=this._generatePostData({category:"account",action:"setLevel",level:t});this._upload(e)}},e.exports=n},{}],13:[function(t,e,r){(function(n,o){!function(t,i,a){"use strict";var s={function:!0,object:!0},u=s[typeof window]&&window||this,c=s[typeof r]&&r,f=s[typeof e]&&e&&!e.nodeType&&e,l=c&&f&&"object"==typeof o&&o;!l||l.global!==l&&l.window!==l&&l.self!==l||(u=l),"function"==typeof define&&"object"==typeof define.amd&&define.amd?(n.env.NODE_ENV="development",define(a),u[t]=a()):c&&f?(e.exports=a(),u[t]=a()):u[t]=a()}("cocosAnalytics",window,function(){return t(window.CC_JSB?"./nativeCocosAnalytics":"./h5CocosAnalytics")})}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./h5CocosAnalytics":16,"./nativeCocosAnalytics":19,_process:10}],14:[function(t,e,r){(function(r){"use strict";var n=t("sha1"),o={x64Add:function(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var r=[0,0,0,0];return r[3]+=t[3]+e[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=t[2]+e[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=t[1]+e[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=t[0]+e[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},x64Multiply:function(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var r=[0,0,0,0];return r[3]+=t[3]*e[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=t[2]*e[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=t[3]*e[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=t[1]*e[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=t[2]*e[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=t[3]*e[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},x64Rotl:function(t,e){return e%=64,32===e?[t[1],t[0]]:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e|t[0]>>>32-e]:(e-=32,[t[1]<<e|t[0]>>>32-e,t[0]<<e|t[1]>>>32-e])},x64LeftShift:function(t,e){return e%=64,0===e?t:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e]:[t[1]<<e-32,0]},x64Xor:function(t,e){return[t[0]^e[0],t[1]^e[1]]},x64Fmix:function(t){return t=this.x64Xor(t,[0,t[0]>>>1]),t=this.x64Multiply(t,[4283543511,3981806797]),t=this.x64Xor(t,[0,t[0]>>>1]),t=this.x64Multiply(t,[3301882366,444984403]),t=this.x64Xor(t,[0,t[0]>>>1])},x64hash128:function(t,e){t=t||"0",e=e||0;for(var r=t.length%16,n=t.length-r,o=[0,e],i=[0,e],a=[0,0],s=[0,0],u=[2277735313,289559509],c=[1291169091,658871167],f=0;f<n;f+=16)a=[255&t.charCodeAt(f+4)|(255&t.charCodeAt(f+5))<<8|(255&t.charCodeAt(f+6))<<16|(255&t.charCodeAt(f+7))<<24,255&t.charCodeAt(f)|(255&t.charCodeAt(f+1))<<8|(255&t.charCodeAt(f+2))<<16|(255&t.charCodeAt(f+3))<<24],s=[255&t.charCodeAt(f+12)|(255&t.charCodeAt(f+13))<<8|(255&t.charCodeAt(f+14))<<16|(255&t.charCodeAt(f+15))<<24,255&t.charCodeAt(f+8)|(255&t.charCodeAt(f+9))<<8|(255&t.charCodeAt(f+10))<<16|(255&t.charCodeAt(f+11))<<24],a=this.x64Multiply(a,u),a=this.x64Rotl(a,31),a=this.x64Multiply(a,c),o=this.x64Xor(o,a),o=this.x64Rotl(o,27),o=this.x64Add(o,i),o=this.x64Add(this.x64Multiply(o,[0,5]),[0,1390208809]),s=this.x64Multiply(s,c),s=this.x64Rotl(s,33),s=this.x64Multiply(s,u),i=this.x64Xor(i,s),i=this.x64Rotl(i,31),i=this.x64Add(i,o),i=this.x64Add(this.x64Multiply(i,[0,5]),[0,944331445]);switch(a=[0,0],s=[0,0],r){case 15:s=this.x64Xor(s,this.x64LeftShift([0,t.charCodeAt(f+14)],48));case 14:s=this.x64Xor(s,this.x64LeftShift([0,t.charCodeAt(f+13)],40));case 13:s=this.x64Xor(s,this.x64LeftShift([0,t.charCodeAt(f+12)],32));case 12:s=this.x64Xor(s,this.x64LeftShift([0,t.charCodeAt(f+11)],24));case 11:s=this.x64Xor(s,this.x64LeftShift([0,t.charCodeAt(f+10)],16));case 10:s=this.x64Xor(s,this.x64LeftShift([0,t.charCodeAt(f+9)],8));case 9:s=this.x64Xor(s,[0,t.charCodeAt(f+8)]),s=this.x64Multiply(s,c),s=this.x64Rotl(s,33),s=this.x64Multiply(s,u),i=this.x64Xor(i,s);case 8:a=this.x64Xor(a,this.x64LeftShift([0,t.charCodeAt(f+7)],56));case 7:a=this.x64Xor(a,this.x64LeftShift([0,t.charCodeAt(f+6)],48));case 6:a=this.x64Xor(a,this.x64LeftShift([0,t.charCodeAt(f+5)],40));case 5:a=this.x64Xor(a,this.x64LeftShift([0,t.charCodeAt(f+4)],32));case 4:a=this.x64Xor(a,this.x64LeftShift([0,t.charCodeAt(f+3)],24));case 3:a=this.x64Xor(a,this.x64LeftShift([0,t.charCodeAt(f+2)],16));case 2:a=this.x64Xor(a,this.x64LeftShift([0,t.charCodeAt(f+1)],8));case 1:a=this.x64Xor(a,[0,t.charCodeAt(f)]),a=this.x64Multiply(a,u),a=this.x64Rotl(a,31),a=this.x64Multiply(a,c),o=this.x64Xor(o,a)}return o=this.x64Xor(o,[0,t.length]),i=this.x64Xor(i,[0,t.length]),o=this.x64Add(o,i),i=this.x64Add(i,o),o=this.x64Fmix(o),i=this.x64Fmix(i),o=this.x64Add(o,i),i=this.x64Add(i,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)},random32Str:function(){var t,e,r,n=Date.now().toString(32).toUpperCase();return t=Date.now(),e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",r=e.replace(/[xy]/g,function(e){var r;return r=(t+16*Math.random())%16|0,t=Math.floor(t/16),"x"===e?r.toString(16):(7&r|8).toString(16)}),(n||"")+r.replace(/-/g,"").toUpperCase()},encryptPostData:function(t,e){var o=new r(t).toString("base64");return n(o+e).substr(0,32)+o}};e.exports=o}).call(this,t("buffer").Buffer)},{buffer:2,sha1:11}],15:[function(t,e,r){"use strict";var n=function(t){t.extends(this)};n.prototype={onEvent:function(t){if(!t||!t.eventName)return void console.log("eventName 不能为空!");var e=this._generatePostData({category:"event",action:"success",eventName:t.eventName});this._upload(e)},onEventStart:function(t){if(!t||!t.eventName)return void console.log("eventName 不能为空!");var e=this._generatePostData({category:"event",action:"start",eventName:t.eventName});this._upload(e)},onEventEnd:function(t){if(!t||!t.eventName)return void console.log("eventName 不能为空!");var e=this._generatePostData({category:"event",action:"end",eventName:t.eventName});this._upload(e)}},e.exports=n},{}],16:[function(t,e,r){(function(r){"use strict";var n=t("./encrypt"),o=t("platform"),i=t("md5"),a=t("./account"),s=t("./event"),u=t("./payment"),c=t("./levels"),f=t("./task"),l=t("./item"),h=t("./virtual"),p=t("./taskType"),d={data:{msgPool:[],apiURL:"https://reportlog.cocos.com",versionCode:2},browserVersion:void 0,isActive:!0,isShowLog:!1,init:function(t){if(!t.appID)return void console.log("appID 不能为空!");if(this.data.appID=t.appID,!t.appSecret)return void console.log("appSecret 不能为空!");this.data.appSecret=t.appSecret,t.channel&&(this.data.channel=t.channel),this.data.resolution=this._getScreenResolution(),this.data.CCID=this._getCCID(),this.data.userID=this._getLocalStorage("_UID_"+this.data.appID),this.data.sessionID=i(this.data.CCID+((new Date).getTime()+""));var e=this._generatePostData({type:"game",category:"init",resolution:this.data.resolution,osVersion:o.os.version,language:this._getLanguage(),manufacturer:o.manufacturer,model:o.product,appVersion:t.version,appBuild:t.build,browserVersion:this._getBrowserVersion()});this.data.isInit=!0,this._upload(e),this.CAAccount=new a(this),this.CAEvent=new s(this),this.CAPayment=new u(this),this.CALevels=new c(this),this.CATask=new f(this),this.CAItem=new l(this),this.CAVirtual=new h(this),this.CATaskType=new p(this),this._runInterval(),this._bindPageVisibilityEvent()},onPause:function(){this.isActive=!1,this.data.end=((new Date).getTime()+"").substr(0,10);var t=this.data.end-this.data.start;this.log("duration..."+t+"s");var e=this._generatePostData({category:"view",action:"background",start:this.data.start,end:this.data.end});this._upload(e)},onResume:function(){(this.isActive=!0,this.data.start=((new Date).getTime()+"").substr(0,10),this.data.end)&&(this.data.start-this.data.end>3600&&(this.data.sessionID=i(this.data.CCID+((new Date).getTime()+""))))},enableDebug:function(t){this.isShowLog=t},_runInterval:function(){var t=this;setInterval(function(){t.log("cocos analytics check and upload log...");for(var e=t._getLocalStorage("_MSG_"+t.data.appID),r=JSON.parse(e)||t.data.msgPool;0!==r.length;)if(r.length<=100)t._submit(r),r=[],t.data.msgPool=r,t._addLocalStorage("_MSG_"+t.data.appID,t._toJson(t.data.msgPool));else{var n=r.splice(0,100);t._submit(n),t.data.msgPool=r,t._addLocalStorage("_MSG_"+t.data.appID,t._toJson(t.data.msgPool))}},3e4),setInterval(function(){if(t.isActive){t.log("send heartbeat event");var e=t._generatePostData({category:"heartbeat"});t._upload(e)}},6e4)},_bindPageVisibilityEvent:function(){function t(){var t=document.visibilityState;"visible"===t&&r.onResume(),"hidden"===t&&r.onPause()}var e="hidden";e in document?document.addEventListener("visibilitychange",t):(e="mozHidden")in document?document.addEventListener("mozvisibilitychange",t):(e="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",t):(e="msHidden")in document?document.addEventListener("msvisibilitychange",t):"onfocusin"in document?document.onfocusin=document.onfocusout=t:window.onpageshow=window.onpagehide=window.onfocus=window.onblur=t;var r=this;void 0!==document[e]&&t()},_generatePostData:function(t){var e=this._generateBasePostData();if(null==t)return e;for(var r in t)null!=t[r]&&e[r]!==t[r]&&(e[r]=t[r]);return e},_generateBasePostData:function(){var t=((new Date).getTime()+"").substr(0,10);return{versionCode:this.data.versionCode,appID:this.data.appID,channelID:this.data.channel,platform:o.os.family,engine:"h5",tsClient:t,CCID:this.data.CCID,sessionID:this.data.sessionID,userID:this.data.userID}},_toJson:function(t){return JSON.stringify(t)},_fromJson:function(t){return JSON.parse(t)},_upload:function(t){if(!this.data.isInit)return void console.log("Please init first!");var e=[t];this._submit(e)},log:function(){if("development"===r.env.NODE_ENV||!0===this.isShowLog)for(var t in arguments)console.log(arguments[t])},_submit:function(t){var e;e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");var r=this;e.onreadystatechange=function(){if(4==e.readyState)if(200==e.status){var n=JSON.parse(e.responseText);n&&"0"===n.status?r.log("resp success:",r._toJson(t),n):r.log("resp error:",r._toJson(t),n)}else r.log("Problem retrieving data:",r._toJson(t),e.status),r._msgPersist(t)},e.open("POST",this.data.apiURL,!0),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");var o=n.encryptPostData(this._toJson(t),this.data.appSecret);e.send(o)},_msgPersist:function(t){for(var e=0;e<t.length;e++)this.data.msgPool.push(t[e]);this._addLocalStorage("_MSG_"+this.data.appID,this._toJson(this.data.msgPool))},_getCCID:function(){var t=n.x64hash128(),e=this._getLocalStorage(t);return e||(e=i(n.random32Str()),this._addLocalStorage(t,e)),e},extends:function(t){t.data=this.data,t.log=this.log,t._toJson=this._toJson,t._upload=this._upload,t._submit=this._submit,t._msgPersist=this._msgPersist,t._generatePostData=this._generatePostData,t._generateBasePostData=this._generateBasePostData,t._addLocalStorage=this._addLocalStorage,t._delLocalStorage=this._delLocalStorage,t._getLocalStorage=this._getLocalStorage},_addLocalStorage:function(t,e){window.localStorage&&("sessionId"==t&&window.sessionStorage?sessionStorage.setItem("__CA_"+t,e):localStorage.setItem("__CA_"+t,e))},_delLocalStorage:function(t){window.localStorage&&("sessionId"==t&&window.sessionStorage?sessionStorage.removeItem("__CA_"+t):localStorage.removeItem("__CA_"+t))},_getLocalStorage:function(t){if(window.localStorage)return"sessionId"==t&&window.sessionStorage?sessionStorage.getItem("__CA_"+t):localStorage.getItem("__CA_"+t)},_getScreenResolution:function(){return screen.width+"*"+screen.height},_getBrowserVersion:function(){if(!this.browserVersion){var t=navigator.userAgent.toLowerCase(),e=/micromessenger|qqbrowser|sogou|qzone|liebao|ucbrowser|360 aphone|360browser|edge|baiduboxapp|bidubrowser|baidubrowser|maxthon|mxbrowser|trident|miuibrowser/i,r=/chrome|safari|firefox|opr|oupeng|opera/i,n=e.exec(t);n||(n=r.exec(t));var o=n?n[0]:"unknown";"micromessenger"===o?o="wechat":"safari"===o&&t.match(/android.*applewebkit/)?o="androidbrowser":"trident"===o?o="ie":"360 aphone"===o?o="360browser":"mxbrowser"===o?o="maxthon":"opr"===o?o="opera":"bidubrowser"===o&&(o="baidubrowser");var i=/(micromessenger|qq|mx|maxthon|edge|bidu|baidu|sogou)(mobile)?(browserType)?\/?([\d.]+)/i,a=/(msie |rv:|firefox|chrome|ucbrowser|oupeng|opera|opr|safari|miui)(mobile)?(browserType)?\/?([\d.]+)/i,s=t.match(i);s||(s=t.match(a));var u=s?s[4]:"";this.browserVersion=o,u&&(this.browserVersion+="-"+u)}return this.browserVersion},_getLanguage:function(){var t=navigator.language;return t=t||navigator.browserLanguage,t=t?t.split("-")[0]:"en"}};e.exports=d}).call(this,t("_process"))},{"./account":12,"./encrypt":14,"./event":15,"./item":17,"./levels":18,"./payment":20,"./task":21,"./taskType":22,"./virtual":23,_process:10,md5:8,platform:9}],17:[function(t,e,r){"use strict";var n=function(t){t.extends(this)};n.prototype={buy:function(t){var e={itemID:t.itemID,itemType:t.itemType,itemCount:t.itemCount,virtualCoin:t.virtualCoin,virtualType:t.virtualType,consumePoint:t.consumePoint},r=this._generatePostData({category:"item",action:"buy",item:e});this._upload(r)},get:function(t){var e={itemID:t.itemID,itemType:t.itemType,itemCount:t.itemCount,reason:t.reason},r=this._generatePostData({category:"item",action:"get",item:e});this._upload(r)},consume:function(t){var e={itemID:t.itemID,itemType:t.itemType,itemCount:t.itemCount,reason:t.reason},r=this._generatePostData({category:"item",action:"consume",item:e});this._upload(r)}},e.exports=n},{}],18:[function(t,e,r){"use strict";var n=function(t){t.extends(this)};n.prototype={begin:function(t){if(!t||!t.level)return void console.log("level 不能为空!");var e=this._generatePostData({category:"level",action:"start",level:t.level});this._upload(e)},complete:function(t){if(!t||!t.level)return void console.log("level 不能为空!");var e=this._generatePostData({category:"level",action:"success",level:t.level});this._upload(e)},failed:function(t){if(!t||!t.level)return void console.log("level 不能为空!");var e=this._generatePostData({category:"level",action:"failure",level:t.level,reason:t.reason});this._upload(e)}},e.exports=n},{}],19:[function(t,e,r){"use strict";var n=t("./taskType"),o={init:function(){},onPause:function(){},onResume:function(){},CAAccount:{loginStart:function(){},loginSuccess:function(t){},loginFailure:function(){},logout:function(t){},setAccountType:function(t){},setAge:function(t){},setGender:function(t){},setGameServer:function(t){},createRole:function(t){}},CAEvent:{onEvent:function(t){},onEventStart:function(t){},onEventEnd:function(t){}},CAPayment:{onPayment:function(t){}},CALevels:{begin:function(t){},complete:function(t){},failed:function(t){}},CATask:{begin:function(t){},complete:function(t){},failed:function(t){}},CAItem:{buy:function(t){},get:function(t){},consume:function(t){}},CAVirtual:{setVirtualNum:function(t){},get:function(t){},consume:function(t){}},CATaskType:new n(this)};e.exports=o},{"./taskType":22}],20:[function(t,e,r){"use strict";var n=function(t){t.extends(this)};n.prototype={payBegin:function(t){var e=this._generatePostData({category:"paySDK",action:"start",value:t.amount,orderID:t.orderID,payType:t.payType,iapID:t.iapID,currencyType:t.currencyType});this._upload(e)},paySuccess:function(t){var e=this._generatePostData({category:"paySDK",action:"success",value:t.amount,orderID:t.orderID,payType:t.payType,iapID:t.iapID,currencyType:t.currencyType});this._upload(e)},payFailed:function(t){var e=this._generatePostData({category:"paySDK",action:"failure",value:t.amount,orderID:t.orderID,payType:t.payType,iapID:t.iapID,currencyType:t.currencyType});this._upload(e)},payCanceled:function(t){var e=this._generatePostData({category:"paySDK",action:"canceled",value:t.amount,orderID:t.orderID,payType:t.payType,iapID:t.iapID,currencyType:t.currencyType});this._upload(e)}},e.exports=n},{}],21:[function(t,e,r){"use strict";var n=function(t){t.extends(this)};n.prototype={begin:function(t){if(!t||!t.taskID)return void console.log("taskID 不能为空!");var e=this._generatePostData({category:"task",action:"start",taskID:t.taskID,taskType:t.type});this._upload(e)},complete:function(t){if(!t||!t.taskID)return void console.log("taskID 不能为空!");var e=this._generatePostData({category:"task",action:"success",taskID:t.taskID});this._upload(e)},failed:function(t){if(!t||!t.taskID)return void console.log("taskID 不能为空!");var e=this._generatePostData({category:"task",action:"failure",taskID:t.taskID,reason:t.reason});this._upload(e)}},e.exports=n},{}],22:[function(t,e,r){"use strict";var n=function(t){};n.prototype={GuideLine:1,MainLine:2,BranchLine:3,Daily:4,Activity:5,Other:100},e.exports=n},{}],23:[function(t,e,r){"use strict";var n=function(t){t.extends(this)};n.prototype={setVirtualNum:function(t){var e={type:t.type,count:t.count},r=this._generatePostData({category:"virtual",action:"set",virtual:e});this._upload(r)},get:function(t){var e={type:t.type,count:t.count,reason:t.reason},r=this._generatePostData({category:"virtual",action:"get",virtual:e});this._upload(r)},consume:function(t){var e={type:t.type,count:t.count,reason:t.reason},r=this._generatePostData({category:"virtual",action:"consume",virtual:e});this._upload(r)}},e.exports=n},{}]},{},[13]);