// T: 19:31:32 14-6 / 09:21:20 7-6 // I: 725 / 3.3.13 // U: spotGroup=COLLIDER / /spot/sp_Qf5Kf2mr !function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){r(1),t.exports=r(7)},function(t,e,r){"use strict";function n(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,r=Object(this),n=r.length>>>0,i=arguments[1],o=0;o=0&&s>=0&&{top:r,bottom:n,left:i,right:o,width:a,height:s}}function c(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(t,e){for(var r=e;r;){if(r==t)return!0;r=f(r)}return!1}function f(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e}if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)return void("isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}));var p=[];n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(t){var e=this._observationTargets.some(function(e){return e.element==t});if(!e){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},n.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},n.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,r){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==r[e-1]})},n.prototype._parseRootMargin=function(t){var e=t||"0px",r=e.split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return r[1]=r[1]||r[0],r[2]=r[2]||r[0],r[3]=r[3]||r[1],r},n.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(a(t,"resize",this._checkForIntersections,!0),a(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():l();this._observationTargets.forEach(function(n){var o=n.element,a=c(o),s=this._rootContainsTarget(o),u=n.entry,l=t&&s&&this._computeTargetAndRootIntersection(o,e),d=n.entry=new r({time:i(),target:o,boundingClientRect:a,rootBounds:e,intersectionRect:l});u?t&&s?this._hasCrossedThreshold(u,d)&&this._queuedEntries.push(d):u&&u.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(r,n){if("none"!=t.getComputedStyle(r).display){for(var i=c(r),o=i,a=f(r),s=!1;!s;){var l=null,d=1==a.nodeType?t.getComputedStyle(a):{};if("none"==d.display)return;if(a==this.root||a==e?(s=!0,l=n):a!=e.body&&a!=e.documentElement&&"visible"!=d.overflow&&(l=c(a)),l&&(o=u(l,o),!o))break;a=f(a)}return o}},n.prototype._getRootRect=function(){var t;if(this.root)t=c(this.root);else{var r=e.documentElement,n=e.body;t={top:0,left:0,right:r.clientWidth||n.clientWidth,width:r.clientWidth||n.clientWidth,bottom:r.clientHeight||n.clientHeight,height:r.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(t)},n.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,r){return"px"==e.unit?e.value:e.value*(r%2?t.width:t.height)/100}),r={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},n.prototype._hasCrossedThreshold=function(t,e){var r=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(r!==n)for(var i=0;i1)for(var r=1;r0)for(var O=0;O=0,o=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(10),i)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function r(t,e,r,n){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new p(n||[]);return a._invoke=c(t,r,s),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function u(t){function e(r,i,o,a){var s=n(t[r],t,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&y.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(c).then(function(t){u.value=t,o(u)},a)}a(s.arg)}function r(t,r){function n(){return new Promise(function(n,i){e(t,r,n,i)})}return i=i?i.then(n,n):n()}var i;this._invoke=r}function c(t,e,r){var i=T;return function(o,a){if(i===S)throw new Error("Generator is already running");if(i===I){if("throw"===o)throw a;return v()}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=l(s,r);if(u){if(u===x)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===T)throw i=I,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=S;var c=n(t,e,r);if("normal"===c.type){if(i=r.done?I:O,c.arg===x)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=I,r.method="throw",r.arg=c.arg)}}}function l(t,e){var r=t.iterator[e.method];if(r===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,l(t,e),"throw"===e.method))return x;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var i=n(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,x;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,x):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,x)}function d(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function f(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(d,this),this.reset(!0)}function h(t){if(t){var e=t[b];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),f(r),x}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;f(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:h(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=m),x}}}(function(){return this}()||Function("return this")())},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(12),o=n(i);e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,r){function n(i,a){try{var s=e[i](a),u=s.value}catch(t){return void r(t)}return s.done?void t(u):o.default.resolve(u).then(function(t){n("next",t)},function(t){n("throw",t)})}return n("next")})}}},function(t,e,r){t.exports={default:r(13),__esModule:!0}},function(t,e,r){r(14),r(15),r(59),r(63),r(81),r(82),t.exports=r(23).Promise},function(t,e){},function(t,e,r){"use strict";var n=r(16)(!0);r(19)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){var n=r(17),i=r(18);t.exports=function(t){return function(e,r){var o,a,s=String(i(e)),u=n(r),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){"use strict";var n=r(20),i=r(21),o=r(37),a=r(26),s=r(38),u=r(39),c=r(55),l=r(57),d=r(56)("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",m=function(){return this};t.exports=function(t,e,r,g,y,_,b){u(r,e,g);var w,E,A,k=function(t){if(!f&&t in I)return I[t];switch(t){case h:return function(){return new r(this,t)};case v:return function(){return new r(this,t)}}return function(){return new r(this,t)}},T=e+" Iterator",O=y==v,S=!1,I=t.prototype,x=I[d]||I[p]||y&&I[y],P=x||k(y),C=y?O?k("entries"):P:void 0,M="Array"==e?I.entries||x:x;if(M&&(A=l(M.call(new t)),A!==Object.prototype&&A.next&&(c(A,T,!0),n||"function"==typeof A[d]||a(A,d,m))),O&&x&&x.name!==v&&(S=!0,P=function(){return x.call(this)}),n&&!b||!f&&!S&&I[d]||a(I,d,P),s[e]=P,s[T]=m,y)if(w={values:O?P:k(v),keys:_?P:k(h),entries:C},b)for(E in w)E in I||o(I,E,w[E]);else i(i.P+i.F*(f||S),e,w);return w}},function(t,e){t.exports=!0},function(t,e,r){var n=r(22),i=r(23),o=r(24),a=r(26),s=r(36),u="prototype",c=function(t,e,r){var l,d,f,p=t&c.F,h=t&c.G,v=t&c.S,m=t&c.P,g=t&c.B,y=t&c.W,_=h?i:i[e]||(i[e]={}),b=_[u],w=h?n:v?n[e]:(n[e]||{})[u];h&&(r=e);for(l in r)d=!p&&w&&void 0!==w[l],d&&s(_,l)||(f=d?w[l]:r[l],_[l]=h&&"function"!=typeof w[l]?r[l]:g&&d?o(f,n):y&&w[l]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e[u]=t[u],e}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((_.virtual||(_.virtual={}))[l]=f,t&c.R&&b&&!b[l]&&a(b,l,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e){var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(25);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){var n=r(27),i=r(35);t.exports=r(31)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(28),i=r(30),o=r(34),a=Object.defineProperty;e.f=r(31)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(29);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){t.exports=!r(31)&&!r(32)(function(){return 7!=Object.defineProperty(r(33)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){t.exports=!r(32)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(29),i=r(22).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,r){var n=r(29);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){t.exports=r(26)},function(t,e){t.exports={}},function(t,e,r){"use strict";var n=r(40),i=r(35),o=r(55),a={};r(26)(a,r(56)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},function(t,e,r){var n=r(28),i=r(41),o=r(53),a=r(50)("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=r(33)("iframe"),n=o.length,i="<",a=">";for(e.style.display="none",r(54).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;n--;)delete c[u][o[n]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(s[u]=n(t),r=new s,s[u]=null,r[a]=t):r=c(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(27),i=r(28),o=r(42);t.exports=r(31)?Object.defineProperties:function(t,e){ i(t);for(var r,a=o(e),s=a.length,u=0;s>u;)n.f(t,r=a[u++],e[r]);return t}},function(t,e,r){var n=r(43),i=r(53);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){var n=r(36),i=r(44),o=r(47)(!1),a=r(50)("IE_PROTO");t.exports=function(t,e){var r,s=i(t),u=0,c=[];for(r in s)r!=a&&n(s,r)&&c.push(r);for(;e.length>u;)n(s,r=e[u++])&&(~o(c,r)||c.push(r));return c}},function(t,e,r){var n=r(45),i=r(18);t.exports=function(t){return n(i(t))}},function(t,e,r){var n=r(46);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(44),i=r(48),o=r(49);t.exports=function(t){return function(e,r,a){var s,u=n(e),c=i(u.length),l=o(a,c);if(t&&r!=r){for(;c>l;)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}}},function(t,e,r){var n=r(17),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){var n=r(17),i=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},function(t,e,r){var n=r(51)("keys"),i=r(52);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e,r){var n=r(23),i=r(22),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(20)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(22).document;t.exports=n&&n.documentElement},function(t,e,r){var n=r(27).f,i=r(36),o=r(56)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){var n=r(51)("wks"),i=r(52),o=r(22).Symbol,a="function"==typeof o,s=t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=n},function(t,e,r){var n=r(36),i=r(58),o=r(50)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){var n=r(18);t.exports=function(t){return Object(n(t))}},function(t,e,r){r(60);for(var n=r(22),i=r(26),o=r(38),a=r(56)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,r):"values"==e?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){"use strict";var n,i,o,a,s=r(20),u=r(22),c=r(24),l=r(64),d=r(21),f=r(29),p=r(25),h=r(65),v=r(66),m=r(70),g=r(71).set,y=r(73)(),_=r(74),b=r(75),w=r(76),E=r(77),A="Promise",k=u.TypeError,T=u.process,O=T&&T.versions,S=O&&O.v8||"",I=u[A],x="process"==l(T),P=function(){},C=i=_.f,M=!!function(){try{var t=I.resolve(1),e=(t.constructor={})[r(56)("species")]=function(t){t(P,P)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==S.indexOf("6.6")&&w.indexOf("Chrome/66")===-1}catch(t){}}(),R=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var r=t._c;y(function(){for(var n=t._v,i=1==t._s,o=0,a=function(e){var r,o,a,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(i||(2==t._h&&N(t),t._h=1),s===!0?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===e.promise?c(k("Promise-chain cycle")):(o=R(r))?o.call(r,u,c):u(r)):c(n)}catch(t){l&&!a&&l.exit(),c(t)}};r.length>o;)a(r[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)})}},D=function(t){g.call(u,function(){var e,r,n,i=t._v,o=j(t);if(o&&(e=b(function(){x?T.emit("unhandledRejection",i,t):(r=u.onunhandledrejection)?r({promise:t,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)}),t._h=x||j(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},j=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){g.call(u,function(){var e;x?T.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},F=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},V=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw k("Promise can't be resolved itself");(e=R(t))?y(function(){var n={_w:r,_d:!1};try{e.call(t,c(V,n,1),c(F,n,1))}catch(t){F.call(n,t)}}):(r._v=t,r._s=1,L(r,!1))}catch(t){F.call({_w:r,_d:!1},t)}}};M||(I=function(t){h(this,I,A,"_h"),p(t),n.call(this);try{t(c(V,this,1),c(F,this,1))}catch(t){F.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(78)(I.prototype,{then:function(t,e){var r=C(m(this,I));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=x?T.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&L(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=c(V,t,1),this.reject=c(F,t,1)},_.f=C=function(t){return t===I||t===a?new o(t):i(t)}),d(d.G+d.W+d.F*!M,{Promise:I}),r(55)(I,A),r(79)(A),a=r(23)[A],d(d.S+d.F*!M,A,{reject:function(t){var e=C(this),r=e.reject;return r(t),e.promise}}),d(d.S+d.F*(s||!M),A,{resolve:function(t){return E(s&&this===a?I:this,t)}}),d(d.S+d.F*!(M&&r(80)(function(t){I.all(t).catch(P)})),A,{all:function(t){var e=this,r=C(e),n=r.resolve,i=r.reject,o=b(function(){var r=[],o=0,a=1;v(t,!1,function(t){var s=o++,u=!1;r.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,r[s]=t,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=C(e),n=r.reject,i=b(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(t,e,r){var n=r(46),i=r(56)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),i))?r:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e,r){var n=r(24),i=r(67),o=r(68),a=r(28),s=r(48),u=r(69),c={},l={},e=t.exports=function(t,e,r,d,f){var p,h,v,m,g=f?function(){return t}:u(t),y=n(r,d,e?2:1),_=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(p=s(t.length);p>_;_++)if(m=e?y(a(h=t[_])[0],h[1]):y(t[_]),m===c||m===l)return m}else for(v=g.call(t);!(h=v.next()).done;)if(m=i(v,y,h.value,e),m===c||m===l)return m};e.BREAK=c,e.RETURN=l},function(t,e,r){var n=r(28);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){var n=r(38),i=r(56)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},function(t,e,r){var n=r(64),i=r(56)("iterator"),o=r(38);t.exports=r(23).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e,r){var n=r(28),i=r(25),o=r(56)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[o])?e:i(r)}},function(t,e,r){var n,i,o,a=r(24),s=r(72),u=r(54),c=r(33),l=r(22),d=l.process,f=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,m=0,g={},y="onreadystatechange",_=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){_.call(t.data)};f&&p||(f=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++m]=function(){s("function"==typeof t?t:Function(t),e)},n(m),m},p=function(t){delete g[t]},"process"==r(46)(d)?n=function(t){d.nextTick(a(_,t,1))}:v&&v.now?n=function(t){v.now(a(_,t,1))}:h?(i=new h,o=i.port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):n=y in c("script")?function(t){u.appendChild(c("script"))[y]=function(){u.removeChild(this),_.call(t)}}:function(t){setTimeout(a(_,t,1),0)}),t.exports={set:f,clear:p}},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(22),i=r(71).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(46)(a);t.exports=function(){var t,e,r,c=function(){var n,i;for(u&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(c)}}else r=function(){i.call(n,c)};else{var d=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),r=function(){f.data=d=!d}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},function(t,e,r){"use strict";function n(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=i(e),this.reject=i(r)}var i=r(25);t.exports.f=function(t){return new n(t)}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n=r(22),i=n.navigator;t.exports=i&&i.userAgent||""},function(t,e,r){var n=r(28),i=r(29),o=r(74);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t),a=r.resolve;return a(e),r.promise}},function(t,e,r){var n=r(26);t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},function(t,e,r){"use strict";var n=r(22),i=r(23),o=r(27),a=r(31),s=r(56)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(56)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},function(t,e,r){"use strict";var n=r(21),i=r(23),o=r(22),a=r(70),s=r(77);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return s(e,t()).then(function(){return r})}:t,r?function(r){return s(e,t()).then(function(){throw r})}:t)}})},function(t,e,r){"use strict";var n=r(21),i=r(74),o=r(75);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(84),o=n(i);e.default=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e1?arguments[1]:void 0,m=void 0!==v,g=0,y=l(f);if(m&&(v=n(v,h>2?arguments[2]:void 0,2)),void 0==y||p==Array&&s(y))for(e=u(f.length),r=new p(e);e>g;g++)c(r,g,m?v(f[g],g):f[g]);else for(d=y.call(f),r=new p;!(i=d.next()).done;g++)c(r,g,m?a(d,v,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,e,r){"use strict";var n=r(27),i=r(35);t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){return t.split("?")[0].split("#")[0]}function o(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Object.keys(t).reduce(function(e,r){return[].concat((0,y.default)(e),[r+"="+encodeURIComponent(t[r])])},[]).join("&");return e&&r.length>0&&(r="?"+r),r}function a(t){var e={},r=t.indexOf("?");if(r>-1){var n=t.substring(r+1);""!==n&&n.split("&").forEach(function(t){var r=t.split("="),n=(0,m.default)(r,2),i=n[0],o=n[1];e[i]=decodeURIComponent(o)})}return e}function s(t){var e=t.indexOf("?");if(e===-1)return{};var r=t.substring(e).slice(1).split("&"),n={};return r.forEach(function(t){t=t.split("="),""!==t[0]&&(n[t[0]]=decodeURIComponent(t[1]||""))}),JSON.parse(JSON.stringify(n))}function u(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=s(t),i=!1;return n.hasOwnProperty(e)&&(i=null===r||n[e]===r),i}function c(t,e){var r=t,n={};if(r){var i=r.indexOf("?");i>-1&&(n=s(r),r=r.substring(0,i))}else r="";var a=Object.assign(n,e),u=o(a);return u.length>0&&(r+=u),r}function l(t,e){return e.reduce(function(t,e){return d(t,e)},t)}function d(t,e){var r=t,n=t.indexOf("?");if(n!==-1){var i=t.substring(0,n),o=t.substring(n+1),a=new RegExp("&"+e+"(=[^&]*)?|^"+e+"(=[^&]*)?&?");o=o.replace(a,""),r=i+(o.length>0?"?":"")+o}return r}function f(t,e){e=e.replace(/[\[\]]/g,"\\$&");var r,n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),i=n.exec(t);return r=i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}function p(t,e,r){var n=t,i=new RegExp("([?&])"+e+"=.*?(&|$)","i");if(t.match(i))n=t.replace(i,"$1"+e+"="+r+"$2");else{var o=t.indexOf("?")!==-1?"&":"?";n=t+o+e+"="+r}return n}function h(t){return l(t,["utm_source","utm_medium","utm_content","prerender","spot_im_state","spot_im_comment_id","spot_im_reply_id","spot_im_expand_reply","spot_im_highlight_immediate","spot_im_scroll_to_comments","spot_im_source","spot_im_email_settings","spotim_referrer"])}Object.defineProperty(e,"__esModule",{value:!0});var v=r(89),m=n(v),g=r(83),y=n(g);e.stripQueryStringAndHash=i,e.queryStringFromObject=o,e.objectFromQueryString=a,e.default={parseUrl:s,buildUrl:c,getKey:f,setKey:p,removeParams:l,removeSpotImParams:h,hasQueryString:u}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(90),o=n(i),a=r(93),s=n(a);e.default=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,u=(0,s.default)(t);!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&u.return&&u.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if((0,o.default)(Object(e)))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,r){t.exports={default:r(91),__esModule:!0}},function(t,e,r){r(59),r(15),t.exports=r(92)},function(t,e,r){var n=r(64),i=r(56)("iterator"),o=r(38);t.exports=r(23).isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(n(e))}},function(t,e,r){t.exports={default:r(94),__esModule:!0}},function(t,e,r){r(59),r(15),t.exports=r(95)},function(t,e,r){var n=r(28),i=r(69);t.exports=r(23).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r){k("Initializing RC"),(0,g.setElementMark)(t,"recirculation"),(0,h.initialize)({spotId:e,uiCaptureRoot:t,viewportCaptureRoot:t,clientPlatform:(0,d.resolveUserPlatform)()}),(0,h.captureEvent)({type:"loaded",engineStatus:r.allowAds()?"available":null});var n=new m.ViewportObserver;n.observe(t,{stateChangeHandler:function(e){(0,h.captureViewportEvent)(t,e.change),E.default.trigger("visibility_state_change",e)}}),(0,v.setupIntersectionObserver)(t),(0,v.observeElement)(t,function(){for(var e=arguments.length,r=Array(e),n=0;n0){var a=p.config.languageDirection,s=p.config.cursor,u=p.config.must,c=p.config.should;o(t,{languageDirection:a,cursor:s,must:u,should:c,spotGroup:r,startWithItemInView:0})}}function o(t,e){var r=(e.languageDirection,e.startWithItemInView),n=e.cursor,i=e.must,o=e.should,a=e.spotGroup,u=t.querySelector("."+p.cssSelectors.content),d=[].concat((0,c.default)(u.querySelectorAll("."+p.cssSelectors.scrollable))),v=[].concat((0,c.default)(u.querySelectorAll("."+p.cssSelectors.item))),m=u.querySelector("."+p.cssSelectors.navigateForward),y=u.querySelector("."+p.cssSelectors.navigateBack),w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};(0,b.nextPageAjax)(n,a,i,o).then(function(r){var i=r.newItems,o=r.newCursor;n=o;var a=t,s=parseInt(t.parentNode.parentNode.getAttribute("data-spotim-row")),f=[].concat((0,c.default)(a.querySelectorAll("[data-spotim-cell-index]"))),h=(0,_.getDeckItems)(d.length,i,s);h.forEach(function(t,e){t.setAttribute("data-spotim-row-index",s),t.setAttribute("data-spotim-cell-index",e+f.length);var r=t.querySelector("[data-user-image]");r&&(r.style.backgroundImage="url("+r.getAttribute("data-user-image")+")");var n=t.querySelector("[data-item-image]");n&&(n.style.backgroundImage="url("+n.getAttribute("data-item-image")+")"),a.append(t)}),0===h.length&&(0,l.addClass)(u,p.cssSelectors.reachedEnd),e({newItems:h})})};if(t.setAttribute("data-spotim-direction",p.config.languageDirection),d.length>0){if(m&&y){var k=d[0],T=new f.Interaction({onNavigateForward:function(t){var e=t.trigger,r=t.toItem;(0,h.captureEvent)({type:"navigate-forward",trigger:e,toItem:r})},onNavigateBack:function(t){var e=t.trigger,r=t.toItem;(0,h.captureEvent)({type:"navigate-back",trigger:e,toItem:r})},onReachEnd:function(){(0,l.removeClass)(u,p.cssSelectors.hasForwardItems),(0,g.removeElementMark)(u.querySelector('[data-spmark~="navigate-forward"]'),"navigate-enabled"),(0,g.setElementMark)(u.querySelector('[data-spmark~="navigate-forward"]'),"navigate-disabled")},onReachStart:function(){(0,l.removeClass)(u,p.cssSelectors.hasBackItems),(0,g.removeElementMark)(u.querySelector('[data-spmark~="navigate-back"]'),"navigate-enabled"),(0,g.setElementMark)(u.querySelector('[data-spmark~="navigate-back"]'),"navigate-disabled")},onOverflowForward:function(){(0,l.addClass)(u,p.cssSelectors.hasForwardItems),(0,g.removeElementMark)(u.querySelector('[data-spmark~="navigate-forward"]'),"navigate-disabled"),(0,g.setElementMark)(u.querySelector('[data-spmark~="navigate-forward"]'),"navigate-enabled")},onOverflowBack:function(){(0,l.addClass)(u,p.cssSelectors.hasBackItems),(0,g.removeElementMark)(u.querySelector('[data-spmark~="navigate-back"]'),"navigate-disabled"),(0,g.setElementMark)(u.querySelector('[data-spmark~="navigate-back"]'),"navigate-enabled")},onFetchStart:function(){(0,l.addClass)(u,p.cssSelectors.fetching)},onFetchComplete:function(){(0,l.removeClass)(u,p.cssSelectors.fetching)},fetchNextPage:w});T.initialize({startWithItemInView:r,container:u,scrollable:k,items:v,forwardButton:m,backButton:y,direction:p.config.languageDirection})}d.length>1&&d.slice(1).forEach(function(t,e){E.default.on("set-scroll-x-from-start",function(e){var r=(0,s.default)(e.args,2),n=r[0],i=r[1];t.scrollWidth+n>t.parentNode.getBoundingClientRect().width&&(0,f.setScrollXFromStart)(t,n,i)}),E.default.on("attempt-fetch-next-page",function(){w(t)})})}(0,A.lazyFonts)()}Object.defineProperty(e,"__esModule",{value:!0});var a=r(89),s=n(a),u=r(83),c=n(u);e.initialize=i;var l=r(97),d=r(98),f=r(134),p=r(141),h=r(151),v=r(194),m=r(195),g=r(178),y=r(112),_=r(115),b=r(201),w=r(148),E=n(w),A=r(202),k=(0,y.getDebugger)("recirculation")},function(t,e){"use strict";function r(t,e){return new RegExp(" "+e+" ").test(" "+t.className+" ")}function n(t,e){var n=Array.isArray(e)?e:e.split(" ");if(n.length)for(var i=0;i=0;)n=n.replace(" "+e+" "," ");t.className=n.replace(/^\s+|\s+$/g,"")}}function o(t,e){var n=" "+t.className.replace(/[\t\r\n]/g," ")+" ";if(r(t,e)){for(;n.indexOf(" "+e+" ")>=0;)n=n.replace(" "+e+" "," ");t.className=n.replace(/^\s+|\s+$/g,"")}else t.className+=" "+e}Object.defineProperty(e,"__esModule",{value:!0}),e.hasClass=r,e.addClass=n,e.removeClass=i,e.toggleClass=o,e.default={has:r,add:n,remove:i,toggle:o}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){var t=null,e=null;if(m.default){var r=navigator.userAgent||navigator.vendor||window.opera;t=/iPad|iPhone|iPod/.test(r)&&!window.MSStream?"iOS":"Android",e=window.matchMedia&&window.matchMedia("(min-width: 415px)").matches?"Tablet":"Phone"}else t="Desktop",e="Desktop";return"Desktop"===t?"Desktop":t+"-"+e}function o(){return/Tablet/.test(i())}function a(){return/Desktop/.test(i())}function s(){return/Phone/.test(i())}Object.defineProperty(e,"__esModule",{value:!0}),e.resolveTag=e.fetchAdsConfig=e.useAdvancedTargeting=e.getDeviceType=void 0;var u=r(83),c=n(u);e.resolveUserPlatform=i,e.isTablet=o,e.isDesktop=a,e.isPhone=s;var l=r(99),d=n(l),f=r(112),p=r(115),h=r(88),v=r(116),m=n(v),g=(0,f.getDebugger)("ads"),y=(e.getDeviceType=function(){return m.default?window.matchMedia&&window.matchMedia("(min-width: 415px)").matches?"Tablet":"Mobile":"Desktop"},e.useAdvancedTargeting=function(t,e){if(t[e].advanced_targeting)return!0;var r=t[e].campaigns.find(function(t){return t.advanced_targeting});return!!r},e.fetchAdsConfig=function(t,e,n){var i=r(133),o=d.default.api.adsConfig.clientUrl.replace("{{spotId}}",t).replace("{{platform}}",e);if(n){var a="&"+(0,h.queryStringFromObject)(n,!1);o+=a}return new Promise(function(t,e){i.ajax({url:o,responseType:"json"},function(r,n){200!==r||n.success===!1?e(n):(n="string"==typeof n?JSON.parse(n):n,t(n))})})},function(t,e,r,n){n=[].concat((0,c.default)(n)).sort(function(t,e){return t.slot.row>e.slot.row||t.slot.row===e.slot.row&&t.slot.column>e.slot.column?1:-1});var i=null,o=function(e){return e.slot.row===t},a=function(t){return"start"===e?t.slot.column<=2:"end"===e&&t.slot.column>=3};if("Android-Phone"===r||"iOS-Phone"===r?(n.length>0&&(i=n[0],g("Campaign mobile. TMS legacy slot: "+JSON.stringify(i.slot))),n.length>1&&((0,f.publicWarning)("campaign collision - mobile"),g("Campaign collision on mobile. Using only first campaign."))):n.forEach(function(r){o(r)&&a(r)&&(i?((0,f.publicWarning)("campaign collision"),g("Campaign collision. TMS campaign: "+r.name+", legacy slot: "+JSON.stringify(r.slot)+" collides with already found: "+i.name+", slot: "+JSON.stringify(i.slot))):(i=r,g("Campaign found: "+r.name+" for: row "+t+", pos "+e+". TMS legacy slot: "+JSON.stringify(r.slot))))}),!i)return!1;var s=i.creative[0];return s&&s.tags[r]?i:null});e.resolveTag=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n.isDraftModeUrl,o=void 0!==i&&i,a=n.sprcopPlayer,s=void 0===a?null:a;if(s)return(1===t.row&&"start"===t.pos||"center"===t.pos)&&(g("SPRCOP PLAYER OVERRIDE",s),s);var u=r.campaigns||r[e].campaigns,c=y(t.row,t.pos,e,u);if(!c)return null;if(c.draftModeEnabled&&!o)return null;var l=(0,p.randomInt)(1,100),d=0;l>c.creative[0].percent&&(d=1);var f=c.creative[d].tags[e],h=r.tags||r[e].tags,v=h[f];return g("resolved creative for "+t.name+", "+e+", creative index "+d+", random generated "+l+", chance "+c.creative[d].percent+"%",v),v}},function(t,e,r){(function(t){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(100),o=r(101),a=n(o),s=r(112),u=null,c=(0,s.getDebugger)("ads");c("BRANCH",void 0),c("NODE_ENV","production"),u="premaster"===t.env.CI_BRANCH||"premaster"===t.env.DRONE_BRANCH?r(113).default:r(114).default,c("ENV",u),e.default=(0,i.deepExtendObject)({},a.default,u)}).call(e,r(5))},function(t,e){"use strict";function r(){for(var t=arguments.length,e=Array(t),n=0;nc;)for(var f,p=s(arguments[c++]),h=l?n(p).concat(l(p)):n(p),v=h.length,m=0;v>m;)d.call(p,f=h[m++])&&(r[f]=p[f]);return r}:u},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(110),o=n(i),a=null;a=r(111).default,e.default=Object.assign({},o.default,a)},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={redirectUrl:"https://traffic.spot.im/v2",immediateScriptUrl:"https://recirculation.spot.im/spot-immediate/{{spotId}}"}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){try{if(null===d){if(d=c.default.getKey(window.location.href.toLowerCase(),l.toLowerCase()),d||(d=window[l]),!d)try{d=window.localStorage.getItem(l)}catch(t){}d||(d=""),d=d.split(",").map(function(t){return t.toLowerCase()})}return d}catch(t){return[]}}function o(t){for(var e,r=arguments.length,n=Array(r>1?r-1:0),i=1;i-1||e.indexOf(t.toLowerCase())>-1?o.bind(null,t):function(){}}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";console.warn("%cSP warning","background: red; font-weight :bold; color: white;",t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getDebugger=a,e.publicWarning=s;var u=r(88),c=n(u),l="SPOTIM_DEBUG_RECIRCULATION",d=null},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={cloudinary:{apiKey:"468332229667797"},demoPageServiceUrl:"/spot/{{spotId}}",ampDemoPageServiceUrl:"/spot/json/{{spotId}}",api:{extract:{url:"https://extract.spot.im",cdn:"https://api.spot.im/extract"},recirculation:{url:"https://www.spot.im/api/newsfeed-sync/spot/{{spotId}}/circulation",cdn:"https://www.spot.im/api/newsfeed-sync/spot/{{spotId}}/circulation"},topics:{url:"https://www.spot.im/api/topics/circulation/spot/{{spotId}}",cdn:"https://www.spot.im/api/topics/circulation/spot/{{spotId}}"},adsConfig:{clientUrl:"https://premaster-spotops.spot.im/spot/{{spotId}}/recirculation?platform={{platform}}",serverUrl:"https://premaster-spotops.spot.im/spot/{{spotId}}/recirculation-all"}},nextPageUrl:"https://recirculation.spot.im/page/{{spotId}}",prerenderScriptUrl:"https://recirculation.spot.im/script/{{spotId}}"}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={cloudinary:{apiKey:"468332229667797"},demoPageServiceUrl:"/spot/{{spotId}}",ampDemoPageServiceUrl:"/spot/json/{{spotId}}",api:{extract:{url:"https://extract.spot.im",cdn:"https://api.spot.im/extract"},recirculation:{url:"https://www.spot.im/api/newsfeed-sync/spot/{{spotId}}/circulation",cdn:"https://www.spot.im/api/newsfeed-sync/spot/{{spotId}}/circulation"},topics:{url:"https://www.spot.im/api/topics/circulation/spot/{{spotId}}",cdn:"https://www.spot.im/api/topics/circulation/spot/{{spotId}}"},adsConfig:{clientUrl:"https://spotops.spot.im/spot/{{spotId}}/recirculation?platform={{platform}}",serverUrl:"https://spotops.spot.im/spot/{{spotId}}/recirculation-all"}},nextPageUrl:"https://recirculation.spot.im/page/{{spotId}}",prerenderScriptUrl:"https://recirculation.spot.im/script/{{spotId}}"}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){t=b.default.removeSpotImParams(t).toLowerCase(),e=b.default.removeSpotImParams(e).toLowerCase();var r=/(https?):\/\/(?:www\.)?(.[^\/]+)(.*)/,n=t.match(r),i=e.match(r);if(n&&i){var o=(0,y.default)(n,4),a=o[3],s=(0,y.default)(i,4),u=s[3];return a=a.split("/").join(""),u=u.split("/").join(""),a===u}return!1}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.locationHref,n=void 0===r?window.location.href:r,o=e.compareFunc,a=void 0===o?null:o;a||(a=i);var s=[].concat((0,m.default)(t.querySelectorAll("[data-spmark=item-link]")));return s.forEach(function(t,e){var r=t.href;if(a(r,n)){var i=t.parentNode;if(e<2){var o=s[s.length-1].parentNode;o.remove(),i.insertAdjacentHTML("afterend",o.outerHTML)}i.remove()}}),t}function a(t){return[].concat((0,m.default)(t.querySelectorAll("[data-spotim-item]"))).forEach(function(t,e){t.dataset.spmark=t.dataset.spmark.replace(/index\:(\d+)/,"index:"+e),t.dataset.spotimIndex=e}),t}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return 0===e.length||e.reduce(function(e,r){if(e)return!0;var n=null;try{n=new RegExp(r)}catch(t){return!1}return!!t.match(n)},!1)}function u(t,e){return Array.apply(0,new Array(e)).map(function(e,r){return r+t})}function c(t,e,r){var n=Math.floor(e.length/t);return e.slice((r-1)*n,r*n)}function l(t){var e=/row(\d+)-cell(\d+)/,r=e.exec(t);return r?{row:parseInt(r[1]),column:parseInt(r[2]),name:t}:isNaN(parseInt(t))?{row:null,column:null,name:t}:{row:1,column:parseInt(t),name:t}}function d(t){var e={};return function(){var r=JSON.stringify(arguments);if(e[r])return e[r];var n=t.apply(this,arguments);return e[r]=n,n}}function f(t){var e=document.createElement("div");e.innerHTML=t;var r=e.firstElementChild;return e.removeChild(r),r}function p(t,e){if(void 0===e&&(e=t,t=0),"number"!=typeof t||"number"!=typeof e)throw new TypeError("Expected all arguments to be numbers"); return Math.floor(Math.random()*(e-t+1)+t)}function h(){return{day:w(),hour:(new Date).getHours()}}Object.defineProperty(e,"__esModule",{value:!0}),e.ACTIVATE_MONETIZATION_EVENT=e.createFrame=e.createPlayer=e.getRealBackgroundColor=e.getSlotId=void 0;var v=r(83),m=n(v),g=r(89),y=n(g);e.urlsAreSimilar=i,e.removeItemByUrl=o,e.resequenceIndexes=a,e.whitelistUrl=s,e.range=u,e.getDeckItems=c,e.getSlot=l,e.memoize=d,e.createDomElement=f,e.randomInt=p,e.getAdvancedTargetingParams=h;var _=r(88),b=n(_),w=function(){var t=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],e=(new Date).getDay();return t[e]};e.getSlotId=function(t,e){return"row"+t+"-cell"+e},e.getRealBackgroundColor=function t(e){if(!e)return"#fff";var r="rgba(0, 0, 0, 0)",n=getComputedStyle(e).backgroundColor;return n===r?t(e.parentElement):n},e.createPlayer=function(t,e,r,n,i,o){return{id:p(1e3,1e5).toString(),code:t,name:e,size:{width:r,height:n},type:i,server:o}},e.createFrame=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=document.createElement("iframe");Object.assign(r.style,{width:"100%",height:"100%",border:"none"});var n=""+t+"";return e&&e.appendChild(r),r.contentWindow.document.open(),r.contentWindow.document.write(n),r.contentWindow.document.close(),r},e.ACTIVATE_MONETIZATION_EVENT="spot-im-activate-recirculation"},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){return"object"===("undefined"==typeof window?"undefined":(0,a.default)(window))&&!!window.navigator.userAgent.toLocaleLowerCase().match(/(mobile|iemobile|android|webos|iphone|ipad|ipod|blackberry|windows phone)/)}Object.defineProperty(e,"__esModule",{value:!0});var o=r(117),a=n(o);e.default=i()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(118),o=n(i),a=r(121),s=n(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===u(o.default)?function(t){return"undefined"==typeof t?"undefined":u(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":"undefined"==typeof t?"undefined":u(t)}},function(t,e,r){t.exports={default:r(119),__esModule:!0}},function(t,e,r){r(15),r(59),t.exports=r(120).f("iterator")},function(t,e,r){e.f=r(56)},function(t,e,r){t.exports={default:r(122),__esModule:!0}},function(t,e,r){r(123),r(14),r(131),r(132),t.exports=r(23).Symbol},function(t,e,r){"use strict";var n=r(22),i=r(36),o=r(31),a=r(21),s=r(37),u=r(124).KEY,c=r(32),l=r(51),d=r(55),f=r(52),p=r(56),h=r(120),v=r(125),m=r(126),g=r(127),y=r(28),_=r(29),b=r(44),w=r(34),E=r(35),A=r(40),k=r(128),T=r(130),O=r(27),S=r(42),I=T.f,x=O.f,P=k.f,C=n.Symbol,M=n.JSON,R=M&&M.stringify,L="prototype",D=p("_hidden"),j=p("toPrimitive"),N={}.propertyIsEnumerable,F=l("symbol-registry"),V=l("symbols"),q=l("op-symbols"),U=Object[L],H="function"==typeof C,z=n.QObject,B=!z||!z[L]||!z[L].findChild,$=o&&c(function(){return 7!=A(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=I(U,e);n&&delete U[e],x(t,e,r),n&&t!==U&&x(U,e,n)}:x,G=function(t){var e=V[t]=A(C[L]);return e._k=t,e},W=H&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},K=function(t,e,r){return t===U&&K(q,e,r),y(t),e=w(e,!0),y(r),i(V,e)?(r.enumerable?(i(t,D)&&t[D][e]&&(t[D][e]=!1),r=A(r,{enumerable:E(0,!1)})):(i(t,D)||x(t,D,E(1,{})),t[D][e]=!0),$(t,e,r)):x(t,e,r)},X=function(t,e){y(t);for(var r,n=m(e=b(e)),i=0,o=n.length;o>i;)K(t,r=n[i++],e[r]);return t},J=function(t,e){return void 0===e?A(t):X(A(t),e)},Y=function(t){var e=N.call(this,t=w(t,!0));return!(this===U&&i(V,t)&&!i(q,t))&&(!(e||!i(this,t)||!i(V,t)||i(this,D)&&this[D][t])||e)},Q=function(t,e){if(t=b(t),e=w(e,!0),t!==U||!i(V,e)||i(q,e)){var r=I(t,e);return!r||!i(V,e)||i(t,D)&&t[D][e]||(r.enumerable=!0),r}},Z=function(t){for(var e,r=P(b(t)),n=[],o=0;r.length>o;)i(V,e=r[o++])||e==D||e==u||n.push(e);return n},tt=function(t){for(var e,r=t===U,n=P(r?q:b(t)),o=[],a=0;n.length>a;)!i(V,e=n[a++])||r&&!i(U,e)||o.push(V[e]);return o};H||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(r){this===U&&e.call(q,r),i(this,D)&&i(this[D],t)&&(this[D][t]=!1),$(this,t,E(1,r))};return o&&B&&$(U,t,{configurable:!0,set:e}),G(t)},s(C[L],"toString",function(){return this._k}),T.f=Q,O.f=K,r(129).f=k.f=Z,r(108).f=Y,r(107).f=tt,o&&!r(20)&&s(U,"propertyIsEnumerable",Y,!0),h.f=function(t){return G(p(t))}),a(a.G+a.W+a.F*!H,{Symbol:C});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)p(et[rt++]);for(var nt=S(p.store),it=0;nt.length>it;)v(nt[it++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=C(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!H,"Object",{create:J,defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),M&&a(a.S+a.F*(!H||c(function(){var t=C();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(_(e)||void 0!==t)&&!W(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!W(e))return e}),n[1]=e,R.apply(M,n)}}),C[L][j]||r(26)(C[L],j,C[L].valueOf),d(C,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},function(t,e,r){var n=r(52)("meta"),i=r(29),o=r(36),a=r(27).f,s=0,u=Object.isExtensible||function(){return!0},c=!r(32)(function(){return u(Object.preventExtensions({}))}),l=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},d=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[n].i},f=function(t,e){if(!o(t,n)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[n].w},p=function(t){return c&&h.NEED&&u(t)&&!o(t,n)&&l(t),t},h=t.exports={KEY:n,NEED:!1,fastKey:d,getWeak:f,onFreeze:p}},function(t,e,r){var n=r(22),i=r(23),o=r(20),a=r(120),s=r(27).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,r){var n=r(42),i=r(107),o=r(108);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,s=r(t),u=o.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,r){var n=r(46);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(44),i=r(129).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(n(t))}},function(t,e,r){var n=r(43),i=r(53).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(108),i=r(35),o=r(44),a=r(34),s=r(36),u=r(30),c=Object.getOwnPropertyDescriptor;e.f=r(31)?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return i(!n.f.call(t,e),t[e])}},function(t,e,r){r(125)("asyncIterator")},function(t,e,r){r(125)("observable")},function(t,e){(function(t){function r(e){return e&&t.XDomainRequest&&!/MSIE 1/.test(navigator.userAgent)?new XDomainRequest:t.XMLHttpRequest?new XMLHttpRequest:void 0}function n(t,e,r){t[e]=t[e]||r}var i=["responseType","withCredentials","timeout","onprogress"];e.ajax=function(e,o){function a(t,e){return function(){l||(o(void 0===d.status?t:d.status,0===d.status?"Error":d.response||d.responseText||e,d),l=!0)}}var s=e.headers||{},u=e.body,c=e.method||(u?"POST":"GET"),l=!1,d=r(e.cors);d.open(c,e.url,!0);var f=d.onload=a(200);d.onreadystatechange=function(){4===d.readyState&&f()},d.onerror=a(null,"Error"),d.ontimeout=a(null,"Timeout"),d.onabort=a(null,"Abort"),u&&(n(s,"X-Requested-With","XMLHttpRequest"),t.FormData&&u instanceof t.FormData||n(s,"Content-Type","application/x-www-form-urlencoded"));for(var p,h=0,v=i.length;h0)return t[i];return null}function d(t,e,r){for(var n=t.map(function(t){return c(t,e,r)}),i=n.length-1;i>=0;i--)if(n[i]<0)return t[i];return null}function f(t,e,r){return p(t,e,0,r)}function p(t,e,r,n){var i=w(t,n);return i+r<0}function h(t,e,r){return v(t,e,0,r)}function v(t,e,r,n){var i=w(t,n),s=o(e),u=a(t);return u+i+r>s}function m(t,e,r){return 0}function g(t,e,r){var n=a(t),i=o(e);return i-n}function y(t){return V}function _(t,e){["transform","webkitTransform","mozTransform","msTransform"].forEach(function(r){t.style[r]="translateX("+e+"px)"}),V=e}function b(t,e,r){"ltr"===r?_(t,e):_(t,-e)}function w(t,e){var r=y(t);return"ltr"===e?r:-r}Object.defineProperty(e,"__esModule",{value:!0}),e.Interaction=void 0;var E=r(135),A=n(E),k=r(136),T=n(k);e.setScrollXFromStart=b;var O=r(140),S=r(116),I=n(S),x=r(141),P=r(97),C=r(142),M=r(143),R=r(148),L=n(R),D=r(150),j=(e.Interaction=function(){function t(e){var r=e.onNavigateForward,n=void 0===r?function(){}:r,i=e.onNavigateBack,o=void 0===i?function(){}:i,a=e.onReachEnd,s=void 0===a?function(){}:a,u=e.onOverflowForward,c=void 0===u?function(){}:u,l=e.onReachStart,d=void 0===l?function(){}:l,f=e.onOverflowBack,p=void 0===f?function(){}:f,h=e.fetchNextPage,v=void 0===h?null:h,m=e.onFetchStart,g=void 0===m?function(){}:m,y=e.onFetchComplete,_=void 0===y?function(){}:y;(0,A.default)(this,t),this.container=null,this.scrollable=null,this.items=[],this.direction="ltr",this.onNavigateForward=n,this.onNavigateBack=o,this.onReachEnd=s,this.onOverflowForward=c,this.onReachStart=d,this.onOverflowBack=p,this.fetchNextPage=v,this.ajaxInProgress=!1,this.onFetchStart=g,this.onFetchComplete=_}return(0,T.default)(t,[{key:"initialize",value:function(t){var e=this,r=t.startWithItemInView,n=void 0===r?0:r,a=t.container,c=t.direction,l=void 0===c?"ltr":c,d=t.scrollable,f=t.items,p=t.forwardButton,h=t.backButton,v="ltr"===l;this.direction=l,this.container=a,this.scrollable=d,this.items=f;try{if(I.default){(0,O.onTap)(p,this.moveForward.bind(this,"click")),(0,O.onTap)(h,this.moveBack.bind(this,"click"));var m=null;(0,O.onGesture)(this.scrollable,{onSwipeLeft:v?this.moveForward.bind(this,"swipe"):this.moveBack.bind(this,"swipe"),onSwipeRight:v?this.moveBack.bind(this,"swipe"):this.moveForward.bind(this,"swipe"),onDragStart:function(){(0,P.addClass)(e.scrollable,x.cssSelectors.dragging),m=y(e.scrollable)},onDragStop:function(){(0,P.removeClass)(e.scrollable,x.cssSelectors.dragging),m=null},onDragProgress:function(t){null!==m&&_(e.scrollable,m+t)}})}else p.addEventListener("click",this.moveForward.bind(this,"click")),h.addEventListener("click",this.moveBack.bind(this,"click"));this.scrollable.addEventListener("transitionend",this.checkOverflows.bind(this),!1),window.addEventListener("resize",i),window.addEventListener("orientationchange",i),setTimeout(function(){try{if(n>0&&e.items[n]){var t=e.items[n],r=s(t,e.container);if(r<.51){var i=u(t,e.scrollable,e.direction),a=o(t),c=o(e.container),l=Math.ceil(.51*a),d=i+l,f=d-c,p=f;p>i&&(p=i),b(e.scrollable,-p,e.direction)}}e.checkOverflows()}catch(t){(0,M.reportError)(t,{errorSource:"interaction"})}},1e3)}catch(t){(0,M.reportError)(t,{errorSource:"interaction"})}this.initEvents()}},{key:"initEvents",value:function(){var t=this;L.default.on(D.DO_PAGE_BACK,function(){t.moveBack("event")}),L.default.on(D.DO_PAGE_NEXT,function(){t.moveForward("event")})}},{key:"checkOverflows",value:function(){f(this.scrollable,this.container,this.direction)?this.onOverflowBack():this.onReachStart(),h(this.scrollable,this.container,this.direction)?this.onOverflowForward():this.onReachEnd()}},{key:"moveForward",value:function(t){var e=this;if(!this.ajaxInProgress){"click"!==t&&"swipe"!==t||L.default.trigger(D.PAGE_NEXT_CLICKED);try{if(!this.container)throw new Error("Container not initialized");var r=l(this.items,this.scrollable,this.direction);if(r){var n=-c(r,this.scrollable,this.direction),i=v(this.scrollable,this.container,n,this.direction);if(i){this.onOverflowForward(),p(this.scrollable,this.container,n,this.direction)?this.onOverflowBack():this.onReachStart();var o=-u(r,this.scrollable,this.direction);requestAnimationFrame(function(){b(e.scrollable,o,e.direction),L.default.trigger("set-scroll-x-from-start",{args:[o,e.direction]})})}else{var a=g(this.scrollable,this.container,this.direction);b(this.scrollable,a,this.direction),L.default.trigger("set-scroll-x-from-start",{args:[a,this.direction]}),this.attemptFetchNextPage(t),this.onReachEnd()}setTimeout(function(){e.onNavigateForward({trigger:t,toItem:r})},700)}else{var s=g(this.scrollable,this.container,this.direction);b(this.scrollable,s,this.direction),L.default.trigger("set-scroll-x-from-start",{args:[s,this.direction]}),this.attemptFetchNextPage(t)}}catch(t){(0,M.reportError)(t,{errorSource:"interaction"})}}}},{key:"moveBack",value:function(t){var e=this;"click"!==t&&"swipe"!==t||L.default.trigger(D.PAGE_BACK_CLICKED);try{if(!this.container)throw new Error("Container not initialized");var r=d(this.items,this.scrollable,this.direction);if(r){var n=-c(r,this.scrollable,this.direction),i=p(this.scrollable,this.container,n,this.direction);if(i){this.onOverflowBack(),v(this.scrollable,this.container,n,this.direction)?this.onOverflowForward():this.onReachEnd();var o=-u(r,this.scrollable,this.direction);requestAnimationFrame(function(){b(e.scrollable,o,e.direction),L.default.trigger("set-scroll-x-from-start",{args:[o,e.direction]})})}else{var a=m(this.scrollable,this.container,this.direction);b(this.scrollable,a,this.direction),L.default.trigger("set-scroll-x-from-start",{args:[a,this.direction]}),this.onReachStart()}setTimeout(function(){e.onNavigateBack({trigger:t,toItem:r})},700)}else{var s=m(this.scrollable,this.container,this.direction);b(this.scrollable,s,this.direction),L.default.trigger("set-scroll-x-from-start",{args:[s,this.direction]})}}catch(t){(0,M.reportError)(t,{errorSource:"interaction"})}}},{key:"attemptFetchNextPage",value:function(t){var e=this;L.default.trigger("attempt-fetch-next-page"),this.fetchNextPage&&(this.ajaxInProgress=!0,this.onFetchStart(),this.fetchNextPage(this.scrollable,function(r){var n=r.newItems;[].push.apply(e.items,n),i(),e.ajaxInProgress=!1,e.onFetchComplete(),n.length>0&&e.moveForward(t)}))}}]),t}(),[]),N=[],F=[],V=0},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(137),o=n(i);e.default=function(){function t(t,e){for(var r=0;ri&&so&&(S=!0,h())}}}function s(){var t=(Math.abs(b-E),Math.abs(_-w),w<_),e=w>_,r=n(_,w,b,E),i=r>=-45&&r<=45||r>=135&&r<=180||r>=-180&&r<=-135;i&&(t&&l(),e&&f())}var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.onSwipeLeft,l=void 0===c?function(){}:c,d=u.onSwipeRight,f=void 0===d?function(){}:d,p=u.onDragStart,h=void 0===p?function(){}:p,v=u.onDragStop,m=void 0===v?function(){}:v,g=u.onDragProgress,y=void 0===g?function(){}:g,_=0,b=0,w=0,E=0,A=0,k=0,T=!1,O=!0,S=!1;t.addEventListener("touchstart",function(t){_=t.touches[0].screenX,b=t.touches[0].screenY,e()},!1),t.addEventListener("touchend",function(t){w=t.changedTouches[0].screenX,E=t.changedTouches[0].screenY,r()},!1),t.addEventListener("touchmove",function(t){return A=t.changedTouches[0].screenX,k=t.changedTouches[0].screenY,a(t)})}function n(t,e){function r(){var t=Math.abs(i-a),r=Math.abs(n-o),s=Math.sqrt(Math.pow(r,2)+Math.pow(t,2));s<=5&&e()}var n=0,i=0,o=0,a=0;t.addEventListener("touchstart",function(t){n=t.touches[0].screenX,i=t.touches[0].screenY},!1),t.addEventListener("touchend",function(t){o=t.changedTouches[0].screenX,a=t.changedTouches[0].screenY,r()},!1)}Object.defineProperty(e,"__esModule",{value:!0}),e.onGesture=r,e.onTap=n;var i=10,o=10},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(e.spotId="sp_Qf5Kf2mr",e.spotGroup="COLLIDER",e.css="",e.content="\n\t\t\n\t\t
Popular In the Community
Sponsored
Sponsored
Sponsored
\n\t\t\n\t\t",e.cssSelectors={"recirculation":"sprc1YjLM","active":"sprc1pfAD","content":"sprc2PlxR","items-window":"sprcRftoX","scrollable":"sprc1eDLH","items":"sprc26lX3","has-back-items":"sprc8_NwJ","has-forward-items":"sprc2vg5s","dragging":"sprcPesrx","loader":"sprc-T0Wq","a":"sprc2rEMe","sponsored-label":"sprcbSkmQ","sponsored-label-content":"sprcmlmgM","header":"sprc1GjYe","title":"sprc2wE2_","navigation":"sprc3VPpS","navigate":"sprc2hlM8","navigate-back":"sprcJjYeB","navigate-forward":"sprc2MkMP","fetch-loader":"sprc2A0Jn","fetching":"sprc3xVa6","reached-end":"sprc1gJKQ","avatar-blue":"sprcFco6q","avatar-orange":"sprc3pB4W","avatar-purple":"sprc2ko5l","avatar-green":"sprc1_682","avatar-red":"sprc1mcRl","avatar-grey":"sprc82og8","avatar-cyan":"sprc3tjZF","avatar-gold":"sprc3xOeN","avatar-olive":"sprcnQGvt","avatar-fabulous":"sprc3ioJl","avatar-hot":"sprcP_TJG","avatar-fierce":"sprc13toH","avatar-cosmic":"sprc34RnE","avatar-zen":"sprc1nBKX","avatar-strong":"sprcdbEGT","avatar-super":"sprc272Tr","avatar-magic":"sprc1Hh5N","avatar-peaceful":"sprc2CWoE","avatar-daring":"sprcU3Qow","avatar-heroic":"sprc2tD0r","avatar-wise":"sprc2WM0y","avatar-fresh":"sprc1UMcc","avatar-powerful":"sprcBh74L","avatar-slick":"sprc7luQk","avatar-autoblog":"sprc3lBDj","article-content":"sprc3ep3z","item-image":"sprc3JGD_","item":"sprc5DECK","item-title":"sprcrXXxN","item-content":"sprcW0DhN","user-image":"sprc37Avc","user-image-container":"sprc1IQpV","social-details":"sprcdi9x9","username":"sprc2qQzr","message-time":"sprcpvB1z","message-text":"sprc16C2K","item-title-text":"sprcLz-T4","image-background":"sprc1D3TP","social-content":"sprc1LKYH","social-header":"sprc2xJTJ","itemsWindow":"sprcRftoX","hasBackItems":"sprc8_NwJ","hasForwardItems":"sprc2vg5s","sponsoredLabel":"sprcbSkmQ","sponsoredLabelContent":"sprcmlmgM","navigateBack":"sprcJjYeB","navigateForward":"sprc2MkMP","fetchLoader":"sprc2A0Jn","reachedEnd":"sprc1gJKQ","avatarBlue":"sprcFco6q","avatarOrange":"sprc3pB4W","avatarPurple":"sprc2ko5l","avatarGreen":"sprc1_682","avatarRed":"sprc1mcRl","avatarGrey":"sprc82og8","avatarCyan":"sprc3tjZF","avatarGold":"sprc3xOeN","avatarOlive":"sprcnQGvt","avatarFabulous":"sprc3ioJl","avatarHot":"sprcP_TJG","avatarFierce":"sprc13toH","avatarCosmic":"sprc34RnE","avatarZen":"sprc1nBKX","avatarStrong":"sprcdbEGT","avatarSuper":"sprc272Tr","avatarMagic":"sprc1Hh5N","avatarPeaceful":"sprc2CWoE","avatarDaring":"sprcU3Qow","avatarHeroic":"sprc2tD0r","avatarWise":"sprc2WM0y","avatarFresh":"sprc1UMcc","avatarPowerful":"sprcBh74L","avatarSlick":"sprc7luQk","avatarAutoblog":"sprc3lBDj","articleContent":"sprc3ep3z","itemImage":"sprc3JGD_","itemTitle":"sprcrXXxN","itemContent":"sprcW0DhN","userImage":"sprc37Avc","userImageContainer":"sprc1IQpV","socialDetails":"sprcdi9x9","messageTime":"sprcpvB1z","messageText":"sprc16C2K","itemTitleText":"sprcLz-T4","imageBackground":"sprc1D3TP","socialContent":"sprc1LKYH","socialHeader":"sprc2xJTJ"},e.config={"must":null,"should":null,"nextPageUrl":"https://recirculation.spot.im/page/sp_Qf5Kf2mr","cursor":{"pinned":{"offset":0,"count":20,"has_next":false},"typing":{"offset":1,"count":20,"has_next":false},"live":{"offset":20,"count":20,"has_next":true},"static":{"offset":0,"count":20,"has_next":true},"has_next":true},"brandColor":"#2a4f02","languageDirection":"ltr","whitelist":[],"ads":{"Desktop":{"success":true,"campaigns":[{"id":"camp_q5Fr0j54HWmF","name":"Collider Desktop (Complex)","slot":{"row":1,"column":1},"tags_type":"regular","advanced_targeting":false,"draft_mode_enabled":false,"creative":[{"percent":100,"tags":{"Desktop":"tag_ib4VR87UXrjp"}}]}],"tags":{"tag_ib4VR87UXrjp":{"id":"tag_ib4VR87UXrjp","name":"Complex_universal_tag_Desktop","type":"display","server":"Inline","size":{"width":"400","height":"300"},"code":"
\n","reload_after":null,"passback_enabled":false,"passback_interval":45,"passback_code":""}}},"Android-Tablet":{"success":true,"campaigns":[{"id":"camp_9gVQumynnQPR","name":"Collider Mobile Phone and Tablet (Complex)","slot":{"row":1,"column":1},"tags_type":"regular","advanced_targeting":false,"draft_mode_enabled":false,"creative":[{"percent":100,"tags":{"Android-Tablet":"tag_sBPwp2VDk3Z6"}}]}],"tags":{"tag_sBPwp2VDk3Z6":{"id":"tag_sBPwp2VDk3Z6","name":"Complex_universaltag_ inline ","type":"display","server":"Inline","size":{"width":"300","height":"250"},"code":"
\n","reload_after":null,"passback_enabled":false,"passback_interval":45,"passback_code":""}}},"Android-Phone":{"success":true,"campaigns":[{"id":"camp_9gVQumynnQPR","name":"Collider Mobile Phone and Tablet (Complex)","slot":{"row":1,"column":1},"tags_type":"regular","advanced_targeting":false,"draft_mode_enabled":false,"creative":[{"percent":100,"tags":{"Android-Phone":"tag_sBPwp2VDk3Z6"}}]}],"tags":{"tag_sBPwp2VDk3Z6":{"id":"tag_sBPwp2VDk3Z6","name":"Complex_universaltag_ inline ","type":"display","server":"Inline","size":{"width":"300","height":"250"},"code":"
\n","reload_after":null,"passback_enabled":false,"passback_interval":45,"passback_code":""}}},"iOS-Tablet":{"success":true,"campaigns":[{"id":"camp_9gVQumynnQPR","name":"Collider Mobile Phone and Tablet (Complex)","slot":{"row":1,"column":1},"tags_type":"regular","advanced_targeting":false,"draft_mode_enabled":false,"creative":[{"percent":100,"tags":{"iOS-Tablet":"tag_sBPwp2VDk3Z6"}}]}],"tags":{"tag_sBPwp2VDk3Z6":{"id":"tag_sBPwp2VDk3Z6","name":"Complex_universaltag_ inline ","type":"display","server":"Inline","size":{"width":"300","height":"250"},"code":"
\n","reload_after":null,"passback_enabled":false,"passback_interval":45,"passback_code":""}}},"iOS-Phone":{"success":true,"campaigns":[{"id":"camp_9gVQumynnQPR","name":"Collider Mobile Phone and Tablet (Complex)","slot":{"row":1,"column":1},"tags_type":"regular","advanced_targeting":false,"draft_mode_enabled":false,"creative":[{"percent":100,"tags":{"iOS-Phone":"tag_sBPwp2VDk3Z6"}}]}],"tags":{"tag_sBPwp2VDk3Z6":{"id":"tag_sBPwp2VDk3Z6","name":"Complex_universaltag_ inline ","type":"display","server":"Inline","size":{"width":"300","height":"250"},"code":"
\n","reload_after":null,"passback_enabled":false,"passback_interval":45,"passback_code":""}}},"spot":{"pub_spot_id":"sp_Qf5Kf2mr","features":{"conversation":{"enabled":true},"recirculation":{"decks":1,"ads_enabled":[1],"video_enabled":false,"passback":true,"enabled":true,"display_over_video_enabled":false,"display_over_video_type":"display","display_over_video_code":"\n\n\n\n\n
\n\n
"},"side_rail":{"slots":4,"enabled":true,"ads_enabled":true,"video_enabled":false,"passback":true}}}},"enableSpotimUtm":true,"openLinksInNewTab":false,"referTraffic":true});window.location.href.indexOf("spotim_direction=rtl")>-1&&(n.languageDirection="rtl")},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){return new l({right:window.innerWidth,bottom:window.innerHeight})}function o(t){var e=t.getBoundingClientRect();return new l(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Rect=void 0;var a=r(135),s=n(a),u=r(136),c=n(u);e.getWindowRect=i,e.getElementRect=o;var l=e.Rect=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.top,n=void 0===r?0:r,i=e.left,o=void 0===i?0:i,a=e.right,u=void 0===a?0:a,c=e.bottom,l=void 0===c?0:c;(0,s.default)(this,t),this.top=n,this.left=o,this.right=u,this.bottom=l}return(0,c.default)(t,[{key:"getHeight",value:function(){return Math.max(this.bottom-this.top,0)}},{key:"getWidth",value:function(){return Math.max(this.right-this.left,0)}},{key:"isEmpty",value:function(){return this.top===this.bottom||this.left===this.right}},{key:"isNegative",value:function(){return this.top>this.bottom||this.left>this.right}},{key:"getArea",value:function(){return this.getHeight()*this.getWidth()}},{key:"intersect",value:function(e){var r=Math.max(this.top,e.top),n=Math.max(this.left,e.left),i=Math.min(this.right,e.right),o=Math.min(this.bottom,e.bottom);return new t({top:r,left:n,right:i,bottom:o})}},{key:"addFrameRect",value:function(e){return new t({top:e.top+this.top,left:e.left+this.left,right:e.left+this.right,bottom:e.top+this.bottom})}},{key:"toObject",value:function(){return{top:this.top,left:this.left,right:this.right,bottom:this.bottom}}}],[{key:"fromObject",value:function(e){return new t(e)}}]),t}()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.reportError=void 0;var i=r(102),o=n(i),a=r(144),s=r(112),u=r(147),c=(0,s.getDebugger)("errors"),l=2,d=window.navigator&&window.navigator.userAgent||null,f=(0,a.createReporter)("RecirculationClient",!0);e.reportError=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};if(t instanceof Error)r={error:t.message,stack:t.stack};else if("string"==typeof t)r={error:t};else try{r={error:JSON.stringify(t)}}catch(t){r={error:"ERROR_IN_ERROR_REPORT"+t.message,stack:t.stack}}r=(0,o.default)({},r,e,{v:l,ua:d,packageVersion:u.version}),c(r),f("FED-ERROR",r)}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){return Object.keys(t).reduce(function(e,r){return e["payload_"+r]=t[r],e},{})}function o(t){var e=new XMLHttpRequest;e.open("GET",t),e.send()}function a(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e||a){var s=(0,u.default)({source:"FED",moduleName:t,message:n},i(o)),c="https://track.spots.im/?m="+JSON.stringify(s);r(c)}}}Object.defineProperty(e,"__esModule",{value:!0});var s=r(145),u=n(s);e.createReporter=a},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(146),o=n(i);e.default=o.default||function(t){for(var e=1;e1?e-1:0),n=1;n0&&(i=this.events[t]),i.forEach(function(t){return t.apply(void 0,r)})}},{key:"off",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.events[t]&&this.events[t].length>0&&(e?i(this.events[t],e):this.events[t]=[])}}]),t}();e.default=c},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AD_DISPLAY_STARTED="ad-display-start",e.AD_DISPLAY_FINISHED="ad-display-finish",e.AD_CONTENT_DISPLAY_STARTED="ad-content-display-start",e.AD_CONTENT_DISPLAY_FINISHED="ad-content-display-finish",e.AD_VIEWABILITY_2SEC="ad-viewability-2sec",e.AD_VIEWABILITY_3SEC="ad-viewability-3sec",e.DO_PAGE_BACK="do-page-back",e.DO_PAGE_NEXT="do-page-next",e.PAGE_BACK_CLICKED="page-back-clicked",e.PAGE_NEXT_CLICKED="page-next-clicked",e.IN_VIEW_2S="in-view-2s",e.ENTERED_VIEWPORT="entered-viewport",e.LEFT_VIEWPORT="left-viewport"},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){for(var e,r=arguments.length,n=Array(r>1?r-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{};return S.handleEvent(t,e)}function s(t){return x.handleEvent(t)}function u(){for(var t=arguments.length,e=Array(t),r=0;r1?o-1:0),s=1;s1?e-1:0),n=1;n1?e-1:0),n=1;n=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){var e={domain:t.location.hostname,url:t.location.href,referrer:t.document.referrer,lang:t.navigator.userLanguage||t.navigator.language};return e}function o(t){if(t.performance&&t.performance.timing){var e=t.performance.timing.domLoading;if(!isNaN(parseInt(e))&&e>0)return e}return null}function a(t){var e=function(t){return t.replace(/([A-Z])/g,function(t){return"_"+t.toLowerCase()})};return Object.assign.apply(Object,[{}].concat((0,f.default)(Object.keys(t).map(function(r){return(0,l.default)({},e(r),t[r])}))))}function s(t){if(t<0)return null;var e=9007199254740991;if(t&&!isNaN(parseInt(t))){var r=Date.now()-t;return isNaN(r)?r=null:r<0?r=null:r>e&&(r=null),r}return null}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};return Object.keys(t).forEach(function(r){null!==t[r]&&"undefined"!=typeof t[r]&&(e[r]=t[r])}),e=encodeURIComponent(btoa(JSON.stringify(e)))}Object.defineProperty(e,"__esModule",{value:!0});var c=r(157),l=n(c),d=r(83),f=n(d);e.getBrowserWindowParams=i,e.getStartTime=o,e.objectKeysToSnakeCase=a,e.getTimeDelta=s,e.preparePayload=u},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(137),o=n(i);e.default=function(t,e,r){return e in t?(0,o.default)(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e){"use strict";function r(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function n(){var t=r;return t()+t()+t()+t()+t()+t()+t()+t()}Object.defineProperty(e,"__esModule",{value:!0}),e.shortGuid=r,e.guid=n,e.default=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){try{if(null===l){if(l=u.default.getKey(window.location.href.toLowerCase(),c.toLowerCase()),l||(l=window[c]),!l)try{l=window.localStorage.getItem(c)}catch(t){}l||(l=""),l=l.split(",").map(function(t){return t.toLowerCase()})}return l}catch(t){return[]}}function o(t){for(var e,r=arguments.length,n=Array(r>1?r-1:0),i=1;i-1||e.indexOf(t.toLowerCase())>-1?o.bind(null,t):function(){}}Object.defineProperty(e,"__esModule",{value:!0}),e.getDebugger=a;var s=r(160),u=n(s),c="SPOTIM_DEBUG_TRACK",l=null},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){return t.split("?")[0].split("#")[0]}function o(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Object.keys(t).reduce(function(e,r){return[].concat((0,h.default)(e),[r+"="+encodeURIComponent(t[r])])},[]).join("&");return e&&r.length>0&&(r="?"+r),r}function a(t){var e=t.indexOf("?");if(e===-1)return{};var r=t.substring(e).slice(1).split("&"),n={};return r.forEach(function(t){t=t.split("="),""!==t[0]&&(n[t[0]]=decodeURIComponent(t[1]||""))}),JSON.parse(JSON.stringify(n))}function s(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=a(t),i=!1;return n.hasOwnProperty(e)&&(i=null===r||n[e]===r),i}function u(t,e){var r=t,n={};if(r){var i=r.indexOf("?");i>-1&&(n=a(r),r=r.substring(0,i))}else r="";var s=Object.assign(n,e),u=o(s);return u.length>0&&(r+=u),r}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.urlParams,n=e.queryString;return t=Object.keys(r).reduce(function(t,e){return t.indexOf(":"+e)>=-1&&(t=t.replace(":"+e,r[e])),t},t),u(t,n)}function l(t,e){return e.reduce(function(t,e){return d(t,e)},t)}function d(t,e){var r=t,n=t.indexOf("?");if(n!==-1){var i=t.substring(0,n),o=t.substring(n+1),a=new RegExp("&"+e+"(=[^&]*)?|^"+e+"(=[^&]*)?&?");o=o.replace(a,""),r=i+(o.length>0?"?":"")+o}return r}function f(t,e,r){var n=t,i=new RegExp("([?&])"+e+"=.*?(&|$)","i");if(t.match(i))n=t.replace(i,"$1"+e+"="+r+"$2");else{var o=t.indexOf("?")!==-1?"&":"?";n=t+o+e+"="+r}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.objectFromQueryString=void 0;var p=r(83),h=n(p),v=r(161);Object.defineProperty(e,"objectFromQueryString",{enumerable:!0,get:function(){return v.objectFromQueryString}}),e.stripQueryStringAndHash=i,e.queryStringFromObject=o,e.buildUrl=u,e.composeUrl=c,e.removeParams=l;var m=r(162);e.default={parseUrl:a,buildUrl:u,getKey:m.getKey,setKey:f,removeParams:l,hasQueryString:s}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r={},n=t.indexOf("?");if(n>-1){var i=t.substring(n+1);""!==i&&i.split("&").forEach(function(t){var n=t.split("="),i=(0,a.default)(n,2),o=i[0],s=i[1];if(!e||e.indexOf(o)!==-1)try{r[o]=decodeURIComponent(s)}catch(t){}})}return r}Object.defineProperty(e,"__esModule",{value:!0});var o=r(89),a=n(o);e.objectFromQueryString=i},function(t,e){"use strict";function r(t,e){e=e.replace(/[\[\]]/g,"\\$&");var r,n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),i=n.exec(t);return r=i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}Object.defineProperty(e,"__esModule",{value:!0}),e.getKey=r},function(t,e,r){"use strict";function n(t){return this.performRequest(null,{spotId:t})}Object.defineProperty(e,"__esModule",{value:!0}),e.trackSpotLoad=void 0;var i=r(164),o=r(175);e.trackSpotLoad=(0,i.createDefaultResource)(o.apiUrl,"get","/spot/{{spotId}}",n,{withCredentials:!0})},function(t,e,r){"use strict";function n(t,e,r,n,a){return(0,i.createResource)(t,e,r,n,a,o.RequestHandler)}Object.defineProperty(e,"__esModule",{value:!0}),e.createDefaultResource=n;var i=r(165),o=r(167)},function(t,e,r){"use strict";function n(t,e,r,a){function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.replace(o,function(e,r){return t.hasOwnProperty(r)?encodeURIComponent(t[r]):e})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t+s(e)}function c(o){return o=(0,i.extendOptions)(f,o),n(t,e,r,a,o,p)}function l(){return{apiUrl:t,method:e,url:r,execute:a,options:f}}function d(t,r){var n=u(r);f=(0,i.extendOptions)(i.defaultOptions,f);var o;switch(e.toLowerCase()){case"get":o=p.get(n,t,f);break;case"delete":o=p.delete(n,f);break;case"patch":o=p.patch(n,t,f);break;case"post":o=p.post(n,t,f);break;case"put":o=p.put(n,t,f)}return o}var f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},p=arguments[5];return{getUrl:s,getFullUrl:u,performRequest:d,extend:c,execute:a,getProperties:l}}Object.defineProperty(e,"__esModule",{value:!0}),e.createResource=n;var i=r(166),o=/\{\{(\w+)\}\}/gi},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r){e in t&&(r[e]=t[e])}function o(t,e,r){if(e in t)if(r[e]){var n=r[e];r[e]=function(){t[e](),n()}}else r[e]=t[e]}function a(t,e,r){e in t&&(Array.isArray(t[e])?r[e]=[].concat((0,c.default)(r[e]||[]),(0,c.default)(t[e])):r[e]=[].concat((0,c.default)(r[e]||[]),[t[e]]))}function s(){for(var t={},e=arguments.length,r=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return r.withCredentials&&(e=e.withCredentials()),r.contentType&&(e=e.set("Content-Type",r.contentType),"application/x-www-form-urlencoded"!==r.contentType&&"text/plain"!==r.contentType||(e._data=JSON.stringify(e._data))),new Promise(function(n,i){t.invokeRequestInterceptors(e,r.requestInterceptors,r).then(function(e){var o=e.request;o.end(function(e,a){e?(i(e),r.error&&r.error(e)):t.invokeResponseInterceptors(o,a,r.responseInterceptors,r).then(function(e){var o=e.response;if(o.ok){var a=t.invokeParsers(o.body,r.parsers);n(a),r.success&&r.success(a)}else i(o),r.error&&r.error(o)})})})})}},{key:"invokeParsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(e)||(e=[e]);var r=Object.freeze(t);return e.reduce(function(t,e){return e(r,t)},r)}},{key:"invokeRequestInterceptors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(t,e){return t.then(function(t){var n=t.request;return e.requestInterceptor(n,r)})},Promise.resolve({request:t}))}},{key:"invokeResponseInterceptors",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return r.reduce(function(e,r){return e.then(function(e){var i=e.response;return r.responseInterceptor(t,i,n)})},Promise.resolve({response:e}))}},{key:"get",value:function(e,r,n){var i=c.default.get(e,r);return t.performRequest(i,n)}},{key:"post",value:function(e,r,n){var i=c.default.post(e,r);return t.performRequest(i,n)}},{key:"patch",value:function(e,r,n){var i=c.default.patch(e,r);return t.performRequest(i,n)}},{key:"put",value:function(e,r,n){var i=c.default.put(e,r);return t.performRequest(i,n)}},{key:"delete",value:function(e,r){var n=c.default.del(e);return t.performRequest(n,r)}}]),t}()},function(t,e,r){function n(){}function i(t){if(!v(t))return t;var e=[];for(var r in t)o(e,r,t[r]);return e.join("&")}function o(t,e,r){if(null!=r)if(Array.isArray(r))r.forEach(function(r){o(t,e,r)});else if(v(r))for(var n in r)o(t,e+"["+n+"]",r[n]);else t.push(encodeURIComponent(e)+"="+encodeURIComponent(r));else null===r&&t.push(encodeURIComponent(e))}function a(t){for(var e,r,n={},i=t.split("&"),o=0,a=i.length;o=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==r){var n;try{n=e.status}catch(t){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var n=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.onprogress=n.bind(null,"download"),e.upload&&(e.upload.onprogress=n.bind(null,"upload"))}catch(t){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof r&&!this._isHost(r)){var i=this._header["content-type"],o=this._serializer||y.serialize[i?i.split(";")[0]:""];!o&&u(i)&&(o=y.serialize["application/json"]),o&&(r=o(r))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&e.setRequestHeader(a,this.header[a]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send("undefined"!=typeof r?r:null),this},y.agent=function(){return new g},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(t){g.prototype[t.toLowerCase()]=function(e,r){var n=new y.Request(t,e);return this._setDefaults(n),r&&n.end(r),n}}),g.prototype.del=g.prototype.delete,y.get=function(t,e,r){var n=y("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},y.head=function(t,e,r){var n=y("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},y.options=function(t,e,r){var n=y("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},y.del=d,y.delete=d,y.patch=function(t,e,r){var n=y("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},y.post=function(t,e,r){var n=y("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},y.put=function(t,e,r){var n=y("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}},function(t,e,r){function n(t){if(t)return i(t)}function i(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},n.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n,i=0;i=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(r===!0)return!0;if(r===!1)return!1}catch(t){console.error(t)}if(e&&e.status&&e.status>=500&&501!=e.status)return!0;if(t){if(t.code&&~a.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"==t.code)return!0;if(t.crossDomain)return!0}return!1},n.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},n.prototype.then=function(t,e){if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(t,e){r.end(function(r,n){r?e(r):t(n)})})}return this._fullfilledPromise.then(t,e)},n.prototype.catch=function(t){return this.then(void 0,t)},n.prototype.use=function(t){return t(this),this},n.prototype.ok=function(t){if("function"!=typeof t)throw Error("Callback required");return this._okCallback=t,this},n.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},n.prototype.get=function(t){return this._header[t.toLowerCase()]},n.prototype.getHeader=n.prototype.get,n.prototype.set=function(t,e){if(o(t)){for(var r in t)this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},n.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},n.prototype.field=function(t,e){if(null===t||void 0===t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(t)){for(var r in t)this.field(r,t[r]);return this}if(Array.isArray(e)){for(var n in e)this.field(t,e[n]);return this}if(null===e||void 0===e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=""+e),this._getFormData().append(t,e),this},n.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},n.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization","Basic "+n(t+":"+e));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},n.prototype.withCredentials=function(t){return void 0==t&&(t=!0),this._withCredentials=t,this},n.prototype.redirects=function(t){return this._maxRedirects=t,this},n.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw TypeError("Invalid argument");return this._maxResponseSize=t,this},n.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},n.prototype.send=function(t){var e=o(t),r=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&o(this._data))for(var n in t)this._data[n]=t[n];else"string"==typeof t?(r||this.type("form"),r=this._header["content-type"],"application/x-www-form-urlencoded"==r?this._data=this._data?this._data+"&"+t:t:this._data=(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(r||this.type("json"),this)},n.prototype.sortQuery=function(t){return this._sort="undefined"==typeof t||t,this},n.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.substring(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,e)+"?"+r.join("&")}}},n.prototype._appendQueryString=function(){console.trace("Unsupported")},n.prototype._timeoutError=function(t,e,r){if(!this._aborted){var n=new Error(t+e+"ms exceeded");n.timeout=e,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.abort(),this.callback(n)}},n.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(t,e){"use strict";function r(t){return null!==t&&"object"==typeof t}t.exports=r},function(t,e,r){"use strict";function n(t){if(t)return i(t)}function i(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}var o=r(173);t.exports=n,n.prototype.get=function(t){return this.header[t.toLowerCase()]},n.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=o.type(e);var r=o.params(e);for(var n in r)this[n]=r[n];this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},n.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.created=201==t,this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t,this.unprocessableEntity=422==t}},function(t,e){"use strict";e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){return t.split(/ *; */).reduce(function(t,e){var r=e.split(/ *= */),n=r.shift(),i=r.shift();return n&&i&&(t[n]=i),t},{})},e.parseLinks=function(t){return t.split(/ *, */).reduce(function(t,e){var r=e.split(/ *; */),n=r[0].slice(1,-1),i=r[1].split(/ *= */)[1].slice(1,-1);return t[i]=n,t},{})},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t,e){function r(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(t){r.prototype[t]=function(){return this._defaults.push({fn:t,arguments:arguments}),this}}),r.prototype._setDefaults=function(t){this._defaults.forEach(function(e){t[e.fn].apply(t,e.arguments)})},t.exports=r},function(t,e,r){(function(t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n;n=r(176);e.apiUrl=t.env.SKIP_CDN?n.url:n.cdn}).call(e,r(5))},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.url="https://tracker.spot.im",e.cdn="https://www.spot.im/api/tracker"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.browserId=e.visitId=e.VERSION=void 0;var n=r(158);window.$$SPOTIM_VID$$=window.$$SPOTIM_VID$$||(0,n.guid)(),window.$$SPOTIM_BID$$=window.$$SPOTIM_BID$$||(0,n.guid)();e.VERSION=6,e.visitId=$$SPOTIM_VID$$,e.browserId=window.$$SPOTIM_BID$$},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=u(t),r={};return e.forEach(function(t){var e=t.match(m);e?r[e[1]]=e[2]:r[t]=!0}),Object.keys(r).length>0?r:null}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)throw"Can't get marks path without rootNode";for(var r=[],n=e.parentNode?e.parentNode:e;t&&t!==n;){if(t.getAttribute){var o=i(t);o&&r.push(o)}t=t.parentNode}return r}function a(t,e){return!!t.find(function(t){return t[e]})}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.having,n=e.key,i=null,o=t.find(function(t){return t[r]});return o&&(i=o[n]),i}function u(t){return(t.getAttribute(v)||"").split(" ").map(function(t){return t.trim()}).filter(function(t,e,r){return r.indexOf(t)===e}).filter(function(t){return""!==t})}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=u(t);r=r.filter(function(t){return t!==e}),r.push(e),t.setAttribute(v,r.join(" "))}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=u(t);r=r.filter(function(t){return t!==e}),t.setAttribute(v,r.join(" "))}function d(t,e){var r=u(t);return r.indexOf(e)>-1}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.container,n=void 0===r?null:r;n||(n=document);var i=n.querySelectorAll("["+v+'~="'+t+'"]');return[].concat((0,h.default)(i))}Object.defineProperty(e,"__esModule",{value:!0}),e.MARK_KEY=void 0;var p=r(83),h=n(p);e.getElementMarks=i,e.getMarksPathFromTarget=o,e.pathHasMark=a,e.getMarkValueFromPath=s,e.setElementMark=c,e.removeElementMark=l,e.elementHasMark=d,e.findMarkedElements=f;var v=e.MARK_KEY="data-spmark",m=/([^\s]+):([^\s]*)/},function(t,e,r){"use strict";function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,s.preparePayload)(t);return new Promise(function(t,r){function n(){try{document.body.removeChild(o)}catch(t){}}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;u("LogstashAnalyticsError",{sender:"logstash-analytics",error:t,data:e}),r({data:e})}var o=document.createElement("img");try{Object.assign(o.style,{width:0,height:0,opacity:0,position:"absolute"}),o.onload=function(){t(),n()},o.onerror=function(e){t(),n()},o.src=""+c+e+"&rnd="+Math.random(),document.body.appendChild(o)}catch(t){i(t),n()}})}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.preparePayload)(t);"function"==typeof window.navigator.sendBeacon}Object.defineProperty(e,"__esModule",{value:!0}),e.send=n,e.beacon=i;var o,a=r(180),s=r(156);o=r(181).production;var u=(0,a.createReporter)("Recirculation",!0),c=o.logstashAnalyticsUrlPrefix;o.logstashAnalyticsBeaconUrl; },function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){return Object.keys(t).reduce(function(e,r){return e["payload_"+r]=t[r],e},{})}function o(t){var e=new XMLHttpRequest;e.open("GET",t),e.send()}function a(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e||a){var s=(0,u.default)({source:"FED",moduleName:t,message:n},i(o)),c="https://pix.spot.im/api/v1/pixel?m="+JSON.stringify(s);r(c)}}}Object.defineProperty(e,"__esModule",{value:!0});var s=r(102),u=n(s);e.createReporter=a},function(t,e){"use strict";t.exports={staging:{serviceUrl:"http://v2.staging-spot.im/api/track",logstashAnalyticsUrlPrefix:"https://pix.staging-spot.im/api/v1/pixel?m=",logstashAnalyticsBeaconUrl:"https://pix.staging-spot.im/api/v1/pixel"},production:{serviceUrl:"http://www.spot.im/api/track",logstashAnalyticsUrlPrefix:"https://pix.spot.im/api/v1/pixel?m=",logstashAnalyticsBeaconUrl:"https://pix.spot.im/api/v1/pixel"}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.UiCapture=void 0;var i=r(135),o=n(i),a=r(136),s=n(a),u=r(178);e.UiCapture=function(){function t(e){var r=e.root,n=void 0===r?null:r,i=(e.events,e.filters),a=void 0===i?[]:i,s=e.track,u=void 0===s?function(){}:s;(0,o.default)(this,t),this.root=n,this.filters=a,this.track=u}return(0,s.default)(t,[{key:"attachHandlers",value:function(t,e){var r=this;e=e.split(" "),e.forEach(function(e){return t.addEventListener(e,r.handleEvent.bind(r),!0)})}},{key:"handleEvent",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},i=!1;return this.filters.forEach(function(o){for(var a=[],s=t.target,c=e.root&&e.root.parentNode?e.root.parentNode:e.root;s&&s!==c;){if(s.getAttribute){var l=(0,u.getElementMarks)(s);l&&a.push(l)}s=s.parentNode}if(a.length>0&&o.query(t.type,a,r)){var d=o.transform(t.type,a,r);d&&Object.keys(d).length>0&&(Object.assign(n,d),i=!0)}}),i?this.track(n):Promise.resolve()}}]),t}()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ViewportCapture=void 0;var i=r(135),o=n(i),a=r(136),s=n(a),u=r(178);e.ViewportCapture=function(){function t(e){var r=e.root,n=e.filters,i=e.track;(0,o.default)(this,t),this.root=r,this.track=i,this.filters=n}return(0,s.default)(t,[{key:"handleEvent",value:function(t,e){var r=this,n={},i=!1;return this.filters.forEach(function(o){for(var a=[],s=t,c=r.root&&r.root.parentNode?r.root.parentNode:r.root;s&&s!==c;){if(s.getAttribute){var l=(0,u.getElementMarks)(s);l&&a.push(l)}s=s.parentNode}if(o.query(e,a)){var d=o.transform(e,a,r.handleEvent.bind(r,t));d&&Object.keys(d).length>0&&(Object.assign(n,d),i=!0)}}),i?this.track(n):Promise.resolve()}}]),t}()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.EventsCapture=void 0;var i=r(135),o=n(i),a=r(136),s=n(a);e.EventsCapture=function(){function t(e){var r=e.filters,n=e.track;(0,o.default)(this,t),this.filters=r,this.track=n}return(0,s.default)(t,[{key:"handleEvent",value:function(t){var e={},r=!1;return this.filters.forEach(function(n){if(n.query(t)){var i=n.transform(t,null);i&&Object.keys(i).length>0&&(Object.assign(e,i),r=!0)}}),r?this.track(e):Promise.resolve()}}]),t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filters=void 0;var n=r(178),i=r(186);e.filters=[{query:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{redirect:!1},i=r.redirect;return i&&(0,n.pathHasMark)(e,"item")},transform:function(t,e){var r="item";return(0,n.pathHasMark)(e,"user-image")?r="user-image":(0,n.pathHasMark)(e,"username")?r="username":(0,n.pathHasMark)(e,"message-time")?r="message-time":(0,n.pathHasMark)(e,"message-text")?r="message-text":(0,n.pathHasMark)(e,"item-title")?r="item-title":(0,n.pathHasMark)(e,"item-image")&&(r="item-image"),{type:"clicked",element:r,row:(0,i.safeParseInt)((0,n.getMarkValueFromPath)(e,{having:"item",key:"row"})),column:(0,i.safeParseInt)((0,n.getMarkValueFromPath)(e,{having:"item",key:"index"}))}}}]},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.safeParseInt=function(t){var e=parseInt(t);return isNaN(e)?null:e}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){"viewed"===t?(d||(l=Date.now(),d=setTimeout(function(){e("in-viewport-2s"),u.default.trigger(c.IN_VIEW_2S)},2e3)),f||(f=!0,u.default.trigger(c.ENTERED_VIEWPORT),setTimeout(function(){e("after-viewed-3s")},3e3),setTimeout(function(){e("after-viewed-10s")},1e4))):"unviewed"===t&&(clearTimeout(d),d=null)}Object.defineProperty(e,"__esModule",{value:!0}),e.filters=void 0,e.viewportTimers=i;var o=r(188),a=r(189),s=r(148),u=n(s),c=r(150),l=(e.filters=[{query:function(t,e){return[a.MORE_HALF_ENTER,a.FULL_ENTER].indexOf(t)>-1},transform:function(t,e,r){return i("viewed",r),o.filters.onlyOnce({type:"viewed",element:"recirculation"})}},{query:function(t,e){return[a.MORE_HALF_LEAVE,a.FULL_LEAVE].indexOf(t)>-1},transform:function(t,e,r){return i("unviewed",r),o.filters.onlyOnce({type:"unviewed",element:"recirculation"})}},{query:function(t){return["in-viewport-2s","after-viewed-3s","after-viewed-10s"].indexOf(t)>-1},transform:function(t){return o.filters.onlyOnce({type:t})}}],null),d=null,f=!1},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.filters=e.Filters=void 0;var i=r(102),o=n(i),a=r(117),s=n(a),u=r(135),c=n(u),l=r(136),d=n(l),f=e.Filters=function(){function t(){(0,c.default)(this,t),this.buffer={}}return(0,d.default)(t,[{key:"getNow",value:function(){return Date.now()}},{key:"getParamsHash",value:function(t){var e=function t(e){return Object.keys(e).sort().reduce(function(r,n){if(Array.isArray(e[n]))throw new Error("Filters - can't hash Array values");if("function"==typeof e[n])throw new Error("Filters - can't hash Function values");return"undefined"!=typeof e[n]&&(null===e[n]||Array.isArray(e[n])||"object"!==(0,s.default)(e[n])?r.push([n,e[n]]):r.push([n,t(e[n])])),r},[])};return JSON.stringify(e(t))}},{key:"addToBuffer",value:function(t){var e=this.getParamsHash(t),r=this.buffer[e];if(r){var n=(0,o.default)({},this.buffer[e]);return this.buffer[e]={times:n.times+1,lastTime:this.getNow()},n}return this.buffer[e]={times:1,lastTime:this.getNow()},{times:0,lastTime:null}}},{key:"onlyOnce",value:function(t){return this.atMostNTimes(t,1)}},{key:"everyNTimes",value:function(t,e){var r=this.addToBuffer(t);return r.times%e===0?t:null}},{key:"atMostNTimes",value:function(t,e){var r=this.addToBuffer(t);return r.times=e?t:null}},{key:"throttleNMs",value:function(t,e){var r=this.addToBuffer(t);return Date.now()-r.lastTime>e?t:null}},{key:"withCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"count",r=this.addToBuffer(t);return t[e]=r.times+1,t}}]),t}();e.filters=new f},function(t,e,r){"use strict";function n(t,e){var r=o;return t!==e&&(t===i.NOT_VISIBLE?e===i.LESS_HALF_VISIBLE?r=a:e===i.MORE_HALF_VISIBLE?r=s:e===i.FULL_VISIBLE&&(r=u):t===i.LESS_HALF_VISIBLE?e===i.NOT_VISIBLE?r=d:e===i.MORE_HALF_VISIBLE?r=s:e===i.FULL_VISIBLE&&(r=u):t===i.MORE_HALF_VISIBLE?e===i.NOT_VISIBLE?r=d:e===i.LESS_HALF_VISIBLE?r=l:e===i.FULL_VISIBLE&&(r=u):t===i.FULL_VISIBLE&&(e===i.NOT_VISIBLE?r=d:e===i.LESS_HALF_VISIBLE?r=l:e===i.MORE_HALF_VISIBLE&&(r=c))),r}Object.defineProperty(e,"__esModule",{value:!0}),e.VISIBILITY_CHANGE=e.FULL_LEAVE=e.MORE_HALF_LEAVE=e.LESS_HALF_LEAVE=e.FULL_ENTER=e.MORE_HALF_ENTER=e.LESS_HALF_ENTER=e.UNCHANGED=void 0,e.getChange=n;var i=r(190),o=e.UNCHANGED="UNCHANGED",a=e.LESS_HALF_ENTER="LESS_HALF_ENTER",s=e.MORE_HALF_ENTER="MORE_HALF_ENTER",u=e.FULL_ENTER="FULL_ENTER",c=e.LESS_HALF_LEAVE="LESS_HALF_LEAVE",l=e.MORE_HALF_LEAVE="MORE_HALF_LEAVE",d=e.FULL_LEAVE="FULL_LEAVE";e.VISIBILITY_CHANGE={UNCHANGED:o,LESS_HALF_ENTER:a,MORE_HALF_ENTER:s,FULL_ENTER:u,LESS_HALF_LEAVE:c,MORE_HALF_LEAVE:l,FULL_LEAVE:d}},function(t,e){"use strict";function r(t,e){var r=n;return t&&(e>0&&e<.5?r=i:e>=.5&&e<1?r=o:1===e&&(r=a)),r}Object.defineProperty(e,"__esModule",{value:!0}),e.getStatus=r;var n=e.NOT_VISIBLE="NOT_VISIBLE",i=e.LESS_HALF_VISIBLE="LESS_HALF_VISIBLE",o=e.MORE_HALF_VISIBLE="MORE_HALF_VISIBLE",a=e.FULL_VISIBLE="FULL_VISIBLE";e.VISIBILITY_STATUS={NOT_VISIBLE:n,LESS_HALF_VISIBLE:i,MORE_HALF_VISIBLE:o,FULL_VISIBLE:a}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filters=void 0;var n=r(188),i=r(115),o=r(186);e.filters=[{query:function(t){var e=t.type;return"loaded"===e},transform:function(t){var e=t.type,r=t.engineStatus,i=void 0===r?null:r;return n.filters.onlyOnce({type:e,engineStatus:i})}},{query:function(t){var e=t.type;return"navigate-forward"===e},transform:function(t){var e=(t.type,t.trigger);return"click"===e?n.filters.withCount({type:"navigate-click",element:"next-button",navigationDirection:"next"}):"swipe"===e?n.filters.withCount({type:"swiped",element:"items",navigationDirection:"next"}):void 0}},{query:function(t){var e=t.type;return"navigate-back"===e},transform:function(t){var e=(t.type,t.trigger);return"click"===e?n.filters.withCount({type:"navigate-click",element:"prev-button",navigationDirection:"prev"}):"swipe"===e?n.filters.withCount({type:"swiped",element:"items",navigationDirection:"prev"}):void 0}},{query:function(t){var e=t.type;return 0===e.indexOf("engine-")},transform:function(t){var e=t.type,r=t.itemIndex,a=void 0===r?null:r,s=t.engineVendorName,u=void 0===s?null:s,c=t.engineTagId,l=void 0===c?null:c,d=(0,i.getSlot)(a);return n.filters.withCount({type:"engine_status",engineStatus:e,row:(0,o.safeParseInt)(d.row),column:(0,o.safeParseInt)(d.column),engineVendorName:u,engineTagId:l})}}]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.lazyLoad=void 0;var i=r(193),o=n(i),a=1e4,s=new Promise(function(t){return(0,o.default)(t)}),u=new Promise(function(t){return setTimeout(t,a)});e.lazyLoad=function(){return Promise.race([s,u])}},function(t,e){"use strict";function r(t){"undefined"!=typeof window?window.addEventListener("load",t):t()}function n(){return o||"complete"===document.readyState}function i(t){t&&"function"==typeof t&&(n()?t():r(t))}Object.defineProperty(e,"__esModule",{value:!0});var o=!1;r(function(){o=!0}),e.default=i},function(t,e,r){"use strict";function n(){if(c&&!l)try{l=new IntersectionObserver(function(t){try{t.forEach(function(t){var e=d.find(function(e){return e.element===t.target});e&&a(t.intersectionRatio,e)})}catch(t){}},{threshold:[0,.5,1]})}catch(t){}}function i(t,e){if(c)try{d.push({element:t,callback:e,visibilityState:u.NOT_VISIBLE}),l&&l.observe(t)}catch(t){}}function o(t){if(c)try{d=d.filter(function(e){return e.element!==t}),l&&l.unobserve(t)}catch(t){}}function a(t,e){var r=e.visibilityState,n=(0,u.getStatus)(!0,t);e.visibilityState=n;var i=(0,s.getChange)(r,n);i!==s.UNCHANGED&&e.callback(i)}Object.defineProperty(e,"__esModule",{value:!0}),e.CAN_OBSERVE_INTERSECTION=void 0,e.setupIntersectionObserver=n,e.observeElement=i,e.unobserveElement=o;var s=r(189),u=r(190),c=e.CAN_OBSERVE_INTERSECTION="function"==typeof window.IntersectionObserver,l=null,d=[]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ViewportObserver=void 0;var i=r(135),o=n(i),a=r(136),s=n(a),u=r(196),c=n(u),l=r(197),d=r(198),f=r(142),p=r(199);e.ViewportObserver=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.samplingRate,n=void 0===r?l.MEDIUM:r,i=e.container,a=void 0===i?void 0:i,s=e.isScrollableContainer,u=void 0!==s&&s;(0,o.default)(this,t),this.parentWindow=void 0,this.observedElements=[],this.isObserving=!1,this.scrollableContainer=u?a:void 0,this.handleEvent=(0,c.default)(this.handleEvent.bind(this),n),this.changeListener=new d.ViewportChangeListener(window,this.scrollableContainer),this.changeListener.onChange(this.handleEvent),a&&(this.observedContainer=this.observe(a))}return(0,s.default)(t,[{key:"setParentWindow",value:function(t,e){this.parentWindow={windowRect:t,frameRect:e},this.handleEvent()}},{key:"startObserving",value:function(){this.changeListener.start(),this.isObserving=!0}},{key:"stopObserving",value:function(){this.changeListener.stop(),this.isObserving=!1}},{key:"observe",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.stateChangeHandler,i=r.rectChangeHandler;this.isObserving||this.startObserving();var o=new p.ObservedElement(t,n,i);return this.observedElements.push(o),setTimeout(function(){var t=e.scrollableContainer?(0,f.getElementRect)(e.scrollableContainer):void 0;o.renderState({parentWindow:e.parentWindow,scrollableContainerRect:t})},0),o}},{key:"unobserve",value:function(t){this.observedElements=this.observedElements.filter(function(e){return e.element!==t}),this.isObserving&&0===this.observedElements.length&&this.stopObserving()}},{key:"handleEvent",value:function(){var t=this;if(this.observedContainer&&!this.observedContainer.state.isVisible)return void this.observedContainer.renderState({parentWindow:this.parentWindow});var e=this.scrollableContainer?(0,f.getElementRect)(this.scrollableContainer):void 0;this.observedElements.forEach(function(r){r.renderState({parentWindow:t.parentWindow,scrollableContainerRect:e})})}},{key:"getVisibilityState",value:function(t){var e,r;if(r=this.observedElements.find(function(e){return e.element===t}))e=r.state;else{r=new p.ObservedElement(t);var n=this.scrollableContainer?(0,f.getElementRect)(this.scrollableContainer):void 0;e=r.renderState({parentWindow:this.parentWindow,scrollableContainerRect:n})}return e}}]),t}()},function(t,e){"use strict";function r(t,e,r,n){var i,o,a,s,u=0;n||(n={});var c=function(){u=n.leading===!1?0:+new Date,i=null,s=t.apply(o,a),i||(o=a=null)},l=function(){var l=+new Date;u||n.leading!==!1||(u=l);var d=e-(l-u);return o=r||this,a=arguments,d<=0||d>e?(i&&(clearTimeout(i),i=null),u=l,s=t.apply(o,a),i||(o=a=null)):i||n.trailing===!1||(i=setTimeout(c,d)),s};return l.cancel=function(){clearTimeout(i),u=0,i=o=a=null},l}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=e.HIGH=200,n=e.MEDIUM=500,i=e.LOW=800;e.default={HIGH:r,MEDIUM:n,LOW:i}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ViewportChangeListener=void 0;var i=r(135),o=n(i),a=r(136),s=n(a);e.ViewportChangeListener=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;(0,o.default)(this,t),this.target=e,this.scrollableContainer=r,this.handlers=[],this.trigger=this.trigger.bind(this)}return(0,s.default)(t,[{key:"start",value:function(){this.target.addEventListener("scroll",this.trigger),this.target.addEventListener("resize",this.trigger),this.scrollableContainer&&this.scrollableContainer.addEventListener("scroll",this.trigger)}},{key:"stop",value:function(){this.target.removeEventListener("scroll",this.trigger),this.target.removeEventListener("resize",this.trigger),this.scrollableContainer&&this.scrollableContainer.removeEventListener("scroll",this.trigger)}},{key:"onChange",value:function(t){"function"==typeof t&&this.handlers.push(t)}},{key:"trigger",value:function(){this.handlers.forEach(function(t){return t()})}}]),t}()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ObservedElement=void 0;var i=r(135),o=n(i),a=r(136),s=n(a),u=r(200),c=r(142);e.ObservedElement=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};(0,o.default)(this,t),this.element=e,this.state=u.initialState,this.stateChangeHandler=r,this.rectChangeHandler=n}return(0,s.default)(t,[{key:"renderState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.parentWindow,r=t.scrollableContainerRect,n=(0,c.getElementRect)(this.element),i=(0,c.getWindowRect)();this.rectChangeHandler(i,n);var o=n.intersect(i);return r&&(o=o.intersect(r)),e&&(o=o.addFrameRect(e.frameRect),o=o.intersect(e.windowRect)),this.state=(0,u.getVisibilityState)(o,n,this.state),this.state.hasChange&&this.stateChangeHandler(this.state),this.state}}]),t}()},function(t,e,r){"use strict";function n(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!1,a=0,s=0;if(!t.isNegative())if(n=!0,e.isEmpty())a=1;else{var u=e.getArea();s=t.getArea(),a=s/u}var c=(0,i.getStatus)(n,a,s),l=(0,o.getChange)(r.status,c),d=l!==o.UNCHANGED;return{isVisible:n,visiblityRatio:a,visibleArea:s,status:c,change:l,hasChange:d}}Object.defineProperty(e,"__esModule",{value:!0}),e.initialState=void 0,e.getVisibilityState=n;var i=r(190),o=r(189);e.initialState={isVisible:!1,visiblityRatio:0,visibleArea:0,status:i.NOT_VISIBLE,change:o.UNCHANGED}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return new Promise(function(i,a){var s=l.config.nextPageUrl+"?cursor="+JSON.stringify(t);r&&(s+="&must="+r),n&&(s+="&should="+n),c.default.ajax({url:s},function(t,r,n){if(!t||t>300||t<200)a();else{var s=JSON.parse(r),u=s.markup,c=s.cursor,l=o(u,e);i({newItems:l,newCursor:c})}})})}function o(t,e){var r=document.createDocumentFragment();r.appendChild(document.createElement("div")),r.firstChild.innerHTML=t,e.onBeforeRender(r.firstChild);var n=r.querySelectorAll("."+l.cssSelectors.item);return[].concat((0,s.default)(n))}Object.defineProperty(e,"__esModule",{value:!0});var a=r(83),s=n(a);e.nextPageAjax=i;var u=r(133),c=n(u),l=r(141)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.lazyFonts=void 0;var i=r(8),o=n(i),a=r(11),s=n(a),u=r(192);e.lazyFonts=function(){var t=(0,s.default)(o.default.mark(function t(){var e;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,u.lazyLoad)();case 2:e=document.createElement("link"),e.href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800&subweset=latin,cyrillic-ext,cyrillic,greek-ext,greek,vietnamese,latin-ext",e.type="text/css",e.rel="stylesheet",document.head.appendChild(e);case 7:case"end":return t.stop()}},t,void 0)}));return function(){return t.apply(this,arguments)}}()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(135),o=n(i),a=r(136),s=n(a),u=r(204),c=n(u),l=r(205),d=n(l),f=r(213),p=n(f),h=r(221),v=n(h),m=r(246),g=function(t){function e(){return(0,o.default)(this,e),(0,c.default)(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,s.default)(e,[{key:"onBeforeRender",value:function(t){(0,d.default)(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"onBeforeRender",this).call(this,t),(0,m.exposePublicApi)();var r=t.querySelector('[data-spmark="title"]');r&&(r.innerHTML="Popular in the Community")}}]),e}(v.default);e.default=g},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(117),o=n(i);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(206),o=n(i),a=r(210),s=n(a);e.default=function t(e,r,n){null===e&&(e=Function.prototype);var i=(0,s.default)(e,r);if(void 0===i){var a=(0,o.default)(e);return null===a?void 0:t(a,r,n)}if("value"in i)return i.value;var u=i.get;if(void 0!==u)return u.call(n)}},function(t,e,r){t.exports={default:r(207),__esModule:!0}},function(t,e,r){r(208),t.exports=r(23).Object.getPrototypeOf},function(t,e,r){var n=r(58),i=r(57);r(209)("getPrototypeOf",function(){return function(t){return i(n(t))}})},function(t,e,r){var n=r(21),i=r(23),o=r(32);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},function(t,e,r){t.exports={default:r(211),__esModule:!0}},function(t,e,r){r(212);var n=r(23).Object;t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)}},function(t,e,r){var n=r(44),i=r(130).f;r(209)("getOwnPropertyDescriptor",function(){return function(t,e){return i(n(t),e)}})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(214),o=n(i),a=r(218),s=n(a),u=r(117),c=n(u);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":(0,c.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,r){t.exports={default:r(215),__esModule:!0}},function(t,e,r){r(216),t.exports=r(23).Object.setPrototypeOf},function(t,e,r){var n=r(21);n(n.S,"Object",{setPrototypeOf:r(217).set})},function(t,e,r){var n=r(29),i=r(28),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=r(24)(Function.call,r(130).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return o(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:o}},function(t,e,r){t.exports={default:r(219),__esModule:!0}},function(t,e,r){r(220);var n=r(23).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,r){var n=r(21);n(n.S,"Object",{create:r(40)})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a=r(204),s=n(a),u=r(213),c=n(u),l=r(8),d=n(l),f=r(11),p=n(f),h=r(89),v=n(h),m=r(83),g=n(m),y=r(135),_=n(y),b=r(136),w=n(b),E=r(222),A=r(245),k=r(141),T=r(148),O=n(T),S=r(150),I=r(115),x=r(192),P="800px",C=(o=i=function(){function t(e,r){(0,_.default)(this,t),this.getAvailableSlots=function(t,e){var r=[];if("mobile"===e)r.push({element:t.querySelector('[data-spotim-slot="mobile"]'),row:2,pos:"center",name:"row2-center",device:"mobile"});else{var n=[].concat((0,g.default)(t.querySelectorAll('[data-spotim-slot="desktop"]')));n.forEach(function(t){var e=parseInt(t.getAttribute("data-spotim-slot-row")),n=t.getAttribute("data-spotim-slot-pos");r.push({element:t,row:e,pos:n,name:"row"+e+"-"+n})})}return r},this.spotId=e,this.element=r}return(0,w.default)(t,[{key:"allowAds",value:function(){return!0}},{key:"getSponsoredPlayer",value:function(){return!1}},{key:"assignClickHandlers",value:function(t){return(0,E.assignClickHandlers)(t,this.spotId,{traffic:k.config.referTraffic})}},{key:"pixelTrack",value:function(){var t=document.createElement("img");t.setAttribute("src","https://ib.adnxs.com/getuid?https%3A%2F%2Fsync.spotim.market%2Fcsync%3Ft%3Da%26ep%3D271858%26extuid%3D%24UID"),t.setAttribute("width","1"),t.setAttribute("height","1"),t.setAttribute("style","display: none"),document.body.appendChild(t)}},{key:"onBeforeRender",value:function(t){var e=this;this.pixelTrack(),this.assignClickHandlers(t),(0,I.removeItemByUrl)(t,{locationHref:window.location.href});var r=new IntersectionObserver(function(n){var i=(0,v.default)(n,1),o=i[0];o.isIntersecting&&(e.displayItemImages(t,e.getFirstVisibleItemsCount(t)),r.unobserve(t))},{rootMargin:P});r.observe(t)}},{key:"onAfterRender",value:function(t){var e=this;(0,I.resequenceIndexes)(t),O.default.once(S.PAGE_NEXT_CLICKED,function(){return e.displayItemImages(t)})}},{key:"displayItemImages",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,p.default)(d.default.mark(function t(e){var r,n,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return d.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,x.lazyLoad)();case 2:r=[].concat((0,g.default)(e.querySelectorAll("[data-item-image]"))),n=[].concat((0,g.default)(e.querySelectorAll("[data-user-image]"))),i=function(t){t.style.backgroundImage||(t.style.backgroundImage="url("+t.getAttribute("data-item-image")+")")},o=function(t){t.style.backgroundImage||"NONE"===t.getAttribute("data-user-image")||(t.style.backgroundImage="url("+t.getAttribute("data-user-image")+")")},null===a?(r.forEach(i),n.forEach(o)):(r.slice(0,a).forEach(i),n.slice(0,a).forEach(o));case 7:case"end":return t.stop()}},t,this)}));return t}()},{key:"getFirstVisibleItemsCount",value:function(t){var e=document.documentElement.clientWidth,r=t.querySelectorAll('[data-spmark="items"]').length,n=Math.ceil(e/160);return n<6&&(n=6),n*r}}]),t}(),i.Player=function(t){function e(){return(0,_.default)(this,e),(0,s.default)(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return(0,c.default)(e,t),e}(A.Player),o);e.default=C},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.trackRedirect,i=void 0!==n&&n,a=r.handleUtm,s=void 0===a||a,u=r.enableSpotimUtm,l=void 0===u||u,d=r.referrer,f=void 0===d||d,h=r.commentId,v=void 0===h||h,m=r.traffic,g=void 0===m||m,_=r.qs,b=void 0===_?{}:_,w=r.transformUrl,E=void 0===w?function(t){return t}:w,A=(0,y.findMarkedElements)("item",{container:t}),k=o(t,e,{trackRedirect:i,referrer:f,commentId:v,traffic:g,qs:b,transformUrl:E});A.forEach(function(t){var e=(0,y.findMarkedElements)("item-link",{container:t})||[];[].concat((0,p.default)(e)).forEach(function(t){t.setAttribute("data-original-href",t.getAttribute("href")),O.config.openLinksInNewTab&&t.setAttribute("target","_blank"),s&&c(t,l),t.addEventListener("click",function(t){return k(t,!0)}),t.addEventListener("mousedown",function(t){[S,I].indexOf(t.which)>-1&&k(t,!1)})})})}function o(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.trackRedirect,i=void 0!==n&&n,o=r.referrer,c=void 0===o||o,l=r.commentId,d=void 0===l||l,f=r.traffic,p=void 0===f||f,h=r.qs,v=void 0===h?{}:h,m=r.transformUrl,y=void 0===m?function(t){return t}:m,_=(0,g.getHostOptions)();return function(r,n){var o=O.config.openLinksInNewTab||1===r.button||r.ctrlKey||r.metaKey,l=!o;l&&r.preventDefault();var f=r.currentTarget,h=f.getAttribute("data-original-href");if(h=s(h),h=b.default.buildUrl(h,v),c&&(h=b.default.buildUrl(h,{spotim_referrer:"recirculation"})),d){var m=u(r.target,t);m&&(h=b.default.buildUrl(h,{spot_im_comment_id:m}))}if(_.redirectUrlTransform){var g=_.redirectUrlTransform(h);"undefined"!=typeof g&&(h=g)}if(y){var k=y(h);"undefined"!=typeof k&&(h=k)}var S={url:h};p&&(S.redirect={source:"recommendations",fromSpotId:e,toSpotId:e,redirectEndpoint:T.default.redirectUrl});var I=(0,w.buildSpotImUrl)(S);f.href=I;var x=function(){l&&n&&I&&(window.location.href=I)};return Promise.all([(0,E.captureUiEvent)(r,{redirect:!0}),i?a({source:"recommendations",fromSpotId:e,toSpotId:e}):Promise.resolve()]).then(x).catch(function(t){(0,A.reportError)(t,{errorSource:"click-handler"}),x()})}}function a(t){var e=t.url,r=t.source,n=t.fromSpotId,i=t.toSpotId;return new Promise(function(t){v.default.ajax({method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({events:[{type:"generated-page-view",version:1,value:{from:{spot_id:n,source:r,url:e},to:{spot_id:i,url:e}}}]}),url:m.track.getFullUrl()},function(e,r,n){!e||e>300||e<200?reject():t()})})}function s(t){try{return window.location.hostname.endsWith("rt.com")?t.replace(/([^\/])\?/,"$1/?"):t}catch(e){return t}}function u(t,e){var r=(0,y.getMarksPathFromTarget)(t,e);if(!(0,y.pathHasMark)(r,"item-title")){var n=(0,y.getMarkValueFromPath)(r,{having:"item",key:"message-id"});if(n)return n}return null}function c(t,e){var r=window.location.href,n=t.getAttribute("href");e&&O.config.enableSpotimUtm?n=b.default.buildUrl(n,{utm_source:"spotim",utm_medium:"spotim_recirculation"}):["utm_source","utm_medium","utm_term","utm_content","utm_campaign"].forEach(function(t){var e=b.default.getKey(r,t)||null;e&&(n=b.default.buildUrl(n,(0,d.default)({},t,e)))}),t.setAttribute("href",n),t.setAttribute("data-original-href",n)}Object.defineProperty(e,"__esModule",{value:!0});var l=r(157),d=n(l),f=r(83),p=n(f);e.assignClickHandlers=i;var h=r(133),v=n(h),m=r(223),g=r(233),y=r(178),_=r(88),b=n(_),w=r(243),E=r(151),A=r(143),k=r(109),T=n(k),O=r(141),S=2,I=3},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=(0,u.default)(t,[]);return this.performRequest((0,a.default)({},e))}Object.defineProperty(e,"__esModule",{value:!0}),e.track=void 0;var o=r(102),a=n(o),s=r(155),u=n(s),c=r(224),l=r(231);e.track=(0,c.createResource)(l.apiUrl,"post","/track",i,{withCredentials:!0})},function(t,e,r){"use strict";function n(t,e,r,s){function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.replace(a,function(e,r){return t.hasOwnProperty(r)?t[r]:e})}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t+u(e)}function l(o){return o=(0,i.extendOptions)(p,o),n(t,e,r,s,o)}function d(){return{apiUrl:t,method:e,url:r,execute:s,options:p}}function f(t,r){var n=c(r);p=(0,i.extendOptions)(i.defaultOptions,p);var o;switch(e.toLowerCase()){case"get":o=h.get(n,t,p);break;case"delete":o=h.delete(n,p);break;case"patch":o=h.patch(n,t,p);break;case"post":o=h.post(n,t,p);break;case"put":o=h.put(n,t,p)}return o}var p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:o.RequestHandler;return{getUrl:u,getFullUrl:c,performRequest:f,extend:l,execute:s,getProperties:d}}Object.defineProperty(e,"__esModule",{value:!0}),e.createResource=n;var i=r(225),o=r(226),a=/\{\{(\w+)\}\}/gi},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r){e in t&&(r[e]=t[e])}function o(t,e,r){if(e in t)if(r[e]){var n=r[e];r[e]=function(){t[e](),n()}}else r[e]=t[e]}function a(t,e,r){e in t&&Array.isArray(t[e])&&(r[e]=[].concat((0,c.default)(r[e]||[]),(0,c.default)(t[e])))}function s(){for(var t={},e=arguments.length,r=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return r.withCredentials&&(e=e.withCredentials()),r.contentType&&(e=e.set("Content-Type",r.contentType),"application/x-www-form-urlencoded"!==r.contentType&&"text/plain"!==r.contentType||(e._data=JSON.stringify(e._data))),new Promise(function(n,i){t.invokeRequestInterceptors(e,r.requestInterceptors,r).then(function(e){var o=e.request;o.end(function(e,a){e?(i(e),r.error&&r.error(e)):t.invokeResponseInterceptors(o,a,r.responseInterceptors,r).then(function(e){var o=e.response;if(o.ok){var a=t.invokeParsers(o.body,r.parsers);n(a),r.success&&r.success(a)}else i(o),r.error&&r.error(o)})})})})}},{key:"invokeParsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.freeze(t);return e.reduce(function(t,e){return e(r,t)},r)}},{key:"invokeRequestInterceptors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(t,e){return t.then(function(t){var n=t.request;return e.requestInterceptor(n,r)})},Promise.resolve({request:t}))}},{key:"invokeResponseInterceptors",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return r.reduce(function(e,r){return e.then(function(e){var i=e.response;return r.responseInterceptor(t,i,n)})},Promise.resolve({response:e}))}},{key:"get",value:function(e,r,n){var i=c.default.get(e,r);return t.performRequest(i,n)}},{key:"post",value:function(e,r,n){var i=c.default.post(e,r);return t.performRequest(i,n)}},{key:"patch",value:function(e,r,n){var i=c.default.patch(e,r);return t.performRequest(i,n)}},{key:"put",value:function(e,r,n){var i=c.default.put(e,r);return t.performRequest(i,n)}},{key:"delete",value:function(e,r){var n=c.default.del(e);return t.performRequest(n,r)}}]),t}()},function(t,e,r){function n(){}function i(t){if(!g(t))return t;var e=[];for(var r in t)o(e,r,t[r]);return e.join("&")}function o(t,e,r){if(null!=r)if(Array.isArray(r))r.forEach(function(r){o(t,e,r)});else if(g(r))for(var n in r)o(t,e+"["+n+"]",r[n]);else t.push(encodeURIComponent(e)+"="+encodeURIComponent(r));else null===r&&t.push(encodeURIComponent(e))}function a(t){for(var e,r,n={},i=t.split("&"),o=0,a=i.length;o=300)&&(n=new Error(e.statusText||"Unsuccessful HTTP response"),n.original=t,n.response=e,n.status=e.status)}catch(t){n=t}n?r.callback(n,e):r.callback(null,e)})}function p(t,e){var r=y("DELETE",t);return e&&r.end(e),r}var h;"undefined"!=typeof window?h=window:"undefined"!=typeof self?h=self:(console.warn("Using browser-only version of superagent in non-browser environment"),h=this);var v=r(169),m=r(228),g=r(229),y=t.exports=r(230).bind(null,f);y.getXHR=function(){if(!(!h.XMLHttpRequest||h.location&&"file:"==h.location.protocol&&h.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw Error("Browser-only verison of superagent could not find XHR")};var _="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};y.serializeObject=i,y.parseString=a,y.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},y.serialize={"application/x-www-form-urlencoded":i,"application/json":JSON.stringify},y.parse={"application/x-www-form-urlencoded":a,"application/json":JSON.parse},d.prototype.get=function(t){return this.header[t.toLowerCase()]},d.prototype._setHeaderProperties=function(t){var e=this.header["content-type"]||"";this.type=c(e);var r=l(e);for(var n in r)this[n]=r[n]},d.prototype._parseBody=function(t){var e=y.parse[this.type];return!e&&u(this.type)&&(e=y.parse["application/json"]),e&&t&&(t.length||t instanceof Object)?e(t):null},d.prototype._setStatusProperties=function(t){1223===t&&(t=204);var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.notFound=404==t,this.forbidden=403==t},d.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,n="cannot "+e+" "+r+" ("+this.status+")",i=new Error(n);return i.status=this.status,i.method=e,i.url=r,i},y.Response=d,v(f.prototype);for(var b in m)f.prototype[b]=m[b];f.prototype.type=function(t){return this.set("Content-Type",y.types[t]||t),this},f.prototype.responseType=function(t){return this._responseType=t,this},f.prototype.accept=function(t){return this.set("Accept",y.types[t]||t),this},f.prototype.auth=function(t,e,r){switch(r||(r={type:"basic"}),r.type){case"basic":var n=btoa(t+":"+e);this.set("Authorization","Basic "+n);break;case"auto":this.username=t,this.password=e}return this},f.prototype.query=function(t){return"string"!=typeof t&&(t=i(t)),t&&this._query.push(t),this},f.prototype.attach=function(t,e,r){return this._getFormData().append(t,e,r||e.name),this},f.prototype._getFormData=function(){return this._formData||(this._formData=new h.FormData),this._formData},f.prototype.callback=function(t,e){var r=this._callback;this.clearTimeout(),r(t,e)},f.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},f.prototype._timeoutError=function(){var t=this._timeout,e=new Error("timeout of "+t+"ms exceeded");e.timeout=t,this.callback(e)},f.prototype._appendQueryString=function(){var t=this._query.join("&");t&&(this.url+=~this.url.indexOf("?")?"&"+t:"?"+t)},f.prototype.end=function(t){var e=this,r=this.xhr=y.getXHR(),i=this._timeout,o=this._formData||this._data;this._callback=t||n,r.onreadystatechange=function(){if(4==r.readyState){var t;try{t=r.status}catch(e){t=0}if(0==t){if(e.timedout)return e._timeoutError();if(e._aborted)return;return e.crossDomainError()}e.emit("end")}};var a=function(t,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=t,e.emit("progress",r)};if(this.hasListeners("progress"))try{r.onprogress=a.bind(null,"download"),r.upload&&(r.upload.onprogress=a.bind(null,"upload"))}catch(t){}if(i&&!this._timer&&(this._timer=setTimeout(function(){e.timedout=!0,e.abort()},i)),this._appendQueryString(),this.username&&this.password?r.open(this.method,this.url,!0,this.username,this.password):r.open(this.method,this.url,!0),this._withCredentials&&(r.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof o&&!this._isHost(o)){var s=this._header["content-type"],c=this._serializer||y.serialize[s?s.split(";")[0]:""];!c&&u(s)&&(c=y.serialize["application/json"]),c&&(o=c(o))}for(var l in this.header)null!=this.header[l]&&r.setRequestHeader(l,this.header[l]);return this._responseType&&(r.responseType=this._responseType),this.emit("request",this),r.send("undefined"!=typeof o?o:null),this},y.Request=f,y.get=function(t,e,r){var n=y("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},y.head=function(t,e,r){var n=y("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},y.options=function(t,e,r){var n=y("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},y.del=p,y.delete=p,y.patch=function(t,e,r){var n=y("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},y.post=function(t,e,r){var n=y("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},y.put=function(t,e,r){var n=y("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}},function(t,e,r){var n=r(229);e.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},e.parse=function(t){return this._parser=t,this},e.serialize=function(t){return this._serializer=t,this},e.timeout=function(t){return this._timeout=t,this},e.then=function(t,e){if(!this._fullfilledPromise){var r=this;this._fullfilledPromise=new Promise(function(t,e){r.end(function(r,n){r?e(r):t(n)})})}return this._fullfilledPromise.then(t,e)},e.catch=function(t){return this.then(void 0,t)},e.use=function(t){return t(this),this},e.get=function(t){return this._header[t.toLowerCase()]},e.getHeader=e.get,e.set=function(t,e){if(n(t)){for(var r in t)this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},e.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},e.field=function(t,e){if(null===t||void 0===t)throw new Error(".field(name, val) name can not be empty");if(n(t)){for(var r in t)this.field(r,t[r]);return this}if(null===e||void 0===e)throw new Error(".field(name, val) val can not be empty");return this._getFormData().append(t,e),this},e.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},e.withCredentials=function(){return this._withCredentials=!0,this},e.redirects=function(t){return this._maxRedirects=t,this},e.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},e._isHost=function(t){var e={}.toString.call(t);switch(e){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}},e.send=function(t){var e=n(t),r=this._header["content-type"];if(e&&n(this._data))for(var i in t)this._data[i]=t[i];else"string"==typeof t?(r||this.type("form"),r=this._header["content-type"],"application/x-www-form-urlencoded"==r?this._data=this._data?this._data+"&"+t:t:this._data=(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(r||this.type("json"),this)}},function(t,e){function r(t){return null!==t&&"object"==typeof t}t.exports=r},function(t,e){function r(t,e,r){return"function"==typeof r?new t("GET",e).end(r):2==arguments.length?new t("GET",e):new t(e,r)}t.exports=r},function(t,e,r){(function(t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n;n=r(232);e.apiUrl=t.env.SKIP_CDN?n.url:n.cdn}).call(e,r(5))},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.url="https://tracker.spot.im",e.cdn="https://www.spot.im/api/tracker"},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function parseSpotOptions(code){var hostOptions={};if(code)try{!function(c){try{var SPOTIM_OPTIONS={};eval(c),hostOptions=Object.assign(hostOptions,SPOTIM_OPTIONS)}catch(t){console.error("Failed to parse host options")}}(code)}catch(t){console.error("Failed to parse host options")}return hostOptions}function getHostOptions(){var t=hostOptions.resolve();return(0,_defaults.filterValidOptions)(t)}Object.defineProperty(exports,"__esModule",{value:!0});var _classCallCheck2=__webpack_require__(135),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=__webpack_require__(136),_createClass3=_interopRequireDefault(_createClass2),_class,_temp;exports.parseSpotOptions=parseSpotOptions,exports.getHostOptions=getHostOptions;var _defaults=__webpack_require__(234),_deepExtendObject=__webpack_require__(242),HostOptions=(_temp=_class=function(){function t(){(0,_classCallCheck3.default)(this,t),this.isExecuted=!1,this.hostOptions={}}return(0,_createClass3.default)(t,[{key:"resolve",value:function(){if(!this.isExecuted){this.isExecuted=!0;for(var e=document.querySelectorAll('script[type="'+t.scriptType+'"]'),r=0;r0&&(_.spot_im_state="typing"),null!==p&&(_.spot_im_scroll_to_comments=p),e=d.default.buildUrl(e,_),g&&(e=i({url:e,redirectParams:g})),e}Object.defineProperty(e,"__esModule",{value:!0});var a=r(145),s=n(a),u=r(244),c=n(u);e.makeRedirectUrl=i,e.buildSpotImUrl=o;var l=r(88),d=n(l)},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t}function o(t){var e=t.initialStyle,r=void 0===e?{}:e,n=t.onClose,i=void 0===n?function(){}:n,o=document.createElement("div");Object.assign(o.style,(0,s.default)({position:"absolute",transform:"translateX(-50%)",height:"0px",width:"0px",overflow:"hidden",zIndex:1},r)),o.className="sprc-lp",o.innerHTML='\n\t\t\n\t\t
\n\t\t\tAdvertisement\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t';var a=document.createElement("div");return Object.assign(a.style,{position:"absolute",top:"0px",left:"50%",transform:"translateX(-50%)"}),o.querySelector(".sprc-lp-close").addEventListener("click",i),o.appendChild(a),document.body.appendChild(o),{container:a,element:o}}Object.defineProperty(e,"__esModule",{value:!0}),e.Player=void 0;var a=r(102),s=n(a),u=r(205),c=n(u),l=r(135),d=n(l),f=r(136),p=n(f),v=r(204),m=n(v),g=r(213),y=n(g),_=r(116),b=n(_),w=r(142),E=100,A=function(t){function e(){return(0,d.default)(this,e),(0,m.default)(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:"union",value:function(t){var r=Math.min(this.top,t.top),n=Math.min(this.left,t.left),i=Math.max(this.right,t.right),o=Math.max(this.bottom,t.bottom);return new e({top:r,left:n,right:i,bottom:o})}}]),e}(w.Rect),k=function(){function t(e){(0,d.default)(this,t),this.value=e,this._changed=!1}return(0,p.default)(t,[{key:"set",value:function(t){this.value!==t&&(this._changed=!0),this.value=t}},{key:"get",value:function(){return this.value}},{key:"reset",value:function(){this._changed=!1}},{key:"changed",value:function(){return this._changed}},{key:"differentThan",value:function(t){return this.value===t}}]),t}(),T=function(t){return Math.ceil(t/(1e3/60))},O=600,S=T(O),I=300,x=(T(I),function(){function t(e){(0,d.default)(this,t),this.domNode=e}return(0,p.default)(t,[{key:"getDomNode",value:function(){return this.domNode}},{key:"setHeight",value:function(t){this.setStyle({height:t+"px"})}},{key:"getHeight",value:function(){return parseInt(window.getComputedStyle(this.domNode).height)}},{key:"setWidth",value:function(t){this.setStyle({width:h+"px"})}},{key:"getWidth",value:function(){return parseInt(window.getComputedStyle(this.domNode).width)}},{key:"setPosition",value:function(t){this.setStyle({position:""+t})}},{key:"getPosition",value:function(){return window.getComputedStyle(this.domNode).position}},{key:"setTop",value:function(t){this.setStyle({top:t+"px"})}},{key:"getTop",value:function(){return parseInt(window.getComputedStyle(this.domNode).top)}},{key:"setLeft",value:function(t){this.setStyle({left:t+"px"})}},{key:"getLeft",value:function(){return parseInt(window.getComputedStyle(this.domNode).left)}},{key:"setStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign(this.domNode.style,t)}}]),t}()),P=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.update,i=void 0===n?function(){}:n;(0,d.default)(this,e);var o=(0,m.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.update=i,o}return(0,y.default)(e,t),(0,p.default)(e,[{key:"setHeight",value:function(t){(0,c.default)(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setHeight",this).call(this,t),this.update(t+"px")}},{key:"align",value:function(t){var e=t.documentTop;t.viewportTop,t.isVisible;this.setPosition("absolute"),this.setTop(e)}}]),e}(x),C=function(){function t(e){var r=e.element;(0,d.default)(this,t),this.element=r,this.props={state:new k("hidden"),alignment:new k("none"),position:new k(null),top:new k(null),left:new k(null),height:new k(null),width:new k(null)},this.alive=!0,this.frames=[]}return(0,p.default)(t,[{key:"kill",value:function(){this.alive=!1}},{key:"growTo",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return new Promise(function(n){if(e._growing)n();else{e._growing=!0;var o=function(t,e){return i(e)*t},a=function(t,e){return t-o(t,e)},u=e.element.getHeight(),c=Math.abs(t-u),l=(t||0)>u;if(c>0){for(var d=0;d0&&void 0!==arguments[0]?arguments[0]:{},r=function(t,e){return i(e)*t},n=function(t,e){return t-r(t,e)},o={height:this.element.getHeight(),width:this.element.getWidth(),position:this.element.getPosition(),top:this.element.getTop(),left:this.element.getLeft()},a=(0,s.default)({state:this.props.state.get(),alignment:this.props.alignment.get(),position:this.props.position.get(),top:this.props.top.get(),left:this.props.left.get(),height:this.props.height.get(),width:this.props.width.get()},o,e),u="hidden"===this.props.state.get()&&"expanded"===a.state,c="hidden"===this.props.state.get()&&"collapsed"===a.state,l="expanded"===this.props.state.get()&&"collapsed"===a.state,d="collapsed"===this.props.state.get()&&"expanded"===a.state,f=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=t.element.getHeight(),a=Math.abs((t.props.height.get()||0)-o),u=(t.props.height.get()||0)>o;if(a>0){t.frames[i]=t.frames[i]||{};for(var c=i;cthis.props.height.get()/4){for(var b=this.element.getHeight(),w=this.props.height.get(),E=0;En.getHeight()){i.position="fixed",i.top=this.topOffset;this.stickyArea.getViewRect()}else{i.position="absolute";var o=this.staticArea.getViewRect();r.top>0?i.top=e.top:i.top=e.bottom-t.getDocRect().getHeight(),i.left=o.left+(o.right-o.left)/2}return i}}]),t}(),L=function(){function t(e){var r=e.area;(0,d.default)(this,t),this.observedArea=r,this.startViewTime=null,this.lastViewTime=null,this.achieved=!1}return(0,p.default)(t,[{key:"didAchieveViewability",value:function(){return this.achieved}},{key:"setDesiredDuration",value:function(t){this.desiredDuration=t}},{key:"start",value:function(){this.achieved=!1,this.reset()}},{key:"update",value:function(){if(!this.achieved){var t=parseInt(this.lastViewTime)-parseInt(this.startViewTime);!isNaN(t)&&t>this.desiredDuration&&(this.achieved=!0),this.observedArea.getVisiblePercent()>.5?(this.startViewTime||(this.startViewTime=Date.now()),this.lastViewTime=Date.now()):this.startViewTime=null}}},{key:"reset",value:function(){this.lastViewTime=null,this.startViewTime=null}}]),t}(),D=function(){function t(e){var r=e.playArea,n=e.stickyRange,i=e.staticArea,o=e.topOffset;(0,d.default)(this,t),this.playArea=r,this.stickyRange=n,this.staticArea=i,this.requireSticky=!1,this.firstStaticEntranceDone=!1,this.currentPosition="absolute",this.topOffset=o,this.topOffsetReached=!1}return(0,p.default)(t,[{key:"reset",value:function(){this.requireSticky=!1,this.firstStaticEntranceDone=!1}},{key:"setRequireSticky",value:function(t){this.requireSticky=t}},{key:"alignToStatic",value:function(){var t=this.staticArea.getStyleToAlign(this.playArea);this.playArea.interpolateTo((0,s.default)({alignment:"static"},t,{toArea:this.staticArea})),this.staticArea.getViewRect().top>=this.topOffset&&(this.topOffsetReached=!0),this.playArea.getVisiblePercent()>=1&&this.topOffsetReached&&(this.firstStaticEntranceDone=!0)}},{key:"alignToSticky",value:function(){var t=this.stickyRange.getStyleToAlign(this.playArea);this.playArea.interpolateTo((0,s.default)({alignment:"sticky"},t))}},{key:"alignAsNeeded",value:function(){this.stickyRange.hasElement()&&this.requireSticky&&this.firstStaticEntranceDone?this.alignToSticky():this.alignToStatic()}},{key:"changedPositionForViewabilityPursuit",value:function(){return"absolute"===this.currentPosition?"fixed"===this.playArea.getElement().getPosition()&&(this.currentPosition="fixed",!0):"absolute"===this.playArea.getElement().getPosition()&&(this.currentPosition="absolute",!0)}},{key:"getDesiredViewabilityDuration",value:function(){return"fixed"===this.currentPosition?3e3:2e3}}]),t}(),j=function(){function t(e){var r=e.size,n=e.playArea,i=e.stickyRange,o=e.staticArea;(0,d.default)(this,t),this.size=r,this.playArea=n,this.stickyRange=i,this.staticArea=o}return(0,p.default)(t,[{key:"expand",value:function(){this.playArea.interpolateTo({state:"expanded",width:this.size.width,height:this.size.height})}},{key:"collapse",value:function(){this.playArea.interpolateTo({state:"collapsed",width:this.size.width,height:0})}}]),t}(),N=function(){function t(e){var r=e.size,n=e.playArea,i=e.areaToSync;(0,d.default)(this,t),this.playArea=n,this.areaToSync=i,this.size=r,this.alive=!0}return(0,p.default)(t,[{key:"update",value:function(t){var e=this,r=this.areaToSync.getViewRect();if(t){var n=(this.areaToSync.getViewRect().getArea(),this.playArea.getViewRect().getArea());this.areaToSync.getVisiblePercent(),this.areaToSync.viewDistanceTo(this.playArea);if(n>0){var i=E;if(r.top>=i){var o=this.playArea.getElement().getHeight();this.areaToSync.getElement().setHeight(o)}}else r.top>=0&&this.areaToSync.growTo(0);this.areaToSync.interpolate()}else this.alive&&r.top>=0&&this.areaToSync.growTo(0).then(function(){return e.destroy()})}},{key:"tryCompleteSync",value:function(){var t=this;requestAnimationFrame(function(){t.update(!1),t.alive&&t.tryCompleteSync()})}},{key:"destroy",value:function(){this.alive=!1}}]),t}();e.Player=function(){function t(e){var r=e.findPlaceholders,n=void 0===r?Promise.resolve(null):r,i=e.updatePlaceholder,a=void 0===i?Promise.resolve(null):i,s=e.findStickyElement,u=void 0===s?Promise.resolve(null):s,c=e.findPlaceholderTop,l=void 0===c?Promise.resolve(null):c,f=e.staticDomNode,p=e.onClose,h=e.isSticky,v=void 0!==h&&h,m=e.isInread,g=void 0!==m&&m;(0,d.default)(this,t),this.onClose=p;var y=o({initialStyle:this.getInitialStyle(),onClose:p}),_=y.container,b=y.element;this.container=new x(_),this.element=new x(b),this.staticDomNode=f,this.findStickyElement=u,g?(this.findPlaceholders=n,this.updatePlaceholder=a,this.findPlaceholderTop=l):(this.findPlaceholders=function(){return Promise.resolve(null)},this.updatePlaceholder=function(){return Promise.resolve(!0)},this.findPlaceholderTop=function(){return Promise.resolve(null)}),this.shouldPlay=!0,this.isSticky=v,this.isInread=g}return(0,p.default)(t,[{key:"getInitialStyle",value:function(){return{}}},{key:"getTopOffset",value:function(){return b.default?window.innerHeight/2-this.size.height/2:E}},{key:"getAdContainer",value:function(){return this.container.getDomNode()}},{key:"tick",value:function(){(!this.cancelTime||this.cancelTime-Date.now()>0)&&(this.tickRaf=window.requestAnimationFrame(this.tick.bind(this))),this.shouldPlay&&(this.observer.setDesiredDuration(this.alignResolver.getDesiredViewabilityDuration()),this.isSticky?this.observer.didAchieveViewability()?this.alignResolver.setRequireSticky(!1):this.alignResolver.setRequireSticky(!0):this.alignResolver.setRequireSticky(!1),this.alignResolver.alignAsNeeded(),this.alignResolver.changedPositionForViewabilityPursuit()&&(this.observer.reset(),this.observer.setDesiredDuration(this.alignResolver.getDesiredViewabilityDuration())),this.playArea.interpolate(),this.displaySync.update(!0),this.observer.update())}},{key:"begin",value:function(t){var e=this,r=t.width,n=t.height;this.cancelTime=null,this.size={width:r,height:n},this.playArea=new C({element:this.element}),this.findPlaceholders().then(function(t){e.findStickyElement().then(function(n){var i=new x(n);e.stickyArea=new C({element:i});var o=new x(e.staticDomNode),a=new C({element:o}),u=(a.getViewRect(),(t||[]).filter(function(t){return t.viewportTop>=e.getTopOffset()}));if(t&&t.length>0&&a.getViewRect().top0){var c=u[0],l=c.documentTop,d=c.frameUniqueId,f=c.isVisible,p=c.placeholderId,h=c.viewportTop,v=e.updatePlaceholder.bind(null,d,p),m=document.createElement("div"),g=e.stickyArea.getStyleToAlign();Object.assign(m.style,(0,s.default)({},a.getStyleToAlign(),{width:r+"px",left:g.left-r/2+"px"})),o=new x(m),m.setAttribute("data-spotim-pid",p),m.setAttribute("data-spotim-fid",d),document.body.appendChild(m),o=new P(m,{update:v}),o.align({documentTop:l,viewportTop:h,isVisible:f}),a=new M({element:o,update:v})}e.stickyRange=new R({stickyArea:e.stickyArea,staticArea:a,topOffset:e.getTopOffset()}),e.observer=new L({area:e.playArea}),e.alignResolver=new D({playArea:e.playArea,stickyRange:e.stickyRange,staticArea:a,topOffset:e.getTopOffset()}),e.displayResolver=new j({size:e.size,playArea:e.playArea,stickyRange:e.stickyRange,staticArea:a}),e.displaySync=new N({size:e.size,playArea:e.playArea,areaToSync:a}),e.alignResolver.alignAsNeeded(),e.displayResolver.expand(),e.tickRaf=window.requestAnimationFrame(e.tick.bind(e))})})}},{key:"end",value:function(){this.displayResolver.collapse(),this.displaySync.tryCompleteSync()}},{key:"pause",value:function(){this.shouldPlay=!1}},{key:"resume",value:function(){this.shouldPlay=!0}}]),t}()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){window.spotimOverrideAdDisplay=a}function o(t,e){switch(t){case"displayMode":if(["show-ad","hide-ad"].indexOf(e)===-1)throw new Error("Unknown adDisplay: "+e+". Valid values: show, hide");break;case"size":if(["300x250","400x300"].indexOf(e)===-1)throw new Error("Unknown sie: "+e+". Valid values: 300x250, 400x300");break;case"row":if([1,2,3,4,5].indexOf(e)===-1)throw new Error("Unknown row: "+e+". Valid values: 1, 2, 3");break;case"slot":if(["start","end"].indexOf(e)===-1)throw new Error("Unknown slot: "+e+". Valid values: start, end")}return!0}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.size,n=void 0===r?"300x250":r,i=e.row,a=void 0===i?1:i,s=e.slot,c=void 0===s?"start":s;o("displayMode",t),o("row",a),o("slot",c),"show-ad"===t&&o("size",n);var l=300,d=250;"400x300"===n&&(l=400,d=300);var f="show",p="hide";"show-ad"===t&&(f="hide",p="show"),u.default.trigger("update-ad-slot",{server:"",row:a,pos:c,width:l,height:d,itemDisplay:f,adDisplay:p})}Object.defineProperty(e,"__esModule",{value:!0}),e.exposePublicApi=i;var s=r(148),u=n(s)},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.initialize=void 0;var o=r(8),a=i(o),s=r(102),u=i(s),c=r(11),l=i(c),d=(e.initialize=function(){var t=(0,l.default)(a.default.mark(function t(e,r,n,i){var o,s,c,l,d,v,_,E,O,S,I,x;return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=m.default.getKey(window.location.href,"sprcop"),b.checkIfAdsAllowed(n,o)){t.next=4;break}return k("Ads not allowed"),t.abrupt("return");case 4:if(b.subscribeToLayoutEvents(r),s=(0,u.default)({},h.defaults,(0,f.getHostOptions)(),(0,p.getElementOptions)(r)),c=s.allowVA,k("allowVA: "+c+". x-options: "+(0,f.getHostOptions)().allowVA+"; element options: "+(0,p.getElementOptions)(r).allowVA),c){t.next=9;break}return t.abrupt("return");case 9:if(!i){t.next=29;break}return l=!!m.default.getKey(window.location.href,"draft_mode"),d=n.getAvailableSlots(r,(0,g.isPhone)()?"mobile":"desktop"),k("Available slots",d),t.next=15,b.fetchUpdatedAdsConfig(e,i);case 15:i=t.sent,v=A.default.get(i,"spot.features.recirculation.display_over_video_enabled"),_=A.default.get(i,"spot.features.recirculation.display_over_video_type"),E=A.default.get(i,"spot.features.recirculation.display_over_video_code"),O=A.default.get(i,"spot.features.recirculation.passback"),S=null,v&&(S=(0,w.createPlayer)(E,"Display overlay player","300","250","display","DFP")),I=null,o&&(I=JSON.parse(atob(o))),d.forEach(function(t){var o=(0,g.resolveUserPlatform)(),a={isDraftModeUrl:l,sprcopPlayer:I},s=(0,g.resolveTag)(t,o,i,a);if(s){if(Object.keys(T).length>0&&(0,g.isPhone)())return void k("only one add is allowed on mobile disabling player",s);var u=n.getSponsoredPlayer();u&&(s=u),window.location.search.indexOf("spotim_show_player")>-1&&(s.show=!0,t.element.setAttribute("data-spotim-force-show",""));var c=null;O&&s.passback_enabled&&(c=(0,w.createPlayer)(s.passback_code,"Passback player","300","250","display","DFP")),T[t.name]=new y.AdsPlayer({spotId:e,player:s,slot:t,overlayPlayer:S,passbackPlayer:c,rcElement:r})}}),Object.keys(T).length>0&&b.adjustLayoutForAds(r),Object.keys(T).forEach(function(t){T[t].initialize()}),t.next=30;break;case 29:k("no ads config");case 30:x=function t(){window.$$SPOTIM_ACTIVATE_RC_CALLED$$=!0,document.removeEventListener(w.ACTIVATE_MONETIZATION_EVENT,t)},document.addEventListener(w.ACTIVATE_MONETIZATION_EVENT,x,!1),r.setAttribute("data-spotim-engine",!0);case 33:case"end":return t.stop()}},t,this)}));return function(e,r,n,i){return t.apply(this,arguments)}}(),r(112)),f=r(233),p=r(248),h=r(234),v=r(88),m=i(v),g=r(98),y=r(249),_=r(261),b=n(_),w=r(115),E=r(262),A=i(E),k=(0,d.getDebugger)("ads");window.$$SPOTIM_ACTIVATE_RC_CALLED$$=!1;var T={}},function(t,e,r){"use strict";function n(t){var e=Object.keys(o).reduce(function(e,r){var n=t.getAttribute(r);if(n){var i=o[r];switch(n){case"true":n=!0;break;case"false":n=!1}e[i]=n}return e},{});return(0,i.filterValidOptions)(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.supportedAttributesMap=void 0,e.getElementOptions=n;var i=r(234),o=e.supportedAttributesMap={"data-spot-id":"spotId","data-post-id":"postId","data-ios-url":"iosUrl","data-android-url":"androidUrl","data-conversation-id":"conversationId","data-implementation-id":"implementationId","data-disqus-identifier":"disqusIdentifier","data-disqus-url":"disqusUrl","data-gigya-streamid":"gigyaStreamId","data-gigya-categoryid":"gigyaCategoryId","data-wp-import-endpoint":"wpImportEndpoint","data-facebook-url":"facebookUrl","data-messages-count":"pageSize","data-sort-by":"conversationSort","data-post-url":"postUrl","data-load-more-in-modal":"loadMoreInModal","data-social-reviews":"isStarsRatingEnabled","data-lazy-load":"isLazyLoad","data-live-blog":"isLiveBlogConversation","data-live-event-code":"liveEventCode","data-reporters":"reporters","data-reporter-badge-text":"reporterBadgeText","data-refer-traffic":"referTraffic","data-disable-navigation":"disableNavigation","data-community-question":"conversationCommunityQuestion","data-allow-va":"allowVA"}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.AdsPlayer=void 0;var i=r(135),o=n(i),a=r(136),s=n(a),u=r(112),c=r(143),l=r(250),d=r(148),f=n(d),p=r(88),h=n(p),v=r(98),m=r(150),g=r(151),y=r(194),_=(r(97),r(115)),b=(0,u.getDebugger)("ads-player"),w=(0,l.once)(function(t){return(0,g.captureEvent)(t)}),E=function(t,e){return"video"===t.type&&e&&"LQKD"!==t.server};e.AdsPlayer=function(){function t(e){var r=e.spotId,n=e.player,i=e.slot,a=e.rcElement,s=e.overlayPlayer,u=e.isOverlayPlayer,c=e.passbackPlayer,l=e.isPassbackPlayer;(0,o.default)(this,t),this.spotId=r,this.player=n,this.slot=i,this.overlayPlayer=s,this.isOverlayPlayer=u,this.passbackPlayer=c,this.isPassbackPlayer=l,this.rcElement=a,this.deferred=n.waitForEvent&&!window.$$SPOTIM_ACTIVATE_RC_CALLED$$,this.createPlacement=function(){},this.isShowing=!1}return(0,s.default)(t,[{key:"initialize",value:function(){var t=this;if(b("initialize player",this.player),this.deferred){b("player is deferred");var e=function e(){b(_.ACTIVATE_MONETIZATION_EVENT+" activation event fired"),t.prepareForActivation(),document.removeEventListener(_.ACTIVATE_MONETIZATION_EVENT,e)};document.addEventListener(_.ACTIVATE_MONETIZATION_EVENT,e,!1)}else this.player.delayLoad?(b("player load is delayed by "+1e3*this.player.delayLoad),setTimeout(function(){t.prepareForActivation()},1e3*this.player.delayLoad)):this.prepareForActivation()}},{key:"prepareForActivation",value:function(){try{var t=this.player.server.toLowerCase();"dfp"===t&&(t="display");var e=r(251)("./"+t+"/index.js");this.PlacementClass=e.Placement;var n=!0;if(!n&&document.querySelector('[data-spotim-module="recirculation"] [data-spotim-engine-type="'+t+'"]'))return void b("Another RC loaded, but type '"+t+"' doesn't support multiple placements");this.slot.element.setAttribute("data-spotim-engine-type",t);var i="[data-spotim-slot-placement]";this.isOverlayPlayer?i="[data-spotim-overlay-slot-placement]":this.isPassbackPlayer&&(i="[data-spotim-passback-slot-placement]"),this.adContainer=this.slot.element.querySelector(i),f.default.trigger("ad-container-active",this),this.activate()}catch(t){b("Ads initialize error",t),(0,c.reportError)(t,{errorSource:"demand-initialize",demand:this.player.server})}}},{key:"activate",value:function(){var t=this;return b("Ads will initialize for "+this.spotId+" with demand "+this.player.server),""===this.player.code.trim()?void b("Received empty tag. Doing nothing.",this.player):(w({type:"engine-monetization-load"}),(0,g.captureEvent)({type:"engine-will-initialize",itemIndex:this.slotName,engineVendorName:this.player.server,engineTagId:this.player.id}),void this.placeAd({onEvent:function(t,e,r,n){b("Ads event: "+t+", for demand: "+e+", tagName: "+r+", in itemIndex: "+n),(0,g.captureEvent)({type:t,itemIndex:n})}}).then(function(e){(0,y.observeElement)(e,function(){for(var t=arguments.length,r=Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=(r.onEvent,h.default.getKey(window.location.href.toLowerCase(),"utm_source")),i=(0,v.resolveUserPlatform)(),o={domain:window.location.hostname,os:i,spotId:this.spotId,utm:n||""};return this.placement=new this.PlacementClass(this.adContainer,{slot:this.slot,row:this.slot.row,pos:this.slot.pos,player:this.player,subid:o,utmSource:n,spotId:this.spotId,clientPlatform:i,itemIndex:this.slotName,pageUrl:document.location.href,width:this.player.size.width,height:this.player.size.height,isOverlayPlayer:this.isOverlayPlayer,isPassbackPlayer:this.isPassbackPlayer,adsPlayer:this,onContentVideoStart:function(t){e.isShowing=!0,f.default.trigger(m.AD_DISPLAY_STARTED,{width:e.player.size.width,height:e.player.size.height,row:e.slot.row,pos:e.slot.pos}),f.default.trigger("update-ad-slot",{server:e.player.server,row:e.slot.row,pos:e.slot.pos,width:e.player.size.width,height:e.player.size.height,itemDisplay:"hide",adDisplay:"show"})},onContentVideoFinish:function(t){e.isShowing=!1,f.default.trigger(m.AD_DISPLAY_FINISHED,{width:e.player.size.width,height:e.player.size.height,row:e.slot.row,pos:e.slot.pos}),f.default.trigger("update-ad-slot",{server:e.player.server,width:e.player.size.width,height:e.player.size.height,row:e.slot.row,pos:e.slot.pos,itemDisplay:"show",adDisplay:"hide"})},onAdTagLoad:function(t,e,r){},onAdTagLoadSuccess:function(t,e,r){},onAdTagLoadFail:function(t,e,r){},onAdDisplayStart:function(t,r,n){e.isShowing=!0,f.default.trigger(m.AD_DISPLAY_STARTED,{width:e.player.size.width,height:e.player.size.height,row:e.slot.row,pos:e.slot.pos}),f.default.trigger("update-ad-slot",{server:e.player.server,row:e.slot.row,pos:e.slot.pos,width:e.player.size.width,height:e.player.size.height,itemDisplay:"hide",adDisplay:"show"})},onAdDisplayFinish:function(t,r,n){e.isShowing=!1,f.default.trigger(m.AD_DISPLAY_FINISHED,{width:e.player.size.width,height:e.player.size.height,row:e.slot.row,pos:e.slot.pos}),f.default.trigger("update-ad-slot",{server:e.player.server,width:e.player.size.width,height:e.player.size.height,row:e.slot.row,pos:e.slot.pos,itemDisplay:"show",adDisplay:"hide"})},onPlayerDone:function(t,r,n){f.default.trigger("update-ad-slot",{server:e.player.server,width:300,height:250,row:e.slot.row,pos:e.slot.pos,itemDisplay:"hide",adDisplay:"show"})},onAdImpression:function(t,e,r){},onAdViewableImpression:function(t,e,r){},onAdViewableIab:function(t,e,r){},onAdViewedFirstQuartile:function(t,e,r){},onAdClickThrough:function(t,e,r){},onAdNoFill:function(t,e,r){},onDispose:function(){b("Disposing "+(e.isOverlayPlayer?"overlay player":"")+" "+e.player.server+" placement"),Object.keys(e.placement).forEach(function(t){t.startsWith("on")&&(e.placement[t]=function(){})}),e.adContainer.innerHTML=""}}),this.placement.create().then(function(){e.passbackPlayer&&(e.placement.passbackAdsPlayer=new t({spotId:e.spotId,player:e.passbackPlayer,slot:e.slot,rcElement:e.rcElement,isPassbackPlayer:!0})),E(e.player,e.overlayPlayer)&&(b("Ads Player: Overlay player detected. Creating overlay ads player"),Object.assign(e.adContainer.style,{opacity:0}),e.placement.overlayAdsPlayer=new t({spotId:e.spotId,player:e.overlayPlayer,slot:e.slot,rcElement:e.rcElement,isOverlayPlayer:!0}),e.placement.overlayAdsPlayer.initialize())}).catch(function(t){throw t})}}]),t}()},function(t,e){"use strict";function r(t,e){var r;return function(){return t&&(r=t.apply(e||this,arguments),t=null),r}}Object.defineProperty(e,"__esModule",{value:!0}),e.once=r},function(t,e,r){function n(t){return r(i(t))}function i(t){return o[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var o={"./cedato/index.js":252,"./display/index.js":253,"./inline/index.js":255,"./sr/index.js":256};n.keys=function(){return Object.keys(o)},n.resolve=i,t.exports=n,n.id=251},function(module,exports,__webpack_require__){"use strict";function _interopRequireWildcard(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Placement=exports.SUPPORT_MULTI_PLACEMENTS=exports.ADS_DEMAND_NAME=void 0;var _toConsumableArray2=__webpack_require__(83),_toConsumableArray3=_interopRequireDefault(_toConsumableArray2),_classCallCheck2=__webpack_require__(135),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=__webpack_require__(136),_createClass3=_interopRequireDefault(_createClass2),_debug=__webpack_require__(112),_pubsub=__webpack_require__(148),_pubsub2=_interopRequireDefault(_pubsub),_index=__webpack_require__(253),_utils=__webpack_require__(254),utils=_interopRequireWildcard(_utils),adsDebug=(0,_debug.getDebugger)("ads"),ADS_DEMAND_NAME=exports.ADS_DEMAND_NAME="Cedato",SUPPORT_MULTI_PLACEMENTS=exports.SUPPORT_MULTI_PLACEMENTS=!1,initPassbackHandler=function(t,e){adsDebug("cedato: initPassbackHandler()",t,e);var r=document.createElement("iframe");r.setAttribute("width","300"),r.setAttribute("height","250"),r.style.border="none";var n=t.adContainer.parentNode.querySelector("[data-spotim-passback-slot-placement]");adsDebug("cedato: initPassbackHandler() passbackSlot",n),n&&n.appendChild(r);var i=(0,_index.normalizeDisplayConfig)(e.innerHTML,t.pageUrl,t.subid,{reloadAfter:t.player.reload_after}),o=i.replace(/\\\//g,"/"),a=""+o+"";r.contentWindow.document.open(),r.contentWindow.document.write(a),r.contentWindow.document.close(),adsDebug("cedato: initPassbackHandler() display:none on adContainer",t.adContainer),Object.assign(t.adContainer.style,{display:"none"}),_pubsub2.default.trigger("update-ad-slot",{server:t.player.server,row:t.row,pos:t.pos,width:300,height:250,itemDisplay:"hide",adDisplay:"show"})},Placement=exports.Placement=function(){function Placement(t,e){var r=e.row,n=e.pos,i=e.player,o=void 0===i?{}:i,a=e.subid,s=void 0===a?{}:a,u=e.itemIndex,c=void 0===u?-1:u,l=e.width,d=void 0===l?300:l,f=e.height,p=void 0===f?250:f,h=e.pageUrl,v=void 0===h?"":h,m=e.bannerHtml,g=void 0===m?"":m,y=e.onContentVideoStart,_=void 0===y?function(){}:y,b=e.onContentVideoFinish,w=void 0===b?function(){}:b,E=e.onAdTagLoad,A=void 0===E?function(){}:E,k=e.onAdTagLoadSuccess,T=void 0===k?function(){}:k,O=e.onAdTagLoadFail,S=void 0===O?function(){}:O,I=e.onAdDisplayStart,x=void 0===I?function(){}:I,P=e.onAdDisplayFinish,C=void 0===P?function(){}:P,M=e.onAdImpression,R=void 0===M?function(){}:M,L=e.onAdViewableImpression,D=void 0===L?function(){}:L,j=e.onAdViewableIab,N=void 0===j?function(){}:j,F=e.onAdViewedFirstQuartile,V=void 0===F?function(){}:F,q=e.onAdClickThrough,U=void 0===q?function(){}:q,H=e.onAdNoFill,z=void 0===H?function(){}:H,B=e.onDispose,$=void 0===B?function(){}:B;(0,_classCallCheck3.default)(this,Placement),Object.assign(this,{adContainer:t,row:r,pos:n,player:o,itemIndex:c,width:d,height:p,pageUrl:v,onContentVideoStart:_,onContentVideoFinish:w,onAdTagLoad:A,onAdTagLoadFail:S,onAdDisplayStart:x,onAdDisplayFinish:C,onAdImpression:R,onAdViewableImpression:D,onAdViewableIab:N,onAdViewedFirstQuartile:V,onAdClickThrough:U,onAdNoFill:z,onDispose:$,onAdTagLoadSuccess:T,bannerHtml:g,subid:s})}return(0,_createClass3.default)(Placement,[{key:"showPassback",value:function(t,e,r){adsDebug("cedato: showPassback()",t,e,r),this.overlayAdsPlayer&&(adsDebug("cedato: showPassback(): disposing overlay"),this.overlayAdsPlayer.placement.onDispose()),this.onAdDisplayStart(ADS_DEMAND_NAME,e,this.itemIndex),_pubsub2.default.trigger("update-ad-slot",{server:this.player.server,row:this.row,pos:this.pos,width:300,height:250,itemDisplay:"hide",adDisplay:"show"}),r&&r.style&&(r.style.width="300px",r.style.height="250px"),adsDebug("cedato: showPassback(): will call initPassbackHandler"),initPassbackHandler(this,t),this.overlayAdsPlayer&&this.overlayAdsPlayer.placement.onDispose()}},{key:"createAdStartTimer",value:function(t,e,r){var n=this;adsDebug("cedato: createAdStartTimer()");var i=t.getAttribute("data-timeout"),o=1e3*parseInt(i,10);return adsDebug("cedato: createAdStartTimer() timeOut",o),setTimeout(function(){return n.showPassback(t,e,r)},o)}},{key:"create",value:function create(){var _this2=this;return new Promise(function(resolve,reject){try{var tagName=_this2.player.name,rawConfig=utils.composeRawConfig(_this2.player.code,_this2.pageUrl,_this2.subid);if(adsDebug("Cedato player config",_this2.player),adsDebug("Cedato player raw config",rawConfig),!rawConfig)return adsDebug("Cedato can't find config for player",_this2.player),reject("Cedato can't find config for player",_this2.player);_this2.onAdTagLoad(ADS_DEMAND_NAME,tagName,_this2.itemIndex);var fragment=document.createElement("div");fragment.innerHTML=rawConfig;var playerDiv=fragment.querySelector("div");if(!playerDiv)return resolve();var cedatoDivId=playerDiv.getAttribute("id"),script=fragment.querySelector("script"),scriptContent=script.textContent||script.text,scriptParent=script.parentNode;scriptParent.removeChild(script);var passbackScript=fragment.querySelector('script[type="cedato/passback"]');passbackScript&&passbackScript.parentNode.removeChild(passbackScript);var attrs=[].concat((0,_toConsumableArray3.default)(script.attributes));_this2.adContainer.appendChild(playerDiv);var scriptTag=document.createElement("script");if(attrs.forEach(function(t){scriptTag.setAttribute(t.nodeName,t.nodeValue)}),playerDiv.appendChild(scriptTag),scriptContent)try{eval(scriptContent)}catch(t){return scriptTag.textContent=scriptContent,adsDebug("Cedato content eval error",t),reject(t)}var adStartTimer=null;passbackScript&&(passbackScript.innerHTML=(0,_index.normalizeDisplayConfig)(passbackScript.innerHTML,_this2.pageUrl,_this2.subid),adsDebug("Cedato passback",passbackScript.outerHTML),playerDiv.appendChild(passbackScript),adStartTimer=_this2.createAdStartTimer(passbackScript,tagName,playerDiv)),window.CEDATO_INIT=window.CEDATO_INIT||{},window.CEDATO_INIT[cedatoDivId]=utils.createCedatoInit(_this2,adStartTimer,ADS_DEMAND_NAME,tagName,_this2.showPassback.bind(_this2,passbackScript,tagName,playerDiv));var shouldAlwaysShowPlayer=_this2.player&&_this2.player.show||"true"===playerDiv.getAttribute("always-show-player");return shouldAlwaysShowPlayer===!0&&_this2.onContentVideoStart(_this2.itemIndex),resolve()}catch(t){return _this2.onAdTagLoadFail(ADS_DEMAND_NAME,_this2.player.name,_this2.itemIndex),adsDebug("Cedato init error",t),reject(t)}})}}]),Placement}()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Placement=e.normalizeDisplayConfig=e.SUPPORT_MULTI_PLACEMENTS=e.ADS_DEMAND_NAME=void 0;var i=r(135),o=n(i),a=r(136),s=n(a),u=r(112),c=r(148),l=(n(c),r(88)),d=(0,u.getDebugger)("ads"),f=e.ADS_DEMAND_NAME="DISPLAY",p=(e.SUPPORT_MULTI_PLACEMENTS=!0,e.normalizeDisplayConfig=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n.reloadAfter,o=void 0===i?0:i;if(t=t.replace(/\{RND\}/g,Math.random().toString()).replace(/\{PAGE_URL\}/g,e).replace(/\{DOMAIN\}/g,window.location.hostname).replace(/</g,"<").replace(/>/g,">"),t.indexOf("static.criteo.net")>-1){var a=h.exec(t)[0];t=t.replace(a,a+'"extraData":{"subid":"'+(0,l.queryStringFromObject)(r)+'"},')}if(t.lastIndexOf(".com/tag/js/gpt.js")>-1){t=t.replace("googletag.cmd = googletag.cmd || [];","googletag.cmd = [];");var s=v({spotId:r.spotId});t=t.replace(".addService(googletag.pubads());",s+".addService(googletag.pubads());"),t=t.replace(".addService(googletag.pubads());",".set('page_url','"+r.domain+"').addService(googletag.pubads());"),o&&(t=t.replace(".addService(googletag.pubads());",".addService(googletag.pubads());\n var counter=0;\n var intervalId=setInterval(function(){\n googletag.pubads().refresh();\n counter++;\n if( counter === 3 ){\n clearInterval(intervalId)\n }\n },"+1e3*o+")"))}return t.indexOf("text/x-spotim-passback")>-1&&(t=t.replace(/\n/g,"@@@PLACEHOLDER").match(/(.*)<\/script>/)[1].replace(/@@@PLACEHOLDER/g,"\n")),t}),h=/"zoneid".*/,v=function(t){return Object.keys(t).reduce(function(e,r){return t[r]&&(e+=".setTargeting('"+r+"','"+t[r]+"')"),e},"")};e.Placement=function(){function t(e,r){var n=r.player,i=void 0===n?{}:n,a=r.itemIndex,s=void 0===a?-1:a,u=r.width,c=void 0===u?300:u,l=r.height,d=void 0===l?250:l,f=r.pageUrl,p=void 0===f?"":f,h=r.subid,v=void 0===h?{}:h,m=r.onContentVideoStart,g=void 0===m?function(){}:m,y=r.onContentVideoFinish,_=void 0===y?function(){}:y,b=r.onAdTagLoad,w=void 0===b?function(){}:b,E=r.onAdTagLoadFail,A=void 0===E?function(){}:E,k=r.onAdDisplayStart,T=void 0===k?function(){}:k,O=r.onAdDisplayFinish,S=void 0===O?function(){}:O,I=r.onDispose,x=void 0===I?function(){}:I;(0,o.default)(this,t),Object.assign(this,{adContainer:e,player:i,itemIndex:s,width:c,height:d,pageUrl:p,onContentVideoStart:g,onContentVideoFinish:_,onAdTagLoad:w,onAdTagLoadFail:A,onAdDisplayStart:T,onAdDisplayFinish:S,onDispose:x,subid:v}),this.DISPLAY_CLOSE="$$SPOTIM_DISPLAY_CLOSE_"+this.itemIndex+"$$",this.DISPLAY_RELOAD="$$SPOTIM_DISPLAY_RELOAD_"+this.itemIndex+"$$"}return(0,s.default)(t,[{key:"create",value:function(){var t=this;return new Promise(function(e,r){try{var n=p(t.player.code,t.pageUrl,t.subid,{reloadAfter:t.player.reload_after}),i=t.player.name;t.registerForFallbackEvent(),d("Display config",t.player),t.onAdTagLoad(f,i,t.itemIndex),t.onAdDisplayStart(f,i,t.itemIndex);var o=document.createElement("iframe");Object.assign(o.style,{width:"100%",height:"100%",border:"none"}),n=""+n+"",t.adContainer.appendChild(o),o.contentWindow.document.open(),o.contentWindow.document.write(n),o.contentWindow.document.close(),t.player.closeAfter&&(d("Display will close after "+t.player.closeAfter+" seconds."),window[t.DISPLAY_CLOSE]=setTimeout(function(){d("Display timeout. Closing."),t.onAdDisplayFinish(),clearInterval(window.$$SPOTIM_DISPLAY_RELOAD$$)},1e3*t.player.closeAfter)),d("Display content",n),e()}catch(e){t.onAdTagLoadFail(f,t.player.name,t.itemIndex),d("Display init error",e),r(e)}})}},{key:"registerForFallbackEvent",value:function(){var t=this;d("registerForFallbackEvent");var e=function e(r){var n=/^spotim-display-fallback$/.exec(r.data);null!==n&&(d("calling onAdDisplayFinish from registerForFallbackEvent"),t.onAdDisplayFinish(), clearTimeout(window[t.DISPLAY_CLOSE]),clearInterval(window[t.DISPLAY_RELOAD]),window.top.removeEventListener("message",e,!1))};window.top.addEventListener("message",e,!1)}}]),t}()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.getPassbackFrame=e.createCedatoInit=e.composeRawConfig=void 0;var i=r(102),o=n(i),a=r(88),s=r(112),u=(0,s.getDebugger)("ads");e.composeRawConfig=function(t,e,r){var n=t;switch(n){case"ineractive":n='
';break;case"loopme":n='
';break;case"vdopia":n='
'}return n=n.replace(/\{RND\}/g,Math.random().toString()).replace(/\{PAGE_URL\}/g,e).replace(/\{DOMAIN\}/g,window.location.hostname).replace(/\{SID\}/g,encodeURIComponent((0,a.queryStringFromObject)((0,o.default)({},r),!1))).replace(/\{URL\}/g,e).replace(/\{CB\}/g,Math.random().toString())},e.createCedatoInit=function(t,e,r,n,i){return function(){this.overrideInitParams({allowSound:!1}),this.on("adstart",function(){u("Cedato event: adstart"),t.adContainer?(Object.assign(t.adContainer.style,{opacity:1}),u("adContainer got opacity: 1",t.adContainer)):u("adContainer not found"),e&&(u("Cedato passback clear"),clearTimeout(e)),t.onAdDisplayStart(r,n,t.itemIndex),t.overlayAdsPlayer&&(u("Cedato adstart - disposing overlay"),t.overlayAdsPlayer.placement.onDispose())}),t.player&&t.player.show||this.on("adcomplete",function(){u("Cedato event: adcomplete"),t.adContainer?(u("Cedato adcomplete - hiding adContainer with display:none"),Object.assign(t.adContainer.style,{display:"none"})):u("Cedato adcomplete - trying to hide ad container, but wasn't found"),i(),t.onAdDisplayFinish.bind(null,r,n,t.itemIndex)})}},e.getPassbackFrame=function(t){var e=t.adContainer,r=e.querySelector("iframe");return r||(r=document.createElement("iframe"),e.appendChild(r)),r}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Placement=e.SUPPORT_MULTI_PLACEMENTS=e.ADS_DEMAND_NAME=void 0;var i=r(83),o=n(i),a=r(135),s=n(a),u=r(136),c=n(u),l=r(112),d=r(148),f=(n(d),(0,l.getDebugger)("ads")),p=e.ADS_DEMAND_NAME="INLINE";e.SUPPORT_MULTI_PLACEMENTS=!0,e.Placement=function(){function t(e,r){var n=r.player,i=void 0===n?{}:n,o=r.itemIndex,a=void 0===o?-1:o,u=r.width,c=void 0===u?300:u,l=r.height,d=void 0===l?250:l,f=r.pageUrl,p=void 0===f?"":f,h=r.onContentVideoStart,v=void 0===h?function(){}:h,m=r.onContentVideoFinish,g=void 0===m?function(){}:m,y=r.onAdTagLoad,_=void 0===y?function(){}:y,b=r.onAdTagLoadFail,w=void 0===b?function(){}:b,E=r.onAdDisplayStart,A=void 0===E?function(){}:E,k=r.onAdDisplayFinish,T=void 0===k?function(){}:k;(0,s.default)(this,t),Object.assign(this,{adContainer:e,player:i,itemIndex:a,width:c,height:d,pageUrl:p,onContentVideoStart:v,onContentVideoFinish:g,onAdTagLoad:_,onAdTagLoadFail:w,onAdDisplayStart:A,onAdDisplayFinish:T})}return(0,c.default)(t,[{key:"create",value:function(){var t=this;return new Promise(function(e,r){try{var n=t.player.code;n=n.replace(/\{RND\}/g,Math.random().toString()).replace(/\{PAGE_URL\}/g,t.pageUrl).replace(/\{DOMAIN\}/g,window.location.hostname).replace(/</g,"<").replace(/>/g,">");var i=t.player.name;f("Inline config",t.player),t.onAdTagLoad(p,i,t.itemIndex),t.adContainer.innerHTML=n;var a=[].concat((0,o.default)(t.adContainer.querySelectorAll("script")));a.forEach(function(e){var r=document.createElement("script");if(r.textContent=e.textContent,e.hasAttributes()){var n=[].concat((0,o.default)(e.attributes));n.forEach(function(t){r.setAttribute(t.name,t.value)})}t.adContainer.insertBefore(r,e),t.adContainer.removeChild(e)}),f("Inline content",n),t.onAdDisplayStart(p,i,t.itemIndex),e()}catch(e){t.onAdTagLoadFail(p,t.player.name,t.itemIndex),f("Inline init error",e),r(e)}})}}]),t}()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Placement=e.SUPPORT_MULTI_PLACEMENTS=e.ADS_DEMAND_NAME=void 0;var i=r(102),o=n(i),a=r(135),s=n(a),u=r(136),c=n(u),l=r(257),d=n(l),f=r(112),p=r(258),h=n(p),v=r(88),m=r(259),g=n(m),y=r(116),_=n(y),b=r(260),w=r(148),E=n(w),A=(0,f.getDebugger)("ads"),k=e.ADS_DEMAND_NAME="SR";e.SUPPORT_MULTI_PLACEMENTS=!1,e.Placement=function(){function t(e,r){var n=r.row,i=r.pos,o=r.player,a=void 0===o?{}:o,u=r.itemIndex,c=void 0===u?-1:u,l=r.subid,d=void 0===l?{}:l,f=r.width,p=void 0===f?400:f,h=r.height,v=void 0===h?300:h,m=r.pageUrl,y=void 0===m?"":m,_=r.onContentVideoStart,b=void 0===_?function(){}:_,w=r.onContentVideoFinish,E=void 0===w?function(){}:w,A=r.onAdTagLoad,k=void 0===A?function(){}:A,T=r.onAdTagLoadSuccess,O=void 0===T?function(){}:T,S=r.onAdTagLoadFail,I=void 0===S?function(){}:S,x=r.onAdDisplayStart,P=void 0===x?function(){}:x,C=r.onAdDisplayFinish,M=void 0===C?function(){}:C,R=r.onAdImpression,L=void 0===R?function(){}:R,D=r.onAdViewableImpression,j=void 0===D?function(){}:D,N=r.onAdViewableIab,F=void 0===N?function(){}:N,V=r.onAdViewedFirstQuartile,q=void 0===V?function(){}:V,U=r.onAdClickThrough,H=void 0===U?function(){}:U,z=r.onAdNoFill,B=void 0===z?function(){}:z,$=r.onDispose,G=void 0===$?function(){}:$,W=r.onPlayerDone,K=void 0===W?function(){}:W,X=r.isOverlayPlayer,J=void 0!==X&&X;(0,s.default)(this,t),Object.assign(this,{adContainer:e,player:a,row:n,pos:i,itemIndex:c,width:p,height:v,pageUrl:y,onContentVideoStart:b,onContentVideoFinish:E,onAdTagLoad:k,onAdTagLoadFail:I,onAdDisplayStart:P,onAdDisplayFinish:M,onAdTagLoadSuccess:O,onAdImpression:L,onAdViewableImpression:j,onAdViewableIab:F,onAdViewedFirstQuartile:q,onAdClickThrough:H,onAdNoFill:B,onDispose:G,onPlayerDone:K,subid:d,isOverlayPlayer:J}),this.demandDeferred=new g.default}return(0,c.default)(t,[{key:"startPassbackTimer",value:function(t){this.passbackAdsPlayer&&this.player.passback_interval&&(A("startPassbackTimer",this.player.passback_interval),this.passbackTimer=setTimeout(this.showPassback.bind(this,t),1e3*this.player.passback_interval))}},{key:"cancelPassbackTimer",value:function(){A("cancelPassbackTimer"),clearTimeout(this.passbackTimer)}},{key:"showPassback",value:function(t){this.cancelPassbackTimer(),this.passbackAdsPlayer&&(this.overlayAdsPlayer&&(A("Placement: Passback called"),this.overlayAdsPlayer.placement.onDispose()),this.onDispose(),t.dispose(),A("Initializing passback"),this.passbackAdsPlayer.initialize())}},{key:"create",value:function(){var t=this;return _.default?(this.adContainer.style.width="100%",this.adContainer.style.height=this.height+"px"):(this.adContainer.style.width=this.width+"px",this.adContainer.style.height=this.height+"px"),(0,b.initializeStreamRailSdk)().then(function(){t.demandDeferred.resolve()}),this.demandDeferred.promise.then(function(){try{var e=function(t){var e=this;h.default.trigger("placement-created",{dispose:function(){e.onDispose(),t.dispose()}}),this.onAdTagLoadSuccess(k,i,this.itemIndex),A("StreamRail player",t),t.on("contentStart",function(){for(var t=arguments.length,r=Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=new CustomEvent("spotim-rc-"+t,{detail:(0,s.default)({uid:this.uid},e)});document.dispatchEvent(r)}},{key:"on",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];document.addEventListener("spotim-rc-"+t,function(t){var i=t.detail,a=i.uid,s=(0,o.default)(i,["uid"]);(n||a!==r.uid)&&e(s)},!1)}},{key:"off",value:function(t,e){throw new Error("Not implemented")}}]),t}(),v=new h;e.default=v},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(135),o=n(i),a=function t(){var e=this;(0,o.default)(this,t),this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})};e.default=a},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){return u("StreamRail SDK init"),new Promise(function(t,e){window.$$SPOTIM_SRSDK_CALLED$$?window.$$SPOTIM_SRSDK_RESOLVED$$?t():a.default.on("srs-sdk-resolved",t):(window.$$SPOTIM_SRSDK_CALLED$$=!0,window.srAsyncInit=function(){window.$$SPOTIM_SRSDK_RESOLVED$$=!0,a.default.trigger("srs-sdk-resolved"),t()},function(t,r,n){var i,o=t.getElementsByTagName(r)[0];t.getElementById(n)||(i=t.createElement(r),i.id=n,i.setAttribute("crossorigin","anonymous"),i.src="https://sdk.streamrail.com/player/sr.ads.js",i.onload=function(){u("StreamRail SDK success")},i.onerror=function(){e("StreamRail SDK script load error")},o.parentNode.insertBefore(i,o))}(document,"script","streamrail-jssdk"))})}Object.defineProperty(e,"__esModule",{value:!0}),e.initializeStreamRailSdk=i;var o=r(258),a=n(o),s=r(112),u=(0,s.getDebugger)("ads")},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=[].concat((0,a.default)(t.querySelectorAll("[data-spotim-row]")));e.forEach(function(t){t.querySelector('[data-spotim-slot-size="400x300"]')?t.setAttribute("data-spotim-row-size","large"):t.setAttribute("data-spotim-row-size","small")})}Object.defineProperty(e,"__esModule",{value:!0}),e.adjustLayoutForAds=e.subscribeToLayoutEvents=e.fetchUpdatedAdsConfig=e.checkIfAdsAllowed=void 0;var o=r(83),a=n(o),s=r(8),u=n(s),c=r(11),l=n(c),d=r(141),f=r(112),p=r(150),h=r(148),v=n(h),m=r(98),g=r(115),y=(0,f.getDebugger)("ads");window.$$SPOTIM_ACTIVATE_RC_CALLED$$=!1;e.checkIfAdsAllowed=function(t,e){return t.allowAds()||e},e.fetchUpdatedAdsConfig=function(){var t=(0,l.default)(u.default.mark(function t(e,r){var n,i;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(0,m.resolveUserPlatform)(),!(0,m.useAdvancedTargeting)(r,n)){t.next=15;break}return y("advanced targeting enabled. Fetching client ads config"),t.prev=3,i=(0,g.getAdvancedTargetingParams)(),t.next=7,(0,m.fetchAdsConfig)(e,n,i);case 7:r=t.sent,y("client ads config success",r),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(3),y("ERROR: client ads config fail",t.t0),r=null;case 15:return t.abrupt("return",r);case 16:case"end":return t.stop()}},t,this,[[3,11]])}));return function(e,r){return t.apply(this,arguments)}}(),e.subscribeToLayoutEvents=function(t){function e(){var e=[].concat((0,a.default)(t.querySelectorAll("[data-spotim-slot-active]"))),r=e.map(function(t){return t.getAttribute("data-spotim-slot-row")+"-"+t.getAttribute("data-spotim-slot-pos")+"-"+t.getAttribute("data-spotim-slot-size")});t.setAttribute("data-spotim-active-slots",r.join(" "));var n=([].concat((0,a.default)(t.querySelectorAll("[data-spotim-slot-showing]"))),e.map(function(t){return t.getAttribute("data-spotim-slot-row")+"-"+t.getAttribute("data-spotim-slot-pos")+"-"+t.getAttribute("data-spotim-slot-size")}));t.setAttribute("data-spotim-showing-slots",n.join(" "))}v.default.on("update-ad-slot",function(r){var n=t.querySelector('[data-spotim-slot-row="'+r.row+'"][data-spotim-slot-pos="'+r.pos+'"]');"show"===r.adDisplay?(n.setAttribute("data-spotim-slot-active",""),300===parseInt(r.width)&&250===parseInt(r.height)?n.setAttribute("data-spotim-slot-size","300x250"):400===parseInt(r.width)&&300===parseInt(r.height)?n.setAttribute("data-spotim-slot-size","400x300"):n.removeAttribute("data-spotim-slot-size")):(n.removeAttribute("data-spotim-slot-active"),n.removeAttribute("data-spotim-slot-size")),e(),i(t)}),v.default.on(p.AD_DISPLAY_STARTED,function(r){var n=(r.row,r.pos,t.querySelector('[data-spotim-slot-row="'+r.row+'"][data-spotim-slot-pos="'+r.pos+'"]'));n.setAttribute("data-spotim-slot-showing",""),e()}),v.default.on(p.AD_DISPLAY_FINISHED,function(r){var n=(r.row,r.pos,t.querySelector('[data-spotim-slot-row="'+r.row+'"][data-spotim-slot-pos="'+r.pos+'"]'));n.removeAttribute("data-spotim-slot-showing"),e()})},e.adjustLayoutForAds=function(t){if((0,m.isPhone)())for(var e=[].concat((0,a.default)(t.querySelectorAll("."+d.cssSelectors.items))),r=1;r