/*! amazon-dtb-javascript-api - apstag - v7.55.00 - 2020-09-28 09:31:26 */ !function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=25)}([function(t,e,n){"use strict";n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return f})),n.d(e,"a",(function(){return b}));var r=n(1),i=n(4),c=n(2),o=n(5),a=n(7),s=Object(r.n)(10),u=[];function d(t,e){var n=2t.length)&&(e=t.length);for(var n=0,r=new Array(e);nwindow.innerHeight)&&(n=200),l.style.background="#eaeded",l.style.zIndex="2147483647",l.style.bottom="0",l.style.position="fixed !important",l.style.display="block !important",l.style.left="0",l.style.right="0",l.style.height="".concat(n,"px"),f.style.cursor="row-resize",f.style.height="2px",f.style.position="absolute",f.style.top="0",f.style.left="0",f.style.right="0",f.style.backgroundColor="RGBA(0,0,0,0)",l.appendChild(f),b.frameBorder="0",b.marginHeight="0",b.marginWidth="0",b.scrolling="no",b.id="apstag-debug-iframe",b.src="about:blank",b.style.display="block",b.style.width="100%",b.style.height="".concat(n,"px"),l.appendChild(b),document.body.appendChild(l),null!==b.contentDocument&&(b.contentDocument.open(),b.contentDocument.write(e),b.contentDocument.close()),f.addEventListener("mousedown",j)}catch(t){Object(s.b)(t,"renderDebugConsole",!0)}}function O(t){try{var e=window.innerHeight-t.clientY;return e<200&&(e=200),l.style.height="".concat(e,"px"),b.style.height="".concat(e,"px"),e}catch(t){return Object(s.b)(t,"resizeDebugConsole",!0),200}}function h(t){try{return t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.cancelBubble=!0,t.returnValue=!1}catch(t){return Object(s.b)(t,"preventEvent",!0),!1}}function j(){try{void 0===p&&((p=document.createElement("div")).style.position="fixed",p.style.left="0",p.style.right="0",p.style.top="0",p.style.bottom="0",p.style.zIndex="9999999999"),l.appendChild(p),window.addEventListener("mouseup",S),window.addEventListener("mousemove",v)}catch(t){Object(s.b)(t,"resizeBarMouseDownListener",!0)}}function v(t){try{return O(t),h(t)}catch(t){return Object(s.b)(t,"resizeBarMouseMoveListener",!0),!1}}function S(t){try{null!==p&&l.removeChild(p),window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",S);var e=O(t);return Object(i.i)()&&window.localStorage.setItem(c.d,"".concat(e)),h(t)}catch(t){return Object(s.b)(t,"resizeBarMouseUpListener",!0),!1}}function _(){try{if(!Object(i.i)())return[];var t=window.localStorage.getItem(c.f);null===t||"false"===t?t="[]":"true"===t&&(t='["fake_bids"]');var e=[];try{e=JSON.parse(t)}catch(t){}return Object(i.k)(e)||(e=[]),e.filter((function(t){return Object(i.j)(c.u,t)}))}catch(t){return Object(s.b)(t,"getCurrentDebugArray"),[]}}function w(t){try{return Object(i.j)(_(),t)}catch(t){return Object(s.b)(t,"isDebugEnabled"),!1}}function E(t,e){try{if(!Object(i.i)())return;if(-1===c.u.indexOf(t))return;var n=_();return e&&-1===n.indexOf(t)?n.push(t):e||(n=n.filter((function(e){return e!==t}))),0===n.length?window.localStorage.removeItem(c.f):window.localStorage.setItem(c.f,JSON.stringify(n)),I(),1}catch(e){return void Object(s.b)(e,"setDebugMode")}}function D(t){var e=1o.l)return e}catch(t){Object(c.b)(t,"parseTimeout",!0)}return!1}function y(t,e){try{var n=m(t.timeout);return!1===n&&(n=m(e.config.bidTimeout)),!1===n&&(n=m(e.cfg.DEFAULT_TIMEOUT)),n}catch(t){return Object(c.b)(t,"getTimeout",!0),2e3}}function O(t,e){var n,r=!1;function i(e){if(!r)try{t(e)}catch(e){Object(c.b)(e,"executeFunctionOnceWithTimeout-wrappedFunction",!0)}clearTimeout(n),r=!0}try{return n=setTimeout(i,e,!0),i.bind(null,!1)}catch(e){return Object(c.b)(e,"executeFunctionOnceWithTimeout",!0),function(){}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return y})),n.d(e,"d",(function(){return O})),n.d(e,"g",(function(){return h})),n.d(e,"c",(function(){return j})),n.d(e,"h",(function(){return v})),n.d(e,"f",(function(){return S})),n.d(e,"e",(function(){return _}));var r=n(2),i=n(5),c=n(3),o=n(1),a=n(9),s=n(0),u=n(7),d=n(10),l=n(4);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e24e4)&&(!(Object(o.m)(e,"url")&&!Object(o.b)(e.url,Object(u.f)(window)))&&t.bidState!==c.b.rendered)}catch(e){return Object(s.b)(e,"isBidEligible"),!1}}function _(t){try{var e=t.map(d.c),n=r.a.getState();return Object.keys(n.slotBids).filter((function(t){return Object(o.j)(e,t)})).reduce((function(t,e){var i=n.slotBids[e].filter((function(t){return t.bidState===c.b.new})).filter(S);if(0t.length)&&(e=t.length);for(var n=0,r=new Array(e);ne.rqTs?t:e})).bid)}))}catch(t){Object(Kt.b)(t,"_getCurrentSlotBids",!0)}return t}function E(t,e){try{return Object(Ft.k)(qt.a.getState().targetingKeys[t])?e?["amzniid_sp"]:qt.a.getState().targetingKeys[t].filter((function(t){return-1apstag Test Creative":"","

amzniid - ").concat(t.bidID," | amznbid: ").concat(t.pp," | size: ").concat(t.sizes.join("x"),"

");r.src="javascript:'".concat(i,"'")}else r.src=x(t);t.isAmp&&t.isSf&&Object(Xt.b)(window)&&Object(Xt.a)(t.sizes,window),B(t.doc,r),(e.iframe=r).onload=function(){e.states.iframeLoaded=!0,n&&n()}}catch(t){Object(Kt.b)(t,"_loadAdIntoUnfriendlyIframe",!0)}}function G(t){var e=t.states,n=t.doc,r=t.bidID,i=t.iframe;try{if(Object(Ft.a)(e))return;var c;e.shouldRunViewability=!1,Object(Ft.m)(window,"amzncsm")?c=window.amzncsm:void 0!==n&&null!==n.defaultView&&Object(Ft.m)(n.defaultView,"amzncsm")&&(c=n.defaultView.amzncsm),void 0!==n&&void 0!==c&&Object(Ft.m)(c,"rmD")&&(c.host=Object(Gt.c)("host",qt.a.getState().hosts.DEFAULT_AAX_PIXEL_HOST),c.rmD(i,r,n.defaultView,n,qt.a.getState().config.pubID))}catch(t){Object(Kt.b)(t,"_triggerViewability")}}function Q(t,e){return function(n){try{var r=Object($t.e)(e.slots),i=Object.keys(r),c=[];n&&(qt.a.dispatch({type:"RECORD_AAX_REQ_PROP",bidReqID:e.bidReqID,key:"timedOutAt",value:Date.now()}),qt.a.getState().experiments.chunkRequests&&qt.a.dispatch({type:"RECORD_TIMEOUT",fid:e.bidReqID,timeOut:Date.now()})),i.forEach((function(t){if(Object(Ft.m)(r,t)){var e=r[t];Object($t.g)(qt.a.getState(),Yt.a)||Object(Ft.m)(e.bidConfig,"amznbid")?Object(Ft.m)(e.bidConfig,"amznp")||(e.bidConfig.amznp=""):(e.bidConfig.targeting.push("amzniid","amznbid","amznp"),e.bidConfig.amzniid="",e.bidConfig.amznbid=Qt.s.noBid,e.bidConfig.amznp=Qt.s.noBid,"video"!==e.mediaType&&(e.bidConfig.targeting.push("amznsz"),e.bidConfig.amznsz="0x0")),c.push(e)}})),Yt.a.isSupported&&(c=Object($t.c)(c,e,n));var o={fromTimeout:n},a=Object($t.g)(qt.a.getState(),Yt.a);t(c.map((function(t){return a?t.newBidObject:t.bidObject})),o)}catch(n){Object(Kt.b)(n,"_bidCallbackHandler",!0)}}}function H(t,e){try{var n;n=t.defaultView&&t.defaultView.frameElement?t.defaultView.frameElement:window.frameElement,e.inheritSize?Object(Vt.c)("creativeSize","inherited"):(Object(Vt.c)("creativeSize","resized"),n.style.width="".concat(e.sizes[0],"px"),n.style.height="".concat(e.sizes[1],"px"))}catch(t){Object(Kt.b)(t,"_resizeIframe")}}function X(t){try{return"".concat(t[0],"x").concat(t[1])}catch(t){return Object(Kt.b)(t,"_sizeArrayToSring"),"x"}}function V(t){try{return 1===t.length?X(t[0]):X(t[Math.floor(t.length*Math.random())])}catch(t){return Object(Kt.b)(t,"_pickRandomSizeForMockBid",!0),""}}function K(t,e){try{var n,r=Object(Gt.c)("host",qt.a.getState().hosts.DEFAULT_AAX_BID_HOST),i=Object(Ut.f)(window),c=t.bidReqID,o=Object(Ft.h)(window),a=Object(Gt.c)("testBidTimeout",200);qt.a.dispatch({type:"RECORD_AAX_REQUEST",data:{bidConfig:t,timeout:a,bidReqID:c,ws:o,url:i,rqTs:Date.now()}}),n=t.slots.map((function(t){var e,n=V(t.sizes),r="testDeal".concat(Object(Ft.e)(),"_").concat(n),i="testDealIi-".concat(Object(Ft.e)()),c=V(t.sizes),o=(oe(e={slotID:t.slotID,crid:"".concat(Qt.m.crid,"-").concat(Object(Ft.e)()),size:c,amzniid:"".concat(Qt.m.amzniid,"-").concat(Object(Ft.e)()),amznbid:Qt.m.amznbid,amznp:Qt.m.amznp,amznsz:c,amzniid_sp:"".concat(Qt.m.amzniid,"-").concat(Object(Ft.e)()),amznbid_sp:"".concat(Qt.m.amznbid,"SP"),amznp_sp:"".concat(Qt.m.amznp,"SP"),amznsz_sp:V(t.sizes),amzndeals:[r]},"".concat(r,"amzniid"),i),oe(e,"mediaType","d"),oe(e,"meta",["slotID","mediaType","size"]),oe(e,"targeting",["amzniid","amznbid","amznp","amznsz","amzniid_sp","amznbid_sp","amznp_sp","amznsz_sp","amzndeal_sp","amzndeals","".concat(r,"amzniid")]),e);"video"===t.mediaType&&(o.mediaType="video",o.amznbid="v_".concat(o.amznbid));var a=new $t.a(o);return Object($t.g)(qt.a.getState(),Yt.a)?a.newBidObject:a.bidObject})),setTimeout((function(){window.apstag.bids({slots:n,host:r,status:"ok",cb:c}),e(!0)}),a)}catch(t){Object(Kt.b)(t,"_doMockBid",!0)}}function J(t){try{var e=qt.a.getState().AAXReqs.filter((function(e){return e.bidReqID===t.cb}))[0];if(e&&e.bidConfig&&e.bidConfig.slots){var n=e.bidConfig.slots.filter(Mt.d).map((function(t){return t.slotID})),r=Object(Ft.m)(t,"slots")?t.slots.map((function(t){return t.slotID})):[],i=n.filter((function(t){return!Object(Ft.j)(r,t)}));qt.a.dispatch({type:"NO_BID_ON_ADSERVER_SLOTS",slotIDs:i}),Yt.a.hasAdServerObjectLoaded()?$():Yt.a.isCommandQueueDefined()&&Yt.a.cmdQueuePush((function(){$()}))}}catch(e){Object(Kt.b)(e,"_determineNoBidStateForAdServerObject")}}function W(t){return Object(Ft.j)(qt.a.getState().AAXReqs.filter((function(t){return!t.resTs})).map((function(t){return t.bidConfig.slots})).reduce((function(t,e){return t.concat(e)}),[]).map(Mt.c),t)}function Y(t){try{var e=t.getTargeting("amznbid");return 0=c.length&&c.slice(c.length-1)[0].ts>o.slice(c.length-1)[0].ts?1===t[n].fetchWithIID.filter((function(t){return t===r.bidConfig.amzniid})).length?i.state=1:i.state=4:Object(Ft.j)(t[n].fetchWithIID,r.bidConfig.amzniid)?i.state=3:i.state=2:i.state=0,1===i.state||2===i.state){var a=qt.a.getState().AAXReqs.filter((function(t){return t.bidReqID===r.bidReqID}))[0].resTs,s=pt(a,t[n].fetchedAt,2===i.state);s&&Object(Ft.m)(s,"ts")&&(i.delta=a-s.ts)}e.push(i)}}))})),e}catch(t){return Object(Kt.b)(t,"_getBidSetInfo"),[]}}function pt(t,e,n){var r=e.map((function(e){var r=t-e.ts;return!n&&r<=0?-r:n&&0<=r?r:null}));return e[gt(r)]}function gt(t){for(var e=-1,n=-1,r=0;r