diff --git a/taplytics.min.js b/taplytics.min.js index 0ac7b2d..993d215 100644 --- a/taplytics.min.js +++ b/taplytics.min.js @@ -1,2 +1,2 @@ -!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=40)}([function(t,e){var r=0;function n(t){return void 0!==t&&r>=t}e.LOUD=3,e.DEBUG=2,e.LOG=1,e.USER=0,e.setPriorityLevel=function(t){r=t},e.log=function(t,e,r){n(r)&&(console.log("[Taplytics]",t),e&&console.dir(e))},e.time=function(t,r,o,i){if(n(i)){if(o)t=t+", time: "+((new Date).getTime()-o.getTime())+"ms";e.log(t,r,i)}},e.error=function(t,e,r){n(r)&&(console.error("[Taplytics]",t),e&&console.dir(e))}},function(t,e,r){var n=r(4),o=r(87),i=r(0),a=r(5),s=r(30),u=r(90),c=r(15),l=r(91),f=r(16),p=r(11),d=r(29),y="_tl_csid",h="_tl_duuid",m="_tl_suuid",g="_tl_uid",v="_tl_sid",b="_tl_auid",_="_tl_config",w=function(t,e){return t&&e?`tl_sopts_${t}_${e}`:null};e.config=null,e.hasLoadedData=!1,e.sessionExpirationMin=30,e.start=function(t){return e.updateCookieSession().setDeviceUUID(t)},e.get=function(t,r){if(t){e.tick();var o=e.getCookieSessionID(),a=w(o,t);if(a){if(!(r&&JSON&&JSON.parse))return n.get(a);var s=n.get(a);if(s&&"object"==typeof s)return s;try{return JSON.parse(s)}catch(e){return i.error("Session.get("+t+") failed to parse JSON.",e,i.DEBUG),s}}}},e.tick=function(){return e.updateCookieSession(),e},e.set=function(t,r,n){if(!t||void 0===r||0===(""+r).length)return!1;e.tick();var o=e.getCookieSessionID(),i=w(o,t),a=k(),s=r;return!!i&&(n&&JSON&&JSON.stringify&&(s=JSON.stringify(r)),O(i,s,{expires:a}),!0)},e.unset=function(t){if(!t)return!1;e.tick();var r=e.getCookieSessionID(),o=w(r,t);n.expire(o)},e.updateCookieSession=function(){var t=e.getCookieSessionID();t||(t=o.v4(),e.deleteSessionID());var r=k();return O(y,t,{expires:r}),i.log("Set cookieSessionID to: "+t,{expires:r},i.LOUD),e},e.setDeviceUUID=function(t){return(t=t||e.getDeviceUUID())||(t=o.v4()),O(h,t,{expires:new Date(2147483647e3)}),i.log("Set deviceUUID to: "+t,null,i.DEBUG),e},e.setSessionID=function(t){return O(v,t,{expires:k()}),i.log("Set sessionID to: "+t,null,i.DEBUG),e},e.deleteSessionID=function(){return n.expire(v),e},e.setAppUserID=function(t){return O(b,t,{expires:k()}),i.log("Set appUserID to: "+t,null,i.DEBUG),e},e.deleteAppUserID=function(){return n.expire(b),e},e.deleteSessionUUID=function(){n.expire(m)},e.setUserID=function(t){if(s.userBucketing&&!t){var r="TL_Anon_"+d();i.log("setting anon id",r),n.set(g,r)}else t&&n.set(g,t);return e},e.resetUserID=function(){return s.userBucketing?e.setUserID(null):n.expire(g),e},e.setCachedConfig=function(t){return function(t,e,r,o){if(p())return;n.setJSON(t,e,r,o)}(_,{expVarsNamesHistory:t?t.expVarsNamesHistory:{},expVarsNames:t?t.expVarsNames:{},expVarsIds:t?t.expVarsIds:{},dynamicVars:t?t.dynamicVars:{}},null,!0),e},e.getDeviceUUID=function(){var t=n.get(m);if(t)return t;var r=n.get(h);return t===r&&e.deleteSessionUUID(),r},e.getCookieSessionID=function(){return n.get(y)},e.getAppUserID=function(){return n.get(b)},e.getOrCreateUserID=function(){var t=e.getUserID();return t||(e.setUserID(null),e.getUserID())},e.getUserID=function(){return n.get(g)},e.getSessionID=function(){return n.get(v)},e.getCachedConfig=function(){return n.getJSON(_,!0)},e.getSessionAttributes=function(t){t=t||{};var e=c.toObject(),r=u();return t.sid=this.getSessionID(),t.ad=this.getDeviceUUID(),t.adt="browser",t.ct="browser",t.lv=a().production?"0":"1",t.sdk=a().sdkVersion,t.rfr=r.referrer,t.ub=s.userBucketing,t.exm=r.search.utm_medium,t.exs=r.search.utm_source,t.exc=r.search.utm_campaign,t.ext=r.search.utm_term,t.exct=r.search.utm_content,t.prms={search:r.search,location:e},navigator&&navigator.userAgent&&(t.prms.userAgent=navigator.userAgent),t},e.saveSessionConfig=function(t,r){var n,o;r&&!t&&(i.log("Using cached config because of server error",null,i.DEBUG),t=e.getCachedConfig()),e.config=t,E=!0,t&&t.app_user_id&&t.session_id&&(e.hasLoadedData=!0,e.setAppUserID(t.app_user_id),e.setSessionID(t.session_id),e.tick()),t&&e.setCachedConfig(t),null!==(n=t)&&void 0!==n&&null!==(o=n.goals)&&void 0!==o&&o.length&&e.trackClickGoals(t.goals),f.manualTriggerEdits||f.applyVisualEditsFromConfig(t),x.completePromises(!!t),(r||t&&t.app_user_id&&t.session_id)&&S.completePromises(!!t)};var S=new l({name:"sessionConfigPromises"});e.sessionConfigPromise=function(t,r){if(t)return e.hasLoadedData&&e.config?t(!0):void S.push(t,r)};var E=!1,x=new l({name:"configPromises"});function O(t,e,r){p()||(r?n.set(t,e,r):n.set(t,e))}function k(){return function(t,e,r){var n=new Date(t);switch(e.toLowerCase()){case"year":n.setFullYear(n.getFullYear()+r);break;case"quarter":n.setMonth(n.getMonth()+3*r);break;case"month":n.setMonth(n.getMonth()+r);break;case"week":n.setDate(n.getDate()+7*r);break;case"day":n.setDate(n.getDate()+r);break;case"hour":n.setTime(n.getTime()+36e5*r);break;case"minute":n.setTime(n.getTime()+6e4*r);break;case"second":n.setTime(n.getTime()+1e3*r);break;default:n=void 0}return n}(new Date,"minute",e.sessionExpirationMin)}e.configPromise=function(t){if(t)return E&&e.config?t(!0):void x.push(t)},e.waitForFetchPromise=function(t,r){t&&e.sessionConfigPromise((function(r){if(!r)return t(!1);if(e.hasLoadedData)return t(!0);var n=setInterval((function(){e.hasLoadedData&&(clearInterval(n),t(!0))}),100)}),r)},e.resetAll=function(){e.deleteAppUserID(),e.resetUserID(),e.resetSession()},e.resetSession=function(){e.deleteSessionID(),e.config=null,e.hasLoadedData=!1},e.trackClickGoals=function(t){var e=t.filter((function(t){var e;return null===(e=t.config)||void 0===e?void 0:e.webElementSelector}));e.length&&e.forEach((function(t){var e,r=document.querySelector(null===(e=t.config)||void 0===e?void 0:e.webElementSelector);r instanceof Element&&r.addEventListener("click",(function(){Taplytics.track(t.name)}))}))}},function(t,e,r){"use strict";r.r(e),r.d(e,"isNumber",(function(){return b})),r.d(e,"isString",(function(){return _})),r.d(e,"debounce",(function(){return w})),r.d(e,"isObjectLike",(function(){return S})),r.d(e,"values",(function(){return E})),r.d(e,"includes",(function(){return x})),r.d(e,"isEqual",(function(){return O})),r.d(e,"forEach",(function(){return k}));var n=r(33),o=r.n(n),i=r(34),a=r.n(i),s=r(35),u=r.n(s),c=r(36),l=r.n(c),f=r(6),p=r.n(f),d=r(37),y=r.n(d),h=r(38),m=r.n(h),g=r(39),v=r.n(g),b=m.a,_=y.a,w=v.a,S=p.a,E=l.a,x=u.a,O=a.a,k=o.a},function(t,e,r){var n=r(41),o=r(5),i=r(0),a=r(20),s=r(21),u=r(11),c=new a,l=!1;e.publicToken=null,e.setPublicToken=function(t){this.publicToken=t},e.get=p((function(t,r,o){if(u())return;var a=h(r),s=y(t);i.log("GET request: "+s,a,i.LOUD),n.get(s).query(a.query).timeout(e.timeout).end(f(s,o))})),e.getJSON=p((function(t,r){if(u())return;var a=function(t){return o().cdnAPI+(t||"")}(t);i.log("GET JSON file request: "+a,null,i.LOUD),n.get(a).timeout(e.timeout).end(f(a,r))})),e.post=p((function(t,e,r,o){if(u())return;var a=h(e,r),s=y(t);i.log("POST request: "+s,a,i.LOUD),n.post(s).query(a.query).set("Content-Type","application/json").send(a.payload).end(f(s,o))})),e.del=p((function(t,r,o,a){if(u())return;var s=h(r,o),c=y(t);i.log("DELETE request: "+c,s,i.LOUD),n.del(c).query(s.query).set("Content-Type","application/json").timeout(e.timeout).send(s.payload).end(f(c,a))}));function f(t,e){return function(r,n){r&&i.error("Error: "+t,r,i.DEBUG),e&&"function"==typeof e&&e(r,n),d()}}function p(t){return function(){c.enqueue({requestFunction:t,args:arguments}),l||d()}}function d(){if(!c.isEmpty()){l=!0;var t=c.dequeue();return i.log("Processing request",t,i.DEBUG),t&&t.requestFunction&&t.requestFunction.apply(e,t.args)}l=!1}function y(t,e){var r=o(),n=r.eventsAPI,i=r.baseAPI;return("events"===t&&n?n:i)+(t||"")+function(t){return t?"?"+s.stringify(t):""}(e)}function h(t,r){var n={},o={};return t&&"function"==typeof t?n=t():t&&(n=t),r&&"function"==typeof r?o=r():r&&(o=r),n.r_v="0",e.publicToken&&(n.public_token=e.publicToken),{query:n,payload:o}}e.timeout=4e3,e.setTimeout=function(t){var r=1e3*t;r>3e4?(i.error(`Timeout is larger then max timeout! timeout: ${t}s, max timeout: 30s. Using max timeout value.`,null,i.USER),e.timeout=3e4):r<1e3?(i.error(`Timeout is smaller then the min timeout! timeout: ${t}s, min timeout: 1s. Using min timeout value.`,null,i.USER),e.timeout=1e3):(i.log(`Set timeout: ${t}s`,null,i.LOUD),e.timeout=r)}},function(t,e,r){var n=r(0),o=r(2),i=r(5),a=r(86),s=r(13).CookieJar,u=r(13).Cookie,c=r(13).CookieAccessInfo,l=r(14).OPT_OUT_KEY;a.supported()||(n.log("Local Storage not supported",null,n.DEBUG),a=null);var f,p={cookieSessionID:"_tl_csid",deviceUUID:"_tl_duuid",sessionUUID:"_tl_suuid",sessionID:"_tl_sid",appUserID:"_tl_auid",userID:"_tl_uid"};function d(){return f||(f=new s,function(){if(f&&document.cookie&&document.cookie.length)for(var t=document.cookie.split(";"),e=0;e=3&&r[1].match(/^(com|edu|gov|net|mil|org|nom|co|ca|name|info|biz)$/i)?`.${r[2]}.${r[1]}.${r[0]}`:r&&r.length>1?`.${r[1]}.${r[0]}`:null},e.hasUserOptedOutTracking=function(){var t=e.getLS(l);return null===t?(null==a||(a.set(l,!1,null),n.log(`Setting local storage key: ${l} to value: false`,null,n.LOUD)),!1):t},e.getCookies=function(){var t=d(),r=new c(e.getCookieDomain());return t.getCookies(r)},e.removeAllCookies=function(){var t=d(),r=new c(e.getCookieDomain());t.getCookies(r).forEach((function(t){n.log("expiring tl session cookie "+t.name,t,n.DEBUG),e.expire(t.name,!1)})),Object.keys(p).forEach((function(t){e.expire(p[t],!1)}))};var y=void 0;e.getCookieSupport=function(){if(void 0!==y)return y;var t=!0;do{var e="gCStest="+Math.floor(1e8*Math.random());if(document.cookie=t?e+"; expires="+new Date("Tue, 01-Jan-2030 00:00:00").toUTCString():e,-1!==document.cookie.indexOf(e))return document.cookie=e+"; expires="+new Date("Sat, 01-Jan-2000 00:00:00 GMT").toUTCString(),y=t,t}while(!(t=!t));return y=null,null}},function(t,e,r){t.exports=function(){var t=r(17),e={cdnAPI:"https://cdn-config.taplytics.com/js/"};if("production"===t.env?(e.baseAPI="https://api.taplytics.com/public_api/v1/",e.eventsAPI="https://ping.taplytics.com/public_api/v1/"):"dev"===t.env||"development"===t.env?(e.baseAPI="https://dev.taplytics.com/public_api/v1/",e.eventsAPI="https://ping-dev.taplytics.com/public_api/v1/"):"stag"===t.env||"staging"===t.env?(e.baseAPI="https://api-staging.taplytics.com/public_api/v1/",e.eventsAPI="https://ping-staging.taplytics.com/public_api/v1/"):"staging-upcoming"===t.env?(e.baseAPI="https://api-staging-upcoming.taplytics.com/public_api/v1/",e.eventsAPI="https://ping-staging-upcoming.taplytics.com/public_api/v1/"):"local"===t.env&&(e.baseAPI="http://localhost:3001/public_api/v1/"),t&&t.api&&t.api.config){var n=t.api.config,o=n.apiAlias,i=n.pingAlias;o&&(e.baseAPI=o+"/public_api/v1/"),i&&(e.eventsAPI=i+"/public_api/v1/")}return e.eventsFlushQueueTimeout=4e3,e.functionFlushQueueTimeout=500,e.sdkVersion="2.25.1",e.cookieDomain=t&&t.api&&t.api.config&&t.api.config.cookieDomain?t.api.config.cookieDomain:null,e.production="production"===t.env,e}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){var n=r(63);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){"use strict";var n=SyntaxError,o=Function,i=TypeError,a=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new i},c=s?function(){try{return u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,l=r(49)(),f=Object.getPrototypeOf||function(t){return t.__proto__},p={},d="undefined"==typeof Uint8Array?void 0:f(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":n,"%ThrowTypeError%":c,"%TypedArray%":d,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},h={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(9),g=r(52),v=m.call(Function.call,Array.prototype.concat),b=m.call(Function.apply,Array.prototype.splice),_=m.call(Function.call,String.prototype.replace),w=m.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,x=function(t){var e=w(t,0,1),r=w(t,-1);if("%"===e&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new n("invalid intrinsic syntax, expected opening `%`");var o=[];return _(t,S,(function(t,e,r,n){o[o.length]=r?_(n,E,"$1"):e||t})),o},O=function(t,e){var r,o=t;if(g(h,o)&&(o="%"+(r=h[o])[0]+"%"),g(y,o)){var s=y[o];if(s===p&&(s=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=f(o.prototype))}return y[e]=r,r}(o)),void 0===s&&!e)throw new i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:s}}throw new n("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new i('"allowMissing" argument must be a boolean');var r=x(t),o=r.length>0?r[0]:"",a=O("%"+o+"%",e),u=a.name,c=a.value,l=!1,f=a.alias;f&&(o=f[0],b(r,v([0,1],f)));for(var p=1,d=!0;p=r.length){var S=s(c,h);c=(d=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:c[h]}else d=g(c,h),c=c[h];d&&!l&&(y[u]=c)}}return c}},function(t,e,r){"use strict";var n=r(51);t.exports=Function.prototype.bind||n},function(t,e,r){"use strict";var n=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(t){return n.call(t,o,"+")},RFC3986:function(t){return String(t)}},RFC1738:i,RFC3986:a}},function(t,e,r){var n=r(4);t.exports=function(){return n.hasUserOptedOutTracking()}},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){!function(){"use strict";function t(e,r,n,o){return this instanceof t?(this.domain=e||void 0,this.path=r||"/",this.secure=!!n,this.script=!!o,this):new t(e,r,n,o)}function r(t,e,n){return t instanceof r?t:this instanceof r?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(n||"/"),this.explicit_path=!1,this.domain=e||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,t&&this.parse(t,e,n),this):new r(t,e,n)}t.All=Object.freeze(Object.create(null)),e.CookieAccessInfo=t,e.Cookie=r,r.prototype.toString=function(){var t=[this.name+"="+this.value];return this.expiration_date!==1/0&&t.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&t.push("domain="+this.domain),this.path&&t.push("path="+this.path),this.secure&&t.push("secure"),this.noscript&&t.push("httponly"),t.join("; ")},r.prototype.toValueString=function(){return this.name+"="+this.value};var n=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function o(){var t,e;return this instanceof o?(t=Object.create(null),this.setCookie=function(n,o,i){var a,s;if(a=(n=new r(n,o,i)).expiration_date<=Date.now(),void 0!==t[n.name]){for(e=t[n.name],s=0;s1&&void 0!==arguments[1]?arguments[1]:[];if(t&&t.webModifications&&t.webElements){i.log("Apply visual edits from config",null,i.DEBUG);var r=s.buildUrlFromLocation(window.location);l(t.webModifications).forEach((function(n){var o;if(n){var a=t.webElements.find((function(t){return t._id===n._element}));if(!a)return i.error(`No web element found for _id: ${n._element}, modification: ${n._id}`,null,i.DEBUG);if(!e.length||e.some((function(t){var e="characterData"===t.type&&"text"===n.attributes.modType,r=t.target.contains(document.querySelector(a.selector));return e||r})))if(null!=n&&null!==(o=n._urlTargetingRules)&&void 0!==o&&o.length){var c=t.urlTargetingRules.filter((function(t){return n._urlTargetingRules.includes(t._id)}));s.matchUrlRules(c,r)&&u.applyModificationsToDOM({element:a,modification:n})}else(a.hostnameMatch||s.matchUrlsByPath(a.url,r))&&u.applyModificationsToDOM({element:a,modification:n})}}))}}},function(t,e,r){t.exports={api:r(18),init:r(94),isReady:r(99),identify:r(100),track:r(101),page:r(102),reset:r(103),propertiesLoaded:r(104),runningExperiments:r(105),variable:r(106),codeBlock:r(108),featureFlagEnabled:r(109),runningFeatureFlags:r(110),hasUserOptedOutTracking:r(11),optOutTracking:r(111),optInTracking:r(112),startNewSession:r(113)}},function(t,e,r){e.request=r(3),e.users=r(26),e.events=r(31),e.config=r(30),e.init=function(t){return!!(t&&t._in&&t._in.token)&&!!this.request.setPublicToken(t._in.token)}},function(t,e,r){"use strict";t.exports=function(t){return null!==t&&"object"==typeof t}},function(t,e){function r(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?t[0]:void 0}}},function(t,e,r){"use strict";var n=r(47),o=r(57),i=r(10);t.exports={formats:i,parse:o,stringify:n}},function(t,e,r){"use strict";var n=r(10),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===n.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n>>((3&e)<<3)&255;return o}}},function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,o=r;return[o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]]].join("")}},function(t,e,r){var n=r(27),o=r(28);t.exports=function(t,e,r){var i=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[i+s]=a[s];return e||o(a)}},function(t,e,r){function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r-1}},function(t,e,r){var n=r(77),o=r(79);t.exports=function(t){return null==t?[]:n(t,o(t))}},function(t,e,r){var n=r(25),o=r(12),i=r(6);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},function(t,e,r){var n=r(25),o=r(6);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},function(t,e,r){var n=r(80),o=r(81),i=r(85),a=Math.max,s=Math.min;t.exports=function(t,e,r){var u,c,l,f,p,d,y=0,h=!1,m=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(e){var r=u,n=c;return u=c=void 0,y=e,f=t.apply(n,r)}function b(t){return y=t,p=setTimeout(w,e),h?v(t):f}function _(t){var r=t-d;return void 0===d||r>=e||r<0||m&&t-y>=l}function w(){var t=o();if(_(t))return S(t);p=setTimeout(w,function(t){var r=e-(t-d);return m?s(r,l-(t-y)):r}(t))}function S(t){return p=void 0,g&&u?v(t):(u=c=void 0,f)}function E(){var t=o(),r=_(t);if(u=arguments,c=this,d=t,r){if(void 0===p)return b(d);if(m)return clearTimeout(p),p=setTimeout(w,e),v(d)}return void 0===p&&(p=setTimeout(w,e)),f}return e=i(e)||0,n(r)&&(h=!!r.leading,l=(m="maxWait"in r)?a(i(r.maxWait)||0,e):l,g="trailing"in r?!!r.trailing:g),E.cancel=function(){void 0!==p&&clearTimeout(p),y=0,u=d=c=p=void 0},E.flush=function(){return void 0===p?f:S(o())},E}},function(t,e,r){var n=r(17),o=r(0),i=r(5);e.Taplytics=window.Taplytics=t.exports=n,e.flushAppQueue=function(){if(o.log("flushAppQueue tick",window._tlq,o.LOUD),window._tlq&&window._tlq instanceof Array){var t=window._tlq.slice();if(window._tlq=[],Array.prototype.sort&&t.sort((function(t,e){if(t instanceof Array&&e instanceof Array){if("init"===t[0]&&"identify"===e[0])return-1;if("identify"===t[0]&&"init"===e[0])return 1;if("init"===t[0]||"identify"===t[0])return-1}return 2})),t.length>0){o.log("flushAppQueue: "+t.length,t,o.LOUD);for(var r=0;r=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==r){var n;try{n=e.status}catch(t){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var n=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.onprogress=n.bind(null,"download"),e.upload&&(e.upload.onprogress=n.bind(null,"upload"))}catch(t){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof r&&!this._isHost(r)){var o=this._header["content-type"],i=this._serializer||l.serialize[o?o.split(";")[0]:""];!i&&h(o)&&(i=l.serialize["application/json"]),i&&(r=i(r))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&e.setRequestHeader(a,this.header[a]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0!==r?r:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){u.prototype[t.toLowerCase()]=function(e,r){var n=new l.Request(t,e);return this._setDefaults(n),r&&n.end(r),n}})),u.prototype.del=u.prototype.delete,l.get=function(t,e,r){var n=l("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},l.head=function(t,e,r){var n=l("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},l.options=function(t,e,r){var n=l("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},l.del=v,l.delete=v,l.patch=function(t,e,r){var n=l("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},l.post=function(t,e,r){var n=l("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},l.put=function(t,e,r){var n=l("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}},function(t,e,r){function n(t){if(t)return function(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}(t)}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},n.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(t){console.error(t)}if(e&&e.status&&e.status>=500&&501!=e.status)return!0;if(t){if(t.code&&~i.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"==t.code)return!0;if(t.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function(t,e){if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){r.end((function(r,n){r?e(r):t(n)}))}))}return this._fullfilledPromise.then(t,e)},o.prototype.catch=function(t){return this.then(void 0,t)},o.prototype.use=function(t){return t(this),this},o.prototype.ok=function(t){if("function"!=typeof t)throw Error("Callback required");return this._okCallback=t,this},o.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},o.prototype.get=function(t){return this._header[t.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(t,e){if(n(t)){for(var r in t)this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},o.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},o.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),n(t)){for(var r in t)this.field(r,t[r]);return this}if(Array.isArray(e)){for(var o in e)this.field(t,e[o]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=""+e),this._getFormData().append(t,e),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization","Basic "+n(t+":"+e));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},o.prototype.withCredentials=function(t){return null==t&&(t=!0),this._withCredentials=t,this},o.prototype.redirects=function(t){return this._maxRedirects=t,this},o.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw TypeError("Invalid argument");return this._maxResponseSize=t,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(t){var e=n(t),r=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&n(this._data))for(var o in t)this._data[o]=t[o];else"string"==typeof t?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"==r?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||r||this.type("json"),this},o.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},o.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.substring(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,e)+"?"+r.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(t,e,r){if(!this._aborted){var n=new Error(t+e+"ms exceeded");n.timeout=e,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.abort(),this.callback(n)}},o.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(t,e,r){"use strict";var n=r(45);function o(t){if(t)return function(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}(t)}t.exports=o,o.prototype.get=function(t){return this.header[t.toLowerCase()]},o.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=n.type(e);var r=n.params(e);for(var o in r)this[o]=r[o];this.links={};try{t.link&&(this.links=n.parseLinks(t.link))}catch(t){}},o.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.created=201==t,this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t,this.unprocessableEntity=422==t}},function(t,e,r){"use strict";e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){return t.split(/ *; */).reduce((function(t,e){var r=e.split(/ *= */),n=r.shift(),o=r.shift();return n&&o&&(t[n]=o),t}),{})},e.parseLinks=function(t){return t.split(/ *, */).reduce((function(t,e){var r=e.split(/ *; */),n=r[0].slice(1,-1);return t[r[1].split(/ *= */)[1].slice(1,-1)]=n,t}),{})},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t,e){function r(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach((function(t){r.prototype[t]=function(){return this._defaults.push({fn:t,arguments:arguments}),this}})),r.prototype._setDefaults=function(t){this._defaults.forEach((function(e){t[e.fn].apply(t,e.arguments)}))},t.exports=r},function(t,e,r){"use strict";var n=r(48),o=r(22),i=r(10),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,l=function(t,e){c.apply(t,u(e)?e:[e])},f=Date.prototype.toISOString,p=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},y=function t(e,r,i,a,s,c,f,p,y,h,m,g,v,b,_){var w,S=e;if(_.has(e))throw new RangeError("Cyclic object value");if("function"==typeof f?S=f(r,S):S instanceof Date?S=h(S):"comma"===i&&u(S)&&(S=o.maybeMap(S,(function(t){return t instanceof Date?h(t):t}))),null===S){if(a)return c&&!v?c(r,d.encoder,b,"key",m):r;S=""}if("string"==typeof(w=S)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||o.isBuffer(S))return c?[g(v?r:c(r,d.encoder,b,"key",m))+"="+g(c(S,d.encoder,b,"value",m))]:[g(r)+"="+g(String(S))];var E,x=[];if(void 0===S)return x;if("comma"===i&&u(S))E=[{value:S.length>0?S.join(",")||null:void 0}];else if(u(f))E=f;else{var O=Object.keys(S);E=p?O.sort(p):O}for(var k=0;k0?_+b:""}},function(t,e,r){"use strict";var n=r(8),o=r(53),i=r(55),a=n("%TypeError%"),s=n("%WeakMap%",!0),u=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),y=o("Map.prototype.has",!0),h=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new a("Side channel does not contain "+i(t))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return c(t,n)}else if(u){if(e)return p(e,n)}else if(r)return function(t,e){var r=h(t,e);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return f(t,n)}else if(u){if(e)return y(e,n)}else if(r)return function(t,e){return!!h(t,e)}(r,n);return!1},set:function(n,o){s&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new s),l(t,n,o)):u?(e||(e=new u),d(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=h(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n}},function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(50);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,r){"use strict";var n="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.call(e))throw new TypeError(n+e);for(var r,a=o.call(arguments,1),s=function(){if(this instanceof r){var n=e.apply(this,a.concat(o.call(arguments)));return Object(n)===n?n:this}return e.apply(t,a.concat(o.call(arguments)))},u=Math.max(0,e.length-a.length),c=[],l=0;l-1?o(r):r}},function(t,e,r){"use strict";var n=r(9),o=r(8),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(n,a,arguments);if(u&&c){var r=u(e,"length");r.configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var f=function(){return s(n,i,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},function(t,e,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,w=Object.prototype.propertyIsEnumerable,S=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),E=r(56).custom,x=E&&A(E)?E:null,O="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag?Symbol.toStringTag:null;function k(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function D(t){return String(t).replace(/"/g,""")}function T(t){return!("[object Array]"!==P(t)||O&&"object"==typeof t&&O in t)}function A(t){if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!_)return!1;try{return _.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,n,o){var s=r||{};if(U(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(U(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!U(s,"customInspect")||s.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(U(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return t(e.slice(0,r.maxStringLength),r)+o}return k(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,I),"single",r)}(e,s);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var h=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=h&&h>0&&"object"==typeof e)return T(e)?"[Array]":"[Object]";var b=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(s,n);if(void 0===o)o=[];else if(C(o,e)>=0)return"[Circular]";function w(e,r,i){if(r&&(o=o.slice()).push(r),i){var a={depth:s.depth};return U(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,n+1,o)}return t(e,s,n+1,o)}if("function"==typeof e){var E=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),j=B(e,w);return"[Function"+(E?": "+E:" (anonymous)")+"]"+(j.length>0?" { "+j.join(", ")+" }":"")}if(A(e)){var F=_.call(e);return"object"==typeof e?N(F):F}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var q="<"+String(e.nodeName).toLowerCase(),G=e.attributes||[],V=0;V"}if(T(e)){if(0===e.length)return"[]";var H=B(e,w);return b&&!function(t){for(var e=0;e=0)return!1;return!0}(H)?"["+L(H,b)+"]":"[ "+H.join(", ")+" ]"}if(function(t){return!("[object Error]"!==P(t)||O&&"object"==typeof t&&O in t)}(e)){var $=B(e,w);return 0===$.length?"["+String(e)+"]":"{ ["+String(e)+"] "+$.join(", ")+" }"}if("object"==typeof e&&u){if(x&&"function"==typeof e[x])return e[x]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var J=[];return a.call(e,(function(t,r){J.push(w(r,e,!0)+" => "+w(t,e))})),R("Map",i.call(e),J,b)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var W=[];return l.call(e,(function(t){W.push(w(t,e))})),R("Set",c.call(e),W,b)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return M("WeakMap");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return M("WeakSet");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{return d.call(t),!0}catch(t){}return!1}(e))return M("WeakRef");if(function(t){return!("[object Number]"!==P(t)||O&&"object"==typeof t&&O in t)}(e))return N(w(Number(e)));if(function(t){if(!t||"object"!=typeof t||!v)return!1;try{return v.call(t),!0}catch(t){}return!1}(e))return N(w(v.call(e)));if(function(t){return!("[object Boolean]"!==P(t)||O&&"object"==typeof t&&O in t)}(e))return N(y.call(e));if(function(t){return!("[object String]"!==P(t)||O&&"object"==typeof t&&O in t)}(e))return N(w(String(e)));if(!function(t){return!("[object Date]"!==P(t)||O&&"object"==typeof t&&O in t)}(e)&&!function(t){return!("[object RegExp]"!==P(t)||O&&"object"==typeof t&&O in t)}(e)){var z=B(e,w),Q=S?S(e)===Object.prototype:e instanceof Object||e.constructor===Object,K=e instanceof Object?"":"null prototype",X=!Q&&O&&Object(e)===e&&O in e?P(e).slice(8,-1):K?"Object":"",Y=(Q||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(X||K?"["+[].concat(X||[],K||[]).join(": ")+"] ":"");return 0===z.length?Y+"{}":b?Y+"{"+L(z,b)+"}":Y+"{ "+z.join(", ")+" }"}return String(e)};var j=Object.prototype.hasOwnProperty||function(t){return t in this};function U(t,e){return j.call(t,e)}function P(t){return h.call(t)}function C(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r-1?t.split(","):t},c=function(t,e,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var f=0;r.depth>0&&null!==(s=a.exec(i))&&f=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:a[c]=o:a={0:o}}o=a}return o}(l,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var r,c={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,p=l.split(e.delimiter,f),d=-1,y=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(m=i(m)?[m]:m),o.call(c,h)?c[h]=n.combine(c[h],m):c[h]=m}return c}(t,r):t,f=r.plainObjects?Object.create(null):{},p=Object.keys(l),d=0;d-1}},function(t,e,r){var n=r(7);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(68),o=r(69),i=r(70);t.exports=function(t,e,r,a,s,u){var c=1&r,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(t),d=u.get(e);if(p&&d)return p==e&&d==t;var y=-1,h=!0,m=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++y-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(73),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,s){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var f=l;f--;){var p=c[f];if(!(u?p in e:o.call(e,p)))return!1}var d=s.get(t),y=s.get(e);if(d&&y)return d==e&&y==t;var h=!0;s.set(t,e),s.set(e,t);for(var m=u;++f=0;--r){var o=localStorage.key(r);(o=(o=o&&o.match(e))&&o[1])&&o.indexOf("-cacheexpiration")<0&&t(o,u(o))}}function y(t){var e=u(t);p(t),p(e)}function h(t){var e=u(t),r=l(e);if(r){var n=parseInt(r,10);if(c()>=n)return p(t),p(e),!0}}function m(t,e){o&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+t),e&&window.console.warn("lscache - The error was: "+e.message))}return{set:function(t,e,n){if(i()){if("string"!=typeof e){if(!s())return;try{e=JSON.stringify(e)}catch(t){return}}try{f(t,e)}catch(n){if(!a(n))return void m("Could not add item with key '"+t+"'",n);var o,h=[];d((function(t,e){var n=l(e);n=n?parseInt(n,10):r,h.push({key:t,size:(l(t)||"").length,expiration:n})})),h.sort((function(t,e){return e.expiration-t.expiration}));for(var g=(e||"").length;h.length&&g>0;)o=h.pop(),m("Cache is full, removing item with key '"+t+"'"),y(o.key),g-=o.size;try{f(t,e)}catch(e){return void m("Could not add item with key '"+t+"', perhaps it's too big?",e)}}n?f(u(t),(c()+n).toString(10)):p(u(t))}},get:function(t){if(!i())return null;if(h(t))return null;var e=l(t);if(!e||!s())return e;try{return JSON.parse(e)}catch(t){return e}},remove:function(t){i()&&y(t)},supported:function(){return i()},flush:function(){i()&&d((function(t){y(t)}))},flushExpired:function(){i()&&d((function(t){h(t)}))},setBucket:function(t){n=t},resetBucket:function(){n=""},enableWarnings:function(t){o=t}}},t.exports?t.exports=o():n.lscache=o()},function(t,e,r){var n=r(88),o=r(29),i=o;i.v1=n,i.v4=o,t.exports=i},function(t,e,r){var n,o,i=r(27),a=r(28),s=0,u=0;t.exports=function(t,e,r){var c=e&&r||0,l=e||[],f=(t=t||{}).node||n,p=void 0!==t.clockseq?t.clockseq:o;if(null==f||null==p){var d=i();null==f&&(f=n=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==p&&(p=o=16383&(d[6]<<8|d[7]))}var y=void 0!==t.msecs?t.msecs:(new Date).getTime(),h=void 0!==t.nsecs?t.nsecs:u+1,m=y-s+(h-u)/1e4;if(m<0&&void 0===t.clockseq&&(p=p+1&16383),(m<0||y>s)&&void 0===t.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=y,u=h,o=p;var g=(1e4*(268435455&(y+=122192928e5))+h)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var v=y/4294967296*1e4&268435455;l[c++]=v>>>8&255,l[c++]=255&v,l[c++]=v>>>24&15|16,l[c++]=v>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=f[b];return e||a(l)}},function(t,e){t.exports=function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}},function(t,e,r){var n=r(21);t.exports=function(){var t={},e=null;return location&&location.search&&location.search.length&&(t=n.parse(location.search.substr(1))),document&&document.referrer&&(e=document.referrer),{referrer:e,search:t}}},function(t,e,r){function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var o=r(0),i=r(1);t.exports=function(t){var e=this;if(!this.isReady())return o.error("Taplytics::identify: you have to call Taplytics.init first.",null,o.USER),this;if(!function(t){return!(!t||t&&"object"!=typeof t)}(t))return o.error("Taplytics::identify: you have to pass in an object with user attributes.",null,o.USER),this;(t.user_id||t.email)&&(i.hasLoadedData=!1);var r=function(t){for(var e={customData:{}},r=0,n=Object.keys(t);r=t}e.LOUD=3,e.DEBUG=2,e.LOG=1,e.USER=0,e.setPriorityLevel=function(t){r=t},e.log=function(t,e,r){n(r)&&(console.log("[Taplytics]",t),e&&console.dir(e))},e.time=function(t,r,o,i){if(n(i)){if(o)t=t+", time: "+((new Date).getTime()-o.getTime())+"ms";e.log(t,r,i)}},e.error=function(t,e,r){n(r)&&(console.error("[Taplytics]",t),e&&console.dir(e))}},function(t,e,r){var n=r(4),o=r(87),i=r(0),a=r(5),s=r(30),u=r(90),c=r(15),l=r(91),f=r(16),p=r(11),d=r(29),y="_tl_csid",h="_tl_duuid",g="_tl_suuid",m="_tl_uid",v="_tl_sid",b="_tl_auid",_="_tl_config",w=function(t,e){return t&&e?`tl_sopts_${t}_${e}`:null};e.config=null,e.hasLoadedData=!1,e.sessionExpirationMin=30,e.start=function(t){return e.updateCookieSession().setDeviceUUID(t)},e.get=function(t,r){if(t){e.tick();var o=e.getCookieSessionID(),a=w(o,t);if(a){if(!(r&&JSON&&JSON.parse))return n.get(a);var s=n.get(a);if(s&&"object"==typeof s)return s;try{return JSON.parse(s)}catch(e){return i.error("Session.get("+t+") failed to parse JSON.",e,i.DEBUG),s}}}},e.tick=function(){return e.updateCookieSession(),e},e.set=function(t,r,n){if(!t||void 0===r||0===(""+r).length)return!1;e.tick();var o=e.getCookieSessionID(),i=w(o,t),a=k(),s=r;return!!i&&(n&&JSON&&JSON.stringify&&(s=JSON.stringify(r)),x(i,s,{expires:a}),!0)},e.unset=function(t){if(!t)return!1;e.tick();var r=e.getCookieSessionID(),o=w(r,t);n.expire(o)},e.updateCookieSession=function(){var t=e.getCookieSessionID();t||(t=o.v4(),e.deleteSessionID());var r=k();return x(y,t,{expires:r}),i.log("Set cookieSessionID to: "+t,{expires:r},i.LOUD),e},e.setDeviceUUID=function(t){return(t=t||e.getDeviceUUID())||(t=o.v4()),x(h,t,{expires:new Date(2147483647e3)}),i.log("Set deviceUUID to: "+t,null,i.DEBUG),e},e.setSessionID=function(t){return x(v,t,{expires:k()}),i.log("Set sessionID to: "+t,null,i.DEBUG),e},e.deleteSessionID=function(){return n.expire(v),e},e.setAppUserID=function(t){return x(b,t,{expires:k()}),i.log("Set appUserID to: "+t,null,i.DEBUG),e},e.deleteAppUserID=function(){return n.expire(b),e},e.deleteSessionUUID=function(){n.expire(g)},e.setUserID=function(t){if(s.userBucketing&&!t){var r="TL_Anon_"+d();i.log("setting anon id",r),n.set(m,r)}else t&&n.set(m,t);return e},e.resetUserID=function(){return s.userBucketing?e.setUserID(null):n.expire(m),e},e.setCachedConfig=function(t){return function(t,e,r,o){if(p())return;n.setJSON(t,e,r,o)}(_,{expVarsNamesHistory:t?t.expVarsNamesHistory:{},expVarsNames:t?t.expVarsNames:{},expVarsIds:t?t.expVarsIds:{},dynamicVars:t?t.dynamicVars:{}},null,!0),e},e.getDeviceUUID=function(){var t=n.get(g);if(t)return t;var r=n.get(h);return t===r&&e.deleteSessionUUID(),r},e.getCookieSessionID=function(){return n.get(y)},e.getAppUserID=function(){return n.get(b)},e.getOrCreateUserID=function(){var t=e.getUserID();return t||(e.setUserID(null),e.getUserID())},e.getUserID=function(){return n.get(m)},e.getSessionID=function(){return n.get(v)},e.getCachedConfig=function(){return n.getJSON(_,!0)},e.getSessionAttributes=function(t){t=t||{};var e=c.toObject(),r=u();return t.sid=this.getSessionID(),t.ad=this.getDeviceUUID(),t.adt="browser",t.ct="browser",t.lv=a().production?"0":"1",t.sdk=a().sdkVersion,t.rfr=r.referrer,t.ub=s.userBucketing,t.exm=r.search.utm_medium,t.exs=r.search.utm_source,t.exc=r.search.utm_campaign,t.ext=r.search.utm_term,t.exct=r.search.utm_content,t.prms={search:r.search,location:e},navigator&&navigator.userAgent&&(t.prms.userAgent=navigator.userAgent),t},e.saveSessionConfig=function(t,r){var n,o;r&&!t&&(i.log("Using cached config because of server error",null,i.DEBUG),t=e.getCachedConfig()),e.config=t,E=!0,t&&t.app_user_id&&t.session_id&&(e.hasLoadedData=!0,e.setAppUserID(t.app_user_id),e.setSessionID(t.session_id),e.tick()),t&&e.setCachedConfig(t),null!==(n=t)&&void 0!==n&&null!==(o=n.goals)&&void 0!==o&&o.length&&e.trackClickGoals(t.goals),f.manualTriggerEdits||f.applyVisualEditsFromConfig(t),O.completePromises(!!t),(r||t&&t.app_user_id&&t.session_id)&&S.completePromises(!!t)};var S=new l({name:"sessionConfigPromises"});e.sessionConfigPromise=function(t,r){if(t)return e.hasLoadedData&&e.config?t(!0):void S.push(t,r)};var E=!1,O=new l({name:"configPromises"});function x(t,e,r){p()||(r?n.set(t,e,r):n.set(t,e))}function k(){return function(t,e,r){var n=new Date(t);switch(e.toLowerCase()){case"year":n.setFullYear(n.getFullYear()+r);break;case"quarter":n.setMonth(n.getMonth()+3*r);break;case"month":n.setMonth(n.getMonth()+r);break;case"week":n.setDate(n.getDate()+7*r);break;case"day":n.setDate(n.getDate()+r);break;case"hour":n.setTime(n.getTime()+36e5*r);break;case"minute":n.setTime(n.getTime()+6e4*r);break;case"second":n.setTime(n.getTime()+1e3*r);break;default:n=void 0}return n}(new Date,"minute",e.sessionExpirationMin)}e.configPromise=function(t){if(t)return E&&e.config?t(!0):void O.push(t)},e.waitForFetchPromise=function(t,r){t&&e.sessionConfigPromise((function(r){if(!r)return t(!1);if(e.hasLoadedData)return t(!0);var n=setInterval((function(){e.hasLoadedData&&(clearInterval(n),t(!0))}),100)}),r)},e.resetAll=function(){e.deleteAppUserID(),e.resetUserID(),e.resetSession()},e.resetSession=function(){e.deleteSessionID(),e.config=null,e.hasLoadedData=!1},e.trackClickGoals=function(t){var e=t.filter((function(t){var e;return null===(e=t.config)||void 0===e?void 0:e.webElementSelector}));e.length&&e.forEach((function(t){var e,r=document.querySelector(null===(e=t.config)||void 0===e?void 0:e.webElementSelector);r instanceof Element&&r.addEventListener("click",(function(){Taplytics.track(t.name)}))}))}},function(t,e,r){"use strict";r.r(e),r.d(e,"isNumber",(function(){return b})),r.d(e,"isString",(function(){return _})),r.d(e,"debounce",(function(){return w})),r.d(e,"isObjectLike",(function(){return S})),r.d(e,"values",(function(){return E})),r.d(e,"includes",(function(){return O})),r.d(e,"isEqual",(function(){return x})),r.d(e,"forEach",(function(){return k}));var n=r(33),o=r.n(n),i=r(34),a=r.n(i),s=r(35),u=r.n(s),c=r(36),l=r.n(c),f=r(6),p=r.n(f),d=r(37),y=r.n(d),h=r(38),g=r.n(h),m=r(39),v=r.n(m),b=g.a,_=y.a,w=v.a,S=p.a,E=l.a,O=u.a,x=a.a,k=o.a},function(t,e,r){var n=r(41),o=r(5),i=r(0),a=r(20),s=r(21),u=r(11),c=new a,l=!1;e.publicToken=null,e.setPublicToken=function(t){this.publicToken=t},e.get=p((function(t,r,o){if(u())return;var a=h(r),s=y(t);i.log("GET request: "+s,a,i.LOUD),n.get(s).query(a.query).timeout(e.timeout).end(f(s,o))})),e.getJSON=p((function(t,r){if(u())return;var a=function(t){return o().cdnAPI+(t||"")}(t);i.log("GET JSON file request: "+a,null,i.LOUD),n.get(a).timeout(e.timeout).end(f(a,r))})),e.post=p((function(t,e,r,o){if(u())return;var a=h(e,r),s=y(t);i.log("POST request: "+s,a,i.LOUD),n.post(s).query(a.query).set("Content-Type","application/json").send(a.payload).end(f(s,o))})),e.del=p((function(t,r,o,a){if(u())return;var s=h(r,o),c=y(t);i.log("DELETE request: "+c,s,i.LOUD),n.del(c).query(s.query).set("Content-Type","application/json").timeout(e.timeout).send(s.payload).end(f(c,a))}));function f(t,e){return function(r,n){r&&i.error("Error: "+t,r,i.DEBUG),e&&"function"==typeof e&&e(r,n),d()}}function p(t){return function(){c.enqueue({requestFunction:t,args:arguments}),l||d()}}function d(){if(!c.isEmpty()){l=!0;var t=c.dequeue();return i.log("Processing request",t,i.DEBUG),t&&t.requestFunction&&t.requestFunction.apply(e,t.args)}l=!1}function y(t,e){var r=o(),n=r.eventsAPI,i=r.baseAPI;return("events"===t&&n?n:i)+(t||"")+function(t){return t?"?"+s.stringify(t):""}(e)}function h(t,r){var n={},o={};return t&&"function"==typeof t?n=t():t&&(n=t),r&&"function"==typeof r?o=r():r&&(o=r),n.r_v="0",e.publicToken&&(n.public_token=e.publicToken),{query:n,payload:o}}e.timeout=4e3,e.setTimeout=function(t){var r=1e3*t;r>3e4?(i.error(`Timeout is larger then max timeout! timeout: ${t}s, max timeout: 30s. Using max timeout value.`,null,i.USER),e.timeout=3e4):r<1e3?(i.error(`Timeout is smaller then the min timeout! timeout: ${t}s, min timeout: 1s. Using min timeout value.`,null,i.USER),e.timeout=1e3):(i.log(`Set timeout: ${t}s`,null,i.LOUD),e.timeout=r)}},function(t,e,r){var n=r(0),o=r(2),i=r(5),a=r(86),s=r(13).CookieJar,u=r(13).Cookie,c=r(13).CookieAccessInfo,l=r(14).OPT_OUT_KEY;a.supported()||(n.log("Local Storage not supported",null,n.DEBUG),a=null);var f,p={cookieSessionID:"_tl_csid",deviceUUID:"_tl_duuid",sessionUUID:"_tl_suuid",sessionID:"_tl_sid",appUserID:"_tl_auid",userID:"_tl_uid"};function d(){return f||(f=new s,function(){if(f&&document.cookie&&document.cookie.length)for(var t=document.cookie.split(";"),e=0;e=3&&r[1].match(/^(com|edu|gov|net|mil|org|nom|co|ca|name|info|biz)$/i)?`.${r[2]}.${r[1]}.${r[0]}`:r&&r.length>1?`.${r[1]}.${r[0]}`:null},e.hasUserOptedOutTracking=function(){var t=e.getLS(l);return null===t?(null==a||(a.set(l,!1,null),n.log(`Setting local storage key: ${l} to value: false`,null,n.LOUD)),!1):t},e.getCookies=function(){var t=d(),r=new c(e.getCookieDomain());return t.getCookies(r)},e.removeAllCookies=function(){var t=d(),r=new c(e.getCookieDomain());t.getCookies(r).forEach((function(t){n.log("expiring tl session cookie "+t.name,t,n.DEBUG),e.expire(t.name,!1)})),Object.keys(p).forEach((function(t){e.expire(p[t],!1)}))};var y=void 0;e.getCookieSupport=function(){if(void 0!==y)return y;var t=!0;do{var e="gCStest="+Math.floor(1e8*Math.random());if(document.cookie=t?e+"; expires="+new Date("Tue, 01-Jan-2030 00:00:00").toUTCString():e,-1!==document.cookie.indexOf(e))return document.cookie=e+"; expires="+new Date("Sat, 01-Jan-2000 00:00:00 GMT").toUTCString(),y=t,t}while(!(t=!t));return y=null,null}},function(t,e,r){t.exports=function(){var t=r(17),e={cdnAPI:"https://cdn-config.taplytics.com/js/"};if("production"===t.env?(e.baseAPI="https://api.taplytics.com/public_api/v1/",e.eventsAPI="https://ping.taplytics.com/public_api/v1/"):"dev"===t.env||"development"===t.env?(e.baseAPI="https://dev.taplytics.com/public_api/v1/",e.eventsAPI="https://ping-dev.taplytics.com/public_api/v1/"):"stag"===t.env||"staging"===t.env?(e.baseAPI="https://api-staging.taplytics.com/public_api/v1/",e.eventsAPI="https://ping-staging.taplytics.com/public_api/v1/"):"staging-upcoming"===t.env?(e.baseAPI="https://api-staging-upcoming.taplytics.com/public_api/v1/",e.eventsAPI="https://ping-staging-upcoming.taplytics.com/public_api/v1/"):"local"===t.env&&(e.baseAPI="http://localhost:3001/public_api/v1/"),t&&t.api&&t.api.config){var n=t.api.config,o=n.apiAlias,i=n.pingAlias;o&&(e.baseAPI=o+"/public_api/v1/"),i&&(e.eventsAPI=i+"/public_api/v1/")}return e.eventsFlushQueueTimeout=4e3,e.functionFlushQueueTimeout=500,e.sdkVersion="2.26.0",e.cookieDomain=t&&t.api&&t.api.config&&t.api.config.cookieDomain?t.api.config.cookieDomain:null,e.production="production"===t.env,e}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){var n=r(63);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){"use strict";var n=SyntaxError,o=Function,i=TypeError,a=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new i},c=s?function(){try{return u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,l=r(49)(),f=Object.getPrototypeOf||function(t){return t.__proto__},p={},d="undefined"==typeof Uint8Array?void 0:f(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":n,"%ThrowTypeError%":c,"%TypedArray%":d,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},h={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=r(9),m=r(52),v=g.call(Function.call,Array.prototype.concat),b=g.call(Function.apply,Array.prototype.splice),_=g.call(Function.call,String.prototype.replace),w=g.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,O=function(t){var e=w(t,0,1),r=w(t,-1);if("%"===e&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new n("invalid intrinsic syntax, expected opening `%`");var o=[];return _(t,S,(function(t,e,r,n){o[o.length]=r?_(n,E,"$1"):e||t})),o},x=function(t,e){var r,o=t;if(m(h,o)&&(o="%"+(r=h[o])[0]+"%"),m(y,o)){var s=y[o];if(s===p&&(s=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=f(o.prototype))}return y[e]=r,r}(o)),void 0===s&&!e)throw new i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:s}}throw new n("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new i('"allowMissing" argument must be a boolean');var r=O(t),o=r.length>0?r[0]:"",a=x("%"+o+"%",e),u=a.name,c=a.value,l=!1,f=a.alias;f&&(o=f[0],b(r,v([0,1],f)));for(var p=1,d=!0;p=r.length){var S=s(c,h);c=(d=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:c[h]}else d=m(c,h),c=c[h];d&&!l&&(y[u]=c)}}return c}},function(t,e,r){"use strict";var n=r(51);t.exports=Function.prototype.bind||n},function(t,e,r){"use strict";var n=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(t){return n.call(t,o,"+")},RFC3986:function(t){return String(t)}},RFC1738:i,RFC3986:a}},function(t,e,r){var n=r(4);t.exports=function(){return n.hasUserOptedOutTracking()}},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){!function(){"use strict";function t(e,r,n,o){return this instanceof t?(this.domain=e||void 0,this.path=r||"/",this.secure=!!n,this.script=!!o,this):new t(e,r,n,o)}function r(t,e,n){return t instanceof r?t:this instanceof r?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(n||"/"),this.explicit_path=!1,this.domain=e||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,t&&this.parse(t,e,n),this):new r(t,e,n)}t.All=Object.freeze(Object.create(null)),e.CookieAccessInfo=t,e.Cookie=r,r.prototype.toString=function(){var t=[this.name+"="+this.value];return this.expiration_date!==1/0&&t.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&t.push("domain="+this.domain),this.path&&t.push("path="+this.path),this.secure&&t.push("secure"),this.noscript&&t.push("httponly"),t.join("; ")},r.prototype.toValueString=function(){return this.name+"="+this.value};var n=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function o(){var t,e;return this instanceof o?(t=Object.create(null),this.setCookie=function(n,o,i){var a,s;if(a=(n=new r(n,o,i)).expiration_date<=Date.now(),void 0!==t[n.name]){for(e=t[n.name],s=0;s1&&void 0!==arguments[1]?arguments[1]:[];if(t&&t.webModifications&&t.webElements){i.log("Apply visual edits from config",null,i.DEBUG);var r=s.buildUrlFromLocation(window.location);l(t.webModifications).forEach((function(n){var o;if(n){var a=t.webElements.find((function(t){return t._id===n._element}));if(!a)return i.error(`No web element found for _id: ${n._element}, modification: ${n._id}`,null,i.DEBUG);if(!e.length||e.some((function(t){var e="characterData"===t.type&&"text"===n.attributes.modType,r=t.target.contains(document.querySelector(a.selector));return e||r})))if(null!=n&&null!==(o=n._urlTargetingRules)&&void 0!==o&&o.length){var c=t.urlTargetingRules.filter((function(t){return n._urlTargetingRules.includes(t._id)}));s.matchUrlRules(c,r)&&u.applyModificationsToDOM({element:a,modification:n})}else(a.hostnameMatch||s.matchUrlsByPath(a.url,r))&&u.applyModificationsToDOM({element:a,modification:n})}}))}}},function(t,e,r){t.exports={api:r(18),init:r(94),isReady:r(100),identify:r(101),track:r(102),page:r(103),reset:r(104),propertiesLoaded:r(105),runningExperiments:r(106),variable:r(107),codeBlock:r(109),featureFlagEnabled:r(110),runningFeatureFlags:r(111),hasUserOptedOutTracking:r(11),optOutTracking:r(112),optInTracking:r(113),startNewSession:r(114)}},function(t,e,r){e.request=r(3),e.users=r(26),e.events=r(31),e.config=r(30),e.init=function(t){return!!(t&&t._in&&t._in.token)&&!!this.request.setPublicToken(t._in.token)}},function(t,e,r){"use strict";t.exports=function(t){return null!==t&&"object"==typeof t}},function(t,e){function r(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?t[0]:void 0}}},function(t,e,r){"use strict";var n=r(47),o=r(57),i=r(10);t.exports={formats:i,parse:o,stringify:n}},function(t,e,r){"use strict";var n=r(10),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===n.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n>>((3&e)<<3)&255;return o}}},function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,o=r;return[o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]]].join("")}},function(t,e,r){var n=r(27),o=r(28);t.exports=function(t,e,r){var i=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[i+s]=a[s];return e||o(a)}},function(t,e,r){function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r-1}},function(t,e,r){var n=r(77),o=r(79);t.exports=function(t){return null==t?[]:n(t,o(t))}},function(t,e,r){var n=r(25),o=r(12),i=r(6);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},function(t,e,r){var n=r(25),o=r(6);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},function(t,e,r){var n=r(80),o=r(81),i=r(85),a=Math.max,s=Math.min;t.exports=function(t,e,r){var u,c,l,f,p,d,y=0,h=!1,g=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(e){var r=u,n=c;return u=c=void 0,y=e,f=t.apply(n,r)}function b(t){return y=t,p=setTimeout(w,e),h?v(t):f}function _(t){var r=t-d;return void 0===d||r>=e||r<0||g&&t-y>=l}function w(){var t=o();if(_(t))return S(t);p=setTimeout(w,function(t){var r=e-(t-d);return g?s(r,l-(t-y)):r}(t))}function S(t){return p=void 0,m&&u?v(t):(u=c=void 0,f)}function E(){var t=o(),r=_(t);if(u=arguments,c=this,d=t,r){if(void 0===p)return b(d);if(g)return clearTimeout(p),p=setTimeout(w,e),v(d)}return void 0===p&&(p=setTimeout(w,e)),f}return e=i(e)||0,n(r)&&(h=!!r.leading,l=(g="maxWait"in r)?a(i(r.maxWait)||0,e):l,m="trailing"in r?!!r.trailing:m),E.cancel=function(){void 0!==p&&clearTimeout(p),y=0,u=d=c=p=void 0},E.flush=function(){return void 0===p?f:S(o())},E}},function(t,e,r){var n=r(17),o=r(0),i=r(5);e.Taplytics=window.Taplytics=t.exports=n,e.flushAppQueue=function(){if(o.log("flushAppQueue tick",window._tlq,o.LOUD),window._tlq&&window._tlq instanceof Array){var t=window._tlq.slice();if(window._tlq=[],Array.prototype.sort&&t.sort((function(t,e){if(t instanceof Array&&e instanceof Array){if("init"===t[0]&&"identify"===e[0])return-1;if("identify"===t[0]&&"init"===e[0])return 1;if("init"===t[0]||"identify"===t[0])return-1}return 2})),t.length>0){o.log("flushAppQueue: "+t.length,t,o.LOUD);for(var r=0;r=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==r){var n;try{n=e.status}catch(t){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var n=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.onprogress=n.bind(null,"download"),e.upload&&(e.upload.onprogress=n.bind(null,"upload"))}catch(t){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof r&&!this._isHost(r)){var o=this._header["content-type"],i=this._serializer||l.serialize[o?o.split(";")[0]:""];!i&&h(o)&&(i=l.serialize["application/json"]),i&&(r=i(r))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&e.setRequestHeader(a,this.header[a]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0!==r?r:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){u.prototype[t.toLowerCase()]=function(e,r){var n=new l.Request(t,e);return this._setDefaults(n),r&&n.end(r),n}})),u.prototype.del=u.prototype.delete,l.get=function(t,e,r){var n=l("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},l.head=function(t,e,r){var n=l("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},l.options=function(t,e,r){var n=l("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},l.del=v,l.delete=v,l.patch=function(t,e,r){var n=l("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},l.post=function(t,e,r){var n=l("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},l.put=function(t,e,r){var n=l("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}},function(t,e,r){function n(t){if(t)return function(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}(t)}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},n.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(t){console.error(t)}if(e&&e.status&&e.status>=500&&501!=e.status)return!0;if(t){if(t.code&&~i.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"==t.code)return!0;if(t.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function(t,e){if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){r.end((function(r,n){r?e(r):t(n)}))}))}return this._fullfilledPromise.then(t,e)},o.prototype.catch=function(t){return this.then(void 0,t)},o.prototype.use=function(t){return t(this),this},o.prototype.ok=function(t){if("function"!=typeof t)throw Error("Callback required");return this._okCallback=t,this},o.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},o.prototype.get=function(t){return this._header[t.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(t,e){if(n(t)){for(var r in t)this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},o.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},o.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),n(t)){for(var r in t)this.field(r,t[r]);return this}if(Array.isArray(e)){for(var o in e)this.field(t,e[o]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=""+e),this._getFormData().append(t,e),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization","Basic "+n(t+":"+e));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},o.prototype.withCredentials=function(t){return null==t&&(t=!0),this._withCredentials=t,this},o.prototype.redirects=function(t){return this._maxRedirects=t,this},o.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw TypeError("Invalid argument");return this._maxResponseSize=t,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(t){var e=n(t),r=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&n(this._data))for(var o in t)this._data[o]=t[o];else"string"==typeof t?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"==r?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||r||this.type("json"),this},o.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},o.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.substring(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,e)+"?"+r.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(t,e,r){if(!this._aborted){var n=new Error(t+e+"ms exceeded");n.timeout=e,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.abort(),this.callback(n)}},o.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(t,e,r){"use strict";var n=r(45);function o(t){if(t)return function(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}(t)}t.exports=o,o.prototype.get=function(t){return this.header[t.toLowerCase()]},o.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=n.type(e);var r=n.params(e);for(var o in r)this[o]=r[o];this.links={};try{t.link&&(this.links=n.parseLinks(t.link))}catch(t){}},o.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.created=201==t,this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t,this.unprocessableEntity=422==t}},function(t,e,r){"use strict";e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){return t.split(/ *; */).reduce((function(t,e){var r=e.split(/ *= */),n=r.shift(),o=r.shift();return n&&o&&(t[n]=o),t}),{})},e.parseLinks=function(t){return t.split(/ *, */).reduce((function(t,e){var r=e.split(/ *; */),n=r[0].slice(1,-1);return t[r[1].split(/ *= */)[1].slice(1,-1)]=n,t}),{})},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t,e){function r(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach((function(t){r.prototype[t]=function(){return this._defaults.push({fn:t,arguments:arguments}),this}})),r.prototype._setDefaults=function(t){this._defaults.forEach((function(e){t[e.fn].apply(t,e.arguments)}))},t.exports=r},function(t,e,r){"use strict";var n=r(48),o=r(22),i=r(10),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,l=function(t,e){c.apply(t,u(e)?e:[e])},f=Date.prototype.toISOString,p=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},y=function t(e,r,i,a,s,c,f,p,y,h,g,m,v,b,_){var w,S=e;if(_.has(e))throw new RangeError("Cyclic object value");if("function"==typeof f?S=f(r,S):S instanceof Date?S=h(S):"comma"===i&&u(S)&&(S=o.maybeMap(S,(function(t){return t instanceof Date?h(t):t}))),null===S){if(a)return c&&!v?c(r,d.encoder,b,"key",g):r;S=""}if("string"==typeof(w=S)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||o.isBuffer(S))return c?[m(v?r:c(r,d.encoder,b,"key",g))+"="+m(c(S,d.encoder,b,"value",g))]:[m(r)+"="+m(String(S))];var E,O=[];if(void 0===S)return O;if("comma"===i&&u(S))E=[{value:S.length>0?S.join(",")||null:void 0}];else if(u(f))E=f;else{var x=Object.keys(S);E=p?x.sort(p):x}for(var k=0;k0?_+b:""}},function(t,e,r){"use strict";var n=r(8),o=r(53),i=r(55),a=n("%TypeError%"),s=n("%WeakMap%",!0),u=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),y=o("Map.prototype.has",!0),h=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new a("Side channel does not contain "+i(t))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return c(t,n)}else if(u){if(e)return p(e,n)}else if(r)return function(t,e){var r=h(t,e);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return f(t,n)}else if(u){if(e)return y(e,n)}else if(r)return function(t,e){return!!h(t,e)}(r,n);return!1},set:function(n,o){s&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new s),l(t,n,o)):u?(e||(e=new u),d(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=h(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n}},function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(50);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,r){"use strict";var n="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.call(e))throw new TypeError(n+e);for(var r,a=o.call(arguments,1),s=function(){if(this instanceof r){var n=e.apply(this,a.concat(o.call(arguments)));return Object(n)===n?n:this}return e.apply(t,a.concat(o.call(arguments)))},u=Math.max(0,e.length-a.length),c=[],l=0;l-1?o(r):r}},function(t,e,r){"use strict";var n=r(9),o=r(8),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(n,a,arguments);if(u&&c){var r=u(e,"length");r.configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var f=function(){return s(n,i,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},function(t,e,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,h=Object.prototype.toString,g=Function.prototype.toString,m=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,w=Object.prototype.propertyIsEnumerable,S=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),E=r(56).custom,O=E&&T(E)?E:null,x="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag?Symbol.toStringTag:null;function k(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function A(t){return String(t).replace(/"/g,""")}function D(t){return!("[object Array]"!==P(t)||x&&"object"==typeof t&&x in t)}function T(t){if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!_)return!1;try{return _.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,n,o){var s=r||{};if(U(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(U(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!U(s,"customInspect")||s.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(U(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return t(e.slice(0,r.maxStringLength),r)+o}return k(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,I),"single",r)}(e,s);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var h=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=h&&h>0&&"object"==typeof e)return D(e)?"[Array]":"[Object]";var b=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(s,n);if(void 0===o)o=[];else if(C(o,e)>=0)return"[Circular]";function w(e,r,i){if(r&&(o=o.slice()).push(r),i){var a={depth:s.depth};return U(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,n+1,o)}return t(e,s,n+1,o)}if("function"==typeof e){var E=function(t){if(t.name)return t.name;var e=m.call(g.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),j=B(e,w);return"[Function"+(E?": "+E:" (anonymous)")+"]"+(j.length>0?" { "+j.join(", ")+" }":"")}if(T(e)){var F=_.call(e);return"object"==typeof e?N(F):F}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var q="<"+String(e.nodeName).toLowerCase(),G=e.attributes||[],V=0;V"}if(D(e)){if(0===e.length)return"[]";var H=B(e,w);return b&&!function(t){for(var e=0;e=0)return!1;return!0}(H)?"["+L(H,b)+"]":"[ "+H.join(", ")+" ]"}if(function(t){return!("[object Error]"!==P(t)||x&&"object"==typeof t&&x in t)}(e)){var $=B(e,w);return 0===$.length?"["+String(e)+"]":"{ ["+String(e)+"] "+$.join(", ")+" }"}if("object"==typeof e&&u){if(O&&"function"==typeof e[O])return e[O]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var J=[];return a.call(e,(function(t,r){J.push(w(r,e,!0)+" => "+w(t,e))})),R("Map",i.call(e),J,b)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var W=[];return l.call(e,(function(t){W.push(w(t,e))})),R("Set",c.call(e),W,b)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return M("WeakMap");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return M("WeakSet");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{return d.call(t),!0}catch(t){}return!1}(e))return M("WeakRef");if(function(t){return!("[object Number]"!==P(t)||x&&"object"==typeof t&&x in t)}(e))return N(w(Number(e)));if(function(t){if(!t||"object"!=typeof t||!v)return!1;try{return v.call(t),!0}catch(t){}return!1}(e))return N(w(v.call(e)));if(function(t){return!("[object Boolean]"!==P(t)||x&&"object"==typeof t&&x in t)}(e))return N(y.call(e));if(function(t){return!("[object String]"!==P(t)||x&&"object"==typeof t&&x in t)}(e))return N(w(String(e)));if(!function(t){return!("[object Date]"!==P(t)||x&&"object"==typeof t&&x in t)}(e)&&!function(t){return!("[object RegExp]"!==P(t)||x&&"object"==typeof t&&x in t)}(e)){var z=B(e,w),Q=S?S(e)===Object.prototype:e instanceof Object||e.constructor===Object,K=e instanceof Object?"":"null prototype",X=!Q&&x&&Object(e)===e&&x in e?P(e).slice(8,-1):K?"Object":"",Y=(Q||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(X||K?"["+[].concat(X||[],K||[]).join(": ")+"] ":"");return 0===z.length?Y+"{}":b?Y+"{"+L(z,b)+"}":Y+"{ "+z.join(", ")+" }"}return String(e)};var j=Object.prototype.hasOwnProperty||function(t){return t in this};function U(t,e){return j.call(t,e)}function P(t){return h.call(t)}function C(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r-1?t.split(","):t},c=function(t,e,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var f=0;r.depth>0&&null!==(s=a.exec(i))&&f=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:a[c]=o:a={0:o}}o=a}return o}(l,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var r,c={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,p=l.split(e.delimiter,f),d=-1,y=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(g=i(g)?[g]:g),o.call(c,h)?c[h]=n.combine(c[h],g):c[h]=g}return c}(t,r):t,f=r.plainObjects?Object.create(null):{},p=Object.keys(l),d=0;d-1}},function(t,e,r){var n=r(7);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(68),o=r(69),i=r(70);t.exports=function(t,e,r,a,s,u){var c=1&r,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(t),d=u.get(e);if(p&&d)return p==e&&d==t;var y=-1,h=!0,g=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++y-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(73),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,s){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var f=l;f--;){var p=c[f];if(!(u?p in e:o.call(e,p)))return!1}var d=s.get(t),y=s.get(e);if(d&&y)return d==e&&y==t;var h=!0;s.set(t,e),s.set(e,t);for(var g=u;++f=0;--r){var o=localStorage.key(r);(o=(o=o&&o.match(e))&&o[1])&&o.indexOf("-cacheexpiration")<0&&t(o,u(o))}}function y(t){var e=u(t);p(t),p(e)}function h(t){var e=u(t),r=l(e);if(r){var n=parseInt(r,10);if(c()>=n)return p(t),p(e),!0}}function g(t,e){o&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+t),e&&window.console.warn("lscache - The error was: "+e.message))}return{set:function(t,e,n){if(i()){if("string"!=typeof e){if(!s())return;try{e=JSON.stringify(e)}catch(t){return}}try{f(t,e)}catch(n){if(!a(n))return void g("Could not add item with key '"+t+"'",n);var o,h=[];d((function(t,e){var n=l(e);n=n?parseInt(n,10):r,h.push({key:t,size:(l(t)||"").length,expiration:n})})),h.sort((function(t,e){return e.expiration-t.expiration}));for(var m=(e||"").length;h.length&&m>0;)o=h.pop(),g("Cache is full, removing item with key '"+t+"'"),y(o.key),m-=o.size;try{f(t,e)}catch(e){return void g("Could not add item with key '"+t+"', perhaps it's too big?",e)}}n?f(u(t),(c()+n).toString(10)):p(u(t))}},get:function(t){if(!i())return null;if(h(t))return null;var e=l(t);if(!e||!s())return e;try{return JSON.parse(e)}catch(t){return e}},remove:function(t){i()&&y(t)},supported:function(){return i()},flush:function(){i()&&d((function(t){y(t)}))},flushExpired:function(){i()&&d((function(t){h(t)}))},setBucket:function(t){n=t},resetBucket:function(){n=""},enableWarnings:function(t){o=t}}},t.exports?t.exports=o():n.lscache=o()},function(t,e,r){var n=r(88),o=r(29),i=o;i.v1=n,i.v4=o,t.exports=i},function(t,e,r){var n,o,i=r(27),a=r(28),s=0,u=0;t.exports=function(t,e,r){var c=e&&r||0,l=e||[],f=(t=t||{}).node||n,p=void 0!==t.clockseq?t.clockseq:o;if(null==f||null==p){var d=i();null==f&&(f=n=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==p&&(p=o=16383&(d[6]<<8|d[7]))}var y=void 0!==t.msecs?t.msecs:(new Date).getTime(),h=void 0!==t.nsecs?t.nsecs:u+1,g=y-s+(h-u)/1e4;if(g<0&&void 0===t.clockseq&&(p=p+1&16383),(g<0||y>s)&&void 0===t.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=y,u=h,o=p;var m=(1e4*(268435455&(y+=122192928e5))+h)%4294967296;l[c++]=m>>>24&255,l[c++]=m>>>16&255,l[c++]=m>>>8&255,l[c++]=255&m;var v=y/4294967296*1e4&268435455;l[c++]=v>>>8&255,l[c++]=255&v,l[c++]=v>>>24&15|16,l[c++]=v>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=f[b];return e||a(l)}},function(t,e){t.exports=function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}},function(t,e,r){var n=r(21);t.exports=function(){var t={},e=null;return location&&location.search&&location.search.length&&(t=n.parse(location.search.substr(1))),document&&document.referrer&&(e=document.referrer),{referrer:e,search:t}}},function(t,e,r){function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var o=r(0),i=r(1);t.exports=function(t){var e=this;if(!this.isReady())return o.error("Taplytics::identify: you have to call Taplytics.init first.",null,o.USER),this;if(!function(t){return!(!t||t&&"object"!=typeof t)}(t))return o.error("Taplytics::identify: you have to pass in an object with user attributes.",null,o.USER),this;(t.user_id||t.email)&&(i.hasLoadedData=!1);var r=function(t){for(var e={customData:{}},r=0,n=Object.keys(t);r