!function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=50)}([function(e,t,i){"use strict";i.r(t),i.d(t,"__extends",function(){return r}),i.d(t,"__assign",function(){return o}),i.d(t,"__rest",function(){return s}),i.d(t,"__decorate",function(){return a}),i.d(t,"__param",function(){return d}),i.d(t,"__metadata",function(){return p}),i.d(t,"__awaiter",function(){return u}),i.d(t,"__generator",function(){return l}),i.d(t,"__createBinding",function(){return c}),i.d(t,"__exportStar",function(){return f}),i.d(t,"__values",function(){return y}),i.d(t,"__read",function(){return g}),i.d(t,"__spread",function(){return m}),i.d(t,"__spreadArrays",function(){return h}),i.d(t,"__await",function(){return v}),i.d(t,"__asyncGenerator",function(){return _}),i.d(t,"__asyncDelegator",function(){return b}),i.d(t,"__asyncValues",function(){return E}),i.d(t,"__makeTemplateObject",function(){return T}),i.d(t,"__importStar",function(){return O}),i.d(t,"__importDefault",function(){return w}),i.d(t,"__classPrivateFieldGet",function(){return A}),i.d(t,"__classPrivateFieldSet",function(){return k}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function r(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var o=function(){return(o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}function d(e,t){return function(i,n){t(i,n,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{d(n.next(e))}catch(e){o(e)}}function a(e){try{d(n.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(s,a)}d((n=n.apply(e,t||[])).next())})}function l(e,t){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}function m(){for(var e=[],t=0;t1||a(e,t)})})}function a(e,t){try{(i=r[e](t)).value instanceof v?Promise.resolve(i.value.v).then(d,p):u(o[0][2],i)}catch(e){u(o[0][3],e)}var i}function d(e){a("next",e)}function p(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function b(e){var t,i;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,r){t[n]=e[n]?function(t){return(i=!i)?{value:v(e[n](t)),done:"return"===n}:r?r(t):t}:r}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise(function(n,r){(function(e,t,i,n){Promise.resolve(n).then(function(t){e({value:t,done:i})},t)})(n,r,(t=e[i](t)).done,t.value)})}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&c(t,e,i);return N(t,e),t}function w(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function k(e,t,i){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,i),i}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(53),o=i(55),s=i(56),a=i(15),d=i(6),p=i(59),u=i(16),l=i(60),c=i(69),f=i(31),y=i(76),g=i(85),m=i(87),h=i(89);t.FOOTPRINT_LIVE_DOMAIN="footprint-ingestor.tekoapis.com",t.FOOTPRINT_DEV_DOMAIN="footprint-ingestor.dev.tekoapis.net";var v="https://"+t.FOOTPRINT_LIVE_DOMAIN,_="https://"+t.FOOTPRINT_DEV_DOMAIN,b=v+"/v1/batch-send",E=_+"/v1/batch-send";t.TRACKING_LIVE="tracking.tekoapis.com",t.TRACKING_DEV="tracking.develop.tekoapis.net",t.getFootPrintEndpoint=function(e){return e.includes(t.TRACKING_LIVE)?b:E},t.getFootPrintHost=function(e){return e.includes(t.TRACKING_LIVE)?v:_},t.canSendToFootPrint=function(e,i){return i.includes(t.TRACKING_LIVE),!0},t.castInt=function(e){return void 0===e?e:g(e||0)},t.capitalize=function(e){return""+e.slice(0,1).toUpperCase()+e.slice(1).toLowerCase()},t.camelize=function(e,i){void 0===i&&(i="_");var n=e.split(i),r=[n[0]];return n.slice(1).forEach(function(e){return r.push(t.capitalize(e))}),r.join("")},t.upperCamelize=function(e,i){void 0===i&&(i="_");var n=e.split(i),r=[f(n[0])];return n.slice(1).forEach(function(e){return r.push(t.capitalize(e))}),r.join("")},t.getResource=function(e){var t=e.GlobalTrackerNamespace;return Array.isArray(t)?{nameSpace:t[0]||a.defaultProps.nameSpace,host:t[1]||a.defaultProps.host}:a.defaultProps},t.getUUID=function(){return s()},t.getTimeNow=function(e){void 0===e&&(e="ms");var t="s"===e?Math.floor(d.default.getOffsetTime()/1e3):d.default.getOffsetTime(),i="s"===e?1e3:1;return Math.floor((Date.now()-t)/i)},t.findGeneric=function(e,i){if(!Array.isArray(e))return null;var n=t.filter(e,i);return n?n[0]:null},t.some=function(e,t){if(!Array.isArray(e))return!1;for(var i=!1,n=0,r=e;n=200||2==r.status){var e=Date.now(),n=r.response;try{var o=JSON.parse(n);if(!o||!o.time_result||!o.time_result.formatted_time)return i();var s=e-new Date(o.time_result.formatted_time).getTime();d.default.setOffsetTime(s),t.setCookie(t.getCookieName(a.OFFSET_KEY),""+s,a.OFFSET_KEY_EXPIRED)}catch(e){console.log(e)}}i()},r.onerror=function(){i()},r.send())},O=function(e){return new Promise(function(i){var n=t.getCookie(t.getCookieName(a.OFFSET_KEY));if(n){var r=parseInt(n);isNaN(r)?N(e,i):d.default.setOffsetTime(r),i(null)}else N(e,i)})};t.decodeWrapper=function(e){try{return decodeURI?decodeURI(e):e}catch(t){return e}},t.encodeWrapper=function(e){try{var i=t.decodeWrapper(e);return encodeURI?encodeURI(i):i}catch(t){return e}},t.getUrlParameter=function(e,t){var i=new RegExp("[\\?&#]"+t+"=([^&#]*)").exec(e);return i?decodeURIComponent(i[1]):""},t.isSiteHostName=function(e){for(var i=0;i0&&e.slice(r)===n)return!0}}return!1},t.loadReferrerAttributionCookie=function(){var e=t.getCookie(t.getCookieName("ref"));if(e.length)try{if(e=JSON.parse(e),u(e))return e}catch(e){}return["","",0,""]},t.loadCampaignAttributionCookie=function(){var e=t.getCookie(t.getCookieName("campaign"));if(e.length)try{if(e=JSON.parse(e),u(e))return e}catch(e){}return["","","","","",""]},t.loadCampaignObject=function(){var e=t.loadCampaignAttributionCookie();return t.reduce(e,function(e,i,n){return e[m(t.configCampaignNameParameters[n])]=i||"",e},{})};var w=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"];t.trim=function(e){return e?t.encodeWrapper((""+e).trim()):""},t.startsUrlWithTrackerUrl=function(e,t){return e&&t&&0===String(t).indexOf(e)},t.setAnyAttribute=function(e,t,i){e&&t&&(e.setAttribute?e.setAttribute(t,i):e[t]=i)};t.getOrigin=function(e){try{e=Array.isArray(e)?e.join(""):e;var i=document.createElement("a");0!==e.indexOf("//")&&0!==e.indexOf("http")&&(0===e.indexOf("*")&&(e=e.substr(1)),0===e.indexOf(".")&&(e=e.substr(1)),e="http://"+e);var n=t.toAbsoluteUrl(e);if(i.href=n,i.origin)return i.origin;var r=t.toAbsoluteUrl(e).split("/"),o=r[0],s=r[2];return o&&s?o+"//"+s+"/":t.toAbsoluteUrl(e)}catch(t){return console.error(e),""}};var A=function(e){var i=document.createElement("a");return 0!==e.indexOf("//")&&0!==e.indexOf("http")&&(0===e.indexOf("*")&&(e=e.substr(1)),0===e.indexOf(".")&&(e=e.substr(1)),e="http://"+e),i.href=t.toAbsoluteUrl(e),i.pathname?i.pathname:""},k=function(e,t){var i,n="(^| )(tracker[_-]"+t;if(e)for(i=0;i0&&e.slice(i)===t)return!0}return!1}function S(e){var t=e.length;return"."===e.charAt(--t)&&(e=e.slice(0,t)),"*."===e.slice(0,2)&&(e=e.slice(1)),-1!==e.indexOf("/")&&(e=e.substr(0,e.indexOf("/"))),e}function I(e,t){l(t,"/")||(t="/"+t),l(e,"/")||(e="/"+e);var i="/"===t||"/*"===t;return!!i||(e===t||(t=String(t).toLowerCase(),e=String(e).toLowerCase(),c(t,"*")?!!(i=!(t=t.slice(0,-1))||"/"===t)||(e===t||0===e.indexOf(t)):(c(e,"/")||(e+="/"),c(t,"/")||(t+="/"),0===e.indexOf(t))))}t.getLinkIfShouldBeProcessed=function(e,i){if(i=function(e){var i;for(i=e.parentNode;null!==i&&i&&!t.isLinkElement(e);)i=(e=i).parentNode;return e}(i),!t.hasNodeAttribute(i,"href"))return null;if(!i.href)return null;var n=t.getAttributeValueFromNode(i,"href");if(t.startsUrlWithTrackerUrl(e,n))return null;var r=i.pathname||A(i.href),o=i.hostname||t.getHostName(i.href),s=o.toLowerCase(),a=i.href.replace(o,s);if(!new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i").test(a)){var d=function(e,i,n,r){var o=k(t.configDownloadClasses,"download"),s=k(t.configLinkClasses,"link"),a=new RegExp("\\.("+w.join("|")+")([?&#]|$)","i");return s.test(e)?"link":r||o.test(e)||a.test(i)?"download":n?0:"link"}(i.className,a,function(e,i){for(var n=0;nr?-1:1}),e.length<=1)return e;for(var i=0,n=0,r=[],o=e[i++];o;)o===e[i]&&(n=r.push(i)),o=e[i++]||null;for(;n--;)e.splice(r[n],1);return e};t.isNodeVisible=function(e){var t=p.isVisible(e),i=function(e){if(!e||!e.getBoundingClientRect||1!==e.nodeType)return!0;var t=e.getBoundingClientRect(),i=document.documentElement||{clientWidth:0,clientHeight:0},n=i.clientWidth;window.innerWidth&&n>window.innerWidth&&(n=window.innerWidth);var r=i.clientHeight;window.innerHeight&&r>window.innerHeight&&(r=window.innerHeight);var o=t.top<=r&&t.top+t.height>=0,s=t.left<=n&&t.left+t.width>=0;return o&&s}(e);return t&&i},t.isDefined=function(e){return"undefined"!==typeof e},t.getTypeElement=function(e){return e.nodeName&&"INPUT"===e.nodeName.toUpperCase()?e.type:""},t.getPageOffsets=function(){var e=document.compatMode&&"BackCompat"!==document.compatMode?document.documentElement:document.body;return[e.scrollLeft||window.pageXOffset,e.scrollTop||window.pageYOffset]},t.cleanOffset=function(e){var t=Math.round(e);return isNaN(t)?0:t},t.getSubjectProto=function(e){var t=e.schemaName;return"tracking-tracking.v3."+y(t)+".proto"},t.getDocumentCookies=function(){var e=window.document.cookie;return e||""},t.convertTypeProto=function(e){var i=e.split("-")[1].replace("web_","").replace(".proto","").split("."),n=i[0],r=i[1],o=i[2];return[n,r,t.upperCamelize(o,"_")].join(".")},t.marshalProtoToJson=function(e,i){var n=t.convertTypeProto(e),r=h.lookupType(n),o=function(e){for(var t=window.atob(e),i=t.length,n=new Array(i),r=0;rthis.maxXOffset&&(this.maxXOffset=e)},e.prototype.updateYoffset=function(e){ethis.maxYOffset&&(this.maxYOffset=e)},e}();t.default=a},function(e,t,i){"use strict";var n,r,o=e.exports=i(7),s=i(37);o.codegen=i(102),o.fetch=i(103),o.path=i(104),o.fs=o.inquire("fs"),o.toArray=function(e){if(e){for(var t=Object.keys(e),i=new Array(t.length),n=0;n0)t[r]=e(t[r]||{},i,n);else{var o=t[r];o&&(n=[].concat(o).concat(n)),t[r]=n}return t}(e,t=t.split("."),i)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(i(47)))}})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),r=i(15),o=new(function(){return function(){var e=this;this.pageName="",this.href="",this.viewId="",this.marketingAttr={},this.terminal=void 0,this.channel=void 0,this.contentType=r.CONTENT_TYPE_OTHER,this.offsetTime=0,this.configConversionAttributionFirstReferrer=!1,this.isTrackOnlyVisibleContentEnabled=!1,this.useSubDomain=!1,this.trackedContentImpressions=[],this.clearTrackedContentImpressions=function(){e.trackedContentImpressions=[]},this.setOffsetTime=function(t){void 0===t&&(t=0),e.offsetTime=t},this.getOffsetTime=function(){return e.offsetTime},this.getMarketingAttr=function(){return e.marketingAttr},this.setMarketingAttr=function(t){return e.marketingAttr=t||{}},this.getHref=function(){return n.encodeWrapper(e.href)||window.document.location.href},this.getContentType=function(){return e.contentType||r.CONTENT_TYPE_OTHER},this.getPageName=function(){return e.pageName||window.document.title||"unknown"},this.setPageName=function(t){t&&(e.pageName=t.toString())},this.setHref=function(t){t&&(e.href=n.toAbsoluteUrl(t.toString().trim()))},this.setContentType=function(t){t&&(e.contentType=t)},this.generateViewId=function(){e.viewId=n.getUUID()},this.getViewId=function(){return e.viewId},this.getChannel=function(){return e.channel},this.getTerminal=function(){return e.terminal},this.setChannel=function(t){e.channel=t},this.setTerminal=function(t){e.terminal=t},this.setUseSubDomain=function(t){void 0===t&&(t=!1),e.useSubDomain=t},this.getUseSubDomain=function(){return e.useSubDomain}}}());t.default=o},function(e,t,i){"use strict";(function(e){var n=t;function r(e,t,i){for(var n=Object.keys(t),r=0;r0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var i=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(i.lo,i.hi,t):i.toNumber(Boolean(t))},n.merge=r,n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(e){for(var t={},i=0;i-1;--i)if(1===t[e[i]]&&void 0!==this[e[i]]&&null!==this[e[i]])return e[i]}},n.oneOfSetter=function(e){return function(t){for(var i=0;it)return!0;return!1},u.isReservedName=function(e,t){if(e)for(var i=0;i0;){var n=e.shift();if(i.nested&&i.nested[n]){if(!((i=i.nested[n])instanceof u))throw Error("path conflicts with non-namespace objects")}else i.add(i=new u(n))}return t&&i.addJSON(t),i},u.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return n}else if(n instanceof u&&(n=n.lookup(e.slice(1),t,!0)))return n}else for(var r=0;r>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[i++]=127&e.lo|128,e.lo=e.lo>>>7;t[i++]=e.lo}function m(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}l.create=c(),l.alloc=function(e){return new r.Array(e)},r.Array!==Array&&(l.alloc=r.pool(l.alloc,r.Array.prototype.subarray)),l.prototype._push=function(e,t,i){return this.tail=this.tail.next=new d(e,t,i),this.len+=t,this},y.prototype=Object.create(d.prototype),y.prototype.fn=function(e,t,i){for(;e>127;)t[i++]=127&e|128,e>>>=7;t[i]=e},l.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},l.prototype.int32=function(e){return e<0?this._push(g,10,o.fromNumber(e)):this.uint32(e)},l.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},l.prototype.uint64=function(e){var t=o.from(e);return this._push(g,t.length(),t)},l.prototype.int64=l.prototype.uint64,l.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(g,t.length(),t)},l.prototype.bool=function(e){return this._push(f,1,e?1:0)},l.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},l.prototype.sfixed32=l.prototype.fixed32,l.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},l.prototype.sfixed64=l.prototype.fixed64,l.prototype.float=function(e){return this._push(r.float.writeFloatLE,4,e)},l.prototype.double=function(e){return this._push(r.float.writeDoubleLE,8,e)};var h=r.Array.prototype.set?function(e,t,i){t.set(e,i)}:function(e,t,i){for(var n=0;n>>0;if(!t)return this._push(f,1,0);if(r.isString(e)){var i=l.alloc(t=s.length(e));s.decode(e,i,0),e=i}return this.uint32(t)._push(h,t,e)},l.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(f,1,0)},l.prototype.fork=function(){return this.states=new u(this),this.head=this.tail=new d(p,0,0),this.len=0,this},l.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new d(p,0,0),this.len=0),this},l.prototype.ldelim=function(){var e=this.head,t=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=e.next,this.tail=t,this.len+=i),this},l.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),i=0;e;)e.fn(e.val,t,i),i+=e.len,e=e.next;return t},l._configure=function(e){n=e,l.create=c(),n._configure()}},function(e,t,i){"use strict";e.exports=d;var n,r=i(7),o=r.LongBits,s=r.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function d(e){this.buf=e,this.pos=0,this.len=e.length}var p,u="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new d(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new d(e);throw Error("illegal buffer")},l=function(){return r.Buffer?function(e){return(d.create=function(e){return r.Buffer.isBuffer(e)?new n(e):u(e)})(e)}:u};function c(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function f(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function y(){if(this.pos+8>this.len)throw a(this,8);return new o(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}d.create=l(),d.prototype._slice=r.Array.prototype.subarray||r.Array.prototype.slice,d.prototype.uint32=(p=4294967295,function(){if(p=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return p;if(p=(p|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return p;if(p=(p|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return p;if(p=(p|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return p;if(p=(p|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return p;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return p}),d.prototype.int32=function(){return 0|this.uint32()},d.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},d.prototype.bool=function(){return 0!==this.uint32()},d.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return f(this.buf,this.pos+=4)},d.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|f(this.buf,this.pos+=4)},d.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=r.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},d.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=r.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},d.prototype.bytes=function(){var e=this.uint32(),t=this.pos,i=this.pos+e;if(i>this.len)throw a(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,i):t===i?new this.buf.constructor(0):this._slice.call(this.buf,t,i)},d.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},d.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},d.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},d._configure=function(e){n=e,d.create=l(),n._configure();var t=r.Long?"toLong":"toNumber";r.merge(d.prototype,{int64:function(){return c.call(this)[t](!1)},uint64:function(){return c.call(this)[t](!0)},sint64:function(){return c.call(this).zzDecode()[t](!1)},fixed64:function(){return y.call(this)[t](!0)},sfixed64:function(){return y.call(this)[t](!1)}})}},function(e,t,i){"use strict";e.exports=s;var n=i(10);((s.prototype=Object.create(n.prototype)).constructor=s).className="OneOf";var r=i(11),o=i(5);function s(e,t,i,r){if(Array.isArray(t)||(i=t,t=void 0),n.call(this,e,i),void 0!==t&&!Array.isArray(t))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=r}function a(e){if(e.parent)for(var t=0;t-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=t?e:t)),e}},function(e,t,i){var n=i(61),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();e.exports=o},function(e,t,i){var n=i(64),r=i(67),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||r(e)&&n(e)==o}},function(e,t,i){var n=i(70)("toUpperCase");e.exports=n},function(e,t){var i=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return i.test(e)}},function(e,t,i){var n=i(77),r=i(78),o=i(81),s=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(r(t).replace(s,"")),e,"")}}},function(e,t,i){"use strict";e.exports=function(e,t){var i=new Array(arguments.length-1),n=0,r=2,o=!0;for(;r>>0,8|r.mapKey[p.keyType],p.keyType),void 0===c?i("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",u,t):i(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,l,t),i("}")("}")):p.repeated?(i("if(%s!=null&&%s.length){",t,t),p.packed&&void 0!==r.packed[l]?i("w.uint32(%i).fork()",(p.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",l,t)("w.ldelim()"):(i("for(var i=0;i<%s.length;++i)",t),void 0===c?s(i,p,u,t+"[i]"):i("w.uint32(%i).%s(%s[i])",(p.id<<3|c)>>>0,l,t)),i("}")):(p.optional&&i("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,p.name),void 0===c?s(i,p,u,t):i("w.uint32(%i).%s(%s)",(p.id<<3|c)>>>0,l,t))}return i("return w")};var n=i(8),r=i(14),o=i(5);function s(e,t,i,n){return t.resolvedType.group?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",i,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",i,n,(t.id<<3|2)>>>0)}},function(e,t,i){"use strict";e.exports=v;var n=i(13);((v.prototype=Object.create(n.prototype)).constructor=v).className="Type";var r=i(8),o=i(24),s=i(11),a=i(40),d=i(41),p=i(25),u=i(23),l=i(22),c=i(5),f=i(38),y=i(43),g=i(44),m=i(45),h=i(46);function v(e,t){n.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function _(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(v.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t>>3){");for(var i=0;i>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===r.basic[d]?t("value=types[%i].decode(r,r.uint32())",i):t("value=r.%s()",d),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==r.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',p):t("%s[k]=value",p)):a.repeated?(t("if(!(%s&&%s.length))",p,p)("%s=[]",p),void 0!==r.packed[d]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":d=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,d)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,d?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,i,n){if(t.resolvedType)t.resolvedType instanceof r?e("d%s=o.enums===String?types[%i].values[m%s]:m%s",n,i,n,n):e("d%s=types[%i].toObject(m%s,o)",n,i,n);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,o?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,i=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return i("return new this.ctor");i("var m=new this.ctor");for(var n=0;n-1){var i=e.substring(t);if(i in s)return i}return null}function l(e,t){try{if(u.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),u.isString(t)){o.filename=e;var n,s=o(t,r,i),l=0;if(s.imports)for(;l-1))if(r.files.push(e),e in s)a?l(e,s[e]):(++y,setTimeout(function(){--y,l(e,s[e])}));else if(a){var i;try{i=u.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||d(e))}l(e,i)}else++y,r.fetch(e,function(i,o){--y,n&&(i?t?y||d(null,r):d(i):l(e,o))})}var y=0;u.isString(t)&&(t=[t]);for(var g,m=0;m-1&&this.deferred.splice(t,1)}}else if(e instanceof d)f.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var i=0;i0&&s.map(i,function(e){var i;return(i=window)[t].apply(i,e)})}},l=function(e){var t=e.nameSpace;window[t]=function(){for(var e=[],t=0;t>>((3&t)<<3)&255;return r}}},function(e,t){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,r=i;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isVisible=function(e){return!!e&&function(e){if(!o(e))return!1;var t="0"===r(e,"opacity"),i="none"===r(e,"display"),n="hidden"===r(e,"visibility");return!(t||i||n)&&s(e)}(e)};var n=function(e){return"hidden"===r(e,"overflow")},r=function(e,t){var i=window.getComputedStyle?document.defaultView.getComputedStyle(e,null):e.currentStyle;return t?i[t]:i},o=function(e){for(;e=e.parentNode;)if(e==document)return!0;return!1},s=function(e){for(var t=a(e.getBoundingClientRect());e=e.parentNode;)if(9!==e.nodeType&&n(e)){var i=a(e.getBoundingClientRect()),r=t.startX>=i.startX&&t.endX<=i.endX,o=t.startY>=i.startY&&t.endY<=i.endY;if(!r||!o)return!1}return!0},a=function(e){var t=e.x,i=e.width,n=e.y,r=e.height;return{startX:parseInt(t),endX:parseInt(t)+parseInt(i),startY:parseInt(n),endY:parseInt(n)+parseInt(r)}};t.default=t.isVisible},function(e,t,i){var n=i(28),r=i(18),o=i(20),s=i(9);e.exports=function(e,t,i){return e=s(e),i=null==i?0:n(o(i),0,e.length),t=r(t),e.slice(i,i+t.length)==t}},function(e,t,i){(function(t){var i="object"==typeof t&&t&&t.Object===Object&&t;e.exports=i}).call(this,i(12))},function(e,t){e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i=0&&e.slice(i,d)==t}},function(e,t,i){var n=i(71),r=i(32),o=i(73),s=i(9);e.exports=function(e){return function(t){t=s(t);var i=r(t)?o(t):void 0,a=i?i[0]:t.charAt(0),d=i?n(i,1).join(""):t.slice(1);return a[e]()+d}}},function(e,t,i){var n=i(72);e.exports=function(e,t,i){var r=e.length;return i=void 0===i?r:i,!t&&i>=r?e:n(e,t,i)}},function(e,t){e.exports=function(e,t,i){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(r);++n1&&"="===e.charAt(t);)++i;return Math.ceil(3*e.length)/4-i};for(var r=new Array(64),o=new Array(123),s=0;s<64;)o[r[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;n.encode=function(e,t,i){for(var n,o=null,s=[],a=0,d=0;t>2],n=(3&p)<<4,d=1;break;case 1:s[a++]=r[n|p>>4],n=(15&p)<<2,d=2;break;case 2:s[a++]=r[n|p>>6],s[a++]=r[63&p],d=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return d&&(s[a++]=r[n],s[a++]=61,1===d&&(s[a++]=61)),o?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};n.decode=function(e,t,i){for(var n,r=i,s=0,a=0;a1)break;if(void 0===(d=o[d]))throw Error("invalid encoding");switch(s){case 0:n=d,s=1;break;case 1:t[i++]=n<<2|(48&d)>>4,n=d,s=2;break;case 2:t[i++]=(15&n)<<4|(60&d)>>2,n=d,s=3;break;case 3:t[i++]=(3&n)<<6|d,s=0}}if(1===s)throw Error("invalid encoding");return i-r},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},function(e,t,i){"use strict";function n(){this._listeners={}}e.exports=n,n.prototype.on=function(e,t,i){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:i||this}),this},n.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var i=this._listeners[e],n=0;n0?0:2147483648,i,n);else if(isNaN(t))e(2143289344,i,n);else if(t>3.4028234663852886e38)e((r<<31|2139095040)>>>0,i,n);else if(t<1.1754943508222875e-38)e((r<<31|Math.round(t/1.401298464324817e-45))>>>0,i,n);else{var o=Math.floor(Math.log(t)/Math.LN2);e((r<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,i,n)}}function i(e,t,i){var n=e(t,i),r=2*(n>>31)+1,o=n>>>23&255,s=8388607&n;return 255===o?s?NaN:r*(1/0):0===o?1.401298464324817e-45*r*s:r*Math.pow(2,o-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=i.bind(null,s),e.readFloatBE=i.bind(null,a)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),i=new Uint8Array(t.buffer),n=128===i[7];function r(e,n,r){t[0]=e,n[r]=i[0],n[r+1]=i[1],n[r+2]=i[2],n[r+3]=i[3],n[r+4]=i[4],n[r+5]=i[5],n[r+6]=i[6],n[r+7]=i[7]}function o(e,n,r){t[0]=e,n[r]=i[7],n[r+1]=i[6],n[r+2]=i[5],n[r+3]=i[4],n[r+4]=i[3],n[r+5]=i[2],n[r+6]=i[1],n[r+7]=i[0]}function s(e,n){return i[0]=e[n],i[1]=e[n+1],i[2]=e[n+2],i[3]=e[n+3],i[4]=e[n+4],i[5]=e[n+5],i[6]=e[n+6],i[7]=e[n+7],t[0]}function a(e,n){return i[7]=e[n],i[6]=e[n+1],i[5]=e[n+2],i[4]=e[n+3],i[3]=e[n+4],i[2]=e[n+5],i[1]=e[n+6],i[0]=e[n+7],t[0]}e.writeDoubleLE=n?r:o,e.writeDoubleBE=n?o:r,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,i,n,r,o){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,r,o+t),e(1/n>0?0:2147483648,r,o+i);else if(isNaN(n))e(0,r,o+t),e(2146959360,r,o+i);else if(n>1.7976931348623157e308)e(0,r,o+t),e((s<<31|2146435072)>>>0,r,o+i);else{var a;if(n<2.2250738585072014e-308)e((a=n/5e-324)>>>0,r,o+t),e((s<<31|a/4294967296)>>>0,r,o+i);else{var d=Math.floor(Math.log(n)/Math.LN2);1024===d&&(d=1023),e(4503599627370496*(a=n*Math.pow(2,-d))>>>0,r,o+t),e((s<<31|d+1023<<20|1048576*a&1048575)>>>0,r,o+i)}}}function i(e,t,i,n,r){var o=e(n,r+t),s=e(n,r+i),a=2*(s>>31)+1,d=s>>>20&2047,p=4294967296*(1048575&s)+o;return 2047===d?p?NaN:a*(1/0):0===d?5e-324*a*p:a*Math.pow(2,d-1075)*(p+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=i.bind(null,s,0,4),e.readDoubleBE=i.bind(null,a,4,0)}(),e}function r(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}function o(e,t,i){t[i]=e>>>24,t[i+1]=e>>>16&255,t[i+2]=e>>>8&255,t[i+3]=255&e}function s(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function a(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=n(n)},function(e,t,i){"use strict";var n=t;n.length=function(e){for(var t=0,i=0,n=0;n191&&n<224?o[s++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[s++]=55296+(n>>10),o[s++]=56320+(1023&n)):o[s++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,o)),s=0);return r?(s&&r.push(String.fromCharCode.apply(String,o.slice(0,s))),r.join("")):String.fromCharCode.apply(String,o.slice(0,s))},n.write=function(e,t,i){for(var n,r,o=i,s=0;s>6|192,t[i++]=63&n|128):55296==(64512&n)&&56320==(64512&(r=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&r),++s,t[i++]=n>>18|240,t[i++]=n>>12&63|128,t[i++]=n>>6&63|128,t[i++]=63&n|128):(t[i++]=n>>12|224,t[i++]=n>>6&63|128,t[i++]=63&n|128);return i-o}},function(e,t,i){"use strict";e.exports=function(e,t,i){var n=i||8192,r=n>>>1,o=null,s=n;return function(i){if(i<1||i>r)return e(i);s+i>n&&(o=e(n),s=0);var a=t.call(o,s,s+=i);return 7&s&&(s=1+(7|s)),a}}},function(e,t,i){"use strict";e.exports=r;var n=i(7);function r(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=r.zero=new r(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=r.zeroHash="\0\0\0\0\0\0\0\0";r.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var i=e>>>0,n=(e-i)/4294967296>>>0;return t&&(n=~n>>>0,i=~i>>>0,++i>4294967295&&(i=0,++n>4294967295&&(n=0))),new r(i,n)},r.from=function(e){if("number"==typeof e)return r.fromNumber(e);if(n.isString(e)){if(!n.Long)return r.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new r(e.low>>>0,e.high>>>0):o},r.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,i=~this.hi>>>0;return t||(i=i+1>>>0),-(t+4294967296*i)}return this.lo+4294967296*this.hi},r.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;r.fromHash=function(e){return e===s?o:new r((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},r.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},r.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},r.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},r.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return 0===i?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:i<128?9:10}},function(e,t,i){"use strict";e.exports=o;var n=i(22);(o.prototype=Object.create(n.prototype)).constructor=o;var r=i(7);function o(){n.call(this)}function s(e,t,i){e.length<40?r.utf8.write(e,t,i):t.utf8Write?t.utf8Write(e,i):t.write(e,i)}o._configure=function(){o.alloc=r._Buffer_allocUnsafe,o.writeBytesBuffer=r.Buffer&&r.Buffer.prototype instanceof Uint8Array&&"set"===r.Buffer.prototype.set.name?function(e,t,i){t.set(e,i)}:function(e,t,i){if(e.copy)e.copy(t,i,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=r.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},o._configure()},function(e,t,i){"use strict";e.exports=o;var n=i(23);(o.prototype=Object.create(n.prototype)).constructor=o;var r=i(7);function o(e){n.call(this,e)}o._configure=function(){r.Buffer&&(o.prototype._slice=r.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},function(e,t,i){"use strict";e.exports=r;var n=i(7);function r(e,t,i){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(i)}(r.prototype=Object.create(n.EventEmitter.prototype)).constructor=r,r.prototype.rpcCall=function e(t,i,r,o,s){if(!o)throw TypeError("request must be specified");var a=this;if(!s)return n.asPromise(e,a,t,i,r,o);if(a.rpcImpl)try{return a.rpcImpl(t,i[a.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(e,i){if(e)return a.emit("error",e,t),s(e);if(null!==i){if(!(i instanceof r))try{i=r[a.responseDelimited?"decodeDelimited":"decode"](i)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",i,t),s(null,i)}a.end(!0)})}catch(e){return a.emit("error",e,t),void setTimeout(function(){s(e)},0)}else setTimeout(function(){s(Error("already ended"))},0)},r.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},function(e,t,i){"use strict";function n(e,t){"string"==typeof e&&(t=e,e=void 0);var i=[];function r(e){if("string"!=typeof e){var t=o();if(n.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var s=Object.keys(e),a=new Array(s.length+1),d=new Array(s.length),p=0;p0&&".."!==t[o-1]?t.splice(--o,2):i?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return n+t.join("/")};n.resolve=function(e,t,i){return i||(t=o(t)),r(t)?t:(i||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(4),o=i(2),s=i(3),a=i(1),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schemaName="web.cartEvent",t.getEventType=function(){return o.CART_EVENT},t}return n.__extends(t,e),t.prototype.actionCart=function(e,t,i){var r=a.loadCampaignObject(),o=this.createLog(e,n.__assign(n.__assign(n.__assign({},r||{}),t),i));this.sendLog(this.schemaName,o)},t.prototype.addToCart=function(e,t){void 0===t&&(t={}),this.actionCart(s.ADD_TO_CART,e,t)},t.prototype.removeFromCart=function(e,t){void 0===t&&(t={}),this.actionCart(s.REMOVE_FROM_CART,e,t)},t.prototype.selectProduct=function(e,t){void 0===t&&(t={}),this.actionCart(s.SELECT_PRODUCT,e,t)},t.prototype.unselectProduct=function(e,t){void 0===t&&(t={}),this.actionCart(s.UNSELECT_PRODUCT,e,t)},t.prototype.increasingQuantityCart=function(e,t){void 0===t&&(t={}),this.actionCart(s.INCREASING_QUANTITY_PRODUCT,e,t)},t.prototype.decreasingQuantityCart=function(e,t){void 0===t&&(t={}),this.actionCart(s.DECREASING_QUANTITY_PRODUCT,e,t)},t.prototype.revertProductToCart=function(e,t){void 0===t&&(t={}),this.actionCart(s.REVERT_PRODUCT_TO_CART,e,t)},t}(r.default);t.default=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(4),o=i(2),s=i(3),a=i(1),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schemaName="web.checkoutEvent",t.getEventType=function(){return o.CHECKOUT_EVENT},t.products=[],t.addEcommerceProduct=function(e){t.products.push(n.__assign(n.__assign({},e),{promotionPrice:a.castInt(e.promotionPrice),price:a.castInt(e.price),quantity:a.castInt(e.quantity)}))},t.removeEcommerceItem=function(e){e.length&&(t.products=a.filter(t.products,function(t){return t.skuId===e}))},t.clearEcommerceCart=function(){t.resetEvent()},t}return n.__extends(t,e),t.prototype.setOrder=function(e){this.order=n.__assign({},e)},t.prototype.resetEvent=function(){this.products=[],this.order=null},t.prototype.trackEcommerceOrder=function(e,t){var i=this.createLog(e,n.__assign(n.__assign(n.__assign({},this.order),{products:this.products||[]}),t));this.resetEvent(),this.sendLog(this.schemaName,i)},t.prototype.trackCheckoutEcommerceOrder=function(e){void 0===e&&(e={}),this.trackEcommerceOrder(s.CHECKOUT_CART,e)},t}(r.default);t.default=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(26),o=i(1),s=i(3),a=i(6),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.track=function(){o.trackCallbackOnReady(function(){var e=t.findContentNodes();t.setupInteractionsTracking(e);var i=t.collectContent(e);t.shouldSendLog(t.visibleSchemaName,i)})},t.shouldSendLog=function(e,i){i&&i.length>0&&t.sendLog(e,t.createLogs(s.CONTENT_ALL_EVENT,i))},t.trackContentImpressionsWithInNode=function(e){e&&(a.default.isTrackOnlyVisibleContentEnabled?o.trackCallbackOnLoad(function(){var i=t.findContentNodesWithinNode(e),n=t.getCurrentlyVisibleContentImpressionsIfNotTrackedYet(i);t.shouldSendLog(t.visibleSchemaName,n)}):o.trackCallbackOnReady(function(){var i=t.findContentNodesWithinNode(e),n=t.getContentImpressionsRequestsFromNodes(i);t.shouldSendLog(t.visibleSchemaName,n)}))},t.getContentImpressionsRequestsFromNodes=function(e){var i=t.collectContent(e);return t.buildContentImpressionsRequests(i,e)},t.buildContentImpressionsRequests=function(e,i){return e&&e.length?(t.setupInteractionsTracking(i),e):[]},t}return n.__extends(t,e),t}(r.default);t.default=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(26),o=i(1),s=i(3),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildContentInteractionRequestNode=function(e,i){var n=t.findParentContentNode(e),r=t.buildContentBlock(n);return r?t.createContentInteractionLog(i,r.regionName,r.contentName,r.target,r.payload,r.index):null},t.track=function(e,i){void 0===i&&(i="Unknown"),e&&o.trackCallbackOnReady(function(){var n=t.buildContentInteractionRequestNode(e,i);n&&t.sendLog(t.interactionSchemaName,t.createLogs(s.CONTENT_INTERACTION_EVENT,n))})},t.manualTrack=function(e){if(e){var i=e.regionName,n=void 0===i?"Unknown":i,r=e.contentName,a=void 0===r?"Unknown":r,d=e.target,p=void 0===d?"Unknown":d,u=e.interaction,l=void 0===u?"Unknown":u,c=e.payload,f=void 0===c?"Unknown":c,y=e.index,g=void 0===y?0:y;l=o.trim(l),n=o.trim(n),a=o.trim(a),p=o.trim(p),f=o.trim(f),g=Number(g)||0;var m=t.createContentInteractionLog(l,n,a,p,f,g);t.sendLog(t.interactionSchemaName,t.createLogs(s.CONTENT_INTERACTION_EVENT,m))}},t}return n.__extends(t,e),t}(r.default);t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(26),o=i(1),s=i(3),a=i(6),d=i(1),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.intervalInMs=-1,t.checkOnScroll=!1,t.enableTrackOnlyVisibleContent=function(e,i){if(a.default.isTrackOnlyVisibleContentEnabled)return!0;a.default.isTrackOnlyVisibleContentEnabled=!0;var n=!1;function r(){n=!0}o.trackCallbackOnLoad(function(){var s=function(i){setTimeout(function(){a.default.isTrackOnlyVisibleContentEnabled&&(n=!1,t.track(e,i),s(i))},i)},d=function(i){setTimeout(function(){a.default.isTrackOnlyVisibleContentEnabled&&(n&&(n=!1,t.track(e,i)),d(i))},i)};if(e){for(var p=["scroll","resize"],u=0;u0&&(i=parseInt(i,10),s(i))})},t.track=function(e,i){void 0===e&&(e=!1),void 0===i&&(i=750),t.checkOnScroll=e,t.intervalInMs=i,t.enableTrackOnlyVisibleContent(e,i),o.trackCallbackOnLoad(function(){var e=t.findContentNodes(),i=t.getCurrentlyVisibleContentImpressionsIfNotTrackedYet(e);t.shouldSendLog(i)})},t.shouldSendLog=function(e){if(e&&e.length>0){var i=d.map(e,function(e){return{contentName:e.contentName,regionName:e.regionName,index:e.index,payload:e.payload}});t.sendLog(t.visibleSchemaName,t.createLogs(s.CONTENT_VISIBLE_EVENT,i))}},t.manualTrack=function(e){if(e){var i=e.contentName,n=void 0===i?"Unknown":i,r=e.regionName,a=void 0===r?"Unknown":r,d=e.index,p=void 0===d?0:d,u=e.payload,l={contentName:n=o.trim(n),regionName:a=o.trim(a),index:p,payload:u=o.trim(u)};l&&t.sendLog(t.visibleSchemaName,t.createLogs(s.CONTENT_VISIBLE_EVENT,l))}},t}return n.__extends(t,e),t.prototype.disableTrackOnlyVisibleContent=function(){a.default.isTrackOnlyVisibleContentEnabled=!1},t}(r.default);t.default=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(4),o=i(3),s=i(2),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schemaName="web.customEvent",t.getEventType=function(){return s.CUSTOM_EVENT},t}return n.__extends(t,e),t.prototype.track=function(e,t,i){void 0===i&&(i={});var r=t||{},s=r.category,a=void 0===s?"":s,d=r.action,p=void 0===d?"":d,u=r.label,l=void 0===u?"":u,c=r.property,f=void 0===c?"":c,y=r.value,g=void 0===y?0:y,m=r.payload,h=void 0===m?null:m;if(!h||h.schemaName){var v=this.createLog(e||o.CUSTOM,n.__assign(n.__assign({category:a,action:p,label:l,property:f,value:g},h?{payload:h}:{}),i));this.sendLog(this.schemaName,v)}},t}(r.default);t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(4),o=i(2),s=i(3),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schemaName="web.errorEvent",t.getEventType=function(){return o.ERROR_EVENT},t}return n.__extends(t,e),t.prototype.track=function(e,t){void 0===t&&(t={});var i=this.createLog(s.ERROR,n.__assign(n.__assign({},e),t));this.sendLog(this.schemaName,i)},t}(r.default);t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(4),o=i(2),s=i(3),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schemaName="web.exceptionEvent",t.route="/api/v2/users/exception",t.getEventType=function(){return o.EXCEPTION_EVENT},t.track=function(e){if(e&&e.msg&&e.error){var i=t.extractLog(e),n=i.message,r=void 0===n?"":n,o=i.stack,a=void 0===o?"":o,d=t.createLog(s.EXCEPTION,{message:r,stack:a});t.sendLog(t.schemaName,d,!1)}},t}return n.__extends(t,e),t.prototype.extractLog=function(e){var t=e.msg,i=e.error;return t.toLowerCase().indexOf("script error")>-1?{message:"Script Error: See Browser Console for Detail"}:{message:t,stack:JSON.stringify(i.stack)}},t}(r.default);t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(4),o=i(1),s=i(2),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getEventType=function(){return s.FORM_EVENT},t.innerElementTags=["textarea","input","select"],t.formFilter=function(e){return!0},t.fieldFilter=function(e){return!0},t.fieldTransform=function(e){return e},t.configureFormTracking=function(e){e&&(t.formFilter=o.getFilter(e.forms,!0),t.fieldFilter=o.getFilter(e.fields,!1))},t.getFormElementName=function(e){return e[o.findGeneric(["name","id","type","nodeName"],function(t){return e[t]&&"string"==typeof e[t]})]},t.getParentFormName=function(e){for(;e&&e.nodeName&&"HTML"!==e.nodeName.toUpperCase()&&"FORM"!==e.nodeName.toUpperCase();)e=e.parentNode;if(e&&e.nodeName&&"FORM"===e.nodeName.toUpperCase())return t.getFormElementName(e)},t.getInnerFormElements=function(e){var i=[];return t.innerElementTags.forEach(function(n){Array.prototype.slice.call(e.getElementsByTagName(n)).forEach(function(e){if("submit"!==e.type&&"password"!==e.type){var n={name:t.getFormElementName(e),value:e.value,nodeName:e.nodeName};e.type&&"INPUT"===e.nodeName.toUpperCase()&&(n.type=e.type),"checkbox"!==e.type&&"radio"!==e.type||e.checked||(n.value=null),i.push(n)}})}),i},t.getOfficialEventName=function(e){return"focusin"===e?"focus":e},t.getEventChangeType=function(e){return e+"-form"},t.getSchemaName=function(e){return"web."+e+"Form"},t.createLogChangeForm=function(e,i){var r="checkbox"!==e.type||e.checked?t.fieldTransform(e.value).toString():null;return n.__assign({eventType:t.getEventType(),formId:t.getParentFormName(e)||"",elementId:t.getFormElementName(e)||"",nodeName:e.nodeName||"",type:o.getTypeElement(e),elementClasses:o.getCssClasses(e).join(","),inputValue:r||""},t.additionLog({eventName:i+"Form"}))},t.sendLogChangeListener=function(e,i){var n=o.getTypeElement(e),r=t.getOfficialEventName(i),s=t.getEventChangeType(r),a=t.getSchemaName(r);("change-form"===s||"checkbox"!==n&&"radio"!==n)&&t.sendLog(a,t.createLogChangeForm(e,r))},t.manualSubmitForm=function(e){t.sendSubmitForm(e)},t.addFormSubmitListeners=function(){o.addEventListener("form","submit",t.getFormSubmissionListener())},t.addFormFocusListeners=function(){t.formActionListeners("focusin")},t.addFormChangeListeners=function(){t.formActionListeners("change")},t.formActionListeners=function(e){t.innerElementTags.forEach(function(i){var n=""+i;o.addEventListener(n,e,t.getFormChangeListener(e))})},t}return n.__extends(t,e),t.prototype.getFormChangeListener=function(e){var t=this;return function(i){var n=i.target;t.fieldFilter(n)&&"password"!==n.type&&t.sendLogChangeListener(n,e)}},t.prototype.getFormSubmissionListener=function(){var e=this;return function(t){var i=t.target;e.sendSubmitForm(i)}},t.prototype.sendSubmitForm=function(e){var t=this;if(this.formFilter(e)){var i=this.getInnerFormElements(e);i.forEach(function(e){e.value=t.fieldTransform(e.value)});var r=n.__assign({formId:this.getFormElementName(e)||"",formClasses:o.getCssClasses(e).join(","),elements:i||[],eventType:this.getEventType()},this.additionLog({eventName:"submitForm"}));this.sendLog("web.submitForm",r)}},t}(r.default);t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(4),o=i(2),s=i(1),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getEventType=function(){return o.HEART_BEAT_EVENT},t.schemaName="web.heartBeat",t.activityHandler=function(){t.common.getSessionStorage()},t.pagePingInterval=null,t.scrollHandler=function(){t.updateMaxScrolls(),t.activityHandler()},t.register=function(){t.resetMaxScrolls(),s.addEventListener(document,"click",t.activityHandler),s.addEventListener(document,"mouseup",t.activityHandler),s.addEventListener(document,"mousedown",t.activityHandler),s.addEventListener(document,"mousemove",t.activityHandler),s.addEventListener(document,"mousewheel",t.activityHandler),s.addEventListener(window,"DOMMouseScroll",t.activityHandler),s.addEventListener(window,"scroll",t.scrollHandler),s.addEventListener(document,"keypress",t.activityHandler),s.addEventListener(document,"keydown",t.activityHandler),s.addEventListener(document,"keyup",t.activityHandler),s.addEventListener(window,"resize",t.activityHandler),s.addEventListener(window,"focus",t.activityHandler),s.addEventListener(window,"blur",t.activityHandler)},t.enableBeat=function(e,i){void 0===e&&(e=3),void 0===i&&(i=15),e===parseInt(e,10)&&i===parseInt(i,10)&&(t.register(),t.heartBeatUp(e,i))},t.heartBeatUp=function(e,i){var n=t.common.timeNow("s")+e,r=1e3*i;t.pagePingInterval=setInterval(function(){var e=t.common.timeNow("s");t.common.getLastUpdateTime()+r>e&&n400?(c.isLoadEventFire=n.LOAD_END,clearInterval(i),t(null)):c.isLoadEventFire!==n.BEFORE_LOAD?(c.isLoadEventFire=n.LOAD_END,clearInterval(i),t(null)):void 0},10)})},c.getEventType=function(){return d.PAGE_EVENT},c.trackLoad=function(e){return a.default.generateViewId(),a.default.setContentType(e&&e.contentType?e.contentType:u.CONTENT_TYPE_OTHER),c.manualTrack(p.PAGE_LOAD,!0,e)},c.trackUnLoad=function(e){return a.default.setContentType(e&&e.contentType?e.contentType:u.CONTENT_TYPE_OTHER),c.manualTrack(p.PAGE_UNLOAD,!1,e)},c.initReferrer=function(){c.referrer=c.common.detectReferrer(),c.session.setRefererByPageView(c.referrer)},c.setReferrer=function(e){c.referrer=o.toAbsoluteUrl(e),c.session.setRefererByPageView(c.referrer)},c.getTimming=function(){var e=c.getPerformance(),t=e&&e.timing?e.timing:null;if(t){var i=t.connectEnd,n=void 0===i?0:i,o=t.connectStart,s=void 0===o?0:o,a=t.domComplete,d=void 0===a?0:a,p=t.domContentLoadedEventEnd,u=void 0===p?0:p,l=t.domContentLoadedEventStart,f=void 0===l?0:l,y=t.domInteractive,g=void 0===y?0:y,m=t.domLoading,h=void 0===m?0:m,v=t.domainLookupEnd,_=void 0===v?0:v,b=t.domainLookupStart,E=void 0===b?0:b,T=t.fetchStart,N=void 0===T?0:T,O=t.loadEventEnd,w=void 0===O?0:O,A=t.loadEventStart,k=void 0===A?0:A,C=t.navigationStart,S=void 0===C?0:C,I=t.redirectEnd,x=void 0===I?0:I,P=t.redirectStart,R=void 0===P?0:P,L=t.requestStart,j=void 0===L?0:L,F=t.responseEnd,D=void 0===F?0:F,V=t.responseStart,M=void 0===V?0:V,U=t.secureConnectionStart,B=void 0===U?0:U,H=t.unloadEventEnd,Y=void 0===H?0:H,q=t.unloadEventStart,G=void 0===q?0:q;return r.__assign({connectEnd:n,connectStart:s,domComplete:d,domContentLoadedEventEnd:u,domContentLoadedEventStart:f,domInteractive:g,domLoading:h,domainLookupEnd:_,domainLookupStart:E,fetchStart:N,loadEventEnd:w,loadEventStart:k,navigationStart:S,redirectEnd:x,redirectStart:R,requestStart:j,responseEnd:D,responseStart:M,secureConnectionStart:B,unloadEventEnd:Y,unloadEventStart:G},c.getPaintTimings())}return r.__assign({},c.getPaintTimings())},c.manualTrack=function(e,t,i){void 0===t&&(t=!0),void 0===i&&(i={}),a.default.clearTrackedContentImpressions(),c.prevEvent=i;var o=function(){c.sendLog(c.schemaName,c.createLog(e,r.__assign(r.__assign(r.__assign(r.__assign({},c.getBodyEvent()),{pageTitle:a.default.getPageName(),contentType:a.default.getContentType(),screenName:a.default.getPageName()}),i),i.contentType?{}:{contentType:a.default.getContentType()})),t)};c.isLoadEventFire!==n.LOAD_END?c.waitForLoad().then(function(){i.attr1!==p.VIRTUAL_SCREEN_VIEW&&setTimeout(function(){o()},0)}):o()},c.getBodyEvent=function(){c.detectMKTTraceId(a.default.getHref());var e=c.getTimming(),t=c.detectCampaign(a.default.getHref(),c.referrer);return r.__assign(r.__assign(r.__assign({},e),{referrer:o.encodeWrapper(c.referrer)}),c.createCampaign(t))},c.createCampaign=function(e){return o.reduce(e,function(e,t,i){return e[o.camelize(o.configCampaignNameParameters[i])]=t||void 0,e},{})},c.detectMKTTraceId=function(e){var t=o.decodeWrapper(e),i=o.getUrlParameter(t,o.configMKTTraceIDParameter);if(i){var n=o.getCookieName(o.configMKTTraceIDParameter);o.setCookieForever(n,i)}},c.detectCampaign=function(e,i){var n=o.decodeWrapper(e),r=o.decodeWrapper(i),s=o.loadReferrerAttributionCookie(),d=o.getCookieName("ref"),p=o.getCookieName("campaign"),u=o.loadCampaignAttributionCookie(),l=c.common.timeNow("s"),f=s[0],y=s[1],g=(s[2],s[3]);if(!a.default.configConversionAttributionFirstReferrer||!f.length){for(var m in o.configCampaignNameParameters)if(Object.prototype.hasOwnProperty.call(o.configCampaignNameParameters,m)&&(f=o.getUrlParameter(n,o.configCampaignNameParameters[m])).length)break;for(var m in t.configCampaignKeywordParameters)if(Object.prototype.hasOwnProperty.call(t.configCampaignKeywordParameters,m)&&(y=o.getUrlParameter(n,t.configCampaignKeywordParameters[m])).length)break}var h=o.map(o.configCampaignNameParameters,function(e){return encodeURIComponent(o.getUrlParameter(n,e))}),v=o.getHostName(r),_=g.length?o.getHostName(g):"";if(!v.length||o.isSiteHostName(v)||a.default.configConversionAttributionFirstReferrer&&_.length&&!o.isSiteHostName(_)||(g=r),g.length||f.length){var b=[f,y,l,o.getOrigin(g)];o.setCookieForever(d,JSON.stringify(b))}return JSON.stringify(u)!==JSON.stringify(h)&&o.some(h,function(e){return!!e})?(o.setCookieForever(p,JSON.stringify(h)),h):u},c.initReferrer(),o.addEventListener(window,"load",function(){c.isLoadEventFire=n.LOAD}),c}return r.__extends(i,e),i.prototype.getPerformance=function(){return window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance},i.prototype.getPaintTimings=function(){var e=this.getPerformance();if(e){if("function"!=typeof e.getEntriesByType)return{};var t=e.getEntriesByType("paint"),i=function(e){var i=o.filter(t,function(t){return t.name===e});if(i&&i.length>0)return parseInt(i[0].startTime)};return{firstPaint:i("first-paint"),firstContentfulPaint:i("first-contentful-paint")}}return{}},i.prototype.register=function(){this.registerLoadEvent(),this.registerUnloadEvent()},i.prototype.registerLoadEvent=function(){this.trackLoad()},i.prototype.registerUnloadEvent=function(){var e=this;o.addEventListener(window,"beforeunload",function(){return e.trackUnLoad()})},i}(s.default);t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(4),o=i(2),s=i(3),a=i(1),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schemaName="web.paymentEvent",t.getEventType=function(){return o.PAYMENT_EVENT},t}return n.__extends(t,e),t.prototype.track=function(e,t){void 0===t&&(t={});var i=a.loadCampaignObject(),r=this.createLog(s.PAYMENT,n.__assign(n.__assign(n.__assign({},i||{}),e),t));this.sendLog(this.schemaName,r)},t}(r.default);t.default=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(4),o=i(2),s=i(3),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schemaName="web.scanEvent",t.getEventType=function(){return o.SCAN_EVENT},t}return n.__extends(t,e),t.prototype.track=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var i=this.createLog(s.SCAN,n.__assign(n.__assign({},e),t));this.sendLog(this.schemaName,i)},t}(r.default);t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(4),o=i(2),s=i(120),a=i(1),d=i(3),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schemaName="web.scrollDepthEvent",t.getEventType=function(){return o.SCROLL_DEPTH_EVENT},t.isActive=!1,t.defaultOptions={trackDelay:500,percentInterval:1},t.lastScroll=null,t.processScroll=function(){if(null===t.lastScroll||(new Date).getTime()-t.lastScroll>=t.defaultOptions.trackDelay){var e=t.scrollPercentByInterval(t.defaultOptions.percentInterval),i=t.createLog(d.SCROLL_DEPTH,{percentage:e});t.sendLog(t.schemaName,i)}},t.scrollPercent=function(){var e=t.pageHeight()-t.viewportHeight();return Math.ceil(t.scrollPosition()/(e<=0?1:e)*100)},t.pageHeight=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight||0},t.scrollPosition=function(){return(window.pageYOffset||document.documentElement.scrollTop)-(document.documentElement.clientTop||0)},t.scrollPercentByInterval=function(e){var i=Number(t.scrollPercent()/(Number(e)-1e-10));return parseInt(i)*Number(e)},t}return n.__extends(t,e),t.prototype.track=function(e){var t=this;if(void 0===e&&(e=this.defaultOptions),!this.isActive){if(this.isActive=!0,typeof e==typeof{})for(var i in e)e.hasOwnProperty(i)&&"number"==typeof e[i]&&(this.defaultOptions[i]=e[i]);a.trackCallbackOnLoad(function(){t.processScroll()}),a.addEventListener(window,"scroll",s(function(){t.lastScroll=(new Date).getTime(),setTimeout(t.processScroll,Number(t.defaultOptions.trackDelay)+25)},100))}},t}(r.default);t.default=p},function(e,t,i){var n=i(121),r=i(16),o="Expected a function";e.exports=function(e,t,i){var s=!0,a=!0;if("function"!=typeof e)throw new TypeError(o);return r(i)&&(s="leading"in i?!!i.leading:s,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:s,maxWait:t,trailing:a})}},function(e,t,i){var n=i(16),r=i(122),o=i(21),s="Expected a function",a=Math.max,d=Math.min;e.exports=function(e,t,i){var p,u,l,c,f,y,g=0,m=!1,h=!1,v=!0;if("function"!=typeof e)throw new TypeError(s);function _(t){var i=p,n=u;return p=u=void 0,g=t,c=e.apply(n,i)}function b(e){var i=e-y;return void 0===y||i>=t||i<0||h&&e-g>=l}function E(){var e=r();if(b(e))return T(e);f=setTimeout(E,function(e){var i=t-(e-y);return h?d(i,l-(e-g)):i}(e))}function T(e){return f=void 0,v&&p?_(e):(p=u=void 0,c)}function N(){var e=r(),i=b(e);if(p=arguments,u=this,y=e,i){if(void 0===f)return function(e){return g=e,f=setTimeout(E,t),m?_(e):c}(y);if(h)return f=setTimeout(E,t),_(y)}return void 0===f&&(f=setTimeout(E,t)),c}return t=o(t)||0,n(i)&&(m=!!i.leading,l=(h="maxWait"in i)?a(o(i.maxWait)||0,t):l,v="trailing"in i?!!i.trailing:v),N.cancel=function(){void 0!==f&&clearTimeout(f),g=0,p=y=u=f=void 0},N.flush=function(){return void 0===f?c:T(r())},N}},function(e,t,i){var n=i(29);e.exports=function(){return n.Date.now()}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(4),o=i(2),s=i(3),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schemaName="web.siteSearchEvent",t.getEventType=function(){return o.SITE_SEARCH_EVENT},t}return n.__extends(t,e),t.prototype.track=function(e,t){void 0===t&&(t={});var i=this.createLog(s.SEARCH,n.__assign(n.__assign({},e),t));this.sendLog(this.schemaName,i)},t}(r.default);t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(4),o=i(2),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schemaName="web.timingEvent",t.getEventType=function(){return o.TIMING_EVENT},t}return n.__extends(t,e),t.prototype.track=function(e,t){void 0===t&&(t={});var i=e||{},r=i.category,o=void 0===r?"":r,s=i.variable,a=void 0===s?"":s,d=i.label,p=void 0===d?"":d,u=i.duration,l=void 0===u?0:u;if(o&&a&&l){var c=this.createLog(a,n.__assign({category:o,variable:a,label:p,duration:l},t));this.sendLog(this.schemaName,c)}},t}(r.default);t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(2),o=i(4),s=i(1),a=i(3),d=i(1);function p(e,t){var i=e.createLog(a.API_REQUEST,t);e.sendLog(e.schemaName,i)}function u(e,t,i,n){i.state=t,i.transportType=a.TRANSPORT_TYPE_XHR,i.responseCode=e.status,i.responseText=e.status>=300?e.responseText:null,e._isNeedTrack&&p(n,i)}function l(e,t){return t.includes(e)}function c(e,t){for(var i=0;i=300?v:null}),[2,r]}})})}},t}(o.default);t.default=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hookCallApi=function(){},t}return n.__extends(t,e),t.prototype.setHookCallApi=function(e){this.hookCallApi=e},t.prototype.sendLog=function(e,t,i,n,r){void 0===r&&(r=!0);var o=this.formatLog(t,i,n,r);if(!o.appId)throw new Error("Not have appId!");this.hookCallApi(o),this.apiCall.pushLog(e,o,this.replicas||[])},t}(i(127).default);t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(6),o=i(1),s=i(3),a=function(){function e(e,t,i,n){this.common=e,this.apiCall=t,this.session=i,this.visitor=n,this.replicas=[]}return e.prototype.formatLog=function(e,t,i,a){void 0===a&&(a=!0),this.visitor.init();var d=!Array.isArray(i)&&i.eventName===s.PAGE_LOAD;return this.session.updateSession(a,d),{appId:this.appId,event:Array.isArray(i)?o.map(i,function(e){return n.__assign(n.__assign({},e),{viewId:r.default.getViewId()})}):n.__assign(n.__assign({},i),{viewId:r.default.getViewId()}),session:n.__assign({},this.session.toJSON()),visitor:n.__assign({},this.visitor.toJSON()),schemaVer:t,schemaName:e,stm:this.common.timeNow()}},e.prototype.setAppId=function(e){this.appId=e},e.prototype.setReplicas=function(e){this.replicas=e},e}();t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=function(){function e(){this.content={}}return e.prototype.setProperty=function(e,t){var i;this.content=n.__assign(n.__assign({},this.content),((i={})[e]=t,i))},e.prototype.removeProperty=function(e){var t=this.content,i=e,r=(t[i],n.__rest(t,["symbol"==typeof i?i:i+""]));this.content=r},e.prototype.getMap=function(){return this.content},e}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=function(){function e(e,t){this.common=e,this.session=t,this.userId=null,this.YEAR_EXPIRED_COOKIE=3}return e.prototype.init=function(){return this.trackingId=this.getTrackId(),this},e.prototype.getTrackId=function(){var e=r.getCookie(r.getCookieName("_track"));if(!e){var t=r.getUUID();return r.setCookieForever(r.getCookieName("_track"),t),this.session.resetSession(),t}return r.setCookieForever(r.getCookieName("_track"),e),e},e.prototype.setUserId=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return this.userId=e,[2,this]})})},e.prototype.toJSON=function(){return{userId:this.userId?this.userId.toString():void 0,trackingId:this.trackingId}},e}();t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=i(15),o=i(1);!function(e){e.Http="json",e.Proto="proto"}(n||(n={}));var s=function(){function e(e,t){this.localFetch=e,this.labelResolver=t}return e.prototype.sendCounter=function(e){var t=e.visitor,i=e.event,n=e.session,s=e.stm,a=e.appId;if(t&&i&&n&&s&&a){var d=Array.isArray(i)?i:[i];if(0!==d.length){var p={appId:a,count:d.length},u=o.getResource(window);u&&u.host&&u.host!==r.defaultProps.host&&this.sendLog(u.host+"/api/count",p)}}},e.prototype.sendLog=function(e,t){try{this.localFetch.fetch(e,{body:t})}catch(i){this.localFetch.fetch(e,{body:t})}},e.prototype.sendTrackLog=function(e,t){var i=t.appId;if(t.event){var n=o.getFootPrintEndpoint(e);o.canSendToFootPrint(i,e)&&this.sendLogBatchProto(n,[t])}},e.prototype.sendLogBatchProto=function(e,t){var i=this;try{var n=t.map(function(e){return{serviceName:"tracking",payload:o.convertToProto(e),insertId:"",timestamp:o.getDateISONanoSec(new Date(e.stm)),schemaVersionInfo:{subject:o.getSubjectProto(e)},label:i.labelResolver.getMap()}});this.sendLog(e,{logsEntry:n})}catch(e){console.log(t),console.error(e)}},e.prototype.sendTrackingReplicas=function(e,t){if("object"==typeof e&&e.length>=1)for(var i=0;i21)throw"Maximum recursion at "+s;for(;r=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},i(136),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,i(12))},function(e,t,i){(function(e,t){!function(e,i){"use strict";if(!e.setImmediate){var n,r,o,s,a,d=1,p={},u=!1,l=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){y(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,i=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=i,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){y(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){y(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(y,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&y(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(s+t,"*")}),c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i1)for(var i=1;i