@soma-vertical-web/multi-lib 0.0.24 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/cms/Sections/Banner/Composite/Content.d.ts +1 -1
  2. package/cms/Sections/TextContent/Component.d.ts +1 -1
  3. package/cms/Sections/TextContent/Composite/ContentWrapper.d.ts +1 -1
  4. package/cms/index.d.ts +2 -2
  5. package/data/helpers/product/generalInfo.d.ts +1 -0
  6. package/index.js +41 -4
  7. package/index.mjs +7954 -4155
  8. package/layout/index.d.ts +11 -10
  9. package/layout/team-component/Footer/Composite/Devices/Column.Mobile.d.ts +1 -1
  10. package/layout/team-component/Footer/Composite/Support/index.d.ts +3 -0
  11. package/layout/team-component/Footer/Composite/Support/item.d.ts +3 -0
  12. package/layout/team-component/Footer/Footer.d.ts +1 -1
  13. package/layout/team-component/Footer/index.d.ts +4 -1
  14. package/layout/team-component/TipBar/Composite/Fields/FieldsScreening.d.ts +1 -1
  15. package/layout/team-component/TipBar/Composite/Fields/TextContent.d.ts +1 -1
  16. package/layout/team-component/TipBar/Composite/Root.d.ts +3 -1
  17. package/layout/team-component/TipBar/index.d.ts +1 -1
  18. package/layout/utils/DraftJsLinkWrapper/index.d.ts +5 -0
  19. package/package.json +1 -1
  20. package/style.css +1 -1
  21. package/types/cms/ContentTypes/Footer/index.d.ts +30 -0
  22. package/types/cms/Sections/Banner/index.d.ts +3 -0
  23. package/types/cms/Sections/TextContent/index.d.ts +7 -2
  24. package/types/constants.d.ts +2 -1
  25. package/types/contexts/contexts/cart/index.d.ts +1 -2
  26. package/types/contexts/store/cart.d.ts +3 -2
  27. package/types/data/api/search/product/index.d.ts +1 -1
  28. package/types/layout/team-components/Footer/index.d.ts +3 -0
  29. package/types/layout/team-components/TipBar/index.d.ts +6 -1
  30. package/types/layout/utils/index.d.ts +6 -0
package/index.js CHANGED
@@ -1,4 +1,41 @@
1
- "use strict";var Xs=Object.defineProperty;var Qs=(e,t,n)=>t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ht=(e,t,n)=>Qs(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),x=require("react"),Se=require("idb-keyval"),$e=require("zustand"),p=require("@soma-vertical-web/core-components"),fe=require("draft-js"),ze=require("@soma-vertical-web/foundations"),Tn=require("@date-fns/tz"),Ys=require("react-dom"),On=require("axios"),an=x.createContext({}),Zs=({data:e,children:t})=>o.jsx(an.Provider,{value:{tags:e==null?void 0:e.config},children:t}),wr=()=>{const{tags:e}=x.useContext(an),t=x.useCallback(n=>{var i,c,l,u;const r=(c=(i=e==null?void 0:e.commercial)==null?void 0:i.items)==null?void 0:c.find(f=>{var m;return(m=n??[])==null?void 0:m.find(d=>d.id===f.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var m;return(m=n??[])==null?void 0:m.find(d=>d.id===f.key)}),a=e==null?void 0:e.flagPdp;return{commercial:r,institucional:s,flagPdp:a}},[e]);return{tags:e,getAvailableProductTag:t}},Er=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Rr=x.createContext({}),Js=({children:e,gridScrollBack:t})=>{const n=x.useRef(null);return Er({gridScrollBack:t}),o.jsx(Rr.Provider,{value:{sizesContainerRef:n},children:e})},ea=()=>{const e=x.useContext(Rr);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},me=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),Tr=({valueInCents:e,hasFree:t,freeTaxMessage:n})=>e===0?t?n:me(0):me(e/100),cn=(e,t)=>{const[n,r]=e.split(t);return{name:n.trim(),size:r?r.trim():""}},ln=(e,t)=>{if(!e)return{};const[n,r]=e.split(t);return{color:n==null?void 0:n.trim(),size:r==null?void 0:r.trim()}},Or=(e,t="tamanho")=>{if(e.additionalProperty){const[n]=e.additionalProperty;return n!=null&&n.name?n.name.toLocaleLowerCase()===t?n.value:e.name:""}return e.name},ta=e=>e.replace(/\//g,""),Ar=({items:e,NAME_SPLIT_SYMBOL:t})=>{const n={price:0,listPrice:0,installments:{count:0,value:0}},r=(i,c)=>{var d;c&&(c.sellerId=i.sellerId,c.sellerName=i.sellerName,c.available=!0,c.isSellerDefault=i.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:f}}=i.commertialOffer;n.price=l,n.listPrice=u;const m=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(m){const{count:_,value:g}=m[m.length-1];n.installments={count:_,value:g/100}}};let s=!0;const a=e.reduce((i,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??cn(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(m=>(m.sellerDefault&&m.commertialOffer.IsAvailable&&(l.available=!0,r(m,l)),m.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,r(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(s=!1),i.push(l),i},[]);return{...n,sizes:a,allSizesAvailable:s}},Mr=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,kr=(e,t)=>{const n=e.find(r=>r.availability.includes("InStock")&&r.quantity&&r.listPrice>0&&r.seller.identifier===t);return n||e.find(r=>r.availability.includes("InStock")&&r.quantity&&r.listPrice>0)},Dr=e=>e.find(t=>t.imageLabel==="10"),Lr=(e,t)=>{const n=/\/ids\/(\d+)\//,r=e.match(n);return r?e.replace(`/${r[1]}/`,`/${r[1]}-${t.width}-${t.height}/`):e},zr=(e,t)=>{const n=/\/ids\/(\d+)-(\d+)-(\d+)\//,r=e.match(n);return r?e.replace(`/${r[1]}-${r[2]}-${r[3]}/`,`/${r[1]}-${t.width}-${t.height}/`):e},qr=({images:e,label:t})=>{const n=e.filter(r=>r.keywords===t.first||r.keywords===t.second||r.alternateName===t.first||r.alternateName===t.second);return n.length===0?[e[0]]:n},na=e=>{const[t,n]=e.split("/").map(Number);if(Number.isNaN(t)||Number.isNaN(n))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return n/t},$r=(e,t,n)=>{t&&(e?(t.getAttribute("src")||(t.src=n??""),t.play()):t.pause())},ra=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Mr,formatPriceToCurrency:me,freightParsePrice:Tr,getAspectRatio:na,getColorAndSizeFromSkuName:ln,getFirstImages:qr,getSKUName:Or,getSkuInfos:Ar,getThumbImage:Dr,getValidOffer:kr,removeSlashes:ta,resizingImg:Lr,setVideoPlay:$r,splitNameAndSizeFromFullName:cn,updatedResizedImg:zr},Symbol.toStringTag,{value:"Module"})),he=({event:e,data:t})=>{const n=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&n.push({ecommerce:null}),n.push({...e&&{event:`custom_${e}`},...t})},U={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:n,commonData:r,customData:s,promotionInfo:a,itemList:i,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=r,m={...n==="view_item"?{currency:U.configs.currency,value:f,grade_disponivel:l??(u?Br(u):"")}:{},...n==="add_to_wishlist"||n==="remove_from_wishlist"?{value:f,currency:U.configs.currency}:{}},d=Ke({data:r,customData:{...s,...i,...a},configs:U.configs});he({event:n,data:{...c,ecommerce:{...i,...m,items:[d]}}}),typeof t=="function"&&t(d,m)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:n,itemList:r,outsideEcommerceData:s,customData:a}=e;if(t.length===0)return;const i=t.map(({node:c},l)=>Ke({data:{...c},customData:{...n,index:l,...a!=null&&a.item_list_name?{item_list_name:a==null?void 0:a.item_list_name}:r},configs:U.configs}));he({event:"view_item_list",data:{...s,ecommerce:{...a!=null&&a.item_list_name?{item_list_name:a==null?void 0:a.item_list_name}:r,items:i}}})},skuEvents:e=>{const{event:t,commonData:{products:n},customData:r,supportData:{selectedSkus:s,price:a},promotionInfo:i,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=n.map(m=>{var h,y,v,N,S,b,C,j,I;const d=s==null?void 0:s.find(P=>(m.productId??m.id)===P.productId);let _={...i,...c};if(d){const P=Hr(),R=Ur(P,d);R&&(_={..._,...R}),t==="add_to_cart"&&(i||c)&&Gt({persistedData:P,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:i,itemList:c}}),t==="remove_from_cart"&&Gt({persistedData:P,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=m.price??((v=(y=(h=d==null?void 0:d.offers)==null?void 0:h.offers)==null?void 0:y[0])==null?void 0:v.price)??0;const g=(d==null?void 0:d.size)??ln((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((N=m.itemOffered)==null?void 0:N.skuName),U.configs.NAME_SPLIT_SYMBOL).size;return Ke({data:m,customData:{...r,..._??{...i,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((S=m.itemOffered)==null?void 0:S.sku),quantity:(r==null?void 0:r.quantity)??m.quantity??1,item_variant2:g,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((I=(j=(C=(b=d==null?void 0:d.offers)==null?void 0:b.offers)==null?void 0:C[0])==null?void 0:j.seller)==null?void 0:I.identifier)??m.seller},configs:U.configs})});he({event:t,data:{...l,ecommerce:{value:a??u,currency:U.configs.currency,items:f}}})},filterEvent:e=>{var i;const{commonData:t,customData:n,outsideEcommerceData:r}=e,s={},a={};Array.isArray(t==null?void 0:t.selectedFacets)&&((i=t==null?void 0:t.selectedFacets)!=null&&i.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var m;const u=((m=U.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:m.eventLabel)??c,f=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...f,l]}),Object.keys(s).forEach(c=>a[c]=s[c].join(", "))),he({event:"filter",data:{...r,...a,...n}})},viewCartEvent:e=>{var f,m,d,_,g,h,y,v,N,S;const{commonData:t,outsideEcommerceData:n}=e,{cartStore:r}=t;if(!r)return;const s=window.localStorage.getItem("persistedCartEventsData"),a=s?JSON.parse(s):{},i=r.items.map(b=>{const{promotionInfo:C,itemList:j}=a[b.id]??{};return Ke({data:{...b,price:b.price/100,listPrice:b.listPrice/100},customData:{...C,...j,item_sku:b.id??b.itemOffered.sku,quantity:b.quantity??1},configs:U.configs})}),c=(((f=r.totalizers.find(b=>b.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((m=r.totalizers.find(b=>b.name==="Total dos Descontos"))==null?void 0:m.value)??0)/100,u=((d=r.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(_=r.marketingData)==null?void 0:_.utmCampaign:(h=String((g=r.openTextField)==null?void 0:g.value))==null?void 0:h.split(" - ")[0];he({event:"view_cart",data:{...n,ecommerce:{currency:U.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((v=(y=r.shippingData)==null?void 0:y.address)!=null&&v.postalCode),...u?{seller_coupon_name:u}:{},...((N=r.marketingData)==null?void 0:N.coupon)&&{sale_coupon_name:(S=r.marketingData)==null?void 0:S.coupon},subtotal:c,items:i}}})},readyEvents:e=>{const{event:t,readyData:n}=e;he({event:t,data:{...n}})}},Br=e=>e.reduce((t,n)=>(n.available&&t.push(n.value),t),[]).toString(),oa=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(U.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Ke=({data:e,customData:t,configs:n})=>({...sa(e,n==null?void 0:n.MAIN_IMAGE),...aa(e),...ia(e),...ca(e),...t}),Fr=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},Hr=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Ur=(e,t)=>e==null?void 0:e[t],Gt=({persistedData:e,type:t,sku:n,newData:r})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[n]:r}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[n]:r}));return}e&&t==="remove"&&(delete e[n],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},sa=(e,t="1")=>{var a,i,c,l,u,f,m,d,_,g,h;const n=e.productReference??e.gtin??e.productRefId,r=e.image??((i=(a=e.items)==null?void 0:a[0])==null?void 0:i.images)??((c=e.itemOffered)==null?void 0:c.image),s=r==null?void 0:r.find(y=>y.alternateName===t||y.imageLabel===t||y.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((m=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:m.productGroupID),item_ref:/_\d$/.test(n)?n.slice(0,-2):n,item_name:e.productTitle??e.productName??e.name??cn((d=e.itemOffered)==null?void 0:d.name,U.configs.NAME_SPLIT_SYMBOL).name,item_brand:((_=e.brand)==null?void 0:_.brandName)??((g=e.brand)==null?void 0:g.name)??e.brand??((h=e.itemOffered)==null?void 0:h.brand.name),item_url:`${U.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},An=e=>Array.isArray(e)?e.reduce((t,n)=>(n.length>t.length&&(t=n),t),""):e,aa=e=>{var u,f;const{categories:t,categoriesIds:n}=e,r=t??((u=e.itemOffered)==null?void 0:u.categories),s=n??((f=e.itemOffered)==null?void 0:f.categoriesIds),a=An(r),i=An(s),c=a.slice(1,-1).split("/"),l=i.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(U.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:l[l.length-1],...l.length>1&&{item_parent_category_id:l[l.length-2]}}},ia=e=>{var s,a,i,c,l,u;const t=((s=e.itemOffered)==null?void 0:s.skuName)??((c=(i=(a=e.isVariantOf)==null?void 0:a.hasVariant)==null?void 0:i[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:n,size:r}=ln(t,U.configs.NAME_SPLIT_SYMBOL);return{item_variant:n,...e.itemOffered&&{item_variant2:r}}},ca=e=>{var l,u;const{price:t,listPrice:n,installments:r}=e,s=t??((l=e.offers)==null?void 0:l.lowPrice)??0,a=n??((u=e.offers)==null?void 0:u.highPrice)??0,i=a?a-s:0,c=i%1===0?i:Number(i.toFixed(2));return{...t&&{price:s??a},...a&&{list_price:a,discount:c},...r&&{installments:r==null?void 0:r.count,installment_value:r==null?void 0:r.value},item_currency:U.configs.currency}},Wr=()=>{const[e,t]=Fr(),[n,r]=e.split("-"),s=n.includes("shop")||n.includes("sale")?n:"";return{page_category:s&&r?r:"",page_departament:s,id:t,name:e}},la=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:U,findDataInPersistedData:Ur,getAvailablesSizes:Br,getCategories:oa,getPageCategoryAndDepartmentFromSlug:Wr,getPersistedData:Hr,getProductListInfoFromHead:Fr,pushDatalayer:he,updatePersistedData:Gt},Symbol.toStringTag,{value:"Module"})),Vr=x.createContext({}),ua=({children:e,evtFunctionsConfigs:t})=>{const n=x.useRef({}),r=x.useRef(null),s=x.useRef(null),a=x.useRef({}),i=x.useRef({trigger:!1,index:0}),c=({functionKey:f,data:m,callBack:d,timeout:_=100})=>{window.dataLayer||(window.dataLayer=[]),U.configs=t;try{typeof U[f]=="function"&&setTimeout(()=>{var g;m.promotionInfo=n.current,(g=s.current)!=null&&g.item_list_name&&(m.itemList=s.current),U[f](m,d)},_)}catch(g){he({event:"error_event",data:{error_message:(g==null?void 0:g.message)??g}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:m,index:d})=>{f&&(n.current={...m}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...m,...d!==void 0&&{index:d}}}}})};return o.jsx(Vr.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:i,promotionEventRef:n,currentLocalRef:r,itemListRef:s,cartProductsFullDataRef:a,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},F=()=>x.useContext(Vr),Gr=x.createContext({}),da=({children:e,productData:t,isKit:n,PDP_INFO:r,NAME_SPLIT_SYMBOL:s})=>{var T,M;const{sendDataLayerEvent:a,triggerSelectItemEventRef:i}=F(),{productId:c,productName:l,items:u,items:[{images:f,Videos:m}],description:d,["Composição"]:_="",productReference:g,categories:[h]}=t,{getAvailableProductTag:y}=wr(),v=y(Object.entries(t.clusterHighlights).map(w=>({id:w[0],name:w[1]}))),N=h.slice(1,-1).split("/"),{installments:S,price:b,listPrice:C,sizes:j,allSizesAvailable:I}=Ar({items:u,NAME_SPLIT_SYMBOL:s}),P=Dr(f),R=[{label:`${r.product.description}`,value:"description",content:d},{label:`${r.product.materiais}`,value:"composition",content:_}],O=((M=(T=t.items)==null?void 0:T[0].name.split("-"))==null?void 0:M[0].trim())??t["Cores Filtráveis"]??[],z=()=>({commonData:{...t,sizes:j,price:b,listPrice:C,installments:S},customData:{installments:S==null?void 0:S.count,installment_value:Number(S==null?void 0:S.value).toFixed(2)}}),E=({sku:w,size:k})=>{const{commonData:q,customData:$}=z();a({functionKey:"productEvents",data:{event:"view_item",commonData:q,customData:{...$,...w&&{item_sku:w},...k&&{item_variant2:k}}}})};return x.useEffect(()=>{if(i.current.trigger){const{commonData:w,customData:k}=z();a({functionKey:"productEvents",data:{event:"select_item",commonData:w,customData:{...k,index:i.current.index}}}),i.current.trigger=!1}E({})},[]),o.jsx(Gr.Provider,{value:{productData:t,productId:c,productName:l,productReference:g,tag:v,items:u,sizes:j,allSizesAvailable:I,installments:S,price:b,listPrice:C,thumbImage:P,images:f,video:m[0],descriptionContent:R,breadcrumbList:N,isKit:n,colorName:O,handleViewItemEvent:E},children:e})},un=()=>{const e=x.useContext(Gr);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},fa={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},oe=Promise.resolve(!1),Kt={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>oe,addItem:()=>oe,addSellerCode:()=>oe,emptyCart:()=>{},removeItem:()=>oe,setIsOpen:()=>{},shipping:()=>oe,shippingUpdate:()=>oe,toggleServiceToProduct:()=>oe,updateItemQuantity:()=>oe,insertProfileEmail:()=>oe,setRecentlyAddedProducts:()=>{}},dn=e=>e===0,Kr=(e,t)=>{if(!e||e.length===0)return[];let n="";const r=[],s=e.match(/\d+/g)??[];for(const a of s){const i=t[Number(a)];i&&(n+=(n?"/":"")+i,r.push(n))}return r},Xr=e=>{const{availability:t,additionalInfo:{brandName:n},bundleItems:r,id:s,detailUrl:a,ean:i,imageUrl:c,name:l,listPrice:u,quantity:f,price:m,priceDefinition:d,productCategories:_,productCategoryIds:g,productId:h,refId:y,seller:v,referenceId:N,offerings:S,productRefId:b,skuName:C,sellingPrice:j}=e;return{availability:t,bundleItems:r,referenceId:N,productRefId:b,id:s,ean:i,itemOffered:{additionalProperty:[],brand:{name:n},categories:Kr(g,_),categoriesIds:g,gtin:y,image:[{alternateName:"1",url:c}],name:l,isVariationOf:{name:l,productGroupID:h},sku:s,slug:a,skuName:C},listPrice:u,quantity:f,offerings:S,price:m,priceDefinition:d,sellingPrice:j,seller:v}},Qr=(e,t)=>{const n=e.map(r=>({id:r.id,quantity:r.quantity,seller:r.seller}));return Array.isArray(t)?[...n,...t]:[...n,t]},Yr=(e,t)=>{const n=e.find(r=>r.id===t);if(n){const r=e.map((s,a)=>{var i,c;return{id:((i=s.itemOffered)==null?void 0:i.sku)??"",index:a,quantity:(n==null?void 0:n.id)===((c=s.itemOffered)==null?void 0:c.sku)?0:s.quantity,seller:s.seller??""}});return{updateItems:r,filterItems:r.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},Zr=(e,t,n)=>e.filter(r=>r.availability!=="withoutStock"&&r.availability!=="https://schema.org/OutOfStock").map((r,s)=>{var a,i;return r.id===t?{id:r.id,index:s,quantity:n,seller:r.seller,sku:((a=r.itemOffered)==null?void 0:a.sku)??""}:{id:r.id,index:s,quantity:r.quantity,seller:r.seller,sku:((i=r.itemOffered)==null?void 0:i.sku)??""}}),Xt=(e,t)=>e.filter(n=>n.availability!=="withoutStock").findIndex(({id:n})=>n===t),ma=(e,t)=>{var n;return Array.isArray(e)?(((n=e==null?void 0:e.find(r=>{var s;return((s=r==null?void 0:r.id)==null?void 0:s.toLowerCase())===t}))==null?void 0:n.value)??0)/100:0},pa=e=>{const t=e.reduce((s,a)=>{const i=dn(a.price)?0:a.quantity;return s+i},0),n=e.reduce((s,a)=>s+a.price*a.quantity,0),r=e.reduce((s,a)=>s+a.listPrice*a.quantity,0);return{totalItems:t,total:n,subTotal:r}},ha=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,n)=>t+(dn(n==null?void 0:n.price)?0:n.quantity),0):0,Jr=e=>{const{items:t,itemMetadata:n,marketingData:r,messages:s,orderFormId:a,openTextField:i,paymentData:c,shippingData:l,totalizers:u}=e;return{id:a,itemMetadata:n,items:Array.isArray(t)?t.map(Xr):[],marketingData:r,messages:s,openTextField:i,paymentData:c,shippingData:l,totalizers:u}},eo=(e,t)=>{const n=e.find(r=>r.id===t);return n?n.availability==="unavailableItemFulfillment":!1},_a=(e,t)=>{const n=e.sku,r=e.isVariantOf.hasVariant.find(s=>s.sku===n);return r?r.name.split(t)[1]:"--"},Ne=(e,t,n=!1)=>!e&&t!==""?{code:300,value:t,statusOk:n}:e===t?{code:200,value:t,statusOk:n}:{code:400,value:t,statusOk:n},ga=(e,t)=>{const n=new Set;return[e,...t].filter(r=>!n.has(r)&&n.add(r),n)},to=(e,t)=>t&&Array.isArray(t)&&t.find(r=>r.id===e)?Promise.resolve(e):Promise.resolve(!1),no=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),ro=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},oo=(e,t)=>{if(t!==-1){const n=Number(e);return n?n+1:1}return e??1},so=(e,t)=>Array.isArray(e)?e.filter(n=>t==null?void 0:t.some(r=>r.id===n.id)):[],ao=async(e,t)=>e.then(n=>[...n??[],...t??[]]),Q=async(e,t,n)=>{const{priority:r="auto",body:s}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:r,method:"POST",body:JSON.stringify(s)}).then(async a=>{const i=await a.json();return n?i:Jr(i)})},io=(e,t,n)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:n}]}),ya=e=>[...Array.isArray(e)?e:[e],"faststore"],va=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:fa,addItemOrder:Qr,addNotification:io,createItemOrder:Xr,fetchCartAPI:Q,findItemIndex:Xt,findOptions:so,findTotalizerValue:ma,getCategories:Kr,getCode:Ne,getQuantity:oo,getRemoveId:to,getSize:_a,getTotalItems:ha,getTotalizer:pa,getValue:no,initialState:Kt,isGift:dn,marketingTagsBuilder:ya,mergeOptionsPromise:ao,orderFormValues:Jr,promiseDefault:oe,removeQuantity:Yr,updateItemSellerExternal:eo,updateOrderFormPromise:ro,updateQuantity:Zr,wishlistArray:ga},Symbol.toStringTag,{value:"Module"})),xa=()=>{const e=async(d,_)=>Q("/api/checkout/order-form/coupon",{body:{orderFormId:d,coupon:_}}),t=async(d,_)=>{if(_){const g=_.includes(" - ")?_.split(" - ")[0]:_,h=await Q("/api/checkout/order-form/seller-code",{body:{orderFormId:d,sellerCode:g}},!0);return Q("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:g,sellerName:h instanceof Object&&"nome"in h?h==null?void 0:h.nome:""}}).then(y=>({...y,openTextField:{...(y==null?void 0:y.openTextField)??{},statusOk:(h==null?void 0:h.status)??!1}}))}else return Q("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:"",sellerName:""}})},n=async(d,_,g)=>Q("/api/checkout/order-form/items",{body:{orderFormId:d,orderItems:Qr(_,g)}}),r=async(d,_,g,h)=>Q("/api/checkout/order-form/offerings",{body:{id:_,itemIndex:g,orderFormId:d,remove:h}}),s=async d=>Q("/api/checkout/order-form/items/remove-all",{body:{orderFormId:d}}),a=async(d,_="low")=>Q("/api/checkout/order-form",{priority:_,body:{orderFormId:d??""}}),i=async(d,_)=>Q("/api/checkout/order-form/profile",{body:{orderFormId:d,email:_}}),c=async(d,_,g)=>{const h=Yr(_,g);return Q("/api/checkout/order-form/items/update",{body:{orderItems:h.updateItems,orderFormId:d}})},l=async(d,_,g)=>Q("/api/checkout/order-form/shipping",{body:{orderFormId:d,country:g,postalCode:_}}),u=async(d,_,g)=>Q("/api/checkout/order-form/shipping/update",{body:{orderFormId:d,options:_,selectedAddresses:g}}),f=async(d,_,g,h)=>{const y=Zr(_,g,h);return Q("/api/checkout/order-form/items/update",{body:{orderFormId:d,orderItems:y}})};return{addCoupon:e,addItem:n,addSellerCode:t,giftItem:r,emptyCart:s,getOrderForm:a,insertProfileEmail:i,removeItem:c,shipping:l,shippingUpdate:u,updateItemQuantity:async(d,_,g,h,y)=>f(d,_,g,h).then(v=>v&&Array.isArray(v.items)?eo(v.items,g)?f(d,_,g,y):v:!1)}},Qt="soma::cart",De="soma::options",we=$e.create((e,t)=>{const n=xa(),r=async(s,a,i)=>{e({loading:!0});const c=await ro(s);if(typeof c!="boolean"){e({...c});const l=await ao(Se.get(De),i);return Se.set(De,l),no(c,a).finally(()=>e({loading:!1,options:l}))}return oe};if(typeof window<"u"){const s=async a=>{if(a){const i=await Se.get(De).then(u=>so(u,a.items));Se.set(Qt,a),Se.set(De,i),e({...a,options:i});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&r(()=>n.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return Se.get(Qt).then(a=>n.getOrderForm(a?a.id:"").then(s)),{...Kt,addCoupon:async a=>r(()=>n.addCoupon(t().id,a),"marketingData"),addItem:(a,i)=>{r(()=>n.addItem(t().id,t().items,a),"items",i)},addSellerCode:async a=>r(()=>n.addSellerCode(t().id,a),"openTextField"),emptyCart:()=>{r(()=>n.emptyCart(t().id))},removeItem:async a=>{const i=await r(()=>n.removeItem(t().id,t().items,a),"items");return to(a,i)},shipping:async(a,i="BR")=>r(()=>n.shipping(t().id,a,i),"shippingData"),shippingUpdate:async a=>r(()=>{var i;return n.shippingUpdate(t().id,a,(i=t().shippingData)==null?void 0:i.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(a,i,c)=>r(()=>n.giftItem(t().id,a,i,c),"items"),updateItemQuantity:async(a,i,c)=>{const{id:l,items:u}=t();return r(()=>{var f;return n.updateItemQuantity(l,u,a,i,((f=u.find(m=>m.id===a))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async a=>r(()=>n.insertProfileEmail(t().id,a),"clientProfileData"),setIsOpen:a=>e({isOpen:a})}}return Kt}),ba=()=>we(e=>e),co=$e.create(e=>({notifications:[],actions:{addNotification:(t,n)=>e(r=>io(r,t,n)),removeNotification:t=>e(n=>({notifications:n.notifications.filter(r=>r.id!==t)}))}})),lo=()=>co(e=>e.notifications),uo=()=>co(e=>e.actions),Ca=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:De,KEY_INDEXED_STORE:Qt,useCartStore:we,useGetCartStoreState:ba,useGetNotificationActions:uo,useGetNotificationsStore:lo},Symbol.toStringTag,{value:"Module"})),ja=6e3,fo=x.createContext({}),mo=({children:e,...t})=>{const{items:n}=we(),[r,s]=x.useState([]),a=x.useRef(null),i=x.useMemo(()=>Array.isArray(r)&&r.length>0?r.map(c=>n.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[n,r]);return x.useEffect(()=>{r.length&&(clearTimeout(a.current??0),a.current=setTimeout(()=>{s([])},ja))},[r]),o.jsx(fo.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:i}),[t,s,i]),children:e})},Be=()=>{const e=x.useContext(fo);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class po{constructor(){ht(this,"events",{});ht(this,"prevData",{})}subscribe(t,n){return this.events[t]||(this.events[t]=[]),this.events[t].push(n),()=>{this.events[t]=this.events[t].filter(r=>r!==n)}}publish(t,n){this.events[t]&&this.events[t].forEach(r=>{this.prevData[t]=n,r(n)})}}const ho=x.createContext({}),Sa=({children:e,headerConfigs:t,pathname:n,...r})=>{const[s,a]=x.useState(!0),i=n==="/",c=x.useRef(new po),l=m=>m?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},u=l(i),f=x.useRef(u);return x.useEffect(()=>{const m=()=>{const d=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,_=window.innerWidth<1024||!!d.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);s!==_&&a(_)};return m(),window.addEventListener("resize",m,{passive:!0}),()=>window.removeEventListener("resize",m)},[s]),x.useEffect(()=>{const m=l(i);c.current.publish("header:change_variant",m.headerVariant),c.current.publish("header:change_position",m.position),f.current=m},[i]),o.jsx(ho.Provider,{value:{isMobile:s,mediatorRef:c,currentHeaderConfigsRef:f,...r},children:o.jsx(mo,{children:e})})},pe=()=>x.useContext(ho),_o=x.createContext({}),Ia=({children:e,...t})=>o.jsx(_o.Provider,{value:{...t},children:e}),ae=()=>x.useContext(_o),ve=(e,t)=>$e.create(n=>{const r=()=>n({value:e});return t&&t instanceof Set&&t.add(r),{value:e,actions:{setValue:s=>n({value:s}),reset:r}}}),qe={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},Fe=new Set,Na=()=>{Fe.forEach(e=>{e()})},go=$e.create((e,t)=>{const n=()=>e({value:qe.category});return Fe.add(n),{value:qe.category,actions:{reset:n,setValue:r=>e(()=>({value:r})),updateValue:r=>{t().value!==r&&e({value:r})}}}}),ft=()=>go(e=>e.value),_e=()=>go(e=>e.actions),yo=ve(qe.menuMobileIsOpen,Fe),fn=()=>yo(e=>e.value),xe=()=>yo(e=>e.actions),vo=ve(qe.searchModalIsOpen,Fe),Pa=()=>vo(e=>e.value),mn=()=>vo(e=>e.actions),xo=ve(qe.userMenuIsOpen,Fe),wa=()=>xo(e=>e.value),pn=()=>xo(e=>e.actions),Ea=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Na,useActionsHeaderCategory:_e,useActionsMenuMobileIsOpen:xe,useActionsSearchModalIsOpen:mn,useActionsUserMenuIsOpen:pn,useGetHeaderCategoryStore:ft,useGetMenuMobileIsOpen:fn,useGetSearchModalIsOpen:Pa,useGetUserMenuIsOpen:wa},Symbol.toStringTag,{value:"Module"})),Ee={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},Re=new Set,Ra=()=>{Re.forEach(e=>{e()})},bo=$e.create(e=>{const t=()=>e({value:Ee.selectedSkuInfo});return Re.add(t),{value:Ee.selectedSkuInfo,actions:{setValue:n=>e(r=>({value:{...r,...n}})),reset:t}}}),Ta=()=>bo(e=>e.value),Oa=()=>bo(e=>e.actions),Co=ve(Ee.openLetMeKnow,Re),Aa=()=>Co(e=>e.value),Ma=()=>Co(e=>e.actions),jo=ve(Ee.showNotify,Re),ka=()=>jo(e=>e.value),Da=()=>jo(e=>e.actions),So=ve(Ee.showBottomNavigation,Re),La=()=>So(e=>e.value),za=()=>So(e=>e.actions),Io=ve(Ee.openMeasurements,Re),qa=()=>Io(e=>e.value),$a=()=>Io(e=>e.actions),Ba=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Ra,useActionsPDPOpenLetMeKnow:Ma,useActionsPDPOpenMeasurements:$a,useActionsPDPSelectedSkuInfo:Oa,useActionsPDPShowBottomNavigation:za,useActionsPDPShowNotify:Da,useGetPDPOpenLetMeKnow:Aa,useGetPDPOpenMeasurements:qa,useGetPDPSelectedSkuInfo:Ta,useGetPDPShowBottomNavigation:La,useGetPDPShowNotify:ka},Symbol.toStringTag,{value:"Module"})),No=x.createContext({}),Fa=({children:e,headerData:t,...n})=>{var l,u;const r=x.useRef(null),s=x.useRef(null),a=x.useRef(null),{mediatorRef:i,currentHeaderConfigsRef:c}=pe();return(l=i.current)==null||l.subscribe("header:change_variant",f=>{var h,y,v;if(f&&c.current&&(c.current.bannerVariant=f),!r.current)return;const d=document.body.scrollTop>0,_=r.current.getAttribute("data-interactiveVariant"),g=d?_:f??((h=c.current)==null?void 0:h.bannerVariant)??"default";g!==((y=c.current)==null?void 0:y.headerVariant)&&(r.current.setAttribute("data-bottomdivider",String(d)),r.current.setAttribute("data-variant",String(g)),(v=i.current)==null||v.publish("herobanner:change_controllers_variant",g),c.current&&(c.current.headerVariant=g))}),(u=i.current)==null||u.subscribe("header:change_position",f=>{r.current&&(r.current.style.position=f)}),x.useEffect(()=>{const f=new AbortController,m=p.helpers.throttle(()=>{var _;return(_=i.current)==null?void 0:_.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:f.signal});const d=_=>{var h;(h=_.target.closest("a"))==null||h.blur()};return r.current&&(r.current.addEventListener("click",d,{signal:f.signal}),r.current.addEventListener("touchend",d,{signal:f.signal})),()=>{f.abort()}},[]),o.jsx(No.Provider,{value:{headerData:t,structureRef:s,rootRef:r,tipbarRef:a,...n},children:e})},G=()=>x.useContext(No),Po=x.createContext({}),wo=({children:e})=>{const t=x.useRef(null),n=x.useRef(null),r=fn(),s=x.useCallback(()=>{var a;{const i=(a=t.current)==null?void 0:a.querySelector("dialog");if(i){i.dataset.animation="out";const c=i.children[0];c.dataset.animation="out"}}},[]);return x.useEffect(()=>{var a;if(r)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const i=(a=n.current)==null?void 0:a.querySelector("dialog");if(i){i.dataset.animation="out";const c=i.children[0];c.dataset.animation="out"}}},[r]),x.useEffect(()=>{n.current=document.body},[]),o.jsx(Po.Provider,{value:{bodyRef:t,handleCloseSubMenu:s,documentBodyRef:n},children:e})},He=()=>x.useContext(Po),Ha=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Ua=(e,t,n)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const r=t.getBoundingClientRect(),s=e.getBoundingClientRect(),a=e!=null&&e.parentElement?Ha(e==null?void 0:e.parentElement):0;return{left:r.left+r.width/2-(s.width+a),top:r.top+r.height+n}},Eo=x.createContext({}),Ro=({children:e,delay:t=600,gap:n=20,...r})=>{const[s,a]=x.useState(!1),i=x.useRef(null),[c,l]=x.useState(!1),[u,f]=x.useState({left:0,top:0}),m=x.useCallback(()=>{l(!0),typeof window<"u"&&(i.current=window.setTimeout(()=>{a(!1),l(!1)},t))},[l,a,t]);return x.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),_=window.document.querySelector("#add-to-cart--tooltip");if(d&&_){const{left:g,top:h}=Ua(_,d,n??0);f({left:g,top:h}),l(!1)}},[n,s]),o.jsx(Eo.Provider,{value:x.useMemo(()=>({...r,...u,handleClose:m,isLeaving:c,isOpen:s,setIsOpen:a,setIsLeaving:l}),[r,u,m,c,s,a,l]),children:e})},be=()=>{const e=x.useContext(Eo);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},To=x.createContext({}),Wa=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...n})=>{const r=we(),{setRecentlyAdded:s}=Be(),a=lo(),{addNotification:i,removeNotification:c}=uo(),{addCoupon:l,addItem:u,addSellerCode:f,emptyCart:m,isOpen:d,removeItem:_,shipping:g,shippingUpdate:h,toggleServiceToProduct:y,updateItemQuantity:v}=r,N=x.useCallback(async(E,T)=>(T==="coupon"?l(E):f(E)).then(w=>{if(typeof w!="boolean"&&w instanceof Object){if(T==="seller"&&"value"in w){const{statusOk:k,value:q}=w,$=String(q??"").split(" - ");return Ne(($==null?void 0:$[0])??"",E,!!k)}return Ne(String(w.coupon),E,!0)}return Ne("","")}).catch(()=>Promise.resolve({code:400})),[l,f]),S=x.useCallback((E,T,M)=>{const{id:w}=E;v(w,T,M)},[v]),b=x.useCallback((E,T,M=!1)=>{if(!E)return;const{id:w}=E,k=Xt(r.items,w);if(k!==-1&&!M){const q=Number(r.items[k].quantity),$=r.items[k]?q+1:1;S(E,$,T)}else u({id:w,quantity:(E==null?void 0:E.quantity)??1,seller:E.seller});d||s(q=>[...q,E])},[u,S,r.items,d,s]),C=x.useCallback((E,T)=>{if(!E||!Array.isArray(E))return;s(w=>[...w,...E]);const M=E.map(w=>{const{id:k,quantity:q,seller:$}=w,W=Xt(r.items,k),Y=oo(q??1,W);return{id:k,quantity:Y,seller:$}});u(M,T)},[u,r.items,s]),j=x.useCallback(async(E,T,M)=>E?_(E).then(()=>(i(T??`${t}`,M),Ne(E,E))):Promise.resolve(Ne("","Product id required")),[i,_]),I=x.useCallback(()=>{r.items.length>0&&m()},[m,r.items]),P=x.useCallback((E,T="BRA")=>g(E,T),[g]),R=x.useCallback(E=>{E&&h(E)},[h]),O=x.useCallback(async(E,T,M)=>{const w=r.items.findIndex(q=>q.id===E);return r.items[w]&&w>=0?y(T,w,M??!1):!1},[r.items,y]),z=x.useCallback(async(E,T)=>v(E,T).then(M=>{if(Array.isArray(M)){const w=M.find(k=>k.id===E);if(w&&(w==null?void 0:w.quantity)<T)return String(w.quantity)}return!1}),[v]);return o.jsx(To.Provider,{value:x.useMemo(()=>({...n,addCouponSeller:N,addToCart:b,addItemsToCart:C,cartStore:r,notifications:a,clearCart:I,addNotification:i,isOpen:r.isOpen,removeNotification:c,removeToCart:j,setIsOpen:r.setIsOpen,shipping:P,shippingUpdateOption:R,toggleGiftItemCart:O,updateItemQuantity:z}),[n,N,b,C,a,I,i,r,c,j,P,R,O,z]),children:e})},Te=()=>{const e=x.useContext(To);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Va={contexts:{addToCart:{hook:be,provider:Ro},cart:{hook:Te,provider:Wa},cms:{FlagsAndTags:{context:an,hook:wr,provider:Zs}},events:{hook:F,provider:ua},global:{hook:pe,provider:Sa,mediator:po},header:{hook:G,provider:Fa},menuMobile:{hook:He,provider:wo},next:{hook:ae,provider:Ia},pdp:{provider:Js,hook:ea},pdpdata:{hook:un,provider:da},ui:{hook:Be,provider:mo}},hooks:{useBackPDC:Er},stores:{cart:Ca,header:Ea,pdp:Ba}};function Oo(e){const n=decodeURIComponent(window.document.cookie).split(";");for(const r of n){const[s,a]=r.trim().split("=");if(s===e)return a}}function Ao(e,t,n={}){const s={...{path:"/",expires:new Date(Date.now()+36e5)},...n};let a=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const i in s)s[i]!==void 0&&(a+=`; ${i}`,i==="expires"?a+=`=${s[i].toUTCString()}`:typeof s[i]=="boolean"?a+=`; ${s[i]?"true":"false"}`:a+=`=${s[i]}`);window.document.cookie=a}const Ga=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Ka(e,t=1e3){let n=!1;return(...r)=>{n||(e(...r),n=!0,setTimeout(()=>{n=!1},t))}}function Xa(e,t=1e3){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}const Mo=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,Le=(e,t)=>Math.floor(t==="days"?e/(1e3*60*60*24):t==="hours"?e%(1e3*60*60*24)/(1e3*60*60):t==="minutes"?e%(1e3*60*60)/(1e3*60):e%(1e3*60)/1e3),Qa=Object.freeze(Object.defineProperty({__proto__:null,debounce:Xa,getCookie:Oo,getDaysHoursMinutesSeconds:Le,getMilliSeconds:Mo,removeAccentsAndReplaceSpaces:Ga,setCookie:Ao,throttle:Ka},Symbol.toStringTag,{value:"Module"})),Ya={cart:va,events:la,product:ra,utils:Qa},ko={helpers:Ya};function hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yt={exports:{}},se={};se._=se._interop_require_default=Za;function Za(e){return e&&e.__esModule?e:{default:e}}var Xe={exports:{}},_t={},Mn;function Do(){return Mn||(Mn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return s},assign:function(){return a}});function n(i){const c={};return i.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function r(i){return typeof i=="string"||typeof i=="number"&&!isNaN(i)||typeof i=="boolean"?String(i):""}function s(i){const c=new URLSearchParams;return Object.entries(i).forEach(l=>{let[u,f]=l;Array.isArray(f)?f.forEach(m=>c.append(u,r(m))):c.set(u,r(f))}),c}function a(i){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(f=>{Array.from(f.keys()).forEach(m=>i.delete(m)),f.forEach((m,d)=>i.append(d,m))}),i}}(_t)),_t}var gt={},Qe={},kn;function Lo(){if(kn)return Qe;kn=1;function e(n){if(typeof WeakMap!="function")return null;var r=new WeakMap,s=new WeakMap;return(e=function(a){return a?s:r})(n)}Qe._=Qe._interop_require_wildcard=t;function t(n,r){if(!r&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var s=e(r);if(s&&s.has(n))return s.get(n);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if(c!=="default"&&Object.prototype.hasOwnProperty.call(n,c)){var l=i?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(a,c,l):a[c]=n[c]}return a.default=n,s&&s.set(n,a),a}return Qe}var Dn;function zo(){return Dn||(Dn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}t(e,{formatUrl:function(){return a},urlObjectKeys:function(){return i},formatWithValidation:function(){return c}});const r=Lo()._(Do()),s=/https?|ftp|gopher|file/;function a(l){let{auth:u,hostname:f}=l,m=l.protocol||"",d=l.pathname||"",_=l.hash||"",g=l.query||"",h=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?h=u+l.host:f&&(h=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(h+=":"+l.port)),g&&typeof g=="object"&&(g=String(r.urlQueryToSearchParams(g)));let y=l.search||g&&"?"+g||"";return m&&!m.endsWith(":")&&(m+=":"),l.slashes||(!m||s.test(m))&&h!==!1?(h="//"+(h||""),d&&d[0]!=="/"&&(d="/"+d)):h||(h=""),_&&_[0]!=="#"&&(_="#"+_),y&&y[0]!=="?"&&(y="?"+y),d=d.replace(/[?#]/g,encodeURIComponent),y=y.replace("#","%23"),""+m+h+d+y+_}const i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{i.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),a(l)}}(gt)),gt}var yt={},Ln;function Ja(){return Ln||(Ln=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(n,r){const s={};return Object.keys(n).forEach(a=>{r.includes(a)||(s[a]=n[a])}),s}}(yt)),yt}var vt={},zn;function mt(){return zn||(zn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,C){for(var j in C)Object.defineProperty(b,j,{enumerable:!0,get:C[j]})}t(e,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return m},SP:function(){return d},ST:function(){return _},DecodeError:function(){return g},NormalizeError:function(){return h},PageNotFoundError:function(){return y},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return N},stringifyError:function(){return S}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(b){let C=!1,j;return function(){for(var I=arguments.length,P=new Array(I),R=0;R<I;R++)P[R]=arguments[R];return C||(C=!0,j=b(...P)),j}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=b=>s.test(b);function i(){const{protocol:b,hostname:C,port:j}=window.location;return b+"//"+C+(j?":"+j:"")}function c(){const{href:b}=window.location,C=i();return b.substring(C.length)}function l(b){return typeof b=="string"?b:b.displayName||b.name||"Unknown"}function u(b){return b.finished||b.headersSent}function f(b){const C=b.split("?");return C[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(C[1]?"?"+C.slice(1).join("?"):"")}async function m(b,C){if(process.env.NODE_ENV!=="production"){var j;if((j=b.prototype)!=null&&j.getInitialProps){const R='"'+l(b)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(R)}}const I=C.res||C.ctx&&C.ctx.res;if(!b.getInitialProps)return C.ctx&&C.Component?{pageProps:await m(C.Component,C.ctx)}:{};const P=await b.getInitialProps(C);if(I&&u(I))return P;if(!P){const R='"'+l(b)+'.getInitialProps()" should resolve to an object. But found "'+P+'" instead.';throw new Error(R)}return process.env.NODE_ENV!=="production"&&Object.keys(P).length===0&&!C.ctx&&console.warn(""+l(b)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),P}const d=typeof performance<"u",_=d&&["mark","measure","getEntriesByName"].every(b=>typeof performance[b]=="function");class g extends Error{}class h extends Error{}class y extends Error{constructor(C){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+C}}class v extends Error{constructor(C,j){super(),this.message="Failed to load static file for page: "+C+" "+j}}class N extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(b){return JSON.stringify({message:b.message,stack:b.stack})}}(vt)),vt}var Ye={exports:{}},xt={},qn;function qo(){return qn||(qn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}}(xt)),xt}var bt={},$n;function _n(){return $n||($n=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(n){const r=n.indexOf("#"),s=n.indexOf("?"),a=s>-1&&(r<0||s<r);return a||r>-1?{pathname:n.substring(0,a?s:r),query:a?n.substring(s,r>-1?r:void 0):"",hash:r>-1?n.slice(r):""}:{pathname:n,query:"",hash:""}}}(bt)),bt}var Bn;function pt(){return Bn||(Bn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const n=qo(),r=_n(),s=a=>{if(!a.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return a;const{pathname:i,query:c,hash:l}=(0,r.parsePath)(a);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(i)?""+(0,n.removeTrailingSlash)(i)+c+l:i.endsWith("/")?""+i+c+l:i+"/"+c+l:""+(0,n.removeTrailingSlash)(i)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ye,Ye.exports)),Ye.exports}var Ct={},Ze={exports:{}},jt={},Fn;function $o(){return Fn||(Fn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=_n();function n(r,s){if(typeof r!="string")return!1;const{pathname:a}=(0,t.parsePath)(r);return a===s||a.startsWith(s+"/")}}(jt)),jt}var Hn;function ei(){return Hn||(Hn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const n=$o(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a){return(0,n.pathHasPrefix)(a,r)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ze,Ze.exports)),Ze.exports}var Un;function Bo(){return Un||(Un=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return r}});const t=mt(),n=ei();function r(s){if(!(0,t.isAbsoluteUrl)(s))return!0;try{const a=(0,t.getLocationOrigin)(),i=new URL(s,a);return i.origin===a&&(0,n.hasBasePath)(i.pathname)}catch{return!1}}}(Ct)),Ct}var St={},It={},Wn;function ti(){return Wn||(Wn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class t{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");const a=[...this.children.keys()].sort();this.slugName!==null&&a.splice(a.indexOf("[]"),1),this.restSlugName!==null&&a.splice(a.indexOf("[...]"),1),this.optionalRestSlugName!==null&&a.splice(a.indexOf("[[...]]"),1);const i=a.map(c=>this.children.get(c)._smoosh(""+s+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&i.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const c=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');i.unshift(c)}return this.restSlugName!==null&&i.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&i.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(s,a,i){if(s.length===0){this.placeholder=!1;return}if(i)throw new Error("Catch-all must be the last part of the URL.");let c=s[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(m,d){if(m!==null&&m!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+m+"' !== '"+d+"').");a.forEach(_=>{if(_===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(_.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+_+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),a.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),i=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(i)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');f(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(s.slice(1),a,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(r){const s=new t;return r.forEach(a=>s.insert(a)),s.smoosh()}}(It)),It}var Nt={},Vn;function ni(){return Vn||(Vn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const t=/\/\[[^/]+?\](?=\/|$)/;function n(r){return t.test(r)}}(Nt)),Nt}var Gn;function ri(){return Gn||(Gn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var i in a)Object.defineProperty(s,i,{enumerable:!0,get:a[i]})}t(e,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});const n=ti(),r=ni()}(St)),St}var Pt={},wt={},Kn;function oi(){return Kn||(Kn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const t=mt();function n(r){let{re:s,groups:a}=r;return i=>{const c=s.exec(i);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(a).forEach(f=>{const m=a[f],d=c[m.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(_=>l(_)):m.repeat?[l(d)]:l(d))}),u}}}(wt)),wt}var Et={},Rt={},Tt={},Ot={},Xn;function si(){return Xn||(Xn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.startsWith("/")?n:"/"+n}}(Ot)),Ot}var At={},Qn;function ai(){return Qn||(Qn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(n){return n[0]==="("&&n.endsWith(")")}}(At)),At}var Yn;function ii(){return Yn||(Yn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return s},normalizeRscPath:function(){return a}});const n=si(),r=ai();function s(i){return(0,n.ensureLeadingSlash)(i.split("/").reduce((c,l,u,f)=>!l||(0,r.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function a(i,c){return c?i.replace(/\.rsc($|\?)/,"$1"):i}}(Tt)),Tt}var Zn;function ci(){return Zn||(Zn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return r},isInterceptionRouteAppPath:function(){return s},extractInterceptionRouteInformation:function(){return a}});const n=ii(),r=["(..)(..)","(.)","(..)","(...)"];function s(i){return i.split("/").find(c=>r.find(l=>c.startsWith(l)))!==void 0}function a(i){let c,l,u;for(const f of i.split("/"))if(l=r.find(m=>f.startsWith(m)),l){[c,u]=i.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,n.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const f=c.split("/");if(f.length<=2)throw new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`);u=f.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(Rt)),Rt}var Mt={},Jn;function li(){return Jn||(Jn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(s){return t.test(s)?s.replace(n,"\\$&"):s}}(Mt)),Mt}var er;function ui(){return er||(er=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,y){for(var v in y)Object.defineProperty(h,v,{enumerable:!0,get:y[v]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return _},getNamedMiddlewareRegex:function(){return g}});const n=ci(),r=li(),s=qo(),a="nxtP",i="nxtI";function c(h){const y=h.startsWith("[")&&h.endsWith("]");y&&(h=h.slice(1,-1));const v=h.startsWith("...");return v&&(h=h.slice(3)),{key:h,repeat:v,optional:y}}function l(h){const y=(0,s.removeTrailingSlash)(h).slice(1).split("/"),v={};let N=1;return{parameterizedRoute:y.map(S=>{const b=n.INTERCEPTION_ROUTE_MARKERS.find(j=>S.startsWith(j)),C=S.match(/\[((?:\[.*\])|.+)\]/);if(b&&C){const{key:j,optional:I,repeat:P}=c(C[1]);return v[j]={pos:N++,repeat:P,optional:I},"/"+(0,r.escapeStringRegexp)(b)+"([^/]+?)"}else if(C){const{key:j,repeat:I,optional:P}=c(C[1]);return v[j]={pos:N++,repeat:I,optional:P},I?P?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,r.escapeStringRegexp)(S)}).join(""),groups:v}}function u(h){const{parameterizedRoute:y,groups:v}=l(h);return{re:new RegExp("^"+y+"(?:/)?$"),groups:v}}function f(){let h=0;return()=>{let y="",v=++h;for(;v>0;)y+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return y}}function m(h){let{getSafeRouteKey:y,segment:v,routeKeys:N,keyPrefix:S}=h;const{key:b,optional:C,repeat:j}=c(v);let I=b.replace(/\W/g,"");S&&(I=""+S+I);let P=!1;return(I.length===0||I.length>30)&&(P=!0),isNaN(parseInt(I.slice(0,1)))||(P=!0),P&&(I=y()),S?N[I]=""+S+b:N[I]=""+b,j?C?"(?:/(?<"+I+">.+?))?":"/(?<"+I+">.+?)":"/(?<"+I+">[^/]+?)"}function d(h,y){const v=(0,s.removeTrailingSlash)(h).slice(1).split("/"),N=f(),S={};return{namedParameterizedRoute:v.map(b=>{const C=n.INTERCEPTION_ROUTE_MARKERS.some(I=>b.startsWith(I)),j=b.match(/\[((?:\[.*\])|.+)\]/);return C&&j?m({getSafeRouteKey:N,segment:j[1],routeKeys:S,keyPrefix:y?i:void 0}):j?m({getSafeRouteKey:N,segment:j[1],routeKeys:S,keyPrefix:y?a:void 0}):"/"+(0,r.escapeStringRegexp)(b)}).join(""),routeKeys:S}}function _(h,y){const v=d(h,y);return{...u(h),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function g(h,y){const{parameterizedRoute:v}=l(h),{catchAll:N=!0}=y;if(v==="/")return{namedRegex:"^/"+(N?".*":"")+"$"};const{namedParameterizedRoute:S}=d(h,!1);let b=N?"(?:(/.*)?)":"";return{namedRegex:"^"+S+b+"$"}}}(Et)),Et}var tr;function di(){return tr||(tr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return r}});const t=oi(),n=ui();function r(s,a,i){let c="";const l=(0,n.getRouteRegex)(s),u=l.groups,f=(a!==s?(0,t.getRouteMatcher)(l)(a):"")||i;c=s;const m=Object.keys(u);return m.every(d=>{let _=f[d]||"";const{repeat:g,optional:h}=u[d];let y="["+(g?"...":"")+d+"]";return h&&(y=(_?"":"/")+"["+y+"]"),g&&!Array.isArray(_)&&(_=[_]),(h||d in f)&&(c=c.replace(y,g?_.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(_))||"/")})||(c=""),{params:m,result:c}}}(Pt)),Pt}var nr;function fi(){return nr||(nr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const n=Do(),r=zo(),s=Ja(),a=mt(),i=pt(),c=Bo(),l=ri(),u=di();function f(m,d,_){let g,h=typeof d=="string"?d:(0,r.formatWithValidation)(d);const y=h.match(/^[a-zA-Z]{1,}:\/\//),v=y?h.slice(y[0].length):h;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+h+"' passed to next/router in page: '"+m.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const S=(0,a.normalizeRepeatedSlashes)(v);h=(y?y[0]:"")+S}if(!(0,c.isLocalURL)(h))return _?[h]:h;try{g=new URL(h.startsWith("#")?m.asPath:m.pathname,"http://n")}catch{g=new URL("/","http://n")}try{const S=new URL(h,g);S.pathname=(0,i.normalizePathTrailingSlash)(S.pathname);let b="";if((0,l.isDynamicRoute)(S.pathname)&&S.searchParams&&_){const j=(0,n.searchParamsToUrlQuery)(S.searchParams),{result:I,params:P}=(0,u.interpolateAs)(S.pathname,S.pathname,j);I&&(b=(0,r.formatWithValidation)({pathname:I,hash:S.hash,query:(0,s.omit)(j,P)}))}const C=S.origin===g.origin?S.href.slice(S.origin.length):S.href;return _?[C,b||C]:C}catch{return _?[h]:h}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Xe,Xe.exports)),Xe.exports}var Je={exports:{}},kt={},Dt={},rr;function Fo(){return rr||(rr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=_n();function n(r,s){if(!r.startsWith("/")||!s)return r;const{pathname:a,query:i,hash:c}=(0,t.parsePath)(r);return""+s+a+i+c}}(Dt)),Dt}var or;function mi(){return or||(or=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}});const t=Fo(),n=$o();function r(s,a,i,c){if(!a||a===i)return s;const l=s.toLowerCase();return!c&&((0,n.pathHasPrefix)(l,"/api")||(0,n.pathHasPrefix)(l,"/"+a.toLowerCase()))?s:(0,t.addPathPrefix)(s,"/"+a)}}(kt)),kt}var sr;function pi(){return sr||(sr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});const n=pt(),r=function(s){for(var a=arguments.length,i=new Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,n.normalizePathTrailingSlash)(mi().addLocale(s,...i)):s};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Je,Je.exports)),Je.exports}var Lt={},ar;function hi(){return ar||(ar=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return r}});const r=se._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(r.displayName="RouterContext")}(Lt)),Lt}var zt={},ir;function _i(){return ir||(ir=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var m in f)Object.defineProperty(u,m,{enumerable:!0,get:f[m]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return a},LayoutRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const r=se._(x);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const a=r.default.createContext(null),i=r.default.createContext(null),c=r.default.createContext(null),l=r.default.createContext(null);process.env.NODE_ENV!=="production"&&(a.displayName="AppRouterContext",i.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(zt)),zt}var et={exports:{}},tt={exports:{}},cr;function Ho(){return cr||(cr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(a,i){for(var c in i)Object.defineProperty(a,c,{enumerable:!0,get:i[c]})}n(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return s}});const r=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let i=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-i))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(tt,tt.exports)),tt.exports}var lr;function gi(){return lr||(lr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const n=x,r=Ho(),s=typeof IntersectionObserver=="function",a=new Map,i=[];function c(f){const m={root:f.root||null,margin:f.rootMargin||""},d=i.find(y=>y.root===m.root&&y.margin===m.margin);let _;if(d&&(_=a.get(d),_))return _;const g=new Map,h=new IntersectionObserver(y=>{y.forEach(v=>{const N=g.get(v.target),S=v.isIntersecting||v.intersectionRatio>0;N&&S&&N(S)})},f);return _={id:m,observer:h,elements:g},i.push(m),a.set(m,_),_}function l(f,m,d){const{id:_,observer:g,elements:h}=c(d);return h.set(f,m),g.observe(f),function(){if(h.delete(f),g.unobserve(f),h.size===0){g.disconnect(),a.delete(_);const v=i.findIndex(N=>N.root===_.root&&N.margin===_.margin);v>-1&&i.splice(v,1)}}}function u(f){let{rootRef:m,rootMargin:d,disabled:_}=f;const g=_||!s,[h,y]=(0,n.useState)(!1),v=(0,n.useRef)(null),N=(0,n.useCallback)(b=>{v.current=b},[]);(0,n.useEffect)(()=>{if(s){if(g||h)return;const b=v.current;if(b&&b.tagName)return l(b,j=>j&&y(j),{root:m==null?void 0:m.current,rootMargin:d})}else if(!h){const b=(0,r.requestIdleCallback)(()=>y(!0));return()=>(0,r.cancelIdleCallback)(b)}},[g,d,m,h,v.current]);const S=(0,n.useCallback)(()=>{y(!1)},[]);return[N,h,S]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(et,et.exports)),et.exports}var nt={exports:{}},rt={exports:{}},qt={},ur;function yi(){return ur||(ur=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(n,r){let s;const a=n.split("/");return(r||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(s=i,a.splice(1,1),n=a.join("/")||"/",!0):!1),{pathname:n,detectedLocale:s}}}(qt)),qt}var dr;function vi(){return dr||(dr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(r,s)=>process.env.__NEXT_I18N_SUPPORT?yi().normalizeLocalePath(r,s):{pathname:r,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(rt,rt.exports)),rt.exports}var ot={exports:{}},$t={},fr;function xi(){return fr||(fr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(n,r,s){if(n){s&&(s=s.toLowerCase());for(const c of n){var a,i;const l=(a=c.domain)==null?void 0:a.split(":")[0].toLowerCase();if(r===l||s===c.defaultLocale.toLowerCase()||(i=c.locales)!=null&&i.some(u=>u.toLowerCase()===s))return c}}}}($t)),$t}var mr;function bi(){return mr||(mr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=function(){for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];if(process.env.__NEXT_I18N_SUPPORT)return xi().detectDomainLocale(...s)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ot,ot.exports)),ot.exports}var pr;function Ci(){return pr||(pr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const n=pt(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a,i,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=vi().normalizeLocalePath,f=bi().detectDomainLocale,m=i||u(a,c).detectedLocale,d=f(l,void 0,m);if(d){const _="http"+(d.http?"":"s")+"://",g=m===d.defaultLocale?"":"/"+m;return""+_+d.domain+(0,n.normalizePathTrailingSlash)(""+r+g+a)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(nt,nt.exports)),nt.exports}var st={exports:{}},hr;function ji(){return hr||(hr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const n=Fo(),r=pt(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function a(i,c){return(0,r.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?i:(0,n.addPathPrefix)(i,s))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(st,st.exports)),st.exports}var at={exports:{}},_r;function Si(){return _r||(_r=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(m,d){for(var _ in d)Object.defineProperty(m,_,{enumerable:!0,get:d[_]})}n(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return r},ACTION_NAVIGATE:function(){return s},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return i},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const r="refresh",s="navigate",a="restore",i="server-patch",c="prefetch",l="fast-refresh",u="server-action";var f;(function(m){m.AUTO="auto",m.FULL="full",m.TEMPORARY="temporary"})(f||(f={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(at,at.exports)),at.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});const r=se._(x),s=fi(),a=Bo(),i=zo(),c=mt(),l=pi(),u=hi(),f=_i(),m=gi(),d=Ci(),_=ji(),g=Si(),h=new Set;function y(j,I,P,R,O,z){if(typeof window>"u"||!z&&!(0,a.isLocalURL)(I))return;if(!R.bypassPrefetchedCheck){const T=typeof R.locale<"u"?R.locale:"locale"in j?j.locale:void 0,M=I+"%"+P+"%"+T;if(h.has(M))return;h.add(M)}const E=z?j.prefetch(I,O):j.prefetch(I,P,R);Promise.resolve(E).catch(T=>{if(process.env.NODE_ENV!=="production")throw T})}function v(j){const P=j.currentTarget.getAttribute("target");return P&&P!=="_self"||j.metaKey||j.ctrlKey||j.shiftKey||j.altKey||j.nativeEvent&&j.nativeEvent.which===2}function N(j,I,P,R,O,z,E,T,M,w){const{nodeName:k}=j.currentTarget;if(k.toUpperCase()==="A"&&(v(j)||!M&&!(0,a.isLocalURL)(P)))return;j.preventDefault();const $=()=>{const W=E??!0;"beforePopState"in I?I[O?"replace":"push"](P,R,{shallow:z,locale:T,scroll:W}):I[O?"replace":"push"](R||P,{forceOptimisticNavigation:!w,scroll:W})};M?r.default.startTransition($):$()}function S(j){return typeof j=="string"?j:(0,i.formatUrl)(j)}const C=r.default.forwardRef(function(I,P){let R;const{href:O,as:z,children:E,prefetch:T=null,passHref:M,replace:w,shallow:k,scroll:q,locale:$,onClick:W,onMouseEnter:Y,onTouchStart:Z,legacyBehavior:re=!1,...Vs}=I;R=E,re&&(typeof R=="string"||typeof R=="number")&&(R=r.default.createElement("a",null,R));const V=r.default.useContext(u.RouterContext),Gs=r.default.useContext(f.AppRouterContext),ce=V??Gs,le=!V,Ae=T!==!1,Ve=T===null?g.PrefetchKind.AUTO:g.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let A=function(D){return new Error("Failed prop type: The prop `"+D.key+"` expects a "+D.expected+" in `<Link>`, but got `"+D.actual+"` instead."+(typeof window<"u"?`
2
- Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(D=>{if(D==="href"&&(I[D]==null||typeof I[D]!="string"&&typeof I[D]!="object"))throw A({key:D,expected:"`string` or `object`",actual:I[D]===null?"null":typeof I[D]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(D=>{const de=typeof I[D];if(D==="as"){if(I[D]&&de!=="string"&&de!=="object")throw A({key:D,expected:"`string` or `object`",actual:de})}else if(D==="locale"){if(I[D]&&de!=="string")throw A({key:D,expected:"`string`",actual:de})}else if(D==="onClick"||D==="onMouseEnter"||D==="onTouchStart"){if(I[D]&&de!=="function")throw A({key:D,expected:"`function`",actual:de})}else if((D==="replace"||D==="scroll"||D==="shallow"||D==="passHref"||D==="prefetch"||D==="legacyBehavior")&&I[D]!=null&&de!=="boolean")throw A({key:D,expected:"`boolean`",actual:de})});const Rn=r.default.useRef(!1);I.prefetch&&!Rn.current&&!le&&(Rn.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&le&&!z){let A;if(typeof O=="string"?A=O:typeof O=="object"&&typeof O.pathname=="string"&&(A=O.pathname),A&&A.split("/").some(je=>je.startsWith("[")&&je.endsWith("]")))throw new Error("Dynamic href `"+A+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:ue,as:J}=r.default.useMemo(()=>{if(!V){const je=S(O);return{href:je,as:z?S(z):je}}const[A,Me]=(0,s.resolveHref)(V,O,!0);return{href:A,as:z?(0,s.resolveHref)(V,z):Me||A}},[V,O,z]),In=r.default.useRef(ue),Nn=r.default.useRef(J);let K;if(re)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+O+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),Y&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+O+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{K=r.default.Children.only(R)}catch{throw R?new Error("Multiple children were passed to <Link> with `href` of `"+O+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
- Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+O+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else K=r.default.Children.only(R);else if(process.env.NODE_ENV==="development"&&(R==null?void 0:R.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
4
- Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const Ce=re?K&&typeof K=="object"&&K.ref:P,[Pn,wn,En]=(0,m.useIntersection)({rootMargin:"200px"}),Ks=r.default.useCallback(A=>{(Nn.current!==J||In.current!==ue)&&(En(),Nn.current=J,In.current=ue),Pn(A),Ce&&(typeof Ce=="function"?Ce(A):typeof Ce=="object"&&(Ce.current=A))},[J,Ce,ue,En,Pn]);r.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ce&&(!wn||!Ae||y(ce,ue,J,{locale:$},{kind:Ve},le))},[J,ue,wn,$,Ae,V==null?void 0:V.locale,ce,le,Ve]);const Ge={ref:Ks,onClick(A){if(process.env.NODE_ENV!=="production"&&!A)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!re&&typeof W=="function"&&W(A),re&&K.props&&typeof K.props.onClick=="function"&&K.props.onClick(A),ce&&(A.defaultPrevented||N(A,ce,ue,J,w,k,q,$,le,Ae))},onMouseEnter(A){!re&&typeof Y=="function"&&Y(A),re&&K.props&&typeof K.props.onMouseEnter=="function"&&K.props.onMouseEnter(A),ce&&((!Ae||process.env.NODE_ENV==="development")&&le||y(ce,ue,J,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:Ve},le))},onTouchStart(A){!re&&typeof Z=="function"&&Z(A),re&&K.props&&typeof K.props.onTouchStart=="function"&&K.props.onTouchStart(A),ce&&(!Ae&&le||y(ce,ue,J,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:Ve},le))}};if((0,c.isAbsoluteUrl)(J))Ge.href=J;else if(!re||M||K.type==="a"&&!("href"in K.props)){const A=typeof $<"u"?$:V==null?void 0:V.locale,Me=(V==null?void 0:V.isLocaleDomain)&&(0,d.getDomainLocale)(J,A,V==null?void 0:V.locales,V==null?void 0:V.domainLocales);Ge.href=Me||(0,_.addBasePath)((0,l.addLocale)(J,A,V==null?void 0:V.defaultLocale))}return re?r.default.cloneElement(K,Ge):r.default.createElement("a",{...Vs,...Ge},R)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Yt,Yt.exports);var Ii=Yt.exports,Ni=Ii;const te=hn(Ni),Pi=e=>{const t=e.getBlocksAsArray(),n=[];return t.forEach(r=>{const s=r.getType(),a=r.getText();let i;const c=r.getInlineStyleAt(0).toArray();c.length>0&&(i=c.map(u=>{switch(u){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const l={type:"p",text:a,...i&&{styleText:i}};switch(s){case"header-one":l.type="h1";break;case"header-two":l.type="h2";break;case"header-three":l.type="h3";break;case"unordered-list-item":l.type="li";break;case"ordered-list-item":l.type="li";break;case"blockquote":l.type="blockquote";break;case"code-block":l.type="pre";break;default:l.type="p"}n.push(l)}),n},wi=(e,t,n)=>{e.findEntityRanges(r=>{const s=r.getEntity();return s===null?!1:n.getEntity(s).getType()==="LINK"},t)},Zt=e=>{const t=new fe.CompositeDecorator([{strategy:wi,component:te}]),n=fe.convertFromRaw(e);return fe.EditorState.createWithContent(n,t)},Ei=e=>fe.convertFromRaw(e),Jt=fe.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Ri=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Zt,EXTENDED_BLOCK_RENDER_MAP:Jt,GET_CONTENT_STATE:Ei,convertDraftToHTML:Pi},Symbol.toStringTag,{value:"Module"})),dt={"responsive-mobile-flex":"_responsive-mobile-flex_t5bry_2","responsive-desktop-flex":"_responsive-desktop-flex_t5bry_13","responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},Ti=({slug:e,data:t,SectionZone:n,COMMON_PAGE_COLUMN_GAP:r})=>{const s=t==null?void 0:t.find(f=>{var m,d,_,g;return((d=(m=f.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="desktop"&&((g=(_=f.config)==null?void 0:_.seo)==null?void 0:g.slug)===e}),a=s==null?void 0:s.config.responsive.gapCustom,i=s==null?void 0:s.config.responsive.gapSections,c=t==null?void 0:t.find(f=>{var m,d,_,g;return((d=(m=f.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="mobile"&&((g=(_=f.config)==null?void 0:_.seo)==null?void 0:g.slug)===e}),l=c==null?void 0:c.config.responsive.gapCustom,u=c==null?void 0:c.config.responsive.gapSections;return o.jsxs(o.Fragment,{children:[o.jsx(p.Utils.Column,{gap:a&&i?i:r,className:p.helpers.classNameConcat(dt["responsive-desktop-flex"],"utils-column-modifier"),children:o.jsx(n,{data:(s==null?void 0:s.sections)??[]})}),o.jsx(p.Utils.Column,{gap:l&&u?u:r,className:p.helpers.classNameConcat(dt["responsive-mobile-flex"],"utils-column-modifier"),children:o.jsx(n,{data:(c==null?void 0:c.sections)??[]})})]})},Ie=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Oi=({expanded:e,content:t})=>o.jsxs("details",{open:e,children:[t.textStructureReduced?o.jsx("summary",{onClick:n=>n.preventDefault(),children:o.jsx(fe.Editor,{editorKey:"draft-editor-1",blockRenderMap:Jt,editorState:t!=null&&t.textStructureReduced?Zt(JSON.parse(t.textStructureReduced)):fe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{}),t.showTextStructureExpander&&t.textStructure?o.jsx(o.Fragment,{children:o.jsx(fe.Editor,{editorKey:"draft-editor-1",blockRenderMap:Jt,editorState:t.textStructure?Zt(JSON.parse(t.textStructure)):fe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{})]}),Ai={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Mi="_textContentWrapper_1bigo_5",ki="_textContentSection_1bigo_13",en={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Mi,textContentSection:ki},Di="_link_w24h0_1",Li="_wrapper_w24h0_98",zi="_text_w24h0_106",Bt={link:Di,wrapper:Li,text:zi},Oe=({children:e,adornments:t,className:n,disableUnderline:r,href:s,mode:a,size:i,title:c,onClick:l,disablePadding:u,...f})=>{const m=p.helpers.ValidateProp({fieldTypes:ze.SizesSmallExtended,property:i,fallback:"medium"}),d=p.helpers.ValidateProp({fieldTypes:ze.Mode,property:a,fallback:"default"});return o.jsx(te,{...f,className:p.helpers.classNameConcat(Bt.link,n),href:s&&s.length>0?s:"#","data-size":m,"data-variant":d,title:c||"NextLink","data-disable-underline":r??!1,"data-disable-padding":u??!0,children:o.jsxs("div",{className:Bt.wrapper,onClick:l,children:[t==null?void 0:t.start,o.jsx("p",{className:Bt.text,"data-size":m,children:e}),t==null?void 0:t.end]})})},gn=({data:e})=>{var r;const[t,n]=x.useState(!1);return o.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ie(e.textStructureAlignment),alignItems:Ie(e.textStructureAlignment)},columnWrapper:{alignContent:Ie(e.textStructureAlignment),alignItems:Ie(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?o.jsx(p.Button,{variant:"tertiary",adornment:{end:o.jsx(p.Icon,{name:t?"arrow-up":"arrow-down"})},onClick:()=>n(s=>!s),size:"small",children:t?"Ver Menos":"Ver Mais"}):o.jsx(o.Fragment,{})},children:o.jsxs(p.Utils.Column,{className:en.textContentWrapper,style:{alignItems:Ie(e.textStructureAlignment)},children:[o.jsx(p.TextStructure.DivWrapper,{style:{textAlign:Ie(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Ai["draftjs-text-modifier"],children:e.textStructureReduced?o.jsx(Oi,{content:e,expanded:t}):o.jsx(o.Fragment,{})}),e.textStructureButtonLabel?o.jsx(Oe,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:en["link-modifier"],adornments:(r=e.textStructureButtonIcon)!=null&&r.length&&e.enableIcon?{end:o.jsx(p.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):o.jsx(o.Fragment,{})]})})},qi=e=>({centro:{verticalAlignment:"center",horizontalAlignment:"center"},"centro-esquerda":{verticalAlignment:"center",horizontalAlignment:"start"},"centro-direita":{verticalAlignment:"center",horizontalAlignment:"end"},"superior-centro":{verticalAlignment:"start",horizontalAlignment:"center"},"superior-esquerda":{verticalAlignment:"start",horizontalAlignment:"start"},"superior-direita":{verticalAlignment:"start",horizontalAlignment:"end"},"inferior-centro":{verticalAlignment:"end",horizontalAlignment:"center"},"inferior-esquerda":{verticalAlignment:"end",horizontalAlignment:"start"},"inferior-direita":{verticalAlignment:"end",horizontalAlignment:"end"}})[e],gr=e=>({centro:"center",esquerda:"start",direita:"end"})[e],$i="_image_lypfr_1",Bi={image:$i},Fi=({alt:e,className:t,objectFit:n,...r})=>{const{nextimage:s}=ae();return o.jsx(s,{quality:90,...r,alt:e??"",className:p.helpers.classNameConcat(Bi.image,t),"data-object-fit":n??"cover"})},Hi=({videoRef:e,...t})=>o.jsx("video",{...t,ref:e,children:o.jsx("track",{kind:"captions"})}),ie={Image:Fi,Video:Hi},tn=({dateEnd:e,dateInit:t,TIME_ZONE:n="America/Sao_Paulo",...r})=>{const[s,a]=x.useState(Mo(new Tn.TZDate(Date.now(),n),new Tn.TZDate(e,n))),[i,c]=x.useState(!1);x.useEffect(()=>{i||c(!0);const u=setInterval(()=>{if(s<=0){clearInterval(u);return}a(s-1e3)},1e3);return()=>{clearInterval(u)}},[s,a,i]);const l=Le(s,"days");return i&&s>0?o.jsxs(p.Timer.Root,{...r,children:[l?o.jsxs(o.Fragment,{children:[o.jsx(p.Timer.Digit,{label:"dias",value:l}),o.jsx(p.Timer.Separator,{})]}):null,o.jsx(p.Timer.Digit,{label:"horas",value:Le(s,"hours")}),o.jsx(p.Timer.Separator,{}),o.jsx(p.Timer.Digit,{label:"min",value:Le(s,"minutes")}),o.jsx(p.Timer.Separator,{}),o.jsx(p.Timer.Digit,{label:"segs",value:Le(s),suppressHydrationWarning:!0})]}):o.jsx(o.Fragment,{})},yr={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},vr=({data:e,videoUrl:t,priority:n,videoRef:r,...s})=>{const{video:a,image:i,imageHref:c,imageOpacity:l,altImage:u,backgroundColor:f,position:m,contentAlignment:d,showTimer:_,contentOrder:g,timerMode:h,timerEnd:y,timerInit:v,textStructure:N,textStructureReduced:S}=e.banner,b=(c==null?void 0:c.trim())||(i==null?void 0:i.trim())||null,{nextimage:C}=ae();return o.jsxs(p.Banner.Container,{...s,children:[o.jsxs(p.Banner.ImageWrapper,{className:yr["banner-image-wrapper-modifier"],style:l?{background:f}:void 0,children:[a&&o.jsx(ie.Video,{videoRef:r,src:t,autoPlay:n,loop:!0,playsInline:!0,muted:!0}),b&&!(a!=null&&a.length)&&o.jsx(C,{src:b,width:"1920",height:"1080",alt:u??i??"",...n?{priority:n}:{},style:l?{opacity:"0"}:void 0}),!i&&!(a!=null&&a.length)&&o.jsx("div",{style:{background:f}})]}),_||S||N?o.jsx(p.Banner.Slot,{...qi(m??"centro"),className:yr["content-modifier"],style:{textAlign:gr(d)},children:o.jsxs(p.Utils.Column,{gap:"16px",alignItems:gr(d),children:[_&&g==="timer-first"&&o.jsx(tn,{mode:h??"default",size:"small",dateEnd:y?new Date(y):new Date,dateInit:v?new Date(v):new Date}),o.jsx(gn,{data:e.banner}),_&&g!=="timer-first"&&o.jsx(tn,{mode:h??"default",size:"small",dateEnd:y?new Date(y):new Date,dateInit:v?new Date(v):new Date})]})}):o.jsx(o.Fragment,{})]})},Ui={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Wi(e,t,n){const[r,s]=x.useState(!1),{threshold:a}=n||{};return x.useEffect(()=>{if(!e.current)return()=>{};let i=null;const c=new IntersectionObserver(([l])=>{if(n!=null&&n.delay){i&&clearTimeout(i),i=setTimeout(()=>{s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},n.delay);return}s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:a||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),r}const yn=({children:e,eventData:t,observerOptions:n,callBackWhenVisible:r,stopOnIntersection:s=!0,className:a,...i})=>{const c=x.useRef(null),l=Wi(c,s,n),{sendDataLayerEvent:u}=F();return x.useEffect(()=>{l&&(typeof r=="function"&&r(),t&&u({...t}))},[l]),o.jsx("div",{...i,ref:c,className:p.helpers.classNameConcat(Ui["observer-wrapper"],a),children:e})},Uo=({data:e,className:t,priority:n,creative:r,...s})=>{const{handleSelectPromotionEvent:a,currentLocalRef:i}=F(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",m={creative_name:r,creative_slot:`${r}-${i.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=x.useRef(null),_=x.useMemo(()=>{var h;if((h=e.banner.video)!=null&&h.includes("player.vimeo")){const y=e.banner.video.split("?")[1],v=y==null?void 0:y.split("&"),N=v==null?void 0:v.filter(b=>b.includes("loc")||b.includes("signature")||b.includes("user_id")),S=N==null?void 0:N.join("&");return`${e.banner.video.split("?")[0]}?${S}`}return e.banner.video},[e]),g=()=>{var h;(h=d.current)!=null&&h.paused&&d.current.play()};return o.jsx(yn,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...m,index:l}}}},observerOptions:{delay:100,..._&&{threshold:.1}},..._&&{callBackWhenVisible:g},children:e.banner.href?o.jsx(te,{href:e.banner.href,onClick:()=>{a({updatePromotionRef:!0,promotion:m,index:l})},children:o.jsx(vr,{data:e,videoUrl:_,priority:n,videoRef:d,...s})}):o.jsx(vr,{data:e,videoUrl:_,priority:n,videoRef:d,...s})})},Wo=e=>o.jsx(Uo,{...e}),Vi={Banner:Wo},ke={"row-controller-modifier":"_row-controller-modifier_co4wb_1","carousel-title-modifier":"_carousel-title-modifier_co4wb_18","carousel-modifier":"_carousel-modifier_co4wb_22","card-modifier":"_card-modifier_co4wb_26"},Gi=({data:e,CONSTANTS:t})=>{var u;const{isMobile:n}=pe(),r=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:a,pagination:i,controller:c,itemsStyles:l}=p.Carousel.useCarousel({itemsPerPage:n?e==null?void 0:e.config.slidesPerViewMobile:(u=e==null?void 0:e.config)==null?void 0:u.slidesPerView,gap:n?e.config.gapMobile:e.config.gap,direction:n&&s?"column":"row"});return o.jsx(p.Utils.Column,{style:{width:r==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:o.jsxs(p.Carousel.Root,{innerRef:f=>{a(f)},className:p.helpers.classNameConcat(ke["carousel-modifier"],"common-section"),children:[r==="medium"?o.jsxs(p.TextStructure.Root,{children:[o.jsx(p.TextStructure.DivWrapper,{className:ke["carousel-title-modifier"],children:o.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),n&&i.totalPages>1?o.jsx(p.Carousel.Controller,{className:ke["row-controller-modifier"],children:o.jsxs(p.Carousel.Arrows,{children:[o.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(p.Icon,{name:t.ICONS.arrow_left})}}),o.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(p.Icon,{name:t.ICONS.arrow_right})}})]})}):o.jsx(o.Fragment,{})]}):o.jsx(o.Fragment,{}),o.jsx(p.Carousel.Body,{children:e.bennefit.map((f,m)=>o.jsx(p.Carousel.Item,{className:ke["card-modifier"],style:l,children:o.jsx(p.Card,{stroke:!0,padding:"small",children:o.jsx(p.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[r==="medium"?"top":"start"]:o.jsx(p.Icon,{name:f.icon,size:r==="medium"?"medium":"small"})},children:o.jsxs(p.TextStructure.DivWrapper,{alignItems:"start",children:[o.jsx("h3",{className:"typography-style-body-md",children:f.title}),f.subtitle&&f.subtitle.length?o.jsx("p",{className:"typography-style-body-xs",children:f.subtitle}):o.jsx(o.Fragment,{})]})})})},`bennefit=${m}`))}),!n&&i.totalPages>1?o.jsxs(p.Carousel.Controller,{className:ke["row-controller-modifier"],children:[o.jsxs(p.Carousel.Arrows,{children:[o.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(p.Icon,{name:t.ICONS.arrow_left})}}),o.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(p.Icon,{name:t.ICONS.arrow_right})}})]}),o.jsx(p.Carousel.Bullets,{page:i.currentPage,total:i.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):o.jsx(o.Fragment,{})]})})},Ki=({data:e})=>o.jsx("div",{className:p.helpers.classNameConcat(en.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:o.jsx(gn,{data:e})}),Xi={Banner:Vi,BannerSection:Uo,BennefitsBarSection:Gi,DataScreening:Ti,SingleBannerSection:Wo,TextContentSection:Ki,TextContent:gn},Qi={Components:Xi,helpers:Ri},ee={"add-to-cart--card":"_add-to-cart--card_4v41y_1","add-to-cart--card--content":"_add-to-cart--card--content_4v41y_7","add-to-cart--card--name":"_add-to-cart--card--name_4v41y_16","add-to-cart--card--price-quantity":"_add-to-cart--card--price-quantity_4v41y_46","add-to-cart--card--style-size":"_add-to-cart--card--style-size_4v41y_53","add-to-cart--content":"_add-to-cart--content_4v41y_71","add-to-cart--content--title":"_add-to-cart--content--title_4v41y_78","add-to-cart--footer":"_add-to-cart--footer_4v41y_102","add-to-cart--footer--total":"_add-to-cart--footer--total_4v41y_108","add-to-cart--items":"_add-to-cart--items_4v41y_148","add-to-cart--tooltip":"_add-to-cart--tooltip_4v41y_198","add-to-cart__modal":"_add-to-cart__modal_4v41y_211"},Vo=({brand:e,className:t,name:n,...r})=>o.jsxs("div",{...r,className:p.helpers.classNameConcat(ee["add-to-cart--card--name"],t),children:[o.jsx(p.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:o.jsx("p",{className:"typography-style-body-md",children:n})})})]});Vo.displayName="AddToCart.Card.Name";const Go=({className:e,listPrice:t,price:n,quantity:r,productId:s,...a})=>{const i=me(n/100),c=me(t/100);return o.jsx("div",{...a,className:p.helpers.classNameConcat(ee["add-to-cart--card--price-quantity"],e),children:o.jsx(p.ProductInfo.Root,{size:"small",layout:"vertical",children:o.jsx(p.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:o.jsx(p.ProductInfo.ValuesWrapper,{children:n!==t?o.jsxs(o.Fragment,{children:[o.jsx(p.ProductInfo.Price,{label:"originalPrice",value:i,size:"small"},"price-list"),o.jsx(p.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):o.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};Go.displayName="AddToCart.Card.PriceQuantity";const Yi="_skeleton_12b79_1",Zi={skeleton:Yi},Ji=({style:e})=>o.jsx("div",{style:e,className:Zi.skeleton}),Ko=({className:e,productGroupID:t,size:n,texture:r,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i}}=be(),[c,l]=x.useState(r??"");return x.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const m=f.images.find(d=>a.includes(d.imageLabel));m!=null&&m.imageUrl?l(m.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),o.jsxs("div",{...s,className:p.helpers.classNameConcat(ee["add-to-cart--card--style-size"],e),children:[o.jsx(p.ToggleStyle.Wrapper,{size:"x-small",style:i,children:o.jsx(p.ToggleStyle.Texture,{children:c?o.jsx(ie.Image,{alt:"",src:c??"",width:164,height:164,style:i}):o.jsx(Ji,{})})}),o.jsx(p.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),n&&o.jsxs(p.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[o.jsx(p.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),o.jsx(p.ToggleSize.Text,{children:n})]})]})};Ko.displayName="AddToCart.Card.StyleSize";const{helpers:ec}=ko,Xo=({className:e,item:t,texture:n,...r})=>{const{itemOffered:{name:s,brand:a,skuName:i,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:m}}=be(),{size:d}=ec.product.getColorAndSizeFromSkuName(i??s,m);return console.log("value size, skuName",{size:d,skuName:i,name:s}),o.jsxs("div",{...r,className:p.helpers.classNameConcat(ee["add-to-cart--card--content"],e),children:[o.jsx(Vo,{brand:a.name,name:s}),o.jsx(Go,{price:u,listPrice:f,quantity:l,productId:t.id}),o.jsx(Ko,{size:d,texture:n,productGroupID:c})]})};Xo.displayName="AddToCart.Card.Content";const Qo=({image:e,thumbnail:t=!1})=>o.jsx(ie.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Qo.displayName="AddToCart.Card";const Yo=({className:e,item:t,texture:n,thumbnail:r,...s})=>{const{itemOffered:{image:[a]}}=t,i=zr(a.url,{width:200,height:300});return o.jsxs("div",{...s,className:p.helpers.classNameConcat(ee["add-to-cart--card"],e),children:[o.jsx(Qo,{image:{alternateName:a.alternateName||"Produto",url:i||""},thumbnail:r}),!r&&o.jsx(Xo,{item:t,texture:n})]})};Yo.displayName="AddToCart.Card";const Zo=({className:e,children:t,title:n,...r})=>o.jsxs("div",{...r,className:p.helpers.classNameConcat(ee["add-to-cart--content"],e),children:[o.jsx("div",{className:ee["add-to-cart--content--title"],children:n&&o.jsx("h2",{children:n})}),t,o.jsx(ye.Footer,{})]});Zo.displayName="AddToCart.Layout.Content";const Jo=({className:e,...t})=>{var _,g;const{isMobile:n,handleClose:r,CONSTANTS:{ADD_TO_CART:s}}=be(),{cartStore:{totalizers:a},setIsOpen:i}=Te(),c=(_=a.find(h=>h.id==="Discounts"))==null?void 0:_.value,l=((g=a.find(h=>h.id==="Items"))==null?void 0:g.value)??0,u=a.find(h=>h.id==="Shipping"),m=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=me(m??0);return o.jsxs("div",{...t,className:p.helpers.classNameConcat(ee["add-to-cart--footer"],e),children:[o.jsxs("div",{className:ee["add-to-cart--footer--total"],children:[o.jsx("span",{children:"Subtotal:"}),o.jsx("span",{children:d})]}),o.jsx(p.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>i(!0),children:s.footer.bag}),n?o.jsx(p.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):o.jsx(p.Button,{onClick:()=>r(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};Jo.displayName="AddToCart.Layout.Footer";const es=({children:e,className:t,thumbnail:n=!1,...r})=>{const{cartStore:{options:s}}=Te(),{recentlyAddedProducts:a}=Be(),i=a.length>3?4:a.length;return o.jsxs("div",{...r,className:ee["add-to-cart--items"],"data-thumbnail":n,children:[Array.isArray(a)&&a.filter((c,l)=>l<i).map(c=>{var u;const l=(u=s==null?void 0:s.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return o.jsx(ye.Card,{item:c,thumbnail:n,texture:l},c.itemOffered.sku)}),e]})};es.displayName="AddToCart.Layout.Items";const ts=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:n,setIsOpen:r}=be(),{isMobile:s}=pe();return o.jsxs(p.Modal.Root,{"data-modal":"add-to-cart--modal",className:ee["add-to-cart__modal"],isMobile:s??!1,isOpen:n,setIsOpen:r,variant:"sideBottom",style:{zIndex:t.modal},children:[o.jsx(p.Modal.Header,{navigation:"top",children:o.jsx(p.Modal.Controls,{navigation:"top",isMobile:!0})}),o.jsx(p.Modal.Body,{children:e})]})};ts.displayName="AddToCart.Modal";const tc=({children:e})=>{const{count:t,handleClose:n,setIsOpen:r}=be(),s=x.useRef(t);return x.useEffect(()=>{t>s.current&&r(!0),t<s.current&&s.current>=1&&n(),s.current=t},[t,n,r]),o.jsx(o.Fragment,{children:e})},ns=({children:e,component:t,CONSTANTS:n,...r})=>{const{recentlyAddedProducts:s}=Be(),{isMobile:a}=pe(),i=s.length>3?4:s.length;return o.jsx(Ro,{...r,count:i,isMobile:a,CONSTANTS:n,children:o.jsx(tc,{children:a?o.jsxs(o.Fragment,{children:[o.jsx(ye.Modal,{Z_INDEX_WAR:n.Z_INDEX_WAR,children:t}),e]}):o.jsx(ye.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:n.Z_INDEX_WAR,children:e})})})};ns.displayName="AddToCart.Root";const rs=({children:e,component:t,Z_INDEX_WAR:n,...r})=>{const{contentRef:s,left:a,isLeaving:i,target:c,isOpen:l,top:u}=be();return o.jsx(p.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...r,ref:s,children:t}),id:"add-to-cart--tooltip",className:ee["add-to-cart--tooltip"],style:{zIndex:n.modal},isLeaving:i,isOpen:l,left:a,size:"medium",position:"top",top:u,children:o.jsx("div",{className:ee["add-to-cart--tooltip"],ref:c,children:e})})};rs.displayName="AddToCart.Tooltip";const ye={Card:Yo,Content:Zo,Footer:Jo,Items:es,Modal:ts,Root:ns,Tooltip:rs},vn=({title:e,...t})=>{const{recentlyAddedProducts:n}=Be(),{isMobile:r}=pe(),s=n.length>3?4:n.length,a=n.length>(s??1),i=n.length>1;return o.jsx(ye.Root,{isMobile:r,count:n.length,component:o.jsx(ye.Content,{title:e,children:o.jsx(ye.Items,{thumbnail:i,children:a&&o.jsx(p.Badge.Count,{count:n.length-s,size:"medium",variant:"secondary"})})}),...t})};vn.displayName="AddToCart";const xr={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},nc=({children:e,className:t,adornment:n,iconPosition:r,scrollToOptions:s,style:a,...i})=>{const c={top:(s==null?void 0:s.top)??0,left:(s==null?void 0:s.left)??0,behavior:(s==null?void 0:s.behavior)??"smooth"},u=r&&n?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[r]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return o.jsx(p.Card,{...i,shadow:!0,padding:"small",className:p.helpers.classNameConcat(xr["card-modifier"],t),style:{...a,padding:0},children:o.jsxs("button",{className:xr["backtotop-btn"],onClick:f,style:{...u},"data-orientation":r,children:[n,e]})})},rc=({page:e,data:t})=>{const{pathname:n}=ae(),r=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:a,itemListRef:i,promotionEventRef:c}=F();return x.useEffect(()=>{const l=Oo("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Ao("login_event","",{expires:f})}},[]),x.useEffect(()=>{if(r.current===n)return;r.current=n;let l={};switch(e){case"PDP":{const f=t,m={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:_})=>m[d]=_[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:m,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:m,id:d,name:_}=Wr(),g=_,h=d;l={page_category:"lista_produtos",...m&&{page_departament:m}},i.current={item_list_name:n==="/search"?"busca":g??void 0,item_list_id:n==="/search"?void 0:h??void 0},m&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:m}}});break}default:l={page_category:e},c.current={},i.current={};break}const u={region:e,...l};a.current=e,s({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[n]),null};var nn={exports:{}};function oc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ft={},Ht={},br;function sc(){return br||(br=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return r}});const r=se._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(r.displayName="LoadableContext")}(Ht)),Ht}var Cr;function ac(){return Cr||(Cr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return _}});const n=se._(x),r=sc();function s(g){return g&&g.default?g.default:g}const a=[],i=[];let c=!1;function l(g){let h=g(),y={loading:!0,loaded:null,error:null};return y.promise=h.then(v=>(y.loading=!1,y.loaded=v,v)).catch(v=>{throw y.loading=!1,y.error=v,v}),y}function u(g,h){let y=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},h),v=null;function N(){if(!v){const C=new f(g,y);v={getCurrentValue:C.getCurrentValue.bind(C),subscribe:C.subscribe.bind(C),retry:C.retry.bind(C),promise:C.promise.bind(C)}}return v.promise()}if(typeof window>"u"&&a.push(N),!c&&typeof window<"u"){const C=y.webpack&&typeof oc.resolveWeak=="function"?y.webpack():y.modules;C&&i.push(j=>{for(const I of C)if(j.includes(I))return N()})}function S(){N();const C=n.default.useContext(r.LoadableContext);C&&Array.isArray(y.modules)&&y.modules.forEach(j=>{C(j)})}function b(C,j){S();const I=n.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return n.default.useImperativeHandle(j,()=>({retry:v.retry}),[]),n.default.useMemo(()=>I.loading||I.error?n.default.createElement(y.loading,{isLoading:I.loading,pastDelay:I.pastDelay,timedOut:I.timedOut,error:I.error,retry:v.retry}):I.loaded?n.default.createElement(s(I.loaded),C):null,[C,I])}return b.preload=()=>N(),b.displayName="LoadableComponent",n.default.forwardRef(b)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:h,_opts:y}=this;h.loading&&(typeof y.delay=="number"&&(y.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},y.delay)),typeof y.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},y.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(v=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(h){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...h},this._callbacks.forEach(y=>y())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(h){return this._callbacks.add(h),()=>{this._callbacks.delete(h)}}constructor(h,y){this._loadFn=h,this._opts=y,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function m(g){return u(l,g)}function d(g,h){let y=[];for(;g.length;){let v=g.pop();y.push(v(h))}return Promise.all(y).then(()=>{if(g.length)return d(g,h)})}m.preloadAll=()=>new Promise((g,h)=>{d(a).then(g,h)}),m.preloadReady=g=>(g===void 0&&(g=[]),new Promise(h=>{const y=()=>(c=!0,h());d(i,g).then(y,y)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=m.preloadReady);const _=m}(Ft)),Ft}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(f,m){for(var d in m)Object.defineProperty(f,d,{enumerable:!0,get:m[d]})}n(t,{noSSR:function(){return l},default:function(){return u}});const r=se,s=r._(x),a=r._(ac()),i=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,m){if(delete m.webpack,delete m.modules,!i)return f(m);const d=m.loading;return()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,m){let d=a.default,_={loading:y=>{let{error:v,isLoading:N,pastDelay:S}=y;if(!S)return null;if(process.env.NODE_ENV!=="production"){if(N)return null;if(v)return s.default.createElement("p",null,v.message,s.default.createElement("br",null),v.stack)}return null}};f instanceof Promise?_.loader=()=>f:typeof f=="function"?_.loader=f:typeof f=="object"&&(_={..._,...f}),_={..._,...m};const g=_.loader,h=()=>g!=null?g().then(c):Promise.resolve(c(()=>null));return _.loadableGenerated&&(_={..._,..._.loadableGenerated},delete _.loadableGenerated),typeof _.ssr=="boolean"&&!_.ssr?(delete _.webpack,delete _.modules,l(d,_)):d({..._,loader:h})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(nn,nn.exports);var ic=nn.exports,cc=ic;const xn=hn(cc);var rn={exports:{}},Ut={},jr;function lc(){return jr||(jr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return r}});const r=se._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(r.displayName="HeadManagerContext")}(Ut)),Ut}var it={exports:{}},Sr;function uc(){return Sr||(Sr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}n(t,{DOMAttributeNames:function(){return r},isEqualNode:function(){return a},default:function(){return c}});const r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function s(l){let{type:u,props:f}=l;const m=document.createElement(u);for(const g in f){if(!f.hasOwnProperty(g)||g==="children"||g==="dangerouslySetInnerHTML"||f[g]===void 0)continue;const h=r[g]||g.toLowerCase();u==="script"&&(h==="async"||h==="defer"||h==="noModule")?m[h]=!!f[g]:m.setAttribute(h,f[g])}const{children:d,dangerouslySetInnerHTML:_}=f;return _?m.innerHTML=_.__html||"":d&&(m.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),m}function a(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const m=u.cloneNode(!0);return m.setAttribute("nonce",""),m.nonce=f,f===l.nonce&&l.isEqualNode(m)}}return l.isEqualNode(u)}let i;process.env.__NEXT_STRICT_NEXT_HEAD?i=(l,u)=>{const f=document.querySelector("head");if(!f)return;const m=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const h=f.querySelector("meta[charset]");h&&d.push(h)}for(let h=0;h<m.length;h++){var _;const v=m[h].nextSibling;(v==null||(_=v.tagName)==null?void 0:_.toLowerCase())===l&&d.push(v)}const g=u.map(s).filter(h=>{for(let y=0,v=d.length;y<v;y++){const N=d[y];if(a(N,h))return d.splice(y,1),!1}return!0});d.forEach(h=>{var y;const v=h.previousSibling;if(v&&v.getAttribute("name")==="next-head"){var N;(N=h.parentNode)==null||N.removeChild(v)}(y=h.parentNode)==null||y.removeChild(h)}),g.forEach(h=>{var y;const v=document.createElement("meta");v.name="next-head",v.content="1",((y=h.tagName)==null?void 0:y.toLowerCase())==="meta"&&h.getAttribute("charset")||f.appendChild(v),f.appendChild(h)})}:i=(l,u)=>{const f=document.getElementsByTagName("head")[0],m=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!m){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(m.content),_=[];for(let y=0,v=m.previousElementSibling;y<d;y++,v=(v==null?void 0:v.previousElementSibling)||null){var g;(v==null||(g=v.tagName)==null?void 0:g.toLowerCase())===l&&_.push(v)}const h=u.map(s).filter(y=>{for(let v=0,N=_.length;v<N;v++){const S=_[v];if(a(S,y))return _.splice(v,1),!1}return!0});_.forEach(y=>{var v;return(v=y.parentNode)==null?void 0:v.removeChild(y)}),h.forEach(y=>f.insertBefore(y,m)),m.content=(d-_.length+h.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const _=u[d.type]||[];_.push(d),u[d.type]=_});const f=u.title?u.title[0]:null;let m="";if(f){const{children:d}=f.props;m=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}m!==document.title&&(document.title=m),["meta","base","link","style","script"].forEach(d=>{i(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(it,it.exports)),it.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function n(C,j){for(var I in j)Object.defineProperty(C,I,{enumerable:!0,get:j[I]})}n(t,{handleClientScriptLoad:function(){return h},initScriptLoader:function(){return N},default:function(){return b}});const r=se,s=Lo(),a=r._(Ys),i=s._(x),c=lc(),l=uc(),u=Ho(),f=new Map,m=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],_=C=>{if(a.default.preinit){C.forEach(j=>{a.default.preinit(j,{as:"style"})});return}if(typeof window<"u"){let j=document.head;C.forEach(I=>{let P=document.createElement("link");P.type="text/css",P.rel="stylesheet",P.href=I,j.appendChild(P)})}},g=C=>{const{src:j,id:I,onLoad:P=()=>{},onReady:R=null,dangerouslySetInnerHTML:O,children:z="",strategy:E="afterInteractive",onError:T,stylesheets:M}=C,w=I||j;if(w&&m.has(w))return;if(f.has(j)){m.add(w),f.get(j).then(P,T);return}const k=()=>{R&&R(),m.add(w)},q=document.createElement("script"),$=new Promise((W,Y)=>{q.addEventListener("load",function(Z){W(),P&&P.call(this,Z),k()}),q.addEventListener("error",function(Z){Y(Z)})}).catch(function(W){T&&T(W)});O?(q.innerHTML=O.__html||"",k()):z?(q.textContent=typeof z=="string"?z:Array.isArray(z)?z.join(""):"",k()):j&&(q.src=j,f.set(j,$));for(const[W,Y]of Object.entries(C)){if(Y===void 0||d.includes(W))continue;const Z=l.DOMAttributeNames[W]||W.toLowerCase();q.setAttribute(Z,Y)}E==="worker"&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",E),M&&_(M),document.body.appendChild(q)};function h(C){const{strategy:j="afterInteractive"}=C;j==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(C))}):g(C)}function y(C){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>g(C)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(C))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(j=>{const I=j.id||j.getAttribute("src");m.add(I)})}function N(C){C.forEach(h),v()}function S(C){const{id:j,src:I="",onLoad:P=()=>{},onReady:R=null,strategy:O="afterInteractive",onError:z,stylesheets:E,...T}=C,{updateScripts:M,scripts:w,getIsSsr:k,appDir:q,nonce:$}=(0,i.useContext)(c.HeadManagerContext),W=(0,i.useRef)(!1);(0,i.useEffect)(()=>{const Z=j||I;W.current||(R&&Z&&m.has(Z)&&R(),W.current=!0)},[R,j,I]);const Y=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{Y.current||(O==="afterInteractive"?g(C):O==="lazyOnload"&&y(C),Y.current=!0)},[C,O]),(O==="beforeInteractive"||O==="worker")&&(M?(w[O]=(w[O]||[]).concat([{id:j,src:I,onLoad:P,onReady:R,onError:z,...T}]),M(w)):k&&k()?m.add(j||I):k&&!k()&&g(C)),q){if(E&&E.forEach(Z=>{a.default.preinit(Z,{as:"style"})}),O==="beforeInteractive")return I?(a.default.preload(I,T.integrity?{as:"script",integrity:T.integrity}:{as:"script"}),i.default.createElement("script",{nonce:$,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([I])+")"}})):(T.dangerouslySetInnerHTML&&(T.children=T.dangerouslySetInnerHTML.__html,delete T.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:$,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...T}])+")"}}));O==="afterInteractive"&&I&&a.default.preload(I,T.integrity?{as:"script",integrity:T.integrity}:{as:"script"})}return null}Object.defineProperty(S,"__nextScript",{value:!0});const b=S;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(rn,rn.exports);var dc=rn.exports,fc=dc;const mc=hn(fc),pc=({children:e,ONE_TRUST:t})=>o.jsxs(o.Fragment,{children:[o.jsx(mc,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),hc=xn(()=>Promise.resolve(pc),{ssr:!1}),_c="_footer__bottom_1otu7_1",gc="_footer__wrapper_1otu7_9",yc="_footer__main_1otu7_41",vc="_footer__legalInformation_1otu7_48",xc="_footer__column_1otu7_70",bc="_footer__columnContent_1otu7_80",Cc="_footer__item_1otu7_84",jc="_footer__itemLink_1otu7_100",Sc="_footer__columnTitle_1otu7_115",Ic="_footer__columnTitleIcon_1otu7_127",Nc="_footer__iconList_1otu7_140",Pc="_footer__itemSmallText_1otu7_150",wc="_payment_1otu7_161",Ec="_footer__iconContainer_1otu7_166",Rc="_footer__iconListSubHeader_1otu7_171",Tc="_accordionWrapper_1otu7_193",Oc="_accordionHeader_1otu7_197",Ac="_accordionTextWrapper_1otu7_201",B={footer__bottom:_c,footer__wrapper:gc,footer__main:yc,footer__legalInformation:vc,footer__column:xc,footer__columnContent:bc,footer__item:Cc,footer__itemLink:jc,footer__columnTitle:Sc,footer__columnTitleIcon:Ic,footer__iconList:Nc,footer__itemSmallText:Pc,payment:wc,footer__iconContainer:Ec,footer__iconListSubHeader:Rc,accordionWrapper:Tc,accordionHeader:Oc,accordionTextWrapper:Ac,"footer--stamps":"_footer--stamps_1otu7_240","footer--stamps--company":"_footer--stamps--company_1otu7_247"},Mc=({name:e,nameIcon:t,maxWidth:n,rowAlignContent:r,columnAlignContent:s,columnAlignItems:a,textAlignContent:i,textAlignItems:c,children:l})=>o.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:r,alignItems:r},columnWrapper:{alignContent:s,alignItems:a}},children:o.jsxs(p.TextStructure.DivWrapper,{alignContent:i,alignItems:c,className:B.footer__column,children:[o.jsxs("div",{className:t?B.footer__columnTitleIcon:B.footer__columnTitle,children:[o.jsx(p.Icon,{name:`${t}`,size:"small"}),e&&o.jsx("div",{children:e})]}),o.jsx("div",{className:B.footer__columnContent,style:{maxWidth:`${n}px`},children:l})]})}),kc=({name:e,nameIcon:t,maxWidth:n,children:r,...s})=>o.jsxs(p.Accordion.Wrapper,{className:B.accordionWrapper,title:"accordion-wrapper",...s,children:[o.jsx(p.Accordion.Header,{id:(s==null?void 0:s.id)??"",className:B.accordionHeader,closeIndicator:o.jsx(p.Icon,{name:"arrow-up",size:"medium"}),openIndicator:o.jsx(p.Icon,{name:"arrow-down",size:"medium"}),title:"accordion-header",children:o.jsx(p.TextStructure.Root,{children:o.jsxs(p.TextStructure.DivWrapper,{className:t?B.accordionTextWrapper:"",children:[o.jsx(p.Icon,{name:`${t}`,size:"medium"}),o.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),o.jsx(p.Accordion.Body,{title:"accordion-body",children:o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{className:B.footer__columnContent,style:{maxWidth:`${n}px`},children:r})})})]}),Wt=e=>{const{isMobile:t}=pe();return t?o.jsx(kc,{...e}):o.jsx(Mc,{...e})},ct=({type:e,children:t,className:n,collumnName:r,collumnNameIcon:s,icons:a,iconLink:i,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:m,columnAlignContent:d,columnAlignItems:_,textAlignContent:g,textAlignItems:h,...y})=>{let v;const{handleSelectContent:N}=F(),{nextimage:S}=ae();switch(e){case"menu":v=o.jsx(te,{className:B.footer__itemLink,href:l??"#",prefetch:!1,children:o.jsx("span",{onClick:()=>{N({content:`footer:${r}:${t}`})},children:t})});break;case"payment":v=o.jsxs("div",{className:p.helpers.classNameConcat(B.payment,B.footer__itemSmallText),...y,children:[u,o.jsxs("div",{className:p.helpers.classNameConcat(B.footer__iconContainer,B.footer__iconListSubHeader),children:[f,o.jsx("div",{className:B.footer__iconList,children:a==null?void 0:a.map((b,C)=>o.jsx(S,{alt:b,src:`/assets/${b}.svg`,width:c??20,height:c??20},C))})]})]});break;case"social-media":v=o.jsx("div",{className:B.footer__iconContainer,...y,children:o.jsx("div",{className:B.footer__iconList,children:i==null?void 0:i.map((b,C)=>o.jsx(te,{prefetch:!1,href:b.link??"#",children:o.jsx(p.Icon,{size:"medium",name:b.icon,onClick:()=>N({content:`footer:redes-sociais:${b.icon}`})})},C))})});break;default:v=o.jsx("div",{className:n,...y,children:t})}return o.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:m,alignItems:m},columnWrapper:{alignContent:d,alignItems:_}},...y,children:o.jsx(p.TextStructure.DivWrapper,{alignContent:g,alignItems:h,className:p.helpers.classNameConcat(B.footer__item,n),children:v})})},Dc=({className:e,text:t,...n})=>o.jsx("div",{...n,className:p.helpers.classNameConcat(B.footer__legalInformation,e),children:o.jsx("span",{children:t})}),os=()=>{const{nextimage:e}=ae();return o.jsx("div",{className:B["footer--stamps"],children:o.jsx(e,{alt:"Empresa B",className:B["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};os.displayName="Footer.Stamps";const ss=({children:e,legalTextSlot:t,adornment:n,className:r,...s})=>{const{isMobile:a}=pe(),i=x.Children.toArray(e).filter(Boolean),c=i.length;return o.jsxs("div",{className:B.footer__main,children:[(n==null?void 0:n.top)&&o.jsx("div",{className:B.footer__top,children:n==null?void 0:n.top}),c>0&&o.jsx("div",{...s,className:p.helpers.classNameConcat(B.footer__wrapper,r),children:i.map((l,u)=>o.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${a?1:"fit-content"})`},children:l},u))}),(n==null?void 0:n.bottom)&&o.jsx("div",{className:B.footer__bottom,children:n.bottom}),t&&o.jsx("div",{className:B.footer__legalText,children:t})]})};ss.displayName="Footer.Wrapper";const as=({data:{links:{links:e}},payments:t,socialInfo:n,socialMedias:r,adornment:s,LEGAL_INFORMATION_TEXT:a})=>{var i;return o.jsxs(ss,{adornment:s,legalTextSlot:o.jsx(Dc,{text:a}),children:[Array.isArray(e.column)&&e.column.map((c,l)=>o.jsx(Wt,{id:`${l}column-menu`,name:c.name,nameIcon:c.nameIcon,children:c.items.map((u,f)=>o.jsx(ct,{type:"menu",link:u.link,collumnName:c.name,collumnNameIcon:c.nameIcon,children:u.text},f))},l)),t&&((i=t.acceptedFlags)==null?void 0:i.length)>0&&o.jsx(Wt,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,children:o.jsx(ct,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),o.jsxs(Wt,{id:"social-media-column",name:n==null?void 0:n.title,children:[o.jsx(ct,{children:n==null?void 0:n.subTitle}),o.jsx(ct,{type:"social-media",iconSize:24,iconLink:r}),o.jsx(os,{})]})]})};as.displayName="Footer";const bn={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Cn=({id:e})=>{const{setIsOpen:t,cartStore:{items:n}}=Te(),{handleSelectContent:r}=F(),{CONSTANTS:s}=G();return o.jsx(p.Header.SupportItem,{onClick:()=>{t(!0),r({content:"header:minicart"})},id:e,children:o.jsxs(p.Badge.AutoPositioner,{children:[o.jsx(p.Badge.Count,{count:n.length,size:"medium",variant:"primary",style:{backgroundColor:"black",display:n.length>0?"flex":"none"}}),o.jsx(p.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};Cn.displayName="Header.Bag";const Ue=({children:e,href:t,...n})=>t&&t!=="#"?o.jsx(te,{href:t.startsWith("/")?t:`/${t}`,...n,children:e}):e,is=()=>{const{headerData:e}=G(),{handleSelectContent:t}=F(),{reset:n,updateValue:r}=_e(),s=a=>{a?r(a):n()};return o.jsx(p.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((a,i)=>o.jsx(Ue,{href:a.link,onMouseEnter:()=>s(a.submenuId),onFocus:()=>s(a.submenuId),children:o.jsx(p.Header.CategoryItem,{className:bn["btn-header"],value:a.submenuId??null,adornment:{start:o.jsx(p.Icon,{name:a.iconStart}),end:o.jsx(p.Icon,{name:a.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${a.label}`})},children:a.label})},`category-${a.label}-${i}`))})};is.displayName="Header.Categories";function Lc({SearchModal:e}){const{handleSelectContent:t}=F(),{CONSTANTS:n}=G(),{setValue:r}=mn();return o.jsxs(o.Fragment,{children:[o.jsx(p.Header.SupportItem,{onClick:()=>{r(!0),t({content:"header:search"})},children:o.jsx(p.Icon,{name:n.header.ICONS.search,size:"medium"})}),o.jsx(e,{recommendations:!1,trends:!0})]})}const zc={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},jn=({thumbnails:e,category:t,isMobile:n=!0,callBack:r})=>{const{handleSelectPromotionEvent:s}=F(),a=50/e.length;return o.jsx("div",{className:zc["menu-subcategories-container"],children:e.map((i,c)=>{const l=n?i.srcMobile:i.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:i.promotion_name};return o.jsx(yn,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:o.jsxs(te,{href:i.link??"#",onClick:()=>{typeof r=="function"&&r(),s({updatePromotionRef:!0,promotion:u})},children:[o.jsx(ie.Image,{src:l,alt:i.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${a}vw`}),i.label&&o.jsx("p",{children:i.label})]})},`thumb-${i.label}-${c}`)})})};jn.displayName="Menu.Thumbnail";const on={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},cs=({children:e,dividerOnRight:t=!0,subMenu:n,...r})=>{var l;const{router:s}=ae(),{reset:a}=_e(),{handleSelectContent:i}=F(),{CONSTANTS:c}=G();return o.jsxs("div",{...r,className:on["menu-categories"],children:[(l=n==null?void 0:n.subCategories)==null?void 0:l.map((u,f)=>{var _,g,h;const m=u.listCollapseDesk&&!((_=u.see_all)!=null&&_.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((g=u.see_all)!=null&&g.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:o.jsx(p.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(p.ComponentList.Structure,{children:[o.jsx(Ue,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(a(),i({content:`menu:${u.label??""}:${n.label??""}`}))},children:o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{children:o.jsx("h2",{children:u.label})})})}),o.jsx(p.ComponentList.List,{columns:1,...m,className:on["submenu-categories"],children:u.items.map((y,v)=>o.jsx(p.ComponentList.ListItem,{id:`list-item-${y.label}-${v}`,children:o.jsx(Oe,{href:y.link??"#",size:"x-small",title:y.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{a(),i({content:`menu:${u.label??""}:${y.label??""}:${n.label??""}`})},children:y.label})},`list-item-${y.label}-${v}`))}),((h=u.see_all)==null?void 0:h.link)&&o.jsx(p.ComponentList.Support,{...d,size:"small",onClick:()=>{var y;(y=u.see_all)!=null&&y.link&&(a(),i({content:`menu:${u.label??""}:${n.label}`}),s.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&o.jsx(p.Utils.Divider,{size:"small",direction:"vertical"})]})};cs.displayName="Menu.Categories";const ls=({children:e,dividerOnBottom:t=!0,...n})=>{const{CONSTANTS:r}=G();return o.jsxs(o.Fragment,{children:[o.jsx("div",{...n,className:on["menu-desktop"],style:{...n.style,justifyContent:r.header.ALIGNMENT_MENU},children:e}),t&&o.jsx(p.Utils.Divider,{size:"small"})]})};ls.displayName="Menu.MenuRoot";const qc=xn(()=>Promise.resolve(ls),{ssr:!1}),Vt={Root:qc,Categories:cs,Thumbnail:jn},us=()=>{const{headerData:e,CONSTANTS:t}=G(),n=ft(),{reset:r}=_e();return o.jsx(p.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,a)=>{const{thumbnails:i,label:c,id:l}=s,u=l===n,f=i==null?void 0:i.some(m=>!!m.srcDesk);return o.jsxs(Vt.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[o.jsx(Vt.Categories,{dividerOnRight:!!f,subMenu:s}),Array.isArray(i)&&o.jsx(Vt.Thumbnail,{thumbnails:i,isMobile:!1,category:c,callBack:r})]},`submenu-${l}-${a}`)})})};us.displayName="Header.SubMenu";const ds=()=>{const{handleSelectContent:e}=F(),{CONSTANTS:t}=G();return o.jsx(te,{href:"/favoritos",children:o.jsx(p.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:o.jsx(p.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};ds.displayName="Header.WishList";const fs=({UserMenu:e,SearchModal:t})=>{const n=x.useRef(null),{CONSTANTS:r}=G(),{handleSelectContent:s}=F(),{reset:a}=_e(),{setValue:i}=pn();return o.jsxs(o.Fragment,{children:[o.jsxs(p.Header.Wrapper,{children:[o.jsx(p.Header.Logo,{style:{width:"100%"},children:o.jsx(te,{href:"/",onMouseEnter:a,children:o.jsx(p.Icon,{name:r.header.ICONS.logo,size:"x-large",onClick:()=>{s({content:"header:logo"})}})})}),o.jsx(is,{}),o.jsxs(p.Header.Support,{onMouseEnter:a,style:{justifyContent:"flex-end"},children:[o.jsx(Lc,{SearchModal:t}),o.jsx(e,{target:n.current,children:o.jsx(p.Header.SupportItem,{onClick:()=>{i(!0),s({content:"header:user_menu"})},className:bn["btn-login"],innerRef:n,children:o.jsx(p.Icon,{name:r.header.ICONS.person,size:"medium"})})}),o.jsx(ds,{}),o.jsx(Cn,{id:"cart-button"})]})]}),o.jsx(us,{})]})};fs.displayName="Header.HeaderDesktopWrapper";const $c="_divider_1lexj_199",H={"modal-modifier":"_modal-modifier_1lexj_1","menu-mobile":"_menu-mobile_1lexj_11","menu-header-container":"_menu-header-container_1lexj_26","menu-header-wrapper":"_menu-header-wrapper_1lexj_35","menu-header-navlinks":"_menu-header-navlinks_1lexj_41","menu-body":"_menu-body_1lexj_57","menu-categories-container":"_menu-categories-container_1lexj_74","menu-categories-btn":"_menu-categories-btn_1lexj_108","menu-body-banner-container-modifier":"_menu-body-banner-container-modifier_1lexj_121","menu-categories__banner":"_menu-categories__banner_1lexj_130","menu-submenu-modal-modifiier":"_menu-submenu-modal-modifiier_1lexj_135","menu-submenu":"_menu-submenu_1lexj_135","menu-submenu--item":"_menu-submenu--item_1lexj_150","menu-submenu--thumbnails":"_menu-submenu--thumbnails_1lexj_156","menu-submenu--component-list-modifier":"_menu-submenu--component-list-modifier_1lexj_184","submenu-categories":"_submenu-categories_1lexj_187","menu-navigationbar":"_menu-navigationbar_1lexj_191",divider:$c,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},ms=({children:e,mobileBannerAlt:t,mobileBannerSrc:n,onClick:r,textColor:s,...a})=>o.jsx("button",{onClick:r,className:H["menu-categories-btn"],children:n?o.jsxs(p.Banner.Container,{...a,className:H["menu-body-banner-container-modifier"],children:[o.jsx(p.Banner.ImageWrapper,{style:{width:"100%"},children:o.jsx(ie.Image,{src:n,alt:t??n,className:H["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),o.jsx(p.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{className:H["menu-categories-textstructure-modifier"],children:o.jsx("h2",{className:"typography-style-body-xs",style:s?{color:s}:{},children:e})})})})]}):o.jsx("h2",{...a,children:e})});ms.displayName="Menu.MenuCategories";const ps=({children:e,link:t})=>{const{reset:n}=xe();return t?o.jsx(te,{href:t??"#",onClick:n,children:e}):e};ps.displayName="Menu.MenuCategoriesWrapper";const hs=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:n}=ae(),{reset:r}=xe(),{handleSelectContent:s}=F(),{CONSTANTS:a}=G(),i=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open:a.header.ICONS.add,close:a.header.ICONS.minus},expansivesLabels:{open:a.header.COMPONENT_LIST.listExpandLabel,close:a.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:o.jsx(p.Icon,{name:a.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(p.ComponentList.Structure,{className:H["menu-submenu--component-list-modifier"],children:[o.jsx(Ue,{href:e.linkLabel,title:e.label,onClick:()=>{r(),s({content:`menu:${e.label??""}:${t}`})},children:o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{children:o.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),o.jsx(p.ComponentList.List,{columns:1,...i,className:H["submenu-categories"],children:e.items.map((m,d)=>o.jsx(p.ComponentList.ListItem,{id:`list-item-${m.label}-${d}`,divider:!0,children:o.jsx(Oe,{href:m.link??"#",size:"x-small",title:m.label??"",disableUnderline:!0,onClick:()=>{r(),s({content:`menu:${e.label??""}:${m.label}:${t}`})},children:m.label})},`list-item-${m.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&o.jsx(p.ComponentList.Support,{...c,size:"small",onClick:()=>{var m;r(),s({content:`menu:${e.label??""}:${t}`}),(m=e.see_all)!=null&&m.link&&n.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};hs.displayName="Menu.SubMenuSubCategory";const _s=({submenu:e})=>{var a;const t=ft(),{handleCloseSubMenu:n}=He(),{reset:r}=_e(),{CONSTANTS:s}=G();return o.jsxs("div",{className:H["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[o.jsx(p.TextStructure.Root,{adornment:{start:o.jsx(p.Icon,{name:s.header.ICONS.arrow_back,size:"medium",onClick:n})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&o.jsx(p.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:o.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),o.jsx("div",{className:H["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&o.jsx(jn,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:r})}),(a=e==null?void 0:e.subCategories)==null?void 0:a.map((i,c)=>o.jsx(hs,{subcategory:i,submenuLabel:e.label},`list-${i.label}-${c}`))]})};_s.displayName="Menu.SubMenuItem";const gs=()=>{const{headerData:e}=G(),t=ft(),{reset:n}=_e(),{bodyRef:r}=He();return o.jsx(p.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:n,parent:r.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:H["menu-submenu-modal-modifiier"],children:o.jsx("div",{className:H["menu-submenu"],children:e.subMenus.map((s,a)=>o.jsx(_s,{submenu:s},`submenu-${s.id}-${a}`))})})};gs.displayName="Menu.SubMenu";const ys=({className:e,...t})=>{const{headerData:n}=G(),{setValue:r}=_e(),{bodyRef:s}=He(),{handleSelectContent:a}=F();return o.jsxs("div",{...t,ref:s,id:"menu-body",className:H["menu-body"],children:[o.jsx("div",{className:H["menu-categories-container"],children:n.categories.map((i,c)=>{const l=i.submenuId?{}:{"data-close":!0};return o.jsx(ps,{link:i.submenuId?null:i.link,children:o.jsx(ms,{onClick:()=>{r(i.submenuId??null),a({content:`menu:${i.label}`})},mobileBannerSrc:i.mobileBannerSrc,mobileBannerAlt:i.mobileBannerAlt,textColor:i.textColor,...l,children:i.mobileBannerAlt})},`menu-categories-${c}`)})}),o.jsx(gs,{})]})};ys.displayName="Menu.MenuBody";const vs=({title:e,subtitle:t})=>{const{CONSTANTS:n}=G();return o.jsxs("div",{className:H["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&o.jsx(p.TextStructure.Root,{children:o.jsxs(p.TextStructure.DivWrapper,{children:[e&&o.jsx("h2",{className:"typography-style-body-md",children:e}),t&&o.jsx("h3",{children:t})]})}),o.jsx(p.Button,{adornment:{end:o.jsx(p.Icon,{name:n.header.ICONS.close})},variant:"tertiary",className:H["menu-close"],"data-close":!0})]})};vs.displayName="Menu.MenuHeaderWrapper";const xs=({navigationLinks:e})=>{const{reset:t}=xe(),{handleSelectContent:n}=F();return e?o.jsx("nav",{className:H["menu-header-navlinks"],children:e.map((r,s)=>o.jsx(Oe,{href:r.link??"#",adornments:{start:r.iconStart&&o.jsx(p.Icon,{name:r.iconStart}),end:r.iconEnd&&o.jsx(p.Icon,{name:r.iconEnd})},onClick:()=>{t(),n({content:`menu:navigationlinks-${r.label}`})},children:r.label},s))}):null};xs.displayName="Menu.MenuHeaderNavLinks";const bs=()=>{const{headerData:e}=G();return o.jsxs("div",{className:H["menu-header-container"],children:[o.jsx(vs,{title:e.title,subtitle:e.subtitle}),o.jsx(xs,{navigationLinks:e.navigationLinks})]})};bs.displayName="Menu.MenuHeaderContainer";const Cs=({children:e})=>{const{documentBodyRef:t}=He(),{CONSTANTS:n}=G(),r=fn(),{setValue:s}=xe();return o.jsx(p.Modal.RootWithoutPortal,{isOpen:r,setIsOpen:s,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:n.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:H["modal-modifier"],children:o.jsx("div",{className:H["menu-mobile"],children:e})})};Cs.displayName="Menu.MenuRoot";const Bc=xn(()=>Promise.resolve(Cs),{ssr:!1}),ut=({children:e,...t})=>o.jsxs(o.Fragment,{children:[o.jsx(p.Button,{...t,className:H["menu-navigationbar-item"],children:e}),o.jsx(p.Utils.Divider,{direction:"vertical",size:"small",className:H.divider})]});ut.displayName="Menu.NavigationBarItem";const js=()=>{const{setIsOpen:e}=Te(),{reset:t}=xe(),{setValue:n}=pn(),{handleSelectContent:r}=F(),{CONSTANTS:s}=G(),{router:a}=ae();return o.jsxs(p.Card,{id:"menu-navigationbar",shadow:!0,className:H["menu-navigationbar"],style:{zIndex:s.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[o.jsx(ut,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.login.button_icon,onClick:()=>{t(),n(!0),r({content:"menu:user_menu"})},children:s.header.MENU_INFO.login.button_text}),o.jsx(ut,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),r({content:"menu:minicart"})},children:s.header.MENU_INFO.bag.button_text}),o.jsx(ut,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.store.button_icon,onClick:()=>{a.push("/institucional/lojas"),t(),r({content:"menu:store"})},children:s.header.MENU_INFO.store.button_text})]})};js.displayName="Menu.NavigationBar";const lt={Root:Bc,NavigationBar:js,Header:bs,Body:ys},Ss=({UserMenu:e,SearchModal:t})=>{const n=x.useRef(null),{CONSTANTS:r}=G(),{MENU_NAVIGATION_BAR_ALLOWED:s,ICONS:a}=r.header,{handleSelectContent:i}=F(),{setValue:c}=mn(),{setValue:l}=xe();return o.jsxs(o.Fragment,{children:[o.jsxs(p.Header.Wrapper,{children:[o.jsx(p.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:o.jsx(te,{href:"/",children:o.jsx(p.Icon,{name:a.logo,size:"x-large",onClick:()=>{i({content:"header:logo"})}})})}),o.jsxs(p.Header.Support,{children:[o.jsx(p.Header.SupportItem,{onClick:()=>{c(!0),i({content:"header:search"})},children:o.jsx(p.Icon,{name:a.search,size:"medium"})}),o.jsx(Cn,{}),o.jsxs(p.Header.SupportItem,{onClick:()=>l(!0),children:[o.jsx("span",{ref:n}),o.jsx(p.Icon,{name:a.menu,size:"medium"})]})]})]}),o.jsx(t,{recommendations:!1,trends:!0}),o.jsx(wo,{children:o.jsx(e,{target:n==null?void 0:n.current,children:o.jsxs(lt.Root,{children:[o.jsx(lt.Header,{}),o.jsx(lt.Body,{}),s?o.jsx(lt.NavigationBar,{}):o.jsx(o.Fragment,{})]})})})]})};Ss.displayName="Header.HeaderMobileWrapper";const Is=({tipBar:e,miniCart:t,UserMenu:n,SearchModal:r})=>{const{structureRef:s,rootRef:a,CONSTANTS:i}=G(),{header:{HEADER_CONFIGS:c,Z_INDEX_WAR:l}}=i;return o.jsx(p.Header.Structure,{innerRef:s,adornment:{start:e},style:{position:"sticky",top:0,zIndex:l.header},className:bn["header-animation"],children:o.jsxs(p.Header.Root,{innerRef:a,style:{zIndex:l.header},variant:c.default_variant,interactiveVariant:c.interactive_variant,children:[o.jsx("div",{className:dt["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:l.header_mobile},children:o.jsx(Ss,{UserMenu:n,SearchModal:r})}),o.jsx("div",{className:dt["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:l.header_desktop},children:o.jsx(fs,{UserMenu:n,SearchModal:r})}),t,o.jsx(vn,{title:"Produto adicionado à sua sacola!",CONSTANTS:i.addToCart})]})})};Is.displayName="Header";const Fc="_shippingFreight_6z8rf_6",Hc="_shippingFreight__postalCodeGrid_6z8rf_10",Uc="_shippingFreight__grid_6z8rf_14",Wc="_shippingFreight__grid__title_6z8rf_18",Vc="_shippingFreight__grid__remember_6z8rf_29",Gc="_postalCodeContainer_6z8rf_44",Kc="_deliveryStatusBar__tag_6z8rf_49",Xc="_deliveryStatusBarError__tag_6z8rf_66",Qc="_deliveryInfo_6z8rf_74",Yc="_deliveryInfo__content_6z8rf_78",Zc="_deliveryInfo__text_6z8rf_84",Jc="_deliveryInfo__title_6z8rf_89",el="_deliveryInfo__subtitle_6z8rf_99",tl="_deliveryInfo__tooltipIcon_6z8rf_109",nl="_deliveryInfo__tooltip_6z8rf_109",rl="_freightGrid_6z8rf_148",ol="_freightContainer_6z8rf_155",sl="_freightOption__content_6z8rf_160",al="_freightOption__value_6z8rf_166",il="_freightOption__title_6z8rf_177",cl="_freightOption__title_item_6z8rf_181",ll="_freightOption__paragraph_6z8rf_192",L={shippingFreight:Fc,shippingFreight__postalCodeGrid:Hc,shippingFreight__grid:Uc,shippingFreight__grid__title:Wc,shippingFreight__grid__remember:Vc,postalCodeContainer:Gc,deliveryStatusBar__tag:Kc,deliveryStatusBarError__tag:Xc,deliveryInfo:Qc,deliveryInfo__content:Yc,deliveryInfo__text:Zc,deliveryInfo__title:Jc,deliveryInfo__subtitle:el,deliveryInfo__tooltipIcon:tl,deliveryInfo__tooltip:nl,freightGrid:rl,freightContainer:ol,freightOption__content:sl,freightOption__value:al,freightOption__title:il,freightOption__title_item:cl,freightOption__paragraph:ll,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},ul=({icon:e,title:t,subtitle:n,packageCount:r,packageUnit:s="",labelDescription:a,freightConfig:i,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),f=x.useRef(null),m=()=>u(d=>!d);return o.jsxs("div",{className:L.deliveryInfo,ref:f,children:[o.jsx(p.Tooltip.Root,{arrow:"bottom",component:o.jsx("div",{children:o.jsx("p",{children:i.messages.select_size_tag})}),id:"freight--tooltip",className:L["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),o.jsxs("div",{className:L.deliveryInfo__content,children:[o.jsx("div",{className:L.deliveryInfo__icon,children:o.jsx(p.Icon,{name:e,size:"medium"})}),o.jsxs("div",{className:L.deliveryInfo__text,children:[o.jsxs("span",{className:L.deliveryInfo__title,children:[t," ",r," ",s]}),n&&o.jsx("span",{className:L.deliveryInfo__subtitle,children:n})]}),a&&o.jsxs("div",{className:L.deliveryInfo__tooltipIcon,onMouseEnter:m,onMouseLeave:m,"aria-label":"Mostrar descrição",children:[o.jsx("span",{children:o.jsx(p.Icon,{name:i.icons.feedback_help,size:"small"})}),l&&o.jsx("div",{className:L.deliveryInfo__tooltip,children:a})]})]})]})},dl=({value:e,title:t,paragraph:n})=>o.jsx("div",{className:L.freightOption,children:o.jsxs("div",{className:L.freightOption__content,children:[o.jsx("span",{className:L.freightOption__value,children:e}),o.jsx("span",{className:L.freightOption__title,children:o.jsx(p.TextStructure.Root,{children:o.jsxs(p.TextStructure.DivWrapper,{className:L.footer__item,children:[o.jsx("span",{className:L.freightOption__title_item,children:t}),n&&o.jsx("span",{className:L.freightOption__paragraph,children:n})]})})})]})}),fl=({children:e})=>o.jsx("div",{className:L.freightContainer,children:e}),ml=({children:e})=>o.jsx("div",{className:L.freightGrid,children:e}),pl=({children:e})=>o.jsx("div",{className:L.postalCodeContainer,children:e}),Ir=({message:e,seller:t="",size:n="small",setError:r})=>o.jsx("div",{className:r?L.deliveryStatusBarError:L.deliveryStatusBar,children:o.jsxs(p.Tag,{title:e,className:r?L.deliveryStatusBarError__tag:L.deliveryStatusBar__tag,size:n,children:[e," ",!r&&t]})}),hl=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},_l=e=>{var n,r,s;const t=[];return(s=(r=(n=e==null?void 0:e.logisticsInfo)==null?void 0:n[0])==null?void 0:r.slas)==null||s.forEach(a=>{t.push({id:a.id,name:a.name,price:a.price,shippingEstimate:a.shippingEstimate})}),t},gl=({component:e,parent:t,top:n,left:r,target:s,contentRef:a,freightConfig:i,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=pe();return o.jsx(o.Fragment,{children:u?o.jsx(p.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:a,children:[e,o.jsx("p",{children:i.messages.select_size_tag})]}),id:"freight--tooltip",className:L["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):o.jsx(p.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:a,children:[e,o.jsx("p",{children:i.messages.select_size_tag})]}),id:"freight--tooltip",className:L["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},yl=({onUpdateFreightItems:e,sellerId:t,size:n,skuId:r,quantity:s,setError:a,setIsButtonClicked:i,component:c,freightConfig:l,toolTipZIndex:u})=>{var z,E,T,M;const f=we(),m=we(w=>w.shipping),[d,_]=x.useState(),[g,h]=x.useState(!1),[y,v]=x.useState(!1),[N,S]=x.useState(!1),b=(E=(z=f.shippingData)==null?void 0:z.address)==null?void 0:E.postalCode,C=!(d!=null&&d.length)&&b?b:d,j=x.useRef(null),I=async w=>{const q=w.target.value.replace(/\D/g,"").slice(0,8);q.length>5?_(q.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):_(q)},P=async w=>{const k=w.target.value.replace(/\D/g,"");try{if((await On.get(`https://viacep.com.br/ws/${k}/json/`)).data.erro){a&&a(l.messages.cep_not_found),i(!1),v(!0);return}a&&a(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},R=async()=>{h(!0);try{const w=await On.post("/api/checkout/simulation",{items:[{id:r,quantity:s,seller:t}],country:"BRA",postalCode:C});e(_l(w.data))}catch(w){console.error("Erro ao atualizar o documento:",w)}finally{h(!1),m(C,"BRA")}},O=async()=>{if(!r){S(!0),setTimeout(()=>S(!1),1500);return}await P({target:{value:C}}),g||(R(),i(!0))};return o.jsxs("div",{ref:j,style:{position:"relative"},children:[!r&&N?o.jsx(gl,{component:c,isOpen:N,parent:j.current,toolTipZIndex:u,freightConfig:l}):o.jsx(o.Fragment,{}),o.jsx("div",{style:{position:"relative"},children:o.jsx(p.TextField.Structure,{title:"structure",style:{width:"100%"},input:o.jsx(p.TextField.Input,{defaultValue:(M=(T=f.shippingData)==null?void 0:T.address)==null?void 0:M.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:n,onMouseOver:()=>r?null:S(!0),onMouseOut:()=>r?null:S(!1),mode:"simple",onChange:I,onKeyDown:w=>{w.key==="Enter"&&O()},className:L["input-modifier"],feedback:y?"error":"none"}),right:o.jsx(p.Button,{onClick:O,size:n,title:"button",children:g?o.jsx(p.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},vl=({children:e,freightConfig:t})=>o.jsxs("div",{className:L.shippingFreight,children:[o.jsxs("div",{className:L.shippingFreight__grid,children:[o.jsx("span",{className:L.shippingFreight__grid__title,children:t.messages.title}),o.jsx("span",{className:L.shippingFreight__grid__remember,children:o.jsx(Oe,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),o.jsx("div",{className:L.shippingFreight__postalCodeGrid,children:e})]}),xl=({children:e})=>o.jsx("div",{className:L.freightContainer,children:e}),bl=({className:e,sellerId:t,skuId:n,quantity:r,size:s,seller:a,local:i,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=F(),[u,f]=x.useState(""),[m,d]=x.useState([]),[_,g]=x.useState(""),[h,y]=x.useState(!1),v=S=>f(S),N=S=>{d(S),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:S.map(b=>({shipping_tier:b.id,delivery_time:b.shippingEstimate.replace("bd",""),flag_pickup:b.name.toLowerCase().includes("retirada")?"true":"false",shipping:b.price,currency:c.currency||"BRL"}))}}})};return o.jsxs(xl,{className:e,children:[o.jsxs(vl,{freightConfig:c.freightConfig,children:[o.jsx(pl,{children:o.jsx(yl,{onUpdateFreightItems:N,skuId:n,quantity:r,size:s,sellerId:t,local:i,setError:g,setIsButtonClicked:y,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),_?o.jsx(Ir,{size:s,message:_,setError:g}):m.length>0&&o.jsx(Ir,{size:s,message:c.freightConfig.messages.delivered_by,seller:a})]}),h&&!_?m.length>0&&o.jsxs(fl,{children:[o.jsx(ml,{children:m.filter(({id:S})=>!S.includes("Retirada")).map(S=>o.jsx(dl,{id:S.id,value:Tr({valueInCents:S.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:S.name,paragraph:`${c.freightConfig.messages.prefix_days}${hl(S.shippingEstimate)}`,radioValue:u,changeValue:v},S.id))}),c.deliveryInfoBoxesAllowed?o.jsx(ul,{icon:c.freightConfig.icons.delivery_truck,packageUnit:c.freightConfig.messages.unit_amout,title:c.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex??999}):o.jsx(o.Fragment,{})]}):null]})},Ns=x.createContext({}),Cl=({children:e,item:t,index:n,shelfTitle:r,...s})=>{const[a,i]=x.useState(null),c=x.useRef(null),l=x.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=F(),m=h=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:n+1},event:h}})},d=()=>{m("add_to_wishlist")},_=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:a,selectedSkus:[a]},customData:{index:n}}})},g=()=>{r&&(f.current={item_list_name:r}),m("select_item")};return o.jsx(Ns.Provider,{value:x.useMemo(()=>({...s,index:n,item:t,element:c,selectedSku:a,setSelectedSku:i,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:g,sendAddToCartEvent:_}),[s,t,c,a]),children:e})},ne=()=>{const e=x.useContext(Ns);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},X={"product-card--actions":"_product-card--actions_qxtc1_1","product-card--actions--group":"_product-card--actions--group_qxtc1_9","product-card--actions--selectors":"_product-card--actions--selectors_qxtc1_21","product-card--body":"_product-card--body_qxtc1_33","product-card--header":"_product-card--header_qxtc1_47","product-card--footer":"_product-card--footer_qxtc1_67","product-card--image":"_product-card--image_qxtc1_90","product-card--image--container":"_product-card--image--container_qxtc1_97","product-card--outstock":"_product-card--outstock_qxtc1_133","product-card--price":"_product-card--price_qxtc1_155","product-card--title":"_product-card--title_qxtc1_180","product-card--title--tag":"_product-card--title--tag_qxtc1_186","product-card--title--content":"_product-card--title--content_qxtc1_203","product-card--selectors--size":"_product-card--selectors--size_qxtc1_243","product-card--selectors--size--button":"_product-card--selectors--size--button_qxtc1_269","product-card--selectors--size--skus":"_product-card--selectors--size--skus_qxtc1_278","product-card--selectors--style":"_product-card--selectors--style_qxtc1_292","product-card--selectors--style--more":"_product-card--selectors--style--more_qxtc1_302","product-card--video":"_product-card--video_qxtc1_319","product-card--wrapper":"_product-card--wrapper_qxtc1_345"},Ps=({callback:e,children:t,className:n,data:r,isKit:s,...a})=>{const{item:{availability:{status:i},image:c}}=ne();return i?o.jsxs("div",{...a,className:p.helpers.classNameConcat(X["product-card--actions"],n),children:[o.jsxs(Pe.Wrapper,{type:"actions--group",children:[o.jsx(Pe.Price,{}),o.jsx("div",{className:X["product-card--actions--selectors"],children:!s&&o.jsx(Pe.StyleSelector,{data:r,images:c,callback:e})})]}),t]}):null};Ps.displayName="ProductCard.Actions";const ws=({className:e,isKit:t,...n})=>{const{addToCart:r}=Te(),{isMobile:s=!1,selectedSku:a,outStock:i,item:c,sendAddToCartEvent:l,CONSTANTS:u}=ne(),f=()=>{var _;if(!a)return;const d=kr(a.offers.offers,u.StoreConfig_MainSellerId);d&&r({id:a==null?void 0:a.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(_=c==null?void 0:c.image.find(g=>u.TEXTURE_IMAGE.includes(g.alternateName)))==null?void 0:_.url}),l()},m=a?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return o.jsx(p.Button,{...n,className:p.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!a&&!i,size:s?"medium":"large",variant:i?"secondary":"primary",onClick:i?n.onClick:f,children:i?"Avise-me quando chegar":m})};ws.displayName="ProductCard.Actions.BuyButton";const Es=({product:e,tag:t,size:n="small"})=>{const r=e.offers.offers[0],{CONSTANTS:s,WishListToggle:a}=ne();return o.jsxs(Pe.Wrapper,{type:"header",style:{zIndex:s.Z_INDEX_WAR.product_card_header},children:[t?o.jsx(p.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?o.jsx(p.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:n,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,s.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&o.jsx(a,{product:e,priceInfo:{price:r.price,listPrice:r.listPrice},variant:"card"})]})};Es.displayName="ProductCard.Actions.Header";const Rs=({className:e,children:t,hasPriority:n=!1,showVideo:r=!1,...s})=>{const{element:a,index:i,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:m,CONSTANTS:d}=ne(),_=qr({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return o.jsxs("div",{...s,className:p.helpers.classNameConcat(X["product-card--image"],e),ref:a,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[o.jsx(te,{href:`/${l}/p`,onClick:f,onMouseUp:g=>{g.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(m))},children:o.jsx("div",{className:X["product-card--image--container"],children:Array.isArray(_)&&_.map(({url:g,alternateName:h},y)=>x.createElement(ie.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:h??"product image",key:y,...n&&{priority:y===0&&i<4},objectFit:"cover",src:g}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&r&&u&&o.jsx(Pe.Video,{url:u,poster:_[0].url}),t]})};Rs.displayName="ProductCard.Media.Media";const Ts=({className:e,callback:t,children:n,...r})=>{const{isMobile:s,item:a,CONSTANTS:{PRODUCT_CARD_TEXTS:i}}=ne(),{availability:{status:c}}=a;return c?null:o.jsxs("div",{...r,className:p.helpers.classNameConcat(X["product-card--outstock"],e),children:[o.jsx(p.Tag,{size:"small",variant:"secondary",title:i.disabled,children:i.disabled}),o.jsx(p.Button,{className:p.helpers.classNameConcat(e,"buy-button"),size:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(a)},children:i.notify})]})};Ts.displayName="ProductCard.OutStock";const Os=({children:e,className:t="",index:n,isMobile:r=!1,item:s,size:a,order:i,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...m})=>o.jsx(Cl,{item:s,isMobile:r,outStock:c,order:i,size:a,index:n,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:o.jsx("div",{...m,className:p.helpers.classNameConcat(X["product-card--wrapper"],t),"data-size":a,children:e})});Os.displayName="ProductCard.Root";const As=({disabled:e,label:t,size:n,value:r,onClick:s,...a})=>o.jsxs(p.ToggleSize.Wrapper,{...a,disabled:!1,outOfStock:e,size:n,onClick:s,children:[o.jsx(p.ToggleSize.DisabledAdornment,{}),o.jsx(p.ToggleSize.Text,{children:t})]});As.displayName="ProductCard.SizeSelector.Item";const Ms=({active:e=!1,callback:t,selectedSku:n=null,item:r,setNotify:s})=>{const{item:a,isMobile:i,setSelectedSku:c,eventDataRef:l}=ne();r.productId=a.id;const u=Mr(r),f=Or(r,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const m=x.useCallback(_=>{const g=n===_?null:_;typeof c=="function"&&c(g),typeof t=="function"&&t(g)},[t,c,n]),d=x.useCallback(()=>{if(u&&typeof s=="function"){s(a,r);return}m(r)},[r,s,m,u,a]);return o.jsx(As,{active:e,disabled:u,label:f,onClick:()=>d(),size:i?"x-small":"small",value:r})};Ms.displayName="ProductCard.SizeSelector.SkuItem";const ks=({callback:e,className:t="",children:n,setNotify:r,...s})=>{const{isMobile:a,item:{isVariantOf:{hasVariant:i}},selectedSku:c}=ne();return o.jsxs("div",{...s,className:p.helpers.classNameConcat(X["product-card--selectors--size"],t),"data-mobile":a,children:[o.jsx("div",{className:X["product-card--selectors--size--skus"],children:Array.isArray(i)&&i.map((l,u)=>o.jsx(Ms,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:r},`size--${u}--${l.sku}`))}),o.jsx("div",{className:X["product-card--selectors--size--button"],children:n})]})};ks.displayName="ProductCard.SizeSelector";const sn=({alt:e="",callback:t,more:n,total:r=4,src:s,url:a,...i})=>o.jsxs(p.ToggleStyle.Wrapper,{...i,onClick:()=>{typeof t=="function"&&t(a)},children:[o.jsx(p.ToggleStyle.DisabledAdornment,{}),o.jsxs(p.ToggleStyle.Texture,{children:[s&&o.jsx(ie.Image,{alt:e??s,src:s,height:34,width:34}),n&&o.jsx(p.TextStructure.DivWrapper,{className:X["product-card--selectors--style--more"],children:o.jsxs("p",{children:["+ ",r]})})]})]}),jl=({children:e,callback:t,data:n,total:r=4,size:s,...a})=>{const{index:i}=ne(),{triggerSelectItemEventRef:c}=F();return o.jsxs("div",{...a,children:[e,Array.isArray(n)&&n.slice(0,r).map((l,u)=>o.jsx(sn,{callback:f=>{c.current.trigger=!0,c.current.index=i,typeof t=="function"&&t(f)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:s},u)),Array.isArray(n)&&(n==null?void 0:n.length)>r&&o.jsx(sn,{size:s,total:n.length-r,more:!0})]})},Ds=({callback:e,className:t,data:n,images:r=[],findTexture:s,...a})=>{const{CONSTANTS:i}=ne(),c=s||i.TEXTURE_IMAGE,l=r==null?void 0:r.find(u=>c.includes(u.alternateName));return o.jsx(jl,{...a,callback:e,className:p.helpers.classNameConcat(X["product-card--selectors--style"],t),data:n,size:"x-small",children:l&&o.jsx(sn,{active:!0,size:"x-small",src:l.url})})};Ds.displayName="ProductCard.StyleSelector";const Ls=({className:e,hasDecimal:t,...n})=>{const{isMobile:r,item:{offers:{lowPrice:s,highPrice:a},installments:{count:i,value:c}},eventDataRef:l}=ne();l.current.priceInfo={price:s,listPrice:a};const u=me(a,t),f=me(s,t),m=me(c??0),d=r?"horizontal":"stacked";return o.jsx("div",{...n,className:p.helpers.classNameConcat(X["product-card--price"],e),"data-mobile":r,children:o.jsx(p.ProductInfo.Root,{size:"small",layout:d,children:o.jsxs(p.ProductInfo.Wrapper,{size:"small",layout:d,children:[o.jsx(p.ProductInfo.ValuesWrapper,{children:f!==u?o.jsxs(o.Fragment,{children:[o.jsx(p.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),o.jsx(p.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):o.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),i&&i>1&&c?o.jsx(p.ProductInfo.Price,{label:"installment",value:`${i}x ${m}`,size:"small"}):null]})})})};Ls.displayName="ProductCard.Price";const zs=({tag:e,className:t})=>{const{item:{name:n}}=ne();return o.jsxs("div",{className:p.helpers.classNameConcat(X["product-card--title"],t),children:[o.jsx("div",{className:X["product-card--title--tag"],children:e?o.jsx(p.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?o.jsx(p.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):o.jsx("div",{})}),o.jsx("div",{className:X["product-card--title--content"],children:n&&o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{children:o.jsx("h3",{children:n})})})})]})};zs.displayName="ProductCard.Title";const qs=({className:e,url:t,poster:n,...r})=>{const{element:s}=ne();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const a=s.current,i=a.querySelector("video");if(i){const c=new IntersectionObserver(f=>{f.forEach(m=>{$r(m.isIntersecting,i,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{i.setAttribute("data-loaded","true")},u=()=>{a&&(c.observe(a),i.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,s]),o.jsx("div",{...r,className:p.helpers.classNameConcat(X["product-card--video"],e),children:t&&o.jsx(ie.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:n})})};qs.displayName="ProductCard.Media.Video";const $s=({children:e,className:t,type:n,...r})=>o.jsx("div",{...r,className:p.helpers.classNameConcat(X[`product-card--${n}`],t),children:e});$s.displayName="ProductCard.Wrapper";const Pe={Actions:Ps,BuyButton:ws,Header:Es,Media:Rs,Root:Os,OutStock:Ts,Price:Ls,SizeSelector:ks,StyleSelector:Ds,Title:zs,Video:qs,Wrapper:$s},Nr=({image:e,index:t,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:r})=>{const s=Lr(e.imageUrl,r.pdp),{nextimage:a}=ae();return o.jsx(a,{src:s,alt:e.imageLabel,objectFit:"contain",...r.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{n(t)}},t)},Sl=({video:e,productName:t,poster:n})=>{const{sendDataLayerEvent:r}=F(),s=x.useRef(!1);return o.jsx(ie.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,r({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:n})},Il={"gallery-carousel-modifier":"_gallery-carousel-modifier_1pjec_92"},Bs=({images:e,video:t,handleZoom:n,productName:r,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,f;const{initialize:a,pagination:i,controller:c,itemsStyles:l}=p.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return o.jsxs(p.Carousel.Root,{innerRef:m=>{a(m)},className:Il["gallery-carousel-modifier"],children:[o.jsx(p.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:o.jsx(p.Carousel.Bullets,{page:i.currentPage,total:e.length,onBulletClick:m=>c==null?void 0:c.navigateTo(m)})}),o.jsxs(p.Carousel.Body,{children:[o.jsx(p.Carousel.Item,{style:l,children:o.jsx(Nr,{image:e[0],index:0,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&o.jsx(p.Carousel.Item,{style:l,children:o.jsx(Sl,{video:t,productName:r,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((m,d)=>d===0?null:o.jsx(p.Carousel.Item,{style:l,children:o.jsx(Nr,{image:m,index:d,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};Bs.displayName="PDP.Carousel";const Nl=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:n,productName:r}=un(),[s,a]=x.useState({show:!1,initialIndex:0});x.useEffect(()=>(s.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[s]);const i=c=>{a({show:!0,initialIndex:c})};return o.jsx(o.Fragment,{children:o.jsx(Bs,{images:e,video:n,handleZoom:i,productName:r,PRODUCT_IMAGE_DIMENSIONS:t})})},Fs=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:n}=un(),r=x.useMemo(()=>{const s=n.filter(a=>!e.includes(a.imageLabel));return s.length>0?s:n},[]);return o.jsx(Nl,{productImgs:r,PRODUCT_IMAGE_DIMENSIONS:t})};Fs.displayName="PDP.Gallery";const Pl=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Fs},Symbol.toStringTag,{value:"Module"})),wl={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},Sn=({size:e,adornment:t,title:n,subtitle:r,supportChildren:s,className:a,Z_INDEX_WAR:i,...c})=>o.jsxs(p.SnackBar.Structure,{...c,size:e,className:p.helpers.classNameConcat(wl["snackbar-modifier"],a),width:360,style:{zIndex:i.snackbar},children:[o.jsx(p.SnackBar.Content,{adornment:t,title:n,subtitle:r}),s&&o.jsx(p.SnackBar.Support,{children:s})]});Sn.displayName="SnackBar";const Hs=x.createContext({}),El=({data:e,children:t,...n})=>{var g,h,y,v,N,S,b,C,j,I,P,R,O;const[r,s]=x.useState(!0),{initialize:a,controller:i,itemsStyles:c}=p.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(h=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:h.slideTranstionTimer,showCarouselArrows:(v=(y=e==null?void 0:e.staticConfig)==null?void 0:y.staticConfig)==null?void 0:v.showCarouselArrows,hasCloseBtn:(S=(N=e==null?void 0:e.staticConfig)==null?void 0:N.staticConfig)==null?void 0:S.hasCloseBtn,backgroundColor:(C=(b=e==null?void 0:e.staticConfig)==null?void 0:b.staticConfig)==null?void 0:C.backgroundColor,textColorVariant:(I=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:I.textColorVariant,content:((R=(P=e==null?void 0:e.content)==null?void 0:P.content)==null?void 0:R.items)??[]},u=(O=l.content)==null?void 0:O.filter(z=>!z.countDownEndDate||new Date(z.countDownEndDate)>new Date),f=u.length>1,m={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},_=p.helpers.ValidateProp({fieldTypes:ze.Mode,property:l.textColorVariant,fallback:"default"});return o.jsx(Hs.Provider,{value:{isOpen:r,setIsOpen:s,hasCarousel:f,backgroundStyle:m,handleCloseTipbar:d,mode:_,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:a,controller:i,itemsStyles:c},...n},children:t})},ge=()=>x.useContext(Hs),Rl=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:n}}=ge();return o.jsx(tn,{dateEnd:new Date(e),TIME_ZONE:n,...t})},Tl="_tipbar_bt3p0_1",Ol="_tipbar__carousel_bt3p0_15",We={tipbar:Tl,tipbar__carousel:Ol,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Al=({coupon:e,feedbackTitle:t,feedbackDescription:n,...r})=>{const{CONSTANTS:s}=ge(),[a,i]=x.useState({status:!1,showSnackBar:!1}),c=()=>{i({status:!0,showSnackBar:!0})};return x.useEffect(()=>{a.status&&setTimeout(()=>{i({status:!0,showSnackBar:!1})},s.TIPBAR_CONFIGS.snackbar_timeout)},[a]),o.jsxs(o.Fragment,{children:[o.jsx(p.Button,{...r,onClick:c,disabled:a.status,className:We["tipbar-item__coupon"],children:a.status?"Cupom aplicado":"Aplicar cupom"}),a.showSnackBar&&(t||n)&&o.jsx(Sn,{title:t,subtitle:n,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},Ml=({title:e,description:t,style:n,mode:r})=>o.jsx(p.TextStructure.Root,{children:o.jsxs(p.TextStructure.DivWrapper,{mode:r,children:[e&&o.jsx("h3",{className:"typography-style-body-sm",style:n,children:e}),t&&o.jsx("p",{className:"typography-style-caption",style:n,children:t})]})}),kl=({staticZone:e,type:t,title:n,description:r})=>{const{mode:s}=ge();if(t==="countdown")return o.jsx(Rl,{dateEnd:e.countDownEndDate,size:"x-small",mode:s});if(t==="coupon"){const a=p.helpers.ValidateProp({fieldTypes:ze.Mode,property:e.couponButtonMode,fallback:"default"}),i=p.helpers.ValidateProp({fieldTypes:ze.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?o.jsx(Al,{coupon:e.coupon,mode:a,variant:i,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}return o.jsx(Ml,{title:n,description:r,mode:s})},Dl=({children:e,mode:t="default",showCarouselArrows:n=!0,slideTranstionTimer:r})=>{const{carouselProps:s,CONSTANTS:a}=ge(),i=x.useRef(null),c=(u,f)=>{var m,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(m=s.controller)==null||m.prevPage():(d=s.controller)==null||d.nextPage(),i.current&&(clearInterval(i.current),l())},l=x.useCallback(()=>{if(r&&s.controller){const u=setInterval(()=>{var f;(f=s.controller)==null||f.nextPage()},r);i.current=u}},[r,s]);return x.useEffect(()=>(l(),()=>{i.current&&clearInterval(i.current)}),[r,l]),o.jsxs(p.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:We.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[n&&o.jsx(p.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:o.jsx(p.Icon,{name:a.ICONS.arrow_left})}}),o.jsx(p.Carousel.Body,{children:e}),n&&o.jsx(p.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:o.jsx(p.Icon,{name:a.ICONS.arrow_right})}})]})},Pr=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:n}=ge();return o.jsx(p.Button,{title:"fechar tipbar",className:We["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:o.jsx(p.Icon,{name:n.ICONS.close})}})},Ll=({children:e})=>{const{hasCarousel:t,mode:n,hasCloseBtn:r,backgroundStyle:s,showCarouselArrows:a,slideTranstionTimer:i,handleCloseTipbar:c}=ge(),l=t&&a;return o.jsx("div",{style:s,"data-hasclosebtn":r,className:We.tipbar,children:t?o.jsxs(o.Fragment,{children:[o.jsx(Dl,{mode:n,showCarouselArrows:l,slideTranstionTimer:i,children:e}),r&&o.jsx(Pr,{handleCloseTipbar:c,showCarouselArrows:l,mode:n})]}):o.jsxs(o.Fragment,{children:[e,r&&o.jsx(Pr,{handleCloseTipbar:c,mode:n})]})})},zl=({children:e,highlightFirstSection:t,...n})=>{const{hasCarousel:r,carouselProps:s}=ge(),a=o.jsx("div",{...n,className:We["tipbar-item"],children:e});return r?o.jsx(p.Carousel.Item,{style:s.itemsStyles,children:a}):a},Us=()=>{const{isOpen:e,slices:t}=ge();return t.length&&e?o.jsx(Ll,{children:t.map((n,r)=>{var s;return o.jsx(o.Fragment,{children:o.jsx(Ue,{href:n.link,children:o.jsx(zl,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((s=n==null?void 0:n.items)!=null&&s.length)?n.items.map((a,i)=>o.jsx(kl,{staticZone:n,type:a.type,title:a.title,description:a.description},`tipbar-slice-field-${i}`)):null})})},`tipbar-slice-${r}`)})}):null};Us.displayName="TipBar.Root";const Ws=e=>o.jsx(El,{...e,children:o.jsx(Us,{})});Ws.displayName="TipBar";const ql={teamComponents:{AddToCart:vn,BackToTop:nc,Footer:as,FreightCalculation:bl,Header:Is,Link:Oe,Media:ie,ProductCard:Pe,TipBar:Ws},template:{pdp:Pl},utils:{EventCollector:rc,ExternalScripts:hc,LinkOrNotLink:Ue,ObserverWrapper:yn,SnackBarComponent:Sn}};exports.cms=Qi;exports.contexts=Va;exports.data=ko;exports.layout=ql;
1
+ "use strict";var Yc=Object.defineProperty;var Zc=(e,t,r)=>t in e?Yc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ut=(e,t,r)=>Zc(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),B=require("react"),Fe=require("idb-keyval"),it=require("zustand"),b=require("@soma-vertical-web/core-components"),Te=require("draft-js"),nt=require("@soma-vertical-web/foundations"),fo=require("@date-fns/tz"),_a=require("react-dom"),po=require("axios"),Un=B.createContext({}),Jc=({data:e,children:t})=>c.jsx(Un.Provider,{value:{tags:e==null?void 0:e.config},children:t}),va=()=>{const{tags:e}=B.useContext(Un),t=B.useCallback(r=>{var a,s,u,l;const n=(s=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:s.find(p=>{var m;return(m=r??[])==null?void 0:m.find(d=>d.id===p.key)}),o=(l=(u=e==null?void 0:e.institucional)==null?void 0:u.items)==null?void 0:l.find(p=>{var m;return(m=r??[])==null?void 0:m.find(d=>d.id===p.key)}),i=e==null?void 0:e.flagPdp;return{commercial:n,institucional:o,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},ba=({gridScrollBack:e})=>{B.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},xa=B.createContext({}),eu=({children:e,gridScrollBack:t})=>{const r=B.useRef(null);return ba({gridScrollBack:t}),c.jsx(xa.Provider,{value:{sizesContainerRef:r},children:e})},tu=()=>{const e=B.useContext(xa);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Me=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),Ca=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Me(0):Me(e/100),Wn=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},kt=(e,t)=>{if(!e)return{};const[r,n]=e.split(t);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},Sa=(e,t="tamanho")=>{if(e.additionalProperty){const[r]=e.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===t?r.value:e.name:""}return e.name},ru=(e,t)=>e.replace(t,"").trim(),nu=e=>e.replace(/\//g,""),Aa=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(a,s)=>{var d;s&&(s.sellerId=a.sellerId,s.sellerName=a.sellerName,s.available=!0,s.isSellerDefault=a.sellerDefault);const{Price:u,ListPrice:l,PaymentOptions:{installmentOptions:p}}=a.commertialOffer;r.price=u,r.listPrice=l;const m=(d=p==null?void 0:p[0])==null?void 0:d.installments;if(m){const{count:f,value:h}=m[m.length-1];r.installments={count:f,value:h/100}}};let o=!0;const i=e.reduce((a,s)=>{var p;const u={name:s.name,sku:s.itemId,value:((p=s.Tamanho)==null?void 0:p[0])??Wn(s.nameComplete??s.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},l=s.sellers.filter(m=>(m.sellerDefault&&m.commertialOffer.IsAvailable&&(u.available=!0,n(m,u)),m.commertialOffer.IsAvailable));return!u.isSellerDefault&&l.length>0&&(u.available=!0,n(l[0],{...u,sellerId:l[0].sellerId,sellerName:l[0].sellerName})),u.available===!1&&(o=!1),a.push(u),a},[]);return{...r,sizes:i,allSizesAvailable:o}},Ra=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,Ea=(e,t)=>{const r=e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===t);return r||e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},wa=e=>e.find(t=>t.imageLabel==="10"),ja=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Ia=(e,t)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Pa=({images:e,label:t})=>{const r=e.filter(n=>n.keywords===t.first||n.keywords===t.second||n.alternateName===t.first||n.alternateName===t.second);return r.length===0?[e[0]]:r},ou=e=>{const[t,r]=e.split("/").map(Number);if(Number.isNaN(t)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/t},Na=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},iu=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Ra,formatPriceToCurrency:Me,freightParsePrice:Ca,getAspectRatio:ou,getColorAndSizeFromSkuName:kt,getFirstImages:Pa,getProductNameWithoutSku:ru,getSKUName:Sa,getSkuInfos:Aa,getThumbImage:wa,getValidOffer:Ea,removeSlashes:nu,resizingImg:ja,setVideoPlay:Na,splitNameAndSizeFromFullName:Wn,updatedResizedImg:Ia},Symbol.toStringTag,{value:"Module"})),Le=({event:e,data:t})=>{const r=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&r.push({ecommerce:null}),r.push({...e&&{event:`custom_${e}`},...t})},ve={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:r,commonData:n,customData:o,promotionInfo:i,itemList:a,outsideEcommerceData:s}=e,{availableSizes:u,sizes:l,price:p}=n,m={...r==="view_item"?{currency:ve.configs.currency,value:p,grade_disponivel:u??(l?Oa(l):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:ve.configs.currency}:{}},d=gt({data:n,customData:{...o,...a,...i},configs:ve.configs});Le({event:r,data:{...s,ecommerce:{...a,...m,items:[d]}}}),typeof t=="function"&&t(d,m)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const a=t.map(({node:s},u)=>gt({data:{...s},customData:{...r,index:u,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n},configs:ve.configs}));Le({event:"view_item_list",data:{...o,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:o,price:i},promotionInfo:a,itemList:s,outsideEcommerceData:u}=e;let l=0;const p=r.map(m=>{var y,g,v,R,_,S,C,w,x;const d=o==null?void 0:o.find(I=>(m.productId??m.id)===I.productId);let f={...a,...s};if(d){const I=Ma(),$=ka(I,d);$&&(f={...f,...$}),t==="add_to_cart"&&(a||s)&&Pn({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:s}}),t==="remove_from_cart"&&Pn({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}l+=m.price??((v=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:v.price)??0;const h=(d==null?void 0:d.size)??kt((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((R=m.itemOffered)==null?void 0:R.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return gt({data:m,customData:{...n,...f??{...a,...s},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=m.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??m.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((x=(w=(C=(S=d==null?void 0:d.offers)==null?void 0:S.offers)==null?void 0:C[0])==null?void 0:w.seller)==null?void 0:x.identifier)??m.seller},configs:ve.configs})});Le({event:t,data:{...u,ecommerce:{value:i??l,currency:ve.configs.currency,items:p}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:n}=e,o={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((a=t==null?void 0:t.selectedFacets)!=null&&a.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:s,value:u})=>{var m;const l=((m=ve.configs.PLP_FILTERS.find(d=>d.key===s))==null?void 0:m.eventLabel)??s,p=(o==null?void 0:o[l])||[];l==="price_range"&&u.replace(":","-"),o[l]=[...p,u]}),Object.keys(o).forEach(s=>i[s]=o[s].join(", "))),Le({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var p,m,d,f,h,y,g,v,R,_;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const o=window.localStorage.getItem("persistedCartEventsData"),i=o?JSON.parse(o):{},a=n.items.map(S=>{const{promotionInfo:C,itemList:w}=i[S.id]??{};return gt({data:{...S,price:S.price/100,listPrice:S.listPrice/100},customData:{...C,...w,item_sku:S.id??S.itemOffered.sku,quantity:S.quantity??1},configs:ve.configs})}),s=(((p=n.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,u=(((m=n.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:m.value)??0)/100,l=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(f=n.marketingData)==null?void 0:f.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];Le({event:"view_cart",data:{...r,ecommerce:{currency:ve.configs.currency,value:s+u,total_discount:Math.abs(u),cep_preenchido:!!((v=(g=n.shippingData)==null?void 0:g.address)!=null&&v.postalCode),...l?{seller_coupon_name:l}:{},...((R=n.marketingData)==null?void 0:R.coupon)&&{sale_coupon_name:(_=n.marketingData)==null?void 0:_.coupon},subtotal:s,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Le({event:t,data:{...r}})}},Oa=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),au=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(ve.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},gt=({data:e,customData:t,configs:r})=>({...su(e,r==null?void 0:r.MAIN_IMAGE),...cu(e),...uu(e),...lu(e),...t}),Ta=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},Ma=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},ka=(e,t)=>e==null?void 0:e[t],Pn=({persistedData:e,type:t,sku:r,newData:n})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:n}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:n}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},su=(e,t="1")=>{var i,a,s,u,l,p,m,d,f,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((a=(i=e.items)==null?void 0:i[0])==null?void 0:a.images)??((s=e.itemOffered)==null?void 0:s.image),o=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((u=e.isVariantOf)==null?void 0:u.productGroupID)??((l=e.isVariationOf)==null?void 0:l.productGroupID)??((m=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:m.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??Wn((d=e.itemOffered)==null?void 0:d.name,ve.configs.NAME_SPLIT_SYMBOL).name,item_brand:((f=e.brand)==null?void 0:f.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${ve.configs.storeUrl}${e.linkText}/p`,item_image:(o==null?void 0:o.url)??(o==null?void 0:o.imageUrl)}},mo=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,cu=e=>{var l,p;const{categories:t,categoriesIds:r}=e,n=t??((l=e.itemOffered)==null?void 0:l.categories),o=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),i=mo(n),a=mo(o),s=i.slice(1,-1).split("/"),u=a.slice(1,-1).split("/");return{item_category:s[0].toLowerCase().includes(ve.configs.categoryOff)?"Bazar":"Coleção",...s[1]&&{item_category2:s[1]},...s.length>2&&{item_category3:s[s.length-1]},item_category_id:u[u.length-1],...u.length>1&&{item_parent_category_id:u[u.length-2]}}},uu=e=>{var o,i,a,s,u,l;const t=((o=e.itemOffered)==null?void 0:o.skuName)??((s=(a=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:a[0])==null?void 0:s.name)??((l=(u=e.items)==null?void 0:u[0])==null?void 0:l.name),{color:r,size:n}=kt(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},lu=e=>{var u,l;const{price:t,listPrice:r,installments:n}=e,o=t??((u=e.offers)==null?void 0:u.lowPrice)??0,i=r??((l=e.offers)==null?void 0:l.highPrice)??0,a=i?i-o:0,s=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:o??i},...i&&{list_price:i,discount:s},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:ve.configs.currency}},La=()=>{const[e,t]=Ta(),[r,n]=e.split("-"),o=r.includes("shop")||r.includes("sale")?r:"";return{page_category:o&&n?n:"",page_departament:o,id:t,name:e}},du=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:ka,getAvailablesSizes:Oa,getCategories:au,getPageCategoryAndDepartmentFromSlug:La,getPersistedData:Ma,getProductListInfoFromHead:Ta,pushDatalayer:Le,updatePersistedData:Pn},Symbol.toStringTag,{value:"Module"})),Da=B.createContext({}),fu=({children:e,evtFunctionsConfigs:t})=>{const r=B.useRef({}),n=B.useRef(null),o=B.useRef(null),i=B.useRef({}),a=B.useRef({trigger:!1,index:0}),s=({functionKey:p,data:m,callBack:d,timeout:f=100})=>{window.dataLayer||(window.dataLayer=[]),ve.configs=t;try{typeof ve[p]=="function"&&setTimeout(()=>{var h;m.promotionInfo=r.current,(h=o.current)!=null&&h.item_list_name&&(m.itemList=o.current),ve[p](m,d)},f)}catch(h){Le({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},u=({content:p})=>{s({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:p.replace("::",":")}}})},l=({updatePromotionRef:p,promotion:m,index:d})=>{p&&(r.current={...m}),s({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...m,...d!==void 0&&{index:d}}}}})};return c.jsx(Da.Provider,{value:{sendDataLayerEvent:s,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:u,handleSelectPromotionEvent:l},children:e})},ge=()=>B.useContext(Da),$a=B.createContext({}),pu=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var k,P;const{sendDataLayerEvent:i,triggerSelectItemEventRef:a}=ge(),{productId:s,productName:u,items:l,items:[{images:p,Videos:m}],description:d,["Composição"]:f="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=va(),v=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),R=y.slice(1,-1).split("/"),{installments:_,price:S,listPrice:C,sizes:w,allSizesAvailable:x}=Aa({items:l,NAME_SPLIT_SYMBOL:o}),I=wa(p),$=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:f}],A=((P=kt((k=t.items)==null?void 0:k[0].name,o))==null?void 0:P.color)??t["Cores Filtráveis"][0]??"",N=()=>({commonData:{...t,sizes:w,price:S,listPrice:C,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),j=({sku:q,size:z})=>{const{commonData:G,customData:Y}=N();i({functionKey:"productEvents",data:{event:"view_item",commonData:G,customData:{...Y,...q&&{item_sku:q},...z&&{item_variant2:z}}}})};return B.useEffect(()=>{if(a.current.trigger){const{commonData:q,customData:z}=N();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...z,index:a.current.index}}}),a.current.trigger=!1}j({})},[]),c.jsx($a.Provider,{value:{productData:t,productId:s,productName:u,productReference:h,tag:v,items:l,sizes:w,allSizesAvailable:x,installments:_,price:S,listPrice:C,thumbImage:I,images:p,video:m[0],descriptionContent:$,breadcrumbList:R,isKit:r,colorName:A,handleViewItemEvent:j},children:e})},Gn=()=>{const e=B.useContext($a);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},mu={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Pe=Promise.resolve(!1),Nn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Pe,addItem:()=>Pe,addSellerCode:()=>Pe,emptyCart:()=>{},removeItem:()=>Pe,setIsOpen:()=>{},shipping:()=>Pe,shippingUpdate:()=>Pe,toggleServiceToProduct:()=>Pe,updateItemQuantity:()=>Pe,insertProfileEmail:()=>Pe,setRecentlyAddedProducts:()=>{}},Vn=e=>e===0,qa=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],o=e.match(/\d+/g)??[];for(const i of o){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,n.push(r))}return n},Ba=e=>{const{availability:t,additionalInfo:{brandName:r},bundleItems:n,id:o,uniqueId:i,detailUrl:a,ean:s,imageUrl:u,name:l,listPrice:p,quantity:m,price:d,priceDefinition:f,productCategories:h,productCategoryIds:y,productId:g,refId:v,seller:R,referenceId:_,offerings:S,productRefId:C,skuName:w,sellingPrice:x}=e;return{availability:t,bundleItems:n,referenceId:_,productRefId:C,id:o,ean:s,uniqueId:i,itemOffered:{additionalProperty:[],brand:{name:r},categories:qa(y,h),categoriesIds:y,gtin:v,image:[{alternateName:"1",url:u}],name:l,isVariationOf:{name:l,productGroupID:g},sku:o,slug:a,skuName:w},listPrice:p,quantity:m,offerings:S,price:d,priceDefinition:f,sellingPrice:x,seller:R}},Ha=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},za=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((o,i)=>{var a,s;return{id:((a=o.itemOffered)==null?void 0:a.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((s=o.itemOffered)==null?void 0:s.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==t)}}return{updateItems:[],filterItems:[]}},Fa=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,o)=>{var i,a;return n.id===t?{id:n.id,index:o,quantity:r,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}:{id:n.id,index:o,quantity:n.quantity,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}}),On=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),hu=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var o;return((o=n==null?void 0:n.id)==null?void 0:o.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},gu=e=>{const t=e.reduce((o,i)=>{const a=Vn(i.price)?0:i.quantity;return o+a},0),r=e.reduce((o,i)=>o+i.price*i.quantity,0),n=e.reduce((o,i)=>o+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:n}},yu=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(Vn(r==null?void 0:r.price)?0:r.quantity),0):0,Ua=e=>{const{items:t,itemMetadata:r,marketingData:n,messages:o,orderFormId:i,openTextField:a,paymentData:s,shippingData:u,totalizers:l}=e;return{id:i,itemMetadata:r,items:Array.isArray(t)?t.map(Ba):[],marketingData:n,messages:o,openTextField:a,paymentData:s,shippingData:u,totalizers:l}},Wa=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},_u=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},We=(e,t,r=!1)=>!e&&t!==""?{code:300,value:t,statusOk:r}:e===t?{code:200,value:t,statusOk:r}:{code:400,value:t,statusOk:r},vu=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},Ga=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Va=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Ka=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Xa=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Qa=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Ya=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Ee=async(e,t,r)=>{const{priority:n="auto",body:o}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:n,method:"POST",body:JSON.stringify(o)}).then(async i=>{const a=await i.json();return r?a:Ua(a)})},Za=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),bu=e=>[...Array.isArray(e)?e:[e],"faststore"],xu=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:mu,addItemOrder:Ha,addNotification:Za,createItemOrder:Ba,fetchCartAPI:Ee,findItemIndex:On,findOptions:Qa,findTotalizerValue:hu,getCategories:qa,getCode:We,getQuantity:Xa,getRemoveId:Ga,getSize:_u,getTotalItems:yu,getTotalizer:gu,getValue:Va,initialState:Nn,isGift:Vn,marketingTagsBuilder:bu,mergeOptionsPromise:Ya,orderFormValues:Ua,promiseDefault:Pe,removeQuantity:za,updateItemSellerExternal:Wa,updateOrderFormPromise:Ka,updateQuantity:Fa,wishlistArray:vu},Symbol.toStringTag,{value:"Module"})),Cu=()=>{const e=async(d,f)=>Ee("/api/checkout/order-form/coupon",{body:{orderFormId:d,coupon:f}}),t=async(d,f)=>{if(f){const h=f.includes(" - ")?f.split(" - ")[0]:f,y=await Ee("/api/checkout/order-form/seller-code",{body:{orderFormId:d,sellerCode:h}},!0);return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:h,sellerName:y instanceof Object&&"name"in y?y==null?void 0:y.name:""}}).then(g=>({...g,openTextField:{...(g==null?void 0:g.openTextField)??{},statusOk:(y==null?void 0:y.ativo)??!1}}))}else return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:"",sellerName:""}})},r=async(d,f,h)=>Ee("/api/checkout/order-form/items",{body:{orderFormId:d,orderItems:Ha(f,h)}}),n=async(d,f,h,y)=>Ee("/api/checkout/order-form/offerings",{body:{id:f,itemIndex:h,orderFormId:d,remove:y}}),o=async d=>Ee("/api/checkout/order-form/items/remove-all",{body:{orderFormId:d}}),i=async(d,f="low")=>Ee("/api/checkout/order-form",{priority:f,body:{orderFormId:d??""}}),a=async(d,f)=>Ee("/api/checkout/order-form/profile",{body:{orderFormId:d,email:f}}),s=async(d,f,h)=>{const y=za(f,h);return Ee("/api/checkout/order-form/items/update",{body:{orderItems:y.updateItems,orderFormId:d}})},u=async(d,f,h)=>Ee("/api/checkout/order-form/shipping",{body:{orderFormId:d,country:h,postalCode:f}}),l=async(d,f,h)=>Ee("/api/checkout/order-form/shipping/update",{body:{orderFormId:d,options:f,selectedAddresses:h}}),p=async(d,f,h,y)=>{const g=Fa(f,h,y);return Ee("/api/checkout/order-form/items/update",{body:{orderFormId:d,orderItems:g}})};return{addCoupon:e,addItem:r,addSellerCode:t,giftItem:n,emptyCart:o,getOrderForm:i,insertProfileEmail:a,removeItem:s,shipping:u,shippingUpdate:l,updateItemQuantity:async(d,f,h,y,g)=>p(d,f,h,y).then(v=>v&&Array.isArray(v.items)?Wa(v.items,h)?p(d,f,h,g):v:!1)}},Tn="soma::cart",tt="soma::options",Ve=it.create((e,t)=>{const r=Cu(),n=async(o,i,a)=>{e({loading:!0});const s=await Ka(o);if(typeof s!="boolean"){e({...s});const u=await Ya(Fe.get(tt),a);return Fe.set(tt,u),Va(s,i).finally(()=>e({loading:!1,options:u}))}return Pe};if(typeof window<"u"){const o=async i=>{if(i){const a=await Fe.get(tt).then(l=>Qa(l,i.items));Fe.set(Tn,i),Fe.set(tt,a),e({...i,options:a});const s=new URLSearchParams(window.location.search),u=s.get("utm_campaign")||s.get("utmi_campaign")||"";u&&n(()=>r.addSellerCode(t().id,u.toUpperCase()),"openTextField")}};return Fe.get(Tn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...Nn,addCoupon:async i=>n(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{n(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>n(()=>r.addSellerCode(t().id,i),"openTextField"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await n(()=>r.removeItem(t().id,t().items,i),"items");return Ga(i,a)},shipping:async(i,a="BR")=>n(()=>r.shipping(t().id,i,a),"shippingData"),shippingUpdate:async i=>n(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,s)=>n(()=>r.giftItem(t().id,i,a,s),"items"),updateItemQuantity:async(i,a,s)=>{const{id:u,items:l}=t();return n(()=>{var p;return r.updateItemQuantity(u,l,i,a,((p=l.find(m=>m.id===i))==null?void 0:p.quantity)??1)},"items",s?[s]:void 0)},insertProfileEmail:async i=>n(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return Nn}),Su=()=>Ve(e=>e),Ja=it.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>Za(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),es=()=>Ja(e=>e.notifications),ts=()=>Ja(e=>e.actions),Au=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:tt,KEY_INDEXED_STORE:Tn,useCartStore:Ve,useGetCartStoreState:Su,useGetNotificationActions:ts,useGetNotificationsStore:es},Symbol.toStringTag,{value:"Module"})),Ru=6e3,rs=B.createContext({}),ns=({children:e,...t})=>{const{items:r}=Ve(),[n,o]=B.useState([]),i=B.useRef(null),a=B.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(s=>r.find(u=>u.id===s.id)).filter(s=>s!==void 0):[],[r,n]);return B.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},Ru))},[n]),c.jsx(rs.Provider,{value:B.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:a}),[t,o,a]),children:e})},at=()=>{const e=B.useContext(rs);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class os{constructor(){Ut(this,"events",{});Ut(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(n=>n!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(n=>{this.prevData[t]=r,n(r)})}}const is=B.createContext({}),Eu=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=B.useState(!0),a=r==="/",s=B.useRef(new os),u=m=>m?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},l=u(a),p=B.useRef(l);return B.useEffect(()=>{const m=()=>{const d=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,f=window.innerWidth<1024||!!d.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);o!==f&&i(f)};return m(),window.addEventListener("resize",m,{passive:!0}),()=>window.removeEventListener("resize",m)},[o]),B.useEffect(()=>{const m=u(a);s.current.publish("header:change_variant",m.headerVariant),s.current.publish("header:change_position",m.position),p.current=m},[a]),c.jsx(is.Provider,{value:{isMobile:o,mediatorRef:s,currentHeaderConfigsRef:p,...n},children:c.jsx(ns,{children:e})})},ke=()=>B.useContext(is),as=B.createContext({}),wu=({children:e,...t})=>c.jsx(as.Provider,{value:{...t},children:e}),Ne=()=>B.useContext(as),Be=(e,t)=>it.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:o=>r({value:o}),reset:n}}}),ot={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},st=new Set,ju=()=>{st.forEach(e=>{e()})},ss=it.create((e,t)=>{const r=()=>e({value:ot.category});return st.add(r),{value:ot.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Lt=()=>ss(e=>e.value),De=()=>ss(e=>e.actions),cs=Be(ot.menuMobileIsOpen,st),Kn=()=>cs(e=>e.value),He=()=>cs(e=>e.actions),us=Be(ot.searchModalIsOpen,st),Iu=()=>us(e=>e.value),Xn=()=>us(e=>e.actions),ls=Be(ot.userMenuIsOpen,st),Pu=()=>ls(e=>e.value),Qn=()=>ls(e=>e.actions),Nu=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:ju,useActionsHeaderCategory:De,useActionsMenuMobileIsOpen:He,useActionsSearchModalIsOpen:Xn,useActionsUserMenuIsOpen:Qn,useGetHeaderCategoryStore:Lt,useGetMenuMobileIsOpen:Kn,useGetSearchModalIsOpen:Iu,useGetUserMenuIsOpen:Pu},Symbol.toStringTag,{value:"Module"})),Ke={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},Qe=new Set,Ou=()=>{Qe.forEach(e=>{e()})},ds=it.create(e=>{const t=()=>e({value:Ke.selectedSkuInfo});return Qe.add(t),{value:Ke.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),Tu=()=>ds(e=>e.value),Mu=()=>ds(e=>e.actions),fs=Be(Ke.openLetMeKnow,Qe),ku=()=>fs(e=>e.value),Lu=()=>fs(e=>e.actions),ps=Be(Ke.showNotify,Qe),Du=()=>ps(e=>e.value),$u=()=>ps(e=>e.actions),ms=Be(Ke.showBottomNavigation,Qe),qu=()=>ms(e=>e.value),Bu=()=>ms(e=>e.actions),hs=Be(Ke.openMeasurements,Qe),Hu=()=>hs(e=>e.value),zu=()=>hs(e=>e.actions),Fu=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Ou,useActionsPDPOpenLetMeKnow:Lu,useActionsPDPOpenMeasurements:zu,useActionsPDPSelectedSkuInfo:Mu,useActionsPDPShowBottomNavigation:Bu,useActionsPDPShowNotify:$u,useGetPDPOpenLetMeKnow:ku,useGetPDPOpenMeasurements:Hu,useGetPDPSelectedSkuInfo:Tu,useGetPDPShowBottomNavigation:qu,useGetPDPShowNotify:Du},Symbol.toStringTag,{value:"Module"})),gs=B.createContext({}),Uu=({children:e,headerData:t,...r})=>{var u,l;const n=B.useRef(null),o=B.useRef(null),i=B.useRef(null),{mediatorRef:a,currentHeaderConfigsRef:s}=ke();return(u=a.current)==null||u.subscribe("header:change_variant",p=>{var y,g,v;if(p&&s.current&&(s.current.bannerVariant=p),!n.current)return;const d=document.body.scrollTop>0,f=n.current.getAttribute("data-interactiveVariant"),h=d?f:p??((y=s.current)==null?void 0:y.bannerVariant)??"default";h!==((g=s.current)==null?void 0:g.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(d)),n.current.setAttribute("data-variant",String(h)),(v=a.current)==null||v.publish("herobanner:change_controllers_variant",h),s.current&&(s.current.headerVariant=h))}),(l=a.current)==null||l.subscribe("header:change_position",p=>{n.current&&(n.current.style.position=p)}),B.useEffect(()=>{const p=new AbortController,m=b.helpers.throttle(()=>{var f;return(f=a.current)==null?void 0:f.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:p.signal});const d=f=>{var y;(y=f.target.closest("a"))==null||y.blur()};return n.current&&(n.current.addEventListener("click",d,{signal:p.signal}),n.current.addEventListener("touchend",d,{signal:p.signal})),()=>{p.abort()}},[]),c.jsx(gs.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},xe=()=>B.useContext(gs),ys=B.createContext({}),_s=({children:e})=>{const t=B.useRef(null),r=B.useRef(null),n=Kn(),o=B.useCallback(()=>{var i;{const a=(i=t.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const s=a.children[0];s.dataset.animation="out"}}},[]);return B.useEffect(()=>{var i;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(i=r.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const s=a.children[0];s.dataset.animation="out"}}},[n]),B.useEffect(()=>{r.current=document.body},[]),c.jsx(ys.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},ct=()=>B.useContext(ys),Wu=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Gu=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=e!=null&&e.parentElement?Wu(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},vs=B.createContext({}),bs=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=B.useState(!1),a=B.useRef(null),[s,u]=B.useState(!1),[l,p]=B.useState({left:0,top:0}),m=B.useCallback(()=>{u(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),u(!1)},t))},[u,i,t]);return B.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),f=window.document.querySelector("#add-to-cart--tooltip");if(d&&f){const{left:h,top:y}=Gu(f,d,r??0);p({left:h,top:y}),u(!1)}},[r,o]),c.jsx(vs.Provider,{value:B.useMemo(()=>({...n,...l,handleClose:m,isLeaving:s,isOpen:o,setIsOpen:i,setIsLeaving:u}),[n,l,m,s,o,i,u]),children:e})},ze=()=>{const e=B.useContext(vs);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},xs=B.createContext({}),Vu=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Ve(),{setRecentlyAdded:o}=at(),i=es(),{addNotification:a,removeNotification:s}=ts(),{addCoupon:u,addItem:l,addSellerCode:p,emptyCart:m,isOpen:d,removeItem:f,shipping:h,shippingUpdate:y,toggleServiceToProduct:g,updateItemQuantity:v}=n,R=B.useCallback(async(j,k)=>(k==="coupon"?u(j):p(j)).then(q=>{if(typeof q!="boolean"&&q instanceof Object){if(k==="seller"&&"value"in q){const{statusOk:z,value:G}=q,Y=String(G??"").split(" - ");return We((Y==null?void 0:Y[0])??"",j,!!z)}return We(String(q.coupon),j,!0)}return We("","")}).catch(()=>Promise.resolve({code:400})),[u,p]),_=B.useCallback((j,k,P)=>{const{id:q}=j;v(q,k,P)},[v]),S=B.useCallback((j,k,P=!1)=>{if(!j)return;const{id:q}=j,z=On(n.items,q);if(z!==-1&&!P){const G=Number(n.items[z].quantity),Y=n.items[z]?G+1:1;_(j,Y,k)}else l({id:q,quantity:(j==null?void 0:j.quantity)??1,seller:j.seller});d||o(G=>[...G,j])},[l,_,n.items,d,o]),C=B.useCallback((j,k)=>{if(!j||!Array.isArray(j))return;o(q=>[...q,...j]);const P=j.map(q=>{const{id:z,quantity:G,seller:Y}=q,V=On(n.items,z),F=Xa(G??1,V);return{id:z,quantity:F,seller:Y}});l(P,k)},[l,n.items,o]),w=B.useCallback(async(j,k,P)=>j?f(j).then(()=>(a(k??`${t}`,P),We(j,j))):Promise.resolve(We("","Product id required")),[a,f]),x=B.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),I=B.useCallback((j,k="BRA")=>h(j,k),[h]),$=B.useCallback(j=>{j&&y(j)},[y]),A=B.useCallback(async(j,k,P)=>{const q=n.items.findIndex(G=>G.id===j);return n.items[q]&&q>=0?g(k,q,P??!1):!1},[n.items,g]),N=B.useCallback(async(j,k)=>v(j,k).then(P=>{if(Array.isArray(P)){const q=P.find(z=>z.id===j);if(q&&(q==null?void 0:q.quantity)<k)return String(q.quantity)}return!1}),[v]);return c.jsx(xs.Provider,{value:B.useMemo(()=>({...r,addCouponSeller:R,addToCart:S,addItemsToCart:C,cartStore:n,notifications:i,clearCart:x,addNotification:a,isOpen:n.isOpen,removeNotification:s,removeToCart:w,setIsOpen:n.setIsOpen,shipping:I,shippingUpdateOption:$,toggleGiftItemCart:A,updateItemQuantity:N}),[r,R,S,C,i,x,a,n,s,w,I,$,A,N]),children:e})},Ye=()=>{const e=B.useContext(xs);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Ku={contexts:{addToCart:{hook:ze,provider:bs},cart:{hook:Ye,provider:Vu},cms:{FlagsAndTags:{context:Un,hook:va,provider:Jc}},events:{hook:ge,provider:fu},global:{hook:ke,provider:Eu,mediator:os},header:{hook:xe,provider:Uu},menuMobile:{hook:ct,provider:_s},next:{hook:Ne,provider:wu},pdp:{provider:eu,hook:tu},pdpdata:{hook:Gn,provider:pu},ui:{hook:at,provider:ns}},hooks:{useBackPDC:ba},stores:{cart:Au,header:Nu,pdp:Fu}};function Cs(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[o,i]=n.trim().split("=");if(o===e)return i}}function Ss(e,t,r={}){const o={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in o)o[a]!==void 0&&(i+=`; ${a}`,a==="expires"?i+=`=${o[a].toUTCString()}`:typeof o[a]=="boolean"?i+=`; ${o[a]?"true":"false"}`:i+=`=${o[a]}`);window.document.cookie=i}const Xu=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Qu(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function Yu(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const As=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,rt=(e,t)=>Math.floor(t==="days"?e/(1e3*60*60*24):t==="hours"?e%(1e3*60*60*24)/(1e3*60*60):t==="minutes"?e%(1e3*60*60)/(1e3*60):e%(1e3*60)/1e3),Zu=Object.freeze(Object.defineProperty({__proto__:null,debounce:Yu,getCookie:Cs,getDaysHoursMinutesSeconds:rt,getMilliSeconds:As,removeAccentsAndReplaceSpaces:Xu,setCookie:Ss,throttle:Qu},Symbol.toStringTag,{value:"Module"})),Ju={cart:xu,events:du,product:iu,utils:Zu},Rs={helpers:Ju};var Es=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function el(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Mn={exports:{}},Re={};Re._=Re._interop_require_default=tl;function tl(e){return e&&e.__esModule?e:{default:e}}var yt={exports:{}},Wt={},ho;function ws(){return ho||(ho=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,s){for(var u in s)Object.defineProperty(a,u,{enumerable:!0,get:s[u]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(a){const s={};return a.forEach((u,l)=>{typeof s[l]>"u"?s[l]=u:Array.isArray(s[l])?s[l].push(u):s[l]=[s[l],u]}),s}function n(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function o(a){const s=new URLSearchParams;return Object.entries(a).forEach(u=>{let[l,p]=u;Array.isArray(p)?p.forEach(m=>s.append(l,n(m))):s.set(l,n(p))}),s}function i(a){for(var s=arguments.length,u=new Array(s>1?s-1:0),l=1;l<s;l++)u[l-1]=arguments[l];return u.forEach(p=>{Array.from(p.keys()).forEach(m=>a.delete(m)),p.forEach((m,d)=>a.append(d,m))}),a}}(Wt)),Wt}var Gt={},Xe={};function js(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(js=function(n){return n?r:t})(e)}Xe._=Xe._interop_require_wildcard=rl;function rl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=js(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var go;function Is(){return go||(go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,l){for(var p in l)Object.defineProperty(u,p,{enumerable:!0,get:l[p]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return a},formatWithValidation:function(){return s}});const n=Xe._(ws()),o=/https?|ftp|gopher|file/;function i(u){let{auth:l,hostname:p}=u,m=u.protocol||"",d=u.pathname||"",f=u.hash||"",h=u.query||"",y=!1;l=l?encodeURIComponent(l).replace(/%3A/i,":")+"@":"",u.host?y=l+u.host:p&&(y=l+(~p.indexOf(":")?"["+p+"]":p),u.port&&(y+=":"+u.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let g=u.search||h&&"?"+h||"";return m&&!m.endsWith(":")&&(m+=":"),u.slashes||(!m||o.test(m))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),f&&f[0]!=="#"&&(f="#"+f),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+m+y+d+g+f}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(u){return process.env.NODE_ENV==="development"&&u!==null&&typeof u=="object"&&Object.keys(u).forEach(l=>{a.includes(l)||console.warn("Unknown key passed via urlObject into url.format: "+l)}),i(u)}}(Gt)),Gt}var Vt={},yo;function nl(){return yo||(yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const o={};return Object.keys(r).forEach(i=>{n.includes(i)||(o[i]=r[i])}),o}}(Vt)),Vt}var Kt={},_o;function $t(){return _o||(_o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,C){for(var w in C)Object.defineProperty(S,w,{enumerable:!0,get:C[w]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return s},getDisplayName:function(){return u},isResSent:function(){return l},normalizeRepeatedSlashes:function(){return p},loadGetInitialProps:function(){return m},SP:function(){return d},ST:function(){return f},DecodeError:function(){return h},NormalizeError:function(){return y},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return R},stringifyError:function(){return _}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(S){let C=!1,w;return function(){for(var x=arguments.length,I=new Array(x),$=0;$<x;$++)I[$]=arguments[$];return C||(C=!0,w=S(...I)),w}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>o.test(S);function a(){const{protocol:S,hostname:C,port:w}=window.location;return S+"//"+C+(w?":"+w:"")}function s(){const{href:S}=window.location,C=a();return S.substring(C.length)}function u(S){return typeof S=="string"?S:S.displayName||S.name||"Unknown"}function l(S){return S.finished||S.headersSent}function p(S){const C=S.split("?");return C[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(C[1]?"?"+C.slice(1).join("?"):"")}async function m(S,C){if(process.env.NODE_ENV!=="production"){var w;if((w=S.prototype)!=null&&w.getInitialProps){const $='"'+u(S)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error($)}}const x=C.res||C.ctx&&C.ctx.res;if(!S.getInitialProps)return C.ctx&&C.Component?{pageProps:await m(C.Component,C.ctx)}:{};const I=await S.getInitialProps(C);if(x&&l(x))return I;if(!I){const $='"'+u(S)+'.getInitialProps()" should resolve to an object. But found "'+I+'" instead.';throw new Error($)}return process.env.NODE_ENV!=="production"&&Object.keys(I).length===0&&!C.ctx&&console.warn(""+u(S)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),I}const d=typeof performance<"u",f=d&&["mark","measure","getEntriesByName"].every(S=>typeof performance[S]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(C){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+C}}class v extends Error{constructor(C,w){super(),this.message="Failed to load static file for page: "+C+" "+w}}class R extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(S){return JSON.stringify({message:S.message,stack:S.stack})}}(Kt)),Kt}var _t={exports:{}},Xt={},vo;function Ps(){return vo||(vo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\/$/,"")||"/"}}(Xt)),Xt}var Qt={},bo;function Yn(){return bo||(bo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),o=r.indexOf("?"),i=o>-1&&(n<0||o<n);return i||n>-1?{pathname:r.substring(0,i?o:n),query:i?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(Qt)),Qt}var xo;function qt(){return xo||(xo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Ps(),n=Yn(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:s,hash:u}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+s+u:a.endsWith("/")?""+a+s+u:a+"/"+s+u:""+(0,r.removeTrailingSlash)(a)+s+u};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(_t,_t.exports)),_t.exports}var Yt={},vt={exports:{}},Zt={},Co;function Ns(){return Co||(Co=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Yn();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(Zt)),Zt}var So;function ol(){return So||(So=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=Ns(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i){return(0,r.pathHasPrefix)(i,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(vt,vt.exports)),vt.exports}var Ao;function Os(){return Ao||(Ao=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=$t(),r=ol();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const i=(0,t.getLocationOrigin)(),a=new URL(o,i);return a.origin===i&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(Yt)),Yt}var Jt={},er={},Ro;function il(){return Ro||(Ro=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const a=i.map(s=>this.children.get(s)._smoosh(""+o+s+"/")).reduce((s,u)=>[...s,...u],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const s=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+s+'" and "'+s+"[[..."+this.optionalRestSlugName+']]").');a.unshift(s)}return this.restSlugName!==null&&a.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(o,i,a){if(o.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let s=o[0];if(s.startsWith("[")&&s.endsWith("]")){let p=function(m,d){if(m!==null&&m!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+m+"' !== '"+d+"').");i.forEach(f=>{if(f===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(f.replace(/\W/g,"")===s.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+f+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},u=s.slice(1,-1),l=!1;if(u.startsWith("[")&&u.endsWith("]")&&(u=u.slice(1,-1),l=!0),u.startsWith("...")&&(u=u.substring(3),a=!0),u.startsWith("[")||u.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+u+"').");if(u.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+u+"').");if(a)if(l){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+o[0]+'" ).');p(this.optionalRestSlugName,u),this.optionalRestSlugName=u,s="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+o[0]+'").');p(this.restSlugName,u),this.restSlugName=u,s="[...]"}else{if(l)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');p(this.slugName,u),this.slugName=u,s="[]"}}this.children.has(s)||this.children.set(s,new t),this.children.get(s)._insert(o.slice(1),i,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const o=new t;return n.forEach(i=>o.insert(i)),o.smoosh()}}(er)),er}var tr={},Eo;function al(){return Eo||(Eo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(n){return t.test(n)}}(tr)),tr}var wo;function sl(){return wo||(wo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var a in i)Object.defineProperty(o,a,{enumerable:!0,get:i[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=il(),n=al()}(Jt)),Jt}var rr={},nr={},jo;function cl(){return jo||(jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=$t();function r(n){let{re:o,groups:i}=n;return a=>{const s=o.exec(a);if(!s)return!1;const u=p=>{try{return decodeURIComponent(p)}catch{throw new t.DecodeError("failed to decode param")}},l={};return Object.keys(i).forEach(p=>{const m=i[p],d=s[m.pos];d!==void 0&&(l[p]=~d.indexOf("/")?d.split("/").map(f=>u(f)):m.repeat?[u(d)]:u(d))}),l}}}(nr)),nr}var or={},ir={},ar={},sr={},Io;function ul(){return Io||(Io=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.startsWith("/")?r:"/"+r}}(sr)),sr}var cr={},Po;function ll(){return Po||(Po=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(r){return r[0]==="("&&r.endsWith(")")}}(cr)),cr}var No;function dl(){return No||(No=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,s){for(var u in s)Object.defineProperty(a,u,{enumerable:!0,get:s[u]})}t(e,{normalizeAppPath:function(){return o},normalizeRscPath:function(){return i}});const r=ul(),n=ll();function o(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((s,u,l,p)=>!u||(0,n.isGroupSegment)(u)||u[0]==="@"||(u==="page"||u==="route")&&l===p.length-1?s:s+"/"+u,""))}function i(a,s){return s?a.replace(/\.rsc($|\?)/,"$1"):a}}(ar)),ar}var Oo;function fl(){return Oo||(Oo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,s){for(var u in s)Object.defineProperty(a,u,{enumerable:!0,get:s[u]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=dl(),n=["(..)(..)","(.)","(..)","(...)"];function o(a){return a.split("/").find(s=>n.find(u=>s.startsWith(u)))!==void 0}function i(a){let s,u,l;for(const p of a.split("/"))if(u=n.find(m=>p.startsWith(m)),u){[s,l]=a.split(u,2);break}if(!s||!u||!l)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(s=(0,r.normalizeAppPath)(s),u){case"(.)":s==="/"?l=`/${l}`:l=s+"/"+l;break;case"(..)":if(s==="/")throw new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`);l=s.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":const p=s.split("/");if(p.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);l=p.slice(0,-2).concat(l).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:s,interceptedRoute:l}}}(ir)),ir}var ur={},To;function pl(){return To||(To=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return t.test(o)?o.replace(r,"\\$&"):o}}(ur)),ur}var Mo;function ml(){return Mo||(Mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var v in g)Object.defineProperty(y,v,{enumerable:!0,get:g[v]})}t(e,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return h}});const r=fl(),n=pl(),o=Ps(),i="nxtP",a="nxtI";function s(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const v=y.startsWith("...");return v&&(y=y.slice(3)),{key:y,repeat:v,optional:g}}function u(y){const g=(0,o.removeTrailingSlash)(y).slice(1).split("/"),v={};let R=1;return{parameterizedRoute:g.map(_=>{const S=r.INTERCEPTION_ROUTE_MARKERS.find(w=>_.startsWith(w)),C=_.match(/\[((?:\[.*\])|.+)\]/);if(S&&C){const{key:w,optional:x,repeat:I}=s(C[1]);return v[w]={pos:R++,repeat:I,optional:x},"/"+(0,n.escapeStringRegexp)(S)+"([^/]+?)"}else if(C){const{key:w,repeat:x,optional:I}=s(C[1]);return v[w]={pos:R++,repeat:x,optional:I},x?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(_)}).join(""),groups:v}}function l(y){const{parameterizedRoute:g,groups:v}=u(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:v}}function p(){let y=0;return()=>{let g="",v=++y;for(;v>0;)g+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return g}}function m(y){let{getSafeRouteKey:g,segment:v,routeKeys:R,keyPrefix:_}=y;const{key:S,optional:C,repeat:w}=s(v);let x=S.replace(/\W/g,"");_&&(x=""+_+x);let I=!1;return(x.length===0||x.length>30)&&(I=!0),isNaN(parseInt(x.slice(0,1)))||(I=!0),I&&(x=g()),_?R[x]=""+_+S:R[x]=""+S,w?C?"(?:/(?<"+x+">.+?))?":"/(?<"+x+">.+?)":"/(?<"+x+">[^/]+?)"}function d(y,g){const v=(0,o.removeTrailingSlash)(y).slice(1).split("/"),R=p(),_={};return{namedParameterizedRoute:v.map(S=>{const C=r.INTERCEPTION_ROUTE_MARKERS.some(x=>S.startsWith(x)),w=S.match(/\[((?:\[.*\])|.+)\]/);return C&&w?m({getSafeRouteKey:R,segment:w[1],routeKeys:_,keyPrefix:g?a:void 0}):w?m({getSafeRouteKey:R,segment:w[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(S)}).join(""),routeKeys:_}}function f(y,g){const v=d(y,g);return{...l(y),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function h(y,g){const{parameterizedRoute:v}=u(y),{catchAll:R=!0}=g;if(v==="/")return{namedRegex:"^/"+(R?".*":"")+"$"};const{namedParameterizedRoute:_}=d(y,!1);let S=R?"(?:(/.*)?)":"";return{namedRegex:"^"+_+S+"$"}}}(or)),or}var ko;function hl(){return ko||(ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=cl(),r=ml();function n(o,i,a){let s="";const u=(0,r.getRouteRegex)(o),l=u.groups,p=(i!==o?(0,t.getRouteMatcher)(u)(i):"")||a;s=o;const m=Object.keys(l);return m.every(d=>{let f=p[d]||"";const{repeat:h,optional:y}=l[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(f?"":"/")+"["+g+"]"),h&&!Array.isArray(f)&&(f=[f]),(y||d in p)&&(s=s.replace(g,h?f.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(f))||"/")})||(s=""),{params:m,result:s}}}(rr)),rr}var Lo;function gl(){return Lo||(Lo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=ws(),n=Is(),o=nl(),i=$t(),a=qt(),s=Os(),u=sl(),l=hl();function p(m,d,f){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),v=g?y.slice(g[0].length):y;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+m.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(v);y=(g?g[0]:"")+_}if(!(0,s.isLocalURL)(y))return f?[y]:y;try{h=new URL(y.startsWith("#")?m.asPath:m.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,a.normalizePathTrailingSlash)(_.pathname);let S="";if((0,u.isDynamicRoute)(_.pathname)&&_.searchParams&&f){const w=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:x,params:I}=(0,l.interpolateAs)(_.pathname,_.pathname,w);x&&(S=(0,n.formatWithValidation)({pathname:x,hash:_.hash,query:(0,o.omit)(w,I)}))}const C=_.origin===h.origin?_.href.slice(_.origin.length):_.href;return f?[C,S||C]:C}catch{return f?[y]:y}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(yt,yt.exports)),yt.exports}var bt={exports:{}},lr={},dr={},Do;function Ts(){return Do||(Do=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Yn();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:a,hash:s}=(0,t.parsePath)(n);return""+o+i+a+s}}(dr)),dr}var $o;function yl(){return $o||($o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Ts(),r=Ns();function n(o,i,a,s){if(!i||i===a)return o;const u=o.toLowerCase();return!s&&((0,r.pathHasPrefix)(u,"/api")||(0,r.pathHasPrefix)(u,"/"+i.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+i)}}(lr)),lr}var qo;function _l(){return qo||(qo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=qt(),n=function(o){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(yl().addLocale(o,...a)):o};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(bt,bt.exports)),bt.exports}var fr={},Bo;function Ms(){return Bo||(Bo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Re._(B).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(fr)),fr}var pr={},Ho;function vl(){return Ho||(Ho=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(l,p){for(var m in p)Object.defineProperty(l,m,{enumerable:!0,get:p[m]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return s},TemplateContext:function(){return u}});const n=Re._(B);var o;(function(l){l.LAZY_INITIALIZED="LAZYINITIALIZED",l.DATA_FETCH="DATAFETCH",l.READY="READY"})(o||(o={}));const i=n.default.createContext(null),a=n.default.createContext(null),s=n.default.createContext(null),u=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",s.displayName="GlobalLayoutRouterContext",u.displayName="TemplateContext")}(pr)),pr}var xt={exports:{}},Ct={exports:{}},zo;function ks(){return zo||(zo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,a){for(var s in a)Object.defineProperty(i,s,{enumerable:!0,get:a[s]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let a=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ct,Ct.exports)),Ct.exports}var Fo;function bl(){return Fo||(Fo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const r=B,n=ks(),o=typeof IntersectionObserver=="function",i=new Map,a=[];function s(p){const m={root:p.root||null,margin:p.rootMargin||""},d=a.find(g=>g.root===m.root&&g.margin===m.margin);let f;if(d&&(f=i.get(d),f))return f;const h=new Map,y=new IntersectionObserver(g=>{g.forEach(v=>{const R=h.get(v.target),_=v.isIntersecting||v.intersectionRatio>0;R&&_&&R(_)})},p);return f={id:m,observer:y,elements:h},a.push(m),i.set(m,f),f}function u(p,m,d){const{id:f,observer:h,elements:y}=s(d);return y.set(p,m),h.observe(p),function(){if(y.delete(p),h.unobserve(p),y.size===0){h.disconnect(),i.delete(f);const v=a.findIndex(R=>R.root===f.root&&R.margin===f.margin);v>-1&&a.splice(v,1)}}}function l(p){let{rootRef:m,rootMargin:d,disabled:f}=p;const h=f||!o,[y,g]=(0,r.useState)(!1),v=(0,r.useRef)(null),R=(0,r.useCallback)(S=>{v.current=S},[]);(0,r.useEffect)(()=>{if(o){if(h||y)return;const S=v.current;if(S&&S.tagName)return u(S,w=>w&&g(w),{root:m==null?void 0:m.current,rootMargin:d})}else if(!y){const S=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(S)}},[h,d,m,y,v.current]);const _=(0,r.useCallback)(()=>{g(!1)},[]);return[R,y,_]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(xt,xt.exports)),xt.exports}var St={exports:{}},At={exports:{}},mr={},Uo;function xl(){return Uo||(Uo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let o;const i=r.split("/");return(n||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(o=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(mr)),mr}var Wo;function Cl(){return Wo||(Wo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?xl().normalizeLocalePath(n,o):{pathname:n,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(At,At.exports)),At.exports}var Rt={exports:{}},hr={},Go;function Sl(){return Go||(Go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){if(r){o&&(o=o.toLowerCase());for(const s of r){var i,a;const u=(i=s.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===u||o===s.defaultLocale.toLowerCase()||(a=s.locales)!=null&&a.some(l=>l.toLowerCase()===o))return s}}}}(hr)),hr}var Vo;function Al(){return Vo||(Vo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Sl().detectDomainLocale(...o)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Rt,Rt.exports)),Rt.exports}var Ko;function Rl(){return Ko||(Ko=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=qt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,a,s,u){if(process.env.__NEXT_I18N_SUPPORT){const l=Cl().normalizeLocalePath,p=Al().detectDomainLocale,m=a||l(i,s).detectedLocale,d=p(u,void 0,m);if(d){const f="http"+(d.http?"":"s")+"://",h=m===d.defaultLocale?"":"/"+m;return""+f+d.domain+(0,r.normalizePathTrailingSlash)(""+n+h+i)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(St,St.exports)),St.exports}var Et={exports:{}},Xo;function El(){return Xo||(Xo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Ts(),n=qt(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,s){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!s?a:(0,r.addPathPrefix)(a,o))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Et,Et.exports)),Et.exports}var wt={exports:{}},Qo;function wl(){return Qo||(Qo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(m,d){for(var f in d)Object.defineProperty(m,f,{enumerable:!0,get:d[f]})}r(t,{PrefetchKind:function(){return p},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return l}});const n="refresh",o="navigate",i="restore",a="server-patch",s="prefetch",u="fast-refresh",l="server-action";var p;(function(m){m.AUTO="auto",m.FULL="full",m.TEMPORARY="temporary"})(p||(p={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(wt,wt.exports)),wt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});const n=Re._(B),o=gl(),i=Os(),a=Is(),s=$t(),u=_l(),l=Ms(),p=vl(),m=bl(),d=Rl(),f=El(),h=wl(),y=new Set;function g(w,x,I,$,A,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(x))return;if(!$.bypassPrefetchedCheck){const k=typeof $.locale<"u"?$.locale:"locale"in w?w.locale:void 0,P=x+"%"+I+"%"+k;if(y.has(P))return;y.add(P)}const j=N?w.prefetch(x,A):w.prefetch(x,I,$);Promise.resolve(j).catch(k=>{if(process.env.NODE_ENV!=="production")throw k})}function v(w){const I=w.currentTarget.getAttribute("target");return I&&I!=="_self"||w.metaKey||w.ctrlKey||w.shiftKey||w.altKey||w.nativeEvent&&w.nativeEvent.which===2}function R(w,x,I,$,A,N,j,k,P,q){const{nodeName:z}=w.currentTarget;if(z.toUpperCase()==="A"&&(v(w)||!P&&!(0,i.isLocalURL)(I)))return;w.preventDefault();const Y=()=>{const V=j??!0;"beforePopState"in x?x[A?"replace":"push"](I,$,{shallow:N,locale:k,scroll:V}):x[A?"replace":"push"]($||I,{forceOptimisticNavigation:!q,scroll:V})};P?n.default.startTransition(Y):Y()}function _(w){return typeof w=="string"?w:(0,a.formatUrl)(w)}const C=n.default.forwardRef(function(x,I){let $;const{href:A,as:N,children:j,prefetch:k=null,passHref:P,replace:q,shallow:z,scroll:G,locale:Y,onClick:V,onMouseEnter:F,onTouchStart:oe,legacyBehavior:E=!1,...T}=x;$=j,E&&(typeof $=="string"||typeof $=="number")&&($=n.default.createElement("a",null,$));const D=n.default.useContext(l.RouterContext),K=n.default.useContext(p.AppRouterContext),te=D??K,Z=!D,M=k!==!1,J=k===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(ne){return new Error("Failed prop type: The prop `"+ne.key+"` expects a "+ne.expected+" in `<Link>`, but got `"+ne.actual+"` instead."+(typeof window<"u"?`
2
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(ne=>{if(ne==="href"&&(x[ne]==null||typeof x[ne]!="string"&&typeof x[ne]!="object"))throw ie({key:ne,expected:"`string` or `object`",actual:x[ne]===null?"null":typeof x[ne]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(ne=>{const W=typeof x[ne];if(ne==="as"){if(x[ne]&&W!=="string"&&W!=="object")throw ie({key:ne,expected:"`string` or `object`",actual:W})}else if(ne==="locale"){if(x[ne]&&W!=="string")throw ie({key:ne,expected:"`string`",actual:W})}else if(ne==="onClick"||ne==="onMouseEnter"||ne==="onTouchStart"){if(x[ne]&&W!=="function")throw ie({key:ne,expected:"`function`",actual:W})}else if((ne==="replace"||ne==="scroll"||ne==="shallow"||ne==="passHref"||ne==="prefetch"||ne==="legacyBehavior")&&x[ne]!=null&&W!=="boolean")throw ie({key:ne,expected:"`boolean`",actual:W})});const X=n.default.useRef(!1);x.prefetch&&!X.current&&!Z&&(X.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&Z&&!N){let ie;if(typeof A=="string"?ie=A:typeof A=="object"&&typeof A.pathname=="string"&&(ie=A.pathname),ie&&ie.split("/").some(U=>U.startsWith("[")&&U.endsWith("]")))throw new Error("Dynamic href `"+ie+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Q,as:ee}=n.default.useMemo(()=>{if(!D){const U=_(A);return{href:U,as:N?_(N):U}}const[ie,me]=(0,o.resolveHref)(D,A,!0);return{href:ie,as:N?(0,o.resolveHref)(D,N):me||ie}},[D,A,N]),L=n.default.useRef(Q),O=n.default.useRef(ee);let re;if(E)if(process.env.NODE_ENV==="development"){V&&console.warn('"onClick" was passed to <Link> with `href` of `'+A+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),F&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+A+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only($)}catch{throw $?new Error("Multiple children were passed to <Link> with `href` of `"+A+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
+ Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+A+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else re=n.default.Children.only($);else if(process.env.NODE_ENV==="development"&&($==null?void 0:$.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
4
+ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ae=E?re&&typeof re=="object"&&re.ref:I,[ce,ue,se]=(0,m.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(O.current!==ee||L.current!==Q)&&(se(),O.current=ee,L.current=Q),ce(ie),ae&&(typeof ae=="function"?ae(ie):typeof ae=="object"&&(ae.current=ie))},[ee,ae,Q,se,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!ue||!M||g(te,Q,ee,{locale:Y},{kind:J},Z))},[ee,Q,ue,Y,M,D==null?void 0:D.locale,te,Z,J]);const he={ref:H,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!E&&typeof V=="function"&&V(ie),E&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||R(ie,te,Q,ee,q,z,G,Y,Z,M))},onMouseEnter(ie){!E&&typeof F=="function"&&F(ie),E&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!M||process.env.NODE_ENV==="development")&&Z||g(te,Q,ee,{locale:Y,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!E&&typeof oe=="function"&&oe(ie),E&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!M&&Z||g(te,Q,ee,{locale:Y,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,s.isAbsoluteUrl)(ee))he.href=ee;else if(!E||P||re.type==="a"&&!("href"in re.props)){const ie=typeof Y<"u"?Y:D==null?void 0:D.locale,me=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);he.href=me||(0,f.addBasePath)((0,u.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return E?n.default.cloneElement(re,he):n.default.createElement("a",{...T,...he},$)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Mn,Mn.exports);var jl=Mn.exports,Il=jl;const we=Dt(Il),Pl=e=>{const t=e.getBlocksAsArray(),r=[];return t.forEach(n=>{const o=n.getType(),i=n.getText();let a;const s=n.getInlineStyleAt(0).toArray();s.length>0&&(a=s.map(l=>{switch(l){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const u={type:"p",text:i,...a&&{styleText:a}};switch(o){case"header-one":u.type="h1";break;case"header-two":u.type="h2";break;case"header-three":u.type="h3";break;case"unordered-list-item":u.type="li";break;case"ordered-list-item":u.type="li";break;case"blockquote":u.type="blockquote";break;case"code-block":u.type="pre";break;default:u.type="p"}r.push(u)}),r},Nl=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},kn=e=>{const t=new Te.CompositeDecorator([{strategy:Nl,component:we}]),r=Te.convertFromRaw(e);return Te.EditorState.createWithContent(r,t)},Ol=e=>Te.convertFromRaw(e),Ln=Te.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Tl=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:kn,EXTENDED_BLOCK_RENDER_MAP:Ln,GET_CONTENT_STATE:Ol,convertDraftToHTML:Pl},Symbol.toStringTag,{value:"Module"})),Mt={"responsive-mobile-flex":"_responsive-mobile-flex_t5bry_2","responsive-desktop-flex":"_responsive-desktop-flex_t5bry_13","responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},Ml=({slug:e,data:t,SectionZone:r,COMMON_PAGE_COLUMN_GAP:n})=>{const o=t==null?void 0:t.find(p=>{var m,d,f,h;return((d=(m=p.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="desktop"&&((h=(f=p.config)==null?void 0:f.seo)==null?void 0:h.slug)===e}),i=o==null?void 0:o.config.responsive.gapCustom,a=o==null?void 0:o.config.responsive.gapSections,s=t==null?void 0:t.find(p=>{var m,d,f,h;return((d=(m=p.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="mobile"&&((h=(f=p.config)==null?void 0:f.seo)==null?void 0:h.slug)===e}),u=s==null?void 0:s.config.responsive.gapCustom,l=s==null?void 0:s.config.responsive.gapSections;return c.jsxs(c.Fragment,{children:[c.jsx(b.Utils.Column,{gap:i&&a?a:n,className:b.helpers.classNameConcat(Mt["responsive-desktop-flex"],"utils-column-modifier"),children:c.jsx(r,{data:(o==null?void 0:o.sections)??[]})}),c.jsx(b.Utils.Column,{gap:u&&l?l:n,className:b.helpers.classNameConcat(Mt["responsive-mobile-flex"],"utils-column-modifier"),children:c.jsx(r,{data:(s==null?void 0:s.sections)??[]})})]})},Ue=e=>({centro:"center",esquerda:"start",direita:"end"})[e],kl=({expanded:e,content:t})=>c.jsxs("details",{open:e,children:[t.textStructureReduced?c.jsx("summary",{onClick:r=>r.preventDefault(),children:c.jsx(Te.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ln,editorState:t!=null&&t.textStructureReduced?kn(JSON.parse(t.textStructureReduced)):Te.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):c.jsx(c.Fragment,{}),t.showTextStructureExpander&&t.textStructure?c.jsx(c.Fragment,{children:c.jsx(Te.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ln,editorState:t.textStructure?kn(JSON.parse(t.textStructure)):Te.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):c.jsx(c.Fragment,{})]}),Ll={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Dl="_textContentWrapper_1bigo_5",$l="_textContentSection_1bigo_13",Dn={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Dl,textContentSection:$l},ql="_link_w24h0_1",Bl="_wrapper_w24h0_98",Hl="_text_w24h0_106",gr={link:ql,wrapper:Bl,text:Hl},Ze=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:a,title:s,onClick:u,disablePadding:l,...p})=>{const m=b.helpers.ValidateProp({fieldTypes:nt.SizesSmallExtended,property:a,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:nt.Mode,property:i,fallback:"default"});return c.jsx(we,{...p,className:b.helpers.classNameConcat(gr.link,r),href:o&&o.length>0?o:"#","data-size":m,"data-variant":d,title:s||"NextLink","data-disable-underline":n??!1,"data-disable-padding":l??!0,children:c.jsxs("div",{className:gr.wrapper,onClick:u,children:[t==null?void 0:t.start,c.jsx("p",{className:gr.text,"data-size":m,children:e}),t==null?void 0:t.end]})})},Zn=({data:e,ICONS:t})=>{var o;const[r,n]=B.useState(!1);return c.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ue(e.textStructureAlignment),alignItems:Ue(e.textStructureAlignment)},columnWrapper:{alignContent:Ue(e.textStructureAlignment),alignItems:Ue(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?c.jsx(b.Button,{variant:"tertiary",adornment:{end:c.jsx(b.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):c.jsx(c.Fragment,{})},children:c.jsxs(b.Utils.Column,{className:Dn.textContentWrapper,style:{alignItems:Ue(e.textStructureAlignment)},children:[c.jsx(b.TextStructure.DivWrapper,{style:{textAlign:Ue(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Ll["draftjs-text-modifier"],children:e.textStructureReduced?c.jsx(kl,{content:e,expanded:r}):c.jsx(c.Fragment,{})}),e.textStructureButtonLabel?c.jsx(Ze,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Dn["link-modifier"],adornments:(o=e.textStructureButtonIcon)!=null&&o.length&&e.enableIcon?{end:c.jsx(b.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):c.jsx(c.Fragment,{})]})})},zl=e=>({centro:{verticalAlignment:"center",horizontalAlignment:"center"},"centro-esquerda":{verticalAlignment:"center",horizontalAlignment:"start"},"centro-direita":{verticalAlignment:"center",horizontalAlignment:"end"},"superior-centro":{verticalAlignment:"start",horizontalAlignment:"center"},"superior-esquerda":{verticalAlignment:"start",horizontalAlignment:"start"},"superior-direita":{verticalAlignment:"start",horizontalAlignment:"end"},"inferior-centro":{verticalAlignment:"end",horizontalAlignment:"center"},"inferior-esquerda":{verticalAlignment:"end",horizontalAlignment:"start"},"inferior-direita":{verticalAlignment:"end",horizontalAlignment:"end"}})[e],Yo=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Fl="_image_lypfr_1",Ul={image:Fl},Wl=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Ne();return c.jsx(o,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(Ul.image,t),"data-object-fit":r??"cover"})},Gl=({videoRef:e,...t})=>c.jsx("video",{...t,ref:e,children:c.jsx("track",{kind:"captions"})}),Oe={Image:Wl,Video:Gl},$n=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=B.useState(As(new fo.TZDate(Date.now(),r),new fo.TZDate(e,r))),[a,s]=B.useState(!1);B.useEffect(()=>{a||s(!0);const l=setInterval(()=>{if(o<=0){clearInterval(l);return}i(o-1e3)},1e3);return()=>{clearInterval(l)}},[o,i,a]);const u=rt(o,"days");return a&&o>0?c.jsxs(b.Timer.Root,{...n,children:[u?c.jsxs(c.Fragment,{children:[c.jsx(b.Timer.Digit,{label:"dias",value:u}),c.jsx(b.Timer.Separator,{})]}):null,c.jsx(b.Timer.Digit,{label:"horas",value:rt(o,"hours")}),c.jsx(b.Timer.Separator,{}),c.jsx(b.Timer.Digit,{label:"min",value:rt(o,"minutes")}),c.jsx(b.Timer.Separator,{}),c.jsx(b.Timer.Digit,{label:"segs",value:rt(o),suppressHydrationWarning:!0})]}):c.jsx(c.Fragment,{})},Zo={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},Jo=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:a,image:s,imageHref:u,imageOpacity:l,altImage:p,backgroundColor:m,position:d,contentAlignment:f,showTimer:h,contentOrder:y,timerMode:g,timerEnd:v,timerInit:R,textStructure:_,textStructureReduced:S}=e.banner,C=(u==null?void 0:u.trim())||(s==null?void 0:s.trim())||null,{nextimage:w}=Ne();return c.jsxs(b.Banner.Container,{...i,children:[c.jsxs(b.Banner.ImageWrapper,{className:Zo["banner-image-wrapper-modifier"],style:l?{background:m}:void 0,children:[a&&c.jsx(Oe.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),C&&!(a!=null&&a.length)&&c.jsx(w,{src:C,width:"1920",height:"1080",alt:p??s??"",...r?{priority:r}:{},style:l?{opacity:"0"}:void 0}),!s&&!(a!=null&&a.length)&&c.jsx("div",{style:{background:m}})]}),h||S||_?c.jsx(b.Banner.Slot,{...zl(d??"centro"),className:Zo["content-modifier"],style:{textAlign:Yo(f)},children:c.jsxs(b.Utils.Column,{gap:"16px",alignItems:Yo(f),children:[h&&y==="timer-first"&&c.jsx($n,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:R?new Date(R):new Date}),c.jsx(Zn,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&c.jsx($n,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:R?new Date(R):new Date})]})}):c.jsx(c.Fragment,{})]})},Vl={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Kl(e,t,r){const[n,o]=B.useState(!1),{threshold:i}=r||{};return B.useEffect(()=>{if(!e.current)return()=>null;let a=null;const s=new IntersectionObserver(([u])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{o(u.isIntersecting),t&&u.isIntersecting&&s.unobserve(e.current)},r.delay);return}o(u.isIntersecting),t&&u.isIntersecting&&s.unobserve(e.current)},{threshold:i||1});return s.observe(e.current),()=>{s.disconnect()}},[e]),n}const Jn=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...a})=>{const s=B.useRef(null),u=Kl(s,o,r),{sendDataLayerEvent:l}=ge();return B.useEffect(()=>{u&&(typeof n=="function"&&n(),t&&l({...t}))},[u]),c.jsx("div",{...a,ref:s,className:b.helpers.classNameConcat(Vl["observer-wrapper"],i),children:e})},Ls=({data:e,className:t,priority:r,creative:n,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ge(),{banner:{promotion_name:s},index:u,componentIndex:l}=e,p=typeof u=="number"?`:${u+1}`:"",m={creative_name:n,creative_slot:`${n}-${a.current}:${l+1}${p}`,promotion_id:e.banner.href,promotion_name:s},d=B.useRef(null),f=B.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],v=g==null?void 0:g.split("&"),R=v==null?void 0:v.filter(S=>S.includes("loc")||S.includes("signature")||S.includes("user_id")),_=R==null?void 0:R.join("&");return`${e.banner.video.split("?")[0]}?${_}`}return e.banner.video},[e]),h=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return c.jsx(Jn,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...m,index:u}}}},observerOptions:{delay:100,...f&&{threshold:.1}},...f&&{callBackWhenVisible:h},children:e.banner.href?c.jsx(we,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:m,index:u})},children:c.jsx(Jo,{data:e,videoUrl:f,priority:r,videoRef:d,...o})}):c.jsx(Jo,{data:e,videoUrl:f,priority:r,videoRef:d,...o})})},Ds=e=>c.jsx(Ls,{...e}),Xl={Banner:Ds},et={"row-controller-modifier":"_row-controller-modifier_co4wb_1","carousel-title-modifier":"_carousel-title-modifier_co4wb_18","carousel-modifier":"_carousel-modifier_co4wb_22","card-modifier":"_card-modifier_co4wb_26"},Ql=({data:e,CONSTANTS:t})=>{var l;const{isMobile:r}=ke(),n=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:s,itemsStyles:u}=b.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(l=e==null?void 0:e.config)==null?void 0:l.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&o?"column":"row"});return c.jsx(b.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:c.jsxs(b.Carousel.Root,{innerRef:p=>{i(p)},className:b.helpers.classNameConcat(et["carousel-modifier"],"common-section"),children:[n==="medium"?c.jsxs(b.TextStructure.Root,{children:[c.jsx(b.TextStructure.DivWrapper,{className:et["carousel-title-modifier"],children:c.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?c.jsx(b.Carousel.Controller,{className:et["row-controller-modifier"],children:c.jsxs(b.Carousel.Arrows,{children:[c.jsx(b.Button,{variant:"tertiary",onClick:()=>s==null?void 0:s.prevPage(),adornment:{start:c.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),c.jsx(b.Button,{variant:"tertiary",onClick:()=>s==null?void 0:s.nextPage(),adornment:{start:c.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]})}):c.jsx(c.Fragment,{})]}):c.jsx(c.Fragment,{}),c.jsx(b.Carousel.Body,{children:e.bennefit.map((p,m)=>c.jsx(b.Carousel.Item,{className:et["card-modifier"],style:u,children:c.jsx(b.Card,{stroke:!0,padding:"small",children:c.jsx(b.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:c.jsx(b.Icon,{name:p.icon,size:n==="medium"?"medium":"small"})},children:c.jsxs(b.TextStructure.DivWrapper,{alignItems:"start",children:[c.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?c.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):c.jsx(c.Fragment,{})]})})})},`bennefit=${m}`))}),!r&&a.totalPages>1?c.jsxs(b.Carousel.Controller,{className:et["row-controller-modifier"],children:[c.jsxs(b.Carousel.Arrows,{children:[c.jsx(b.Button,{variant:"tertiary",onClick:()=>s==null?void 0:s.prevPage(),adornment:{start:c.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),c.jsx(b.Button,{variant:"tertiary",onClick:()=>s==null?void 0:s.nextPage(),adornment:{start:c.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]}),c.jsx(b.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:p=>s==null?void 0:s.navigateTo(p)})]}):c.jsx(c.Fragment,{})]})})},Yl=({data:e,ICONS:t})=>c.jsx("div",{className:b.helpers.classNameConcat(Dn.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:c.jsx(Zn,{data:e,ICONS:t})}),Zl={Banner:Xl,BannerSection:Ls,BennefitsBarSection:Ql,DataScreening:Ml,SingleBannerSection:Ds,TextContentSection:Yl,TextContent:Zn},Jl={Components:Zl,helpers:Tl},je={"add-to-cart--card":"_add-to-cart--card_4v41y_1","add-to-cart--card--content":"_add-to-cart--card--content_4v41y_7","add-to-cart--card--name":"_add-to-cart--card--name_4v41y_16","add-to-cart--card--price-quantity":"_add-to-cart--card--price-quantity_4v41y_46","add-to-cart--card--style-size":"_add-to-cart--card--style-size_4v41y_53","add-to-cart--content":"_add-to-cart--content_4v41y_71","add-to-cart--content--title":"_add-to-cart--content--title_4v41y_78","add-to-cart--footer":"_add-to-cart--footer_4v41y_102","add-to-cart--footer--total":"_add-to-cart--footer--total_4v41y_108","add-to-cart--items":"_add-to-cart--items_4v41y_148","add-to-cart--tooltip":"_add-to-cart--tooltip_4v41y_198","add-to-cart__modal":"_add-to-cart__modal_4v41y_211"},$s=({brand:e,className:t,name:r,...n})=>c.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--card--name"],t),children:[c.jsx(b.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:c.jsx("p",{className:"typography-style-body-md",children:r})})})]});$s.displayName="AddToCart.Card.Name";const qs=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const a=Me(r/100),s=Me(t/100);return c.jsx("div",{...i,className:b.helpers.classNameConcat(je["add-to-cart--card--price-quantity"],e),children:c.jsx(b.ProductInfo.Root,{size:"small",layout:"vertical",children:c.jsx(b.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:c.jsx(b.ProductInfo.ValuesWrapper,{children:r!==t?c.jsxs(c.Fragment,{children:[c.jsx(b.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),c.jsx(b.ProductInfo.Price,{label:"discountPrice",value:s,size:"small"},"price-low")]}):c.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:s,size:"small"},"price-low")})})})})};qs.displayName="AddToCart.Card.PriceQuantity";const ed="_skeleton_12b79_1",td={skeleton:ed},rd=({style:e})=>c.jsx("div",{style:e,className:td.skeleton}),Bs=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=ze(),[s,u]=B.useState(n??"");return B.useEffect(()=>{s||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(l=>l.json()).then(l=>{const p=l.data[0].items[0];if(p){const m=p.images.find(d=>i.includes(d.imageLabel));m!=null&&m.imageUrl?u(m.imageUrl):u(p.images[0].imageUrl)}}).catch(l=>{console.error(l)})},[s,t]),c.jsxs("div",{...o,className:b.helpers.classNameConcat(je["add-to-cart--card--style-size"],e),children:[c.jsx(b.ToggleStyle.Wrapper,{size:"x-small",style:a,children:c.jsx(b.ToggleStyle.Texture,{children:s?c.jsx(Oe.Image,{alt:"",src:s??"",width:164,height:164,style:a}):c.jsx(rd,{})})}),c.jsx(b.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&c.jsxs(b.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[c.jsx(b.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),c.jsx(b.ToggleSize.Text,{children:r})]})]})};Bs.displayName="AddToCart.Card.StyleSize";const{helpers:nd}=Rs,Hs=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:o,brand:i,skuName:a,isVariationOf:{productGroupID:s}},quantity:u,price:l,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:m}}=ze(),{size:d}=nd.product.getColorAndSizeFromSkuName(a??o,m);return console.log("value size, skuName",{size:d,skuName:a,name:o}),c.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--card--content"],e),children:[c.jsx($s,{brand:i.name,name:o}),c.jsx(qs,{price:l,listPrice:p,quantity:u,productId:t.id}),c.jsx(Bs,{size:d,texture:r,productGroupID:s})]})};Hs.displayName="AddToCart.Card.Content";const zs=({image:e,thumbnail:t=!1})=>c.jsx(Oe.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});zs.displayName="AddToCart.Card";const Fs=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,a=Ia(i.url,{width:200,height:300});return c.jsxs("div",{...o,className:b.helpers.classNameConcat(je["add-to-cart--card"],e),children:[c.jsx(zs,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&c.jsx(Hs,{item:t,texture:r})]})};Fs.displayName="AddToCart.Card";const Us=({className:e,children:t,title:r,...n})=>c.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--content"],e),children:[c.jsx("div",{className:je["add-to-cart--content--title"],children:r&&c.jsx("h2",{children:r})}),t,c.jsx(qe.Footer,{})]});Us.displayName="AddToCart.Layout.Content";const Ws=({className:e,...t})=>{var f,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=ze(),{cartStore:{totalizers:i},setIsOpen:a}=Ye(),s=(f=i.find(y=>y.id==="Discounts"))==null?void 0:f.value,u=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,l=i.find(y=>y.id==="Shipping"),m=(u-Math.abs(s??0)+((l==null?void 0:l.value)??0))/100,d=Me(m??0);return c.jsxs("div",{...t,className:b.helpers.classNameConcat(je["add-to-cart--footer"],e),children:[c.jsxs("div",{className:je["add-to-cart--footer--total"],children:[c.jsx("span",{children:"Subtotal:"}),c.jsx("span",{children:d})]}),c.jsx(b.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:o.footer.bag}),r?c.jsx(b.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:o.footer.keep_buying}):c.jsx(b.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:o.footer.keep_buying})]})};Ws.displayName="AddToCart.Layout.Footer";const Gs=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=Ye(),{recentlyAddedProducts:i}=at(),a=i.length>3?4:i.length;return c.jsxs("div",{...n,className:je["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((s,u)=>u<a).map(s=>{var l;const u=(l=o==null?void 0:o.find(p=>p.id===s.itemOffered.isVariationOf.productGroupID))==null?void 0:l.texture;return c.jsx(qe.Card,{item:s,thumbnail:r,texture:u},s.itemOffered.sku)}),e]})};Gs.displayName="AddToCart.Layout.Items";const Vs=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=ze(),{isMobile:o}=ke();return c.jsxs(b.Modal.Root,{"data-modal":"add-to-cart--modal",className:je["add-to-cart__modal"],isMobile:o??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[c.jsx(b.Modal.Header,{navigation:"top",children:c.jsx(b.Modal.Controls,{navigation:"top",isMobile:!0})}),c.jsx(b.Modal.Body,{children:e})]})};Vs.displayName="AddToCart.Modal";const od=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=ze(),o=B.useRef(t);return B.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),c.jsx(c.Fragment,{children:e})},Ks=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=at(),{isMobile:i}=ke(),a=o.length>3?4:o.length;return c.jsx(bs,{...n,count:a,isMobile:i,CONSTANTS:r,children:c.jsx(od,{children:i?c.jsxs(c.Fragment,{children:[c.jsx(qe.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):c.jsx(qe.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};Ks.displayName="AddToCart.Root";const Xs=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,target:s,isOpen:u,top:l}=ze();return c.jsx(b.Tooltip.Root,{arrow:"top-right",component:c.jsx("div",{...n,ref:o,children:t}),id:"add-to-cart--tooltip",className:je["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:u,left:i,size:"medium",position:"top",top:l,children:c.jsx("div",{className:je["add-to-cart--tooltip"],ref:s,children:e})})};Xs.displayName="AddToCart.Tooltip";const qe={Card:Fs,Content:Us,Footer:Ws,Items:Gs,Modal:Vs,Root:Ks,Tooltip:Xs},eo=({title:e,...t})=>{const{recentlyAddedProducts:r}=at(),{isMobile:n}=ke(),o=r.length>3?4:r.length,i=r.length>(o??1),a=r.length>1;return c.jsx(qe.Root,{isMobile:n,count:r.length,component:c.jsx(qe.Content,{title:e,children:c.jsx(qe.Items,{thumbnail:a,children:i&&c.jsx(b.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};eo.displayName="AddToCart";const ei={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},id=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:o,style:i,...a})=>{const s={top:(o==null?void 0:o.top)??0,left:(o==null?void 0:o.left)??0,behavior:(o==null?void 0:o.behavior)??"smooth"},l=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},p=()=>{window&&window.document.body.scrollTo({...s})};return c.jsx(b.Card,{...a,shadow:!0,padding:"small",className:b.helpers.classNameConcat(ei["card-modifier"],t),style:{...i,padding:0},children:c.jsxs("button",{className:ei["backtotop-btn"],onClick:p,style:{...l},"data-orientation":n,children:[r,e]})})},ad=({page:e,data:t})=>{const{pathname:r}=Ne(),n=B.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:a,promotionEventRef:s}=ge();return B.useEffect(()=>{const u=Cs("login_event")||"{}",l=JSON.parse(u);if(l.name||l.method){const p=new Date(0);o({functionKey:"readyEvents",data:{event:l.name,readyData:{method:l.method}}}),Ss("login_event","",{expires:p})}},[]),B.useEffect(()=>{if(n.current===r)return;n.current=r;let u={};switch(e){case"PDP":{const p=t,m={};if(!p){u={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:f})=>m[d]=f[0].commertialOffer.AvailableQuantity),u={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:m,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:m,id:d,name:f}=La(),h=f,y=d;u={page_category:"lista_produtos",...m&&{page_departament:m}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},m&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:m}}});break}default:u={page_category:e},s.current={},a.current={};break}const l={region:e,...u};i.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...l}},timeout:0})},[r]),null};var qn={exports:{}};function sd(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var yr={},_r={},ti;function cd(){return ti||(ti=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Re._(B).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(_r)),_r}var ri;function ud(){return ri||(ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});const r=Re._(B),n=cd();function o(h){return h&&h.default?h.default:h}const i=[],a=[];let s=!1;function u(h){let y=h(),g={loading:!0,loaded:null,error:null};return g.promise=y.then(v=>(g.loading=!1,g.loaded=v,v)).catch(v=>{throw g.loading=!1,g.error=v,v}),g}function l(h,y){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),v=null;function R(){if(!v){const C=new p(h,g);v={getCurrentValue:C.getCurrentValue.bind(C),subscribe:C.subscribe.bind(C),retry:C.retry.bind(C),promise:C.promise.bind(C)}}return v.promise()}if(typeof window>"u"&&i.push(R),!s&&typeof window<"u"){const C=g.webpack&&typeof sd.resolveWeak=="function"?g.webpack():g.modules;C&&a.push(w=>{for(const x of C)if(w.includes(x))return R()})}function _(){R();const C=r.default.useContext(n.LoadableContext);C&&Array.isArray(g.modules)&&g.modules.forEach(w=>{C(w)})}function S(C,w){_();const x=r.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return r.default.useImperativeHandle(w,()=>({retry:v.retry}),[]),r.default.useMemo(()=>x.loading||x.error?r.default.createElement(g.loading,{isLoading:x.loading,pastDelay:x.pastDelay,timedOut:x.timedOut,error:x.error,retry:v.retry}):x.loaded?r.default.createElement(o(x.loaded),C):null,[C,x])}return S.preload=()=>R(),S.displayName="LoadableComponent",r.default.forwardRef(S)}class p{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:g}=this;y.loading&&(typeof g.delay=="number"&&(g.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},g.delay)),typeof g.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},g.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(v=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,g){this._loadFn=y,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function m(h){return l(u,h)}function d(h,y){let g=[];for(;h.length;){let v=h.pop();g.push(v(y))}return Promise.all(g).then(()=>{if(h.length)return d(h,y)})}m.preloadAll=()=>new Promise((h,y)=>{d(i).then(h,y)}),m.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(s=!0,y());d(a,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=m.preloadReady);const f=m}(yr)),yr}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,m){for(var d in m)Object.defineProperty(p,d,{enumerable:!0,get:m[d]})}r(t,{noSSR:function(){return u},default:function(){return l}});const n=Re,o=n._(B),i=n._(ud()),a=typeof window>"u";function s(p){return{default:(p==null?void 0:p.default)||p}}function u(p,m){if(delete m.webpack,delete m.modules,!a)return p(m);const d=m.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function l(p,m){let d=i.default,f={loading:g=>{let{error:v,isLoading:R,pastDelay:_}=g;if(!_)return null;if(process.env.NODE_ENV!=="production"){if(R)return null;if(v)return o.default.createElement("p",null,v.message,o.default.createElement("br",null),v.stack)}return null}};p instanceof Promise?f.loader=()=>p:typeof p=="function"?f.loader=p:typeof p=="object"&&(f={...f,...p}),f={...f,...m};const h=f.loader,y=()=>h!=null?h().then(s):Promise.resolve(s(()=>null));return f.loadableGenerated&&(f={...f,...f.loadableGenerated},delete f.loadableGenerated),typeof f.ssr=="boolean"&&!f.ssr?(delete f.webpack,delete f.modules,u(d,f)):d({...f,loader:y})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(qn,qn.exports);var ld=qn.exports,dd=ld;const to=Dt(dd);var Bn={exports:{}},vr={},ni;function Qs(){return ni||(ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Re._(B).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(vr)),vr}var jt={exports:{}},oi;function fd(){return oi||(oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(u,l){for(var p in l)Object.defineProperty(u,p,{enumerable:!0,get:l[p]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return i},default:function(){return s}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(u){let{type:l,props:p}=u;const m=document.createElement(l);for(const h in p){if(!p.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||p[h]===void 0)continue;const y=n[h]||h.toLowerCase();l==="script"&&(y==="async"||y==="defer"||y==="noModule")?m[y]=!!p[h]:m.setAttribute(y,p[h])}const{children:d,dangerouslySetInnerHTML:f}=p;return f?m.innerHTML=f.__html||"":d&&(m.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),m}function i(u,l){if(u instanceof HTMLElement&&l instanceof HTMLElement){const p=l.getAttribute("nonce");if(p&&!u.getAttribute("nonce")){const m=l.cloneNode(!0);return m.setAttribute("nonce",""),m.nonce=p,p===u.nonce&&u.isEqualNode(m)}}return u.isEqualNode(l)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(u,l)=>{const p=document.querySelector("head");if(!p)return;const m=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(u==="meta"){const y=p.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<m.length;y++){var f;const v=m[y].nextSibling;(v==null||(f=v.tagName)==null?void 0:f.toLowerCase())===u&&d.push(v)}const h=l.map(o).filter(y=>{for(let g=0,v=d.length;g<v;g++){const R=d[g];if(i(R,y))return d.splice(g,1),!1}return!0});d.forEach(y=>{var g;const v=y.previousSibling;if(v&&v.getAttribute("name")==="next-head"){var R;(R=y.parentNode)==null||R.removeChild(v)}(g=y.parentNode)==null||g.removeChild(y)}),h.forEach(y=>{var g;const v=document.createElement("meta");v.name="next-head",v.content="1",((g=y.tagName)==null?void 0:g.toLowerCase())==="meta"&&y.getAttribute("charset")||p.appendChild(v),p.appendChild(y)})}:a=(u,l)=>{const p=document.getElementsByTagName("head")[0],m=p.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!m){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(m.content),f=[];for(let g=0,v=m.previousElementSibling;g<d;g++,v=(v==null?void 0:v.previousElementSibling)||null){var h;(v==null||(h=v.tagName)==null?void 0:h.toLowerCase())===u&&f.push(v)}const y=l.map(o).filter(g=>{for(let v=0,R=f.length;v<R;v++){const _=f[v];if(i(_,g))return f.splice(v,1),!1}return!0});f.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),y.forEach(g=>p.insertBefore(g,m)),m.content=(d-f.length+y.length).toString()};function s(){return{mountedInstances:new Set,updateHead:u=>{const l={};u.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const f=l[d.type]||[];f.push(d),l[d.type]=f});const p=l.title?l.title[0]:null;let m="";if(p){const{children:d}=p.props;m=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}m!==document.title&&(document.title=m),["meta","base","link","style","script"].forEach(d=>{a(d,l[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(jt,jt.exports)),jt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(C,w){for(var x in w)Object.defineProperty(C,x,{enumerable:!0,get:w[x]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return R},default:function(){return S}});const n=Re,o=Xe,i=n._(_a),a=o._(B),s=Qs(),u=fd(),l=ks(),p=new Map,m=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],f=C=>{if(i.default.preinit){C.forEach(w=>{i.default.preinit(w,{as:"style"})});return}if(typeof window<"u"){let w=document.head;C.forEach(x=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=x,w.appendChild(I)})}},h=C=>{const{src:w,id:x,onLoad:I=()=>{},onReady:$=null,dangerouslySetInnerHTML:A,children:N="",strategy:j="afterInteractive",onError:k,stylesheets:P}=C,q=x||w;if(q&&m.has(q))return;if(p.has(w)){m.add(q),p.get(w).then(I,k);return}const z=()=>{$&&$(),m.add(q)},G=document.createElement("script"),Y=new Promise((V,F)=>{G.addEventListener("load",function(oe){V(),I&&I.call(this,oe),z()}),G.addEventListener("error",function(oe){F(oe)})}).catch(function(V){k&&k(V)});A?(G.innerHTML=A.__html||"",z()):N?(G.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",z()):w&&(G.src=w,p.set(w,Y));for(const[V,F]of Object.entries(C)){if(F===void 0||d.includes(V))continue;const oe=u.DOMAttributeNames[V]||V.toLowerCase();G.setAttribute(oe,F)}j==="worker"&&G.setAttribute("type","text/partytown"),G.setAttribute("data-nscript",j),P&&f(P),document.body.appendChild(G)};function y(C){const{strategy:w="afterInteractive"}=C;w==="lazyOnload"?window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>h(C))}):h(C)}function g(C){document.readyState==="complete"?(0,l.requestIdleCallback)(()=>h(C)):window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>h(C))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(w=>{const x=w.id||w.getAttribute("src");m.add(x)})}function R(C){C.forEach(y),v()}function _(C){const{id:w,src:x="",onLoad:I=()=>{},onReady:$=null,strategy:A="afterInteractive",onError:N,stylesheets:j,...k}=C,{updateScripts:P,scripts:q,getIsSsr:z,appDir:G,nonce:Y}=(0,a.useContext)(s.HeadManagerContext),V=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const oe=w||x;V.current||($&&oe&&m.has(oe)&&$(),V.current=!0)},[$,w,x]);const F=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{F.current||(A==="afterInteractive"?h(C):A==="lazyOnload"&&g(C),F.current=!0)},[C,A]),(A==="beforeInteractive"||A==="worker")&&(P?(q[A]=(q[A]||[]).concat([{id:w,src:x,onLoad:I,onReady:$,onError:N,...k}]),P(q)):z&&z()?m.add(w||x):z&&!z()&&h(C)),G){if(j&&j.forEach(oe=>{i.default.preinit(oe,{as:"style"})}),A==="beforeInteractive")return x?(i.default.preload(x,k.integrity?{as:"script",integrity:k.integrity}:{as:"script"}),a.default.createElement("script",{nonce:Y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):(k.dangerouslySetInnerHTML&&(k.children=k.dangerouslySetInnerHTML.__html,delete k.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:Y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...k}])+")"}}));A==="afterInteractive"&&x&&i.default.preload(x,k.integrity?{as:"script",integrity:k.integrity}:{as:"script"})}return null}Object.defineProperty(_,"__nextScript",{value:!0});const S=_;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Bn,Bn.exports);var pd=Bn.exports,md=pd;const hd=Dt(md),gd=({children:e,ONE_TRUST:t})=>c.jsxs(c.Fragment,{children:[c.jsx(hd,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),yd=to(()=>Promise.resolve(gd),{ssr:!1}),_d="_footer__bottom_1o9af_2",vd="_footer__wrapper_1o9af_10",bd="_footer__main_1o9af_39",xd="_footer__legalInformation_1o9af_55",Cd="_footer__column_1o9af_77",Sd="_footer__columnContent_1o9af_87",Ad="_footer__item_1o9af_91",Rd="_footer__itemLink_1o9af_107",Ed="_footer__columnTitle_1o9af_122",wd="_footer__columnTitleIcon_1o9af_134",jd="_footer__iconList_1o9af_147",Id="_footer__itemSmallText_1o9af_157",Pd="_payment_1o9af_168",Nd="_footer__iconContainer_1o9af_173",Od="_footer__iconListSubHeader_1o9af_178",Td="_accordionWrapper_1o9af_200",Md="_accordionHeader_1o9af_204",kd="_accordionTextWrapper_1o9af_208",pe={footer__bottom:_d,footer__wrapper:vd,footer__main:bd,footer__legalInformation:xd,footer__column:Cd,footer__columnContent:Sd,footer__item:Ad,footer__itemLink:Rd,footer__columnTitle:Ed,footer__columnTitleIcon:wd,footer__iconList:jd,footer__itemSmallText:Id,payment:Pd,footer__iconContainer:Nd,footer__iconListSubHeader:Od,accordionWrapper:Td,accordionHeader:Md,accordionTextWrapper:kd,"footer--stamps":"_footer--stamps_1o9af_247","footer--stamps--company":"_footer--stamps--company_1o9af_254","support-container":"_support-container_1o9af_258","support-section":"_support-section_1o9af_277","support-text":"_support-text_1o9af_319","support-items":"_support-items_1o9af_329","support-item":"_support-item_1o9af_329"};var Ys={},ro={},ut={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=n=>{r.has(n)||console.warn(n),r.add(n)}}})(ut);var Zs={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:n,heightInt:o,blurWidth:i,blurHeight:a,blurDataURL:s,objectFit:u}=r;const l=20,p=i?i*40:n,m=a?a*40:o,d=p&&m?"viewBox='0 0 "+p+" "+m+"'":"",f=d?"none":u==="contain"?"xMidYMid":u==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+l+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+l+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+f+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}})(Zs);var Bt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var a in i)Object.defineProperty(o,a,{enumerable:!0,get:i[a]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});const r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}})(Bt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return f}});const t=ut,r=Zs,n=Bt,o=["lazy","eager",void 0];function i(h){return h.default!==void 0}function a(h){return h.src!==void 0}function s(h){return typeof h=="object"&&(i(h)||a(h))}const u=new Map;let l;function p(h){return typeof h>"u"?h:typeof h=="number"?Number.isFinite(h)?h:NaN:typeof h=="string"&&/^[0-9]+$/.test(h)?parseInt(h,10):NaN}function m(h,y,g){let{deviceSizes:v,allSizes:R}=h;if(g){const S=/(^|\s)(1?\d?\d)vw/g,C=[];for(let w;w=S.exec(g);w)C.push(parseInt(w[2]));if(C.length){const w=Math.min(...C)*.01;return{widths:R.filter(x=>x>=v[0]*w),kind:"w"}}return{widths:R,kind:"w"}}return typeof y!="number"?{widths:v,kind:"w"}:{widths:[...new Set([y,y*2].map(S=>R.find(C=>C>=S)||R[R.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:v,width:R,quality:_,sizes:S,loader:C}=h;if(v)return{src:g,srcSet:void 0,sizes:void 0};const{widths:w,kind:x}=m(y,R,S),I=w.length-1;return{sizes:!S&&x==="w"?"100vw":S,srcSet:w.map(($,A)=>C({config:y,src:g,quality:_,width:$})+" "+(x==="w"?$:A+1)+x).join(", "),src:C({config:y,src:g,quality:_,width:w[I]})}}function f(h,y){let{src:g,sizes:v,unoptimized:R=!1,priority:_=!1,loading:S,className:C,quality:w,width:x,height:I,fill:$=!1,style:A,onLoad:N,onLoadingComplete:j,placeholder:k="empty",blurDataURL:P,fetchPriority:q,layout:z,objectFit:G,objectPosition:Y,lazyBoundary:V,lazyRoot:F,...oe}=h;const{imgConf:E,showAltText:T,blurComplete:D,defaultLoader:K}=y;let te,Z=E||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const U=[...Z.deviceSizes,...Z.imageSizes].sort((Ce,X)=>Ce-X),le=Z.deviceSizes.sort((Ce,X)=>Ce-X);te={...Z,allSizes:U,deviceSizes:le}}let M=oe.loader||K;delete oe.loader,delete oe.srcSet;const J="__next_img_default"in M;if(J){if(te.loader==="custom")throw new Error('Image with src "'+g+`" is missing "loader" prop.
5
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const U=M;M=le=>{const{config:Ce,...X}=le;return U(X)}}if(z){z==="fill"&&($=!0);const U={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},le={responsive:"100vw",fill:"100vw"},Ce=U[z];Ce&&(A={...A,...Ce});const X=le[z];X&&!v&&(v=X)}let Q="",ee=p(x),L=p(I),O,re;if(s(g)){const U=i(g)?g.default:g;if(!U.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(U));if(!U.height||!U.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(U));if(O=U.blurWidth,re=U.blurHeight,P=P||U.blurDataURL,Q=U.src,!$){if(!ee&&!L)ee=U.width,L=U.height;else if(ee&&!L){const le=ee/U.width;L=Math.round(U.height*le)}else if(!ee&&L){const le=L/U.height;ee=Math.round(U.width*le)}}}g=typeof g=="string"?g:Q;let ae=!_&&(S==="lazy"||typeof S>"u");(!g||g.startsWith("data:")||g.startsWith("blob:"))&&(R=!0,ae=!1),te.unoptimized&&(R=!0),J&&g.endsWith(".svg")&&!te.dangerouslyAllowSVG&&(R=!0),_&&(q="high");const ce=p(w);if(process.env.NODE_ENV!=="production"){if(te.output==="export"&&J&&!R)throw new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api");if(!g)R=!0;else if($){if(x)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(I)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(A!=null&&A.position&&A.position!=="absolute")throw new Error('Image with src "'+g+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(A!=null&&A.width&&A.width!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(A!=null&&A.height&&A.height!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof ee>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(ee))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+x+'".');if(typeof L>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(L))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+I+'".')}if(!o.includes(S))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+S+'" should be one of '+o.map(String).join(",")+".");if(_&&S==="lazy")throw new Error('Image with src "'+g+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(k!=="empty"&&k!=="blur"&&!k.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+k+'".');if(k!=="empty"&&ee&&L&&ee*L<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),k==="blur"&&!P){const U=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
6
+ Possible solutions:
7
+ - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
8
+ - Change the "src" property to a static import with one of the supported file types: `+U.join(",")+` (animated images not supported)
9
+ - Remove the "placeholder" property, effectively no blur effect
10
+ Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in oe&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!R&&!J){const U=M({config:te,src:g,width:ee||400,quality:ce||75});let le;try{le=new URL(U)}catch{}(U===g||le&&le.pathname===g&&!le.search)&&(0,t.warnOnce)('Image with src "'+g+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
11
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[U,le]of Object.entries({layout:z,objectFit:G,objectPosition:Y,lazyBoundary:V,lazyRoot:F}))le&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+U+`". Did you forget to run the codemod?
12
+ Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!l&&window.PerformanceObserver){l=new PerformanceObserver(U=>{for(const Ce of U.getEntries()){var le;const X=(Ce==null||(le=Ce.element)==null?void 0:le.src)||"",ne=u.get(X);ne&&!ne.priority&&ne.placeholder==="empty"&&!ne.src.startsWith("data:")&&!ne.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+ne.src+`" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
13
+ Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{l.observe({type:"largest-contentful-paint",buffered:!0})}catch(U){console.error(U)}}}const ue=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:G,objectPosition:Y}:{},T?{}:{color:"transparent"},A),se=!D&&k!=="empty"?k==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:L,blurWidth:O,blurHeight:re,blurDataURL:P||"",objectFit:ue.objectFit})+'")':'url("'+k+'")':null;let H=se?{backgroundSize:ue.objectFit||"cover",backgroundPosition:ue.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:se}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&k==="blur"&&P!=null&&P.startsWith("/")&&(H.backgroundImage='url("'+P+'")');const he=d({config:te,src:g,unoptimized:R,width:ee,quality:ce,sizes:v,loader:M});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let U;try{U=new URL(he.src)}catch{U=new URL(he.src,window.location.href)}u.set(U.href,{src:g,priority:_,placeholder:k})}return{props:{...oe,loading:ae?"lazy":S,fetchPriority:q,width:ee,height:L,decoding:"async",className:C,style:{...ue,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:R,priority:_,placeholder:k,fill:$}}}})(ro);var Hn={exports:{}},It={exports:{}},br={},ii;function Ld(){return ii||(ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=B,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(a){const{headManager:s,reduceComponentsToState:u}=a;function l(){if(s&&s.mountedInstances){const m=t.Children.toArray(Array.from(s.mountedInstances).filter(Boolean));s.updateHead(u(m,a))}}if(r){var p;s==null||(p=s.mountedInstances)==null||p.add(a.children),l()}return n(()=>{var m;return s==null||(m=s.mountedInstances)==null||m.add(a.children),()=>{var d;s==null||(d=s.mountedInstances)==null||d.delete(a.children)}}),n(()=>(s&&(s._pendingUpdate=l),()=>{s&&(s._pendingUpdate=l)})),o(()=>(s&&s._pendingUpdate&&(s._pendingUpdate(),s._pendingUpdate=null),()=>{s&&s._pendingUpdate&&(s._pendingUpdate(),s._pendingUpdate=null)})),null}}(br)),br}var xr={},ai;function Dd(){return ai||(ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Re._(B).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(xr)),xr}var Cr={},si;function $d(){return si||(si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:n=!1,hybrid:o=!1,hasQuery:i=!1}=r===void 0?{}:r;return n||o&&i}}(Cr)),Cr}var ci;function qd(){return ci||(ci=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(R,_){for(var S in _)Object.defineProperty(R,S,{enumerable:!0,get:_[S]})}r(t,{defaultHead:function(){return m},default:function(){return v}});const n=Re,i=Xe._(B),a=n._(Ld()),s=Dd(),u=Qs(),l=$d(),p=ut;function m(R){R===void 0&&(R=!1);const _=[i.default.createElement("meta",{charSet:"utf-8"})];return R||_.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),_}function d(R,_){return typeof _=="string"||typeof _=="number"?R:_.type===i.default.Fragment?R.concat(i.default.Children.toArray(_.props.children).reduce((S,C)=>typeof C=="string"||typeof C=="number"?S:S.concat(C),[])):R.concat(_)}const f=["name","httpEquiv","charSet","itemProp"];function h(){const R=new Set,_=new Set,S=new Set,C={};return w=>{let x=!0,I=!1;if(w.key&&typeof w.key!="number"&&w.key.indexOf("$")>0){I=!0;const $=w.key.slice(w.key.indexOf("$")+1);R.has($)?x=!1:R.add($)}switch(w.type){case"title":case"base":_.has(w.type)?x=!1:_.add(w.type);break;case"meta":for(let $=0,A=f.length;$<A;$++){const N=f[$];if(w.props.hasOwnProperty(N))if(N==="charSet")S.has(N)?x=!1:S.add(N);else{const j=w.props[N],k=C[N]||new Set;(N!=="name"||!I)&&k.has(j)?x=!1:(k.add(j),C[N]=k)}}break}return x}}function y(R,_){const{inAmpMode:S}=_;return R.reduce(d,[]).reverse().concat(m(S).reverse()).filter(h()).reverse().map((C,w)=>{const x=C.key||w;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!S&&C.type==="link"&&C.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(I=>C.props.href.startsWith(I))){const I={...C.props||{}};return I["data-href"]=I.href,I.href=void 0,I["data-optimized-fonts"]=!0,i.default.cloneElement(C,I)}if(process.env.NODE_ENV==="development")if(C.type==="script"&&C.props.type!=="application/ld+json"){const I=C.props.src?'<script> tag with src="'+C.props.src+'"':"inline <script>";(0,p.warnOnce)("Do not add <script> tags using next/head (see "+I+`). Use next/script instead.
14
+ See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else C.type==="link"&&C.props.rel==="stylesheet"&&(0,p.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+C.props.href+`"). Use Document instead.
15
+ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(C,{key:x})})}function g(R){let{children:_}=R;const S=(0,i.useContext)(s.AmpStateContext),C=(0,i.useContext)(u.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:y,headManager:C,inAmpMode:(0,l.isInAmpMode)(S)},_)}const v=g;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(It,It.exports)),It.exports}var Sr={},ui;function Bd(){return ui||(ui=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Re._(B),n=Bt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Sr)),Sr}var Ar={},Rr={},Er={exports:{}};const Hd={},zd=Object.freeze(Object.defineProperty({__proto__:null,default:Hd},Symbol.toStringTag,{value:"Module"})),Fd=el(zd);var wr={},jr={},Ir,li;function Js(){return li||(li=1,Ir=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}),Ir}var Pr,di;function Ht(){if(di)return Pr;di=1;var e=Js();return Pr=function(){return e()&&!!Symbol.toStringTag},Pr}var Nr,fi;function ec(){return fi||(fi=1,Nr=Object),Nr}var Or,pi;function Ud(){return pi||(pi=1,Or=Error),Or}var Tr,mi;function Wd(){return mi||(mi=1,Tr=EvalError),Tr}var Mr,hi;function Gd(){return hi||(hi=1,Mr=RangeError),Mr}var kr,gi;function Vd(){return gi||(gi=1,kr=ReferenceError),kr}var Lr,yi;function tc(){return yi||(yi=1,Lr=SyntaxError),Lr}var Dr,_i;function lt(){return _i||(_i=1,Dr=TypeError),Dr}var $r,vi;function Kd(){return vi||(vi=1,$r=URIError),$r}var qr,bi;function Xd(){return bi||(bi=1,qr=Math.abs),qr}var Br,xi;function Qd(){return xi||(xi=1,Br=Math.floor),Br}var Hr,Ci;function Yd(){return Ci||(Ci=1,Hr=Math.max),Hr}var zr,Si;function Zd(){return Si||(Si=1,zr=Math.min),zr}var Fr,Ai;function Jd(){return Ai||(Ai=1,Fr=Math.pow),Fr}var Ur,Ri;function ef(){return Ri||(Ri=1,Ur=Math.round),Ur}var Wr,Ei;function tf(){return Ei||(Ei=1,Wr=Number.isNaN||function(t){return t!==t}),Wr}var Gr,wi;function rf(){if(wi)return Gr;wi=1;var e=tf();return Gr=function(r){return e(r)||r===0?r:r<0?-1:1},Gr}var Vr,ji;function nf(){return ji||(ji=1,Vr=Object.getOwnPropertyDescriptor),Vr}var Kr,Ii;function Je(){if(Ii)return Kr;Ii=1;var e=nf();if(e)try{e([],"length")}catch{e=null}return Kr=e,Kr}var Xr,Pi;function zt(){if(Pi)return Xr;Pi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Xr=e,Xr}var Qr,Ni;function of(){if(Ni)return Qr;Ni=1;var e=typeof Symbol<"u"&&Symbol,t=Js();return Qr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Qr}var Yr,Oi;function rc(){return Oi||(Oi=1,Yr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Yr}var Zr,Ti;function nc(){if(Ti)return Zr;Ti=1;var e=ec();return Zr=e.getPrototypeOf||null,Zr}var Jr,Mi;function af(){if(Mi)return Jr;Mi=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(u,l){for(var p=[],m=0;m<u.length;m+=1)p[m]=u[m];for(var d=0;d<l.length;d+=1)p[d+u.length]=l[d];return p},i=function(u,l){for(var p=[],m=l,d=0;m<u.length;m+=1,d+=1)p[d]=u[m];return p},a=function(s,u){for(var l="",p=0;p<s.length;p+=1)l+=s[p],p+1<s.length&&(l+=u);return l};return Jr=function(u){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var p=i(arguments,1),m,d=function(){if(this instanceof m){var v=l.apply(this,o(p,arguments));return Object(v)===v?v:this}return l.apply(u,o(p,arguments))},f=r(0,l.length-p.length),h=[],y=0;y<f;y++)h[y]="$"+y;if(m=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var g=function(){};g.prototype=l.prototype,m.prototype=new g,g.prototype=null}return m},Jr}var en,ki;function dt(){if(ki)return en;ki=1;var e=af();return en=Function.prototype.bind||e,en}var tn,Li;function no(){return Li||(Li=1,tn=Function.prototype.call),tn}var rn,Di;function oo(){return Di||(Di=1,rn=Function.prototype.apply),rn}var nn,$i;function sf(){return $i||($i=1,nn=typeof Reflect<"u"&&Reflect&&Reflect.apply),nn}var on,qi;function oc(){if(qi)return on;qi=1;var e=dt(),t=oo(),r=no(),n=sf();return on=n||e.call(r,t),on}var an,Bi;function io(){if(Bi)return an;Bi=1;var e=dt(),t=lt(),r=no(),n=oc();return an=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},an}var sn,Hi;function cf(){if(Hi)return sn;Hi=1;var e=io(),t=Je(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return sn=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(s){return i(s==null?s:o(s))}:!1,sn}var cn,zi;function ao(){if(zi)return cn;zi=1;var e=rc(),t=nc(),r=cf();return cn=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,cn}var un,Fi;function ic(){if(Fi)return un;Fi=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=dt();return un=r.call(e,t),un}var ln,Ui;function ac(){if(Ui)return ln;Ui=1;var e,t=ec(),r=Ud(),n=Wd(),o=Gd(),i=Vd(),a=tc(),s=lt(),u=Kd(),l=Xd(),p=Qd(),m=Yd(),d=Zd(),f=Jd(),h=ef(),y=rf(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},R=Je(),_=zt(),S=function(){throw new s},C=R?function(){try{return arguments.callee,S}catch{try{return R(arguments,"callee").get}catch{return S}}}():S,w=of()(),x=ao(),I=nc(),$=rc(),A=oo(),N=no(),j={},k=typeof Uint8Array>"u"||!x?e:x(Uint8Array),P={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":w&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!x?e:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":R,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&x?x(""[Symbol.iterator]()):e,"%Symbol%":w?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":C,"%TypedArray%":k,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":A,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":l,"%Math.floor%":p,"%Math.max%":m,"%Math.min%":d,"%Math.pow%":f,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":$};if(x)try{null.error}catch(J){var q=x(x(J));P["%Error.prototype%"]=q}var z=function J(Q){var ee;if(Q==="%AsyncFunction%")ee=v("async function () {}");else if(Q==="%GeneratorFunction%")ee=v("function* () {}");else if(Q==="%AsyncGeneratorFunction%")ee=v("async function* () {}");else if(Q==="%AsyncGenerator%"){var L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Q==="%AsyncIteratorPrototype%"){var O=J("%AsyncGenerator%");O&&x&&(ee=x(O.prototype))}return P[Q]=ee,ee},G={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Y=dt(),V=ic(),F=Y.call(N,Array.prototype.concat),oe=Y.call(A,Array.prototype.splice),E=Y.call(N,String.prototype.replace),T=Y.call(N,String.prototype.slice),D=Y.call(N,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Q){var ee=T(Q,0,1),L=T(Q,-1);if(ee==="%"&&L!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var O=[];return E(Q,K,function(re,ae,ce,ue){O[O.length]=ce?E(ue,te,"$1"):ae||re}),O},M=function(Q,ee){var L=Q,O;if(V(G,L)&&(O=G[L],L="%"+O[0]+"%"),V(P,L)){var re=P[L];if(re===j&&(re=z(L)),typeof re>"u"&&!ee)throw new s("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:O,name:L,value:re}}throw new a("intrinsic "+Q+" does not exist!")};return ln=function(Q,ee){if(typeof Q!="string"||Q.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new s('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Q)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Q),O=L.length>0?L[0]:"",re=M("%"+O+"%",ee),ae=re.name,ce=re.value,ue=!1,se=re.alias;se&&(O=se[0],oe(L,F([0,1],se)));for(var H=1,he=!0;H<L.length;H+=1){var ie=L[H],me=T(ie,0,1),U=T(ie,-1);if((me==='"'||me==="'"||me==="`"||U==='"'||U==="'"||U==="`")&&me!==U)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(ue=!0),O+="."+ie,ae="%"+O+"%",V(P,ae))ce=P[ae];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new s("base intrinsic for "+Q+" exists, but the property is not available.");return}if(R&&H+1>=L.length){var le=R(ce,ie);he=!!le,he&&"get"in le&&!("originalValue"in le.get)?ce=le.get:ce=ce[ie]}else he=V(ce,ie),ce=ce[ie];he&&!ue&&(P[ae]=ce)}}return ce},ln}var dn,Wi;function ft(){if(Wi)return dn;Wi=1;var e=ac(),t=io(),r=t([e("%String.prototype.indexOf%")]);return dn=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},dn}var fn,Gi;function uf(){if(Gi)return fn;Gi=1;var e=Ht()(),t=ft(),r=t("Object.prototype.toString"),n=function(s){return e&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:r(s)==="[object Arguments]"},o=function(s){return n(s)?!0:s!==null&&typeof s=="object"&&"length"in s&&typeof s.length=="number"&&s.length>=0&&r(s)!=="[object Array]"&&"callee"in s&&r(s.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,fn=i?n:o,fn}var pn,Vi;function lf(){if(Vi)return pn;Vi=1;var e=ft(),t=Ht()(),r=ic(),n=Je(),o;if(t){var i=e("RegExp.prototype.exec"),a={},s=function(){throw a},u={toString:s,valueOf:s};typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=s),o=function(d){if(!d||typeof d!="object")return!1;var f=n(d,"lastIndex"),h=f&&r(f,"value");if(!h)return!1;try{i(d,u)}catch(y){return y===a}}}else{var l=e("Object.prototype.toString"),p="[object RegExp]";o=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:l(d)===p}}return pn=o,pn}var mn,Ki;function df(){if(Ki)return mn;Ki=1;var e=ft(),t=lf(),r=e("RegExp.prototype.exec"),n=lt();return mn=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(s){return r(i,s)!==null}},mn}var hn,Xi;function ff(){if(Xi)return hn;Xi=1;var e=ft(),t=df(),r=t(/^\s*(?:function)?\*/),n=Ht()(),o=ao(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),s=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},u;return hn=function(p){if(typeof p!="function")return!1;if(r(a(p)))return!0;if(!n){var m=i(p);return m==="[object GeneratorFunction]"}if(!o)return!1;if(typeof u>"u"){var d=s();u=d?o(d):!1}return o(p)===u},hn}var gn,Qi;function pf(){if(Qi)return gn;Qi=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(R){R!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(_){try{var S=e.call(_);return o.test(S)}catch{return!1}},a=function(_){try{return i(_)?!1:(e.call(_),!0)}catch{return!1}},s=Object.prototype.toString,u="[object Object]",l="[object Function]",p="[object GeneratorFunction]",m="[object HTMLAllCollection]",d="[object HTML document.all class]",f="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var v=document.all;s.call(v)===s.call(document.all)&&(g=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var S=s.call(_);return(S===m||S===d||S===f||S===u)&&_("")==null}catch{}return!1})}return gn=t?function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{t(_,null,r)}catch(S){if(S!==n)return!1}return!i(_)&&a(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return a(_);if(i(_))return!1;var S=s.call(_);return S!==l&&S!==p&&!/^\[object HTML/.test(S)?!1:a(_)},gn}var yn,Yi;function mf(){if(Yi)return yn;Yi=1;var e=pf(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,l,p){for(var m=0,d=u.length;m<d;m++)r.call(u,m)&&(p==null?l(u[m],m,u):l.call(p,u[m],m,u))},o=function(u,l,p){for(var m=0,d=u.length;m<d;m++)p==null?l(u.charAt(m),m,u):l.call(p,u.charAt(m),m,u)},i=function(u,l,p){for(var m in u)r.call(u,m)&&(p==null?l(u[m],m,u):l.call(p,u[m],m,u))};function a(s){return t.call(s)==="[object Array]"}return yn=function(u,l,p){if(!e(l))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=p),a(u)?n(u,l,m):typeof u=="string"?o(u,l,m):i(u,l,m)},yn}var _n,Zi;function hf(){return Zi||(Zi=1,_n=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),_n}var vn,Ji;function gf(){if(Ji)return vn;Ji=1;var e=hf(),t=typeof globalThis>"u"?Es:globalThis;return vn=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},vn}var bn={exports:{}},xn,ea;function yf(){if(ea)return xn;ea=1;var e=zt(),t=tc(),r=lt(),n=Je();return xn=function(i,a,s){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,m=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,a);if(e)e(i,a,{configurable:p===null&&d?d.configurable:!p,enumerable:u===null&&d?d.enumerable:!u,value:s,writable:l===null&&d?d.writable:!l});else if(m||!u&&!l&&!p)i[a]=s;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},xn}var Cn,ta;function _f(){if(ta)return Cn;ta=1;var e=zt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Cn=t,Cn}var Sn,ra;function vf(){if(ra)return Sn;ra=1;var e=ac(),t=yf(),r=_f()(),n=Je(),o=lt(),i=e("%Math.floor%");return Sn=function(s,u){if(typeof s!="function")throw new o("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||i(u)!==u)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],p=!0,m=!0;if("length"in s&&n){var d=n(s,"length");d&&!d.configurable&&(p=!1),d&&!d.writable&&(m=!1)}return(p||m||!l)&&(r?t(s,"length",u,!0,!0):t(s,"length",u)),s},Sn}var An,na;function bf(){if(na)return An;na=1;var e=dt(),t=oo(),r=oc();return An=function(){return r(e,t,arguments)},An}var oa;function xf(){return oa||(oa=1,function(e){var t=vf(),r=zt(),n=io(),o=bf();e.exports=function(a){var s=n(arguments),u=a.length-(arguments.length-1);return t(s,1+(u>0?u:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(bn)),bn.exports}var Rn,ia;function sc(){if(ia)return Rn;ia=1;var e=mf(),t=gf(),r=xf(),n=ft(),o=Je(),i=ao(),a=n("Object.prototype.toString"),s=Ht()(),u=typeof globalThis>"u"?Es:globalThis,l=t(),p=n("String.prototype.slice"),m=n("Array.prototype.indexOf",!0)||function(g,v){for(var R=0;R<g.length;R+=1)if(g[R]===v)return R;return-1},d={__proto__:null};s&&o&&i?e(l,function(y){var g=new u[y];if(Symbol.toStringTag in g&&i){var v=i(g),R=o(v,Symbol.toStringTag);if(!R&&v){var _=i(v);R=o(_,Symbol.toStringTag)}d["$"+y]=r(R.get)}}):e(l,function(y){var g=new u[y],v=g.slice||g.set;v&&(d["$"+y]=r(v))});var f=function(g){var v=!1;return e(d,function(R,_){if(!v)try{"$"+R(g)===_&&(v=p(_,1))}catch{}}),v},h=function(g){var v=!1;return e(d,function(R,_){if(!v)try{R(g),v=p(_,1)}catch{}}),v};return Rn=function(g){if(!g||typeof g!="object")return!1;if(!s){var v=p(a(g),8,-1);return m(l,v)>-1?v:v!=="Object"?!1:h(g)}return o?f(g):null},Rn}var En,aa;function Cf(){if(aa)return En;aa=1;var e=sc();return En=function(r){return!!e(r)},En}var sa;function Sf(){return sa||(sa=1,function(e){var t=uf(),r=ff(),n=sc(),o=Cf();function i(H){return H.call.bind(H)}var a=typeof BigInt<"u",s=typeof Symbol<"u",u=i(Object.prototype.toString),l=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),m=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(s)var f=i(Symbol.prototype.valueOf);function h(H,he){if(typeof H!="object")return!1;try{return he(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function y(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=y;function g(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):o(H)||T(H)}e.isArrayBufferView=g;function v(H){return n(H)==="Uint8Array"}e.isUint8Array=v;function R(H){return n(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=R;function _(H){return n(H)==="Uint16Array"}e.isUint16Array=_;function S(H){return n(H)==="Uint32Array"}e.isUint32Array=S;function C(H){return n(H)==="Int8Array"}e.isInt8Array=C;function w(H){return n(H)==="Int16Array"}e.isInt16Array=w;function x(H){return n(H)==="Int32Array"}e.isInt32Array=x;function I(H){return n(H)==="Float32Array"}e.isFloat32Array=I;function $(H){return n(H)==="Float64Array"}e.isFloat64Array=$;function A(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=A;function N(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=N;function j(H){return u(H)==="[object Map]"}j.working=typeof Map<"u"&&j(new Map);function k(H){return typeof Map>"u"?!1:j.working?j(H):H instanceof Map}e.isMap=k;function P(H){return u(H)==="[object Set]"}P.working=typeof Set<"u"&&P(new Set);function q(H){return typeof Set>"u"?!1:P.working?P(H):H instanceof Set}e.isSet=q;function z(H){return u(H)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function G(H){return typeof WeakMap>"u"?!1:z.working?z(H):H instanceof WeakMap}e.isWeakMap=G;function Y(H){return u(H)==="[object WeakSet]"}Y.working=typeof WeakSet<"u"&&Y(new WeakSet);function V(H){return Y(H)}e.isWeakSet=V;function F(H){return u(H)==="[object ArrayBuffer]"}F.working=typeof ArrayBuffer<"u"&&F(new ArrayBuffer);function oe(H){return typeof ArrayBuffer>"u"?!1:F.working?F(H):H instanceof ArrayBuffer}e.isArrayBuffer=oe;function E(H){return u(H)==="[object DataView]"}E.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&E(new DataView(new ArrayBuffer(1),0,1));function T(H){return typeof DataView>"u"?!1:E.working?E(H):H instanceof DataView}e.isDataView=T;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function K(H){return u(H)==="[object SharedArrayBuffer]"}function te(H){return typeof D>"u"?!1:(typeof K.working>"u"&&(K.working=K(new D)),K.working?K(H):H instanceof D)}e.isSharedArrayBuffer=te;function Z(H){return u(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function M(H){return u(H)==="[object Map Iterator]"}e.isMapIterator=M;function J(H){return u(H)==="[object Set Iterator]"}e.isSetIterator=J;function Q(H){return u(H)==="[object Generator]"}e.isGeneratorObject=Q;function ee(H){return u(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function L(H){return h(H,l)}e.isNumberObject=L;function O(H){return h(H,p)}e.isStringObject=O;function re(H){return h(H,m)}e.isBooleanObject=re;function ae(H){return a&&h(H,d)}e.isBigIntObject=ae;function ce(H){return s&&h(H,f)}e.isSymbolObject=ce;function ue(H){return L(H)||O(H)||re(H)||ae(H)||ce(H)}e.isBoxedPrimitive=ue;function se(H){return typeof Uint8Array<"u"&&(oe(H)||te(H))}e.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(jr)),jr}var wn,ca;function Af(){return ca||(ca=1,wn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),wn}var Pt={exports:{}},ua;function Rf(){return ua||(ua=1,typeof Object.create=="function"?Pt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Pt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Pt.exports}var la;function Ef(){return la||(la=1,function(e){var t=Object.getOwnPropertyDescriptors||function(T){for(var D=Object.keys(T),K={},te=0;te<D.length;te++)K[D[te]]=Object.getOwnPropertyDescriptor(T,D[te]);return K},r=/%[sdj%]/g;e.format=function(E){if(!C(E)){for(var T=[],D=0;D<arguments.length;D++)T.push(a(arguments[D]));return T.join(" ")}for(var D=1,K=arguments,te=K.length,Z=String(E).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(K[D++]);case"%d":return Number(K[D++]);case"%j":try{return JSON.stringify(K[D++])}catch{return"[Circular]"}default:return J}}),M=K[D];D<te;M=K[++D])R(M)||!$(M)?Z+=" "+M:Z+=" "+a(M);return Z},e.deprecate=function(E,T){if(typeof process<"u"&&process.noDeprecation===!0)return E;if(typeof process>"u")return function(){return e.deprecate(E,T).apply(this,arguments)};var D=!1;function K(){if(!D){if(process.throwDeprecation)throw new Error(T);process.traceDeprecation?console.trace(T):console.error(T),D=!0}return E.apply(this,arguments)}return K};var n={},o=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(E){if(E=E.toUpperCase(),!n[E])if(o.test(E)){var T=process.pid;n[E]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",E,T,D)}}else n[E]=function(){};return n[E]};function a(E,T){var D={seen:[],stylize:u};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),v(T)?D.showHidden=T:T&&e._extend(D,T),x(D.showHidden)&&(D.showHidden=!1),x(D.depth)&&(D.depth=2),x(D.colors)&&(D.colors=!1),x(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=s),p(D,E,D.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(E,T){var D=a.styles[T];return D?"\x1B["+a.colors[D][0]+"m"+E+"\x1B["+a.colors[D][1]+"m":E}function u(E,T){return E}function l(E){var T={};return E.forEach(function(D,K){T[D]=!0}),T}function p(E,T,D){if(E.customInspect&&T&&j(T.inspect)&&T.inspect!==e.inspect&&!(T.constructor&&T.constructor.prototype===T)){var K=T.inspect(D,E);return C(K)||(K=p(E,K,D)),K}var te=m(E,T);if(te)return te;var Z=Object.keys(T),M=l(Z);if(E.showHidden&&(Z=Object.getOwnPropertyNames(T)),N(T)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(T);if(Z.length===0){if(j(T)){var J=T.name?": "+T.name:"";return E.stylize("[Function"+J+"]","special")}if(I(T))return E.stylize(RegExp.prototype.toString.call(T),"regexp");if(A(T))return E.stylize(Date.prototype.toString.call(T),"date");if(N(T))return d(T)}var Q="",ee=!1,L=["{","}"];if(g(T)&&(ee=!0,L=["[","]"]),j(T)){var O=T.name?": "+T.name:"";Q=" [Function"+O+"]"}if(I(T)&&(Q=" "+RegExp.prototype.toString.call(T)),A(T)&&(Q=" "+Date.prototype.toUTCString.call(T)),N(T)&&(Q=" "+d(T)),Z.length===0&&(!ee||T.length==0))return L[0]+Q+L[1];if(D<0)return I(T)?E.stylize(RegExp.prototype.toString.call(T),"regexp"):E.stylize("[Object]","special");E.seen.push(T);var re;return ee?re=f(E,T,D,M,Z):re=Z.map(function(ae){return h(E,T,D,M,ae,ee)}),E.seen.pop(),y(re,Q,L)}function m(E,T){if(x(T))return E.stylize("undefined","undefined");if(C(T)){var D="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(D,"string")}if(S(T))return E.stylize(""+T,"number");if(v(T))return E.stylize(""+T,"boolean");if(R(T))return E.stylize("null","null")}function d(E){return"["+Error.prototype.toString.call(E)+"]"}function f(E,T,D,K,te){for(var Z=[],M=0,J=T.length;M<J;++M)Y(T,String(M))?Z.push(h(E,T,D,K,String(M),!0)):Z.push("");return te.forEach(function(Q){Q.match(/^\d+$/)||Z.push(h(E,T,D,K,Q,!0))}),Z}function h(E,T,D,K,te,Z){var M,J,Q;if(Q=Object.getOwnPropertyDescriptor(T,te)||{value:T[te]},Q.get?Q.set?J=E.stylize("[Getter/Setter]","special"):J=E.stylize("[Getter]","special"):Q.set&&(J=E.stylize("[Setter]","special")),Y(K,te)||(M="["+te+"]"),J||(E.seen.indexOf(Q.value)<0?(R(D)?J=p(E,Q.value,null):J=p(E,Q.value,D-1),J.indexOf(`
16
+ `)>-1&&(Z?J=J.split(`
17
+ `).map(function(ee){return" "+ee}).join(`
18
+ `).slice(2):J=`
19
+ `+J.split(`
20
+ `).map(function(ee){return" "+ee}).join(`
21
+ `))):J=E.stylize("[Circular]","special")),x(M)){if(Z&&te.match(/^\d+$/))return J;M=JSON.stringify(""+te),M.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(M=M.slice(1,-1),M=E.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=E.stylize(M,"string"))}return M+": "+J}function y(E,T,D){var K=E.reduce(function(te,Z){return Z.indexOf(`
22
+ `)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return K>60?D[0]+(T===""?"":T+`
23
+ `)+" "+E.join(`,
24
+ `)+" "+D[1]:D[0]+T+" "+E.join(", ")+" "+D[1]}e.types=Sf();function g(E){return Array.isArray(E)}e.isArray=g;function v(E){return typeof E=="boolean"}e.isBoolean=v;function R(E){return E===null}e.isNull=R;function _(E){return E==null}e.isNullOrUndefined=_;function S(E){return typeof E=="number"}e.isNumber=S;function C(E){return typeof E=="string"}e.isString=C;function w(E){return typeof E=="symbol"}e.isSymbol=w;function x(E){return E===void 0}e.isUndefined=x;function I(E){return $(E)&&P(E)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function $(E){return typeof E=="object"&&E!==null}e.isObject=$;function A(E){return $(E)&&P(E)==="[object Date]"}e.isDate=A,e.types.isDate=A;function N(E){return $(E)&&(P(E)==="[object Error]"||E instanceof Error)}e.isError=N,e.types.isNativeError=N;function j(E){return typeof E=="function"}e.isFunction=j;function k(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||typeof E=="symbol"||typeof E>"u"}e.isPrimitive=k,e.isBuffer=Af();function P(E){return Object.prototype.toString.call(E)}function q(E){return E<10?"0"+E.toString(10):E.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function G(){var E=new Date,T=[q(E.getHours()),q(E.getMinutes()),q(E.getSeconds())].join(":");return[E.getDate(),z[E.getMonth()],T].join(" ")}e.log=function(){console.log("%s - %s",G(),e.format.apply(e,arguments))},e.inherits=Rf(),e._extend=function(E,T){if(!T||!$(T))return E;for(var D=Object.keys(T),K=D.length;K--;)E[D[K]]=T[D[K]];return E};function Y(E,T){return Object.prototype.hasOwnProperty.call(E,T)}var V=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(V&&T[V]){var D=T[V];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,V,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var K,te,Z=new Promise(function(Q,ee){K=Q,te=ee}),M=[],J=0;J<arguments.length;J++)M.push(arguments[J]);M.push(function(Q,ee){Q?te(Q):K(ee)});try{T.apply(this,M)}catch(Q){te(Q)}return Z}return Object.setPrototypeOf(D,Object.getPrototypeOf(T)),V&&Object.defineProperty(D,V,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(T))},e.promisify.custom=V;function F(E,T){if(!E){var D=new Error("Promise was rejected with a falsy value");D.reason=E,E=D}return T(E)}function oe(E){if(typeof E!="function")throw new TypeError('The "original" argument must be of type Function');function T(){for(var D=[],K=0;K<arguments.length;K++)D.push(arguments[K]);var te=D.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,M=function(){return te.apply(Z,arguments)};E.apply(this,D).then(function(J){process.nextTick(M.bind(null,null,J))},function(J){process.nextTick(F.bind(null,J,M))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(E)),Object.defineProperties(T,t(E)),T}e.callbackify=oe}(wr)),wr}var da;function wf(){return da||(da=1,(()=>{var e={333:(o,i,a)=>{const s=a(137),u=a(179),l=a(13),p=a(719),m=(d,f={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=m.create(y,f);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(m.create(d,f));return f&&f.expand===!0&&f.nodupes===!0&&(h=[...new Set(h)]),h};m.parse=(d,f={})=>p(d,f),m.stringify=(d,f={})=>s(typeof d=="string"?m.parse(d,f):d,f),m.compile=(d,f={})=>(typeof d=="string"&&(d=m.parse(d,f)),u(d,f)),m.expand=(d,f={})=>{typeof d=="string"&&(d=m.parse(d,f));let h=l(d,f);return f.noempty===!0&&(h=h.filter(Boolean)),f.nodupes===!0&&(h=[...new Set(h)]),h},m.create=(d,f={})=>d===""||d.length<3?[d]:f.expand!==!0?m.compile(d,f):m.expand(d,f),o.exports=m},179:(o,i,a)=>{const s=a(783),u=a(617),l=(p,m={})=>{let d=(f,h={})=>{let y=u.isInvalidBrace(h),g=f.invalid===!0&&m.escapeInvalid===!0,v=y===!0||g===!0,R=m.escapeInvalid===!0?"\\":"",_="";if(f.isOpen===!0||f.isClose===!0)return R+f.value;if(f.type==="open")return v?R+f.value:"(";if(f.type==="close")return v?R+f.value:")";if(f.type==="comma")return f.prev.type==="comma"?"":v?f.value:"|";if(f.value)return f.value;if(f.nodes&&f.ranges>0){let S=u.reduce(f.nodes),C=s(...S,{...m,wrap:!1,toRegex:!0});if(C.length!==0)return S.length>1&&C.length>1?`(${C})`:C}if(f.nodes)for(let S of f.nodes)_+=d(S,f);return _};return d(p)};o.exports=l},457:o=>{o.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
25
+ `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},13:(o,i,a)=>{const s=a(783),u=a(137),l=a(617),p=(d="",f="",h=!1)=>{let y=[];if(d=[].concat(d),f=[].concat(f),!f.length)return d;if(!d.length)return h?l.flatten(f).map(g=>`{${g}}`):f;for(let g of d)if(Array.isArray(g))for(let v of g)y.push(p(v,f,h));else for(let v of f)h===!0&&typeof v=="string"&&(v=`{${v}}`),y.push(Array.isArray(v)?p(g,v,h):g+v);return l.flatten(y)},m=(d,f={})=>{let h=f.rangeLimit===void 0?1e3:f.rangeLimit,y=(g,v={})=>{g.queue=[];let R=v,_=v.queue;for(;R.type!=="brace"&&R.type!=="root"&&R.parent;)R=R.parent,_=R.queue;if(g.invalid||g.dollar){_.push(p(_.pop(),u(g,f)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(p(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let x=l.reduce(g.nodes);if(l.exceedsLimit(...x,f.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=s(...x,f);I.length===0&&(I=u(g,f)),_.push(p(_.pop(),I)),g.nodes=[];return}let S=l.encloseBrace(g),C=g.queue,w=g;for(;w.type!=="brace"&&w.type!=="root"&&w.parent;)w=w.parent,C=w.queue;for(let x=0;x<g.nodes.length;x++){let I=g.nodes[x];if(I.type==="comma"&&g.type==="brace"){x===1&&C.push(""),C.push("");continue}if(I.type==="close"){_.push(p(_.pop(),C,S));continue}if(I.value&&I.type!=="open"){C.push(p(C.pop(),I.value));continue}I.nodes&&y(I,g)}return C};return l.flatten(y(d))};o.exports=m},719:(o,i,a)=>{const s=a(137),{MAX_LENGTH:u,CHAR_BACKSLASH:l,CHAR_BACKTICK:p,CHAR_COMMA:m,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:f,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_RIGHT_SQUARE_BRACKET:R,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:S,CHAR_NO_BREAK_SPACE:C,CHAR_ZERO_WIDTH_NOBREAK_SPACE:w}=a(457),x=(I,$={})=>{if(typeof I!="string")throw new TypeError("Expected a string");let A=$||{},N=typeof A.maxLength=="number"?Math.min(u,A.maxLength):u;if(I.length>N)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${N})`);let j={type:"root",input:I,nodes:[]},k=[j],P=j,q=j,z=0,G=I.length,Y=0,V=0,F;const oe=()=>I[Y++],E=T=>{if(T.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&T.type==="text"){q.value+=T.value;return}return P.nodes.push(T),T.parent=P,T.prev=q,q=T,T};for(E({type:"bos"});Y<G;)if(P=k[k.length-1],F=oe(),!(F===w||F===C)){if(F===l){E({type:"text",value:($.keepEscaping?F:"")+oe()});continue}if(F===R){E({type:"text",value:"\\"+F});continue}if(F===v){z++;let T;for(;Y<G&&(T=oe());){if(F+=T,T===v){z++;continue}if(T===l){F+=oe();continue}if(T===R&&(z--,z===0))break}E({type:"text",value:F});continue}if(F===f){P=E({type:"paren",nodes:[]}),k.push(P),E({type:"text",value:F});continue}if(F===h){if(P.type!=="paren"){E({type:"text",value:F});continue}P=k.pop(),E({type:"text",value:F}),P=k[k.length-1];continue}if(F===_||F===S||F===p){let T=F,D;for($.keepQuotes!==!0&&(F="");Y<G&&(D=oe());){if(D===l){F+=D+oe();continue}if(D===T){$.keepQuotes===!0&&(F+=D);break}F+=D}E({type:"text",value:F});continue}if(F===y){V++;let D={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||P.dollar===!0,depth:V,commas:0,ranges:0,nodes:[]};P=E(D),k.push(P),E({type:"open",value:F});continue}if(F===g){if(P.type!=="brace"){E({type:"text",value:F});continue}let T="close";P=k.pop(),P.close=!0,E({type:T,value:F}),V--,P=k[k.length-1];continue}if(F===m&&V>0){if(P.ranges>0){P.ranges=0;let T=P.nodes.shift();P.nodes=[T,{type:"text",value:s(P)}]}E({type:"comma",value:F}),P.commas++;continue}if(F===d&&V>0&&P.commas===0){let T=P.nodes;if(V===0||T.length===0){E({type:"text",value:F});continue}if(q.type==="dot"){if(P.range=[],q.value+=F,q.type="range",P.nodes.length!==3&&P.nodes.length!==5){P.invalid=!0,P.ranges=0,q.type="text";continue}P.ranges++,P.args=[];continue}if(q.type==="range"){T.pop();let D=T[T.length-1];D.value+=q.value+F,q=D,P.ranges--;continue}E({type:"dot",value:F});continue}E({type:"text",value:F})}do if(P=k.pop(),P.type!=="root"){P.nodes.forEach(K=>{K.nodes||(K.type==="open"&&(K.isOpen=!0),K.type==="close"&&(K.isClose=!0),K.nodes||(K.type="text"),K.invalid=!0)});let T=k[k.length-1],D=T.nodes.indexOf(P);T.nodes.splice(D,1,...P.nodes)}while(k.length>0);return E({type:"eos"}),j};o.exports=x},137:(o,i,a)=>{const s=a(617);o.exports=(u,l={})=>{let p=(m,d={})=>{let f=l.escapeInvalid&&s.isInvalidBrace(d),h=m.invalid===!0&&l.escapeInvalid===!0,y="";if(m.value)return(f||h)&&s.isOpenOrClose(m)?"\\"+m.value:m.value;if(m.value)return m.value;if(m.nodes)for(let g of m.nodes)y+=p(g);return y};return p(u)}},617:(o,i)=>{i.isInteger=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,i.find=(a,s)=>a.nodes.find(u=>u.type===s),i.exceedsLimit=(a,s,u=1,l)=>l===!1||!i.isInteger(a)||!i.isInteger(s)?!1:(Number(s)-Number(a))/Number(u)>=l,i.escapeNode=(a,s=0,u)=>{let l=a.nodes[s];l&&(u&&l.type===u||l.type==="open"||l.type==="close")&&l.escaped!==!0&&(l.value="\\"+l.value,l.escaped=!0)},i.encloseBrace=a=>a.type!=="brace"||a.commas>>0+a.ranges>>0?!1:(a.invalid=!0,!0),i.isInvalidBrace=a=>a.type!=="brace"?!1:a.invalid===!0||a.dollar?!0:!(a.commas>>0+a.ranges>>0)||a.open!==!0||a.close!==!0?(a.invalid=!0,!0):!1,i.isOpenOrClose=a=>a.type==="open"||a.type==="close"?!0:a.open===!0||a.close===!0,i.reduce=a=>a.reduce((s,u)=>(u.type==="text"&&s.push(u.value),u.type==="range"&&(u.type="text"),s),[]),i.flatten=(...a)=>{const s=[],u=l=>{for(let p=0;p<l.length;p++){let m=l[p];Array.isArray(m)?u(m):m!==void 0&&s.push(m)}return s};return u(a),s}},783:(o,i,a)=>{/*!
26
+ * fill-range <https://github.com/jonschlinkert/fill-range>
27
+ *
28
+ * Copyright (c) 2014-present, Jon Schlinkert.
29
+ * Licensed under the MIT License.
30
+ */const s=a(837),u=a(492),l=A=>A!==null&&typeof A=="object"&&!Array.isArray(A),p=A=>N=>A===!0?Number(N):String(N),m=A=>typeof A=="number"||typeof A=="string"&&A!=="",d=A=>Number.isInteger(+A),f=A=>{let N=`${A}`,j=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++j]==="0";);return j>0},h=(A,N,j)=>typeof A=="string"||typeof N=="string"?!0:j.stringify===!0,y=(A,N,j)=>{if(N>0){let k=A[0]==="-"?"-":"";k&&(A=A.slice(1)),A=k+A.padStart(k?N-1:N,"0")}return j===!1?String(A):A},g=(A,N)=>{let j=A[0]==="-"?"-":"";for(j&&(A=A.slice(1),N--);A.length<N;)A="0"+A;return j?"-"+A:A},v=(A,N)=>{A.negatives.sort((z,G)=>z<G?-1:z>G?1:0),A.positives.sort((z,G)=>z<G?-1:z>G?1:0);let j=N.capture?"":"?:",k="",P="",q;return A.positives.length&&(k=A.positives.join("|")),A.negatives.length&&(P=`-(${j}${A.negatives.join("|")})`),k&&P?q=`${k}|${P}`:q=k||P,N.wrap?`(${j}${q})`:q},R=(A,N,j,k)=>{if(j)return u(A,N,{wrap:!1,...k});let P=String.fromCharCode(A);if(A===N)return P;let q=String.fromCharCode(N);return`[${P}-${q}]`},_=(A,N,j)=>{if(Array.isArray(A)){let k=j.wrap===!0,P=j.capture?"":"?:";return k?`(${P}${A.join("|")})`:A.join("|")}return u(A,N,j)},S=(...A)=>new RangeError("Invalid range arguments: "+s.inspect(...A)),C=(A,N,j)=>{if(j.strictRanges===!0)throw S([A,N]);return[]},w=(A,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${A}" to be a number`);return[]},x=(A,N,j=1,k={})=>{let P=Number(A),q=Number(N);if(!Number.isInteger(P)||!Number.isInteger(q)){if(k.strictRanges===!0)throw S([A,N]);return[]}P===0&&(P=0),q===0&&(q=0);let z=P>q,G=String(A),Y=String(N),V=String(j);j=Math.max(Math.abs(j),1);let F=f(G)||f(Y)||f(V),oe=F?Math.max(G.length,Y.length,V.length):0,E=F===!1&&h(A,N,k)===!1,T=k.transform||p(E);if(k.toRegex&&j===1)return R(g(A,oe),g(N,oe),!0,k);let D={negatives:[],positives:[]},K=M=>D[M<0?"negatives":"positives"].push(Math.abs(M)),te=[],Z=0;for(;z?P>=q:P<=q;)k.toRegex===!0&&j>1?K(P):te.push(y(T(P,Z),oe,E)),P=z?P-j:P+j,Z++;return k.toRegex===!0?j>1?v(D,k):_(te,null,{wrap:!1,...k}):te},I=(A,N,j=1,k={})=>{if(!d(A)&&A.length>1||!d(N)&&N.length>1)return C(A,N,k);let P=k.transform||(E=>String.fromCharCode(E)),q=`${A}`.charCodeAt(0),z=`${N}`.charCodeAt(0),G=q>z,Y=Math.min(q,z),V=Math.max(q,z);if(k.toRegex&&j===1)return R(Y,V,!1,k);let F=[],oe=0;for(;G?q>=z:q<=z;)F.push(P(q,oe)),q=G?q-j:q+j,oe++;return k.toRegex===!0?_(F,null,{wrap:!1,options:k}):F},$=(A,N,j,k={})=>{if(N==null&&m(A))return[A];if(!m(A)||!m(N))return C(A,N,k);if(typeof j=="function")return $(A,N,1,{transform:j});if(l(j))return $(A,N,0,j);let P={...k};return P.capture===!0&&(P.wrap=!0),j=j||P.step||1,d(j)?d(A)&&d(N)?x(A,N,j,P):I(A,N,Math.max(Math.abs(j),1),P):j!=null&&!l(j)?w(j,P):$(A,N,1,j)};o.exports=$},357:o=>{/*!
31
+ * is-number <https://github.com/jonschlinkert/is-number>
32
+ *
33
+ * Copyright (c) 2014-present, Jon Schlinkert.
34
+ * Released under the MIT License.
35
+ */o.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(o,i,a)=>{const s=a(837),u=a(333),l=a(251),p=a(513),m=f=>f===""||f==="./",d=(f,h,y)=>{h=[].concat(h),f=[].concat(f);let g=new Set,v=new Set,R=new Set,_=0,S=x=>{R.add(x.output),y&&y.onResult&&y.onResult(x)};for(let x=0;x<h.length;x++){let I=l(String(h[x]),{...y,onResult:S},!0),$=I.state.negated||I.state.negatedExtglob;$&&_++;for(let A of f){let N=I(A,!0);($?!N.isMatch:N.isMatch)&&($?g.add(N.output):(g.delete(N.output),v.add(N.output)))}}let w=(_===h.length?[...R]:[...v]).filter(x=>!g.has(x));if(y&&w.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?h.map(x=>x.replace(/\\/g,"")):h}return w};d.match=d,d.matcher=(f,h)=>l(f,h),d.isMatch=(f,h,y)=>l(h,y)(f),d.any=d.isMatch,d.not=(f,h,y={})=>{h=[].concat(h).map(String);let g=new Set,v=[],_=d(f,h,{...y,onResult:S=>{y.onResult&&y.onResult(S),v.push(S.output)}});for(let S of v)_.includes(S)||g.add(S);return[...g]},d.contains=(f,h,y)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${s.inspect(f)}"`);if(Array.isArray(h))return h.some(g=>d.contains(f,g,y));if(typeof h=="string"){if(m(f)||m(h))return!1;if(f.includes(h)||f.startsWith("./")&&f.slice(2).includes(h))return!0}return d.isMatch(f,h,{...y,contains:!0})},d.matchKeys=(f,h,y)=>{if(!p.isObject(f))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(f),h,y),v={};for(let R of g)v[R]=f[R];return v},d.some=(f,h,y)=>{let g=[].concat(f);for(let v of[].concat(h)){let R=l(String(v),y);if(g.some(_=>R(_)))return!0}return!1},d.every=(f,h,y)=>{let g=[].concat(f);for(let v of[].concat(h)){let R=l(String(v),y);if(!g.every(_=>R(_)))return!1}return!0},d.all=(f,h,y)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${s.inspect(f)}"`);return[].concat(h).every(g=>l(g,y)(f))},d.capture=(f,h,y)=>{let g=p.isWindows(y),R=l.makeRe(String(f),{...y,capture:!0}).exec(g?p.toPosixSlashes(h):h);if(R)return R.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...f)=>l.makeRe(...f),d.scan=(...f)=>l.scan(...f),d.parse=(f,h)=>{let y=[];for(let g of[].concat(f||[]))for(let v of u(String(g),h))y.push(l.parse(v,h));return y},d.braces=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(f)?[f]:u(f,h)},d.braceExpand=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");return d.braces(f,{...h,expand:!0})},o.exports=d},251:(o,i,a)=>{o.exports=a(683)},356:(o,i,a)=>{const s=a(17),u="\\\\/",l=`[^${u}]`,p="\\.",m="\\+",d="\\?",f="\\/",h="(?=.)",y="[^/]",g=`(?:${f}|$)`,v=`(?:^|${f})`,R=`${p}{1,2}${g}`,_=`(?!${p})`,S=`(?!${v}${R})`,C=`(?!${p}{0,1}${g})`,w=`(?!${R})`,x=`[^.${f}]`,I=`${y}*?`,$={DOT_LITERAL:p,PLUS_LITERAL:m,QMARK_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:R,NO_DOT:_,NO_DOTS:S,NO_DOT_SLASH:C,NO_DOTS_SLASH:w,QMARK_NO_DOT:x,STAR:I,START_ANCHOR:v},A={...$,SLASH_LITERAL:`[${u}]`,QMARK:l,STAR:`${l}*?`,DOTS_SLASH:`${p}{1,2}(?:[${u}]|$)`,NO_DOT:`(?!${p})`,NO_DOTS:`(?!(?:^|[${u}])${p}{1,2}(?:[${u}]|$))`,NO_DOT_SLASH:`(?!${p}{0,1}(?:[${u}]|$))`,NO_DOTS_SLASH:`(?!${p}{1,2}(?:[${u}]|$))`,QMARK_NO_DOT:`[^.${u}]`,START_ANCHOR:`(?:^|[${u}])`,END_ANCHOR:`(?:[${u}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};o.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:s.sep,extglobChars(j){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${j.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(j){return j===!0?A:$}}},754:(o,i,a)=>{const s=a(356),u=a(513),{MAX_LENGTH:l,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:m,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:f}=s,h=(v,R)=>{if(typeof R.expandRange=="function")return R.expandRange(...v,R);v.sort();const _=`[${v.join("-")}]`;try{new RegExp(_)}catch{return v.map(C=>u.escapeRegex(C)).join("..")}return _},y=(v,R)=>`Missing ${v}: "${R}" - use "\\\\${R}" to match literal characters`,g=(v,R)=>{if(typeof v!="string")throw new TypeError("Expected a string");v=f[v]||v;const _={...R},S=typeof _.maxLength=="number"?Math.min(l,_.maxLength):l;let C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);const w={type:"bos",value:"",output:_.prepend||""},x=[w],I=_.capture?"":"?:",$=u.isWindows(R),A=s.globChars($),N=s.extglobChars(A),{DOT_LITERAL:j,PLUS_LITERAL:k,SLASH_LITERAL:P,ONE_CHAR:q,DOTS_SLASH:z,NO_DOT:G,NO_DOT_SLASH:Y,NO_DOTS_SLASH:V,QMARK:F,QMARK_NO_DOT:oe,STAR:E,START_ANCHOR:T}=A,D=X=>`(${I}(?:(?!${T}${X.dot?z:j}).)*?)`,K=_.dot?"":G,te=_.dot?F:oe;let Z=_.bash===!0?D(_):E;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const M={input:v,index:-1,start:0,dot:_.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};v=u.removePrefix(v,M),C=v.length;const J=[],Q=[],ee=[];let L=w,O;const re=()=>M.index===C-1,ae=M.peek=(X=1)=>v[M.index+X],ce=M.advance=()=>v[++M.index],ue=()=>v.slice(M.index+1),se=(X="",ne=0)=>{M.consumed+=X,M.index+=ne},H=X=>{M.output+=X.output!=null?X.output:X.value,se(X.value)},he=()=>{let X=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),M.start++,X++;return X%2===0?!1:(M.negated=!0,M.start++,!0)},ie=X=>{M[X]++,ee.push(X)},me=X=>{M[X]--,ee.pop()},U=X=>{if(L.type==="globstar"){const ne=M.braces>0&&(X.type==="comma"||X.type==="brace"),W=X.extglob===!0||J.length&&(X.type==="pipe"||X.type==="paren");X.type!=="slash"&&X.type!=="paren"&&!ne&&!W&&(M.output=M.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,M.output+=L.output)}if(J.length&&X.type!=="paren"&&!N[X.value]&&(J[J.length-1].inner+=X.value),(X.value||X.output)&&H(X),L&&L.type==="text"&&X.type==="text"){L.value+=X.value,L.output=(L.output||"")+X.value;return}X.prev=L,x.push(X),L=X},le=(X,ne)=>{const W={...N[ne],conditions:1,inner:""};W.prev=L,W.parens=M.parens,W.output=M.output;const de=(_.capture?"(":"")+W.open;ie("parens"),U({type:X,value:ne,output:M.output?"":q}),U({type:"paren",extglob:!0,value:ce(),output:de}),J.push(W)},Ce=X=>{let ne=X.close+(_.capture?")":"");if(X.type==="negate"){let W=Z;X.inner&&X.inner.length>1&&X.inner.includes("/")&&(W=D(_)),(W!==Z||re()||/^\)+$/.test(ue()))&&(ne=X.close=`)$))${W}`),X.prev.type==="bos"&&(M.negatedExtglob=!0)}U({type:"paren",extglob:!0,value:O,output:ne}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(v)){let X=!1,ne=v.replace(d,(W,de,ye,Ae,be,Ft)=>Ae==="\\"?(X=!0,W):Ae==="?"?de?de+Ae+(be?F.repeat(be.length):""):Ft===0?te+(be?F.repeat(be.length):""):F.repeat(ye.length):Ae==="."?j.repeat(ye.length):Ae==="*"?de?de+Ae+(be?Z:""):Z:de?W:`\\${W}`);return X===!0&&(_.unescape===!0?ne=ne.replace(/\\/g,""):ne=ne.replace(/\\+/g,W=>W.length%2===0?"\\\\":W?"\\":"")),ne===v&&_.contains===!0?(M.output=v,M):(M.output=u.wrapOutput(ne,M,R),M)}for(;!re();){if(O=ce(),O==="\0")continue;if(O==="\\"){const W=ae();if(W==="/"&&_.bash!==!0||W==="."||W===";")continue;if(!W){O+="\\",U({type:"text",value:O});continue}const de=/^\\+/.exec(ue());let ye=0;if(de&&de[0].length>2&&(ye=de[0].length,M.index+=ye,ye%2!==0&&(O+="\\")),_.unescape===!0?O=ce()||"":O+=ce()||"",M.brackets===0){U({type:"text",value:O});continue}}if(M.brackets>0&&(O!=="]"||L.value==="["||L.value==="[^")){if(_.posix!==!1&&O===":"){const W=L.value.slice(1);if(W.includes("[")&&(L.posix=!0,W.includes(":"))){const de=L.value.lastIndexOf("["),ye=L.value.slice(0,de),Ae=L.value.slice(de+2),be=p[Ae];if(be){L.value=ye+be,M.backtrack=!0,ce(),!w.output&&x.indexOf(L)===1&&(w.output=q);continue}}}(O==="["&&ae()!==":"||O==="-"&&ae()==="]")&&(O=`\\${O}`),O==="]"&&(L.value==="["||L.value==="[^")&&(O=`\\${O}`),_.posix===!0&&O==="!"&&L.value==="["&&(O="^"),L.value+=O,H({value:O});continue}if(M.quotes===1&&O!=='"'){O=u.escapeRegex(O),L.value+=O,H({value:O});continue}if(O==='"'){M.quotes=M.quotes===1?0:1,_.keepQuotes===!0&&U({type:"text",value:O});continue}if(O==="("){ie("parens"),U({type:"paren",value:O});continue}if(O===")"){if(M.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const W=J[J.length-1];if(W&&M.parens===W.parens+1){Ce(J.pop());continue}U({type:"paren",value:O,output:M.parens?")":"\\)"}),me("parens");continue}if(O==="["){if(_.nobracket===!0||!ue().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));O=`\\${O}`}else ie("brackets");U({type:"bracket",value:O});continue}if(O==="]"){if(_.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){U({type:"text",value:O,output:`\\${O}`});continue}if(M.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));U({type:"text",value:O,output:`\\${O}`});continue}me("brackets");const W=L.value.slice(1);if(L.posix!==!0&&W[0]==="^"&&!W.includes("/")&&(O=`/${O}`),L.value+=O,H({value:O}),_.literalBrackets===!1||u.hasRegexChars(W))continue;const de=u.escapeRegex(L.value);if(M.output=M.output.slice(0,-L.value.length),_.literalBrackets===!0){M.output+=de,L.value=de;continue}L.value=`(${I}${de}|${L.value})`,M.output+=L.value;continue}if(O==="{"&&_.nobrace!==!0){ie("braces");const W={type:"brace",value:O,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};Q.push(W),U(W);continue}if(O==="}"){const W=Q[Q.length-1];if(_.nobrace===!0||!W){U({type:"text",value:O,output:O});continue}let de=")";if(W.dots===!0){const ye=x.slice(),Ae=[];for(let be=ye.length-1;be>=0&&(x.pop(),ye[be].type!=="brace");be--)ye[be].type!=="dots"&&Ae.unshift(ye[be].value);de=h(Ae,_),M.backtrack=!0}if(W.comma!==!0&&W.dots!==!0){const ye=M.output.slice(0,W.outputIndex),Ae=M.tokens.slice(W.tokensIndex);W.value=W.output="\\{",O=de="\\}",M.output=ye;for(const be of Ae)M.output+=be.output||be.value}U({type:"brace",value:O,output:de}),me("braces"),Q.pop();continue}if(O==="|"){J.length>0&&J[J.length-1].conditions++,U({type:"text",value:O});continue}if(O===","){let W=O;const de=Q[Q.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,W="|"),U({type:"comma",value:O,output:W});continue}if(O==="/"){if(L.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",x.pop(),L=w;continue}U({type:"slash",value:O,output:P});continue}if(O==="."){if(M.braces>0&&L.type==="dot"){L.value==="."&&(L.output=j);const W=Q[Q.length-1];L.type="dots",L.output+=O,L.value+=O,W.dots=!0;continue}if(M.braces+M.parens===0&&L.type!=="bos"&&L.type!=="slash"){U({type:"text",value:O,output:j});continue}U({type:"dot",value:O,output:j});continue}if(O==="?"){if(!(L&&L.value==="(")&&_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){le("qmark",O);continue}if(L&&L.type==="paren"){const de=ae();let ye=O;if(de==="<"&&!u.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(L.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(ue()))&&(ye=`\\${O}`),U({type:"text",value:O,output:ye});continue}if(_.dot!==!0&&(L.type==="slash"||L.type==="bos")){U({type:"qmark",value:O,output:oe});continue}U({type:"qmark",value:O,output:F});continue}if(O==="!"){if(_.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){le("negate",O);continue}if(_.nonegate!==!0&&M.index===0){he();continue}}if(O==="+"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){le("plus",O);continue}if(L&&L.value==="("||_.regex===!1){U({type:"plus",value:O,output:k});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||M.parens>0){U({type:"plus",value:O});continue}U({type:"plus",value:k});continue}if(O==="@"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){U({type:"at",extglob:!0,value:O,output:""});continue}U({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);const W=m.exec(ue());W&&(O+=W[0],M.index+=W[0].length),U({type:"text",value:O});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=O,L.output=Z,M.backtrack=!0,M.globstar=!0,se(O);continue}let X=ue();if(_.noextglob!==!0&&/^\([^?]/.test(X)){le("star",O);continue}if(L.type==="star"){if(_.noglobstar===!0){se(O);continue}const W=L.prev,de=W.prev,ye=W.type==="slash"||W.type==="bos",Ae=de&&(de.type==="star"||de.type==="globstar");if(_.bash===!0&&(!ye||X[0]&&X[0]!=="/")){U({type:"star",value:O,output:""});continue}const be=M.braces>0&&(W.type==="comma"||W.type==="brace"),Ft=J.length&&(W.type==="pipe"||W.type==="paren");if(!ye&&W.type!=="paren"&&!be&&!Ft){U({type:"star",value:O,output:""});continue}for(;X.slice(0,3)==="/**";){const ht=v[M.index+4];if(ht&&ht!=="/")break;X=X.slice(3),se("/**",3)}if(W.type==="bos"&&re()){L.type="globstar",L.value+=O,L.output=D(_),M.output=L.output,M.globstar=!0,se(O);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&!Ae&&re()){M.output=M.output.slice(0,-(W.output+L.output).length),W.output=`(?:${W.output}`,L.type="globstar",L.output=D(_)+(_.strictSlashes?")":"|$)"),L.value+=O,M.globstar=!0,M.output+=W.output+L.output,se(O);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&X[0]==="/"){const ht=X[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(W.output+L.output).length),W.output=`(?:${W.output}`,L.type="globstar",L.output=`${D(_)}${P}|${P}${ht})`,L.value+=O,M.output+=W.output+L.output,M.globstar=!0,se(O+ce()),U({type:"slash",value:"/",output:""});continue}if(W.type==="bos"&&X[0]==="/"){L.type="globstar",L.value+=O,L.output=`(?:^|${P}|${D(_)}${P})`,M.output=L.output,M.globstar=!0,se(O+ce()),U({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-L.output.length),L.type="globstar",L.output=D(_),L.value+=O,M.output+=L.output,M.globstar=!0,se(O);continue}const ne={type:"star",value:O,output:Z};if(_.bash===!0){ne.output=".*?",(L.type==="bos"||L.type==="slash")&&(ne.output=K+ne.output),U(ne);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&_.regex===!0){ne.output=O,U(ne);continue}(M.index===M.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(M.output+=Y,L.output+=Y):_.dot===!0?(M.output+=V,L.output+=V):(M.output+=K,L.output+=K),ae()!=="*"&&(M.output+=q,L.output+=q)),U(ne)}for(;M.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M.output=u.escapeLast(M.output,"["),me("brackets")}for(;M.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));M.output=u.escapeLast(M.output,"("),me("parens")}for(;M.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));M.output=u.escapeLast(M.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&U({type:"maybe_slash",value:"",output:`${P}?`}),M.backtrack===!0){M.output="";for(const X of M.tokens)M.output+=X.output!=null?X.output:X.value,X.suffix&&(M.output+=X.suffix)}return M};g.fastpaths=(v,R)=>{const _={...R},S=typeof _.maxLength=="number"?Math.min(l,_.maxLength):l,C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);v=f[v]||v;const w=u.isWindows(R),{DOT_LITERAL:x,SLASH_LITERAL:I,ONE_CHAR:$,DOTS_SLASH:A,NO_DOT:N,NO_DOTS:j,NO_DOTS_SLASH:k,STAR:P,START_ANCHOR:q}=s.globChars(w),z=_.dot?j:N,G=_.dot?k:N,Y=_.capture?"":"?:",V={negated:!1,prefix:""};let F=_.bash===!0?".*?":P;_.capture&&(F=`(${F})`);const oe=K=>K.noglobstar===!0?F:`(${Y}(?:(?!${q}${K.dot?A:x}).)*?)`,E=K=>{switch(K){case"*":return`${z}${$}${F}`;case".*":return`${x}${$}${F}`;case"*.*":return`${z}${F}${x}${$}${F}`;case"*/*":return`${z}${F}${I}${$}${G}${F}`;case"**":return z+oe(_);case"**/*":return`(?:${z}${oe(_)}${I})?${G}${$}${F}`;case"**/*.*":return`(?:${z}${oe(_)}${I})?${G}${F}${x}${$}${F}`;case"**/.*":return`(?:${z}${oe(_)}${I})?${x}${$}${F}`;default:{const te=/^(.*?)\.(\w+)$/.exec(K);if(!te)return;const Z=E(te[1]);return Z?Z+x+te[2]:void 0}}},T=u.removePrefix(v,V);let D=E(T);return D&&_.strictSlashes!==!0&&(D+=`${I}?`),D},o.exports=g},683:(o,i,a)=>{const s=a(17),u=a(700),l=a(754),p=a(513),m=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),f=(h,y,g=!1)=>{if(Array.isArray(h)){const I=h.map(A=>f(A,y,g));return A=>{for(const N of I){const j=N(A);if(j)return j}return!1}}const v=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!v)throw new TypeError("Expected pattern to be a non-empty string");const R=y||{},_=p.isWindows(y),S=v?f.compileRe(h,y):f.makeRe(h,y,!1,!0),C=S.state;delete S.state;let w=()=>!1;if(R.ignore){const I={...y,ignore:null,onMatch:null,onResult:null};w=f(R.ignore,I,g)}const x=(I,$=!1)=>{const{isMatch:A,match:N,output:j}=f.test(I,S,y,{glob:h,posix:_}),k={glob:h,state:C,regex:S,posix:_,input:I,output:j,match:N,isMatch:A};return typeof R.onResult=="function"&&R.onResult(k),A===!1?(k.isMatch=!1,$?k:!1):w(I)?(typeof R.onIgnore=="function"&&R.onIgnore(k),k.isMatch=!1,$?k:!1):(typeof R.onMatch=="function"&&R.onMatch(k),$?k:!0)};return g&&(x.state=C),x};f.test=(h,y,g,{glob:v,posix:R}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const _=g||{},S=_.format||(R?p.toPosixSlashes:null);let C=h===v,w=C&&S?S(h):h;return C===!1&&(w=S?S(h):h,C=w===v),(C===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?C=f.matchBase(h,y,g,R):C=y.exec(w)),{isMatch:!!C,match:C,output:w}},f.matchBase=(h,y,g,v=p.isWindows(g))=>(y instanceof RegExp?y:f.makeRe(y,g)).test(s.basename(h)),f.isMatch=(h,y,g)=>f(y,g)(h),f.parse=(h,y)=>Array.isArray(h)?h.map(g=>f.parse(g,y)):l(h,{...y,fastpaths:!1}),f.scan=(h,y)=>u(h,y),f.compileRe=(h,y,g=!1,v=!1)=>{if(g===!0)return h.output;const R=y||{},_=R.contains?"":"^",S=R.contains?"":"$";let C=`${_}(?:${h.output})${S}`;h&&h.negated===!0&&(C=`^(?!${C}).*$`);const w=f.toRegex(C,y);return v===!0&&(w.state=h),w},f.makeRe=(h,y,g=!1,v=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const R=y||{};let _={negated:!1,fastpaths:!0},S="",C;return h.startsWith("./")&&(h=h.slice(2),S=_.prefix="./"),R.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(C=l.fastpaths(h,y)),C===void 0?(_=l(h,y),_.prefix=S+(_.prefix||"")):_.output=C,f.compileRe(_,y,g,v)},f.toRegex=(h,y)=>{try{const g=y||{};return new RegExp(h,g.flags||(g.nocase?"i":""))}catch(g){if(y&&y.debug===!0)throw g;return/$^/}},f.constants=m,o.exports=f},700:(o,i,a)=>{const s=a(513),{CHAR_ASTERISK:u,CHAR_AT:l,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:m,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:f,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_PLUS:R,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:S,CHAR_RIGHT_PARENTHESES:C,CHAR_RIGHT_SQUARE_BRACKET:w}=a(356),x=A=>A===h||A===p,I=A=>{A.isPrefix!==!0&&(A.depth=A.isGlobstar?1/0:1)},$=(A,N)=>{const j=N||{},k=A.length-1,P=j.parts===!0||j.scanToEnd===!0,q=[],z=[],G=[];let Y=A,V=-1,F=0,oe=0,E=!1,T=!1,D=!1,K=!1,te=!1,Z=!1,M=!1,J=!1,Q=!1,ee=0,L,O,re={value:"",depth:0,isGlob:!1};const ae=()=>V>=k,ce=()=>Y.charCodeAt(V+1),ue=()=>(L=O,Y.charCodeAt(++V));for(;V<k;){O=ue();let me;if(O===p){M=re.backslashes=!0,O=ue(),O===y&&(Z=!0);continue}if(Z===!0||O===y){for(ee++;ae()!==!0&&(O=ue());){if(O===p){M=re.backslashes=!0,ue();continue}if(O===y){ee++;continue}if(Z!==!0&&O===d&&(O=ue())===d){if(E=re.isBrace=!0,D=re.isGlob=!0,Q=!0,P===!0)continue;break}if(Z!==!0&&O===m){if(E=re.isBrace=!0,D=re.isGlob=!0,Q=!0,P===!0)continue;break}if(O===S&&(ee--,ee===0)){Z=!1,E=re.isBrace=!0,Q=!0;break}}if(P===!0)continue;break}if(O===h){if(q.push(V),z.push(re),re={value:"",depth:0,isGlob:!1},Q===!0)continue;if(L===d&&V===F+1){F+=2;continue}oe=V+1;continue}if(j.noext!==!0&&(O===R||O===l||O===u||O===_||O===f)===!0&&ce()===g){if(D=re.isGlob=!0,K=re.isExtglob=!0,Q=!0,P===!0){for(;ae()!==!0&&(O=ue());){if(O===p){M=re.backslashes=!0,O=ue();continue}if(O===C){D=re.isGlob=!0,Q=!0;break}}continue}break}if(O===u){if(L===u&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Q=!0,P===!0)continue;break}if(O===_){if(D=re.isGlob=!0,Q=!0,P===!0)continue;break}if(O===v){for(;ae()!==!0&&(me=ue());){if(me===p){M=re.backslashes=!0,ue();continue}if(me===w){T=re.isBracket=!0,D=re.isGlob=!0,Q=!0;break}}if(P===!0)continue;break}if(j.nonegate!==!0&&O===f&&V===F){J=re.negated=!0,F++;continue}if(j.noparen!==!0&&O===g){if(D=re.isGlob=!0,P===!0){for(;ae()!==!0&&(O=ue());){if(O===g){M=re.backslashes=!0,O=ue();continue}if(O===C){Q=!0;break}}continue}break}if(D===!0){if(Q=!0,P===!0)continue;break}}j.noext===!0&&(K=!1,D=!1);let se=Y,H="",he="";F>0&&(H=Y.slice(0,F),Y=Y.slice(F),oe-=F),se&&D===!0&&oe>0?(se=Y.slice(0,oe),he=Y.slice(oe)):D===!0?(se="",he=Y):se=Y,se&&se!==""&&se!=="/"&&se!==Y&&x(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),j.unescape===!0&&(he&&(he=s.removeBackslashes(he)),se&&M===!0&&(se=s.removeBackslashes(se)));const ie={prefix:H,input:A,start:F,base:se,glob:he,isBrace:E,isBracket:T,isGlob:D,isExtglob:K,isGlobstar:te,negated:J};if(j.tokens===!0&&(ie.maxDepth=0,x(O)||z.push(re),ie.tokens=z),j.parts===!0||j.tokens===!0){let me;for(let U=0;U<q.length;U++){const le=me?me+1:F,Ce=q[U],X=A.slice(le,Ce);j.tokens&&(U===0&&F!==0?(z[U].isPrefix=!0,z[U].value=H):z[U].value=X,I(z[U]),ie.maxDepth+=z[U].depth),(U!==0||X!=="")&&G.push(X),me=Ce}if(me&&me+1<A.length){const U=A.slice(me+1);G.push(U),j.tokens&&(z[z.length-1].value=U,I(z[z.length-1]),ie.maxDepth+=z[z.length-1].depth)}ie.slashes=q,ie.parts=G}return ie};o.exports=$},513:(o,i,a)=>{const s=a(17),u=process.platform==="win32",{REGEX_BACKSLASH:l,REGEX_REMOVE_BACKSLASH:p,REGEX_SPECIAL_CHARS:m,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=f=>f!==null&&typeof f=="object"&&!Array.isArray(f),i.hasRegexChars=f=>m.test(f),i.isRegexChar=f=>f.length===1&&i.hasRegexChars(f),i.escapeRegex=f=>f.replace(d,"\\$1"),i.toPosixSlashes=f=>f.replace(l,"/"),i.removeBackslashes=f=>f.replace(p,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const f=process.version.slice(1).split(".").map(Number);return f.length===3&&f[0]>=9||f[0]===8&&f[1]>=10},i.isWindows=f=>f&&typeof f.windows=="boolean"?f.windows:u===!0||s.sep==="\\",i.escapeLast=(f,h,y)=>{const g=f.lastIndexOf(h,y);return g===-1?f:f[g-1]==="\\"?i.escapeLast(f,h,g-1):`${f.slice(0,g)}\\${f.slice(g)}`},i.removePrefix=(f,h={})=>{let y=f;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(f,h={},y={})=>{const g=y.contains?"":"^",v=y.contains?"":"$";let R=`${g}(?:${f})${v}`;return h.negated===!0&&(R=`(?:^(?!${R}).*$)`),R}},492:(o,i,a)=>{/*!
36
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
37
+ *
38
+ * Copyright (c) 2015-present, Jon Schlinkert.
39
+ * Released under the MIT License.
40
+ */const s=a(357),u=(x,I,$)=>{if(s(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(I===void 0||x===I)return String(x);if(s(I)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let A={relaxZeros:!0,...$};typeof A.strictZeros=="boolean"&&(A.relaxZeros=A.strictZeros===!1);let N=String(A.relaxZeros),j=String(A.shorthand),k=String(A.capture),P=String(A.wrap),q=x+":"+I+"="+N+j+k+P;if(u.cache.hasOwnProperty(q))return u.cache[q].result;let z=Math.min(x,I),G=Math.max(x,I);if(Math.abs(z-G)===1){let E=x+"|"+I;return A.capture?`(${E})`:A.wrap===!1?E:`(?:${E})`}let Y=C(x)||C(I),V={min:x,max:I,a:z,b:G},F=[],oe=[];if(Y&&(V.isPadded=Y,V.maxLen=String(V.max).length),z<0){let E=G<0?Math.abs(G):1;oe=d(E,Math.abs(z),V,A),z=V.a=0}return G>=0&&(F=d(z,G,V,A)),V.negatives=oe,V.positives=F,V.result=l(oe,F),A.capture===!0?V.result=`(${V.result})`:A.wrap!==!1&&F.length+oe.length>1&&(V.result=`(?:${V.result})`),u.cache[q]=V,V.result};function l(x,I,$){let A=f(x,I,"-",!1)||[],N=f(I,x,"",!1)||[],j=f(x,I,"-?",!0)||[];return A.concat(j).concat(N).join("|")}function p(x,I){let $=1,A=1,N=v(x,$),j=new Set([I]);for(;x<=N&&N<=I;)j.add(N),$+=1,N=v(x,$);for(N=R(I+1,A)-1;x<N&&N<=I;)j.add(N),A+=1,N=R(I+1,A)-1;return j=[...j],j.sort(y),j}function m(x,I,$){if(x===I)return{pattern:x,count:[],digits:0};let A=h(x,I),N=A.length,j="",k=0;for(let P=0;P<N;P++){let[q,z]=A[P];q===z?j+=q:q!=="0"||z!=="9"?j+=S(q,z):k++}return k&&(j+=$.shorthand===!0?"\\d":"[0-9]"),{pattern:j,count:[k],digits:N}}function d(x,I,$,A){let N=p(x,I),j=[],k=x,P;for(let q=0;q<N.length;q++){let z=N[q],G=m(String(k),String(z),A),Y="";if(!$.isPadded&&P&&P.pattern===G.pattern){P.count.length>1&&P.count.pop(),P.count.push(G.count[0]),P.string=P.pattern+_(P.count),k=z+1;continue}$.isPadded&&(Y=w(z,$,A)),G.string=Y+G.pattern+_(G.count),j.push(G),k=z+1,P=G}return j}function f(x,I,$,A,N){let j=[];for(let k of x){let{string:P}=k;!A&&!g(I,"string",P)&&j.push($+P),A&&g(I,"string",P)&&j.push($+P)}return j}function h(x,I){let $=[];for(let A=0;A<x.length;A++)$.push([x[A],I[A]]);return $}function y(x,I){return x>I?1:I>x?-1:0}function g(x,I,$){return x.some(A=>A[I]===$)}function v(x,I){return Number(String(x).slice(0,-I)+"9".repeat(I))}function R(x,I){return x-x%Math.pow(10,I)}function _(x){let[I=0,$=""]=x;return $||I>1?`{${I+($?","+$:"")}}`:""}function S(x,I,$){return`[${x}${I-x===1?"":"-"}${I}]`}function C(x){return/^-?(0+)\d/.test(x)}function w(x,I,$){if(!I.isPadded)return x;let A=Math.abs(I.maxLen-String(x).length),N=$.relaxZeros!==!1;switch(A){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${A}}`:`0{${A}}`}}u.cache={},u.clearCache=()=>u.cache={},o.exports=u},17:o=>{o.exports=Fd},837:o=>{o.exports=Ef()}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var a=t[o]={exports:{}},s=!0;try{e[o](a,a.exports,r),s=!1}finally{s&&delete t[o]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Er.exports=n})()),Er.exports}var fa;function jf(){return fa||(fa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,a){for(var s in a)Object.defineProperty(i,s,{enumerable:!0,get:a[s]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return o}});const r=wf();function n(i,a){if(i.protocol!==void 0){const u=a.protocol.slice(0,-1);if(i.protocol!==u)return!1}if(i.port!==void 0&&i.port!==a.port)return!1;if(i.hostname===void 0)throw new Error(`Pattern should define hostname but found
41
+ `+JSON.stringify(i));if(!(0,r.makeRe)(i.hostname).test(a.hostname))return!1;var s;return!!(0,r.makeRe)((s=i.pathname)!=null?s:"**").test(a.pathname)}function o(i,a,s){return i.some(u=>s.hostname===u)||a.some(u=>n(u,s))}}(Rr)),Rr}var pa;function cc(){return pa||(pa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:o,src:i,width:a,quality:s}=n;if(process.env.NODE_ENV!=="production"){const u=[];if(i||u.push("src"),a||u.push("width"),u.length>0)throw new Error("Next Image Optimization requires "+u.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:a,quality:s}));if(i.startsWith("//"))throw new Error('Failed to parse src "'+i+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!i.startsWith("/")&&(o.domains||o.remotePatterns)){let l;try{l=new URL(i)}catch(p){throw console.error(p),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:p}=jf();if(!p(o.domains,o.remotePatterns,l))throw new Error("Invalid src prop ("+i+') on `next/image`, hostname "'+l.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return o.path+"?url="+encodeURIComponent(i)+"&w="+a+"&q="+(s||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(Ar)),Ar}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return R}});const r=Re,o=Xe._(B),i=r._(_a),a=r._(qd()),s=ro,u=Bt,l=Bd(),p=ut,m=Ms(),d=r._(cc()),f=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,S,C,w,x,I){const $=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===$)return;_["data-loaded-src"]=$,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(S!=="empty"&&x(!0),C!=null&&C.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:_});let j=!1,k=!1;C.current({...N,nativeEvent:N,currentTarget:_,target:_,isDefaultPrevented:()=>j,isPropagationStopped:()=>k,persist:()=>{},preventDefault:()=>{j=!0,N.preventDefault()},stopPropagation:()=>{k=!0,N.stopPropagation()}})}if(w!=null&&w.current&&w.current(_),process.env.NODE_ENV!=="production"){const N=new URL($,"http://n").searchParams.get("url")||$;if(_.getAttribute("data-nimg")==="fill"){if(!I&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),_.parentElement){const{position:P}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(P)||(0,p.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+P+'" should be one of '+q.map(String).join(",")+".")}_.height===0&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const j=_.height.toString()!==_.getAttribute("height"),k=_.width.toString()!==_.getAttribute("width");(j&&!k||!j&&k)&&(0,p.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(_){const[S,C]=o.version.split("."),w=parseInt(S,10),x=parseInt(C,10);return w>18||w===18&&x>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,o.forwardRef)((_,S)=>{let{src:C,srcSet:w,sizes:x,height:I,width:$,decoding:A,className:N,style:j,fetchPriority:k,placeholder:P,loading:q,unoptimized:z,fill:G,onLoadRef:Y,onLoadingCompleteRef:V,setBlurComplete:F,setShowAltText:oe,onLoad:E,onError:T,...D}=_;return o.default.createElement("img",{...D,...y(k),loading:q,width:$,height:I,decoding:A,"data-nimg":G?"fill":"1",className:N,style:j,sizes:x,srcSet:w,src:C,ref:(0,o.useCallback)(K=>{S&&(typeof S=="function"?S(K):typeof S=="object"&&(S.current=K)),K&&(T&&(K.src=K.src),process.env.NODE_ENV!=="production"&&(C||console.error('Image is missing required "src" property:',K),K.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),K.complete&&h(K,P,Y,V,F,z))},[C,P,Y,V,F,T,z,S]),onLoad:K=>{const te=K.currentTarget;h(te,P,Y,V,F,z)},onError:K=>{oe(!0),P!=="empty"&&F(!0),T&&T(K)}})});function v(_){let{isAppRouter:S,imgAttributes:C}=_;const w={as:"image",imageSrcSet:C.srcSet,imageSizes:C.sizes,crossOrigin:C.crossOrigin,referrerPolicy:C.referrerPolicy,...y(C.fetchPriority)};return S&&i.default.preload?(i.default.preload(C.src,w),null):o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+C.src+C.srcSet+C.sizes,rel:"preload",href:C.srcSet?void 0:C.src,...w}))}const R=(0,o.forwardRef)((_,S)=>{const w=!(0,o.useContext)(m.RouterContext),x=(0,o.useContext)(l.ImageConfigContext),I=(0,o.useMemo)(()=>{const V=f||x||u.imageConfigDefault,F=[...V.deviceSizes,...V.imageSizes].sort((E,T)=>E-T),oe=V.deviceSizes.sort((E,T)=>E-T);return{...V,allSizes:F,deviceSizes:oe}},[x]),{onLoad:$,onLoadingComplete:A}=_,N=(0,o.useRef)($);(0,o.useEffect)(()=>{N.current=$},[$]);const j=(0,o.useRef)(A);(0,o.useEffect)(()=>{j.current=A},[A]);const[k,P]=(0,o.useState)(!1),[q,z]=(0,o.useState)(!1),{props:G,meta:Y}=(0,s.getImgProps)(_,{defaultLoader:d.default,imgConf:I,blurComplete:k,showAltText:q});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...G,unoptimized:Y.unoptimized,placeholder:Y.placeholder,fill:Y.fill,onLoadRef:N,onLoadingCompleteRef:j,setBlurComplete:P,setShowAltText:z,ref:S}),Y.priority?o.default.createElement(v,{isAppRouter:w,imgAttributes:G}):null)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Hn,Hn.exports);var If=Hn.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,p){for(var m in p)Object.defineProperty(l,m,{enumerable:!0,get:p[m]})}t(e,{unstable_getImgProps:function(){return s},default:function(){return u}});const r=Re,n=ro,o=ut,i=If,a=r._(cc()),s=l=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:p}=(0,n.getImgProps)(l,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[m,d]of Object.entries(p))d===void 0&&delete p[m];return{props:p}},u=i.Image})(Ys);var Pf=Ys;const ma=Dt(Pf),Nf=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,n=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?c.jsxs(we,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&c.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?c.jsx(ma,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):c.jsx(b.Icon,{size:"small",name:n})]}):c.jsxs("div",{className:pe["support-item"],children:[e.image&&c.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?c.jsx(ma,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):c.jsx(b.Icon,{size:"small",name:n})]})},Of=({content:e,CONSTANTS:t})=>c.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>c.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[c.jsxs("div",{className:pe["support-text"],children:[r.title&&c.jsx("h3",{children:r.title}),r.description&&c.jsx("p",{children:r.description})]}),r.items.length&&c.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((o,i)=>c.jsx(Nf,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),Tf=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:o,columnAlignItems:i,textAlignContent:a,textAlignItems:s,children:u})=>c.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:o,alignItems:i}},children:c.jsxs(b.TextStructure.DivWrapper,{alignContent:a,alignItems:s,className:pe.footer__column,children:[c.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[c.jsx(b.Icon,{name:`${t}`,size:"small"}),e&&c.jsx("div",{children:e})]}),c.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:u})]})}),Mf=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:o,...i})=>c.jsxs(b.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...i,children:[c.jsx(b.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:pe.accordionHeader,closeIndicator:c.jsx(b.Icon,{name:o.arrow_up,size:"medium"}),openIndicator:c.jsx(b.Icon,{name:o.arrow_down,size:"medium"}),title:"accordion-header",children:c.jsx(b.TextStructure.Root,{children:c.jsxs(b.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[c.jsx(b.Icon,{name:`${t}`,size:"medium"}),c.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),c.jsx(b.Accordion.Body,{title:"accordion-body",children:c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),jn=e=>{const{isMobile:t}=ke();return t?c.jsx(Mf,{...e}):c.jsx(Tf,{...e})},Nt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:a,iconSize:s,link:u,paymentDisclaimer:l,paymentTitle:p,rowAlignContent:m,columnAlignContent:d,columnAlignItems:f,textAlignContent:h,textAlignItems:y,...g})=>{let v;const{handleSelectContent:R}=ge(),{nextimage:_}=Ne();switch(e){case"menu":v=c.jsx(we,{className:pe.footer__itemLink,href:u??"#",prefetch:!1,children:c.jsx("span",{onClick:()=>{R({content:`footer:${n}:${t}`})},children:t})});break;case"payment":v=c.jsxs("div",{className:b.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[l,c.jsxs("div",{className:b.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[p,c.jsx("div",{className:pe.footer__iconList,children:i==null?void 0:i.map((S,C)=>c.jsx(_,{alt:S,src:`/assets/${S}.svg`,width:s??20,height:s??20},C))})]})]});break;case"social-media":v=c.jsx("div",{className:pe.footer__iconContainer,...g,children:c.jsx("div",{className:pe.footer__iconList,children:a==null?void 0:a.map((S,C)=>c.jsx(we,{prefetch:!1,href:S.link??"#",target:"_blank",children:c.jsx(b.Icon,{size:"medium",name:S.icon,onClick:()=>R({content:`footer:redes-sociais:${S.icon}`})})},C))})});break;default:v=c.jsx("div",{className:r,...g,children:t})}return c.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:m,alignItems:m},columnWrapper:{alignContent:d,alignItems:f}},...g,children:c.jsx(b.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:b.helpers.classNameConcat(pe.footer__item,r),children:v})})},kf=({className:e,text:t,...r})=>c.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:c.jsx("span",{children:t})}),uc=()=>{const{nextimage:e}=Ne();return c.jsx("div",{className:pe["footer--stamps"],children:c.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};uc.displayName="Footer.Stamps";const lc=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=ke(),a=B.Children.toArray(e).filter(Boolean),s=a.length;return c.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&c.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),s>0&&c.jsx("div",{...o,className:b.helpers.classNameConcat(pe.footer__wrapper,n),children:a.map((u,l)=>c.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:u},l))}),(r==null?void 0:r.bottom)&&c.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&c.jsx("div",{className:pe.footer__legalText,children:t})]})};lc.displayName="Footer.Wrapper";const dc=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var s;return c.jsxs(lc,{adornment:o,legalTextSlot:c.jsx(kf,{text:i}),children:[Array.isArray(e.column)&&e.column.map((u,l)=>c.jsx(jn,{id:`${l}column-menu`,name:u.name,nameIcon:u.nameIcon,ICONS:a,children:u.items.map((p,m)=>c.jsx(Nt,{type:"menu",link:p.link,collumnName:u.name,collumnNameIcon:u.nameIcon,children:p.text},m))},l)),t&&((s=t.acceptedFlags)==null?void 0:s.length)>0&&c.jsx(jn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:c.jsx(Nt,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),c.jsxs(jn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?c.jsx(Nt,{children:r==null?void 0:r.subTitle}):null,c.jsx(Nt,{type:"social-media",iconSize:24,iconLink:n}),c.jsx(uc,{})]})]})};dc.displayName="Footer";const Lf=Object.freeze(Object.defineProperty({__proto__:null,Footer:dc,FooterSupport:Of},Symbol.toStringTag,{value:"Module"})),so={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},co=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Ye(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),i=r.reduce((a,s)=>a+(s.quantity??0),0);return c.jsx(b.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:c.jsxs(b.Badge.AutoPositioner,{children:[c.jsx(b.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),c.jsx(b.Icon,{name:o.header.ICONS.bag,size:"medium"})]})})};co.displayName="Header.Bag";const pt=({children:e,href:t,...r})=>t&&t!=="#"?c.jsx(we,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,fc=()=>{const{headerData:e}=xe(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=De(),o=i=>{i?n(i):r()};return c.jsx(b.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>c.jsx(pt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:c.jsx(b.Header.CategoryItem,{className:so["btn-header"],value:i.submenuId??null,adornment:{start:c.jsx(b.Icon,{name:i.iconStart}),end:c.jsx(b.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};fc.displayName="Header.Categories";function Df({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=xe(),{setValue:n}=Xn();return c.jsxs(c.Fragment,{children:[c.jsx(b.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:c.jsx(b.Icon,{name:r.header.ICONS.search,size:"medium"})}),c.jsx(e,{recommendations:!1,trends:!0})]})}const $f={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},uo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return c.jsx("div",{className:$f["menu-subcategories-container"],children:e.map((a,s)=>{const u=r?a.srcMobile:a.srcDesk;if(!u)return null;const l={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${s+1}`,promotion_id:u,promotion_name:a.promotion_name};return c.jsx(Jn,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...l}}}},observerOptions:{delay:1e3},children:c.jsxs(we,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:l})},children:[c.jsx(Oe.Image,{src:u,alt:a.label??u,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&c.jsx("p",{children:a.label})]})},`thumb-${a.label}-${s}`)})})};uo.displayName="Menu.Thumbnail";const zn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},pc=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var u;const{router:o}=Ne(),{reset:i}=De(),{handleSelectContent:a}=ge(),{CONSTANTS:s}=xe();return c.jsxs("div",{...n,className:zn["menu-categories"],children:[(u=r==null?void 0:r.subCategories)==null?void 0:u.map((l,p)=>{var f,h,y;const m=l.listCollapseDesk&&!((f=l.see_all)!=null&&f.link)?{expandAfterRowsQty:l.rowsToShowDesk}:{},d=l.listCollapseDesk&&!((h=l.see_all)!=null&&h.link)?{expansivesAdornments:{open:s.header.ICONS.add,close:s.header.ICONS.minus},expansivesLabels:{open:s.header.COMPONENT_LIST.listExpandLabel,close:s.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:c.jsx(b.Icon,{name:s.header.ICONS.arrow_right,size:"small"})}};return c.jsxs(b.ComponentList.Structure,{children:[c.jsx(pt,{href:l.linkLabel,title:l.label,onClick:()=>{l.linkLabel&&(i(),a({content:`menu:${l.label??""}:${r.label??""}`}))},children:c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{children:c.jsx("h2",{children:l.label})})})}),c.jsx(b.ComponentList.List,{columns:1,...m,className:zn["submenu-categories"],children:l.items.map((g,v)=>c.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:c.jsx(Ze,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${l.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${v}`))}),((y=l.see_all)==null?void 0:y.link)&&c.jsx(b.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=l.see_all)!=null&&g.link&&(i(),a({content:`menu:${l.label??""}:${r.label}`}),o.push(l.see_all.link))},children:l.see_all.link&&l.see_all.label})]},`list-${l.label}-${p}`)}),t&&c.jsx(b.Utils.Divider,{size:"small",direction:"vertical"})]})};pc.displayName="Menu.Categories";const mc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();return c.jsxs(c.Fragment,{children:[c.jsx("div",{...r,className:zn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&c.jsx(b.Utils.Divider,{size:"small"})]})};mc.displayName="Menu.MenuRoot";const qf=to(()=>Promise.resolve(mc),{ssr:!1}),In={Root:qf,Categories:pc,Thumbnail:uo},hc=()=>{const{headerData:e,CONSTANTS:t}=xe(),r=Lt(),{reset:n}=De();return c.jsx(b.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,i)=>{const{thumbnails:a,label:s,id:u}=o,l=u===r,p=a==null?void 0:a.some(m=>!!m.srcDesk);return c.jsxs(In.Root,{id:u,style:l?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:l,children:[c.jsx(In.Categories,{dividerOnRight:!!p,subMenu:o}),Array.isArray(a)&&c.jsx(In.Thumbnail,{thumbnails:a,isMobile:!1,category:s,callBack:n})]},`submenu-${u}-${i}`)})})};hc.displayName="Header.SubMenu";const gc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=xe();return c.jsx(we,{href:"/favoritos",children:c.jsx(b.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:c.jsx(b.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};gc.displayName="Header.WishList";const yc=({UserMenu:e,SearchModal:t})=>{const r=B.useRef(null),{CONSTANTS:n}=xe(),{handleSelectContent:o}=ge(),{reset:i}=De(),{setValue:a}=Qn();return c.jsxs(c.Fragment,{children:[c.jsxs(b.Header.Wrapper,{children:[c.jsx(b.Header.Logo,{style:{width:"100%"},children:c.jsx(we,{href:"/",onMouseEnter:i,children:c.jsx(b.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),c.jsx(fc,{}),c.jsxs(b.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[c.jsx(Df,{SearchModal:t}),c.jsx(e,{target:r.current,children:c.jsx(b.Header.SupportItem,{onClick:()=>{a(!0),o({content:"header:user_menu"})},className:so["btn-login"],innerRef:r,children:c.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),c.jsx(gc,{}),c.jsx(co,{id:"cart-button"})]})]}),c.jsx(hc,{})]})};yc.displayName="Header.HeaderDesktopWrapper";const Bf="_divider_1lexj_199",_e={"modal-modifier":"_modal-modifier_1lexj_1","menu-mobile":"_menu-mobile_1lexj_11","menu-header-container":"_menu-header-container_1lexj_26","menu-header-wrapper":"_menu-header-wrapper_1lexj_35","menu-header-navlinks":"_menu-header-navlinks_1lexj_41","menu-body":"_menu-body_1lexj_57","menu-categories-container":"_menu-categories-container_1lexj_74","menu-categories-btn":"_menu-categories-btn_1lexj_108","menu-body-banner-container-modifier":"_menu-body-banner-container-modifier_1lexj_121","menu-categories__banner":"_menu-categories__banner_1lexj_130","menu-submenu-modal-modifiier":"_menu-submenu-modal-modifiier_1lexj_135","menu-submenu":"_menu-submenu_1lexj_135","menu-submenu--item":"_menu-submenu--item_1lexj_150","menu-submenu--thumbnails":"_menu-submenu--thumbnails_1lexj_156","menu-submenu--component-list-modifier":"_menu-submenu--component-list-modifier_1lexj_184","submenu-categories":"_submenu-categories_1lexj_187","menu-navigationbar":"_menu-navigationbar_1lexj_191",divider:Bf,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},_c=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:o,...i})=>c.jsx("button",{onClick:n,className:_e["menu-categories-btn"],children:r?c.jsxs(b.Banner.Container,{...i,className:_e["menu-body-banner-container-modifier"],children:[c.jsx(b.Banner.ImageWrapper,{style:{width:"100%"},children:c.jsx(Oe.Image,{src:r,alt:t??r,className:_e["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),c.jsx(b.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{className:_e["menu-categories-textstructure-modifier"],children:c.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):c.jsx("h2",{...i,children:e})});_c.displayName="Menu.MenuCategories";const vc=({children:e,link:t})=>{const{reset:r}=He();return t?c.jsx(we,{href:t??"#",onClick:r,children:e}):e};vc.displayName="Menu.MenuCategoriesWrapper";const bc=({subcategory:e,submenuLabel:t})=>{var u,l,p;const{router:r}=Ne(),{reset:n}=He(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=xe(),a=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},s=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expansivesAdornments:{open:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:c.jsx(b.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return c.jsxs(b.ComponentList.Structure,{className:_e["menu-submenu--component-list-modifier"],children:[c.jsx(pt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),o({content:`menu:${e.label??""}:${t}`})},children:c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{children:c.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),c.jsx(b.ComponentList.List,{columns:1,...a,className:_e["submenu-categories"],children:e.items.map((m,d)=>c.jsx(b.ComponentList.ListItem,{id:`list-item-${m.label}-${d}`,divider:!0,children:c.jsx(Ze,{href:m.link??"#",size:"x-small",title:m.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${m.label}:${t}`})},children:m.label})},`list-item-${m.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&c.jsx(b.ComponentList.Support,{...s,size:"small",onClick:()=>{var m;n(),o({content:`menu:${e.label??""}:${t}`}),(m=e.see_all)!=null&&m.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};bc.displayName="Menu.SubMenuSubCategory";const xc=({submenu:e})=>{var i;const t=Lt(),{handleCloseSubMenu:r}=ct(),{reset:n}=De(),{CONSTANTS:o}=xe();return c.jsxs("div",{className:_e["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[c.jsx(b.TextStructure.Root,{adornment:{start:c.jsx(b.Icon,{name:o.header.ICONS.arrow_back,size:"medium",onClick:r})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&c.jsx(b.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:c.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),c.jsx("div",{className:_e["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&c.jsx(uo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,s)=>c.jsx(bc,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${s}`))]})};xc.displayName="Menu.SubMenuItem";const Cc=()=>{const{headerData:e}=xe(),t=Lt(),{reset:r}=De(),{bodyRef:n}=ct();return c.jsx(b.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:_e["menu-submenu-modal-modifiier"],children:c.jsx("div",{className:_e["menu-submenu"],children:e.subMenus.map((o,i)=>c.jsx(xc,{submenu:o},`submenu-${o.id}-${i}`))})})};Cc.displayName="Menu.SubMenu";const Sc=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=De(),{bodyRef:o}=ct(),{handleSelectContent:i}=ge();return c.jsxs("div",{...t,ref:o,id:"menu-body",className:_e["menu-body"],children:[c.jsx("div",{className:_e["menu-categories-container"],children:r.categories.map((a,s)=>{const u=a.submenuId?{}:{"data-close":!0};return c.jsx(vc,{link:a.submenuId?null:a.link,children:c.jsx(_c,{onClick:()=>{n(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...u,children:a.mobileBannerAlt})},`menu-categories-${s}`)})}),c.jsx(Cc,{})]})};Sc.displayName="Menu.MenuBody";const Ac=({title:e,subtitle:t})=>{const{CONSTANTS:r}=xe();return c.jsxs("div",{className:_e["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&c.jsx(b.TextStructure.Root,{children:c.jsxs(b.TextStructure.DivWrapper,{children:[e&&c.jsx("h2",{className:"typography-style-body-md",children:e}),t&&c.jsx("h3",{children:t})]})}),c.jsx(b.Button,{adornment:{end:c.jsx(b.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:_e["menu-close"],"data-close":!0})]})};Ac.displayName="Menu.MenuHeaderWrapper";const Rc=({navigationLinks:e})=>{const{reset:t}=He(),{handleSelectContent:r}=ge();return e?c.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>c.jsx(Ze,{href:n.link??"#",adornments:{start:n.iconStart&&c.jsx(b.Icon,{name:n.iconStart}),end:n.iconEnd&&c.jsx(b.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},o))}):null};Rc.displayName="Menu.MenuHeaderNavLinks";const Ec=()=>{const{headerData:e}=xe();return c.jsxs("div",{className:_e["menu-header-container"],children:[c.jsx(Ac,{title:e.title,subtitle:e.subtitle}),c.jsx(Rc,{navigationLinks:e.navigationLinks})]})};Ec.displayName="Menu.MenuHeaderContainer";const wc=({children:e})=>{const{documentBodyRef:t}=ct(),{CONSTANTS:r}=xe(),n=Kn(),{setValue:o}=He();return c.jsx(b.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:o,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:_e["modal-modifier"],children:c.jsx("div",{className:_e["menu-mobile"],children:e})})};wc.displayName="Menu.MenuRoot";const Hf=to(()=>Promise.resolve(wc),{ssr:!1}),Tt=({children:e,...t})=>c.jsxs(c.Fragment,{children:[c.jsx(b.Button,{...t,className:_e["menu-navigationbar-item"],children:e}),c.jsx(b.Utils.Divider,{direction:"vertical",size:"small",className:_e.divider})]});Tt.displayName="Menu.NavigationBarItem";const jc=()=>{const{setIsOpen:e}=Ye(),{reset:t}=He(),{setValue:r}=Qn(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),{router:i}=Ne();return c.jsxs(b.Card,{id:"menu-navigationbar",shadow:!0,className:_e["menu-navigationbar"],style:{zIndex:o.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[c.jsx(Tt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:o.header.MENU_INFO.login.button_text}),c.jsx(Tt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:o.header.MENU_INFO.bag.button_text}),c.jsx(Tt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.store.button_icon,onClick:()=>{i.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:o.header.MENU_INFO.store.button_text})]})};jc.displayName="Menu.NavigationBar";const Ot={Root:Hf,NavigationBar:jc,Header:Ec,Body:Sc},Ic=({UserMenu:e,SearchModal:t})=>{const r=B.useRef(null),{CONSTANTS:n}=xe(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:i}=n.header,{handleSelectContent:a}=ge(),{setValue:s}=Xn(),{setValue:u}=He();return c.jsxs(c.Fragment,{children:[c.jsxs(b.Header.Wrapper,{children:[c.jsx(b.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:c.jsx(we,{href:"/",children:c.jsx(b.Icon,{name:i.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),c.jsxs(b.Header.Support,{children:[c.jsx(b.Header.SupportItem,{onClick:()=>{s(!0),a({content:"header:search"})},children:c.jsx(b.Icon,{name:i.search,size:"medium"})}),c.jsx(co,{}),c.jsxs(b.Header.SupportItem,{onClick:()=>u(!0),children:[c.jsx("span",{ref:r}),c.jsx(b.Icon,{name:i.menu,size:"medium"})]})]})]}),c.jsx(t,{recommendations:!1,trends:!0}),c.jsx(_s,{children:c.jsx(e,{target:r==null?void 0:r.current,children:c.jsxs(Ot.Root,{children:[c.jsx(Ot.Header,{}),c.jsx(Ot.Body,{}),o?c.jsx(Ot.NavigationBar,{}):c.jsx(c.Fragment,{})]})})})]})};Ic.displayName="Header.HeaderMobileWrapper";const Pc=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:o,rootRef:i,CONSTANTS:a}=xe(),{header:{HEADER_CONFIGS:s,Z_INDEX_WAR:u}}=a;return c.jsx(b.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:u.header},className:so["header-animation"],children:c.jsxs(b.Header.Root,{innerRef:i,style:{zIndex:u.header},variant:s.default_variant,interactiveVariant:s.interactive_variant,children:[c.jsx("div",{className:Mt["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:u.header_mobile},children:c.jsx(Ic,{UserMenu:r,SearchModal:n})}),c.jsx("div",{className:Mt["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:u.header_desktop},children:c.jsx(yc,{UserMenu:r,SearchModal:n})}),t,c.jsx(eo,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart})]})})};Pc.displayName="Header";const zf="_shippingFreight_6z8rf_6",Ff="_shippingFreight__postalCodeGrid_6z8rf_10",Uf="_shippingFreight__grid_6z8rf_14",Wf="_shippingFreight__grid__title_6z8rf_18",Gf="_shippingFreight__grid__remember_6z8rf_29",Vf="_postalCodeContainer_6z8rf_44",Kf="_deliveryStatusBar__tag_6z8rf_49",Xf="_deliveryStatusBarError__tag_6z8rf_66",Qf="_deliveryInfo_6z8rf_74",Yf="_deliveryInfo__content_6z8rf_78",Zf="_deliveryInfo__text_6z8rf_84",Jf="_deliveryInfo__title_6z8rf_89",ep="_deliveryInfo__subtitle_6z8rf_99",tp="_deliveryInfo__tooltipIcon_6z8rf_109",rp="_deliveryInfo__tooltip_6z8rf_109",np="_freightGrid_6z8rf_148",op="_freightContainer_6z8rf_155",ip="_freightOption__content_6z8rf_160",ap="_freightOption__value_6z8rf_166",sp="_freightOption__title_6z8rf_177",cp="_freightOption__title_item_6z8rf_181",up="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:zf,shippingFreight__postalCodeGrid:Ff,shippingFreight__grid:Uf,shippingFreight__grid__title:Wf,shippingFreight__grid__remember:Gf,postalCodeContainer:Vf,deliveryStatusBar__tag:Kf,deliveryStatusBarError__tag:Xf,deliveryInfo:Qf,deliveryInfo__content:Yf,deliveryInfo__text:Zf,deliveryInfo__title:Jf,deliveryInfo__subtitle:ep,deliveryInfo__tooltipIcon:tp,deliveryInfo__tooltip:rp,freightGrid:np,freightContainer:op,freightOption__content:ip,freightOption__value:ap,freightOption__title:sp,freightOption__title_item:cp,freightOption__paragraph:up,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},lp=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:a,toolTipZIndex:s})=>{const[u,l]=B.useState(!1),p=B.useRef(null),m=()=>l(d=>!d);return c.jsxs("div",{className:fe.deliveryInfo,ref:p,children:[c.jsx(b.Tooltip.Root,{arrow:"bottom",component:c.jsx("div",{children:c.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:s},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),c.jsxs("div",{className:fe.deliveryInfo__content,children:[c.jsx("div",{className:fe.deliveryInfo__icon,children:c.jsx(b.Icon,{name:e,size:"medium"})}),c.jsxs("div",{className:fe.deliveryInfo__text,children:[c.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",o]}),r&&c.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),i&&c.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:m,onMouseLeave:m,"aria-label":"Mostrar descrição",children:[c.jsx("span",{children:c.jsx(b.Icon,{name:a.icons.feedback_help,size:"small"})}),u&&c.jsx("div",{className:fe.deliveryInfo__tooltip,children:i})]})]})]})},dp=({value:e,title:t,paragraph:r})=>c.jsx("div",{className:fe.freightOption,children:c.jsxs("div",{className:fe.freightOption__content,children:[c.jsx("span",{className:fe.freightOption__value,children:e}),c.jsx("span",{className:fe.freightOption__title,children:c.jsx(b.TextStructure.Root,{children:c.jsxs(b.TextStructure.DivWrapper,{className:fe.footer__item,children:[c.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&c.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),fp=({children:e})=>c.jsx("div",{className:fe.freightContainer,children:e}),pp=({children:e})=>c.jsx("div",{className:fe.freightGrid,children:e}),mp=({children:e})=>c.jsx("div",{className:fe.postalCodeContainer,children:e}),ha=({message:e,seller:t="",size:r="small",setError:n})=>c.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:c.jsxs(b.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),hp=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},gp=e=>{var r,n,o;const t=[];return(o=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||o.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},yp=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:a,toolTipZIndex:s=999,...u})=>{const{isMobile:l}=ke();return c.jsx(c.Fragment,{children:l?c.jsx(b.Tooltip.Root,{arrow:"bottom",component:c.jsxs("div",{...u,ref:i,children:[e,c.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:s},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):c.jsx(b.Tooltip.Root,{arrow:"bottom",component:c.jsxs("div",{...u,ref:i,children:[e,c.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:s},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},_p=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:a,component:s,freightConfig:u,toolTipZIndex:l})=>{var N,j,k,P;const p=Ve(),m=Ve(q=>q.shipping),[d,f]=B.useState(),[h,y]=B.useState(!1),[g,v]=B.useState(!1),[R,_]=B.useState(!1),S=(j=(N=p.shippingData)==null?void 0:N.address)==null?void 0:j.postalCode,C=!(d!=null&&d.length)&&S?S:d,w=B.useRef(null),x=async q=>{const G=q.target.value.replace(/\D/g,"").slice(0,8);G.length>5?f(G.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):f(G)},I=async q=>{const z=q.target.value.replace(/\D/g,"");try{if((await po.get(`https://viacep.com.br/ws/${z}/json/`)).data.erro){i&&i(u.messages.cep_not_found),a(!1),v(!0);return}i&&i(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},$=async()=>{y(!0);try{const q=await po.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:C});e(gp(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),m(C,"BRA")}},A=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await I({target:{value:C}}),h||($(),a(!0))};return c.jsxs("div",{ref:w,style:{position:"relative"},children:[!n&&R?c.jsx(yp,{component:s,isOpen:R,parent:w.current,toolTipZIndex:l,freightConfig:u}):c.jsx(c.Fragment,{}),c.jsx("div",{style:{position:"relative"},children:c.jsx(b.TextField.Structure,{title:"structure",style:{width:"100%"},input:c.jsx(b.TextField.Input,{defaultValue:(P=(k=p.shippingData)==null?void 0:k.address)==null?void 0:P.postalCode,label:u.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:_(!0),onMouseOut:()=>n?null:_(!1),mode:"simple",onChange:x,onKeyDown:q=>{q.key==="Enter"&&A()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:c.jsx(b.Button,{onClick:A,size:r,title:"button",children:h?c.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):u.messages.text_input_btn})})})]})},vp=({children:e,freightConfig:t})=>c.jsxs("div",{className:fe.shippingFreight,children:[c.jsxs("div",{className:fe.shippingFreight__grid,children:[c.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),c.jsx("span",{className:fe.shippingFreight__grid__remember,children:c.jsx(Ze,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),c.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),bp=({children:e})=>c.jsx("div",{className:fe.freightContainer,children:e}),xp=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:a,CONSTANTS_PROPS:s})=>{const{sendDataLayerEvent:u}=ge(),[l,p]=B.useState(""),[m,d]=B.useState([]),[f,h]=B.useState(""),[y,g]=B.useState(!1),v=_=>p(_),R=_=>{d(_),u({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:_.map(S=>({shipping_tier:S.id,delivery_time:S.shippingEstimate.replace("bd",""),flag_pickup:S.name.toLowerCase().includes("retirada")?"true":"false",shipping:S.price,currency:s.currency||"BRL"}))}}})};return c.jsxs(bp,{className:e,children:[c.jsxs(vp,{freightConfig:s.freightConfig,children:[c.jsx(mp,{children:c.jsx(_p,{onUpdateFreightItems:R,skuId:r,quantity:n,size:o,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:s.freightConfig,toolTipZIndex:s.toolTipZIndex})}),f?c.jsx(ha,{size:o,message:f,setError:h}):m.length>0&&c.jsx(ha,{size:o,message:s.freightConfig.messages.delivered_by,seller:i})]}),y&&!f?m.length>0&&c.jsxs(fp,{children:[c.jsx(pp,{children:m.filter(({id:_})=>!_.includes("Retirada")).map(_=>c.jsx(dp,{id:_.id,value:Ca({valueInCents:_.price,hasFree:!1,freeTaxMessage:s.freightConfig.messages.free_tax}),title:_.name,paragraph:`${s.freightConfig.messages.prefix_days}${hp(_.shippingEstimate)}`,radioValue:l,changeValue:v},_.id))}),s.deliveryInfoBoxesAllowed?c.jsx(lp,{icon:s.freightConfig.icons.delivery_truck,packageUnit:s.freightConfig.messages.unit_amout,title:s.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:s.freightConfig,toolTipZIndex:s.toolTipZIndex??999}):c.jsx(c.Fragment,{})]}):null]})},Nc=B.createContext({}),Cp=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,a]=B.useState(null),s=B.useRef(null),u=B.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:l,itemListRef:p}=ge(),m=y=>{l({functionKey:"productEvents",data:{commonData:{...t,availableSizes:u.current.availableSkus,...u.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{m("add_to_wishlist")},f=()=>{l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...u.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},h=()=>{n&&(p.current={item_list_name:n}),m("select_item")};return c.jsx(Nc.Provider,{value:B.useMemo(()=>({...o,index:r,item:t,element:s,selectedSku:i,setSelectedSku:a,eventDataRef:u,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:f}),[o,t,s,i]),children:e})},Ie=()=>{const e=B.useContext(Nc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Se={"product-card--actions":"_product-card--actions_5xa7u_1","product-card--actions--group":"_product-card--actions--group_5xa7u_9","product-card--actions--selectors":"_product-card--actions--selectors_5xa7u_21","product-card--body":"_product-card--body_5xa7u_33","product-card--header":"_product-card--header_5xa7u_47","product-card--footer":"_product-card--footer_5xa7u_67","product-card--image":"_product-card--image_5xa7u_90","product-card--image--container":"_product-card--image--container_5xa7u_97","product-card--outstock":"_product-card--outstock_5xa7u_133","product-card--price":"_product-card--price_5xa7u_155","product-card--title":"_product-card--title_5xa7u_180","product-card--title--tag":"_product-card--title--tag_5xa7u_186","product-card--title--content":"_product-card--title--content_5xa7u_203","product-card--selectors--size":"_product-card--selectors--size_5xa7u_243","product-card--selectors--size--button":"_product-card--selectors--size--button_5xa7u_269","product-card--selectors--size--skus":"_product-card--selectors--size--skus_5xa7u_278","product-card--selectors--style":"_product-card--selectors--style_5xa7u_292","product-card--selectors--style--more":"_product-card--selectors--style--more_5xa7u_302","product-card--video":"_product-card--video_5xa7u_319","product-card--wrapper":"_product-card--wrapper_5xa7u_345"},Oc=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:a},image:s}}=Ie();return a?c.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[c.jsxs(Ge.Wrapper,{type:"actions--group",children:[c.jsx(Ge.Price,{}),c.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&c.jsx(Ge.StyleSelector,{data:n,images:s,callback:e})})]}),t]}):null};Oc.displayName="ProductCard.Actions";const Tc=({className:e,isKit:t,...r})=>{const{addToCart:n}=Ye(),{isMobile:o=!1,selectedSku:i,outStock:a,item:s,sendAddToCartEvent:u,CONSTANTS:l}=Ie(),p=()=>{var f;if(!i)return;const d=Ea(i.offers.offers,l.StoreConfig_MainSellerId);d&&n({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:s.id,texture:(f=s==null?void 0:s.image.find(h=>l.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:f.url}),u()},m=i?l.BUY_BUTTON_LABELS.add_to_cart:l.BUY_BUTTON_LABELS.select_size;return c.jsx(b.Button,{...r,className:b.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:o?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:p,children:a?"Avise-me quando chegar":m})};Tc.displayName="ProductCard.Actions.BuyButton";const Mc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Ie();return c.jsxs(Ge.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[t?c.jsx(b.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?c.jsx(b.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:r,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,o.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&c.jsx(i,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};Mc.displayName="ProductCard.Actions.Header";const kc=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...o})=>{const{element:i,index:a,item:{image:s,slug:u,video:l},sendSelectItemEvent:p,order:m,CONSTANTS:d}=Ie(),f=Pa({images:s,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return c.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[c.jsx(we,{href:`/${u}/p`,onClick:p,onMouseUp:h=>{h.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(m))},children:c.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(f)&&f.map(({url:h,alternateName:y},g)=>B.createElement(Oe.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:g,...r&&{priority:g===0&&a<4},objectFit:"cover",src:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&l&&c.jsx(Ge.Video,{url:l,poster:f[0].url}),t]})};kc.displayName="ProductCard.Media.Media";const Lc=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Ie(),{availability:{status:s}}=i;return s?null:c.jsxs("div",{...n,className:b.helpers.classNameConcat(Se["product-card--outstock"],e),children:[c.jsx(b.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),c.jsx(b.Button,{className:b.helpers.classNameConcat(e,"buy-button"),size:o?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};Lc.displayName="ProductCard.OutStock";const Dc=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:a,outStock:s,shelfTitle:u,CONSTANTS:l,WishListToggle:p,...m})=>c.jsx(Cp,{item:o,isMobile:n,outStock:s,order:a,size:i,index:r,shelfTitle:u,CONSTANTS:l,WishListToggle:p,children:c.jsx("div",{...m,className:b.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":i,children:e})});Dc.displayName="ProductCard.Root";const $c=({disabled:e,label:t,size:r,value:n,onClick:o,...i})=>c.jsxs(b.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:o,children:[c.jsx(b.ToggleSize.DisabledAdornment,{}),c.jsx(b.ToggleSize.Text,{children:t})]});$c.displayName="ProductCard.SizeSelector.Item";const qc=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:a,setSelectedSku:s,eventDataRef:u}=Ie();n.productId=i.id;const l=Ra(n),p=Sa(n,"tamanho");!l&&!u.current.availableSkus.includes(p)&&u.current.availableSkus.push(p);const m=B.useCallback(f=>{const h=r===f?null:f;typeof s=="function"&&s(h),typeof t=="function"&&t(h)},[t,s,r]),d=B.useCallback(()=>{if(l&&typeof o=="function"){o(i,n);return}m(n)},[n,o,m,l,i]);return c.jsx($c,{active:e,disabled:l,label:p,onClick:()=>d(),size:a?"x-small":"small",value:n})};qc.displayName="ProductCard.SizeSelector.SkuItem";const Bc=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:s}=Ie();return c.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--selectors--size"],t),"data-mobile":i,children:[c.jsx("div",{className:Se["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((u,l)=>c.jsx(qc,{active:s===u,callback:e,item:u,selectedSku:s,setNotify:n},`size--${l}--${u.sku}`))}),c.jsx("div",{className:Se["product-card--selectors--size--button"],children:r})]})};Bc.displayName="ProductCard.SizeSelector";const Fn=({alt:e="",callback:t,more:r,total:n=4,src:o,url:i,...a})=>c.jsxs(b.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[c.jsx(b.ToggleStyle.DisabledAdornment,{}),c.jsxs(b.ToggleStyle.Texture,{children:[o&&c.jsx(Oe.Image,{alt:e??o,src:o,height:34,width:34}),r&&c.jsx(b.TextStructure.DivWrapper,{className:Se["product-card--selectors--style--more"],children:c.jsxs("p",{children:["+ ",n]})})]})]}),Sp=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:a}=Ie(),{triggerSelectItemEventRef:s}=ge();return c.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((u,l)=>c.jsx(Fn,{callback:p=>{s.current.trigger=!0,s.current.index=a,typeof t=="function"&&t(p)},src:(u==null?void 0:u.textureImage)??"",alt:u==null?void 0:u.textureAlt,url:u==null?void 0:u.slug,size:o},l)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&c.jsx(Fn,{size:o,total:r.length-n,more:!0})]})},Hc=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:a}=Ie(),s=o||a.TEXTURE_IMAGE,u=n==null?void 0:n.find(l=>s.includes(l.alternateName));return c.jsx(Sp,{...i,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:u&&c.jsx(Fn,{active:!0,size:"x-small",src:u.url})})};Hc.displayName="ProductCard.StyleSelector";const zc=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:a,value:s}},eventDataRef:u}=Ie();u.current.priceInfo={price:o,listPrice:i};const l=Me(i,t),p=Me(o,t),m=Me(s??0),d=n?"horizontal":"stacked";return c.jsx("div",{...r,className:b.helpers.classNameConcat(Se["product-card--price"],e),"data-mobile":n,children:c.jsx(b.ProductInfo.Root,{size:"small",layout:d,children:c.jsxs(b.ProductInfo.Wrapper,{size:"small",layout:d,children:[c.jsx(b.ProductInfo.ValuesWrapper,{children:p!==l?c.jsxs(c.Fragment,{children:[c.jsx(b.ProductInfo.Price,{label:"originalPrice",value:l,size:"small"}),c.jsx(b.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):c.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),a&&a>1&&s?c.jsx(b.ProductInfo.Price,{label:"installment",value:`${a}x ${m}`,size:"small"}):null]})})})};zc.displayName="ProductCard.Price";const Fc=({tag:e,className:t})=>{const{item:{name:r}}=Ie();return c.jsxs("div",{className:b.helpers.classNameConcat(Se["product-card--title"],t),children:[c.jsx("div",{className:Se["product-card--title--tag"],children:e?c.jsx(b.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?c.jsx(b.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):c.jsx("div",{})}),c.jsx("div",{className:Se["product-card--title--content"],children:r&&c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{children:c.jsx("h3",{children:r})})})})]})};Fc.displayName="ProductCard.Title";const Uc=({className:e,url:t,poster:r,...n})=>{const{element:o}=Ie();return B.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,a=i.querySelector("video");if(a){const s=new IntersectionObserver(p=>{p.forEach(m=>{Na(m.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),u=()=>{a.setAttribute("data-loaded","true")},l=()=>{i&&(s.observe(i),a.addEventListener("loadeddata",u))};return document.readyState==="complete"?l():window.addEventListener("load",l),()=>{s.disconnect(),window.removeEventListener("load",l)}}return()=>null},[t,o]),c.jsx("div",{...n,className:b.helpers.classNameConcat(Se["product-card--video"],e),children:t&&c.jsx(Oe.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Uc.displayName="ProductCard.Media.Video";const Wc=({children:e,className:t,type:r,...n})=>c.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});Wc.displayName="ProductCard.Wrapper";const Ge={Actions:Oc,BuyButton:Tc,Header:Mc,Media:kc,Root:Dc,OutStock:Lc,Price:zc,SizeSelector:Bc,StyleSelector:Hc,Title:Fc,Video:Uc,Wrapper:Wc},ga=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=ja(e.imageUrl,n.pdp),{nextimage:i}=Ne();return c.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Ap=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=B.useRef(!1);return c.jsx(Oe.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{o.current||(o.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Rp={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Gc=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{var l,p;const{initialize:i,pagination:a,controller:s,itemsStyles:u}=b.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return c.jsxs(b.Carousel.Root,{innerRef:m=>{i(m)},className:Rp["gallery-carousel-modifier"],children:[c.jsx(b.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:c.jsx(b.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:m=>s==null?void 0:s.navigateTo(m)})}),c.jsxs(b.Carousel.Body,{children:[c.jsx(b.Carousel.Item,{style:u,children:c.jsx(ga,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),t&&c.jsx(b.Carousel.Item,{style:u,children:c.jsx(Ap,{video:t,productName:n,...((l=e[1])==null?void 0:l.imageUrl)&&{poster:(p=e[1])==null?void 0:p.imageUrl}})},"PDP_gallery_video"),e.map((m,d)=>d===0?null:c.jsx(b.Carousel.Item,{style:u,children:c.jsx(ga,{image:m,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};Gc.displayName="PDP.Carousel";const Ep=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=Gn(),[o,i]=B.useState({show:!1,initialIndex:0});B.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const a=s=>{i({show:!0,initialIndex:s})};return c.jsx(c.Fragment,{children:c.jsx(Gc,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},Vc=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=Gn(),n=B.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return c.jsx(Ep,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};Vc.displayName="PDP.Gallery";const wp=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Vc},Symbol.toStringTag,{value:"Module"})),jp={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},lo=({size:e,adornment:t,title:r,subtitle:n,supportChildren:o,className:i,Z_INDEX_WAR:a,...s})=>c.jsxs(b.SnackBar.Structure,{...s,size:e,className:b.helpers.classNameConcat(jp["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[c.jsx(b.SnackBar.Content,{adornment:t,title:r,subtitle:n}),o&&c.jsx(b.SnackBar.Support,{children:o})]});lo.displayName="SnackBar";const Kc=B.createContext({}),Ip=({data:e,children:t,...r})=>{var h,y,g,v,R,_,S,C,w,x,I,$,A;const[n,o]=B.useState(!0),{initialize:i,controller:a,itemsStyles:s}=b.Carousel.useCarousel({gap:0,itemsPerPage:1}),u={slideTranstionTimer:(y=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(v=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:v.showCarouselArrows,hasCloseBtn:(_=(R=e==null?void 0:e.staticConfig)==null?void 0:R.staticConfig)==null?void 0:_.hasCloseBtn,backgroundColor:(C=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:C.backgroundColor,textColorVariant:(x=(w=e==null?void 0:e.staticConfig)==null?void 0:w.staticConfig)==null?void 0:x.textColorVariant,content:(($=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:$.items)??[]},l=(A=u.content)==null?void 0:A.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),p=l.length>1,m={...u.backgroundColor?{backgroundColor:u.backgroundColor}:{}},d=()=>{o(!1)},f=b.helpers.ValidateProp({fieldTypes:nt.Mode,property:u.textColorVariant,fallback:"default"});return c.jsx(Kc.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:p,backgroundStyle:m,handleCloseTipbar:d,mode:f,slideTranstionTimer:u.slideTranstionTimer,showCarouselArrows:u.showCarouselArrows,hasCloseBtn:u.hasCloseBtn,slices:l,carouselProps:{initialize:i,controller:a,itemsStyles:s},...r},children:t})},$e=()=>B.useContext(Kc),Pp=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=$e();return c.jsx($n,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Np="_tipbar_bt3p0_1",Op="_tipbar__carousel_bt3p0_15",mt={tipbar:Np,tipbar__carousel:Op,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Tp=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=$e(),[i,a]=B.useState({status:!1,showSnackBar:!1}),s=()=>{a({status:!0,showSnackBar:!0})};return B.useEffect(()=>{i.status&&setTimeout(()=>{a({status:!0,showSnackBar:!1})},o.TIPBAR_CONFIGS.snackbar_timeout)},[i]),c.jsxs(c.Fragment,{children:[c.jsx(b.Button,{...n,onClick:s,disabled:i.status,className:mt["tipbar-item__coupon"],children:i.status?"Cupom aplicado":"Aplicar cupom"}),i.showSnackBar&&(t||r)&&c.jsx(lo,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},Mp=({title:e,description:t,style:r,mode:n,className:o})=>c.jsx(b.TextStructure.Root,{children:c.jsxs(b.TextStructure.DivWrapper,{mode:n,className:o,children:[e&&c.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&c.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),kp=({className:e,description:t,staticZone:r,title:n,type:o})=>{const{mode:i}=$e();if(o==="countdown")return c.jsx(Pp,{dateEnd:r.countDownEndDate,size:"x-small",mode:i});if(o==="coupon"){const a=b.helpers.ValidateProp({fieldTypes:nt.Mode,property:r.couponButtonMode,fallback:"default"}),s=b.helpers.ValidateProp({fieldTypes:nt.VariantsExtended,property:r.couponButtonVariant,fallback:"primary"});return r.coupon?c.jsx(Tp,{coupon:r.coupon,mode:a,variant:s,feedbackTitle:r.couponFeedbackTitle,feedbackDescription:r.couponFeedbackDescription}):null}return c.jsx(Mp,{title:n,description:t,mode:i,className:e})},Lp=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=$e(),a=B.useRef(null),s=(l,p)=>{var m,d;l.stopPropagation(),l.preventDefault(),p==="prev"?(m=o.controller)==null||m.prevPage():(d=o.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),u())},u=B.useCallback(()=>{if(n&&o.controller){const l=setInterval(()=>{var p;(p=o.controller)==null||p.nextPage()},n);a.current=l}},[n,o]);return B.useEffect(()=>(u(),()=>{a.current&&clearInterval(a.current)}),[n,u]),c.jsxs(b.Carousel.Root,{innerRef:l=>{o.initialize(l)},className:mt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&c.jsx(b.Button,{variant:"tertiary",mode:t,onClick:l=>s(l,"prev"),adornment:{start:c.jsx(b.Icon,{name:i.ICONS.arrow_left})}}),c.jsx(b.Carousel.Body,{children:e}),r&&c.jsx(b.Button,{variant:"tertiary",mode:t,onClick:l=>s(l,"next"),adornment:{start:c.jsx(b.Icon,{name:i.ICONS.arrow_right})}})]})},ya=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=$e();return c.jsx(b.Button,{title:"fechar tipbar",className:mt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:c.jsx(b.Icon,{name:r.ICONS.close})}})},Dp=({children:e})=>{const{hasCarousel:t,mode:r,hasCloseBtn:n,backgroundStyle:o,showCarouselArrows:i,slideTranstionTimer:a,handleCloseTipbar:s}=$e(),u=t&&i;return c.jsx("div",{style:o,"data-hasclosebtn":n,className:mt.tipbar,children:t?c.jsxs(c.Fragment,{children:[c.jsx(Lp,{mode:r,showCarouselArrows:u,slideTranstionTimer:a,children:e}),n&&c.jsx(ya,{handleCloseTipbar:s,showCarouselArrows:u,mode:r})]}):c.jsxs(c.Fragment,{children:[e,n&&c.jsx(ya,{handleCloseTipbar:s,mode:r})]})})},$p=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=$e(),i=c.jsx("div",{...r,className:mt["tipbar-item"],children:e});return n?c.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},Xc=({className:e})=>{const{isOpen:t,slices:r}=$e();return r.length&&t?c.jsx(Dp,{children:r.map((n,o)=>{var i;return c.jsx(c.Fragment,{children:c.jsx(pt,{href:n.link,children:c.jsx($p,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((i=n==null?void 0:n.items)!=null&&i.length)?n.items.map((a,s)=>c.jsx(kp,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${s}`)):null})})},`tipbar-slice-${o}`)})}):null};Xc.displayName="TipBar.Root";const Qc=({className:e,...t})=>c.jsx(Ip,{...t,children:c.jsx(Xc,{className:e})});Qc.displayName="TipBar";const qp={teamComponents:{AddToCart:eo,BackToTop:id,...Lf,FreightCalculation:xp,Header:Pc,Link:Ze,Media:Oe,ProductCard:Ge,TipBar:Qc},template:{pdp:wp},utils:{EventCollector:ad,ExternalScripts:yd,LinkOrNotLink:pt,ObserverWrapper:Jn,SnackBarComponent:lo}};exports.cms=Jl;exports.contexts=Ku;exports.data=Rs;exports.layout=qp;