PageSourceSearch

https://zoovaa.com/cdn/shopifycloud/checkout-web/assets/c1/896e8dde.B2wDdLW6.js

js zoovaa.com collected 2026-10-06 17:38:34 UTC 110,898 bytes, 1 lines download raw bytes

1import{x as e,X as r,u as n,T as o,m as t,g as a,h as i,z as s,q as c,N as l,S as d,a5 as u,_ as p,B as g,C as h,I as m,t as b,s as y,$ as v,f,e as S,aB as k,a6 as B,D as x,a9 as w,ao as T,a0 as I,W as P,E,aC as L,F as C,k as z,aD as M,w as _}from"./2c1ab0fe.Bywc2Brn.js";import{c as R,c2 as N,z as A,cb as F,iF as D}from"./9dba8418.BjFsJfKG.js";import{aF as W,l as j,b as $,H as q,cZ as O,S as H,a1 as G,L as J,ga as U,M as V,gY as Q,am as Y,ef as K,gZ as X,g_ as Z,eh as ee}from"./164ad2e3.CwFFCQJV.js";import{u as re,S as ne}from"./71ae3d5c.DB_FveVu.js";import{u as oe}from"./ca5e9c49.D8Om2Zza.js";import{u as te}from"./app.CGAYdtrm.js";import{p as ae,a as ie,b as se,c as ce}from"./633ac094.869sjXr4.js";import{r as le,a as de}from"./ca3e798e.Dc9DtEXz.js";import{T as ue}from"./7e8cd205.ClJW24Zf.js";import{c as pe}from"./e77d135d.Dz0RetrO.js";import{u as ge}from"./9f047e05.0-EJzRXZ.js";import{P as he}from"./064f6ac1.AHd5DVks.js";import{v as me}from"./66338e00.EBE-IemX.js";import{c as be}from"./5ef0d995.BzYCvrmY.js";import{receiptForUI as ye}from"./8498e76b.DJOfrX05.js";import"./d0bb51ec.B6dL-tOK.js";import"./f67abd2c.BWsb-1Zx.js";import"./60a453ce.CEvWNvTm.js";import"./e12db40c.BZEbMADi.js";import"./24fcbaf6.DqxmcKBS.js";import"./5fda1420.renPlTOa.js";import"./2bac2c53.DYoWukU7.js";import"./2255f8fa.DGw2VX-T.js";class ve extends Error{constructor(){super(...arguments),this.name="PostPurchaseUIError"}}const fe=r(void 0);function Se(){return e(fe)}function ke({children:e,level:r}){const o=Se();if(null!=o&&null!=r&&r>o)throw new ve(`You are trying to nest a heading group with level ${r} inside a context where the current heading level is ${o}. This will create a broken document outline.`);const t=r??(o??0)+1;return n(fe.Provider,{value:t,children:e})}function Be({children:e}){return n(ke,{children:e})}const xe=r(null);function we({children:e,translate:r,linkComponent:t,shop:a}){const i=o(()=>({translate:r,linkComponent:t,shop:a}),[a,r,t]);return n(xe.Provider,{value:i,children:n(Be,{children:e})})}function Te(){const r=e(xe);if(null==r)throw new ve("No app context available");return r}function Ie(){return Te().translate}const Pe="hJRmE",Ee="j4rZ6",Le="OyTlI",Ce="Y5OXA",ze="popET",Me="_9c3s7",_e="_9FcHx",Re="_74HAj",Ne="AdgkN";function Ae({children:e}){return n("div",{className:t("WZ1ep",Ee),children:e})}const Fe=[[3.240969941904521,-1.537383177570093,-.498610760293],[-.96924363628087,1.87596750150772,.041555057407175],[.055630079696993,-.20397695888897,1.056971514242878]],De=903.2962962;class We{constructor(e,r,n){this.h=e,this.s=r,this.l=n}adjust({h:e,s:r,l:n}){return new We(e?.(this.h)??this.h,r?.(this.s)??this.s,n?.(this.l)??this.l)}toRgb(){return $e(this)}getYiqPerceivedBrightness(){return function({h:e,s:r,l:n}){const[o]=function(e,r,n){const[o,t,a]=qe(...Je(e,r,n));return[(.299*o+.587*t+.114*a)/255,(.596*o-.275*t-.321*a)/255,(.212*o-.523*t+.311*a)/255]}(e,r,n);return o}(this)}}const je=/hsl\(\s*(?<h>\d+),\s*(?<s>\d+)%,\s(?<l>\d+)%\)/;function $e({h:e,s:r,l:n}){return`rgb(${qe(...Je(e,r,n)).join(",")})`}function qe(e,r,n){return function(...e){return[Oe(Ge(He(Fe[0],e))),Oe(Ge(He(Fe[1],e))),Oe(Ge(He(Fe[2],e)))]}(...function(e,r,n){if(0===e)return[0,0,0];const o=r/(13*e)+.19783000664283,t=n/(13*e)+.46831999493879,a=function(e){return e<=8?1*e/De:1*((e+16)/116)**3}(e),i=0-9*a*o/((o-4)*t-o*t);return[i,a,(9*a-15*t*a-t*i)/(3*t)]}(...function(e,r,n){const o=n/360*2*Math.PI;return[e,Math.cos(o)*r,Math.sin(o)*r]}(e,r,n)))}function Oe(e){return Math.round(255*e)}function He(e,r){return e[0]*r[0]+e[1]*r[1]+e[2]*r[2]}function Ge(e){return e<=.0031308?12.92*e:1.055*e**.4166666666666667-.055}function Je(e,r,n){if(n>99.9999999)return[100,0,e];if(n<1e-8)return[0,0,e];const o=function(e,r){const n=r/360*Math.PI*2,o=function(e){const r=[],n=(e+16)**3/1560896,o=n>.0088564516?n:e/De;for(const[t,a,i]of Fe)for(const n of[0,1]){const s=(284517*t-94839*i)*o,c=(838422*i+769860*a+731718*t)*e*o-769860*n*e,l=(632260*i-126452*a)*o+126452*n;r.push({slope:s/l,intercept:c/l})}return r}(e);return Math.min(...o.map(e=>{return r=n,(o=e).intercept/(Math.sin(r)-o.slope*Math.cos(r));var r,o}).filter(e=>e>0))}(n,e);return[n,o/100*r,e]}function Ue(e,r,n=1.285){const o="string"==typeof r?parseFloat(r):r;return("string"==typeof n?parseFloat(n):n)**e*(o/10)+"rem"}const Ve=r(void 0);class Qe{constructor(e){this.listeners={change:new Set,preview:new Set},this.configuration={...e,colors:ir(e.colors??{}),typographyScale:e.typographyScale??{}},this.customProperties=Fr(this.configuration)}preview(e,r){const n=ir(e),o=Dr(n);this.configuration={...this.configuration,colors:{...this.configuration.colors,...n}};const t=Wr(r);for(const a of this.listeners.preview)a({...o,...t})}set(e,r){this.configuration={...this.configuration,[e]:r};for(const o of this.listeners.change)o(this.configuration);const n=Fr(this.configuration);for(const o of this.listeners.preview)o(n)}on(e,r){return this.listeners[e].add(r),()=>{this.listeners[e].delete(r)}}}function Ye(e){return e?.background?.adjust({l:e=>e>50?e-1.7:Math.max(e-5.2,0)})}function Ke(e){return e?.background?.adjust({l:e=>e>50?Math.min(e-2.5,97.5):Math.max(e+2.5,2.5)})}function Xe(e){return e?.foreground??e?.background?.adjust({s:e=>e>50?Math.max(e-55,0):e,l:r=>
1lr(e?.background)?Math.max(r-62.6,0):Math.min(r+82,98.3)})}function Ze(e){return e?.foreground?e?.foreground?.adjust({l:r=>lr(e?.foreground)?Math.min(r+15,100):r-10}):e?.background?.adjust({s:e=>e>50?e:Math.min(e+15,100),l:r=>lr(e?.background)?Math.max(r-77.5,0):98.3})}function er(e){return e?.foreground?e?.foreground?.adjust({l:r=>lr(e?.foreground)?Math.max(r-35,0):r+43.2}):e?.background?.adjust({s:e=>e>50?Math.max(e-55,0):e,l:r=>lr(e?.background)?Math.max(r-49.9,10):Math.min(r+63.2,90)})}function rr(e){return e?.background?.adjust({l:e=>e-10})}function nr(e){return e?.background?.adjust({l:e=>e-10})}function or(e){return e?.foreground??e?.background?.adjust({l:()=>lr(e?.background)?4:100})}function tr(e){return e?.background?.adjust({l:e=>e-10})}function ar(e){return e?.background?.adjust({l:e=>e-10})}function ir(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];if(null==o)return r;const{background:t,foreground:a,accent:i}=o;return{...r,[n]:{background:t?dr(t):void 0,foreground:a?dr(a):void 0,accent:i?dr(i):void 0}}},{})}function sr(e){return e?.background?.adjust({s:e=>e>50?Math.max(e-15,0):e,l:r=>lr(e?.background)?Math.max(r-8.8,0):Math.min(r+11.3,90)})}function cr(e){return e?.background?.adjust({s:e=>e>50?e:Math.min(e+15,100),l:r=>lr(e?.background)?Math.max(r-77.5,0):98.3})}function lr(e){return void 0!==e&&e.getYiqPerceivedBrightness()>=.65}function dr(e){return e instanceof We?e:"string"==typeof e?function(e){const r=e.match(je);if(null==r)throw new ve(`Invalid HSL value: ${e}`);const{h:n,s:o,l:t}=r.groups,a=n?parseInt(n,10):NaN,i=o?parseInt(o,10):NaN,s=t?parseInt(t,10):NaN;if(Number.isNaN(a)||Number.isNaN(i)||Number.isNaN(s))throw new ve(`Invalid HSL value: ${e}`);return new We(a,i,s)}(e):new We(...e)}const ur={colorCanvas:({canvas:e})=>e?.background,colorCanvasSubdued:({canvas:e})=>Ye(e),colorCanvasText:({canvas:e})=>Xe(e),colorCanvasTextSubdued:({canvas:e})=>er(e),colorCanvasTextEmphasized:({canvas:e})=>Ze(e),colorCanvasBorder:({canvas:e})=>sr(e),colorCanvasBorderEmphasized:({canvas:e})=>cr(e),colorCanvasAccent:({canvas:e})=>e?.accent,colorSurfacePrimary:({surfacePrimary:e})=>e?.background,colorSurfacePrimaryDisabled:({surfacePrimary:e})=>Ke(e),colorSurfacePrimarySubdued:({surfacePrimary:e})=>Ye(e),colorSurfacePrimaryText:({surfacePrimary:e})=>Xe(e),colorSurfacePrimaryTextSubdued:({surfacePrimary:e})=>er(e),colorSurfacePrimaryTextEmphasized:({surfacePrimary:e})=>Ze(e),colorSurfacePrimaryBorder:({surfacePrimary:e})=>sr(e),colorSurfacePrimaryBorderEmphasized:({surfacePrimary:e})=>cr(e),colorSurfacePrimaryAccent:({surfacePrimary:e})=>e?.accent,colorSurfaceSecondary:({surfaceSecondary:e})=>e?.background,colorSurfaceSecondaryDisabled:({surfaceSecondary:e})=>Ke(e),colorSurfaceSecondarySubdued:({surfaceSecondary:e})=>Ye(e),colorSurfaceSecondaryText:({surfaceSecondary:e})=>Xe(e),colorSurfaceSecondaryTextSubdued:({surfaceSecondary:e})=>er(e),colorSurfaceSecondaryTextEmphasized:({surfaceSecondary:e})=>Ze(e),colorSurfaceSecondaryBorder:({surfaceSecondary:e})=>sr(e),colorSurfaceSecondaryBorderEmphasized:({surfaceSecondary:e})=>cr(e),colorSurfaceSecondaryAccent:({surfaceSecondary:e})=>e?.accent,colorSurfaceTertiary:({surfaceTertiary:e})=>e?.background,colorSurfaceTertiaryDisabled:({surfaceTertiary:e})=>Ke(e),colorSurfaceTertiarySubdued:({surfaceTertiary:e})=>Ye(e),colorSurfaceTertiaryText:({surfaceTertiary:e})=>Xe(e),colorSurfaceTertiaryTextSubdued:({surfaceTertiary:e})=>er(e),colorSurfaceTertiaryTextEmphasized:({surfaceTertiary:e})=>Ze(e),colorSurfaceTertiaryBorder:({surfaceTertiary:e})=>sr(e),colorSurfaceTertiaryBorderEmphasized:({surfaceTertiary:e})=>cr(e),colorSurfaceTertiaryAccent:({surfaceTertiary:e})=>e?.accent,color1:({color1:e})=>e?.background,color1Text:({color1:e})=>e?.foreground,color2:({color2:e})=>e?.background,color2Text:({color2:e})=>e?.foreground,colorPrimaryAction:({primaryAction:e})=>e?.background,colorPrimaryActionHovered:({primaryAction:e})=>rr(e),colorPrimaryActionPressed:({primaryAction:e})=>nr(e),colorPrimaryActionText:({primaryAction:e})=>or(e),colorPrimaryActionTextHovered:({primaryAction:e})=>tr(e),colorPrimaryActionTextPressed:({primaryAction:e})=>ar(e),colorSecondaryAction:({secondaryAction:e})=>e?.background,colorSecondaryActionHovered:({secondaryAction:e})=>rr(e),colorSecondaryActionPressed:({secondaryAction:e})=>nr(e),colorSecondaryActionText:({secondaryAction:e})=>or(e),colorSecondaryActionTextHovered:({secondaryAction:e})=>tr(e),colorSecondaryActionTextPressed:({secondaryAction:e})=>ar(e),colorTertiaryAction:({tertiaryAction:e})=>e?.background,colorTertiaryActionText:({tertiaryAction:e})=>or(e),colorTertiaryActionTextSubdued:({tertiaryAction:e})=>e?.foreground?e?.foreground?.adjust({l:e=>Math.min(e+20,100)}):e?.background?.adjust({s:e=>e>50?Math.max(e-55,0):e,l:r=>lr(e?.background)?Math.max(r-49.9,10):Math.min(r+63.2,90)}),colorInteractive:({interactive:e})=>e?.background,colorInteractiveHovered:({interactive:e})=>e?.background?.adjust({l:e=>e+5}),colorInteractivePressed:({interactive:e})=>e?.background?.adjust({l:e=>e+5}),colorInteractiveText:({interactive:e})=>e?.foreground,colorInteractiveTextHovered:({interactive:e})=>e?.foreground?.adjust({l:e=>e+10}),colorInteractiveTextPressed:({interactive:e})=>e?.foreground?.adjust({l:e=>e+10}),colorInfo:({info:e})=>e?.background,colorInfoDisabled:({info:e})=>Ke(e),colorInfoSubdued:({info:e})=>Ye(e),colorInfoText:({info:e})=>Xe(e),colorInfoTextSubdued:({info:e})=>er(e),colorInfoTextEmphasized:({info:e})=>Ze(e),colorInfoBorder:({info:e})=>sr(e),colorInfoBorderEmphasized:({info:e})=>cr(e),colorInfoAccent:({info:e})=>e?.accent,colorSuccess:({success:e})=>e?.background,colorSuccessDisabled:({success:e})=>Ke(e),colorSuccessSubdued:({success:e})=>Ye(e),colorSuccessText:({success:e})=>Xe(e),colorSuccessTextSubdued:({success:e})=>er(e),colorSuccessTextEmphasized:({success:e})=>Ze(e),colorSuccessBorder:({success:e})=>sr(e),colorSuccessBorderEmphasized:({success:e})=>cr(e),colorSuccessAccent:({success:e})=>e?.accent,colorWarning:({warning:e})=>e?.background,colorWarningDisabled:({warning:e})=>Ke(e),colorWarningSubdued:({warning:e})=>Ye(e),colorWarningText:({warning:e})=>Xe(e),colorWarningTextSubdued:({warning:e})=>er(e),colorWarningTextEmphasized:({warning:e})=>Ze(e),colorWarningBorder:({warning:e})=>sr(e),colorWarningBorderEmphasized:({warning:e})=>cr(e),colorWarningAccent:({warning:e})=>e?.accent,colorCritical:({critical:e})=>e?.background,colorCriticalDisabled:({critical:e})=>
1Ke(e),colorCriticalSubdued:({critical:e})=>Ye(e),colorCriticalText:({critical:e})=>Xe(e),colorCriticalTextSubdued:({critical:e})=>er(e),colorCriticalTextEmphasized:({critical:e})=>Ze(e),colorCriticalBorder:({critical:e})=>sr(e),colorCriticalBorderEmphasized:({critical:e})=>cr(e),colorCriticalAccent:({critical:e})=>e?.accent},pr={typographySizeXSmall:({base:e,ratio:r})=>e?Ue(-1,e,r):void 0,typographySizeSmall:({base:e,ratio:r})=>e?Ue(-.5,e,r):void 0,typographySizeDefault:({base:e,ratio:r})=>e?Ue(0,e,r):void 0,typographySizeMedium:({base:e,ratio:r})=>e?Ue(.5,e,r):void 0,typographySizeLarge:({base:e,ratio:r})=>e?Ue(1,e,r):void 0,typographySizeXLarge:({base:e,ratio:r})=>e?Ue(2,e,r):void 0,typographySizeXXLarge:({base:e,ratio:r})=>e?Ue(3,e,r):void 0},gr={xsmall:"var(--x-pp-typography-size-xsmall)",small:"var(--x-pp-typography-size-small)",base:"var(--x-pp-typography-size-default)",medium:"var(--x-pp-typography-size-medium)",large:"var(--x-pp-typography-size-large)",xlarge:"var(--x-pp-typography-size-xlarge)",xxlarge:"var(--x-pp-typography-size-xxlarge)"},hr={none:"none",title:"capitalize",upper:"uppercase",lower:"lowercase"},mr={primary:"var(--x-pp-typography-primary-fonts)",secondary:"var(--x-pp-typography-secondary-fonts)"},br={base:"normal",loose:"0.125em",xloose:"0.16em"},yr={base:"1.3",large:"1.5"},vr={base:"var(--x-pp-typography-primary-weight-base)",bold:"var(--x-pp-typography-primary-weight-bold)"},fr={base:"var(--x-pp-typography-secondary-weight-base)",bold:"var(--x-pp-typography-secondary-weight-bold)"},Sr=1.225,kr={spacingTight4x:({base:e})=>e?Ue(-5,e,Sr):void 0,spacingTight3x:({base:e})=>e?Ue(-4,e,Sr):void 0,spacingTight2x:({base:e})=>e?Ue(-3,e,Sr):void 0,spacingTight1x:({base:e})=>e?Ue(-2,e,Sr):void 0,spacingTight:({base:e})=>e?Ue(-1,e,Sr):void 0,spacingBase:({base:e})=>e?Ue(0,e,Sr):void 0,spacingLoose:({base:e})=>e?Ue(1,e,Sr):void 0,spacingLoose1x:({base:e})=>e?Ue(2,e,Sr):void 0,spacingLoose2x:({base:e})=>e?Ue(3,e,Sr):void 0,spacingLoose3x:({base:e})=>e?Ue(4,e,Sr):void 0,spacingLoose4x:({base:e})=>e?Ue(5,e,Sr):void 0},Br={none:"var(--x-pp-border-radius-none)",base:"var(--x-pp-border-radius-base)"},xr={...Br,tight:"var(--x-pp-border-radius-tight)",fullyRounded:"var(--x-pp-border-radius-fully-rounded)"},wr={full:"var(--x-pp-border-full)",blockEnd:"var(--x-pp-border-block-end)",none:"var(--x-pp-border-none)"},Tr={base:"var(--x-pp-spacing-base)",tight:"var(--x-pp-spacing-tight4x)",none:"0"},Ir={base:"var(--x-pp-spacing-tight)",tight:"var(--x-pp-spacing-tight1x)",none:"0"},Pr={base:"var(--x-pp-spacing-loose1x)",tight:"var(--x-pp-spacing-base)",none:"0"},Er={base:"var(--x-pp-spacing-base)",tight:"var(--x-pp-spacing-tight4x)",none:"0"},Lr={base:"var(--x-pp-spacing-tight1x)",loose:"var(--x-pp-spacing-loose2x)"},Cr={none:"0",tight4x:"var(--x-pp-spacing-tight4x)",tight3x:"var(--x-pp-spacing-tight3x)",tight2x:"var(--x-pp-spacing-tight2x)",tight1x:"var(--x-pp-spacing-tight1x)",tight:"var(--x-pp-spacing-tight)",base:"var(--x-pp-spacing-base)",loose:"var(--x-pp-spacing-loose)",loose1x:"var(--x-pp-spacing-loose1x)",loose2x:"var(--x-pp-spacing-loose2x)",loose3x:"var(--x-pp-spacing-loose3x)",loose4x:"var(--x-pp-spacing-loose4x)"},zr={none:"0",fast:"var(--x-pp-duration-fast)",base:"var(--x-pp-duration-base)",slow:"var(--x-pp-duration-slow)",slower:"var(--x-pp-duration-slower)",slowest:"var(--x-pp-duration-slowest)"},Mr=18/14,_r=22/14,Rr=18/14,Nr=10/14,Ar=18/14;function Fr({global:e,buyerJourney:r,colors:n,typographyScale:o,typographyPrimary:t,typographySecondary:a,controls:i,textFields:s,select:c,optionList:l,checkbox:d,moneyLines:u,moneySummary:p,reviewBlock:g,primaryButton:h,secondaryButton:m,tag:b,banner:y,thumbnail:v,link:f,typographyStyle1:S,typographyStyle2:k,typographyStyle3:B,typographyStyle4:x,typographyStyle5:w,typographyStyle6:T,typographyStyle7:I,typographyStyle8:P,typographyStyle9:E}){const L=$r(hr)(e.typographyLetterCase),C=$r(yr)(e.typographyLineSizeDefault),z=$r(yr)(e.typographyLineSizeLarge),M=$r(br)(e.typographyKerning),_=$r(xr)(e.borderRadius),R=$r(Br)(i.borderRadius),N=$r(xr)(l.borderRadius),A=$r(xr)(d.borderRadius),F=$r(xr)(g.borderRadius),[D,W,j]=[s.border,c.border,d.border].map($r(wr)),$=t.fonts??void 0,q=t.weightBase??void 0,O=t.weightBold??void 0,H=a.fonts??void 0,G=a.weightBase??void 0,J=a.weightBold??void 0,U=$r(Tr)(l.gap),V=$r(Ir)(u.gap),Q=$r(Pr)(u.gap),Y=$r(Lr)(r.gap),K=$r(Er)(g.gap),X=$r(wr)(g.border),[Z,ee,re,ne,oe,te,ae,ie,se,ce,le,de,ue,pe,ge,he,me,be,ye,ve,fe,Se,ke,Be,xe,we,Te,Ie,Pe,Ee,Le,Ce,ze,Me,_e,Re,Ne,Ae,Fe,De,We,je,$e,qe,Oe,He,Ge,Je,Ue,Ve,Qe,Ye,Ke,Xe]=[S,k,B,x,w,T,I,P,E].map(e=>{return[$r(gr)(e.size),$r(hr)(e.letterCase),$r(mr)(e.fonts),e.weight?(r=e.fonts?e.fonts:"secondary",n=e.weight,"primary"===r?vr[n]:fr[n]):void 0,$r(yr)(e.lineSize),$r(br)(e.kerning)];var r,n}).reduce((e,r)=>[...e,...r],[]),Ze=$r(Cr)(h.blockPadding),er=$r(Cr)(h.inlinePadding),rr=$r(Cr)(m.blockPadding),nr=$r(Cr)(m.inlinePadding),or=$r(Cr)(u.blockPadding),tr=$r(Cr)(u.inlinePadding),ar=$r(Cr)(p.blockPadding),sr=$r(Cr)(p.inlinePadding),cr=$r(Cr)(l.blockPadding),lr=$r(Cr)(l.inlinePadding),dr=$r(xr)(b.borderRadius),ur=o.base?`${Math.floor(parseFloat(o.base.toString())*Mr)}px`:void 0,pr=o.base?`${Math.floor(parseFloat(o.base.toString())*_r)}px`:void 0,Sr=o.base?`${Math.floor(parseFloat(o.base.toString())*Rr)}px`:void 0,kr=$r(wr)(y.border),Fr=$r(xr)(y.borderRadius),qr=o.base?`${Math.floor(parseFloat(o.base.toString())*Nr)}px`:void 0,Or=o.base?`${o?.base?.toString()}px`:void 0,Hr=o.base?`${Math.floor(parseFloat(o.base.toString())*Ar)}px`:void 0,Gr=v.aspectRatio?`${v.aspectRatio}`:void 0,Jr=$r(zr)(f.transitionDuration),Ur={...Dr(ir(n)),...Wr(o),...jr(o),typographyPrimaryFonts:$,typographyPrimaryWeightBase:q,typographyPrimaryWeightBold:O,typographySecondaryFonts:H,typographySecondaryWeightBase:G,typographySecondaryWeightBold:J,globalTypographyLetterCase:L,globalTypographyLineSizeDefault:C,globalTypographyLineSizeLarge:z,globalTypographyKerning:M,globalBorderRadius:_,controlBorderRadius:R,checkboxBorder:j,checkboxBorderRadius:A,textFieldBorder:D,selectBorder:W,optionListBorderRadius:N,optionListBlockGap:U,reviewBlockBorderRadius:F,reviewBlockBlockGap:K,reviewBlockBorder:X,moneyLinesBlockGap:V,moneyLinesSeparatorBlockGap:Q,buyerJourneyInlineGap:Y,style1TypographySize:Z,style1TypographyCase:ee,style1TypographyFonts:re,style1TypographyWeight:ne,style1TypographyLineSize:oe,style1TypographyKerning:te,style2TypographySize:ae,style2TypographyCase:ie,style2TypographyFonts:se,style2TypographyWeight:ce,style2TypographyLineSize:le,style2TypographyKerning:de,style3TypographySize:ue,style3TypographyCase:pe,style3TypographyFonts:ge,style3TypographyWeight:he,style3TypographyLineSize:me,style3TypographyKerning:be,style4TypographySize:ye,style4TypographyCase:ve,style4TypographyFonts:fe,style4TypographyWeight:Se,style4TypographyLineSize:ke,style4TypographyKerning:Be,style5TypographySize:
1xe,style5TypographyCase:we,style5TypographyFonts:Te,style5TypographyWeight:Ie,style5TypographyLineSize:Pe,style5TypographyKerning:Ee,style6TypographySize:Le,style6TypographyCase:Ce,style6TypographyFonts:ze,style6TypographyWeight:Me,style6TypographyLineSize:_e,style6TypographyKerning:Re,style7TypographySize:Ne,style7TypographyCase:Ae,style7TypographyFonts:Fe,style7TypographyWeight:De,style7TypographyLineSize:We,style7TypographyKerning:je,style8TypographySize:$e,style8TypographyCase:qe,style8TypographyFonts:Oe,style8TypographyWeight:He,style8TypographyLineSize:Ge,style8TypographyKerning:Je,style9TypographySize:Ue,style9TypographyCase:Ve,style9TypographyFonts:Qe,style9TypographyWeight:Ye,style9TypographyLineSize:Ke,style9TypographyKerning:Xe,primaryButtonBlockPadding:Ze,primaryButtonInlinePadding:er,secondaryButtonBlockPadding:rr,secondaryButtonInlinePadding:nr,moneyLinesBlockPadding:or,moneyLinesInlinePadding:tr,moneySummaryBlockPadding:ar,moneySummaryInlinePadding:sr,optionListBlockPadding:cr,optionListInlinePadding:lr,tagBorderRadius:dr,radioSizeBase:ur,radioSizeLarge:pr,thumbnailAspectRatio:Gr,linkTransitionDuration:Jr,checkboxSize:Sr,bannerBorder:kr,bannerBorderRadius:Fr,iconSizeSmall:qr,iconSizeDefault:Or,iconSizeLarge:Hr};for(const ir of Object.keys(Ur))null==Ur[ir]&&delete Ur[ir];return Ur}function Dr(e){const r={};for(const n of Object.keys(ur)){const o=ur[n]?.(e);null!=o&&(r[n]=$e(o))}return r}function Wr(e){const r={};for(const n of Object.keys(pr)){const o=pr[n]?.(e);null!=o&&(r[n]=o)}return r}function jr(e){const r={};for(const n of Object.keys(kr)){const o=kr[n]?.(e);null!=o&&(r[n]=o)}return r}function $r(e){return r=>r?e[r]:void 0}function qr(){const r=e(Ve);if(null==r)throw new ve("No theme found in context");return r}function Or(){const e=qr(),r=function(){const[,e]=s({});return c(()=>e(()=>({})),[])}(),n=a(e.configuration);n.current=e.configuration;const o=a();if(null==o.current){const r=new Set,t={};for(const o of Object.keys(e.configuration))Object.defineProperty(t,o,{enumerable:!0,get:()=>(r.add(o),n.current[o])});o.current={watchedKeys:r,reactiveConfiguration:t}}return i(()=>{const{current:t}=n;return n.current=e.configuration,[...o.current.watchedKeys].some(r=>t[r]!==e.configuration[r])&&r(),e.on("change",()=>{const{current:t}=n;n.current=e.configuration,[...o.current.watchedKeys].some(r=>t[r]!==e.configuration[r])&&r()})},[r,e]),o.current.reactiveConfiguration}const Hr=l(function({children:e}){const r=qr(),t=a(null),s=o(()=>Gr(r.customProperties),[r]);return i(()=>r.on("preview",e=>{const{current:r}=t;if(null==r)return;const n=Gr(e);for(const o of Object.keys(n))r.style.setProperty(o,n[o])}),[r]),n("div",{style:s,ref:t,children:e})});function Gr(e){const r={};for(const n of Object.keys(e))r[`--x-pp-${n.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()}`]=e[n];return r}const Jr=l(function(){const e=qr(),[r,t]=s(e.customProperties);i(()=>e.on("preview",e=>{t(r=>({...r,...e}))}),[e]);const a=o(()=>function(e){return function(e){const r=[];for(const n of Object.keys(e)){const o=[];for(const r of Object.keys(e[n])){const t=e[n][r];t&&o.push(`${r}: ${t} !important;`)}o.length>0&&r.push(`${n} {\n  ${o.join("\n  ")}\n}`)}return r.join("\n")}({[`.${Pe}`]:{color:e.colorPrimaryActionText,background:e.colorPrimaryAction},[`.${Pe}:hover`]:{background:e.colorPrimaryActionHovered},[`.${Pe}:active`]:{background:e.colorPrimaryActionPressed},[`.${Ee}`]:{color:e.colorCanvasText,"border-color":e.colorCanvasBorder,"background-color":e.colorCanvas},[`.${Ee} .${Me}`]:{"border-color":e.colorCanvasBorder},[`.${Ee} .${_e}`]:{color:e.colorCanvasTextSubdued},[`.${Ee} .${Re}`]:{color:e.colorCanvasTextEmphasized},[`.${Le}`]:{color:e.colorSurfacePrimaryText,"border-color":e.colorSurfacePrimaryBorder,"background-color":e.colorSurfacePrimary},[`.${Le} .${Me}`]:{"border-color":e.colorSurfacePrimaryBorder},[`.${Le} .${_e}`]:{color:e.colorSurfacePrimaryTextSubdued},[`.${Le} .${Re}`]:{color:e.colorSurfacePrimaryTextEmphasized},[`.${Le} .${Ne}`]:{color:e.colorSurfacePrimaryAccent},[`.${Ce}`]:{color:e.colorSurfaceSecondaryText,"border-color":e.colorSurfaceSecondaryBorder,"background-color":e.colorSurfaceSecondary},[`.${Ce} .${Me}`]:{"border-color":e.colorSurfaceSecondaryBorder},[`.${Ce} .${_e}`]:{color:e.colorSurfaceSecondaryTextSubdued},[`.${Ce} .${Re}`]:{color:e.colorSurfaceSecondaryTextEmphasized},[`.${Ce} .${Ne}`]:{color:e.colorSurfaceSecondaryAccent},[`.${ze}`]:{color:e.colorSurfaceTertiaryText,"border-color":e.colorSurfaceTertiaryBorder,"background-color":e.colorSurfaceTertiary},[`.${ze} .${Me}`]:{"border-color":e.colorSurfaceTertiaryBorder},[`.${ze} .${_e}`]:{color:e.colorSurfaceTertiaryTextSubdued},[`.${ze} .${Re}`]:{color:e.colorSurfaceTertiaryTextEmphasized},[`.${ze} .${Ne}`]:{color:e.colorSurfaceTertiaryAccent}})}(r),[r]);return n("style",{dangerouslySetInnerHTML:{__html:a}})});function Ur({children:e}){const{typographyPrimary:r,typographySecondary:o}=Or();return i(()=>{const e=[r,o].map(e=>[{fonts:e.fonts,source:e.sourceBase,weight:e.weightBase},{fonts:e.fonts,source:e.sourceBold,weight:e.weightBold}]).reduce((e,r)=>e.concat(r),[]).filter(e=>void 0!==e.fonts&&void 0!==e.source).map(({fonts:e,source:r,weight:n})=>new FontFace(e,r,{weight:n}));!async function(){await Promise.all(e).then(e=>
1{e.forEach(e=>{document.fonts.add(e)})})}()},[r,o]),n(d,{children:e})}function Vr({children:e,condition:r}){return n(r?Ur:d,{children:e})}function Qr({children:e,theme:r,shouldLoadFonts:t}){const a=o(()=>"undefined"!=typeof CSS&&CSS.supports("color","var(--test)"),[]);return n(Ve.Provider,{value:r,children:n(Vr,{condition:Boolean(t),children:a?n(Hr,{children:n(Ae,{children:e})}):n(d,{children:[n(Jr,{}),n(Ae,{children:e})]})})})}function Yr(e){return"partially_processed"===e.status&&e.errors.some(e=>"payment_authentication_required"===e.code)}function Kr(e){return"partially_processed"===e.status&&e.errors.some(e=>"payment_processing"===e.code)}async function Xr(e){await u(function(e){return e<=1?0:e<=3?500:500*(e-3)}(e))}class Zr extends Error{constructor(){super(...arguments),this.name="PostPurchaseError"}}class en extends Error{constructor(){super(...arguments),this.name="InitializePostPurchaseIframeError",this.message="Post Purchase tracking iframe failed to initialize"}}class rn extends Error{constructor(){super(...arguments),this.name="PayPalFraudnetCollectError"}}
1class nn extends Error{constructor(e){super("Post Purchase tracking iframe failed to emit a tracking event",{cause:e}),this.name="EmitPostPurchaseTrackingEventError"}}const on={errors:[{code:"server_error",message:"The server encountered an unknown issue while processing the request."}],status:"unprocessed"};class tn{constructor(e,r,n,o,t){this.changesetsUrl=e,this.observability=r,this.receiptToken=n,this.sessionToken=o,this.developmentMode=t,this.calculateChangeset=this.calculateChangeset.bind(this),this.applyChangeset=this.applyChangeset.bind(this),this.appliedChangeset=this.appliedChangeset.bind(this),this.sendChangesetsRequest=this.sendChangesetsRequest.bind(this)}async calculateChangeset(e){const r="string"==typeof e?{changes:e}:e;return this.sendChangesetsRequest("calculate.json","calculateChangeset",r)}async applyChangeset(e,r){const n={changes:e,options:r};return this.sendChangesetsRequest("apply.json","applyChangeset",n)}async appliedChangeset(e){const r={changes:e};return this.sendChangesetsRequest("applied.json","appliedChangeset",r)}async sendChangesetsRequest(e,r,n){try{this.observability.leaveErrorBreadcrumb(`PostPurchase::${String(r)}`);const t=`${this.changesetsUrl}/${e}`,a={Accept:"application/json","Content-Type":"application/json","X-Shopify-Receipt-Token":this.receiptToken,"X-Shopify-Checkout-Session-Token":this.sessionToken};this.developmentMode&&(a["X-Shopify-Post-Purchase-Development-Mode"]="1");const i=await fetch(t,{method:"POST",body:JSON.stringify(n),headers:a,credentials:"omit"});if(404===i.status||502===i.status)return on;if(421===i.status||503===i.status){const e=i.headers.get("content-type");if(!e?.includes("application/json")){const n=i.headers.get("x-request-id");return this.observability.counter({name:"PostPurchase_unactionable_infra_error",value:1,attributes:{action:String(r),status:i.status,hasRequestId:null!=n}}),this.observability.log("PostPurchase::UnactionableInfraError",`Unactionable infra status ${i.status} for request id '${n}'`,{action:String(r),statusCode:i.status,requestId:n??void 0,contentType:e??void 0}),on}}if(!i.headers.get("x-request-id")&&403===i.status)return this.observability.log("PostPurchase::ExternalInterception",`Changeset request intercepted externally with status ${i.status}`,{action:String(r),statusCode:i.status,contentType:i.headers.get("content-type")??void 0}),on;if(429===i.status){const e=i.headers.get("x-request-id");return this.observability.log("PostPurchase::RateLimited",`Rate limited with status 429 for request id '${e}'`,{action:String(r),requestId:e??void 0}),{errors:[{code:"server_error",message:"The server responded with status 429, too many requests"}],status:"unprocessed"}}const s=i.headers.get("content-type");if(!s?.includes("application/json")){const e=i.headers.get("x-request-id"),n=await i.text(),o={};for(const[r,t]of Object.entries(a))o[r]=t.length;return this.observability.log("PostPurchase::InvalidContentType",`Unexpected content type '${s}' for request id '${e}'`,{action:String(r),statusCode:i.status,contentType:s??void 0,responseBody:n.substring(0,300),headerLengths:o}),this.notifyAndThrowGenericError(new Zr(`Unexpected content type '${s}' for request id '${e}' with status ${i.status}`),r)}const c=await i.text();try{return JSON.parse(c)}catch(o){const e=i.headers.get("x-request-id"),n=o instanceof Error?o.message:"No error.message",t=c.length>500?c.substring(0,300):c.substring(0,500),a=c.length>500?c.substring(c.length-200):"";this.observability.log("PostPurchase::JsonParseError",`JSON parse failed for request id '${e}'`,{action:String(r),status:i.status,bodyLength:c.length,bodyPreview:t,bodyTail:a,errorMessage:n});const s=200===i.status||i.status<500&&function(e){return!!/^(?!.*Chrome\/).*Safari\//.test(navigator.userAgent)&&e instanceof SyntaxError&&"JSON Parse error: Unexpected EOF"===e.message}(o)?"PostPurchase::ClientJsonParseError":`PostPurchase::Exception::${String(r)}`;return this.observability.error(new Zr(`Unexpected error parsing json response for request id '${e}'; error: ${n}`),{errorClass:s,severity:"error",metadata:{response:{action:String(r),status:i.status}}}),on}}catch(o){return this.notifyAndThrowGenericError(o,r)}}notifyAndThrowGenericError(e,r){return this.notifyError(e,r),on}notifyError(e,r){this.observability.error(e,{errorClass:`PostPurchase::Exception::${String(r)}`,severity:"error"})}}function an(){return te().replace(/-/g,"").slice(0,32)}const sn="checkoutsCompleted";function cn(e,r){try{sessionStorage.setItem(sn,e)}catch(n){n instanceof DOMException&&"SecurityError"===n.name||function(e){try{const r={};for(const e in sessionStorage)if(sessionStorage.hasOwnProperty(e)){const n=sessionStorage.getItem(e);r[e]={size:new Blob([n??""]).size}}e.leaveErrorBreadcrumb("sessionStorage inventory",r)}catch{}}(r)}}function ln(e,r){const[n,o]=s(null),[t,c]=s("initial"),l=a(""),{observability:d}=R(),u=a(0),m=a(null),b=a(!1);return p(()=>{let r=null;if("initial"===t&&e?.analyticsIframeURL&&e.postPurchaseAdditionalTrackingScript){const{analyticsIframeURL:n}=e;le(n,d),u.current=Date.now(),r=de({id:`merchant-script-${te()}`,url:n,privileges:["allow-scripts","allow-forms"],title:document.title??void 0}),m.current=r,d.leaveErrorBreadcrumb("Post-purchase tracking iframe: createSandboxedIframe called.");const t=g(h(r),{callable:["ping","initializeIFrame","emitEvent"]});t.expose({mirrorCookie:dn}),o(t)}return()=>{n?.terminate?.(),r?.remove(),m.current=null,c("initial")}},[]),i(()=>{(async()=>
1{if("initial"===t&&n&&e?.trackingData&&e.postPurchaseAdditionalTrackingScript)try{c("initializing"),d.leaveErrorBreadcrumb("Post-purchase tracking iframe: polling iframe");const r=await async function(e,r){for(let n=0;n<pn/un;n++){const o=e.call.ping(),t=new Promise(e=>{setTimeout(()=>e(!1),un)}),a=await Promise.race([o,t]);if(a)return r.counter({name:"PostPurchase_tracking_iframe_number_of_polls",value:n+1}),a}return!1}(n,d);if(d.leaveErrorBreadcrumb("Post-purchase tracking iframe: polling iframe completed",{isOk:r}),!r)return void d.counter({name:"PostPurchase_tracking_iframe_timeout",value:1});d.histogram({name:"PostPurchase_tracking_iframe_time_until_ok",value:Date.now()-u.current}),l.current=JSON.stringify(e.trackingData.order),m.current?.addEventListener("load",()=>{b.current=!0},{once:!0}),await async function(e,r,n,o){if(!n.order)return;const t=location.href,a=function(e,r){if(!e)return!1;let n,o;try{n=sessionStorage.getItem(sn)}catch{return!1}if(!n)return cn(JSON.stringify([e]),r),!1;try{o=JSON.parse(n)}catch{return cn(JSON.stringify([e]),r),!1}return Array.isArray(o)?!!o.includes(e)||(o.push(e),cn(JSON.stringify(o),r),!1):(cn(JSON.stringify([e]),r),!1)}(n.order.checkoutToken,o);await e.call.initializeIFrame(r,{referrer:document.referrer,cookie:document.cookie,title:document.title,trackingData:n},t,a)}(n,e.postPurchaseAdditionalTrackingScript,e.trackingData,d),c("initialized")}catch(r){c("failed"),(r instanceof Error||r instanceof en)&&d.error(r)}})()},[e,d,n,t]),i(()=>{"initialized"===t&&n&&r?.(e=>{if(!e||b.current)return;const r=JSON.stringify(e.order);l.current!==r&&(l.current=r,n.call.emitEvent("CheckoutAmended",e).then(e=>{"not_initialized"===e&&(b.current=!0)}).catch(e=>{d.error(new nn(e))}))})},[r,n,t,d]),n}function dn(e){document.cookie=e}const un=500,pn=15e3,gn=W(({checkout:e,client:r,graphql:{coreGraphql:n},observability:o,shop:t},{lastChangeTimestamp:a})=>{const i=r.unstable_getSerialization("sessionToken"),s=m(()=>e.latestReceipt.value?.id),c=m(()=>!t.postPurchase.additionalTrackingScript||"processed"!==e.latestReceipt.value?.status||!i),l=n.query(ae,{variables:()=>({input:{forRender:{receiptId:s.value,sessionToken:i}}}),skip:()=>c.value,cache:!1}),d=m(()=>function(e){if(!e||!e.postPurchaseData)return null;const r=e.postPurchaseData;return"PostPurchaseDataSuccess"===r.__typename&&r.trackingData?JSON.parse(r.trackingData):null}(l.data.value??void 0));b(()=>{c.value||o.counter({name:"PostPurchase_page_loading_analytics_sandbox",value:1})});let u=a.peek();return b(()=>{const e=a.value;c.value||e===u||(u=e,l.refetch())}),{emittableTrackingData:m(()=>c.value||l.loading.value||l.error.value?null:d.value),trackingData:d}});function hn({lastChangeTimestamp:e}){const{shop:r,url:n}=R(),o=y(e),{emittableTrackingData:t,trackingData:a}=N(gn,{lastChangeTimestamp:o});return ln({trackingData:a.value,analyticsIframeURL:n.sandboxAnalytics(),postPurchaseAdditionalTrackingScript:r.postPurchase.additionalTrackingScript},e=>{if(t.value)return e(t.value)}),null}function mn({checkoutSessionIdentifier:e,shopId:r,paymentGatewaySessionId:o,fraudnetMultioffersEnabled:t}){return n(d,{children:[n("script",{type:"application/json",fncls:"fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99",dangerouslySetInnerHTML:{__html:JSON.stringify({f:t?o:e,s:t?"shopify_checkout_postPurchase":`shop-${r}`})}}),n("script",{src:t?"https://c.paypal.com/da/r/fbts.js":"https://c.paypal.com/da/r/fb.js"})]})}function bn({children:e,onHeaderClick:r}){const{main:o}=j(),{i18n:t}=R();return n($,{background:"base",className:A({colorScheme:o.colorScheme,colorLayer:"base"}),children:[n(ue,{children:t.translate("post_purchase.title")}),n(yn,{onClick:r}),n("div",{className:"_1gdkV",children:e}),n(vn,{})]})}function yn({onClick:e}){const{checkout:r,i18n:o}=R(),t=r.latestReceipt.value,a="processed"===t?.status?t.orderIdentity.buyerIdentifier:null;return n(d,{children:[n("header",{children:n($,{inlineAlignment:"center",children:n($,{inlineSize:"100%",maxInlineSize:"@media (inline-size >= medium) 1100px, 560px",padding:"@media (inline-size >= medium) none large-500, none",children:n($,{padding:"@media (inline-size >= medium) small-200 large-500, small-200 base small-400 base",children:n(q,{level:1,children:n("div",{className:"svk3O",children:n(O,{})})})})})})}),n($,{inlineAlignment:"center",children:n($,{inlineSize:"100%",maxInlineSize:"@media (inline-size >= medium) 1176px, 560px",padding:"@media (inline-size >= medium) none large-500, none",children:n($,{padding:"@media (inline-size >= medium) none large-500 large-200 large-500, none base base base'",children:n(H,{gap:"base",direction:"inline",alignItems:"start",accessibilityRole:"header",children:[n(G,{type:"check-circle",tone:"accent",size:"large"}
1),n($,{children:n(H,{alignItems:"start",gap:"small-400",children:[a&&o.translate("order_summary.confirmation_number_label",{confirmation_number:`${a}`}),n(q,{level:2,children:o.translate("post_purchase.escape_confirmation")}),n(J,{onClick:e,children:o.translate("post_purchase.escape_action")})]})})]})})})})]})}function vn(){return n($,{accessibilityRole:"footer",inlineAlignment:"center",padding:"large-400",children:n($,{inlineSize:"100%",maxInlineSize:"@media (inline-size >= small) 560px, (inline-size >= medium) 946px, none",children:n($,{padding:"base none",borderWidth:"base none none none",children:n(U,{})})})})}function fn(e,r){const[n,o]=s({receiver:e,id:r.id,version:r.version,value:r});let t=n.value;return n.receiver===e&&n.id===r.id||(t=e.attached.get(r),o({receiver:e,id:r.id,version:r.version,value:t})),v(t),i(()=>{let n=!1;const t=()=>{n||o(n=>{const{id:o,version:t,receiver:a}=n,{id:i}=r;if(a!==e||o!==i)return n;const s=e.attached.get(r),c=null==s?void 0:s.version;return t===c?n:{receiver:e,value:s,id:i,version:c}})},a=e.attached.subscribe(r,t);return t(),()=>{n=!0,a()}},[e,r]),t}const Sn=l(function({controller:e,receiver:r}){const{root:o}=r.attached,{children:t}=fn(r,o),{renderComponent:a,renderText:i}=e.renderer;return n(d,{children:t.map(n=>{switch(n.kind){case S:return a({parent:o,component:n,receiver:r,controller:e,key:n.id});case f:return i({parent:o,text:n,receiver:r,key:n.id});default:return null}})})}),kn={},Bn=l(function({receiver:e,component:r,controller:t}){const a=t.get(r.type),i=fn(e,r),s=o(()=>{const o=null==i?void 0:i.props;if(!o)return kn;const a={};for(const i of Object.keys(o)){const s=o[i];a[i]=k(s)?n(xn,{parent:r,receiver:e,fragment:s,controller:t}):s}return a},[e,t,null==i?void 0:i.props,r.version]);if(null==i)return null;const{children:c}=i;return 0===c.length?n(a,{...s}):n(a,{...s,children:wn(r,c,e,t)})}),xn=l(function({parent:e,receiver:r,fragment:o,controller:t}){var a;const{children:i}=null!==(a=fn(r,o))&&void 0!==a?a:{};return i?n(d,{children:wn(e,i,r,t)}):null});function wn(e,r,n,o){const{renderComponent:t,renderText:a}=o.renderer;return[...r].map(r=>{switch(r.kind){case S:return t({parent:e,component:r,receiver:n,controller:o,key:r.id});case f:return a({parent:e,text:r,receiver:n,key:r.id});default:return null}})}const Tn=l(function({text:e,receiver:r}){const o=fn(r,e);return o?n(d,{children:o.text}):null});function In(e){let r=0;return()=>`${e}${r++}`}function Pn(e,r){const n=a(e);return n.current=e??n.current??r(),n.current}const En={Bookend:"Pt5C9",alignmentLeading:"AHnvD",alignmentCenter:"_0kHdH",alignmentTrailing:"Mj39f",alignmentBaseline:"mHRdF",spacingXtight:"bgPkT",spacingTight:"QGqKQ",spacingLoose:"C0fD2",spacingXloose:"z2I8f",trailing:"dg84n",leading:"uLkzw"};function Ln({children:e,spacing:r,alignment:o,leading:a,trailing:i}){return n("div",{className:t(En.Bookend,a&&En.leading,i&&En.trailing,r&&En[B("spacing",r)],o&&En[B("alignment",o)]),children:e})}const Cn={style1:"S6mQH",placeholderStyle1:"Qxy5o",style2:"Lebua",placeholderStyle2:"dJkfR",style3:"_9L1yu",placeholderStyle3:"_8EqjA",style4:"_7cFDn",placeholderStyle4:"piSw3",style5:"q9HMK",placeholderStyle5:"DfCuC",style6:"zF1vV",placeholderStyle6:"LC3a5",style7:"kd33n",placeholderStyle7:"cGahq",style8:"JIXAj",placeholderStyle8:"YOogo",style9:"kgOOJ",placeholderStyle9:"rwvoZ"},zn={Heading:"J7FWc",h1:"EBR0w",h2:"OyUup",h3:"b3EhK",h4:"qPKsd",h5:"Fv43w",h6:"TxTLq"};function Mn({id:e,children:r,role:o,level:a}){const{headingLevel1:i,headingLevel2:s,headingLevel3:c}=Or(),l=Se(),d=a??l??0,u="presentation"===o||null==l?"p":`h${l}`,p=t(zn.Heading,d?zn[B("h",d)]:void 0,d>=2&&Re,1===d&&i.typographyStyle&&Cn[i.typographyStyle],2===d&&s.typographyStyle&&Cn[s.typographyStyle],3===d&&c.typographyStyle&&Cn[c.typographyStyle]);return n(u,{id:e,tabIndex:e?-1:void 0,className:p,children:r})}const _n={Icon:"BMGnr",sizeDefault:"EwEn7",sizeSmall:"eT6oI",sizeLarge:"oDjiF",appearanceAccent:"oGW7E",appearanceInteractive:"eZ7zj",appearanceSubdued:"RYcxG",appearanceInfo:"_6qD2C",appearanceSuccess:"_65MYf",appearanceCritical:"WryPG",appearanceWarning:"wBGCW",Svg:"woymO",Img:"ecTdl",Placeholder:"z9u48"}
1,Rn={camera:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:n("path",{fillRule:"evenodd",d:"M8.87 3a.71.71 0 0 0-.605.337L6.353 6.469H1.412A1.4 1.4 0 0 0 0 7.856v11.793a1.4 1.4 0 0 0 1.412 1.387h21.176A1.4 1.4 0 0 0 24 19.65V7.856a1.4 1.4 0 0 0-1.412-1.387h-4.94l-1.913-3.132A.71.71 0 0 0 15.13 3zM12 18.088c2.826 0 5.118-2.252 5.118-5.03 0-2.777-2.292-5.029-5.118-5.029s-5.118 2.252-5.118 5.03 2.292 5.03 5.118 5.03m3.265-5.03c0 1.773-1.462 3.21-3.265 3.21s-3.265-1.437-3.265-3.21c0-1.771 1.462-3.208 3.265-3.208s3.265 1.437 3.265 3.209",clipRule:"evenodd"})}),cancelCircle:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...e,children:[n("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),n("path",{d:"M39 12 12 39m0-27 27 27",style:{stroke:"currentColor"}})]}),caretDown:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{d:"M0 5h20L10 15"})}),cart:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{d:"M17.178 13.088H5.453c-.454 0-.91-.364-.91-.818L3.727 1.818H0V0h4.544c.455 0 .91.364.91.818l.09 1.272h13.45c.274 0 .547.09.73.364.18.182.27.454.18.727l-1.817 9.18c-.09.455-.455.728-.91.728zM6.27 11.27h10.09l1.454-7.362H5.634l.637 7.362zm.092 7.715a1.817 1.817 0 1 0 .002-3.634 1.817 1.817 0 0 0-.002 3.634m9.18 0a1.816 1.816 0 1 0-.001-3.635 1.818 1.818 0 0 0 0 3.635z"})}),checkmark:e=>n("svg",{viewBox:"0 0 20 20",...e,children:n("path",{d:"M20 5.347 7.647 17.462 0 9.962l2.393-2.347 5.254 5.154L17.607 3z"})}),checkmarkCircle:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...e,children:[n("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),n("path",{strokeWidth:2,d:"m15 24.511 7.307 7.307L35.125 19",style:{stroke:"currentColor"}})]}),chevronDown:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:n("path",{d:"M12.6 3 14 4.4 8.4 10 7 11.4 5.6 10 0 4.4 1.4 3 7 8.6"})}),chevronUp:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:n("path",{d:"M1.4 10.4 0 9l7-7 7 7-1.4 1.4L7 4.8z"})}),chevronRight:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",...e,children:n("path",{d:"m2 1 1-1 4 4 1 1-1 1-4 4-1-1 4-4"})}),chevronLeft:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",...e,children:n("path",{d:"M8 1 7 0 3 4 2 5l1 1 4 4 1-1-4-4"})}),close:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:n("path",{d:"M15.1 2.3 13.7.9 8 6.6 2.3.9.9 2.3 6.6 8 .9 13.7l1.4 1.4L8 9.4l5.7 5.7 1.4-1.4L9.4 8"})}),critical:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:n("path",{d:"M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12m0-2c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m0-16a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0V7a1 1 0 0 1 1-1m-1.5 10.5c0-.828.666-1.5 1.5-1.5.828 0 1.5.666 1.5 1.5 0 .828-.666 1.5-1.5 1.5-.828 0-1.5-.666-1.5-1.5"})}),discount:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",...e,children:[n("path",{fillOpacity:.55,d:"M17.78 3.09A2 2 0 0 0 16 2h-5.165c-.535 0-1.046.214-1.422.593l-6.82 6.89q0 .003-.002.003a2.04 2.04 0 0 0-.5.874L.74 8.055a2 2 0 0 1 .712-2.737L9.823.425A2 2 0 0 1 11.35.22l4.99 1.337a2 2 0 0 1 1.44 1.533"}),n("path",{d:"M10.835 2H16a2 2 0 0 1 2 2v5.172c0 .53-.21 1.04-.586 1.414l-6.818 6.818a2 2 0 0 1-2.82.01l-5.166-5.1a2 2 0 0 1-.02-2.828q.003 0 .003-.002l6.82-6.89A2 2 0 0 1 10.835 2M13.5 8a1.5 1.5 0 1 0-.001-3.001A1.5 1.5 0 0 0 13.5 8"})]}),delivered:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{d:"m9.46 4.305-6.129 5.11c-.28.24-.467.516-.467.885v8.864c0 .46.479.835.937.835h2.863a.837.837 0 0 0 .835-.835l-.048-4.449c0-.229.186-.414.415-.414h4.168c.229 0 .417.185.417.414l.048 4.45c0 .46.375.835.834.835h2.986c.46 0 .835-.374.835-.834v-8.482c0-.367-.245-.894-.528-1.131l-6.09-5.248a.834.834 0 0 0-1.077 0zm10.243 3.391L11.179.489A1.66 1.66 0 0 0 9.999 0c-.446 0-.866.176-1.129.443L.294 7.696a.834.834 0 0 0 1.077 1.273L9.5 2.045a.83.83 0 0 1 .996-.002c1.837 1.374 8.133 6.927 8.133 6.927a.835.835 0 0 0 1.077-1.274z"})}),delivery:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{fillRule:"evenodd",d:"M7.267 2.688 11.922 0l1.813 3.14-4.656 2.687zM0 3.264h3.296L9 13.187a3.39 3.39 0 1 0 2.406 4.186l.508.884 7.775-4.502-1.003-1.731-6.038 3.497L4.454 1.264H0zm9.529 13.203a1.39 1.39 0 1 1-2.782 0 1.39 1.39 0 0 1 2.782 0m6.7-13.328L9.516 7.014l3.771 6.533L20 9.672z",clipRule:"evenodd"})}),disabled:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{fillRule:"evenodd",d:"M10 17.5a7.45 7.45 0 0 1-4.339-1.394L16.106 5.661A7.45 7.45 0 0 1 17.5 10c0 4.136-3.364 7.5-7.5 7.5m0-15c1.617 0 3.113.52 4.339 1.394L3.894 14.339A7.45 7.45 0 0 1 2.5 10c0-4.136 3.364-7.5 7.5-7.5M10 0C4.486 0 0 4.486 0 10s4.486 10 10 10 10-4.486 10-10S15.514 0 10 0",clipRule:"evenodd"})}),errorFill:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m-3.292-5.38L10 11.328l3.257 3.257 1.328-1.328L11.328 10l3.292-3.292-1.328-1.328L10 8.672 6.743 5.415 5.415 6.743 8.672 10 5.38 13.292z",clipRule:"evenodd"})}),info:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:n("path",{d:"M12 11h1v7h-2v-5a1 1 0 0 1 0-2zm0 13C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12m0-2c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10M10.5 7.5c0-.828.666-1.5 1.5-1.5.828 0 1.5.666 1.5 1.5 0 .828-.666 1.5-1.5 1.5-.828 0-1.5-.666-1.5-1.5"})}),lock:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:n("path",{d:"M12 6h-1V4c0-2.2-1.8-4-4-4S3 1.8 3 4v2H2c-.5 0-1 .5-1 1v6c0 .5.5 1 1 1h10c.5 0 1-.5 1-1V7c0-.5-.5-1-1-1M5 4c0-1.1.9-2 2-2s2 .9 2 2v2H5z"})}),mobile:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:n("path",{fillRule:"evenodd",d:"M5 2.99C5 1.34 6.342 0 8.003 0h7.994A3 3 0 0 1 19 2.99v18.02c0 1.65-1.342 2.99-3.003 2.99H8.003A3 3 0 0 1 5 21.01zM7 5c0-.552.456-1 .995-1h8.01c.55 0 .995.445.995 1v14c0 .552-.456 1-.995 1h-8.01A.995.995 0 0 1 7 19zm5 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}),questionFill:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:n("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8m.7 13H6.8v-2h1.9zm2.6-7.1c0 1.8-1.3 2.6-2.8 2.8l-.1 1.1H7.3L7 7.5l.1-.1c1.8-.1 2.6-.6 2.6-1.6 0-.8-.6-1.3-1.6-1.3-.9 0-1.6.4-2.3 1.1L4.7 4.5c.8-.9 1.9-1.6 3.4-1.6 1.9.1 3.2 1.2 3.2 3"})}),spinner:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e,children:n("path",{d:"M32 16c0 8.837-7.163 16-16 16S0 24.837 0 16 7.163 0 16 0v2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14z"})}),spinnerSmall:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{d:"M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0v2a8 8 0 1 0 8 8z"})}),success:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:n("path",{d:"M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12m0-2c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m3.784-13.198a.999.999 0 1 1 1.432 1.396l-5.85 6a1 1 0 0 1-1.432 0l-3.15-3.23a1 1 0 1 1 1.432-1.397l2.434 2.5 5.134-5.267z"})}),ship:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:[n("path",{d:"M5.156 17.75a2.75 2.75 0 1 0 0-5.5 2.75 2.75 0 0 0 0 5.5m9.969 0a2.75 2.75 0 1 0 0-5.5 2.75 2.75 0 0 0 0 5.5"}),n("path",{fillRule:"evenodd",d:"M0 14V3a1 1 0 0 1 1-1h7.756a1 1 0 0 1 1 1v1.469h.01V15h-.787q.006-.099.005-.199A3.75 3.75 0 1 0 1.49 15H1a1 1 0 0 1-1-1m10.656 1h.709a3.75 3.75 0 1 1 7.49 0H19a1 1 0 0 0 1-1v-3.853a1 1 0 0 0-.169-.556l-3.128-4.678a1 1 0 0 0-.83-.444h-5.217z",clipRule:"evenodd"})]}),warning:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:[n("path",{fillRule:"evenodd",d:"M9.167 12.407V6.469h1.667v5.938z",clipRule:"evenodd"}),n("path",{d:"M10 16.183a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"}),n("path",{fillRule:"evenodd",d:"M19.33 14.536 12.738 2.99C11.223.334 8.774.34 7.261 2.989L.67 14.536C-.842 17.19.291 19.334 3.2 19.334h13.6c2.909 0 4.042-2.148 2.53-4.798M8.761 4.08c.839-1.467 1.637-1.468 2.476 0l6.316 11.066c.86 1.506.49 2.209-1.
1036 2.209H3.483c-1.525 0-1.894-.701-1.038-2.209z",clipRule:"evenodd"})]}),warningCircle:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...e,children:[n("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),n("path",{strokeLinecap:"square",strokeWidth:2,d:"M25 11v19",style:{stroke:"currentColor"}}),n("path",{fillRule:"evenodd",d:"M25 39a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd",style:{fill:"currentColor"}})]}),warningFill:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{fillRule:"evenodd",d:"m12.738 3.06 6.592 11.968C20.842 17.774 19.71 20 16.8 20H3.2C.29 20-.842 17.778.67 15.028L7.262 3.061c1.513-2.745 3.962-2.75 5.476 0m-3.571 9.761V6.668h1.666v6.153zM10 16.734c.69 0 1.25-.58 1.25-1.295 0-.716-.56-1.296-1.25-1.296s-1.25.58-1.25 1.296c0 .715.56 1.295 1.25 1.295",clipRule:"evenodd"})}),giftFill:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",...e,children:n("g",{fillRule:"evenodd",children:[n("path",{fillOpacity:.55,fillRule:"nonzero",d:"M12.915 5q.084-.236.085-.5a1.5 1.5 0 0 0-3 0V11h6v2h-6v5H8v-5H2v-2h6V4.5a1.5 1.5 0 1 0-2.915.5h-2.05A3.5 3.5 0 0 1 9 2.05 3.5 3.5 0 0 1 14.965 5z"}),n("path",{d:"M16 13v2a3 3 0 0 1-3 3h-3v-5zm0-2h-6V5h6a2 2 0 1 1 0 4zM2 13h6v5H5a3 3 0 0 1-3-3zm0-2V9a2 2 0 1 1 0-4h6v6z"})]})})};function Nn({source:e,appearance:r,size:o,accessibilityLabel:a}){const i=t(_n.Icon,r&&_n[B("appearance",r)],r&&"accent"===r&&Ne,o&&_n[B("size",o)]);let s;return s="placeholder"===e?n("div",{className:_n.Placeholder}):n(Rn[e],{className:_n.Svg,focusable:"false","aria-hidden":"true",role:"presentation"}),n("span",{className:i,"aria-label":a,children:s})}const An={TextContainer:"WBViK",spacingNone:"xgQYA",spacingTight:"a67HM",spacingLoose:"A50FK",alignmentLeading:"Z00zw",alignmentCenter:"wNtvT",alignmentTrailing:"JBd0G"};function Fn({alignment:e,spacing:r,children:o}){const a=t(An.TextContainer,e&&An[B("alignment",e)],r&&An[B("spacing",r)]);return n("div",{className:a,children:o})}const Dn={padding:["paddingInlineStart","paddingInlineEnd","paddingBlockStart","paddingBlockEnd"],paddingInline:["paddingInlineStart","paddingInlineEnd"],paddingInlineStart:"paddingInlineStart",paddingInlineEnd:"paddingInlineEnd",paddingBlock:["paddingBlockStart","paddingBlockEnd"],paddingBlockStart:"paddingBlockStart",paddingBlockEnd:"paddingBlockEnd",background:"background",border:["borderInlineStart","borderInlineEnd","borderBlockStart","borderBlockEnd"],borderInline:["borderInlineStart","borderInlineEnd"],borderInlineStart:"borderInlineStart",borderInlineEnd:"borderInlineEnd",borderBlock:["borderBlockStart","borderBlockEnd"],borderBlockStart:"borderBlockStart",borderBlockEnd:"borderBlockEnd",borderWidth:["borderWidthInlineStart","borderWidthInlineEnd","borderWidthBlockStart","borderWidthBlockEnd"],borderWidthInline:["borderWidthInlineStart","borderWidthInlineEnd"],borderWidthInlineStart:"borderWidthInlineStart",borderWidthInlineEnd:"borderWidthInlineEnd",borderWidthBlock:["borderWidthBlockStart","borderWidthBlockEnd"],borderWidthBlockStart:"borderWidthBlockStart",borderWidthBlockEnd:"borderWidthBlockEnd",borderColor:["borderColorInlineStart","borderColorInlineEnd","borderColorBlockStart","borderColorBlockEnd"],borderRadius:["borderRadiusInlineStart","borderRadiusInlineEnd","borderRadiusBlockStart","borderRadiusBlockEnd"],borderRadiusInline:["borderRadiusInlineStart","borderRadiusInlineEnd"],borderRadiusInlineStart:"borderRadiusInlineStart",borderRadiusInlineEnd:"borderRadiusInlineEnd",borderRadiusBlock:["borderRadiusBlockStart","borderRadiusBlockEnd"],borderRadiusBlockStart:"borderRadiusBlockStart",borderRadiusBlockEnd:"borderRadiusBlockEnd",spacing:"spacing"};function Wn(e,r){return Object.entries(e).filter(([e,r])=>Dn[e]&&r).reduce((e,[n,o])=>{const t=Dn[n];return Array.isArray(t)?[...e,...t.map(e=>B(r?B(r,e):e,o))]:[...e,B(r?B(r,t):t,o)]},[])}function jn(e){return Object.assign({},...Object.entries(e).map(([e,r])=>{if(Array.isArray(r)){if(2===r.length){const[n,o]=r;return{[`${e}Block`]:n,[`${e}Inline`]:o}}if(4===r.length){const[n,o,t,a]=r;return{[`${e}BlockStart`]:n,[`${e}InlineEnd`]:o,[`${e}BlockEnd`]:t,[`${e}InlineStart`]:a}}}return{[e]:r}}))}const $n={paddingInlineStartTight4x:"_47zIR",paddingInlineStartTight1x:"fEqQ9",paddingInlineStartBase:"ii27j",paddingInlineStartLoose1x:"_1fK3S",paddingInlineStartLoose4x:"mUB1b",paddingInlineEndTight4x:"q9YYb",paddingInlineEndTight1x:"_1HJFC",paddingInlineEndBase:"oV4Z2",paddingInlineEndLoose1x:"uAMYP",paddingInlineEndLoose4x:"menNc",paddingBlockStartTight4x:"NFMUD",paddingBlockStartTight1x:"JNQAO",paddingBlockStartBase:"dWe54",paddingBlockStartLoose1x:"FsqcC",paddingBlockStartLoose4x:"foinD",paddingBlockEndTight4x:"rfp8Y",paddingBlockEndTight1x:"iOrF3",paddingBlockEndBase:"Y3mIT",paddingBlockEndLoose1x:"PQE0l",paddingBlockEndLoose4x:"eP0RQ",backgroundSurfacePrimary:"ZHBJy",backgroundSurfaceSecondary:"gohnJ",backgroundSurfaceTertiary:"r3Sce",borderInlineStartBase:"_9gRm7",borderInlineStartDotted:"_2aFJq",borderInlineEndBase:"_91j9L",borderInlineEndDotted:"aWdpf",borderBlockStartBase:"yZuyc",borderBlockStartDotted:"CQ6UX",borderBlockEndBase:"xBdlE",borderBlockEndDotted:"MISHF",borderWidthInlineStartBase:"b0ylU",borderWidthInlineStartThick:"cAZzk",borderWidthInlineEndBase:"LjBbN",borderWidthInlineEndThick:"czEIY",borderWidthBlockStartBase:"u6ieL",borderWidthBlockStartThick:"Q2Pcd",borderWidthBlockEndBase:"NUIuJ",borderWidthBlockEndThick:"cH20N",borderColorInlineStartBase:"xwvJT",borderColorInlineStartEmphasized:"NdQ5q",borderColorInlineEndBase:"S9nQ3",borderColorInlineEndEmphasized:"GkWv4",borderColorBlockStartBase:"ctr2e",borderColorBlockStartEmphasized:"VnGGl",borderColorBlockEndBase:"Pstdl",borderColorBlockEndEmphasized:"NXQcj",borderRadiusBlockStartTight:"tL3Qp",borderRadiusBlockStartBase:"nmLTV",borderRadiusInlineStartTight:"Umil9",borderRadiusInlineStartBase:"yUCBq",borderRadiusInlineEndTight:"uNuk8",borderRadiusInlineEndBase:"Ou9KA",borderRadiusBlockEndTight:"fc28B",borderRadiusBlockEndBase:"WIefK",aboveSmallPaddingInlineStartTight4x:"C7lzD",aboveSmallPaddingInlineStartTight1x:"B4qvI",aboveSmallPaddingInlineStartBase:"kw9sh",aboveSmallPaddingInlineStartLoose1x:"M1V6g",aboveSmallPaddingInlineStartLoose4x:"_7zlaM",aboveSmallPaddingInlineStartNone:"qqYT8",aboveSmallPaddingInlineEndTight4x:"mYPZ9",aboveSmallPaddingInlineEndTight1x:"HdQ9U",aboveSmallPaddingInlineEndBase:"xy8tg",aboveSmallPaddingInlineEndLoose1x:"zhe2S",aboveSmallPaddingInlineEndLoose4x:"nezfL",aboveSmallPaddingInlineEndNone:"tyNxx",aboveSmallPaddingBlockStartTight4x:"hngp5",aboveSmallPaddingBlockStartTight1x:"RZ4s7",aboveSmallPaddingBlockStartBase:"_5WUxN",aboveSmallPaddingBlockStartLoose1x:"rzF4T",aboveSmallPaddingBlockStartLoose4x:"_20Bvh",aboveSmallPaddingBlockStartNone:"Y5pQs",aboveSmallPaddingBlockEndTight4x:"t4kF6",aboveSmallPaddingBlockEndTight1x:"yOH8O",aboveSmallPaddingBlockEndBase:"pLQEz",aboveSmallPaddingBlockEndLoose1x:"_94rqG",aboveSmallPaddingBlockEndLoose4x:"Fughu",aboveSmallPaddingBlockEndNone:"S1ctf",aboveSmallBackgroun
1dSurfacePrimary:"eOuG5",aboveSmallBackgroundSurfaceSecondary:"GK4xe",aboveSmallBackgroundSurfaceTertiary:"w2psg",aboveSmallBackgroundTransparent:"EjiAg",aboveSmallBorderInlineStartBase:"kfWbx",aboveSmallBorderInlineStartDotted:"_2N5qr",aboveSmallBorderInlineStartNone:"_5Q7fi",aboveSmallBorderInlineEndBase:"tdUoq",aboveSmallBorderInlineEndDotted:"ggaPg",aboveSmallBorderInlineEndNone:"tfE80",aboveSmallBorderBlockStartBase:"GJSUI",aboveSmallBorderBlockStartDotted:"zwoP1",aboveSmallBorderBlockStartNone:"mTxb5",aboveSmallBorderBlockEndBase:"mpI9z",aboveSmallBorderBlockEndDotted:"HTywT",aboveSmallBorderBlockEndNone:"_9ulY8",aboveSmallBorderWidthInlineStartBase:"s8qMf",aboveSmallBorderWidthInlineStartThick:"_2CmEJ",aboveSmallBorderWidthInlineEndBase:"AboN6",aboveSmallBorderWidthInlineEndThick:"_49IGz",aboveSmallBorderWidthBlockStartBase:"fNZ1l",aboveSmallBorderWidthBlockStartThick:"M45Ob",aboveSmallBorderWidthBlockEndBase:"jp4c7",aboveSmallBorderWidthBlockEndThick:"xAA0R",aboveSmallBorderColorInlineStartBase:"fGY5f",aboveSmallBorderColorInlineStartEmphasized:"_31Id7",aboveSmallBorderColorInlineEndBase:"bx2qN",aboveSmallBorderColorInlineEndEmphasized:"goLU0",aboveSmallBorderColorBlockStartBase:"rrwTq",aboveSmallBorderColorBlockStartEmphasized:"XIoWB",aboveSmallBorderColorBlockEndBase:"_8KbGZ",aboveSmallBorderColorBlockEndEmphasized:"Ix69q",aboveSmallBorderRadiusBlockStartTight:"AOjX1",aboveSmallBorderRadiusBlockStartBase:"ewG2X",aboveSmallBorderRadiusBlockStartNone:"v7w4I",aboveSmallBorderRadiusInlineStartTight:"ujYhI",aboveSmallBorderRadiusInlineStartBase:"ADHOF",aboveSmallBorderRadiusInlineStartNone:"vHX6M",aboveSmallBorderRadiusInlineEndTight:"DDfrF",aboveSmallBorderRadiusInlineEndBase:"VoCpG",aboveSmallBorderRadiusInlineEndNone:"zUIvX",aboveSmallBorderRadiusBlockEndTight:"nrS8q",aboveSmallBorderRadiusBlockEndBase:"lqJd0",aboveSmallBorderRadiusBlockEndNone:"_91azi",aboveMediumPaddingInlineStartTight4x:"jL2aC",aboveMediumPaddingInlineStartTight1x:"tBmbv",aboveMediumPaddingInlineStartBase:"FK6vz",aboveMediumPaddingInlineStartLoose1x:"OOcxv",aboveMediumPaddingInlineStartLoose4x:"_1vJ1r",aboveMediumPaddingInlineStartNone:"K3lQt",aboveMediumPaddingInlineEndTight4x:"sX3hs",aboveMediumPaddingInlineEndTight1x:"uJ2FB",aboveMediumPaddingInlineEndBase:"J29re",aboveMediumPaddingInlineEndLoose1x:"uYzG0",aboveMediumPaddingInlineEndLoose4x:"unNTt",aboveMediumPaddingInlineEndNone:"_6OoQk",aboveMediumPaddingBlockStartTight4x:"QbmcA",aboveMediumPaddingBlockStartTight1x:"_1d436",aboveMediumPaddingBlockStartBase:"jpz96",aboveMediumPaddingBlockStartLoose1x:"nZWdv",aboveMediumPaddingBlockStartLoose4x:"DRAbK",aboveMediumPaddingBlockStartNone:"stEtS",aboveMediumPaddingBlockEndTight4x:"K8QJ6",aboveMediumPaddingBlockEndTight1x:"sn841",aboveMediumPaddingBlockEndBase:"KM5LL",aboveMediumPaddingBlockEndLoose1x:"GAkFo",aboveMediumPaddingBlockEndLoose4x:"y2TnV",aboveMediumPaddingBlockEndNone:"SYRpa",aboveMediumBackgroundSurfacePrimary:"_3fwPx",aboveMediumBackgroundSurfaceSecondary:"_2C2sx",aboveMediumBackgroundSurfaceTertiary:"rtbaJ",aboveMediumBackgroundTransparent:"ybFn0",aboveMediumBorderInlineStartBase:"Sa0EE",aboveMediumBorderInlineStartDotted:"jcIY2",aboveMediumBorderInlineStartNone:"D5uaS",aboveMediumBorderInlineEndBase:"n3T6g",aboveMediumBorderInlineEndDotted:"r3OSj",aboveMediumBorderInlineEndNone:"C6pla",aboveMediumBorderBlockStartBase:"o3tmc",aboveMediumBorderBlockStartDotted:"_1yxs5",aboveMediumBorderBlockStartNone:"_2c5K2",aboveMediumBorderBlockEndBase:"UJUYC",aboveMediumBorderBlockEndDotted:"_1Wlgi",aboveMediumBorderBlockEndNone:"_0xUxo",aboveMediumBorderWidthInlineStartBase:"F8sYl",aboveMediumBorderWidthInlineStartThick:"_5AA7L",aboveMediumBorderWidthInlineEndBase:"oxQ90",aboveMediumBorderWidthInlineEndThick:"_0Qd1M",aboveMediumBorderWidthBlockStartBase:"xJYUk",aboveMediumBorderWidthBlockStartThick:"TrEq6",aboveMediumBorderWidthBlockEndBase:"_0P8Q4",aboveMediumBorderWidthBlockEndThick:"mvGSG",aboveMediumBorderColorInlineStartBase:"EuTFm",aboveMediumBorderColorInlineStartEmphasized:"AeCtW",aboveMediumBorderColorInlineEndBase:"sipVW",aboveMediumBorderColorInlineEndEmphasized:"XGruh",aboveMediumBorderColorBlockStartBase:"hFd2M",aboveMediumBorderColorBlockStartEmphasized:"z8BTV",aboveMediumBorderColorBlockEndBase:"_2MGZK",aboveMediumBorderColorBlockEndEmphasized:"_1cOM9",aboveMediumBorderRadiusBlockStartTight:"eUSnk",aboveMediumBorderRadiusBlockStartBase:"cQL8O",aboveMediumBorderRadiusBlockStartNone:"EbLsC",aboveMediumBorderRadiusInlineStartTight:"kcnav",aboveMediumBorderRadiusInlineStartBase:"_4QhrI",aboveMediumBorderRadiusInlineStartNone:"ZZWpj",aboveMediumBorderRadiusInlineEndTight:"_2BOrb",aboveMediumBorderRadiusInlineEndBase:"_1ueKi",aboveMediumBorderRadiusInlineEndNone:"Fax9T",aboveMediumBorderRadiusBlockEndTight:"ydi6p",aboveMediumBorderRadiusBlockEndBase:"fp8IC",aboveMediumBorderRadiusBlockEndNone:"fsaBa",aboveLargePaddingInlineStartTight4x:"MkU19",aboveLargePaddingInlineStartTight1x:"_3tdr9",aboveLargePaddingInlineStartBase:"TpEsF",aboveLargePaddingInlineStartLoose1x:"yft63",aboveLargePaddingInlineStartLoose4x:"VmImD",aboveLargePaddingInlineStartNone:"NM2yV",aboveLargePaddingInlineEndTight4x:"_1g20z",aboveLargePaddingInlineEndTight1x:"WxBVR",aboveLargePaddingInlineEndBase:"LrIuq",aboveLargePaddingInlineEndLoose1x:"K1XLm",aboveLargePaddingInlineEndLoose4x:"_1bMw2",aboveLargePaddingInlineEndNone:"BUD9H",aboveLargePaddingBlockStartTight4x:"R9RZt",aboveLargePaddingBlockStartTight1x:"JxfQV",aboveLargePaddingBlockStartBase:"_2T75z",aboveLargePaddingBlockStartLoose1x:"POiRg",aboveLargePaddingBlockStartLoose4x:"_2DY0L",aboveLargePaddingBlockStartNone:"Epshn",aboveLargePaddingBlockEndTight4x:"kcAiv",aboveLargePaddingBlockEndTight1x:"zDiwA",aboveLargePaddingBlockEndBase:"_1uZFt",aboveLargePaddingBlockEndLoose1x:"vnrZ2",aboveLargePaddingBlockEndLoose4x:"riGjf",aboveLargePaddingBlockEndNone:"QQYVl",aboveLargeBackgroun
1dSurfacePrimary:"ulJWL",aboveLargeBackgroundSurfaceSecondary:"nDtP5",aboveLargeBackgroundSurfaceTertiary:"CL4rO",aboveLargeBackgroundTransparent:"l4pK0",aboveLargeBorderInlineStartBase:"OqXHc",aboveLargeBorderInlineStartDotted:"AGTRa",aboveLargeBorderInlineStartNone:"V33M5",aboveLargeBorderInlineEndBase:"Fz5s9",aboveLargeBorderInlineEndDotted:"_9xFaI",aboveLargeBorderInlineEndNone:"UNDlf",aboveLargeBorderBlockStartBase:"vkBQ7",aboveLargeBorderBlockStartDotted:"sopqf",aboveLargeBorderBlockStartNone:"BZTuX",aboveLargeBorderBlockEndBase:"_0VqWv",aboveLargeBorderBlockEndDotted:"hQws7",aboveLargeBorderBlockEndNone:"Ja6HK",aboveLargeBorderWidthInlineStartBase:"nns70",aboveLargeBorderWidthInlineStartThick:"zy4ps",aboveLargeBorderWidthInlineEndBase:"aYgpQ",aboveLargeBorderWidthInlineEndThick:"Fp15A",aboveLargeBorderWidthBlockStartBase:"gjVG8",aboveLargeBorderWidthBlockStartThick:"Tg842",aboveLargeBorderWidthBlockEndBase:"UhUwi",aboveLargeBorderWidthBlockEndThick:"_6F4dd",aboveLargeBorderColorInlineStartBase:"E6TZr",aboveLargeBorderColorInlineStartEmphasized:"tWLn5",aboveLargeBorderColorInlineEndBase:"qYx1Q",aboveLargeBorderColorInlineEndEmphasized:"w7Uxz",aboveLargeBorderColorBlockStartBase:"RO5sq",aboveLargeBorderColorBlockStartEmphasized:"fkjVf",aboveLargeBorderColorBlockEndBase:"K6n6y",aboveLargeBorderColorBlockEndEmphasized:"qguz7",aboveLargeBorderRadiusBlockStartTight:"TJs83",aboveLargeBorderRadiusBlockStartBase:"_9Pw4q",aboveLargeBorderRadiusBlockStartNone:"_71meE",aboveLargeBorderRadiusInlineStartTight:"a42rs",aboveLargeBorderRadiusInlineStartBase:"iWZkR",aboveLargeBorderRadiusInlineStartNone:"NpZaQ",aboveLargeBorderRadiusInlineEndTight:"NHCvw",aboveLargeBorderRadiusInlineEndBase:"sujnm",aboveLargeBorderRadiusInlineEndNone:"nAzPb",aboveLargeBorderRadiusBlockEndTight:"tBVOS",aboveLargeBorderRadiusBlockEndBase:"Mh4rq",aboveLargeBorderRadiusBlockEndNone:"ZDnKL"};function qn({blockPadding:e,inlinePadding:r,padding:o,children:a,media:i,...s}){const c=function(e,r){return[...Wn(jn(e)),...r?r.map(({viewportSize:e,...r})=>Wn(jn(r),e)).reduce((e,r)=>e.concat(r),[]):[]]}({...s,padding:o||!e&&!r?o:On(e,r)},i);return n("div",{className:t($n.View,c&&c.map(e=>$n[e])),children:a})}function On(e,r){const n=e=>{switch(e){case"base":return"base";case"tight":return"tight1x";case"extraTight":return"tight4x";case"loose":return"loose1x";case"extraLoose":return"loose4x";default:return"none"}};return[n(e),n(r)]}const Hn={Banner:"HwFtv",Icon:"gvEcX",statusInfo:"_2OMMy",statusSuccess:"WHH75",statusWarning:"LEzwg",statusCritical:"u07YM",Button:"_4TfRQ"},Gn=In("Banner");function Jn({children:e,collapsible:r=!1,iconHidden:o=!1,status:c="info",title:l,autoFocus:d=!1}){const u=Ie(),[p,g]=s(!0),h=a(null);i(()=>{!0===d&&h?.current?.focus()},[d]);const m=t(Hn.Banner,c&&Hn[B("status",c)]),b=Pn(void 0,Gn),y=p?void 0:b,v=!r||r&&!p;return n("div",{className:m,role:"critical"===c?"alert":"status","aria-atomic":"true","aria-live":"polite",...d&&{tabIndex:-1},ref:h,children:n(Ln,{leading:!o,trailing:r,children:[!o&&n("div",{className:Hn.Icon,children:n(Nn,{source:c})}),n(Fn,{spacing:"tight",children:[l&&n(Mn,{level:3,children:l}),e&&v&&n("div",{className:Hn.Content,id:y,children:n(Be,{children:n(qn,{children:e})})})]}),r&&n(qn,{children:n("button",{type:"button",className:Hn.Button,onClick:()=>g(e=>!e),"aria-pressed":!p,"aria-expanded":!p,"aria-controls":y,children:n(Nn,{size:"small",source:p?"chevronDown":"chevronUp",accessibilityLabel:u("expand")})})})]})})}const Un={BlockStack:"kIgpr",spacingNone:"bFWIE",spacingXtight:"kkSSu",spacingTight:"rMvcE",spacingLoose:"m8fnu",spacingXloose:"gFMiI",alignmentLeading:"KQ319",alignmentCenter:"cThsa",alignmentTrailing:"FAXRQ"};function Vn({alignment:e,spacing:r,children:o}){const a=t(Un.BlockStack,e&&Un[B("alignment",e)],r&&Un[B("spacing",r)]);return n("div",{className:a,children:o})}function Qn(){const[e,r]=s(!1);return p(()=>{r("undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)},[]),i(()=>{if("undefined"==typeof window)return;const e=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{r(e.matches)};return e.addListener(n),()=>{e.removeListener(n)}},[]),e}const Yn=new Map([["none",0],["fast",100],["base",200],["slow",300],["slower",400
1],["slowest",500]]);function Kn(e,r="slow",n=!1){const[o,t]=s(!n&&e),[c,l]=s(!1),d=a(!n&&e),u=a(()=>{l(!1),t(d.current)}),p=Qn();let g="string"==typeof r?r:r.enter,h="string"==typeof r?r:r.exit;return p&&(g="none",h="none"),i(()=>{e!==d.current&&l(!0),d.current=e;const r=setTimeout(u.current,e?Yn.get(g??"none"):Yn.get(h??"none"));return()=>{clearTimeout(r)}},[g,h,e]),c?e?"entering":"exiting":e===o?e?"entered":"exited":e?"enter":"exit"}function Xn({children:e,className:r,to:o,external:t,id:a,language:i,onPress:s}){const c=Te().linkComponent,l=s&&(()=>s());return c?n(c,{to:o,onClick:l,external:t,id:a,className:r,lang:i,children:e}):n("a",{href:o,onClick:l,target:t?"_blank":void 0,rel:t?"noopener noreferrer":void 0,id:a,className:r,lang:i,children:e})}const Zn={Spinner:"Saysr","fade-in":"Tsfjk",rotate:"aAUgK",sizeLarge:"jc1jU",sizeSmall:"_4WBeo"};function eo({size:e,color:r,children:o}){const a=Qn(),i=Boolean(o&&a),s=i?void 0:t(Zn.Spinner,e&&Zn[B("size",e)]);return n("div",{className:s,children:i?o:n(Nn,{source:"small"===e?"spinnerSmall":"spinner",appearance:r?void 0:"accent"})})}const ro={Button:"MImI3",Content:"c2MXY",LoadingContent:"Lh31i",Spinner:"AdR2j",subdued:"Ad3oQ",plain:"Imf0g",underline:"yXHHV",fill:"ts108",disabled:"a5wxR",loading:"pUDoY","loading-transitionEnter":"eKXZP","loading-transitionEntering":"kEwCl","loading-transitionEntered":"FFWrm",secondary:"NQ2yj",tertiary:"fYrWH",progressBar:"_1Zk1y",progressbar:"B2YDL",colorHoveredColor1:"nNNso",colorHoveredColor2:"AABVP",colorPressedColor1:"N8QRz",colorPressedColor2:"GZggx"},no=x(function({children:e,submit:r=!1,disabled:o,onPress:a,to:i,subdued:s,plain:l,secondary:d,tertiary:u,loading:p=!1,fill:g=!1,loadingLabel:h,underline:m},b){const y=o?void 0:i,v=o||"function"!=typeof a?void 0:()=>a?.(),f=c(e=>{"function"==typeof b?b(e):b&&(b.current=e)},[b]),S=Ie(),k=Qn(),x=Kn(p,{enter:"slow"}),{primaryButton:{typographyStyle:w,loadingStyle:T="spinner"},secondaryButton:{typographyStyle:I,loadingStyle:P="spinner"},link:{colorHovered:E,colorPressed:L}}=Or(),C=d?P:T,z=t(ro.Button,Pe,s&&ro.subdued,l&&ro.plain,l&&E&&ro[B("colorHovered",E)],l&&L&&ro[B("colorPressed",L)],l&&m&&ro.underline,o&&ro.disabled,p&&"spinner"===C&&ro.loading,g&&ro.fill,p&&"spinner"===C&&ro[B("loading-transition",x)],d&&ro.secondary,u&&ro.tertiary,p&&"progressBar"===C&&ro[C]),M=h||S("processing"),_=t(ro.Content,!l&&(d?I&&Cn[I]:w&&Cn[w])),R=n("span",{className:_,children:p&&"progressBar"===C&&k?M:e}),N=r?"submit":"button",A=n("span",{className:t(ro.LoadingContent,!k&&ro.Spinner),children:n(eo,{size:"small",color:"inherit",children:M})});return y?n(Xn,{to:y,className:z,onPress:a,"aria-busy":p,"aria-live":p?"assertive":"polite",children:[R,p&&"spinner"===C&&A]}):n("button",{type:N,className:z,disabled:o||p,onClick:v,"aria-busy":p,"aria-live":p?"assertive":"polite",ref:f,children:[R,p&&"spinner"===C&&A]})}),oo={InlineStack:"xbP8T",spacingXtight:"MnY5j",spacingTight:"oweDI",spacingLoose:"_9Wkb7",spacingXloose:"egIQs",alignmentLeading:"JBAUV",alignmentCenter:"tEPo1",alignmentTrailing:"_8kU9E",alignmentBaseline:"_1d4vg"};function to({spacing:e,alignment:r,children:o}){const a=t(oo.InlineStack,e&&oo[B("spacing",e)],r&&oo[B("alignment",r)]);return n("div",{className:a,children:o})}function ao({children:e}){return n(to,{alignment:"center",children:e})}function io(e){return`error-for-${e}`}function so({children:e}){return n("span",{"aria-hidden":"true",children:e})}function co({children:e,controlID:r}){return n("p",{className:"IZGO7",id:r?io(r):void 0,children:e})}function lo({children:e}){return n("span",{className:"q6PFP",children:e})}const uo={Wrapper:"PDMGs",hasError:"o7KtC",errorIndentationToText:"XRqWc",Checkbox:"HyDWS",Input:"giGGc",Icon:"DKMqn","Input-hasError":"eADQA","Input-backgroundTransparent":"iFRwL","Input-backgroundSurfacePrimary":"kEW1r","Input-backgroundSurfaceSecondary":"biGeI","Input-backgroundSurfaceTertiary":"_2s0y0","Input-borderColorEmphasized":"nZlde","Input-isDisabled":"Py3dv",Label:"Y0iFQ","Label-isDisabled":"idTjj",Error:"_9XLCJ"},po=In("Checkbox");function go({id:e,name:r,accessibilityLabel:o,error:a,disabled:i,children:s,...c}){const l=Pn(e,po),{checkbox:{errorIndentation:u,errorTypographyStyle:p}}=Or(),g=a?n("div",{className:t(uo.Error,p&&Cn[p]),children:n(co,{controlID:l,children:a})}
1):null,h=t(uo.Label,i&&uo["Label-isDisabled"]),m=Boolean(a);return n("div",{className:t(uo.Wrapper,m&&uo.hasError,m&&u&&uo[B("errorIndentation",u)]),children:[n(ho,{id:l,name:r,error:Boolean(a),disabled:i,...c}),n("label",{htmlFor:l,className:h,children:o?n(d,{children:[n(lo,{children:o}),n(so,{children:s})]}):s}),g]})}function ho({id:e,name:r,value:o=!1,checked:a=o,disabled:i,error:s=!1,onChange:c}){const{controls:{background:l},checkbox:{background:d,borderColor:u="base"}}=Or(),p=t(uo.Input,s&&uo["Input-hasError"],i&&uo["Input-isDisabled"],uo[B("Input-background",d||l||"surfaceTertiary")],uo[B("Input-borderColor",u)]);return n("div",{className:uo.Checkbox,children:[n("input",{type:"checkbox",id:e,name:r,checked:a,disabled:i,onChange:({currentTarget:e})=>{c?.(e.checked)},className:p,"aria-describedby":s?io(e):void 0,"aria-invalid":s}),n("div",{className:uo.Icon,children:n(Nn,{source:"checkmark",size:"small"})})]})}const mo={Link:"occN5",underline:"xonXO",colorHoveredColor1:"dZPXf",colorHoveredColor2:"Gdq36",colorPressedColor1:"eqsiw",colorPressedColor2:"IwUJJ"},bo=new Set([...new Set(["http","https"]),"mailto","tel","sms"]);function yo({to:e,language:r,children:o,onPress:a,underline:i,...s}){const{link:{colorHovered:c,colorPressed:l}}=Or();if(!e)return n(no,{onPress:a,plain:!0,underline:!0,...s,children:o});const d=function(e){try{const r=new URL(e,window.location.origin).protocol.replace(":","");return bo.has(r)?e:"#"}catch{return e}}(e);return n(Xn,{className:t(mo.Link,i&&mo.underline,c&&mo[B("colorHovered",c)],l&&mo[B("colorPressed",l)]),to:d,onPress:a,language:r,...s,children:o})}const vo={base:0,small:750,medium:1e3,large:1200};function fo(e){return function(e,r){if(!r)return;if(void 0!==e[r])return e[r];const n=Object.keys(vo);for(let o=n.indexOf(r);o>=0;o--){const r=n[o];if(void 0!==e[r])return e[r]}}(e,function(){const e=o(()=>function({addMaxWidth:e}={addMaxWidth:!0}){return Object.entries(vo).map(([r,n],o,t)=>{const a=t[o+1],[,i]=a||[];return{breakpoint:r,query:i&&e?`(min-width: ${n}px) and (max-width: ${i-1}px)`:`(min-width: ${n}px)`}})}(),[]),r=c(()=>{const r=e.find(({query:e})=>window.matchMedia(e).matches);return r?r.breakpoint:void 0},[e]),[n,t]=s(r());return i(()=>{const e=()=>{const e=r();n!==e&&t(e)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[n,r,e]),n}())}function So(e,r=10){return e/r+"rem"}function ko(e){return e>1?So(e):100*e+"%"}const Bo='\n  a[href],\n  area[href],\n  input:not([type="hidden"]):not([disabled]):not([tabindex="-1"]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]):not([tabindex="-1"]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls]',xo="YqJKm",wo=({children:e,onContainerFocus:r})=>{const o=a(null),t=a(null),i=a(null);p(()=>{i.current?.focus({preventScroll:!0})},[]);const s=e=>{const r=i.current;if(r){const n=e?function(e,r=!0){return!r&&e.matches(Bo)?e:e.querySelector(Bo)}(r):function(e,r=!0){if(!r&&e.matches(Bo))return e;const n=e.querySelectorAll(Bo);return n[n.length-1]}(r);n?n.focus():r.focus()}};return n(d,{children:[n("button",{className:xo,ref:o,"aria-hidden":"true",onFocus:()=>s(!1),type:"button"}),w(e,{tabIndex:-1,ref:i,onFocus:r}),n("button",{className:xo,ref:t,"aria-hidden":"true",onFocus:()=>s(!0),type:"button"})]})},To=In("Portal");function Io({children:e}){const[r,n]=s(null),o=Pn(void 0,To);return i(()=>{const e=document.getElementById("PortalHost")??document.body,r=document.createElement("div");return r.setAttribute("id",o),r.setAttribute("class","_31OOl"),e.appendChild(r),n(r),()=>{e.removeChild(r)}},[o]),r&&T(e,r)}const Po={Backdrop:"CzBEl",Dialog:"bUMzc",transitionEntered:"PfnJm",Modal:"Zqwd3",Content:"CjXfl","Dialog-blockSizeFill":"JOey5",IFrame:"Eep2v",Header:"_9bDa6",CloseButton:"IfNYu"},Eo=In("ModalHeading");function Lo({maxInlineSize:e,blockSize:r,open:o,title:l,titleHidden:d,source:u,noMountTransition:p=!1,children:g,...h}){const m=h.blocking,b=h.blocking?void 0:h.onClose,y=Ie(),[v,f]=s(),S=a(null),k=a(null),x=Pn(void 0,Eo),w=Kn(o,"fast",!p),T=Po[B("transition",w)],I=fo({base:!0,medium:!1});i(()=>{"enter"===w&&(document.body.style.overflow="hidden",S.current=document.activeElement),"exited"===w&&(document.body.style.overflow="auto",S?.current instanceof HTMLElement&&S.current.focus(),f(void 0))},[w]),i(()=>()=>{document.body.style.overflow="auto"},[]),i(()=>{const e=e=>{"Escape"!==e.key&&"Esc"!==e.key||m||b?.()};return document.addEventListener("keydown",e,!1),()=>{document.removeEventListener("keydown",e,!1)}},[m,b]);const P=c(e=>{const r=e.target;if(r&&r.contentWindow)try{f(r.contentWindow.document.body.scrollHeight)}catch{f(-1)}},[]);if("exited"===w)return null;const E=d?{"aria-label":l}:{"aria-labelledby":x},L=(!d||!m)&&n("header",{className:Po.Header,children:[d?n("span",{}):n(Mn,{level:1,id:x,children:l}),!m&&n("button",{type:"button",className:Po.CloseButton,onClick:b,"aria-label":y("close")||"Close",children:n(Nn,{source:"close",size:"large"})})]}),C=u?n("iframe",{src:u,title:l,className:Po.IFrame,...v&&v>0&&{style:{height:v}},...!r&&{onLoad:P}}):n("div",{className:Po.Content,...(r||I)&&{tabIndex:0},children:g});
1return n(Io,{children:n("div",{className:Po.Modal,ref:k,children:[n("div",{className:t(Po.Backdrop,T),onClick:function(){b?.()}}),n(wo,{onContainerFocus:()=>{setTimeout(()=>{const e=k.current;e?.scrollTo(0,0)},0)},children:n("div",{className:t(Po.Dialog,T,{[Po["Dialog-blockSizeFill"]]:"fill"===r||-1===v}),role:"dialog","aria-modal":!0,style:{...e&&{maxWidth:ko("fill"===e?1:e)}},...E,children:[L,C]})})]})})}function Co({checked:e,onChange:r,error:o,policy:t}){return"subscriptions"===t?n(zo,{checked:e,onChange:r,error:o}):null}function zo({checked:e,onChange:r,error:o}){const[t,a]=s(!1),i=Ie(),{merchantPolicies:c}=Te().shop,l=c?.find(e=>"subscription-policy"===e.handle),u=i("subscription.cancelled");return n(d,{children:[n(go,{name:"subscription_agreement",checked:e,onChange:r,error:o,children:i("subscription.agreement",{cancelled:l?n(yo,{onPress:()=>a(!0),children:u}):u})}),l&&n(Lo,{open:t,title:i("subscription.policy"),source:l.url,onClose:()=>a(!1)})]})}const Mo={CalloutBanner:"SOPT0",borderBlock:"nKTUa",backgroundSecondary:"fGe9g",backgroundTransparent:"fhec3"};function _o({title:e,children:r,border:o="block",background:a="secondary",alignment:i="center",spacing:s="tight"}){const c=e&&n(Mn,{level:3,children:e});return n("div",{className:t(Mo.CalloutBanner,o&&Mo[B("border",o)],a&&Mo[B("background",a)]),role:"status","aria-atomic":"true","aria-live":"polite",children:n(Fn,{alignment:"leading"===i?void 0:i,spacing:s,children:n(Be,{children:[c,n(qn,{children:r})]})})})}function Ro({onSubmit:e,children:r,disabled:o=!1,implicitSubmit:t=!0}){const a=Ie(),i=!1===t?null:n(lo,{children:n("button",{type:"submit",disabled:o,tabIndex:-1,"aria-hidden":!0,children:"string"==typeof t?t:a("submit")})});return n("form",{action:"",method:"POST",noValidate:!0,onSubmit:r=>{o||(r.preventDefault(),e())},className:"_9o02B",children:[r,i]})}const No={Group:"_4uFg4",spacingTight:"Zroh1"};function Ao({children:e}){const{formLayout:{spacing:r}}=Or();return n(Vn,{spacing:"base"===r?void 0:r,children:e})}function Fo({children:e}){const{formLayout:{spacing:r}}=Or();return n("div",{className:t(No.Group,r&&"base"!==r&&No[B("spacing",r)]),children:e})}const Do={Image:"oiNTK",bordered:"ENwjc",aspectRatio:"Kkl3o",fitContain:"_9HP9S",fitCover:"LHbWP"},Wo=new Map([["small","(max-width: 600px)"],["medium","(max-width: 1200px)"],["large","(min-width: 1201px)"]]);function jo({source:e,sources:r,description:o="",fit:a,bordered:i,loading:s,aspectRatio:c,decorative:l}){const d=r&&r.reduce((e,{source:r,viewportSize:n,resolution:o})=>{const t=n&&Wo.get(n),a=e.find(({media:e})=>t===e),i=[r,o&&`${o}x`].join(" ").trim();return a?(a.srcSet+=`, ${i}`,e):[...e,{media:t,srcSet:i}]},[]).map(e=>n("source",{...e})),u=t(Do.Image,i&&Do.bordered,a&&Do[B("fit",a)]);return n($o,{condition:!0===l,children:n(qo,{condition:null!=c,aspectRatio:c,children:n(Oo,{condition:null!=d,children:[d,n("img",{src:e,alt:o,className:u,loading:s})]})})})}function $o({children:e,condition:r}){return n(r?so:d,{children:e})}function qo({children:e,condition:r,aspectRatio:o}){return r?n("div",{className:Do.aspectRatio,style:{paddingBottom:`calc(100% / ${o})`},children:e}):n(d,{children:e})}function Oo({children:e,condition:r}){return n(r?"picture":d,{children:e})}const Ho={Layout:"HZoss",blockAlignmentTrailing:"XarlU",blockAlignmentCenter:"YTxaJ",inlineAlignmentLeading:"_9qVBD",inlineAlignmentTrailing:"F2fuL",LayoutInner:"VjRYe","LayoutInner-inlineAlignmentLeading":"_8Bkjq","LayoutInner-inlineAlignmentTrailing":"fITy1"},Go=new Map([["small","@media all and (max-width: 749px)"],["medium","@media all and (min-width: 750px) and (max-width: 1199px)"],["large","@media all and (min-width: 1200px)"]]),Jo=In("Layout");function Uo({inlineAlignment:e,blockAlignment:r,maxInlineSize:o,sizes:a,media:i,children:s}){const c=Pn(void 0,Jo),l=`.${c} > .${Ho.LayoutInner}`,u=t(Ho.Layout,c,r&&Ho[B("blockAlignment",r)],e&&Ho[B("inlineAlignment",e)]),p=t(Ho.LayoutInner,e&&Ho[B("LayoutInner-inlineAlignment",e)]),g={viewportSize:"default",sizes:a,maxInlineSize:o},h=function(e,r){return r.reduce((r,{viewportSize:n,maxInlineSize:o,sizes:t})=>{const a=t&&function(e,r){return r.reduce((r,n,o)=>{const t="fill"===n,a="number"!=typeof n,i="number"==typeof n?ko(n):"auto";return[r,`\n        ${e} > :nth-child(${o+1}) {\n          flex: ${t?"1":"0"} ${a?"1":"0"} ${i};\n          max-width: ${i};\n        }\n      `].join(" ")},"")}(e,t),i=[a,t?.includes(1)?`${e} { flex-wrap: wrap; }`:"",o?`${e} { max-width: ${ko(o)}; }`:""];return[r,..."default"===n||void 0===Go.get(n)?i:[Go.get(n),"{",...i,"}"]].join(" ")},"")}(l,i?[g,...i]:[g]);return n(d,{children:n("div",{className:u,children:[n("style",{children:h}),n("div",{className:p,children:s})]})})}const Vo={Wrapper:"tstNy",Radio:"c0kTe",Input:"fOxEo","Input-sizeBase":"EY8QG","Input-sizeLarge":"TxORn","Input-c
1heckedStyleRing":"_9tjNu","Input-checkedStyleDisc":"oQ4o1","Input-checkedColorInteractive":"WuWVP","Input-checkedColorPrimary":"s0SXQ","Input-isDisabled":"aQaN9","Input-backgroundSurfacePrimary":"HG87V","Input-backgroundSurfaceSecondary":"MZDuc","Input-backgroundSurfaceTertiary":"rED7c","Input-backgroundTransparent":"ENiw1","Input-borderColorEmphasized":"Mexwm",Label:"_8G4jN","Label-isDisabled":"UJrFL"},Qo=In("Radio");function Yo({id:e,accessibilityLabel:r,children:o,disabled:a,...i}){const s=Pn(e,Qo),c=t(Vo.Label,a&&Vo["Label-isDisabled"]);return n("div",{className:Vo.Wrapper,children:[n(Ko,{id:s,disabled:a,...i}),n("label",{htmlFor:s,className:c,children:r?n(d,{children:[n(lo,{children:r}),n(so,{children:o})]}):o})]})}const Ko=({id:e,name:r,value:o=!1,checked:a=o,disabled:i,onChange:s})=>{const{controls:{background:c},radio:{background:l,borderColor:d="base",checkedStyle:u="ring",checkedColor:p="interactive",size:g="base"}}=Or(),h=l||c||"surfaceTertiary",m=t(Vo.Input,i&&Vo["Input-isDisabled"],Vo[B("Input-size",g)],Vo[B("Input-background",h)],Vo[B("Input-borderColor",d)],Vo[B("Input-checkedStyle",u)],Vo[B("Input-checkedColor",p)]);return n("div",{className:Vo.Radio,children:n("input",{type:"radio",id:e,name:r,checked:a,disabled:i,onChange:({currentTarget:e})=>{s?.(e.checked)},className:m})})},Xo=new Map([["telephone","tel"],["credit-card","cc"],["birthday","bday"],["expiry","exp"],["security-code","csc"],["instant-message","impp"]]);function Zo(e){if(null==e)return;if(!1===e)return"none";if(!0===e)return"on";const{group:r,field:n}=e,o=n.replace(/(?:telephone|credit-card|expiry|security-code|instant-message)/g,e=>Xo.get(e)??e);return r?`${r} ${o}`:o}const et={Text:"wgIZT",subdued:"g0VDz",emphasized:"gIDtT",appearanceAccent:"R5x0Q",appearanceSuccess:"_5twot",appearanceWarning:"zrFpd",appearanceCritical:"pGVcI",sizeXsmall:"GhrMi",sizeSmall:"_8z3Vh",sizeMedium:"yHciV",sizeLarge:"hEwEw",sizeXlarge:"ZfTam",Abbr:"wUae1"};function rt({children:e,size:r,emphasized:o,subdued:a,appearance:i,role:s,style:c,id:l}){const d=t(et.Text,o&&et.emphasized,o&&Re,a&&et.subdued,a&&_e,r&&et[B("size",r)],i&&et[B("appearance",i)],i&&"accent"===i&&Ne,c&&Cn[c]),u=o?n("strong",{children:e}):e,p={className:d,id:l};if("string"==typeof s)switch(s){case"address":return n("address",{...p,children:u});case"deletion":return n("del",{...p,children:u});default:throw new ve("Invalid Text’s role")}if("object"==typeof s)switch(s.type){case"abbreviation":return n("abbr",{defaultProps:p,className:t(d,et.Abbr),title:s.for,children:u});case"directional-override":return n("bdo",{...p,dir:s.direction,children:u});case"datetime":return n("time",{...p,dateTime:s.machineReadable,children:u});default:throw new ve("Invalid Text’s role")}return n(o?"strong":"span",{...p,children:e})}const nt={Truncate:"UOOjT",variationEllipsis:"uXhbj"};function ot({children:e,variation:r="ellipsis"}){return n("span",{className:t(nt.Truncate,r&&nt[B("variation",r)]),children:e})}const tt={Wrapper:"zvnsh",Label:"XzyTi","Label-positionInside":"LTf4Q","Label-onBackgroundSurfacePrimary":"_4C7ll","Label-onBackgroundSurfaceSecondary":"ZbP0Y","Label-onBackgroundSurfaceTertiary":"eeIkA","Label-positionOutside":"ukV2A","Label-isPlaceholder":"EESHa",Select:"kt285","Select-labelOutside":"jh8xU","Select-labelInline":"NSJFm","Select-backgroundTransparent":"a3I80","Select-backgroundSurfacePrimary":"ZAVmF",Selector:"_8ky8x","Selector-borderColorEmphasized":"IBq5Q","Select-backgroundSurfaceSecondary":"IdVUz","Select-backgroundSurfaceTertiary":"kyrIc","Select-borderNone":"HsEAL","Select-focusBorderFull":"rDBCs",hasError:"fpvwY","Select-focusBorderBlockEnd":"_3OFrW","Select-borderFull":"TxjZ0","Select-borderBlockEnd":"UvvoM","Select-borderColorEmphasized":"_5ZuhZ","Select-isDisabled":"VWkGa","Select-isReadOnly":"OA8Hj","Selector-separated":"JxZDR","Error-errorIndentationToText":"RbVkf"},at=In("Select");function it({id:e,name:r,label:o,options:a,value:i="",disabled:s,readonly:c,required:l,error:u,autocomplete:p,placeholder:g,onChange:h}){const{controls:{background:m},select:{labelPosition:b="inside",background:y,border:v="full",borderColor:f="base",focu
1sBorder:S="full",disclosureIcon:k="caretDown",disclosureIconSeparator:x=!0,typographyStyle:w,errorIndentation:T,errorTypographyStyle:I},label:{typographyStyle:P}}=Or(),E=Pn(e,at),L=y||m||"surfaceTertiary",C=u&&n("span",{className:t(T&&tt[B("Error-errorIndentation",T)],I&&Cn[I]),children:n(co,{controlID:E,children:u})}),z=t(tt.Select,Boolean(u)&&tt.hasError,s&&tt["Select-isDisabled"],c&&tt["Select-isReadOnly"],tt[B("Select-label",b)],tt[B("Select-background",L)],tt[B("Select-border",v)],tt[B("Select-borderColor",f)],tt[B("Select-focusBorder",S)],w&&Cn[w]),M=n("label",{className:t(tt.Label,tt[B("Label-position",b)],{[tt["Label-isPlaceholder"]]:""===i&&g===o},tt[B("Label-onBackground",L)]),htmlFor:E,children:n(rt,{size:""!==i||g!==o||"inside"===b?"small":void 0,subdued:!0,style:P,children:n(ot,{children:o})})}),_=n("div",{children:["outside"===b?M:null,n("div",{className:tt.Wrapper,children:["inside"===b&&M,n("select",{name:r,id:E,disabled:s,onChange:e=>h?.(e.target.value),required:l,value:i,className:z,"aria-describedby":u?io(E):void 0,"aria-invalid":Boolean(u),autoComplete:Zo(p),children:[g&&(""===i||g!==o)&&n("option",{value:"",hidden:g===o,disabled:!0,children:g===o?n(d,{children:" "}):g}),a.map(e=>n("option",{value:e.value,disabled:e.disabled||c,children:e.label},e.value))]}),n("div",{className:t(tt.Selector,x&&tt["Selector-separated"],x&&tt[B("Selector-borderColor",f)]),children:n(Nn,{source:k,size:"small"})})]})]});return n(Vn,{spacing:"tight",children:[_,C]})}const st={Separator:"AHJia",directionHorizontal:"nHtsq",directionVertical:"_2xVXH"},ct={thin:"1px",medium:"3px",thick:"5px",xthick:"10px"};function lt({width:e="thin",direction:r="horizontal"}){const o={horizontal:{borderBottomWidth:ct[e]},vertical:{borderRightWidth:ct[e]}};return n("div",{className:t(st.Separator,st[B("direction",r)]),style:o[r]})}const dt=r(!1),ut={TextBlock:"jeX3G",subdued:"KIbI9",emphasized:"_4T5X4",appearanceAccent:"V7LhS",appearanceSuccess:"ZWtpk",appearanceWarning:"_87JsI",appearanceCritical:"JjQZa",sizeSmall:"N95rF",sizeMedium:"dI6aB",sizeLarge:"EvsJm",sizeXlarge:"D0Aw4"};function pt({children:e,size:r,emphasized:o,subdued:a,appearance:i,style:s,id:c}){const l=t(ut.TextBlock,r&&ut[B("size",r)],o&&ut.emphasized,o&&Re,a&&ut.subdued,a&&_e,i&&ut[B("appearance",i)],i&&"accent"===i&&Ne,s&&Cn[s]),d=o?n("strong",{children:e}):e;return n(dt.Provider,{value:!0,children:n("p",{className:l,id:c,children:d})})}function gt(e){return!e||""===e}const ht=r(void 0),mt={Wrapper:"SxYag","Label-positionInside":"fhPbt","Label-onBackgroundSurfacePrimary":"YSlfF","Label-onBackgroundSurfaceSecondary":"zCv2y","Label-onBackgroundSurfaceTertiary":"f4qYp","Label-isSubdued":"jir88","Label-positionOutside":"fjuC5",isFloating:"j5nyn",Label:"nVJMC"};function bt({children:e,label:r,htmlFor:s,isEmpty:l=!0,position:d="inside",background:u="surfaceTertiary",subdued:p}){const g=function(){const e=a(!1);return i(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),[h,m]=I((e,r)=>{if(!g.current)return e;switch(r.type){case"focus":return{...e,isFocused:!0};case"blur":return{...e,isFloating:!e.isEmpty,isFocused:!1};case"change":return{...e,isFloating:!0,isEmpty:r.isEmpty};case"init":return{...e,isFloating:!r.isEmpty,isEmpty:r.isEmpty}}},{isEmpty:l,isFloating:!l,isFocused:!1});i(()=>{h.isFocused||h.isEmpty===l||m({type:"init",isEmpty:l})},[l]);const b=c(()=>m({type:"focus"}),[]),y=c(()=>m({type:"blur"}),[]),v=c(e=>m({type:"change",isEmpty:e}),[]),f=o(()=>({...h,onBlur:y,onChange:v,onFocus:b}),[y,v,b,h]),{label:{typographyStyle:S}}=Or();return n(ht.Provider,{value:f,children:n("div",{className:mt.Wrapper,children:n("div",{className:t({[mt.isFloating]:h.isFloating&&"inside"===d}),children:[n("label",{htmlFor:s,className:t(mt.Label,mt[B("Label-position",d)],p&&mt["Label-isSubdued"],u&&mt[B("Label-onBackground",u)]),children:n(rt,{size:"small",subdued:!0,style:S,children:n(ot,{children:r})})}),e]})})})}const yt=r(null);function vt(){const r=e(yt);if(null===r)throw new ve("No Popper in context");return r}function ft({children:e,offset:r,placement:t="blockStart",preventOverflow:a,activator:i,sameInlineSize:l,minInlineSize:d}){const u=function(e){const[r,n]=s(null),o=c(()=>{null!==e&&n(e.getBoundingClientRect())},[e]);return p(()=>(o(),window.addEventListener("resize",o),window.addEventListener("scroll",o),()=>{window.removeEventListener("resize",o),window.removeEventListener("scroll",o)}),[o]),r}(i),[g,h]=function(){const[e,r]=s(null);return[e,c(e=>{null!==e&&r(e.getBoundingClientRect())},[])]}(),{clipping:m,offsets:b,spacing:y}=o(()=>function(e,r,n,{offset:o=0,preventOverflow:t=!1,sameInlineSize:a=!1}={}){let i={x:0,y:0},s={left:0,right:0},c=0;if(!r||!n)return{offsets:i,clipping:s,spacing:c};const l=a?n.left:n.left+n.width/2-r.width/2,d=n.top+n.height/2-r.height/2;switch(e){case"blockStart":i={x:l,y:n.top-r.height-o};break;case"blockEnd":i={x:l,y:n.bottom+o};break;case"inlineStart":i={x:n.left-r.width-o,y:d};break;
1case"inlineEnd":i={x:n.right+o,y:d}}return t&&(s=function(e,r){const n=document.documentElement.clientWidth,o=e.x+r.width;let t={left:0,right:0};return o>n&&(t={...t,right:n-o}),e.x<0&&(t={...t,left:-e.x}),t}(i,r),s.right&&!s.left&&(i.x+=s.right,c=-10),!s.right&&s.left&&(i.x=0,c=10)),{offsets:i,clipping:s,spacing:c}}(t,g,u,{offset:r,preventOverflow:a,sameInlineSize:l}),[r,t,g,a,u,l]),v=o(()=>({clipping:m,offsets:b,placement:t,popperRect:g,referenceRect:u,spacing:y}),[m,b,t,g,u,y]),{x:f,y:S}=function({x:e,y:r}){const n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(r*n)/n||0}}({x:b.x+y+(window.scrollX||window.pageXOffset),y:b.y+(window.scrollY||window.pageYOffset)}),k=(window.devicePixelRatio||1)<2?`translate(${f}px, ${S}px)`:`translate3d(${f}px, ${S}px, 0)`;return n(yt.Provider,{value:v,children:n(Io,{children:n("div",{className:"_6ruy3",style:{...u&&{transform:k,MozTransform:k,WebkitTransform:k,...l&&{width:u.width},...d&&{minWidth:So(d)}}},ref:h,children:e})})})}const St={Wrapper:"IbPNg",Button:"nDyVA",Tooltip:"awl9J",transitionEntered:"el1S2",transitionExit:"pLPLd",transitionExiting:"RnX2a",Arrow:"pmIGY","Tooltip-backgroundSurfacePrimary":"_3yAoT","Tooltip-backgroundSurfaceSecondary":"eY5YR","Tooltip-backgroundSurfaceTertiary":"e7NEz","Tooltip-opacityTranslucent":"_8ekQS","Tooltip-opacityOpaque":"i34YA","Tooltip-borderRadiusNone":"_2saX4","Tooltip-borderRadiusTight":"_9T8DA","Tooltip-borderRadiusBase":"x1Cux","Tooltip-borderRadiusFullyRounded":"PhMp8"},kt=In("Tooltip");function Bt({content:e,children:r}){const[o,t]=s(!1),i=a(null),c=a(!1),l=Kn(o,{exit:"base"}),d=Pn(void 0,kt),u=o?d:void 0;return n("div",{className:St.Wrapper,children:[n("button",{type:"button",className:St.Button,"aria-pressed":o,"aria-controls":u,"aria-describedby":u,onFocus:()=>{c.current||t(!0)},onBlur:()=>{c.current||t(!1)},onMouseEnter:()=>{c.current||t(!0)},onMouseLeave:()=>{t(!1)},onTouchStart:()=>{c.current=!0},onClick:()=>{t(e=>!e)},onKeyDown:function(e){switch(e.key){case"Enter":case"Space":e.preventDefault(),t(e=>!e);break;case"Escape":case"Esc":e.preventDefault(),t(!1)}},ref:i,children:r}),"exited"!==l&&n(ft,{activator:i.current,preventOverflow:!0,children:n(xt,{content:e,id:u,onMouseEnter:()=>{c.current||t(!0)},onMouseLeave:()=>{t(!1)},transition:l})})]})}function xt({content:e,id:r,onMouseEnter:o,onMouseLeave:a,transition:i}){const{clipping:s,spacing:c}=vt(),{tooltip:{background:l,opacity:d="translucent",borderRadius:u="base",textAlignment:p="center"}}=Or(),g=(s.right||s.left)&&`calc(50% - ${(s.right||s.left)+c}px)`,h=t(St.Tooltip,St[B("transition",i)],St[B("Tooltip-opacity",d)],St[B("Tooltip-borderRadius",u)],l&&St[B("Tooltip-background",l)]);return n("div",{id:r,role:"tooltip",onMouseEnter:o,onMouseLeave:a,className:h,style:{...g&&{transformOrigin:`${g} 120%`}},children:[n(Fn,{alignment:"start"===p?"leading":p,children:n(pt,{size:"small",children:e})}),n(wt,{})]})}function wt(){const{clipping:e,spacing:r}=vt(),o=(e.right||e.left)&&`calc(${"ltr"===document.dir?"-50":"50"}% - ${(e.right||e.left)+r}px)`,t=(window.devicePixelRatio||1)<2?`translate(${o}, 0)`:`translate3d(${o}, 0, 0)`;return n("div",{className:St.Arrow,style:{...o&&{transform:t,MozTransform:t,WebkitTransform:t}}})}const Tt={Wrapper:"DH3Lj",Field:"IwgL6","Field-isFloating":"_24ZCV","Field-hasTooltip":"PSuwk","Field-backgroundTransparent":"VpMLh","Field-backgroundSurfacePrimary":"pzNEy",Tooltip:"TBKkQ","Field-backgroundSurfaceSecondary":"SN65D","Field-backgroundSurfaceTertiary":"rm2lq","Field-borderNone":"zp5Uq","Field-focusBorderFull":"ud1CI",hasError:"ks0iI","Field-focusBorderBlockEnd":"ONy0r","Field-borderFull":"IbPFL","Field-borderBlockEnd":"K1c22","Field-borderColorEmphasized":"L9KMr","Error-errorIndentationToText":"_2Ei4t","Field-isDisabled":"QMBIY","Field-isReadOnly":"f8i8Y"},It=In("TextField"),Pt=x(function(e,r){const{controls:{background:o},textFields:{labelPosition:a,background:i,errorIndentation:s,errorTypographyStyle:c}}=Or(),l=i||o||"surfaceTertiary",{accessibilityDescription:d,error:u,id:p,label:g,tooltip:h,value:m}=e,b=Pn(p,It),y=d?`${b}-description`:void 0,v=y?n(lo,{children:n(rt,{id:y,children:d})}):null,f=u&&n("span",{className:t(s&&Tt[B("Error-errorIndentation",s)],c&&Cn[c]),children:n(co,{controlID:b,children:u})}),S=h?n("div",{className:Tt.Tooltip,children:n(Bt,{content:h.content,children:[n(lo,{children:h.label}),n(Nn,{source:"questionFill",size:"large",appearance:"subdued"})]})}):null;return n(Vn,{spacing:"tight",children:[n(bt,{label:g,htmlFor:b,isEmpty:gt(m),position:a,background:l,subdued:e.readonly,children:n("div",{className:Tt.Wrapper,children:[v,n(Et,{ref:r,...e,id:b,ariaDescribedBy:y}
1),S]})}),f]})}),Et=x(function({id:r,min:n,max:o,step:l,name:d,label:u,value:p,controlledValue:g,type:h="text",role:m,required:b,error:y,tooltip:v,autocomplete:f,autoFocus:S,multiline:k,disabled:x,readonly:w,ariaActiveDescendant:T,ariaAutocomplete:I,ariaControls:E,ariaDescribedBy:L,ariaExpanded:C,onFocus:z,onBlur:M,onChange:_,onInput:R,onKeyDown:N},A){const F=a(),D=c(e=>{"function"==typeof A?A(e):A&&(A.current=e),F.current=e},[A]);i(()=>{S&&F.current?.focus()},[S]);const{controls:{background:W},textFields:{labelPosition:j="inside",background:$,border:q="full",borderColor:O="base",focusBorder:H="full",typographyStyle:G},label:{typographyStyle:J}}=Or(),U=$||W||"surfaceTertiary",V=function(){const r=e(ht);if(null==r)throw new ve("No labelled in context");return r}(),[Q,Y]=function(e){const[r,n]=s(e),o=a(e);let t=r;return o.current!==e&&(o.current=e,n(e),t=e),[t,n]}(g??p),K=t(Tt.Field,Boolean(y)&&Tt.hasError,Boolean(v)&&Tt["Field-hasTooltip"],V.isFloating&&"outside"!==j&&Tt["Field-isFloating"],x&&Tt["Field-isDisabled"],w&&Tt["Field-isReadOnly"],Tt[B("Field-background",U)],Tt[B("Field-border",q)],Tt[B("Field-borderColor",O)],Tt[B("Field-focusBorder",H)],G&&Cn[G],J&&Cn[B("placeholder",J)]),X=[L,y&&io(r)].filter(Boolean).join(" ");return P(k?"textarea":"input",{id:r,min:n,max:o,step:l,name:d,placeholder:V.isFloating||"outside"===j?void 0:u,className:K,required:b,type:Lt(k?void 0:h),disabled:x,readOnly:w,"aria-activedescendant":T,"aria-autocomplete":I,"aria-controls":E,"aria-describedby":X,"aria-expanded":C,"aria-invalid":Boolean(y),"aria-required":b,onBlur:({currentTarget:{value:e}})=>{e!==(p??"")&&_?.(e),M?.(),V.onBlur()},onChange({currentTarget:{value:e}}){Y(e),"function"==typeof R&&R(e),V.onChange(gt(e))},onFocus:()=>{z?.(),V.onFocus()},onKeyDown:N,ref:D,role:m,value:Q,autoComplete:Zo(f),autoFocus:S})});function Lt(e){return"telephone"===e?"tel":e}const Ct={Tiles:"WD2BB",spacingNone:"zBxYI",spacingXtight:"oZ7y8",spacingTight:"BuLdd",spacingLoose:"_6g6G1",spacingXloose:"mW6Tc",alignmentLeading:"_29xdS",alignmentCenter:"tTD6D",alignmentTrailing:"VzRf2",alignmentBaseline:"_5v7xp",doesNotWrap:"CQtfp",doesNotBreak:"_3Pf9z"};function zt({children:e,maxPerLine:r,breakAt:o,alignment:a,spacing:i}){const s=t(Ct.Tiles,i&&Ct[B("spacing",i)],a&&Ct[B("alignment",a)],r?void 0:Ct.doesNotWrap,o?void 0:Ct.doesNotBreak),c=r?100/r+"%":"0",l=o?So(o):"0";return n(qn,{children:n("div",{className:s,style:{"--tile-width":c,"--tiles-breakpoint":l},children:e})})}const Mt=new WeakMap,_t=new Set([V,he]);function Rt({input:e,scriptUrl:r,onError:t,onStopwatchMark:l,developmentMode:d,liveReload:u}){const[p,g]=s(!1),h=o(()=>be(l),[l]);ge("post-purchase",{pageWasPainted:p});const{client:m,observability:b}=R(),y=o(()=>function({notifyError:e}){const r=(r,o)=>function(e,{publicProps:r,notifyError:o,extension:t}){const a=e.displayName??e.name,i=i=>{const s={},{children:c}=i;for(const e of r){const r=i[e];s[e]="function"==typeof r?async function(...e){try{return await r.apply(this,e)}catch(n){o(new me(`Error in ${a} component event handler: ${n}`,{cause:n}))}}:r}const l=function(e,r,n){const{id:o}=n;if(o&&r&&_t.has(e)){const{onOpen:e,onClose:t}=n;return{...n,onOpen:()=>{e?.(),Mt.has(r)||Mt.set(r,new Set),Mt.get(r)?.add(o)},onClose:()=>{t?.(),Mt.get(r)?.delete(o)}}}return n}(e,t,s);return n(e,{...l,children:c})};return i.displayName=`Extension(${a})`,i}(r,{publicProps:o,notifyError:e});return{Banner:r(Jn,["collapsible","iconHidden","status","title"]),BlockStack:r(Vn,["alignment","spacing"]),Bookend:r(Ln,["alignment","leading","spacing","trailing"]),Button:r(no,["disabled","loading","loadingLabel","onPress","plain","subdued","submit","to"]),ButtonGroup:r(ao,[]),BuyerConsent:r(Co,["checked","error","onChange","policy"]),CalloutBanner:r(_o,["alignment","background","border","spacing","title"]),Checkbox:r(go,["accessibilityLabel","checked","disabled","error","id","name","onChange","value"]),Form:r(Ro,["disabled","implicitSubmit","onSubmit"]),FormLayout:r(Ao,[]),FormLayoutGroup:r(Fo,[]),Heading:r(Mn,["id","level","role"]),HeadingGroup:r(Be,[]),HiddenForAccessibility:r(so,[]),Image:r(jo,["aspectRatio","bordered","decorative","description","fit","loading","source","sources"]),InlineStack:r(to,["alignment","spacing"]),Layout:r(Uo,["blockAlignment","inlineAlignment","maxInlineSize","media","sizes"]),Link:r(yo,["external","id","onPress","to"]),Radio:r(Yo,["accessibilityLabel","checked","disabled","id","name","onChange","value"]),Select:r(it,["autocomplete","disabled","error","id","label","name","onChange","options","placeholder","required","value"]),Separator:r(lt,["direction","width"]),Spinner:r(eo,["color","size"]),Text:r(rt,["appearance","emphasized","id","role","size","subdued"]),TextBlock:r(pt,["appearance","emphasized","id","size","subdued"]),TextContainer:r(Fn,["alignment","spacing"]),TextField:r(Pt,["autocomplete","error","id","label","multiline","name","onBlur","onChange","onFocus","onInput","required","tooltip","type","value"]),Tiles:r(zt,["alignment","breakAt","maxPerLine","spacing"]),View:r(qn,["blockPadding","inlinePadding"]),VisuallyHidden:r(lo,[])}}({notifyError(e){b.error(e)}}),[b]),v=a(null),f=a(null),S=o(()=>function(e,{renderComponent:r,renderText:o}={}){const t=new Map(Object.entries(e)),a=({parent:e,component:r,controller:o,receiver:t,key:a})=>n(Bn,{parent:e,component:r,controller:o,receiver:t},a),i=r?e=>r(e,{renderDefault:()=>a(e)}):a,s=({key:e,receiver:r,text:o,parent:t})=>n(Tn,{receiver:r,text:o,parent:t},e),c=o?e=>o(e,{renderDefault:()=>s(e)}):s;return{get(e){const r=t.get(e);if(null==r)throw new Error(`Unknown component: ${e}`);return r},renderer:{renderComponent:i,renderText:c}}}(y),[y]),k=c(()=>{const n=L();let o=!1,a=!1,i=null;v.current=n;const s=n.on("mount",()=>{s(),g(!0),h.mark("firstContentfulRenderCompleted")}),c=()=>{o||(o=!0,s(),a||(a=!0,C(i)),f.current===c&&(f.current=null))};return f.current=c,(async()=>{let a="load",s=Date.now();const l=e=>{b.log("post_purchase_extension_lifecycle",`[PostPurchase] Extension ${a} ${e}`,{phase:a,status:e,duration:"started"===e?void 0:Date.now()-s})};
1try{const p=ie({createMessenger:se(m,b)});if(i=p,l("started"),await p.load(r),o)return;if(l("completed"),h.mark("loaded"),a="render",s=Date.now(),l("started"),await p.render("Checkout::PostPurchase::Render",n.receive,Object.keys(y),e),o)return;async function v(){d&&(c(),g(!1))}l("completed"),h.mark("initialRenderCompleted"),a="setup",s=Date.now(),l("started"),E(p,{reload:v}),d&&u&&pe(u,v),l("completed")}catch{if(o)return;l("failed"),c(),t?.()}})(),s},[]);return i(()=>()=>{f.current?.()},[]),i(()=>{if(!p)return k()},[p,k]),p&&v.current?n(Sn,{controller:S,receiver:v.current}):null}const Nt={id:"56603286faf7c2fc6279ae9d974501bd8ada653472e6a1cb5f0cc17e51ce66f7",type:"mutation",name:"PostPurchaseDone",source:""};function At(e){const{client:r,checkout:n,observability:o,graphql:{coreGraphql:t}}=R(),a=n.latestReceipt,i=r.unstable_getSerialization("sessionToken"),{postPurchaseInquiryStatus:s}=n.negotiator.parts,l=e?.onComplete,d=e?.wait,p=c(()=>{s.value="done"},[s]);return c(async e=>{const r=a.value,s=Date.now(),c=(r,n,t=s)=>{o.log("post_purchase_done_lifecycle",`[PostPurchase] Done ${r} ${n}`,{trigger:e,phase:r,status:n,duration:"started"===n?void 0:Date.now()-t})};if(c("started","started"),"processed"===r?.status&&i){if(r.redirectUrl)c("receipt_poll","skipped");else{const e=Date.now();c("receipt_poll","started",e);const{data:o,error:a}=await t.staticQuery(Q,{cache:!1,variables:{receiptId:r.id,sessionToken:i}});if(c("receipt_poll",a?"failed":"completed",e),!a&&"ProcessedReceipt"===o?.receipt?.__typename){const e=ye(o.receipt,{});n.unstable_overwriteLatestReceipt(e)}}t.mutate(Nt,{variables:{receiptId:r.id,sessionToken:i}}),c("mutation_dispatched","completed"),l?.(),d&&await u(500),p(),c("completed","completed")}else c("completed","skipped")},[n,t,a,o,l,p,i,d])}function Ft(e){if(void 0!==e)return[e.h,e.s,e.l]}class Dt extends Error{constructor(e){super(e??"Post purchase page failed to render due to missing receipt"),this.name="PostPurchaseMissingProcessedReceiptError"}}const Wt=W(({checkout:e,client:r,graphql:{coreGraphql:n},observability:o},{developmentOptions:t})=>{const a=r.unstable_getSerialization("sessionToken"),i=m(()=>e.latestReceipt.value?.id),s=m(()=>"processed"!==e.latestReceipt.value?.status||!a),c=n.query(ae,{variables:()=>({input:{forRender:{receiptId:i.value,sessionToken:a,developmentOptions:t}}}),skip:()=>s.value});let l=!1;return b(()=>{const r=e.latestReceipt.value;if(!s.value||l)return;const n=setTimeout(()=>{o.error(new Dt,{severity:"error",metadata:{app:{receiptId:r?.id,receiptStatus:r?.status,typeofReceipt:typeof r,typeofSessionToken:typeof a}}}),l=!0},2e3);return()=>{clearTimeout(n)}}),{data:c.data,error:c.error,invalidResult:m(()=>s.value||Boolean(c.error.value)||"PostPurchaseDataFailed"===c.data.value?.postPurchaseData.__typename),loading:c.loading}}),jt={errors:[{code:"payment_required",message:"Timed out while processing the 3DS challenge modal."}],status:"partially_processed"},$t={errors:[{code:"payment_required",message:"Timed out while processing the payment."}],status:"partially_processed"};function qt(){const{checkout:e,observability:r}=R(),o=e.latestReceipt.value,t=At();re({stage:ne.Complete,id:"PostPurchase"});const{developmentOptions:a}=oe(),{data:s,error:c,invalidResult:l,loading:d}=N(Wt,{developmentOptions:a});if(i(()=>{l.value&&(c.value&&r.log("post_purchase_graphql_request_failed","Post purchase GraphQL request failed with error",{error:c.value.message,receiptId:o?.id,receiptStatus:o?.status}),"PostPurchaseDataFailed"===s.value?.postPurchaseData.__typename&&r.log("post_purchase_graphql_request_failed",`Post purchase GraphQL request failed with code: "${s.value.postPurchaseData.code}"`,{data:JSON.stringify(s.value.postPurchaseData),receiptId:o?.id,receiptStatus:o?.status}),t("invalid_data"))},[t,l.value,c.value,s.value,r,o]),d.value||!s.value)return null;if(l.value)return null;const u=s.value.postPurchaseData;return n(Ot,{data:u})}function Ot({data:e}){const{checkout:r,shop:t,source:l,i18n:d,observability:u}=R(),p=function(){const e=Y(),r=e.configuration.colors,n=r.global,t=r.schemes?.scheme1,a=r.schemes?.scheme2,i=null!=t?.control?.background&&F(t.control.background)||null!=a?.control?.background&&F(a.control.background)?"transparent":"color3";return o(()=>function({global:e={},buyerJourney:r={},typographyScale:n={},typographyPrimary:o={},typographySecondary:t={},headingLevel1:a={},headingLevel2:i={},headingLevel3:s={},link:c={},controls:l={},label:d={},textFields:u={},select:p={},checkbox:g={},radio:h={},optionList:m={},reviewBlock:b={},lineItems:y={},moneyLines:v={},moneySummary:f={},primaryButton:S={},secondaryButton:k={},formLayout:B={},tag:x={},tooltip:w={},popover:T={},banner:I={},thumbnail:P={},typographyStyle1:E={},typographyStyle2:L={}
1,typographyStyle3:C={},typographyStyle4:z={},typographyStyle5:M={},typographyStyle6:_={},typographyStyle7:R={},typographyStyle8:N={},typographyStyle9:A={},colors:F}={}){return new Qe({global:e,buyerJourney:r,typographyScale:n,typographyPrimary:o,typographySecondary:t,headingLevel1:a,headingLevel2:i,headingLevel3:s,link:c,controls:l,label:d,textFields:u,select:p,checkbox:g,radio:h,optionList:m,reviewBlock:b,lineItems:y,moneyLines:v,moneySummary:f,primaryButton:S,secondaryButton:k,formLayout:B,tag:x,tooltip:w,popover:T,banner:I,thumbnail:P,typographyStyle1:E,typographyStyle2:L,typographyStyle3:C,typographyStyle4:z,typographyStyle5:M,typographyStyle6:_,typographyStyle7:R,typographyStyle8:N,typographyStyle9:A,colors:F})}({colors:{primaryAction:{background:Ft(n?.brand)},secondaryAction:{foreground:Ft(n?.brand)},tertiaryAction:{},interactive:{foreground:Ft(n?.accent)},info:{accent:Ft(n?.info)},success:{accent:Ft(n?.success)},warning:{accent:Ft(n?.warning)},critical:{accent:Ft(n?.critical)},canvas:{background:Ft(t?.base?.background),foreground:Ft(t?.base?.text),accent:Ft(t?.base?.accent)},surfacePrimary:{background:Ft(t?.base?.background),foreground:Ft(t?.base?.text),accent:Ft(t?.base?.accent)},surfaceSecondary:{background:Ft(a?.base?.background),foreground:Ft(a?.base?.text),accent:Ft(a?.base?.accent)},surfaceTertiary:{},color1:{},color2:{}},typographyPrimary:e.configuration.typographyPrimary??{},typographySecondary:e.configuration.typographySecondary??{},controls:{background:i},textFields:e.configuration.textField??{},select:e.configuration.select??{},optionList:{background:i},reviewBlock:{background:i}}),[i,e.configuration.select,e.configuration.textField,e.configuration.typographyPrimary,e.configuration.typographySecondary,n,t,a])}(),g=function(){const{client:e,checkout:r,observability:n}=R(),t=r.latestReceipt.value,a=e.unstable_getSerialization("sessionToken"),{developmentMode:i,changesetsUrl:s}=oe();if(!s)throw new Zr("There was an error initializing the PostPurchaseApiClient: Changesets Url is blank.");if(!a)throw new Zr("There was an error initializing the PostPurchaseApiClient: Session Token is blank.");if("processed"!==t?.status)throw new Zr("There was an error initializing the PostPurchaseApiClient: Receipt Status must be processed.");return o(()=>new tn(s,n,t.token,a,i),[s,n,t.token,a,i])}(),{developmentMode:h,liveReload:m}=oe(),b=z(()=>{return e=r.latestReceipt.value,Boolean("processed"===e?.status&&e?.purchaseOrder?.paymentLines?.some(({method:e})=>"wallet"===e.type&&"PAYPAL_EXPRESS"===e.name));var e}),y=o(()=>({app:e.appId}),[e.appId]),[v,f]=s(Date.now()),S=o(()=>new M({locale:d.locale,currency:d.currency,timeZone:d.timeZone},{close:d.translate("post_purchase.components.close"),expand:d.translate("post_purchase.components.expand"),submit:d.translate("post_purchase.components.submit"),processing:d.translate("post_purchase.components.processing"),subscription:{cancelled:d.translate("payment.subscription_agreement_cancelled"),agreement:d.translate("payment.subscription_agreement_label"),policy:d.translate("shop_policies.subscription_policy")}}),[d]),k=o(()=>S.translate.bind(S),[S]),B=o(()=>ce({extensionId:e.appId,sourceId:l.sourceId}),[e.appId,l.sourceId]),x=At({onComplete:B.delete,wait:Boolean(t.postPurchase.additionalTrackingScript)}),w=c(()=>x("extension"),[x]),T=c(()=>x("header"),[x]),I=o(()=>B.read(),[B]),P=o(()=>JSON.parse(e.inputData),[e.inputData]),[E,L]=s(void 0),C=K({source:E,logMessage:"[PostPurchase] Action required modal iframe loaded; this does not prove issuer challenge rendered",telemetryContext:{modalSourceType:"post_purchase_three_ds_modal_url"}}),[N,A]=s(void 0);i(()=>{if(N)return window.addEventListener("message",N),()=>window.removeEventListener("message",N)},[N]);const W=c(()=>{L(void 0),A(void 0)},[]),j=a(an()),$=c(()=>{j.current=an()},[]),q=t.hasFlagEnabled(D),O=c(()=>{try{if("function"!=typeof window?.PAYPAL?.asyncData?.initAndCollect)throw new rn("PayPal global is not available");window.PAYPAL.asyncData.initAndCollect()}catch(e){const r=e instanceof Error?e.message:`${e}`;u.error(new rn(r,{cause:e}),{severity:"error",errorClass:rn.name})}},[u]),H=c((e,r)=>(L(e.redirectUrl),new Promise(n=>{const o=setTimeout(()=>{W(),n({...jt,changesetApplicationsRemaining:e.changesetApplicationsRemaining})},X),t=async({data:e})=>
1{if(e.type===Z){clearTimeout(o),W();const e=await g.appliedChangeset(r);f(Date.now()),n(e)}};A(()=>t)})),[g,W]),G=c(async(e,r)=>{let n=Date.now(),o=0,t=e,a=!1;for(;!a;){if(Yr(t))t=await H(t,r),o=0,n=Date.now();else{if(!Kr(t))break;o+=1,await Xr(o),t=await g.appliedChangeset(r)}a=1e4<=Date.now()-n}return a?(u.counter({name:"PostPurchase_page_async_payment_polling_timeout",value:1,attributes:y}),{...$t,changesetApplicationsRemaining:e.changesetApplicationsRemaining}):(o>0&&u.histogram({name:"PostPurchase_page_async_payment_polling_duration",value:Date.now()-n,attributes:y}),f(Date.now()),t)},[g,H,u,y]),J=c(async(e,r)=>{let n=r;q&&b.value&&(O(),n={...r,paymentGatewaySessionId:j.current});const o=await g.applyChangeset(e,n);return $(),G(o,e)},[g,q,b,$,O,G]),U=c(({mark:e,timestamps:r={}})=>{switch(e){case"loaded":"loaded"===e&&r.loaded&&u.histogram({name:"PostPurchase_page_sandbox_duration",value:r.loaded,attributes:y});break;case"initialRenderCompleted":r.initialRenderCompleted&&r.loaded&&u.histogram({name:"PostPurchase_page_initial_render_duration",value:r.initialRenderCompleted-r.loaded,attributes:y});break;case"firstContentfulRenderCompleted":r.firstContentfulRenderCompleted&&r.loaded&&u.histogram({name:"PostPurchase_page_first_contentful_render",value:r.firstContentfulRenderCompleted-r.loaded,attributes:y}),window.performance&&u.histogram({name:"PostPurchase_page_time_to_first_render",value:performance.now(),attributes:y})}},[u,y]),V=c(()=>{u.counter({name:"PostPurchase_page_uncaught_client_error",value:1,attributes:y}),x("extension_error")},[x,u,y]);return n(bn,{onHeaderClick:T,children:[n(ee,{source:E,title:d.translate("processing.action_required"),onIframeLoad:C}),n(we,{translate:k,shop:t,children:n(Qr,{theme:p,children:n(Rt,{developmentMode:h,onStopwatchMark:U,onError:V,scriptUrl:e.scriptUrl,liveReload:m,input:{done:w,locale:d.locale,inputData:P,applyChangeset:J,calculateChangeset:g.calculateChangeset,extensionPoint:"Checkout::PostPurchase::Render",version:"unstable",storage:{initialData:I,update:B.write}}})})}),n(_,{when:b,children:n(mn,{shopId:P.shop.id,checkoutSessionIdentifier:P.initialPurchase.referenceId,paymentGatewaySessionId:j.current,fraudnetMultioffersEnabled:q})}),n(hn,{lastChangeTimestamp:v})]})}export{Ot as PostPurchaseInner,qt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.