d3div1mtym39ic.cloudfront.net
Open in
urlscan Pro
2600:9000:2449:b400:11:1ed0:3900:93a1
Public Scan
URL:
https://d3div1mtym39ic.cloudfront.net/aax2/apstag.js
Submission: On September 02 via api from IT — Scanned from IT
Submission: On September 02 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
/*! @amzn/apswebapstaglibrary - web-client-bundle - v24.827.1552 - 2024-08-27 15:52:44 */ !function(){"use strict";var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};function e(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}var n=function(){return n=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)};function o(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function r(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))}function i(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,o=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function u(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var s="24.827.1552",d="listeners",l="_internal/history",v="_config/events/deactivations",f="_internal/pageLoadID",p="_internal/externalEventCount",g="_internal/recentDispatches",h="_internal/coreDebugMode";function m(){var t,e,n,o;try{return!!new URLSearchParams(null!==(e=null===(t=window.top)||void 0===t?void 0:t.location.search)&&void 0!==e?e:window.location.search).has("apscoredebug")||null!==(o=null===(n=window._aps)||void 0===n?void 0:n.get("_system").store.get(h))&&void 0!==o&&o}catch(t){return!1}}var y,b,w,E,_=function(){function t(){this._batchSize=300,this._serviceUrl="https://prod.tahoe-analytics.publishers.advertising.a2z.com/logevent/putRecords",this._publicSourceIdentifier="79db72eb0b5c7255afa54a253df24fb4a5ac916bf40b51c730df8850aa5665ca",this._queueLimit=5e3,this._sampleRates=new Map([["error",0],["feat",0]]),this._recordQueues=new Map([["error",[]],["feat",[]]]),this.clearAndUpdateEventProcessingInterval(5e3)}return t.prototype.logEvent=function(t){var e,o=t.eventCategory,r=t.eventName,i=t.eventProperties,a="".concat(Date.now()),c={eventSource:"aps_web_client_library",eventTime:a,eventCategory:o,eventName:r,eventProperties:n({},i)};try{var u={Data:c,PartitionKey:a};null===(e=this._recordQueues.get(c.eventCategory))||void 0===e||e.push(u)}catch(t){}},t.prototype.setSampleRates=function(t){var e=function(t){return t<0?0:t>=0&&t<=1?t:1};"number"==typeof(null==t?void 0:t.error)&&this._sampleRates.set("error",e(t.error)),"number"==typeof(null==t?void 0:t.feat)&&this._sampleRates.set("feat",e(t.feat))},t.prototype.clearAndUpdateEventProcessingInterval=function(t){var e=this;"number"!=typeof t||t<=0||t!==this._intervalDelayInMs&&(clearInterval(this._intervalId),this._intervalId=setInterval((function(){try{e.processEventRecords()}catch(t){}}),t),this._intervalDelayInMs=t)},t.prototype.processEventRecords=function(){for(var t=[],e=Array.from(this._recordQueues.keys()),n=function(n){var r=e[n],i=o._recordQueues.get(r),a=o._sampleRates.get(r);if(void 0===i||i.length<=0)return"continue";if(void 0===a||0===a)return i.length>=o._queueLimit&&(i.length=0,o.logEvent({eventCategory:r,eventName:"queue limit reached"})),"continue";var s=i.filter((function(t){return void 0!==t&&a>=Math.random()}));i.length=0,t.push.apply(t,u([],c(s),!1))},o=this,r=0;r<e.length;r+=1)n(r);if(0!==t.length)for(r=0;r<t.length;r+=this._batchSize)this.sendRecords(t.slice(r,r+this._batchSize)).catch((function(t){}))},t.prototype.encodeRecords=function(t){return t.forEach((function(t){t.Data=window.btoa(JSON.stringify(t.Data))})),t},t.prototype.sendRecords=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,fetch("".concat(this._serviceUrl,"?encoded=").concat(m()?"false":"true"),{method:"POST",headers:{"Content-Type":"application/json","x-api-key":this._publicSourceIdentifier},body:JSON.stringify({Records:m()?t:this.encodeRecords(t)})})];case 1:return e.sent(),[2]}}))}))},t}(),S={key:"_config/requestViewer/countryCode",default:"unknown"},x=function(){function t(){this.STACK_MAX_LENGTH=500,this._tahoeStream=new _}return t.prototype.fireReferencePixel=function(t){Math.random()<.01&&this.logCoreError({id:"REFERENCE-".concat(t),error:new Error("REFERENCE-".concat(t)),account:null})},t.prototype.logCoreError=function(t){this.logError(n(n({},t),{isCore:!0}))},t.prototype.logCoreFeature=function(t){this.logFeature(n(n({},t),{isCore:!0}))},t.prototype.logError=function(t){var e;void 0!==t&&this._tahoeStream.logEvent({eventCategory:"error",eventName:null!==(e=t.id)&&void 0!==e?e:"unknown",eventProperties:n(n(n({},t.props),this.getSharedEventProperties(t)),{error:{name:this.getErrorName(t.error),message:this.getErrorMessage(t.error),stack:this.getStackTraceMessage(t.error),context:this.getErrorContext(t.error)}})})},t.prototype.logFeature=function(t){var e;void 0!==t&&this._tahoeStream.logEvent({eventCategory:"feat",eventName:null!==(e=t.id)&&void 0!==e?e:"unknown",eventProperties:n(n(n({},t.props),this.getSharedEventProperties(t)),{status:t.feature})})},t.prototype.setEventProcessingInterval=function(t){if("number"!=typeof t)throw new Error("Event processing interval must be a number.");this._tahoeStream.clearAndUpdateEventProcessingInterval(t)},t.prototype.setEventSamplingRates=function(t){"number"==typeof(null==t?void 0:t.error)&&this._tahoeStream.setSampleRates({error:t.error}),"number"==typeof(null==t?void 0:t.feature)&&this._tahoeStream.setSampleRates({feat:t.feature})},t.prototype.getSharedEventProperties=function(t){var e;return{isCore:null!==(e=t.isCore)&&void 0!==e&&e,accountID:this.safelyGetAccountID(t.account),libraryVersion:s,url:this.getLocationHref(),hostname:this.getLocationHostname(),viewerCountryCode:this.getViewerCountryCode(t.account)}},t.prototype.safelyGetAccountID=function(t){var e="unknown";try{void 0!==(null==t?void 0:t.id)&&(e=t.id)}catch(t){try{e="Client Error: ".concat(t.name.toString()," - ").concat(t.message)}catch(t){e="Client Error: Unable to provide more information"}}return e},t.prototype.getLocationHref=function(){var t,e,n,o="";try{o=null!==(n=null===(e=null===(t=window.top)||void 0===t?void 0:t.location)||void 0===e?void 0:e.href)&&void 0!==n?n:""}catch(t){try{o="Client Error: ".concat(t.name.toString()," - ").concat(t.message)}catch(t){o="Client Error: Unable to provide more information"}}return o},t.prototype.getLocationHostname=function(){var t,e,n,o="";try{o=null!==(n=null===(e=null===(t=window.top)||void 0===t?void 0:t.location)||void 0===e?void 0:e.hostname)&&void 0!==n?n:""}catch(t){try{o="Client Error: ".concat(t.name.toString()," - ").concat(t.message)}catch(t){o="Client Error: Unable to provide more information"}}return o},t.prototype.getViewerCountryCode=function(t){var e="unknown";try{null!==t&&(e=t.use(S))}catch(t){try{e="Client Error: ".concat(t.name.toString()," - ").concat(t.message)}catch(t){e="Client Error: Unable to provide more information"}}return e},t.prototype.getStackTraceMessage=function(t){try{if("string"==typeof t)return"NO STACK: ERROR PASSED AS STRING";if(void 0===t.stack)return"NO STACK: error.stack IS UNDEFINED";if(t.stack.length>this.STACK_MAX_LENGTH){var e="[...]";return t.stack.substring(0,this.STACK_MAX_LENGTH-e.length)+e}return t.stack}catch(t){return"NO STACK: ERROR ON RETRIEVAL"}},t.prototype.getErrorName=function(t){var e="unknown";try{"string"==typeof t?e=t:void 0!==t.name&&(e=t.name)}catch(t){try{e="Client Error: ".concat(t.name.toString()," - ").concat(t.message)}catch(t){e="Client Error: Unable to provide more information"}}return e},t.prototype.getErrorMessage=function(t){var e="unknown";try{"string"==typeof t?e=t:void 0!==t.message&&(e=t.message)}catch(t){try{e="Client Error: ".concat(t.name.toString()," - ").concat(t.message)}catch(t){e="Client Error: Unable to provide more information"}}return e},t.prototype.getErrorContext=function(t){var e,n="unknown";try{"string"!=typeof t&&"context"in t&&(n=null!==(e=t.context)&&void 0!==e?e:"")}catch(t){try{n="Client Error: ".concat(t.name.toString()," - ").concat(t.message)}catch(t){n="Client Error: Unable to provide more information"}}return n},t}(),C=new x;!function(t){t.push="push",t.listenerSuccess="listenerSuccess",t.direct="direct"}(y||(y={})),function(t){t.internal="internal",t.apstag="apstag",t.webpage="webpage",t.dtbm="dtbm"}(b||(b={})),function(t){t.completed="completed",t.waiting="waiting",t.cancelled="cancelled"}(w||(w={})),function(t){t.started="started",t.error="error",t.unknown="unknown",t.deactivated="deactivated"}(E||(E={}));var I=n(n({},w),E),P=new Map([["_config/config/didLoad",function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return e.write("config/loaded",!0),[2,w.completed]}))}))}],["_config/requestViewerCountry/define",function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o;return i(this,(function(r){if(void 0===(null===(o=n.detail)||void 0===o?void 0:o.code))throw new Error("Missing country code");if("string"!=typeof(t=n.detail.code)||0===t.trim().length)throw new Error('Invalid country code: "'.concat(t,'"'));return e.update(S,(function(){return t})),[2,w.completed]}))}))}]]),A="apstag/configuration/fetch",L=new Map([[A,function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return(t=e.globalContext.document.createElement("script")).setAttribute("src","".concat("https://config.aps.amazon-adsystem.com/configs/").concat(e.id)),t.setAttribute("type","text/javascript"),t.setAttribute("async","async"),e.globalContext.document.head.appendChild(t),[4,new Promise((function(e,n){t.addEventListener("load",(function(){e()})),t.addEventListener("error",(function(t){n(t)}))}))];case 1:return n.sent(),[2,w.completed]}}))}))}]]),k="consent/GPPData",D="consent/isGPPListenerRegistered",N={key:"consent/isTCFAPIListenerRegistered",default:!1},O={key:"consent/TCData",default:void 0};function R(t,e){var n,o;return"string"==typeof(null==e?void 0:e.tcString)&&(null==e?void 0:e.tcString.length)>0||!0===(null===(o=null===(n=null==t?void 0:t.globalContext)||void 0===n?void 0:n.apstag)||void 0===o?void 0:o.isGDPRRegion)||!0===(null==e?void 0:e.gdprApplies)}function j(t,e){var n,o,r,i,a;return!0===(null===(o=null===(n=t.vendor)||void 0===n?void 0:n.consents)||void 0===o?void 0:o[793])&&(i=e,a=null===(r=t.purpose)||void 0===r?void 0:r.consents,(null!=i?i:[]).reduce((function(t,e){return t&&!0===(null==a?void 0:a[e])}),!0))}var T=function(t,e){var o={tcData:e,consents:[1]},r=function(t){try{return t()}catch(t){return"error"}};return{tcT:r((function(){return t.isAPStagAllowedToAccessInfoOnDevice()})),tcCC:r((function(){return function(t){var e,n=t.account,o=t.tcData,r=t.consents;if(!R(n,o))return!0;if("object"!=typeof o)return!1;if((null!==(e=o.tcfPolicyVersion)&&void 0!==e?e:0)<2)return!1;if(o.useNonStandardStacks)return!1;if(!o.isServiceSpecific)return!1;var i=!1;return r.forEach((function(t){var e,n,a;switch(null===(a=null===(n=null===(e=o.publisher)||void 0===e?void 0:e.restrictions)||void 0===n?void 0:n[t])||void 0===a?void 0:a[793]){case 0:case 2:i=!0;break;default:j(o,r)||(i=!0)}})),!i}(n(n({},o),{account:t}))})),tcCF:r((function(){return 0===function(t){var e,n=t.tcData,o=t.consents;if(0===(null!=o?o:[]).length)return["No consents param passed"];var r=[];try{if("object"!=typeof n){var i="";try{i=JSON.stringify(n)}catch(t){}r.push("Invalid tcData: ".concat(i))}return!1===n.gdprApplies?[]:((null!==(e=n.tcfPolicyVersion)&&void 0!==e?e:0)<2&&r.push("tcData version not supported: ".concat(n.tcfPolicyVersion)),n.useNonStandardStacks&&r.push("tcData's useNonStandardStacks should not be true"),n.isServiceSpecific||r.push("tcData needs to be service specific"),o.forEach((function(t){var e,i,a;switch(null===(a=null===(i=null===(e=n.publisher)||void 0===e?void 0:e.restrictions)||void 0===i?void 0:i[t])||void 0===a?void 0:a[793]){case 0:r.push("Invalid publisher restrictions 0, consent ".concat(t));break;case 2:r.push("Invalid publisher restrictions 2, consent ".concat(t));break;default:j(n,o)||r.push("Invalid publisher restrictions default, consent ".concat(t))}})),r)}catch(t){if(r.length>0)return r;throw t}}(o).length})),PRA:r((function(){return R(t,e)}))}},M={consent_gppapi_attemptSync:"consent/gppapi/attemptSync",consent_gppapi_didChange:"consent/gppapi/didChange",consent_gppapi_syncData:"consent/gppapi/syncData",consent_tcfapi_attemptSync:"consent/tcfapi/attemptSync",consent_tcfapi_didChange:"consent/tcfapi/didChange"},U=new Map([[M.consent_gppapi_attemptSync,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return void 0===e.globalContext.__gpp||!0===e.read(D)?[2,w.cancelled]:[4,e.record(M.consent_gppapi_syncData)];case 1:return n.sent(),t=e.globalContext.__gpp("addEventListener",(function(t){"error"!==(null==t?void 0:t.eventName)&&e.record(M.consent_gppapi_didChange,{eventListener:t,fromAddEvent:!0}).catch((function(t){}))})),e.write(D,"listenerRegistered"===(null==t?void 0:t.eventName)&&!0===(null==t?void 0:t.data)),[2,w.completed]}}))}))}],[M.consent_gppapi_didChange,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o;return i(this,(function(r){switch(r.label){case 0:return[4,e.record(M.consent_gppapi_syncData,{eventListener:null===(t=n.detail)||void 0===t?void 0:t.eventListener,fromAddEvent:null===(o=n.detail)||void 0===o?void 0:o.fromAddEvent})];case 1:return r.sent(),[2,w.completed]}}))}))}],[M.consent_gppapi_syncData,function(t){var e=t.account,o=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,r,a,u,s,d,l,v,f,p,g,h,m,y,b;return i(this,(function(i){return(null!==(g=null===(p=null===(f=null===(v=o.detail)||void 0===v?void 0:v.eventListener)||void 0===f?void 0:f.pingData)||void 0===p?void 0:p.gppString)&&void 0!==g?g:"").length>0?(t=null===(m=null===(h=o.detail)||void 0===h?void 0:h.eventListener)||void 0===m?void 0:m.pingData,u="addEventListener"):(d=c(function(t){var e,n,o;try{var r=t.globalContext.__gpp("ping",(function(t,e){e&&"object"==typeof t&&(n=t)}));void 0===n&&(null!==(e=null==r?void 0:r.gppString)&&void 0!==e?e:"").length>0&&(n=r)}catch(t){o="E:ping: ".concat(t)}return[n,o]}(e),2),t=d[0],a=d[1],u="ping","object"!=typeof t&&(l=c(function(t){var e,o;try{var r=t.globalContext.__gpp("getGPPData");e=n(n({},r),r.pingData)}catch(t){o="E:getGPPData: ".concat(t)}return[e,o]}(e),2),t=l[0],r=l[1],u="getGPPData")),s={gpp:{gppLength:"string"==typeof(null==t?void 0:t.gppString)?t.gppString.length:void 0,isGPPTilde:(null!==(y=null==t?void 0:t.gppString)&&void 0!==y?y:"").includes("~"),error10:r,error:a,gppVersion:null==t?void 0:t.gppVersion,cmpId:null==t?void 0:t.cmpId,method:u,fromAddEvent:null===(b=o.detail)||void 0===b?void 0:b.fromAddEvent}},e.write(k,t),[2,{status:w.completed,analytics:s}]}))}))}],[M.consent_tcfapi_attemptSync,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){return t=e.use(N),void 0===e.globalContext.__tcfapi||t?[2,w.cancelled]:(e.globalContext.__tcfapi("addEventListener",2,(function(t,n){e.record(M.consent_tcfapi_didChange,{tcData:t,success:n}).catch((function(t){}))})),[2,w.completed])}))}))}],[M.consent_tcfapi_didChange,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a;return i(this,(function(i){return t=null===(r=n.detail)||void 0===r?void 0:r.success,e.update(N,(function(e){return e||!0===t})),o=null===(a=n.detail)||void 0===a?void 0:a.tcData,e.update(O,(function(e){return void 0!==o||!0===t?o:e})),"object"!=typeof o?[2,w.completed]:[2,{status:w.completed,analytics:T(e,o)}]}))}))}]]);function q(t,e){if(!Array.isArray(t))throw new Error("must be an array")}function z(t,e){if("boolean"!=typeof t)throw new Error("must be a boolean")}function F(t){return function(e,n){if(!1===t.includes(e))throw new Error("must be one of the following values: ".concat(JSON.stringify(t)))}}function B(t){return function(e,n){null!=e&&t(e,n)}}function J(t,e,n){return void 0===n&&(n=""),new Proxy(t,{get:function(t,o){var r=Reflect.get(t,o),i=""!==n?"".concat(n,".").concat(String(o)):String(o),a=e[i];if(null!=a)try{a(r,i)}catch(t){throw new Error('Validation failed for "'.concat(i,'": ').concat(t.message))}return"object"==typeof r?J(r,e,i):r},set:function(t,e){throw new Error('Cannot set property "'.concat(String(e),'": object is read-only'))},deleteProperty:function(t,e){throw new Error('Cannot delete property "'.concat(String(e),'": object is read-only'))},defineProperty:function(t,e){throw new Error('Cannot define property "'.concat(String(e),'": object is read-only'))},setPrototypeOf:function(t){throw new Error("Cannot set prototype: object is read-only")}})}var V=function(){function t(t){var e=t.scope,n=t.object,o=t.action,r=t.validators,i=t.handler;this.throwIfInvalid(e,n,o),this.name="".concat(e,"/").concat(n,"/").concat(o),this.handler=this.wrapHandler(i,r)}return t.prototype.wrapHandler=function(t,e){var o=this;return function(a){return r(o,void 0,void 0,(function(){var o;return i(this,(function(r){switch(r.label){case 0:return o=a,void 0!==(null==e?void 0:e.detail)&&void 0!==a.customEvent.detail&&(o=n({detail:J(o.customEvent.detail,e.detail)},o)),[4,t(o)];case 1:return[2,r.sent()]}}))}))}},t.prototype.throwIfInvalid=function(t,e,n){var o=/^[a-z0-9][a-zA-Z0-9]*$/;if(!o.test(t)||!o.test(e)||!o.test(n))throw new Error("scope, object, and action must be alphanumeric and start with a lowercase. Received: ".concat(t,", ").concat(e,", ").concat(n));if(/[A-Z]/.test(n)&&!/^(will|did)/i.test(n))throw new Error("action must be a single verb (or a single verb prefixed by 'will' or 'did'). Received: ".concat(n))},t}();function G(t){if(new Set(t.map((function(t){return t.name}))).size!==t.length)throw new Error("Duplicates found");return new Map(t.map((function(t){return[t.name,t.handler]})))}var H="debugSession/end",W="prepend/events",Q="populator/ran",K={key:"consent/hasPurposeOneConsent",default:!1},Y=function(){function t(t){var e=this;this.getItem=function(t){var n=e.globalContext.document.cookie.split("; ").reduce((function(e,n){var o=n.split("=");return o[0]===t?decodeURIComponent(o.slice(1).join("=")):e}),"");return n.length>0?n:null},this.removeItem=function(t,n){void 0===n&&(n="/"),e.setItem(t,"",0,n)},this.setItem=function(t,n,o,r){void 0===r&&(r="/");var i=new Date(o);if(!e.isValidDate(i))throw new Error("Invalid expiration date");e.globalContext.document.cookie="".concat(t,"=").concat(n,"; expires=").concat(i.toUTCString(),"; path=").concat(r,";")},this.globalContext=t}return t.prototype.isValidDate=function(t){return t instanceof Date&&!isNaN(t)},t}(),X=["scope/objectName",H,W];function Z(t){return null===t||"object"!=typeof t?t:t instanceof Date?new Date(t.getTime()):t instanceof Array?t.reduce((function(t,e){return t.push(Z(e)),t}),[]):t instanceof Set?Array.from(t.values()).reduce((function(t,e){return t.add(Z(e)),t}),new Set):t instanceof Map?Array.from(t.entries()).reduce((function(t,e){return t.set(e[0],Z(e[1])),t}),new Map):t instanceof Object?Object.keys(t).reduce((function(e,n){return e[n]=Z(t[n]),e}),{}):t}var $=function(){function t(t,e){var n,o,r=null!==(n=null==e?void 0:e.rootName)&&void 0!==n?n:ht.rootName;this.globalContext=null!==(o=null==e?void 0:e.globalContext)&&void 0!==o?o:ht.globalContext;var i=this.globalContext[r].get(t);if(null==i)throw new Error('Missing "'.concat(t,'" account in userspace object'));this.id=t,this.store=i.store,this.queue=i.queue}return t.prototype.record=function(t,e){return r(this,void 0,void 0,(function(){var o=this;return i(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(r,i){o.queue.push(new CustomEvent(t,{detail:n({resolve:r,reject:i,source:b.internal},e)}))}))];case 1:return[2,r.sent()]}}))}))},t.prototype.recordListener=function(t,e){return r(this,void 0,void 0,(function(){var o=this;return i(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(r,i){o.queue.push(new CustomEvent(t.name,{detail:n({resolve:r,reject:i,source:b.internal},e)}))}))];case 1:return[2,r.sent()]}}))}))},t.prototype.recordListenerNonBlocking=function(t,e){this.recordListener(t,e).catch((function(t){}))},t.prototype.read=function(t,e){var n,o,r,i,a=this.store.get(t);if(void 0!==a)return a;if(void 0!==(null==e?void 0:e.persist)&&e.persist){var s=this.readLocalStorage(t,{usePrefix:!0});if(void 0!==s)return s}var d=null===(o=null===(n=null==e?void 0:e.default)||void 0===n?void 0:n.generators)||void 0===o?void 0:o.get(t);return void 0!==d?d.apply(void 0,u([],c(null!==(i=null===(r=null==e?void 0:e.default)||void 0===r?void 0:r.args)&&void 0!==i?i:[]),!1)):void 0},t.prototype.write=function(t,e,n){this.store.set(t,e),void 0!==(null==n?void 0:n.persist)&&n.persist&&this.writeLocalStorage(t,e,{usePrefix:!0})},t.prototype.use=function(t,e){var n,o=this.store.get(t.key);if(void 0!==o)n=o;else if(void 0!==(null==e?void 0:e.persist)&&e.persist){var r=this.readLocalStorage(t.key,{usePrefix:!0});null!=r&&(n=r)}var i=null!=n?n:t.default;if("function"==typeof i||!1===(null==e?void 0:e.structuredClone))return i;try{return structuredClone(i)}catch(t){try{return Z(i)}catch(t){return C.logCoreError({id:"Core.library.Account.use",account:null,error:t}),i}}},t.prototype.update=function(t,e,n){var o=e(this.use(t,n));if(void 0!==t.postProcessor&&(o=t.postProcessor(o)),this.store.set(t.key,o),void 0!==(null==n?void 0:n.persist)&&n.persist){if("string"!=typeof o)throw new Error("".concat(JSON.stringify(o)," must be a string to be writtable to browser storage"));this.writeLocalStorage(t.key,o,{usePrefix:!0})}},t.prototype.delete=function(t,e){this.store.delete(t),void 0!==(null==e?void 0:e.persist)&&e.persist&&this.deleteLocalStorage(t,{usePrefix:!0})},t.prototype.remove=function(t,e){this.store.delete(t.key),void 0!==(null==e?void 0:e.persist)&&e.persist&&this.deleteLocalStorage(t.key,{usePrefix:!0})},t.prototype.executeFuncWithConsent=function(t,e){if(!this.isAllowedToAccessInfoOnDevice())throw new Error("Invalid consent. API requires consent before execution.");return e.apply(t)},t.prototype.recordErrorEvent=function(t){C.logError(n(n({},t),{account:this}))},t.prototype.recordStatusChangeEvent=function(t){C.logFeature({id:t.id,account:this,feature:t.status,props:n({},t.props)})},t.prototype.recordGenericEvent=function(t){C.logFeature({id:t.id,account:this,feature:t.id,props:n({},t.props)})},t.prototype.isAllowedToAccessInfoOnDevice=function(){return this.updateUserConsent(),this.use(K)},t.prototype.isAPStagAllowedToAccessInfoOnDevice=function(){return!0===this.globalContext.apstag._atsaaiod()},t.prototype.updateUserConsent=function(){try{var t=this.isAPStagAllowedToAccessInfoOnDevice();this.update(K,(function(){return t}))}catch(t){}},t.prototype.getPersistedItemName=function(t){return"".concat("aps").concat(":").concat(this.id).concat(":").concat(t)},t.prototype.isBrowserStorageAllowed=function(t){var e=!1;try{e=this.isAllowedToAccessInfoOnDevice()}catch(t){}return e||X.includes(t)},t.prototype.readCookieStorage=function(t,e){var n;if(!this.isBrowserStorageAllowed(t))throw new Error("".concat(t," is not allowed to be read from cookie storage"));var o=null!==(n=null==e?void 0:e.usePrefix)&&void 0!==n&&n?this.getPersistedItemName(t):t;return new Y(this.globalContext).getItem(o)},t.prototype.readLocalStorage=function(t,e){var n;if(!this.isBrowserStorageAllowed(t))throw new Error("".concat(t," is not allowed to be read from browser storage"));var o=null!==(n=null==e?void 0:e.usePrefix)&&void 0!==n&&n?this.getPersistedItemName(t):t;if(o in this.globalContext.localStorage)return this.globalContext.localStorage.getItem(o)},t.prototype.writeLocalStorage=function(t,e,n){var o;if(!this.isBrowserStorageAllowed(t))throw new Error("".concat(t," is not allowed to be written to browser storage"));if("string"!=typeof e)throw new Error("".concat(JSON.stringify(e)," must be a string to be writtable to browser storage"));var r=null!==(o=null==n?void 0:n.usePrefix)&&void 0!==o&&o?this.getPersistedItemName(t):t;this.globalContext.localStorage.setItem(r,e)},t.prototype.deleteLocalStorage=function(t,e){var n;if(!this.isBrowserStorageAllowed(t))throw new Error("".concat(t," is not allowed to be touched/deleted in browser storage"));var o=null!==(n=null==e?void 0:e.usePrefix)&&void 0!==n&&n?this.getPersistedItemName(t):t;this.globalContext.localStorage.removeItem(o)},t.prototype.readSessionStorage=function(t,e){var n;if(!this.isBrowserStorageAllowed(t))throw new Error("".concat(t," is not allowed to be read from browser storage"));var o=null!==(n=null==e?void 0:e.usePrefix)&&void 0!==n&&n?this.getPersistedItemName(t):t;if(o in this.globalContext.sessionStorage)return this.globalContext.sessionStorage.getItem(o)},t.prototype.writeSessionStorage=function(t,e,n){var o;if(!this.isBrowserStorageAllowed(t))throw new Error("".concat(t," is not allowed to be written to browser storage"));if("string"!=typeof e)throw new Error("".concat(JSON.stringify(e)," must be a string to be writable to browser storage"));var r=null!==(o=null==n?void 0:n.usePrefix)&&void 0!==o&&o?this.getPersistedItemName(t):t;this.globalContext.sessionStorage.setItem(r,e)},t.prototype.deleteSessionStorage=function(t,e){var n;if(!this.isBrowserStorageAllowed(t))throw new Error("".concat(t," is not allowed to be touched/deleted in browser storage"));var o=null!==(n=null==e?void 0:e.usePrefix)&&void 0!==n&&n?this.getPersistedItemName(t):t;this.globalContext.sessionStorage.removeItem(o)},t}(),tt="_system",et=function(t){function n(e,n){return t.call(this,tt,{globalContext:e,rootName:n})||this}return e(n,t),n}($);function nt(t){var e=function(t,e){throw void 0!==t.context?t.context="".concat(e," > ").concat(t.context):t.context=e,t};return function(n,o,r){var i=r.value;return r.value=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];try{var r=i.apply(this,n);return r&&r instanceof Promise?r.catch((function(n){e(n,t)})):r}catch(n){e(n,t)}},r}}var ot,rt=function(){function t(t,e,n){this.globalContext=t,this.rootName=e,this.dispatcher=n}return t.prototype.getAccounts=function(){return this.globalContext[this.rootName]},t.prototype.createUserspaceRoot=function(){null==this.getAccounts()&&(this.globalContext[this.rootName]=new Map)},t.prototype.createSystemAccount=function(){!1===this.getAccounts().has(tt)&&(this.getAccounts().set(tt,{queue:[],store:new Map}),(new et).store.set(f,Math.random()))},t.prototype.observeRootSet=function(){var t=this;this.getAccounts().set=function(e,n){Map.prototype.set.apply(this,[e,n]),t.equip()}},t.prototype.observeAccountQueuesPush=function(){var t=this;this.getAccounts().forEach((function(e){e.queue.push=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];Array.prototype.push.apply(this,e),t.dispatcher.dispatch({reason:{method:y.push,events:e}})}}))},t.prototype.overwriteAccountStoresGet=function(){this.getAccounts().forEach((function(t){t.store.get=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Map.prototype.get.apply(this,t);return n}}))},t.prototype.defineConvenienceFunctions=function(){var t=this,e=function(e,n,o){var r=t.getAccounts().get(e);void 0!==r&&r.queue.push(new CustomEvent(n,{detail:null!=o?o:{}}))},n=this.globalContext[this.rootName];n.triggerFor=e,n.trigger=function(t,n){e(tt,t,n)},void 0===n._private&&(n._private={}),n._private.CookieStorage=Y},t.prototype.equip=function(){try{this.createUserspaceRoot(),this.createSystemAccount(),this.observeRootSet(),this.observeAccountQueuesPush(),this.overwriteAccountStoresGet(),this.defineConvenienceFunctions()}catch(t){throw(new et).recordErrorEvent({id:"Core.library.Equiper.equip",error:t}),t}},t}();!function(t){t.info="info",t.warn="warn",t.error="error"}(ot||(ot={}));var it=function(){function t(){}return t.Instance=function(){return this._instance},t.SessionId=function(){return this._sessionId},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=new Date(Date.now()),o=ot.info;return console.log.apply(console,u([this.getPrefix(n,o)],c(t),!1)),{timestamp:n,logLevel:o}},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=new Date(Date.now()),o=ot.warn;return console.warn.apply(console,u([this.getPrefix(n,o)],c(t),!1)),{timestamp:n,logLevel:o}},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=new Date(Date.now()),o=ot.error;return console.error.apply(console,u([this.getPrefix(n,o)],c(t),!1)),{timestamp:n,logLevel:o}},t.prototype.getPrefix=function(e,n){var o=e.toISOString();return"".concat(o," | ").concat(t.SessionId()," | [").concat(n.toUpperCase(),"]")},t._instance=new t,t._sessionId="".concat(Date.now()),t}(),at=it.Instance(),ct=function(t){var e,n;if(void 0===t||!Array.isArray(t))return!0;var o=window;do{if(t.includes(null===(e=null==o?void 0:o.location)||void 0===e?void 0:e.hostname))return!0;if(o===window.top)break;n=o,o=o.parent}while(n!==o&&n!==window.top);return!1},ut={key:"_internal/eventSources",default:new Map},st={key:"_internal/processedEventSources",default:new Set},dt=[I.completed,I.error,I.cancelled],lt=function(){function t(t,e){this.globalContext=t,this.rootName=e}return t.prototype.getDeactivations=function(t){var e;return null!==(e=t.store.get(v))&&void 0!==e?e:new Set},t.prototype.isEventDeactivated=function(t,e){return!0===this.getDeactivations(t).has(e.type)||function(t,e){var n,o,r,i,a,c;try{var u=null===(r=null===(o=null===(n=t.detail)||void 0===n?void 0:n.restrictions)||void 0===o?void 0:o.allow)||void 0===r?void 0:r.hostnames;if(void 0!==u&&!ct(u))return!0;var s=null===(c=null===(a=null===(i=t.detail)||void 0===i?void 0:i.restrictions)||void 0===a?void 0:a.block)||void 0===c?void 0:c.hostnames;if(void 0!==s&&ct(s))return!0}catch(t){return e.recordErrorEvent({id:"hostnames",error:new Error(t)}),!1}return!1}(e,t)||function(t){var e,n,o,r,i,a,c=null===(o=null===(n=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.restrictions)||void 0===n?void 0:n.allow)||void 0===o?void 0:o.libraryVersions,u=null===(a=null===(i=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.restrictions)||void 0===i?void 0:i.block)||void 0===a?void 0:a.libraryVersions;return!(!Array.isArray(u)||!u.includes(s))||!(!Array.isArray(c)||c.includes(s))}(e)||function(t,e){var n,o,r,i,a,c,u=null===(r=null===(o=null===(n=null==t?void 0:t.detail)||void 0===n?void 0:n.restrictions)||void 0===o?void 0:o.allow)||void 0===r?void 0:r.accounts,s=null===(c=null===(a=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.restrictions)||void 0===a?void 0:a.block)||void 0===c?void 0:c.accounts;return!(!Array.isArray(s)||!s.includes(e.id))||!(!Array.isArray(u)||u.includes(e.id))}(e,t)},t.prototype.getListeners=function(){var t;return null!==(t=(new et).store.get(d))&&void 0!==t?t:new Map},t.prototype.getListener=function(t){return this.getListeners().get(t.type)},t.prototype.shouldWaitingEventBeProcessed=function(t){var e=this.readStoreItemCount(p);return(void 0===t.externalEventCount||t.externalEventCount<e)&&(t.externalEventCount=e,!0)},t.prototype.shouldEventBeProcessed=function(t){if(void 0===t.status)return!0;if(t.status===I.started)return!1;if(dt.includes(t.status))return!1;if(t.status===I.waiting)return!!this.shouldWaitingEventBeProcessed(t);if(t.status===I.unknown)return!1;if(t.status===I.deactivated)return!1;throw new Error("Event status not explicitely handled: ".concat(t.status))},t.prototype.addTimeoutToPromiseRaceIfRequested=function(t,e){var n;void 0!==(null===(n=e.detail)||void 0===n?void 0:n.timeout)&&t.push(new Promise((function(t,n){setTimeout((function(){return n(new Error('Event "'.concat(e.type,'" timed out')))}),e.detail.timeout)})))},t.prototype.incrementStoreItemCountBy=function(t,e){var n,o=new et,r=null!==(n=o.read(t))&&void 0!==n?n:0;o.write(t,r+e)},t.prototype.resetStoreItemCount=function(t){(new et).write(t,0)},t.prototype.readStoreItemCount=function(t){var e;return null!==(e=(new et).read(t))&&void 0!==e?e:0},t.prototype.handleEventSuccess=function(t,e,n,o,r){var i;if(!(e in I))throw new Error("Listener returned invalid status: ".concat(t.type," returned ").concat(e));if(this.updateAndLogEventStatusOnChange(t,e,o,r),e!==I.waiting&&void 0!==(null===(i=t.detail)||void 0===i?void 0:i.resolve))try{t.detail.resolve(n)}catch(t){at.error(t)}this.dispatch({reason:{method:y.listenerSuccess,events:[t]}})},t.prototype.handleEventFailure=function(t,e,n){void 0!==e&&"string"!=typeof e||(e=new Error(e)),this.updateAndLogEventStatusOnChange(t,I.error,n),this.surfaceErrorToExternalUsers(t,e),e.context=t.type,n.recordErrorEvent({id:t.type,error:e})},t.prototype.addListenerToPromiseRace=function(t,e,n){var o=this.getListener(e);t.push(o({customEvent:e,account:n}))},t.prototype.runPromiseRace=function(t,e,n){var o=this;Promise.race(t).then((function(t){var r,i,a,c;"string"==typeof t?i=t:"object"==typeof t&&(i=t.status,a=t.value,c=t.analytics,!0===(null===(r=e.detail)||void 0===r?void 0:r.surfaceAnalytics)&&(void 0===a&&(a={}),a.analytics=c)),o.handleEventSuccess(e,i,a,n,c)})).catch((function(t){o.handleEventFailure(e,t,n)}))},t.prototype.executeListenerRace=function(t,e){var n=[];this.addListenerToPromiseRace(n,t,e),this.addTimeoutToPromiseRaceIfRequested(n,t),this.runPromiseRace(n,t,e)},t.prototype.recordErrorPassedAsEventDetailIfNoStatus=function(t,e){var n;if(void 0===t.status){var o=null===(n=t.detail)||void 0===n?void 0:n.error;void 0!==o&&e.recordErrorEvent({id:t.type,error:o})}},t.prototype.recordAnalyticsPassedAsEventDetailIfNoStatus=function(t,e){var o;if(void 0===t.status){var r=null===(o=t.detail)||void 0===o?void 0:o.analytics;void 0!==r&&e.recordStatusChangeEvent({id:t.type,status:I.unknown,props:n({},r)})}},t.prototype.flagDeactivatedListener=function(t,e){this.isEventDeactivated(e,t)&&this.updateAndLogEventStatusOnChange(t,I.deactivated,e)},t.prototype.flagMissingListener=function(t,e){void 0===this.getListener(t)&&this.updateAndLogEventStatusOnChange(t,I.unknown,e)},t.prototype.surfaceErrorToExternalUsers=function(t,e){var n;if(void 0!==(null===(n=t.detail)||void 0===n?void 0:n.reject))try{t.detail.reject(e),m()&&at.error(e)}catch(t){at.error(t)}},t.prototype.handleInvalidAccountError=function(t,e){var n=new Error('Invalid account ID: "'.concat(e.id,'"'));this.handleEventFailure(t,n,e)},t.isAccountValid=function(t){if("string"!=typeof t)return!1;return!["","undefined","true","false"].includes(t.trim())},t.prototype.dispatchEvent=function(e,n){var o;t.isAccountValid(n.id)?(this.recordErrorPassedAsEventDetailIfNoStatus(e,n),this.recordAnalyticsPassedAsEventDetailIfNoStatus(e,n),this.flagMissingListener(e,n),this.flagDeactivatedListener(e,n),this.shouldEventBeProcessed(e)&&(this.updateAndLogEventStatusOnChange(e,I.started,n),m()&&at.info("## Execute event: ".concat(e.type," with initial status ").concat(null!==(o=e.status)&&void 0!==o?o:"undefined")),this.executeListenerRace(e,n))):this.handleInvalidAccountError(e,n)},t.prototype.prependEventsFromRegisteredSources=function(t){var e=(new et).use(ut),n=t.use(st);e.forEach((function(e,o){var r;if(!n.has(o)){var i=e.map((function(t){var e=c(t,2),n=e[0],o=e[1];return new CustomEvent(n,o)}));(r=t.queue).unshift.apply(r,u([],c(i),!1)),t.update(st,(function(t){return t.add(o)}))}}))},t.prototype.dispatchAccount=function(t,e){var n=this;this.prependEventsFromRegisteredSources(t),t.queue.forEach((function(e){return n.dispatchEvent(e,t)}))},t.prototype.updateEventStatus=function(t,e){t.status=e,t.statusEvents=null!=t.statusEvents?t.statusEvents:[],t.statusEvents.push(new CustomEvent(e))},t.prototype.logEventUsage=function(t,e,o,r){var i,a=new CustomEvent("now").timeStamp,c=null===(i=t.statusEvents)||void 0===i?void 0:i.find((function(t){return t.type===I.started})),u=null!=c?a-c.timeStamp:void 0;o.recordStatusChangeEvent({id:t.type,status:e,props:n(n({},r),{timers:{sinceCreated:a-t.timeStamp,sinceStarted:u}})})},t.prototype.updateAndLogEventStatusOnChange=function(t,e,n,o){var r;t.status!==e&&(m()&&at.info("### Update ".concat(t.type," from ").concat(null!==(r=t.status)&&void 0!==r?r:"undefined"," to ").concat(e)),this.updateEventStatus(t,e),!0!==t.isLogDisabled&&this.logEventUsage(t,e,n,o))},t.prototype.getAccounts=function(){var t=this,e=new Map;return this.globalContext[this.rootName].forEach((function(n,o){return e.set(o,new $(o,{globalContext:t.globalContext,rootName:t.rootName}))})),e},t.prototype.limitHistoryLength=function(t){var e;if(!m()){var n=null!==(e=t.store.get(l))&&void 0!==e?e:[];if(n.length>150){var o=n.slice(-100);t.store.set(l,o)}}},t.prototype.recordProcessedEvents=function(t){var e,n=null!==(e=t.store.get(l))&&void 0!==e?e:[];n.push.apply(n,u([],c(t.queue.filter((function(t){return void 0!==t.status&&dt.includes(t.status)}))),!1)),t.store.set(l,n)},t.prototype.cleanUpAccountQueue=function(t){var e;(e=t.queue).splice.apply(e,u([0,t.queue.length],c(t.queue.filter((function(t){return void 0===t.status||!dt.includes(t.status)}))),!1))},t.prototype.archive=function(){var t=this;this.getAccounts().forEach((function(e){t.recordProcessedEvents(e),t.limitHistoryLength(e),t.cleanUpAccountQueue(e)}))},t.prototype.filterExternalEvents=function(t){return null==t?void 0:t.filter((function(t){var e,n;return(null===(e=t.detail)||void 0===e?void 0:e.source)!==b.internal&&(null===(n=t.detail)||void 0===n?void 0:n.source)!==b.apstag&&t.status!==I.waiting}))},t.prototype.getNumberOfExternalEvents=function(t){var e,n=this.filterExternalEvents(t);return null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0},t.prototype.updateExternalEventCount=function(t){var e=this.getNumberOfExternalEvents(t);this.incrementStoreItemCountBy(p,e)},t.prototype.throwOnInfiniteLoop=function(){var t=this,e=g;this.incrementStoreItemCountBy(e,1);var n=this.readStoreItemCount(e);if(n>1e4)throw new Error("Too many dispatches. Aborting");n%100==0&&(new et).recordGenericEvent({id:"Core.library.Dispatcher.throwOnInfiniteLoop",props:{recentDispatchesCount:n}}),setTimeout((function(){t.resetStoreItemCount(e)}),100)},t.prototype.dispatch=function(t){var e,n,o,r,i,a=this,c=t.reason;try{this.throwOnInfiniteLoop(),m()&&at.info('# Dispatch from method "'.concat(c.method,'" on event "').concat(null!==(n=null===(e=c.events)||void 0===e?void 0:e[0].type)&&void 0!==n?n:"undefined",'" with source "').concat(null!==(i=null===(r=null===(o=c.events)||void 0===o?void 0:o[0].detail)||void 0===r?void 0:r.source)&&void 0!==i?i:"undefined",'"\n_________________________________________')),this.updateExternalEventCount(c.events),this.getAccounts().forEach((function(t){return a.dispatchAccount(t,c)})),this.archive()}catch(t){throw(new et).recordErrorEvent({id:"Core.library.Dispatcher.dispatch",error:t}),t}},t}(),vt=function(){function t(t,e){this.globalContext=t,this.rootName=e}return t.prototype.subscribe=function(t){try{var e=new et,n=null!=e.store.get(d)?e.store.get(d):new Map;e.store.set(d,new Map(u(u([],c(n),!1),c(t),!1)))}catch(t){throw(new et).recordErrorEvent({id:"Core.library.Subscriber.subscribe",error:t}),t}},t}(),ft=function(){function t(t,e){this.globalContext=t,this.rootName=e}return t.prototype.populate=function(){try{var t=new et,e=!1;try{e=JSON.parse(t.read(Q))}catch(t){}if(e)return;t.write(Q,JSON.stringify(!0)),this.populateFromPrependStore(),this.populateFromQueryParams()}catch(t){(new et).recordErrorEvent({id:"Core.library.Populator.populate",error:t})}},t.prototype.populateFromPrependStore=function(){var t=this;this.globalContext[this.rootName].forEach((function(e,n){var o,r,i=new $(n,{globalContext:t.globalContext,rootName:t.rootName}),a=null!==(r=i.read(W,{persist:!0}))&&void 0!==r?r:"[]";i.write(W,JSON.stringify([]));try{var s=JSON.parse(a);if(0===s.length)return;(o=i.queue).push.apply(o,u([],c(s.map(gt)),!1))}catch(t){console.error("Error processing prepended events",t)}}))},t.prototype.populateFromQueryParams=function(){var t,e,n=null===(e=null===(t=this.globalContext)||void 0===t?void 0:t.location)||void 0===e?void 0:e.search,o=new URLSearchParams(n),r=this.globalContext[this.rootName],i=r.get(tt);pt(o,"aps.trigger").forEach((function(t){i.queue.push(gt(t))})),pt(o,"aps.triggerFor",!0).forEach((function(t){void 0!==t.accountId&&r.has(t.accountId)&&r.get(t.accountId).queue.push(gt(t))}));var a=pt(o,"aps_event");r.forEach((function(t){a.forEach((function(e){t.queue.push(gt(e))}))}))},t}(),pt=function(t,e,n){void 0===n&&(n=!1);var o=t.getAll(e),r=[];return o.forEach((function(t){var e,o=t.split(",");n&&(e=o.shift());var i=o.shift();if(void 0!==i&&i.length>0){var a=decodeURIComponent(o.join(",")),c=void 0;if(a.length>0)try{c=JSON.parse(a)}catch(t){console.error("Error processing query param event",i,c)}r.push({eventName:i.replace(/_/g,"/"),eventDetail:c,accountId:e})}})),r},gt=function(t){var e;return new CustomEvent(t.eventName,{detail:n({},null!==(e=t.eventDetail)&&void 0!==e?e:{})})},ht={globalContext:window,rootName:"_aps"},mt=function(){function t(t){this.ID=t,this.clear()}return t.prototype.clear=function(){var t=this;(new et).update(ut,(function(e){return e.delete(t.ID),e}))},t.prototype.recordListener=function(t,e){var n=this;(new et).update(ut,(function(o){var r=o.get(n.ID);return void 0!==r?r.push([t.name,e]):o.set(n.ID,[[t.name,e]]),o}))},t}(),yt=function(){function t(t,e){void 0===t&&(t=ht.globalContext),void 0===e&&(e=ht.rootName),this.dispatcher=new lt(t,e),this.equiper=new rt(t,e,this.dispatcher),this.subscriber=new vt(t,e),this.populator=new ft(t,e),this.globalContext=t,this.rootName=e}return t.prototype.createAccount=function(t){var e;if(void 0===t)throw new Error("accountID must be provided");this.globalContext[this.rootName]=null!==(e=this.globalContext[this.rootName])&&void 0!==e?e:new Map;var n=this.globalContext[this.rootName],o={store:new Map,queue:[]};return!1===n.has(t)&&n.set(t,o),new $(t,{globalContext:this.globalContext,rootName:this.rootName})},t.prototype.subscribe=function(t){this.subscriber.subscribe(t)},t.prototype.equip=function(){this.equiper.equip()},t.prototype.dispatch=function(t){var e=t.reason;this.dispatcher.dispatch({reason:e})},t.prototype.populate=function(){this.populator.populate()},t.prototype.load=function(t){var e=t.listeners;this.equip(),this.subscribe(e),this.dispatch({reason:{method:y.direct}}),this.populate()},t.prototype.registerEventSource=function(t){return this.equip(),new mt(t)},o([nt("HASH#Core.library.UserSpace.subscribe")],t.prototype,"subscribe",null),o([nt("HASH#Core.library.UserSpace.equip")],t.prototype,"equip",null),o([nt("HASH#Core.library.UserSpace.dispatch")],t.prototype,"dispatch",null),o([nt("HASH#Core.library.UserSpace.populate")],t.prototype,"populate",null),o([nt("HASH#Core.library.UserSpace.load")],t.prototype,"load",null),o([nt("HASH#Core.library.UserSpace.registerEventSource")],t.prototype,"registerEventSource",null),t}(),bt="vnd_prx_segments",wt="aps_targeting_comscore",Et=new V({scope:"cxm",object:"comscore",action:"set",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,{status:_t(e)}]}))}))}}),_t=function(t){var e=t.readSessionStorage(wt);if(t.deleteSessionStorage(wt),null==e)return w.cancelled;try{var n=JSON.parse(e)[bt];if(null==n)throw new Error;return t.globalContext.googletag.pubads().getSlots().forEach((function(t){t.setTargeting(bt,n)})),w.completed}catch(t){throw new Error("Malformed targeting object at ".concat(wt))}},St="aps_targeting_ias",xt=new V({scope:"cxm",object:"ias",action:"set",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,{status:Ct(e)}]}))}))}}),Ct=function(t){var e=t.readSessionStorage(St);if(t.deleteSessionStorage(St),null==e)return w.cancelled;try{var n=JSON.parse(e),o=t.globalContext.googletag;o.pubads().getSlots().forEach((function(t){var e=n.targeting.slots[t.getSlotElementId()];null!=e&&Object.keys(e).forEach((function(n){t.setTargeting(n,e[n])}))}));var r=n.targeting,i=r.brandSafety,a=r.fr,c=r.custom;return null!=i&&Object.keys(i).forEach((function(t){o.pubads().setTargeting(t,i[t])})),null!=c&&Object.keys(c).forEach((function(t){var e=c[t];Array.isArray(e)?e.forEach((function(e){o.pubads().setTargeting(t,e)})):o.pubads().setTargeting(t,e)})),null!=a&&o.pubads().setTargeting("fr",a),w.completed}catch(t){throw new Error("Malformed targeting object at ".concat(St))}},It="aps_targeting_illuma",Pt=new V({scope:"cxm",object:"illuma",action:"set",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,{status:At(e)}]}))}))}}),At=function(t){var e=t.readSessionStorage(It);if(t.deleteSessionStorage(It),null==e)return w.cancelled;var n=JSON.parse(e).results;if(null==n)throw new Error("Malformed targeting object at ".concat(It));var o=t.globalContext.googletag;return Object.keys(n).forEach((function(t){var e=n[t];o.pubads().setTargeting("".concat("illuma_").concat(t),JSON.stringify(e))})),w.completed},Lt=new V({scope:"cxm",object:"contextual",action:"set",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,Promise.all([e.recordListener(Et),e.recordListener(xt),e.recordListener(Pt)])];case 1:return t.sent(),[2,{status:w.completed}]}}))}))}}),kt=G([Et,Lt,xt,Pt]),Dt={key:"customPlacement/configuration",default:void 0},Nt={key:"customPlacement/contextURL",default:void 0},Ot={key:"customPlacement/configurationEndpoint",default:"https://aax.amazon-adsystem.com/e/placements"},Rt={key:"ad/context",default:void 0};function jt(t){var e=t.use(Rt);return void 0!==e&&"user"in e?(e.user,function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}(e,["user"])):e}function Tt(t,e){try{var n=null!=e?e:function(t){var e,n;try{if(void 0!==(null===(e=t.globalContext.top)||void 0===e?void 0:e.location.href))return null===(n=t.globalContext.top)||void 0===n?void 0:n.location.href}catch(t){}try{if(t.globalContext.top!==t.globalContext.self)return t.globalContext.document.referrer}catch(t){}return}(t);if(void 0!==n)return encodeURIComponent(n)}catch(t){}return""}function Mt(t){return r(this,void 0,void 0,(function(){var e,n,o,r,a;return i(this,(function(i){switch(i.label){case 0:return e={ortb2:jt(t)},n=t.use(Nt),o=t.use(Ot),r=Tt(t,n),a=encodeURIComponent(JSON.stringify(e)),[4,fetch("".concat(o,"?account=").concat(t.id,"&u=").concat(r,"&sg=").concat(a))];case 1:return[4,i.sent().json()];case 2:return[2,i.sent()]}}))}))}var Ut={key:"customPlacement/defaultLocationHints",default:new Set},qt={key:"customPlacement/secondaryLocationHints",default:new Set},zt={key:"customPlacement/requestedGAMSlots",default:new Set};function Ft(t){return r(this,void 0,void 0,(function(){var e,n,o;return i(this,(function(r){switch(r.label){case 0:return 6e4,e={slots:[{slotID:"93b7dd52-a8ce-11ed-afa1-0242ac120002:1",sizes:[[999,999]]}],timeout:6e4,_endpointDomain:"c.aps.amazon-adsystem.com",params:{program:"apscustom",is:"86355855cc6ed9e335d0382c8563aa10"}},n={pubID:t.id,isSelfServePub:36===t.id.length,deals:!0},o=t.use(Nt),[4,new Promise((function(r){var i;null===(i=t.globalContext.apstag)||void 0===i||i.fetchBids(e,(function(t){r(t)}),{initConfig:n,contextURL:o})}))];case 1:return[2,r.sent()]}}))}))}var Bt={customPlacement_configuration_fetch:"customPlacement/configuration/fetch",customPlacement_placement_enable:"customPlacement/placement/enable",customPlacement_hint_define:"customPlacement/hint/define",customPlacement_targeting_attach:"customPlacement/targeting/attach",customPlacement_bids_fetch:"customPlacement/bids/fetch"},Jt=new Map([[Bt.customPlacement_configuration_fetch,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return function(t){var e=t.use(Dt);if(void 0!==e)return!0;return!1}(e)?[2,w.cancelled]:[4,Mt(e)];case 1:return t=n.sent(),e.update(Dt,(function(){return t})),[4,e.record(Bt.customPlacement_targeting_attach)];case 2:return n.sent(),[2,w.completed]}}))}))}],[Bt.customPlacement_placement_enable,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){var t,n;return i(this,(function(o){switch(o.label){case 0:return function(t){var e,n;null===(n=null===(e=t.globalContext.googletag)||void 0===e?void 0:e.cmd)||void 0===n||n.push((function(){var e,n;null===(n=null===(e=t.globalContext.googletag)||void 0===e?void 0:e.pubads())||void 0===n||n.addEventListener("slotRequested",(function(e){t.update(zt,(function(t){return t.add(e.slot.getSlotElementId())}))}))}))}(e),e.record(Bt.customPlacement_configuration_fetch).catch((function(t){})),[4,e.record(Bt.customPlacement_bids_fetch)];case 1:if(t=o.sent().bidResponse,n=function(t,e){var n=t.use(zt);return e.filter((function(t){return!n.has(t.slotID)}))}(e,t),0===n.length)throw new Error("No custom placement bids arrived in time");return[4,e.record(Bt.customPlacement_targeting_attach)];case 2:return o.sent(),function(t,e){var n=function(t){var e=t.use(Ut),n=t.use(qt),o=u(u([],c(e),!1),c(n),!1);if(0===o.length)throw new Error("No configured hints");return o[0]}(t),o=t.globalContext.document.getElementById(n);if(null==o)throw new Error('Hint location "'.concat(n,'" not found'));e.every((function(e){var n,r=null===(n=e.targeting)||void 0===n?void 0:n.amzniid;return!(void 0!==r&&r.length>0)||(function(t,e,n){var o,r=t.globalContext.document.createElement("iframe"),i=e.size.split("x");Object.assign(r.style,{marginLeft:"0",marginTop:"0",height:"".concat(i[1],"px"),width:"100%"}),r.setAttribute("scrolling","no"),r.setAttribute("frameborder","0"),n.appendChild(r);var a=null===(o=r.contentWindow)||void 0===o?void 0:o.document;void 0!==a&&(a.open(),a.write('<!DOCTYPE html><html><head><meta charset="UTF-8"><style>html{height:100%}body{height:100%;margin:0;overflow:hidden}</style></head><body><script>window.parent.apstag.renderImp(document, "'+e.targeting.amzniid+'", {"inheritSize": true});<\/script></body></html>'),a.close())}(t,e,o),!1)}))}(e,n),[2,w.completed]}}))}))}],[Bt.customPlacement_hint_define,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a,c;return i(this,(function(i){if(void 0===(null===(c=n.detail)||void 0===c?void 0:c.id))throw new Error("Hint `id` must be defined");return t=n.detail,o=t.id,r=t.isDefault,a=Ut,!0!==r&&(a=qt),e.update(a,(function(t){return t.add(o)})),[2,w.completed]}))}))}],[Bt.customPlacement_targeting_attach,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){return void 0!==(t=e.use(Dt))&&function(t){return!0===(null==t?void 0:t.aps.some((function(t){return t.active})))}(t)?(function(t,e){var n,o,r=function(t,e){if(void 0===(null==e?void 0:e.google))return[];var n=t.use(zt);return e.google.filter((function(t){return!n.has(t.div)}))}(t,e);if(0===r.length)throw new Error("No unrequested slots in custom placement configuration");null===(o=null===(n=t.globalContext.googletag)||void 0===n?void 0:n.cmd)||void 0===o||o.push((function(){!function(t,e){var n,o=null===(n=null==t?void 0:t.pubads())||void 0===n?void 0:n.getSlots();null==e||e.forEach((function(t){var e=null==o?void 0:o.find((function(e){return e.getSlotElementId()===t.div}));void 0!==e&&Object.entries(t.targeting).forEach((function(t){var n=c(t,2),o=n[0],r=n[1];e.setTargeting(o,r)}))}))}(t.globalContext.googletag,r)}))}(e,t),[2,w.completed]):[2,w.cancelled]}))}))}],[Bt.customPlacement_bids_fetch,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){var t,n;return i(this,(function(o){switch(o.label){case 0:return void 0===(null===(n=e.globalContext.apstag)||void 0===n?void 0:n.fetchBids)?[2,w.waiting]:[4,Ft(e)];case 1:return t=o.sent(),[2,{status:w.completed,value:{bidResponse:t}}]}}))}))}]]),Vt=function(t){function n(e){var n=t.call(this,e.message)||this;return n.message='Could not read vendor data because: "'.concat(e.message,'"'),n}return e(n,t),n}(Error),Gt={key:"cxm/vendors",default:{}},Ht="__tamLIResolveResult",Wt={nonId:{noExtraDefaults:!0,source:"liveintent.com"},bidswitch:{source:"bidswitch.net"},openx:{source:"openx.net"},magnite:{source:"rubiconproject.com"},medianet:{source:"media.net"},pubmatic:{source:"pubmatic.com"},index:{source:"liveintent.indexexchange.com"},uid2:{source:"uidapi.com"}};function Qt(t){var e=[],n={user:{ext:{eids:e}}};return Object.entries(Wt).forEach((function(n){var o=n[0],r=n[1];if(void 0!==t[o]){var i={source:r.source,uids:[{id:t[o]}]};!0!==r.noExtraDefaults&&(i.uids[0].atype=3,i.uids[0].ext={provider:"liveintent.com"}),e.push(i)}})),n}var Kt="arcobj1",Yt="arcobj2";var Xt="cohort_ids";var Zt={cxm_vendors_set:"cxm/vendors/set",cxm_liveintent_set:"cxm/liveintent/set",cxm_arcspan_set:"cxm/arcspan/set",cxm_anonymised_set:"cxm/anomymised/set"},$t=new Map([[Zt.cxm_vendors_set,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,Promise.all([e.record(Zt.cxm_liveintent_set),e.record(Zt.cxm_arcspan_set),e.record(Zt.cxm_anonymised_set)])];case 1:return t.sent(),[2,w.completed]}}))}))}],[Zt.cxm_liveintent_set,function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){var t;return i(this,(function(o){try{t=function(t){var e,n,o;try{o=t.readLocalStorage(Ht)}catch(t){if(t instanceof Error)throw new Vt(t)}if(null!=o&&(void 0===t.globalContext.liModuleEnabled&&(t.globalContext.liModuleEnabled=Math.random()<.95,null===(n=null===(e=t.globalContext)||void 0===e?void 0:e.googletag)||void 0===n||n.cmd.push((function(){t.globalContext.googletag.pubads().setTargeting("li-module-enabled",t.globalContext.liModuleEnabled?["on"]:["off"])}))),t.globalContext.liModuleEnabled)){var r=void 0;try{r=Qt(JSON.parse(o))}catch(t){r=Qt(JSON.parse(decodeURIComponent(o)))}if(void 0!==r)return{data:{default:r}}}}(e)}catch(t){if(t instanceof Vt)return[2,{status:w.cancelled,analytics:{statusReason:t.message}}];throw t}return void 0===t?[2,w.cancelled]:(e.update(Gt,(function(e){var o;return n(n({},e),((o={}).liveintent=t,o))})),[2,w.completed])}))}))}],[Zt.cxm_arcspan_set,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(o){return t=function(t){var e=t.globalContext[Kt],n=t.globalContext[Yt],o=[],r=[],i=[];if(void 0!==e){if(void 0!==e.page_iab_codes.text&&(o=o.concat(e.page_iab_codes.text)),void 0!==e.page_iab_codes.images&&(o=o.concat(e.page_iab_codes.images)),void 0!==e.page_keywords){var a="string"==typeof e.page_keywords?e.page_keywords.split(","):e.page_keywords;i=i.concat(a),void 0!==(null==n?void 0:n.compcohorts)&&(i=i.concat(n.compcohorts))}void 0!==e.page_iab_newcodes.text&&(r=u([],c(new Set(u(u([],c(r),!1),c(e.page_iab_newcodes.text),!1))),!1)),void 0!==e.page_iab_newcodes.images&&(r=u([],c(new Set(u(u([],c(r),!1),c(e.page_iab_newcodes.images),!1))),!1));var s={name:"arcspan",segment:[],ext:{segtax:6}};r.forEach((function(t){s.segment=s.segment.concat({id:t})}));var d={data:[]};return d.data=d.data.concat(s),{data:{default:{site:{name:"arcspan",cat:o,sectioncat:o,pagecat:o,keywords:i.toString(),content:d,domain:new URL(t.globalContext.location.href).hostname,page:t.globalContext.location.href,ref:t.globalContext.document.referrer}}}}}}(e),void 0===t?[2,w.cancelled]:(e.update(Gt,(function(e){return n(n({},e),{arcspan:t})})),[2,w.completed])}))}))}],[Zt.cxm_anonymised_set,function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){var t;return i(this,(function(o){try{t=function(t){var e;try{e=t.readLocalStorage(Xt)}catch(t){if(t instanceof Error)throw new Vt(t)}if("string"==typeof e){for(var n=JSON.parse(e),o="",r=0;r<n.length;r++){var i=n[r];o+="perid=".concat(i),o+=r<n.length-1?",":""}return{data:{default:{user:{keywords:o}}}}}}(e)}catch(t){if(t instanceof Vt)return[2,{status:w.cancelled,analytics:{statusReason:t.message}}];throw t}return void 0===t?[2,w.cancelled]:(e.update(Gt,(function(e){var o;return n(n({},e),((o={}).anonymised=t,o))})),[2,w.completed])}))}))}]]),te={key:"cxm/ids",default:void 0},ee={key:"cxm/metadata",default:void 0};function ne(t,e){var o=t(e);return null!=o?(e.update(te,(function(t){return n(n({},t),o)})),{status:w.completed}):{status:w.cancelled}}function oe(t,e){var o=t(e);return null!=o?(e.update(ee,(function(t){return n(n({},t),o)})),{status:w.completed}):{status:w.cancelled}}var re,ie="33across",ae=new V({scope:"cxm",object:"33across",action:"get",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,ne(ce,e)]}))}))}}),ce=function(t){var e,n=t.readLocalStorage("33acrossId");return null!=n?((e={})[ie]=decodeURIComponent(n),e):null},ue="audigent",se=new V({scope:"cxm",object:"audigent",action:"get",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,ne(de,e)]}))}))}}),de=function(t){var e,n,o=null!==(n=t.readLocalStorage("hadronId"))&&void 0!==n?n:t.readLocalStorage("auHadronId");return null!=o?((e={})[ue]=o,e):null},le=new V({scope:"cxm",object:"id5",action:"get",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,ne(ve,e)]}))}))}}),ve=function(t){var e,n=t.readLocalStorage("id5id");return null!=n?((e={}).id5=JSON.parse(decodeURIComponent(n)).universal_uid,e):null},fe="liveRamp",pe="_lr_env",ge="idl_env",he="apstagLiveRampTimestamp";!function(t){t[t.oldTimestamp=0]="oldTimestamp",t[t.newTimestamp=1]="newTimestamp",t[t.noTimestamp=2]="noTimestamp"}(re||(re={}));var me=new V({scope:"cxm",object:"liveramp",action:"get",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){var t,n,o,r;return i(this,(function(i){return t=be(ye(e),e),n=function(){var e;return null!=t?((e={})[fe]=t.id,e):null},o=function(){var e;return null!=t?((e={})[fe]=t.newGen,e):null},[2,(r=ne(n,e)).status===w.completed?oe(o,e):r]}))}))}}),ye=function(t){var e=t.readLocalStorage(pe);if(null!=e)return e;var n=t.readCookieStorage(pe);if(null!=n)return n;var o=t.readLocalStorage(ge);if(null!=o)return o;var r=t.readCookieStorage(ge);return null!=r?r:null},be=function(t,e){if(null!=t&&""!==t)try{var n=JSON.parse(atob(decodeURIComponent(t))),o={id:n.envelope,newGen:re.noTimestamp};if(null!=n.timestamp){var r=e.readLocalStorage(he);null==r||r<n.timestamp?(o.newGen=re.newTimestamp,e.writeLocalStorage(he,n.timestamp.toString())):o.newGen=re.oldTimestamp}return o}catch(e){return{id:decodeURIComponent(t),newGen:re.noTimestamp}}return null},we="lotame",Ee=new V({scope:"cxm",object:"lotame",action:"get",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,ne(_e,e)]}))}))}}),_e=function(t){var e,n=t.readLocalStorage("panoramaId");return null!=n?((e={})[we]=n,e):null},Se="pubcommon",xe=new V({scope:"cxm",object:"pubcommon",action:"get",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,ne(Ce,e)]}))}))}}),Ce=function(t){var e,n,o=null!==(n=t.readLocalStorage("_pubcid"))&&void 0!==n?n:t.readLocalStorage("_sharedID");return null!=o?((e={})[Se]=o,e):null},Ie="publink",Pe=["_publink","_publink_srv","_pbjs_publink"],Ae=new V({scope:"cxm",object:"publink",action:"get",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,ne(Le,e)]}))}))}}),Le=function(t){var e,n,o;try{for(var r=a(Pe),i=r.next();!i.done;i=r.next()){var c=i.value,u=t.readCookieStorage(c);if(null!=u){var s=JSON.parse(u).publink;if(null!=s)return(o={})[Ie]=s,o}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},ke="yahoo",De="connectId",Ne=new V({scope:"cxm",object:"yahoo",action:"get",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,ne(Oe,e)]}))}))}}),Oe=function(t){var e,n=t.readLocalStorage(De);return null!=n&&(n=JSON.parse(n)[De]),null!=n?((e={})[ke]=n,e):null},Re=new V({scope:"cxm",object:"ids",action:"get",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,Promise.all([e.recordListener(ae),e.recordListener(se),e.recordListener(le),e.recordListener(me),e.recordListener(Ee),e.recordListener(xe),e.recordListener(Ae),e.recordListener(Ne)])];case 1:return t.sent(),[2,{status:w.completed}]}}))}))}}),je=G([ae,se,le,Re,me,Ee,xe,Ae,Ne]),Te="analytics/sampling/set",Me=new Map([[Te,function(t){t.account;var e=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,n,o,r,a;return i(this,(function(i){return void 0===(null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.rates)?[2,w.cancelled]:(void 0!==(null===(o=null===(n=null==e?void 0:e.detail)||void 0===n?void 0:n.rates)||void 0===o?void 0:o.error)&&C.setEventSamplingRates({error:e.detail.rates.error}),void 0!==(null===(a=null===(r=null==e?void 0:e.detail)||void 0===r?void 0:r.rates)||void 0===a?void 0:a.status)&&C.setEventSamplingRates({feature:e.detail.rates.status}),[2,w.completed])}))}))}],["log/analytics/setSampling",function(){return r(void 0,void 0,void 0,(function(){return i(this,(function(t){throw new Error("log/analytics/setSampling has been deprecated. Will be removed after 3/1/2024.")}))}))}],["log/analytics/setInterval",function(t){t.account;var e=t.customEvent;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){if("number"!=typeof(null===(t=e.detail)||void 0===t?void 0:t.interval))throw new Error("Invalid 'interval' param passed");return C.setEventProcessingInterval(e.detail.interval),[2,w.completed]}))}))}],["log/library/didError",function(){return r(void 0,void 0,void 0,(function(){return i(this,(function(t){throw new Error("log/library/didError has been deprecated. Will be removed after 3/1/2024.")}))}))}],["log/library/didUseFeature",function(){return r(void 0,void 0,void 0,(function(){return i(this,(function(t){throw new Error("log/library/didUseFeature has been deprecated. Will be removed after 3/1/2024.")}))}))}]]);var Ue,qe={debug_events_show:"debug/events/show",debug_prepend_add:"debug/prepend/add",debug_prepend_clear:"debug/prepend/clear",debug_prepend_remove:"debug/prepend/remove",debug_store_show:"debug/store/show",ad_debugSession_start:"ad/debugSession/start",debug_listeners_show:"debug/listeners/show"},ze=new Map([[qe.debug_events_show,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){return(t=u(u(u(u([],c((null!=e.store.get(l)?e.store.get(l):[]).map((function(t){return{type:t.type,status:"created",detail:t.detail,timestamp:t.timeStamp}}))),!1),c(e.queue.map((function(t){return{type:t.type,status:"created",detail:t.detail,timestamp:t.timeStamp}}))),!1),c((null!=e.store.get(l)?e.store.get(l):[]).map((function(t){return null!=t.statusEvents?t.statusEvents.map((function(e){return{type:t.type,status:e.type,detail:t.detail,timestamp:e.timeStamp}})):[]})).flat()),!1),c(e.queue.map((function(t){return null!=t.statusEvents?t.statusEvents.map((function(e){return{type:t.type,status:e.type,detail:t.detail,timestamp:e.timeStamp}})):[]})).flat()),!1).filter((function(t){return!t.type.startsWith("debug/")}))).sort((function(t,e){return t.timestamp-e.timestamp})),console.groupCollapsed("⌂ Account ID: ".concat(e.id)),console.table(t),console.groupEnd(),[2,w.completed]}))}))}],[qe.debug_prepend_add,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a,c,u,s;return i(this,(function(i){if(void 0===(null===(u=n.detail)||void 0===u?void 0:u.eventName))throw new Error("Missing event information");return t=null!==(s=e.read(W,{persist:!0}))&&void 0!==s?s:"[]",o=JSON.parse(t),r=n.detail,a=r.eventName,c=r.eventDetail,o.unshift({eventName:a,eventDetail:c}),e.write(W,JSON.stringify(o),{persist:!0}),[2,w.completed]}))}))}],[qe.debug_prepend_clear,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){return i(this,(function(t){return e.delete(W,{persist:!0}),[2,w.completed]}))}))}],[qe.debug_prepend_remove,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a,c,u;return i(this,(function(i){if(void 0===(null===(c=n.detail)||void 0===c?void 0:c.eventName))throw new Error("Missing event information");return t=null!==(u=e.read(W,{persist:!0}))&&void 0!==u?u:"[]",o=JSON.parse(t),r=n.detail.eventName,a=o.filter((function(t){return t.eventName!==r})),e.write(W,JSON.stringify(a),{persist:!0}),[2,w.completed]}))}))}],[qe.debug_store_show,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){return t=u([],c(e.store.entries()),!1),console.groupCollapsed("⌂ Account ID: ".concat(e.id)),console.table(t),console.groupEnd(),[2,w.completed]}))}))}],[qe.ad_debugSession_start,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){return i(this,(function(t){return function(t){return t.status!==w.waiting}(n)&&(function(t,e){var n;void 0!==(null===(n=t.detail)||void 0===n?void 0:n.minutes)&&function(t,e){var n,o=new Date;t.write(H,o.setMinutes(Number(o.getMinutes())+Number(null===(n=e.detail)||void 0===n?void 0:n.minutes)).toString(),{persist:!0})}(e,t);!function(t){var e;t.globalContext.apstagDEBUG=null!==(e=t.globalContext.apstagDEBUG)&&void 0!==e?e:{},t.globalContext.apstagDEBUG.url=function(t){var e,n,o,r,i=new URL(null!==(o=null===(n=null===(e=null==t?void 0:t.top)||void 0===e?void 0:e.location)||void 0===n?void 0:n.href)&&void 0!==o?o:null===(r=null==t?void 0:t.document)||void 0===r?void 0:r.referrer);return i.searchParams.set("amzn_debug_mode","1"),i.toString()}(t.globalContext)}(e)}(n,e),function(t){return t.queue.filter((function(t){return t.type===qe.ad_debugSession_start})).length>1}(e))?[2,w.completed]:function(t){var e=t.read(H,{persist:!0});return void 0!==e&&new Date>=new Date(Number(e))}(e)?(function(t){t.delete(H,{persist:!0}),function(t){var e;null===(e=t.globalContext.apstagDEBUG)||void 0===e||delete e.url}(t)}(e),[2,w.completed]):(function(t){t.record(qe.debug_events_show).catch((function(t){})),t.record(qe.debug_store_show).catch((function(t){}))}(e),[2,w.waiting])}))}))}],[qe.debug_listeners_show,function(t){return t.account,r(void 0,void 0,void 0,(function(){var t,e,n;return i(this,(function(o){return t=new et,e=t.store.get(d),n=u([],c(e.entries()),!1),console.groupCollapsed("⌂ Listeners"),console.table(n),console.groupEnd(),[2,w.completed]}))}))}]]),Fe="deviceSignal/sua";!function(t){t[t.unspecifiedUnknown=0]="unspecifiedUnknown",t[t.lowEntropy=1]="lowEntropy",t[t.highEntropy=2]="highEntropy"}(Ue||(Ue={}));var Be=["brands","mobile","platform"],Je=["architecture","bitness","fullVersionList","model","platformVersion"];function Ve(t,e,n){return r(this,void 0,void 0,(function(){var o;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.getHighEntropyValues(u(u([],c(Be),!1),c(Je),!1))];case 1:return o=r.sent(),t.write(e,JSON.stringify(Ge(o)),{persist:!0}),[3,3];case 2:return r.sent(),[3,3];case 3:return[2,w.completed]}}))}))}function Ge(t){var e,n,o={};return o.architecture=t.architecture,o.bitness=t.bitness,o.mobile=t.mobile?1:0,o.model=t.model,o.source=function(t){if(Je.some((function(e){return t[e]})))return Ue.highEntropy;if(Be.some((function(e){return t[e]})))return Ue.lowEntropy;return Ue.unspecifiedUnknown}(t),"string"==typeof t.platform&&(o.platform={brand:t.platform,version:null===(e=t.platformVersion)||void 0===e?void 0:e.split(".")}),Array.isArray(t.fullVersionList)?n=t.fullVersionList:Array.isArray(t.brands)&&(n=t.brands),n instanceof Array&&(o.browsers=n.map((function(t){var e;return{brand:t.brand,version:null===(e=t.version)||void 0===e?void 0:e.split(".")}}))),o}var He,We,Qe,Ke="deviceSignal/sua/set",Ye=new Map([[Ke,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){var t,n,o,r,a;return i(this,(function(i){switch(i.label){case 0:return t=Fe,n=null===(r=e.globalContext.navigator)||void 0===r?void 0:r.userAgentData,"string"==typeof(o=e.read(t,{persist:!0}))?e.write(t,o):n instanceof Object&&function(t,e,n){t.write(e,JSON.stringify(Ge(n)))}(e,t,n),!1!==(null===(a=e.globalContext.apstag)||void 0===a?void 0:a.isGDPRRegion)?[2,w.completed]:"function"!=typeof(null==n?void 0:n.getHighEntropyValues)?[3,2]:[4,Ve(e,t,n)];case 1:i.sent(),i.label=2;case 2:return[2,w.completed]}}))}))}]]),Xe={key:"deviceSignal/cookieDeprecationLabel",default:void 0},Ze=new V({scope:"deviceSignal",object:"cookieDeprecationLabel",action:"set",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){var t,n;return i(this,(function(o){switch(o.label){case 0:return void 0===(null==(t=e.globalContext.navigator.cookieDeprecationLabel)?void 0:t.getValue)||"function"!=typeof t.getValue?[2,{status:w.cancelled}]:[4,e.executeFuncWithConsent(t,t.getValue)];case 1:return void 0===(n=o.sent())||""===n?[2,{status:w.cancelled}]:(e.update(Xe,(function(){return n})),[2,{status:w.completed,analytics:{gcdl:n}}])}}))}))}}),$e=G([Ze]);!function(t){t.OpenRTB3_0="OpenRTB3_0"}(He||(He={})),function(t){t.Display="display",t.Video="video",t.MultiFormat="multi-format"}(We||(We={})),function(t){t.Googletag="googletag",t.AppNexus="appnexus",t.SAS="sas"}(Qe||(Qe={}));var tn=function(t){var e,o={id:t.slotID,spec:{placement:{tagid:null!==(e=t.slotName)&&void 0!==e?e:t.slotID}}};return void 0!==t.floor&&(o.flr=t.floor.value,o.flrcur=t.floor.currency),void 0!==t.slotParams&&(o.spec.placement.ext=t.slotParams),o.spec.placement=n(n({},o.spec.placement),en(t)),o},en=function(t){var e={};return t.mediaType===We.MultiFormat?e=nn(t.multiFormatProperties,t.companions):t.mediaType===We.Video?(e.video={},void 0!==t.sizes&&t.sizes.length>0&&(e.video={w:t.sizes[0][0],h:t.sizes[0][1]}),void 0!==t.companions&&t.companions.length>0&&(e.video.comp=t.companions.map((function(t){return{id:t}})))):t.mediaType===We.Display&&(e.display={},void 0!==t.sizes&&t.sizes.length>0&&(e.display.displayfmt=t.sizes.map((function(t){return{w:t[0],h:t[1]}})))),e},nn=function(t,e){var n,o={};if(void 0!==t&&(void 0!==t.display&&(o.display={displayfmt:void 0!==t.display.sizes?t.display.sizes.map((function(t){return{w:t[0],h:t[1]}})):void 0}),void 0!==t.video)){var r=null===(n=t.video.sizes)||void 0===n?void 0:n[0];o.video={w:void 0!==r?r[0]:void 0,h:void 0!==r?r[1]:void 0},void 0!==e&&(o.video.comp=e.map((function(t){return{id:t}})))}return o},on=function(t,e){var n={};return Object.keys(t).forEach((function(o){"object"==typeof t[o]&&null!==t[o]&&(o===e?Object.assign(n,t[o]):Object.assign(n,on(t[o],e)))})),n},rn=function(t){var e=on(t,"ext");return Object.entries(e).forEach((function(t){var n=c(t,2),o=n[0],r=n[1];"string"!=typeof r&&(e[o]=JSON.stringify(r))})),0!==Object.keys(e).length?e:void 0},an=function(t){var e,o=cn(t),r={mediaType:o};return o===We.MultiFormat?r=n(n({},r),un(t)):o===We.Display?r.sizes=sn(t.display):o===We.Video&&(r.sizes=dn(t.video),void 0!==(null===(e=t.video)||void 0===e?void 0:e.comp)&&(r.companions=ln(t.video))),r},cn=function(t){return void 0!==t.video&&void 0!==t.display?We.MultiFormat:void 0!==t.video?We.Video:We.Display},un=function(t){var e={multiFormatProperties:{}};return void 0!==t.video&&(e.multiFormatProperties.video={sizes:dn(t.video)},void 0!==t.video.comp&&(e.companions=ln(t.video))),void 0!==t.display&&(e.multiFormatProperties.display={sizes:sn(t.display)}),e},sn=function(t){var e=[];return void 0!==t&&(void 0!==t.displayfmt&&t.displayfmt.length>0&&(e=u(u([],c(e),!1),c(t.displayfmt.map((function(t){return[t.w,t.h]}))),!1)),void 0!==t.h&&void 0!==t.w&&(e=u(u([],c(e),!1),[[t.w,t.h]],!1))),e},dn=function(t){var e=[];return void 0!==t&&void 0!==t.h&&void 0!==t.w&&(e=u(u([],c(e),!1),[[t.w,t.h]],!1)),e},ln=function(t){var e;return void 0!==(null==t?void 0:t.comp)&&t.comp.length>0&&(e=t.comp.map((function(t){return t.id}))),e};function vn(t){return t.get=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Map.prototype.get.apply(this,t);return Map.prototype.delete.apply(this,t),n},t}var fn={key:"ad/targeting",default:new Map,postProcessor:vn},pn={key:"ad/slots",default:new Map},gn={key:"ad/attachTargeting",default:void 0},hn={key:"cxm/isConfigLoadInitiated",default:!1};function mn(t){var e=t.account,o=t.selectedSlots,a=t.publisherParams,c=t.timeout,u=t._endpointDomain,s=t.initConfig;return r(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return t=function(t){return t.map((function(t){return function(t){if(void 0!==t.version&&t.version!==He.OpenRTB3_0)throw new Error("Invalid OpenRTB version specified");var e=t.spec.placement,o=n({slotID:t.id,slotName:e.tagid},an(e)),r=rn(t);if(void 0!==r&&(o.slotParams=r),void 0!==t.flr){if(void 0!==t.flrcur&&"USD"!==t.flrcur)throw new Error('item.flrcur: only "USD" is currently supported');o.floor={value:t.flr,currency:"USD"}}return o}(t)}))}(o),[4,yn({account:e,legacySlots:t,publisherParams:a,timeout:c,_endpointDomain:u,initConfig:s})];case 1:return[2,r.sent()]}}))}))}function yn(t){var e=t.account,n=t.legacySlots,o=t.publisherParams,a=t.timeout,c=t._endpointDomain,u=t.initConfig;return r(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t){if(void 0===e.globalContext.apstag)throw new Error("apstag undefined in global scope");e.globalContext.apstag.fetchBids({slots:n,params:o,timeout:null!=a?a:6e4,_endpointDomain:c},(function(e){t(e)}),{initConfig:u})}))];case 1:return[2,t.sent()]}}))}))}var bn,wn,En="ad/schain",_n="ad/googletagSlotAutoImport",Sn=["187","189","306","312","313","314","317","318","290","291","292","293","294","296","297","300","301","302","303","304","305","307","308","310","311","405","454","456","457","458","459","460","461","462","463"],xn=["Rm3SiT","Z7rJBM","HxqYV1","pg0WhF","j9PaO9","mm3UXx","6i4dB6","8FD8nI"],Cn={3:u([],c(["4-10","5-14","6-1","7-6","7-7","6-7","6-8","7-2","7-3","7-8","7-9","7-10","7-11","7-12","7-13","7-14","7-16","7-18","7-20","7-21","7-22","7-23","7-27","7-28","7-29","7-30","7-34","7-36","7-37","7-39","7-40","7-41","7-42","7-43","7-44","13-2","14-2","14-3","14-8","15-1","23-1","23-2","23-3","23-4","23-5","23-6","23-7","23-8","23-9","23-10","25","25-1","25-2","25-3","25-4","25-5","25-6","25-7","26","26-1","26-2","26-3","26-4"].map((function(t){return"IAB".concat(t)}))),!1),4:u([],c(Sn),!1),5:u([],c(Sn),!1),6:u(u([],c(Sn),!1),c(xn),!1),7:u(u([],c(Sn),!1),c(xn),!1)},In={site:{id:"id",name:"name",domain:"domain",cattax:1,cat:["1"],sectioncat:["first","second"],pagecat:["first","second"],page:"page",ref:"ref",search:"search",mobile:1,privacypolicy:1,publisher:{id:"id",name:"name",cattax:1,cat:["1"],domain:"domain",ext:{}},content:{id:"id",episode:1,title:"title",series:"series",season:"season",artist:"artist",genre:"genre",album:"album",isrc:"isrc",producer:{id:"id",name:"name",cattax:1,cat:["1"],domain:"domain",ext:{}},url:"url",cattax:1,cat:["1"],prodq:1,context:1,contentrating:"contentrating",userrating:"userrating",qagmediarating:1,keywords:"first, second",kwarray:["first","second"],livestream:1,sourcerelationship:1,len:1,language:"language",langb:"langb",embeddable:1,data:[{id:"id",name:"name",segment:[{id:"id",name:"name",value:"value",ext:{}}],ext:{}}],network:{id:"id",name:"name",domain:"domain",ext:{}},channel:{id:"id",name:"name",domain:"domain",ext:{}},ext:{}},keywords:"first, second",kwarray:["first","second"],ext:{}}},Pn=function(t,e){var n=Object.keys(t).reduce((function(n,o){var r,i=o;if(void 0!==(null==e?void 0:e[i])){var a=t[i];"object"==typeof(r=a)&&!Array.isArray(r)&&Object.keys(r).length>0?n[i]=Pn(a,e[i]):n[i]=function(t,e){var n,o=e.cattax,r=e[t];return(null!==(n=Cn[o])&&void 0!==n?n:[]).length>0&&("cat"===t||"sectcat"===t||"sectioncat"===t||"pagecat"===t)&&Array.isArray(r)?r.filter((function(t){return!Cn[o].includes("".concat(t))})):r}(i,e)}return n}),{});return n},An=function(t,e,n,o){var r,i,a,c=n.globalContext.document.createElement("iframe"),u=null===(r=e.get("amznsz"))||void 0===r?void 0:r.split("x"),s=e.get("amzniid"),d=t;if(!(void 0===s||void 0===d||void 0===u||u.length<2)){c.style.marginLeft="0",c.style.marginTop="0",c.style.height="".concat(u[1],"px"),c.style.width="100%",c.setAttribute("scrolling","no"),c.setAttribute("frameborder","0");var l=n.globalContext.document.createElement("div"),v=null!==(i=null==o?void 0:o.location)&&void 0!==i?i:"afterend",f=n.globalContext.document.getElementById(d);if(null!=f){f.insertAdjacentElement(v,l),l.appendChild(c);var p=null===(a=null==c?void 0:c.contentWindow)||void 0===a?void 0:a.document;void 0!==p&&(p.open(),p.write('<!DOCTYPE html><html><head><meta charset="UTF-8"><style>html{height:100%}body{height:100%;margin:0;overflow:hidden}</style></head><body><script>window.parent.apstag.renderImp(document, "'+s+'", {"inheritSize": true});<\/script></body></html>'),p.close())}}},Ln="ad/ASRSlot/render",kn=new Map([[Ln,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o;return i(this,(function(r){if(void 0===(null===(t=n.detail)||void 0===t?void 0:t.id)||void 0===(null===(o=n.detail)||void 0===o?void 0:o.targeting))throw new Error("Missing event detail");return An(n.detail.id,n.detail.targeting,e),[2,w.completed]}))}))}]]);!function(t){t.equinoxWidget="amazon:93b7dd52-a8ce-11ed-afa1-0242ac120002"}(bn||(bn={})),function(t){t.equinoxWidget="aax-us-east.amazon-adsystem.com"}(wn||(wn={}));function Dn(t,e){return r(this,void 0,void 0,(function(){var o,r;return i(this,(function(i){switch(i.label){case 0:return function(t){t.forEach((function(t){if(void 0===t.deal)return t;t.deal.some((function(t){return t.id===bn.equinoxWidget}))&&function(t){void 0!==t.spec.placement.display&&(t.spec.placement.display.displayfmt=[{w:999,h:999}])}(t)}))}(t),[4,Rn(t,e)];case 1:return i.sent(),o=function(t){var e={};return t.forEach((function(t){var o=function(t){var e,o,r,i,a,c={},u="93b7dd52-a8ce-11ed-afa1-0242ac120002";return void 0!==(null===(e=t.deal)||void 0===e?void 0:e.find((function(t){return t.id==="amazon:".concat(u)})))&&(c=n(n({},c),{program:"apscustom"})),n(n({},c),null!==(a=null===(i=null===(r=null===(o=t.spec.placement.display)||void 0===o?void 0:o.ext)||void 0===r?void 0:r.amazon)||void 0===i?void 0:i[u])&&void 0!==a?a:{})}(t);e=n(n({},e),o)})),e}(t),[4,On(t,o,e)];case 2:return i.sent(),r=e.use(fn),[4,jn(t,r,e)];case 3:return i.sent(),[2]}}))}))}function Nn(t){return t.some((function(t){return function(t){var e;return!0===(null===(e=t.deal)||void 0===e?void 0:e.some((function(t){return t.id===bn.equinoxWidget})))}(t)}))}function On(t,e,n){return r(this,void 0,void 0,(function(){var o;return i(this,(function(r){switch(r.label){case 0:return o={itemIds:t.map((function(t){return t.id})),publisherParams:e},Nn(t)&&(o._endpointDomain=wn.equinoxWidget),[4,n.record(Un.ad_targeting_fetch,o)];case 1:return r.sent(),[2]}}))}))}function Rn(t,e){return r(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,e.record(Un.ad_slot_define,{item:t})];case 1:return n.sent(),[2]}}))}))}function jn(t,e,n){return r(this,void 0,void 0,(function(){var o,r,c,u,s,d,l;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,7]),o=a(t),r=o.next(),i.label=1;case 1:return r.done?[3,4]:(c=r.value,void 0===(u=e.get(c.id))?[3,3]:[4,Tn(c,u,n)]);case 2:i.sent(),i.label=3;case 3:return r=o.next(),[3,1];case 4:return[3,7];case 5:return s=i.sent(),d={error:s},[3,7];case 6:try{r&&!r.done&&(l=o.return)&&l.call(o)}finally{if(d)throw d.error}return[7];case 7:return[2]}}))}))}function Tn(t,e,n){var o;return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return!0!==(null===(o=t.deal)||void 0===o?void 0:o.some((function(t){return t.id===bn.equinoxWidget})))?[3,2]:[4,n.record(Ln,{id:t.id,targeting:e})];case 1:return r.sent(),[3,3];case 2:throw new Error("Not implemented: The ad/slot/render event can only be used with specific deal IDs currently");case 3:return[2]}}))}))}var Mn,Un={ad_schain_define:"ad/schain/define",ad_slot_define:"ad/slot/define",ad_slot_import:"ad/slot/import",ad_slot_render:"ad/slot/render",ad_targeting_fetch:"ad/targeting/fetch",ad_targeting_attach:"ad/targeting/attach",ad_signals_define:"ad/signals/define",cxm_config_load:"cxm/config/load"},qn=new Map([[Un.ad_slot_define,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a,s,d;return i(this,(function(i){if(0===(t=u(u([],c(null!==(r=null===(o=n.detail)||void 0===o?void 0:o.item)&&void 0!==r?r:[]),!1),c(null!==(d=null===(s=null===(a=n.detail)||void 0===a?void 0:a.slots)||void 0===s?void 0:s.map(tn))&&void 0!==d?d:[]),!1)).length)throw new Error("Expecting a non-empty array for 'item' (OpenRTB) or 'slots' (legacy)");return t.forEach((function(t){e.update(pn,(function(e){return e.set(t.id,t)}))})),[2,w.completed]}))}))}],[Un.ad_targeting_fetch,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,u,s,d,l,v;return i(this,(function(i){switch(i.label){case 0:return void 0===e.globalContext.apstag?[2,w.waiting]:(function(t){var e=t.use(hn);e||(t.update(hn,(function(){return!0})),t.record(Un.cxm_config_load).catch((function(t){})))}(e),function(t){(function(t){if(function(t){var e,n;try{for(var o=a(t.queue),r=o.next();!r.done;r=o.next()){var i=r.value;if(i.type===qe.ad_debugSession_start&&i.status===w.waiting)return!0}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return!1}(t))return!1;var e=t.read(H,{persist:!0});if(void 0!==e)return!0;return!1})(t)&&t.record(qe.ad_debugSession_start).catch((function(t){}))}(e),t=function(t){return Array.from(t.use(pn).values())}(e),o=function(t,e){var n=t;void 0!==e&&e.length>0&&(n=t.filter((function(t){return e.includes(t.id)})));return n}(t,null===(s=n.detail)||void 0===s?void 0:s.itemIds),r=null===(d=n.detail)||void 0===d?void 0:d.publisherParams,[4,mn({account:e,selectedSlots:o,publisherParams:r,timeout:null===(l=n.detail)||void 0===l?void 0:l.timeout,_endpointDomain:null===(v=n.detail)||void 0===v?void 0:v._endpointDomain,initConfig:{pubID:e.id,isSelfServePub:36===e.id.length,deals:!0}})]);case 1:return u=i.sent(),function(t,e){t.update(fn,(function(t){return function(t,e){e.forEach((function(e){t.set(e.slotID,new Map)}))}(t,e),function(t,e){e.forEach((function(e){Object.entries(e.targeting).forEach((function(n){var o=c(n,2),r=o[0],i=o[1];Map.prototype.get.apply(t,[e.slotID]).set(r,i)}))}))}(t,e),t}))}(e,u),function(t){var e=function(e){var n=e.adServer,o=e.itemIds;t.record(Un.ad_targeting_attach,{itemIds:o,adServer:n}).catch((function(t){}))};t.update(gn,(function(){return e}))}(e),[2,w.completed]}}))}))}],[Un.ad_targeting_attach,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a;return i(this,(function(i){if(void 0===(t=null===(r=n.detail)||void 0===r?void 0:r.adServer))throw new Error("adServer must be defined");if(!Object.values(Qe).includes(t))throw new Error("adServer: ".concat(t," isn't currently supported"));return o={pubID:e.id},e.globalContext.apstag.setDisplayBids(null===(a=n.detail)||void 0===a?void 0:a.itemIds,{initConfig:o,adServer:t}),[2,w.completed]}))}))}],[Un.ad_slot_import,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(o){if(void 0===(null===(t=n.detail)||void 0===t?void 0:t.adServer))throw new Error("adServer: a valid value must be provided");if(n.detail.adServer===Qe.Googletag)return e.write(_n,!0),[2,w.completed];throw new Error("adServer: value provided isn't currently supported")}))}))}],[Un.ad_schain_define,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(o){if(void 0===(null===(t=n.detail)||void 0===t?void 0:t.schain))throw new Error("Missing schain object");return e.write(En,n.detail.schain),[2,w.completed]}))}))}],[Un.ad_signals_define,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(o){if(void 0===n.detail||!("context"in n.detail))throw new Error("Missing detail object");return t=null!=n.detail.context?Pn(In,n.detail.context):n.detail.context,e.update(Rt,(function(){return t})),[2,w.completed]}))}))}],[Un.ad_slot_render,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o;return i(this,(function(r){switch(r.label){case 0:return void 0===(t=null===(o=n.detail)||void 0===o?void 0:o.item)?[3,2]:[4,Dn(t,e)];case 1:return r.sent(),[2,w.completed];case 2:throw new Error('Not implemented: The ad/slot/render event can only be used with the "item" attribute currently')}}))}))}],[Un.cxm_config_load,function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){var t,n,o;return i(this,(function(r){switch(r.label){case 0:return void 0===(null===(o=e.globalContext.apstag)||void 0===o?void 0:o._load3PLibraryConfig)?[2,w.waiting]:(t=e.id,36===e.id.length&&(t="600",n=e.id),[4,new Promise((function(o,r){var i;if(void 0===(null===(i=e.globalContext.apstag)||void 0===i?void 0:i._load3PLibraryConfig))throw new Error("apstag._load3PLibraryConfig is undefined");e.globalContext.apstag._load3PLibraryConfig(e.id,{sourceID:t,publisherUUID:n},o,r)}))]);case 1:return r.sent(),[2,w.completed]}}))}))}]]);!function(t){t.equinoxWidget="amazon:93b7dd52-a8ce-11ed-afa1-0242ac120002"}(Mn||(Mn={}));var zn,Fn=new Map([["ad/container/didInitialize",function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a,c;return i(this,(function(i){switch(i.label){case 0:return t=null===(a=n.detail)||void 0===a?void 0:a.id,o=null===(c=n.detail)||void 0===c?void 0:c.labels,void 0!==t&&void 0!==o&&o.includes(Mn.equinoxWidget)?(r=[{id:t,spec:{placement:{display:{}}},deal:[{id:Mn.equinoxWidget}]}],[4,e.record(Un.ad_slot_render,{item:r})]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2,w.completed]}}))}))}]]),Bn={key:"_monitoring/statusesByEventIdentifier",default:new Map},Jn=function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a,c;return i(this,(function(i){if(void 0===(t=null===(c=n.detail)||void 0===c?void 0:c.eventIdentifier))throw new Error("Missing eventIdentifier parameter");return o=e.use(Bn),r="".concat(n.type,":").concat(t),void 0!==(a=o.get(r))?[2,a]:[2,w.waiting]}))}))},Vn=function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a,c,u;return i(this,(function(i){if(void 0===(t=null===(a=n.detail)||void 0===a?void 0:a.eventIdentifier))throw new Error("Missing eventIdentifier parameter");if(void 0===(o=null===(c=n.detail)||void 0===c?void 0:c.statusUpdate))throw new Error("Missing statusUpdate parameter");if(!(o in w))throw new Error("Invalid statusUpdate parameter. Expected one of ".concat(Object.values(w).join(", ")));if(void 0===(r=null===(u=n.detail)||void 0===u?void 0:u.pairedEvents)||r.length<1||r.some((function(t){return"string"!=typeof t})))throw new Error("Parameter pairedEvents must be a non-empty array of string");return r.forEach((function(n){var r="".concat(n,":").concat(t);e.update(Bn,(function(t){return t.set(r,o)}))})),[2,w.completed]}))}))},Gn=new Map([["_monitor/testing/only",Jn],["_update/testing/only",Vn],["_legacy/bidRequest/monitor",Jn],["_legacy/bidRequest/didComplete",Vn]]),Hn=new V({scope:"prebid",object:"analyticsEvent",action:"track",handler:function(t){var e=t.account,o=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,r,a,c,u,s,d;return i(this,(function(i){switch(i.label){case 0:return void 0===(null===(a=o.detail)||void 0===a?void 0:a.eventType)||void 0===(null===(c=o.detail)||void 0===c?void 0:c.eventArgs)||void 0===(null===(d=null===(s=null===(u=o.detail)||void 0===u?void 0:u.config)||void 0===s?void 0:s.options)||void 0===d?void 0:d.accountID)?[2,{status:w.cancelled}]:(t={eventType:o.detail.eventType,metadata:o.detail.metadata,config:o.detail.config},[4,e.globalContext.fetch("".concat("https://prod.us-east-1.cxm-bcn.publisher-services.amazon.dev/v1/events/prebid"),Wn(o.detail))]);case 1:return(r=i.sent()).ok?[2,{status:w.completed,analytics:t}]:[2,{status:w.cancelled,analytics:n(n({},t),{message:"Request failed: ".concat(r.status)})}]}}))}))}}),Wn=function(t){var e={accountId:t.config.options.accountID,events:[{eventArgs:t.eventArgs,eventType:t.eventType}]};return{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}},Qn={key:"prebid/config",default:void 0};!function(t){t.NotStarted="NOT STARTED",t.Loading="LOADING",t.Complete="COMPLETE"}(zn||(zn={}));var Kn,Yn,Xn={key:"prebid/configRequestState",default:zn.NotStarted},Zn=new V({scope:"prebid",object:"config",action:"fetch",handler:function(t){var e=t.account,o=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,r,a,c,u,s,d,l,v;return i(this,(function(i){switch(i.label){case 0:if((t=e.use(Xn))===zn.Loading)return[2,{status:w.waiting}];if(r={metadata:null===(v=null==o?void 0:o.detail)||void 0===v?void 0:v.metadata},t===zn.Complete&&void 0!==(a=e.use(Qn)))return[2,{status:w.completed,value:JSON.parse(a),analytics:r}];i.label=1;case 1:return i.trys.push([1,4,,5]),e.update(Xn,(function(){return zn.Loading})),c="".concat("https://c.amazon-adsystem.com/cdn/prod/config","?src=").concat(e.id),[4,e.globalContext.fetch(c)];case 2:return u=i.sent(),e.update(Xn,(function(){return zn.Complete})),u.ok?[4,u.json()]:[2,{status:w.cancelled,analytics:n(n({},r),{message:"Config request failed"})}];case 3:return s=i.sent(),d=$n(e,s),e.update(Qn,(function(){return JSON.stringify(d)}),{persist:!0}),[2,{status:w.completed,value:d,analytics:r}];case 4:return l=i.sent(),[2,{status:w.cancelled,analytics:n(n({},r),{message:l.message})}];case 5:return[2]}}))}))}}),$n=function(t,e){var n,o,r;return{analyticsConfig:{options:{accountID:t.id,sampling:null===(n=e.pbjs)||void 0===n?void 0:n.sampleRate},includeEvents:null===(o=e.pbjs)||void 0===o?void 0:o.allowedEvents},idConfig:{params:{accountID:t.id,enabled:null===(r=e.pbjs)||void 0===r?void 0:r.enabled}}}},to={key:"prebid/eidsConfig",default:"{}"};!function(t){t.Audigent="hadronId",t.ID5="id5id",t.Liveramp="idl_env",t.Lotame="lotamePanoramaId",t.Pubcommon="pubcid",t.Publink="publinkId",t.ThirtyThree="33acrossId",t.Yahoo="connectId"}(Yn||(Yn={}));var eo=new Map([[ue,Yn.Audigent],["id5",Yn.ID5],[fe,Yn.Liveramp],[we,Yn.Lotame],[Se,Yn.Pubcommon],[Ie,Yn.Publink],[ie,Yn.ThirtyThree],[ke,Yn.Yahoo]]),no=((Kn={})[Yn.Audigent]={source:"audigent.com",atype:1},Kn[Yn.ID5]={source:"id5-sync.com",atype:1},Kn[Yn.Liveramp]={source:"liveramp.com",atype:3},Kn[Yn.Lotame]={source:"crwdcntrl.net",atype:1},Kn[Yn.Pubcommon]={source:"pubcid.org",atype:1},Kn[Yn.Publink]={source:"epsilon.com",atype:3},Kn[Yn.ThirtyThree]={source:"33across.com",atype:1},Kn[Yn.Yahoo]={source:"yahoo.com",atype:3},Kn),oo=new V({scope:"prebid",object:"eidsConfig",action:"get",handler:function(t){var e=t.account,o=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,r,a,c;return i(this,(function(i){return void 0===(null===(r=e.globalContext.apstag)||void 0===r?void 0:r._atsaaiod)?[2,{status:w.waiting}]:(e.update(to,(function(){return JSON.stringify(n({},no))}),{persist:!0}),t={metadata:null===(a=null==o?void 0:o.detail)||void 0===a?void 0:a.metadata,config:null===(c=null==o?void 0:o.detail)||void 0===c?void 0:c.config},[2,{status:w.completed,analytics:t}])}))}))}}),ro={key:"prebid/ids",default:void 0},io=new V({scope:"prebid",object:"ids",action:"get",handler:function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a,u,s,d,l;return i(this,(function(i){switch(i.label){case 0:return void 0===(null===(u=e.globalContext.apstag)||void 0===u?void 0:u._atsaaiod)?[2,{status:w.waiting}]:(e.recordListenerNonBlocking(Re),void 0!==(t=e.use(te))&&(o=Object.fromEntries(Object.entries(t).map((function(t){var e=c(t,2),n=e[0],o=e[1];return[eo.get(n),o]})))),[4,e.recordListener(Zn,{metadata:null===(s=null==n?void 0:n.detail)||void 0===s?void 0:s.metadata})]);case 1:return r=i.sent(),a={metadata:null===(d=null==n?void 0:n.detail)||void 0===d?void 0:d.metadata},null!==(l=r.idConfig.params.enabled)&&void 0!==l&&l?(e.update(ro,(function(){return o})),[2,{status:w.completed,value:o,analytics:a}]):[2,{status:w.cancelled,analytics:a}]}}))}))}}),ao=G([Hn,Zn,oo,io]),co=new Map([["ad/record/delete",function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return void 0===(null===(t=e.globalContext.apstag)||void 0===t?void 0:t.dpa)?[2,w.waiting]:[4,new Promise((function(t,n){var o;try{null===(o=e.globalContext.apstag)||void 0===o||o.dpa((function(){return t()}))}catch(t){n(new Error("apstag.dpa error: ".concat(t)))}}))];case 1:return n.sent(),[2,w.completed]}}))}))}],["ad/record/renew",function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(o){switch(o.label){case 0:return void 0===(null===(t=e.globalContext.apstag)||void 0===t?void 0:t.rpa)?[2,w.waiting]:[4,new Promise((function(t,o){var r,i;if(void 0===(null===(r=n.detail)||void 0===r?void 0:r.config))throw new Error("Missing tokenConfig object");try{null===(i=e.globalContext.apstag)||void 0===i||i.rpa(n.detail.config,(function(){return t()}),n.detail.setCookie,e.id)}catch(t){o(new Error("apstag.rpa error: ".concat(t)))}}))];case 1:return o.sent(),[2,w.completed]}}))}))}],["ad/record/rr",function(t){var e=t.account,o=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,r;return i(this,(function(i){if(void 0===(null===(t=e.globalContext.apstag)||void 0===t?void 0:t.rr))return[2,w.waiting];if(void 0===(null===(r=o.detail)||void 0===r?void 0:r.config))throw new Error("Missing config object");return e.globalContext.apstag.rr(n({accountID:e.id},o.detail.config)),[2,w.completed]}))}))}],["ad/record/update",function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(o){switch(o.label){case 0:return void 0===(null===(t=e.globalContext.apstag)||void 0===t?void 0:t.upa)?[2,w.waiting]:[4,new Promise((function(t,o){var r,i;if(void 0===(null===(r=n.detail)||void 0===r?void 0:r.config))throw new Error("Missing tokenConfig object");try{null===(i=e.globalContext.apstag)||void 0===i||i.upa(n.detail.config,(function(){return t()}),n.detail.setCookie,"api",e.id)}catch(t){o(new Error("apstag.upa error: ".concat(t)))}}))];case 1:return o.sent(),[2,w.completed]}}))}))}]]);function uo(t){return r(this,void 0,void 0,(function(){var e,n,o,r;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),[4,crypto.subtle.importKey("jwk",{alg:"A128CTR",ext:!0,k:"ERTYQsuodPO_Um-5jFmOLg",key_ops:["encrypt"],kty:"oct"},"AES-CTR",!0,["encrypt"])];case 1:return e=i.sent(),n=(new TextEncoder).encode(t),r=Uint8Array.bind,[4,crypto.subtle.encrypt({name:"AES-CTR",counter:new Uint8Array(16),length:128},e,n)];case 2:return o=new(r.apply(Uint8Array,[void 0,i.sent()])),[2,btoa(String.fromCharCode.apply(String,u([],c(o),!1)))];case 3:return i.sent(),[2,null];case 4:return[2]}}))}))}var so={google_secureSignals_set:"google/secureSignals/set",google_secureSignals_initialize:"google/secureSignals/initialize"},lo=new Map([[so.google_secureSignals_set,function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return void 0===e.globalContext.googletag&&(e.globalContext.googletag={}),void 0===e.globalContext.googletag.secureSignalProviders&&(e.globalContext.googletag.secureSignalProviders=[]),e.globalContext.googletag.secureSignalProviders.push({networkCode:"amazon.com",collectorFunction:function(){return r(void 0,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,e.record(so.google_secureSignals_initialize)];case 1:return[2,t.sent().encryptedSignal]}}))}))}}),[2,w.completed]}))}))}],[so.google_secureSignals_initialize,function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){var t,n,o,r,a,c,u,s;return i(this,(function(i){switch(i.label){case 0:return void 0===(t=null===(u=e.globalContext.apstag)||void 0===u?void 0:u._getSlotIdToNameMapping)?[2,{status:w.waiting}]:(n=t(),0===Object.keys(n).length?[2,{status:w.waiting}]:(void 0===(o=null===(s=e.globalContext.location)||void 0===s?void 0:s.href)&&(o=""),r="".concat(o,";").concat(JSON.stringify(n)).substr(0,225),a={status:w.completed},c={},[4,uo(r)]));case 1:return[2,(a.value=(c.encryptedSignal=i.sent(),c),a)]}}))}))}]]);var vo={widget_toolbox_end:"widget/toolbox/end",widget_toolbox_open:"widget/toolbox/open",widget_toolbox_start:"widget/toolbox/start"},fo=new Map([[vo.widget_toolbox_end,function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){return i(this,(function(t){return e.record(qe.debug_prepend_remove,{eventName:vo.widget_toolbox_start}).catch((function(t){})),[2,w.completed]}))}))}],[vo.widget_toolbox_open,function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return function(t,e){var n=e.globalContext.document.createElement("script");n.src=t,n.async=!0,e.globalContext.document.head.appendChild(n)}("https://c.toolbox.aps.amazon-adsystem.com/toolbox.js",e),[2,w.completed]}))}))}],[vo.widget_toolbox_start,function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){return i(this,(function(t){return e.record(qe.debug_prepend_add,{eventName:n.type}).catch((function(t){})),e.record(vo.widget_toolbox_open).catch((function(t){})),[2,w.completed]}))}))}]]),po="_config/events/activations",go="_config/events/deactivations",ho=new Map([["_config/events/activate",function(t){var e=t.customEvent,n=t.account;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(o){return(t=null!=n.store.get(po)?n.store.get(po):new Set).add(e.detail.name),n.store.set(po,t),[2,w.completed]}))}))}],["_config/events/deactivate",function(t){var e=t.customEvent,n=t.account;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(o){return(t=null!=n.store.get(go)?n.store.get(go):new Set).add(e.detail.name),n.store.set(go,t),[2,w.completed]}))}))}]]),mo={key:"sessionMarker/marker",default:void 0},yo=new Map([["sessionMarker/marker/sync",function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){return i(this,(function(t){return"object"!=typeof e.globalContext.crypto||"function"!=typeof e.globalContext.crypto.randomUUID?[2,w.cancelled]:(function(t){var e,n=t.use(mo,{persist:!0});if(0===(null!=n?n:"").length)return!1;var o=null!==(e=null==n?void 0:n.split("_")[1])&&void 0!==e?e:"";if(0===o.length)return!1;var r=new Date(o);return!((new Date).valueOf()-r.valueOf()>=2592e6)}(e)||(function(t){t.delete(mo.key,{persist:!0})}(e),function(t){var e=t.globalContext.crypto.randomUUID();if(36!==e.length)throw new Error("Invalid PEID generated: ".concat(e));var n="".concat(e,"_").concat((new Date).toISOString());t.update(mo,(function(){return n}),{persist:!0})}(e)),function(t){var e=t.use(mo,{persist:!0});t.update(mo,(function(){return e}))}(e),[2,w.completed])}))}))}]]),bo=new V({scope:"legacy",object:"rpa",action:"enqueue",validators:{detail:{setCookie:B(z)}},handler:function(t){var e=t.account,n=t.detail;return r(void 0,void 0,void 0,(function(){var t,o;return i(this,(function(r){return void 0===(null===(t=e.globalContext.apstag)||void 0===t?void 0:t.rpa)||void 0===(null===(o=e.globalContext.apstag)||void 0===o?void 0:o.debug)?[2,{status:w.waiting}]:(e.globalContext.apstag.rpa(n.tokenConfig,n.callback,n.setCookie,e.id),[2,{status:w.completed}])}))}))}}),wo=new V({scope:"legacy",object:"dpa",action:"enqueue",validators:{detail:{}},handler:function(t){var e=t.account,n=t.detail;return r(void 0,void 0,void 0,(function(){var t,o;return i(this,(function(r){return void 0===(null===(t=e.globalContext.apstag)||void 0===t?void 0:t.dpa)||void 0===(null===(o=e.globalContext.apstag)||void 0===o?void 0:o.debug)?[2,{status:w.waiting}]:(e.globalContext.apstag.dpa(n.callback),[2,{status:w.completed}])}))}))}}),Eo=new V({scope:"legacy",object:"upa",action:"enqueue",validators:{detail:{setCookie:B(z)}},handler:function(t){var e=t.account,n=t.detail;return r(void 0,void 0,void 0,(function(){var t,o;return i(this,(function(r){return void 0===(null===(t=e.globalContext.apstag)||void 0===t?void 0:t.upa)||void 0===(null===(o=e.globalContext.apstag)||void 0===o?void 0:o.debug)?[2,{status:w.waiting}]:(e.globalContext.apstag.upa(n.tokenConfig,n.callback,n.setCookie,"bootstrap",e.id),[2,{status:w.completed}])}))}))}}),_o=new Map([["legacy/init/enqueue",function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a;return i(this,(function(i){return void 0===(null===(t=e.globalContext.apstag)||void 0===t?void 0:t.init)||void 0===(null===(o=e.globalContext.apstag)||void 0===o?void 0:o.debug)?[2,w.waiting]:(e.globalContext.apstag.init(null===(r=n.detail)||void 0===r?void 0:r.config,null===(a=n.detail)||void 0===a?void 0:a.callback),[2,w.completed])}))}))}],["legacy/fetchBids/enqueue",function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a;return i(this,(function(i){return void 0===(null===(t=e.globalContext.apstag)||void 0===t?void 0:t.fetchBids)||void 0===(null===(o=e.globalContext.apstag)||void 0===o?void 0:o.debug)?[2,w.waiting]:(e.globalContext.apstag.fetchBids(null===(r=n.detail)||void 0===r?void 0:r.bidConfig,null===(a=n.detail)||void 0===a?void 0:a.callback),[2,w.completed])}))}))}]]),So=[Eo,wo,bo],xo=new Map(u(u([],c(_o),!1),c(G(So)),!1)),Co={key:"adExchangeBidFetching/bidURLs",default:new Map,postProcessor:vn},Io={key:"adExchangeBidFetching/useFetch",default:!1},Po={key:"protectedAudience/defaultAuctionEnvironment",default:void 0},Ao={key:"protectedAudience/slotAuctionEnvironment",default:new Map},Lo={key:"regulations/regsString",default:""},ko=new V({scope:"adExchangeBidFetching",object:"bidURLs",action:"update",handler:function(t){var e=t.account,o=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,r,a,s,d,l,v,f,p;return i(this,(function(i){if(void 0===o.detail||void 0===o.detail.legacyURL)throw new Error("Missing legacyURL");return t=new URL(o.detail.legacyURL),(r=e.use(Lo)).length>0&&t.searchParams.set("regs",r),e.use(Io)&&t.searchParams.set("rt","j"),null!=(a=t.searchParams.get("slots"))&&(s=JSON.parse(a),No(e,s),t.searchParams.set("slots",JSON.stringify(s))),d=t.toString(),l=null===(p=o.detail)||void 0===p?void 0:p.bidRequestIndex,e.update(Co,(function(t){if(void 0===o.detail||void 0===l)throw new Error("Missing bidRequestIndex");return t.set(o.detail.bidRequestIndex,d)})),v={urlLength:d.length},f=function(t){var e={};try{var n=new URL(t);return u([],c(new URLSearchParams(n.search)),!1).forEach((function(t){var n=c(t,2),o=n[0],r=n[1];e[o]=r.length})),e}catch(t){}}(d),void 0!==f&&(v=n(n({},v),{urlParamLengths:f})),[2,{status:w.completed,analytics:v}]}))}))}});var Do,No=function(t,e){var n=t.use(Po),o=t.use(Ao);e.forEach((function(t){var e,r=o.get(null!==(e=t.sd)&&void 0!==e?e:"");t.ae=void 0!==r?r:n}))},Oo=new V({scope:"adExchangeBidFetching",object:"fetch",action:"activate",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return e.update(Io,(function(){return!0})),[2,{status:w.completed}]}))}))}}),Ro=new V({scope:"protectedAudience",object:"gptSlotConfig",action:"set",handler:function(t){t.account;var e=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a,c,u;return i(this,(function(i){if(void 0===(null===(c=e.detail)||void 0===c?void 0:c.gptSlot))return[2,{status:w.cancelled}];if(void 0===(null===(u=e.detail)||void 0===u?void 0:u.componentAuctionConfig))throw new Error("Auction config must be defined.");if(t=e.detail,o=t.gptSlot,void 0===(r=t.componentAuctionConfig).decisionLogicURL||null===r.decisionLogicURL)throw new Error("Auction config must have a decisionLogicURL.");return a={printDebugSignalsToConsole:m(),debugURL:"https://prod.tahoe-analytics.publishers.advertising.a2z.com/logevent/putRecord"},o.setConfig({componentAuction:[{configKey:r.decisionLogicURL,auctionConfig:n(n({},r),{sellerSignals:n(n({},a),r.sellerSignals)})}]}),[2,{status:w.completed}]}))}))}}),jo=new V({scope:"protectedAudience",object:"componentAuctionData",action:"attach",handler:function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a;return i(this,(function(i){return void 0===(null===(a=null===(r=n.detail)||void 0===r?void 0:r.igi)||void 0===a?void 0:a.igs)||void 0===e.globalContext.googletag?[2,{status:w.cancelled}]:(t=e.globalContext.googletag.pubads().getSlots(),o=new Map(t.map((function(t){return[t.getSlotElementId(),t]}))),n.detail.igi.igs.forEach((function(t){var n;null===(n=t.impids)||void 0===n||n.forEach((function(n){e.recordListener(Ro,{gptSlot:o.get(n),componentAuctionConfig:t.config}).catch((function(t){}))}))})),[2,{status:w.completed}])}))}))}}),To=new V({scope:"adExchangeBidFetching",object:"amazonAdExchange",action:"fetch",handler:function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a,c;return i(this,(function(i){switch(i.label){case 0:if(void 0===(null===(c=null==n?void 0:n.detail)||void 0===c?void 0:c.URL))throw new Error("Bid URL must be defined.");return void 0===e.globalContext.apstag?[2,{status:w.waiting}]:[4,e.globalContext.fetch(n.detail.URL)];case 1:if(!(t=i.sent()).ok)throw new Error("Fetch failed with status: ".concat(t.status));return[4,t.json()];case 2:return o=i.sent(),r=o.contextual,a=o.igi,void 0!==r&&e.globalContext.apstag.bids(r),void 0!==a&&e.recordListener(jo,{igi:a}).catch((function(t){})),[2,{status:w.completed}]}}))}))}}),Mo=G([ko,Oo,To]),Uo={key:"cellophane/config",default:void 0},qo=new V({scope:"cellophane",object:"init",action:"enter",handler:function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a,c,u;return i(this,(function(i){switch(i.label){case 0:return t=null===(r=n.detail)||void 0===r?void 0:r.config,(o=[]).push(e.record(Te,{rates:{error:.001,status:1e-4}}),e.record(Ke),e.record(M.consent_tcfapi_attemptSync),e.record(M.consent_gppapi_attemptSync),e.record(Un.ad_signals_define,{context:null===(a=null==t?void 0:t.signals)||void 0===a?void 0:a.ortb2})),!0!==(null===(u=null===(c=n.detail)||void 0===c?void 0:c.config)||void 0===u?void 0:u.disableConfigCall)&&o.push(e.record(A)),e.update(Uo,(function(){return t})),[4,Promise.all(o)];case 1:return i.sent(),[2,{status:w.completed}]}}))}))}}),zo={key:"ad/amzniidRenderHistory",default:new Set},Fo=new V({scope:"cellophane",object:"renderImp",action:"enter",handler:function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o,r,a,c;return i(this,(function(i){if(void 0===(null===(c=n.detail)||void 0===c?void 0:c.renderImpArgs))throw new Error("renderImpArgs must be defined.");if(t=n.detail.renderImpArgs,o=t.bidID,r=t.doc,void 0===(a=null!=o?o:r.amzniid))throw new Error("Invalid bID.");if(e.use(zo).has(a))throw new Error("Targeting reuse detected.");return e.update(zo,(function(t){return t.add(a)})),[2,{status:w.completed}]}))}))}}),Bo=G([qo,Fo]),Jo=new V({scope:"protectedAudience",object:"slot",action:"activate",handler:function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o;return i(this,(function(r){if("string"!=typeof(null===(o=n.detail)||void 0===o?void 0:o.slotId)||""===n.detail.slotId.trim())throw new Error("Invalid slotId. Must be a non-empty string.");return e.recordListener(Oo).catch((function(t){})),t=n.detail.slotId,e.update(Ao,(function(e){return e.set(t,1)})),[2,{status:w.completed}]}))}))}}),Vo=new V({scope:"protectedAudience",object:"slot",action:"deactivate",handler:function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o;return i(this,(function(r){if("string"!=typeof(null===(o=n.detail)||void 0===o?void 0:o.slotId)||""===n.detail.slotId.trim())throw new Error("Invalid slotId. Must be a non-empty string.");return e.recordListener(Oo).catch((function(t){})),t=n.detail.slotId,e.update(Ao,(function(e){return e.set(t,0)})),[2,{status:w.completed}]}))}))}}),Go=new V({scope:"protectedAudience",object:"allSlots",action:"activate",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return e.recordListener(Oo).catch((function(t){})),e.update(Po,(function(){return 1})),[2,{status:w.completed}]}))}))}}),Ho=new V({scope:"protectedAudience",object:"allSlots",action:"deactivate",handler:function(t){var e=t.account;return t.customEvent,r(void 0,void 0,void 0,(function(){return i(this,(function(t){return e.recordListener(Oo).catch((function(t){})),e.update(Po,(function(){return 0})),[2,{status:w.completed}]}))}))}}),Wo=G([jo,Ro,Jo,Vo,Go,Ho]),Qo={key:"regulations/dsa",default:void 0},Ko=new V({scope:"regulations",object:"regsString",action:"update",handler:function(t){var e=t.account;return r(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){return null==(t=e.use(Qo))?e.update(Lo,(function(){return""})):e.update(Lo,(function(){return JSON.stringify({dsa:t})})),[2,{status:w.completed}]}))}))}}),Yo=new V({scope:"regulations",object:"dsa",action:"define",validators:{detail:{dsa:B((function(t,e){try{JSON.stringify(t)}catch(t){throw new Error("must be JSON stringifiable")}})),"dsa.required":B(F([0,1,2,3])),"dsa.pubrender":B(F([0,1,2,3])),"dsa.datatopub":B(F([0,1,2])),"dsa.transparency":B(q),"dsa.transparency.domain":B((function(t,e){if("string"!=typeof t)throw new Error("must be a string")})),"dsa.transparency.params":B((Do=function(t,e){if("number"!=typeof t)throw new Error("must be a number")},function(t,e){q(t),t.forEach((function(t,n){Do(t,"".concat(e,"[").concat(n,"]"))}))}))}},handler:function(t){var e=t.account,n=t.customEvent;return r(void 0,void 0,void 0,(function(){var t,o;return i(this,(function(r){switch(r.label){case 0:if(void 0===(t=n.detail))throw new Error("A dsa object is expected as parameter");return o=t.dsa,e.update(Qo,(function(){return o})),[4,e.recordListener(Ko)];case 1:return r.sent(),[2,{status:w.completed,analytics:{dsa:null!=o?Xo(o):0}}]}}))}))}}),Xo=function(t){return JSON.stringify(t).length},Zo=G([Yo,Ko]),$o="publisher";try{C.fireReferencePixel($o);var tr=new Map(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u([],c(L),!1),c(U),!1),c(fo),!1),c(Fn),!1),c(ze),!1),c(qn),!1),c(kn),!1),c(co),!1),c(P),!1),c(ho),!1),c(Me),!1),c(lo),!1),c(Jt),!1),c(Gn),!1),c(Ye),!1),c(yo),!1),c(xo),!1),c($t),!1),c($e),!1),c(kt),!1),c(je),!1),c(Mo),!1),c(Bo),!1),c(ao),!1),c(Wo),!1),c(Zo),!1)),er=new yt;er.registerEventSource($o).recordListener(Ze,{restrictions:{block:{accounts:[tt]}}}),er.load({listeners:tr})}catch(t){C.logCoreError({id:$o,error:t,account:null}),m()&&at.error(t)}}(); /*! @amzn/apswebapstaglibrary - apstag-legacy_eu - 24.827.1552 */ !function(t){var e={};function n(r){var o;return(e[r]||(o=e[r]={i:r,l:!1,exports:{}},t[r].call(o.exports,o,o.exports,n),o.l=!0,o)).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 o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));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=39)}([function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){try{var e=parseInt(t,10);if(!isNaN(e))return!(e<=0)&&(100<=e||100*Math.random()<=e)}catch(t){}return!1}function i(t,e){var n=parseInt(e,10),r=[],o=0;if(u(t)){if(isNaN(n)||n<1)return[t];for(var i=t.length;o<i;){var a=o;o+=n,r.push(t.slice(a,o))}}return r}function a(){return"".concat(Math.round(1e12*Math.random())).concat(Date.now())}function c(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=new Array(t),r=0;r<t;r++)n[r]=e[Math.floor(Math.random()*e.length)];return n.join("")}function s(t){return"object"===r(t)&&null!==t}function u(t){return"[object Array]"===Object.prototype.toString.call(t)}function l(t,e){return s(t)&&void 0!==t[e]&&""!==t[e]}function d(t,e){return-1!==t.indexOf(e)}function f(t){var e=new Date;return e.setDate(e.getDate()+t),e.toUTCString()}function b(t){try{var e=t.innerWidth||t.document.documentElement.clientWidth||t.document.body.clientWidth,n=t.innerHeight||t.document.documentElement.clientHeight||t.document.body.clientHeight;return"".concat(e,"x").concat(n)}catch(t){}return"x"}function p(t,e){return decodeURIComponent(t).split("?")[0].split("#")[0]===decodeURIComponent(e).split("?")[0].split("#")[0]}function y(t){var e=Object.keys(t);return e.filter((function(e){return t[e]})).length===e.length}n.d(e,"l",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"j",(function(){return s})),n.d(e,"i",(function(){return u})),n.d(e,"k",(function(){return l})),n.d(e,"h",(function(){return d})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return b})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return y}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return b})),n.d(e,"d",(function(){return p})),n.d(e,"a",(function(){return y}));e=n(0);var r=n(3),o=n(2),i=n(8),a=n(9),c=n(16),s=n(4),u=Object(e.l)(10),l=[],d=(!0===Object(i.c)("exposeErrors")&&(window.apstagErrors=l),function(t,e,n){try{var r=Date.now(),o={eventSource:"apstag",eventTime:r,eventCategory:"error",eventName:null!=n?n:"unknown",eventProperties:{accountID:t,libraryVersion:s.l,url:Object(a.g)(window),error:{name:"string"==typeof e?e:e.name,message:"string"==typeof e?e:e.message}}},i={Data:window.btoa(JSON.stringify(o)),PartitionKey:r};fetch("https://prod.tahoe-analytics.publishers.advertising.a2z.com/logevent/putRecords?encoded=true",{method:"POST",headers:{"Content-Type":"application/json","x-api-key":"5e0b19374596b1c8abfb0560fcb956220131d0a7f7100979de5d18cfada355d5"},body:JSON.stringify({Records:[i]})}).catch((function(){}))}catch(t){}});function f(t,e,n){try{(null!=n&&n.makeVisibleToAllUsers||Object(i.d)("errors"))&&console.error(t);var s,f,b={ts:Date.now(),url:encodeURIComponent(Object(a.g)(window)),r:encodeURIComponent(Object(a.h)(window)),_type:"apsLibraryError",e:{et:t.name,el:e,msg:t.message}};return l.push(b),o.a.dispatch({type:"LOG_ERROR",error:b}),Math.random()<=.001&&(f=null!=(s=null==n?void 0:n.accountId)?s:Object(c.unsafelyGuessAccountID)(),d(f,t,e)),!!u&&(Object(r.b)(b),!0)}catch(t){console.error(t)}return!1}function b(t,e,n,r){return f({name:e,message:"".concat(t," was of type '").concat(e,"' instead of '").concat(n,"'")},"TypeError-".concat(t),r)}function p(t,e){return function(){try{return t.apply(null,arguments)}catch(t){return f(t,e,{makeVisibleToAllUsers:!0}),null}}}function y(t){(1<arguments.length&&void 0!==arguments[1]&&arguments[1]||Object(i.d)("errors"))&&console.warn(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r,o=n(4),i=(e=n(7),n(0));n=n(8);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){return t=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==a(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===a(t)?t:String(t)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){var n;if(t)return"string"==typeof t?d(t,e):"Map"===(n="Object"===(n=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var f={AAXReqs:[],aaxViewabilityEnabled:!1,bidConfigs:{},bidReqs:{},bsPixels:{},cfg:{v:-1,CSM_JS:"//c.amazon-adsystem.com/aax2/csm.js.gz",CSM_RTB_COMMUNICATOR_JS:"".concat(o.w,"c.amazon-adsystem.com/bao-csm/aps-comm/aps_csm.js"),DEBUG_APP_HTML:"//c.amazon-adsystem.com/aax2/debugApp.html",DEBUG_APP_HTML_V2:"//c.amazon-adsystem.com/aax2/debug_app_v2.html",DEFAULT_TIMEOUT:2e3,DTB_PATH:"/e/dtb",TEST_PATH_FREQUENCY:0,TEST_BID_ENDPOINT:null,TEST_PATH_LATENCY_SAMPLE_RATE:null,PIXEL_PATH:"/x/px/",LATENCY_SAMPLING_RATE:1,COOKIE_MATCH_DELAY:0,MAX_SLOTS_PER_REQUEST:1,SLOT_RENDER_SAMPLING_RATE:1,FEATURE_SAMPLING_RATE:1,CONFIG_CALL_ENABLED:!1,LIB_CONFIG_PATH:"/cdn/prod/config"},cmpFired:!1,config:{pubID:""},displayAdServer:{noBidSlotIDs:[],shouldSampleRender:!1,slotRenderEndedSet:!1},errors:[],eventLog:[],experiments:{},gamSlotFetchLog:[],gamSlotRenderPixel:{aaxReqOffset:0,gamSlotFetchLogOffset:0},hosts:{DEFAULT_AAX_BID_HOST:"aax.amazon-adsystem.com",DEFAULT_AAX_PIXEL_HOST:"aax.amazon-adsystem.com",DEFAULT_CXM_HOST:"c.amazon-adsystem.com",DEFAULT_BS_HOST:"cxm-bcn.publisher-services.amazon.dev"},identityState:{},libraryLoadCallLatency:0,Q:[],slotBids:{},targetingKeys:{},tcfParseTime:0,outstream:{renderStart:0,shouldSample:!1},consentManagementPlatform:{}};function b(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:f,e=1<arguments.length?arguments[1]:void 0;return{AAXReqs:function(t,e){switch(e.type){case"RECORD_AAX_REQUEST":return[].concat(l(t),[e.data]);case"RECORD_AAX_REQ_PROP":return t.map((function(t){return(t=s({},t)).bidReqID===e.bidReqID&&(t[e.key]=e.value),t}));default:return l(t)}}(t.AAXReqs,e),aaxViewabilityEnabled:function(t,e){return"SET_VIEWABILITY"!==e.type?t:e.viewability}(t.aaxViewabilityEnabled,e),bidConfigs:function(t,e){return"RECORD_ORIGINAL_BID_CONFIG"!==e.type?s({},t):s(s({},t),{},u({},e.bidConfig.bidReqID,e.bidConfig))}(t.bidConfigs,e),bidReqs:function(t,e){var n;switch(e.type){case"ADD_CHUNKED_REQUESTS":return s(s({},t),{},u({},e.fid,s(s({},t[e.fid]),{},{networkReqs:new Array(e.numChunks)})));case"NEW_FETCH_BID_REQUEST":return s(s({},t),{},u({},e.fid,{pto:e.pto,hasCallbackExecuted:!1,networkReqs:[]}));case"RECORD_CALLBACK":return s(s({},t),{},u({},e.fid,s(s({},t[e.fid]),{},{hasCallbackExecuted:!0})));case"RECORD_NETWORK_EXCHANGE":var r=t[e.fid].networkReqs;return r[e.networkID]=s(s({},r[e.networkID]),{},(u(n={},"".concat(e.exchangeType,"Time"),e.timestamp),u(n,"inFlight","request"===e.exchangeType),n)),s(s({},t),{},u({},e.fid,s(s({},t[e.fid]),{},{networkReqs:r})));case"RECORD_TIMEOUT":return s(s({},t),{},u({},e.fid,s(s({},t[e.fid]),{},{networkReqs:t[e.fid].networkReqs.map((function(t){return t.inFlight?s(s({},t),{},{timeOut:e.timeOut}):t}))})));default:return s({},t)}}(t.bidReqs,e),bsPixels:function(t,e){return"RECORD_BID_INFO_SENT"!==e.type?s({},t):s(s({},t),{},u({},e.bidInfo.iid,e.bidInfo.state))}(t.bsPixels,e),cfg:function(t,e){return"SET_CFG"!==e.type?s({},t):s(s({},t),e.cfg)}(t.cfg,e),cmpFired:function(t,e){return"CMP_FIRED"===e.type||t}(t.cmpFired,e),config:function(t,e){return"SET_CONFIG"!==e.type?s({},t):s(s({},e.config),{},{gdpr:s({cmpTimeout:e.defaultCmpTimeout},e.config.gdpr),isSelfServePub:void 0!==e.config.pubID&&5<=e.config.pubID.length})}(t.config,e),displayAdServer:function(t,e){switch(e.type){case"SLOT_RENDER_ENDED_SET":return s(s({},t),{},{slotRenderEndedSet:!0});case"NO_BID_ON_ADSERVER_SLOTS":return s(s({},t),{},{noBidSlotIDs:t.noBidSlotIDs.concat(e.slotIDs)});case"REQUESTED_BID_FOR_ADSERVER_SLOTS":return s(s({},t),{},{noBidSlotIDs:t.noBidSlotIDs.filter((function(t){return!Object(i.h)(e.slotIDs,t)}))});case"SHOULD_SAMPLE_SLOT_RENDER":return s(s({},t),{},{shouldSampleRender:e.value});default:return s(s({},t),{},{noBidSlotIDs:l(t.noBidSlotIDs)})}}(t.displayAdServer,e),errors:function(t,e){return"LOG_ERROR"!==e.type?l(t):[].concat(l(t),[s({},e.error)])}(t.errors,e),eventLog:function(t,e){return"LOG_EVENT"!==e.type?l(t):[].concat(l(t),[s({},e.event)])}(t.eventLog,e),experiments:function(t,e){switch(e.type){case"SHOULD_CHUNK_REQUESTS":return s({chunkRequests:!0===t.shouldSampleLatency&&e.value},t);case"SHOULD_SAMPLE_LATENCY":return s(s({},t),{},{shouldSampleLatency:e.value});case"SHOULD_SAMPLE_FEATURES":return s(s({},t),{},{shouldSampleFeatures:e.value});case"SHOULD_USE_TEST_BID_ENDPOINT":return s(s({},t),{},{shouldUseTestBidEndpoint:e.value});default:return s({},t)}}(t.experiments,e),gamSlotFetchLog:function(t,e){return"LOG_GAM_EVENT"!==e.type?l(t):[].concat(l(t),[s({},e.event)])}(t.gamSlotFetchLog,e),gamSlotRenderPixel:function(t,e){return"UPDATE_RENDER_OFFSETS"!==e.type?s({},t):s(s({},t),e.offsets)}(t.gamSlotRenderPixel,e),hosts:function(t,e){return"SET_HOST"!==e.type?s({},t):s(s({},t),{},u({},e.hostName,e.hostValue))}(t.hosts,e),identityState:function(t,e){return"RECORD_IDENTITY_STATE"!==e.type?t:s(s({},t),{},u({},e.vendor,Object(i.k)(t,e.vendor)?t[e.vendor]:e.identityState))}(t.identityState,e),libraryLoadCallLatency:function(t,e){return"RECORD_LIBRARY_LOAD_CALL_LATENCY"!==e.type?t:e.latency}(t.libraryLoadCallLatency,e),Q:function(t,e){return"SET_Q"!==e.type?l(t):l(e.Q)}(t.Q,e),slotBids:function(t,e){switch(e.type){case"BID_STATE_CHANGE":return s(s({},t),{},u({},e.slotID,t[e.slotID].map((function(t){return t._targetingSetID===e._targetingSetID&&(t.bidState=e.bidState,e.bidState===o.c.rendered?t.timing.renderTime=e.ts:e.bidState===o.c.set&&t.timing.setAtTimes.push(e.ts)),t}))));case"UPDATE_BID_INFO_PROP":return void 0===t[e.slotID]||t[e.slotID].filter((function(t){return t.matchesBidCacheId(e.iid)})).length<1?s({},t):s(s({},t),{},u({},e.slotID,t[e.slotID].map((function(t){return t.matchesBidCacheId(e.iid)&&(t[e.key]=e.value),t}))));case"UPDATE_SLOT_BIDS":return s(s({},t),e.bids.reduce((function(e,n){return Object(i.k)(e,n.slotID)?e[n.slotID]=[].concat(l(e[n.slotID]),[n]):Object(i.k)(t,n.slotID)?e[n.slotID]=[].concat(l(t[n.slotID]),[n]):e[n.slotID]=[n],e}),{}));default:return s({},t)}}(t.slotBids,e),targetingKeys:function(t,e){return"UPDATE_SLOT_BIDS"!==e.type?s({},t):s(s({},t),e.bids.reduce((function(e,n){return Object(i.k)(t,n.slotID)?e[n.slotID]=[].concat(l(t[n.slotID]),l((n.bidConfig.targeting||o.i).filter((function(e){return-1===t[n.slotID].indexOf(e)})))):e[n.slotID]=n.bidConfig.targeting||o.i,e}),{}))}(t.targetingKeys,e),tcfParseTime:function(t,e){return"RECORD_TCF_PARSE_TIME"!==e.type?t:e.time}(t.tcfParseTime,e),outstream:function(t,e){switch(e.type){case"RECORD_OUTSTREAM_RENDER_START_TIME":return s(s({},t),{},{renderStart:e.time});case"OUTSTREAM_SHOULD_SAMPLE":return s(s({},t),{},{shouldSample:e.shouldSample});default:return t}}(t.outstream,e),consentManagementPlatform:function(t,e){switch(e.type){case"RECORD_CMP_LISTENED_TO":return s(s({},t),{},{isListenedTo:e.isListenedTo});case"RECORD_CMP_CONSENT_DATA":return s(s({},t),{},{tcData:e.tcData});default:return t}}(t.consentManagementPlatform,e)}}var p={getState:function(){return r},dispatch:function(t){r=b(r,t)}};(p=Object(n.d)("redux")&&Object(e.b)()&&Object(i.k)(window,"__REDUX_DEVTOOLS_EXTENSION__")?window.__REDUX_DEVTOOLS_EXTENSION__(b):p).dispatch({type:"NOOP"})},function(t,e,n){"use strict";n.d(e,"f",(function(){return p})),n.d(e,"c",(function(){return j})),n.d(e,"d",(function(){return S})),n.d(e,"b",(function(){return T})),n.d(e,"a",(function(){return E})),n.d(e,"g",(function(){return A})),n.d(e,"e",(function(){return D}));var r=n(4),o=n(2),i=n(8),a=n(0),c=n(1),s=n(9),u=n(14),l=n(11),d=[],f=!1,b=[];function p(t){var e=new Image;return e.src=t,b.push(e),e}!0===Object(i.c)("exposePixels")&&(window.apstagPixelQueue=d,window.apstagPixelsSent=b);var y,m={adServer:[],ampAdContext:[],appended:[],AaxSlotSizes:[],bidRender:[],bidRenderState:[],bidType:[],"blockedBidders-fetchBids":[],"blockedBidders-init":[],ccpa:[],cmpVar:[],creativeSize:[],deals:[],fetchBids:[],fifFlow:[],customFloor:[],gdpr:[],gpp:[],id:[],idRemap:[],iframe:[],renderFootprint:[],resizeIframe:[],schain:[],simplerGpt:[],slots:[],slotType:[],targeting:[],tcfVar:[],unusedDeal:[],useSafeFrames:[],trustToken:[],hasLocalStorage:[],renderImp:[],configOrder:[]},g=[],h=!1;function O(){h&&(clearTimeout(y),h=!1),Object(a.c)(g,5).forEach((function(t){T({_type:"featureUsage",p:t,u:Object(s.g)(window)})})),g=[]}function v(){h||(h=!0,y=setTimeout(O,2e3))}function j(t,e){try{return!!o.a.getState().experiments.shouldSampleFeatures&&(void 0!==m[t]&&!Object(a.h)(m[t],e)&&(m[t].push(e),g.push({cat:t,feat:e}),f&&v(),!0))}catch(t){return Object(c.b)(t,"sendFeaturePixel"),!1}}function S(){try{var t,e,n,r=o.a.getState().libraryLoadCallLatency,i=Object(u.c)(window,new RegExp("aax2/apstag-legacy.js"));null===i&&0===r||(t=Object(u.e)(window,"navigationStart"),e={_type:"libLatency",pid:l.b,ns:t},null!==i&&(e.fs=Object(u.a)(i,"fetchStart"),e.re=Object(u.a)(i,"responseEnd"),null!==(n=Object(u.f)(i)))&&(e.c=n?1:0),0!==r&&(e.tcc=r),T(e))}catch(t){Object(c.b)(t,"sendInitLatencyPixel")}}function w(t){try{var e;return f?(e=function(){try{var t=o.a.getState(),e=t.cfg.PIXEL_PATH,n=t.hosts.DEFAULT_AAX_PIXEL_HOST,a=Object(i.c)("pixelHost",n);return"".concat(r.s).concat(a).concat(e)}catch(t){return Object(c.b)(t,"buildPixelBaseUrl"),""}}(),void 0===t.bidId?e+="p/PH/":e+="".concat(t.bidId,"/"),p(e+=function(t){try{t._tl="aps-tag";var e=o.a.getState(),n=null,i="";Object(a.k)(e,"config")&&Object(a.k)(e.config,"pubID")&&""!==e.config.pubID&&(n=e.config.isSelfServePub,i=e.config.pubID),null!==n&&(n?(t.src=r.t,t.pubid=i):t.src=i),t.lv=r.l;var s=function(t){try{return t.replace(/\\.{1}/g,"")}catch(t){return Object(c.b)(t,"escapeJsonForAax"),""}}(JSON.stringify(t));return encodeURIComponent(s)}catch(t){return Object(c.b)(t,"objectToUrlPath"),""}}(t.payload))):(d.push(t),!1)}catch(t){return!1}}function T(t){return w({payload:t})}function E(t,e){return w({payload:e,bidId:t})}function A(){try{f||(f=!0,d.forEach(w),0<g.length&&v())}catch(t){Object(c.b)(t,"sendPixels")}}function D(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;try{return w({payload:{_type:"outstreamRender",bi:e,loc:t,lt:n}})}catch(t){return Object(c.b)(t,"outstreamPixel"),!1}}!0===Object(i.c)("exposePixels")&&(window.apstagFeaturePixelQueue=g)},function(t,e,n){"use strict";n.d(e,"m",(function(){return a})),n.d(e,"i",(function(){return c})),n.d(e,"A",(function(){return s})),n.d(e,"c",(function(){return r})),n.d(e,"h",(function(){return u})),n.d(e,"z",(function(){return l})),n.d(e,"f",(function(){return d})),n.d(e,"g",(function(){return f})),n.d(e,"d",(function(){return b})),n.d(e,"p",(function(){return p})),n.d(e,"n",(function(){return y})),n.d(e,"e",(function(){return m})),n.d(e,"y",(function(){return g})),n.d(e,"x",(function(){return h})),n.d(e,"o",(function(){return o})),n.d(e,"v",(function(){return O})),n.d(e,"j",(function(){return v})),n.d(e,"u",(function(){return i})),n.d(e,"t",(function(){return j})),n.d(e,"l",(function(){return S})),n.d(e,"s",(function(){return w})),n.d(e,"w",(function(){return T})),n.d(e,"b",(function(){return E})),n.d(e,"k",(function(){return A})),n.d(e,"a",(function(){return D})),n.d(e,"r",(function(){return _})),n.d(e,"q",(function(){return I})),n.d(e,"C",(function(){return k})),n.d(e,"B",(function(){return P}));var r,o,i,a=25,c=["amznbid","amzniid","amznsz","amznp"],s=["amznbid","amzniid","amznp","r_amznbid","r_amzniid","r_amznp"],u=((n=r=r||{}).new="NEW",n.exposed="EXPOSED",n.set="SET",n.rendered="RENDERED","apstagDebug"),l=["redux","fake_bids","verbose","console","console_v2","errors"],d="apstagDebugHeight",f="apstagDEBUG",b="apstagCfg",p=0,y=0,m="apstagCxMEnabled",g="3pmetadata",h=5,O=((e=o=o||{}).amznbid="testBid",e.amzniid="testImpression",e.amznp="testP",e.crid="testCrid",["amznbid","amznp"]),v=new Map([["__apsid","ck"],["__aps_id_p","ckp"]]),j=((n=i=i||{}).noRequest="0",n.bidInFlight="1",n.noBid="2","600"),S="24.827.1552",w="https://",T="http".concat("s://"),E="".concat(w,"aax.amazon-adsystem.com/e/dtb/vast?"),A="function"==typeof XMLHttpRequest&&void 0!==(new XMLHttpRequest).withCredentials,D="apstagLOADED",_=13,I=1e4,k=/^1[NY\-]{3}$/,P='<!DOCTYPE html>\n<html>\n <head>\n <title>APS Video Ads</title>\n <script src="https://video-player.aps.amazon-adsystem.com/apsvid.js" onerror="$$apsvidonerror$$"><\/script>\n </head>\n <body>\n <div id="amazon-ads-container" style="height: 100%; width: 100%; position: absolute;">\n </div>\n <script type="text/javascript">\nconst adsContainer = document.querySelector("#amazon-ads-container")\nconst companionContainers =\n window.AmazonVideoAds.findCompanionDivs($$apstagCompanionContainers$$)\nconst videoPlayerProps = $$videoPlayerProps$$\n\nconst amazonVideoAds = new window.AmazonVideoAds(adsContainer,\n{ ...videoPlayerProps,\n companions: companionContainers });\nwindow.adsM;\n\nfunction addListeners(adsM, amazonVideoAds) {\n adsM.addListener(amazonVideoAds.eventNames.AdVideoPlayerEvents.COMPLETED, (e) => {\n window.top.postMessage({"apsVideoPlayer": true, "event": "completed"}, window.top.location.origin);\n })\n adsM.addListener(amazonVideoAds.eventNames.AdVideoPlayerEvents.LOADED, (e) => {\n window.top.postMessage({"apsVideoPlayer": true, "event": "loaded"}, window.top.location.origin);\n })\n}\n \nwindow.requestAndPlay = () => {\n amazonVideoAds.fetchAdsFromUrl("$$apstagVastTag$$")\n .then(adsManager => {\n adsM = adsManager;\n \n adsM.init({\n fullscreen: true,\n muted: true,\n volume: .3,\n autoplay: false,\n controls: false,\n preload: "auto"\n })\n\n addListeners(adsM, amazonVideoAds);\n adsM.startAds(2000, {shouldVideoRemainAfterPlay: true});\n })\n .catch(function(err) {\n console.log("apstag failed to get APS ads manager", err);\n });\n }\n \n requestAndPlay();\n <\/script>\n </body>\n</html>'},function(t,e,n){"use strict";var r,o;function i(t){return void 0!==t.amzniid}function a(t){return void 0!==t.kvMap}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return a})),(n=r=r||{}).DISPLAY="display",n.VIDEO="video",n.MULTI_FORMAT="multi-format",(e=o=o||{}).MANAGED_WEB="mw",e.SELF_SERVE_WEB="ssw"},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e,n){(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function c(t){return t=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==r(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===r(t)?t:String(t)}n.d(e,"a",(function(){return l}));var s=function(){function t(e){if(e=e.accountID,!(this instanceof t))throw new TypeError("Cannot call a class as a function");a(this,"accountID",void 0),this.accountID=e,this.init()}var e,n;return e=t,(n=[{key:"queue",get:function(){var t;return null==(t=window._aps.get(this.accountID))?void 0:t.queue}},{key:"init",value:function(){window._aps=window._aps||new Map,window._aps.has(this.accountID)||window._aps.set(this.accountID,{queue:[],store:new Map})}},{key:"safelyRecord",value:function(t,e){this.record(t,e).catch((function(){}))}},{key:"record",value:function(t,e){var n=this;return new Promise((function(r,i){window._aps.get(n.accountID).queue.push(new window.CustomEvent(t,{detail:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({resolve:r,reject:i,source:"apstag"},e)}))}))}},{key:"read",value:function(t){var e=null==(e=window._aps)?void 0:e.get(this.accountID).store.get(t);try{this.record("_legacy/store/didRead",{name:t,value:structuredClone?structuredClone(e):"missing structuredClone"}).catch((function(){}))}catch(t){}return e}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),u={},l=function(t){return"string"!=typeof t&&(t=t.toString()),window._aps&&window._aps.has(t)&&u[t]||(u[t]=new s({accountID:t})),u[t]}},function(t,e,n){"use strict";n.d(e,"b",(function(){return S})),n.d(e,"a",(function(){return D}));var r,o,i,a,c=n(1),s=n(3),u=n(17),l=n(23),d=n(2);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&function(t,e){(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);n=e?(n=m(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments),r=this;if(n&&("object"===f(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return y(r)}}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,j(r.key),r)}}function O(t,e,n){e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1})}function v(t,e,n){(e=j(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function j(t){return t=function(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==f(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===f(t)?t:String(t)}function S(){try{var t,e,n,r;return!(null==(t=window)||null==(e=t.localStorage)||!e.setItem||null==(n=window)||null==(r=n.localStorage)||!r.removeItem)||(Object(s.c)("hasLocalStorage","absent"),!1)}catch(t){return Object(s.c)("hasLocalStorage","exception"),!1}}(e=r=r||{}).sessionStorage="sessionStorage",e.localStorage="localStorage",(o=o||{}).document="document",(n=i=i||{}).clear="clear",n.getItem="getItem",n.key="key",n.removeItem="removeItem",n.setItem="setItem",n.length="length",(a=a||{}).cookie="cookie";var w=["AMZN-NoCookieConsent"],T=function(){function t(e,n){g(this,t),v(this,"globalContext",void 0),v(this,"stateContainer",void 0),this.globalContext=e,this.stateContainer=n}return O(t,[{key:"privacyRegulationApplies",value:function(){var t=null==(e=l.a.readStoredConsentData(this.stateContainer))?void 0:e.tcString,e=null==e?void 0:e.gdprApplies;return!!("string"==typeof t&&0<t.length||null!=(t=this.globalContext.apstag)&&t.isGDPRRegion||e)}},{key:"allowedToStoreAndAccessInformationOnDevice",value:function(){if(this.privacyRegulationApplies()){var t;if(!(t=null==(t=l.a.readStoredConsentData(this.stateContainer))?void 0:t.tcString)||"string"!=typeof t)return{allowed:!1,failures:["Invalid tcString: ".concat(t)]};var e=Object(u.c)(t);if(!e)return{allowed:!1,failures:["Invalid tcString: ".concat(t)]};if((t=Object(u.b)(e)).length)return{allowed:!1,failures:t}}return{allowed:!0,failures:[]}}},{key:"ensureStorageUsageIsAllowedOrThrowOnError",value:function(t,e,n){var r=(o=this.allowedToStoreAndAccessInformationOnDevice()).allowed,o=o.failures;if(!(r||n&&0<n.length&&0<=w.indexOf(n[0])))throw new Error("Not allowed to store or access information on device: ".concat(o));if(!(r=this.globalContext[t]))throw new ReferenceError("Object ".concat(t," isn't available"));if(void 0===r[e])throw new ReferenceError("Method ".concat(e," isn't available"))}},{key:"executeFunction",value:function(t,e,n,r,o){return e=this.globalContext[e],(n=(r=r||e[n]).apply(e,t))&&null!=o&&o.isJson?JSON.parse(n):n}},{key:"executeFunctionOrThrowOnError",value:function(t,e,n,r,o){return this.ensureStorageUsageIsAllowedOrThrowOnError(e,n,t),this.executeFunction(t,e,n,r,o)}},{key:"regulatedMethod",value:function(t,e,n,r){var o=this;return function(){try{for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o.executeFunctionOrThrowOnError(a,t,e,n,r)}catch(i){if(null==r||!r.ignoreFailure)throw Object(c.b)(i,"RegulatedDataContainer-regulatedMethod"),i}}}}]),t}(),E=function(){b(e,T);var t=p(e);function e(){var n;g(this,e);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return v(y(n=t.call.apply(t,[this].concat(i))),"_getItem",(function(t){var e=n.globalContext.document.cookie.split("; ").reduce((function(e,n){return(n=n.split("="))[0]===t?decodeURIComponent(n.slice(1).join("=")):e}),"");return 0<e.length?e:null})),v(y(n),"_removeItem",(function(t){n.setItem(t,"",0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:"/")})),v(y(n),"_setItem",(function(t,e,r){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"/";r=new Date(r);if(!n.isValidDate(r))throw new Error("Invalid expiration date");n.globalContext.document.cookie="".concat(t,"=").concat(e,"; expires=").concat(r.toUTCString(),"; path=").concat(o,";")})),v(y(n),"getItem",(function(t,e){return n.regulatedMethod(o.document,a.cookie,n._getItem,e)(t)})),v(y(n),"setItem",(function(t,e,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"/";return n.regulatedMethod(o.document,a.cookie,n._setItem,4<arguments.length?arguments[4]:void 0)(t,e,r,i)})),v(y(n),"removeItem",(function(t,e){return n.regulatedMethod(o.document,a.cookie,n._removeItem,e)(t)})),n}return O(e,[{key:"isValidDate",value:function(t){return t instanceof Date&&!isNaN(t)}}]),e}(),A=function(){b(e,T);var t=p(e);function e(n,r,o){var a;return g(this,e),v(y(a=t.call(this,n,r)),"storageType",void 0),v(y(a),"clear",(function(t){return a.regulatedMethod(a.storageType,i.clear,null,t)()})),v(y(a),"getItem",(function(t,e){return a.regulatedMethod(a.storageType,i.getItem,null,e)(t)})),v(y(a),"key",(function(t,e){return a.regulatedMethod(a.storageType,i.key,null,e)(t)})),v(y(a),"removeItem",(function(t,e){return a.regulatedMethod(a.storageType,i.removeItem,null,e)(t)})),v(y(a),"setItem",(function(t,e,n){return a.regulatedMethod(a.storageType,i.setItem,null,n)(t,e)})),a.storageType=o,a}return O(e,[{key:"length",get:function(){return this.ensureStorageUsageIsAllowedOrThrowOnError(this.storageType,i.length),this.globalContext[this.storageType].length}}]),e}(),D=function(){function t(e){g(this,t),v(this,"globalContext",void 0),v(this,"stateContainer",void 0),this.globalContext=e.globalContext,this.stateContainer=e.stateContainer}return O(t,[{key:"sessionStorage",get:function(){try{return new A(this.globalContext,this.stateContainer,r.sessionStorage)}catch(t){throw Object(c.b)(t,"RegulatedDataContainers-sessionStorage"),t}}},{key:"localStorage",get:function(){try{return new A(this.globalContext,this.stateContainer,r.localStorage)}catch(t){throw Object(c.b)(t,"RegulatedDataContainers-localStorage"),t}}},{key:"cookie",get:function(){try{return new E(this.globalContext,this.stateContainer)}catch(t){throw Object(c.b)(t,"RegulatedDataContainers-cookie"),t}}},{key:"indexedDB",get:function(){throw new ReferenceError("Interface isn't yet defined")}},{key:"allowedToStoreAndAccessInformationOnDevice",value:function(){try{return new T(this.globalContext,this.stateContainer).allowedToStoreAndAccessInformationOnDevice().allowed}catch(t){return Object(c.b)(t,"RegulatedDataContainers-allowedToStoreAndAccessInformationOnDevice"),!1}}}],[{key:"getDefault",value:function(){return new t({globalContext:window,stateContainer:d.a})}}]),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return g})),n.d(e,"d",(function(){return E})),n.d(e,"c",(function(){return D})),n.d(e,"e",(function(){return I}));var r=n(2),o=n(7),i=n(0),a=n(4),c=n(10),s=n(3),u=n(1),l=["getLog","getState"];function d(t,e,n){try{switch(Object(i.h)(l,t)&&(Object(u.b)(new Error("Debug call made: ".concat(t)),"debugPublicApi-call-".concat(t)),l=l.filter((function(e){return e!==t}))),t){case"getLog":return r.a.getState().eventLog;case"getState":return r.a.getState();case"enable":return A("fake_bids",!0),"DEBUG MODE ENABLED";case"disable":return A("fake_bids",!1),"DEBUG MODE DISABLED";case"enableConsole":return g(!1,"command"),"Debug console enabled";case"enableConsoleV2":return g(!0,"command"),"Debug console v2 enabled";case"disableConsole":try{A("console",!1),A("console_v2",!1),null!==f&&document.body.removeChild(f),m=!1,Object(o.b)()&&o.a.getDefault().localStorage.removeItem(a.f)}catch(e){Object(u.b)(e,"disableDebugConsole",{makeVisibleToAllUsers:!0})}return"Debug console disabled";case"setDebug":return(A(e,n)?"Set debug mode '":"Failed to set debug mode '").concat(e,"' to '").concat(n,"'");default:return"unknown debug argument"}}catch(e){return Object(u.b)(e,"debugPublicApi",{makeVisibleToAllUsers:!0}),"error"}}var f,b,p,y,m=!1;function g(){var t,e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=1<arguments.length?arguments[1]:void 0;try{A(e?"console_v2":"console",!0),m||(t={url:e?r.a.getState().cfg.DEBUG_APP_HTML_V2:r.a.getState().cfg.DEBUG_APP_HTML,onload:h,onerror:function(){return Object(u.b)(new Error("Error Loading Debug Console"),"enableDebugConsole-".concat(e?"v2":"v1","-onerror"),{makeVisibleToAllUsers:!0})}},Object(c.d)(t),setTimeout((function(){try{var t={_type:"debugLoad",mode:e?2:1};Object(i.k)(r.a.getState().config,"pubID")&&(t.src=r.a.getState().config.pubID),null!==n&&(t.method=n),Object(s.b)(t)}catch(t){Object(u.b)(t,"enableDebugConsole-setTimeout",{makeVisibleToAllUsers:!0})}}),5e3))}catch(t){Object(u.b)(t,"enableDebugConsole",{makeVisibleToAllUsers:!0})}}function h(t){try{var e=t.responseText,n=(f=document.createElement("div"),b=document.createElement("div"),p=document.createElement("iframe"),200);E("console_v2")&&(n=330),Object(o.b)()&&null!==o.a.getDefault().localStorage.getItem(a.f)&&(n=parseInt(o.a.getDefault().localStorage.getItem(a.f),10)),(isNaN(n)||n>window.innerHeight)&&(n=200),f.style.background="#eaeded",f.style.zIndex="2147483647",f.style.bottom="0",f.style.position="fixed !important",f.style.display="block !important",f.style.left="0",f.style.right="0",f.style.height="".concat(n,"px"),b.style.cursor="row-resize",b.style.height="2px",b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.right="0",b.style.backgroundColor="RGBA(0,0,0,0)",f.appendChild(b),p.frameBorder="0",p.marginHeight="0",p.marginWidth="0",p.scrolling="no",p.id="apstag-debug-iframe",p.src="about:blank",p.style.display="block",p.style.width="100%",p.style.height="".concat(n,"px"),f.appendChild(p),document.body.appendChild(f),null!==p.contentDocument&&(p.contentDocument.open(),p.contentDocument.write(e),p.contentDocument.close()),b.addEventListener("mousedown",j)}catch(t){Object(u.b)(t,"renderDebugConsole",{makeVisibleToAllUsers:!0})}}function O(t){try{var e=window.innerHeight-t.clientY;return e<200&&(e=200),f.style.height="".concat(e,"px"),p.style.height="".concat(e,"px"),e}catch(t){return Object(u.b)(t,"resizeDebugConsole",{makeVisibleToAllUsers:!0}),200}}function v(t){try{return t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.cancelBubble=!0,t.returnValue=!1}catch(t){return Object(u.b)(t,"preventEvent",{makeVisibleToAllUsers:!0}),!1}}function j(){try{void 0===y&&((y=document.createElement("div")).style.position="fixed",y.style.left="0",y.style.right="0",y.style.top="0",y.style.bottom="0",y.style.zIndex="9999999999"),f.appendChild(y),window.addEventListener("mouseup",w),window.addEventListener("mousemove",S)}catch(t){Object(u.b)(t,"resizeBarMouseDownListener",{makeVisibleToAllUsers:!0})}}function S(t){try{return O(t),v(t)}catch(t){return Object(u.b)(t,"resizeBarMouseMoveListener",{makeVisibleToAllUsers:!0}),!1}}function w(t){try{null!==y&&f.removeChild(y),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",w);var e=O(t);return Object(o.b)()&&o.a.getDefault().localStorage.setItem(a.f,"".concat(e)),v(t)}catch(t){return Object(u.b)(t,"resizeBarMouseUpListener",{makeVisibleToAllUsers:!0}),!1}}function T(){try{if(!Object(o.b)())return[];var t=o.a.getDefault().localStorage.getItem(a.h,{ignoreFailure:!0}),e=(null===t||"false"===t?t="[]":"true"===t&&(t='["fake_bids"]'),[]);try{e=JSON.parse(t)}catch(t){}return(e=Object(i.i)(e)?e:[]).filter((function(t){return Object(i.h)(a.z,t)}))}catch(t){return[]}}function E(t){try{return Object(i.h)(T(),t)}catch(t){return!1}}function A(t,e){try{var n;if(Object(o.b)()&&-1!==a.z.indexOf(t))return n=T(),e&&-1===n.indexOf(t)?n.push(t):e||(n=n.filter((function(e){return e!==t}))),0===n.length?o.a.getDefault().localStorage.removeItem(a.h):o.a.getDefault().localStorage.setItem(a.h,JSON.stringify(n)),I(),1}catch(e){Object(u.b)(e,"setDebugMode")}}function D(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;try{if(Object(i.k)(window,a.g)&&Object(i.k)(window[a.g],t))return window[a.g][t]}catch(t){Object(u.b)(t,"getDebugValue")}return e}var _=[];function I(){try{T().filter((function(t){return-1===_.indexOf(t)})).forEach((function(t){Object(u.b)(new Error("Debug method enabled: ".concat(t)),"debugPublicApi-enabled-".concat(t),{makeVisibleToAllUsers:!0}),_.push(t)}))}catch(t){Object(u.b)(t,"pixelDebugModes")}}},function(t,e,n){"use strict";n.d(e,"c",(function(){return f})),n.d(e,"j",(function(){return b})),n.d(e,"g",(function(){return p})),n.d(e,"h",(function(){return y})),n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return g})),n.d(e,"f",(function(){return h})),n.d(e,"i",(function(){return v})),n.d(e,"b",(function(){return j})),n.d(e,"a",(function(){return S})),n.d(e,"k",(function(){return w}));var r=n(8),o=n(0),i=n(7),a=n(1),c=n(4),s=n(2),u=n(3),l=n(16);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t){try{return t.split("_").pop()}catch(t){return Object(a.b)(t,"getAmpAmznBidValue"),""}}function b(t){try{return!Object(o.k)(t,"slots")}catch(t){return Object(a.b)(t,"isAAXPunt"),!0}}function p(t){try{var e,n=Object(r.c)("url");if(null!==n)return encodeURIComponent(n);try{w(t,!1)?(Object(u.c)("ampAdContext","getCurrentUrl"),e=null,t.context&&(e=t.context.canonicalUrl||t.context.sourceUrl)):e=t.top.location.href}catch(t){e=null}if(null===e||!e||void 0===e){e="";try{t.top!==t.self&&(e=t.document.referrer)}catch(t){}}return encodeURIComponent(e)}catch(t){return Object(a.b)(t,"getCurrentUrl"),""}}function y(t){try{var e,n="",o=Object(r.c)("url");if(null!==o)return encodeURIComponent(o);try{try{e=(w(t,!1)&&(Object(u.c)("ampAdContext","getReferrerUrl"),t.context)||t.top.document).referrer}catch(n){e=t.document.referrer}n=encodeURIComponent(e)}catch(n){}return n}catch(n){return Object(a.b)(n,"getReferrerUrl"),""}}function m(){try{var t={cookiesParams:""};return c.j.forEach((function(e,n){(n=i.a.getDefault().cookie.getItem(n))&&(t.cookiesParams+="&".concat(e,"=").concat(n))})),t}catch(t){return Object(a.b)(t,"getApsFirstPartyCookies"),{cookiesParams:""}}}function g(t,e){try{var n=Object(l._getInitConfig)({overrides:null==e?void 0:e.initConfig}).blockedBidders,r=(Object(o.k)(t,"blockedBidders")&&Object(o.i)(t.blockedBidders)&&(n=t.blockedBidders),"");return Object(o.i)(n)?JSON.stringify(n):r}catch(t){return Object(a.b)(t,"getBlockedBidders",{makeVisibleToAllUsers:!0}),""}}function h(){try{var t;return Object(i.b)()?(t=s.a.getState(),Object(o.k)(t,"cfg")&&Object(o.k)(t.cfg,"v")&&-1!==t.cfg.v?t.cfg.v:null):c.p}catch(t){return Object(a.b)(t,"getCfgVersion"),null}}function O(t){try{if(-1===["string","number"].indexOf(d(t)))return!1;var e=Math.floor(Number(t));if(e>c.n)return e}catch(t){Object(a.b)(t,"parseTimeout",{makeVisibleToAllUsers:!0})}return!1}function v(t,e){try{var n=O(t.timeout);return!1===(n=!1===n?O(e.config.bidTimeout):n)?O(e.cfg.DEFAULT_TIMEOUT):n}catch(t){return Object(a.b)(t,"getTimeout",{makeVisibleToAllUsers:!0}),2e3}}function j(t,e){var n,r=!1;function o(e){if(!r)try{t(e)}catch(e){Object(a.b)(e,"executeFunctionOnceWithTimeout-wrappedFunction",{makeVisibleToAllUsers:!0})}clearTimeout(n),r=!0}try{return n=setTimeout(o,e,!0),o.bind(null,!1)}catch(e){return Object(a.b)(e,"executeFunctionOnceWithTimeout",{makeVisibleToAllUsers:!0}),function(){}}}function S(t){var e=!1;return function(n){if(!e)try{t(n)}catch(n){Object(a.b)(n,"executeFunctionOnceWithTimeout-wrappedFunction",{makeVisibleToAllUsers:!0})}e=!0}}function w(t,e){try{var n=e?t.AMP_CONTEXT_DATA:t.context;return Boolean(n&&Object(o.k)(n,"tagName")&&"AMP-AD"===n.tagName)}catch(t){return Object(a.b)(t,"isInAmpAd"),!1}}},function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return s}));var r=n(1);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){var e,n=t.url,i=t.onload,a=t.onerror,c=t.ontimeout,s=t.withCredentials,u=void 0===(u=t.body)?null:u,l=void 0===(e=t.headers)?null:e,d=(t=void 0===(e=t.trustTokenParameter)?null:e,new window.XMLHttpRequest);try{if(""===n)void 0!==a&&a.call(d,"error");else{d.onload=i.bind(null,d),void 0!==a&&(d.onerror=a),void 0!==c&&(d.ontimeout=c),void 0!==s&&(d.withCredentials=s);var f=null!==u?"POST":"GET";d.open(f,n),null!==l&&"object"===o(l)&&Object.keys(l).forEach((function(t){d.setRequestHeader(t,l[t])}));try{null!==t&&"object"===o(t)&&window.location===window.parent.location&&d.setTrustToken(t)}catch(t){Object(r.b)(t,"setTrustToken")}d.send(u)}}catch(t){void 0!==a&&a.call(d,"error"),Object(r.b)(t,"xhrRequest")}}function a(t,e,n,o){try{if(void 0===n&&(n=document),void 0===t)return"function"==typeof e&&e(!0),!1;var i=n.getElementsByTagName("script")[0]||n.body.firstChild,a=n.createElement("script");if(a.type="text/javascript",a.async=!0,a.src=t,e&&c(a,e),c(a,o||function(){Object(r.b)(new Error("Error Loading Script Tag"),"loadScriptTag-onerror")},[],"onerror"),null!==i.parentNode)return i.parentNode.insertBefore(a,i),!0}catch(t){Object(r.b)(t,"loadScriptTag",{makeVisibleToAllUsers:!0})}return!1}function c(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"onload";try{return"function"==typeof e&&(t[o]=function(){e.apply(null,n)},!0)}catch(t){return Object(r.b)(t,"addCallbackFunction"),!1}}function s(t){try{return encodeURIComponent(JSON.stringify(t))}catch(t){return Object(r.b)(t,"objToUrlParam"),""}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return I})),n.d(e,"b",(function(){return k})),n.d(e,"h",(function(){return R})),n.d(e,"d",(function(){return C})),n.d(e,"g",(function(){return x})),n.d(e,"c",(function(){return z})),n.d(e,"f",(function(){return L})),n.d(e,"e",(function(){return M}));var r=n(2),o=n(8),i=n(4),a=n(0),c=n(10),s=n(1),u=n(9),l=n(13),d=n(5),f=n(20),b=n(3),p=n(12),y=n(15),m=n(28),g=n(16),h=n(6);function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||T(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){D(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||T(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){var n;if(t)return"string"==typeof t?E(t,e):"Map"===(n="Object"===(n=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function A(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_(r.key),r)}}function D(t,e,n){(e=_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function _(t){return t=function(t,e){if("object"!==O(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==O(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===O(t)?t:String(t)}var I=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");D(this,"bidConfig",void 0),D(this,"bidState",i.c.new),D(this,"_targetingSetID",void 0),D(this,"timing",{setAtTimes:[]}),D(this,"pixelSent",!1),D(this,"useSafeFrames",!1),D(this,"bidReqID",""),D(this,"host",void 0),D(this,"ev",void 0),D(this,"cfe",void 0),D(this,"isAmp",!1),D(this,"doc",void 0),D(this,"inheritSize",void 0),this.bidConfig=e,this._targetingSetID=Object(a.d)(),r.a.getState().config.useSafeFrames&&(this.useSafeFrames=!0),this.useSafeFrames&&Object(a.k)(e,"targeting")&&e.targeting.push("amznhost"),Object(a.k)(e,"meta")?Object(a.i)(e.meta)||(this.reportError({name:"TypeError",message:"'meta' is not an 'array': ".concat(JSON.stringify(e.meta))},"constructor-meta"),e.meta=[]):e.meta=[];try{var n="d",o=(this.bidConfig.mediaType!==d.a.VIDEO&&"v"!==this.bidConfig.mediaType||(n="v"),[]);Object(a.k)(this.bidConfig,"amzndeals")&&(Object(b.c)("bidType","".concat(n,"-amzndeals")),o=this.bidConfig.amzndeals.map((function(t){return"".concat(t,"amzniid")}))),this.bidConfig.targeting.filter((function(t){return-1!==t.indexOf("amzniid")&&!Object(a.h)(o,t)})).forEach((function(t){return Object(b.c)("bidType","".concat(n,"-").concat(t))})),Object(a.k)(this.bidConfig,"fif")&&"1"===this.bidConfig.fif?Object(b.c)("bidRender","friendly"):Object(b.c)("bidRender","unfriendly")}catch(e){this.reportError(e,"pixeling")}}var e,n;return e=t,(n=[{key:"reportError",value:function(t,e,n){Object(s.b)(t,"Bid-".concat(e),n)}},{key:"mediaType",get:function(){var t="d";return this.bidConfig.mediaType!==d.a.VIDEO&&"v"!==this.bidConfig.mediaType&&"v"!==this.bidConfig.mediaType_sp?t:d.a.VIDEO}},{key:"targeting",get:function(){var t=this;try{return this.bidConfig.targeting.map((function(e){return"amznhost"===e?[e,encodeURIComponent(t.host)]:Object(a.k)(t.bidConfig,e)&&Object(a.i)(t.bidConfig[e])?[e,encodeURIComponent(t.bidConfig[e].join(","))]:Object(a.k)(t.bidConfig,e)?[e,encodeURIComponent(t.bidConfig[e])]:[e,""]})).map((function(t){var e=(t=w(t,2))[0];t=t[1];return"&".concat(e,"=").concat(t)})).join("")}catch(t){return this.reportError(t,"targeting"),""}}},{key:"bidObject",get:function(){try{var t={slotID:this.bidConfig.slotID,amzniid:this.bidConfig.amzniid,amznbid:this.bidConfig.amznbid,amznp:this.bidConfig.amznp,amznsz:this.bidConfig.amznsz,size:this.bidConfig.amznsz};return this.bidConfig.amznactt&&(t.amznactt=this.bidConfig.amznactt),Object(a.k)(this.bidConfig,"amznadm")&&(t.amznadm=this.bidConfig.amznadm),this.mediaType===d.a.VIDEO&&(t.mediaType=d.a.VIDEO,t.qsParams=this.targeting,t.encodedQsParams=encodeURIComponent(this.targeting),t.r_amznbid=this.bidConfig.r_amznbid,t.r_amzniid=this.bidConfig.r_amzniid,t.r_amznp=this.bidConfig.r_amznp),this.useSafeFrames&&(t.amznhost=this.host),t}catch(t){return this.reportError(t,"bidObject",{makeVisibleToAllUsers:!0}),{slotID:"",amzniid:"error",amznbid:"error",amznp:"error",amznsz:"error",size:"error"}}}},{key:"newBidObject",get:function(){var t=this;try{var e={slotID:this.bidConfig.slotID,size:this.bidConfig.amznsz,mediaType:this.mediaType,targeting:{},helpers:{targetingKeys:this.bidConfig.targeting,qsParams:function(){return t.targeting},encodedQsParams:function(){return encodeURIComponent(t.targeting)}}},n=["slotID","size","mediaType"];return this.bidConfig.meta.filter((function(t){return-1===n.indexOf(t)})).forEach((function(n){e[n]=t.bidConfig[n]})),this.bidConfig.targeting.forEach((function(n){e.targeting[n]="amznhost"===n?t.host:t.bidConfig[n]})),void 0!==this.slotID&&-1!==this.slotID.indexOf("_")&&(e.sasTargeting=e.helpers.targetingKeys.map((function(n){return"".concat(n,"_").concat(t.slotID.split("_")[1],"=").concat(e.targeting[n])})).join(";")),e}catch(t){return this.reportError(t,"newBidObject",{makeVisibleToAllUsers:!0}),{slotID:"",size:"",mediaType:"d",targeting:{},helpers:{targetingKeys:[],qsParams:function(){return""},encodedQsParams:function(){return""}}}}}},{key:"slotID",get:function(){try{return this.bidConfig.slotID}catch(t){return this.reportError(t,"slotID"),""}}},{key:"matchesBidCacheId",value:function(t){var e=this;try{return this.bidConfig.targeting.reduce((function(n,r){return n||-1!==r.indexOf("amzniid")&&e.bidConfig[r]===t}),!1)}catch(t){return this.reportError(t,"matchesBidCacheId"),!1}}}])&&A(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),k=Object(a.e)(i.r);function P(t,e,n){try{var r=Object(a.j)(t.config.params)?t.config.params:{},o=Object(a.j)(e.params)?e.params:{},i="string"==typeof n?function(t){if(t=Object(h.a)(t).read("deviceSignal/sua"))try{return{device:{sua:JSON.parse(t)}}}catch(t){Object(s.b)(t,"getDeviceNode")}return{}}(n):{},u=S(S(S({},r),o),i);return 0===Object.keys(u).length?"":Object(c.c)(u)}catch(t){return Object(s.b)(t,"getBidParams",{makeVisibleToAllUsers:!0}),""}}function R(t){var e="validateSupplyChainObject",n=!1;function r(t,r){return Object(s.b)({name:"TypeError",message:r},"".concat(e,"-").concat(t),{makeVisibleToAllUsers:!0}),!(n=!0)}try{return Object(a.j)(t)?(Object(a.k)(t,"complete")?-1===[1,0].indexOf(t.complete)&&r("schain-complete-type","The `schain.complete` property must be a `1` or `0`"):r("schain-complete","The `schain.complete` property must be provided"),Object(a.k)(t,"ver")?Object(p.b)(t.ver,["string"])||r("schain-ver-type","The `schain.ver` property must be a string"):r("schain-ver","The `schain.ver` property must be provided"),Object(a.k)(t,"nodes")?Object(a.i)(t.nodes)?t.nodes.reduce((function(t,e){return Object(a.j)(e)?(Object(a.k)(e,"asi")?Object(p.b)(e.asi,["string"])||r("schain-node-asi-type","All `schain.nodes` items must have an `asi` property of type `string`"):r("schain-node-asi","All `schain.nodes` items must have an `asi` property"),Object(a.k)(e,"sid")?Object(p.b)(e.sid,["string"])||r("schain-node-sid-type","All `schain.nodes` items must have an `sid` property of type `string`"):r("schain-node-sid","All `schain.nodes` items must have an `sid` property"),Object(a.k)(e,"hp")?-1===[1,0].indexOf(e.hp)&&r("schain-node-hp-type","All `schain.nodes` items must have an `hp` property which is `1` or `0`"):r("schain-node-hp","All `schain.nodes` items must have an `hp` property"),Object(p.b)(e.rid,["string","undefined"])||r("schain-node-rid-type","If provided, the `rid` property on an `schain.nodes` item must be of type `string`"),Object(p.b)(e.name,["string","undefined"])||r("schain-node-name-type","If provided, the `name` property on an `schain.nodes` item must be of type `string`"),Object(p.b)(e.domain,["string","undefined"])||r("schain-node-domain-type","If provided, the `domain` property on an `schain.nodes` item must be of type `string`"),t&&!n):r("schain-node-type","All `schain.nodes` items must be objects")}),!n):r("schain-nodes-type","The `schain.nodes` property must be an `Array`"):r("schain-nodes","The `schain.nodes` property must be provided")):r("schain","The `schain` value must be an object")}catch(t){return Object(s.b)(t,e,{makeVisibleToAllUsers:!0}),!1}}function C(t,e,n,l,p){try{var O,j,w,T,E,A=null!=(O=null==p||null==(j=p.initConfig)?void 0:j.pubID)?O:null==(w=r.a.getState().config)?void 0:w.pubID,D=r.a.getState(),_=t._endpointDomain||Object(o.c)("host",D.hosts.DEFAULT_AAX_BID_HOST),I=D.cfg.DTB_PATH,C="bid",x=(D.experiments.shouldUseTestBidEndpoint&&null!==D.cfg.TEST_BID_ENDPOINT&&(C=D.cfg.TEST_BID_ENDPOINT),{src:Object(g._getInitConfig)({overrides:null==p?void 0:p.initConfig}).pubID,u:null!=p&&p.contextURL?encodeURIComponent(p.contextURL):Object(u.g)(window),pr:Object(u.h)(window),pid:k,cb:t.bidReqID,ws:Object(a.g)(window),v:i.l,t:e,slots:function(t){try{return Object(c.c)(t.map((function(t){var e;if(Object(a.k)(t,"mediaType")&&t.mediaType===d.a.VIDEO||t.mediaType===d.a.MULTI_FORMAT)e=t.aaxSlot;else{if(!(Object(a.k)(t,"sizes")&&0<t.sizes.length&&Object(a.k)(t,"slotID")))return Object(s.b)({name:"SlotError",message:"There was an error with the configuration for this slot: ".concat(JSON.stringify(t.rawSlot))},"buildSlotsUrlParam-invalidSlot",{makeVisibleToAllUsers:!0}),{id:"ERROR",mt:f.a.VIDEO,error:!0};var n=t.aaxSlot;Object(a.k)(t,"slotName")&&t.slotName!==t.slotID?(Object(b.c)("idRemap","y"),n.sd=t.slotID,n.sn=t.slotName):Object(b.c)("idRemap","n"),e=n}return e})).filter((function(t){return!0!==t.error})))}catch(t){return Object(s.b)(t,"buildSlotsUrlParam",{makeVisibleToAllUsers:!0}),""}}(t.validSlots),pj:P(D,t,A),sg:Object(m.a)(A),cfgv:Object(u.f)(),bb:Object(u.e)(t),schain:function(t,e){try{var n,r=Object(h.a)(e).read("ad/schain");if(Object(a.k)(t.config,"schain"))n=t.config.schain;else{if(!r||!R(r))return"";n=r}return encodeURIComponent(["".concat(n.ver,",").concat(n.complete)].concat(v(n.nodes.map((function(t){return["asi","sid","hp","rid","name","domain"].map((function(e){return Object(a.k)(t,e)?t[e]:""})).map((function(t){return encodeURIComponent(t)})).map((function(t){return t.replace(/\!/g,"%21")})).join(",")})))).join("!"))}catch(t){return Object(s.b)(t,"getSupplyChainObject",{makeVisibleToAllUsers:!0}),""}}(D,A)});try{var z=Object(h.a)(A).read("deviceSignal/cookieDeprecationLabel");z&&""!==z&&(x.cdep=encodeURIComponent(z))}catch(t){}try{var L=Object(h.a)(A).read("consent/GPPData")||{},M=L.gppString,U=L.applicableSections,V=0<(M||"").length,B=0<(U||[]).length;V&&(x.gpp=encodeURIComponent(M)),B&&(x.gpp_sid=encodeURIComponent(JSON.stringify(U)));var N,F=(q={isGPPPresent:V,isSectionPresent:B}).isGPPPresent,q=q.isSectionPresent;N=F&&q?"all":F?"gpp":q?"section":"none",Object(b.c)("gpp",N)}catch(t){Object(s.b)(t,"gpp")}if("[]"===x.slots||""===x.slots)throw new Error("No slots available for bid request");try{var H=Object(h.a)(A).read("sessionMarker/marker");0<(null!=H?H:"").length&&(x.sm=encodeURIComponent(H.split("_")[0]))}catch(t){}r.a.dispatch({type:"RECORD_AAX_REQUEST",data:{bidConfig:t,bidReqID:t.bidReqID,timeout:e,ws:x.ws,url:x.u,rqTs:Date.now()}}),D.experiments.chunkRequests&&(E=t.bidReqID.split("-"),r.a.dispatch({type:"RECORD_NETWORK_EXCHANGE",fid:E[0],networkID:parseInt(E[1],10),timestamp:Date.now(),exchangeType:"request"})),Object(g._getInitConfig)({overrides:null==p?void 0:p.initConfig}).isSelfServePub&&(x.pubid=x.src,x.src=600);var G=Object(u.d)(),Q=Object(o.c)("bidParams"),X=(Object(a.j)(Q)&&(x=S(S({},x),Q)),Object(a.j)(n)&&(Object(a.k)(n,"enabled")&&(x.gdpre=encodeURIComponent(n.enabled)),Object(a.k)(n,"consent")&&(x.gdprc=encodeURIComponent(n.consent)),Object(a.k)(n,"log"))&&(x.gdprl=Object(c.c)(n.log)),Object(a.k)(Object(g._getInitConfig)({overrides:null==p?void 0:p.initConfig}),"useSafeFrames")&&Object(g._getInitConfig)({overrides:null==p?void 0:p.initConfig}).useSafeFrames&&(x.sf="1"),Object(y.b)()),W=(X&&(Object(b.c)("id","bidReq-attachToken"),l.ids.at=X),x.vm=function(t,e){var n=!t||0===Object.keys(t.ids).length,r=n?"":Object(c.c)({ids:t.ids,md:t.md});try{Object(h.a)(e).safelyRecord("cxm/vendors/set");var o=Object(h.a)(e).read("cxm/vendors");o&&(r=n?Object(c.c)({vendors:o}):Object(c.c)({ids:t.ids,md:t.md,vendors:o}))}catch(t){Object(s.b)(t,"getVmParam")}return r}(l,A),Object.keys(x).filter((function(t){return Object(a.k)(x,t)&&"undefined"!==x[t]&&""!==x[t]&&null!==x[t]})).map((function(t){return"".concat(t,"=").concat(x[t])})).join("&")),J=(G.cookiesParams&&(W+=G.cookiesParams),"".concat(i.s).concat(_).concat(I,"/").concat(C,"?").concat(W)),$=(Object(h.a)(A).safelyRecord("adExchangeBidFetching/bidURLs/update",{legacyURL:J,bidRequestIndex:t.bidReqID}),null==(T=Object(h.a)(A).read("adExchangeBidFetching/bidURLs"))?void 0:T.get(t.bidReqID)),Y=($&&0!==$.length||Object(s.b)(new Error("Missing updatedURL from client"),"buildBidUrl-readBidURLS"),null!=$?$:J);return r.a.dispatch({type:"RECORD_AAX_REQ_PROP",bidReqID:t.bidReqID,key:"urlLength",value:Y.length}),Y}catch(t){return Object(s.b)(t,"buildBidUrl",{makeVisibleToAllUsers:!0}),""}}function x(t,e){try{return Object(a.k)(t,"deals")&&!0===t.deals||!0===e.needNewBidObject}catch(t){return Object(s.b)(t,"isNewBidObjectRequired"),!1}}function z(t,e,n){try{var r=t.map(l.c),o=e.slots.filter(Object(l.d)(d.a.DISPLAY,d.a.MULTI_FORMAT)).map(l.c).filter((function(t){return!Object(a.h)(r,t)})),c=n?i.u.bidInFlight:i.u.noBid;return t.concat(o.map((function(t){return new I({size:"0x0",crid:"",slotID:t,mediaType:"d",meta:["slotID","mediaType","size"],amznbid:c,amzniid:"",amznp:c,amznsz:"0x0",targeting:["amzniid","amznbid","amznp","amznsz"]})})))}catch(e){return Object(s.b)(e,"addStateTrackingBidsToRealBids"),t}}function L(t,e){try{var n;return!Object(a.h)(r.a.getState().displayAdServer.noBidSlotIDs,t.slotID)&&(n=r.a.getState().AAXReqs.filter((function(e){return e.bidReqID===t.bidReqID}))[0],!(Object(a.k)(n,"rqTs")&&Date.now()-n.rqTs>24e4||Object(a.k)(n,"url")&&!Object(a.b)(n.url,null!=e&&e.contextURL?encodeURIComponent(e.contextURL):Object(u.g)(window))||t.bidState===i.c.rendered))}catch(e){return Object(s.b)(e,"isBidEligible"),!1}}function M(t,e){try{var n=t.map(l.c),o=r.a.getState();return Object.keys(o.slotBids).filter((function(t){return Object(a.h)(n,t)})).reduce((function(t,n){var a=o.slotBids[n].filter((function(t){return t.bidState===i.c.new})).filter((function(t){return L(t,e)}));return 0<a.length&&(a=a[a.length-1],r.a.dispatch({type:"BID_STATE_CHANGE",slotID:n,_targetingSetID:a._targetingSetID,bidState:i.c.exposed}),t[n]=a),t}),{})}catch(t){return Object(s.b)(t,"getNewSlotBidsAndExposeForRequestedSlots"),{}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c}));var r=n(1),o=n(0);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){try{return function(t){try{var e;return!!c(t,["number","string"])&&!(isNaN(t)||"number"!=typeof t&&(e=parseInt(t,10),isNaN(e)))}catch(t){return Object(r.b)(t,"isNumber"),!0}}(t)||void 0===t}catch(t){return Object(r.b)(t,"isNumberOrUndefined"),!0}}function c(t,e){try{return Object(o.h)(e,i(t))}catch(t){return Object(r.b)(t,"isVarOfTypes"),!0}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return s}));var r=n(1),o=n(0);function i(t){var e=[];try{t.hasAdServerObjectLoaded()&&(e=t.getSlots())}catch(t){Object(r.b)(t,"getDisplayAdServerSlots")}return e}function a(t){try{return Object(o.k)(t,"sizes")&&Object(o.i)(t.sizes)&&0!==t.sizes.length}catch(t){return Object(r.b)(t,"doesSlotHaveSizes"),!1}}function c(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){try{return!t.mediaType||-1<e.indexOf(t.mediaType)}catch(t){return Object(r.b)(t,"isSlotOfType"),!0}}}function s(t){try{return t.slotID}catch(t){return Object(r.b)(t,"getSlotID"),""}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return c})),n.d(e,"d",(function(){return s}));function r(t,e){try{return"number"!=typeof t[e]?0:Math.round(t[e])}catch(t){return 0}}function o(t,e){try{var n=i(t,e)[0];if(void 0!==n)return n}catch(t){}return null}function i(t,e){try{return t.performance.getEntriesByType("resource").filter((function(t){return e.test(t.name)}))}catch(t){return[]}}function a(t,e){try{var n=t.performance.timing[e];return void 0===n?0:n}catch(t){return 0}}function c(t){try{var e;return 0===["redirectStart","redirectEnd","domainLookupStart","domainLookupEnd","connectStart","connectEnd","requestStart","responseStart","secureConnectionStart"].reduce((function(e,n){return e+r(t,n)}),0)?null:(e=r(t,"fetchStart"),["domainLookupStart","domainLookupEnd","connectStart","connectEnd"].reduce((function(n,o){return n&&r(t,o)===e}),!0))}catch(t){return null}}function s(){try{var t=window.performance.timeOrigin;return void 0===t?window.performance.timing.navigationStart:t}catch(t){return 0}}},function(t,e,n){"use strict";n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return j})),n.d(e,"a",(function(){return S})),n.d(e,"e",(function(){return T})),n.d(e,"d",(function(){return E}));var r=n(1),o=n(17),i=n(10),a=n(3),c=n(9),s=n(0),u=n(7),l=n(16),d=n(2);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var b,p=["email"],y=/@/,m=/^[0-9a-fA-F]{64}$/,g=((e=b=b||{})[e.noConsent=0]="noConsent",e[e.token=1]="token","https://tk.amazon-adsystem.com/envelope"),h=function(t){return m.test(t||"")};function O(t){return t===b.noConsent?"AMZN-NoCookieConsent":"AMZN-Token"}function v(t,e,n){t=0<arguments.length&&void 0!==t?t:"",e=1<arguments.length&&void 0!==e?e:0,n=2<arguments.length&&void 0!==n?n:b.token;try{var o=new Date(e).toUTCString();u.a.getDefault().cookie.setItem(O(n),t,o)}catch(t){Object(r.b)(t,"setAmznToken-".concat(n))}}function j(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:b.token;try{var e=u.a.getDefault().cookie.getItem(O(t));return e||""}catch(e){return Object(r.b)(e,"getAmznToken-".concat(t)),""}}function S(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"api";try{if(void 0!==t&&"function"!=typeof t)throw new Error("Callback function must be a function, ".concat(f(t)," provided"));"function"!=typeof t&&(t=function(){}),v(),v("",0,b.noConsent),Object(a.c)("id","d-".concat(e))}catch(t){Object(r.b)(t,"deleteIdentity",{makeVisibleToAllUsers:!0})}t()}function w(t,e,n,o,u,d){try{n=Object(c.a)(n);var f,p,y=Object(l._getInitConfig)({overrides:null==d?void 0:d.initConfig});if(!Object(s.k)(y,"pubID")&&0===(null!=t?t:"").length)throw new Error("apstag.init must be called before ID functions");y.pubID=0<(null!=(f=y.pubID)?f:"").length?y.pubID:t;var m={url:g,onload:function(t){try{if(t.readyState===XMLHttpRequest.DONE&&200===t.status){if("string"!=typeof(p=JSON.parse(t.responseText)).AIPToken||"number"!=typeof p.cookieExpiry)return n(),void Object(r.b)(new Error("Invalid AIPES response"),"callAipes-response");""===p.AIPToken?(Object(a.c)("id","endReqAipes-tokenEmpty"),v("1",p.cookieExpiry,b.noConsent)):(Object(a.c)("id","endReqAipes-tokenAvailable"),Object(a.g)(),o&&v(p.AIPToken,p.cookieExpiry))}else t.readyState===XMLHttpRequest.DONE&&Object(r.b)(new Error("AIPES response code: ".concat(t.status)),"callAipes-onload",{makeVisibleToAllUsers:!0})}catch(t){Object(r.b)(t,"callAipes-onload",{makeVisibleToAllUsers:!0})}n(o?null:p)},onerror:function(){Object(r.b)(new Error("AIPES response code: ".concat(this.status)),"callAipes-onerror",{makeVisibleToAllUsers:!0}),n()},ontimeout:function(){Object(r.b)(new Error("AIPES request timeout"),"callAipes-ontimeout",{makeVisibleToAllUsers:!0}),n()},headers:{"Content-Type":"application/json"},body:function(t,e,n){try{var o={publisherId:e.pubID,hashedRecords:t.hashedRecords};return n.enabled?(o.gdpr=1,void 0!==n.consent&&(o.gdprConsent=n.consent)):0===n.enabled&&(o.gdpr=0),void 0!==t.ttl&&(o.ttl=t.ttl),JSON.stringify(o)}catch(t){return Object(r.b)(t,"buildAipesBody",{makeVisibleToAllUsers:!0}),""}}(e,y,u)};Object(a.c)("id","startReqAipes"),Object(i.d)(m)}catch(t){Object(r.b)(t,"callAipes",{makeVisibleToAllUsers:!0}),n()}}function T(t,e,n){var i,c=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"api",u=(u=4<arguments.length?arguments[4]:void 0)||d.a.getState().config.pubID;"function"!=typeof e&&(e=function(){}),"boolean"!=typeof n&&(n=!0);try{if(!Object(s.j)(t))throw new Error("'tokenConfig' must be an object, ".concat("object"===f(t)?"null":f(t)," provided"));t.optOut?S(e,"u-oo"):(S((function(){}),"u"),Object(a.c)("id","u-".concat(c)),function(t){try{var e=[];if(!Object(s.k)(t,"gdpr")||Object(s.j)(t.gdpr)&&!Object(s.i)(t.gdpr)?Object(s.k)(t,"gdpr")&&(Object(s.k)(t.gdpr,"enabled")&&-1===[!0,!1].indexOf(t.gdpr.enabled)&&e.push("`gdpr.enabled` must be a boolean"),Object(s.k)(t.gdpr,"consent"))&&"string"!=typeof t.gdpr.consent&&e.push("'gdpr.consent' must be a valid IAB-formatted string"):e.push("`gdpr` must be an Object"),Object(s.k)(t,"optOut")&&-1===[!0,!1].indexOf(t.optOut)&&e.push("'optOut' must be a boolean"),Object(s.k)(t,"hashedRecords")&&Object(s.i)(t.hashedRecords)?1!==t.hashedRecords.length?e.push("'hashedRecords' must contain exactly one item"):t.hashedRecords.forEach((function(t){Object(s.k)(t,"type")&&-1!==p.indexOf(t.type)||e.push("'type' must be 'email' in item '".concat(JSON.stringify(t),"'")),Object(s.k)(t,"encrypted")&&"boolean"!=typeof t.encrypted&&e.push("'encrypted' must be a boolean in item '".concat(JSON.stringify(t),"'")),Object(s.k)(t,"record")&&"string"==typeof t.record?t.encrypted||m.test(t.record)?t.encrypted&&y.test(t.record)&&e.push("'record' must NOT be an un-hashed, un-encrypted email"):e.push("'record' must be a SHA256 hash in item '".concat(JSON.stringify(t),"'")):e.push("'record' must be a string in item '".concat(JSON.stringify(t),"'"))})):e.push("'hashedRecords' must be an array"),Object(s.k)(t,"ttl")&&("number"!=typeof t.ttl||isNaN(t.ttl)||t.ttl<=0||t.ttl%1!=0)&&e.push("'ttl' must be a positive integer"),!(0<e.length))return 1;Object(r.b)({name:"TokenConfigValidationError",message:"There was an issue with the TokenConfig provided ".concat(JSON.stringify(t),":\n")+e.map((function(t){return"- ".concat(t)})).join("\n")},"validateTokenConfig-invalid",{makeVisibleToAllUsers:!0})}catch(t){Object(r.b)(t,"validateTokenConfig",{makeVisibleToAllUsers:!0})}}(t)?Object(o.a)(t.gdpr,w.bind(null,null!=(i=u)?i:"",t,e,n),u):e())}catch(t){Object(r.b)(t,"updateIdentity",{makeVisibleToAllUsers:!0}),e()}}function E(t,e,n,o){"function"!=typeof e&&(e=function(){}),"boolean"!=typeof n&&(n=!0);try{if(!Object(s.j)(t))throw new Error("'tokenConfig' must be an object, ".concat("object"===f(t)?"null":f(t)," provided"));t.optOut?S(e,"r-oo"):""!==j(b.noConsent)?e():""!==j()?(e(),Object(a.c)("id","r-noop")):T(t,e,n,"r",o)}catch(t){Object(r.b)(t,"renewIdentity",{makeVisibleToAllUsers:!0}),e()}}},function(i,t,e){"use strict";e.r(t),e.d(t,"unsafelyGuessAccountID",(function(){return ie})),e.d(t,"_getInitConfig",(function(){return ce}));var se=e(17),At=e(2),Ct=e(9),Rt=e(0),xt=e(13),zt=e(8),Lt=e(4),Ut=e(14),Bt=e(27),Nt=e(22),Vt=e(3),Mt=e(1),Ft=e(10),ue=e(29),n=e(31),qt=e(30),Ht=e(11),a=e(18),Gt=e(5),Qt=e(12),Xt=e(21),Jt=e(15),le=e(37),$t=e(32),de=e(36),Kt=e(26),fe=e(38),be=e(23),Wt=e(6),Yt=e(7),Zt=e(33),pe=e(28),ye=e(24);function te(t){return l(t)||u(t)||s(t)||c()}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){var n;if(t)return"string"==typeof t?r(t,e):"Map"===(n="Object"===(n=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}function u(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function l(t){if(Array.isArray(t))return r(t)}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ee(t){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function ne(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){re(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function re(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){return"symbol"===ee(t=f(t,"string"))?t:String(t)}function f(t,e){if("object"!==ee(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!==ee(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}var oe=new a.a;function ie(t){try{var e;if("string"==typeof t&&0<t.trim().length)return t;if("number"==typeof t&&0<t)return t.toString();var n=null==(e=At.a.getState().config)?void 0:e.pubID;if(n&&"number"==typeof n&&0<n)return n.toString();if(n&&"string"==typeof n&&""!==n)return n;var r=Array.from(window._aps.keys()).filter((function(t){return"_system"!==t&&""!==t}))[0];if(r)return r}catch(t){}return"_system"}function ae(t,e,n,r){try{Object(Wt.a)(t).safelyRecord("cellophane/".concat(e,"/enter"),re({},r,n));var o=Object(Wt.a)(t).read("cellophane/".concat(r));void 0!==n&&void 0===o?Object(Rt.l)(1)&&Object(Mt.b)(new Error("Missing ".concat(r," from client")),"cellophaneWrap"):n=o}catch(t){Object(Mt.b)(t,"cellophaneWrap")}return n}function ce(t){return t=t.overrides,ne(ne({},At.a.getState().config),t)}try{var b=Object(n.b)(window.apstag);b?Object(Mt.b)(new Error("apstag has already loaded - preventing duplicate load"),"apstag-duplicateLoad"):(Object(n.a)(window)&&Object(Mt.b)(new Error("apstag was loaded and then destroyed"),"apstag-destroyReload",{makeVisibleToAllUsers:!0}),window.apstagLOADED=!0,function(){var g=Object(Ut.e)(window,"navigationStart"),a=(Object(Rt.l)(1)&&Object(Mt.b)(new Error("apstag-".concat(Lt.l," reference pixel - Used to compute ratios for other errors")),"REFERENCE"),new be.a({stateContainer:At.a,globalContext:window})),t=(a.attemptConsentDataSync(),"ls"),n=Object(zt.d)("console")||function(){try{return-1!==window.location.href.indexOf("amzn_debug_console=1")&&(t="url",!0)}catch(t){return!1}}(),r=Object(zt.d)("console_v2")||function(){try{return-1!==window.location.href.indexOf("amzn_debug_console=2")&&(t="url",!0)}catch(t){return!1}}();function L(t){try{return!At.a.getState().experiments.chunkRequests||0===At.a.getState().bidReqs[t.split("-")[0]].networkReqs.filter((function(t){return t.inFlight})).length}catch(t){return Object(Mt.b)(t,"_isRequestComplete"),1}}function c(t,e){try{!At.a.getState().bidReqs[t].hasCallbackExecuted&&L(t)&&(At.a.dispatch({type:"RECORD_CALLBACK",fid:t}),e())}catch(t){Object(Mt.b)(t,"_checkAndCallCallback")}}function s(t){try{At.a.getState().experiments.chunkRequests&&At.a.dispatch({type:"RECORD_NETWORK_EXCHANGE",fid:t[0],timestamp:Date.now(),exchangeType:"response",networkID:parseInt(t[1],10)})}catch(t){Object(Mt.b)(t,"_recordResponse")}}function h(t,r,e,o){var i=e.split("-");if(!0===Object(Wt.a)(o).read("adExchangeBidFetching/useFetch"))Object(Wt.a)(o).record("adExchangeBidFetching/amazonAdExchange/fetch",{URL:t}).catch((function(){})).finally((function(){s(i),c(i[0],r)}));else{var n={url:t,withCredentials:!0,onload:function t(e){e=ae(o,"_xhrBidOnLoad",e,"xhr");try{(e.status<200||299<e.status)&&0!==e.status&&Object(Wt.a)(o).safelyRecord("_legacy/_xhrBid/didError",{error:new Error("".concat(e.status))})}catch(t){}try{s(i);var n=e.responseText;eval(n),c(i[0],r)}catch(t){Object(Mt.b)(t,"_xhrBid-onload",{makeVisibleToAllUsers:!0})}},onerror:function(){try{"number"==typeof this.status&&0!==this.status&&Object(Wt.a)(o).safelyRecord("_legacy/_xhrBid/didError",{error:new Error("".concat(this.status))})}catch(t){}try{s(i),c(i[0],r)}catch(t){Object(Mt.b)(t,"_xhrBid-onerror",{makeVisibleToAllUsers:!0})}}};try{Object(Ft.d)(n)}catch(t){Object(Mt.b)(t,"_xhrBid",{makeVisibleToAllUsers:!0}),s(i),c(i[0],r)}}}function U(t){try{var e=new Date;return e.setTime(e.getTime()+1e3*t),e.toUTCString()}catch(t){return Object(Mt.b)(t,"_getCookieExpiry"),"Thu, 01 Jan 1970 00:00:00 GMT"}}function B(t){try{Object(Rt.k)(t,"cr")&&t.cr.forEach((function(t){var e=-1!==t.exp?U(t.exp):Object(Rt.f)(365);Yt.a.getDefault().cookie.setItem(t.k,t.v,e)}))}catch(t){Object(Mt.b)(t,"_setFirstPartyCookies")}}function N(t,e,n){try{var r;Object(Rt.k)(t,"cb")&&(At.a.dispatch({type:"RECORD_AAX_REQ_PROP",bidReqID:t.cb,key:"resTs",value:Date.now()}),r=new RegExp("e/dtb/bid.*cb=".concat(t.cb)),At.a.dispatch({type:"RECORD_AAX_REQ_PROP",bidReqID:t.cb,key:"perf",value:Object(Ut.c)(window,r)})),Object(Rt.k)(t,"cfg")&&At.a.dispatch({type:"SET_CFG",cfg:t.cfg}),it(t,e,n)}catch(t){Object(Mt.b)(t,"_doOnAaxResponse",{makeVisibleToAllUsers:!0})}}function V(t){try{Object(Zt.b)(t),B(t),Object(Rt.k)(t,"cfg")&&Yt.a.getDefault().localStorage.setItem(Lt.d,JSON.stringify(t.cfg),{ignoreFailure:!0}),M(t),Object(Ct.j)(t)||Object(Vt.g)()}catch(t){Object(Mt.b)(t,"_doAfterAaxResponse",{makeVisibleToAllUsers:!0})}}function M(t){try{var e;Object(Rt.k)(t,"fp")&&(e=t.fp,Object(Rt.k)(e,"length"))&&e.forEach((function(t){var e=t.d||0;setTimeout((function(){Object(Vt.f)(t.s)}),e)}))}catch(t){Object(Mt.b)(t,"fireAAXPixels")}}function F(){try{At.a.getState().Q.forEach((function(t){var e="init";switch(t[0]){case"i":e="init";break;case"f":e="fetchBids";break;case"di":e="deleteId";break;case"ri":e="renewId";break;case"ui":e="updateId";break;default:return}window.apstag[e].apply(null,t[1])}))}catch(t){Object(Mt.b)(t,"_QHandler",{makeVisibleToAllUsers:!0})}}function q(t){try{Object(Rt.j)(t)||(Object(Mt.c)("init.config",ee(t),"object"),t={pubID:"err"}),Object(Qt.b)(t.pubID,["string","number"])?"number"==typeof t.pubID&&(t.pubID="".concat(t.pubID)):Object(Mt.c)("init.config.pubID",ee(t.pubID),"string"),Object(Qt.b)(t.adServer,["undefined","string"])||Object(Mt.c)("init.config.adServer",ee(t.adServer),"string"),Object(Qt.a)(t.bidTimeout)||("string"==typeof t.bidTimeout?Object(Mt.b)({name:"string-".concat(t.bidTimeout),message:"init.config.bidTimeout was a non-numeric string '".concat(t.bidTimeout,"'")},"TypeError-init.config.bidTimeout",{makeVisibleToAllUsers:!0}):Object(Mt.c)("init.config.bidTimeout",ee(t.bidTimeout),"number")),Object(Qt.b)(t.gdpr,["undefined","object"])?"object"!==ee(t.gdpr)||Object(Qt.a)(t.gdpr.cmpTimeout)||(Object(Qt.b)(t.gdpr.cmpTimeout,["string","undefined"])?Object(Mt.b)({name:"string-".concat(t.bidTimeout),message:"init.config.gdpr.cmpTimeout was a non-numeric string '".concat(t.gdpr.cmpTimeout,"'")},"TypeError-init.config.gdpr.cmpTimeout",{makeVisibleToAllUsers:!0}):Object(Mt.c)("init.config.gdpr.cmpTimeout",ee(t.gdpr.cmpTimeout),"number")):Object(Mt.c)("init.config.gdpr",ee(t.gdpr),"object"),Object(Rt.k)(t,"params")&&!Object(Rt.j)(t.params)?Object(Mt.c)("init.config.params",ee(t.params),"object"):Object(Rt.k)(t,"params")&&Object.keys(t.params).forEach((function(e){return!(!Object(Rt.k)(t,"params")||"string"!=typeof t.params[e]&&"number"!=typeof t.params[e]&&(Object(Rt.i)(t.params[e])?!t.params[e].reduce((function(t,e){return t&&("string"==typeof e||"number"==typeof e)}),!0)&&(Object(Mt.b)({name:"non-string array item",message:"'init.config.params.".concat(e," contains a non-string item")},"TypeError-init.config.params.".concat(e),{makeVisibleToAllUsers:!0}),1):(Object(Mt.c)("init.config.params.".concat(e),ee(t.params[e]),"string' or 'array"),1)))})),Object(Rt.k)(t,"params")&&Object(Rt.k)(t.params,"us_privacy")&&"string"==typeof t.params.us_privacy&&Lt.C.test(t.params.us_privacy)?Object(Vt.c)("ccpa","y"):Object(Rt.k)(t,"params")&&Object(Rt.k)(t.params,"us_privacy")?Object(Vt.c)("ccpa","i"):Object(Vt.c)("ccpa","n"),Object(Rt.k)(t,"blockedBidders")&&!Object(Rt.i)(t.blockedBidders)?Object(Mt.c)("init.config.blockedBidders",ee(t.blockedBidders),"array"):Object(Rt.k)(t,"blockedBidders")&&Object(Rt.i)(t.blockedBidders)&&(t.blockedBidders.reduce((function(t,e){return t&&("string"==typeof e||"number"==typeof e)}),!0)||Object(Mt.b)({name:"non-string array item",message:"'init.config.blockedBidders contains a non-string item"},"TypeError-init.config.blockedBidders",{makeVisibleToAllUsers:!0})),Object(Rt.k)(t,"blockedBidders")?Object(Vt.c)("blockedBidders-init","y"):Object(Vt.c)("blockedBidders-init","n"),Object(Qt.b)(t.simplerGPT,["undefined","boolean"])||Object(Mt.c)("init.config.simplerGPT",ee(t.simplerGPT),"boolean"),t.simplerGPT?Object(Vt.c)("simplerGpt","y"):Object(Vt.c)("simplerGpt","n"),Object(Qt.b)(t.deals,["undefined","boolean"])||Object(Mt.c)("init.config.deals",ee(t.deals),"boolean"),t.deals?Object(Vt.c)("deals","y"):Object(Vt.c)("deals","n"),Object(Qt.b)(t.schain,["undefined","object"])&&null!==t.schain?Object(Rt.k)(t,"schain")&&!Object(Ht.h)(t.schain)&&delete t.schain:(Object(Mt.c)("init.config.schain",ee(t.schain),"object"),delete t.schain),Object(Rt.k)(t,"schain")?Object(Vt.c)("schain","y"):Object(Vt.c)("schain","n"),Object(Qt.b)(t.useSafeFrames,["undefined","boolean"])||(Object(Mt.c)("init.config.useSafeFrames",ee(t.useSafeFrames),"boolean"),delete t.useSafeFrames),t.useSafeFrames?Object(Vt.c)("useSafeFrames","y"):Object(Vt.c)("useSafeFrames","n"),Object(Qt.b)(t.signals,["undefined","object"])?delete t.signals:Object(Mt.c)("init.config.signals",ee(t.signals),"object")}catch(e){Object(Mt.b)(e,"_validateAndStoreConfig-validateConfig")}try{var e=At.a.getState().config;Object(Rt.k)(e,"pubID")&&Object(Rt.k)(t,"pubID")&&e.pubID!==t.pubID&&Object(Mt.b)(new Error("`apstag.init` was called multiple times with different pubIDs (".concat(e.pubID," then ").concat(t.pubID,")")),"_validateAndStoreConfig-diffPubId",{makeVisibleToAllUsers:!0}),At.a.dispatch({type:"SET_CONFIG",config:t,defaultCmpTimeout:At.a.getState().cfg.GDPR_CMP_TIMEOUT})}catch(e){Object(Mt.b)(e,"_validateAndStoreConfig",{makeVisibleToAllUsers:!0})}}function i(t,e,n){try{var r=t.slotID,o=!1;Object(Rt.k)(t.bidConfig,"amznbid")&&"o_"===t.bidConfig.amznbid.slice(0,2)&&(o=!0),Object(Rt.k)(t.bidConfig,"mediaType")&&"v"===t.bidConfig.mediaType&&!1===o||(!window.IntersectionObserver&&o?Object(Mt.b)({name:"IntersectionObserver",message:"IntersectionObserver not supported "},"_safeApplySlotTargeting"):e.hasAdServerObjectLoaded()?e.isCommandQueueDefined()?e.hasAdServerObjectLoaded()?null!==u(r,e)?f(t,e,n):Object(Mt.a)("".concat(r," isn't defined when trying to set amazon bid!")):e.cmdQueuePush((function(){i(t,e,n)})):Object(Mt.a)("displayAdServer Object's cmd queue hasn't been defined",!0):Object(Mt.a)("displayAdServer Object hasn't been defined",!0))}catch(t){Object(Mt.b)(t,"_safeApplySlotTargeting",{makeVisibleToAllUsers:!0})}}function u(t,e){var n=null;try{n=Object(xt.b)(e).filter((function(e){return e.slotID===t}))[0]||null}catch(e){Object(Mt.b)(e,"_getAdServerSlot")}return n}function o(t,e){try{var n=At.a.getState().targetingKeys[t.slotID];e.hasAdServerObjectLoaded()&&Object(Rt.i)(n)&&n.forEach((function(e){return 0<t.getTargeting(e).length&&t.clearTargeting(e)}))}catch(e){Object(Mt.b)(e,"_clearTargetingFromSlot",{makeVisibleToAllUsers:!0})}}function l(t){try{var e;Object(Rt.k)(At.a.getState().slotBids,t.slotID)&&(e=At.a.getState().slotBids[t.slotID].filter((function(t){return t.bidState===Lt.c.set}))[0])&&e.bidState===Lt.c.set&&At.a.dispatch({type:"BID_STATE_CHANGE",slotID:t.slotID,_targetingSetID:e._targetingSetID,bidState:Lt.c.exposed})}catch(t){Object(Mt.b)(t,"_clearBidSetOnSlot",{makeVisibleToAllUsers:!0})}}function H(t,e){try{return t.map((function(t){return Object(Rt.h)(e,t)})).filter((function(t){return t})).length===t.length}catch(t){Object(Mt.b)(t,"_hasAllItemsInArray")}}function d(t){var e={};try{Object.keys(At.a.getState().slotBids).forEach((function(n){var r=At.a.getState().slotBids[n].filter((function(e){return Object(Ht.f)(e,t)}));0<r.length&&(e[n]=r.map((function(t){var e=At.a.getState().AAXReqs.filter((function(e){return e.bidReqID===t.bidReqID})),n=0;return 0<e.length?n=e[0].rqTs:(e=At.a.getState().AAXReqs.map((function(t){return t.bidReqID})).join(", "),Object(Mt.b)({name:"BidError",message:"Request not found: ".concat(t.bidReqID," not found in ").concat(e)},"_getCurrentSlotBids-noRequest")),{rqTs:n,bid:t}})).reduce((function(t,e){return t.rqTs>e.rqTs?t:e})).bid)}))}catch(t){Object(Mt.b)(t,"_getCurrentSlotBids",{makeVisibleToAllUsers:!0})}return e}function G(t,e){try{return Object(Rt.i)(At.a.getState().targetingKeys[t])?e?["amzniid_sp"]:At.a.getState().targetingKeys[t].filter((function(t){return-1<t.indexOf("amzniid")&&t.indexOf("amzniid_sp")<0})):["amzniid"]}catch(t){return Object(Mt.b)(t,"_getAllBidIdKeys"),[]}}function Q(t,e){var n,r;try{var o=At.a.getState().slotBids;Object.keys(o).forEach((function(i){o[i].forEach((function(o){G(i,e).forEach((function(e){o.bidConfig[e]===t&&(n=o,"amzniid_sp"===e?r="sp":"amzniid"!==e&&(r=e.substr(0,e.indexOf("amzniid"))))}))}))}))}catch(t){Object(Mt.b)(t,"_findSlotBidByBidID",{makeVisibleToAllUsers:!0})}return{slotBid:n,dealId:r}}function X(t,e,n){var r="";try{e.bidConfig[n+"amzniid"]===t&&(r=n.split("_").pop().trim())}catch(t){Object(Mt.b)(t,"_getPMPBidSize")}return r}function J(t){try{var e;return void 0===t.slots?[]:(e={},t.slots.forEach((function(t){t.mediaType!==Gt.a.VIDEO&&"v"!==t.mediaType&&"v"!==t.mediaType_sp||(0<=t.slotID.indexOf("rsv-")&&(t={slotID:t.slotID.substring(4),r_amznbid:t.amznbid,r_amzniid:t.amzniid,r_amznp:t.amznp,mediaType:Gt.a.VIDEO,targeting:["r_amznbid","r_amzniid","r_amznp"],amznsz:t.amznsz,size:t.size,crid:t.crid,meta:t.meta}),!Object(Rt.k)(e,t.slotID))?e[t.slotID]=new Ht.a(t):t.targeting.forEach((function(n){e[t.slotID].bidConfig[n]=t[n],-1===e[t.slotID].bidConfig.targeting.indexOf(n)&&e[t.slotID].bidConfig.targeting.push(n)}))})),Object.keys(e).map((function(t){return e[t]})))}catch(t){return Object(Mt.b)(t,"_mergeVideoBids"),[]}}function $(t){var e=J(t),n=[];try{n=e.map((function(e){return e.bidReqID=t.cb,e.host=t.host,e.ev=t.ev,e.cfe=t.cfe,e}))}catch(e){Object(Mt.b)(e,"_convertAaxResponse")}return n}function f(t,e,n){try{var r,o,i=t.slotID,a=t._targetingSetID;t.bidState!==Lt.c.set&&null!==(r=u(i,e))&&(l(r),o=t.newBidObject,Object(Xt.a)(n),Object.keys(o.targeting).forEach((function(t){return r.setTargeting(t,o.targeting[t])})),At.a.dispatch({type:"BID_STATE_CHANGE",slotID:i,_targetingSetID:a,bidState:Lt.c.set,ts:Date.now()}))}catch(t){Object(Mt.b)(t,"_applyTargetingToAdServerSlot",{makeVisibleToAllUsers:!0})}}function K(t,e,n,r){try{var o=d(r);t.forEach((function(t){o[t]&&i(o[t],e,n)}))}catch(t){Object(Mt.b)(t,"_applySuppliedSlotBidsToAdServerObject",{makeVisibleToAllUsers:!0})}}function W(t,e,n){try{var r=d(n);Object.keys(r).forEach((function(n){return i(r[n],t,e)}))}catch(n){Object(Mt.b)(n,"_applyAllCurrentSlotBidsTargetingToAdServerObject",{makeVisibleToAllUsers:!0})}}function Y(t,e,n,r){try{n?(Object(Vt.c)("targeting","setDisplayBids-list"),K(n,t,e,r)):(Object(Vt.c)("targeting","setDisplayBids-all"),W(t,e,r)),At.a.getState().displayAdServer.slotRenderEndedSet||(t.cmdQueuePush((function(){try{t.slotRenderEndedEvent((function(e){try{o(e,t),l(e)}catch(e){Object(Mt.b)(e,"_applySlotTargeting-cmdQueue-slotCb",{makeVisibleToAllUsers:!0})}}))}catch(t){Object(Mt.b)(t,"_applySlotTargeting-cmdQueue",{makeVisibleToAllUsers:!0})}})),At.a.dispatch({type:"SLOT_RENDER_ENDED_SET"}))}catch(e){Object(Mt.b)(e,"_applySlotTargeting",{makeVisibleToAllUsers:!0})}}function b(t,e){function n(){if(!o)if(20<=i++)Object(Mt.b)({name:"LoopError",message:"Too many attempts to append to document.body"},"_safeDocumentBodyAppendChild-callback-loops",{makeVisibleToAllUsers:!0});else{try{if(t&&t.body&&null!==t.body&&"function"==typeof t.body.appendChild)return t.body.appendChild(e),r(),void(o=!0)}catch(t){Object(Mt.b)(t,"_safeDocumentBodyAppendChild-callback")}setTimeout(n,100)}}var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(){},o=!1,i=0;try{"complete"===t.readyState||"interactive"===t.readyState?(Object(Vt.c)("appended","sync"),n()):(Object(Vt.c)("appended","async"),t.addEventListener("DOMContentLoaded",n))}catch(t){Object(Mt.b)(t,"_safeDocumentBodyAppendChild")}}function Z(t){try{var e="".concat(t.host).concat(At.a.getState().cfg.DTB_PATH,"/imp"),n="".concat(t.host).concat(At.a.getState().cfg.DTB_PATH,"/adm");return t.cfe||t.isAmp||t.isSf?n:e}catch(t){return Object(Mt.b)(t,"determineCreativeFetchEndpoint"),""}}function E(t){try{var e="?b=".concat(t.bidID,"&rnd=").concat(Object(Rt.d)()),n=(Object(Rt.k)(t,"pp")&&(e+="&pp=".concat(t.pp)),Object(Rt.k)(t,"amznp")&&(e+="&p=".concat(t.amznp)),Object(Rt.k)(t,"crID")&&(e+="&crid=".concat(t.crID)),Object(Rt.k)(t,"isSharedPMP")&&!0===t.isSharedPMP&&(e+="&sp=true"),Object(Xt.e)()&&(e+="&ep=%7B%22ce%22%3A%221%22%7D"),Z(t));return(t.fif?"".concat(n,"j"):"".concat(n,"i")).concat(e)}catch(t){return Object(Mt.b)(t,"_creativeURL"),""}}function p(t){try{var e=t.doc.createElement("iframe");return e.frameBorder="0",e.marginHeight="0",e.marginWidth="0",e.style.marginTop="0",e.style.marginLeft="0",e.scrolling="no",t.inheritSize?(e.style.width="100%",e.style.height="100%"):(e.style.width="".concat(t.sizes[0],"px"),e.style.height="".concat(t.sizes[1],"px")),e}catch(t){return Object(Mt.b)(t,"_baseIframe"),window.document.createElement("iframe")}}function tt(t){try{if(Object(Rt.k)(t,"bidType")){var e,n=t.kvMap;switch(t.bidType){case"sharedPMP":return{bidID:n.amzniid_sp[0],pp:n.amznbid_sp[0],sizes:n.amznsz_sp[0].split("x"),amznp:n.amznp_sp[0],inheritSize:t.inheritSize,isSharedPMP:t.isSharedPMP};case"preferredPMP":if(Object(Gt.c)(t)&&Object(Rt.k)(t,"amzndeal"))return e=t.amzndeal.split("_").pop().trim(),{bidID:n["".concat(t.amzndeal,"amzniid")][0],sizes:C(e)};break;case"openAuction":if(Object(Gt.c)(t))return{bidID:n.amzniid[0],pp:Object(Ct.c)(n.amznbid[0]),amznp:n.amznp[0],inheritSize:t.inheritSize,sizes:n.amznsz[0].split("x")};if(Object(Gt.d)(t))return{bidID:t.amzniid,pp:Object(Ct.c)(t.amznbid),amznp:t.amznp,sizes:t.amznsz.split("x")};break;default:Object(Mt.b)({name:"Invalid AMP Bid Type: ".concat(t.bidType),message:"No valid AMP bid type"},"getAmpAdData-invalidBidType")}}}catch(t){Object(Mt.b)(t,"getAmpAdData")}return{bidID:"ERROR",sizes:[]}}function D(t,e,n){try{var r,o=null;void 0!==e&&(Object(Rt.k)(e,"ampEnv")&&e.ampEnv||Object(Rt.k)(e,"sfEnv")&&e.sfEnv)&&(o=e,Object(Rt.k)(e,"bidType")&&"sharedPMP"===e.bidType?o.isSharedPMP=!0:o.isSharedPMP=!1,o.document=t,o.amznhost=o.kvMap.amznhost[0]),A(t)&&((o=t).bidType="openAuction",o.ampEnv=!0),null===o?Object(Mt.b)(new Error("Invalid AMP parameters"),"_renderAmpImpression-invalidParams",{makeVisibleToAllUsers:!0}):"ERROR"!==(r=tt(o)).bidID&&(r.doc=o.document,r.host=o.amznhost.replace("http://","https://"),r.adID="amznad".concat(Object(Rt.d)()),r.isAmp=o.ampEnv,r.isSf=Object(Bt.c)(window),At.a.getState().aaxViewabilityEnabled?x(r,r.doc,n):I(r))}catch(t){Object(Mt.b)(t,"_renderAmpImpression")}}function _(t){var e,n="unknown";function r(r){try{r&&(t.hasTimedOut=!0),r&&!t.hasRendered&&Object(Mt.b)({name:"RenderTimeout",message:"renderAd was called from timeout. fifFlowMethod: ".concat(n)},"__loadAdIntoFriendlyIframe-renderAd-timeout-isOutstream:".concat(t.isOutstream)),null===e.contentDocument?Object(Mt.b)({name:"NoDocument",message:"iframe.contentDocument was null inside renderAd. isFromTimeout: ".concat(r,". fifFlowMethod: ").concat(n)},"__loadAdIntoFriendlyIframe-renderAd-noDocument-isOutstream:".concat(t.isOutstream),{makeVisibleToAllUsers:!0}):t.hasRendered&&!t.hasTimedOut?Object(Mt.b)({name:"DupeRender",message:"Render was called twice"},"__loadAdIntoFriendlyIframe-renderAd-rerender-isOutstream:".concat(t.isOutstream),{makeVisibleToAllUsers:!0}):t.hasRendered||(t.hasRendered=!0,e.contentDocument.open(),e.contentDocument.write(t.html),e.contentDocument.close(),Object(Vt.c)("iframe","friendly_write_complete"))}catch(r){Object(Mt.b)(r,"__loadAdIntoFriendlyIframe-renderAd-isOutstream:".concat(t.isOutstream))}}function o(){var o=r.bind(null,!1);try{n=null!==e.contentDocument&&Object(Rt.h)(["complete","interactive"],e.contentDocument.readyState)?(o(),"doc-ready"):null!==e.contentDocument&&"uninitialized"!==e.contentDocument.readyState?(e.contentDocument.addEventListener("DOMContentLoaded",o),"dom-listener"):(e.addEventListener("load",o),"iframe-listener"),Object(Vt.c)("fifFlow",n),setTimeout(r,1e3,!0)}catch(o){Object(Mt.b)(o,"_loadAdIntoFriendlyIframe-setAttributes-isOutstream:".concat(t.isOutstream))}}try{if(Object(Vt.c)("iframe","friendly"),void 0===t.html)throw new Error("No HTML available for ad, most likely the creative has expired");if(t=ne({hasRendered:!1,hasTimedOut:!1},t),(e=p(t)).id="apstag-f-iframe-".concat(Object(Rt.d)()),t.isOutstream)try{var i=Object(Nt.d)(document,t);if(void 0===i)throw new Error("gpt video div element is undefined");i&&i.firstElementChild&&i.firstElementChild.style.setProperty("display","none","important");var a=Object(Nt.f)(t.sizes);Object(Nt.a)(a,i),Object(Nt.e)(a,e),o(),Object(Nt.g)(a,e,t.bidID)}catch(o){Object(Mt.b)(o,"_loadAdIntoFriendlyIframe-outstream",{makeVisibleToAllUsers:!0})}else b(t.doc,e,o)}catch(o){Object(Mt.b)(o,"_loadAdIntoFriendlyIframe",{makeVisibleToAllUsers:!0})}}function I(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{states:{csmLoaded:!1,iframeLoaded:!1,shouldRunViewability:!1}},n=2<arguments.length?arguments[2]:void 0;try{Object(Vt.c)("iframe","unfriendly");var r,o=p(t);o.id=t.adID,o.setAttribute("sandbox","allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation"),Object(zt.d)("fake_bids")?(r='<body style="background-color: #FF9900;">'.concat(50<parseInt(t.sizes[1],10)?"<h3>apstag Test Creative</h3>":"","<h4>amzniid - ").concat(t.bidID," | amznbid: ").concat(t.pp," | size: ").concat(t.sizes.join("x"),"</h4></body>"),o.src="javascript:'".concat(r,"'")):o.src=E(t),!(t.isAmp&&t.isSf&&Object(Bt.b)(window))&&(!t.isSf||t.isAmp||t.inheritSize)||Object(Bt.a)(t.sizes,window),b(t.doc,o),(e.iframe=o).onload=function(){e.states.iframeLoaded=!0,n&&n()}}catch(t){Object(Mt.b)(t,"_loadAdIntoUnfriendlyIframe",{makeVisibleToAllUsers:!0})}}function et(t,e){var n,r=t.states,o=t.doc,i=t.bidID;t=t.iframe;try{Object(Rt.a)(r)||(r.shouldRunViewability=!1,Object(Rt.k)(window,"amzncsm")?n=window.amzncsm:void 0!==o&&null!==o.defaultView&&Object(Rt.k)(o.defaultView,"amzncsm")&&(n=o.defaultView.amzncsm),void 0!==o&&void 0!==n&&Object(Rt.k)(n,"rmD")&&(n.host=Object(zt.c)("host",At.a.getState().hosts.DEFAULT_AAX_PIXEL_HOST),n.rmD(t,i,o.defaultView,o,ce({overrides:null==e?void 0:e.initConfig}).pubID)))}catch(t){Object(Mt.b)(t,"_triggerViewability")}}function nt(t,e,n,r){return function(o){try{var i=Object(Ht.e)(e.slots,r),a=Object.keys(i),c=[],s=(o&&(At.a.dispatch({type:"RECORD_AAX_REQ_PROP",bidReqID:e.bidReqID,key:"timedOutAt",value:Date.now()}),At.a.getState().experiments.chunkRequests)&&At.a.dispatch({type:"RECORD_TIMEOUT",fid:e.bidReqID,timeOut:Date.now()}),a.forEach((function(t){Object(Rt.k)(i,t)&&(t=i[t],Object(Ht.g)(ce({overrides:null==r?void 0:r.initConfig}),n)||Object(Rt.k)(t.bidConfig,"amznbid")?Object(Rt.k)(t.bidConfig,"amznp")||(t.bidConfig.amznp=""):(Object(Vt.c)("unusedDeal",t.mediaType),t.mediaType!==Gt.a.VIDEO&&(t.bidConfig.targeting.unshift("amznsz"),t.bidConfig.amznsz="0x0"),t.bidConfig.targeting.unshift("amzniid","amznbid","amznp"),t.bidConfig.amzniid="",t.bidConfig.amznbid=Lt.u.noBid,t.bidConfig.amznp=Lt.u.noBid),c.push(t))})),n.isSupported&&(c=Object(Ht.c)(c,e,o)),{fromTimeout:o}),u=Object(Ht.g)(ce({overrides:null==r?void 0:r.initConfig}),n);try{t(c.map((function(t){return u?t.newBidObject:t.bidObject})),s)}catch(a){console.error(a)}}catch(a){Object(Mt.b)(a,"_bidCallbackHandler",{makeVisibleToAllUsers:!0});try{t([],{fromTimeout:o,fromError:!0})}catch(a){console.error(a)}}}}function rt(t,e){try{var n,r;e.inheritSize?Object(Vt.c)("creativeSize","inherited"):(r=t.defaultView&&t.defaultView.frameElement?(n=t.defaultView.frameElement,"defaultView"):(n=window.frameElement,"frameElement"),Object(Vt.c)("resizeIframe",r),Object(Vt.c)("creativeSize","resized"),null!==n?(n.style.width="".concat(e.sizes[0],"px"),n.style.height="".concat(e.sizes[1],"px")):Object(Mt.b)({name:"FrameNotFound",message:"'win' is 'null'. Method used: ".concat(r)},"_resizeIframe-win"))}catch(t){Object(Mt.b)(t,"_resizeIframe")}}function e(t){try{return"".concat(t[0],"x").concat(t[1])}catch(t){return Object(Mt.b)(t,"_sizeArrayToSring"),"x"}}function y(t){try{return 1===t.length?e(t[0]):e(t[Math.floor(t.length*Math.random())])}catch(t){return Object(Mt.b)(t,"_pickRandomSizeForMockBid",{makeVisibleToAllUsers:!0}),""}}function ot(t){try{var e,n=Object(zt.c)("host",At.a.getState().hosts.DEFAULT_AAX_BID_HOST),r=Object(Ct.g)(window),o=t.bidReqID,i=Object(Rt.g)(window),a=Object(zt.c)("testBidTimeout",200);At.a.dispatch({type:"RECORD_AAX_REQUEST",data:{bidConfig:t,timeout:a,bidReqID:o,ws:i,url:r,rqTs:Date.now()}}),e=t.slots.map((function(t){var e=y(t.sizes),n=(e="testDeal".concat(Object(Rt.d)(),"_").concat(e),"testDealIi-".concat(Object(Rt.d)())),r=y(t.sizes);re(r={slotID:t.slotID,crid:"".concat(Lt.o.crid,"-").concat(Object(Rt.d)()),size:r,amzniid:"".concat(Lt.o.amzniid,"-").concat(Object(Rt.d)()),amznbid:Lt.o.amznbid,amznp:Lt.o.amznp,amznsz:r,amzniid_sp:"".concat(Lt.o.amzniid,"-").concat(Object(Rt.d)()),amznbid_sp:"".concat(Lt.o.amznbid,"SP"),amznp_sp:"".concat(Lt.o.amznp,"SP"),amznsz_sp:y(t.sizes),amzndeals:[e]},"".concat(e,"amzniid"),n),re(r,"mediaType","d"),re(r,"meta",["slotID","mediaType","size"]),re(r,"targeting",["amzniid","amznbid","amznp","amznsz","amzniid_sp","amznbid_sp","amznp_sp","amznsz_sp","amzndeal_sp","amzndeals","".concat(e,"amzniid")]),n=r;return t.mediaType===Gt.a.VIDEO&&(n.mediaType=Gt.a.VIDEO,n.amznbid="v_".concat(n.amznbid)),n})),setTimeout((function(){window.apstag.bids({slots:e,host:n,status:"ok",cb:o})}),a)}catch(t){Object(Mt.b)(t,"_doMockBid",{makeVisibleToAllUsers:!0})}}function it(t,e,n){try{var r,o,i,a=At.a.getState().AAXReqs.filter((function(e){return e.bidReqID===t.cb}))[0];a&&a.bidConfig&&a.bidConfig.slots&&(r=a.bidConfig.slots.filter(Object(xt.d)(Gt.a.DISPLAY,Gt.a.MULTI_FORMAT)).map((function(t){return t.slotID})),o=Object(Rt.k)(t,"slots")?t.slots.map((function(t){return t.slotID})):[],i=r.filter((function(t){return!Object(Rt.h)(o,t)})),At.a.dispatch({type:"NO_BID_ON_ADSERVER_SLOTS",slotIDs:i}),e.hasAdServerObjectLoaded()?O(e,n):e.isCommandQueueDefined()&&e.cmdQueuePush((function(){O(e,n)})))}catch(e){Object(Mt.b)(e,"_determineNoBidStateForAdServerObject")}}function at(t){return Object(Rt.h)(At.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(xt.c),t)}function m(t){try{var e=t.getTargeting("amznbid");return 0<e.length&&2<e[0].length}catch(t){return Object(Mt.b)(t,"_isRealAmznbidTargetingSetOnSlot"),1}}function O(t,e){try{t.hasAdServerObjectLoaded()&&"1"===t.getTargeting("amznbid")[0]&&j(t),Object(xt.b)(t).forEach((function(t){!Object(Rt.h)(At.a.getState().displayAdServer.noBidSlotIDs,t.slotID)||at(t.slotID)||m(t)||"2"===t.getTargeting("amznbid")[0]||(v("noBid",t),Object(Xt.a)(e))}))}catch(t){Object(Mt.b)(t,"_applyNoBidFromAAXState")}}function v(t,e){Lt.v.forEach((function(n){return e.setTargeting(n,Lt.u[t])}))}function j(t){Lt.v.forEach((function(e){return t.clearTargeting(e)}))}function ct(t){try{var e={_type:"dupePixel",dd:Date.now()-t.timing.renderTime};Object(Vt.a)(t.bidConfig.amzniid,e)}catch(t){Object(Mt.b)(t,"_sendDupeBidPixel")}}!function(){var t;Object(Yt.b)()&&(t=Yt.a.getDefault().localStorage.getItem(Lt.d,{ignoreFailure:!0}))&&null!==(t=JSON.parse(t))&&At.a.dispatch({type:"SET_CFG",cfg:t})}(),Object(Xt.d)();var st=0;function S(){try{Object(Rt.k)(window,"googletag")&&Object(Rt.k)(window.googletag,"cmd")?(new ue.a).cmdQueuePush((function(){try{window.googletag.pubads().addEventListener("slotRequested",(function(t){try{var e=t.slot;At.a.dispatch({type:"LOG_GAM_EVENT",event:ne(ne({},new Kt.a(e).slotConfig),{},{ts:Date.now(),targeting:e.getTargetingMap()})})}catch(t){Object(Mt.b)(t,"_initializeSlotRequestedEventListener-cmdQueue-listener")}}))}catch(t){Object(Mt.b)(t,"_initializeSlotRequestedEventListener-cmdQueue")}})):++st<5&&setTimeout(S,100)}catch(t){Object(Mt.b)(t,"_initializeSlotRequestedEventListener")}}function w(t){try{var e=t.AAXReqs.slice(t.gamSlotRenderPixel.aaxReqOffset).reduce((function(t,e){return t.concat(e.bidConfig.slots)}),[]).map((function(t){return ne(ne({},t),{},{type:"a"})})).filter((function(t){return t.mediaType!==Gt.a.VIDEO})),n=t.gamSlotFetchLog.slice(t.gamSlotRenderPixel.gamSlotFetchLogOffset).map((function(t){return ne(ne({},t),{},{type:"g"})})),r=[].concat(te(e),te(n)).reduce((function(t,e){return void 0===t[e.slotID]&&(t[e.slotID]={sd:e.slotID,a:{c:0},g:{c:0}}),t[e.slotID][e.type].c++,t[e.slotID][e.type].s=e.sizes,t[e.slotID][e.type].sn=e.slotName||"",t}),{});return Object.keys(r).map((function(t){return r[t]})).filter((function(t){return 0!==t.a.c||0!==t.g.c}))}catch(t){return Object(Mt.b)(t,"getSlotFetchCounts"),[]}}function ut(){try{var t=At.a.getState(),e=w(t);0<Object.keys(e).length&&(Object(Rt.c)(e,5).forEach((function(e){e={slots:e,pid:Ht.b,url:Object(Ct.g)(window).split("?")[0],ws:Object(Rt.g)(window),pubid:t.config.pubID,_type:"slotRenders"},Object(Vt.b)(e)})),At.a.dispatch({type:"UPDATE_RENDER_OFFSETS",offsets:{aaxReqOffset:t.AAXReqs.length,gamSlotFetchLogOffset:t.gamSlotFetchLog.length}}))}catch(e){Object(Mt.b)(e,"sendDisplayAdServerRenderPixel")}}function lt(){setInterval((function(){ut()}),5e3)}function T(t,e){try{setTimeout((function(){try{var n=k(t).filter((function(t){return!Object(Rt.k)(At.a.getState().bsPixels,t.iid)||t.state!==At.a.getState().bsPixels[t.iid]})),r=(n&&n.length&&0<n.length&&(n.forEach((function(t){return Object(Vt.a)(t.iid,ft(t,e))})),dt(n)),{fetchStart:"a",domainLookupStart:"b",domainLookupEnd:"c",connectStart:"d",secureConnectionStart:"e",connectEnd:"f",requestStart:"g",responseStart:"h",responseEnd:"i"});Object.keys(At.a.getState().slotBids).forEach((function(t){At.a.getState().slotBids[t].forEach((function(e){var n,o,i;Object(Rt.k)(e.bidConfig,"amzniid")&&!e.pixelSent&&"object"===ee(n=At.a.getState().AAXReqs.filter((function(t){return t.bidReqID===e.bidReqID}))[0])&&null!==n&&(o=n.rqTs-Object(Ut.d)(),i={pid:Ht.b,ns:n.bidConfig.validSlots.length,fid:e.bidReqID,fbrq:n.rqTs,_type:"latencyBd"},"object"===ee(n.perf)&&null!==n.perf&&Object.keys(r).forEach((function(t){Object(Rt.k)(n,"perf")&&0!==Object(Ut.a)(n.perf,t)&&(i[r[t]]=Object(Ut.a)(n.perf,t)-o)})),i.j=n.resTs-n.rqTs,Object(Vt.a)(e.bidConfig.amzniid,i),At.a.dispatch({type:"UPDATE_BID_INFO_PROP",slotID:t,iid:e.bidConfig.amzniid,key:"pixelSent",value:!0}))}))})),T(t,e)}catch(n){Object(Mt.b)(n,"_sendBidsSetOnDFPPixel-timeout")}}),5e3)}catch(t){Object(Mt.b)(t,"_sendBidsSetOnDFPPixel")}}function dt(t){t.forEach((function(t){return At.a.dispatch({type:"RECORD_BID_INFO_SENT",bidInfo:t})}))}function ft(t,e){try{var n=bt(t.fid),r={status:t.state,pubid:ce({overrides:null==e?void 0:e.initConfig}).pubID,_type:"bidSetPixel",toa:Object(Rt.k)(n.req,"timedOutAt")?n.req.timedOutAt:0,fbrq:n.req.rqTs,pto:n.req.timeout,ns:n.req.bidConfig.validSlots.length,bla:n.req.resTs-n.req.rqTs,reqindex:n.index,fid:t.fid,tbs:0,c:"dtb"},o=(At.a.getState().cfg.CHUNK_BID_REQUESTS_PROPORTION&&(r.eid=At.a.getState().experiments.chunkRequests?2:1,r.fbindex=n.fbIndex,r.fbns=At.a.getState().bidConfigs[parseInt(t.fid.split("-")[0],10)].slots.length),At.a.getState().experiments),i=(Object(Rt.k)(o,"shouldUseTestBidEndpoint")&&(r.tbs=o.shouldUseTestBidEndpoint?2:1),t.delta&&(r.delay=t.delta),n.req.perf);return void 0!==i&&(r.ul=n.req.urlLength,r.es=Object(Ut.a)(i,"encodedBodySize")),0<Object.keys(At.a.getState().identityState).length&&(r.ids=JSON.stringify(At.a.getState().identityState)),0<At.a.getState().tcfParseTime&&(r.tpt=At.a.getState().tcfParseTime),r}catch(t){return Object(Mt.b)(t,"_mapBidInfoToPixel"),{_type:"bidSetPixel",status:-1,pubid:"",toa:0,fbrq:0,pto:0,ns:0,bla:0,reqindex:0,fid:"",tbs:0,c:"dtb"}}}function bt(t){var e=At.a.getState().AAXReqs.filter((function(e){return e.bidReqID===t}))[0],n=At.a.getState().AAXReqs.indexOf(e)+1;return(e={req:e,index:n,fbIndex:n}).index=At.a.getState().AAXReqs.indexOf(e.req)+1,At.a.getState().experiments.chunkRequests&&(e.fbIndex=At.a.getState().AAXReqs.filter((function(t){return-1===t.bidReqID.indexOf("-")||"0"===t.bidReqID.split("-")[1]})).map((function(t){return t.bidReqID.split("-")[0]})).indexOf(t.split("-")[0])+1),e}function k(t){try{var e=mt(t),n=[];return null!==e&&Object.keys(At.a.getState().slotBids).forEach((function(t){At.a.getState().slotBids[t][0].bidConfig.mediaType!==Gt.a.VIDEO&&At.a.getState().slotBids[t].filter((function(t){return Object(Rt.k)(t.bidConfig,"amzniid")})).forEach((function(r){var o,i,a;null!==e&&(o={state:-1,slotID:t,iid:r.bidConfig.amzniid,fid:r.bidReqID},a=[],i=[],t in e&&(a=e[t].fetchedAt.filter((function(t){return t.AAXReqInfo&&t.AAXReqInfo.bidReqID===r.bidReqID})),i=e[t].targetedAt.filter((function(t){return t.targeting===r.bidConfig.amzniid}))),0<a.length?0<a.length&&i.length>=a.length&&a.slice(a.length-1)[0].ts>i.slice(a.length-1)[0].ts?1===e[t].fetchWithIID.filter((function(t){return t===r.bidConfig.amzniid})).length?o.state=1:o.state=4:Object(Rt.h)(e[t].fetchWithIID,r.bidConfig.amzniid)?o.state=3:o.state=2:o.state=0,1!==o.state&&2!==o.state||(a=P(i=At.a.getState().AAXReqs.filter((function(t){return t.bidReqID===r.bidReqID}))[0].resTs,e[t].fetchedAt,2===o.state))&&Object(Rt.k)(a,"ts")&&(o.delta=i-a.ts),n.push(o))}))})),n}catch(t){return Object(Mt.b)(t,"_getBidSetInfo"),[]}}function P(t,e,n){var r=e.map((function(e){return e=t-e.ts,!n&&e<=0?-e:n&&0<=e?e:null}));return e[pt(r)]}function pt(t){for(var e=-1,n=-1,r=0;r<t.length;r++)null!==t[r]&&(-1===n||t[r]<e)&&(e=t[n=r]);return n}function yt(t,e){return At.a.getState().AAXReqs.filter((function(t){return Object(Rt.h)(t.bidConfig.slots.map((function(t){return t.slotID})),e)}))[t]}function mt(t){try{var e;return t.hasAdServerObjectLoaded()?(e=At.a.getState().gamSlotFetchLog.reduce((function(t,e){Object(Rt.k)(t,e.slotID)||(t[e.slotID]={fetchedAt:[],targetedAt:[]});var n=t[e.slotID];return n.fetchedAt.push({ts:e.ts,AAXReqInfo:yt(n.fetchedAt.length,e.slotID)}),Object(Rt.k)(e.targeting,"amzniid")&&0<e.targeting.amzniid.length?n.targetedAt.push({ts:e.ts-1,targeting:e.targeting.amzniid[0]}):n.targetedAt.push({ts:e.ts-1,targeting:""}),t}),{}),Object.keys(e).forEach((function(t){var n;Object(Rt.k)(e,t)&&((n=e[t]).fetchWithIID=n.fetchedAt.map((function(t){return(t=P(t.ts,n.targetedAt,!0))?t.targeting:0})),e[t]=n)})),e):null}catch(t){return Object(Mt.b)(t,"_getDFPSlotFetches"),null}}function gt(t){try{t.hasAdServerObjectLoaded()?v("noRequest",t):t.isCommandQueueDefined()&&t.cmdQueuePush((function(){v("noRequest",t)}))}catch(t){Object(Mt.b)(t,"_applyNoRequestToAAXState")}}function ht(t,e){try{At.a.dispatch({type:"REQUESTED_BID_FOR_ADSERVER_SLOTS",slotIDs:t}),e.isCommandQueueDefined()&&e.cmdQueuePush((function(){try{var n=Object(xt.b)(e);"0"===e.getTargeting("amznbid")[0]&&j(e),H(t.filter((function(t){return void 0!==t})),n.map((function(t){return t.slotID})))?n.forEach((function(e){Object(Rt.h)(t,e.slotID)&&!m(e)&&v("bidInFlight",e)})):e.cmdQueuePush((function(){try{v("bidInFlight",e)}catch(t){Object(Mt.b)(t,"_setRequestToAAXInFlightState-cmdQueue-cmdQueue")}}))}catch(n){Object(Mt.b)(n,"_setRequestToAAXInFlightState-cmdQueue")}}))}catch(t){Object(Mt.b)(t,"_setRequestToAAXInFlightState")}}function A(t){try{return Object(Rt.k)(t,"type")&&!(t instanceof Document)&&"amp"===t.type}catch(t){return Object(Mt.b)(t,"_isLegacyAmpCreative"),!1}}function Ot(t,e){try{return void 0!==e&&Object(Rt.k)(e,"ampEnv")&&e.ampEnv||A(t)}catch(t){Object(Mt.b)(t,"_isAmpImpression")}}function C(t){return t.split("x")}function vt(t,e,n,r){var o=ie();t=(o=(Object(Wt.a)(o).safelyRecord("_legacy/_renderImp/willExecute"),ae(o,"renderImp",{doc:t,bidID:e,kvBidObject:n},"renderImpArgs"))).doc,e=o.bidID,n=o.kvBidObject;try{Object(Vt.c)("renderImp","start"),Object(Vt.g)()}catch(t){Object(Mt.b)(t,"_renderImp-pixels")}try{var i=void 0===n?"0.0.0":n.cv;if(Ot(t,n)&&Object(Ct.k)(window,!0))A(t)?Object(Vt.c)("renderFootprint","amp"):Object(Vt.c)("renderFootprint","multi-amp-".concat(i)),D(t,n,r);else if(Object(Bt.c)(window)&&void 0!==n&&Object(Rt.k)(n,"kvMap")&&Object(Rt.k)(n.kvMap,"amznhost"))Object(Vt.c)("renderFootprint","multi-sf-".concat(i)),D(t,n,r);else{var a=!1,c=("string"==typeof e&&0===e.indexOf("sp|")&&(e=e.substring(3),a=!0),e||t.amzniid),s=Q(c,a),u=s.slotBid,l=s.dealId,d=!1;if(void 0!==n&&Object(Rt.k)(n,"bidType")&&"outstream"===n.bidType&&(d=!0),u){var f,b,p,y,m,g,h,O,v,j,S,w,T=l&&1<=l.length?C("sp"===l?u.bidConfig.amznsz_sp:X(c,u,l)):C(u.bidConfig.amznsz);1===arguments.length?(Object(Vt.c)("renderFootprint","JSONp"),_({doc:u.doc,bidID:u.bidConfig.amzniid,sizes:T,html:t.html,inheritSize:u.inheritSize||!1,isOutstream:d})):(Object(Vt.c)("bidRenderState",u.bidState),f=a?"sharedpmp":"open",void 0!==n?Object(Vt.c)("renderFootprint","multi-".concat(f,"-").concat(i)):Object(Vt.c)("renderFootprint","standard-".concat(f,"-").concat(i)),u.bidState===Lt.c.rendered&&ct(u),At.a.dispatch({type:"BID_STATE_CHANGE",slotID:u.slotID,_targetingSetID:u._targetingSetID,bidState:Lt.c.rendered,ts:Date.now()}),b=u.host,p=u.bidConfig.slotID,y="amznad".concat(Math.round(1e6*Math.random())),m={bidID:c,doc:t,slotID:p,pp:R("amznbid",u,l),host:b,adID:y,sizes:T,amznp:R("amznp",u,l),crID:R("crid",u,l),fif:!1,dealId:l,isSharedPMP:a,cfe:u.cfe,isOutstream:d,inheritSize:Object(Rt.j)(n)&&Object(Rt.k)(n,"inheritSize")&&!0===n.inheritSize},"1"===u.bidConfig.fif&&!1===d&&!1===a?(m.fif=!0,At.a.dispatch({type:"UPDATE_BID_INFO_PROP",slotID:u.slotID,iid:e,key:"doc",value:t}),At.a.dispatch({type:"UPDATE_BID_INFO_PROP",slotID:u.slotID,iid:e,key:"inheritSize",value:m.inheritSize}),Object(Ft.b)(E(m),(function(){}),document,(function(){return Object(Mt.b)(new Error("Error Loading JSONP Render Callback"),"renderImp-fif-callback-load",{makeVisibleToAllUsers:!0})}))):d?(At.a.dispatch({type:"OUTSTREAM_SHOULD_SAMPLE",shouldSample:Object(Rt.l)(10)}),At.a.getState().outstream.shouldSample&&(Object(Vt.e)("renderImp",m.bidID),At.a.dispatch({type:"RECORD_OUTSTREAM_RENDER_START_TIME",time:Date.now()})),v=Object(Nt.c)(m,Lt.b),S=1<=(null==(j=null==(g=At.a.getState().bidConfigs[u.bidReqID])||null==(h=g.slots)?void 0:h.filter((function(t){return(null==t?void 0:t.slotID)===(null==m?void 0:m.slotID)})))?void 0:j.length)?null==(O=j[0])?void 0:O.companions:[],w=Object(Nt.b)(v,Lt.B,m,S),m.html=w,_(m)):At.a.getState().aaxViewabilityEnabled?x(m,t,r):I(m),d||rt(t,m),Object(Vt.c)("renderImp","complete"))}else try{Object(Mt.b)(new Error("Invalid bid ID. '".concat("(bidID value: "+e+", bID value: "+c+")","' tried to render into document ").concat(t instanceof Document?t.documentURI:"with type "+ee(t))),"_renderImp-invalidId",{makeVisibleToAllUsers:!0})}catch(t){Object(Mt.b)(t,"_renderImp-invalidId")}}}catch(t){Object(Mt.b)(t,"_renderImp",{makeVisibleToAllUsers:!0})}}function R(t,e,n){try{var r,o="";return void 0!==n&&1<=n.length?(r="".concat(t,"_sp"),"sp"===n&&Object(Rt.k)(e.bidConfig,r)&&(o=e.bidConfig[r])):Object(Rt.k)(e.bidConfig,t)&&(o=e.bidConfig[t]),o}catch(t){return Object(Mt.b)(t,"_getProperBidInfoValue"),""}}function x(t,e,n){try{var r=e.createElement("script"),o=(r.type="text/javascript",r.async=!0,{doc:e,bidID:t.bidID,states:{csmLoaded:!1,iframeLoaded:!1,shouldRunViewability:!0}}),i=et.bind(null,o,n);Object(Ft.a)(r,(function(){o.states.csmLoaded=!0,i()}));try{r.addEventListener("error",(function(t){return Object(Vt.b)({_type:"csm_fail",ts:Date.now(),msg:t.message})}))}catch(t){Object(Mt.b)(t,"_loadViewabilityAd-csm")}I(t,o,i),r.src=At.a.getState().cfg.CSM_JS,b(e,r)}catch(t){Object(Mt.b)(t,"_loadViewabilityAd")}}function z(t){var e=ie();try{t=ae(e,"bids",t,"aaxResp"),Object(Wt.a)(e).safelyRecord("_legacy/bidRequest/didComplete",{pairedEvents:["_legacy/bidRequest/monitor"],eventIdentifier:t.cb,statusUpdate:"completed"}),Object(Wt.a)(e).safelyRecord("_legacy/_bids/willExecute"),null!=(n=t.slots)&&n.some((function(t){return t.amzniid}))&&Object(Wt.a)(e).safelyRecord("_legacy/validBid/didExist")}catch(t){}var n=oe;try{N(t,n,e),Object(Rt.k)(t,"slots")&&(At.a.dispatch({type:"UPDATE_SLOT_BIDS",bids:$(t)}),Object(Rt.k)(t,"ev")&&At.a.dispatch({type:"SET_VIEWABILITY",viewability:t.ev}),Object(Rt.k)(t,"cfn"))&&At.a.dispatch({type:"SET_CFG",cfg:{CSM_JS:"//"===t.cfn.substring(0,2)?t.cfn:"//c.amazon-adsystem.com/".concat(t.cfn)}}),V(t)}catch(t){Object(Mt.b)(t,"_bids",{makeVisibleToAllUsers:!0})}}function jt(){return"number"==typeof At.a.getState().cfg.MAX_SLOTS_PER_REQUEST&&0<At.a.getState().cfg.MAX_SLOTS_PER_REQUEST}function St(t,e,n){var r,o=null!=(r=null==n||null==(r=n.initConfig)?void 0:r.pubID)?r:At.a.getState().config.pubID;t=ae(o,"fetchBids",t,"bidConfig");try{Object(Wt.a)(o).safelyRecord("_legacy/fetchBids/willExecute"),Object(Wt.a)(o).safelyRecord("consent/tcfapi/attemptSync"),Object(Wt.a)(o).safelyRecord("consent/gppapi/attemptSync"),a.attemptConsentDataSync();var i=Object(Xt.b)(o);Object(se.a)(At.a.getState().config.gdpr,(function(r){wt(t,e,r,i,{initConfig:null==n?void 0:n.initConfig,contextURL:null==n?void 0:n.contextURL,accountID:o})}),o)}catch(r){Object(Mt.b)(r,"_getConfigsAndFetchBids",{makeVisibleToAllUsers:!0})}}function wt(t,e,n,r,o){var i=o.accountID,a=(Object(Wt.a)(i).safelyRecord("deviceSignal/cookieDeprecationLabel/set"),null!=o&&o.adServer?Object(qt.a)(o.adServer):oe);Object(Wt.a)(i).safelyRecord("sessionMarker/marker/sync");try{Object(Qt.b)(e,["function","undefined"])||Object(Mt.c)("fetchBids.callback",ee(e),"function"),"function"!=typeof e&&(e=function(){}),Object(Rt.j)(t)||(Object(Mt.c)("fetchBids.bidConfig",ee(t),"object"),t={}),Object(Qt.a)(t.timeout)||("string"==typeof t.timeout?Object(Mt.b)({name:"string-".concat(t.timeout),message:"fetchBids.bidConfig.timeout was a non-numeric string '".concat(t.timeout,"'")},"TypeError-fetchBids.bidConfig.timeout",{makeVisibleToAllUsers:!0}):Object(Mt.c)("fetchBids.bidConfig.timeout",ee(t.timeout),"number")),Object(Rt.k)(t,"params")&&!Object(Rt.j)(t.params)?Object(Mt.c)("fetchBids.bidConfig.params",ee(t.params),"object"):Object(Rt.k)(t,"params")&&Object(Rt.j)(t.params)&&Object.keys(t.params).forEach((function(e){return!(void 0===t.params||"string"!=typeof t.params[e]&&"number"!=typeof t.params[e]&&(Object(Rt.i)(t.params[e])?!t.params[e].reduce((function(t,e){return t&&("string"==typeof e||"number"==typeof e)}),!0)&&(Object(Mt.b)({name:"non-string array item",message:"'fetchBids.bidConfig.params.".concat(e," contains a non-string item")},"TypeError-fetchBids.bidConfig.params.".concat(e),{makeVisibleToAllUsers:!0}),1):(Object(Mt.c)("fetchBids.bidConfig.params.".concat(e),ee(t.params[e]),"string' or 'array"),1)))})),Object(Rt.k)(t,"blockedBidders")&&!Object(Rt.i)(t.blockedBidders)?Object(Mt.c)("fetchBids.bidConfig.blockedBidders",ee(t.blockedBidders),"array"):Object(Rt.k)(t,"blockedBidders")&&Object(Rt.i)(t.blockedBidders)&&(t.blockedBidders.reduce((function(t,e){return t&&("string"==typeof e||"number"==typeof e)}),!0)||Object(Mt.b)({name:"non-string array item",message:"'fetchBids.bidConfig.blockedBidders contains a non-string item"},"TypeError-fetchBids.bidConfig.blockedBidders",{makeVisibleToAllUsers:!0})),Object(Rt.k)(t,"blockedBidders")?Object(Vt.c)("blockedBidders-fetchBids","y"):Object(Vt.c)("blockedBidders-fetchBids","n"),Object(Rt.k)(t,"slots")&&!Object(Rt.i)(t.slots)&&Object(Mt.c)("fetchBids.bidConfig.slots",ee(t.slots),"array")}catch(a){Object(Mt.b)(a,"_fetchBids-validation",{makeVisibleToAllUsers:!0})}var c=!1,s=((ce({overrides:null==o?void 0:o.initConfig}).simplerGPT||Object(Wt.a)(i).read("ad/googletagSlotAutoImport"))&&(c=!0),ne(ne({},t),{},{bidReqID:"".concat(At.a.getState().AAXReqs.length),slots:[],validSlots:[],networkReqs:[]})),u=!1;try{!0===c&&(!Object(Rt.k)(t,"slots")||Object(Rt.k)(t,"slots")&&Object(Rt.i)(t.slots)&&0<t.slots.length&&Object(Rt.k)(t.slots[0],"getSlotElementId"))?0===Object(xt.b)(a).length?(Object(Mt.b)(new Error("fetchBids was called in simplerGPT mode before any slots were defined in GPT"),"_fetchBids-simplerGpt-NoSlots",{makeVisibleToAllUsers:!0}),u=!0,s.slots=[]):(t.slots?(Object(Vt.c)("slots","gpt-provided"),s.slots=t.slots.map((function(t){return new Kt.a(t)}))):(Object(Vt.c)("slots","gpt-fetch"),s.slots=Object(xt.b)(a)),s.slots=s.slots.filter(xt.a),0===s.slots.length&&(Object(Mt.b)(new Error("No GPT slots provided to apstag.fetchBids() had valid sizes"),"_fetchBids-simplerGpt-NoValidSizes",{makeVisibleToAllUsers:!0}),u=!0)):Object(Rt.k)(t,"slots")&&Object(Rt.i)(t.slots)&&(c?Object(Vt.c)("slots","gpt-aps"):Object(Vt.c)("slots","aps"),s.slots=t.slots.map((function(t){switch(t.mediaType){case Gt.a.DISPLAY:return new $t.a(t);case Gt.a.VIDEO:return new de.a(t);case Gt.a.MULTI_FORMAT:return new fe.a(t);default:return new $t.a(t)}}))),s.validSlots=s.slots.filter((function(t){return t.isValid()})),s.validSlots.length>Lt.m&&(s.validSlots=s.validSlots.slice(s.validSlots.length-Lt.m),Object(Vt.c)("slots","".concat(Lt.m," max-allowed-slots-exceeded with ").concat(s.slots.length," slots defined")))}catch(a){Object(Mt.b)(a,"_fetchBids-getSlots",{makeVisibleToAllUsers:!0})}var l,d=Object(Ct.i)(s,At.a.getState());try{e=Object(Ct.b)(nt(e,s,a,o),d)}catch(a){Object(Mt.b)(a,"_fetchBids-wrapCallback",{makeVisibleToAllUsers:!0})}try{if(0===s.validSlots.length)return!1===u&&Object(Mt.b)(new Error("No valid slots provided to apstag.fetchBids"),"_fetchBids-noSlots",{makeVisibleToAllUsers:!0}),void setTimeout(e.bind(null,[]),10);try{var f=1===s.slots.length?"single":"multi",b=Date.now()-g<=Lt.q?"onload":"ondelay",p=At.a.getState().AAXReqs.reduce((function(t,e){return e.bidConfig.slots.forEach((function(e){Object(Rt.h)(t,e.slotID)||t.push(e.slotID)})),t}),[]);s.slots.map((function(t){return t.slotID})).map((function(t){return Object(Rt.h)(p,t)})).map((function(t){return t?"refresh":"initial"})).filter((function(t,e,n){return n.indexOf(t)===e})).forEach((function(t){return Object(Vt.c)("fetchBids","".concat(f,"-").concat(b,"-").concat(t))}))}catch(a){Object(Mt.b)(a,"_fetchBids-feature")}if(ht(s.slots.filter(Object(xt.d)(Gt.a.DISPLAY,Gt.a.MULTI_FORMAT)).map(xt.c),a),At.a.dispatch({type:"NEW_FETCH_BID_REQUEST",fid:s.bidReqID,pto:d}),At.a.dispatch({type:"RECORD_ORIGINAL_BID_CONFIG",bidConfig:s}),Object(Wt.a)(i).safelyRecord("_legacy/bidRequest/monitor",{eventIdentifier:s.bidReqID}),Object(Wt.a)(i).safelyRecord("_legacy/bids/willFetch"),Object(zt.d)("fake_bids"))ot(s);else if(Lt.k)if(At.a.dispatch({type:"SHOULD_CHUNK_REQUESTS",value:Object(Rt.l)(At.a.getState().cfg.CHUNK_BID_REQUESTS_PROPORTION)}),At.a.getState().experiments.chunkRequests&&jt()){for(var y=Tt(s),m=0;m<y.length;m++)y[m].bidReqID="".concat(s.bidReqID,"-").concat(m);At.a.dispatch({type:"ADD_CHUNKED_REQUESTS",fid:s.bidReqID,numChunks:y.length}),y.forEach((function(t){h(Object(Ht.d)(t,d,n,r,o),e,t.bidReqID,i)}))}else h(Object(Ht.d)(s,d,n,r,o),e,s.bidReqID,i);else Object(Ft.b)(Object(Ht.d)(s,d,n,r,o),e)}catch(a){Object(Mt.b)(a,"_fetchBids",{makeVisibleToAllUsers:!0})}try{null!=o&&null!=(l=o.initConfig)&&l.pubID&&Object(ye.c)(o.initConfig.pubID)}catch(a){}}function Tt(t){try{for(var e=Math.ceil(t.validSlots.length/At.a.getState().cfg.MAX_SLOTS_PER_REQUEST),n=new Array(e),r=0;r<e;r++){var o=r*At.a.getState().cfg.MAX_SLOTS_PER_REQUEST;n[r]={slots:t.validSlots.slice(o,o+At.a.getState().cfg.MAX_SLOTS_PER_REQUEST)}}return n.map((function(e){return ne(ne({},t),e)}))}catch(e){return Object(Mt.b)(e,"chunkConfig",{makeVisibleToAllUsers:!0}),[]}}function Et(t,e){var n=null!=(n=null==e||null==(n=e.initConfig)?void 0:n.pubID)?n:At.a.getState().config.pubID;try{t=ae(n,"setDisplayBids",t,"slotIDList")}catch(t){}var r=null!=e&&e.adServer?Object(qt.a)(e.adServer):oe;try{null!=e&&e.adServer||Object(Rt.k)(At.a.getState().config,"adServer")?r.isSupported?(Y(r,n,t,e),O(r,n)):Object(Mt.b)(new Error("apstag.setDisplayBids called with unsupported ad server: ".concat(At.a.getState().config.adServer)),"_setDisplayBids-invalidAdServer",{makeVisibleToAllUsers:!0}):Object(Mt.b)(new Error("apstag.setDisplayBids called without specifying ad server"),"_setDisplayBids-noAdServer",{makeVisibleToAllUsers:!0})}catch(t){Object(Mt.b)(t,"_setDisplayBids",{makeVisibleToAllUsers:!0})}}function Dt(t,e){var n;(null!=(n=t.gdpr)&&n.consent||null!=(n=t.gdpr)&&n.enabled)&&(n={tcString:null==(n=t.gdpr)?void 0:n.consent,gdprApplies:null==(n=t.gdpr)?void 0:n.enabled},a.writeConsentDataToStore(n)),a.attemptConsentDataSync(),q(t),"function"==typeof e&&e()}function _t(t,e){var n=t.pubID;t=ae(n,"init",t,"config");try{var r=oe=t.adServer?Object(qt.a)(t.adServer):oe;Dt(t),gt(r),Object(pe.b)(),Object(Xt.c)(n)}catch(t){Object(Mt.b)(t,"_init")}"function"==typeof e&&e()}function It(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"display",n=oe,r=At.a.getState();try{switch(e){case Gt.a.DISPLAY:return Object(Vt.c)("targeting","targetingKeys-display"),r.config.useSafeFrames?[].concat(te(Lt.i),["amznhost"]):Lt.i;case Gt.a.VIDEO:return Object(Vt.c)("targeting","targetingKeys-video"),r.config.useSafeFrames?[].concat(te(Lt.A),["amznhost"]):Lt.A;default:if(Object(Ht.g)(null==(t=At.a.getState())?void 0:t.config,n)){if(Object(Vt.c)("targeting","targetingKeys-newBid"),Object(Rt.i)(At.a.getState().targetingKeys[e]))return At.a.getState().targetingKeys[e]}else Object(Vt.c)("targeting","targetingKeys-invalid");return[]}}catch(t){return Object(Mt.b)(t,"_targetingKeys",{makeVisibleToAllUsers:!0}),[]}}function kt(){try{return At.a.getState().AAXReqs.reduce((function(t,e){return e.bidConfig.slots.reduce((function(t,e){return t[e.slotID]=e.slotName,t}),t)}),{})}catch(t){return Object(Mt.b)(t,"_getSlotIdToNameMapping",{makeVisibleToAllUsers:!0}),{}}}function Pt(){return Yt.a.getDefault().allowedToStoreAndAccessInformationOnDevice()}try{Object(Rt.k)(window,"apstag")&&Object(Rt.k)(window.apstag,"_Q")&&0<window.apstag._Q.length&&At.a.dispatch({type:"SET_Q",Q:window.apstag._Q})}catch(t){Object(Mt.b)(t,"apstag-storeQ",{makeVisibleToAllUsers:!0})}window.apstag=function(){var e={punt:z,init:_t,debug:zt.a,_getSlotIdToNameMapping:kt,targetingKeys:It,fetchBids:St,setDisplayBids:Et,renderImp:vt,bids:z,deleteId:Jt.a,updateId:Jt.e,renewId:Jt.d,dpa:Jt.a,upa:Jt.e,rpa:Jt.d,thirdPartyData:{},isGDPRRegion:!0,rr:le.a,re:Mt.b,_load3PLibraryConfig:Xt.c,_atsaaiod:Pt};return Object.keys(e).forEach((function(t){"function"==typeof e[t]&&(e[t]=Object(Zt.a)(t,e[t]),e[t]=Object(Mt.d)(e[t],t))})),r?Object(zt.b)(!0,t):n&&Object(zt.b)(!1,t),!0===Object(zt.c)("exposeApi")&&(e._api={_getBidSetInfo:k,_applyTargetingToGPTSlot:f,dispatch:At.a.dispatch,_clearTargetingFromGPTSlot:o,_clearBidSetOnSlot:l,_getCurrentSlotBids:d,_creativeURL:E,getSlotFetchCounts:w,buildBidUrl:Ht.d}),e}(),function(){try{var t,e=(At.a.dispatch({type:"SHOULD_SAMPLE_FEATURES",value:Object(Rt.l)(At.a.getState().cfg.FEATURE_SAMPLING_RATE)}),At.a.dispatch({type:"SET_HOST",hostName:"DEFAULT_AAX_BID_HOST",hostValue:"aax.amazon-adsystem.com"}),At.a.dispatch({type:"SHOULD_SAMPLE_LATENCY",value:Object(Rt.l)(At.a.getState().cfg.LATENCY_SAMPLING_RATE)}),null!==At.a.getState().cfg.TEST_BID_ENDPOINT&&(t=Object(Rt.l)(At.a.getState().cfg.TEST_PATH_FREQUENCY),At.a.dispatch({type:"SHOULD_USE_TEST_BID_ENDPOINT",value:t}),t)&&null!==At.a.getState().cfg.TEST_PATH_LATENCY_SAMPLE_RATE&&At.a.dispatch({type:"SHOULD_SAMPLE_LATENCY",value:Object(Rt.l)(At.a.getState().cfg.TEST_PATH_LATENCY_SAMPLE_RATE)}),At.a.dispatch({type:"SHOULD_SAMPLE_SLOT_RENDER",value:Object(Rt.l)(At.a.getState().cfg.SLOT_RENDER_SAMPLING_RATE)}),At.a.getState());(e.experiments.shouldSampleLatency||e.displayAdServer.shouldSampleRender)&&S(),e.displayAdServer.shouldSampleRender&<(),e.experiments.shouldSampleLatency&&T(oe)}catch(t){Object(Mt.b)(t,"apstag-sampleLatency")}try{F()}catch(t){Object(Mt.b)(t,"apstag-doLast")}if(!Object(Ct.k)(window,!0))try{var n=function(t){t&&"object"!==ee(t)||(t="Request Timeout or Error"),Object(Mt.b)({message:"csm-rtb-comm-js loading failed",name:t},"__csm-rtb-comm-js__")};Object(Ft.d)({url:At.a.getState().cfg.CSM_RTB_COMMUNICATOR_JS,onload:function t(e){e.readyState===XMLHttpRequest.DONE&&200===e.status?eval(e.responseText):n(JSON.stringify({status:e.statusText,response:e.responseXML}))},onerror:n,ontimeout:n})}catch(t){Object(Mt.b)(t,"__load-csm-rtb-comm-js__")}Object(zt.e)()}()}(),Object(Wt.a)("_system").safelyRecord("apstag/library/didLoad",{source:"bundle"}))}catch(t){Object(Mt.b)(t,"apstag")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return O})),n.d(e,"d",(function(){return v}));var r=n(1),o=n(3),i=n(0),a=n(2),c=n(6);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){var r,o;r=t,o=n[e=e],(e=function(t){return t=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==s(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===s(t)?t:String(t)}(e))in r?Object.defineProperty(r,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[e]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},f="__tcfapi";function b(t,e,n){if(p=Object(c.a)(n).read("consent/TCData"))e({enabled:p.gdprApplies?1:0,consent:p.tcString,log:{status:"tcfv2-success"},gdprApplies:p.gdprApplies});else{Object(c.a)(n).safelyRecord("_legacy/getGdprConfig_legacy/willExecute");var a,u=!1,b={log:{status:"no-status"}},p=50,y="global-func-error";e=Object(r.d)(e,"GdprCallback");try{if(!1===(t=Object(i.j)(t)?l({},t):{}).enabled||0===t.enabled?(b.log.status="explicit-no-gdpr",b.enabled=0):!0===t.enabled||1===t.enabled?(b.log.status=Object(i.k)(t,"consent")?"explicit-consent-passed":"explicit-no-consent-passed",b.enabled=1,b.consent=t.consent):Object(i.k)(t,"enabled")&&(b.log.status=Object(i.k)(t,"consent")?"malformed-with-consent":"malformed-without-consent",b.consent=t.consent,d(t.enabled)?b.enabled=t.enabled:b.enabled=1),Object(i.k)(t,"enabled")&&(b.log.enabled=t.enabled),Object(i.k)(t,"cmpTimeout")&&d(t.cmpTimeout)&&(p=t.cmpTimeout,b.log.cmpTimeout=p),void 0!==b.enabled)return Object(o.c)("gdpr","pub-api"),Object(i.k)(b,"consent")&&"string"!=typeof b.consent&&(delete b.consent,Object(r.b)(new Error("Invalid consent: must be string, given ".concat(s(b.consent))),"getGdprConfig-pub-consent-invalid",{makeVisibleToAllUsers:!0})),void m()}catch(t){Object(r.b)(t,"getGdprConfig-parseConfig",{makeVisibleToAllUsers:!0})}try{Object(i.k)(window,f)&&"function"==typeof window[f]?(a="tcfv2",Object(o.c)("gdpr",a),setTimeout((function(){b.log.status="".concat(a,"-timeout"),m()}),p),y="".concat(a,"-internal-error"),window[f]("getTCData",2,(function(t,e){try{e&&Object(i.j)(t)?(b.log.status="".concat(a,"-success"),Object(i.k)(t,"tcString")?b.consent=t.tcString:Object(i.k)(t,"consentData")&&(b.consent=t.consentData),b.enabled=t.gdprApplies?1:0,0===b.enabled&&delete b.consent,b.gdprApplies=t.gdprApplies,m()):(b.log.status="".concat(a,"-error"),m())}catch(t){b.log.status="func-error",m(),Object(r.b)(t,"cmpCallback-".concat(a),{makeVisibleToAllUsers:!0})}}))):(Object(o.c)("gdpr","no-cmp"),b.log.status="no-cmp",m())}catch(t){b.log.status=y,m(),Object(r.b)(t,"getGdprConfig-".concat(y),{makeVisibleToAllUsers:!0})}}function m(){u||(u=!0,b.consent&&Object(r.b)(new Error("Legacy getTCData logic was successful when addEventListener logic wasn't"),"LEGACY-TCFAPI-SUCCESS",{makeVisibleToAllUsers:!1,accountId:n}),e(l(l({},b),{},{log:l({},b.log)})))}}function p(t){for(var e=[],n=-1;0<=(n=t.indexOf("1",n+1));)e.push(n+1);return e}function y(t){for(var e=[],n=parseInt(g(t,12),2),r=0;r<n;r++){var o=parseInt(g(t,1),2),i=parseInt(g(t,16),2);if(e.push(i),o)for(var a=parseInt(g(t,16),2),c=i+1;c<=a;c++)e.push(c)}return e}function m(t){var e=parseInt(g(t,16),2);return parseInt(g(t,1),2)?y(t):p(g(t,e))}function g(t,e){var n=t.bits.substr(t.index,e);return t.index+=e,n}function h(t){try{var e,n,o;return!!t&&(!((e=function(t){try{for(var e=(t=(t=t.replace(/-/g,"+")).replace(/_/g,"/")).split(".")[0],n=window.atob(e),o="",i=0;i<n.length;i++)o+=("0000000"+n.charCodeAt(i).toString(2)).substr(-8);return o}catch(e){return Object(r.b)(new Error("TCF string conversion failed. (TCF string: ".concat(t,")")),"TCFToBinary",{makeVisibleToAllUsers:!0}),""}}(t)).length<230)&&(o={bits:e,index:0},(n={}).version=parseInt(g(o,6),2),2===n.version)&&(n.created=parseInt(g(o,36),2),n.lastUpdated=parseInt(g(o,36),2),n.cmpId=parseInt(g(o,12),2),n.cmpVersion=parseInt(g(o,12),2),n.consentScreen=parseInt(g(o,6),2),n.consentLanguage=String.fromCharCode(parseInt(g(o,6),2)+65)+String.fromCharCode(parseInt(g(o,6),2)+65),n.vendorListVersion=parseInt(g(o,12),2),n.tcfPolicyVersion=parseInt(g(o,6),2),n.isServiceSpecific="1"===g(o,1),n.useNonStandardStacks="1"===g(o,1),n.specialFeatureOptIns=p(g(o,12)),n.purposesConsent=p(g(o,24)),n.purposesLITransparency=p(g(o,24)),n.purposeOneTreatment="1"===g(o,1),n.publisherCC=String.fromCharCode(parseInt(g(o,6),2)+65)+String.fromCharCode(parseInt(g(o,6),2)+65),n.vendorConsents=m(o),n.vendorLegitimateInterests=m(o),n.publisherRestrictions=function(t){for(var e=parseInt(g(t,12),2),n=[],r=0;r<e;r++){var o=parseInt(g(t,6),2),i=parseInt(g(t,2),2);n.push({purposeId:o,restrictionType:i,vendorIds:y(t)})}return n}(o),n))}catch(t){return Object(r.b)(t,"parseTCFString",{makeVisibleToAllUsers:!0}),!1}}function O(t){var e=[];try{var n=Date.now(),r=(t||e.push("Invalid tcString: ".concat(t)),2!==t.version&&e.push("tcString version not supported: ".concat(t.version)),t.useNonStandardStacks&&e.push("tcString's useNonStandardStacks should not be true"),t.isServiceSpecific||e.push("tcString needs to be service specific"),t.publisherRestrictions?t.publisherRestrictions.filter((function(t){return 1===t.purposeId&&0<=t.vendorIds.indexOf(793)})):[]);if(0===r.length)j(t)||e.push("Invalid publisher restrictions");else switch(r[0].restrictionType){case 0:case 2:e.push("Invalid publisher restrictions");break;default:j(t)||e.push("Invalid publisher restrictions")}return a.a.dispatch({type:"RECORD_TCF_PARSE_TIME",time:Date.now()-n}),e}catch(t){if(e.length)return e;throw t}}function v(t,e){if(!t)return!!window.apstag&&!window.apstag.isGDPRRegion&&!0!==e;if(window.apstag&&!window.apstag.isGDPRRegion&&!1===e)return!0;if(2!==t.version)return!1;if(t.useNonStandardStacks)return!1;if(!t.isServiceSpecific)return!1;if(0===(e=t.publisherRestrictions.filter((function(t){return 1===t.purposeId&&0<=t.vendorIds.indexOf(793)}))).length)return j(t);switch(e[0].restrictionType){case 0:case 2:return!1;default:return j(t)}}function j(t){return!(!Object(i.k)(t,"vendorConsents")||!Object(i.k)(t,"purposesConsent"))&&0<=t.vendorConsents.indexOf(793)&&0<=t.purposesConsent.indexOf(1)}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function i(t,e,n){(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function a(t){return t=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==r(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===r(t)?t:String(t)}n.d(e,"a",(function(){return c}));var c=function(){function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");i(this,"isSupported",!1),i(this,"needNewBidObject",!1)}var e,n;return e=t,(n=[{key:"cmdQueuePush",value:function(t){}},{key:"slotRenderEndedEvent",value:function(t){}},{key:"setTargeting",value:function(t,e){}},{key:"getTargeting",value:function(t){return[]}},{key:"clearTargeting",value:function(t,e){}},{key:"hasAdServerObjectLoaded",value:function(){return!1}},{key:"isCommandQueueDefined",value:function(){return!1}},{key:"getSlots",value:function(){return[]}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(0),o=n(1),i=n(5),a=n(3);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function u(t,e,n){(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function l(t){return t=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==c(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===c(t)?t:String(t)}var d=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");u(this,"_slotConfig",void 0),u(this,"rawSlot",void 0),this._slotConfig=e,this.rawSlot=e}var e,n;return e=t,(n=[{key:"slotID",get:function(){return this._slotConfig.slotID}},{key:"slotName",get:function(){return this._slotConfig.slotName}},{key:"slotParams",get:function(){return this._slotConfig.slotParams}},{key:"companions",get:function(){return this._slotConfig.companions}},{key:"slotConfig",get:function(){return{slotID:this.slotID,slotName:this.slotName,sizes:this.sizes}}},{key:"mediaType",get:function(){return i.a.DISPLAY}},{key:"sizes",get:function(){return[]}},{key:"floor",get:function(){var t;return Object(r.k)(this._slotConfig,"floor")&&"USD"===this._slotConfig.floor.currency&&this.validateFloorValue(this._slotConfig.floor.value)?(t=this._slotConfig.floor,Object(a.c)("customFloor","y")):Object(a.c)("customFloor","n"),t}},{key:"aaxSlotParams",get:function(){var t=this;try{return Object(r.k)(this,"slotParams")&&Object(r.j)(this.slotParams)?Object.keys(this.slotParams).filter((function(e){return t.validateSlotParamValue(t.slotParams[e])})).reduce((function(e,n){return e[n]=t.slotParams[n],e}),{}):void 0}catch(t){return this.reportError(t,"aaxSlotParams"),this.slotParams}}},{key:"aaxSlot",get:function(){Object(a.c)("slotType",this.mediaType);var t={kv:this.aaxSlotParams};return this.floor&&(t.fc=this.floor.currency,t.fp=this.floor.value),t}},{key:"isValid",value:function(){var t,e,n=[],o=[];return void 0===this.slotID?n.push("'slotID' must be provided and a string"):"string"!=typeof this.slotID&&o.push("'slotID' must be a string"),Object(r.k)(this._slotConfig,"floor")&&Object(r.j)(this._slotConfig.floor)&&(t=(e=this._slotConfig.floor).currency,e=e.value,"USD"!==t&&o.push("'floor' currency only supports USD"),this.validateFloorValue(e)||o.push("'floor' value must be a positive integer")),Object(r.k)(this,"companions")&&(Object(r.i)(this.companions)?this.companions.forEach((function(t){"string"!=typeof t&&n.push("'companions' contains a non-string item : ".concat(t))})):n.push("'companions' contains non-array")),0<n.length?(this.reportIsValidMessages([].concat(n,o),!0),!1):(0<o.length&&this.reportIsValidMessages(o,!1),!0)}},{key:"reportError",value:function(t,e,n){Object(o.b)(t,"Slot-".concat(e),n)}},{key:"setTargeting",value:function(t,e){}},{key:"getTargeting",value:function(t){return[]}},{key:"clearTargeting",value:function(t){}},{key:"reportIsValidMessages",value:function(t,e){this.reportError({name:"SlotValidationError",message:this.buildIsValidMessage(t,this._slotConfig)},"validation-".concat(e?"error":"warn"),{makeVisibleToAllUsers:!0})}},{key:"validateSlotParamValue",value:function(t){var e=this;try{return Object(r.i)(t)?0<t.length&&t.reduce((function(t,n){return t&&e.validateSlotParamValue(n)}),!0):"string"==typeof t&&0<t.length}catch(t){return Object(o.b)(t,"validateSlotParamValue"),!1}}},{key:"validateFloorValue",value:function(t){return"number"==typeof t&&0<t&&t%1==0}},{key:"buildIsValidMessage",value:function(t,e){return"There was an issue with the configuration for this slot: ".concat(JSON.stringify(e),"\n")+t.map((function(t){return"- ".concat(t)})).join("\n")}}])&&s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),(n=r=r||{}).DISPLAY="d",n.VIDEO="v",n.MULTI_FORMAT="mf"},function(t,e,n){"use strict";n.d(e,"a",(function(){return j})),n.d(e,"c",(function(){return S})),n.d(e,"e",(function(){return w})),n.d(e,"d",(function(){return T})),n.d(e,"b",(function(){return E}));var s=n(10),u=n(1),l=n(34),d=n(4),f=n(2),b=n(7),r=n(0),p=n(3),y=n(17),o=n(35),m=n(24),i=n(6);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){(e=O(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function O(t){return"symbol"===a(t=v(t,"string"))?t:String(t)}function v(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!==a(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function j(t){Object(i.a)(t).record("cxm/contextual/set").catch((function(){}))}function S(r,o,i,e){var a=f.a.getState().experiments.shouldSampleLatency,c=Date.now(),t=Object(l.a)(window.location,window.top.location,o);if(null!==t){var n={url:t,withCredentials:!0,onload:function t(e){if(200===e.status)try{f.a.dispatch({type:"RECORD_LIBRARY_LOAD_CALL_LATENCY",latency:Date.now()-c}),a&&setTimeout(p.d,1e3);var n=JSON.parse(e.response);eval(n["3pvendor"]),Object(y.a)(f.a.getState().config.gdpr,(function(t){var e;t&&(e=Object(y.c)(t.consent),Object(b.b)())&&Object(y.d)(e,t.gdprApplies)&&b.a.getDefault().localStorage.setItem(d.e,"1")}),r),Object(m.b)(n,o)}catch(t){Object(u.b)(t,"load3PLibraryConfig-onload"),Object(m.a)(t,"load3PLibraryConfig-onload",o)}null!=i&&i()},onerror:function(t){t=new Error("".concat(t.type,": ").concat(t.loaded," bytes transferred")),Object(u.b)(t,"load3PLibraryConfig-onerror"),Object(m.a)(t,"load3PLibraryConfig-onerror",o),null!=e&&e(t)}};try{Object(s.d)(n)}catch(t){Object(u.b)(t,"load3PLibraryConfig"),Object(m.a)(t,"load3PLibraryConfig",o),null!=e&&e(t)}a&&setTimeout(p.d,1e3)}}function w(){return Object(r.k)(window,"creativeVendorLibraryLoaded")&&!0===window.creativeVendorLibraryLoaded||Object(r.k)(window,"confiant")}function T(){var t={renderTimes:{}};window.addEventListener("message",(function(e){Object(o.a)(t,e)}))}function E(t){var e={ids:{}};try{if("1"!==b.a.getDefault().localStorage.getItem(d.e))return e;Object(i.a)(t).record("cxm/ids/get").catch((function(){})),e.ids=g({},Object(i.a)(t).read("cxm/ids"));var n=Object(i.a)(t).read("cxm/metadata");n&&(e.md=n)}catch(t){Object(u.b)(t,"getIdentityConfig")}return e}},function(t,e,n){"use strict";n.d(e,"d",(function(){return b})),n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return y})),n.d(e,"g",(function(){return O})),n.d(e,"a",(function(){return T})),n.d(e,"e",(function(){return E})),n.d(e,"f",(function(){return A}));var r=n(1),o=n(0),i=n(3),a=n(2),c=n(4),s=n(5);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function d(t){return t=function(t,e){if("object"!==u(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==u(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===u(t)?t:String(t)}var f=function(){function t(){var e,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=this,o=t;if(!(r instanceof o))throw new TypeError("Cannot call a class as a function");r=this,o=void 0,(e=d(e="_rawProps"))in r?Object.defineProperty(r,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[e]=o,this._rawProps=n}var e,n;return e=t,(n=[{key:"source",get:function(){return"web"}},{key:"omsdkAccessMode",get:function(){return"limited"}},{key:"publisherType",get:function(){var t=a.a.getState().config;return t&&!0===t.isSelfServePub?s.b.SELF_SERVE_WEB:s.b.MANAGED_WEB}},{key:"publisherUUID",get:function(){var t=a.a.getState().config;if(t)return t.pubID}},{key:"integratorVersion",get:function(){return c.l}},{key:"bidId",get:function(){var t=this._rawProps.bidId;if("string"==typeof t)return t}},{key:"dealId",get:function(){var t=this._rawProps.dealId;if("string"==typeof t)return t}},{key:"hostName",get:function(){var t=this._rawProps.hostName;if("string"==typeof t)return t}},{key:"pricePoint",get:function(){var t=this._rawProps.pricePoint;if("string"==typeof t)return t}},{key:"targetingMap",get:function(){var t=this._rawProps.targetingMap;if("string"==typeof t)return t}},{key:"adServerType",get:function(){var t=a.a.getState().config;if(t)return t.adServer}},{key:"adServerAdUnitId",get:function(){var t=this._rawProps.adServerAdUnitId;if("string"==typeof t)return t}},{key:"apsAdUnitId",get:function(){var t=this._rawProps.apsAdUnitId;if("string"==typeof t)return t}},{key:"getProperties",value:function(){return JSON.stringify({source:this.source,omsdkAccessMode:this.omsdkAccessMode,publisherType:this.publisherType,publisherUUID:this.publisherUUID,integratorVersion:this.integratorVersion,bidId:this.bidId,hostName:this.hostName,dealId:this.dealId,pricePoint:this.pricePoint,targetingMap:this.targetingMap,adServerType:this.adServerType,adServerAdUnitId:this.adServerAdUnitId,apsAdUnitId:this.apsAdUnitId})}}])&&l(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function b(t,e){try{if(Object(o.k)(e,"slotID")){var n=e.slotID,i=t.getElementById(n);if(i instanceof HTMLDivElement)return i}}catch(t){Object(r.b)(t,"getVideoDivElement-outstream")}}function p(t,e){try{Object(o.k)(t,"bidID")&&(e+="b=".concat(t.bidID)),Object(o.k)(t,"pp")&&void 0===t.dealId&&(e+="&pp=".concat(t.pp)),e+="&rnd=".concat(Object(o.d)())}catch(t){Object(r.b)(t,"constructVastTag")}return e}function y(t,e,n,o){try{var i={bidId:null==n?void 0:n.bidID,hostName:null==n?void 0:n.host,dealId:null==n?void 0:n.dealId,pricePoint:null==n?void 0:n.pp,apsAdUnitId:null==n?void 0:n.slotID},a={key:"$$videoPlayerProps$$",value:new f(i).getProperties()},c={key:"$$apstagVastTag$$",value:t},s={key:"$$apstagCompanionContainers$$",value:JSON.stringify(o||[])},u=e;return[a,c,s,{key:"$$apsvidonerror$$",value:"try { window.parent.apstag.re(new Error('video player load error'), 'vsdk-load-fail'); } catch(e) {}"}].forEach((function(t){var e=t.key;t=t.value;return u=u.replace(e,t)})),u}catch(t){return Object(r.b)(t,"constructVastTag"),""}}var m={},g=function(t){return m[t]||(m[t]={started:!1,completed:!1,loaded:!1,isPaused:!1}),m[t]},h={root:null,rootMargin:"0px",threshold:.5};function O(t,e,n){try{var o;window.addEventListener("message",(function(t){v(t,n)})),window.IntersectionObserver?(o=new window.IntersectionObserver((function(r){r.forEach((function(r){.5<r.intersectionRatio&&e.contentWindow&&(j(e,t,n),o.disconnect())}))}),h)).observe(t):Object(r.b)({name:"IntersectionObserver",message:"IntersectionObserver not supported "},"startVideoAndHandlePlayback")}catch(t){Object(r.b)(t,"startVideoAndHandlePlayback")}}function v(t,e){if(t.origin===window.top.location.origin&&!0===t.data.apsVideoPlayer)switch(t.data.event){case"completed":g(e).completed=!0;break;case"loaded":var n;g(e).loaded=!0,a.a.getState().outstream.shouldSample&&(n=Date.now()-a.a.getState().outstream.renderStart,Object(i.e)("loaded",e,n))}}function j(t,e,n){try{null!==t.contentDocument&&Object(o.h)(["complete","interactive"],t.contentDocument.readyState)?w(t,e,n):null!==t.contentDocument&&"uninitialized"!==t.contentDocument.readyState?t.contentDocument.addEventListener("DOMContentLoaded",(function(){w(t,e,n)})):t.addEventListener("load",(function(){w(t,e,n)})),setTimeout(w,1e3,!0)}catch(t){Object(r.b)(t,"loadVideoAd")}}function S(t,e,n){try{var o;window.IntersectionObserver&&(o=new window.IntersectionObserver((function(e){e.forEach((function(e){g(n).completed&&o.disconnect(),e.intersectionRatio<.5&&!g(n).isPaused?t.contentWindow&&t.contentWindow.adsM&&(t.contentWindow.adsM.pause(),g(n).isPaused=!0):g(n).isPaused&&t.contentWindow&&t.contentWindow.adsM&&(t.contentWindow.adsM.play(),g(n).isPaused=!1)}))}),{threshold:.5})).observe(e)}catch(e){Object(r.b)(e,"handleAutoPauseAndPlay")}}function w(t,e,n){t.contentWindow&&!g(n).started&&(g(n).started=!0,function(t,e,n){var r=Number(new Date)+(e||2e3);return n=n||100,new Promise((function e(o,i){var a=t();a?o(a):Number(new Date)<r?setTimeout(e,n,o,i):i(new Error("apsVideoPlayer timed out"))}))}((function(){return g(n).loaded}),3e4,100).then((function(){t.contentWindow&&t.contentWindow.adsM&&(t.contentWindow.adsM.play(),S(t,e,n))})).catch((function(){S(t,e,n),Object(r.b)({name:"VideoPlayerTimeout",message:"video player took more than 30 seconds to load"},"startAd")})))}function T(t,e){try{e&&e.appendChild(t)}catch(t){Object(r.b)(t,"_appendDivElement")}}function E(t,e){try{t.appendChild(e)}catch(t){Object(r.b)(t,"_insertVideoIframeInsideDiv")}}function A(t){var e=document.createElement("div");return e.style.width="".concat(t[0],"px"),e.style.height="".concat(t[1],"px"),e.style.margin="0 auto",e.id="apsVideoDiv-".concat(Object(o.d)()),e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(1);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return t=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==o(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===o(t)?t:String(t)}var s="__tcfapi",u="isListenedTo",l="consentManagementPlatform",d=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");a(this,"store",void 0),a(this,"globalContext",void 0),this.store=e.stateContainer,this.globalContext=e.globalContext}var e,n,o;return e=t,o=[{key:"readStoredConsentData",value:function(t){return null==(t=t.getState()[l])?void 0:t.tcData}}],(n=[{key:"isListenerActive",get:function(){return this.isListenedTo}},{key:"isListenedTo",get:function(){var t;return(null==(t=this.store.getState()[l])?void 0:t[u])||!1},set:function(t){this.store.dispatch(a({type:"RECORD_CMP_LISTENED_TO"},u,t))}},{key:"writeConsentDataToStore",value:function(t){this.store.dispatch(a({type:"RECORD_CMP_CONSENT_DATA"},"tcData",t))}},{key:"onConsentDataChange",value:function(t,e,n){try{e?(this.isListenedTo=!0,t&&this.writeConsentDataToStore(t),null!=n&&n(!0)):null!=n&&n(!1)}catch(t){Object(r.b)(t,"attemptConsentDataSync-onConsentDataChange")}}},{key:"syncConsentData",value:function(t){var e=this;this.globalContext[s]?this.globalContext[s]("addEventListener",2,(function(n,r){return e.onConsentDataChange(n,r,t)})):null!=t&&t(!1)}},{key:"syncConsentDataIfNotSynced",value:function(t){this.isListenedTo?null!=t&&t(!0):this.syncConsentData(t)}},{key:"attemptConsentDataSync",value:function(t){try{this.syncConsentDataIfNotSynced(t)}catch(e){Object(r.b)(e,"attemptConsentDataSync"),null!=t&&t(!1)}}}])&&i(e.prototype,n),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return g}));var r=n(10),o=n(1),i=n(2),a=n(4),c=n(8),s=n(0),u=n(6),l=n(3),d=n(7);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function p(t){var e=Object(c.c)("bsHost",i.a.getState().hosts.DEFAULT_BS_HOST);e={url:"".concat(a.s).concat("prod",".").concat("us-east-1",".").concat(e).concat("/v1/recordVendorsLoaded"),body:JSON.stringify(t),headers:{"Content-Type":"application/json"},onload:function(){}};try{Object(r.d)(e)}catch(t){Object(o.b)(t,"load3PLibraryConfig-VendorLoadedEvent-SendError")}}function y(t,e,n){if(Object(s.l)(a.x))try{var r=i.a.getState().config;p([{publisherId:("600"===(null==n?void 0:n.sourceID)?null==n?void 0:n.publisherUUID:null==n?void 0:n.sourceID)||r.pubID,sourceId:(null==n?void 0:n.sourceID)||(r.isSelfServePub?a.t:r.pubID),failure:e,errorName:t.name,errorMessage:t.message}])}catch(t){Object(o.b)(t,"load3PLibraryConfig-VendorLoadedEventError-ConstructError")}}function m(t,e){var n;if(n=t,Object(s.l)("number"==typeof n["3psamplerate"]?n["3psamplerate"]:a.x))try{var r=JSON.parse(t[a.y]),c=(c="600"===(null==e?void 0:e.sourceID)?null==e?void 0:e.publisherUUID:null==e?void 0:e.sourceID)||i.a.getState().config.pubID;p(r.map((function(t){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){var r,o;r=t,o=n[e=e],(e=function(t){return t=function(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==f(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===f(t)?t:String(t)}(e))in r?Object.defineProperty(r,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[e]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({publisherId:c},t)})))}catch(t){Object(o.b)(t,"load3PLibraryConfig-VendorLoadedEvent-ConstructError")}}function g(t){t=(null==(t=Object(u.a)(t))?void 0:t.read("config/loaded"))||(null==t||null==(t=t.queue)?void 0:t.some((function(t){return"_config/config/didLoad"===t.type})));var e="1"===d.a.getDefault().localStorage.getItem(a.e);t=t&&e?"all":t&&!e?"config":!t&&e?"cxm":"none";Object(l.c)("configOrder","".concat(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(0),o=n(1),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function s(t,e,n){(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function u(t){return t=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==a(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===a(t)?t:String(t)}var l=function(){function t(e){var n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o=this,i=t;if(!(o instanceof i))throw new TypeError("Cannot call a class as a function");s(this,"validSizeStringRegex",/^[0-9]+x[0-9]+$/),s(this,"numberStringRegex",/^[0-9]+$/),s(this,"_sizes",void 0),s(this,"_permit1D",!0),s(this,"_allowUndefined",!1),this._sizes=e,this._permit1D=n,this._allowUndefined=r}var e,n;return e=t,(n=[{key:"isValid",value:function(){return!(void 0!==this._sizes||!this._allowUndefined)||0<this.sizes.length}},{key:"sizes",get:function(){var t=this;try{var e=[];if(Object(r.i)(this._sizes)){this._sizes=this._sizes.filter((function(t){return"fluid"!==t}));var n="2d",i=this._sizes;if(i&&0<i.length&&!Object(r.i)(i[0])&&("string"!=typeof i[0]||!this.validSizeStringRegex.test(i[0]))){if(!this._permit1D)throw new Error("Sizes must be 2d array");n="1d",i=[i]}e=i.filter((function(e){return t.isValidSize(n,e)})).map((function(t){return Object(r.i)(t)?t:t.split("x").map((function(t){return parseInt(t,10)}))}))}return e}catch(e){return Object(o.b)(e,"SizesDelegate-getSizes"),[]}}},{key:"aaxSizes",get:function(){if(void 0!==this._sizes||!this._allowUndefined)return this.sizes.filter(r.i).map((function(t){return t.join("x")}))}},{key:"isValidSize",value:function(t,e){var n=this,a=[];function c(t){t=JSON.stringify(t),-1===a.indexOf(t)&&(a.push(t),Object(o.b)({name:"SizesDelegate-isValidSize-invalid",message:"Invalid Slot Size: ".concat(JSON.stringify(e))},"SizesDelegate-isValidSize-invalid"))}try{return"string"==typeof e&&this.validSizeStringRegex.test(e)?(Object(i.c)("AaxSlotSizes","".concat(t,"-compiled")),!0):Object(r.i)(e)&&1!==e.length?(2<e.length&&c(e),e.slice(0,2).reduce((function(e,r){return e&&("number"==typeof r||"string"==typeof r)&&!("string"==typeof r&&!n.numberStringRegex.test(r)||("string"==typeof r?Object(i.c)("AaxSlotSizes","".concat(t,"-string")):Object(i.c)("AaxSlotSizes","".concat(t,"-number")),0))}),!0)):(c(e),!1)}catch(c){return Object(o.b)(c,"isValidSize"),!0}}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));e=n(19);var r=n(0),o=n(1),i=n(5);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function l(){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r)return(r=Object.getOwnPropertyDescriptor(r,e)).get?r.get.call(arguments.length<3?t:n):r.value}).apply(this,arguments)}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);n=e?(n=p(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments),r=this;if(n&&("object"===a(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return b(r)}}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e,n){(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function m(t){return t=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==a(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===a(t)?t:String(t)}var g=function(t){var e=a;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t);var n=f(a);function a(t){var e;if(this instanceof a)return y(b(e=n.call(this,{slotID:t.getSlotElementId(),slotName:t.getAdUnitPath()})),"rawSlot",void 0),e.rawSlot=t,e;throw new TypeError("Cannot call a class as a function")}return e=a,(t=[{key:"mediaType",get:function(){return i.a.DISPLAY}},{key:"sizes",get:function(){try{var t=Object(r.g)(window).split("x").map((function(t){return Number(t)})),e=this.rawSlot.getSizes(t[0],t[1]);return null===e?[]:e.filter((function(t){return"fluid"!==t})).map((function(t){return[t.getWidth(),t.getHeight()]}))}catch(t){return this.reportError(t,"sizes"),[]}}},{key:"aaxSlot",get:function(){var t=s(s({},l(p(a.prototype),"aaxSlot",this)),{},{sd:this.slotID,s:this.sizes.filter(r.i).map((function(t){return t.join("x")}))});return this.slotID!==this.slotName&&(t.sn=this.slotName),t}},{key:"isValid",value:function(){return!(!l(p(a.prototype),"isValid",this).call(this)||0===this.sizes.length&&(this.reportIsValidMessages(["'sizes' must have at least 1 valid item"],!0),1))}},{key:"reportError",value:function(t,e,n){Object(o.b)(t,"GptSlot-".concat(e),n)}},{key:"setTargeting",value:function(t,e){try{this.rawSlot.setTargeting(t,e)}catch(t){this.reportError(t,"setTargeting")}}},{key:"getTargeting",value:function(t){try{return this.rawSlot.getTargeting(t)}catch(t){return this.reportError(t,"getTargeting"),[]}}},{key:"clearTargeting",value:function(t){try{this.rawSlot.clearTargeting(t)}catch(t){this.reportError(t,"clearTargeting")}}}])&&u(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}(e.a)},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c}));var r=n(1),o=n(0);function i(t){try{return!(!Object(o.k)(t,"$sf")||!Object(o.k)(t.$sf,"ext"))}catch(t){return Object(r.b)(t,"isSafeFrame"),!1}}function a(t,e){try{var n,o,i,a=e.innerWidth,c=e.innerHeight,s=parseInt(t[0],10),u=parseInt(t[1],10),l=s-a,d=u-c,f=e.sfAPI||(null==(n=e.$sf)?void 0:n.ext);!f||a===s&&c===u||(null!=(o=f.register)&&o.call(f,s,u),null!=(i=f.expand)&&i.call(f,{r:l,b:d,push:!0}))}catch(t){Object(r.b)(t,"expandSf")}}function c(t){try{return 1===t.innerWidth&&1===t.innerHeight}catch(t){return Object(r.b)(t,"is1x1Creative"),!1}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return j})),n.d(e,"b",(function(){return S}));var r=n(1),o=n(10),i=n(0),a=n(6),c=n(4),s=n(9),u=n(8),l=n(2);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o=(m="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",i=m.asyncIterator||"@@asyncIterator",a=m.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(e){c=function(t,e,n){return t[e]=n}}function s(t,e,n,o){var i,a,c,s;e=e&&e.prototype instanceof b?e:b,e=Object.create(e.prototype),o=new w(o||[]);return r(e,"_invoke",{value:(i=t,a=n,c=o,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return{value:void 0,done:!0}}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n&&(n=function t(e,n){var r=n.method,o=e.iterator[r];return void 0===o?(n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),l):"throw"===(r=u(o,e.iterator,n.arg)).type?(n.method="throw",n.arg=r.arg,n.delegate=null,l):(o=r.arg)?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,l):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,l)}(n,c))){if(n===l)continue;return n}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);if(s="executing","normal"===(n=u(i,a,c)).type){if(s=c.done?"completed":"suspendedYield",n.arg===l)continue;return{value:n.arg,done:c.done}}"throw"===n.type&&(s="completed",c.method="throw",c.arg=n.arg)}})}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l={};function b(){}function p(){}function y(){}var m,g,h=((g=(g=(c(m={},o,(function(){return this})),Object.getPrototypeOf))&&g(g(T([]))))&&g!==e&&n.call(g,o)&&(m=g),y.prototype=b.prototype=Object.create(m));function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function v(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e((function(o,a){!function r(o,i,a,c){var s;if("throw"!==(o=u(t[o],t,i)).type)return(i=(s=o.arg).value)&&"object"==d(i)&&n.call(i,"__await")?e.resolve(i.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(i).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}));c(o.arg)}(r,i,o,a)}))}return o=o?o.then(a,a):a()}})}function j(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(t){if(t){var e,r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(r=function r(){for(;++e<t.length;)if(n.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r}).next=r}return{next:E}}function E(){return{value:void 0,done:!0}}return r(h,"constructor",{value:p.prototype=y,configurable:!0}),r(y,"constructor",{value:p,configurable:!0}),p.displayName=c(y,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){return!!(t="function"==typeof t&&t.constructor)&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,a,"GeneratorFunction")),t.prototype=Object.create(h),t},t.awrap=function(t){return{__await:t}},O(v.prototype),c(v.prototype,i,(function(){return this})),t.AsyncIterator=v,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new v(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(h),c(h,a,"Generator"),c(h,o,(function(){return this})),c(h,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,n=Object(t),r=[];for(e in n)r.push(e);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=T,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(n=o.completion).type&&(r=n.arg,S(o)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}function b(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function p(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,v(r.key),r)}}function h(t,e,n){e&&g(t.prototype,e),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1})}function O(t,e,n){(e=v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function v(t){return t=function(t,e){if("object"!==d(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==d(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===d(t)?t:String(t)}function j(t){try{var e=function(t){try{var e=Object(a.a)(t).read("ad/context");return Object(i.j)(e)?{ortb2:e}:{}}catch(t){return Object(r.b)(t,"getSignals"),{}}}(t);return 0===Object.keys(e).length?"":Object(o.c)(e)}catch(t){return Object(r.b)(t,"getSignalsParams"),""}}function S(){I.get().log(E,"init");var t=window.apscustom||[];if(window.apscustom={push:D,loaded:!0},Array.isArray(t))for(;t.length;)D(t.shift())}var w=Object(u.c)("ASR_ENDPOINT_HOST","c.aps.amazon-adsystem.com"),T=Object(u.c)("ASR_ENDPOINT_IS","86355855cc6ed9e335d0382c8563aa10"),E=(e=function(){function t(){m(this,t),O(this,"ignoreKeys",["apsCustomSlotname","apsCustomProgram"]),O(this,"programKey","apscustom"),O(this,"dataParamPrefix","apsCustom")}return h(t,[{key:"init",value:function(t){var e,n,r,o=this;t&&t.id&&(n=document.getElementById(t.id))&&(t._element=n,e=Object.assign({},n.dataset),n.setAttribute("data-aps-custom-status","read"),n={program:e.apsCustomProgram||this.programKey,is:T},Object.keys(e).filter((function(t){return t.indexOf(o.dataParamPrefix)<=-1||o.ignoreKeys.includes(t)})).forEach((function(t){return delete e[t]})),r={slotID:t.id,slotName:e.apsCustomSlotname||t.id,sizes:[[999,999]]},this.fetchBidsAndRender(r,t,y(y({},n),e)))}},{key:"fetchBidsAndRender",value:function(t,e,n){var r=this;(t=(I.get().log(E,"fetchBids/start"),{slots:[t],params:n})).timeout=null!=(n=e.timeout)?n:6e4,t._endpointDomain=w,window.apstag.fetchBids(t,(function(t){I.get().log(E,"fetchBids/end"),r.renderBids(t,e)}))}},{key:"renderBids",value:function(t,e){t.forEach((function(t){new _(e,t).render()}))}}]),t}(),"customPlacements"),A=new e;function D(t){I.get().log(E,"implementation/legacyPush",.01),t=Object.assign({},t),A.init(t)}var _=function(){function t(e,n){var r=this;m(this,t),O(this,"slotProps",void 0),O(this,"rawResponse",void 0),O(this,"getPageStyles",(function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:["p","h1","h2"]).map(r.getTagStyle).filter((function(t){return 0<Object.keys(t).length})).reduce((function(t,e){return y(y({},t),e)}),{})})),O(this,"getContainerStyles",(function(t){try{var e,n,r;return t?(e=window.getComputedStyle(t),n="--aps-custom-container-",(r=new Map).set("".concat(n,"width"),e.width),r.set("".concat(n,"margin"),e.margin),r.set("".concat(n,"padding"),e.padding),Object.fromEntries(r.entries())):{}}catch(t){return{}}})),this.slotProps=e,this.rawResponse=n}return h(t,[{key:"getTagStyle",value:function(t){var e,n,r=document.getElementsByTagName(t);return r&&r[0]?(r=window.getComputedStyle(document.getElementsByTagName(t)[0]),(e=new Map).set("".concat(n="--aps-custom-page-").concat(t,"-color"),r.color),e.set("".concat(n).concat(t,"-fontFamily"),r.fontFamily),e.set("".concat(n).concat(t,"-fontSize"),r.fontSize),e.set("".concat(n).concat(t,"-fontWeight"),r.fontWeight),e.set("".concat(n).concat(t,"-lineHeight"),r.lineHeight),Object.fromEntries(e)):{}}},{key:"getDynamicFrameBodyHeight",value:function(t,e,n){if(e){I.get().log(E,"render/".concat(n,"/").concat(this.slotProps.id,"/loaded"));var r=(null==e?void 0:e.contentDocument)||(null==e||null==(o=e.contentWindow)?void 0:o.document),o=null==r?void 0:r.body.scrollHeight;e.style.height="".concat(o,"px");try{var i=y(y({},this.getPageStyles()),this.getContainerStyles(t));Object.keys(i).forEach((function(t){null!=r&&r.documentElement.style.setProperty(t,i[t])})),I.get().trackEvent(E,"renderComplete",{asrEndpoint:w,height:o,source:n})}catch(t){}}}},{key:"render",value:function(){return this._renderInIframe()}},{key:"_renderInIframe",value:function(){var t=this;if(!this.rawResponse||!this.slotProps)return!1;try{var e,n,o=this.rawResponse.size.split("x"),i=(null==(e=this.rawResponse.targeting)?void 0:e.amzniid)||this.rawResponse.amzniid,a=(null==(n=this.rawResponse.targeting)?void 0:n.amznadm)||this.rawResponse.amznadm;if(!i)return!1;I.get().log(E,"render/".concat(this.slotProps.id,"/start"));var c,s,u,l,d=this.slotProps._element;return this.slotProps.location&&this.slotProps.id&&(s=document.createElement("div"),null!=(c=document.getElementById(this.slotProps.id))&&c.insertAdjacentElement(this.slotProps.location,s),d=s),!!d&&((u=document.createElement("iframe")).style.marginLeft="0",u.style.marginTop="0",u.style.height="".concat(o[1],"px"),u.style.width="100%",u.setAttribute("scrolling","no"),u.setAttribute("frameborder","0"),u.onload=function(){return t.getDynamicFrameBodyHeight(d,u,a?"amznadm":"admi")},l='\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset="UTF-8">\n <style>html{height:100%}body{height:100%;margin:0;overflow:hidden}</style>\n </head>\n <body>\n <script>\n window.parent.apstag.renderImp(document, "'.concat(i,'", {"inheritSize": true});\n <\/script>\n </body>\n </html>'),u.srcdoc=a||l,d.appendChild(u),this.updateSlotAttribute("status","rendered"),!0)}catch(t){return Object(r.b)(new Error("Error while rendering"),"CustomPlacements"),!1}}},{key:"updateSlotAttribute",value:function(t,e){var n;null!=(n=this.slotProps._element)&&n.setAttribute("data-aps-custom-".concat(t),e)}}]),t}(),I=function(){function t(){var e=this,n=(m(this,t),O(this,"TAHOE_PROD","04a6c6a40ec6c493437745b4ff085efb826e05c276ad857733462915bc4c35e0"),O(this,"TAHOE_PROD_URL","https://prod.tahoe-analytics.publishers.advertising.a2z.com/logevent/postEquinoxEvent"),O(this,"level",Object(u.c)("APS_ANALYTICS_LEVEL","TAHOE")),O(this,"config",void 0),O(this,"timings",void 0),O(this,"log",void 0),O(this,"setLevel",(function(t){e.level=t})),O(this,"trackEvent",function(){n=f().mark((function n(r,o){var i,a,u=arguments;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=2<u.length&&void 0!==u[2]?u[2]:{},a=3<u.length&&void 0!==u[3]?u[3]:t.getDefaultSamplingRate(),n.abrupt("return",new Promise((function(t){try{var n,u;Math.random()>a?t(!1):(n=y({url:decodeURIComponent(Object(s.g)(window)),libraryVersion:c.l,timings:e.timings},e.getBrowserInfo()),u=JSON.stringify({eventSource:"apstag",eventCategory:r,eventName:o,eventTime:String(Date.now()),eventProperties:y(y(y({},e.config),n),i)}),"DEBUG"===e.level&&console.info("<analytics> ",JSON.parse(u)),"TAHOE"===e.level&&fetch(e.TAHOE_PROD_URL,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":e.TAHOE_PROD},body:JSON.stringify({Data:window.btoa(u),PartitionKey:String(Date.now())})}),t(!0))}catch(n){t(!1)}})));case 3:case"end":return n.stop()}}),n)}));var n,r=function(){var t=this,e=arguments;return new Promise((function(r,o){var i=n.apply(t,e);function a(t){b(i,r,o,a,c,"next",t)}function c(t){b(i,r,o,a,c,"throw",t)}a(void 0)}))};return function(t,e){return r.apply(this,arguments)}}()),l.a.getState());this.config=n.config,this.timings=[],this.log=function(t,n,r){try{e.timings.push({time:performance.now(),key:"".concat(t,"/").concat(n)}),r&&e.trackEvent(t,n,{},r)}catch(t){}}}return h(t,[{key:"getBrowserInfo",value:function(){try{var t,e=navigator.connection;return{connection:{effectiveType:null==e?void 0:e.effectiveType,rtt:null==e?void 0:e.rtt,downlink:null==e?void 0:e.downlink},screen:Object(i.g)(window),userAgent:null==(t=navigator)?void 0:t.userAgent}}catch(t){return{}}}}],[{key:"get",value:function(){return null===this._analytics&&(this._analytics=new t),this._analytics}}]),t}();O(I,"_analytics",null),O(I,"getDefaultSamplingRate",(function(){var t=Object(u.c)("APS_ANALYTICS_RATE",.1);try{return Number(t)}catch(t){return.1}}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(0),o=(e=n(18),n(1)),i=n(26);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);n=e?(n=d(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments),r=this;if(n&&("object"===a(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return l(r)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t){return t=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==a(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===a(t)?t:String(t)}var b=function(t){var e=a;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t);var n=u(a);function a(){var t=this,e=a;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");for(var r,o,i=arguments.length,c=new Array(i),s=0;s<i;s++)c[s]=arguments[s];return e=l(t=n.call.apply(n,[this].concat(c))),o=!0,(r=f(r="isSupported"))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,t}return e=a,(t=[{key:"reportError",value:function(t,e){Object(o.b)(t,"GoogletagAdServer-".concat(e))}},{key:"cmdQueuePush",value:function(t){try{window.googletag.cmd.push(t)}catch(t){this.reportError(t,"cmdQueuePush")}}},{key:"slotRenderEndedEvent",value:function(t){try{window.googletag.pubads().addEventListener("slotRenderEnded",(function(e){e=new i.a(e.slot),t(e)}))}catch(t){this.reportError(t,"slotRenderEndedEvent")}}},{key:"setTargeting",value:function(t,e){try{window.googletag.pubads().setTargeting(t,e)}catch(t){this.reportError(t,"setTargeting")}}},{key:"getTargeting",value:function(t){try{return window.googletag.pubads().getTargeting(t)||[]}catch(t){return this.reportError(t,"getTargeting"),[]}}},{key:"clearTargeting",value:function(t){try{window.googletag.pubads().clearTargeting(t)}catch(t){this.reportError(t,"clearTargeting")}}},{key:"hasAdServerObjectLoaded",value:function(){try{return Object(r.k)(window,"googletag")&&Object(r.k)(window.googletag,"apiReady")&&!0===window.googletag.apiReady}catch(t){return this.reportError(t,"hasAdServerObjectLoaded"),!1}}},{key:"isCommandQueueDefined",value:function(){try{return Object(r.k)(window,"googletag")&&Object(r.k)(window.googletag,"cmd")}catch(t){return this.reportError(t,"isCommandQueueDefined"),!1}}},{key:"getSlots",value:function(){try{return window.googletag.pubads().getSlots().map((function(t){return new i.a(t)}))}catch(t){return this.reportError(t,"getSlots"),[]}}}])&&c(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}(e.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return L}));var r=n(18),o=n(0),i=n(1),a=(e=n(19),n(5));function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,g(r.key),r)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(r)return(r=Object.getOwnPropertyDescriptor(r,e)).get?r.get.call(arguments.length<3?t:n):r.value}).apply(this,arguments)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);n=e?(n=y(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments),r=this;if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return p(r)}}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e,n){(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function g(t){return t=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==c(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===c(t)?t:String(t)}var h=function(t){var e=r;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t);var n=b(r);function r(t){var e;if(this instanceof r)return e={slotID:t.targetId,slotName:Object(o.k)(t,"invCode")?t.invCode:Object(o.k)(t,"tagId")?t.tagId:t.targetId},m(p(e=n.call(this,e)),"rawSlot",void 0),e.rawSlot=t,e;throw new TypeError("Cannot call a class as a function")}return e=r,(t=[{key:"mediaType",get:function(){return a.a.DISPLAY}},{key:"sizes",get:function(){try{return this.rawSlot.sizes}catch(t){return this.reportError(t,"sizes"),[]}}},{key:"aaxSlot",get:function(){try{var t=u(u({},d(y(r.prototype),"aaxSlot",this)),{},{sd:this.slotID,s:this.sizes.filter(o.i).map((function(t){return t.join("x")}))});return this.slotID!==this.slotName&&(t.sn=this.slotName),t}catch(t){return{sd:"",s:[],kv:{}}}}},{key:"reportError",value:function(t,e,n){Object(i.b)(t,"ApnSlot-".concat(e),n)}},{key:"isValid",value:function(){return!(!d(y(r.prototype),"isValid",this).call(this)||0===this.sizes.length&&(this.reportIsValidMessages(["'sizes' must have at least 1 valid item"],!0),1))}},{key:"initKeywords",value:function(){try{Object(o.k)(this.rawSlot,"keywords")||(this.rawSlot.keywords={})}catch(t){this.reportError(t,"initKeywords")}}},{key:"setTargeting",value:function(t,e){try{this.initKeywords(),this.rawSlot.keywords[t]=e}catch(t){this.reportError(t,"setTargeting")}}},{key:"getTargeting",value:function(t){try{return this.initKeywords(),Object(o.k)(this.rawSlot.keywords,t)?[this.rawSlot.keywords[t]]:[]}catch(t){return this.reportError(t,"getTargeting"),[]}}},{key:"clearTargeting",value:function(t){try{this.initKeywords(),delete this.rawSlot.keywords[t]}catch(t){this.reportError(t,"clearTargeting")}}}])&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),r}(e.a);function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,T(r.key),r)}}function j(t,e){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function T(t){return t=function(t,e){if("object"!==O(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==O(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===O(t)?t:String(t)}var E=function(t){var e=r;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t);var n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=w(t);n=e?(n=w(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments),r=this;if(n&&("object"===O(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return S(r)}}(r);function r(){var t=this,e=r;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");for(var o,i,a=arguments.length,c=new Array(a),s=0;s<a;s++)c[s]=arguments[s];return e=S(t=n.call.apply(n,[this].concat(c))),i=!0,(o=T(o="isSupported"))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i,t}return e=r,(t=[{key:"reportError",value:function(t,e){Object(i.b)(t,"AppNexusAdServer-".concat(e))}},{key:"cmdQueuePush",value:function(t){try{window.apntag.anq.push(t)}catch(t){this.reportError(t,"cmdQueuePush")}}},{key:"setTargeting",value:function(t,e){try{Object(o.k)(window,"apntag")&&Object(o.k)(window.apntag,"requests")&&(Object(o.k)(window.apntag.requests,"keywords")||(window.apntag.requests.keywords={}),window.apntag.requests.keywords[t]=e)}catch(t){this.reportError(t,"setTargeting")}}},{key:"getTargeting",value:function(t){try{if(!Object(o.k)(window,"apntag")||!Object(o.k)(window.apntag,"requests"))return[];Object(o.k)(window.apntag.requests,"keywords")||(window.apntag.requests.keywords={});var e=window.apntag.requests.keywords[t];return void 0===e?[]:[e]}catch(t){return this.reportError(t,"getTargeting"),[]}}},{key:"clearTargeting",value:function(t){try{Object(o.k)(window,"apntag")&&Object(o.k)(window.apntag,"requests")&&Object(o.k)(window.apntag.requests,"keywords")&&delete window.apntag.requests.keywords[t]}catch(t){this.reportError(t,"clearTargeting")}}},{key:"hasAdServerObjectLoaded",value:function(){try{return Object(o.k)(window,"apntag")&&Object(o.k)(window.apntag,"loaded")&&!0===window.apntag.loaded}catch(t){return this.reportError(t,"hasAdServerObjectLoaded"),!1}}},{key:"isCommandQueueDefined",value:function(){try{return Object(o.k)(window,"apntag")&&Object(o.k)(window.apntag,"anq")}catch(t){return this.reportError(t,"isCommandQueueDefined"),!1}}},{key:"getSlots",value:function(){try{var t=[];return Object(o.k)(window,"apntag")&&Object(o.k)(window.apntag,"requests")&&Object(o.k)(window.apntag.requests,"tags")&&Object(o.j)(window.apntag.requests.tags)&&Object.keys(window.apntag.requests.tags).forEach((function(e){e=window.apntag.requests.tags[e],t.push(new h(e))})),t}catch(t){return this.reportError(t,"getSlots"),[]}}}])&&v(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),r}(r.a),A=n(29);function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,C(r.key),r)}}function I(t,e){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function k(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P(t){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function R(t,e,n){(e=C(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function C(t){return t=function(t,e){if("object"!==D(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==D(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===D(t)?t:String(t)}var x=function(t){var e=r;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t);var n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=P(t);n=e?(n=P(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments),r=this;if(n&&("object"===D(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return k(r)}}(r);function r(){var t=this,e=r;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return R(k(t=n.call.apply(n,[this].concat(i))),"isSupported",!0),R(k(t),"needNewBidObject",!0),t}return e=r,(t=[{key:"reportError",value:function(t,e){Object(i.b)(t,"SmartAdServer-".concat(e))}},{key:"cmdQueuePush",value:function(t){try{window.sas.cmd.push(t)}catch(t){this.reportError(t,"cmdQueuePush")}}},{key:"hasAdServerObjectLoaded",value:function(){try{return Object(o.k)(window,"sas")&&Object(o.k)(window.sas,"__smartLoaded")&&!0===window.sas.__smartLoaded}catch(t){return this.reportError(t,"hasAdServerObjectLoaded"),!1}}},{key:"isCommandQueueDefined",value:function(){try{return Object(o.k)(window,"sas")&&Object(o.k)(window.sas,"cmd")}catch(t){return this.reportError(t,"isCommandQueueDefined"),!1}}}])&&_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),r}(r.a),z=n(3);function L(t){var e=new r.a;try{switch(t){case"appnexus":Object(z.c)("adServer",t),e=new E;break;case"googletag":Object(z.c)("adServer",t),e=new A.a;break;case"sas":Object(z.c)("adServer",t),e=new x;break;default:"string"==typeof t?Object(z.c)("adServer","invalid-".concat(t)):Object(z.c)("adServer","none")}}catch(t){Object(i.b)(t,"getDisplayAdServer")}return e}},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));var r=n(4),o=n(0),i=n(1);function a(t){try{return Object(o.k)(t,"debug")}catch(t){return Object(i.b)(t,"isApstagLibrary"),!1}}function c(t){try{return!!Object(o.k)(t,r.a)&&!0===t[r.a]}catch(t){return Object(i.b)(t,"hasApstagJsLoaded"),!1}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));e=n(19);var r=n(25);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(r)return(r=Object.getOwnPropertyDescriptor(r,e)).get?r.get.call(arguments.length<3?t:n):r.value}).apply(this,arguments)}function u(t,e){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);n=e?(n=f(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments),r=this;if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return d(r)}}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e,n){(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function p(t){return t=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==o(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===o(t)?t:String(t)}var y=function(t){var e=o;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t);var n=l(o);function o(t){if(this instanceof o)return b(d(t=n.call(this,t)),"_sizesDelegate",void 0),t._sizesDelegate=new r.a(t.rawSlot.sizes),t;throw new TypeError("Cannot call a class as a function")}return e=o,(t=[{key:"sizes",get:function(){return this._sizesDelegate.sizes}},{key:"aaxSizes",get:function(){return this._sizesDelegate.aaxSizes||[]}},{key:"aaxSlot",get:function(){var t={sd:this.slotID,s:this.aaxSizes};return this.slotID!==this.slotName&&(t.sn=this.slotName),a(a({},t),s(f(o.prototype),"aaxSlot",this))}},{key:"isValid",value:function(){return!(!s(f(o.prototype),"isValid",this).call(this)||0===this.sizes.length&&(this.reportIsValidMessages(["'sizes' must have at least 1 valid item"],!0),1))}}])&&c(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),o}(e.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return c}));var r=n(2),o=n(1),i=n(0),a=n(10);function c(t){try{var e=r.a.getState().cfg.COOKIE_MATCH_DELAY;setTimeout((function(){try{if(Object(i.k)(t,"cmp")){var e=t.cmp;function n(t){try{var e;r.a.getState().cmpFired||(r.a.dispatch({type:"CMP_FIRED"}),(e=document.createElement("iframe")).style.display="none",e.src=t,document.body.appendChild(e))}catch(t){Object(o.b)(t,"_doCookieMatch-ready")}}try{"loading"===document.readyState?document.addEventListener&&document.addEventListener("DOMContentLoaded",(function(){n(e)}),!1):n(e)}catch(e){Object(o.b)(e,"_doCookieMatch")}}else Object(i.k)(t,"cmpjs")&&Object(a.b)(t.cmpjs)}catch(e){Object(o.b)(e,"_tryCookieMatch-setTimeout")}}),e)}catch(e){Object(o.b)(e,"_tryCookieMatch")}}function s(t,e){var n=e;return function(){var e={method:t,args:arguments};try{e.ts=Date.now(),r.a.dispatch({type:"LOG_EVENT",event:e})}catch(e){Object(o.b)(e,"_logEvent")}return n.apply(void 0,arguments)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(2),o=n(1),i=n(8),a=n(4);function c(t,e,n){try{var c,s=r.a.getState(),u=s.config,l=Object(i.c)("host",s.hosts.DEFAULT_CXM_HOST),d=s.cfg.LIB_CONFIG_PATH;try{if(0<=["http:","https:"].indexOf(t.protocol))c=t.protocol+"//"+t.hostname;else{if(!(0<=["http:","https:"].indexOf(e.protocol)))return null;c=e.protocol+"//"+e.hostname}}catch(t){if(t instanceof window.DOMException)return null;throw t}var f,b=(b=null==n?void 0:n.sourceID)||(u.isSelfServePub?a.t:u.pubID),p=null==n?void 0:n.publisherUUID,y=(p||u.isSelfServePub&&(p=u.pubID),{src:b,u:encodeURIComponent(c)});return p&&(y.pubid=p),!y.src||isNaN(Number(y.src))?null:(f=Object.keys(y).map((function(t){return"".concat(t.trim(),"=").concat(String(y[t]).trim())})).join("&"),"".concat(a.w).concat(l).concat(d,"?").concat(f))}catch(t){return Object(o.b)(t,"buildLibraryConfigUrl"),null}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(0),o=n(9),i=n(11),a=n(3);function c(t,e){var n,c,s,u,l,d;Object(r.j)(e.data)?(Object(r.k)(e.data,"bidInfo")&&(Object(r.k)(e.data.bidInfo,"src")?(n=e.data.bidInfo.src,n=new URL(n).searchParams.get("b")):Object(r.k)(e.data.bidInfo,"jsonp")&&(l=e.data.bidInfo.jsonp,n=JSON.parse(l.substr(17,l.length-20)).amzniid)),Object(r.k)(e.data,"renderData")&&(c=(l=e.data.renderData).id,Object(r.k)(l,"renderStart")||Object(r.k)(l,"renderEnd"))&&(d=l.renderStart,l=l.renderEnd,d?(t.renderTimes[c]={timeStamp:d},n&&(t.renderTimes[c].bidId=n)):l&&Object(r.k)(t.renderTimes,c)&&0!==t.renderTimes[c].timeStamp&&(d=l-t.renderTimes[c].timeStamp,l={_type:"iframeRender",c:"dtb",pid:i.b,crt:d},(n=t.renderTimes[c].bidId?t.renderTimes[c].bidId:n)?Object(a.a)(n,l):Object(a.b)(l))),Object(r.k)(e.data,"blockData")&&(d=e.data.blockData.blockInfo,t={_type:"malwareBlock",c:"dtb",tpbr:1,pid:i.b,info:d},n?Object(a.a)(n,t):Object(a.b)(t)),Object(r.k)(e.data,"creativeFormatPixel")&&(l=(c=(c=e).data.creativeFormatPixel).vendorId,d=void 0===(d=c.pixelData)?{}:d,l)&&("creativeFormatBidPixel"===c.type&&(u={_type:"creativeFormatBidPixel",cfbp:1,c:"dtb",vendorId:l},(s=void 0===(s=d.bi)?"":s)&&(u.bi=s),Object(a.b)(u)),"creativeFormatImpressionPixel"===c.type)&&(s=d.bi,c=void 0===(u=d.ii)?"":u,u={_type:"creativeFormatImpressionPixel",cfip:1,c:"dtb",vendorId:l,bp:void 0===(u=d.bp)?0:u,bpc:void 0===(l=d.bpc)?"USD":l},(d=void 0===s?"":s)&&(u.bi=d),c&&(u.ii=c),Object(a.b)(u))):e.data&&"adBlocked"===e.data&&(n={_type:"adBlockedPixel",c:"dtb",pid:i.b,abc:1,u:Object(o.g)(window)},Object(a.b)(n))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));e=n(19);var r=n(25),o=n(5),i=n(20);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function l(){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r)return(r=Object.getOwnPropertyDescriptor(r,e)).get?r.get.call(arguments.length<3?t:n):r.value}).apply(this,arguments)}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);n=e?(n=p(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments),r=this;if(n&&("object"===a(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return b(r)}}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e,n){(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function m(t){return t=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==a(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===a(t)?t:String(t)}var g=function(t){var e=a;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t);var n=f(a);function a(t){if(this instanceof a)return y(b(t=n.call(this,t)),"_sizesDelegate",void 0),t._sizesDelegate=new r.a(t.rawSlot.sizes),t;throw new TypeError("Cannot call a class as a function")}return e=a,(t=[{key:"mediaType",get:function(){return o.a.VIDEO}},{key:"aaxMediaType",get:function(){return i.a.VIDEO}},{key:"sizes",get:function(){return this._sizesDelegate.sizes}},{key:"aaxSizes",get:function(){return this._sizesDelegate.aaxSizes||[]}},{key:"aaxSlot",get:function(){var t=s(s({},l(p(a.prototype),"aaxSlot",this)),{},{id:this.slotID,mt:this.aaxMediaType});return 0<this.sizes.length&&(t.s=this.aaxSizes),t}}])&&u(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}(e.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return j})),(e=r=r||{}).LOCAL_STORAGE="LOCAL",e.CSS_SELECTOR="CSS",e.URL="URL",(o=o||{}).EMAIL="email";var r,o,i=n(1),a=n(15),c=n(7);function s(t,e){var n,r,o,i,a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(t)},n:function(){var t=a.next();return n=t.done,t},e:function(t){r=!0,o=t},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(t)||(a=function(t,e){var n;if(t)return"string"==typeof t?u(t,e):"Map"===(n="Object"===(n=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}(t))||e&&t&&"number"==typeof t.length)return a&&(t=a),i=0,{s:e=function(){},n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t){return t.then((function(t){return Array.from(new Uint8Array(t)).map((function(t){return t.toString(16).padStart(2,"0")})).join("")})).then((function(t){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"!==t?t:""}))}function d(t,e){return t instanceof window.HTMLInputElement||t instanceof window.HTMLTextAreaElement?f(t.value,e)?l(window.crypto.subtle.digest("SHA-256",(new window.TextEncoder).encode(t.value||""))):Promise.resolve(""):f(t.innerText,e)?l(window.crypto.subtle.digest("SHA-256",(new window.TextEncoder).encode(t.innerText||""))):Promise.resolve("")}var f=function(t,e){return"string"==typeof t&&(e===o.EMAIL?/\S+@\S+\.\S+/.test(t)||Object(a.c)(t):0<t.trim().length)},b=function(t,e,n){if(0===(n=n||window.document.querySelectorAll(t)).length)return new Promise((function(t){return t("")}));if(1===n.length)return d(n[0],e);var r,o=[],i=s(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;o.push(d(a,e))}}catch(t){i.e(t)}finally{i.f()}return Promise.all(o).then((function(t){var e,n=null,r=s(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(""!==o){if(null!==n&&("string"!=typeof n||n!==o))return"";n=o}}}catch(t){r.e(t)}finally{r.f()}return n||""}))},p=n(23),y=n(2);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){var n,r,o,i,a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(t)},n:function(){var t=a.next();return n=t.done,t},e:function(t){r=!0,o=t},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(t)||(a=function(t,e){var n;if(t)return"string"==typeof t?h(t,e):"Map"===(n="Object"===(n=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}(t))||e&&t&&"number"==typeof t.length)return a&&(t=a),i=0,{s:e=function(){},n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function O(t,e,n){(e=function(t){return t=function(t,e){if("object"!==m(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==m(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===m(t)?t:String(t)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}var v={called:!1};function j(t){if(Promise&&TextEncoder&&window.crypto&&window.crypto.subtle)try{var e;v.called&&!t.overrideLimit?Object(i.b)(new Error("rr should only be called once per page load"),"retrieveRecords-callLimit"):(v.called=!0,e=0,function n(){!(window.apstag.isGDPRRegion&&!new p.a({stateContainer:y.a,globalContext:window}).isListenerActive||(c.a.getDefault().allowedToStoreAndAccessInformationOnDevice()?function(){var t,e,n,o,s,u,l=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},d=1<arguments.length?arguments[1]:void 0,p=(t=l.methods||[],O(e={},r.LOCAL_STORAGE,5),O(e,r.URL,4),O(e,r.CSS_SELECTOR,3),n=e,o={},t.forEach((function(t){o[t.method]=(o[t.method]||0)+1,t.priority=o[t.method]})),t.sort((function(t,e){return t.method===e.method?(t.priority||0)>(e.priority||0)?1:-1:n[t.method]>n[e.method]?-1:1})),[]),y=g(l.methods||[]);try{var h=function(){var t=u.value,e=t.method,n=t.target,o=t.type,l="";switch(e){case r.LOCAL_STORAGE:l=function(t,e){return(t=c.a.getDefault().localStorage.getItem(t,{ignoreFailure:!1}))&&f(t,e)?t:""}(n,o);break;case r.URL:p.push(function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window.location.href;try{t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&#]"+t+"(=([^&#?]*)|&|#|$)").exec(e);return Array.isArray(n)&&"string"==typeof n[2]&&0!==decodeURIComponent(n[2].replace(/\+/g," ")).trim().length&&Object(a.c)(decodeURIComponent(n[2].replace(/\+/g," ")))?Promise.resolve(decodeURIComponent(n[2].replace(/\+/g," "))):new Promise((function(t){return t("")}))}catch(t){return Object(i.b)(t,"retrieveUrl"),Promise.resolve("")}}(n).then((function(t){return{type:o,value:t}})));break;case r.CSS_SELECTOR:s=t}if(0<l.length)return d({value:l,type:o}),{v:void 0}};for(y.s();!(u=y.n()).done;){var v=h();if("object"===m(v))return v.v}}catch(t){y.e(t)}finally{y.f()}function j(){var t,e,n,r,o,i;s&&(!0===s.isGlobalSubmit||"string"==typeof s.eventTarget&&"string"==typeof s.event)&&(e=(t=s).eventTarget,n=t.target,r=t.type,o=t.isGlobalSubmit,"string"==typeof(i=o?"submit":s.event))&&0!==i.length?window.addEventListener(i,(function t(a){var c,s,u,l,f,p,y,m,g;s=(a={e:a,event:i,eventTarget:e,isGlobalSubmit:o,target:n,type:r,onDone:d,listener:t}).e,u=a.eventTarget,l=a.event,f=a.isGlobalSubmit,p=a.target,y=a.type,m=a.onDone,g=a.listener,f||"window"===u||s.target&&"function"==typeof s.target.matches&&"string"==typeof u&&s.target.matches(u)?(f&&s instanceof window.Event&&s.target&&(c=s.target.querySelectorAll('input[type="email"]')),b(p,y,c).then((function(t){"function"==typeof g&&window.removeEventListener(l,g),m(!(t.length<1)&&{value:t,type:y})}))):m(!1)})):d(!1)}0===p.length?j():Promise.all(p).then((function(t){var e,n=g(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(0<r.value.length)return void d(r)}}catch(t){n.e(t)}finally{n.f()}j()}))}(t,(function(e){!1!==e&&Object(a.e)({hashedRecords:[{type:e.type,record:e.value}]},void 0,void 0,"api",t.accountID)})):Object(i.b)(new Error("GDPR consent not present/valid"),"retrieveRecords"),0))||6400<e||(setTimeout(n,e),e=0===e?200:2*e)}())}catch(t){Object(i.b)(t,"retrieveRecords-retrieve")}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return _}));e=n(19);var r=n(5),o=n(20),i=n(0),a=n(1),c=n(25);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function l(t,e,n){(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function d(t){return t=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==s(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===s(t)?t:String(t)}var f=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=this,r=t;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");l(this,"_propertyConfig",void 0),l(this,"_sizesDelegate",void 0),this._propertyConfig=e,this._sizesDelegate=new c.a(null==e?void 0:e.sizes,!1,!0)}var e,n;return e=t,(n=[{key:"sizes",get:function(){return this._sizesDelegate.sizes}},{key:"validSizes",get:function(){return this._sizesDelegate.isValid()}},{key:"propertyConfig",get:function(){return this._propertyConfig}},{key:"aaxPropertyConfig",get:function(){var t={};return this.aaxSizes&&(t.s=this.aaxSizes),t}},{key:"aaxSizes",get:function(){return this._sizesDelegate.aaxSizes}},{key:"isValid",value:function(){return!Object(i.j)(this.propertyConfig)||Array.isArray(this.propertyConfig)?(Object(a.b)({name:"MultiFormatSlot-InvalidMultiFormatSlotProperty",message:"multiFormatProperty must be an object"},"MultiFormatSlotProperty-isValid",{makeVisibleToAllUsers:!0}),!1):!!this.validSizes}}])&&u(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function y(t,e,n){(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function m(t){return t=function(t,e){if("object"!==b(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==b(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===b(t)?t:String(t)}var g=function(){function t(e){var n=this;if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");y(this,"_multiFormatProperties",void 0),e&&Object(i.j)(e)&&!Array.isArray(e)&&(this._multiFormatProperties={},this.toMultiFormatMediaTypes(e).forEach((function(t){n._multiFormatProperties&&(n._multiFormatProperties[t]=new f(e[t]))})))}var e,n;return e=t,(n=[{key:"convertMultiFormatMediaType",value:function(t){var e;return y(e={},r.a.VIDEO,o.a.VIDEO),y(e,r.a.DISPLAY,o.a.DISPLAY),e[t]}},{key:"isMultiFormatMediaType",value:function(t){return Boolean(this.convertMultiFormatMediaType(t))}},{key:"toMultiFormatMediaTypes",value:function(t){var e=this;return Object.keys(t).filter((function(t){return e.isMultiFormatMediaType(t)}))}},{key:"multiFormatMediaTypes",get:function(){return this._multiFormatProperties?this.toMultiFormatMediaTypes(this._multiFormatProperties):[]}},{key:"aaxMultiFormatProperties",get:function(){var t,e=this;return this._multiFormatProperties?(t={},this.multiFormatMediaTypes.forEach((function(n){var r=e.convertMultiFormatMediaType(n);r&&(t[r]=null==(r=e._multiFormatProperties[n])?void 0:r.aaxPropertyConfig)})),t):{}}},{key:"isValid",value:function(){var t=this,e=!0;return this._multiFormatProperties?(this.multiFormatMediaTypes.forEach((function(n){t._multiFormatProperties[n].isValid()||(e=!1)})),e):(Object(a.b)({name:"MultiFormatSlot-InvalidMultiFormatProperties",message:"multiFormatProperties must be an object"},"MultiFormatProperties-isValid",{makeVisibleToAllUsers:!0}),!1)}}])&&p(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,D(r.key),r)}}function S(){return(S="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=E(t)););return t}(t,e);if(r)return(r=Object.getOwnPropertyDescriptor(r,e)).get?r.get.call(arguments.length<3?t:n):r.value}).apply(this,arguments)}function w(t,e){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function T(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function A(t,e,n){(e=D(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function D(t){return t=function(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return String(t);if("object"!==h(n=n.call(t,e)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"),"symbol"===h(t)?t:String(t)}var _=function(t){var e=i;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t);var n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=E(t);n=e?(n=E(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments),r=this;if(n&&("object"===h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return T(r)}}(i);function i(t){var e;if(this instanceof i)return A(T(e=n.call(this,t)),"_multiFormatPropertiesDelegate",void 0),e._multiFormatPropertiesDelegate=new g(t.multiFormatProperties),e;throw new TypeError("Cannot call a class as a function")}return e=i,(t=[{key:"mediaType",get:function(){return r.a.MULTI_FORMAT}},{key:"aaxMediaType",get:function(){return o.a.MULTI_FORMAT}},{key:"aaxMultiFormatProperties",get:function(){return this._multiFormatPropertiesDelegate.aaxMultiFormatProperties}},{key:"multiFormatPropertiesIsValid",get:function(){return this._multiFormatPropertiesDelegate.isValid()}},{key:"aaxSlot",get:function(){return v(v({},S(E(i.prototype),"aaxSlot",this)),{},{id:this.slotID,sd:this.slotID,sn:this.slotName||this.slotID,mt:this.aaxMediaType,mfp:this.aaxMultiFormatProperties})}},{key:"isValid",value:function(){return S(E(i.prototype),"isValid",this).call(this)&&this.multiFormatPropertiesIsValid}}])&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}(e.a)},function(t,e,n){t.exports=n(16)}]);