static.yieldmo.com Open in urlscan Pro
104.102.29.182  Public Scan

URL: http://static.yieldmo.com/ym.2.js
Submission: On February 14 via api from US — Scanned from NL

Form analysis 0 forms found in the DOM

Text Content

/*! For license information please see ym.min.js.LICENSE.txt */
(()=>{var e={1125:e=>{window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=23)}([function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(6),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var o=Object.create(n(5));o.inherits=n(4);var a=n(14),s=n(12);o.inherits(d,a);for(var l=i(s.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";(function(e){var r=n(27),i=n(28),o=n(29);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function w(e,t,n,r){return z(U(t,e.length-n),e,n,r)}function _(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return _(e,t,n,r)}function T(e,t,n,r){return z(B(t),e,n,r)}function k(e,t,n,r){return z(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=j(e[o]);return i}function A(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function C(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,o){return o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,o){return o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?I(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){o=c[d],a=u[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||x(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||x(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:U(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function B(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(1))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(3).Buffer.isBuffer},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,n(0))},function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},a={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,o)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(r)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkBase=void 0;var r=n(25),i=function(){function e(){}return e.performXhrUsingPromise=function(t){var n=this;return new r.Promise((function(r,i){if("false"!==t.url&&"null"!==t.url){var o=new XMLHttpRequest;if(t.sync?o.open(t.method,t.url,!1):o.open(t.method,t.url),t.secure&&!n.screwCookies&&(o.withCredentials=!0),t.headers)for(var a=0,s=t.headers;a<s.length;a++){var l=s[a];o.setRequestHeader(l[0],l[1])}t.onLoad?o.onload=t.onLoad:o.onload=e.onLoad(r,i,t),t.onError?o.onerror=t.onError:o.onerror=e.onError(i,t),t.onTimeout&&null!=t.timeout&&(o.timeout=t.timeout,o.ontimeout=t.onTimeout),t.onReadyStateChange&&(o.onreadystatechange=t.onReadyStateChange),t.body?o.send(t.body):t.bufferData?o.send(t.bufferData):o.send()}else i("invalid url")}))},e.onLoad=function(e,t,n){return function(){n.status=this.status,n.statusText=this.statusText,n.response=this.response,this.status>=200&&this.status<400?e(this.response):(n.response=this.response,t(n))}},e.onError=function(e,t){return function(n){t.error=n,t.response=this.response,t.status=this.status,t.statusText=this.statusText,e(t)}},e.screwCookies=!1,e}();t.NetworkBase=i},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,s;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var c=l.length,u=g(l,c);for(n=0;n<c;++n)o(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){(t=e.exports=n(14)).Stream=t,t.Readable=t,t.Writable=n(12),t.Duplex=n(2),t.Transform=n(18),t.PassThrough=n(39)},function(e,t,n){var r=n(3),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,r,i){var o=n(6);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(undefined),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;y.WritableState=v;var c=Object.create(n(5));c.inherits=n(4);var u,d={deprecate:n(37)},h=n(15),f=n(11).Buffer,p=i.Uint8Array||function(){},m=n(16);function g(){}function v(e,t){s=s||n(2),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),k(e,t))}(e,n,r,t,i);else{var a=E(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||_(e,n),r?l(w,e,n,a,i):w(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||n(2),!(u.call(y,this)||this instanceof s))return new y(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),k(e,t)}function _(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,d=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),k(e,t)}))}function k(e,t){var n=E(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(T,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(y,h),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:d.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===y&&e&&e._writableState instanceof v}})):u=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,f.isBuffer(r)||r instanceof p);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=g),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,o);return l}(this,i,s,e,t,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(0),n(35).setImmediate,n(1))},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Time=void 0;var n=function(){function e(){}return e.setTimeDifference=function(t){if(isNaN(t)||t.toString().length>13)return!1;var n=t-e.now();return Math.abs(n)>this.timeThreshold&&(this.timeDifference+=n),!0},e.now=function(){return this.timeDifference?(new Date).getTime()+this.timeDifference:(new Date).getTime()},e.timeThreshold=3e5,e.timeDifference=0,e}();t.Time=n},function(e,t,n){"use strict";(function(t,r){var i=n(6);e.exports=b;var o,a=n(31);b.ReadableState=y,n(9).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(15),c=n(11).Buffer,u=t.Uint8Array||function(){},d=Object.create(n(5));d.inherits=n(4);var h=n(32),f=void 0;f=h&&h.debuglog?h.debuglog("stream"):function(){};var p,m=n(33),g=n(16);d.inherits(b,l);var v=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(o=o||n(2));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(17).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||n(2),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function w(e,t,n,r,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,T(e)}}(e,a)):(i||(o=function(e,t){var n,r;return r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):S(e,a)):_(e,a,t,!1))):r||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function _(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&T(e)),S(e,t)}function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(k,e):k(e))}function k(e){f("emit readable"),e.emit("readable"),P(e)}function S(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(I,e,t))}function I(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function M(e){f("readable nexttick read 0"),e.read(0)}function R(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function A(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0==(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function O(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(x,t,e))}function x(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},b.prototype.unshift=function(e){return w(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return p||(p=n(17).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this},b.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?O(this):T(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&O(this),null;var r,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",i=!0),t.ended||t.reading?f("reading or ended",i=!1):i&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(n,t))),null===(r=e>0?A(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&O(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,t);var l=t&&!1===t.end||e===r.stdout||e===r.stderr?y:c;function c(){f("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",(function t(r,i){f("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",t),n.removeListener("end",c),n.removeListener("end",y),n.removeListener("data",p),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,P(e))}}(n);e.on("drain",u);var d=!1,h=!1;function p(t){f("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==C(o.pipes,e))&&!d&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function m(t){f("onerror",t),y(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),y()}function v(){f("onfinish"),e.removeListener("close",g),y()}function y(){f("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=C(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&T(this):i.nextTick(M,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(R,e,t))}(this,e)),this},b.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(f("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){f("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<v.length;o++)e.on(v[o],this.emit.bind(this,v[o]));return this._read=function(t){f("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=A}).call(this,n(1),n(0))},function(e,t,n){e.exports=n(9).EventEmitter},function(e,t,n){"use strict";var r=n(6);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";var r=n(38).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var r=n(2),i=Object.create(n(5));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){l(e,t,n)})):l(this,null,null)}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(4),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";(function(t){var r=n(45);function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function o(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var a=n(20),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c="foo"===function(){}.name;function u(e){return Object.prototype.toString.call(e)}function d(e){return!o(e)&&"function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var h=e.exports=y,f=/\s*function\s+([^\(\s]*)\s*/;function p(e){if(a.isFunction(e)){if(c)return e.name;var t=e.toString().match(f);return t&&t[1]}}function m(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function g(e){if(c||!a.isFunction(e))return a.inspect(e);var t=p(e);return"[Function"+(t?": "+t:"")+"]"}function v(e,t,n,r,i){throw new h.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function y(e,t){e||v(e,!0,t,"==",h.ok)}function b(e,t,n,r){if(e===t)return!0;if(o(e)&&o(t))return 0===i(e,t);if(a.isDate(e)&&a.isDate(t))return e.getTime()===t.getTime();if(a.isRegExp(e)&&a.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(d(e)&&d(t)&&u(e)===u(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===i(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;var s=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return-1!==s&&s===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(a.isPrimitive(e)||a.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=w(e),o=w(t);if(i&&!o||!i&&o)return!1;if(i)return b(e=l.call(e),t=l.call(t),n);var s,c,u=T(e),d=T(t);if(u.length!==d.length)return!1;for(u.sort(),d.sort(),c=u.length-1;c>=0;c--)if(u[c]!==d[c])return!1;for(c=u.length-1;c>=0;c--)if(!b(e[s=u[c]],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function w(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function E(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&v(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&i&&!n;if((!e&&a.isError(i)&&o&&_(i,n)||s)&&v(i,n,"Got unwanted exception"+r),e&&i&&n&&!_(i,n)||!e&&i)throw i}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(g(e.actual),128)+" "+e.operator+" "+m(g(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=p(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(e,t,n){e!=t&&v(e,t,n,"==",h.equal)},h.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",h.notEqual)},h.deepEqual=function(e,t,n){b(e,t,!1)||v(e,t,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,n){b(e,t,!0)||v(e,t,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,n){b(e,t,!1)&&v(e,t,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&v(t,n,r,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",h.strictEqual)},h.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",h.notStrictEqual)},h.throws=function(e,t,n){E(!0,e,t,n)},h.doesNotThrow=function(e,t,n){E(!1,e,t,n)},h.ifError=function(e){if(e)throw e},h.strict=r((function e(t,n){t||v(t,!0,n,"==",e)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var T=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(this,n(1))},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),l=r[n];n<o;l=r[++n])m(l)||!w(l)?a+=" "+l:a+=" "+s(l);return a},t.deprecate=function(n,r){if(void 0!==e&&!0===e.noDeprecation)return n;if(void 0===e)return function(){return t.deprecate(n,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),i=!0}return n.apply(this,arguments)}};var o,a={};function s(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),u(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function u(e,n,r){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=u(e,i,r)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),E(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(T(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return e.stylize(Date.prototype.toString.call(n),"date");if(E(n))return d(n)}var c,w="",k=!1,S=["{","}"];return f(n)&&(k=!0,S=["[","]"]),T(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),b(n)&&(w=" "+RegExp.prototype.toString.call(n)),_(n)&&(w=" "+Date.prototype.toUTCString.call(n)),E(n)&&(w=" "+d(n)),0!==a.length||k&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=k?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)R(t,String(a))?o.push(h(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(e,t,n,r,i,!0))})),o}(e,n,r,s,a):a.map((function(t){return h(e,n,r,s,t,k)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,w,S)):S[0]+w+S[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),R(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(n)?u(e,l.value,null):u(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function f(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===k(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===k(e)}function E(e){return w(e)&&("[object Error]"===k(e)||e instanceof Error)}function T(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(y(o)&&(o=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=p,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=w,t.isDate=_,t.isError=E,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(46);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",M(),t.format.apply(t,arguments))},t.inherits=n(47),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),P&&Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=P,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};t.apply(this,n).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(A,t,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,r(t)),n}}).call(this,n(0))},function(e,t,n){"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=void 0;var r=n(24),i=n(56),o=n(57),a=n(8),s=n(60),l=n(61),c=n(13);t.Utils={Credentials:i.Credentials,KinesisManager:o.KinesisManager,NetworkBase:a.NetworkBase,Time:c.Time,precisionRound:s.precisionRound,throttled:l.throttled,NewRelic:r.NewRelic}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NewRelic=void 0;var r=n(8),i=function(){function e(){}return e.sendDataToNewRelic=function(e){var t={url:"https://insights-collector.newrelic.com/v1/accounts/3082704/events",method:"POST",headers:[["Content-Type","application/json"],["Content-Encoding","gzip"],["X-Insert-Key","NRII-LtAF0495Y9WOK9gYenXh2KSzq6CUUU6j"]]};(0,n(26).gzip)(JSON.stringify(e),(function(e,n){t.bufferData=n,r.NetworkBase.performXhrUsingPromise(t).then((function(e){t.response=e})).catch((function(t){console.log("Error",e,t)}))}))},e}();t.NewRelic=i},function(e,t,n){(function(t,n){var r;r=function(){"use strict";function e(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,o=void 0,a=void 0,s=function(e,t){p[i]=e,p[i+1]=t,2===(i+=2)&&(a?a(m):w())},l="undefined"!=typeof window?window:void 0,c=l||{},u=c.MutationObserver||c.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var e=setTimeout;return function(){return e(m,1)}}var p=new Array(1e3);function m(){for(var e=0;e<i;e+=2)(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0;i=0}var g,v,y,b,w=void 0;function _(e,t){var n=this,r=new this.constructor(k);void 0===r[T]&&F(r);var i=n._state;if(i){var o=arguments[i-1];s((function(){return x(i,r,o,n._result)}))}else A(n,r,e,t);return r}function E(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(k);return I(t,e),t}d?w=function(){return t.nextTick(m)}:u?(v=0,y=new u(m),b=document.createTextNode(""),y.observe(b,{characterData:!0}),w=function(){b.data=v=++v%2}):h?((g=new MessageChannel).port1.onmessage=m,w=function(){return g.port2.postMessage(0)}):w=void 0===l?function(){try{var e=Function("return this")().require("vertx");return void 0!==(o=e.runOnLoop||e.runOnContext)?function(){o(m)}:f()}catch(e){return f()}}():f();var T=Math.random().toString(36).substring(2);function k(){}function S(t,n,r){n.constructor===t.constructor&&r===_&&n.constructor.resolve===E?function(e,t){1===t._state?R(e,t._result):2===t._state?P(e,t._result):A(t,void 0,(function(t){return I(e,t)}),(function(t){return P(e,t)}))}(t,n):void 0===r?R(t,n):e(r)?function(e,t,n){s((function(e){var r=!1,i=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?I(e,n):R(e,n))}),(function(t){r||(r=!0,P(e,t))}),e._label);!r&&i&&(r=!0,P(e,i))}),e)}(t,n,r):R(t,n)}function I(e,t){if(e===t)P(e,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=t),null===r||"object"!==i&&"function"!==i)R(e,t);else{var n=void 0;try{n=t.then}catch(t){return void P(e,t)}S(e,t,n)}var r,i}function M(e){e._onerror&&e._onerror(e._result),O(e)}function R(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&s(O,e))}function P(e,t){void 0===e._state&&(e._state=2,e._result=t,s(M,e))}function A(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+1]=n,i[o+2]=r,0===o&&e._state&&s(O,e)}function O(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?x(n,r,i,o):i(o);e._subscribers.length=0}}function x(t,n,r,i){var o=e(r),a=void 0,s=void 0,l=!0;if(o){try{a=r(i)}catch(e){l=!1,s=e}if(n===a)return void P(n,new TypeError("A promises callback cannot return that same promise."))}else a=i;void 0!==n._state||(o&&l?I(n,a):!1===l?P(n,s):1===t?R(n,a):2===t&&P(n,a))}var C=0;function F(e){e[T]=C++,e._state=void 0,e._result=void 0,e._subscribers=[]}var D=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(k),this.promise[T]||F(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?R(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&R(this.promise,this._result))):P(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===E){var i=void 0,o=void 0,a=!1;try{i=e.then}catch(e){a=!0,o=e}if(i===_&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===L){var s=new n(k);a?P(s,o):S(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===e?P(r,n):this._result[t]=n),0===this._remaining&&R(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;A(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),L=function(){function t(e){this[T]=C++,this._result=this._state=void 0,this._subscribers=[],k!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){I(e,t)}),(function(t){P(e,t)}))}catch(t){P(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return L.prototype.then=_,L.all=function(e){return new D(this,e).promise},L.race=function(e){var t=this;return r(e)?new t((function(n,r){for(var i=e.length,o=0;o<i;o++)t.resolve(e[o]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))},L.resolve=E,L.reject=function(e){var t=new this(k);return P(t,e),t},L._setScheduler=function(e){a=e},L._setAsap=function(e){s=e},L._asap=s,L.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=L},L.Promise=L,L},e.exports=r()}).call(this,n(0),n(1))},function(e,t,n){"use strict";(function(e){var r=n(3).Buffer,i=n(30).Transform,o=n(44),a=n(20),s=n(19).ok,l=n(3).kMaxLength,c="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var u=Object.keys(o),d=0;d<u.length;d++){var h=u[d];h.match(/^Z/)&&Object.defineProperty(t,h,{enumerable:!0,value:o[h],writable:!1})}for(var f={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},p=Object.keys(f),m=0;m<p.length;m++){var g=p[m];f[f[g]]=g}function v(e,t,n){var i=[],o=0;function a(){for(var t;null!==(t=e.read());)i.push(t),o+=t.length;e.once("readable",a)}function s(){var t,a=null;o>=l?a=new RangeError(c):t=r.concat(i,o),i=[],e.close(),n(a,t)}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",a),n(t)})),e.on("end",s),e.end(t),a()}function y(e,t){if("string"==typeof t&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function b(e){if(!(this instanceof b))return new b(e);M.call(this,e,o.DEFLATE)}function w(e){if(!(this instanceof w))return new w(e);M.call(this,e,o.INFLATE)}function _(e){if(!(this instanceof _))return new _(e);M.call(this,e,o.GZIP)}function E(e){if(!(this instanceof E))return new E(e);M.call(this,e,o.GUNZIP)}function T(e){if(!(this instanceof T))return new T(e);M.call(this,e,o.DEFLATERAW)}function k(e){if(!(this instanceof k))return new k(e);M.call(this,e,o.INFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);M.call(this,e,o.UNZIP)}function I(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function M(e,n){var a=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!I(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!I(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!r.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(e,n){R(s),s._hadError=!0;var r=new Error(e);r.errno=n,r.code=t.codes[n],s.emit("error",r)};var l=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(l=e.level);var c=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(c=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,l,e.memLevel||t.Z_DEFAULT_MEMLEVEL,c,e.dictionary),this._buffer=r.allocUnsafe(this._chunkSize),this._offset=0,this._level=l,this._strategy=c,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function R(t,n){n&&e.nextTick(n),t._handle&&(t._handle.close(),t._handle=null)}function P(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(f),writable:!1}),t.Deflate=b,t.Inflate=w,t.Gzip=_,t.Gunzip=E,t.DeflateRaw=T,t.InflateRaw=k,t.Unzip=S,t.createDeflate=function(e){return new b(e)},t.createInflate=function(e){return new w(e)},t.createDeflateRaw=function(e){return new T(e)},t.createInflateRaw=function(e){return new k(e)},t.createGzip=function(e){return new _(e)},t.createGunzip=function(e){return new E(e)},t.createUnzip=function(e){return new S(e)},t.deflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new b(t),e,n)},t.deflateSync=function(e,t){return y(new b(t),e)},t.gzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new _(t),e,n)},t.gzipSync=function(e,t){return y(new _(t),e)},t.deflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new T(t),e,n)},t.deflateRawSync=function(e,t){return y(new T(t),e)},t.unzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new S(t),e,n)},t.unzipSync=function(e,t){return y(new S(t),e)},t.inflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new w(t),e,n)},t.inflateSync=function(e,t){return y(new w(t),e)},t.gunzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new E(t),e,n)},t.gunzipSync=function(e,t){return y(new E(t),e)},t.inflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new k(t),e,n)},t.inflateRawSync=function(e,t){return y(new k(t),e)},a.inherits(M,i),M.prototype.params=function(n,r,i){if(n<t.Z_MIN_LEVEL||n>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+n);if(r!=t.Z_FILTERED&&r!=t.Z_HUFFMAN_ONLY&&r!=t.Z_RLE&&r!=t.Z_FIXED&&r!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==n||this._strategy!==r){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(a._handle,"zlib binding closed"),a._handle.params(n,r),a._hadError||(a._level=n,a._strategy=r,i&&i())}))}else e.nextTick(i)},M.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},M.prototype._flush=function(e){this._transform(r.alloc(0),"",e)},M.prototype.flush=function(t,n){var i=this,a=this._writableState;("function"==typeof t||void 0===t&&!n)&&(n=t,t=o.Z_FULL_FLUSH),a.ended?n&&e.nextTick(n):a.ending?n&&this.once("end",n):a.needDrain?n&&this.once("drain",(function(){return i.flush(t,n)})):(this._flushFlag=t,this.write(r.alloc(0),"",n))},M.prototype.close=function(t){R(this,t),e.nextTick(P,this)},M.prototype._transform=function(e,t,n){var i,a=this._writableState,s=(a.ending||a.ended)&&(!e||a.length===e.length);return null===e||r.isBuffer(e)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,i,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},M.prototype._processChunk=function(e,t,n){var i=e&&e.length,o=this._chunkSize-this._offset,a=0,u=this,d="function"==typeof n;if(!d){var h,f=[],p=0;this.on("error",(function(e){h=e})),s(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(t,e,a,i,this._buffer,this._offset,o)}while(!this._hadError&&y(m[0],m[1]));if(this._hadError)throw h;if(p>=l)throw R(this),new RangeError(c);var g=r.concat(f,p);return R(this),g}s(this._handle,"zlib binding closed");var v=this._handle.write(t,e,a,i,this._buffer,this._offset,o);function y(l,c){if(this&&(this.buffer=null,this.callback=null),!u._hadError){var h=o-c;if(s(h>=0,"have should not go down"),h>0){var m=u._buffer.slice(u._offset,u._offset+h);u._offset+=h,d?u.push(m):(f.push(m),p+=m.length)}if((0===c||u._offset>=u._chunkSize)&&(o=u._chunkSize,u._offset=0,u._buffer=r.allocUnsafe(u._chunkSize)),0===c){if(a+=i-l,i=l,!d)return!0;var g=u._handle.write(t,e,a,i,u._buffer,u._offset,u._chunkSize);return g.callback=y,void(g.buffer=e)}if(!d)return!1;n()}}v.buffer=e,v.callback=y},a.inherits(b,M),a.inherits(w,M),a.inherits(_,M),a.inherits(E,M),a.inherits(T,M),a.inherits(k,M),a.inherits(S,M)}).call(this,n(0))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(u(e,a,a+16383>s?s:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=i;var r=n(9).EventEmitter;function i(){r.call(this)}n(4)(i,r),i.Readable=n(10),i.Writable=n(40),i.Duplex=n(41),i.Transform=n(42),i.PassThrough=n(43),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",c),e.on("error",c),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){},function(e,t,n){"use strict";var r=n(11).Buffer,i=n(34);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i=r.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=i,n=a,o.data.copy(t,n),a+=o.data.length,o=o.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(36),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,n(1))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,l=1,c={},u=!1,d=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)},h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return c[l]=i,r(l),l++},h.clearImmediate=f}function f(e){delete c[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{f(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(1),n(0))},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(1))},function(e,t,n){var r=n(3),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";e.exports=o;var r=n(18),i=Object.create(n(5));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(4),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(12)},function(e,t,n){e.exports=n(2)},function(e,t,n){e.exports=n(10).Transform},function(e,t,n){e.exports=n(10).PassThrough},function(e,t,n){"use strict";(function(e,r){var i=n(19),o=n(48),a=n(49),s=n(52),l=n(55);for(var c in l)t[c]=l[c];function u(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,u.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,"close before init"),i(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||s.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},u.prototype.write=function(e,t,n,r,i,o,a){return this._write(!0,e,t,n,r,i,o,a)},u.prototype.writeSync=function(e,t,n,r,i,o,a){return this._write(!1,e,t,n,r,i,o,a)},u.prototype._write=function(n,o,a,s,l,c,u,d){if(i.equal(arguments.length,8),i(this.init_done,"write before init"),i(this.mode!==t.NONE,"already finalized"),i.equal(!1,this.write_in_progress,"write already in progress"),i.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,i.equal(!1,void 0===o,"must provide flush value"),this.write_in_progress=!0,o!==t.Z_NO_FLUSH&&o!==t.Z_PARTIAL_FLUSH&&o!==t.Z_SYNC_FLUSH&&o!==t.Z_FULL_FLUSH&&o!==t.Z_FINISH&&o!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==a&&(a=e.alloc(0),l=0,s=0),this.strm.avail_in=l,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=d,this.strm.output=c,this.strm.next_out=u,this.flush=o,!n)return this._process(),this._checkError()?this._afterSync():void 0;var h=this;return r.nextTick((function(){h._process(),h._after()})),this},u.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},u.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},u.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},u.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},u.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},u.prototype.init=function(e,n,r,o,a){i(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),i(e>=8&&e<=15,"invalid windowBits"),i(n>=-1&&n<=9,"invalid compression level"),i(r>=1&&r<=9,"invalid memlevel"),i(o===t.Z_FILTERED||o===t.Z_HUFFMAN_ONLY||o===t.Z_RLE||o===t.Z_FIXED||o===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,e,r,o,a),this._setDictionary()},u.prototype.params=function(){throw new Error("deflateParams Not supported")},u.prototype.reset=function(){this._reset(),this._setDictionary()},u.prototype._init=function(e,n,r,i,l){switch(this.level=e,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=l,this.write_in_progress=!1,this.init_done=!0},u.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},u.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=a.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=u}).call(this,n(3).Buffer,n(0))},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))i.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var d=0;d<s.length;d++)o.call(n,s[d])&&(l[s[d]]=n[s[d]])}}return l}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,n){"use strict";var r,i=n(7),o=n(50),a=n(21),s=n(22),l=n(51);function c(e,t){return e.msg=l[t],t}function u(e){return(e<<1)-(e>4?9:0)}function d(e){for(var t=e.length;--t>=0;)e[t]=0}function h(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function f(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,h(e.strm)}function p(e,t){e.pending_buf[e.pending++]=t}function m(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function g(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+258,f=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===p&&c[n+a-1]===f&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<h);if(r=258-(h-o),o=h-258,r>a){if(e.match_start=t,a=r,r>=s)break;f=c[o+a-1],p=c[o+a]}}}while((t=d[t&u])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function v(e){var t,n,r,o,l,c,u,d,h,f,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-262)){i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=p?r-p:0}while(--n);t=n=p;do{r=e.prev[--t],e.prev[t]=r>=p?r-p:0}while(--n);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,h=o,f=void 0,(f=c.avail_in)>h&&(f=h),n=0===f?0:(c.avail_in-=f,i.arraySet(u,c.input,c.next_in,f,d),1===c.state.wrap?c.adler=a(c.adler,u,f,d):2===c.state.wrap&&(c.adler=s(c.adler,u,f,d)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function y(e,t){for(var n,r;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=g(e,n)),e.match_length>=3)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(f(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(f(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(f(e,!1),0===e.strm.avail_out)?1:2}function b(e,t){for(var n,r,i;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=g(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(f(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&f(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(f(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(f(e,!1),0===e.strm.avail_out)?1:2}function w(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function _(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),d(this.dyn_ltree),d(this.dyn_dtree),d(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),d(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),d(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function E(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):c(e,-2)}function T(e){var t,n=E(e);return 0===n&&((t=e.state).window_size=2*t.w_size,d(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function k(e,t,n,r,o,a){if(!e)return-2;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return c(e,-2);8===r&&(r=9);var l=new _;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,T(e)}r=[new w(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(v(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,f(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(f(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(f(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(f(e,!1),e.strm.avail_out),1)})),new w(4,4,8,4,y),new w(4,5,16,8,y),new w(4,6,32,32,y),new w(4,4,16,16,b),new w(8,16,32,32,b),new w(8,16,128,128,b),new w(8,32,128,256,b),new w(32,128,258,1024,b),new w(32,258,258,4096,b)],t.deflateInit=function(e,t){return k(e,t,8,15,8,0)},t.deflateInit2=k,t.deflateReset=T,t.deflateResetKeep=E,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},t.deflate=function(e,t){var n,i,a,l;if(!e||!e.state||t>5||t<0)return e?c(e,-2):-2;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return c(e,0===e.avail_out?-5:-2);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,3),i.status=113);else{var g=8+(i.w_bits-8<<4)<<8;g|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(g|=32),g+=31-g%31,i.status=113,m(i,g),0!==i.strstart&&(m(i,e.adler>>>16),m(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),h(e),a=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),h(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,p(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),h(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,p(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&h(e),i.pending+2<=i.pending_buf_size&&(p(i,255&e.adler),p(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(h(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&u(t)<=u(n)&&4!==t)return c(e,-5);if(666===i.status&&0!==e.avail_in)return c(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var y=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(v(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(f(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(f(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(f(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=258){if(v(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+258;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=258-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(f(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(f(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(f(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==y&&4!==y||(i.status=666),1===y||3===y)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===y&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(d(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),h(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&e.adler),p(i,e.adler>>8&255),p(i,e.adler>>16&255),p(i,e.adler>>24&255),p(i,255&e.total_in),p(i,e.total_in>>8&255),p(i,e.total_in>>16&255),p(i,e.total_in>>24&255)):(m(i,e.adler>>>16),m(i,65535&e.adler)),h(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?c(e,-2):(e.state=null,113===t?c(e,-3):0):-2},t.deflateSetDictionary=function(e,t){var n,r,o,s,l,c,u,h,f=t.length;if(!e||!e.state)return-2;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return-2;for(1===s&&(e.adler=a(e.adler,t,f,0)),n.wrap=0,f>=n.w_size&&(0===s&&(d(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,t,f-n.w_size,n.w_size,0),t=h,f=n.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=f,e.next_in=0,e.input=t,v(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=2,v(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},function(e,t,n){"use strict";var r=n(7);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var u=new Array(60);i(u);var d=new Array(512);i(d);var h=new Array(256);i(h);var f=new Array(29);i(f);var p,m,g,v=new Array(30);function y(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?d[e]:d[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function E(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function T(e,t,n){E(e,n[2*t],n[2*t+1])}function k(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function S(e,t,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=k(o[s]++,s))}}function I(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function M(e){e.bi_valid>8?_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function R(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function P(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&R(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!R(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function A(e,t,n){var r,i,s,l,c=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,0===r?T(e,i,t):(T(e,(s=h[i])+256+1,t),0!==(l=o[s])&&E(e,i-=f[s],l),T(e,s=w(--r),n),0!==(l=a[s])&&E(e,r-=v[s],l))}while(c<e.last_lit);T(e,256,t)}function O(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==o[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)P(e,o,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],P(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,P(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=l[2*l[2*(r=e.heap[n])+1]+1]+1)>p&&(o=p,m++),l[2*r+1]=o,r>c||(e.bl_count[o]++,a=0,r>=f&&(a=h[r-f]),s=l[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==m){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(o=p;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>c||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(e,t),S(o,c,e.bl_count)}function x(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4))}function C(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<c)do{T(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(T(e,i,e.bl_tree),s--),T(e,16,e.bl_tree),E(e,s-3,2)):s<=10?(T(e,17,e.bl_tree),E(e,s-3,3)):(T(e,18,e.bl_tree),E(e,s-11,7));s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4)}}i(v);var F=!1;function D(e,t,n,i){E(e,0+(i?1:0),3),function(e,t,n,i){M(e),_(e,n),_(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}t._tr_init=function(e){F||(function(){var e,t,n,r,i,l=new Array(16);for(n=0,r=0;r<28;r++)for(f[r]=n,e=0;e<1<<o[r];e++)h[n++]=r;for(h[n-1]=r,i=0,r=0;r<16;r++)for(v[r]=i,e=0;e<1<<a[r];e++)d[i++]=r;for(i>>=7;r<30;r++)for(v[r]=i<<7,e=0;e<1<<a[r]-7;e++)d[256+i++]=r;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,l[8]++;for(;e<=255;)c[2*e+1]=9,e++,l[9]++;for(;e<=279;)c[2*e+1]=7,e++,l[7]++;for(;e<=287;)c[2*e+1]=8,e++,l[8]++;for(S(c,287,l),e=0;e<30;e++)u[2*e+1]=5,u[2*e]=k(e,5);p=new y(c,o,257,286,15),m=new y(u,a,0,30,15),g=new y(new Array(0),s,0,19,7)}(),F=!0),e.l_desc=new b(e.dyn_ltree,p),e.d_desc=new b(e.dyn_dtree,m),e.bl_desc=new b(e.bl_tree,g),e.bi_buf=0,e.bi_valid=0,I(e)},t._tr_stored_block=D,t._tr_flush_block=function(e,t,n,r){var i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),O(e,e.l_desc),O(e,e.d_desc),a=function(e){var t;for(x(e,e.dyn_ltree,e.l_desc.max_code),x(e,e.dyn_dtree,e.d_desc.max_code),O(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?D(e,t,n,r):4===e.strategy||o===i?(E(e,2+(r?1:0),3),A(e,c,u)):(E(e,4+(r?1:0),3),function(e,t,n,r){var i;for(E(e,t-257,5),E(e,n-1,5),E(e,r-4,4),i=0;i<r;i++)E(e,e.bl_tree[2*l[i]+1],3);C(e,e.dyn_ltree,t-1),C(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),A(e,e.dyn_ltree,e.dyn_dtree)),I(e),r&&M(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(h[n]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){E(e,2,3),T(e,256,c),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,n){"use strict";var r=n(7),i=n(21),o=n(22),a=n(53),s=n(54);function l(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function u(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):-2}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,u(e)):-2}function h(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,d(e))):-2}function f(e,t){var n,r;return e?(r=new c,e.state=r,r.window=null,0!==(n=h(e,t))&&(e.state=null),n):-2}var p,m,g=!0;function v(e){if(g){var t;for(p=new r.Buf32(512),m=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,p,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,m,0,e.work,{bits:5}),g=!1}e.lencode=p,e.lenbits=9,e.distcode=m,e.distbits=5}function y(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}t.inflateReset=d,t.inflateReset2=h,t.inflateResetKeep=u,t.inflateInit=function(e){return f(e,15)},t.inflateInit2=f,t.inflate=function(e,t){var n,c,u,d,h,f,p,m,g,b,w,_,E,T,k,S,I,M,R,P,A,O,x,C,F=0,D=new r.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(n=e.state).mode&&(n.mode=13),h=e.next_out,u=e.output,p=e.avail_out,d=e.next_in,c=e.input,f=e.avail_in,m=n.hold,g=n.bits,b=f,w=p,O=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;g<16;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}if(2&n.wrap&&35615===m){n.check=0,D[0]=255&m,D[1]=m>>>8&255,n.check=o(n.check,D,2,0),m=0,g=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){e.msg="unknown compression method",n.mode=30;break}if(g-=4,A=8+(15&(m>>>=4)),0===n.wbits)n.wbits=A;else if(A>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<A,e.adler=n.check=1,n.mode=512&m?10:12,m=0,g=0;break;case 2:for(;g<16;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}if(n.flags=m,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=m>>8&1),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,n.check=o(n.check,D,2,0)),m=0,g=0,n.mode=3;case 3:for(;g<32;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}n.head&&(n.head.time=m),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,D[2]=m>>>16&255,D[3]=m>>>24&255,n.check=o(n.check,D,4,0)),m=0,g=0,n.mode=4;case 4:for(;g<16;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,n.check=o(n.check,D,2,0)),m=0,g=0,n.mode=5;case 5:if(1024&n.flags){for(;g<16;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,n.check=o(n.check,D,2,0)),m=0,g=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((_=n.length)>f&&(_=f),_&&(n.head&&(A=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,d,_,A)),512&n.flags&&(n.check=o(n.check,c,_,d)),f-=_,d+=_,n.length-=_),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===f)break e;_=0;do{A=c[d+_++],n.head&&A&&n.length<65536&&(n.head.name+=String.fromCharCode(A))}while(A&&_<f);if(512&n.flags&&(n.check=o(n.check,c,_,d)),f-=_,d+=_,A)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===f)break e;_=0;do{A=c[d+_++],n.head&&A&&n.length<65536&&(n.head.comment+=String.fromCharCode(A))}while(A&&_<f);if(512&n.flags&&(n.check=o(n.check,c,_,d)),f-=_,d+=_,A)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;g<16;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}if(m!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}m=0,g=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;g<32;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}e.adler=n.check=l(m),m=0,g=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=h,e.avail_out=p,e.next_in=d,e.avail_in=f,n.hold=m,n.bits=g,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){m>>>=7&g,g-=7&g,n.mode=27;break}for(;g<3;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}switch(n.last=1&m,g-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(v(n),n.mode=20,6===t){m>>>=2,g-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}m>>>=2,g-=2;break;case 14:for(m>>>=7&g,g-=7&g;g<32;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}if((65535&m)!=(m>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,m=0,g=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(_=n.length){if(_>f&&(_=f),_>p&&(_=p),0===_)break e;r.arraySet(u,c,d,_,h),f-=_,d+=_,p-=_,h+=_,n.length-=_;break}n.mode=12;break;case 17:for(;g<14;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}if(n.nlen=257+(31&m),m>>>=5,g-=5,n.ndist=1+(31&m),m>>>=5,g-=5,n.ncode=4+(15&m),m>>>=4,g-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;g<3;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}n.lens[L[n.have++]]=7&m,m>>>=3,g-=3}for(;n.have<19;)n.lens[L[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,x={bits:n.lenbits},O=s(0,n.lens,0,19,n.lencode,0,n.work,x),n.lenbits=x.bits,O){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;S=(F=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,I=65535&F,!((k=F>>>24)<=g);){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}if(I<16)m>>>=k,g-=k,n.lens[n.have++]=I;else{if(16===I){for(C=k+2;g<C;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}if(m>>>=k,g-=k,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}A=n.lens[n.have-1],_=3+(3&m),m>>>=2,g-=2}else if(17===I){for(C=k+3;g<C;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}g-=k,A=0,_=3+(7&(m>>>=k)),m>>>=3,g-=3}else{for(C=k+7;g<C;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}g-=k,A=0,_=11+(127&(m>>>=k)),m>>>=7,g-=7}if(n.have+_>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;_--;)n.lens[n.have++]=A}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,x={bits:n.lenbits},O=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,x),n.lenbits=x.bits,O){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,x={bits:n.distbits},O=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,x),n.distbits=x.bits,O){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(f>=6&&p>=258){e.next_out=h,e.avail_out=p,e.next_in=d,e.avail_in=f,n.hold=m,n.bits=g,a(e,w),h=e.next_out,u=e.output,p=e.avail_out,d=e.next_in,c=e.input,f=e.avail_in,m=n.hold,g=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;S=(F=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,I=65535&F,!((k=F>>>24)<=g);){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}if(S&&0==(240&S)){for(M=k,R=S,P=I;S=(F=n.lencode[P+((m&(1<<M+R)-1)>>M)])>>>16&255,I=65535&F,!(M+(k=F>>>24)<=g);){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}m>>>=M,g-=M,n.back+=M}if(m>>>=k,g-=k,n.back+=k,n.length=I,0===S){n.mode=26;break}if(32&S){n.back=-1,n.mode=12;break}if(64&S){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&S,n.mode=22;case 22:if(n.extra){for(C=n.extra;g<C;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,g-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;S=(F=n.distcode[m&(1<<n.distbits)-1])>>>16&255,I=65535&F,!((k=F>>>24)<=g);){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}if(0==(240&S)){for(M=k,R=S,P=I;S=(F=n.distcode[P+((m&(1<<M+R)-1)>>M)])>>>16&255,I=65535&F,!(M+(k=F>>>24)<=g);){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}m>>>=M,g-=M,n.back+=M}if(m>>>=k,g-=k,n.back+=k,64&S){e.msg="invalid distance code",n.mode=30;break}n.offset=I,n.extra=15&S,n.mode=24;case 24:if(n.extra){for(C=n.extra;g<C;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,g-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===p)break e;if(_=w-p,n.offset>_){if((_=n.offset-_)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}_>n.wnext?(_-=n.wnext,E=n.wsize-_):E=n.wnext-_,_>n.length&&(_=n.length),T=n.window}else T=u,E=h-n.offset,_=n.length;_>p&&(_=p),p-=_,n.length-=_;do{u[h++]=T[E++]}while(--_);0===n.length&&(n.mode=21);break;case 26:if(0===p)break e;u[h++]=n.length,p--,n.mode=21;break;case 27:if(n.wrap){for(;g<32;){if(0===f)break e;f--,m|=c[d++]<<g,g+=8}if(w-=p,e.total_out+=w,n.total+=w,w&&(e.adler=n.check=n.flags?o(n.check,u,w,h-w):i(n.check,u,w,h-w)),w=p,(n.flags?m:l(m))!==n.check){e.msg="incorrect data check",n.mode=30;break}m=0,g=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;g<32;){if(0===f)break e;f--,m+=c[d++]<<g,g+=8}if(m!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}m=0,g=0}n.mode=29;case 29:O=1;break e;case 30:O=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=h,e.avail_out=p,e.next_in=d,e.avail_in=f,n.hold=m,n.bits=g,(n.wsize||w!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&y(e,e.output,e.next_out,w-e.avail_out)?(n.mode=31,-4):(b-=e.avail_in,w-=e.avail_out,e.total_in+=b,e.total_out+=w,n.total+=w,n.wrap&&w&&(e.adler=n.check=n.flags?o(n.check,u,w,e.next_out-w):i(n.check,u,w,e.next_out-w)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===b&&0===w||4===t)&&0===O&&(O=-5),O)},t.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?-2:(n.head=t,t.done=!1,0):-2},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?-2:11===n.mode&&i(1,t,r,0)!==n.check?-3:y(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},t.inflateInfo="pako inflate (from Nodeca project)"},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,m,g,v,y,b,w,_,E,T,k,S,I;n=e.state,r=e.next_in,S=e.input,i=r+(e.avail_in-5),o=e.next_out,I=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(f+=S[r++]<<p,p+=8,f+=S[r++]<<p,p+=8),b=m[f&v];t:for(;;){if(f>>>=w=b>>>24,p-=w,0==(w=b>>>16&255))I[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=m[(65535&b)+(f&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}_=65535&b,(w&=15)&&(p<w&&(f+=S[r++]<<p,p+=8),_+=f&(1<<w)-1,f>>>=w,p-=w),p<15&&(f+=S[r++]<<p,p+=8,f+=S[r++]<<p,p+=8),b=g[f&y];n:for(;;){if(f>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=g[(65535&b)+(f&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(E=65535&b,p<(w&=15)&&(f+=S[r++]<<p,(p+=8)<w&&(f+=S[r++]<<p,p+=8)),(E+=f&(1<<w)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=w,p-=w,E>(w=o-a)){if((w=E-w)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(T=0,k=h,0===d){if(T+=c-w,w<_){_-=w;do{I[o++]=h[T++]}while(--w);T=o-E,k=I}}else if(d<w){if(T+=c+d-w,(w-=d)<_){_-=w;do{I[o++]=h[T++]}while(--w);if(T=0,d<_){_-=w=d;do{I[o++]=h[T++]}while(--w);T=o-E,k=I}}}else if(T+=d-w,w<_){_-=w;do{I[o++]=h[T++]}while(--w);T=o-E,k=I}for(;_>2;)I[o++]=k[T++],I[o++]=k[T++],I[o++]=k[T++],_-=3;_&&(I[o++]=k[T++],_>1&&(I[o++]=k[T++]))}else{T=o-E;do{I[o++]=I[T++],I[o++]=I[T++],I[o++]=I[T++],_-=3}while(_>2);_&&(I[o++]=I[T++],_>1&&(I[o++]=I[T++]))}break}}break}}while(r<i&&o<s);r-=_=p>>3,f&=(1<<(p-=_<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=f,n.bits=p}},function(e,t,n){"use strict";var r=n(7),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,l,c,u,d,h){var f,p,m,g,v,y,b,w,_,E=h.bits,T=0,k=0,S=0,I=0,M=0,R=0,P=0,A=0,O=0,x=0,C=null,F=0,D=new r.Buf16(16),L=new r.Buf16(16),N=null,V=0;for(T=0;T<=15;T++)D[T]=0;for(k=0;k<l;k++)D[t[n+k]]++;for(M=E,I=15;I>=1&&0===D[I];I--);if(M>I&&(M=I),0===I)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(S=1;S<I&&0===D[S];S++);for(M<S&&(M=S),A=1,T=1;T<=15;T++)if(A<<=1,(A-=D[T])<0)return-1;if(A>0&&(0===e||1!==I))return-1;for(L[1]=0,T=1;T<15;T++)L[T+1]=L[T]+D[T];for(k=0;k<l;k++)0!==t[n+k]&&(d[L[t[n+k]]++]=k);if(0===e?(C=N=d,y=19):1===e?(C=i,F-=257,N=o,V-=257,y=256):(C=a,N=s,y=-1),x=0,k=0,T=S,v=u,R=M,P=0,m=-1,g=(O=1<<M)-1,1===e&&O>852||2===e&&O>592)return 1;for(;;){b=T-P,d[k]<y?(w=0,_=d[k]):d[k]>y?(w=N[V+d[k]],_=C[F+d[k]]):(w=96,_=0),f=1<<T-P,S=p=1<<R;do{c[v+(x>>P)+(p-=f)]=b<<24|w<<16|_|0}while(0!==p);for(f=1<<T-1;x&f;)f>>=1;if(0!==f?(x&=f-1,x+=f):x=0,k++,0==--D[T]){if(T===I)break;T=t[n+d[k]]}if(T>M&&(x&g)!==m){for(0===P&&(P=M),v+=S,A=1<<(R=T-P);R+P<I&&!((A-=D[R+P])<=0);)R++,A<<=1;if(O+=1<<R,1===e&&O>852||2===e&&O>592)return 1;c[m=x&g]=M<<24|R<<16|v-u|0}}return 0!==x&&(c[v+x]=T-P<<24|64<<16|0),h.bits=M,0}},function(e,t,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Credentials=void 0;var n=function(){function e(e,t,n,r,i){this.publicKey="AKIAIPUUKKTGWLCOV32A",this.privateKey="RTBKQWF1M3grRGc2cVlMb3NkQzUrOFRJRWJ1ZmpjV2w2YTZyVFk3VQ==",this.region=e,this.stagingStreams=t,this.productionStreams=n,this.target=r,this.isProduction=i}return e.prototype.getKinesisCredentials=function(){return{publicKey:this.publicKey,region:this.region,secretKey:atob(this.privateKey),streams:this.getStreams(),target:this.target}},e.prototype.getStreams=function(){return this.isProduction?this.productionStreams:this.stagingStreams},e}();t.Credentials=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.KinesisManager=void 0;var r,i,o=n(58),a=n(8),s=n(59),l=n(13);!function(e){e.Target="X-Amz-Target",e.Pragma="Pragma",e.Date="X-Amz-Date",e.ContentType="Content-Type",e.CacheControl="Cache-Control",e.UserAgent="X-Amz-User-Agent",e.HashedBody="X-Amz-Content-Sha256",e.Auth="Authorization",e.Host="Host"}(r||(r={})),function(e){e.data="Data",e.key="PartitionKey",e.records="Records",e.stream="StreamName",e.algorithmLongform="AWS4-HMAC-SHA256",e.algorithm="sha256"}(i||(i={}));var c=function(){function e(e){this.userAgent="aws-sdk-js/2.10.0",this.service="kinesis",this.errorUrl="https://w.yieldmo.com/event/error.png",this.retryLimit=2,this.setNewCredentials(e)}return e.prototype.setNewCredentials=function(e){this.credentials=e},e.prototype.sendRecord=function(e,t,n,r){void 0===r&&(r=!1);var o=s.StringEncode.safeBinaryToAscii(e);if(o)if(r&&navigator.sendBeacon&&e.length<6e4)navigator.sendBeacon(this.errorUrl,o);else{n=n||this.getKinesisStream(t);var a="https://kinesis."+this.credentials.region+".amazonaws.com",l='{"'+i.data+'":"'+o+'","'+i.key+'":"'+t+'","'+i.stream+'":"'+n+'"}',c={method:"POST",url:a,headers:this.createKinesisHeaderMap(l),body:l,sync:r};this.dispatchRequest(c)}else this.sendEncodingError(e)},e.prototype.sendRecords=function(e,t){var n=this,r="https://kinesis."+this.credentials.region+".amazonaws.com",o="[";o+=e.map((function(e){var r=s.StringEncode.safeBinaryToAscii(e);return r?'{"'+i.data+'":"'+r+'","'+i.key+'":"'+t+'"}':(n.sendEncodingError(e),"")})).join(","),o+="]";var a='{"'+i.records+'":'+o+',"'+i.stream+'":"'+this.getKinesisStream(t)+'"}',l={method:"POST",url:r,headers:this.createKinesisHeaderMap(a),body:a};this.dispatchRequest(l)},e.prototype.dispatchRequest=function(e){var t=this;a.NetworkBase.performXhrUsingPromise(e).then((function(n){e.response=n,t.checkForKinesisError(e)})).catch((function(e){t.handleCommonError(e)}))},e.prototype.getKinesisStream=function(e){var t=+e.slice(-15)%this.credentials.streams.length;return this.credentials.streams[t]},e.prototype.createKinesisHeaderMap=function(e){var t=new Date(l.Time.now()),n=this.awsFullDate(t),i=this.hash(e),o=Array();return o.push([r.Target,this.credentials.target]),o.push([r.Date,n]),o.push([r.ContentType,"application/x-amz-json-1.1"]),o.push([r.Pragma,"no-cache"]),o.push([r.CacheControl,"no-cache"]),o.push([r.UserAgent,this.userAgent]),o.push([r.HashedBody,i]),o.push([r.Auth,this.createAuthorization(t,i)]),o},e.prototype.createAuthorization=function(e,t){var n=this.awsYearMonthDay(e),o=this.awsFullDate(e),a=this.awsHeadersString([r.Host,r.HashedBody,r.Date,r.Target,r.UserAgent]),s=this.awsCanonicalRequest(t,o,a),l=this.hash(s),c=i.algorithmLongform+"\n"+o+"\n"+n+"/"+this.credentials.region+"/kinesis/aws4_request\n"+l,u=this.aws4HmacSignature(c,n,this.credentials.secretKey,this.credentials.region,this.service);return i.algorithmLongform+" Credential="+this.credentials.publicKey+"/"+n+"/"+this.credentials.region+"/kinesis/aws4_request, SignedHeaders="+a+", Signature="+u},e.prototype.hash=function(e){return o.SHA256(e).toString(o.enc.Hex)},e.prototype.awsHeadersString=function(e){return e.map((function(e){return e.toLowerCase()})).join(";")},e.prototype.awsYearMonthDay=function(e){return this.awsFullDate(e).split("T")[0]},e.prototype.awsFullDate=function(e){var t=e.toISOString();return(t=t.split(".")[0]).match(/\w/g).join("")+"Z"},e.prototype.aws4HmacSignature=function(e,t,n,r,i){var a=o.HmacSHA256(t,"AWS4"+n),s=o.HmacSHA256(r,a),l=o.HmacSHA256(i,s),c=o.HmacSHA256("aws4_request",l);return o.HmacSHA256(e,c).toString(o.enc.Hex)},e.prototype.awsCanonicalRequest=function(e,t,n){return"POST\n/\n\n"+r.Host.toLowerCase()+":kinesis."+this.credentials.region+".amazonaws.com\n"+r.HashedBody.toLowerCase()+":"+e+"\n"+r.Date.toLowerCase()+":"+t+"\n"+r.Target.toLowerCase()+":"+this.credentials.target+"\n"+r.UserAgent.toLowerCase()+":"+this.userAgent+"\n\n"+n+"\n"+e},e.prototype.checkForKinesisError=function(e){var t=e.response;if(t&&"string"==typeof t){var n=void 0;try{n=JSON.parse(t)}catch(e){}n&&n.FailedRecordCount&&t.indexOf("ProvisionedThroughputExceededException")?this.retryRequest(e):t.indexOf("Error")>-1&&this.sendKinesisError("KINESIS_FAIL",e)}},e.prototype.handleCommonError=function(e){var t=e.response,n=e.status;if(n&&400===n&&t&&"string"==typeof t)if(t.indexOf("InvalidSignatureException")>-1){var r=t.indexOf(" + 5 min.)"),i=t.indexOf(" - 5 min.)"),o=r>-1?r:i,a=null;if(o>-1){var s=o-16;a=t.slice(s,o)}if(a){var c=a.slice(0,4)+"-"+a.slice(4,6)+"-"+a.slice(6,11)+":"+a.slice(11,13)+":"+a.slice(13),u=new Date(c);u&&(l.Time.setTimeDifference(u.getTime()),e.headers=this.createKinesisHeaderMap(e.body),this.dispatchRequest(e))}}else n&&n>=400&&n<=500?this.sendKinesisError("KINESIS_FAIL",e):n>=500&&this.retryRequest(e)},e.prototype.sendKinesisError=function(e,t){var n,r=l.Time.now();try{n=JSON.parse(atob(JSON.parse(t.body||"").Data))}catch(e){n="JSON parse/decode failed"}var i=n&&n.events&&n.events[0],o={events:[{stime:r,data:{requestBody:n,desc:t.response&&t.response.slice&&t.response.slice(0,1e3),location:document.location&&document.location.href},plid:null==i?void 0:i.plid,pvid:null==i?void 0:i.pvid,imp:null==i?void 0:i.imp,v:null==i?void 0:i.v,lane:null==i?void 0:i.lane,sub:e,type:"error",etime:r}]},c=s.StringEncode.safeBinaryToAscii(JSON.stringify(o));c&&a.NetworkBase.performXhrUsingPromise({method:"POST",url:this.errorUrl,body:c})},e.prototype.sendEncodingError=function(e){var t=s.StringEncode.unicodeToBinary(e).slice(0,1e3),n=l.Time.now(),r={events:[{stime:n,data:{badString:t,desc:"unable to encode string",location:document.location&&document.location.href},sub:"ENCODING_FAIL",type:"error",etime:n}]},i=s.StringEncode.safeBinaryToAscii(JSON.stringify(r));i&&a.NetworkBase.performXhrUsingPromise({method:"POST",url:this.errorUrl,body:i})},e.prototype.retryRequest=function(e){var t=this;if(!(e.retryCount&&e.retryCount>=this.retryLimit)){e.retryCount?e.retryCount++:e.retryCount=1;var n=100*Math.pow(2,e.retryCount);setTimeout((function(){t.dispatchRequest(e)}),n)}},e}();t.KinesisManager=c},function(e,t){var n,r,i=i||function(e,t){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(e){i.prototype=this;var t=new i;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes;if(e=e.sigBytes,this.clamp(),r%4)for(var i=0;i<e;i++)t[r+i>>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535<n.length)for(i=0;i<e;i+=4)t[r+i>>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(4294967296*e.random()|0);return new a.init(n,t)}}),s=n.enc={},l=s.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r<e;r++){var i=t[r>>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r<e;r++)n.push(String.fromCharCode(t[r>>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o);if(t=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,i=e.min(4*t,i),t){for(var l=0;l<t;l+=o)this._doProcessBlock(r,l);l=r.splice(0,t),n.sigBytes-=i}return new a.init(l,i)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=d.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=n.algo={};return n}(Math);!function(e){for(var t=i,n=(o=t.lib).WordArray,r=o.Hasher,o=t.algo,a=[],s=[],l=function(e){return 4294967296*(e-(0|e))|0},c=2,u=0;64>u;){var d;e:{d=c;for(var h=e.sqrt(d),f=2;f<=h;f++)if(!(d%f)){d=!1;break e}d=!0}d&&(8>u&&(a[u]=l(e.pow(c,.5))),s[u]=l(e.pow(c,1/3)),u++),c++}var p=[];o=o.SHA256=r.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],c=n[5],u=n[6],d=n[7],h=0;64>h;h++){if(16>h)p[h]=0|e[t+h];else{var f=p[h-15],m=p[h-2];p[h]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+p[h-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+p[h-16]}f=d+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&c^~l&u)+s[h]+p[h],m=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&o^i&o),d=u,u=c,c=l,l=a+f|0,a=o,o=i,i=r,r=f+m|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=r._createHelper(o),t.HmacSHA256=r._createHmacHelper(o)}(Math),r=(n=i).enc.Utf8,n.algo.HMAC=n.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}}),e.exports=i},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.StringEncode=void 0;var n=function(){function e(){}return e.safeBinaryToAscii=function(e){try{return btoa(e)}catch(e){return""}},e.unicodeToBinary=function(e){for(var t=new Uint16Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);var r=new Uint8Array(t.buffer),i=[];for(n=0;n<r.length;n++)i[n]=r[n];return String.fromCharCode.apply(String,i)},e.binaryToUnicode=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);var r=new Uint16Array(t.buffer),i=[];for(n=0;n<r.length;n++)i[n]=r[n];return String.fromCharCode.apply(String,i)},e}();t.StringEncode=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.precisionRound=void 0,t.precisionRound=function(e,t){void 0===t&&(t=0);var n=Math.pow(10,t);return Math.round(e*n)/n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.throttled=void 0;var r=n(13);t.throttled=function(e,t){void 0===t&&(t=16);var n=null,i=0,o=function(t,o){i=r.Time.now(),n=null,e.apply(t,o)};return function(){var a=r.Time.now(),s=t-(a-i),l=this,c=arguments;s<=0||s>t?(clearTimeout(n),n=null,i=a,e.apply(l,c)):n||(n=setTimeout(o.bind(this,l,c),s))}}}])},2702:function(e,t,n){e.exports=function(){"use strict";function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,i=void 0,o=void 0,a=function(e,t){f[r]=e,f[r+1]=t,2===(r+=2)&&(o?o(p):b())};var s="undefined"!=typeof window?window:void 0,l=s||{},c=l.MutationObserver||l.WebKitMutationObserver,u="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var e=setTimeout;return function(){return e(p,1)}}var f=new Array(1e3);function p(){for(var e=0;e<r;e+=2)(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0;r=0}var m,g,v,y,b=void 0;function w(e,t){var n=this,r=new this.constructor(T);void 0===r[E]&&F(r);var i=n._state;if(i){var o=arguments[i-1];a((function(){return x(i,r,o,n._result)}))}else A(n,r,e,t);return r}function _(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(T);return I(t,e),t}b=u?function(){return process.nextTick(p)}:c?(g=0,v=new c(p),y=document.createTextNode(""),v.observe(y,{characterData:!0}),function(){y.data=g=++g%2}):d?((m=new MessageChannel).port1.onmessage=p,function(){return m.port2.postMessage(0)}):void 0===s?function(){try{var e=Function("return this")().require("vertx");return void 0!==(i=e.runOnLoop||e.runOnContext)?function(){i(p)}:h()}catch(e){return h()}}():h();var E=Math.random().toString(36).substring(2);function T(){}var k=void 0;function S(t,n,r){n.constructor===t.constructor&&r===w&&n.constructor.resolve===_?function(e,t){1===t._state?R(e,t._result):2===t._state?P(e,t._result):A(t,void 0,(function(t){return I(e,t)}),(function(t){return P(e,t)}))}(t,n):void 0===r?R(t,n):e(r)?function(e,t,n){a((function(e){var r=!1,i=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?I(e,n):R(e,n))}),(function(t){r||(r=!0,P(e,t))}),e._label);!r&&i&&(r=!0,P(e,i))}),e)}(t,n,r):R(t,n)}function I(e,t){if(e===t)P(e,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=t),null===r||"object"!==i&&"function"!==i)R(e,t);else{var n=void 0;try{n=t.then}catch(t){return void P(e,t)}S(e,t,n)}var r,i}function M(e){e._onerror&&e._onerror(e._result),O(e)}function R(e,t){e._state===k&&(e._result=t,e._state=1,0!==e._subscribers.length&&a(O,e))}function P(e,t){e._state===k&&(e._state=2,e._result=t,a(M,e))}function A(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+1]=n,i[o+2]=r,0===o&&e._state&&a(O,e)}function O(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?x(n,r,i,o):i(o);e._subscribers.length=0}}function x(t,n,r,i){var o=e(r),a=void 0,s=void 0,l=!0;if(o){try{a=r(i)}catch(e){l=!1,s=e}if(n===a)return void P(n,new TypeError("A promises callback cannot return that same promise."))}else a=i;n._state!==k||(o&&l?I(n,a):!1===l?P(n,s):1===t?R(n,a):2===t&&P(n,a))}var C=0;function F(e){e[E]=C++,e._state=void 0,e._result=void 0,e._subscribers=[]}var D=function(){function e(e,n){this._instanceConstructor=e,this.promise=new e(T),this.promise[E]||F(this.promise),t(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?R(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&R(this.promise,this._result))):P(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===k&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===_){var i=void 0,o=void 0,a=!1;try{i=e.then}catch(e){a=!0,o=e}if(i===w&&e._state!==k)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===L){var s=new n(T);a?P(s,o):S(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===k&&(this._remaining--,2===e?P(r,n):this._result[t]=n),0===this._remaining&&R(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;A(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}();var L=function(){function t(e){this[E]=C++,this._result=this._state=void 0,this._subscribers=[],T!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){I(e,t)}),(function(t){P(e,t)}))}catch(t){P(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();return L.prototype.then=w,L.all=function(e){return new D(this,e).promise},L.race=function(e){var n=this;return t(e)?new n((function(t,r){for(var i=e.length,o=0;o<i;o++)n.resolve(e[o]).then(t,r)})):new n((function(e,t){return t(new TypeError("You must pass an array to race."))}))},L.resolve=_,L.reject=function(e){var t=new this(T);return P(t,e),t},L._setScheduler=function(e){o=e},L._setAsap=function(e){a=e},L._asap=a,L.polyfill=function(){var e=void 0;if(void 0!==n.g)e=n.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=L},L.Promise=L,L}()},6834:(e,t,n)=>{"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var o=i(n(2067)),a=r(n(5558)),s=r(n(8728)),l=i(n(2392)),c=i(n(1628)),u=r(n(3982));function d(){var e=new o.HandlebarsEnvironment;return l.extend(e,o),e.SafeString=a.default,e.Exception=s.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var h=d();h.create=d,u.default(h),h.default=h,t.default=h,e.exports=t.default},2067:(e,t,n)=>{"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.HandlebarsEnvironment=u;var i=n(2392),o=r(n(8728)),a=n(2638),s=n(881),l=r(n(8037));t.VERSION="4.0.5",t.COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};var c="[object Object]";function u(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},a.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:l.default,log:l.default.log,registerHelper:function(e,t){if(i.toString.call(e)===c){if(t)throw new o.default("Arg not supported with multiple helpers");i.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(i.toString.call(e)===c)i.extend(this.partials,e);else{if(void 0===t)throw new o.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(i.toString.call(e)===c){if(t)throw new o.default("Arg not supported with multiple decorators");i.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var d=l.default.log;t.log=d,t.createFrame=i.createFrame,t.logger=l.default},881:(e,t,n)=>{"use strict";t.__esModule=!0,t.registerDefaultDecorators=function(e){i.default(e)};var r,i=(r=n(5670))&&r.__esModule?r:{default:r}},5670:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(2392);t.default=function(e){e.registerDecorator("inline",(function(e,t,n,i){var o=e;return t.partials||(t.partials={},o=function(i,o){var a=n.partials;n.partials=r.extend({},a,t.partials);var s=e(i,o);return n.partials=a,s}),t.partials[i.args[0]]=i.fn,o}))},e.exports=t.default},8728:(e,t)=>{"use strict";t.__esModule=!0;var n=["description","fileName","lineNumber","message","name","number","stack"];function r(e,t){var i=t&&t.loc,o=void 0,a=void 0;i&&(e+=" - "+(o=i.start.line)+":"+(a=i.start.column));for(var s=Error.prototype.constructor.call(this,e),l=0;l<n.length;l++)this[n[l]]=s[n[l]];Error.captureStackTrace&&Error.captureStackTrace(this,r),i&&(this.lineNumber=o,this.column=a)}r.prototype=new Error,t.default=r,e.exports=t.default},2638:(e,t,n)=>{"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.registerDefaultHelpers=function(e){i.default(e),o.default(e),a.default(e),s.default(e),l.default(e),c.default(e),u.default(e)};var i=r(n(7342)),o=r(n(6822)),a=r(n(4905)),s=r(n(7405)),l=r(n(5702)),c=r(n(7593)),u=r(n(3978))},7342:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(2392);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var i=n.inverse,o=n.fn;if(!0===t)return o(this);if(!1===t||null==t)return i(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return o(t,n)}))},e.exports=t.default},6822:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=n(2392),o=(r=n(8728))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new o.default("Must pass iterator to #each");var n=t.fn,r=t.inverse,a=0,s="",l=void 0,c=void 0;function u(t,r,o){l&&(l.key=t,l.index=r,l.first=0===r,l.last=!!o,c&&(l.contextPath=c+t)),s+=n(e[t],{data:l,blockParams:i.blockParams([e[t],t],[c+t,null])})}if(t.data&&t.ids&&(c=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(l=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var d=e.length;a<d;a++)a in e&&u(a,a,a===e.length-1);else{var h=void 0;for(var f in e)e.hasOwnProperty(f)&&(void 0!==h&&u(h,a-1),h=f,a++);void 0!==h&&u(h,a-1,!0)}return 0===a&&(s=r(this)),s}))},e.exports=t.default},4905:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(8728))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},7405:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(2392);t.default=function(e){e.registerHelper("if",(function(e,t){return r.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||r.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,n){return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))},e.exports=t.default},5702:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),t[0]=i,e.log.apply(e,t)}))},e.exports=t.default},7593:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",(function(e,t){return e&&e[t]}))},e.exports=t.default},3978:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(2392);t.default=function(e){e.registerHelper("with",(function(e,t){r.isFunction(e)&&(e=e.call(this));var n=t.fn;if(r.isEmpty(e))return t.inverse(this);var i=t.data;return t.data&&t.ids&&((i=r.createFrame(t.data)).contextPath=r.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:i,blockParams:r.blockParams([e],[i&&i.contextPath])})}))},e.exports=t.default},8037:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(2392),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(i.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];console[t].apply(console,r)}}};t.default=i,e.exports=t.default},3982:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=void 0!==n.g?n.g:window,r=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=r),e}},e.exports=t.default},1628:(e,t,n)=>{"use strict";t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,n=a.COMPILER_REVISION;if(t!==n){if(t<n){var r=a.REVISION_CHANGES[n],i=a.REVISION_CHANGES[t];throw new o.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new o.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(e,t){if(!t)throw new o.default("No environment passed to template");if(!e||!e.main)throw new o.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n={strict:function(e,t){if(!(t in e))throw new o.default('"'+t+'" not defined in '+e);return e[t]},lookup:function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r]&&null!=e[r][t])return e[r][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:i.escapeExpression,invokePartial:function(n,r,a){a.hash&&(r=i.extend({},r,a.hash),a.ids&&(a.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,a);var s=t.VM.invokePartial.call(this,n,r,a);if(null==s&&t.compile&&(a.partials[a.name]=t.compile(n,e.compilerOptions,t),s=a.partials[a.name](r,a)),null!=s){if(a.indent){for(var l=s.split("\n"),c=0,u=l.length;c<u&&(l[c]||c+1!==u);c++)l[c]=a.indent+l[c];s=l.join("\n")}return s}throw new o.default("The partial "+a.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,r,i){var o=this.programs[e],a=this.fn(e);return t||i||r||n?o=s(this,e,a,t,n,r,i):o||(o=this.programs[e]=s(this,e,a)),o},data:function(e,t){for(;e&&t--;)e=e._parent;return e},merge:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=i.extend({},t,e)),n},noop:t.VM.noop,compilerInfo:e.compiler};function r(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=i.data;r._setup(i),!i.partial&&e.useData&&(o=c(t,o));var a=void 0,s=e.useBlockParams?[]:void 0;function l(t){return""+e.main(n,t,n.helpers,n.partials,o,s,a)}return e.useDepths&&(a=i.depths?t!==i.depths[0]?[t].concat(i.depths):i.depths:[t]),(l=u(e.main,l,n,i.depths||[],o,s))(t,i)}return r.isTop=!0,r._setup=function(r){r.partial?(n.helpers=r.helpers,n.partials=r.partials,n.decorators=r.decorators):(n.helpers=n.merge(r.helpers,t.helpers),e.usePartial&&(n.partials=n.merge(r.partials,t.partials)),(e.usePartial||e.useDecorators)&&(n.decorators=n.merge(r.decorators,t.decorators)))},r._child=function(t,r,i,a){if(e.useBlockParams&&!i)throw new o.default("must pass block params");if(e.useDepths&&!a)throw new o.default("must pass parent depths");return s(n,t,e[t],r,0,i,a)},r},t.wrapProgram=s,t.resolvePartial=function(e,t,n){return e?e.call||n.name||(n.name=e,e=n.partials[e]):e="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name],e},t.invokePartial=function(e,t,n){n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==l&&(n.data=a.createFrame(n.data),(r=n.data["partial-block"]=n.fn).partials&&(n.partials=i.extend({},n.partials,r.partials))),void 0===e&&r&&(e=r),void 0===e)throw new o.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},t.noop=l;var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2392)),o=(r=n(8728))&&r.__esModule?r:{default:r},a=n(2067);function s(e,t,n,r,i,o,a){function s(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=a;return a&&t!==a[0]&&(s=[t].concat(a)),n(e,t,e.helpers,e.partials,i.data||r,o&&[i.blockParams].concat(o),s)}return(s=u(n,s,e,a,r,o)).program=t,s.depth=a?a.length:0,s.blockParams=i||0,s}function l(){return""}function c(e,t){return t&&"root"in t||((t=t?a.createFrame(t):{}).root=e),t}function u(e,t,n,r,o,a){if(e.decorator){var s={};t=e.decorator(t,s,n,r&&r[0],o,a,r),i.extend(t,s)}return t}},5558:(e,t)=>{"use strict";function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default},2392:(e,t)=>{"use strict";t.__esModule=!0,t.extend=a,t.indexOf=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return i.test(e)?e.replace(r,o):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=a({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,i=/[&<>"'`=]/;function o(e){return n[e]}function a(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var s=Object.prototype.toString;t.toString=s;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===s.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===s.call(e)};t.isArray=c},202:(e,t,n)=>{e.exports=n(6834).default},1329:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AtsManager=void 0;var r=n(2702),i=n(9179),o=function(){function e(){}return e.getAtsEnvelope=function(){return this.atsEnvelope},e.readAtsEnvelope=function(e,t){void 0===t&&(t=1e3);var n=i.CookieManager.getCookies().lr_env;return n?(this.atsEnvelope=n,r.Promise.resolve()):e.availableFeatures().topWindow?this.readAtsEnvelopeFromSDK(e):this.readAtsEnvelopViaPostMessage(t)},e.readAtsEnvelopeFromSDK=function(e){var t=this,n=e.topWindow();return n.ats?new r.Promise((function(e){var r;null===(r=n.ats)||void 0===r||r.retrieveEnvelope().then((function(n){t.atsEnvelope=null==n?void 0:n.envelope,e()})).catch(e)})):r.Promise.resolve()},e.readAtsEnvelopViaPostMessage=function(e){var t=this;void 0===e&&(e=1e3);var n,i=window.top,o=(n=e,new r.Promise((function(e){t.messagePromiseTimeout=setTimeout(e,n)}))),a=new r.Promise((function(e){try{window.addEventListener("message",(function(n){n&&n.data&&"ats-liveramp-envelope-result"===n.data.message&&(clearTimeout(t.messagePromiseTimeout),t.atsEnvelope=n.data.result.envelope,e())}),!1),i.postMessage("ats-liveramp-envelope-request","*")}catch(n){clearTimeout(t.messagePromiseTimeout),e()}}));return r.Promise.race([a,o])},e}();t.AtsManager=o},667:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Automation=void 0;var n=function(){function e(){}return e.writeRequestToDom=function(e,t,n){this.postMessageToTopWindow({messageType:"kinesis",payload:{body:n,method:e,url:t}})},e.writeResponseToDom=function(e){this.postMessageToTopWindow({messageType:"net",payload:e})},e.postMessageToTopWindow=function(e){window.top.postMessage(e,"*")},e}();t.Automation=n},3560:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Bootstrap=void 0;var o=n(2889),a=n(1987),s=n(9056),l=n(318),c=n(3231),u=n(5537),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getElements=function(){return a.DomManager.getPlacementElements()},t.prototype.getSdkType=function(){return u.Yieldmo},t.prototype.getSdk=function(){return window._ym},t.prototype.setSdk=function(e){return c.Sdk.setSdk(c.SdkKind.regular),window._ym=e},t.prototype.isForcedSdk=function(){return!!window._ymForcedSdk},t.prototype.setForcedSdk=function(){window._ymForcedSdk=!0},t.prototype.initialize=function(t){l.ConsortiumId.doConsortiumSync(),e.prototype.initialize.call(this,t)},t.prototype.getScriptName=function(){return"ym.min.js"},t.prototype.hasValidLocalAdResponse=function(){var e=window.__ymAds;return!!e&&!s.AdResponses.isIncompleteLocalAdResponse(e)},t}(o.BootstrapBase);t.Bootstrap=d,(new d).loadIfValidEnvironment()},2889:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BootstrapBase=void 0;var r=n(2702),i=n(7722),o=n(3193),a=n(1987),s=n(7909),l=n(5888),c=n(9056),u=n(9222),d=n(1284),h=n(2573);n(7581);var f=n(3005),p=n(974),m=n(8235),g=n(1634),v=n(1329),y=function(){function e(){this.LoadTime=p.Time.now(),this.setSdk(new(this.getSdkType())),m.ErrorManager.reportError(u.SdkInfo.welcome,{samplePercent:.1})}return e.prototype.getPrefix=function(){return""},e.prototype.initialize=function(e){m.ErrorManager.reportError(u.SdkInfo.timeToInit,{samplePercent:.1,extraData:{delay:p.Time.now()-this.LoadTime}}),this.start(e)},e.prototype.loadIfValidEnvironment=function(){this.getSdkType().startTime=p.Time.now(),i.Browser.setUserAgent(window.navigator.userAgent);var t=this.getElements();window.addEventListener("error",e.onError),this.initReporting(),this.initialize(t)},e.prototype.start=function(e){if(window&&document){var t,n;t=e&&e.length?(n=e[0]).ownerDocument.defaultView:window;var i=s.EnvironmentDispatch.getEnvironmentManager(t,n),u=i.kind,p=this.getSdk();p.environmentManager=i,p.environmentManager.listenForResize();var m=this.getCurrentUri(i,n),y=new h.Overrides(m,u,this.getPrefix());if(y.sdk&&!this.isForcedSdk()){var b=y.sdk;this.setForcedSdk(),f.Log.debug("Overriding sdk with",b),this.reloadSdk(p,b)}else{y.log&&p.setLogLevel(+y.log),f.Log.debug("override set:",y),d.Network.overrideDefaults(y),g.EventTracker.overrideDefaults(y),c.AdResponses.overrides=y,y.placement&&a.DomManager.forcePlacements(y.placement),y.licensedId&&a.DomManager.forceLicensedFormats(y.licensedId),y.partner&&a.DomManager.forcePartnerUrl(y.partner),y.fakeRandom&&(l.GlobalVariables.randomNumber=y.fakeRandom);var w=new r.Promise((function(e){setTimeout((function(){e("timeout")}),5e3)})),_=[];this.hasValidLocalAdResponse()?(f.Log.setLevel(4),f.Log.debug("Skipped SDK blockers"),f.Log.setLevel(0)):(_.push(o.ConsentManager.readUsPrivacy(50)),_.push(o.ConsentManager.readConsentString(50)),_.push(v.AtsManager.readAtsEnvelope(i)));var E=_.map((function(e){return r.Promise.race([e,w])}));r.Promise.all(E).then((function(e){f.Log.debug("Resolved things that were blocking sdk load: ",e),p.findAndRenderElements()})).catch((function(e){f.Log.error("caught error while waiting for sdk blockers: ",e)}))}f.Log.info(this.getPrefix()+" SDK v"+p.version)}},e.prototype.getCurrentUri=function(e,t){if(void 0!==t){var n=t.dataset.topUri;if(void 0!==n&&""!==n)return decodeURIComponent(n)}return e.getFullPageUrl()},e.prototype.reloadSdk=function(e,t){if(window){e.destroy();var n=this.getSdk();if(void 0===n){this.setSdk("");var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=t+"/"+this.getScriptName(),(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(r)}else n instanceof String||void 0===n.findAndRenderElements||n.findAndRenderElements()}},e.onError=function(e){var t=e.colno,n=e.error,r=e.filename,i=e.lineno,o=e.message,a={col:t,filename:r,line:i,stack:n&&n.stack};m.ErrorManager.reportError(u.SdkError.genericRuntimeError,{message:o,extraData:a})},e.prototype.initReporting=function(){if(void 0!==window.ReportingObserver){var e=new window.ReportingObserver((function(e){m.ErrorManager.sendReports(e)}),{buffered:!0,types:["intervention"]});e.observe(),window.addEventListener("unload",(function(){return m.ErrorManager.sendReports(e.takeRecords())}))}},e}();t.BootstrapBase=y},7722:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Browser=void 0;var n=function(){function e(){}return e.setUserAgent=function(t){e.userAgent=t},e.isIOS=function(){return/iPhone|iPad|iPod/i.test(e.userAgent)},e.isAndroid=function(){return/Android/i.test(e.userAgent)},e.isDesktop=!1,e}();t.Browser=n},2498:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Cmp=void 0;var o=n(2702),a=n(7893),s=n(8235),l=n(9222),c=n(3005),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getVendorConsents=function(){return this.callMethod("getVendorConsents")},t.prototype.getOuterWindowLocator=function(){return"__cmpLocator"},t.prototype.getSameWindowLocator=function(){return"__cmp"},t.prototype.getSafeframeLocator=function(){return"cmp"},t.prototype.getConsentData=function(){return this.callMethod("getConsentData")},t.prototype.callViaSameWindow=function(e,t){return new o.Promise((function(n){e.__tcfapi&&s.ErrorManager.reportError(l.SdkInfo.consentTwo),e.__cmp(t,null,(function(e,r){r?(c.Log.debug("CMP "+t+" call returned: ",e),s.ErrorManager.reportError(l.SdkInfo.consent,{extraData:{methodName:t,cmpResponse:e,framework:a.ConsentReadingStrategy.SameWindow},samplePercent:.1}),n(e)):n(null)}))}))},t.prototype.callViaSafeframe=function(e,t){return new o.Promise((function(n){e.cmp(t,null,(function(e){c.Log.debug("CMP from SafeFrame "+t+" call returned: ",e),s.ErrorManager.reportError(l.SdkInfo.consent,{extraData:{methodName:t,cmpResponse:e,framework:a.ConsentReadingStrategy.Safeframe},samplePercent:.1}),n(e.returnValue)}))}))},t.prototype.callViaPostMessage=function(e,t,n,r){return new o.Promise((function(i){var o=function(e){var a=e.data.__cmpReturn,c=e.data.__tcfapiReturn;(a||c)&&window.removeEventListener("message",o),a&&(a.success?(s.ErrorManager.reportError(l.SdkInfo.consent,{extraData:{cmpResponse:a.returnValue,methodName:t,framework:n,parsedIframes:r},samplePercent:.1}),i(a.returnValue)):i(null)),c&&(s.ErrorManager.reportError(l.SdkInfo.consentTwo),i(null))};window.addEventListener("message",o),e.postMessage({__cmpCall:{command:t,parameter:null}},"*"),e.postMessage({__tcfapiCall:{command:t,parameter:null}},"*")}))},t}(a.ConsentFramework);t.Cmp=u},934:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CmpConsentReader=void 0;var r=n(2702),i=n(3005),o=n(9222),a=n(8235),s=function(){function e(e){this.CONSENT_STRING_MIN_LENGTH=23,this.cmp=e}return e.prototype.getConsentFromVendorConsents=function(){return this.cmp.getVendorConsents().then((function(e){return e&&e.metadata})).catch((function(e){return i.Log.info("FAILED attempting to find consent with getVendorConsents",e),""})).then((function(e){return{methodName:"getVendorConsents",consent:e}}))},e.prototype.getConsentFromConsentData=function(){return this.cmp.getConsentData().then((function(e){return e&&e.consentData})).catch((function(e){return i.Log.info("FAILED attempting to find consent with getConsentData",e),""})).then((function(e){return{methodName:"getConsentData",consent:e}}))},e.prototype.isConsentValid=function(e){return!!e&&e.length>=this.CONSENT_STRING_MIN_LENGTH},e.prototype.getConsent=function(){var e=this,t=Date.now();return r.Promise.all([this.getConsentFromVendorConsents(),this.getConsentFromConsentData()]).then((function(n){a.ErrorManager.reportError(o.SdkInfo.frameworkWaitTime,{extraData:{message:Date.now()-t},samplePercent:.1});var r=n[0],i=n[1];if(!e.isConsentValid(r.consent)&&!e.isConsentValid(i.consent))return a.ErrorManager.reportError(o.SdkInfo.bothCmpConsentsInvalid,{extraData:{getVendorConsents:r.consent,getConsentData:i.consent},samplePercent:.1}),"";var s=n.sort((function(e,t){return(t.consent||"").length-(e.consent||"").length})),l=s[0],c=s[1];return l.consent!==c.consent&&a.ErrorManager.reportError(o.SdkInfo.differentConsents,{extraData:{selectedConsentSource:l.methodName,selectedConsent:l.consent,rejectedConsentSource:c.methodName,rejectedConsent:c.consent},samplePercent:.1}),l.consent}))},e}();t.CmpConsentReader=s},7893:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentFramework=t.ConsentReadingStrategy=void 0;var r,i=n(2702),o=n(3005);!function(e){e.SameWindow="SAME_WINDOW",e.Safeframe="SAFEFRAME",e.OuterWindowSafeFrame="OUTER_WINDOW_SAFEFRAME",e.OuterWindow="OUTER_WINDOW",e.TopWindow="TOP_WINDOW",e.None="NONE"}(r=t.ConsentReadingStrategy||(t.ConsentReadingStrategy={}));var a=function(){function e(e){this.consentReadingStrategySearchResult=this.getConsentReadingStrategy(e)}return e.prototype.callMethod=function(e){var t=this.consentReadingStrategySearchResult,n=t.consentWindow,o=t.consentReadingStrategy,a=t.parsedIframesCount;if(!n||o===r.None)return i.Promise.resolve(null);switch(o){case r.SameWindow:return this.callViaSameWindow(n,e);case r.Safeframe:return this.callViaSafeframe(n,e);case r.OuterWindow:return this.callViaPostMessage(n,e,r.OuterWindow,a);case r.TopWindow:return this.callViaPostMessage(n,e,r.TopWindow,a)}},e.prototype.getConsentReadingStrategy=function(e){if(this.isSameWindowStrategyApplicable(e))return{consentWindow:e,consentReadingStrategy:r.SameWindow,parsedIframesCount:0};if(this.isSafeframeStrategyApplicable(e))return{consentWindow:e.$sf.ext,consentReadingStrategy:r.Safeframe,parsedIframesCount:0};try{var t=this.lookForConsentWindow(e),n=t.consentWindow;return{consentWindow:n,parsedIframesCount:t.parsedIframesCount,consentReadingStrategy:n?r.OuterWindow:r.None}}catch(t){return o.Log.info("FAILED to access parent window",t),{consentReadingStrategy:r.TopWindow,consentWindow:e.top,parsedIframesCount:0}}},e.prototype.lookForConsentWindow=function(e,t){return void 0===t&&(t=0),this.isOuterWindowStrategyApplicable(e)?{consentWindow:e,parsedIframesCount:t}:e.parent===e?{consentWindow:null,parsedIframesCount:t}:this.lookForConsentWindow(e.parent,t+1)},e.prototype.isSameWindowStrategyApplicable=function(e){return this.getSameWindowLocator()in e},e.prototype.isSafeframeStrategyApplicable=function(e){var t=e.$sf&&e.$sf.ext;return!!t&&this.getSafeframeLocator()in t},e.prototype.isOuterWindowStrategyApplicable=function(e){return this.getOuterWindowLocator()in e.frames},e}();t.ConsentFramework=a},3193:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentManager=void 0;var r=n(934),i=n(974),o=n(2702),a=n(8235),s=n(9222),l=n(3231),c=n(5888),u=n(6023),d=n(2498),h=n(2691),f=function(){function e(){}return e.readConsentString=function(e){var t=this;void 0===e&&(e=1e3);var n,r=(n=e,new o.Promise((function(e){t.consentTimeout=setTimeout((function(){a.ErrorManager.reportError(s.SdkInfo.frameworkWaitTime,{samplePercent:.1,extraData:{message:n}}),e("")}),n)}))),l=i.Time.now(),c=this.cmpConsentReader.getConsent().then((function(e){return a.ErrorManager.reportError(s.SdkInfo.frameworkWaitTime,{samplePercent:.1,extraData:{message:i.Time.now()-l}}),t.setConsentString(e),clearTimeout(t.consentTimeout),e}));return o.Promise.race([c,r])},e.handleCmp=function(e){c.GlobalVariables.setCmp(!!e.cmp),e.cmp||(e.error?a.ErrorManager.reportError(e.error):a.ErrorManager.reportError(s.SdkError.malformedCmpResponse,{adResponse:e}),l.Sdk.getInstance().destroy())},e.setConsentString=function(e){this.consentString=e},e.getConsentString=function(){return this.consentString},e.setUsPrivacyString=function(e){this.usPrivacyString=e},e.getUsPrivacyString=function(){return this.usPrivacyString},e.setUspConsentReader=function(e){this.uspConsentReader=e},e.getUspConsentReader=function(){return this.uspConsentReader},e.getCmpConsentReader=function(){return this.cmpConsentReader},e.setCmpConsentReader=function(e){this.cmpConsentReader=e},e.readUsPrivacy=function(e){var t=this;void 0===e&&(e=100);var n,r=(n=e,new o.Promise((function(e){t.usPrivacyTimeout=setTimeout((function(){a.ErrorManager.reportError(s.SdkInfo.frameworkWaitTime,{samplePercent:.1,extraData:{message:n}}),e("")}),n)}))),l=i.Time.now(),c=this.uspConsentReader.getConsent().then((function(e){return a.ErrorManager.reportError(s.SdkInfo.frameworkWaitTime,{samplePercent:.1,extraData:{message:i.Time.now()-l}}),t.setUsPrivacyString(e||""),clearTimeout(t.usPrivacyTimeout),t.usPrivacyString}));return o.Promise.race([c,r])},e.consentString="",e.usPrivacyString="",e.cmp=new d.Cmp(window),e.usp=new h.Usp(window),e.cmpConsentReader=new r.CmpConsentReader(e.cmp),e.uspConsentReader=new u.UspConsentReader(e.usp),e}();t.ConsentManager=f},2691:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Usp=void 0;var o=n(2702),a=n(7893),s=n(3005),l=n(8235),c=n(9222),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getUspData=function(){return this.callMethod("getUSPData")},t.prototype.getSameWindowLocator=function(){return"__uspapi"},t.prototype.getSafeframeLocator=function(){return this.getSameWindowLocator()},t.prototype.getOuterWindowLocator=function(){return"__uspapiLocator"},t.prototype.callViaSameWindow=function(e,t){return new o.Promise((function(n){e.__uspapi(t,1,(function(e,r){r?(s.Log.debug("USP "+t+" call returned",e),l.ErrorManager.reportError(c.SdkInfo.usp,{extraData:{uspData:JSON.stringify(e),framework:a.ConsentReadingStrategy.SameWindow},samplePercent:.1}),n(e)):n(null)}))}))},t.prototype.callViaSafeframe=function(e,t){return new o.Promise((function(n){e.__uspapi(t,1,(function(e){e.success?(s.Log.debug("USP Safeframe "+t+" call returned",e),l.ErrorManager.reportError(c.SdkInfo.usp,{extraData:{uspData:JSON.stringify(e),framework:a.ConsentReadingStrategy.Safeframe},samplePercent:.1}),n(e)):n(null)}))}))},t.prototype.callViaPostMessage=function(e,t,n,r){return new o.Promise((function(i){var o=function(e){var t=e.data.__uspapiReturn;if(t){window.removeEventListener("message",o);var a={uspData:JSON.stringify(t.returnValue),framework:n,iframesParsed:r};l.ErrorManager.reportError(c.SdkInfo.usp,{extraData:a,samplePercent:.1}),i(t.returnValue)}};window.addEventListener("message",o),e.postMessage({__uspapiCall:{command:t,parameter:null,version:1,callId:Math.floor(1e5*Math.random())}},"*")}))},t}(a.ConsentFramework);t.Usp=u},6023:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UspConsentReader=void 0;var n=function(){function e(e){this.usp=e}return e.prototype.getConsent=function(){return this.usp.getUspData().then((function(e){return e&&e.uspString}))},e}();t.UspConsentReader=n},9179:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CookieManager=void 0;var n=function(){function e(){}return e.isValidYmid=function(e){return"string"==typeof e&&(20===e.length||0===e.length)},e.filterCookieForYmid=function(e,t){var n="",r=t[e];return r&&(n=r.indexOf("|")<0?r:r.split("|")[0]),n},e.removeCookie=function(){for(var e=document.cookie.split("; "),t=0;t<e.length;t++)for(var n=window.location.hostname.split(".");n.length>0;){var r=encodeURIComponent(e[t].split(";")[0].split("=")[0]);if(r!==this.optOut){var i="domain="+n.join(".")+";",o=r+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT;";document.cookie=o,document.cookie=o+i+"path=/";for(var a=location.pathname.split("/");a.length>0;)document.cookie=o+a.join("/"),a.pop()}n.shift()}},e.removeLocalStorage=function(){localStorage.removeItem(this.localStorageId)},e.removeSessionStorage=function(){sessionStorage.removeItem(this.localStorageId)},e.localStorageId="yieldmo_id",e.optOut="OPTOUT",e.optout=!1,e.getCookiesDictionary=function(){var e={};return document.cookie.split(";").forEach((function(t){var n=t.split("="),r=n[0],i=n[1];i&&(e[r.trim()]=decodeURIComponent(i).trim())})),e},e.getCookies=function(){try{return e.getCookiesDictionary()}catch(e){return{}}},e}();t.CookieManager=n},7255:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DomAttributes=void 0;var n=function(){function e(){}return e.insights={found:"ymi-found"},e}();t.DomAttributes=n},1987:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DomManager=t.ymEmpIframeClassSelector=t.murmurHashSeed=t.infiniteScrollClassName=t.infiniteScrollSeparator=void 0;var r=n(7722),i=n(7255),o=n(281),a=n(8235),s=n(2790),l=n(1073),c=n(5888),u=n(9222),d=n(1510),h=n(3231),f=n(8251),p=n(2738),m=n(3005),g=n(9451),v=n(974);t.infiniteScrollSeparator="@",t.infiniteScrollClassName="ym_scroll",t.murmurHashSeed=2015251212,t.ymEmpIframeClassSelector=".ym-emp-iframe";var y=function(){function e(){}return e.getPlacementElements=function(){var e=this,t=document.getElementsByClassName("ym");if(0===t.length)return m.Log.debug("No placements found on page"),[];var n=Array.prototype.slice.call(t),r=[];return n.forEach((function(t){var n=t.id.replace(/ym_/g,"").trim();e.isValidElementId(n)&&(t.id=n,r.push(t))})),r},e.getInsightsElements=function(){var e=this,t=[],n=p.Collection.nodeListToArray(document.querySelectorAll("[data-ymi-id]"));n.length||m.Log.debug("No insights elements found on the page");var r=document.currentScript||p.Collection.first(n,(function(e){return"SCRIPT"===e.tagName}));if(r&&r.dataset.ymiId&&(this.isIframe(window)||this.isSandboxedIframe(window))){m.Log.debug("Found script tag with ymi id: "+r.dataset.ymiId);var o=document.querySelector("body");o&&!o.dataset.ymiId&&(o.dataset.ymiId=r.dataset.ymiId,delete r.dataset.ymiId,this.setExternalParams(o,r),t.push(o))}else t=n;return t.filter((function(t){return!e.elementHasAttribute(t,i.DomAttributes.insights.found)})).filter((function(e){return"SCRIPT"!==e.tagName}))},e.isIframe=function(e){try{return e.frameElement&&e.top!==e&&!this.isSandboxedIframe(e)}catch(e){return!1}},e.isSandboxedIframe=function(e){var t;try{return!(null===(t=e.top)||void 0===t?void 0:t.document)&&e.top!==e&&!e.frameElement}catch(e){return!0}},e.isValidElementId=function(e){var t=null!==e.match(/^[0-9]{1,19}(@\w*)?(\.[0-9]*)?$/);return t||a.ErrorManager.reportError(u.SdkError.invalidPlacementId,{message:e}),t},e.forcePartnerUrl=function(e){this.partnerUrl=e},e.forcePlacements=function(e){var t=this;this.getPlacementElements().forEach((function(n,r){e[r]&&(m.Log.debug("Forcing placementId: "+e[r]+" over "+n.id),n.id="ym_"+e[r],t.forcedPlacementId=!0)}))},e.forceLicensedFormats=function(e){var t=this;this.getPlacementElements().forEach((function(n,r){e[r]&&(m.Log.debug("Forcing lfid: "+e[r]+" on "+n.id),n.dataset.lfId=""+e[r],t.forcedPlacementId=!0)}))},e.setExternalParams=function(t,n){e.supportedExternalMacros.forEach((function(e){n.dataset[e]&&!t.dataset[e]&&(t.dataset[e]=n.dataset[e],delete n.dataset[e])}))},e.removeElement=function(e){var t=e.parentElement;t&&t.removeChild(e)},e.insertBefore=function(e,t){var n=t.parentElement;n&&n.insertBefore(e,t)},e.isMpsTag=function(e){return!!e.dataset.lfId},e.writePlacement=function(e,t){if(e.adResponse){e.environmentManager.centerVertically()?(e.domElement.style.top="50%",e.domElement.style.transform="translateY(-50%)",e.domElement.style.position="absolute",e.domElement.style.width="100%"):("50"===e.adResponse.allowableHeight||e.floatingAdChoices&&"static"===window.getComputedStyle(e.domElement).position)&&(e.domElement.style.position="relative");var n=Array();n.push({attribute:"style",value:"display:block !important;"}),r.Browser.isDesktop&&e.getLfId()&&this.injectDesktopEmpCSS(e),r.Browser.isDesktop?(e.adResponse.allowableHeight&&n.push({attribute:"height",value:String(e.adResponse.allowableHeight)}),e.adResponse.allowableWidth&&n.push({attribute:"width",value:String(e.adResponse.allowableWidth)}),n.push({attribute:"style",value:"display:block !important; margin:auto;"})):e.thirdPartyConfig?e.thirdPartyConfig&&(e.thirdPartyConfig.frameHeight&&n.push({attribute:"height",value:e.thirdPartyConfig.frameHeight}),e.thirdPartyConfig.frameWidth&&n.push({attribute:"width",value:e.thirdPartyConfig.frameWidth})):n.push({attribute:"width",value:"100%"});var i=e.domElement.offsetWidth;if(i<e.environmentManager.minimumAdWidth&&!e.environmentManager.availableFeatures().resize){var l={trackableFrame:e,message:i.toString()};a.ErrorManager.reportError(u.SdkInfo.parentTooNarrow,l)}e.environmentManager.availableFeatures().iframeManipulation?(e.iframe=this.writeHtmlInIframe(e.domElement,t,null,null,n),e.iframe.onload=function(){e.handleOnLoadEvent(e.iframe)}):(window.addEventListener("message",o.EventTrackingManager.reportSuperSandboxedFormatEvent),window.addEventListener("message",o.EventTrackingManager.sendSuperSandboxedFormatAdObject),e.iframe=this.writeHtmlInIframe(e.domElement,t,null,null,n,!0),e.tpiWindow=window),e.formatWindow=e.iframe.contentWindow;try{if(this.injectTakeoverCss(e),e.environmentManager.availableFeatures().iframeManipulation){var c=e.iframe.contentWindow;c.document.open(),c.YM_SDK=h.Sdk.getRegularSdk(),c.YM_Placement=e,e.tpiWindow=c,c.formatRawAdResponse=e.adResponse.rawData,c.document.write(t),c.document.close(),d.Creatives.setDomElements(e.creatives,c)}this.markPlacementDivRendered(e),o.EventTrackingManager.reportR(e),e.environmentManager.availableFeatures().iframeManipulation&&("sandbox"===e.iframeType&&e.iframe.setAttribute("sandbox","allow-scripts"),e.adResponse.formatId!==f.FormatTypes.THIRD_PARTY_FORMAT&&e.adResponse.formatId!==f.FormatTypes.FLEXBANNER||(e.iframe.contentDocument.body.style.margin="0",e.domElement.classList.add("cr-area")))}catch(n){m.Log.error("Failed to evaluate template.  Check that it is valid content: "+n);var p={content:t&&t.length>0?t.substring(0,1e3):""};n.stack&&n.stack.length>0?p.stack=n.stack.substring(0,1e3):p.stack=n.substring(0,1e3),a.ErrorManager.reportError(u.SdkError.templateFailedExecute,{trackableFrame:e,extraData:p}),h.Sdk.getInstance(window).trackableFrameManager.transition(e,s.TrackableFrameState.FailedToRender)}}},e.injectTakeoverCss=function(e){if(e.adResponse&&e.adResponse.takeoverCss){var t=this.topElement(e.environmentManager);try{m.Log.debug("Injecting takeover CSS");var n=document.createElement("style");n.type="text/css",n.textContent=e.adResponse.takeoverCss,t.appendChild(n)}catch(t){var r="failed to inject takeover css";a.ErrorManager.reportError(u.SdkError.takeoverCssError,{trackableFrame:e,message:r}),e.environmentManager.handleAdLoadFailure(e,r)}}},e.getAbsoluteHeight=function(e){var t=this.getMarginHeight(e);return Math.ceil(e.offsetHeight+t)},e.elementHasAttribute=function(e,t){return e.hasAttribute(t)},e.elementRemoveAttribute=function(e,t){e.removeAttribute(t)},e.shouldNotTrackUser=function(){return"1"===window.doNotTrack||"1"===window.navigator.doNotTrack||!1},e.getPublisherPageDescription=function(e){for(var t=0,n=Array.prototype.slice.call(e.getElementsByTagName("meta"));t<n.length;t++){var r=n[t];if("description"===r.getAttribute("name")){var i=r.getAttribute("content");return i&&i.length>0?i.substring(0,1e3):""}}return""},e.getPublisherPageTitle=function(e){var t=e.title;return t&&t.length>0?t.substring(0,1e3):""},e.getIframeOffsets=function(e,t){for(var n={left:0,top:0},r=this.getParentIframe(e,t);r;){var i=r.getBoundingClientRect();n.top+=i.top,n.left+=i.left,r=this.getParentIframe(r,t)}return n},e.writeIframeWithRemoteContent=function(e,t,n,r,i){void 0===i&&(i=[]);var o=this.setUpIframe(null,t,n,r,i);return e.appendChild(o),o},e.topElement=function(e){return e.topWindow().document.getElementsByTagName("body")[0]||document.getElementsByTagName("head")[0]},e.removeElementsWithClass=function(e){Array.prototype.slice.call(document.getElementsByClassName(e)).forEach((function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}))},e.isDescendant=function(e,t){for(var n=e.parentNode;null!=n;){if(n===t)return!0;n=n.parentNode}return!1},e.injectDesktopEmpCSS=function(e){if(e.adResponse){var t="height:"+(e.adResponse.allowableHeight||"")+"px !important;width: "+(e.adResponse.allowableWidth||"")+"px !important; overflow:hidden;",n=document.createElement("style");n.type="text/css",window.frameElement&&window.frameElement.classList.contains("ym-emp-iframe")&&(window.frameElement.style=t,e.domElement.appendChild(n))}},e.getMarginHeight=function(e){var t=window.getComputedStyle(e),n=t.marginTop||"0",r=t.marginBottom||"0";return parseFloat(n)+parseFloat(r)},e.getParentIframe=function(e,t){var n=null,r=e.ownerDocument;return r.defaultView&&(n=r.defaultView),n&&t&&n===t?null:n&&n.frameElement||null},e.cleanFormatClassName=function(e){return e.replace(/( ym_format)\w+/,"")},e.markPlacementDivRendered=function(e){if(e.adResponse){var t=e.domElement,n=this.cleanFormatClassName(t.className),r=t.getAttribute("evs");null===r?t.setAttribute("evs",e.adResponse.eventsEnabled?"1":"0"):(e.adResponse.eventsEnabled="0"!==r,a.ErrorManager.reportError(u.SdkInfo.usingEvs,{message:r,trackableFrame:e})),e.domElement.className=n,t.className=t.className+" ym_format"+e.adResponse.formatId}},e.writeHtmlInIframe=function(e,t,n,r,i,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=[]);var a=this.setUpIframe(t,null,n,r,i,o);return e.appendChild(a),a},e.setUpIframe=function(e,t,n,r,i,o){var a=document.createElement("iframe");e&&!t?o?a.srcdoc=e:a.innerHTML=e:t&&!e&&(a.src=t),n&&(a.className=n),r&&(a.id=r),i.push({attribute:"frameBorder",value:"0"}),i.push({attribute:"scrolling",value:"no"}),o&&i.push({attribute:"height",value:window.innerHeight+"px"});for(var s=0,l=i;s<l.length;s++){var c=l[s];a.setAttribute(c.attribute,c.value)}return a},e.writeScriptTag=function(e,t){var n=document.createElement("script");return n.type="text/javascript",n.async=!0,n.src="https:"+e,n.id=g.Random.hexString(),n.className="ym_script",t.appendChild(n),n.id},e.createEmptyPlacementDiv=function(e,t){void 0===t&&(t="");var n=document.createElement("div");return n.id="ym_"+e,n.classList.add("ym"),t&&n.setAttribute("data-epls-parent-Pvid",t),n},e.firePartnerTrackers=function(e,t,n,r,i){if(void 0===r&&(r=[]),void 0===i&&(i="ym_p"),null==document.getElementById(i)){var o=c.GlobalVariables.getYmid();if(c.GlobalVariables.canSendPii()&&0!==r.length){var a=this.topElement(e.environmentManager),s=new URLSearchParams;s.set("partners",r.toString()),null!=t&&s.set("gdpr",t.toString()),n&&s.set("gdpr_consent",n);var l=this.partnerUrl+"/partner.min.html?"+s.toString()+(o?"&#"+o:""),u=this.setUpIframe(null,l,"ym-background",i,[{attribute:"style",value:"display:none;position:fixed;top:0;left:0;border:0"},{attribute:"height",value:"0"},{attribute:"width",value:"0"}]);a.appendChild(u)}}},e.setElementId=function(e){var n=e.domElement,r="";this.hasInfiniteScroll(n)&&(r=this.generateSubId(n.dataset.id||"",t.infiniteScrollSeparator),a.ErrorManager.reportError(u.SdkInfo.infiniteScroll)),e.setSubPlacementId(r),n.id="ym_"+e.getUniqueId()},e.getPlacementId=function(n){var r={id:"",postfix:void 0};if(e.hasInfiniteScroll(n)){var i=n.id.replace(RegExp(/[^0-9@]+/g),"").split(t.infiniteScrollSeparator);r.id=i[0],r.postfix=i[1]?t.infiniteScrollSeparator+i[1]:void 0}else r.id=n.id.replace(RegExp(/[^0-9@]+/g),"");return r},e.hasInfiniteScroll=function(e){return e.className.indexOf(t.infiniteScrollClassName)>=0&&void 0!==e.dataset.id},e.generateSubId=function(e,n){return void 0===n&&(n=t.infiniteScrollSeparator),n+l(e+v.Time.now(),t.murmurHashSeed)},e.getForceHeight=function(e){var t=e.dataset.forceHeight||e.dataset.maxHeight;return void 0===t?null:+t},e.getForceWidth=function(e){var t=e.dataset.forceWidth||e.dataset.maxWidth;return void 0===t?null:+t},e.isDfpFrame=function(e){var t=e.parentNode;return!(!e||!t)&&e.id.indexOf("google_ads_iframe")>-1&&t.id.indexOf("google_ads_iframe")>-1},e.partnerUrl="https://static.yieldmo.com",e.supportedExternalMacros=new Set(["eaid","eadv","ebuy","ecid","eenv","esid","epid","esiteid","ecampid","epubid","eappid","edomain","esubdomain","esrcurl","eorderid","eadid","eplaceid","edealid","eadsize","esitecad"]),e.forcedPlacementId=null,e}();t.DomManager=y},826:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractEnvironmentManager=void 0;var i=n(1125),o=n(7722),a=n(1987),s=n(3930),l=n(1634),c=n(3530),u=n(2241),d=n(1474),h=n(3231),f=n(3005),p=n(4989),m=n(9222),g=n(8235),v=function(){function e(){this.listeners={},this.listenerStateFlags={click:!1,deviceorientation:!1,geolocation:!1,resize:!1,scroll:!1,tilt:!1,viewableChange:!1,visibility:!1},this.intersectionObservers=null,this.contextualScrollHandler=null,this.contextualVisibilityHandler=null,this.visibilityEventName="visibilitychange",this.minimumAdWidth=280,this.baseTen=10;var e=document.createElement("div");document.body.appendChild(e),e.style.position="fixed",e.style.overflow="hidden",e.style.top="0",e.style.bottom="0",e.style.left="0",e.style.right="0",this.parentFrameHeight=e.clientHeight,this.parentFrameWidth=e.clientWidth,document.body.removeChild(e)}return e.prototype.on=function(e,t){return t?!!this.doesSupportEvent(e)&&!!this.subscribeListenerToEvent(e,t)&&this.setupEvent(e):(g.ErrorManager.reportError(m.FormatError.nullListener,{message:"null listener: "+e}),!1)},e.prototype.off=function(e,t){return this.unsubscribeListenerFromEvent(e,t)?this.detachEvent(e,t):!t&&this.detachEvent(e)},e.prototype.allEventsOff=function(){var e=this;l.EventTracker.getInstance().run(),Object.keys(this.listeners).forEach((function(t){e.off(t)})),this.offIntersection()},e.prototype.triggerEventOnListeners=function(e,t){if(this.shouldTriggerEvent(e)){if(this.listeners[e])for(var n=0,i=this.listeners[e].slice();n<i.length;n++){var o=i[n];e===c.EventType.scroll?o.call(o,r({},t)):o.call(o,t)}}else this.unsubscribeListenerFromEvent(e)},e.prototype.onIntersection=function(e,t){return t?!!this.availableFeatures().intersectionObserver&&(this.setupIntersectionObserver(e,t),!0):(g.ErrorManager.reportError(m.FormatError.nullListener,{message:"null listener: onIntersection"}),!1)},e.prototype.offIntersection=function(e,t){return this.detachIntersectionObserver(e,t)},e.prototype.getBoundingClientRect=function(e){var t=e.getBoundingClientRect(),n=this.getTopAndLeftOffsets(e);return{bottom:t.bottom+n.top,height:t.height,left:t.left+n.left,right:t.right+n.left,top:t.top+n.top,width:t.width}},e.prototype.getGlobalClientRect=function(e){var t=this.availableFeatures(),n=null;if(t.topWindow&&t.scrollEventQuality===s.ScrollEventQuality.Normal){var r=this.getDetailedPositioningInformation(e),i=this.topWindow(),o=i&&i.document;o&&r&&r.boundingFormatRect&&void 0!==r.y&&(n={bottom:r.boundingFormatRect.bottom+r.y,ph:o.documentElement.scrollHeight,pw:o.documentElement.scrollWidth,top:r.boundingFormatRect.top+r.y})}return n},e.prototype.getDetailedPositioningInformation=function(e){return null},e.prototype.resetDimensions=function(e,t){if(o.Browser.isDesktop)return!1;if(!e||!e.nodeName||"iframe"!==e.nodeName.toLowerCase()||!e.parentElement)return!1;if(!e.contentDocument)return!1;if(e.dataset.forbidResetDimensions)return!1;var n,r=a.DomManager.getAbsoluteHeight(e.contentDocument.body),i=t||r,s=null,l=0;(n=e.parentElement.getElementsByClassName("ym-ad-choices"))&&1===n.length&&(s=n[0]),s&&"absolute"!==s.style.position&&(l=parseInt(s.height,this.baseTen)),e.height=i.toString(this.baseTen),e.style.height="";var c=e.getAttribute("style");return e.setAttribute("style",c+" height:"+i+"px !important;"),this.handleFormatResize(Math.max(e.contentDocument.body.getBoundingClientRect().width,this.minimumAdWidth),i+l,e),!0},e.prototype.getAdditionalEnvironmentInformation=function(){return r({},this.additionalDataOverride)},e.prototype.handleRender=function(e){var t;e.adResponse&&(t=e.adResponse.availabilityZone),u.PingEventManager.trackCreatives(e,t)},e.prototype.setAdditionalEnvironmentInformation=function(e){this.additionalDataOverride=r(r({},this.additionalDataOverride),e)},e.prototype.handleAdLoadFailure=function(e,t){void 0===t&&(t=""),f.Log.debug("Failed to load placement: "+e.getUniqueId()+" pageViewId: "+e.environmentManager.getCurrentPageViewId()+" error: "+t)},e.prototype.handleAdLoadSuccess=function(e){f.Log.debug("Successfully loaded placement: "+e.getIdForReporting())},e.prototype.openOutboundUrl=function(e,t,n){var r=this;this.topWindow().open(e,t),"_top"===t&&setTimeout((function(){g.ErrorManager.reportError(m.SdkError.blockedNavigation,{trackableFrame:n,immediate:!0}),r.handleAdLoadFailure(n)}),1e3)},e.prototype.setAllowFullScreenAttribute=function(e){try{e.setAttribute("webkitallowfullscreen","true"),e.setAttribute("mozallowfullscreen","true"),e.setAttribute("allowfullscreen","true")}catch(e){g.ErrorManager.reportError(m.SdkError.fullScreenFailure)}},e.prototype.setCurrentPageViewId=function(e){this.cachedPageViewId=e},e.prototype.getCurrentPageViewId=function(){return this.cachedPageViewId||null},e.prototype.doesSupportEvent=function(e){return!(o.Browser.isDesktop&&e===c.EventType.resize||e!==c.EventType.scroll&&e!==c.EventType.visibility&&e!==c.EventType.click&&e!==c.EventType.deviceorientation)},e.prototype.availableFeatures=function(){return{autoplay:!1,fullScreen:!0,iframeManipulation:!0,resize:!o.Browser.isDesktop,scroll:!0,scrollEventQuality:s.ScrollEventQuality.Normal,smoothScroll:!0,tilt:!0,topNavigation:!0,topWindow:!0,intersectionObserver:e.isIntersectionObserverAPISupported()}},e.prototype.centerVertically=function(){return!1},e.prototype.getDocumentReferrer=function(){return this.topWindow().document.referrer||""},e.prototype.getFullPageUrl=function(){return this.topWindow().document.location.href.substring(0,1e3)||""},e.prototype.getPageUrl=function(){return this.getFullPageUrl().split("?")[0]},e.prototype.getFrameUrl=function(){return(window.location.href||"").split("?")[0]},e.prototype.getPublisherPageDescription=function(){return a.DomManager.getPublisherPageDescription(this.topWindow().document)},e.prototype.getPublisherPageTitle=function(){return a.DomManager.getPublisherPageTitle(this.topWindow().document)},e.prototype.getVisibilityStatus=function(e,t){void 0===t&&(t=1);var n=e.offsetHeight,r=e.offsetWidth,i=e.getClientRects().length,o=window.getComputedStyle(e).visibility;return{isNotVisible:n<t||r<t||!i||"hidden"===o,h:n,w:r,clientRects:i,cssVisibility:o}},e.prototype.listenForResize=function(){var e=this,t=window.screen;this.screenHeight=t.height,this.screenWidth=t.width,this.on(c.EventType.resize,(function(){(t=window.screen).width===e.screenWidth&&t.height===e.screenHeight||(e.screenHeight=t.height,e.screenWidth=t.width,g.ErrorManager.reportError(m.SdkInfo.resizeOccurred))}))},e.prototype.setupEvent=function(e){switch(e){case c.EventType.scroll:this.setupScroll();break;case c.EventType.visibility:this.setupVisibility();break;case c.EventType.click:this.setupClickListener();break;case c.EventType.deviceorientation:this.setupTiltListener();break;default:return f.Log.debug("Requested to setup unsupported event type: "+e),!1}return!0},e.prototype.detachEvent=function(e,t){switch(e){case c.EventType.scroll:this.detachScroll(t);break;case c.EventType.visibility:this.detachVisibility(t);break;case c.EventType.click:this.detachClickListener(t);break;case c.EventType.deviceorientation:this.detachTiltListener(t);break;default:return f.Log.debug("Requested to detach unsupported event type: "+e),!1}return!0},e.prototype.subscribeListenerToEvent=function(e,t){return!(e.length<1||(null==this.listeners[e]?this.listeners[e]=[t]:this.listeners[e].push(t),0))},e.prototype.unsubscribeListenerFromEvent=function(e,t){if(null==this.listeners[e]||0===this.listeners[e].length)return!1;if(t){var n=this.listeners[e],r=n.indexOf(t);r>-1&&n.splice(r,1)}else this.listeners[e]=null;return!0},e.prototype.shouldTriggerEvent=function(e){return!(!document.defaultView||!this.listeners[e]||0===this.listeners[e].length)},e.prototype.getTopAndLeftOffsets=function(e){return{left:0,top:0}},e.prototype.pageDimensions=function(){return{density:window.devicePixelRatio||0,height:window.screen.height||window.screen.availHeight||window.outerHeight||window.innerHeight||481,width:window.screen.width||window.screen.availWidth||window.outerWidth||window.innerWidth||321}},e.prototype.placementDimensions=function(e){return{width:this.parentFrameWidth,height:this.parentFrameHeight}},e.prototype.handleFormatResize=function(e,t,n){},e.prototype.getUserSession=function(e){return e.domElement.dataset.session||""},e.prototype.isListeningToScroll=function(){return this.listenerStateFlags.scroll},e.prototype.setupScroll=function(){this.isListeningToScroll()||(this.listenerStateFlags.scroll=!0)},e.prototype.detachScroll=function(e){this.listenerStateFlags.scroll=!1,this.contextualScrollHandler=null},e.prototype.isListeningToTilt=function(){return this.listenerStateFlags.tilt},e.prototype.setupTiltListener=function(){if(!this.isListeningToTilt()){this.contextualTiltHandler||(this.contextualTiltHandler=this.tiltHandler.bind(this));var e=i.Utils.throttled(this.contextualTiltHandler,50);return this.topWindow().addEventListener(c.EventType.deviceorientation,e,!0)}},e.prototype.tiltHandler=function(e){this.triggerEventOnListeners(c.EventType.deviceorientation,e),this.listenerStateFlags.tilt=!0},e.prototype.detachTiltListener=function(e){e?this.topWindow().removeEventListener(c.EventType.deviceorientation,e,!0):this.topWindow().removeEventListener(c.EventType.deviceorientation,this.contextualTiltHandler,!0),this.listenerStateFlags.tilt=!1,delete this.contextualTiltHandler},e.prototype.isListeningToVisibilityEvents=function(){return this.listenerStateFlags.visibility},e.prototype.setupVisibility=function(){this.contextualVisibilityHandler=this.handleVisibility.bind(this),document.addEventListener(this.visibilityEventName,this.contextualVisibilityHandler,!1),this.listenerStateFlags.visibility=!0},e.prototype.detachVisibility=function(e){document.removeEventListener(this.visibilityEventName,this.contextualVisibilityHandler,!1),this.contextualVisibilityHandler=null,this.listenerStateFlags.visibility=!1},e.isIntersectionObserverAPISupported=function(){return"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&IntersectionObserverEntry.prototype&&"isIntersecting"in IntersectionObserverEntry.prototype},e.prototype.setupIntersectionObserver=function(e,t){var n=Array.apply(null,Array(101)).map((function(e,t){return t/100})),r=new IntersectionObserver(t,{rootBounds:null,threshold:n,root:null});return r.observe(e),this.intersectionObservers||(this.intersectionObservers=[]),this.intersectionObservers.push({intersectionObserver:r,target:e,listener:t}),r},e.prototype.detachIntersectionObserver=function(e,t){return!!this.intersectionObservers&&(this.intersectionObservers=this.intersectionObservers.filter((function(n){var r=n.intersectionObserver,i=n.target,o=n.listener;return!(!e&&!t||e&&!t&&e===i||e&&t&&e===i&&t===o)||(r.unobserve(i),!1)})),!0)},e.prototype.attachClickEventHandlers=function(e){for(var t=0,n=Array.prototype.slice.call(e.getElementsByTagName("a"),0);t<n.length;t++){var r=n[t];"false"!==r.getAttribute("data-ym-outbound-click")&&(r.addEventListener(c.EventType.click,this.handleClick.bind(this),{passive:!1}),r.setAttribute("data-ym-outbound-click","true"))}},e.prototype.isListeningToClickEvents=function(){return this.listenerStateFlags.click},e.prototype.setupClickListener=function(){this.listenerStateFlags.click=!0},e.prototype.detachClickListener=function(e){},e.prototype.handleClick=function(e){this.triggerEventOnListeners(c.EventType.visibility,!1),p.TouchEngagementManager.detectActiveElement(this.topWindow()),l.EventTracker.sendBeacon(),this.off(c.EventType.visibility),d.AsyncClickTrackingManager.fireTrackers(e)},e.prototype.handleLocationRequest=function(e,t){t()},e.prototype.sendError=function(e,t){try{var n=h.Sdk.getAnyTrackableFrame();n&&g.ErrorManager.reportError(e,{trackableFrame:n,message:t})}catch(e){f.Log.debug("Could not find placement")}},e.prototype.handleOnLoadEvent=function(e){this.resetDimensions(e)},e}();t.AbstractEnvironmentManager=v},9454:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AmpEnvironmentManager=void 0;var a=n(1987),s=n(3930),l=n(1634),c=n(2931),u=n(3530),d=n(2790),h=n(9222),f=n(3231),p=n(3005),m=n(5888),g=n(826),v=n(8235),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.visibilityEventName="amp:visibilitychange",t.ampWindow=window,t.removeAmpScrollListener=null,t.latestIntersection=null,t.renderStarted=!1,t.unListenToResizeFailure=null,t.resizeFailed=!1,t.previousVisibility=!1,t.kind=s.Environment.Amp,t}return i(t,e),t.prototype.getDetailedPositioningInformation=function(e){var t=this.getScrollPosition();return t?(t.boundingFormatRect=this.getBoundingClientRect(e),t):(p.Log.debug("Failed to fetch detailed positioning information"),null)},t.prototype.handleAdLoadFailure=function(t,n){void 0===n&&(n=""),e.prototype.handleAdLoadFailure.call(this,t,n),this.reportNoContent(),t.hide(n)},t.prototype.handleAdLoadSuccess=function(t){e.prototype.handleAdLoadSuccess.call(this,t),this.ampContext().reportRenderedEntityIdentifier("ym-"+t.getIdForReporting())},t.prototype.isHttps=function(){return!0},t.prototype.handleAssetsDownloaded=function(){var e=this.getLatestIntersection();null!=e&&this.handleScroll([e])},t.prototype.topWindow=function(){return this.ampWindow},t.prototype.setAllowFullScreenAttribute=function(e){},t.prototype.doesSupportEvent=function(t){return t!==u.EventType.deviceorientation&&e.prototype.doesSupportEvent.call(this,t)},t.prototype.getAdditionalEnvironmentInformation=function(){var t=e.prototype.getAdditionalEnvironmentInformation.call(this),n={apvid:this.getAmpPageViewId()};return o(o({},t),n)},t.prototype.getFullPageUrl=function(){return this.ampContext().location.href.substring(0,1e3)},t.prototype.getDocumentReferrer=function(){return this.ampContext().referrer},t.prototype.centerVertically=function(){return!0},t.prototype.availableFeatures=function(){return o(o({},e.prototype.availableFeatures.call(this)),{fullScreen:!1,scrollEventQuality:s.ScrollEventQuality.Degraded,smoothScroll:!1,tilt:!1,topWindow:!1})},t.prototype.getAmpPageViewId=function(){return this.ampContext().pageViewId},t.prototype.handleFormatResize=function(t,n,r){e.prototype.handleFormatResize.call(this,t,n,r),this.renderStarted?this.ampContext().requestResize(t,n):(this.ampContext().renderStart({width:t,height:n}),this.renderStarted=!0)},t.prototype.getTopAndLeftOffsets=function(t){var n=e.prototype.getTopAndLeftOffsets.call(this,t),r=a.DomManager.getIframeOffsets(t),i=this.getAmpIframeOffsets();return n.left=r.left+i.left,n.top=r.top+i.top,n},t.prototype.getAmpIframeOffsets=function(){var e={left:0,top:0},t=this.getLatestIntersection();return t&&(e.left=t.boundingClientRect.left,e.top=t.boundingClientRect.top),e},t.prototype.getLatestIntersection=function(){return this.latestIntersection?this.latestIntersection:this.ampContext()&&this.ampContext().initialIntersection?(this.latestIntersection=this.ampContext().initialIntersection,this.latestIntersection):null},t.prototype.getScrollPosition=function(){var e=this.getLatestIntersection(),t=e&&e.rootBounds;return t?new c.ScrollEventMessage(t.x,t.y,t.height,t.width):null},t.prototype.ampContext=function(){return m.GlobalVariables.getAmpContext()},t.prototype.reportNoContent=function(){p.Log.debug("Reporting no content to AMP"),this.ampContext().noContentAvailable(),this.ampContext().reportRenderedEntityIdentifier("ym-_empty_")},t.prototype.handleResizeFailure=function(e){p.Log.debug("Failed to resize placement in AMP");var t=f.Sdk.getAnyTrackableFrame();if(t){var n={extraData:e,trackableFrame:t};v.ErrorManager.reportError(h.SdkError.resizeRejected,n),f.Sdk.getInstance().trackableFrameManager.transition(t,d.TrackableFrameState.FailedToRender)}},t.prototype.getUserSession=function(e){return this.ampContext().data&&this.ampContext().data.session||""},t.prototype.setupScroll=function(){var t=this;e.prototype.setupScroll.call(this),this.contextualScrollHandler=this.handleScroll.bind(this),this.removeAmpScrollListener=this.ampContext().observeIntersection(this.contextualScrollHandler);var n=this;this.unListenToResizeFailure=this.ampContext().onResizeDenied((function(){var e=document.getElementsByClassName("ym")[0].clientHeight;!t.resizeFailed&&(e>window.innerHeight||window.innerWidth<n.minimumAdWidth)&&(t.resizeFailed=!0,n.handleResizeFailure({formatHeight:e,formatMinWidth:n.minimumAdWidth,windowInnerHeight:window.innerHeight,windowInnerWidth:window.innerWidth}))}))},t.prototype.detachScroll=function(){e.prototype.detachScroll.call(this),null!=this.removeAmpScrollListener&&this.removeAmpScrollListener(),this.removeAmpScrollListener=null,null!=this.unListenToResizeFailure&&this.unListenToResizeFailure()},t.prototype.handleScroll=function(e){var t=e[e.length-1].boundingClientRect.top;if(t===this.lastScrollTop)return null;this.lastScrollTop=t;var n=this.normalizeScrollData(e);this.triggerEventOnListeners(u.EventType.scroll,n)},t.prototype.normalizeScrollData=function(e){var t=e[e.length-1];this.latestIntersection&&this.latestIntersection.time<t.time?this.latestIntersection=t:this.latestIntersection||(this.latestIntersection=t);var n=this.latestIntersection.boundingClientRect,r=this.latestIntersection.rootBounds,i=new c.ScrollEventMessage(n.x,n.y,r.height,r.width);return i.boundingFormatRect=this.latestIntersection.boundingClientRect,i},t.prototype.setupVisibility=function(){this.contextualVisibilityHandler=this.handleVisibility.bind(this),this.topWindow().addEventListener("amp:visibilitychange",this.contextualVisibilityHandler,!1),this.listenerStateFlags.visibility=!0},t.prototype.detachVisibility=function(){this.topWindow().removeEventListener("amp:visibilitychange",this.contextualVisibilityHandler,!1),this.contextualVisibilityHandler=null,this.listenerStateFlags.visibility=!1},t.prototype.handleVisibility=function(){var e=!this.ampContext().hidden;this.previousVisibility!==e&&(this.triggerEventOnListeners(u.EventType.visibility,e),this.previousVisibility=e),"hidden"===document.visibilityState&&l.EventTracker.sendBeacon()},t}(g.AbstractEnvironmentManager);t.AmpEnvironmentManager=y},1847:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AmpSafeFrameEnvironmentManager=void 0;var a=n(5477),s=n(3930),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind=s.Environment.AmpSafeFrame,t}return i(t,e),t.prototype.availableFeatures=function(){return o(o({},e.prototype.availableFeatures.call(this)),{resize:!0})},t.prototype.getDimensions=function(){if(this.context){var e=this.context.geom();e.win||(e.win={w:0,h:0}),e.self||(e.self={w:0,h:0,l:0,r:0,t:0,b:0}),Object.keys(e).forEach((function(t){var n=e[t];Object.keys(n).forEach((function(e){n[e]=parseFloat(n[e]+"")}))}));var t={container:{bottom:e.self.b,height:e.self.h,left:e.self.l,right:e.self.r,top:e.self.t,width:e.self.w},display:{bottom:0,left:0,right:0,top:0,xiv:e.self.xiv,yiv:e.self.yiv},screen:{height:e.win.h,width:e.win.w}},n=t.display;return 0!==e.self.yiv?(n.top=e.self.t-e.pos.t,n.left=e.self.l-e.pos.l,n.right=e.self.r+e.pos.l,n.bottom=e.self.t-e.pos.t+e.win.h):(n.top=999999,n.bottom=999999,n.left=999999,n.right=999999),t}},t}(a.DfpSafeFrameEnvironmentManager);t.AmpSafeFrameEnvironmentManager=l},9504:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AppNexusEnvironmentManager=void 0;var o=n(3930),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind=o.Environment.AppNexus,t}return i(t,e),t}(n(8820).ContainerBasedEnvironmentManager);t.AppNexusEnvironmentManager=a},9879:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationEnvironmentManager=void 0;var o=n(3930),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind=o.Environment.Application,t}return i(t,e),t.prototype.topWindow=function(){var e=window.__ymTopNodeId||"adbuilder-device-iframe",t=window.top;if(window===t)return window;var n=t.document.getElementById(e);return n?n.contentWindow:window},t}(n(1355).CodeOnPageEnvironmentManager);t.ApplicationEnvironmentManager=a},1355:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CodeOnPageEnvironmentManager=void 0;var o=n(1987),a=n(3930),s=n(1634),l=n(2931),c=n(3530),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.contextualResizeHandler=null,t.kind=a.Environment.CodeOnPage,t}return i(t,e),t.prototype.getDetailedPositioningInformation=function(e){var t=this.getScrollPosition();return t.boundingFormatRect=this.getBoundingClientRect(e),t},t.prototype.isHttps=function(){return!0},t.prototype.handleAssetsDownloaded=function(){var e={type:c.EventType.scroll,currentTarget:this.topWindow()};this.handleScroll(e)},t.prototype.topWindow=function(){return window.top},t.prototype.doesSupportEvent=function(t){return t===c.EventType.resize||e.prototype.doesSupportEvent.call(this,t)},t.prototype.setupEvent=function(t){switch(t){case c.EventType.resize:this.setupResize();break;default:return e.prototype.setupEvent.call(this,t)}return!0},t.prototype.detachEvent=function(t,n){switch(t){case c.EventType.resize:this.detachResize(n);break;default:return e.prototype.detachEvent.call(this,t,n)}return!0},t.prototype.getTopAndLeftOffsets=function(t){var n=e.prototype.getTopAndLeftOffsets.call(this,t),r=o.DomManager.getIframeOffsets(t,this.topWindow());return n.left=r.left,n.top=r.top,n},t.prototype.getScrollPosition=function(){return new l.ScrollEventMessage(this.topWindow().scrollX,this.topWindow().scrollY,this.topWindow().innerHeight,this.topWindow().innerWidth)},t.prototype.setupScroll=function(){e.prototype.setupScroll.call(this),this.contextualScrollHandler=this.handleScroll.bind(this),this.topWindow().addEventListener(c.EventType.scroll,this.contextualScrollHandler,!0)},t.prototype.detachScroll=function(t){null!=this.topWindow()&&this.topWindow().removeEventListener(c.EventType.scroll,this.contextualScrollHandler,!0),e.prototype.detachScroll.call(this)},t.prototype.handleScroll=function(e){if(this.shouldTriggerEvent(e.type)){var t=this.normalizeScrollData(e);this.triggerEventOnListeners(c.EventType.scroll,t)}else this.detachScroll()},t.prototype.normalizeScrollData=function(e){var t=e.currentTarget,n=t.scrollX,r=t.scrollY,i=this.topWindow().innerHeight,o=this.topWindow().innerWidth;return new l.ScrollEventMessage(n,r,i,o)},t.prototype.isListeningToResize=function(){return this.listenerStateFlags.resize},t.prototype.setupResize=function(){this.isListeningToResize()||(this.listenerStateFlags.resize=!0,this.contextualResizeHandler=this.handleResize.bind(this),this.topWindow().addEventListener(c.EventType.resize,this.contextualResizeHandler,!1))},t.prototype.detachResize=function(e){this.topWindow().removeEventListener(c.EventType.resize,this.contextualResizeHandler,!1),this.listenerStateFlags.resize=!1,this.contextualResizeHandler=null},t.prototype.handleResize=function(e){if(this.shouldTriggerEvent(e.type)){var t=new l.ResizeEventMessage(this.topWindow().innerHeight,this.topWindow().innerWidth);this.triggerEventOnListeners(c.EventType.resize,t),this.handleScroll({type:e.type,currentTarget:e.currentTarget})}else this.detachResize()},t.prototype.handleVisibility=function(){this.triggerEventOnListeners(c.EventType.visibility,"visible"===document.visibilityState),"hidden"===document.visibilityState&&s.EventTracker.sendBeacon()},t.prototype.handleOnLoadEvent=function(t){e.prototype.handleOnLoadEvent.call(this,t),this.handleResize({type:c.EventType.resize,currentTarget:t})},t.prototype.placementDimensions=function(t){var n,r;return this.kind==a.Environment.CodeOnPage?(t&&(r=t.offsetHeight,n=t.offsetWidth,t.parentElement&&!r&&(n=t.parentElement.offsetWidth,r=t.parentElement.offsetHeight)),{width:n||0,height:r||0}):e.prototype.placementDimensions.call(this,t)},t}(n(826).AbstractEnvironmentManager);t.CodeOnPageEnvironmentManager=u},8820:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerBasedEnvironmentManager=void 0;var o=n(8235),a=n(1987),s=n(9222),l=n(3231),c=n(3005),u=n(1355),d=n(3930),h=function(e){function t(){var t=e.call(this)||this;t.kind=d.Environment.Invalid;var n=window.frameElement&&window.frameElement.contentDocument;return n&&(n.body.style.margin="0"),t}return i(t,e),t.prototype.setAllowFullScreenAttribute=function(t){e.prototype.setAllowFullScreenAttribute.call(this,t);try{window.frameElement.setAttribute("webkitallowfullscreen","true"),window.frameElement.setAttribute("mozallowfullscreen","true"),window.frameElement.setAttribute("allowfullscreen","true")}catch(e){c.Log.error("failed to request full screen for placement 1 iframe: "+e),o.ErrorManager.reportError(s.SdkError.fullScreenFailure)}},t.setDoNotResize=function(e){e&&(this.doNotResize=e)},t.prototype.handleFormatResize=function(n,r,i){var o=window.frameElement;o&&(r+=o.offsetHeight-o.scrollHeight),e.prototype.handleFormatResize.call(this,n,r,i),t.resizeContainers(r,i)},t.checkDocumentContextMatches=function(e){return e.ownerDocument===document},t.resizeContainers=function(e,t){var n=this,r="100%";this.checkDocumentContextMatches(t)&&l.Sdk.kind===l.SdkKind.regular&&(l.Sdk.getRegularSdk().placementsManager.forEachPlacement((function(e){e.domElement===t.parentElement&&e.maxWidth&&(r=e.maxWidth.toString()),e.domElement===t.parentElement&&e.doNotResize&&n.setDoNotResize(e.doNotResize)})),!1===this.doNotResize&&this.getContainersToResize(t.contentWindow.parent).forEach((function(t){n.resizeFrame(t,e,r)})))},t.resizeFrame=function(e,t,n){e.height=t.toString(),e.width=n,e.style.height=t+"px",e.style.width=n;var r=e.parentNode;r.style.height=t+"px",r.style.width=n;var i=r.parentNode;i&&(i.style.height=t+"px",i.style.width=n)},t.getContainersToResize=function(e){var t=e.frameElement?[e.frameElement]:[];try{for(var n=[],r=1;r<3&&e&&e.frameElement;){var i=(e=e.parent).frameElement;if(i&&(n.push(i),a.DomManager.isDfpFrame(i)))return t.concat(n);r++}return t}catch(e){return t}},t.doNotResize=!1,t}(u.CodeOnPageEnvironmentManager);t.ContainerBasedEnvironmentManager=h},8988:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DcmEnvironmentManager=void 0;var o=n(3930),a=n(9222),s=n(3231),l=n(6992),c=n(8235),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind=o.Environment.Dcm,t}return i(t,e),t.prototype.setAllowFullScreenAttribute=function(t){e.prototype.setAllowFullScreenAttribute.call(this,t);var n=window.parent.frameElement;n&&(n.setAttribute("webkitallowfullscreen","true"),n.setAttribute("mozallowfullscreen","true"),n.setAttribute("allowfullscreen","true"))},t.prototype.handleFormatResize=function(e,t,n){var r=s.Sdk.getRegularSdk(window.parent);if(n.ownerDocument===document&&r){r.resetDimensions(window.frameElement);var i=n.height;document.body.style.height=i+"px";var o=n.parentElement,l=0;for(l=0;l<5;++l){if("INS"===o.nodeName){o.style.height=i+"px",o.style.width="100%";break}o=o.parentElement}l>=5&&c.ErrorManager.reportError(a.SdkInfo.missingIns)}},t.prototype.handleClick=function(t){e.prototype.handleClick.call(this,t);var n=window.parent;if(n){var r=s.Sdk.getRegularSdk(n);r&&r.fireClickTrackers&&r.fireClickTrackers(t)}},t}(l.DfpEnvironmentManager);t.DcmEnvironmentManager=u},6992:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DfpEnvironmentManager=void 0;var o=n(3930),a=n(3231),s=n(8820),l=function(e){function t(){var t=e.call(this)||this;return t.kind=o.Environment.Dfp,t.topWindow().googletag&&(window.onunload=function(){a.Sdk.getInstance().destroy()}),t}return i(t,e),t.prototype.getVisibilityStatus=function(t){var n=e.prototype.getVisibilityStatus.call(this,t);if(a.Sdk.kind!==a.SdkKind.regular){var r=n.isNotVisible||this.areIframeContainersCollapsed(s.ContainerBasedEnvironmentManager.getContainersToResize(window));n.isNotVisible=r}return n},t.prototype.areIframeContainersCollapsed=function(t){for(var n in t)if(e.prototype.getVisibilityStatus.call(this,t[n]).isNotVisible)return!0;return!1},t}(s.ContainerBasedEnvironmentManager);t.DfpEnvironmentManager=l},1025:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DfpInAmpEnvironmentManager=void 0;var o=n(9454),a=n(8820),s=n(3930),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ampWindow=window.parent,t.kind=s.Environment.DfpInAmp,t}return i(t,e),t.prototype.handleFormatResize=function(e,t,n){a.ContainerBasedEnvironmentManager.resizeContainers(t,n),this.ampContext().requestResize(e,t)},t}(o.AmpEnvironmentManager);t.DfpInAmpEnvironmentManager=l},5477:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DfpSafeFrameEnvironmentManager=void 0;var o=n(3930),a=n(2931),s=n(3530),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind=o.Environment.DfpSafeFrame,t}return i(t,e),t.prototype.doesSupportEvent=function(t){return t!==s.EventType.resize&&t!==s.EventType.deviceorientation&&e.prototype.doesSupportEvent.call(this,t)},t.prototype.getScrollPosition=function(){var e=this.getDimensions();if(!e)return new a.ScrollEventMessage(0,0,0,0);var t=new a.ScrollEventMessage(e.display.left,e.display.top,e.screen.height,e.screen.width);return void 0!==this.context.inViewPercentage&&(t.inViewPercentage=this.context.inViewPercentage()),t},t}(n(3805).SafeFrameEnvironmentManager);t.DfpSafeFrameEnvironmentManager=l},3930:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollEventQuality=t.Environment=void 0,(r=t.Environment||(t.Environment={}))[r.CodeOnPage=0]="CodeOnPage",r[r.Amp=1]="Amp",r[r.Mraid=2]="Mraid",r[r.MraidPlus=3]="MraidPlus",r[r.Dfp=4]="Dfp",r[r.DfpInAmp=5]="DfpInAmp",r[r.Oas=6]="Oas",r[r.Freewheel=7]="Freewheel",r[r.AppNexus=9]="AppNexus",r[r.SafeFrame=10]="SafeFrame",r[r.DfpSafeFrame=11]="DfpSafeFrame",r[r.Application=12]="Application",r[r.Dcm=13]="Dcm",r[r.MpsDesktop=14]="MpsDesktop",r[r.Iframe=15]="Iframe",r[r.Sandboxed=16]="Sandboxed",r[r.OpenX=17]="OpenX",r[r.AmpSafeFrame=18]="AmpSafeFrame",r[r.SuperSandboxed=89]="SuperSandboxed",r[r.Unknown=90]="Unknown",r[r.Invalid=-1]="Invalid",(n=t.ScrollEventQuality||(t.ScrollEventQuality={}))[n.Normal=0]="Normal",n[n.Degraded=1]="Degraded",n[n.HeavilyDegraded=2]="HeavilyDegraded",n[n.None=3]="None"},7909:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EnvironmentDispatch=void 0;var r=n(1987),i=n(9222),o=n(3231),a=n(3005),s=n(5888),l=n(9222),c=n(9454),u=n(1847),d=n(9879),h=n(9504),f=n(1355),p=n(8988),m=n(6992),g=n(1025),v=n(5477),y=n(3930),b=n(362),w=n(78),_=n(7193),E=n(6116),T=n(2650),k=n(3630),S=n(7192),I=n(3805),M=n(1054),R=n(2637),P=n(8824),A=n(8235),O=function(){function e(){}return e.getEnvironmentManager=function(e,t){switch(this.getEnvironment(e,t)){case y.Environment.Amp:return new c.AmpEnvironmentManager;case y.Environment.AmpSafeFrame:return new u.AmpSafeFrameEnvironmentManager;case y.Environment.DfpSafeFrame:return new v.DfpSafeFrameEnvironmentManager;case y.Environment.SafeFrame:return new I.SafeFrameEnvironmentManager;case y.Environment.AppNexus:return new h.AppNexusEnvironmentManager;case y.Environment.Mraid:return new _.MraidEnvironmentManager;case y.Environment.MraidPlus:return new T.MraidPlusEnvironmentManager;case y.Environment.Dfp:return new m.DfpEnvironmentManager;case y.Environment.DfpInAmp:return new g.DfpInAmpEnvironmentManager;case y.Environment.Freewheel:return new b.FreewheelEnvironmentManager;case y.Environment.Oas:return new k.OasEnvironmentManager;case y.Environment.Application:return new d.ApplicationEnvironmentManager;case y.Environment.Dcm:return new p.DcmEnvironmentManager;case y.Environment.CodeOnPage:return new f.CodeOnPageEnvironmentManager;case y.Environment.Iframe:return new w.IframeEnvironmentManager;case y.Environment.Sandboxed:return new M.SandboxedEnvironmentManager;case y.Environment.OpenX:return new S.OpenXEnvironmentManager;case y.Environment.SuperSandboxed:return new R.SuperSandboxedEnvironmentManager;default:return new P.UnknownEnvironmentManager}},e.getEnvironment=function(e,t){if(this.isMraidPlus(e))return y.Environment.MraidPlus;var n=this.isSuperSandboxedIframe(e),a=r.DomManager.isSandboxedIframe(e);if((a||n)&&this.handleSandboxNesting(e),n)return this.reportSandboxedError(n,t),y.Environment.SuperSandboxed;if(this.isAmpSafeFrame(e))return y.Environment.AmpSafeFrame;if(this.isDfpInAmp(e))return y.Environment.DfpInAmp;if(this.isAmp(e))return y.Environment.Amp;if(this.isDfpSafeFrame(e))return y.Environment.DfpSafeFrame;if(this.isSafeFrame(e))return y.Environment.SafeFrame;if(this.isMraid(e))return y.Environment.Mraid;if(this.isBrokenMraid(e))return this.reportSandboxedError(n,t),y.Environment.Unknown;if(a)return this.reportSandboxedError(n,t),y.Environment.Sandboxed;if(this.isDfp(e))return y.Environment.Dfp;if(this.isOas(e))return y.Environment.Oas;if(this.isFreewheel(e))return y.Environment.Freewheel;if(this.isAppNexus(e))return y.Environment.AppNexus;if(this.isApplication(e))return y.Environment.Application;if(this.isDcm(e))return y.Environment.Dcm;if(this.isOpenX(e))return y.Environment.OpenX;if(this.isCodeOnPage(e))return y.Environment.CodeOnPage;if(r.DomManager.isIframe(e)){var s=e.frameElement,c={extraData:{frameElement:s,frameElementAttributes:null==s?void 0:s.attributes,localWindowDomain:e.document.domain,hasParent:e.parent!==e,parentIsTopWindow:e.parent===e.top,parentDomain:e.parent.document.domain},samplePercent:1};return A.ErrorManager.reportError(l.SdkInfo.parentIframeAttributes,c),y.Environment.Iframe}if(!o.Sdk.getInstance().environmentManager){var u,d=!1,h=void 0;try{u=(window.top.location.href||"").split("?")[0],d=!(!window.top.ng&&!window.top.angular),h=!!document.querySelector("[data-reactroot]")}catch(e){u="BLOCKED"}var f={angular:d,elementId:t&&t.id,hasAmpContext:!!this.ampContext,hasSfContext:!!this.safeFrameContext,iFrameId:window.frameElement&&window.frameElement.id,insideIframe:!!window.frameElement,location:u.substring(0,1e3),parentExists:!!window.parent,parentTag:t&&t.parentElement&&t.parentElement.tagName,react:h};A.ErrorManager.reportError(i.SdkError.unknownEnvironment,{message:"failed all positive environment checks",extraData:f})}return y.Environment.Unknown},e.reportSandboxedError=function(e,t){var n=e?l.SdkInfo.superSandboxedEnvironment:l.SdkInfo.sandboxedEnvironment,r={elementId:t&&t.id,hasAmpContext:!!this.ampContext,hasSfContext:!!this.safeFrameContext,parentExists:!!window.parent,parentTag:t&&t.parentElement&&t.parentElement.tagName};A.ErrorManager.reportError(n,{message:"Detected sandboxed iframe",extraData:r})},e.handleSandboxNesting=function(e){for(var t=e,n=!1,r=0;t;){if(r>=5)return void A.ErrorManager.reportError(l.SdkInfo.nestedMoreThan5IframeInSandbox);try{if(r++,this.getAMPContextObj(t))return this.ampContext=this.getAMPContextObj(t),s.GlobalVariables.setAmpContext(this.ampContext),void(this.contextWindow=t);if(t.$sf&&t.$sf.ext)return this.safeFrameContext=t.$sf.ext,s.GlobalVariables.setSafeFrameContext(this.safeFrameContext),void(this.contextWindow=t);if(this.ampContext||this.safeFrameContext)break;var i=t.frameElement;if(i){n||(A.ErrorManager.reportError(l.SdkInfo.nestedIframeInSandbox),n=!0),i.height="100%",i.width="100%",i.style.height="100%",i.style.width="100%";var o=t.parent;if(o===t)return;t=o}else t=null}catch(e){t=null}}},e.isYieldmoDesktopApplication=function(){return window.__ymApplication},e.isCodeOnPage=function(e){return e===e.parent},e.isDfpInAmp=function(t){return e.isDfp(t)&&e.isAmp(t)},e.isAmpSafeFrame=function(t){return!!(e.isSafeFrame(t)&&this.safeFrameContext.meta&&this.safeFrameContext.meta("is_amp"))},e.isDfp=function(e){try{var t=e.frameElement;return r.DomManager.isDfpFrame(t)}catch(e){return a.Log.debug("Catch block triggered when attempting to detect environment "+y.Environment.Dfp+": "+e),!1}},e.isAppNexus=function(e){try{var t=e.frameElement,n=e.frameElement.parentNode;return!(!t||!n)&&t.id.indexOf("utif_")>-1&&n.id.indexOf("div_utif_")>-1}catch(e){return a.Log.debug("Catch block triggered when attempting to detect environment "+y.Environment.AppNexus+": "+e),!1}},e.isFreewheel=function(e){try{return!!e.frameElement&&e.frameElement.id.indexOf("_fw_frame")>-1}catch(e){return a.Log.debug("Catch block triggered when attempting to detect environment "+y.Environment.Freewheel+": "+e),!1}},e.isOas=function(e){try{return e.frameElement&&"function"==typeof e.OAS_RICH&&"function"==typeof e.wxOAS_AD}catch(e){return a.Log.debug("Catch block triggered when attempting to detect environment "+y.Environment.Oas+": "+e),!1}},e.isMraid=function(e){return!!e.mraid&&(!E.mraidMethods.every||E.mraidMethods.every((function(t){return!!e.mraid[t]})))},e.isBrokenMraid=function(e){if(!e.mraid)return!1;var t=E.mraidMethods.filter((function(t){return!e.mraid[t]}));return A.ErrorManager.reportError(i.SdkError.invalidMraid,{message:"MRAID missing: "+t.join(", ")}),!0},e.isMraidPlus=function(t){return!(!e.isMraid(t)||!t.ymmraid)},e.isAmp=function(e){return!!this.ampContext},e.isApplication=function(e){return e.__ymApplication||!1},e.isSafeFrame=function(e){return!!this.safeFrameContext},e.isDfpSafeFrame=function(e){var t=this.contextWindow||e,n=t.location&&t.location.href||"";return this.isSafeFrame(t)&&-1!==n.indexOf("google")&&-1!==n.indexOf("safeframe")},e.isDcm=function(e){if(e.document)return e.document.getElementsByClassName("dcmads").length>0},e.isOpenX=function(e){try{return 0===e.frameElement.name.indexOf("ox_")}catch(e){return!1}},e.isSuperSandboxedIframe=function(e){var t=e.document.createElement("iframe");try{return t.setAttribute("style","display:none"),e.document.body.appendChild(t),t.contentWindow._testVar=!0,e.document.body.removeChild(t),!1}catch(n){return e.document.body.removeChild(t),!0}},e.getAMPContextObj=function(e){try{var t=e.context;return t&&t.pageViewId?t:null}catch(e){return a.Log.debug("Catch block triggered when attempting to get context object for environment "+y.Environment.Amp+": "+e),null}},e}();t.EnvironmentDispatch=O},362:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FreewheelEnvironmentManager=void 0;var o=n(3930),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind=o.Environment.Freewheel,t}return i(t,e),t}(n(8820).ContainerBasedEnvironmentManager);t.FreewheelEnvironmentManager=a},78:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.IframeEnvironmentManager=void 0;var o=n(3930),a=n(8820),s=function(e){function t(){var t=e.call(this)||this;return t.kind=o.Environment.Iframe,a.ContainerBasedEnvironmentManager.doNotResize=!0,t}return i(t,e),t}(a.ContainerBasedEnvironmentManager);t.IframeEnvironmentManager=s},7193:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.MraidEnvironmentManager=void 0;var a=n(7722),s=n(1987),l=n(3930),c=n(1634),u=n(2931),d=n(3530),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.contextualResizeHandler=null,t.contextualViewableChangeHandler=null,t.previousScrollEvent=null,t.mraidWindow=window,t.kind=l.Environment.Mraid,t}return i(t,e),t.prototype.getDetailedPositioningInformation=function(e){var t=this.getScrollPosition();return t.boundingFormatRect=this.getBoundingClientRect(e),t},t.prototype.isHttps=function(){return!0},t.prototype.handleAssetsDownloaded=function(e){},t.prototype.topWindow=function(){return window},t.prototype.openOutboundUrl=function(e){this.mraidWindow.mraid.open(e)},t.prototype.doesSupportEvent=function(t){return t===d.EventType.resize||t===d.EventType.viewableChange||e.prototype.doesSupportEvent.call(this,t)},t.prototype.availableFeatures=function(){return o(o({},e.prototype.availableFeatures.call(this)),{autoplay:a.Browser.isAndroid(),fullScreen:!a.Browser.isAndroid(),scrollEventQuality:l.ScrollEventQuality.Degraded,smoothScroll:!1,topWindow:!1})},t.prototype.centerVertically=function(){return!0},t.prototype.getAdditionalEnvironmentInformation=function(){var t=e.prototype.getAdditionalEnvironmentInformation.call(this),n=this.getMraid3DeviceInformation();return o(o({},t),n)},t.prototype.getMraid3DeviceInformation=function(){var e={},t=window.MRAID_ENV&&window.MRAID_ENV.ifa;return t&&(e.idfa=t),e},t.prototype.setupEvent=function(t){switch(t){case d.EventType.resize:this.setupResize();break;case d.EventType.viewableChange:this.setupViewableChange();break;default:return e.prototype.setupEvent.call(this,t)}return!0},t.prototype.detachEvent=function(t,n){switch(t){case d.EventType.resize:this.detachResize(n);break;case d.EventType.viewableChange:this.detachViewableChange(n);break;default:return e.prototype.detachEvent.call(this,t,n)}return!0},t.prototype.getTopAndLeftOffsets=function(t){var n=e.prototype.getTopAndLeftOffsets.call(this,t),r=s.DomManager.getIframeOffsets(t),i=this.getNativeWebViewOffsets();return n.left+=r.left+i.left,n.top+=r.top+i.top,n},t.prototype.getNativeWebViewOffsets=function(){var e={left:0,top:0},t=this.getPosition();return e.left=t.x,e.top=t.y,e},t.prototype.getScrollPosition=function(){var e=this.getPosition();return this.normalizeScrollData(e)},t.prototype.getPosition=function(){var e=this.mraidWindow.mraid&&this.mraidWindow.mraid.isViewable&&this.mraidWindow.mraid.isViewable(),t=this.mraidWindow.mraid&&this.mraidWindow.mraid.getCurrentPosition&&this.mraidWindow.mraid.getCurrentPosition()||{x:9999,y:9999};return!e||t.height<25?{x:9999,y:9999}:t},t.prototype.setupScroll=function(){e.prototype.setupScroll.call(this),this.contextualScrollHandler=this.handleScroll.bind(this),this.contextualScrollHandler()},t.prototype.detachScroll=function(t){t||e.prototype.detachScroll.call(this)},t.prototype.handleScroll=function(){var e=this.getPosition();if(this.mraidWindow.mraid)if(9999===e.x&&9999===e.y&&this.contextualScrollHandler)this.mraidWindow.requestAnimationFrame(this.contextualScrollHandler);else{var t=this.normalizeScrollData(e);this.previousScrollEvent&&JSON.stringify(this.previousScrollEvent.y)!==JSON.stringify(t.y)&&(this.previousScrollEvent=t,this.triggerEventOnListeners(d.EventType.scroll,t)),this.previousScrollEvent=t,this.isListeningToScroll()&&this.contextualScrollHandler&&this.mraidWindow.requestAnimationFrame(this.contextualScrollHandler)}},t.prototype.normalizeScrollData=function(e){var t=this.mraidWindow.mraid&&this.mraidWindow.mraid.getMaxSize()||{};return new u.ScrollEventMessage(e.x,e.y,t.height,t.width)},t.prototype.isListeningToResize=function(){return this.listenerStateFlags.resize},t.prototype.setupResize=function(){this.isListeningToResize()||(this.listenerStateFlags.resize=!0,this.contextualResizeHandler=this.handleResize.bind(this),this.contextualResizeHandler(),this.topWindow().addEventListener(d.EventType.resize,this.contextualResizeHandler,!1))},t.prototype.detachResize=function(e){var t=e||this.contextualVisibilityHandler;this.topWindow().removeEventListener(d.EventType.resize,t,!1),e||(this.listenerStateFlags.resize=!1,this.contextualResizeHandler=null)},t.prototype.handleResize=function(){var e=new u.ResizeEventMessage(this.topWindow().innerHeight,this.topWindow().innerWidth);this.triggerEventOnListeners(d.EventType.resize,e),this.handleScroll()},t.prototype.handleFormatResize=function(e,t,n){a.Browser.isAndroid()&&(document.body.style.height=t+"px")},t.prototype.handleVisibility=function(){this.triggerEventOnListeners(d.EventType.visibility,"visible"===document.visibilityState),"hidden"===document.visibilityState&&c.EventTracker.sendBeacon()},t.prototype.isListeningToViewableChange=function(){return this.listenerStateFlags.viewableChange},t.prototype.setupViewableChange=function(){this.isListeningToViewableChange()||(this.listenerStateFlags.viewableChange=!0,this.contextualViewableChangeHandler=this.handleViewableChange.bind(this),this.mraidWindow.mraid.addEventListener(d.EventType.viewableChange,this.contextualViewableChangeHandler))},t.prototype.detachViewableChange=function(e){var t=e||this.contextualViewableChangeHandler;this.mraidWindow.mraid.removeEventListener(d.EventType.viewableChange,t),e||(this.listenerStateFlags.viewableChange=!1,this.contextualViewableChangeHandler=null)},t.prototype.handleViewableChange=function(){this.triggerEventOnListeners(d.EventType.viewableChange,this.mraidWindow.mraid.isViewable())},t.prototype.handleOnLoadEvent=function(t){e.prototype.handleOnLoadEvent.call(this,t),this.handleResize()},t}(n(826).AbstractEnvironmentManager);t.MraidEnvironmentManager=h},6116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mraidMethods=void 0,t.mraidMethods=["getCurrentPosition","getMaxSize","open","isViewable"]},2650:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.MraidPlusEnvironmentManager=void 0;var a=n(1987),s=n(3930),l=n(8556),c=n(5888),u=n(3231),d=function(e){function t(){var t=e.call(this)||this;return t.kind=s.Environment.MraidPlus,t.mraidPlusWindow=window,t.mraidPlusWindow.ymmraid.jsSdkVersion=c.GlobalVariables.getVersion(),t.mraidPlusWindow.ymmraid.addEventListener("ymmraid:error",(function(){var e=document.getElementsByClassName("ym")[0];if(a.DomManager.getPlacementId(e).id){var n=u.Sdk.getInstance().trackableFrameManager.anyTrackableFrame();n&&u.Sdk.kind===u.SdkKind.regular&&n.hide("mraidresize",t.mraidPlusWindow.ymmraid.pageViewId)}})),t}return i(t,e),t.prototype.availableFeatures=function(){return o(o({},e.prototype.availableFeatures.call(this)),{scrollEventQuality:s.ScrollEventQuality.Normal,smoothScroll:!0})},t.prototype.centerVertically=function(){return!1},t.prototype.getCurrentPageViewId=function(){return this.mraidPlusWindow.ymmraid.pageViewId},t.prototype.setCurrentPageViewId=function(e){this.mraidPlusWindow.ymmraid.pageViewId=e,this.mraidPlusWindow.ymmraid.reportNewPageViewId(e)},t.prototype.getAdditionalEnvironmentInformation=function(){var t=e.prototype.getAdditionalEnvironmentInformation.call(this),n=this.getDeviceInformation();return o(o({},t),n)},t.prototype.handleAdLoadFailure=function(t,n){e.prototype.handleAdLoadFailure.call(this,t,n);var r=t.getIdForReporting();this.mraidPlusWindow.ymmraid.reportFailure(r,n)},t.prototype.handleAdLoadSuccess=function(t){e.prototype.handleAdLoadSuccess.call(this,t);var n=t.getIdForReporting();this.mraidPlusWindow.ymmraid.reportSuccess(n)},t.prototype.handleAssetsDownloaded=function(t){var n=this;e.prototype.handleAssetsDownloaded.call(this,t);var r={kind:l.ThresholdKind.RisingTo,value:1},i={kind:l.ThresholdKind.FallingTo,value:0},o={kind:l.ThresholdKind.RisingTo,value:100};l.ViewabilityManager.onPlacementViewabilityThreshold(o,t,(function(){n.mraidPlusWindow.ymmraid.reportFullyVisible&&n.mraidPlusWindow.ymmraid.reportFullyVisible()}));var a=this.mraidPlusWindow.mraid;l.ViewabilityManager.onPlacementViewabilityThreshold(r,t,(function(){a.fireViewableChangeEvent(!0)})),l.ViewabilityManager.onPlacementViewabilityThreshold(i,t,(function(){a.fireViewableChangeEvent(!1)})),this.mraidPlusWindow.ymmraid.reportAssetsDownloaded&&this.mraidPlusWindow.ymmraid.reportAssetsDownloaded()},t.prototype.handleFormatResize=function(t,n,r){e.prototype.handleFormatResize.call(this,t,n,r),this.mraidPlusWindow.ymmraid.resetDimensions(t,n)},t.prototype.getDeviceInformation=function(){return this.mraidPlusWindow.ymmraid.deviceInformation},t}(n(7193).MraidEnvironmentManager);t.MraidPlusEnvironmentManager=d},3630:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.OasEnvironmentManager=void 0;var o=n(3930),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind=o.Environment.Oas,t}return i(t,e),t}(n(8820).ContainerBasedEnvironmentManager);t.OasEnvironmentManager=a},7192:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXEnvironmentManager=void 0;var o=n(8820),a=n(3930),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind=a.Environment.OpenX,t}return i(t,e),t}(o.ContainerBasedEnvironmentManager);t.OpenXEnvironmentManager=s},3805:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SafeFrameEnvironmentManager=void 0;var a=n(3930),s=n(2931),l=n(3530),c=n(3231),u=n(3193),d=n(5888),h=n(9222),f=n(6992),p=n(8235),m=n(7893),g=function(e){function t(){var n=e.call(this)||this;if(n.kind=a.Environment.SafeFrame,n.supports={},n.resizeFailSent=!1,n.context=t.getSafeFrameExtContext(),!n.context)return n.sendError(h.SdkError.failedWindowContext,"SafeFrame does not have context object"),n;n.supports=n.context.supports?n.context.supports():{};var r=n.getDimensions();return r&&(n.oldDimensions=r),n}return i(t,e),t.prototype.availableFeatures=function(){return o(o({},e.prototype.availableFeatures.call(this)),{fullScreen:!1,resize:!1,scrollEventQuality:a.ScrollEventQuality.HeavilyDegraded,smoothScroll:!1,tilt:!1,topWindow:!1})},t.prototype.topWindow=function(){return window},t.prototype.getDocumentReferrer=function(){return""},t.prototype.getFullPageUrl=function(){return document.referrer.substring(0,1e3)},t.prototype.getDetailedPositioningInformation=function(e){var t=this.getScrollPosition();return t.boundingFormatRect=this.getBoundingClientRect(e),void 0!==this.context.inViewPercentage&&(t.inViewPercentage=this.context.inViewPercentage()),t},t.prototype.getTopAndLeftOffsets=function(){var e=this.getDimensions();return e?{left:e.container.left-e.display.left,top:e.container.top-e.display.top}:{left:0,top:0}},t.prototype.handleAdLoadFailure=function(){c.Sdk.kind===c.SdkKind.regular&&c.Sdk.getRegularSdk().placementsManager.hidePlacements(),this.context&&this.context.status()===t.status.expanded&&c.Sdk.kind===c.SdkKind.regular&&this.context.collapse()},t.prototype.getAdditionalEnvironmentInformation=function(){var t=e.prototype.getAdditionalEnvironmentInformation.call(this);return o({},t)},t.prototype.handleResize=function(){if(this.shouldTriggerEvent(l.EventType.resize)){var e=this.getDimensions();if(!e)return;var t=new s.ResizeEventMessage(e.screen.height,e.screen.width);this.triggerEventOnListeners(l.EventType.resize,t),this.resize(),this.handleScroll()}else this.detachResize()},t.prototype.handleFormatResize=function(e,t){this.resize(e,t)},t.prototype.setupResize=function(){this.isListeningToResize()||(this.listenerStateFlags.resize=!0)},t.prototype.detachResize=function(){this.listenerStateFlags.resize=!1},t.prototype.getScrollPosition=function(){var e=this.getDimensions();return e?new s.ScrollEventMessage(e.display.left,e.display.top,e.screen.height,e.screen.width):new s.ScrollEventMessage(0,0,0,0)},t.prototype.handleScroll=function(){if(this.shouldTriggerEvent(l.EventType.scroll)){var e=this.getScrollPosition();this.triggerEventOnListeners(l.EventType.scroll,e)}else this.detachScroll()},t.prototype.setupScroll=function(){this.isListeningToScroll()||(this.initRegister(),this.listenerStateFlags.scroll=!0)},t.prototype.detachScroll=function(e){e||(this.listenerStateFlags.scroll=!1)},t.getSafeFrameExtContext=function(){return d.GlobalVariables.getSafeFramesContext()},t.prototype.initRegister=function(){var e=this.registerCallback.bind(this);try{this.context.register(1,1,e)}catch(e){this.sendError(h.SdkError.failedWindowContext,"SafeFrame could not register with the context")}},t.prototype.registerCallback=function(e,n){"cmpReturn"===e&&n.returnValue&&n.returnValue.consentData&&u.ConsentManager.setConsentString(n.returnValue.consentData),e===t.notifyEvents.notifyGeomUpdate&&this.isListeningToScroll()&&this.geomUpdateHandler(),e===t.notifyEvents.notifyUspapiResponse&&n.returnValue.uspString&&(p.ErrorManager.reportError(h.SdkInfo.usp,{extraData:{consentString:n.returnValue.uspString,framework:m.ConsentReadingStrategy.OuterWindowSafeFrame},samplePercent:.1}),u.ConsentManager.setConsentString(n.returnValue.uspString))},t.prototype.getDimensions=function(){if(this.context){var e=this.context.geom();e.win||(e.win={w:0,h:0}),e.self||(e.self={w:0,h:0,l:0,r:0,t:0,b:0}),Object.keys(e).forEach((function(t){var n=e[t];Object.keys(n).forEach((function(e){n[e]=parseFloat(n[e]+"")}))}));var t={container:{bottom:e.self.b,height:e.self.h,left:e.self.l,right:e.self.r,top:e.self.t,width:e.self.w},display:{bottom:0,left:0,right:0,top:0,xiv:e.self.xiv,yiv:e.self.yiv},screen:{height:e.win.h,width:e.win.w}},n=t.display;return e.par?(n.bottom=e.par.b,n.left=e.par.l,n.right=e.par.r,n.top=e.par.t):0!==e.self.yiv?(n.top=e.self.t-e.exp.t,n.left=e.self.l-e.exp.l,n.right=n.left+e.win.w,n.top===e.self.t&&(n.top=e.self.t-(e.win.h-e.exp.b-e.self.h)),n.bottom=n.top+e.win.h):(n.top=999999,n.bottom=999999,n.left=999999,n.right=999999),t}},t.prototype.geomUpdateHandler=function(){var e=this.oldDimensions,t=this.getDimensions(),n=!1,r=!1;if(e&&t){var i=e.display,o=t.display;n=i.top!==o.top||i.left!==o.left;var a=e.screen,s=t.screen;r=a.height!==s.height||a.width!==s.width}n&&this.isListeningToScroll()&&this.handleScroll(),r&&this.isListeningToResize()&&this.handleResize(),this.oldDimensions=t},t.prototype.resize=function(e,n){if(void 0===e&&(e=0),void 0===n&&(n=0),this.supports["exp-push"]&&(e||n)&&this.context){var r=this.context.status(),i=this.getDimensions();if(i){var o=e?Math.min(e,i.screen.width):i.screen.width-Math.floor(10*i.container.left)/10*2,a=n;if(!a){var s=0,l=this.topWindow(),c=l.document.getElementsByClassName("ym");c.length>0&&(s=parseInt(l.getComputedStyle(c[0]).height.replace("px",""),10)),a=s||200}a===i.container.height&&o===i.container.width||a===this.adsHeight&&o===this.adsWidth||a-i.container.height<0||o-i.container.width<0||(r===t.status.collapsed?(this.context.expand({b:a-i.container.height,push:!0,r:o-i.container.width}),this.context.status()!==t.status.expanded?(this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.resize.bind(this,e,n),500)):(this.adsWidth=o,this.adsHeight=a)):(r===t.status.expanded&&this.context.collapse(),this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.resize.bind(this,e,n),200),delete this.adsWidth,delete this.adsHeight))}}},t.status={collapsed:"collapsed",collapsing:"collapsing",expanded:"expanded",expanding:"expanding"},t.notifyEvents={notifyCollapse:"collapse",notifyCollapsed:"collapsed",notifyExpanded:"expanded",notifyFailure:"failed",notifyFocusChange:"focus-change",notifyGeomUpdate:"geom-update",notifyReadCookie:"read-cookie",notifyWriteCookie:"write-cookie",notifyUspapiResponse:"uspapiReturn"},t}(f.DfpEnvironmentManager);t.SafeFrameEnvironmentManager=g},1054:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SandboxedEnvironmentManager=void 0;var o=n(3930),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind=o.Environment.Sandboxed,t}return i(t,e),t.prototype.getFullPageUrl=function(){return document.referrer||e.prototype.getFullPageUrl.call(this)},t}(n(8824).UnknownEnvironmentManager);t.SandboxedEnvironmentManager=a},2637:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SuperSandboxedEnvironmentManager=void 0;var a=n(3930),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind=a.Environment.SuperSandboxed,t}return i(t,e),t.prototype.availableFeatures=function(){return o(o({},e.prototype.availableFeatures.call(this)),{iframeManipulation:!1})},t}(n(1054).SandboxedEnvironmentManager);t.SuperSandboxedEnvironmentManager=s},8824:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownEnvironmentManager=void 0;var a=n(3530),s=n(1355),l=n(3930),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind=l.Environment.Unknown,t}return i(t,e),t.prototype.topWindow=function(){return window},t.prototype.availableFeatures=function(){return o(o({},e.prototype.availableFeatures.call(this)),{fullScreen:!1,resize:!1,scroll:!1,scrollEventQuality:l.ScrollEventQuality.None,smoothScroll:!1,tilt:!1,topNavigation:!1,topWindow:!1})},t.prototype.setupScroll=function(){},t.prototype.handleAssetsDownloaded=function(){},t.prototype.doesSupportEvent=function(t){return t!==a.EventType.scroll&&t!==a.EventType.deviceorientation&&e.prototype.doesSupportEvent.call(this,t)},t.prototype.getAdditionalEnvironmentInformation=function(){var t=e.prototype.getAdditionalEnvironmentInformation.call(this);return o({},t)},t}(s.CodeOnPageEnvironmentManager);t.UnknownEnvironmentManager=c},8235:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorManager=void 0;var i=n(1634),o=n(5888),a=n(9222),s=n(3005),l=n(974),c=n(3231),u=n(5200),d=function(){function e(){}return e.shouldTrackViaKinesis=function(e,t){return void 0===t&&(t=100),!("error"===e.kind&&o.GlobalVariables.randomNumber>t)},e.sendNetworkInfo=function(){var t=navigator.connection;if(t){var n={bandwidthEstimate:t.downlink,connectionType:t.effectiveType,roundTripTime:t.rtt,saveData:t.saveData};e.reportError(a.SdkInfo.networkInfo,{extraData:n})}},e.sendQAError=function(t){var n=t||c.Sdk.getAnyTrackableFrame(),r=n&&n.environmentManager,i=r&&n?r.getUserSession(n):"";i&&e.reportError(a.SdkInfo.qaSession,{extraData:{user:i}})},e.reportError=function(e,t){if(void 0===t&&(t={}),!t.trackableFrame){var n=c.Sdk.getAnyTrackableFrame();n&&(t.trackableFrame=n)}if(!(e===a.SdkError.genericRuntimeError&&(this.genericRuntimeErrorSent++,this.genericRuntimeErrorSent>this.genericRuntimeErrorMax))){var d;t.adResponse&&(d=this.cloneResponse(t.adResponse));var h={errorCode:e,errorDescription:d?JSON.stringify(d):t.message,kind:"error",interstitial:o.GlobalVariables.getInterstitial(),startTime:l.Time.now(),trackableFrame:t.trackableFrame},f=u.getErrorData(h,t.extraData);this.shouldTrackViaKinesis(h,t.samplePercent)&&(i.EventTracker.track(r({type:h.kind},f),t.immediate),t.sync&&!t.immediate&&i.EventTracker.getInstance().run(!!t.sync),s.Log.error(h.errorCode+": "+(h.errorDescription||""),f))}},e.cloneResponse=function(e){try{var t=JSON.parse(JSON.stringify(e.rawData));return delete t.ab_js,delete t.ab_css,t.ads.forEach((function(e){var t=e.configurables;t&&Object.keys(t).forEach((function(n){e[n]&&e[n]===t[n]&&delete e[n]}))})),t}catch(t){return this.reportError(a.AdServerError.adResponseNotJson,{extraData:{response:e.rawData,sampled:!0}}),void s.Log.error("sampled ad response failed JSON parse")}},e.sendReports=function(e,t){for(var n,r,i,o=0,s=e;o<s.length;o++){var l=s[o],c=l.type,u=l.url,d=l.body,h=a.ReportingError.unknown,f="",p=void 0;if(void 0!==d)switch(c){case"deprecation":f=(n=d).id,p=n.message,h=a.ReportingError.deprecationDetected;break;case"intervention":f=(r=d).id,p=r.message,h=a.ReportingError.interventionDetected;break;case"crash":f=(i=d).crashId,p=i.reason,h=a.ReportingError.crashDetected}var m=this.extractOptionsFromReport(c,u,f,p,t);this.reportError(h,m)}},e.extractOptionsFromReport=function(e,t,n,i,o){return r(r(r({extraData:{id:n,reportType:e,url:t}},void 0!==i&&{message:i}),{sync:!0}),void 0!==o&&{trackableFrame:o})},e.genericRuntimeErrorSent=0,e.genericRuntimeErrorMax=5,e}();t.ErrorManager=d},5200:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorData=void 0;var i=n(3231),o=n(5888),a=n(8955);t.getErrorData=function(e,t){var n=a.getEventData(e,t),s=e.trackableFrame,l=window,c=i.Sdk.getEnvironmentManager(),u=i.Sdk.getVersion();return(n=r(r({},n),s?s.getErrorData():{pvid:c&&!n.pvid?c.getCurrentPageViewId():""})).page_url||(n.page_url=c&&(c.getPageUrl()||c.getFrameUrl())),n.e||c&&(n.e=c.kind),!n.lfbust&&l.__ymLfbust&&l.__ymLfbust.length>0&&(n.lfbust=l.__ymLfbust),n.lane=o.GlobalVariables.getSwimLane(),n.sub=e.errorCode,n.interstitial=e.interstitial,c&&(n.location=c.getFrameUrl()),e.errorDescription&&o.GlobalVariables.canSendPii()&&(e.errorDescription.length>65e3?n.desc=e.errorDescription.slice(0,65e3):n.desc=e.errorDescription),n.v=u,n}},4812:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Batch=void 0;t.Batch=function(e){this.events=e}},2640:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BatchEventConverter=void 0;var r=n(8505),i=n(5429),o=n(6424),a=n(4634),s={default:new r.DataEventConverter,error:new i.ErrorEventConverter,ping:new o.PingEventConverter,t:new a.TouchEventConverter},l=function(){function e(e){void 0===e&&(e=s),this.typeToConverter=e}return e.prototype.convert=function(e,t){for(var n=new Array,r=0,i=e;r<i.length;r++){var o=i[r],a=(this.typeToConverter[o.sub]||this.typeToConverter[o.type]||this.typeToConverter.default).convert(o,t);a[0]||(a=[a]),n=n.concat(a)}return n},e}();t.BatchEventConverter=l},8505:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataEventConverter=void 0;var r=n(2410),i=n(723),o={page:["eng","tilt"],serve:["r","dl"],swipe:["pfv","s","sv","svx"],video:["vplay","vprog75","vprog50","vprog100","vprog25","vpause","vcontinue","vreplay","vfullscreen","billable"]},a=function(){function e(){}return e.prototype.convert=function(e,t){return e.type||(e.type=this.determineEventType(e.sub)),i.ObjectUtils.clean(e),new r.DataEvent(e,t)},e.prototype.determineEventType=function(e){for(var t=0,n=Object.keys(o);t<n.length;t++){var r=n[t];if(-1!==o[r].indexOf(e))return r}return"page"},e}();t.DataEventConverter=a},5429:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorEventConverter=void 0;var r=n(2410),i=n(9222),o=n(723),a=function(){function e(){}return e.prototype.convert=function(e,t){if(e.sub===i.SdkInfo.sampledAdResponse||e.sub===i.SdkInfo.missingInfoLocalAdResponse)try{btoa(e.desc)}catch(t){e.sub=i.SdkInfo.encodedSampledResponse,e.desc=encodeURIComponent(e.desc)}return o.ObjectUtils.clean(e),new r.DataEvent(e,t)},e}();t.ErrorEventConverter=a},6424:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PingEventConverter=void 0;var i=n(723),o=n(2410),a=function(){function e(){}return e.prototype.convert=function(e,t){var n=JSON.parse(e.item.data),a={sub:"ping",type:"view",immediate:e.immediate};Object.keys(n).forEach((function(e){if("cs"!==e&&"batch"!==e)switch(e){case"do":a.do_a=n[e].a,a.do_ab=n[e].ab,a.do_b=n[e].b,a.do_g=n[e].g;break;case"scrx":a.x=n[e];break;case"scry":a.y=n[e];break;case"p":a.plid=n[e];break;case"postfix":a.postfix=n[e];break;case"cts":case"lp":a[e]=n[e];break;default:a[e]=n[e]}}));var s=n.cs,l=[];return s.forEach((function(e){var n=r(r({},a),e);i.ObjectUtils.clean(n),l.push(new o.DataEvent(n,t))})),l},e}();t.PingEventConverter=a},4634:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TouchEventConverter=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.convert=function(t,n){return t.type="page",delete t.x,delete t.y,e.prototype.convert.call(this,t,n)},t}(n(8505).DataEventConverter);t.TouchEventConverter=o},2410:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataEvent=void 0;var r=n(5888),i=["type","sub","imp","plid","postfix","crid","pvid","pvt","stime","etime","x","y","index","v","lane","fver","ymid"];t.DataEvent=function(e,t){var n=this;this.data={},this.v=r.GlobalVariables.getVersion(),this.lane=r.GlobalVariables.getSwimLane(),this.region=t,Object.keys(e).forEach((function(t){-1===i.indexOf(t)&&(n.data[t]=e[t],delete e[t])})),Object.assign(this,e)}},1634:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventTracker=void 0;var r=n(3231),i=n(3005),o=n(9282),a=n(9222),s=n(974),l=n(4812),c=n(2640),u=n(6761),d=n(667),h=function(){function e(e,t){this.events=[],this.sentEvents=0,this.sent1000Error=!1,this.adServerAvailabilityZone="us-east-1a",this.defaultRegion="us-east-1",this.eventMaxLength=7e5,this.scheduler=e,this.batchEventConverter=t;var n=new o.EventTrackerCredentials(this.defaultRegion);this.kinesisManager=new s.KinesisManager(n.getKinesisCredentials()),this.scheduler.start(this)}return e.sendBeacon=function(){i.Log.debug("Last event batch sent"),this.getInstance().run(!0)},e.getInstance=function(){return this.instance||(this.instance=new e(new u.Scheduler,new c.BatchEventConverter)),this.instance},e.setInstance=function(e){this.instance=e},e.overrideDefaults=function(t){e.writeKinesisToDom=t.writeKinesisRequestsToDom},e.track=function(e,t){void 0===t&&(t=!1),this.getInstance().track(e,t)},e.prototype.track=function(e,t){void 0===t&&(t=!1),this.events.push(e),t?(e.immediate=t,this.run()):this.scheduler.checkBatchMinimum()},e.prototype.run=function(e){if(void 0===e&&(e=!1),this.events.length){var t=this.events.splice(0,this.events.length),n=this.batchEventConverter.convert(t,this.adServerAvailabilityZone);n.length&&this.sendKinesisEvents(n,e)}},e.prototype.sendKinesisEvents=function(t,n){var i=JSON.stringify(new l.Batch(t));if(i.length>this.eventMaxLength){if(t.length<=1)return;var o=Math.floor(t.length/2);this.sendKinesisEvents(t.slice(0,o),n),this.sendKinesisEvents(t.slice(o,t.length),n)}else this.kinesisManager.sendRecord(i,this.getRandomKey(),void 0,n),e.writeKinesisToDom&&d.Automation.writeRequestToDom("POST","kinesis",i),this.sentEvents+=t.length,this.sentEvents>1e3&&!this.sent1000Error&&(r.Sdk.trackError(a.SdkInfo.chattyKinesis,this.sentEvents+""),this.sent1000Error=!0)},e.prototype.count=function(){return this.events.length},e.prototype.stop=function(){this.run(),this.scheduler&&(this.scheduler.enabled=!1)},e.prototype.updateRegion=function(e){if(e){var t=new o.EventTrackerCredentials(e);this.kinesisManager.setNewCredentials(t.getKinesisCredentials())}},e.prototype.updateAdServerRegion=function(e){this.adServerAvailabilityZone=e||"us-east-1a"},e.prototype.getRandomKey=function(){return Math.round(1e11*Math.random())+""},e.writeKinesisToDom=!1,e}();t.EventTracker=h},6761:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var n=[{count:2,wait:400},{count:4,wait:800},{count:8,wait:1600},{count:16,wait:3200},{count:32,wait:6400}],r=function(){function e(e){void 0===e&&(e=n),this.enabled=!1,this.batch=0,this.schedule=e,this.loopTime=this.schedule[0].wait}return e.prototype.start=function(e){this.runnable=e,this.runnable&&this.schedule.length?(this.loopTime=this.schedule[this.batch].wait,setTimeout(this.loop.bind(this),this.loopTime),this.enabled=!0,this.loop()):this.enabled=!1},e.prototype.loop=function(){this.enabled&&this.runnable.count()&&this.sendCurrentBatchAndStartNextOne()},e.prototype.checkBatchMinimum=function(){this.runnable.count()>=this.schedule[this.batch].count&&this.sendCurrentBatchAndStartNextOne()},e.prototype.incrementBatch=function(){this.batch<this.schedule.length-1&&this.batch++},e.prototype.sendCurrentBatchAndStartNextOne=function(){this.incrementBatch(),this.enabled=!1,this.runnable.run(),this.start(this.runnable)},e}();t.Scheduler=r},2931:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollEventMessage=t.ResizeEventMessage=void 0;var i=function(e,t){this.screenHeight=e,this.screenWidth=t};t.ResizeEventMessage=i;var o=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.inViewPercentage=null,o.boundingFormatRect=null,o.x=t,o.y=n,o}return r(t,e),t}(i);t.ScrollEventMessage=o},281:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.EventTrackingManager=void 0;var i,o,a,s=n(1634),l=n(5888),c=n(9222),u=n(1284),d=n(2743),h=n(160),f=n(3005),p=n(974),m=n(3231),g=n(8803),v=n(8955),y=n(8235),b=n(8251),w=n(7722);!function(e){e[e.inStream=1]="inStream",e[e.inBanner=2]="inBanner",e[e.inArticle=3]="inArticle",e[e.inFeed=4]="inFeed"}(i||(i={})),function(e){e.extraSmall="xs",e.small="s",e.medium="m",e.large="l"}(o||(o={})),function(e){e[e.unknown=0]="unknown",e[e.aboveTheFold=1]="aboveTheFold",e[e.notVisible=2]="notVisible",e[e.belowTheFold=3]="belowTheFold",e[e.header=4]="header",e[e.footer=5]="footer",e[e.sidebar=6]="sidebar",e[e.fullScreen=7]="fullScreen"}(a||(a={}));var _=16/9,E=function(){function e(){}return e.uriString=function(e){for(var t="",n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(null!=e[i]){var o=""+e[i];t=t+"&"+i+"="+encodeURIComponent(o)}}return t},e.reportEvent=function(t,n,i){var o,a;if(n.adResponse&&n.adResponse.eventsEnabled){var s=n.environmentManager.getDetailedPositioningInformation(n.domElement)||{},l=s.boundingFormatRect,c=s.screenHeight,d=s.screenWidth,h=null===(a=null===(o=t.trackableFrame)||void 0===o?void 0:o.adResponse)||void 0===a?void 0:a.formatId,p=r(r({},v.getEventData(t,i.eventData)),{imp:n.impressionId});if(l&&(p=r(r({},p),e.serializeDimension(r({viewportHeight:Math.floor(+c),viewportWidth:d},e.extractDimensions(n,l))))),f.Log.debug("Event: "+t.kind,p),e.sendEventsViaKinesis(t,p,{immediate:i.immediate}),"t"!==t.kind&&"click"!==t.kind&&"billable"!==t.kind){l&&("dl"!==t.kind||-1===b.videoFormatsId.indexOf(h)&&m.Sdk.kind!==m.SdkKind.vastInsights||(p=r(r({},p),e.getVideoAdPlacementData(t,l,c,d))));var g=e.uriString(p);u.Network.sendEvent(t.kind,g,i.xhrOptions)}}},e.getVideoAdPlacementData=function(t,n,r,i){var o,a,s=null===(o=t.trackableFrame)||void 0===o?void 0:o.getAreas()[0],l={videoPlacementType:e.getPlacementType(n,r,i),pos:e.getPlacementPosition(n,r,i)};if(s){var c=(null===(a=s.areaElement)||void 0===a?void 0:a.getElementsByTagName("video")[0])||s.areaElement;if(c){var u=getComputedStyle(c),d=parseInt(u.height.replace("px","")),h=parseInt(u.width.replace("px","")),f=parseInt(c.getAttribute("data-height")||""),p=parseInt(c.getAttribute("data-width")||"");d&&h&&(l.playerSize=e.getActualVideoSize(d,h,f,p),l.playerSizeCategory=e.getPlayerSizeCategory(d,h,r,i))}}return l},e.extractDimensions=function(e,t){var n=t.bottom,r=t.left,i=t.right,o=t.top,a=e.environmentManager.topWindow(),s=a.pageYOffset,l=a.pageXOffset,c=Math.round(o+s),u=Math.round(r+l),d=Math.round(n+s),h=Math.round(i+l);return{adSlotLeft:isNaN(c)||isNaN(u)?void 0:[c,u],adSlotRight:isNaN(d)||isNaN(h)?void 0:[d,h]}},e.getPlacementType=function(e,t,n){var r=e.top,o=e.right,a=e.left;return Math.round(r/t*100)>80?i.inFeed:o/n*100<20||a/n*100>80?i.inBanner:i.inArticle},e.getPlacementPosition=function(e,t,n){var r=e.bottom,i=e.right,o=e.left;return i/n*100<20||o/n*100>80?a.sidebar:Math.round(r/t*100)<50?a.aboveTheFold:a.belowTheFold},e.getPlayerSizeCategory=function(t,n,r,i){return e.isExtraSmallPlayerSize(t,n)?o.extraSmall:w.Browser.isDesktop?e.getDesktopPlayerSizeCategory(t,n):e.getMobilePlayerSizeCategory(t,n,r,i)},e.getDesktopPlayerSizeCategory=function(e,t){var n=720,r=1280;return e<300||t<400?o.small:e<n||t<r?o.medium:o.large},e.getMobilePlayerSizeCategory=function(e,t,n,r){var i=e*t/(n*r/100);return i<20?o.small:i<90?o.medium:o.large},e.isExtraSmallPlayerSize=function(e,t){return e<256&&t<256||e<144||!1},e.getActualVideoSize=function(e,t,n,r){var i,o;if(n&&r){var a=Math.max(n/e,r/t);i=n/a,o=r/a}else{var s=t/e;i=s<_?t/_:e,o=s<_?t:e*_}return""+[o<0?Math.ceil(o):Math.floor(o),i<0?Math.ceil(i):Math.floor(i)]},e.serializeDimension=function(e){var t={};for(var n in e)e[n]&&(t[n]=""+e[n]);return t},e.sendEventsViaKinesis=function(e,t,n){if(e.kind&&e)s.EventTracker.track(r({type:e.type,sub:e.kind},t),n.immediate);else{var i=e.kind?JSON.stringify(e.kind):e.kind;y.ErrorManager.reportError(c.SdkError.invalidEvent,{message:i})}},e.reportSuperSandboxedFormatEvent=function(t){if(t.data.yieldmo){var n=t.data,r=n.kind,i=n.startTime,o=n.eventData,a=n.creativeIds,s=m.Sdk.getInstance().trackableFrameManager.anyTrackableFrame();s&&e.sharedReportFormatTypeEvent(r,i,{eventData:o},s,a)}},e.sendSuperSandboxedFormatAdObject=function(e){var t,n;if("requestAdData"===e.data){var r=m.Sdk.getInstance().trackableFrameManager.anyTrackableFrame();null===(t=null==r?void 0:r.formatWindow)||void 0===t||t.postMessage({rawData:null===(n=r.adResponse)||void 0===n?void 0:n.rawData,source:"sdk"},"*")}},e.mimicFormatEvent=function(t,n,r,i,o){e.sharedReportFormatTypeEvent(t,n,{eventData:r},i,o)},e.sharedReportFormatTypeEvent=function(t,n,r,i,o){var a,s=i.creatives,l=[];!0===o&&s?l=Object.keys(s):o&&(l=o),l.length>0&&(r.eventData.crid=l.join(",")),i.impressionId&&(r.eventData.imp=i.impressionId),"dl"===t&&(r.immediate=!0),a={extraData:r.eventData,kind:t,startTime:n||p.Time.now(),trackableFrame:i},e.reportEvent(a,i,r)},e.reportSimpleSdkEvent=function(t,n,r){var i;i={kind:t,startTime:p.Time.now(),trackableFrame:n},n.impressionId&&(r.eventData.imp=n.impressionId),e.reportEvent(i,n,r)},e.reportR=function(t){t.environmentManager.getVisibilityStatus(t.domElement,50).isNotVisible&&setTimeout((function(){var e=t.environmentManager.getVisibilityStatus(t.domElement,50);if(e.isNotVisible){var n={trackableFrame:t,message:"Placement too small",extraData:e};y.ErrorManager.reportError(c.SdkError.placementTooSmall,n)}}),1e3);var n=t.environmentManager.getVisibilityStatus(t.domElement);if(n.isNotVisible){var r={trackableFrame:t,message:"Placement is hidden",extraData:n};y.ErrorManager.reportError(c.SdkInfo.placementHidden,r)}var i={xhrOptions:this.trackerXhrRequestOptions(t,g.TrackerEndpointEvent.Render),eventData:this.rEventData(),immediate:!0};e.reportSimpleSdkEvent(g.TrackerEndpointEvent.Render,t,i),t.environmentManager.handleAdLoadSuccess(t),d.ThirdPartyTrackingManager.fireTpis(h.TpiKind.renderedTpi,t),t.environmentManager.handleRender(t)},e.reportMraidLazyLoad=function(t){var n={xhrOptions:this.trackerXhrRequestOptions(t,g.TrackerEndpointEvent.MraidLazyLoad),eventData:this.rEventData(),immediate:!0};e.reportSimpleSdkEvent(g.TrackerEndpointEvent.MraidLazyLoad,t,n)},e.rEventData=function(){return{v:l.GlobalVariables.getVersion(),ymid:l.GlobalVariables.getYmid()}},e.retryTrackerEvent=function(t,n,r){var i=this;t.trackerRetries[n]<e.trackerRetryBackOff.length&&setTimeout((function(){t.trackerRetries[n]=t.trackerRetries[n]?t.trackerRetries[n]++:1;var o={trackableFrame:t,message:"Retry #"+t.trackerRetries[n]+": "+r};n===g.TrackerEndpointEvent.Render&&y.ErrorManager.reportError(c.SdkInfo.retryingR,o);var a={xhrOptions:i.trackerXhrRequestOptions(t,n),eventData:i.rEventData(),immediate:!0};e.reportSimpleSdkEvent(n,t,a)}),e.trackerRetryBackOff[t.trackerRetries[n]])},e.trackerXhrRequestOptions=function(e,t){var n=this.xhrReadyStateChange(e,t);return{onError:this.xhrOnError(e,t),onReadyStateChange:n}},e.xhrReadyStateChange=function(t,n){return function(){null!=this.status&&4===this.readyState&&(this.status>0&&this.status<200||this.status>=300)&&e.retryTrackerEvent(t,n,this.status)}},e.xhrOnError=function(t,n){return function(){e.retryTrackerEvent(t,n,this.status)}},e.reportVisibilityEvent=function(t,n){e.reportSimpleSdkEvent(t,n,{eventData:{}})},e.reportTouchEvent=function(t,n){var r,i=t||{};i.crid=n.getCridString(),r={kind:"click"===t.eventType?"click":"t",startTime:p.Time.now(),trackableFrame:n,type:"page"},delete i.eventType,e.reportEvent(r,n,{eventData:i})},e.trackerRetryBackOff=[500,1e3,2e3,4e3],e}();t.EventTrackingManager=E},3530:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EventType=void 0,(n=t.EventType||(t.EventType={})).scroll="scroll",n.resize="resize",n.visibility="visibility",n.click="click",n.deviceorientation="deviceorientation",n.viewableChange="viewableChange"},2090:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormatEventReporter=void 0;var i=n(3231),o=n(281),a=function(){function e(){}return e.report=function(e,t,n,a,s){if("eng"!==e&&"tilt"!==e){var l=a.YM_Placement;if("dl"===e&&l){l.environmentManager.handleAssetsDownloaded(l),n.fver&&(l.formatVersion=n.fver);var c=l.environmentManager.getGlobalClientRect(l.domElement);n=r(r({},n),c)}if(!l&&n.ymiId&&i.Sdk.kind===i.SdkKind.insights){var u=i.Sdk.getInsightsSdk().insightsFrameManager.getIds(n.ymiId),d=u.lfId,h=u.plid;d&&h&&(l=i.Sdk.getInsightsSdk().insightsFrameManager.insightsFrameWithLfId(h,d))}l&&o.EventTrackingManager.sharedReportFormatTypeEvent(e,t,{eventData:n},l,s)}},e}();t.FormatEventReporter=a},8955:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getEventData=void 0;var i=n(974);t.getEventData=function(e,t){var n=e.trackableFrame,o={};return n?o=t?r(r({},t),n.getEventData(e.kind)):n.getEventData(e.kind):t&&(o=t),i.Time.timeDifference&&(e.startTime+=i.Time.timeDifference),o.stime=e.startTime,o.etime=i.Time.now(),o}},9282:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EventTrackerCredentials=void 0;var o=function(e){function t(t,n){return void 0===n&&(n=!0),e.call(this,t,["events-2019-01-09"],["events-2019-01-09"],"Kinesis_20131202.PutRecord",!!n)||this}return i(t,e),t}(n(974).Credentials);t.EventTrackerCredentials=o},5261:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MrcvManager=void 0;var r=n(281),i=n(3005),o=n(5888),a=n(7718),s=n(8803),l=n(8556),c=function(){function e(e,t){this.placement=e,this.sentEvent=!1,t<o.GlobalVariables.mrcvPercentRequired?this.setUpRise():this.setUpFall()}return e.createMrcvManager=function(t,n){return new e(t,n)},e.prototype.setUpRise=function(){if(!this.sentEvent){this.timer&&(clearTimeout(this.timer),this.timer=null);var e=this.setUpFall.bind(this);l.ViewabilityManager.onPlacementViewabilityThreshold({kind:l.ThresholdKind.RisingTo,value:o.GlobalVariables.mrcvPercentRequired},this.placement,e,!1)}},e.prototype.setUpFall=function(){if(!this.sentEvent){var e=this.setUpRise.bind(this);l.ViewabilityManager.onPlacementViewabilityThreshold({kind:l.ThresholdKind.FallingTo,value:o.GlobalVariables.mrcvPercentRequired-1},this.placement,e,!1);var t=this.handleTimeoutEnd.bind(this);this.timer=setTimeout(t,o.GlobalVariables.mrcvTime),i.Log.debug("start mrcv timer "+this.placement.getIdForReporting())}},e.prototype.handleTimeoutEnd=function(){this.placement.wasFired(a.OldStyleViewability.Mrcv)||(this.sentEvent=!0,r.EventTrackingManager.reportVisibilityEvent(s.TrackerEndpointEvent.MrcViewable,this.placement),this.placement.setAsFired(a.OldStyleViewability.Mrcv))},e}();t.MrcvManager=c},4542:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OldStyleMetrics=void 0;var r=n(3930),i=n(281),o=n(5261),a=n(7718),s=n(8803),l=n(8556),c=function(){function e(){}return e.setUpViewabilityMetrics=function(t){var n=t.environmentManager.availableFeatures(),i=n.scrollEventQuality!==r.ScrollEventQuality.None;if(i||n.intersectionObserver){var o=e.consideredNotVisible;if(i){var s=t.environmentManager.getDetailedPositioningInformation(t.domElement);s&&(o=l.ViewabilityManager.viewablePercentage(s))}this.startEvent(t,a.OldStyleViewability.V,o),this.startEvent(t,a.OldStyleViewability.Fv,o),this.startEvent(t,a.OldStyleViewability.Mrcv,o)}},e.startEvent=function(t,n,r){if(!t.wasFired(n))switch(n){case a.OldStyleViewability.V:r>e.consideredNotVisible?e.reportV(t):e.setUpV(t);break;case a.OldStyleViewability.Fv:r===e.consideredFullVisibility?e.reportFv(t):e.setUpFv(t);break;case a.OldStyleViewability.Mrcv:o.MrcvManager.createMrcvManager(t,r)}},e.setUpV=function(t){var n=e.reportV.bind(this,t);l.ViewabilityManager.onPlacementViewabilityThreshold({kind:l.ThresholdKind.RisingTo,value:this.consideredNotVisible+1},t,n,!1)},e.setUpFv=function(t){var n=e.reportFv.bind(this,t);l.ViewabilityManager.onPlacementViewabilityThreshold({kind:l.ThresholdKind.RisingTo,value:this.consideredFullVisibility},t,n,!1)},e.setUpD=function(t){var n=e.reportD.bind(this,t);l.ViewabilityManager.onPlacementViewabilityThreshold({kind:l.ThresholdKind.FallingTo,value:this.consideredFullVisibility-1},t,n,!1)},e.reportV=function(e){e.wasFired(a.OldStyleViewability.V)||(i.EventTrackingManager.reportVisibilityEvent(s.TrackerEndpointEvent.OnePixelInView,e),e.setAsFired(a.OldStyleViewability.V))},e.reportFv=function(e){e.wasFired(a.OldStyleViewability.Fv)||(this.setUpD(e),i.EventTrackingManager.reportVisibilityEvent(s.TrackerEndpointEvent.FullyViewable,e),e.setAsFired(a.OldStyleViewability.Fv))},e.reportD=function(e){e.wasFired(a.OldStyleViewability.D)||(i.EventTrackingManager.reportVisibilityEvent(s.TrackerEndpointEvent.OnePixelOutOfView,e),e.setAsFired(a.OldStyleViewability.D))},e.consideredFullVisibility=100,e.consideredNotVisible=0,e}();t.OldStyleMetrics=c},7718:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OldStyleViewability=void 0,(n=t.OldStyleViewability||(t.OldStyleViewability={}))[n.V=0]="V",n[n.Fv=1]="Fv",n[n.Mrcv=2]="Mrcv",n[n.D=3]="D"},7220:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Ping=void 0;var r=n(2738),i=n(974),o=n(8291),a=n(3365),s=function(){function e(e,t,n){void 0===n&&(n=!1),this.scrollX=0,this.scrollY=0,this.intervalHandle=null,this.pingNumber=0,this.placementId=e.getIdForReporting(),e.getSubIdForReporting()&&(this.postfix=e.getSubIdForReporting()),this.creatives=t,e.enabled()&&(this.pageViewTime=e.pageViewTime,this.pageViewId=e.pageViewId(),this.impressionId=e.impressionId,this.isLastPing=n)}return e.prototype.json=function(){var e={cs:this.creatives.map((function(e){return{crid:e.creativeId,its:e.initialTimestamp,max:e.maximumViewability,min:e.minimumViewability,mts:e.mrcViewabilityTimestamp,vp:e.viewability}})),cts:i.Time.now(),do:this.tiltEvent?{a:this.tiltEvent.alpha,ab:this.tiltEvent.absolute,b:this.tiltEvent.beta,g:this.tiltEvent.gamma}:void 0,imp:this.impressionId,lp:this.isLastPing?1:0,p:this.placementId,postfix:this.postfix,pvid:this.pageViewId,pvt:this.pageViewTime,scrx:this.scrollX,scry:this.scrollY,sh:screen&&screen.height,sw:screen&&screen.width};return JSON.stringify(e)},e.prototype.mrcViewableCreatives=function(){return this.creatives.filter((function(e){return null!==e.mrcViewabilityTimestamp}))},e.prototype.resetMinMaxViewability=function(){for(var e=0,t=this.creatives;e<t.length;e++){var n=t[e];n.minimumViewability=n.viewability,n.maximumViewability=n.viewability}},e.prototype.getPlacementId=function(){return this.placementId},e.prototype.getLastPing=function(){return this.isLastPing},e.prototype.setLastPing=function(){this.isLastPing=!0},e.prototype.setDeviceOrientationData=function(e){this.tiltEvent=e},e.prototype.setScrollInfo=function(e){this.scrollX=e.x,this.scrollY=e.y},e.prototype.clear=function(){null!==this.intervalHandle&&(clearInterval(this.intervalHandle),this.intervalHandle=null),this.isLastPing=!1,this.pingNumber=0;for(var e=0,t=this.creatives;e<t.length;e++){var n=t[e];n.minimumViewability=n.viewability,n.maximumViewability=n.viewability,n.initialTimestamp=null,n.clearMrc()}},e.prototype.getPingCreative=function(e){return this.creatives.filter((function(t){return t.creativeId===e}))[0]||null},e.prototype.getExistingOrCreateNewPingCreative=function(e){var t=this.getPingCreative(e);return t||(t=new o.PingCreative(e),this.setPingCreative(t)),t},e.prototype.setPingCreative=function(e){this.creatives.push(e)},e.prototype.hasVisibleCreatives=function(){return r.Collection.any(this.creatives,(function(e){return e.viewability>0}))},e.prototype.isNotPinging=function(){return null===this.intervalHandle&&this.pingNumber<=a.PingBatchManager.maxTimedPings},e.prototype.partitionKey=function(){return""+this.pageViewTime+this.pageViewId},e}();t.Ping=s},3365:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PingBatchManager=t.BatchSubmissionKind=void 0;var r,i=n(1634),o=n(3005);!function(e){e[e.Timed=0]="Timed",e[e.UntimedImmediate=1]="UntimedImmediate"}(r=t.BatchSubmissionKind||(t.BatchSubmissionKind={}));var a=function(){function e(){}return e.saveToBatch=function(e){var t=e.kind===r.UntimedImmediate;t&&o.Log.debug("untimed immediate ping"),i.EventTracker.track({sub:"ping",item:e},t)},e.submit=function(e,t){if(t===r.Timed&&e.hasVisibleCreatives()&&(e.pingNumber+=1),e.pingNumber===this.maxTimedPings-1)e.setLastPing();else if(e.pingNumber>=this.maxTimedPings)return!1;var n={data:e.json(),key:e.partitionKey(),kind:t};return(e.hasVisibleCreatives()||e.getLastPing())&&this.saveToBatch(n),e.resetMinMaxViewability(),e.getLastPing()&&i.EventTracker.sendBeacon(),!0},e.maxTimedPings=896,e}();t.PingBatchManager=a},8291:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PingCreative=void 0;var r=n(974),i=n(8556),o=function(){function e(e,t){void 0===t&&(t=0),this.initialTimestamp=null,this.mrcViewabilityTimestamp=null,this.mrcFired=!1,this.mrcvTimeoutHandle=null,this.mrcvThreshold=50,this.creativeId=e,this.minimumViewability=t,this.maximumViewability=t,this.setViewability(t)}return e.prototype.setViewabilityFromScrollEvent=function(e){var t=i.ViewabilityManager.viewablePercentage(e);this.setViewability(t)},e.prototype.clearMrc=function(){this.mrcViewabilityTimestamp=null,null!==this.mrcvTimeoutHandle&&(clearTimeout(this.mrcvTimeoutHandle),this.mrcvTimeoutHandle=null)},e.prototype.setViewability=function(e){var t=r.Time.now();this.viewability=e,!this.initialTimestamp&&e>0&&(this.initialTimestamp=t),!this.mrcViewabilityTimestamp&&e>=this.mrcvThreshold?this.mrcViewabilityTimestamp=t:this.mrcViewabilityTimestamp&&e<this.mrcvThreshold&&(this.mrcViewabilityTimestamp=null),e<this.minimumViewability?this.minimumViewability=e:e>this.maximumViewability&&(this.maximumViewability=e)},e}();t.PingCreative=o},2241:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PingEventManager=void 0;var r=n(3530),i=n(3005),o=n(8291),a=n(5888),s=n(7220),l=n(3365),c=function(){function e(){}return e.trackCreatives=function(e,t){if(e.hasArea()&&e.enabled()&&t){for(var n=[],r=0,i=e.getAreas();r<i.length;r++){var a=i[r];n.push(new o.PingCreative(a.id))}var l=new s.Ping(e,n);this.trackableFrames.push(e),this.trackableFrameDictionary[l.getPlacementId()]=e,this.events[e.getUniqueId()]=l,this.addCreativeTrackingEvents(e)}},e.removeTracking=function(e){var t=e.getUniqueId();this.trackableFrames=this.trackableFrames.filter((function(e){return e.getUniqueId()!==t}));var n=this.events[t];n&&(this.removeIntersectionObserverListeners(e),this.pause(n),delete this.events[t],delete this.trackableFrameDictionary[n.getPlacementId()])},e.pause=function(t){t.setLastPing(),e.submit(t,l.BatchSubmissionKind.UntimedImmediate),t.clear()},e.resume=function(e){e.intervalHandle||(this.startOrStopPingingIfNeeded(e),this.checkViewabilityForAllCreatives())},e.addCreativeTrackingEvents=function(e){var t=this,n=e.environmentManager.availableFeatures();!n.scroll&&n.intersectionObserver?this.addIntersectionObserverListeners(e):e.addEventListener(r.EventType.scroll,(function(){return t.checkViewabilityForAllCreatives()})),e.addEventListener(r.EventType.visibility,(function(n){var r=t.events[e.getUniqueId()];i.Log.debug("visibility change to "+n),n?t.resume(r):t.pause(r)})),this.checkViewabilityForAllCreatives()},e.addIntersectionObserverListeners=function(e){for(var t=this,n=function(n){n.areaElement&&e.addIntersectionListener(n.areaElement,(function(r){t.checkIntersectionObserverViewabilityForAllCreatives(r[0],e,n)}))},r=0,i=e.getAreas();r<i.length;r++)n(i[r])},e.removeIntersectionObserverListeners=function(e){for(var t=0,n=e.getAreas();t<n.length;t++){var r=n[t];r.areaElement&&e.removeIntersectionListener(r.areaElement)}},e.checkIntersectionObserverViewabilityForAllCreatives=function(t,n,r){var i=this.events[n.getUniqueId()];if(i){var o=i.getExistingOrCreateNewPingCreative(r.id);o.setViewability(Math.round(100*t.intersectionRatio)),e.handleMrc(i,o),this.startOrStopPingingIfNeeded(i)}else n.removeIntersectionListener(r.areaElement)},e.checkViewabilityForAllCreatives=function(){for(var t=0,n=this.trackableFrames;t<n.length;t++){var r=n[t];if(r.hasArea()){var i=this.events[r.getUniqueId()];if(i){var o=r.environmentManager.availableFeatures(),a=!o.scroll&&o.intersectionObserver;if(!a){var s=r.getDetailedPositioningInformation(r.domElement);s&&i.setScrollInfo(s)}for(var l=0,c=r.getAreas();l<c.length;l++){var u=c[l];if(u.areaElement){var d=i.getExistingOrCreateNewPingCreative(u.id);if(a)d.setViewability(d.viewability);else{var h=r.getDetailedPositioningInformation(u.areaElement);h&&d.setViewabilityFromScrollEvent(h)}e.handleMrc(i,d),this.startOrStopPingingIfNeeded(i)}}}}}},e.handleMrc=function(t,n){var r=n.viewability>=a.GlobalVariables.mrcvPercentRequired;if(null===n.mrcvTimeoutHandle&&!n.mrcFired&&r){var i=setTimeout((function(){n&&(n.mrcFired=!0),e.submit(t,l.BatchSubmissionKind.UntimedImmediate)}),a.GlobalVariables.mrcvTime);n.mrcvTimeoutHandle=i}else null===n.mrcvTimeoutHandle||r||n.clearMrc()},e.startOrStopPingingIfNeeded=function(t){var n=t.isNotPinging()&&t.hasVisibleCreatives(),r=null!==t.intervalHandle&&!t.hasVisibleCreatives();if(n){var i=function(){return e.submit(t,l.BatchSubmissionKind.Timed)};i(),t.intervalHandle=setInterval(i,this.pingInterval)}else r&&this.pause(t)},e.submit=function(e,t){var n=this.trackableFrameDictionary[e.getPlacementId()];n&&(e.setDeviceOrientationData(n.getDeviceOrientationData()),l.PingBatchManager.submit(e,t))},e.pingInterval=200,e.trackableFrames=[],e.trackableFrameDictionary={},e.events={},e}();t.PingEventManager=c},8014:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollEngagementManager=void 0;var r=n(1125),i=n(974),o=n(281),a=n(3530),s=n(8556),l=function(){function e(e){this.trackableFrame=e,this.direction=0,this.untrackedDirectionChange=!1,this.directionChangeStartPercent=0,this.prevEvDirection=0,this.count=0,this.interactionThreshold=.05,this.throttled=r.Utils.throttled,this.trackInteraction=this._trackInteraction.bind(this);var t=this.throttled(this.trackInteraction);e.environmentManager.on(a.EventType.scroll,t)}return e.prototype._trackInteraction=function(e){if(!(this.count>=15)){var t=this.trackableFrame.environmentManager.getBoundingClientRect(this.trackableFrame.domElement),n=e.screenHeight;s.ViewabilityManager.heightFullyInView(t,n)&&(this.position=Math.abs(t.top)/n,this.prevPosition&&this.setInteractionStatus(),this.prevPosition=this.position,!0===this.untrackedDirectionChange&&Math.abs(this.directionChangeStartPercent-this.position)>this.interactionThreshold&&(this.untrackedDirectionChange=!1,this.sendInteractionEvent(e)))}},e.prototype.sendInteractionEvent=function(e){if(this.prevEvDirection!==this.direction&&this.count<15){var t={di:this.direction,pt:this.position.toFixed(5),thd:this.interactionThreshold,offsetX:e.x,offsetY:e.y};o.EventTrackingManager.mimicFormatEvent("eng",i.Time.now(),t,this.trackableFrame,!0),this.prevEvDirection=this.direction,this.count++}},e.prototype.setInteractionStatus=function(){this.position>this.prevPosition&&1!==this.direction?(this.direction=1,this.untrackedDirectionChange=!0,this.directionChangeStartPercent=this.position):this.position<this.prevPosition&&0!==this.direction&&(this.direction=0,this.untrackedDirectionChange=!0,this.directionChangeStartPercent=this.position)},e}();t.ScrollEngagementManager=l},2992:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TiltManager=void 0;var r,i,o=n(974),a=n(281),s=n(8556);!function(e){e.xNegative="x-negative",e.xPositive="x-positive",e.yNegative="y-negative",e.yPositive="y-positive"}(r||(r={})),function(e){e[e.positive=0]="positive",e[e.negative=1]="negative"}(i||(i={}));var l=function(){function e(e){this.trackableFrame=e,this.formatInView=!1,this.interactionCount=0,this.eventThreshold=15,this.checkForEngagement=this._checkForEngagement.bind(this),e.environmentManager.on("deviceorientation",this.checkForEngagement)}return e.prototype.checkInView=function(){var e=this.trackableFrame.environmentManager.getDetailedPositioningInformation(this.trackableFrame.domElement);return!(!e||!e.boundingFormatRect)&&s.ViewabilityManager.heightFullyInView(e.boundingFormatRect,e.screenHeight)},e.prototype.getLastTiltEventData=function(){return this.lastTiltEvent},e.prototype._checkForEngagement=function(e){if(this.checkInView()&&(this.lastTiltEvent=e,!(this.interactionCount>=15))){var t=e.gamma,n=e.beta;if(!this.initialPosX)return this.initialPosX=t,void(this.initialPosY=n);this.checkIfReportable(this.initialPosX,t,this.previousEventX,i.negative)?(this.sendTiltEngagement(r.xNegative,this.eventThreshold),this.previousEventX=i.negative):this.checkIfReportable(this.initialPosX,t,this.previousEventX,i.positive)?(this.sendTiltEngagement(r.xPositive,this.eventThreshold),this.previousEventX=i.positive):this.checkIfReportable(this.initialPosY,n,this.previousEventY,i.negative)?(this.sendTiltEngagement(r.yNegative,this.eventThreshold),this.previousEventY=i.negative):this.checkIfReportable(this.initialPosY,n,this.previousEventY,i.positive)&&(this.sendTiltEngagement(r.yPositive,this.eventThreshold),this.previousEventY=i.positive)}},e.prototype.checkIfReportable=function(e,t,n,r){return(r===i.negative&&t<e||r===i.positive&&t>e)&&Math.abs(e-t)>this.eventThreshold&&n!==r},e.prototype.sendTiltEngagement=function(e,t){this.interactionCount<15&&(a.EventTrackingManager.mimicFormatEvent("tilt",o.Time.now(),{dir:e,thrd:t},this.trackableFrame,!0),this.interactionCount++)},e}();t.TiltManager=l},4989:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TouchEngagementManager=void 0;var r=n(1987),i=n(3005),o=n(9222),a=n(281),s=n(8235),l=function(){function e(){}return e.subscribeToTouchEngagement=function(e,t){var n=this;this.boundDetectTouch||(this.boundDetectTouch=this.detectTouch.bind(this,e),this.touchEventsInSession=0),-1===this.inView.indexOf(t)&&this.inView.push(t),1===this.inView.length&&(this.lastActiveLocal=window.document.activeElement,this.lastActiveTop=e.document.activeElement,e.document.addEventListener("touchstart",this.boundDetectTouch),e.document.addEventListener("click",this.boundDetectTouch,!0),e!==window&&(window.document.addEventListener("touchstart",this.boundDetectTouch),window.document.addEventListener("click",this.boundDetectTouch,!0)),this.activeElementTimer=setInterval((function(){n.detectActiveElement(e)}),200))},e.unsubscribeFromTouchEngagement=function(e,t){var n=this.inView.indexOf(t);-1!==n&&this.inView.splice(n,1),this.inView.length>0?this.subscribeToTouchEngagement(this.inView[0].environmentManager.topWindow(),this.inView[0]):(this.activeElementTimer&&(clearInterval(this.activeElementTimer),this.activeElementTimer=null),e.document.removeEventListener("touchstart",this.boundDetectTouch),e.document.removeEventListener("click",this.boundDetectTouch,!0),e!==window&&(window.document.removeEventListener("touchstart",this.boundDetectTouch),window.document.removeEventListener("click",this.boundDetectTouch,!0)))},e.detectTouch=function(e,t){var n=this.getFrameForElement(t.target),r=t.type,a=e.document.activeElement,l=window.document.activeElement;if(!(this.inView.length<1)){if(n||t.target===window.frameElement){var c=n||this.inView[0];i.Log.debug("TOUCHED: Inner Element of "+c.getUniqueId()),this.reportTouchEvent({inside:1,eventType:r},c),c.alreadyClicked||(c.alreadyClicked=!0,s.ErrorManager.reportError(o.SdkInfo.tapped,{trackableFrame:c,message:"touchType: touch api"}))}else i.Log.debug("TOUCHED: Top Window of "+this.inView[0].getUniqueId()),this.reportTouchEvent({inside:0,eventType:r},this.inView[0]);a!==this.lastActiveTop&&(this.lastActiveTop=a),l!==this.lastActiveLocal&&(this.lastActiveLocal=l)}},e.detectActiveElement=function(e){var t=e.document.activeElement,n=window.document.activeElement;if(!(n&&"IFRAME"!==n.tagName&&t&&"IFRAME"!==t.tagName||this.inView.length<1)){var r=this.getFrameForElement(t),a=this.getFrameForElement(n);!r&&t&&t!==this.lastActiveTop&&t!==window.frameElement?(i.Log.debug("TAPPED: Outer Iframe of "+this.inView[0].getUniqueId()),this.lastActiveTop=t,this.reportTouchEvent({inside:0},this.inView[0]),n!==this.lastActiveLocal&&(this.lastActiveLocal=n)):a&&n&&n!==this.lastActiveLocal&&(i.Log.debug("TAPPED: Inner Iframe of "+a.getUniqueId()),this.reportTouchEvent({inside:1},a),a.alreadyClicked||(a.alreadyClicked=!0,s.ErrorManager.reportError(o.SdkInfo.tapped,{trackableFrame:a,message:"touchType: active element"})),this.lastActiveLocal=n,t!==this.lastActiveTop&&(this.lastActiveTop=t))}},e.getFrameForElement=function(e){for(var t=0,n=this.inView;t<n.length;t++){var i=n[t];if(e&&e===i.domElement||r.DomManager.isDescendant(e,i.domElement))return i}},e.reportTouchEvent=function(e,t){this.touchEventsInSession>=100||(this.touchEventsInSession++,a.EventTrackingManager.reportTouchEvent(e,t),100===this.touchEventsInSession&&s.ErrorManager.reportError(o.SdkInfo.tooManyTouches))},e.inView=[],e}();t.TouchEngagementManager=l},2790:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TrackableFrameState=void 0,(n=t.TrackableFrameState||(t.TrackableFrameState={})).Found="found",n.WaitingForAdResponse="waiting for response",n.WaitingForPartialResponse="partial response",n.WaitingForAssets="assets url",n.GettingContent="getting template",n.DelayedRender="delayed render",n.Renderable="renderable",n.FailedToRender="failed to render",n.Rendered="rendered",n.Cleared="cleared"},2954:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTrackableArea=void 0;var n=function(){function e(){}return e.prototype.setClickTrackersFromResponse=function(e){var t=e.configurables;t&&t.clicktrackers&&t.clicktrackers.length>0&&(this.clickTrackers=t.clicktrackers)},e.prototype.setClickTrackers=function(e){this.clickTrackers=e},e.prototype.getClickTrackers=function(){return this.clickTrackers},e}();t.AbstractTrackableArea=n},1527:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTrackableFrame=void 0;var r=n(1987),i=n(7718),o=n(2992),a=n(4989),s=n(8556),l=n(8014),c=n(2790),u=function(){function e(e,t,n,i){var o=this;this.areas=[],this.areaDictionary={},this.mrcvFired=!1,this.vFired=!1,this.fvFired=!1,this.dFired=!1,this.externalMacros=new Map,this.trackerRetries={},this.alreadyClicked=!1,this.domElement=e,this.id=t,this.subId=n,this.index=i||0,this.state=c.TrackableFrameState.Found,r.DomManager.supportedExternalMacros.forEach((function(t){var n=e.dataset[t];n&&o.externalMacros.set(t,n)}))}return e.prototype.hasArea=function(){return this.areas&&this.areaDictionary&&this.areas.length>0&&Object.keys(this.areaDictionary).length>0},e.prototype.getAreas=function(){return this.areas},e.prototype.addArea=function(e){this.areaDictionary[e.id]=e,this.areas.push(e)},e.prototype.enabled=function(){return!!this.adResponse&&!1!==this.adResponse.ping},e.prototype.addEventListener=function(e,t){this.environmentManager&&this.environmentManager.on(e,t)},e.prototype.removeEventListener=function(e,t){this.environmentManager&&this.environmentManager.off(e,t)},e.prototype.addIntersectionListener=function(e,t){this.environmentManager&&this.environmentManager.onIntersection(e,t)},e.prototype.removeIntersectionListener=function(e,t){this.environmentManager&&this.environmentManager.offIntersection(e,t)},e.prototype.getDetailedPositioningInformation=function(e){return this.environmentManager.getDetailedPositioningInformation(e)},e.prototype.getDeviceOrientationData=function(){return this.tiltManager&&this.tiltManager.getLastTiltEventData()},e.prototype.getUniqueId=function(){return""+this.id+(this.subId||"")+"."+this.index},e.prototype.getIdAndSubId=function(){return""+this.id+(this.subId||"")},e.prototype.pageViewId=function(){return this.adResponse&&this.adResponse.pageViewId||this.environmentManager.getCurrentPageViewId()},e.prototype.getSubIdForReporting=function(){return this.subId},e.prototype.getIdForReporting=function(){return this.id},e.prototype.getEventData=function(e){var t,n={plid:this.getIdForReporting(),pvid:this.pageViewId()};if(this.adResponse&&this.adResponse.formatId&&(n.fmtid=this.adResponse.formatId),"r"===e||"dl"===e){n.e=this.environmentManager.kind;var r=this.preFetchTimestamp;r&&(n.pft=r)}"r"===e&&(this.creativeIds&&(n.creative_ids=this.creativeIds),this.reportingMetadata&&(n.rep_meta=this.reportingMetadata)),this.formatVersion&&(n.fver=this.formatVersion),this.environmentManager&&this.environmentManager.getDetailedPositioningInformation&&(t=this.environmentManager.getDetailedPositioningInformation(this.domElement)),t&&(n.offsetX=t.x,n.offsetY=t.y);var i=this.getSubIdForReporting();return i&&(n.postfix=i),this.pageViewTime&&(n.pvt=this.pageViewTime),n},e.prototype.getErrorData=function(){var e={e:this.environmentManager.kind,page_url:this.environmentManager.getPageUrl()};this.adResponse&&this.adResponse.formatId&&(e.fmtid=this.adResponse.formatId);var t,n=this.getCridString();return n&&(e.crid=n),this.environmentManager&&this.environmentManager.getDetailedPositioningInformation&&(t=this.environmentManager.getDetailedPositioningInformation(this.domElement)),t&&(e.w=t.screenWidth,e.h=t.screenHeight),this.impressionId&&(e.imp=this.impressionId),e},e.prototype.getCridString=function(){var e=this.getAreas();if(e.length>0){var t=[];return e.forEach((function(e){t.push(e.id)})),t.join(",")}},e.prototype.setAdResponse=function(e){e.pageViewId&&this.environmentManager.setCurrentPageViewId(e.pageViewId),e.pageViewTime&&(this.pageViewTime=e.pageViewTime),e.impressionId&&(this.impressionId=e.impressionId),e.creativeIds&&(this.creativeIds=e.creativeIds),e.reportingMetadata&&(this.reportingMetadata=e.reportingMetadata),this.adResponse=e},e.prototype.setSubPlacementId=function(e){this.subId=e},e.prototype.wasFired=function(e){switch(e){case i.OldStyleViewability.V:return this.vFired;case i.OldStyleViewability.Fv:return this.fvFired;case i.OldStyleViewability.Mrcv:return this.mrcvFired;case i.OldStyleViewability.D:return this.dFired}},e.prototype.setAsFired=function(e){switch(e){case i.OldStyleViewability.V:this.vFired=!0;break;case i.OldStyleViewability.Fv:this.fvFired=!0;break;case i.OldStyleViewability.Mrcv:this.mrcvFired=!0;break;case i.OldStyleViewability.D:this.dFired=!0}},e.prototype.getElementDataValueLazily=function(e){if(this[e])return this[e];var t=this.domElement.dataset;return t&&t[e]&&t[e].length>0&&(this[e]=t[e]),this[e]},e.prototype.updateEnvironmentInformation=function(){var e={},t=this.domElement.dataset;t.advId&&(e.idfa=t.advId),this.environmentManager.setAdditionalEnvironmentInformation(e)},e.prototype.setUpEngagementTracking=function(){var e=this;if(this.adResponse&&this.adResponse.eventsEnabled){this.engagementManager=new l.ScrollEngagementManager(this),this.tiltManager=new o.TiltManager(this);var t=this.environmentManager.topWindow();s.ViewabilityManager.onPlacementViewabilityThreshold({kind:s.ThresholdKind.RisingTo,value:1},this,(function(){a.TouchEngagementManager.subscribeToTouchEngagement(t,e)})),s.ViewabilityManager.onPlacementViewabilityThreshold({kind:s.ThresholdKind.FallingTo,value:0},this,(function(){a.TouchEngagementManager.unsubscribeFromTouchEngagement(t,e)}))}},e}();t.AbstractTrackableFrame=u},9175:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TrackableFrameManager=void 0;var r=n(1987),i=n(3005),o=n(8014),a=n(2992),s=function(){function e(){this.trackableFrames={}}return e.prototype.transition=function(e,t){i.Log.info("transitioning "+e.getUniqueId()+" from "+e.state+" to "+t)},e.prototype.trackableFrameWithId=function(e,t){e&&(e=e.replace(/ym_/g,""));var n=this.getTrackableFrames(),r=n[e];if(r)return r;for(var i=this.trackableFrameSearchSpace(n,t),o=0,a=i;o<a.length;o++)if(e===(c=n[a[o]]).getIdAndSubId())return c;for(var s=0,l=i;s<l.length;s++){var c;if(e===(c=n[l[s]]).getIdForReporting())return c}return null},e.prototype.trackableFrameSearchSpace=function(e,t){var n=Object.keys(e);return t&&(n=n.filter((function(n){return e[n].state===t}))),n},e.prototype.anyTrackableFrame=function(){var e=this.getTrackableFrames(),t=Object.keys(e);if(t.length)return e[t[t.length-1]]},e.prototype.isFound=function(e,t){return r.DomManager.elementHasAttribute(e,t)},e.prototype.getTrackableFrames=function(){return this.trackableFrames},e.prototype.forEachTrackableFrame=function(e){var t=this;Object.keys(this.trackableFrames).forEach((function(n){e(t.trackableFrames[n])}))},e.prototype.reloadEnvironmentManager=function(e,t){e.environmentManager.allEventsOff(),e.environmentManager=t,e.environmentManager.handleAssetsDownloaded(e),e.engagementManager=new o.ScrollEngagementManager(e),e.tiltManager=new a.TiltManager(e)},e}();t.TrackableFrameManager=s},8803:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TrackerEndpointEvent=void 0,(n=t.TrackerEndpointEvent||(t.TrackerEndpointEvent={})).Render="r",n.MraidLazyLoad="ll",n.OnePixelInView="v",n.FullyViewable="fv",n.OnePixelOutOfView="d",n.MrcViewable="mrcv",n.Engage="eng",n.Tilt="tilt"},8556:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ViewabilityManager=t.ThresholdKind=void 0;var r,i=n(3530);!function(e){e[e.RisingTo=0]="RisingTo",e[e.FallingTo=1]="FallingTo",e[e.RisingOrFallingTo=2]="RisingOrFallingTo"}(r=t.ThresholdKind||(t.ThresholdKind={}));var o=function(){function e(){}return e.onPlacementViewabilityThreshold=function(t,n,r,i){return e.onDomElementViewabilityThreshold(t,n.environmentManager,n.domElement,r,i)},e.onDomElementViewabilityThreshold=function(t,n,r,o,a){var s=n.availableFeatures();return!s.scroll&&s.intersectionObserver?n.onIntersection(r,e.viewabilityIntersectionObserverCallbackFactory(t,n,r,o,a)):n.on(i.EventType.scroll,e.viewabilityScrollCallbackFactory(t,n,r,o,a))},e.viewabilityScrollCallbackFactory=function(t,n,r,o,a){void 0===a&&(a=!0);var s=function(){var l=n.getDetailedPositioningInformation(r);if(l){var c=s.previousViewability||0,u=e.viewablePercentage(l);e.isViewabilityThresholdPassed(c,u,t)&&(o(u),a||n.off(i.EventType.scroll,s)),s.previousViewability=u}else s.previousViewability=0};return s},e.viewabilityIntersectionObserverCallbackFactory=function(t,n,r,i,o){void 0===o&&(o=!0);var a=function(s){var l=s[0],c=a.previousViewability||0,u=Math.round(100*l.intersectionRatio);e.isViewabilityThresholdPassed(c,u,t)&&(i(u),o||n.offIntersection(r,a)),a.previousViewability=u};return a},e.isViewabilityThresholdPassed=function(e,t,n){var i=e>t,o=e<t,a=Math.min(e,t),s=Math.max(e,t);if(n.value>=a&&n.value<=s){var l=o&&(n.kind===r.RisingTo||n.kind===r.RisingOrFallingTo),c=i&&(n.kind===r.FallingTo||n.kind===r.RisingOrFallingTo);return l||c}return!1},e.viewablePercentage=function(e){if(e.inViewPercentage)return e.inViewPercentage;var t=e.boundingFormatRect;if(!t)return 0;var n,r,i=t.height*t.width,o=Math.max(t.left,0),a=Math.max(t.top,0),s=Math.min(t.right,+e.screenWidth),l=Math.min(t.bottom,+e.screenHeight);return s>o&&l>a?(n=(l-a)*(s-o),r=Math.round(n/i*100)):r=0,r},e.heightFullyInView=function(e,t){return!!(e&&"number"==typeof e.height&&e.top<t-e.height&&e.top>0)},e}();t.ViewabilityManager=o},5888:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariables=void 0;var n=function(){function e(){}return e.getVersion=function(){return"9.16.0-339"},e.setYmid=function(e){this.globalVariables.ymid=e},e.getYmid=function(){return this.globalVariables.ymid},e.setCmp=function(e){this.cmp=e},e.setInterstitial=function(e){this.interstitial=e},e.getInterstitial=function(){return this.interstitial},e.canSendPii=function(){return this.cmp},e.getSwimLane=function(){return this.globalVariables.swimLane},e.setAmpContext=function(e){this.ampContext=e},e.setSafeFrameContext=function(e){this.safeFramesContext=e},e.getAmpContext=function(){return this.ampContext},e.getSafeFramesContext=function(){return this.safeFramesContext},e.mrcvTime=1e3,e.mrcvPercentRequired=50,e.randomNumber=100*Math.random(),e.cmp=!1,e.interstitial=0,e.globalVariables={swimLane:function(){if(document.currentScript&&document.currentScript.src){var e=document.currentScript.src.split("/");if(e.length>0){var t=e[e.length-1].split(".");if(3===t.length)return t[0]+"."+t[1]}}return""}()},e}();t.GlobalVariables=n},6787:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AdRequest=t.RequestKeys=void 0;var r,i=n(3193),o=n(1987),a=n(5888),s=n(318),l=n(1567),c=n(5442),u=n(3231),d=n(974),h=n(956);!function(e){e.advertisersAlreadyShown="adv",e.ampPageViewId="apvid",e.appBundleId="bndl",e.appBundleVersion="bndv",e.auctionId="auction_id",e.cacheBuster="bust",e.creativesAlreadyShown="cr",e.consortiumId="ttdid",e.constructorTimestamp="ct",e.deviceArchitecture="devm",e.documentReferrer="pr",e.environment="e",e.genericDataTag="macro_1",e.identifierForAdvertisers="idfa",e.invalidateImpression="fi",e.isPublisherRequestedPageView="prog",e.isSecure="_s",e.licensedFormatId="lf",e.jsSdkVersion="v",e.mobilePlatform="os",e.mobilePlatformFull="sysn",e.nativeSdkVersion="ymsv",e.osVersion="osv",e.pageUrl="page_url",e.placementIds="p",e.placementHeight="pl_h",e.placementWidth="pl_w",e.preFetchTimestamp="pft",e.publisherPageDescription="description",e.publisherPageTitle="title",e.screenDensity="scrd",e.screenHeight="h",e.screenWidth="w",e.shouldNotTrackUser="dnt",e.swimLane="lane",e.userLanguage="lang",e.userLocale="locl",e.vendorId="vid",e.yieldmoAppId="ymaid",e.yieldmoAttributionId="ymid",e.partnerId="ptid",e.partnerName="dsp",e.publisherId="pubId",e.consentString="cmp",e.connectionType="connect",e.bandwidthEstimate="bwe",e.roundTripTime="rtt",e.saveData="sd",e.usPrivacyString="us_privacy",e.authenticatedTrafficSolutionEnvelope="ats_envelope"}(r=t.RequestKeys||(t.RequestKeys={}));var f=function(){function e(e,t,n,f,p,m){var g,v=this;void 0===f&&(f=!1),this.licensedFormatId=null,this.auctionId=null,this.genericDataTag=null,this.ampPageViewId=null,this.appBundleId=null,this.appBundleVersion=null,this.deviceArchitecture=null,this.documentReferrer=null,this.identifierForAdvertisers=null,this.invalidateImpression=null,this.mobilePlatform=null,this.mobilePlatformFull=null,this.nativeSdkVersion=null,this.osVersion=null,this.pageUrl=null,this.placementHeight=null,this.placementWidth=null,this.publisherPageDescription=null,this.publisherPageTitle=null,this.screenDensity=null,this.screenHeight=null,this.screenWidth=null,this.userLanguage=null,this.userLocale=null,this.vendorId=null,this.yieldmoAppId=null,this.publisherId=null,this.consentString=null,this.usPrivacyString=null,this.yieldmoAttributionId=null,this.advertisersAlreadyShown=new h.RequestKeyValue(r.advertisersAlreadyShown,l.PreviouslySeen.advertisers().join(",")),this.swimLane=new h.RequestKeyValue(r.swimLane,a.GlobalVariables.getSwimLane()),this.creativesAlreadyShown=new h.RequestKeyValue(r.creativesAlreadyShown,l.PreviouslySeen.creatives().join(",")),this.cacheBuster=null,this.jsSdkVersion=new h.RequestKeyValue(r.jsSdkVersion,a.GlobalVariables.getVersion()),this.preFetchTimestamp=new h.RequestKeyValue(r.preFetchTimestamp,d.Time.now()),this.shouldNotTrackUser=new h.RequestKeyValue(r.shouldNotTrackUser,o.DomManager.shouldNotTrackUser()),this.consortiumId=new h.RequestKeyValue(r.consortiumId,s.ConsortiumId.consortiumId),this.partnerId=null,this.partnerName=null,this.connectionType=null,this.bandwidthEstimate=null,this.roundTripTime=null,this.saveData=null,this.authenticatedTrafficSolutionEnvelope=null,this.constructorTimestamp=new h.RequestKeyValue(r.constructorTimestamp,n),this.isPublisherRequestedPageView=new h.RequestKeyValue(r.isPublisherRequestedPageView,f?"y":""),this.placementIds=new h.RequestKeyValue(r.placementIds,e);var y=d.Time.now();this.cacheBuster=new h.RequestKeyValue(r.cacheBuster,y),m&&(this.publisherId=new h.RequestKeyValue(r.publisherId,m.publisherId||""),this.auctionId=new h.RequestKeyValue(r.auctionId,m.auctionId||""),this.genericDataTag=new h.RequestKeyValue(r.genericDataTag,m.genericDataTag||""),this.placementHeight=new h.RequestKeyValue(r.placementHeight,(m.placementHeight||"")+""),this.placementWidth=new h.RequestKeyValue(r.placementWidth,(m.placementWidth||"")+""),this.authenticatedTrafficSolutionEnvelope=new h.RequestKeyValue(r.authenticatedTrafficSolutionEnvelope,m.authenticatedTrafficSolutionEnvelope||"")),c.Profiling.adRequestTime=y;var b=u.Sdk.getInstance();b&&u.Sdk.kind===u.SdkKind.regular&&b.placementsManager.setPreFetchTimestamp(e,this.preFetchTimestamp.value),this.environment=new h.RequestKeyValue(r.environment,t.kind),this.isSecure=new h.RequestKeyValue(r.isSecure,t.isHttps()?1:0),this.pageUrl=new h.RequestKeyValue(r.pageUrl,t.getFullPageUrl()),this.documentReferrer=new h.RequestKeyValue(r.documentReferrer,t.getDocumentReferrer()),this.publisherPageTitle=new h.RequestKeyValue(r.publisherPageTitle,t.getPublisherPageTitle()),this.publisherPageDescription=new h.RequestKeyValue(r.publisherPageDescription,t.getPublisherPageDescription()),this.consentString=new h.RequestKeyValue(r.consentString,i.ConsentManager.getConsentString()),this.usPrivacyString=new h.RequestKeyValue(r.usPrivacyString,i.ConsentManager.getUsPrivacyString()),p&&(this.licensedFormatId=new h.RequestKeyValue(r.licensedFormatId,p),m&&(m.partnerId&&(this.partnerId=new h.RequestKeyValue(r.partnerId,m.partnerId)),m.partnerName&&(this.partnerName=new h.RequestKeyValue(r.partnerName,m.partnerName))));var w=a.GlobalVariables.getYmid();this.screenHeight=new h.RequestKeyValue(r.screenHeight,t.pageDimensions().height),this.screenWidth=new h.RequestKeyValue(r.screenWidth,t.pageDimensions().width),this.screenDensity=new h.RequestKeyValue(r.screenDensity,t.pageDimensions().density),w&&(this.yieldmoAttributionId=new h.RequestKeyValue(r.yieldmoAttributionId,w)),this.additionalEnvironmentInformation=t.getAdditionalEnvironmentInformation(),this.additionalEnvironmentInformation&&(this.appBundleId=new h.RequestKeyValue(r.appBundleId,this.additionalEnvironmentInformation[r.appBundleId]),this.appBundleVersion=new h.RequestKeyValue(r.appBundleVersion,this.additionalEnvironmentInformation[r.appBundleVersion]),this.deviceArchitecture=new h.RequestKeyValue(r.deviceArchitecture,this.additionalEnvironmentInformation[r.deviceArchitecture]),this.identifierForAdvertisers=new h.RequestKeyValue(r.identifierForAdvertisers,this.additionalEnvironmentInformation[r.identifierForAdvertisers]),this.mobilePlatform=new h.RequestKeyValue(r.mobilePlatform,this.additionalEnvironmentInformation[r.mobilePlatform]),this.mobilePlatformFull=new h.RequestKeyValue(r.mobilePlatformFull,this.additionalEnvironmentInformation[r.mobilePlatformFull]),this.nativeSdkVersion=new h.RequestKeyValue(r.nativeSdkVersion,this.additionalEnvironmentInformation[r.nativeSdkVersion]),this.osVersion=new h.RequestKeyValue(r.osVersion,this.additionalEnvironmentInformation[r.osVersion]),this.userLanguage=new h.RequestKeyValue(r.userLanguage,this.additionalEnvironmentInformation[r.userLanguage]),this.userLocale=new h.RequestKeyValue(r.userLocale,this.additionalEnvironmentInformation[r.userLocale]),this.vendorId=new h.RequestKeyValue(r.vendorId,this.additionalEnvironmentInformation[r.vendorId]),this.yieldmoAppId=new h.RequestKeyValue(r.yieldmoAppId,this.additionalEnvironmentInformation[r.yieldmoAppId]),this.ampPageViewId=new h.RequestKeyValue(r.ampPageViewId,this.additionalEnvironmentInformation[r.ampPageViewId])),o.DomManager.forcedPlacementId&&(this.invalidateImpression=new h.RequestKeyValue(r.invalidateImpression,o.DomManager.forcedPlacementId)),navigator.connection&&(this.connectionType=new h.RequestKeyValue(r.connectionType,navigator.connection.effectiveType),this.bandwidthEstimate=new h.RequestKeyValue(r.bandwidthEstimate,navigator.connection.downlink+"Mb/sec"),this.roundTripTime=new h.RequestKeyValue(r.roundTripTime,navigator.connection.rtt),this.saveData=new h.RequestKeyValue(r.saveData,navigator.connection.saveData)),this.keyValuePairs=[this.advertisersAlreadyShown,this.ampPageViewId,this.cacheBuster,this.creativesAlreadyShown,this.consortiumId,this.consentString,this.documentReferrer,this.isPublisherRequestedPageView,this.isSecure,this.environment,this.jsSdkVersion,this.licensedFormatId,this.partnerId,this.partnerName,this.pageUrl,this.placementIds,this.publisherPageDescription,this.publisherPageTitle,this.shouldNotTrackUser,this.yieldmoAttributionId,this.appBundleId,this.appBundleVersion,this.deviceArchitecture,this.identifierForAdvertisers,this.mobilePlatform,this.mobilePlatformFull,this.nativeSdkVersion,this.osVersion,this.screenDensity,this.screenHeight,this.screenWidth,this.swimLane,this.userLanguage,this.userLocale,this.vendorId,this.yieldmoAppId,this.invalidateImpression,this.preFetchTimestamp,this.constructorTimestamp,this.placementHeight,this.placementWidth,this.publisherId,this.auctionId,this.genericDataTag,this.connectionType,this.bandwidthEstimate,this.roundTripTime,this.saveData,this.usPrivacyString,this.authenticatedTrafficSolutionEnvelope],null===(g=null==m?void 0:m.macros)||void 0===g||g.forEach((function(e,t){v.keyValuePairs.push(new h.RequestKeyValue(t,e))}))}return e.prototype.getSanitizedAdRequestForSampling=function(){var e=this,t={};return this.keyValuePairs.forEach((function(n){n&&(e.isSensitiveParameter(n.key)||(t[n.key]=n.value))})),t.keyValuePairs=[],JSON.stringify(t)},e.prototype.isSensitiveParameter=function(e){return e===r.yieldmoAttributionId||e===r.identifierForAdvertisers||e===r.consortiumId},e}();t.AdRequest=f},502:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AdResponseManager=void 0;var r=n(2738),i=n(3005),o=n(974),a=n(5888),s=n(9056),l=n(9222),c=n(8235),u=function(){function e(){}return e.setTimeAndConvertFromRaw=function(e){i.Log.debug("received an ad response");var t=s.AdResponses.createArray(e),n=t[0];return n&&n.pageViewTime&&(o.Time.setTimeDifference(n.pageViewTime)||(c.ErrorManager.reportError(l.SdkError.badTimeStamp,{message:n.pageViewTime.toString()}),n.pageViewTime=o.Time.now())),t},e.isRestrictedTargeting=function(e){return r.Collection.any(e,(function(e){return e.error&&e.error===l.AdServerError.restrictedTargeting}))},e.sampleAdResponse=function(e,t){if(!(a.GlobalVariables.randomNumber>.1)&&e){var n={trackableFrame:t,adResponse:e};c.ErrorManager.reportError(l.SdkInfo.sampledAdResponse,n)}},e}();t.AdResponseManager=u},9056:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AdResponses=void 0;var i=n(1634),o=n(7722),a=n(1987),s=n(3930),l=n(3231),c=n(9222),u=n(1284),d=n(8235),h=n(5888),f=function(){function e(){}return e.checkIfWrapperHeader=function(e){return e.ads&&e.ads[0]&&e.ads[0].configurables&&"header"===e.ads[0].configurables.wrapper_pos},e.checkIfNewWrapperConfig=function(e){return e&&(e.fixed_header||e.header_insert||e.header_offset||e.header_zindex||e.infinite)},e.captureWrapperHeaderConfigs=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if(this.checkIfWrapperHeader(r)&&this.checkIfNewWrapperConfig(r.configs)){var i=r.configs;return{fixed_header:i.fixed_header,header_insert:i.header_insert,header_offset:i.header_offset,header_zindex:i.header_zindex,infinite:i.infinite}}}return null},e.createArray=function(t){var n,r=this;if("string"==typeof t)try{n=JSON.parse(t)}catch(e){return d.ErrorManager.reportError(c.AdServerError.adResponseNotJson,{extraData:t}),[]}else n=t;n.epls&&n.epls.length&&l.Sdk.getRegularSdk().placementsManager.handleExtraPlacements(n.epls,n.cfg,n.pv_id),n.pnr&&n.pnr.length>0&&(a.DomManager.partnersToSync=n.pnr),n.is_desktop&&1===n.is_desktop&&(o.Browser.isDesktop=!0,u.Network.adaptToDesktop()),n.data[0].instl&&h.GlobalVariables.setInterstitial(n.data[0].instl);var i=n.data,s=e.captureWrapperHeaderConfigs(i),f=[];return i.forEach((function(t){var i,u,h,p,m="",g="",v=t.configs,y=t.ads&&t.ads[0]&&t.ads[0].configurables||{};n.site_id&&(t.site_id=n.site_id),v&&(o.Browser.isDesktop&&(v.is_desktop=!0),u=v.takeover_css||v.ab_external_css||null,v.ad_choices_css&&(i=v.ad_choices_css),v["max-width"]&&(h=v["max-width"]),v.do_not_resize&&(p=v.do_not_resize),m=v.allowable_height||"",g=v.allowable_width||"");for(var b=!1,w=0,_=t.ads;w<_.length;w++){var E=_[w];E=e.duplicateConfigurablesForFormat(E);var T=void 0,k=l.Sdk.getInstance();if(k&&k.trackableFrameManager&&(T=k.trackableFrameManager.trackableFrameWithId(t.placement_id)),T){T.macroUrl=T.macroUrl||"",T.macroUrl&&0!==T.macroUrl.indexOf("http")&&(d.ErrorManager.reportError(c.SdkInfo.clickTrackerMacroNotUrl,{message:T.macroUrl,trackableFrame:T}),T.macroUrl="");var S=T.domElement,I=void 0;S&&S.getAttribute("data-landing-url")&&(I="u="+encodeURIComponent(S.getAttribute("data-landing-url"))),E=e.createTrackerUrls(E,T.macroUrl,I),T.macroUrl&&(b=!0);var M=l.Sdk.getEnvironmentManager();v?"new_tab"in v&&"0"===v.new_tab&&(null==M?void 0:M.availableFeatures().topNavigation)?delete v.new_tab:v.new_tab="1":t.configs={new_tab:"1"};var R=a.DomManager.getForceHeight(T.domElement),P=a.DomManager.getForceWidth(T.domElement);R&&(m=""+R),P&&(g=""+P)}}s&&y&&(y.infinite=s.infinite,y.header_insert=s.header_insert,y.header_offset=s.header_offset,y.header_zindex=s.header_zindex,y.fixed_header=s.fixed_header);var A={fixedHeader:"TRUE"===(y.fixed_header+"").toUpperCase(),headerInsert:y.header_insert,wrapperPos:y.wrapper_pos},O={abTestTemplateUrl:r.overrides&&r.overrides.abTest||t.format_test_template,adChoicesCss:i,allowableHeight:m,allowableWidth:g,availabilityZone:n.availability_zone,cmp:n.cmp||0,creativeIds:t.creative_ids,doNotResize:p,error:t.error_code||null,eventsEnabled:e.shouldSendEvents(v),formatId:t.creative_format_id||-1,gdpr:n.gdpr,gdprConsent:n.gdpr_consent,hasMacro:b,impressionId:isNaN(t.placement_impression_id)?null:t.placement_impression_id,isDesktop:n.is_desktop,lazyLoad:!!n.lazy_load,maxWidth:h,pageViewId:n.pv_id,pageViewTime:n.pv_time,ping:e.shouldPing(v),placementId:t.placement_id,rawData:e.duplicateCssOverrides(t),reportingMetadata:t.rep_meta,shouldFirePartnerTrackers:0===n.nc,smartLoadDistance:t.smart_load_distance,takeoverCss:u,templateOverride:t.ab_js||null,wrapperConfig:A};f.push(O)})),f},e.availabilityZoneToRegion=function(e){return e||d.ErrorManager.reportError(c.SdkError.noAvailabilityZone,{message:"availabilityZone is not provided"}),i.EventTracker.getInstance().updateAdServerRegion(e||"us-east-1a"),this.getRegion("us-east-1a")},e.isIncompleteLocalAdResponse=function(e){return!(e.data[0]&&e.data[0].error_code)&&(!e.pv_id||!e.pv_time||!e.availability_zone||!e.data[0]||isNaN(Number(e.data[0].placement_impression_id)))},e.getRegion=function(e){for(var t=e.length-1;t>=0&&!(e[t]>="0"&&e[t]<="9");t--);return e.substr(0,t+1)},e.createTrackerUrls=function(e,t,n){for(var r,i=0,o=Object.keys(e.actions);i<o.length;i++){var a=o[i],s=e.actions[a];r=n?s.tracker_url.indexOf("?")>-1?""+t+s.tracker_url+"&"+n:""+t+s.tracker_url+"?"+n:""+t+s.tracker_url,s.tracker_url=r}return e},e.duplicateConfigurablesForFormat=function(e){if(this.overrides&&this.overrides.configurablesOverride&&(e.configurables=r(r({},e.configurables),this.overrides.configurablesOverride)),e.configurables){for(var t=0,n=Object.keys(e.configurables);t<n.length;t++){var i=n[t];e[i]=e.configurables[i]}e.configurables["3p_tag"]&&(e.thirdPartyHtml=e.configurables["3p_tag"])}return e},e.duplicateCssOverrides=function(e){return e.override_css=e.ab_css||e.css||"",e},e.shouldPing=function(e){var t=l.Sdk.getInstance(),n=l.Sdk.getAvailableFeatures();return!(e&&"false"===e.ping||t&&t.environmentManager.kind===s.Environment.Application||n&&n.scrollEventQuality===s.ScrollEventQuality.None&&!n.intersectionObserver)},e.shouldSendEvents=function(e){var t=l.Sdk.getEnvironmentManager(),n=t&&t.kind;return!(e&&"false"===e.tkr||n===s.Environment.Application||n===s.Environment.MpsDesktop)},e}();t.AdResponses=f},9334:(e,t)=>{var n,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenRtbEventTrackingMethod=t.OpenRtbEvents=t.OpenRtbImageType=t.OpenRtbDataType=void 0,(o=t.OpenRtbDataType||(t.OpenRtbDataType={}))[o.desc=2]="desc",o[o.ctaText=12]="ctaText",(i=t.OpenRtbImageType||(t.OpenRtbImageType={}))[i.icon=1]="icon",i[i.main=3]="main",(r=t.OpenRtbEvents||(t.OpenRtbEvents={}))[r.impression=1]="impression",r[r.viewableMrc50=2]="viewableMrc50",r[r.viewableMrc100=3]="viewableMrc100",r[r.viewableVideo50=4]="viewableVideo50",(n=t.OpenRtbEventTrackingMethod||(t.OpenRtbEventTrackingMethod={}))[n.image=1]="image",n[n.js=2]="js"},1474:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncClickTrackingManager=void 0;var r=n(3530),i=n(9222),o=n(1284),a=n(3231),s=n(3005),l=n(8235),c=n(1125),u=function(){function e(){}return e.fireTrackers=function(t){var n=t.currentTarget;if(n.attributes.href&&0!==n.attributes.href.value.length){t.preventDefault(),t.stopPropagation();var i=a.Sdk.getRegularSdk().environmentManager;i.triggerEventOnListeners(r.EventType.click,t),i.triggerEventOnListeners(r.EventType.visibility,!1),i.off(r.EventType.visibility);for(var o,s=t.target,l=s.ownerDocument.defaultView.YM_Placement,c=function(){var e;if(!l||!l.hasArea())return"break";if((e=l.creatives)&&(Object.keys(e).forEach((function(t){var n=s,r=e[t];n.id&&n.id===r.id&&(o=r)})),!o)){if(null==s.parentNode)return"break";s=s.parentNode}};!o&&"break"!==c(););var u=n.attributes.href.value,d="_blank";n.attributes.target&&(d=n.attributes.target.value);var h=null==o?void 0:o.getClickTrackers();(null==h?void 0:h.length)?e.fireAsyncXhrRequests(h,l,u,d):i.openOutboundUrl(u,d,l)}},e.fireAllClickTrackers=function(t,n,r){var i,o,s;if(r=r||a.Sdk.getAnyTrackableFrame()){t&&(o=(i=t.currentTarget).attributes.href.value,s="_blank",i.attributes.target&&(s=i.attributes.target.value));for(var l=!1,c=0,u=r.getAreas();c<u.length;c++){var d=u[c];if(d){var h=d.getClickTrackers();(null==h?void 0:h.length)&&(l=!0,e.fireAsyncXhrRequests(h,r,o,s,n))}}!l&&n&&n()}},e.fireAsyncXhrRequests=function(e,t,n,r,a){var u=t.environmentManager,d=this;s.Log.debug("Firing "+e.length+" async click trackers");var h=0,f=function(){var i,o;if((h+=1)===e.length){var s={eventType:"Info",sub:"click",pvid:t.environmentManager.getCurrentPageViewId(),e:t.environmentManager.kind,fmtid:null===(i=t.adResponse)||void 0===i?void 0:i.formatId,imp:null===(o=t.adResponse)||void 0===o?void 0:o.impressionId};c.Utils.NewRelic.sendDataToNewRelic(s),!a&&n&&r?u.openOutboundUrl(n,r,t):a&&a()}};e.forEach((function(e){o.Network.performXhrUsingPromise({method:"get",url:e,onLoad:function(){f()},onError:function(){var n={trackableFrame:t,message:"xhr error for url: "+e};l.ErrorManager.reportError(i.SdkError.xhrError,n),f()},onTimeout:function(){var n={trackableFrame:t,message:"xhr timeout for url: "+e};l.ErrorManager.reportError(i.SdkError.xhrTimeout,n),f()},timeout:d.xhrTimeout})}))},e.xhrTimeout=5e3,e}();t.AsyncClickTrackingManager=u},318:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsortiumId=void 0;var i=n(5442),o=n(3005),a=n(974),s=n(9222),l=n(1284),c=n(8235),u=function(){function e(){}return e.doConsortiumSync=function(){l.Network.performXhrUsingPromise({method:"get",url:e.consortiumIdEndpoint,secure:!0}).then((function(t){var n;n="string"==typeof t?JSON.parse(t):t,o.Log.debug("Consortium ID: "+t),e.consortiumId=n.TDID,i.Profiling.consortiumIdResponseTime=a.Time.now();var l=i.Profiling.getData(),u=r(r({},l),{consortiumResponse:t});c.ErrorManager.reportError(s.SdkInfo.profiling,{extraData:u,samplePercent:.1})}))},e.consortiumId="",e.consortiumIdEndpoint="//matchadsrvr.yieldmo.com/track/rid?ttd_pid=yieldmo&fmt=json",e}();t.ConsortiumId=u},9222:(e,t)=>{var n,r,i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.ReportingError=t.FormatError=t.SdkInfo=t.VastInsightsError=t.InsightsError=t.SdkError=t.AdServerError=void 0,(s=t.AdServerError||(t.AdServerError={})).pageSizeError="PGSZ",s.noAd="NOAD",s.unsupportedDevice="UNSP",s.unknownLicensedFormat="UNLF",s.unknownPlacement="UNKP",s.wrapperNotFound="UNKW",s.publisherNotFound="UNPB",s.mismatchedPublisher="MMPB",s.mismatchedSite="MMSI",s.dynamicKeyError="DYRE",s.placementTargetingRestriction="PLTR",s.noCreativeFormatTemplate="UNST",s.formatBlocked="FMTB",s.noLicensedFormatPricing="NLFP",s.noFormatsEnabledForPlacement="PLNF",s.restrictedTargeting="NTGT",s.adResponseNotJson="RES_NOT_JSON",s.responseNot200="RES_NOT_200",s.responseNot204="RES_NOT_204",s.userDoesNotConsent="UDNC",(a=t.SdkError||(t.SdkError={})).templateFailedLoad="RETP",a.templateFailedExecute="RETPX",a.templateFailedRender="RETPR",a.placementInsertionFailed="TIPMISS",a.placementInsertionPointNotFound="REFMISS",a.placementIframeLargerThanDiv="IFTB",a.thirdPartyContentError="3PCE",a.duplicatePlacement="DUPE",a.hideAllPlacements="HAP",a.resizeRejected="RSZ",a.xhrTimeout="XHRT",a.xhrError="XHRE",a.takeoverCssError="TKOVR",a.renderPhaseError="REND",a.unsupportedTemplate="UNSUP_TEMP",a.fullScreenFailure="FULLSCREEN",a.invalidPlacementId="INVALID_P",a.unexpectedPlacement="UN_PLACEMENT",a.unknownEnvironment="UN_E",a.unsupportedBrowser="UNSUP_UA",a.failedWindowContext="CONTEXT",a.genericRuntimeError="SDKRE",a.noPlacementsOnPage="NOPL",a.environmentChanged="CHANGED_E",a.securityError="SEC_ERR",a.blockedNavigation="BLOCK_NAV",a.failedBlankMin="BLANK_FAIL",a.failedToFetchPageViewId="PVID_FAIL",a.noAvailabilityZone="NAZ",a.invalidMraid="INVALID_MRAID",a.placementTooSmall="PL_SMALL",a.invalidEvent="INVALID_EVENT",a.unexpectedStateTransition="UN_TRANS",a.insecureUrl="INSECURE",a.malformedCmpResponse="UN_CMP",a.badTimeStamp="BAD_TS",(o=t.InsightsError||(t.InsightsError={})).failedToFindAreaId="NOAID",o.missingId="MISSID",(t.VastInsightsError||(t.VastInsightsError={})).badInlineAdResponse="BAD_INLINE_AD_RESPONSE",(i=t.SdkInfo||(t.SdkInfo={})).clickTrackerMacro="I_CLICK_MACRO",i.destroyYieldmo="I_IMPLODE",i.dfpMacro="I_DFP_MACRO",i.infiniteScroll="I_INFINITY",i.licensedFormat="I_LICENSED",i.localAdResponse="I_LOCAL_RES",i.moreThan5="I_FIVE_PLUS",i.parentTooNarrow="I_TOO_NARROW",i.profiling="I_PROFILE",i.requestPageView="I_REQ_PGVIEW",i.retryingR="I_R_RETRY",i.sampledAdResponse="I_AD_RES",i.encodedSampledResponse="I_ENCODE_RES",i.sampledAdRequest="I_AD_REQ",i.sandboxedEnvironment="I_SANDBOX",i.superSandboxedEnvironment="I_S_SANDBOX",i.conversion="I_CONV_TS",i.remarketing="I_REMARKET_TS",i.track="I_TRACK_CALL",i.licensedAndNormal="I_MIXED_TYPE",i.missingIns="I_NO_INS",i.missingBlank="I_NO_BLANK",i.missingConsent="I_NO_CONSENT",i.lazyLoadingOn="I_LAZY_ON",i.lazyLoadingOccurred="I_LAZY_OCCURRED",i.lazyLoadingImmediate="I_LAZY_IMMEDIATE",i.tapped="I_TAPPED",i.usingEvs="I_EVS",i.clickTrackerMacroNotUrl="I_CLICK_MACRO_NOT_URL",i.nestedIframeInSandbox="I_NESTED_IN_SANDBOX",i.nestedMoreThan5IframeInSandbox="I_OVERNESTED_IN_SANDBOX",i.resizeOccurred="I_RESIZE_OCCURRED",i.partnerSync="I_PARTNER",i.networkInfo="I_NET_INFO",i.abTest="I_BE_AB_TEST",i.abTestTemplate="I_AB_TEST",i.chattyKinesis="I_KINESIS_1000",i.tooManyTouches="I_TOUCH_LIMIT",i.loader="I_LOADER",i.qaSession="I_QA_IMP",i.welcome="I_WELCOME",i.timeToInit="I_INIT_TIME",i.consent="I_CMP",i.consentTwo="I_TCF",i.cookieType="I_COOKIE_TYPE",i.usp="I_USP",i.frameworkWaitTime="I_FRAMEWORK_WAIT",i.missingInfoLocalAdResponse="I_MISSING_INFO",i.topWindowAdResponse="I_LOCAL_RES_TOP",i.differentConsents="I_CMP_DIFFERENT_CONSENTS",i.bothCmpConsentsInvalid="I_CMP_BOTH_CONSENTS_INVALID",i.placementHidden="I_HIDDEN_PL",i.authenticatedTrafficSolutionEnvelopePresent="I_ATS_ENVELOPE_PRESENT",i.parentIframeAttributes="I_PARENT_IFRAME",(r=t.FormatError||(t.FormatError={})).formatCollapse="FMTC",r.runtimeError="FMTRE",r.nullListener="NULL_LISTENER",(n=t.ReportingError||(t.ReportingError={})).unknown="REPORT_UNKNOWN",n.crashDetected="REPORT_CRASH",n.deprecationDetected="REPORT_DEPRECATION",n.interventionDetected="REPORT_INTERVENTION"},1284:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Network=void 0;var o=n(2702),a=n(1567),s=n(3005),l=n(974),c=n(667),u=n(9222),d=n(8235),h=n(8251),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.overrideDefaults=function(e){e.adServer&&(t.publisherEndpoint=e.adServer),e.format&&(t.templateEndpoint=e.format,t.amberTemplateEndpoint=e.format),t.writeToDom=e.writeRequestsToDom,t.screwCookies=e.screwCookies},t.overwriteAdWithDataset=function(e){t.publisherEndpoint===t.defaultPublisherEndpoint&&(t.publisherEndpoint=""+t.fakeAdEndpoint+e)},t.requestPlacements=function(e){var n=this;this.adRequestCount+=1,this.adRequestCount%3==0&&a.PreviouslySeen.clear();var r={method:"get",secure:!0,url:""+this.publisherEndpoint+this.adRequestPath+this.getQueryString(e.keyValuePairs),status:void 0};return t.performXhrUsingPromise(r).then((function(e){return n.writeToDom&&c.Automation.writeResponseToDom(e),200!=r.status&&d.ErrorManager.reportError(u.AdServerError.responseNot200,{extraData:r}),e})).catch((function(t){return d.ErrorManager.reportError(u.AdServerError.responseNot204,{extraData:e}),""}))},t.fetchTemplate=function(e){return e>=h.FormatTypes.AMBER?this.performXhrUsingPromise({method:"get",url:this.amberTemplateEndpoint+"/"+e+this.amberTemplateExtension}):this.performXhrUsingPromise({method:"get",url:""+this.templateEndpoint+this.templateBucket+"/"+e+this.templateExtension})},t.fetchAbTestTemplate=function(e,t){return"control"===t&&(t=this.templateEndpoint+"/"+e+this.templateExtension),this.performXhrUsingPromise({method:"get",url:t+"?cb="+Math.round(Math.random()*Math.pow(10,13))})},t.sendEvent=function(e,t,n){var r=n||{};return r.method="get",r.secure="r"===e||"dl"===e,r.url=""+this.publisherEndpoint+this.eventPath+e+t,this.performXhrUsingPromise(r).then((function(e){return 204!=r.status&&d.ErrorManager.reportError(u.AdServerError.responseNot204,{extraData:r}),e})).catch((function(e){return d.ErrorManager.reportError(u.AdServerError.responseNot204,{extraData:r}),o.Promise.reject(e)}))},t.performXhrUsingPromise=function(e){return s.Log.getLogLevel()>=s.LogLevel.Warn&&/^http:/g.test(e.url)&&(s.Log.warn("Non secure XHR request"),d.ErrorManager.reportError(u.SdkError.insecureUrl,{message:e.url})),this.writeToDom&&c.Automation.writeRequestToDom(e.method,e.url,e.body),l.NetworkBase.performXhrUsingPromise(e)},t.getQueryString=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];if(i&&null!=i.value){var o=encodeURIComponent(i.value);o.length>=1&&t.push(i.key+"="+o)}}return t.join("&")},t.adaptToDesktop=function(){this.templateBucket="/desktop"},t.defaultPublisherEndpoint="https://ads.yieldmo.com",t.publisherEndpoint=t.defaultPublisherEndpoint,t.fakeAdEndpoint="https://qa.yieldmo.com/",t.templateEndpoint="https://static.yieldmo.com/sdk/template/js",t.amberTemplateEndpoint="https://static.yieldmo.com/sdk/template/js",t.templateBucket="",t.adRequestPath="/v002/t_ads/ads?",t.eventPath="/v000/t_tkr/ev?type=",t.templateExtension=".handlebars.js",t.amberTemplateExtension=".index.html",t.adRequestCount=0,t.writeToDom=!1,t}(l.NetworkBase);t.Network=f},1567:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PreviouslySeen=void 0;var n=function(){function e(){}return e.addCreatives=function(e){var t=this;Object.keys(e).forEach((function(n){t.creativeIds[n]=!0;var r=e[n].advertiserId;t.advertiserIds[r]=!0}))},e.advertisers=function(){return Object.keys(this.advertiserIds)},e.creatives=function(){return Object.keys(this.creativeIds)},e.clear=function(){this.creativeIds={},this.advertiserIds={}},e.creativeIds={},e.advertiserIds={},e}();t.PreviouslySeen=n},956:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RequestKeyValue=void 0;t.RequestKeyValue=function(e,t){this.key=e,this.value=t}},2743:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThirdPartyTrackingManager=void 0;var r=n(8556),i=n(160),o=n(3005),a=n(9451),s=function(){function e(){}return e.setUpViewabilityCallbacks=function(e){var t=this,n={kind:r.ThresholdKind.RisingTo,value:1};r.ViewabilityManager.onPlacementViewabilityThreshold(n,e,(function(n){t.fireTpis(i.TpiKind.viewedTpi,e)}),!1)},e.fireTpis=function(e,t){var n=this,r=t.creatives;r&&Object.keys(r).forEach((function(i){n.fireCreativeTpis(r[i],e,t)}))},e.fireCreativeTpis=function(e,t,n){var r=n.tpiWindow;t===i.TpiKind.renderedTpi&&(this.dropPixel(this.comscorePixel(),r,e,"ep"),e.trackingPixel&&this.dropPixel(e.trackingPixel,r,e,"gp"));for(var o=0;o<e[t].length;o++){var a=e[t][o];a.method===i.TpiMethod.pixel?this.dropPixel(a.value,r,e):this.writeTpiScript(a.value,n,t,e,o,a.context)}},e.generateTpiInnerHtml=function(e,t,n,r){var o=this.sanitizeTpi(e);return r===i.TpiContext.insideIframe&&t.environmentManager.availableFeatures().iframeManipulation?this.compileTpiIframeString(n,o):this.compileTpiDivString(n,o)},e.sanitizeTpi=function(e){return e.replace(/\r?\n|\r/g,"").replace(/\"/g,'\\"').split(/<\/scr/gi).join('</scr" + "')},e.compileTpiIframeString=function(e,t){return'var a=document.createElement("iframe"),z=document.getElementById("'+e+'")||document.body;a.frameBorder=0;a.scrolling="no";a.width=0;a.height=0;a.noresize="noresize";a.sandbox="allow-scripts allow-same-origin";a.setAttribute("style","position:absolute;top:0;left:0;");a.setAttribute("id","'+e+'_tpi");z.appendChild(a);a.contentDocument.write("<html><head></head><body></body></html>");a.contentDocument.write("'+t+'");a.contentDocument.close();'},e.compileTpiDivString=function(e,t){return'var a=document.createElement("div"),z=document.getElementById("'+e+'")||document.body;a.frameBorder=0;a.width=0;a.height=0;a.noresize="noresize";a.setAttribute("style","position:absolute;top:0;left:0;");a.setAttribute("id","'+e+"_tpi\");z.appendChild(a);var range=document.createRange();range.setStart(a, 0);a.appendChild(range.createContextualFragment('"+t+"'));"},e.comscorePixel=function(){return"https://sb.scorecardresearch.com/p?c1=8&c2=18969557&ns_ap_it=b&rn="+a.Random.hexString()},e.dropPixel=function(e,t,n,r){if("false"!==e&&"null"!==e){var i=document.createElement("img");return i.src=e,i.width=1,i.height=1,i.setAttribute("style","position:absolute;bottom:0;left:0;opacity:0;"),void 0!==r&&i.classList.add(r),n.domElement?n.domElement.insertAdjacentElement("afterend",i):t.document.body.appendChild(i),i}},e.writeTpiScript=function(e,t,n,r,i,a){var s=this.generateTpiInnerHtml(e,t,r.id,a),l=document.createElement("script"),c=t.tpiWindow;l.id=n+"-"+r.id+"-"+i,l.innerHTML=s,r.domElement?r.domElement.insertAdjacentElement("afterend",l):c.document.body.appendChild(l),o.Log.debug("TPI dropped on publisher page for creative ID: "+r.id)},e}();t.ThirdPartyTrackingManager=s},2573:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Overrides=void 0;var r=n(3930),i=n(3005),o=function(){function e(e,t,n){void 0===n&&(n=""),this.params={},this.prefix="",this.prefix=n;var o=e.split("?")[1];if(o)for(var a=0,s=o.split("&");a<s.length;a++){var l=s[a].split("="),c=l[0],u=l[1];c&&(this.params[c]=u||null)}this.adServer=this.decodeURIParameter("ym_force_a"),this.format=this.decodeURIParameter("ym_force_f"),this.log=this.getParameter("ym_force_l");var d=this.decodeURIParameter("ym_force_random");d&&(this.fakeRandom=parseFloat(d));var h=window&&window.__ymAds;if(t!==r.Environment.Dcm&&!h){var f=this.getParameter("ym_force_p");this.placement="string"==typeof f&&f.split("%2C")||null;var p=this.getParameter("ym_force_lf");this.licensedId="string"==typeof p&&p.split("%2C")||null}this.sdk=this.decodeURIParameter("ym_force_s"),this.partner=this.decodeURIParameter("ym_force_partner"),this.writeRequestsToDom="true"===this.getParameter("ym_force_net2dom"),this.writeKinesisRequestsToDom="true"===this.getParameter("ym_force_kinesis2dom"),this.screwCookies="true"===this.getParameter("ym_force_no_cookies"),this.abTest=this.getParameter("ym_force_ab")||null;var m=this.getParameter("ym_force_configuration");if(m)try{this.configurablesOverride=JSON.parse(decodeURIComponent(m).replace("+"," "))}catch(e){i.Log.warn("OVERRIDES: Configurables override is not valid json")}}return e.prototype.getParameter=function(e,t){return void 0===t&&(t=null),this.params[""+this.prefix+e||t]},e.prototype.decodeURIParameter=function(e){var t=this.getParameter(e);return t?decodeURIComponent(t):null},e}();t.Overrides=o},1510:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Creatives=t.Creative=void 0;var o=n(2954),a=n(9334),s=n(8251),l=n(4720),c=n(160),u=function(e){function t(t,n){var r=e.call(this)||this;r.renderedTpi=[],r.viewedTpi=[],r.isRetargeted=!1,r.floatingAdChoices=!1,r.id=t.cr_id,r.advertiserId=t.adv_id;var i=t.configurables,o=t.viewed_tpi,a=t.rendered_tpi,u=t.lazy_load_tpi;if("1"===t.rti?r.adChoicesRti=1:r.adChoicesRti=0,o&&r.viewedTpi.push({value:o,context:c.TpiContext.insideIframe,method:c.TpiMethod.code}),a&&r.renderedTpi.push({value:a,context:c.TpiContext.insideIframe,method:c.TpiMethod.code}),t.rti&&"1"===t.rti&&(r.isRetargeted=!0),t.rticu&&(r.customOptoutUrl=t.rticu),i){if(i.assets_url&&(r.assetsUrl=i.assets_url),i.clicktrackers&&i.clicktrackers.length>0&&(r.clickTrackers=i.clicktrackers),i.tpi&&"1"===u&&r.viewedTpi.push({value:i.tpi,context:c.TpiContext.insideIframe,method:c.TpiMethod.code}),i.tpi&&"1"!==u&&r.renderedTpi.push({value:i.tpi,context:c.TpiContext.insideIframe,method:c.TpiMethod.code}),i.dv_tpi&&"1"===u&&r.viewedTpi.push({value:i.dv_tpi,context:c.TpiContext.formatLevel,method:c.TpiMethod.code}),i.dv_tpi&&"1"!==u&&r.renderedTpi.push({value:i.dv_tpi,context:c.TpiContext.formatLevel,method:c.TpiMethod.code}),i.pixel_url&&(r.trackingPixel=i.pixel_url),t.thirdPartyHtml&&n>=s.FormatTypes.THIRD_PARTY_FORMAT){var d="<div>"+t.thirdPartyHtml+"</div>",h=i.frameheight||null,f=i.framewidth||null;f||n!==s.FormatTypes.DCM_THIRD_PARTY_FORMAT||(f="100%"),r.thirdPartyConfig=new l.ThirdPartyConfig(d,h,f),r.addActionsToClickTrackersForThirdParty(t)}Number(i.floatingAdChoices)>0&&(r.floatingAdChoices=!0),n===s.FormatTypes.FLEXBANNER&&(i.frameheight?r.frameheight=i.frameheight:r.frameheight=250,i.framewidth?r.framewidth=i.framewidth:r.framewidth=300)}return r}return i(t,e),t.prototype.setEventTrackers=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if(r.event===a.OpenRtbEvents.impression)if(r.method===a.OpenRtbEventTrackingMethod.image)this.renderedTpi.push({value:r.url,context:c.TpiContext.insideIframe,method:c.TpiMethod.pixel});else{var i='<script src="'+r.url+'" type="text/javascript"><\/script>';this.renderedTpi.push({value:i,context:c.TpiContext.insideIframe,method:c.TpiMethod.code})}}},t.prototype.addActionsToClickTrackersForThirdParty=function(e){var t=this,n=e.actions;n&&Object.keys(n).forEach((function(e){var r=n[e].tracker_url;r&&(t.clickTrackers||(t.clickTrackers=[]),t.clickTrackers.push(r))}))},t.prototype.getAssetsUrl=function(){return this.assetsUrl},t}(o.AbstractTrackableArea);t.Creative=u;var d=function(){function e(){}return e.setDomElements=function(e,t){var n=Object.keys(e);n.forEach((function(n){var r=e[n].id,i=t.document.getElementById(r);e[n].domElement=i}));var r=t.document.getElementsByClassName("cr-area"),i=Array.prototype.slice.call(r);if(i.length===n.length)for(var o=0;o<i.length;o++)e[n[o]].areaElement=i[o];else for(var a=0,s=Object.keys(e);a<s.length;a++){var l=s[a],c=e[l],u=c.id,d=t.frameElement.contentDocument.getElementById(u);d&&(c.areaElement=d)}},e}();t.Creatives=d},160:(e,t)=>{var n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.TpiMethod=t.TpiContext=t.TpiKind=void 0,(i=t.TpiKind||(t.TpiKind={})).renderedTpi="renderedTpi",i.viewedTpi="viewedTpi",(r=t.TpiContext||(t.TpiContext={})).insideIframe="insideIframe",r.formatLevel="formatLevel",(n=t.TpiMethod||(t.TpiMethod={}))[n.pixel=0]="pixel",n[n.code=1]="code"},4201:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Placement=t.RenderType=t.IframeType=void 0;var o,a=n(7722),s=n(1987),l=n(4542),c=n(2241),u=n(1527),d=n(1567),h=n(2743),f=n(3231),p=n(221),m=n(8251),g=n(3005),v=n(3930),y=n(1510),b=function(){function e(){}return e.SANDBOX="sandbox",e.IAB_FRIENDLY="iabFriendly",e}();t.IframeType=b,function(e){e[e.Immediate=0]="Immediate",e[e.SmartLoad=1]="SmartLoad",e[e.MraidLazyLoad=2]="MraidLazyLoad"}(o=t.RenderType||(t.RenderType={}));var w=function(e){function t(t,n,r,i){var a=e.call(this,t,n,r,i)||this;a.isRetargeted=!1,a.shouldSubscribeToViewabilityForTpi=!1,a.extraPlacementChildren=[],a.onLoadTriggered=!1,a.renderType=o.Immediate,a.optionalParams={},a.floatingAdChoices=!1,a.wrapperRailsClasses=["ym-wrapper-right","ym-wrapper-left","ym-wrapper-meter"],a.wrapperEditedTag="html",a.wrapperEditedTagClass="",a.wrapperEditedTagStyle="",a.needsToFetchAssets=!1;var s=f.Sdk.getRegularSdk();return a.environmentManager=s&&s.environmentManager,a.environmentManager&&a.updateEnvironmentInformation(),a.macroUrl||a.updateWithDfpMacros(),a}return i(t,e),t.prototype.setSubPlacementId=function(e){this.subId=e},t.prototype.updateWithDfpMacros=function(){var e=this.domElement.dataset;e.clickTracker?this.macroUrl=e.clickTracker:e.dfpMacro&&(this.macroUrl=e.dfpMacro,this.usingDfpMacro=!0)},t.prototype.setAdResponse=function(t){e.prototype.setAdResponse.call(this,t),t.templateOverride&&(this.templateOverride=t.templateOverride),t.adChoicesCss&&(this.adChoicesCss=t.adChoicesCss),t.maxWidth&&(this.maxWidth=t.maxWidth),t.doNotResize&&(this.doNotResize=t.doNotResize),t.allowableHeight&&"50"===t.allowableHeight&&(this.floatingAdChoices=!0),this.setUpCreatives(this.adResponse),this.hasArea()&&d.PreviouslySeen.addCreatives(this.creatives)},t.prototype.updateWrapperPlacement=function(e){var t=this.environmentManager.topWindow().document,n=null;e.fixedHeader&&e.headerInsert&&(n=t.querySelector(e.headerInsert)),n||(n=t.body.firstChild);var r=this.domElement;s.DomManager.insertBefore(r,n)},t.prototype.addClickTrackers=function(e){var t,n=this,r=[];this.adResponse&&(null===(t=this.adResponse.rawData.ads)||void 0===t||t.forEach((function(t){if(t.configurables&&((r=t.configurables.clicktrackers||[]).push.apply(r,e),r.length>0)){if(t.configurables.clicktrackers=r,n.hasArea()){var i=n.creatives[t.cr_id];i&&i.setClickTrackers(t.configurables.clicktrackers)}g.Log.debug("Added "+r.length+" clicktrackers")}})))},t.prototype.clear=function(){delete this.formatVersion,this.clearElements(),this.clearEvents(),c.PingEventManager.removeTracking(this),this.trigger&&s.DomManager.removeElement(this.domElement),this.extraPlacementChildren.length&&(delete this.environmentManager.topWindow().ymWrapperInitialized,this.clearRails())},t.prototype.setWrapperPreState=function(){var e=this.environmentManager.topWindow().document.getElementsByTagName(this.wrapperEditedTag);e&&(this.wrapperEditedTagClass=e[0].className,this.wrapperEditedTagStyle=e[0].getAttribute("style"))},t.prototype.handleOnLoadEvent=function(e){this.adChoices&&this.adChoices.appendIfNeeded(this.iframe,this.environmentManager.availableFeatures().topWindow),this.onLoadTriggered=!0,this.environmentManager.handleOnLoadEvent(e)},t.prototype.shouldOverrideActions=function(){return"true"===this.getElementDataValueLazily("actionOverride")},t.prototype.getTopUri=function(){return this.getElementDataValueLazily("topUri")},t.prototype.getLfId=function(){return this.getElementDataValueLazily("lfId")},t.prototype.getLfBust=function(){return this.getElementDataValueLazily("lfBust")},t.prototype.getPartnerId=function(){return this.getElementDataValueLazily("partnerId")},t.prototype.getPartnerName=function(){return this.getElementDataValueLazily("partnerName")},t.prototype.getErrorData=function(){var t=e.prototype.getErrorData.call(this),n=this.getLfBust();return n&&(t.lfbust=n),t},t.prototype.setPageViewId=function(e){this.adResponse&&(this.adResponse.pageViewId=e),this.environmentManager.setCurrentPageViewId(e)},t.prototype.setImpressionId=function(e){this.adResponse.impressionId=e,this.impressionId=e},t.prototype.setPageViewTime=function(e){this.adResponse.pageViewTime=e,this.pageViewTime=e},t.prototype.setAvailabilityZone=function(e){this.adResponse.availabilityZone=e},t.prototype.setActions=function(e){this.shouldOverrideActions()&&e&&e.length&&this.adResponse&&this.adResponse.rawData&&this.adResponse.rawData.ads&&this.adResponse.rawData.ads.length&&this.adResponse.rawData.ads.forEach((function(t){var n=e.filter((function(e){return e.ad_id===t.ad_id}));n&&n.length&&(t.actions=n[0].actions)}))},t.prototype.clearRails=function(){var e=this;this.wrapperRailsClasses.forEach((function(t){var n=e.environmentManager.topWindow().document.getElementsByClassName(t);[].slice.call(n).forEach((function(e){e&&e.parentElement&&e.parentElement.removeChild(e)}));var r=e.environmentManager.topWindow().document.getElementsByTagName(e.wrapperEditedTag);r&&(r[0].className=e.wrapperEditedTagClass,r[0].setAttribute("style",e.wrapperEditedTagStyle))}))},t.prototype.clearElements=function(){"0"!==this.domElement.getAttribute("evs")&&this.removeAttributeFromDom("evs"),this.removeAttributeFromDom("style");var e=this.domElement.id.split(".")[0];this.domElement.id=e,this.domElement.innerHTML=""},t.prototype.removeAttributeFromDom=function(e){s.DomManager.elementHasAttribute(this.domElement,e)&&s.DomManager.elementRemoveAttribute(this.domElement,e)},t.prototype.clearEvents=function(){this.environmentManager.allEventsOff()},t.prototype.setUpCreatives=function(e){var t=this;if(e.rawData.ads){var n=e.rawData.ads,r=!1;n.forEach((function(i){var o=new y.Creative(i,e.formatId);t.addArea(o),o.viewedTpi.length>0&&(t.shouldSubscribeToViewabilityForTpi=!0),o.isRetargeted&&(t.isRetargeted=!0),1===n.length&&o.customOptoutUrl&&(t.customOptoutUrl=o.customOptoutUrl),null!==o.thirdPartyConfig&&(t.thirdPartyConfig=o.thirdPartyConfig),t.floatingAdChoices=o.floatingAdChoices||a.Browser.isDesktop||t.floatingAdChoices,o&&o.adChoicesRti&&(r=!0),!o||o.adChoicesRti||r||(t.floatingAdChoices=!1),t.adResponse&&t.adResponse.rawData&&t.adResponse.rawData.configs&&o&&(t.adResponse.rawData.configs=t.adResponse.rawData.configs||{},t.adResponse.rawData.configs.floatingAdChoices=t.floatingAdChoices,t.adResponse.rawData.configs.adChoicesRti=o.adChoicesRti),o.frameheight&&(t.frameheight=o.frameheight),o.framewidth&&(t.framewidth=o.framewidth),t.needsToFetchAssets=!!o.getAssetsUrl()}));var i={allowableHeight:this.adResponse.allowableHeight,isRetargeted:this.isRetargeted,domElement:this.domElement,floatingAdChoices:this.floatingAdChoices,adChoicesCss:this.adChoicesCss,customOptoutUrl:this.customOptoutUrl};if(this.adChoices=new p.AdChoices(i),this.adResponse&&this.adResponse.rawData&&this.adResponse.rawData.configs){var o=this.adResponse.rawData.configs||{};o.adChoicesUrl=this.adChoices.getAdChoicesUrl(),o.hideHeader="50"===this.adResponse.allowableHeight||a.Browser.isDesktop&&(!o.header_copy||0===o.header_copy.length)||!this.adResponse.rawData.configs.adChoicesRti&&(!o.header_copy||0===o.header_copy.length),o.rti=this.adResponse.rawData.configs.adChoicesRti,this.adResponse.rawData.configs=o}this.shouldSubscribeToViewabilityForTpi&&h.ThirdPartyTrackingManager.setUpViewabilityCallbacks(this),e.formatId===m.FormatTypes.THIRD_PARTY_FORMAT?this.iframeType=b.SANDBOX:e.formatId===m.FormatTypes.CELTRA_THIRD_PARTY_FORMAT&&(this.iframeType=b.IAB_FRIENDLY)}},t.prototype.hide=function(e,t){var n=this.domElement;n&&(n.style.display="none",n.className="ym ym_rend",n.setAttribute("data-error",e.toLowerCase()))},t.prototype.addArea=function(t){e.prototype.addArea.call(this,t),this.creatives=this.areaDictionary},t.prototype.getDeviceOrientationData=function(){return this.tiltManager&&this.tiltManager.getLastTiltEventData()},t.prototype.render=function(){if(g.Log.info("write placement to DOM: ",this),this.adResponse){var e=this.adResponse.wrapperConfig;e&&-1!==["HEADER","FOOTER"].indexOf((e.wrapperPos+"").toUpperCase())&&this.updateWrapperPlacement(e)}this.content&&(s.DomManager.writePlacement(this,this.content),this.environmentManager.resetDimensions(this.iframe),this.setUpEngagementTracking())},t.prototype.setUpEngagementTracking=function(){e.prototype.setUpEngagementTracking.call(this),this.adResponse&&this.adResponse.eventsEnabled&&l.OldStyleMetrics.setUpViewabilityMetrics(this)},t.prototype.shouldFetchAssets=function(){return this.needsToFetchAssets},t.prototype.shouldRequestAdditionalData=function(){return!(!this||!this.adResponse||this.adResponse.error||this.adResponse.pageViewId&&this.adResponse.pageViewTime&&this.adResponse.availabilityZone&&this.adResponse.impressionId||this.environmentManager.kind===v.Environment.Application)},t}(u.AbstractTrackableFrame);t.Placement=w},3615:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlacementsManager=void 0;var o=n(2702),a=n(9056),s=n(1634),l=n(3930),c=n(3530),u=n(4542),d=n(9175),h=n(6787),f=n(1284),p=n(8251),m=n(3193),g=n(1987),v=n(2790),y=n(502),b=n(9222),w=n(4201),_=n(5888),E=n(8235),T=n(281),k=n(3005),S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.maxPlacementsToFind=6,t.licensedFormatIds=[],t.areMorePlacementsAvailable=!1,t.placementIndex=0,t}return i(t,e),t.prototype.transition=function(t,n){if(e.prototype.transition.call(this,t,n),this.shouldTransition(t.state,n))switch(t.state=n,n){case v.TrackableFrameState.Found:this.clearPlacement(t);break;case v.TrackableFrameState.GettingContent:this.getPlacementContent(t);break;case v.TrackableFrameState.WaitingForAdResponse:case v.TrackableFrameState.WaitingForPartialResponse:break;case v.TrackableFrameState.WaitingForAssets:this.fetchAssets(t);break;case v.TrackableFrameState.Renderable:this.makeRenderable(t);break;case v.TrackableFrameState.DelayedRender:this.setUpDelayedRender(t);break;case v.TrackableFrameState.Rendered:t.render();break;case v.TrackableFrameState.FailedToRender:E.ErrorManager.sendQAError(t),this.clearPlacement(t),t.environmentManager.handleAdLoadFailure(t);break;case v.TrackableFrameState.Cleared:this.clearPlacement(t);break;default:return E.ErrorManager.reportError(b.SdkError.unexpectedStateTransition,{extraData:{from:t.state,to:n},trackableFrame:t}),void this.transition(t,v.TrackableFrameState.FailedToRender)}else E.ErrorManager.reportError(b.SdkError.unexpectedStateTransition,{extraData:{from:t.state,to:n,failedTransitionCheck:!0},trackableFrame:t})},t.prototype.shouldTransition=function(e,t){return!(e===t&&e!==v.TrackableFrameState.Found||t===v.TrackableFrameState.Rendered&&e!==v.TrackableFrameState.Renderable&&e!==v.TrackableFrameState.DelayedRender||t===v.TrackableFrameState.Cleared&&e!==v.TrackableFrameState.Rendered)},t.prototype.getPlacementContent=function(e){var t=this;if(e.adResponse)return e.adResponse.error?(E.ErrorManager.reportError(e.adResponse.error,{trackableFrame:e,immediate:!0}),void this.transition(e,v.TrackableFrameState.FailedToRender)):p.ContentManager.getPlacementContent(e).then((function(n){e.content=n,t.transition(e,v.TrackableFrameState.Renderable)})).catch((function(n){var r;r="SecurityError"===n.name||18===n.code?b.SdkError.securityError:n===b.SdkError.unsupportedTemplate?b.SdkError.unsupportedTemplate:n===b.SdkError.thirdPartyContentError?b.SdkError.thirdPartyContentError:b.SdkError.templateFailedRender,E.ErrorManager.reportError(r,{trackableFrame:e,message:n.message}),t.transition(e,v.TrackableFrameState.FailedToRender)}))},t.prototype.hasReachedSmartLoadThreshold=function(e){if(!e.adResponse)return!1;var t=e.environmentManager.getDetailedPositioningInformation(e.domElement);if(t&&t.boundingFormatRect){var n=t.screenHeight;return t.boundingFormatRect.top-n<=e.adResponse.smartLoadDistance}return!0},t.prototype.isMraidViewable=function(e){return e.environmentManager.mraidWindow.mraid.isViewable()},t.prototype.makeRenderable=function(e){if(e.renderType=this.determineRenderType(e),e.renderType===w.RenderType.Immediate)this.transition(e,v.TrackableFrameState.Rendered);else{var t=void 0,n=void 0;e.renderType===w.RenderType.SmartLoad?(t=this.hasReachedSmartLoadThreshold,n="distance: "+(e.adResponse&&e.adResponse.smartLoadDistance)):(t=this.isMraidViewable,n="MRAID isViewable");var r={trackableFrame:e,message:n};t(e)?(E.ErrorManager.reportError(b.SdkInfo.lazyLoadingImmediate,r),this.transition(e,v.TrackableFrameState.Rendered)):(E.ErrorManager.reportError(b.SdkInfo.lazyLoadingOn,r),e.renderType===w.RenderType.MraidLazyLoad&&T.EventTrackingManager.reportMraidLazyLoad(e),this.transition(e,v.TrackableFrameState.DelayedRender))}},t.prototype.setUpDelayedRender=function(e){var t,n,r,i=this;e.renderType===w.RenderType.SmartLoad?(t=this.hasReachedSmartLoadThreshold,n="distance: "+(e.adResponse&&e.adResponse.smartLoadDistance),r=c.EventType.scroll):(t=this.isMraidViewable,n="MRAID isViewable",r=c.EventType.viewableChange,window.document.body.style.height="26px",window.document.body.style.width="100%");var o={trackableFrame:e,message:n};e.environmentManager.on(r,(function(n){t(e)&&(e.environmentManager.off(r,void 0),E.ErrorManager.reportError(b.SdkInfo.lazyLoadingOccurred,o),window.document.body.style.height="0",window.document.body.style.width="0",i.transition(e,v.TrackableFrameState.Rendered))}))},t.prototype.placementWithId=function(t,n){return e.prototype.trackableFrameWithId.call(this,t,n)},t.prototype.placementsWithState=function(e){var t=[];return this.forEachPlacement((function(n){n.state===e&&t.push(n)})),t},t.prototype.placementWithLfId=function(e){var t=null;for(var n in this.trackableFrames)if(this.trackableFrames.hasOwnProperty(n)){var r=this.trackableFrames[n];if(r.getLfId()===e){t=r;break}}return t},t.prototype.createDictionary=function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];if(g.DomManager.isMpsTag(i)){var o=this.getLicensedFormatId(i);this.licensedFormatIds.push(o),E.ErrorManager.reportError(b.SdkInfo.licensedFormat,{message:o})}var a=g.DomManager.getPlacementId(i),s=new w.Placement(i,a.id,a.postfix,this.placementIndex);this.placementIndex++,t[s.getUniqueId()]?(E.ErrorManager.reportError(b.SdkError.duplicatePlacement,{trackableFrame:s}),this.transition(s,v.TrackableFrameState.FailedToRender)):t[s.getUniqueId()]=s}return t},t.prototype.setPreFetchTimestamp=function(e,t){var n=this;e.forEach((function(e){var r=n.placementWithId(e);r&&(r.preFetchTimestamp=t)}))},t.prototype.findNewPlacements=function(){var e=this,t=0,n=g.DomManager.getPlacementElements(),r=[],i=[];this.areMorePlacementsAvailable=!1,n.forEach((function(n){e.placementWithDomElement(n)||(!e.publisherId&&n.dataset.pId&&(e.publisherId=n.dataset.pId),!e.auctionId&&n.dataset.auctionId&&(e.auctionId=n.dataset.auctionId),!e.genericDataTag&&n.dataset.genericDataTag&&(e.genericDataTag=n.dataset.genericDataTag),(n.dataset.fakeAd||"").trim()&&f.Network.overwriteAdWithDataset(n.dataset.fakeAd.trim()),g.DomManager.isMpsTag(n)?(i.push(n),e.areMorePlacementsAvailable=!0):t<e.maxPlacementsToFind?(t++,r.push(n)):e.areMorePlacementsAvailable=!0)})),0===r.length&&i.length>0?(r.push(i[0]),this.areMorePlacementsAvailable=i.length>1):r.length&&i.length&&E.ErrorManager.reportError(b.SdkInfo.licensedAndNormal);var o=this.createDictionary(r);return Object.keys(o).forEach((function(t){var n=o[t];e.trackableFrames[t]=n,g.DomManager.setElementId(e.trackableFrames[t]),e.transition(n,v.TrackableFrameState.WaitingForAdResponse)})),o},t.prototype.placementWithDomElement=function(e){var t=this.placementWithId(e.id);if(t&&t.domElement===e)return t;for(var n=0,r=Object.keys(this.trackableFrames);n<r.length;n++){var i=r[n],o=this.trackableFrames[i];if(o.domElement===e)return o}return null},t.prototype.clearPlacements=function(e){var t=this;e.forEach((function(e){var n=t.placementWithId(e);n&&t.transition(n,v.TrackableFrameState.Found)}))},t.prototype.handleExtraPlacements=function(e,t,n){var r=this;if(void 0===n&&(n=""),e&&e.length&&t&&t.trigger){var i=this.placementWithId(t.trigger);i&&t.type&&-1!==t.type.indexOf("WRAPPER")&&e.forEach((function(e){i.setWrapperPreState();var t=r.createExtra(e,n,i);t&&(r.trackableFrames[t.getUniqueId()]=t)}))}},t.prototype.createExtra=function(e,t,n){var r=n.environmentManager.topWindow().document.getElementById("ym_"+e);r&&g.DomManager.removeElement(r);var i=g.DomManager.createEmptyPlacementDiv(e,t);g.DomManager.topElement(n.environmentManager).appendChild(i);var o=new w.Placement(i,e,void 0,this.placementIndex);return this.transition(o,v.TrackableFrameState.WaitingForAdResponse),this.placementIndex++,o.trigger=n.getIdForReporting(),n.extraPlacementChildren.push(o.getIdForReporting()),o},t.prototype.updateDictionary=function(e,t){var n=this;return t.forEach((function(t){var r=n.placementWithId(t);r&&(e[r.getUniqueId()]=r)})),e},t.prototype.updateForExtraPlacements=function(e){var t=this;return Object.keys(e).forEach((function(n){var r=e[n].extraPlacementChildren;t.updateDictionary(e,r)})),e},t.prototype.clearPlacement=function(e){var t=this;e&&(e.clear(),delete this.trackableFrames[e.getUniqueId()],e.extraPlacementChildren.forEach((function(e){t.clearPlacement(t.trackableFrames[e])})))},t.prototype.anyPlacement=function(){return this.anyTrackableFrame()},t.prototype.forEachPlacement=function(e){var t=this;Object.keys(this.trackableFrames).forEach((function(n){e(t.trackableFrames[n])}))},t.prototype.getLicensedFormatId=function(e){var t=e.dataset.lfId;return void 0===t?null:t},t.prototype.hidePlacements=function(){this.forEachPlacement((function(e){e.hide("hap")}))},t.prototype.reloadEnvironmentManager=function(t,n){e.prototype.reloadEnvironmentManager.call(this,t,n),u.OldStyleMetrics.setUpViewabilityMetrics(t)},t.prototype.setPlacements=function(e){this.trackableFrames=e},t.prototype.getPlacements=function(){return this.trackableFrames},t.prototype.populateIncompletePlacements=function(e){var t=this.placementsWithState(v.TrackableFrameState.WaitingForPartialResponse);return t.length?this.requestMissingProperties(t,e):o.Promise.resolve()},t.prototype.fetchAssets=function(e){var t=this;if(e.shouldFetchAssets())try{p.ContentManager.fetchAssets(e,(function(){return t.transition(e,v.TrackableFrameState.GettingContent)}))}catch(t){k.Log.error("Failed to fetch assets: "+t),this.transition(e,v.TrackableFrameState.FailedToRender)}else this.transition(e,v.TrackableFrameState.GettingContent)},t.prototype.processAdResponse=function(e,t,n){var r=this;if(0==e.length){for(var i in t)this.transition(t[i],v.TrackableFrameState.FailedToRender);return o.Promise.resolve()}var l=a.AdResponses.availabilityZoneToRegion(e[0].availabilityZone);return s.EventTracker.getInstance().updateRegion(l),this.updateForExtraPlacements(t),e.forEach((function(e){var t=r.setAdResponseInPlacement(e);t&&(t.shouldRequestAdditionalData()?(E.ErrorManager.reportError(b.SdkInfo.missingInfoLocalAdResponse,{trackableFrame:t,adResponse:t.adResponse}),r.transition(t,v.TrackableFrameState.WaitingForPartialResponse)):_.GlobalVariables.canSendPii()&&r.transition(t,v.TrackableFrameState.WaitingForAssets))})),this.populateIncompletePlacements(n).then((function(){E.ErrorManager.sendQAError(r.anyPlacement()),E.ErrorManager.sendNetworkInfo()}))},t.prototype.requestMissingProperties=function(e,t){var n=this,r=e.map((function(e){return e.getIdAndSubId()})),i=e[0],o=i.getPartnerId(),a=i.getPartnerName(),s=this.publisherId,l=this.auctionId,c=this.genericDataTag,u=this.licensedFormatIds.length,d={auctionId:l,genericDataTag:c,partnerId:o,partnerName:a,publisherId:s};u>0&&i.externalMacros.size&&(d.macros=i.externalMacros);var p=new h.AdRequest(r,i.environmentManager,t,!1,u>0?this.licensedFormatIds[u-1]:void 0,d);return f.Network.requestPlacements(p).then(this.updateIncompletePlacements.bind(this,e)).catch((function(e){E.ErrorManager.reportError(b.SdkError.failedToFetchPageViewId,{trackableFrame:i,message:e.message}),n.transition(i,v.TrackableFrameState.FailedToRender)}))},t.prototype.updateIncompletePlacements=function(e,t){var n=this,r=y.AdResponseManager.setTimeAndConvertFromRaw(t);if(y.AdResponseManager.isRestrictedTargeting(r))return r.forEach((function(e){n.setAdResponseInPlacement(e)})),E.ErrorManager.reportError(b.AdServerError.restrictedTargeting),void e.forEach((function(e){return n.transition(e,v.TrackableFrameState.FailedToRender)}));r.forEach((function(e){n.setRequiredProperties(e)})),r.length>0?e.forEach((function(e){return n.transition(e,v.TrackableFrameState.WaitingForAssets)})):e.forEach((function(e){return n.transition(e,v.TrackableFrameState.FailedToRender)}))},t.prototype.setRequiredProperties=function(e){var t=this.placementWithId(e.placementId,v.TrackableFrameState.WaitingForPartialResponse);t&&(e.pageViewId&&t.setPageViewId(e.pageViewId),e.pageViewTime&&t.setPageViewTime(e.pageViewTime),e.impressionId&&t.setImpressionId(e.impressionId),e.availabilityZone&&t.setAvailabilityZone(e.availabilityZone),e.rawData&&t.setActions(e.rawData.ads))},t.prototype.setAdResponseInPlacement=function(e){var t=this.placementWithId(e.placementId,v.TrackableFrameState.WaitingForAdResponse);if(t){if(t.setPageViewId(e.pageViewId),m.ConsentManager.handleCmp(e),_.GlobalVariables.canSendPii()){e.error&&e.error!==b.AdServerError.noAd||!e.shouldFirePartnerTrackers||g.DomManager.firePartnerTrackers(t,e.gdpr,e.gdprConsent,g.DomManager.partnersToSync),e.error?(E.ErrorManager.reportError(e.error,{trackableFrame:t}),this.transition(t,v.TrackableFrameState.FailedToRender)):(t.setAdResponse(e),y.AdResponseManager.sampleAdResponse(e,t));var n=void 0;t.usingDfpMacro?(n=b.SdkInfo.dfpMacro,console.error("[Yieldmo] data-dfp-macro is no longer supported: use data-click-tracker instead. Please contact support@yieldmo.com with any questions.")):t.macroUrl&&(n=b.SdkInfo.clickTrackerMacro),n&&E.ErrorManager.reportError(n,{trackableFrame:t})}}else E.ErrorManager.reportError(b.SdkError.unexpectedPlacement,{message:e.placementId});return t},t.prototype.determineRenderType=function(e){return e.adResponse&&e.adResponse.smartLoadDistance&&e.environmentManager.availableFeatures().scrollEventQuality===l.ScrollEventQuality.Normal?w.RenderType.SmartLoad:e.adResponse&&e.adResponse.lazyLoad&&e.environmentManager.kind===l.Environment.Mraid&&(e.adResponse.formatId===p.FormatTypes.FLEXBANNER||e.adResponse.formatId===p.FormatTypes.MEDIA_NET_FLEXBANNER)?w.RenderType.MraidLazyLoad:w.RenderType.Immediate},t}(d.TrackableFrameManager);t.PlacementsManager=S},7581:()=>{"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t})},5442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Profiling=void 0;var n=function(){function e(){}return e.getData=function(){return{adreqt:this.adRequestTime,constidrspt:this.consortiumIdResponseTime,loadd:this.pageLoadDuration}},e}();t.Profiling=n},3231:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Sdk=t.SdkKind=void 0,function(e){e[e.insights=0]="insights",e[e.vastInsights=1]="vastInsights",e[e.regular=2]="regular"}(n=t.SdkKind||(t.SdkKind={}));var r=function(){function e(){}return e.setSdk=function(e){this.kind=e},e.getInstance=function(e){switch(void 0===e&&(e=window),this.kind){case n.insights:return this.getInsightsSdk(e);case n.regular:return this.getRegularSdk(e);default:return this.getRegularSdk(e)||this.getInsightsSdk(e)}},e.getRegularSdk=function(e){return void 0===e&&(e=window),e._ym&&e._ym},e.getInsightsSdk=function(e){return void 0===e&&(e=window),e._ymInsights&&e._ymInsights},e.getAnyTrackableFrame=function(){var e=this.getInstance();return e&&e.getAnyTrackableFrame()},e.getAvailableFeatures=function(){var e=this.getInstance();return e&&e.availableEnvironmentFeatures&&e.availableEnvironmentFeatures()},e.getEnvironmentManager=function(){var e=this.getInstance();return e&&e.environmentManager},e.getVersion=function(){var e=this.getInstance();return e&&e.version},e.trackError=function(e,t,n){this.getInstance(window)&&this.getInstance(window).trackError(t,void 0,e,n)},e}();t.Sdk=r},8533:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SdkBase=void 0;var r=n(7909),i=n(8235),o=n(2090),a=n(5888),s=n(9222),l=n(5442),c=n(3005),u=n(974),d=function(){function e(){var e=this;this.FormatLog=c.FormatLog,this.version=a.GlobalVariables.getVersion(),this.destroyed=!1,this.trackEv=o.FormatEventReporter.report,this.constructorTimestamp=u.Time.now(),window.addEventListener("load",(function(){e.onLoad()}),!1)}return e.prototype.onLoad=function(){var t=this;l.Profiling.pageLoadDuration=u.Time.now()-e.startTime,this.searchTimeout||this.destroyed||!this.hasLookedForTrackableFrames||(c.Log.info("searching for new trackable elements on load"),this.findAndRenderElements());var n=this.trackableFrameManager.anyTrackableFrame();if(n&&n.domElement){var o=n.domElement.ownerDocument.defaultView,a=r.EnvironmentDispatch.getEnvironment(o),d=r.EnvironmentDispatch.getEnvironmentManager(o);n.environmentManager&&n.environmentManager.kind!==a&&(i.ErrorManager.reportError(s.SdkError.environmentChanged,{trackableFrame:n,message:""+a}),this.environmentManager=d,this.trackableFrameManager.forEachTrackableFrame((function(e){t.reloadEnvironmentManager(e)})))}},e.prototype.setLogLevel=function(e){c.Log.setLevel(e)},e.prototype.environmentTopWindow=function(){return this.environmentManager?this.environmentManager.topWindow():null},e}();t.SdkBase=d},221:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AdChoices=void 0;var n=function(){function e(e){this.defaultOptoutUrl="https://privacy.yieldmo.com/",this.omitAdChoices=!e.isRetargeted||e.domElement.getElementsByClassName("ym-ad-choices").length>0,this.options=e}return e.prototype.appendIfNeeded=function(e,t){if(!this.omitAdChoices&&!this.formatAdChoicesAlreadyExists(e)){var n,r,i,o="display: block !important; background: transparent !important; height: 16px !important;";this.options.allowableHeight&&"50"===this.options.allowableHeight||this.options.floatingAdChoices?(n="0 0px 0 2px",r="0",i="16",o+="width 16px !important; position: absolute; top: 0; right: 0;"):(n="0 4px 0 6px",r="0 0 6px 0",i="100%");var a=document.createElement("iframe");a.className="ym-ad-choices",a.frameBorder="0",a.scrolling="no",a.width=i,a.height="16";var s=a.getAttribute("style");a.setAttribute("style",(s||"")+" "+o);var l,c=this.options.customOptoutUrl||this.defaultOptoutUrl;l=t?"onclick=\"window.top.open('"+c+"', '_blank')\"":'target="_blank" href="'+c+'"';var u="<style>body{margin:0; padding:0; background:transparent;}"+(this.options.adChoicesCss||"")+'</style>\n      <a style="left:0px; position:relative; text-decoration:none; color:#000; padding: '+n+"; background:rgb(230, 230, 230);\n      height:16px; width:14px; display:block; border-radius: "+r+';" '+l+'>\n        <img style="border:0; width:12px; height:12px; position:relative;" src="https://static.yieldmo.com/images/ad-choices.svg" />\n      </a>';a.srcdoc=u,this.options.domElement.appendChild(a)}},e.prototype.formatAdChoicesAlreadyExists=function(e){return!!(e&&e.contentDocument&&e.contentDocument.body&&e.contentDocument.body.getElementsByClassName("ym-ad-choices").length>0)},e.prototype.getAdChoicesUrl=function(){return this.options.customOptoutUrl||this.defaultOptoutUrl},e}();t.AdChoices=n},8251:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContentManager=t.videoFormatsId=t.FormatTypes=void 0;var r,i=n(2702),o=n(9222),a=n(3038),s=n(61),l=n(9222),c=n(8235),u=n(1284),d=n(3005),h=n(9334),f=n(9056);!function(e){e[e.POSTCARD=10]="POSTCARD",e[e.WINDOW_PLAY=34]="WINDOW_PLAY",e[e.FLEXCARD=36]="FLEXCARD",e[e.FLEXPLAY=40]="FLEXPLAY",e[e.MINICARD=46]="MINICARD",e[e.VPAID=48]="VPAID",e[e.FLEXBANNER=49]="FLEXBANNER",e[e.MEDIA_NET_FLEXBANNER=50]="MEDIA_NET_FLEXBANNER",e[e.NATIVE_728_BY_90=52]="NATIVE_728_BY_90",e[e.WEB_STORY=53]="WEB_STORY",e[e.STUB_VIDEO=56]="STUB_VIDEO",e[e.STUB_250=58]="STUB_250",e[e.PINHOLE=60]="PINHOLE",e[e.WEBSTORY_300_250_VIDEO=61]="WEBSTORY_300_250_VIDEO",e[e.CINECLIP=62]="CINECLIP",e[e.THIRD_PARTY_FORMAT=90]="THIRD_PARTY_FORMAT",e[e.CELTRA_THIRD_PARTY_FORMAT=91]="CELTRA_THIRD_PARTY_FORMAT",e[e.DCM_THIRD_PARTY_FORMAT=92]="DCM_THIRD_PARTY_FORMAT",e[e.AMBER=100]="AMBER"}(r=t.FormatTypes||(t.FormatTypes={})),t.videoFormatsId=[r.WINDOW_PLAY,r.FLEXPLAY,r.VPAID,r.WEB_STORY,r.STUB_VIDEO,r.STUB_250,r.WEBSTORY_300_250_VIDEO,r.CINECLIP,r.PINHOLE];var p=new Set([r.FLEXCARD,r.POSTCARD,r.MINICARD,r.NATIVE_728_BY_90]),m=function(){function e(){}return e.getPlacementContent=function(e){var t=this;if(!e.adResponse)return i.Promise.reject("no format Id");var n=e.adResponse.formatId,s=e.adResponse.rawData;return n===r.THIRD_PARTY_FORMAT||n===r.DCM_THIRD_PARTY_FORMAT?e.thirdPartyConfig&&e.thirdPartyConfig.thirdPartyTag?i.Promise.resolve(e.thirdPartyConfig.thirdPartyTag):i.Promise.reject(o.SdkError.thirdPartyContentError):n===r.CELTRA_THIRD_PARTY_FORMAT||n>r.DCM_THIRD_PARTY_FORMAT&&n<r.AMBER?i.Promise.reject(o.SdkError.unsupportedTemplate):n>=r.AMBER?a.TemplateManager.getTemplate(e).then((function(t){return!!e.templateOverride&&c.ErrorManager.reportError(l.SdkInfo.abTest,{immediate:!0,message:e.adResponse.rawData.ab_test,trackableFrame:e}),t})):a.TemplateManager.getTemplate(e).then((function(r){var i=!!e.templateOverride;return i&&c.ErrorManager.reportError(l.SdkInfo.abTest,{immediate:!0,message:e.adResponse.rawData.ab_test,trackableFrame:e}),t.compileFromTemplate(r,s,n,i)}))},e.compileFromTemplate=function(e,t,n,r){var i=s.YieldmoHandlebars.runtime;if(r||void 0===i.templates[n]){window.YMHandlebars=i;var o=document.createElement("script");o.innerText=e,document.head?document.head.appendChild(o):document.body.appendChild(o)}return r?i.templates.tpl_override(t):i.templates[n](t)},e.fetchAssets=function(e,t){var n=this,r=e.adResponse,o=r.rawData&&r.rawData.ads,a=r.formatId;if(!o)throw new Error("No ads array");if(!p.has(a))throw new Error("Unsupported format for fetching assets from url: "+a);for(var s,l=0,c=function(r,a){a=a.then((function(a){new i.Promise((function(i,a){var s=o[r].cr_id,c=e.creatives[s];c&&c.getAssetsUrl()?u.Network.performXhrUsingPromise({method:"get",url:c.getAssetsUrl()}).then((function(e){var a;a="string"==typeof e?JSON.parse(e):e,n.setMissingAssets(o[r],a,c),d.Log.debug("Successfully fetched assets from URL"),++l===o.length&&t(),i()})).catch((function(e){return d.Log.error(e),a(e)})):(d.Log.debug("There was no assets url for creative "+o[r].cr_id),l++,i())}))})),s=a},h=0,f=i.Promise.resolve();h<o.length;h++)c(h,f),f=s},e.setMissingAssets=function(e,t,n){var r,i=t.link&&t.link.url;i&&(i="u="+encodeURIComponent(i),e=f.AdResponses.createTrackerUrls(e,"",i));for(var o=0,a=t.assets;o<a.length;o++){var s=a[o];if(s.img&&s.img.url)switch(s.img.type){case h.OpenRtbImageType.icon:e.logo=s.img.url;break;case h.OpenRtbImageType.main:e.icon=s.img.url;break;default:throw new Error("This image type is not supported by Yieldmo ads.")}else if(s.title&&s.title.text)e.name=s.title.text;else if(s.data&&s.data.value)switch(s.data.type){case h.OpenRtbDataType.desc:e.description=s.data.value;break;case h.OpenRtbDataType.ctaText:e.cta_button_copy=s.data.value;break;default:throw new Error("This data type is not supported by Yieldmo ads.")}}(null===(r=t.eventtrackers)||void 0===r?void 0:r.length)&&n.setEventTrackers(t.eventtrackers)},e}();t.ContentManager=m},3038:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateManager=void 0;var r=n(2702),i=n(7722),o=n(9222),a=n(1284),s=n(3005),l=n(8235),c=n(8251),u=function(){function e(){}return e.getTemplate=function(e){var t=this;if(!e.adResponse)return r.Promise.reject("no format Id");var n=e.adResponse.formatId,u=e.adResponse.abTestTemplateUrl;if(n>=c.FormatTypes.THIRD_PARTY_FORMAT&&n<c.FormatTypes.AMBER)return r.Promise.reject(o.SdkError.unsupportedTemplate);if(e.templateOverride&&!i.Browser.isDesktop)return s.Log.info("Using an overridden template from the ad response"),r.Promise.resolve(e.templateOverride);if(this.templates[n]&&!u)return s.Log.info("cached template: "+n),r.Promise.resolve(this.templates[n]);if(u&&!i.Browser.isDesktop)return l.ErrorManager.reportError(o.SdkInfo.abTestTemplate,{immediate:!0,message:"a/b test template url: "+u,trackableFrame:e}),a.Network.fetchAbTestTemplate(n,u).then((function(e){var t="control"===u?u:"ab test";return s.Log.info("return "+t+" template: "+n),e}));var d=this.pendingRequests[n];if(d)return s.Log.info("pending request: "+n),d;var h=a.Network.fetchTemplate(n).then((function(e){return s.Log.info("return template: "+n),t.templates[n]=e,t.pendingRequests[n]=null,e}));return this.pendingRequests[n]=h,h},e.templates={},e.pendingRequests={},e}();t.TemplateManager=u},4720:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThirdPartyConfig=void 0;t.ThirdPartyConfig=function(e,t,n){this.frameHeight=null,this.frameWidth=null,this.thirdPartyTag=e,this.frameHeight=t,this.frameWidth=n}},61:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.YieldmoHandlebars=void 0;var r=n(202),i=function(){function e(){}return e.renderTPI=function(e,t,n){return""},e.comscorePixel=function(){return""},e.pixel=function(e){return""},e.isEqual=function(e,t,n){return e===t?n.fn(this):n.inverse(this)},e.getProperty=function(){if(arguments&&arguments.length){var e=arguments[0];if(arguments.length<3)return e;for(var t=arguments[1],n=1;n<arguments.length;n++){if(!t)return e;"string"==typeof arguments[n]&&(t=t[arguments[n]])}return t||e}},e.registerHelpersIfNeeded=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];e.helpers[i]||e.registerHelper(i,t[i])}},e.helpers={comscorePixel:e.comscorePixel,getProperty:e.getProperty,isEqual:e.isEqual,pixel:e.pixel,renderTPI:e.renderTPI},e.runtime=(e.registerHelpersIfNeeded(r,e.helpers),r.templates={},r),e}();t.YieldmoHandlebars=i},2738:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;var n=function(){function e(){}return e.any=function(e,t){if(!e||!t)return!1;for(var n=0,r=e;n<r.length;n++)if(t(r[n]))return!0;return!1},e.first=function(e,t){if(e)for(var n=0,r=e;n<r.length;n++){var i=r[n];if(!t||t&&t(i))return i}},e.nodeListToArray=function(e){return e?Array.prototype.slice.call(e):[]},e}();t.Collection=n},3005:function(e,t){var n,r,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.FormatLog=t.Log=t.LogLevel=void 0,function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Info=3]="Info",e[e.Debug=4]="Debug"}(r=t.LogLevel||(t.LogLevel={}));var o=function(){function e(){}return e.functionForLevel=function(e){switch(e){case r.Debug:return console.debug;case r.Info:return console.info;case r.Warn:return console.warn;case r.Error:return console.error;default:return Function.prototype}},e.logWithLevel=function(e,t){if(e<=this.logLevel){var n=this.functionForLevel(e);n("%c"+this.yieldmoPrefix,"background:#FFDB00; font-size:13px;");for(var r=0,i=t;r<i.length;r++)n(i[r])}},e.getLogLevel=function(){return this.logLevel},e.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logWithLevel(r.Warn,e)},e.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logWithLevel(r.Error,e)},e.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logWithLevel(r.Info,e)},e.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logWithLevel(r.Debug,e)},e.setLevel=function(e){this.error("log level set to "+r[e]),r[e]||console.warn("Invalid logLevel - Will use logLevel in cookies, or if no cookies, the default logLevel."),this.logLevel=e;var t=new Date,n=((new Date).getMonth()+1)%12+1;t.setMonth(n)},e.yieldmoPrefix="--- Yieldmo ---",e.logLevel=r.None,e}();t.Log=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.yieldmoPrefix="--- Yieldmo Format ---",t}(o);t.FormatLog=a},723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUtils=void 0;var n=function(){function e(){}return e.clean=function(e){if(e)for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];"object"==typeof n&&this.clean(e[t]),(null==n||""===n||0===Object.keys(n).length&&"object"==typeof n)&&delete e[t]}},e}();t.ObjectUtils=n},9451:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Random=void 0;var n=function(){function e(){}return e.hexString=function(){for(var e=this.randomString()+this.randomString();e.length<20;)e+=this.randomString();return e.substring(0,20)},e.randomString=function(){if(window.crypto&&window.crypto.getRandomValues){var e=new Uint32Array(4);window.crypto.getRandomValues(e);var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=e[n].toString(16));return t}return Math.floor(1099511627776*Math.random()).toString(16)},e}();t.Random=n},974:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkBase=t.KinesisManager=t.Credentials=t.Time=void 0;var r=n(1125);t.Time=r.Utils.Time,t.Credentials=r.Utils.Credentials,t.KinesisManager=r.Utils.KinesisManager,t.NetworkBase=r.Utils.NetworkBase},5537:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Yieldmo=void 0;var o=n(8556),a=n(7722),s=n(1987),l=n(3930),c=n(8235),u=n(2790),d=n(5888),h=n(6787),f=n(502),p=n(9056),m=n(1474),g=n(9222),v=n(1284),y=n(3615),b=n(8533),w=n(3005),_=n(974),E=n(1329),T=function(e){function t(){var t=e.call(this)||this;return t.lastRequestPageViewTime=_.Time.now(),t.trackableFrameManager=new y.PlacementsManager,t.placementsManager=t.trackableFrameManager,t.keepLookingDelay=200,t.destroyed=!1,t.chkPls=t.findAndRenderElements,t.findAndRenderNewPlacements=t.findAndRenderElements,t.requestPageView=function(e){var n=_.Time.now();c.ErrorManager.reportError(g.SdkInfo.requestPageView),t.lastRequestPageViewTime&&_.Time.now()-t.lastRequestPageViewTime<15e3?w.Log.error("New page view requested too frequently. You can request pageview only once every 15 seconds."):e&&(t.lastRequestPageViewTime=n,t.clearPlacements(e),s.DomManager.removeElementsWithClass("ym_script"),t.findAndRenderNewPlacements(!0))},t.addClickTrackers=function(e,n){var r=t.placementsManager.placementWithId(e);r&&r.addClickTrackers(n)},t.attachFormatEventListener=function(e,n,r){return(e&&e!==window.top&&e.YM_Placement&&e.YM_Placement.environmentManager?e.YM_Placement.environmentManager:t.environmentManager).on(n,r)},t.attachClickEventHandlers=function(e){t.environmentManager.attachClickEventHandlers(e)},t.detachFormatEventListener=function(e,n,r){(e&&e.YM_Placement&&e.YM_Placement.environmentManager?e.YM_Placement.environmentManager:t.environmentManager).off(n,r)},t.destroyYieldmo=t.destroy,t.findAndRenderNewPlacements=t.findAndRenderNewPlacements.bind(t),w.Log.debug("loaded SDK"),t}return i(t,e),t.prototype.findAndRenderElements=function(e){void 0===e&&(e=!1),this.hasLookedForTrackableFrames=!0,clearTimeout(this.searchTimeout),clearTimeout(this.keepLookingTimeout),this.searchTimeout=null;var t=this.placementsManager.findNewPlacements(),n=Object.keys(t);n.length&&!this.destroyed?(this.processAdsOnPage(t,e),w.Log.info("Found "+n.length+" new Yieldmo tags"),n.length>=this.placementsManager.maxPlacementsToFind&&(w.Log.info("Found max placements allowed in a single request will check for more after a delay"),c.ErrorManager.reportError(g.SdkInfo.moreThan5)),this.placementsManager.areMorePlacementsAvailable&&(this.searchTimeout=setTimeout(this.findAndRenderNewPlacements,100))):this.placementsManager.anyPlacement()?w.Log.info("No additional Yieldmo tags found"):(c.ErrorManager.reportError(g.SdkError.noPlacementsOnPage,{samplePercent:.1,message:this.environmentManager.getPageUrl()||""}),this.keepLookingDelay<=3200&&(this.keepLookingTimeout=setTimeout(this.findAndRenderNewPlacements.bind(this),this.keepLookingDelay),this.keepLookingDelay*=2))},t.prototype.processAdsOnPage=function(e,t){var n=this,r=Object.keys(e).map((function(t){return e[t].getIdAndSubId()}));this.environmentManager||(this.environmentManager=e[r[0]].environmentManager);var i=window.__ymAds,o=this.environmentManager.topWindow().__ymAds;if(o){var l="";try{l=o.data[0].placement_impression_id}catch(e){}c.ErrorManager.reportError(g.SdkInfo.topWindowAdResponse,{message:l})}if(i){var m=i,y=p.AdResponses.createArray(m);return this.placementsManager.processAdResponse(y,e,this.constructorTimestamp).then((function(){var e=n.placementsManager.placementWithId(y[0].placementId),t=e&&e.pageViewId();c.ErrorManager.reportError(g.SdkInfo.localAdResponse,{extraData:{pageViewId:t}}),m.loader&&c.ErrorManager.reportError(g.SdkInfo.loader,{message:m.loader,extraData:{pageViewId:t}})}))}var b=this.placementsManager.licensedFormatIds.length,_=b>0?this.placementsManager.licensedFormatIds[b-1]:void 0,T=void 0,k=void 0,S=void 0;if(_){var I=this.placementsManager.placementWithLfId(_);I&&(T=I.getPartnerId(),k=I.getPartnerName(),S=I.externalMacros)}var M=this.placementsManager.auctionId,R=this.placementsManager.genericDataTag,P=this.placementsManager.publisherId,A=this.placementsManager.anyPlacement(),O=void 0,x=void 0,C=!this.environmentManager.availableFeatures().resize||!(a.Browser.isIOS()||a.Browser.isAndroid());if(A){var F=s.DomManager.getForceWidth(A.domElement),D=s.DomManager.getForceHeight(A.domElement);F&&D?(O=F,x=D):1===Object.keys(e).length&&C&&(O=this.environmentManager.placementDimensions(A.domElement).width,x=this.environmentManager.placementDimensions(A.domElement).height)}var L=E.AtsManager.getAtsEnvelope();L&&c.ErrorManager.reportError(g.SdkInfo.authenticatedTrafficSolutionEnvelopePresent);var N=new h.AdRequest(r,this.environmentManager,this.constructorTimestamp,t,_,{auctionId:M,genericDataTag:R,partnerId:T,partnerName:k,publisherId:P,placementHeight:x,placementWidth:O,authenticatedTrafficSolutionEnvelope:L,macros:S});if(d.GlobalVariables.randomNumber<.1){var V={trackableFrame:this.placementsManager.anyPlacement(),message:N.getSanitizedAdRequestForSampling()};c.ErrorManager.reportError(g.SdkInfo.sampledAdRequest,V)}return v.Network.requestPlacements(N).then((function(e){return f.AdResponseManager.setTimeAndConvertFromRaw(e)})).then((function(t){n.placementsManager.processAdResponse(t,e,n.constructorTimestamp)})).catch((function(t){w.Log.error("Error: "+JSON.stringify(t));for(var r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];c.ErrorManager.reportError(g.SdkError.renderPhaseError,{message:"Unknown error occurred during the render phase: "+t.stack,trackableFrame:e[o]}),n.placementsManager.transition(e[o],u.TrackableFrameState.FailedToRender)}}))},t.prototype.setLogLevel=function(t){e.prototype.setLogLevel.call(this,t),w.FormatLog.setLevel(t)},t.prototype.implode=function(){var e=this;this.destroyed=!0,this.environmentManager.allEventsOff(),this.placementsManager.forEachPlacement((function(t){t.state!==u.TrackableFrameState.FailedToRender&&e.placementsManager.transition(t,u.TrackableFrameState.FailedToRender)})),delete window._ym},t.prototype.attachVisibilityEvent=function(e,t,n,r,i){var a={kind:o.ThresholdKind.RisingTo,value:n};return r||(a.kind=o.ThresholdKind.FallingTo),o.ViewabilityManager.onPlacementViewabilityThreshold(a,e.YM_Placement,t,i)},t.prototype.detachVisibilityEvent=function(e){return this.environmentManager.off("scroll",e)},t.prototype.doesSupportEvent=function(e){return this.environmentManager.doesSupportEvent(e)},t.prototype.availableEnvironmentFeatures=function(){return this.environmentManager.availableFeatures()},t.prototype.getBoundingClientRect=function(e){return e?this.environmentManager.getBoundingClientRect(e):{bottom:0,height:0,left:0,right:0,top:0,width:0}},t.prototype.getClientGeolocation=function(e,t){this.environmentManager.handleLocationRequest(e,t)},t.prototype.getCurrentFormatPosition=function(e){return this.environmentManager.getDetailedPositioningInformation(e)},t.prototype.isAMP=function(){return this.environmentManager.kind===l.Environment.Amp||this.environmentManager.kind===l.Environment.DfpInAmp},t.prototype.isDFP=function(){return this.environmentManager.kind===l.Environment.Dfp},t.prototype.resetDimensions=function(e){return this.environmentManager.resetDimensions(e)},t.prototype.requestFullScreenMode=function(e){this.environmentManager.setAllowFullScreenAttribute(e)},t.prototype.topElem=function(){return s.DomManager.topElement(this.environmentManager)},t.prototype.isIOS=function(){return a.Browser.isIOS()},t.prototype.isAndroid=function(){return a.Browser.isAndroid()},t.prototype.clearPlacement=function(e){var t=e.YM_Placement;t.clear(),this.placementsManager.transition(t,u.TrackableFrameState.Cleared)},t.prototype.getAnyTrackableFrame=function(){return this.placementsManager.anyTrackableFrame()},t.prototype.fireClickTrackers=function(e,t,n){var r=n&&n.YM_Placement;m.AsyncClickTrackingManager.fireAllClickTrackers(e,t,r)},t.prototype.fireClickTrackersAndOpenUrl=function(e,t,n){var r=n&&n.YM_Placement;m.AsyncClickTrackingManager.fireAllClickTrackers(void 0,void 0,r),this.environmentManager.openOutboundUrl(e,t,r)},t.prototype.destroy=function(){this.implode(),c.ErrorManager.reportError(g.SdkInfo.destroyYieldmo)},t.prototype.environmentTopWindow=function(){return this.environmentManager?this.environmentManager.topWindow():null},t.prototype.trackError=function(e,t,n,r,i){void 0===n&&(n=g.FormatError.runtimeError),r=r||t&&t.YM_Placement,c.ErrorManager.reportError(n,{trackableFrame:r,message:e.slice(0,1e3),samplePercent:i})},t.prototype.trackReports=function(e,t){c.ErrorManager.sendReports(e,t.YM_Placement)},t.prototype.reloadEnvironmentManager=function(e){this.placementsManager.reloadEnvironmentManager(e,this.environmentManager)},t.prototype.clearPlacements=function(e){this.placementsManager.clearPlacements(e)},t}(b.SdkBase);t.Yieldmo=T},1073:e=>{e.exports=function(e,t){var n,r,i,o,a,s,l,c;for(n=3&e.length,r=e.length-n,i=t,a=3432918353,s=461845907,c=0;c<r;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,i=27492+(65535&(o=5*(65535&(i=(i^=l=(65535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n(3560)})();