+`;var Wn={backgroundImage:{tag:"div",slot:"image"},badge:!0,ctas:{slot:"footer",size:"S"},description:{tag:"div",slot:"body-s"},mnemonics:{size:"m"},size:["wide"]},dt=class extends I{getGlobalCSS(){return qo}get aemFragmentMapping(){return Wn}renderLayout(){return x`
${this.badge}
@@ -1569,7 +1569,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link {
-
`}};p(ut,"variantStyle",C`
+
`}};p(dt,"variantStyle",k`
:host([variant='ccd-slice']) {
--consonant-merch-card-background-color: rgb(248, 248, 248);
--consonant-merch-card-border-color: rgb(230, 230, 230);
@@ -1672,7 +1672,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link {
align-items: center;
gap: 8px;
}
- `);var Qn=(e,t=!1)=>{switch(e.variant){case"catalog":return new ot(e);case"image":return new Lr(e);case"inline-heading":return new _r(e);case"mini-compare-chart":return new at(e);case"plans":return new st(e);case"product":return new $e(e);case"segment":return new ct(e);case"special-offers":return new lt(e);case"twp":return new ht(e);case"ccd-suggested":return new dt(e);case"ccd-slice":return new ut(e);default:return t?void 0:new $e(e)}},ia={catalog:Wn,image:null,"inline-heading":null,"mini-compare-chart":null,plans:null,product:null,segment:null,"special-offers":qn,twp:null,"ccd-suggested":Zn,"ccd-slice":Jn},oa=()=>{let e=[];return e.push(ot.variantStyle),e.push(at.variantStyle),e.push($e.variantStyle),e.push(st.variantStyle),e.push(ct.variantStyle),e.push(lt.variantStyle),e.push(ht.variantStyle),e.push(dt.variantStyle),e.push(ut.variantStyle),e};var aa=document.createElement("style");aa.innerHTML=`
+ `);var qn=(e,t=!1)=>{switch(e.variant){case"catalog":return new it(e);case"image":return new Er(e);case"inline-heading":return new Sr(e);case"mini-compare-chart":return new ot(e);case"plans":return new at(e);case"product":return new Ve(e);case"segment":return new st(e);case"special-offers":return new ct(e);case"twp":return new lt(e);case"ccd-suggested":return new ht(e);case"ccd-slice":return new dt(e);default:return t?void 0:new Ve(e)}},Zo={catalog:Yn,image:null,"inline-heading":null,"mini-compare-chart":null,plans:null,product:null,segment:null,"special-offers":jn,twp:null,"ccd-suggested":Xn,"ccd-slice":Wn},Qo=()=>{let e=[];return e.push(it.variantStyle),e.push(ot.variantStyle),e.push(Ve.variantStyle),e.push(at.variantStyle),e.push(st.variantStyle),e.push(ct.variantStyle),e.push(lt.variantStyle),e.push(ht.variantStyle),e.push(dt.variantStyle),e};var Jo=document.createElement("style");Jo.innerHTML=`
:root {
--consonant-merch-card-detail-font-size: 12px;
--consonant-merch-card-detail-font-weight: 500;
@@ -2113,11 +2113,11 @@ merch-sidenav-checkbox-group h3 {
margin: 0px;
}
-`;document.head.appendChild(aa);var ha=new CSSStyleSheet;ha.replaceSync(":host { display: contents; }");var bc=document.querySelector('meta[name="aem-base-url"]')?.content??"https://odin.adobe.com",sa="fragment",ca="author",vc="ims",la=e=>{throw new Error(`Failed to get fragment: ${e}`)};async function Ac(e,t,r,n){let i=r?`${e}/adobe/sites/cf/fragments/${t}`:`${e}/adobe/sites/fragments/${t}`,o=await fetch(i,{cache:"default",credentials:"omit",headers:n}).catch(a=>la(a.message));return o?.ok||la(`${o.status} ${o.statusText}`),o.json()}var ei,ye,ti=class{constructor(){G(this,ye,new Map)}clear(){_(this,ye).clear()}add(...t){t.forEach(r=>{let{id:n}=r;n&&_(this,ye).set(n,r)})}has(t){return _(this,ye).has(t)}get(t){return _(this,ye).get(t)}remove(t){_(this,ye).delete(t)}};ye=new WeakMap;var wr=new ti,He,he,Te,Bt,de,mt,ue,ni,da,ua,ri=class extends HTMLElement{constructor(){super();G(this,ue);p(this,"cache",wr);G(this,He);G(this,he);G(this,Te);G(this,Bt,!1);G(this,de);G(this,mt,!1);this.attachShadow({mode:"open"}),this.shadowRoot.adoptedStyleSheets=[ha];let r=this.getAttribute(vc);["",!0,"true"].includes(r)&&(K(this,Bt,!0),ei||(ei={Authorization:`Bearer ${window.adobeid?.authorize?.()}`}))}static get observedAttributes(){return[sa,ca]}attributeChangedCallback(r,n,i){r===sa&&(K(this,Te,i),this.refresh(!1)),r===ca&&K(this,mt,["","true"].includes(i))}connectedCallback(){if(!_(this,Te)){xe(this,ue,ni).call(this,"Missing fragment id");return}}async refresh(r=!0){_(this,de)&&!await Promise.race([_(this,de),Promise.resolve(!1)])||(r&&wr.remove(_(this,Te)),K(this,de,this.fetchData().then(()=>(this.dispatchEvent(new CustomEvent(Re,{detail:this.data,bubbles:!0,composed:!0})),!0)).catch(n=>(xe(this,ue,ni).call(this,"Network error: failed to load fragment"),K(this,de,null),!1))),_(this,de))}async fetchData(){K(this,He,null),K(this,he,null);let r=wr.get(_(this,Te));r||(r=await Ac(bc,_(this,Te),_(this,mt),_(this,Bt)?ei:void 0),wr.add(r)),K(this,He,r)}get updateComplete(){return _(this,de)??Promise.reject(new Error("AEM fragment cannot be loaded"))}get data(){return _(this,he)?_(this,he):(_(this,mt)?xe(this,ue,da).call(this):xe(this,ue,ua).call(this),_(this,he))}};He=new WeakMap,he=new WeakMap,Te=new WeakMap,Bt=new WeakMap,de=new WeakMap,mt=new WeakMap,ue=new WeakSet,ni=function(r){this.classList.add("error"),this.dispatchEvent(new CustomEvent(Me,{detail:r,bubbles:!0,composed:!0}))},da=function(){let{fields:r,id:n,tags:i}=_(this,He);K(this,he,r.reduce((o,{name:a,multiple:s,values:c})=>(o.fields[a]=s?c:c[0],o),{fields:{},id:n,tags:i}))},ua=function(){let{fields:r,id:n,tags:i}=_(this,He);K(this,he,Object.entries(r).reduce((o,[a,s])=>(o.fields[a]=s?.mimeType?s.value:s??"",o),{fields:{},id:n,tags:i}))};customElements.define("aem-fragment",ri);var Gt;(function(e){e.STAGE="STAGE",e.PRODUCTION="PRODUCTION",e.LOCAL="LOCAL"})(Gt||(Gt={}));var ii;(function(e){e.STAGE="STAGE",e.PRODUCTION="PROD",e.LOCAL="LOCAL"})(ii||(ii={}));var zt;(function(e){e.DRAFT="DRAFT",e.PUBLISHED="PUBLISHED"})(zt||(zt={}));var Ue;(function(e){e.V2="UCv2",e.V3="UCv3"})(Ue||(Ue={}));var Q;(function(e){e.CHECKOUT="checkout",e.CHECKOUT_EMAIL="checkout/email",e.SEGMENTATION="segmentation",e.BUNDLE="bundle",e.COMMITMENT="commitment",e.RECOMMENDATION="recommendation",e.EMAIL="email",e.PAYMENT="payment",e.CHANGE_PLAN_TEAM_PLANS="change-plan/team-upgrade/plans",e.CHANGE_PLAN_TEAM_PAYMENT="change-plan/team-upgrade/payment"})(Q||(Q={}));var oi=function(e){var t;return(t=Ec.get(e))!==null&&t!==void 0?t:e},Ec=new Map([["countrySpecific","cs"],["quantity","q"],["authCode","code"],["checkoutPromoCode","apc"],["rurl","rUrl"],["curl","cUrl"],["ctxrturl","ctxRtUrl"],["country","co"],["language","lang"],["clientId","cli"],["context","ctx"],["productArrangementCode","pa"],["offerType","ot"],["marketSegment","ms"]]);var ma=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},pa=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o};function pt(e,t,r){var n,i;try{for(var o=ma(Object.entries(e)),a=o.next();!a.done;a=o.next()){var s=pa(a.value,2),c=s[0],l=s[1],h=oi(c);l!=null&&r.has(h)&&t.set(h,l)}}catch(d){n={error:d}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}function Pr(e){switch(e){case Gt.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Cr(e,t){var r,n;for(var i in e){var o=e[i];try{for(var a=(r=void 0,ma(Object.entries(o))),s=a.next();!s.done;s=a.next()){var c=pa(s.value,2),l=c[0],h=c[1];if(h!=null){var d=oi(l);t.set("items["+i+"]["+d+"]",h)}}}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}}var Sc=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i
=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function fa(e){_c(e);var t=e.env,r=e.items,n=e.workflowStep,i=Sc(e,["env","items","workflowStep"]),o=new URL(Pr(t));return o.pathname=n+"/",Cr(r,o.searchParams),pt(i,o.searchParams,Tc),o.toString()}var Tc=new Set(["cli","co","lang","ctx","cUrl","mv","nglwfdata","otac","promoid","rUrl","sdid","spint","trackingid","code","campaignid","appctxid"]),Lc=["env","workflowStep","clientId","country","items"];function _c(e){var t,r;try{for(var n=yc(Lc),i=n.next();!i.done;i=n.next()){var o=i.value;if(!e[o])throw new Error('Argument "checkoutData" is not valid, missing: '+o)}}catch(a){t={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!0}var wc=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Cc="p_draft_landscape",Ic="/store/";function si(e){Nc(e);var t=e.env,r=e.items,n=e.workflowStep,i=e.ms,o=e.marketSegment,a=e.ot,s=e.offerType,c=e.pa,l=e.productArrangementCode,h=e.landscape,d=wc(e,["env","items","workflowStep","ms","marketSegment","ot","offerType","pa","productArrangementCode","landscape"]),u={marketSegment:o??i,offerType:s??a,productArrangementCode:l??c},m=new URL(Pr(t));return m.pathname=""+Ic+n,n!==Q.SEGMENTATION&&n!==Q.CHANGE_PLAN_TEAM_PLANS&&Cr(r,m.searchParams),n===Q.SEGMENTATION&&pt(u,m.searchParams,ai),pt(d,m.searchParams,ai),h===zt.DRAFT&&pt({af:Cc},m.searchParams,ai),m.toString()}var ai=new Set(["af","ai","apc","appctxid","cli","co","csm","ctx","ctxRtUrl","DCWATC","dp","fr","gsp","ijt","lang","lo","mal","ms","mv","mv2","nglwfdata","ot","otac","pa","pcid","promoid","q","rf","sc","scl","sdid","sid","spint","svar","th","thm","trackingid","usid","workflowid","context.guid","so.ca","so.su","so.tr","so.va"]),kc=["env","workflowStep","clientId","country"];function Nc(e){var t,r;try{for(var n=Pc(kc),i=n.next();!i.done;i=n.next()){var o=i.value;if(!e[o])throw new Error('Argument "checkoutData" is not valid, missing: '+o)}}catch(a){t={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}if(e.workflowStep!==Q.SEGMENTATION&&e.workflowStep!==Q.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}function ci(e,t){switch(e){case Ue.V2:return fa(t);case Ue.V3:return si(t);default:return console.warn("Unsupported CheckoutType, will use UCv3 as default. Given type: "+e),si(t)}}var li;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(li||(li={}));var H;(function(e){e.MONTH="MONTH",e.YEAR="YEAR",e.TWO_YEARS="TWO_YEARS",e.THREE_YEARS="THREE_YEARS",e.PERPETUAL="PERPETUAL",e.TERM_LICENSE="TERM_LICENSE",e.ACCESS_PASS="ACCESS_PASS",e.THREE_MONTHS="THREE_MONTHS",e.SIX_MONTHS="SIX_MONTHS"})(H||(H={}));var N;(function(e){e.ANNUAL="ANNUAL",e.MONTHLY="MONTHLY",e.TWO_YEARS="TWO_YEARS",e.THREE_YEARS="THREE_YEARS",e.P1D="P1D",e.P1Y="P1Y",e.P3Y="P3Y",e.P10Y="P10Y",e.P15Y="P15Y",e.P3D="P3D",e.P7D="P7D",e.P30D="P30D",e.HALF_YEARLY="HALF_YEARLY",e.QUARTERLY="QUARTERLY"})(N||(N={}));var hi;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(hi||(hi={}));var di;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(di||(di={}));var ui;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(ui||(ui={}));var mi;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(mi||(mi={}));var ga="tacocat.js";var Ir=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),xa=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function O(e,t={},{metadata:r=!0,search:n=!0,storage:i=!0}={}){let o;if(n&&o==null){let a=new URLSearchParams(window.location.search),s=ft(n)?n:e;o=a.get(s)}if(i&&o==null){let a=ft(i)?i:e;o=window.sessionStorage.getItem(a)??window.localStorage.getItem(a)}if(r&&o==null){let a=Oc(ft(r)?r:e);o=document.documentElement.querySelector(`meta[name="${a}"]`)?.content}return o??t[e]}var gt=()=>{};var ba=e=>typeof e=="boolean",Ft=e=>typeof e=="function",kr=e=>typeof e=="number",va=e=>e!=null&&typeof e=="object";var ft=e=>typeof e=="string",pi=e=>ft(e)&&e,xt=e=>kr(e)&&Number.isFinite(e)&&e>0;function bt(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function y(e,t){if(ba(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function Le(e,t,r){let n=Object.values(t);return n.find(i=>Ir(i,e))??r??n[0]}function Oc(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function vt(e,t=1){return kr(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var Rc=Date.now(),fi=()=>`(+${Date.now()-Rc}ms)`,Nr=new Set,Mc=y(O("tacocat.debug",{},{metadata:!1}),typeof process<"u"&&process.env?.DEBUG);function Aa(e){let t=`[${ga}/${e}]`,r=(a,s,...c)=>a?!0:(i(s,...c),!1),n=Mc?(a,...s)=>{console.debug(`${t} ${a}`,...s,fi())}:()=>{},i=(a,...s)=>{let c=`${t} ${a}`;Nr.forEach(([l])=>l(c,...s))};return{assert:r,debug:n,error:i,warn:(a,...s)=>{let c=`${t} ${a}`;Nr.forEach(([,l])=>l(c,...s))}}}function Vc(e,t){let r=[e,t];return Nr.add(r),()=>{Nr.delete(r)}}Vc((e,...t)=>{console.error(e,...t,fi())},(e,...t)=>{console.warn(e,...t,fi())});var $c="no promo",Ea="promo-tag",Hc="yellow",Uc="neutral",Dc=(e,t,r)=>{let n=o=>o||$c,i=r?` (was "${n(t)}")`:"";return`${n(e)}${i}`},Bc="cancel-context",Kt=(e,t)=>{let r=e===Bc,n=!r&&e?.length>0,i=(n||r)&&(t&&t!=e||!t&&!r),o=i&&n||!i&&!!t,a=o?e||t:void 0;return{effectivePromoCode:a,overridenPromoCode:e,className:o?Ea:`${Ea} no-promo`,text:Dc(a,t,i),variant:o?Hc:Uc,isOverriden:i}};var gi="ABM",xi="PUF",bi="M2M",vi="PERPETUAL",Ai="P3Y",Gc="TAX_INCLUSIVE_DETAILS",zc="TAX_EXCLUSIVE",Sa={ABM:gi,PUF:xi,M2M:bi,PERPETUAL:vi,P3Y:Ai},Pm={[gi]:{commitment:H.YEAR,term:N.MONTHLY},[xi]:{commitment:H.YEAR,term:N.ANNUAL},[bi]:{commitment:H.MONTH,term:N.MONTHLY},[vi]:{commitment:H.PERPETUAL,term:void 0},[Ai]:{commitment:H.THREE_MONTHS,term:N.P3Y}},ya="Value is not an offer",Or=e=>{if(typeof e!="object")return ya;let{commitment:t,term:r}=e,n=Fc(t,r);return{...e,planType:n}};var Fc=(e,t)=>{switch(e){case void 0:return ya;case"":return"";case H.YEAR:return t===N.MONTHLY?gi:t===N.ANNUAL?xi:"";case H.MONTH:return t===N.MONTHLY?bi:"";case H.PERPETUAL:return vi;case H.TERM_LICENSE:return t===N.P3Y?Ai:"";default:return""}};function Ei(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:i,priceWithoutDiscountAndTax:o,taxDisplay:a}=t;if(a!==Gc)return e;let s={...e,priceDetails:{...t,price:i??r,priceWithoutDiscount:o??n,taxDisplay:zc}};return s.offerType==="TRIAL"&&s.priceDetails.price===0&&(s.priceDetails.price=s.priceDetails.priceWithoutDiscount),s}var Si=function(e,t){return Si=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Si(e,t)};function jt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Si(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var A=function(){return A=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0}),r=[],n=0,i=t;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Yc,function(c,l,h,d,u,m){if(l)t.minimumIntegerDigits=h.length;else{if(d&&u)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Oa.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Pa.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Pa,function(c,l,h,d,u,m){return h==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:u&&m?(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length+m.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=A(A({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=A(A({},t),Ca(o)));continue}if(Na.test(i.stem)){t=A(A({},t),Ca(i.stem));continue}var a=Ra(i.stem);a&&(t=A(A({},t),a));var s=Xc(i.stem);s&&(t=A(A({},t),s))}return t}var Xt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Va(e,t){for(var r="",n=0;n>1),c="a",l=Wc(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=c;for(;a-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function Wc(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Xt[n||""]||Xt[r||""]||Xt["".concat(r,"-001")]||Xt["001"];return i[0]}var Li,qc=new RegExp("^".concat(Ti.source,"*")),Zc=new RegExp("".concat(Ti.source,"*$"));function E(e,t){return{start:e,end:t}}var Jc=!!String.prototype.startsWith,Qc=!!String.fromCodePoint,el=!!Object.fromEntries,tl=!!String.prototype.codePointAt,rl=!!String.prototype.trimStart,nl=!!String.prototype.trimEnd,il=!!Number.isSafeInteger,ol=il?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wi=!0;try{$a=Ba("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),wi=((Li=$a.exec("a"))===null||Li===void 0?void 0:Li[0])==="a"}catch{wi=!1}var $a,Ha=Jc?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Pi=Qc?String.fromCodePoint:function(){for(var t=[],r=0;ro;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},Ua=el?Object.fromEntries:function(t){for(var r={},n=0,i=t;n=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},al=rl?function(t){return t.trimStart()}:function(t){return t.replace(qc,"")},sl=nl?function(t){return t.trimEnd()}:function(t){return t.replace(Zc,"")};function Ba(e,t){return new RegExp(e,t)}var Ci;wi?(_i=Ba("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Ci=function(t,r){var n;_i.lastIndex=r;var i=_i.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}):Ci=function(t,r){for(var n=[];;){var i=Da(t,r);if(i===void 0||za(i)||hl(i))break;n.push(i),r+=i>=65536?2:1}return Pi.apply(void 0,n)};var _i,Ga=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:P.pound,location:E(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(v.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ii(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:P.literal,value:"<".concat(i,"/>"),location:E(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("")){if(this.isEOF()||!Ii(this.char()))return this.error(v.INVALID_TAG,E(s,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(v.UNMATCHED_CLOSING_TAG,E(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:P.tag,value:i,children:a,location:E(n,this.clonePosition())},err:null}:this.error(v.INVALID_TAG,E(s,this.clonePosition())))}else return this.error(v.UNCLOSED_TAG,E(n,this.clonePosition()))}else return this.error(v.INVALID_TAG,E(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ll(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var c=E(n,this.clonePosition());return{val:{type:P.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!cl(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Pi.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Pi(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(v.EMPTY_ARGUMENT,E(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(v.MALFORMED_ARGUMENT,E(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:P.argument,value:i,location:E(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(v.MALFORMED_ARGUMENT,E(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ci(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),a=E(t,o);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(v.EXPECT_ARGUMENT_TYPE,E(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var u=sl(d.val);if(u.length===0)return this.error(v.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));var m=E(h,this.clonePosition());l={style:u,styleLocation:m}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var f=E(i,this.clonePosition());if(l&&Ha(l?.style,"::",0)){var T=al(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(T,l.styleLocation);return d.err?d:{val:{type:P.number,value:n,location:f,style:d.val},err:null}}else{if(T.length===0)return this.error(v.EXPECT_DATE_TIME_SKELETON,f);var w=T;this.locale&&(w=Va(T,this.locale));var u={type:De.dateTime,pattern:w,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?_a(w):{}},b=s==="date"?P.date:P.time;return{val:{type:b,value:n,location:f,style:u},err:null}}}return{val:{type:s==="number"?P.number:s==="date"?P.date:P.time,value:n,location:f,style:(o=l?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS,E(S,A({},S)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),R=0;if(s!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),k=this.parseIdentifierIfPossible(),R=d.val}var U=this.tryParsePluralOrSelectOptions(t,s,r,k);if(U.err)return U;var g=this.tryParseArgumentClose(i);if(g.err)return g;var $=E(i,this.clonePosition());return s==="select"?{val:{type:P.select,value:n,options:Ua(U.val),location:$},err:null}:{val:{type:P.plural,value:n,options:Ua(U.val),offset:R,pluralType:s==="plural"?"cardinal":"ordinal",location:$},err:null}}default:return this.error(v.INVALID_ARGUMENT_TYPE,E(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,E(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=ka(t)}catch{return this.error(v.INVALID_NUMBER_SKELETON,r)}return{val:{type:De.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ma(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,a=!1,s=[],c=new Set,l=i.value,h=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var u=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR,v.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;h=E(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?v.DUPLICATE_SELECT_ARGUMENT_SELECTOR:v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(a=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,r,n);if(g.err)return g;var f=this.tryParseArgumentClose(m);if(f.err)return f;s.push([l,{value:g.val,location:E(m,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,h=o.location}return s.length===0?this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR:v.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(v.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var c=E(i,this.clonePosition());return o?(a*=n,ol(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Da(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ha(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&za(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function Ii(e){return e>=97&&e<=122||e>=65&&e<=90}function cl(e){return Ii(e)||e===47}function ll(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function za(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function hl(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ki(e){e.forEach(function(t){if(delete t.location,Hr(t)||Ur(t))for(var r in t.options)delete t.options[r].location,ki(t.options[r].value);else Mr(t)&&Br(t.style)||(Vr(t)||$r(t))&&Yt(t.style)?delete t.style.location:Dr(t)&&ki(t.children)})}function Fa(e,t){t===void 0&&(t={}),t=A({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ga(e,t).parse();if(r.err){var n=SyntaxError(v[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||ki(r.val),r.val}function Wt(e,t){var r=t&&t.cache?t.cache:gl,n=t&&t.serializer?t.serializer:fl,i=t&&t.strategy?t.strategy:ul;return i(e,{cache:r,serializer:n})}function dl(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ka(e,t,r,n){var i=dl(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function ja(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,n),t.set(i,o)),o}function Ni(e,t,r,n,i){return r.bind(t,e,n,i)}function ul(e,t){var r=e.length===1?Ka:ja;return Ni(e,this,r,t.cache.create(),t.serializer)}function ml(e,t){return Ni(e,this,ja,t.cache.create(),t.serializer)}function pl(e,t){return Ni(e,this,Ka,t.cache.create(),t.serializer)}var fl=function(){return JSON.stringify(arguments)};function Oi(){this.cache=Object.create(null)}Oi.prototype.get=function(e){return this.cache[e]};Oi.prototype.set=function(e,t){this.cache[e]=t};var gl={create:function(){return new Oi}},Gr={variadic:ml,monadic:pl};var Be;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Be||(Be={}));var qt=function(e){jt(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error);var Ri=function(e){jt(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Be.INVALID_VALUE,o)||this}return t}(qt);var Ya=function(e){jt(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Be.INVALID_VALUE,i)||this}return t}(qt);var Xa=function(e){jt(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Be.MISSING_VALUE,n)||this}return t}(qt);var F;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(F||(F={}));function xl(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==F.literal||r.type!==F.literal?t.push(r):n.value+=r.value,t},[])}function bl(e){return typeof e=="function"}function Zt(e,t,r,n,i,o,a){if(e.length===1&&yi(e[0]))return[{type:F.literal,value:e[0].value}];for(var s=[],c=0,l=e;c{throw new Error(`Failed to get fragment: ${e}`)};async function dc(e,t,r,n){let i=r?`${e}/adobe/sites/cf/fragments/${t}`:`${e}/adobe/sites/fragments/${t}`,o=await fetch(i,{cache:"default",credentials:"omit",headers:n}).catch(a=>ra(a.message));return o?.ok||ra(`${o.status} ${o.statusText}`),o.json()}var Zn,Se,Qn=class{constructor(){V(this,Se,new Map)}clear(){L(this,Se).clear()}add(...t){t.forEach(r=>{let{id:n}=r;n&&L(this,Se).set(n,r)})}has(t){return L(this,Se).has(t)}get(t){return L(this,Se).get(t)}remove(t){L(this,Se).delete(t)}};Se=new WeakMap;var Tr=new Qn,Ue,he,Te,Dt,de,ut,Gt,ei,yr,ia,_r,oa,Jn=class extends HTMLElement{constructor(){super();V(this,Gt);V(this,yr);V(this,_r);p(this,"cache",Tr);V(this,Ue,void 0);V(this,he,void 0);V(this,Te,void 0);V(this,Dt,!1);V(this,de,void 0);V(this,ut,!1);this.attachShadow({mode:"open"}),this.shadowRoot.adoptedStyleSheets=[na];let r=this.getAttribute(hc);["",!0,"true"].includes(r)&&(B(this,Dt,!0),Zn||(Zn={Authorization:`Bearer ${window.adobeid?.authorize?.()}`}))}static get observedAttributes(){return[ea,ta]}attributeChangedCallback(r,n,i){r===ea&&(B(this,Te,i),this.refresh(!1)),r===ta&&B(this,ut,["","true"].includes(i))}connectedCallback(){if(!L(this,Te)){ge(this,Gt,ei).call(this,"Missing fragment id");return}}async refresh(r=!0){L(this,de)&&!await Promise.race([L(this,de),Promise.resolve(!1)])||(r&&Tr.remove(L(this,Te)),B(this,de,this.fetchData().then(()=>(this.dispatchEvent(new CustomEvent(Re,{detail:this.data,bubbles:!0,composed:!0})),!0)).catch(n=>(ge(this,Gt,ei).call(this,"Network error: failed to load fragment"),B(this,de,null),!1))),L(this,de))}async fetchData(){B(this,Ue,null),B(this,he,null);let r=Tr.get(L(this,Te));r||(r=await dc(lc,L(this,Te),L(this,ut),L(this,Dt)?Zn:void 0),Tr.add(r)),B(this,Ue,r)}get updateComplete(){return L(this,de)??Promise.reject(new Error("AEM fragment cannot be loaded"))}get data(){return L(this,he)?L(this,he):(L(this,ut)?ge(this,yr,ia).call(this):ge(this,_r,oa).call(this),L(this,he))}};Ue=new WeakMap,he=new WeakMap,Te=new WeakMap,Dt=new WeakMap,de=new WeakMap,ut=new WeakMap,Gt=new WeakSet,ei=function(r){this.classList.add("error"),this.dispatchEvent(new CustomEvent(Oe,{detail:r,bubbles:!0,composed:!0}))},yr=new WeakSet,ia=function(){let{fields:r,id:n,tags:i}=L(this,Ue);B(this,he,r.reduce((o,{name:a,multiple:s,values:c})=>(o.fields[a]=s?c:c[0],o),{fields:{},id:n,tags:i}))},_r=new WeakSet,oa=function(){let{fields:r,id:n,tags:i}=L(this,Ue);B(this,he,Object.entries(r).reduce((o,[a,s])=>(o.fields[a]=s?.mimeType?s.value:s??"",o),{fields:{},id:n,tags:i}))};customElements.define("aem-fragment",Jn);var ti;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(ti||(ti={}));var U;(function(e){e.MONTH="MONTH",e.YEAR="YEAR",e.TWO_YEARS="TWO_YEARS",e.THREE_YEARS="THREE_YEARS",e.PERPETUAL="PERPETUAL",e.TERM_LICENSE="TERM_LICENSE",e.ACCESS_PASS="ACCESS_PASS",e.THREE_MONTHS="THREE_MONTHS",e.SIX_MONTHS="SIX_MONTHS"})(U||(U={}));var N;(function(e){e.ANNUAL="ANNUAL",e.MONTHLY="MONTHLY",e.TWO_YEARS="TWO_YEARS",e.THREE_YEARS="THREE_YEARS",e.P1D="P1D",e.P1Y="P1Y",e.P3Y="P3Y",e.P10Y="P10Y",e.P15Y="P15Y",e.P3D="P3D",e.P7D="P7D",e.P30D="P30D",e.HALF_YEARLY="HALF_YEARLY",e.QUARTERLY="QUARTERLY"})(N||(N={}));var ri;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(ri||(ri={}));var ni;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(ni||(ni={}));var ii;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(ii||(ii={}));var oi;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(oi||(oi={}));var aa="tacocat.js";var Lr=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),sa=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function R(e,t={},{metadata:r=!0,search:n=!0,storage:i=!0}={}){let o;if(n&&o==null){let a=new URLSearchParams(window.location.search),s=mt(n)?n:e;o=a.get(s)}if(i&&o==null){let a=mt(i)?i:e;o=window.sessionStorage.getItem(a)??window.localStorage.getItem(a)}if(r&&o==null){let a=uc(mt(r)?r:e);o=document.documentElement.querySelector(`meta[name="${a}"]`)?.content}return o??t[e]}var pt=()=>{};var ca=e=>typeof e=="boolean",Ht=e=>typeof e=="function",wr=e=>typeof e=="number",la=e=>e!=null&&typeof e=="object";var mt=e=>typeof e=="string",ai=e=>mt(e)&&e,ft=e=>wr(e)&&Number.isFinite(e)&&e>0;function gt(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function S(e,t){if(ca(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function ye(e,t,r){let n=Object.values(t);return n.find(i=>Lr(i,e))??r??n[0]}function uc(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function xt(e,t=1){return wr(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var mc=Date.now(),si=()=>`(+${Date.now()-mc}ms)`,Pr=new Set,pc=S(R("tacocat.debug",{},{metadata:!1}),typeof process<"u"&&process.env?.DEBUG);function ha(e){let t=`[${aa}/${e}]`,r=(a,s,...c)=>a?!0:(i(s,...c),!1),n=pc?(a,...s)=>{console.debug(`${t} ${a}`,...s,si())}:()=>{},i=(a,...s)=>{let c=`${t} ${a}`;Pr.forEach(([l])=>l(c,...s))};return{assert:r,debug:n,error:i,warn:(a,...s)=>{let c=`${t} ${a}`;Pr.forEach(([,l])=>l(c,...s))}}}function fc(e,t){let r=[e,t];return Pr.add(r),()=>{Pr.delete(r)}}fc((e,...t)=>{console.error(e,...t,si())},(e,...t)=>{console.warn(e,...t,si())});var gc="no promo",da="promo-tag",xc="yellow",bc="neutral",vc=(e,t,r)=>{let n=o=>o||gc,i=r?` (was "${n(t)}")`:"";return`${n(e)}${i}`},Ac="cancel-context",zt=(e,t)=>{let r=e===Ac,n=!r&&e?.length>0,i=(n||r)&&(t&&t!=e||!t&&!r),o=i&&n||!i&&!!t,a=o?e||t:void 0;return{effectivePromoCode:a,overridenPromoCode:e,className:o?da:`${da} no-promo`,text:vc(a,t,i),variant:o?xc:bc,isOverriden:i}};var ci="ABM",li="PUF",hi="M2M",di="PERPETUAL",ui="P3Y",Ec="TAX_INCLUSIVE_DETAILS",Sc="TAX_EXCLUSIVE",ua={ABM:ci,PUF:li,M2M:hi,PERPETUAL:di,P3Y:ui},Wu={[ci]:{commitment:U.YEAR,term:N.MONTHLY},[li]:{commitment:U.YEAR,term:N.ANNUAL},[hi]:{commitment:U.MONTH,term:N.MONTHLY},[di]:{commitment:U.PERPETUAL,term:void 0},[ui]:{commitment:U.THREE_MONTHS,term:N.P3Y}},ma="Value is not an offer",Cr=e=>{if(typeof e!="object")return ma;let{commitment:t,term:r}=e,n=Tc(t,r);return{...e,planType:n}};var Tc=(e,t)=>{switch(e){case void 0:return ma;case"":return"";case U.YEAR:return t===N.MONTHLY?ci:t===N.ANNUAL?li:"";case U.MONTH:return t===N.MONTHLY?hi:"";case U.PERPETUAL:return di;case U.TERM_LICENSE:return t===N.P3Y?ui:"";default:return""}};function mi(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:i,priceWithoutDiscountAndTax:o,taxDisplay:a}=t;if(a!==Ec)return e;let s={...e,priceDetails:{...t,price:i??r,priceWithoutDiscount:o??n,taxDisplay:Sc}};return s.offerType==="TRIAL"&&s.priceDetails.price===0&&(s.priceDetails.price=s.priceDetails.priceWithoutDiscount),s}var pi=function(e,t){return pi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},pi(e,t)};function Ft(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pi(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var T=function(){return T=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0}),r=[],n=0,i=t;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Lc,function(s,c,l,h,d,u){if(c)t.minimumIntegerDigits=l.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(u)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ta.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ba.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ba,function(s,c,l,h,d,u){return l==="*"?t.minimumFractionDigits=c.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&u?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+u.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""}),i.options.length&&(t=T(T({},t),va(i.options[0])));continue}if(Sa.test(i.stem)){t=T(T({},t),va(i.stem));continue}var o=ya(i.stem);o&&(t=T(T({},t),o));var a=wc(i.stem);a&&(t=T(T({},t),a))}return t}var xi,Pc=new RegExp("^"+gi.source+"*"),Cc=new RegExp(gi.source+"*$");function A(e,t){return{start:e,end:t}}var kc=!!String.prototype.startsWith,Ic=!!String.fromCodePoint,Nc=!!Object.fromEntries,Rc=!!String.prototype.codePointAt,Oc=!!String.prototype.trimStart,Mc=!!String.prototype.trimEnd,$c=!!Number.isSafeInteger,Vc=$c?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},vi=!0;try{La=ka("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),vi=((xi=La.exec("a"))===null||xi===void 0?void 0:xi[0])==="a"}catch{vi=!1}var La,wa=kc?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Ai=Ic?String.fromCodePoint:function(){for(var t=[],r=0;ro;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},Pa=Nc?Object.fromEntries:function(t){for(var r={},n=0,i=t;n=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Uc=Oc?function(t){return t.trimStart()}:function(t){return t.replace(Pc,"")},Dc=Mc?function(t){return t.trimEnd()}:function(t){return t.replace(Cc,"")};function ka(e,t){return new RegExp(e,t)}var Ei;vi?(bi=ka("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Ei=function(t,r){var n;bi.lastIndex=r;var i=bi.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}):Ei=function(t,r){for(var n=[];;){var i=Ca(t,r);if(i===void 0||Na(i)||zc(i))break;n.push(i),r+=i>=65536?2:1}return Ai.apply(void 0,n)};var bi,Ia=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:P.pound,location:A(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(v.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Si(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:P.literal,value:"<"+i+"/>",location:A(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("")){if(this.isEOF()||!Si(this.char()))return this.error(v.INVALID_TAG,A(s,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(v.UNMATCHED_CLOSING_TAG,A(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:P.tag,value:i,children:a,location:A(n,this.clonePosition())},err:null}:this.error(v.INVALID_TAG,A(s,this.clonePosition())))}else return this.error(v.UNCLOSED_TAG,A(n,this.clonePosition()))}else return this.error(v.INVALID_TAG,A(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Hc(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var c=A(n,this.clonePosition());return{val:{type:P.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Gc(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Ai.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Ai(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(v.EMPTY_ARGUMENT,A(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(v.MALFORMED_ARGUMENT,A(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:P.argument,value:i,location:A(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(v.MALFORMED_ARGUMENT,A(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ei(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),a=A(t,o);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(v.EXPECT_ARGUMENT_TYPE,A(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var u=Dc(d.val);if(u.length===0)return this.error(v.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var m=A(h,this.clonePosition());l={style:u,styleLocation:m}}var f=this.tryParseArgumentClose(i);if(f.err)return f;var g=A(i,this.clonePosition());if(l&&wa(l?.style,"::",0)){var y=Uc(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(y,l.styleLocation);return d.err?d:{val:{type:P.number,value:n,location:g,style:d.val},err:null}}else{if(y.length===0)return this.error(v.EXPECT_DATE_TIME_SKELETON,g);var u={type:De.dateTime,pattern:y,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ga(y):{}},w=s==="date"?P.date:P.time;return{val:{type:w,value:n,location:g,style:u},err:null}}}return{val:{type:s==="number"?P.number:s==="date"?P.date:P.time,value:n,location:g,style:(o=l?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS,A(b,T({},b)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),O=0;if(s!=="select"&&E.value==="offset"){if(!this.bumpIf(":"))return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),E=this.parseIdentifierIfPossible(),O=d.val}var C=this.tryParsePluralOrSelectOptions(t,s,r,E);if(C.err)return C;var f=this.tryParseArgumentClose(i);if(f.err)return f;var z=A(i,this.clonePosition());return s==="select"?{val:{type:P.select,value:n,options:Pa(C.val),location:z},err:null}:{val:{type:P.plural,value:n,options:Pa(C.val),offset:O,pluralType:s==="plural"?"cardinal":"ordinal",location:z},err:null}}default:return this.error(v.INVALID_ARGUMENT_TYPE,A(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,A(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Ea(t)}catch{return this.error(v.INVALID_NUMBER_SKELETON,r)}return{val:{type:De.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?_a(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,a=!1,s=[],c=new Set,l=i.value,h=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var u=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR,v.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;h=A(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?v.DUPLICATE_SELECT_ARGUMENT_SELECTOR:v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(a=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(t+1,r,n);if(f.err)return f;var g=this.tryParseArgumentClose(m);if(g.err)return g;s.push([l,{value:f.val,location:A(m,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,h=o.location}return s.length===0?this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR:v.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(v.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var c=A(i,this.clonePosition());return o?(a*=n,Vc(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Ca(this.message,t);if(r===void 0)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(wa(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Na(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function Si(e){return e>=97&&e<=122||e>=65&&e<=90}function Gc(e){return Si(e)||e===47}function Hc(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Na(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function zc(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Ti(e){e.forEach(function(t){if(delete t.location,Or(t)||Mr(t))for(var r in t.options)delete t.options[r].location,Ti(t.options[r].value);else Ir(t)&&Vr(t.style)||(Nr(t)||Rr(t))&&Kt(t.style)?delete t.style.location:$r(t)&&Ti(t.children)})}function Ra(e,t){t===void 0&&(t={}),t=T({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ia(e,t).parse();if(r.err){var n=SyntaxError(v[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||Ti(r.val),r.val}function Bt(e,t){var r=t&&t.cache?t.cache:Xc,n=t&&t.serializer?t.serializer:jc,i=t&&t.strategy?t.strategy:Kc;return i(e,{cache:r,serializer:n})}function Fc(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Oa(e,t,r,n){var i=Fc(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function Ma(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,n),t.set(i,o)),o}function yi(e,t,r,n,i){return r.bind(t,e,n,i)}function Kc(e,t){var r=e.length===1?Oa:Ma;return yi(e,this,r,t.cache.create(),t.serializer)}function Bc(e,t){return yi(e,this,Ma,t.cache.create(),t.serializer)}function Yc(e,t){return yi(e,this,Oa,t.cache.create(),t.serializer)}var jc=function(){return JSON.stringify(arguments)};function _i(){this.cache=Object.create(null)}_i.prototype.get=function(e){return this.cache[e]};_i.prototype.set=function(e,t){this.cache[e]=t};var Xc={create:function(){return new _i}},Ur={variadic:Bc,monadic:Yc};var Ge;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ge||(Ge={}));var Yt=function(e){Ft(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error);var Li=function(e){Ft(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'+r+'": "'+n+'". Options are "'+Object.keys(i).join('", "')+'"',Ge.INVALID_VALUE,o)||this}return t}(Yt);var $a=function(e){Ft(t,e);function t(r,n,i){return e.call(this,'Value for "'+r+'" must be of type '+n,Ge.INVALID_VALUE,i)||this}return t}(Yt);var Va=function(e){Ft(t,e);function t(r,n){return e.call(this,'The intl string context variable "'+r+'" was not provided to the string "'+n+'"',Ge.MISSING_VALUE,n)||this}return t}(Yt);var K;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(K||(K={}));function Wc(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==K.literal||r.type!==K.literal?t.push(r):n.value+=r.value,t},[])}function qc(e){return typeof e=="function"}function jt(e,t,r,n,i,o,a){if(e.length===1&&fi(e[0]))return[{type:K.literal,value:e[0].value}];for(var s=[],c=0,l=e;c0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=Fa,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var qa=Wa;var Sl=/[0-9\-+#]/,yl=/[^\d\-+#]/g;function Za(e){return e.search(Sl)}function Tl(e="#.##"){let t={},r=e.length,n=Za(e);t.prefix=n>0?e.substring(0,n):"";let i=Za(e.split("").reverse().join("")),o=r-i,a=e.substring(o,o+1),s=o+(a==="."||a===","?1:0);t.suffix=i>0?e.substring(s,r):"",t.mask=e.substring(n,s),t.maskHasNegativeSign=t.mask.charAt(0)==="-",t.maskHasPositiveSign=t.mask.charAt(0)==="+";let c=t.mask.match(yl);return t.decimal=c&&c[c.length-1]||".",t.separator=c&&c[1]&&c[0]||",",c=t.mask.split(t.decimal),t.integer=c[0],t.fraction=c[1],t}function Ll(e,t,r){let n=!1,i={value:e};e<0&&(n=!0,i.value=-i.value),i.sign=n?"-":"",i.value=Number(i.value).toFixed(t.fraction&&t.fraction.length),i.value=Number(i.value).toString();let o=t.fraction&&t.fraction.lastIndexOf("0"),[a="0",s=""]=i.value.split(".");return(!s||s&&s.length<=o)&&(s=o<0?"":(+("0."+s)).toFixed(o+1).replace("0.","")),i.integer=a,i.fraction=s,_l(i,t),(i.result==="0"||i.result==="")&&(n=!1,i.sign=""),!n&&t.maskHasPositiveSign?i.sign="+":n&&t.maskHasPositiveSign?i.sign="-":n&&(i.sign=r&&r.enforceMaskSign&&!t.maskHasNegativeSign?"":"-"),i}function _l(e,t){e.result="";let r=t.integer.split(t.separator),n=r.join(""),i=n&&n.indexOf("0");if(i>-1)for(;e.integer.lengthe*12,ns=(e,t)=>{let{start:r,end:n,displaySummary:{amount:i,duration:o,minProductQuantity:a,outcomeType:s}={}}=e;if(!(i&&o&&s&&a))return!1;let c=t?new Date(t):new Date;if(!r||!n)return!1;let l=new Date(r),h=new Date(n);return c>=l&&c<=h},Ge={MONTH:"MONTH",YEAR:"YEAR"},Cl={[N.ANNUAL]:12,[N.MONTHLY]:1,[N.THREE_YEARS]:36,[N.TWO_YEARS]:24},$i=(e,t)=>({accept:e,round:t}),Il=[$i(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),$i(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),$i(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],Hi={[H.YEAR]:{[N.MONTHLY]:Ge.MONTH,[N.ANNUAL]:Ge.YEAR},[H.MONTH]:{[N.MONTHLY]:Ge.MONTH}},kl=(e,t)=>e.indexOf(`'${t}'`)===0,Nl=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=os(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+Rl(e)),r},Ol=e=>{let t=Ml(e),r=kl(e,t),n=e.replace(/'.*?'/,""),i=ts.test(n)||rs.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:i}},is=e=>e.replace(ts,es).replace(rs,es),Rl=e=>e.match(/#(.?)#/)?.[1]===Qa?Pl:Qa,Ml=e=>e.match(/'(.*?)'/)?.[1]??"",os=e=>e.match(/0(.?)0/)?.[1]??"";function At({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},i,o=a=>a){let{currencySymbol:a,isCurrencyFirst:s,hasCurrencySpace:c}=Ol(e),l=r?os(e):"",h=Nl(e,r),d=r?2:0,u=o(t,{currencySymbol:a}),m=n?u.toLocaleString("hi-IN",{minimumFractionDigits:d,maximumFractionDigits:d}):Ja(h,u),g=r?m.lastIndexOf(l):m.length,f=m.substring(0,g),T=m.substring(g+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,m).replace(/SYMBOL/,a),currencySymbol:a,decimals:T,decimalsDelimiter:l,hasCurrencySpace:c,integer:f,isCurrencyFirst:s,recurrenceTerm:i}}var as=e=>{let{commitment:t,term:r,usePrecision:n}=e,i=Cl[r]??1;return At(e,i>1?Ge.MONTH:Hi[t]?.[r],o=>{let a={divisor:i,price:o,usePrecision:n},{round:s}=Il.find(({accept:c})=>c(a));if(!s)throw new Error(`Missing rounding rule for: ${JSON.stringify(a)}`);return s(a)})},ss=({commitment:e,term:t,...r})=>At(r,Hi[e]?.[t]),cs=e=>{let{commitment:t,instant:r,price:n,originalPrice:i,priceWithoutDiscount:o,promotion:a,quantity:s=1,term:c}=e;if(t===H.YEAR&&c===N.MONTHLY){if(!a)return At(e,Ge.YEAR,Vi);let{displaySummary:{outcomeType:l,duration:h,minProductQuantity:d=1}={}}=a;switch(l){case"PERCENTAGE_DISCOUNT":if(s>=d&&ns(a,r)){let u=parseInt(h.replace("P","").replace("M",""));if(isNaN(u))return Vi(n);let m=s*i*u,g=s*o*(12-u),f=Math.floor((m+g)*100)/100;return At({...e,price:f},Ge.YEAR)}default:return At(e,Ge.YEAR,()=>Vi(o??n))}}return At(e,Hi[t]?.[c])};var Vl={recurrenceLabel:"{recurrenceTerm, select, MONTH {/mo} YEAR {/yr} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per month} YEAR {per year} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per license} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per license} other {}}",freeLabel:"Free",freeAriaLabel:"Free",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Alternatively at {alternativePrice}",strikethroughAriaLabel:"Regularly at {strikethroughPrice}"},$l=Aa("ConsonantTemplates/price"),Hl=/<\/?[^>]+(>|$)/g,z={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAnnual:"price-annual",containerAnnualPrefix:"price-annual-prefix",containerAnnualSuffix:"price-annual-suffix",disabled:"disabled",currencySpace:"price-currency-space",currencySymbol:"price-currency-symbol",decimals:"price-decimals",decimalsDelimiter:"price-decimals-delimiter",integer:"price-integer",recurrence:"price-recurrence",taxInclusivity:"price-tax-inclusivity",unitType:"price-unit-type"},ze={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel"},Ul="TAX_EXCLUSIVE",Dl=e=>va(e)?Object.entries(e).filter(([,t])=>ft(t)||kr(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+xa(n)+'"'}`,""):"",j=(e,t,r,n=!1)=>`${n?is(t):t??""} `;function Bl(e,{accessibleLabel:t,currencySymbol:r,decimals:n,decimalsDelimiter:i,hasCurrencySpace:o,integer:a,isCurrencyFirst:s,recurrenceLabel:c,perUnitLabel:l,taxInclusivityLabel:h},d={}){let u=j(z.currencySymbol,r),m=j(z.currencySpace,o?" ":""),g="";return s&&(g+=u+m),g+=j(z.integer,a),g+=j(z.decimalsDelimiter,i),g+=j(z.decimals,n),s||(g+=m+u),g+=j(z.recurrence,c,null,!0),g+=j(z.unitType,l,null,!0),g+=j(z.taxInclusivity,h,!0),j(e,g,{...d,"aria-label":t})}var q=({displayOptical:e=!1,displayStrikethrough:t=!1,displayAnnual:r=!1,instant:n=void 0}={})=>({country:i,displayFormatted:o=!0,displayRecurrence:a=!0,displayPerUnit:s=!1,displayTax:c=!1,language:l,literals:h={},quantity:d=1}={},{commitment:u,offerSelectorIds:m,formatString:g,price:f,priceWithoutDiscount:T,taxDisplay:w,taxTerm:b,term:S,usePrecision:k,promotion:R}={},U={})=>{Object.entries({country:i,formatString:g,language:l,price:f}).forEach(([ae,Qr])=>{if(Qr==null)throw new Error(`Argument "${ae}" is missing for osi ${m?.toString()}, country ${i}, language ${l}`)});let $={...Vl,...h},pe=`${l.toLowerCase()}-${i.toUpperCase()}`;function Z(ae,Qr){let en=$[ae];if(en==null)return"";try{return new qa(en.replace(Hl,""),pe).format(Qr)}catch{return $l.error("Failed to format literal:",en),""}}let Lt=t&&T?T:f,We=e?as:ss;r&&(We=cs);let{accessiblePrice:_t,recurrenceTerm:fe,...ge}=We({commitment:u,formatString:g,instant:n,isIndianPrice:i==="IN",originalPrice:f,priceWithoutDiscount:T,price:e?f:Lt,promotion:R,quantity:d,term:S,usePrecision:k}),J=_t,wt="";if(y(a)&&fe){let ae=Z(ze.recurrenceAriaLabel,{recurrenceTerm:fe});ae&&(J+=" "+ae),wt=Z(ze.recurrenceLabel,{recurrenceTerm:fe})}let Jr="";if(y(s)){Jr=Z(ze.perUnitLabel,{perUnit:"LICENSE"});let ae=Z(ze.perUnitAriaLabel,{perUnit:"LICENSE"});ae&&(J+=" "+ae)}let Pt="";y(c)&&b&&(Pt=Z(w===Ul?ze.taxExclusiveLabel:ze.taxInclusiveLabel,{taxTerm:b}),Pt&&(J+=" "+Pt)),t&&(J=Z(ze.strikethroughAriaLabel,{strikethroughPrice:J}));let Ct=z.container;if(e&&(Ct+=" "+z.containerOptical),t&&(Ct+=" "+z.containerStrikethrough),r&&(Ct+=" "+z.containerAnnual),y(o))return Bl(Ct,{...ge,accessibleLabel:J,recurrenceLabel:wt,perUnitLabel:Jr,taxInclusivityLabel:Pt},U);let{currencySymbol:io,decimals:Os,decimalsDelimiter:Rs,hasCurrencySpace:oo,integer:Ms,isCurrencyFirst:Vs}=ge,qe=[Ms,Rs,Os];Vs?(qe.unshift(oo?"\xA0":""),qe.unshift(io)):(qe.push(oo?"\xA0":""),qe.push(io)),qe.push(wt,Jr,Pt);let $s=qe.join("");return j(Ct,$s,U)},ls=()=>(e,t,r)=>{let i=(e.displayOldPrice===void 0||y(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${q()(e,t,r)}${i?" "+q({displayStrikethrough:!0})(e,t,r):""}`},hs=()=>(e,t,r)=>{let{instant:n}=e;try{n||(n=new URLSearchParams(document.location.search).get("instant")),n&&(n=new Date(n))}catch{n=void 0}let i={...e,displayTax:!1,displayPerUnit:!1};return`${(e.displayOldPrice===void 0||y(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price?q({displayStrikethrough:!0})(i,t,r)+" ":""}${q()(e,t,r)}${j(z.containerAnnualPrefix," (")}${q({displayAnnual:!0,instant:n})(i,t,r)}${j(z.containerAnnualSuffix,")")}`},ds=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${q()(e,t,r)}${j(z.containerAnnualPrefix," (")}${q({displayAnnual:!0})(n,t,r)}${j(z.containerAnnualSuffix,")")}`};var Ui=q(),Di=ls(),Bi=q({displayOptical:!0}),Gi=q({displayStrikethrough:!0}),zi=q({displayAnnual:!0}),Fi=ds(),Ki=hs();var Gl=(e,t)=>{if(!(!xt(e)||!xt(t)))return Math.floor((t-e)/t*100)},us=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,i=Gl(r,n);return i===void 0?' ':`${i}% `};var ji=us();var{freeze:Jt}=Object,re=Jt({...Ue}),ne=Jt({...Q}),Fe={STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"},Yi=Jt({...H}),Xi=Jt({...Sa}),Wi=Jt({...N});var ms="mas-commerce-service";function ps(e,{once:t=!1}={}){let r=null;function n(){let i=document.querySelector(ms);i!==r&&(r=i,i&&e(i))}return document.addEventListener(it,n,{once:t}),Ke(n),()=>document.removeEventListener(it,n)}function Qt(e,{country:t,forceTaxExclusive:r,perpetual:n}){let i;if(e.length<2)i=e;else{let o=t==="GB"||n?"EN":"MULT",[a,s]=e;i=[a.language===o?a:s]}return r&&(i=i.map(Ei)),i}var Ke=e=>window.setTimeout(e);function Et(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(vt).filter(xt);return r.length||(r=[t]),r}function zr(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(pi)}function Y(){return document.getElementsByTagName(ms)?.[0]}var je={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},fs=1e3,gs=new Set;function zl(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function xs(e){if(e==null)return;let t=typeof e;if(t==="function")return e.name?`function ${e.name}`:"function";if(t==="object"){if(e instanceof Error)return e.message;if(typeof e.originatingRequest=="string"){let{message:n,originatingRequest:i,status:o}=e;return[n,o,i].filter(Boolean).join(" ")}let r=e[Symbol.toStringTag]??Object.getPrototypeOf(e).constructor.name;if(!je.serializableTypes.includes(r))return r}return e}function Fl(e,t){if(!je.ignoredProperties.includes(e))return xs(t)}var qi={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],i=[],o=t;r.forEach(l=>{l!=null&&(zl(l)?n:i).push(l)}),n.length&&(o+=" "+n.map(xs).join(" "));let{pathname:a,search:s}=window.location,c=`${je.delimiter}page=${a}${s}`;c.length>fs&&(c=`${c.slice(0,fs)}`),o+=c,i.length&&(o+=`${je.delimiter}facts=`,o+=JSON.stringify(i,Fl)),gs.has(o)||(gs.add(o),window.lana?.log(o,je))}};function St(e){Object.assign(je,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in je&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var L=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflow:re.V3,checkoutWorkflowStep:ne.EMAIL,country:"US",displayOldPrice:!0,displayPerUnit:!1,displayRecurrence:!0,displayTax:!1,env:Fe.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsBufferDelay:1,wcsURL:"https://www.adobe.com/web_commerce_artifact",landscape:Ve.PUBLISHED,wcsBufferLimit:1});var Zi=Object.freeze({LOCAL:"local",PROD:"prod",STAGE:"stage"});function Kl({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||L.language),t??(t=e?.split("_")?.[1]||L.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function Ji(e={}){let{commerce:t={}}=e,r=Fe.PRODUCTION,n=jn,i=O("checkoutClientId",t)??L.checkoutClientId,o=Le(O("checkoutWorkflow",t),re,L.checkoutWorkflow),a=ne.CHECKOUT;o===re.V3&&(a=Le(O("checkoutWorkflowStep",t),ne,L.checkoutWorkflowStep));let s=y(O("displayOldPrice",t),L.displayOldPrice),c=y(O("displayPerUnit",t),L.displayPerUnit),l=y(O("displayRecurrence",t),L.displayRecurrence),h=y(O("displayTax",t),L.displayTax),d=y(O("entitlement",t),L.entitlement),u=y(O("modal",t),L.modal),m=y(O("forceTaxExclusive",t),L.forceTaxExclusive),g=O("promotionCode",t)??L.promotionCode,f=Et(O("quantity",t)),T=O("wcsApiKey",t)??L.wcsApiKey,w=t?.env==="stage",b=Ve.PUBLISHED;["true",""].includes(t.allowOverride)&&(w=(O(Fn,t,{metadata:!1})?.toLowerCase()??t?.env)==="stage",b=Le(O(Kn,t),Ve,b)),w&&(r=Fe.STAGE,n=Yn);let k=vt(O("wcsBufferDelay",t),L.wcsBufferDelay),R=vt(O("wcsBufferLimit",t),L.wcsBufferLimit);return{...Kl(e),displayOldPrice:s,checkoutClientId:i,checkoutWorkflow:o,checkoutWorkflowStep:a,displayPerUnit:c,displayRecurrence:l,displayTax:h,entitlement:d,extraOptions:L.extraOptions,modal:u,env:r,forceTaxExclusive:m,promotionCode:g,quantity:f,wcsApiKey:T,wcsBufferDelay:k,wcsBufferLimit:R,wcsURL:n,landscape:b}}var Qi={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},jl=Date.now(),eo=new Set,to=new Set,bs=new Map,vs={append({level:e,message:t,params:r,timestamp:n,source:i}){console[e](`${n}ms [${i}] %c${t}`,"font-weight: bold;",...r)}},As={filter:({level:e})=>e!==Qi.DEBUG},Yl={filter:()=>!1};function Xl(e,t,r,n,i){return{level:e,message:t,namespace:r,get params(){return n.length===1&&Ft(n[0])&&(n=n[0](),Array.isArray(n)||(n=[n])),n},source:i,timestamp:Date.now()-jl}}function Wl(e){[...to].every(t=>t(e))&&eo.forEach(t=>t(e))}function Es(e){let t=(bs.get(e)??0)+1;bs.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:i=>Es(`${n.namespace}/${i}`),updateConfig:St};return Object.values(Qi).forEach(i=>{n[i]=(o,...a)=>Wl(Xl(i,o,e,a,r))}),Object.seal(n)}function Fr(...e){e.forEach(t=>{let{append:r,filter:n}=t;Ft(n)&&to.add(n),Ft(r)&&eo.add(r)})}function ql(e={}){let{name:t}=e,r=y(O("commerce.debug",{search:!0,storage:!0}),t===Zi.LOCAL);return Fr(r?vs:As),t===Zi.PROD&&Fr(qi),X}function Zl(){eo.clear(),to.clear()}var X={...Es(zn),Level:Qi,Plugins:{consoleAppender:vs,debugFilter:As,quietFilter:Yl,lanaAppender:qi},init:ql,reset:Zl,use:Fr};var Jl={[ce]:$n,[Se]:Hn,[le]:Un},Ql={[ce]:Bn,[le]:Gn},yt=class{constructor(t){p(this,"changes",new Map);p(this,"connected",!1);p(this,"dispose",gt);p(this,"error");p(this,"log");p(this,"options");p(this,"promises",[]);p(this,"state",Se);p(this,"timer",null);p(this,"value");p(this,"version",0);p(this,"wrapperElement");this.wrapperElement=t}update(){[ce,Se,le].forEach(t=>{this.wrapperElement.classList.toggle(Jl[t],t===this.state)})}notify(){(this.state===le||this.state===ce)&&(this.state===le?this.promises.forEach(({resolve:t})=>t(this.wrapperElement)):this.state===ce&&this.promises.forEach(({reject:t})=>t(this.error)),this.promises=[]),this.wrapperElement.dispatchEvent(new CustomEvent(Ql[this.state],{bubbles:!0}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){this.dispose=ps(()=>this.requestUpdate(!0))}disconnectedCallback(){this.connected&&(this.connected=!1,this.log?.debug("Disconnected:",{element:this.wrapperElement})),this.dispose(),this.dispose=gt}onceSettled(){let{error:t,promises:r,state:n}=this;return le===n?Promise.resolve(this.wrapperElement):ce===n?Promise.reject(t):new Promise((i,o)=>{r.push({resolve:i,reject:o})})}toggleResolved(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.state=le,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),Ke(()=>this.notify()),!0)}toggleFailed(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.error=r,this.state=ce,this.update(),this.log?.error("Failed:",{element:this.wrapperElement,error:r}),Ke(()=>this.notify()),!0)}togglePending(t){return this.version++,t&&(this.options=t),this.state=Se,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!Y()||this.timer)return;let r=X.module("mas-element"),{error:n,options:i,state:o,value:a,version:s}=this;this.state=Se,this.timer=Ke(async()=>{this.timer=null;let c=null;if(this.changes.size&&(c=Object.fromEntries(this.changes.entries()),this.changes.clear()),this.connected?this.log?.debug("Updated:",{element:this.wrapperElement,changes:c}):(this.connected=!0,this.log?.debug("Connected:",{element:this.wrapperElement,changes:c})),c||t)try{await this.wrapperElement.render?.()===!1&&this.state===Se&&this.version===s&&(this.state=o,this.error=n,this.value=a,this.update(),this.notify())}catch(l){r.error("Failed to render mas-element: ",l),this.toggleFailed(this.version,l,i)}})}};function Ss(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Kr(e,t={}){let{tag:r,is:n}=e,i=document.createElement(r,{is:n});return i.setAttribute("is",n),Object.assign(i.dataset,Ss(t)),i}function jr(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,Ss(t)),e):null}var eh="download",th="upgrade";function Yr(e,t={},r=""){let n=Y();if(!n)return null;let{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:u,wcsOsi:m,extraOptions:g}=n.collectCheckoutOptions(t),f=Kr(e,{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:u,wcsOsi:m,extraOptions:g});return r&&(f.innerHTML=`${r} `),f}function Xr(e){return class extends e{constructor(){super(...arguments);p(this,"checkoutActionHandler");p(this,"masElement",new yt(this))}attributeChangedCallback(n,i,o){this.masElement.attributeChangedCallback(n,i,o)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.clickHandler)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.clickHandler)}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}requestUpdate(n=!1){return this.masElement.requestUpdate(n)}static get observedAttributes(){return["data-checkout-workflow","data-checkout-workflow-step","data-extra-options","data-ims-country","data-perpetual","data-promotion-code","data-quantity","data-template","data-wcs-osi","data-entitlement","data-upgrade","data-modal"]}async render(n={}){if(!this.isConnected)return!1;let i=Y();if(!i)return!1;this.dataset.imsCountry||i.imsCountryPromise.then(d=>{d&&(this.dataset.imsCountry=d)},gt),n.imsCountry=null;let o=i.collectCheckoutOptions(n,this);if(!o.wcsOsi.length)return!1;let a;try{a=JSON.parse(o.extraOptions??"{}")}catch(d){this.masElement.log?.error("cannot parse exta checkout options",d)}let s=this.masElement.togglePending(o);this.setCheckoutUrl("");let c=i.resolveOfferSelectors(o),l=await Promise.all(c);l=l.map(d=>Qt(d,o)),o.country=this.dataset.imsCountry||o.country;let h=await i.buildCheckoutAction?.(l.flat(),{...a,...o},this);return this.renderOffers(l.flat(),o,{},h,s)}renderOffers(n,i,o={},a=void 0,s=void 0){if(!this.isConnected)return!1;let c=Y();if(!c)return!1;if(i={...JSON.parse(this.dataset.extraOptions??"null"),...i,...o},s??(s=this.masElement.togglePending(i)),this.checkoutActionHandler&&(this.checkoutActionHandler=void 0),a){this.classList.remove(eh,th),this.masElement.toggleResolved(s,n,i);let{url:h,text:d,className:u,handler:m}=a;return h&&this.setCheckoutUrl(h),d&&(this.firstElementChild.innerHTML=d),u&&this.classList.add(...u.split(" ")),m&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=m.bind(this)),!0}else if(n.length){if(this.masElement.toggleResolved(s,n,i)){let h=c.buildCheckoutURL(n,i);return this.setCheckoutUrl(h),!0}}else{let h=new Error(`Not provided: ${i?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(s,h,i))return this.setCheckoutUrl("#"),!0}}setCheckoutUrl(){}clickHandler(n){}updateOptions(n={}){let i=Y();if(!i)return!1;let{checkoutMarketSegment:o,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:u,quantity:m,wcsOsi:g}=i.collectCheckoutOptions(n);return jr(this,{checkoutMarketSegment:o,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:u,quantity:m,wcsOsi:g}),!0}}}var er=class er extends Xr(HTMLButtonElement){static createCheckoutButton(t={},r=""){return Yr(er,t,r)}setCheckoutUrl(t){this.setAttribute("data-href",t)}get href(){return this.getAttribute("data-href")}get isCheckoutButton(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}this.href&&(window.location.href=this.href)}};p(er,"is","checkout-button"),p(er,"tag","button");var Ye=er;window.customElements.get(Ye.is)||window.customElements.define(Ye.is,Ye,{extends:Ye.tag});function rh(e){return`https://${e==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var tr,Xe=class Xe extends HTMLAnchorElement{constructor(){super();G(this,tr,!1);this.setAttribute("is",Xe.is)}get isUptLink(){return!0}initializeWcsData(r,n){this.setAttribute("data-wcs-osi",r),n&&this.setAttribute("data-promotion-code",n),K(this,tr,!0),this.composePromoTermsUrl()}attributeChangedCallback(r,n,i){_(this,tr)&&this.composePromoTermsUrl()}composePromoTermsUrl(){let r=this.getAttribute("data-wcs-osi");if(!r){let d=this.closest("merch-card").querySelector("aem-fragment").getAttribute("fragment");console.error(`Missing 'data-wcs-osi' attribute on upt-link. Fragment: ${d}`);return}let n=Y(),i=[r],o=this.getAttribute("data-promotion-code"),{country:a,language:s,env:c}=n.settings,l={country:a,language:s,wcsOsi:i,promotionCode:o},h=n.resolveOfferSelectors(l);Promise.all(h).then(([[d]])=>{let u=`locale=${s}_${a}&country=${a}&offer_id=${d.offerId}`;o&&(u+=`&promotion_code=${encodeURIComponent(o)}`),this.href=`${rh(c)}?${u}`}).catch(d=>{console.error(`Could not resolve offer selectors for id: ${r}.`,d.message)})}static createFrom(r){let n=new Xe;for(let i of r.attributes)i.name!=="is"&&(i.name==="class"&&i.value.includes("upt-link")?n.setAttribute("class",i.value.replace("upt-link","").trim()):n.setAttribute(i.name,i.value));return n.innerHTML=r.innerHTML,n.setAttribute("tabindex",0),n}};tr=new WeakMap,p(Xe,"is","upt-link"),p(Xe,"tag","a"),p(Xe,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var me=Xe;window.customElements.get(me.is)||window.customElements.define(me.is,me,{extends:me.tag});var nh="#000000",ih="#F8D904",oh=/(accent|primary|secondary)(-(outline|link))?/,ah="mas:product_code/",sh="daa-ll",Wr="daa-lh",ch=["XL","L","M","S"];function lh(e,t,r){e.mnemonicIcon?.map((i,o)=>({icon:i,alt:e.mnemonicAlt[o]??"",link:e.mnemonicLink[o]??""}))?.forEach(({icon:i,alt:o,link:a})=>{if(a&&!/^https?:/.test(a))try{a=new URL(`https://${a}`).href.toString()}catch{a="#"}let s={slot:"icons",src:i,loading:t.loading,size:r?.size??"l"};o&&(s.alt=o),a&&(s.href=a);let c=te("merch-icon",s);t.append(c)})}function hh(e,t){e.badge&&(t.setAttribute("badge-text",e.badge),t.setAttribute("badge-color",e.badgeColor||nh),t.setAttribute("badge-background-color",e.badgeBackgroundColor||ih))}function dh(e,t,r){r?.includes(e.size)&&t.setAttribute("size",e.size)}function uh(e,t,r){e.cardTitle&&r&&t.append(te(r.tag,{slot:r.slot},e.cardTitle))}function mh(e,t,r){e.subtitle&&r&&t.append(te(r.tag,{slot:r.slot},e.subtitle))}function ph(e,t,r){if(e.backgroundImage){let n={loading:t.loading??"lazy",src:e.backgroundImage};if(e.backgroundImageAltText?n.alt=e.backgroundImageAltText:n.role="none",!r)return;if(r?.attribute){t.setAttribute(r.attribute,e.backgroundImage);return}t.append(te(r.tag,{slot:r.slot},te("img",n)))}}function fh(e,t,r){if(e.prices&&r){let n=te(r.tag,{slot:r.slot},e.prices);t.append(n)}}function gh(e,t,r){if(e.description&&r){let n=te(r.tag,{slot:r.slot},e.description);t.append(n)}}function xh(e,t){t.querySelectorAll("a.upt-link").forEach(n=>{let i=me.createFrom(n);n.replaceWith(i),i.initializeWcsData(e.osi,e.promoCode)})}function bh(e,t,r,n){let o=customElements.get("checkout-button").createCheckoutButton({},e.innerHTML);o.setAttribute("tabindex",0);for(let h of e.attributes)["class","is"].includes(h.name)||o.setAttribute(h.name,h.value);o.firstElementChild?.classList.add("spectrum-Button-label");let a=t.ctas.size??"M",s=`spectrum-Button--${n}`,c=ch.includes(a)?`spectrum-Button--size${a}`:"spectrum-Button--sizeM",l=["spectrum-Button",s,c];return r&&l.push("spectrum-Button--outline"),o.classList.add(...l),o}function vh(e,t,r,n){let i="fill";r&&(i="outline");let o=te("sp-button",{treatment:i,variant:n,tabIndex:0,size:t.ctas.size??"m"},e);return o.addEventListener("click",a=>{a.target!==e&&(a.stopPropagation(),e.click())}),o}function Ah(e,t){return e.classList.add("con-button"),t&&e.classList.add("blue"),e}function Eh(e,t,r,n){if(e.ctas){let{slot:i}=r.ctas,o=te("div",{slot:i},e.ctas),a=[...o.querySelectorAll("a")].map(s=>{let c=s.parentElement.tagName==="STRONG";if(t.consonant)return Ah(s,c);let l=oh.exec(s.className)?.[0]??"accent",h=l.includes("accent"),d=l.includes("primary"),u=l.includes("secondary"),m=l.includes("-outline");if(l.includes("-link"))return s;let f;return h||c?f="accent":d?f="primary":u&&(f="secondary"),t.spectrum==="swc"?vh(s,r,m,f):bh(s,r,m,f)});o.innerHTML="",o.append(...a),t.append(o)}}function Sh(e,t){let{tags:r}=e,n=r?.find(i=>i.startsWith(ah))?.split("/").pop();n&&(t.setAttribute(Wr,n),t.querySelectorAll("a[data-analytics-id],button[data-analytics-id]").forEach((i,o)=>{i.setAttribute(sh,`${i.dataset.analyticsId}-${o+1}`)}))}function yh(e){e.spectrum==="css"&&[["primary-link","primary"],["secondary-link","secondary"]].forEach(([t,r])=>{e.querySelectorAll(`a.${t}`).forEach(n=>{n.classList.remove(t),n.classList.add("spectrum-Link",`spectrum-Link--${r}`)})})}async function ys(e,t){let{fields:r}=e,{variant:n}=r;if(!n)return;t.querySelectorAll("[slot]").forEach(o=>{o.remove()}),t.removeAttribute("background-image"),t.removeAttribute("badge-background-color"),t.removeAttribute("badge-color"),t.removeAttribute("badge-text"),t.removeAttribute("size"),t.classList.remove("wide-strip"),t.classList.remove("thin-strip"),t.removeAttribute(Wr),t.variant=n,await t.updateComplete;let{aemFragmentMapping:i}=t.variantLayout;i&&(lh(r,t,i.mnemonics),hh(r,t),dh(r,t,i.size),uh(r,t,i.title),mh(r,t,i.subtitle),fh(r,t,i.prices),ph(r,t,i.backgroundImage),gh(r,t,i.description),xh(r,t),Eh(r,t,i,n),Sh(r,t),yh(t))}var Th="merch-card",Lh=":start",_h=":ready",wh=1e4,Ts="merch-card:",nr,ro,rr=class extends ee{constructor(){super();G(this,nr);p(this,"customerSegment");p(this,"marketSegment");p(this,"variantLayout");this.filters={},this.types="",this.selected=!1,this.spectrum="css",this.loading="lazy",this.handleAemFragmentEvents=this.handleAemFragmentEvents.bind(this)}static getFragmentMapping(r){return ia[r]}firstUpdated(){this.variantLayout=Qn(this,!1),this.variantLayout?.connectedCallbackHook(),this.aemFragment?.updateComplete.catch(()=>{this.style.display="none"})}willUpdate(r){(r.has("variant")||!this.variantLayout)&&(this.variantLayout=Qn(this),this.variantLayout.connectedCallbackHook())}updated(r){(r.has("badgeBackgroundColor")||r.has("borderColor"))&&this.style.setProperty("--consonant-merch-card-border",this.computedBorderStyle),this.variantLayout?.postCardUpdateHook(r)}get theme(){return this.closest("sp-theme")}get dir(){return this.closest("[dir]")?.getAttribute("dir")??"ltr"}get prices(){return Array.from(this.querySelectorAll('span[is="inline-price"][data-wcs-osi]'))}render(){if(!(!this.isConnected||!this.variantLayout||this.style.display==="none"))return this.variantLayout.renderLayout()}get computedBorderStyle(){return["twp","ccd-slice","ccd-suggested"].includes(this.variant)?"":`1px solid ${this.borderColor?this.borderColor:this.badgeBackgroundColor}`}get badgeElement(){return this.shadowRoot.getElementById("badge")}get headingmMSlot(){return this.shadowRoot.querySelector('slot[name="heading-m"]').assignedElements()[0]}get footerSlot(){return this.shadowRoot.querySelector('slot[name="footer"]')?.assignedElements()[0]}get price(){return this.headingmMSlot?.querySelector('span[is="inline-price"]')}get checkoutLinks(){return[...this.footerSlot?.querySelectorAll('a[is="checkout-link"]')??[]]}async toggleStockOffer({target:r}){if(!this.stockOfferOsis)return;let n=this.checkoutLinks;if(n.length!==0)for(let i of n){await i.onceSettled();let o=i.value?.[0]?.planType;if(!o)return;let a=this.stockOfferOsis[o];if(!a)return;let s=i.dataset.wcsOsi.split(",").filter(c=>c!==a);r.checked&&s.push(a),i.dataset.wcsOsi=s.join(",")}}handleQuantitySelection(r){let n=this.checkoutLinks;for(let i of n)i.dataset.quantity=r.detail.option}get titleElement(){return this.querySelector(this.variantLayout?.headingSelector||".card-heading")}get title(){return this.titleElement?.textContent?.trim()}get description(){return this.querySelector('[slot="body-xs"]')?.textContent?.trim()}updateFilters(r){let n={...this.filters};Object.keys(n).forEach(i=>{if(r){n[i].order=Math.min(n[i].order||2,2);return}let o=n[i].order;o===1||isNaN(o)||(n[i].order=Number(o)+1)}),this.filters=n}includes(r){return this.textContent.match(new RegExp(r,"i"))!==null}connectedCallback(){super.connectedCallback();let r=this.querySelector("aem-fragment")?.getAttribute("fragment");performance.mark(`${Ts}${r}${Lh}`),this.addEventListener(yr,this.handleQuantitySelection),this.addEventListener(Nn,this.merchCardReady,{once:!0}),this.updateComplete.then(()=>{this.merchCardReady()}),this.storageOptions?.addEventListener("change",this.handleStorageChange),this.addEventListener(Me,this.handleAemFragmentEvents),this.addEventListener(Re,this.handleAemFragmentEvents),this.aemFragment||setTimeout(()=>this.checkReady(),0)}disconnectedCallback(){super.disconnectedCallback(),this.variantLayout?.disconnectedCallbackHook(),this.removeEventListener(yr,this.handleQuantitySelection),this.storageOptions?.removeEventListener(Sr,this.handleStorageChange),this.removeEventListener(Me,this.handleAemFragmentEvents),this.removeEventListener(Re,this.handleAemFragmentEvents)}async handleAemFragmentEvents(r){if(r.type===Me&&xe(this,nr,ro).call(this,"AEM fragment cannot be loaded"),r.type===Re&&r.target.nodeName==="AEM-FRAGMENT"){let n=r.detail;await ys(n,this),this.checkReady()}}async checkReady(){let r=Promise.all([...this.querySelectorAll('span[is="inline-price"][data-wcs-osi],a[is="checkout-link"][data-wcs-osi]')].map(o=>o.onceSettled().catch(()=>o))).then(o=>o.every(a=>a.classList.contains("placeholder-resolved"))),n=new Promise(o=>setTimeout(()=>o(!1),wh));if(await Promise.race([r,n,this.aemFragment?.updateComplete])===!0){performance.mark(`${Ts}${this.id}${_h}`),this.dispatchEvent(new CustomEvent(Mn,{bubbles:!0,composed:!0}));return}xe(this,nr,ro).call(this,"Contains unresolved offers")}get aemFragment(){return this.querySelector("aem-fragment")}get storageOptions(){return this.querySelector("sp-radio-group#storage")}get storageSpecificOfferSelect(){let r=this.storageOptions?.selected;if(r){let n=this.querySelector(`merch-offer-select[storage="${r}"]`);if(n)return n}return this.querySelector("merch-offer-select")}get offerSelect(){return this.storageOptions?this.storageSpecificOfferSelect:this.querySelector("merch-offer-select")}get quantitySelect(){return this.querySelector("merch-quantity-select")}displayFooterElementsInColumn(){if(!this.classList.contains("product"))return;let r=this.shadowRoot.querySelector(".secure-transaction-label");(this.footerSlot?.querySelectorAll('a[is="checkout-link"].con-button')).length===2&&r&&r.parentElement.classList.add("footer-column")}merchCardReady(){this.offerSelect&&!this.offerSelect.planType||(this.dispatchEvent(new CustomEvent(On,{bubbles:!0})),this.displayFooterElementsInColumn())}handleStorageChange(){let r=this.closest("merch-card")?.offerSelect.cloneNode(!0);r&&this.dispatchEvent(new CustomEvent(Sr,{detail:{offerSelect:r},bubbles:!0}))}get dynamicPrice(){return this.querySelector('[slot="price"]')}selectMerchOffer(r){if(r===this.merchOffer)return;this.merchOffer=r;let n=this.dynamicPrice;if(r.price&&n){let i=r.price.cloneNode(!0);n.onceSettled?n.onceSettled().then(()=>{n.replaceWith(i)}):n.replaceWith(i)}}};nr=new WeakSet,ro=function(r){this.dispatchEvent(new CustomEvent(Vn,{detail:r,bubbles:!0,composed:!0}))},p(rr,"properties",{name:{type:String,attribute:"name",reflect:!0},variant:{type:String,reflect:!0},size:{type:String,attribute:"size",reflect:!0},badgeColor:{type:String,attribute:"badge-color",reflect:!0},borderColor:{type:String,attribute:"border-color",reflect:!0},badgeBackgroundColor:{type:String,attribute:"badge-background-color",reflect:!0},backgroundImage:{type:String,attribute:"background-image",reflect:!0},badgeText:{type:String,attribute:"badge-text"},actionMenu:{type:Boolean,attribute:"action-menu"},customHr:{type:Boolean,attribute:"custom-hr"},consonant:{type:Boolean,attribute:"consonant"},spectrum:{type:String,attribute:"spectrum"},detailBg:{type:String,attribute:"detail-bg"},secureLabel:{type:String,attribute:"secure-label"},checkboxLabel:{type:String,attribute:"checkbox-label"},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},storageOption:{type:String,attribute:"storage",reflect:!0},stockOfferOsis:{type:Object,attribute:"stock-offer-osis",converter:{fromAttribute:r=>{let[n,i,o]=r.split(",");return{PUF:n,ABM:i,M2M:o}}}},filters:{type:String,reflect:!0,converter:{fromAttribute:r=>Object.fromEntries(r.split(",").map(n=>{let[i,o,a]=n.split(":"),s=Number(o);return[i,{order:isNaN(s)?void 0:s,size:a}]})),toAttribute:r=>Object.entries(r).map(([n,{order:i,size:o}])=>[n,i,o].filter(a=>a!=null).join(":")).join(",")}},types:{type:String,attribute:"types",reflect:!0},merchOffer:{type:Object},analyticsId:{type:String,attribute:Wr,reflect:!0},loading:{type:String}}),p(rr,"styles",[Fo,oa(),...Ko()]);customElements.define(Th,rr);var Tt=class extends ee{constructor(){super(),this.size="m",this.alt="",this.loading="lazy"}render(){let{href:t}=this;return t?x`
+`,Ge.MISSING_INTL_API,a);var O=r.getPluralRules(t,{type:h.pluralType}).select(u-(h.offset||0));E=h.options[O]||h.options.other}if(!E)throw new Li(h.value,u,Object.keys(h.options),a);s.push.apply(s,jt(E.value,t,r,n,i,u-(h.offset||0)));continue}}return Wc(s)}function Zc(e,t){return t?T(T(T({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=T(T({},e[n]),t[n]||{}),r},{})):e}function Qc(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Zc(e[n],t[n]),r},T({},e)):e}function wi(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Jc(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Bt(function(){for(var t,r=[],n=0;n0?e.substring(0,n):"";let i=Ga(e.split("").reverse().join("")),o=r-i,a=e.substring(o,o+1),s=o+(a==="."||a===","?1:0);t.suffix=i>0?e.substring(s,r):"",t.mask=e.substring(n,s),t.maskHasNegativeSign=t.mask.charAt(0)==="-",t.maskHasPositiveSign=t.mask.charAt(0)==="+";let c=t.mask.match(tl);return t.decimal=c&&c[c.length-1]||".",t.separator=c&&c[1]&&c[0]||",",c=t.mask.split(t.decimal),t.integer=c[0],t.fraction=c[1],t}function nl(e,t,r){let n=!1,i={value:e};e<0&&(n=!0,i.value=-i.value),i.sign=n?"-":"",i.value=Number(i.value).toFixed(t.fraction&&t.fraction.length),i.value=Number(i.value).toString();let o=t.fraction&&t.fraction.lastIndexOf("0"),[a="0",s=""]=i.value.split(".");return(!s||s&&s.length<=o)&&(s=o<0?"":(+("0."+s)).toFixed(o+1).replace("0.","")),i.integer=a,i.fraction=s,il(i,t),(i.result==="0"||i.result==="")&&(n=!1,i.sign=""),!n&&t.maskHasPositiveSign?i.sign="+":n&&t.maskHasPositiveSign?i.sign="-":n&&(i.sign=r&&r.enforceMaskSign&&!t.maskHasNegativeSign?"":"-"),i}function il(e,t){e.result="";let r=t.integer.split(t.separator),n=r.join(""),i=n&&n.indexOf("0");if(i>-1)for(;e.integer.lengthe*12,Ya=(e,t)=>{let{start:r,end:n,displaySummary:{amount:i,duration:o,minProductQuantity:a,outcomeType:s}={}}=e;if(!(i&&o&&s&&a))return!1;let c=t?new Date(t):new Date;if(!r||!n)return!1;let l=new Date(r),h=new Date(n);return c>=l&&c<=h},He={MONTH:"MONTH",YEAR:"YEAR"},sl={[N.ANNUAL]:12,[N.MONTHLY]:1,[N.THREE_YEARS]:36,[N.TWO_YEARS]:24},Ci=(e,t)=>({accept:e,round:t}),cl=[Ci(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),Ci(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),Ci(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],ki={[U.YEAR]:{[N.MONTHLY]:He.MONTH,[N.ANNUAL]:He.YEAR},[U.MONTH]:{[N.MONTHLY]:He.MONTH}},ll=(e,t)=>e.indexOf(`'${t}'`)===0,hl=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Xa(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+ul(e)),r},dl=e=>{let t=ml(e),r=ll(e,t),n=e.replace(/'.*?'/,""),i=Ka.test(n)||Ba.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:i}},ja=e=>e.replace(Ka,Fa).replace(Ba,Fa),ul=e=>e.match(/#(.?)#/)?.[1]===za?al:za,ml=e=>e.match(/'(.*?)'/)?.[1]??"",Xa=e=>e.match(/0(.?)0/)?.[1]??"";function bt({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},i,o=a=>a){let{currencySymbol:a,isCurrencyFirst:s,hasCurrencySpace:c}=dl(e),l=r?Xa(e):"",h=hl(e,r),d=r?2:0,u=o(t,{currencySymbol:a}),m=n?u.toLocaleString("hi-IN",{minimumFractionDigits:d,maximumFractionDigits:d}):Ha(h,u),f=r?m.lastIndexOf(l):m.length,g=m.substring(0,f),y=m.substring(f+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,m).replace(/SYMBOL/,a),currencySymbol:a,decimals:y,decimalsDelimiter:l,hasCurrencySpace:c,integer:g,isCurrencyFirst:s,recurrenceTerm:i}}var Wa=e=>{let{commitment:t,term:r,usePrecision:n}=e,i=sl[r]??1;return bt(e,i>1?He.MONTH:ki[t]?.[r],o=>{let a={divisor:i,price:o,usePrecision:n},{round:s}=cl.find(({accept:c})=>c(a));if(!s)throw new Error(`Missing rounding rule for: ${JSON.stringify(a)}`);return s(a)})},qa=({commitment:e,term:t,...r})=>bt(r,ki[e]?.[t]),Za=e=>{let{commitment:t,instant:r,price:n,originalPrice:i,priceWithoutDiscount:o,promotion:a,quantity:s=1,term:c}=e;if(t===U.YEAR&&c===N.MONTHLY){if(!a)return bt(e,He.YEAR,Pi);let{displaySummary:{outcomeType:l,duration:h,minProductQuantity:d=1}={}}=a;switch(l){case"PERCENTAGE_DISCOUNT":if(s>=d&&Ya(a,r)){let u=parseInt(h.replace("P","").replace("M",""));if(isNaN(u))return Pi(n);let m=s*i*u,f=s*o*(12-u),g=Math.floor((m+f)*100)/100;return bt({...e,price:g},He.YEAR)}default:return bt(e,He.YEAR,()=>Pi(o??n))}}return bt(e,ki[t]?.[c])};var pl={recurrenceLabel:"{recurrenceTerm, select, MONTH {/mo} YEAR {/yr} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per month} YEAR {per year} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per license} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per license} other {}}",freeLabel:"Free",freeAriaLabel:"Free",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Alternatively at {alternativePrice}",strikethroughAriaLabel:"Regularly at {strikethroughPrice}"},fl=ha("ConsonantTemplates/price"),gl=/<\/?[^>]+(>|$)/g,H={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAnnual:"price-annual",containerAnnualPrefix:"price-annual-prefix",containerAnnualSuffix:"price-annual-suffix",disabled:"disabled",currencySpace:"price-currency-space",currencySymbol:"price-currency-symbol",decimals:"price-decimals",decimalsDelimiter:"price-decimals-delimiter",integer:"price-integer",recurrence:"price-recurrence",taxInclusivity:"price-tax-inclusivity",unitType:"price-unit-type"},ze={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel"},xl="TAX_EXCLUSIVE",bl=e=>la(e)?Object.entries(e).filter(([,t])=>mt(t)||wr(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+sa(n)+'"'}`,""):"",Y=(e,t,r,n=!1)=>`${n?ja(t):t??""} `;function vl(e,{accessibleLabel:t,currencySymbol:r,decimals:n,decimalsDelimiter:i,hasCurrencySpace:o,integer:a,isCurrencyFirst:s,recurrenceLabel:c,perUnitLabel:l,taxInclusivityLabel:h},d={}){let u=Y(H.currencySymbol,r),m=Y(H.currencySpace,o?" ":""),f="";return s&&(f+=u+m),f+=Y(H.integer,a),f+=Y(H.decimalsDelimiter,i),f+=Y(H.decimals,n),s||(f+=m+u),f+=Y(H.recurrence,c,null,!0),f+=Y(H.unitType,l,null,!0),f+=Y(H.taxInclusivity,h,!0),Y(e,f,{...d,"aria-label":t})}var q=({displayOptical:e=!1,displayStrikethrough:t=!1,displayAnnual:r=!1,instant:n=void 0}={})=>({country:i,displayFormatted:o=!0,displayRecurrence:a=!0,displayPerUnit:s=!1,displayTax:c=!1,language:l,literals:h={},quantity:d=1}={},{commitment:u,offerSelectorIds:m,formatString:f,price:g,priceWithoutDiscount:y,taxDisplay:w,taxTerm:b,term:E,usePrecision:O,promotion:C}={},z={})=>{Object.entries({country:i,formatString:f,language:l,price:g}).forEach(([oe,Wr])=>{if(Wr==null)throw new Error(`Argument "${oe}" is missing for osi ${m?.toString()}, country ${i}, language ${l}`)});let F={...pl,...h},me=`${l.toLowerCase()}-${i.toUpperCase()}`;function Z(oe,Wr){let qr=F[oe];if(qr==null)return"";try{return new Da(qr.replace(gl,""),me).format(Wr)}catch{return fl.error("Failed to format literal:",qr),""}}let Tt=t&&y?y:g,Xe=e?Wa:qa;r&&(Xe=Za);let{accessiblePrice:yt,recurrenceTerm:pe,...fe}=Xe({commitment:u,formatString:f,instant:n,isIndianPrice:i==="IN",originalPrice:g,priceWithoutDiscount:y,price:e?g:Tt,promotion:C,quantity:d,term:E,usePrecision:O}),Q=yt,_t="";if(S(a)&&pe){let oe=Z(ze.recurrenceAriaLabel,{recurrenceTerm:pe});oe&&(Q+=" "+oe),_t=Z(ze.recurrenceLabel,{recurrenceTerm:pe})}let Xr="";if(S(s)){Xr=Z(ze.perUnitLabel,{perUnit:"LICENSE"});let oe=Z(ze.perUnitAriaLabel,{perUnit:"LICENSE"});oe&&(Q+=" "+oe)}let Lt="";S(c)&&b&&(Lt=Z(w===xl?ze.taxExclusiveLabel:ze.taxInclusiveLabel,{taxTerm:b}),Lt&&(Q+=" "+Lt)),t&&(Q=Z(ze.strikethroughAriaLabel,{strikethroughPrice:Q}));let wt=H.container;if(e&&(wt+=" "+H.containerOptical),t&&(wt+=" "+H.containerStrikethrough),r&&(wt+=" "+H.containerAnnual),S(o))return vl(wt,{...fe,accessibleLabel:Q,recurrenceLabel:_t,perUnitLabel:Xr,taxInclusivityLabel:Lt},z);let{currencySymbol:Qi,decimals:ys,decimalsDelimiter:_s,hasCurrencySpace:Ji,integer:Ls,isCurrencyFirst:ws}=fe,We=[Ls,_s,ys];ws?(We.unshift(Ji?"\xA0":""),We.unshift(Qi)):(We.push(Ji?"\xA0":""),We.push(Qi)),We.push(_t,Xr,Lt);let Ps=We.join("");return Y(wt,Ps,z)},Qa=()=>(e,t,r)=>{let i=(e.displayOldPrice===void 0||S(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${q()(e,t,r)}${i?" "+q({displayStrikethrough:!0})(e,t,r):""}`},Ja=()=>(e,t,r)=>{let{instant:n}=e;try{n||(n=new URLSearchParams(document.location.search).get("instant")),n&&(n=new Date(n))}catch{n=void 0}let i={...e,displayTax:!1,displayPerUnit:!1};return`${(e.displayOldPrice===void 0||S(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price?q({displayStrikethrough:!0})(i,t,r)+" ":""}${q()(e,t,r)}${Y(H.containerAnnualPrefix," (")}${q({displayAnnual:!0,instant:n})(i,t,r)}${Y(H.containerAnnualSuffix,")")}`},es=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${q()(e,t,r)}${Y(H.containerAnnualPrefix," (")}${q({displayAnnual:!0})(n,t,r)}${Y(H.containerAnnualSuffix,")")}`};var Ii=q(),Ni=Qa(),Ri=q({displayOptical:!0}),Oi=q({displayStrikethrough:!0}),Mi=q({displayAnnual:!0}),$i=es(),Vi=Ja();var Al=(e,t)=>{if(!(!ft(e)||!ft(t)))return Math.floor((t-e)/t*100)},ts=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,i=Al(r,n);return i===void 0?' ':`${i}% `};var Ui=ts();var{freeze:Xt}=Object,El={V2:"UCv2",V3:"UCv3"},te=Xt({...El}),Sl={CHECKOUT:"checkout",CHECKOUT_EMAIL:"checkout/email",SEGMENTATION:"segmentation",BUNDLE:"bundle",COMMITMENT:"commitment",RECOMMENDATION:"recommendation",EMAIL:"email",PAYMENT:"payment",CHANGE_PLAN_TEAM_PLANS:"change-plan/team-upgrade/plans",CHANGE_PLAN_TEAM_PAYMENT:"change-plan/team-upgrade/payment"},re=Xt({...Sl}),Fe={STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"},Di=Xt({...U}),Gi=Xt({...ua}),Hi=Xt({...N});var rs="mas-commerce-service";function ns(e,{once:t=!1}={}){let r=null;function n(){let i=document.querySelector(rs);i!==r&&(r=i,i&&e(i))}return document.addEventListener(nt,n,{once:t}),Ke(n),()=>document.removeEventListener(nt,n)}function Wt(e,{country:t,forceTaxExclusive:r,perpetual:n}){let i;if(e.length<2)i=e;else{let o=t==="GB"||n?"EN":"MULT",[a,s]=e;i=[a.language===o?a:s]}return r&&(i=i.map(mi)),i}var Ke=e=>window.setTimeout(e);function vt(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(xt).filter(ft);return r.length||(r=[t]),r}function Dr(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(ai)}function j(){return document.getElementsByTagName(rs)?.[0]}var Be={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},is=1e3,os=new Set;function Tl(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function as(e){if(e==null)return;let t=typeof e;if(t==="function")return e.name?`function ${e.name}`:"function";if(t==="object"){if(e instanceof Error)return e.message;if(typeof e.originatingRequest=="string"){let{message:n,originatingRequest:i,status:o}=e;return[n,o,i].filter(Boolean).join(" ")}let r=e[Symbol.toStringTag]??Object.getPrototypeOf(e).constructor.name;if(!Be.serializableTypes.includes(r))return r}return e}function yl(e,t){if(!Be.ignoredProperties.includes(e))return as(t)}var zi={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],i=[],o=t;r.forEach(l=>{l!=null&&(Tl(l)?n:i).push(l)}),n.length&&(o+=" "+n.map(as).join(" "));let{pathname:a,search:s}=window.location,c=`${Be.delimiter}page=${a}${s}`;c.length>is&&(c=`${c.slice(0,is)}`),o+=c,i.length&&(o+=`${Be.delimiter}facts=`,o+=JSON.stringify(i,yl)),os.has(o)||(os.add(o),window.lana?.log(o,Be))}};function At(e){Object.assign(Be,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in Be&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var _=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflow:te.V3,checkoutWorkflowStep:re.EMAIL,country:"US",displayOldPrice:!0,displayPerUnit:!1,displayRecurrence:!0,displayTax:!1,env:Fe.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsBufferDelay:1,wcsURL:"https://www.adobe.com/web_commerce_artifact",landscape:le.PUBLISHED,wcsBufferLimit:1});var Fi=Object.freeze({LOCAL:"local",PROD:"prod",STAGE:"stage"});function _l({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||_.language),t??(t=e?.split("_")?.[1]||_.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function Ki(e={}){let{commerce:t={}}=e,r=Fe.PRODUCTION,n=zn,i=R("checkoutClientId",t)??_.checkoutClientId,o=ye(R("checkoutWorkflow",t),te,_.checkoutWorkflow),a=re.CHECKOUT;o===te.V3&&(a=ye(R("checkoutWorkflowStep",t),re,_.checkoutWorkflowStep));let s=S(R("displayOldPrice",t),_.displayOldPrice),c=S(R("displayPerUnit",t),_.displayPerUnit),l=S(R("displayRecurrence",t),_.displayRecurrence),h=S(R("displayTax",t),_.displayTax),d=S(R("entitlement",t),_.entitlement),u=S(R("modal",t),_.modal),m=S(R("forceTaxExclusive",t),_.forceTaxExclusive),f=R("promotionCode",t)??_.promotionCode,g=vt(R("quantity",t)),y=R("wcsApiKey",t)??_.wcsApiKey,w=t?.env==="stage",b=le.PUBLISHED;["true",""].includes(t.allowOverride)&&(w=(R(Gn,t,{metadata:!1})?.toLowerCase()??t?.env)==="stage",b=ye(R(Hn,t),le,b)),w&&(r=Fe.STAGE,n=Fn);let O=xt(R("wcsBufferDelay",t),_.wcsBufferDelay),C=xt(R("wcsBufferLimit",t),_.wcsBufferLimit);return{..._l(e),displayOldPrice:s,checkoutClientId:i,checkoutWorkflow:o,checkoutWorkflowStep:a,displayPerUnit:c,displayRecurrence:l,displayTax:h,entitlement:d,extraOptions:_.extraOptions,modal:u,env:r,forceTaxExclusive:m,promotionCode:f,quantity:g,wcsApiKey:y,wcsBufferDelay:O,wcsBufferLimit:C,wcsURL:n,landscape:b}}var Bi={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},Ll=Date.now(),Yi=new Set,ji=new Set,ss=new Map,cs={append({level:e,message:t,params:r,timestamp:n,source:i}){console[e](`${n}ms [${i}] %c${t}`,"font-weight: bold;",...r)}},ls={filter:({level:e})=>e!==Bi.DEBUG},wl={filter:()=>!1};function Pl(e,t,r,n,i){return{level:e,message:t,namespace:r,get params(){return n.length===1&&Ht(n[0])&&(n=n[0](),Array.isArray(n)||(n=[n])),n},source:i,timestamp:Date.now()-Ll}}function Cl(e){[...ji].every(t=>t(e))&&Yi.forEach(t=>t(e))}function hs(e){let t=(ss.get(e)??0)+1;ss.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:i=>hs(`${n.namespace}/${i}`),updateConfig:At};return Object.values(Bi).forEach(i=>{n[i]=(o,...a)=>Cl(Pl(i,o,e,a,r))}),Object.seal(n)}function Gr(...e){e.forEach(t=>{let{append:r,filter:n}=t;Ht(n)&&ji.add(n),Ht(r)&&Yi.add(r)})}function kl(e={}){let{name:t}=e,r=S(R("commerce.debug",{search:!0,storage:!0}),t===Fi.LOCAL);return Gr(r?cs:ls),t===Fi.PROD&&Gr(zi),X}function Il(){Yi.clear(),ji.clear()}var X={...hs(Dn),Level:Bi,Plugins:{consoleAppender:cs,debugFilter:ls,quietFilter:wl,lanaAppender:zi},init:kl,reset:Il,use:Gr};var Nl={[se]:Rn,[Ee]:On,[ce]:Mn},Rl={[se]:Vn,[ce]:Un},Et=class{constructor(t){p(this,"changes",new Map);p(this,"connected",!1);p(this,"dispose",pt);p(this,"error");p(this,"log");p(this,"options");p(this,"promises",[]);p(this,"state",Ee);p(this,"timer",null);p(this,"value");p(this,"version",0);p(this,"wrapperElement");this.wrapperElement=t}update(){[se,Ee,ce].forEach(t=>{this.wrapperElement.classList.toggle(Nl[t],t===this.state)})}notify(){(this.state===ce||this.state===se)&&(this.state===ce?this.promises.forEach(({resolve:t})=>t(this.wrapperElement)):this.state===se&&this.promises.forEach(({reject:t})=>t(this.error)),this.promises=[]),this.wrapperElement.dispatchEvent(new CustomEvent(Rl[this.state],{bubbles:!0}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){this.dispose=ns(()=>this.requestUpdate(!0))}disconnectedCallback(){this.connected&&(this.connected=!1,this.log?.debug("Disconnected:",{element:this.wrapperElement})),this.dispose(),this.dispose=pt}onceSettled(){let{error:t,promises:r,state:n}=this;return ce===n?Promise.resolve(this.wrapperElement):se===n?Promise.reject(t):new Promise((i,o)=>{r.push({resolve:i,reject:o})})}toggleResolved(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.state=ce,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),Ke(()=>this.notify()),!0)}toggleFailed(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.error=r,this.state=se,this.update(),this.log?.error("Failed:",{element:this.wrapperElement,error:r}),Ke(()=>this.notify()),!0)}togglePending(t){return this.version++,t&&(this.options=t),this.state=Ee,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!j()||this.timer)return;let r=X.module("mas-element"),{error:n,options:i,state:o,value:a,version:s}=this;this.state=Ee,this.timer=Ke(async()=>{this.timer=null;let c=null;if(this.changes.size&&(c=Object.fromEntries(this.changes.entries()),this.changes.clear()),this.connected?this.log?.debug("Updated:",{element:this.wrapperElement,changes:c}):(this.connected=!0,this.log?.debug("Connected:",{element:this.wrapperElement,changes:c})),c||t)try{await this.wrapperElement.render?.()===!1&&this.state===Ee&&this.version===s&&(this.state=o,this.error=n,this.value=a,this.update(),this.notify())}catch(l){r.error("Failed to render mas-element: ",l),this.toggleFailed(this.version,l,i)}})}};function ds(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Hr(e,t={}){let{tag:r,is:n}=e,i=document.createElement(r,{is:n});return i.setAttribute("is",n),Object.assign(i.dataset,ds(t)),i}function zr(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,ds(t)),e):null}var Ol="download",Ml="upgrade";function Fr(e,t={},r=""){let n=j();if(!n)return null;let{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:u,wcsOsi:m,extraOptions:f}=n.collectCheckoutOptions(t),g=Hr(e,{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:u,wcsOsi:m,extraOptions:f});return r&&(g.innerHTML=`${r} `),g}function Kr(e){return class extends e{constructor(){super(...arguments);p(this,"checkoutActionHandler");p(this,"masElement",new Et(this))}attributeChangedCallback(n,i,o){this.masElement.attributeChangedCallback(n,i,o)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.clickHandler)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.clickHandler)}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}get opens3in1Modal(){return Object.values($e).includes(this.getAttribute("data-modal-type"))&&!!this.href}requestUpdate(n=!1){return this.masElement.requestUpdate(n)}static get observedAttributes(){return["data-checkout-workflow","data-checkout-workflow-step","data-extra-options","data-ims-country","data-perpetual","data-promotion-code","data-quantity","data-template","data-wcs-osi","data-entitlement","data-upgrade","data-modal"]}async render(n={}){if(!this.isConnected)return!1;let i=j();if(!i)return!1;this.dataset.imsCountry||i.imsCountryPromise.then(d=>{d&&(this.dataset.imsCountry=d)},pt),n.imsCountry=null;let o=i.collectCheckoutOptions(n,this);if(!o.wcsOsi.length)return!1;let a;try{a=JSON.parse(o.extraOptions??"{}")}catch(d){this.masElement.log?.error("cannot parse exta checkout options",d)}let s=this.masElement.togglePending(o);this.setCheckoutUrl("");let c=i.resolveOfferSelectors(o),l=await Promise.all(c);l=l.map(d=>Wt(d,o)),o.country=this.dataset.imsCountry||o.country;let h=await i.buildCheckoutAction?.(l.flat(),{...a,...o},this);return this.renderOffers(l.flat(),o,{},h,s)}add3in1ModalParams(n,i){try{let o=new URL(n);return o.searchParams.set("ctx","if"),i===$e.CRM?o.searchParams.set("af","uc_segmentation_hide_tabs,uc_new_user_iframe,uc_new_system_close"):o.searchParams.set("af","uc_new_user_iframe,uc_new_system_close"),o.toString()}catch(o){this.masElement.log?.error("Failed to add 3-in-1 modal parameters",o)}}setModalType(n,i){try{let a=new URL(i).searchParams.get("modal");if([$e.TWP,$e.D2P,$e.CRM].includes(a))return n?.setAttribute("data-modal-type",a),a}catch(o){this.masElement.log?.error("Failed to set modal type",o)}}renderOffers(n,i,o={},a=void 0,s=void 0){if(!this.isConnected)return!1;let c=j();if(!c)return!1;i={...JSON.parse(this.dataset.extraOptions??"null"),...i,...o},s??(s=this.masElement.togglePending(i)),this.checkoutActionHandler&&(this.checkoutActionHandler=void 0);let h;if(a){this.classList.remove(Ol,Ml),this.masElement.toggleResolved(s,n,i);let{url:d,text:u,className:m,handler:f}=a;if(d&&(this.setCheckoutUrl(d),h=this.setModalType(this,d)),u&&(this.firstElementChild.innerHTML=u),m&&this.classList.add(...m.split(" ")),f&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=f.bind(this)),!h)return!0}if(n.length){if(this.masElement.toggleResolved(s,n,i)){let d=c.buildCheckoutURL(n,i),u=a&&h?this.add3in1ModalParams(d,h):d;return this.setCheckoutUrl(u),!0}}else{let d=new Error(`Not provided: ${i?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(s,d,i))return this.setCheckoutUrl("#"),!0}}setCheckoutUrl(){}clickHandler(n){}updateOptions(n={}){let i=j();if(!i)return!1;let{checkoutMarketSegment:o,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:u,quantity:m,wcsOsi:f}=i.collectCheckoutOptions(n);return zr(this,{checkoutMarketSegment:o,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:u,quantity:m,wcsOsi:f}),!0}}}var qt=class qt extends Kr(HTMLButtonElement){static createCheckoutButton(t={},r=""){return Fr(qt,t,r)}setCheckoutUrl(t){this.setAttribute("data-href",t)}get href(){return this.getAttribute("data-href")}get isCheckoutButton(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}this.href&&(window.location.href=this.href)}};p(qt,"is","checkout-button"),p(qt,"tag","button");var Ye=qt;window.customElements.get(Ye.is)||window.customElements.define(Ye.is,Ye,{extends:Ye.tag});function $l(e){return`https://${e==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var Zt,je=class je extends HTMLAnchorElement{constructor(){super();V(this,Zt,!1);this.setAttribute("is",je.is)}get isUptLink(){return!0}initializeWcsData(r,n){this.setAttribute("data-wcs-osi",r),n&&this.setAttribute("data-promotion-code",n),B(this,Zt,!0),this.composePromoTermsUrl()}attributeChangedCallback(r,n,i){L(this,Zt)&&this.composePromoTermsUrl()}composePromoTermsUrl(){let r=this.getAttribute("data-wcs-osi");if(!r){let d=this.closest("merch-card").querySelector("aem-fragment").getAttribute("fragment");console.error(`Missing 'data-wcs-osi' attribute on upt-link. Fragment: ${d}`);return}let n=j(),i=[r],o=this.getAttribute("data-promotion-code"),{country:a,language:s,env:c}=n.settings,l={country:a,language:s,wcsOsi:i,promotionCode:o},h=n.resolveOfferSelectors(l);Promise.all(h).then(([[d]])=>{let u=`locale=${s}_${a}&country=${a}&offer_id=${d.offerId}`;o&&(u+=`&promotion_code=${encodeURIComponent(o)}`),this.href=`${$l(c)}?${u}`}).catch(d=>{console.error(`Could not resolve offer selectors for id: ${r}.`,d.message)})}static createFrom(r){let n=new je;for(let i of r.attributes)i.name!=="is"&&(i.name==="class"&&i.value.includes("upt-link")?n.setAttribute("class",i.value.replace("upt-link","").trim()):n.setAttribute(i.name,i.value));return n.innerHTML=r.innerHTML,n.setAttribute("tabindex",0),n}};Zt=new WeakMap,p(je,"is","upt-link"),p(je,"tag","a"),p(je,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var ue=je;window.customElements.get(ue.is)||window.customElements.define(ue.is,ue,{extends:ue.tag});var Vl="#000000",Ul="#F8D904",Dl=/(accent|primary|secondary)(-(outline|link))?/,Gl="mas:product_code/",Hl="daa-ll",Br="daa-lh",zl=["XL","L","M","S"];function Fl(e,t,r){e.mnemonicIcon?.map((i,o)=>({icon:i,alt:e.mnemonicAlt[o]??"",link:e.mnemonicLink[o]??""}))?.forEach(({icon:i,alt:o,link:a})=>{if(a&&!/^https?:/.test(a))try{a=new URL(`https://${a}`).href.toString()}catch{a="#"}let s={slot:"icons",src:i,loading:t.loading,size:r?.size??"l"};o&&(s.alt=o),a&&(s.href=a);let c=ee("merch-icon",s);t.append(c)})}function Kl(e,t){e.badge&&(t.setAttribute("badge-text",e.badge),t.setAttribute("badge-color",e.badgeColor||Vl),t.setAttribute("badge-background-color",e.badgeBackgroundColor||Ul))}function Bl(e,t,r){r?.includes(e.size)&&t.setAttribute("size",e.size)}function Yl(e,t,r){e.cardTitle&&r&&t.append(ee(r.tag,{slot:r.slot},e.cardTitle))}function jl(e,t,r){e.subtitle&&r&&t.append(ee(r.tag,{slot:r.slot},e.subtitle))}function Xl(e,t,r){if(e.backgroundImage){let n={loading:t.loading??"lazy",src:e.backgroundImage};if(e.backgroundImageAltText?n.alt=e.backgroundImageAltText:n.role="none",!r)return;if(r?.attribute){t.setAttribute(r.attribute,e.backgroundImage);return}t.append(ee(r.tag,{slot:r.slot},ee("img",n)))}}function Wl(e,t,r){if(e.prices&&r){let n=ee(r.tag,{slot:r.slot},e.prices);t.append(n)}}function ql(e,t,r){if(e.description&&r){let n=ee(r.tag,{slot:r.slot},e.description);t.append(n)}}function Zl(e,t){t.querySelectorAll("a.upt-link").forEach(n=>{let i=ue.createFrom(n);n.replaceWith(i),i.initializeWcsData(e.osi,e.promoCode)})}function Ql(e,t,r,n){let o=customElements.get("checkout-button").createCheckoutButton({},e.innerHTML);o.setAttribute("tabindex",0);for(let h of e.attributes)["class","is"].includes(h.name)||o.setAttribute(h.name,h.value);o.firstElementChild?.classList.add("spectrum-Button-label");let a=t.ctas.size??"M",s=`spectrum-Button--${n}`,c=zl.includes(a)?`spectrum-Button--size${a}`:"spectrum-Button--sizeM",l=["spectrum-Button",s,c];return r&&l.push("spectrum-Button--outline"),o.classList.add(...l),o}function Jl(e,t,r,n){let i="fill";r&&(i="outline");let o=ee("sp-button",{treatment:i,variant:n,tabIndex:0,size:t.ctas.size??"m"},e);return o.addEventListener("click",a=>{a.target!==e&&(a.stopPropagation(),e.click())}),o}function eh(e,t){return e.classList.add("con-button"),t&&e.classList.add("blue"),e}function th(e,t,r,n){if(e.ctas){let{slot:i}=r.ctas,o=ee("div",{slot:i},e.ctas),a=[...o.querySelectorAll("a")].map(s=>{let c=s.parentElement.tagName==="STRONG";if(t.consonant)return eh(s,c);let l=Dl.exec(s.className)?.[0]??"accent",h=l.includes("accent"),d=l.includes("primary"),u=l.includes("secondary"),m=l.includes("-outline");if(l.includes("-link"))return s;let g;return h||c?g="accent":d?g="primary":u&&(g="secondary"),t.spectrum==="swc"?Jl(s,r,m,g):Ql(s,r,m,g)});o.innerHTML="",o.append(...a),t.append(o)}}function rh(e,t){let{tags:r}=e,n=r?.find(i=>i.startsWith(Gl))?.split("/").pop();n&&(t.setAttribute(Br,n),t.querySelectorAll("a[data-analytics-id],button[data-analytics-id]").forEach((i,o)=>{i.setAttribute(Hl,`${i.dataset.analyticsId}-${o+1}`)}))}function nh(e){e.spectrum==="css"&&[["primary-link","primary"],["secondary-link","secondary"]].forEach(([t,r])=>{e.querySelectorAll(`a.${t}`).forEach(n=>{n.classList.remove(t),n.classList.add("spectrum-Link",`spectrum-Link--${r}`)})})}async function us(e,t){let{fields:r}=e,{variant:n}=r;if(!n)return;t.querySelectorAll("[slot]").forEach(o=>{o.remove()}),t.removeAttribute("background-image"),t.removeAttribute("badge-background-color"),t.removeAttribute("badge-color"),t.removeAttribute("badge-text"),t.removeAttribute("size"),t.classList.remove("wide-strip"),t.classList.remove("thin-strip"),t.removeAttribute(Br),t.variant=n,await t.updateComplete;let{aemFragmentMapping:i}=t.variantLayout;i&&(Fl(r,t,i.mnemonics),Kl(r,t),Bl(r,t,i.size),Yl(r,t,i.title),jl(r,t,i.subtitle),Wl(r,t,i.prices),Xl(r,t,i.backgroundImage),ql(r,t,i.description),Zl(r,t),th(r,t,i,n),rh(r,t),nh(t))}var ih="merch-card",oh=":start",ah=":ready",sh=1e4,ms="merch-card:",Jt,Xi,Qt=class extends J{constructor(){super();V(this,Jt);p(this,"customerSegment");p(this,"marketSegment");p(this,"variantLayout");this.filters={},this.types="",this.selected=!1,this.spectrum="css",this.loading="lazy",this.handleAemFragmentEvents=this.handleAemFragmentEvents.bind(this)}static getFragmentMapping(r){return Zo[r]}firstUpdated(){this.variantLayout=qn(this,!1),this.variantLayout?.connectedCallbackHook(),this.aemFragment?.updateComplete.catch(()=>{this.style.display="none"})}willUpdate(r){(r.has("variant")||!this.variantLayout)&&(this.variantLayout=qn(this),this.variantLayout.connectedCallbackHook())}updated(r){(r.has("badgeBackgroundColor")||r.has("borderColor"))&&this.style.setProperty("--consonant-merch-card-border",this.computedBorderStyle),this.variantLayout?.postCardUpdateHook(r)}get theme(){return this.closest("sp-theme")}get dir(){return this.closest("[dir]")?.getAttribute("dir")??"ltr"}get prices(){return Array.from(this.querySelectorAll('span[is="inline-price"][data-wcs-osi]'))}render(){if(!(!this.isConnected||!this.variantLayout||this.style.display==="none"))return this.variantLayout.renderLayout()}get computedBorderStyle(){return["twp","ccd-slice","ccd-suggested"].includes(this.variant)?"":`1px solid ${this.borderColor?this.borderColor:this.badgeBackgroundColor}`}get badgeElement(){return this.shadowRoot.getElementById("badge")}get headingmMSlot(){return this.shadowRoot.querySelector('slot[name="heading-m"]').assignedElements()[0]}get footerSlot(){return this.shadowRoot.querySelector('slot[name="footer"]')?.assignedElements()[0]}get price(){return this.headingmMSlot?.querySelector('span[is="inline-price"]')}get checkoutLinks(){return[...this.footerSlot?.querySelectorAll('a[is="checkout-link"]')??[]]}async toggleStockOffer({target:r}){if(!this.stockOfferOsis)return;let n=this.checkoutLinks;if(n.length!==0)for(let i of n){await i.onceSettled();let o=i.value?.[0]?.planType;if(!o)return;let a=this.stockOfferOsis[o];if(!a)return;let s=i.dataset.wcsOsi.split(",").filter(c=>c!==a);r.checked&&s.push(a),i.dataset.wcsOsi=s.join(",")}}handleQuantitySelection(r){let n=this.checkoutLinks;for(let i of n)i.dataset.quantity=r.detail.option}get titleElement(){return this.querySelector(this.variantLayout?.headingSelector||".card-heading")}get title(){return this.titleElement?.textContent?.trim()}get description(){return this.querySelector('[slot="body-xs"]')?.textContent?.trim()}updateFilters(r){let n={...this.filters};Object.keys(n).forEach(i=>{if(r){n[i].order=Math.min(n[i].order||2,2);return}let o=n[i].order;o===1||isNaN(o)||(n[i].order=Number(o)+1)}),this.filters=n}includes(r){return this.textContent.match(new RegExp(r,"i"))!==null}connectedCallback(){super.connectedCallback();let r=this.querySelector("aem-fragment")?.getAttribute("fragment");performance.mark(`${ms}${r}${oh}`),this.addEventListener(vr,this.handleQuantitySelection),this.addEventListener(Pn,this.merchCardReady,{once:!0}),this.updateComplete.then(()=>{this.merchCardReady()}),this.storageOptions?.addEventListener("change",this.handleStorageChange),this.addEventListener(Oe,this.handleAemFragmentEvents),this.addEventListener(Re,this.handleAemFragmentEvents),this.aemFragment||setTimeout(()=>this.checkReady(),0)}disconnectedCallback(){super.disconnectedCallback(),this.variantLayout?.disconnectedCallbackHook(),this.removeEventListener(vr,this.handleQuantitySelection),this.storageOptions?.removeEventListener(br,this.handleStorageChange),this.removeEventListener(Oe,this.handleAemFragmentEvents),this.removeEventListener(Re,this.handleAemFragmentEvents)}async handleAemFragmentEvents(r){if(r.type===Oe&&ge(this,Jt,Xi).call(this,"AEM fragment cannot be loaded"),r.type===Re&&r.target.nodeName==="AEM-FRAGMENT"){let n=r.detail;await us(n,this),this.checkReady()}}async checkReady(){let r=Promise.all([...this.querySelectorAll('span[is="inline-price"][data-wcs-osi],a[is="checkout-link"][data-wcs-osi]')].map(o=>o.onceSettled().catch(()=>o))).then(o=>o.every(a=>a.classList.contains("placeholder-resolved"))),n=new Promise(o=>setTimeout(()=>o(!1),sh));if(await Promise.race([r,n,this.aemFragment?.updateComplete])===!0){performance.mark(`${ms}${this.id}${ah}`),this.dispatchEvent(new CustomEvent(In,{bubbles:!0,composed:!0}));return}ge(this,Jt,Xi).call(this,"Contains unresolved offers")}get aemFragment(){return this.querySelector("aem-fragment")}get storageOptions(){return this.querySelector("sp-radio-group#storage")}get storageSpecificOfferSelect(){let r=this.storageOptions?.selected;if(r){let n=this.querySelector(`merch-offer-select[storage="${r}"]`);if(n)return n}return this.querySelector("merch-offer-select")}get offerSelect(){return this.storageOptions?this.storageSpecificOfferSelect:this.querySelector("merch-offer-select")}get quantitySelect(){return this.querySelector("merch-quantity-select")}displayFooterElementsInColumn(){if(!this.classList.contains("product"))return;let r=this.shadowRoot.querySelector(".secure-transaction-label");(this.footerSlot?.querySelectorAll('a[is="checkout-link"].con-button')).length===2&&r&&r.parentElement.classList.add("footer-column")}merchCardReady(){this.offerSelect&&!this.offerSelect.planType||(this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0})),this.displayFooterElementsInColumn())}handleStorageChange(){let r=this.closest("merch-card")?.offerSelect.cloneNode(!0);r&&this.dispatchEvent(new CustomEvent(br,{detail:{offerSelect:r},bubbles:!0}))}get dynamicPrice(){return this.querySelector('[slot="price"]')}selectMerchOffer(r){if(r===this.merchOffer)return;this.merchOffer=r;let n=this.dynamicPrice;if(r.price&&n){let i=r.price.cloneNode(!0);n.onceSettled?n.onceSettled().then(()=>{n.replaceWith(i)}):n.replaceWith(i)}}};Jt=new WeakSet,Xi=function(r){this.dispatchEvent(new CustomEvent(Nn,{detail:r,bubbles:!0,composed:!0}))},p(Qt,"properties",{name:{type:String,attribute:"name",reflect:!0},variant:{type:String,reflect:!0},size:{type:String,attribute:"size",reflect:!0},badgeColor:{type:String,attribute:"badge-color",reflect:!0},borderColor:{type:String,attribute:"border-color",reflect:!0},badgeBackgroundColor:{type:String,attribute:"badge-background-color",reflect:!0},backgroundImage:{type:String,attribute:"background-image",reflect:!0},badgeText:{type:String,attribute:"badge-text"},actionMenu:{type:Boolean,attribute:"action-menu"},customHr:{type:Boolean,attribute:"custom-hr"},consonant:{type:Boolean,attribute:"consonant"},spectrum:{type:String,attribute:"spectrum"},detailBg:{type:String,attribute:"detail-bg"},secureLabel:{type:String,attribute:"secure-label"},checkboxLabel:{type:String,attribute:"checkbox-label"},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},storageOption:{type:String,attribute:"storage",reflect:!0},stockOfferOsis:{type:Object,attribute:"stock-offer-osis",converter:{fromAttribute:r=>{let[n,i,o]=r.split(",");return{PUF:n,ABM:i,M2M:o}}}},filters:{type:String,reflect:!0,converter:{fromAttribute:r=>Object.fromEntries(r.split(",").map(n=>{let[i,o,a]=n.split(":"),s=Number(o);return[i,{order:isNaN(s)?void 0:s,size:a}]})),toAttribute:r=>Object.entries(r).map(([n,{order:i,size:o}])=>[n,i,o].filter(a=>a!=null).join(":")).join(",")}},types:{type:String,attribute:"types",reflect:!0},merchOffer:{type:Object},analyticsId:{type:String,attribute:Br,reflect:!0},loading:{type:String}}),p(Qt,"styles",[Vo,Qo(),...Uo()]);customElements.define(ih,Qt);var St=class extends J{constructor(){super(),this.size="m",this.alt="",this.loading="lazy"}render(){let{href:t}=this;return t?x`
- `:x` `}};p(Tt,"properties",{size:{type:String,attribute:!0},src:{type:String,attribute:!0},alt:{type:String,attribute:!0},href:{type:String,attribute:!0},loading:{type:String,attribute:!0}}),p(Tt,"styles",C`
+ `:x` `}};p(St,"properties",{size:{type:String,attribute:!0},src:{type:String,attribute:!0},alt:{type:String,attribute:!0},href:{type:String,attribute:!0},loading:{type:String,attribute:!0}}),p(St,"styles",k`
:host {
--img-width: 32px;
--img-height: 32px;
@@ -2145,7 +2145,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
width: var(--mod-img-width, var(--img-width));
height: var(--mod-img-height, var(--img-height));
}
- `);customElements.define("merch-icon",Tt);var ir=class ir extends Xr(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return Yr(ir,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};p(ir,"is","checkout-link"),p(ir,"tag","a");var ie=ir;window.customElements.get(ie.is)||window.customElements.define(ie.is,ie,{extends:ie.tag});function Ls({providers:e,settings:t}){function r(o,a){let{checkoutClientId:s,checkoutWorkflow:c,checkoutWorkflowStep:l,country:h,language:d,promotionCode:u,quantity:m}=t,{checkoutMarketSegment:g,checkoutWorkflow:f=c,checkoutWorkflowStep:T=l,imsCountry:w,country:b=w??h,language:S=d,quantity:k=m,entitlement:R,upgrade:U,modal:$,perpetual:pe,promotionCode:Z=u,wcsOsi:Lt,extraOptions:We,..._t}=Object.assign({},a?.dataset??{},o??{}),fe=Le(f,re,L.checkoutWorkflow),ge=ne.CHECKOUT;fe===re.V3&&(ge=Le(T,ne,L.checkoutWorkflowStep));let J=bt({..._t,extraOptions:We,checkoutClientId:s,checkoutMarketSegment:g,country:b,quantity:Et(k,L.quantity),checkoutWorkflow:fe,checkoutWorkflowStep:ge,language:S,entitlement:y(R),upgrade:y(U),modal:y($),perpetual:y(pe),promotionCode:Kt(Z).effectivePromoCode,wcsOsi:zr(Lt)});if(a)for(let wt of e.checkout)wt(a,J);return J}function n(o,a){if(!Array.isArray(o)||!o.length||!a)return"";let{env:s,landscape:c}=t,{checkoutClientId:l,checkoutMarketSegment:h,checkoutWorkflow:d,checkoutWorkflowStep:u,country:m,promotionCode:g,quantity:f,...T}=r(a),w=window.frameElement?"if":"fp",b={checkoutPromoCode:g,clientId:l,context:w,country:m,env:s,items:[],marketSegment:h,workflowStep:u,landscape:c,...T};if(o.length===1){let[{offerId:S,offerType:k,productArrangementCode:R}]=o,{marketSegments:[U]}=o[0];Object.assign(b,{marketSegment:U,offerType:k,productArrangementCode:R}),b.items.push(f[0]===1?{id:S}:{id:S,quantity:f[0]})}else b.items.push(...o.map(({offerId:S},k)=>({id:S,quantity:f[k]??L.quantity})));return ci(d,b)}let{createCheckoutLink:i}=ie;return{CheckoutLink:ie,CheckoutWorkflow:re,CheckoutWorkflowStep:ne,buildCheckoutURL:n,collectCheckoutOptions:r,createCheckoutLink:i}}function Ph({interval:e=200,maxAttempts:t=25}={}){let r=X.module("ims");return new Promise(n=>{r.debug("Waing for IMS to be ready");let i=0;function o(){window.adobeIMS?.initialized?n():++i>t?(r.debug("Timeout"),n()):setTimeout(o,e)}o()})}function Ch(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function Ih(e){let t=X.module("ims");return e.then(r=>r?window.adobeIMS.getProfile().then(({countryCode:n})=>(t.debug("Got user country:",n),n),n=>{t.error("Unable to get user country:",n)}):null)}function _s({}){let e=Ph(),t=Ch(e),r=Ih(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}async function Ps(e,t){let{data:r}=t||await Promise.resolve().then(()=>Ys(ws(),1));if(Array.isArray(r)){let n=o=>r.find(a=>Ir(a.lang,o)),i=n(e.language)??n(L.language);if(i)return Object.freeze(i)}return{}}var Cs=["GB_en","AU_en","FR_fr","AT_de","BE_en","BE_fr","BE_nl","BG_bg","CH_de","CH_fr","CH_it","CZ_cs","DE_de","DK_da","EE_et","EG_ar","EG_en","ES_es","FI_fi","FR_fr","GR_el","GR_en","HU_hu","IE_en","IT_it","LU_de","LU_en","LU_fr","NL_nl","NO_nb","PL_pl","PT_pt","RO_ro","SE_sv","SI_sl","SK_sk","TR_tr","UA_uk","ID_en","ID_in","IN_en","IN_hi","JP_ja","MY_en","MY_ms","NZ_en","TH_en","TH_th"],Nh={INDIVIDUAL_COM:["ZA_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","ZA_en","SG_en","KR_ko"],TEAM_COM:["ZA_en","LT_lt","LV_lv","NG_en","ZA_en","CO_es","KR_ko"],INDIVIDUAL_EDU:["LT_lt","LV_lv","SA_en","SG_en"],TEAM_EDU:["SG_en","KR_ko"]},or=class or extends HTMLSpanElement{constructor(){super();p(this,"masElement",new yt(this));this.handleClick=this.handleClick.bind(this)}static get observedAttributes(){return["data-display-old-price","data-display-per-unit","data-display-recurrence","data-display-tax","data-perpetual","data-promotion-code","data-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let n=Y();if(!n)return null;let{displayOldPrice:i,displayPerUnit:o,displayRecurrence:a,displayTax:s,forceTaxExclusive:c,perpetual:l,promotionCode:h,quantity:d,template:u,wcsOsi:m}=n.collectPriceOptions(r);return Kr(or,{displayOldPrice:i,displayPerUnit:o,displayRecurrence:a,displayTax:s,forceTaxExclusive:c,perpetual:l,promotionCode:h,quantity:d,template:u,wcsOsi:m})}get isInlinePrice(){return!0}attributeChangedCallback(r,n,i){this.masElement.attributeChangedCallback(r,n,i)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.handleClick)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.handleClick)}handleClick(r){r.target!==this&&(r.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})))}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}resolveDisplayTaxForGeoAndSegment(r,n,i,o){let a=`${r}_${n}`;if(Cs.includes(r)||Cs.includes(a))return!0;let s=Nh[`${i}_${o}`];return s?!!(s.includes(r)||s.includes(a)):!1}async resolveDisplayTax(r,n){let[i]=await r.resolveOfferSelectors(n),o=Qt(await i,n);if(o?.length){let{country:a,language:s}=n,c=o[0],[l=""]=c.marketSegments;return this.resolveDisplayTaxForGeoAndSegment(a,s,c.customerSegment,l)}}async render(r={}){if(!this.isConnected)return!1;let n=Y();if(!n)return!1;let i=n.collectPriceOptions(r,this);if(!i.wcsOsi.length)return!1;let o=this.masElement.togglePending(i);this.innerHTML="";let[a]=n.resolveOfferSelectors(i);return this.renderOffers(Qt(await a,i),i,o)}renderOffers(r,n={},i=void 0){if(!this.isConnected)return;let o=Y();if(!o)return!1;let a=o.collectPriceOptions({...this.dataset,...n},this);if(i??(i=this.masElement.togglePending(a)),r.length){if(this.masElement.toggleResolved(i,r,a))return this.innerHTML=o.buildPriceHTML(r,a),!0}else{let s=new Error(`Not provided: ${a?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(i,s,a))return this.innerHTML="",!0}return!1}updateOptions(r){let n=Y();if(!n)return!1;let{displayOldPrice:i,displayPerUnit:o,displayRecurrence:a,displayTax:s,forceTaxExclusive:c,perpetual:l,promotionCode:h,quantity:d,template:u,wcsOsi:m}=n.collectPriceOptions(r);return jr(this,{displayOldPrice:i,displayPerUnit:o,displayRecurrence:a,displayTax:s,forceTaxExclusive:c,perpetual:l,promotionCode:h,quantity:d,template:u,wcsOsi:m}),!0}};p(or,"is","inline-price"),p(or,"tag","span");var oe=or;window.customElements.get(oe.is)||window.customElements.define(oe.is,oe,{extends:oe.tag});function Is({literals:e,providers:t,settings:r}){function n(a,s){let{country:c,displayOldPrice:l,displayPerUnit:h,displayRecurrence:d,displayTax:u,forceTaxExclusive:m,language:g,promotionCode:f,quantity:T}=r,{displayOldPrice:w=l,displayPerUnit:b=h,displayRecurrence:S=d,displayTax:k=u,forceTaxExclusive:R=m,country:U=c,language:$=g,perpetual:pe,promotionCode:Z=f,quantity:Lt=T,template:We,wcsOsi:_t,...fe}=Object.assign({},s?.dataset??{},a??{}),ge=bt({...fe,country:U,displayOldPrice:y(w),displayPerUnit:y(b),displayRecurrence:y(S),displayTax:y(k),forceTaxExclusive:y(R),language:$,perpetual:y(pe),promotionCode:Kt(Z).effectivePromoCode,quantity:Et(Lt,L.quantity),template:We,wcsOsi:zr(_t)});if(s)for(let J of t.price)J(s,ge);return ge}function i(a,s){if(!Array.isArray(a)||!a.length||!s)return"";let{template:c}=s,l;switch(c){case"discount":l=ji;break;case"strikethrough":l=Gi;break;case"optical":l=Bi;break;case"annual":l=zi;break;default:s.country==="AU"&&a[0].planType==="ABM"?l=s.promotionCode?Ki:Fi:l=s.promotionCode?Di:Ui}let h=n(s);h.literals=Object.assign({},e.price,bt(s.literals??{}));let[d]=a;return d={...d,...d.priceDetails},l(h,d)}let o=oe.createInlinePrice;return{InlinePrice:oe,buildPriceHTML:i,collectPriceOptions:n,createInlinePrice:o}}function ks({settings:e}){let t=X.module("wcs"),{env:r,wcsApiKey:n}=e,i=new Map,o=new Map,a;async function s(d,u,m=!0){let g=Dn;t.debug("Fetching:",d);let f="",T,w=(b,S,k)=>`${b}: ${S?.status}, url: ${k.toString()}`;try{if(d.offerSelectorIds=d.offerSelectorIds.sort(),f=new URL(e.wcsURL),f.searchParams.set("offer_selector_ids",d.offerSelectorIds.join(",")),f.searchParams.set("country",d.country),f.searchParams.set("locale",d.locale),f.searchParams.set("landscape",r===Fe.STAGE?"ALL":e.landscape),f.searchParams.set("api_key",n),d.language&&f.searchParams.set("language",d.language),d.promotionCode&&f.searchParams.set("promotion_code",d.promotionCode),d.currency&&f.searchParams.set("currency",d.currency),T=await fetch(f.toString(),{credentials:"omit"}),T.ok){let b=await T.json();t.debug("Fetched:",d,b);let S=b.resolvedOffers??[];S=S.map(Or),u.forEach(({resolve:k},R)=>{let U=S.filter(({offerSelectorIds:$})=>$.includes(R)).flat();U.length&&(u.delete(R),k(U))})}else T.status===404&&d.offerSelectorIds.length>1?(t.debug("Multi-osi 404, fallback to fetch-by-one strategy"),await Promise.allSettled(d.offerSelectorIds.map(b=>s({...d,offerSelectorIds:[b]},u,!1)))):g=Tr}catch(b){g=Tr,t.error(g,d,b)}m&&u.size&&(t.debug("Missing:",{offerSelectorIds:[...u.keys()]}),u.forEach(b=>{b.reject(new Error(w(g,T,f)))}))}function c(){clearTimeout(a);let d=[...o.values()];o.clear(),d.forEach(({options:u,promises:m})=>s(u,m))}function l(){let d=i.size;i.clear(),t.debug(`Flushed ${d} cache entries`)}function h({country:d,language:u,perpetual:m=!1,promotionCode:g="",wcsOsi:f=[]}){let T=`${u}_${d}`;d!=="GB"&&(u=m?"EN":"MULT");let w=[d,u,g].filter(b=>b).join("-").toLowerCase();return f.map(b=>{let S=`${b}-${w}`;if(!i.has(S)){let k=new Promise((R,U)=>{let $=o.get(w);if(!$){let pe={country:d,locale:T,offerSelectorIds:[]};d!=="GB"&&(pe.language=u),$={options:pe,promises:new Map},o.set(w,$)}g&&($.options.promotionCode=g),$.options.offerSelectorIds.push(b),$.promises.set(b,{resolve:R,reject:U}),$.options.offerSelectorIds.length>=e.wcsBufferLimit?c():(t.debug("Queued:",$.options),a||(a=setTimeout(c,e.wcsBufferDelay)))});i.set(S,k)}return i.get(S)})}return{WcsCommitment:Yi,WcsPlanType:Xi,WcsTerm:Wi,resolveOfferSelectors:h,flushWcsCache:l}}var no="mas-commerce-service",Oh="mas:start",Rh="mas:ready",Zr,Ns,qr=class extends HTMLElement{constructor(){super(...arguments);G(this,Zr);p(this,"promise",null)}async registerCheckoutAction(r){typeof r=="function"&&(this.buildCheckoutAction=async(n,i,o)=>{let a=await r?.(n,i,this.imsSignedInPromise,o);return a||null})}async activate(){let r=_(this,Zr,Ns),n=Object.freeze(Ji(r));St(r.lana);let i=X.init(r.hostEnv).module("service");i.debug("Activating:",r);let o={price:{}};try{o.price=await Ps(n,r.commerce.priceLiterals)}catch{}let a={checkout:new Set,price:new Set},s={literals:o,providers:a,settings:n};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...Ls(s),..._s(s),...Is(s),...ks(s),...Xn,Log:X,get defaults(){return L},get log(){return X},get providers(){return{checkout(c){return a.checkout.add(c),()=>a.checkout.delete(c)},price(c){return a.price.add(c),()=>a.price.delete(c)}}},get settings(){return n}})),i.debug("Activated:",{literals:o,settings:n}),Ke(()=>{let c=new CustomEvent(it,{bubbles:!0,cancelable:!1,detail:this});performance.mark(Rh),this.dispatchEvent(c)})}connectedCallback(){this.readyPromise||(performance.mark(Oh),this.readyPromise=this.activate())}disconnectedCallback(){this.readyPromise=null}flushWcsCache(){this.flushWcsCache(),this.log.debug("Flushed WCS cache")}refreshOffers(){this.flushWcsCache(),document.querySelectorAll('span[is="inline-price"],a[is="checkout-link"]').forEach(r=>r.requestUpdate(!0)),this.log.debug("Refreshed WCS offers")}refreshFragments(){this.flushWcsCache(),document.querySelectorAll("aem-fragment").forEach(r=>r.refresh()),this.log.debug("Refreshed AEM fragments")}};Zr=new WeakSet,Ns=function(){let r={hostEnv:{name:this.getAttribute("host-env")??"prod"},commerce:{env:this.getAttribute("env")},lana:{tags:this.getAttribute("lana-tags"),sampleRate:parseInt(this.getAttribute("lana-sample-rate"),10),isProdDomain:this.getAttribute("host-env")==="prod"}};return["locale","country","language"].forEach(n=>{let i=this.getAttribute(n);i&&(r[n]=i)}),["checkout-workflow-step","force-tax-exclusive","checkout-client-id","allow-override","wcs-api-key"].forEach(n=>{let i=this.getAttribute(n);if(i!=null){let o=n.replace(/-([a-z])/g,a=>a[1].toUpperCase());r.commerce[o]=i}}),r},p(qr,"instance");window.customElements.get(no)||window.customElements.define(no,qr);St({sampleRate:1});export{Ye as CheckoutButton,ie as CheckoutLink,re as CheckoutWorkflow,ne as CheckoutWorkflowStep,L as Defaults,oe as InlinePrice,Ve as Landscape,X as Log,no as TAG_NAME_SERVICE,me as UptLink,Yi as WcsCommitment,Xi as WcsPlanType,Wi as WcsTerm,Or as applyPlanType,Ji as getSettings};
+ `);customElements.define("merch-icon",St);var er=class er extends Kr(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return Fr(er,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};p(er,"is","checkout-link"),p(er,"tag","a");var ne=er;window.customElements.get(ne.is)||window.customElements.define(ne.is,ne,{extends:ne.tag});var ch="p_draft_landscape",lh="/store/",hh=new Map([["countrySpecific","cs"],["customerSegment","cs"],["quantity","q"],["authCode","code"],["checkoutPromoCode","apc"],["rurl","rUrl"],["curl","cUrl"],["ctxrturl","ctxRtUrl"],["country","co"],["language","lang"],["clientId","cli"],["context","ctx"],["productArrangementCode","pa"],["offerType","ot"],["marketSegment","ms"]]),Wi=new Set(["af","ai","apc","appctxid","cli","co","cs","csm","ctx","ctxRtUrl","DCWATC","dp","fr","gsp","ijt","lang","lo","mal","ms","mv","mv2","nglwfdata","ot","otac","pa","pcid","promoid","q","rf","sc","scl","sdid","sid","spint","svar","th","thm","trackingid","usid","workflowid","context.guid","so.ca","so.su","so.tr","so.va"]),dh=["env","workflowStep","clientId","country"],ps=e=>hh.get(e)??e;function qi(e,t,r){for(let[n,i]of Object.entries(e)){let o=ps(n);i!=null&&r.has(o)&&t.set(o,i)}}function uh(e){switch(e){case Kn.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function mh(e,t){for(let r in e){let n=e[r];for(let[i,o]of Object.entries(n)){if(o==null)continue;let a=ps(i);t.set(`items[${r}][${a}]`,o)}}}function fs(e){ph(e);let{env:t,items:r,workflowStep:n,ms:i,marketSegment:o,ot:a,offerType:s,pa:c,productArrangementCode:l,landscape:h,...d}=e,u={marketSegment:o??i,offerType:s??a,productArrangementCode:l??c},m=new URL(uh(t));return m.pathname=`${lh}${n}`,n!==Me.SEGMENTATION&&n!==Me.CHANGE_PLAN_TEAM_PLANS&&mh(r,m.searchParams),n===Me.SEGMENTATION&&qi(u,m.searchParams,Wi),qi(d,m.searchParams,Wi),h===le.DRAFT&&qi({af:ch},m.searchParams,Wi),m.toString()}function ph(e){for(let t of dh)if(!e[t])throw new Error('Argument "checkoutData" is not valid, missing: '+t);if(e.workflowStep!==Me.SEGMENTATION&&e.workflowStep!==Me.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}function gs({providers:e,settings:t}){function r(o,a){let{checkoutClientId:s,checkoutWorkflow:c,checkoutWorkflowStep:l,country:h,language:d,promotionCode:u,quantity:m}=t,{checkoutMarketSegment:f,checkoutWorkflow:g=c,checkoutWorkflowStep:y=l,imsCountry:w,country:b=w??h,language:E=d,quantity:O=m,entitlement:C,upgrade:z,modal:F,perpetual:me,promotionCode:Z=u,wcsOsi:Tt,extraOptions:Xe,...yt}=Object.assign({},a?.dataset??{},o??{}),pe=ye(g,te,_.checkoutWorkflow),fe=re.CHECKOUT;pe===te.V3&&(fe=ye(y,re,_.checkoutWorkflowStep));let Q=gt({...yt,extraOptions:Xe,checkoutClientId:s,checkoutMarketSegment:f,country:b,quantity:vt(O,_.quantity),checkoutWorkflow:pe,checkoutWorkflowStep:fe,language:E,entitlement:S(C),upgrade:S(z),modal:S(F),perpetual:S(me),promotionCode:zt(Z).effectivePromoCode,wcsOsi:Dr(Tt)});if(a)for(let _t of e.checkout)_t(a,Q);return Q}function n(o,a){if(!Array.isArray(o)||!o.length||!a)return"";let{env:s,landscape:c}=t,{checkoutClientId:l,checkoutMarketSegment:h,checkoutWorkflow:d,checkoutWorkflowStep:u,country:m,promotionCode:f,quantity:g,...y}=r(a),w=window.frameElement?"if":"fp",b={checkoutPromoCode:f,clientId:l,context:w,country:m,env:s,items:[],marketSegment:h,workflowStep:u,landscape:c,...y};if(o.length===1){let[{offerId:E,offerType:O,productArrangementCode:C}]=o,{marketSegments:[z]}=o[0];Object.assign(b,{marketSegment:z,offerType:O,productArrangementCode:C}),b.items.push(g[0]===1?{id:E}:{id:E,quantity:g[0]})}else b.items.push(...o.map(({offerId:E},O)=>({id:E,quantity:g[O]??_.quantity})));return fs(b)}let{createCheckoutLink:i}=ne;return{CheckoutLink:ne,CheckoutWorkflow:te,CheckoutWorkflowStep:re,buildCheckoutURL:n,collectCheckoutOptions:r,createCheckoutLink:i}}function fh({interval:e=200,maxAttempts:t=25}={}){let r=X.module("ims");return new Promise(n=>{r.debug("Waing for IMS to be ready");let i=0;function o(){window.adobeIMS?.initialized?n():++i>t?(r.debug("Timeout"),n()):setTimeout(o,e)}o()})}function gh(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function xh(e){let t=X.module("ims");return e.then(r=>r?window.adobeIMS.getProfile().then(({countryCode:n})=>(t.debug("Got user country:",n),n),n=>{t.error("Unable to get user country:",n)}):null)}function xs({}){let e=fh(),t=gh(e),r=xh(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}async function vs(e,t){let{data:r}=t||await Promise.resolve().then(()=>Us(bs(),1));if(Array.isArray(r)){let n=o=>r.find(a=>Lr(a.lang,o)),i=n(e.language)??n(_.language);if(i)return Object.freeze(i)}return{}}var As=["GB_en","AU_en","FR_fr","AT_de","BE_en","BE_fr","BE_nl","BG_bg","CH_de","CH_fr","CH_it","CZ_cs","DE_de","DK_da","EE_et","EG_ar","EG_en","ES_es","FI_fi","FR_fr","GR_el","GR_en","HU_hu","IE_en","IT_it","LU_de","LU_en","LU_fr","NL_nl","NO_nb","PL_pl","PT_pt","RO_ro","SE_sv","SI_sl","SK_sk","TR_tr","UA_uk","ID_en","ID_in","IN_en","IN_hi","JP_ja","MY_en","MY_ms","NZ_en","TH_en","TH_th"],vh={INDIVIDUAL_COM:["ZA_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","ZA_en","SG_en","KR_ko"],TEAM_COM:["ZA_en","LT_lt","LV_lv","NG_en","ZA_en","CO_es","KR_ko"],INDIVIDUAL_EDU:["LT_lt","LV_lv","SA_en","SG_en"],TEAM_EDU:["SG_en","KR_ko"]},tr=class tr extends HTMLSpanElement{constructor(){super();p(this,"masElement",new Et(this));this.handleClick=this.handleClick.bind(this)}static get observedAttributes(){return["data-display-old-price","data-display-per-unit","data-display-recurrence","data-display-tax","data-perpetual","data-promotion-code","data-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let n=j();if(!n)return null;let{displayOldPrice:i,displayPerUnit:o,displayRecurrence:a,displayTax:s,forceTaxExclusive:c,perpetual:l,promotionCode:h,quantity:d,template:u,wcsOsi:m}=n.collectPriceOptions(r);return Hr(tr,{displayOldPrice:i,displayPerUnit:o,displayRecurrence:a,displayTax:s,forceTaxExclusive:c,perpetual:l,promotionCode:h,quantity:d,template:u,wcsOsi:m})}get isInlinePrice(){return!0}attributeChangedCallback(r,n,i){this.masElement.attributeChangedCallback(r,n,i)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.handleClick)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.handleClick)}handleClick(r){r.target!==this&&(r.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})))}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}resolveDisplayTaxForGeoAndSegment(r,n,i,o){let a=`${r}_${n}`;if(As.includes(r)||As.includes(a))return!0;let s=vh[`${i}_${o}`];return s?!!(s.includes(r)||s.includes(a)):!1}async resolveDisplayTax(r,n){let[i]=await r.resolveOfferSelectors(n),o=Wt(await i,n);if(o?.length){let{country:a,language:s}=n,c=o[0],[l=""]=c.marketSegments;return this.resolveDisplayTaxForGeoAndSegment(a,s,c.customerSegment,l)}}async render(r={}){if(!this.isConnected)return!1;let n=j();if(!n)return!1;let i=n.collectPriceOptions(r,this);if(!i.wcsOsi.length)return!1;let o=this.masElement.togglePending(i);this.innerHTML="";let[a]=n.resolveOfferSelectors(i);return this.renderOffers(Wt(await a,i),i,o)}renderOffers(r,n={},i=void 0){if(!this.isConnected)return;let o=j();if(!o)return!1;let a=o.collectPriceOptions({...this.dataset,...n},this);if(i??(i=this.masElement.togglePending(a)),r.length){if(this.masElement.toggleResolved(i,r,a))return this.innerHTML=o.buildPriceHTML(r,a),!0}else{let s=new Error(`Not provided: ${a?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(i,s,a))return this.innerHTML="",!0}return!1}updateOptions(r){let n=j();if(!n)return!1;let{displayOldPrice:i,displayPerUnit:o,displayRecurrence:a,displayTax:s,forceTaxExclusive:c,perpetual:l,promotionCode:h,quantity:d,template:u,wcsOsi:m}=n.collectPriceOptions(r);return zr(this,{displayOldPrice:i,displayPerUnit:o,displayRecurrence:a,displayTax:s,forceTaxExclusive:c,perpetual:l,promotionCode:h,quantity:d,template:u,wcsOsi:m}),!0}};p(tr,"is","inline-price"),p(tr,"tag","span");var ie=tr;window.customElements.get(ie.is)||window.customElements.define(ie.is,ie,{extends:ie.tag});function Es({literals:e,providers:t,settings:r}){function n(a,s){let{country:c,displayOldPrice:l,displayPerUnit:h,displayRecurrence:d,displayTax:u,forceTaxExclusive:m,language:f,promotionCode:g,quantity:y}=r,{displayOldPrice:w=l,displayPerUnit:b=h,displayRecurrence:E=d,displayTax:O=u,forceTaxExclusive:C=m,country:z=c,language:F=f,perpetual:me,promotionCode:Z=g,quantity:Tt=y,template:Xe,wcsOsi:yt,...pe}=Object.assign({},s?.dataset??{},a??{}),fe=gt({...pe,country:z,displayOldPrice:S(w),displayPerUnit:S(b),displayRecurrence:S(E),displayTax:S(O),forceTaxExclusive:S(C),language:F,perpetual:S(me),promotionCode:zt(Z).effectivePromoCode,quantity:vt(Tt,_.quantity),template:Xe,wcsOsi:Dr(yt)});if(s)for(let Q of t.price)Q(s,fe);return fe}function i(a,s){if(!Array.isArray(a)||!a.length||!s)return"";let{template:c}=s,l;switch(c){case"discount":l=Ui;break;case"strikethrough":l=Oi;break;case"optical":l=Ri;break;case"annual":l=Mi;break;default:s.country==="AU"&&a[0].planType==="ABM"?l=s.promotionCode?Vi:$i:l=s.promotionCode?Ni:Ii}let h=n(s);h.literals=Object.assign({},e.price,gt(s.literals??{}));let[d]=a;return d={...d,...d.priceDetails},l(h,d)}let o=ie.createInlinePrice;return{InlinePrice:ie,buildPriceHTML:i,collectPriceOptions:n,createInlinePrice:o}}function Ss({settings:e}){let t=X.module("wcs"),{env:r,wcsApiKey:n}=e,i=new Map,o=new Map,a;async function s(d,u,m=!0){let f=$n;t.debug("Fetching:",d);let g="",y,w=(b,E,O)=>`${b}: ${E?.status}, url: ${O.toString()}`;try{if(d.offerSelectorIds=d.offerSelectorIds.sort(),g=new URL(e.wcsURL),g.searchParams.set("offer_selector_ids",d.offerSelectorIds.join(",")),g.searchParams.set("country",d.country),g.searchParams.set("locale",d.locale),g.searchParams.set("landscape",r===Fe.STAGE?"ALL":e.landscape),g.searchParams.set("api_key",n),d.language&&g.searchParams.set("language",d.language),d.promotionCode&&g.searchParams.set("promotion_code",d.promotionCode),d.currency&&g.searchParams.set("currency",d.currency),y=await fetch(g.toString(),{credentials:"omit"}),y.ok){let b=await y.json();t.debug("Fetched:",d,b);let E=b.resolvedOffers??[];E=E.map(Cr),u.forEach(({resolve:O},C)=>{let z=E.filter(({offerSelectorIds:F})=>F.includes(C)).flat();z.length&&(u.delete(C),O(z))})}else y.status===404&&d.offerSelectorIds.length>1?(t.debug("Multi-osi 404, fallback to fetch-by-one strategy"),await Promise.allSettled(d.offerSelectorIds.map(b=>s({...d,offerSelectorIds:[b]},u,!1)))):f=Ar}catch(b){f=Ar,t.error(f,d,b)}m&&u.size&&(t.debug("Missing:",{offerSelectorIds:[...u.keys()]}),u.forEach(b=>{b.reject(new Error(w(f,y,g)))}))}function c(){clearTimeout(a);let d=[...o.values()];o.clear(),d.forEach(({options:u,promises:m})=>s(u,m))}function l(){let d=i.size;i.clear(),t.debug(`Flushed ${d} cache entries`)}function h({country:d,language:u,perpetual:m=!1,promotionCode:f="",wcsOsi:g=[]}){let y=`${u}_${d}`;d!=="GB"&&(u=m?"EN":"MULT");let w=[d,u,f].filter(b=>b).join("-").toLowerCase();return g.map(b=>{let E=`${b}-${w}`;if(!i.has(E)){let O=new Promise((C,z)=>{let F=o.get(w);if(!F){let me={country:d,locale:y,offerSelectorIds:[]};d!=="GB"&&(me.language=u),F={options:me,promises:new Map},o.set(w,F)}f&&(F.options.promotionCode=f),F.options.offerSelectorIds.push(b),F.promises.set(b,{resolve:C,reject:z}),F.options.offerSelectorIds.length>=e.wcsBufferLimit?c():(t.debug("Queued:",F.options),a||(a=setTimeout(c,e.wcsBufferDelay)))});i.set(E,O)}return i.get(E)})}return{WcsCommitment:Di,WcsPlanType:Gi,WcsTerm:Hi,resolveOfferSelectors:h,flushWcsCache:l}}var Zi="mas-commerce-service",Ah="mas:start",Eh="mas:ready",jr,Ts,Yr=class extends HTMLElement{constructor(){super(...arguments);V(this,jr);p(this,"promise",null)}async registerCheckoutAction(r){typeof r=="function"&&(this.buildCheckoutAction=async(n,i,o)=>{let a=await r?.(n,i,this.imsSignedInPromise,o);return a||null})}async activate(){let r=L(this,jr,Ts),n=Object.freeze(Ki(r));At(r.lana);let i=X.init(r.hostEnv).module("service");i.debug("Activating:",r);let o={price:{}};try{o.price=await vs(n,r.commerce.priceLiterals)}catch{}let a={checkout:new Set,price:new Set},s={literals:o,providers:a,settings:n};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...gs(s),...xs(s),...Es(s),...Ss(s),...Bn,Log:X,get defaults(){return _},get log(){return X},get providers(){return{checkout(c){return a.checkout.add(c),()=>a.checkout.delete(c)},price(c){return a.price.add(c),()=>a.price.delete(c)}}},get settings(){return n}})),i.debug("Activated:",{literals:o,settings:n}),Ke(()=>{let c=new CustomEvent(nt,{bubbles:!0,cancelable:!1,detail:this});performance.mark(Eh),this.dispatchEvent(c)})}connectedCallback(){this.readyPromise||(performance.mark(Ah),this.readyPromise=this.activate())}disconnectedCallback(){this.readyPromise=null}flushWcsCache(){this.flushWcsCache(),this.log.debug("Flushed WCS cache")}refreshOffers(){this.flushWcsCache(),document.querySelectorAll('span[is="inline-price"],a[is="checkout-link"]').forEach(r=>r.requestUpdate(!0)),this.log.debug("Refreshed WCS offers")}refreshFragments(){this.flushWcsCache(),document.querySelectorAll("aem-fragment").forEach(r=>r.refresh()),this.log.debug("Refreshed AEM fragments")}};jr=new WeakSet,Ts=function(){let r={hostEnv:{name:this.getAttribute("host-env")??"prod"},commerce:{env:this.getAttribute("env")},lana:{tags:this.getAttribute("lana-tags"),sampleRate:parseInt(this.getAttribute("lana-sample-rate"),10),isProdDomain:this.getAttribute("host-env")==="prod"}};return["locale","country","language"].forEach(n=>{let i=this.getAttribute(n);i&&(r[n]=i)}),["checkout-workflow-step","force-tax-exclusive","checkout-client-id","allow-override","wcs-api-key"].forEach(n=>{let i=this.getAttribute(n);if(i!=null){let o=n.replace(/-([a-z])/g,a=>a[1].toUpperCase());r.commerce[o]=i}}),r},p(Yr,"instance");window.customElements.get(Zi)||window.customElements.define(Zi,Yr);At({sampleRate:1});export{Rn as CLASS_NAME_FAILED,qs as CLASS_NAME_HIDDEN,On as CLASS_NAME_PENDING,Mn as CLASS_NAME_RESOLVED,Ye as CheckoutButton,ne as CheckoutLink,te as CheckoutWorkflow,re as CheckoutWorkflowStep,_ as Defaults,Ar as ERROR_MESSAGE_BAD_REQUEST,oc as ERROR_MESSAGE_MISSING_LITERALS_URL,$n as ERROR_MESSAGE_OFFER_NOT_FOUND,Oe as EVENT_AEM_ERROR,Re as EVENT_AEM_LOAD,Nn as EVENT_MAS_ERROR,In as EVENT_MAS_READY,kn as EVENT_MERCH_CARD_ACTION_MENU_TOGGLE,nc as EVENT_MERCH_CARD_COLLECTION_SHOWMORE,rc as EVENT_MERCH_CARD_COLLECTION_SORT,Cn as EVENT_MERCH_CARD_READY,Qs as EVENT_MERCH_OFFER_READY,Pn as EVENT_MERCH_OFFER_SELECT_READY,vr as EVENT_MERCH_QUANTITY_SELECTOR_CHANGE,tc as EVENT_MERCH_SEARCH_CHANGE,ic as EVENT_MERCH_SIDENAV_SELECT,ec as EVENT_MERCH_STOCK_CHANGE,br as EVENT_MERCH_STORAGE_CHANGE,Js as EVENT_OFFER_SELECTED,Vn as EVENT_TYPE_FAILED,nt as EVENT_TYPE_READY,Un as EVENT_TYPE_RESOLVED,ie as InlinePrice,Dn as LOG_NAMESPACE,le as Landscape,X as Log,$e as MODAL_TYPE_3_IN_1,Ws as NAMESPACE,ac as PARAM_AOS_API_KEY,Gn as PARAM_ENV,Hn as PARAM_LANDSCAPE,sc as PARAM_WCS_API_KEY,Kn as PROVIDER_ENVIRONMENT,se as STATE_FAILED,Ee as STATE_PENDING,ce as STATE_RESOLVED,ue as UptLink,zn as WCS_PROD_URL,Fn as WCS_STAGE_URL,Me as WORKFLOW_STEP,Di as WcsCommitment,Gi as WcsPlanType,Hi as WcsTerm,Cr as applyPlanType,Ki as getSettings};
/*! Bundled license information:
@lit/reactive-element/css-tag.js:
diff --git a/libs/deps/mas/mas/constants.js b/libs/deps/mas/mas/constants.js
new file mode 100644
index 0000000000..4b213240f1
--- /dev/null
+++ b/libs/deps/mas/mas/constants.js
@@ -0,0 +1 @@
+var e="merch",E="hidden",o="wcms:commerce:ready",t="mas-commerce-service",c="merch-offer:ready",_="merch-offer-select:ready",r="merch-card:ready",A="merch-card:action-menu-toggle",n="merch-offer:selected",s="merch-stock:change",R="merch-storage:change",N="merch-quantity-selector:change",T="merch-search:change",a="merch-card-collection:sort",p="merch-card-collection:showmore",m="merch-sidenav:select",C="aem:load",S="aem:error",M="mas:ready",O="mas:error",x="placeholder-failed",L="placeholder-pending",d="placeholder-resolved",D="Bad WCS request",l="Commerce offer not found",h="Literals URL not provided",I="mas:failed",P="mas:resolved",V="mas/commerce",H="commerce.env",i="commerce.landscape",G="commerce.aosKey",g="commerce.wcsKey",F="https://www.adobe.com/web_commerce_artifact",U="https://www.stage.adobe.com/web_commerce_artifact_stage",f="failed",Y="pending",w="resolved",y={DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"},u={CHECKOUT:"checkout",CHECKOUT_EMAIL:"checkout/email",SEGMENTATION:"segmentation",BUNDLE:"bundle",COMMITMENT:"commitment",RECOMMENDATION:"recommendation",EMAIL:"email",PAYMENT:"payment",CHANGE_PLAN_TEAM_PLANS:"change-plan/team-upgrade/plans",CHANGE_PLAN_TEAM_PAYMENT:"change-plan/team-upgrade/payment"},K={PRODUCTION:"PRODUCTION"},W={TWP:"twp",D2P:"d2p",CRM:"crm"};export{x as CLASS_NAME_FAILED,E as CLASS_NAME_HIDDEN,L as CLASS_NAME_PENDING,d as CLASS_NAME_RESOLVED,D as ERROR_MESSAGE_BAD_REQUEST,h as ERROR_MESSAGE_MISSING_LITERALS_URL,l as ERROR_MESSAGE_OFFER_NOT_FOUND,S as EVENT_AEM_ERROR,C as EVENT_AEM_LOAD,O as EVENT_MAS_ERROR,M as EVENT_MAS_READY,A as EVENT_MERCH_CARD_ACTION_MENU_TOGGLE,p as EVENT_MERCH_CARD_COLLECTION_SHOWMORE,a as EVENT_MERCH_CARD_COLLECTION_SORT,r as EVENT_MERCH_CARD_READY,c as EVENT_MERCH_OFFER_READY,_ as EVENT_MERCH_OFFER_SELECT_READY,N as EVENT_MERCH_QUANTITY_SELECTOR_CHANGE,T as EVENT_MERCH_SEARCH_CHANGE,m as EVENT_MERCH_SIDENAV_SELECT,s as EVENT_MERCH_STOCK_CHANGE,R as EVENT_MERCH_STORAGE_CHANGE,n as EVENT_OFFER_SELECTED,I as EVENT_TYPE_FAILED,o as EVENT_TYPE_READY,P as EVENT_TYPE_RESOLVED,V as LOG_NAMESPACE,y as Landscape,W as MODAL_TYPE_3_IN_1,e as NAMESPACE,G as PARAM_AOS_API_KEY,H as PARAM_ENV,i as PARAM_LANDSCAPE,g as PARAM_WCS_API_KEY,K as PROVIDER_ENVIRONMENT,f as STATE_FAILED,Y as STATE_PENDING,w as STATE_RESOLVED,t as TAG_NAME_SERVICE,F as WCS_PROD_URL,U as WCS_STAGE_URL,u as WORKFLOW_STEP};
diff --git a/libs/deps/mas/mas/mas.js b/libs/deps/mas/mas/mas.js
new file mode 100644
index 0000000000..12f2bf7d48
--- /dev/null
+++ b/libs/deps/mas/mas/mas.js
@@ -0,0 +1,2206 @@
+var Ls=Object.create;var Jt=Object.defineProperty;var ws=Object.getOwnPropertyDescriptor;var Ps=Object.getOwnPropertyNames;var Cs=Object.getPrototypeOf,ks=Object.prototype.hasOwnProperty;var Is=(e,t,r)=>t in e?Jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ns=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rs=(e,t)=>{for(var r in t)Jt(e,r,{get:t[r],enumerable:!0})},Os=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ps(t))!ks.call(e,i)&&i!==r&&Jt(e,i,{get:()=>t[i],enumerable:!(n=ws(t,i))||n.enumerable});return e};var Ms=(e,t,r)=>(r=e!=null?Ls(Cs(e)):{},Os(t||!e||!e.__esModule?Jt(r,"default",{value:e,enumerable:!0}):r,e));var p=(e,t,r)=>(Is(e,typeof t!="symbol"?t+"":t,r),r),Xr=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var L=(e,t,r)=>(Xr(e,t,"read from private field"),r?r.call(e):t.get(e)),G=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Y=(e,t,r,n)=>(Xr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var fe=(e,t,r)=>(Xr(e,t,"access private method"),r);var fs=Ns((df,mh)=>{mh.exports={total:38,offset:0,limit:38,data:[{lang:"ar",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\u0627\u0644\u0634\u0647\u0631} YEAR {/\u0627\u0644\u0639\u0627\u0645} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {\u0643\u0644 \u0634\u0647\u0631} YEAR {\u0643\u0644 \u0639\u0627\u0645} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\u0644\u0643\u0644 \u062A\u0631\u062E\u064A\u0635} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\u0644\u0643\u0644 \u062A\u0631\u062E\u064A\u0635} other {}}",freeLabel:"\u0645\u062C\u0627\u0646\u064B\u0627",freeAriaLabel:"\u0645\u062C\u0627\u0646\u064B\u0627",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"\u0623\u0648 \u0628\u062F\u0644\u0627\u064B \u0645\u0646 \u0630\u0644\u0643 \u0628\u0642\u064A\u0645\u0629 {alternativePrice}",strikethroughAriaLabel:"\u0628\u0634\u0643\u0644 \u0645\u0646\u062A\u0638\u0645 \u0628\u0642\u064A\u0645\u0629 {strikethroughPrice}"},{lang:"bg",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\u043C\u0435\u0441.} YEAR {/\u0433\u043E\u0434.} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {\u043D\u0430 \u043C\u0435\u0441\u0435\u0446} YEAR {\u043D\u0430 \u0433\u043E\u0434\u0438\u043D\u0430} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\u043D\u0430 \u043B\u0438\u0446\u0435\u043D\u0437} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\u043D\u0430 \u043B\u0438\u0446\u0435\u043D\u0437} other {}}",freeLabel:"\u0411\u0435\u0437\u043F\u043B\u0430\u0442\u043D\u043E",freeAriaLabel:"\u0411\u0435\u0437\u043F\u043B\u0430\u0442\u043D\u043E",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"\u0410\u043B\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u043D\u043E \u043D\u0430 {alternativePrice}",strikethroughAriaLabel:"\u0420\u0435\u0434\u043E\u0432\u043D\u043E \u043D\u0430 {strikethroughPrice}"},{lang:"cs",recurrenceLabel:"{recurrenceTerm, select, MONTH {/m\u011Bs\xEDc} YEAR {/rok} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {za m\u011Bs\xEDc} YEAR {za rok} other {}}",perUnitLabel:"{perUnit, select, LICENSE {za licenci} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {za licenci} other {}}",freeLabel:"Zdarma",freeAriaLabel:"Zdarma",taxExclusiveLabel:"{taxTerm, select, GST {bez dan\u011B ze zbo\u017E\xED a slu\u017Eeb} VAT {bez DPH} TAX {bez dan\u011B} IVA {bez IVA} SST {bez SST} KDV {bez KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {v\u010Detn\u011B dan\u011B ze zbo\u017E\xED a slu\u017Eeb} VAT {v\u010Detn\u011B DPH} TAX {v\u010Detn\u011B dan\u011B} IVA {v\u010Detn\u011B IVA} SST {v\u010Detn\u011B SST} KDV {v\u010Detn\u011B KDV} other {}}",alternativePriceAriaLabel:"P\u0159\xEDpadn\u011B za {alternativePrice}",strikethroughAriaLabel:"Pravideln\u011B za {strikethroughPrice}"},{lang:"da",recurrenceLabel:"{recurrenceTerm, select, MONTH {/md} YEAR {/\xE5r} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {pr. m\xE5ned} YEAR {pr. \xE5r} other {}}",perUnitLabel:"{perUnit, select, LICENSE {pr. licens} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {pr. licens} other {}}",freeLabel:"Gratis",freeAriaLabel:"Gratis",taxExclusiveLabel:"{taxTerm, select, GST {ekskl. GST} VAT {ekskl. moms} TAX {ekskl. skat} IVA {ekskl. IVA} SST {ekskl. SST} KDV {ekskl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {inkl. GST} VAT {inkl. moms} TAX {inkl. skat} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}",alternativePriceAriaLabel:"Alternativt til {alternativePrice}",strikethroughAriaLabel:"Normalpris {strikethroughPrice}"},{lang:"de",recurrenceLabel:"{recurrenceTerm, select, MONTH {/Monat} YEAR {/Jahr} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {pro Monat} YEAR {pro Jahr} other {}}",perUnitLabel:"{perUnit, select, LICENSE {pro Lizenz} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {pro Lizenz} other {}}",freeLabel:"Kostenlos",freeAriaLabel:"Kostenlos",taxExclusiveLabel:"{taxTerm, select, GST {zzgl. GST} VAT {zzgl. MwSt.} TAX {zzgl. Steuern} IVA {zzgl. IVA} SST {zzgl. SST} KDV {zzgl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {inkl. GST} VAT {inkl. MwSt.} TAX {inkl. Steuern} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}",alternativePriceAriaLabel:"Alternativ: {alternativePrice}",strikethroughAriaLabel:"Regul\xE4r: {strikethroughPrice}"},{lang:"en",recurrenceLabel:"{recurrenceTerm, select, MONTH {/mo} YEAR {/yr} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per month} YEAR {per year} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per license} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per license} other {}}",freeLabel:"Free",freeAriaLabel:"Free",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Alternatively at {alternativePrice}",strikethroughAriaLabel:"Regularly at {strikethroughPrice}"},{lang:"et",recurrenceLabel:"{recurrenceTerm, select, MONTH {kuus} YEAR {aastas} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {kuus} YEAR {aastas} other {}}",perUnitLabel:"{perUnit, select, LICENSE {litsentsi kohta} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {litsentsi kohta} other {}}",freeLabel:"Tasuta",freeAriaLabel:"Tasuta",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Teise v\xF5imalusena hinnaga {alternativePrice}",strikethroughAriaLabel:"Tavahind {strikethroughPrice}"},{lang:"fi",recurrenceLabel:"{recurrenceTerm, select, MONTH {/kk} YEAR {/v} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {kuukausittain} YEAR {vuosittain} other {}}",perUnitLabel:"{perUnit, select, LICENSE {k\xE4ytt\xF6oikeutta kohti} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {k\xE4ytt\xF6oikeutta kohti} other {}}",freeLabel:"Maksuton",freeAriaLabel:"Maksuton",taxExclusiveLabel:"{taxTerm, select, GST {ilman GST:t\xE4} VAT {ilman ALV:t\xE4} TAX {ilman veroja} IVA {ilman IVA:ta} SST {ilman SST:t\xE4} KDV {ilman KDV:t\xE4} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {sis. GST:n} VAT {sis. ALV:n} TAX {sis. verot} IVA {sis. IVA:n} SST {sis. SST:n} KDV {sis. KDV:n} other {}}",alternativePriceAriaLabel:"Vaihtoehtoisesti hintaan {alternativePrice}",strikethroughAriaLabel:"S\xE4\xE4nn\xF6llisesti hintaan {strikethroughPrice}"},{lang:"fr",recurrenceLabel:"{recurrenceTerm, select, MONTH {/mois} YEAR {/an} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {par mois} YEAR {par an} other {}}",perUnitLabel:"{perUnit, select, LICENSE {par licence} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {par licence} other {}}",freeLabel:"Gratuit",freeAriaLabel:"Gratuit",taxExclusiveLabel:"{taxTerm, select, GST {hors TPS} VAT {hors TVA} TAX {hors taxes} IVA {hors IVA} SST {hors SST} KDV {hors KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {TPS comprise} VAT {TVA comprise} TAX {taxes comprises} IVA {IVA comprise} SST {SST comprise} KDV {KDV comprise} other {}}",alternativePriceAriaLabel:"Autre prix {alternativePrice}",strikethroughAriaLabel:"Prix habituel {strikethroughPrice}"},{lang:"he",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\u05D7\u05D5\u05D3\u05E9} YEAR {/\u05E9\u05E0\u05D4} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {\u05DC\u05D7\u05D5\u05D3\u05E9} YEAR {\u05DC\u05E9\u05E0\u05D4} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\u05DC\u05E8\u05D9\u05E9\u05D9\u05D5\u05DF} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\u05DC\u05E8\u05D9\u05E9\u05D9\u05D5\u05DF} other {}}",freeLabel:"\u05D7\u05D9\u05E0\u05DD",freeAriaLabel:"\u05D7\u05D9\u05E0\u05DD",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"\u05DC\u05D7\u05DC\u05D5\u05E4\u05D9\u05DF \u05D1-{alternativePrice}",strikethroughAriaLabel:"\u05D1\u05D0\u05D5\u05E4\u05DF \u05E7\u05D1\u05D5\u05E2 \u05D1-{strikethroughPrice}"},{lang:"hu",recurrenceLabel:"{recurrenceTerm, select, MONTH {/h\xF3} YEAR {/\xE9v} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {havonta} YEAR {\xE9vente} other {}}",perUnitLabel:"{perUnit, select, LICENSE {licencenk\xE9nt} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {licencenk\xE9nt} other {}}",freeLabel:"Ingyenes",freeAriaLabel:"Ingyenes",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"M\xE1sik lehet\u0151s\xE9g: {alternativePrice}",strikethroughAriaLabel:"\xC1ltal\xE1ban {strikethroughPrice} \xE1ron"},{lang:"it",recurrenceLabel:"{recurrenceTerm, select, MONTH {/mese} YEAR {/anno} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {al mese} YEAR {all'anno} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per licenza} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per licenza} other {}}",freeLabel:"Gratuito",freeAriaLabel:"Gratuito",taxExclusiveLabel:"{taxTerm, select, GST {escl. GST} VAT {escl. IVA.} TAX {escl. imposte} IVA {escl. IVA} SST {escl. SST} KDV {escl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. IVA} TAX {incl. imposte} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"In alternativa a {alternativePrice}",strikethroughAriaLabel:"Regolarmente a {strikethroughPrice}"},{lang:"ja",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\u6708} YEAR {/\u5E74} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {\u6BCE\u6708} YEAR {\u6BCE\u5E74} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\u30E9\u30A4\u30BB\u30F3\u30B9\u3054\u3068} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\u30E9\u30A4\u30BB\u30F3\u30B9\u3054\u3068} other {}}",freeLabel:"\u7121\u6599",freeAriaLabel:"\u7121\u6599",taxExclusiveLabel:"{taxTerm, select, GST {GST \u5225} VAT {VAT \u5225} TAX {\u7A0E\u5225} IVA {IVA \u5225} SST {SST \u5225} KDV {KDV \u5225} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {GST \u8FBC} VAT {VAT \u8FBC} TAX {\u7A0E\u8FBC} IVA {IVA \u8FBC} SST {SST \u8FBC} KDV {KDV \u8FBC} other {}}",alternativePriceAriaLabel:"\u7279\u5225\u4FA1\u683C : {alternativePrice}",strikethroughAriaLabel:"\u901A\u5E38\u4FA1\u683C : {strikethroughPrice}"},{lang:"ko",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\uC6D4} YEAR {/\uB144} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {\uC6D4\uAC04} YEAR {\uC5F0\uAC04} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\uB77C\uC774\uC120\uC2A4\uB2F9} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\uB77C\uC774\uC120\uC2A4\uB2F9} other {}}",freeLabel:"\uBB34\uB8CC",freeAriaLabel:"\uBB34\uB8CC",taxExclusiveLabel:"{taxTerm, select, GST {GST \uC81C\uC678} VAT {VAT \uC81C\uC678} TAX {\uC138\uAE08 \uC81C\uC678} IVA {IVA \uC81C\uC678} SST {SST \uC81C\uC678} KDV {KDV \uC81C\uC678} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {GST \uD3EC\uD568} VAT {VAT \uD3EC\uD568} TAX {\uC138\uAE08 \uD3EC\uD568} IVA {IVA \uD3EC\uD568} SST {SST \uD3EC\uD568} KDV {KDV \uD3EC\uD568} other {}}",alternativePriceAriaLabel:"\uB610\uB294 {alternativePrice}\uC5D0",strikethroughAriaLabel:"\uB610\uB294 {alternativePrice}\uC5D0"},{lang:"lt",recurrenceLabel:"{recurrenceTerm, select, MONTH { per m\u0117n.} YEAR { per metus} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per m\u0117n.} YEAR {per metus} other {}}",perUnitLabel:"{perUnit, select, LICENSE {u\u017E licencij\u0105} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {u\u017E licencij\u0105} other {}}",freeLabel:"Nemokamai",freeAriaLabel:"Nemokamai",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Arba u\u017E {alternativePrice}",strikethroughAriaLabel:"Normaliai u\u017E {strikethroughPrice}"},{lang:"lv",recurrenceLabel:"{recurrenceTerm, select, MONTH {m\u0113nes\u012B} YEAR {gad\u0101} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {m\u0113nes\u012B} YEAR {gad\u0101} other {}}",perUnitLabel:"{perUnit, select, LICENSE {vienai licencei} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {vienai licencei} other {}}",freeLabel:"Bezmaksas",freeAriaLabel:"Bezmaksas",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Alternat\u012Bvi par {alternativePrice}",strikethroughAriaLabel:"Regul\u0101ri par {strikethroughPrice}"},{lang:"nb",recurrenceLabel:"{recurrenceTerm, select, MONTH {/mnd.} YEAR {/\xE5r} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per m\xE5ned} YEAR {per \xE5r} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per lisens} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per lisens} other {}}",freeLabel:"Fri",freeAriaLabel:"Fri",taxExclusiveLabel:"{taxTerm, select, GST {ekskl. GST} VAT {ekskl. moms} TAX {ekskl. avgift} IVA {ekskl. IVA} SST {ekskl. SST} KDV {ekskl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {inkl. GST} VAT {inkl. moms} TAX {inkl. avgift} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}",alternativePriceAriaLabel:"Alternativt til {alternativePrice}",strikethroughAriaLabel:"Regelmessig til {strikethroughPrice}"},{lang:"nl",recurrenceLabel:"{recurrenceTerm, select, MONTH {/mnd} YEAR {/jr} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per maand} YEAR {per jaar} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per licentie} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per licentie} other {}}",freeLabel:"Gratis",freeAriaLabel:"Gratis",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. btw} TAX {excl. belasting} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. btw} TAX {incl. belasting} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Nu {alternativePrice}",strikethroughAriaLabel:"Normaal {strikethroughPrice}"},{lang:"pl",recurrenceLabel:"{recurrenceTerm, select, MONTH { / mies.} YEAR { / rok} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH { / miesi\u0105c} YEAR { / rok} other {}}",perUnitLabel:"{perUnit, select, LICENSE {za licencj\u0119} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {za licencj\u0119} other {}}",freeLabel:"Bezp\u0142atne",freeAriaLabel:"Bezp\u0142atne",taxExclusiveLabel:"{taxTerm, select, GST {bez GST} VAT {bez VAT} TAX {netto} IVA {bez IVA} SST {bez SST} KDV {bez KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {z GST} VAT {z VAT} TAX {brutto} IVA {z IVA} SST {z SST} KDV {z KDV} other {}}",alternativePriceAriaLabel:"Lub za {alternativePrice}",strikethroughAriaLabel:"Cena zwyk\u0142a: {strikethroughPrice}"},{lang:"pt",recurrenceLabel:"{recurrenceTerm, select, MONTH {/m\xEAs} YEAR {/ano} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {por m\xEAs} YEAR {por ano} other {}}",perUnitLabel:"{perUnit, select, LICENSE {por licen\xE7a} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {por licen\xE7a} other {}}",freeLabel:"Gratuito",freeAriaLabel:"Gratuito",taxExclusiveLabel:"{taxTerm, select, GST {ICMS n\xE3o incluso} VAT {IVA n\xE3o incluso} TAX {impostos n\xE3o inclusos} IVA {IVA n\xE3o incluso} SST { SST n\xE3o incluso} KDV {KDV n\xE3o incluso} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {ICMS incluso} VAT {IVA incluso} TAX {impostos inclusos} IVA {IVA incluso} SST {SST incluso} KDV {KDV incluso} other {}}",alternativePriceAriaLabel:"Ou a {alternativePrice}",strikethroughAriaLabel:"Pre\xE7o normal: {strikethroughPrice}"},{lang:"ro",recurrenceLabel:"{recurrenceTerm, select, MONTH {/lun\u0103} YEAR {/an} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {pe lun\u0103} YEAR {pe an} other {}}",perUnitLabel:"{perUnit, select, LICENSE {pe licen\u021B\u0103} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {pe licen\u021B\u0103} other {}}",freeLabel:"Gratuit",freeAriaLabel:"Gratuit",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Alternativ, la {alternativePrice}",strikethroughAriaLabel:"\xCEn mod normal, la {strikethroughPrice}"},{lang:"ru",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\u043C\u0435\u0441.} YEAR {/\u0433.} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {\u0432 \u043C\u0435\u0441\u044F\u0446} YEAR {\u0432 \u0433\u043E\u0434} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\u0437\u0430 \u043B\u0438\u0446\u0435\u043D\u0437\u0438\u044E} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\u0437\u0430 \u043B\u0438\u0446\u0435\u043D\u0437\u0438\u044E} other {}}",freeLabel:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",freeAriaLabel:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",taxExclusiveLabel:"{taxTerm, select, GST {\u0438\u0441\u043A\u043B. \u043D\u0430\u043B\u043E\u0433 \u043D\u0430 \u0442\u043E\u0432\u0430\u0440\u044B \u0438 \u0443\u0441\u043B\u0443\u0433\u0438} VAT {\u0438\u0441\u043A\u043B. \u041D\u0414\u0421} TAX {\u0438\u0441\u043A\u043B. \u043D\u0430\u043B\u043E\u0433} IVA {\u0438\u0441\u043A\u043B. \u0418\u0412\u0410} SST {\u0438\u0441\u043A\u043B. SST} KDV {\u0438\u0441\u043A\u043B. \u041A\u0414\u0412} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {\u0432\u043A\u043B. \u043D\u0430\u043B\u043E\u0433 \u043D\u0430 \u0442\u043E\u0432\u0430\u0440\u044B \u0438 \u0443\u0441\u043B\u0443\u0433\u0438} VAT {\u0432\u043A\u043B. \u041D\u0414\u0421} TAX {\u0432\u043A\u043B. \u043D\u0430\u043B\u043E\u0433} IVA {\u0432\u043A\u043B. \u0418\u0412\u0410} SST {\u0432\u043A\u043B. SST} KDV {\u0432\u043A\u043B. \u041A\u0414\u0412} other {}}",alternativePriceAriaLabel:"\u0410\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0437\u0430 {alternativePrice}",strikethroughAriaLabel:"\u0420\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E \u043F\u043E \u0446\u0435\u043D\u0435 {strikethroughPrice}"},{lang:"sk",recurrenceLabel:"{recurrenceTerm, select, MONTH {/mesiac} YEAR {/rok} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {za mesiac} YEAR {za rok} other {}}",perUnitLabel:"{perUnit, select, LICENSE {za licenciu} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {za licenciu} other {}}",freeLabel:"Zadarmo",freeAriaLabel:"Zadarmo",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Pr\xEDpadne za {alternativePrice}",strikethroughAriaLabel:"Pravidelne za {strikethroughPrice}"},{lang:"sl",recurrenceLabel:"{recurrenceTerm, select, MONTH {/mesec} YEAR {/leto} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {na mesec} YEAR {na leto} other {}}",perUnitLabel:"{perUnit, select, LICENSE {na licenco} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {na licenco} other {}}",freeLabel:"Brezpla\u010Dno",freeAriaLabel:"Brezpla\u010Dno",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Druga mo\u017Enost je: {alternativePrice}",strikethroughAriaLabel:"Redno po {strikethroughPrice}"},{lang:"sv",recurrenceLabel:"{recurrenceTerm, select, MONTH {/m\xE5n} YEAR {/\xE5r} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per m\xE5nad} YEAR {per \xE5r} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per licens} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per licens} other {}}",freeLabel:"Kostnadsfritt",freeAriaLabel:"Kostnadsfritt",taxExclusiveLabel:"{taxTerm, select, GST {exkl. GST} VAT {exkl. moms} TAX {exkl. skatt} IVA {exkl. IVA} SST {exkl. SST} KDV {exkl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {inkl. GST} VAT {inkl. moms} TAX {inkl. skatt} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}",alternativePriceAriaLabel:"Alternativt f\xF6r {alternativePrice}",strikethroughAriaLabel:"Normalpris {strikethroughPrice}"},{lang:"tr",recurrenceLabel:"{recurrenceTerm, select, MONTH {/ay} YEAR {/y\u0131l} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {(ayl\u0131k)} YEAR {(y\u0131ll\u0131k)} other {}}",perUnitLabel:"{perUnit, select, LICENSE {(lisans ba\u015F\u0131na)} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {(lisans ba\u015F\u0131na)} other {}}",freeLabel:"\xDCcretsiz",freeAriaLabel:"\xDCcretsiz",taxExclusiveLabel:"{taxTerm, select, GST {GST hari\xE7} VAT {KDV hari\xE7} TAX {vergi hari\xE7} IVA {IVA hari\xE7} SST {SST hari\xE7} KDV {KDV hari\xE7} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {GST dahil} VAT {KDV dahil} TAX {vergi dahil} IVA {IVA dahil} SST {SST dahil} KDV {KDV dahil} other {}}",alternativePriceAriaLabel:"Ya da {alternativePrice}",strikethroughAriaLabel:"Standart fiyat: {strikethroughPrice}"},{lang:"uk",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\u043C\u0456\u0441.} YEAR {/\u0440\u0456\u043A} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {\u043D\u0430 \u043C\u0456\u0441\u044F\u0446\u044C} YEAR {\u043D\u0430 \u0440\u0456\u043A} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\u0437\u0430 \u043B\u0456\u0446\u0435\u043D\u0437\u0456\u044E} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\u0437\u0430 \u043B\u0456\u0446\u0435\u043D\u0437\u0456\u044E} other {}}",freeLabel:"\u0411\u0435\u0437\u043A\u043E\u0448\u0442\u043E\u0432\u043D\u043E",freeAriaLabel:"\u0411\u0435\u0437\u043A\u043E\u0448\u0442\u043E\u0432\u043D\u043E",taxExclusiveLabel:"{taxTerm, select, GST {\u0431\u0435\u0437 GST} VAT {\u0431\u0435\u0437 \u041F\u0414\u0412} TAX {\u0431\u0435\u0437 \u043F\u043E\u0434\u0430\u0442\u043A\u0443} IVA {\u0431\u0435\u0437 IVA} SST {\u0431\u0435\u0437 SST} KDV {\u0431\u0435\u0437 KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {\u0440\u0430\u0437\u043E\u043C \u0456\u0437 GST} VAT {\u0440\u0430\u0437\u043E\u043C \u0456\u0437 \u041F\u0414\u0412} TAX {\u0440\u0430\u0437\u043E\u043C \u0456\u0437 \u043F\u043E\u0434\u0430\u0442\u043A\u043E\u043C} IVA {\u0440\u0430\u0437\u043E\u043C \u0437 IVA} SST {\u0440\u0430\u0437\u043E\u043C \u0456\u0437 SST} KDV {\u0440\u0430\u0437\u043E\u043C \u0456\u0437 KDV} other {}}",alternativePriceAriaLabel:"\u0410\u0431\u043E \u0437\u0430 {alternativePrice}",strikethroughAriaLabel:"\u0417\u0432\u0438\u0447\u0430\u0439\u043D\u0430 \u0446\u0456\u043D\u0430 {strikethroughPrice}"},{lang:"zh-hans",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\u6708} YEAR {/\u5E74} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {\u6BCF\u6708} YEAR {\u6BCF\u5E74} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\u6BCF\u4E2A\u8BB8\u53EF\u8BC1} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\u6BCF\u4E2A\u8BB8\u53EF\u8BC1} other {}}",freeLabel:"\u514D\u8D39",freeAriaLabel:"\u514D\u8D39",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"\u6216\u5B9A\u4EF7 {alternativePrice}",strikethroughAriaLabel:"\u6B63\u5E38\u4EF7 {strikethroughPrice}"},{lang:"zh-hant",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\u6708} YEAR {/\u5E74} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {\u6BCF\u6708} YEAR {\u6BCF\u5E74} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\u6BCF\u500B\u6388\u6B0A} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\u6BCF\u500B\u6388\u6B0A} other {}}",freeLabel:"\u514D\u8CBB",freeAriaLabel:"\u514D\u8CBB",taxExclusiveLabel:"{taxTerm, select, GST {\u4E0D\u542B GST} VAT {\u4E0D\u542B VAT} TAX {\u4E0D\u542B\u7A05} IVA {\u4E0D\u542B IVA} SST {\u4E0D\u542B SST} KDV {\u4E0D\u542B KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {\u542B GST} VAT {\u542B VAT} TAX {\u542B\u7A05} IVA {\u542B IVA} SST {\u542B SST} KDV {\u542B KDV} other {}}",alternativePriceAriaLabel:"\u6216\u8005\u5728 {alternativePrice}",strikethroughAriaLabel:"\u6A19\u6E96\u50F9\u683C\u70BA {strikethroughPrice}"},{lang:"es",recurrenceLabel:"{recurrenceTerm, select, MONTH {/mes} YEAR {/a\xF1o} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {al mes} YEAR {al a\xF1o} other {}}",perUnitLabel:"{perUnit, select, LICENSE {por licencia} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {por licencia} other {}}",freeLabel:"Gratuito",freeAriaLabel:"Gratuito",taxExclusiveLabel:"{taxTerm, select, GST {GST no incluido} VAT {IVA no incluido} TAX {Impuestos no incluidos} IVA {IVA no incluido} SST {SST no incluido} KDV {KDV no incluido} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {GST incluido} VAT {IVA incluido} TAX {Impuestos incluidos} IVA {IVA incluido} SST {SST incluido} KDV {KDV incluido} other {}}",alternativePriceAriaLabel:"Alternativamente por {alternativePrice}",strikethroughAriaLabel:"Normalmente a {strikethroughPrice}"},{lang:"in",recurrenceLabel:"{recurrenceTerm, select, MONTH {/bulan} YEAR {/tahun} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per bulan} YEAR {per tahun} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per lisensi} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per lisensi} other {}}",freeLabel:"Gratis",freeAriaLabel:"Gratis",taxExclusiveLabel:"{taxTerm, select, GST {tidak termasuk PBJ} VAT {tidak termasuk PPN} TAX {tidak termasuk pajak} IVA {tidak termasuk IVA} SST {tidak termasuk SST} KDV {tidak termasuk KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {termasuk PBJ} VAT {termasuk PPN} TAX {termasuk pajak} IVA {termasuk IVA} SST {termasuk SST} KDV {termasuk KDV} other {}}",alternativePriceAriaLabel:"Atau seharga {alternativePrice}",strikethroughAriaLabel:"Normalnya seharga {strikethroughPrice}"},{lang:"vi",recurrenceLabel:"{recurrenceTerm, select, MONTH {/th\xE1ng} YEAR {/n\u0103m} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {m\u1ED7i th\xE1ng} YEAR {m\u1ED7i n\u0103m} other {}}",perUnitLabel:"{perUnit, select, LICENSE {m\u1ED7i gi\u1EA5y ph\xE9p} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {m\u1ED7i gi\u1EA5y ph\xE9p} other {}}",freeLabel:"Mi\u1EC5n ph\xED",freeAriaLabel:"Mi\u1EC5n ph\xED",taxExclusiveLabel:"{taxTerm, select, GST {ch\u01B0a bao g\u1ED3m thu\u1EBF h\xE0ng h\xF3a v\xE0 d\u1ECBch v\u1EE5} VAT {ch\u01B0a bao g\u1ED3m thu\u1EBF GTGT} TAX {ch\u01B0a bao g\u1ED3m thu\u1EBF} IVA {ch\u01B0a bao g\u1ED3m IVA} SST {ch\u01B0a bao g\u1ED3m SST} KDV {ch\u01B0a bao g\u1ED3m KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {(\u0111\xE3 bao g\u1ED3m thu\u1EBF h\xE0ng h\xF3a v\xE0 d\u1ECBch v\u1EE5)} VAT {(\u0111\xE3 bao g\u1ED3m thu\u1EBF GTGT)} TAX {(\u0111\xE3 bao g\u1ED3m thu\u1EBF)} IVA {(\u0111\xE3 bao g\u1ED3m IVA)} SST {(\u0111\xE3 bao g\u1ED3m SST)} KDV {(\u0111\xE3 bao g\u1ED3m KDV)} other {}}",alternativePriceAriaLabel:"Gi\xE1 \u01B0u \u0111\xE3i {alternativePrice}",strikethroughAriaLabel:"Gi\xE1 th\xF4ng th\u01B0\u1EDDng {strikethroughPrice}"},{lang:"th",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\u0E40\u0E14\u0E37\u0E2D\u0E19} YEAR {/\u0E1B\u0E35} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {\u0E15\u0E48\u0E2D\u0E40\u0E14\u0E37\u0E2D\u0E19} YEAR {\u0E15\u0E48\u0E2D\u0E1B\u0E35} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\u0E15\u0E48\u0E2D\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E4C\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\u0E15\u0E48\u0E2D\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E4C\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19} other {}}",freeLabel:"\u0E1F\u0E23\u0E35",freeAriaLabel:"\u0E1F\u0E23\u0E35",taxExclusiveLabel:"{taxTerm, select, GST {\u0E44\u0E21\u0E48\u0E23\u0E27\u0E21\u0E20\u0E32\u0E29\u0E35 GST} VAT {\u0E44\u0E21\u0E48\u0E23\u0E27\u0E21 VAT} TAX {\u0E44\u0E21\u0E48\u0E23\u0E27\u0E21\u0E20\u0E32\u0E29\u0E35} IVA {\u0E44\u0E21\u0E48\u0E23\u0E27\u0E21 IVA} SST {\u0E44\u0E21\u0E48\u0E23\u0E27\u0E21 SST} KDV {\u0E44\u0E21\u0E48\u0E23\u0E27\u0E21 KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {\u0E23\u0E27\u0E21\u0E20\u0E32\u0E29\u0E35 GST} VAT {\u0E23\u0E27\u0E21 VAT} TAX {\u0E23\u0E27\u0E21\u0E20\u0E32\u0E29\u0E35} IVA {\u0E23\u0E27\u0E21 IVA} SST {\u0E23\u0E27\u0E21 SST} KDV {\u0E23\u0E27\u0E21 KDV} other {}}",alternativePriceAriaLabel:"\u0E23\u0E32\u0E04\u0E32\u0E1E\u0E34\u0E40\u0E28\u0E29 {alternativePrice}",strikethroughAriaLabel:"\u0E23\u0E32\u0E04\u0E32\u0E1B\u0E01\u0E15\u0E34 {strikethroughPrice}"},{lang:"el",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\u03BC\u03AE\u03BD\u03B1} YEAR {/\u03AD\u03C4\u03BF\u03C2} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {\u03BA\u03AC\u03B8\u03B5 \u03BC\u03AE\u03BD\u03B1} YEAR {\u03B1\u03BD\u03AC \u03AD\u03C4\u03BF\u03C2} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\u03B1\u03BD\u03AC \u03AC\u03B4\u03B5\u03B9\u03B1 \u03C7\u03C1\u03AE\u03C3\u03B7\u03C2} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\u03B1\u03BD\u03AC \u03AC\u03B4\u03B5\u03B9\u03B1 \u03C7\u03C1\u03AE\u03C3\u03B7\u03C2} other {}}",freeLabel:"\u0394\u03C9\u03C1\u03B5\u03AC\u03BD",freeAriaLabel:"\u0394\u03C9\u03C1\u03B5\u03AC\u03BD",taxExclusiveLabel:"{taxTerm, select, GST {(\u03BC\u03B7 \u03C3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 GST)} VAT {(\u03BC\u03B7 \u03C3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 \u03A6\u03A0\u0391)} TAX {(\u03BC\u03B7 \u03C3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C6\u03CC\u03C1\u03BF)} IVA {(\u03BC\u03B7 \u03C3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 IVA)} SST {(\u03BC\u03B7 \u03C3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 SST)} KDV {(\u03BC\u03B7 \u03C3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 KDV)} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {(\u03C3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C4\u03BF\u03C5 GST)} VAT {(\u03C3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 \u03A6\u03A0\u0391)} TAX {(\u03C3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C4\u03BF\u03C5 \u03C6\u03CC\u03C1\u03BF\u03C5)} IVA {(\u03C3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C4\u03BF\u03C5 IVA)} SST {(\u03C3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C4\u03BF\u03C5 SST)} KDV {(\u03C3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C4\u03BF\u03C5 KDV)} other {}}",alternativePriceAriaLabel:"\u0394\u03B9\u03B1\u03C6\u03BF\u03C1\u03B5\u03C4\u03B9\u03BA\u03AC, {alternativePrice}",strikethroughAriaLabel:"\u039A\u03B1\u03BD\u03BF\u03BD\u03B9\u03BA\u03AE \u03C4\u03B9\u03BC\u03AE {strikethroughPrice}"},{lang:"fil",recurrenceLabel:"{recurrenceTerm, select, MONTH {/buwan} YEAR {/taon} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per buwan} YEAR {per taon} other {}}",perUnitLabel:"{perUnit, select, LICENSE {kada lisensya} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {kada lisensya} other {}}",freeLabel:"Libre",freeAriaLabel:"Libre",taxExclusiveLabel:"{taxTerm, select, GST {hindi kasama ang GST} VAT {hindi kasama ang VAT} TAX {hindi kasama ang Buwis} IVA {hindi kasama ang IVA} SST {hindi kasama ang SST} KDV {hindi kasama ang KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {kasama ang GST} VAT {kasama ang VAT} TAX {kasama ang Buwis} IVA {kasama ang IVA} SST {kasama ang SST} KDV {kasama ang KDV} other {}}",alternativePriceAriaLabel:"Alternatibong nasa halagang {alternativePrice}",strikethroughAriaLabel:"Regular na nasa halagang {strikethroughPrice}"},{lang:"ms",recurrenceLabel:"{recurrenceTerm, select, MONTH {/bulan} YEAR {/tahun} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per bulan} YEAR {per tahun} other {}}",perUnitLabel:"{perUnit, select, LICENSE {setiap lesen} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {setiap lesen} other {}}",freeLabel:"Percuma",freeAriaLabel:"Percuma",taxExclusiveLabel:"{taxTerm, select, GST {kecuali GST} VAT {kecuali VAT} TAX {kecuali Cukai} IVA {kecuali IVA} SST {kecuali SST} KDV {kecuali KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {termasuk GST} VAT {termasuk VAT} TAX {termasuk Cukai} IVA {termasuk IVA} SST {termasuk SST} KDV {termasuk KDV} other {}}",alternativePriceAriaLabel:"Secara alternatif pada {alternativePrice}",strikethroughAriaLabel:"Biasanya pada {strikethroughPrice}"},{lang:"hi",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\u092E\u093E\u0939} YEAR {/\u0935\u0930\u094D\u0937} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per \u092E\u093E\u0939} YEAR {per \u0935\u0930\u094D\u0937} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\u092A\u094D\u0930\u0924\u093F \u0932\u093E\u0907\u0938\u0947\u0902\u0938} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\u092A\u094D\u0930\u0924\u093F \u0932\u093E\u0907\u0938\u0947\u0902\u0938} other {}}",freeLabel:"\u092B\u093C\u094D\u0930\u0940",freeAriaLabel:"\u092B\u093C\u094D\u0930\u0940",taxExclusiveLabel:"{taxTerm, select, GST {GST \u0905\u0924\u093F\u0930\u093F\u0915\u094D\u0924} VAT {VAT \u0905\u0924\u093F\u0930\u093F\u0915\u094D\u0924} TAX {\u0915\u0930 \u0905\u0924\u093F\u0930\u093F\u0915\u094D\u0924} IVA {IVA \u0905\u0924\u093F\u0930\u093F\u0915\u094D\u0924} SST {SST \u0905\u0924\u093F\u0930\u093F\u0915\u094D\u0924} KDV {KDV \u0905\u0924\u093F\u0930\u093F\u0915\u094D\u0924} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {GST \u0938\u0939\u093F\u0924} VAT {VAT \u0938\u0939\u093F\u0924} TAX {\u0915\u0930 \u0938\u0939\u093F\u0924} IVA {IVA \u0938\u0939\u093F\u0924} SST {SST \u0938\u0939\u093F\u0924} KDV {KDV \u0938\u0939\u093F\u0924} other {}}",alternativePriceAriaLabel:"\u0935\u0948\u0915\u0932\u094D\u092A\u093F\u0915 \u0930\u0942\u092A \u0938\u0947 \u0907\u0938 \u092A\u0930 {alternativePrice}",strikethroughAriaLabel:"\u0928\u093F\u092F\u092E\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 \u0907\u0938 \u092A\u0930 {strikethroughPrice}"},{lang:"iw",recurrenceLabel:"{recurrenceTerm, select, MONTH {/\u05D7\u05D5\u05D3\u05E9} YEAR {/\u05E9\u05E0\u05D4} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {\u05DC\u05D7\u05D5\u05D3\u05E9} YEAR {\u05DC\u05E9\u05E0\u05D4} other {}}",perUnitLabel:"{perUnit, select, LICENSE {\u05DC\u05E8\u05D9\u05E9\u05D9\u05D5\u05DF} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {\u05DC\u05E8\u05D9\u05E9\u05D9\u05D5\u05DF} other {}}",freeLabel:"\u05D7\u05D9\u05E0\u05DD",freeAriaLabel:"\u05D7\u05D9\u05E0\u05DD",taxExclusiveLabel:'{taxTerm, select, GST {\u05DC\u05DC\u05D0 GST} VAT {\u05DC\u05DC\u05D0 \u05DE\u05E2"\u05DE} TAX {\u05DC\u05DC\u05D0 \u05DE\u05E1} IVA {\u05DC\u05DC\u05D0 IVA} SST {\u05DC\u05DC\u05D0 SST} KDV {\u05DC\u05DC\u05D0 KDV} other {}}',taxInclusiveLabel:'{taxTerm, select, GST {\u05DB\u05D5\u05DC\u05DC GST} VAT {\u05DB\u05D5\u05DC\u05DC \u05DE\u05E2"\u05DE} TAX {\u05DB\u05D5\u05DC\u05DC \u05DE\u05E1} IVA {\u05DB\u05D5\u05DC\u05DC IVA} SST {\u05DB\u05D5\u05DC\u05DC SST} KDV {\u05DB\u05D5\u05DC\u05DC KDV} other {}}',alternativePriceAriaLabel:"\u05DC\u05D7\u05DC\u05D5\u05E4\u05D9\u05DF \u05D1-{alternativePrice}",strikethroughAriaLabel:"\u05D1\u05D0\u05D5\u05E4\u05DF \u05E7\u05D1\u05D5\u05E2 \u05D1-{strikethroughPrice}"}],":type":"sheet"}});(function(){let r={clientId:"",endpoint:"https://www.adobe.com/lana/ll",endpointStage:"https://www.stage.adobe.com/lana/ll",errorType:"e",sampleRate:1,tags:"",implicitSampleRate:1,useProd:!0,isProdDomain:!1},n=window;function i(){let{host:h}=window.location;return h.substring(h.length-10)===".adobe.com"&&h.substring(h.length-15)!==".corp.adobe.com"&&h.substring(h.length-16)!==".stage.adobe.com"}function o(h,d){h||(h={}),d||(d={});function u(m){return h[m]!==void 0?h[m]:d[m]!==void 0?d[m]:r[m]}return Object.keys(r).reduce((m,f)=>(m[f]=u(f),m),{})}function a(h,d){h=h&&h.stack?h.stack:h||"",h.length>2e3&&(h=`${h.slice(0,2e3)}`);let u=o(d,n.lana.options);if(!u.clientId){console.warn("LANA ClientID is not set in options.");return}let f=parseInt(new URL(window.location).searchParams.get("lana-sample"),10)||(u.errorType==="i"?u.implicitSampleRate:u.sampleRate);if(!n.lana.debug&&!n.lana.localhost&&f<=Math.random()*100)return;let g=i()||u.isProdDomain,y=!g||!u.useProd?u.endpointStage:u.endpoint,w=[`m=${encodeURIComponent(h)}`,`c=${encodeURI(u.clientId)}`,`s=${f}`,`t=${encodeURI(u.errorType)}`];if(u.tags&&w.push(`tags=${encodeURI(u.tags)}`),(!g||n.lana.debug||n.lana.localhost)&&console.log("LANA Msg: ",h,`
+Opts:`,u),!n.lana.localhost||n.lana.debug){let b=new XMLHttpRequest;return n.lana.debug&&(w.push("d"),b.addEventListener("load",()=>{console.log("LANA response:",b.responseText)})),b.open("GET",`${y}?${w.join("&")}`),b.send(),b}}function s(h){a(h.reason||h.error||h.message,{errorType:"i"})}function c(){return n.location.search.toLowerCase().indexOf("lanadebug")!==-1}function l(){return n.location.host.toLowerCase().indexOf("localhost")!==-1}n.lana={debug:!1,log:a,options:o(n.lana&&n.lana.options)},c()&&(n.lana.debug=!0),l()&&(n.lana.localhost=!0),n.addEventListener("error",s),n.addEventListener("unhandledrejection",s)})();var er=window,rr=er.ShadowRoot&&(er.ShadyCSS===void 0||er.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qi=Symbol(),Zi=new WeakMap,tr=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Qi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(rr&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=Zi.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Zi.set(r,t))}return t}toString(){return this.cssText}},Ji=e=>new tr(typeof e=="string"?e:e+"",void 0,Qi);var Wr=(e,t)=>{rr?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),i=er.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)})},nr=rr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Ji(r)})(e):e;var qr,ir=window,eo=ir.trustedTypes,Vs=eo?eo.emptyScript:"",to=ir.reactiveElementPolyfillSupport,Qr={toAttribute(e,t){switch(t){case Boolean:e=e?Vs:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},ro=(e,t)=>t!==e&&(t==t||e==e),Zr={attribute:!0,type:String,converter:Qr,reflect:!1,hasChanged:ro},Jr="finalized",ye=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,n)=>{let i=this._$Ep(n,r);i!==void 0&&(this._$Ev.set(i,n),t.push(i))}),t}static createProperty(t,r=Zr){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,n,r);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(i){let o=this[t];this[r]=i,this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Zr}static finalize(){if(this.hasOwnProperty(Jr))return!1;this[Jr]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let i of n)this.createProperty(i,r[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(nr(i))}else t!==void 0&&r.push(nr(t));return r}static _$Ep(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Wr(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=Zr){var i;let o=this.constructor._$Ep(t,n);if(o!==void 0&&n.reflect===!0){let a=(((i=n.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?n.converter:Qr).toAttribute(r,n.type);this._$El=t,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(t,r){var n;let i=this.constructor,o=i._$Ev.get(t);if(o!==void 0&&this._$El!==o){let a=i.getPropertyOptions(o),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:Qr;this._$El=o,this[o]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(t,r,n){let i=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||ro)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,o)=>this[o]=i),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(n)):this._$Ek()}catch(i){throw r=!1,this._$Ek(),i}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var i;return(i=n.hostUpdated)===null||i===void 0?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};ye[Jr]=!0,ye.elementProperties=new Map,ye.elementStyles=[],ye.shadowRootOptions={mode:"open"},to?.({ReactiveElement:ye}),((qr=ir.reactiveElementVersions)!==null&&qr!==void 0?qr:ir.reactiveElementVersions=[]).push("1.6.3");var en,or=window,Xe=or.trustedTypes,no=Xe?Xe.createPolicy("lit-html",{createHTML:e=>e}):void 0,rn="$lit$",ge=`lit$${(Math.random()+"").slice(9)}$`,ho="?"+ge,$s=`<${ho}>`,we=document,ar=()=>we.createComment(""),wt=e=>e===null||typeof e!="object"&&typeof e!="function",uo=Array.isArray,Us=e=>uo(e)||typeof e?.[Symbol.iterator]=="function",tn=`[
+\f\r]`,Lt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,io=/-->/g,oo=/>/g,_e=RegExp(`>|${tn}(?:([^\\s"'>=/]+)(${tn}*=${tn}*(?:[^
+\f\r"'\`<>=]|("|')|))|$)`,"g"),ao=/'/g,so=/"/g,mo=/^(?:script|style|textarea|title)$/i,po=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Th=po(1),yh=po(2),Pt=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),co=new WeakMap,Le=we.createTreeWalker(we,129,null,!1);function fo(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return no!==void 0?no.createHTML(t):t}var Ds=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"":"",a=Lt;for(let s=0;s"?(a=i??Lt,d=-1):h[1]===void 0?d=-2:(d=a.lastIndex-h[2].length,l=h[1],a=h[3]===void 0?_e:h[3]==='"'?so:ao):a===so||a===ao?a=_e:a===io||a===oo?a=Lt:(a=_e,i=void 0);let m=a===_e&&e[s+1].startsWith("/>")?" ":"";o+=a===Lt?c+$s:d>=0?(n.push(l),c.slice(0,d)+rn+c.slice(d)+ge+m):c+ge+(d===-2?(n.push(void 0),s):m)}return[fo(e,o+(e[r]||">")+(t===2?" ":"")),n]},Ct=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,a=0,s=t.length-1,c=this.parts,[l,h]=Ds(t,r);if(this.el=e.createElement(l,n),Le.currentNode=this.el.content,r===2){let d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(i=Le.nextNode())!==null&&c.length0){i.textContent=Xe?Xe.emptyScript:"";for(let m=0;m2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,n,i){let o=this.strings,a=!1;if(o===void 0)t=We(this,t,r,0),a=!wt(t)||t!==this._$AH&&t!==Pt,a&&(this._$AH=t);else{let s=t,c,l;for(t=o[0],c=0;cnew kt(typeof e=="string"?e:e+"",void 0,ln),k=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,o)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1],e[0]);return new kt(r,e,ln)},hn=(e,t)=>{lr?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),i=cr.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)})},hr=lr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return xe(r)})(e):e;var dn,dr=window,xo=dr.trustedTypes,Hs=xo?xo.emptyScript:"",bo=dr.reactiveElementPolyfillSupport,mn={toAttribute(e,t){switch(t){case Boolean:e=e?Hs:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},vo=(e,t)=>t!==e&&(t==t||e==e),un={attribute:!0,type:String,converter:mn,reflect:!1,hasChanged:vo},pn="finalized",ae=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,n)=>{let i=this._$Ep(n,r);i!==void 0&&(this._$Ev.set(i,n),t.push(i))}),t}static createProperty(t,r=un){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,n,r);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(i){let o=this[t];this[r]=i,this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||un}static finalize(){if(this.hasOwnProperty(pn))return!1;this[pn]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let i of n)this.createProperty(i,r[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(hr(i))}else t!==void 0&&r.push(hr(t));return r}static _$Ep(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return hn(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=un){var i;let o=this.constructor._$Ep(t,n);if(o!==void 0&&n.reflect===!0){let a=(((i=n.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?n.converter:mn).toAttribute(r,n.type);this._$El=t,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(t,r){var n;let i=this.constructor,o=i._$Ev.get(t);if(o!==void 0&&this._$El!==o){let a=i.getPropertyOptions(o),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:mn;this._$El=o,this[o]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(t,r,n){let i=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||vo)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,o)=>this[o]=i),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(n)):this._$Ek()}catch(i){throw r=!1,this._$Ek(),i}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var i;return(i=n.hostUpdated)===null||i===void 0?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};ae[pn]=!0,ae.elementProperties=new Map,ae.elementStyles=[],ae.shadowRootOptions={mode:"open"},bo?.({ReactiveElement:ae}),((dn=dr.reactiveElementVersions)!==null&&dn!==void 0?dn:dr.reactiveElementVersions=[]).push("1.6.3");var fn,ur=window,Ze=ur.trustedTypes,Ao=Ze?Ze.createPolicy("lit-html",{createHTML:e=>e}):void 0,xn="$lit$",be=`lit$${(Math.random()+"").slice(9)}$`,wo="?"+be,zs=`<${wo}>`,ke=document,Nt=()=>ke.createComment(""),Rt=e=>e===null||typeof e!="object"&&typeof e!="function",Po=Array.isArray,Fs=e=>Po(e)||typeof e?.[Symbol.iterator]=="function",gn=`[
+\f\r]`,It=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Eo=/-->/g,So=/>/g,Pe=RegExp(`>|${gn}(?:([^\\s"'>=/]+)(${gn}*=${gn}*(?:[^
+\f\r"'\`<>=]|("|')|))|$)`,"g"),To=/'/g,yo=/"/g,Co=/^(?:script|style|textarea|title)$/i,ko=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),x=ko(1),kh=ko(2),Ie=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),_o=new WeakMap,Ce=ke.createTreeWalker(ke,129,null,!1);function Io(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ao!==void 0?Ao.createHTML(t):t}var Ks=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"":"",a=It;for(let s=0;s"?(a=i??It,d=-1):h[1]===void 0?d=-2:(d=a.lastIndex-h[2].length,l=h[1],a=h[3]===void 0?Pe:h[3]==='"'?yo:To):a===yo||a===To?a=Pe:a===Eo||a===So?a=It:(a=Pe,i=void 0);let m=a===Pe&&e[s+1].startsWith("/>")?" ":"";o+=a===It?c+zs:d>=0?(n.push(l),c.slice(0,d)+xn+c.slice(d)+be+m):c+be+(d===-2?(n.push(void 0),s):m)}return[Io(e,o+(e[r]||">")+(t===2?" ":"")),n]},Ot=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,a=0,s=t.length-1,c=this.parts,[l,h]=Ks(t,r);if(this.el=e.createElement(l,n),Ce.currentNode=this.el.content,r===2){let d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(i=Ce.nextNode())!==null&&c.length0){i.textContent=Ze?Ze.emptyScript:"";for(let m=0;m2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,n,i){let o=this.strings,a=!1;if(o===void 0)t=Qe(this,t,r,0),a=!Rt(t)||t!==this._$AH&&t!==Ie,a&&(this._$AH=t);else{let s=t,c,l;for(t=o[0],c=0;c{var n,i;let o=(n=r?.renderBefore)!==null&&n!==void 0?n:t,a=o._$litPart$;if(a===void 0){let s=(i=r?.renderBefore)!==null&&i!==void 0?i:null;o._$litPart$=a=new Mt(t.insertBefore(Nt(),s),s,void 0,r??{})}return a._$AI(e),a};var Tn,yn;var J=class extends ae{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;let n=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=n.firstChild),n}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=No(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return Ie}};J.finalized=!0,J._$litElement$=!0,(Tn=globalThis.litElementHydrateSupport)===null||Tn===void 0||Tn.call(globalThis,{LitElement:J});var Ro=globalThis.litElementPolyfillSupport;Ro?.({LitElement:J});((yn=globalThis.litElementVersions)!==null&&yn!==void 0?yn:globalThis.litElementVersions=[]).push("3.3.3");var ve="(max-width: 767px)",mr="(max-width: 1199px)",V="(min-width: 768px)",M="(min-width: 1200px)",X="(min-width: 1600px)";var Oo=k`
+ :host {
+ --consonant-merch-card-background-color: #fff;
+ --consonant-merch-card-border: 1px solid var(--consonant-merch-card-border-color);
+
+ -webkit-font-smoothing: antialiased;
+ background-color: var(--consonant-merch-card-background-color);
+ border-radius: var(--consonant-merch-spacing-xs);
+ border: var(--consonant-merch-card-border);
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ font-family: var(--merch-body-font-family, 'Adobe Clean');
+ grid-template-columns: repeat(auto-fit, minmax(300px, max-content));
+ position: relative;
+ text-align: start;
+ }
+
+ :host(.placeholder) {
+ visibility: hidden;
+ }
+
+ :host([aria-selected]) {
+ outline: none;
+ box-shadow: inset 0 0 0 2px var(--color-accent);
+ }
+
+ .invisible {
+ visibility: hidden;
+ }
+
+ :host(:hover) .invisible,
+ :host(:active) .invisible,
+ :host(:focus) .invisible {
+ visibility: visible;
+ background-image: var(--ellipsis-icon);
+ cursor: pointer;
+ }
+
+ .action-menu.always-visible {
+ visibility: visible;
+ background-image: var(--ellipsis-icon);
+ cursor: pointer;
+ }
+
+ .top-section {
+ display: flex;
+ justify-content: flex-start;
+ align-items: flex-start;
+ gap: 16px;
+ }
+
+ .top-section.badge {
+ min-height: 32px;
+ }
+
+ .body {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-start;
+ height: 100%;
+ gap: var(--consonant-merch-spacing-xxs);
+ padding: var(--consonant-merch-spacing-xs);
+ }
+
+ footer {
+ display: flex;
+ justify-content: flex-end;
+ box-sizing: border-box;
+ align-items: flex-end;
+ width: 100%;
+ flex-flow: wrap;
+ gap: var(--consonant-merch-spacing-xs);
+
+ padding: var(--consonant-merch-spacing-xs);
+ }
+
+ footer.footer-column {
+ flex-direction: column;
+ }
+
+ footer.footer-column .secure-transaction-label {
+ align-self: flex-start;
+ }
+
+ hr {
+ background-color: var(--merch-color-grey-200);
+ border: none;
+ height: 1px;
+ width: auto;
+ margin-top: 0;
+ margin-bottom: 0;
+ margin-left: var(--consonant-merch-spacing-xs);
+ margin-right: var(--consonant-merch-spacing-xs);
+ }
+
+ div[class$='-badge'] {
+ position: absolute;
+ top: 16px;
+ right: 0;
+ font-size: var(--type-heading-xxs-size);
+ font-weight: 500;
+ max-width: 180px;
+ line-height: 16px;
+ text-align: center;
+ padding: 8px 11px;
+ border-radius: 5px 0 0 5px;
+ }
+
+ div[class$='-badge']:dir(rtl) {
+ left: 0;
+ right: initial;
+ padding: 8px 11px;
+ border-radius: 0 5px 5px 0;
+ }
+
+ .detail-bg-container {
+ right: 0;
+ padding: var(--consonant-merch-spacing-xs);
+ border-radius: 5px;
+ font-size: var(--consonant-merch-card-body-font-size);
+ margin: var(--consonant-merch-spacing-xs);
+ }
+
+ .action-menu {
+ display: flex;
+ width: 32px;
+ height: 32px;
+ position: absolute;
+ top: 16px;
+ right: 16px;
+ background-color: #f6f6f6;
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 16px 16px;
+ font-size: 0;
+ }
+ .hidden {
+ visibility: hidden;
+ }
+
+ #stock-checkbox,
+ .secure-transaction-label {
+ font-size: var(--consonant-merch-card-body-xxs-font-size);
+ line-height: 1.3;
+ color: var(--merch-color-grey-600);
+ }
+
+ #stock-checkbox {
+ display: inline-flex;
+ align-items: center;
+ cursor: pointer;
+ gap: 10px; /*same as spectrum */
+ }
+
+ #stock-checkbox > input {
+ display: none;
+ }
+
+ #stock-checkbox > span {
+ display: inline-block;
+ box-sizing: border-box;
+ border: 2px solid rgb(117, 117, 117);
+ border-radius: 2px;
+ width: 14px;
+ height: 14px;
+ }
+
+ #stock-checkbox > input:checked + span {
+ background: var(--checkmark-icon) no-repeat var(--color-accent);
+ border-color: var(--color-accent);
+ }
+
+ .secure-transaction-label {
+ white-space: nowrap;
+ display: inline-flex;
+ gap: var(--consonant-merch-spacing-xxs);
+ align-items: center;
+ flex: 1;
+ line-height: normal;
+ align-self: center;
+ }
+
+ .secure-transaction-label::before {
+ display: inline-block;
+ content: '';
+ width: 12px;
+ height: 15px;
+ background: var(--secure-icon) no-repeat;
+ background-position: center;
+ background-size: contain;
+ }
+
+ .checkbox-container {
+ display: flex;
+ align-items: center;
+ gap: var(--consonant-merch-spacing-xxs);
+ }
+
+ .checkbox-container input[type='checkbox']:checked + .checkmark {
+ background-color: var(--color-accent);
+ background-image: var(--checkmark-icon);
+ border-color: var(--color-accent);
+ }
+
+ .checkbox-container input[type='checkbox'] {
+ display: none;
+ }
+
+ .checkbox-container .checkmark {
+ position: relative;
+ display: inline-block;
+ width: 12px;
+ height: 12px;
+ border: 2px solid #757575;
+ background: #fff;
+ border-radius: 2px;
+ cursor: pointer;
+ margin-top: 2px;
+ }
+
+ slot[name='icons'] {
+ display: flex;
+ gap: 8px;
+ }
+
+ ::slotted([slot='price']) {
+ color: var(--consonant-merch-card-price-color);
+ }
+`,Mo=()=>[k`
+ /* Tablet */
+ @media screen and ${xe(V)} {
+ :host([size='wide']),
+ :host([size='super-wide']) {
+ width: 100%;
+ grid-column: 1 / -1;
+ }
+ }
+
+ /* Laptop */
+ @media screen and ${xe(M)} {
+ :host([size='wide']) {
+ grid-column: span 2;
+ }
+ `];var et,Vt=class Vt{constructor(t){p(this,"card");G(this,et,void 0);this.card=t,this.insertVariantStyle()}getContainer(){return Y(this,et,L(this,et)??this.card.closest('[class*="-merch-cards"]')??this.card.parentElement),L(this,et)}insertVariantStyle(){if(!Vt.styleMap[this.card.variant]){Vt.styleMap[this.card.variant]=!0;let t=document.createElement("style");t.innerHTML=this.getGlobalCSS(),document.head.appendChild(t)}}updateCardElementMinHeight(t,r){if(!t)return;let n=`--consonant-merch-card-${this.card.variant}-${r}-height`,i=Math.max(0,parseInt(window.getComputedStyle(t).height)||0),o=parseInt(this.getContainer().style.getPropertyValue(n))||0;i>o&&this.getContainer().style.setProperty(n,`${i}px`)}get badge(){let t;if(!(!this.card.badgeBackgroundColor||!this.card.badgeColor||!this.card.badgeText))return this.evergreen&&(t=`border: 1px solid ${this.card.badgeBackgroundColor}; border-right: none;`),x`
+
+ ${this.card.badgeText}
+
+ `}get cardImage(){return x`
+
+ ${this.badge}
+
`}getGlobalCSS(){return""}get theme(){return document.querySelector("sp-theme")}get evergreen(){return this.card.classList.contains("intro-pricing")}get promoBottom(){return this.card.classList.contains("promo-bottom")}get headingSelector(){return'[slot="heading-xs"]'}get secureLabelFooter(){let t=this.card.secureLabel?x`${this.card.secureLabel} `:"";return x``}async adjustTitleWidth(){let t=this.card.getBoundingClientRect().width,r=this.card.badgeElement?.getBoundingClientRect().width||0;t===0||r===0||this.card.style.setProperty("--consonant-merch-card-heading-xs-max-width",`${Math.round(t-r-16)}px`)}postCardUpdateHook(){}connectedCallbackHook(){}disconnectedCallbackHook(){}renderLayout(){}get aemFragmentMapping(){}};et=new WeakMap,p(Vt,"styleMap",{});var I=Vt;function ee(e,t={},r=null,n=null){let i=n?document.createElement(e,{is:n}):document.createElement(e);r instanceof HTMLElement?i.appendChild(r):i.innerHTML=r;for(let[o,a]of Object.entries(t))i.setAttribute(o,a);return i}function pr(){return window.matchMedia("(max-width: 767px)").matches}function Vo(){return window.matchMedia("(max-width: 1024px)").matches}var zn={};Rs(zn,{CLASS_NAME_FAILED:()=>kn,CLASS_NAME_HIDDEN:()=>js,CLASS_NAME_PENDING:()=>In,CLASS_NAME_RESOLVED:()=>Nn,ERROR_MESSAGE_BAD_REQUEST:()=>xr,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>rc,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>Rn,EVENT_AEM_ERROR:()=>Re,EVENT_AEM_LOAD:()=>Ne,EVENT_MAS_ERROR:()=>Cn,EVENT_MAS_READY:()=>Pn,EVENT_MERCH_CARD_ACTION_MENU_TOGGLE:()=>wn,EVENT_MERCH_CARD_COLLECTION_SHOWMORE:()=>ec,EVENT_MERCH_CARD_COLLECTION_SORT:()=>Js,EVENT_MERCH_CARD_READY:()=>Ln,EVENT_MERCH_OFFER_READY:()=>Ws,EVENT_MERCH_OFFER_SELECT_READY:()=>_n,EVENT_MERCH_QUANTITY_SELECTOR_CHANGE:()=>gr,EVENT_MERCH_SEARCH_CHANGE:()=>Qs,EVENT_MERCH_SIDENAV_SELECT:()=>tc,EVENT_MERCH_STOCK_CHANGE:()=>Zs,EVENT_MERCH_STORAGE_CHANGE:()=>fr,EVENT_OFFER_SELECTED:()=>qs,EVENT_TYPE_FAILED:()=>On,EVENT_TYPE_READY:()=>tt,EVENT_TYPE_RESOLVED:()=>Mn,LOG_NAMESPACE:()=>Vn,Landscape:()=>le,MODAL_TYPE_3_IN_1:()=>Me,NAMESPACE:()=>Ys,PARAM_AOS_API_KEY:()=>nc,PARAM_ENV:()=>$n,PARAM_LANDSCAPE:()=>Un,PARAM_WCS_API_KEY:()=>ic,PROVIDER_ENVIRONMENT:()=>Hn,STATE_FAILED:()=>se,STATE_PENDING:()=>Ae,STATE_RESOLVED:()=>ce,TAG_NAME_SERVICE:()=>Xs,WCS_PROD_URL:()=>Dn,WCS_STAGE_URL:()=>Gn,WORKFLOW_STEP:()=>Oe});var Ys="merch",js="hidden",tt="wcms:commerce:ready",Xs="mas-commerce-service",Ws="merch-offer:ready",_n="merch-offer-select:ready",Ln="merch-card:ready",wn="merch-card:action-menu-toggle",qs="merch-offer:selected",Zs="merch-stock:change",fr="merch-storage:change",gr="merch-quantity-selector:change",Qs="merch-search:change",Js="merch-card-collection:sort",ec="merch-card-collection:showmore",tc="merch-sidenav:select",Ne="aem:load",Re="aem:error",Pn="mas:ready",Cn="mas:error",kn="placeholder-failed",In="placeholder-pending",Nn="placeholder-resolved",xr="Bad WCS request",Rn="Commerce offer not found",rc="Literals URL not provided",On="mas:failed",Mn="mas:resolved",Vn="mas/commerce",$n="commerce.env",Un="commerce.landscape",nc="commerce.aosKey",ic="commerce.wcsKey",Dn="https://www.adobe.com/web_commerce_artifact",Gn="https://www.stage.adobe.com/web_commerce_artifact_stage",se="failed",Ae="pending",ce="resolved",le={DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"},Oe={CHECKOUT:"checkout",CHECKOUT_EMAIL:"checkout/email",SEGMENTATION:"segmentation",BUNDLE:"bundle",COMMITMENT:"commitment",RECOMMENDATION:"recommendation",EMAIL:"email",PAYMENT:"payment",CHANGE_PLAN_TEAM_PLANS:"change-plan/team-upgrade/plans",CHANGE_PLAN_TEAM_PAYMENT:"change-plan/team-upgrade/payment"},Hn={PRODUCTION:"PRODUCTION"},Me={TWP:"twp",D2P:"d2p",CRM:"crm"};var $o=`
+:root {
+ --consonant-merch-card-catalog-width: 276px;
+ --consonant-merch-card-catalog-icon-size: 40px;
+}
+.one-merch-card.catalog,
+.two-merch-cards.catalog,
+.three-merch-cards.catalog,
+.four-merch-cards.catalog {
+ grid-template-columns: var(--consonant-merch-card-catalog-width);
+}
+
+@media screen and ${V} {
+ :root {
+ --consonant-merch-card-catalog-width: 302px;
+ }
+
+ .two-merch-cards.catalog,
+ .three-merch-cards.catalog,
+ .four-merch-cards.catalog {
+ grid-template-columns: repeat(2, var(--consonant-merch-card-catalog-width));
+ }
+}
+
+@media screen and ${M} {
+ :root {
+ --consonant-merch-card-catalog-width: 276px;
+ }
+
+ .three-merch-cards.catalog,
+ .four-merch-cards.catalog {
+ grid-template-columns: repeat(3, var(--consonant-merch-card-catalog-width));
+ }
+}
+
+@media screen and ${X} {
+ .four-merch-cards.catalog {
+ grid-template-columns: repeat(4, var(--consonant-merch-card-catalog-width));
+ }
+}
+
+merch-card[variant="catalog"] [slot="action-menu-content"] {
+ background-color: #000;
+ color: var(--color-white, #fff);
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ width: fit-content;
+ padding: var(--consonant-merch-spacing-xs);
+ border-radius: var(--consonant-merch-spacing-xxxs);
+ position: absolute;
+ top: 55px;
+ right: 15px;
+ line-height: var(--consonant-merch-card-body-line-height);
+}
+
+merch-card[variant="catalog"] [slot="action-menu-content"] ul {
+ padding-left: 0;
+ padding-bottom: var(--consonant-merch-spacing-xss);
+ margin-top: 0;
+ margin-bottom: 0;
+ list-style-position: inside;
+ list-style-type: '\u2022 ';
+}
+
+merch-card[variant="catalog"] [slot="action-menu-content"] ul li {
+ padding-left: 0;
+ line-height: var(--consonant-merch-card-body-line-height);
+}
+
+merch-card[variant="catalog"] [slot="action-menu-content"] ::marker {
+ margin-right: 0;
+}
+
+merch-card[variant="catalog"] [slot="action-menu-content"] p {
+ color: var(--color-white, #fff);
+}
+
+merch-card[variant="catalog"] [slot="action-menu-content"] a {
+ color: var(--consonant-merch-card-background-color);
+ text-decoration: underline;
+}
+
+merch-card[variant="catalog"] .payment-details {
+ font-size: var(--consonant-merch-card-body-font-size);
+ font-style: italic;
+ font-weight: 400;
+ line-height: var(--consonant-merch-card-body-line-height);
+}`;var Fn={badge:!0,ctas:{slot:"footer",size:"m"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},prices:{tag:"h3",slot:"heading-xs"},size:["wide","super-wide"],title:{tag:"h3",slot:"heading-xs"}},rt=class extends I{constructor(r){super(r);p(this,"dispatchActionMenuToggle",()=>{this.card.dispatchEvent(new CustomEvent(wn,{bubbles:!0,composed:!0,detail:{card:this.card.name,type:"action-menu"}}))});p(this,"toggleActionMenu",r=>{if(!this.actionMenuContentSlot||!r||r.type!=="click"&&r.code!=="Space"&&r.code!=="Enter")return;r.preventDefault(),this.actionMenuContentSlot.classList.toggle("hidden");let n=this.actionMenuContentSlot.classList.contains("hidden");n||this.dispatchActionMenuToggle(),this.setAriaExpanded(this.actionMenu,(!n).toString())});p(this,"toggleActionMenuFromCard",r=>{let n=r?.type==="mouseleave"?!0:void 0;this.card.blur(),this.actionMenu?.classList.remove("always-visible"),this.actionMenuContentSlot&&(n||this.dispatchActionMenuToggle(),this.actionMenuContentSlot.classList.toggle("hidden",n),this.setAriaExpanded(this.actionMenu,"false"))});p(this,"hideActionMenu",r=>{this.actionMenuContentSlot?.classList.add("hidden"),this.setAriaExpanded(this.actionMenu,"false")})}get aemFragmentMapping(){return Fn}get actionMenu(){return this.card.shadowRoot.querySelector(".action-menu")}get actionMenuContentSlot(){return this.card.shadowRoot.querySelector('slot[name="action-menu-content"]')}renderLayout(){return x`
+
+ ${this.badge}
+
+
+
+
+
+
+ ${this.promoBottom?"":x`
`}
+
+ ${this.promoBottom?x`
`:""}
+
+ ${this.secureLabelFooter}
+ `}getGlobalCSS(){return $o}setAriaExpanded(r,n){r.setAttribute("aria-expanded",n)}connectedCallbackHook(){this.card.addEventListener("mouseleave",this.toggleActionMenuFromCard)}disconnectedCallbackHook(){this.card.removeEventListener("mouseleave",this.toggleActionMenuFromCard)}};p(rt,"variantStyle",k`
+ :host([variant='catalog']) {
+ min-height: 330px;
+ width: var(--consonant-merch-card-catalog-width);
+ }
+
+ .body .catalog-badge {
+ display: flex;
+ height: fit-content;
+ flex-direction: column;
+ width: fit-content;
+ max-width: 140px;
+ border-radius: 5px;
+ position: relative;
+ top: 0;
+ margin-left: var(--consonant-merch-spacing-xxs);
+ box-sizing: border-box;
+ }
+ `);var Uo=`
+:root {
+ --consonant-merch-card-image-width: 300px;
+}
+
+.one-merch-card.image,
+.two-merch-cards.image,
+.three-merch-cards.image,
+.four-merch-cards.image {
+ grid-template-columns: var(--consonant-merch-card-image-width);
+}
+
+@media screen and ${V} {
+ .two-merch-cards.image,
+ .three-merch-cards.image,
+ .four-merch-cards.image {
+ grid-template-columns: repeat(2, var(--consonant-merch-card-image-width));
+ }
+}
+
+@media screen and ${M} {
+ :root {
+ --consonant-merch-card-image-width: 378px;
+ --consonant-merch-card-image-width-4clm: 276px;
+ }
+
+ .three-merch-cards.image {
+ grid-template-columns: repeat(3, var(--consonant-merch-card-image-width));
+ }
+
+ .four-merch-cards.image {
+ grid-template-columns: repeat(4, var(--consonant-merch-card-image-width-4clm));
+ }
+}
+`;var br=class extends I{constructor(t){super(t)}getGlobalCSS(){return Uo}renderLayout(){return x`${this.cardImage}
+
+
+
+
+ ${this.promoBottom?x` `:x` `}
+
+ ${this.evergreen?x`
+
+
+
+ `:x`
+
+ ${this.secureLabelFooter}
+ `}`}};var Do=`
+:root {
+ --consonant-merch-card-inline-heading-width: 300px;
+}
+
+.one-merch-card.inline-heading,
+.two-merch-cards.inline-heading,
+.three-merch-cards.inline-heading,
+.four-merch-cards.inline-heading {
+ grid-template-columns: var(--consonant-merch-card-inline-heading-width);
+}
+
+@media screen and ${V} {
+ .two-merch-cards.inline-heading,
+ .three-merch-cards.inline-heading,
+ .four-merch-cards.inline-heading {
+ grid-template-columns: repeat(2, var(--consonant-merch-card-inline-heading-width));
+ }
+}
+
+@media screen and ${M} {
+ :root {
+ --consonant-merch-card-inline-heading-width: 378px;
+ }
+
+ .three-merch-cards.inline-heading,
+ .four-merch-cards.inline-heading {
+ grid-template-columns: repeat(3, var(--consonant-merch-card-inline-heading-width));
+ }
+}
+
+@media screen and ${X} {
+ .four-merch-cards.inline-heading {
+ grid-template-columns: repeat(4, var(--consonant-merch-card-inline-heading-width));
+ }
+}
+`;var vr=class extends I{constructor(t){super(t)}getGlobalCSS(){return Do}renderLayout(){return x` ${this.badge}
+
+ ${this.card.customHr?"":x` `} ${this.secureLabelFooter}`}};var Go=`
+ :root {
+ --consonant-merch-card-mini-compare-chart-icon-size: 32px;
+ --consonant-merch-card-mini-compare-mobile-cta-font-size: 15px;
+ --consonant-merch-card-mini-compare-mobile-cta-width: 75px;
+ --consonant-merch-card-mini-compare-badge-mobile-max-width: 50px;
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot="heading-m"] {
+ padding: 0 var(--consonant-merch-spacing-s) 0;
+ }
+
+ merch-card[variant="mini-compare-chart"].bullet-list [slot="heading-m"] {
+ padding: var(--consonant-merch-spacing-xxs) var(--consonant-merch-spacing-xs);
+ font-size: var(--consonant-merch-card-heading-xs-font-size);
+ }
+
+ merch-card[variant="mini-compare-chart"].bullet-list [slot='heading-m-price'] {
+ font-size: var(--consonant-merch-card-body-xxl-font-size);
+ padding: 0 var(--consonant-merch-spacing-xs);
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot="body-m"] {
+ padding: var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-s);
+ }
+
+ merch-card[variant="mini-compare-chart"].bullet-list [slot="body-m"] {
+ padding: var(--consonant-merch-spacing-xs);
+ }
+
+ merch-card[variant="mini-compare-chart"] [is="inline-price"] {
+ display: inline-block;
+ min-height: 30px;
+ min-width: 1px;
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot='callout-content'] {
+ padding: var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-s) 0px;
+ }
+
+ merch-card[variant="mini-compare-chart"].bullet-list [slot='callout-content'] {
+ padding: var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-xs) 0px;
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot='callout-content'] [is="inline-price"] {
+ min-height: unset;
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot="price-commitment"] {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ padding: 0 var(--consonant-merch-spacing-s);
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot="price-commitment"] a {
+ display: inline-block;
+ height: 27px;
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot="offers"] {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot="body-xxs"] {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ padding: var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-s) 0;
+ }
+
+ merch-card[variant="mini-compare-chart"].bullet-list [slot="body-xxs"] {
+ padding: var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-xs) 0;
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot="promo-text"] {
+ font-size: var(--consonant-merch-card-body-m-font-size);
+ padding: var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-s) 0;
+ }
+
+ merch-card[variant="mini-compare-chart"].bullet-list [slot="promo-text"] {
+ padding: var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-xs) 0;
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot="promo-text"] a {
+ text-decoration: underline;
+ }
+
+ merch-card[variant="mini-compare-chart"] .action-area {
+ display: flex;
+ justify-content: flex-end;
+ align-items: flex-end;
+ flex-wrap: wrap;
+ width: 100%;
+ gap: var(--consonant-merch-spacing-xs);
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot="footer-rows"] ul {
+ margin-block-start: 0px;
+ margin-block-end: 0px;
+ padding-inline-start: 0px;
+ }
+
+ merch-card[variant="mini-compare-chart"] .footer-row-icon {
+ display: flex;
+ place-items: center;
+ }
+
+ merch-card[variant="mini-compare-chart"] .footer-row-icon img {
+ max-width: initial;
+ width: var(--consonant-merch-card-mini-compare-chart-icon-size);
+ height: var(--consonant-merch-card-mini-compare-chart-icon-size);
+ }
+
+ merch-card[variant="mini-compare-chart"] .footer-rows-title {
+ font-color: var(--merch-color-grey-80);
+ font-weight: 700;
+ padding-block-end: var(--consonant-merch-spacing-xxs);
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ }
+
+ merch-card[variant="mini-compare-chart"] .footer-row-cell {
+ border-top: 1px solid var(--consonant-merch-card-border-color);
+ display: flex;
+ gap: var(--consonant-merch-spacing-xs);
+ justify-content: start;
+ place-items: center;
+ padding: var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-s);
+ margin-block: 0px;
+ }
+
+ merch-card[variant="mini-compare-chart"] .footer-row-icon-checkmark img {
+ max-width: initial;
+ }
+
+ merch-card[variant="mini-compare-chart"] .footer-row-icon-checkmark {
+ display: flex;
+ align-items: center;
+ height: 20px;
+ }
+
+ merch-card[variant="mini-compare-chart"] .footer-row-cell-checkmark {
+ display: flex;
+ gap: var(--consonant-merch-spacing-xs);
+ justify-content: start;
+ align-items: flex-start;
+ margin-block: var(--consonant-merch-spacing-xxxs);
+ }
+
+ merch-card[variant="mini-compare-chart"] .footer-row-cell-description-checkmark {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ font-weight: 400;
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ }
+
+ merch-card[variant="mini-compare-chart"] .footer-row-cell-description {
+ font-size: var(--consonant-merch-card-body-s-font-size);
+ line-height: var(--consonant-merch-card-body-s-line-height);
+ }
+
+ merch-card[variant="mini-compare-chart"] .footer-row-cell-description p {
+ color: var(--merch-color-grey-80);
+ vertical-align: bottom;
+ }
+
+ merch-card[variant="mini-compare-chart"] .footer-row-cell-description a {
+ color: var(--color-accent);
+ }
+
+ merch-card[variant="mini-compare-chart"] .chevron-icon {
+ margin-left: 8px;
+ }
+
+ merch-card[variant="mini-compare-chart"] .checkmark-copy-container {
+ display: none;
+ }
+
+ merch-card[variant="mini-compare-chart"] .checkmark-copy-container.open {
+ display: block;
+ }
+
+.one-merch-card.mini-compare-chart {
+ grid-template-columns: var(--consonant-merch-card-mini-compare-chart-wide-width);
+ gap: var(--consonant-merch-spacing-xs);
+}
+
+.two-merch-cards.mini-compare-chart,
+.three-merch-cards.mini-compare-chart,
+.four-merch-cards.mini-compare-chart {
+ grid-template-columns: repeat(2, var(--consonant-merch-card-mini-compare-chart-width));
+ gap: var(--consonant-merch-spacing-xs);
+}
+
+/* mini compare mobile */
+@media screen and ${ve} {
+ :root {
+ --consonant-merch-card-mini-compare-chart-width: 302px;
+ --consonant-merch-card-mini-compare-chart-wide-width: 302px;
+ }
+
+ .two-merch-cards.mini-compare-chart,
+ .three-merch-cards.mini-compare-chart,
+ .four-merch-cards.mini-compare-chart {
+ grid-template-columns: var(--consonant-merch-card-mini-compare-chart-width);
+ gap: var(--consonant-merch-spacing-xs);
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot='heading-m'] {
+ font-size: var(--consonant-merch-card-body-s-font-size);
+ line-height: var(--consonant-merch-card-body-s-line-height);
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot='heading-m-price'] {
+ font-size: var(--consonant-merch-card-body-s-font-size);
+ line-height: var(--consonant-merch-card-body-s-line-height);
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot='body-m'] {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot="promo-text"] {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ }
+ merch-card[variant="mini-compare-chart"] .footer-row-cell-description {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ }
+}
+
+@media screen and ${mr} {
+ merch-card[variant="mini-compare-chart"] [slot='heading-m'] {
+ font-size: var(--consonant-merch-card-body-s-font-size);
+ line-height: var(--consonant-merch-card-body-s-line-height);
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot='heading-m-price'] {
+ font-size: var(--consonant-merch-card-body-s-font-size);
+ line-height: var(--consonant-merch-card-body-s-line-height);
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot='body-m'] {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ }
+
+ merch-card[variant="mini-compare-chart"] [slot="promo-text"] {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ }
+
+ merch-card[variant="mini-compare-chart"] .footer-row-cell-description {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ }
+}
+@media screen and ${V} {
+ :root {
+ --consonant-merch-card-mini-compare-chart-width: 302px;
+ --consonant-merch-card-mini-compare-chart-wide-width: 302px;
+ }
+
+ .two-merch-cards.mini-compare-chart {
+ grid-template-columns: repeat(2, minmax(var(--consonant-merch-card-mini-compare-chart-width), var(--consonant-merch-card-mini-compare-chart-wide-width)));
+ gap: var(--consonant-merch-spacing-m);
+ }
+
+ .three-merch-cards.mini-compare-chart,
+ .four-merch-cards.mini-compare-chart {
+ grid-template-columns: repeat(2, minmax(var(--consonant-merch-card-mini-compare-chart-width), var(--consonant-merch-card-mini-compare-chart-wide-width)));
+ }
+}
+
+/* desktop */
+@media screen and ${M} {
+ :root {
+ --consonant-merch-card-mini-compare-chart-width: 378px;
+ --consonant-merch-card-mini-compare-chart-wide-width: 484px;
+ }
+ .one-merch-card.mini-compare-chart {
+ grid-template-columns: var(--consonant-merch-card-mini-compare-chart-wide-width);
+ }
+
+ .two-merch-cards.mini-compare-chart {
+ grid-template-columns: repeat(2, var(--consonant-merch-card-mini-compare-chart-wide-width));
+ gap: var(--consonant-merch-spacing-m);
+ }
+
+ .three-merch-cards.mini-compare-chart,
+ .four-merch-cards.mini-compare-chart {
+ grid-template-columns: repeat(3, var(--consonant-merch-card-mini-compare-chart-width));
+ gap: var(--consonant-merch-spacing-m);
+ }
+}
+
+@media screen and ${X} {
+ .four-merch-cards.mini-compare-chart {
+ grid-template-columns: repeat(4, var(--consonant-merch-card-mini-compare-chart-width));
+ }
+}
+
+merch-card .footer-row-cell:nth-child(1) {
+ min-height: var(--consonant-merch-card-footer-row-1-min-height);
+}
+
+merch-card .footer-row-cell:nth-child(2) {
+ min-height: var(--consonant-merch-card-footer-row-2-min-height);
+}
+
+merch-card .footer-row-cell:nth-child(3) {
+ min-height: var(--consonant-merch-card-footer-row-3-min-height);
+}
+
+merch-card .footer-row-cell:nth-child(4) {
+ min-height: var(--consonant-merch-card-footer-row-4-min-height);
+}
+
+merch-card .footer-row-cell:nth-child(5) {
+ min-height: var(--consonant-merch-card-footer-row-5-min-height);
+}
+
+merch-card .footer-row-cell:nth-child(6) {
+ min-height: var(--consonant-merch-card-footer-row-6-min-height);
+}
+
+merch-card .footer-row-cell:nth-child(7) {
+ min-height: var(--consonant-merch-card-footer-row-7-min-height);
+}
+
+merch-card .footer-row-cell:nth-child(8) {
+ min-height: var(--consonant-merch-card-footer-row-8-min-height);
+}
+`;var oc=32,nt=class extends I{constructor(r){super(r);p(this,"getRowMinHeightPropertyName",r=>`--consonant-merch-card-footer-row-${r}-min-height`);p(this,"getMiniCompareFooter",()=>{let r=this.card.secureLabel?x`
+ ${this.card.secureLabel} `:x` `;return x``})}getGlobalCSS(){return Go}adjustMiniCompareBodySlots(){if(this.card.getBoundingClientRect().width<=2)return;this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(".top-section"),"top-section");let r=["heading-m","body-m","heading-m-price","body-xxs","price-commitment","offers","promo-text","callout-content"];this.card.classList.contains("bullet-list")&&r.push("footer-rows"),r.forEach(i=>this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(`slot[name="${i}"]`),i)),this.updateCardElementMinHeight(this.card.shadowRoot.querySelector("footer"),"footer");let n=this.card.shadowRoot.querySelector(".mini-compare-chart-badge");n&&n.textContent!==""&&this.getContainer().style.setProperty("--consonant-merch-card-mini-compare-chart-top-section-mobile-height","32px")}adjustMiniCompareFooterRows(){if(this.card.getBoundingClientRect().width===0)return;[...this.card.querySelector('[slot="footer-rows"] ul')?.children].forEach((n,i)=>{let o=Math.max(oc,parseFloat(window.getComputedStyle(n).height)||0),a=parseFloat(this.getContainer().style.getPropertyValue(this.getRowMinHeightPropertyName(i+1)))||0;o>a&&this.getContainer().style.setProperty(this.getRowMinHeightPropertyName(i+1),`${o}px`)})}removeEmptyRows(){this.card.querySelectorAll(".footer-row-cell").forEach(n=>{let i=n.querySelector(".footer-row-cell-description");i&&!i.textContent.trim()&&n.remove()})}renderLayout(){return x`
+ ${this.badge}
+
+
+ ${this.card.classList.contains("bullet-list")?x`
+ `:x`
+ `}
+
+
+
+
+
+ ${this.getMiniCompareFooter()}
+ `}async postCardUpdateHook(){pr()?this.removeEmptyRows():(await Promise.all(this.card.prices.map(r=>r.onceSettled())),this.adjustMiniCompareBodySlots(),this.adjustMiniCompareFooterRows())}};p(nt,"variantStyle",k`
+ :host([variant='mini-compare-chart']) > slot:not([name='icons']) {
+ display: block;
+ }
+ :host([variant='mini-compare-chart']) footer {
+ min-height: var(--consonant-merch-card-mini-compare-chart-footer-height);
+ padding: var(--consonant-merch-spacing-s);
+ }
+
+ :host([variant='mini-compare-chart'].bullet-list) footer {
+ flex-flow: column nowrap;
+ min-height: var(--consonant-merch-card-mini-compare-chart-footer-height);
+ padding: var(--consonant-merch-spacing-xs);
+ }
+
+ /* mini-compare card */
+ :host([variant='mini-compare-chart']) .top-section {
+ padding-top: var(--consonant-merch-spacing-s);
+ padding-inline-start: var(--consonant-merch-spacing-s);
+ height: var(--consonant-merch-card-mini-compare-chart-top-section-height);
+ }
+
+ :host([variant='mini-compare-chart'].bullet-list) .top-section {
+ padding-top: var(--consonant-merch-spacing-xs);
+ padding-inline-start: var(--consonant-merch-spacing-xs);
+ }
+
+ :host([variant='mini-compare-chart'].bullet-list) .secure-transaction-label {
+ align-self: flex-start;
+ flex: none;
+ color: var(--merch-color-grey-700);
+ }
+
+ @media screen and ${xe(mr)} {
+ [class*'-merch-cards'] :host([variant='mini-compare-chart']) footer {
+ flex-direction: column;
+ align-items: stretch;
+ text-align: center;
+ }
+ }
+
+ @media screen and ${xe(M)} {
+ :host([variant='mini-compare-chart']) footer {
+ padding: var(--consonant-merch-spacing-xs)
+ var(--consonant-merch-spacing-s)
+ var(--consonant-merch-spacing-s)
+ var(--consonant-merch-spacing-s);
+ }
+ }
+
+ :host([variant='mini-compare-chart']) slot[name='footer-rows'] {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ justify-content: end;
+ }
+ /* mini-compare card heights for the slots: heading-m, body-m, heading-m-price, price-commitment, offers, promo-text, footer */
+ :host([variant='mini-compare-chart']) slot[name='heading-m'] {
+ min-height: var(--consonant-merch-card-mini-compare-chart-heading-m-height);
+ }
+ :host([variant='mini-compare-chart']) slot[name='body-m'] {
+ min-height: var(--consonant-merch-card-mini-compare-chart-body-m-height);
+ }
+ :host([variant='mini-compare-chart']) slot[name='heading-m-price'] {
+ min-height: var(
+ --consonant-merch-card-mini-compare-chart-heading-m-price-height
+ );
+ }
+ :host([variant='mini-compare-chart']) slot[name='body-xxs'] {
+ min-height: var(
+ --consonant-merch-card-mini-compare-chart-body-xxs-height
+ );
+ }
+ :host([variant='mini-compare-chart']) slot[name='price-commitment'] {
+ min-height: var(
+ --consonant-merch-card-mini-compare-chart-price-commitment-height
+ );
+ }
+ :host([variant='mini-compare-chart']) slot[name='offers'] {
+ min-height: var(--consonant-merch-card-mini-compare-chart-offers-height);
+ }
+ :host([variant='mini-compare-chart']) slot[name='promo-text'] {
+ min-height: var(--consonant-merch-card-mini-compare-chart-promo-text-height);
+ }
+ :host([variant='mini-compare-chart']) slot[name='callout-content'] {
+ min-height: var(
+ --consonant-merch-card-mini-compare-chart-callout-content-height
+ );
+ }
+ :host([variant='mini-compare-chart']) slot[name='footer-rows'] {
+ justify-content: flex-start;
+ }
+ `);var Ho=`
+:root {
+ --consonant-merch-card-plans-width: 300px;
+ --consonant-merch-card-plans-icon-size: 40px;
+}
+
+merch-card[variant="plans"] [slot="description"] {
+ min-height: 84px;
+}
+
+merch-card[variant="plans"] [slot="quantity-select"] {
+ display: flex;
+ justify-content: flex-start;
+ box-sizing: border-box;
+ width: 100%;
+ padding: var(--consonant-merch-spacing-xs);
+}
+
+.one-merch-card.plans,
+.two-merch-cards.plans,
+.three-merch-cards.plans,
+.four-merch-cards.plans {
+ grid-template-columns: var(--consonant-merch-card-plans-width);
+}
+
+/* Tablet */
+@media screen and ${V} {
+ :root {
+ --consonant-merch-card-plans-width: 302px;
+ }
+ .two-merch-cards.plans,
+ .three-merch-cards.plans,
+ .four-merch-cards.plans {
+ grid-template-columns: repeat(2, var(--consonant-merch-card-plans-width));
+ }
+ .four-merch-cards.plans .foreground {
+ max-width: unset;
+ }
+}
+
+/* desktop */
+@media screen and ${M} {
+ :root {
+ --consonant-merch-card-plans-width: 276px;
+ }
+ .three-merch-cards.plans {
+ grid-template-columns: repeat(3, var(--consonant-merch-card-plans-width));
+ }
+ .four-merch-cards.plans {
+ grid-template-columns: repeat(4, var(--consonant-merch-card-plans-width));
+ }
+}
+
+/* Large desktop */
+ @media screen and ${X} {
+ .four-merch-cards.plans {
+ grid-template-columns: repeat(4, var(--consonant-merch-card-plans-width));
+ }
+}
+`;var it=class extends I{constructor(t){super(t)}getGlobalCSS(){return Ho}postCardUpdateHook(){this.adjustTitleWidth()}get stockCheckbox(){return this.card.checkboxLabel?x`
+
+
+ ${this.card.checkboxLabel}
+ `:""}renderLayout(){return x` ${this.badge}
+
+
+
+
+
+ ${this.promoBottom?"":x` `}
+
+ ${this.promoBottom?x` `:""}
+ ${this.stockCheckbox}
+
+
+ ${this.secureLabelFooter}`}};p(it,"variantStyle",k`
+ :host([variant='plans']) {
+ min-height: 348px;
+ }
+
+ :host([variant='plans']) ::slotted([slot='heading-xs']) {
+ max-width: var(--consonant-merch-card-heading-xs-max-width, 100%);
+ }
+ `);var zo=`
+:root {
+ --consonant-merch-card-product-width: 300px;
+}
+
+/* grid style for product */
+.one-merch-card.product,
+.two-merch-cards.product,
+.three-merch-cards.product,
+.four-merch-cards.product {
+ grid-template-columns: var(--consonant-merch-card-product-width);
+}
+
+/* Tablet */
+@media screen and ${V} {
+ .two-merch-cards.product,
+ .three-merch-cards.product,
+ .four-merch-cards.product {
+ grid-template-columns: repeat(2, var(--consonant-merch-card-product-width));
+ }
+}
+
+/* desktop */
+@media screen and ${M} {
+ :root {
+ --consonant-merch-card-product-width: 378px;
+ --consonant-merch-card-product-width-4clm: 276px;
+ }
+
+ .three-merch-cards.product {
+ grid-template-columns: repeat(3, var(--consonant-merch-card-product-width));
+ }
+
+ .four-merch-cards.product {
+ grid-template-columns: repeat(4, var(--consonant-merch-card-product-width-4clm));
+ }
+}
+`;var Ve=class extends I{constructor(t){super(t),this.postCardUpdateHook=this.postCardUpdateHook.bind(this)}getGlobalCSS(){return zo}adjustProductBodySlots(){if(this.card.getBoundingClientRect().width===0)return;["heading-xs","body-xxs","body-xs","promo-text","callout-content","body-lower"].forEach(r=>this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(`slot[name="${r}"]`),r))}renderLayout(){return x` ${this.badge}
+
+
+
+
+ ${this.promoBottom?"":x` `}
+
+ ${this.promoBottom?x` `:""}
+
+
+
+ ${this.secureLabelFooter}`}connectedCallbackHook(){window.addEventListener("resize",this.postCardUpdateHook)}disconnectedCallbackHook(){window.removeEventListener("resize",this.postCardUpdateHook)}postCardUpdateHook(){this.card.isConnected&&(pr()||this.adjustProductBodySlots(),this.adjustTitleWidth())}};p(Ve,"variantStyle",k`
+ :host([variant='product']) > slot:not([name='icons']) {
+ display: block;
+ }
+ :host([variant='product']) slot[name='body-xs'] {
+ min-height: var(--consonant-merch-card-product-body-xs-height);
+ display: block;
+ }
+ :host([variant='product']) slot[name='heading-xs'] {
+ min-height: var(--consonant-merch-card-product-heading-xs-height);
+ display: block;
+ }
+ :host([variant='product']) slot[name='body-xxs'] {
+ min-height: var(--consonant-merch-card-product-body-xxs-height);
+ display: block;
+ }
+ :host([variant='product']) slot[name='promo-text'] {
+ min-height: var(--consonant-merch-card-product-promo-text-height);
+ display: block;
+ }
+ :host([variant='product']) slot[name='callout-content'] {
+ min-height: var(--consonant-merch-card-product-callout-content-height);
+ display: block;
+ }
+
+ :host([variant='product']) ::slotted([slot='heading-xs']) {
+ max-width: var(--consonant-merch-card-heading-xs-max-width, 100%);
+ }
+ `);var Fo=`
+:root {
+ --consonant-merch-card-segment-width: 378px;
+}
+
+/* grid style for segment */
+.one-merch-card.segment,
+.two-merch-cards.segment,
+.three-merch-cards.segment,
+.four-merch-cards.segment {
+ grid-template-columns: minmax(276px, var(--consonant-merch-card-segment-width));
+}
+
+/* Mobile */
+@media screen and ${ve} {
+ :root {
+ --consonant-merch-card-segment-width: 276px;
+ }
+}
+
+@media screen and ${V} {
+ :root {
+ --consonant-merch-card-segment-width: 276px;
+ }
+
+ .two-merch-cards.segment,
+ .three-merch-cards.segment,
+ .four-merch-cards.segment {
+ grid-template-columns: repeat(2, minmax(276px, var(--consonant-merch-card-segment-width)));
+ }
+}
+
+/* desktop */
+@media screen and ${M} {
+ :root {
+ --consonant-merch-card-segment-width: 302px;
+ }
+
+ .three-merch-cards.segment {
+ grid-template-columns: repeat(3, minmax(276px, var(--consonant-merch-card-segment-width)));
+ }
+
+ .four-merch-cards.segment {
+ grid-template-columns: repeat(4, minmax(276px, var(--consonant-merch-card-segment-width)));
+ }
+}
+`;var ot=class extends I{constructor(t){super(t)}getGlobalCSS(){return Fo}postCardUpdateHook(){this.adjustTitleWidth()}renderLayout(){return x` ${this.badge}
+
+
+
+ ${this.promoBottom?"":x` `}
+
+ ${this.promoBottom?x` `:""}
+
+
+ ${this.secureLabelFooter}`}};p(ot,"variantStyle",k`
+ :host([variant='segment']) {
+ min-height: 214px;
+ }
+ :host([variant='segment']) ::slotted([slot='heading-xs']) {
+ max-width: var(--consonant-merch-card-heading-xs-max-width, 100%);
+ }
+ `);var Ko=`
+:root {
+ --consonant-merch-card-special-offers-width: 378px;
+}
+
+merch-card[variant="special-offers"] span[is="inline-price"][data-template="strikethrough"] {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+}
+
+/* grid style for special-offers */
+.one-merch-card.special-offers,
+.two-merch-cards.special-offers,
+.three-merch-cards.special-offers,
+.four-merch-cards.special-offers {
+ grid-template-columns: minmax(300px, var(--consonant-merch-card-special-offers-width));
+}
+
+@media screen and ${ve} {
+ :root {
+ --consonant-merch-card-special-offers-width: 302px;
+ }
+}
+
+@media screen and ${V} {
+ :root {
+ --consonant-merch-card-special-offers-width: 302px;
+ }
+
+ .two-merch-cards.special-offers,
+ .three-merch-cards.special-offers,
+ .four-merch-cards.special-offers {
+ grid-template-columns: repeat(2, minmax(300px, var(--consonant-merch-card-special-offers-width)));
+ }
+}
+
+/* desktop */
+@media screen and ${M} {
+ .three-merch-cards.special-offers,
+ .four-merch-cards.special-offers {
+ grid-template-columns: repeat(3, minmax(300px, var(--consonant-merch-card-special-offers-width)));
+ }
+}
+
+@media screen and ${X} {
+ .four-merch-cards.special-offers {
+ grid-template-columns: repeat(4, minmax(300px, var(--consonant-merch-card-special-offers-width)));
+ }
+}
+`;var Kn={name:{tag:"h4",slot:"detail-m"},title:{tag:"h4",slot:"detail-m"},backgroundImage:{tag:"div",slot:"bg-image"},prices:{tag:"h3",slot:"heading-xs"},description:{tag:"div",slot:"body-xs"},ctas:{slot:"footer",size:"l"}},at=class extends I{constructor(t){super(t)}getGlobalCSS(){return Ko}get headingSelector(){return'[slot="detail-m"]'}get aemFragmentMapping(){return Kn}renderLayout(){return x`${this.cardImage}
+
+
+
+
+
+ ${this.evergreen?x`
+
+
+
+ `:x`
+
+ ${this.secureLabelFooter}
+ `}
+ `}};p(at,"variantStyle",k`
+ :host([variant='special-offers']) {
+ min-height: 439px;
+ }
+
+ :host([variant='special-offers']) {
+ width: var(--consonant-merch-card-special-offers-width);
+ }
+
+ :host([variant='special-offers'].center) {
+ text-align: center;
+ }
+ `);var Bo=`
+:root {
+ --consonant-merch-card-twp-width: 268px;
+ --consonant-merch-card-twp-mobile-width: 300px;
+ --consonant-merch-card-twp-mobile-height: 358px;
+}
+
+merch-card[variant="twp"] div[class$='twp-badge'] {
+ padding: 4px 10px 5px 10px;
+}
+
+merch-card[variant="twp"] [slot="body-xs-top"] {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ color: var(--merch-color-grey-80);
+}
+
+merch-card[variant="twp"] [slot="body-xs"] ul {
+ padding: 0;
+ margin: 0;
+}
+
+merch-card[variant="twp"] [slot="body-xs"] ul li {
+ list-style-type: none;
+ padding-left: 0;
+}
+
+merch-card[variant="twp"] [slot="body-xs"] ul li::before {
+ content: '\xB7';
+ font-size: 20px;
+ padding-right: 5px;
+ font-weight: bold;
+}
+
+merch-card[variant="twp"] [slot="footer"] {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ padding: var(--consonant-merch-spacing-s);
+ var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-xs);
+ color: var(--merch-color-grey-80);
+ display: flex;
+ flex-flow: wrap;
+}
+
+merch-card[variant='twp'] merch-quantity-select,
+merch-card[variant='twp'] merch-offer-select {
+ display: none;
+}
+
+.one-merch-card.twp,
+.two-merch-cards.twp,
+.three-merch-cards.twp {
+ grid-template-columns: var(--consonant-merch-card-image-width);
+}
+
+@media screen and ${ve} {
+ :root {
+ --consonant-merch-card-twp-width: 300px;
+ }
+ .one-merch-card.twp,
+ .two-merch-cards.twp,
+ .three-merch-cards.twp {
+ grid-template-columns: repeat(1, var(--consonant-merch-card-twp-mobile-width));
+ }
+}
+
+@media screen and ${V} {
+ :root {
+ --consonant-merch-card-twp-width: 268px;
+ }
+ .one-merch-card.twp,
+ .two-merch-cards.twp {
+ grid-template-columns: repeat(2, var(--consonant-merch-card-twp-width));
+ }
+ .three-merch-cards.twp {
+ grid-template-columns: repeat(3, var(--consonant-merch-card-twp-width));
+ }
+}
+
+@media screen and ${M} {
+ :root {
+ --consonant-merch-card-twp-width: 268px;
+ }
+ .one-merch-card.twp
+ .two-merch-cards.twp {
+ grid-template-columns: repeat(2, var(--consonant-merch-card-twp-width));
+ }
+ .three-merch-cards.twp {
+ grid-template-columns: repeat(3, var(--consonant-merch-card-twp-width));
+ }
+}
+
+@media screen and ${X} {
+ .one-merch-card.twp
+ .two-merch-cards.twp {
+ grid-template-columns: repeat(2, var(--consonant-merch-card-twp-width));
+ }
+ .three-merch-cards.twp {
+ grid-template-columns: repeat(3, var(--consonant-merch-card-twp-width));
+ }
+}
+`;var st=class extends I{constructor(t){super(t)}getGlobalCSS(){return Bo}renderLayout(){return x`${this.badge}
+
+
+
+
+
+
+
+
+ `}};p(st,"variantStyle",k`
+ :host([variant='twp']) {
+ padding: 4px 10px 5px 10px;
+ }
+ .twp-badge {
+ padding: 4px 10px 5px 10px;
+ }
+
+ :host([variant='twp']) ::slotted(merch-offer-select) {
+ display: none;
+ }
+
+ :host([variant='twp']) .top-section {
+ flex: 0;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-start;
+ height: 100%;
+ gap: var(--consonant-merch-spacing-xxs);
+ padding: var(--consonant-merch-spacing-xs)
+ var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-xs)
+ var(--consonant-merch-spacing-xs);
+ align-items: flex-start;
+ }
+
+ :host([variant='twp']) .body {
+ padding: 0 var(--consonant-merch-spacing-xs);
+ }
+
+ :host([aria-selected]) .twp-badge {
+ margin-inline-end: 2px;
+ padding-inline-end: 9px;
+ }
+
+ :host([variant='twp']) footer {
+ gap: var(--consonant-merch-spacing-xxs);
+ flex-direction: column;
+ align-self: flex-start;
+ }
+ `);var Yo=`
+
+ merch-card[variant="ccd-suggested"] [slot="heading-xs"] {
+ font-size: var(--consonant-merch-card-heading-xxs-font-size);
+ line-height: var(--consonant-merch-card-heading-xxs-line-height);
+ }
+
+ merch-card[variant="ccd-suggested"] [slot="body-xs"] a {
+ font-size: var(--consonant-merch-card-body-xxs-font-size);
+ line-height: var(--consonant-merch-card-body-xxs-line-height);
+ }
+
+ merch-card[variant="ccd-suggested"] [slot="price"] em {
+ font-size: var(--consonant-merch-card-body-xxs-font-size);
+ line-height: var(--consonant-merch-card-body-xxs-line-height);
+ }
+
+.spectrum--darkest merch-card[variant="ccd-suggested"] {
+ --consonant-merch-card-background-color:rgb(30, 30, 30);
+ --consonant-merch-card-heading-xs-color:rgb(239, 239, 239);
+ --consonant-merch-card-body-xs-color:rgb(200, 200, 200);
+ --consonant-merch-card-border-color:rgb(57, 57, 57);
+ --consonant-merch-card-detail-s-color:rgb(162, 162, 162);
+ --consonant-merch-card-price-color:rgb(248, 248, 248);
+ --merch-color-inline-price-strikethrough:rgb(176, 176, 176);
+}
+
+.spectrum--darkest merch-card[variant="ccd-suggested"]:hover {
+ --consonant-merch-card-border-color:rgb(73, 73, 73);
+}
+`;var Bn={backgroundImage:{attribute:"background-image"},badge:!0,ctas:{slot:"cta",size:"M"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},prices:{tag:"p",slot:"price"},size:[],subtitle:{tag:"h4",slot:"detail-s"},title:{tag:"h3",slot:"heading-xs"}},ct=class extends I{getGlobalCSS(){return Yo}get aemFragmentMapping(){return Bn}get stripStyle(){return this.card.backgroundImage?`
+ background: url("${this.card.backgroundImage}");
+ background-size: auto 100%;
+ background-repeat: no-repeat;
+ background-position: ${this.card.dir==="ltr"?"left":"right"};
+ `:""}renderLayout(){return x`
+
+
+
+
+ `}postCardUpdateHook(t){t.has("backgroundImage")&&this.styleBackgroundImage()}styleBackgroundImage(){if(this.card.classList.remove("thin-strip"),this.card.classList.remove("wide-strip"),!this.card.backgroundImage)return;let t=new Image;t.src=this.card.backgroundImage,t.onload=()=>{t.width>8?this.card.classList.add("wide-strip"):t.width===8&&this.card.classList.add("thin-strip")}}};p(ct,"variantStyle",k`
+ :host([variant='ccd-suggested']) {
+ --consonant-merch-card-background-color: rgb(245, 245, 245);
+ --consonant-merch-card-body-xs-color: rgb(75, 75, 75);
+ --consonant-merch-card-border-color: rgb(225, 225, 225);
+ --consonant-merch-card-detail-s-color: rgb(110, 110, 110);
+ --consonant-merch-card-heading-xs-color: rgb(44, 44, 44);
+ --merch-color-inline-price-strikethrough: var(--spectrum-gray-600);
+ --mod-img-height: 38px;
+
+ box-sizing: border-box;
+ width: 100%;
+ max-width: 305px;
+ min-width: 270px;
+ min-height: 205px;
+ border-radius: 4px;
+ display: flex;
+ flex-flow: wrap;
+ overflow: hidden;
+ }
+
+ :host([variant='ccd-slice']) * {
+ overflow: hidden;
+ }
+
+ :host([variant='ccd-suggested']:hover) {
+ --consonant-merch-card-border-color: #cacaca;
+ }
+
+ :host([variant='ccd-suggested']) .body {
+ height: auto;
+ padding: 20px;
+ gap: 0;
+ }
+
+ :host([variant='ccd-suggested'].thin-strip) .body {
+ padding: 20px 20px 20px 28px;
+ }
+
+ :host([variant='ccd-suggested']) .header {
+ display: flex;
+ flex-flow: wrap;
+ place-self: flex-start;
+ flex-wrap: nowrap;
+ }
+
+ :host([variant='ccd-suggested']) .headings {
+ padding-inline-start: var(--consonant-merch-spacing-xxs);
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ }
+
+ :host([variant='ccd-suggested']) ::slotted([slot='icons']) {
+ place-self: center;
+ }
+
+ :host([variant='ccd-suggested']) ::slotted([slot='heading-xs']) {
+ font-size: var(--consonant-merch-card-heading-xxs-font-size);
+ line-height: var(--consonant-merch-card-heading-xxs-line-height);
+ }
+
+ :host([variant='ccd-suggested']) ::slotted([slot='detail-m']) {
+ line-height: var(--consonant-merch-card-detail-m-line-height);
+ }
+
+ :host([variant='ccd-suggested']) ::slotted([slot='body-xs']) {
+ color: var(--ccd-gray-700-dark);
+ padding-top: 8px;
+ flex-grow: 1;
+ }
+
+ :host([variant='ccd-suggested'].wide-strip)
+ ::slotted([slot='body-xs']) {
+ padding-inline-start: 48px;
+ }
+
+ :host([variant='ccd-suggested'].wide-strip) ::slotted([slot='price']) {
+ padding-inline-start: 48px;
+ }
+
+ :host([variant='ccd-suggested']) ::slotted([slot='price']) {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ }
+
+ :host([variant='ccd-suggested']) ::slotted([slot='cta']) {
+ display: flex;
+ align-items: center;
+ min-width: fit-content;
+ }
+
+ :host([variant='ccd-suggested']) .footer {
+ display: flex;
+ justify-content: space-between;
+ flex-grow: 0;
+ margin-top: 6px;
+ align-items: center;
+ }
+
+ :host([variant='ccd-suggested']) div[class$='-badge'] {
+ position: static;
+ border-radius: 4px;
+ }
+
+ :host([variant='ccd-suggested']) .top-section {
+ align-items: center;
+ }
+ `);var jo=`
+
+merch-card[variant="ccd-slice"] [slot='image'] img {
+ overflow: hidden;
+ border-radius: 50%;
+}
+
+merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link {
+ font-size: var(--consonant-merch-card-body-xxs-font-size);
+ font-style: normal;
+ font-weight: 400;
+ line-height: var(--consonant-merch-card-body-xxs-line-height);
+}
+
+.spectrum--darkest merch-card[variant="ccd-slice"] {
+ --consonant-merch-card-background-color:rgb(29, 29, 29);
+ --consonant-merch-card-body-s-color:rgb(235, 235, 235);
+ --consonant-merch-card-border-color:rgb(48, 48, 48);
+ --consonant-merch-card-detail-s-color:rgb(235, 235, 235);
+}
+`;var Yn={backgroundImage:{tag:"div",slot:"image"},badge:!0,ctas:{slot:"footer",size:"S"},description:{tag:"div",slot:"body-s"},mnemonics:{size:"m"},size:["wide"]},lt=class extends I{getGlobalCSS(){return jo}get aemFragmentMapping(){return Yn}renderLayout(){return x`
+
+
+ ${this.badge}
+
+
+
+
+
+ `}};p(lt,"variantStyle",k`
+ :host([variant='ccd-slice']) {
+ --consonant-merch-card-background-color: rgb(248, 248, 248);
+ --consonant-merch-card-border-color: rgb(230, 230, 230);
+ --consonant-merch-card-body-s-color: rgb(34, 34, 34);
+ --merch-color-inline-price-strikethrough: var(--spectrum-gray-600);
+ --mod-img-height: 29px;
+
+ box-sizing: border-box;
+ min-width: 290px;
+ max-width: 322px;
+ width: 100%;
+ max-height: 154px;
+ height: 154px;
+ border-radius: 4px;
+ display: flex;
+ flex-flow: wrap;
+ }
+
+ :host([variant='ccd-slice']) * {
+ overflow: hidden;
+ }
+
+ :host([variant='ccd-slice']) ::slotted([slot='body-s']) {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ line-height: var(--consonant-merch-card-body-xxs-line-height);
+ min-width: 154px;
+ max-width: 171px;
+ height: 55px;
+ overflow: hidden;
+ }
+
+ :host([variant='ccd-slice'][size='wide']) ::slotted([slot='body-s']) {
+ max-width: 425px;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ }
+
+ :host([variant='ccd-slice'][size='wide']) {
+ width: 600px;
+ max-width: 600px;
+ }
+
+ :host([variant='ccd-slice']) .content {
+ display: flex;
+ gap: var(--consonant-merch-spacing-xxs);
+ padding: 15px;
+ padding-inline-end: 0;
+ height: 154px;
+ box-sizing: border-box;
+ min-height: 123px;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: flex-start;
+ flex: 1 0 0;
+ }
+
+ :host([variant='ccd-slice'])
+ ::slotted([slot='body-s'])
+ ::slotted(a:not(.con-button)) {
+ font-size: var(--consonant-merch-card-body-xxs-font-size);
+ font-style: normal;
+ font-weight: 400;
+ line-height: var(--consonant-merch-card-body-xxs-line-height);
+ text-decoration-line: underline;
+ color: var(--spectrum-gray-800, var(--merch-color-grey-80));
+ }
+
+ :host([variant='ccd-slice']) ::slotted([slot='image']) {
+ display: flex;
+ justify-content: center;
+ flex-shrink: 0;
+ width: 134px;
+ height: 149px;
+ overflow: hidden;
+ border-radius: 50%;
+ padding: 15px;
+ align-self: center;
+ padding-inline-start: 0;
+ }
+
+ :host([variant='ccd-slice']) ::slotted([slot='image']) img {
+ overflow: hidden;
+ border-radius: 50%;
+ width: inherit;
+ height: inherit;
+ }
+
+ :host([variant='ccd-slice']) div[class$='-badge'] {
+ font-size: var(--consonant-merch-card-body-xxs-font-size);
+ position: static;
+ border-radius: 4px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ padding: 4px 9px;
+ }
+
+ :host([variant='ccd-slice']) .top-section {
+ align-items: center;
+ gap: 8px;
+ }
+ `);var jn=(e,t=!1)=>{switch(e.variant){case"catalog":return new rt(e);case"image":return new br(e);case"inline-heading":return new vr(e);case"mini-compare-chart":return new nt(e);case"plans":return new it(e);case"product":return new Ve(e);case"segment":return new ot(e);case"special-offers":return new at(e);case"twp":return new st(e);case"ccd-suggested":return new ct(e);case"ccd-slice":return new lt(e);default:return t?void 0:new Ve(e)}},Xo={catalog:Fn,image:null,"inline-heading":null,"mini-compare-chart":null,plans:null,product:null,segment:null,"special-offers":Kn,twp:null,"ccd-suggested":Bn,"ccd-slice":Yn},Wo=()=>{let e=[];return e.push(rt.variantStyle),e.push(nt.variantStyle),e.push(Ve.variantStyle),e.push(it.variantStyle),e.push(ot.variantStyle),e.push(at.variantStyle),e.push(st.variantStyle),e.push(ct.variantStyle),e.push(lt.variantStyle),e};var qo=document.createElement("style");qo.innerHTML=`
+:root {
+ --consonant-merch-card-detail-font-size: 12px;
+ --consonant-merch-card-detail-font-weight: 500;
+ --consonant-merch-card-detail-letter-spacing: 0.8px;
+
+ --consonant-merch-card-heading-font-size: 18px;
+ --consonant-merch-card-heading-line-height: 22.5px;
+ --consonant-merch-card-heading-secondary-font-size: 14px;
+ --consonant-merch-card-body-font-size: 14px;
+ --consonant-merch-card-body-line-height: 21px;
+ --consonant-merch-card-promo-text-height: var(--consonant-merch-card-body-font-size);
+
+ /* Fonts */
+ --merch-body-font-family: 'Adobe Clean', adobe-clean, 'Trebuchet MS', sans-serif;
+
+ /* spacing */
+ --consonant-merch-spacing-xxxs: 4px;
+ --consonant-merch-spacing-xxs: 8px;
+ --consonant-merch-spacing-xs: 16px;
+ --consonant-merch-spacing-s: 24px;
+ --consonant-merch-spacing-m: 32px;
+
+ /* cta */
+ --consonant-merch-card-cta-font-size: 15px;
+
+ /* headings */
+ --consonant-merch-card-heading-xxs-font-size: 16px;
+ --consonant-merch-card-heading-xxs-line-height: 20px;
+ --consonant-merch-card-heading-xs-font-size: 18px;
+ --consonant-merch-card-heading-xs-line-height: 22.5px;
+ --consonant-merch-card-heading-s-font-size: 20px;
+ --consonant-merch-card-heading-s-line-height: 25px;
+ --consonant-merch-card-heading-m-font-size: 24px;
+ --consonant-merch-card-heading-m-line-height: 30px;
+ --consonant-merch-card-heading-l-font-size: 20px;
+ --consonant-merch-card-heading-l-line-height: 30px;
+ --consonant-merch-card-heading-xl-font-size: 36px;
+ --consonant-merch-card-heading-xl-line-height: 45px;
+
+ /* detail */
+ --consonant-merch-card-detail-s-font-size: 11px;
+ --consonant-merch-card-detail-s-line-height: 14px;
+ --consonant-merch-card-detail-m-font-size: 12px;
+ --consonant-merch-card-detail-m-line-height: 15px;
+ --consonant-merch-card-detail-m-font-weight: 700;
+ --consonant-merch-card-detail-m-letter-spacing: 1px;
+
+ /* body */
+ --consonant-merch-card-body-xxs-font-size: 12px;
+ --consonant-merch-card-body-xxs-line-height: 18px;
+ --consonant-merch-card-body-xxs-letter-spacing: 1px;
+ --consonant-merch-card-body-xs-font-size: 14px;
+ --consonant-merch-card-body-xs-line-height: 21px;
+ --consonant-merch-card-body-s-font-size: 16px;
+ --consonant-merch-card-body-s-line-height: 24px;
+ --consonant-merch-card-body-m-font-size: 18px;
+ --consonant-merch-card-body-m-line-height: 27px;
+ --consonant-merch-card-body-l-font-size: 20px;
+ --consonant-merch-card-body-l-line-height: 30px;
+ --consonant-merch-card-body-xl-font-size: 22px;
+ --consonant-merch-card-body-xxl-font-size: 24px;
+ --consonant-merch-card-body-xl-line-height: 33px;
+
+
+ --consonant-merch-card-heading-padding: 0;
+
+ /* colors */
+ --consonant-merch-card-background-color: inherit;
+ --consonant-merch-card-border-color: #eaeaea;
+ --color-accent: rgb(59, 99, 251);
+ --merch-color-focus-ring: #1473E6;
+ --merch-color-grey-10: #f6f6f6;
+ --merch-color-grey-60: var(--specturm-gray-600);
+ --merch-color-grey-80: #2c2c2c;
+ --merch-color-grey-200: #E8E8E8;
+ --merch-color-grey-600: #686868;
+ --merch-color-grey-700: #464646;
+ --merch-color-green-promo: #2D9D78;
+ --consonant-merch-card-body-xs-color: var(--spectrum-gray-100, var(--merch-color-grey-80));
+ --merch-color-inline-price-strikethrough: initial;
+ --consonant-merch-card-detail-s-color: var(--spectrum-gray-600, var(--merch-color-grey-600));
+ --consonant-merch-card-heading-color: var(--spectrum-gray-800, var(--merch-color-grey-80));
+ --consonant-merch-card-heading-xs-color: var(--consonant-merch-card-heading-color);
+ --consonant-merch-card-price-color: #222222;
+
+ /* ccd colors */
+ --ccd-gray-200-light: #E6E6E6;
+ --ccd-gray-800-dark: #222;
+ --ccd-gray-700-dark: #464646;
+ --ccd-gray-600-light: #6D6D6D;
+
+
+
+ /* merch card generic */
+ --consonant-merch-card-max-width: 300px;
+ --transition: cmax-height 0.3s linear, opacity 0.3s linear;
+
+ /* background image */
+ --consonant-merch-card-bg-img-height: 180px;
+
+ /* inline SVGs */
+ --checkmark-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' d='M3.788 9A.999.999 0 0 1 3 8.615l-2.288-3a1 1 0 1 1 1.576-1.23l1.5 1.991 3.924-4.991a1 1 0 1 1 1.576 1.23l-4.712 6A.999.999 0 0 1 3.788 9z' class='spectrum-UIIcon--medium'/%3E%3C/svg%3E%0A");
+
+ --secure-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23757575' viewBox='0 0 12 15'%3E%3Cpath d='M11.5 6H11V5A5 5 0 1 0 1 5v1H.5a.5.5 0 0 0-.5.5v8a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.5ZM3 5a3 3 0 1 1 6 0v1H3Zm4 6.111V12.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1.389a1.5 1.5 0 1 1 2 0Z'/%3E%3C/svg%3E");
+
+ --info-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'> ');
+
+ /* callout */
+ --consonant-merch-card-callout-line-height: 21px;
+ --consonant-merch-card-callout-font-size: 14px;
+ --consonant-merch-card-callout-font-color: #2C2C2C;
+ --consonant-merch-card-callout-icon-size: 16px;
+ --consonant-merch-card-callout-icon-top: 6px;
+ --consonant-merch-card-callout-icon-right: 8px;
+ --consonant-merch-card-callout-letter-spacing: 0px;
+ --consonant-merch-card-callout-icon-padding: 34px;
+ --consonant-merch-card-callout-spacing-xxs: 8px;
+}
+
+merch-card-collection {
+ display: contents;
+}
+
+merch-card-collection > merch-card:not([style]) {
+ display: none;
+}
+
+merch-card-collection > p[slot],
+merch-card-collection > div[slot] p {
+ margin: 0;
+}
+
+.one-merch-card,
+.two-merch-cards,
+.three-merch-cards,
+.four-merch-cards {
+ display: grid;
+ justify-content: center;
+ justify-items: stretch;
+ align-items: normal;
+ gap: var(--consonant-merch-spacing-m);
+ padding: var(--spacing-m);
+}
+
+merch-card[variant="ccd-suggested"] *,
+merch-card[variant="ccd-slice"] * {
+ box-sizing: border-box;
+}
+
+merch-card.background-opacity-70 {
+ background-color: rgba(255 255 255 / 70%);
+}
+
+merch-card.has-divider hr {
+ margin: var(--consonant-merch-spacing-xs) 0;
+ height: 1px;
+ border: none;
+}
+
+merch-card.has-divider div[slot='body-lower'] hr {
+ margin: 0;
+}
+
+merch-card p, merch-card h3, merch-card h4 {
+ margin: 0;
+}
+
+merch-card span[is='inline-price'] {
+ display: inline-block;
+}
+
+merch-card [slot^='heading-'] {
+ color: var(--consonant-merch-card-heading-color);
+ font-weight: 700;
+}
+
+merch-card [slot='heading-xs'] {
+ font-size: var(--consonant-merch-card-heading-xs-font-size);
+ line-height: var(--consonant-merch-card-heading-xs-line-height);
+ color: var(--consonant-merch-card-heading-xs-color);
+ margin: 0;
+}
+
+merch-card.dc-pricing [slot='heading-xs'] {
+ margin-bottom: var(--consonant-merch-spacing-xxs);
+}
+
+merch-card:not([variant='inline-heading']) [slot='heading-xs'] a {
+ color: var(--merch-color-grey-80);
+}
+
+merch-card div.starting-at {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ font-weight: 500;
+}
+
+merch-card [slot='heading-xs'] a:not(:hover) {
+ text-decoration: inherit;
+}
+
+merch-card [slot='heading-s'] {
+ font-size: var(--consonant-merch-card-heading-s-font-size);
+ line-height: var(--consonant-merch-card-heading-s-line-height);
+ margin: 0;
+}
+
+merch-card [slot='heading-m'] {
+ font-size: var(--consonant-merch-card-heading-m-font-size);
+ line-height: var(--consonant-merch-card-heading-m-line-height);
+ margin: 0;
+}
+
+merch-card [slot='heading-m-price'] {
+ font-size: var(--consonant-merch-card-heading-m-font-size);
+ line-height: var(--consonant-merch-card-heading-m-line-height);
+ padding: 0 var(--consonant-merch-spacing-s);
+ margin: 0;
+ color: var(--spectrum-gray-800, #2c2c2c);
+}
+
+merch-card [slot='offers'] {
+ padding: var(--consonant-merch-spacing-xxs) var(--consonant-merch-spacing-s);
+}
+
+merch-card [slot='heading-l'] {
+ font-size: var(--consonant-merch-card-heading-l-font-size);
+ line-height: var(--consonant-merch-card-heading-l-line-height);
+ margin: 0;
+}
+
+merch-card [slot='heading-xl'] {
+ font-size: var(--consonant-merch-card-heading-xl-font-size);
+ line-height: var(--consonant-merch-card-heading-xl-line-height);
+ margin: 0;
+}
+
+merch-card [slot='callout-content'] {
+ display: flex;
+ flex-direction: column;
+ margin: var(--consonant-merch-spacing-xxxs) 0px;
+ gap: var(--consonant-merch-card-callout-spacing-xxs);
+}
+
+merch-card [slot='callout-content'] > div {
+ display: flex;
+ flex-direction: column;
+ margin: var(--consonant-merch-spacing-xxxs) 0px;
+ gap: var(--consonant-merch-card-callout-spacing-xxs);
+ align-items: flex-start;
+}
+
+merch-card [slot='callout-content'] > div > div {
+ display: flex;
+ background: rgba(203 203 203 / 50%);
+ border-radius: var(--consonant-merch-spacing-xxxs);
+ padding: var(--consonant-merch-spacing-xxxs) var(--consonant-merch-spacing-xxxs) var(--consonant-merch-spacing-xxxs) var(--consonant-merch-spacing-xxs);
+}
+
+merch-card [slot='callout-content'] > div > div > div {
+ display: inline-block;
+ text-align: start;
+ font: normal normal normal var(--consonant-merch-card-callout-font-size)/var(--consonant-merch-card-callout-line-height) var(--body-font-family, 'Adobe Clean');
+ letter-spacing: var(--consonant-merch-card-callout-letter-spacing);
+ color: var(--consonant-merch-card-callout-font-color);
+}
+
+merch-card [slot='callout-content'] img {
+ width: var(--consonant-merch-card-callout-icon-size);
+ height: var(--consonant-merch-card-callout-icon-size);
+ margin-inline-end: 2.5px;
+ margin-inline-start: 9px;
+ margin-block-start: 2.5px;
+}
+
+merch-card [slot='detail-s'] {
+ font-size: var(--consonant-merch-card-detail-s-font-size);
+ line-height: var(--consonant-merch-card-detail-s-line-height);
+ letter-spacing: 0.66px;
+ font-weight: 700;
+ text-transform: uppercase;
+ color: var(--consonant-merch-card-detail-s-color);
+}
+
+merch-card [slot='detail-m'] {
+ font-size: var(--consonant-merch-card-detail-m-font-size);
+ letter-spacing: var(--consonant-merch-card-detail-m-letter-spacing);
+ font-weight: var(--consonant-merch-card-detail-m-font-weight);
+ text-transform: uppercase;
+ margin: 0;
+ color: var(--merch-color-grey-80);
+}
+
+merch-card [slot="body-xxs"] {
+ font-size: var(--consonant-merch-card-body-xxs-font-size);
+ line-height: var(--consonant-merch-card-body-xxs-line-height);
+ font-weight: normal;
+ letter-spacing: var(--consonant-merch-card-body-xxs-letter-spacing);
+ margin: 0;
+ color: var(--merch-color-grey-80);
+}
+
+merch-card [slot="body-s"] {
+ color: var(--consonant-merch-card-body-s-color);
+}
+
+merch-card button.spectrum-Button > a {
+ color: inherit;
+ text-decoration: none;
+}
+
+merch-card button.spectrum-Button > a:hover {
+ color: inherit;
+}
+
+merch-card button.spectrum-Button > a:active {
+ color: inherit;
+}
+
+merch-card button.spectrum-Button > a:focus {
+ color: inherit;
+}
+
+merch-card [slot="body-xs"] {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ line-height: var(--consonant-merch-card-body-xs-line-height);
+ color: var(--consonant-merch-card-body-xs-color);
+}
+
+merch-card [slot="body-m"] {
+ font-size: var(--consonant-merch-card-body-m-font-size);
+ line-height: var(--consonant-merch-card-body-m-line-height);
+ color: var(--merch-color-grey-80);
+}
+
+merch-card [slot="body-l"] {
+ font-size: var(--consonant-merch-card-body-l-font-size);
+ line-height: var(--consonant-merch-card-body-l-line-height);
+ color: var(--merch-color-grey-80);
+}
+
+merch-card [slot="body-xl"] {
+ font-size: var(--consonant-merch-card-body-xl-font-size);
+ line-height: var(--consonant-merch-card-body-xl-line-height);
+ color: var(--merch-color-grey-80);
+}
+
+merch-card [slot="cci-footer"] p,
+merch-card [slot="cct-footer"] p,
+merch-card [slot="cce-footer"] p {
+ margin: 0;
+}
+
+merch-card [slot="promo-text"] {
+ color: var(--merch-color-green-promo);
+ font-size: var(--consonant-merch-card-promo-text-height);
+ font-weight: 700;
+ line-height: var(--consonant-merch-card-promo-text-height);
+ margin: 0;
+ min-height: var(--consonant-merch-card-promo-text-height);
+ padding: 0;
+}
+
+merch-card [slot="footer-rows"] {
+ min-height: var(--consonant-merch-card-footer-rows-height);
+}
+
+merch-card div[slot="footer"] {
+ display: contents;
+}
+
+merch-card.product div[slot="footer"] {
+ display: block;
+}
+
+merch-card.product div[slot="footer"] a + a {
+ margin: 5px 0 0 5px;
+}
+
+merch-card [slot="footer"] a {
+ word-wrap: break-word;
+ text-align: center;
+}
+
+merch-card [slot="footer"] a:not([class]) {
+ font-weight: 700;
+ font-size: var(--consonant-merch-card-cta-font-size);
+}
+
+merch-card div[slot='bg-image'] img {
+ position: relative;
+ width: 100%;
+ min-height: var(--consonant-merch-card-bg-img-height);
+ max-height: var(--consonant-merch-card-bg-img-height);
+ object-fit: cover;
+ border-top-left-radius: 16px;
+ border-top-right-radius: 16px;
+}
+
+.price-unit-type:not(.disabled)::before,
+.price-tax-inclusivity:not(.disabled)::before {
+ content: "\\00a0";
+}
+
+merch-card span.placeholder-resolved[data-template='priceStrikethrough'],
+merch-card span.placeholder-resolved[data-template='strikethrough'],
+merch-card span.price.price-strikethrough {
+ font-size: var(--consonant-merch-card-body-xs-font-size);
+ font-weight: normal;
+ text-decoration: line-through;
+ color: var(--merch-color-inline-price-strikethrough);
+}
+
+/* merch-offer-select */
+merch-offer-select[variant="subscription-options"] merch-offer span[is="inline-price"][data-display-tax='true'] .price-tax-inclusivity {
+ font-size: 12px;
+ font-style: italic;
+ font-weight: normal;
+ position: absolute;
+ left: 0;
+ top: 20px;
+}
+
+body.merch-modal {
+ overflow: hidden;
+ scrollbar-gutter: stable;
+ height: 100vh;
+}
+
+merch-sidenav-checkbox-group h3 {
+ font-size: 14px;
+ height: 32px;
+ letter-spacing: 0px;
+ line-height: 18.2px;
+ color: var(--color-gray-600);
+ margin: 0px;
+}
+
+`;document.head.appendChild(qo);var ea=new CSSStyleSheet;ea.replaceSync(":host { display: contents; }");var ac=document.querySelector('meta[name="aem-base-url"]')?.content??"https://odin.adobe.com",Zo="fragment",Qo="author",sc="ims",Jo=e=>{throw new Error(`Failed to get fragment: ${e}`)};async function cc(e,t,r,n){let i=r?`${e}/adobe/sites/cf/fragments/${t}`:`${e}/adobe/sites/fragments/${t}`,o=await fetch(i,{cache:"default",credentials:"omit",headers:n}).catch(a=>Jo(a.message));return o?.ok||Jo(`${o.status} ${o.statusText}`),o.json()}var Xn,Ee,Wn=class{constructor(){G(this,Ee,new Map)}clear(){L(this,Ee).clear()}add(...t){t.forEach(r=>{let{id:n}=r;n&&L(this,Ee).set(n,r)})}has(t){return L(this,Ee).has(t)}get(t){return L(this,Ee).get(t)}remove(t){L(this,Ee).delete(t)}};Ee=new WeakMap;var Ar=new Wn,$e,he,Se,$t,de,ht,Ut,Zn,Er,ta,Sr,ra,qn=class extends HTMLElement{constructor(){super();G(this,Ut);G(this,Er);G(this,Sr);p(this,"cache",Ar);G(this,$e,void 0);G(this,he,void 0);G(this,Se,void 0);G(this,$t,!1);G(this,de,void 0);G(this,ht,!1);this.attachShadow({mode:"open"}),this.shadowRoot.adoptedStyleSheets=[ea];let r=this.getAttribute(sc);["",!0,"true"].includes(r)&&(Y(this,$t,!0),Xn||(Xn={Authorization:`Bearer ${window.adobeid?.authorize?.()}`}))}static get observedAttributes(){return[Zo,Qo]}attributeChangedCallback(r,n,i){r===Zo&&(Y(this,Se,i),this.refresh(!1)),r===Qo&&Y(this,ht,["","true"].includes(i))}connectedCallback(){if(!L(this,Se)){fe(this,Ut,Zn).call(this,"Missing fragment id");return}}async refresh(r=!0){L(this,de)&&!await Promise.race([L(this,de),Promise.resolve(!1)])||(r&&Ar.remove(L(this,Se)),Y(this,de,this.fetchData().then(()=>(this.dispatchEvent(new CustomEvent(Ne,{detail:this.data,bubbles:!0,composed:!0})),!0)).catch(n=>(fe(this,Ut,Zn).call(this,"Network error: failed to load fragment"),Y(this,de,null),!1))),L(this,de))}async fetchData(){Y(this,$e,null),Y(this,he,null);let r=Ar.get(L(this,Se));r||(r=await cc(ac,L(this,Se),L(this,ht),L(this,$t)?Xn:void 0),Ar.add(r)),Y(this,$e,r)}get updateComplete(){return L(this,de)??Promise.reject(new Error("AEM fragment cannot be loaded"))}get data(){return L(this,he)?L(this,he):(L(this,ht)?fe(this,Er,ta).call(this):fe(this,Sr,ra).call(this),L(this,he))}};$e=new WeakMap,he=new WeakMap,Se=new WeakMap,$t=new WeakMap,de=new WeakMap,ht=new WeakMap,Ut=new WeakSet,Zn=function(r){this.classList.add("error"),this.dispatchEvent(new CustomEvent(Re,{detail:r,bubbles:!0,composed:!0}))},Er=new WeakSet,ta=function(){let{fields:r,id:n,tags:i}=L(this,$e);Y(this,he,r.reduce((o,{name:a,multiple:s,values:c})=>(o.fields[a]=s?c:c[0],o),{fields:{},id:n,tags:i}))},Sr=new WeakSet,ra=function(){let{fields:r,id:n,tags:i}=L(this,$e);Y(this,he,Object.entries(r).reduce((o,[a,s])=>(o.fields[a]=s?.mimeType?s.value:s??"",o),{fields:{},id:n,tags:i}))};customElements.define("aem-fragment",qn);var Qn;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(Qn||(Qn={}));var $;(function(e){e.MONTH="MONTH",e.YEAR="YEAR",e.TWO_YEARS="TWO_YEARS",e.THREE_YEARS="THREE_YEARS",e.PERPETUAL="PERPETUAL",e.TERM_LICENSE="TERM_LICENSE",e.ACCESS_PASS="ACCESS_PASS",e.THREE_MONTHS="THREE_MONTHS",e.SIX_MONTHS="SIX_MONTHS"})($||($={}));var N;(function(e){e.ANNUAL="ANNUAL",e.MONTHLY="MONTHLY",e.TWO_YEARS="TWO_YEARS",e.THREE_YEARS="THREE_YEARS",e.P1D="P1D",e.P1Y="P1Y",e.P3Y="P3Y",e.P10Y="P10Y",e.P15Y="P15Y",e.P3D="P3D",e.P7D="P7D",e.P30D="P30D",e.HALF_YEARLY="HALF_YEARLY",e.QUARTERLY="QUARTERLY"})(N||(N={}));var Jn;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(Jn||(Jn={}));var ei;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(ei||(ei={}));var ti;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(ti||(ti={}));var ri;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(ri||(ri={}));var na="tacocat.js";var Tr=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),ia=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function R(e,t={},{metadata:r=!0,search:n=!0,storage:i=!0}={}){let o;if(n&&o==null){let a=new URLSearchParams(window.location.search),s=dt(n)?n:e;o=a.get(s)}if(i&&o==null){let a=dt(i)?i:e;o=window.sessionStorage.getItem(a)??window.localStorage.getItem(a)}if(r&&o==null){let a=lc(dt(r)?r:e);o=document.documentElement.querySelector(`meta[name="${a}"]`)?.content}return o??t[e]}var ut=()=>{};var oa=e=>typeof e=="boolean",Dt=e=>typeof e=="function",yr=e=>typeof e=="number",aa=e=>e!=null&&typeof e=="object";var dt=e=>typeof e=="string",ni=e=>dt(e)&&e,mt=e=>yr(e)&&Number.isFinite(e)&&e>0;function pt(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function S(e,t){if(oa(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function Te(e,t,r){let n=Object.values(t);return n.find(i=>Tr(i,e))??r??n[0]}function lc(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function ft(e,t=1){return yr(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var hc=Date.now(),ii=()=>`(+${Date.now()-hc}ms)`,_r=new Set,dc=S(R("tacocat.debug",{},{metadata:!1}),typeof process<"u"&&process.env?.DEBUG);function sa(e){let t=`[${na}/${e}]`,r=(a,s,...c)=>a?!0:(i(s,...c),!1),n=dc?(a,...s)=>{console.debug(`${t} ${a}`,...s,ii())}:()=>{},i=(a,...s)=>{let c=`${t} ${a}`;_r.forEach(([l])=>l(c,...s))};return{assert:r,debug:n,error:i,warn:(a,...s)=>{let c=`${t} ${a}`;_r.forEach(([,l])=>l(c,...s))}}}function uc(e,t){let r=[e,t];return _r.add(r),()=>{_r.delete(r)}}uc((e,...t)=>{console.error(e,...t,ii())},(e,...t)=>{console.warn(e,...t,ii())});var mc="no promo",ca="promo-tag",pc="yellow",fc="neutral",gc=(e,t,r)=>{let n=o=>o||mc,i=r?` (was "${n(t)}")`:"";return`${n(e)}${i}`},xc="cancel-context",Gt=(e,t)=>{let r=e===xc,n=!r&&e?.length>0,i=(n||r)&&(t&&t!=e||!t&&!r),o=i&&n||!i&&!!t,a=o?e||t:void 0;return{effectivePromoCode:a,overridenPromoCode:e,className:o?ca:`${ca} no-promo`,text:gc(a,t,i),variant:o?pc:fc,isOverriden:i}};var oi="ABM",ai="PUF",si="M2M",ci="PERPETUAL",li="P3Y",bc="TAX_INCLUSIVE_DETAILS",vc="TAX_EXCLUSIVE",la={ABM:oi,PUF:ai,M2M:si,PERPETUAL:ci,P3Y:li},Ku={[oi]:{commitment:$.YEAR,term:N.MONTHLY},[ai]:{commitment:$.YEAR,term:N.ANNUAL},[si]:{commitment:$.MONTH,term:N.MONTHLY},[ci]:{commitment:$.PERPETUAL,term:void 0},[li]:{commitment:$.THREE_MONTHS,term:N.P3Y}},ha="Value is not an offer",Lr=e=>{if(typeof e!="object")return ha;let{commitment:t,term:r}=e,n=Ac(t,r);return{...e,planType:n}};var Ac=(e,t)=>{switch(e){case void 0:return ha;case"":return"";case $.YEAR:return t===N.MONTHLY?oi:t===N.ANNUAL?ai:"";case $.MONTH:return t===N.MONTHLY?si:"";case $.PERPETUAL:return ci;case $.TERM_LICENSE:return t===N.P3Y?li:"";default:return""}};function hi(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:i,priceWithoutDiscountAndTax:o,taxDisplay:a}=t;if(a!==bc)return e;let s={...e,priceDetails:{...t,price:i??r,priceWithoutDiscount:o??n,taxDisplay:vc}};return s.offerType==="TRIAL"&&s.priceDetails.price===0&&(s.priceDetails.price=s.priceDetails.priceWithoutDiscount),s}var di=function(e,t){return di=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},di(e,t)};function Ht(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");di(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var T=function(){return T=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0}),r=[],n=0,i=t;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Tc,function(s,c,l,h,d,u){if(c)t.minimumIntegerDigits=l.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(u)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Aa.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(fa.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(fa,function(s,c,l,h,d,u){return l==="*"?t.minimumFractionDigits=c.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&u?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+u.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""}),i.options.length&&(t=T(T({},t),ga(i.options[0])));continue}if(va.test(i.stem)){t=T(T({},t),ga(i.stem));continue}var o=Ea(i.stem);o&&(t=T(T({},t),o));var a=yc(i.stem);a&&(t=T(T({},t),a))}return t}var pi,_c=new RegExp("^"+mi.source+"*"),Lc=new RegExp(mi.source+"*$");function A(e,t){return{start:e,end:t}}var wc=!!String.prototype.startsWith,Pc=!!String.fromCodePoint,Cc=!!Object.fromEntries,kc=!!String.prototype.codePointAt,Ic=!!String.prototype.trimStart,Nc=!!String.prototype.trimEnd,Rc=!!Number.isSafeInteger,Oc=Rc?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},gi=!0;try{Ta=wa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),gi=((pi=Ta.exec("a"))===null||pi===void 0?void 0:pi[0])==="a"}catch{gi=!1}var Ta,ya=wc?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},xi=Pc?String.fromCodePoint:function(){for(var t=[],r=0;ro;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},_a=Cc?Object.fromEntries:function(t){for(var r={},n=0,i=t;n=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Mc=Ic?function(t){return t.trimStart()}:function(t){return t.replace(_c,"")},Vc=Nc?function(t){return t.trimEnd()}:function(t){return t.replace(Lc,"")};function wa(e,t){return new RegExp(e,t)}var bi;gi?(fi=wa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),bi=function(t,r){var n;fi.lastIndex=r;var i=fi.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}):bi=function(t,r){for(var n=[];;){var i=La(t,r);if(i===void 0||Ca(i)||Dc(i))break;n.push(i),r+=i>=65536?2:1}return xi.apply(void 0,n)};var fi,Pa=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:P.pound,location:A(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(v.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&vi(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:P.literal,value:"<"+i+"/>",location:A(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("")){if(this.isEOF()||!vi(this.char()))return this.error(v.INVALID_TAG,A(s,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(v.UNMATCHED_CLOSING_TAG,A(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:P.tag,value:i,children:a,location:A(n,this.clonePosition())},err:null}:this.error(v.INVALID_TAG,A(s,this.clonePosition())))}else return this.error(v.UNCLOSED_TAG,A(n,this.clonePosition()))}else return this.error(v.INVALID_TAG,A(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Uc(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var c=A(n,this.clonePosition());return{val:{type:P.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!$c(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return xi.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),xi(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(v.EMPTY_ARGUMENT,A(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(v.MALFORMED_ARGUMENT,A(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:P.argument,value:i,location:A(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(v.MALFORMED_ARGUMENT,A(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=bi(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),a=A(t,o);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(v.EXPECT_ARGUMENT_TYPE,A(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var u=Vc(d.val);if(u.length===0)return this.error(v.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var m=A(h,this.clonePosition());l={style:u,styleLocation:m}}var f=this.tryParseArgumentClose(i);if(f.err)return f;var g=A(i,this.clonePosition());if(l&&ya(l?.style,"::",0)){var y=Mc(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(y,l.styleLocation);return d.err?d:{val:{type:P.number,value:n,location:g,style:d.val},err:null}}else{if(y.length===0)return this.error(v.EXPECT_DATE_TIME_SKELETON,g);var u={type:Ue.dateTime,pattern:y,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ma(y):{}},w=s==="date"?P.date:P.time;return{val:{type:w,value:n,location:g,style:u},err:null}}}return{val:{type:s==="number"?P.number:s==="date"?P.date:P.time,value:n,location:g,style:(o=l?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS,A(b,T({},b)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),O=0;if(s!=="select"&&E.value==="offset"){if(!this.bumpIf(":"))return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),E=this.parseIdentifierIfPossible(),O=d.val}var C=this.tryParsePluralOrSelectOptions(t,s,r,E);if(C.err)return C;var f=this.tryParseArgumentClose(i);if(f.err)return f;var z=A(i,this.clonePosition());return s==="select"?{val:{type:P.select,value:n,options:_a(C.val),location:z},err:null}:{val:{type:P.plural,value:n,options:_a(C.val),offset:O,pluralType:s==="plural"?"cardinal":"ordinal",location:z},err:null}}default:return this.error(v.INVALID_ARGUMENT_TYPE,A(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,A(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=ba(t)}catch{return this.error(v.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ue.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Sa(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,a=!1,s=[],c=new Set,l=i.value,h=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var u=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR,v.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;h=A(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?v.DUPLICATE_SELECT_ARGUMENT_SELECTOR:v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(a=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(t+1,r,n);if(f.err)return f;var g=this.tryParseArgumentClose(m);if(g.err)return g;s.push([l,{value:f.val,location:A(m,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,h=o.location}return s.length===0?this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR:v.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(v.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var c=A(i,this.clonePosition());return o?(a*=n,Oc(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=La(this.message,t);if(r===void 0)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(ya(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ca(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function vi(e){return e>=97&&e<=122||e>=65&&e<=90}function $c(e){return vi(e)||e===47}function Uc(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ca(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Dc(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Ai(e){e.forEach(function(t){if(delete t.location,Ir(t)||Nr(t))for(var r in t.options)delete t.options[r].location,Ai(t.options[r].value);else Pr(t)&&Or(t.style)||(Cr(t)||kr(t))&&zt(t.style)?delete t.style.location:Rr(t)&&Ai(t.children)})}function ka(e,t){t===void 0&&(t={}),t=T({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Pa(e,t).parse();if(r.err){var n=SyntaxError(v[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||Ai(r.val),r.val}function Ft(e,t){var r=t&&t.cache?t.cache:Bc,n=t&&t.serializer?t.serializer:Kc,i=t&&t.strategy?t.strategy:Hc;return i(e,{cache:r,serializer:n})}function Gc(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ia(e,t,r,n){var i=Gc(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function Na(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,n),t.set(i,o)),o}function Ei(e,t,r,n,i){return r.bind(t,e,n,i)}function Hc(e,t){var r=e.length===1?Ia:Na;return Ei(e,this,r,t.cache.create(),t.serializer)}function zc(e,t){return Ei(e,this,Na,t.cache.create(),t.serializer)}function Fc(e,t){return Ei(e,this,Ia,t.cache.create(),t.serializer)}var Kc=function(){return JSON.stringify(arguments)};function Si(){this.cache=Object.create(null)}Si.prototype.get=function(e){return this.cache[e]};Si.prototype.set=function(e,t){this.cache[e]=t};var Bc={create:function(){return new Si}},Mr={variadic:zc,monadic:Fc};var De;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(De||(De={}));var Kt=function(e){Ht(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error);var Ti=function(e){Ht(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'+r+'": "'+n+'". Options are "'+Object.keys(i).join('", "')+'"',De.INVALID_VALUE,o)||this}return t}(Kt);var Ra=function(e){Ht(t,e);function t(r,n,i){return e.call(this,'Value for "'+r+'" must be of type '+n,De.INVALID_VALUE,i)||this}return t}(Kt);var Oa=function(e){Ht(t,e);function t(r,n){return e.call(this,'The intl string context variable "'+r+'" was not provided to the string "'+n+'"',De.MISSING_VALUE,n)||this}return t}(Kt);var K;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(K||(K={}));function Yc(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==K.literal||r.type!==K.literal?t.push(r):n.value+=r.value,t},[])}function jc(e){return typeof e=="function"}function Bt(e,t,r,n,i,o,a){if(e.length===1&&ui(e[0]))return[{type:K.literal,value:e[0].value}];for(var s=[],c=0,l=e;c0?e.substring(0,n):"";let i=$a(e.split("").reverse().join("")),o=r-i,a=e.substring(o,o+1),s=o+(a==="."||a===","?1:0);t.suffix=i>0?e.substring(s,r):"",t.mask=e.substring(n,s),t.maskHasNegativeSign=t.mask.charAt(0)==="-",t.maskHasPositiveSign=t.mask.charAt(0)==="+";let c=t.mask.match(Qc);return t.decimal=c&&c[c.length-1]||".",t.separator=c&&c[1]&&c[0]||",",c=t.mask.split(t.decimal),t.integer=c[0],t.fraction=c[1],t}function el(e,t,r){let n=!1,i={value:e};e<0&&(n=!0,i.value=-i.value),i.sign=n?"-":"",i.value=Number(i.value).toFixed(t.fraction&&t.fraction.length),i.value=Number(i.value).toString();let o=t.fraction&&t.fraction.lastIndexOf("0"),[a="0",s=""]=i.value.split(".");return(!s||s&&s.length<=o)&&(s=o<0?"":(+("0."+s)).toFixed(o+1).replace("0.","")),i.integer=a,i.fraction=s,tl(i,t),(i.result==="0"||i.result==="")&&(n=!1,i.sign=""),!n&&t.maskHasPositiveSign?i.sign="+":n&&t.maskHasPositiveSign?i.sign="-":n&&(i.sign=r&&r.enforceMaskSign&&!t.maskHasNegativeSign?"":"-"),i}function tl(e,t){e.result="";let r=t.integer.split(t.separator),n=r.join(""),i=n&&n.indexOf("0");if(i>-1)for(;e.integer.lengthe*12,Fa=(e,t)=>{let{start:r,end:n,displaySummary:{amount:i,duration:o,minProductQuantity:a,outcomeType:s}={}}=e;if(!(i&&o&&s&&a))return!1;let c=t?new Date(t):new Date;if(!r||!n)return!1;let l=new Date(r),h=new Date(n);return c>=l&&c<=h},Ge={MONTH:"MONTH",YEAR:"YEAR"},il={[N.ANNUAL]:12,[N.MONTHLY]:1,[N.THREE_YEARS]:36,[N.TWO_YEARS]:24},Li=(e,t)=>({accept:e,round:t}),ol=[Li(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),Li(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),Li(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],wi={[$.YEAR]:{[N.MONTHLY]:Ge.MONTH,[N.ANNUAL]:Ge.YEAR},[$.MONTH]:{[N.MONTHLY]:Ge.MONTH}},al=(e,t)=>e.indexOf(`'${t}'`)===0,sl=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Ba(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+ll(e)),r},cl=e=>{let t=hl(e),r=al(e,t),n=e.replace(/'.*?'/,""),i=Ha.test(n)||za.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:i}},Ka=e=>e.replace(Ha,Ga).replace(za,Ga),ll=e=>e.match(/#(.?)#/)?.[1]===Da?nl:Da,hl=e=>e.match(/'(.*?)'/)?.[1]??"",Ba=e=>e.match(/0(.?)0/)?.[1]??"";function gt({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},i,o=a=>a){let{currencySymbol:a,isCurrencyFirst:s,hasCurrencySpace:c}=cl(e),l=r?Ba(e):"",h=sl(e,r),d=r?2:0,u=o(t,{currencySymbol:a}),m=n?u.toLocaleString("hi-IN",{minimumFractionDigits:d,maximumFractionDigits:d}):Ua(h,u),f=r?m.lastIndexOf(l):m.length,g=m.substring(0,f),y=m.substring(f+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,m).replace(/SYMBOL/,a),currencySymbol:a,decimals:y,decimalsDelimiter:l,hasCurrencySpace:c,integer:g,isCurrencyFirst:s,recurrenceTerm:i}}var Ya=e=>{let{commitment:t,term:r,usePrecision:n}=e,i=il[r]??1;return gt(e,i>1?Ge.MONTH:wi[t]?.[r],o=>{let a={divisor:i,price:o,usePrecision:n},{round:s}=ol.find(({accept:c})=>c(a));if(!s)throw new Error(`Missing rounding rule for: ${JSON.stringify(a)}`);return s(a)})},ja=({commitment:e,term:t,...r})=>gt(r,wi[e]?.[t]),Xa=e=>{let{commitment:t,instant:r,price:n,originalPrice:i,priceWithoutDiscount:o,promotion:a,quantity:s=1,term:c}=e;if(t===$.YEAR&&c===N.MONTHLY){if(!a)return gt(e,Ge.YEAR,_i);let{displaySummary:{outcomeType:l,duration:h,minProductQuantity:d=1}={}}=a;switch(l){case"PERCENTAGE_DISCOUNT":if(s>=d&&Fa(a,r)){let u=parseInt(h.replace("P","").replace("M",""));if(isNaN(u))return _i(n);let m=s*i*u,f=s*o*(12-u),g=Math.floor((m+f)*100)/100;return gt({...e,price:g},Ge.YEAR)}default:return gt(e,Ge.YEAR,()=>_i(o??n))}}return gt(e,wi[t]?.[c])};var dl={recurrenceLabel:"{recurrenceTerm, select, MONTH {/mo} YEAR {/yr} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per month} YEAR {per year} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per license} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per license} other {}}",freeLabel:"Free",freeAriaLabel:"Free",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Alternatively at {alternativePrice}",strikethroughAriaLabel:"Regularly at {strikethroughPrice}"},ul=sa("ConsonantTemplates/price"),ml=/<\/?[^>]+(>|$)/g,H={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAnnual:"price-annual",containerAnnualPrefix:"price-annual-prefix",containerAnnualSuffix:"price-annual-suffix",disabled:"disabled",currencySpace:"price-currency-space",currencySymbol:"price-currency-symbol",decimals:"price-decimals",decimalsDelimiter:"price-decimals-delimiter",integer:"price-integer",recurrence:"price-recurrence",taxInclusivity:"price-tax-inclusivity",unitType:"price-unit-type"},He={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel"},pl="TAX_EXCLUSIVE",fl=e=>aa(e)?Object.entries(e).filter(([,t])=>dt(t)||yr(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+ia(n)+'"'}`,""):"",B=(e,t,r,n=!1)=>`${n?Ka(t):t??""} `;function gl(e,{accessibleLabel:t,currencySymbol:r,decimals:n,decimalsDelimiter:i,hasCurrencySpace:o,integer:a,isCurrencyFirst:s,recurrenceLabel:c,perUnitLabel:l,taxInclusivityLabel:h},d={}){let u=B(H.currencySymbol,r),m=B(H.currencySpace,o?" ":""),f="";return s&&(f+=u+m),f+=B(H.integer,a),f+=B(H.decimalsDelimiter,i),f+=B(H.decimals,n),s||(f+=m+u),f+=B(H.recurrence,c,null,!0),f+=B(H.unitType,l,null,!0),f+=B(H.taxInclusivity,h,!0),B(e,f,{...d,"aria-label":t})}var W=({displayOptical:e=!1,displayStrikethrough:t=!1,displayAnnual:r=!1,instant:n=void 0}={})=>({country:i,displayFormatted:o=!0,displayRecurrence:a=!0,displayPerUnit:s=!1,displayTax:c=!1,language:l,literals:h={},quantity:d=1}={},{commitment:u,offerSelectorIds:m,formatString:f,price:g,priceWithoutDiscount:y,taxDisplay:w,taxTerm:b,term:E,usePrecision:O,promotion:C}={},z={})=>{Object.entries({country:i,formatString:f,language:l,price:g}).forEach(([oe,Yr])=>{if(Yr==null)throw new Error(`Argument "${oe}" is missing for osi ${m?.toString()}, country ${i}, language ${l}`)});let F={...dl,...h},ue=`${l.toLowerCase()}-${i.toUpperCase()}`;function Z(oe,Yr){let jr=F[oe];if(jr==null)return"";try{return new Va(jr.replace(ml,""),ue).format(Yr)}catch{return ul.error("Failed to format literal:",jr),""}}let Et=t&&y?y:g,Ye=e?Ya:ja;r&&(Ye=Xa);let{accessiblePrice:St,recurrenceTerm:me,...pe}=Ye({commitment:u,formatString:f,instant:n,isIndianPrice:i==="IN",originalPrice:g,priceWithoutDiscount:y,price:e?g:Et,promotion:C,quantity:d,term:E,usePrecision:O}),Q=St,Tt="";if(S(a)&&me){let oe=Z(He.recurrenceAriaLabel,{recurrenceTerm:me});oe&&(Q+=" "+oe),Tt=Z(He.recurrenceLabel,{recurrenceTerm:me})}let Br="";if(S(s)){Br=Z(He.perUnitLabel,{perUnit:"LICENSE"});let oe=Z(He.perUnitAriaLabel,{perUnit:"LICENSE"});oe&&(Q+=" "+oe)}let yt="";S(c)&&b&&(yt=Z(w===pl?He.taxExclusiveLabel:He.taxInclusiveLabel,{taxTerm:b}),yt&&(Q+=" "+yt)),t&&(Q=Z(He.strikethroughAriaLabel,{strikethroughPrice:Q}));let _t=H.container;if(e&&(_t+=" "+H.containerOptical),t&&(_t+=" "+H.containerStrikethrough),r&&(_t+=" "+H.containerAnnual),S(o))return gl(_t,{...pe,accessibleLabel:Q,recurrenceLabel:Tt,perUnitLabel:Br,taxInclusivityLabel:yt},z);let{currencySymbol:Wi,decimals:Es,decimalsDelimiter:Ss,hasCurrencySpace:qi,integer:Ts,isCurrencyFirst:ys}=pe,je=[Ts,Ss,Es];ys?(je.unshift(qi?"\xA0":""),je.unshift(Wi)):(je.push(qi?"\xA0":""),je.push(Wi)),je.push(Tt,Br,yt);let _s=je.join("");return B(_t,_s,z)},Wa=()=>(e,t,r)=>{let i=(e.displayOldPrice===void 0||S(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${W()(e,t,r)}${i?" "+W({displayStrikethrough:!0})(e,t,r):""}`},qa=()=>(e,t,r)=>{let{instant:n}=e;try{n||(n=new URLSearchParams(document.location.search).get("instant")),n&&(n=new Date(n))}catch{n=void 0}let i={...e,displayTax:!1,displayPerUnit:!1};return`${(e.displayOldPrice===void 0||S(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price?W({displayStrikethrough:!0})(i,t,r)+" ":""}${W()(e,t,r)}${B(H.containerAnnualPrefix," (")}${W({displayAnnual:!0,instant:n})(i,t,r)}${B(H.containerAnnualSuffix,")")}`},Za=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${W()(e,t,r)}${B(H.containerAnnualPrefix," (")}${W({displayAnnual:!0})(n,t,r)}${B(H.containerAnnualSuffix,")")}`};var Pi=W(),Ci=Wa(),ki=W({displayOptical:!0}),Ii=W({displayStrikethrough:!0}),Ni=W({displayAnnual:!0}),Ri=Za(),Oi=qa();var xl=(e,t)=>{if(!(!mt(e)||!mt(t)))return Math.floor((t-e)/t*100)},Qa=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,i=xl(r,n);return i===void 0?' ':`${i}% `};var Mi=Qa();var{freeze:Yt}=Object,bl={V2:"UCv2",V3:"UCv3"},te=Yt({...bl}),vl={CHECKOUT:"checkout",CHECKOUT_EMAIL:"checkout/email",SEGMENTATION:"segmentation",BUNDLE:"bundle",COMMITMENT:"commitment",RECOMMENDATION:"recommendation",EMAIL:"email",PAYMENT:"payment",CHANGE_PLAN_TEAM_PLANS:"change-plan/team-upgrade/plans",CHANGE_PLAN_TEAM_PAYMENT:"change-plan/team-upgrade/payment"},re=Yt({...vl}),ze={STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"},Vi=Yt({...$}),$i=Yt({...la}),Ui=Yt({...N});var Ja="mas-commerce-service";function es(e,{once:t=!1}={}){let r=null;function n(){let i=document.querySelector(Ja);i!==r&&(r=i,i&&e(i))}return document.addEventListener(tt,n,{once:t}),Fe(n),()=>document.removeEventListener(tt,n)}function jt(e,{country:t,forceTaxExclusive:r,perpetual:n}){let i;if(e.length<2)i=e;else{let o=t==="GB"||n?"EN":"MULT",[a,s]=e;i=[a.language===o?a:s]}return r&&(i=i.map(hi)),i}var Fe=e=>window.setTimeout(e);function xt(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(ft).filter(mt);return r.length||(r=[t]),r}function Vr(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(ni)}function q(){return document.getElementsByTagName(Ja)?.[0]}var Ke={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},ts=1e3,rs=new Set;function Al(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function ns(e){if(e==null)return;let t=typeof e;if(t==="function")return e.name?`function ${e.name}`:"function";if(t==="object"){if(e instanceof Error)return e.message;if(typeof e.originatingRequest=="string"){let{message:n,originatingRequest:i,status:o}=e;return[n,o,i].filter(Boolean).join(" ")}let r=e[Symbol.toStringTag]??Object.getPrototypeOf(e).constructor.name;if(!Ke.serializableTypes.includes(r))return r}return e}function El(e,t){if(!Ke.ignoredProperties.includes(e))return ns(t)}var Di={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],i=[],o=t;r.forEach(l=>{l!=null&&(Al(l)?n:i).push(l)}),n.length&&(o+=" "+n.map(ns).join(" "));let{pathname:a,search:s}=window.location,c=`${Ke.delimiter}page=${a}${s}`;c.length>ts&&(c=`${c.slice(0,ts)}`),o+=c,i.length&&(o+=`${Ke.delimiter}facts=`,o+=JSON.stringify(i,El)),rs.has(o)||(rs.add(o),window.lana?.log(o,Ke))}};function bt(e){Object.assign(Ke,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in Ke&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var _=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflow:te.V3,checkoutWorkflowStep:re.EMAIL,country:"US",displayOldPrice:!0,displayPerUnit:!1,displayRecurrence:!0,displayTax:!1,env:ze.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsBufferDelay:1,wcsURL:"https://www.adobe.com/web_commerce_artifact",landscape:le.PUBLISHED,wcsBufferLimit:1});var Gi=Object.freeze({LOCAL:"local",PROD:"prod",STAGE:"stage"});function Sl({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||_.language),t??(t=e?.split("_")?.[1]||_.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function Hi(e={}){let{commerce:t={}}=e,r=ze.PRODUCTION,n=Dn,i=R("checkoutClientId",t)??_.checkoutClientId,o=Te(R("checkoutWorkflow",t),te,_.checkoutWorkflow),a=re.CHECKOUT;o===te.V3&&(a=Te(R("checkoutWorkflowStep",t),re,_.checkoutWorkflowStep));let s=S(R("displayOldPrice",t),_.displayOldPrice),c=S(R("displayPerUnit",t),_.displayPerUnit),l=S(R("displayRecurrence",t),_.displayRecurrence),h=S(R("displayTax",t),_.displayTax),d=S(R("entitlement",t),_.entitlement),u=S(R("modal",t),_.modal),m=S(R("forceTaxExclusive",t),_.forceTaxExclusive),f=R("promotionCode",t)??_.promotionCode,g=xt(R("quantity",t)),y=R("wcsApiKey",t)??_.wcsApiKey,w=t?.env==="stage",b=le.PUBLISHED;["true",""].includes(t.allowOverride)&&(w=(R($n,t,{metadata:!1})?.toLowerCase()??t?.env)==="stage",b=Te(R(Un,t),le,b)),w&&(r=ze.STAGE,n=Gn);let O=ft(R("wcsBufferDelay",t),_.wcsBufferDelay),C=ft(R("wcsBufferLimit",t),_.wcsBufferLimit);return{...Sl(e),displayOldPrice:s,checkoutClientId:i,checkoutWorkflow:o,checkoutWorkflowStep:a,displayPerUnit:c,displayRecurrence:l,displayTax:h,entitlement:d,extraOptions:_.extraOptions,modal:u,env:r,forceTaxExclusive:m,promotionCode:f,quantity:g,wcsApiKey:y,wcsBufferDelay:O,wcsBufferLimit:C,wcsURL:n,landscape:b}}var zi={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},Tl=Date.now(),Fi=new Set,Ki=new Set,is=new Map,os={append({level:e,message:t,params:r,timestamp:n,source:i}){console[e](`${n}ms [${i}] %c${t}`,"font-weight: bold;",...r)}},as={filter:({level:e})=>e!==zi.DEBUG},yl={filter:()=>!1};function _l(e,t,r,n,i){return{level:e,message:t,namespace:r,get params(){return n.length===1&&Dt(n[0])&&(n=n[0](),Array.isArray(n)||(n=[n])),n},source:i,timestamp:Date.now()-Tl}}function Ll(e){[...Ki].every(t=>t(e))&&Fi.forEach(t=>t(e))}function ss(e){let t=(is.get(e)??0)+1;is.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:i=>ss(`${n.namespace}/${i}`),updateConfig:bt};return Object.values(zi).forEach(i=>{n[i]=(o,...a)=>Ll(_l(i,o,e,a,r))}),Object.seal(n)}function $r(...e){e.forEach(t=>{let{append:r,filter:n}=t;Dt(n)&&Ki.add(n),Dt(r)&&Fi.add(r)})}function wl(e={}){let{name:t}=e,r=S(R("commerce.debug",{search:!0,storage:!0}),t===Gi.LOCAL);return $r(r?os:as),t===Gi.PROD&&$r(Di),j}function Pl(){Fi.clear(),Ki.clear()}var j={...ss(Vn),Level:zi,Plugins:{consoleAppender:os,debugFilter:as,quietFilter:yl,lanaAppender:Di},init:wl,reset:Pl,use:$r};var Cl={[se]:kn,[Ae]:In,[ce]:Nn},kl={[se]:On,[ce]:Mn},vt=class{constructor(t){p(this,"changes",new Map);p(this,"connected",!1);p(this,"dispose",ut);p(this,"error");p(this,"log");p(this,"options");p(this,"promises",[]);p(this,"state",Ae);p(this,"timer",null);p(this,"value");p(this,"version",0);p(this,"wrapperElement");this.wrapperElement=t}update(){[se,Ae,ce].forEach(t=>{this.wrapperElement.classList.toggle(Cl[t],t===this.state)})}notify(){(this.state===ce||this.state===se)&&(this.state===ce?this.promises.forEach(({resolve:t})=>t(this.wrapperElement)):this.state===se&&this.promises.forEach(({reject:t})=>t(this.error)),this.promises=[]),this.wrapperElement.dispatchEvent(new CustomEvent(kl[this.state],{bubbles:!0}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){this.dispose=es(()=>this.requestUpdate(!0))}disconnectedCallback(){this.connected&&(this.connected=!1,this.log?.debug("Disconnected:",{element:this.wrapperElement})),this.dispose(),this.dispose=ut}onceSettled(){let{error:t,promises:r,state:n}=this;return ce===n?Promise.resolve(this.wrapperElement):se===n?Promise.reject(t):new Promise((i,o)=>{r.push({resolve:i,reject:o})})}toggleResolved(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.state=ce,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),Fe(()=>this.notify()),!0)}toggleFailed(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.error=r,this.state=se,this.update(),this.log?.error("Failed:",{element:this.wrapperElement,error:r}),Fe(()=>this.notify()),!0)}togglePending(t){return this.version++,t&&(this.options=t),this.state=Ae,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!q()||this.timer)return;let r=j.module("mas-element"),{error:n,options:i,state:o,value:a,version:s}=this;this.state=Ae,this.timer=Fe(async()=>{this.timer=null;let c=null;if(this.changes.size&&(c=Object.fromEntries(this.changes.entries()),this.changes.clear()),this.connected?this.log?.debug("Updated:",{element:this.wrapperElement,changes:c}):(this.connected=!0,this.log?.debug("Connected:",{element:this.wrapperElement,changes:c})),c||t)try{await this.wrapperElement.render?.()===!1&&this.state===Ae&&this.version===s&&(this.state=o,this.error=n,this.value=a,this.update(),this.notify())}catch(l){r.error("Failed to render mas-element: ",l),this.toggleFailed(this.version,l,i)}})}};function cs(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Ur(e,t={}){let{tag:r,is:n}=e,i=document.createElement(r,{is:n});return i.setAttribute("is",n),Object.assign(i.dataset,cs(t)),i}function Dr(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,cs(t)),e):null}var Il="download",Nl="upgrade";function Gr(e,t={},r=""){let n=q();if(!n)return null;let{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:u,wcsOsi:m,extraOptions:f}=n.collectCheckoutOptions(t),g=Ur(e,{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:u,wcsOsi:m,extraOptions:f});return r&&(g.innerHTML=`${r} `),g}function Hr(e){return class extends e{constructor(){super(...arguments);p(this,"checkoutActionHandler");p(this,"masElement",new vt(this))}attributeChangedCallback(n,i,o){this.masElement.attributeChangedCallback(n,i,o)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.clickHandler)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.clickHandler)}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}get opens3in1Modal(){return Object.values(Me).includes(this.getAttribute("data-modal-type"))&&!!this.href}requestUpdate(n=!1){return this.masElement.requestUpdate(n)}static get observedAttributes(){return["data-checkout-workflow","data-checkout-workflow-step","data-extra-options","data-ims-country","data-perpetual","data-promotion-code","data-quantity","data-template","data-wcs-osi","data-entitlement","data-upgrade","data-modal"]}async render(n={}){if(!this.isConnected)return!1;let i=q();if(!i)return!1;this.dataset.imsCountry||i.imsCountryPromise.then(d=>{d&&(this.dataset.imsCountry=d)},ut),n.imsCountry=null;let o=i.collectCheckoutOptions(n,this);if(!o.wcsOsi.length)return!1;let a;try{a=JSON.parse(o.extraOptions??"{}")}catch(d){this.masElement.log?.error("cannot parse exta checkout options",d)}let s=this.masElement.togglePending(o);this.setCheckoutUrl("");let c=i.resolveOfferSelectors(o),l=await Promise.all(c);l=l.map(d=>jt(d,o)),o.country=this.dataset.imsCountry||o.country;let h=await i.buildCheckoutAction?.(l.flat(),{...a,...o},this);return this.renderOffers(l.flat(),o,{},h,s)}add3in1ModalParams(n,i){try{let o=new URL(n);return o.searchParams.set("ctx","if"),i===Me.CRM?o.searchParams.set("af","uc_segmentation_hide_tabs,uc_new_user_iframe,uc_new_system_close"):o.searchParams.set("af","uc_new_user_iframe,uc_new_system_close"),o.toString()}catch(o){this.masElement.log?.error("Failed to add 3-in-1 modal parameters",o)}}setModalType(n,i){try{let a=new URL(i).searchParams.get("modal");if([Me.TWP,Me.D2P,Me.CRM].includes(a))return n?.setAttribute("data-modal-type",a),a}catch(o){this.masElement.log?.error("Failed to set modal type",o)}}renderOffers(n,i,o={},a=void 0,s=void 0){if(!this.isConnected)return!1;let c=q();if(!c)return!1;i={...JSON.parse(this.dataset.extraOptions??"null"),...i,...o},s??(s=this.masElement.togglePending(i)),this.checkoutActionHandler&&(this.checkoutActionHandler=void 0);let h;if(a){this.classList.remove(Il,Nl),this.masElement.toggleResolved(s,n,i);let{url:d,text:u,className:m,handler:f}=a;if(d&&(this.setCheckoutUrl(d),h=this.setModalType(this,d)),u&&(this.firstElementChild.innerHTML=u),m&&this.classList.add(...m.split(" ")),f&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=f.bind(this)),!h)return!0}if(n.length){if(this.masElement.toggleResolved(s,n,i)){let d=c.buildCheckoutURL(n,i),u=a&&h?this.add3in1ModalParams(d,h):d;return this.setCheckoutUrl(u),!0}}else{let d=new Error(`Not provided: ${i?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(s,d,i))return this.setCheckoutUrl("#"),!0}}setCheckoutUrl(){}clickHandler(n){}updateOptions(n={}){let i=q();if(!i)return!1;let{checkoutMarketSegment:o,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:u,quantity:m,wcsOsi:f}=i.collectCheckoutOptions(n);return Dr(this,{checkoutMarketSegment:o,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:u,quantity:m,wcsOsi:f}),!0}}}var Xt=class Xt extends Hr(HTMLButtonElement){static createCheckoutButton(t={},r=""){return Gr(Xt,t,r)}setCheckoutUrl(t){this.setAttribute("data-href",t)}get href(){return this.getAttribute("data-href")}get isCheckoutButton(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}this.href&&(window.location.href=this.href)}};p(Xt,"is","checkout-button"),p(Xt,"tag","button");var Be=Xt;window.customElements.get(Be.is)||window.customElements.define(Be.is,Be,{extends:Be.tag});var Rl="#000000",Ol="#F8D904",Ml=/(accent|primary|secondary)(-(outline|link))?/,Vl="mas:product_code/",$l="daa-ll",zr="daa-lh",Ul=["XL","L","M","S"];function Dl(e,t,r){e.mnemonicIcon?.map((i,o)=>({icon:i,alt:e.mnemonicAlt[o]??"",link:e.mnemonicLink[o]??""}))?.forEach(({icon:i,alt:o,link:a})=>{if(a&&!/^https?:/.test(a))try{a=new URL(`https://${a}`).href.toString()}catch{a="#"}let s={slot:"icons",src:i,loading:t.loading,size:r?.size??"l"};o&&(s.alt=o),a&&(s.href=a);let c=ee("merch-icon",s);t.append(c)})}function Gl(e,t){e.badge&&(t.setAttribute("badge-text",e.badge),t.setAttribute("badge-color",e.badgeColor||Rl),t.setAttribute("badge-background-color",e.badgeBackgroundColor||Ol))}function Hl(e,t,r){r?.includes(e.size)&&t.setAttribute("size",e.size)}function zl(e,t,r){e.cardTitle&&r&&t.append(ee(r.tag,{slot:r.slot},e.cardTitle))}function Fl(e,t,r){e.subtitle&&r&&t.append(ee(r.tag,{slot:r.slot},e.subtitle))}function Kl(e,t,r){if(e.backgroundImage){let n={loading:t.loading??"lazy",src:e.backgroundImage};if(e.backgroundImageAltText?n.alt=e.backgroundImageAltText:n.role="none",!r)return;if(r?.attribute){t.setAttribute(r.attribute,e.backgroundImage);return}t.append(ee(r.tag,{slot:r.slot},ee("img",n)))}}function Bl(e,t,r){if(e.prices&&r){let n=ee(r.tag,{slot:r.slot},e.prices);t.append(n)}}function Yl(e,t,r){if(e.description&&r){let n=ee(r.tag,{slot:r.slot},e.description);t.append(n)}}function jl(e,t,r,n){let o=customElements.get("checkout-button").createCheckoutButton({},e.innerHTML);o.setAttribute("tabindex",0);for(let h of e.attributes)["class","is"].includes(h.name)||o.setAttribute(h.name,h.value);o.firstElementChild?.classList.add("spectrum-Button-label");let a=t.ctas.size??"M",s=`spectrum-Button--${n}`,c=Ul.includes(a)?`spectrum-Button--size${a}`:"spectrum-Button--sizeM",l=["spectrum-Button",s,c];return r&&l.push("spectrum-Button--outline"),o.classList.add(...l),o}function Xl(e,t,r,n){let i="fill";r&&(i="outline");let o=ee("sp-button",{treatment:i,variant:n,tabIndex:0,size:t.ctas.size??"m"},e);return o.addEventListener("click",a=>{a.target!==e&&(a.stopPropagation(),e.click())}),o}function Wl(e,t){return e.classList.add("con-button"),t&&e.classList.add("blue"),e}function ql(e,t,r,n){if(e.ctas){let{slot:i}=r.ctas,o=ee("div",{slot:i},e.ctas),a=[...o.querySelectorAll("a")].map(s=>{let c=s.parentElement.tagName==="STRONG";if(t.consonant)return Wl(s,c);let l=Ml.exec(s.className)?.[0]??"accent",h=l.includes("accent"),d=l.includes("primary"),u=l.includes("secondary"),m=l.includes("-outline");if(l.includes("-link"))return s;let g;return h||c?g="accent":d?g="primary":u&&(g="secondary"),t.spectrum==="swc"?Xl(s,r,m,g):jl(s,r,m,g)});o.innerHTML="",o.append(...a),t.append(o)}}function Zl(e,t){let{tags:r}=e,n=r?.find(i=>i.startsWith(Vl))?.split("/").pop();n&&(t.setAttribute(zr,n),t.querySelectorAll("a[data-analytics-id],button[data-analytics-id]").forEach((i,o)=>{i.setAttribute($l,`${i.dataset.analyticsId}-${o+1}`)}))}function Ql(e){e.spectrum==="css"&&[["primary-link","primary"],["secondary-link","secondary"]].forEach(([t,r])=>{e.querySelectorAll(`a.${t}`).forEach(n=>{n.classList.remove(t),n.classList.add("spectrum-Link",`spectrum-Link--${r}`)})})}async function ls(e,t){let{fields:r}=e,{variant:n}=r;if(!n)return;t.querySelectorAll("[slot]").forEach(o=>{o.remove()}),t.removeAttribute("background-image"),t.removeAttribute("badge-background-color"),t.removeAttribute("badge-color"),t.removeAttribute("badge-text"),t.removeAttribute("size"),t.classList.remove("wide-strip"),t.classList.remove("thin-strip"),t.removeAttribute(zr),t.variant=n,await t.updateComplete;let{aemFragmentMapping:i}=t.variantLayout;i&&(Dl(r,t,i.mnemonics),Gl(r,t),Hl(r,t,i.size),zl(r,t,i.title),Fl(r,t,i.subtitle),Bl(r,t,i.prices),Kl(r,t,i.backgroundImage),Yl(r,t,i.description),ql(r,t,i,n),Zl(r,t),Ql(t))}var Jl="merch-card",eh=":start",th=":ready",rh=1e4,hs="merch-card:",qt,Bi,Wt=class extends J{constructor(){super();G(this,qt);p(this,"customerSegment");p(this,"marketSegment");p(this,"variantLayout");this.filters={},this.types="",this.selected=!1,this.spectrum="css",this.loading="lazy",this.handleAemFragmentEvents=this.handleAemFragmentEvents.bind(this)}static getFragmentMapping(r){return Xo[r]}firstUpdated(){this.variantLayout=jn(this,!1),this.variantLayout?.connectedCallbackHook(),this.aemFragment?.updateComplete.catch(()=>{this.style.display="none"})}willUpdate(r){(r.has("variant")||!this.variantLayout)&&(this.variantLayout=jn(this),this.variantLayout.connectedCallbackHook())}updated(r){(r.has("badgeBackgroundColor")||r.has("borderColor"))&&this.style.setProperty("--consonant-merch-card-border",this.computedBorderStyle),this.variantLayout?.postCardUpdateHook(r)}get theme(){return this.closest("sp-theme")}get dir(){return this.closest("[dir]")?.getAttribute("dir")??"ltr"}get prices(){return Array.from(this.querySelectorAll('span[is="inline-price"][data-wcs-osi]'))}render(){if(!(!this.isConnected||!this.variantLayout||this.style.display==="none"))return this.variantLayout.renderLayout()}get computedBorderStyle(){return["twp","ccd-slice","ccd-suggested"].includes(this.variant)?"":`1px solid ${this.borderColor?this.borderColor:this.badgeBackgroundColor}`}get badgeElement(){return this.shadowRoot.getElementById("badge")}get headingmMSlot(){return this.shadowRoot.querySelector('slot[name="heading-m"]').assignedElements()[0]}get footerSlot(){return this.shadowRoot.querySelector('slot[name="footer"]')?.assignedElements()[0]}get price(){return this.headingmMSlot?.querySelector('span[is="inline-price"]')}get checkoutLinks(){return[...this.footerSlot?.querySelectorAll('a[is="checkout-link"]')??[]]}async toggleStockOffer({target:r}){if(!this.stockOfferOsis)return;let n=this.checkoutLinks;if(n.length!==0)for(let i of n){await i.onceSettled();let o=i.value?.[0]?.planType;if(!o)return;let a=this.stockOfferOsis[o];if(!a)return;let s=i.dataset.wcsOsi.split(",").filter(c=>c!==a);r.checked&&s.push(a),i.dataset.wcsOsi=s.join(",")}}handleQuantitySelection(r){let n=this.checkoutLinks;for(let i of n)i.dataset.quantity=r.detail.option}get titleElement(){return this.querySelector(this.variantLayout?.headingSelector||".card-heading")}get title(){return this.titleElement?.textContent?.trim()}get description(){return this.querySelector('[slot="body-xs"]')?.textContent?.trim()}updateFilters(r){let n={...this.filters};Object.keys(n).forEach(i=>{if(r){n[i].order=Math.min(n[i].order||2,2);return}let o=n[i].order;o===1||isNaN(o)||(n[i].order=Number(o)+1)}),this.filters=n}includes(r){return this.textContent.match(new RegExp(r,"i"))!==null}connectedCallback(){super.connectedCallback();let r=this.querySelector("aem-fragment")?.getAttribute("fragment");performance.mark(`${hs}${r}${eh}`),this.addEventListener(gr,this.handleQuantitySelection),this.addEventListener(_n,this.merchCardReady,{once:!0}),this.updateComplete.then(()=>{this.merchCardReady()}),this.storageOptions?.addEventListener("change",this.handleStorageChange),this.addEventListener(Re,this.handleAemFragmentEvents),this.addEventListener(Ne,this.handleAemFragmentEvents),this.aemFragment||setTimeout(()=>this.checkReady(),0)}disconnectedCallback(){super.disconnectedCallback(),this.variantLayout?.disconnectedCallbackHook(),this.removeEventListener(gr,this.handleQuantitySelection),this.storageOptions?.removeEventListener(fr,this.handleStorageChange),this.removeEventListener(Re,this.handleAemFragmentEvents),this.removeEventListener(Ne,this.handleAemFragmentEvents)}async handleAemFragmentEvents(r){if(r.type===Re&&fe(this,qt,Bi).call(this,"AEM fragment cannot be loaded"),r.type===Ne&&r.target.nodeName==="AEM-FRAGMENT"){let n=r.detail;await ls(n,this),this.checkReady()}}async checkReady(){let r=Promise.all([...this.querySelectorAll('span[is="inline-price"][data-wcs-osi],a[is="checkout-link"][data-wcs-osi]')].map(o=>o.onceSettled().catch(()=>o))).then(o=>o.every(a=>a.classList.contains("placeholder-resolved"))),n=new Promise(o=>setTimeout(()=>o(!1),rh));if(await Promise.race([r,n,this.aemFragment?.updateComplete])===!0){performance.mark(`${hs}${this.id}${th}`),this.dispatchEvent(new CustomEvent(Pn,{bubbles:!0,composed:!0}));return}fe(this,qt,Bi).call(this,"Contains unresolved offers")}get aemFragment(){return this.querySelector("aem-fragment")}get storageOptions(){return this.querySelector("sp-radio-group#storage")}get storageSpecificOfferSelect(){let r=this.storageOptions?.selected;if(r){let n=this.querySelector(`merch-offer-select[storage="${r}"]`);if(n)return n}return this.querySelector("merch-offer-select")}get offerSelect(){return this.storageOptions?this.storageSpecificOfferSelect:this.querySelector("merch-offer-select")}get quantitySelect(){return this.querySelector("merch-quantity-select")}displayFooterElementsInColumn(){if(!this.classList.contains("product"))return;let r=this.shadowRoot.querySelector(".secure-transaction-label");(this.footerSlot?.querySelectorAll('a[is="checkout-link"].con-button')).length===2&&r&&r.parentElement.classList.add("footer-column")}merchCardReady(){this.offerSelect&&!this.offerSelect.planType||(this.dispatchEvent(new CustomEvent(Ln,{bubbles:!0})),this.displayFooterElementsInColumn())}handleStorageChange(){let r=this.closest("merch-card")?.offerSelect.cloneNode(!0);r&&this.dispatchEvent(new CustomEvent(fr,{detail:{offerSelect:r},bubbles:!0}))}get dynamicPrice(){return this.querySelector('[slot="price"]')}selectMerchOffer(r){if(r===this.merchOffer)return;this.merchOffer=r;let n=this.dynamicPrice;if(r.price&&n){let i=r.price.cloneNode(!0);n.onceSettled?n.onceSettled().then(()=>{n.replaceWith(i)}):n.replaceWith(i)}}};qt=new WeakSet,Bi=function(r){this.dispatchEvent(new CustomEvent(Cn,{detail:r,bubbles:!0,composed:!0}))},p(Wt,"properties",{name:{type:String,attribute:"name",reflect:!0},variant:{type:String,reflect:!0},size:{type:String,attribute:"size",reflect:!0},badgeColor:{type:String,attribute:"badge-color",reflect:!0},borderColor:{type:String,attribute:"border-color",reflect:!0},badgeBackgroundColor:{type:String,attribute:"badge-background-color",reflect:!0},backgroundImage:{type:String,attribute:"background-image",reflect:!0},badgeText:{type:String,attribute:"badge-text"},actionMenu:{type:Boolean,attribute:"action-menu"},customHr:{type:Boolean,attribute:"custom-hr"},consonant:{type:Boolean,attribute:"consonant"},spectrum:{type:String,attribute:"spectrum"},detailBg:{type:String,attribute:"detail-bg"},secureLabel:{type:String,attribute:"secure-label"},checkboxLabel:{type:String,attribute:"checkbox-label"},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},storageOption:{type:String,attribute:"storage",reflect:!0},stockOfferOsis:{type:Object,attribute:"stock-offer-osis",converter:{fromAttribute:r=>{let[n,i,o]=r.split(",");return{PUF:n,ABM:i,M2M:o}}}},filters:{type:String,reflect:!0,converter:{fromAttribute:r=>Object.fromEntries(r.split(",").map(n=>{let[i,o,a]=n.split(":"),s=Number(o);return[i,{order:isNaN(s)?void 0:s,size:a}]})),toAttribute:r=>Object.entries(r).map(([n,{order:i,size:o}])=>[n,i,o].filter(a=>a!=null).join(":")).join(",")}},types:{type:String,attribute:"types",reflect:!0},merchOffer:{type:Object},analyticsId:{type:String,attribute:zr,reflect:!0},loading:{type:String}}),p(Wt,"styles",[Oo,Wo(),...Mo()]);customElements.define(Jl,Wt);var At=class extends J{constructor(){super(),this.size="m",this.alt="",this.loading="lazy"}render(){let{href:t}=this;return t?x`
+
+ `:x` `}};p(At,"properties",{size:{type:String,attribute:!0},src:{type:String,attribute:!0},alt:{type:String,attribute:!0},href:{type:String,attribute:!0},loading:{type:String,attribute:!0}}),p(At,"styles",k`
+ :host {
+ --img-width: 32px;
+ --img-height: 32px;
+ display: block;
+ width: var(--mod-img-width, var(--img-width));
+ height: var(--mod-img-height, var(--img-height));
+ }
+
+ :host([size='s']) {
+ --img-width: 24px;
+ --img-height: 24px;
+ }
+
+ :host([size='m']) {
+ --img-width: 30px;
+ --img-height: 30px;
+ }
+
+ :host([size='l']) {
+ --img-width: 40px;
+ --img-height: 40px;
+ }
+
+ img {
+ width: var(--mod-img-width, var(--img-width));
+ height: var(--mod-img-height, var(--img-height));
+ }
+ `);customElements.define("merch-icon",At);var Zt=class Zt extends Hr(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return Gr(Zt,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};p(Zt,"is","checkout-link"),p(Zt,"tag","a");var ne=Zt;window.customElements.get(ne.is)||window.customElements.define(ne.is,ne,{extends:ne.tag});var nh="p_draft_landscape",ih="/store/",oh=new Map([["countrySpecific","cs"],["customerSegment","cs"],["quantity","q"],["authCode","code"],["checkoutPromoCode","apc"],["rurl","rUrl"],["curl","cUrl"],["ctxrturl","ctxRtUrl"],["country","co"],["language","lang"],["clientId","cli"],["context","ctx"],["productArrangementCode","pa"],["offerType","ot"],["marketSegment","ms"]]),Yi=new Set(["af","ai","apc","appctxid","cli","co","cs","csm","ctx","ctxRtUrl","DCWATC","dp","fr","gsp","ijt","lang","lo","mal","ms","mv","mv2","nglwfdata","ot","otac","pa","pcid","promoid","q","rf","sc","scl","sdid","sid","spint","svar","th","thm","trackingid","usid","workflowid","context.guid","so.ca","so.su","so.tr","so.va"]),ah=["env","workflowStep","clientId","country"],ds=e=>oh.get(e)??e;function ji(e,t,r){for(let[n,i]of Object.entries(e)){let o=ds(n);i!=null&&r.has(o)&&t.set(o,i)}}function sh(e){switch(e){case Hn.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function ch(e,t){for(let r in e){let n=e[r];for(let[i,o]of Object.entries(n)){if(o==null)continue;let a=ds(i);t.set(`items[${r}][${a}]`,o)}}}function us(e){lh(e);let{env:t,items:r,workflowStep:n,ms:i,marketSegment:o,ot:a,offerType:s,pa:c,productArrangementCode:l,landscape:h,...d}=e,u={marketSegment:o??i,offerType:s??a,productArrangementCode:l??c},m=new URL(sh(t));return m.pathname=`${ih}${n}`,n!==Oe.SEGMENTATION&&n!==Oe.CHANGE_PLAN_TEAM_PLANS&&ch(r,m.searchParams),n===Oe.SEGMENTATION&&ji(u,m.searchParams,Yi),ji(d,m.searchParams,Yi),h===le.DRAFT&&ji({af:nh},m.searchParams,Yi),m.toString()}function lh(e){for(let t of ah)if(!e[t])throw new Error('Argument "checkoutData" is not valid, missing: '+t);if(e.workflowStep!==Oe.SEGMENTATION&&e.workflowStep!==Oe.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}function ms({providers:e,settings:t}){function r(o,a){let{checkoutClientId:s,checkoutWorkflow:c,checkoutWorkflowStep:l,country:h,language:d,promotionCode:u,quantity:m}=t,{checkoutMarketSegment:f,checkoutWorkflow:g=c,checkoutWorkflowStep:y=l,imsCountry:w,country:b=w??h,language:E=d,quantity:O=m,entitlement:C,upgrade:z,modal:F,perpetual:ue,promotionCode:Z=u,wcsOsi:Et,extraOptions:Ye,...St}=Object.assign({},a?.dataset??{},o??{}),me=Te(g,te,_.checkoutWorkflow),pe=re.CHECKOUT;me===te.V3&&(pe=Te(y,re,_.checkoutWorkflowStep));let Q=pt({...St,extraOptions:Ye,checkoutClientId:s,checkoutMarketSegment:f,country:b,quantity:xt(O,_.quantity),checkoutWorkflow:me,checkoutWorkflowStep:pe,language:E,entitlement:S(C),upgrade:S(z),modal:S(F),perpetual:S(ue),promotionCode:Gt(Z).effectivePromoCode,wcsOsi:Vr(Et)});if(a)for(let Tt of e.checkout)Tt(a,Q);return Q}function n(o,a){if(!Array.isArray(o)||!o.length||!a)return"";let{env:s,landscape:c}=t,{checkoutClientId:l,checkoutMarketSegment:h,checkoutWorkflow:d,checkoutWorkflowStep:u,country:m,promotionCode:f,quantity:g,...y}=r(a),w=window.frameElement?"if":"fp",b={checkoutPromoCode:f,clientId:l,context:w,country:m,env:s,items:[],marketSegment:h,workflowStep:u,landscape:c,...y};if(o.length===1){let[{offerId:E,offerType:O,productArrangementCode:C}]=o,{marketSegments:[z]}=o[0];Object.assign(b,{marketSegment:z,offerType:O,productArrangementCode:C}),b.items.push(g[0]===1?{id:E}:{id:E,quantity:g[0]})}else b.items.push(...o.map(({offerId:E},O)=>({id:E,quantity:g[O]??_.quantity})));return us(b)}let{createCheckoutLink:i}=ne;return{CheckoutLink:ne,CheckoutWorkflow:te,CheckoutWorkflowStep:re,buildCheckoutURL:n,collectCheckoutOptions:r,createCheckoutLink:i}}function hh({interval:e=200,maxAttempts:t=25}={}){let r=j.module("ims");return new Promise(n=>{r.debug("Waing for IMS to be ready");let i=0;function o(){window.adobeIMS?.initialized?n():++i>t?(r.debug("Timeout"),n()):setTimeout(o,e)}o()})}function dh(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function uh(e){let t=j.module("ims");return e.then(r=>r?window.adobeIMS.getProfile().then(({countryCode:n})=>(t.debug("Got user country:",n),n),n=>{t.error("Unable to get user country:",n)}):null)}function ps({}){let e=hh(),t=dh(e),r=uh(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}async function gs(e,t){let{data:r}=t||await Promise.resolve().then(()=>Ms(fs(),1));if(Array.isArray(r)){let n=o=>r.find(a=>Tr(a.lang,o)),i=n(e.language)??n(_.language);if(i)return Object.freeze(i)}return{}}var xs=["GB_en","AU_en","FR_fr","AT_de","BE_en","BE_fr","BE_nl","BG_bg","CH_de","CH_fr","CH_it","CZ_cs","DE_de","DK_da","EE_et","EG_ar","EG_en","ES_es","FI_fi","FR_fr","GR_el","GR_en","HU_hu","IE_en","IT_it","LU_de","LU_en","LU_fr","NL_nl","NO_nb","PL_pl","PT_pt","RO_ro","SE_sv","SI_sl","SK_sk","TR_tr","UA_uk","ID_en","ID_in","IN_en","IN_hi","JP_ja","MY_en","MY_ms","NZ_en","TH_en","TH_th"],ph={INDIVIDUAL_COM:["ZA_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","ZA_en","SG_en","KR_ko"],TEAM_COM:["ZA_en","LT_lt","LV_lv","NG_en","ZA_en","CO_es","KR_ko"],INDIVIDUAL_EDU:["LT_lt","LV_lv","SA_en","SG_en"],TEAM_EDU:["SG_en","KR_ko"]},Qt=class Qt extends HTMLSpanElement{constructor(){super();p(this,"masElement",new vt(this));this.handleClick=this.handleClick.bind(this)}static get observedAttributes(){return["data-display-old-price","data-display-per-unit","data-display-recurrence","data-display-tax","data-perpetual","data-promotion-code","data-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let n=q();if(!n)return null;let{displayOldPrice:i,displayPerUnit:o,displayRecurrence:a,displayTax:s,forceTaxExclusive:c,perpetual:l,promotionCode:h,quantity:d,template:u,wcsOsi:m}=n.collectPriceOptions(r);return Ur(Qt,{displayOldPrice:i,displayPerUnit:o,displayRecurrence:a,displayTax:s,forceTaxExclusive:c,perpetual:l,promotionCode:h,quantity:d,template:u,wcsOsi:m})}get isInlinePrice(){return!0}attributeChangedCallback(r,n,i){this.masElement.attributeChangedCallback(r,n,i)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.handleClick)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.handleClick)}handleClick(r){r.target!==this&&(r.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})))}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}resolveDisplayTaxForGeoAndSegment(r,n,i,o){let a=`${r}_${n}`;if(xs.includes(r)||xs.includes(a))return!0;let s=ph[`${i}_${o}`];return s?!!(s.includes(r)||s.includes(a)):!1}async resolveDisplayTax(r,n){let[i]=await r.resolveOfferSelectors(n),o=jt(await i,n);if(o?.length){let{country:a,language:s}=n,c=o[0],[l=""]=c.marketSegments;return this.resolveDisplayTaxForGeoAndSegment(a,s,c.customerSegment,l)}}async render(r={}){if(!this.isConnected)return!1;let n=q();if(!n)return!1;let i=n.collectPriceOptions(r,this);if(!i.wcsOsi.length)return!1;let o=this.masElement.togglePending(i);this.innerHTML="";let[a]=n.resolveOfferSelectors(i);return this.renderOffers(jt(await a,i),i,o)}renderOffers(r,n={},i=void 0){if(!this.isConnected)return;let o=q();if(!o)return!1;let a=o.collectPriceOptions({...this.dataset,...n},this);if(i??(i=this.masElement.togglePending(a)),r.length){if(this.masElement.toggleResolved(i,r,a))return this.innerHTML=o.buildPriceHTML(r,a),!0}else{let s=new Error(`Not provided: ${a?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(i,s,a))return this.innerHTML="",!0}return!1}updateOptions(r){let n=q();if(!n)return!1;let{displayOldPrice:i,displayPerUnit:o,displayRecurrence:a,displayTax:s,forceTaxExclusive:c,perpetual:l,promotionCode:h,quantity:d,template:u,wcsOsi:m}=n.collectPriceOptions(r);return Dr(this,{displayOldPrice:i,displayPerUnit:o,displayRecurrence:a,displayTax:s,forceTaxExclusive:c,perpetual:l,promotionCode:h,quantity:d,template:u,wcsOsi:m}),!0}};p(Qt,"is","inline-price"),p(Qt,"tag","span");var ie=Qt;window.customElements.get(ie.is)||window.customElements.define(ie.is,ie,{extends:ie.tag});function bs({literals:e,providers:t,settings:r}){function n(a,s){let{country:c,displayOldPrice:l,displayPerUnit:h,displayRecurrence:d,displayTax:u,forceTaxExclusive:m,language:f,promotionCode:g,quantity:y}=r,{displayOldPrice:w=l,displayPerUnit:b=h,displayRecurrence:E=d,displayTax:O=u,forceTaxExclusive:C=m,country:z=c,language:F=f,perpetual:ue,promotionCode:Z=g,quantity:Et=y,template:Ye,wcsOsi:St,...me}=Object.assign({},s?.dataset??{},a??{}),pe=pt({...me,country:z,displayOldPrice:S(w),displayPerUnit:S(b),displayRecurrence:S(E),displayTax:S(O),forceTaxExclusive:S(C),language:F,perpetual:S(ue),promotionCode:Gt(Z).effectivePromoCode,quantity:xt(Et,_.quantity),template:Ye,wcsOsi:Vr(St)});if(s)for(let Q of t.price)Q(s,pe);return pe}function i(a,s){if(!Array.isArray(a)||!a.length||!s)return"";let{template:c}=s,l;switch(c){case"discount":l=Mi;break;case"strikethrough":l=Ii;break;case"optical":l=ki;break;case"annual":l=Ni;break;default:s.country==="AU"&&a[0].planType==="ABM"?l=s.promotionCode?Oi:Ri:l=s.promotionCode?Ci:Pi}let h=n(s);h.literals=Object.assign({},e.price,pt(s.literals??{}));let[d]=a;return d={...d,...d.priceDetails},l(h,d)}let o=ie.createInlinePrice;return{InlinePrice:ie,buildPriceHTML:i,collectPriceOptions:n,createInlinePrice:o}}function vs({settings:e}){let t=j.module("wcs"),{env:r,wcsApiKey:n}=e,i=new Map,o=new Map,a;async function s(d,u,m=!0){let f=Rn;t.debug("Fetching:",d);let g="",y,w=(b,E,O)=>`${b}: ${E?.status}, url: ${O.toString()}`;try{if(d.offerSelectorIds=d.offerSelectorIds.sort(),g=new URL(e.wcsURL),g.searchParams.set("offer_selector_ids",d.offerSelectorIds.join(",")),g.searchParams.set("country",d.country),g.searchParams.set("locale",d.locale),g.searchParams.set("landscape",r===ze.STAGE?"ALL":e.landscape),g.searchParams.set("api_key",n),d.language&&g.searchParams.set("language",d.language),d.promotionCode&&g.searchParams.set("promotion_code",d.promotionCode),d.currency&&g.searchParams.set("currency",d.currency),y=await fetch(g.toString(),{credentials:"omit"}),y.ok){let b=await y.json();t.debug("Fetched:",d,b);let E=b.resolvedOffers??[];E=E.map(Lr),u.forEach(({resolve:O},C)=>{let z=E.filter(({offerSelectorIds:F})=>F.includes(C)).flat();z.length&&(u.delete(C),O(z))})}else y.status===404&&d.offerSelectorIds.length>1?(t.debug("Multi-osi 404, fallback to fetch-by-one strategy"),await Promise.allSettled(d.offerSelectorIds.map(b=>s({...d,offerSelectorIds:[b]},u,!1)))):f=xr}catch(b){f=xr,t.error(f,d,b)}m&&u.size&&(t.debug("Missing:",{offerSelectorIds:[...u.keys()]}),u.forEach(b=>{b.reject(new Error(w(f,y,g)))}))}function c(){clearTimeout(a);let d=[...o.values()];o.clear(),d.forEach(({options:u,promises:m})=>s(u,m))}function l(){let d=i.size;i.clear(),t.debug(`Flushed ${d} cache entries`)}function h({country:d,language:u,perpetual:m=!1,promotionCode:f="",wcsOsi:g=[]}){let y=`${u}_${d}`;d!=="GB"&&(u=m?"EN":"MULT");let w=[d,u,f].filter(b=>b).join("-").toLowerCase();return g.map(b=>{let E=`${b}-${w}`;if(!i.has(E)){let O=new Promise((C,z)=>{let F=o.get(w);if(!F){let ue={country:d,locale:y,offerSelectorIds:[]};d!=="GB"&&(ue.language=u),F={options:ue,promises:new Map},o.set(w,F)}f&&(F.options.promotionCode=f),F.options.offerSelectorIds.push(b),F.promises.set(b,{resolve:C,reject:z}),F.options.offerSelectorIds.length>=e.wcsBufferLimit?c():(t.debug("Queued:",F.options),a||(a=setTimeout(c,e.wcsBufferDelay)))});i.set(E,O)}return i.get(E)})}return{WcsCommitment:Vi,WcsPlanType:$i,WcsTerm:Ui,resolveOfferSelectors:h,flushWcsCache:l}}var Xi="mas-commerce-service",fh="mas:start",gh="mas:ready",Kr,As,Fr=class extends HTMLElement{constructor(){super(...arguments);G(this,Kr);p(this,"promise",null)}async registerCheckoutAction(r){typeof r=="function"&&(this.buildCheckoutAction=async(n,i,o)=>{let a=await r?.(n,i,this.imsSignedInPromise,o);return a||null})}async activate(){let r=L(this,Kr,As),n=Object.freeze(Hi(r));bt(r.lana);let i=j.init(r.hostEnv).module("service");i.debug("Activating:",r);let o={price:{}};try{o.price=await gs(n,r.commerce.priceLiterals)}catch{}let a={checkout:new Set,price:new Set},s={literals:o,providers:a,settings:n};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...ms(s),...ps(s),...bs(s),...vs(s),...zn,Log:j,get defaults(){return _},get log(){return j},get providers(){return{checkout(c){return a.checkout.add(c),()=>a.checkout.delete(c)},price(c){return a.price.add(c),()=>a.price.delete(c)}}},get settings(){return n}})),i.debug("Activated:",{literals:o,settings:n}),Fe(()=>{let c=new CustomEvent(tt,{bubbles:!0,cancelable:!1,detail:this});performance.mark(gh),this.dispatchEvent(c)})}connectedCallback(){this.readyPromise||(performance.mark(fh),this.readyPromise=this.activate())}disconnectedCallback(){this.readyPromise=null}flushWcsCache(){this.flushWcsCache(),this.log.debug("Flushed WCS cache")}refreshOffers(){this.flushWcsCache(),document.querySelectorAll('span[is="inline-price"],a[is="checkout-link"]').forEach(r=>r.requestUpdate(!0)),this.log.debug("Refreshed WCS offers")}refreshFragments(){this.flushWcsCache(),document.querySelectorAll("aem-fragment").forEach(r=>r.refresh()),this.log.debug("Refreshed AEM fragments")}};Kr=new WeakSet,As=function(){let r={hostEnv:{name:this.getAttribute("host-env")??"prod"},commerce:{env:this.getAttribute("env")},lana:{tags:this.getAttribute("lana-tags"),sampleRate:parseInt(this.getAttribute("lana-sample-rate"),10),isProdDomain:this.getAttribute("host-env")==="prod"}};return["locale","country","language"].forEach(n=>{let i=this.getAttribute(n);i&&(r[n]=i)}),["checkout-workflow-step","force-tax-exclusive","checkout-client-id","allow-override","wcs-api-key"].forEach(n=>{let i=this.getAttribute(n);if(i!=null){let o=n.replace(/-([a-z])/g,a=>a[1].toUpperCase());r.commerce[o]=i}}),r},p(Fr,"instance");window.customElements.get(Xi)||window.customElements.define(Xi,Fr);bt({sampleRate:1});export{Be as CheckoutButton,ne as CheckoutLink,te as CheckoutWorkflow,re as CheckoutWorkflowStep,_ as Defaults,ie as InlinePrice,le as Landscape,j as Log,Xi as TAG_NAME_SERVICE,Vi as WcsCommitment,$i as WcsPlanType,Ui as WcsTerm,Lr as applyPlanType,Hi as getSettings};
+/*! Bundled license information:
+
+@lit/reactive-element/css-tag.js:
+ (**
+ * @license
+ * Copyright 2019 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ *)
+
+@lit/reactive-element/reactive-element.js:
+ (**
+ * @license
+ * Copyright 2017 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ *)
+
+lit-html/lit-html.js:
+ (**
+ * @license
+ * Copyright 2017 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ *)
+
+@lit/reactive-element/css-tag.js:
+ (**
+ * @license
+ * Copyright 2019 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ *)
+
+@lit/reactive-element/reactive-element.js:
+ (**
+ * @license
+ * Copyright 2017 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ *)
+
+lit-html/lit-html.js:
+ (**
+ * @license
+ * Copyright 2017 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ *)
+
+lit-element/lit-element.js:
+ (**
+ * @license
+ * Copyright 2017 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ *)
+
+lit-html/is-server.js:
+ (**
+ * @license
+ * Copyright 2022 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ *)
+*/
diff --git a/libs/deps/mas/merch-card-collection.js b/libs/deps/mas/merch-card-collection.js
index 4ed0ca938e..5f4fefc9f4 100644
--- a/libs/deps/mas/merch-card-collection.js
+++ b/libs/deps/mas/merch-card-collection.js
@@ -1,4 +1,4 @@
-var N=Object.defineProperty;var y=(s,e,t)=>e in s?N(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var E=(s,e,t)=>y(s,typeof e!="symbol"?e+"":e,t);import{html as c,LitElement as O}from"../lit-all.min.js";var f=class{constructor(e,t){this.key=Symbol("match-media-key"),this.matches=!1,this.host=e,this.host.addController(this),this.media=window.matchMedia(t),this.matches=this.media.matches,this.onChange=this.onChange.bind(this),e.addController(this)}hostConnected(){var e;(e=this.media)==null||e.addEventListener("change",this.onChange)}hostDisconnected(){var e;(e=this.media)==null||e.removeEventListener("change",this.onChange)}onChange(e){this.matches!==e.matches&&(this.matches=e.matches,this.host.requestUpdate(this.key,!this.matches))}};var T="hashchange";function L(s=window.location.hash){let e=[],t=s.replace(/^#/,"").split("&");for(let r of t){let[n,i=""]=r.split("=");n&&e.push([n,decodeURIComponent(i.replace(/\+/g," "))])}return Object.fromEntries(e)}function d(s){let e=new URLSearchParams(window.location.hash.slice(1));Object.entries(s).forEach(([n,i])=>{i?e.set(n,i):e.delete(n)}),e.sort();let t=e.toString();if(t===window.location.hash)return;let r=window.scrollY||document.documentElement.scrollTop;window.location.hash=t,window.scrollTo(0,r)}function x(s){let e=()=>{if(window.location.hash&&!window.location.hash.includes("="))return;let t=L(window.location.hash);s(t)};return e(),window.addEventListener(T,e),()=>{window.removeEventListener(T,e)}}var S="merch-card-collection:sort",g="merch-card-collection:showmore";var A="(max-width: 1199px)",R="(min-width: 768px)",C="(min-width: 1200px)";import{css as M,unsafeCSS as w}from"../lit-all.min.js";var b=M`
+var M=Object.defineProperty;var b=(s,e,t)=>e in s?M(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var E=(s,e,t)=>(b(s,typeof e!="symbol"?e+"":e,t),t);import{html as c,LitElement as L}from"../lit-all.min.js";var T=class{constructor(e,t){this.key=Symbol("match-media-key"),this.matches=!1,this.host=e,this.host.addController(this),this.media=window.matchMedia(t),this.matches=this.media.matches,this.onChange=this.onChange.bind(this),e.addController(this)}hostConnected(){var e;(e=this.media)==null||e.addEventListener("change",this.onChange)}hostDisconnected(){var e;(e=this.media)==null||e.removeEventListener("change",this.onChange)}onChange(e){this.matches!==e.matches&&(this.matches=e.matches,this.host.requestUpdate(this.key,!this.matches))}};var f="hashchange";function O(s=window.location.hash){let e=[],t=s.replace(/^#/,"").split("&");for(let r of t){let[n,i=""]=r.split("=");n&&e.push([n,decodeURIComponent(i.replace(/\+/g," "))])}return Object.fromEntries(e)}function d(s){let e=new URLSearchParams(window.location.hash.slice(1));Object.entries(s).forEach(([n,i])=>{i?e.set(n,i):e.delete(n)}),e.sort();let t=e.toString();if(t===window.location.hash)return;let r=window.scrollY||document.documentElement.scrollTop;window.location.hash=t,window.scrollTo(0,r)}function x(s){let e=()=>{if(window.location.hash&&!window.location.hash.includes("="))return;let t=O(window.location.hash);s(t)};return e(),window.addEventListener(f,e),()=>{window.removeEventListener(f,e)}}var A="merch-card-collection:sort",C="merch-card-collection:showmore";var R="(max-width: 1199px)",g="(min-width: 768px)",S="(min-width: 1200px)";import{css as y,unsafeCSS as N}from"../lit-all.min.js";var w=y`
#header,
#resultText,
#footer {
@@ -65,7 +65,7 @@ var N=Object.defineProperty;var y=(s,e,t)=>e in s?N(s,e,{enumerable:!0,configura
}
/* tablets */
- @media screen and ${w(R)} {
+ @media screen and ${N(g)} {
#header {
grid-template-columns: 1fr fit-content(100%) fit-content(100%);
}
@@ -84,7 +84,7 @@ var N=Object.defineProperty;var y=(s,e,t)=>e in s?N(s,e,{enumerable:!0,configura
}
/* Laptop */
- @media screen and ${w(C)} {
+ @media screen and ${N(S)} {
#resultText {
grid-column: span 2;
order: -3;
@@ -96,9 +96,9 @@ var N=Object.defineProperty;var y=(s,e,t)=>e in s?N(s,e,{enumerable:!0,configura
justify-content: end;
}
}
-`;var u=(s,e)=>s.querySelector(`[slot="${e}"]`)?.textContent?.trim();var D="merch-card-collection",a={alphabetical:"alphabetical",authored:"authored"},v={filters:["noResultText","resultText","resultsText"],mobile:["noSearchResultsMobileText","searchResultMobileText","searchResultsMobileText"],desktop:["noSearchResultsText","searchResultText","searchResultsText"]},P=(s,e={})=>{s.querySelectorAll("span[data-placeholder]").forEach(t=>{let{placeholder:r}=t.dataset;t.innerText=e[r]??""})},B=(s,{filter:e})=>s.filter(t=>t.filters.hasOwnProperty(e)),H=(s,{types:e})=>e?(e=e.split(","),s.filter(t=>e.some(r=>t.types.includes(r)))):s,V=s=>s.sort((e,t)=>(e.title??"").localeCompare(t.title??"","en",{sensitivity:"base"})),I=(s,{filter:e})=>s.sort((t,r)=>r.filters[e]?.order==null||isNaN(r.filters[e]?.order)?-1:t.filters[e]?.order==null||isNaN(t.filters[e]?.order)?1:t.filters[e].order-r.filters[e].order),k=(s,{search:e})=>e?.length?(e=e.toLowerCase(),s.filter(t=>(t.title??"").toLowerCase().includes(e))):s,h=class extends O{constructor(){super();E(this,"mobileAndTablet",new f(this,A));this.filter="all",this.hasMore=!1,this.resultCount=void 0,this.displayResult=!1}render(){return c`${this.header}
+`;var m=(s,e)=>s.querySelector(`[slot="${e}"]`)?.textContent?.trim();var D="merch-card-collection",a={alphabetical:"alphabetical",authored:"authored"},v={filters:["noResultText","resultText","resultsText"],mobile:["noSearchResultsMobileText","searchResultMobileText","searchResultsMobileText"],desktop:["noSearchResultsText","searchResultText","searchResultsText"]},P=(s,e={})=>{s.querySelectorAll("span[data-placeholder]").forEach(t=>{let{placeholder:r}=t.dataset;t.innerText=e[r]??""})},I=(s,{filter:e})=>s.filter(t=>t.filters.hasOwnProperty(e)),H=(s,{types:e})=>e?(e=e.split(","),s.filter(t=>e.some(r=>t.types.includes(r)))):s,B=s=>s.sort((e,t)=>(e.title??"").localeCompare(t.title??"","en",{sensitivity:"base"})),V=(s,{filter:e})=>s.sort((t,r)=>r.filters[e]?.order==null||isNaN(r.filters[e]?.order)?-1:t.filters[e]?.order==null||isNaN(t.filters[e]?.order)?1:t.filters[e].order-r.filters[e].order),k=(s,{search:e})=>e?.length?(e=e.toLowerCase(),s.filter(t=>(t.title??"").toLowerCase().includes(e))):s,h=class extends L{constructor(){super();E(this,"mobileAndTablet",new T(this,R));this.filter="all",this.hasMore=!1,this.resultCount=void 0,this.displayResult=!1}render(){return c`${this.header}
- ${this.footer}`}updated(t){if(!this.querySelector("merch-card"))return;let r=window.scrollY||document.documentElement.scrollTop,n=[...this.children].filter(o=>o.tagName==="MERCH-CARD");if(n.length===0)return;t.has("singleApp")&&this.singleApp&&n.forEach(o=>{o.updateFilters(o.name===this.singleApp)});let i=this.sort===a.alphabetical?V:I,l=[B,H,k,i].reduce((o,p)=>p(o,this),n).map((o,p)=>[o,p]);if(this.resultCount=l.length,this.page&&this.limit){let o=this.page*this.limit;this.hasMore=l.length>o,l=l.filter(([,p])=>p{m.has(o)?(o.size=o.filters[this.filter]?.size,o.style.removeProperty("display"),o.requestUpdate()):(o.style.display="none",o.size=void 0)}),window.scrollTo(0,r),this.updateComplete.then(()=>{let o=this.shadowRoot.getElementById("resultText")?.firstElementChild?.assignedElements?.()?.[0];o&&P(o,{resultCount:this.resultCount,searchTerm:this.search,filter:this.sidenav?.filters.selectedText})})}connectedCallback(){super.connectedCallback(),this.filtered?(this.filter=this.filtered,this.page=1):this.startDeeplink(),this.sidenav=document.querySelector("merch-sidenav")}disconnectedCallback(){super.disconnectedCallback(),this.stopDeeplink?.()}get header(){if(!this.filtered)return c`