!function(){var t,e,n,r,i={2228:function(t,e,n){"use strict";n.d(e,{v4:function(){return s}});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function s(){var t,e=0,n="";if(!r||i+16>256){for(r=Array(e=256);e--;)r[e]=256*Math.random()|0;e=i=0}for(;e<16;e++)t=r[i+e],n+=6==e?o[15&t|64]:8==e?o[63&t|128]:o[t],1&e&&e>1&&e<11&&(n+="-");return i++,n}},8878:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(325));function o(t,e){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+t)||i.default(n,t)||(e?i.default(n,"address."+e):null)||(e?i.default(n,e):null)||i.default(r,"address."+t)||i.default(r,t)||(e?i.default(r,"address."+e):null)||(e?i.default(r,e):null)}}e.default=function(t){t.zip=o("postalCode","zip"),t.country=o("country"),t.street=o("street"),t.state=o("state"),t.city=o("city"),t.region=o("region")}},4780:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Alias=void 0;var i=r(n(1285)),o=n(9512);function s(t,e){o.Facade.call(this,t,e)}e.Alias=s,i.default(s,o.Facade),s.prototype.action=function(){return"alias"},s.prototype.type=s.prototype.action,s.prototype.previousId=function(){return this.field("previousId")||this.field("from")},s.prototype.from=s.prototype.previousId,s.prototype.userId=function(){return this.field("userId")||this.field("to")},s.prototype.to=s.prototype.userId},4814:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clone=void 0,e.clone=function t(e){if("[object Object]"===Object.prototype.toString.call(e)){var n={};for(var r in e)n[r]=t(e[r]);return n}return Array.isArray(e)?e.map(t):e}},5257:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Delete=void 0;var i=r(n(1285)),o=n(9512);function s(t,e){o.Facade.call(this,t,e)}e.Delete=s,i.default(s,o.Facade),s.prototype.type=function(){return"delete"}},9512:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Facade=void 0;var i=r(n(8878)),o=n(4814),s=r(n(2272)),u=r(n(5870)),a=r(n(325)),c=r(n(6279));function l(t,e){e=e||{},this.raw=o.clone(t),"clone"in e||(e.clone=!0),e.clone&&(t=o.clone(t)),"traverse"in e||(e.traverse=!0),t.timestamp="timestamp"in t?u.default(t.timestamp):new Date,e.traverse&&c.default(t),this.opts=e,this.obj=t}e.Facade=l;var f=l.prototype;function p(t){return o.clone(t)}f.proxy=function(t){var e=t.split("."),n=this[t=e.shift()]||this.field(t);return n?("function"==typeof n&&(n=n.call(this)||{}),0===e.length||(n=a.default(n,e.join("."))),this.opts.clone?p(n):n):n},f.field=function(t){var e=this.obj[t];return this.opts.clone?p(e):e},l.proxy=function(t){return function(){return this.proxy(t)}},l.field=function(t){return function(){return this.field(t)}},l.multi=function(t){return function(){var e=this.proxy(t+"s");if(Array.isArray(e))return e;var n=this.proxy(t);return n&&(n=[this.opts.clone?o.clone(n):n]),n||[]}},l.one=function(t){return function(){var e=this.proxy(t);if(e)return e;var n=this.proxy(t+"s");return Array.isArray(n)?n[0]:void 0}},f.json=function(){var t=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(t.type=this.type()),t},f.rawEvent=function(){return this.raw},f.options=function(t){var e=this.obj.options||this.obj.context||{},n=this.opts.clone?o.clone(e):e;if(!t)return n;if(this.enabled(t)){var r=this.integrations(),i=r[t]||a.default(r,t);return"object"!=typeof i&&(i=a.default(this.options(),t)),"object"==typeof i?i:{}}},f.context=f.options,f.enabled=function(t){var e=this.proxy("options.providers.all");"boolean"!=typeof e&&(e=this.proxy("options.all")),"boolean"!=typeof e&&(e=this.proxy("integrations.all")),"boolean"!=typeof e&&(e=!0);var n=e&&s.default(t),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(t)&&(n=r.providers[t]),r.hasOwnProperty(t)){var i=r[t];n="boolean"!=typeof i||i}return!!n},f.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},f.active=function(){var t=this.proxy("options.active");return null==t&&(t=!0),t},f.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},f.sessionId=f.anonymousId,f.groupId=l.proxy("options.groupId"),f.traits=function(t){var e=this.proxy("options.traits")||{},n=this.userId();for(var r in t=t||{},n&&(e.id=n),t){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();null!=i&&(e[t[r]]=i,delete e[r])}return e},f.library=function(){var t=this.proxy("options.library");return t?"string"==typeof t?{name:t,version:null}:t:{name:"unknown",version:null}},f.device=function(){var t=this.proxy("context.device");"object"==typeof t&&null!==t||(t={});var e=this.library().name;return t.type||(e.indexOf("ios")>-1&&(t.type="ios"),e.indexOf("android")>-1&&(t.type="android")),t},f.userAgent=l.proxy("context.userAgent"),f.timezone=l.proxy("context.timezone"),f.timestamp=l.field("timestamp"),f.channel=l.field("channel"),f.ip=l.proxy("context.ip"),f.userId=l.field("userId"),i.default(f)},615:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Group=void 0;var i=r(n(1285)),o=r(n(4554)),s=r(n(5870)),u=n(9512);function a(t,e){u.Facade.call(this,t,e)}e.Group=a,i.default(a,u.Facade);var c=a.prototype;c.action=function(){return"group"},c.type=c.action,c.groupId=u.Facade.field("groupId"),c.created=function(){var t=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(t)return s.default(t)},c.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.groupId();return o.default(e)?e:void 0},c.traits=function(t){var e=this.properties(),n=this.groupId();for(var r in t=t||{},n&&(e.id=n),t){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(e[t[r]]=i,delete e[r])}return e},c.name=u.Facade.proxy("traits.name"),c.industry=u.Facade.proxy("traits.industry"),c.employees=u.Facade.proxy("traits.employees"),c.properties=function(){return this.field("traits")||this.field("properties")||{}}},4705:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Identify=void 0;var i=n(9512),o=r(n(325)),s=r(n(1285)),u=r(n(4554)),a=r(n(5870)),c=function(t){return t.trim()};function l(t,e){i.Facade.call(this,t,e)}e.Identify=l,s.default(l,i.Facade);var f=l.prototype;f.action=function(){return"identify"},f.type=f.action,f.traits=function(t){var e=this.field("traits")||{},n=this.userId();for(var r in t=t||{},n&&(e.id=n),t){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(e[t[r]]=i,r!==t[r]&&delete e[r])}return e},f.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.userId();return u.default(e)?e:void 0},f.created=function(){var t=this.proxy("traits.created")||this.proxy("traits.createdAt");if(t)return a.default(t)},f.companyCreated=function(){var t=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(t)return a.default(t)},f.companyName=function(){return this.proxy("traits.company.name")},f.name=function(){var t=this.proxy("traits.name");if("string"==typeof t)return c(t);var e=this.firstName(),n=this.lastName();return e&&n?c(e+" "+n):void 0},f.firstName=function(){var t=this.proxy("traits.firstName");if("string"==typeof t)return c(t);var e=this.proxy("traits.name");return"string"==typeof e?c(e).split(" ")[0]:void 0},f.lastName=function(){var t=this.proxy("traits.lastName");if("string"==typeof t)return c(t);var e=this.proxy("traits.name");if("string"==typeof e){var n=c(e).indexOf(" ");if(-1!==n)return c(e.substr(n+1))}},f.uid=function(){return this.userId()||this.username()||this.email()},f.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},f.age=function(){var t=this.birthday(),e=o.default(this.traits(),"age");return null!=e?e:t instanceof Date?(new Date).getFullYear()-t.getFullYear():void 0},f.avatar=function(){var t=this.traits();return o.default(t,"avatar")||o.default(t,"photoUrl")||o.default(t,"avatarUrl")},f.position=function(){var t=this.traits();return o.default(t,"position")||o.default(t,"jobTitle")},f.username=i.Facade.proxy("traits.username"),f.website=i.Facade.one("traits.website"),f.websites=i.Facade.multi("traits.website"),f.phone=i.Facade.one("traits.phone"),f.phones=i.Facade.multi("traits.phone"),f.address=i.Facade.proxy("traits.address"),f.gender=i.Facade.proxy("traits.gender"),f.birthday=i.Facade.proxy("traits.birthday")},4122:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n>>25)+r|0)&r|~n&i)+e[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+e[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+e[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+e[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+e[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+e[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+e[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+e[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+e[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+e[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+e[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+e[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+e[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+e[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+e[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+e[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+e[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+e[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+e[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+e[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+e[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+e[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+e[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+e[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+e[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+e[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+e[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+e[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+e[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+e[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+e[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+e[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+e[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+e[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+e[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+e[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+e[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+e[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+e[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+e[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+e[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+e[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+e[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+e[9]-343485551|0)<<21|r>>>11)+i|0,t[0]=n+t[0]|0,t[1]=r+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}function r(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function i(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n}function o(t){var e,i,o,s,u,a,c=t.length,l=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;e+=64)n(l,r(t.substring(e-64,e)));for(i=(t=t.substring(e-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(l,o),e=0;e<16;e+=1)o[e]=0;return s=(s=8*c).toString(16).match(/(.*?)(.{0,8})$/),u=parseInt(s[2],16),a=parseInt(s[1],16)||0,o[14]=u,o[15]=a,n(l,o),l}function s(t){var e,r,o,s,u,a,c=t.length,l=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;e+=64)n(l,i(t.subarray(e-64,e)));for(r=(t=e-64>2]|=t[e]<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(l,o),e=0;e<16;e+=1)o[e]=0;return s=(s=8*c).toString(16).match(/(.*?)(.{0,8})$/),u=parseInt(s[2],16),a=parseInt(s[1],16)||0,o[14]=u,o[15]=a,n(l,o),l}function u(t){var n,r="";for(n=0;n<4;n+=1)r+=e[t>>8*n+4&15]+e[t>>8*n&15];return r}function a(t){var e;for(e=0;el?new ArrayBuffer(0):(i=l-c,o=new ArrayBuffer(i),s=new Uint8Array(o),u=new Uint8Array(this,c,i),s.set(u),o)}}(),h.prototype.append=function(t){return this.appendBinary(c(t)),this},h.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,i=this._buff.length;for(e=64;e<=i;e+=64)n(this._hash,r(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},h.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=r.charCodeAt(e)<<(e%4<<3);return this._finish(o,i),n=a(this._hash),t&&(n=d(n)),this.reset(),n},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},h.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(t,e){var r,i,o,s=e;if(t[s>>2]|=128<<(s%4<<3),s>55)for(n(this._hash,t),s=0;s<16;s+=1)t[s]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,t[14]=i,t[15]=o,n(this._hash,t)},h.hash=function(t,e){return h.hashBinary(c(t),e)},h.hashBinary=function(t,e){var n=a(o(t));return e?d(n):n},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(t){var e,r=p(this._buff.buffer,t,!0),o=r.length;for(this._length+=t.byteLength,e=64;e<=o;e+=64)n(this._hash,i(r.subarray(e-64,e)));return this._buff=e-64>2]|=r[e]<<(e%4<<3);return this._finish(o,i),n=a(this._hash),t&&(n=d(n)),this.reset(),n},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var t=h.prototype.getState.call(this);return t.buff=f(t.buff),t},h.ArrayBuffer.prototype.setState=function(t){return t.buff=l(t.buff,!0),h.prototype.setState.call(this,t)},h.ArrayBuffer.prototype.destroy=h.prototype.destroy,h.ArrayBuffer.prototype._finish=h.prototype._finish,h.ArrayBuffer.hash=function(t,e){var n=a(s(new Uint8Array(t)));return e?d(n):n},h}()},3372:function(t,e,n){"use strict";n.d(e,{F:function(){return i},U:function(){return o}});var r=n(5346);function i(t,e){return new Promise((function(n,r){var i=setTimeout((function(){r(Error("Promise timed out"))}),e);t.then((function(t){return clearTimeout(i),n(t)})).catch(r)}))}function o(t,e,n,o){var s;return(s=n,new Promise((function(t){return setTimeout(t,s)}))).then((function(){return i(function(){try{return(0,r.O)(e(t))}catch(t){return Promise.reject(t)}}(),null!=o?o:1e3)})).catch((function(e){null==t||t.log("warn","Callback Error",{error:e}),null==t||t.stats.increment("callback_error")})).then((function(){return t}))}},94:function(t,e,n){"use strict";n.d(e,{G:function(){return i},s:function(){return o}});var r=n(204);function i(){return!(0,r.j)()||window.navigator.onLine}function o(){return!i()}},7547:function(t,e,n){"use strict";n.d(e,{_:function(){return p},Y:function(){return f}});var r,i=n(2228),o=n(8168),s=n(5163),u=function(){function t(){var t=this;this._logs=[],this.log=function(e,n,r){var i=new Date;t._logs.push({level:e,message:n,time:i,extras:r})}}return Object.defineProperty(t.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),t.prototype.flush=function(){if(this.logs.length>1){var t=this._logs.reduce((function(t,e){var n,r,i,o=(0,s.pi)((0,s.pi)({},e),{json:JSON.stringify(e.extras,null," "),extras:e.extras});delete o.time;var u=null!==(i=null===(r=e.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return t[u]&&(u="".concat(u,"-").concat(Math.random())),(0,s.pi)((0,s.pi)({},t),((n={})[u]=o,n))}),{});console.table?console.table(t):console.log(t)}else this.logs.forEach((function(t){var e=t.level,n=t.message,r=t.extras;"info"===e||"debug"===e?console.log(n,null!=r?r:""):console[e](n,null!=r?r:"")}));this._logs=[]},t}(),a=function(){function t(t){this.metrics=[],this.remoteMetrics=t}return t.prototype.increment=function(t,e,n){var r;void 0===e&&(e=1),this.metrics.push({metric:t,value:e,tags:null!=n?n:[],type:"counter",timestamp:Date.now()}),null===(r=this.remoteMetrics)||void 0===r||r.increment(t,null!=n?n:[])},t.prototype.gauge=function(t,e,n){this.metrics.push({metric:t,value:e,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},t.prototype.flush=function(){var t=this.metrics.map((function(t){return(0,s.pi)((0,s.pi)({},t),{tags:t.tags.join(",")})}));console.table?console.table(t):console.log(t),this.metrics=[]},t.prototype.serialize=function(){return this.metrics.map((function(t){return{m:t.metric,v:t.value,t:t.tags,k:(e=t.type,{gauge:"g",counter:"c"}[e]),e:t.timestamp};var e}))},t}(),c=a,l=n(449),f=function(t){var e,n,r;this.retry=null===(e=t.retry)||void 0===e||e,this.type=null!==(n=t.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=t.reason)&&void 0!==r?r:""},p=function(){function t(t,e){this.logger=new u,this.cancel=function(t){if(t)throw t;throw new f({reason:"Context Cancel"})},this._attempts=0,this._event=t,this._id=null!=e?e:(0,i.v4)(),this.stats=new c(r)}return t.initMetrics=function(t){r=new l.B(t)},t.system=function(){return new t({type:"track",event:"system"})},t.prototype.isSame=function(t){return t._id===this._id},t.prototype.log=function(t,e,n){this.logger.log(t,e,n)},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this._event},set:function(t){this._event=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attempts",{get:function(){return this._attempts},set:function(t){this._attempts=t},enumerable:!1,configurable:!0}),t.prototype.updateEvent=function(t,e){var n;if("integrations"===t.split(".")[0]){var r=t.split(".")[1];if(!1===(null===(n=this._event.integrations)||void 0===n?void 0:n[r]))return this._event}return(0,o.N)(this._event,t,e),this._event},t.prototype.failedDelivery=function(){return this._failedDelivery},t.prototype.setFailedDelivery=function(t){this._failedDelivery=t},t.prototype.logs=function(){return this.logger.logs},t.prototype.flush=function(){this.logger.flush(),this.stats.flush()},t.prototype.toJSON=function(){return{id:this._id,event:this._event,logs:this.logger.logs,metrics:this.stats.metrics}},t}()},204:function(t,e,n){"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(e,{j:function(){return r},s:function(){return i}})},6863:function(t,e,n){"use strict";function r(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}}n.d(e,{a:function(){return r}})},1365:function(t,e,n){"use strict";n.d(e,{a:function(){return o},z:function(){return s}});var r=n(5163),i=n(7547);function o(t,e){var n="action"in e?e.action.name:e.name;t.log("debug","plugin",{plugin:n});var o=(new Date).getTime(),s=e[t.event.type];return void 0===s?Promise.resolve(t):function(t){return(0,r.mG)(this,void 0,Promise,(function(){var e;return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t()];case 1:return[2,n.sent()];case 2:return e=n.sent(),[2,Promise.reject(e)];case 3:return[2]}}))}))}((function(){return s.apply(e,[t])})).then((function(t){var e=(new Date).getTime()-o;return t.stats.gauge("plugin_time",e,["plugin:".concat(n)]),t})).catch((function(e){if(e instanceof i.Y&&"middleware_cancellation"===e.type)throw e;return e instanceof i.Y?(t.log("warn",e.type,{plugin:n,error:e}),e):(t.log("error","plugin Error",{plugin:n,error:e}),t.stats.increment("plugin_error",1,["plugin:".concat(n)]),e)}))}function s(t,e){return o(t,e).then((function(e){if(e instanceof i._)return e;t.log("debug","Context canceled"),t.stats.increment("context_canceled"),t.cancel(e)}))}},449:function(t,e,n){"use strict";n.d(e,{B:function(){return a}});var r=n(5163),i=n(6782),o=n(4278),s=n(719);function u(t){console.error("Error sending segment performance metrics",t)}var a=function(){function t(t){var e,n,r,i,o=this;if(this.host=null!==(e=null==t?void 0:t.host)&&void 0!==e?e:"api.segment.io/v1",this.sampleRate=null!==(n=null==t?void 0:t.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==t?void 0:t.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==t?void 0:t.maxQueueSize)&&void 0!==i?i:20,this.queue=[],this.sampleRate>0){var s=!1,a=function(){s||(s=!0,o.flush().catch(u),s=!1,setTimeout(a,o.flushTimer))};a()}}return t.prototype.increment=function(t,e){if(t.includes("analytics_js.")&&0!==e.length&&!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){var n=e.reduce((function(t,e){var n=e.split(":"),r=n[0],i=n[1];return t[r]=i,t}),{});n.library="analytics.js";var r=(0,s.Bz)();n.library_version="web"===r?"next-".concat(o.i):"npm:next-".concat(o.i),this.queue.push({type:"Counter",metric:t,value:1,tags:n}),t.includes("error")&&this.flush().catch(u)}},t.prototype.flush=function(){return(0,r.mG)(this,void 0,Promise,(function(){var t=this;return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch((function(e){u(e),t.sampleRate=0}))];case 1:return e.sent(),[2]}}))}))},t.prototype.send=function(){return(0,r.mG)(this,void 0,Promise,(function(){var t,e,n;return(0,r.Jh)(this,(function(r){return t={series:this.queue},this.queue=[],e={"Content-Type":"text/plain"},n="https://".concat(this.host,"/m"),[2,(0,i.Z)(n,{headers:e,body:JSON.stringify(t),method:"POST"})]}))}))},t}()},1268:function(t,e,n){"use strict";n.d(e,{P:function(){return i}});var r=n(836);function i(t){var e=function(t){try{return new URL(t)}catch(t){return}}(t);if(e)for(var n=function(t){var e=t.hostname.split("."),n=e[e.length-1],r=[];if(4===e.length&&parseInt(n,10)>0)return r;if(e.length<=1)return r;for(var i=e.length-2;i>=0;--i)r.push(e.slice(i).join("."));return r}(e),i=0;it.maxAttempts||t.includes(e))&&(t.queue.push(e),!0)}));return this.queue=this.queue.sort((function(e,n){return t.getAttempts(e)-t.getAttempts(n)})),r},e.prototype.pushWithBackoff=function(t){var e=this;if(0===this.getAttempts(t))return this.push(t)[0];var n=this.updateAttempts(t);if(n>this.maxAttempts||this.includes(t))return!1;var r=function(t){var e=Math.random()+1,n=t.minTimeout,r=void 0===n?500:n,i=t.factor,o=void 0===i?2:i,s=t.attempt,u=t.maxTimeout,a=void 0===u?1/0:u;return Math.min(e*r*Math.pow(o,s),a)}({attempt:n-1});return setTimeout((function(){e.queue.push(t),e.future=e.future.filter((function(e){return e.id!==t.id})),e.emit(o)}),r),this.future.push(t),!0},e.prototype.getAttempts=function(t){var e;return null!==(e=this.seen[t.id])&&void 0!==e?e:0},e.prototype.updateAttempts=function(t){return this.seen[t.id]=this.getAttempts(t)+1,this.getAttempts(t)},e.prototype.includes=function(t){return this.queue.includes(t)||this.future.includes(t)||Boolean(this.queue.find((function(e){return e.id===t.id})))||Boolean(this.future.find((function(e){return e.id===t.id})))},e.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(e.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),e}(i.Q)},3061:function(t,e,n){"use strict";n.d(e,{$:function(){return p}});var r=n(5163),i=n(4443),o=n(7547),s=n(204),u={getItem:function(){},setItem:function(){},removeItem:function(){}};try{u=(0,s.j)()&&window.localStorage?window.localStorage:u}catch(t){console.warn("Unable to access localStorage",t)}function a(t){var e=u.getItem(t);return(e?JSON.parse(e):[]).map((function(t){return new o._(t.event,t.id)}))}function c(t){var e=u.getItem(t);return e?JSON.parse(e):{}}function l(t){u.removeItem(t)}function f(t,e,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(t,":lock"),i=u.getItem(r),o=i?JSON.parse(i):null,s=null===o||function(t){return(new Date).getTime()>t}(o);if(s)return u.setItem(r,JSON.stringify((new Date).getTime()+50)),e(),void u.removeItem(r);!s&&n<3?setTimeout((function(){f(t,e,n+1)}),50):console.error("Unable to retrieve lock")}var p=function(t){function e(e,n){var i=t.call(this,e,[])||this,o="persisted-queue:v1:".concat(n,":items"),s="persisted-queue:v1:".concat(n,":seen"),p=[],d={};return f(n,(function(){try{p=a(o),d=c(s),l(o),l(s),i.queue=(0,r.ev)((0,r.ev)([],p,!0),i.queue,!0),i.seen=(0,r.pi)((0,r.pi)({},d),i.seen)}catch(t){console.error(t)}})),document.addEventListener("pagehide",(function(){if(i.todo>0){var t=(0,r.ev)((0,r.ev)([],i.queue,!0),i.future,!0);try{f(n,(function(){!function(t,e){var n=a(t),i=(0,r.ev)((0,r.ev)([],e,!0),n,!0).reduce((function(t,e){var n;return(0,r.pi)((0,r.pi)({},t),((n={})[e.id]=e,n))}),{});u.setItem(t,JSON.stringify(Object.values(i)))}(o,t),function(t,e){var n=c(t);u.setItem(t,JSON.stringify((0,r.pi)((0,r.pi)({},n),e)))}(s,i.seen)}))}catch(t){console.error(t)}}})),i}return(0,r.ZT)(e,t),e}(i.Z)},9950:function(t,e,n){"use strict";n.d(e,{D:function(){return i}});var r=n(4122);function i(t,e){var n=new r.Facade(t,e);return"track"===t.type&&(n=new r.Track(t,e)),"identify"===t.type&&(n=new r.Identify(t,e)),"page"===t.type&&(n=new r.Page(t,e)),"alias"===t.type&&(n=new r.Alias(t,e)),"group"===t.type&&(n=new r.Group(t,e)),"screen"===t.type&&(n=new r.Screen(t,e)),Object.defineProperty(n,"obj",{value:t,writable:!0}),n}},6338:function(t,e,n){"use strict";n.r(e),n.d(e,{applyDestinationMiddleware:function(){return u},sourceMiddlewarePlugin:function(){return a}});var r=n(5163),i=n(7547),o=n(5346),s=n(9950);function u(t,e,n){return(0,r.mG)(this,void 0,Promise,(function(){function i(e,n){return(0,r.mG)(this,void 0,Promise,(function(){var i,u,a;return(0,r.Jh)(this,(function(c){switch(c.label){case 0:return i=!1,u=null,[4,(0,o.O)(n({payload:(0,s.D)(e,{clone:!0,traverse:!1}),integration:t,next:function(t){i=!0,null===t&&(u=null),t&&(u=t.obj)}}))];case 1:return c.sent(),i||null===u||(u.integrations=(0,r.pi)((0,r.pi)({},e.integrations),((a={})[t]=!1,a))),[2,u]}}))}))}var u,a,c,l,f;return(0,r.Jh)(this,(function(t){switch(t.label){case 0:u=(0,s.D)(e,{clone:!0,traverse:!1}).rawEvent(),a=0,c=n,t.label=1;case 1:return a4){var u=r.substr(4);"campaign"===u&&(u="name"),t[u]=(0,s.a)(o)}return t}),{})}(v)),p(v,y,null!==(l=t.options.disableClientPersistence)&&void 0!==l&&l),e.userId=e.userId||h.id(),e.anonymousId=e.anonymousId||h.anonymousId(),e.sentAt=new Date;var b=t.queue.failedInitializations||[];b.length>0&&(e._metadata={failedInitializations:b});var w=[],_=[];for(var x in r){var P=r[x];"Segment.io"===x&&w.push(x),"bundled"===P.bundlingStatus&&w.push(x),"unbundled"===P.bundlingStatus&&_.push(x)}for(var I=0,j=(null==n?void 0:n.unbundledIntegrations)||[];I0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=64&&n++,e[n]?e[n].push(t):e[n]=[t]})),e}(a).map(p);Promise.all(t).catch(console.error)}},u=!1,document.addEventListener("pagehide",(function(){u||(u=!0,s())})),document.addEventListener("visibilitychange",(function(){if("hidden"==document.visibilityState){if(u)return;u=!0,s()}else u=!1})),{dispatch:function(e,n){return(0,t.mG)(this,void 0,Promise,(function(){var e;return(0,t.Jh)(this,(function(t){return a.push(n),e=a.length>=l||function(t){return dt(t)>=450}(a),[2,e||c?d():void(o||(o=setTimeout((function(){o=void 0,d().catch(console.error)}),f)))]}))}))}}}var vt=i.Z;"undefined"!=typeof window&&(vt=window.fetch||i.Z);var yt=s(8044);function mt(e,n){return(0,t.mG)(this,void 0,Promise,(function(){var r,i=this;return(0,t.Jh)(this,(function(o){switch(o.label){case 0:return r=[],(0,b.s)()?[2,n]:[4,(0,yt.x)((function(){return n.length>0&&!(0,b.s)()}),(function(){return(0,t.mG)(i,void 0,void 0,(function(){var i,o;return(0,t.Jh)(this,(function(t){switch(t.label){case 0:return(i=n.pop())?[4,(0,F.a)(i,e)]:[2];case 1:return o=t.sent(),o instanceof w._||r.push(i),[2]}}))}))}))];case 1:return o.sent(),r.map((function(t){return n.pushWithBackoff(t)})),[2,n]}}))}))}function gt(e,n,r,i){var o=this;e||setTimeout((function(){return(0,t.mG)(o,void 0,void 0,(function(){var e,o;return(0,t.Jh)(this,(function(t){switch(t.label){case 0:return e=!0,[4,mt(r,n)];case 1:return o=t.sent(),e=!1,n.todo>0&&i(e,o,r,i),[2]}}))}))}),5e3*Math.random())}function bt(e,r,i){var o,s,u,a,c=e.options.disableClientPersistence?new A.Z(e.queue.queue.maxAttempts,[]):new M.$(e.queue.queue.maxAttempts,"dest-Segment.io"),l=null!==(o=null==r?void 0:r.apiHost)&&void 0!==o?o:"api.segment.io/v1",f=null!==(s=null==r?void 0:r.protocol)&&void 0!==s?s:"https",p="".concat(f,"://").concat(l),d="batching"===(null===(u=null==r?void 0:r.deliveryStrategy)||void 0===u?void 0:u.strategy)?ht(l,null===(a=null==r?void 0:r.deliveryStrategy)||void 0===a?void 0:a.config):{dispatch:function(t,e){return vt(t,{headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(e)})}};function h(o){return(0,t.mG)(this,void 0,Promise,(function(){var s,u;return(0,t.Jh)(this,(function(t){return(0,b.s)()?(c.push(o),gt(false,c,v,gt),[2,o]):(s=o.event.type.charAt(0),u=(0,ft.D)(o.event).json(),"track"===o.event.type&&delete u.traits,"alias"===o.event.type&&(u=function(t,e){var n,r,i,o,s=t.user();return e.previousId=null!==(i=null!==(r=null!==(n=e.previousId)&&void 0!==n?n:e.from)&&void 0!==r?r:s.id())&&void 0!==i?i:s.anonymousId(),e.userId=null!==(o=e.userId)&&void 0!==o?o:e.to,delete e.from,delete e.to,e}(e,u)),[2,d.dispatch("".concat(p,"/").concat(s),(0,n.Fv)(e,u,r,i)).then((function(){return o})).catch((function(t){return"error"!==t.type&&"Failed to fetch"!==t.message||(c.push(o),gt(false,c,v,gt)),o}))])}))}))}var v={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:h,identify:h,page:h,alias:h,group:h};return v}var wt=function(t,e,n){n.getCalls(t).forEach((function(t){jt(e,t).catch(console.error)}))},_t=function(e,n){return(0,t.mG)(void 0,void 0,void 0,(function(){var r,i,o;return(0,t.Jh)(this,(function(t){switch(t.label){case 0:r=0,i=n.getCalls("addSourceMiddleware"),t.label=1;case 1:return r0}(e)?[4,Promise.all([s.e(870),s.e(604)]).then(s.bind(s,669)).then((function(t){return t.tsubMiddleware(e.middlewareSettings.routingRules)}))]:[3,2];case 1:return p=P.sent(),[3,3];case 2:p=void 0,P.label=3;case 3:return f=p,I=e,"test"!==r().NODE_ENV&&Object.keys(I.integrations).length>1?[4,s.e(464).then(s.bind(s,3252)).then((function(t){return t.ajsDestinations(e,n.integrations,i,f)}))]:[3,5];case 4:return v=P.sent(),[3,6];case 5:v=[],P.label=6;case 6:return h=v,e.legacyVideoPluginsEnabled?[4,s.e(150).then(s.bind(s,9141)).then((function(t){return t.loadLegacyVideoPlugins(n)}))]:[3,8];case 7:P.sent(),P.label=8;case 8:return(null===(a=i.plan)||void 0===a?void 0:a.track)?[4,s.e(493).then(s.bind(s,5081)).then((function(t){var n;return t.schemaFilter(null===(n=i.plan)||void 0===n?void 0:n.track,e)}))]:[3,10];case 9:return m=P.sent(),[3,11];case 10:m=void 0,P.label=11;case 11:return y=m,g=(0,X.o)(e,o),[4,lt(e,n.integrations,g,o.obfuscate,f).catch((function(){return[]}))];case 12:return b=P.sent(),w=(0,t.ev)((0,t.ev)((0,t.ev)([d,ot],u,!0),h,!0),b,!0),y&&w.push(y),!1===(null===(c=i.integrations)||void 0===c?void 0:c.All)&&!i.integrations["Segment.io"]||i.integrations&&!1===i.integrations["Segment.io"]||w.push(bt(n,g["Segment.io"],e.integrations)),[4,n.register.apply(n,w)];case 13:return _=P.sent(),Object.entries(null!==(l=e.enabledMiddleware)&&void 0!==l?l:{}).some((function(t){return t[1]}))?[4,s.e(214).then(s.bind(s,9568)).then((function(r){var i=r.remoteMiddlewares;return(0,t.mG)(x,void 0,void 0,(function(){var r,s;return(0,t.Jh)(this,(function(t){switch(t.label){case 0:return[4,i(_,e,o.obfuscate)];case 1:return r=t.sent(),s=r.map((function(t){return n.addSourceMiddleware(t)})),[2,Promise.all(s)]}}))}))}))]:[3,15];case 14:P.sent(),P.label=15;case 15:return[2,_]}var I}))}))}function Et(n,r,o){var s,u,a,c,l,f,p;return void 0===r&&(r={}),(0,t.mG)(this,void 0,Promise,(function(){var d,h,v,y,m,g,b,_,x,P;return(0,t.Jh)(this,(function(I){switch(I.label){case 0:return n.cdnURL&&(0,e.UH)(n.cdnURL),null===(s=n.cdnSettings)||void 0===s?[3,1]:(h=s,[3,3]);case 1:return[4,(j=n.writeKey,S=n.cdnURL,O=null!=S?S:(0,e.Vl)(),(0,i.Z)("".concat(O,"/v1/projects/").concat(j,"/settings")).then((function(t){return t.ok?t.json():t.text().then((function(t){throw new Error(t)}))})).catch((function(t){throw console.error(t.message),t})))];case 2:h=I.sent(),I.label=3;case 3:return v=null===(a=null===(u=(d=h).integrations["Segment.io"])||void 0===u?void 0:u.retryQueue)||void 0===a||a,y=(0,t.pi)({retryQueue:v},r),m=new H(n,y),null===(c=J.attach)||void 0===c||c.call(J,m),g=null!==(l=n.plugins)&&void 0!==l?l:[],w._.initMetrics(d.metrics),function(t,e){e.push.apply(e,kt()),Pt(t,e),xt(t,e)}(m,o),[4,Mt(d,m,y,r,g)];case 4:return b=I.sent(),_=null!==(f=window.location.search)&&void 0!==f?f:"",x=null!==(p=window.location.hash)&&void 0!==p?p:"",(P=_.length?_:x.replace(/(?=#).*(?=\?)/,"")).includes("ajs_")?[4,m.queryString(P).catch(console.error)]:[3,6];case 5:I.sent(),I.label=6;case 6:return m.initialized=!0,m.emit("initialize",n,r),r.initialPageview&&m.page().catch(console.error),[4,At(m,o)];case 7:return I.sent(),[2,[m,b]]}var j,S,O}))}))}var Ft=function(e){function n(){var t,n,r,i=this,o=(r=new Promise((function(e,r){t=e,n=r})),{resolve:t,reject:n,promise:r}),s=o.promise,u=o.resolve;return i=e.call(this,(function(t){return s.then((function(e){return Et(e[0],e[1],t)}))}))||this,i._resolveLoadStart=function(t,e){return u([t,e])},i}return(0,t.ZT)(n,e),n.prototype.load=function(t,e){return void 0===e&&(e={}),this._resolveLoadStart(t,e),this},n.load=function(t,e){return void 0===e&&(e={}),(new n).load(t,e)},n.standalone=function(t,e){return n.load({writeKey:t},e).then((function(t){return t[0]}))},n}(St),Tt=s(584);function Jt(){var e,n;return(0,t.mG)(this,void 0,Promise,(function(){var r,i,o;return(0,t.Jh)(this,(function(t){switch(t.label){case 0:return r=function(){var t;if((0,Tt.M)())return(0,Tt.M)();if(window.analytics._writeKey)return window.analytics._writeKey;for(var e=/http.*\/analytics\.js\/v1\/([^/]*)(\/platform)?\/analytics.*/,n=void 0,r=0,i=Array.prototype.slice.call(document.querySelectorAll("script"));r=parseInt(o)}()){var Nt=document.createElement("script");Nt.setAttribute("src","https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.7.0/polyfill.min.js"),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(function(){return document.body.appendChild(Nt)})):document.body.appendChild(Nt),Nt.onload=function(){qt(Jt)}}else qt(Jt)}(),window.AnalyticsNext=u}(); //# sourceMappingURL=standalone.js.map