m.media-amazon.com
Open in
urlscan Pro
2a04:4e42::272
Public Scan
URL:
https://m.media-amazon.com/images/I/91Csk5PppcL.js
Submission: On July 15 via api from IT — Scanned from IT
Submission: On July 15 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
/*! For license information please see Responsive.bundle.min.js.LICENSE.txt */ var Library;(()=>{var e,t,r,n={7058:(e,t,r)=>{"use strict";r.r(t),r.d(t,{COMMA_DECIMAL_SEPARATOR_LOCALES:()=>n.E,COMMA_DECIMAL_SEPARATOR_MARKETPLACES:()=>n.C,CONTROL:()=>n.K,DEFAULT_LOCALE:()=>n.N,DEFAULT_MARKETPLACE:()=>n.D,Experiments:()=>n.L,LOCALES:()=>n.W,MARKETPLACES:()=>n.V,MARKETPLACES_DATA:()=>n.F,PREFIX_PERCENTAGE_SYMBOL_LOCALES:()=>n.O,PREFIX_PERCENTAGE_SYMBOL_MARKETPLACES:()=>n.P,RIGHT_PLACEMENT_CURRENCIES_LOCALES:()=>n.G,RIGHT_PLACEMENT_CURRENCIES_MARKETPLACES:()=>n.R,S9_DA:()=>n.A,SPACED_CURRENCIES_LOCALES:()=>n.I,SPACED_CURRENCIES_MARKETPLACES:()=>n.H,STATIC_AUTOGEN_CC_AVAILABLE_LOCALES:()=>n.Q,SbTranscodedMedia:()=>n.a7,brandLogoProperties:()=>n.Z,customImageProperties:()=>n.Y,genericCacheBrandLogo:()=>n._,genericCacheCustomImage:()=>n.$,genericCacheSBProductCollection:()=>n.a6,genericCacheSbBrandedVideo:()=>n.a3,genericCacheSbBrandedVideoWithTranscodedMedia:()=>n.a9,genericCacheSbVideo:()=>n.a2,genericCacheSbVideoWithTranscodedMedia:()=>n.ab,genericCacheSbVideoWithoutCreativeType:()=>n.a4,localeCodeMap:()=>n.T,locales:()=>n.B,sbBrandedVideoProperties:()=>n.a1,sbBrandedVideoWithTranscodedMedia:()=>n.a8,sbProductCollectionProperties:()=>n.a5,sbVideoProperties:()=>n.a0,sbVideoPropertiesWithTransCodedMedia:()=>n.aa,simulateFormats:()=>n.X,snsSupportMarketplaces:()=>n.J,ATC_PURCHASE_PIPELINE:()=>g,BACKGROUND:()=>l,BRAND_LOGO:()=>u,CUSTOM_IMAGE:()=>c,FRESH_ALM:()=>h,GenericCacheParams:()=>We,HEADLINE_LOGO:()=>d,LANDING_PAGE_TYPES:()=>we,MEDIA_CENTRAL_URL:()=>x,PRIME_SUBSCRIPTION_PRODUCTS:()=>v,PROMOTION_TYPE:()=>p,PageDetails:()=>He,RESPONSIVE_FORMAT:()=>f,SDModel:()=>Ae,SDProducts:()=>Ge,UrlBuilder:()=>Ie,WHOLEFOODS_ALM:()=>y,digitalProductGroupTypes:()=>m,getVideoProperties:()=>qe,hideBelowRating:()=>b,kindleAndFireTabletProductGroups:()=>C,sbCacheAdapter:()=>Xe});var n=r(3832);const a=/^(.+?)(?:\._(.+)_)?\.([A-Za-z]+)$/;function o(e,t){return e.filters.push(t),e}class i{constructor(e){this.filters=[];const t=a.exec(e)||[];this.base=t[1],this.filters="string"==typeof t[2]?t[2].split("_"):[],this.ext=t[3]}scaleToHeight(e){return o(this,"SY"+Math.round(e))}scaleToWidth(e){return o(this,"SX"+Math.round(e))}upscaleToHeight(e){return o(this,"UY"+Math.round(e))}upscaleToWidth(e){return o(this,"UX"+Math.round(e))}scaleToSquare(e){return o(this,"SS"+Math.round(e))}scaleToRectangle(e,t){return o(this,`SR${Math.round(e)},`+Math.round(t))}qualityLevel(e){return e?o(this,"QL"+e):this}crop(e,t,r,n){return r&&n?o(this,"CR"+[t||0,e||0,r,n].map(Math.round).join(",")):this}tilt(e){return o(this,"PT"+e)}brightness(e){return o(this,"BR"+e)}blur(e){return o(this,"BL"+e)}contrast(e){return o(this,"CT"+e)}preserveAlpha(){return o(this,"AL")}autocrop(e){return e?o(this,"AC"):this}dominantBackground(e){return e?o(this,"DB"):this}overrideExtension(e){return o(this,"FM"+e)}border(e,t=0,r=0,n=0){return e?o(this,"BO"+[e,t,r,n].map(Math.round).join(",")):this}build(){const e=[this.base];return this.filters.length&&e.push(`_${this.filters.join("_")}_`),e.push(this.ext),e.join(".")}}const s=e=>{var t,r;return e?{url:(({url:t,croppingCoordinates:r}={url:e.url,croppingCoordinates:e.croppingCoordinates}),new i(t).autocrop(!1).crop(null==r?void 0:r.top,null==r?void 0:r.left,null==r?void 0:r.width,null==r?void 0:r.height).build()),...(null===(r=null==e?void 0:e.croppingCoordinates)||void 0===r?void 0:r.width)&&{width:e.croppingCoordinates.width},...(null===(r=null==e?void 0:e.croppingCoordinates)||void 0===r?void 0:r.height)&&{height:e.croppingCoordinates.height}}:void 0},l="background",u="brandLogo",c="CUSTOM_IMAGE",d="HL",p={PERCENT_OFF:"Percent off",AMOUNT_OFF:"Amount off"},m=new Set(["gl_ebooks","gl_downloadable_software","gl_digital_short_lit","gl_digital_documents","gl_digital_video_download","gl_digital_music_service","gl_digital_book_service","gl_digital_music_purchase","gl_digital_periodicals","gl_digital_ebook_purchase","gl_data_activity_plans","gl_digital_software","gl_digital_video_games","gl_digital_accessories","gl_digital_content_subscription","gl_digital_services","gl_digital_media_access_license","gl_downloadable_digital_media","gl_virtual_currency","gl_virtual_goods","gl_cloud_software_applications","gl_a_drive","gl_digital_accessories_2","gl_publisher_services","gl_amazon_points","gl_digital_music_locker","gl_digital_products_1","gl_digital_products_2","gl_payment_devices","gl_digital_products_3","gl_digital_devices_4","gl_digital_accessories_4","gl_digital_products_5","gl_digital_products_5_accessory"]),f="responsive",g="addToCart",h="ALM_QW1hem9uIEZyZXNo",y="ALM_VUZHIFdob2xlIEZvb2Rz",v=["gl_prime","gl_amazon_points"],b=3.25,C=new Set(["gl_digital_text","gl_digital_text_2"]),x="https://m.media-amazon.com/images/I/";function E(e){return"symbol"==typeof e||(0,n.i)(e)&&"[object Symbol]"==(0,n.b)(e)}var S=(U=n.S?n.S.prototype:void 0)?U.toString:void 0;function _(e){if("string"==typeof e)return e;if((0,n.a)(e))return function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}(e,_)+"";if(E(e))return S?S.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function T(e){return e}var w,P,O,A=Date.now,I=(t=n.d?function(e,t){return(0,n.d)(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:T,r=(w=t,O=P=0,function(){var e=A(),t=16-(e-O);if(O=e,0<t){if(800<=++P)return arguments[0]}else P=0;return w.apply(void 0,arguments)}),Math.max),N=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/;function D(e,t){if(!(0,n.a)(e)){var r=typeof e;return"number"==r||"symbol"==r||"boolean"==r||null==e||E(e)||M.test(e)||!N.test(e)||null!=t&&e in Object(t)}}function L(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");function r(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;return o.has(a)?o.get(a):(n=e.apply(this,n),r.cache=o.set(a,n)||o,n)}return r.cache=new(L.Cache||n.M),r}L.Cache=n.M;var B,R=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,j=/\\(\\)?/g,k=(B=(U=L((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(R,(function(e,r,n,a){t.push(n?a.replace(j,"$1"):r||e)})),t}),(function(e){return 500===B.size&&B.clear(),e}))).cache,U);function F(e,t){return(0,n.a)(e)?e:D(e,t)?[e]:k(null==e?"":_(e))}var z=1/0;function Z(e){if("string"==typeof e||E(e))return e;var t=e+"";return"0"==t&&1/e==-z?"-0":t}function G(e,t){for(var r=0,n=(t=F(t,e)).length;null!=e&&r<n;)e=e[Z(t[r++])];return r&&r==n?e:void 0}function W(e,t,r){return void 0===(t=null==e?void 0:G(e,t))?r:t}t=Function.prototype;var U=Object.prototype,V=t.toString,H=U.hasOwnProperty,Y=V.call(Object);function q(e,t,r,n){var a=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++a]);++a<o;)r=t(r,e[a],a,e);return r}function X(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n.M;++t<r;)this.add(e[t])}function Q(e,t,r,n,a,o){var i=1&r,s=e.length;if(s!=(u=t.length)&&!(i&&s<u))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var c=-1,d=!0,p=2&r?new X:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var m,f=e[c],g=t[c];if(void 0!==(m=n?i?n(g,f,c,t,e,o):n(f,g,c,e,t,o):m)){if(m)continue;d=!1;break}if(p){if(!function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r))return 1}(t,(function(e,t){return!p.has(t)&&(f===e||a(f,e,r,n,o))&&p.push(t)}))){d=!1;break}}else if(f!==g&&!a(f,g,r,n,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function J(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function K(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}X.prototype.add=X.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},X.prototype.has=function(e){return this.__data__.has(e)};var $=(U=n.S?n.S.prototype:void 0)?U.valueOf:void 0,ee=Object.prototype.hasOwnProperty,te="[object Arguments]",re="[object Array]",ne="[object Object]",ae=Object.prototype.hasOwnProperty;function oe(e,t,r,a,o){return e===t||(null==e||null==t||!(0,n.i)(e)&&!(0,n.i)(t)?e!=e&&t!=t:function(e,t,r,a,o,i){var s=(0,n.a)(e),l=(0,n.a)(t),u=s?re:(0,n.k)(e),c=l?re:(0,n.k)(t),d=(u=u==te?ne:u)==ne;l=(c=c==te?ne:c)==ne;if((c=u==c)&&(0,n.l)(e)){if(!(0,n.l)(t))return!1;d=!(s=!0)}return c&&!d?(i=i||new n.m,(s||(0,n.n)(e)?Q:function(e,t,r,a,o,i){switch(u){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new n.U(e),new n.U(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,n.g)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=J;case"[object Set]":if(s=s||K,e.size!=t.size&&!(1&r))return!1;var l=i.get(e);return l?l==t:(r|=2,i.set(e,t),s=Q(s(e),s(t),r,a,o,i),i.delete(e),s);case"[object Symbol]":if($)return $.call(e)==$.call(t)}return!1})(e,t,r,a,o,i)):1&r||(d=d&&ae.call(e,"__wrapped__"),l=l&&ae.call(t,"__wrapped__"),!d&&!l)?!!c&&function(e,t,r,a,o,i){var s=1&r,l=(0,n.j)(e),u=l.length;if(u!=(0,n.j)(t).length&&!s)return!1;for(var c=u;c--;){var d=l[c];if(!(s?d in t:ee.call(t,d)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var f=!0;i.set(e,t),i.set(t,e);for(var g=s;++c<u;){var h,y=e[d=l[c]],v=t[d];if(!(void 0===(h=a?s?a(v,y,d,t,e,i):a(y,v,d,e,t,i):h)?y===v||o(y,v,r,a,i):h)){f=!1;break}g=g||"constructor"==d}return!f||g||(p=e.constructor)!=(m=t.constructor)&&"constructor"in e&&"constructor"in t&&!("function"==typeof p&&p instanceof p&&"function"==typeof m&&m instanceof m)&&(f=!1),i.delete(e),i.delete(t),f}(e,t,r,a,o,i=i||new n.m):o(d?e.value():e,l?t.value():t,r,a,i=i||new n.m)}(e,t,r,a,oe,o))}var ie=1,se=2;function le(e){return e==e&&!(0,n.c)(e)}function ue(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}function ce(e,t){return null!=e&&t in Object(e)}var de=1,pe=2;function me(e){return"function"==typeof e?e:null==e?T:"object"==typeof e?(0,n.a)(e)?(i=e[0],s=e[1],D(i)&&le(s)?ue(Z(i),s):function(e){var t,r=W(e,i);return void 0===r&&r===s?(t=i,null!=e&&function(e,r,a){for(var o=-1,i=(r=F(t,e)).length,s=!1;++o<i;){var l=Z(r[o]);if(!(s=null!=e&&a(e,l)))break;e=e[l]}return s||++o!=i?s:!!(i=null==e?0:e.length)&&(0,n.p)(i)&&(0,n.f)(l,i)&&((0,n.a)(e)||(0,n.q)(e))}(e,0,ce)):oe(s,r,de|pe)}):1==(o=function(e){for(var t=(0,n.o)(e),r=t.length;r--;){var a=t[r],o=e[a];t[r]=[a,o,le(o)]}return t}(a=e)).length&&o[0][2]?ue(o[0][0],o[0][1]):function(e){return e===a||function(t,r,a){var o=r.length,i=o;if(null==e)return!i;for(t=Object(e);o--;){var s=r[o];if(s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<i;){var l=t[c=(s=r[o])[0]],u=s[1];if(s[2]){if(void 0===l&&!(c in t))return!1}else{var c=new n.m;if(!oe(u,l,ie|se,undefined,c))return!1}}return!0}(0,o)}:D(e)?(r=Z(e),function(e){return null==e?void 0:e[r]}):(t=e,function(e){return G(e,t)});var t,r,a,o,i,s}var fe=function(e,t,r){for(var n=-1,a=Object(e),o=r(e),i=o.length;i--;){var s=o[++n];if(!1===t(a[s],s,a))break}return e},ge=function(e,t){if(null==e)return e;if(!(0,n.e)(e))return(r=e)&&fe(r,t,n.o);for(var r,a=e.length,o=-1,i=Object(e);++o<a&&!1!==t(i[o],o,i););return e};function he(e,t,r){(void 0===r||(0,n.g)(e[t],r))&&(void 0!==r||t in e)||(0,n.r)(e,t,r)}function ye(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function ve(e,t,r,a,o){e!==t&&fe(t,(function(i,s){var l,u,c,d,p,m,f,g,h,y,v,b,C;o=o||new n.m,(0,n.c)(i)?(u=t,d=r,p=ve,m=a,f=o,v=ye(l=e,c=s),b=ye(u,c),(C=f.get(b))?he(l,c,C):((g=void 0===(y=m?m(v,b,c+"",l,u,f):void 0))&&(C=!(h=(0,n.a)(b))&&(0,n.l)(b),u=!h&&!C&&(0,n.n)(b),y=b,h||C||u?y=(0,n.a)(v)?v:(0,n.i)(h=v)&&(0,n.e)(h)?(0,n.u)(v):C?(0,n.v)(b,!(g=!1)):u?(0,n.w)(b,!(g=!1)):[]:function(e){if((0,n.i)(e)&&"[object Object]"==(0,n.b)(e))return null===(e=(0,n.h)(e))?1:"function"==typeof(e=H.call(e,"constructor")&&e.constructor)&&e instanceof e&&V.call(e)==Y}(b)||(0,n.q)(b)?(0,n.q)(y=v)?y=(0,n.s)(v,(0,n.t)(v)):(0,n.c)(v)&&!(0,n.x)(v)||(y=(0,n.y)(b)):g=!1),g&&(f.set(b,y),p(y,b,d,m,f),f.delete(b)),he(l,c,y))):(y=a?a(ye(e,s),i,s+"",e,t,o):void 0,he(e,s,y=void 0===y?i:y))}),n.t)}function be(e,t){return((0,n.a)(e)?n.z:function(e,t){var r=[];return ge(e,(function(e,n,a){t(e,n,a)&&r.push(e)})),r})(e,me(t))}var Ce,xe,Ee,Se,_e=(Ce=function(e,t,r){ve(e,t,r)},r((xe=r=function(e,t){var r=-1,a=t.length,o=1<a?t[a-1]:void 0,i=2<a?t[2]:void 0;o=3<Ce.length&&"function"==typeof o?(a--,o):void 0;for(i&&function(e,t,r){if((0,n.c)(r)){var a=typeof t;return("number"==a?(0,n.e)(r)&&(0,n.f)(t,r.length):"string"==a&&t in r)&&(0,n.g)(r[t],e)}}(t[0],t[1],i)&&(o=a<3?void 0:o,a=1),e=Object(e);++r<a;){var s=t[r];s&&Ce(e,s,r)}return e},Se=T,Ee=I(void 0===(Ee=undefined)?xe.length-1:Ee,0),function(){for(var e=arguments,t=-1,r=I(e.length-Ee,0),n=Array(r);++t<r;)n[t]=e[Ee+t];t=-1;for(var a=Array(Ee+1);++t<Ee;)a[t]=e[t];return a[Ee]=Se(n),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(xe,this,a)}),r+""));function Te(e,t,r,n,a){return a(e,(function(e,a,o){r=n?(n=!1,e):t(r,e,a,o)})),r}const we={NON_ENDEMIC:"OFF_AMAZON_LINK",SHOW_ROOM:"STORE",MOMENT:"MOMENT"};var Pe,Oe=e=>{var{model:t,s9BidderData:e}=e;if(t){const r=t.aaxRenderingContext;return e&&null!=r&&r.impressionToken&&(r.impressionToken=null===(e=null==r?void 0:r.impressionToken)||void 0===e?void 0:e.split("?").join("&")),{...t,aaxRenderingContext:r}}};class Ae{constructor(e){this.renderPayload=e,this.model=Oe(this.renderPayload),this.modelProperties=null===(e=this.model)||void 0===e?void 0:e.properties}get clickTrackers(){var e;return null===(e=this.renderPayload.s9BidderData)||void 0===e?void 0:e.clickTracker}get aaxRenderingContext(){var e;return null===(e=this.model)||void 0===e?void 0:e.aaxRenderingContext}get adServer(){var e;return null===(e=this.model)||void 0===e?void 0:e.adServer}get templateName(){var e;return(null===(e=this.model)||void 0===e?void 0:e.templateName)||""}get adServerData(){return this.renderPayload.s9BidderData}get headline(){var e;return null===(e=this.modelProperties)||void 0===e?void 0:e.headline}get brandLogoUrl(){var e;return null===(e=s(null===(e=this.modelProperties)||void 0===e?void 0:e.brandLogo))||void 0===e?void 0:e.url}get rectCustomImage(){var{rectCustomImage:e,rectangleImages:t}=this.modelProperties||{},e=null!==(t=null==t?void 0:t[0])&&void 0!==t?t:e;return s(e)}get squareCustomImage(){var{squareCustomImage:e,squareImages:t}=this.modelProperties||{},e=null!==(t=null==t?void 0:t[0])&&void 0!==t?t:e;return s(e)}get portraitCustomImage(){var e=null==(e=(this.modelProperties||{}).portraitImages)?void 0:e[0];return s(e)}get privacyUrl(){var e;if(this.adServer===n.A&&null!==(e=this.modelProperties)&&void 0!==e&&e.privacyUrl)return null===(t=this.modelProperties)||void 0===t?void 0:t.privacyUrl;var t=(null===(t=this.model)||void 0===t?void 0:t.market)||n.D;return`https://www.${(n.B[t]||n.B.US).domain}/adprefs/`}get brandName(){var e;return null===(e=this.model)||void 0===e?void 0:e.brandName}get market(){var e;return(null===(e=this.model)||void 0===e?void 0:e.market)||n.D}get clickThroughUrlOverride(){var e;return null===(e=this.modelProperties)||void 0===e?void 0:e.clickThroughUrlOverride}isNonEndemic(){var{landingPageUrl:e,landingPageType:t}=(null===(t=null===(e=this.renderPayload)||void 0===e?void 0:e.model)||void 0===t?void 0:t.properties)||{};return Boolean(e)&&t===we.NON_ENDEMIC}isShowroom(){var{landingPageUrl:e,landingPageType:t}=(null===(t=null===(e=this.renderPayload)||void 0===e?void 0:e.model)||void 0===t?void 0:t.properties)||{};return Boolean(e)&&(t===we.SHOW_ROOM||t===we.MOMENT)}get videos(){var{verticalVideos:e,horizontalVideos:t,squareVideos:r,video:n}=this.modelProperties||{};return{verticalVideos:e,horizontalVideos:t,squareVideos:r,legacyVideo:n}}get creativeDimensions(){var{width:e,height:t,size:r}=this.model||{};return{width:e,height:t,size:r}}}class Ie{constructor(e,t){this.localeInfo=e,this.aaxImpressionToken=t}getMediaCentralDomain(){return`https://images-${this.localeInfo.region}.ssl-images-amazon.com`}getMediaCentralPath(){return this.getMediaCentralDomain()+"/images/G/"+this.localeInfo.media}buildDetailPageLink(e,t){let r=`https://www.${this.localeInfo.domain}/dp/`+e;return t.creativeId&&t.adId&&(r=this.addQueryParameter(r,"ref",`dacx_dp_${t.creativeId}_`+t.adId)),t.merchantId&&(r=this.addQueryParameter(r,"smid",""+t.merchantId)),t.associateTag&&(r=this.addQueryParameter(r,"tag",""+t.associateTag)),t.percolateClickTrackingParams&&(r=this.addQueryParameter(r,t.percolateClickTrackingParams,"")),this.addAaxImpressionToken(r)}buildStorePageLink(e,t){let r=e;return t.creativeId&&(r=this.addQueryParameter(r,"store_ref","SD_"+t.creativeId)),r}buildReviewsLink(e,t){let r=`https://www.${this.localeInfo.domain}/product-reviews/`+e;return t&&(r=this.addQueryParameter(r,"tag",""+t)),this.addAaxImpressionToken(r)}buildAtcLink(e,{allow3pSellers:t=!0}={},r,n){let a;if(a=r||(e.addToCartUrls?t?e.addToCartUrls.buyBoxUrl:e.addToCartUrls.merchantSpecificUrl:e.addToCartUrl),a)return n&&(a=this.addQueryParameter(a,"tag",""+n)),this.addAaxImpressionToken(a);{const t={atcUrlOverride:r,addToCartUrls:e.addToCartUrls,addToCartUrl:e.addToCartUrl};throw new Error("Add to cart url is not present. Error context: "+JSON.stringify(t))}}buildCouponUrl(e,t,r){let n=`https://www.${this.localeInfo.domain}/gp/coupon/c/${e}/?ref=amg&vpc_cs=VPC_CS_MACRO`;return t&&(n+="&"+(a={redirectASIN:t},Object.keys(a).map((e=>e+"="+a[e])).join("&"))),r&&(n=this.addQueryParameter(n,"tag",""+r)),this.addAaxImpressionToken(n);var a}buildRefTagParam(e){return(e||"na").replace(/[^\w]/gi,"").toLowerCase()}addQueryParameter(e,t,r){if(null==e)throw new Error("Cannot add query parameter to null or undefined url: "+e);var n=e.indexOf("?"),a=e.indexOf("#"),o=-1===n?"?":"",i=-1===n?"":"&";n=-1===n?-1===a?e.length:a:n+1;return e.substring(0,n)+o+t+(void 0!==r?"="+r:"")+i+e.substring(n)}addAaxImpressionToken(e){return this.addQueryParameter(e,"aaxitk",this.aaxImpressionToken||"[[AAX_IMPRESSION_TOKEN]]")}getIntent(e){var t="com.amazon.mobile.shopping.web:"+e.replace(/^https?:/,"").replace(/\|/g,"%7C");return this.buildCascadingIntent(t,e)}buildCascadingIntent(...e){let t="amazonmobile://intent";for(const r in e)e.hasOwnProperty(r)&&(t=this.addQueryParameter(t,"intent",encodeURIComponent(e[r])));return t}}const Ne=(e,t=0,r,a)=>{let o=".",i=",";r&&n.C.has(r)&&(o=",",i="."),a&&n.E.has(a)&&(o=",",i=".");const s=(+e).toFixed(t).toString().split("."),l=s[0],u=s[1];return r="IN"===r?l.replace(/(\d)(?=(\d\d)+\d$)/g,"$1"+i):l.replace(/\B(?=(\d{3})+(?!\d))/g,i),u?r+o+u:r},Me=(e,t,r)=>{var a=n.F[t],o=n.R.has(t)||n.G.has(r),i="JP"===t,s=null==a?void 0:a.currency;a=n.H.has(t)||n.I.has(r);return{symbol:s,number:/[^0-9,.]/.test(e)?e:Ne(e,i?0:2,t,r),isTrailingSymbol:o,isSpaceBetweenSymbolAndNumber:a}},De=(e,t,r)=>{let n,a;return a=(r=Me(e,t,r)).isTrailingSymbol?(n=r.number,r.symbol):(n=r.symbol,r.number),r.isSpaceBetweenSymbolAndNumber?n+" "+a:n+a},Le=["DEAL_OF_THE_DAY","LIGHTNING_DEAL","BEST_DEAL"],Be=["CLAIMED","DEAL_OVER","SOLD_OUT","WAITLISTED","WAITLIST_FULL","WAITLIST_ONLY","UPCOMING"];function Re(e){return e&&e.prices&&e.prices.mainPrice&&e.prices.mainPrice.price&&e.prices.mainPrice.price.currency}const je=new RegExp(/^(www\.)?amazon\./,"i"),ke=new Set(["smile.amazon"]),Fe=(e,t)=>e&&e.type===p.PERCENT_OFF?.01*e.value*t:e&&e.type===p.AMOUNT_OFF?e.value:0,ze=(e,t)=>(0,n.a)(t)&&t.length?function(e,t){var r=(0,n.a)(e)?q:Te,a=arguments.length<3;return r(e,me(t),null,a,ge)}(t=function(e){return be(e,(e=>e&&("vendorFunded"===e.promotionSubcategory||"PRIMEDAY"===e.primeDayDisplayStyle)))}(function(e=[]){return be(e,"valid")}(t))||[],((t,r)=>!t||Fe(r,e)>Fe(t,e)?r:t),null):null;class Ze{constructor(e,t,r,n,a){this.renderPayload=e,this.productInformation=t,this.asin=r,this.amazonApiProduct=null==n?void 0:n.find((e=>e.asin===r)),this.additionalContext=a,this.offers=(null===(a=this.amazonApiProduct)||void 0===a?void 0:a.offers)||[]}get creativeModelData(){return Oe(this.renderPayload)||{}}get locale(){return this.renderPayload.locale||"en_US"}get adServerData(){return this.renderPayload.s9BidderData}get adId(){var e;return null===(e=this.adServerData)||void 0===e?void 0:e.adId}get creativeId(){var e;return null===(e=this.adServerData)||void 0===e?void 0:e.creativeId}get isOffsite(){var e;return null===(e=this.adServerData)||void 0===e?void 0:e.is3P}get isMobile(){var e;return!(null===(e=this.adServerData)||void 0===e||!e.isMobile)}get clickThroughUrlOverride(){var e;return null===(e=null===(e=this.creativeModelData)||void 0===e?void 0:e.properties)||void 0===e?void 0:e.clickThroughUrlOverride}get bidCache(){var e;return null===(e=this.additionalContext)||void 0===e?void 0:e.bidCache}get publisherExtraSpecifiedInfo(){var e;return null!==(e=this.renderPayload.publisherExtraSpecifiedInfo)&&void 0!==e?e:null===(e=this.bidCache)||void 0===e?void 0:e.publisherExtraSpecifiedInfo}get merchantId(){var{buyingPrice:e,merchantId:t,buyBoxPrice:r}=this.productInformation;return e&&t||(null==r?void 0:r.merchantId)}get landingPageMerchantId(){return this.productInformation.buyingPrice?this.merchantId:null}get productGroupTypeInformation(){return this.productInformation.productGroupTypeInformation||{}}get productCategory(){var e;return(null===(e=null===(e=null===(e=this.amazonApiProduct)||void 0===e?void 0:e.offers)||void 0===e?void 0:e[0])||void 0===e?void 0:e.productCategory)||{}}get associateTag(){return this.isOffsite?this.creativeAssociateTag:void 0}get creativeAssociateTag(){return this.creativeModelData.creativeAssociateTag}get isKindleOrFireTablet(){var e;return!C.has((null===(e=this.productGroupTypeInformation)||void 0===e?void 0:e.productGroupType)||"")&&(null===(e=this.productInformation)||void 0===e?void 0:e.purchasePipeline)!==g}get productPriceContainer(){return this.productInformation.buyBoxPrice}get productSubscribeAndSaveInformation(){return this.productInformation.buyBoxSubscribeAndSaveInformation||{}}get sns(){return this.productSubscribeAndSaveInformation}get marketplace(){return this.creativeModelData.market}get isDigitalProductOnMobile(){var e;return(this.isMobile||this.isKindleOrFireTablet)&&(m.has((null===(e=this.productGroupTypeInformation)||void 0===e?void 0:e.productGroupType)||"")||v.includes((null===(e=this.productGroupTypeInformation)||void 0===e?void 0:e.productGroupType)||""))}get isPriceSuppressed(){var e;return!(null===(e=this.productPriceContainer)||void 0===e||!e.violatesMAP)||this.isDigitalProductOnMobile}get hasAutomatedbadging(){var e;return!(null===(e=this.productInformation)||void 0===e||!e.dealBadge||0===Object.keys(this.productInformation.dealBadge).length)}get dealOffer(){return this.amazonApiProduct?function(e,t){const r=((e||{}).offers||[]).filter((e=>e.deal&&function(e,t){return e.dealStatus.status.includes("CAN_ADD_TO_CART")&&!e.dealStatus.status.some((e=>Be.includes(e)))&&(!t||Le.includes(e.dealType))}(e.deal,t)));let n=r.length&&r.reduce(((e,t)=>Re(t)&&Re(e)&&t.prices.mainPrice.price.currency.amount<e.prices.mainPrice.price.currency.amount?t:e),r[0]);return n=Re(n)&&n,n&&(n.isSuppressedByCutoff=95<=n.deal.dealStatus.percentClaimed||function(e){const t=e.dealStatus.status;let r=e.dealStatus.endDate;return r=r&&new Date(r),r&&isFinite(r)?r.getTime()-(new Date).getTime()<3e5:t.some((e=>"EXPIRING_SOON"===e))}(n.deal)),n}(this.amazonApiProduct,!this.hasAutomatedbadging):{}}get dealDetails(){var e;let t=!1,r=!1,n=!1,a=!1;return null!==(e=this.offers)&&void 0!==e&&e.length&&(a=this.offers.some((e=>{if(!e)return!1;var a=W(e,"prices.mainPrice"),o=W(a,"price.currency.amount");if(null!==(a=e.promotions)&&void 0!==a&&a.some((e=>"PRIMEDAY"===(null==e?void 0:e.primeDayDisplayStyle))))return t=!0;if(!t&&o&&e.customerBenefitSavings)switch(e.customerBenefitSavings.tag){case"PRIMEDAY":return t=!0;case"BLACKFRIDAY":r=!0;break;case"CYBERMONDAY":n=!0}return!1}))),{hasPrimeDayDeal:t,hasBlackFridayDeal:r,hasCyberMondayDeal:n,isPmpOrMario:a}}get productPriceWithoutDealOrPromotion(){var e=(null===(e=this.productPriceContainer)||void 0===e?void 0:e.price)||{};return this.isPriceSuppressed?0:e.amount}get mainPrice(){return this.isDeal?W(this.dealOffer,"prices.mainPrice"):{}}get dealOfferMerchant(){return this.isDeal?W(this.dealOffer,"merchant.encryptedMerchantId"):""}get snsPromotionDetails(){let e,t,r,a,o,i,s,l;if(n.J.has(this.marketplace)&&!this.isDeal){e=!1,r=ze(this.productPriceWithoutDealOrPromotion,this.productInformation.applicablePromotions);let n=Fe(r,this.productPriceWithoutDealOrPromotion);var u=this.productSubscribeAndSaveInformation;this.sns&&this.sns.isEligibleForSubscribeAndSave&&!this.hasPrimeDayDeal&&(s={type:"Percent off",value:0===this.productPriceWithoutDealOrPromotion?0:u.snsSignUpPrice&&u.snsSignUpPrice.amount&&Math.round((this.productPriceWithoutDealOrPromotion-u.snsSignUpPrice.amount)/this.productPriceWithoutDealOrPromotion*100)},l=Fe(s,this.productPriceWithoutDealOrPromotion),l>n&&(e=!0,r=s,n=l),this.productPriceWithoutDealOrPromotion&&u.snsSignUpPrice.amount&&(a=u.snsSignUpPrice.amount,i=this.productPriceWithoutDealOrPromotion,o=De(this.productPriceWithoutDealOrPromotion,this.marketplace,this.locale))),r&&n&&(t=r)}return{isSnsDiscount:e,snsDiscountData:t,promotion:r,snsPromotion:s,productPriceWithSnsDiscount:a,formattedFullPriceWithSnsDiscount:o,fullPriceWithSnsDiscount:i,snsDiscount:l}}get productShippingInformation(){var e;return this.isDeal?{isEligibleForPrimeShipping:this.dealOffer.primeEligible}:(null===(e=this.productInformation)||void 0===e?void 0:e.buyBoxShippingInformation)||{}}get bestPromotionWithoutSns(){return ze(this.productPriceWithoutDealOrPromotion,this.productInformation.applicablePromotions)}get discountWithoutSns(){return Fe(this.bestPromotionWithoutSns,this.productPriceWithoutDealOrPromotion)}get promotion(){var e;return(null===(e=this.snsPromotionDetails)||void 0===e?void 0:e.snsDiscount)>this.discountWithoutSns?null===(e=this.snsPromotionDetails)||void 0===e?void 0:e.snsPromotion:this.bestPromotionWithoutSns}get discount(){var e;return(null===(e=this.snsPromotionDetails)||void 0===e?void 0:e.snsDiscount)>this.discountWithoutSns?null===(e=this.snsPromotionDetails)||void 0===e?void 0:e.snsDiscount:this.discountWithoutSns}get isSourceF3(){var e;return!(null===(e=null===(e=this.additionalContext)||void 0===e?void 0:e.sourcingContext)||void 0===e||!e.isSourceF3)}get price(){var e=this.snsPromotionDetails.productPriceWithSnsDiscount||this.productPriceWithoutDealOrPromotion;return{amount:e,displayString:De(e,this.marketplace,this.locale),currencySymbol:Me(e,this.marketplace,this.locale).symbol||""}}get isDeal(){var e;return Boolean(this.amazonApiProduct&&this.hasAutomatedbadging&&((null===(e=this.dealOffer)||void 0===e?void 0:e.isMockDealOffer)||!(null!==(e=this.dealOffer)&&void 0!==e&&e.isSuppressedByCutoff)&&(null===(e=null===(e=null===(e=null===(e=null===(e=this.dealOffer)||void 0===e?void 0:e.prices)||void 0===e?void 0:e.mainPrice)||void 0===e?void 0:e.price)||void 0===e?void 0:e.currency)||void 0===e?void 0:e.amount)<=(null===(e=null===(e=this.productPriceContainer)||void 0===e?void 0:e.price)||void 0===e?void 0:e.amount)))}get isPrime(){return!(!this.productShippingInformation.isEligibleForPrimeShipping&&!this.productShippingInformation.isEligibleForPrimeShipping||this.isSourceF3)}get hasCyberMondayDeal(){return this.dealDetails.hasBlackFridayDeal}get isPmpOrMario(){return this.dealDetails.isPmpOrMario}get hasBlackFridayDeal(){return this.dealDetails.hasBlackFridayDeal}get hasPrimeDayDeal(){return this.dealDetails.hasPrimeDayDeal}get customerReviewSummary(){return this.productInformation.customerReviewSummary}get detailsPageLinkWithTrackers(){const e=new Ie(n.B[this.creativeModelData.market],null===(a=null===(a=this.creativeModelData)||void 0===a?void 0:a.aaxRenderingContext)||void 0===a?void 0:a.impressionToken),t=this.additionalContext.originUrlDomain;let r=(null===(a=this.publisherExtraSpecifiedInfo)||void 0===a?void 0:a.clickTrackingPlaceholder)||"&pd_rd_plhdr=t"!==this.creativeModelData.clickTrackingPlaceholder&&this.creativeModelData.clickTrackingPlaceholder;r=r&&r.replace(/^[?&]/,"");var a={merchantId:this.landingPageMerchantId,creativeId:this.creativeId,adId:this.adId,associateTag:this.associateTag,percolateClickTrackingParams:r};return((e,t)=>{try{if(ke.has(t)){const r=new URL(e);if(je.test(r.hostname))return r.hostname=r.hostname.replace(je,t+"."),r.toString()}}catch(e){}return e})(e.buildDetailPageLink(this.asin,a),t)}get adLink(){return this.clickThroughUrlOverride||this.detailsPageLinkWithTrackers||""}get isSnsDiscount(){return!this.isDeal&&!!this.snsPromotionDetails.isSnsDiscount}get fullPrice(){var e,t;let r;return this.isDeal&&null!==(e=this.mainPrice)&&void 0!==e&&e.basisPrice&&null!==(t=this.mainPrice)&&void 0!==t&&t.savings&&this.mainPrice.savings.percentageDisplayString&&this.mainPrice.basisPrice.currency.amount!==this.mainPrice.price.currency.amount&&(r=this.mainPrice.basisPrice.currency.amount),this.isPriceSuppressed&&(r=void 0),r=null!==(t=null===(t=this.snsPromotionDetails)||void 0===t?void 0:t.fullPriceWithSnsDiscount)&&void 0!==t?t:r,r?{amount:r,displayString:De(r,this.marketplace,this.locale),currencySymbol:Me(r,this.marketplace,this.locale).symbol||""}:void 0}get dealType(){var e;return null===(e=null===(e=this.dealOffer)||void 0===e?void 0:e.deal)||void 0===e?void 0:e.dealType}get currencySymbol(){return this.productPriceWithoutDealOrPromotion&&Me(this.productPriceWithoutDealOrPromotion,this.marketplace,this.locale).symbol||""}get pricePerUnitMessage(){if("DE"!==this.marketplace)return"";var e=this.productInformation.buyBoxPricePerUnit;if(!e||!this.productPriceWithoutDealOrPromotion)return"";const{unitCountModifier:t,displayUnitValue:r,displayUnitValueDescription:n}=e;if(!t||1===t||t<=0)return"";let a=`${Ne(this.productPriceWithoutDealOrPromotion/t,2,this.marketplace,this.locale)} ${this.currencySymbol} / `;return r&&"1"!==r&&(a+=r.endsWith(".0")?r.replace(".0",""):r),n&&(a+=n),`(${a})`}get automatedBadgingData(){return this.isDeal?this.productInformation.dealBadge:void 0}get discountData(){return!this.isDeal&&this.promotion&&this.discount?this.promotion:null}get buyBoxPricePerUnit(){return this.productInformation.buyBoxPricePerUnit}get dealAtcUrl(){return this.isDeal&&this.mainPrice.price.currency.amount===this.productPriceContainer.price.amount&&this.dealOfferMerchant===this.merchantId?this.mainPrice.price.addToCartUrl:null}get violatesMap(){var e;return!(null===(e=this.productPriceContainer)||void 0===e||!e.violatesMAP)}get productInStock(){var e;return null===(e=this.productInformation)||void 0===e?void 0:e.productInStock}get quantityDiscounts(){return this.productInformation.quantityDiscounts}get rating(){var{rating:e=0,count:t=0}=this.customerReviewSummary||{};return 0<t&&3.25<e?e:void 0}get ratingCount(){var{count:e=0}=this.customerReviewSummary||{};return 0<e?e:void 0}get productImages(){var e;const t=(null===(e=null===(e=this.offers)||void 0===e?void 0:e[0])||void 0===e?void 0:e.productImages)||[];return null==t?void 0:t.map((e=>{var{physicalId:t,extension:r}=e;return{...e,url:""+x+t+"."+r}}))}}class Ge{constructor(e,t,r,n){this.productInformation=e,this.amazonApiProducts=r,this.productDetails=new Ze(t,e,e.asin||"",r,n)}get asin(){return this.productInformation.asin}get title(){return this.productInformation.itemTitle}get price(){return this.productDetails.price}get fullPrice(){var e;return null===(e=this.productDetails)||void 0===e?void 0:e.fullPrice}get merchantId(){return this.productInformation.merchantId}get merchantName(){return this.productInformation.buyBoxMerchantName}get brandName(){var e=null!==(e=null===(e=null===(e=null===(e=null===(e=null===(e=this.amazonApiProducts)||void 0===e?void 0:e[0])||void 0===e?void 0:e.offers)||void 0===e?void 0:e[0])||void 0===e?void 0:e.contributors)||void 0===e?void 0:e[0])&&void 0!==e?e:{};return null==e?void 0:e.name}get productCategory(){return this.productDetails.productCategory||{}}get productType(){var e;return null===(e=this.productDetails.productCategory)||void 0===e?void 0:e.productType}get glCode(){var e;return null===(e=null===(e=this.productDetails.productCategory)||void 0===e?void 0:e.glProductGroup)||void 0===e?void 0:e.symbol}get ratingCount(){return this.productDetails.ratingCount}get rating(){return this.productDetails.rating}get adLink(){return this.productDetails.adLink}get detailsPageLinkWithTrackers(){return this.productDetails.detailsPageLinkWithTrackers}get productImages(){return this.productDetails.productImages}get isPrime(){return this.productDetails.isPrime}get dealBadge(){return this.productDetails.automatedBadgingData}get currencyCode(){var e;return null===(e=null===(e=null===(e=this.productInformation)||void 0===e?void 0:e.buyBoxPrice)||void 0===e?void 0:e.price)||void 0===e?void 0:e.code}}class We{constructor(e){this.genericCacheEntriesMap={},this.experiments={},this.matchingMlExperiments={},e&&e.forEach((e=>{var t;e.namespace&&e.value&&We.ALLOWED_NAMESPACES.has(e.namespace)&&(t="string"==typeof e.value?JSON.parse(e.value):e.value,e.namespace&&t.experiments&&We.ALLOWED_EXPERIMENT_NAMESPACES.has(e.namespace)&&(this.experiments=Object.assign(this.experiments,t.experiments)),this.genericCacheEntriesMap[e.namespace]=this.genericCacheEntriesMap[e.namespace]?this.pseudoDeepMergeParameters(this.genericCacheEntriesMap[e.namespace],t):t)}))}pseudoDeepMergeParameters(e,t){return Object.keys(t).filter((t=>Object.keys(e).includes(t))).forEach((r=>{We.IGNORED_KEYS.includes(r)||(t[""+r]=Object.assign(e[""+r],t[""+r]))})),Object.assign(e,t)}mergeCache(e,t,r=!0){if(!this.genericCacheEntriesMap[t])return e;const n=this.genericCacheEntriesMap[t];return We.IGNORED_KEYS.forEach((e=>{delete n[e]})),r?_e(e,n):Object.assign(e,n)}setMatchingMlExperiments(e){var t,r,a;if(!e)return{};for([r,a]of(this.matchingMlExperiments={},Object.entries(e)))if(a!==n.K){if(r===n.L.Randomization){this.matchingMlExperiments={},this.matchingMlExperiments[r+":"+a]=[];break}null!==(t=null===(t=this.experiments)||void 0===t?void 0:t[r])&&void 0!==t&&t[a]&&(this.matchingMlExperiments[r+":"+a]=this.experiments[r][a])}return this.matchingMlExperiments}}We.SD_CREATIVE_PROPERTIES="sd_creative",We.SD_CREATIVE_PARAMETERS="sd_creative_parameters",We.SPONSORED_BRANDS_CREATIVE_PROPERTIES="sb_creative",We.SD_NON_ENDEMIC_SUPLEMENT_DATA="curie_ad_creatives_supplemental_data",We.ALLOWED_NAMESPACES=new Set([We.SD_CREATIVE_PROPERTIES,We.SD_CREATIVE_PARAMETERS,We.SPONSORED_BRANDS_CREATIVE_PROPERTIES,We.SD_NON_ENDEMIC_SUPLEMENT_DATA]),We.ALLOWED_EXPERIMENT_NAMESPACES=new Set([We.SD_CREATIVE_PARAMETERS]),We.IGNORED_KEYS=["experiments"];const Ue="abgateway";function Ve(e,t){let r=t&&t.renderContext&&t.renderContext.pageType||e&&e.placementInfo&&(e.placementInfo.pageType||"string"==typeof e.placementInfo.slot&&(null===(e=e.placementInfo)||void 0===e?void 0:e.slot.split("_")[0]));return r=r&&r.toLowerCase(),r}class He{constructor(e,t,r){this.renderingOptions=e,this.additionalContext=t,this.publisherExtraSpecifiedInfo=r}get isSourceF3(){var e;return!(null===(e=null===(e=this.additionalContext)||void 0===e?void 0:e.sourcingContext)||void 0===e||!e.isSourceF3)}get isB2BHomePageRequest(){return function(e,t){const r=Ve(e,t);return"string"==typeof r&&r.startsWith(Ue)}(this.renderingOptions,this.additionalContext)}get isCustomerB2B(){var e;return!(null===(e=null===(e=this.publisherExtraSpecifiedInfo)||void 0===e?void 0:e.userInfo)||void 0===e||!e.business)||function(e,t){const r=Ve(e,t);return!("string"!=typeof r||!(r.startsWith(Ue)||r.startsWith("abdetail")||r.startsWith("absearch")||r.startsWith("abevents")))}(this.renderingOptions,this.additionalContext)}get isFreshEligible(){var e;return(null===(e=null===(e=this.additionalContext)||void 0===e?void 0:e.sourcingContext)||void 0===e?void 0:e.programName)===h&&!this.isSourceF3&&!this.isCustomerB2B}get isWholeFoodsEligible(){var e;return(null===(e=null===(e=this.additionalContext)||void 0===e?void 0:e.sourcingContext)||void 0===e?void 0:e.programName)===y&&!this.isSourceF3&&!this.isCustomerB2B}}(r=Pe=Pe||{}).MODERATION="MODERATION",r.LOW="LOW",r.MEDIUM="MEDIUM",r.HIGH="HIGH";const Ye=e=>"https://m.media-amazon.com/"+e,qe=e=>{var t,r=null===(t=null==e?void 0:e.properties)||void 0===t?void 0:t.TETRIS_VIDEO_SINGLE_MEDIA,n=null===(t=null==e?void 0:e.properties)||void 0===t?void 0:t.TETRIS_BRAND_VIDEO_SINGLE_MEDIA;switch(e.creativeType){case"VIDEO":return r;case"BRAND_VIDEO":return n;default:return r||n}},Xe=e=>{var t=qe(e),{variants:r,transcodedMedias:n=[]}=null!=t?t:{},a=null===(o=null==r?void 0:r.iOS)||void 0===o?void 0:o.videoUrl,o=null===(i=null==r?void 0:r.moderation)||void 0===i?void 0:i.videoUrl,i=parseFloat(((null!==(r=null==t?void 0:t.duration)&&void 0!==r?r:0)/1e3).toFixed(1));let s={};r=e.creativeType||"";try{s=JSON.parse(Buffer.from((null==t?void 0:t.metadata)||"","base64").toString("utf8"))}catch(e){}t={creativeType:r};let l=[];if(0<(null==n?void 0:n.length)?l=n:a&&o&&(a={[Pe.MODERATION]:o,[Pe.MEDIUM]:a,[Pe.HIGH]:a,[Pe.LOW]:a},l=Object.entries(a).map((([e,t])=>({transcodeType:e,url:t})))),l.length){const e={video:{duration:i,disabledAudio:!0!==(null==s?void 0:s.hasAudio),transcodedMedias:l}};Object.assign(t,e)}const u=(null===(i=e.properties)||void 0===i?void 0:i.common)||{},{customImage:c,secondaryCustomImageList:d,sponsor:p,headline:m,featuredImage:f}=u,g=[...c?[{url:Ye(c)}]:[],...Array.isArray(d)?d.map((e=>({url:Ye(e)}))):[]];return Object.assign(t,{creativeType:r,...g.length&&{horizontalImages:g},sponsor:p,headline:m,brandLogo:f?{url:Ye(f)}:void 0}),t}},3832:(e,t,r)=>{"use strict";r.d(t,{$:()=>At,A:()=>Wt,B:()=>n,C:()=>c,D:()=>o,E:()=>f,F:()=>y,G:()=>d,H:()=>l,I:()=>p,J:()=>i,K:()=>C,L:()=>x,M:()=>Fe,N:()=>a,O:()=>m,P:()=>u,Q:()=>g,R:()=>s,S:()=>_,T:()=>h,U:()=>pt,V:()=>v,W:()=>b,X:()=>Tt,Y:()=>wt,Z:()=>Pt,_:()=>Ot,a:()=>L,a0:()=>It,a1:()=>Nt,a2:()=>Mt,a3:()=>Dt,a4:()=>Lt,a5:()=>Bt,a6:()=>Rt,a7:()=>jt,a8:()=>Ft,a9:()=>zt,aa:()=>Zt,ab:()=>Gt,b:()=>M,c:()=>B,d:()=>K,e:()=>ue,f:()=>te,g:()=>ne,h:()=>Ze,i:()=>D,j:()=>Ke,k:()=>ct,l:()=>he,m:()=>Ge,n:()=>xe,o:()=>Pe,p:()=>le,q:()=>ge,r:()=>re,s:()=>ie,t:()=>Ae,u:()=>J,v:()=>Ue,w:()=>ht,x:()=>z,y:()=>yt,z:()=>Ve}),e=r.hmd(e);const n={US:{region:"na",domain:"amazon.com",marketplaceId:"ATVPDKIKX0DER",currency:"$",media:"01"},CA:{region:"na",domain:"amazon.ca",marketplaceId:"A2EUQ1WTGCTBG2",currency:"$",media:"15"},MX:{region:"na",domain:"amazon.com.mx",marketplaceId:"A1AM78C64UM0Y8",currency:"$",media:"30"},BR:{region:"na",domain:"amazon.com.br",marketplaceId:"A2Q3Y263D00KWC",currency:"R$",media:"32"},UK:{region:"na",domain:"amazon.co.uk",marketplaceId:"A1F83G8C2ARO7P",currency:"£",media:"02"},DE:{region:"na",domain:"amazon.de",marketplaceId:"A1PA6795UKMFR9",currency:"€",media:"03"},FR:{region:"na",domain:"amazon.fr",marketplaceId:"A13V1IB3VIYZZH",currency:"€",media:"08"},IT:{region:"na",domain:"amazon.it",marketplaceId:"APJ6JRA9NG5V4",currency:"€",media:"29"},ES:{region:"na",domain:"amazon.es",marketplaceId:"A1RKKUPIHCS9HS",currency:"€",media:"30"},IN:{region:"na",domain:"amazon.in",marketplaceId:"A21TJRUUN4KGV",currency:"₹",media:"31"},AE:{region:"na",domain:"amazon.ae",marketplaceId:"A2VIGQ35RCS4UG",currency:"AED",media:"39"},SA:{region:"na",domain:"amazon.sa",marketplaceId:"A17E79C6D8DWNP",currency:"ريـال",media:"40"},NL:{region:"na",domain:"amazon.nl",marketplaceId:"A1805IZSGTT6HS",currency:"€",media:"37"},SE:{region:"na",domain:"amazon.se",marketplaceId:"A2NODRKZP88ZB9",currency:"kr",media:"46"},TR:{region:"na",domain:"amazon.com.tr",marketplaceId:"A33AVAJ2PDY3EV",currency:"TL",media:"41"},PL:{region:"na",domain:"amazon.pl",marketplaceId:"A1C3SOZRARQ6R3",currency:"zÅ‚",media:"48"},EG:{region:"na",domain:"amazon.eg",marketplaceId:"ARBP9OOSHTCHU",currency:"EGP",media:"42"},BE:{region:"na",domain:"amazon.com.be",marketplaceId:"A1RKKUPIHCS9HS",currency:"€",media:"51"},JP:{region:"na",domain:"amazon.co.jp",marketplaceId:"A1VC38T7YXB528",currency:"ï¿¥",media:"09"},AU:{region:"na",domain:"amazon.com.au",marketplaceId:"A39IBJ37TRP1C6",currency:"$",media:"35"},SG:{region:"na",domain:"amazon.sg",marketplaceId:"A19VAU5U5O7RUS",currency:"S$",media:"65"},CN:{region:"na",domain:"amazon.cn",marketplaceId:"AAHKV2X7AFYLW",currency:"Â¥ ",media:"28"}},a="en_US",o="US",i=new Set(["US","CA","BR","MX","UK","DE","FR","IT","ES","NL","IN","AE","SE","SA","TR","EG","PL","JP","AU","SG"]),s=new Set(["DE","FR","IT","ES","SE","TR","PL","BE"]),l=new Set(["DE","FR","IT","ES","NL","TR","BE","PL"]),u=new Set(["TR"]),c=new Set(["DE","FR","IT","ES","BR","NL","SE","PL","TR","BE"]),d=new Set(["fr_CA"]),p=new Set([]),m=new Set([]),f=new Set(["fr_CA"]),g=new Set(["zh_CN","tr_TR","ta_IN","sv_SE","pt_BR","nl_NL","ko_KR","ja_JP","it_IT","hi_IN","fr_FR","fr_CA","es_US","es_MX","es_ES","en_US","en_SG","en_IN","en_GB","en_CA","en_AU","de_DE","ar_AE"]),h=new Map([["US","en_US"],["CA","en_CA"],["MX","es_MX"],["BR","pt_BR"],["UK","en_GB"],["DE","de_DE"],["FR","fr_FR"],["IT","it_IT"],["ES","es_ES"],["IN","en_IN"],["AE","en_AE"],["SA","ar_AE"],["NL","nl_NL"],["JP","ja_JP"],["AU","en_AU"],["SG","en_SG"],["CN","zh_CN"],["SE","sv_SE"],["TR","tr_TR"],["PL","pl_PL"],["EG","ar_AE"],["BE","fr_BE"]]),y=n,v=Object.keys(y),b=[...h.values()],C="C";class x{}x.Randomization="PERC_RANDOMIZATION";var E="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,S="object"==typeof self&&self&&self.Object===Object&&self,_=(vt=E||S||Function("return this")()).Symbol,T=(V=Object.prototype).hasOwnProperty,w=V.toString,P=_?_.toStringTag:void 0,O=Object.prototype.toString,A="[object Null]",I="[object Undefined]",N=_?_.toStringTag:void 0;function M(e){return null==e?void 0===e?I:A:N&&N in Object(e)?function(e){var t=T.call(e,P),r=e[P];try{var n=!(e[P]=void 0)}catch(e){}var a=w.call(e);return n&&(t?e[P]=r:delete e[P]),a}(e):O.call(e)}function D(e){return null!=e&&"object"==typeof e}var L=Array.isArray;function B(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var R="[object AsyncFunction]",j="[object Function]",k="[object GeneratorFunction]",F="[object Proxy]";function z(e){return!!B(e)&&((e=M(e))==j||e==k||e==R||e==F)}t=vt["__core-js_shared__"];var Z=(r=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",G=Function.prototype.toString;function W(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var U=/^\[object .+?Constructor\]$/,V=(S=Function.prototype,Object.prototype),H=(t=S.toString,r=V.hasOwnProperty,RegExp("^"+t.call(r).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"));function Y(e,t){return!B(t=e=null==e?void 0:e[t])||Z&&Z in t||!(z(t)?H:U).test(W(t))?void 0:e}S=Y(vt,"WeakMap");var q=Object.create,X=function(e){return B(e)?q?q(e):(Q.prototype=e,e=new Q,Q.prototype=void 0,e):{}};function Q(){}function J(e,t){var r=-1,n=e.length;for(t=t||Array(n);++r<n;)t[r]=e[r];return t}var K=function(){try{var e=Y(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),$=9007199254740991,ee=/^(?:0|[1-9]\d*)$/;function te(e,t){var r=typeof e;return!!(t=null==t?$:t)&&("number"==r||"symbol"!=r&&ee.test(e))&&-1<e&&e%1==0&&e<t}function re(e,t,r){"__proto__"==t&&K?K(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ne(e,t){return e===t||e!=e&&t!=t}var ae=Object.prototype.hasOwnProperty;function oe(e,t,r){var n=e[t];ae.call(e,t)&&ne(n,r)&&(void 0!==r||t in e)||re(e,t,r)}function ie(e,t,r,n){var a=!r;r=r||{};for(var o=-1,i=t.length;++o<i;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;(a?re:oe)(r,s,l=void 0===l?e[s]:l)}return r}var se=9007199254740991;function le(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=se}function ue(e){return null!=e&&le(e.length)&&!z(e)}var ce=Object.prototype;function de(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ce)}function pe(e){return D(e)&&"[object Arguments]"==M(e)}var me=(V=Object.prototype).hasOwnProperty,fe=V.propertyIsEnumerable,ge=pe(function(){return arguments}())?pe:function(e){return D(e)&&me.call(e,"callee")&&!fe.call(e,"callee")},he=((V=(r=(t="object"==typeof exports&&exports&&!exports.nodeType&&exports)&&e&&!e.nodeType&&e)&&r.exports===t?vt.Buffer:void 0)?V.isBuffer:void 0)||function(){return!1},ye={};function ve(e){return function(t){return e(t)}}ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;var be=(r="object"==typeof exports&&exports&&!exports.nodeType&&exports)&&e&&!e.nodeType&&e,Ce=be&&be.exports===r&&E.process,xe=(V=(t=function(){try{return be&&be.require&&be.require("util").types||Ce&&Ce.binding&&Ce.binding("util")}catch(e){}}())&&t.isTypedArray)?ve(V):function(e){return D(e)&&le(e.length)&&!!ye[M(e)]},Ee=Object.prototype.hasOwnProperty;function Se(e,t){var r,n=L(e),a=!n&&ge(e),o=!n&&!a&&he(e),i=!n&&!a&&!o&&xe(e),s=n||a||o||i,l=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=l.length;for(r in e)!t&&!Ee.call(e,r)||s&&("length"==r||o&&("offset"==r||"parent"==r)||i&&("buffer"==r||"byteLength"==r||"byteOffset"==r)||te(r,u))||l.push(r);return l}function _e(e,t){return function(r){return e(t(r))}}var Te=_e(Object.keys,Object),we=Object.prototype.hasOwnProperty;function Pe(e){return(ue(e)?Se:function(e){if(!de(e))return Te(e);var t,r=[];for(t in Object(e))we.call(e,t)&&"constructor"!=t&&r.push(t);return r})(e)}var Oe=Object.prototype.hasOwnProperty;function Ae(e){return ue(e)?Se(e,!0):function(e){if(!B(e))return function(){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}();var t,r=de(e),n=[];for(t in e)("constructor"!=t||!r&&Oe.call(e,t))&&n.push(t);return n}(e)}var Ie=Y(Object,"create"),Ne=Object.prototype.hasOwnProperty,Me=Object.prototype.hasOwnProperty;function De(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Le(e,t){for(var r=e.length;r--;)if(ne(e[r][0],t))return r;return-1}De.prototype.clear=function(){this.__data__=Ie?Ie(null):{},this.size=0},De.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},De.prototype.get=function(e){var t=this.__data__;if(Ie){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Ne.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return Ie?void 0!==t[e]:Me.call(t,e)},De.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ie&&void 0===t?"__lodash_hash_undefined__":t,this};var Be=Array.prototype.splice;function Re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Re.prototype.clear=function(){this.__data__=[],this.size=0},Re.prototype.delete=function(e){var t=this.__data__;return!((e=Le(t,e))<0||(e==t.length-1?t.pop():Be.call(t,e,1),--this.size,0))},Re.prototype.get=function(e){var t=this.__data__;return(e=Le(t,e))<0?void 0:t[e][1]},Re.prototype.has=function(e){return-1<Le(this.__data__,e)},Re.prototype.set=function(e,t){var r=this.__data__,n=Le(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var je=Y(vt,"Map");function ke(e,t){var r=e.__data__;return("string"==(e=typeof t)||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function Fe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ze(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}Fe.prototype.clear=function(){this.size=0,this.__data__={hash:new De,map:new(je||Re),string:new De}},Fe.prototype.delete=function(e){return e=ke(this,e).delete(e),this.size-=e?1:0,e},Fe.prototype.get=function(e){return ke(this,e).get(e)},Fe.prototype.has=function(e){return ke(this,e).has(e)},Fe.prototype.set=function(e,t){var r=ke(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var Ze=_e(Object.getPrototypeOf,Object);function Ge(e){e=this.__data__=new Re(e),this.size=e.size}Ge.prototype.clear=function(){this.__data__=new Re,this.size=0},Ge.prototype.delete=function(e){var t=this.__data__;e=t.delete(e);return this.size=t.size,e},Ge.prototype.get=function(e){return this.__data__.get(e)},Ge.prototype.has=function(e){return this.__data__.has(e)},Ge.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Re){var n=r.__data__;if(!je||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Fe(n)}return r.set(e,t),this.size=r.size,this};var We=(V=(E=(r="object"==typeof exports&&exports&&!exports.nodeType&&exports)&&e&&!e.nodeType&&e)&&E.exports===r?vt.Buffer:void 0)?V.allocUnsafe:void 0;function Ue(e,t){return t?e.slice():(t=e.length,t=We?We(t):new e.constructor(t),e.copy(t),t)}function Ve(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}function He(){return[]}var Ye=Object.prototype.propertyIsEnumerable,qe=Object.getOwnPropertySymbols,Xe=qe?function(e){return null==e?[]:(e=Object(e),Ve(qe(e),(function(t){return Ye.call(e,t)})))}:He,Qe=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ze(t,Xe(e)),e=Ze(e);return t}:He;function Je(e,t,r){return t=t(e),L(e)?t:ze(t,r(e))}function Ke(e){return Je(e,Pe,Xe)}function $e(e){return Je(e,Ae,Qe)}e=Y(vt,"DataView"),E=Y(vt,"Promise"),r=Y(vt,"Set");var et="[object Map]",tt="[object Promise]",rt="[object Set]",nt="[object WeakMap]",at="[object DataView]",ot=W(e),it=W(je),st=W(E),lt=W(r),ut=W(S),ct=(V=M,V=e&&V(new e(new ArrayBuffer(1)))!=at||je&&V(new je)!=et||E&&V(E.resolve())!=tt||r&&V(new r)!=rt||S&&V(new S)!=nt?function(e){var t=M(e);if(e=(e="[object Object]"==t?e.constructor:void 0)?W(e):"")switch(e){case ot:return at;case it:return et;case st:return tt;case lt:return rt;case ut:return nt}return t}:V),dt=Object.prototype.hasOwnProperty,pt=vt.Uint8Array;function mt(e){var t=new e.constructor(e.byteLength);return new pt(t).set(new pt(e)),t}var ft=/\w*$/,gt=(vt=_?_.prototype:void 0)?vt.valueOf:void 0;function ht(e,t){return t=t?mt(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.length)}function yt(e){return"function"!=typeof e.constructor||de(e)?{}:X(Ze(e))}var vt,bt=(vt=t&&t.isMap)?ve(vt):function(e){return D(e)&&"[object Map]"==ct(e)},Ct=(t=t&&t.isSet)?ve(t):function(e){return D(e)&&"[object Set]"==ct(e)},xt="[object Arguments]",Et="[object Function]",St="[object Object]",_t={};_t[xt]=_t["[object Array]"]=_t["[object ArrayBuffer]"]=_t["[object DataView]"]=_t["[object Boolean]"]=_t["[object Date]"]=_t["[object Float32Array]"]=_t["[object Float64Array]"]=_t["[object Int8Array]"]=_t["[object Int16Array]"]=_t["[object Int32Array]"]=_t["[object Map]"]=_t["[object Number]"]=_t[St]=_t["[object RegExp]"]=_t["[object Set]"]=_t["[object String]"]=_t["[object Symbol]"]=_t["[object Uint8Array]"]=_t["[object Uint8ClampedArray]"]=_t["[object Uint16Array]"]=_t["[object Uint32Array]"]=!0,_t["[object Error]"]=_t[Et]=_t["[object WeakMap]"]=!1;const Tt={"PERC (Responsive)":{format:"responsive"}},wt={contentType:"CUSTOM_IMAGE",rectCustomImage:{url:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/ce3a8b99-0d08-49bf-a4d9-98b98f66f9de.jpg",croppingCoordinates:{top:1154,left:0,width:2400,height:1256}},squareCustomImage:{url:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/ce3a8b99-0d08-49bf-a4d9-98b98f66f9de.jpg",croppingCoordinates:{top:582,left:0,width:2400,height:2400}}},Pt={contentType:"HL",headline:"Generic cache test headline",brandLogo:{url:"https://m.media-amazon.com/test.png",croppingCoordinates:{top:1,left:2,width:620,height:130}}},Ot={genericCacheEntries:[{namespace:"sd_creative",advertiserId:"30876739027",key:"20000588097292",version:1,value:JSON.stringify(Pt),namespaceVersion:"1.0"}]},At={genericCacheEntries:[{namespace:"sd_creative",advertiserId:"30876739027",key:"20000588097292",version:1,value:JSON.stringify(wt),namespaceVersion:"1.0"}]},It={creativeType:"VIDEO",properties:{common:{landingPage:{type:"DETAIL_PAGE",value:"https://www.amazon.com/dp/B0BLZTBBV6"}},TETRIS_VIDEO_SINGLE_MEDIA:{id:"amzn1.assetlibrary.asset1.3752df15be025229f4249517128ca9ed:version_v1",previewImageUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/64e388b0-d1c6-4e33-bd85-eb18a5bdf177.mp4/r/THUMBNAIL_360P_FRAME_3_CAPTURE_2.JPG",aspectRatio:1.7777777777777777,duration:25600,metadata:"eyJwcmV2aWV3SW1hZ2VVcmwiOiJodHRwczovL20ubWVkaWEtYW1hem9uLmNvbS9pbWFnZXMvUy9hbC1uYS05ZDU3OTFjZi0zZmFmLzY0ZTM4OGIwLWQxYzYtNGUzMy1iZDg1LWViMThhNWJkZjE3Ny5tcDQvci9USFVNQk5BSUxfMzYwUF9GUkFNRV8zX0NBUFRVUkVfMi5KUEciLCJhc3BlY3RSYXRpbyI6MS43Nzc3Nzc3Nzc3Nzc3Nzc3LCJkdXJhdGlvbiI6MjU2MDAsImhhc0F1ZGlvIjp0cnVlLCJsb2NhbGl6YXRpb25NZXRhZGF0YSI6bnVsbCwiY29udGVudEhhc2giOiJlZjc4OTQ4ZGQ0YzM5MmM0ZDEwZmUzYjY1NjA2MzVhNyIsIm1lZGlhTGF5b3V0Ijp7Im9yaWVudGF0aW9uIjoiTEFORFNDQVBFIiwiZGlzcGxheUFzcGVjdFJhdGlvIjoiMTY6OSJ9fQ==",corruptVideoError:null,experiment:null,variants:{iOS:{videoUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/64e388b0-d1c6-4e33-bd85-eb18a5bdf177.mp4/productVideoOptimized.mp4",contentType:"video/mp4",metadata:"eyJ2aWRlb1VybCI6Imh0dHBzOi8vbS5tZWRpYS1hbWF6b24uY29tL2ltYWdlcy9TL2FsLW5hLTlkNTc5MWNmLTNmYWYvNjRlMzg4YjAtZDFjNi00ZTMzLWJkODUtZWIxOGE1YmRmMTc3Lm1wNC9wcm9kdWN0VmlkZW9PcHRpbWl6ZWQubXA0IiwiY29udGVudFR5cGUiOiJ2aWRlby9tcDQifQ=="},moderation:{videoUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/64e388b0-d1c6-4e33-bd85-eb18a5bdf177.mp4/moderation",contentType:"video/mp4",metadata:"eyJ2aWRlb1VybCI6Imh0dHBzOi8vbS5tZWRpYS1hbWF6b24uY29tL2ltYWdlcy9TL2FsLW5hLTlkNTc5MWNmLTNmYWYvNjRlMzg4YjAtZDFjNi00ZTMzLWJkODUtZWIxOGE1YmRmMTc3Lm1wNC9tb2RlcmF0aW9uIiwiY29udGVudFR5cGUiOiJ2aWRlby9tcDQifQ=="}},sbCreativeTranslationMap:{es_US:{id:"amzn1.assetlibrary.asset1.0349545cd9859df3b7dd45f71c48cdc4:version_v1",variants:{iOS:{videoUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/6dee8229-81ab-498b-8048-4ef907f1ec78.mp4/productVideoOptimized.mp4",contentType:"video/mp4",metadata:"eyJ2aWRlb1VybCI6Imh0dHBzOi8vbS5tZWRpYS1hbWF6b24uY29tL2ltYWdlcy9TL2FsLW5hLTlkNTc5MWNmLTNmYWYvNmRlZTgyMjktODFhYi00OThiLTgwNDgtNGVmOTA3ZjFlYzc4Lm1wNC9wcm9kdWN0VmlkZW9PcHRpbWl6ZWQubXA0IiwiY29udGVudFR5cGUiOiJ2aWRlby9tcDQifQ=="},moderation:{videoUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/6dee8229-81ab-498b-8048-4ef907f1ec78.mp4/moderation",contentType:"video/mp4",metadata:"eyJ2aWRlb1VybCI6Imh0dHBzOi8vbS5tZWRpYS1hbWF6b24uY29tL2ltYWdlcy9TL2FsLW5hLTlkNTc5MWNmLTNmYWYvNmRlZTgyMjktODFhYi00OThiLTgwNDgtNGVmOTA3ZjFlYzc4Lm1wNC9tb2RlcmF0aW9uIiwiY29udGVudFR5cGUiOiJ2aWRlby9tcDQifQ=="}}}}}},products:[{asin:"B0BLZTBBV6",name:"JITTERYGIT Race Track Glow in The Dark Magic Toy Set, Kids Light Up Flexible Car Tracks - Best Birthday Gift for Boys Girls and Toddlers 3 4 5 6 7 8 Year Old, *Flash Track",properties:{imageSecureUrl:"https://m.media-amazon.com/images/I/61+cKWyndgL._SS60_SP100,100_.jpg",bgPosX:"0px",bgPosY:"0px"}}]},Nt={creativeType:"BRAND_VIDEO",properties:{common:{landingPage:{type:"AMAZON_PAGE",value:"https://www.amazon.com/stores/page/6799F683-D170-44E9-89AD-E28C1B485F54"},featuredImageUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/a78837c3-5b3a-4599-9217-b1087ff4a0da._CR0,0,463,625_.jpg",headline:"Artificially hand drawn high-capacity jewelry box",headlineTId:"d99c9fb7-4b30-407c-818e-35b9807b35bb",sponsor:"Welcome to the Xloverise",featuredImageAsset:"amzn1.assetlibrary.asset1.dbbe85b7a2d41ceb198e93348b2c2aad:version_v1",consentToTranslate:"",originalVideoAssetId:"",originalHeadline:""},TETRIS_BRAND_VIDEO_SINGLE_MEDIA:{id:"amzn1.assetlibrary.asset1.25df35446dc6752db7b1c85bd2dc9d1f:version_v1",previewImageUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/a4d5a804-b0bf-47fd-9050-8dc875ebdd52.mov/r/THUMBNAIL_360P_FRAME_3_CAPTURE_2.JPG",aspectRatio:1.7777777777777777,duration:25600,metadata:"eyJwcmV2aWV3SW1hZ2VVcmwiOiJodHRwczovL20ubWVkaWEtYW1hem9uLmNvbS9pbWFnZXMvUy9hbC1uYS05ZDU3OTFjZi0zZmFmL2E0ZDVhODA0LWIwYmYtNDdmZC05MDUwLThkYzg3NWViZGQ1Mi5tb3Yvci9USFVNQk5BSUxfMzYwUF9GUkFNRV8zX0NBUFRVUkVfMi5KUEciLCJhc3BlY3RSYXRpbyI6MS43Nzc3Nzc3Nzc3Nzc3Nzc3LCJkdXJhdGlvbiI6MzE4NjYsImhhc0F1ZGlvIjp0cnVlLCJsb2NhbGl6YXRpb25NZXRhZGF0YSI6bnVsbCwiY29udGVudEhhc2giOiJhYjZkYzNkOWQ5OWVjNDkwMjA0Zjc0OTQzZDBkOTMwNiIsIm1lZGlhTGF5b3V0Ijp7Im9yaWVudGF0aW9uIjoiTEFORFNDQVBFIiwiZGlzcGxheUFzcGVjdFJhdGlvIjoiMTY6OSJ9fQ==",corruptVideoError:null,experiment:null,variants:{iOS:{videoUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/64e388b0-d1c6-4e33-bd85-eb18a5bdf177.mp4/productVideoOptimized.mp4",contentType:"video/mp4",metadata:"eyJ2aWRlb1VybCI6Imh0dHBzOi8vbS5tZWRpYS1hbWF6b24uY29tL2ltYWdlcy9TL2FsLW5hLTlkNTc5MWNmLTNmYWYvYTRkNWE4MDQtYjBiZi00N2ZkLTkwNTAtOGRjODc1ZWJkZDUyLm1vdi9wcm9kdWN0VmlkZW9PcHRpbWl6ZWQubXA0IiwiY29udGVudFR5cGUiOiJ2aWRlby9tcDQifQ=="},moderation:{videoUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/6dee8229-81ab-498b-8048-4ef907f1ec78.mp4/moderation",contentType:"video/mp4",metadata:"eyJ2aWRlb1VybCI6Imh0dHBzOi8vbS5tZWRpYS1hbWF6b24uY29tL2ltYWdlcy9TL2FsLW5hLTlkNTc5MWNmLTNmYWYvYTRkNWE4MDQtYjBiZi00N2ZkLTkwNTAtOGRjODc1ZWJkZDUyLm1vdi9tb2RlcmF0aW9uIiwiY29udGVudFR5cGUiOiJ2aWRlby9tcDQifQ=="}}}},products:[{asin:"B0C6LT19HV",name:"Xloverise Hand-painted Wooden Jewelry Box, 6 Layer Jewelry Organizer, Vintage Wooden Jewelry Boxes for Women Birthday, jewelry holder organizer (Brown), 6-layer Rustic Brown",properties:{imageSecureUrl:"https://m.media-amazon.com/images/I/51lEHBQ3haL._SS60_SP100,100|51OAbNK8IeL._SS60_.jpg,41VIS0gnDML._SS60_.jpg_.jpg",bgPosX:"0px",bgPosY:"0px"}},{asin:"B0C6LVFQPY",name:"Xloverise hand-drawn rose Jewelry Box Wood for Wowen, Valentine's Day gift,5-Layer Wooden Jewelry Organizer Boxes with 4 Drawers, Vintage Multi-functional Jewelry Storage Case (Brown), 5-Layer Wooden Jewelry Box",properties:{imageSecureUrl:"https://m.media-amazon.com/images/I/51lEHBQ3haL._SS60_SP100,100|51OAbNK8IeL._SS60_.jpg,41VIS0gnDML._SS60_.jpg_.jpg",bgPosX:"-200px",bgPosY:"0px"}},{asin:"B0C6LWYJGP",name:"Xloverise Vintage hand-drawn Jewelry Box Wood, 5-Layer Wooden Jewelry Organizer Boxes with 4 Drawers,Valentine's Day gift, Multi-functional Jewelry Storage Case for Wowen (Brown), 5-Layer Brown Wooden Jewelry Box",properties:{imageSecureUrl:"https://m.media-amazon.com/images/I/51lEHBQ3haL._SS60_SP100,100|51OAbNK8IeL._SS60_.jpg,41VIS0gnDML._SS60_.jpg_.jpg",bgPosX:"-400px",bgPosY:"0px"}}]},Mt={genericCacheEntries:[{namespace:"sb_creative",key:"20034156852098",version:3,value:JSON.stringify(It),namespaceVersion:"1.0"}]},Dt={genericCacheEntries:[{namespace:"sb_creative",key:"20034156852098",version:3,value:JSON.stringify(Nt),namespaceVersion:"1.0"}]},Lt={genericCacheEntries:[{namespace:"sb_creative",key:"20034156852098",version:3,value:JSON.stringify({...It,creativeType:void 0}),namespaceVersion:"1.0"}]},Bt={creativeType:"HSA",creativeIds:{},properties:{common:{sponsor:"Bedsure",featuredImage:"images/S/al-na-9d5791cf-3faf/e4460964-05ac-4b53-adad-11e3448cd054._CR0,0,1772,1773_.jpg",landingPage:"//www.amazon.com/stores/page/A058E45A-A01B-4976-B9B1-ABB1592AAC15",shouldOptimizeAsins:"false",customImage:"images/S/al-na-9d5791cf-3faf/8935f8ab-9943-4429-a267-3e172d26db2b._CR0,0,1200,628_.jpg",secondaryCustomImageList:["images/S/al-na-9d5791cf-3faf/57d3e8a8-5f79-4a24-bd52-2dd3dc5786d4._CR0,136,1200,629_.jpg","images/S/al-na-9d5791cf-3faf/c3d5b83e-709d-4444-a268-dfbaa1464688._CR0,282,2500,1309_.jpg"],headlineTId:"62ca4660-4f28-431a-9836-dab83870d001",headline:"Bedsure Soft Comforter Set 7 Pieces",selectedAsset:"amzn1.assetlibrary.asset1.f35c66c328da61492ec9da3a97105990:version_v1"},TETRIS_MWEB_SPARKLE:{featuredImage:"images/S/al-na-9d5791cf-3faf/e4460964-05ac-4b53-adad-11e3448cd054._CR0,0,1772,1773_SR85,85_.jpg"},SPARKLE_MOBILE_APP:{featuredImage:"images/S/al-na-9d5791cf-3faf/e4460964-05ac-4b53-adad-11e3448cd054._CR0,0,1772,1773_SR258,258_.jpg"},TETRIS_DESKTOP_SPARKLE:{featuredImage:"images/S/al-na-9d5791cf-3faf/e4460964-05ac-4b53-adad-11e3448cd054._CR0,0,1772,1773_SR218,200_.jpg"}},products:[{name:"Bedsure Queen Comforter Set - 7 Pieces Comforters Queen Size Grey, Pintuck Bedding Sets Queen for All Season, Bed in a Bag with Flat Sheet and Fitted Sheet, Pillowcases & Shams, Queen, 01 - Grey",asin:"B07NYR18X4",properties:{bgPosX:"0px",bgPosY:"0px",imageSecureUrl:"https://m.media-amazon.com/images/I/514+f+kC5pL._SP100,100|51ByaTfu6LL.jpg,51SGQzpkjYL.jpg_.jpg"}},{name:"Bedsure Queen Comforter Set 7 Pieces, Grey White Striped Comforter for Queen Size Bed Reversible, Cationic Dyeing Bed in a Bag with Comforter, Sheets, Pillowcases & Shams, Queen, Grey",asin:"B09SHR9KVZ",properties:{bgPosX:"-100px",bgPosY:"0px",imageSecureUrl:"https://m.media-amazon.com/images/I/514+f+kC5pL._SP100,100|51ByaTfu6LL.jpg,51SGQzpkjYL.jpg_.jpg"}},{name:"Bedsure Queen Comforter Set - 7 Pieces Reversible Comforters Queen Size Bed Set Bed in a Bag with Comforter, Sheets, Pillowcases & Shams, Grey Bedding Sets, Queen, 01 - Grey",asin:"B07R4659ZY",properties:{bgPosX:"-200px",bgPosY:"0px",imageSecureUrl:"https://m.media-amazon.com/images/I/514+f+kC5pL._SP100,100|51ByaTfu6LL.jpg,51SGQzpkjYL.jpg_.jpg"}}]},Rt={genericCacheEntries:[{namespace:"sb_creative",key:"20034156852098",version:3,value:JSON.stringify(Bt),namespaceVersion:"1.0"}]},jt={transcodedMedias:[{transcodeType:"MEDIUM",url:"https://m.media-amazon.com/images/S/al-jp-eb5039ce-f881/82303782-5b40-4cff-8d5c-a6b470cf92df.mp4/mp4_1500Kbs_24fps_48khz_96Kbs_576p.mp4",metadata:{bitrate:987524}},{transcodeType:"HIGH",url:"https://m.media-amazon.com/images/S/al-jp-eb5039ce-f881/82303782-5b40-4cff-8d5c-a6b470cf92df.mp4/mp4_3500Kbs_24fps_48khz_96Kbs_1080p.mp4",metadata:{bitrate:1075963}},{transcodeType:"LOW",url:"https://m.media-amazon.com/images/S/al-jp-eb5039ce-f881/82303782-5b40-4cff-8d5c-a6b470cf92df.mp4/mp4_700Kbs_24fps_48khz_96Kbs_360p.mp4",metadata:{bitrate:519553}}]},kt={...Nt.properties.TETRIS_BRAND_VIDEO_SINGLE_MEDIA,transcodedMedias:jt},Ft=Object.assign(function e(t,r,n,a,o,i){var s,l=1&r,u=2&r,c=4&r;if(void 0!==(s=n?o?n(t,a,o,i):n(t):s))return s;if(!B(t))return t;var d,p,m=L(t);if(m){if(a=(f=t).length,g=new f.constructor(a),a&&"string"==typeof f[0]&&dt.call(f,"index")&&(g.index=f.index,g.input=f.input),s=g,!l)return J(t,s)}else{var f=ct(t),g=f==Et||"[object GeneratorFunction]"==f;if(he(t))return Ue(t,l);if(f==St||f==xt||g&&!o){if(s=u||g?{}:yt(t),!l)return u?(d=t,p=(p=s)&&ie(t,Ae(t),p),ie(d,Qe(d),p)):(d=t,p=(p=s)&&ie(t,Pe(t),p),ie(d,Xe(d),p))}else{if(!_t[f])return o?t:{};s=function(e,t,r){var n,a,o=e.constructor;switch(t){case"[object ArrayBuffer]":return mt(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return n=e,a=r?mt(n.buffer):n.buffer,new n.constructor(a,n.byteOffset,n.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ht(e,r);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return(n=new(a=e).constructor(a.source,ft.exec(a))).lastIndex=a.lastIndex,n;case"[object Symbol]":return gt?Object(gt.call(e)):{}}}(t,f,l)}}if(l=(i=i||new Ge).get(t))return l;i.set(t,s),Ct(t)?t.forEach((function(a){s.add(e(a,r,n,a,t,i))})):bt(t)&&t.forEach((function(a,o){s.set(o,e(a,r,n,o,t,i))}));var h=m?void 0:(c?u?$e:Ke:u?Ae:Pe)(t);return function(a){for(var o,l,u=-1,c=null==a?0:a.length;++u<c&&!1!==(o=a[u],l=u,h&&(o=t[l=o]),void oe(s,l,e(o,r,n,l,t,i))););}(h||t),s}(Nt,5),{properties:{...Nt.properties,TETRIS_BRAND_VIDEO_SINGLE_MEDIA:kt}}),zt={genericCacheEntries:[{namespace:"sb_creative",key:"20034156852098",version:3,value:JSON.stringify(Ft),namespaceVersion:"1.0"}]},Zt={creativeType:"VIDEO",properties:{common:{landingPage:{type:"DETAIL_PAGE",value:"https://www.amazon.com/dp/B0BLZTBBV6"}},TETRIS_VIDEO_SINGLE_MEDIA:{id:"amzn1.assetlibrary.asset1.3752df15be025229f4249517128ca9ed:version_v1",previewImageUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/64e388b0-d1c6-4e33-bd85-eb18a5bdf177.mp4/r/THUMBNAIL_360P_FRAME_3_CAPTURE_2.JPG",aspectRatio:1.7777777777777777,duration:25600,metadata:"eyJwcmV2aWV3SW1hZ2VVcmwiOiJodHRwczovL20ubWVkaWEtYW1hem9uLmNvbS9pbWFnZXMvUy9hbC1uYS05ZDU3OTFjZi0zZmFmLzY0ZTM4OGIwLWQxYzYtNGUzMy1iZDg1LWViMThhNWJkZjE3Ny5tcDQvci9USFVNQk5BSUxfMzYwUF9GUkFNRV8zX0NBUFRVUkVfMi5KUEciLCJhc3BlY3RSYXRpbyI6MS43Nzc3Nzc3Nzc3Nzc3Nzc3LCJkdXJhdGlvbiI6MjU2MDAsImhhc0F1ZGlvIjp0cnVlLCJsb2NhbGl6YXRpb25NZXRhZGF0YSI6bnVsbCwiY29udGVudEhhc2giOiJlZjc4OTQ4ZGQ0YzM5MmM0ZDEwZmUzYjY1NjA2MzVhNyIsIm1lZGlhTGF5b3V0Ijp7Im9yaWVudGF0aW9uIjoiTEFORFNDQVBFIiwiZGlzcGxheUFzcGVjdFJhdGlvIjoiMTY6OSJ9fQ==",corruptVideoError:null,experiment:null,variants:{iOS:{videoUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/64e388b0-d1c6-4e33-bd85-eb18a5bdf177.mp4/productVideoOptimized.mp4",contentType:"video/mp4",metadata:"eyJ2aWRlb1VybCI6Imh0dHBzOi8vbS5tZWRpYS1hbWF6b24uY29tL2ltYWdlcy9TL2FsLW5hLTlkNTc5MWNmLTNmYWYvNjRlMzg4YjAtZDFjNi00ZTMzLWJkODUtZWIxOGE1YmRmMTc3Lm1wNC9wcm9kdWN0VmlkZW9PcHRpbWl6ZWQubXA0IiwiY29udGVudFR5cGUiOiJ2aWRlby9tcDQifQ=="},moderation:{videoUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/64e388b0-d1c6-4e33-bd85-eb18a5bdf177.mp4/moderation",contentType:"video/mp4",metadata:"eyJ2aWRlb1VybCI6Imh0dHBzOi8vbS5tZWRpYS1hbWF6b24uY29tL2ltYWdlcy9TL2FsLW5hLTlkNTc5MWNmLTNmYWYvNjRlMzg4YjAtZDFjNi00ZTMzLWJkODUtZWIxOGE1YmRmMTc3Lm1wNC9tb2RlcmF0aW9uIiwiY29udGVudFR5cGUiOiJ2aWRlby9tcDQifQ=="}},transcodedMedias:[{transcodeType:"MEDIUM",url:"https://m.media-amazon.com/images/S/al-jp-eb5039ce-f881/82303782-5b40-4cff-8d5c-a6b470cf92df.mp4/mp4_1500Kbs_24fps_48khz_96Kbs_576p.mp4",metadata:{bitrate:987524}},{transcodeType:"HIGH",url:"https://m.media-amazon.com/images/S/al-jp-eb5039ce-f881/82303782-5b40-4cff-8d5c-a6b470cf92df.mp4/mp4_3500Kbs_24fps_48khz_96Kbs_1080p.mp4",metadata:{bitrate:1075963}},{transcodeType:"LOW",url:"https://m.media-amazon.com/images/S/al-jp-eb5039ce-f881/82303782-5b40-4cff-8d5c-a6b470cf92df.mp4/mp4_700Kbs_24fps_48khz_96Kbs_360p.mp4",metadata:{bitrate:519553}}],sbCreativeTranslationMap:{es_US:{id:"amzn1.assetlibrary.asset1.0349545cd9859df3b7dd45f71c48cdc4:version_v1",variants:{iOS:{videoUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/6dee8229-81ab-498b-8048-4ef907f1ec78.mp4/productVideoOptimized.mp4",contentType:"video/mp4",metadata:"eyJ2aWRlb1VybCI6Imh0dHBzOi8vbS5tZWRpYS1hbWF6b24uY29tL2ltYWdlcy9TL2FsLW5hLTlkNTc5MWNmLTNmYWYvNmRlZTgyMjktODFhYi00OThiLTgwNDgtNGVmOTA3ZjFlYzc4Lm1wNC9wcm9kdWN0VmlkZW9PcHRpbWl6ZWQubXA0IiwiY29udGVudFR5cGUiOiJ2aWRlby9tcDQifQ=="},moderation:{videoUrl:"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/6dee8229-81ab-498b-8048-4ef907f1ec78.mp4/moderation",contentType:"video/mp4",metadata:"eyJ2aWRlb1VybCI6Imh0dHBzOi8vbS5tZWRpYS1hbWF6b24uY29tL2ltYWdlcy9TL2FsLW5hLTlkNTc5MWNmLTNmYWYvNmRlZTgyMjktODFhYi00OThiLTgwNDgtNGVmOTA3ZjFlYzc4Lm1wNC9tb2RlcmF0aW9uIiwiY29udGVudFR5cGUiOiJ2aWRlby9tcDQifQ=="}}}}}},products:[{asin:"B0BLZTBBV6",name:"JITTERYGIT Race Track Glow in The Dark Magic Toy Set, Kids Light Up Flexible Car Tracks - Best Birthday Gift for Boys Girls and Toddlers 3 4 5 6 7 8 Year Old, *Flash Track",properties:{imageSecureUrl:"https://m.media-amazon.com/images/I/61+cKWyndgL._SS60_SP100,100_.jpg",bgPosX:"0px",bgPosY:"0px"}}]},Gt={genericCacheEntries:[{namespace:"sb_creative",key:"20034156852098",version:3,value:JSON.stringify(Zt),namespaceVersion:"1.0"}]},Wt="S9_DA"},5692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppLayoutRender=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=v(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),a=y(r(4184)),o=r(4828),i=r(2150),s=r(2872),l=r(9599),u=r(3004),c=r(6010),d=r(6655),p=y(r(1414)),m=r(201),f=r(8801),g=r(8872),h=r(1353);function y(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function C(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}(e,t)||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 S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const _=(0,n.lazy)((()=>Promise.all([r.e(101),r.e(944)]).then(r.bind(r,5573))));t.AppLayoutRender=e=>{var t=e.LayoutComponent;const r=(0,n.useRef)(null);var y=(0,l.useAdLink)();const v=(0,o.usePayload)(),C=v.isTwitchModal,S=v.identifier,T=v.urls,w=T.privacyUrl,P=T.brandPageUrl,O=v.modelData.properties.isCustomAdChoiceLogo,A=v.productDetails,I=A.discountData,N=void 0===I?null:I,M=A.automatedBadgingData,D=v.is3P,L=v.isPreview,B=v.isLeadGenCreative,R=v.sourceId,j=v.leadFormLandingPageUrl,k=v.openLeadFormInPage,F=v.TTIMeasurementMode,z=(0,d.useModal)(),Z=z.activeModalId,G=z.isModalView,W=z.onReady,U=z.modalType,V=(0,h.useSF)().SFApi;var H=(0,g.useLeadFormOpen)().handleOpenLeadFormInPage;const Y=E((0,n.useState)(!1),2),q=Y[0],X=Y[1];(0,u.useMobileInit)();const Q=Z?d.MODALS[Z]:null;e=Boolean(M||N),(0,n.useEffect)((()=>{null!=W&&W(),"default"===F&&V&&V.signalAdLoadedAndInteractive(),X(!0)}),[G]);let J,K=n.default.createElement(s.AdLink,y);k&&j&&($=x(x({},y),{},{onClick:H,itemUrl:j,disabled:L}),K=n.default.createElement(s.AdLink,$)),"zoetrope"!==S&&"product-collection"!==S&&"product-collection-video"!==S||!P||(J=n.default.createElement(s.AdLink,b({},y,{itemUrl:y.brandPageUrl})));var $;H=(D||O)&&!(R===f.TWITCH_MOBILE_DISPLAY_SOURCE||R===f.TWITCH_WEB_DISPLAY_SOURCE),t=G?($=d.MODALS[d.ModalComponents.lgaFormModal],y=(0,m.getExpandableAdType)(D),y=G&&(0,m.expandableAdRequiresCloseButton)(y),Q?n.default.createElement("div",{"data-testid":"modal",className:(0,a.default)(y?"h-[calc(100%-30px)]":"h-full","w-full","bg-white","p-2","relative")},n.default.createElement(Q,null)):n.default.createElement(n.Suspense,{fallback:n.default.createElement(c.Loading,null)},B?n.default.createElement("div",{"data-testid":"modal",className:(0,a.default)(y?"h-[calc(100%-30px)]":"h-full","w-full","bg-white","p-2","relative")},n.default.createElement($,null)):n.default.createElement(_,null))):n.default.createElement(t,{onCTAButtonClick:()=>{r&&r.current&&r.current.click()},adLink:K,brandAdLink:J,adChoicesButton:H&&n.default.createElement(i.AdChoicesButton,{privacyUrl:w}),hasBadge:e}),H=!q&&C,e=(0,m.getExpandableAdType)(D);return n.default.createElement(n.default.Fragment,null,H&&n.default.createElement("div",{"data-testid":"blocking-screen",className:"z-50 absolute top-0 left-0 right-0 bottom-0 bg-white"}),G&&U===d.ModalType.ExpandableAds&&(0,m.expandableAdRequiresCloseButton)(e)&&n.default.createElement(p.default,null),t)}},1797:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdChoicesIcon=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(2746);const i={small:{width:8,height:8},medium:{width:12,height:12},large:{width:13,height:13}};t.AdChoicesIcon=e=>{var t=e.size;e=(t=i[e=void 0===t?"medium":t]).width,t=t.height;return a.default.createElement(o.SvgImg,{"data-testid":"adchoicesIcon",path:"perc/ad-choice.svg",alt:"Ad Choice Icon",width:e,height:t})}},636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(1797);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.AdChoicesIcon,t.default=r},8748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Button=void 0;var n,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=u(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),o=r(1311),i=(n=r(4184))&&n.__esModule?n:{default:n},s=r(2771),l=r(4845);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}t.Button=(0,a.forwardRef)(((e,t)=>{var r=e.children,n=void 0===(y=e.as)?"link":y,u=e.type,c=e.disabled,d=e.overrideHoverColor,p=e.className,m=e.onClick,f=e["data-testid"],g=void 0===(v=e.isNoWrap)||v,h=void 0===(b=e.variant)?"primary":b,y=void 0===(C=e.size)?"medium":C,v=e.href,b=e.isOffsite,C=(e=(C=e.linkProps||{}).openInNewWindow,void 0===(C=C.rawDetailPageUrl)?"":C);d=d?(0,o.css)({"&:hover":{color:d+" !important"}}):"",g=(0,s.getButtonStyles)({className:(0,i.default)(p,d),size:y,variant:h,isNoWrap:g});let x;return x="button"===n?a.default.createElement("button",{onClick:m,type:"submit"===u?"submit":"button","data-testid":f,className:g,disabled:c},r):a.default.createElement(l.ClickthroughLink,{anchorProps:{ref:t,className:g,"data-testid":f,"data-size":y},onClick:c?void 0:m,isOffsite:!!b,rawDetailPageUrl:C,url:v||"",isExternalLink:!!e,disableNavigation:c},r),x}))},2771:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getButtonStyles=void 0;var n=(r=r(4184))&&r.__esModule?r:{default:r};const a={base:"btn relative z-20 appearance-none",size:{xsmall:"btn-xsmall",small:"btn-small",inflated:"btn-inflated",medium:"btn-medium",large:"btn-large",xlarge:"btn-xlarge",xxl:"btn-xxl",full:"btn-full",none:""},variant:{primary:"btn-primary",secondary:"btn-secondary",preorder:"btn-preorder",featured:"btn-featured",featuredSkinny:"btn-featured-skinny",arrow:"btn-arrow",link:"btn-link",linkSecondary:"btn-link-secondary",outline:"btn-outline",pill:"btn-pill-primary",pillSecondary:"btn-pill-secondary",block:"btn-block",blockInverted:"btn-block-inverted",blockXSm:"btn-block-xsm",blockXSmInverted:"btn-block-xsm-inverted",blockSm:"btn-block-sm",blockSmInverted:"btn-block-sm-inverted",blockMd:"btn-block-md",blockMdInverted:"btn-block-md-inverted",pillGray:"btn-pill-gray",squarePill:"btn-pill-square-primary",squarePillSecondary:"btn-pill-square-secondary",squarePillGray:"btn-pill-square-gray",squarePillWhite:"btn-pill-square-white",linkArrow:"btn-arrow btn-link",textOnlyCTA:"btn-text-only",textWithCaretCTA:"btn-text-and-arrow",twitchPurple:"btn-twitch-purple",dark:"btn-dark",twitchDark:"btn-twitch-dark"}};t.getButtonStyles=e=>{var t=e.className,r=void 0===(o=e.size)?"medium":o,o=void 0===(o=e.variant)?"primary":o;e=void 0===(e=e.isNoWrap)||e;return(0,n.default)(t,a.base,a.variant[o],a.size[r],e?"whitespace-nowrap":"")}},841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(8748);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var o=r(2771);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))})),r=a.Button,t.default=r},717:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CPFLogo=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(2746);const i={small:{width:120,height:14},medium:{width:129,height:16},large:{width:147,height:17}};t.CPFLogo=e=>{var t=void 0===(r=e.size)?"large":r,r=e.className;t=(e=i[t]).width,e=e.height;return a.default.createElement(o.SvgImg,{path:"perc/CPF-logo.svg",alt:"CPF","data-testid":"cpf-logo",width:t,height:e,className:r})}},8144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(717);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.CPFLogo,t.default=r},5393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClickthroughLink=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(2082),i=r(508),s=r(2616),l=r(6475),u=r(557),c=r(4828);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.ClickthroughLink=e=>{let t=e.children,r=e.onClick,n=e.isOffsite,p=e.url,m=e.isExternalLink,f=e.anchorProps,g=e.disableNavigation,h=e.rawDetailPageUrl;const y=(0,s.useCEM)().logEvent;var v=(0,c.usePayload)().activeExperiments;let b=m||n||!(0,o.isAmazonUrl)(p);e=b?i.IN_NEW_WINDOW:i.IN_SAME_WINDOW;const C=!!v[l.Experiments.PercDeepLink]&&(0,o.shouldFireDetailPagePixelUrl)({isOffsite:n,detailPagePixelUrl:p,rawDetailPageUrl:h});v=C?(0,o.buildDeepLinkRedirectUrl)({detailPagePixelUrl:p,rawDetailPageUrl:h}):p;const x=(e,t)=>{t&&(b=!0),g&&e.preventDefault(),"function"==typeof r&&r(),C&&(0,u.fireTrackers)([p]),y({eventName:s.CEM_LOGGER_METRICS.EVENT_NAMES.CREATIVE_CLICK,componentName:"AdLink"})};return a.default.createElement("a",d({},f,{href:v,target:e,onClick:e=>x(e,!1),onAuxClick:e=>{var t=1===e.button;t&&x(e,t)},role:g?"button":"link"}),t)}},508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SD_OFFSITE_MOBILE_WEB_REF=t.SD_OFFSITE_MOBILE_APP_REF=t.IN_SAME_WINDOW=t.IN_NEW_WINDOW=t.FIRE_BIRD_URL_INDICATOR=t.AMAZON_DOMAIN_REGEX=void 0,t.IN_SAME_WINDOW="_top",t.IN_NEW_WINDOW="_blank",t.AMAZON_DOMAIN_REGEX=/^((https?:)?\/\/)(.*\.)?amazon\./,t.SD_OFFSITE_MOBILE_APP_REF="syn_sd_offsite_mobileapp",t.SD_OFFSITE_MOBILE_WEB_REF="syn_sd_offsite_mobileweb",t.FIRE_BIRD_URL_INDICATOR="/sspa/"},4845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(5393);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.ClickthroughLink,t.default=r},2082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldFireDetailPagePixelUrl=t.isAmazonUrl=t.buildDeepLinkRedirectUrl=void 0;var n=r(508);t.isAmazonUrl=e=>n.AMAZON_DOMAIN_REGEX.test(e),t.shouldFireDetailPagePixelUrl=e=>{let t=e.isOffsite,r=e.detailPagePixelUrl,a=e.rawDetailPageUrl;if(!t||!a)return!1;if(!r.includes(n.SD_OFFSITE_MOBILE_APP_REF)&&!r.includes(n.SD_OFFSITE_MOBILE_WEB_REF))return!1;e=`/${(o=a.split("/"))[3]}/`+o[4];var o=""+o[2];e=r.includes(e),o=r.includes(o);return!(!e||!o)},t.buildDeepLinkRedirectUrl=e=>{let t=e.detailPagePixelUrl;return e.rawDetailPageUrl+`/ref=${t.includes(n.SD_OFFSITE_MOBILE_APP_REF)?n.SD_OFFSITE_MOBILE_APP_REF:n.SD_OFFSITE_MOBILE_WEB_REF}?sspa=`+(t.includes(n.FIRE_BIRD_URL_INDICATOR)?"1":"0")}},2398:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnergyEfficiency=void 0;var n=u(r(7363)),a=r(1245),o=r(4828),i=u(r(9945)),s=u(r(6764)),l=u(r(7886));function u(e){return e&&e.__esModule?e:{default:e}}const c={small:"xs",medium:"sm",large:"body"};t.EnergyEfficiency=e=>{var t=e.size,r=e.absoluteRating,u=e.eu2021Standard,d=e.hexColor,p=e.visuals,m=e.className,f=e.isStacked,g=(u?s:i).default;const h=(0,a.useI18n)().getString;var y=p.reduce(((e,t)=>{var r=t.type,n=t.physicalId;t=t.extension;return n&&t&&(e[r]=`https://m.media-amazon.com/images/I/${n}.`+t),e}),{});e=y.ENERGY_EFFICIENCY,u=y.PRODUCT_FICHE,y=(p=(0,o.usePayload)().isMobileApp)?"_top":"_blank",p=p?"":"noreferrer";return n.default.createElement("div",{"data-testid":"ee",className:m+` flex text-[#007185] gap-x-0.5 ${f?"flex-col items-start":"flex-wrap items-center"} `+("large"===t?"gap-y-0.5":"")},e?n.default.createElement("a",{href:e,className:"z-50","data-testid":"ee-link",target:y,rel:p},n.default.createElement(g,{"data-testid":"ee-label",size:t,rating:r,color:d})):null,u?n.default.createElement("a",{href:u,className:"z-50","data-testid":"product-fiche-link",target:y,rel:p},n.default.createElement(l.default,{"data-testid":"product-fiche-text",variant:c[t],color:"inherit"},h("product_fiche"))):null)}},8756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(2398);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.EnergyEfficiency,t.default=r},7876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnergyEfficiencyLabel=void 0;var n=(r=r(7363))&&r.__esModule?r:{default:r};const a={small:{width:54},medium:{width:69},large:{width:83}};t.EnergyEfficiencyLabel=e=>{var t=e.color,r=e.rating;e=e.size;return n.default.createElement("div",{"data-testid":"ee-image",role:"img","aria-label":"energy efficiency rating "+r},n.default.createElement("svg",{width:a[e].width,height:"100%",viewBox:"0 0 83 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.default.createElement("polygon",{points:"66.94 0 0 0 0 34 66.94 34 83 17 66.94 0",fill:t}),n.default.createElement("text",{x:6,y:26,fill:"white",fontSize:"26px"},r)))}},9945:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(7876);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.EnergyEfficiencyLabel,t.default=r},9967:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnergyEfficiencyLabelEu2021=void 0;var n=i(r(4184)),a=i(r(7363)),o=r(2746);function i(e){return e&&e.__esModule?e:{default:e}}const s={small:{width:37,height:20,imgClasses:"h-[20px]"},medium:{width:49,height:26,imgClasses:"h-[26px]"},large:{width:64,height:34,imgClasses:"h-[34px]"}};t.EnergyEfficiencyLabelEu2021=e=>{var t=e.color,r=e.rating,i=e.size,l=(e=(l=s[i]).width,i=l.height,l.imgClasses);return a.default.createElement("div",{"data-testid":"ee-image-eu-2021",className:"relative text-left",role:"img","aria-label":"EU 2021 standard energy efficiency rating "+r},a.default.createElement(o.SvgImg,{path:"perc/EU2021-energy-efficiency-no-fill.svg",alt:"",width:"100%",height:"100%",className:(0,n.default)("absolute",l)}),a.default.createElement("svg",{width:e,height:i,viewBox:"0 0 64 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M0.252417 0.253922 47.9035 0.256181L63.7499 17.003L47.927 33.75H0.252417C0.25148 33.75 0.250678 33.75 0.25 0.25Z",fill:t}),a.default.createElement("text",{textAnchor:"middle",x:32,y:26,fill:"white",stroke:"black",strokeWidth:2,fontSize:"26px",paintOrder:"stroke"},r)))}},6764:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(9967);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.EnergyEfficiencyLabelEu2021,t.default=r},8845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeFormInputs=t.Form=t.FIELD_COMPONENT_MAP=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=y(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),a=r(518),o=r(930),i=r(1113),s=r(9872),l=r(841),u=r(9997),c=r(6163),d=r(8673),p=r(557),m=r(6655),f=r(2616),g=r(4828),h=r(1245);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(e,t)||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 b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}const x={[s.FormInputType.Email]:i.TextField,[s.FormInputType.Text]:i.TextField,[s.FormInputType.Tel]:i.TextField};t.FIELD_COMPONENT_MAP=x;const E=e=>{const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return Object.entries(t).forEach((e=>{let r=v(e,2),n=r[0],a=r[1];a&&(t[n]=a.trim())})),t[s.FieldId.PhoneNumber]&&(t[s.FieldId.PhoneNumber]=null===(e=t[s.FieldId.PhoneNumber])||void 0===e?void 0:e.replace(/\s+/g,"")),t};t.sanitizeFormInputs=E,t.Form=e=>{var t;let r=e.fields,i=e.leadFormId,y=e.submissionEndpoint,v=e.leadGenAdEventPixelUrls,b=e.defaultValues,C=e.className,S=e.buttonClass;var _=(0,o.useForm)({defaultValues:b,mode:"onBlur"});const T=v||{},w=T.lead,P=T.typedForm,O=T.lessThanHalfFormFieldComplete,A=T.greaterThanOrEqualHalfFormFieldComplete,I=(0,n.useRef)(!1),N=(0,n.useRef)(!1),M=(0,m.useModal)()||{},D=M.openModal,L=M.setIsFormSubmitted;var B=(0,g.usePayload)().isPreview;const R=(0,h.useI18n)().getString,j=_.formState,k=_.setError,F=_.handleSubmit,z=_.clearErrors,Z=j.isSubmitting,G=j.isDirty,W=j.errors,U=j.dirtyFields;var V=(0,a.twMerge)("flex flex-col gap-[12px]",C),H=(null===(e=W.root)||void 0===e||null===(t=e.serverError)||void 0===t?void 0:t.message)||(null===(H=W.allFieldsRequired)||void 0===H?void 0:H.message)||"";const Y=(0,f.useCEM)().logEvent;return(0,n.useEffect)((()=>{Z&&!G&&k("allFieldsRequired",{type:"custom",message:R(s.formCustomErrors.allFieldsRequired)}),G&&W.allFieldsRequired&&z("allFieldsRequired"),Z&&(N.current||Y({eventType:f.EventTypes.FORM_SUBMISSION,eventName:f.EventNames.FORM_SUBMISSION_INITIAL_ATTEMPT,componentType:f.ComponentTypes.FORMS,componentName:"Form"}),Y({eventType:f.EventTypes.FORM_SUBMISSION,eventName:f.EventNames.FORM_SUBMISSION_INITIATED,componentType:f.ComponentTypes.FORMS,componentName:"Form"}),U&&(0===Object.keys(U).length?Y({eventType:f.EventTypes.FORM_SUBMISSION,eventName:f.EventNames.FORM_SUBMISSION_NONE_OF_FIELDS,componentType:f.ComponentTypes.FORMS,componentName:"Form"}):Object.keys(U).length/r.length<.5?(Y({eventType:f.EventTypes.FORM_SUBMISSION,eventName:f.EventNames.FORM_SUBMISSION_LT_HALF_OF_FIELDS,componentType:f.ComponentTypes.FORMS,componentName:"Form"}),O&&!N.current&&(0,p.fireTrackers)([O])):.5<=Object.keys(U).length/r.length&&Object.keys(U).length!==r.length&&(Y({eventType:f.EventTypes.FORM_SUBMISSION,eventName:f.EventNames.FORM_SUBMISSION_GTE_HALF_OF_FIELDS,componentType:f.ComponentTypes.FORMS,componentName:"Form"}),A&&!N.current&&(0,p.fireTrackers)([A]))),N.current=!0),G&&(I.current||(Y({eventType:f.EventTypes.FORM_SUBMISSION,eventName:f.EventNames.FORM_TYPING_ENGAGEMENT,componentType:f.ComponentTypes.FORMS,componentName:"Form"}),P&&(0,p.fireTrackers)([P]),I.current=!0))}),[Z,G]),n.default.createElement(o.FormProvider,_,H?n.default.createElement("p",{className:"text-red-700 my-1 flex justify-center gap-0.5",role:"alert"},n.default.createElement(d.ErrorIcon,{className:"mt-[1px]"})," ",H):null,Z?n.default.createElement("div",{"data-testid":"overlay",className:"h-screen w-screen fixed top-0 left-0 z-[100] bg-white/[0.8]"},n.default.createElement(c.Spinner,null)):null,n.default.createElement("form",{className:V,noValidate:!0},r.map((e=>{var t=e.fieldId,r=e.inputType;r=x[r];return n.default.createElement("div",{key:t},r?n.default.createElement(r,e):null)})),n.default.createElement("div",{"data-testid":"form-button-wrapper",className:"absolute bottom-0 py-1 w-full left-0 text-center shadow-md bg-white z-50"},n.default.createElement(l.Button,{onClick:F((async e=>{try{var t=E(e),r={pageId:i,isStorePage:!0,formData:t,adProgramType:"SD",isInternal:!1},n={method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(r)};const a=(0,u.getFetchAPI)(y,n).fetchData;(await a()).error?(Y({eventType:f.EventTypes.FORM_SUBMISSION,eventName:f.EventNames.FORM_SUBMISSION_API_FAILURE,componentType:f.ComponentTypes.FORMS,componentName:"Form"}),k("root.serverError",{type:"serverError",message:R(s.formCustomErrors.serverError)})):(Y({eventType:f.EventTypes.FORM_SUBMISSION,eventName:f.EventNames.FORM_SUBMISSION_SUCCESS,componentType:f.ComponentTypes.FORMS,componentName:"Form"}),D(m.ModalComponents.lgaThankYouViewModal),L(!0),w&&(0,p.fireTrackers)([w]))}catch(e){Y({eventType:f.EventTypes.FORM_SUBMISSION,eventName:f.EventNames.FORM_SUBMISSION_FAILURE,componentType:f.ComponentTypes.FORMS,componentName:"Form"})}})),as:"button",type:"submit",variant:"squarePillWhite",className:S,disabled:Z||B},R("submit")))))}},1113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextField=void 0;var n=l(r(7363)),a=l(r(4184)),o=r(930),i=r(8673),s=r(4828);function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.TextField=e=>{var t=e.fieldId,r=e.label,l=e.placeholder,c=e.inputType,p=e.maxLength,m=e.validationRules,f=e.onChange;const g=(0,o.useFormContext)(),h=g.register,y=g.formState.errors;var v=(0,s.usePayload)().isPreview;e=y[t]?"border-red-300 border-2 focus:shadow-red-100":"border-gray-800 focus:shadow-blue-200 focus:border-blue-700 focus:bg-blue-100";return n.default.createElement("div",null,n.default.createElement("label",{htmlFor:t,className:"font-bold"},r),n.default.createElement("input",u({},h(t,d(d({},m),{},{onChange:f})),{maxLength:p,"aria-invalid":y[t]?"true":"false","aria-label":r,id:t,placeholder:l,type:c,className:(0,a.default)("border rounded-sm w-full p-1 text-md focus:outline-none focus:shadow-md2",e),disabled:v})),null===(v=y[t])||void 0===v||!v.message||null!=y&&y.allFieldsRequired?null:n.default.createElement("p",{role:"alert",className:"text-red-700 mt-1 flex items-center gap-0.5"},n.default.createElement(i.ErrorIcon,null)," ",null===(t=y[t])||void 0===t?void 0:t.message))}},9872:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formCustomErrors=t.QuestionType=t.FormInputType=t.FieldId=void 0,t.QuestionType=void 0,t.QuestionType={FullName:"FULL_NAME",FirstName:"FIRST_NAME",LastName:"LAST_NAME",Email:"EMAIL",PhoneNumber:"PHONE_NUMBER",ZipCode:"ZIP_CODE",City:"CITY"},t.FieldId=void 0,t.FieldId={FullName:"fullName",FirstName:"firstName",LastName:"lastName",Email:"email",PhoneNumber:"phoneNumber",ZipCode:"zipCode",City:"city"},t.FormInputType=void 0,t.FormInputType={Email:"email",Text:"text",Number:"number",Tel:"tel",Select:"select"},t.formCustomErrors={allFieldsRequired:"all_fields_required_message",serverError:"form_submission_error_message",email:{required:"email_required_message",invalid:"email_invalid_message"},fullName:{required:"full_name_required_message",invalid:"full_name_invalid_message"},lastName:{required:"last_name_required_message",invalid:"last_name_invalid_message"},firstName:{required:"first_name_required_message",invalid:"first_name_invalid_message"},phoneNumber:{required:"phone_number_required_message",invalid:"phone_number_invalid_message"},zipCode:{required:"zip_code_required_message",invalid:"zip_code_invalid_message"},city:{required:"city_required_message",invalid:"city_invalid_message"}}},2467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(8845);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.Form,t.default=r},5192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FreshLogo=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(2746);const i={small:{width:26,height:9},medium:{width:35,height:12},large:{width:41,height:14}};t.FreshLogo=e=>{var t=e.size;e=(t=i[e=void 0===t?"small":t]).width,t=t.height;return a.default.createElement(o.SvgImg,{path:"perc/fresh-logo.svg",alt:"Fresh","data-testid":"fresh-logo",width:e,height:t,className:"my-0.5"})}},4370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(5192);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.FreshLogo,t.default=r},5998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Image=void 0;var n=p(r(7363)),a=p(r(4184)),o=r(317),i=r(170),s=r(581),l=r(3645),u=r(4828),c=r(6475);const d=["src","delayLoadingHighQualityImage","className","wrapperClassName","autoCrop","isHoverable","lazyLoad","alt","alignment","backgroundColor","resizeBehavior","animationType","animationThreshold","imageWidth","imageHeight"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const h=[1,2,3],y={center:"justify-center items-center",leftCenter:"justify-left items-center",leftBottom:"justify-left items-end"},v={contain:"object-contain",cover:"object-cover"};r=e=>{var t,r=e.src,p=void 0!==(D=e.delayLoadingHighQualityImage)&&D,f=e.className,b=e.wrapperClassName,C=void 0===(L=e.autoCrop)||L,x=void 0!==(B=e.isHoverable)&&B,E=void 0!==(k=e.lazyLoad)&&k,S=e.alt,_=void 0===(R=e.alignment)?"center":R,T=e.backgroundColor,w=void 0===(j=e.resizeBehavior)?"contain":j,P=e.animationType,O=e.animationThreshold,A=e.imageWidth,I=e.imageHeight,N=function(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),o=0;o<a.length;o++)r=a[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,d),M=(0,u.usePayload)().activeExperiments,D=(t=(0,o.useAppLayout)()).width,L=t.height,B=n.default.useRef(),R=(k=(0,l.useImageAnimation)({animationType:P,positionThreshold:O,isImageAnimationEnabled:!1})).layoutRef,j=k.animationClass,k=(P=e=>h.reduce(((t,r)=>{var n=(0,s.generateUrl)(g(g({},e),{},{pixelRatio:r}));return n?t+` ${n} ${r}x,`:""}),""),O=P({src:r,width:e=null!=A?A:D,height:t=null!=I?I:L,autoCrop:C,pixelRatio:1}),P({src:r,width:e,height:t,autoCrop:C,pixelRatio:1,quality:95}));A=P({src:r,width:e,height:t,autoCrop:C,pixelRatio:1,quality:10,extension:"webp"}),D=P({src:r,width:e,height:t,autoCrop:C,pixelRatio:1,quality:10}),I=P({src:r,width:e,height:t,autoCrop:C,pixelRatio:1,quality:95,extension:"webp"}),L=M[c.Experiments.TTILatencyExperiment],M=P({src:r,width:e,height:t,autoCrop:C,pixelRatio:1,quality:95,extension:"avif"}),C=P({src:r,width:e,height:t,autoCrop:C,pixelRatio:1,quality:10,extension:"avif"});let F="top-0 bottom-0";"cover"===w?F="top-[-1px] bottom-[-1px]":"cover-defensive"===w&&(F="top-[-2px] bottom-[-2px] left-[-2px] right-[-2px]");const z={};return p&&(z.fetchpriority="low"),n.default.createElement("div",{ref:R,className:(0,a.default)("min-w-0 min-h-0 relative",b||"w-full h-full")},n.default.createElement("picture",{className:(0,a.default)("flex h-full w-full",y[_])},n.default.createElement("source",{type:"image/webp","data-testid":"lowResWebpSource",srcSet:A}),n.default.createElement("source",{type:"image/jpeg","data-testid":"lowResJpegSource",srcSet:D}),L&&n.default.createElement("source",{type:"image/avif","data-testid":"lowResAvifSource",srcSet:C}),n.default.createElement("img",{className:(0,a.default)("min-w-0 min-h-0 w-full h-full",f,v[w],j),ref:B,style:{backgroundColor:T||"transparent"},loading:E?"lazy":"eager",alt:S,"data-testid":"pictureLowQuality",src:O})),n.default.createElement("picture",m({},N,{"data-image-type":x?"hoverable":"static",className:(0,a.default)("flex left-0 right-0 absolute",F,y[_])}),n.default.createElement("source",{type:"image/webp","data-testid":"webpSource",srcSet:I}),n.default.createElement("source",{type:"image/jpeg","data-testid":"jpegSource",srcSet:k}),L&&n.default.createElement("source",{type:"image/avif","data-testid":"avifSource",srcSet:M}),n.default.createElement("img",m({className:(0,a.default)("min-w-0 min-h-0 w-full h-full",f,i.cremClassName,v[w],x?"hover-scale-animation":"",j),style:{backgroundColor:T||"transparent"},loading:E||p?"lazy":"eager",alt:S,"data-testid":"pictureHighQuality",src:O},z))))},(t.Image=r).displayName="Image"},7809:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(5998);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.Image,t.default=r},581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUrl=void 0;var n=(r=r(2325))&&r.__esModule?r:{default:r};t.generateUrl=e=>{var t=e.src,r=e.width,a=e.height,o=void 0!==(i=e.autoCrop)&&i,i=void 0===(s=e.pixelRatio)?1:s,s=void 0===(s=e.extension)?"":s;e=e.quality;if(r&&a&&(r<3||a<3))return null;const l=new n.default(t).autocrop(o).qualityLevel(e);return r&&l.scaleToWidth(r*i),a&&l.scaleToHeight(a*i),(s?l.overrideExtension(s):l).build()}},4565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PriceText=void 0;var n=c(r(7363)),a=c(r(4184)),o=c(r(7886)),i=r(1245),s=r(9497),l=r(4828);const u=["price","variant","color","superscriptCurrencySymbol","showCurrency","strike","superscriptDecimalValue","priceSize","className","currencyClasses","priceSizeOverride","isRioPricing"];function c(e){return e&&e.__esModule?e:{default:e}}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}(e,t)||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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.PriceText=e=>{var t=e.price,r=e.variant,c=void 0===(x=e.color)?"black":x,m=void 0!==(E=e.superscriptCurrencySymbol)&&E,f=void 0===(T=e.showCurrency)||T,g=e.strike,h=void 0!==(S=e.superscriptDecimalValue)&&S,y=void 0===(_=e.priceSize)?"default":_,v=e.className,b=void 0===(w=e.currencyClasses)?"":w,C=e.priceSizeOverride,x=e.isRioPricing,E=function(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),o=0;o<a.length;o++)r=a[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,u),S=(T=(0,l.usePayload)()).marketplace,_=T.locale,T=(e=(w=(0,i.useI18n)()).currencySymbol,w.currencyPlacement),w=w.currencySpacing;let P,O=m&&!g?n.default.createElement(o.default,{className:(0,a.default)("align-top",w&&"px-0.25","jumbo"===y?"text-[15px] top-[-3px]":"","top-[2px]","left-[0px]","relative"),variant:"superscript","data-testid":"currency",strike:g,color:c},e):n.default.createElement(o.default,{"data-testid":"currency",className:(0,a.default)(w&&"px-0.25","jumbo"===y?"text-[15px]":"",b),strike:g,color:c},e);return _=(S=p((0,s.splitPrice)(t,S,_),2))[0],S=S[1],"default"===y?P=n.default.createElement(o.default,{"data-testid":"price-text",strike:g,color:c},t):h&&"large"===y&&t&&!g?(P=n.default.createElement(o.default,{"data-testid":"price-text",className:C||"text-[24px]"},n.default.createElement(o.default,{"data-testid":"price-whole",color:c,className:"align-text-top"},_),n.default.createElement(o.default,{"data-testid":"price-decimal",color:c,variant:"none",className:"align-super pl-[1px] left-[0px] relative text-[12px]"},S)),O=n.default.createElement(o.default,{className:(0,a.default)("align-baseline",w&&"px-0.25","top-[-7px]","left-[0px]","relative","text-[12px]"),variant:"none","data-testid":"currency",color:c},e)):"mini"===y?P=n.default.createElement(o.default,{"data-testid":"price-text",strike:g,color:c,className:"text-[12px]"},t):"small"===y?P=n.default.createElement(o.default,{"data-testid":"price-text",strike:g,color:c,className:"text-[16px]"},t):"small-mobile"===y?P=n.default.createElement(o.default,{"data-testid":"price-text",strike:g,color:c,className:"text-[13px] leading-[1.2]"},t):"small-desktop"===y?P=n.default.createElement(o.default,{"data-testid":"price-text",strike:g,color:c,className:"text-[14px]"},t):"jumbo"!==y||g?(P=n.default.createElement(o.default,{"data-testid":"price-text",color:c,strike:g,className:C||"text-[18px]"},t),O=n.default.createElement(o.default,{className:(0,a.default)("align-baseline",w&&"px-0.25","top-[-0.3em]","left-[0px]","relative","text-[11px]"),variant:"none","data-testid":"currency",strike:g,color:c},e)):P=n.default.createElement(o.default,{"data-testid":"price-text"},n.default.createElement(o.default,{"data-testid":"price-whole",color:c,className:"align-text-top text-[38px] mt-[-7px] leading-[30px]"},_),n.default.createElement(o.default,{"data-testid":"price-decimal",color:c,variant:"none",className:"align-super pl-[1px] left-[0px] relative text-[15px] top-[-2px]"},S)),x&&t&&!g&&(g={mediumPlus:"text-[10px] leading-[10px]",large:"text-[13px] leading-[13px]"},P=n.default.createElement("span",{"data-testid":"price-text-rio",className:v},n.default.createElement(o.default,{"data-testid":"price-whole",color:c,variant:"none",className:(0,a.default)({mediumPlus:"text-[18px]",large:"text-[22px]"}[y],v)},_),n.default.createElement(o.default,{"data-testid":"price-decimal",color:c,variant:"none",className:(0,a.default)("align-super pl-[1px]",g[y])},S)),O=n.default.createElement(o.default,{"data-testid":"currency",className:(0,a.default)("align-super",g[y]),variant:"none",color:c},e)),n.default.createElement(o.default,d({},E,{variant:r,color:c,className:(0,a.default)("direction-ltr",v),noWrap:!0}),"BEFORE"===T&&f?O:null,P,"AFTER"===T&&f?O:null)}},6167:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(4565);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.PriceText,t.default=r},1350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrimeLogo=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(2746);const i={small:{width:35,height:10},medium:{width:42,height:12},large:{width:53,height:15}};t.PrimeLogo=e=>{var t=e.size;e=(t=i[e=void 0===t?"medium":t]).width,t=t.height;return a.default.createElement(o.SvgImg,{path:"perc/prime-logo.svg",alt:"Prime",width:e,height:t,className:"mb-0.25"})}},5581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(1350);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.PrimeLogo,t.default=r},6163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=void 0;var n=i(r(7363)),a=i(r(4184)),o=r(1245);function i(e){return e&&e.__esModule?e:{default:e}}t.Spinner=e=>{e=void 0===(e=e.color)?"text-gray-600":e;const t=(0,o.useI18n)().getString;return n.default.createElement("div",{className:"w-full h-full flex flex-col justify-center items-center py-2 gap-1"},n.default.createElement("svg",{className:(0,a.default)("animate-spin -ml-1 h-4 w-4",e),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},n.default.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),n.default.createElement("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),n.default.createElement("p",{className:"text-center"},t("loading")))}},8516:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Stack=void 0;var n=i(r(7363)),a=i(r(4184));const o=["children","display","direction","flex","wrap","justify","align","content","className"];function i(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}r=e=>{var t=e.children,r=void 0===(m=e.display)?"flex":m,i=void 0===(f=e.direction)?"column":f,l=e.flex,u=e.wrap,c=e.justify,d=e.align,p=e.content,m=e.className,f=function(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),o=0;o<a.length;o++)r=a[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,o);e={display:{flex:"flex",inline:"inline-flex"},flex:{1:"flex-1",auto:"flex-auto",initial:"flex-initial",none:"flex-none"},direction:{row:"flex-row",column:"flex-col","row-reverse":"flex-row-reverse","column-reverse":"flex-col-reverse"},wrap:{wrap:"flex-wrap",reverse:"flex-wrap-reverse",nowrap:"flex-nowrap"},justify:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},align:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},content:{start:"content-start",end:"content-end",center:"content-center",between:"content-between",around:"content-around",evenly:"content-evenly"}},m=(0,a.default)(e.display[r],e.direction[i],l&&e.flex[l],u&&e.wrap[u],c&&e.justify[c],d&&e.align[d],p&&e.content[p],m);return n.default.createElement("div",s({className:m},f),t)},(t.Stack=r).displayName="Stack"},910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(8516);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.Stack,t.default=r},3143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StarBustLogo=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(2746);const i={small:{width:105,height:11},medium:{width:132,height:14},large:{width:151,height:16}};t.StarBustLogo=e=>{var t=e.size;e=(t=i[e=void 0===t?"small":t]).width,t=t.height;return a.default.createElement(o.SvgImg,{path:"ALMStores/UFG/Starburst/ags_horizontal_color.png",alt:"StarBust","data-testid":"starbust-logo",width:e,height:t,className:"my-0.5"})}},3455:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(3143);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.StarBustLogo,t.default=r},2140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StarIcon=void 0;var n=i(r(4184)),a=i(r(7363)),o=r(2746);function i(e){return e&&e.__esModule?e:{default:e}}const s={small:{width:11,height:11},medium:{width:15,height:15},large:{width:18,height:18}},l={empty:"perc/star-empty.svg",half:"perc/star-halffill.svg",halfInverted:"perc/star-halffill.svg",full:"perc/star-fullfill.svg"},u={empty:"starEmpty",half:"starHalf",halfInverted:"starHalfInverted",full:"starFull"};t.StarIcon=e=>{var t=void 0===(i=e.size)?"medium":i,r=e.type,i=void 0!==(c=e.ariaHidden)&&c,c=(e=void 0===(c=e.ariaLabel)?"":c,t=(c=s[t]).width,c.height);return a.default.createElement(o.SvgImg,{"data-testid":u[r],path:l[r],width:t,height:c,"aria-hidden":i,"aria-label":e,className:(0,n.default)("halfInverted"===r?"scale-x-[-1] scale-y-[1]":void 0)})}},1185:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(2140);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.StarIcon,t.default=r},2027:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SuccessIcon=t.ExternalLinkIcon=t.ErrorIcon=void 0;var n=(r=r(7363))&&r.__esModule?r:{default:r};t.ErrorIcon=e=>(e=e.className,n.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},n.default.createElement("g",{id:"Icon"},n.default.createElement("path",{id:"Base",d:"M9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18C13.9706 18 18 13.9706 18 9C18 6.61305 17.0518 4.32387 15.364 2.63604C13.6761 0.948212 11.3869 0 9 0Z",fill:"currentColor"}),n.default.createElement("path",{id:"Path",fillRule:"evenodd",clipRule:"evenodd",d:"M10 4H8V11H10V4ZM10 12H8V14H10V12Z",fill:"white"})))),t.SuccessIcon=e=>(e=e.className,n.default.createElement("svg",{width:"16",height:"18",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},n.default.createElement("path",{d:"M9 1C4.02944 1 0 5.02944 0 10C0 14.9706 4.02944 19 9 19C13.9706 19 18 14.9706 18 10C18 7.61305 17.0518 5.32387 15.364 3.63604C13.6761 1.94821 11.3869 1 9 1Z",fill:"currentColor"}),n.default.createElement("path",{d:"M13.4522 5.96411L14.8338 7.41013L6.96232 14.9314L3.16211 11.2562L4.55247 9.81854L6.97015 12.157L13.4522 5.96411Z",fill:"white"}))),t.ExternalLinkIcon=e=>(e=e.className,n.default.createElement("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"data-testid":"external-link-icon"},n.default.createElement("path",{d:"M12.8313 9.38026V11.0537C12.8313 12.1583 11.9359 13.0537 10.8313 13.0537H2.89179C1.78722 13.0537 0.891789 12.1583 0.891789 11.0537V3.11499C0.891789 2.01042 1.78722 1.11499 2.89179 1.11499L4.56548 1.11499",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M7.71436 1.11485H12.8313V6.23145",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M6.56006 7.38597L12.5904 1.35601",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})))},8673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2027);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},8810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SvgImg=void 0;var n=l(r(7363)),a=l(r(4184)),o=r(3861),i=r(4828);const s=["width","height","path","alt","className"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.SvgImg=e=>{var t=e.width,r=e.height,l=e.path,c=e.alt,d=e.className,p=function(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),o=0;o<a.length;o++)r=a[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,s);e=(0,i.usePayload)().marketplace;return n.default.createElement("img",u({},p,{src:(0,o.getImageUrl)(e,l),width:t,height:r,alt:c,className:(0,a.default)("inline-block",d)}))}},2746:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8810);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},4337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=s(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),a=i(r(5697)),o=i(r(4184));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function l(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const c="up",d="down",p="animate";class m extends n.Component{constructor(e){let t;super(e),t=!e.isPreview&&e.positionOnScreen<=e.slideThreshold?c:d,this.state={position:t,animating:!1},e.isPreview&&(this.previewAnimationDone=!1,this.teaseImageWrapper=null,this.setTeaseImageWrapperRef=e=>{this.teaseImageWrapper=e},this.flipTeaseAnimation=this.flipTeaseAnimation.bind(this))}componentDidMount(){this.props.isPreview&&!this.previewAnimationDone&&(setTimeout(this.flipTeaseAnimation,3e3),this.previewAnimationDone=!0)}UNSAFE_componentWillReceiveProps(e){var t,r;this.props.isPreview||("number"==typeof this.props.positionOnScreen?(t=e.positionOnScreen<=e.slideThreshold-e.thresholdBuffer,r=e.positionOnScreen>e.slideThreshold+e.thresholdBuffer,t&&this.state.position!==c?(this.setState({position:c}),this.setState({animating:!0})):r&&this.state.position!==d&&(this.setState({position:d}),this.setState({animating:!0}))):this.setState({position:e.positionOnScreen<=e.slideThreshold?c:d}))}flipTeaseAnimation(){var e=this.props.stylePrefix;this.teaseImageWrapper&&(this.teaseImageWrapper.className=this.teaseImageWrapper.classList.contains(""+e+c)?e+"slide-"+d:e+"slide-"+c)}renderStyle(){const e=this.props,t=e.height,r=e.stylePrefix,a=`margin-top:-${t}px`,o="margin-top:0";var i=(e,t)=>`\n @${t||""}keyframes ${r}${p}-${e} {\n from {${e===c?o:a}}\n to {${e===c?a:o}}\n }\n `,s=e=>{var t=` ${r}${p}-${e} 0.5s 1 forwards`;return`\n .${r}slide-${e} {\n -webkit--animation: ${t};\n animation: ${t};\n }\n `};return n.default.createElement("style",null,`\n .${r}${c} { ${a}; }\n ${i(c,"-webkit-")}\n ${i(c)}\n ${i(d,"-webkit-")}\n ${i(d)}\n ${s(c)}\n ${s(d)}\n `)}render(){const e=this.props,t=e.height,r=e.positionOnScreen,a=e.style,i=e.stylePrefix;var s=(0,o.default)({[""+i+c]:this.state.position===c,[i+"slide-"+c]:this.state.position===c&&this.state.animating,[i+"slide-"+d]:this.state.position===d&&this.state.animating});return n.default.createElement("div",{style:u({height:t,overflow:"hidden"},a)},this.renderStyle(),n.default.createElement("div",{className:s,style:{height:t*n.default.Children.count(this.props.children),visibility:"number"==typeof r?"visible":"hidden"},ref:this.setTeaseImageWrapperRef},n.default.Children.map(this.props.children,((e,r)=>n.default.createElement("div",{key:"tease_frame_"+r,style:{display:"block",height:t,overflow:"hidden"}},e)))))}}(t.default=m).displayName="Tease",m.propTypes={height:a.default.number.isRequired,positionOnScreen:a.default.number,slideThreshold:a.default.number,style:a.default.object,stylePrefix:a.default.string,thresholdBuffer:a.default.number,isPreview:a.default.bool},m.defaultProps={slideThreshold:.5,stylePrefix:"tease-",thresholdBuffer:.05}},9731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Text=void 0;var n=i(r(7363)),a=i(r(1991));const o=["children","variant","strike","italic","noWrap","color","isBreakWord","lineClamp","className"];function i(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const l={colors:{black:"text-black-700 dark:text-white",blue40:"text-blue-400 dark:text-white",blue60:"text-blue-500 dark:text-white",red30:"text-red-300 dark:text-white",red40:"text-red-400 dark:text-white",red50:"text-red-500 dark:text-white",red80:"text-red-800 dark:text-white",orange60:"text-orange-600 dark:text-white",gray70:"text-gray-700 dark:text-white",gray60:"text-gray-600 dark:text-white",gray65:"text-gray-650 dark:text-white",gray40:"text-gray-400 dark:text-white",gray10:"text-gray-100 dark:text-white",white:"text-white dark:text-slate-900",slate80:"text-slate-800 dark:text-white",slate40:"text-slate-400 dark:text-white",green40:"text-green-400 dark:text-white",green50:"text-green-500 dark:text-white",inherit:"text-inherit"},variant:{"headline-large":"text-lg text-gray-700 italic break-words",xxs:"text-xxs",xs:"text-xs",xl:"text-xl",xxl:"text-xxl",superscript:"text-superscript",large:"text-lg",body:"text-md","body-larger":"text-md text-[14px] leading-[19px]",sm:"text-sm",md:"text-md",caption:"text-[0.85em]","caption-xs":"text-[0.60em]","caption-small":"text-[0.75em]",uppercase:"text-uppercase",default:""},base:"display-inline-box dark:text-white",strike:"line-through",noWrap:"whitespace-nowrap",lineClamp:{0:"line-clamp-none",1:"line-clamp-1",2:"line-clamp-2",3:"line-clamp-3",4:"line-clamp-4",5:"line-clamp-5",6:"line-clamp-6"}};r=e=>{var t=e.children,r=void 0===(f=e.variant)?"default":f,i=void 0!==(d=e.strike)&&d,u=void 0!==(m=e.italic)&&m,c=void 0!==(p=e.noWrap)&&p,d=void 0===(f=e.color)?"black":f,p=void 0!==(m=e.isBreakWord)&&m,m=void 0===(f=e.lineClamp)?null:f,f=e.className;e=function(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),o=0;o<a.length;o++)r=a[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,o),f=(0,a.default)(l.base,"none"!==r?l.variant[r]:null,l.colors[d],null===m?"":l.lineClamp[m],i&&l.strike,c&&l.noWrap,u?"italic":"inherit",f);const g={};return p&&(g.wordBreak="break-word",g.overflowWrap="anywhere"),d&&void 0===l.colors[d]&&(g.color=d),n.default.createElement("span",s({style:g},e,{className:f}),t)},(t.Text=r).displayName="Text"},7886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(9731);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.Text,t.default=r},8325:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoPreviewPoster=void 0;var n=o(r(7363)),a=o(r(4184));function o(e){return e&&e.__esModule?e:{default:e}}const i={square:"aspect-square",horizontal:"aspect-video",vertical:"aspect-portrait"};t.VideoPreviewPoster=e=>(e=e.scale,n.default.createElement("div",{className:(0,a.default)("play-button-container flex items-center justify-center h-full w-full bg-neutral-100 z-50",i[e])},n.default.createElement("div",{className:"play-button flex items-center justify-center h-[60px] w-[60px] rounded-[50%] bg-neutral-300 pl-[19px]"},n.default.createElement("span",{className:"play-button-triangle w-0 h-0 border-[12px] border-transparent rounded-[4px] border-r-0 border-l-[21px] border-l-[#c5c5c5]"}))))},3273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(8325);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.VideoPreviewPoster,t.default=r},9556:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WholeFoodsLogo=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(2746);const i={xsmall:{width:85,height:9},small:{width:105,height:11},medium:{width:132,height:14},large:{width:151,height:16}};t.WholeFoodsLogo=e=>{var t=e.size;e=(t=i[e=void 0===t?"xsmall":t]).width,t=t.height;return a.default.createElement(o.SvgImg,{path:"perc/wfm-logo.svg",alt:"WholeFoods","data-testid":"wfm-logo",width:e,height:t,className:"mb-0.5"})}},2632:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(9556);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.WholeFoodsLogo,t.default=r},4709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdChoicesContainer=void 0;var n=o(r(7363)),a=o(r(4184));function o(e){return e&&e.__esModule?e:{default:e}}t.AdChoicesContainer=e=>{var t=e.children;e=e.position;return n.default.createElement("div",{className:(0,a.default)("adchoices-container z-30 absolute top-0","right"===(void 0===e?"right":e)?"right-0":"left-0")},t)}},7181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppLayoutContainer=void 0;var n,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=u(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),o=(n=r(4184))&&n.__esModule?n:{default:n},i=r(317),s=r(4828);const l=["children","isScrollable"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e,t)||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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.AppLayoutContainer=e=>{var t=e.children,r=e.isScrollable,n=void 0!==r&&r,u=function(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),o=0;o<a.length;o++)r=a[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,l),p=(0,i.useAppLayout)().isTwitchDarkAd;const m=d((0,a.useState)(!1),2),f=m[0],g=m[1];return e=(r=(0,s.usePayload)()).customBackgroundColor,r=r.isNonEndemicAd,(0,a.useEffect)((()=>{g(!0)}),[g]),a.default.createElement("div",c({style:{width:"100%",height:n?"auto":"100%"},"data-testid":"app-layout-container","data-has-hydrated":f},u,{className:(0,o.default)("tw",{dark:p||!!e&&r})}),t)}},5295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CarouselHeader=void 0;var n=l(r(7363)),a=l(r(7886)),o=r(1245),i=r(4828),s=r(6496);function l(e){return e&&e.__esModule?e:{default:e}}t.CarouselHeader=e=>{let t=e.titleRegion,r=void 0===t?"product-title":t,l=e.hasSponsoredLabel,u=void 0!==l&&l;const c=(0,o.useI18n)().getString,d=(0,i.usePayload)(),p=d.brandName,m=d.productDetails.productTitle;return n.default.createElement("div",{className:"min-h-[50px] flex flex-col gap-0.25 justify-center align-middle px-1 auto"},n.default.createElement("div",null,(e=>{let t=null;return"headline"===e?t=n.default.createElement(a.default,{className:"text-md font-bold",lineClamp:u?1:2},c("featured_by").replace("{brandName}",p)):"product-title"===e&&(t=n.default.createElement(a.default,{className:"text-md font-bold",lineClamp:u?1:2},m)),t})(r)),u&&n.default.createElement(s.SponsoredLabel,{className:"text-sm"}))}},9060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Grid=void 0;var n=f(r(7363)),a=f(r(4184)),o=r(2944),i=r(9294),s=r(4709),l=r(4828),u=r(5951),c=r(6609),d=r(6475),p=r(868),m=r(2616);function f(e){return e&&e.__esModule?e:{default:e}}t.Grid=e=>{var t=e.adLink,r=e.brandAdLink,f=e.adChoicesButton;(0,o.useTailwindStyles)();var g=(_=(0,l.usePayload)()).activeExperiments,h=_.isBorderless,y=_.currentScreen,v=_.isRTL,b=_.isIlmPlacement,C=_.mlParameters.backgroundColor;(0,m.useLogCreativeTypeImpressions)();var x=(0,u.useGridCustomizations)(),E=(0,c.useBorderStyle)(),S=(0,d.isExperimentGroupActive)(g,d.Experiments.ThickBorder)?E:(0,a.default)("border-gray-400","border");if(!x)throw new Error(`Grid configuration for ${y} is not found`);e=(0,a.default)({"opacity-[0.07]":!0,"top-0":!0,"left-0":!0,"bottom-0":!0,"right-0":!0,absolute:!0,"content-['']":!0});var _=x.slides,T=(E=x.componentMap,y=x.componentProps,x=g[d.Experiments.PercIdentifier],1===_.length&&(null===(g=_[0].componentProps)||void 0===g||null===(T=g[p.Components.GridLayout])||void 0===T?void 0:T.borderless));return n.default.createElement("div",{"data-testid":"gridContainer",className:(0,a.default)("layout-container flex items-center justify-center overflow-hidden relative bg-white w-full h-full",h||T?"":S,"dark:bg-black-800"),style:C?{background:C}:{}},x?n.default.createElement("div",{"data-testid":"percIdentifierPixel",className:"h-[1px] w-[1px] fixed bottom-0 left-0 bg-zinc-400 z-10"}):null,n.default.createElement(s.AdChoicesContainer,null,f),n.default.createElement("div",{className:"h-full w-full relative","data-testid":"gridWrapper",style:{direction:v?"rtl":"ltr"}},b&&n.default.createElement("div",{"data-testid":"ilmBackground",className:e}),n.default.createElement("div",{"data-region-type":"trigger",className:"w-full h-full"},n.default.createElement(i.GridLayout,{componentProps:y,adLink:t,brandAdLink:r,slides:_,componentMap:E}))))}},9294:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridLayout=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=p(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),a=(b=r(4184))&&b.__esModule?b:{default:b},o=r(2944),i=r(868),s=r(5295),l=r(2165),u=r(2616),c=r(4828),d=r(1353);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function m(e){return v(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||g()}function f(e,t){return v(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||h(e,t)||g()}function g(){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 h(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e){if(Array.isArray(e))return e}var b=e=>{let t=e.adLink,p=e.brandAdLink,g=e.slides,h=e.componentProps,y=void 0===h?{}:h,v=e.componentMap;const b=(0,c.usePayload)(),C=b.isProductCollectionCreative,x=b.TTIMeasurementMode,E=f((0,n.useState)(!1),2),S=E[0],_=E[1],T=(0,d.useSF)().SFApi;(0,o.useTailwindStyles)();const w=(0,u.useCEM)().logPerformanceEvent;(0,n.useEffect)((()=>{_(!0)}),[_]);const P=m(g),O=P[0],A=P.slice(1),I=y[i.Components.Slider]||{},N=I.slideClassName,M=I.sliderClassName,D=I.hasDropShadow,L=void 0===D||D,B=I.hasRoundedSlideCorners,R=void 0!==B&&B,j=I.header,k=!j;var F=O.regions,z=O.gridStyles,Z=O.componentProps;const G=n.default.createElement("div",{className:(0,a.default)("w-full h-full",k?"pt-2 pb-0 px-2":"pb-[5px] px-1")},n.default.createElement(l.GridRegion,{hasRoundedSlideCorners:R,hasDropShadow:L,componentMap:v,hasSlideStyling:!0,hasShadedBackground:null===(e=Z[i.Components.Slide])||void 0===e?void 0:e.hasShadedBackground,isCarousel:!1,adLink:t,regionConfig:{componentProps:Z,regions:F,gridStyles:z}}));var W;return A.length?(W=(0,n.lazy)((()=>Promise.all([r.e(101),r.e(716)]).then(r.bind(r,96)))),n.default.createElement("div",{className:"w-full h-full flex flex-col"},j&&n.default.createElement(s.CarouselHeader,j),S?n.default.createElement(n.Suspense,{fallback:G},n.default.createElement(W,{onSwipe:()=>w({eventName:u.EventNames.ZOETROPE_MODAL_SWIPE}),onInit:()=>{"carousel"===x&&T&&T.signalAdLoadedAndInteractive(),w({eventName:u.EventNames.ZOETROPE_MODAL_SLIDER_INIT})},onSlidesCompleted:()=>w({eventName:u.EventNames.ZOETROPE_MODAL_SLIDER_COMPLETE}),hasDropShadow:L,hasRoundedSlideCorners:R,hasHeader:!k,slideClassName:N,sliderClassName:M,slides:g,adLink:t,brandAdLink:p,componentMap:v})):G)):n.default.createElement(l.GridRegion,{componentMap:v,hasSlideStyling:!1,hasDropShadow:!1,hasShadedBackground:null===(W=Z[i.Components.Slide])||void 0===W?void 0:W.hasShadedBackground,isCarousel:!1,adLink:C?p:t,regionConfig:{componentProps:Z,regions:F,gridStyles:z}})};(t.GridLayout=b).displayName="GridLayout"},2165:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridRegion=void 0;var n=m(r(7363)),a=m(r(4184)),o=r(317),i=r(868),s=m(r(1414)),l=r(5670),u=r(4828),c=r(4911),d=r(1353),p=r(2616);function m(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e,t)||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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.GridRegion=e=>{var t=e.regionConfig,r=void 0!==(D=e.hasSlideStyling)&&D,m=void 0===(O=e.hasDropShadow)||O,h=e.hasRoundedSlideCorners,y=e.hasShadedBackground,b=void 0===(L=e.hasBorder)||L,C=e.componentMap,x=e.adLink,E=e.isCarousel,S=void 0!==(B=e.disableCloseButtonBar)&&B,_=e.wrapperClass;const T=t.gridStyles,w=t.regions,P=t.componentProps;var O,A=(0,o.useAppLayout)(),I=A.currentScreen,N=A.identifier,M=A.expandableAdStatus,D=A.isTwitchDarkAd,L=(O=(0,u.usePayload)()).isTailSizeCreative,B=O.width;e=O.height,t=O.slotName;const R=(0,l.useExpandableAdStatusTransition)(),j=R.expandableAdStatusTransitionClass,k=R.resetCreativeView,F=(0,d.useSF)().SFApi,z=(0,p.useCEM)().logPerformanceEvent,Z=L||D;O=(A=P[i.Components.GridLayout]||{}).className,D=void 0===(L=A.alignmentClass)?"items-center":L,L=void 0===(L=A.style)?{}:L,A=void 0===(A=A.testid)?"":A;const G=M===l.ExpandableAdStatus.Expanded&&!S,W="desktop-detail-ilm"===t&&980===B&&55===e;return n.default.createElement("div",{"data-testid":E?"gridRegionCarousel":"gridRegion",className:(0,a.default)("w-full h-full",r&&"h-full relative overflow-hidden",E&&b&&"border",m?"shadow-sm1-light border-gray-500":"border-gray-400",h?"rounded-[4px]":"",j,_),onMouseLeave:()=>{W&&G&&(k(),null!=F&&F.resetSlotSize(),z({eventName:p.EventNames.EXPANDABLE_VIDEO_AD_COLLAPSED_VIA_MOUSE_LEAVE}))}},y&&n.default.createElement("div",{"data-testid":"darkSlideBackground",className:"opacity-[0.03] top-0 left-0 bottom-0 right-0 absolute content-[''] z-10 bg-[#000]"}),x,G?n.default.createElement(s.default,null):null,n.default.createElement("div",{"data-testid":A,"data-identifier":N,"data-current-screen":I,className:(0,a.default)("grid w-full h-full",D,O,G?"grid-height-override-for-expanded-creative-view":""),style:v(v({},T),L)},Object.entries(C).map((e=>{var t=g(e,2),r=t[0];e=t[1];return w.includes(r)?(e=r===i.Components.BuyBox&&(Z||null!==(t=P["buy-box"])&&void 0!==t&&t.isReponsiveBuyBox)?c.BuyBoxResponsive:e,n.default.createElement(e,f({key:"gridRegion_"+r},P[r]||{},{styles:{gridArea:r}}))):null}))))}},6010:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Loading=t.BackgroundLoader=void 0;var n=i(r(7363)),a=r(1245),o=i(r(7886));function i(e){return e&&e.__esModule?e:{default:e}}t.Loading=()=>{const e=(0,a.useI18n)().getString;return n.default.createElement("div",{className:"w-full h-full flex jusitfy-center items-center py-2"},n.default.createElement(o.default,{className:"text-center block w-full"},e("loading")))},t.BackgroundLoader=()=>n.default.createElement("div",{className:"h-full w-full animate-pulse bg-gray-500"})},5378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(7363)),a=i(r(4184)),o=r(7886);function i(e){return e&&e.__esModule?e:{default:e}}const s={red:"white",green:"black",cyan:"slate80",coral:"black",white:"black"},l={micro:"h-[16px] px-0.25",small:"h-[18px] px-0.5",medium:"h-3 px-[6px]"},u={red:"bg-red-300 dark:bg-white",green:"bg-green-400 dark:bg-white",cyan:"bg-cyan-300",coral:"bg-coral dark:bg-white",white:"bg-white"},c={text:{micro:"md",small:"md",medium:"md"},square:{micro:"xxs",small:"xs",medium:"sm"}};t.default=e=>{var t=void 0===(f=e.size)?"medium":f,r=void 0===(g=e.color)?"red":g,i=e.textColor,d=e.textVariant,p=void 0===(h=e.variant)?"square":h,m=e.children,f=e.className,g=l,h=u;f=(e="text"===p)?f:(0,a.default)(["relative inline-flex items-center",g[t],h[r],f]),r=i||(e?"gray10":s[r]),p=d||c[p][t];return n.default.createElement("div",{"data-testid":"badge","data-badge-size":t,className:f},n.default.createElement(o.Text,{"data-testid":"badge-text",color:r,variant:p,noWrap:!e},m))}},2832:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Badge",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}});var n=(r=r(5378))&&r.__esModule?r:{default:r}},1202:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(518),i=r(7886);const s={xsmall:"text-[15px] font-normal",small:"text-[18px] font-normal",medium:"text-[20px] font-light",large:"text-[22px] font-light",xlarge:"text-[24px] font-light"},l={mediumPlus:"text-lg font-light leading-[18px]",large:"text-xl font-light"};t.default=e=>{var t=e.children,r=void 0===(u=e.className)?"":u,n=e.size,u=void 0===(u=e.isInline)||u;n=(e=e.isRioPricing)?l[null!=n?n:"mediumPlus"]:s[null!=n?n:"medium"],r=e?(0,o.twMerge)(n,r):(0,o.twMerge)("self-center !leading-none",n,r);return a.default.createElement(i.Text,{"data-testid":"inlineSavingsText-"+(u?"inlineWithPrice":"abovePrice"),color:"red30",className:r},t)}},9584:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"InlineSavingsText",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}});var n=(r=r(1202))&&r.__esModule?r:{default:r}},7659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TermsAndConditionsLabel=void 0;var n=s(r(7363)),a=r(518),o=r(1245),i=s(r(7886));function s(e){return e&&e.__esModule?e:{default:e}}t.TermsAndConditionsLabel=e=>{var t=e.className;e=e.wrapperClass;const r=(0,o.useI18n)().getString;return n.default.createElement("div",{className:(0,a.twMerge)("grid-terms-and-conditions-label flex",e)},n.default.createElement(i.default,{"data-testid":"terms-and-conditions-label",className:(0,a.twMerge)("text-gray-600",t)},r("terms_apply")))}},7782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(7659);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.TermsAndConditionsLabel,t.default=r},7304:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(7363)),a=u(r(4184)),o=r(518),i=r(7886),s=r(580),l=r(3205);function u(e){return e&&e.__esModule?e:{default:e}}t.default=e=>{var t,r=void 0===(t=e.size)?"medium":t,u=e.textSize,c=void 0===u?"medium":u,d=e.isCentered,p=e.className,m=e.automatedBadgingData,f=e.variant,g=void 0===f?"inline":f,h=e.shortContentThreshold;if(!(t=(0,l.useAutomatedDealBadge)({automatedBadgingData:m,shortContentThreshold:h})))return n.default.createElement(n.default.Fragment,null);u=t.labelText,f=t.labelTextColor,e=t.labelBackgroundColor,m=t.messageText,h=t.messageTextColor,t=t.messageBackgroundColor;let y=(0,o.twJoin)("items-center",d&&"justify-center");return"stack"===g?y=(0,o.twJoin)("flex-col",d?"items-center":"items-start"):"wrap"===g&&(y=(0,o.twJoin)(y,"flex-wrap")),n.default.createElement("div",{className:(0,o.twMerge)("flex gap-x-0.75 gap-y-0.5",y,p)},u&&n.default.createElement("div",{style:{backgroundColor:e},className:(0,a.default)("flex items-center px-[6px] rounded-0.5",s.BADGE_SIZE_MAP[r])},n.default.createElement(i.Text,{"data-testid":"automated-badge-label-text",color:f,variant:s.TEXT_SIZE_MAP[c],className:(0,a.default)("font-bold",s.TEXT_LINEHEIGHT_MAP[c]),noWrap:!0},u)),m&&n.default.createElement("div",{"data-testid":"message",style:{backgroundColor:t},className:(0,a.default)("flex items-center rounded-0.5 h-full")},n.default.createElement(i.Text,{"data-testid":"automated-badge-message-text",color:h,variant:s.TEXT_SIZE_MAP[c],className:(0,a.default)("font-bold",s.TEXT_LINEHEIGHT_MAP[c])},m)))}},580:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_SIZE_MAP=t.TEXT_LINEHEIGHT_MAP=t.TARGET_TIME_PLACEHOLDER=t.SHORT_CONTENT_MAX_LENGTH=t.REGULARCONTENT_MAX_LENGTH=t.ONE_SECOND_IN_MS=t.ONE_MINUTE_IN_MS=t.ONE_HOUR_IN_MS=t.BADGE_SIZE_MAP=void 0,t.BADGE_SIZE_MAP={micro:"h-[20px]",small:"h-[20px]",medium:"h-3"},t.TEXT_SIZE_MAP={micro:"xs",small:"xs",medium:"sm"},t.TEXT_LINEHEIGHT_MAP={micro:"leading-[11px]",small:"leading-[11px]",medium:"leading-[12px]"},t.TARGET_TIME_PLACEHOLDER="xx:xx",t.ONE_SECOND_IN_MS=1e3,t.ONE_MINUTE_IN_MS=6e4,t.ONE_HOUR_IN_MS=36e5,t.REGULARCONTENT_MAX_LENGTH=23,t.SHORT_CONTENT_MAX_LENGTH=10},9345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AutomatedDealBadge",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}});var n=(r=r(7304))&&r.__esModule?r:{default:r}},4911:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BuyBoxResponsive=void 0;var n=O(r(7363)),a=O(r(4184)),o=r(518),i=r(7972),s=r(7886),l=O(r(7593)),u=r(3540),c=r(317),d=r(8433),p=r(5663),m=r(546),f=r(4537),g=r(2350),h=r(2850),y=r(9718),v=O(r(8756)),b=r(9672),C=r(1279),x=r(8403),E=r(9981),S=r(868),_=r(4828),T=O(r(9345)),w=r(580),P=O(r(8144));function O(e){return e&&e.__esModule?e:{default:e}}function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.BuyBoxResponsive=e=>{let t=e.wrapperClass,r=void 0===t?"p-0.5":t,O=e.paddingY,I=void 0===O?8:O,N=e.widthInFraction,M=void 0===N?1:N,D=e.heightInFraction,L=void 0===D?1:D,B=e.creativeExperience,R=void 0===B?S.CreativeExperience.Default:B,j=e.isCentered,k=void 0!==j&&j,F=e.responsiveBuyBoxOverrides,z=e.hideSavingsText,Z=e.savingsTextSize,G=e.savingsTextClassName,W=e.isSavingsTextInline,U=void 0===W||W,V=e.hideProductTitle,H=void 0!==V&&V,Y=e.hideStrikeOutPrice,q=void 0!==Y&&Y,X=e.productIndex,Q=void 0===X?0:X,J=e.energyEfficiencySize,K=e.removeItems,$=void 0===K?[]:K,ee=e.socialProofingTextVariant,te=void 0===ee?"none":ee,re=e.socialProofingWrapperClass,ne=void 0===re?"":re;var ae=(st=F||{}).productTitleMaxLines,oe=st.productTitleVariant,ie=st.ratingsSize,se=void 0===(ot=st.ratingsTextSize)?"small":ot,le=st.priceSize,ue=st.primeLogoSize,ce=st.badgeSize,de=void 0!==(it=st.getBuyboxLayoutFromTemplateAreaConfig)&&it,pe=st.className,me=st.buyboxWidth,fe=st.buyboxHeight;const ge=(0,c.useAppLayout)(),he=ge.height,ye=ge.width,ve=ge.currentScreen;var be=me||Math.round(ye*M),Ce=fe||Math.round(he*L),xe=be<160,Ee=ve.includes("banner")&&be<180,Se=(lt=(0,m.useDealData)(Q)).isSnsDiscount,_e=lt.showDealDisclaimer,Te=lt.isCoupon,we=(0,u.useDealBadge)(Q).badgeText,Pe=(ct=(0,_.usePayload)()).headline,Oe=ct.activeExperiments,Ae=(ut=ct.mlParameters).priceColor,Ie=ut.priceFontSize,Ne=ut.priceFontStyle,Me=ut.priceFontWeight,De=ut.currencyStyle,Le=ut.primeLogoSize,Be=ut.ratingColor,Re=ut.ratingFontSize,je=ut.ratingsFontStyle,ke=ut.ratingsFontWeight,Fe=ut.headlineFontStyle,ze=ut.headlineFontWeight,Ze=ut.headlineFontSize,Ge=ut.headlineFontColor,We=ut.productTitleColor,Ue=ut.productTitleFontSize,Ve=ut.productTitleFontStyle,He=ut.productTitleFontWeight,Ye=ct.productDetails,qe=(pt=(null==(dt=ct.productDetailsList)?void 0:dt[Q])||Ye).price,Xe=pt.productTitle,Qe=pt.showEnergyEfficiency,Je=pt.energyEfficiency,Ke=pt.isClimatePledgeFriendly,$e=pt.automatedBadgingData,et=(0,p.useSavingsText)(),tt=!z&&U&&et,rt=!z&&!U&&et,nt=(0,y.useRatings)().showRatings,at=(0,x.useQuantityDiscountsLabel)(Qe,Se||we||_e||$e),ot=(e=at.quantityDiscountsPrice,at.qdMessage),it=at.showQuantityDiscountsLabel,st=!Te&&!Se&&!!(we||$e||rt),lt=(fe=me="banner-desktop"===ve&&!de,134===ye&&180===he),ut=Oe[C.Experiments.TextOnlyCTA.TextCTA]||Oe[C.Experiments.TextOnlyCTAButton.TextCTAButton],ct=Oe[C.Experiments.TextOnlyCTA.TextWithCaretCTA]||Oe[C.Experiments.TextOnlyCTAButton.TextWithCaretCTAButton],dt=Oe[C.Experiments.HeadlineStyling.LightFont]||Oe[C.Experiments.HeadlineStyling.AllCapsWithLightFont],pt=(Ye=Oe[C.Experiments.HeadlineStyling.AllCaps]||Oe[C.Experiments.HeadlineStyling.AllCapsWithLightFont],Oe[C.Experiments.PERCSocialProofingMessage.FiveStarPercentageOver50]||Oe[C.Experiments.PERCSocialProofingMessage.FiveStarPercentageOver75]||Oe[C.Experiments.PERCSocialProofingMessage.FiveStarPercentageOver90]);let mt=2;Ce<80&&(mt=0),et=!!Xe&&!me&&!H,at=nt&&!xe&&!me&&!$.includes(g.BuyBoxComponents.Ratings),Oe=!!Pe&&!1,nt=!!qe,me=(Se||!!we||_e||!!$e||rt)&&!xe&&!$.includes(g.BuyBoxComponents.DealBadge),qe=Qe,Qe=ut||ct,ut=it,pt=pt&&!st&&!$.includes(g.BuyBoxComponents.SocialProofingMessage),be=(0,h.getComponentSizes)({buyboxHeight:Ce,buyboxWidth:be,additionalOptions:{hasSavingsText:!!tt}}),st=(0,h.getBuyboxGridConfig)({hasDeal:de?me:st,hasEnergyEfficiencyBadge:qe,isHorizontal:fe,creativeExperience:R,currentScreen:ve});const ft=(de?(0,h.getComponentsListFromGridTemplateAreas)(st.gridTemplateAreas):(0,h.getShownComponentsByPriority)({buyboxHeight:Ce,showProductTitle:et,showStarRating:at,showHeadline:Oe,showDealPrice:nt,showQuantityDiscounts:ut,showDealBadge:me,showEnergyEfficiencyBadge:qe,showCTAButton:Qe,componentSizes:be,paddingY:I,gapY:mt,showClimatePledgeFriendly:Ke,showSocialProofingMessage:pt,filterBasedOnAvailableSpace:!fe})).filter((e=>!$.includes(e)));let gt=null!=ae?ae:ft.filter((e=>e===g.BuyBoxComponents.ProductTitle)).length;return Ee&&(gt=1),Ke=(0,h.getBuyboxGridStyles)({buyBoxGridConfig:st,componentsAllowedInGrid:ft}),ae=(0,o.twMerge)(ve.includes("banner")&&"items-center",k&&"items-center text-center justify-center"),st=fe?"gap-x-1 items-center":g.BUYBOX_GAP_Y[mt],Ze=(0,b.resolveFontClassName)("",Fe,ze,Ze),Ue=(0,b.resolveFontClassName)("",Ve,He,Ue),Le=Le||ue||"large",ue=lt||$.includes("prime-logo"),!de&&et&&ft.push(g.BuyBoxComponents.ProductTitle),n.default.createElement("div",{"data-testid":"buybox-responsive",className:(0,a.default)("grid-buy-box flex h-full w-full",r,ae)},n.default.createElement("div",{className:(0,a.default)("grid",st,pe),style:Ke},ft.includes(g.BuyBoxComponents.ProductTitle)?n.default.createElement("div",{className:"buybox-product-title"},n.default.createElement(s.Text,{isBreakWord:!0,"data-testid":"productTitle",className:(0,a.default)(Ue),color:We||"black",lineClamp:gt,variant:null!=oe?oe:be[g.BuyBoxComponents.ProductTitle]===g.ComponentSize.medium?"md":void 0},Xe)):null,ft.includes(g.BuyBoxComponents.Headline)?n.default.createElement("div",{className:"buybox-headline"},n.default.createElement(s.Text,{isBreakWord:!0,"data-testid":"headline",color:Ge,className:(0,a.default)(dt?"font-light":ze||"font-bold",Ze,Ye?"uppercase":"")},Pe)):null,ft.includes(g.BuyBoxComponents.DealPrice)?n.default.createElement("div",{className:"buybox-dealprice"},n.default.createElement(i.DealPrice,{isCentered:k,priceSize:null!=le?le:be[g.BuyBoxComponents.DealPrice],priceSizeOverride:Ie,superscriptDecimal:De?"superscript"===De:void 0,color:Ae,priceClassName:(0,a.default)(Ne,Me),legalTextSize:"small"===be[g.BuyBoxComponents.DealPrice]?"caption-small":void 0,primeLogoSize:Le,hideStrikeOutPrice:q||Ee||lt,hidePrimeLogo:ue,savingsText:tt,savingsTextSize:Z,savingsTextClassName:G,productIndex:Q})):null,ft.includes(g.BuyBoxComponents.QuantityDiscounts)?n.default.createElement("div",{className:"buybox-quantity-discount"},n.default.createElement(E.QuantityDiscountsLabel,{quantityDiscountsPrice:e,qdMessage:ot,showQuantityDiscountsLabel:it})):null,ft.includes(g.BuyBoxComponents.Ratings)?n.default.createElement("div",{className:"buybox-ratings"},n.default.createElement(l.default,{size:ie,className:(0,a.default)("my-0.25",k?"justify-center":"",je,ke),fontColor:Be,fontSize:Re,textSize:se,showSocialProofingMessage:pt,socialProofingTextVariant:te,socialProofingWrapperClass:ne})):null,ft.includes(g.BuyBoxComponents.DealBadge)?n.default.createElement(n.default.Fragment,null,$e&&n.default.createElement(T.default,{automatedBadgingData:$e,size:null!=ce?ce:be[g.BuyBoxComponents.DealBadge],textSize:null!=ce?ce:be[g.BuyBoxComponents.DealBadge],shortContentThreshold:xe||Ee?w.SHORT_CONTENT_MAX_LENGTH:void 0,className:fe?"max-w-[160px]":void 0}),!$e&&n.default.createElement("div",{className:"buybox-dealbadge my-[1px]"},n.default.createElement(d.DealDetails,{isCentered:k,dealBadgeText:we||"",showDealDisclaimer:_e,isSns:Se,isCoupon:Te,badgeSize:null!=ce?ce:be[g.BuyBoxComponents.DealBadge],className:fe?"max-w-[160px]":void 0,savingsText:rt,savingsTextSize:Z,savingsTextClassName:(0,o.twMerge)("pr-0.75",G)}))):null,ft.includes(g.BuyBoxComponents.EnergyEfficiency)?n.default.createElement("div",{className:"buybox-energybadge"},n.default.createElement(v.default,A({size:J||be[g.BuyBoxComponents.EnergyEfficiency]},Je))):null,ft.includes(g.BuyBoxComponents.CPFLogo)?n.default.createElement("div",{className:"buybox-cpf-logo"},n.default.createElement(P.default,{size:be[g.BuyBoxComponents.CPFLogo]})):null,ft.includes(g.BuyBoxComponents.CTAButton)?n.default.createElement("div",{className:"buybox-cta flex"},n.default.createElement(f.CTAButton,{size:"none",isTextCTA:ct,variant:ct?"textWithCaretCTA":"textOnlyCTA"})):null))}},785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BuyBox=void 0;var n=P(r(7363)),a=P(r(4184)),o=r(518),i=r(7972),s=r(7886),l=P(r(7593)),u=r(3540),c=r(317),d=r(8433),p=r(5663),m=r(546),f=r(4537),g=r(2350),h=r(9718),y=r(2850),v=r(1279),b=P(r(8756)),C=r(9672),x=r(9599),E=r(8403),S=r(9981),_=r(4828),T=r(9345),w=P(r(8144));function P(e){return e&&e.__esModule?e:{default:e}}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.BuyBox=e=>{let t=e.isCentered,r=void 0!==t&&t,P=e.titleRegion,A=void 0===P?"product-title":P,I=e.columnCount,N=e.productTitleMaxLines,M=e.ctaSize,D=void 0===M?"small":M,L=e.headlineClasses,B=e.dealPriceClasses,R=void 0===B?"":B,j=e.removeItems,k=void 0===j?[]:j,F=e.showRectangleWithCTA,z=void 0!==F&&F,Z=e.priceSize,G=void 0===Z?"medium":Z,W=e.rowCount,U=e.showAdditionalHeadlineLineWhenNeeded,V=void 0!==U&&U,H=e.showAdditionalHeadlineLineCharThreshold,Y=void 0===H?25:H,q=e.productTitleClasses,X=void 0===q?"":q,Q=e.hideBadge,J=void 0!==Q&&Q,K=e.totalLines,$=void 0!==K&&K,ee=e.className,te=e.hideStrikeOutPrice,re=void 0!==te&&te,ne=e.hidePrimeLogo,ae=void 0!==ne&&ne,oe=e.hideSavingsText,ie=void 0!==oe&&oe,se=e.savingsTextSize,le=e.savingsTextClassName,ue=e.isSavingsTextInline,ce=void 0===ue||ue,de=e.stackDealInfo,pe=void 0!==de&&de,me=e.isTextBadge,fe=void 0!==me&&me,ge=e.badgeSize,he=e.automatedDealBadgeTextSize,ye=e.automatedDealBadgeClasses,ve=e.automatedDealBadgeVariant,be=e.automatedDealBadgeShortContentThreshold,Ce=e.wholeFoodsLogoSize,xe=void 0===Ce?"small":Ce,Ee=e.energyEfficiencySize,Se=void 0===Ee?"large":Ee,_e=e.hideCta,Te=e.isEnergyEfficiencyStacked,we=void 0!==Te&&Te,Pe=e.priceSizeOverride,Oe=e.energyEfficiencyClasses,Ae=e.showTextCTA,Ie=void 0!==Ae&&Ae,Ne=e.showButtonCTA,Me=void 0!==Ne&&Ne,De=e.dealBadgeClasses,Le=void 0===De?"":De,Be=e.showCPFLogo,Re=void 0!==Be&&Be,je=e.CPFSize,ke=void 0===je?"large":je,Fe=e.isRioPriceInline,ze=void 0!==Fe&&Fe,Ze=e.socialProofingTextVariant,Ge=void 0===Ze?"none":Ze,We=e.socialProofingWrapperClass,Ue=void 0===We?"":We;const Ve=(0,_.usePayload)(),He=Ve.headline,Ye=Ve.activeExperiments,qe=Ve.productDetails,Xe=qe.productTitle,Qe=qe.energyEfficiency,Je=qe.showEnergyEfficiency,Ke=qe.automatedBadgingData,$e=qe.isClimatePledgeFriendly,et=Ve.mlParameters,tt=et.priceColor,rt=et.priceFontSize,nt=et.currencyStyle,at=et.priceFontStyle,ot=et.priceFontWeight,it=et.primeLogoSize,st=et.ratingColor,lt=et.ratingFontSize,ut=et.ratingsFontStyle,ct=et.ratingsFontWeight,dt=et.headlineFontStyle,pt=et.headlineFontWeight,mt=et.headlineFontSize,ft=et.headlineFontColor,gt=et.productTitleColor,ht=et.productTitleFontSize,yt=et.productTitleFontStyle,vt=et.productTitleFontWeight;var bt=(0,c.useAppLayout)().height,Ct=(0,p.useSavingsText)(),xt=(Ft=(0,m.useDealData)()).isSnsDiscount,Et=Ft.showDealDisclaimer,St=Ft.isCoupon,_t=(0,u.useDealBadge)().badgeText,Tt=(0,x.useAdLink)().destinationType,wt=Ye[v.Experiments.TextOnlyCTA.TextCTA]||Ye[v.Experiments.TextOnlyCTAButton.TextCTAButton],Pt=Ye[v.Experiments.TextOnlyCTA.TextWithCaretCTA]||Ye[v.Experiments.TextOnlyCTAButton.TextWithCaretCTAButton];const Ot=Ye[v.Experiments.HeadlineStyling.LightFont]||Ye[v.Experiments.HeadlineStyling.AllCapsWithLightFont],At=Ye[v.Experiments.HeadlineStyling.AllCaps]||Ye[v.Experiments.HeadlineStyling.AllCapsWithLightFont];var It=Ye[v.Experiments.PERCSocialProofingMessage.FiveStarPercentageOver50]||Ye[v.Experiments.PERCSocialProofingMessage.FiveStarPercentageOver75]||Ye[v.Experiments.PERCSocialProofingMessage.FiveStarPercentageOver90],Nt=!xt&&!St,Mt=(0,y.getComponentOrder)({isBadgeAbovePrice:Nt}),Dt=(0,h.useRatings)().showRatings,Lt=(_t||Ke||Ct)&&!J,Bt=Nt&&Lt&&!k.includes(g.BuyBoxComponents.Ratings),Rt=Nt&&Lt,jt=(zt=(0,E.useQuantityDiscountsLabel)(Je,xt||_t||Et||Ke)).quantityDiscountsPrice,kt=zt.qdMessage,Ft=(e=zt.showQuantityDiscountsLabel,!ie&&ce&&Ct),zt=!ie&&!ce&&Ct;Lt=It&&!Lt&&!Je&&!k.includes(g.BuyBoxComponents.SocialProofingMessage);let Zt="number"==typeof $?$:Math.floor(bt/20);I&&W&&(Zt=I*W);const Gt=(0,C.resolveFontClassName)(L,dt,pt,mt),Wt=(0,C.resolveFontClassName)(X,yt,vt,ht);var Ut={[g.BuyBoxComponents.ProductTitle]:k.includes(g.BuyBoxComponents.ProductTitle)||!Xe||"product-title"!==A&&"both"!==A?null:e=>(e=e.lines,n.default.createElement("div",null,n.default.createElement(s.Text,{isBreakWord:!0,"data-testid":"productTitle",className:Wt,color:gt||"black",lineClamp:e},Xe))),[g.BuyBoxComponents.Headline]:k.includes(g.BuyBoxComponents.Headline)||!He||"headline"!==A&&"both"!==A?null:e=>(e=e.lines,n.default.createElement("div",null,n.default.createElement(s.Text,{isBreakWord:!0,"data-testid":"headline",className:(0,a.default)(Ot?"font-light":pt||"font-bold",Gt,At?"uppercase":""),color:ft,lineClamp:e},He))),[g.BuyBoxComponents.DealPrice]:!k.includes(g.BuyBoxComponents.DealPrice)&&n.default.createElement(i.DealPrice,{className:R,size:G,priceSizeOverride:rt||Pe,superscriptDecimal:nt?"superscript"===nt:void 0,color:tt,priceClassName:(0,a.default)(at,ot),primeLogoSize:it||"medium",wholeFoodsLogoSize:xe,isCentered:r,hideStrikeOutPrice:re,hidePrimeLogo:ae,savingsText:Ft,savingsTextSize:se,savingsTextClassName:le,isRioPriceInline:ze}),[g.BuyBoxComponents.QuantityDiscounts]:!k.includes(g.BuyBoxComponents.QuantityDiscounts)&&e?n.default.createElement(S.QuantityDiscountsLabel,{quantityDiscountsPrice:jt,qdMessage:kt,showQuantityDiscountsLabel:e}):null,[g.BuyBoxComponents.DealBadge]:!k.includes(g.BuyBoxComponents.DealBadge)&&(xt||(_t||Ke||zt)&&!J||Et)?n.default.createElement(n.default.Fragment,null,Ke&&n.default.createElement(T.AutomatedDealBadge,{automatedBadgingData:Ke,size:ge,textSize:he,variant:ve,isCentered:r,shortContentThreshold:be,className:(0,a.default)(ye,{"mt-0.5":Bt,"mb-0.25":Rt})}),!Ke&&(_t||zt)&&n.default.createElement(d.DealDetails,{dealBadgeText:!J&&_t,savingsText:zt,savingsTextSize:se,savingsTextClassName:(0,o.twMerge)("pr-0.75",le),showDealDisclaimer:Et,isSns:xt,isCoupon:St,isCentered:r,className:(0,a.default)(Le,{"mt-0.5":Bt,"mb-0.25":Rt}),stackDealInfo:pe,isTextBadge:fe,badgeSize:ge})):null,[g.BuyBoxComponents.SavingsText]:Ct&&!k.includes(g.BuyBoxComponents.SavingsText)&&!Ke&&n.default.createElement(s.Text,{"data-testid":"savingsText",variant:"none",className:"mb-0.25 text-xl"},Ct),[g.BuyBoxComponents.Ratings]:!k.includes(g.BuyBoxComponents.Ratings)&&Dt&&!e&&n.default.createElement(l.default,{className:(0,a.default)(["mt-0.25",r?"justify-center":""],ut,ct),fontColor:st||"gray60",fontSize:lt,showSocialProofingMessage:Lt,socialProofingTextVariant:Ge,socialProofingWrapperClass:Ue}),[g.BuyBoxComponents.EnergyEfficiency]:Je&&!k.includes(g.BuyBoxComponents.EnergyEfficiency)&&n.default.createElement(b.default,O({size:Se,isStacked:we},Qe,{className:(0,a.default)(Oe,{"mt-0.5":_t&&!J&&!k.includes(g.BuyBoxComponents.DealBadge)&&!Nt,"justify-center":r})})),[g.BuyBoxComponents.CPFLogo]:$e&&!k.includes(g.BuyBoxComponents.CPFLogo)&&Re&&n.default.createElement(w.default,{size:ke})};const Vt={[g.BuyBoxComponents.ProductTitle]:0,[g.BuyBoxComponents.Headline]:0,[g.BuyBoxComponents.Ratings]:0,[g.BuyBoxComponents.DealBadge]:0,[g.BuyBoxComponents.DealPrice]:0,[g.BuyBoxComponents.SavingsText]:0,[g.BuyBoxComponents.EnergyEfficiency]:0,[g.BuyBoxComponents.QuantityDiscounts]:0,[g.BuyBoxComponents.CPFLogo]:0,[g.BuyBoxComponents.SocialProofingMessage]:0},Ht={[g.BuyBoxComponents.ProductTitle]:N||2,[g.BuyBoxComponents.Headline]:2,[g.BuyBoxComponents.DealPrice]:1,[g.BuyBoxComponents.DealBadge]:1,[g.BuyBoxComponents.Ratings]:1,[g.BuyBoxComponents.EnergyEfficiency]:1,[g.BuyBoxComponents.QuantityDiscounts]:1,[g.BuyBoxComponents.CPFLogo]:1,[g.BuyBoxComponents.SocialProofingMessage]:1};let Yt=Zt;const qt=[];let Xt=!1;for(;(0<Yt||"max"===$)&&!Xt;){Xt=!0;for(let e=0;e<g.COMPONENT_COUNT;e++){var Qt=g.COMPONENT_PRIORITY[e],Jt=Mt[Qt],Kt=Ut[Qt];if(Ut[Qt]&&(0<Yt||"max"===$)&&0<Ht[Qt]){Xt=!1;let e=1;Qt===g.BuyBoxComponents.Headline&&V&&He&&He.length>Y&&(e+=1);for(let t=0;t<e;t++)--Yt,--Ht[Qt],Vt[Qt]+=1;qt[Jt-=1]||(qt[Jt]={component:Kt,id:Qt})}}}e=qt.filter((e=>!!e&&e.id===g.BuyBoxComponents.ProductTitle||e.id===g.BuyBoxComponents.Headline||e.id===g.BuyBoxComponents.SavingsText)).map((e=>{let t=e.component,r=e.id;return n.default.createElement("div",{key:r},"function"==typeof t?t({lines:Vt[r]}):t)})),Lt=qt.filter((e=>!!e&&e.id!==g.BuyBoxComponents.ProductTitle&&e.id!==g.BuyBoxComponents.Headline&&e.id!==g.BuyBoxComponents.SavingsText)).map((e=>{let t=e.component,r=e.id;return n.default.createElement("div",{key:r},"function"==typeof t?t({lines:Vt[r]}):t)}));const $t=[...e,...Lt],er=[];let tr=null;if(z)tr=n.default.createElement("div",null,e,n.default.createElement("div",{className:(0,a.default)("flex","justify-between")},n.default.createElement("div",null,Lt),!_e&&n.default.createElement("div",null,n.default.createElement("div",{className:(0,a.default)("b-w-xs:flex hidden h-full w-full relative items-end","justify-center")},n.default.createElement(f.CTAButton,{size:D,destinationType:Tt})))));else if(!Ie&&!Me||_e)if(I&&W){for(let e=0;e<I;e++){const t=[];for(let e=0;e<W;e++)t.push($t.shift());er.push(n.default.createElement("div",{key:"buybox-row-"+e,className:"flex flex-col","data-testid":"row"},t))}tr=n.default.createElement("div",{className:"flex flex-row gap-3 items-center justify-center"},er)}else tr=$t;else{let t;Ie&&(t=Pt?"textWithCaretCTA":"textOnlyCTA"),tr=n.default.createElement("div",null,e,n.default.createElement("div",{className:(0,a.default)("flex",wt||Pt||Me?"flex-col":"justify-between")},n.default.createElement("div",null,Lt),n.default.createElement("div",null,n.default.createElement("div",{className:(0,a.default)("h-full w-full relative",wt||Pt||Me?"justify-start":"justify-center",{"mt-[-2px]":_t&&!Nt&&Ie,"mt-[-7px]":Ie,"mt-0.5":_t&&!Nt&&Me})},n.default.createElement(f.CTAButton,{size:Ie?"none":D,destinationType:Tt,isTextCTA:Pt,variant:t})))))}return n.default.createElement("div",{id:"gridRegion-buybox",className:(0,a.default)("grid-buy-box flex flex-col",I&&W?"flex flex-col h-full justify-center":"",r?"items-center text-center justify-items-center":"",!Je&&0<Yt?"gap-0.5":"",ee),"data-testid":"buybox-default"},tr)}},2350:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.GridTemplateAreaForComponents=t.ComponentSize=t.COMPONENT_SIZE_MAP=t.COMPONENT_PRIORITY=t.COMPONENT_COUNT=t.BuyBoxGrids=t.BuyBoxComponents=t.BUYBOX_GRID_MAP=t.BUYBOX_GAP_Y=void 0,t.COMPONENT_COUNT=10,t.BuyBoxComponents=r,(n=r||(t.BuyBoxComponents=r={})).ProductTitle="product-title",n.Headline="headline",n.EnergyEfficiency="energy-efficiency",n.Ratings="ratings",n.DealPrice="deal-price",n.DealBadge="deal-badge",n.SavingsText="badge-with-savings",n.CTAButton="cta-button",n.QuantityDiscounts="quantity-discounts",n.CPFLogo="cpf-logo",n.SocialProofingMessage="social-proofing-message";var n={"buybox-product-title":r.ProductTitle,"buybox-headline":r.Headline,"buybox-energybadge":r.EnergyEfficiency,"buybox-dealprice":r.DealPrice,"buybox-quantity-discount":r.QuantityDiscounts,"buybox-dealbadge":r.DealBadge,"buybox-ratings":r.Ratings,"buybox-cta":r.CTAButton,"buybox-cpf-logo":r.CPFLogo,"buybox-social-proofing-message":r.SocialProofingMessage};t.GridTemplateAreaForComponents=n,n=[r.EnergyEfficiency,r.ProductTitle,r.Headline,r.DealPrice,r.QuantityDiscounts,r.DealBadge,r.SavingsText,r.Ratings,r.CPFLogo,r.SocialProofingMessage],t.COMPONENT_PRIORITY=n,t.ComponentSize=void 0,t.ComponentSize={small:"small",medium:"medium",large:"large"};n={[r.EnergyEfficiency]:{small:20,medium:26,large:34},[r.ProductTitle]:{small:20,medium:24},[r.Headline]:{small:18,medium:24},[r.DealPrice]:{small:20,medium:22,large:45},[r.DealBadge]:{small:20,medium:24},[r.Ratings]:{small:19},[r.CTAButton]:{small:30},[r.QuantityDiscounts]:{small:20,medium:24},[r.CPFLogo]:{small:14,medium:16,large:34},[r.SocialProofingMessage]:{small:18,medium:24}};let a;t.COMPONENT_SIZE_MAP=n,t.BuyBoxGrids=a,(n=a||(t.BuyBoxGrids=a={})).Vertical="vertical",n.VerticalDeal="vertical-deal",n.Horizontal="horizontal",n.HorizontalDeal="horizontal-deal",n.TwitchDarkDefault="twitch-dark-default",n.TwitchDarkDeal="twitch-dark-deal",n.TwitchDarkEnergyEfficiency="twitch-dark-energy-efficiency",n.ProductCollectionSlideDefault="product-collection-slide-default",n.ProductCollectionSlideEnergyEfficiency="product-collection-slide-energy-efficiency",n.ProductCollectionSlideDeal="product-collection-slide-deal",n.ProductCollectionVideoSlideDefault="product-collection-video-slide-default",n.ProductCollectionVideoSlideDeal="product-collection-video-slide-deal",n.ProductCollectionVideoSlideEnergyEfficiency="product-collection-video-slide-energy-efficiency",n={[a.Vertical]:{gridTemplateAreas:[["buybox-product-title"],["buybox-ratings"],["buybox-social-proofing-message"],["buybox-dealprice"],["buybox-quantity-discount"],["buybox-dealbadge"],["buybox-energybadge"],["buybox-cpf-logo"],["buybox-cta"]],gridTemplateColumns:"100%",gridTemplateRows:"auto"},[a.VerticalDeal]:{gridTemplateAreas:[["buybox-product-title"],["buybox-ratings"],["buybox-social-proofing-message"],["buybox-dealbadge"],["buybox-dealprice"],["buybox-quantity-discount"],["buybox-energybadge"],["buybox-cpf-logo"],["buybox-cta"]],gridTemplateColumns:"100%",gridTemplateRows:"auto"},[a.TwitchDarkDefault]:{gridTemplateAreas:[["buybox-product-title","buybox-product-title"],["buybox-dealprice","buybox-ratings"]],gridTemplateColumns:"fit-content(100%) 1fr",gridTemplateRows:"auto"},[a.TwitchDarkDeal]:{gridTemplateAreas:[["buybox-product-title","buybox-product-title"],["buybox-dealprice","buybox-dealbadge"]],gridTemplateColumns:"fit-content(100%) 1fr",gridTemplateRows:"auto"},[a.TwitchDarkEnergyEfficiency]:{gridTemplateAreas:[["buybox-product-title","buybox-product-title"],["buybox-dealprice","buybox-energybadge"]],gridTemplateColumns:"fit-content(100%) 1fr",gridTemplateRows:"auto"},[a.Horizontal]:{gridTemplateAreas:[["buybox-dealprice","buybox-quantity-discount","buybox-dealbadge","buybox-energybadge"],["buybox-cpf-logo"]],gridTemplateColumns:"auto",gridTemplateRows:"100%"},[a.HorizontalDeal]:{gridTemplateAreas:[["buybox-dealbadge","buybox-dealprice","buybox-quantity-discount","buybox-energybadge"],["buybox-cpf-logo"]],gridTemplateColumns:"auto",gridTemplateRows:"100%"},[a.ProductCollectionSlideDefault]:{gridTemplateAreas:[["buybox-product-title"],["buybox-dealprice"]],gridTemplateColumns:"100%",gridTemplateRows:"auto"},[a.ProductCollectionSlideDeal]:{gridTemplateAreas:[["buybox-dealbadge"],["buybox-dealprice"]],gridTemplateColumns:"100%",gridTemplateRows:"auto"},[a.ProductCollectionSlideEnergyEfficiency]:{gridTemplateAreas:[["buybox-dealprice"],["buybox-energybadge"]],gridTemplateColumns:"100%",gridTemplateRows:"auto"},[a.ProductCollectionVideoSlideDefault]:{gridTemplateAreas:[["buybox-product-title"],["buybox-dealprice"]],gridTemplateColumns:"100%",gridTemplateRows:"auto"},[a.ProductCollectionVideoSlideDeal]:{gridTemplateAreas:[["buybox-dealbadge"],["buybox-dealprice"]],gridTemplateColumns:"100%",gridTemplateRows:"auto"},[a.ProductCollectionVideoSlideEnergyEfficiency]:{gridTemplateAreas:[["buybox-dealprice"],["buybox-energybadge"]],gridTemplateColumns:"100%",gridTemplateRows:"auto"}},t.BUYBOX_GRID_MAP=n,t.BUYBOX_GAP_Y={1:"gap-y-[1px]",2:"gap-y-[2px]",3:"gap-y-[3px]",4:"gap-y-[4px]",8:"gap-y-[8px]"}},8433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DealDetails=void 0;var n=d(r(7363)),a=d(r(4184)),o=r(518),i=d(r(5942)),s=r(3540),l=r(5107),u=r(2832),c=d(r(9584));function d(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.DealDetails=e=>{var t=e.isSns,r=e.isCoupon,d=e.dealBadgeText,m=e.showDealDisclaimer,f=e.isCentered,g=e.savingsText,h=e.savingsTextSize,y=e.savingsTextClassName,v=e.className,b=e.stackDealInfo,C=void 0===(x=e.badgeSize)?"medium":x,x=e.productIndex;x=null!==(x=null==(e=(0,s.useDealBadge)(void 0===x?0:x).percBadgeProps)?void 0:e.variant)&&void 0!==x?x:"square",r=(t={isSns:t,isCoupon:r}).isSns,t=t.isCoupon,t=r?"sns":t?"coupon":void 0;return n.default.createElement("div",{className:(0,o.twMerge)("items-center gap-y-1 gap-x-0.5",f?"justify-center":"",b?"flex-col":"flex flex-wrap",v)},n.default.createElement("div",{className:(0,a.default)("items-center gap-y-[2px] gap-x-0.5",b?"flex-col":"flex flex-wrap",f?"justify-center":"")},n.default.createElement("div",{className:g?"flex items-center flex-wrap":""},g&&n.default.createElement(c.default,{isInline:!1,size:h,className:y},g),d&&e&&n.default.createElement(u.Badge,p({size:C,variant:x},e),d)),t&&n.default.createElement(l.DiscountTypeText,{discountType:t,badgeSize:C,badgeVariant:x})),m&&n.default.createElement(i.default,null))}},2255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(785);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},2850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBuyboxGridStyles=t.getBuyboxGridConfig=t.formatGridAreaStyle=void 0,t.getComponentOrder=function(e){return e=void 0!==(e=e.isBadgeAbovePrice)&&e,{[o.BuyBoxComponents.SavingsText]:1,[o.BuyBoxComponents.Headline]:2,[o.BuyBoxComponents.ProductTitle]:3,[o.BuyBoxComponents.Ratings]:4,[o.BuyBoxComponents.SocialProofingMessage]:5,[o.BuyBoxComponents.DealPrice]:e?7:6,[o.BuyBoxComponents.DealBadge]:e?6:8,[o.BuyBoxComponents.QuantityDiscounts]:e?8:7,[o.BuyBoxComponents.EnergyEfficiency]:9,[o.BuyBoxComponents.CPFLogo]:10}},t.getShownComponentsByPriority=t.getComponentsListFromGridTemplateAreas=t.getComponentsAndDimension=t.getComponentSizes=void 0;var n=r(8583),a=r(868),o=r(2350);t.getComponentSizes=e=>{var t=e.buyboxHeight,r=e.buyboxWidth;e=(void 0===(e=e.additionalOptions)?{}:e).hasSavingsText;let n=o.ComponentSize.small,a=o.ComponentSize.small,i=o.ComponentSize.small,s=o.ComponentSize.medium,l=o.ComponentSize.medium,u=o.ComponentSize.large;return t<=60&&(s=o.ComponentSize.small,l=o.ComponentSize.small,u=o.ComponentSize.small),110<=t&&(n=o.ComponentSize.medium),130<=t&&(a=o.ComponentSize.medium),200<=t&&(l=o.ComponentSize.large),r<=250&&e&&(s=o.ComponentSize.large),360<=r&&(i=o.ComponentSize.medium),{[o.BuyBoxComponents.ProductTitle]:n,[o.BuyBoxComponents.Headline]:o.ComponentSize.small,[o.BuyBoxComponents.EnergyEfficiency]:l,[o.BuyBoxComponents.DealPrice]:s,[o.BuyBoxComponents.DealBadge]:a,[o.BuyBoxComponents.Ratings]:o.ComponentSize.small,[o.BuyBoxComponents.CTAButton]:i,[o.BuyBoxComponents.QuantityDiscounts]:o.ComponentSize.small,[o.BuyBoxComponents.CPFLogo]:u}};const i=e=>{let t=e.showProductTitle,r=e.showStarRating,n=e.showHeadline,a=e.showDealPrice,i=e.showQuantityDiscounts,s=e.showDealBadge,l=e.showEnergyEfficiencyBadge,u=e.showCTAButton,c=e.componentSizes,d=e.showClimatePledgeFriendly,p=e.showSocialProofingMessage;const m=[o.BuyBoxComponents.ProductTitle,o.BuyBoxComponents.Headline,o.BuyBoxComponents.EnergyEfficiency,o.BuyBoxComponents.DealPrice,o.BuyBoxComponents.QuantityDiscounts,o.BuyBoxComponents.DealBadge,o.BuyBoxComponents.Ratings,o.BuyBoxComponents.CTAButton,o.BuyBoxComponents.CPFLogo,o.BuyBoxComponents.SocialProofingMessage,o.BuyBoxComponents.ProductTitle],f={[o.BuyBoxComponents.ProductTitle]:t,[o.BuyBoxComponents.Headline]:n,[o.BuyBoxComponents.EnergyEfficiency]:l,[o.BuyBoxComponents.DealPrice]:a,[o.BuyBoxComponents.QuantityDiscounts]:i,[o.BuyBoxComponents.DealBadge]:s,[o.BuyBoxComponents.Ratings]:r,[o.BuyBoxComponents.CTAButton]:u,[o.BuyBoxComponents.CPFLogo]:d,[o.BuyBoxComponents.SocialProofingMessage]:p};let g=0;const h=[];return m.forEach((e=>{var t;!0===f[e]&&(t=c[e],g+=o.COMPONENT_SIZE_MAP[e][t],h.push(e))})),{totalComponentsHeight:g,eligibleComponents:h}};function s(e){let t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return null==e?void 0:e.map((e=>{const r=e.filter((e=>t.includes(o.GridTemplateAreaForComponents[e])));return 0<r.length?`'${r.join(" ")}'`:null})).filter((e=>!!e)).join(" ")}t.getComponentsAndDimension=i,t.getShownComponentsByPriority=e=>{var t=e.buyboxHeight,r=e.showProductTitle,n=e.showStarRating,a=e.showHeadline,s=e.showDealPrice,l=e.showQuantityDiscounts,u=e.showDealBadge,c=e.showEnergyEfficiencyBadge,d=e.showCTAButton,p=e.componentSizes,m=e.paddingY,f=e.gapY,g=e.showClimatePledgeFriendly,h=e.showSocialProofingMessage;e=void 0===(e=e.filterBasedOnAvailableSpace)||e;let y=(h=(g=i({showProductTitle:r,showStarRating:n,showHeadline:a,showDealPrice:s,showQuantityDiscounts:l,showDealBadge:u,showEnergyEfficiencyBadge:c,showCTAButton:d,componentSizes:p,showClimatePledgeFriendly:g,showSocialProofingMessage:h})).totalComponentsHeight)+m+f*((g=g.eligibleComponents).length-1);const v=g;if(!e)return v;for(;y>t&&0<v.length;){var b=v.pop();if(!b)break;var C=p[b];y-=o.COMPONENT_SIZE_MAP[b][C],y-=f}for(;5<v.length;)v.pop();return v},t.formatGridAreaStyle=s,t.getComponentsListFromGridTemplateAreas=e=>(0,n.flatten)(e).reduce(((e,t)=>o.GridTemplateAreaForComponents[t]?[...e,o.GridTemplateAreaForComponents[t]]:e),[]),t.getBuyboxGridConfig=e=>{let t=e.hasDeal,r=e.isHorizontal,n=e.hasEnergyEfficiencyBadge,i=void 0!==n&&n,s=e.creativeExperience,l=void 0===s?a.CreativeExperience.Default:s,u=e.currentScreen,c=void 0===u?"":u,d=o.BuyBoxGrids.Vertical;return l===a.CreativeExperience.Default&&(r&&t?d=o.BuyBoxGrids.HorizontalDeal:r?d=o.BuyBoxGrids.Horizontal:t&&(d=o.BuyBoxGrids.VerticalDeal)),l===a.CreativeExperience.Twitch&&(d=i?o.BuyBoxGrids.TwitchDarkEnergyEfficiency:t?o.BuyBoxGrids.TwitchDarkDeal:o.BuyBoxGrids.TwitchDarkDefault,(c.includes("rectangle")||c.includes("skyscraper"))&&(d=t?o.BuyBoxGrids.VerticalDeal:o.BuyBoxGrids.Vertical)),l===a.CreativeExperience.ProductCollectionSlide&&(d=i?o.BuyBoxGrids.ProductCollectionSlideEnergyEfficiency:o.BuyBoxGrids.ProductCollectionSlideDefault,c.includes(a.ScreenSizes.BannerSM)||c.includes(a.ScreenSizes.BannerSMNarrow)?i&&(d=o.BuyBoxGrids.ProductCollectionSlideEnergyEfficiency):c.includes(a.ScreenSizes.BannerLG)||c.includes(a.ScreenSizes.BannerLGNarrow)?i?d=o.BuyBoxGrids.ProductCollectionSlideEnergyEfficiency:t&&(d=o.BuyBoxGrids.ProductCollectionSlideDeal):(c.includes("rectangle")||c.includes("skyscraper"))&&(d=t?o.BuyBoxGrids.VerticalDeal:o.BuyBoxGrids.Vertical)),l===a.CreativeExperience.ProductCollectionVideoSlide&&(d=o.BuyBoxGrids.ProductCollectionVideoSlideDefault,(c.includes("rectangle")||c.includes("mobile-hqp"))&&t&&(d=o.BuyBoxGrids.ProductCollectionVideoSlideDeal),i&&(d=o.BuyBoxGrids.ProductCollectionVideoSlideEnergyEfficiency)),o.BUYBOX_GRID_MAP[d]},t.getBuyboxGridStyles=e=>{var t=e.buyBoxGridConfig;e=e.componentsAllowedInGrid;return{gridTemplateAreas:s(t.gridTemplateAreas,e),gridTemplateColumns:t.gridTemplateColumns,gridTemplateRows:t.gridTemplateRows}}},5320:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CTAButton=void 0;var n=s(r(7363)),a=s(r(4184)),o=r(4537),i=r(9642);function s(e){return e&&e.__esModule?e:{default:e}}t.CTAButton=e=>{var t=e.className,r=void 0===(p=e.destination)?"item-page":p,s=void 0===(m=e.isNoWrap)||m,l=e.alignmentClass,u=e.variant,c=e.overrideHoverColor,d=e.isFullHeightButton,p=void 0===(f=e.size)?"full":f,m=e.hideCta,f=e.buttonClass;e="LeadGen"===e.buttonType;return m?null:n.default.createElement("div",{className:(0,a.default)("w-full flex relative",e?"grid-leadgen-button":"grid-cta-button",void 0===d||d?"h-full":"",t,void 0===l?"items-center justify-center":l),"data-testid":"ctaButton"},e?n.default.createElement(i.LeadGenButton,{className:f,size:p}):n.default.createElement(o.CTAButton,{size:p,overrideHoverColor:c,isNoWrap:s,variant:u,destinationType:r,enableLinkOutEvent:!0,className:f}))}},8174:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomImage=void 0;var n=l(r(4184)),a=l(r(7363)),o=r(5998),i=r(5773),s=r(4828);function l(e){return e&&e.__esModule?e:{default:e}}t.CustomImage=e=>{var t=e.className,r=void 0===(p=e.imageScale)?"horizontal":p,l=e.showBorder,u=void 0!==(m=e.isHoverable)&&m,c=e.wrapperClass,d=void 0===(f=e.resizeBehavior)?"contain":f,p=e.imageWrapperClass,m=e.imageAlignment,f=e.imageIndex;e=(0,i.useCustomImage)({sizeType:r,showBorder:void 0===l||l,imageIndex:f}).src,f=(l=(0,s.usePayload)()).delayLoadingHighQualityImage,l=l.productDetails.productTitle;return e?a.default.createElement("div",{className:(0,n.default)(c,"grid-custom-image flex h-full items-center min-w-0 min-h-0 w-full relative justify-center overflow-hidden")},a.default.createElement(o.Image,{className:t,wrapperClassName:p,isHoverable:u,alt:l,src:e,"data-testid":"customImage",delayLoadingHighQualityImage:f,"data-image-scale":r,resizeBehavior:d,autoCrop:!1,alignment:m})):null}},3551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DealPrice=void 0;var n=s(r(7363)),a=s(r(4184)),o=r(7972);const i=["className"];function s(e){return e&&e.__esModule?e:{default:e}}t.DealPrice=e=>{var t=void 0===(t=e.className)?"":t;e=function(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),o=0;o<a.length;o++)r=a[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,i),e=n.default.createElement(o.DealPrice,e);return n.default.createElement("div",{className:(0,a.default)("grid-deal-price flex",t)},e)}},6135:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiscountTypeText=void 0;var n=s(r(7363)),a=s(r(4184)),o=r(1245),i=r(7886);function s(e){return e&&e.__esModule?e:{default:e}}t.DiscountTypeText=e=>{var t=void 0===(l=e.badgeSize)?"medium":l,r=e.badgeVariant,s=e.className,l=e.discountType;const u=(0,o.useI18n)().getString;return e="text"===r,r={sns:u("with_subscribe_and_save"),coupon:u("with_coupon")}[l],n.default.createElement(n.default.Fragment,null,r&&n.default.createElement(i.Text,{"data-testid":"sns"===l?"subscribeAndSave":"withCoupon",color:{sns:"red50",coupon:"gray10"}[l],variant:e?"md":{micro:"xxs",small:"xs",medium:"sm"}[t],className:(0,a.default)(s,{"font-bold":!e})},r))}},5107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6135);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},3263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Flex=void 0;var n=u(r(7363)),a=u(r(4184)),o=r(518),i=r(5951),s=r(868),l=r(4911);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.Flex=e=>{let t=e.innerClassName,r=e.className,u=e.flexItems;return n.default.createElement("div",{className:(0,o.twMerge)("grid-flex h-full w-full flex flex-col relative",r),"data-testid":"flex-component"},n.default.createElement("div",{className:(0,a.default)("flex",t)},u&&0<u.length?u.map(((e,t)=>(e=>{let t=e.componentProps,r=void 0===t?{}:t,a=e.itemIndex;return e.regions.map((e=>{if(!i.COMPONENT_MAP[e])return null;var t=e===s.Components.BuyBox&&null!==(o=r["buy-box"])&&void 0!==o&&o.isReponsiveBuyBox?l.BuyBoxResponsive:i.COMPONENT_MAP[e],o=a?`flexRegion_${e}_`+a:"flexRegion_"+e;e=r[e]||{};return n.default.createElement(t,c({key:o},e))}))})({regions:e.regions,componentProps:e.componentProps,itemIndex:e.itemIndex||t}))):null))}},6902:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadlineCTA=void 0;var n=c(r(7363)),a=c(r(4184)),o=r(518),i=r(4537),s=r(7886),l=r(4828),u=r(6475);function c(e){return e&&e.__esModule?e:{default:e}}t.HeadlineCTA=e=>{var t=e.className,r=void 0===(v=e.classNameText)?"":v,c=void 0===(f=e.ctaClass)?"":f,d=void 0===(y=e.destination)?"showroom-page":y,p=void 0===(g=e.isNoWrap)||g,m=void 0===(h=e.alignmentClass)?"items-start justify-center":h,f=void 0===(v=e.variant)?"linkArrow":v,g=void 0===(y=e.size)?"none":y,h=e.overrideHoverColor,y=(v=(0,l.usePayload)()).headline,v=(e=v.activeExperiments)[u.Experiments.HeadlineStyling.LightFont]||e[u.Experiments.HeadlineStyling.AllCapsWithLightFont];e=e[u.Experiments.HeadlineStyling.AllCaps]||e[u.Experiments.HeadlineStyling.AllCapsWithLightFont];return n.default.createElement("div",{className:(0,a.default)("grid-headline-cta h-full w-full flex flex-col relative",t,m),"data-testid":"headline-cta"},n.default.createElement(s.Text,{className:(0,o.twMerge)("headline text-[14px]",v?"font-light":"font-bold",r,e?"uppercase":""),isBreakWord:!0},y),n.default.createElement(i.CTAButton,{size:g,isNoWrap:p,variant:f,destinationType:d,className:c,overrideHoverColor:h}))}},9015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadlineLogo=void 0;var n=c(r(7363)),a=c(r(4184)),o=r(7886),i=c(r(7809)),s=r(9672),l=r(4828),u=r(6475);function c(e){return e&&e.__esModule?e:{default:e}}const d={small:"max-w-[55px] mb-0.25",large:"max-w-[145px] max-h-[145px] mb-0.5"},p={small:"text-md",medium:"text-md",large:"text-lg"},m={left:"text-left",center:"text-center "},f={small:"mb-1",medium:"mb-1",large:"mb-1"},g={small:"max-w-[90px]",medium:"max-w-[120px]",large:"max-w-[120px]"};t.HeadlineLogo=e=>{var t=e.className,r=e.classNameText,c=void 0===(T=e.alignment)?"leftCenter":T,h=void 0===(w=e.size)?"large":w,y=e.imageWidth,v=e.imageHeight,b=e.classNameImage,C=(0,l.usePayload)(),x=C.headline,E=C.brandLogoUrl,S=(P=C.mlParameters).headlineFontStyle,_=P.headlineFontWeight,T=P.headlineFontSize,w=P.headlineFontColor,P=(e=C.activeExperiments,C.delayLoadingHighQualityImage);return x&&E?(C=e[u.Experiments.HeadlineStyling.LightFont]||e[u.Experiments.HeadlineStyling.AllCapsWithLightFont],e=e[u.Experiments.HeadlineStyling.AllCaps]||e[u.Experiments.HeadlineStyling.AllCapsWithLightFont],_=(0,s.resolveFontClassName)(r,S,C?"font-light":_,T),n.default.createElement("div",{className:(0,a.default)("grid-headline-logo flex h-full items-center",t),"data-testid":"headline"},n.default.createElement("div",{className:"flex flex-col"},n.default.createElement(i.default,{alignment:c,"data-testid":"logoImage",delayLoadingHighQualityImage:P,alt:"Logo",src:E,className:(0,a.default)(d[h],f[h],g[h],b),imageWidth:y,imageHeight:v}),n.default.createElement(o.Text,{className:(0,a.default)("headline",m[c],T?p[h]:"",_,e?"uppercase":""),color:w,isBreakWord:!0},x)))):null}},5133:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Headline=void 0;var n=c(r(7363)),a=c(r(4184)),o=r(518),i=r(7886),s=r(9672),l=r(4828),u=r(6475);function c(e){return e&&e.__esModule?e:{default:e}}t.Headline=e=>{var t=e.className,r=e.classNameText,c=void 0===(f=e.alignmentClass)?"items-center justify-center":f,d=void 0===(g=e.isFontBold)||g,p=e.style,m=(y=(0,l.usePayload)()).headline,f=(h=y.mlParameters).headlineFontStyle,g=h.headlineFontWeight,h=(e=h.headlineFontColor,h.headlineFontSize),y=y.activeExperiments;if(!m)return null;h=(0,s.resolveFontClassName)(r,f,g,h);let v=g||(d?"font-bold":"font-normal");return(y[u.Experiments.HeadlineStyling.LightFont]||y[u.Experiments.HeadlineStyling.AllCapsWithLightFont])&&(v="font-light"),y=y[u.Experiments.HeadlineStyling.AllCaps]||y[u.Experiments.HeadlineStyling.AllCapsWithLightFont],n.default.createElement("div",{className:(0,o.twMerge)("grid-headline flex h-full",t,c),"data-testid":"headline",style:p},n.default.createElement(i.Text,{className:(0,a.default)("headline",v,h,y?"uppercase":""),color:e,isBreakWord:!0},m))}},3303:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeroComponent=void 0;var n,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=b(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),o=r(4828),i=r(6010),s=r(3273),l=r(1353),u=(n=r(7298))&&n.__esModule?n:{default:n},c=r(4114),d=r(2872),p=r(9599),m=r(6081),f=r(2616),g=r(6475),h=r(317),y=r(5670),v=r(2451);function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const x={autoplay:!1,controls:!0,responsive:!0,fluid:!0,muted:!0,loop:!0,controlBar:{muteToggle:!0,fullscreenToggle:!1,pictureInPictureToggle:!1,remainingTimeDisplay:!1,currentTimeDisplay:!0,subtitlesButton:!1,chaptersButton:!1,captionsButton:!1,progressControl:{seekBar:!1},descriptionsButton:!1,subsCapsButton:!1,audioTrackButton:!1,playbackRateMenuButton:!1},userActions:{doubleClick:!1,click:!1},fill:!1},E={square:"1:1",horizontal:"16:9",vertical:"9:16"};t.HeroComponent=e=>{let t=e.ratio,n=void 0===t?["horizontal"]:t,b=e.mode,S=void 0===b?"fluid":b,_=e.disableExpand,T=void 0!==_&&_,w=e.autoPlayWhenInView,P=void 0===w||w;const O=(0,o.usePayload)(),A=O.isPreview,I=O.activeExperiments,N=O.isBulkPreview,M=O.isAdblockPresent,D=O.pixelUrl,L=O.isMobile,B=O.isHomePageSlot,R=O.video,j=O.horizontalVideos,k=O.verticalVideos,F=O.squareVideos,z={vertical:k&&k.length&&k[0],square:F&&F.length&&F[0],horizontal:j&&j.length&&j[0]||R};let Z="horizontal";n.slice().reverse().forEach((e=>{z[e]&&(Z=e)}));var G=(ee=z[Z]).url,W=ee.transcodedMedias,U=ee.closedCaptionUrl,V=ee.disableCaptions,H=ee.disabledAudio,Y=void 0!==H&&H;const q=(0,p.useAdLink)();var X=(0,l.useSF)(),Q=X.SFApi,J=X.hasSFClient,K=(0,u.default)(),$=(0,v.useUpdateSFWithContinuousPlaytime)(),ee=(e=$.handleTimeUpdate,$.handleVideoPause);const te=(0,f.useCEM)(),re=te.logPerformanceEvent,ne=te.MeasureLoadLatency;H=!!I[g.Experiments.LowResDefaultVideo],X=!K&&A&&!N&&!G,$=!K&&!X,K=K&&!X;let ae=[];if(A&&!N&&G)ae=[{src:G,type:"video/mp4"}];else if(W&&0<W.length){H=H?c.LOW_RES_TRANSCODE_TYPES:c.RENDER_TRANSCODE_TYPES,H=A&&N?c.MODERATION_TRANSCODE_TYPES:H;ae=(0,c.filterTranscodedMedias)(W,H).map((e=>({src:null==e?void 0:e.url,type:"video/mp4"})))}return J=J&&B?{requestVideoAutoplay:null==Q?void 0:Q.requestVideoAutoplay,releaseVideoAutoplay:null==Q?void 0:Q.releaseVideoAutoplay,haveVideoAutoplayPermission:null==Q?void 0:Q.haveVideoAutoplayPermission,registerCustomMessageListener:null==Q?void 0:Q.registerCustomMessageListener}:void 0,Q={onTimeUpdate:e,onPause:ee,onError:e=>{switch(e.error().code){case 1:re({eventName:f.EventNames.VIDEO_MEDIA_ERR_ABORTED});break;case 2:re({eventName:f.EventNames.VIDEO_MEDIA_ERR_NETWORK});break;case 3:re({eventName:f.EventNames.VIDEO_MEDIA_ERR_DECODE});break;case 4:re({eventName:f.EventNames.VIDEO_MEDIA_ERR_SRC_NOT_SUPPORTED});break;default:re({eventName:f.EventNames.UNCAUGHT_ERROR})}}},M&&Object.assign(x,{autoplay:!1}),L&&Object.assign(x,{inactivityTimeout:0}),"fill"===S?Object.assign(x,{fill:!0,responsive:!1,fluid:!1}):"fluid"===S&&Object.assign(x,{aspectRatio:E[Z]}),Y&&Object.assign(x.controlBar,{muteToggle:!1}),e=(0,h.useAppLayout)().expandableAdStatus,Object.assign(x,{controls:e!==y.ExpandableAdStatus.Collapsed}),ee=(0,a.useMemo)((()=>a.default.createElement(d.AdLink,C({},q,{zIndex:0}))),[]),Y=(0,a.lazy)((()=>Promise.all([r.e(22),r.e(964)]).then(r.t.bind(r,6769,23)))),e=(0,a.useMemo)((()=>{const e={};return D&&Object.keys(m.VideoEventType).forEach((t=>{e[t]=(0,m.getVideoEventPixelUrl)({pixelUrl:D,eventType:m.VideoEventType[t]})})),e}),[D]),a.default.createElement("div",{"data-testid":"renderVideoPlayer",className:"grid-hero-component w-full h-full flex items-center justify-center"},K?a.default.createElement(i.BackgroundLoader,null):null,X?a.default.createElement(s.VideoPreviewPoster,{scale:Z}):null,$?a.default.createElement(a.Suspense,{fallback:a.default.createElement(i.BackgroundLoader,null)},a.default.createElement(ne,{id:"PercVideo"},a.default.createElement(Y,{sources:ae,videoJsPlayerEvents:Q,videoJsPlayerOptions:x,videoAdLink:ee,eventPixels:e,isMobile:L,isAdblockPresent:M,orchestratorSFApi:J,closedCaptionUrl:U,disableCaptions:V,disableExpand:T,autoPlayWhenInView:P}))):null)}},2451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUpdateSFWithContinuousPlaytime=void 0;var n=r(7363),a=r(1353);t.useUpdateSFWithContinuousPlaytime=()=>{const e=(0,a.useSF)().SFApi,t=(0,n.useRef)({previousPlaybackCursor:0,currentContinuousDuration:0,longestContinuousDuration:0});return{handleVideoPause:()=>{t.current.currentContinuousDuration=0},handleTimeUpdate:r=>{var n=r.currentTime();r=n-t.current.previousPlaybackCursor;t.current.currentContinuousDuration+=r,t.current.currentContinuousDuration>t.current.longestContinuousDuration&&(t.current.longestContinuousDuration=t.current.currentContinuousDuration,null!=e&&e.updatePlayingTimeForVideo(t.current.currentContinuousDuration)),t.current.previousPlaybackCursor=n}}}},223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(5056);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.InnerGridComponent,t.default=r},5056:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InnerGridComponent=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(8583),i=r(2165),s=r(5951),l=r(4828),u=r(2872),c=r(9599);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.InnerGridComponent=e=>{var t=e.componentProps,r=e.gridStyles,n=e.adLink,p=void 0===(h=e.hasDropShadow)||h,m=void 0!==(g=e.hasRoundedSlideCorners)&&g,f=void 0!==(y=e.hasShadedBackground)&&y,g=void 0===(h=e.productIndex)?0:h,h=(e=(y=(0,l.usePayload)()).productDetails,y.productDetailsList),y=(0,c.useAdLink)();e=void 0===(e=((null==h?void 0:h[g])||e).clickUrl)?"":e;const v=r||{},b=v.gridTemplateAreas,C=v.gridTemplateColumns,x=v.gridTemplateRows;return r=null==b?void 0:b.map((e=>`'${e.filter(Boolean).join(" ")}'`)).join(" "),r={componentProps:t,regions:(0,o.flatten)(b),gridStyles:{gridTemplateAreas:r,gridTemplateColumns:C,gridTemplateRows:x}},e=n||a.default.createElement(u.AdLink,d({},y,{itemUrl:e})),a.default.createElement(i.GridRegion,{regionConfig:r,componentMap:s.COMPONENT_MAP,adLink:e,hasShadedBackground:f,hasDropShadow:p,hasRoundedSlideCorners:m,isCarousel:!1,disableCloseButtonBar:!0,wrapperClass:"relative"})}},6232:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InsetCarousel=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=g(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),a=r(8583),o=r(868),i=r(2616),s=r(2944),l=r(5951),u=r(9599),c=r(2872),d=r(6010),p=r(317),m=r(4828),f=r(1353);function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}function h(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(e,t)||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 b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.InsetCarousel=e=>{let t=e.slideClassName,a=e.sliderClassName,o=e.hasDropShadow,g=e.hasRoundedSlideCorners,h=e.hasBorder,y=void 0===h||h,b=e.hasSideGradient,E=void 0!==b&&b,S=e.hasSlideStyling,_=e.hasHeader,T=void 0!==_&&_,w=e.slides,P=void 0===w?[]:w,O=e.loopSlides,A=void 0!==O&&O,I=e.centeredSlides,N=void 0!==I&&I,M=e.slidesPerView,D=void 0===M?"auto":M,L=e.showNavigation,B=void 0!==L&&L,R=e.navigationDisabledClassName,j=void 0===R?"opacity-0":R,k=e.spaceBetweenSlides,F=void 0===k?4:k;var z=(0,u.useAdLink)(),Z=n.default.createElement(c.AdLink,C({},z,{itemUrl:z.detailPageUrl}));e=n.default.createElement(c.AdLink,C({},z,{itemUrl:z.brandPageUrl}));const G=v((0,n.useState)(!1),2),W=G[0],U=G[1],V=(0,p.useAppLayout)(),H=V.identifier,Y=V.currentScreen;(0,s.useTailwindStyles)();const q=(0,m.usePayload)(),X=q.isMobile,Q=q.TTIMeasurementMode,J=(0,i.useCEM)().logPerformanceEvent,K=(0,f.useSF)().SFApi;return(0,n.useEffect)((()=>U(!0)),[]),z=P.map(x),n.default.createElement("div",{className:"grid-inset-carousel w-full h-full flex z-30 swiper overflow-hidden grid"},W&&n.default.createElement(n.Suspense,{fallback:n.default.createElement(d.BackgroundLoader,null)},n.default.createElement((0,n.lazy)((()=>Promise.all([r.e(101),r.e(716)]).then(r.bind(r,96)))),C({onSwipe:()=>J({eventName:`${i.EventNames.PRODUCT_COLLECTION_SWIPE}-${H}-`+Y}),onInit:()=>{"carousel"===Q&&K&&K.signalAdLoadedAndInteractive(),J({eventName:`${i.EventNames.PRODUCT_COLLECTION_SLIDER_INIT}-${H}-`+Y})},onSlidesCompleted:()=>J({eventName:`${i.EventNames.PRODUCT_COLLECTION_SLIDER_COMPLETE}-${H}-`+Y}),hasDropShadow:o,hasRoundedSlideCorners:g,hasBorder:y,hasSlideStyling:S,hasSideGradient:E,hasHeader:T,slideClassName:t,sliderClassName:a,slides:z,adLink:Z,brandAdLink:e,componentMap:l.COMPONENT_MAP,isInsetCarousel:!0,spaceBetweenSlides:F,loopSlides:A,centeredSlides:N,slidesPerView:D,showNavigation:B||!X},j?{customNavigation:{disabledClass:j}}:{}))))};const x=e=>{var t=e.slideConfig,r="product-collection"===e.type&&(null==e?void 0:e.productClickUrl)||"";const i=t||e||{},s=i.gridTemplateAreas,l=i.gridTemplateColumns,d=i.gridTemplateRows,p=i.componentProps;return r=y(y({},(0,u.useAdLink)()),r?{itemUrl:r}:{}),e=(0,a.merge)({},{[o.Components.Slide]:y(y({},e),{},{slideClickUrl:n.default.createElement(c.AdLink,r)})},p),r=null==s?void 0:s.map((e=>`'${e.filter(Boolean).join(" ")}'`)).join(" "),{regions:(0,a.flatten)(s),gridStyles:{gridTemplateAreas:r,gridTemplateColumns:l,gridTemplateRows:d},componentProps:e}}},6311:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogoImage=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(518),i=r(5998),s=r(4828);t.LogoImage=e=>{var t=e.wrapperClassName,r=e.backgroundColor,n=e.className,l=void 0===(m=e.alignment)?"center":m,u=e.imageWidth,c=e.imageHeight,d=e.imageWrapperClassName,p=e.logoFrameClassName,m=(e=(m=(0,s.usePayload)()).brandLogoUrl,m.delayLoadingHighQualityImage);return e?a.default.createElement("div",{className:(0,o.twMerge)("grid-logo-image flex min-h-0 h-full items-center justify-center",t)},a.default.createElement("div",{"data-testid":"logoFrame",className:(0,o.twMerge)("flex min-h-0 h-full items-center justify-center",p)},a.default.createElement(i.Image,{"data-testid":"logoImage",alt:"Logo",src:e,alignment:l,delayLoadingHighQualityImage:m,backgroundColor:r,wrapperClassName:d,className:n,imageWidth:u,imageHeight:c}))):null}},7786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PriceBadge=void 0;var n=f(r(7363)),a=f(r(4184)),o=r(8433),i=r(7972),s=r(3540),l=r(546),u=f(r(8756)),c=r(4828),d=f(r(9345)),p=r(5663),m=r(5343);function f(e){return e&&e.__esModule?e:{default:e}}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.PriceBadge=e=>{var t=e.badgeClass,r=e.dealPriceClass,f=e.wrapperClass,h=void 0===(R=e.alignmentClass)?"items-center justify-center":R,y=void 0===(O=e.priceSize)?"small":O,v=void 0===(B=e.priceTextSize)?"medium":B,b=void 0===(L=e.badgeSize)?"small":L,C=void 0===(A=e.automatedDealBadgeTextSize)?"small":A,x=void 0===(I=e.automatedDealBadgeClasses)?"":I,E=e.automatedDealBadgeShortContentThreshold,S=void 0===(N=e.priceSizeOverride)?"text-[16px]":N,_=void 0===(M=e.strikePriceSize)?"mini":M,T=e.hideSavingsText,w=e.savingsTextSize,P=void 0!==(D=e.isRioPriceInline)&&D,O=void 0!==(R=e.hideBadge)&&R,A=(L=(B=(0,c.usePayload)()).productDetails).price,I=L.energyEfficiency,N=L.showEnergyEfficiency,M=L.automatedBadgingData,D=B.isRioPricing,L=(e=(0,s.useDealBadge)().badgeText,(R=(0,l.useDealData)()).isSnsDiscount),B=R.showDealDisclaimer,R=R.isCoupon;O=(L||e||B||M)&&!N&&!O,A=A&&!N,T=!T&&(0,p.useSavingsText)(),b=O?n.default.createElement(n.default.Fragment,null,M&&n.default.createElement(d.default,{automatedBadgingData:M,size:b,textSize:C,shortContentThreshold:E,className:x}),!M&&n.default.createElement(o.DealDetails,{dealBadgeText:e||"",showDealDisclaimer:B,isSns:L,isCoupon:R,className:t,badgeSize:b})):null;let j=A?n.default.createElement(i.DealPrice,{size:y,priceSize:v,strikePriceSize:_,priceSizeOverride:S,primeLogoSize:"small",className:r,savingsText:T,savingsTextSize:w}):null;return D&&A&&(j=n.default.createElement(m.RioPrice,{primeLogoSize:"small",priceSize:v,savingsText:T,isInline:P})),R=L||R,n.default.createElement("div",{className:(0,a.default)("grid-price-badge flex",h,f),"data-testid":"priceAndBadge"},R?null:b,j,R?b:null,N?n.default.createElement(u.default,g({size:"small"},I)):null)}},9697:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGradientAngle=t.ALIGNMENT_CLASSES=void 0,t.ALIGNMENT_CLASSES={left:"justify-left",center:"justify-center"},t.getGradientAngle=e=>{let t=109;return null!=e&&e.width&&null!=e&&e.height&&(t=(e=e.width/e.height)<=.8?102:e<=1?102+2*(e-.8)/(1-.8):e<1.25?104+5*(e-1)/.25:109),t}},1869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProductImage=void 0;var n=d(r(7363)),a=d(r(4184)),o=r(5998),i=r(9697),s=r(4828),l=r(6475),u=r(2872),c=r(9599);function d(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.ProductImage=e=>{var t=e.className,r=e.wrapperClassName,d=void 0===(E=e.alignment)?"center":E,m=void 0!==(P=e.isHoverable)&&P,f=e.imageWrapperClassName,g=e.animationType,h=e.animationThreshold,y=e.imageWidth,v=e.imageHeight,b=void 0===(S=e.index)?0:S,C=void 0===(_=e.productIndex)?0:_,x=void 0!==(T=e.enableGreyBackground)&&T,E=void 0!==(w=e.enableProductAdLink)&&w,S=(P=(0,s.usePayload)()).productDetails,_=P.productDetailsList,T=P.is3P,w=(e=P.activeExperiments,P.delayLoadingHighQualityImage),P=(0,c.useAdLink)();C=(_=(null==_?void 0:_[C])||S).productTitle,S=void 0===(S=_.productImageList)?[]:S,_=void 0===(_=_.clickUrl)?"":_;return null!=(b=null==S?void 0:S[b])&&b.url?(e=!T&&e[l.Experiments.PERCProductImageGreyBackground],x=x||e,E=E&&!!_,n.default.createElement("div",{className:(0,a.default)("grid-product-image flex min-h-0 w-full h-full items-center relative",i.ALIGNMENT_CLASSES[d],r),"data-testid":"productImageContainer"},E?n.default.createElement(u.AdLink,p({},P,{itemUrl:_})):null,x?n.default.createElement("div",{"data-testid":"productGreyBackground",className:(0,a.default)("absolute z-10 bg-black-700 opacity-5 rounded",e?"h-[90%] w-[90%]":"h-full w-full")}):null,n.default.createElement(o.Image,{className:t,"data-testid":"productImage",alt:C,isHoverable:m,delayLoadingHighQualityImage:w,wrapperClassName:f,src:null==b?void 0:b.url,animationType:g,animationThreshold:h,imageWidth:y,imageHeight:v}))):null}},9957:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProductTitle=void 0;var n=u(r(7363)),a=u(r(4184)),o=r(7886),i=r(9672),s=r(4828),l=r(1245);function u(e){return e&&e.__esModule?e:{default:e}}t.ProductTitle=e=>{var t=e.lines,r=e.className,u=void 0===(c=e.color)?"black":c,c=void 0!==(c=e.showFeaturedByBrand)&&c;e=void 0===(e=e.alignmentClass)?"items-center justify-center":e;const d=(0,s.usePayload)(),p=d.brandName,m=d.productDetails.productTitle,f=d.mlParameters,g=f.productTitleColor,h=f.productTitleFontSize,y=f.productTitleFontWeight,v=f.productTitleFontStyle,b=(0,l.useI18n)().getString;return r=(0,i.resolveFontClassName)(r,v,y,h),(c=c?p?b("featured_by").replace("{brandName}",p):b("related_to_your_views"):m)?n.default.createElement("div",{className:(0,a.default)("grid-product-title h-full flex",e,r),"data-testid":"productTitleGridComponent"},n.default.createElement(o.Text,{color:g||u,lineClamp:t,isBreakWord:!0},c)):null}},6496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SponsoredLabel=void 0;var n,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=u(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),o=(n=r(4184))&&n.__esModule?n:{default:n},i=r(1245),s=r(1353),l=r(2746);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}t.SponsoredLabel=e=>{var t=e.className,r=e.alignment;e=void 0===r?"left":r;const n=(0,i.useI18n)().getString,u=(0,s.useSF)().SFApi;return r=(0,a.useCallback)((()=>{null!=u&&u.feedbackOpenModal()}),[]),(0,a.useEffect)((()=>{null!=u&&u.feedbackLabelRendered()}),[]),a.default.createElement("div",{className:(0,o.default)("grid-sponsored-label h-min-[30px] h-max-[30px] w-full flex items-center relative z-[50] cursor-pointer","left"===e?"justify-start":"","right"===e?"justify-end":""),"data-testid":"sponsored-label-wrapper",onClick:r},a.default.createElement("div",{"data-testid":"sponsored-label",className:(0,o.default)("sponsored-label text-gray-600 flex items-center hover:text-gray-900 text-[11px] leading-[11px]",t)},a.default.createElement("span",{"data-testid":"sponsored-label-text"},n("sponsored")),a.default.createElement(l.SvgImg,{path:"perc/info_icon_with_hover_sprite_2x.png",alt:"Ad Feedback Icon",className:"feedback-icon ml-[2px]","data-testid":"feedback-icon"})))}},7340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_SLIDE_THRESHOLD=void 0,t.DEFAULT_SLIDE_THRESHOLD=.25},3083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TeaseImages=void 0;var n,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=p(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),o=r(317),i=r(5998),s=(n=r(4337))&&n.__esModule?n:{default:n},l=r(4059),u=r(5773),c=r(7340),d=r(4828);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}t.TeaseImages=e=>{let t=e.className,r=e.images,n=e.width,p=void 0===n?150:n,m=e.slideThreshold,f=void 0===m?c.DEFAULT_SLIDE_THRESHOLD:m;var g=(0,a.useRef)(null),h=(0,l.usePositionTracking)({layoutRef:g}).positionOnScreen,y=(b=(0,d.usePayload)()).brandLogoUrl,v=(C=b.productDetails).productTitle,b=(e=C.productImage,(g=(0,u.useCustomImage)({sizeType:"square"})).src),C=g.alt;g=(0,o.useAppLayout)().height;const x={"custom-image":a.default.createElement("div",{"data-testid":"teaseItem",key:"customImage",className:"shrink-0 p-0 h-[125px]",style:{maxWidth:p}},a.default.createElement(i.Image,{alt:C,src:b,"data-testid":"customImage",autoCrop:!1})),"logo-image":a.default.createElement("div",{"data-testid":"teaseItem",key:"logoImage",className:"shrink-0 p-1 h-[125px]",style:{maxWidth:p}},a.default.createElement(i.Image,{"data-testid":"logo",src:y,alt:"Logo"})),"product-image":a.default.createElement("div",{"data-testid":"teaseItem",key:"productImage",className:"shrink-0 p-1 h-[125px]",style:{maxWidth:p}},a.default.createElement(i.Image,{"data-testid":"productImage",src:null==e?void 0:e.url,alt:v}))};return a.default.createElement("div",{"data-testid":"tease",className:t},1===r.length&&r[0],1<r.length&&a.default.createElement(s.default,{positionOnScreen:h,slideThreshold:f,height:g},r.map((e=>x[e]))))}},9441:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitleVariant=void 0,t.TitleVariant=void 0,(t.TitleVariant={}).LocalBusinessForYou="local_business_for_you"},2797:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitleLabel=void 0;var n=u(r(7363)),a=r(518),o=u(r(4184)),i=r(7886),s=r(9441),l=r(1245);function u(e){return e&&e.__esModule?e:{default:e}}t.TitleLabel=e=>{var t=void 0===(c=e.variant)?s.TitleVariant.LocalBusinessForYou:c,r=void 0===(u=e.alignmentClass)?"items-center justify-center":u,u=void 0===(c=e.className)?"":c,c=void 0===(c=e.classNameText)?"":c;e=void 0!==(e=e.isFontBold)&&e;return(t=(0,(0,l.useI18n)().getString)(t))?(e=e?"font-bold":"font-normal",n.default.createElement("div",{className:(0,a.twMerge)("grid-title-label flex h-full",u,r),"data-testid":"title-label"},n.default.createElement(i.Text,{className:(0,o.default)(c,e),isBreakWord:!0},t))):null}},6396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Layout350x420=void 0;var n=y(r(7363)),a=y(r(4184)),o=r(7809),i=r(7886),s=r(2944),l=r(4828),u=r(1245),c=r(4537),d=r(8426),p=r(4811),m=y(r(8756)),f=r(6496),g=r(5343),h=r(546);function y(e){return e&&e.__esModule?e:{default:e}}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.Layout350x420=e=>{var t=e.adLink,r=e.onCTAButtonClick;(0,s.useTailwindStyles)();const y=(0,l.usePayload)(),b=y.isMobile,C=y.locale,x=y.isRTL,E=y.urls,S=E.detailPageUrl,_=E.rewardPageUrl,T=y.delayLoadingHighQualityImage,w=y.productDetails,P=w.productImage,O=w.productTitle,A=w.productGroupTypeInformation.productGroupType,I=w.energyEfficiency,N=w.showEnergyEfficiency,M=w.offer,D=w.isSnsDiscount,L=w.isOmnibusMarket,B=y.isRioPricing,R=(0,u.useI18n)().getString;var j,k=(j=(0,d.useDealMessage)()).dealMessage,F=j.discountAtCheckoutMessage,z=(0,h.useDealData)().isCoupon;e=!b;let Z=j=R("related_to_your_views");try{"gl_shoes"!==A&&(Z=R(A))}catch(e){}j=k||Z||j;let G=!!k;B&&(G=!(L||!M)||z||D);let W=_||S;return n.default.createElement("div",{className:"layout-container flex items-center justify-center overflow-hidden relative bg-white w-full h-full","data-testid":"layout350x420"},n.default.createElement("div",{className:(0,a.default)("layout-content w-full h-full flex flex-col p-[20px]",b?"p-[10px]":"p-[20px]",x?"direction-rtl":""),"data-testid":"wrapper"},n.default.createElement("h2",{className:"fp-title shrink-0 order-1"},n.default.createElement("span",{className:"visually-hidden"},R("sponsored_ad")),n.default.createElement(i.Text,{"data-testid":"fpTitle",lineClamp:2,color:"black",className:(0,a.default)(b?"font-thin text-[20px]":"text-[21px] font-bold",(()=>{let e="leading-[25px]";return b||(e="te_IN"===C?"leading-[37px]":"leading-[27px]"),e})())},j)),n.default.createElement("div",{className:"image-wrapper flex flex-1 min-w-0 min-h-0 items-center py-2 order-3"},n.default.createElement(o.Image,{delayLoadingHighQualityImage:T,"data-testid":"productImage",alt:O,src:null==P?void 0:P.url,className:"max-h-[250px]"})),n.default.createElement("div",{className:"buy-box flex flex-col order-4 gap-1"},n.default.createElement(i.Text,{"data-testid":"productTitle",variant:"body-larger",lineClamp:2,isBreakWord:!0},O),G?n.default.createElement("div",{className:"fp-priceContainer"},B?n.default.createElement(g.RioPrice,{priceSize:"mediumPlus",wholeFoodsLogoSize:"small",primeLogoSize:"medium",freshLogoSize:"medium"}):n.default.createElement(p.PriceBox,null),F?n.default.createElement(i.Text,{color:"gray60",className:"mt-1"},F):null):null,N&&n.default.createElement(m.default,v({size:"medium"},I)),n.default.createElement("div",{className:"fp-cta relative z-30 mt-2"},n.default.createElement(c.CTAButton,{destinationType:"item-page",href:W,onClick:r,variant:b?"featuredSkinny":"featured",size:"none"}))),e&&n.default.createElement("div",{className:"fp-sponsored mt-[6px] leading-[1] order-2","aria-hidden":"true"},n.default.createElement(f.SponsoredLabel,{className:"text-sm"}))),t)}},4811:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PriceBox=void 0;var n=c(r(7363)),a=c(r(6167)),o=r(7886),i=r(7225),s=r(1245),l=r(9497),u=r(4828);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e,t)||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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.PriceBox=e=>{var t=void 0===(g=e.color)?"black":g,r=(m=(0,s.useI18n)()).currencySymbol,c=m.currencyPlacement,p=(f=(0,u.usePayload)()).marketplace,m=(e=f.locale,(g=f.productDetails).isOmnibusMarket),f=g.price,g=g.formattedFullPrice;e=(p=d((0,l.splitPrice)(f,p,e),2))[0],p=p[1],m=g&&!m;return f||g?n.default.createElement("div",{className:"fp-price flex flex-col gap-1 text-[16px]"},f?n.default.createElement("div",{className:"flex gap-1"},n.default.createElement("span",{className:"visually-hidden"},"BEFORE"===c?""+r+f:""+f+r),n.default.createElement("div",{className:"price text-[20px] direction-ltr","aria-hidden":"true"},"BEFORE"===c?n.default.createElement(o.Text,{"data-testid":"symbol-before",color:t,variant:"superscript",className:"align-top"},r):null,n.default.createElement(o.Text,{"data-testid":"price-whole",color:t},e),p?n.default.createElement(o.Text,{"data-testid":"price-decimal",color:t,variant:"superscript",className:"align-top pl-[1px]"},p):null,"AFTER"===c?n.default.createElement(o.Text,{"data-testid":"symbol-after",color:t,variant:"superscript",className:"align-top pl-[1px]"},r):null),m?null:n.default.createElement(i.LegalClauseText,{variant:"taxMessage",textVariant:"caption"})):null," ",m?n.default.createElement("div",{className:"flex gap-1"},n.default.createElement(a.default,{"data-testid":"fullprice",price:g,variant:"caption",color:"gray60",superscriptCurrencySymbol:!1,showCurrency:!1,strike:!0}),n.default.createElement(i.LegalClauseText,{variant:"taxMessage",textVariant:"caption"})):null):null}},7899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(6396);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.Layout350x420,t.default=r},8426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDealMessage=void 0;var n=r(8583),a=r(4828),o=r(1245),i=r(9497),s=r(3205),l=r(580),u=r(4543);t.useDealMessage=()=>{var e=(h=(0,a.usePayload)()).marketplace,t=h.locale,r=void 0!==(g=(y=h.productDetails).isSnsDiscount)&&g,c=y.discountData,d=y.hasPrimeDayDeal,p=y.automatedBadgingData,m=y.hasBlackFridayDeal,f=y.hasCyberMondayDeal,g=void 0!==(h=(v=(0,u.getTimedDeals)({marketplace:e,currentTime:new Date})).primeDayDealEnabled)&&h,h=void 0!==(y=v.primeBigDealDaysEnabled)&&y,y=v.blackFridayDealEnabled,v=v.cyberMondayDealEnabled;const b=(0,o.useI18n)().getString;e=(0,i.formatDiscountValue)(c,t,e);const C={dealMessage:null,discountAtCheckoutMessage:null};return(p=(0,s.useAutomatedDealBadge)({automatedBadgingData:p,shortContentThreshold:l.REGULARCONTENT_MAX_LENGTH}))?(0,n.isEmpty)(p.messageText)?C.dealMessage=p.labelText:C.dealMessage=p.labelText+" "+p.messageText:d&&g?C.dealMessage=b("prime_day_deal"):d&&h?C.dealMessage=b("prime_big_deal"):d?C.dealMessage=b("prime_exclusive_deal"):m&&y?C.dealMessage=b("black_friday_deal"):f&&v?C.dealMessage=b("cyber_monday_deal"):(e&&r&&(C.dealMessage=b("featured_product_sns").replace("{percent}",e)),e&&!r&&(C.dealMessage=b("featured_product_coupon").replace("{number,percent}",e),C.discountAtCheckoutMessage=b("featured_product_discount_at_checkout"))),C}},6929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LeadFormPreviewLayout=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(2944),i=r(724),s=r(4828);t.LeadFormPreviewLayout=()=>{(0,o.useTailwindStyles)();var e=(t=(0,s.usePayload)()).isPreviewLeadGenForm,t=t.isPreviewLeadGenThankYouView;return a.default.createElement("div",{"data-testid":"lead-form-layout-container",className:"tw","aria-label":"Form"},a.default.createElement("div",{"data-testid":"lead-form-layout",className:"h-screen w-full bg-white p-2 relative"},e?a.default.createElement(i.LeadForm,null):null,t?a.default.createElement(i.ThankYouView,null):null))}},357:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(6929);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.LeadFormPreviewLayout,t.default=r},2150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdChoicesButton=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=o(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var i;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((i=a?Object.getOwnPropertyDescriptor(e,r):null)&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),a=r(636);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.AdChoicesButton=e=>{e=e.privacyUrl;const t=i((0,n.useState)(!1),2),r=t[0],o=t[1];return n.default.createElement("a",{href:e,"data-testid":"adchoicesLink",target:"_blank",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),rel:"noreferrer"},n.default.createElement("div",{className:"shadow-adchoices pl-[4px] pr-[2px] leading-[0] rounded-bl-[4px] py-[4px] bg-white"},r?n.default.createElement("span",{className:"relative text-xs leading-[0] top-[1px] mr-1"},"AdChoices"):null,n.default.createElement(a.AdChoicesIcon,null)))}},640:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdLink=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=s(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),a=r(5393),o=r(6431),i=r(4828);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}t.AdLink=(0,n.forwardRef)(((e,t)=>{let r=e.isOffsite,s=e.itemUrl,l=e.zIndex,u=void 0===l?20:l,c=e.onClick,d=e.openInNewWindow,p=e.disabled,m=void 0!==p&&p,f=e.rawDetailPageUrl;e=(g=(0,i.usePayload)()).isLeadGenCreative;var g=g.isPreview;const h=(0,o.useModalOpen)({triggerType:"adLink"}),y=h.shouldOpenModal,v=h.handleModalOpen;return n.default.createElement("div",{"data-testid":"adLink",className:"focus-outline",id:"adLink"},n.default.createElement(a.ClickthroughLink,{anchorProps:{ref:t,style:{background:'transparent url("https://m.media-amazon.com/images/G/01/d16g/kpw/transparent-1x1.png") repeat 0 0',bottom:0,cursor:e&&g?"default":"pointer",left:0,position:"absolute",right:0,top:0,zIndex:u},role:y?"button":"link","aria-labelledby":"adLink"},onClick:m?void 0:()=>{y?v():"function"==typeof c&&c()},isOffsite:r,rawDetailPageUrl:f,url:s,isExternalLink:d,disableNavigation:!!m||y}))}))},2872:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(640);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAmazonUrl=t.getDefinedOrDefault=t.fireTrackers=t.TARGET_TOP=t.TARGET_BLANK=t.AMAZON_DOMAIN_REGEX=void 0,t.TARGET_TOP="_top",t.TARGET_BLANK="_blank";const r=/^((https?:)?\/\/)(.*\.)?amazon\./;t.AMAZON_DOMAIN_REGEX=r,t.isAmazonUrl=e=>r.test(e),t.fireTrackers=e=>(Array.isArray(e)?e:[e]).forEach((e=>{new Image(1,1).src=e})),t.getDefinedOrDefault=(e,t)=>void 0!==e?e:t},4537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CTAButton=void 0;var n=g(r(7363)),a=g(r(841)),o=r(9599),i=r(2585),s=r(9770),l=r(2616),u=r(4828),c=r(8673),d=r(6655),p=r(557),m=r(8335);const f=["destinationType","data-testid","variant","size","overrideLink","overrideHoverColor","overrideClickEventName","enableLinkOutEvent","children"];function g(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.CTAButton=e=>{let t=e.destinationType,r=void 0===t?"item-page":t,g=e["data-testid"],y=e.variant,b=e.size,C=e.overrideLink,x=e.overrideHoverColor,E=e.overrideClickEventName,S=e.enableLinkOutEvent,_=void 0!==S&&S,T=e.children,w=function(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),o=0;o<a.length;o++)r=a[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,f);const P=(0,d.useModal)(),O=P.isModalTrigger,A=P.openModal,I=P.isModalView,N=(0,u.usePayload)(),M=N.isLeadGenCreative,D=N.leadGenAdEventPixelUrls,L=N.isShoppableModalEnabled,B=N.isNonEndemicZoetropeAd,R=(0,o.useAdLink)(),j=R.isPreview,k=R.isOffsite,F=R.addToCartPageUrl,z=R.checkoutPageUrl,Z=R.openInNewWindow,G=R.rawDetailPageUrl;var W=(0,i.useButtonVariant)({baseVariant:y}).variant,U=(V=(0,i.useButtonData)({destinationType:r})).buttonLabel,V=(e=V.buttonHref,V.isButtonHidden);const H=(0,m.useShoppableModal)(),Y=H.handleCustomTabOpen,q=H.isShoppableModalView,X=H.handleShoppableModalOpen;if(!F&&"add-to-cart"===r&&!C)return null;if(!z&&"checkout-page"===r&&!C)return null;const Q=I?"ctaButtonTwitchModal":"ctaButton";let J,K="link",$=g||"cta-button",ee=()=>{var e;(0,s.cemLoggerClickEventCallback)({eventName:J,componentName:Q}),!M||!_||j||(e=D?D.linkOut:"")&&(0,p.fireTrackers)([e])};O&&(K="button",$="adLinkTrigger",ee=()=>{null!=A&&A(null)}),L&&(K="button",ee=q?()=>{Y(C,{eventName:J,componentName:Q})}:X),r&&(J=E?E({destinationType:r}):l.DESTINATION_TYPE_TO_EVENT_NAME[r]),e=v(v({},w),{},{onClick:ee,overrideHoverColor:x,size:b,variant:W,href:C||e,isOffsite:k,isPreview:j,linkProps:{openInNewWindow:Z,rawDetailPageUrl:G}});let te=U;return(M||B)&&(te=n.default.createElement(n.default.Fragment,null,U," ",n.default.createElement(c.ExternalLinkIcon,{className:"ml-0.5 mt-[2px]"}))),V?null:n.default.createElement(a.default,h({as:K,"data-testid":$},e),T||te)}},9642:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LeadGenButton=void 0;var n=c(r(7363)),a=c(r(4184)),o=r(4828),i=r(841),s=r(8872),l=r(2963),u=r(1245);function c(e){return e&&e.__esModule?e:{default:e}}const d={[l.LeadGenFormActions.SignUp]:"sign_up",[l.LeadGenFormActions.Inquire]:"inquire",[l.LeadGenFormActions.RequestQuote]:"request_quote"};t.LeadGenButton=e=>{var t=e.className,r=e.size,l=(f=(0,o.usePayload)()).callToActionsProperties,c=f.isPreview,p=f.openLeadFormInPage,m=f.leadFormLandingPageUrl,f=(e=(0,s.useLeadFormOpen)()).handleOpenLeadFormInModal;e=e.handleOpenLeadFormInPage;const g=(0,u.useI18n)().getString;return l=l.callToActionType,l=(l=d[l])?g(l):"CTA text",p&&m?n.default.createElement(i.Button,{as:"link",variant:"squarePillWhite",size:r,className:(0,a.default)(t,c?"cursor-default":""),"data-testid":"leadgen-button",isOffsite:!0,href:m,onClick:e,disabled:c},l):n.default.createElement(i.Button,{as:"button",variant:"squarePillWhite",size:r,className:(0,a.default)(t,c?"cursor-default":""),"data-testid":"leadgen-button",onClick:f,disabled:c},l)}},5741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseButtonBar=void 0;var n=f(r(7363)),a=f(r(4184)),o=r(5670),i=f(r(7886)),s=r(2746),l=r(1353),u=r(2616),c=r(1245),d=r(6655),p=r(4828),m=r(6475);function f(e){return e&&e.__esModule?e:{default:e}}t.CloseButtonBar=()=>{const e=(0,o.useExpandableAdStatusTransition)().resetCreativeView,t=(0,l.useSF)().SFApi,r=(0,u.useCEM)().logPerformanceEvent,f=(0,c.useI18n)().getString;var g=(0,p.usePayload)().activeExperiments;const h=(0,d.useModal)(),y=h.closeModal,v=h.isModalView,b=h.modalType;var C=g[m.Experiments.DetailIlmExpand.IlmExpand]||g[m.Experiments.DetailIlmExpand.IlmExpandAndDecreaseHeight]||g[m.Experiments.MobileIlmExpand],x=C?"black":"white";g=C?"perc/chevron-up-black.png":"perc/chevron-up-white.svg";return n.default.createElement("div",{"data-testid":"close-button-bar",className:(0,a.default)(["grid-close-button-bar w-full h-[30px] flex justify-end items-center opacity-75 px-0.5 relative z-50 cursor-pointer",C?"bg-white":"bg-[#000]"]),onClick:()=>{v&&b===d.ModalType.ExpandableAds?y():(e(),null!=t&&t.resetSlotSize(),r({eventName:u.EventNames.EXPANDABLE_VIDEO_AD_COLLAPSED_VIA_CLOSE_BUTTON}))}},n.default.createElement(s.SvgImg,{path:g,alt:"close cheveron up",className:"close-chevron-up-icon mx-0.5","data-testid":"close-chevron-up-icon"}),n.default.createElement(i.default,{color:x,className:"mr-0.75"},f("close")))}},1414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(5741);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.CloseButtonBar,t.default=r},6286:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DealDisclaimer=void 0;var n=s(r(7363)),a=s(r(4184)),o=r(7886),i=r(1245);function s(e){return e&&e.__esModule?e:{default:e}}t.DealDisclaimer=e=>{var t=e.children;e=e.className;const r=(0,i.useI18n)().getString;return n.default.createElement(o.Text,{"data-testid":"dealDisclaimer",color:"gray60",variant:"xs",noWrap:!0,className:(0,a.default)("shrink-0",e)},t||r("deal_disclaimer.value"))}},5942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(6286);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.DealDisclaimer,t.default=r},920:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DealPrice=void 0;var n=y(r(7363)),a=y(r(4184)),o=y(r(5581)),i=y(r(2632)),s=y(r(6167)),l=r(7225),u=r(910),c=r(4724),d=r(1245),p=r(4828),m=r(317),f=y(r(9584)),g=r(5343),h=r(3723);function y(e){return e&&e.__esModule?e:{default:e}}t.DealPrice=e=>{var t=void 0!==(Y=e.isCentered)&&Y,r=e.primeLogoSize,y=void 0===r?"large":r,v=e.freshLogoSize,b=void 0===v?"medium":v,C=e.wholeFoodsLogoSize,x=void 0===C?"small":C,E=e.onlyShowFullPrice,S=void 0!==E&&E,_=e.size,T=void 0===_?"medium":_,w=e.priceSizeOverride,P=e.className,O=e.hideStrikeOutPrice,A=void 0!==O&&O,I=e.hidePrimeLogo,N=void 0!==I&&I,M=e.priceSize,D=e.strikePriceSize,L=e.superscriptDecimal,B=void 0===L||L,R=e.color,j=void 0===R?"red50":R,k=e.priceClassName,F=void 0===k?"":k,z=e.legalTextSize,Z=e.savingsText,G=void 0===Z?"":Z,W=e.savingsTextSize,U=e.savingsTextClassName,V=e.isRioPriceInline,H=e.productIndex,Y=void 0===H?0:H;const q=(0,d.useI18n)(),X=q.isPricePerUnitSupported,Q=q.getString;let J;return v=(r=(0,p.usePayload)()).productDetails,C=r.productDetailsList,E=r.isMobileHomepageCard,_=r.marketplace,O=r.isRioPricing,L=(I=(null==C?void 0:C[Y])||v).price,R=I.formattedFullPrice,k=I.formattedFullPriceNoCurrency,Z=I.isPrime,e=I.isOmnibusMarket,H=I.isFreshSupported,r=I.isWholeFoodsSupported,C=I.isFreshEligible,Y=I.isWholeFoodsEligible,v=I.isClimatePledgeFriendly,I=(0,m.useAppLayout)().currentScreen,e=L&&R&&!A&&!S&&!e,H=C&&H,Y=Y&&r,r=Z&&!N&&!H&&!Y,Z="taxMessage",_="DE"===_&&Q(l.translationKeys[Z]),I=new Set(["banner-xs","banner-sm","banner-sm-narrow","banner-pinpoint","skyscraper-sm"]).has(I),D=D||(I?"small-mobile":"small-desktop"),z=z||("small"===T?"sm":"caption"),J=E?n.default.createElement(s.default,{"data-testid":"price",variant:"none",color:"black",superscriptCurrencySymbol:!1,superscriptDecimalValue:!1,price:L,priceSize:"small-mobile",currencyClasses:"text-[13px] top-[-1px]"}):n.default.createElement(n.default.Fragment,null,G?n.default.createElement(f.default,{size:W,className:U},G):null,n.default.createElement(s.default,{"data-testid":"price",variant:"medium"===T?"body":"sm",color:j||"red50",superscriptCurrencySymbol:!0,superscriptDecimalValue:!I&&B,price:S?k:L,priceSize:M||(I?"medium":"large"),className:(0,a.default)("leading-[1.2]",F),priceSizeOverride:w})),O?n.default.createElement(g.RioPrice,{primeLogoSize:y,freshLogoSize:b,wholeFoodsLogoSize:x,hidePrimeLogo:N,priceSize:T,savingsText:G,isInline:V,className:"mt-0.5"}):n.default.createElement(u.Stack,{"data-testid":"dealprice-stack",direction:"row",wrap:"wrap",align:"baseline",className:(0,a.default)(_||X?"gap-y-0":"","small"!==T?"gap-0.5":"gap-0.25",P,t?"justify-center":"",E?"":v?"mb-1.25":"mb-0.25")},L?J:null,e&&!S&&n.default.createElement(s.default,{"data-testid":"fullprice",price:R,variant:"caption",color:"gray60",superscriptCurrencySymbol:!1,showCurrency:!1,strike:!0,priceSize:D}),L&&X?n.default.createElement(c.PricePerUnitText,{variant:z}):null,L?n.default.createElement(l.LegalClauseText,{"data-testid":"tax-message",variant:Z,textVariant:z}):null,r?n.default.createElement(o.default,{size:y}):null,H?(0,h.showFreshOrStarBustLogo)(b):null,Y?n.default.createElement(i.default,{size:x}):null)}},7972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(920);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},6771:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DescriptionBox=void 0;var n=g(r(7363)),a=g(r(4184)),o=r(79),i=r(4828),s=r(1245),l=r(7886),u=r(7809),c=r(4537),d=r(2872),p=r(9599),m=r(8673),f=r(5773);function g(e){return e&&e.__esModule?e:{default:e}}t.DescriptionBox=e=>{var t=e.isLeadForm,r=(0,i.usePayload)(),g=r.callToActionsProperties,h=r.modelData,y=r.brandLogoUrl,v=r.isPreviewLeadGenForm,b=r.isPreviewLeadGenThankYouView,C=r.delayLoadingHighQualityImage;e=(h||{}).properties.previewLeadForm;const x=(0,s.useI18n)().getString;return r=(0,p.useAdLink)(),h=(0,f.useCustomImage)({sizeType:"horizontal",showBorder:!1}).src,e=((v||b?e:null==g?void 0:g.properties)||{}).description,g=(0,o.getUrlWithoutPixel)(r.itemUrl),Object.assign(r,{itemUrl:g}),r=n.default.createElement(d.AdLink,r),e?n.default.createElement("div",{"data-testid":"description-box",className:(0,a.default)("flex flex-col border rounded shadow-sm3 mb-2 mt-[55px] items-center relative",t?"p-1":"p-1.5")},r,n.default.createElement("div",{className:"flex justify-center items-center h-[60px] w-[60px] mt-[-55px] rounded-full bg-white border overflow-hidden relative"},r,n.default.createElement(u.Image,{delayLoadingHighQualityImage:C,"data-testid":"logoImage",className:"logo",alt:"Logo",src:y})),n.default.createElement(l.Text,{className:(0,a.default)("text-center m-0.5",t?"":"mb-1.5"),isBreakWord:!0},e),t?n.default.createElement(c.CTAButton,{size:"none",variant:"link",destinationType:"item-page",className:"mt-1",overrideLink:g,enableLinkOutEvent:!0},x("learn_more")," ",n.default.createElement(m.ExternalLinkIcon,{className:"ml-0.5"})):n.default.createElement("div",{className:"flex h-full items-center min-w-0 min-h-0 w-full relative justify-center"},n.default.createElement(u.Image,{delayLoadingHighQualityImage:C,alt:"Brand Image",src:h,"data-testid":"customImage",className:"rounded-md"}))):null}},3498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LeadForm=void 0;var n=m(r(7363)),a=r(2467),o=r(79),i=r(2963),s=r(4828),l=r(1245),u=r(7886),c=m(r(7782)),d=r(9506),p=r(6771);function m(e){return e&&e.__esModule?e:{default:e}}t.LeadForm=()=>{var e=(h=(0,s.usePayload)()).callToActionsProperties,t=h.modelData,r=h.isPreviewLeadGenForm,m=h.leadGenAdEventPixelUrls,f=h.isTermsAndConditions,g=t||{},h=void 0===(y=g.region)?"NA":y,y=void 0===(t=g.shazamStage)?"prod":t;t=g.properties.previewLeadForm;const v=(0,l.useI18n)().getString;return g=(0,d.useLeadFormInputs)(),t=(r=(r?t:null==e?void 0:e.properties)||{}).questions,e=r.privacyPolicyUrl,r=r.leadFormId,t=(0,o.convertQuestionsToFormFields)(t,g),g=(0,o.getFormSubmissionEndpoint)(h,y),h=(0,o.getFormFieldsDefaultValues)(t),y=v("please_review_privacy_notice"),y=(0,o.getReviewPrivacyNoticeStrings)(y),n.default.createElement("div",{"data-testid":"lead-form","aria-label":"Form",className:"h-full w-full overflow-auto pb-5 px-0.5"},n.default.createElement(p.DescriptionBox,{isLeadForm:!0}),t&&0<t.length?n.default.createElement(a.Form,{fields:t,leadFormId:r,submissionEndpoint:g,leadGenAdEventPixelUrls:m,defaultValues:h}):null,n.default.createElement("div",{"data-testid":"form-disclosure",className:"flex flex-col gap-1 mt-2"},n.default.createElement(u.Text,{color:"slate40",variant:"sm"},v("form_disclosure")),2===y.length?n.default.createElement(u.Text,{color:"slate40",variant:"sm"},y[0]," ",e?n.default.createElement("a",{href:e,target:"_blank",rel:"noreferrer",className:"text-blue-600"},v("advertiser_privacy_notice")," "):n.default.createElement("span",null,v("advertiser_privacy_notice")," "),y[1]," ",n.default.createElement("a",{href:i.AMAZON_PRIVACY_URL,target:"_blank",rel:"noreferrer",className:"text-blue-600"},v("amazon_privacy_notice")),"."):null,f?n.default.createElement(c.default,{className:"text-sm"}):null))}},4907:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThankYouView=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(4537),i=r(9599),s=r(8673),l=r(79),u=r(6771),c=r(1245);t.ThankYouView=()=>{var e=(0,i.useAdLink)();const t=(0,c.useI18n)().getString;return e=(0,l.getUrlWithoutPixel)(e.itemUrl),a.default.createElement("div",{"data-testid":"thank-you-view","aria-label":"Post submission page",className:"h-full w-full overflow-auto pb-5 px-0.5"},a.default.createElement(u.DescriptionBox,{isLeadForm:!1}),a.default.createElement("p",{className:"text-green-600 text-center mt-5"},a.default.createElement(s.SuccessIcon,{className:"inline-block mr-[2px] mb-[2px]"})," ",t("thank_you_request")),a.default.createElement("div",{className:"max-w-[200px] mx-auto mt-5"},a.default.createElement(o.CTAButton,{size:"full",variant:"squarePillWhite",destinationType:"item-page",className:"p-0.5",overrideLink:e,enableLinkOutEvent:!1},t("visit_website")," ",a.default.createElement(s.ExternalLinkIcon,{className:"ml-0.5"}))))}},2963:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LeadGenFormActions=t.LEADS_MANAGER_ENDPOINTS=t.LEADGEN_HORIZONTE_SERVICE_ENDPOINTS=t.INPUT_VALIDATION_REGEX=t.FORM_SUBMISSION_API=t.AMAZON_PRIVACY_URL=void 0,t.LEADS_MANAGER_ENDPOINTS={NA:{beta:"https://development.amazon.com",gamma:"https://pre-prod.amazon.com",prod:"https://www.amazon.com"}},t.LEADGEN_HORIZONTE_SERVICE_ENDPOINTS={US:{beta:"https://development.amazon.com",gamma:"https://pre-prod.amazon.com",prod:"https://www.amazon.com"}},t.FORM_SUBMISSION_API="/adscta/creative/leadgen/SubmitLeadData?sif_profile=KyriosLeadGenData_NA_Profile",t.INPUT_VALIDATION_REGEX={email:/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,name:/^[a-z ,.'-]+$/i,phoneNumber:/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/,city:/^[a-zA-Z]+$/,zipCode:/^[0-9]+$/},t.AMAZON_PRIVACY_URL="https://www.amazon.com/gp/help/customer/display.html?nodeId=GX7NJQ4ZB8MHFRNJ",t.LeadGenFormActions=void 0,t.LeadGenFormActions={SignUp:"SIGN_UP",Inquire:"INQUIRE",RequestQuote:"REQUEST_QUOTE"}},724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3498);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var a=r(4907);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}))},9506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLeadFormInputs=void 0;var n=r(9872),a=r(1245),o=r(2963),i=r(79);t.useLeadFormInputs=()=>{const e=(0,a.useI18n)().getString;return{[n.QuestionType.Email]:{inputType:n.FormInputType.Email,fieldId:n.FieldId.Email,label:e("email"),placeholder:"someone@example.com",validationRules:{required:{value:!0,message:e(n.formCustomErrors.email.required)},pattern:{value:o.INPUT_VALIDATION_REGEX.email,message:e(n.formCustomErrors.email.invalid)},maxLength:{value:100,message:e(n.formCustomErrors.email.invalid)}}},[n.QuestionType.FullName]:{inputType:n.FormInputType.Text,fieldId:n.FieldId.FullName,label:e("full_name"),validationRules:{required:{value:!0,message:e(n.formCustomErrors.fullName.required)},pattern:{value:o.INPUT_VALIDATION_REGEX.name,message:e(n.formCustomErrors.fullName.invalid)},maxLength:{value:100,message:e(n.formCustomErrors.fullName.invalid)},validate:{checkString:t=>(0,i.validateAllWhiteSpaceString)(t)||e(n.formCustomErrors.fullName.required)}}},[n.QuestionType.FirstName]:{inputType:n.FormInputType.Text,fieldId:n.FieldId.FirstName,label:e("first_name"),validationRules:{required:{value:!0,message:e(n.formCustomErrors.firstName.required)},pattern:{value:o.INPUT_VALIDATION_REGEX.name,message:e(n.formCustomErrors.firstName.invalid)},maxLength:{value:100,message:e(n.formCustomErrors.firstName.invalid)},validate:{checkString:t=>(0,i.validateAllWhiteSpaceString)(t)||e(n.formCustomErrors.firstName.required)}}},[n.QuestionType.LastName]:{inputType:n.FormInputType.Text,fieldId:n.FieldId.LastName,label:e("last_name"),validationRules:{required:{value:!0,message:e(n.formCustomErrors.lastName.required)},pattern:{value:o.INPUT_VALIDATION_REGEX.name,message:e(n.formCustomErrors.lastName.invalid)},maxLength:{value:100,message:e(n.formCustomErrors.lastName.invalid)},validate:{checkString:t=>(0,i.validateAllWhiteSpaceString)(t)||e(n.formCustomErrors.lastName.required)}}},[n.QuestionType.PhoneNumber]:{inputType:n.FormInputType.Tel,fieldId:n.FieldId.PhoneNumber,label:e("phone_number"),placeholder:"### ### ####",validationRules:{required:{value:!0,message:e(n.formCustomErrors.phoneNumber.required)},pattern:{value:o.INPUT_VALIDATION_REGEX.phoneNumber,message:e(n.formCustomErrors.phoneNumber.invalid)}},maxLength:12,onChange:e=>{e.target.value=(0,i.formatPhoneNumber)(e.target.value)}},[n.QuestionType.City]:{inputType:n.FormInputType.Text,fieldId:n.FieldId.City,label:e("city"),validationRules:{required:{value:!0,message:e(n.formCustomErrors.city.required)},pattern:{value:o.INPUT_VALIDATION_REGEX.city,message:e(n.formCustomErrors.city.invalid)},maxLength:{value:100,message:e(n.formCustomErrors.city.invalid)},validate:{checkString:t=>(0,i.validateAllWhiteSpaceString)(t)||e(n.formCustomErrors.city.required)}}},[n.QuestionType.ZipCode]:{inputType:n.FormInputType.Text,fieldId:n.FieldId.ZipCode,label:e("zip_code"),validationRules:{required:{value:!0,message:e(n.formCustomErrors.zipCode.required)},pattern:{value:o.INPUT_VALIDATION_REGEX.zipCode,message:e(n.formCustomErrors.zipCode.invalid)},maxLength:{value:5,message:e(n.formCustomErrors.zipCode.invalid)},minLength:{value:5,message:e(n.formCustomErrors.zipCode.invalid)},validate:{checkString:t=>(0,i.validateAllWhiteSpaceString)(t)||e(n.formCustomErrors.zipCode.required)}}}}}},8872:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLeadFormOpen=void 0;var n=r(4828),a=r(6655),o=r(557);t.useLeadFormOpen=()=>{const e=(0,n.usePayload)(),t=e.leadGenAdEventPixelUrls,r=e.isLeadGenCreative,i=e.isPreview,s=e.isBulkPreview,l=(0,a.useModal)()||{},u=l.openModal,c=l.isFormSubmitted,d=(null==t?void 0:t.openForm)||"";return{handleOpenLeadFormInModal:()=>{!r||i&&!s||(c?u(a.ModalComponents.lgaThankYouViewModal):(u(a.ModalComponents.lgaFormModal),d&&(0,o.fireTrackers)([d])))},handleOpenLeadFormInPage:()=>{!r||i&&!s||d&&(0,o.fireTrackers)([d])}}}},79:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAllWhiteSpaceString=t.getUrlWithoutPixel=t.getReviewPrivacyNoticeStrings=t.getLeadFormLandingPageUrl=t.getFormSubmissionEndpoint=t.getFormFieldsDefaultValues=t.formatPhoneNumber=t.convertQuestionsToFormFields=void 0;var n=r(2963);t.getFormFieldsDefaultValues=e=>{const t={};return e.forEach((e=>{var r;e&&e.fieldId&&(r=void 0!==e.defaultValue?e.defaultValue:"",t[e.fieldId]=r)})),t},t.convertQuestionsToFormFields=(e,t)=>{const r=[];return e&&e.forEach((e=>{(e=t[null==e?void 0:e.type])&&r.push(e)})),r},t.formatPhoneNumber=e=>{let t=e;return t=t.replace(/\D/g,""),t=t.replace(/^(\d{3})(\d)/g,"$1 $2"),t=t.replace(/^(\d{3}) (\d{3})(\d)/,"$1 $2 $3"),t},t.getFormSubmissionEndpoint=(e,t)=>(e=e.toUpperCase(),t=t.toLowerCase(),(t=n.LEADS_MANAGER_ENDPOINTS[e]&&n.LEADS_MANAGER_ENDPOINTS[e][t])?t+n.FORM_SUBMISSION_API:"");const a=e=>{var t=e.lastIndexOf("https://"),r=e.lastIndexOf("http://");return 0<t?e.substring(t):0<r?e.substring(r):e};t.getUrlWithoutPixel=a,t.validateAllWhiteSpaceString=e=>0<e.trim().length,t.getReviewPrivacyNoticeStrings=e=>{if(!e)return[];var t=e.indexOf("{advertiserPrivacyNotice}"),r=e.substring(0,t).trim();let n=e.substring(t);return n=n.replace("{advertiserPrivacyNotice}",""),n=n.replace("{AmazonPrivacyNotice}","").trim(),[r,n]},t.getLeadFormLandingPageUrl=(e,t,r,o,i,s,l)=>(t=n.LEADGEN_HORIZONTE_SERVICE_ENDPOINTS[e]&&n.LEADGEN_HORIZONTE_SERVICE_ENDPOINTS[e][t])&&s?t+`/lead-generation-ads/landing?creativeDecorationId=${r}&creativeDecorationVersion=${o}&impressionSecureId=${i}&landingPageUrl=${encodeURIComponent(a(s))}&token=`+l:""},7225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.translationKeys=t.LegalClauseText=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(7886),i=r(1245),s=r(4828);const l={taxMessage:"tax_message.value"};t.translationKeys=l,t.LegalClauseText=e=>{var t=e.variant,r=e.textVariant,n=e.className;e=(0,s.usePayload)().marketplace;return(t=(0,(0,i.useI18n)().getString)(l[t]))&&"DE"===e?a.default.createElement(o.Text,{"data-testid":"tax-message",variant:r,className:n},t):null}},1823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(7225);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.LegalClauseText,t.default=r},2508:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PricePerUnitText=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(518),i=r(4828),s=r(6167),l=r(7886),u=r(1245);t.PricePerUnitText=e=>{var t=void 0===(c=e.variant)?"caption":c,r=void 0===(d=e.precision)?2:d,n=void 0===(p=e.className)?"":p,c=(m=(f=(0,i.usePayload)()).productDetails).buyBoxPricePerUnit,d=m.buyBoxPrice,p=(e=m.buyingPrice,m.priceAmount),m=f.allow3pSellers,f=f.isRioPricing;const g=(0,u.useI18n)().formatNumber,h=c||{},y=h.unitCountModifier,v=void 0===y?0:y,b=h.displayUnitValue,C=void 0===b?"":b,x=h.displayUnitValueDescription,E=void 0===x?"":x;e=(m?d:e)||null;var S=f?Number(p):null===e||null===(S=e.price)||void 0===S?void 0:S.amount;let _,T="";return c&&S&&1!==v&&0<v&&(_=g(S/v,r),!C||"1"!==(r=C.endsWith(".0")?C.replace(".0",""):C)&&(T+=r),E&&(T+=E)),_&&T?a.default.createElement(l.Text,{"data-testid":"price-per-unit",variant:t,className:(0,o.twMerge)("leading-[15px]",n)},"(",a.default.createElement(s.PriceText,{variant:t,price:_})," "," / "," ",T,")"):null}},4724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(2508);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.PricePerUnitText,t.default=r},3935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuantityDiscountsLabel=void 0;var n=(r=r(7363))&&r.__esModule?r:{default:r};t.QuantityDiscountsLabel=e=>{var t=e.quantityDiscountsPrice,r=e.qdMessage;e=e.showQuantityDiscountsLabel;return t&&r&&e?n.default.createElement("div",{className:"leading-[12px] text-[0.85em]"},t," ",n.default.createElement("span",{className:"text-gray-600"},r)):null}},9981:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(3935);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.QuantityDiscountsLabel,t.default=r},5448:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ratings=void 0;var n=f(r(7363)),a=f(r(4184)),o=r(910),i=r(7886),s=r(1245),l=r(8044),u=r(9718),c=r(2812),d=r(4828),p=r(6475),m=f(r(3421));function f(e){return e&&e.__esModule?e:{default:e}}t.Ratings=e=>{var t,r,f=void 0===(t=e.size)?"medium":t,g=void 0===(S=e.textSize)?"small":S,h=void 0!==(r=e.hasParens)&&r,y=e.className,v=void 0===(_=e.fontColor)?"gray60":_,b=e.fontSize,C=void 0===b?"":b,x=e.showSocialProofingMessage,E=void 0!==x&&x,S=void 0===(t=e.socialProofingTextVariant)?"none":t,_=void 0===(r=e.socialProofingWrapperClass)?"":r;const T=(0,s.useI18n)().formatNumber;if(x=(b=(0,u.useRatings)()).count,t=b.showRatings,e=b.rating,r=(0,l.useA11y)().reviewsCountAriaText,b=(0,d.usePayload)().activeExperiments,!t)return null;let w="small"===f?"xs":"sm";return"large"===g&&(w="body"),x=1<=x?T(x):"",b=b[p.Experiments.PERCRatingsText],n.default.createElement("div",{className:(0,a.default)("flex flex-col",E&&_)},n.default.createElement(o.Stack,{direction:"row",align:"center",wrap:"wrap",className:(0,a.default)("gap-0.5",y)},b?n.default.createElement(i.Text,{"data-testid":"rating",variant:w,className:C,noWrap:!0},e):null,n.default.createElement(c.RatingsStars,{size:f}),x?n.default.createElement(i.Text,{"data-testid":"ratingCount","aria-label":r,variant:w,className:C,color:v,noWrap:!0},h?`(${x})`:x):null),E?n.default.createElement(m.default,{textVariant:S,fontColor:v}):null)}},2812:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RatingsStars=void 0;var n=u(r(7363)),a=r(910),o=u(r(1185)),i=r(8044),s=r(9718),l=r(4828);function u(e){return e&&e.__esModule?e:{default:e}}const c=Array(5).fill(null).map(((e,t)=>t+1));t.RatingsStars=e=>{let t=e.size,r=void 0===t?"medium":t;const u=(0,l.usePayload)().isRTL;var d=(p=(0,s.useRatings)()).rating,p=(e=p.showRatings,(0,i.useA11y)().starRatingAriaText);if(!e)return null;const m=Math.round(2*d)/2;return n.default.createElement(a.Stack,{direction:"row","aria-label":p},c.map((e=>n.default.createElement(n.default.Fragment,{key:"star-"+e},m>=e?n.default.createElement(o.default,{size:r,type:"full",ariaHidden:!0}):null,m>=e-.5&&m<e?n.default.createElement(o.default,{size:r,type:u?"halfInverted":"half",ariaHidden:!0}):null,m<e-.5?n.default.createElement(o.default,{size:r,type:"empty",ariaHidden:!0}):null))))}},7593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(5448);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.Ratings,t.default=r},1891:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RioPrice=void 0;var n=y(r(7363)),a=y(r(4184)),o=r(518),i=y(r(5581)),s=y(r(2632)),l=y(r(6167)),u=r(7886),c=r(4724),d=r(4828),p=y(r(9584)),m=r(5443),f=y(r(1823)),g=r(3723);const h=["hidePrimeLogo","primeLogoSize","freshLogoSize","wholeFoodsLogoSize","className"];function y(e){return e&&e.__esModule?e:{default:e}}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const b=e=>{var t,r=void 0!==(u=e.hidePrimeLogo)&&u,a=void 0===(c=e.primeLogoSize)?"large":c,o=void 0===(t=e.freshLogoSize)?"medium":t,l=void 0===(p=e.wholeFoodsLogoSize)?"small":p,u=void 0===(m=e.className)?"":m,c=function(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),o=0;o<a.length;o++)r=a[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,h),p=(t=(0,d.usePayload)().productDetails).isPrime,m=t.isFreshSupported;e=t.isWholeFoodsSupported,m=t.isFreshEligible&&m,e=t.isWholeFoodsEligible&&e,r=p&&!r&&!m&&!e;return n.default.createElement("div",v({className:u},c),r?n.default.createElement(i.default,{size:a}):null,m?(0,g.showFreshOrStarBustLogo)(o):null,e?n.default.createElement(s.default,{size:l}):null)};t.RioPrice=e=>{var t=void 0===(v=e.primeLogoSize)?"large":v,r=void 0===(C=e.freshLogoSize)?"medium":C,i=void 0===(T=e.wholeFoodsLogoSize)?"small":T,s=void 0!==(x=e.hidePrimeLogo)&&x,g=void 0===(E=e.priceSize)?"mediumPlus":E,h=void 0===(S=e.savingsText)?"":S,y=e.savingsTextClassName,v=void 0!==(_=e.isInline)&&_,C=e.className,x=(T=(0,d.usePayload)().productDetails).price,E=T.formattedFullPrice,S=T.isOmnibusMarket,_=T.strikeThroughPriceLabel,T=(e=(0,m.usePricePerUnit)().isPricePerUnit,x&&e);e=x&&E&&!S,g={mediumPlus:"leading-[18px]",large:"leading-[24px]"}[S=!T&&!e||T&&e?g:"mediumPlus"];return n.default.createElement("div",{"data-testid":"dealprice-rio",className:(0,o.twMerge)(v&&"flex flex-wrap gap-x-0.5",C)},n.default.createElement("div",{className:"flex gap-x-0.5 flex-wrap"},h?n.default.createElement(p.default,{size:S,className:y,isRioPricing:!0},h):null,x?n.default.createElement(l.default,{"data-testid":"price",color:"gray10",price:x,priceSize:S,isRioPricing:!0,className:g}):null,T?n.default.createElement(c.PricePerUnitText,{variant:"sm",className:g}):null,!T&&e?n.default.createElement("div",{"data-testid":"inline-STP",className:(0,a.default)("display-inline-box whitespace-nowrap",g)},_?n.default.createElement(u.Text,{"data-testid":"STP-label",variant:"xs",color:"gray65",className:"mr-0.25"},_):null,n.default.createElement(l.default,{price:E,variant:"xs",color:"gray65",superscriptCurrencySymbol:!1,showCurrency:!1,strike:!0})):null,x?n.default.createElement(f.default,{variant:"taxMessage",textVariant:"sm",className:g}):null,T&&e?null:n.default.createElement(b,{"data-testid":"inline-logo",hidePrimeLogo:s,primeLogoSize:t,freshLogoSize:r,wholeFoodsLogoSize:i,className:"flex"})),T&&e?n.default.createElement("div",{"data-testid":"stacked-STP",className:(0,o.twMerge)("leading-[14px] whitespace-nowrap",v&&g)},_?n.default.createElement(u.Text,{"data-testid":"STP-label",variant:"xs",color:"gray65",className:"mr-0.25"},_):null,n.default.createElement(l.default,{price:E,variant:"xs",color:"gray65",superscriptCurrencySymbol:!1,showCurrency:!1,strike:!0}),x?n.default.createElement(f.default,{variant:"taxMessage",textVariant:"sm"}):null):null,T&&e?n.default.createElement(b,{"data-testid":"stacked-logo",hidePrimeLogo:s,primeLogoSize:t,freshLogoSize:r,wholeFoodsLogoSize:i,className:(0,a.default)({"mt-0.5":!v,flex:v})}):null)}},5343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1891);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},1005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocialProofingMessage=void 0;var n,a=(n=r(7363))&&n.__esModule?n:{default:n},o=r(7886),i=r(9497),s=r(1245),l=r(9718),u=r(4828),c=r(6475);t.SocialProofingMessage=e=>{var t=void 0===(f=e.textVariant)?"none":f,r=e.fontColor,n=void 0===r?"gray60":r,d=(0,l.useRatings)().histogram,p=(0,u.usePayload)(),m=p.marketplace,f=p.locale;e=p.activeExperiments;const g=(0,s.useI18n)().getString;return d?(r=d.fiveStar,p=e[c.Experiments.PERCSocialProofingMessage.FiveStarPercentageOver50],d=e[c.Experiments.PERCSocialProofingMessage.FiveStarPercentageOver75],e=e[c.Experiments.PERCSocialProofingMessage.FiveStarPercentageOver90],e=p&&50<=r||d&&75<=r||e&&90<=r,f=g("fiveStarPercentage").replace("{percent}",(0,i.formatPercentage)(r,m,f)),e?a.default.createElement("div",{className:"mt-0.5"},a.default.createElement(o.Text,{"data-testid":"five-star-percentage-string",variant:t,color:n},f)):null):null}},3421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0;var a=r(1005);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))})),r=a.SocialProofingMessage,t.default=r},7079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LeadGenClickPrototype=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=s(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),a=r(6081),o=r(4828),i=r(2944);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.LeadGenClickPrototype=()=>{(0,i.useTailwindStyles)();const e=(0,o.usePayload)(),t=e.pixelUrl,r=e.urls.clickUrlPrefix,s=l((0,n.useState)(void 0),2),u=s[0],c=s[1],d=l((0,n.useState)([]),2),p=d[0],m=d[1],f=e=>{c((0,a.getEventPixelUrl)({pixelUrl:t,eventType:e})),m((t=>[...t,e]))};return n.default.createElement("div",{className:"bg-red-500 w-full h-full","data-testid":"click-conversion-prototype"},n.default.createElement("div",{className:"w-full mb-3"},n.default.createElement("button",{type:"button",disabled:p.includes(a.EventType.lgaLinkOut),className:"bg-white m-1",onClick:()=>f(a.EventType.lgaLinkOut)},"LGA_LINK_OUT"),n.default.createElement("button",{type:"button",disabled:p.includes(a.EventType.lgaOpenForm),className:"bg-white m-1",onClick:()=>f(a.EventType.lgaOpenForm)},"LGA_OPEN_FORM"),n.default.createElement("button",{type:"button",disabled:p.includes(a.EventType.lgaLead),className:"bg-white m-1",onClick:()=>f(a.EventType.lgaLead)},"LGA_LEAD")),n.default.createElement("a",{target:"_blank",rel:"noreferrer",className:"p-1 m-1 bg-red-900 text-white",href:r+"http://amazon.com/foo"},"Redirect Onsite"),n.default.createElement("a",{target:"_blank",rel:"noreferrer",className:"p-1 m-1 bg-red-900 text-white",href:r+"http://example.com.com"},"Redirect Offsite"),u?n.default.createElement("img",{src:u}):null)}},317:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAppLayout=t.AppLayoutProvider=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=f(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),a=r(4828),o=r(7887),i=r(5670),s=r(2616),l=r(7260),u=r(7570),c=r(2481),d=r(4237),p=r(3544),m=r(1838);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e,t)||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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const y=n.default.createContext({});t.useAppLayout=()=>(0,n.useContext)(y),t.AppLayoutProvider=e=>{var t=e.width,r=e.height,f=e.isExpandableVideoAd,h=void 0!==f&&f,v=e.children,b=(0,n.useRef)(null),C=(0,a.usePayload)(),x=C.identifier,E=C.currentScreen,S=C.isTwitchDarkAd,_=C.isNonEndemicSparkleAd,T=C.customBackgroundColor,w=(0,p.useWindowDimenions)({defaultWidth:t,defaultHeight:r}),P=w.windowHeight,O=w.windowWidth,A=(0,o.useMatchMedia)({serverCurrentScreen:E}).currentScreen;const I=(0,s.useCEM)().logPerformanceEvent,N=g((0,n.useState)(h?i.ExpandableAdStatus.Collapsed:i.ExpandableAdStatus.NotApplicable),2),M=N[0],D=N[1],L=(0,n.useRef)(0);return(0,n.useEffect)((()=>{if("undefined"!=typeof window){const e=()=>{I({eventName:s.EventNames.EXPANDABLE_VIDEO_AD_COLLAPSED_VIA_OUTSIDE_INTERCATION}),D(i.ExpandableAdStatus.Collapsed)};if(M!==i.ExpandableAdStatus.NotApplicable)return I({eventName:s.EventNames.EXPNADABLE_VIDEO_AD_INIT}),window.addEventListener("outerpageclick",e),window.addEventListener("outerpagescroll",e),window.addEventListener("outerpagetap",e),window.addEventListener("outerpageswipe",e),()=>{window.removeEventListener("outerpageclick",e),window.removeEventListener("outerpagescroll",e),window.removeEventListener("outerpagetap",e),window.removeEventListener("outerpageswipe",e)}}}),[]),f=(0,m.hexToRgb)(T),e=_,w=(C=(0,l.useColorThief)({quality:10,count:1,isEnabled:e,mode:"primaryColor"})).rawColors,T=C.isLoading,C=!!f,_=(w=(0,u.useDetectBackgroundBrightness)({isEnabled:C,rawColors:f?[f]:w,opacity:_?.15:void 0})).backgroundBrightness,w=w.primaryColorRGB,(0,c.useAutoDarkModeFromColor)({backgroundBrightness:_,isEnabled:C}),T=(e=(0,d.useCreativeFadeIn)({isEnabled:e&&!("undefined"!=typeof window&&window.Cypress),isReady:!T})).creativeOpacity,e=e.animationClasses,n.default.createElement(y.Provider,{value:{width:t,height:r,clientWidth:O,clientHeight:P,currentScreen:A||E,identifier:x,expandableAdStatus:M,isTwitchDarkAd:S,primaryColor:w,backgroundBrightness:_,setExpandableAdStatus:D,isExpandableVideoAd:h,videoTimePosition:L.current,setVideoTimePosition:e=>{L.current=e}}},n.default.createElement("div",{ref:b,style:{width:"100%",height:"100%",opacity:T},className:e},v))}},9599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAdLink=void 0;var n=r(4828);t.useAdLink=()=>{var e=(f=(0,n.usePayload)()).isPreview,t=(m=f.urls).detailPageUrl,r=m.rawDetailPageUrl,a=m.privacyUrl,o=m.brandPageUrl,i=m.landingPageUrl,s=m.rewardPageUrl,l=m.checkoutPageUrl,u=m.addToCartPageUrl,c=f.is3P,d=f.isMobile,p=f.isNonEndemicAd,m=f.isShowroomCreative,f=f.isProductCollectionCreative;let g=t,h="item-page";return m||f?(g=o||i,h="showroom-page"):p?(g=i,h="landing-page"):s&&(g=s,h="reward-page"),{detailPageUrl:t,rawDetailPageUrl:r,destinationType:h,checkoutPageUrl:l,addToCartPageUrl:u,itemUrl:g,landingPageUrl:i,privacyUrl:a,brandPageUrl:o,isOffsite:c,isMobile:d,isPreview:e,openInNewWindow:!!c||e||p}}},3205:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAutomatedDealBadge=void 0;var n=r(7363),a=r(580),o=r(4828),i=r(4543);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e,t)||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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r){let n=2<arguments.length&&void 0!==r?r:2;if(t<=0)return e.replace(a.TARGET_TIME_PLACEHOLDER,"00:00");const o=t/a.ONE_SECOND_IN_MS%60,i=t/a.ONE_MINUTE_IN_MS%60;return t=[t/a.ONE_HOUR_IN_MS%24,i,o].filter(((e,t,r)=>0<Math.floor(e)||r.length-t<=n)).slice(0,n).map((e=>(""+Math.floor(e)).padStart(2,"0"))).join(":"),e.replace(a.TARGET_TIME_PLACEHOLDER,t)}function c(e){let t=0;return{text:e.map((e=>{var r;return"countdownTimer"in e?(t=new Date(null===(r=e.countdownTimer)||void 0===r?void 0:r.targetTime).getTime(),a.TARGET_TIME_PLACEHOLDER):e.text})).join(""),targetTime:t}}t.useAutomatedDealBadge=e=>{var t,r,l=e.automatedBadgingData,d=e.shortContentThreshold,p=(g=(0,o.usePayload)()).marketplace,m=g.productDetails.isOmnibusMarket,f=g.isRioPricing,g=(e=(h=(0,i.getTimedDeals)({marketplace:p,currentTime:new Date})).primeDayDealEnabled,h.primeBigDealDaysEnabled),h=(p=h.blackFridayDealEnabled,h.cyberMondayDealEnabled);g=void 0!==e&&e||void 0!==g&&g,p=void 0!==p&&p||void 0!==h&&h;if(l){h=l.label,l=l.messaging;var y=void 0===(y=(m&&null!=l&&l.content?{}:c((null==h||null===(y=h.content)||void 0===y?void 0:y.fragments)||[])).text)?"":y;let e=c((null==l||null===(t=l.content)||void 0===t?void 0:t.fragments)||[]),o=e.text,i=e.targetTime;p=m&&!g&&!p,d=d&&o.length>d;var v=(null==l||null===(r=l.shortContent)||void 0===r||null===(v=r.fragments)||void 0===v?void 0:v.length)&&Object.values(l.shortContent.fragments[0])[0];(p||d)&&v&&(v=c(l.shortContent.fragments),o=v.text,i=v.targetTime);const b=s((0,n.useState)(0!==i?u(o,i-Date.now()):o),2),C=b[0],x=b[1],E=(0,n.useRef)(),S=(0,n.useRef)(0),_=e=>{var t=i-Date.now(),r=t>a.ONE_HOUR_IN_MS?a.ONE_MINUTE_IN_MS:a.ONE_SECOND_IN_MS;e-S.current>=r&&(x(u(o,t)),S.current=e),0<t&&(E.current=requestAnimationFrame(_))};return(0,n.useEffect)((()=>(i&&(E.current=requestAnimationFrame(_)),()=>{E.current&&cancelAnimationFrame(E.current)})),[]),{labelText:f?C:y,labelTextColor:"#"+((null==h?void 0:h.color)||""),labelBackgroundColor:"#"+((null==h?void 0:h.backgroundColor)||""),messageText:f?"":C,messageTextColor:"#"+((null==l?void 0:l.color)||""),messageBackgroundColor:"#"+((null==l?void 0:l.backgroundColor)||"")}}}},1838:(e,t)=>{"use strict";let r;var n;Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgb=t.getRGBString=t.getColorBrightness=t.getBackgroundBrightness=t.BackgroundBrightness=void 0,t.BackgroundBrightness=r,(n=r||(t.BackgroundBrightness=r={})).Light="light",n.Dark="dark",t.getBackgroundBrightness=(e,t,n)=>a(e,t,n)<=125?r.Dark:r.Light;const a=(e,t,r)=>.299*e+.587*t+.114*r;t.getColorBrightness=a;const o=e=>{let t;return t=e<0?0:255<e?255:e,t};t.getRGBString=function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1;return`rgb(${o(e)},${o(t)},${o(r)},${n})`},t.hexToRgb=e=>(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:null},9672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleOption=t.resolveFontClassName=t.mergeOptions=t.mergeExperiments=t.isMLDisabledForIdentifier=t.getRatingParams=t.getRandomParams=t.getRandomInclusive=t.getProductTitleParams=t.getPrimeLogoParameters=t.getPriceParams=t.getPercMLExperimentOverride=t.getHeadlineParams=t.getDefaultCreativeParams=t.getCreativeParameterConfig=t.getBackgroundParams=t.checkAndUpdateProductTitleDiff=t.DEFAULT_PERC_EXPERIMENTS=void 0;var n,a=(n=r(8568))&&n.__esModule?n:{default:n},o=r(518),i=r(7058),s=r(6475),l=r(868);const u={PERC_GREY_BACKGROUND:"",PERC_HEADLINE_STYLING:"",PERC_INLINE_BADGING:"",PERC_BEST_SELLER_BADGE:""};t.DEFAULT_PERC_EXPERIMENTS=u;const c=()=>({"price-text":{"currency-style":"","font-color":"","font-size":"","font-style":"","font-weight":""},"prime-logo":{size:""},"product-title":{"font-color":"","font-size":"","font-style":"","font-weight":"","line-height":"",content:""},rating:{"font-color":"","font-size":"","font-style":"","font-weight":""},headline:{"font-style":"","font-weight":"","font-color":"","font-size":""},"perc-experiments":u});t.getDefaultCreativeParams=c;const d={"980x55":{"price-text":{"currency-style":["normal","superscript"],"font-color":["red40","red50","red80","black","gray60","gray70"],"font-size":["","text16","text18","text20","text22","text24"],"font-style":["normal","italic"],"font-weight":["font-light","font-normal","font-bold"]},"prime-logo":{size:[""]},"product-title":{"font-color":[""],"font-size":[""],"font-style":[""],"font-weight":[""],"line-height":[""]},rating:{"font-color":[""],"font-size":[""],"font-style":[""],"font-weight":[""]},headline:{"font-style":["normal","uppercase"],"font-weight":["font-light","font-normal","font-medium","font-bold","font-black"]}},"650x130":{"price-text":{"currency-style":["normal","superscript"],"font-color":["red40","red50","red80","black","gray60","gray70"],"font-size":["","text16","text18","text20","text22","text24"],"font-style":["normal","italic"],"font-weight":["font-light","font-normal","font-bold"]},"prime-logo":{size:[""]},"product-title":{"font-color":[""],"font-size":[""],"font-style":[""],"font-weight":[""],"line-height":[""]},rating:{"font-color":[""],"font-size":[""],"font-style":[""],"font-weight":[""]},headline:{"font-style":["normal","uppercase"],"font-weight":["font-bold","font-black"]}}};t.getPercMLExperimentOverride=e=>({[s.Experiments.MLExperimentOverrides.GreyBrackground]:{"perc-experiments":{PERC_GREY_BACKGROUND:"T1"}},[s.Experiments.MLExperimentOverrides.HeadlineStylingT1]:{"perc-experiments":{PERC_HEADLINE_STYLING:"T1"}},[s.Experiments.MLExperimentOverrides.HeadlineStylingT2]:{"perc-experiments":{PERC_HEADLINE_STYLING:"T2"}},[s.Experiments.MLExperimentOverrides.HeadlineStylingT3]:{"perc-experiments":{PERC_HEADLINE_STYLING:"T3"}}}[e]||{});const p=(e,t)=>{const r=[];return Object.values(e).forEach((e=>{0!==(null==e?void 0:e.length)&&r.push(v(e))})),y(r,t),t};t.mergeExperiments=p,t.getCreativeParameterConfig=(e,t,r)=>{let n=JSON.parse(JSON.stringify(c()));var a=t.setMatchingMlExperiments(r);return r&&r[s.Experiments.Randomization]&&"C"!==r[s.Experiments.Randomization]&&Object.keys(d).includes(e)?n=Object.assign(n,m(e)):(t.mergeCache(n,i.GenericCacheParams.SD_CREATIVE_PARAMETERS),0!==Object.keys(a).length&&p(a,n)),n};const m=e=>({"price-text":{"currency-style":g(e,"price-text","currency-style"),"font-color":g(e,"price-text","font-color"),"font-size":g(e,"price-text","font-size"),"font-style":g(e,"price-text","font-style"),"font-weight":g(e,"price-text","font-weight")},"prime-logo":{size:g(e,"prime-logo","size")},"product-title":{"font-color":g(e,"product-title","font-color"),"font-size":g(e,"product-title","font-size"),"font-style":g(e,"product-title","font-style"),"font-weight":g(e,"product-title","font-weight"),"line-height":g(e,"product-title","line-height")},rating:{"font-color":g(e,"rating","font-color"),"font-size":g(e,"rating","font-size"),"font-style":g(e,"rating","font-style"),"font-weight":g(e,"rating","font-weight")},headline:{"font-weight":g(e,"headline","font-weight"),"font-style":g(e,"headline","font-style")}});t.getRandomParams=m,t.getPrimeLogoParameters=e=>{var t;return{size:null==e||null===(t=e["prime-logo"])||void 0===t?void 0:t.size}};const f=e=>({fontColor:null==e?void 0:e["font-color"],fontSize:null==e?void 0:e["font-size"],fontStyle:null==e?void 0:e["font-style"],fontWeight:null==e?void 0:e["font-weight"]});t.getProductTitleParams=e=>{var t=e["product-title"];return{fontColor:(e=f(t)).fontColor,fontSize:e.fontSize,fontStyle:e.fontStyle,fontWeight:e.fontWeight,lineHeight:null==t?void 0:t["line-height"],titleOverride:null==t?void 0:t.content}},t.checkAndUpdateProductTitleDiff=(e,t)=>{var r,n;let a="";return null!=e&&null!==(r=e["product-title"])&&void 0!==r&&r.content&&(null==e||null===(n=e["product-title"])||void 0===n?void 0:n.originalTitleAtInference)!==t&&(a=e["product-title"].content,e["product-title"].content=""),e["product-title"].impressionTimeProductTitle=t,a},t.getRatingParams=e=>(e=null==e?void 0:e.rating,f(e)),t.getHeadlineParams=e=>(e=null==e?void 0:e.headline,f(e)),t.getPriceParams=e=>{var t;return{currencyStyle:e=null==(t=null==e?void 0:e["price-text"])?void 0:t["currency-style"],fontColor:(t=f(t)).fontColor,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight}},t.getBackgroundParams=e=>{var t;return{backgroundColor:(null==e||null===(t=e.background)||void 0===t?void 0:t.color)||""}};const g=(e,t,r)=>(r=d[e][t][r])[Math.floor(Math.random()*r.length)],h=e=>{var t=Math.random()*e;return 0==t?e:t};t.getRandomInclusive=h;const y=(e,t)=>(e.forEach((e=>{(0,a.default)(t,e.parameters)})),t);t.mergeOptions=y;const v=e=>{const t=[];let r=0;e.forEach((e=>{r+=e.probability,t.push(r)}));var n=h(r);let a=0,o=e.length-1;for(;a<o;){var i=Math.floor((a+o)/2);t[i]<n?a=i+1:o=i}return e[a]};t.sampleOption=v,t.isMLDisabledForIdentifier=e=>{e=e.identifier;return!new Set([l.Identifier.none,l.Identifier.ci,l.Identifier.ciHl,l.Identifier.ciHlLo,l.Identifier.ciLo,l.Identifier.hl,l.Identifier.hlLo,l.Identifier.lo]).has(e)},t.resolveFontClassName=(e,t,r,n)=>t?(0,o.twMerge)(null==e?void 0:e.replace("italic",""),t,r,n):(0,o.twMerge)(e,r,n)},5773:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCustomImage=void 0;var n=r(4828),a=r(1154);t.useCustomImage=e=>{let t=e.sizeType,r=e.imageIndex,o=void 0===r?0:r,i=e.showBorder,s=void 0===i||i;var l=(u=(c=(0,n.usePayload)()).customImageDetail).squareCustomImages,u=(e=u.horizontalCustomImages,u.verticalCustomImages),c=c.productDetails.productTitle;const d={square:l,horizontal:e,vertical:u};u=null===(u={square:["square","horizontal","vertical"],horizontal:["horizontal","square","vertical"],vertical:["vertical","square","horizontal"]}[t])||void 0===u?void 0:u.find((e=>{var t,r,n;return!(null===(t=d[e])||void 0===t||!t[o]||null===(r=d[e])||void 0===r||null===(n=r[o])||void 0===n||!n.url)}));var p=u&&null!==(p=d[u])&&void 0!==p?p[o]:void 0;let m="",f="";return p&&(m=(0,a.buildCustomImageUrl)(p,{showBorder:s}),f=c),{src:m,alt:f}}},3540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDealBadge=void 0;var n,a=(n=r(7298))&&n.__esModule?n:{default:n},o=r(4543),i=r(1245),s=r(4828),l=r(546),u=r(5081);function c(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.useDealBadge=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;const t=(0,i.useI18n)().getString;var r=(v=(0,s.usePayload)()).marketplace,n=v.productDetailsList,c=v.productDetails,p=v.isRioPricing,m=void 0===(b=(C=(null==n?void 0:n[e])||c).discountData)?null:b,f=C.hasPrimeDayDeal,g=C.hasBlackFridayDeal,h=C.hasCyberMondayDeal,y=C.automatedBadgingData,v=(0,l.useDealData)(e).isCoupon,b=void 0!==(c=(n=(0,o.getTimedDeals)({marketplace:r,currentTime:new Date})).primeDayDealEnabled)&&c,C=(e=void 0!==(C=n.primeBigDealDaysEnabled)&&C,c=void 0!==(r=n.blackFridayDealEnabled)&&r,r=void 0!==(C=n.cyberMondayDealEnabled)&&C,n=(0,u.useDiscountDetails)().discountText,(0,a.default)());c=g&&c,r=h&&r;let x,E,S={};return y?{}:(p&&((m||v)&&(E=n),v&&(S.variant="text",S.size="medium",S={variant:"text",size:"medium"})),f?(E=t("prime_exclusive_deal"),b&&(E=t("prime_day_deal")),e&&(E=t("prime_big_deal"))):c?E=t("black_friday_deal"):r?E=t("cyber_monday_deal"):m&&(E=n),(f||c||r)&&(S={color:"red"},x=C?"invisible":"[visibility:inherit]"),{badgeText:E,percBadgeProps:d({className:x},S)})}},546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDealData=void 0;var n=r(951),a=r(4828);t.useDealData=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=(i=(0,a.usePayload)()).marketplace,r=i.productDetailsList,o=i.productDetails,i=(e=void 0!==(r=(i=(null==r?void 0:r[e])||o).isSnsDiscount)&&r,o=i.discountData,r=i.asinHasSizeDimension,!(i.isPmpOrMario||e||(null==o?void 0:o.type)!==n.PROMOTION_TYPE.PERCENT_OFF&&(null==o?void 0:o.type)!==n.PROMOTION_TYPE.AMOUNT_OFF));return{isSnsDiscount:e,isBuyNowAvailable:!(e||i||r),discountData:o,showDealDisclaimer:!("JP"!==t||e||!o),isCoupon:i}}},5081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDiscountDetails=void 0;var n=r(4828),a=r(1245),o=r(9497),i=r(951);t.useDiscountDetails=()=>{var e,t=(d=(0,n.usePayload)()).marketplace,r=d.locale,s=void 0===(e=(p=d.productDetails).discountData)?null:e,l=p.hasPrimeDayDeal,u=p.isSnsDiscount,c=p.fullPrice,d=p.price,p=void 0===(e=p.productSubscribeAndSaveInformation)?{snsMaxDiscountPercent:void 0,snsDiscountPercent:void 0}:e;const m=(0,a.useI18n)().getString;let f="";return(e=(0,o.formatDiscountValue)(s,r,t))&&(u||l)?f=m("save_amount_percent_more").replace("{number,percent}",e):!e||(null==s?void 0:s.type)!==i.PROMOTION_TYPE.PERCENT_OFF&&(null==s?void 0:s.type)!==i.PROMOTION_TYPE.AMOUNT_OFF||(f=m("save_amount_percent").replace("{number,percent}",e)),l=p.snsMaxDiscountPercent,e=p.snsDiscountPercent,{discountText:f,snsImmediateDiscountPercent:p=u&&l?(0,o.formatPercentage)(e,t,r):"",snsLongTermDiscountPercent:l=u&&e?(0,o.formatPercentage)(l,t,r):"",computedDiscountDifferenceAmount:(e=>{var t=e.discountType,r=e.discountValue,n=e.fullPrice,a=e.price,s=e.marketplace;e=e.locale;if(n){let l;return l=t&&r?t===i.PROMOTION_TYPE.PERCENT_OFF?(0,o.formatPriceWithCurrency)((100-r)/100*n,s,e):(0,o.formatPriceWithCurrency)(r,s,e):(0,o.formatPriceWithCurrency)(n-a,s,e),l}})({discountType:null==s?void 0:s.type,discountValue:null==s?void 0:s.value,fullPrice:c,price:Number(d),marketplace:t,locale:r}),computedDiscountDifferencePercent:(e=>{var t=e.discountType,r=e.discountValue,n=e.fullPrice,a=e.marketplace,s=e.locale;e=e.price;if(!n)return"";let l="";return l=t&&r?t===i.PROMOTION_TYPE.AMOUNT_OFF?(0,o.formatPercentage)((100-r)/n*100,a,s):(0,o.formatPercentage)(r,a,s):(0,o.formatPercentage)(Math.round((n-e)/n*100),a,s),l})({discountType:null==s?void 0:s.type,discountValue:null==s?void 0:s.value,fullPrice:c,price:Number(d),marketplace:t,locale:r})}}},3723:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showFreshOrStarBustLogo=void 0;var n=l(r(7363)),a=r(4828),o=r(6475),i=l(r(3455)),s=l(r(4370));function l(e){return e&&e.__esModule?e:{default:e}}t.showFreshOrStarBustLogo=e=>{var t=(r=(0,a.usePayload)()).marketplace,r=r.activeExperiments;return"US"===t&&r[o.Experiments.GroceryStarbust]?n.default.createElement(i.default,{size:e}):n.default.createElement(s.default,{size:e})}},5951:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useGridCustomizations=t.getBasicRows=t.getBasicColumns=t.generateGridConfiguration=t.GRID_BREAKPOINTS=t.COMPONENT_MAP=void 0;var n=L(r(8568)),a=L(r(7961)),o=r(1869),i=r(6311),s=r(8174),l=r(5133),u=r(9957),c=r(9015),d=r(3083),p=r(5320),m=r(3303),f=r(7786),g=r(6496),h=r(6902),y=r(3551),v=r(3238),b=r(6475),C=r(868),x=r(317),E=r(5663),S=r(3540),_=r(4828),T=r(546),w=r(5443),P=r(2944),O=r(5670),A=r(2255),I=r(3263),N=r(7782),M=r(6232),D=r(223);r=r(2797);function L(e){return e&&e.__esModule?e:{default:e}}const B={[C.Components.ProductImage]:o.ProductImage,[C.Components.LogoImage]:i.LogoImage,[C.Components.CustomImage]:s.CustomImage,[C.Components.CTAButton]:p.CTAButton,[C.Components.LeadGenButton]:p.CTAButton,[C.Components.ProductTitle]:u.ProductTitle,[C.Components.Headline]:l.Headline,[C.Components.HeadlineLogo]:c.HeadlineLogo,[C.Components.Flex]:I.Flex,[C.Components.TeaseImages]:d.TeaseImages,[C.Components.BuyBox]:A.BuyBox,[C.Components.HeroComponent]:m.HeroComponent,[C.Components.SponsoredLabel]:g.SponsoredLabel,[C.Components.PriceBadge]:f.PriceBadge,[C.Components.HeadlineCTA]:h.HeadlineCTA,[C.Components.DealPrice]:y.DealPrice,[C.Components.TermsAndConditionsLabel]:N.TermsAndConditionsLabel,[C.Components.InsetCarousel]:M.InsetCarousel,[C.Components.InnerGridComponent]:D.InnerGridComponent,[C.Components.TitleLabel]:r.TitleLabel};t.COMPONENT_MAP=B,M="(min-aspect-ratio: 3/2)",D="(max-aspect-ratio: 7/10)",r="(min-aspect-ratio: 7/10) and (max-aspect-ratio: 3/2)",D={[C.ScreenSizes.BannerXXS]:M,[C.ScreenSizes.BannerXS]:M+" and (min-width: 310px) and (min-height: 50px)",[C.ScreenSizes.BannerSM]:{breakpoint:M+" and (min-width: 310px) and (min-height: 90px)",subBreakpoints:{[C.ScreenSizes.BannerSMNarrow]:"(max-width: 405px)",[C.ScreenSizes.BannerSM]:"(min-width: 406px) and (max-width: 459px)",[C.ScreenSizes.BannerLGNarrow]:"(min-width: 460px)"}},[C.ScreenSizes.BannerMD]:M+" and (min-width: 540px) and (max-height: 100px)",[C.ScreenSizes.BannerLG]:{breakpoint:M+" and (min-width: 560px) and (min-height: 100px)",subBreakpoints:{[C.ScreenSizes.BannerSMNarrow]:"(max-width: 413px)",[C.ScreenSizes.BannerSM]:"(min-width: 414px) and (max-width: 459px)",[C.ScreenSizes.BannerLGNarrow]:"(min-width: 460px) and (max-width: 555px)",[C.ScreenSizes.BannerLG]:"(min-width: 556px)"}},[C.ScreenSizes.BannerXL]:{breakpoint:M+" and (min-width: 950px) and (min-height: 200px)",subBreakpoints:{[C.ScreenSizes.BannerLG]:"(max-height: 229px)",[C.ScreenSizes.BannerXL]:"(min-height: 230px)"}},[C.ScreenSizes.BannerDesktop]:M+" and (min-width: 850px) and (min-height: 50px) and (max-height: 100px)",[C.ScreenSizes.BannerPinpoint]:M+" and (min-width: 250px) and (min-height: 130px) and (max-width: 290px) and (max-height: 170px)",[C.ScreenSizes.RectangleXS]:r,[C.ScreenSizes.RectangleSM]:r+" and (min-width: 245px)",[C.ScreenSizes.RectangleMD]:r+" and (min-width: 280px)",[C.ScreenSizes.RectangleLG]:r+" and (min-width: 350px) and (min-height: 360px)",[C.ScreenSizes.SkyscraperXS]:D,[C.ScreenSizes.SkyscraperMD]:{breakpoint:D+" and (min-width: 0px) and (min-height: 360px)",subBreakpoints:{[C.ScreenSizes.SkyscraperMDShort]:"(min-height: 360px) and (max-height: 450px)",[C.ScreenSizes.SkyscraperMD]:"(min-height: 451px) and (max-height: 640px)",[C.ScreenSizes.SkyscraperMDTall]:"(min-height: 641px)"}},[C.ScreenSizes.SkyscraperLG]:D+" and (min-width: 200px) and (min-height: 360px)"},t.GRID_BREAKPOINTS=D,t.getBasicColumns=e=>t=>t[0].filter((t=>!!t&&!!e[t])).map((t=>e[t])).join(" "),t.getBasicRows=e=>t=>t.filter((t=>t.length&&!!t[0]&&!!e[t[0]])).map((t=>e[t[0]])).join(" "),t.generateGridConfiguration=e=>{let t=e.baseConfiguration,r=e.generateColumns,n=e.generateRows;return{gridTemplateAreas:t,gridTemplateColumns:r(t),gridTemplateRows:n(t)}},t.useGridCustomizations=()=>{var e,t=(de=(0,_.usePayload)()).headline,r=de.isIlmPlacement,o=de.isTwitchDarkAd,i=de.activeExperiments,s=de.isTailSizeCreative,l=de.urls.brandPageUrl,u=de.isShowroomCreative,c=de.isTermsAndConditions,d=de.customImageDetail,p=de.brandLogoUrl,m=de.locale,f=de.marketplace,g=de.is3P,h=de.isZoetropeDynamicSlot,y=de.isPreview,A=de.slotName,I=(ue=de.productDetails).isFreshSupported,N=ue.isPrime,M=ue.isWholeFoodsSupported,D=ue.hasPrimeDayDeal,L=ue.isFreshEligible,R=ue.isWholeFoodsEligible,j=ue.showEnergyEfficiency,k=ue.automatedBadgingData,F=ue.isClimatePledgeFriendly,z=ue.isPmpOrMario,Z=ue.formattedFullPrice,G=ue.price,W=ue.isOmnibusMarket,U=void 0===(ce=de.productDetailsList)?[]:ce,V=de.isRioPricing;const H=(0,x.useAppLayout)(),Y=H.identifier,q=H.currentScreen,X=H.width,Q=H.height,J=H.expandableAdStatus,K=H.clientHeight,$=H.backgroundBrightness,ee=H.clientWidth,te=H.primaryColor,re=void 0===te?"transparent":te;var ne=!!(0,E.useSavingsText)(),ae=(0,S.useDealBadge)().badgeText,oe=(pe=(0,T.useDealData)()).isSnsDiscount,ie=pe.isCoupon,se=(0,w.usePricePerUnit)().isPricePerUnit,le=i[b.Experiments.TextOnlyCTA.TextCTA]||i[b.Experiments.TextOnlyCTA.TextWithCaretCTA]||i[b.Experiments.TextOnlyCTA.HideTextCTA],ue=R&&M,ce=!(!G||!Z||W),de=se||j||ue||q===C.ScreenSizes.BannerXXS||q===C.ScreenSizes.BannerXS&&s||q===C.ScreenSizes.BannerXS&&V&&(se||ce),pe=i[b.Experiments.TextOnlyCTAButton.TextCTAButton]||i[b.Experiments.TextOnlyCTAButton.TextWithCaretCTAButton];G=(i[b.Experiments.DesktopHQPVideo.VideoOnRightAndPause]||i[b.Experiments.DesktopHQPVideo.VideoOnLeftAndPause])&&"hero-quick-promo"===A,Z=i[b.Experiments.DetailIlmExpand.IlmExpand],W=i[b.Experiments.DetailIlmExpand.IlmExpandAndDecreaseHeight],A=i[b.Experiments.MobileIlmExpand],U={identifier:Y,isZoetropeDynamicSlot:h,activeExperiments:i,customImageDetail:d,isVerticalImageSupported:!(null==d||null===(e=d.verticalCustomImages)||void 0===e||!e.length),clientHeight:K,isPreview:y,isTwitchDarkAd:o,backgroundBrightness:$,primaryColorRGB:re,customBackgroundColorRGB:re&&"transparent"!==re?re:"rgba(15, 17, 17, 0.04)",clientWidth:ee,hasBrandLandingPage:!!l,width:X,height:Q,isSubscribeAndSave:oe,isCoupon:ie,isIlmPlacement:r,locale:m,marketplace:f,headline:t,hasSavingsText:ne,hasDealBadge:!!k||!!ae,isAutomatedDealBadge:!!k,currentScreen:q,hasPrimeDayDeal:D,isShowroomCreative:u,isPricePerUnit:se,showEnergyEfficiency:j,hasLogo:!!(R&&M||L&&I||N),isTextCTAExperiment:le,showFreshLogo:L&&I,showWholeFoodsLogo:ue,isBusyBuybox:de,isTextCTAButtonExperiment:pe,is3P:g,isTailSizeCreative:s,expandableAdStatus:J,isTermsAndConditions:c,showClimatePledgeFriendly:F,isPmpOrMario:z,isVideoAutoPlayDisabled:G,hasCustomImage:d.hasCustomImage,isBrandLogoUrlPresent:!!p,isRioPricing:V,showStrikeThroughPrice:ce,productDetailsList:U,isIlmPushdownExpandT1:Z,isIlmPushdownExpandT2:W,isMobileIlmPushdownExpand:A},o=o?C.CreativeExperience.Twitch:C.CreativeExperience.Default;if((0,O.useSetExpandableAdSlotSize)({width:X,height:Q,clientWidth:ee,expandableAdStatus:J,isIlmPushdownExpandT1:Z,isIlmPushdownExpandT2:W,isMobileIlmPushdownExpand:A}),!v.gridConfigurationsGenerators[o][q])return null;let me;if(J===O.ExpandableAdStatus.Expanded){let e=null===(A=(0,O.getExpandedViewInfo)(X,Q))||void 0===A?void 0:A.layout;W&&980===X&&55===Q&&(e=C.ScreenSizes.BannerLG),me=v.gridConfigurationsGenerators[o][e]}else me="zoetrope"===Y?q.includes("banner")?v.gridConfigurationsGenerators[o]["banner-sm"]:v.gridConfigurationsGenerators[o]["rectangle-sm"]:J!==O.ExpandableAdStatus.NotApplicable||!Y.includes("hero")||q!==C.ScreenSizes.BannerSM&&q!==C.ScreenSizes.BannerSMNarrow?v.gridConfigurationsGenerators[o][q]:v.gridConfigurationsGenerators[o]["rectangle-sm"];Y.includes("hero")&&320===X&&480===Q&&(me=v.gridConfigurationsGenerators[o]["skyscraper-interstitial"]),(0,P.resizeSafeFrame)(X,Q,q,Y),o=me.global&&me.global(U);let fe=Y;me.identifierTransformer&&(fe=me.identifierTransformer(Y));const ge=(null==o?void 0:o.componentProps)||{},he=(U=me[fe](U)).slides||[{gridTemplateAreas:U.gridTemplateAreas,componentProps:U.componentProps,gridTemplateColumns:U.gridTemplateColumns,gridTemplateRows:U.gridTemplateRows}];return{componentMap:B,componentProps:1<he.length?U.componentProps:void 0,slides:he.map((e=>{let t=e.gridTemplateAreas,r=e.componentProps,o=void 0===r?{}:r,i=e.gridTemplateColumns,s=e.gridTemplateRows;var l=(0,n.default)({},ge,o);e=null==t?void 0:t.map((e=>`'${e.filter((e=>!!e)).join(" ")}'`)).join(" ");return{regions:(0,a.default)(t),gridStyles:{gridTemplateAreas:e,gridTemplateColumns:i,gridTemplateRows:s},componentProps:l}}))}}},3645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useImageAnimation=void 0;var n=r(7363),a=r(4059);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const s={scrollZoom:{initialClass:"image-zoom-animation",endClass:"image-zoom-animation image-zoom-animation-end"},scrollShine:{initialClass:"image-shine-animation",endClass:"image-shine-animation image-shine-animation-end"}};t.useImageAnimation=e=>{let t=e.animationType,r=e.positionThreshold,i=void 0===r?.75:r,l=e.isImageAnimationEnabled,u=void 0===l||l;var c=(0,n.useRef)(null);const d=(0,a.usePositionTracking)({layoutRef:c}).positionOnScreen,p=u?t&&s[t]:void 0,m=o((0,n.useState)(null!==(e=null==p?void 0:p.initialClass)&&void 0!==e?e:""),2),f=m[0],g=m[1];return(0,n.useEffect)((()=>{p&&g(d<=i?p.endClass:p.initialClass)}),[d,p,g]),{layoutRef:c,animationClass:f}}},5670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSetExpandableAdSlotSize=t.useExpandableAdStatusTransition=t.getExpandedViewInfo=t.getExpandedViewImageDimension=t.getAddonComponentStaticDimensions=t.expandAdPlacementSlot=t.adjustExpandedSlotHeightForAddonComponents=t.addonComponentHeight=t.ExpandableAdStatus=t.ExpandBehavior=t.AddonComponent=void 0;var n=r(7363),a=r(868),o=r(2616),i=r(1353),s=r(317);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}let c,d,p;t.ExpandableAdStatus=c,(r=c||(t.ExpandableAdStatus=c={}))[r.Collapsed=0]="Collapsed",r[r.Expanded=1]="Expanded",r[r.NotApplicable=2]="NotApplicable",t.ExpandBehavior=d,(r=d||(t.ExpandBehavior=d={}))[r.PushDownContent=0]="PushDownContent",r[r.OverlapContent=1]="OverlapContent",t.AddonComponent=p,(r=p||(t.AddonComponent=p={}))[r.CloseButtonBar=0]="CloseButtonBar";const m={[p.CloseButtonBar]:30};t.addonComponentHeight=m;const f={"320x50":{width:300,height:250,layout:a.ScreenSizes.RectangleSM,expandBehavior:d.OverlapContent,addonComponents:[p.CloseButtonBar]},"980x55":{width:980,height:250,expandedSafeFrameWidth:"100%",layout:a.ScreenSizes.BannerXL,expandBehavior:d.OverlapContent,addonComponents:[p.CloseButtonBar]},"414x125":{width:414,height:283,layout:a.ScreenSizes.MobileHQP,expandBehavior:d.PushDownContent,addonComponents:[p.CloseButtonBar]}},g=(e,t)=>f[e+"x"+t];t.getExpandedViewInfo=g,t.getExpandedViewImageDimension=e=>{var t=e.width,r=e.height;return{width:(r=e.expandableAdStatus===c.Expanded&&g(t,r)||{}).width,height:r.height}};const h=()=>{const e=(0,s.useAppLayout)(),t=e.expandableAdStatus,r=e.setExpandableAdStatus,a=(0,o.useCEM)().logPerformanceEvent,i=l((0,n.useState)(""),2),u=i[0],d=i[1];return(0,n.useEffect)((()=>{t===c.Expanded?d("fade-in-expanded"):t===c.Collapsed&&d("fade-in-collapsed")}),[t]),{expandCreativeView:()=>{t===c.Collapsed&&(r(c.Expanded),a({eventName:o.EventNames.EXPANDABLE_VIDEO_AD_EXPANDED}))},resetCreativeView:()=>{t===c.Expanded&&(r(c.Collapsed),a({eventName:o.EventNames.EXPANDABLE_VIDEO_AD_COLLAPSED}))},expandableAdStatusTransitionClass:u}};t.useExpandableAdStatusTransition=h,t.useSetExpandableAdSlotSize=e=>{let t=e.width,r=e.height,a=e.clientWidth,o=e.expandableAdStatus,s=e.isIlmPushdownExpandT1,l=void 0!==s&&s,u=e.isIlmPushdownExpandT2,d=void 0!==u&&u,p=e.isMobileIlmPushdownExpand,m=void 0!==p&&p;const f=h().resetCreativeView,g=(0,i.useSF)().SFApi;(0,n.useEffect)((()=>{v(t,r,o,g,l,d,m)}),[t,r,o,g,l,d,m]),(0,n.useEffect)((()=>{320===t&&50===r&&550<a&&o===c.Expanded&&(f(),null!=g&&g.resetSlotSize())}),[t,r,a,g,o])};const y=e=>{const t={staticHeight:0,staticWidth:0};return e&&0!==e.length&&e.forEach((e=>{t.staticHeight+=m[e]})),t};t.getAddonComponentStaticDimensions=y,t.adjustExpandedSlotHeightForAddonComponents=(e,t)=>e+y(t).staticHeight;const v=(e,t,r,n,a,o,i)=>{var s,l,u,p=g(e,t);p&&r===c.Expanded&&(u=p.width,s=p.height,l=p.expandBehavior,r=p.addonComponents,r={width:p.expandedSafeFrameWidth||u+"px",height:(u=980===e&&55===t)&&o?"170px":s+"px",staticHeight:(r=y(r).staticHeight)?r+"px":void 0},u&&(a||o)||320===e&&50===t&&i||l!==d.OverlapContent?n.expandAdSlot(r):n.expandAdSlotWithOverlap(r))};t.expandAdPlacementSlot=v},4059:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePositionTracking=void 0;var n=r(7363),a=(r=r(8245))&&r.__esModule?r:{default:r};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.usePositionTracking=e=>{let t=e.layoutRef;const r=o((0,n.useState)(0),2),i=r[0],s=r[1],l=o((0,n.useState)(!1),2),u=l[0],c=l[1],d=()=>{!u&&t&&((0,a.default)(t.current,window,(e=>{s(e)}),(()=>{s(0)})),c(!0))};return(0,n.useEffect)((()=>{window.addEventListener("resize",d),d();let e=5;const t=setInterval((()=>{d(),--e,e<=0&&clearInterval(t)}),300);return()=>{window.removeEventListener("resize",d)}}),[d]),{positionOnScreen:i}}},5443:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePricePerUnit=void 0;var n=r(4828),a=r(1245);t.usePricePerUnit=()=>{var e=(0,n.usePayload)().productDetails.buyBoxPricePerUnit,t=(0,a.useI18n)().isPricePerUnitSupported,r=(o=e||{}).unitCountModifier,o=(e=o.displayUnitValue,o.displayUnitValueDescription);return{isPricePerUnit:t&&1<(void 0===r?0:r)&&(!(void 0===e||!e)||!(void 0===o||!o))}}},8403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useQuantityDiscountsLabel=void 0;var n=r(1245),a=r(4828),o=r(9497);const i=new Set(["160x600","245x250","300x250","650x130","728x90","970x250","414x125"]);t.useQuantityDiscountsLabel=(e,t)=>{var r=(0,a.usePayload)(),s=r.marketplace,l=r.locale,u=r.modelData,c=r.productDetails,d=c.quantityDiscounts,p=c.isCustomerB2B;const m=(0,n.useI18n)().getString;let f;return r=u.height,u=414===(c=u.width)&&125===r,d&&d.price&&d.price.amount&&(f=(0,o.formatPriceWithCurrency)(d.price.amount,s,l)),{quantityDiscountsPrice:f,qdMessage:l=m("quantity_discount_badge_medium"),showQuantityDiscountsLabel:t=p&&i.has(c+"x"+r)&&"string"==typeof f&&!e&&(!u||!t)}}},9718:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRatings=t.MAX_STARS=void 0;var n=r(4828);t.MAX_STARS=5,t.useRatings=function(){var e,t,r,a=void 0===(e=(r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).hideBelowRating)?3.25:e,o=void 0===(t=r.hideBelowCount)?15:t;return{rating:t=void 0===(r=(e=(0,n.usePayload)().productDetails.customerReviewSummary||{}).rating)?0:r,count:r=void 0===(r=e.count)?0:r,histogram:e.histogram,showRatings:a<=t&&o<=r}}},5663:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSavingsText=void 0;var n=r(4828),a=r(1245),o=r(546);t.useSavingsText=()=>{var e,t,r=(d=(p=(0,n.usePayload)()).productDetails).offer,i=d.isOmnibusMarket,s=d.automatedBadgingData,l=d.isPmpOrMario,u=d.isSnsDiscount,c=p.isRioPricing,d=(0,a.useI18n)().percentagePlacement,p=(0,o.useDealData)().isCoupon;if(!(i||!c&&s||(u||p)&&!l)){var m=null==r||null===(e=r.prices)||void 0===e||null===(t=e.mainPrice)||void 0===t||null===(m=t.savings)||void 0===m?void 0:m.percentageDisplayString;if(m){let e="-";return e="BEFORE"===d?""+m+e:""+e+m,e}}}},2481:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAutoDarkModeFromColor=void 0;var n=r(7363),a=r(1838);t.useAutoDarkModeFromColor=e=>{let t=e.isEnabled,r=e.backgroundBrightness;(0,n.useEffect)((()=>{const e=document.querySelector("html");e&&t&&(r===a.BackgroundBrightness.Dark?(e.classList.add("tw"),e.classList.add("dark")):(e.classList.remove("tw"),e.classList.remove("dark")))}),[r])}},4237:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCreativeFadeIn=void 0,t.useCreativeFadeIn=e=>{var t=e.isReady;return{creativeOpacity:(e=e.isEnabled)?0:1,animationClasses:e&&t?"fade-in":""}}},7570:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDetectBackgroundBrightness=void 0;var n=r(7363),a=r(1838);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.useDetectBackgroundBrightness=e=>{let t=e.rawColors,r=e.isEnabled,i=e.opacity,s=void 0===i?1:i;const l=o((0,n.useState)(a.BackgroundBrightness.Light),2),u=l[0],c=l[1];return(0,n.useEffect)((()=>{var e,n,o;t.length&&r&&(e=t[0][0],n=t[0][1],o=t[0][2],(o=(0,a.getBackgroundBrightness)(e,n,o))!==u&&c(o))}),[t]),{backgroundBrightness:u,primaryColorRGB:null!=t&&t.length?(0,a.getRGBString)(t[0][0],t[0][1],t[0][2],s):void 0}}},7887:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useMatchMedia=void 0;var n=r(7363),a=r(5951);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.useMatchMedia=e=>{e=e.serverCurrentScreen;const t=o((0,n.useState)(),2),r=t[0],i=t[1],s=a.GRID_BREAKPOINTS[e]&&"object"==typeof a.GRID_BREAKPOINTS[e]?a.GRID_BREAKPOINTS[e].subBreakpoints:{[e]:!0};return(0,n.useEffect)((()=>{const e=[];if(s)return Object.keys(s).forEach((t=>{var r=s[t];const n=window.matchMedia(r);n.matches&&i(t),r=e=>{e.matches&&i(t)},n.addEventListener?n.addEventListener("change",r):n.addListener&&n.addListener(r),e.push({eventHandler:r,mediaListener:n})})),()=>{e.forEach((e=>{let t=e.mediaListener,r=e.eventHandler;t.removeEventListener?t.removeEventListener("change",r):t.removeListener&&t.removeListener(r)}))}}),[i]),{currentScreen:r}}},6431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useModalOpen=t.shouldOpenModalHelper=void 0;var n=r(4828),a=r(8872),o=r(6655),i=r(8335),s=r(9770),l=r(2616);const u=(e,t,r,n)=>n?!t:r||e;t.shouldOpenModalHelper=u,t.useModalOpen=e=>{let t=e.triggerType,r=void 0===t?"adLink":t;const c=(0,o.useModal)(),d=c.isModalTrigger,p=c.openModal,m=(0,n.usePayload)(),f=m.isLeadGenCreative,g=m.isShoppableModalEnabled,h=m.openLeadFormInPage,y=(0,a.useLeadFormOpen)().handleOpenLeadFormInModal,v=(0,i.useShoppableModal)(),b=v.handleShoppableModalOpen,C=v.isShoppableModalView,x=u(d,h,g&&!C,f);return{shouldOpenModal:x,handleModalOpen:()=>{x&&(d?null!=p&&p(null):f?y():g&&b(),(0,s.cemLoggerClickEventCallback)({eventName:l.CEM_LOGGER_METRICS.EVENT_NAMES.MODAL_TRIGGER_SHOWN,componentName:r}))}}}},3544:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useWindowDimenions=void 0;var n=r(7363);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.useWindowDimenions=e=>{var t=e.defaultWidth;e=e.defaultHeight;const r=a((0,n.useState)(t),2),o=r[0],i=r[1],s=a((0,n.useState)(e),2),l=s[0],u=s[1];return(0,n.useEffect)((()=>{i(window.innerWidth),u(window.innerHeight);const e=()=>{u(window.innerHeight),i(window.innerWidth)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[i,u]),{windowWidth:o,windowHeight:l}}},2944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTailwindStyles=t.resizeSafeFrame=t.escapeHtmlTag=t.buildDetailPageUrl=void 0;var n=f(r(4591)),a=f(r(2054)),o=f(r(4169)),i=f(r(8249)),s=f(r(4977)),l=r(8801),u=r(317),c=r(868),d=r(1353),p=r(6475),m=r(4828);function f(e){return e&&e.__esModule?e:{default:e}}t.useTailwindStyles=()=>{var e=(0,m.usePayload)().activeExperiments,t=(r=(0,u.useAppLayout)()).width,r=r.height;r=e[p.Experiments.TTILatencyExperiment]||l.CDN_CSS_DEFAULT_SIZES.has(t+"x"+r)?{_getCss:a.default}:s.default;(0,i.default)(s.default&&s.default._getCss?r:{_getCss:a.default})},t.escapeHtmlTag=e=>/<[a-z][\s\S]*>/i.test(e)?(0,o.default)(e):e,t.resizeSafeFrame=(e,t,r,n)=>{var a=(o=650===e&&130===t)&&n.includes("hero"),o=(e=o&&"product-collection-video"===n,t=r===c.ScreenSizes.BannerLG,r===c.ScreenSizes.BannerSM);n=r===c.ScreenSizes.BannerSMNarrow,r=r===c.ScreenSizes.BannerLGNarrow;const i=(0,d.useSF)().SFApi;a&&(t||r?null!=i&&i.changeSize("100%","169px"):(o||n)&&null!=i&&i.changeSize("300px","250px")),e&&(t?null!=i&&i.changeSize("100%","169px"):(o||n||r)&&null!=i&&i.changeSize("300px","250px"))},t.buildDetailPageUrl=(e,t)=>(e=n.default[e].domain)?`https://www.${e}/dp/`+t:null},4598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LazyShoppableModal=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=o(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var i;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((i=a?Object.getOwnPropertyDescriptor(e,r):null)&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),a=r(6010);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}t.LazyShoppableModal=()=>n.default.createElement(n.Suspense,{fallback:n.default.createElement(a.Loading,null)},n.default.createElement((0,n.lazy)((()=>Promise.all([r.e(101),r.e(944)]).then(r.bind(r,5573)))),null))},2585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useButtonVariant=t.useButtonData=void 0;var n=r(7270),a=r(8335),o=r(9599),i=r(6475),s=r(1245),l=r(4828);t.useButtonData=e=>{var t=e.destinationType,r=(E=(0,l.usePayload)()).activeExperiments,u=E.isTwitchModal,c=(x=E.productDetails).isDigitalProductOnMobile,d=x.quantityDiscounts,p=E.isShoppableModalEnabled,m=E.isLeadGenCreative,f=E.isNonEndemicSparkleAd,g=E.isProductCollectionCreative,h=E.brandName;const y=(0,s.useI18n)().getString;var v=(0,n.useMobileDataInterface)({isEnabled:u}).isModalTrigger,b=(0,a.useShoppableModal)().isShoppableModalView,C=(S=(0,o.useAdLink)()).itemUrl,x=(e=S.brandPageUrl,S.landingPageUrl),E=S.checkoutPageUrl,S=(u=S.addToCartPageUrl,S.destinationType);d=d&&d.price&&d.price.amount,S=t||S;let _="",T=C;return v||p&&!b?(_=y("shop_now"),T="#"):"landing-page"===S&&x?(_=y(f?"visit_page":"learn_more"),T=x):"store-page"===S&&e?(_=g?y("shopBrand").replace("{brandName}",h)||y("shop_store"):y("shopTheStore"),T=e):"showroom-page"===S&&(x||e)?(_=y("shop_store"),T=e||x):"checkout-page"===S?(_=y("buy_now"),T=E):"add-to-cart"===S?(_=y("add_to_cart"),T=u):g&&(x||e)?(_=y("shopBrand").replace("{brandName}",h)||y("shop_store"),T=e||x):_=y("shop_now"),{buttonLabel:_,buttonHref:T,isButtonHidden:m=c||r[i.Experiments.TextOnlyCTA.HideTextCTA]||d||v&&m}},t.useButtonVariant=e=>{var t=e.baseVariant;e=(0,l.usePayload)().activeExperiments;let r=t||"pillSecondary";return t=r,new Set(["primary","pillSecondary"]).has(t)&&((e[i.Experiments.TextOnlyCTA.TextCTA]||e[i.Experiments.TextOnlyCTAButton.TextCTAButton])&&(r="textOnlyCTA"),(e[i.Experiments.TextOnlyCTA.TextWithCaretCTA]||e[i.Experiments.TextOnlyCTAButton.TextWithCaretCTAButton])&&(r="textWithCaretCTA")),{variant:r}}},5550:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageShape=void 0,t.ImageShape=void 0,t.ImageShape={Horizontal:"horizontalImages",Vertical:"verticalImages",Square:"squareImages"}},170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cremClassName=void 0,t.cremClassName="mrc-btr-creative"},1154:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildCustomImageUrl=void 0;var n=(r=r(2325))&&r.__esModule?r:{default:r};t.buildCustomImageUrl=(e,t)=>{var r=t.enableBlur,a=t.showBorder;t=e.croppingCoordinates,e=e.url,r=void 0!==r&&r?99:0,a=void 0!==a&&a?2:0;return new n.default(e).autocrop(!1).crop(null==t?void 0:t.top,null==t?void 0:t.left,null==t?void 0:t.width,null==t?void 0:t.height).blur(r).border(a,255,255,255).build()}},9592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getExperimentLocalOverrides=t.experimentConfig=void 0,r=r(1279),t.getExperimentLocalOverrides=()=>({}),r={PERC_RANDOMIZATION:{treatments:{T1:{id:r.Experiments.Randomization}}},PERC_ML_EXPERIMENT_OVERRIDE:{treatments:{T1:{id:r.Experiments.MLExperimentOverrides.GreyBrackground},T2:{id:r.Experiments.MLExperimentOverrides.HeadlineStylingT1},T3:{id:r.Experiments.MLExperimentOverrides.HeadlineStylingT2},T4:{id:r.Experiments.MLExperimentOverrides.HeadlineStylingT3}}},APE_ADPT_NON_ENDEMIC_CREATIVE_UPDATES_764932:{treatments:{T1:{id:r.Experiments.NonEndemicInnovation}}},APE_ADPT_SHOWROOM_CREATIVE_UPDATES_764902:{treatments:{T1:{id:r.Experiments.ShowroomInnovation}}},PERC_LEAD_GEN_ADS_DEV_DEMO:{treatments:{T1:{id:r.Experiments.LeadGenPrototype}}},PERC_TWITCH_MODAL:{treatments:{T1:{id:r.Experiments.TwitchModal}}},APM_STORES_JPS_JRS_CREATIVE_SD_991003:{shouldPassToJavelinEnvelope:!0,treatments:{T1:{id:r.Experiments.TTILatencyExperiment}}},PERC_TEXT_CTA_BUTTON:{treatments:{T1:{id:r.Experiments.TextOnlyCTA.TextCTA},T2:{id:r.Experiments.TextOnlyCTA.TextWithCaretCTA},T3:{id:r.Experiments.TextOnlyCTA.HideTextCTA}}},PERC_THICK_BORDER_675328:{treatments:{T1:{id:r.Experiments.ThickBorder.StaticGradient},T2:{id:r.Experiments.ThickBorder.AnimateOnceOnLoad},T3:{id:r.Experiments.ThickBorder.AnimateOnlyOnHover},T4:{id:r.Experiments.ThickBorder.ThinBorderStaticGradient},T5:{id:r.Experiments.ThickBorder.ThinBorderAnimateOnceOnLoad},T6:{id:r.Experiments.ThickBorder.ThinBorderAnimateOnlyOnHover}}},PERC_TEXT_CTA_NO_CTA_CREATIVES:{treatments:{T1:{id:r.Experiments.TextOnlyCTAButton.TextCTAButton},T2:{id:r.Experiments.TextOnlyCTAButton.TextWithCaretCTAButton}}},PERC_VIDEO_CLOSED_CAPTION:{treatments:{T1:{id:r.Experiments.EnableVideoClosedCaption}}},PERC_VIDEO_DEFAULT_LOW_RES:{treatments:{T1:{id:r.Experiments.LowResDefaultVideo}}},PERC_AUTOMATED_BADGING_P0:{treatments:{T1:{id:r.Experiments.EnableAutomatedBadging}}},PERC_TWITCH_DARK_ADS_M2:{treatments:{T1:{id:r.Experiments.TwitchDarkAdsM2.DarkAdsCircleNoCTA},T2:{id:r.Experiments.TwitchDarkAdsM2.DarkAdsArrowNoCTA},T3:{id:r.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA},T4:{id:r.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA}}},SHOPPABLE_ADS_FOR_APS_MOBILE:{treatments:{T1:{id:r.Experiments.ApsMobileShoppableModal}}},PERC_GREY_BACKGROUND:{treatments:{T1:{id:r.Experiments.PERCProductImageGreyBackground}}},APE_ADPT_ZOETROPE_HQP_538108_835211:{treatments:{T1:{id:r.Experiments.EnableZoetropeMultiProductImagesWithNoCustomImage}}},APE_ADPT_ZOETROPE_HQP_538108_857376:{treatments:{T1:{id:r.Experiments.EnableZoetropeMultiProductImages}}},PERC_HEADLINE_STYLING:{treatments:{T1:{id:r.Experiments.HeadlineStyling.LightFont},T2:{id:r.Experiments.HeadlineStyling.AllCaps},T3:{id:r.Experiments.HeadlineStyling.AllCapsWithLightFont}}},APE_ADPT_PERC_CUSTOM_IMAGE_722876:{treatments:{T1:{id:r.Experiments.PercIgnoreLifestyleImage}}},APE_ADPT_PERC_CUSTOM_IMAGE_CACHE_921679:{treatments:{T1:{id:r.Experiments.PercOverrideLifestyleImageFromCache}}},APE_ADPT_759279:{treatments:{T1:{id:r.Experiments.PercIdentifier}}},PERC_PAA_SCRIPT_ENABLED:{treatments:{T1:{id:r.Experiments.PAAScriptEnabled}}},APE_ADPT_SD_OLV_654966:{treatments:{T1:{id:r.Experiments.DesktopHQPVideo.VideoOnRight},T2:{id:r.Experiments.DesktopHQPVideo.VideoOnLeftAndPause},T3:{id:r.Experiments.DesktopHQPVideo.VideoOnRightAndPause}}},APE_ADPT_OMIT_VERTICAL_IMAGES_878545:{treatments:{T1:{id:r.Experiments.OmitVerticalImages}}},PERC_RATINGS_TEXT_904342:{treatments:{T1:{id:r.Experiments.PERCRatingsText}}},CURIE_LGA_APS_MOBILE_REDIRECT_TO_LANDING_PAGE:{treatments:{T1:{id:r.Experiments.CurieLgaAPSMobileRedirectToLandingPage}}},WWGS_SPONSORED_DISPLAY_STARBUST_CHANGE_946704:{treatments:{T1:{id:r.Experiments.GroceryStarbust}}},APE_ADPT_CURIE_ZOETROPE_968646:{treatments:{T1:{id:r.Experiments.NonEndemicZoetrope}}},PERC_SOCIAL_PROOFING_968639:{treatments:{T1:{id:r.Experiments.PERCSocialProofingMessage.FiveStarPercentageOver50},T2:{id:r.Experiments.PERCSocialProofingMessage.FiveStarPercentageOver75},T3:{id:r.Experiments.PERCSocialProofingMessage.FiveStarPercentageOver90}}},ADPT_ILM_EXPAND_981564:{treatments:{T1:{id:r.Experiments.DetailIlmExpand.IlmExpand},T2:{id:r.Experiments.DetailIlmExpand.IlmExpandAndDecreaseHeight}}},ADPT_ILM_MOBILE_EXPAND_987365:{treatments:{T1:{id:r.Experiments.MobileIlmExpand}}},PERC_DEEP_LINK:{treatments:{T1:{id:r.Experiments.PercDeepLink}}}},t.experimentConfig=r},1279:(e,t)=>{"use strict";function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.Experiments=t.CONTROL=void 0,t.CONTROL="C";class n{}r(t.Experiments=n,"TwitchModal","TwitchModal"),r(n,"Randomization","PERC_RANDOMIZATION"),r(n,"TTILatencyExperiment","TTILatencyExperiment"),r(n,"LeadGenPrototype","PERC_LEAD_GEN_ADS_DEV_DEMO"),r(n,"PERCProductImageGreyBackground","PERCProductImageGreyBackground"),r(n,"PERCShortenTitlePrefix","PERC_SHORT_PRODUCT_TITLES"),r(n,"PercIgnoreLifestyleImage","APE_ADPT_PERC_CUSTOM_IMAGE_722876"),r(n,"PercOverrideLifestyleImageFromCache","PercOverrideLifestyleImageFromCache"),r(n,"PercIdentifier","APE_ADPT_759279"),r(n,"ShowroomInnovation","ShowroomInnovation"),r(n,"PAAScriptEnabled","PAAScriptEnabled"),r(n,"NonEndemicInnovation","NonEndemicInnovation"),r(n,"PERCRatingsText","PERC_RATINGS_TEXT_904342"),r(n,"CurieLgaAPSMobileRedirectToLandingPage","CURIE_LGA_APS_MOBILE_REDIRECT_TO_LANDING_PAGE"),r(n,"GroceryStarbust","WWGS_SPONSORED_DISPLAY_STARBUST_CHANGE_946704"),r(n,"NonEndemicZoetrope","APE_ADPT_CURIE_ZOETROPE_968646"),r(n,"PercDeepLink","PERC_DEEP_LINK"),r(n,"MLExperimentOverrides",{GreyBrackground:"GreyBrackground",HeadlineStylingT1:"HeadlineStylingT1",HeadlineStylingT2:"HeadlineStylingT2",HeadlineStylingT3:"HeadlineStylingT3"}),r(n,"TextOnlyCTA",{TextCTA:"TextCTA",TextWithCaretCTA:"TextWithCaretCTA",HideTextCTA:"HideTextCTA"}),r(n,"ThickBorder",{StaticGradient:"StaticGradient",AnimateOnceOnLoad:"AnimateOnceOnLoad",AnimateOnlyOnHover:"AnimateOnlyOnHover",ThinBorderStaticGradient:"ThinBorderStaticGradient",ThinBorderAnimateOnceOnLoad:"ThinBorderAnimateOnceOnLoad",ThinBorderAnimateOnlyOnHover:"ThinBorderAnimateOnlyOnHover"}),r(n,"TextOnlyCTAButton",{TextCTAButton:"TextCTAButton",TextWithCaretCTAButton:"TextWithCaretCTAButton"}),r(n,"EnableVideoClosedCaption","EnableVideoClosedCaption"),r(n,"LowResDefaultVideo","LowResDefaultVideo"),r(n,"EnableAutomatedBadging","EnableAutomatedBadging"),r(n,"TwitchDarkAdsM2",{DarkAdsCircleNoCTA:"DarkAdsCircleNoCTA",DarkAdsArrowNoCTA:"DarkAdsArrowNoCTA",DarkAdsCircleCTA:"DarkAdsCircleCTA",DarkAdsArrowCTA:"DarkAdsArrowCTA"}),r(n,"ApsMobileShoppableModal","ApsMobileShoppableModal"),r(n,"HeadlineStyling",{LightFont:"LightFont",AllCaps:"AllCaps",AllCapsWithLightFont:"AllCapsWithLightFont"}),r(n,"EnableZoetropeOnMobileSearchBTF","EnableZoetropeOnMobileSearchBTF"),r(n,"DesktopHQPVideo",{VideoOnRight:"VideoOnRight",VideoOnLeftAndPause:"VideoOnLeftAndPause",VideoOnRightAndPause:"VideoOnRightAndPause"}),r(n,"EnableZoetropeMultiProductImagesWithNoCustomImage","EnableZoetropeMultiProductImagesWithNoCustomImage"),r(n,"EnableZoetropeMultiProductImages","EnableZoetropeMultiProductImages"),r(n,"OmitVerticalImages","APE_ADPT_OMIT_VERTICAL_IMAGES_878545"),r(n,"PERCSocialProofingMessage",{FiveStarPercentageOver50:"Over50",FiveStarPercentageOver75:"Over75",FiveStarPercentageOver90:"Over90"}),r(n,"DetailIlmExpand",{IlmExpand:"IlmExpand",IlmExpandAndDecreaseHeight:"IlmExpandAndIncreaseWidth"}),r(n,"MobileIlmExpand","MobileIlmExpand")},9346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getJavelinEnvelopeWeblabs=t.getActiveLanternExperiments=t.getActiveExperimentsMap=t.getActiveExperiments=void 0;var n=r(1279);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.getActiveExperiments=e=>{var t=e.experimentLocalOverrides,r=e.renderingOptions,n=e.experimentConfig,a=e.additionalContext;e=e.renderPayload,e=u({renderingOptions:r,experimentConfig:n,experimentLocalOverrides:t,additionalContext:a,renderPayload:e});const o={};return Object.keys(e).forEach((e=>{o[e]=!0})),o};const l=e=>{var t,r,n,a=e.renderingOptions,o=e.experimentLocalOverrides,i=e.additionalContext;e=e.renderPayload,o=o||{},a=(null==a?void 0:a.aaxCreativeTriggers)||{};return s(s(s({},(null==i||null===(t=i.bidCache)||void 0===t||null===(r=t.publisherExtraSpecifiedInfo)||void 0===r?void 0:r.experiments)||(null==e||null===(n=e.publisherExtraSpecifiedInfo)||void 0===n?void 0:n.experiments)||{}),a),o)};t.getJavelinEnvelopeWeblabs=e=>{let t=e.renderingOptions,r=e.experimentConfig,n=e.experimentLocalOverrides,a=e.additionalContext,o=e.renderPayload;const i=l({renderingOptions:t,experimentLocalOverrides:n,additionalContext:a,renderPayload:o});return Object.keys(i).filter((e=>r[e]&&r[e].shouldPassToJavelinEnvelope&&"NULL"!==i[e])).reduce(((e,t)=>(e[t]=i[t],e)),{})};const u=e=>{let t=e.renderingOptions,r=e.experimentConfig,o=e.experimentLocalOverrides,i=e.additionalContext,s=e.renderPayload;const u=new Map;return e=l({renderingOptions:t,experimentLocalOverrides:o,additionalContext:i,renderPayload:s}),Object.entries(e).forEach((e=>{e=(t=a(e,2))[0];var t=t[1];!r[e]||t===n.CONTROL||(e=r[e].treatments[t])&&e.id&&(u[e.id]=t)})),u};t.getActiveExperimentsMap=u,t.getActiveLanternExperiments=e=>{var t,r,n,a,o,i,s=e.additionalContext;e=e.renderPayload;return null!=s&&null!==(t=s.bidCache)&&void 0!==t&&null!==(r=t.publisherExtraSpecifiedInfo)&&void 0!==r&&r.experiments?null==s||null===(a=s.bidCache)||void 0===a||null===(o=a.publisherExtraSpecifiedInfo)||void 0===o?void 0:o.experiments:null!=e&&null!==(n=e.publisherExtraSpecifiedInfo)&&void 0!==n&&n.experiments?null==e||null===(i=e.publisherExtraSpecifiedInfo)||void 0===i?void 0:i.experiments:{}}},6475:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9346);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var a=r(9592);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var o=r(1597);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i=r(1279);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))},1597:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isExperimentGroupActive=void 0,t.isExperimentGroupActive=(e,t)=>Object.keys(t).some((t=>!!e[t]))},4543:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimedDeals=void 0;var n=r(3175);t.getTimedDeals=e=>{var t=e.marketplace,r=e.currentTime,a=(0,n.timedDeals)();const o={};for(const e of Object.keys(a)){var i=(e=>{var t=e.deals,r=e.flag,n=e.marketplace;e=e.currentTime;const a=t[r];return!!a&&("function"==typeof a?a({marketplace:n,currentTime:e}):a)})({deals:a,flag:e,marketplace:t,currentTime:r});o[e]=i}return o}},3637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PRIME_DAY_TIME_MAP=t.PBDD_TIME_MAP=t.CYBER_MONDAY_MAP=t.BLACK_FRIDAY_MAP=void 0;var r={AU:{startTime:new Date("2024-07-15T14:00:00.000Z"),endTime:new Date("2024-07-21T14:00:00.000Z")},JP:{startTime:new Date("2024-07-15T15:00:00.000Z"),endTime:new Date("2024-07-17T15:00:00.000Z")},SG:{startTime:new Date("2024-07-15T16:00:00.000Z"),endTime:new Date("2024-07-21T16:00:00.000Z")},IN:{startTime:new Date("2024-07-19T18:30:00.000Z"),endTime:new Date("2024-07-21T18:30:00.000Z")},AE:{startTime:new Date("2024-07-15T20:00:00.000Z"),endTime:new Date("2024-07-21T20:00:00.000Z")},EG:{startTime:new Date("2024-07-15T21:00:00.000Z"),endTime:new Date("2024-07-21T21:00:00.000Z")},SA:{startTime:new Date("2024-07-15T21:00:00.000Z"),endTime:new Date("2024-07-21T21:00:00.000Z")},TR:{startTime:new Date("2024-07-15T21:00:00.000Z"),endTime:new Date("2024-07-22T21:00:00.000Z")},BE:{startTime:new Date("2024-07-15T22:00:00.000Z"),endTime:new Date("2024-07-17T22:00:00.000Z")},DE:{startTime:new Date("2024-07-15T22:00:00.000Z"),endTime:new Date("2024-07-17T22:00:00.000Z")},ES:{startTime:new Date("2024-07-15T22:00:00.000Z"),endTime:new Date("2024-07-17T22:00:00.000Z")},FR:{startTime:new Date("2024-07-15T22:00:00.000Z"),endTime:new Date("2024-07-17T22:00:00.000Z")},IT:{startTime:new Date("2024-07-15T22:00:00.000Z"),endTime:new Date("2024-07-17T22:00:00.000Z")},NL:{startTime:new Date("2024-07-15T22:00:00.000Z"),endTime:new Date("2024-07-17T22:00:00.000Z")},PL:{startTime:new Date("2024-07-15T22:00:00.000Z"),endTime:new Date("2024-07-17T22:00:00.000Z")},SE:{startTime:new Date("2024-07-15T22:00:00.000Z"),endTime:new Date("2024-07-17T22:00:00.000Z")},UK:{startTime:new Date("2024-07-15T23:00:00.000Z"),endTime:new Date("2024-07-17T23:00:00.000Z")},BR:{startTime:new Date("2024-07-16T03:00:00.000Z"),endTime:new Date("2024-07-22T03:00:00.000Z")},MX:{startTime:new Date("2024-07-16T06:00:00.000Z"),endTime:new Date("2024-07-22T06:00:00.000Z")},US:{startTime:new Date("2024-07-16T07:00:00.000Z"),endTime:new Date("2024-07-18T07:00:00.000Z")},CA:{startTime:new Date("2024-07-16T07:00:00.000Z"),endTime:new Date("2024-07-18T07:00:00.000Z")}};t.PRIME_DAY_TIME_MAP=r,r={AU:{startTime:new Date("2023-10-09T13:00:00.000Z"),endTime:new Date("2023-10-11T13:00:00.000Z")},JP:{startTime:new Date("2023-10-13T15:00:00.000Z"),endTime:new Date("2023-10-15T15:00:00.000Z")},SG:{startTime:new Date("2023-10-09T16:00:00.000Z"),endTime:new Date("2023-10-11T16:00:00.000Z")},CN:{startTime:new Date("2023-10-09T16:00:00.000Z"),endTime:new Date("2023-10-15T16:00:00.000Z")},IT:{startTime:new Date("2023-10-09T22:00:00.000Z"),endTime:new Date("2023-10-11T22:00:00.000Z")},ES:{startTime:new Date("2023-10-09T22:00:00.000Z"),endTime:new Date("2023-10-11T22:00:00.000Z")},BE:{startTime:new Date("2023-10-09T22:00:00.000Z"),endTime:new Date("2023-10-11T22:00:00.000Z")},FR:{startTime:new Date("2023-10-09T22:00:00.000Z"),endTime:new Date("2023-10-11T22:00:00.000Z")},DE:{startTime:new Date("2023-10-09T22:00:00.000Z"),endTime:new Date("2023-10-11T22:00:00.000Z")},PL:{startTime:new Date("2023-10-09T22:00:00.000Z"),endTime:new Date("2023-10-11T22:00:00.000Z")},NL:{startTime:new Date("2023-10-09T22:00:00.000Z"),endTime:new Date("2023-10-11T22:00:00.000Z")},SE:{startTime:new Date("2023-10-09T22:00:00.000Z"),endTime:new Date("2023-10-11T22:00:00.000Z")},UK:{startTime:new Date("2023-10-09T23:00:00.000Z"),endTime:new Date("2023-10-11T23:00:00.000Z")},BR:{startTime:new Date("2023-10-10T03:00:00.000Z"),endTime:new Date("2023-10-12T03:00:00.000Z")},US:{startTime:new Date("2023-10-10T07:00:00.000Z"),endTime:new Date("2023-10-12T07:00:00.000Z")},CA:{startTime:new Date("2023-10-10T07:00:00.000Z"),endTime:new Date("2023-10-12T07:00:00.000Z")}},t.PBDD_TIME_MAP=r,r={AU:{startTime:new Date("2023-11-19T13:00:00.000Z"),endTime:new Date("2023-12-03T13:00:00.000Z")},JP:{startTime:new Date("2023-11-23T15:00:00.000Z"),endTime:new Date("2023-11-30T15:00:00.000Z")},CN:{startTime:new Date("2023-11-17T00:00:00.000Z"),endTime:new Date("2023-11-26T12:00:00.000Z")},SG:{startTime:new Date("2023-11-23T16:00:00.000Z"),endTime:new Date("2023-11-27T16:00:00.000Z")},AE:{startTime:new Date("2023-11-20T20:00:00.000Z"),endTime:new Date("2023-11-28T20:00:00.000Z")},TR:{startTime:new Date("2023-11-13T09:00:00.000Z"),endTime:new Date("2023-11-30T21:00:00.000Z")},EG:{startTime:new Date("2023-11-18T22:00:00.000Z"),endTime:new Date("2023-11-27T22:00:00.000Z")},SA:{startTime:new Date("2023-11-20T22:00:00.000Z"),endTime:new Date("2023-11-30T22:00:00.000Z")},UK:{startTime:new Date("2023-11-17T00:00:00.000Z"),endTime:new Date("2023-11-28T00:00:00.000Z")},DE:{startTime:new Date("2023-11-16T23:00:00.000Z"),endTime:new Date("2023-11-27T23:00:00.000Z")},FR:{startTime:new Date("2023-11-16T23:00:00.000Z"),endTime:new Date("2023-11-27T23:00:00.000Z")},IT:{startTime:new Date("2023-11-16T23:00:00.000Z"),endTime:new Date("2023-11-27T23:00:00.000Z")},ES:{startTime:new Date("2023-11-16T23:00:00.000Z"),endTime:new Date("2023-11-27T23:00:00.000Z")},NL:{startTime:new Date("2023-11-16T23:00:00.000Z"),endTime:new Date("2023-11-27T23:00:00.000Z")},SE:{startTime:new Date("2023-11-16T23:00:00.000Z"),endTime:new Date("2023-11-27T23:00:00.000Z")},PL:{startTime:new Date("2023-11-16T23:00:00.000Z"),endTime:new Date("2023-11-27T23:00:00.000Z")},BE:{startTime:new Date("2023-11-16T23:00:00.000Z"),endTime:new Date("2023-11-27T23:00:00.000Z")},BR:{startTime:new Date("2023-11-17T03:00:00.000Z"),endTime:new Date("2023-11-28T03:00:00.000Z")},MX:{startTime:new Date("2023-11-23T06:00:00.000Z"),endTime:new Date("2023-11-27T06:00:00.000Z")},CA:{startTime:new Date("2023-11-20T08:00:00.000Z"),endTime:new Date("2023-11-25T08:00:00.000Z")},US:{startTime:new Date("2023-11-20T08:00:00.000Z"),endTime:new Date("2023-11-25T08:00:00.000Z")}},t.BLACK_FRIDAY_MAP=r,r={CN:{startTime:new Date("2023-11-26T12:00:00.000Z"),endTime:new Date("2023-12-01T16:00:00.000Z")},MX:{startTime:new Date("2023-11-27T06:00:00.000Z"),endTime:new Date("2023-11-28T06:00:00.000Z")},US:{startTime:new Date("2023-11-25T08:00:00.000Z"),endTime:new Date("2023-11-28T08:00:00.000Z")},CA:{startTime:new Date("2023-11-25T08:00:00.000Z"),endTime:new Date("2023-11-28T08:00:00.000Z")}},t.CYBER_MONDAY_MAP=r},3175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timedDeals=void 0;var n=r(3637);function a(e){var t=e.marketplace,r=e.currentTime;return!!(t=e.timeMap[t])&&r>=t.startTime&&r<=t.endTime}t.timedDeals=()=>({primeDayDealEnabled:e=>a({marketplace:e.marketplace,currentTime:e.currentTime,timeMap:n.PRIME_DAY_TIME_MAP}),primeBigDealDaysEnabled:()=>!1,blackFridayDealEnabled:e=>a({marketplace:e.marketplace,currentTime:e.currentTime,timeMap:n.BLACK_FRIDAY_MAP}),cyberMondayDealEnabled:e=>a({marketplace:e.marketplace,currentTime:e.currentTime,timeMap:n.CYBER_MONDAY_MAP})})},9997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFetchAPI=void 0,t.getFetchAPI=(e,t)=>({fetchData:async()=>{let r;try{if(r=await fetch(e,t),!r.ok)return{error:r}}catch(r){return{error:r}}return{response:r}}})},1245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useI18n=t.snsSupportMarketplaces=t.localeCodeMap=t.STATIC_AUTOGEN_CC_AVAILABLE_LOCALES=t.SPACED_CURRENCIES_MARKETPLACES=t.SPACED_CURRENCIES_LOCALES=t.RIGHT_PLACEMENT_CURRENCIES_MARKETPLACES=t.RIGHT_PLACEMENT_CURRENCIES_LOCALES=t.PREFIX_PERCENTAGE_SYMBOL_MARKETPLACES=t.PREFIX_PERCENTAGE_SYMBOL_LOCALES=t.MARKETPLACES_DATA=t.MARKETPLACES=t.LOCALES=t.I18nProvider=t.DEFAULT_MARKETPLACE=t.DEFAULT_LOCALE=t.COMMA_DECIMAL_SEPARATOR_MARKETPLACES=t.COMMA_DECIMAL_SEPARATOR_LOCALES=void 0;var n=l(r(4591)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=s(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),o=l(r(6423));const i=["locale","marketplace","i18nStrings"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.DEFAULT_LOCALE="en_US",t.DEFAULT_MARKETPLACE="US",r=new Set(["US","CA","BR","MX","UK","DE","FR","IT","ES","NL","IN","AE","SE","SA","TR","EG","PL","JP","AU","SG"]),t.snsSupportMarketplaces=r;const c=new Set(["DE","FR","IT","ES","SE","TR","PL","BE"]);t.RIGHT_PLACEMENT_CURRENCIES_MARKETPLACES=c;const d=new Set(["DE","FR","IT","ES","NL","TR","BE","PL","ZA"]);t.SPACED_CURRENCIES_MARKETPLACES=d;const p=new Set(["TR"]);t.PREFIX_PERCENTAGE_SYMBOL_MARKETPLACES=p,r=new Set(["DE","FR","IT","ES","BR","NL","SE","PL","TR","BE"]),t.COMMA_DECIMAL_SEPARATOR_MARKETPLACES=r;const m=new Set(["fr_CA"]);t.RIGHT_PLACEMENT_CURRENCIES_LOCALES=m;const f=new Set([]);t.SPACED_CURRENCIES_LOCALES=f;const g=new Set([]);t.PREFIX_PERCENTAGE_SYMBOL_LOCALES=g,r=new Set(["fr_CA"]),t.COMMA_DECIMAL_SEPARATOR_LOCALES=r,r=new Set(["zh_CN","tr_TR","ta_IN","sv_SE","pt_BR","nl_NL","ko_KR","ja_JP","it_IT","hi_IN","fr_FR","fr_CA","es_US","es_MX","es_ES","en_US","en_SG","en_IN","en_GB","en_CA","en_AU","de_DE","ar_AE"]),t.STATIC_AUTOGEN_CC_AVAILABLE_LOCALES=r;const h=new Set(["DE"]),y=new Set(["US","CA"]),v=new Map([["US","en_US"],["CA","en_CA"],["MX","es_MX"],["BR","pt_BR"],["UK","en_GB"],["DE","de_DE"],["FR","fr_FR"],["IT","it_IT"],["ES","es_ES"],["IN","en_IN"],["AE","en_AE"],["SA","ar_AE"],["NL","nl_NL"],["JP","ja_JP"],["AU","en_AU"],["SG","en_SG"],["CN","zh_CN"],["SE","sv_SE"],["TR","tr_TR"],["PL","pl_PL"],["EG","ar_AE"],["BE","fr_BE"],["ZA","en_ZA"]]);t.localeCodeMap=v;const b=a.default.createContext(),C=n.default;t.MARKETPLACES_DATA=C,n=Object.keys(C),t.MARKETPLACES=n,n=[...v.values()],t.LOCALES=n,t.useI18n=()=>(0,a.useContext)(b),t.I18nProvider=e=>{let t=e.locale,r=e.marketplace,n=void 0===r?"US":r,s=e.i18nStrings,l=function(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),o=0;o<a.length;o++)r=a[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,i);var x=v.get(n)||"en_US";const E=t||x;var S=(C[n]||C.US).currency,_=c.has(n)||m.has(t)?"AFTER":"BEFORE",T=d.has(n)||f.has(t),w=p.has(n)||g.has(t)?"BEFORE":"AFTER";e=y.has(n),x=h.has(n);return a.default.createElement(b.Provider,u({value:{currencySymbol:S,currencyPlacement:_,currencySpacing:T,percentagePlacement:w,isPricePerUnitSupported:x,isCurrencySymbolSuperscript:e,getString:e=>{var r=(0,o.default)(s,e);if(r)return r;throw new Error(`Translation for key ${e} not available in locale `+t)},formatNumber:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return Intl.NumberFormat(E.replace("_","-"),{minimumFractionDigits:t,maximumFractionDigits:t}).format(Math.round(Number(e)*10**t)/10**t)}}},l))}},9497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitPrice=t.getPriceObject=t.formatPriceWithCurrency=t.formatPriceNumber=t.formatPercentage=t.formatDiscountValue=void 0;var n=r(951),a=r(1245);function o(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length?arguments[2]:void 0,n=3<arguments.length?arguments[3]:void 0;let o=".",i=",";r&&a.COMMA_DECIMAL_SEPARATOR_MARKETPLACES.has(r)&&(o=",",i="."),n&&a.COMMA_DECIMAL_SEPARATOR_LOCALES.has(n)&&(o=",",i=".");const s=(t=(+e).toFixed(t).toString().split("."))[0];let l;return t=t[1],l="IN"===r?s.replace(/(\d)(?=(\d\d)+\d$)/g,"$1"+i):s.replace(/\B(?=(\d{3})+(?!\d))/g,i),t?l+o+t:l}t.splitPrice=(e,t,r)=>{if(!e)return[null,null];let n=".";return t&&a.COMMA_DECIMAL_SEPARATOR_MARKETPLACES.has(t)&&(n=","),r&&a.COMMA_DECIMAL_SEPARATOR_LOCALES.has(r)&&(n=","),e.toString().split(n)},t.formatPriceNumber=o;const i=(e,t,r)=>{var n=a.MARKETPLACES_DATA[t],i=a.RIGHT_PLACEMENT_CURRENCIES_MARKETPLACES.has(t)||a.RIGHT_PLACEMENT_CURRENCIES_LOCALES.has(r),s="JP"===t,l=n.currency;n=a.SPACED_CURRENCIES_MARKETPLACES.has(t)||a.SPACED_CURRENCIES_LOCALES.has(r);let u;return u=/[^0-9,.]/.test(e)?e:o(e,s?0:2,t,r),{symbol:l,number:u,isTrailingSymbol:i,isSpaceBetweenSymbolAndNumber:n}};t.getPriceObject=i;const s=(e,t,r)=>{let n,a,o;return o=(r=i(e,t,r)).isTrailingSymbol?(a=r.number,r.symbol):(a=r.symbol,r.number),n=r.isSpaceBetweenSymbolAndNumber?a+" "+o:a+o,n};t.formatPriceWithCurrency=s,t.formatDiscountValue=(e,t,r)=>{let a=null;if(!e)return a;var o=e.type;e=e.value;return o&&0<e&&(a=o===n.PROMOTION_TYPE.PERCENT_OFF?l(e,r,t):s(e,r,t).replace(/\.00$/,"")),a&&"JP"===r&&"Amount off"===o&&(a=a.substr(1)+"円"),a};const l=(e,t,r)=>a.PREFIX_PERCENTAGE_SYMBOL_MARKETPLACES.has(t)||a.PREFIX_PERCENTAGE_SYMBOL_LOCALES.has(r)?"%"+Math.round(e):Math.round(e)+"%";t.formatPercentage=l},6081:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVideoEventPixelUrl=t.getEventPixelUrl=t.getClickPixelImageRedirectUrl=t.extractImpSecureId=t.VideoEventType=t.EventType=void 0,t.EventType=void 0,t.EventType={click:"CLICK",lgaLinkOut:"LGA_LINK_OUT",lgaOpenForm:"LGA_OPEN_FORM",lgaLead:"LGA_LEAD",lgaTypedForm:"LGA_TYPED_FORM",lgaLessThanHalfFormFieldComplete:"LGA_LESS_THAN_HALF_FORM_FIELD_COMPLETE",lgaGreaterThanOrEqualHalfFormFieldComplete:"LGA_GREATER_THAN_OR_EQUAL_HALF_FORM_FIELD_COMPLETE"},t.VideoEventType=void 0,t.VideoEventType={firstQuartile:"FIRST_QUARTILE",midpoint:"MIDPOINT",thirdQuartile:"THIRD_QUARTILE",complete:"COMPLETE",unmute:"UNMUTE",mute:"MUTE",pause:"PAUSE",play:"PLAY",progress5Sec:"PROGRESS_5_SEC"},t.getEventPixelUrl=e=>{let t=e.pixelUrl;return e={v:{def:"iab",event:e.eventType}},(t.endsWith("/")?t+"v/":t+"/v/")+encodeURI(JSON.stringify(e))},t.getVideoEventPixelUrl=e=>{let t=e.pixelUrl;return e={q:{def:"iab",event:e.eventType}},(t.endsWith("/")?t+"q/":t+"/q/")+encodeURI(JSON.stringify(e))},t.getClickPixelImageRedirectUrl=e=>e?e+"https://m.media-amazon.com/images/G/01/d16g/kpw/transparent-1x1.png":"",t.extractImpSecureId=e=>e&&(e=e.match(/px\/([^/]+)/))?e[1]:""},3869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateWebpackPath=void 0;let n=!1;t.updateWebpackPath=e=>{if("undefined"!=typeof window&&!n)try{if("http://localhost:8080/"!==r.p&&"http://host.docker.internal:8080/"!==r.p){const t=r.u;r.p="https://m.media-amazon.com/images/I/",r.u=r=>(r=t(r),(r=(window.manifest?JSON.parse(window.manifest):e)[r].split("/"))[r.length-1]),n=!0}}catch(e){}}},6655:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useModal=t.ModalType=t.ModalProvider=t.ModalComponents=t.MODALS=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=c(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),a=r(201),o=r(724),i=r(7270),s=r(4828),l=r(4598),u=r(2616);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function d(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}let g,h;t.ModalComponents=g,(r=g||(t.ModalComponents=g={})).lgaFormModal="lgaFormModal",r.lgaThankYouViewModal="lgaThankYouViewModal",r.shoppableModal="shoppableModal",t.ModalType=h,(r=h||(t.ModalType=h={}))[r.Twitch=0]="Twitch",r[r.ExpandableAds=1]="ExpandableAds",l={[g.lgaFormModal]:o.LeadForm,[g.lgaThankYouViewModal]:o.ThankYouView,[g.shoppableModal]:l.LazyShoppableModal},t.MODALS=l;const y=n.default.createContext(null);t.useModal=()=>(0,n.useContext)(y),t.ModalProvider=e=>{var t,r,o,l,c,d=e.children,f=(g=m((0,n.useState)(!1),2))[0],g=(e=g[1],(0,s.usePayload)().isTwitchModal);const v=(0,u.useCEM)().logEvent;let b={openModal:()=>{v({eventType:u.EventTypes.MODAL,eventName:u.EventNames.MODAL_UNDEFINED_OPEN_MODAL_METHOD,componentType:u.ComponentTypes.HOOKS,componentName:"useModal"})},activeModalId:null,isModalView:!1,closeModal:()=>{v({eventType:u.EventTypes.MODAL,eventName:u.EventNames.MODAL_UNDEFINED_OPEN_MODAL_METHOD,componentType:u.ComponentTypes.HOOKS,componentName:"useModal"})},isModalTrigger:!1,onReady:()=>{},isFormSubmitted:f,setIsFormSubmitted:e,modalType:h.ExpandableAds};return g?(r=(t=(0,i.useMobileDataInterface)({isEnabled:!0})).isModalTrigger,o=t.openModal,l=t.onReady,c=t.isModal,b=p(p({},b),{},{isModalTrigger:r,openModal:o,onReady:l,isModalView:c,modalType:h.Twitch})):(t=(g=(0,a.useExpandableAds)()).openModal,r=g.activeModalId,o=g.isModalView,l=g.closeModal,c=g.hasMraidClient,g=g.hasSFClient,(c||g)&&(b=p(p({},b),{},{openModal:t,activeModalId:r,closeModal:l,isModalView:o,modalType:h.ExpandableAds}))),n.default.createElement(y.Provider,{value:b},d)}},4828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePayload=t.PayloadProvider=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=a(t))&&t.has(e))return t.get(e);var r,n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var i;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((i=o?Object.getOwnPropertyDescriptor(e,r):null)&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}const o=n.default.createContext(null);t.usePayload=()=>(0,n.useContext)(o),t.PayloadProvider=e=>{var t=e.payload;e=e.children;return n.default.createElement(o.Provider,{value:t},e)}},3861:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getImageUrl=void 0;var n=(r=r(4591))&&r.__esModule?r:{default:r};t.getImageUrl=(e,t)=>`https://m.media-amazon.com/images/G/${n.default[e].media}/`+t},4114:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterTranscodedMedias=t.RENDER_TRANSCODE_TYPES=t.MODERATION_TRANSCODE_TYPES=t.LOW_RES_TRANSCODE_TYPES=void 0,t.MODERATION_TRANSCODE_TYPES=["MODERATION"],t.RENDER_TRANSCODE_TYPES=["LOW","MEDIUM","HIGH"],t.LOW_RES_TRANSCODE_TYPES=["LOW"],t.filterTranscodedMedias=function(e){const t=new Set(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]);if(!e||e.length<1)return[];var r=e.filter((e=>t.has(e.transcodeType)));return 0<r.length?r:e}},722:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(868),i=r(5951),s=r(580);function l(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const c={"product-image":"auto","product-title":"1fr",headline:"1fr","logo-image":"auto","custom-image":"auto","buy-box":"auto","cta-button":"auto","hero-component":"auto"},d=(0,a.default)("pr-2","m-auto");t.default={global:e=>{var t=e.showEnergyEfficiency,r=e.isTextCTAExperiment,n=e.hasDealBadge,i=e.isAutomatedDealBadge,l=e.isSubscribeAndSave,u=e.showWholeFoodsLogo,c=e.showFreshLogo,p=e.isIlmPlacement;e=e.showClimatePledgeFriendly,n={rowCount:1,columnCount:t?3:4,titleRegion:"none",energyEfficiencySize:"medium",isEnergyEfficiencyStacked:!0,badgeSize:"small",automatedDealBadgeTextSize:"medium",automatedDealBadgeClasses:i?"max-w-[150px]":void 0,automatedDealBadgeShortContentThreshold:s.REGULARCONTENT_MAX_LENGTH,stackDealInfo:l,priceSizeOverride:n?"text-[18px] leading-[18px]":void 0,showCPFLogo:e&&!t&&!u&&!c,savingsTextSize:n?"small":"large",savingsTextClassName:n?"pb-[3px]":void 0,socialProofingTextVariant:"sm",socialProofingWrapperClass:"items-center"};return!r||p||t||Object.assign(n,{removeItems:["ratings","deal-badge","badge-with-savings"],showTextCTA:!0,ctaSize:"small"}),!c&&!u||r||Object.assign(n,{removeItems:["ratings"]}),{componentProps:{[o.Components.BuyBox]:n,[o.Components.ProductTitle]:{lines:2},[o.Components.Headline]:{classNameText:"text-center display-inline-box text-md font-normal line-clamp-none inherit headline text-gray-700 italic"},[o.Components.ProductImage]:{className:"min-w-[65px] max-w-[105px] py-0.5 px-1"},[o.Components.LogoImage]:{className:"min-w-[65px] max-w-[105px] py-0.5 px-1"},[o.Components.GridLayout]:{className:(0,a.default)(d,"gap-2 max-w-[1200px]")}}}},none:e=>{var t=e.isIlmPlacement,r=e.showEnergyEfficiency,n=e.isTextCTAExperiment,a=e.hasDealBadge;e=e.showClimatePledgeFriendly;return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","product-title","buy-box",t||r||n?null:"cta-button"]],generateColumns:(0,i.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.BuyBox]:{showCPFLogo:e&&!r&&!a},[o.Components.ProductImage]:{animationType:"scrollShine"}}})},"ci-hl-lo":()=>u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","headline","logo-image","buy-box","product-image"]],generateColumns:(0,i.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.Headline]:{classNameText:""},[o.Components.BuyBox]:{columnCount:2},[o.Components.ProductImage]:{animationType:"scrollShine"}}}),"ci-hl":e=>{var t=e.isIlmPlacement,r=e.showEnergyEfficiency,n=e.isTextCTAExperiment;e=e.hasDealBadge,e=t||r||n||e?null:"cta-button";return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","headline","product-image","buy-box",e],["custom-image","product-title","product-image","buy-box",e]],generateColumns:(0,i.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.BuyBox]:{columnCount:2,removeItems:["ratings"]},[o.Components.Headline]:{className:"pl-0.5 pr-0.5",alignmentClass:"items-end justify-center"},[o.Components.ProductTitle]:{lines:1,alignmentClass:"items-start justify-center w-full"},[o.Components.GridLayout]:{className:(0,a.default)(d,"gap-x-2 gap-y-0.5 max-w-[1200px]",t?"bg-white":"")},[o.Components.ProductImage]:{animationType:"scrollShine"}}})},"ci-lo":e=>{var t=e.isIlmPlacement,r=e.showEnergyEfficiency,n=e.isTextCTAExperiment;e=e.hasDealBadge;return u({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","product-title","logo-image","buy-box",t||r||n||e?null:"cta-button"]],generateColumns:(0,i.getBasicColumns)(c),generateRows:()=>"auto"}))},"hl-lo":e=>{var t=e.isIlmPlacement,r=e.showEnergyEfficiency,n=e.isTextCTAExperiment;e=e.hasDealBadge;return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","headline","buy-box","product-image",t||r||n||e?null:"cta-button"]],generateColumns:(0,i.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.BuyBox]:{columnCount:2,removeItems:["ratings"]},[o.Components.ProductImage]:{animationType:"scrollShine"}}})},ci:e=>{var t=e.isIlmPlacement,r=e.showEnergyEfficiency,n=e.isTextCTAExperiment;e=e.hasDealBadge;return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","product-title","buy-box","product-image",t||r||n||e?null:"cta-button"]],generateColumns:(0,i.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.CustomImage]:{imageScale:"horizontal"}}})},lo:e=>{var t=e.isIlmPlacement,r=e.showEnergyEfficiency,n=e.isTextCTAExperiment;e=e.hasDealBadge;return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","product-title","buy-box","product-image",t||r||n||e?null:"cta-button"]],generateColumns:(0,i.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.ProductImage]:{animationType:"scrollShine"}}})},hl:e=>{var t=e.isIlmPlacement,r=e.showEnergyEfficiency,n=e.isTextCTAExperiment;e=e.hasDealBadge,e=t||r||n||e?null:"cta-button";return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","headline","buy-box",e],["product-image","product-title","buy-box",e]],generateColumns:(0,i.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.Headline]:{className:"pl-0.5 pr-0.5",alignmentClass:"items-end justify-center"},[o.Components.ProductTitle]:{lines:1,alignmentClass:"items-start justify-center w-full"},[o.Components.BuyBox]:{removeItems:["ratings"]},[o.Components.GridLayout]:{className:(0,a.default)(d,"gap-x-2 gap-y-0.5 max-w-[1200px]",t?"bg-white":"")},[o.Components.ProductImage]:{animationType:"scrollShine"}}})},"non-endemic":e=>{var t=e.isTermsAndConditions,r=e.backgroundBrightness,n=e.primaryColorRGB;e=e.customBackgroundColorRGB;return{gridTemplateAreas:t?[["logo-image","custom-image","headline","cta-button"],["logo-image","custom-image","headline","terms-and-conditions-label"]]:[["logo-image","custom-image","headline","cta-button"]],gridTemplateColumns:"1fr auto 4fr 1fr",gridTemplateRows:t?"1fr auto":"auto",componentProps:{[o.Components.GridLayout]:{className:"gap-0 pr-1",style:{backgroundColor:e}},[o.Components.CustomImage]:{imageScale:"horizontal"},[o.Components.Headline]:{classNameText:"text-[18px] leading-[22px] px-2"},[o.Components.LogoImage]:{className:"max-w-[90px] py-0.5 px-1",wrapperClassName:"bg-white"},[o.Components.CTAButton]:{alignmentClass:(0,a.default)("justify-center h-full",t?"items-end":"items-center"),variant:"dark"===r?"blockSmInverted":"blockSm",size:"none",destination:"landing-page",overrideHoverColor:"dark"===r&&"transparent"!==n?n:void 0,isFullHeightButton:!1},[o.Components.TermsAndConditionsLabel]:{wrapperClass:"justify-center py-0.5",className:"text-[9px] leading-[11px]"}}}},hero:e=>{var t=e.isIlmPlacement,r=e.showEnergyEfficiency,n=e.isTextCTAExperiment;e=e.hasDealBadge;return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["hero-component","product-title","buy-box","product-image",t||r||n||e?null:"cta-button"]],generateColumns:(0,i.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.CustomImage]:{imageScale:"horizontal"}}})},"hero-hl":e=>{var t=e.isIlmPlacement,r=e.showEnergyEfficiency,n=e.isTextCTAExperiment;e=e.hasDealBadge,e=t||r||n||e?null:"cta-button";return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["hero-component","headline","product-image","buy-box",e],["hero-component","product-title","product-image","buy-box",e]],generateColumns:(0,i.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.BuyBox]:{columnCount:2,removeItems:["ratings"]},[o.Components.Headline]:{className:"pl-0.5 pr-0.5",alignmentClass:"items-end justify-center"},[o.Components.ProductTitle]:{lines:1,alignmentClass:"items-start"},[o.Components.GridLayout]:{className:(0,a.default)(d,"gap-x-2 gap-y-0.5 max-w-[1200px]")}}})},"hero-lo":e=>{var t=e.isIlmPlacement,r=e.showEnergyEfficiency,n=e.isTextCTAExperiment;e=e.hasDealBadge;return u({},(0,i.generateGridConfiguration)({baseConfiguration:[["hero-component","product-title","logo-image","buy-box",t||r||n||e?null:"cta-button"]],generateColumns:(0,i.getBasicColumns)(c),generateRows:()=>"auto"}))},"hero-hl-lo":()=>u({},(0,i.generateGridConfiguration)({baseConfiguration:[["hero-component","headline","logo-image","buy-box","product-image"]],generateColumns:(0,i.getBasicColumns)(c),generateRows:()=>"auto"})),showroom:e=>{var t=e.isTwitchDarkAd;e=e.primaryColorRGB;return{gridTemplateAreas:[["logo-image","custom-image","headline","cta-button"]],gridTemplateColumns:"1fr auto 4fr 1fr",gridTemplateRows:"auto",componentProps:{[o.Components.GridLayout]:{className:"gap-0 pr-1",style:{backgroundColor:"rgba(15, 17, 17, 0.04)"}},[o.Components.CustomImage]:{imageScale:"horizontal"},[o.Components.Headline]:{classNameText:"text-[18px] leading-[22px] px-2"},[o.Components.LogoImage]:{className:"max-w-[90px] py-0.5 px-1",wrapperClassName:"bg-white"},[o.Components.CTAButton]:{alignmentClass:"justify-center h-full items-center",variant:"squarePillWhite",size:"small",destination:"showroom-page",overrideHoverColor:t&&"transparent"!==e?e:void 0,isFullHeightButton:!1}}}},leadgen:e=>({gridTemplateAreas:(e=e.isTermsAndConditions)?[["custom-image","headline","logo-image","leadgen-button","cta-button"],["custom-image","headline","logo-image","leadgen-button","terms-and-conditions-label"]]:[["custom-image","headline","logo-image","leadgen-button","cta-button"]],gridTemplateColumns:"max-content auto",gridTemplateRows:"1fr",componentProps:{[o.Components.GridLayout]:{className:"gap-x-2 gap-y-0"},[o.Components.CustomImage]:{imageScale:"horizontal",wrapperClass:"!justify-start",imageWrapperClass:"h-full w-auto",className:"w-auto"},[o.Components.LogoImage]:{className:"max-w-[90px]"},[o.Components.LeadGenButton]:{buttonType:"LeadGen",size:"xlarge"},[o.Components.CTAButton]:{variant:"linkSecondary",size:"none",destination:"landing-page",buttonClass:"font-bold",alignmentClass:(0,a.default)("justify-center h-full",e?"items-end":"items-center")},[o.Components.Headline]:{isFontBold:!1,classNameText:"text-center text-heading line-clamp-none"},[o.Components.TermsAndConditionsLabel]:{wrapperClass:"justify-center pb-1 pt-0.25",className:"text-[9px] leading-[11px]"}}}),"product-collection":e=>(e=(e=e.productDetailsList)?Math.min(e.length,3):0,{gridTemplateAreas:[["headline","custom-image","flex","logo-image","cta-button"]],gridTemplateColumns:"2fr auto auto auto 1fr",gridTemplateRows:"100%",componentProps:{[o.Components.GridLayout]:{className:"p-0 gap-[40px]"},[o.Components.CustomImage]:{imageScale:"horizontal"},[o.Components.LogoImage]:{className:"max-w-[90px]"},[o.Components.Headline]:{classNameText:"text-center text-md pl-3"},[o.Components.CTAButton]:{alignmentClass:"justify-start h-full items-center",variant:"link",size:"small",destination:"store-page",isNoWrap:!1},[o.Components.Flex]:{className:"flex-row justify-around py-0.25",innerClassName:"w-full h-full gap-[20px]",flexItems:Array(e).fill(null).map(((e,t)=>({regions:["product-image"],componentProps:{[o.Components.ProductImage]:{className:"max-w-[60px] py-0.25 px-0.75",enableGreyBackground:!0,enableProductAdLink:!0,productIndex:t}}})))}}}),"product-collection-video":e=>(e=(e=e.productDetailsList)?Math.min(e.length,3):0,{gridTemplateAreas:[["headline","hero-component","flex","logo-image","cta-button"]],gridTemplateColumns:"2fr auto auto auto 1fr",gridTemplateRows:"100%",componentProps:{[o.Components.GridLayout]:{className:"p-0 gap-[40px]"},[o.Components.LogoImage]:{className:"max-w-[90px]"},[o.Components.Headline]:{classNameText:"text-center text-md pl-3"},[o.Components.CTAButton]:{alignmentClass:"justify-start h-full items-center",variant:"link",size:"small",destination:"store-page",isNoWrap:!1},[o.Components.Flex]:{className:"flex-row justify-around py-0.25",innerClassName:"w-full h-full gap-[20px]",flexItems:Array(e).fill(null).map(((e,t)=>({regions:["product-image"],componentProps:{[o.Components.ProductImage]:{className:"max-w-[60px] py-0.25 px-0.75",enableGreyBackground:!0,enableProductAdLink:!0,productIndex:t}}})))}}})}},3454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(868),i=r(5951),s=r(1279),l=r(580);function u(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const d={"product-image":"25%","logo-image":"25%","custom-image":"auto",headline:"25%","buy-box":"1fr"};t.default={global:e=>{var t=e.hasDealBadge,r=e.currentScreen,n=e.isTextCTAButtonExperiment,a=e.showEnergyEfficiency,i=e.showClimatePledgeFriendly;e=e.hasSavingsText;return{componentProps:{[o.Components.BuyBox]:{className:"pr-2",totalLines:i?5:4,priceSizeOverride:t||e?"text-[18px] leading-[18px]":void 0,badgeSize:"small",automatedDealBadgeTextSize:"medium",energyEfficiencySize:"medium",showAdditionalHeadlineLineWhenNeeded:!0,showAdditionalHeadlineLineCharThreshold:r===o.ScreenSizes.BannerLGNarrow?void 0:40,heightInFraction:1,showTextCTA:n&&!a,showCPFLogo:i&&!a,savingsTextSize:"xsmall"},[o.Components.LogoImage]:{className:"max-w-[120px] max-h-[120px] py-[12px] px-1"},[o.Components.ProductImage]:{className:"max-w-[130px] max-h-[130px] py-[12px] px-1"},[o.Components.CustomImage]:{imageScale:"square"},[o.Components.Headline]:{className:"px-2 text-md"}}}},none:e=>{var t=e.showEnergyEfficiency;e=e.showClimatePledgeFriendly;return c(c({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(c(c({},d),{"product-image":"25%"})),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.BuyBox]:{widthInFraction:.7,showCPFLogo:e&&!t}}})},"ci-hl-lo":e=>{var t=e.currentScreen,r=e.isShowroomCreative,n=e.showEnergyEfficiency,a=e.hasDealBadge,s=e.isTextCTAButtonExperiment,l=e.showFreshLogo,u=e.locale,p=e.showClimatePledgeFriendly,m=a||t===o.ScreenSizes.BannerLGNarrow;e=s&&!n?["ratings","social-proofing-message"]:["social-proofing-message"],u=s&&l&&"zh_CN"===u;return c(c({},(0,i.generateGridConfiguration)({baseConfiguration:s&&!n?[["logo-image","headline","buy-box"]]:[["logo-image",m?null:"headline","product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.BuyBox]:{titleRegion:m?"headline":void 0,totalLines:a&&n&&t===o.ScreenSizes.BannerLG?5:void 0,isShowroomCreative:r,widthInFraction:.25,removeItems:e,dealPriceClasses:u?"gap-x-0":void 0,showCPFLogo:p&&!n},[o.Components.Headline]:{className:"px-1"}}})},"ci-hl":e=>{var t=e.currentScreen,r=e.isShowroomCreative,n=e.showEnergyEfficiency,a=e.isSubscribeAndSave,s=e.hasDealBadge,l=e.isTailSizeCreative,u=e.showClimatePledgeFriendly,p=e.showWholeFoodsLogo;e=e.showFreshLogo,s=s&&n||l;return c(c({},(0,i.generateGridConfiguration)({baseConfiguration:t===o.ScreenSizes.BannerLGNarrow?[["custom-image",l?null:"headline","buy-box"]]:[["custom-image",l?null:"headline",s?null:"product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.CustomImage]:{imageScale:"square",wrapperClass:"max-w-[180px]"},[o.Components.BuyBox]:{className:t===o.ScreenSizes.BannerLGNarrow?"pl-1 pr-1":void 0,totalLines:!a&&!n||s?void 0:3,isShowroomCreative:r,widthInFraction:.25,showCPFLogo:u&&!n&&!p&&!e}}})},"ci-lo":e=>{var t=e.currentScreen,r=e.isShowroomCreative,n=e.showEnergyEfficiency,a=e.isSubscribeAndSave,s=e.hasDealBadge,l=e.isTailSizeCreative,u=e.showClimatePledgeFriendly,p=e.showWholeFoodsLogo;e=e.showFreshLogo,t=s&&n||t===o.ScreenSizes.BannerLGNarrow||l;return c(c({},(0,i.generateGridConfiguration)({baseConfiguration:[[l?null:"logo-image","custom-image",t?null:"product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.CustomImage]:{imageScale:"square",wrapperClass:"max-w-[180px]"},[o.Components.BuyBox]:{className:t?"pl-1 pr-1":"",totalLines:!a&&!n||t?void 0:3,isShowroomCreative:r,widthInFraction:.25,showCPFLogo:u&&!n&&!p&&!e}}})},"hl-lo":e=>{var t=e.currentScreen,r=e.hasDealBadge,n=e.showEnergyEfficiency,a=e.isTextCTAButtonExperiment,s=e.showFreshLogo,l=e.locale,u=e.showClimatePledgeFriendly,p=e.showWholeFoodsLogo;e=r||t===o.ScreenSizes.BannerLGNarrow,l=a&&s&&"zh_CN"===l;return c(c({},(0,i.generateGridConfiguration)({baseConfiguration:a&&!n?[["logo-image","headline","buy-box"]]:[["logo-image",e?null:"headline","product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.BuyBox]:{titleRegion:e?"headline":void 0,totalLines:r&&n&&t===o.ScreenSizes.BannerLG?5:void 0,widthInFraction:.25,dealPriceClasses:l?"gap-x-0":void 0,className:a&&!n?"pl-1":void 0,showCPFLogo:u&&!n&&!p&&!s,removeItems:["social-proofing-message"],socialProofingTextVariant:"md"}}})},ci:e=>{var t=e.currentScreen,r=e.showEnergyEfficiency,n=e.isSubscribeAndSave,a=e.hasDealBadge,s=e.isTailSizeCreative;e=e.showClimatePledgeFriendly,t=a&&r||t===o.ScreenSizes.BannerLGNarrow||s;return c(c({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image",t?null:"product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.CustomImage]:{imageScale:s?"square":"horizontal"},[o.Components.BuyBox]:{className:t?"pl-1 pr-1":"",totalLines:!n&&!r||t?void 0:3,widthInFraction:.5,showCPFLogo:e&&!r}}})},lo:()=>c(c({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.BuyBox]:{widthInFraction:.5}}}),hl:()=>c(c({},(0,i.generateGridConfiguration)({baseConfiguration:[["headline","product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(c(c({},d),{"buy-box":"1fr",headline:"25%","product-image":"25%"})),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.GridLayout]:{},[o.Components.BuyBox]:{widthInFraction:.5}}}),hero:e=>{var t=e.activeExperiments;e=e.isVideoAutoPlayDisabled;let r=[["hero-component","buy-box"]],n="auto 1fr";return(t=t[s.Experiments.DesktopHQPVideo.VideoOnRight]||t[s.Experiments.DesktopHQPVideo.VideoOnRightAndPause])&&(r=[["buy-box","hero-component"]],n="1fr auto"),{gridTemplateAreas:r,gridTemplateColumns:n,gridTemplateRows:"auto",componentProps:{[o.Components.GridLayout]:{className:"p-0 gap-1 b-w-md:gap-2"},[o.Components.BuyBox]:{totalLines:5,automatedDealBadgeClasses:"min-w-[150px]",automatedDealBadgeShortContentThreshold:l.REGULARCONTENT_MAX_LENGTH,className:t?"pl-2":void 0,isSavingsTextInline:!1,savingsTextSize:"small"},[o.Components.HeroComponent]:{autoPlayWhenInView:!e}}}},"hero-hl":e=>{var t=e.showEnergyEfficiency,r=e.hasDealBadge,n=e.currentScreen,i=e.activeExperiments;e=e.isVideoAutoPlayDisabled;let u=[["hero-component","buy-box"]],c="auto 1fr";return(i=i[s.Experiments.DesktopHQPVideo.VideoOnRight]||i[s.Experiments.DesktopHQPVideo.VideoOnRightAndPause])&&(u=[["buy-box","hero-component"]],c="1fr auto"),{gridTemplateAreas:u,gridTemplateColumns:c,gridTemplateRows:"auto",componentProps:{[o.Components.GridLayout]:{className:"p-0 gap-x-1 b-w-md:gap-x-4"},[o.Components.BuyBox]:{titleRegion:"both",className:(0,a.default)("p-0.5",{"pl-2":i}),productTitleClasses:"text-base",totalLines:5,automatedDealBadgeClasses:"min-w-[150px]",automatedDealBadgeShortContentThreshold:l.REGULARCONTENT_MAX_LENGTH,removeItems:t&&r||n===o.ScreenSizes.BannerLGNarrow&&t?["product-title"]:[r?"ratings":""],isSavingsTextInline:!1,savingsTextSize:"small"},[o.Components.HeroComponent]:{autoPlayWhenInView:!e}}}},"hero-lo":e=>{var t=e.currentScreen,r=e.showEnergyEfficiency,n=e.hasDealBadge,a=e.isSubscribeAndSave,i=e.activeExperiments;e=e.isVideoAutoPlayDisabled,i=i[s.Experiments.DesktopHQPVideo.VideoOnRight]||i[s.Experiments.DesktopHQPVideo.VideoOnRightAndPause];let u=[["logo-image","hero-component","buy-box"]],c="1fr auto 1fr";return(t=t===o.ScreenSizes.BannerLGNarrow)&&(u=[["hero-component",r?null:"logo-image"],["hero-component","buy-box"]],c="auto 1fr"),i&&(u=[["logo-image","buy-box","hero-component"]],c="1fr 1fr auto"),i&&t&&(u=[[r?null:"logo-image","hero-component"],["buy-box","hero-component"]],c="1fr auto"),{gridTemplateAreas:u,gridTemplateColumns:c,gridTemplateRows:"auto",componentProps:{[o.Components.GridLayout]:{className:"p-0 gap-x-1"},[o.Components.BuyBox]:{className:i&&t?"pl-1":"pr-0.5",productTitleClasses:"text-base",totalLines:t?3:5,removeItems:r&&n||t&&n?[a?"ratings":"product-title"]:void 0,automatedDealBadgeClasses:"min-w-[150px]",automatedDealBadgeShortContentThreshold:l.REGULARCONTENT_MAX_LENGTH,isSavingsTextInline:!1,savingsTextSize:"small"},[o.Components.HeroComponent]:{autoPlayWhenInView:!e}}}},"hero-hl-lo":e=>{var t=e.currentScreen,r=e.showEnergyEfficiency,n=e.hasDealBadge,i=e.activeExperiments;e=e.isVideoAutoPlayDisabled,i=i[s.Experiments.DesktopHQPVideo.VideoOnRight]||i[s.Experiments.DesktopHQPVideo.VideoOnRightAndPause];let u=[["logo-image","hero-component","buy-box"]],c="1fr auto 1fr";return(t=t===o.ScreenSizes.BannerLGNarrow)&&(u=[["hero-component","buy-box"]],c="auto 1fr"),i&&(u=[["logo-image","buy-box","hero-component"]],c="1fr 1fr auto"),i&&t&&(u=[["buy-box","hero-component"]],c="1fr auto"),{gridTemplateAreas:u,gridTemplateColumns:c,gridTemplateRows:"auto",componentProps:{[o.Components.GridLayout]:{className:"p-0 gap-x-1"},[o.Components.Headline]:{textSize:"base",classNameText:"font-bold headline text-md text-gray-700",className:"pb-0 mt-[20px]",alignmentClass:"items-center justify-start"},[o.Components.BuyBox]:{titleRegion:"both",className:(0,a.default)("mb-[15px]",i&&t?"pl-1":"pr-0.5",{"gap-0":n}),productTitleClasses:"text-base",totalLines:5,removeItems:r&&n?["product-title"]:[n?"ratings":""],automatedDealBadgeClasses:"min-w-[150px]",automatedDealBadgeShortContentThreshold:l.REGULARCONTENT_MAX_LENGTH,isSavingsTextInline:!1,savingsTextSize:"small"},[o.Components.LogoImage]:{className:"max-w-[145px] max-h-[145px] p-0.5"},[o.Components.HeroComponent]:{autoPlayWhenInView:!e}}}},"non-endemic":e=>{var t=e.backgroundBrightness,r=e.primaryColorRGB,n=e.customBackgroundColorRGB,a=e.currentScreen;e=e.isTermsAndConditions;return c(c({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","custom-image","flex"]],generateColumns:()=>"1fr auto 2.5fr",generateRows:()=>"auto"})),{},{componentProps:{[o.Components.GridLayout]:{className:"gap-0",style:{backgroundColor:n}},[o.Components.CustomImage]:{imageScale:a===o.ScreenSizes.BannerLGNarrow?"square":"horizontal",className:"pr-2"},[o.Components.LogoImage]:{className:"max-w-[90px] max-h-[90px] py-0.5 px-1",wrapperClassName:"bg-white"},[o.Components.Flex]:{className:"h-full justify-around",innerClassName:"flex-col h-auto",flexItems:[{regions:e?["headline","cta-button","terms-and-conditions-label"]:["headline","cta-button"],componentProps:{[o.Components.Headline]:{classNameText:"text-[22px] leading-[24px]",alignmentClass:"justify-left items-end",className:"mb-1 pr-1"},[o.Components.CTAButton]:{variant:"dark"===t?"blockSmInverted":"blockSm",size:"none",destination:"landing-page",overrideHoverColor:"dark"===t&&"transparent"!==r?r:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"},[o.Components.TermsAndConditionsLabel]:{className:"text-[11px] leading-[13px]",wrapperClass:"absolute right-[8px] bottom-[8px]"}}}]}}})},leadgen:e=>({gridTemplateAreas:[["custom-image","headline","logo-image","leadgen-button"],["custom-image","headline","logo-image","cta-button"],["custom-image","headline","logo-image",(e=e.isTermsAndConditions)?"terms-and-conditions-label":"cta-button"]],gridTemplateColumns:"auto 1fr 1.2fr 1.4fr",gridTemplateRows:e?"2fr 1.75fr 0.25fr":"2fr 1fr 1fr",componentProps:{[o.Components.GridLayout]:{className:"gap-x-2"},[o.Components.CustomImage]:{imageScale:"square"},[o.Components.LogoImage]:{className:"max-w-[145px] max-h-[145px]"},[o.Components.Headline]:{className:"px-0",isFontBold:!1},[o.Components.LeadGenButton]:{buttonType:"LeadGen",size:"xlarge",alignmentClass:"items-end justify-center",buttonClass:"w-full mx-1.5"},[o.Components.CTAButton]:{className:"pt-1.5",variant:"linkSecondary",size:"none",destination:"landing-page",alignmentClass:"justify-center items-start h-full",buttonClass:"font-bold"},[o.Components.TermsAndConditionsLabel]:{className:"text-xs",wrapperClass:"justify-end px-0.5 pb-0.5"}}}),showroom:e=>{var t=e.currentScreen,r=e.isTwitchDarkAd;e=e.primaryColorRGB;return c(c({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","custom-image","flex"]],generateColumns:()=>"1fr auto 2.5fr",generateRows:()=>"auto"})),{},{componentProps:{[o.Components.GridLayout]:{className:"gap-0 pr-1",style:{backgroundColor:"rgba(15, 17, 17, 0.04)"}},[o.Components.CustomImage]:{imageScale:t===o.ScreenSizes.BannerLGNarrow?"square":"horizontal",className:"pr-2"},[o.Components.LogoImage]:{className:"max-w-[90px] max-h-[90px] py-0.5 px-1",wrapperClassName:"bg-white"},[o.Components.Flex]:{className:"h-full justify-around",innerClassName:"flex-col h-auto",flexItems:[{regions:["headline","cta-button"],componentProps:{[o.Components.Headline]:{classNameText:"text-[22px] leading-[24px]",alignmentClass:"justify-left items-end",className:"mb-1"},[o.Components.CTAButton]:{variant:"squarePillWhite",size:"small",destination:"showroom-page",overrideHoverColor:r&&"transparent"!==e?e:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"}}}]}}})},"product-collection":e=>{let t=e.currentScreen,r=e.productDetailsList,n=void 0===r?[]:r,s=e.marketplace;var l=Boolean(1<(null==n?void 0:n.length));const u=(e=t===o.ScreenSizes.BannerLGNarrow||t===o.ScreenSizes.BannerSMNarrow||t===o.ScreenSizes.BannerSM)?["prime-logo","deal-badge"]:[];return l=l||e,e=(null==n?void 0:n.map(((e,t)=>((e,t)=>{var r="DE"===s&&e.isPrime,n=e.isSnsDiscount;return{type:"product-collection",productClickUrl:null==e?void 0:e.clickUrl,slideConfig:c(c({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image"],["buy-box"]],generateColumns:()=>"auto",generateRows:()=>"3fr auto"})),{},{componentProps:{[o.Components.GridLayout]:{className:"place-items-center"},[o.Components.ProductImage]:{className:"h-full w-full py-0.5",wrapperClassName:"min-w-[60px] min-h-[72px] h-full",productIndex:t,enableGreyBackground:!0},[o.Components.BuyBox]:{productIndex:t,wrapperClass:r?"py-0.5":"p-0.5",creativeExperience:o.CreativeExperience.ProductCollectionSlide,isReponsiveBuyBox:!0,isCentered:!0,hideSavingsText:!0,hideProductTitle:!0,responsiveBuyBoxOverrides:{className:(0,a.default)("items-center","justify-center","place-items-center","gap-0.5"),priceSize:r?"small-desktop":"small",primeLogoSize:"small",getBuyboxLayoutFromTemplateAreaConfig:!0,badgeSize:n?"micro":"small"},removeItems:u,hideStrikeOutPrice:r,energyEfficiencySize:"small"}}})}})(e,t))))||[],c(c({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","inset-carousel"]],generateColumns:()=>"auto minmax(0, 1fr)",generateRows:()=>"auto"})),{},{componentProps:{[o.Components.GridLayout]:{className:"px-0 bg-zinc-100"},[o.Components.CustomImage]:{imageScale:"horizontal",wrapperClass:"w-full h-full",imageWrapperClass:"w-full h-full"},[o.Components.InsetCarousel]:{sliderClassName:"py-[8px] w-full",slideClassName:(0,a.default)(l&&"max-w-[160px]","max-h-[110px] bg-white border rounded border-neutral-200"),hasRoundedSlideCorners:!0,loopSlides:!1,centeredSlides:!l,showNavigation:l,slidesPerView:l?"auto":2,slides:[...e,c(c({type:"custom",isBrandLink:!0},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image"],["cta-button"]],generateColumns:()=>"auto",generateRows:()=>"auto 1fr"})),{},{componentProps:{[o.Components.GridLayout]:{className:"gap-y-0.5 py-1 px-1"},[o.Components.LogoImage]:{wrapperClassName:"px-0.5"},[o.Components.CTAButton]:{variant:"link",size:"none",destination:"store-page",isNoWrap:!1,className:"text-center px-1"}}})]}}})},"product-collection-video":e=>{let t=e.currentScreen,r=e.productDetailsList,n=void 0===r?[]:r,s=e.marketplace;var l=Boolean(1<(null==n?void 0:n.length));e=t===o.ScreenSizes.BannerLGNarrow,l=l||e;const u=e?["prime-logo","deal-badge"]:[];return e=(null==n?void 0:n.map(((e,t)=>((e,t)=>{var r=e.isSnsDiscount,n="DE"===s&&e.isPrime;return{type:"product-collection",productClickUrl:null==e?void 0:e.clickUrl,slideConfig:c(c({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image"],["buy-box"]],generateColumns:()=>"auto",generateRows:()=>"3fr auto"})),{},{componentProps:{[o.Components.GridLayout]:{className:"place-items-center"},[o.Components.ProductImage]:{className:"h-full w-full py-0.5",wrapperClassName:"min-w-[60px] min-h-[72px] h-full",productIndex:t,enableGreyBackground:!0},[o.Components.BuyBox]:{productIndex:t,wrapperClass:n?"py-0.5":"p-0.5",creativeExperience:o.CreativeExperience.ProductCollectionVideoSlide,isReponsiveBuyBox:!0,isCentered:!0,hideProductTitle:!0,responsiveBuyBoxOverrides:{className:(0,a.default)("items-center","justify-center","place-items-center","gap-0.5"),priceSize:n?"small-desktop":"small",primeLogoSize:n?"small":"medium",getBuyboxLayoutFromTemplateAreaConfig:!0,badgeSize:r?"micro":"small"},hideStrikeOutPrice:n,energyEfficiencySize:"small",isSavingsTextInline:!1,removeItems:u}}})}})(e,t))))||[],c(c({},(0,i.generateGridConfiguration)({baseConfiguration:[["hero-component","inset-carousel"]],generateColumns:()=>"auto minmax(0, 1fr)",generateRows:()=>"auto"})),{},{componentProps:{[o.Components.GridLayout]:{className:"px-0 bg-zinc-100"},[o.Components.InsetCarousel]:{sliderClassName:"py-[8px] w-full",slideClassName:(0,a.default)(l&&"max-w-[160px]","h-full bg-white border rounded border-neutral-200"),hasRoundedSlideCorners:!0,loopSlides:!1,centeredSlides:!l,showNavigation:l,slidesPerView:l?"auto":2,slides:[...e,c(c({type:"custom",isBrandLink:!0},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image"],["cta-button"]],generateColumns:()=>"auto",generateRows:()=>"auto 1fr"})),{},{componentProps:{[o.Components.GridLayout]:{className:"gap-y-0.5 py-1 px-1"},[o.Components.LogoImage]:{wrapperClassName:"px-0.5"},[o.Components.CTAButton]:{variant:"link",size:"none",destination:"store-page",isNoWrap:!1,className:"text-center px-1"}}})]}}})}}},7755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(6475),i=r(868),s=r(5951);function l(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const c={"product-image":"25%","logo-image":"25%","custom-image":"auto",headline:"25%","buy-box":"1fr"},d={"product-image":"2fr","logo-image":"2fr","custom-image":"auto","product-title":"auto",headline:"auto","buy-box":"3fr"};t.default={global:e=>{var t=e.hasDealBadge,r=e.isTextCTAButtonExperiment,n=e.showEnergyEfficiency,s=e.activeExperiments;e=e.showClimatePledgeFriendly,s=(0,o.isExperimentGroupActive)(s,o.Experiments.ThickBorder);return{componentProps:{[i.Components.BuyBox]:{totalLines:e?4:3,headlineClasses:"text-md",productTitleClasses:"text-md",dealPriceClasses:"gap-y-0",priceSizeOverride:t?"text-[18px] leading-[18px]":void 0,badgeSize:"small",automatedDealBadgeTextSize:"medium",energyEfficiencySize:"medium",heightInFraction:1,showTextCTA:r&&!n,className:(0,a.default)(s?"gap-y-0":""),showCPFLogo:e,savingsTextSize:t?"xsmall":"medium",savingsTextClassName:t?"pb-[1px]":void 0,removeItems:["social-proofing-message"]},[i.Components.LogoImage]:{className:"max-w-[90px] max-h-[90px] py-0.5 px-1"},[i.Components.ProductImage]:{className:"max-w-[110px] max-w-[110px] py-[6px] px-1"},[i.Components.CustomImage]:{imageScale:"horizontal"},[i.Components.Headline]:{className:"px-2 text-md"}}}},none:e=>{var t=e.isTailSizeCreative,r=e.showEnergyEfficiency,n=e.hasDealBadge;e=e.showClimatePledgeFriendly;return u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["product-image","buy-box"]],generateColumns:t?(0,s.getBasicColumns)(d):(0,s.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.ProductImage]:{className:"min-w-[80px] max-w-[130px] py-0.5 px-1",animationType:"scrollShine"},[i.Components.BuyBox]:{widthInFraction:.7,showCPFLogo:e&&!r&&!n}}})},"ci-hl-lo":e=>{var t=e.isShowroomCreative,r=e.showEnergyEfficiency,n=e.hasDealBadge;e=e.showClimatePledgeFriendly;return u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["logo-image","custom-image","buy-box"]],generateColumns:(0,s.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.BuyBox]:{isShowroomCreative:t,className:"gap-y-0 pl-2",titleRegion:"headline",widthInFraction:.25,showCPFLogo:e&&!r&&!n}}})},"ci-hl":e=>{var t=e.isShowroomCreative,r=e.activeExperiments,n=e.showEnergyEfficiency,l=e.hasDealBadge;e=e.showClimatePledgeFriendly,r=(0,o.isExperimentGroupActive)(r,o.Experiments.ThickBorder);return u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["custom-image","headline","buy-box"]],generateColumns:(0,s.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.Headline]:{className:"px-3 text-md"},[i.Components.BuyBox]:{className:(0,a.default)("pr-2",r?"gap-y-0":""),isShowroomCreative:t,widthInFraction:.5,showCPFLogo:e&&!n&&!l}}})},"ci-lo":e=>{var t=e.isShowroomCreative,r=e.showEnergyEfficiency,n=e.hasDealBadge;e=e.showClimatePledgeFriendly;return u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["logo-image","custom-image","buy-box"]],generateColumns:(0,s.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.BuyBox]:{isShowroomCreative:t,className:"gap-y-0 pl-2",widthInFraction:.5,showCPFLogo:e&&!r&&!n}}})},"hl-lo":e=>{var t=e.isTextCTAButtonExperiment,r=e.showFreshLogo,n=e.isTailSizeCreative,a=e.showEnergyEfficiency,o=e.hasDealBadge;e=e.showClimatePledgeFriendly;return u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["logo-image",t&&r||n?null:"product-image","buy-box"]],generateColumns:(0,s.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.BuyBox]:{className:"pr-2 gap-y-0",titleRegion:"headline",widthInFraction:.25,showCPFLogo:e&&!a&&!o},[i.Components.ProductImage]:{animationType:"scrollShine"}}})},ci:e=>{var t=e.activeExperiments,r=e.showEnergyEfficiency,n=e.hasDealBadge;e=e.showClimatePledgeFriendly,t=(0,o.isExperimentGroupActive)(t,o.Experiments.ThickBorder);return u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["custom-image","buy-box","product-image"]],generateColumns:(0,s.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.ProductImage]:{className:"p-1",animationType:"scrollShine"},[i.Components.BuyBox]:{className:(0,a.default)("px-2",t?"gap-y-0":""),widthInFraction:.5,showCPFLogo:e&&!r&&!n}}})},lo:e=>{var t=e.activeExperiments,r=e.showEnergyEfficiency,n=e.hasDealBadge;e=e.showClimatePledgeFriendly,t=(0,o.isExperimentGroupActive)(t,o.Experiments.ThickBorder);return u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["logo-image","product-image","buy-box"]],generateColumns:(0,s.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.BuyBox]:{className:(0,a.default)("pr-1",t?"gap-y-0":""),widthInFraction:.5,showCPFLogo:e&&!r&&!n},[i.Components.ProductImage]:{animationType:"scrollShine"}}})},hl:e=>{var t=e.showEnergyEfficiency,r=e.hasDealBadge;e=e.showClimatePledgeFriendly;return u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["headline","product-image","buy-box"]],generateColumns:(0,s.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.Headline]:{className:"pl-4 pr-2 text-md"},[i.Components.BuyBox]:{widthInFraction:.5,showCPFLogo:e&&!t&&!r},[i.Components.ProductImage]:{animationType:"scrollShine"}}})},hero:()=>({gridTemplateAreas:[["hero-component","buy-box"]],gridTemplateColumns:"1fr 1fr",gridTemplateRows:"auto",componentProps:{[i.Components.GridLayout]:{className:"p-0 gap-2"},[i.Components.BuyBox]:{totalLines:4}}}),"hero-hl":e=>{var t=e.showEnergyEfficiency;e=e.hasDealBadge;return{gridTemplateAreas:[["hero-component","headline"],["hero-component","buy-box"]],gridTemplateColumns:"auto 1fr",gridTemplateRows:"1fr 1fr 1fr",componentProps:{[i.Components.GridLayout]:{className:"p-0 gap-x-4"},[i.Components.Headline]:{textSize:"base",classNameText:"font-bold headline text-md text-gray-700",className:"p-0 gap-0 pb-0",alignmentClass:"items-center justify-start"},[i.Components.BuyBox]:{className:"p-0",productTitleClasses:"text-base",totalLines:3,removeItems:t&&e?["product-title"]:["ratings"]}}}},"hero-lo":e=>{var t=e.showEnergyEfficiency;e=e.hasDealBadge;return{gridTemplateAreas:[["logo-image","hero-component","buy-box"]],gridTemplateColumns:"1fr auto 1fr",gridTemplateRows:"1fr 1fr",componentProps:{[i.Components.GridLayout]:{className:"p-0 gap-x-1"},[i.Components.BuyBox]:{className:"p-1",productTitleClasses:"text-base",totalLines:3,removeItems:t&&e?["product-title"]:["ratings"]}}}},"hero-hl-lo":e=>{var t=e.showEnergyEfficiency;e=e.hasDealBadge;return{gridTemplateAreas:[["logo-image","hero-component","headline"],["logo-image","hero-component","buy-box"]],gridTemplateColumns:"1fr auto 1fr",gridTemplateRows:"1fr 1fr",componentProps:{[i.Components.GridLayout]:{className:"p-0 gap-x-1"},[i.Components.Headline]:{textSize:"base",classNameText:"font-bold headline text-md text-gray-700",className:"pb-0",alignmentClass:"items-center justify-start"},[i.Components.BuyBox]:{className:e?"mb-[6px] gap-0":"",productTitleClasses:"text-base",totalLines:3,removeItems:t&&e?["product-title"]:["ratings"]},[i.Components.LogoImage]:{className:"max-w-[145px] max-h-[145px] p-0.5"},[i.Components.ProductTitle]:{lines:1,className:"line-clamp-1"}}}},"non-endemic":e=>{var t=e.isTermsAndConditions,r=e.backgroundBrightness,n=e.primaryColorRGB;e=e.customBackgroundColorRGB;return u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["logo-image","custom-image","flex"]],generateColumns:()=>"1fr auto 4fr",generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"gap-0",style:{backgroundColor:e}},[i.Components.CustomImage]:{imageScale:"horizontal",className:"pr-2"},[i.Components.LogoImage]:{className:"max-w-[90px] max-h-[90px] py-0.5 px-1",wrapperClassName:"bg-white"},[i.Components.Flex]:{className:"h-full justify-around",innerClassName:"flex-col h-auto",flexItems:[{regions:t?["headline","cta-button","terms-and-conditions-label"]:["headline","cta-button"],componentProps:{[i.Components.Headline]:{classNameText:"text-[16px] leading-[20px]",alignmentClass:"justify-left items-end",className:"mb-1.5 pr-1"},[i.Components.CTAButton]:{variant:"dark"===r?"blockSmInverted":"blockSm",size:"none",destination:"landing-page",overrideHoverColor:"dark"===r&&"transparent"!==n?n:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"},[i.Components.TermsAndConditionsLabel]:{className:"text-[11px] leading-[13px]",wrapperClass:"absolute right-[8px] bottom-[8px]"}}}]}}})},leadgen:e=>({gridTemplateAreas:[["logo-image","custom-image","headline","leadgen-button"],["cta-button","custom-image","headline",(e=e.isTermsAndConditions)?"terms-and-conditions-label":"leadgen-button"]],gridTemplateColumns:"1fr auto 1.3fr 1fr",gridTemplateRows:"1.2fr 1fr",componentProps:{[i.Components.GridLayout]:{className:"p-0"},[i.Components.CustomImage]:{imageScale:"horizontal"},[i.Components.LogoImage]:{className:"max-w-[120px] max-h-[45px] p-0.5 pt-1"},[i.Components.Headline]:{className:"pl-3 pr-2",isFontBold:!1},[i.Components.LeadGenButton]:{buttonType:"LeadGen",className:e?"px-0.5 pt-[25px]":"p-0.5",size:e?"large":"xlarge"},[i.Components.CTAButton]:{className:"p-0.5 pb-1",variant:"linkSecondary",size:"none",destination:"landing-page",buttonClass:"font-bold"},[i.Components.TermsAndConditionsLabel]:{className:"text-xs",wrapperClass:"justify-center"}}}),showroom:e=>{var t=e.isTwitchDarkAd;e=e.primaryColorRGB;return u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["logo-image","custom-image","flex"]],generateColumns:()=>"1fr auto 4fr",generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"gap-0 pr-1",style:{backgroundColor:"rgba(15, 17, 17, 0.04)"}},[i.Components.CustomImage]:{imageScale:"horizontal",className:"pr-2"},[i.Components.LogoImage]:{className:"max-w-[90px] max-h-[90px] py-0.5 px-1",wrapperClassName:"bg-white"},[i.Components.Flex]:{className:"h-full justify-around",innerClassName:"flex-col h-auto",flexItems:[{regions:["headline","cta-button"],componentProps:{[i.Components.Headline]:{classNameText:"text-[16px] leading-[20px]",alignmentClass:"justify-left items-end",className:"mb-1.5"},[i.Components.CTAButton]:{variant:"squarePillWhite",size:"small",destination:"showroom-page",overrideHoverColor:t&&"transparent"!==e?e:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"}}}]}}})}}},9854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(868),i=r(5951);function s(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const u={"product-image":"auto","logo-image":"auto","custom-image":"auto","buy-box":"auto"};t.default={global:e=>{var t=e.isSubscribeAndSave,r=e.showEnergyEfficiency,n=e.headline,a=e.showFreshLogo,i=e.showWholeFoodsLogo,s=e.hasDealBadge,l=e.isCoupon,u=e.isPmpOrMario;e=e.hasSavingsText;let c=r?t&&!n?3:4:t?4:5;return{componentProps:{[o.Components.BuyBox]:{totalLines:c,badgeSize:"small",automatedDealBadgeTextSize:"small",priceSize:"small",hideSavingsText:u,energyEfficiencySize:"medium",showAdditionalHeadlineLineWhenNeeded:!0,removeItems:(a||i)&&(s||t||e)&&!l?["ratings"]:void 0,isSavingsTextInline:!1,savingsTextSize:"small",socialProofingTextVariant:"sm"},[o.Components.CustomImage]:{imageScale:"square"},[o.Components.GridLayout]:{className:"p-1 gap-1"},[o.Components.ProductImage]:{className:"min-w-[80px] max-w-[95px] py-0.5 px-1"},[o.Components.LogoImage]:{className:"min-w-[80px] max-w-[95px] py-0.5 px-1"}}}},none:()=>l(l({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(u),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.ProductImage]:{animationType:"scrollShine"}}}),"ci-hl-lo":()=>l(l({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(u),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.BuyBox]:{titleRegion:"headline"}}}),"ci-hl":()=>l(l({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(u),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.BuyBox]:{titleRegion:"headline"}}}),"ci-lo":()=>l({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(u),generateRows:()=>"auto"})),"hl-lo":()=>l(l({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(u),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.BuyBox]:{titleRegion:"headline"}}}),ci:()=>l({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(u),generateRows:()=>"auto"})),lo:()=>l({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(u),generateRows:()=>"auto"})),hl:()=>l(l({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(u),generateRows:()=>"auto"})),{},{componentProps:{[o.Components.BuyBox]:{titleRegion:"headline"},[o.Components.ProductImage]:{animationType:"scrollShine"}}}),"non-endemic":e=>{var t=e.isTermsAndConditions,r=e.backgroundBrightness,n=e.primaryColorRGB;e=e.customBackgroundColorRGB;return l(l({},(0,i.generateGridConfiguration)({baseConfiguration:t?[["custom-image","logo-image","logo-image"],["custom-image","headline","headline"],["custom-image","cta-button","terms-and-conditions-label"]]:[["custom-image","logo-image"],["custom-image","headline"],["custom-image","cta-button"]],generateColumns:()=>"2fr 3fr",generateRows:()=>"auto"})),{},{componentProps:{[o.Components.GridLayout]:{className:"gap-x-1.5",style:{backgroundColor:e}},[o.Components.CustomImage]:{imageScale:"square"},[o.Components.LogoImage]:{className:"max-w-[87px] max-h-[45px]",wrapperClassName:"items-end justify-start",logoFrameClassName:"bg-white items-end p-[6px]",alignment:"leftBottom"},[o.Components.TermsAndConditionsLabel]:{className:"text-[9px] leading-[11px]",wrapperClass:"absolute right-[8px] bottom-[8px]"},[o.Components.Headline]:{classNameText:"text-[14px] leading-[18px]",alignmentClass:"justify-left items-center",className:"pt-0.5 pb-0.25"},[o.Components.CTAButton]:{variant:"dark"===r?"blockXSmInverted":"blockXSm",size:"none",destination:"landing-page",overrideHoverColor:"dark"===r&&"transparent"!==n?n:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"}}})},showroom:e=>{var t=e.isTwitchDarkAd;e=e.primaryColorRGB;return l(l({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","logo-image"],["custom-image","headline"],["custom-image","cta-button"]],generateColumns:()=>"2fr 3fr",generateRows:()=>"auto"})),{},{componentProps:{[o.Components.GridLayout]:{className:"gap-x-1.5",style:{backgroundColor:"rgba(15, 17, 17, 0.04)"}},[o.Components.CustomImage]:{imageScale:"square"},[o.Components.LogoImage]:{className:"max-w-[87px] max-h-[45px]",wrapperClassName:"items-end justify-start",logoFrameClassName:"bg-white items-end p-[6px]",alignment:"leftBottom"},[o.Components.Headline]:{classNameText:"text-[14px] leading-[18px]",alignmentClass:"justify-left items-center",className:"pt-0.5 pb-0.25"},[o.Components.CTAButton]:{variant:"squarePillWhite",size:"xsmall",destination:"showroom-page",overrideHoverColor:t&&"transparent"!==e?e:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"}}})},leadgen:e=>({gridTemplateAreas:(e=e.isTermsAndConditions)?[["custom-image","custom-image","logo-image","logo-image","logo-image"],["custom-image","custom-image","cta-button","cta-button","cta-button"],["headline","headline","headline","leadgen-button","leadgen-button"],["headline","headline","headline","terms-and-conditions-label","terms-and-conditions-label"]]:[["custom-image","custom-image","logo-image","logo-image","logo-image"],["custom-image","custom-image","cta-button","cta-button","cta-button"],["headline","headline","headline","leadgen-button","leadgen-button"]],gridTemplateColumns:"1fr 1fr 1fr 1fr 1fr",gridTemplateRows:e?"1.5fr 1.5fr 1fr 1fr":"1fr 1fr 1.2fr",componentProps:{[o.Components.GridLayout]:{className:"p-0"},[o.Components.CustomImage]:{imageScale:"square",wrapperClass:"!justify-start",imageWrapperClass:"w-auto h-full",imageAlignment:"leftCenter",className:"w-auto"},[o.Components.LogoImage]:{wrapperClassName:"items-end mt-1.5",className:"max-w-[88px] max-h-[48px]",logoFrameClassName:"h-auto"},[o.Components.Headline]:{className:"p-1",classNameText:"text-xs leading-4",isFontBold:!1},[o.Components.LeadGenButton]:{buttonType:"LeadGen",className:(0,a.default)("pr-1",e?"!items-end":"items-center"),size:e?"small":"xlarge",buttonClass:"min-w-[100px]"},[o.Components.CTAButton]:{variant:"linkSecondary",size:"none",destination:"landing-page",buttonClass:"font-bold"},[o.Components.TermsAndConditionsLabel]:{wrapperClass:"justify-center pb-1 pt-0.5",className:"text-[9px] leading-[11px]"}}})}},9840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(6475),i=r(5951),s=r(868),l=r(580),u=r(4548);function c(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const p={"product-image":"auto","logo-image":"auto","custom-image":"auto","buy-box":"1fr","tease-images":"auto",headline:"auto","cta-button":"auto","hero-component":"auto"};t.default={global:e=>{var t=e.showEnergyEfficiency,r=e.currentScreen,n=e.activeExperiments,a=e.showClimatePledgeFriendly,i=e.isRioPricing,u=e.isPricePerUnit;e=e.showStrikeThroughPrice,n=(0,o.isExperimentGroupActive)(n,o.Experiments.ThickBorder);return{componentProps:{[s.Components.GridLayout]:{className:"px-0.5"},[s.Components.BuyBox]:{className:"pr-1",totalLines:i&&u&&e?3:4,productTitleClasses:"text-base",badgeSize:"small",automatedDealBadgeTextSize:"medium",automatedDealBadgeShortContentThreshold:r===s.ScreenSizes.BannerSMNarrow?l.REGULARCONTENT_MAX_LENGTH:void 0,energyEfficiencySize:"medium",showAdditionalHeadlineLineWhenNeeded:t,showAdditionalHeadlineLineCharThreshold:r===s.ScreenSizes.BannerSMNarrow?25:40,removeItems:t?["deal-badge"]:void 0,heightInFraction:1,widthInFraction:.7,showCPFLogo:a&&!t,savingsTextSize:i?"mediumPlus":"xsmall",priceSize:i?"mediumPlus":void 0},[s.Components.CustomImage]:{imageScale:"square"},[s.Components.ProductImage]:{className:"max-w-[105px] max-h-[105px]",wrapperClassName:n?"p-0.5":"p-1"},[s.Components.LogoImage]:{className:"max-w-[80px] max-h-[80px]",wrapperClassName:n?"p-0.5":"p-1"},[s.Components.Headline]:{classNameText:"text-base"}}}},none:e=>{var t=e.currentScreen,r=e.width,n=e.height;e=t===s.ScreenSizes.BannerSMNarrow,n=(0,u.isMobileHQP)(r,n);return d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(p),generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"p-0"},[s.Components.ProductImage]:{className:(0,a.default)(e?"max-w-[120px]":"max-w-[240px]"),wrapperClassName:(0,a.default)("min-w-[104px]","py-0.25",t===s.ScreenSizes.BannerSMNarrow?"px-0.5":"px-1"),animationType:n?"scrollShine":void 0,animationThreshold:n?.75:void 0}}})},"ci-hl-lo":e=>{var t=e.width,r=e.height,n=e.hasSavingsText,l=e.currentScreen,c=e.isShowroomCreative,m=e.isTextCTAButtonExperiment,f=e.showEnergyEfficiency,g=e.isSubscribeAndSave,h=e.locale,y=e.isCoupon,v=e.activeExperiments;e=e.hasDealBadge,v=(0,o.isExperimentGroupActive)(v,o.Experiments.ThickBorder);const b=new Set;m&&!f&&n&&(b.add("ratings"),b.add("deal-badge")),!v||"ja_JP"!==h&&"de_DE"!==h||(b.clear(),(n||y)&&b.add("deal-badge"),e&&!y&&b.add("ratings"));let C=[["logo-image","buy-box",l===s.ScreenSizes.BannerSM?"custom-image":null]];return(r=(0,u.isMobileHQP)(t,r))&&(C=[["tease-images","buy-box"]]),d(d({},(0,i.generateGridConfiguration)({baseConfiguration:C,generateColumns:(0,i.getBasicColumns)(d(d({},p),{"logo-image":"104px"})),generateRows:()=>"auto"})),{},{componentProps:{[s.Components.BuyBox]:{titleRegion:"headline",className:"pr-1",isShowroomCreative:c,showAdditionalHeadlineLineCharThreshold:25,showTextCTA:m&&!f,wholeFoodsLogoSize:m&&g?"xsmall":void 0,removeItems:b.size?[...b]:void 0,widthInFraction:l===s.ScreenSizes.BannerSM?.5:void 0},[s.Components.GridLayout]:{className:(0,a.default)("px-0",r?"gap-1":"")},[s.Components.CustomImage]:{imageScale:"square",wrapperClass:"max-w-[180px]"},[s.Components.TeaseImages]:{images:["custom-image","logo-image"],width:125}}})},"ci-hl":e=>{var t=e.width,r=e.height,n=e.hasSavingsText,a=e.isShowroomCreative,l=e.showEnergyEfficiency,c=e.isTextCTAButtonExperiment,m=e.isSubscribeAndSave,f=e.showWholeFoodsLogo,g=e.showFreshLogo,h=e.locale,y=e.isCoupon,v=e.activeExperiments;e=e.hasDealBadge,g=c&&m&&"es_US"===h&&f||c&&g,v=(0,o.isExperimentGroupActive)(v,o.Experiments.ThickBorder);let b=[];g&&(b=[],b.push("ratings"),b.push("deal-badge")),v&&"ja_JP"===h&&(b=[],(n||y)&&b.push("deal-badge"),e&&!y&&b.push("ratings"));let C=[["custom-image","buy-box"]];return(0,u.isMobileHQP)(t,r)&&(C=[["tease-images","buy-box"]]),d(d({},(0,i.generateGridConfiguration)({baseConfiguration:C,generateColumns:(0,i.getBasicColumns)(d(d({},p),{"product-image":"104px"})),generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"gap-1"},[s.Components.BuyBox]:{titleRegion:"both",isShowroomCreative:a,showTextCTA:c&&!l,removeItems:b,showCPFLogo:!1},[s.Components.CustomImage]:{imageScale:"square",wrapperClass:"max-w-[180px]"},[s.Components.TeaseImages]:{images:["product-image","custom-image"],width:125}}})},"ci-lo":e=>{var t=e.width,r=e.height,n=e.currentScreen,l=e.isShowroomCreative,c=e.isTextCTAButtonExperiment,m=e.showEnergyEfficiency,f=e.hasSavingsText,g=e.showFreshLogo,h=e.locale,y=e.hasDealBadge,v=e.isCoupon;e=e.activeExperiments,e=(0,o.isExperimentGroupActive)(e,o.Experiments.ThickBorder);const b=new Set;c&&!m&&f&&g&&(b.add("ratings"),b.add("deal-badge")),!e||"ja_JP"!==h&&"de_DE"!==h||(b.clear(),(f||v)&&b.add("deal-badge"),y&&!v&&b.add("ratings"));let C=n===s.ScreenSizes.BannerSMNarrow?[["logo-image","buy-box"]]:[["logo-image","buy-box","product-image"]];return(r=(0,u.isMobileHQP)(t,r))&&(C=[["tease-images","buy-box"]]),d(d({},(0,i.generateGridConfiguration)({baseConfiguration:C,generateColumns:(0,i.getBasicColumns)(d(d({},p),{"logo-image":"104px","product-image":"25%"})),generateRows:()=>"auto"})),{},{componentProps:{[s.Components.BuyBox]:{className:"p-0",isShowroomCreative:l,showTextCTA:c&&!m,removeItems:b.size?[...b]:void 0,widthInFraction:n===s.ScreenSizes.BannerSM?.5:void 0},[s.Components.GridLayout]:{className:(0,a.default)("px-0",r?"gap-1":"")},[s.Components.CustomImage]:{imageScale:"square",wrapperClass:"max-w-[180px]"},[s.Components.TeaseImages]:{images:["custom-image","logo-image"],width:125}}})},"hl-lo":e=>{var t=e.width,r=e.height,n=e.activeExperiments,a=e.isTextCTAButtonExperiment,l=e.showEnergyEfficiency,c=e.hasSavingsText;e=e.locale,n=(0,o.isExperimentGroupActive)(n,o.Experiments.ThickBorder),e={[s.Components.TeaseImages]:{images:["product-image","logo-image"]},[s.Components.BuyBox]:{titleRegion:"both",showTextCTA:a&&!l,removeItems:a&&!l&&c||n&&"ja_JP"===e?["ratings"]:void 0}};return d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[[(0,u.isMobileHQP)(t,r)?"tease-images":"product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(p),generateRows:()=>"auto"})),{},{componentProps:e})},ci:e=>{var t=e.width,r=e.height,n=e.currentScreen,a=e.hasSavingsText,l=e.hasDealBadge,c=e.showEnergyEfficiency,m=e.isTextCTAButtonExperiment,f=e.isSubscribeAndSave,g=e.showFreshLogo,h=e.locale;e=e.activeExperiments,l=(0,o.isExperimentGroupActive)(e,o.Experiments.ThickBorder)&&"ja_JP"===h&&l;let y=[""];(c||m&&f||m&&a&&g)&&(y=["deal-badge"]);let v=[["custom-image","buy-box"]];return(r=(0,u.isMobileHQP)(t,r))&&(v=[["tease-images","buy-box"]]),d(d({},(0,i.generateGridConfiguration)({baseConfiguration:v,generateColumns:(0,i.getBasicColumns)(p),generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"gap-1"},[s.Components.CustomImage]:{imageScale:n===s.ScreenSizes.BannerSMNarrow||c||r?"square":"horizontal"},[s.Components.BuyBox]:d({removeItems:y,showTextCTA:m&&!c,widthInFraction:n===s.ScreenSizes.BannerSM?.5:void 0},l&&{productTitleMaxLines:1}),[s.Components.TeaseImages]:{images:["product-image","custom-image"],width:125}}})},lo:e=>{var t=e.width,r=e.height,n=e.currentScreen,a=e.isTextCTAButtonExperiment,l=e.showEnergyEfficiency,c=e.hasSavingsText,m=e.showFreshLogo,f=e.isCoupon,g=e.hasDealBadge,h=e.locale;e=e.activeExperiments;const y=new Set;e=(0,o.isExperimentGroupActive)(e,o.Experiments.ThickBorder),a&&!l&&c&&m&&(y.add("ratings"),y.add("deal-badge")),!e||"ja_JP"!==h&&"de_DE"!==h||(y.clear(),(c||f)&&y.add("deal-badge"),g&&!f&&y.add("ratings"));let v=n===s.ScreenSizes.BannerSMNarrow?[["logo-image","buy-box"]]:[["logo-image","buy-box","product-image"]];return(0,u.isMobileHQP)(t,r)&&(v=[["tease-images","buy-box"]]),d(d({},(0,i.generateGridConfiguration)({baseConfiguration:v,generateColumns:(0,i.getBasicColumns)(d(d({},p),{"logo-image":"104px","product-image":"25%"})),generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"px-0"},[s.Components.BuyBox]:{showTextCTA:a&&!l,removeItems:y.size?[...y]:void 0,widthInFraction:n===s.ScreenSizes.BannerSM?.5:void 0},[s.Components.TeaseImages]:{images:["product-image","logo-image"],width:150}}})},hl:e=>{var t=e.isTextCTAButtonExperiment,r=e.showEnergyEfficiency;e=e.hasSavingsText,e=t&&!r&&e?["ratings"]:void 0;return d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(d(d({},p),{"product-image":"104px"})),generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"p-0"},[s.Components.ProductImage]:{className:"max-w-[105px] max-h-[105px]"},[s.Components.BuyBox]:{titleRegion:"both",showTextCTA:t&&!r,removeItems:e}}})},zoetrope:e=>{var t=e.isSubscribeAndSave,r=e.showEnergyEfficiency,n=e.isCoupon,u=e.isAutomatedDealBadge,c=e.isPmpOrMario,m=e.activeExperiments,f=e.hasCustomImage;e=e.isBrandLogoUrlPresent;return{slides:[d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","buy-box"]],generateColumns:(0,i.getBasicColumns)(d(d({},p),{"product-image":u?"30%":"35%"})),generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"gap-1 p-1"},[s.Components.ProductImage]:{className:"max-w-[105px] max-h-[105px]",wrapperClassName:"p-0"},[s.Components.Slide]:{className:"max-w-[207px] rounded-[4px]"},[s.Components.BuyBox]:{className:"p-0",productTitleMaxLines:2,productTitleClasses:"text-base",totalLines:3,energyEfficiencySize:"small",priceSizeOverride:"text-[14px]",removeItems:r?["deal-badge","deal-price"]:void 0,hideBadge:t,showRectangleWithCTA:!1,energyEfficiencyClasses:"mt-0.5",hideSavingsText:c,dealBadgeClasses:(0,a.default)("mt-0",{"mb-0.5":!t&&!n}),badgeSize:"small",automatedDealBadgeTextSize:"small",automatedDealBadgeShortContentThreshold:l.REGULARCONTENT_MAX_LENGTH,isSavingsTextInline:!1,savingsTextSize:"small"}}}),d({},m[o.Experiments.EnableZoetropeMultiProductImagesWithNoCustomImage]||m[o.Experiments.EnableZoetropeMultiProductImages]&&!1===f?d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image"]],generateColumns:()=>"auto",generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"gap-1 p-1"},[s.Components.ProductImage]:{className:"max-h-full max-w-full justify-center items-center",wrapperClassName:"p-0",index:1},[s.Components.Slide]:{className:"max-w-[207px] rounded-[4px]"}}}):d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image"]],generateColumns:()=>"auto",generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"p-0"},[s.Components.CustomImage]:{imageScale:"horizontal",showBorder:!1},[s.Components.Slide]:{className:"max-w-[207px] rounded-[4px]"}}})),d({},m[o.Experiments.EnableZoetropeMultiProductImages]&&!1===e?d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image"]],generateColumns:()=>"auto",generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"gap-1 p-1"},[s.Components.ProductImage]:{className:"max-h-full max-w-full justify-center items-center",wrapperClassName:"p-0",index:!0===f?1:2},[s.Components.Slide]:{className:"max-w-[207px] rounded-[4px]"}}}):d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image"],["cta-button"]],generateColumns:()=>"auto",generateRows:()=>"auto auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"py-2"},[s.Components.LogoImage]:{className:"max-w-[110px] max-h-[50px] pb-1",wrapperClassName:"p-0"},[s.Components.Slide]:{hasShadedBackground:!1,isBrandLink:!0,className:"max-w-[207px] rounded-[4px]"},[s.Components.BuyBox]:{showRectangleWithCTA:!1},[s.Components.CTAButton]:{variant:"link",size:"none",destination:"store-page",isNoWrap:!1}}}))],componentProps:{[s.Components.Slider]:{sliderClassName:"px-2",hasDropShadow:!1,hasRoundedSlideCorners:!0}}}},"non-endemic":e=>{var t=e.isTermsAndConditions,r=e.backgroundBrightness,n=e.primaryColorRGB,a=e.customBackgroundColorRGB;e=e.currentScreen;return d(d({},(0,i.generateGridConfiguration)({baseConfiguration:t?[["custom-image","logo-image","logo-image"],["custom-image","headline","headline"],["custom-image","cta-button","terms-and-conditions-label"]]:[["custom-image","logo-image"],["custom-image","headline"],["custom-image","cta-button"]],generateColumns:()=>"auto 1fr",generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"gap-x-1",style:{backgroundColor:a}},[s.Components.CustomImage]:{imageScale:e===s.ScreenSizes.BannerSMNarrow?"square":"horizontal"},[s.Components.LogoImage]:{className:"max-w-[92px] max-h-[36px]",wrapperClassName:"items-end justify-start",logoFrameClassName:"bg-white items-end py-0.5 px-[6px]",alignment:"leftBottom"},[s.Components.TermsAndConditionsLabel]:{className:"text-[9px] leading-[11px]",wrapperClass:"absolute right-[8px] bottom-[8px]"},[s.Components.Headline]:{classNameText:"text-[14px] leading-[16px]",alignmentClass:"justify-left items-center",className:"pr-1 py-0.25"},[s.Components.CTAButton]:{variant:"dark"===r?"blockXSmInverted":"blockXSm",size:"none",destination:"landing-page",overrideHoverColor:"dark"===r&&"transparent"!==n?n:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"}}})},hero:e=>{var t=e.isSubscribeAndSave,r=e.showWholeFoodsLogo,n=e.currentScreen;e=e.showEnergyEfficiency,n=n===s.ScreenSizes.BannerSMNarrow;let a;return(r&&t||e)&&(a=["deal-badge"]),d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["hero-component","buy-box"]],generateColumns:(0,i.getBasicColumns)(p),generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"gap-1"},[s.Components.BuyBox]:{removeItems:a,totalLines:n?3:4,priceSizeOverride:e&&n?"text-[14px]":void 0,energyEfficiencySize:n?"small":void 0,isSavingsTextInline:!1,savingsTextSize:"medium"}}})},"hero-hl":e=>{var t=e.isSubscribeAndSave,r=e.showWholeFoodsLogo,n=e.currentScreen,a=e.showEnergyEfficiency,o=e.hasDealBadge,l=e.isCoupon;e=e.hasSavingsText;let u,c=(e=t||l||o||a||e)?4:5;return(n=n===s.ScreenSizes.BannerSMNarrow)&&(c=e?3:4),(r&&t||a)&&(u=["deal-badge"]),d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["hero-component","buy-box"]],generateColumns:(0,i.getBasicColumns)(p),generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"gap-1"},[s.Components.BuyBox]:{titleRegion:e?"product-title":"both",showAdditionalHeadlineLineWhenNeeded:!0,showAdditionalHeadlineLineCharThreshold:20,removeItems:u,totalLines:c,priceSizeOverride:a&&n?"text-[14px]":void 0,energyEfficiencySize:n?"small":void 0,isSavingsTextInline:!1,savingsTextSize:"medium"}}})},"hero-hl-lo":e=>{var t=e.isShowroomCreative,r=e.isSubscribeAndSave,n=e.showWholeFoodsLogo,a=e.currentScreen,o=e.showEnergyEfficiency,l=e.isCoupon,u=e.hasDealBadge;e=e.hasSavingsText;let c,m=(e=r||l||u||o||e)?4:5;return(a=a===s.ScreenSizes.BannerSMNarrow)&&(m=e?3:4),(n&&r||o)&&(c=["deal-badge"]),d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["hero-component","buy-box"]],generateColumns:(0,i.getBasicColumns)(p),generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"gap-1"},[s.Components.BuyBox]:{titleRegion:e?"product-title":"both",showAdditionalHeadlineLineWhenNeeded:!0,showAdditionalHeadlineLineCharThreshold:20,className:"pr-1",isShowroomCreative:t,wholeFoodsLogoSize:r?"xsmall":void 0,removeItems:c,totalLines:m,priceSizeOverride:o&&a?"text-[14px]":void 0,energyEfficiencySize:a?"small":void 0,isSavingsTextInline:!1,savingsTextSize:"medium"}}})},"hero-lo":e=>{var t=e.isSubscribeAndSave,r=e.showWholeFoodsLogo,n=e.currentScreen;e=e.showEnergyEfficiency,n=n===s.ScreenSizes.BannerSMNarrow;let a;return(r&&t||e)&&(a=["deal-badge"]),d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["hero-component","buy-box"]],generateColumns:(0,i.getBasicColumns)(p),generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"gap-1"},[s.Components.BuyBox]:{removeItems:a,totalLines:n?3:4,priceSizeOverride:e&&n?"text-[14px]":void 0,energyEfficiencySize:n?"small":void 0,isSavingsTextInline:!1,savingsTextSize:"medium"}}})},leadgen:e=>{var t=e.isTermsAndConditions,r=e.isTwitchDarkAd,n=e.primaryColorRGB;e=e.currentScreen===s.ScreenSizes.BannerSMNarrow;return{gridTemplateAreas:[["logo-image","custom-image","flex"],["headline","custom-image","flex"]],gridTemplateColumns:"1fr auto 1.15fr",gridTemplateRows:"auto auto",componentProps:{[s.Components.GridLayout]:{className:e?"gap-x-0.5":"gap-x-1"},[s.Components.CustomImage]:{imageScale:"square"},[s.Components.LogoImage]:{className:"max-w-[92px] max-h-[44px]",wrapperClassName:"items-end justify-start",logoFrameClassName:"items-end py-0.5 pl-1",alignment:"leftBottom"},[s.Components.Headline]:{className:"pt-0.5 pl-1",alignmentClass:"justify-start items-start",isFontBold:!1},[s.Components.Flex]:{className:"h-full justify-center",innerClassName:"flex-col h-auto",flexItems:[{regions:["leadgen-button","cta-button",t?"terms-and-conditions-label":""],componentProps:{[s.Components.TermsAndConditionsLabel]:{className:"text-[10px]",wrapperClass:"absolute w-full left-0 bottom-[4px] justify-center"},[s.Components.LeadGenButton]:{buttonType:"LeadGen",size:e?"medium":"xlarge",alignmentClass:"items-end justify-center",buttonClass:e?"w-auto height-auto":"w-full mx-1.5"},[s.Components.CTAButton]:{variant:"linkSecondary",size:"none",destination:"landing-page",overrideHoverColor:r&&"transparent"!==n?n:void 0,isFullHeightButton:!1,alignmentClass:"justify-center items-start h-full pt-1",buttonClass:"font-bold"}}}]}}}},showroom:e=>{var t=e.currentScreen,r=e.isTwitchDarkAd;e=e.primaryColorRGB;return d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","logo-image"],["custom-image","headline"],["custom-image","cta-button"]],generateColumns:()=>"auto 1fr",generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"gap-x-1",style:{backgroundColor:"rgba(15, 17, 17, 0.04)"}},[s.Components.CustomImage]:{imageScale:t===s.ScreenSizes.BannerSMNarrow?"square":"horizontal"},[s.Components.LogoImage]:{className:"max-w-[92px] max-h-[36px]",wrapperClassName:"items-end justify-start",logoFrameClassName:"bg-white items-end py-0.5 px-[6px]",alignment:"leftBottom"},[s.Components.Headline]:{classNameText:"text-[14px] leading-[16px]",alignmentClass:"justify-left items-center",className:"pr-1 py-0.25"},[s.Components.CTAButton]:{variant:"squarePillWhite",size:"xsmall",destination:"showroom-page",overrideHoverColor:r&&"transparent"!==e?e:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"}}})},"product-collection":e=>{let t=e.currentScreen,r=e.productDetailsList,n=e.marketplace;var o=null==r?void 0:r.some((e=>e.showEnergyEfficiency)),l=o;return e=(null==r?void 0:r.map(((e,r)=>((e,r)=>{var o=void 0!==(l=e.showEnergyEfficiency)&&l,l=t===s.ScreenSizes.BannerSMNarrow||"DE"===n?["prime-logo","product-title"]:[];return{type:"product-collection",productClickUrl:null==e?void 0:e.clickUrl,slideConfig:d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image"],["buy-box"]],generateColumns:()=>"auto",generateRows:()=>"3fr auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"place-items-center"},[s.Components.ProductImage]:{className:"py-0.5 h-full w-full",wrapperClassName:"min-w-[75px] min-h-[55px] h-full",enableGreyBackground:!0,productIndex:r},[s.Components.BuyBox]:{productIndex:r,creativeExperience:s.CreativeExperience.ProductCollectionSlide,isReponsiveBuyBox:!0,isCentered:!0,hideSavingsText:!0,hideProductTitle:"DE"===n,wrapperClass:"p-0.5",responsiveBuyBoxOverrides:{className:(0,a.default)("items-center","justify-center","place-items-center","gap-1"),productTitleMaxLines:1,priceSize:o?"small":"medium",primeLogoSize:"medium",getBuyboxLayoutFromTemplateAreaConfig:!0},removeItems:l,energyEfficiencySize:"small",hideStrikeOutPrice:!0,isSavingsTextInline:!0}}})}})(e,r))))||[],d(d({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","inset-carousel"]],generateColumns:()=>"auto minmax(0, 1fr)",generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"px-0 bg-zinc-100"},[s.Components.CustomImage]:{imageScale:"horizontal",wrapperClass:"w-full h-full",imageWrapperClass:"w-full h-full"},[s.Components.InsetCarousel]:{sliderClassName:"pt-[4px]",slideClassName:(0,a.default)(l?"max-w-[90%]":"max-w-[126px]","max-h-[115px] bg-white border rounded border-neutral-200"),hasRoundedSlideCorners:!0,loopSlides:!0,centeredSlides:!1,showNavigation:o,slides:[...e,d(d({type:"custom",isBrandLink:!0},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image"],["cta-button"]],generateColumns:()=>"auto",generateRows:()=>"auto auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"py-1 place-items-center"},[s.Components.LogoImage]:{className:"max-w-[76px] max-h-[56px] pb-1",wrapperClassName:"p-0"},[s.Components.CTAButton]:{variant:"link",size:"none",destination:"store-page",isNoWrap:!1,className:"text-center"}}})]}}})}}},1496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(518),i=r(868),s=r(5951),l=r(6475);function u(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const d={"product-image":"15%","logo-image":"25%","custom-image":"auto",headline:"40%","buy-box":"1fr"},p=[["product-image","buy-box"]],m=[["product-image","buy-box","cta-button"]];t.default={global:e=>{var t=e.activeExperiments;e=t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA];let r="tw-clip-diagonal";return t[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleNoCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA]?r="tw-rounded-sides":(t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowNoCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA])&&(r="tw-clip-triangle gradient-background "),{componentProps:{[i.Components.ProductImage]:{className:"max-w-[90px] px-1",wrapperClassName:(0,o.twMerge)(r,"dark:bg-white py-0.5 w-full h-full")},[i.Components.ProductTitle]:{lines:1},[i.Components.BuyBox]:{heightInFraction:.7,widthInFraction:.6,creativeExperience:i.CreativeExperience.Twitch,responsiveBuyBoxOverrides:{className:(0,a.default)("gap-x-2","items-center","justify-center"),productTitleMaxLines:1,productTitleVariant:"xl",ratingsSize:"large",priceSize:"large",ratingsTextSize:"large",badgeSize:"medium",getBuyboxLayoutFromTemplateAreaConfig:!0},savingsTextSize:"large"},[i.Components.CustomImage]:{imageScale:"horizontal"},[i.Components.Headline]:{className:"px-2 text-md"},[i.Components.CTAButton]:{className:"px-1 flex",variant:e?"twitchDark":"twitchPurple",size:e?"large":"xxl"}}}},none:e=>{e=(t=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA];var t=t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowNoCTA];return c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?m:p,generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:(0,a.default)("gap-x-6","pr-0.75",{"pl-6":!t})}}})},"ci-hl-lo":e=>(e=(e=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||e[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA],c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?[["custom-image","buy-box","cta-button"]]:[["custom-image","headline","buy-box"]],generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.Headline]:{className:"px-4 text-xl"},[i.Components.GridLayout]:{className:(0,a.default)({"gap-x-3":e},"pr-3")},[i.Components.BuyBox]:{productTitleVariant:"large"}}})),"ci-hl":e=>(e=(e=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||e[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA],c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?[["custom-image","buy-box","cta-button"]]:[["custom-image","headline","buy-box"]],generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.Headline]:{className:"px-4 text-xl"},[i.Components.GridLayout]:{className:(0,a.default)({"gap-x-3":e},"pr-3")},[i.Components.BuyBox]:{productTitleVariant:"large"}}})),"ci-lo":e=>(e=(e=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||e[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA],c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?[["custom-image","buy-box","cta-button"]]:[["custom-image","buy-box"]],generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:(0,a.default)(e?"gap-x-3":"gap-x-4","pr-3")}}})),"hl-lo":e=>{e=(t=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA];var t=t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowNoCTA];return c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?m:p,generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:(0,a.default)("gap-x-6","pr-0.75",{"pl-6":!t})}}})},ci:e=>(e=(e=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||e[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA],c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?[["custom-image","buy-box","cta-button"]]:[["custom-image","buy-box"]],generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:(0,a.default)(e?"gap-x-3":"gap-x-4","pr-3")}}})),lo:e=>{e=(t=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA];var t=t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowNoCTA];return c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?m:p,generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:(0,a.default)("gap-x-6","pr-0.75",{"pl-6":!t})}}})},hl:e=>{e=(t=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA];var t=t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowNoCTA];return c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?m:p,generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:(0,a.default)("gap-x-6","pr-0.75",{"pl-6":!t})}}})}}},2440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(518),i=r(868),s=r(5951),l=r(6475);function u(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const d={"product-image":"25%","logo-image":"25%","custom-image":"auto",headline:"25%","buy-box":"1fr","cta-button":"auto"},p=[["product-image","buy-box"]],m=[["product-image","buy-box","cta-button"]];t.default={global:e=>{var t=e.activeExperiments,r=e.isPmpOrMario;e=t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA];let n="tw-clip-diagonal";return t[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleNoCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA]?n="tw-rounded-sides":(t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowNoCTA]||t[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA])&&(n="tw-clip-triangle gradient-background "),{componentProps:{[i.Components.ProductImage]:{className:"min-w-[80px] max-w-[110px] px-1",wrapperClassName:(0,o.twMerge)(n,"dark:bg-white py-[12px] w-full h-full")},[i.Components.ProductTitle]:{lines:1},[i.Components.BuyBox]:{heightInFraction:.7,widthInFraction:.6,creativeExperience:i.CreativeExperience.Twitch,responsiveBuyBoxOverrides:{className:(0,a.default)("gap-y-0.75","gap-x-2","items-center","justify-center"),productTitleMaxLines:1,productTitleVariant:"xxl",ratingsSize:"large",priceSize:"large",ratingsTextSize:"large",badgeSize:"medium",getBuyboxLayoutFromTemplateAreaConfig:!0},hideSavingsText:r,savingsTextSize:"large"},[i.Components.CustomImage]:{imageScale:"horizontal"},[i.Components.Headline]:{className:"px-2 text-md"},[i.Components.CTAButton]:{className:"px-1 flex",variant:e?"twitchDark":"twitchPurple",size:e?"large":"xxl"}}}},none:e=>{var t=(r=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleNoCTA]?"pr-3":"pr-9",r=(e=r[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||r[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA],r[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowNoCTA]||r[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]);return c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?m:p,generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:(0,a.default)(e?"gap-x-1 pr-3":"gap-x-6 "+t,r?"":"pl-3")}}})},"ci-hl-lo":e=>(e=(e=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||e[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA],c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?[["custom-image","buy-box","cta-button"]]:[["custom-image","headline","buy-box"]],generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.Headline]:{className:(0,a.default)("pl-3","pr-5","text-md")},[i.Components.GridLayout]:{className:(0,a.default)({"gap-x-2":e},"pr-3")}}})),"ci-hl":e=>(e=(e=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||e[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA],c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?[["custom-image","buy-box","cta-button"]]:[["custom-image","headline","buy-box"]],generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.Headline]:{className:"pl-3 pr-5 text-md"},[i.Components.GridLayout]:{className:(0,a.default)({"gap-x-2":e},"pr-3")}}})),"ci-lo":e=>(e=(e=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||e[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA],c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?[["custom-image","buy-box","cta-button"]]:[["custom-image","buy-box"]],generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:(0,a.default)(e?"gap-x-1":"gap-x-6","pr-3")}}})),"hl-lo":e=>{var t=(r=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleNoCTA]?"pr-3":"pr-9",r=(e=r[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||r[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA],r[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowNoCTA]||r[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]);return c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?m:p,generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:(0,a.default)(e?"gap-x-1 pr-3":"gap-x-6 "+t,r?"":"pl-3")}}})},ci:e=>(e=(e=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||e[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA],c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?[["custom-image","buy-box","cta-button"]]:[["custom-image","buy-box"]],generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:(0,a.default)(e?"gap-x-1":"gap-x-6","pr-3")}}})),lo:e=>{var t=(r=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleNoCTA]?"pr-3":"pr-9",r=(e=r[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||r[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA],r[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowNoCTA]||r[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]);return c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?m:p,generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:(0,a.default)(e?"gap-x-1 pr-3":"gap-x-6 "+t,r?"":"pl-3")}}})},hl:e=>{var t=(r=e.activeExperiments)[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleNoCTA]?"pr-3":"pr-9",r=(e=r[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]||r[l.Experiments.TwitchDarkAdsM2.DarkAdsCircleCTA],r[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowNoCTA]||r[l.Experiments.TwitchDarkAdsM2.DarkAdsArrowCTA]);return c(c({},(0,s.generateGridConfiguration)({baseConfiguration:e?m:p,generateColumns:(0,s.getBasicColumns)(d),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:(0,a.default)(e?"gap-x-1 pr-3":"gap-x-6 "+t,r?"":"pl-3")}}})}}},4548:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMobileHQP=t.isDesktopHQP=void 0,t.isMobileHQP=(e,t)=>414===e&&125===t,t.isDesktopHQP=(e,t)=>650===e&&130===t},6338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(868),i=r(5951),s=r(5670);function l(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const c="242px",d=e=>`${"buy-box"===e[0][0]||"buy-box"===e[1][0]?"1fr":c} [custom-image-start] auto [custom-image-end] `+("buy-box"===e[0][2]||"buy-box"===e[1][2]?"1fr":c);var p;const m=(p=r={"product-image":c,"logo-image":c,"custom-image":c,headline:c,"headline-logo":c,"buy-box":"1fr","headline-cta":c},e=>e[0].map((e=>e?p[e]:"")).join(" "));t.default={global:e=>{var t=e.showEnergyEfficiency,r=e.isTextCTAButtonExperiment,n=e.showClimatePledgeFriendly;e=e.isRioPricing;return{componentProps:{[o.Components.BuyBox]:{totalLines:5,className:"max-w-[472px] pr-2",productTitleClasses:"text-lg",wholeFoodsLogoSize:"medium",badgeSize:"medium",automatedDealBadgeTextSize:"medium",energyEfficiencySize:"large",showTextCTA:r&&!t,ctaSize:r?"small":void 0,showCPFLogo:n,savingsTextSize:"large",priceSize:e?"large":void 0,socialProofingTextVariant:"md"},[o.Components.CustomImage]:{imageScale:"horizontal"},[o.Components.Headline]:{classNameText:"text-lg"},[o.Components.HeadlineLogo]:{className:"p-2"},[o.Components.LogoImage]:{className:"max-w-[145px] max-h-[145px] p-1"},[o.Components.ProductImage]:{className:"max-w-[200px] max-h-[200px] p-1"},[o.Components.GridLayout]:{className:"gap-0"}}}},none:()=>u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","buy-box"]],generateColumns:m,generateRows:()=>"auto"})),{},{componentProps:{[o.Components.LogoImage]:{className:"max-w-[145px] max-h-[145px] p-1"},[o.Components.ProductImage]:{className:"max-w-[200px] max-h-[200px] p-1",animationType:"scrollShine"},[o.Components.GridLayout]:{className:"gap-0"}}}),"ci-hl-lo":e=>{var t=e.isShowroomCreative,r=e.showEnergyEfficiency,n=e.isSubscribeAndSave,a=e.hasDealBadge,s=e.isTextCTAButtonExperiment,l=e.showClimatePledgeFriendly;e=e.isRioPricing,a=a||r;let c=s&&!r?["ratings"]:r&&n?["product-title"]:[""];return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["headline-logo","custom-image","product-image"],["headline-logo","custom-image","buy-box"]],generateColumns:d,generateRows:()=>"[custom-image-start] 1fr 1fr [custom-image-end]"})),{},{componentProps:{[o.Components.LogoImage]:{className:"max-w-[145px] max-h-[145px] p-0.5"},[o.Components.ProductImage]:{alignment:"left",className:"max-w-[200px] max-h-[200px] pl-2 pt-1 pb-1 pr-1",imageWrapperClassName:"w-auto h-full",animationType:"scrollShine"},[o.Components.BuyBox]:{className:"pl-2 pr-1",totalLines:r&&n||e?3:4,productTitleClasses:"text-base",isShowroomCreative:t,removeItems:c,energyEfficiencySize:a?"medium":void 0,priceSizeOverride:a?"text-[18px] leading-[18px]":void 0,showCPFLogo:l&&!r}}})},"ci-hl":e=>{var t=e.isShowroomCreative;e={titleRegion:"both",productTitleClasses:"text-lg",headlineClasses:"text-xl mb-1",isShowroomCreative:t,totalLines:6,productTitleMaxLines:1,showAdditionalHeadlineLineWhenNeeded:!0,showAdditionalHeadlineLineCharThreshold:40};return t&&Object.assign(e,{isShowroomCreative:t,totalLines:7}),u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","product-image","buy-box"],["custom-image","product-image","buy-box"]],generateColumns:m,generateRows:()=>"[custom-image-start] 1fr 1fr [custom-image-end]"})),{},{componentProps:{[o.Components.CustomImage]:{imageScale:"square"},[o.Components.BuyBox]:e,[o.Components.GridLayout]:{className:"gap-x-2 gap-y-0"},[o.Components.ProductImage]:{animationType:"scrollShine"}}})},"ci-lo":e=>{var t=e.isShowroomCreative,r=e.showEnergyEfficiency,n=e.isSubscribeAndSave,a=e.hasDealBadge,s=e.showClimatePledgeFriendly,l=e.isRioPricing;e=a||r;return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","custom-image","product-image"],["logo-image","custom-image","buy-box"]],generateColumns:d,generateRows:()=>"[custom-image-start] 1fr 1fr [custom-image-end]"})),{},{componentProps:{[o.Components.ProductImage]:{alignment:"left",className:"max-w-[200px] max-h-[200px] pl-2 pt-1 pb-1 pr-1",imageWrapperClassName:"w-auto h-full",animationType:"scrollShine"},[o.Components.BuyBox]:{className:"pl-2 pr-1",productTitleClasses:"text-base",totalLines:r&&n||l?3:4,isShowroomCreative:t,removeItems:r&&n?["product-title"]:void 0,energyEfficiencySize:e?"medium":void 0,priceSizeOverride:e?"text-[18px] leading-[18px]":void 0,showCPFLogo:s&&!r&&!a}}})},"hl-lo":()=>u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["headline-logo","product-image","buy-box"],["headline-logo","product-image","buy-box"]],generateColumns:m,generateRows:()=>"auto"})),{},{componentProps:{[o.Components.ProductImage]:{animationType:"scrollShine"}}}),ci:()=>u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","custom-image","buy-box"],["product-image","custom-image","buy-box"]],generateColumns:d,generateRows:()=>"[custom-image-start] 1fr 1fr [custom-image-end]"})),{},{componentProps:{[o.Components.BuyBox]:{className:"pl-2 pr-1",productTitleClasses:"text-base"},[o.Components.ProductImage]:{animationType:"scrollShine"}}}),lo:()=>u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","product-image","buy-box"]],generateColumns:m,generateRows:()=>"auto"})),{},{componentProps:{[o.Components.ProductImage]:{animationType:"scrollShine"}}}),hl:()=>u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["headline","product-image","buy-box"]],generateColumns:m,generateRows:()=>"auto"})),{},{componentProps:{[o.Components.GridLayout]:{className:"gap-x-2 gap-y-0 px-2"},[o.Components.ProductImage]:{animationType:"scrollShine"}}}),hero:e=>{var t=e.expandableAdStatus,r=e.width,n=e.height,i=e.isRioPricing;e=t===s.ExpandableAdStatus.Expanded;return{gridTemplateAreas:[["hero-component","product-image","buy-box"]],gridTemplateColumns:"46% 1fr 2fr",gridTemplateRows:"auto",componentProps:{[o.Components.GridLayout]:{className:(0,a.default)("p-0 gap-2",{"max-w-[980px] max-h-[280px] m-auto":e})},[o.Components.ProductImage]:{imageHeight:(0,s.getExpandedViewImageDimension)({expandableAdStatus:t,width:r,height:n}).height},[o.Components.BuyBox]:{isSavingsTextInline:i}}}},"hero-hl":e=>{var t=e.showEnergyEfficiency,r=e.expandableAdStatus,n=e.width,i=e.height;let l=(e=e.isRioPricing)?4:t?5:void 0;return{gridTemplateAreas:[["headline","hero-component","product-image"],["headline","hero-component","buy-box"]],gridTemplateColumns:"1fr 46% 1fr",gridTemplateRows:"1fr 1fr",componentProps:{[o.Components.GridLayout]:{className:(0,a.default)("p-0 gap-2",{"max-w-[980px] max-h-[280px] m-auto":r===s.ExpandableAdStatus.Expanded})},[o.Components.Headline]:{textSize:"base",classNameText:"display-inline-box font-bold headline text-lg text-gray-700",className:"p-2",alignmentClass:"items-center justify-center text-center"},[o.Components.ProductImage]:{alignment:"left",wrapperClassName:"px-1 pt-2",className:"max-w-[200px] max-h-[200px]",imageWrapperClassName:"w-auto h-full",imageHeight:(0,s.getExpandedViewImageDimension)({expandableAdStatus:r,width:n,height:i}).height},[o.Components.BuyBox]:{className:"p-1",productTitleClasses:"text-base",totalLines:l,isSavingsTextInline:e,isRioPriceInline:!0,priceSize:e?"mediumPlus":void 0,energyEfficiencySize:e?"medium":void 0}}}},"hero-lo":e=>{var t=e.showEnergyEfficiency,r=e.hasDealBadge,n=e.expandableAdStatus,i=e.width,l=e.height;e=e.isRioPricing,l=(0,s.getExpandedViewImageDimension)({expandableAdStatus:n,width:i,height:l}).height;let u=e?4:t?5:void 0;return{gridTemplateAreas:[["logo-image","hero-component","product-image"],["logo-image","hero-component","buy-box"]],gridTemplateColumns:"1fr 46% 1fr",gridTemplateRows:"1fr 1fr",componentProps:{[o.Components.GridLayout]:{className:(0,a.default)("p-0 gap-2",{"max-w-[980px] max-h-[280px] m-auto":n===s.ExpandableAdStatus.Expanded})},[o.Components.ProductImage]:{alignment:"left",wrapperClassName:"px-1 pt-2",className:"max-w-[200px] max-h-[200px]",imageWrapperClassName:"w-auto h-full",imageHeight:l},[o.Components.LogoImage]:{imageHeight:l},[o.Components.BuyBox]:{className:"p-1",productTitleClasses:"text-base",totalLines:u,removeItems:t&&r?["product-title"]:void 0,isSavingsTextInline:e,isRioPriceInline:!0,priceSize:e?"mediumPlus":void 0,energyEfficiencySize:e?"medium":void 0}}}},"hero-hl-lo":e=>{var t=e.showEnergyEfficiency,r=e.hasDealBadge,n=e.expandableAdStatus,i=e.width,l=e.height;e=e.isRioPricing,l=(0,s.getExpandedViewImageDimension)({expandableAdStatus:n,width:i,height:l}).height;let u=e?4:t?5:void 0;return{gridTemplateAreas:[["headline-logo","hero-component","product-image"],["headline-logo","hero-component","buy-box"]],gridTemplateColumns:"1fr 46% 1fr",gridTemplateRows:"1fr 1fr",componentProps:{[o.Components.GridLayout]:{className:(0,a.default)("p-0 gap-2",{"max-w-[980px] max-h-[280px] m-auto":n===s.ExpandableAdStatus.Expanded})},[o.Components.Headline]:{textSize:"base",classNameText:"display-inline-box font-bold headline text-lg text-gray-700",className:"px-2",alignmentClass:"items-center justify-center"},[o.Components.ProductImage]:{alignment:"left",wrapperClassName:"px-1 pt-2",className:"max-w-[200px] max-h-[200px]",imageWrapperClassName:"w-auto h-full",imageHeight:l},[o.Components.BuyBox]:{className:"p-1",productTitleClasses:"text-base",totalLines:u,removeItems:t&&r?["product-title"]:void 0,isSavingsTextInline:e,isRioPriceInline:!0,priceSize:e?"mediumPlus":void 0,energyEfficiencySize:e?"medium":void 0},[o.Components.LogoImage]:{className:"max-w-[145px] max-h-[145px] p-0.5"},[o.Components.HeadlineLogo]:{imageHeight:l}}}},"non-endemic":e=>{var t=e.backgroundBrightness,r=e.primaryColorRGB,n=e.customBackgroundColorRGB;e=e.isTermsAndConditions;return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:e?[["custom-image","logo-image","logo-image"],["custom-image","headline","headline"],["custom-image","cta-button","terms-and-conditions-label"]]:[["custom-image","logo-image"],["custom-image","headline"],["custom-image","cta-button"]],generateColumns:()=>"auto 1fr",generateRows:()=>"auto"})),{},{componentProps:{[o.Components.GridLayout]:{className:"gap-x-[28px]",style:{backgroundColor:n}},[o.Components.TermsAndConditionsLabel]:{wrapperClass:"absolute right-[8px] bottom-[8px]"},[o.Components.LogoImage]:{className:"max-w-[145px] max-h-[60px]",wrapperClassName:"items-end justify-start",logoFrameClassName:"bg-white items-end py-[10px] px-[12px]",alignment:"leftBottom"},[o.Components.Headline]:{classNameText:"text-[32px] leading-[38px]",alignmentClass:"justify-left items-center",className:"pr-1 pb-1"},[o.Components.CTAButton]:{variant:"dark"===t?"blockInverted":"block",size:"none",destination:"landing-page",overrideHoverColor:"dark"===t&&"transparent"!==r?r:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"}}})},"non-endemic-sparkle":e=>{var t=e.isTwitchDarkAd;e=e.primaryColorRGB;return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","custom-image"],["flex","custom-image"]],generateColumns:()=>"1fr auto",generateRows:()=>"auto"})),{},{componentProps:{[o.Components.GridLayout]:{className:"gap-x-[28px] pl-[28px]",style:{backgroundColor:e}},[o.Components.LogoImage]:{className:"max-w-[145px] max-h-[86px]",wrapperClassName:"items-end justify-start",logoFrameClassName:"items-end py-[10px] pt-[12px] pb-[20px]",alignment:"leftBottom"},[o.Components.Flex]:{className:"h-full justify-start",innerClassName:"flex-col h-auto",flexItems:[{regions:["headline","cta-button"],componentProps:{[o.Components.Headline]:{classNameText:"text-[24px] leading-[31px]",alignmentClass:"justify-left items-end",className:"mb-[20px] pt-[20px] border-t border-[#c4c4c4]"},[o.Components.CTAButton]:{variant:t?"blockMdInverted":"blockMd",size:"none",destination:"landing-page",overrideHoverColor:t&&"transparent"!==e?e:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"}}}]}}})},showroom:e=>{var t=e.isTwitchDarkAd;e=e.primaryColorRGB;return u(u({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","logo-image"],["custom-image","headline"],["custom-image","cta-button"]],generateColumns:()=>"auto 1fr",generateRows:()=>"auto"})),{},{componentProps:{[o.Components.GridLayout]:{className:"gap-x-[28px]",style:{backgroundColor:"rgba(15, 17, 17, 0.04)"}},[o.Components.LogoImage]:{className:"max-w-[145px] max-h-[86px]",wrapperClassName:"items-end justify-start",logoFrameClassName:"bg-white items-end py-[10px] px-[12px]",alignment:"leftBottom"},[o.Components.Headline]:{classNameText:"text-[32px] leading-[38px]",alignmentClass:"justify-left items-center",className:"pr-1 py-1"},[o.Components.CTAButton]:{variant:"squarePillWhite",size:"large",destination:"showroom-page",overrideHoverColor:t&&"transparent"!==e?e:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"}}})},"showroom-video":()=>({gridTemplateAreas:[["logo-image","hero-component","headline-cta"]],gridTemplateColumns:"1fr 46% 1fr",gridTemplateRows:"100%",componentProps:{[o.Components.HeadlineCTA]:{size:"none",destination:"showroom-page",variant:"linkArrow",className:"px-3",alignmentClass:"justify-center items-start",classNameText:"mb-2 text-[16px] leading-[24px]",ctaClass:"leading-[20px]"}}}),leadgen:e=>({gridTemplateAreas:[["headline-logo","custom-image","leadgen-button",(e=e.isTermsAndConditions)?"terms-and-conditions-label":""],["headline-logo","custom-image","cta-button",e?"terms-and-conditions-label":""]],gridTemplateColumns:"1fr auto 1fr",gridTemplateRows:"1fr 1fr",componentProps:{[o.Components.GridLayout]:{className:"p-0"},[o.Components.HeadlineLogo]:{className:"p-4",classNameText:"text-lg mt-3"},[o.Components.LeadGenButton]:{buttonType:"LeadGen",className:"px-1.5",alignmentClass:"justify-center items-end",size:"xlarge",buttonClass:"w-full max-w-[180px]"},[o.Components.CTAButton]:{className:"px-1.5",variant:"linkSecondary",alignmentClass:"justify-center items-start",size:"none",destination:"landing-page",buttonClass:"text-lg mt-3 font-bold"},[o.Components.TermsAndConditionsLabel]:{className:"text-[11px] leading-[13px]",wrapperClass:"absolute right-[8px] bottom-[8px]"}}}),"product-collection-video":e=>(e=(e=e.productDetailsList)?Math.min(e.length,3):0,{gridTemplateAreas:[["hero-component","logo-image","flex"],["hero-component","headline","flex"],["hero-component","cta-button","flex"]],gridTemplateColumns:"auto 1fr 3fr",gridTemplateRows:"1fr 1fr 1fr",componentProps:{[o.Components.GridLayout]:{className:"p-0 gap-1 max-w-[1300px] max-h-[280px] m-auto"},[o.Components.LogoImage]:{className:"max-w-[110px] max-h-[80px] pl-0.5",wrapperClassName:"items-center justify-start"},[o.Components.Headline]:{classNameText:"text-md text-left pl-0.5"},[o.Components.CTAButton]:{alignmentClass:"justify-start h-full items-end pb-1",variant:"link",size:"small",destination:"store-page",isNoWrap:!1},[o.Components.Flex]:{className:"flex-row justify-around p-1",innerClassName:"w-full h-full gap-[10px]",flexItems:Array(e).fill(null).map(((e,t)=>({regions:["inner-grid-component"],componentProps:{[o.Components.GridLayout]:{className:"max-w-[180px]"},[o.Components.InnerGridComponent]:{gridStyles:{gridTemplateAreas:[["product-image"],["buy-box"]],gridTemplateColumns:"100%",gridTemplateRows:"3fr 1fr"},componentProps:{[o.Components.ProductImage]:{className:"max-w-[110px] max-h-[110px] p-1",enableGreyBackground:!0,productIndex:t},[o.Components.BuyBox]:{productIndex:t,isReponsiveBuyBox:!0,isCentered:!0,hideSavingsText:!0,wrapperClass:"p-0.5",responsiveBuyBoxOverrides:{className:(0,a.default)("items-center","justify-center","place-items-center","gap-0.5"),priceSize:"medium",primeLogoSize:"medium"},energyEfficiencySize:"small",hideStrikeOutPrice:!0,removeItems:["deal-badge"]}},productIndex:t,hasRoundedSlideCorners:!0}}})))}}})}},1916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(5951),i=r(868),s=r(9441);function l(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const c={"product-image":"auto","logo-image":"auto","custom-image":"auto","product-title":"auto",headline:"auto","buy-box":"1fr","hero-component":"auto"},d={"product-image":"1fr","logo-image":"1fr","custom-image":"auto","product-title":"auto",headline:"auto","buy-box":"2fr"};t.default={global:e=>{var t=e.clientWidth,r=e.isBusyBuybox,n=e.isRioPricing,a=e.isPricePerUnit;e=e.showStrikeThroughPrice;return{componentProps:{[i.Components.GridLayout]:{className:"gap-0.5 px-0.5"},[i.Components.BuyBox]:{totalLines:2,priceSize:n?"mediumPlus":"small",energyEfficiencySize:"small",heightInFraction:1,widthInFraction:.6,hideSavingsText:r||t<390,savingsTextSize:"xsmall",isRioPriceInline:n,hidePrimeLogo:n&&a&&e},[i.Components.CustomImage]:{imageScale:"square",className:"max-w-[50px]"},[i.Components.ProductImage]:{className:"max-w-[80px]",wrapperClassName:"min-w-[55px] p-0.25"},[i.Components.LogoImage]:{className:"max-w-[80px] p-0.25"},[i.Components.CTAButton]:{size:"small"}}}},none:e=>{var t=e.isTextCTAButtonExperiment,r=e.showEnergyEfficiency,n=e.isPricePerUnit,a=e.isTailSizeCreative,s=e.isBusyBuybox;e=e.clientWidth;return u(u({},(0,o.generateGridConfiguration)({baseConfiguration:t&&!r?[["product-image","buy-box","cta-button"]]:[["product-image","buy-box"]],generateColumns:a&&!n?(0,o.getBasicColumns)(d):(0,o.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.BuyBox]:{removeItems:t?["deal-price","deal-badge","ratings"]:[""],hideSavingsText:s||e<370},[i.Components.CTAButton]:{size:"small"},[i.Components.ProductImage]:{animationType:"scrollShine"}}})},"ci-hl-lo":e=>{var t=e.isShowroomCreative,r=e.isBusyBuybox,n=e.isTextCTAButtonExperiment,a=e.showEnergyEfficiency;e=e.showWholeFoodsLogo;return u(u({},(0,o.generateGridConfiguration)({baseConfiguration:n&&!a?[["custom-image","buy-box",e||n?null:"product-image","cta-button"]]:[["custom-image","buy-box",r?null:"product-image"]],generateColumns:(0,o.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"gap-0.5"},[i.Components.BuyBox]:{isShowroomCreative:t,hidePrice:t,widthInFraction:.4,removeItems:n?["deal-price","deal-badge","ratings"]:[""]},[i.Components.ProductImage]:{animationType:"scrollShine"}}})},"ci-hl":e=>{var t=e.isShowroomCreative,r=e.isBusyBuybox,n=e.isTextCTAButtonExperiment,a=e.showEnergyEfficiency,s=e.showWholeFoodsLogo;e=e.isRioPricing;return u(u({},(0,o.generateGridConfiguration)({baseConfiguration:n&&!a?[["custom-image",s||n?null:"product-image","buy-box","cta-button"]]:[["custom-image",r?null:"product-image","buy-box"]],generateColumns:(0,o.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"gap-0.5 pr-0.5"},[i.Components.BuyBox]:{titleRegion:"product-title",priceSize:e?"mediumPlus":"small",isShowroomCreative:t,hidePrice:t,widthInFraction:.4,removeItems:n?["deal-price","deal-badge","ratings"]:[""]},[i.Components.ProductImage]:{animationType:"scrollShine"}}})},"ci-lo":e=>{var t=e.isShowroomCreative,r=e.showWholeFoodsLogo,n=e.isBusyBuybox,a=e.isTextCTAButtonExperiment;e=e.showEnergyEfficiency;return u(u({},(0,o.generateGridConfiguration)({baseConfiguration:a&&!e?[[r&&a?"logo-image":"custom-image","buy-box",a?null:"logo-image","cta-button"]]:[[r?"logo-image":"custom-image","buy-box",n?null:"logo-image"]],generateColumns:(0,o.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"gap-0.5 pl-0"},[i.Components.BuyBox]:{isShowroomCreative:t,hidePrice:t,widthInFraction:.4,removeItems:a?["deal-price","deal-badge","ratings"]:[""]}}})},"hl-lo":e=>{var t=e.isPricePerUnit,r=e.isBusyBuybox,n=e.isTextCTAButtonExperiment,a=e.showEnergyEfficiency,s=e.isTailSizeCreative;e=e.isRioPricing;return u(u({},(0,o.generateGridConfiguration)({baseConfiguration:n&&!a?[["logo-image","buy-box",n?null:"product-image","cta-button"]]:[["logo-image","buy-box",r?null:"product-image"]],generateColumns:s&&!t?(0,o.getBasicColumns)(d):(0,o.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.BuyBox]:{titleRegion:"headline",priceSize:e?"mediumPlus":"small",removeItems:n?["deal-price","deal-badge","ratings"]:[""]},[i.Components.LogoImage]:{className:"max-w-[60px]"},[i.Components.ProductImage]:{animationType:"scrollShine",className:"max-w-[60px]"}}})},ci:e=>{var t=e.isBusyBuybox,r=e.isTextCTAButtonExperiment;e=e.showEnergyEfficiency;return u(u({},(0,o.generateGridConfiguration)({baseConfiguration:r&&!e?[["custom-image","buy-box",r?null:"product-image","cta-button"]]:[["custom-image","buy-box",t?null:"product-image"]],generateColumns:(0,o.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"gap-0.5 pr-0.5"},[i.Components.BuyBox]:{widthInFraction:.4,removeItems:r?["deal-price","deal-badge","ratings"]:[""]},[i.Components.ProductImage]:{animationType:"scrollShine"}}})},lo:e=>{var t=e.isShowroomCreative,r=e.isPricePerUnit,n=e.isBusyBuybox,a=e.isTextCTAButtonExperiment,s=e.showEnergyEfficiency;e=e.isTailSizeCreative;return u(u({},(0,o.generateGridConfiguration)({baseConfiguration:a&&!s?[["logo-image","buy-box",a?null:"product-image","cta-button"]]:[["logo-image","buy-box",n?null:"product-image"]],generateColumns:e&&!r?(0,o.getBasicColumns)(d):(0,o.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.BuyBox]:{isShowroomCreative:t,hidePrice:t,removeItems:a?["deal-price","deal-badge","ratings"]:[""]},[i.Components.LogoImage]:{className:r?"max-w-[55px]":void 0},[i.Components.ProductImage]:{animationType:"scrollShine"}}})},hl:e=>{var t=e.isTextCTAButtonExperiment,r=e.isPricePerUnit,n=e.showEnergyEfficiency,a=e.isTailSizeCreative,s=e.isBusyBuybox,l=e.clientWidth;e=e.isRioPricing;return u(u({},(0,o.generateGridConfiguration)({baseConfiguration:t&&!n?[["product-image","buy-box","cta-button"]]:[["product-image","buy-box"]],generateColumns:a&&!r?(0,o.getBasicColumns)(d):(0,o.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.BuyBox]:{titleRegion:"product-title",priceSize:e?"mediumPlus":"small",removeItems:t?["deal-price","deal-badge","ratings"]:[""],hideSavingsText:s||l<370},[i.Components.ProductImage]:{animationType:"scrollShine"}}})},hero:e=>{var t=e.isBusyBuybox,r=e.showEnergyEfficiency;e=e.clientWidth;return u(u({},(0,o.generateGridConfiguration)({baseConfiguration:r?[["hero-component","buy-box",t?null:"product-image"]]:[["hero-component","buy-box","product-image"]],generateColumns:(0,o.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"gap-0.5 pr-0.5"},[i.Components.BuyBox]:{widthInFraction:.4},[i.Components.HeroComponent]:{disableExpand:550<e}}})},"hero-hl":e=>{var t=e.isShowroomCreative,r=e.isBusyBuybox,n=e.showEnergyEfficiency,a=e.showWholeFoodsLogo;e=e.clientWidth;return u(u({},(0,o.generateGridConfiguration)({baseConfiguration:n?[["hero-component",a?null:"product-image","buy-box"]]:[["hero-component",r?null:"product-image","buy-box"]],generateColumns:(0,o.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"gap-0.5 pr-0.5"},[i.Components.BuyBox]:{titleRegion:"product-title",priceSize:"small",isShowroomCreative:t,hidePrice:t,widthInFraction:.4},[i.Components.HeroComponent]:{disableExpand:550<e}}})},"hero-lo":e=>(e=e.clientWidth,u(u({},(0,o.generateGridConfiguration)({baseConfiguration:[["hero-component","buy-box"]],generateColumns:(0,o.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"gap-0.5 pl-0"},[i.Components.BuyBox]:{widthInFraction:.4},[i.Components.HeroComponent]:{disableExpand:550<e}}})),"hero-hl-lo":e=>{var t=e.isBusyBuybox,r=e.showEnergyEfficiency,n=e.showWholeFoodsLogo;e=e.clientWidth;return u(u({},(0,o.generateGridConfiguration)({baseConfiguration:r?[["hero-component","buy-box",t?null:"product-image"]]:[["hero-component","buy-box",n?null:"product-image"]],generateColumns:(0,o.getBasicColumns)(c),generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"gap-0.5"},[i.Components.BuyBox]:{widthInFraction:.4},[i.Components.HeroComponent]:{disableExpand:550<e}}})},"non-endemic":e=>{var t=e.isTermsAndConditions,r=e.backgroundBrightness,n=e.primaryColorRGB,o=e.customBackgroundColorRGB;e=e.is3P;return{gridTemplateAreas:t?[["logo-image","custom-image","cta-button"],["logo-image","custom-image","terms-and-conditions-label"]]:[["logo-image","custom-image","cta-button"]],gridTemplateColumns:"1.5fr auto 2.5fr",gridTemplateRows:t?"2fr 1fr":"auto",componentProps:{[i.Components.GridLayout]:{className:(0,a.default)("p-0",e?"pr-[18px]":"pr-0.5"),style:{backgroundColor:o}},[i.Components.CustomImage]:{imageScale:"horizontal",className:"max-w-auto"},[i.Components.Headline]:{classNameText:"text-[10px] leading-[12px]"},[i.Components.LogoImage]:{className:"max-w-[66px] max-h-[30px] px-0.5 py-0.25",wrapperClassName:"bg-white"},[i.Components.CTAButton]:{alignmentClass:(0,a.default)("justify-center h-full",t?"items-end":"items-center"),variant:"dark"===r?"blockXSmInverted":"blockXSm",size:"none",destination:"landing-page",overrideHoverColor:"dark"===r&&"transparent"!==n?n:void 0,isFullHeightButton:!1},[i.Components.TermsAndConditionsLabel]:{wrapperClass:"justify-center py-0.5",className:"text-[9px] leading-[11px]"}}}},"non-endemic-zoetrope":e=>{var t;let r=e.isTermsAndConditions,n=e.customImageDetail;return 1<(null==n||null===(t=n.horizontalCustomImages)||void 0===t?void 0:t.length)?u(u({},(0,o.generateGridConfiguration)({baseConfiguration:[["inset-carousel"]],generateColumns:()=>"auto",generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"p-0 m-0"},[i.Components.InsetCarousel]:{sliderClassName:"px-0 w-full h-full",slideClassName:"max-w-[240px] max-h-full bg-white p-0",navigationDisabledClassName:"opacity-0",hasRoundedSlideCorners:!1,loopSlides:!1,centeredSlides:!0,showNavigation:!0,hasDropShadow:!0,hasSideGradient:!0,slides:[u(u({type:"custom"},(0,o.generateGridConfiguration)({baseConfiguration:[["title-label","logo-image"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"place-items-center"},[i.Components.TitleLabel]:{variant:s.TitleVariant.LocalBusinessForYou,isFontBold:!0,className:"p-1 pr-0",classNameText:"text-[13px] leading-[16px]"},[i.Components.LogoImage]:{className:"max-w-[90px] max-h-[30px]",wrapperClassName:"bg-white p-1"}}}),u(u({type:"custom"},(0,o.generateGridConfiguration)({baseConfiguration:[["headline","custom-image"]],generateColumns:()=>"1.3fr 1fr",generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"place-items-center"},[i.Components.Headline]:{classNameText:"text-[10px] leading-[13px]",className:"p-0.5 pr-0",isFontBold:!0},[i.Components.CustomImage]:{imageScale:"horizontal",className:"max-w-auto",imageIndex:0}}}),u(u({type:"custom"},(0,o.generateGridConfiguration)({baseConfiguration:r?[["cta-button","custom-image"],["terms-and-conditions-label","custom-image"]]:[["cta-button","custom-image"]],generateColumns:()=>"1.5fr 1fr",generateRows:()=>r?"1fr 1fr":"auto"})),{},{componentProps:{[i.Components.CTAButton]:{variant:"link",size:"none",destination:"landing-page",isNoWrap:!1,className:r?"p-0.25":"p-1"},[i.Components.CustomImage]:{imageScale:"horizontal",className:"max-w-auto",imageIndex:1},[i.Components.TermsAndConditionsLabel]:{wrapperClass:"justify-center py-0.5",className:"text-[9px] leading-[11px]"}}})]}}}):{gridTemplateAreas:r?[["custom-image","logo-image","cta-button"],["custom-image","logo-image","terms-and-conditions-label"]]:[["custom-image","logo-image","cta-button"]],gridTemplateColumns:"auto 1fr 1fr",gridTemplateRows:r?"2fr 1fr":"auto",componentProps:{[i.Components.GridLayout]:{className:(0,a.default)("p-0","pr-0.5")},[i.Components.CustomImage]:{imageScale:"horizontal",className:"max-w-[100px]"},[i.Components.Headline]:{classNameText:"text-[10px] leading-[12px]"},[i.Components.LogoImage]:{className:"max-w-[66px] max-h-[30px] px-0.5 py-0.25",wrapperClassName:"bg-white"},[i.Components.CTAButton]:{alignmentClass:(0,a.default)("justify-center h-full",r?"items-end":"items-center"),variant:"link",size:"none",destination:"landing-page",isFullHeightButton:!1},[i.Components.TermsAndConditionsLabel]:{wrapperClass:"justify-center py-0.5",className:"text-[9px] leading-[11px]"}}}},leadgen:e=>{var t=e.is3P;return{gridTemplateAreas:(e=e.isTermsAndConditions)?[["leadgen-button","logo-image","headline"],["terms-and-conditions-label","logo-image","headline"]]:[["leadgen-button","logo-image","headline"]],gridTemplateColumns:"1.45fr 1fr 1.45fr",gridTemplateRows:e?"1fr auto":"auto",componentProps:{[i.Components.GridLayout]:{className:"p-0 px-1 gap-x-1.5 "+(t?"pr-[18px]":"")},[i.Components.Headline]:{classNameText:"text-[10px] text-left leading-[1.2]",isFontBold:!1},[i.Components.LeadGenButton]:{buttonType:"LeadGen",size:e?"xsmall":void 0},[i.Components.TermsAndConditionsLabel]:{className:"text-xxs pb-0.5",wrapperClass:"items-end justify-center"}}}},showroom:e=>{var t=e.is3P,r=e.isTwitchDarkAd;e=e.primaryColorRGB;return{gridTemplateAreas:[["logo-image","custom-image","cta-button"]],gridTemplateColumns:"1.5fr auto 2.5fr",gridTemplateRows:"auto",componentProps:{[i.Components.GridLayout]:{className:(0,a.default)("p-0",t?"pr-[18px]":"pr-0.5"),style:{backgroundColor:"rgba(15, 17, 17, 0.04)"}},[i.Components.CustomImage]:{imageScale:"horizontal",className:"max-w-auto"},[i.Components.Headline]:{classNameText:"text-[10px] leading-[12px]"},[i.Components.LogoImage]:{className:"max-w-[66px] max-h-[30px] px-0.5 py-0.25",wrapperClassName:"bg-white"},[i.Components.CTAButton]:{alignmentClass:"justify-center h-full items-center",variant:"squarePillWhite",size:"xsmall",destination:"showroom-page",overrideHoverColor:r&&"transparent"!==e?e:void 0,isFullHeightButton:!1}}}},"product-collection":()=>({gridTemplateAreas:[["logo-image","custom-image","cta-button"]],gridTemplateColumns:"1fr auto 2fr",gridTemplateRows:"auto",componentProps:{[i.Components.GridLayout]:{className:"p-0"},[i.Components.CustomImage]:{imageScale:"horizontal",className:"max-w-auto"},[i.Components.LogoImage]:{className:"max-w-[66px] max-h-[30px] px-0.5 py-0.25",wrapperClassName:"bg-white"},[i.Components.CTAButton]:{alignmentClass:"justify-center h-full items-center",variant:"link",size:"small",destination:"store-page",isNoWrap:!1}}}),"product-collection-video":e=>(e=e.clientWidth,{gridTemplateAreas:[["hero-component","logo-image","headline"]],gridTemplateColumns:"auto auto 1fr",gridTemplateRows:"100%",componentProps:{[i.Components.GridLayout]:{className:"p-0"},[i.Components.LogoImage]:{className:"max-w-[66px] max-h-[30px] px-0.5 py-0.25",wrapperClassName:"bg-white"},[i.Components.Headline]:{classNameText:"text-[11px] text-left leading-[1.4] pl-0.5",isFontBold:!1},[i.Components.HeroComponent]:{disableExpand:550<e}}})}},868:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenSizes=t.Identifier=t.CreativeExperience=t.Components=void 0,t.ScreenSizes=void 0,t.ScreenSizes={BannerXXS:"banner-xxs",BannerXS:"banner-xs",BannerSM:"banner-sm",BannerSMNarrow:"banner-sm-narrow",BannerLG:"banner-lg",BannerLGNarrow:"banner-lg-narrow",BannerXL:"banner-xl",BannerXLNarrow:"banner-xl-narrow",BannerMD:"banner-md",BannerDesktop:"banner-desktop",BannerPinpoint:"banner-pinpoint",SkyscraperXS:"skyscraper-xs",SkyscraperSM:"skyscraper-sm",SkyscraperSMTall:"skyscraper-sm-tall",SkyscraperSMNarrow:"skyscraper-sm-narrow",SkyscraperMD:"skyscraper-md",SkyscraperInterstitial:"skyscraper-interstitial",SkyscraperMDShort:"skyscraper-md-short",SkyscraperMDTall:"skyscraper-md-tall",SkyscraperLG:"skyscraper-lg",RectangleLG:"rectangle-lg",RectangleMD:"rectangle-md",RectangleSM:"rectangle-sm",RectangleXS:"rectangle-xs",MobileHomepageCard:"mobile-homepage-card",MobileHQP:"mobile-hqp"},t.CreativeExperience=void 0,t.CreativeExperience={Default:"default",Twitch:"twitch",ProductCollectionSlide:"product-collection-slide",ProductCollectionVideoSlide:"product-collection-video-slide"},t.Components=void 0,t.Components={Slider:"slider",Slide:"slide",GridLayout:"grid-layout",ProductImage:"product-image",LogoImage:"logo-image",CustomImage:"custom-image",Flex:"flex",Headline:"headline",HeadlineLogo:"headline-logo",HeadlineCTA:"headline-cta",ProductTitle:"product-title",BuyBox:"buy-box",TeaseImages:"tease-images",CTAButton:"cta-button",LeadGenButton:"leadgen-button",HeroComponent:"hero-component",SponsoredLabel:"sponsored-label",PriceBadge:"price-badge",DealPrice:"deal-price",TermsAndConditionsLabel:"terms-and-conditions-label",InsetCarousel:"inset-carousel",ProductCollectionSlide:"product-collection-slide",CustomSlide:"custom-slide",InnerGridComponent:"inner-grid-component",TitleLabel:"title-label"},t.Identifier=void 0,t.Identifier={ci:"ci",ciHl:"ci-hl",ciHlLo:"ci-hl-lo",ciLo:"ci-lo",hero:"hero",heroHl:"hero-hl",heroHlLo:"hero-hl-lo",heroLo:"hero-lo",hl:"hl",hlLo:"hl-lo",lo:"lo",nonEndemic:"non-endemic",nonEndemicSparkle:"non-endemic-sparkle",nonEndemicZoetrope:"non-endemic-zoetrope",showroom:"showroom",showroomVideo:"showroom-video",zoetrope:"zoetrope",leadGen:"leadgen",none:"none",productCollection:"product-collection",productCollectionVideo:"product-collection-video"}},3238:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gridConfigurationsGenerators=void 0;var n=x(r(1916)),a=x(r(9840)),o=x(r(9854)),i=x(r(722)),s=x(r(3454)),l=x(r(7755)),u=x(r(6338)),c=x(r(8718)),d=x(r(7246)),p=x(r(3014)),m=x(r(9786)),f=x(r(242)),g=x(r(331)),h=x(r(3816)),y=x(r(2440)),v=x(r(1496)),b=x(r(7139)),C=x(r(9032));r=r(868);function x(e){return e&&e.__esModule?e:{default:e}}r={default:{[r.ScreenSizes.BannerXXS]:n.default,[r.ScreenSizes.BannerXS]:n.default,[r.ScreenSizes.BannerSM]:a.default,[r.ScreenSizes.BannerSMNarrow]:a.default,[r.ScreenSizes.BannerMD]:l.default,[r.ScreenSizes.BannerLG]:s.default,[r.ScreenSizes.BannerLGNarrow]:s.default,[r.ScreenSizes.BannerXL]:u.default,[r.ScreenSizes.BannerDesktop]:i.default,[r.ScreenSizes.BannerPinpoint]:o.default,[r.ScreenSizes.SkyscraperXS]:c.default,[r.ScreenSizes.SkyscraperSM]:d.default,[r.ScreenSizes.SkyscraperMDShort]:d.default,[r.ScreenSizes.SkyscraperMDTall]:d.default,[r.ScreenSizes.SkyscraperMD]:d.default,[r.ScreenSizes.SkyscraperInterstitial]:p.default,[r.ScreenSizes.SkyscraperLG]:m.default,[r.ScreenSizes.RectangleXS]:f.default,[r.ScreenSizes.RectangleSM]:f.default,[r.ScreenSizes.RectangleMD]:f.default,[r.ScreenSizes.RectangleLG]:f.default,[r.ScreenSizes.MobileHomepageCard]:g.default,[r.ScreenSizes.MobileHQP]:h.default},[r.CreativeExperience.Twitch]:{[r.ScreenSizes.BannerMD]:y.default,[r.ScreenSizes.BannerDesktop]:v.default,[r.ScreenSizes.RectangleMD]:b.default,[r.ScreenSizes.SkyscraperMD]:C.default},[r.CreativeExperience.ProductCollectionSlide]:{},[r.CreativeExperience.ProductCollectionVideoSlide]:{}},t.gridConfigurationsGenerators=r},331:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(5951),a=r(868);function o(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.default={global:()=>({componentProps:{[a.Components.ProductImage]:{className:"p-1 max-w-[115px] max-h-[115px] w-[115px] h-[115px]",imageWrapperClassName:"max-w-[115px] max-h-[115px] w-[115px] h-[115px]"}}}),none:()=>i(i({},(0,n.generateGridConfiguration)({baseConfiguration:[["product-title"],["product-image"],["sponsored-label"]],generateColumns:()=>"auto",generateRows:()=>"auto 1fr auto"})),{},{componentProps:{[a.Components.GridLayout]:{className:"pl-0.75 pr-0.75 pb-0.75 pt-[3px] gap-0.5"},[a.Components.ProductTitle]:{lines:2,className:"text-[15px] leading-[19px]",alignmentClass:"justify-start",showFeaturedByBrand:!0},[a.Components.SponsoredLabel]:{alignment:"right"}}}),showroom:()=>i(i({},(0,n.generateGridConfiguration)({baseConfiguration:[["logo-image","custom-image"],["headline-cta","headline-cta"],["sponsored-label","sponsored-label"]],generateColumns:()=>"1.4fr 1fr",generateRows:()=>"1fr 1fr"})),{},{componentProps:{[a.Components.CustomImage]:{imageScale:"square"},[a.Components.LogoImage]:{logoFrameClassName:"p-0.5"},[a.Components.HeadlineCTA]:{size:"none",destination:"showroom-page",variant:"linkArrow",className:"pl-1 pr-1",alignmentClass:"justify-center items-center",classNameText:"mb-0.5 mt-1 text-[14px] text-center"},[a.Components.SponsoredLabel]:{alignment:"right"}}})}},3816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(580),i=r(868),s=r(5951);function l(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.default={global:()=>({componentProps:{}}),hero:e=>{var t=e.isSubscribeAndSave,r=e.marketplace,n=e.isCoupon,a=e.isPmpOrMario;e=e.isRioPricing;return u(u({},t||"JP"===r&&n?{gridTemplateAreas:[["hero-component"],["product-title"],["price-badge"]],gridTemplateColumns:"100%",gridTemplateRows:"auto 1fr 2fr"}:{gridTemplateAreas:[["hero-component","hero-component"],["product-image","product-title"],["product-image","price-badge"]],gridTemplateColumns:"1fr 5fr",gridTemplateRows:"auto 1fr 2fr"}),{},{componentProps:{[i.Components.GridLayout]:{className:"p-0",alignmentClass:"items-start"},[i.Components.ProductImage]:{className:"p-0.5"},[i.Components.ProductTitle]:{lines:1,className:"pt-0.5 px-1",alignmentClass:"items-center justify-start"},[i.Components.PriceBadge]:{wrapperClass:"pl-1 gap-x-0.5 hidden b-w-sm:flex",alignmentClass:"items-start justify-start",automatedDealBadgeClasses:"max-w-[160px] hidden r-w-md:flex",automatedDealBadgeShortContentThreshold:o.SHORT_CONTENT_MAX_LENGTH,dealPriceClass:"leading-[1.2] !mb-0",badgeClass:"hidden r-w-md:flex",savingsTextSize:"xsmall",hideSavingsText:a&&!e,priceTextSize:e?"mediumPlus":void 0,isRioPriceInline:!0,hideBadge:e&&("DE"===r||"JP"===r&&n||!n)}}})},"hero-hl":e=>{var t=e.isSubscribeAndSave,r=e.marketplace,n=e.isCoupon,a=e.isPmpOrMario;e=e.isRioPricing;return u(u({},t||"JP"===r&&n?{gridTemplateAreas:[["hero-component"],["product-title"],["price-badge"]],gridTemplateColumns:"100%",gridTemplateRows:"auto 1fr 2fr"}:{gridTemplateAreas:[["hero-component","hero-component"],["product-image","product-title"],["product-image","price-badge"]],gridTemplateColumns:"1fr 4.5fr",gridTemplateRows:"auto 1fr 2fr"}),{},{componentProps:{[i.Components.GridLayout]:{className:"p-0",alignmentClass:"items-start"},[i.Components.ProductTitle]:{lines:1,className:"pt-0.5 px-1",alignmentClass:"items-center justify-start"},[i.Components.ProductImage]:{wrapperClassName:"p-0.5"},[i.Components.PriceBadge]:{wrapperClass:"pl-1 gap-x-0.5 hidden b-w-sm:flex",alignmentClass:"items-start justify-start",automatedDealBadgeClasses:"max-w-[160px] hidden r-w-md:flex",automatedDealBadgeShortContentThreshold:o.SHORT_CONTENT_MAX_LENGTH,dealPriceClass:"leading-[1.2] !mb-0",badgeClass:"hidden r-w-md:flex",savingsTextSize:"xsmall",hideSavingsText:a&&!e,priceTextSize:e?"mediumPlus":void 0,isRioPriceInline:!0,hideBadge:e&&("DE"===r||"JP"===r&&n||!n)}}})},"hero-lo":e=>{var t=e.isSubscribeAndSave,r=e.marketplace,n=e.isCoupon,s=e.isPmpOrMario,l=e.isRioPricing;e=e.hasDealBadge,e=l&&e;return u(u({},t||"JP"===r&&n||"DE"===r&&n||l&&n?{gridTemplateAreas:[["hero-component","hero-component"],["logo-image","price-badge"]],gridTemplateColumns:"1fr 4fr",gridTemplateRows:"auto 1fr"}:{gridTemplateAreas:[["hero-component","hero-component"],["logo-image","product-title"],["logo-image","price-badge"]],gridTemplateColumns:"1fr 5fr",gridTemplateRows:"auto 1fr 2fr"}),{},{componentProps:{[i.Components.GridLayout]:{className:"p-0",alignmentClass:"items-start"},[i.Components.LogoImage]:{wrapperClassName:"p-0.5"},[i.Components.ProductTitle]:{lines:1,className:"pt-0.5 px-1",alignmentClass:"items-center justify-start"},[i.Components.PriceBadge]:{wrapperClass:(0,a.default)("pl-1 gap-x-0.5",t||e?"flex-col pt-[2px] self-center":"hidden b-w-sm:flex","JP"===r&&n?"self-center":""),alignmentClass:"items-start justify-start",automatedDealBadgeClasses:"max-w-[160px] hidden r-w-md:flex",automatedDealBadgeShortContentThreshold:o.SHORT_CONTENT_MAX_LENGTH,dealPriceClass:"leading-[1.2] !mb-0",badgeClass:"hidden r-w-md:flex",savingsTextSize:"xsmall",hideSavingsText:s&&!l,priceTextSize:l?"mediumPlus":void 0,isRioPriceInline:!0,hideBadge:l&&!t&&!n}}})},"hero-hl-lo":e=>{var t=e.isSubscribeAndSave,r=e.marketplace,n=e.isCoupon,s=e.isPmpOrMario,l=e.isRioPricing;e=e.hasDealBadge,e=l&&e;return u(u({},t||"JP"===r&&n||l&&n?{gridTemplateAreas:[["hero-component","hero-component"],["logo-image","price-badge"]],gridTemplateColumns:"1fr 4fr",gridTemplateRows:"auto 1fr"}:{gridTemplateAreas:[["hero-component","hero-component"],["logo-image","headline"],["logo-image","price-badge"]],gridTemplateColumns:"1fr 4.5fr",gridTemplateRows:"auto 1fr 2fr"}),{},{componentProps:{[i.Components.GridLayout]:{className:"p-0",alignmentClass:"items-start"},[i.Components.Headline]:{textSize:"base",classNameText:"text-left pr-1 pt-[2px] line-clamp-1",className:"px-1",alignmentClass:"items-center justify-start"},[i.Components.LogoImage]:{wrapperClassName:"p-0.5"},[i.Components.PriceBadge]:{wrapperClass:(0,a.default)("pl-1 gap-x-0.5",t||e?"flex-col pt-[2px] self-center":"hidden b-w-sm:flex","JP"===r&&n?"self-center":""),alignmentClass:"items-start justify-start",automatedDealBadgeClasses:"max-w-[160px] hidden r-w-md:flex",automatedDealBadgeShortContentThreshold:o.SHORT_CONTENT_MAX_LENGTH,dealPriceClass:"leading-[1.2] !mb-0",badgeClass:"hidden r-w-md:flex",savingsTextSize:"xsmall",hideSavingsText:s&&!l,priceTextSize:l?"mediumPlus":void 0,isRioPriceInline:!0,hideBadge:l&&!t&&!n}}})},"showroom-video":()=>({gridTemplateAreas:[["hero-component","hero-component"],["logo-image","headline-cta"]],gridTemplateColumns:"1fr 5fr",gridTemplateRows:"auto 1fr",componentProps:{[i.Components.HeadlineCTA]:{size:"none",destination:"showroom-page",variant:"arrow",className:"px-1",alignmentClass:"justify-center items-start",classNameText:"text-[12px] mb-[3px]",ctaClass:"leading-[16px] text-[12px]"},[i.Components.LogoImage]:{wrapperClassName:"p-0.5"}}}),"product-collection-video":e=>{let t=e.productDetailsList,r=e.marketplace;return e=(null==t?void 0:t.map(((e,t)=>((e,t)=>{var n=new Set(["IT","TR","FR","PL"]).has(r)&&e.isSnsDiscount,o=null==e?void 0:e.energyEfficiency;return{type:"product-collection",productClickUrl:null==e?void 0:e.clickUrl,slideConfig:u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["product-image","buy-box"],["product-image","buy-box"]],generateColumns:()=>"1fr 3fr",generateRows:()=>"1fr"})),{},{componentProps:{[i.Components.GridLayout]:{className:"place-items-center gap-0.5"},[i.Components.ProductImage]:{className:"h-full w-full py-0.5",wrapperClassName:"h-full ml-0.5",productIndex:t,enableGreyBackground:!0},[i.Components.BuyBox]:{productIndex:t,wrapperClass:o?"px-0.5":"p-0.5",creativeExperience:i.CreativeExperience.ProductCollectionVideoSlide,isReponsiveBuyBox:!0,isCentered:!1,responsiveBuyBoxOverrides:{className:(0,a.default)("items-center","justify-center","gap-0.5"),priceSize:o?"small-mobile":"small",primeLogoSize:"medium",getBuyboxLayoutFromTemplateAreaConfig:!0,badgeSize:n?"micro":"small"},energyEfficiencySize:"small",isSavingsTextInline:!0}}})}})(e,t))))||[],u(u({},{gridTemplateAreas:[["hero-component"],["inset-carousel"]],gridTemplateColumns:"100%",gridTemplateRows:"auto 1fr"}),{},{componentProps:{[i.Components.GridLayout]:{className:"px-0 bg-white"},[i.Components.InsetCarousel]:{sliderClassName:"h-full w-full px-0",slideClassName:(0,a.default)("h-full w-full px-4"),hasRoundedSlideCorners:!1,hasBorder:!1,loopSlides:!0,centeredSlides:!1,showNavigation:!0,hasDropShadow:!1,slides:[...e,u(u({type:"custom",isBrandLink:!0},(0,s.generateGridConfiguration)({baseConfiguration:[["logo-image","cta-button"]],generateColumns:()=>"auto",generateRows:()=>"1fr"})),{},{componentProps:{[i.Components.GridLayout]:{className:"justify-center items-center gap-1 px-4"},[i.Components.LogoImage]:{wrapperClassName:"px-1 py-0.5"},[i.Components.CTAButton]:{variant:"link",size:"none",destination:"store-page",isNoWrap:!1,className:"text-center px-1"}}})]}}})}}},242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=r(518),o=(n=r(4184))&&n.__esModule?n:{default:n},i=r(5951),s=r(868),l=r(2350),u=r(580),c=r(5670),d=r(9441);function p(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const f=e=>"te_IN"===e?"small":"medium";t.default={global:e=>{var t=e.locale,r=e.currentScreen,n=e.showEnergyEfficiency,a=e.hasDealBadge,o=e.isTextCTAExperiment,i=e.showWholeFoodsLogo,u=e.isSubscribeAndSave,c=e.showClimatePledgeFriendly,d=e.hasSavingsText,p=e.isRioPricing,m=e.isPricePerUnit;e=e.showStrikeThroughPrice;let g=p&&(m||e)?3:c?5:u?3:4;return p={ctaSize:f(t),productTitleMaxLines:2,totalLines:g,className:r===s.ScreenSizes.RectangleXS||r===s.ScreenSizes.RectangleSM?"p-1":"px-2 py-1",showAdditionalHeadlineLineWhenNeeded:!0,showAdditionalHeadlineLineCharThreshold:r===s.ScreenSizes.RectangleXS||r===s.ScreenSizes.RectangleSM?void 0:40,showRectangleWithCTA:!0,dealPriceClasses:"gap-y-0",priceSizeOverride:a||n||d?"text-[18px] leading-[18px]":void 0,badgeSize:"small",energyEfficiencySize:"medium",hideCta:!0,removeItems:n?[l.BuyBoxComponents.DealBadge]:void 0,widthInFraction:1,heightInFraction:.4,showCPFLogo:c&&!n,savingsTextSize:"xsmall",priceSize:p?"mediumPlus":void 0,isRioPriceInline:!0},o&&!n&&Object.assign(p,{showRectangleWithCTA:!1,showTextCTA:!0,ctaSize:"small"}),!i||a||d||Object.assign(p,{dealPriceClasses:"gap-y-0 flex flex-col"}),{componentProps:{[s.Components.CustomImage]:{imageScale:"square"},[s.Components.LogoImage]:{className:r===s.ScreenSizes.RectangleXS||r===s.ScreenSizes.RectangleSM?"px-1 px-0.5 max-w-[115px] max-h-[115px]":"p-1 max-w-[120px] max-h-[120px]"},[s.Components.ProductImage]:{className:r===s.ScreenSizes.RectangleXS||r===s.ScreenSizes.RectangleSM?"py-1 px-0.5 max-w-[135px] max-h-[135px]":"p-1 max-w-[140px] max-h-[140px]"},[s.Components.Headline]:{className:"p-1"},[s.Components.BuyBox]:p}}},none:e=>{var t=e.locale,r=e.isTextCTAExperiment,n=e.showEnergyEfficiency,a=e.isTextCTAButtonExperiment,o=e.currentScreen;e=e.showClimatePledgeFriendly,e={ctaSize:f(t),className:"p-1",showCPFLogo:e};return r&&!n&&Object.assign(e,{showRectangleWithCTA:!1,showTextCTA:!0,ctaSize:"small"}),a&&o===s.ScreenSizes.RectangleSM&&Object.assign(e,{showRectangleWithCTA:!1,showTextCTA:!0}),m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","product-image"],["buy-box","buy-box"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"1fr auto"})),{},{componentProps:{[s.Components.ProductImage]:{className:"py-1 px-0.5 max-w-[260px]",animationType:"scrollShine"},[s.Components.BuyBox]:e}})},"ci-hl-lo":e=>{var t=e.locale,r=e.isShowroomCreative,n=e.isTextCTAExperiment,a=e.isTextCTAButtonExperiment,o=e.currentScreen,l=e.showEnergyEfficiency,u=e.hasDealBadge,c=e.showClimatePledgeFriendly;e=e.hasSavingsText,e={titleRegion:"headline",ctaSize:n?"small":f(t),hideBadge:n,showRectangleWithCTA:!n,isShowroomCreative:r,totalLines:4,showCPFLogo:c&&!l&&!u&&!e};return a&&o===s.ScreenSizes.RectangleSM&&Object.assign(e,{showRectangleWithCTA:!1,showTextCTA:!0,ctaSize:"small"}),m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","custom-image"],["buy-box","buy-box"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"1fr auto"})),{},{componentProps:{[s.Components.BuyBox]:e,[s.Components.ProductImage]:{className:"py-1 px-0.5"}}})},"ci-hl":e=>{var t=e.locale,r=e.isShowroomCreative,n=e.isTextCTAExperiment,a=e.isTextCTAButtonExperiment,o=e.currentScreen,l=e.showEnergyEfficiency,u=e.showClimatePledgeFriendly,c=e.isRioPricing,d=e.isPricePerUnit;e=e.showStrikeThroughPrice;let p=u?5:4;return c&&(d||e)&&(p=3),l={titleRegion:"product-title",ctaSize:n?"small":f(t),hideBadge:n,showRectangleWithCTA:!n,isShowroomCreative:r,showCPFLogo:u&&!l,totalLines:p},a&&o===s.ScreenSizes.RectangleSM&&Object.assign(l,{showRectangleWithCTA:!1,showTextCTA:!0,ctaSize:"small"}),m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","headline"],["buy-box","buy-box"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"1fr auto"})),{},{componentProps:{[s.Components.BuyBox]:l,[s.Components.ProductImage]:{className:"py-1 px-0.5"}}})},"ci-lo":e=>{var t=e.locale,r=e.isShowroomCreative,n=e.isTextCTAExperiment,a=e.isTextCTAButtonExperiment,o=e.currentScreen,l=e.showEnergyEfficiency;e=e.showClimatePledgeFriendly,l={hideBadge:!1,ctaSize:n?"small":f(t),showRectangleWithCTA:!n,isShowroomCreative:r,showCPFLogo:e&&!l};return a&&o===s.ScreenSizes.RectangleSM&&Object.assign(l,{showRectangleWithCTA:!1,showTextCTA:!0,ctaSize:"small"}),m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","logo-image"],["buy-box","buy-box"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"1fr auto"})),{},{componentProps:{[s.Components.BuyBox]:l,[s.Components.ProductImage]:{className:"py-1 px-0.5"}}})},"hl-lo":e=>{var t=e.locale,r=e.isTextCTAExperiment,n=e.currentScreen,a=e.isTextCTAButtonExperiment,o=e.showEnergyEfficiency;e=e.showClimatePledgeFriendly,o={ctaSize:f(t),className:"p-1",showRectangleWithCTA:!0,showCPFLogo:e&&!o};return r&&Object.assign(o,{showRectangleWithCTA:!1,showTextCTA:!0,ctaSize:"small"}),a&&n===s.ScreenSizes.RectangleSM&&Object.assign(o,{showRectangleWithCTA:!1,showTextCTA:!0,ctaSize:"small"}),m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","logo-image"],["product-image",n===s.ScreenSizes.RectangleXS?"logo-image":"headline"],["buy-box","buy-box"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"1fr 1fr auto"})),{},{componentProps:{[s.Components.BuyBox]:o,[s.Components.ProductImage]:{className:"py-1 px-0.5",animationType:"scrollShine"},[s.Components.LogoImage]:{className:"px-0.5",wrapperClassName:"mt-1"},[s.Components.Headline]:{classNameText:"text-base"}}})},ci:e=>{var t=e.locale,r=e.isTextCTAExperiment,n=e.isTextCTAButtonExperiment,a=e.currentScreen,o=e.showEnergyEfficiency;e=e.showClimatePledgeFriendly,o={hideBadge:r,ctaSize:r?"small":f(t),className:"p-1",showRectangleWithCTA:!r,showCPFLogo:e&&!o};return n&&a===s.ScreenSizes.RectangleSM&&Object.assign(o,{showRectangleWithCTA:!1,showTextCTA:!0,ctaSize:"small"}),m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","custom-image"],["buy-box","buy-box"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"1fr auto"})),{},{componentProps:{[s.Components.CustomImage]:{imageScale:"horizontal"},[s.Components.BuyBox]:o}})},lo:e=>{var t=e.isTextCTAExperiment,r=e.isTextCTAButtonExperiment,n=e.currentScreen,a=e.showEnergyEfficiency;a={showRectangleWithCTA:!t,showCPFLogo:e.showClimatePledgeFriendly&&!a};return r&&n===s.ScreenSizes.RectangleSM&&Object.assign(a,{showRectangleWithCTA:!1,showTextCTA:!0,ctaSize:"small"}),m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","product-image"],["buy-box","buy-box"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"1fr auto"})),{},{componentProps:{[s.Components.BuyBox]:a,[s.Components.ProductImage]:{animationType:"scrollShine"}}})},hl:e=>{var t=e.locale,r=e.isTextCTAExperiment,n=e.isTextCTAButtonExperiment,a=e.currentScreen,o=e.showEnergyEfficiency;e=e.showClimatePledgeFriendly,o={ctaSize:r?"small":f(t),showRectangleWithCTA:!r,showCPFLogo:e&&!o};return n&&a===s.ScreenSizes.RectangleSM&&Object.assign(o,{showRectangleWithCTA:!1,showTextCTA:!0,ctaSize:"small"}),m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image",a===s.ScreenSizes.RectangleXS?"product-image":"headline"],["buy-box","buy-box"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"1fr auto"})),{},{componentProps:{[s.Components.BuyBox]:o,[s.Components.ProductImage]:{animationType:"scrollShine"}}})},hero:e=>{var t=e.hasDealBadge,r=e.showEnergyEfficiency,n=e.expandableAdStatus,o=e.width,i=e.height,l=e.isVideoAutoPlayDisabled,u=e.isRioPricing,d=e.isPricePerUnit,p=e.showStrikeThroughPrice,m=e.marketplace,f=e.isCoupon;m=u&&(d||p)||u&&f&&"JP"===m;let g="";return g=!(e=n===c.ExpandableAdStatus.Expanded)||t&&!m?"6.5fr 1fr 2fr":"6.5fr 3fr 2fr",{gridTemplateAreas:e?[["hero-component","hero-component"],["product-image","product-title"],["product-image","price-badge"]]:[["hero-component","hero-component","hero-component"],["product-image","product-title","cta-button"],["product-image","price-badge","price-badge"]],gridTemplateColumns:e?"1.5fr 4.5fr":"1.5fr 3.5fr 1fr",gridTemplateRows:g,componentProps:{[s.Components.GridLayout]:{className:"p-0",alignmentClass:"items-start"},[s.Components.ProductImage]:{wrapperClassName:e?"p-0.5":"p-1",className:"p-0",imageHeight:(0,c.getExpandedViewImageDimension)({expandableAdStatus:n,width:o,height:i}).height},[s.Components.ProductTitle]:{lines:m||!t||r?2:1,className:(0,a.twMerge)("pb-0.5","px-1",t?"pt-0.5":"pt-1"),alignmentClass:"items-end justify-start"},[s.Components.PriceBadge]:{wrapperClass:"flex-col pl-1",alignmentClass:"items-start justify-start",badgeClass:"gap-y-[2px]",savingsTextSize:"xsmall",isRioPriceInline:!0,priceTextSize:u?"mediumPlus":void 0,hideBadge:m},[s.Components.CTAButton]:{className:"flex flex-col text-cyan-700 pr-1 "+(t?"pt-0.5":"pt-[7px]"),variant:"arrow",size:"none",alignmentClass:"items-start justify-start"},[s.Components.HeroComponent]:{autoPlayWhenInView:!l}}}},"hero-lo":e=>{var t=e.hasDealBadge,r=e.showEnergyEfficiency,n=e.expandableAdStatus,o=e.width,i=e.height,l=e.isVideoAutoPlayDisabled,u=e.isRioPricing,d=e.isPricePerUnit,p=e.showStrikeThroughPrice,m=e.marketplace,f=e.isCoupon;m=u&&(d||p)||u&&f&&"JP"===m;let g="";return g=!(e=n===c.ExpandableAdStatus.Expanded)||t&&!m?"6.5fr 1fr 2fr":"6.5fr 3fr 2fr",{gridTemplateAreas:e?[["hero-component","hero-component"],["logo-image","product-title"],["logo-image","price-badge"]]:[["hero-component","hero-component","hero-component"],["logo-image","product-title","cta-button"],["logo-image","price-badge","price-badge"]],gridTemplateColumns:e?"1.5fr 4.5fr":"1.5fr 3.5fr 1fr",gridTemplateRows:g,componentProps:{[s.Components.GridLayout]:{className:"p-0",alignmentClass:"items-start"},[s.Components.ProductTitle]:{lines:!t||m||r?2:1,className:(0,a.twMerge)("pb-0.5","px-1",t?"pt-0.5":"pt-1"),alignmentClass:"items-end justify-start"},[s.Components.PriceBadge]:{wrapperClass:"flex-col pl-1",alignmentClass:"items-start justify-start",badgeClass:"gap-y-[2px]",savingsTextSize:"xsmall",isRioPriceInline:!0,priceTextSize:u?"mediumPlus":void 0,hideBadge:m},[s.Components.CTAButton]:{className:"flex flex-col text-cyan-700 pr-1 "+(t?"pt-0.5":"pt-[7px]"),variant:"arrow",size:"none",alignmentClass:"items-start justify-start"},[s.Components.LogoImage]:{imageHeight:(0,c.getExpandedViewImageDimension)({expandableAdStatus:n,width:o,height:i}).height},[s.Components.HeroComponent]:{autoPlayWhenInView:!l}}}},"hero-hl":e=>{var t=e.hasDealBadge,r=e.expandableAdStatus,n=e.width,o=e.height,i=e.isVideoAutoPlayDisabled,l=e.isRioPricing,u=e.isPricePerUnit,d=e.showStrikeThroughPrice,p=e.marketplace,m=e.isCoupon;e=r===c.ExpandableAdStatus.Expanded,p=(d=l&&(u||d))||l&&m&&"JP"===p;return{gridTemplateAreas:[["hero-component","hero-component"],["product-image","product-title"],["product-image","price-badge"]],gridTemplateColumns:"1.5fr 4.5fr",gridTemplateRows:t&&!p||d?"6.5fr 1fr 2fr":"6.5fr 3fr 2fr",componentProps:{[s.Components.GridLayout]:{className:"p-0",alignmentClass:"items-start"},[s.Components.ProductTitle]:{lines:t&&!p?1:2,className:(0,a.twMerge)("pb-0.5","px-1",t?"pt-0.5":"pt-1"),alignmentClass:"items-end justify-start"},[s.Components.ProductImage]:{wrapperClassName:e?"p-0.5":"p-1",className:"p-0",imageHeight:(0,c.getExpandedViewImageDimension)({expandableAdStatus:r,width:n,height:o}).height},[s.Components.PriceBadge]:{wrapperClass:"flex-col pl-1 gap-x-0.5",alignmentClass:"items-start justify-start",badgeClass:"gap-y-[2px]",savingsTextSize:"xsmall",isRioPriceInline:!0,priceTextSize:l?"mediumPlus":void 0,hideBadge:p},[s.Components.HeroComponent]:{autoPlayWhenInView:!i}}}},"hero-hl-lo":e=>{var t=e.hasDealBadge,r=e.expandableAdStatus,n=e.width,o=e.height,i=e.isVideoAutoPlayDisabled,l=e.isRioPricing,u=e.isPricePerUnit,d=e.showStrikeThroughPrice,p=e.marketplace;e=e.isCoupon,p=(d=l&&(u||d))||l&&e&&"JP"===p;return{gridTemplateAreas:[["hero-component","hero-component"],["logo-image","product-title"],["logo-image","price-badge"]],gridTemplateColumns:"1.5fr 4.5fr",gridTemplateRows:t&&!p||d?"6.5fr 1fr 2fr":"6.5fr 3fr 2fr",componentProps:{[s.Components.GridLayout]:{className:"p-0",alignmentClass:"items-start"},[s.Components.ProductTitle]:{lines:t&&!p?1:2,className:(0,a.twMerge)("pb-0.5","px-1",t?"pt-0.5":"pt-1"),alignmentClass:"items-end justify-start"},[s.Components.PriceBadge]:{wrapperClass:"flex-col pl-1 gap-x-0.5",alignmentClass:"items-start justify-start",badgeClass:"gap-y-[2px]",savingsTextSize:"xsmall",isRioPriceInline:!0,priceTextSize:l?"mediumPlus":void 0,hideBadge:p},[s.Components.LogoImage]:{imageHeight:(0,c.getExpandedViewImageDimension)({expandableAdStatus:r,width:n,height:o}).height},[s.Components.HeroComponent]:{autoPlayWhenInView:!i}}}},zoetrope:e=>{var t=e.showEnergyEfficiency,r=e.isPmpOrMario,n=e.isZoetropeDynamicSlot,a=e.isRioPricing;e=e.marketplace;let o=t?[""]:void 0;a&&"DE"===e&&(o=["deal-badge"]);const l=[m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","buy-box"]],generateColumns:()=>"auto 1fr",generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"gap-1 px-1"},[s.Components.ProductImage]:{className:"max-w-[90px] max-h-[90px]"},[s.Components.Slide]:{hasShadedBackground:!0,className:"max-w-[88%]"},[s.Components.BuyBox]:{totalLines:a?4:5,showRectangleWithCTA:!1,className:"p-0",removeItems:o,badgeSize:"small",automatedDealBadgeTextSize:"small",automatedDealBadgeShortContentThreshold:u.REGULARCONTENT_MAX_LENGTH,hideSavingsText:r&&!a,isSavingsTextInline:a,savingsTextSize:"small",priceSize:a?"mediumPlus":void 0}}}),m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image"]],generateColumns:()=>"auto",generateRows:()=>"auto"})),{},{componentProps:{[s.Components.CustomImage]:{imageScale:"horizontal",resizeBehavior:"cover",showBorder:!1},[s.Components.Slide]:{className:"max-w-[88%]"}}})];return l.push(m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image"],["cta-button"]],generateColumns:()=>"auto",generateRows:()=>"auto auto"})),{},{componentProps:{[s.Components.LogoImage]:{className:"max-w-[140px] p-1"},[s.Components.BuyBox]:{totalLines:5},[s.Components.Slide]:{hasShadedBackground:!1,isBrandLink:!0,className:"max-w-[88%]"},[s.Components.CTAButton]:{variant:"link",size:"none",destination:"store-page",isNoWrap:!1}}})),{slides:l,componentProps:{[s.Components.BuyBox]:{totalLines:5},[s.Components.Slider]:{header:{titleRegion:"headline",hasSponsoredLabel:n},sliderClassName:"pb-[5px]",hasRoundedSlideCorners:!0}}}},"non-endemic":e=>{var t=e.isTermsAndConditions,r=e.currentScreen,n=e.primaryColorRGB,a=e.customBackgroundColorRGB,i=e.height,l=e.backgroundBrightness;e={[s.ScreenSizes.RectangleXS]:"text-[12px] leading-[14px]",[s.ScreenSizes.RectangleSM]:"text-[16px] leading-[18px]",[s.ScreenSizes.RectangleMD]:"text-[16px] leading-[20px]",[s.ScreenSizes.RectangleLG]:"text-[24px] leading-[28px]"},i=r===s.ScreenSizes.RectangleXS||i<210;return{gridTemplateAreas:[["custom-image","custom-image"],["logo-image","flex"]],gridTemplateColumns:"1fr 3.5fr",gridTemplateRows:"auto 1fr",componentProps:{[s.Components.GridLayout]:{className:"p-0",style:{backgroundColor:a}},[s.Components.CustomImage]:{imageScale:"horizontal"},[s.Components.LogoImage]:{className:"max-w-[110px] p-1",wrapperClassName:"bg-white",alignment:"center"},[s.Components.Flex]:{className:(0,o.default)("h-full justify-around px-1 py-0.5",r===s.ScreenSizes.RectangleLG?"pl-2":""),innerClassName:"flex-col h-auto",flexItems:[{regions:i?["headline",t?"terms-and-conditions-label":""]:["headline","cta-button",t?"terms-and-conditions-label":""],componentProps:{[s.Components.Headline]:{classNameText:e[r],alignmentClass:"justify-left items-end",className:"mb-1"},[s.Components.CTAButton]:{variant:"dark"===l?"blockSmInverted":"blockSm",size:"none",destination:"landing-page",overrideHoverColor:"dark"===l&&"transparent"!==n?n:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"},[s.Components.TermsAndConditionsLabel]:{className:r===s.ScreenSizes.RectangleLG?"text-[11px] leading-[13px]":"text-[9px] leading-[11px]",wrapperClass:i?"absolute right-[4px] bottom-[4px]":"absolute right-[8px] bottom-[8px]"}}}]}}}},"non-endemic-sparkle":e=>{var t=e.currentScreen,r=e.isTwitchDarkAd,n=e.primaryColorRGB,a=e.height;e={[s.ScreenSizes.RectangleXS]:"text-[12px] leading-[14px]",[s.ScreenSizes.RectangleSM]:"text-[16px] leading-[18px]",[s.ScreenSizes.RectangleMD]:"text-[16px] leading-[24px]",[s.ScreenSizes.RectangleLG]:"text-[24px] leading-[28px]"},a=t===s.ScreenSizes.RectangleXS||a<210;return{gridTemplateAreas:[["logo-image"],["custom-image"],["flex"]],gridTemplateColumns:"100%",gridTemplateRows:"1fr auto 2fr",componentProps:{[s.Components.GridLayout]:{className:"p-1",style:{backgroundColor:n}},[s.Components.CustomImage]:{imageScale:"horizontal"},[s.Components.LogoImage]:{className:"max-w-[110px] pb-1",wrapperClassName:"justify-start",alignment:"center"},[s.Components.Flex]:{className:(0,o.default)("h-full justify-around p-0.5",t===s.ScreenSizes.RectangleLG?"pl-2":""),innerClassName:"flex-col h-auto",flexItems:[{regions:a?["headline"]:["headline","cta-button"],componentProps:{[s.Components.Headline]:{classNameText:e[t],alignmentClass:"justify-left items-end",className:"mb-1.5"},[s.Components.CTAButton]:{variant:r?"blockSmInverted":"blockSm",size:"none",destination:"landing-page",overrideHoverColor:r&&"transparent"!==n?n:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"}}}]}}}},leadgen:e=>{var t=e.isTermsAndConditions;let r=t?[["custom-image","headline-logo"],["leadgen-button","leadgen-button"],["cta-button","cta-button"],["terms-and-conditions-label","terms-and-conditions-label"]]:[["custom-image","headline-logo"],["leadgen-button","leadgen-button"],["cta-button","cta-button"]],n="auto 1fr 1fr";return(e=e.width/e.height<1)&&(r=t?[["custom-image","logo-image"],["headline","headline"],["leadgen-button","leadgen-button"],["cta-button","cta-button"],["terms-and-conditions-label","terms-and-conditions-label"]]:[["custom-image","logo-image"],["headline","headline"],["leadgen-button","leadgen-button"],["cta-button","cta-button"]],n="auto 1.57fr 1fr 1fr"),{gridTemplateAreas:r,gridTemplateColumns:"1fr 1fr",gridTemplateRows:n,componentProps:{[s.Components.GridLayout]:{className:"p-0"},[s.Components.CustomImage]:{imageScale:"square",imageAlignment:"leftCenter"},[s.Components.HeadlineLogo]:{className:"pl-1 pr-[18px] pt-1",classNameText:"mt-2",classNameImage:"max-w-[116] max-h-[60px]"},[s.Components.LogoImage]:{alignment:"leftCenter",wrapperClassName:"px-0.5 justify-center"},[s.Components.Headline]:{className:"px-1",alignmentClass:"items-center",isFontBold:!1},[s.Components.LeadGenButton]:{buttonType:"LeadGen",className:"px-2 pt-1",alignmentClass:e?void 0:"items-end"},[s.Components.CTAButton]:{variant:"linkSecondary",size:"none",destination:"landing-page",buttonClass:"text-[13px] font-bold"},[s.Components.TermsAndConditionsLabel]:{className:"text-[11px] leading-[13px]",wrapperClass:"absolute right-[4px] bottom-[4px]"}}}},showroom:e=>{var t=e.currentScreen,r=e.height,n=e.isTwitchDarkAd,a=e.primaryColorRGB;e={[s.ScreenSizes.RectangleXS]:"text-[12px] leading-[14px]",[s.ScreenSizes.RectangleSM]:"text-[16px] leading-[18px]",[s.ScreenSizes.RectangleMD]:"text-[16px] leading-[20px]",[s.ScreenSizes.RectangleLG]:"text-[24px] leading-[28px]"},r=t===s.ScreenSizes.RectangleXS||r<210;return{gridTemplateAreas:[["custom-image","custom-image"],["logo-image","flex"]],gridTemplateColumns:"1fr 3.5fr",gridTemplateRows:"auto 1fr",componentProps:{[s.Components.GridLayout]:{className:"p-0",style:{backgroundColor:"rgba(15, 17, 17, 0.04)"}},[s.Components.CustomImage]:{imageScale:"horizontal"},[s.Components.LogoImage]:{className:"max-w-[110px] p-1",wrapperClassName:"bg-white",alignment:"center"},[s.Components.Flex]:{className:(0,o.default)("h-full justify-around px-1 py-0.5",t===s.ScreenSizes.RectangleLG?"pl-2":""),innerClassName:"flex-col h-auto",flexItems:[{regions:r?["headline"]:["headline","cta-button"],componentProps:{[s.Components.Headline]:{classNameText:e[t],alignmentClass:"justify-left items-end",className:"mb-1"},[s.Components.CTAButton]:{variant:"squarePillWhite",size:"small",destination:"showroom-page",overrideHoverColor:n&&"transparent"!==a?a:void 0,isFullHeightButton:!1,alignmentClass:"justify-left items-start h-full"}}}]}}}},"showroom-video":()=>({gridTemplateAreas:[["hero-component","hero-component"],["logo-image","headline-cta"]],gridTemplateColumns:"1.5fr 4.5fr",gridTemplateRows:"6.5fr 3.5fr",componentProps:{[s.Components.HeadlineCTA]:{size:"none",destination:"showroom-page",variant:"arrow",className:"px-1",alignmentClass:"justify-center items-start",classNameText:"text-[13px] mb-[3px]"}}}),"product-collection":e=>{let t=e.productDetailsList,r=void 0===t?[]:t,n=e.marketplace,a=e.hasDealBadge,l=e.showEnergyEfficiency;var u=Boolean(1<(null==r?void 0:r.length));return e=(null==r?void 0:r.map(((e,t)=>((e,t)=>{var r="DE"===n&&e.isPrime,u=e.energyEfficiency?["deal-badge"]:[];return{type:"product-collection",productClickUrl:null==e?void 0:e.clickUrl,slideConfig:m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image"],["buy-box"]],generateColumns:()=>"auto",generateRows:()=>"auto auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"place-items-center"},[s.Components.ProductImage]:{className:"h-full w-full py-0.5",wrapperClassName:"min-w-28 min-h-20 h-full",productIndex:t,enableGreyBackground:!0},[s.Components.BuyBox]:{productIndex:t,wrapperClass:r?"pb-0.5":"p-0.5",paddingY:r?4:8,creativeExperience:s.CreativeExperience.ProductCollectionSlide,isReponsiveBuyBox:!0,isCentered:!0,hideSavingsText:!0,responsiveBuyBoxOverrides:{className:(0,o.default)("items-center","justify-center","place-items-center","gap-0.5"),priceSize:r?"small-desktop":"medium",primeLogoSize:"small",getBuyboxLayoutFromTemplateAreaConfig:!1,productTitleMaxLines:a||l?1:2},hideStrikeOutPrice:r,energyEfficiencySize:"medium",removeItems:l?[...u,"ratings"]:u}}})}})(e,t))))||[],m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["inset-carousel"]],generateColumns:()=>"auto",generateRows:()=>"auto"})),{},{componentProps:{[s.Components.GridLayout]:{className:"px-0 bg-zinc-100"},[s.Components.InsetCarousel]:{sliderClassName:"py-[8px] w-full",slideClassName:"max-w-[80%] bg-white border rounded border-neutral-200",hasRoundedSlideCorners:!0,loopSlides:u,centeredSlides:u,showNavigation:!0,slides:[...e,m(m({type:"custom",isBrandLink:!0},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image","custom-image"],["logo-image","cta-button"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"auto 1fr"})),{},{[s.Components.CustomImage]:{imageScale:"horizontal"},componentProps:{[s.Components.LogoImage]:{wrapperClassName:"px-1 py-2"},[s.Components.CTAButton]:{variant:"link",size:"none",destination:"store-page",isNoWrap:!1,className:"text-center pr-1"}}})]}}})},"product-collection-video":e=>{let t=e.productDetailsList,r=void 0===t?[]:t,n=e.marketplace,a=e.isMobile;var u=Boolean(1<(null==r?void 0:r.length));return e=(null==r?void 0:r.map(((e,t)=>((e,t)=>{var r="DE"===n&&e.isPrime;return{type:"product-collection",productClickUrl:null==e?void 0:e.clickUrl,slideConfig:m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["product-image","buy-box"],["product-image","buy-box"]],generateColumns:()=>"1fr 3fr",generateRows:()=>"1fr"})),{},{componentProps:{[s.Components.GridLayout]:{className:"place-items-center"},[s.Components.ProductImage]:{className:"h-full w-full py-1",wrapperClassName:"h-full",productIndex:t,enableGreyBackground:!0},[s.Components.BuyBox]:{productIndex:t,wrapperClass:r?"py-0.5":"p-0.5",creativeExperience:s.CreativeExperience.ProductCollectionVideoSlide,isReponsiveBuyBox:!0,isCentered:!1,responsiveBuyBoxOverrides:{className:(0,o.default)("items-center","justify-center","gap-0.5"),priceSize:r?"small-desktop":"small",primeLogoSize:r?"small":"medium",getBuyboxLayoutFromTemplateAreaConfig:!0,badgeSize:"small"},hideStrikeOutPrice:r,energyEfficiencySize:"medium",isSavingsTextInline:!1,removeItems:"JP"===n?[l.BuyBoxComponents.DealBadge]:[]}}})}})(e,t))))||[],{gridTemplateAreas:[["hero-component","hero-component"],["inset-carousel","inset-carousel"]],gridTemplateColumns:"1fr",gridTemplateRows:"auto 1fr",componentProps:{[s.Components.GridLayout]:{className:"p-0"},[s.Components.InsetCarousel]:{sliderClassName:"py-1 w-full",slideClassName:"max-w-[90%] bg-white border rounded border-neutral-200",hasRoundedSlideCorners:!0,loopSlides:u,centeredSlides:u,showNavigation:!a,slides:[...e,m(m({type:"custom",isBrandLink:!0},(0,i.generateGridConfiguration)({baseConfiguration:[["logo-image","cta-button"]],generateColumns:()=>"1fr 3fr",generateRows:()=>"1fr"})),{},{[s.Components.CustomImage]:{imageScale:"horizontal"},componentProps:{[s.Components.LogoImage]:{wrapperClassName:"px-1 py-1"},[s.Components.CTAButton]:{variant:"link",size:"none",destination:"store-page",isNoWrap:!1,className:"text-center pr-1"}}})]}}}},"non-endemic-zoetrope":e=>{var t=e.backgroundBrightness,r=e.primaryColorRGB,n=e.isTermsAndConditions,a=e.customImageDetail,o=(e=e=>m(m({},(0,i.generateGridConfiguration)({baseConfiguration:[["custom-image"]],generateColumns:()=>"1fr",generateRows:()=>"auto"})),{},{componentProps:{[s.Components.CustomImage]:{imageScale:"horizontal",className:"w-full p-0 ",imageIndex:e,resizeBehavior:"cover"}}}),1<(null==a||null===(o=a.squareCustomImages)||void 0===o?void 0:o.length)?"inset-carousel":"custom-image");return{gridTemplateAreas:n?[[o,o],["title-label","title-label"],["logo-image","flex"]]:[[o,o],["title-label","title-label"],["logo-image","cta-button"]],gridTemplateColumns:"1fr 1fr",gridTemplateRows:"4fr auto auto",componentProps:{[s.Components.GridLayout]:{className:"p-0"},[s.Components.CustomImage]:{imageScale:"horizontal",className:"w-full pb-1.5 ",imageIndex:0,resizeBehavior:"cover"},[s.Components.InsetCarousel]:{sliderClassName:"w-full p-0 pb-1.5",slideClassName:"w-full",hasDropShadow:!1,hasRoundedSlideCorners:!1,hasSideGradient:!0,hasSlideStyling:!1,hasHeader:!1,loopSlides:!0,centeredSlides:!0,showNavigation:!0,slidesPerView:1,spaceBetweenSlides:0,isInsetCarousel:!0,slides:[e(0),e(1)]},[s.Components.LogoImage]:{wrapperClassName:"px-1.5 justify-start",className:"max-w-[104px] max-h-4",alignment:"leftCenter"},[s.Components.TitleLabel]:{variant:d.TitleVariant.LocalBusinessForYou,isFontBold:!0,alignmentClass:"justify-start item-center",className:"px-1.5 pr-0 pb-2",classNameText:"text-[18px] leading-[22px]"},[s.Components.CTAButton]:{variant:"link",size:"none",destination:"landing-page",overrideHoverColor:"dark"===t&&"transparent"!==r?r:void 0,isFullHeightButton:!1,isNoWrap:!1,className:"p-1.5",alignmentClass:"justify-end items-end h-full"},[s.Components.Flex]:{className:"h-full justify-around items-center",innerClassName:"flex-col h-auto",flexItems:[{regions:["cta-button","terms-and-conditions-label"],componentProps:{[s.Components.CTAButton]:{variant:"link",size:"none",destination:"landing-page",overrideHoverColor:"dark"===t&&"transparent"!==r?r:void 0,isFullHeightButton:!1,isNoWrap:!1,className:"pb-0.5",alignmentClass:"justify-end items-end h-full"},[s.Components.TermsAndConditionsLabel]:{className:"text-[11px] leading-[13px] pb-1.5",wrapperClass:"items-start justify-center"}}}]}}}}}},7139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(518),i=r(868),s=r(5951);function l(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const c=[["product-image","product-image"],["buy-box","buy-box"]];t.default={global:e=>{var t=e.hasDealBadge;e=e.hasSavingsText;return{componentProps:{[i.Components.ProductImage]:{className:"py-1 max-w-[140px] max-h-[140px]",wrapperClassName:(0,o.twMerge)("tw-clip-diagonal-half","dark:bg-white pb-[10px] w-full h-full")},[i.Components.ProductTitle]:{lines:1},[i.Components.BuyBox]:{heightInFraction:.3,widthInFraction:.6,wrapperClass:"p-1.5",creativeExperience:i.CreativeExperience.Twitch,responsiveBuyBoxOverrides:{className:(0,a.default)("items-center","justify-center"),productTitleMaxLines:t||e?1:2,productTitleVariant:"large",ratingsSize:"medium",priceSize:"large",ratingsTextSize:"large",badgeSize:"small",getBuyboxLayoutFromTemplateAreaConfig:!1},savingsTextSize:"large"},[i.Components.CustomImage]:{imageScale:"square"},[i.Components.Headline]:{className:"px-2 text-md"}}}},none:e=>(e=e.hasDealBadge,u(u({},(0,s.generateGridConfiguration)({baseConfiguration:c,generateColumns:()=>"auto",generateRows:()=>"2fr 1fr"})),{},{componentProps:{[i.Components.ProductImage]:{className:e?"py-1.5 px-0.5 max-w-[85px] max-h-[120px]":"py-1.5 px-0.5 max-w-[85px]"}}})),"ci-hl-lo":()=>u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["custom-image","headline"],["buy-box","buy-box"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"1fr auto"})),{},{componentProps:{[i.Components.Headline]:{className:"text-lg"},[i.Components.BuyBox]:{productTitleVariant:"md"}}}),"ci-hl":()=>u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["custom-image","headline"],["buy-box","buy-box"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"1fr auto"})),{},{componentProps:{[i.Components.Headline]:{className:"text-lg"},[i.Components.BuyBox]:{productTitleVariant:"md"}}}),"ci-lo":()=>u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["custom-image","custom-image"],["buy-box","buy-box"]],generateColumns:()=>"1fr 1fr",generateRows:()=>"1fr auto"})),{},{componentProps:{[i.Components.CustomImage]:{imageScale:"horizontal"}}}),"hl-lo":e=>(e=e.hasDealBadge,u(u({},(0,s.generateGridConfiguration)({baseConfiguration:c,generateColumns:()=>"auto",generateRows:()=>"2fr 1fr"})),{},{componentProps:{[i.Components.ProductImage]:{className:e?"py-1.5 px-0.5 max-w-[85px] max-h-[120px]":"py-1.5 px-0.5 max-w-[85px]"}}})),ci:()=>u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["custom-image","custom-image"],["buy-box","buy-box"]],generateColumns:()=>"auto",generateRows:()=>"1fr auto"})),{},{componentProps:{[i.Components.CustomImage]:{imageScale:"horizontal"}}}),lo:e=>(e=e.hasDealBadge,u(u({},(0,s.generateGridConfiguration)({baseConfiguration:c,generateColumns:()=>"auto",generateRows:()=>"1.5fr 1fr"})),{},{componentProps:{[i.Components.ProductImage]:{className:e?"py-1.5 px-0.5 max-w-[85px] max-h-[120px]":"py-1.5 px-0.5 max-w-[85px]"}}})),hl:e=>(e=e.hasDealBadge,u(u({},(0,s.generateGridConfiguration)({baseConfiguration:c,generateColumns:()=>"auto",generateRows:()=>"2fr 1fr"})),{},{componentProps:{[i.Components.ProductImage]:{className:e?"py-1.5 px-0.5 max-w-[85px] max-h-[120px]":"py-1.5 px-0.5 max-w-[85px]"},[i.Components.Headline]:{className:"px-2 text-large"}}}))}},3014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(5951),a=r(868);function o(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.default={identifierTransformer:()=>"hero",hero:()=>i(i({},(0,n.generateGridConfiguration)({baseConfiguration:[["hero-component"]],generateColumns:()=>"1fr",generateRows:()=>"1fr"})),{},{componentProps:{[a.Components.HeroComponent]:{ratio:["vertical","square","horizontal"],mode:"fill"}}})}},9786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(5951),i=r(868),s=r(9441);function l(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const c={headline:"auto","product-image":"1fr","logo-image":"25%","custom-image":"25%","hero-component":"auto","buy-box":"auto","cta-button":"auto"};t.default={global:e=>{var t=e.showEnergyEfficiency,r=e.isTextCTAExperiment;e=e.showClimatePledgeFriendly;return{componentProps:{[i.Components.BuyBox]:{totalLines:e?5:4,className:"px-3 py-1",productTitleClasses:"text-md",isCentered:!0,productTitleMaxLines:r?1:2,wholeFoodsLogoSize:"medium",widthInFraction:1,heightInFraction:.25,showCPFLogo:e,savingsTextSize:"large",socialProofingTextVariant:"md",socialProofingWrapperClass:"items-center"},[i.Components.Headline]:{classNameText:"text-lg text-center"},[i.Components.LogoImage]:{className:"max-w-[150px] max-h-[150px] py-0.5 px-1"},[i.Components.ProductImage]:{className:"p-1 max-w-[300px] max-h-[300px]"},[i.Components.CTAButton]:{className:r?"px-3 pb-[39px] mt-[-7px]":"px-3 pb-1",hideCta:t},[i.Components.GridLayout]:{className:"p-0"}}}},none:()=>u(u({},(0,o.generateGridConfiguration)({baseConfiguration:[["product-image"],["buy-box"],["cta-button"]],generateColumns:()=>"auto",generateRows:()=>"1fr auto auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"p-0"},[i.Components.ProductImage]:{className:"max-w-[240px] max-h-[240px]",wrapperClassName:"px-2",animationType:"scrollShine"}}}),"ci-hl-lo":()=>({gridTemplateAreas:[["logo-image","logo-image","headline","headline","headline"],["custom-image","custom-image","custom-image","custom-image","custom-image"],["product-image","product-image","product-image","product-image","product-image"],["buy-box","buy-box","buy-box","buy-box","buy-box"],["cta-button","cta-button","cta-button","cta-button","cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:"25% 25% 1fr auto auto",componentProps:{[i.Components.CustomImage]:{imageScale:"horizontal"},[i.Components.GridLayout]:{className:"p-0"},[i.Components.Headline]:{classNameText:"text-lg pr-1"},[i.Components.LogoImage]:{className:"max-w-[90px] max-h-[90px] p-1"},[i.Components.ProductImage]:{animationType:"scrollShine"}}}),"hero-hl-lo":()=>({gridTemplateAreas:[["logo-image","logo-image","headline","headline","headline"],["hero-component","hero-component","hero-component","hero-component","hero-component"],["product-image","product-image","product-image","product-image","product-image"],["buy-box","buy-box","buy-box","buy-box","buy-box"],["cta-button","cta-button","cta-button","cta-button","cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:"25% auto 1fr auto auto",componentProps:{[i.Components.HeroComponent]:{ratio:["horizontal"]},[i.Components.GridLayout]:{className:"p-0"},[i.Components.Headline]:{classNameText:"text-lg pr-1"},[i.Components.LogoImage]:{className:"max-w-[90px] max-h-[90px] p-1"}}}),"ci-hl":()=>u(u({},(0,o.generateGridConfiguration)({baseConfiguration:[["headline"],["custom-image"],["product-image"],["buy-box"],["cta-button"]],generateColumns:()=>"auto",generateRows:(0,o.getBasicRows)(u(u({},c),{headline:"1fr","custom-image":"1.5fr","product-image":"1.5fr"}))})),{},{componentProps:{[i.Components.GridLayout]:{className:"p-0"},[i.Components.ProductImage]:{className:"max-w-[185px] max-h-[185px] p-1",animationType:"scrollShine"},[i.Components.Headline]:{className:"px-2"}}}),"hero-hl":()=>u(u({},(0,o.generateGridConfiguration)({baseConfiguration:[["headline"],["hero-component"],["product-image"],["buy-box"],["cta-button"]],generateColumns:()=>"auto",generateRows:(0,o.getBasicRows)(u(u({},c),{headline:"1fr","hero-component":"1.5fr","product-image":"1.5fr"}))})),{},{componentProps:{[i.Components.HeroComponent]:{ratio:["horizontal"]},[i.Components.GridLayout]:{className:"p-0"},[i.Components.ProductImage]:{className:"max-w-[185px] max-h-[185px] p-1"},[i.Components.Headline]:{className:"px-2"}}}),"ci-lo":()=>u(u({},(0,o.generateGridConfiguration)({baseConfiguration:[["logo-image"],["custom-image"],["product-image"],["buy-box"],["cta-button"]],generateColumns:()=>"auto",generateRows:(0,o.getBasicRows)(u(u({},c),{"logo-image":"1.5fr","custom-image":"2fr","product-image":"2fr"}))})),{},{componentProps:{[i.Components.LogoImage]:{className:"max-w-[120px] max-h-[120px] p-1"},[i.Components.GridLayout]:{className:"px-0"},[i.Components.ProductImage]:{animationType:"scrollShine"}}}),"hero-lo":()=>u(u({},(0,o.generateGridConfiguration)({baseConfiguration:[["logo-image"],["hero-component"],["product-image"],["buy-box"],["cta-button"]],generateColumns:()=>"auto",generateRows:(0,o.getBasicRows)(u(u({},c),{"logo-image":"1.5fr","hero-component":"2fr","product-image":"2fr"}))})),{},{componentProps:{[i.Components.LogoImage]:{className:"max-w-[120px] max-h-[120px] p-1"},[i.Components.HeroComponent]:{ratio:["horizontal"]},[i.Components.GridLayout]:{className:"px-0"}}}),"hl-lo":()=>u(u({},(0,o.generateGridConfiguration)({baseConfiguration:[["logo-image"],["headline"],["product-image"],["buy-box"],["cta-button"]],generateColumns:()=>"auto",generateRows:(0,o.getBasicRows)(u(u({},c),{"logo-image":"1fr",headline:"1fr","product-image":"2fr"}))})),{},{componentProps:{[i.Components.Headline]:{classNameText:"text-lg text-center px-2"},[i.Components.ProductImage]:{wrapperClassName:"px-2",animationType:"scrollShine"},[i.Components.LogoImage]:{className:"max-w-[120px] max-h-[120px] p-1"}}}),ci:()=>u(u({},(0,o.generateGridConfiguration)({baseConfiguration:[["custom-image"],["product-image"],["buy-box"],["cta-button"]],generateColumns:()=>"auto",generateRows:(0,o.getBasicRows)(u(u({},c),{"custom-image":"1.5fr","product-image":"1fr"}))})),{},{componentProps:{[i.Components.GridLayout]:{className:"px-0"},[i.Components.CustomImage]:{imageScale:"square"},[i.Components.ProductImage]:{animationType:"scrollShine"}}}),hero:()=>u(u({},(0,o.generateGridConfiguration)({baseConfiguration:[["hero-component"],["product-image"],["buy-box"],["cta-button"]],generateColumns:()=>"auto",generateRows:(0,o.getBasicRows)(u(u({},c),{"hero-component":"auto","product-image":"1fr"}))})),{},{componentProps:{[i.Components.GridLayout]:{className:"px-0"},[i.Components.HeroComponent]:{ratio:["square","horizontal"]}}}),lo:()=>u(u({},(0,o.generateGridConfiguration)({baseConfiguration:[["logo-image"],["product-image"],["buy-box"],["cta-button"]],generateColumns:()=>"auto",generateRows:(0,o.getBasicRows)(u(u({},c),{"logo-image":"1fr","product-image":"1fr"}))})),{},{componentProps:{[i.Components.ProductImage]:{wrapperClassName:"px-2",animationType:"scrollShine"}}}),hl:()=>u(u({},(0,o.generateGridConfiguration)({baseConfiguration:[["headline"],["product-image"],["buy-box"],["cta-button"]],generateColumns:()=>"auto",generateRows:(0,o.getBasicRows)(u(u({},c),{headline:"1fr","product-image":"1fr"}))})),{},{componentProps:{[i.Components.ProductImage]:{wrapperClassName:"px-2",animationType:"scrollShine"},[i.Components.Headline]:{className:"px-2"}}}),"non-endemic":e=>{var t=e.isTermsAndConditions,r=e.height,n=e.backgroundBrightness,a=e.primaryColorRGB;e=e.customBackgroundColorRGB;return{gridTemplateAreas:t?[["logo-image"],["custom-image"],["headline"],["cta-button"],["terms-and-conditions-label"]]:[["logo-image"],["custom-image"],["headline"],["cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:"3fr auto 4fr 1.5fr",componentProps:{[i.Components.GridLayout]:{className:"gap-x-1",style:{backgroundColor:e}},[i.Components.CustomImage]:{imageScale:500<r?"square":"horizontal"},[i.Components.LogoImage]:{className:"max-w-[180px] max-h-[80px] p-[6px]",wrapperClassName:"bg-white"},[i.Components.TermsAndConditionsLabel]:{className:"text-[11px] leading-[13px] pb-1",wrapperClass:"items-start justify-center"},[i.Components.Headline]:{className:"py-1 px-2",classNameText:r<420?"text-[18px] leading-[24px] text-center":"text-[24px] leading-[32px] text-center",alignmentClass:"justify-center items-center"},[i.Components.CTAButton]:{variant:"dark"===n?"blockInverted":"block",size:"none",destination:"landing-page",overrideHoverColor:"dark"===n&&"transparent"!==a?a:void 0,isFullHeightButton:!1,alignmentClass:"justify-center self-start"}}}},"non-endemic-zoetrope":e=>{var t=e.isTermsAndConditions,r=e.customImageDetail,n=(e=e=>u(u({type:"custom"},(0,o.generateGridConfiguration)({baseConfiguration:[["custom-image"]],generateColumns:()=>"auto",generateRows:()=>"auto"})),{},{componentProps:{[i.Components.GridLayout]:{className:"place-items-center"},[i.Components.CustomImage]:{imageIndex:e,imageScale:"square"}}}),1<(null==r||null===(n=r.squareCustomImages)||void 0===n?void 0:n.length)?"inset-carousel":"custom-image");return{gridTemplateAreas:t?[["title-label"],["logo-image"],[n],["headline"],["cta-button"],["terms-and-conditions-label"]]:[["title-label"],["logo-image"],[n],["headline"],["cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:"2fr 2fr auto 2fr 1.5fr",componentProps:{[i.Components.GridLayout]:{className:"gap-x-1"},[i.Components.InsetCarousel]:{sliderClassName:(0,a.default)("px-0","w-full","h-full"),slideClassName:"p-0 m-0 w-full h-full border-0",hasRoundedSlideCorners:!1,loopSlides:!0,centeredSlides:!0,showNavigation:!0,hasSideGradient:!0,hasDropShadow:!1,hasBorder:!1,slidesPerView:1,spaceBetweenSlides:0,slides:[e(0),e(1)]},[i.Components.CustomImage]:{imageScale:"square"},[i.Components.TitleLabel]:{variant:s.TitleVariant.LocalBusinessForYou,isFontBold:!0,className:"p-1",classNameText:"text-[20px] leading-[28px] text-center",alignmentClass:"justify-center items-center"},[i.Components.LogoImage]:{className:"max-w-[180px] max-h-[80px] p-[6px]",wrapperClassName:"bg-white"},[i.Components.TermsAndConditionsLabel]:{className:"text-[11px] leading-[13px] pb-1",wrapperClass:"items-start justify-center"},[i.Components.Headline]:{className:"py-1 px-2",classNameText:"text-[16px] leading-[24px] text-center",alignmentClass:"justify-center items-center"},[i.Components.CTAButton]:{variant:"link",size:"none",destination:"landing-page",isNoWrap:!1,isFullHeightButton:!1,alignmentClass:"justify-center self-start",buttonClass:"font-bold"}}}},leadgen:e=>{var t=e.isTermsAndConditions;return{gridTemplateAreas:t?[["logo-image"],["custom-image"],["headline"],["leadgen-button"],["cta-button"],["terms-and-conditions-label"]]:[["logo-image"],["custom-image"],["headline"],["leadgen-button"],["cta-button"]],gridTemplateColumns:"100%",gridTemplateRows:(e=e.height<=500)?t?"4fr 6.96fr 5fr auto 1.67fr 1fr":"1.5fr 2.6fr 1.88fr auto 1fr":t?"3fr 10fr 3.33fr auto 1.53fr 1fr":"1.2fr 4fr 1.33fr auto 1fr",componentProps:{[i.Components.GridLayout]:{className:"p-0"},[i.Components.CustomImage]:{imageScale:e?"horizontal":"square"},[i.Components.LogoImage]:{wrapperClassName:"px-3"},[i.Components.Headline]:{classNameText:(0,a.default)("text-center",e?"text-md":"text-lg"),className:"px-3",isFontBold:!1},[i.Components.LeadGenButton]:{buttonType:"LeadGen",alignmentClass:"justify-center",size:"xlarge",className:e?"px-7":"px-5",buttonClass:"w-full pt-0.5"},[i.Components.CTAButton]:{variant:"linkSecondary",size:"large",destination:"landing-page",alignmentClass:"items-center justify-center",buttonClass:"font-bold",className:"py-0.5"},[i.Components.TermsAndConditionsLabel]:{className:"text-[11px] leading-[13px] pb-1",wrapperClass:"self-end justify-center"}}}},showroom:e=>{var t=e.isTermsAndConditions,r=e.height,n=e.isTwitchDarkAd;e=e.primaryColorRGB;return{gridTemplateAreas:t?[["logo-image"],["custom-image"],["headline"],["cta-button"],["terms-and-conditions-label"]]:[["logo-image"],["custom-image"],["headline"],["cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:"3fr auto 4fr 1.5fr",componentProps:{[i.Components.GridLayout]:{className:"gap-x-1",style:{backgroundColor:"rgba(15, 17, 17, 0.04)"}},[i.Components.CustomImage]:{imageScale:500<r?"square":"horizontal"},[i.Components.LogoImage]:{className:"max-w-[180px] max-h-[80px] p-[6px]",wrapperClassName:"bg-white"},[i.Components.Headline]:{className:"py-1 px-2",classNameText:r<420?"text-[18px] leading-[24px] text-center":"text-[24px] leading-[32px] text-center",alignmentClass:"justify-center items-center"},[i.Components.CTAButton]:{variant:"squarePillWhite",size:"large",destination:"showroom-page",overrideHoverColor:n&&"transparent"!==e?e:void 0,isFullHeightButton:!1,alignmentClass:"justify-center self-start"}}}}}},7246:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(518),a=r(868);t.default={global:e=>{var t=e.showEnergyEfficiency,r=e.isTextCTAExperiment,n=e.hasDealBadge,o=e.isSubscribeAndSave,i=e.isCoupon,s=e.showFreshLogo,l=e.showWholeFoodsLogo,u=e.currentScreen,c=e.locale,d=e.clientWidth,p=e.showClimatePledgeFriendly,m=e.isPmpOrMario;let f=p?5:o?3:n||t?4:5;var g="ta_IN"===c||"te_IN"===c||"ml_IN"===c;e=u===a.ScreenSizes.SkyscraperSM||u===a.ScreenSizes.SkyscraperMD||u===a.ScreenSizes.SkyscraperMDShort||u===a.ScreenSizes.SkyscraperMDTall;let h;return h=u===a.ScreenSizes.SkyscraperSM?"small":e&&(g||"nl_BE"===c)||d<140&&"ja_JP"===c?"xsmall":void 0,{componentProps:{[a.Components.BuyBox]:{totalLines:f,className:"p-1",hideSavingsText:m,isSavingsTextInline:!1,savingsTextSize:"medium",productTitleMaxLines:3,productTitleClasses:"text-md",isCentered:!0,badgeSize:g?"micro":"small",automatedDealBadgeTextSize:"small",energyEfficiencySize:"medium",removeItems:!s&&!l||!n&&!o||i?["social-proofing-message"]:["ratings","social-proofing-message"],automatedDealBadgeVariant:"wrap",widthInFraction:1,heightInFraction:.3,showCPFLogo:p&&!t},[a.Components.LogoImage]:{className:"max-w-[120px] max-h-[120px] p-1"},[a.Components.ProductImage]:{className:"max-w-[135px] max-h-[135px] p-1"},[a.Components.CTAButton]:{className:r?"p-1 pt-0 pb-[39px] mt-[-7px]":"p-1 pt-0",hideCta:t,size:h},[a.Components.Headline]:{className:"p-[12px] text-md",classNameText:"text-center"},[a.Components.HeadlineLogo]:{className:"text-md py-2 px-0.5",alignment:"center",size:"small"}}}},none:e=>{var t=e.showEnergyEfficiency;e=e.clientWidth;return{gridTemplateAreas:[["product-image"],["buy-box"],["cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:"1fr auto auto",componentProps:{[a.Components.ProductImage]:{animationType:"scrollShine"},[a.Components.CTAButton]:{hideCta:t||e<154}}}},"ci-hl-lo":e=>{var t=e.currentScreen,r=e.clientHeight,n=e.clientWidth,o=e.isVerticalImageSupported;e=e.showEnergyEfficiency;let i=[["headline-logo"],["custom-image"],["product-image"],["buy-box"],["cta-button"]],s="3.5fr auto auto auto auto",l="square";return r=n/r,o&&r<.28&&(t===a.ScreenSizes.SkyscraperMDShort?(i=[["headline-logo"],["custom-image"],["buy-box"],["cta-button"]],s="1fr auto auto auto",l="square"):t===a.ScreenSizes.SkyscraperMDTall||r<.23?(i=[["headline-logo"],["custom-image"],["product-image"],["buy-box"],["cta-button"]],s="1fr auto 1fr auto auto",l="vertical"):t===a.ScreenSizes.SkyscraperMD&&(i=[["headline-logo"],["custom-image"],["buy-box"],["cta-button"]],s="1fr auto auto auto",l="vertical")),{gridTemplateAreas:i,gridTemplateColumns:"auto",gridTemplateRows:s,componentProps:{[a.Components.GridLayout]:{className:"p-0"},[a.Components.HeadlineLogo]:{className:"justify-center",alignment:"center"},[a.Components.CustomImage]:{imageScale:l},[a.Components.ProductImage]:{animationType:"scrollShine"},[a.Components.CTAButton]:{hideCta:e||n<154}}}},"hero-hl-lo":e=>{var t=e.currentScreen,r=e.clientHeight;let n=[["headline-logo"],["hero-component"],["product-image"],["buy-box"],["cta-button"]],o="3.5fr auto auto auto auto";const i=["square","horizontal"];return(r=e.clientWidth/r)<.28&&(t===a.ScreenSizes.SkyscraperMDShort?(n=[["headline-logo"],["hero-component"],["buy-box"],["cta-button"]],o="1fr auto auto auto"):t===a.ScreenSizes.SkyscraperMDTall||r<.23?(n=[["headline-logo"],["hero-component"],["product-image"],["buy-box"],["cta-button"]],o="1fr auto 1fr auto auto",i.unshift("vertical")):t===a.ScreenSizes.SkyscraperMD&&(n=[["headline-logo"],["hero-component"],["buy-box"],["cta-button"]],o="1fr auto auto auto",i.unshift("vertical"))),{gridTemplateAreas:n,gridTemplateColumns:"auto",gridTemplateRows:o,componentProps:{[a.Components.GridLayout]:{className:"p-0"},[a.Components.HeadlineLogo]:{className:"justify-center",alignment:"center"},[a.Components.HeroComponent]:{ratio:i}}}},"ci-hl":e=>{var t=e.currentScreen,r=e.clientHeight,n=e.clientWidth,o=e.isVerticalImageSupported;e=e.showEnergyEfficiency;let i=[["headline"],["custom-image"],["product-image"],["buy-box"],["cta-button"]],s="25% auto 1fr auto auto",l="square";return o&&n/r<.28&&(t===a.ScreenSizes.SkyscraperMDShort?(i=[["custom-image"],["buy-box"],["cta-button"]],s="auto 1fr auto",l="square"):t===a.ScreenSizes.SkyscraperMD?(i=[["headline"],["custom-image"],["buy-box"],["cta-button"]],s="1fr auto auto auto",l="vertical"):t!==a.ScreenSizes.SkyscraperMD&&t!==a.ScreenSizes.SkyscraperMDTall||(i=[["headline"],["custom-image"],["product-image"],["buy-box"],["cta-button"]],s="1fr auto 1fr auto auto",l="vertical")),{gridTemplateAreas:i,gridTemplateColumns:"auto",gridTemplateRows:s,componentProps:{[a.Components.GridLayout]:{className:"p-0"},[a.Components.Headline]:{classNameText:"text-center",className:"p-[12px] text-md"},[a.Components.CustomImage]:{imageScale:l},[a.Components.ProductImage]:{animationType:"scrollShine"},[a.Components.CTAButton]:{hideCta:e||n<154}}}},"hero-hl":e=>{var t=e.currentScreen,r=e.clientHeight;let n=[["headline"],["hero-component"],["product-image"],["buy-box"],["cta-button"]],o="25% auto 1fr auto auto";const i=["square","horizontal"];return e.clientWidth/r<.28&&(t===a.ScreenSizes.SkyscraperMDShort?(n=[["hero-component"],["buy-box"],["cta-button"]],o="auto 1fr auto"):t===a.ScreenSizes.SkyscraperMD?(n=[["headline"],["hero-component"],["buy-box"],["cta-button"]],o="1fr auto auto auto",i.unshift("horizontal")):t!==a.ScreenSizes.SkyscraperMD&&t!==a.ScreenSizes.SkyscraperMDTall||(n=[["headline"],["hero-component"],["product-image"],["buy-box"],["cta-button"]],o="1fr auto 1fr auto auto",i.unshift("horizontal"))),{gridTemplateAreas:n,gridTemplateColumns:"auto",gridTemplateRows:o,componentProps:{[a.Components.GridLayout]:{className:"p-0"},[a.Components.Headline]:{classNameText:"text-center",className:"p-[12px] text-md"},[a.Components.HeroComponent]:{ratio:i}}}},"ci-lo":e=>{var t=e.currentScreen,r=e.clientHeight,n=e.clientWidth,o=e.isVerticalImageSupported;e=e.showEnergyEfficiency;let i=[["logo-image"],["custom-image"],["product-image"],["buy-box"],["cta-button"]],s="25% auto 1fr auto auto",l="square";return r=n/r,o&&r<.28&&(t===a.ScreenSizes.SkyscraperMDShort?(i=[["custom-image"],["buy-box"],["cta-button"]],s="1fr auto auto",l="square"):t===a.ScreenSizes.SkyscraperMDTall||r<.23?(i=[["logo-image"],["custom-image"],["product-image"],["buy-box"],["cta-button"]],s="1fr auto 1fr auto auto",l="vertical"):t===a.ScreenSizes.SkyscraperMD&&(i=[["logo-image"],["custom-image"],["buy-box"],["cta-button"]],s="1fr auto auto auto",l="vertical")),{gridTemplateAreas:i,gridTemplateColumns:"auto",gridTemplateRows:s,componentProps:{[a.Components.CustomImage]:{imageScale:l},[a.Components.ProductImage]:{animationType:"scrollShine"},[a.Components.CTAButton]:{hideCta:e||n<154}}}},"hero-lo":e=>{var t=e.currentScreen,r=e.clientHeight;let n=[["logo-image"],["hero-component"],["product-image"],["buy-box"],["cta-button"]],o="25% auto 1fr auto auto";const i=["square","horizontal"];return(r=e.clientWidth/r)<.28&&(t===a.ScreenSizes.SkyscraperMDShort?(n=[["hero-component"],["buy-box"],["cta-button"]],o="1fr auto auto"):t===a.ScreenSizes.SkyscraperMDTall||r<.23?(n=[["logo-image"],["hero-component"],["product-image"],["buy-box"],["cta-button"]],o="1fr auto 1fr auto auto",i.unshift("horizontal")):t===a.ScreenSizes.SkyscraperMD&&(n=[["logo-image"],["hero-component"],["buy-box"],["cta-button"]],o="1fr auto auto auto",i.unshift("horizontal"))),{gridTemplateAreas:n,gridTemplateColumns:"auto",gridTemplateRows:o,componentProps:{[a.Components.HeroComponent]:{ratio:i}}}},"hl-lo":e=>{var t=e.showEnergyEfficiency;e=e.clientWidth;return{gridTemplateAreas:[["logo-image"],["headline"],["product-image"],["buy-box"],["cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:"25% 25% 1fr auto auto",componentProps:{[a.Components.GridLayout]:{className:"p-0"},[a.Components.ProductImage]:{animationType:"scrollShine"},[a.Components.CTAButton]:{hideCta:t||e<154}}}},ci:e=>{var t=e.currentScreen,r=e.clientHeight,n=e.clientWidth,o=e.isVerticalImageSupported;e=e.showEnergyEfficiency;let i=[["product-image"],["custom-image"],["buy-box"],["cta-button"]],s="1fr 25% auto auto",l="square";return o&&n/r<.28&&(t===a.ScreenSizes.SkyscraperMDShort?(i=[["custom-image"],["buy-box"],["cta-button"]],s="auto 1fr auto",l="square"):t!==a.ScreenSizes.SkyscraperMD&&t!==a.ScreenSizes.SkyscraperMDTall||(i=[["custom-image"],["product-image"],["buy-box"],["cta-button"]],s="auto 1fr auto auto",l="vertical")),{gridTemplateAreas:i,gridTemplateColumns:"auto",gridTemplateRows:s,componentProps:{[a.Components.CustomImage]:{imageScale:l},[a.Components.ProductImage]:{animationType:"scrollShine"},[a.Components.CTAButton]:{hideCta:e||n<154}}}},hero:e=>{var t=e.currentScreen,r=e.clientHeight;let n=[["product-image"],["hero-component"],["buy-box"],["cta-button"]],o="1fr auto auto auto";const i=["square","horizontal"];return e.clientWidth/r<.28&&(t===a.ScreenSizes.SkyscraperMDShort?(n=[["hero-component"],["buy-box"],["cta-button"]],o="auto 1fr auto",i.unshift("vertical")):t!==a.ScreenSizes.SkyscraperMD&&t!==a.ScreenSizes.SkyscraperMDTall||(n=[["hero-component"],["product-image"],["buy-box"],["cta-button"]],o="auto 1fr auto auto",i.unshift("vertical"))),{gridTemplateAreas:n,gridTemplateColumns:"auto",gridTemplateRows:o,componentProps:{[a.Components.HeroComponent]:{ratio:i}}}},lo:e=>{var t=e.showEnergyEfficiency;e=e.clientWidth;return{gridTemplateAreas:[["logo-image"],["product-image"],["buy-box"],["cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:"50% 1fr auto auto",componentProps:{[a.Components.LogoImage]:{className:"max-w-[120px] max-h-[120px]"},[a.Components.ProductImage]:{animationType:"scrollShine"},[a.Components.CTAButton]:{hideCta:t||e<154}}}},hl:e=>{var t=e.showEnergyEfficiency;e=e.clientWidth;return{gridTemplateAreas:[["headline"],["product-image"],["buy-box"],["cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:"50% 1fr auto auto",componentProps:{[a.Components.ProductImage]:{animationType:"scrollShine"},[a.Components.CTAButton]:{hideCta:t||e<154}}}},"non-endemic":e=>{var t=e.isTermsAndConditions,r=e.currentScreen,o=e.backgroundBrightness,i=e.primaryColorRGB,s=e.customBackgroundColorRGB,l=e.clientWidth,u=e.clientHeight,c=e.isVerticalImageSupported,d=r===a.ScreenSizes.SkyscraperMD?"blockSm":"blockMd";e=r===a.ScreenSizes.SkyscraperMD?"blockSmInverted":"blockMdInverted";let p="square";return c&&l/u<.28&&(r===a.ScreenSizes.SkyscraperMDShort?p="square":r!==a.ScreenSizes.SkyscraperMDTall&&r!==a.ScreenSizes.SkyscraperMD||(p="vertical")),{gridTemplateAreas:t?[["logo-image"],["custom-image"],["headline"],["cta-button"],["terms-and-conditions-label"]]:[["logo-image"],["custom-image"],["headline"],["cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:t?"auto auto 3fr 1fr auto":"auto auto 2.5fr 1fr",componentProps:{[a.Components.GridLayout]:{className:"gap-x-1",style:{backgroundColor:s}},[a.Components.CustomImage]:{imageScale:p},[a.Components.LogoImage]:{className:"max-w-[120px] max-h-[120px] p-[6px]",wrapperClassName:(0,n.twMerge)("bg-white","vertical"===p?"h-max-[70px]":"h-[150px]")},[a.Components.TermsAndConditionsLabel]:{className:"text-[11px] leading-[13px] p-0.5 pb-1",wrapperClass:"items-start justify-center"},[a.Components.Headline]:{className:"p-0.5",classNameText:"text-[22px] leading-[28px] text-center",alignmentClass:"justify-center items-center"},[a.Components.CTAButton]:{variant:"dark"===o?e:d,size:"none",destination:"landing-page",overrideHoverColor:"dark"===o&&"transparent"!==i?i:void 0,isFullHeightButton:!1,alignmentClass:"justify-center self-start"}}}},leadgen:e=>{var t=e.isTermsAndConditions,r=e.clientWidth,n=e.clientHeight,o=e.isVerticalImageSupported;e=e.currentScreen;let i="square";return o&&r/n<.28&&(e===a.ScreenSizes.SkyscraperMDShort?i="square":e!==a.ScreenSizes.SkyscraperMDTall&&e!==a.ScreenSizes.SkyscraperMD||(i="vertical")),{gridTemplateAreas:t?[["logo-image"],["custom-image"],["headline"],["leadgen-button"],["cta-button"],["terms-and-conditions-label"]]:[["logo-image"],["custom-image"],["headline"],["leadgen-button"],["cta-button"]],gridTemplateColumns:"100%",gridTemplateRows:t?"1.6fr auto 2fr 1fr 1fr 0.4fr":"1.6fr auto 2fr 1fr 1.4fr",componentProps:{[a.Components.GridLayout]:{className:"p-0"},[a.Components.CustomImage]:{imageScale:i},[a.Components.Headline]:{classNameText:"text-center text-md",className:"px-1.5",isFontBold:!1},[a.Components.LeadGenButton]:{buttonType:"LeadGen",className:"px-2",alignmentClass:"justify-center items-center"},[a.Components.CTAButton]:{className:"p-0.5",variant:"linkSecondary",size:"none",destination:"landing-page",buttonClass:"font-bold"},[a.Components.TermsAndConditionsLabel]:{className:"text-[11px] leading-[13px] pb-1",wrapperClass:"items-start justify-center"}}}},showroom:e=>{var t=e.isTwitchDarkAd,r=e.primaryColorRGB,o=e.clientWidth,i=e.clientHeight,s=e.isVerticalImageSupported;e=e.currentScreen;let l="square";return s&&o/i<.28&&(e===a.ScreenSizes.SkyscraperMDShort?l="square":e!==a.ScreenSizes.SkyscraperMDTall&&e!==a.ScreenSizes.SkyscraperMD||(l="vertical")),{gridTemplateAreas:[["logo-image"],["custom-image"],["headline"],["cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:"auto auto 2.5fr 1fr",componentProps:{[a.Components.GridLayout]:{className:"gap-x-1",style:{backgroundColor:"rgba(15, 17, 17, 0.04)"}},[a.Components.CustomImage]:{imageScale:l},[a.Components.LogoImage]:{className:"max-w-[120px] max-h-[120px] p-[6px]",wrapperClassName:(0,n.twMerge)("bg-white","vertical"===l?"h-max-[70px]":"h-[150px]")},[a.Components.Headline]:{className:"p-0.5",classNameText:"text-[22px] leading-[28px] text-center",alignmentClass:"justify-center items-center"},[a.Components.CTAButton]:{variant:"squarePillWhite",size:"small",destination:"showroom-page",overrideHoverColor:t&&"transparent"!==r?r:void 0,isFullHeightButton:!1,alignmentClass:"justify-center self-start"}}}}}},9032:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(4184))&&n.__esModule?n:{default:n},o=r(518),i=r(868),s=r(5951);function l(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const c=[["product-image"],["buy-box"]];t.default={global:e=>(e=e.isPmpOrMario,{componentProps:{[i.Components.ProductImage]:{className:"max-w-[120px] max-h-[120px] p-1",wrapperClassName:(0,o.twMerge)("tw-clip-diagonal-skyscrapper","dark:bg-white pb-[15px] w-full h-full")},[i.Components.ProductTitle]:{lines:1},[i.Components.BuyBox]:{heightInFraction:.7,widthInFraction:1,wrapperClass:"pb-[30px] px-1",creativeExperience:i.CreativeExperience.Twitch,isCentered:!0,responsiveBuyBoxOverrides:{className:(0,a.default)("flex flex-col items-center text-center justify-items-center"),productTitleMaxLines:4,productTitleVariant:"xl",ratingsSize:"medium",priceSize:"large",ratingsTextSize:"large",badgeSize:"small",getBuyboxLayoutFromTemplateAreaConfig:!1},hideSavingsText:e,isSavingsTextInline:!1,savingsTextSize:"xlarge"},[i.Components.CustomImage]:{imageScale:"square"},[i.Components.Headline]:{className:"p-[12px] text-md",classNameText:"text-center"}}}),none:()=>u({},(0,s.generateGridConfiguration)({baseConfiguration:c,generateColumns:()=>"auto",generateRows:()=>"1fr auto"})),"ci-hl-lo":()=>u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["headline"],["custom-image"],["buy-box"]],generateColumns:()=>"auto",generateRows:()=>"1fr 2fr auto"})),{},{componentProps:{[i.Components.Headline]:{className:"px-2 text-lg"},[i.Components.BuyBox]:{productTitleVariant:"md"}}}),"ci-hl":()=>u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["headline"],["custom-image"],["buy-box"]],generateColumns:()=>"auto",generateRows:()=>"1fr 2fr auto"})),{},{componentProps:{[i.Components.Headline]:{className:"px-2 text-lg"},[i.Components.BuyBox]:{productTitleVariant:"md"}}}),"ci-lo":()=>u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["custom-image"],["buy-box"]],generateColumns:()=>"auto",generateRows:()=>"1fr auto"})),{},{componentProps:{[i.Components.CustomImage]:{imageScale:"square"}}}),"hl-lo":()=>u({},(0,s.generateGridConfiguration)({baseConfiguration:c,generateColumns:()=>"auto",generateRows:()=>"2fr 1fr"})),ci:()=>u(u({},(0,s.generateGridConfiguration)({baseConfiguration:[["custom-image"],["buy-box"]],generateColumns:()=>"auto",generateRows:()=>"1fr auto"})),{},{componentProps:{[i.Components.CustomImage]:{imageScale:"square"}}}),lo:()=>u({},(0,s.generateGridConfiguration)({baseConfiguration:c,generateColumns:()=>"auto",generateRows:()=>"2fr 1fr"})),hl:()=>u({},(0,s.generateGridConfiguration)({baseConfiguration:c,generateColumns:()=>"auto",generateRows:()=>"2fr 1fr"}))}},8718:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(868);t.default={global:()=>({componentProps:{[n.Components.BuyBox]:{widthInFraction:1,heightInFraction:.4,hideSavingsText:!0},[n.Components.ProductImage]:{className:"max-w-[135px] max-h-[135px] p-1"},[n.Components.CustomImage]:{imageScale:"square"},[n.Components.GridLayout]:{className:"p-0"}}}),none:()=>({gridTemplateAreas:[["product-image"],["buy-box"]],gridTemplateColumns:"100%",gridTemplateRows:"1fr auto"}),"ci-hl-lo":()=>({gridTemplateAreas:[["custom-image"],["buy-box"]],gridTemplateColumns:"100%",gridTemplateRows:"1fr auto"}),"ci-hl":()=>({gridTemplateAreas:[["custom-image"],["buy-box"]],gridTemplateColumns:"100%",gridTemplateRows:"1fr auto"}),"ci-lo":()=>({gridTemplateAreas:[["custom-image"],["buy-box"]],gridTemplateColumns:"100%",gridTemplateRows:"1fr auto"}),"hl-lo":()=>({gridTemplateAreas:[["product-image"],["buy-box"]],gridTemplateColumns:"100%",gridTemplateRows:"1fr auto"}),ci:()=>({gridTemplateAreas:[["custom-image"],["buy-box"]],gridTemplateColumns:"100%",gridTemplateRows:"1fr auto"}),lo:()=>({gridTemplateAreas:[["product-image"],["buy-box"]],gridTemplateColumns:"100%",gridTemplateRows:"1fr auto"}),hl:()=>({gridTemplateAreas:[["product-image"],["buy-box"]],gridTemplateColumns:"100%",gridTemplateRows:"1fr auto"}),"non-endemic":e=>{var t=e.isTermsAndConditions,r=e.backgroundBrightness,a=e.primaryColorRGB;e=e.customBackgroundColorRGB;return{gridTemplateAreas:t?[["logo-image"],["custom-image"],["headline"],["cta-button"],["terms-and-conditions-label"]]:[["logo-image"],["custom-image"],["headline"],["cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:t?"auto auto 3fr 1fr auto":"auto auto 2.5fr 1fr",componentProps:{[n.Components.GridLayout]:{className:"p-0",style:{backgroundColor:e}},[n.Components.CustomImage]:{imageScale:"horizontal"},[n.Components.LogoImage]:{className:"max-w-[100px] max-h-[50px] p-[6px]",wrapperClassName:"bg-white"},[n.Components.TermsAndConditionsLabel]:{className:"text-[8px] leading-[10px] p-[3px]",wrapperClass:"items-start justify-center"},[n.Components.Headline]:{className:"px-0.5",classNameText:"text-[12px] leading-[14px] text-center",alignmentClass:"justify-center items-center"},[n.Components.CTAButton]:{className:"mb-1",variant:"dark"===r?"blockXSmInverted":"blockXSm",size:"none",destination:"landing-page",overrideHoverColor:"dark"===r&&"transparent"!==a?a:void 0,isFullHeightButton:!1,alignmentClass:"justify-center"}}}},showroom:e=>{var t=e.isTwitchDarkAd;e=e.primaryColorRGB;return{gridTemplateAreas:[["logo-image"],["custom-image"],["headline"],["cta-button"]],gridTemplateColumns:"auto",gridTemplateRows:"auto auto 2.5fr 1fr",componentProps:{[n.Components.GridLayout]:{className:"p-0",style:{backgroundColor:"rgba(15, 17, 17, 0.04)"}},[n.Components.CustomImage]:{imageScale:"horizontal"},[n.Components.LogoImage]:{className:"max-w-[100px] max-h-[50px] p-[6px]",wrapperClassName:"bg-white"},[n.Components.Headline]:{className:"px-0.5",classNameText:"text-[12px] leading-[14px] text-center",alignmentClass:"justify-center items-center"},[n.Components.CTAButton]:{className:"mb-1",variant:"squarePillWhite",size:"xsmall",destination:"showroom-page",overrideHoverColor:t&&"transparent"!==e?e:void 0,isFullHeightButton:!1,alignmentClass:"justify-center"}}}}}},8044:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useA11y=void 0;var n=r(1245),a=r(4828);t.useA11y=()=>{var e,t,r=(d=(0,a.usePayload)()).brandName,o=d.productDetails;const i=(0,n.useI18n)(),s=i.currencySymbol,l=i.currencyPlacement,u=i.getString;var c=null==o||null===(p=o.customerReviewSummary)||void 0===p?void 0:p.rating,d=null==o||null===(e=o.customerReviewSummary)||void 0===e?void 0:e.count,p=o.price,m=(c=c?null===(e=u("star_ratings"))||void 0===e||null===(t=e.value)||void 0===t?void 0:t.replace("{number}",c):"",r?null===(m=u("brand"))||void 0===m?void 0:m.replace("{brand}",r):""),f=(r=d&&0<d?null===(f=u("reviewsCount"))||void 0===f?void 0:f.replace("{number}",d):"","BEFORE"===l?""+s+p:""+p+s);d=null!=o&&o.isPrime?u("prime"):"",p=u("Ad"),o=o.productTitle;return{wrapperAriaLabelText:Object.values({Ad:p,productTitleAriaText:o,brand:m,ratings:c,reviewsCount:r,price:f,prime:d}).filter(Boolean).join("\n"),adAriaText:p,brandAriaText:m,priceAriaText:f,primeAriaText:d,productTitleAriaText:o,reviewsCountAriaText:r,starRatingAriaText:c}}},6609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useBorderStyle=void 0;var n,a=r(7363),o=r(1311),i=(n=r(4184))&&n.__esModule?n:{default:n},s=r(6475),l=r(7260),u=r(4828);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e,t)||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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const p=e=>{let t=e.borderWidth,r=e.colorPalette,n=void 0===r?[]:r,a=e.onLoad,s=void 0!==a&&a,l=e.onHover,u=void 0===l||l,c=e.animationIterationCount,d=void 0===c?1:c;var p=n.join(","),m=n.slice().reverse().join(",");const f=[],g=[];return e=o.css` border-width: ${t}; border-image: linear-gradient(120deg, ${p}) 1 1; `,f.push(o.css` animation: shineEffect 3s linear alternate forwards ${d}; @keyframes shineEffect { 0% { border-image: linear-gradient(120deg, ${p}) 1 1; } 50% { border-image: linear-gradient(120deg, ${m}) 1 1; } 100% { border-image: linear-gradient(120deg, ${p}) 1 1; } } `),g.push(o.css` transition: border-image 0.5s ease-in-out 0.1s; &:hover, &:focus, &:active { border-image: linear-gradient(120deg, ${m}) 1 1; } `),(0,i.default)(e,s&&f,u&&g)};t.useBorderStyle=()=>{const e=(0,u.usePayload)().activeExperiments,t=(0,s.isExperimentGroupActive)(e,s.Experiments.ThickBorder),r=(0,l.useColorThief)({isEnabled:!0}),n=r.colors,o=r.isLoading,d=e[s.Experiments.ThickBorder.ThinBorderStaticGradient]||e[s.Experiments.ThickBorder.ThinBorderAnimateOnceOnLoad]||e[s.Experiments.ThickBorder.ThinBorderAnimateOnlyOnHover]?"2px":"4px";var m=(0,i.default)("border-gray-400","border");const f=c((0,a.useState)(m),2),g=f[0],h=f[1];return(0,a.useEffect)((()=>{!o&&n&&0<(null==n?void 0:n.length)&&t&&(e[s.Experiments.ThickBorder.StaticGradient]||e[s.Experiments.ThickBorder.ThinBorderStaticGradient]?h(p({borderWidth:d,colorPalette:n,onLoad:!1,onHover:!1,animationIterationCount:0})):e[s.Experiments.ThickBorder.AnimateOnceOnLoad]||e[s.Experiments.ThickBorder.ThinBorderAnimateOnceOnLoad]?h(p({borderWidth:d,colorPalette:n,onLoad:!0,onHover:!1,animationIterationCount:1})):(e[s.Experiments.ThickBorder.AnimateOnlyOnHover]||e[s.Experiments.ThickBorder.ThinBorderAnimateOnlyOnHover])&&h(p({borderWidth:d,colorPalette:n,onLoad:!1,onHover:!0,animationIterationCount:1})))}),[o,t]),g}},2616:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLogCreativeTypeImpressions=t.useCEM=t.generateVariationEventName=t.EventTypes=t.EventNames=t.DESTINATION_TYPE_TO_EVENT_NAME=t.ComponentTypes=t.CEM_LOGGER_METRICS=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=o(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var i;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((i=a?Object.getOwnPropertyDescriptor(e,r):null)&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(7363)),a=r(4828);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}let i,s,l;t.EventTypes=i,(r=i||(t.EventTypes=i={})).CLICK_THROUGH="click-through",r.VIEWABILITY="viewability",r.IMPRESSION="impression",r.EXPANDABLE="expandable",r.FORM_SUBMISSION="formSubmission",r.MODAL="modal",t.EventNames=s,(r=s||(t.EventNames=s={})).MODAL_TRIGGER_SHOWN="modalTriggerShown",r.TWITCH_MODAL_SLIDE_CHANGE="twitchModalSlideChange",r.TWITCH_MODAL_SLIDER_INIT="twitchModalSliderInit",r.ZOETROPE_MODAL_SWIPE="zoetropeModalSwipe",r.ZOETROPE_MODAL_SLIDER_INIT="zoetropeModalSliderInit",r.ZOETROPE_MODAL_SLIDER_COMPLETE="zoetropeModalSliderComplete",r.PRODUCT_COLLECTION_IMPRESSION="productCollectionImpression",r.PRODUCT_COLLECTION_VIDEO_IMPRESSION="productCollectionVideoImpression",r.PRODUCT_COLLECTION_SWIPE="productCollectionSwipe",r.PRODUCT_COLLECTION_SLIDER_INIT="productCollectionSliderInit",r.PRODUCT_COLLECTION_SLIDER_COMPLETE="productCollectionSliderComplete",r.TWITCH_MODAL_CONTENT_SHOWN_DEFAULT="modalContentShownDefault",r.TWITCH_MODAL_CONTENT_SHOWN_FALLBACK="modalContentShownFallback",r.TWITCH_MODAL_CONTENT_SHOWN_SNS="modalContentShownSns",r.AAN_LATENCY="aanLatency",r.AAN_ERROR="aanError",r.UNCAUGHT_ERROR="uncaughtError",r.CREATIVE_LOAD_LATENCY="creativeLoadLatency",r.COMPONENT_LOAD_LATENCY__POSTFIX="ComponentLoadLatency",r.IN_VIEW="inView",r.VIEWABILITY_FAILURE="viewabilityFailure",r.CREATIVE_CLICK="creativeClick",r.NAVIGATION_ATTEMPT="navigationAttempt",r.NAVIGATION_ERROR="navigationError",r.NAVIGATION_INFO="navigationInfo",r.OUT_OF_STOCK_IMPRESSION="outOfStockImpression",r.OUT_OF_STOCK_VIEWABLE="outOfStockViewable",r.OUT_OF_STOCK_CLICK="outOfStockClick",r.VIDEO_MEDIA_ERR_ABORTED="videoMediaErrAborted",r.VIDEO_MEDIA_ERR_NETWORK="videoMediaErrNetwork",r.VIDEO_MEDIA_ERR_DECODE="videoMediaErrDecode",r.VIDEO_MEDIA_ERR_SRC_NOT_SUPPORTED="videoMediaErrSrcNotSupported",r.EXPNADABLE_VIDEO_AD_INIT="ExpandableVideoAdInit",r.EXPANDABLE_VIDEO_AD_EXPANDED="ExpandableVideoAdExpanded",r.EXPANDABLE_VIDEO_AD_COLLAPSED="ExpandableVideoAdCollapsed",r.EXPANDABLE_VIDEO_AD_COLLAPSED_VIA_CLOSE_BUTTON="ExpandableVideoAdCollapsedViaClosedButton",r.EXPANDABLE_VIDEO_AD_COLLAPSED_VIA_OUTSIDE_INTERCATION="ExpandableVideoAdCollapsedViaOutsideInteraction",r.EXPANDABLE_VIDEO_AD_COLLAPSED_VIA_MOUSE_LEAVE="ExpandableVideoAdCollapsedViaMouseLeave",r.EXPANDABLE_MRAID_EXPAND_SUCCESS="ExpandableMraidExpandSuccess",r.EXPANDABLE_MRAID_CLOSE_SUCCESS="ExpandableMraidCloseSuccess",r.EXPANDABLE_MRAID_EXPAND_FAILURE="ExpandableMraidExpandFailure",r.EXPANDABLE_MRAID_CLOSE_FAILURE="ExpandableMraidCloseFailure",r.EXPANDABLE_SAFE_FRAME_EXPAND_SUCCESS="ExpandableSafeFrameExpandSuccess",r.EXPANDABLE_SAFE_FRAME_CLOSE_SUCCESS="ExpandableSafeFrameCloseSuccess",r.EXPANDABLE_SAFE_FRAME_EXPAND_FAILURE="ExpandableSafeFrameExpandFailure",r.EXPANDABLE_SAFE_FRAME_CLOSE_FAILURE="ExpandableSafeFrameCloseFailure",r.EXPANDABLE_SAFE_FRAME_CLOSE_VIA_GESTURE="ExpandableSafeFrameCloseViaGesture",r.FORM_TYPING_ENGAGEMENT="FormTypingEngagement",r.FORM_SUBMISSION_INITIATED="FormSubmissionInitiated",r.FORM_SUBMISSION_INITIAL_ATTEMPT="FormSubmissionInitialAttempt",r.FORM_SUBMISSION_LT_HALF_OF_FIELDS="FormSubmissionLtHalfOfFields",r.FORM_SUBMISSION_GTE_HALF_OF_FIELDS="FormSubmissionGteHalfOfFields",r.FORM_SUBMISSION_NONE_OF_FIELDS="FormSubmissionNoneOfFields",r.FORM_SUBMISSION_SUCCESS="FormSubmissionSuccess",r.FORM_SUBMISSION_API_FAILURE="FormSubmissionApiFailure",r.FORM_SUBMISSION_FAILURE="FormSubmissionFailure",r.MODAL_UNDEFINED_OPEN_MODAL_METHOD="ModalUndefinedOpenModalMethod",r.MODAL_UNDEFINED_CLOSE_MODAL_METHOD="ModalUndefinedCloseModalMethod",r.TWITCH_DARK_AD_IMPRESSION="TwitchDarkAdImpression",t.DESTINATION_TYPE_TO_EVENT_NAME={"item-page":"itemPage","store-page":"brandPage","landing-page":"landingPage","add-to-cart":"addToCart","showroom-page":"showroomPage","checkout-page":"checkoutPage","reward-page":"rewardPage"},t.generateVariationEventName=e=>{let t=e.variationId;return e=>(e=e.destinationType,{"item-page":"itemPageTwitch"+t,"store-page":"brandPageTwitch"+t,"add-to-cart":"addToCartTwitch"+t,"landing-page":"landingPageTwitch"+t,"showroom-page":"showroomPageTwitch"+t,"checkout-page":"checkoutPageTwitch"+t,"reward-page":"rewardPageTwitch"+t}[e])},t.ComponentTypes=l,(r=l||(t.ComponentTypes=l={})).CREATIVE="creative",r.HOOKS="hooks",r.FORMS="forms";const u={EVENT_TYPES:{CLICK_THROUGH:i.CLICK_THROUGH,VIEWABILITY:i.VIEWABILITY,IMPRESSION:i.IMPRESSION},EVENT_NAMES:{MODAL_TRIGGER_SHOWN:s.MODAL_TRIGGER_SHOWN,TWITCH_MODAL_SLIDE_CHANGE:s.TWITCH_MODAL_SLIDE_CHANGE,TWITCH_MODAL_SLIDER_INIT:s.TWITCH_MODAL_SLIDER_INIT,ZOETROPE_MODAL_SWIPE:s.ZOETROPE_MODAL_SWIPE,ZOETROPE_MODAL_SLIDER_INIT:s.ZOETROPE_MODAL_SLIDER_INIT,ZOETROPE_MODAL_SLIDER_COMPLETE:s.ZOETROPE_MODAL_SLIDER_COMPLETE,TWITCH_MODAL_CONTENT_SHOWN_DEFAULT:s.TWITCH_MODAL_CONTENT_SHOWN_DEFAULT,TWITCH_MODAL_CONTENT_SHOWN_FALLBACK:s.TWITCH_MODAL_CONTENT_SHOWN_FALLBACK,TWITCH_MODAL_CONTENT_SHOWN_SNS:s.TWITCH_MODAL_CONTENT_SHOWN_SNS,AAN_LATENCY:s.AAN_LATENCY,AAN_ERROR:s.AAN_ERROR,UNCAUGHT_ERROR:s.UNCAUGHT_ERROR,CREATIVE_LOAD_LATENCY:s.CREATIVE_LOAD_LATENCY,COMPONENT_LOAD_LATENCY__POSTFIX:s.COMPONENT_LOAD_LATENCY__POSTFIX,IN_VIEW:s.IN_VIEW,VIEWABILITY_FAILURE:s.VIEWABILITY_FAILURE,CREATIVE_CLICK:s.CREATIVE_CLICK,NAVIGATION_ATTEMPT:s.NAVIGATION_ATTEMPT,NAVIGATION_ERROR:s.NAVIGATION_ERROR,NAVIGATION_INFO:s.NAVIGATION_INFO,EXPNADABLE_VIDEO_AD_INIT:s.EXPNADABLE_VIDEO_AD_INIT,EXPANDABLE_VIDEO_AD_EXPANDED:s.EXPANDABLE_VIDEO_AD_EXPANDED,EXPANDABLE_VIDEO_AD_COLLAPSED:s.EXPANDABLE_VIDEO_AD_COLLAPSED,EXPANDABLE_VIDEO_AD_COLLAPSED_VIA_CLOSE_BUTTON:s.EXPANDABLE_VIDEO_AD_COLLAPSED_VIA_CLOSE_BUTTON,EXPANDABLE_VIDEO_AD_COLLAPSED_VIA_OUTSIDE_INTERCATION:s.EXPANDABLE_VIDEO_AD_COLLAPSED_VIA_OUTSIDE_INTERCATION},COMPONENT_TYPES:{CREATIVE:l.CREATIVE}};t.CEM_LOGGER_METRICS=u;const c=e=>{var t=e.eventName,r=e.eventValue;e=e.batch;window.CemLogger&&window.CemLogger.logPerformanceEvent&&window.CemLogger.logPerformanceEvent(t,void 0===r?1:r,void 0!==e&&e)},d=(e,t,r)=>{"mount"===t&&c({eventName:e+u.EVENT_NAMES.COMPONENT_LOAD_LATENCY__POSTFIX,eventValue:Number(null==r?void 0:r.toFixed(2))})};t.useLogCreativeTypeImpressions=()=>{const e=(0,a.usePayload)(),t=e.isProductCollectionCreative,r=e.video,o=e.isTwitchDarkAd,i=(r||{}).isVideoAd;(0,n.useEffect)((()=>{c({eventName:i?"videoCreative":"displayCreative"}),t&&c(i?{eventName:s.PRODUCT_COLLECTION_VIDEO_IMPRESSION}:{eventName:s.PRODUCT_COLLECTION_IMPRESSION}),o&&c({eventName:s.TWITCH_DARK_AD_IMPRESSION})}),[])},t.useCEM=()=>({logEvent:e=>{var t,r=e.eventType,n=e.eventName,a=e.componentType;e=e.componentName;window.CemLogger&&window.CemLogger.logEvent&&null!==(t=window.CemLogger)&&void 0!==t&&t.logEvent({eventType:r||u.EVENT_TYPES.CLICK_THROUGH,eventName:n||u.EVENT_NAMES.CREATIVE_CLICK,componentType:a||u.COMPONENT_TYPES.CREATIVE,componentName:e||"unspecified"})},logPerformanceEvent:c,MeasureLoadLatency:e=>{var t=e.id;e=e.children;return n.default.createElement(n.Profiler,{id:t,onRender:d},e)}})},7260:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useColorThief=void 0;var n,a=r(7363),o=(n=r(9089))&&n.__esModule?n:{default:n},i=r(5773),s=r(868),l=r(581),u=r(4828);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e,t)||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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.useColorThief=e=>{let t=e.url,r=void 0===t?"":t,n=e.quality,d=void 0===n?10:n,p=e.count,m=void 0===p?2:p,f=e.isEnabled,g=e.mode,h=void 0===g?"palette":g;const y=(0,u.usePayload)(),v=y.width,b=y.height,C=y.identifier,x=y.productDetails.productImage,E=c((0,a.useState)(),2),S=E[0],_=E[1],T=c((0,a.useState)([]),2),w=T[0],P=T[1],O=c((0,a.useState)(f),2),A=O[0],I=O[1],N=(0,a.useRef)(r);var M=(0,i.useCustomImage)({sizeType:"horizontal"}).src;if(!r&&f&&C)switch(C){case s.Identifier.ciHlLo:case s.Identifier.nonEndemic:case s.Identifier.nonEndemicSparkle:case s.Identifier.showroom:case s.Identifier.ciLo:case s.Identifier.ciHl:case s.Identifier.ci:N.current=M;break;default:N.current=null==x?void 0:x.url}const D=(0,a.useMemo)((()=>N.current?(0,l.generateUrl)({src:N.current,width:v,height:b,autoCrop:!0,pixelRatio:1,quality:10,extension:"webp"}):""),[v,b,N.current]);return(0,a.useEffect)((()=>{const e=new Image;e.crossOrigin="Anonymous",e.src=D;const t=()=>{let t=[];if(f){const r=new o.default;t="primaryColor"===h?[r.getColor(e,d)]:r.getPalette(e,m,d)}var r=t.map((e=>`rgb(${e[0]}, ${e[1]}, ${e[2]})`));_(r),P(t),I(!1)};return e.addEventListener("load",t),()=>{e.removeEventListener("load",t)}}),[m,D,d,f,A]),{rawColors:w,colors:S,isLoading:A}}},201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useExpandableAds=t.getExpandableAdType=t.expandableAdRequiresCloseButton=t.ExpandableAdType=void 0;var n=r(7363),a=r(8583),o=r(8019),i=r(2616),s=r(1353),l=r(4828);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}let d;t.ExpandableAdType=d,(r=d||(t.ExpandableAdType=d={}))[r.Mraid=0]="Mraid",r[r.SafeFrame=1]="SafeFrame",t.expandableAdRequiresCloseButton=e=>e===d.SafeFrame;const p=e=>e?d.Mraid:d.SafeFrame;t.getExpandableAdType=p;const m=["outerpagescroll","outerpageclick","outerpageswipe","outerpagetap"];t.useExpandableAds=()=>{var e;const t=u((0,n.useState)(!1),2),r=t[0],c=t[1],f=u((0,n.useState)(null),2),g=f[0],h=f[1],y=(0,o.useMraid)(),v=y.mraidClient,b=y.MraidApi,C=y.hasMraidClient,x=(0,s.useSF)(),E=x.SFClient,S=x.SFApi,_=x.hasSFClient,T=(0,i.useCEM)().logEvent,w=(0,l.usePayload)(),P=w.is3P,O=w.width,A=w.callToActionsProperties;var I=null!==(I=null==A||null===(e=A.properties)||void 0===e||null===(I=e.questions)||void 0===I?void 0:I.length)&&void 0!==I?I:0;const N=p(P),M=(0,a.ceil)(-.3433*O+77*I+566.1);(0,n.useEffect)((()=>{if(L())return B(F),()=>{F(),R()}}),[E,v]);const D=e=>{T({eventType:i.EventTypes.EXPANDABLE,eventName:e,componentName:i.ComponentTypes.HOOKS,componentType:"useExpandableAds"})},L=()=>{switch(N){case d.Mraid:return C;case d.SafeFrame:return _;default:return!1}},B=e=>{switch(N){case d.Mraid:return b.addEventListener("stateChange",(t=>{"default"===t&&(D(i.EventNames.EXPANDABLE_MRAID_CLOSE_SUCCESS),e())}));case d.SafeFrame:}},R=()=>{switch(N){case d.Mraid:return b.removeEventListener("stateChange");case d.SafeFrame:}},j=()=>{D(i.EventNames.EXPANDABLE_SAFE_FRAME_CLOSE_VIA_GESTURE),k()},k=()=>{switch(N){case d.Mraid:if(!L()||"default"===b.getState())break;try{b.close(),D(i.EventNames.EXPANDABLE_MRAID_CLOSE_SUCCESS)}catch(e){D(i.EventNames.EXPANDABLE_MRAID_CLOSE_FAILURE)}break;case d.SafeFrame:try{null!=S&&S.resetSlotSize(),m.forEach((e=>{window.removeEventListener(e,j)})),D(i.EventNames.EXPANDABLE_SAFE_FRAME_CLOSE_SUCCESS)}catch(e){D(i.EventNames.EXPANDABLE_SAFE_FRAME_CLOSE_FAILURE)}}F()},F=()=>{c(!1),h(null)};return{openModal:e=>{if(L())switch(N){case d.Mraid:try{b.expand(),D(i.EventNames.EXPANDABLE_MRAID_EXPAND_SUCCESS)}catch(e){D(i.EventNames.EXPANDABLE_MRAID_EXPAND_FAILURE)}break;case d.SafeFrame:try{null!=S&&S.expandAdSlot({width:O+"px",height:M+"px"}),m.forEach((e=>{window.addEventListener(e,j,{once:!0})})),D(i.EventNames.EXPANDABLE_SAFE_FRAME_EXPAND_SUCCESS)}catch(e){D(i.EventNames.EXPANDABLE_SAFE_FRAME_EXPAND_FAILURE)}}c(!0),h(e)},closeModal:k,activeModalId:g,isModalView:r,isModalTrigger:!1,onReady:()=>{},hasMraidClient:C,hasSFClient:_}}},7298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,2):void 0}}(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.")}()}((0,n.useState)(!0)),t=e[0],r=e[1];return(0,n.useEffect)((()=>{r(!1)}),[]),t};var n=r(7363);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7270:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useMobileDataInterface=void 0;var n=r(7363),a=r(2616);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.useMobileDataInterface=e=>{var t=e.isEnabled;const r=o((0,n.useState)(!1),2),i=r[0],s=r[1],l=o((0,n.useState)(!1),2),u=l[0],c=l[1],d=o((0,n.useState)(!1),2),p=d[0],m=d[1],f=(0,a.useCEM)().logEvent;let g,h,y,v,b="non-mobile";const C="undefined"!=typeof TwitchMobileExpandableAdInterface?TwitchMobileExpandableAdInterface:{};let x;e=void 0!==C.isModal&&void 0!==C.isTwitchModalExperimentEnabled&&void 0!==C.openModal&&void 0!==C.onReady&&void 0!==C.setFallbackUrl;const E=t&&e;return E&&(b="android",h=function(){C.openModal(),m(!0),p&&f({eventName:a.CEM_LOGGER_METRICS.EVENT_NAMES.MODAL_TRIGGER_SHOWN,eventType:a.CEM_LOGGER_METRICS.EVENT_TYPES.VIEWABILITY})},v=function(){C.onReady(),c(!0),u&&f({eventName:a.CEM_LOGGER_METRICS.EVENT_NAMES.MODAL_TRIGGER_SHOWN,eventType:a.CEM_LOGGER_METRICS.EVENT_TYPES.VIEWABILITY})},x=function(e){C.setFallbackUrl(e)}),e&&(y=function(e){C.isTwitchModalExperimentEnabled(e)},g=function(){return C.isModal()}),(0,n.useEffect)((()=>{E&&g&&s(g())}),[s]),{clientType:b,twitchModalIsReady:E,hasValidTwitchModalCapabilities:e,onReady:v,setTwitchExperimentTrigger:y,isModalFromAndroidInterface:g,isModal:!(!E||!i),isModalTrigger:!(!E||i),openModal:h,setFallbackUrl:x}}},3004:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useMobileInit=void 0;var n=r(7363),a=r(9599),o=r(7270),i=r(4828);t.useMobileInit=()=>{const e=(0,i.usePayload)().isTwitchModal,t=(0,o.useMobileDataInterface)({isEnabled:e}),r=t.setTwitchExperimentTrigger,s=t.setFallbackUrl,l=t.hasValidTwitchModalCapabilities,u=t.twitchModalIsReady,c=t.isModalFromAndroidInterface,d=(0,a.useAdLink)().itemUrl;(0,n.useEffect)((()=>{l&&(s&&e&&s(d),c&&!c()&&null!=r&&r(u))}),[])}},8019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useMraid=void 0;var n=r(7363);t.useMraid=()=>{const e="undefined"!=typeof window&&void 0!==window.mraid?window.mraid:null;var t=(0,n.useCallback)((()=>{var t,r;e&&e.getMaxSize&&e.setExpandProperties&&(t=(r=e.getMaxSize()).width,r=r.height,0<t&&0<r&&e.setExpandProperties({width:t,height:r})),e&&e.expand&&e.expand()}),[e]),r=(0,n.useCallback)((()=>{e&&e.close&&e.close()}),[e]),a=(0,n.useCallback)(((t,r)=>{var n;null==e||null!==(n=e.open)&&void 0!==n&&n.call(e,t,r)}),[e]),o=(0,n.useCallback)(((t,r)=>{e&&e.addEventListener&&e.addEventListener(t,r)}),[]),i=(0,n.useCallback)((t=>{e&&e.removeEventListener&&e.removeEventListener(t)}),[]),s=(0,n.useCallback)((()=>{if(e&&e.getState)return e.getState()}),[]);return{mraidClient:e,MraidApi:{expand:t,close:r,open:a,addEventListener:o,removeEventListener:i,getState:s},hasMraidClient:Boolean(e)}}},1353:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSF=void 0;var n=r(7363);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const i=new Set(["4g","ethernet","wifi","wimax","none","13","15","100","unknown"]),s=new Set(["2g","3g","cellular","bluetooth"]),l={connectionType:"none",mobileConnectionType:"none"};t.useSF=()=>{const e=a((0,n.useState)(null),2),t=e[0],r=e[1];(0,n.useEffect)((()=>{var e;return"undefined"!=typeof window&&(e=void 0!==window.SFClient&&window.SFClient||void 0!==window.MSFClient&&window.MSFClient||null,r(e)),()=>{r(null)}}),[]);const o=(0,n.useCallback)((e=>null==t?void 0:t.updatePlayingTimeForVideo(e)),[t]),u=(0,n.useCallback)((()=>{let e=l;try{null!=t&&t.getUserConnectionInfo&&(e=t.getUserConnectionInfo())}catch(e){}return e}),[t]),c=(0,n.useCallback)((()=>{var e=(t=u()||l).connectionType||"unknown",t=t.mobileConnectionType||"unknown";return!i.has(e)||s.has(e)||!i.has(t)}),[t]),d=(0,n.useCallback)((()=>null==t?void 0:t.requestVideoAutoplay()),[t]),p=(0,n.useCallback)((()=>null==t?void 0:t.releaseVideoAutoplay()),[t]),m=(0,n.useCallback)((()=>null==t?void 0:t.haveVideoAutoplayPermission()),[t]),f=(0,n.useCallback)(((e,r)=>null==t?void 0:t.registerCustomMessageListener(e,r)),[t]),g=(0,n.useCallback)(((e,r)=>{try{null!=t&&t.changeSize(e,r)}catch(e){}}),[t]),h=(0,n.useCallback)((()=>{let e;return t?e=null==t?void 0:t.feedbackLabelRendered():window.SFClient?e=window.SFClient.feedbackLabelRendered():window.MSFClient&&(e=window.MSFClient.feedbackLabelRendered()),e}),[t]),y=(0,n.useCallback)((()=>{let e;return t?e=null==t?void 0:t.signalAdLoadedAndInteractive():window.SFClient?e=window.SFClient.signalAdLoadedAndInteractive():window.MSFClient&&(e=window.MSFClient.signalAdLoadedAndInteractive()),e}),[t]),v=(0,n.useCallback)((()=>{let e;return t?e=null==t?void 0:t.feedbackOpenModal():window.SFClient?e=window.SFClient.feedbackOpenModal():window.MSFClient&&(e=window.MSFClient.feedbackOpenModal()),e}),[t]),b=(0,n.useCallback)((e=>null==t?void 0:t.expandAdSlot(e)),[t]),C=(0,n.useCallback)((e=>null==t?void 0:t.expandAdSlotWithOverlap(e)),[t]),x=(0,n.useCallback)((()=>null==t?void 0:t.resetSlotSize()),[t]);var E=(0,n.useMemo)((()=>({updatePlayingTimeForVideo:o,getUserConnectionInfo:u,isSlowConnectionMobile:c,requestVideoAutoplay:d,releaseVideoAutoplay:p,haveVideoAutoplayPermission:m,signalAdLoadedAndInteractive:y,registerCustomMessageListener:f,changeSize:g,feedbackLabelRendered:h,feedbackOpenModal:v,expandAdSlot:b,expandAdSlotWithOverlap:C,resetSlotSize:x})),[t]);return{SFClient:t,SFApi:E,hasSFClient:null!==t}}},8335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useShoppableModal=void 0;var n=r(7363),a=r(6655),o=r(8019),i=r(2616),s=r(9770);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.useShoppableModal=()=>{const e=(0,a.useModal)()||{},t=e.openModal,r=e.isModalView,u=e.activeModalId,c=(0,o.useMraid)().MraidApi,d=(0,i.useCEM)().logEvent,p=l((0,n.useState)(!1),2),m=p[0],f=p[1],g=l((0,n.useState)(!1),2),h=g[0],y=g[1];return(0,n.useEffect)((()=>{r&&!h&&(d({eventName:i.CEM_LOGGER_METRICS.EVENT_NAMES.MODAL_TRIGGER_SHOWN,eventType:i.CEM_LOGGER_METRICS.EVENT_TYPES.VIEWABILITY}),y(!0))}),[r,h]),{isShoppableModalView:r&&u===a.ModalComponents.shoppableModal,handleShoppableModalOpen:()=>{t(a.ModalComponents.shoppableModal),m||(d({eventName:i.CEM_LOGGER_METRICS.EVENT_NAMES.MODAL_TRIGGER_SHOWN,eventType:i.CEM_LOGGER_METRICS.EVENT_TYPES.VIEWABILITY}),f(!0))},handleCustomTabOpen:(e,t)=>{c.open(e,{inAppNativeBrowser:{enabled:!0}}),(0,s.cemLoggerClickEventCallback)(t)}}}},2325:(e,t)=>{"use strict";function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=/^(.+?)(?:\._(.+)_)?\.([A-Za-z]+)$/;function a(e,t){return e.filters.push(t),e}t.default=class{constructor(e){r(this,"base",void 0),r(this,"filters",[]),r(this,"ext",void 0);const t=n.exec(e)||[];this.base=t[1],this.filters="string"==typeof t[2]?t[2].split("_"):[],this.ext=t[3]}scaleToHeight(e){return a(this,"SY"+Math.round(e))}scaleToWidth(e){return a(this,"SX"+Math.round(e))}upscaleToHeight(e){return a(this,"UY"+Math.round(e))}upscaleToWidth(e){return a(this,"UX"+Math.round(e))}scaleToSquare(e){return a(this,"SS"+Math.round(e))}scaleToRectangle(e,t){return a(this,`SR${Math.round(e)},`+Math.round(t))}qualityLevel(e){return e?a(this,"QL"+e):this}crop(e,t,r,n){return r&&n?a(this,"CR"+[t||0,e||0,r,n].map(Math.round).join(",")):this}tilt(e){return a(this,"PT"+e)}brightness(e){return a(this,"BR"+e)}blur(e){return a(this,"BL"+e)}contrast(e){return a(this,"CT"+e)}preserveAlpha(){return a(this,"AL")}autocrop(e){return e?a(this,"AC"):this}dominantBackground(e){return e?a(this,"DB"):this}overrideExtension(e){return a(this,"FM"+e)}border(e){return e?a(this,"BO"+[e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,3<arguments.length&&void 0!==arguments[3]?arguments[3]:0].map(Math.round).join(",")):this}build(){const e=[this.base];return this.filters.length&&e.push(`_${this.filters.join("_")}_`),e.push(this.ext),e.join(".")}}},9770:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cemLoggerNavigateEventCallback=t.cemLoggerClickEventCallback=void 0;var n=r(1674);function a(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t){return{eventName:e,eventValue:t}}t.cemLoggerClickEventCallback=function(){var e=(a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).eventType,t=a.eventName,r=a.componentType,a=a.componentName;window&&window.CemLogger&&window.CemLogger.logEvent({eventType:e||n.CEM_LOGGER_METRICS.EVENT_TYPES.CLICK_THROUGH,eventName:t||n.CEM_LOGGER_METRICS.EVENT_NAMES.CREATIVE_CLICK,componentType:r||n.CEM_LOGGER_METRICS.COMPONENT_TYPES.CREATIVE,componentName:a||"unspecified"}),window&&window.CemLogger&&window.areAllAsinsOutOfStock&&window.CemLogger.logEvent({eventName:n.CEM_LOGGER_METRICS.EVENT_NAMES.OUT_OF_STOCK_CLICK,eventType:n.CEM_LOGGER_METRICS.EVENT_TYPES.CLICK_THROUGH,componentType:n.CEM_LOGGER_METRICS.COMPONENT_TYPES.CREATIVE,componentName:n.CEM_LOGGER_METRICS.COMPONENT_TYPES.CREATIVE})},t.cemLoggerNavigateEventCallback=e=>{let t=e.navigationStatus,r=e.eventType,a=e.eventName,s=e.componentType,l=e.componentName,u=e.eventValue;var c=t.navigationAttempt,d=t.navigationError;const p=[];var m=t.hasMraidOpen,f=t.isAndroid,g=t.isIos,h=t.isMshop,y=t.isOffsite,v=t.mashHasLaunchIntentUrl,b=t.mashHasOpenInExternalBrowser,C=t.mashIsAUIAvailable,x=t.mshopVersion,E=t.sdkHasOpenInExternalBrowser;e=t.sdkVersion;let S={url:t.url};!y&&h?S=o(o({},S),{},{mashHasLaunchIntentUrl:v,mashHasOpenInExternalBrowser:b,mashIsAUIAvailable:C,mshopVersion:x}):y&&(S=o(o({},S),{},{hasMraidOpen:m,isAndroid:f,isIos:g,sdkHasOpenInExternalBrowser:E,sdkVersion:e})),p.push(i(n.CEM_LOGGER_METRICS.EVENT_NAMES.NAVIGATION_INFO,S)),c&&p.push(i(n.CEM_LOGGER_METRICS.EVENT_NAMES.NAVIGATION_ATTEMPT,c)),d&&p.push(i(n.CEM_LOGGER_METRICS.EVENT_NAMES.NAVIGATION_ERROR,d)),p.forEach((e=>{window&&window.CemLogger&&window.CemLogger.logEvent({eventType:r||n.CEM_LOGGER_METRICS.EVENT_TYPES.CLICK_THROUGH,eventName:a||e.eventName,componentType:s||n.CEM_LOGGER_METRICS.COMPONENT_TYPES.CREATIVE,componentName:l||"unspecified",eventValue:u||e.eventValue})}))}},9030:e=>{"use strict";e.exports={background:"background",brandLogo:"brandLogo",customImage:"CUSTOM_IMAGE",headlineLogo:"HL"}},8880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromPdaProperties=function(e){var t,r,a;return e&&(t=e.isPDACreative,r=e.brandLogo,a=e.marketingCopy,t&&(e.enableHeadlineAndLogoUploader=!0,e.contentTypeSelected=n.brandLogo,e.newContentType=!0,"string"==typeof r&&(e.brandLogo={url:"https://m.media-amazon.com/"+r}),e.headline=e.headline||a)),e},t.fromSdProperties=function(e,t){if(e){var r,a,o=e.brandLogo,i=e.isPDACreative;const s=o||{},l=s.url,u=s.croppingCoordinates;t&&!i&&l&&(e.enableHeadlineAndLogoUploader=!0,e.contentTypeSelected=n.brandLogo,e.newContentType=!0,u&&"string"==typeof l&&(r=u.top,a=u.left,o=u.width,t=u.height,-1!==(i=l.lastIndexOf("."))&&(e.brandLogo={url:l.substring(0,i)+`._CR${a},${r},${o},${t}_`+l.substring(i)})))}return e};var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=a(t))&&t.has(e))return t.get(e);var r,n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var i;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((i=o?Object.getOwnPropertyDescriptor(e,r):null)&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(r(9030));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}},4587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRenderingSize=a,t.isMobileOnlySize=function(e,t){return t=(t=a(e,t)).size,n.default.mobileOnly.includes(t)};var n=(r=r(9082))&&r.__esModule?r:{default:r};function a(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.model,n=void 0===(s=e.cornerstoneData)?{}:s,a=r.height,o=r.size,i=r.width,s=(void 0===(e=r.properties)?{}:e).isUniversal;r=n.slotHeight,e=n.slotWidth,n=t.isPreview,t=t.simulations;let l=a,u=i,c=o;return s&&(n&&t&&t.previewHeight&&t.previewWidth?(l=t.previewHeight,u=t.previewWidth):r&&e&&(l=r,u=e),c=u+"x"+l),{height:l,width:u,size:c}}},9082:e=>{"use strict";e.exports={desktop:["300x250","160x600","300x600","728x90","970x250","980x55","320x50","970x66"],mobileAAP:["300x250","320x50","728x90"],mobileOO:["320x50","300x250","414x125"],universal:["0x0","300x250"],hqp:["650x130"],pinpoint:["245x250"],logoUploaderOnly:["320x50","414x125"],productImageOnly:["650x130","245x250","350x420"],pdaDetailPageOnly:["270x150"],rec:["980x55","414x125","970x250","245x250","650x130","300x600","320x50","160x600","300x250","728x90","350x420"],mobileOnly:["414x125"]}},3616:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.S9_DA=t.PREVIEW=t.CORNERSTONE=void 0;var n=r(4587);function a(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.PREVIEW="preview";const i="cornerstone";t.CORNERSTONE=i,t.S9_DA="S9_DA",t.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.model;switch(r.adServer){case"preview":case i:var a=void 0===(l=e.cornerstoneData)?{}:l,s=a.isSDP,l=(void 0===(l=r.properties)?{}:l).isUniversal;let u=!1;return u=s||l?a.isMobile:r.isMobileCornerstoneTemplate,t.isPreview&&(0,n.isMobileOnlySize)(e,t)&&(u=!0),o(o({},a),{},{isMobile:u});case"S9_DA":return e.s9BidderData||{};default:return{}}}},1662:(e,t)=>{"use strict";function r(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){var r,a;r=e,t=n[a=t],a in r?Object.defineProperty(r,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=e=>{var t=e.model;e=e.s9BidderData;const r=t.aaxRenderingContext,a=void 0===r?{}:r;return e&&a.impressionToken&&(a.impressionToken=a.impressionToken.split("?").join("&")),n(n({},t),{},{aaxRenderingContext:a})}},4335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(8880),a=r(8529);function o(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){var n,a;n=e,t=r[a=t],a in n?Object.defineProperty(n,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[a]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.default=e=>{const t=e.model,r=e.cornerstoneData,o=void 0===r?{}:r;var s=t.properties,l=o.isSDP,u=void 0===(d=s.thirdPartyClickUrls)?[]:d,c=void 0===(p=s.thirdPartyImpressionUrls)?[]:p,d=(e=s.productInformation,s.additionalHtml),p=!!l||s.allow3pSellers;return t.properties=(0,n.fromPdaProperties)(s),t.properties=(0,n.fromSdProperties)(s,l),u=(0,a.appendCtrlQueryParamToUrl)(u),c=(0,a.appendCtrlQueryParamToUrl)(c),d=(0,a.appendCtrlQueryParamToUrlInHtml)(d),i(i({},s),{},{allow3pSellers:p,clickUrls:u,impressionUrls:c,products:e&&e.products,additionalHtml:d})}},6516:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectPageType=n,t.isB2BPageType=function(e,t){const a=n(e,t);return!("string"!=typeof a||!(a.startsWith(r.abgateway)||a.startsWith(r.abdetail)||a.startsWith(r.absearch)||a.startsWith(r.abevents)))},t.isDetailPage=function(e,t){const a=n(e,t);return!("string"!=typeof a||!a.startsWith(r.detail))},t.isHomePage=function(e,t){return(t=n(e,t))===r.gateway},t.isSearchPage=function(e,t){const a=n(e,t);return!("string"!=typeof a||!a.startsWith(r.search))},t.isThankYouPage=function(e,t){const a=n(e,t);return!("string"!=typeof a||!a.includes(r.thankyou))},t.pageTypes=void 0;const r={gateway:"gateway",detailaw:"detailaw",detail:"detail",landingaw:"landingaw",events:"events",abgateway:"abgateway",abdetail:"abdetail",absearch:"absearch",abevents:"abevents",search:"search",yourorders:"yourorders",cartexperience:"cartexperience",productownerpage:"productownerpage",thankyou:"thankyou"};function n(e,t){let r=t&&t.renderContext&&t.renderContext.pageType||e&&e.placementInfo&&(e.placementInfo.pageType||"string"==typeof e.placementInfo.slot&&e.placementInfo.slot.split("_")[0]);return r=r&&r.toLowerCase(),r}t.pageTypes=r},8245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(r=r(2588))&&r.__esModule?r:{default:r};t.default=(e,t,r,a)=>{let o,i=new n.default(e,t);const s=()=>{var l;i&&-1!==i.getVerticalPositionOnPage()?((l=i.getVerticalPositionOnPage())!==o&&(r(i.getVerticalPositionOnPage(),i.getPercentInView()),o=l),setTimeout((()=>{t.requestAnimationFrame(s)}),500)):(i=new n.default(e,t),a())};t.requestAnimationFrame(s)}},9358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBestOffer=function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];const i=(e||{}).offers||[],s=t?i.filter((e=>e.deal&&function(e){return e.dealStatus.status.includes("CAN_ADD_TO_CART")&&!e.dealStatus.status.some((e=>r.includes(e)))}(e.deal))):i.filter((e=>{var t;return!e.deal&&(null===(e=e.prices)||void 0===e||null===(t=e.mainPrice)||void 0===t?void 0:t.savings)}));let l=s.length&&s.reduce(((e,t)=>o(t)&&o(e)&&t.prices.mainPrice.price.currency.amount<e.prices.mainPrice.price.currency.amount?t:e),s[0])||null;return l=o(l)&&l,l&&t&&(l.isSuppressedByCutoff=function(e){return e.dealStatus.percentClaimed>=n}(l.deal)||function(e){const t=e.dealStatus.status;let r=e.dealStatus.endDate;return r=r&&new Date(r),e=6e4*a,r&&Number.isFinite(r)?r-new Date<e:t.some((e=>"EXPIRING_SOON"===e))}(l.deal)),l},t.mockDeal=function(e,t,r){return Object.assign(e,{merchant:{encryptedMerchantId:r},prices:{mainPrice:{savings:{currency:{amount:"999999.99"},percentageAmount:99,percentageDisplayString:"X%"},price:{currency:{amount:"X.XX"},suppressedByMAP:!1},basisPrice:{currency:{amount:"Y.YY"},suppressedByMAP:!1}}},deal:{dealType:t,dealStatus:{status:["CAN_ADD_TO_CART"],percentClaimed:0}},isMockDealOffer:!0}),e};const r=["CLAIMED","DEAL_OVER","SOLD_OUT","WAITLISTED","WAITLIST_FULL","WAITLIST_ONLY","UPCOMING"],n=95,a=5;function o(e){return e&&e.prices&&e.prices.mainPrice&&e.prices.mainPrice.price&&e.prices.mainPrice.price.currency}},5154:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){return!e&&t?r:null}},3775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).buyingPrice,t=r.merchantId,r=r.buyBoxPrice;return e&&t||r&&r.merchantId}},4256:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDigitalProduct=void 0,t.isDigitalProduct=e=>["gl_ebooks","gl_downloadable_software","gl_digital_short_lit","gl_digital_documents","gl_digital_video_download","gl_digital_music_service","gl_digital_book_service","gl_digital_music_purchase","gl_digital_periodicals","gl_digital_ebook_purchase","gl_data_activity_plans","gl_digital_software","gl_digital_video_games","gl_digital_accessories","gl_digital_content_subscription","gl_digital_services","gl_digital_media_access_license","gl_downloadable_digital_media","gl_virtual_currency","gl_virtual_goods","gl_cloud_software_applications","gl_a_drive","gl_digital_accessories_2","gl_publisher_services","gl_amazon_points","gl_digital_music_locker","gl_digital_products_1","gl_digital_products_2","gl_payment_devices","gl_digital_products_3","gl_digital_devices_4","gl_digital_accessories_4","gl_digital_products_5","gl_digital_products_5_accessory"].includes(e)},1013:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterOutInvalidPromotions=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return(0,n.default)(e,"valid")},t.filterOutUnsupportedPromotions=function(e){return(0,n.default)(e,(e=>e&&("vendorFunded"===e.promotionSubcategory||"PRIMEDAY"===e.primeDayDisplayStyle)))};var n=(r=r(6579))&&r.__esModule?r:{default:r}},8529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.appendCtrlQueryParamToUrl=function(e){return e=e.map((e=>{return e&&(t=e,n.test(t))&&!e.includes(r)?e.includes("?")?e.concat("&ctrl=",r):e.concat("?ctrl=",r):e;var t})),e},t.appendCtrlQueryParamToUrlInHtml=function(e){return e?e.replace(a,o):e};const r="1073885880",n=RegExp("(fw\\.adsafeprotected\\.com/[a-z]+/)?[^\\.]+?\\.serving-sys\\.com[0-9/]+(BurstingPipe|Serving)\\/adServer.bs"),a=/serving-sys.com\/Serving\/adServer.bs\?(?!ctrl=1073885880)+/g,o=`serving-sys.com/Serving/adServer.bs?ctrl=${r}&`},515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(8575);const a=new RegExp(/^(www\.)?amazon\./,"i"),o=new Set(["smile.amazon"]);t.default=(e,t)=>{try{if(o.has(t)){const r=new n.URL(e);if(a.test(r.hostname))return r.hostname=r.hostname.replace(a,t+"."),r.toString()}}catch(e){}return e}},1674:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CEM_LOGGER_METRICS=void 0,t.CEM_LOGGER_METRICS={EVENT_TYPES:{VIEWABILITY:"viewability",IMPRESSION:"impression",CLICK_THROUGH:"click_through"},EVENT_NAMES:{MOCHA_LATENCY:"mochaLatency",MOCHA_ERROR:"mochaError",AAN_LATENCY:"aanLatency",AAN_ERROR:"aanError",UNCAUGHT_ERROR:"uncaughtError",CREATIVE_LOAD_LATENCY:"creativeLoadLatency",IN_VIEW:"inView",VIEWABILITY_FAILURE:"viewabilityFailure",CREATIVE_CLICK:"creativeClick",NAVIGATION_ATTEMPT:"navigationAttempt",NAVIGATION_ERROR:"navigationError",NAVIGATION_INFO:"navigationInfo",OUT_OF_STOCK_IMPRESSION:"outOfStockImpression",OUT_OF_STOCK_VIEWABLE:"outOfStockViewable",OUT_OF_STOCK_CLICK:"outOfStockClick"},COMPONENT_TYPES:{CREATIVE:"creative"}}},8801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZOETROPE_SUPPORTED_SIZES=t.ZOETROPE_MOBILEHQP_MULTI_PRODUCT_IMAGES_EXPERIMENT_SUPPORTED_SIZES=t.VIDEO_SUPPORTED_SIZES=t.TWITCH_WEB_DISPLAY_SOURCE=t.TWITCH_MOBILE_DISPLAY_SOURCE=t.TWITCH_DARK_MODE_SUPPORTED_SIZES=t.SUPPORTED_ZOETROPE_PREVIEW_SIZES=t.SUPPORTED_IAB_SIZES=t.SIZE_TO_SCREEN_MAP=t.SIZE_TO_IMAGE_SHAPE=t.SHOWROOM_VIDEO_SUPPORTED_SIZES=t.PRODUCT_COLLECTION_VIDEO_CREATIVE_TYPE=t.PRODUCT_COLLECTION_SUPPORTED_SIZES=t.PRODUCT_COLLECTION_CREATIVE_TYPE=t.NON_ENDEMIC_ZOETROPE_SUPPORTED_SIZES=t.NON_ENDEMIC_SPARKLE_SUPPORTED_SIZES=t.MULTI_VIDEO_SUPPORTED_TYPES=t.MOBILEAPP_DTB=t.LEAD_GEN_FORM_VIEWS=t.LEAD_GEN_AD_SUPPORTED_SIZES=t.LEAD_FORM_PREVIEW_SIZE=t.ILM_EXPANDABLE_VIDEO_SIZES=t.CDN_CSS_DEFAULT_SIZES=void 0;var n=r(5550);r=r(868);t.TWITCH_MOBILE_DISPLAY_SOURCE=654,t.TWITCH_WEB_DISPLAY_SOURCE=652,t.MOBILEAPP_DTB=4010,r={"160x600":r.ScreenSizes.SkyscraperMD,"245x250":r.ScreenSizes.RectangleSM,"270x150":r.ScreenSizes.BannerPinpoint,"300x250":r.ScreenSizes.RectangleMD,"300x600":r.ScreenSizes.SkyscraperLG,"320x50":r.ScreenSizes.BannerXS,"350x420":r.ScreenSizes.RectangleLG,"414x125":r.ScreenSizes.BannerSM,"650x130":r.ScreenSizes.BannerLG,"728x90":r.ScreenSizes.BannerMD,"970x250":r.ScreenSizes.BannerXL,"970x66":r.ScreenSizes.BannerDesktop,"980x55":r.ScreenSizes.BannerDesktop,"320x130":r.ScreenSizes.BannerSM,"320x125":r.ScreenSizes.BannerSM,"414x283":r.ScreenSizes.RectangleMD},t.SIZE_TO_SCREEN_MAP=r,r=new Set(["300x250","970x66","270x150","320x50","414x125","980x55","300x600","650x130","245x250","350x420","728x90","970x250","160x600"]),t.SUPPORTED_IAB_SIZES=r,r=new Set(["300x250","414x125","970x250","650x130","320x50","980x55","160x600","300x600","320x480"]),t.VIDEO_SUPPORTED_SIZES=r,r=new Set(["300x250","414x125","970x250"]),t.SHOWROOM_VIDEO_SUPPORTED_SIZES=r,r=new Set(["350x420","134x180"]),t.CDN_CSS_DEFAULT_SIZES=r,r=new Set(["300x250","728x90","320x50","320x480","160x600","414x125","650x130","245x250","970x250","270x200","270x150","980x55","300x600","320x100","336x280"]),t.LEAD_GEN_AD_SUPPORTED_SIZES=r,r=new Set(["300x250","414x125"]),t.ZOETROPE_SUPPORTED_SIZES=r,r=new Set(["414x125"]),t.ZOETROPE_MOBILEHQP_MULTI_PRODUCT_IMAGES_EXPERIMENT_SUPPORTED_SIZES=r,r=new Set(["300x250"]),t.SUPPORTED_ZOETROPE_PREVIEW_SIZES=r,r=new Set(["728x90","970x66","300x250","160x600"]),t.TWITCH_DARK_MODE_SUPPORTED_SIZES=r,t.LEAD_GEN_FORM_VIEWS={mainForm:"LEAD_FORM_MAIN",thankYouView:"LEAD_FORM_POST_SUBMISSION"},t.LEAD_FORM_PREVIEW_SIZE={width:360,height:600},t.MULTI_VIDEO_SUPPORTED_TYPES={horizontalVideos:"horizontalVideos",verticalVideos:"verticalVideos",squareVideos:"squareVideos"},r=new Set(["320x50","980x55"]),t.ILM_EXPANDABLE_VIDEO_SIZES=r,r=new Set(["1388x370","375x350"]),t.NON_ENDEMIC_SPARKLE_SUPPORTED_SIZES=r,r=new Set(["320x50","300x250","414x125","650x130","980x55"]),t.PRODUCT_COLLECTION_SUPPORTED_SIZES=r,r=new Set(["320x50","300x250","300x600"]),t.NON_ENDEMIC_ZOETROPE_SUPPORTED_SIZES=r,t.PRODUCT_COLLECTION_CREATIVE_TYPE="HSA",t.PRODUCT_COLLECTION_VIDEO_CREATIVE_TYPE="BRAND_VIDEO",n=new Map([["320x50",n.ImageShape.Horizontal],["300x250",n.ImageShape.Horizontal],["300x600",n.ImageShape.Square]]),t.SIZE_TO_IMAGE_SHAPE=n},951:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PROMOTION_TYPE=t.PRIME_ONLY_ACCESS_TYPES=t.PRIME_DAY_DEAL_TYPES=void 0,t.getProductDetails=function(e,t,r,x,S,O,A,I){var N,M=(Z=(0,h.default)(e)).aaxRenderingContext,D=Z.clickTrackingPlaceholder,L=Z.creativeAssociateTag,B=Z.market,R=e.locale,j=(G=(0,g.default)(e,t)).adId,k=G.creativeId,F=G.is3P,z=G.isMobile,Z=(N=(0,y.default)(e)).allow3pSellers,G=N.clickThroughUrlOverride;let W;(N=I&&I.bidCache)?W=N.publisherExtraSpecifiedInfo:e.publisherExtraSpecifiedInfo&&(W=e.publisherExtraSpecifiedInfo);const U=W&&W.clickTrackingPlaceholder,V=!(null===(e=W)||void 0===e||null===(Ce=e.userInfo)||void 0===Ce||!Ce.business)||(0,C.isB2BPageType)(t,I),H=(null==I?void 0:I.sourcingContext)||{},Y=H.programName,q=H.isSourceF3,X=void 0!==q&&q,Q=Y===T&&!X&&!V,J=Y===w&&!X&&!V,K=O&&O.format===E,$=new a.default(n.default[B],M.impressionToken),ee=r[x],te=ee.customerReviewSummary,re=ee.productGroupTypeInformation,ne=ee.purchasePipeline,ae=ee.productInStock,oe=ee.buyingPrice,ie=ee.buyingShippingInformation,se=ee.buyingSubscribeAndSaveInformation,le=ee.buyBoxPrice,ue=ee.listPrice,ce=ee.displayListPrice,de=ee.buyBoxPricePerUnit,pe=ee.buyBoxShippingInformation,me=ee.buyBoxSubscribeAndSaveInformation,fe=ee.dealBadge,ge=ee.quantityDiscounts,he=ee.climatePledgeFriendly;let ye=null,ve=null,be=null;var Ce=(0,c.default)(r[x]);t=!(!fe||0===Object.keys(fe).length),M=he;be=Z?(ye=le||{},ve=pe||{},me||{}):(ye=oe||{},ve=ie||{},se||{});let xe,Ee,Se,_e,Te=!1,we=!1,Pe=null,Oe=null,Ae=!1,Ie=!1,Ne=!1,Me=!1,De="";const Le=S?S.find((e=>e.asin===x)):[];let Be=null,Re=null;Le&&(Le.offers&&0<Le.offers.length&&Le.offers.forEach((e=>{var t;e&&(t=(0,s.default)(e,"prices.mainPrice"),t=(0,s.default)(t,"price.currency.amount"),e.promotions&&e.promotions.forEach((e=>{e&&"PRIMEDAY"===e.primeDayDisplayStyle&&(Ae=!0)})),!Ae&&t&&e.customerBenefitSavings&&("PRIMEDAY"===e.customerBenefitSavings.tag?Ae=!0:"BLACKFRIDAY"===e.customerBenefitSavings.tag?Ie=!0:"CYBERMONDAY"===e.customerBenefitSavings.tag&&(Ne=!0)),Me=Ae||Ie||Ne)})),_e=(0,p.getBestOffer)(Le),Te=t&&!!(_e&&ye.price&&(_e.isMockDealOffer||!_e.isSuppressedByCutoff&&_e.prices.mainPrice.price.currency.amount<=ye.price.amount)),Ie=Ie||Te,Ne=Ne||Te,Te||(Pe=(0,p.getBestOffer)(Le,!1),we=Pe&&ye.price&&Pe.prices.mainPrice.price.currency.amount<=ye.price.amount),(Te||we)&&(Oe=Te?_e:Pe,Fe=(0,s.default)(Oe,"prices.mainPrice"),je=(0,s.default)(Oe,"prices.otherPrices"),ke=(0,s.default)(Oe,"merchant.encryptedMerchantId"),Fe.price.currency.amount===ye.price.amount&&ke===Ce&&(Se=Fe.price.addToCartUrl),ye={price:{amount:Fe.price.currency.amount},violatesMAP:function(e,t,r,n,a,o){return n=(0,i.default)([e,t,r,n],"violatesMAP"),o=(0,s.default)(a,"price.suppressedByMAP",!1)||(0,s.default)(a,"basisPrice.suppressedByMAP",!1)||(0,i.default)(o,"price.suppressedByMAP")||(0,i.default)(o,"basisPrice.suppressedByMAP"),n||o}(le,oe,ue,ce,Fe,je)},ve={isEligibleForPrimeShipping:Oe.primeEligible},Fe.basisPrice&&Fe.savings&&Fe.savings.percentageDisplayString&&Fe.basisPrice.currency.amount!==Fe.price.currency.amount&&(Be=Fe.basisPrice.currency.amount,xe=(0,u.formatPriceWithCurrency)(Fe.basisPrice.currency.amount,B,R),Ee=(0,u.getPriceObject)(Fe.basisPrice.currency.amount,B,R).number,De=Fe.basisPrice.label)));var je=(ke=ye).price,ke=!!(Fe=ke.violatesMAP),Fe=je||{};je=["gl_digital_text","gl_digital_text_2"].includes(null==re?void 0:re.productGroupType)&&ne!==_,z=z&&(!re||je||(0,m.isDigitalProduct)(null==re?void 0:re.productGroupType)||["gl_prime","gl_amazon_points"].includes(null==re?void 0:re.productGroupType));let ze,Ze=(je=ke||z)?0:Fe.amount;if(je&&(Be=null,xe=null,Ee=null,De=""),je=!(!ve.IsEligibleForPrimeShipping&&!ve.isEligibleForPrimeShipping||X),b.snsSupportMarketplaces.has(B)&&(!O||K)&&!Te){ze=!1;let e=function(e,t){return(0,l.default)(t)&&t.length?(t=(0,f.filterOutUnsupportedPromotions)((0,f.filterOutInvalidPromotions)(t))||[],(0,o.default)(t,((t,r)=>!t||P(r,e)>P(t,e)?r:t),null)):null}(Ze,r[x].applicablePromotions),t=P(e,Ze);var Ge=be;Ge&&Ge.isEligibleForSubscribeAndSave&&!Me&&((r=P(O={type:"Percent off",value:0===Ze?0:Ge.snsSignUpPrice&&Ge.snsSignUpPrice.amount&&Math.round((Ze-Ge.snsSignUpPrice.amount)/Ze*100)},Ze))>t&&(ze=!0,e=O,t=r,Ze&&Ge.snsSignUpPrice.amount&&(xe=(0,u.formatPriceWithCurrency)(Ze,B,R),Ee=(0,u.getPriceObject)(Ze,B,R).number,Be=Ze,Ze=Ge.snsSignUpPrice.amount))),e&&t&&(Re=e)}Te&&(ze=!1,Re=null);let We="",Ue="";Ze&&(Ue=(Ge=(0,u.getPriceObject)(Ze,B,R)).symbol,We=Ge.number);let Ve="";if("DE"===B&&de&&Ze){const e=de.unitCountModifier,t=de.displayUnitValue,r=de.displayUnitValueDescription;1!==e&&0<e&&(Ve=`${R=(0,u.formatPriceNumber)(Ze/e,2,B,R)} ${Ue} / `,!t||"1"!==(R=t.endsWith(".0")?t.replace(".0",""):t)&&(Ve+=R),r&&(Ve+=r),Ve=`(${Ve})`)}L=F?L:null;let He=U||"&pd_rd_plhdr=t"!==D&&D;He=He&&He.replace(/^[?&]/,""),Ce=(0,d.default)(Z,oe,Ce),I=I&&I.originUrlDomain;let Ye=$.buildDetailPageLink(x,{merchantId:Ce,creativeId:k,adId:j,associateTag:L,percolateClickTrackingParams:He});return Ye=(0,v.default)(Ye,I),Ye=G||Ye,{adLink:Ye,customerReviewSummary:te,price:Ze,fullPrice:Be,currencySymbol:Ue,formattedPrice:We,formattedFullPriceNoCurrency:Ee,productSubscribeAndSaveInformation:be,pricePerUnitMessage:Ve,isDeal:Te,automatedBadgingData:Te?fe:void 0,hasBlackFridayDeal:Ie,hasCyberMondayDeal:Ne,isPrime:je,isSnsDiscount:ze,discountData:Re,formattedFullPrice:xe,offer:Oe,buyBoxPricePerUnit:de,dealAtcUrl:Se,violatesMap:ke,productInStock:ae,hasPrimeDayDeal:Ae,productGroupTypeInformation:re||{},isDigitalProductOnMobile:z,isFreshEligible:Q,isWholeFoodsEligible:J,isCustomerB2B:V,quantityDiscounts:ge,isPmpOrMario:Me,isClimatePledgeFriendly:M,strikeThroughPriceLabel:De}};var n=x(r(4591)),a=x(r(9941)),o=x(r(4296)),i=x(r(8089)),s=x(r(6423)),l=x(r(7771)),u=r(9497),c=x(r(3775)),d=x(r(5154)),p=r(9358),m=r(4256),f=r(1013),g=x(r(3616)),h=x(r(1662)),y=x(r(4335)),v=x(r(515)),b=r(1245),C=r(6516);function x(e){return e&&e.__esModule?e:{default:e}}const E="responsive",S={PERCENT_OFF:"Percent off",AMOUNT_OFF:"Amount off"};t.PROMOTION_TYPE=S,r=new Set(["PRIME_ONLY_LD","PRIME_ONLY_BD","PRIME_ONLY_DOTD"]),t.PRIME_ONLY_ACCESS_TYPES=r,r=new Set(["DEAL_OF_THE_DAY","LIGHTNING_DEAL","BEST_DEAL"]),t.PRIME_DAY_DEAL_TYPES=r;const _="addToCart",T="ALM_QW1hem9uIEZyZXNo",w="ALM_VUZHIFdob2xlIEZvb2Rz";function P(e,t){return e&&e.type===S.PERCENT_OFF?.01*e.value*t:e&&e.type===S.AMOUNT_OFF?e.value:0}},1991:(e,t)=>{var r;!function(){"use strict";var n=function(){function e(){}function t(e,a){for(var o,i,s,l=a.length,u=0;u<l;++u)o=e,s=void 0,(i=a[u])&&("string"==(s=typeof i)?function(e,t){for(var r=t.split(n),a=r.length,o=0;o<a;++o)e[r[o]]=!0}(o,i):Array.isArray(i)?t(o,i):"object"==s?function(e,t){if(t.toString===Object.prototype.toString)for(var n in t)r.call(t,n)&&(e[n]=!!t[n]);else e[t.toString()]=!0}(o,i):"number"==s&&(o[i]=!0))}e.prototype=Object.create(null);var r={}.hasOwnProperty,n=/\s+/;return function(){for(var r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];var o=new e;t(o,n);var i,s=[];for(i in o)o[i]&&s.push(i);return s.join(" ")}}();e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o,i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r))!r.length||(o=a.apply(null,r))&&e.push(o);else if("object"==i)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?e.exports=a.default=a:void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},9089:e=>{function t(e){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),document.body.appendChild(this.canvas),this.width=this.canvas.width=e.width,this.height=this.canvas.height=e.height,this.context.drawImage(e,0,0,this.width,this.height)}function r(){}t.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},t.prototype.update=function(e){this.context.putImageData(e,0,0)},t.prototype.getPixelCount=function(){return this.width*this.height},t.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)},t.prototype.removeCanvas=function(){this.canvas.parentNode.removeChild(this.canvas)},r.prototype.getColor=function(e,t){return this.getPalette(e,5,t)[0]},r.prototype.getPalette=function(e,r,n){void 0===r&&(r=10),(void 0===n||n<1)&&(n=10);for(var a,o,s,l,u=(e=new t(e)).getImageData().data,c=e.getPixelCount(),d=[],p=0;p<c;p+=n)o=u[0+(a=4*p)],s=u[1+a],l=u[2+a],125<=u[3+a]&&(250<o&&250<s&&250<l||d.push([o,s,l]));return r=(r=i.quantize(d,r))?r.palette():null,e.removeCanvas(),r};var n,a,o=o||{map:function(e,t){var r={};return t?e.map((function(e,n){return r.index=n,t.call(r,e)})):e.slice()},naturalOrder:function(e,t){return e<t?-1:t<e?1:0},sum:function(e,t){var r={};return e.reduce(t?function(e,n,a){return r.index=a,e+t.call(r,n)}:function(e,t){return e+t},0)},max:function(e,t){return Math.max.apply(null,t?o.map(e,t):e)}},i=(a=8-(n=5),u.prototype={volume:function(e){return this._volume&&!e||(this._volume=(this.r2-this.r1+1)*(this.g2-this.g1+1)*(this.b2-this.b1+1)),this._volume},count:function(e){var t=this,r=t.histo;if(!t._count_set||e){for(var n,a,o=0,i=t.r1;i<=t.r2;i++)for(n=t.g1;n<=t.g2;n++)for(a=t.b1;a<=t.b2;a++)index=s(i,n,a),o+=r[index]||0;t._count=o,t._count_set=!0}return t._count},copy:function(){return new u(this.r1,this.r2,this.g1,this.g2,this.b1,this.b2,this.histo)},avg:function(e){var t=this,r=t.histo;if(!t._avg||e){for(var a,o,i,l=0,u=1<<8-n,c=0,d=0,p=0,m=t.r1;m<=t.r2;m++)for(o=t.g1;o<=t.g2;o++)for(i=t.b1;i<=t.b2;i++)l+=a=r[s(m,o,i)]||0,c+=a*(m+.5)*u,d+=a*(o+.5)*u,p+=a*(i+.5)*u;t._avg=l?[~~(c/l),~~(d/l),~~(p/l)]:[~~(u*(t.r1+t.r2+1)/2),~~(u*(t.g1+t.g2+1)/2),~~(u*(t.b1+t.b2+1)/2)]}return t._avg},contains:function(e){var t=e[0]>>a;return gval=e[1]>>a,bval=e[2]>>a,t>=this.r1&&t<=this.r2&&gval>=this.g1&&gval<=this.g2&&bval>=this.b1&&bval<=this.b2}},c.prototype={push:function(e){this.vboxes.push({vbox:e,color:e.avg()})},palette:function(){return this.vboxes.map((function(e){return e.color}))},size:function(){return this.vboxes.size()},map:function(e){for(var t=this.vboxes,r=0;r<t.size();r++)if(t.peek(r).vbox.contains(e))return t.peek(r).color;return this.nearest(e)},nearest:function(e){for(var t,r,n,a=this.vboxes,o=0;o<a.size();o++)((r=Math.sqrt(Math.pow(e[0]-a.peek(o).color[0],2)+Math.pow(e[1]-a.peek(o).color[1],2)+Math.pow(e[2]-a.peek(o).color[2],2)))<t||void 0===t)&&(t=r,n=a.peek(o).color);return n},forcebw:function(){var e=this.vboxes;e.sort((function(e,t){return o.naturalOrder(o.sum(e.color),o.sum(t.color))})),(t=e[0].color)[0]<5&&t[1]<5&&t[2]<5&&(e[0].color=[0,0,0]);var t,r=e.length-1;251<(t=e[r].color)[0]&&251<t[1]&&251<t[2]&&(e[r].color=[255,255,255])}},{quantize:function(e,t){function r(e,t){for(var r,n=1,a=0;a<1e3;)if((r=e.pop()).count()){var o=(i=d(g,r))[0],i=i[1];if(!o)return;if(e.push(o),i&&(e.push(i),n++),t<=n)return;if(1e3<a++)return}else e.push(r),a++}if(!e.length||t<2||256<t)return!1;var i,p,m,f,g=(T=e,f=new Array(1<<3*n),T.forEach((function(e){i=e[0]>>a,p=e[1]>>a,m=e[2]>>a,m=s(i,p,m),f[m]=(f[m]||0)+1})),f);g.forEach((function(){}));var h,y,v,b,C,x,E,S,_,T=(T=g,S=x=b=1e6,_=E=C=0,e.forEach((function(e){h=e[0]>>a,y=e[1]>>a,v=e[2]>>a,h<b?b=h:C<h&&(C=h),y<x?x=y:E<y&&(E=y),v<S?S=v:_<v&&(_=v)})),new u(b,C,x,E,S,_,T)),w=new l((function(e,t){return o.naturalOrder(e.count(),t.count())}));w.push(T),r(w,.75*t);for(var P=new l((function(e,t){return o.naturalOrder(e.count()*e.volume(),t.count()*t.volume())}));w.size();)P.push(w.pop());r(P,t-P.size());for(var O=new c;P.size();)O.push(P.pop());return O}});function s(e,t,r){return(e<<2*n)+(t<<n)+r}function l(e){function t(){r.sort(e),n=!0}var r=[],n=!1;return{push:function(e){r.push(e),n=!1},peek:function(e){return n||t(),void 0===e&&(e=r.length-1),r[e]},pop:function(){return n||t(),r.pop()},size:function(){return r.length},map:function(e){return r.map(e)},debug:function(){return n||t(),r}}}function u(e,t,r,n,a,o,i){this.r1=e,this.r2=t,this.g1=r,this.g2=n,this.b1=a,this.b2=o,this.histo=i}function c(){this.vboxes=new l((function(e,t){return o.naturalOrder(e.vbox.count()*e.vbox.volume(),t.vbox.count()*t.vbox.volume())}))}function d(e,t){if(t.count()){var r=t.r2-t.r1+1,n=t.g2-t.g1+1,a=t.b2-t.b1+1;a=o.max([r,n,a]);if(1==t.count())return[t.copy()];var i,l,u,c,d=0,p=[],m=[];if(a==r)for(i=t.r1;i<=t.r2;i++){for(c=0,l=t.g1;l<=t.g2;l++)for(u=t.b1;u<=t.b2;u++)c+=e[s(i,l,u)]||0;d+=c,p[i]=d}else if(a==n)for(i=t.g1;i<=t.g2;i++){for(c=0,l=t.r1;l<=t.r2;l++)for(u=t.b1;u<=t.b2;u++)c+=e[s(l,i,u)]||0;d+=c,p[i]=d}else for(i=t.b1;i<=t.b2;i++){for(c=0,l=t.r1;l<=t.r2;l++)for(u=t.g1;u<=t.g2;u++)c+=e[s(l,u,i)]||0;d+=c,p[i]=d}return p.forEach((function(e,t){m[t]=d-e})),function(e){var r,n,a,o,s,l=e+"1",u=e+"2",c=0;for(i=t[l];i<=t[u];i++)if(p[i]>d/2){for(a=t.copy(),o=t.copy(),s=(r=i-t[l])<=(n=t[u]-i)?Math.min(t[u]-1,~~(i+n/2)):Math.max(t[l],~~(i-1-r/2));!p[s];)s++;for(c=m[s];!c&&p[s-1];)c=m[--s];return a[u]=s,o[l]=a[u]+1,[a,o]}}(a==r?"r":a==n?"g":"b")}}e.exports=r},9941:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});t=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.localeInfo=e,this.aaxImpressionToken=t,this.additionalQueryParams=r}r(287).Wz;const o=(t(a,[{key:"getMediaCentralDomain",value:function(){return"https://images-"+this.localeInfo.region+".ssl-images-amazon.com"}},{key:"getMediaCentralPath",value:function(){return this.getMediaCentralDomain()+"/images/G/"+this.localeInfo.media}},{key:"buildDetailPageLink",value:function(e,t,r){return e="https://www."+this.localeInfo.domain+"/dp/"+e,t.creativeId&&t.adId&&(e=this.addQueryParameter(e,"ref","dacx_dp_"+t.creativeId+"_"+t.adId)),t.merchantId&&(e=this.addQueryParameter(e,"smid",""+t.merchantId)),t.associateTag&&(e=this.addQueryParameter(e,"tag",""+t.associateTag)),t.percolateClickTrackingParams&&(e=this.addQueryParameter(e,t.percolateClickTrackingParams)),r&&(e=this.addQueryParameter(e,"language",r)),this.appendRemainingQueryParams(this.addAaxImpressionToken(e))}},{key:"buildStorePageLink",value:function(e,t){return t.creativeId?this.addQueryParameter(e,"store_ref","SD_"+t.creativeId):e}},{key:"buildReviewsLink",value:function(e,t,r){return e="https://www."+this.localeInfo.domain+"/product-reviews/"+e,t&&(e=this.addQueryParameter(e,"tag",""+t)),r&&(e=this.addQueryParameter(e,"language",r)),this.appendRemainingQueryParams(this.addAaxImpressionToken(e))}},{key:"buildAtcLink",value:function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).allow3pSellers,r=arguments[2],n=arguments[3],a=arguments[4],o=void 0;if(o=r||(e.addToCartUrls?t?e.addToCartUrls.buyBoxUrl:e.addToCartUrls.merchantSpecificUrl:e.addToCartUrl))return n&&(o=this.addQueryParameter(o,"tag",""+n)),a&&(o=this.addQueryParameter(o,"language",a)),this.appendRemainingQueryParams(this.addAaxImpressionToken(o));throw e={atcUrlOverride:r,addToCartUrls:e.addToCartUrls,addToCartUrl:e.addToCartUrl},new Error("Add to cart url is not present. Error context: "+JSON.stringify(e))}},{key:"buildCouponUrl",value:function(e,t,r,n){var a="https://www."+this.localeInfo.domain+"/advertising/coupon?ref=amg&vpc_cs=VPC_CS_MACRO";return e.psp&&(a=this.addQueryParameter(a,"psp",e.psp),a=this.addQueryParameter(a,"pspUrl",e.pspUrl)),t&&(a=this.addQueryParameter(a,"asin",t)),r&&(a=this.addQueryParameter(a,"tag",""+r)),n&&(a=this.addQueryParameter(a,"language",n)),this.appendRemainingQueryParams(this.addAaxImpressionToken(a))}},{key:"buildRefTagParam",value:function(e){return(e||"na").replace(/[^\w]/gi,"").toLowerCase()}},{key:"addQueryParameter",value:function(e,t,r){if(null==e)throw new Error("Cannot add query parameter to null or undefined url: "+e);var n=e.indexOf("?"),a=e.indexOf("#"),o=-1===n?"?":"",i=-1===n?"":"&";n=-1===n?-1===a?e.length:a:n+1;return e.substring(0,n)+o+t+(void 0!==r?"="+r:"")+i+e.substring(n)}},{key:"addAaxImpressionToken",value:function(e){return this.addQueryParameter(e,"aaxitk",this.aaxImpressionToken||"[[AAX_IMPRESSION_TOKEN]]")}},{key:"appendRemainingQueryParams",value:function(e){var t=this;return this.additionalQueryParams&&this.additionalQueryParams.length?this.additionalQueryParams.reduce((function(e,r){var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(r,2);r=n[0],n=n[1];return t.addQueryParameter(e,r,n)}),e):e}},{key:"getIntent",value:function(e){var t="com.amazon.mobile.shopping.web:"+e.replace(/^https?:/,"").replace(/\|/g,"%7C");return this.buildCascadingIntent(t,e)}},{key:"buildCascadingIntent",value:function(){for(var e,t="amazonmobile://intent",r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];for(e in n)n.hasOwnProperty(e)&&(t=this.addQueryParameter(t,"intent",encodeURIComponent(n[e])));return t}}]),a)},2588:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){var r=o(t);t=t.innerWidth||t.document.documentElement.clientWidth,r=i((e=e.getBoundingClientRect()).top,e.bottom,r),t=i(e.left,e.right,t),e=(e.bottom-e.top)*(e.right-e.left);return Math.min(1,Math.max(0,r*t/e))}function o(e){return e.innerHeight||e.document.documentElement.clientHeight}function i(e,t,r){var n=0<e?r-e:0<t?Math.min(t,r):0;return Math.min(n,t-e)}function s(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),this.window=t||window,this.elem=e}r.r(t),r.d(t,{default:()=>l});const l=(function(e,t,r){t&&n(e.prototype,t)}(s,[{key:"getPercentInView",value:function(){var e=this.getTopWindow();if(e){if(this.window===e)return a(this.elem,e);if(this.window.frameElement)return a(this.window.frameElement,e)}else if(this.window.$sf)try{return(this.window.$sf.ext.inViewPercentage()||0)/100}catch(e){}return-1}},{key:"getTopWindow",value:function(){return function(e){if(!e)throw new Error("window argument required");if("boolean"==typeof e.dacxIsCrossOrigin)return e.dacxIsCrossOrigin;try{if(!e.top.document)throw new Error("cross-domain exception");e.dacxIsCrossOrigin=!1}catch(t){e.dacxIsCrossOrigin=!0}return e.dacxIsCrossOrigin}(this.window)?null:this.window.top}},{key:"onViewThreshold",value:function(e,t,r,n){var a,o,i=this,s=null;return a=function(){if(i.getPercentInView()>=e&&i.getPercentInView()<=t){var a=(new Date).getTime();if(null===s)s=a;else if(r<a-s)return n(),1}else s=null},o=null,function e(){a()||(o=setTimeout(e,100))}(),{clear:function(){o&&clearTimeout(o)}}}},{key:"onView",value:function(e,t,r){return this.onViewThreshold(e,1,t,r)}},{key:"onHide",value:function(e,t,r){return this.onViewThreshold(0,e,t,r)}},{key:"getVerticalPositionOnPage",value:function(){var e,t,r,n=-1,a=this.getTopWindow();if(a)this.window===a?(e=this.elem.getBoundingClientRect().top,t=o(a),r=this.elem.getBoundingClientRect().height,n=Math.max(Math.min(e/(t-r),1),0)):this.window.frameElement&&(e=this.window.frameElement.getBoundingClientRect().top,t=o(a),r=this.window.frameElement.getBoundingClientRect().height,n=Math.max(Math.min(e/(t-r),1),0));else if(this.window.$sf)try{n=Math.max(Math.min($sf.ext.geom().self.t/($sf.ext.geom().win.h-$sf.ext.geom().self.h),1),0)}catch(e){}return n}}]),s)},7507:(e,t,r)=>{"use strict";r.d(t,{Z:()=>function(e){return"amazon."+function(e){switch(e){case"US":return"com";case"MX":return"com.mx";case"UK":return"co.uk";case"JP":return"co.jp";case"AU":return"com.au";case"BR":return"com.br";case"TR":return"com.tr";case"BE":return"com.be";case"ZA":return"co.za";default:return e.toLowerCase()}}(e)}})},4591:(e,t,r)=>{var n,a=r(7507).Z,o=r(8531).Z,i={US:{selectionLabel:"English (US)",currency:"$",media:"01",merchantId:"ATVPDKIKX0DER",marketplaceId:"ATVPDKIKX0DER",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},CA:{selectionLabel:"English (CA)",currency:"$",media:"15",merchantId:"A3DWYIK6Y9EEQB",marketplaceId:"A2EUQ1WTGCTBG2",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},MX:{selectionLabel:"Spanish (MX)",currency:"$",media:"30",merchantId:"AVDBXBAVVSXLQ",marketplaceId:"A1AM78C64UM0Y8",localeMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"]},BR:{selectionLabel:"Portuguese (BR)",currency:"R$ ",media:"32",merchantId:"A1ZZFT5FULY4LN",marketplaceId:"A2Q3Y263D00KWC",localeMonths:"['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez']"},UK:{selectionLabel:"English (UK)",currency:"£",media:"02",merchantId:"A3P5ROKL5A1OLE",marketplaceId:"A1F83G8C2ARO7P",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},DE:{selectionLabel:"German",currency:"€",media:"03",merchantId:"A3JWKAKR8XB7XF",marketplaceId:"A1PA6795UKMFR9",localeMonths:["Jan","Feb","März","Apr","Mai","Juni","Juli","Aug","Sept","Okt","Nov","Dez"]},FR:{selectionLabel:"French",currency:"€",media:"08",merchantId:"A1X6FK5RDHNB96",marketplaceId:"A13V1IB3VIYZZH",localeMonths:["Jan.","Févr.","Mars","Avr.","Mai","Juin","Juil.","Août","Sept.","Oct.","Nov.","Déc."]},IT:{selectionLabel:"Italian",currency:"€",media:"29",merchantId:"A11IL2PNWYJU7H",marketplaceId:"APJ6JRA9NG5V4",localeMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"]},ES:{selectionLabel:"Spanish",currency:"€",media:"30",merchantId:"A1AT7YVPFBWXBL",marketplaceId:"A1RKKUPIHCS9HS",localeMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"]},IN:{selectionLabel:"English (IN)",currency:"₹",media:"31",merchantId:"AT95IG9ONZD7S",marketplaceId:"A21TJRUUN4KGV",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},AE:{selectionLabel:"English (AE)",currency:"AED",media:"39",merchantId:"A2KKU8J8O8784X",marketplaceId:"A2VIGQ35RCS4UG",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},SA:{selectionLabel:"Arabic",currency:"ريـال",media:"40",merchantId:"A2XPWB6MYN7ZDK",marketplaceId:"A17E79C6D8DWNP",localeMonths:["كانون الثاني","شباط","آذار","نيسان","أيار","Øزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"]},NL:{selectionLabel:"Dutch",currency:"€",media:"37",merchantId:"A17D2BRD4YMT0X",marketplaceId:"A1805IZSGTT6HS",localeMonths:"['jan', 'feb', 'maa', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']"},SE:{selectionLabel:"Swedish",currency:"kr",media:"46",merchantId:"ANU9KP01APNAG",marketplaceId:"A2NODRKZP88ZB9",localeMonths:"['jan', 'febr', 'mars', 'april', 'maj', 'juni', 'juli', 'aug', 'sept', 'okt', 'nov', 'dec']"},TR:{selectionLabel:"Turkish",currency:"TL",media:"41",merchantId:"A1UNQM1SR2CHM",marketplaceId:"A33AVAJ2PDY3EV",localeMonths:"['Oca', 'Åžubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'AÄŸustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık']"},PL:{selectionLabel:"Poland",currency:"zÅ‚",media:"48",merchantId:"A2R2221NX79QZP",marketplaceId:"A1C3SOZRARQ6R3",localeMonths:"['StyczeÅ„','Luty','Marzec','KwiecieÅ„','Maj','Czerwiec','Lipiec','SierpieÅ„','WrzesieÅ„','Październik','Listopad','GrudzieÅ„']"},EG:{selectionLabel:"Egypt",currency:"EGP",media:"42",merchantId:"A1ZVRGNO5AYLOV",marketplaceId:"ARBP9OOSHTCHU",localeMonths:"['Jan', 'Feb', 'March', 'April', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec']"},BE:{selectionLabel:"Belgium",currency:"€",media:"51",merchantId:"A3Q3FYJVX702M2",marketplaceId:"AMEN7PMS3EDWL",localeMonths:"['Jan', 'Feb', 'March', 'April', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec']"},ZA:{selectionLabel:"English (ZA)",currency:"R",media:"53",merchantId:"A34KVLZUJN6MA",marketplaceId:"AE08WJ6YKNBMC",localeMonths:"['Jan', 'Feb', 'March', 'April', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec']"},JP:{selectionLabel:"Japanese",currency:"ï¿¥",media:"09",merchantId:"AN1VRQENFRJN5",marketplaceId:"A1VC38T7YXB528",yearText:"å¹´",dayText:"æ—¥",monthText:"月",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},AU:{selectionLabel:"Australia",currency:"$",media:"35",merchantId:"ANEGB3WVEVKZB",marketplaceId:"A39IBJ37TRP1C6",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},SG:{selectionLabel:"English (SG)",currency:"S$",media:"65",merchantId:"ACT6OAM3OSC9S",marketplaceId:"A19VAU5U5O7RUS",localeMonths:"['Jan', 'Feb', 'March', 'April', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec']"},CN:{selectionLabel:"",currency:"Â¥ ",media:"28",merchantId:"A1AJ19PSB66TGU",marketplaceId:"AAHKV2X7AFYLW",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]}};for(n in i)i[n].domain=a(n),i[n].region=o(n);e.exports=i},8531:(e,t,r)=>{"use strict";r.d(t,{Z:()=>function(e){switch(e){case"US":case"CA":case"MX":case"BR":return"na";case"UK":case"DE":case"FR":case"IT":case"ES":case"IN":case"AE":case"NL":case"SA":case"SE":case"TR":case"EG":case"PL":case"BE":case"ZA":return"eu";case"JP":case"AU":case"SG":return"fe";case"CN":return"cn"}}})},287:(e,t,r)=>{"use strict";r.d(t,{Wz:()=>function(e,t){var r,n=[];for(r in e)n.push(r+"="+e[r]);var a=n.join("&");return t?encodeURIComponent(a):a}})},1311:(e,t)=>{let r={data:""},n=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||r,a=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,o=/\/\*[^]*?\*\/|\s\s+|\n/g,i=(e,t)=>{let r="",n="",a="";for(let s in e){var o=e[s];"@"==s[0]?"i"==s[1]?r=s+" "+o+";":n+="f"==s[1]?i(o,s):s+"{"+i(o,"k"==s[1]?"":t)+"}":"object"==typeof o?n+=i(o,t?t.replace(/([^,])+/g,(e=>s.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):s):null!=o&&(s=s.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=i.p?i.p(s,o):s+":"+o+";")}return r+(t&&a?t+"{"+a+"}":a)+n},s={},l=e=>{if("object"!=typeof e)return e;{let r="";for(var t in e)r+=t+l(e[t]);return r}};function u(e){let t=this||{},r=e.call?e(t.p):e;return u=r.unshift?r.raw?(g=r,h=[].slice.call(arguments,1),y=t.p,g.reduce(((e,t,r)=>{let n=h[r];var a;return n&&n.call&&(r=(a=n(y))&&a.props&&a.props.className||/^go/.test(a)&&a,n=r?"."+r:a&&"object"==typeof a?a.props?"":i(a,""):!1===a?"":a),e+t+(null==n?"":n)}),"")):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,c=n(t.target),d=t.g,p=t.o,m=t.k,f=l(u),g=s[f]||(s[f]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(f)),s[g]||(u=f!==u?u:(e=>{let t,r=[{}];for(;t=a.exec(e.replace(o,""));)t[4]?r.shift():t[3]?r.unshift(r[0][t[3]]=r[0][t[3]]||{}):r[0][t[1]]=t[2];return r[0]})(u),s[g]=i(m?{["@keyframes "+g]:u}:u,d?"":"."+g)),d=s[g],-1==c.data.indexOf(d)&&(c.data=p?d+c.data:c.data+d),g;var u,c,d,p,m,f,g,h,y}let c,d,p,m=u.bind({g:1}),f=u.bind({k:1});t.css=u,t.extractCss=e=>{let t=n(e),r=t.data;return t.data="",r},t.glob=m,t.keyframes=f,t.setup=function(e,t,r,n){i.p=t,c=e,d=r,p=n},t.styled=function(e,t){let r=this||{};return function(){let n=arguments;function a(o,i){let s=Object.assign({},o),l=s.className||a.className;r.p=Object.assign({theme:d&&d()},s),r.o=/ *go\d+/.test(l),s.className=u.apply(r,n)+(l?" "+l:""),t&&(s.ref=i);let m=e;return e[0]&&(m=s.as||e,delete s.as),p&&m[0]&&p(s),c(m,s)}return t?t(a):a}}},5500:(e,t,r)=>{"use strict";r=r(7363).createContext({insertCss:null}),e.exports=r},8249:(e,t,r)=>{"use strict";var n=r(7363),a=r(5500);e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=n.useContext(a).insertCss;if(!o)throw new Error('Please provide "insertCss" function by StyleContext.Provider');!function(){var e=o.apply(void 0,t)}()}},4977:(e,t,r)=>{"use strict";r.r(t)},2703:(e,t,r)=>{"use strict";var n=r(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,i){if(i!==n)throw(i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",i}function t(){return e}var r={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3689:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ucs2decode:()=>m,ucs2encode:()=>h,decode:()=>y,encode:()=>v,toASCII:()=>C,toUnicode:()=>b,default:()=>x});const n=2147483647,a=36,o=/^xn--/,i=/[^\0-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=Math.floor,c=String.fromCharCode;function d(e){throw new RangeError(l[e])}function p(e,t){var r=e.split("@");let n="";return 1<r.length&&(n=r[0]+"@",e=r[1]),t=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(s,".")).split("."),t).join("."),n+t}function m(e){const t=[];let r=0;for(var n=e.length;r<n;){var a,o=e.charCodeAt(r++);55296<=o&&o<=56319&&r<n?56320==(64512&(a=e.charCodeAt(r++)))?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--):t.push(o)}return t}function f(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function g(e,t,r){let n=0;for(e=r?u(e/700):e>>1,e+=u(e/t);e>455;n+=a)e=u(e/35);return u(n+36*e/(e+38))}const h=e=>String.fromCodePoint(...e),y=function(e){const t=[];var r=e.length;let o=0,i=128,s=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let r=0;r<l;++r)128<=e.charCodeAt(r)&&d("not-basic"),t.push(e.charCodeAt(r));for(let h=0<l?l+1:0;h<r;){var c=o;for(let t=1,i=a;;i+=a){h>=r&&d("invalid-input");var p=(m=e.charCodeAt(h++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:a;(p>=a||p>u((n-o)/t))&&d("overflow"),o+=p*t;var m=i<=s?1:i>=s+26?26:i-s;if(p<m)break;t>u(n/(m=a-m))&&d("overflow"),t*=m}var f=t.length+1;s=g(o-c,f,0==c),u(o/f)>n-i&&d("overflow"),i+=u(o/f),o%=f,t.splice(o++,0,i)}return String.fromCodePoint(...t)},v=function(e){const t=[];var r=(e=m(e)).length;let o=128,i=0,s=72;for(const r of e)r<128&&t.push(c(r));var l=t.length;let p=l;for(l&&t.push("-");p<r;){let r=n;for(const t of e)t>=o&&t<r&&(r=t);var h=p+1;r-o>u((n-i)/h)&&d("overflow"),i+=(r-o)*h,o=r;for(const r of e)if(r<o&&++i>n&&d("overflow"),r==o){let e=i;for(let r=a;;r+=a){var y=r<=s?1:r>=s+26?26:r-s;if(e<y)break;var v=e-y,b=a-y;t.push(c(f(y+v%b,0))),e=u(v/b)}t.push(c(f(e,0))),s=g(i,h,p==l),i=0,++p}++i,++o}return t.join("")},b=function(e){return p(e,(function(e){return o.test(e)?y(e.slice(4).toLowerCase()):e}))},C=function(e){return p(e,(function(e){return i.test(e)?"xn--"+v(e):e}))},x={version:"2.1.0",ucs2:{decode:m,encode:h},decode:y,encode:v,toASCII:C,toUnicode:b}},2587:e=>{"use strict";e.exports=function(e,t,r,n){r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var o=/\+/g;e=e.split(t=t||"&"),t=1e3,n&&"number"==typeof n.maxKeys&&(t=n.maxKeys);var i=e.length;0<t&&t<i&&(i=t);for(var s=0;s<i;++s){var l,u=0<=(u=(c=e[s].replace(o,"%20")).indexOf(r))?(l=c.substr(0,u),c.substr(u+1)):(l=c,""),c=decodeURIComponent(l);u=decodeURIComponent(u);Object.prototype.hasOwnProperty.call(a,c)?Array.isArray(a[c])?a[c].push(u):a[c]=[a[c],u]:a[c]=u}return a}},2361:e=>{"use strict";function t(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}e.exports=function(e,r,n,a){return r=r||"&",n=n||"=","object"==typeof(e=null===e?void 0:e)?Object.keys(e).map((function(a){var o=encodeURIComponent(t(a))+n;return Array.isArray(e[a])?e[a].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[a]))})).join(r):a?encodeURIComponent(t(a))+n+encodeURIComponent(t(e)):""}},7673:(e,t,r)=>{"use strict";t.decode=t.parse=r(2587),t.encode=t.stringify=r(2361)},930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(r=r(7363))&&"object"==typeof r&&"default"in r?r:{default:r},a=e=>"checkbox"===e.type,o=e=>e instanceof Date,i=e=>null==e;const s=e=>"object"==typeof e;var l=e=>!i(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?a(e.target)?e.target.checked:e.target.value:e,c=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),d="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(d&&(e instanceof Blob||e instanceof FileList)||!r&&!l(e))return e;if(t=r?[]:{},Array.isArray(e)||(()=>{const t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")})())for(const r in e)t[r]=p(e[r]);else t=e}return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],f=e=>void 0===e,g=(e,t,r)=>{if(!t||!l(e))return r;var n=m(t.split(/[,[\].]+?/)).reduce(((e,t)=>i(e)?e:e[t]),e);return f(n)||n===e?f(e[t])?r:e[t]:n};const h="all",y=n.default.createContext(null),v=()=>n.default.useContext(y);var b=(e,t,r,n=!0)=>{var a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{var a=o;return t._proxyFormState[a]!==h&&(t._proxyFormState[a]=!n||h),r&&(r[a]=!0),e[a]}});return a},C=e=>l(e)&&!Object.keys(e).length,x=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return C(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||h)))},E=e=>Array.isArray(e)?e:[e],S=(e,t,r)=>r&&t?e===t:!e||!t||e===t||E(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function _(e){const t=n.default.useRef(e);t.current=e,n.default.useEffect((()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}}),[e.disabled])}function T(e){const t=v(),{control:r=t.control,disabled:a,name:o,exact:i}=e||{},[s,l]=n.default.useState(r._formState),u=n.default.useRef(!0),c=n.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=n.default.useRef(o);return d.current=o,_({disabled:a,next:e=>u.current&&S(d.current,e.name,i)&&x(e,c.current,r._updateFormState)&&l({...r._formState,...e}),subject:r._subjects.state}),n.default.useEffect((()=>{u.current=!0;var e=r._proxyFormState.isDirty&&r._getDirty();return e!==r._formState.isDirty&&r._subjects.state.next({isDirty:e}),c.current.isValid&&r._updateValid(!0),()=>{u.current=!1}}),[r]),b(s,r,c.current,!1)}var w=e=>"string"==typeof e,P=(e,t,r,n,a)=>w(e)?(n&&t.watch.add(e),g(r,e,a)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),g(r,e)))):(n&&(t.watchAll=!0),r);function O(e){const t=v(),{control:r=t.control,name:a,defaultValue:o,disabled:i,exact:s}=e||{},l=n.default.useRef(a);l.current=a,_({disabled:i,subject:r._subjects.values,next:e=>{S(l.current,e.name,s)&&c(p(P(l.current,r._names,e.values||r._formValues,!1,o)))}});const[u,c]=n.default.useState(r._getWatch(a,o));return n.default.useEffect((()=>r._removeUnmounted())),u}var A=e=>/^\w*$/.test(e),I=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function N(e,t,r){let n=-1;for(var a=A(t)?[t]:I(t),o=a.length,i=o-1;++n<o;){const t=a[n];let o=r;if(n!==i){const r=e[t];o=l(r)||Array.isArray(r)?r:isNaN(+a[n+1])?{}:[]}e[t]=o,e=e[t]}return e}function M(e){const t=v(),{name:r,control:a=t.control,shouldUnregister:o}=e,i=c(a._names.array,r),s=O({control:a,name:r,defaultValue:g(a._formValues,r,g(a._defaultValues,r,e.defaultValue)),exact:!0}),l=T({control:a,name:r}),d=n.default.useRef(a.register(r,{...e.rules,value:s}));return n.default.useEffect((()=>{const e=a._options.shouldUnregister||o,t=(e,t)=>{const r=g(a._fields,e);r&&(r._f.mount=t)};return t(r,!0),e&&N(a._defaultValues,r,p(g(a._options.defaultValues,r))),()=>{(i?e&&!a._state.action:e)?a.unregister(r):t(r,!1)}}),[r,a,i,o]),{field:{name:r,value:s,onChange:n.default.useCallback((e=>d.current.onChange({target:{value:u(e),name:r},type:"change"})),[r]),onBlur:n.default.useCallback((()=>d.current.onBlur({target:{value:g(a._formValues,r),name:r},type:"blur"})),[r,a]),ref:e=>{const t=g(a._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!g(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!g(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!g(l.touchedFields,r)},error:{enumerable:!0,get:()=>g(l.errors,r)}})}}var D=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{};const L=(e,t,r)=>{for(const n of r||Object.keys(e)){const r=g(e,n);if(r){const{_f:e,...n}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(n)&&L(n,t)}}};var B=()=>{const e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)}))},R=(e,t,r={})=>r.shouldFocus||f(r.shouldFocus)?r.focusName||`${e}.${f(r.focusIndex)?t:r.focusIndex}.`:"",j=e=>({isOnSubmit:!e||"onSubmit"===e,isOnBlur:"onBlur"===e,isOnChange:"onChange"===e,isOnAll:e===h,isOnTouch:"onTouched"===e}),k=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),F=(e,t,r)=>{var n=m(g(e,r));return N(n,"root",t[r]),N(e,r,n),e},z=e=>"boolean"==typeof e,Z=e=>"file"===e.type,G=e=>"function"==typeof e,W=e=>{if(!d)return!1;var t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},U=e=>w(e),V=e=>"radio"===e.type,H=e=>e instanceof RegExp;const Y={value:!1,isValid:!1},q={value:!0,isValid:!0};var X=e=>{if(Array.isArray(e)){if(1<e.length){var t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?!e[0].attributes||f(e[0].attributes.value)||f(e[0].value)||""===e[0].value?q:{value:e[0].value,isValid:!0}:Y}return Y};const Q={isValid:!1,value:null};var J=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Q):Q;function K(e,t,r="validate"){if(U(e)||Array.isArray(e)&&e.every(U)||z(e)&&!e)return{type:r,message:U(e)?e:"",ref:t}}var $=e=>l(e)&&!H(e)?e:{value:e,message:""},ee=async(e,t,r,n,o)=>{const{ref:s,refs:u,required:c,maxLength:d,minLength:p,min:m,max:h,pattern:y,validate:v,name:b,valueAsNumber:x,mount:E,disabled:S}=e._f,_=g(t,b);if(!E||S)return{};const T=u?u[0]:s,P=e=>{n&&T.reportValidity&&(T.setCustomValidity(!z(e)&&e||""),T.reportValidity())},O={},A=V(s),I=a(s),N=A||I,M=(x||Z(s))&&f(s.value)&&f(_)||W(s)&&""===s.value||""===_||Array.isArray(_)&&!_.length,L=D.bind(null,b,r,O),B=(e,t,r,n="maxLength",a="minLength")=>{r=e?t:r,O[b]={type:e?n:a,message:r,ref:s,...L(e?n:a,r)}};if(o?!Array.isArray(_)||!_.length:c&&(!N&&(M||i(_))||z(_)&&!_||I&&!X(u).isValid||A&&!J(u).isValid)){const{value:e,message:t}=U(c)?{value:!!c,message:c}:$(c);if(e&&(O[b]={type:"required",message:t,ref:T,...L("required",t)},!r))return P(t),O}if(!(M||i(m)&&i(h))){let e,t;const n=$(h),a=$(m);if(i(_)||isNaN(_)){const r=s.valueAsDate||new Date(_),o=e=>new Date((new Date).toDateString()+" "+e),i="time"==s.type,l="week"==s.type;w(n.value)&&_&&(e=i?o(_)>o(n.value):l?_>n.value:r>new Date(n.value)),w(a.value)&&_&&(t=i?o(_)<o(a.value):l?_<a.value:r<new Date(a.value))}else{const r=s.valueAsNumber||_&&+_;i(n.value)||(e=r>n.value),i(a.value)||(t=r<a.value)}if((e||t)&&(B(!!e,n.message,a.message,"max","min"),!r))return P(O[b].message),O}if((d||p)&&!M&&(w(_)||o&&Array.isArray(_))){const e=$(d),t=$(p),n=!i(e.value)&&_.length>e.value,a=!i(t.value)&&_.length<t.value;if((n||a)&&(B(n,e.message,t.message),!r))return P(O[b].message),O}if(y&&!M&&w(_)){const{value:e,message:t}=$(y);if(H(e)&&!_.match(e)&&(O[b]={type:"pattern",message:t,ref:s,...L("pattern",t)},!r))return P(t),O}if(v)if(G(v)){const e=K(await v(_,t),T);if(e&&(O[b]={...e,...L("validate",e.message)},!r))return P(e.message),O}else if(l(v)){let e={};for(const n in v){if(!C(e)&&!r)break;const a=K(await v[n](_,t),T,n);a&&(e={...a,...L(n,a.message)},P(a.message),r&&(O[b]=e))}if(!C(e)&&(O[b]={ref:T,...e},!r))return O}return P(!0),O};function te(e,t){return[...e,...E(t)]}var re=e=>Array.isArray(e)?e.map((()=>{})):void 0;function ne(e,t,r){return[...e.slice(0,t),...E(r),...e.slice(t)]}var ae=(e,t,r)=>Array.isArray(e)?(f(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[];function oe(e,t){return[...E(t),...E(e)]}var ie=(e,t)=>f(t)?[]:function(e,t){let r=0;const n=[...e];for(const e of t)n.splice(e-r,1),r++;return m(n).length?n:[]}(e,E(t).sort(((e,t)=>e-t))),se=(e,t,r)=>{e[t]=[e[r],e[r]=e[t]][0]};function le(e,t){const r=Array.isArray(t)?t:A(t)?[t]:I(t),n=1===r.length?e:function(e,t){var r=t.slice(0,-1).length;let n=0;for(;n<r;)e=f(e)?n++:e[t[n++]];return e}(e,r),a=r.length-1,o=r[a];return n&&delete n[o],0!=a&&(l(n)&&C(n)||Array.isArray(n)&&function(e){for(const t in e)if(!f(e[t]))return;return 1}(n))&&le(e,r.slice(0,-1)),e}var ue=(e,t,r)=>(e[t]=r,e);function ce(){let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var de=e=>i(e)||!s(e);function pe(e,t){if(de(e)||de(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const r=e[a];if(!n.includes(a))return!1;if("ref"!==a){const e=t[a];if(o(r)&&o(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!pe(r,e):r!==e)return!1}}return!0}var me=e=>"select-multiple"===e.type,fe=e=>W(e)&&e.isConnected,ge=e=>{for(const t in e)if(G(e[t]))return!0;return!1};function he(e,t={}){const r=Array.isArray(e);if(l(e)||r)for(const r in e)Array.isArray(e[r])||l(e[r])&&!ge(e[r])?(t[r]=Array.isArray(e[r])?[]:{},he(e[r],t[r])):i(e[r])||(t[r]=!0);return t}var ye=(e,t)=>function e(t,r,n){const a=Array.isArray(t);if(l(t)||a)for(const a in t)Array.isArray(t[a])||l(t[a])&&!ge(t[a])?f(r)||de(n[a])?n[a]=Array.isArray(t[a])?he(t[a],[]):{...he(t[a])}:e(t[a],i(r)?{}:r[a],n[a]):n[a]=!pe(t[a],r[a]);return n}(e,t,he(t)),ve=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>f(e)?e:t?""===e?NaN:e&&+e:r&&w(e)?new Date(e):n?n(e):e;function be(e){var t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return Z(t)?t.files:V(t)?J(e.refs).value:me(t)?[...t.selectedOptions].map((({value:e})=>e)):a(t)?X(e.refs).value:ve((f(t.value)?e.ref:t).value,e)}var Ce=e=>f(e)?e:H(e)?e.source:l(e)?H(e.value)?e.value.source:e.value:e;function xe(e,t,r){const n=g(e,r);if(n||A(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const n=a.join("."),o=g(t,n),i=g(e,n);if(o&&!Array.isArray(o)&&r!==n)return{name:r};if(i&&i.type)return{name:n,error:i};a.pop()}return{name:r}}const Ee={mode:"onSubmit",reValidateMode:"onChange",shouldFocusError:!0};function Se(e={},t){let r,n={...Ee,...e},s={submitCount:0,isDirty:!1,isLoading:!0,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},y={},v=(l(n.defaultValues)||l(n.values))&&p(n.defaultValues||n.values)||{},b=n.shouldUnregister?{}:p(v),x={action:!1,mount:!1,watch:!1},S={mount:new Set,unMount:new Set,array:new Set,watch:new Set},_=0;const T={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},O={values:ce(),array:ce(),state:ce()},A=e.resetOptions&&e.resetOptions.keepDirtyValues,I=j(n.mode),M=j(n.reValidateMode),D=n.criteriaMode===h,B=async e=>{if(T.isValid||e){const e=n.resolver?C((await q()).errors):await X(y,!0);e!==s.isValid&&O.state.next({isValid:e})}},R=e=>T.isValidating&&O.state.next({isValidating:e}),U=(e,t,r,n)=>{var a=g(y,e);a&&(r=g(b,e,f(r)?g(v,e):r),f(r)||n&&n.defaultChecked||t?N(b,e,t?r:be(a._f)):K(e,r),x.mount&&B())},H=(e,t,r,n,a)=>{let o=!1,i=!1;const l={name:e};if(!r||n){T.isDirty&&(i=s.isDirty,s.isDirty=l.isDirty=Q(),o=i!==l.isDirty);const r=pe(g(v,e),t);i=g(s.dirtyFields,e),r?le(s.dirtyFields,e):N(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||T.dirtyFields&&i!==!r}if(r){const t=g(s.touchedFields,e);t||(N(s.touchedFields,e,r),l.touchedFields=s.touchedFields,o=o||T.touchedFields&&t!==r)}return o&&a&&O.state.next(l),o?l:{}},Y=(t,n,a,o)=>{var i,l=g(s.errors,t),u=T.isValid&&z(n)&&s.isValid!==n;if(e.delayError&&a?(i=()=>((e,t)=>{N(s.errors,e,t),O.state.next({errors:s.errors})})(t,a),r=e=>{clearTimeout(_),_=setTimeout(i,e)},r(e.delayError)):(clearTimeout(_),r=null,a?N(s.errors,t,a):le(s.errors,t)),(a?!pe(l,a):l)||!C(o)||u){const e={...o,...u&&z(n)?{isValid:n}:{},errors:s.errors,name:t};s={...s,...e},O.state.next(e)}R(!1)},q=async e=>n.resolver(b,n.context,((e,t,r,n)=>{var a={};for(const r of e){const e=g(t,r);e&&N(a,r,e._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}})(e||S.mount,y,n.criteriaMode,n.shouldUseNativeValidation)),X=async(e,t,r={valid:!0})=>{for(const i in e){if(a=e[i]){const{_f:e,...i}=a;if(e){var a,o=S.array.has(e.name);if((a=await ee(a,b,D,n.shouldUseNativeValidation,o))[e.name]&&(r.valid=!1,t))break;t||(g(a,e.name)?o?F(s.errors,a,e.name):N(s.errors,e.name,a[e.name]):le(s.errors,e.name))}i&&await X(i,t,r)}}return r.valid},Q=(e,t)=>(e&&t&&N(b,e,t),!pe(ae(),v)),J=(e,t,r)=>P(e,S,{...x.mount?b:f(t)?v:w(e)?{[e]:t}:t},r,t),K=(e,t,r={})=>{var n=g(y,e);let o=t;if(n){const r=n._f;r&&(r.disabled||N(b,e,ve(t,r)),o=W(r.ref)&&i(t)?"":t,me(r.ref)?[...r.ref.options].forEach((e=>e.selected=o.includes(e.value))):r.refs?a(r.ref)?1<r.refs.length?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):r.refs[0]&&(r.refs[0].checked=!!o):r.refs.forEach((e=>e.checked=e.value===o)):Z(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||O.values.next({name:e,values:{...b}})))}(r.shouldDirty||r.shouldTouch)&&H(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ne(e)},$=(e,t,r)=>{for(const s in t){var n=t[s],a=e+"."+s,i=g(y,a);(!S.array.has(e)&&de(n)&&(!i||i._f)||o(n)?K:$)(a,n,r)}},te=(e,r,n={})=>{var a=g(y,e),o=S.array.has(e);r=p(r);N(b,e,r),o?(O.array.next({name:e,values:{...b}}),(T.isDirty||T.dirtyFields)&&n.shouldDirty&&O.state.next({name:e,dirtyFields:ye(v,b),isDirty:Q(e,r)})):(!a||a._f||i(r)?K:$)(e,r,n),k(e,S)&&O.state.next({...s}),O.values.next({name:e,values:{...b}}),x.mount||t()},re=async e=>{const t=e.target;let a=t.name;const o=g(y,a);if(o){let h,v;var i=t.type?be(o._f):u(e),l="blur"===e.type||"focusout"===e.type,c=!(((f=o._f).mount&&(f.required||f.min||f.max||f.maxLength||f.minLength||f.pattern||f.validate)||n.resolver||g(s.errors,a)||o._f.deps)&&(p=l,m=g(s.touchedFields,a),f=s.isSubmitted,c=M,(d=I).isOnAll||(!f&&d.isOnTouch?m||p:(f?c:d).isOnBlur?p:(f?c:d).isOnChange&&!p))),d=k(a,S,l);if(N(b,a,i),l?(o._f.onBlur&&o._f.onBlur(e),r&&r(0)):o._f.onChange&&o._f.onChange(e),p=H(a,i,l,!1),i=!C(p)||d,l||O.values.next({name:a,type:e.type,values:{...b}}),c)return T.isValid&&B(),i&&O.state.next({name:a,...d?{}:p});if(!l&&d&&O.state.next({...s}),R(!0),n.resolver){const e=(await q([a])).errors,t=xe(s.errors,y,a),r=xe(e,y,t.name||a);h=r.error,a=r.name,v=C(e)}else h=(await ee(o,b,D,n.shouldUseNativeValidation))[a],h?v=!1:T.isValid&&(v=await X(y,!0));o._f.deps&&ne(o._f.deps),Y(a,v,h,p)}var p,m,f},ne=async(e,t={})=>{let r,a;const o=E(e);if(R(!0),n.resolver){const t=await(async e=>{var t=(await q()).errors;if(e)for(const r of e){const e=g(t,r);e?N(s.errors,r,e):le(s.errors,r)}else s.errors=t;return t})(f(e)?e:o);r=C(t),a=e?!o.some((e=>g(t,e))):r}else e?(a=(await Promise.all(o.map((async e=>{var t=g(y,e);return X(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||s.isValid)&&B()):a=r=await X(y);return O.state.next({...!w(e)||T.isValid&&r!==s.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!a&&L(y,(e=>e&&g(s.errors,e)),e?o:S.mount),a},ae=e=>{const t={...v,...x.mount?b:{}};return f(e)?t:w(e)?g(t,e):e.map((e=>g(t,e)))},oe=(e,t)=>({invalid:!!g((t||s).errors,e),isDirty:!!g((t||s).dirtyFields,e),isTouched:!!g((t||s).touchedFields,e),error:g((t||s).errors,e)}),ie=(e,t={})=>{for(const r of e?E(e):S.mount)S.mount.delete(r),S.array.delete(r),g(y,r)&&(t.keepValue||(le(y,r),le(b,r)),t.keepError||le(s.errors,r),t.keepDirty||le(s.dirtyFields,r),t.keepTouched||le(s.touchedFields,r),n.shouldUnregister||t.keepDefaultValue||le(v,r));O.values.next({values:{...b}}),O.state.next({...s,...t.keepDirty?{isDirty:Q()}:{}}),t.keepIsValid||B()},se=(e,t={})=>{let r=g(y,e);var o=z(t.disabled);return N(y,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),S.mount.add(e),r?o&&N(b,e,t.disabled?void 0:g(b,e,be(r._f))):U(e,!0,t.value),{...o?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:Ce(t.min),max:Ce(t.max),minLength:Ce(t.minLength),maxLength:Ce(t.maxLength),pattern:Ce(t.pattern)}:{},name:e,onChange:re,onBlur:re,ref:o=>{if(o){se(e,t),r=g(y,e);const n=f(o.value)&&o.querySelectorAll&&o.querySelectorAll("input,select,textarea")[0]||o,i=V(o=n)||a(o),s=r._f.refs||[];(i?s.find((e=>e===n)):n===r._f.ref)||(N(y,e,{_f:{...r._f,...i?{refs:[...s.filter(fe),n,...Array.isArray(g(v,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),U(e,!1,void 0,n))}else r=g(y,e,{}),r._f&&(r._f.mount=!1),!n.shouldUnregister&&!t.shouldUnregister||c(S.array,e)&&x.action||S.unMount.add(e)}}},ue=()=>n.shouldFocusError&&L(y,(e=>e&&g(s.errors,e)),S.mount),ge=(r,n={})=>{var a=r||v,o=p(a),i=r&&!C(r)?o:v;if(n.keepDefaultValues||(v=a),!n.keepValues){if(n.keepDirtyValues||A)for(const e of S.mount)g(s.dirtyFields,e)?N(i,e,g(b,e)):te(e,g(i,e));else{if(d&&f(r))for(const e of S.mount){const t=g(y,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(W(e)){const t=e.closest("form");if(t){t.reset();break}}}}y={}}b=e.shouldUnregister?n.keepDefaultValues?p(v):{}:o,O.array.next({values:{...i}}),O.values.next({values:{...i}})}S={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},x.mount||t(),x.mount=!T.isValid||!!n.keepIsValid,x.watch=!!e.shouldUnregister,O.state.next({submitCount:n.keepSubmitCount?s.submitCount:0,isDirty:n.keepDirty?s.isDirty:!(!n.keepDefaultValues||pe(r,v)),isSubmitted:!!n.keepIsSubmitted&&s.isSubmitted,dirtyFields:n.keepDirtyValues?s.dirtyFields:n.keepDefaultValues&&r?ye(v,r):{},touchedFields:n.keepTouched?s.touchedFields:{},errors:n.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},he=(e,t)=>ge(G(e)?e(b):e,t);return G(n.defaultValues)&&n.defaultValues().then((e=>{he(e,n.resetOptions),O.state.next({isLoading:!1})})),{control:{register:se,unregister:ie,getFieldState:oe,_executeSchema:q,_getWatch:J,_getDirty:Q,_updateValid:B,_removeUnmounted:()=>{for(const e of S.unMount){const t=g(y,e);t&&(t._f.refs?t._f.refs.every((e=>!fe(e))):!fe(t._f.ref))&&ie(e)}S.unMount=new Set},_updateFieldArray:(e,t=[],r,n,a=!0,o=!0)=>{if(n&&r){if(x.action=!0,o&&Array.isArray(g(y,e))){const t=r(g(y,e),n.argA,n.argB);a&&N(y,e,t)}if(o&&Array.isArray(g(s.errors,e))){const t=r(g(s.errors,e),n.argA,n.argB);a&&N(s.errors,e,t),i=s.errors,m(g(i,l=e)).length||le(i,l)}if(T.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){const t=r(g(s.touchedFields,e),n.argA,n.argB);a&&N(s.touchedFields,e,t)}T.dirtyFields&&(s.dirtyFields=ye(v,b)),O.state.next({name:e,isDirty:Q(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else N(b,e,t);var i,l},_getFieldArray:t=>m(g(x.mount?b:v,t,e.shouldUnregister?g(v,t,[]):[])),_reset:ge,_updateFormState:e=>{s={...s,...e}},_subjects:O,_proxyFormState:T,get _fields(){return y},get _formValues(){return b},get _state(){return x},set _state(e){x=e},get _defaultValues(){return v},get _names(){return S},set _names(e){S=e},get _formState(){return s},set _formState(e){s=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:ne,register:se,handleSubmit:(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let a=p(b);if(O.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await q();s.errors=e,a=t}else await X(y);le(s.errors,"root"),C(s.errors)?(O.state.next({errors:{}}),await e(a,r)):(t&&await t({...s.errors},r),ue(),setTimeout(ue)),O.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:C(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>G(e)?O.values.subscribe({next:r=>e(J(void 0,t),r)}):J(e,t,!0),setValue:te,getValues:ae,reset:he,resetField:(e,t={})=>{g(y,e)&&(f(t.defaultValue)?te(e,g(v,e)):(te(e,t.defaultValue),N(v,e,t.defaultValue)),t.keepTouched||le(s.touchedFields,e),t.keepDirty||(le(s.dirtyFields,e),s.isDirty=t.defaultValue?Q(e,g(v,e)):Q()),t.keepError||(le(s.errors,e),T.isValid&&B()),O.state.next({...s}))},clearErrors:e=>{e&&E(e).forEach((e=>le(s.errors,e))),O.state.next({errors:e?s.errors:{}})},unregister:ie,setError:(e,t,r)=>{const n=(g(y,e,{_f:{}})._f||{}).ref;N(s.errors,e,{...t,ref:n}),O.state.next({name:e,errors:s.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},setFocus:(e,t={})=>{if(e=(e=g(y,e))&&e._f){const r=e.refs?e.refs[0]:e.ref;r.focus&&(r.focus(),t.shouldSelect&&r.select())}},getFieldState:oe}}t.Controller=e=>e.render(M(e)),t.FormProvider=e=>{const{children:t,...r}=e;return n.default.createElement(y.Provider,{value:r},t)},t.appendErrors=D,t.get=g,t.set=N,t.useController=M,t.useFieldArray=function(e){const t=v(),{control:r=t.control,name:a,keyName:o="id",shouldUnregister:i}=e,[s,l]=n.default.useState(r._getFieldArray(a)),u=n.default.useRef(r._getFieldArray(a).map(B)),c=n.default.useRef(s),d=n.default.useRef(a),m=n.default.useRef(!1);d.current=a,c.current=s,r._names.array.add(a),e.rules&&r.register(a,e.rules),_({next:({values:e,name:t})=>{if(t===d.current||!t){const t=g(e,d.current);Array.isArray(t)&&(l(t),u.current=t.map(B))}},subject:r._subjects.array});const f=n.default.useCallback((e=>{m.current=!0,r._updateFieldArray(a,e)}),[r,a]);return n.default.useEffect((()=>{var e;r._state.action=!1,k(a,r._names)&&r._subjects.state.next({...r._formState}),!m.current||j(r._options.mode).isOnSubmit&&!r._formState.isSubmitted||(r._options.resolver?r._executeSchema([a]).then((e=>{var t=g(e.errors,a);((e=g(r._formState.errors,a))?!t&&e.type:t&&t.type)&&(t?N(r._formState.errors,a,t):le(r._formState.errors,a),r._subjects.state.next({errors:r._formState.errors}))})):(e=g(r._fields,a))&&e._f&&ee(e,r._formValues,r._options.criteriaMode===h,r._options.shouldUseNativeValidation,!0).then((e=>!C(e)&&r._subjects.state.next({errors:F(r._formState.errors,e,a)})))),r._subjects.values.next({name:a,values:{...r._formValues}}),r._names.focus&&L(r._fields,(e=>!!e&&e.startsWith(r._names.focus||""))),r._names.focus="",r._updateValid()}),[s,a,r]),n.default.useEffect((()=>(g(r._formValues,a)||r._updateFieldArray(a),()=>{(r._options.shouldUnregister||i)&&r.unregister(a)})),[a,r,o,i]),{swap:n.default.useCallback(((e,t)=>{var n=r._getFieldArray(a);se(n,e,t),se(u.current,e,t),f(n),l(n),r._updateFieldArray(a,n,se,{argA:e,argB:t},!1)}),[f,a,r]),move:n.default.useCallback(((e,t)=>{var n=r._getFieldArray(a);ae(n,e,t),ae(u.current,e,t),f(n),l(n),r._updateFieldArray(a,n,ae,{argA:e,argB:t},!1)}),[f,a,r]),prepend:n.default.useCallback(((e,t)=>{const n=E(p(e)),o=oe(r._getFieldArray(a),n);r._names.focus=R(a,0,t),u.current=oe(u.current,n.map(B)),f(o),l(o),r._updateFieldArray(a,o,oe,{argA:re(e)})}),[f,a,r]),append:n.default.useCallback(((e,t)=>{const n=E(p(e)),o=te(r._getFieldArray(a),n);r._names.focus=R(a,o.length-1,t),u.current=te(u.current,n.map(B)),f(o),l(o),r._updateFieldArray(a,o,te,{argA:re(e)})}),[f,a,r]),remove:n.default.useCallback((e=>{var t=ie(r._getFieldArray(a),e);u.current=ie(u.current,e),f(t),l(t),r._updateFieldArray(a,t,ie,{argA:e})}),[f,a,r]),insert:n.default.useCallback(((e,t,n)=>{const o=E(p(t)),i=ne(r._getFieldArray(a),e,o);r._names.focus=R(a,e,n),u.current=ne(u.current,e,o.map(B)),f(i),l(i),r._updateFieldArray(a,i,ne,{argA:e,argB:re(t)})}),[f,a,r]),update:n.default.useCallback(((e,t)=>{var n=p(t);t=ue(r._getFieldArray(a),e,n);u.current=[...t].map(((t,r)=>t&&r!==e?u.current[r]:B())),f(t),l([...t]),r._updateFieldArray(a,t,ue,{argA:e,argB:n},!0,!1)}),[f,a,r]),replace:n.default.useCallback((e=>{const t=E(p(e));u.current=t.map(B),f([...t]),l([...t]),r._updateFieldArray(a,[...t],(e=>e),{},!0,!1)}),[f,a,r]),fields:n.default.useMemo((()=>s.map(((e,t)=>({...e,[o]:u.current[t]||B()})))),[s,o])}},t.useForm=function(e={}){const t=n.default.useRef(),[r,a]=n.default.useState({isDirty:!1,isValidating:!1,isLoading:!0,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:G(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Se(e,(()=>a((e=>({...e}))))),formState:r});const o=t.current.control;return o._options=e,_({subject:o._subjects.state,next:e=>{x(e,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),n.default.useEffect((()=>{e.values&&!pe(e.values,o._defaultValues)&&o._reset(e.values,o._options.resetOptions)}),[e.values,o]),n.default.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),t.current.formState=b(r,o),t.current},t.useFormContext=v,t.useFormState=T,t.useWatch=O},518:(e,t,r)=>{"use strict";e.exports=r(4293)},4293:(e,t)=>{"use strict";function r(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){if("string"==typeof t)return t;for(var r,n="",a=0;a<t.length;a++)t[a]&&(r=e(t[a]))&&(n&&(n+=" "),n+=r);return n}(e))&&(n&&(n+=" "),n+=t);return n}function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e){var t,r,n,a,s,l=(n=(t=e).theme,a=t.prefix,s={nextPart:new Map,validators:[]},t=Object.entries(t.classGroups),((r=a)?t.map((function(e){return[e[0],e[1].map((function(e){return"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((function(e){return[r+e[0],e[1]]}))):e}))]})):t).forEach((function(e){!function e(t,r,n,a){t.forEach((function(t){if("string"!=typeof t){if("function"==typeof t)return t.isThemeGetter?void e(t(a),r,n,a):void r.validators.push({validator:t,classGroupId:n});Object.entries(t).forEach((function(t){e(t[1],i(r,t[0]),n,a)}))}else(""===t?r:i(r,t)).classGroupId=n}))}(e[1],s,e[0],n)})),s);return{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,r){if(0===t.length)return r.classGroupId;var n;if(n=(n=r.nextPart.get(t[0]))?e(t.slice(1),n):void 0)return n;if(0!==r.validators.length){var a=t.join("-");return null==(r=r.validators.find((function(e){return(0,e.validator)(a)})))?void 0:r.classGroupId}}(t,l)||function(e){if(o.test(e)&&(e=null==(e=o.exec(e)[1])?void 0:e.substring(0,e.indexOf(":"))))return"arbitrary.."+e}(e)},getConflictingClassGroupIds:function(t){return e.conflictingClassGroups[t]||[]}}}Object.defineProperty(t,"__esModule",{value:!0});var o=/^\[(.+)\]$/;function i(e,t){var r=e;return t.split("-").forEach((function(e){r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r}function s(e){return n({cache:function(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function a(a,o){r.set(a,o),++t>e&&(t=0,n=r,r=new Map)}return{get:function(e){var t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(a(e,t),t):void 0},set:function(e,t){r.has(e)?r.set(e,t):a(e,t)}}}(e.cacheSize),splitModifiers:(t=e.separator||":",function(e){for(var r=0,n=[],a=0,o=0;o<e.length;o++){var i=e[o];0===r&&i===t[0]&&(1!==t.length&&e.slice(o,o+t.length)!==t||(n.push(e.slice(a,o)),a=o+t.length)),"["===i?r++:"]"===i&&r--}var s=0===n.length?e:e.substring(a),l=s.startsWith("!");return{modifiers:n,hasImportantModifier:l,baseClassName:l?s.substring(1):s}})},a(e));var t}var l=/\s+/;function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a,o,i,u=function(e){var r=t[0];r=t.slice(1).reduce((function(e,t){return t(e)}),r());return a=s(r),o=a.cache.get,i=a.cache.set,(u=c)(e)};function c(e){var t=o(e);if(t)return t;var r,n,s,u,c=(c=e,r=(t=a).splitModifiers,n=t.getClassGroupId,s=t.getConflictingClassGroupIds,u=new Set,c.trim().split(l).map((function(e){var t,a=(t=r(e)).modifiers,o=t.hasImportantModifier;return(t=n(t.baseClassName))?(a=function(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach((function(e){"["===e[0]?(t.push.apply(t,r.sort().concat([e])),r=[]):r.push(e)})),t.push.apply(t,r.sort()),t}(a).join(":"),{isTailwindClass:!0,modifierId:o?a+"!":a,classGroupId:t,originalClassName:e}):{isTailwindClass:!1,originalClassName:e}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,r=e.classGroupId;e=t+r;return!u.has(e)&&(u.add(e),s(r).forEach((function(e){return u.add(t+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" "));return i(e,c),c}return function(){return u(r.apply(null,arguments))}}function c(e){function t(t){return t[e]||[]}return t.isThemeGetter=!0,t}var d=/^\[(.+)\]$/,p=/^\d+\/\d+$/,m=new Set(["px","full","screen"]),f=/^(\d+)?(xs|sm|md|lg|xl)$/,g=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/,h=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function y(e){return!Number.isNaN(Number(e))||m.has(e)||p.test(e)||v(e)}function v(e){return!!(e=null==(e=d.exec(e))?void 0:e[1])&&(e.startsWith("length:")||g.test(e))}function b(e){return!!(e=null==(e=d.exec(e))?void 0:e[1])&&e.startsWith("size:")}function C(e){return!!(e=null==(e=d.exec(e))?void 0:e[1])&&e.startsWith("position:")}function x(e){return!!(e=null==(e=d.exec(e))?void 0:e[1])&&(e.startsWith("url(")||e.startsWith("url:"))}function E(e){return!!(e=null==(e=d.exec(e))?void 0:e[1])&&(!Number.isNaN(Number(e))||e.startsWith("number:"))}function S(e){var t=null==(t=d.exec(e))?void 0:t[1];return Number.isInteger(Number(t||e))}function _(e){return d.test(e)}function T(){return!0}function w(e){return f.test(e)}function P(e){return!!(e=null==(e=d.exec(e))?void 0:e[1])&&h.test(e)}var O={__proto__:null,isLength:y,isArbitraryLength:v,isArbitrarySize:b,isArbitraryPosition:C,isArbitraryUrl:x,isArbitraryNumber:E,isArbitraryWeight:E,isInteger:S,isArbitraryValue:_,isAny:T,isTshirtSize:w,isArbitraryShadow:P};function A(){function e(){return["auto",o]}function t(){return["",y]}function r(){return["auto",S]}function n(){return["","0",_]}var a=c("colors"),o=c("spacing"),i=c("blur"),s=c("brightness"),l=c("borderColor"),u=c("borderRadius"),d=c("borderSpacing"),p=c("borderWidth"),m=c("contrast"),f=c("grayscale"),g=c("hueRotate"),h=c("invert"),O=c("gap"),A=c("gradientColorStops"),I=c("inset"),N=c("margin"),M=c("opacity"),D=c("padding"),L=c("saturate"),B=c("scale"),R=c("sepia"),j=c("skew"),k=c("space"),F=c("translate");return{cacheSize:500,theme:{colors:[T],spacing:[y],blur:["none","",w,v],brightness:[S],borderColor:[a],borderRadius:["none","","full",w,v],borderSpacing:[o],borderWidth:t(),contrast:[S],grayscale:n(),hueRotate:[S],invert:n(),gap:[o],gradientColorStops:[a],inset:e(),margin:e(),opacity:[S],padding:[o],saturate:[S],scale:[S],sepia:n(),skew:[S,_],space:[o],translate:[o]},classGroups:{aspect:[{aspect:["auto","square","video",_]}],container:["container"],columns:[{columns:[w]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[_])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[I]}],"inset-x":[{"inset-x":[I]}],"inset-y":[{"inset-y":[I]}],top:[{top:[I]}],right:[{right:[I]}],bottom:[{bottom:[I]}],left:[{left:[I]}],visibility:["visible","invisible","collapse"],z:[{z:[S]}],basis:[{basis:[o]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_]}],grow:[{grow:n()}],shrink:[{shrink:n()}],order:[{order:["first","last","none",S]}],"grid-cols":[{"grid-cols":[T]}],"col-start-end":[{col:["auto",{span:[S]}]}],"col-start":[{"col-start":r()}],"col-end":[{"col-end":r()}],"grid-rows":[{"grid-rows":[T]}],"row-start-end":[{row:["auto",{span:[S]}]}],"row-start":[{"row-start":r()}],"row-end":[{"row-end":r()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_]}],gap:[{gap:[O]}],"gap-x":[{"gap-x":[O]}],"gap-y":[{"gap-y":[O]}],"justify-content":[{justify:["start","end","center","between","around","evenly"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:[].concat(["start","end","center","between","around","evenly"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly"],["baseline","stretch"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[D]}],px:[{px:[D]}],py:[{py:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",o]}],"min-w":[{"min-w":["min","max","fit",y]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[w]},w,v]}],h:[{h:[o,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",y]}],"max-h":[{"max-h":[o,"min","max","fit"]}],"font-size":[{text:["base",w,v]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",E]}],"font-family":[{font:[T]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",v]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",y]}],"list-style-type":[{list:["none","disc","decimal",_]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[a]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[a]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",y]}],"underline-offset":[{"underline-offset":["auto",y]}],"text-decoration-color":[{decoration:[a]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[o]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",v]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all","keep"]}],content:[{content:["none",_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[C])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",b]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},x]}],"bg-color":[{bg:[a]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[y]}],"outline-w":[{outline:[y]}],"outline-color":[{outline:[a]}],"ring-w":[{ring:t()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[a]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[y]}],"ring-offset-color":[{"ring-offset":[a]}],shadow:[{shadow:["","inner","none",w,P]}],"shadow-color":[{shadow:[T]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[s]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",w,_]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[h]}],saturate:[{saturate:[L]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_]}],duration:[{duration:[S]}],ease:[{ease:["linear","in","out","in-out",_]}],delay:[{delay:[S]}],animate:[{animate:["none","spin","ping","pulse","bounce",_]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[S,_]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_]}],accent:[{accent:["auto",a]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_]}],"caret-color":[{caret:[a]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[o]}],"scroll-mx":[{"scroll-mx":[o]}],"scroll-my":[{"scroll-my":[o]}],"scroll-mt":[{"scroll-mt":[o]}],"scroll-mr":[{"scroll-mr":[o]}],"scroll-mb":[{"scroll-mb":[o]}],"scroll-ml":[{"scroll-ml":[o]}],"scroll-p":[{"scroll-p":[o]}],"scroll-px":[{"scroll-px":[o]}],"scroll-py":[{"scroll-py":[o]}],"scroll-pt":[{"scroll-pt":[o]}],"scroll-pr":[{"scroll-pr":[o]}],"scroll-pb":[{"scroll-pb":[o]}],"scroll-pl":[{"scroll-pl":[o]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_]}],fill:[{fill:[a,"none"]}],"stroke-w":[{stroke:[y,E]}],stroke:[{stroke:[a,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],"col-start-end":["col-start","col-end"],"row-start-end":["row-start","row-end"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var I=u(A);function N(e,t){for(var r in t)!function e(t,r,n){if(M.call(t,r)&&!D.has(typeof n)&&null!==n){if(Array.isArray(n)&&Array.isArray(t[r]))t[r]=t[r].concat(n);else if("object"==typeof n&&"object"==typeof t[r])if(null!==t[r])for(var a in n)e(t[r],a,n[a]);else t[r]=n}else t[r]=n}(e,r,t[r]);return e}var M=Object.prototype.hasOwnProperty,D=new Set(["string","number","boolean"]),L=r;t.createTailwindMerge=u,t.extendTailwindMerge=function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return u.apply(void 0,("function"==typeof e?[A,e]:[function(){return N(A(),e)}]).concat(r))},t.fromTheme=c,t.getDefaultConfig=A,t.join=L,t.mergeConfigs=N,t.twJoin=r,t.twMerge=I,t.validators=O},8575:(e,t,r)=>{"use strict";var n=r(3689),a=r(2502);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){return a.isString(e)&&(e=v(e)),e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=(t=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),["'"].concat(t)),c=["%","/","?",";","#"].concat(u),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(7673);function v(e,t,r){if(e&&a.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o,s=-1!==(o=e.indexOf("?"))&&o<e.indexOf("#")?"?":"#";(o=e.split(s))[0]=o[0].replace(/\\/g,"/");var v,b,C,x=(x=e=o.join(s)).trim();if(!r&&1===e.split("#").length&&(b=l.exec(x)))return this.path=x,this.href=x,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this;if((b=i.exec(x))&&(C=(b=b[0]).toLowerCase(),this.protocol=C,x=x.substr(b.length)),(r||b||x.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(v="//"===x.substr(0,2))||b&&g[b]||(x=x.substr(2),this.slashes=!0)),!g[b]&&(v||b&&!h[b])){for(var E=-1,S=0;S<d.length;S++)-1!==(_=x.indexOf(d[S]))&&(-1===E||_<E)&&(E=_);-1!==(B=-1===E?x.lastIndexOf("@"):x.lastIndexOf("@",E))&&(R=x.slice(0,B),x=x.slice(B+1),this.auth=decodeURIComponent(R));var _;for(E=-1,S=0;S<c.length;S++)-1!==(_=x.indexOf(c[S]))&&(-1===E||_<E)&&(E=_);var T;if(-1===E&&(E=x.length),this.host=x.slice(0,E),x=x.slice(E),this.parseHost(),this.hostname=this.hostname||"",!(T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1]))for(var w=this.hostname.split(/\./),P=(S=0,w.length);S<P;S++){var O=w[S];if(O&&!O.match(p)){for(var A="",I=0,N=O.length;I<N;I++)127<O.charCodeAt(I)?A+="x":A+=O[I];if(!A.match(p)){var M=w.slice(0,S),D=w.slice(S+1),L=O.match(m);L&&(M.push(L[1]),D.unshift(L[2])),D.length&&(x="/"+D.join(".")+x),this.hostname=M.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var B=this.port?":"+this.port:"",R=this.hostname||"";this.host=R+B,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==x[0]&&(x="/"+x))}if(!f[C])for(S=0,P=u.length;S<P;S++){var j,k=u[S];-1!==x.indexOf(k)&&((j=encodeURIComponent(k))===k&&(j=escape(k)),x=x.split(k).join(j))}return-1!==(T=x.indexOf("#"))&&(this.hash=x.substr(T),x=x.slice(0,T)),-1!==(T=x.indexOf("?"))?(this.search=x.substr(T),this.query=x.substr(T+1),t&&(this.query=y.parse(this.query)),x=x.slice(0,T)):t&&(this.search="",this.query={}),x&&(this.pathname=x),h[C]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(B=this.pathname||"",C=this.search||"",this.path=B+C),this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";return this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(i=y.stringify(this.query)),i=this.search||i&&"?"+i||"",t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||h[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o=o||"",n&&"#"!==n.charAt(0)&&(n="#"+n),i&&"?"!==i.charAt(0)&&(i="?"+i),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(i=i.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},o.prototype.resolveObject=function(e){a.isString(e)&&((x=new o).parse(e,!1,!0),e=x);for(var t=new o,r=Object.keys(this),n=0;n<r.length;n++){var i=r[n];t[i]=this[i]}if(t.hash=e.hash,""===e.href)return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var u=s[l];"protocol"!==u&&(t[u]=e[u])}return h[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!h[e.protocol]){for(var c=Object.keys(e),d=0;d<c.length;d++){var p=c[d];t[p]=e[p]}return t.href=t.format(),t}if(t.protocol=e.protocol,e.host||g[e.protocol])t.pathname=e.pathname;else{for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),t.pathname=m.join("/")}return t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,(t.pathname||t.search)&&(y=t.pathname||"",v=t.search||"",t.path=y+v),t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var f=t.pathname&&"/"===t.pathname.charAt(0),y=(x=e.host||e.pathname&&"/"===e.pathname.charAt(0))||f||t.host&&e.pathname,v=y,b=t.pathname&&t.pathname.split("/")||[];m=e.pathname&&e.pathname.split("/")||[];if((f=t.protocol&&!h[t.protocol])&&(t.hostname="",t.port=null,t.host&&(""===b[0]?b[0]=t.host:b.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host=null),y=y&&(""===m[0]||""===b[0])),x)t.host=(e.host||""===e.host?e:t).host,t.hostname=(e.hostname||""===e.hostname?e:t).hostname,t.search=e.search,t.query=e.query,b=m;else if(m.length)(b=b||[]).pop(),b=b.concat(m),t.search=e.search,t.query=e.query;else if(!a.isNullOrUndefined(e.search))return f&&(t.hostname=t.host=b.shift(),(_=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=_.shift(),t.host=t.hostname=_.shift())),t.search=e.search,t.query=e.query,a.isNull(t.pathname)&&a.isNull(t.search)||(t.path=(t.pathname||"")+(t.search||"")),t.href=t.format(),t;if(!b.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var C=b.slice(-1)[0],x=(t.host||e.host||1<b.length)&&("."===C||".."===C)||""===C,E=0,S=b.length;0<=S;S--)"."===(C=b[S])?b.splice(S,1):".."===C?(b.splice(S,1),E++):E&&(b.splice(S,1),E--);if(!y&&!v)for(;E--;)b.unshift("..");!y||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),x&&"/"!==b.join("/").substr(-1)&&b.push("");var _;x=""===b[0]||b[0]&&"/"===b[0].charAt(0);return f&&(t.hostname=t.host=!x&&b.length?b.shift():"",(_=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=_.shift(),t.host=t.hostname=_.shift())),(y=y||t.host&&b.length)&&!x&&b.unshift(""),b.length?t.pathname=b.join("/"):(t.pathname=null,t.path=null),a.isNull(t.pathname)&&a.isNull(t.search)||(t.path=(t.pathname||"")+(t.search||"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},2502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},7363:e=>{"use strict";e.exports=React},1533:e=>{"use strict";e.exports=ReactDOM},2536:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(9651);const a=function(e,t){for(var r=e.length;r--;)if((0,n.Z)(e[r][0],t))return r;return-1};var o=Array.prototype.splice;function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i.prototype.clear=function(){this.__data__=[],this.size=0},i.prototype.delete=function(e){var t=this.__data__;return!((e=a(t,e))<0||(e==t.length-1?t.pop():o.call(t,e,1),--this.size,0))},i.prototype.get=function(e){var t=this.__data__;return(e=a(t,e))<0?void 0:t[e][1]},i.prototype.has=function(e){return-1<a(this.__data__,e)},i.prototype.set=function(e,t){var r=this.__data__,n=a(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};const s=i},6183:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n}),t=r(5084),r=r(6092);const n=(0,t.Z)(r.Z,"Map")},520:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});const n=(0,r(5084).Z)(Object,"create");var a=Object.prototype.hasOwnProperty;var o=Object.prototype.hasOwnProperty;function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i.prototype.clear=function(){this.__data__=n?n(null):{},this.size=0},i.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},i.prototype.get=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return a.call(t,e)?t[e]:void 0},i.prototype.has=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)},i.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this};const s=i;var l=r(2536),u=r(6183);const c=function(e,t){return e=e.__data__,function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?e["string"==typeof t?"string":"hash"]:e.map};function d(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}d.prototype.clear=function(){this.size=0,this.__data__={hash:new s,map:new(u.Z||l.Z),string:new s}},d.prototype.delete=function(e){return e=c(this,e).delete(e),this.size-=e?1:0,e},d.prototype.get=function(e){return c(this,e).get(e)},d.prototype.has=function(e){return c(this,e).has(e)},d.prototype.set=function(e,t){var r=c(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};const p=d},3203:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n}),t=r(5084),r=r(6092);const n=(0,t.Z)(r.Z,"Set")},5668:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(520);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n.Z;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},a.prototype.has=function(e){return this.__data__.has(e)};const o=a},5365:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(2536);var a=r(6183),o=r(520);function i(e){e=this.__data__=new n.Z(e),this.size=e.size}i.prototype.clear=function(){this.__data__=new n.Z,this.size=0},i.prototype.delete=function(e){var t=this.__data__;return e=t.delete(e),this.size=t.size,e},i.prototype.get=function(e){return this.__data__.get(e)},i.prototype.has=function(e){return this.__data__.has(e)},i.prototype.set=function(e,t){var r=this.__data__;if(r instanceof n.Z){var i=r.__data__;if(!a.Z||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new o.Z(i)}return r.set(e,t),this.size=r.size,this};const s=i},7685:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=r(6092).Z.Symbol},7623:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=r(6092).Z.Uint8Array},3840:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n}),t=r(5084),r=r(6092);const n=(0,t.Z)(r.Z,"WeakMap")},8069:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},8774:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}},3771:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(2889),a=r(4732),o=r(7771),i=r(5763),s=r(6009),l=r(7212),u=Object.prototype.hasOwnProperty;const c=function(e,t){var r,c=(0,o.default)(e),d=!c&&(0,a.Z)(e),p=!c&&!d&&(0,i.Z)(e),m=!c&&!d&&!p&&(0,l.Z)(e),f=c||d||p||m,g=f?(0,n.Z)(e.length,String):[],h=g.length;for(r in e)!t&&!u.call(e,r)||f&&("length"==r||p&&("offset"==r||"parent"==r)||m&&("buffer"==r||"byteLength"==r||"byteOffset"==r)||(0,s.Z)(r,h))||g.push(r);return g}},4073:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}},8694:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}},7709:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t,r,n){var a=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++a]);++a<o;)r=t(r,e[a],a,e);return r}},2338:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},2954:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(4752),a=r(9651),o=Object.prototype.hasOwnProperty;const i=function(e,t,r){var i=e[t];o.call(e,t)&&(0,a.Z)(i,r)&&(void 0!==r||t in e)||(0,n.Z)(e,t,r)}},4752:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(7904);const a=function(e,t,r){"__proto__"==t&&n.Z?(0,n.Z)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},4705:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7226),a=Object.create;function o(){}const i=function(e){return(0,n.Z)(e)?a?a(e):(o.prototype=e,e=new o,o.prototype=void 0,e):{}}},1507:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n}),t=r(2693);const n=(0,r(4033).Z)(t.Z)},4749:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(1507);const a=function(e,t){var r=[];return(0,n.Z)(e,(function(e,n,a){t(e,n,a)&&r.push(e)})),r}},5140:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(8694),a=(t=r(7685),r(4732)),o=r(7771),i=t.Z?t.Z.isConcatSpreadable:void 0;function s(e){return(0,o.default)(e)||(0,a.Z)(e)||!!(i&&e&&e[i])}const l=function e(t,r,a,o,i){var l=-1,u=t.length;for(a=a||s,i=i||[];++l<u;){var c=t[l];0<r&&a(c)?1<r?e(c,r-1,a,o,i):(0,n.Z)(i,c):o||(i[i.length]=c)}return i}},3242:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=(0,r(8419).Z)()},2693:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3242),a=r(7179);const o=function(e,t){return e&&(0,n.Z)(e,t,a.Z)}},3317:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(7449),a=r(2281);const o=function(e,t){for(var r=0,o=(t=(0,n.Z)(t,e)).length;null!=e&&r<o;)e=e[(0,a.Z)(t[r++])];return r&&r==o?e:void 0}},3327:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(8694),a=r(7771);const o=function(e,t,r){return t=t(e),(0,a.default)(e)?t:(0,n.Z)(t,r(e))}},3243:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});t=r(7685);var n=(r=Object.prototype).hasOwnProperty,a=r.toString,o=t.Z?t.Z.toStringTag:void 0;const i=function(e){var t=n.call(e,o),r=e[o];try{var i=!(e[o]=void 0)}catch(e){}var s=a.call(e);return i&&(t?e[o]=r:delete e[o]),s};var s=Object.prototype.toString;const l=function(e){return s.call(e)};var u=t.Z?t.Z.toStringTag:void 0;const c=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(u&&u in Object(e)?i:l)(e)}},1443:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n=r(5365),a=r(5668),o=r(2338),i=r(9548);const s=function(e,t,r,n,s,l){var u=1&r,c=e.length;if(c!=(p=t.length)&&!(u&&c<p))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var m=-1,f=!0,g=2&r?new a.Z:void 0;for(l.set(e,t),l.set(t,e);++m<c;){var h,y=e[m],v=t[m];if(void 0!==(h=n?u?n(v,y,m,t,e,l):n(y,v,m,e,t,l):h)){if(h)continue;f=!1;break}if(g){if(!(0,o.Z)(t,(function(e,t){if(!(0,i.Z)(g,t)&&(y===e||s(y,e,r,n,l)))return g.push(t)}))){f=!1;break}}else if(y!==v&&!s(y,v,r,n,l)){f=!1;break}}return l.delete(e),l.delete(t),f};t=r(7685);var l=r(7623),u=r(9651),c=r(4910),d=r(6545),p=(t=t.Z?t.Z.prototype:void 0)?t.valueOf:void 0;const m=function(e,t,r,n,a,o,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new l.Z(e),new l.Z(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,u.Z)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=c.Z;case"[object Set]":if(m=m||d.Z,e.size!=t.size&&!(1&n))return!1;var f=i.get(e);return f?f==t:(n|=2,i.set(e,t),m=s(m(e),m(t),n,a,o,i),i.delete(e),m);case"[object Symbol]":if(p)return p.call(e)==p.call(t)}return!1};var f=r(1808),g=Object.prototype.hasOwnProperty;var h=r(762),y=r(7771),v=r(5763),b=r(7212),C="[object Arguments]",x="[object Array]",E="[object Object]",S=Object.prototype.hasOwnProperty;const _=function(e,t,r,a,o,i){var l=(0,y.default)(e),u=(0,y.default)(t),c=l?x:(0,h.Z)(e),d=u?x:(0,h.Z)(t),p=(c=c==C?E:c)==E;u=(d=d==C?E:d)==E;if((d=c==d)&&(0,v.Z)(e)){if(!(0,v.Z)(t))return!1;p=!(l=!0)}return d&&!p?(i=i||new n.Z,l||(0,b.Z)(e)?s(e,t,r,a,o,i):m(e,t,c,r,a,o,i)):1&r||(p=p&&S.call(e,"__wrapped__"),u=u&&S.call(t,"__wrapped__"),!p&&!u)?!!d&&function(e,t,r,n,a,o){var i=1&r,s=(0,f.Z)(e),l=s.length;if(l!=(0,f.Z)(t).length&&!i)return!1;for(var u=l;u--;){var c=s[u];if(!(i?c in t:g.call(t,c)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=i;++u<l;){var y,v=e[c=s[u]],b=t[c];if(!(void 0===(y=n?i?n(b,v,c,t,e,o):n(v,b,c,e,t,o):y)?v===b||a(v,b,r,n,o):y)){m=!1;break}h=h||"constructor"==c}return!m||h||(d=e.constructor)!=(p=t.constructor)&&"constructor"in e&&"constructor"in t&&!("function"==typeof d&&d instanceof d&&"function"==typeof p&&p instanceof p)&&(m=!1),o.delete(e),o.delete(t),m}(e,t,r,a,o,i=i||new n.Z):o(p?e.value():e,u?t.value():t,r,a,i=i||new n.Z)};var T=r(8533);const w=function e(t,r,n,a,o){return t===r||(null==t||null==r||!(0,T.Z)(t)&&!(0,T.Z)(r)?t!=t&&r!=r:_(t,r,n,a,e,o))}},8175:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(5365),a=r(1443);const o=function(e,t,r,o){var i=r.length,s=i,l=!o;if(null==e)return!s;for(e=Object(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var c=(u=r[i])[0],d=e[c],p=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var m,f=new n.Z;if(!(void 0===(m=o?o(d,p,c,e,t,f):m)?(0,a.Z)(p,d,3,o,f):m))return!1}}return!0}},4808:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(3234),a=(t=r(1819),(t=/[^.]+$/.exec(t.Z&&t.Z.keys&&t.Z.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"");var o=r(7226),i=r(19),s=/^\[object .+?Constructor\]$/,l=(t=Function.prototype,r=Object.prototype,t=t.toString,r=r.hasOwnProperty,RegExp("^"+t.call(r).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"));const u=function(e){return!(!(0,o.Z)(e)||function(e){return!!a&&a in e}(e))&&((0,n.Z)(e)?l:s).test((0,i.Z)(e))}},9162:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(5490),a=r(9749),o=r(9203),i=r(7771),s=r(770);const l=function(e){return"function"==typeof e?e:null==e?o.Z:"object"==typeof e?(0,i.default)(e)?(0,a.Z)(e[0],e[1]):(0,n.Z)(e):(0,s.Z)(e)}},8448:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(2764);const a=(0,r(1851).Z)(Object.keys,Object);var o=Object.prototype.hasOwnProperty;const i=function(e){if(!(0,n.Z)(e))return a(e);var t,r=[];for(t in Object(e))o.call(e,t)&&"constructor"!=t&&r.push(t);return r}},5490:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(8175),a=r(6272),o=r(3015);const i=function(e){var t=(0,a.Z)(e);return 1==t.length&&t[0][2]?(0,o.Z)(t[0][0],t[0][1]):function(r){return r===e||(0,n.Z)(r,e,t)}}},9749:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(1443),a=r(6423),o=r(1910),i=r(9365),s=r(4163),l=r(3015),u=r(2281);const c=function(e,t){return(0,i.Z)(e)&&(0,s.Z)(t)?(0,l.Z)((0,u.Z)(e),t):function(r){var i=(0,a.default)(r,e);return void 0===i&&i===t?(0,o.Z)(r,e):(0,n.Z)(t,i,3)}}},81:(e,t,r)=>{"use strict";r.d(t,{Z:()=>S});var n=r(5365),a=r(4752),o=r(9651);const i=function(e,t,r){(void 0===r||(0,o.Z)(e[t],r))&&(void 0!==r||t in e)||(0,a.Z)(e,t,r)};var s=r(3242),l=r(1050),u=r(2701),c=r(7215),d=r(6539),p=r(4732),m=r(7771),f=r(836),g=r(5763),h=r(3234),y=r(7226),v=r(7514),b=r(7212);const C=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var x=r(2518);var E=r(7590);const S=function e(t,r,a,o,S){t!==r&&(0,s.Z)(r,(function(s,E){var _;S=S||new n.Z,(0,y.Z)(s)?function(e,t,r,n,a,o,s){var E,S,_,T=C(e,r),w=C(t,r),P=s.get(w);P?i(e,r,P):((E=void 0===(_=o?o(T,w,r+"",e,t,s):void 0))&&(P=!(S=(0,m.default)(w))&&(0,g.Z)(w),t=!S&&!P&&(0,b.Z)(w),_=w,S||P||t?_=(0,m.default)(T)?T:(0,f.Z)(T)?(0,c.Z)(T):P?(0,l.Z)(w,!(E=!1)):t?(0,u.Z)(w,!(E=!1)):[]:(0,v.Z)(w)||(0,p.Z)(w)?(0,p.Z)(_=T)?_=(0,x.Z)(T):(0,y.Z)(T)&&!(0,h.Z)(T)||(_=(0,d.Z)(w)):E=!1),E&&(s.set(w,_),a(_,w,n,o,s),s.delete(w)),i(e,r,_))}(t,r,E,a,e,o,S):(void 0===(_=o?o(C(t,E),s,E+"",t,r,S):void 0)&&(_=s),i(t,E,_))}),E.Z)}},4193:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){return function(t){return null==t?void 0:t[e]}}},3956:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){return function(t){return null==e?void 0:e[t]}}},7200:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t,r,n,a){return a(e,(function(e,a,o){r=n?(n=!1,e):t(r,e,a,o)})),r}},9581:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(9203),a=r(5644),o=r(9103);const i=function(e,t){return(0,o.Z)((0,a.Z)(e,t,n.Z),e+"")}},2889:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},2845:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});t=r(7685);var n=r(4073),a=r(7771),o=r(2714),i=(t=t.Z?t.Z.prototype:void 0)?t.toString:void 0;const s=function e(t){if("string"==typeof t)return t;if((0,a.default)(t))return(0,n.Z)(t,e)+"";if((0,o.Z)(t))return i?i.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},1162:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){return function(t){return e(t)}}},9548:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){return e.has(t)}},7449:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(7771),a=r(9365),o=r(474),i=r(7338);const s=function(e,t){return(0,n.default)(e)?e:(0,a.Z)(e,t)?[e]:(0,o.Z)((0,i.Z)(e))}},1884:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(7623);const a=function(e){var t=new e.constructor(e.byteLength);return new n.Z(t).set(new n.Z(e)),t}},1050:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(6092),a=(n=(r=(t="object"==typeof exports&&exports&&!exports.nodeType&&exports)&&"object"==typeof module&&module&&!module.nodeType&&module)&&r.exports===t?n.Z.Buffer:void 0)?n.allocUnsafe:void 0;const o=function(e,t){return t?e.slice():(t=e.length,t=a?a(t):new e.constructor(t),e.copy(t),t)}},2701:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(1884);const a=function(e,t){return t=t?(0,n.Z)(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.length)}},7215:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){var r=-1,n=e.length;for(t=t||Array(n);++r<n;)t[r]=e[r];return t}},1899:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(2954),a=r(4752);const o=function(e,t,r,o){var i=!r;r=r||{};for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),(i?a.Z:n.Z)(r,u,c)}return r}},1819:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=r(6092).Z["__core-js_shared__"]},9268:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(9581),a=r(439);const o=function(e){return(0,n.Z)((function(t,r){var n=-1,o=r.length,i=1<o?r[o-1]:void 0,s=2<o?r[2]:void 0;i=3<e.length&&"function"==typeof i?(o--,i):void 0;for(s&&(0,a.Z)(r[0],r[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var l=r[n];l&&e(t,l,n,i)}return t}))}},4033:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(585);const a=function(e,t){return function(r,a){if(null==r)return r;if(!(0,n.Z)(r))return e(r,a);for(var o=r.length,i=t?o:-1,s=Object(r);(t?i--:++i<o)&&!1!==a(s[i],i,s););return r}}},8419:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){return function(t,r,n){for(var a=-1,o=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++a];if(!1===r(o[l],l,o))break}return t}}},7904:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(5084);const a=function(){try{var e=(0,n.Z)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},3413:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},1808:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(3327),a=r(5695),o=r(7179);const i=function(e){return(0,n.Z)(e,o.Z,a.Z)}},6272:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(4163),a=r(7179);const o=function(e){for(var t=(0,a.Z)(e),r=t.length;r--;){var o=t[r],i=e[o];t[r]=[o,i,(0,n.Z)(i)]}return t}},5084:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(4808);const a=function(e,t){return t=function(e,t){return null==e?void 0:e[t]}(e,t),(0,n.Z)(t)?t:void 0}},2513:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=(0,r(1851).Z)(Object.getPrototypeOf,Object)},5695:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(8774),a=(r=r(532),Object.prototype.propertyIsEnumerable),o=Object.getOwnPropertySymbols;const i=o?function(e){return null==e?[]:(e=Object(e),(0,n.Z)(o(e),(function(t){return a.call(e,t)})))}:r.Z},762:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n=r(5084),a=r(6092);const o=(0,n.Z)(a.Z,"DataView");t=r(6183);const i=(0,n.Z)(a.Z,"Promise");n=r(3203),a=r(3840);var s=r(3243),l=r(19),u="[object Map]",c="[object Promise]",d="[object Set]",p="[object WeakMap]",m="[object DataView]",f=(0,l.Z)(o),g=(0,l.Z)(t.Z),h=(0,l.Z)(i),y=(0,l.Z)(n.Z),v=(0,l.Z)(a.Z);r=s.Z;const b=r=o&&r(new o(new ArrayBuffer(1)))!=m||t.Z&&r(new t.Z)!=u||i&&r(i.resolve())!=c||n.Z&&r(new n.Z)!=d||a.Z&&r(new a.Z)!=p?function(e){var t=(0,s.Z)(e);if(e=(e="[object Object]"==t?e.constructor:void 0)?(0,l.Z)(e):"")switch(e){case f:return m;case g:return u;case h:return c;case y:return d;case v:return p}return t}:r},6174:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(7449),a=r(4732),o=r(7771),i=r(6009),s=r(1656),l=r(2281);const u=function(e,t,r){for(var u=-1,c=(t=(0,n.Z)(t,e)).length,d=!1;++u<c;){var p=(0,l.Z)(t[u]);if(!(d=null!=e&&r(e,p)))break;e=e[p]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&(0,s.Z)(c)&&(0,i.Z)(p,c)&&((0,o.default)(e)||(0,a.Z)(e))}},6539:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(4705),a=r(2513),o=r(2764);const i=function(e){return"function"!=typeof e.constructor||(0,o.Z)(e)?{}:(0,n.Z)((0,a.Z)(e))}},6009:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=/^(?:0|[1-9]\d*)$/;const a=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&-1<e&&e%1==0&&e<t}},439:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(9651),a=r(585),o=r(6009),i=r(7226);const s=function(e,t,r){if(!(0,i.Z)(r))return!1;var s=typeof t;return!!("number"==s?(0,a.Z)(r)&&(0,o.Z)(t,r.length):"string"==s&&t in r)&&(0,n.Z)(r[t],e)}},9365:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(7771),a=r(2714),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;const s=function(e,t){if((0,n.default)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,a.Z)(e))||i.test(e)||!o.test(e)||null!=t&&e in Object(t)}},2764:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=Object.prototype;const a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},4163:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(7226);const a=function(e){return e==e&&!(0,n.Z)(e)}},4910:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},3015:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},8351:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});t=r(3413);var n=(r="object"==typeof exports&&exports&&!exports.nodeType&&exports)&&"object"==typeof module&&module&&!module.nodeType&&module,a=n&&n.exports===r&&t.Z.process;const o=function(){try{var e=n&&n.require&&n.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}()},1851:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){return function(r){return e(t(r))}}},5644:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(8069),a=Math.max;const o=function(e,t,r){return t=a(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=a(o.length-t,0),l=Array(s);++i<s;)l[i]=o[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=o[i];return u[t]=r(l),(0,n.Z)(e,this,u)}}},6092:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n}),t=r(3413),r="object"==typeof self&&self&&self.Object===Object&&self;const n=t.Z||r||Function("return this")()},6545:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},9103:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(2002),a=r(7904);t=r(9203),t=a.Z?function(e,t){return(0,a.Z)(e,"toString",{configurable:!0,enumerable:!1,value:(0,n.Z)(t),writable:!0})}:t.Z;const o=(0,r(7581).Z)(t)},7581:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=Date.now;const a=function(e){var t=0,r=0;return function(){var a=n(),o=16-(a-r);if(r=a,0<o){if(800<=++t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},474:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(2454);var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;const i=function(e){var t=(e=(0,n.Z)(e,(function(e){return 500===t.size&&t.clear(),e}))).cache;return e}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,r,n,a){t.push(n?a.replace(o,"$1"):r||e)})),t}))},2281:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(2714);const a=function(e){if("string"==typeof e||(0,n.Z)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},19:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=Function.prototype.toString;const a=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2002:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){return function(){return e}}},9651:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){return e===t||e!=e&&t!=t}},4169:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});const n=(0,r(3956).Z)({"&":"&","<":"<",">":">",'"':""","'":"'"});var a=r(7338),o=/[&<>"']/g,i=RegExp(o.source);const s=function(e){return(e=(0,a.Z)(e))&&i.test(e)?e.replace(o,n):e}},6579:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(8774),a=r(4749),o=r(9162),i=r(7771);const s=function(e,t){return(0,((0,i.default)(e)?n:a).Z)(e,(0,o.Z)(t,3))}},7961:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(5140);const a=function(e){return null!=e&&e.length?(0,n.Z)(e,1):[]}},6423:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(3317);const a=function(e,t,r){return void 0===(t=null==e?void 0:(0,n.Z)(e,t))?r:t}},1910:(e,t,r)=>{"use strict";function n(e,t){return null!=e&&t in Object(e)}r.d(t,{Z:()=>o});var a=r(6174);const o=function(e,t){return null!=e&&(0,a.Z)(e,t,n)}},9203:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){return e}},4732:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(3243),a=r(8533);const o=function(e){return(0,a.Z)(e)&&"[object Arguments]"==(0,n.Z)(e)};var i=(r=Object.prototype).hasOwnProperty,s=r.propertyIsEnumerable;const l=o(function(){return arguments}())?o:function(e){return(0,a.Z)(e)&&i.call(e,"callee")&&!s.call(e,"callee")}},7771:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=Array.isArray},585:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3234),a=r(1656);const o=function(e){return null!=e&&(0,a.Z)(e.length)&&!(0,n.Z)(e)}},836:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(585),a=r(8533);const o=function(e){return(0,a.Z)(e)&&(0,n.Z)(e)}},5763:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(6092),a=r(7979);const o=((n=(r=(t="object"==typeof exports&&exports&&!exports.nodeType&&exports)&&"object"==typeof module&&module&&!module.nodeType&&module)&&r.exports===t?n.Z.Buffer:void 0)?n.isBuffer:void 0)||a.Z},3234:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3243),a=r(7226);const o=function(e){return!!(0,a.Z)(e)&&("[object Function]"==(e=(0,n.Z)(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e)}},1656:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=9007199254740991}},7226:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},8533:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){return null!=e&&"object"==typeof e}},7514:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(3243),a=r(2513),o=r(8533),i=(t=Function.prototype,r=Object.prototype,t.toString),s=r.hasOwnProperty,l=i.call(Object);const u=function(e){return!(!(0,o.Z)(e)||"[object Object]"!=(0,n.Z)(e))&&(null===(e=(0,a.Z)(e))||"function"==typeof(e=s.call(e,"constructor")&&e.constructor)&&e instanceof e&&i.call(e)==l)}},2714:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3243),a=r(8533);const o=function(e){return"symbol"==typeof e||(0,a.Z)(e)&&"[object Symbol]"==(0,n.Z)(e)}},7212:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(3243),a=r(1656),o=r(8533),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t=r(1162);const s=(r=(r=r(8351)).Z&&r.Z.isTypedArray)?(0,t.Z)(r):function(e){return(0,o.Z)(e)&&(0,a.Z)(e.length)&&!!i[(0,n.Z)(e)]}},7179:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(3771),a=r(8448),o=r(585);const i=function(e){return((0,o.Z)(e)?n.Z:a.Z)(e)}},7590:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(3771),a=r(7226),o=r(2764);var i=Object.prototype.hasOwnProperty;const s=function(e){if(!(0,a.Z)(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t,r=(0,o.Z)(e),n=[];for(t in e)("constructor"!=t||!r&&i.call(e,t))&&n.push(t);return n};var l=r(585);const u=function(e){return(0,l.Z)(e)?(0,n.Z)(e,!0):s(e)}},8583:(e,t,r)=>{"use strict";r.r(t),r.d(t,{add:()=>s,after:()=>C,ary:()=>be,assign:()=>Pe,assignIn:()=>Ae,assignInWith:()=>Ie,assignWith:()=>Ne,at:()=>je,attempt:()=>Ge,before:()=>We,bind:()=>Ve,bindAll:()=>qe,bindKey:()=>Qe,camelCase:()=>Lt,capitalize:()=>mt,castArray:()=>Bt,ceil:()=>Ft,chain:()=>zt,chunk:()=>Ut,clamp:()=>Ht,clone:()=>xr,cloneDeep:()=>Er,cloneDeepWith:()=>Sr,cloneWith:()=>_r,commit:()=>Tr,compact:()=>wr,concat:()=>Or,cond:()=>Nr,conforms:()=>Dr,conformsTo:()=>Lr,constant:()=>Br.Z,countBy:()=>Zr,create:()=>Gr,curry:()=>Ur,curryRight:()=>Hr,debounce:()=>Qr,deburr:()=>bt,default:()=>Zc,defaultTo:()=>Jr,defaults:()=>tn,defaultsDeep:()=>on,defer:()=>ln,delay:()=>un,difference:()=>gn,differenceBy:()=>yn,differenceWith:()=>vn,divide:()=>bn,drop:()=>Cn,dropRight:()=>xn,dropRightWhile:()=>Sn,dropWhile:()=>_n,each:()=>wn,eachRight:()=>Nn,endsWith:()=>Mn,entries:()=>Bn,entriesIn:()=>Rn,eq:()=>Kr.Z,escape:()=>jn.default,escapeRegExp:()=>zn,every:()=>Wn,extend:()=>Ae,extendWith:()=>Ie,fill:()=>Vn,filter:()=>Hn.default,find:()=>Qn,findIndex:()=>Xn,findKey:()=>$n,findLast:()=>na,findLastIndex:()=>ra,findLastKey:()=>aa,first:()=>oa,flatMap:()=>la,flatMapDeep:()=>ua,flatMapDepth:()=>ca,flatten:()=>Le.default,flattenDeep:()=>da,flattenDepth:()=>pa,flip:()=>ma,floor:()=>fa,flow:()=>ha,flowRight:()=>ya,forEach:()=>wn,forEachRight:()=>Nn,forIn:()=>ba,forInRight:()=>Ca,forOwn:()=>xa,forOwnRight:()=>Ea,fromPairs:()=>Sa,functions:()=>Pa,functionsIn:()=>Oa,get:()=>Me.default,groupBy:()=>Ia,gt:()=>Da,gte:()=>La,has:()=>ka,hasIn:()=>Fa.Z,head:()=>oa,identity:()=>x.Z,inRange:()=>Ga,includes:()=>Ya,indexOf:()=>Xa,initial:()=>Qa,intersection:()=>eo,intersectionBy:()=>to,intersectionWith:()=>ro,invert:()=>oo,invertBy:()=>lo,invoke:()=>fo,invokeMap:()=>go,isArguments:()=>ho.Z,isArray:()=>G.default,isArrayBuffer:()=>yo,isArrayLike:()=>Se.Z,isArrayLikeObject:()=>fn.Z,isBoolean:()=>vo,isBuffer:()=>pr.Z,isDate:()=>bo,isElement:()=>Co,isEmpty:()=>_o,isEqual:()=>wo,isEqualWith:()=>Po,isError:()=>Ze,isFinite:()=>Ao,isFunction:()=>Ta.Z,isInteger:()=>Io,isLength:()=>No.Z,isMap:()=>fr,isMatch:()=>Lo,isMatchWith:()=>Bo,isNaN:()=>jo,isNative:()=>Zo,isNil:()=>Go,isNull:()=>Wo,isNumber:()=>Ro,isObject:()=>p.Z,isObjectLike:()=>W.Z,isPlainObject:()=>ze.Z,isRegExp:()=>Uo,isSafeInteger:()=>Ho,isSet:()=>gr,isString:()=>Wa,isSymbol:()=>n.Z,isTypedArray:()=>Eo.Z,isUndefined:()=>Yo,isWeakMap:()=>qo,isWeakSet:()=>Xo,iteratee:()=>Qo,join:()=>Ko,kebabCase:()=>$o,keyBy:()=>ei,keys:()=>Te.Z,keysIn:()=>Oe.Z,last:()=>hn,lastIndexOf:()=>ni,lodash:()=>q,lowerCase:()=>ai,lowerFirst:()=>oi,lt:()=>si,lte:()=>li,map:()=>sa,mapKeys:()=>ui,mapValues:()=>ci,matches:()=>pi,matchesProperty:()=>fi,max:()=>hi,maxBy:()=>yi,mean:()=>Ci,meanBy:()=>xi,memoize:()=>Ei.Z,merge:()=>Si.default,mergeWith:()=>an,method:()=>_i,methodOf:()=>Ti,min:()=>wi,minBy:()=>Pi,mixin:()=>Oi,multiply:()=>Ai,negate:()=>Ii,next:()=>Li,noop:()=>B.default,now:()=>Yr,nth:()=>Ri,nthArg:()=>ji,omit:()=>zi,omitBy:()=>Ui,once:()=>Vi,orderBy:()=>qi,over:()=>Qi,overArgs:()=>$i,overEvery:()=>es,overSome:()=>ts,pad:()=>fs,padEnd:()=>gs,padStart:()=>hs,parseInt:()=>bs,partial:()=>xs,partialRight:()=>Ss,partition:()=>_s,pick:()=>Ts,pickBy:()=>Wi,plant:()=>ws,property:()=>Ps.Z,propertyOf:()=>Os,pull:()=>Ds,pullAll:()=>Ms,pullAllBy:()=>Ls,pullAllWith:()=>Bs,pullAt:()=>ks,random:()=>Vs,range:()=>Xs,rangeRight:()=>Qs,rearg:()=>Js,reduce:()=>Ks.default,reduceRight:()=>tl,reject:()=>nl,remove:()=>al,repeat:()=>ol,replace:()=>il,rest:()=>sl,result:()=>ll,reverse:()=>cl,round:()=>dl,sample:()=>fl,sampleSize:()=>vl,set:()=>bl,setWith:()=>Cl,shuffle:()=>Sl,size:()=>_l,slice:()=>Tl,snakeCase:()=>wl,some:()=>Pl.default,sortBy:()=>Ol,sortedIndex:()=>Dl,sortedIndexBy:()=>Ll,sortedIndexOf:()=>Bl,sortedLastIndex:()=>Rl,sortedLastIndexBy:()=>jl,sortedLastIndexOf:()=>kl,sortedUniq:()=>zl,sortedUniqBy:()=>Zl,split:()=>Gl,spread:()=>Ul,startCase:()=>Vl,startsWith:()=>Hl,stubArray:()=>$t.Z,stubFalse:()=>Fo.Z,stubObject:()=>Yl,stubString:()=>ql,stubTrue:()=>Xl,subtract:()=>Ql,sum:()=>Jl,sumBy:()=>Kl,tail:()=>$l,take:()=>eu,takeRight:()=>tu,takeRightWhile:()=>ru,takeWhile:()=>nu,tap:()=>au,template:()=>Cu,templateSettings:()=>du,throttle:()=>xu,thru:()=>Eu,times:()=>wu,toArray:()=>Di,toFinite:()=>v,toInteger:()=>b,toIterator:()=>Pu,toJSON:()=>Au,toLength:()=>Un,toLower:()=>Iu,toNumber:()=>y,toPairs:()=>Bn,toPairsIn:()=>Rn,toPath:()=>Mu,toPlainObject:()=>Du.Z,toSafeInteger:()=>Bu,toString:()=>Je.Z,toUpper:()=>Ru,transform:()=>ju,trim:()=>zu,trimEnd:()=>Zu,trimStart:()=>Wu,truncate:()=>Vu,unary:()=>Hu,unescape:()=>Qu,union:()=>ec,unionBy:()=>tc,unionWith:()=>rc,uniq:()=>nc,uniqBy:()=>ac,uniqWith:()=>oc,uniqueId:()=>sc,unset:()=>lc,unzip:()=>cc,unzipWith:()=>dc,update:()=>mc,updateWith:()=>fc,upperCase:()=>gc,upperFirst:()=>pt,value:()=>Au,valueOf:()=>Au,values:()=>Va,valuesIn:()=>hc,without:()=>yc,words:()=>Nt,wrap:()=>vc,wrapperAt:()=>bc,wrapperChain:()=>Cc,wrapperCommit:()=>Tr,wrapperLodash:()=>q,wrapperNext:()=>Li,wrapperPlant:()=>ws,wrapperReverse:()=>xc,wrapperToIterator:()=>Pu,wrapperValue:()=>Au,xor:()=>Sc,xorBy:()=>_c,xorWith:()=>Tc,zip:()=>wc,zipObject:()=>Oc,zipObjectDeep:()=>Ac,zipWith:()=>Ic});var n=r(2714);const a=function(e){return"number"==typeof e?e:(0,n.Z)(e)?NaN:+e};var o=r(2845);const i=function(e,t){return function(r,n){var i;if(void 0===r&&void 0===n)return t;if(void 0!==r&&(i=r),void 0!==n){if(void 0===i)return n;n="string"==typeof r||"string"==typeof n?(r=(0,o.Z)(r),(0,o.Z)(n)):(r=a(r),a(n)),i=e(r,n)}return i}},s=i((function(e,t){return e+t}),0);var l=/\s/;const u=function(e){for(var t=e.length;t--&&l.test(e.charAt(t)););return t};var c=/^\s+/;const d=function(e){return e&&e.slice(0,u(e)+1).replace(c,"")};var p=r(7226),m=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,g=/^0o[0-7]+$/i,h=parseInt;const y=function(e){if("number"==typeof e)return e;if((0,n.Z)(e))return NaN;if((0,p.Z)(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=(0,p.Z)(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=d(e);var t=f.test(e);return t||g.test(e)?h(e.slice(2),t?2:8):m.test(e)?NaN:+e},v=function(e){return e?(e=y(e))!==1/0&&e!==-1/0?e==e?e:0:17976931348623157e292*(e<0?-1:1):0===e?e:0},b=function(e){var t=v(e);e=t%1;return t==t?e?t-e:t:0},C=function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=b(e),function(){if(--e<1)return t.apply(this,arguments)}};var x=r(9203);const E=(wt=r(3840)).Z&&new wt.Z,S=E?function(e,t){return E.set(e,t),e}:x.Z;var _=r(4705);const T=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=(0,_.Z)(e.prototype),n=e.apply(r,t);return(0,p.Z)(n)?n:r}};var w=r(6092);var P=r(8069),O=Math.max;const A=function(e,t,r,n){for(var a=-1,o=e.length,i=r.length,s=-1,l=t.length,u=O(o-i,0),c=Array(l+u),d=!n;++s<l;)c[s]=t[s];for(;++a<i;)(d||a<o)&&(c[r[a]]=e[a]);for(;u--;)c[s++]=e[a++];return c};var I=Math.max;const N=function(e,t,r,n){for(var a=-1,o=e.length,i=-1,s=r.length,l=-1,u=t.length,c=I(o-s,0),d=Array(c+u),p=!n;++a<c;)d[a]=e[a];for(var m=a;++l<u;)d[m+l]=t[l];for(;++i<s;)(p||a<o)&&(d[m+r[i]]=e[a++]);return d};function M(){}function D(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}const L=(D.prototype=(0,_.Z)(M.prototype)).constructor=D;var B=r(2054);const R=E?function(e){return E.get(e)}:B.default,j={};var k=Object.prototype.hasOwnProperty;const F=function(e){for(var t=e.name+"",r=j[t],n=k.call(j,t)?r.length:0;n--;){var a=r[n],o=a.func;if(null==o||o==e)return a.name}return t};function z(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}const Z=(z.prototype=(0,_.Z)(M.prototype)).constructor=z;var G=r(7771),W=r(8533),U=r(7215);const V=function(e){if(e instanceof L)return e.clone();var t=new Z(e.__wrapped__,e.__chain__);return t.__actions__=(0,U.Z)(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t};var H=Object.prototype.hasOwnProperty;function Y(e){if((0,W.Z)(e)&&!(0,G.default)(e)&&!(e instanceof L)){if(e instanceof Z)return e;if(H.call(e,"__wrapped__"))return V(e)}return new Z(e)}const q=(Y.prototype=M.prototype).constructor=Y,X=function(e){var t=F(e),r=q[t];return"function"==typeof r&&t in L.prototype&&(e===r||!!(r=R(r))&&e===r[0])},Q=(0,r(7581).Z)(S);var J=/\{\n\/\* \[wrapped with (.+)\] \*/,K=/,? & /;var $=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;var ee=r(9103);const te=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},re=function(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o<a;)if(t(e[o],o,e))return o;return-1};function ne(e){return e!=e}const ae=function(e,t,r){return t==t?function(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}(e,t,r):re(e,ne,r)},oe=function(e,t){return!(null==e||!e.length)&&-1<ae(e,t,0)};var ie=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];const se=function(e,t,r){return t+="",(0,ee.Z)(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(1<r?"& ":"")+t[n],t=t.join(2<r?", ":" "),e.replace($,"{\n/* [wrapped with "+t+"] */\n")}(t,function(e,t){return te(ie,(function(r){var n="_."+r[0];t&r[1]&&!oe(e,n)&&e.push(n)})),e.sort()}(function(e){return(e=e.match(J))?e[1].split(K):[]}(t),r)))},le=function(e,t,r,n,a,o,i,s,l,u){var c=8&t;return t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4),u=[e,t,a,c?o:void 0,c?i:void 0,c?void 0:o,c?void 0:i,s,l,u],r=r.apply(void 0,u),X(e)&&Q(r,u),r.placeholder=n,se(r,e,t)},ue=function(e){return e.placeholder};var ce=r(6009),de=Math.min;var pe="__lodash_placeholder__";const me=function(e,t){for(var r=-1,n=e.length,a=0,o=[];++r<n;){var i=e[r];i!==t&&i!==pe||(e[r]=pe,o[a++]=r)}return o};const fe=function e(t,r,n,a,o,i,s,l,u,c){var d=128&r,p=1&r,m=2&r,f=24&r,g=512&r,h=m?void 0:T(t);return function y(){for(var v,b=arguments.length,C=Array(b),x=b;x--;)C[x]=arguments[x];if(f&&(v=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(C,S=ue(y))),a&&(C=A(C,a,o,f)),i&&(C=N(C,i,s,f)),b-=v,f&&b<c){var E=me(C,S);return le(t,r,e,y.placeholder,n,C,E,l,u,c-b)}var S=p?n:this;E=m?S[t]:t,b=C.length;return l?C=function(e,t){for(var r=e.length,n=de(t.length,r),a=(0,U.Z)(e);n--;){var o=t[n];e[n]=(0,ce.Z)(o,r)?a[o]:void 0}return e}(C,l):g&&1<b&&C.reverse(),d&&u<b&&(C.length=u),(E=this&&this!==w.Z&&this instanceof y?h||T(E):E).apply(S,C)}};var ge="__lodash_placeholder__",he=Math.min;var ye=Math.max;const ve=function(e,t,r,n,a,o,i,s){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var u,c,d=n?n.length:0;d||(t&=-97,n=a=void 0),i=void 0===i?i:ye(b(i),0),s=void 0===s?s:b(s),d-=a?a.length:0,64&t&&(u=n,c=a,n=a=void 0);var p=l?void 0:R(e);i=[e,t,r,n,a,u,c,o,i,s];return p&&function(e,t){var r,n=e[1],a=t[1],o=n|a,i=128==a&&8==n||128==a&&256==n&&e[7].length<=t[8]||384==a&&t[7].length<=t[8]&&8==n;(o<131||i)&&(1&a&&(e[2]=t[2],o|=1&n?0:4),(n=t[3])&&(r=e[3],e[3]=r?A(r,n,t[4]):n,e[4]=r?me(e[3],ge):t[4]),(n=t[5])&&(r=e[5],e[5]=r?N(r,n,t[6]):n,e[6]=r?me(e[5],ge):t[6]),(n=t[7])&&(e[7]=n),128&a&&(e[8]=null==e[8]?t[8]:he(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o)}(i,p),e=i[0],t=i[1],r=i[2],n=i[3],a=i[4],!(s=i[9]=void 0===i[9]?l?0:e.length:ye(i[9]-d,0))&&24&t&&(t&=-25),r=t&&1!=t?8==t||16==t?function(e,t,r){var n=T(e);return function a(){for(var o=arguments.length,i=Array(o),s=o,l=ue(a);s--;)i[s]=arguments[s];return(o-=(l=o<3&&i[0]!==l&&i[o-1]!==l?[]:me(i,l)).length)<r?le(e,t,fe,a.placeholder,void 0,i,l,void 0,void 0,r-o):(o=this&&this!==w.Z&&this instanceof a?n:e,(0,P.Z)(o,this,i))}}(e,t,s):32!=t&&33!=t||a.length?fe.apply(void 0,i):function(e,t,r,n){var a=1&t,o=T(e);return function t(){for(var i=-1,s=arguments.length,l=-1,u=n.length,c=Array(u+s),d=this&&this!==w.Z&&this instanceof t?o:e;++l<u;)c[l]=n[l];for(;s--;)c[l++]=arguments[++i];return(0,P.Z)(d,a?r:this,c)}}(e,t,r,n):function(e,t,r){var n=1&t,a=T(e);return function t(){return(this&&this!==w.Z&&this instanceof t?a:e).apply(n?r:this,arguments)}}(e,t,r),se((p=p?S:Q)(r,i),e,t)},be=function(e,t,r){return t=r?void 0:t,t=e&&null==t?e.length:t,ve(e,128,void 0,void 0,void 0,void 0,t)};var Ce=r(2954),xe=r(1899),Ee=r(9268),Se=r(585),_e=r(2764),Te=r(7179),we=Object.prototype.hasOwnProperty;const Pe=(0,Ee.Z)((function(e,t){if((0,_e.Z)(t)||(0,Se.Z)(t))(0,xe.Z)(t,(0,Te.Z)(t),e);else for(var r in t)we.call(t,r)&&(0,Ce.Z)(e,r,t[r])}));var Oe=r(7590);const Ae=(0,Ee.Z)((function(e,t){(0,xe.Z)(t,(0,Oe.Z)(t),e)})),Ie=(0,Ee.Z)((function(e,t,r,n){(0,xe.Z)(t,(0,Oe.Z)(t),e,n)})),Ne=(0,Ee.Z)((function(e,t,r,n){(0,xe.Z)(t,(0,Te.Z)(t),e,n)}));var Me=r(6423);const De=function(e,t){for(var r=-1,n=t.length,a=Array(n),o=null==e;++r<n;)a[r]=o?void 0:(0,Me.default)(e,t[r]);return a};var Le=r(7961),Be=r(5644);const Re=function(e){return(0,ee.Z)((0,Be.Z)(e,void 0,Le.default),e+"")},je=Re(De);var ke=r(9581),Fe=r(3243),ze=r(7514);const Ze=function(e){if(!(0,W.Z)(e))return!1;var t=(0,Fe.Z)(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!(0,ze.Z)(e)},Ge=(0,ke.Z)((function(e,t){try{return(0,P.Z)(e,void 0,t)}catch(e){return Ze(e)?e:new Error(e)}})),We=function(e,t){var r;if("function"!=typeof t)throw new TypeError("Expected a function");return e=b(e),function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}};var Ue=(0,ke.Z)((function(e,t,r){var n,a=1;return r.length&&(n=me(r,ue(Ue)),a|=32),ve(e,a,t,r,n)}));Ue.placeholder={};const Ve=Ue;var He=r(4752),Ye=r(2281);const qe=Re((function(e,t){return te(t,(function(t){t=(0,Ye.Z)(t),(0,He.Z)(e,t,Ve(e[t],e))})),e}));var Xe=(0,ke.Z)((function(e,t,r){var n,a=3;return r.length&&(n=me(r,ue(Xe)),a|=32),ve(t,a,e,r,n)}));Xe.placeholder={};const Qe=Xe;var Je=r(7338);const Ke=function(e,t,r){var n=-1,a=e.length;(r=a<r?a:r)<0&&(r+=a),a=r<(t=t<0?a<-t?0:a+t:t)?0:r-t>>>0,t>>>=0;for(var o=Array(a);++n<a;)o[n]=e[n+t];return o},$e=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&n<=r?e:Ke(e,t,r)};var et=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const tt=function(e){return et.test(e)},rt=function(e){return e.split("")};var nt="["+(Pt="\\ud800-\\udfff")+"]",at="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ot="\\ud83c[\\udffb-\\udfff]",it=(Ot="[\\ufe0e\\ufe0f]?")+(Tt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?")+"(?:\\u200d(?:"+[_t="[^"+Pt+"]",is="(?:\\ud83c[\\udde6-\\uddff]){2}",St="[\\ud800-\\udbff][\\udc00-\\udfff]"].join("|")+")"+Ot+Tt+")*",st="(?:"+[_t+"[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?",at,is,St,nt].join("|")+")",lt=RegExp(ot+"(?="+ot+")|"+st+it,"g");const ut=function(e){return e.match(lt)||[]},ct=function(e){return(tt(e)?ut:rt)(e)},dt=function(e){return function(t){t=(0,Je.Z)(t);var r=tt(t)?ct(t):void 0,n=r?r[0]:t.charAt(0);t=r?$e(r,1).join(""):t.slice(1);return n[e]()+t}},pt=dt("toUpperCase"),mt=function(e){return pt((0,Je.Z)(e).toLowerCase())};var ft=r(7709),gt=r(3956);const ht=(0,gt.Z)({À:"A",Ã:"A",Â:"A",Ã:"A",Ä:"A",Ã…:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ç:"C",ç:"c",Ã:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",ÃŒ:"I",Ã:"I",ÃŽ:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ã’:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ãœ:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ä€:"A",Ä‚:"A",Ä„:"A",Ä:"a",ă:"a",Ä…:"a",Ć:"C",Ĉ:"C",ÄŠ:"C",ÄŒ:"C",ć:"c",ĉ:"c",Ä‹:"c",Ä:"c",ÄŽ:"D",Ä:"D",Ä:"d",Ä‘:"d",Ä’:"E",Ä”:"E",Ä–:"E",Ę:"E",Äš:"E",Ä“:"e",Ä•:"e",Ä—:"e",Ä™:"e",Ä›:"e",Äœ:"G",Äž:"G",Ä :"G",Ä¢:"G",Ä:"g",ÄŸ:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",Ä°:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å€:"l",Å‚:"l",Ń:"N",Å…:"N",Ň:"N",ÅŠ:"N",Å„:"n",ņ:"n",ň:"n",Å‹:"n",ÅŒ:"O",ÅŽ:"O",Å:"O",Å:"o",Å:"o",Å‘:"o",Å”:"R",Å–:"R",Ř:"R",Å•:"r",Å—:"r",Å™:"r",Åš:"S",Åœ:"S",Åž:"S",Å :"S",Å›:"s",Å:"s",ÅŸ:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Å°:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å’:"Oe",Å“:"oe",ʼn:"'n",Å¿:"s"});var yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const bt=function(e){return(e=(0,Je.Z)(e))&&e.replace(yt,ht).replace(vt,"")};var Ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;const xt=function(e){return e.match(Ct)||[]};var Et=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var St,_t="["+(Tt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000")+"]",Tt=(at="["+(wt="\\u2700-\\u27bf")+"]",it="(?:"+(is="["+(Pt="a-z\\xdf-\\xf6\\xf8-\\xff")+"]")+"|"+(St="[^"+(t="\\ud800-\\udfff")+Tt+"\\d+"+wt+Pt+(Ot="A-Z\\xc0-\\xd6\\xd8-\\xde")+"]")+")","(?:"+(st="["+Ot+"]")+"|"+St+")"),wt="(?:['’](?:d|ll|m|re|s|t|ve))?",Pt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ot=(St="[\\ufe0e\\ufe0f]?")+(Ot="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?")+"(?:\\u200d(?:"+["[^"+t+"]",nt="(?:\\ud83c[\\udde6-\\uddff]){2}",ot="[\\ud800-\\udbff][\\udc00-\\udfff]"].join("|")+")"+St+Ot+")*",At=(ot="(?:"+[at,nt,ot].join("|")+")"+Ot,RegExp([st+"?"+is+"+"+wt+"(?="+[_t,st,"$"].join("|")+")",Tt+"+"+Pt+"(?="+[_t,st+it,"$"].join("|")+")",st+"?"+it+"+"+wt,st+"+"+Pt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",ot].join("|"),"g"));const It=function(e){return e.match(At)||[]},Nt=function(e,t,r){return e=(0,Je.Z)(e),void 0===(t=r?void 0:t)?(function(e){return Et.test(e)}(e)?It:xt)(e):e.match(t)||[]};var Mt=RegExp("['’]","g");const Dt=function(e){return function(t){return(0,ft.Z)(Nt(bt(t).replace(Mt,"")),e,"")}},Lt=Dt((function(e,t,r){return t=t.toLowerCase(),e+(r?mt(t):t)})),Bt=function(){if(!arguments.length)return[];var e=arguments[0];return(0,G.default)(e)?e:[e]};var Rt=w.Z.isFinite,jt=Math.min;const kt=function(e){var t=Math[e];return function(e,r){if(e=y(e),(r=null==r?0:jt(b(r),292))&&Rt(e)){var n=((0,Je.Z)(e)+"e").split("e"),a=t(n[0]+"e"+(+n[1]+r));return+((n=((0,Je.Z)(a)+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}},Ft=kt("ceil"),zt=function(e){return(e=q(e)).__chain__=!0,e};var Zt=r(439),Gt=Math.ceil,Wt=Math.max;const Ut=function(e,t,r){t=(r?(0,Zt.Z)(e,t,r):void 0===t)?1:Wt(b(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var a=0,o=0,i=Array(Gt(n/t));a<n;)i[o++]=Ke(e,a,a+=t);return i},Vt=function(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=t<=e?e:t)),e},Ht=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=y(r))==r?r:0),void 0!==t&&(t=(t=y(t))==t?t:0),Vt(y(e),t,r)};var Yt=r(5365);const qt=function(e,t){return e&&(0,xe.Z)(t,(0,Te.Z)(t),e)};var Xt=r(1050),Qt=r(5695);var Jt=r(8694),Kt=r(2513),$t=r(532);const er=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,Jt.Z)(t,(0,Qt.Z)(e)),e=(0,Kt.Z)(e);return t}:$t.Z;var tr=r(1808),rr=r(3327);const nr=function(e){return(0,rr.Z)(e,Oe.Z,er)};var ar=r(762),or=Object.prototype.hasOwnProperty;var ir=r(1884);var sr=/\w*$/;var lr=(is=(Ot=r(7685)).Z?Ot.Z.prototype:void 0)?is.valueOf:void 0;var ur=r(2701);const cr=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,ir.Z)(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return function(e,t){return t=t?(0,ir.Z)(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,ur.Z)(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,sr.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return lr?Object(lr.call(e)):{}}(e)}};var dr=r(6539),pr=r(5763);var mr=r(1162);const fr=(_t=(Tt=r(8351)).Z&&Tt.Z.isMap)?(0,mr.Z)(_t):function(e){return(0,W.Z)(e)&&"[object Map]"==(0,ar.Z)(e)};const gr=(it=Tt.Z&&Tt.Z.isSet)?(0,mr.Z)(it):function(e){return(0,W.Z)(e)&&"[object Set]"==(0,ar.Z)(e)};var hr="[object Arguments]",yr="[object Function]",vr="[object Object]",br={};br[hr]=br["[object Array]"]=br["[object ArrayBuffer]"]=br["[object DataView]"]=br["[object Boolean]"]=br["[object Date]"]=br["[object Float32Array]"]=br["[object Float64Array]"]=br["[object Int8Array]"]=br["[object Int16Array]"]=br["[object Int32Array]"]=br["[object Map]"]=br["[object Number]"]=br[vr]=br["[object RegExp]"]=br["[object Set]"]=br["[object String]"]=br["[object Symbol]"]=br["[object Uint8Array]"]=br["[object Uint8ClampedArray]"]=br["[object Uint16Array]"]=br["[object Uint32Array]"]=!0,br["[object Error]"]=br[yr]=br["[object WeakMap]"]=!1;const Cr=function e(t,r,n,a,o,i){var s,l=1&r,u=2&r,c=4&r;if(void 0!==(s=n?o?n(t,a,o,i):n(t):s))return s;if(!(0,p.Z)(t))return t;var d=(0,G.default)(t);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&or.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!l)return(0,U.Z)(t,s)}else{var m=(0,ar.Z)(t);a=m==yr||"[object GeneratorFunction]"==m;if((0,pr.Z)(t))return(0,Xt.Z)(t,l);if(m==vr||m==hr||a&&!o){if(s=u||a?{}:(0,dr.Z)(t),!l)return u?function(e,t){return(0,xe.Z)(e,er(e),t)}(t,function(e,t){return e&&(0,xe.Z)(t,(0,Oe.Z)(t),e)}(s,t)):function(e,t){return(0,xe.Z)(e,(0,Qt.Z)(e),t)}(t,qt(s,t))}else{if(!br[m])return o?t:{};s=cr(t,m,l)}}if(l=(i=i||new Yt.Z).get(t))return l;i.set(t,s),gr(t)?t.forEach((function(a){s.add(e(a,r,n,a,t,i))})):fr(t)&&t.forEach((function(a,o){s.set(o,e(a,r,n,o,t,i))}));u=c?u?nr:tr.Z:(u?Oe:Te).Z;var f=d?void 0:u(t);return te(f||t,(function(a,o){f&&(a=t[o=a]),(0,Ce.Z)(s,o,e(a,r,n,o,t,i))})),s},xr=function(e){return Cr(e,4)},Er=function(e){return Cr(e,5)},Sr=function(e,t){return Cr(e,5,t="function"==typeof t?t:void 0)},_r=function(e,t){return Cr(e,4,t="function"==typeof t?t:void 0)},Tr=function(){return new Z(this.value(),this.__chain__)},wr=function(e){for(var t=-1,r=null==e?0:e.length,n=0,a=[];++t<r;){var o=e[t];o&&(a[n++]=o)}return a};var Pr=r(5140);const Or=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return(0,Jt.Z)((0,G.default)(r)?(0,U.Z)(r):[r],(0,Pr.Z)(t,1))};var Ar=r(4073),Ir=r(9162);const Nr=function(e){var t=null==e?0:e.length,r=Ir.Z;return e=t?(0,Ar.Z)(e,(function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[r(e[0]),e[1]]})):[],(0,ke.Z)((function(r){for(var n=-1;++n<t;){var a=e[n];if((0,P.Z)(a[0],this,r))return(0,P.Z)(a[1],this,r)}}))},Mr=function(e,t,r){var n=r.length;if(null==e)return!n;for(e=Object(e);n--;){var a=r[n],o=t[a],i=e[a];if(void 0===i&&!(a in e)||!o(i))return!1}return!0},Dr=function(e){return function(e){var t=(0,Te.Z)(e);return function(r){return Mr(r,e,t)}}(Cr(e,1))},Lr=function(e,t){return null==t||Mr(e,t,(0,Te.Z)(t))};var Br=r(2002);function Rr(e,t,r,n){for(var a=-1,o=null==e?0:e.length;++a<o;){var i=e[a];t(n,i,r(i),e)}return n}var jr=r(1507);function kr(e,t,r,n){return(0,jr.Z)(e,(function(e,a,o){t(n,e,r(e),o)})),n}const Fr=function(e,t){return function(r,n){var a=(0,G.default)(r)?Rr:kr,o=t?t():{};return a(r,e,(0,Ir.Z)(n,2),o)}};var zr=Object.prototype.hasOwnProperty;const Zr=Fr((function(e,t,r){zr.call(e,r)?++e[r]:(0,He.Z)(e,r,1)})),Gr=function(e,t){return e=(0,_.Z)(e),null==t?e:qt(e,t)};function Wr(e,t,r){return(t=ve(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t)).placeholder=Wr.placeholder,t}Wr.placeholder={};const Ur=Wr;function Vr(e,t,r){return(t=ve(e,16,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t)).placeholder=Vr.placeholder,t}Vr.placeholder={};const Hr=Vr,Yr=function(){return w.Z.Date.now()};var qr=Math.max,Xr=Math.min;const Qr=function(e,t,r){var n,a,o,i,s,l,u=0,c=!1,d=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var r=n,o=a;return n=a=void 0,u=t,i=e.apply(o,r)}function g(e){var r=e-l;return void 0===l||t<=r||r<0||d&&o<=e-u}function h(){var e,r=Yr();if(g(r))return v(r);s=setTimeout(h,(r=t-((e=r)-l),d?Xr(r,o-(e-u)):r))}function v(e){return s=void 0,m&&n?f(e):(n=a=void 0,i)}function b(){var e=Yr(),r=g(e);if(n=arguments,a=this,l=e,r){if(void 0===s)return u=r=l,s=setTimeout(h,t),c?f(r):i;if(d)return clearTimeout(s),s=setTimeout(h,t),f(l)}return void 0===s&&(s=setTimeout(h,t)),i}return t=y(t)||0,(0,p.Z)(r)&&(c=!!r.leading,o=(d="maxWait"in r)?qr(y(r.maxWait)||0,t):o,m="trailing"in r?!!r.trailing:m),b.cancel=function(){void 0!==s&&clearTimeout(s),n=l=a=s=void(u=0)},b.flush=function(){return void 0===s?i:v(Yr())},b},Jr=function(e,t){return null==e||e!=e?t:e};var Kr=r(9651),$r=Object.prototype,en=$r.hasOwnProperty;const tn=(0,ke.Z)((function(e,t){e=Object(e);var r=-1,n=t.length,a=2<n?t[2]:void 0;for(a&&(0,Zt.Z)(t[0],t[1],a)&&(n=1);++r<n;)for(var o=t[r],i=(0,Oe.Z)(o),s=-1,l=i.length;++s<l;){var u=i[s],c=e[u];(void 0===c||(0,Kr.Z)(c,$r[u])&&!en.call(e,u))&&(e[u]=o[u])}return e}));var rn=r(81);function nn(e,t,r,n,a,o){return(0,p.Z)(e)&&(0,p.Z)(t)&&(o.set(t,e),(0,rn.Z)(e,t,void 0,nn,o),o.delete(t)),e}const an=(0,Ee.Z)((function(e,t,r,n){(0,rn.Z)(e,t,r,n)})),on=(0,ke.Z)((function(e){return e.push(void 0,nn),(0,P.Z)(an,void 0,e)})),sn=function(e,t,r){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,r)}),t)},ln=(0,ke.Z)((function(e,t){return sn(e,1,t)})),un=(0,ke.Z)((function(e,t,r){return sn(e,y(t)||0,r)}));var cn=r(5668);function dn(e,t,r){for(var n=-1,a=null==e?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}var pn=r(9548);const mn=function(e,t,r,n){var a=-1,o=oe,i=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=(0,Ar.Z)(t,(0,mr.Z)(r))),n?(o=dn,i=!1):200<=t.length&&(o=pn.Z,i=!1,t=new cn.Z(t));e:for(;++a<s;){var c=e[a],d=null==r?c:r(c);c=n||0!==c?c:0;if(i&&d==d){for(var p=u;p--;)if(t[p]===d)continue e;l.push(c)}else o(t,d,n)||l.push(c)}return l};var fn=r(836);const gn=(0,ke.Z)((function(e,t){return(0,fn.Z)(e)?mn(e,(0,Pr.Z)(t,1,fn.Z,!0)):[]})),hn=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},yn=(0,ke.Z)((function(e,t){var r=hn(t);return(0,fn.Z)(r)&&(r=void 0),(0,fn.Z)(e)?mn(e,(0,Pr.Z)(t,1,fn.Z,!0),(0,Ir.Z)(r,2)):[]})),vn=(0,ke.Z)((function(e,t){var r=hn(t);return(0,fn.Z)(r)&&(r=void 0),(0,fn.Z)(e)?mn(e,(0,Pr.Z)(t,1,fn.Z,!0),void 0,r):[]})),bn=i((function(e,t){return e/t}),1),Cn=function(e,t,r){var n=null==e?0:e.length;return n?(t=r||void 0===t?1:b(t),Ke(e,t<0?0:t,n)):[]},xn=function(e,t,r){var n=null==e?0:e.length;return n?(t=n-(t=r||void 0===t?1:b(t)),Ke(e,0,t<0?0:t)):[]},En=function(e,t,r,n){for(var a=e.length,o=n?a:-1;(n?o--:++o<a)&&t(e[o],o,e););return r?Ke(e,n?0:o,n?o+1:a):Ke(e,n?o+1:0,n?a:o)},Sn=function(e,t){return e&&e.length?En(e,(0,Ir.Z)(t,3),!0,!0):[]},_n=function(e,t){return e&&e.length?En(e,(0,Ir.Z)(t,3),!0):[]},Tn=function(e){return"function"==typeof e?e:x.Z},wn=function(e,t){return((0,G.default)(e)?te:jr.Z)(e,Tn(t))};function Pn(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}const On=(0,r(8419).Z)(!0),An=function(e,t){return e&&On(e,t,Te.Z)},In=(0,r(4033).Z)(An,!0),Nn=function(e,t){return((0,G.default)(e)?Pn:In)(e,Tn(t))},Mn=function(e,t,r){e=(0,Je.Z)(e),t=(0,o.Z)(t);var n=e.length;n=r=void 0===r?n:Vt(b(r),0,n);return 0<=(r-=t.length)&&e.slice(r,n)==t};var Dn=r(4910);const Ln=function(e){return function(t){var r=(0,ar.Z)(t);return"[object Map]"==r?(0,Dn.Z)(t):"[object Set]"==r?function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}(t):function(e,t){return(0,Ar.Z)(t,(function(t){return[t,e[t]]}))}(t,e(t))}},Bn=Ln(Te.Z),Rn=Ln(Oe.Z);var jn=r(4169),kn=/[\\^$.*+?()[\]{}|]/g,Fn=RegExp(kn.source);const zn=function(e){return(e=(0,Je.Z)(e))&&Fn.test(e)?e.replace(kn,"\\$&"):e};function Zn(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Gn(e,t){var r=!0;return(0,jr.Z)(e,(function(e,n,a){return r=!!t(e,n,a)})),r}const Wn=function(e,t,r){var n=(0,G.default)(e)?Zn:Gn;return r&&(0,Zt.Z)(e,t,r)&&(t=void 0),n(e,(0,Ir.Z)(t,3))},Un=function(e){return e?Vt(b(e),0,4294967295):0},Vn=function(e,t,r,n){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&(0,Zt.Z)(e,t,r)&&(r=0,n=a),function(e,t,r,n){var a=e.length;for((r=b(r))<0&&(r=a<-r?0:a+r),(n=void 0===n||a<n?a:b(n))<0&&(n+=a),n=n<r?0:Un(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]};var Hn=r(6579);const Yn=function(e){return function(t,r,n){var a,o=Object(t);return(0,Se.Z)(t)||(a=(0,Ir.Z)(r,3),t=(0,Te.Z)(t),r=function(e){return a(o[e],e,o)}),-1<(n=e(t,r,n))?o[a?t[n]:n]:void 0}};var qn=Math.max;const Xn=function(e,t,r){var n=null==e?0:e.length;return n?((r=null==r?0:b(r))<0&&(r=qn(n+r,0)),re(e,(0,Ir.Z)(t,3),r)):-1},Qn=Yn(Xn),Jn=function(e,t,r){var n;return r(e,(function(e,r,a){if(t(e,r,a))return n=r,!1})),n};var Kn=r(2693);const $n=function(e,t){return Jn(e,(0,Ir.Z)(t,3),Kn.Z)};var ea=Math.max,ta=Math.min;const ra=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=n-1;return void 0!==r&&(a=b(r),a=r<0?ea(n+a,0):ta(a,n-1)),re(e,(0,Ir.Z)(t,3),a,!0)},na=Yn(ra),aa=function(e,t){return Jn(e,(0,Ir.Z)(t,3),An)},oa=function(e){return e&&e.length?e[0]:void 0},ia=function(e,t){var r=-1,n=(0,Se.Z)(e)?Array(e.length):[];return(0,jr.Z)(e,(function(e,a,o){n[++r]=t(e,a,o)})),n},sa=function(e,t){return((0,G.default)(e)?Ar.Z:ia)(e,(0,Ir.Z)(t,3))},la=function(e,t){return(0,Pr.Z)(sa(e,t),1)},ua=function(e,t){return(0,Pr.Z)(sa(e,t),1/0)},ca=function(e,t,r){return r=void 0===r?1:b(r),(0,Pr.Z)(sa(e,t),r)},da=function(e){return null!=e&&e.length?(0,Pr.Z)(e,1/0):[]},pa=function(e,t){return null!=e&&e.length?(t=void 0===t?1:b(t),(0,Pr.Z)(e,t)):[]},ma=function(e){return ve(e,512)},fa=kt("floor"),ga=function(e){return Re((function(t){var r=t.length,n=r,a=Z.prototype.thru;for(e&&t.reverse();n--;){if("function"!=typeof(o=t[n]))throw new TypeError("Expected a function");a&&!l&&"wrapper"==F(o)&&(l=new Z([],!0))}for(n=l?n:r;++n<r;)var o=t[n],i=F(o),s="wrapper"==i?R(o):void 0,l=s&&X(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?l[F(s[0])].apply(l,s[3]):1==o.length&&X(o)?l[i]():l.thru(o);return function(){var e=arguments,n=e[0];if(l&&1==e.length&&(0,G.default)(n))return l.plant(n).value();for(var a=0,o=r?t[a].apply(this,e):n;++a<r;)o=t[a].call(this,o);return o}}))},ha=ga(),ya=ga(!0);var va=r(3242);const ba=function(e,t){return null==e?e:(0,va.Z)(e,Tn(t),Oe.Z)},Ca=function(e,t){return null==e?e:On(e,Tn(t),Oe.Z)},xa=function(e,t){return e&&(0,Kn.Z)(e,Tn(t))},Ea=function(e,t){return e&&An(e,Tn(t))},Sa=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var a=e[t];n[a[0]]=a[1]}return n};var _a=r(8774),Ta=r(3234);const wa=function(e,t){return(0,_a.Z)(t,(function(t){return(0,Ta.Z)(e[t])}))},Pa=function(e){return null==e?[]:wa(e,(0,Te.Z)(e))},Oa=function(e){return null==e?[]:wa(e,(0,Oe.Z)(e))};var Aa=Object.prototype.hasOwnProperty;const Ia=Fr((function(e,t,r){Aa.call(e,r)?e[r].push(t):(0,He.Z)(e,r,[t])}));function Na(e,t){return t<e}const Ma=function(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=y(t),r=y(r)),e(t,r)}},Da=Ma(Na),La=Ma((function(e,t){return t<=e}));var Ba=Object.prototype.hasOwnProperty;function Ra(e,t){return null!=e&&Ba.call(e,t)}var ja=r(6174);const ka=function(e,t){return null!=e&&(0,ja.Z)(e,t,Ra)};var Fa=r(1910),za=Math.max,Za=Math.min;const Ga=function(e,t,r){return t=v(t),void 0===r?(r=t,t=0):r=v(r),function(e,t,r){return e>=Za(t,r)&&e<za(t,r)}(e=y(e),t,r)},Wa=function(e){return"string"==typeof e||!(0,G.default)(e)&&(0,W.Z)(e)&&"[object String]"==(0,Fe.Z)(e)},Ua=function(e,t){return(0,Ar.Z)(t,(function(t){return e[t]}))},Va=function(e){return null==e?[]:Ua(e,(0,Te.Z)(e))};var Ha=Math.max;const Ya=function(e,t,r,n){return e=(0,Se.Z)(e)?e:Va(e),r=r&&!n?b(r):0,n=e.length,r<0&&(r=Ha(n+r,0)),Wa(e)?r<=n&&-1<e.indexOf(t,r):!!n&&-1<ae(e,t,r)};var qa=Math.max;const Xa=function(e,t,r){var n=null==e?0:e.length;return n?((r=null==r?0:b(r))<0&&(r=qa(n+r,0)),ae(e,t,r)):-1},Qa=function(e){return null!=e&&e.length?Ke(e,0,-1):[]};var Ja=Math.min;const Ka=function(e,t,r){for(var n=r?dn:oe,a=e[0].length,o=e.length,i=o,s=Array(o),l=1/0,u=[];i--;){var c=e[i];i&&t&&(c=(0,Ar.Z)(c,(0,mr.Z)(t))),l=Ja(c.length,l),s[i]=!r&&(t||120<=a&&120<=c.length)?new cn.Z(i&&c):void 0}c=e[0];var d=-1,p=s[0];e:for(;++d<a&&u.length<l;){var m=c[d],f=t?t(m):m;m=r||0!==m?m:0;if(!(p?(0,pn.Z)(p,f):n(u,f,r))){for(i=o;--i;){var g=s[i];if(!(g?(0,pn.Z)(g,f):n(e[i],f,r)))continue e}p&&p.push(f),u.push(m)}}return u};function $a(e){return(0,fn.Z)(e)?e:[]}const eo=(0,ke.Z)((function(e){var t=(0,Ar.Z)(e,$a);return t.length&&t[0]===e[0]?Ka(t):[]})),to=(0,ke.Z)((function(e){var t=hn(e),r=(0,Ar.Z)(e,$a);return t===hn(r)?t=void 0:r.pop(),r.length&&r[0]===e[0]?Ka(r,(0,Ir.Z)(t,2)):[]})),ro=(0,ke.Z)((function(e){var t=hn(e),r=(0,Ar.Z)(e,$a);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?Ka(r,void 0,t):[]})),no=function(e,t){return function(r,n){return function(e,t,r,n){return(0,Kn.Z)(e,(function(e,a,o){t(n,r(e),a,o)})),n}(r,e,t(n),{})}};var ao=Object.prototype.toString;const oo=no((function(e,t,r){e[t=null!=t&&"function"!=typeof t.toString?ao.call(t):t]=r}),(0,Br.Z)(x.Z));var io=(wt=Object.prototype).hasOwnProperty,so=wt.toString;const lo=no((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=so.call(t)),io.call(e,t)?e[t].push(r):e[t]=[r]}),Ir.Z);var uo=r(7449),co=r(3317);const po=function(e,t){return t.length<2?e:(0,co.Z)(e,Ke(t,0,-1))},mo=function(e,t,r){return t=(0,uo.Z)(t,e),null==(t=null==(e=po(e,t))?e:e[(0,Ye.Z)(hn(t))])?void 0:(0,P.Z)(t,e,r)},fo=(0,ke.Z)(mo),go=(0,ke.Z)((function(e,t,r){var n=-1,a="function"==typeof t,o=(0,Se.Z)(e)?Array(e.length):[];return(0,jr.Z)(e,(function(e){o[++n]=a?(0,P.Z)(t,e,r):mo(e,t,r)})),o}));var ho=r(4732);const yo=(st=Tt.Z&&Tt.Z.isArrayBuffer)?(0,mr.Z)(st):function(e){return(0,W.Z)(e)&&"[object ArrayBuffer]"==(0,Fe.Z)(e)},vo=function(e){return!0===e||!1===e||(0,W.Z)(e)&&"[object Boolean]"==(0,Fe.Z)(e)};const bo=(Pt=Tt.Z&&Tt.Z.isDate)?(0,mr.Z)(Pt):function(e){return(0,W.Z)(e)&&"[object Date]"==(0,Fe.Z)(e)},Co=function(e){return(0,W.Z)(e)&&1===e.nodeType&&!(0,ze.Z)(e)};var xo=r(8448),Eo=r(7212),So=Object.prototype.hasOwnProperty;const _o=function(e){if(null==e)return!0;if((0,Se.Z)(e)&&((0,G.default)(e)||"string"==typeof e||"function"==typeof e.splice||(0,pr.Z)(e)||(0,Eo.Z)(e)||(0,ho.Z)(e)))return!e.length;var t,r=(0,ar.Z)(e);if("[object Map]"==r||"[object Set]"==r)return!e.size;if((0,_e.Z)(e))return!(0,xo.Z)(e).length;for(t in e)if(So.call(e,t))return!1;return!0};var To=r(1443);const wo=function(e,t){return(0,To.Z)(e,t)},Po=function(e,t,r){var n=(r="function"==typeof r?r:void 0)?r(e,t):void 0;return void 0===n?(0,To.Z)(e,t,void 0,r):!!n};var Oo=w.Z.isFinite;const Ao=function(e){return"number"==typeof e&&Oo(e)},Io=function(e){return"number"==typeof e&&e==b(e)};var No=r(1656),Mo=r(8175),Do=r(6272);const Lo=function(e,t){return e===t||(0,Mo.Z)(e,t,(0,Do.Z)(t))},Bo=function(e,t,r){return r="function"==typeof r?r:void 0,(0,Mo.Z)(e,t,(0,Do.Z)(t),r)},Ro=function(e){return"number"==typeof e||(0,W.Z)(e)&&"[object Number]"==(0,Fe.Z)(e)},jo=function(e){return Ro(e)&&e!=+e};var ko=r(4808),Fo=(ot=r(1819),r(7979));const zo=(ot.Z?Ta:Fo).Z,Zo=function(e){if(zo(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return(0,ko.Z)(e)},Go=function(e){return null==e},Wo=function(e){return null===e};const Uo=(is=Tt.Z&&Tt.Z.isRegExp)?(0,mr.Z)(is):function(e){return(0,W.Z)(e)&&"[object RegExp]"==(0,Fe.Z)(e)};var Vo=9007199254740991;const Ho=function(e){return Io(e)&&-Vo<=e&&e<=Vo},Yo=function(e){return void 0===e},qo=function(e){return(0,W.Z)(e)&&"[object WeakMap]"==(0,ar.Z)(e)},Xo=function(e){return(0,W.Z)(e)&&"[object WeakSet]"==(0,Fe.Z)(e)},Qo=function(e){return(0,Ir.Z)("function"==typeof e?e:Cr(e,1))};var Jo=Array.prototype.join;const Ko=function(e,t){return null==e?"":Jo.call(e,t)},$o=Dt((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),ei=Fr((function(e,t,r){(0,He.Z)(e,r,t)}));var ti=Math.max,ri=Math.min;const ni=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=n;return void 0!==r&&(a=(a=b(r))<0?ti(n+a,0):ri(a,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,a):re(e,ne,a,!0)},ai=Dt((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),oi=dt("toLowerCase");function ii(e,t){return e<t}const si=Ma(ii),li=Ma((function(e,t){return e<=t})),ui=function(e,t){var r={};return t=(0,Ir.Z)(t,3),(0,Kn.Z)(e,(function(e,n,a){(0,He.Z)(r,t(e,n,a),e)})),r},ci=function(e,t){var r={};return t=(0,Ir.Z)(t,3),(0,Kn.Z)(e,(function(e,n,a){(0,He.Z)(r,n,t(e,n,a))})),r};var di=r(5490);const pi=function(e){return(0,di.Z)(Cr(e,1))};var mi=r(9749);const fi=function(e,t){return(0,mi.Z)(e,Cr(t,1))},gi=function(e,t,r){for(var a=-1,o=e.length;++a<o;){var i,s,l=e[a],u=t(l);null!=u&&(void 0===i?u==u&&!(0,n.Z)(u):r(u,i))&&(i=u,s=l)}return s},hi=function(e){return e&&e.length?gi(e,x.Z,Na):void 0},yi=function(e,t){return e&&e.length?gi(e,(0,Ir.Z)(t,2),Na):void 0},vi=function(e,t){for(var r,n=-1,a=e.length;++n<a;){var o=t(e[n]);void 0!==o&&(r=void 0===r?o:r+o)}return r},bi=function(e,t){var r=null==e?0:e.length;return r?vi(e,t)/r:NaN},Ci=function(e){return bi(e,x.Z)},xi=function(e,t){return bi(e,(0,Ir.Z)(t,2))};var Ei=r(2454),Si=r(8568);const _i=(0,ke.Z)((function(e,t){return function(r){return mo(r,e,t)}})),Ti=(0,ke.Z)((function(e,t){return function(r){return mo(e,r,t)}})),wi=function(e){return e&&e.length?gi(e,x.Z,ii):void 0},Pi=function(e,t){return e&&e.length?gi(e,(0,Ir.Z)(t,2),ii):void 0},Oi=function(e,t,r){var n=(0,Te.Z)(t),a=(n=wa(t,n),!((0,p.Z)(r)&&"chain"in r&&!r.chain)),o=(0,Ta.Z)(e);return te(n,(function(r){var n=t[r];e[r]=n,o&&(e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__);return(r.__actions__=(0,U.Z)(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,(0,Jt.Z)([this.value()],arguments))})})),e},Ai=i((function(e,t){return e*t}),1),Ii=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}};var Ni=r(6545),Mi=Ot.Z?Ot.Z.iterator:void 0;const Di=function(e){if(!e)return[];if((0,Se.Z)(e))return(Wa(e)?ct:U.Z)(e);if(Mi&&e[Mi])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Mi]());var t=(0,ar.Z)(e);return("[object Map]"==t?Dn.Z:"[object Set]"==t?Ni.Z:Va)(e)},Li=function(){void 0===this.__values__&&(this.__values__=Di(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Bi=function(e,t){var r=e.length;if(r)return(0,ce.Z)(t+=t<0?r:0,r)?e[t]:void 0},Ri=function(e,t){return e&&e.length?Bi(e,b(t)):void 0},ji=function(e){return e=b(e),(0,ke.Z)((function(t){return Bi(t,e)}))},ki=function(e,t){return t=(0,uo.Z)(t,e),null==(e=po(e,t))||delete e[(0,Ye.Z)(hn(t))]};function Fi(e){return(0,ze.Z)(e)?void 0:e}const zi=Re((function(e,t){var r={};if(null==e)return r;var n=!1;t=(0,Ar.Z)(t,(function(t){return t=(0,uo.Z)(t,e),n=n||1<t.length,t})),(0,xe.Z)(e,nr(e),r),n&&(r=Cr(r,7,Fi));for(var a=t.length;a--;)ki(r,t[a]);return r})),Zi=function(e,t,r,n){if(!(0,p.Z)(e))return e;for(var a=-1,o=(t=(0,uo.Z)(t,e)).length,i=o-1,s=e;null!=s&&++a<o;){var l,u=(0,Ye.Z)(t[a]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;a!=i&&(l=s[u],void 0===(c=n?n(l,u,s):void 0)&&(c=(0,p.Z)(l)?l:(0,ce.Z)(t[a+1])?[]:{})),(0,Ce.Z)(s,u,c),s=s[u]}return e},Gi=function(e,t,r){for(var n=-1,a=t.length,o={};++n<a;){var i=t[n],s=(0,co.Z)(e,i);r(s,i)&&Zi(o,(0,uo.Z)(i,e),s)}return o},Wi=function(e,t){if(null==e)return{};var r=(0,Ar.Z)(nr(e),(function(e){return[e]}));return t=(0,Ir.Z)(t),Gi(e,r,(function(e,r){return t(e,r[0])}))},Ui=function(e,t){return Wi(e,Ii((0,Ir.Z)(t)))},Vi=function(e){return We(2,e)},Hi=function(e,t){if(e!==t){var r=void 0!==e,a=null===e,o=e==e,i=(0,n.Z)(e),s=void 0!==t,l=null===t,u=t==t,c=(0,n.Z)(t);if(!l&&!c&&!i&&t<e||i&&s&&u&&!l&&!c||a&&s&&u||!r&&u||!o)return 1;if(!a&&!i&&!c&&e<t||c&&r&&o&&!a&&!i||l&&r&&o||!s&&o||!u)return-1}return 0},Yi=function(e,t,r){t=t.length?(0,Ar.Z)(t,(function(e){return(0,G.default)(e)?function(t){return(0,co.Z)(t,1===e.length?e[0]:e)}:e})):[x.Z];var n=-1;return t=(0,Ar.Z)(t,(0,mr.Z)(Ir.Z)),e=ia(e,(function(e,r,a){return{criteria:(0,Ar.Z)(t,(function(t){return t(e)})),index:++n,value:e}})),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(e,(function(e,t){return function(e,t,r){for(var n=-1,a=e.criteria,o=t.criteria,i=a.length,s=r.length;++n<i;){var l=Hi(a[n],o[n]);if(l)return s<=n?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))},qi=function(e,t,r,n){return null==e?[]:((0,G.default)(t)||(t=null==t?[]:[t]),(0,G.default)(r=n?void 0:r)||(r=null==r?[]:[r]),Yi(e,t,r))},Xi=function(e){return Re((function(t){return t=(0,Ar.Z)(t,(0,mr.Z)(Ir.Z)),(0,ke.Z)((function(r){var n=this;return e(t,(function(e){return(0,P.Z)(e,n,r)}))}))}))},Qi=Xi(Ar.Z),Ji=ke.Z;var Ki=Math.min;const $i=Ji((function(e,t){var r=(t=1==t.length&&(0,G.default)(t[0])?(0,Ar.Z)(t[0],(0,mr.Z)(Ir.Z)):(0,Ar.Z)((0,Pr.Z)(t,1),(0,mr.Z)(Ir.Z))).length;return(0,ke.Z)((function(n){for(var a=-1,o=Ki(n.length,r);++a<o;)n[a]=t[a].call(this,n[a]);return(0,P.Z)(e,this,n)}))})),es=Xi(Zn),ts=Xi((_t=r(2338)).Z);var rs=Math.floor;const ns=function(e,t){var r="";if(!e||t<1||9007199254740991<t)return r;for(;t%2&&(r+=e),(t=rs(t/2))&&(e+=e),t;);return r};var as=r(4193);const os=(0,as.Z)("length");Ee="["+(it="\\ud800-\\udfff")+"]",wt="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",st="\\ud83c[\\udffb-\\udfff]",it=(_t="[\\ufe0e\\ufe0f]?")+(is="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?")+"(?:\\u200d(?:"+[Pt="[^"+it+"]",ot="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]"].join("|")+")"+_t+is+")*",_t="(?:"+[Pt+"[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?",wt,ot,Tt,Ee].join("|")+")";var is,ss=RegExp(st+"(?="+st+")|"+_t+it,"g");const ls=function(e){for(var t=ss.lastIndex=0;ss.test(e);)++t;return t},us=function(e){return(tt(e)?ls:os)(e)};var cs=Math.ceil;const ds=function(e,t){var r=(t=void 0===t?" ":(0,o.Z)(t)).length;return r<2?r?ns(t,e):t:(r=ns(t,cs(e/us(t))),tt(t)?$e(ct(r),0,e).join(""):r.slice(0,e))};var ps=Math.ceil,ms=Math.floor;const fs=function(e,t,r){e=(0,Je.Z)(e);var n=(t=b(t))?us(e):0;return!t||t<=n?e:ds(ms(n=(t-n)/2),r)+e+ds(ps(n),r)},gs=function(e,t,r){e=(0,Je.Z)(e);var n=(t=b(t))?us(e):0;return t&&n<t?e+ds(t-n,r):e},hs=function(e,t,r){e=(0,Je.Z)(e);var n=(t=b(t))?us(e):0;return t&&n<t?ds(t-n,r)+e:e};var ys=/^\s+/,vs=w.Z.parseInt;const bs=function(e,t,r){return t=r||null==t?0:t&&+t,vs((0,Je.Z)(e).replace(ys,""),t||0)};var Cs=(0,ke.Z)((function(e,t){var r=me(t,ue(Cs));return ve(e,32,void 0,t,r)}));Cs.placeholder={};const xs=Cs;var Es=(0,ke.Z)((function(e,t){var r=me(t,ue(Es));return ve(e,64,void 0,t,r)}));Es.placeholder={};const Ss=Es,_s=Fr((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),Ts=Re((function(e,t){return null==e?{}:function(e,t){return Gi(e,t,(function(t,r){return(0,Fa.Z)(e,r)}))}(e,t)})),ws=function(e){for(var t,r=this;r instanceof M;){var n=V(r);n.__index__=0,n.__values__=void 0,t?a.__wrapped__=n:t=n;var a=n;r=r.__wrapped__}return a.__wrapped__=e,t};var Ps=r(770);const Os=function(e){return function(t){return null==e?void 0:(0,co.Z)(e,t)}};function As(e,t,r,n){for(var a=r-1,o=e.length;++a<o;)if(n(e[a],t))return a;return-1}var Is=Array.prototype.splice;const Ns=function(e,t,r,n){var a=n?As:ae,o=-1,i=t.length,s=e;for(e===t&&(t=(0,U.Z)(t)),r&&(s=(0,Ar.Z)(e,(0,mr.Z)(r)));++o<i;)for(var l=0,u=t[o],c=r?r(u):u;-1<(l=a(s,c,l,n));)s!==e&&Is.call(s,l,1),Is.call(e,l,1);return e},Ms=function(e,t){return e&&e.length&&t&&t.length?Ns(e,t):e},Ds=(0,ke.Z)(Ms),Ls=function(e,t,r){return e&&e.length&&t&&t.length?Ns(e,t,(0,Ir.Z)(r,2)):e},Bs=function(e,t,r){return e&&e.length&&t&&t.length?Ns(e,t,void 0,r):e};var Rs=Array.prototype.splice;const js=function(e,t){for(var r=e?t.length:0,n=r-1;r--;){var a,o=t[r];r!=n&&o===a||((0,ce.Z)(a=o)?Rs.call(e,o,1):ki(e,o))}return e},ks=Re((function(e,t){var r=null==e?0:e.length,n=De(e,t);return js(e,(0,Ar.Z)(t,(function(e){return(0,ce.Z)(e,r)?+e:e})).sort(Hi)),n}));var Fs=Math.floor,zs=Math.random;const Zs=function(e,t){return e+Fs(zs()*(t-e+1))};var Gs=parseFloat,Ws=Math.min,Us=Math.random;const Vs=function(e,t,r){var n;return r&&"boolean"!=typeof r&&(0,Zt.Z)(e,t,r)&&(t=r=void 0),void 0===r&&("boolean"==typeof t?(r=t,t=void 0):"boolean"==typeof e&&(r=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=v(e),void 0===t?(t=e,e=0):t=v(t)),t<e&&(n=e,e=t,t=n),r||e%1||t%1?(r=Us(),Ws(e+r*(t-e+Gs("1e-"+((r+"").length-1))),t)):Zs(e,t)};var Hs=Math.ceil,Ys=Math.max;const qs=function(e){return function(t,r,n){return n&&"number"!=typeof n&&(0,Zt.Z)(t,r,n)&&(r=n=void 0),t=v(t),void 0===r?(r=t,t=0):r=v(r),function(e,t,r,n){for(var a=-1,o=Ys(Hs((t-e)/(r||1)),0),i=Array(o);o--;)i[n?o:++a]=e,e+=r;return i}(t,r,n=void 0===n?t<r?1:-1:v(n),e)}},Xs=qs(),Qs=qs(!0),Js=Re((function(e,t){return ve(e,256,void 0,void 0,void 0,t)}));var Ks=r(4296);function $s(e,t,r,n){var a=null==e?0:e.length;for(n&&a&&(r=e[--a]);a--;)r=t(r,e[a],a,e);return r}var el=r(7200);const tl=function(e,t,r){var n=(0,G.default)(e)?$s:el.Z,a=arguments.length<3;return n(e,(0,Ir.Z)(t,4),r,a,In)};var rl=r(4749);const nl=function(e,t){return(0,((0,G.default)(e)?_a:rl).Z)(e,Ii((0,Ir.Z)(t,3)))},al=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,a=[],o=e.length;for(t=(0,Ir.Z)(t,3);++n<o;){var i=e[n];t(i,n,e)&&(r.push(i),a.push(n))}return js(e,a),r},ol=function(e,t,r){return t=(r?(0,Zt.Z)(e,t,r):void 0===t)?1:b(t),ns((0,Je.Z)(e),t)},il=function(){var e=arguments,t=(0,Je.Z)(e[0]);return e.length<3?t:t.replace(e[1],e[2])},sl=function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=void 0===t?t:b(t),(0,ke.Z)(e,t)},ll=function(e,t,r){var n=-1,a=(t=(0,uo.Z)(t,e)).length;for(a||(a=1,e=void 0);++n<a;){var o=null==e?void 0:e[(0,Ye.Z)(t[n])];void 0===o&&(n=a,o=r),e=(0,Ta.Z)(o)?o.call(e):o}return e};var ul=Array.prototype.reverse;const cl=function(e){return null==e?e:ul.call(e)},dl=kt("round"),pl=function(e){var t=e.length;return t?e[Zs(0,t-1)]:void 0};function ml(e){return pl(Va(e))}const fl=function(e){return((0,G.default)(e)?pl:ml)(e)},gl=function(e,t){var r=-1,n=e.length,a=n-1;for(t=void 0===t?n:t;++r<t;){var o=Zs(r,a),i=e[o];e[o]=e[r],e[r]=i}return e.length=t,e};function hl(e,t){return gl((0,U.Z)(e),Vt(t,0,e.length))}function yl(e,t){return e=Va(e),gl(e,Vt(t,0,e.length))}const vl=function(e,t,r){return t=(r?(0,Zt.Z)(e,t,r):void 0===t)?1:b(t),((0,G.default)(e)?hl:yl)(e,t)},bl=function(e,t,r){return null==e?e:Zi(e,t,r)},Cl=function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:Zi(e,t,r,n)};function xl(e){return gl((0,U.Z)(e))}function El(e){return gl(Va(e))}const Sl=function(e){return((0,G.default)(e)?xl:El)(e)},_l=function(e){if(null==e)return 0;if((0,Se.Z)(e))return Wa(e)?us(e):e.length;var t=(0,ar.Z)(e);return"[object Map]"==t||"[object Set]"==t?e.size:(0,xo.Z)(e).length},Tl=function(e,t,r){var n=null==e?0:e.length;return n?(r=r&&"number"!=typeof r&&(0,Zt.Z)(e,t,r)?(t=0,n):(t=null==t?0:b(t),void 0===r?n:b(r)),Ke(e,t,r)):[]},wl=Dt((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Pl=r(8089);const Ol=(0,ke.Z)((function(e,t){if(null==e)return[];var r=t.length;return 1<r&&(0,Zt.Z)(e,t[0],t[1])?t=[]:2<r&&(0,Zt.Z)(t[0],t[1],t[2])&&(t=[t[0]]),Yi(e,(0,Pr.Z)(t,1),[])}));var Al=Math.floor,Il=Math.min;const Nl=function(e,t,r,a){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var s=(t=r(t))!=t,l=null===t,u=(0,n.Z)(t),c=void 0===t;o<i;){var d,p=Al((o+i)/2),m=void 0!==(d=r(e[p])),f=null===d,g=d==d,h=(0,n.Z)(d);(d=s?a||g:c?g&&(a||m):l?g&&m&&(a||!f):u?g&&m&&!f&&(a||!h):!f&&!h&&(a?d<=t:d<t))?o=p+1:i=p}return Il(i,4294967294)},Ml=function(e,t,r){var a=0,o=null==e?a:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;a<o;){var i=a+o>>>1,s=e[i];null!==s&&!(0,n.Z)(s)&&(r?s<=t:s<t)?a=1+i:o=i}return o}return Nl(e,t,x.Z,r)},Dl=function(e,t){return Ml(e,t)},Ll=function(e,t,r){return Nl(e,t,(0,Ir.Z)(r,2))},Bl=function(e,t){var r=null==e?0:e.length;if(r){var n=Ml(e,t);if(n<r&&(0,Kr.Z)(e[n],t))return n}return-1},Rl=function(e,t){return Ml(e,t,!0)},jl=function(e,t,r){return Nl(e,t,(0,Ir.Z)(r,2),!0)},kl=function(e,t){if(null!=e&&e.length){var r=Ml(e,t,!0)-1;if((0,Kr.Z)(e[r],t))return r}return-1},Fl=function(e,t){for(var r=-1,n=e.length,a=0,o=[];++r<n;){var i,s=e[r],l=t?t(s):s;r&&(0,Kr.Z)(l,i)||(i=l,o[a++]=0===s?0:s)}return o},zl=function(e){return e&&e.length?Fl(e):[]},Zl=function(e,t){return e&&e.length?Fl(e,(0,Ir.Z)(t,2)):[]},Gl=function(e,t,r){return r&&"number"!=typeof r&&(0,Zt.Z)(e,t,r)&&(t=r=void 0),(r=void 0===r?4294967295:r>>>0)?(e=(0,Je.Z)(e))&&("string"==typeof t||null!=t&&!Uo(t))&&!(t=(0,o.Z)(t))&&tt(e)?$e(ct(e),0,r):e.split(t,r):[]};var Wl=Math.max;const Ul=function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:Wl(b(t),0),(0,ke.Z)((function(r){var n=r[t];r=$e(r,0,t);return n&&(0,Jt.Z)(r,n),(0,P.Z)(e,this,r)}))},Vl=Dt((function(e,t,r){return e+(r?" ":"")+pt(t)})),Hl=function(e,t,r){return e=(0,Je.Z)(e),r=null==r?0:Vt(b(r),0,e.length),t=(0,o.Z)(t),e.slice(r,r+t.length)==t},Yl=function(){return{}},ql=function(){return""},Xl=function(){return!0},Ql=i((function(e,t){return e-t}),0),Jl=function(e){return e&&e.length?vi(e,x.Z):0},Kl=function(e,t){return e&&e.length?vi(e,(0,Ir.Z)(t,2)):0},$l=function(e){var t=null==e?0:e.length;return t?Ke(e,1,t):[]},eu=function(e,t,r){return e&&e.length?(t=r||void 0===t?1:b(t),Ke(e,0,t<0?0:t)):[]},tu=function(e,t,r){var n=null==e?0:e.length;return n?(t=n-(t=r||void 0===t?1:b(t)),Ke(e,t<0?0:t,n)):[]},ru=function(e,t){return e&&e.length?En(e,(0,Ir.Z)(t,3),!1,!0):[]},nu=function(e,t){return e&&e.length?En(e,(0,Ir.Z)(t,3)):[]},au=function(e,t){return t(e),e};var ou=Object.prototype,iu=ou.hasOwnProperty;function su(e,t,r,n){return void 0===e||(0,Kr.Z)(e,ou[r])&&!iu.call(n,r)?t:e}var lu={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function uu(e){return"\\"+lu[e]}const cu=/<%=([\s\S]+?)%>/g,du={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:cu,variable:"",imports:{_:{escape:jn.default}}};var pu=/\b__p \+= '';/g,mu=/\b(__p \+=) '' \+/g,fu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gu=/[()=,{}\[\]\/\s]/,hu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yu=/($^)/,vu=/['\n\r\u2028\u2029\\]/g,bu=Object.prototype.hasOwnProperty;const Cu=function(e,t,r){var n=du.imports._.templateSettings||du;r&&(0,Zt.Z)(e,t,r)&&(t=void 0),e=(0,Je.Z)(e),t=Ie({},t,n,su);n=Ie({},t.imports,n.imports,su);var a,o,i=(0,Te.Z)(n),s=Ua(n,i),l=0,u=(n=t.interpolate||yu,"__p += '"),c=(n=RegExp((t.escape||yu).source+"|"+n.source+"|"+(n===cu?hu:yu).source+"|"+(t.evaluate||yu).source+"|$","g"),bu.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"");if(e.replace(n,(function(t,r,n,i,s,c){return n=n||i,u+=e.slice(l,c).replace(vu,uu),r&&(a=!0,u+="' +\n__e("+r+") +\n'"),s&&(o=!0,u+="';\n"+s+";\n__p += '"),n&&(u+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),u+="';\n",t=bu.call(t,"variable")&&t.variable){if(gu.test(t))throw new Error("Invalid `variable` option passed into `_.template`")}else u="with (obj) {\n"+u+"\n}\n";if(u=(o?u.replace(pu,""):u).replace(mu,"$1").replace(fu,"$1;"),u="function("+(t||"obj")+") {\n"+(t?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}",(t=Ge((function(){return Function(i,c+"return "+u).apply(void 0,s)}))).source=u,Ze(t))throw t;return t},xu=function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return(0,p.Z)(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Qr(e,t,{leading:n,maxWait:t,trailing:a})},Eu=function(e,t){return t(e)};var Su=r(2889),_u=4294967295,Tu=Math.min;const wu=function(e,t){if((e=b(e))<1||9007199254740991<e)return[];var r=_u,n=Tu(e,_u);for(t=Tn(t),e-=_u,n=(0,Su.Z)(n,t);++r<e;)t(r);return n},Pu=function(){return this},Ou=function(e,t){return e instanceof L&&(e=e.value()),(0,ft.Z)(t,(function(e,t){return t.func.apply(t.thisArg,(0,Jt.Z)([e],t.args))}),e)},Au=function(){return Ou(this.__wrapped__,this.__actions__)},Iu=function(e){return(0,Je.Z)(e).toLowerCase()};var Nu=r(474);const Mu=function(e){return(0,G.default)(e)?(0,Ar.Z)(e,Ye.Z):(0,n.Z)(e)?[e]:(0,U.Z)((0,Nu.Z)((0,Je.Z)(e)))};var Du=r(2518),Lu=9007199254740991;const Bu=function(e){return e?Vt(b(e),-Lu,Lu):0===e?e:0},Ru=function(e){return(0,Je.Z)(e).toUpperCase()},ju=function(e,t,r){var n,a=(0,G.default)(e),o=a||(0,pr.Z)(e)||(0,Eo.Z)(e);return t=(0,Ir.Z)(t,4),null==r&&(n=e&&e.constructor,r=o?a?new n:[]:(0,p.Z)(e)&&(0,Ta.Z)(n)?(0,_.Z)((0,Kt.Z)(e)):{}),(o?te:Kn.Z)(e,(function(e,n,a){return t(r,e,n,a)})),r},ku=function(e,t){for(var r=e.length;r--&&-1<ae(t,e[r],0););return r},Fu=function(e,t){for(var r=-1,n=e.length;++r<n&&-1<ae(t,e[r],0););return r},zu=function(e,t,r){return(e=(0,Je.Z)(e))&&(r||void 0===t)?d(e):e&&(t=(0,o.Z)(t))?(r=ct(e),e=ct(t),t=Fu(r,e),e=ku(r,e)+1,$e(r,t,e).join("")):e},Zu=function(e,t,r){return(e=(0,Je.Z)(e))&&(r||void 0===t)?e.slice(0,u(e)+1):e&&(t=(0,o.Z)(t))?(e=ct(e),t=ku(e,ct(t))+1,$e(e,0,t).join("")):e};var Gu=/^\s+/;const Wu=function(e,t,r){return(e=(0,Je.Z)(e))&&(r||void 0===t)?e.replace(Gu,""):e&&(t=(0,o.Z)(t))?(e=ct(e),t=Fu(e,ct(t)),$e(e,t).join("")):e};var Uu=/\w*$/;const Vu=function(e,t){var r,n=30,a="...";(0,p.Z)(t)&&(r="separator"in t?t.separator:r,n="length"in t?b(t.length):n,a="omission"in t?(0,o.Z)(t.omission):a);var i;t=(e=(0,Je.Z)(e)).length;if((t=tt(e)?(i=ct(e)).length:t)<=n)return e;if((t=n-us(a))<1)return a;if(n=i?$e(i,0,t).join(""):e.slice(0,t),void 0===r)return n+a;if(i&&(t+=n.length-t),Uo(r)){if(e.slice(t).search(r)){var s,l=n;for((r=r.global?r:RegExp(r.source,(0,Je.Z)(Uu.exec(r))+"g")).lastIndex=0;s=r.exec(l);)var u=s.index;n=n.slice(0,void 0===u?t:u)}}else e.indexOf((0,o.Z)(r),t)==t||-1<(t=n.lastIndexOf(r))&&(n=n.slice(0,t));return n+a},Hu=function(e){return be(e,1)},Yu=(0,gt.Z)({"&":"&","<":"<",">":">",""":'"',"'":"'"});var qu=/&(?:amp|lt|gt|quot|#39);/g,Xu=RegExp(qu.source);const Qu=function(e){return(e=(0,Je.Z)(e))&&Xu.test(e)?e.replace(qu,Yu):e};var Ju=r(3203);const Ku=Ju.Z&&1/(0,Ni.Z)(new Ju.Z([,-0]))[1]==1/0?function(e){return new Ju.Z(e)}:B.default,$u=function(e,t,r){var n=-1,a=oe,o=e.length,i=!0,s=[],l=s;if(r)i=!1,a=dn;else if(200<=o){var u=t?null:Ku(e);if(u)return(0,Ni.Z)(u);i=!1,a=pn.Z,l=new cn.Z}else l=t?[]:s;e:for(;++n<o;){var c=e[n],d=t?t(c):c;c=r||0!==c?c:0;if(i&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else a(l,d,r)||(l!==s&&l.push(d),s.push(c))}return s},ec=(0,ke.Z)((function(e){return $u((0,Pr.Z)(e,1,fn.Z,!0))})),tc=(0,ke.Z)((function(e){var t=hn(e);return(0,fn.Z)(t)&&(t=void 0),$u((0,Pr.Z)(e,1,fn.Z,!0),(0,Ir.Z)(t,2))})),rc=(0,ke.Z)((function(e){var t="function"==typeof(t=hn(e))?t:void 0;return $u((0,Pr.Z)(e,1,fn.Z,!0),void 0,t)})),nc=function(e){return e&&e.length?$u(e):[]},ac=function(e,t){return e&&e.length?$u(e,(0,Ir.Z)(t,2)):[]},oc=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?$u(e,void 0,t):[]};var ic=0;const sc=function(e){var t=++ic;return(0,Je.Z)(e)+t},lc=function(e,t){return null==e||ki(e,t)};var uc=Math.max;const cc=function(e){if(!e||!e.length)return[];var t=0;return e=(0,_a.Z)(e,(function(e){if((0,fn.Z)(e))return t=uc(e.length,t),!0})),(0,Su.Z)(t,(function(t){return(0,Ar.Z)(e,(0,as.Z)(t))}))},dc=function(e,t){return e&&e.length?(e=cc(e),null==t?e:(0,Ar.Z)(e,(function(e){return(0,P.Z)(t,void 0,e)}))):[]},pc=function(e,t,r,n){return Zi(e,t,r((0,co.Z)(e,t)),n)},mc=function(e,t,r){return null==e?e:pc(e,t,Tn(r))},fc=function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:pc(e,t,Tn(r),n)},gc=Dt((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),hc=function(e){return null==e?[]:Ua(e,(0,Oe.Z)(e))},yc=(0,ke.Z)((function(e,t){return(0,fn.Z)(e)?mn(e,t):[]})),vc=function(e,t){return xs(Tn(t),e)},bc=Re((function(e){function t(t){return De(t,e)}var r=e.length,n=r?e[0]:0,a=this.__wrapped__;return!(1<r||this.__actions__.length)&&a instanceof L&&(0,ce.Z)(n)?((a=a.slice(n,+n+(r?1:0))).__actions__.push({func:Eu,args:[t],thisArg:void 0}),new Z(a,this.__chain__).thru((function(e){return r&&!e.length&&e.push(void 0),e}))):this.thru(t)})),Cc=function(){return zt(this)},xc=function(){var e=this.__wrapped__;return e instanceof L?((e=(e=this.__actions__.length?new L(this):e).reverse()).__actions__.push({func:Eu,args:[cl],thisArg:void 0}),new Z(e,this.__chain__)):this.thru(cl)},Ec=function(e,t,r){var n=e.length;if(n<2)return n?$u(e[0]):[];for(var a=-1,o=Array(n);++a<n;)for(var i=e[a],s=-1;++s<n;)s!=a&&(o[a]=mn(o[a]||i,e[s],t,r));return $u((0,Pr.Z)(o,1),t,r)},Sc=(0,ke.Z)((function(e){return Ec((0,_a.Z)(e,fn.Z))})),_c=(0,ke.Z)((function(e){var t=hn(e);return(0,fn.Z)(t)&&(t=void 0),Ec((0,_a.Z)(e,fn.Z),(0,Ir.Z)(t,2))})),Tc=(0,ke.Z)((function(e){var t="function"==typeof(t=hn(e))?t:void 0;return Ec((0,_a.Z)(e,fn.Z),void 0,t)})),wc=(0,ke.Z)(cc),Pc=function(e,t,r){for(var n=-1,a=e.length,o=t.length,i={};++n<a;){var s=n<o?t[n]:void 0;r(i,e[n],s)}return i},Oc=function(e,t){return Pc(e||[],t||[],Ce.Z)},Ac=function(e,t){return Pc(e||[],t||[],Zi)},Ic=(0,ke.Z)((function(e){var t="function"==typeof(t=1<(t=e.length)?e[t-1]:void 0)?(e.pop(),t):void 0;return dc(e,t)}));is={chunk:Ut,compact:wr,concat:Or,difference:gn,differenceBy:yn,differenceWith:vn,drop:Cn,dropRight:xn,dropRightWhile:Sn,dropWhile:_n,fill:Vn,findIndex:Xn,findLastIndex:ra,first:oa,flatten:Le.default,flattenDeep:da,flattenDepth:pa,fromPairs:Sa,head:oa,indexOf:Xa,initial:Qa,intersection:eo,intersectionBy:to,intersectionWith:ro,join:Ko,last:hn,lastIndexOf:ni,nth:Ri,pull:Ds,pullAll:Ms,pullAllBy:Ls,pullAllWith:Bs,pullAt:ks,remove:al,reverse:cl,slice:Tl,sortedIndex:Dl,sortedIndexBy:Ll,sortedIndexOf:Bl,sortedLastIndex:Rl,sortedLastIndexBy:jl,sortedLastIndexOf:kl,sortedUniq:zl,sortedUniqBy:Zl,tail:$l,take:eu,takeRight:tu,takeRightWhile:ru,takeWhile:nu,union:ec,unionBy:tc,unionWith:rc,uniq:nc,uniqBy:ac,uniqWith:oc,unzip:cc,unzipWith:dc,without:yc,xor:Sc,xorBy:_c,xorWith:Tc,zip:wc,zipObject:Oc,zipObjectDeep:Ac,zipWith:Ic},Pt={countBy:Zr,each:wn,eachRight:Nn,every:Wn,filter:Hn.default,find:Qn,findLast:na,flatMap:la,flatMapDeep:ua,flatMapDepth:ca,forEach:wn,forEachRight:Nn,groupBy:Ia,includes:Ya,invokeMap:go,keyBy:ei,map:sa,orderBy:qi,partition:_s,reduce:Ks.default,reduceRight:tl,reject:nl,sample:fl,sampleSize:vl,shuffle:Sl,size:_l,some:Pl.default,sortBy:Ol},wt={now:Yr},ot={after:C,ary:be,before:We,bind:Ve,bindKey:Qe,curry:Ur,curryRight:Hr,debounce:Qr,defer:ln,delay:un,flip:ma,memoize:Ei.Z,negate:Ii,once:Vi,overArgs:$i,partial:xs,partialRight:Ss,rearg:Js,rest:sl,spread:Ul,throttle:xu,unary:Hu,wrap:vc},Tt={castArray:Bt,clone:xr,cloneDeep:Er,cloneDeepWith:Sr,cloneWith:_r,conformsTo:Lr,eq:Kr.Z,gt:Da,gte:La,isArguments:ho.Z,isArray:G.default,isArrayBuffer:yo,isArrayLike:Se.Z,isArrayLikeObject:fn.Z,isBoolean:vo,isBuffer:pr.Z,isDate:bo,isElement:Co,isEmpty:_o,isEqual:wo,isEqualWith:Po,isError:Ze,isFinite:Ao,isFunction:Ta.Z,isInteger:Io,isLength:No.Z,isMap:fr,isMatch:Lo,isMatchWith:Bo,isNaN:jo,isNative:Zo,isNil:Go,isNull:Wo,isNumber:Ro,isObject:p.Z,isObjectLike:W.Z,isPlainObject:ze.Z,isRegExp:Uo,isSafeInteger:Ho,isSet:gr,isString:Wa,isSymbol:n.Z,isTypedArray:Eo.Z,isUndefined:Yo,isWeakMap:qo,isWeakSet:Xo,lt:si,lte:li,toArray:Di,toFinite:v,toInteger:b,toLength:Un,toNumber:y,toPlainObject:Du.Z,toSafeInteger:Bu,toString:Je.Z},Ee={add:s,ceil:Ft,divide:bn,floor:fa,max:hi,maxBy:yi,mean:Ci,meanBy:xi,min:wi,minBy:Pi,multiply:Ai,round:dl,subtract:Ql,sum:Jl,sumBy:Kl},st={clamp:Ht,inRange:Ga,random:Vs},_t={assign:Pe,assignIn:Ae,assignInWith:Ie,assignWith:Ne,at:je,create:Gr,defaults:tn,defaultsDeep:on,entries:Bn,entriesIn:Rn,extend:Ae,extendWith:Ie,findKey:$n,findLastKey:aa,forIn:ba,forInRight:Ca,forOwn:xa,forOwnRight:Ea,functions:Pa,functionsIn:Oa,get:Me.default,has:ka,hasIn:Fa.Z,invert:oo,invertBy:lo,invoke:fo,keys:Te.Z,keysIn:Oe.Z,mapKeys:ui,mapValues:ci,merge:Si.default,mergeWith:an,omit:zi,omitBy:Ui,pick:Ts,pickBy:Wi,result:ll,set:bl,setWith:Cl,toPairs:Bn,toPairsIn:Rn,transform:ju,unset:lc,update:mc,updateWith:fc,values:Va,valuesIn:hc},it={at:bc,chain:zt,commit:Tr,lodash:q,next:Li,plant:ws,reverse:xc,tap:au,thru:Eu,toIterator:Pu,toJSON:Au,value:Au,valueOf:Au,wrapperChain:Cc};const Nc={camelCase:Lt,capitalize:mt,deburr:bt,endsWith:Mn,escape:jn.default,escapeRegExp:zn,kebabCase:$o,lowerCase:ai,lowerFirst:oi,pad:fs,padEnd:gs,padStart:hs,parseInt:bs,repeat:ol,replace:il,snakeCase:wl,split:Gl,startCase:Vl,startsWith:Hl,template:Cu,templateSettings:du,toLower:Iu,toUpper:Ru,trim:zu,trimEnd:Zu,trimStart:Wu,truncate:Vu,unescape:Qu,upperCase:gc,upperFirst:pt,words:Nt};gt={attempt:Ge,bindAll:qe,cond:Nr,conforms:Dr,constant:Br.Z,defaultTo:Jr,flow:ha,flowRight:ya,identity:x.Z,iteratee:Qo,matches:pi,matchesProperty:fi,method:_i,methodOf:Ti,mixin:Oi,noop:B.default,nthArg:ji,over:Qi,overEvery:es,overSome:ts,property:Ps.Z,propertyOf:Os,range:Xs,rangeRight:Qs,stubArray:$t.Z,stubFalse:Fo.Z,stubObject:Yl,stubString:ql,stubTrue:Xl,times:wu,toPath:Mu,uniqueId:sc};var Mc=Math.max,Dc=Math.min;var Lc=Math.min;var Bc,Rc,jc=Array.prototype,kc=Object.prototype.hasOwnProperty,Fc=(r=Ot.Z?Ot.Z.iterator:void 0,Math.max),zc=Math.min;Bc=Oi,Ot=function(e,t,r){var n,a;return null==r&&(((a=(a=(n=(0,p.Z)(t))&&(0,Te.Z)(t))&&a.length&&wa(t,a))?a.length:n)||(r=t,t=e,e=this)),Bc(e,t,r)};q.after=ot.after,q.ary=ot.ary,q.assign=_t.assign,q.assignIn=_t.assignIn,q.assignInWith=_t.assignInWith,q.assignWith=_t.assignWith,q.at=_t.at,q.before=ot.before,q.bind=ot.bind,q.bindAll=gt.bindAll,q.bindKey=ot.bindKey,q.castArray=Tt.castArray,q.chain=it.chain,q.chunk=is.chunk,q.compact=is.compact,q.concat=is.concat,q.cond=gt.cond,q.conforms=gt.conforms,q.constant=gt.constant,q.countBy=Pt.countBy,q.create=_t.create,q.curry=ot.curry,q.curryRight=ot.curryRight,q.debounce=ot.debounce,q.defaults=_t.defaults,q.defaultsDeep=_t.defaultsDeep,q.defer=ot.defer,q.delay=ot.delay,q.difference=is.difference,q.differenceBy=is.differenceBy,q.differenceWith=is.differenceWith,q.drop=is.drop,q.dropRight=is.dropRight,q.dropRightWhile=is.dropRightWhile,q.dropWhile=is.dropWhile,q.fill=is.fill,q.filter=Pt.filter,q.flatMap=Pt.flatMap,q.flatMapDeep=Pt.flatMapDeep,q.flatMapDepth=Pt.flatMapDepth,q.flatten=is.flatten,q.flattenDeep=is.flattenDeep,q.flattenDepth=is.flattenDepth,q.flip=ot.flip,q.flow=gt.flow,q.flowRight=gt.flowRight,q.fromPairs=is.fromPairs,q.functions=_t.functions,q.functionsIn=_t.functionsIn,q.groupBy=Pt.groupBy,q.initial=is.initial,q.intersection=is.intersection,q.intersectionBy=is.intersectionBy,q.intersectionWith=is.intersectionWith,q.invert=_t.invert,q.invertBy=_t.invertBy,q.invokeMap=Pt.invokeMap,q.iteratee=gt.iteratee,q.keyBy=Pt.keyBy,q.keys=Te.Z,q.keysIn=_t.keysIn,q.map=Pt.map,q.mapKeys=_t.mapKeys,q.mapValues=_t.mapValues,q.matches=gt.matches,q.matchesProperty=gt.matchesProperty,q.memoize=ot.memoize,q.merge=_t.merge,q.mergeWith=_t.mergeWith,q.method=gt.method,q.methodOf=gt.methodOf,q.mixin=Ot,q.negate=Ii,q.nthArg=gt.nthArg,q.omit=_t.omit,q.omitBy=_t.omitBy,q.once=ot.once,q.orderBy=Pt.orderBy,q.over=gt.over,q.overArgs=ot.overArgs,q.overEvery=gt.overEvery,q.overSome=gt.overSome,q.partial=ot.partial,q.partialRight=ot.partialRight,q.partition=Pt.partition,q.pick=_t.pick,q.pickBy=_t.pickBy,q.property=gt.property,q.propertyOf=gt.propertyOf,q.pull=is.pull,q.pullAll=is.pullAll,q.pullAllBy=is.pullAllBy,q.pullAllWith=is.pullAllWith,q.pullAt=is.pullAt,q.range=gt.range,q.rangeRight=gt.rangeRight,q.rearg=ot.rearg,q.reject=Pt.reject,q.remove=is.remove,q.rest=ot.rest,q.reverse=is.reverse,q.sampleSize=Pt.sampleSize,q.set=_t.set,q.setWith=_t.setWith,q.shuffle=Pt.shuffle,q.slice=is.slice,q.sortBy=Pt.sortBy,q.sortedUniq=is.sortedUniq,q.sortedUniqBy=is.sortedUniqBy,q.split=Nc.split,q.spread=ot.spread,q.tail=is.tail,q.take=is.take,q.takeRight=is.takeRight,q.takeRightWhile=is.takeRightWhile,q.takeWhile=is.takeWhile,q.tap=it.tap,q.throttle=ot.throttle,q.thru=Eu,q.toArray=Tt.toArray,q.toPairs=_t.toPairs,q.toPairsIn=_t.toPairsIn,q.toPath=gt.toPath,q.toPlainObject=Tt.toPlainObject,q.transform=_t.transform,q.unary=ot.unary,q.union=is.union,q.unionBy=is.unionBy,q.unionWith=is.unionWith,q.uniq=is.uniq,q.uniqBy=is.uniqBy,q.uniqWith=is.uniqWith,q.unset=_t.unset,q.unzip=is.unzip,q.unzipWith=is.unzipWith,q.update=_t.update,q.updateWith=_t.updateWith,q.values=_t.values,q.valuesIn=_t.valuesIn,q.without=is.without,q.words=Nc.words,q.wrap=ot.wrap,q.xor=is.xor,q.xorBy=is.xorBy,q.xorWith=is.xorWith,q.zip=is.zip,q.zipObject=is.zipObject,q.zipObjectDeep=is.zipObjectDeep,q.zipWith=is.zipWith,q.entries=_t.toPairs,q.entriesIn=_t.toPairsIn,q.extend=_t.assignIn,q.extendWith=_t.assignInWith,Ot(q,q),q.add=Ee.add,q.attempt=gt.attempt,q.camelCase=Nc.camelCase,q.capitalize=Nc.capitalize,q.ceil=Ee.ceil,q.clamp=st.clamp,q.clone=Tt.clone,q.cloneDeep=Tt.cloneDeep,q.cloneDeepWith=Tt.cloneDeepWith,q.cloneWith=Tt.cloneWith,q.conformsTo=Tt.conformsTo,q.deburr=Nc.deburr,q.defaultTo=gt.defaultTo,q.divide=Ee.divide,q.endsWith=Nc.endsWith,q.eq=Tt.eq,q.escape=Nc.escape,q.escapeRegExp=Nc.escapeRegExp,q.every=Pt.every,q.find=Pt.find,q.findIndex=is.findIndex,q.findKey=_t.findKey,q.findLast=Pt.findLast,q.findLastIndex=is.findLastIndex,q.findLastKey=_t.findLastKey,q.floor=Ee.floor,q.forEach=Pt.forEach,q.forEachRight=Pt.forEachRight,q.forIn=_t.forIn,q.forInRight=_t.forInRight,q.forOwn=_t.forOwn,q.forOwnRight=_t.forOwnRight,q.get=_t.get,q.gt=Tt.gt,q.gte=Tt.gte,q.has=_t.has,q.hasIn=_t.hasIn,q.head=is.head,q.identity=x.Z,q.includes=Pt.includes,q.indexOf=is.indexOf,q.inRange=st.inRange,q.invoke=_t.invoke,q.isArguments=Tt.isArguments,q.isArray=G.default,q.isArrayBuffer=Tt.isArrayBuffer,q.isArrayLike=Tt.isArrayLike,q.isArrayLikeObject=Tt.isArrayLikeObject,q.isBoolean=Tt.isBoolean,q.isBuffer=Tt.isBuffer,q.isDate=Tt.isDate,q.isElement=Tt.isElement,q.isEmpty=Tt.isEmpty,q.isEqual=Tt.isEqual,q.isEqualWith=Tt.isEqualWith,q.isError=Tt.isError,q.isFinite=Tt.isFinite,q.isFunction=Tt.isFunction,q.isInteger=Tt.isInteger,q.isLength=Tt.isLength,q.isMap=Tt.isMap,q.isMatch=Tt.isMatch,q.isMatchWith=Tt.isMatchWith,q.isNaN=Tt.isNaN,q.isNative=Tt.isNative,q.isNil=Tt.isNil,q.isNull=Tt.isNull,q.isNumber=Tt.isNumber,q.isObject=p.Z,q.isObjectLike=Tt.isObjectLike,q.isPlainObject=Tt.isPlainObject,q.isRegExp=Tt.isRegExp,q.isSafeInteger=Tt.isSafeInteger,q.isSet=Tt.isSet,q.isString=Tt.isString,q.isSymbol=Tt.isSymbol,q.isTypedArray=Tt.isTypedArray,q.isUndefined=Tt.isUndefined,q.isWeakMap=Tt.isWeakMap,q.isWeakSet=Tt.isWeakSet,q.join=is.join,q.kebabCase=Nc.kebabCase,q.last=hn,q.lastIndexOf=is.lastIndexOf,q.lowerCase=Nc.lowerCase,q.lowerFirst=Nc.lowerFirst,q.lt=Tt.lt,q.lte=Tt.lte,q.max=Ee.max,q.maxBy=Ee.maxBy,q.mean=Ee.mean,q.meanBy=Ee.meanBy,q.min=Ee.min,q.minBy=Ee.minBy,q.stubArray=gt.stubArray,q.stubFalse=gt.stubFalse,q.stubObject=gt.stubObject,q.stubString=gt.stubString,q.stubTrue=gt.stubTrue,q.multiply=Ee.multiply,q.nth=is.nth,q.noop=gt.noop,q.now=wt.now,q.pad=Nc.pad,q.padEnd=Nc.padEnd,q.padStart=Nc.padStart,q.parseInt=Nc.parseInt,q.random=st.random,q.reduce=Pt.reduce,q.reduceRight=Pt.reduceRight,q.repeat=Nc.repeat,q.replace=Nc.replace,q.result=_t.result,q.round=Ee.round,q.sample=Pt.sample,q.size=Pt.size,q.snakeCase=Nc.snakeCase,q.some=Pt.some,q.sortedIndex=is.sortedIndex,q.sortedIndexBy=is.sortedIndexBy,q.sortedIndexOf=is.sortedIndexOf,q.sortedLastIndex=is.sortedLastIndex,q.sortedLastIndexBy=is.sortedLastIndexBy,q.sortedLastIndexOf=is.sortedLastIndexOf,q.startCase=Nc.startCase,q.startsWith=Nc.startsWith,q.subtract=Ee.subtract,q.sum=Ee.sum,q.sumBy=Ee.sumBy,q.template=Nc.template,q.times=gt.times,q.toFinite=Tt.toFinite,q.toInteger=b,q.toLength=Tt.toLength,q.toLower=Nc.toLower,q.toNumber=Tt.toNumber,q.toSafeInteger=Tt.toSafeInteger,q.toString=Tt.toString,q.toUpper=Nc.toUpper,q.trim=Nc.trim,q.trimEnd=Nc.trimEnd,q.trimStart=Nc.trimStart,q.truncate=Nc.truncate,q.unescape=Nc.unescape,q.uniqueId=gt.uniqueId,q.upperCase=Nc.upperCase,q.upperFirst=Nc.upperFirst,q.each=Pt.forEach,q.eachRight=Pt.forEachRight,q.first=is.head,Ot(q,(Rc={},(0,Kn.Z)(q,(function(e,t){kc.call(q.prototype,t)||(Rc[t]=e)})),Rc),{chain:!1}),q.VERSION="4.17.21",(q.templateSettings=Nc.templateSettings).imports._=q,te(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){q[e].placeholder=q})),te(["drop","take"],(function(e,t){L.prototype[e]=function(r){r=void 0===r?1:Fc(b(r),0);var n=this.__filtered__&&!t?new L(this):this.clone();return n.__filtered__?n.__takeCount__=zc(r,n.__takeCount__):n.__views__.push({size:zc(r,4294967295),type:e+(n.__dir__<0?"Right":"")}),n},L.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),te(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;L.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:(0,Ir.Z)(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),te(["head","last"],(function(e,t){var r="take"+(t?"Right":"");L.prototype[e]=function(){return this[r](1).value()[0]}})),te(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");L.prototype[e]=function(){return this.__filtered__?new L(this):this[r](1)}})),L.prototype.compact=function(){return this.filter(x.Z)},L.prototype.find=function(e){return this.filter(e).head()},L.prototype.findLast=function(e){return this.reverse().find(e)},L.prototype.invokeMap=(0,ke.Z)((function(e,t){return"function"==typeof e?new L(this):this.map((function(r){return mo(r,e,t)}))})),L.prototype.reject=function(e){return this.filter(Ii((0,Ir.Z)(e)))},L.prototype.slice=function(e,t){e=b(e);var r=this;return r.__filtered__&&(0<e||t<0)?new L(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),void 0!==t?(t=b(t))<0?r.dropRight(-t):r.take(t-e):r)},L.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},L.prototype.toArray=function(){return this.take(4294967295)},(0,Kn.Z)(L.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),a=q[n?"take"+("last"==t?"Right":""):t],o=n||/^find/.test(t);a&&(q.prototype[t]=function(){function t(e){return e=a.apply(q,(0,Jt.Z)([e],s)),n&&d?e[0]:e}var i=this.__wrapped__,s=n?[1]:arguments,l=i instanceof L,u=s[0],c=l||(0,G.default)(i);c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length;u=o&&!d,p=l&&!p;if(o||!c)return u&&p?e.apply(this,s):(m=this.thru(t),u?n?m.value()[0]:m.value():m);i=p?i:new L(this);var m=e.apply(i,s);return m.__actions__.push({func:Eu,args:[t],thisArg:void 0}),new Z(m,d)})})),te(["pop","push","shift","sort","splice","unshift"],(function(e){var t=jc[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);q.prototype[e]=function(){var e=arguments;if(!n||this.__chain__)return this[r]((function(r){return t.apply((0,G.default)(r)?r:[],e)}));var a=this.value();return t.apply((0,G.default)(a)?a:[],e)}})),(0,Kn.Z)(L.prototype,(function(e,t){var r,n=q[t];n&&(r=n.name+"",kc.call(j,r)||(j[r]=[]),j[r].push({name:t,func:n}))})),j[fe(void 0,2).name]=[{name:"wrapper",func:void 0}],L.prototype.clone=function(){var e=new L(this.__wrapped__);return e.__actions__=(0,U.Z)(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=(0,U.Z)(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=(0,U.Z)(this.__views__),e},L.prototype.reverse=function(){var e;return this.__filtered__?((e=new L(this)).__dir__=-1,e.__filtered__=!0):(e=this.clone()).__dir__*=-1,e},L.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=(0,G.default)(e),n=t<0,a=r?e.length:0,o=function(e,t,r){for(var n=-1,a=r.length;++n<a;){var o=r[n],i=o.size;switch(o.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=Dc(t,e+i);break;case"takeRight":e=Mc(e,t-i)}}return{start:e,end:t}}(0,a,this.__views__),i=o.start,s=(o=o.end)-i,l=n?o:i-1,u=this.__iteratees__,c=u.length,d=0,p=Lc(s,this.__takeCount__);if(!r||!n&&a==s&&p==s)return Ou(e,this.__actions__);var m=[];e:for(;s--&&d<p;){for(var f=-1,g=e[l+=t];++f<c;){var h=(y=u[f]).iteratee,y=y.type;h=h(g);if(2==y)g=h;else if(!h){if(1==y)continue e;break e}}m[d++]=g}return m},q.prototype.at=it.at,q.prototype.chain=it.wrapperChain,q.prototype.commit=it.commit,q.prototype.next=it.next,q.prototype.plant=it.plant,q.prototype.reverse=it.reverse,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=it.value,q.prototype.first=q.prototype.head,r&&(q.prototype[r]=it.toIterator);const Zc=q},2454:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(520);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");function r(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;return o.has(a)?o.get(a):(n=e.apply(this,n),r.cache=o.set(a,n)||o,n)}return r.cache=new(a.Cache||n.Z),r}a.Cache=n.Z;const o=a},8568:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(81);const a=(0,r(9268).Z)((function(e,t,r){(0,n.Z)(e,t,r)}))},2054:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=function(){}},770:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(4193),a=r(3317);var o=r(9365),i=r(2281);const s=function(e){return(0,o.Z)(e)?(0,n.Z)((0,i.Z)(e)):function(e){return function(t){return(0,a.Z)(t,e)}}(e)}},4296:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(7709),a=r(1507),o=r(9162),i=r(7200),s=r(7771);const l=function(e,t,r){var l=((0,s.default)(e)?n:i).Z,u=arguments.length<3;return l(e,(0,o.Z)(t,4),r,u,a.Z)}},8089:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(2338),a=r(9162),o=r(1507);function i(e,t){var r;return(0,o.Z)(e,(function(e,n,a){return!(r=t(e,n,a))})),!!r}var s=r(7771),l=r(439);const u=function(e,t,r){var o=(0,s.default)(e)?n.Z:i;return r&&(0,l.Z)(e,t,r)&&(t=void 0),o(e,(0,a.Z)(t,3))}},532:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(){return[]}},7979:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(){return!1}},2518:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(1899),a=r(7590);const o=function(e){return(0,n.Z)(e,(0,a.Z)(e))}},7338:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(2845);const a=function(e){return null==e?"":(0,n.Z)(e)}}},a={};function o(e){var t=a[e];return void 0!==t||(t=a[e]={id:e,loaded:!1,exports:{}},n[e].call(t.exports,t,t.exports,o),t.loaded=!0),t.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,o.d(a,i),a},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>(({653:"intersection-observer",716:"SwiperReact",944:"TwitchModalResponsiveGrid",964:"VideoPlayer"}[e]||e)+".bundle.min.js"),o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o.l=(e,t,n,a)=>{if(r[e])r[e].push(t);else{var i,s;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var c=l[u];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")=="Library:"+n){i=c;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,o.nc&&i.setAttribute("nonce",o.nc),i.setAttribute("data-webpack","Library:"+n),i.src=e),r[e]=[t];t=(t,n)=>{i.onerror=i.onload=null,clearTimeout(d);var a=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(n))),t)return t(n)};var d=setTimeout(t.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=t.bind(null,i.onerror),i.onload=t.bind(null,i.onload),s&&document.head.appendChild(i)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="",(()=>{var e={760:0};o.f.j=(t,r)=>{var n,a,i=o.o(e,t)?e[t]:void 0;0!==i&&(i?r.push(i[2]):(n=new Promise(((r,n)=>i=e[t]=[r,n])),r.push(i[2]=n),n=o.p+o.u(t),a=new Error,o.l(n,(r=>{var n;o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i&&(n=r&&("load"===r.type?"missing":r.type),r=r&&r.target&&r.target.src,a.message="Loading chunk "+t+" failed.\n("+n+": "+r+")",a.name="ChunkLoadError",a.type=n,a.request=r,i[1](a)))}),"chunk-"+t,t)))};var t=(t,r)=>{var n,a,[i,s,l]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);l&&l(o)}for(t&&t(r);u<i.length;u++)a=i[u],o.o(e,a)&&e[a]&&e[a][0](),e[i[u]]=0},r=self.webpackChunkLibrary=self.webpackChunkLibrary||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var i={};(()=>{"use strict";var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=C(t))&&t.has(e))return t.get(e);var r,n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var o;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((o=a?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r])}return n.default=e,t&&t.set(e,n),n}(o(7363)),r=b(o(2054)),n=b(o(5500)),a=o(4828),s=o(1245),l=o(5692),u=o(317),c=o(3869),d=o(7079),p=o(7270),m=o(357),f=o(7181),g=o(6655),h=o(6475),y=b(o(7899)),v=o(9060);function b(e){return e&&e.__esModule?e:{default:e}}function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(C=function(e){return e?r:t})(e)}var x=e=>{const o=e.insertCss,i=e.locale,b=e.marketplace,C=e.activeExperiments,x=e.manifest,E=e.isPreviewLeadGenForm,S=e.isPreviewLeadGenThankYouView,_=e.width,T=e.height,w=e.is3P,P=e.isNonEndemicAd,O=e.isShowroomCreative,A=e.isExpandableVideoAd,I=e.i18nStrings;(0,t.useEffect)((()=>{(0,c.updateWebpackPath)(x)}),[]);var N=(0,p.useMobileDataInterface)({isEnabled:C.TwitchModal}).isModal;let M=null;M=350!==_||420!==T||w||P||O?v.Grid:y.default;var D=C[h.Experiments.LeadGenPrototype]?t.default.createElement(d.LeadGenClickPrototype,null):t.default.createElement(l.AppLayoutRender,{LayoutComponent:M});return t.default.createElement(n.default.Provider,{value:{insertCss:o||r.default}},t.default.createElement(s.I18nProvider,{locale:i,marketplace:b,i18nStrings:I},t.default.createElement(a.PayloadProvider,{payload:e},t.default.createElement(g.ModalProvider,null,E||S?t.default.createElement(m.LeadFormPreviewLayout,null):t.default.createElement(u.AppLayoutProvider,{width:_,height:T,isExpandableVideoAd:A},t.default.createElement(f.AppLayoutContainer,{isScrollable:N},D))))))};x.displayName="Responsive",e.default=x})(),Library=i})();